diff --git a/.codegen.json b/.codegen.json index 2bb546d9..151b8ac4 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "fc1155c", "specHash": "b5422f4", "version": "1.16.0" } +{ "engineHash": "a3ec39e", "specHash": "8402463", "version": "1.16.0" } diff --git a/package-lock.json b/package-lock.json index c49e116d..163ca38d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -67,9 +67,9 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.27.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.27.5.tgz", - "integrity": "sha512-KiRAp/VoJaWkkte84TvUd9qjdbZAdiqyvMxrGl1N6vzFogKmaLgoM3L1kgtLicp2HP5fBJS8JrZKLVIZGVJAVg==", + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.27.7.tgz", + "integrity": "sha512-xgu/ySj2mTiUFmdE9yCMfBxLp4DHd5DwmbbD05YAuICfodYT3VvRxbrh81LGQ/8UpSdtMdfKMn3KouYDX59DGQ==", "dev": true, "license": "MIT", "engines": { @@ -77,22 +77,22 @@ } }, "node_modules/@babel/core": { - "version": "7.27.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.4.tgz", - "integrity": "sha512-bXYxrXFubeYdvB0NhD/NBB3Qi6aZeV20GOWVI47t2dkecCEoneR4NPVcb7abpXDEvejgrUfFtG6vG/zxAKmg+g==", + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.27.7.tgz", + "integrity": "sha512-BU2f9tlKQ5CAthiMIgpzAh4eDTLWo1mqi9jqE2OxMG0E/OM199VJt2q8BztTxpnSW0i1ymdwLXRJnYzvDM5r2w==", "dev": true, "license": "MIT", "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.27.3", + "@babel/generator": "^7.27.5", "@babel/helper-compilation-targets": "^7.27.2", "@babel/helper-module-transforms": "^7.27.3", - "@babel/helpers": "^7.27.4", - "@babel/parser": "^7.27.4", + "@babel/helpers": "^7.27.6", + "@babel/parser": "^7.27.7", "@babel/template": "^7.27.2", - "@babel/traverse": "^7.27.4", - "@babel/types": "^7.27.3", + "@babel/traverse": "^7.27.7", + "@babel/types": "^7.27.7", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -228,13 +228,13 @@ } }, "node_modules/@babel/parser": { - "version": "7.27.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.5.tgz", - "integrity": "sha512-OsQd175SxWkGlzbny8J3K8TnnDD0N3lrIUtB92xwyRpzaenGZhxDvxN/JgU00U3CDZNj9tPuDJ5H0WS4Nt3vKg==", + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.7.tgz", + "integrity": "sha512-qnzXzDXdr/po3bOTbTIQZ7+TxNKxpkN5IifVLXS+r7qwynkZfPyjZfE7hCXbo7IoO9TNcSyibgONsf2HauUd3Q==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.27.3" + "@babel/types": "^7.27.7" }, "bin": { "parser": "bin/babel-parser.js" @@ -498,17 +498,17 @@ } }, "node_modules/@babel/traverse": { - "version": "7.27.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.4.tgz", - "integrity": "sha512-oNcu2QbHqts9BtOWJosOVJapWjBDSxGCpFvikNR5TGDYDQf3JwpIoMzIKrvfoti93cLfPJEG4tH9SPVeyCGgdA==", + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.7.tgz", + "integrity": "sha512-X6ZlfR/O/s5EQ/SnUSLzr+6kGnkg8HXGMzpgsMsrJVcfDtH1vIp6ctCN4eZ1LS5c0+te5Cb6Y514fASjMRJ1nw==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.27.1", - "@babel/generator": "^7.27.3", - "@babel/parser": "^7.27.4", + "@babel/generator": "^7.27.5", + "@babel/parser": "^7.27.7", "@babel/template": "^7.27.2", - "@babel/types": "^7.27.3", + "@babel/types": "^7.27.7", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -517,9 +517,9 @@ } }, "node_modules/@babel/types": { - "version": "7.27.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.6.tgz", - "integrity": "sha512-ETyHEk2VHHvl9b9jZP5IHPavHYk57EhanlRRuae9XCpb/j5bDCbPPMOBfCWhnl/7EDJz0jEMCi/RhccCE8r1+Q==", + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.7.tgz", + "integrity": "sha512-8OLQgDScAOHXnAz2cV+RfzzNMipuLVBz2biuAJFMV9bfkNf393je3VM8CLkjQodW5+iWsSJdSgSWT6rsZoXHPw==", "dev": true, "license": "MIT", "dependencies": { @@ -1090,9 +1090,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.44.0.tgz", - "integrity": "sha512-xEiEE5oDW6tK4jXCAyliuntGR+amEMO7HLtdSshVuhFnKTYoeYMyXQK7pLouAJJj5KHdwdn87bfHAR2nSdNAUA==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.44.1.tgz", + "integrity": "sha512-JAcBr1+fgqx20m7Fwe1DxPUl/hPkee6jA6Pl7n1v2EFiktAHenTaXl5aIFjUIEsfn9w3HE4gK1lEgNGMzBDs1w==", "cpu": [ "arm" ], @@ -1104,9 +1104,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.44.0.tgz", - "integrity": "sha512-uNSk/TgvMbskcHxXYHzqwiyBlJ/lGcv8DaUfcnNwict8ba9GTTNxfn3/FAoFZYgkaXXAdrAA+SLyKplyi349Jw==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.44.1.tgz", + "integrity": "sha512-RurZetXqTu4p+G0ChbnkwBuAtwAbIwJkycw1n6GvlGlBuS4u5qlr5opix8cBAYFJgaY05TWtM+LaoFggUmbZEQ==", "cpu": [ "arm64" ], @@ -1118,9 +1118,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.44.0.tgz", - "integrity": "sha512-VGF3wy0Eq1gcEIkSCr8Ke03CWT+Pm2yveKLaDvq51pPpZza3JX/ClxXOCmTYYq3us5MvEuNRTaeyFThCKRQhOA==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.44.1.tgz", + "integrity": "sha512-fM/xPesi7g2M7chk37LOnmnSTHLG/v2ggWqKj3CCA1rMA4mm5KVBT1fNoswbo1JhPuNNZrVwpTvlCVggv8A2zg==", "cpu": [ "arm64" ], @@ -1132,9 +1132,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.44.0.tgz", - "integrity": "sha512-fBkyrDhwquRvrTxSGH/qqt3/T0w5Rg0L7ZIDypvBPc1/gzjJle6acCpZ36blwuwcKD/u6oCE/sRWlUAcxLWQbQ==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.44.1.tgz", + "integrity": "sha512-gDnWk57urJrkrHQ2WVx9TSVTH7lSlU7E3AFqiko+bgjlh78aJ88/3nycMax52VIVjIm3ObXnDL2H00e/xzoipw==", "cpu": [ "x64" ], @@ -1146,9 +1146,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.44.0.tgz", - "integrity": "sha512-u5AZzdQJYJXByB8giQ+r4VyfZP+walV+xHWdaFx/1VxsOn6eWJhK2Vl2eElvDJFKQBo/hcYIBg/jaKS8ZmKeNQ==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.44.1.tgz", + "integrity": "sha512-wnFQmJ/zPThM5zEGcnDcCJeYJgtSLjh1d//WuHzhf6zT3Md1BvvhJnWoy+HECKu2bMxaIcfWiu3bJgx6z4g2XA==", "cpu": [ "arm64" ], @@ -1160,9 +1160,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.44.0.tgz", - "integrity": "sha512-qC0kS48c/s3EtdArkimctY7h3nHicQeEUdjJzYVJYR3ct3kWSafmn6jkNCA8InbUdge6PVx6keqjk5lVGJf99g==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.44.1.tgz", + "integrity": "sha512-uBmIxoJ4493YATvU2c0upGz87f99e3wop7TJgOA/bXMFd2SvKCI7xkxY/5k50bv7J6dw1SXT4MQBQSLn8Bb/Uw==", "cpu": [ "x64" ], @@ -1174,9 +1174,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.44.0.tgz", - "integrity": "sha512-x+e/Z9H0RAWckn4V2OZZl6EmV0L2diuX3QB0uM1r6BvhUIv6xBPL5mrAX2E3e8N8rEHVPwFfz/ETUbV4oW9+lQ==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.44.1.tgz", + "integrity": "sha512-n0edDmSHlXFhrlmTK7XBuwKlG5MbS7yleS1cQ9nn4kIeW+dJH+ExqNgQ0RrFRew8Y+0V/x6C5IjsHrJmiHtkxQ==", "cpu": [ "arm" ], @@ -1188,9 +1188,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.44.0.tgz", - "integrity": "sha512-1exwiBFf4PU/8HvI8s80icyCcnAIB86MCBdst51fwFmH5dyeoWVPVgmQPcKrMtBQ0W5pAs7jBCWuRXgEpRzSCg==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.44.1.tgz", + "integrity": "sha512-8WVUPy3FtAsKSpyk21kV52HCxB+me6YkbkFHATzC2Yd3yuqHwy2lbFL4alJOLXKljoRw08Zk8/xEj89cLQ/4Nw==", "cpu": [ "arm" ], @@ -1202,9 +1202,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.44.0.tgz", - "integrity": "sha512-ZTR2mxBHb4tK4wGf9b8SYg0Y6KQPjGpR4UWwTFdnmjB4qRtoATZ5dWn3KsDwGa5Z2ZBOE7K52L36J9LueKBdOQ==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.44.1.tgz", + "integrity": "sha512-yuktAOaeOgorWDeFJggjuCkMGeITfqvPgkIXhDqsfKX8J3jGyxdDZgBV/2kj/2DyPaLiX6bPdjJDTu9RB8lUPQ==", "cpu": [ "arm64" ], @@ -1216,9 +1216,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.44.0.tgz", - "integrity": "sha512-GFWfAhVhWGd4r6UxmnKRTBwP1qmModHtd5gkraeW2G490BpFOZkFtem8yuX2NyafIP/mGpRJgTJ2PwohQkUY/Q==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.44.1.tgz", + "integrity": "sha512-W+GBM4ifET1Plw8pdVaecwUgxmiH23CfAUj32u8knq0JPFyK4weRy6H7ooxYFD19YxBulL0Ktsflg5XS7+7u9g==", "cpu": [ "arm64" ], @@ -1230,9 +1230,9 @@ ] }, "node_modules/@rollup/rollup-linux-loongarch64-gnu": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.44.0.tgz", - "integrity": "sha512-xw+FTGcov/ejdusVOqKgMGW3c4+AgqrfvzWEVXcNP6zq2ue+lsYUgJ+5Rtn/OTJf7e2CbgTFvzLW2j0YAtj0Gg==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.44.1.tgz", + "integrity": "sha512-1zqnUEMWp9WrGVuVak6jWTl4fEtrVKfZY7CvcBmUUpxAJ7WcSowPSAWIKa/0o5mBL/Ij50SIf9tuirGx63Ovew==", "cpu": [ "loong64" ], @@ -1244,9 +1244,9 @@ ] }, "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.44.0.tgz", - "integrity": "sha512-bKGibTr9IdF0zr21kMvkZT4K6NV+jjRnBoVMt2uNMG0BYWm3qOVmYnXKzx7UhwrviKnmK46IKMByMgvpdQlyJQ==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.44.1.tgz", + "integrity": "sha512-Rl3JKaRu0LHIx7ExBAAnf0JcOQetQffaw34T8vLlg9b1IhzcBgaIdnvEbbsZq9uZp3uAH+JkHd20Nwn0h9zPjA==", "cpu": [ "ppc64" ], @@ -1258,9 +1258,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.44.0.tgz", - "integrity": "sha512-vV3cL48U5kDaKZtXrti12YRa7TyxgKAIDoYdqSIOMOFBXqFj2XbChHAtXquEn2+n78ciFgr4KIqEbydEGPxXgA==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.44.1.tgz", + "integrity": "sha512-j5akelU3snyL6K3N/iX7otLBIl347fGwmd95U5gS/7z6T4ftK288jKq3A5lcFKcx7wwzb5rgNvAg3ZbV4BqUSw==", "cpu": [ "riscv64" ], @@ -1272,9 +1272,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.44.0.tgz", - "integrity": "sha512-TDKO8KlHJuvTEdfw5YYFBjhFts2TR0VpZsnLLSYmB7AaohJhM8ctDSdDnUGq77hUh4m/djRafw+9zQpkOanE2Q==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.44.1.tgz", + "integrity": "sha512-ppn5llVGgrZw7yxbIm8TTvtj1EoPgYUAbfw0uDjIOzzoqlZlZrLJ/KuiE7uf5EpTpCTrNt1EdtzF0naMm0wGYg==", "cpu": [ "riscv64" ], @@ -1286,9 +1286,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.44.0.tgz", - "integrity": "sha512-8541GEyktXaw4lvnGp9m84KENcxInhAt6vPWJ9RodsB/iGjHoMB2Pp5MVBCiKIRxrxzJhGCxmNzdu+oDQ7kwRA==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.44.1.tgz", + "integrity": "sha512-Hu6hEdix0oxtUma99jSP7xbvjkUM/ycke/AQQ4EC5g7jNRLLIwjcNwaUy95ZKBJJwg1ZowsclNnjYqzN4zwkAw==", "cpu": [ "s390x" ], @@ -1300,9 +1300,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.44.0.tgz", - "integrity": "sha512-iUVJc3c0o8l9Sa/qlDL2Z9UP92UZZW1+EmQ4xfjTc1akr0iUFZNfxrXJ/R1T90h/ILm9iXEY6+iPrmYB3pXKjw==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.44.1.tgz", + "integrity": "sha512-EtnsrmZGomz9WxK1bR5079zee3+7a+AdFlghyd6VbAjgRJDbTANJ9dcPIPAi76uG05micpEL+gPGmAKYTschQw==", "cpu": [ "x64" ], @@ -1314,9 +1314,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.44.0.tgz", - "integrity": "sha512-PQUobbhLTQT5yz/SPg116VJBgz+XOtXt8D1ck+sfJJhuEsMj2jSej5yTdp8CvWBSceu+WW+ibVL6dm0ptG5fcA==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.44.1.tgz", + "integrity": "sha512-iAS4p+J1az6Usn0f8xhgL4PaU878KEtutP4hqw52I4IO6AGoyOkHCxcc4bqufv1tQLdDWFx8lR9YlwxKuv3/3g==", "cpu": [ "x64" ], @@ -1328,9 +1328,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.44.0.tgz", - "integrity": "sha512-M0CpcHf8TWn+4oTxJfh7LQuTuaYeXGbk0eageVjQCKzYLsajWS/lFC94qlRqOlyC2KvRT90ZrfXULYmukeIy7w==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.44.1.tgz", + "integrity": "sha512-NtSJVKcXwcqozOl+FwI41OH3OApDyLk3kqTJgx8+gp6On9ZEt5mYhIsKNPGuaZr3p9T6NWPKGU/03Vw4CNU9qg==", "cpu": [ "arm64" ], @@ -1342,9 +1342,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.44.0.tgz", - "integrity": "sha512-3XJ0NQtMAXTWFW8FqZKcw3gOQwBtVWP/u8TpHP3CRPXD7Pd6s8lLdH3sHWh8vqKCyyiI8xW5ltJScQmBU9j7WA==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.44.1.tgz", + "integrity": "sha512-JYA3qvCOLXSsnTR3oiyGws1Dm0YTuxAAeaYGVlGpUsHqloPcFjPg+X0Fj2qODGLNwQOAcCiQmHub/V007kiH5A==", "cpu": [ "ia32" ], @@ -1356,9 +1356,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.44.0.tgz", - "integrity": "sha512-Q2Mgwt+D8hd5FIPUuPDsvPR7Bguza6yTkJxspDGkZj7tBRn2y4KSWYuIXpftFSjBra76TbKerCV7rgFPQrn+wQ==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.44.1.tgz", + "integrity": "sha512-J8o22LuF0kTe7m+8PvW9wk3/bRq5+mRo5Dqo6+vXb7otCm3TPhYOJqOaQtGU9YMWQSL3krMnoOxMr0+9E6F3Ug==", "cpu": [ "x64" ], @@ -2612,9 +2612,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.173", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.173.tgz", - "integrity": "sha512-2bFhXP2zqSfQHugjqJIDFVwa+qIxyNApenmXTp9EjaKtdPrES5Qcn9/aSFy/NaP2E+fWG/zxKu/LBvY36p5VNQ==", + "version": "1.5.177", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.177.tgz", + "integrity": "sha512-7EH2G59nLsEMj97fpDuvVcYi6lwTcM1xuWw3PssD8xzboAW7zj7iB3COEEEATUfjLHrs5uKBLQT03V/8URx06g==", "dev": true, "license": "ISC" }, @@ -5052,9 +5052,9 @@ } }, "node_modules/rollup": { - "version": "4.44.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.44.0.tgz", - "integrity": "sha512-qHcdEzLCiktQIfwBq420pn2dP+30uzqYxv9ETm91wdt2R9AFcWfjNAmje4NWlnCIQ5RMTzVf0ZyisOKqHR6RwA==", + "version": "4.44.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.44.1.tgz", + "integrity": "sha512-x8H8aPvD+xbl0Do8oez5f5o8eMS3trfCghc4HhLAnCkj7Vl0d1JWGs0UF/D886zLW2rOj2QymV/JcSSsw+XDNg==", "dev": true, "license": "MIT", "dependencies": { @@ -5068,26 +5068,26 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.44.0", - "@rollup/rollup-android-arm64": "4.44.0", - "@rollup/rollup-darwin-arm64": "4.44.0", - "@rollup/rollup-darwin-x64": "4.44.0", - "@rollup/rollup-freebsd-arm64": "4.44.0", - "@rollup/rollup-freebsd-x64": "4.44.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.44.0", - "@rollup/rollup-linux-arm-musleabihf": "4.44.0", - "@rollup/rollup-linux-arm64-gnu": "4.44.0", - "@rollup/rollup-linux-arm64-musl": "4.44.0", - "@rollup/rollup-linux-loongarch64-gnu": "4.44.0", - "@rollup/rollup-linux-powerpc64le-gnu": "4.44.0", - "@rollup/rollup-linux-riscv64-gnu": "4.44.0", - "@rollup/rollup-linux-riscv64-musl": "4.44.0", - "@rollup/rollup-linux-s390x-gnu": "4.44.0", - "@rollup/rollup-linux-x64-gnu": "4.44.0", - "@rollup/rollup-linux-x64-musl": "4.44.0", - "@rollup/rollup-win32-arm64-msvc": "4.44.0", - "@rollup/rollup-win32-ia32-msvc": "4.44.0", - "@rollup/rollup-win32-x64-msvc": "4.44.0", + "@rollup/rollup-android-arm-eabi": "4.44.1", + "@rollup/rollup-android-arm64": "4.44.1", + "@rollup/rollup-darwin-arm64": "4.44.1", + "@rollup/rollup-darwin-x64": "4.44.1", + "@rollup/rollup-freebsd-arm64": "4.44.1", + "@rollup/rollup-freebsd-x64": "4.44.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.44.1", + "@rollup/rollup-linux-arm-musleabihf": "4.44.1", + "@rollup/rollup-linux-arm64-gnu": "4.44.1", + "@rollup/rollup-linux-arm64-musl": "4.44.1", + "@rollup/rollup-linux-loongarch64-gnu": "4.44.1", + "@rollup/rollup-linux-powerpc64le-gnu": "4.44.1", + "@rollup/rollup-linux-riscv64-gnu": "4.44.1", + "@rollup/rollup-linux-riscv64-musl": "4.44.1", + "@rollup/rollup-linux-s390x-gnu": "4.44.1", + "@rollup/rollup-linux-x64-gnu": "4.44.1", + "@rollup/rollup-linux-x64-musl": "4.44.1", + "@rollup/rollup-win32-arm64-msvc": "4.44.1", + "@rollup/rollup-win32-ia32-msvc": "4.44.1", + "@rollup/rollup-win32-x64-msvc": "4.44.1", "fsevents": "~2.3.2" } }, diff --git a/src/schemas/aiStudioAgentAsk.generated.ts b/src/schemas/aiStudioAgentAsk.generated.ts index 7d14bf3e..91a0de99 100644 --- a/src/schemas/aiStudioAgentAsk.generated.ts +++ b/src/schemas/aiStudioAgentAsk.generated.ts @@ -2,8 +2,11 @@ import { serializeAiStudioAgentLongTextTool } from './aiStudioAgentLongTextTool. import { deserializeAiStudioAgentLongTextTool } from './aiStudioAgentLongTextTool.generated.js'; import { serializeAiStudioAgentBasicTextTool } from './aiStudioAgentBasicTextTool.generated.js'; import { deserializeAiStudioAgentBasicTextTool } from './aiStudioAgentBasicTextTool.generated.js'; +import { serializeAiStudioAgentSpreadsheetTool } from './aiStudioAgentSpreadsheetTool.generated.js'; +import { deserializeAiStudioAgentSpreadsheetTool } from './aiStudioAgentSpreadsheetTool.generated.js'; import { AiStudioAgentLongTextTool } from './aiStudioAgentLongTextTool.generated.js'; import { AiStudioAgentBasicTextTool } from './aiStudioAgentBasicTextTool.generated.js'; +import { AiStudioAgentSpreadsheetTool } from './aiStudioAgentSpreadsheetTool.generated.js'; import { BoxSdkError } from '../box/errors.js'; import { SerializedData } from '../serialization/json.js'; import { sdIsEmpty } from '../serialization/json.js'; @@ -22,15 +25,21 @@ export class AiStudioAgentAsk { * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState!: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description!: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; + /** + * Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed. */ + readonly suggestedQuestions?: readonly string[]; readonly longText?: AiStudioAgentLongTextTool; readonly basicText?: AiStudioAgentBasicTextTool; + readonly basicImage?: AiStudioAgentBasicTextTool; + readonly spreadsheet?: AiStudioAgentSpreadsheetTool; readonly longTextMulti?: AiStudioAgentLongTextTool; readonly basicTextMulti?: AiStudioAgentBasicTextTool; + readonly basicImageMulti?: AiStudioAgentBasicTextTool; readonly rawData?: SerializedData; constructor( fields: Omit & @@ -48,18 +57,30 @@ export class AiStudioAgentAsk { if (fields.customInstructions !== undefined) { this.customInstructions = fields.customInstructions; } + if (fields.suggestedQuestions !== undefined) { + this.suggestedQuestions = fields.suggestedQuestions; + } if (fields.longText !== undefined) { this.longText = fields.longText; } if (fields.basicText !== undefined) { this.basicText = fields.basicText; } + if (fields.basicImage !== undefined) { + this.basicImage = fields.basicImage; + } + if (fields.spreadsheet !== undefined) { + this.spreadsheet = fields.spreadsheet; + } if (fields.longTextMulti !== undefined) { this.longTextMulti = fields.longTextMulti; } if (fields.basicTextMulti !== undefined) { this.basicTextMulti = fields.basicTextMulti; } + if (fields.basicImageMulti !== undefined) { + this.basicImageMulti = fields.basicImageMulti; + } if (fields.rawData !== undefined) { this.rawData = fields.rawData; } @@ -73,15 +94,21 @@ export interface AiStudioAgentAskInput { * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; + /** + * Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed. */ + readonly suggestedQuestions?: readonly string[]; readonly longText?: AiStudioAgentLongTextTool; readonly basicText?: AiStudioAgentBasicTextTool; + readonly basicImage?: AiStudioAgentBasicTextTool; + readonly spreadsheet?: AiStudioAgentSpreadsheetTool; readonly longTextMulti?: AiStudioAgentLongTextTool; readonly basicTextMulti?: AiStudioAgentBasicTextTool; + readonly basicImageMulti?: AiStudioAgentBasicTextTool; readonly rawData?: SerializedData; } export function serializeAiStudioAgentAskTypeField( @@ -107,6 +134,12 @@ export function serializeAiStudioAgentAsk( ['access_state']: val.accessState, ['description']: val.description, ['custom_instructions']: val.customInstructions, + ['suggested_questions']: + val.suggestedQuestions == void 0 + ? val.suggestedQuestions + : (val.suggestedQuestions.map(function (item: string): SerializedData { + return item; + }) as readonly any[]), ['long_text']: val.longText == void 0 ? val.longText @@ -115,6 +148,14 @@ export function serializeAiStudioAgentAsk( val.basicText == void 0 ? val.basicText : serializeAiStudioAgentBasicTextTool(val.basicText), + ['basic_image']: + val.basicImage == void 0 + ? val.basicImage + : serializeAiStudioAgentBasicTextTool(val.basicImage), + ['spreadsheet']: + val.spreadsheet == void 0 + ? val.spreadsheet + : serializeAiStudioAgentSpreadsheetTool(val.spreadsheet), ['long_text_multi']: val.longTextMulti == void 0 ? val.longTextMulti @@ -123,6 +164,10 @@ export function serializeAiStudioAgentAsk( val.basicTextMulti == void 0 ? val.basicTextMulti : serializeAiStudioAgentBasicTextTool(val.basicTextMulti), + ['basic_image_multi']: + val.basicImageMulti == void 0 + ? val.basicImageMulti + : serializeAiStudioAgentBasicTextTool(val.basicImageMulti), }; } export function deserializeAiStudioAgentAsk( @@ -176,6 +221,28 @@ export function deserializeAiStudioAgentAsk( } const customInstructions: undefined | string = val.custom_instructions == void 0 ? void 0 : val.custom_instructions; + if ( + !(val.suggested_questions == void 0) && + !sdIsList(val.suggested_questions) + ) { + throw new BoxSdkError({ + message: + 'Expecting array for "suggested_questions" of type "AiStudioAgentAsk"', + }); + } + const suggestedQuestions: undefined | readonly string[] = + val.suggested_questions == void 0 + ? void 0 + : sdIsList(val.suggested_questions) + ? (val.suggested_questions.map(function (itm: SerializedData): string { + if (!sdIsString(itm)) { + throw new BoxSdkError({ + message: 'Expecting string for "AiStudioAgentAsk"', + }); + } + return itm; + }) as readonly any[]) + : []; const longText: undefined | AiStudioAgentLongTextTool = val.long_text == void 0 ? void 0 @@ -184,6 +251,14 @@ export function deserializeAiStudioAgentAsk( val.basic_text == void 0 ? void 0 : deserializeAiStudioAgentBasicTextTool(val.basic_text); + const basicImage: undefined | AiStudioAgentBasicTextTool = + val.basic_image == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextTool(val.basic_image); + const spreadsheet: undefined | AiStudioAgentSpreadsheetTool = + val.spreadsheet == void 0 + ? void 0 + : deserializeAiStudioAgentSpreadsheetTool(val.spreadsheet); const longTextMulti: undefined | AiStudioAgentLongTextTool = val.long_text_multi == void 0 ? void 0 @@ -192,15 +267,23 @@ export function deserializeAiStudioAgentAsk( val.basic_text_multi == void 0 ? void 0 : deserializeAiStudioAgentBasicTextTool(val.basic_text_multi); + const basicImageMulti: undefined | AiStudioAgentBasicTextTool = + val.basic_image_multi == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextTool(val.basic_image_multi); return { type: type, accessState: accessState, description: description, customInstructions: customInstructions, + suggestedQuestions: suggestedQuestions, longText: longText, basicText: basicText, + basicImage: basicImage, + spreadsheet: spreadsheet, longTextMulti: longTextMulti, basicTextMulti: basicTextMulti, + basicImageMulti: basicImageMulti, } satisfies AiStudioAgentAsk; } export function serializeAiStudioAgentAskInput( @@ -214,6 +297,12 @@ export function serializeAiStudioAgentAskInput( ['access_state']: val.accessState, ['description']: val.description, ['custom_instructions']: val.customInstructions, + ['suggested_questions']: + val.suggestedQuestions == void 0 + ? val.suggestedQuestions + : (val.suggestedQuestions.map(function (item: string): SerializedData { + return item; + }) as readonly any[]), ['long_text']: val.longText == void 0 ? val.longText @@ -222,6 +311,14 @@ export function serializeAiStudioAgentAskInput( val.basicText == void 0 ? val.basicText : serializeAiStudioAgentBasicTextTool(val.basicText), + ['basic_image']: + val.basicImage == void 0 + ? val.basicImage + : serializeAiStudioAgentBasicTextTool(val.basicImage), + ['spreadsheet']: + val.spreadsheet == void 0 + ? val.spreadsheet + : serializeAiStudioAgentSpreadsheetTool(val.spreadsheet), ['long_text_multi']: val.longTextMulti == void 0 ? val.longTextMulti @@ -230,6 +327,10 @@ export function serializeAiStudioAgentAskInput( val.basicTextMulti == void 0 ? val.basicTextMulti : serializeAiStudioAgentBasicTextTool(val.basicTextMulti), + ['basic_image_multi']: + val.basicImageMulti == void 0 + ? val.basicImageMulti + : serializeAiStudioAgentBasicTextTool(val.basicImageMulti), }; } export function deserializeAiStudioAgentAskInput( @@ -281,6 +382,28 @@ export function deserializeAiStudioAgentAskInput( } const customInstructions: undefined | string = val.custom_instructions == void 0 ? void 0 : val.custom_instructions; + if ( + !(val.suggested_questions == void 0) && + !sdIsList(val.suggested_questions) + ) { + throw new BoxSdkError({ + message: + 'Expecting array for "suggested_questions" of type "AiStudioAgentAskInput"', + }); + } + const suggestedQuestions: undefined | readonly string[] = + val.suggested_questions == void 0 + ? void 0 + : sdIsList(val.suggested_questions) + ? (val.suggested_questions.map(function (itm: SerializedData): string { + if (!sdIsString(itm)) { + throw new BoxSdkError({ + message: 'Expecting string for "AiStudioAgentAskInput"', + }); + } + return itm; + }) as readonly any[]) + : []; const longText: undefined | AiStudioAgentLongTextTool = val.long_text == void 0 ? void 0 @@ -289,6 +412,14 @@ export function deserializeAiStudioAgentAskInput( val.basic_text == void 0 ? void 0 : deserializeAiStudioAgentBasicTextTool(val.basic_text); + const basicImage: undefined | AiStudioAgentBasicTextTool = + val.basic_image == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextTool(val.basic_image); + const spreadsheet: undefined | AiStudioAgentSpreadsheetTool = + val.spreadsheet == void 0 + ? void 0 + : deserializeAiStudioAgentSpreadsheetTool(val.spreadsheet); const longTextMulti: undefined | AiStudioAgentLongTextTool = val.long_text_multi == void 0 ? void 0 @@ -297,14 +428,22 @@ export function deserializeAiStudioAgentAskInput( val.basic_text_multi == void 0 ? void 0 : deserializeAiStudioAgentBasicTextTool(val.basic_text_multi); + const basicImageMulti: undefined | AiStudioAgentBasicTextTool = + val.basic_image_multi == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextTool(val.basic_image_multi); return { type: type, accessState: accessState, description: description, customInstructions: customInstructions, + suggestedQuestions: suggestedQuestions, longText: longText, basicText: basicText, + basicImage: basicImage, + spreadsheet: spreadsheet, longTextMulti: longTextMulti, basicTextMulti: basicTextMulti, + basicImageMulti: basicImageMulti, } satisfies AiStudioAgentAskInput; } diff --git a/src/schemas/aiStudioAgentAskResponse.generated.ts b/src/schemas/aiStudioAgentAskResponse.generated.ts index dd0f4a13..3af22e1d 100644 --- a/src/schemas/aiStudioAgentAskResponse.generated.ts +++ b/src/schemas/aiStudioAgentAskResponse.generated.ts @@ -2,8 +2,11 @@ import { serializeAiStudioAgentLongTextToolResponse } from './aiStudioAgentLongT import { deserializeAiStudioAgentLongTextToolResponse } from './aiStudioAgentLongTextToolResponse.generated.js'; import { serializeAiStudioAgentBasicTextToolResponse } from './aiStudioAgentBasicTextToolResponse.generated.js'; import { deserializeAiStudioAgentBasicTextToolResponse } from './aiStudioAgentBasicTextToolResponse.generated.js'; +import { serializeAiStudioAgentSpreadsheetToolResponse } from './aiStudioAgentSpreadsheetToolResponse.generated.js'; +import { deserializeAiStudioAgentSpreadsheetToolResponse } from './aiStudioAgentSpreadsheetToolResponse.generated.js'; import { AiStudioAgentLongTextToolResponse } from './aiStudioAgentLongTextToolResponse.generated.js'; import { AiStudioAgentBasicTextToolResponse } from './aiStudioAgentBasicTextToolResponse.generated.js'; +import { AiStudioAgentSpreadsheetToolResponse } from './aiStudioAgentSpreadsheetToolResponse.generated.js'; import { BoxSdkError } from '../box/errors.js'; import { SerializedData } from '../serialization/json.js'; import { sdIsEmpty } from '../serialization/json.js'; @@ -15,22 +18,28 @@ import { sdIsMap } from '../serialization/json.js'; export type AiStudioAgentAskResponseTypeField = 'ai_agent_ask'; export class AiStudioAgentAskResponse { /** - * The type of AI agent used to handle queries. */ + * The type of AI agent used to ask questions. */ readonly type: AiStudioAgentAskResponseTypeField = 'ai_agent_ask' as AiStudioAgentAskResponseTypeField; /** * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState!: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description!: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; + /** + * Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed. */ + readonly suggestedQuestions?: readonly string[]; readonly longText?: AiStudioAgentLongTextToolResponse; readonly basicText?: AiStudioAgentBasicTextToolResponse; + readonly basicImage?: AiStudioAgentBasicTextToolResponse; + readonly spreadsheet?: AiStudioAgentSpreadsheetToolResponse; readonly longTextMulti?: AiStudioAgentLongTextToolResponse; readonly basicTextMulti?: AiStudioAgentBasicTextToolResponse; + readonly basicImageMulti?: AiStudioAgentBasicTextToolResponse; readonly rawData?: SerializedData; constructor( fields: Omit & @@ -48,18 +57,30 @@ export class AiStudioAgentAskResponse { if (fields.customInstructions !== undefined) { this.customInstructions = fields.customInstructions; } + if (fields.suggestedQuestions !== undefined) { + this.suggestedQuestions = fields.suggestedQuestions; + } if (fields.longText !== undefined) { this.longText = fields.longText; } if (fields.basicText !== undefined) { this.basicText = fields.basicText; } + if (fields.basicImage !== undefined) { + this.basicImage = fields.basicImage; + } + if (fields.spreadsheet !== undefined) { + this.spreadsheet = fields.spreadsheet; + } if (fields.longTextMulti !== undefined) { this.longTextMulti = fields.longTextMulti; } if (fields.basicTextMulti !== undefined) { this.basicTextMulti = fields.basicTextMulti; } + if (fields.basicImageMulti !== undefined) { + this.basicImageMulti = fields.basicImageMulti; + } if (fields.rawData !== undefined) { this.rawData = fields.rawData; } @@ -67,21 +88,27 @@ export class AiStudioAgentAskResponse { } export interface AiStudioAgentAskResponseInput { /** - * The type of AI agent used to handle queries. */ + * The type of AI agent used to ask questions. */ readonly type?: AiStudioAgentAskResponseTypeField; /** * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; + /** + * Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed. */ + readonly suggestedQuestions?: readonly string[]; readonly longText?: AiStudioAgentLongTextToolResponse; readonly basicText?: AiStudioAgentBasicTextToolResponse; + readonly basicImage?: AiStudioAgentBasicTextToolResponse; + readonly spreadsheet?: AiStudioAgentSpreadsheetToolResponse; readonly longTextMulti?: AiStudioAgentLongTextToolResponse; readonly basicTextMulti?: AiStudioAgentBasicTextToolResponse; + readonly basicImageMulti?: AiStudioAgentBasicTextToolResponse; readonly rawData?: SerializedData; } export function serializeAiStudioAgentAskResponseTypeField( @@ -107,6 +134,12 @@ export function serializeAiStudioAgentAskResponse( ['access_state']: val.accessState, ['description']: val.description, ['custom_instructions']: val.customInstructions, + ['suggested_questions']: + val.suggestedQuestions == void 0 + ? val.suggestedQuestions + : (val.suggestedQuestions.map(function (item: string): SerializedData { + return item; + }) as readonly any[]), ['long_text']: val.longText == void 0 ? val.longText @@ -115,6 +148,14 @@ export function serializeAiStudioAgentAskResponse( val.basicText == void 0 ? val.basicText : serializeAiStudioAgentBasicTextToolResponse(val.basicText), + ['basic_image']: + val.basicImage == void 0 + ? val.basicImage + : serializeAiStudioAgentBasicTextToolResponse(val.basicImage), + ['spreadsheet']: + val.spreadsheet == void 0 + ? val.spreadsheet + : serializeAiStudioAgentSpreadsheetToolResponse(val.spreadsheet), ['long_text_multi']: val.longTextMulti == void 0 ? val.longTextMulti @@ -123,6 +164,10 @@ export function serializeAiStudioAgentAskResponse( val.basicTextMulti == void 0 ? val.basicTextMulti : serializeAiStudioAgentBasicTextToolResponse(val.basicTextMulti), + ['basic_image_multi']: + val.basicImageMulti == void 0 + ? val.basicImageMulti + : serializeAiStudioAgentBasicTextToolResponse(val.basicImageMulti), }; } export function deserializeAiStudioAgentAskResponse( @@ -178,6 +223,28 @@ export function deserializeAiStudioAgentAskResponse( } const customInstructions: undefined | string = val.custom_instructions == void 0 ? void 0 : val.custom_instructions; + if ( + !(val.suggested_questions == void 0) && + !sdIsList(val.suggested_questions) + ) { + throw new BoxSdkError({ + message: + 'Expecting array for "suggested_questions" of type "AiStudioAgentAskResponse"', + }); + } + const suggestedQuestions: undefined | readonly string[] = + val.suggested_questions == void 0 + ? void 0 + : sdIsList(val.suggested_questions) + ? (val.suggested_questions.map(function (itm: SerializedData): string { + if (!sdIsString(itm)) { + throw new BoxSdkError({ + message: 'Expecting string for "AiStudioAgentAskResponse"', + }); + } + return itm; + }) as readonly any[]) + : []; const longText: undefined | AiStudioAgentLongTextToolResponse = val.long_text == void 0 ? void 0 @@ -186,6 +253,14 @@ export function deserializeAiStudioAgentAskResponse( val.basic_text == void 0 ? void 0 : deserializeAiStudioAgentBasicTextToolResponse(val.basic_text); + const basicImage: undefined | AiStudioAgentBasicTextToolResponse = + val.basic_image == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextToolResponse(val.basic_image); + const spreadsheet: undefined | AiStudioAgentSpreadsheetToolResponse = + val.spreadsheet == void 0 + ? void 0 + : deserializeAiStudioAgentSpreadsheetToolResponse(val.spreadsheet); const longTextMulti: undefined | AiStudioAgentLongTextToolResponse = val.long_text_multi == void 0 ? void 0 @@ -194,15 +269,23 @@ export function deserializeAiStudioAgentAskResponse( val.basic_text_multi == void 0 ? void 0 : deserializeAiStudioAgentBasicTextToolResponse(val.basic_text_multi); + const basicImageMulti: undefined | AiStudioAgentBasicTextToolResponse = + val.basic_image_multi == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextToolResponse(val.basic_image_multi); return { type: type, accessState: accessState, description: description, customInstructions: customInstructions, + suggestedQuestions: suggestedQuestions, longText: longText, basicText: basicText, + basicImage: basicImage, + spreadsheet: spreadsheet, longTextMulti: longTextMulti, basicTextMulti: basicTextMulti, + basicImageMulti: basicImageMulti, } satisfies AiStudioAgentAskResponse; } export function serializeAiStudioAgentAskResponseInput( @@ -216,6 +299,12 @@ export function serializeAiStudioAgentAskResponseInput( ['access_state']: val.accessState, ['description']: val.description, ['custom_instructions']: val.customInstructions, + ['suggested_questions']: + val.suggestedQuestions == void 0 + ? val.suggestedQuestions + : (val.suggestedQuestions.map(function (item: string): SerializedData { + return item; + }) as readonly any[]), ['long_text']: val.longText == void 0 ? val.longText @@ -224,6 +313,14 @@ export function serializeAiStudioAgentAskResponseInput( val.basicText == void 0 ? val.basicText : serializeAiStudioAgentBasicTextToolResponse(val.basicText), + ['basic_image']: + val.basicImage == void 0 + ? val.basicImage + : serializeAiStudioAgentBasicTextToolResponse(val.basicImage), + ['spreadsheet']: + val.spreadsheet == void 0 + ? val.spreadsheet + : serializeAiStudioAgentSpreadsheetToolResponse(val.spreadsheet), ['long_text_multi']: val.longTextMulti == void 0 ? val.longTextMulti @@ -232,6 +329,10 @@ export function serializeAiStudioAgentAskResponseInput( val.basicTextMulti == void 0 ? val.basicTextMulti : serializeAiStudioAgentBasicTextToolResponse(val.basicTextMulti), + ['basic_image_multi']: + val.basicImageMulti == void 0 + ? val.basicImageMulti + : serializeAiStudioAgentBasicTextToolResponse(val.basicImageMulti), }; } export function deserializeAiStudioAgentAskResponseInput( @@ -283,6 +384,28 @@ export function deserializeAiStudioAgentAskResponseInput( } const customInstructions: undefined | string = val.custom_instructions == void 0 ? void 0 : val.custom_instructions; + if ( + !(val.suggested_questions == void 0) && + !sdIsList(val.suggested_questions) + ) { + throw new BoxSdkError({ + message: + 'Expecting array for "suggested_questions" of type "AiStudioAgentAskResponseInput"', + }); + } + const suggestedQuestions: undefined | readonly string[] = + val.suggested_questions == void 0 + ? void 0 + : sdIsList(val.suggested_questions) + ? (val.suggested_questions.map(function (itm: SerializedData): string { + if (!sdIsString(itm)) { + throw new BoxSdkError({ + message: 'Expecting string for "AiStudioAgentAskResponseInput"', + }); + } + return itm; + }) as readonly any[]) + : []; const longText: undefined | AiStudioAgentLongTextToolResponse = val.long_text == void 0 ? void 0 @@ -291,6 +414,14 @@ export function deserializeAiStudioAgentAskResponseInput( val.basic_text == void 0 ? void 0 : deserializeAiStudioAgentBasicTextToolResponse(val.basic_text); + const basicImage: undefined | AiStudioAgentBasicTextToolResponse = + val.basic_image == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextToolResponse(val.basic_image); + const spreadsheet: undefined | AiStudioAgentSpreadsheetToolResponse = + val.spreadsheet == void 0 + ? void 0 + : deserializeAiStudioAgentSpreadsheetToolResponse(val.spreadsheet); const longTextMulti: undefined | AiStudioAgentLongTextToolResponse = val.long_text_multi == void 0 ? void 0 @@ -299,14 +430,22 @@ export function deserializeAiStudioAgentAskResponseInput( val.basic_text_multi == void 0 ? void 0 : deserializeAiStudioAgentBasicTextToolResponse(val.basic_text_multi); + const basicImageMulti: undefined | AiStudioAgentBasicTextToolResponse = + val.basic_image_multi == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextToolResponse(val.basic_image_multi); return { type: type, accessState: accessState, description: description, customInstructions: customInstructions, + suggestedQuestions: suggestedQuestions, longText: longText, basicText: basicText, + basicImage: basicImage, + spreadsheet: spreadsheet, longTextMulti: longTextMulti, basicTextMulti: basicTextMulti, + basicImageMulti: basicImageMulti, } satisfies AiStudioAgentAskResponseInput; } diff --git a/src/schemas/aiStudioAgentExtract.generated.ts b/src/schemas/aiStudioAgentExtract.generated.ts index 959b32a0..5df163ca 100644 --- a/src/schemas/aiStudioAgentExtract.generated.ts +++ b/src/schemas/aiStudioAgentExtract.generated.ts @@ -15,20 +15,21 @@ import { sdIsMap } from '../serialization/json.js'; export type AiStudioAgentExtractTypeField = 'ai_agent_extract'; export class AiStudioAgentExtract { /** - * The type of AI agent to be used for extraction. */ + * The type of AI agent to be used for metadata extraction. */ readonly type: AiStudioAgentExtractTypeField = 'ai_agent_extract' as AiStudioAgentExtractTypeField; /** * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState!: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description!: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; readonly longText?: AiStudioAgentLongTextTool; readonly basicText?: AiStudioAgentBasicTextTool; + readonly basicImage?: AiStudioAgentBasicTextTool; readonly rawData?: SerializedData; constructor( fields: Omit & @@ -52,6 +53,9 @@ export class AiStudioAgentExtract { if (fields.basicText !== undefined) { this.basicText = fields.basicText; } + if (fields.basicImage !== undefined) { + this.basicImage = fields.basicImage; + } if (fields.rawData !== undefined) { this.rawData = fields.rawData; } @@ -59,19 +63,20 @@ export class AiStudioAgentExtract { } export interface AiStudioAgentExtractInput { /** - * The type of AI agent to be used for extraction. */ + * The type of AI agent to be used for metadata extraction. */ readonly type?: AiStudioAgentExtractTypeField; /** * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; readonly longText?: AiStudioAgentLongTextTool; readonly basicText?: AiStudioAgentBasicTextTool; + readonly basicImage?: AiStudioAgentBasicTextTool; readonly rawData?: SerializedData; } export function serializeAiStudioAgentExtractTypeField( @@ -105,6 +110,10 @@ export function serializeAiStudioAgentExtract( val.basicText == void 0 ? val.basicText : serializeAiStudioAgentBasicTextTool(val.basicText), + ['basic_image']: + val.basicImage == void 0 + ? val.basicImage + : serializeAiStudioAgentBasicTextTool(val.basicImage), }; } export function deserializeAiStudioAgentExtract( @@ -167,6 +176,10 @@ export function deserializeAiStudioAgentExtract( val.basic_text == void 0 ? void 0 : deserializeAiStudioAgentBasicTextTool(val.basic_text); + const basicImage: undefined | AiStudioAgentBasicTextTool = + val.basic_image == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextTool(val.basic_image); return { type: type, accessState: accessState, @@ -174,6 +187,7 @@ export function deserializeAiStudioAgentExtract( customInstructions: customInstructions, longText: longText, basicText: basicText, + basicImage: basicImage, } satisfies AiStudioAgentExtract; } export function serializeAiStudioAgentExtractInput( @@ -195,6 +209,10 @@ export function serializeAiStudioAgentExtractInput( val.basicText == void 0 ? val.basicText : serializeAiStudioAgentBasicTextTool(val.basicText), + ['basic_image']: + val.basicImage == void 0 + ? val.basicImage + : serializeAiStudioAgentBasicTextTool(val.basicImage), }; } export function deserializeAiStudioAgentExtractInput( @@ -254,6 +272,10 @@ export function deserializeAiStudioAgentExtractInput( val.basic_text == void 0 ? void 0 : deserializeAiStudioAgentBasicTextTool(val.basic_text); + const basicImage: undefined | AiStudioAgentBasicTextTool = + val.basic_image == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextTool(val.basic_image); return { type: type, accessState: accessState, @@ -261,5 +283,6 @@ export function deserializeAiStudioAgentExtractInput( customInstructions: customInstructions, longText: longText, basicText: basicText, + basicImage: basicImage, } satisfies AiStudioAgentExtractInput; } diff --git a/src/schemas/aiStudioAgentExtractResponse.generated.ts b/src/schemas/aiStudioAgentExtractResponse.generated.ts index e29af741..f8c2a41e 100644 --- a/src/schemas/aiStudioAgentExtractResponse.generated.ts +++ b/src/schemas/aiStudioAgentExtractResponse.generated.ts @@ -15,20 +15,21 @@ import { sdIsMap } from '../serialization/json.js'; export type AiStudioAgentExtractResponseTypeField = 'ai_agent_extract'; export class AiStudioAgentExtractResponse { /** - * The type of AI agent to be used for extraction. */ + * The type of AI agent to be used for metadata extraction. */ readonly type: AiStudioAgentExtractResponseTypeField = 'ai_agent_extract' as AiStudioAgentExtractResponseTypeField; /** * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState!: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description!: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; readonly longText?: AiStudioAgentLongTextToolResponse; readonly basicText?: AiStudioAgentBasicTextToolResponse; + readonly basicImage?: AiStudioAgentBasicTextToolResponse; readonly rawData?: SerializedData; constructor( fields: Omit & @@ -52,6 +53,9 @@ export class AiStudioAgentExtractResponse { if (fields.basicText !== undefined) { this.basicText = fields.basicText; } + if (fields.basicImage !== undefined) { + this.basicImage = fields.basicImage; + } if (fields.rawData !== undefined) { this.rawData = fields.rawData; } @@ -59,19 +63,20 @@ export class AiStudioAgentExtractResponse { } export interface AiStudioAgentExtractResponseInput { /** - * The type of AI agent to be used for extraction. */ + * The type of AI agent to be used for metadata extraction. */ readonly type?: AiStudioAgentExtractResponseTypeField; /** * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; readonly longText?: AiStudioAgentLongTextToolResponse; readonly basicText?: AiStudioAgentBasicTextToolResponse; + readonly basicImage?: AiStudioAgentBasicTextToolResponse; readonly rawData?: SerializedData; } export function serializeAiStudioAgentExtractResponseTypeField( @@ -105,6 +110,10 @@ export function serializeAiStudioAgentExtractResponse( val.basicText == void 0 ? val.basicText : serializeAiStudioAgentBasicTextToolResponse(val.basicText), + ['basic_image']: + val.basicImage == void 0 + ? val.basicImage + : serializeAiStudioAgentBasicTextToolResponse(val.basicImage), }; } export function deserializeAiStudioAgentExtractResponse( @@ -168,6 +177,10 @@ export function deserializeAiStudioAgentExtractResponse( val.basic_text == void 0 ? void 0 : deserializeAiStudioAgentBasicTextToolResponse(val.basic_text); + const basicImage: undefined | AiStudioAgentBasicTextToolResponse = + val.basic_image == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextToolResponse(val.basic_image); return { type: type, accessState: accessState, @@ -175,6 +188,7 @@ export function deserializeAiStudioAgentExtractResponse( customInstructions: customInstructions, longText: longText, basicText: basicText, + basicImage: basicImage, } satisfies AiStudioAgentExtractResponse; } export function serializeAiStudioAgentExtractResponseInput( @@ -196,6 +210,10 @@ export function serializeAiStudioAgentExtractResponseInput( val.basicText == void 0 ? val.basicText : serializeAiStudioAgentBasicTextToolResponse(val.basicText), + ['basic_image']: + val.basicImage == void 0 + ? val.basicImage + : serializeAiStudioAgentBasicTextToolResponse(val.basicImage), }; } export function deserializeAiStudioAgentExtractResponseInput( @@ -255,6 +273,10 @@ export function deserializeAiStudioAgentExtractResponseInput( val.basic_text == void 0 ? void 0 : deserializeAiStudioAgentBasicTextToolResponse(val.basic_text); + const basicImage: undefined | AiStudioAgentBasicTextToolResponse = + val.basic_image == void 0 + ? void 0 + : deserializeAiStudioAgentBasicTextToolResponse(val.basic_image); return { type: type, accessState: accessState, @@ -262,5 +284,6 @@ export function deserializeAiStudioAgentExtractResponseInput( customInstructions: customInstructions, longText: longText, basicText: basicText, + basicImage: basicImage, } satisfies AiStudioAgentExtractResponseInput; } diff --git a/src/schemas/aiStudioAgentSpreadsheetTool.generated.ts b/src/schemas/aiStudioAgentSpreadsheetTool.generated.ts new file mode 100644 index 00000000..74786f74 --- /dev/null +++ b/src/schemas/aiStudioAgentSpreadsheetTool.generated.ts @@ -0,0 +1,64 @@ +import { serializeAiLlmEndpointParams } from './aiLlmEndpointParams.generated.js'; +import { deserializeAiLlmEndpointParams } from './aiLlmEndpointParams.generated.js'; +import { serializeAiAgentSpreadsheetTool } from './aiAgentSpreadsheetTool.generated.js'; +import { deserializeAiAgentSpreadsheetTool } from './aiAgentSpreadsheetTool.generated.js'; +import { AiLlmEndpointParams } from './aiLlmEndpointParams.generated.js'; +import { AiAgentSpreadsheetTool } from './aiAgentSpreadsheetTool.generated.js'; +import { BoxSdkError } from '../box/errors.js'; +import { SerializedData } from '../serialization/json.js'; +import { sdIsEmpty } from '../serialization/json.js'; +import { sdIsBoolean } from '../serialization/json.js'; +import { sdIsNumber } from '../serialization/json.js'; +import { sdIsString } from '../serialization/json.js'; +import { sdIsList } from '../serialization/json.js'; +import { sdIsMap } from '../serialization/json.js'; +export type AiStudioAgentSpreadsheetTool = AiAgentSpreadsheetTool & {}; +export function serializeAiStudioAgentSpreadsheetTool( + val: AiStudioAgentSpreadsheetTool, +): SerializedData { + const base: any = serializeAiAgentSpreadsheetTool(val); + if (!sdIsMap(base)) { + throw new BoxSdkError({ + message: 'Expecting a map for "AiStudioAgentSpreadsheetTool"', + }); + } + return { ...base, ...{} }; +} +export function deserializeAiStudioAgentSpreadsheetTool( + val: SerializedData, +): AiStudioAgentSpreadsheetTool { + if (!sdIsMap(val)) { + throw new BoxSdkError({ + message: 'Expecting a map for "AiStudioAgentSpreadsheetTool"', + }); + } + if (!(val.model == void 0) && !sdIsString(val.model)) { + throw new BoxSdkError({ + message: + 'Expecting string for "model" of type "AiStudioAgentSpreadsheetTool"', + }); + } + const model: undefined | string = val.model == void 0 ? void 0 : val.model; + if ( + !(val.num_tokens_for_completion == void 0) && + !sdIsNumber(val.num_tokens_for_completion) + ) { + throw new BoxSdkError({ + message: + 'Expecting number for "num_tokens_for_completion" of type "AiStudioAgentSpreadsheetTool"', + }); + } + const numTokensForCompletion: undefined | number = + val.num_tokens_for_completion == void 0 + ? void 0 + : val.num_tokens_for_completion; + const llmEndpointParams: undefined | AiLlmEndpointParams = + val.llm_endpoint_params == void 0 + ? void 0 + : deserializeAiLlmEndpointParams(val.llm_endpoint_params); + return { + model: model, + numTokensForCompletion: numTokensForCompletion, + llmEndpointParams: llmEndpointParams, + } satisfies AiStudioAgentSpreadsheetTool; +} diff --git a/src/schemas/aiStudioAgentSpreadsheetToolResponse.generated.ts b/src/schemas/aiStudioAgentSpreadsheetToolResponse.generated.ts new file mode 100644 index 00000000..d5da3e6a --- /dev/null +++ b/src/schemas/aiStudioAgentSpreadsheetToolResponse.generated.ts @@ -0,0 +1,103 @@ +import { serializeAiLlmEndpointParams } from './aiLlmEndpointParams.generated.js'; +import { deserializeAiLlmEndpointParams } from './aiLlmEndpointParams.generated.js'; +import { serializeAiAgentSpreadsheetTool } from './aiAgentSpreadsheetTool.generated.js'; +import { deserializeAiAgentSpreadsheetTool } from './aiAgentSpreadsheetTool.generated.js'; +import { serializeAiStudioAgentSpreadsheetTool } from './aiStudioAgentSpreadsheetTool.generated.js'; +import { deserializeAiStudioAgentSpreadsheetTool } from './aiStudioAgentSpreadsheetTool.generated.js'; +import { AiLlmEndpointParams } from './aiLlmEndpointParams.generated.js'; +import { AiAgentSpreadsheetTool } from './aiAgentSpreadsheetTool.generated.js'; +import { AiStudioAgentSpreadsheetTool } from './aiStudioAgentSpreadsheetTool.generated.js'; +import { BoxSdkError } from '../box/errors.js'; +import { SerializedData } from '../serialization/json.js'; +import { sdIsEmpty } from '../serialization/json.js'; +import { sdIsBoolean } from '../serialization/json.js'; +import { sdIsNumber } from '../serialization/json.js'; +import { sdIsString } from '../serialization/json.js'; +import { sdIsList } from '../serialization/json.js'; +import { sdIsMap } from '../serialization/json.js'; +export type AiStudioAgentSpreadsheetToolResponse = + AiStudioAgentSpreadsheetTool & { + /** + * Warnings concerning tool. */ + readonly warnings?: readonly string[]; + }; +export function serializeAiStudioAgentSpreadsheetToolResponse( + val: AiStudioAgentSpreadsheetToolResponse, +): SerializedData { + const base: any = serializeAiStudioAgentSpreadsheetTool(val); + if (!sdIsMap(base)) { + throw new BoxSdkError({ + message: 'Expecting a map for "AiStudioAgentSpreadsheetToolResponse"', + }); + } + return { + ...base, + ...{ + ['warnings']: + val.warnings == void 0 + ? val.warnings + : (val.warnings.map(function (item: string): SerializedData { + return item; + }) as readonly any[]), + }, + }; +} +export function deserializeAiStudioAgentSpreadsheetToolResponse( + val: SerializedData, +): AiStudioAgentSpreadsheetToolResponse { + if (!sdIsMap(val)) { + throw new BoxSdkError({ + message: 'Expecting a map for "AiStudioAgentSpreadsheetToolResponse"', + }); + } + if (!(val.warnings == void 0) && !sdIsList(val.warnings)) { + throw new BoxSdkError({ + message: + 'Expecting array for "warnings" of type "AiStudioAgentSpreadsheetToolResponse"', + }); + } + const warnings: undefined | readonly string[] = + val.warnings == void 0 + ? void 0 + : sdIsList(val.warnings) + ? (val.warnings.map(function (itm: SerializedData): string { + if (!sdIsString(itm)) { + throw new BoxSdkError({ + message: + 'Expecting string for "AiStudioAgentSpreadsheetToolResponse"', + }); + } + return itm; + }) as readonly any[]) + : []; + if (!(val.model == void 0) && !sdIsString(val.model)) { + throw new BoxSdkError({ + message: + 'Expecting string for "model" of type "AiStudioAgentSpreadsheetToolResponse"', + }); + } + const model: undefined | string = val.model == void 0 ? void 0 : val.model; + if ( + !(val.num_tokens_for_completion == void 0) && + !sdIsNumber(val.num_tokens_for_completion) + ) { + throw new BoxSdkError({ + message: + 'Expecting number for "num_tokens_for_completion" of type "AiStudioAgentSpreadsheetToolResponse"', + }); + } + const numTokensForCompletion: undefined | number = + val.num_tokens_for_completion == void 0 + ? void 0 + : val.num_tokens_for_completion; + const llmEndpointParams: undefined | AiLlmEndpointParams = + val.llm_endpoint_params == void 0 + ? void 0 + : deserializeAiLlmEndpointParams(val.llm_endpoint_params); + return { + warnings: warnings, + model: model, + numTokensForCompletion: numTokensForCompletion, + llmEndpointParams: llmEndpointParams, + } satisfies AiStudioAgentSpreadsheetToolResponse; +} diff --git a/src/schemas/aiStudioAgentTextGen.generated.ts b/src/schemas/aiStudioAgentTextGen.generated.ts index 9ee95c4d..bf90887c 100644 --- a/src/schemas/aiStudioAgentTextGen.generated.ts +++ b/src/schemas/aiStudioAgentTextGen.generated.ts @@ -19,11 +19,14 @@ export class AiStudioAgentTextGen { * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState!: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description!: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; + /** + * Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed. */ + readonly suggestedQuestions?: readonly string[]; readonly basicGen?: AiStudioAgentBasicGenTool; readonly rawData?: SerializedData; constructor( @@ -42,6 +45,9 @@ export class AiStudioAgentTextGen { if (fields.customInstructions !== undefined) { this.customInstructions = fields.customInstructions; } + if (fields.suggestedQuestions !== undefined) { + this.suggestedQuestions = fields.suggestedQuestions; + } if (fields.basicGen !== undefined) { this.basicGen = fields.basicGen; } @@ -58,11 +64,14 @@ export interface AiStudioAgentTextGenInput { * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; + /** + * Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed. */ + readonly suggestedQuestions?: readonly string[]; readonly basicGen?: AiStudioAgentBasicGenTool; readonly rawData?: SerializedData; } @@ -89,6 +98,12 @@ export function serializeAiStudioAgentTextGen( ['access_state']: val.accessState, ['description']: val.description, ['custom_instructions']: val.customInstructions, + ['suggested_questions']: + val.suggestedQuestions == void 0 + ? val.suggestedQuestions + : (val.suggestedQuestions.map(function (item: string): SerializedData { + return item; + }) as readonly any[]), ['basic_gen']: val.basicGen == void 0 ? val.basicGen @@ -147,6 +162,28 @@ export function deserializeAiStudioAgentTextGen( } const customInstructions: undefined | string = val.custom_instructions == void 0 ? void 0 : val.custom_instructions; + if ( + !(val.suggested_questions == void 0) && + !sdIsList(val.suggested_questions) + ) { + throw new BoxSdkError({ + message: + 'Expecting array for "suggested_questions" of type "AiStudioAgentTextGen"', + }); + } + const suggestedQuestions: undefined | readonly string[] = + val.suggested_questions == void 0 + ? void 0 + : sdIsList(val.suggested_questions) + ? (val.suggested_questions.map(function (itm: SerializedData): string { + if (!sdIsString(itm)) { + throw new BoxSdkError({ + message: 'Expecting string for "AiStudioAgentTextGen"', + }); + } + return itm; + }) as readonly any[]) + : []; const basicGen: undefined | AiStudioAgentBasicGenTool = val.basic_gen == void 0 ? void 0 @@ -156,6 +193,7 @@ export function deserializeAiStudioAgentTextGen( accessState: accessState, description: description, customInstructions: customInstructions, + suggestedQuestions: suggestedQuestions, basicGen: basicGen, } satisfies AiStudioAgentTextGen; } @@ -170,6 +208,12 @@ export function serializeAiStudioAgentTextGenInput( ['access_state']: val.accessState, ['description']: val.description, ['custom_instructions']: val.customInstructions, + ['suggested_questions']: + val.suggestedQuestions == void 0 + ? val.suggestedQuestions + : (val.suggestedQuestions.map(function (item: string): SerializedData { + return item; + }) as readonly any[]), ['basic_gen']: val.basicGen == void 0 ? val.basicGen @@ -225,6 +269,28 @@ export function deserializeAiStudioAgentTextGenInput( } const customInstructions: undefined | string = val.custom_instructions == void 0 ? void 0 : val.custom_instructions; + if ( + !(val.suggested_questions == void 0) && + !sdIsList(val.suggested_questions) + ) { + throw new BoxSdkError({ + message: + 'Expecting array for "suggested_questions" of type "AiStudioAgentTextGenInput"', + }); + } + const suggestedQuestions: undefined | readonly string[] = + val.suggested_questions == void 0 + ? void 0 + : sdIsList(val.suggested_questions) + ? (val.suggested_questions.map(function (itm: SerializedData): string { + if (!sdIsString(itm)) { + throw new BoxSdkError({ + message: 'Expecting string for "AiStudioAgentTextGenInput"', + }); + } + return itm; + }) as readonly any[]) + : []; const basicGen: undefined | AiStudioAgentBasicGenTool = val.basic_gen == void 0 ? void 0 @@ -234,6 +300,7 @@ export function deserializeAiStudioAgentTextGenInput( accessState: accessState, description: description, customInstructions: customInstructions, + suggestedQuestions: suggestedQuestions, basicGen: basicGen, } satisfies AiStudioAgentTextGenInput; } diff --git a/src/schemas/aiStudioAgentTextGenResponse.generated.ts b/src/schemas/aiStudioAgentTextGenResponse.generated.ts index 9cb58b77..222ed0b4 100644 --- a/src/schemas/aiStudioAgentTextGenResponse.generated.ts +++ b/src/schemas/aiStudioAgentTextGenResponse.generated.ts @@ -19,11 +19,14 @@ export class AiStudioAgentTextGenResponse { * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState!: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description!: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; + /** + * Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed. */ + readonly suggestedQuestions?: readonly string[]; readonly basicGen?: AiStudioAgentBasicGenToolResponse; readonly rawData?: SerializedData; constructor( @@ -42,6 +45,9 @@ export class AiStudioAgentTextGenResponse { if (fields.customInstructions !== undefined) { this.customInstructions = fields.customInstructions; } + if (fields.suggestedQuestions !== undefined) { + this.suggestedQuestions = fields.suggestedQuestions; + } if (fields.basicGen !== undefined) { this.basicGen = fields.basicGen; } @@ -58,11 +64,14 @@ export interface AiStudioAgentTextGenResponseInput { * The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */ readonly accessState: string; /** - * The description of the AI Agent. */ + * The description of the AI agent. */ readonly description: string; /** - * Custom instructions for the agent. */ + * Custom instructions for the AI agent. */ readonly customInstructions?: string | null; + /** + * Suggested questions for the AI agent. If null, suggested question will be generated. If empty, no suggested questions will be displayed. */ + readonly suggestedQuestions?: readonly string[]; readonly basicGen?: AiStudioAgentBasicGenToolResponse; readonly rawData?: SerializedData; } @@ -89,6 +98,12 @@ export function serializeAiStudioAgentTextGenResponse( ['access_state']: val.accessState, ['description']: val.description, ['custom_instructions']: val.customInstructions, + ['suggested_questions']: + val.suggestedQuestions == void 0 + ? val.suggestedQuestions + : (val.suggestedQuestions.map(function (item: string): SerializedData { + return item; + }) as readonly any[]), ['basic_gen']: val.basicGen == void 0 ? val.basicGen @@ -148,6 +163,28 @@ export function deserializeAiStudioAgentTextGenResponse( } const customInstructions: undefined | string = val.custom_instructions == void 0 ? void 0 : val.custom_instructions; + if ( + !(val.suggested_questions == void 0) && + !sdIsList(val.suggested_questions) + ) { + throw new BoxSdkError({ + message: + 'Expecting array for "suggested_questions" of type "AiStudioAgentTextGenResponse"', + }); + } + const suggestedQuestions: undefined | readonly string[] = + val.suggested_questions == void 0 + ? void 0 + : sdIsList(val.suggested_questions) + ? (val.suggested_questions.map(function (itm: SerializedData): string { + if (!sdIsString(itm)) { + throw new BoxSdkError({ + message: 'Expecting string for "AiStudioAgentTextGenResponse"', + }); + } + return itm; + }) as readonly any[]) + : []; const basicGen: undefined | AiStudioAgentBasicGenToolResponse = val.basic_gen == void 0 ? void 0 @@ -157,6 +194,7 @@ export function deserializeAiStudioAgentTextGenResponse( accessState: accessState, description: description, customInstructions: customInstructions, + suggestedQuestions: suggestedQuestions, basicGen: basicGen, } satisfies AiStudioAgentTextGenResponse; } @@ -171,6 +209,12 @@ export function serializeAiStudioAgentTextGenResponseInput( ['access_state']: val.accessState, ['description']: val.description, ['custom_instructions']: val.customInstructions, + ['suggested_questions']: + val.suggestedQuestions == void 0 + ? val.suggestedQuestions + : (val.suggestedQuestions.map(function (item: string): SerializedData { + return item; + }) as readonly any[]), ['basic_gen']: val.basicGen == void 0 ? val.basicGen @@ -226,6 +270,29 @@ export function deserializeAiStudioAgentTextGenResponseInput( } const customInstructions: undefined | string = val.custom_instructions == void 0 ? void 0 : val.custom_instructions; + if ( + !(val.suggested_questions == void 0) && + !sdIsList(val.suggested_questions) + ) { + throw new BoxSdkError({ + message: + 'Expecting array for "suggested_questions" of type "AiStudioAgentTextGenResponseInput"', + }); + } + const suggestedQuestions: undefined | readonly string[] = + val.suggested_questions == void 0 + ? void 0 + : sdIsList(val.suggested_questions) + ? (val.suggested_questions.map(function (itm: SerializedData): string { + if (!sdIsString(itm)) { + throw new BoxSdkError({ + message: + 'Expecting string for "AiStudioAgentTextGenResponseInput"', + }); + } + return itm; + }) as readonly any[]) + : []; const basicGen: undefined | AiStudioAgentBasicGenToolResponse = val.basic_gen == void 0 ? void 0 @@ -235,6 +302,7 @@ export function deserializeAiStudioAgentTextGenResponseInput( accessState: accessState, description: description, customInstructions: customInstructions, + suggestedQuestions: suggestedQuestions, basicGen: basicGen, } satisfies AiStudioAgentTextGenResponseInput; }