From 48a6c90c5cefec5c4e67d7b0547c4543519af368 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 10 Jun 2026 07:00:06 -0700 Subject: [PATCH 1/5] Revert "feat: add direct link url to search files by keyword tool (box/box-codegen#956)" (box/box-codegen#958) --- .codegen.json | 2 +- package-lock.json | 266 +++++++++++++++++++++++----------------------- 2 files changed, 134 insertions(+), 134 deletions(-) diff --git a/.codegen.json b/.codegen.json index ce568461..ce8cbc72 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "b8db85c", "specHash": "d028758", "version": "10.11.1" } +{ "engineHash": "cf31ea9", "specHash": "d028758", "version": "10.11.1" } diff --git a/package-lock.json b/package-lock.json index b94a0c3b..f6208c58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1122,9 +1122,9 @@ } }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.61.0.tgz", - "integrity": "sha512-dnxczajOqt0gesZlN5pGQ1s1imQVrsmCw5G2Ci4oM+0WvNz3pyRnlWrT7McoZIb8VlFwCawdmbWRmxRn7HI+VQ==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.61.1.tgz", + "integrity": "sha512-JnBB8MdXj45cajvTuO5FmPlvFVJRQgvrz1uSEl3NwqFnReAPGwb8EanbGi4z2nRaqLzjJSv5/JmycoTKlRZxHA==", "cpu": [ "arm" ], @@ -1136,9 +1136,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.61.0.tgz", - "integrity": "sha512-Bp3JpGP00Vu3f238ivRrjf7z3xSzVPXqCmaJYA9t2c+c8vKYvOzmXF7LkkeUalTEGd6cZcSWe+PFIP3Vy48fRg==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.61.1.tgz", + "integrity": "sha512-Jx2g7iSjw4AOT0HDPHM9RV3GNjRXwybWtSFZiZAYUTjUwjVrYIwq3kBf+LnhqJlzXFAqTAh2F7IGI+O568exPw==", "cpu": [ "arm64" ], @@ -1150,9 +1150,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.61.0.tgz", - "integrity": "sha512-zaYIpr670mUmmZ1tVzUFplbQbG7h3Gugx3L5FoqhsC2m/YnLlR1a7zVLmXNPy+iY1tFPEbNG+HHBXZGyId0G5w==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.61.1.tgz", + "integrity": "sha512-0F1L/Z3Eqv8mT2n3dCpeO8GcTvHvVqkP5/t6DMsn0KzhYVcg+s7Ncl5DS8qjKYEeio6Az0Gt6nyBORay5qIlCA==", "cpu": [ "arm64" ], @@ -1164,9 +1164,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.61.0.tgz", - "integrity": "sha512-+P49fvkv2dSoeevUW+lgZ/I2JHSsJCK1Lyjj7Cu6E4UHG4tS9XIefzIjo5qhgELjAclnen1rLzK2PMKJdo+Dyg==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.61.1.tgz", + "integrity": "sha512-qLttcH871ujY4YcVfUSShhOw+CsoTatYz8gRbHO7Bb92QH059/P0y5do1KMs41fY0BpD2x4AJH/gID0zFiqVKQ==", "cpu": [ "x64" ], @@ -1178,9 +1178,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.61.0.tgz", - "integrity": "sha512-l3FAAOyKJXH2ea6KNFN+MMgC/rnE94YGLXs2ehYqDcCoHt1DpvgWX75BhUJxN38XojP7Ul+4H8PRn7EdyqSDrw==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.61.1.tgz", + "integrity": "sha512-fUI4RapGE0Oh3mb8mgfvC1O2nU1RpDZUKnDQm3xB1Ipg7C2wTs5Kstz7G2uWK99a8S2yTMq8/P4uycwNa0nJyw==", "cpu": [ "arm64" ], @@ -1192,9 +1192,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.61.0.tgz", - "integrity": "sha512-VokPN3TSctKj65cyCNPaUh4vMFA8awxOot/0sp+4J7ZlNRKQEhXhawqPwajoi8H5ZFt61i0ugZJuTKXBjGJ17Q==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.61.1.tgz", + "integrity": "sha512-H5YrdvJaDtI/U9/emrD4b++xkvp3y/JvOe4rizHbxvkyMfRS/CiRYdji+Pl8D0brEaNFWUh1drQxgAGIl6Xudw==", "cpu": [ "x64" ], @@ -1206,9 +1206,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.61.0.tgz", - "integrity": "sha512-DxH0P3wxm+Yzs/p3zrk9dw1rURu8p0Nv5+MRK/L7OtnLNg5rLZraSBFZ8iUXOd9f2BlhJyEpIZUH/emjq4UJ4g==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.61.1.tgz", + "integrity": "sha512-Q8CBCCQtDFrYtXoeUXSrnFXKOnyUhx6bz+SkL6A0E7V8kAiCJ5pamq1WtbfpVGhR5TSpXY6ak3avmDc5fHTyJA==", "cpu": [ "arm" ], @@ -1220,9 +1220,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.61.0.tgz", - "integrity": "sha512-T6ZvMNe84kAz6TBWHC7hGAoEtzP1LWYw/AqayGWEF6uISt3Abk/st06LqRD9THd7Xz3NxzurUpzAuEAUbZf+nw==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.61.1.tgz", + "integrity": "sha512-nwnhk1581l0FBVellGcVCAT0Oi06onEA3WB53sf01VO3I0UPBkMH9sXONYME2K0ovXcNayJfNtHfm6mpJElatQ==", "cpu": [ "arm" ], @@ -1234,9 +1234,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.61.0.tgz", - "integrity": "sha512-q/4hzvQkDs8b4jIBab1pnLiiM0ayTZsN2amBFPDzuyZxjEd4wDwx0UJFYM3cOZzSf5Kw8fnWSprJzIBMkcR44Q==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.61.1.tgz", + "integrity": "sha512-x5Xr49hwt3hdW75UOZm3395YwwzPyauktslv29KpWL/T+vVAzoT3azLcTWv0eMciBNrx+DYjH4paehHoLpPvpg==", "cpu": [ "arm64" ], @@ -1248,9 +1248,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.61.0.tgz", - "integrity": "sha512-vvYWX3akdEAY6km+9wAqFDnk6pQsbJKVnj7xawcvs/+fdlYBGp+U+Qq/lLfpIxYIZvZLHMAKD9HLdacSx/r3dw==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.61.1.tgz", + "integrity": "sha512-unMS3H73DpaoPyyEVPjGKleM/s0mkmsauTENpw4INQY8y4+IuLNjkueQ5QCtC0D3N38Y38yhAU8OoZ20S2Tm6w==", "cpu": [ "arm64" ], @@ -1262,9 +1262,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.61.0.tgz", - "integrity": "sha512-DePa5cqOxDP/Zp0VOXpeWaGew5iIv5DXp9NYbzkX5PFQyWVX9184WCTh3hvr/7lhXo8ZVlbFLkz8+o/q1dU6gA==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.61.1.tgz", + "integrity": "sha512-zNZzGRnAhwjFEYmvphJRV5XaQGjs62cCmeYYHUT//NbvEnHauw+I85nGG+SiVg5ld4GX8D1IbKIX+ozITQnhMQ==", "cpu": [ "loong64" ], @@ -1276,9 +1276,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.61.0.tgz", - "integrity": "sha512-LV8aWMB8UChglMCEzs7RkN0GsH29RJaLLqwm9fCIjlqwxQTiWAqNcc7wjBkH31hV0PU/yVxGYvrYsgfea2qw6g==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.61.1.tgz", + "integrity": "sha512-LdpWGL8X209B2SIvWjqlc8VZgM6PKfontSerGepuldQmHYrAOtnMCXeJkxXGbC+PPZVOuu5czJo7fNV6aeW8rQ==", "cpu": [ "loong64" ], @@ -1290,9 +1290,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.61.0.tgz", - "integrity": "sha512-QoNSnwQtaeNu5grdBbsL0tt1uyl5EnS8DA8Mr3nluMXbhdQNyhN+G4tBax7VCdxLKj8YJ0/4OO9Ho84jMnJtKA==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.61.1.tgz", + "integrity": "sha512-EC5kTtNaNGOmbMGqar8dvJy6y/hg99GAwjfBz++pxZhQATXGcRjd6c5en5wcbru0vkRmiMGsQKdMJOOf6sza4g==", "cpu": [ "ppc64" ], @@ -1304,9 +1304,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.61.0.tgz", - "integrity": "sha512-/zZp5MKapIIApE8trN8qLGNSiRN9TUoaUZ1cmVu4XnVdd5LQLOXTtyi+vtfUbNnT3iyjzpPqYeKXmvJ+gJGYWw==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.61.1.tgz", + "integrity": "sha512-8hiwp6D4acEcNK78I4rP0/XtS1sknWIAMJBPdR4l6zUtyTm5KiTDr5bXmWt4foY7nAN7AThDHgkLIEZOWKbzWw==", "cpu": [ "ppc64" ], @@ -1318,9 +1318,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.61.0.tgz", - "integrity": "sha512-RbrzcD3aJ1k3UbtMRRBNwojdVVyXjuVAFTfn/xPa6EEl6GE9Sm/akPgFTb9aAC9pMKGJ6CtWxaGrqWcabH+ySg==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.61.1.tgz", + "integrity": "sha512-10dh/h/BqA7DuMPWSxkR8uks18FRwnwOEqr5zOTEl+NOwP/OMzKX8OFR/Of9xxDA7D5qef1Nzar5WDD2kCCr1g==", "cpu": [ "riscv64" ], @@ -1332,9 +1332,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.61.0.tgz", - "integrity": "sha512-ZF+onDsBso8PJf1XaG9lB+O9RnBpKGnY6OrzC4CSHrtC1jb6jWLTKK4bRqdoCXHd22gyr2hiYmEAm8Wns/BOCw==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.61.1.tgz", + "integrity": "sha512-YKJ5lg35DP17gcAOggnihe+APw9HLyj1Xn7gsmGumBJAUDa6NGXNixJzmkWLhcK9TOuuyQjdamzvJefkO7qHZQ==", "cpu": [ "riscv64" ], @@ -1346,9 +1346,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.61.0.tgz", - "integrity": "sha512-Atk0aSIk5Zx2Wuh9dgRQgLP0Koc8hOeYpbWryMXyk8G8/HmPkwPPkMqIIDhrXHHYqfUzSJA/I7IWSBv8xSmRBA==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.61.1.tgz", + "integrity": "sha512-Mlil5G2Jj6a7B3LWGctg+XPL9vdXYuzCtNXfxOQ0nPjc2m6ueUktocPGH9bnAM0bNRKb/bAWTujUU7IJQdQA+g==", "cpu": [ "s390x" ], @@ -1360,9 +1360,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.61.0.tgz", - "integrity": "sha512-0uMOcf3eZ5K+K4cYHkdxShFMPlPXCOdfDFEFn9dNYAEEd2cVvmOfH7zFgRVoDgmtQ1m9k5q7qfrHzyMAubKYUA==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.61.1.tgz", + "integrity": "sha512-bVWIOIk6pV01p4CdUbPP7CJ/434z+OooYjDuFcR+44N35YvKUC66G8MGnvcWx5mWKW3g61J+t74l3Kj15Kwn2Q==", "cpu": [ "x64" ], @@ -1374,9 +1374,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.61.0.tgz", - "integrity": "sha512-mvFtE4A/t/7hRJ7X8Ozmu8FsIkAUat2nzl12pgU337BRmq87AQUJztwHz2Zv5/tjo9/C95E66CK03SI/ToEDJw==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.61.1.tgz", + "integrity": "sha512-qy5pBvZbqNFheBz61R1rzsezjm0J7O2oNGoWtGoY89SZYLUfxAJTBAqDChqAIdB4rCiIbi9nF7yZ83GnNiLwSw==", "cpu": [ "x64" ], @@ -1388,9 +1388,9 @@ ] }, "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.61.0.tgz", - "integrity": "sha512-z9b9+aTxvt8n2rNltMPvyaUfB8NJ+CVyOrGK/MdIKHx7B+lXmZpm/XbRsU7Rpf3fRqJ2uS6mBJiJveCtq8LHDg==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.61.1.tgz", + "integrity": "sha512-E83TXjI4zm0+5f2qO+UOudaCYIhYwpJ5jq6YCZNIZ+6CbfhKrkAGezeiASBL9ElxAxFsRS9ZhESv8mfnj6TKeg==", "cpu": [ "x64" ], @@ -1402,9 +1402,9 @@ ] }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.61.0.tgz", - "integrity": "sha512-jXaXFqKMehsOc+g8R6oo33RRC6w07G9jDBxAE5eAKX7mOcCbZloYIPNhfG9Wl+P9O9IWHFO4OJgPi1Ml2qkt7w==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.61.1.tgz", + "integrity": "sha512-fbWnKqVkjrJN38vNe3ahkbk6iejS/3b0Nt7EEtPpE6RBacZcGXNKbzfHN3GUUlXOPghUg0j6XUGrtjX9z1sIvA==", "cpu": [ "arm64" ], @@ -1416,9 +1416,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.61.0.tgz", - "integrity": "sha512-OXNWVFocS2IA4+QplhTZZ2a+8hPZR7T8KuozsNmJKK8y7cp83StHvGksfHzPG3wczWTczyWHVQuqeiTUbjiyBg==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.61.1.tgz", + "integrity": "sha512-ArMl38iVAbk0New1ogihQNY6iphLi4ZaRsa037gUzv5yeKPY8TD3Dmy4x2RNC1VztU/uqm+G+/RwFrSka3Oy2g==", "cpu": [ "arm64" ], @@ -1430,9 +1430,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.61.0.tgz", - "integrity": "sha512-AlAbNtBO637LxSldqV43z0FfXoGfl2TW1DgAg/bs7aQswFbDewz2SJm3BUhiGfbOVtW571xbc9p+REdxhyN/Eg==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.61.1.tgz", + "integrity": "sha512-0mYtjHS9ucAbcATycCNK9IGBk/cCe/ma7EmSLGZdsxnOA8cjRIyU04wDpVAD9NiOfLUR9KTxdiO53uOkherqjQ==", "cpu": [ "ia32" ], @@ -1444,9 +1444,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.61.0.tgz", - "integrity": "sha512-QRSrQXyJ1M4tjNXdR0/G/IgV6lzfQQJYBjlWIEYkY2Xs86DRl/iEpQ4blMDjJxSl7n19eDKKXMg0AmuBVYy8pQ==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.61.1.tgz", + "integrity": "sha512-gK1iCEPfpoSG9wfBihXxvBMi8ZfcWffYkEsC/Eih+iFENTaewvNcrEQ69lIOWYO5pePHKLHHO7nq5AILGO/HQQ==", "cpu": [ "x64" ], @@ -1458,9 +1458,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.61.0.tgz", - "integrity": "sha512-tkuFxhvKO/HlGd0VsINF6vHSYH8AF8W0TcNxKDK6JZmrehngFj78pToc8iemtnvwilDjs2G/qSzYFhe9U8q+fw==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.61.1.tgz", + "integrity": "sha512-X+zaP2x+j4RXGfbp/seSoRHWnPxzApilDszisZxbYH5C/jTxFhCtDNdPGZb9lJyYPs24wGxruPF7Y+sIXt9Gzw==", "cpu": [ "x64" ], @@ -1613,9 +1613,9 @@ "peer": true }, "node_modules/@types/node": { - "version": "25.9.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.1.tgz", - "integrity": "sha512-xfrlY7UD5rMJk3ZVJP8BNzS28J36YJg+xp+LPXV1TdWxr8uMH5A860QNxYDGQe/ylDSgjxE52Q9VnO7p75tJxg==", + "version": "25.9.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.2.tgz", + "integrity": "sha512-G05zqtJhcDLb8uslf5EjCxXg9G1KQxiV8OS0R26IC//Eoyitzqe8z37I7cqvnZlrlSfgocQRfSn/AHBZJJFyGw==", "dev": true, "license": "MIT", "dependencies": { @@ -2202,9 +2202,9 @@ "license": "MIT" }, "node_modules/baseline-browser-mapping": { - "version": "2.10.33", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.33.tgz", - "integrity": "sha512-bA6+tcSLpz2tIEdDXZPpPTIuxBcC4+w6SieaYyfigIa4h8GlFxbA17v22Vx3JUtuZQj9SgOsnbK+aTBzyDyEuw==", + "version": "2.10.35", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.35.tgz", + "integrity": "sha512-honAfLBde0HAFLdNyBEfuuENkF6zR+ozxqxa/2zJKHBe1qzLqyTSeRKpdPEHAP03rlDGyQOPnCSxnVpVqQo9Mg==", "dev": true, "license": "Apache-2.0", "bin": { @@ -2381,9 +2381,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001793", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001793.tgz", - "integrity": "sha512-iwSsYWaCOoh26cV8NwNRViHlrfUvYsHDfRVcbtmw0Kg6PJIZZXwMkj1442FYLBGkeUf1juAsU3DTfxW579mrPA==", + "version": "1.0.30001797", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001797.tgz", + "integrity": "sha512-l8xKG+gwAIExZGl9FrF7KUwuOmk6wbEPC9Xoy/RtnWv1XG0Q4LFlagaLpUv3Kiza3W/wm27zy0yWJEieYKAP6w==", "dev": true, "funding": [ { @@ -2742,9 +2742,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.366", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.366.tgz", - "integrity": "sha512-OlRuhb688YTCzzU3gXPLn6nGyd+F+53INE1qaKKlu6kETErE8FYsyDh0XqXEU+uBRn0MpCzz2vfNwORhkap8qg==", + "version": "1.5.371", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.371.tgz", + "integrity": "sha512-e9htk9mAYL6AzmkEhSvVVw7IWGSBJ/Bqdn2eRyRLrj1g6sncN4WbFt5qnILYoCktktr45pyjIrOiRvBThQ808w==", "dev": true, "license": "ISC" }, @@ -2769,9 +2769,9 @@ "license": "MIT" }, "node_modules/enhanced-resolve": { - "version": "5.22.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.22.1.tgz", - "integrity": "sha512-6QEuw3zoX1SJQc7b87aBXke/no+mG2bTBgw29gWMQonLmpEkWoCAVkl+M49e48AZlWzxiDzDZzYdp6kobcyLww==", + "version": "5.23.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.23.0.tgz", + "integrity": "sha512-yJN/BOOLxcOW2aQgeif9mSnaUB8KtvmMMp56oA1kx1CRfBKbhZm2pJ+NBY+3eOboHxix8lfjWpHE0Ei5U8RbSA==", "dev": true, "license": "MIT", "dependencies": { @@ -3720,9 +3720,9 @@ } }, "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.1.tgz", - "integrity": "sha512-rkVq3IXh+4FDGch+KwzX3aV9W3kO54GyEgpvBzSyctDA6Xtd7RJQV1xmXbeQp5v7+VzLOfVqiutSE6GICgPFvg==", + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz", + "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==", "dev": true, "license": "ISC", "bin": { @@ -4351,9 +4351,9 @@ } }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.1.tgz", - "integrity": "sha512-rkVq3IXh+4FDGch+KwzX3aV9W3kO54GyEgpvBzSyctDA6Xtd7RJQV1xmXbeQp5v7+VzLOfVqiutSE6GICgPFvg==", + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz", + "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==", "dev": true, "license": "ISC", "bin": { @@ -4647,9 +4647,9 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.1.tgz", - "integrity": "sha512-rkVq3IXh+4FDGch+KwzX3aV9W3kO54GyEgpvBzSyctDA6Xtd7RJQV1xmXbeQp5v7+VzLOfVqiutSE6GICgPFvg==", + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz", + "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==", "dev": true, "license": "ISC", "bin": { @@ -5376,9 +5376,9 @@ } }, "node_modules/rollup": { - "version": "4.61.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.61.0.tgz", - "integrity": "sha512-T9mWdbWfQtp0B5lv/HX+wrhYsmXRlcWnXXmJbXqKJhlRaoS6KMhq0gpyzW4UJfclcxrEdLnTgjT2NjruLONu0g==", + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.61.1.tgz", + "integrity": "sha512-I4KW6iuRpuu2uHBLraZ1wNZe0DP7lnRha+VJ9tNaYVaVgKhW0aI3h4RYnoRPeql0flHm/Co55b7snEDcOfOJrA==", "dev": true, "license": "MIT", "dependencies": { @@ -5392,31 +5392,31 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.61.0", - "@rollup/rollup-android-arm64": "4.61.0", - "@rollup/rollup-darwin-arm64": "4.61.0", - "@rollup/rollup-darwin-x64": "4.61.0", - "@rollup/rollup-freebsd-arm64": "4.61.0", - "@rollup/rollup-freebsd-x64": "4.61.0", - "@rollup/rollup-linux-arm-gnueabihf": "4.61.0", - "@rollup/rollup-linux-arm-musleabihf": "4.61.0", - "@rollup/rollup-linux-arm64-gnu": "4.61.0", - "@rollup/rollup-linux-arm64-musl": "4.61.0", - "@rollup/rollup-linux-loong64-gnu": "4.61.0", - "@rollup/rollup-linux-loong64-musl": "4.61.0", - "@rollup/rollup-linux-ppc64-gnu": "4.61.0", - "@rollup/rollup-linux-ppc64-musl": "4.61.0", - "@rollup/rollup-linux-riscv64-gnu": "4.61.0", - "@rollup/rollup-linux-riscv64-musl": "4.61.0", - "@rollup/rollup-linux-s390x-gnu": "4.61.0", - "@rollup/rollup-linux-x64-gnu": "4.61.0", - "@rollup/rollup-linux-x64-musl": "4.61.0", - "@rollup/rollup-openbsd-x64": "4.61.0", - "@rollup/rollup-openharmony-arm64": "4.61.0", - "@rollup/rollup-win32-arm64-msvc": "4.61.0", - "@rollup/rollup-win32-ia32-msvc": "4.61.0", - "@rollup/rollup-win32-x64-gnu": "4.61.0", - "@rollup/rollup-win32-x64-msvc": "4.61.0", + "@rollup/rollup-android-arm-eabi": "4.61.1", + "@rollup/rollup-android-arm64": "4.61.1", + "@rollup/rollup-darwin-arm64": "4.61.1", + "@rollup/rollup-darwin-x64": "4.61.1", + "@rollup/rollup-freebsd-arm64": "4.61.1", + "@rollup/rollup-freebsd-x64": "4.61.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.61.1", + "@rollup/rollup-linux-arm-musleabihf": "4.61.1", + "@rollup/rollup-linux-arm64-gnu": "4.61.1", + "@rollup/rollup-linux-arm64-musl": "4.61.1", + "@rollup/rollup-linux-loong64-gnu": "4.61.1", + "@rollup/rollup-linux-loong64-musl": "4.61.1", + "@rollup/rollup-linux-ppc64-gnu": "4.61.1", + "@rollup/rollup-linux-ppc64-musl": "4.61.1", + "@rollup/rollup-linux-riscv64-gnu": "4.61.1", + "@rollup/rollup-linux-riscv64-musl": "4.61.1", + "@rollup/rollup-linux-s390x-gnu": "4.61.1", + "@rollup/rollup-linux-x64-gnu": "4.61.1", + "@rollup/rollup-linux-x64-musl": "4.61.1", + "@rollup/rollup-openbsd-x64": "4.61.1", + "@rollup/rollup-openharmony-arm64": "4.61.1", + "@rollup/rollup-win32-arm64-msvc": "4.61.1", + "@rollup/rollup-win32-ia32-msvc": "4.61.1", + "@rollup/rollup-win32-x64-gnu": "4.61.1", + "@rollup/rollup-win32-x64-msvc": "4.61.1", "fsevents": "~2.3.2" } }, @@ -5992,9 +5992,9 @@ } }, "node_modules/ts-jest/node_modules/semver": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.1.tgz", - "integrity": "sha512-rkVq3IXh+4FDGch+KwzX3aV9W3kO54GyEgpvBzSyctDA6Xtd7RJQV1xmXbeQp5v7+VzLOfVqiutSE6GICgPFvg==", + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz", + "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==", "dev": true, "license": "ISC", "bin": { @@ -6045,9 +6045,9 @@ } }, "node_modules/ts-loader/node_modules/semver": { - "version": "7.8.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.1.tgz", - "integrity": "sha512-rkVq3IXh+4FDGch+KwzX3aV9W3kO54GyEgpvBzSyctDA6Xtd7RJQV1xmXbeQp5v7+VzLOfVqiutSE6GICgPFvg==", + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.4.tgz", + "integrity": "sha512-rUCObTnP32Q08R2uuIrt7r9PlEonuTmtuXYcW6s5kjdlj3xbnwe+21yXptAUYcMAABLkYYTtnmzb3w3EDZfueA==", "dev": true, "license": "ISC", "bin": { From a6404096059277a61ab984b5b113908dce61a791 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 10 Jun 2026 07:03:03 -0700 Subject: [PATCH 2/5] chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] --- .codegen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index ce8cbc72..09a98c8e 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "cf31ea9", "specHash": "d028758", "version": "10.11.1" } +{ "engineHash": "a87c352", "specHash": "d028758", "version": "10.11.1" } From baf585287438575ed7178f721f03e18d82ce6a82 Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 10 Jun 2026 07:06:00 -0700 Subject: [PATCH 3/5] feat: Expose in sign request schemas (box/box-openapi#601) --- .codegen.json | 2 +- src/schemas/signRequest.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 09a98c8e..953be76d 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "a87c352", "specHash": "d028758", "version": "10.11.1" } +{ "engineHash": "a87c352", "specHash": "ded99bf", "version": "10.11.1" } diff --git a/src/schemas/signRequest.ts b/src/schemas/signRequest.ts index 8cab7ea6..85478481 100644 --- a/src/schemas/signRequest.ts +++ b/src/schemas/signRequest.ts @@ -103,6 +103,10 @@ export type SignRequest = SignRequestBase & { /** * Timestamp indicating when all signing actions completed. */ readonly finishedAt?: DateTime | null; + /** + * When the sign request is in an error state, identifies the specific + * reason. Null when no error code applies. */ + readonly errorCode?: string | null; /** * The email address of the sender of the sign request. */ readonly senderEmail?: string | null; @@ -285,6 +289,7 @@ export function serializeSignRequest(val: SignRequest): SerializedData { val.finishedAt == void 0 ? val.finishedAt : serializeDateTime(val.finishedAt), + ['error_code']: val.errorCode, ['sender_email']: val.senderEmail, ['sender_id']: val.senderId, }, @@ -397,6 +402,13 @@ export function deserializeSignRequest(val: SerializedData): SignRequest { } const finishedAt: undefined | DateTime = val.finished_at == void 0 ? void 0 : deserializeDateTime(val.finished_at); + if (!(val.error_code == void 0) && !sdIsString(val.error_code)) { + throw new BoxSdkError({ + message: 'Expecting string for "error_code" of type "SignRequest"', + }); + } + const errorCode: undefined | string = + val.error_code == void 0 ? void 0 : val.error_code; if (!(val.sender_email == void 0) && !sdIsString(val.sender_email)) { throw new BoxSdkError({ message: 'Expecting string for "sender_email" of type "SignRequest"', @@ -549,6 +561,7 @@ export function deserializeSignRequest(val: SerializedData): SignRequest { shortId: shortId, createdAt: createdAt, finishedAt: finishedAt, + errorCode: errorCode, senderEmail: senderEmail, senderId: senderId, isDocumentPreparationNeeded: isDocumentPreparationNeeded, From 2634b240cf2595c6a207f48b998bb17d92b10cac Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 10 Jun 2026 07:08:52 -0700 Subject: [PATCH 4/5] feat: Add new parameters to ai extract structured method (box/box-openapi#604) --- .codegen.json | 2 +- docs/userCollaborations.md | 8 +- src/managers/userCollaborations.ts | 8 +- src/schemas/aiExtractFieldOption.ts | 40 +++++++++ src/schemas/aiExtractStructured.ts | 106 +++++++++++++++++++++- src/schemas/aiExtractSubField.ts | 120 +++++++++++++++++++++++++ src/schemas/aiOptionsRules.ts | 65 ++++++++++++++ src/schemas/aiTaxonomyFileReference.ts | 80 +++++++++++++++++ src/schemas/aiTaxonomyReference.ts | 81 +++++++++++++++++ src/schemas/aiTaxonomySource.ts | 40 +++++++++ src/schemas/collaboration.ts | 4 +- src/schemas/index.ts | 8 +- 12 files changed, 547 insertions(+), 15 deletions(-) create mode 100644 src/schemas/aiExtractFieldOption.ts create mode 100644 src/schemas/aiExtractSubField.ts create mode 100644 src/schemas/aiOptionsRules.ts create mode 100644 src/schemas/aiTaxonomyFileReference.ts create mode 100644 src/schemas/aiTaxonomyReference.ts create mode 100644 src/schemas/aiTaxonomySource.ts diff --git a/.codegen.json b/.codegen.json index 953be76d..0cc8cdf2 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "a87c352", "specHash": "ded99bf", "version": "10.11.1" } +{ "engineHash": "a87c352", "specHash": "0ac3d31", "version": "10.11.1" } diff --git a/docs/userCollaborations.md b/docs/userCollaborations.md index a490851d..c2c92543 100644 --- a/docs/userCollaborations.md +++ b/docs/userCollaborations.md @@ -106,12 +106,10 @@ group IDs. If a collaboration is being created with a group, access to this endpoint is dependent on the group's ability to be invited. -If collaboration is in `pending` status, the following fields -are redacted: +If collaboration is in `pending` status, field `name` is redacted when: -- `login` and `name` are hidden if a collaboration was created - using `user_id`, -- `name` is hidden if a collaboration was created using `login`. +- a collaboration was created using `user_id`, +- a collaboration was created using `login`. This operation is performed by calling function `createCollaboration`. diff --git a/src/managers/userCollaborations.ts b/src/managers/userCollaborations.ts index 038f157c..dd5b1ab9 100644 --- a/src/managers/userCollaborations.ts +++ b/src/managers/userCollaborations.ts @@ -592,11 +592,9 @@ export class UserCollaborationsManager { * If a collaboration is being created with a group, access to * this endpoint is dependent on the group's ability to be invited. * - * If collaboration is in `pending` status, the following fields - * are redacted: - * - `login` and `name` are hidden if a collaboration was created - * using `user_id`, - * - `name` is hidden if a collaboration was created using `login`. + * If collaboration is in `pending` status, field `name` is redacted when: + * - a collaboration was created using `user_id`, + * - a collaboration was created using `login`. * @param {CreateCollaborationRequestBody} requestBody Request body of createCollaboration method * @param {CreateCollaborationOptionalsInput} optionalsInput * @returns {Promise} diff --git a/src/schemas/aiExtractFieldOption.ts b/src/schemas/aiExtractFieldOption.ts new file mode 100644 index 00000000..6583e9e3 --- /dev/null +++ b/src/schemas/aiExtractFieldOption.ts @@ -0,0 +1,40 @@ +import { BoxSdkError } from '../box/errors'; +import { SerializedData } from '../serialization/json'; +import { sdIsEmpty } from '../serialization/json'; +import { sdIsBoolean } from '../serialization/json'; +import { sdIsNumber } from '../serialization/json'; +import { sdIsString } from '../serialization/json'; +import { sdIsList } from '../serialization/json'; +import { sdIsMap } from '../serialization/json'; +export interface AiExtractFieldOption { + /** + * A unique identifier for the option. */ + readonly key: string; + readonly rawData?: SerializedData; +} +export function serializeAiExtractFieldOption( + val: AiExtractFieldOption, +): SerializedData { + return { ['key']: val.key }; +} +export function deserializeAiExtractFieldOption( + val: SerializedData, +): AiExtractFieldOption { + if (!sdIsMap(val)) { + throw new BoxSdkError({ + message: 'Expecting a map for "AiExtractFieldOption"', + }); + } + if (val.key == void 0) { + throw new BoxSdkError({ + message: 'Expecting "key" of type "AiExtractFieldOption" to be defined', + }); + } + if (!sdIsString(val.key)) { + throw new BoxSdkError({ + message: 'Expecting string for "key" of type "AiExtractFieldOption"', + }); + } + const key: string = val.key; + return { key: key } satisfies AiExtractFieldOption; +} diff --git a/src/schemas/aiExtractStructured.ts b/src/schemas/aiExtractStructured.ts index 449fde28..7e4020ea 100644 --- a/src/schemas/aiExtractStructured.ts +++ b/src/schemas/aiExtractStructured.ts @@ -2,14 +2,29 @@ import { serializeAiAgentReference } from './aiAgentReference'; import { deserializeAiAgentReference } from './aiAgentReference'; import { serializeAiAgentExtractStructured } from './aiAgentExtractStructured'; import { deserializeAiAgentExtractStructured } from './aiAgentExtractStructured'; +import { serializeAiTaxonomyReference } from './aiTaxonomyReference'; +import { deserializeAiTaxonomyReference } from './aiTaxonomyReference'; +import { serializeAiTaxonomyFileReference } from './aiTaxonomyFileReference'; +import { deserializeAiTaxonomyFileReference } from './aiTaxonomyFileReference'; import { serializeAiItemBase } from './aiItemBase'; import { deserializeAiItemBase } from './aiItemBase'; +import { serializeAiExtractSubField } from './aiExtractSubField'; +import { deserializeAiExtractSubField } from './aiExtractSubField'; +import { serializeAiOptionsRules } from './aiOptionsRules'; +import { deserializeAiOptionsRules } from './aiOptionsRules'; import { serializeAiExtractStructuredAgent } from './aiExtractStructuredAgent'; import { deserializeAiExtractStructuredAgent } from './aiExtractStructuredAgent'; +import { serializeAiTaxonomySource } from './aiTaxonomySource'; +import { deserializeAiTaxonomySource } from './aiTaxonomySource'; import { AiAgentReference } from './aiAgentReference'; import { AiAgentExtractStructured } from './aiAgentExtractStructured'; +import { AiTaxonomyReference } from './aiTaxonomyReference'; +import { AiTaxonomyFileReference } from './aiTaxonomyFileReference'; import { AiItemBase } from './aiItemBase'; +import { AiExtractSubField } from './aiExtractSubField'; +import { AiOptionsRules } from './aiOptionsRules'; import { AiExtractStructuredAgent } from './aiExtractStructuredAgent'; +import { AiTaxonomySource } from './aiTaxonomySource'; import { BoxSdkError } from '../box/errors'; import { SerializedData } from '../serialization/json'; import { sdIsEmpty } from '../serialization/json'; @@ -56,11 +71,21 @@ export interface AiExtractStructuredFieldsField { * The context about the key that may include how to find and format it. */ readonly prompt?: string; /** - * The type of the field. It can include but is not limited to `string`, `float`, `date`, `enum`, and `multiSelect`. */ + * The type of the field. It can include but is not limited to `string`, `float`, `date`, `enum`, `multiSelect`,`taxonomy`, `struct`, and `table`. */ readonly type?: string; /** * A list of options for this field. This is most often used in combination with the `enum` and `multiSelect` field types. */ readonly options?: readonly AiExtractStructuredFieldsOptionsField[]; + /** + * The nested fields for this field. Used with `struct` and `table` field types to define the nested structure. */ + readonly fields?: readonly AiExtractSubField[]; + /** + * The identifier for a taxonomy, which corresponds to the `key` of the taxonomy source. Required if using `taxonomy` type field. */ + readonly taxonomyKey?: string; + /** + * The namespace of the taxonomy source. Required if using `taxonomy` type field from an existing taxonomy. */ + readonly namespace?: string; + readonly optionsRules?: AiOptionsRules; readonly rawData?: SerializedData; } export interface AiExtractStructured { @@ -82,6 +107,10 @@ export interface AiExtractStructured { /** * A flag to indicate whether references for every extracted field should be returned. */ readonly includeReference?: boolean; + /** + * The taxonomy sources to be used for the structured extraction. They can either be an existing file or a taxonomy. + * For your request to work, `fields` must also be provided. `taxonomy_sources` is not supported with `metadata_template`. */ + readonly taxonomySources?: readonly AiTaxonomySource[]; readonly rawData?: SerializedData; } export function serializeAiExtractStructuredMetadataTemplateTypeField( @@ -189,6 +218,18 @@ export function serializeAiExtractStructuredFieldsField( ): SerializedData { return serializeAiExtractStructuredFieldsOptionsField(item); }) as readonly any[]), + ['fields']: + val.fields == void 0 + ? val.fields + : (val.fields.map(function (item: AiExtractSubField): SerializedData { + return serializeAiExtractSubField(item); + }) as readonly any[]), + ['taxonomy_key']: val.taxonomyKey, + ['namespace']: val.namespace, + ['options_rules']: + val.optionsRules == void 0 + ? val.optionsRules + : serializeAiOptionsRules(val.optionsRules), }; } export function deserializeAiExtractStructuredFieldsField( @@ -258,6 +299,40 @@ export function deserializeAiExtractStructuredFieldsField( return deserializeAiExtractStructuredFieldsOptionsField(itm); }) as readonly any[]) : []; + if (!(val.fields == void 0) && !sdIsList(val.fields)) { + throw new BoxSdkError({ + message: + 'Expecting array for "fields" of type "AiExtractStructuredFieldsField"', + }); + } + const fields: undefined | readonly AiExtractSubField[] = + val.fields == void 0 + ? void 0 + : sdIsList(val.fields) + ? (val.fields.map(function (itm: SerializedData): AiExtractSubField { + return deserializeAiExtractSubField(itm); + }) as readonly any[]) + : []; + if (!(val.taxonomy_key == void 0) && !sdIsString(val.taxonomy_key)) { + throw new BoxSdkError({ + message: + 'Expecting string for "taxonomy_key" of type "AiExtractStructuredFieldsField"', + }); + } + const taxonomyKey: undefined | string = + val.taxonomy_key == void 0 ? void 0 : val.taxonomy_key; + if (!(val.namespace == void 0) && !sdIsString(val.namespace)) { + throw new BoxSdkError({ + message: + 'Expecting string for "namespace" of type "AiExtractStructuredFieldsField"', + }); + } + const namespace: undefined | string = + val.namespace == void 0 ? void 0 : val.namespace; + const optionsRules: undefined | AiOptionsRules = + val.options_rules == void 0 + ? void 0 + : deserializeAiOptionsRules(val.options_rules); return { key: key, description: description, @@ -265,6 +340,10 @@ export function deserializeAiExtractStructuredFieldsField( prompt: prompt, type: type, options: options, + fields: fields, + taxonomyKey: taxonomyKey, + namespace: namespace, + optionsRules: optionsRules, } satisfies AiExtractStructuredFieldsField; } export function serializeAiExtractStructured( @@ -294,6 +373,14 @@ export function serializeAiExtractStructured( : serializeAiExtractStructuredAgent(val.aiAgent), ['include_confidence_score']: val.includeConfidenceScore, ['include_reference']: val.includeReference, + ['taxonomy_sources']: + val.taxonomySources == void 0 + ? val.taxonomySources + : (val.taxonomySources.map(function ( + item: AiTaxonomySource, + ): SerializedData { + return serializeAiTaxonomySource(item); + }) as readonly any[]), }; } export function deserializeAiExtractStructured( @@ -368,6 +455,22 @@ export function deserializeAiExtractStructured( } const includeReference: undefined | boolean = val.include_reference == void 0 ? void 0 : val.include_reference; + if (!(val.taxonomy_sources == void 0) && !sdIsList(val.taxonomy_sources)) { + throw new BoxSdkError({ + message: + 'Expecting array for "taxonomy_sources" of type "AiExtractStructured"', + }); + } + const taxonomySources: undefined | readonly AiTaxonomySource[] = + val.taxonomy_sources == void 0 + ? void 0 + : sdIsList(val.taxonomy_sources) + ? (val.taxonomy_sources.map(function ( + itm: SerializedData, + ): AiTaxonomySource { + return deserializeAiTaxonomySource(itm); + }) as readonly any[]) + : []; return { items: items, metadataTemplate: metadataTemplate, @@ -375,5 +478,6 @@ export function deserializeAiExtractStructured( aiAgent: aiAgent, includeConfidenceScore: includeConfidenceScore, includeReference: includeReference, + taxonomySources: taxonomySources, } satisfies AiExtractStructured; } diff --git a/src/schemas/aiExtractSubField.ts b/src/schemas/aiExtractSubField.ts new file mode 100644 index 00000000..9952966f --- /dev/null +++ b/src/schemas/aiExtractSubField.ts @@ -0,0 +1,120 @@ +import { serializeAiExtractFieldOption } from './aiExtractFieldOption'; +import { deserializeAiExtractFieldOption } from './aiExtractFieldOption'; +import { AiExtractFieldOption } from './aiExtractFieldOption'; +import { BoxSdkError } from '../box/errors'; +import { SerializedData } from '../serialization/json'; +import { sdIsEmpty } from '../serialization/json'; +import { sdIsBoolean } from '../serialization/json'; +import { sdIsNumber } from '../serialization/json'; +import { sdIsString } from '../serialization/json'; +import { sdIsList } from '../serialization/json'; +import { sdIsMap } from '../serialization/json'; +export interface AiExtractSubField { + /** + * A unique identifier for the nested field. */ + readonly key: string; + /** + * A description of the nested field. */ + readonly description?: string; + /** + * The display name of the nested field. */ + readonly displayName?: string; + /** + * Context about the nested field that may include how to find and how to format it. */ + readonly prompt?: string; + /** + * The type of the nested field. Allowed types include `string`, `float`, `date`, `number`, `text`, `boolean`, `enum` and `multiSelect`. */ + readonly type?: string; + /** + * A list of options for this nested field. Used with `enum` and `multiSelect` types. */ + readonly options?: readonly AiExtractFieldOption[]; + readonly rawData?: SerializedData; +} +export function serializeAiExtractSubField( + val: AiExtractSubField, +): SerializedData { + return { + ['key']: val.key, + ['description']: val.description, + ['displayName']: val.displayName, + ['prompt']: val.prompt, + ['type']: val.type, + ['options']: + val.options == void 0 + ? val.options + : (val.options.map(function ( + item: AiExtractFieldOption, + ): SerializedData { + return serializeAiExtractFieldOption(item); + }) as readonly any[]), + }; +} +export function deserializeAiExtractSubField( + val: SerializedData, +): AiExtractSubField { + if (!sdIsMap(val)) { + throw new BoxSdkError({ + message: 'Expecting a map for "AiExtractSubField"', + }); + } + if (val.key == void 0) { + throw new BoxSdkError({ + message: 'Expecting "key" of type "AiExtractSubField" to be defined', + }); + } + if (!sdIsString(val.key)) { + throw new BoxSdkError({ + message: 'Expecting string for "key" of type "AiExtractSubField"', + }); + } + const key: string = val.key; + if (!(val.description == void 0) && !sdIsString(val.description)) { + throw new BoxSdkError({ + message: 'Expecting string for "description" of type "AiExtractSubField"', + }); + } + const description: undefined | string = + val.description == void 0 ? void 0 : val.description; + if (!(val.displayName == void 0) && !sdIsString(val.displayName)) { + throw new BoxSdkError({ + message: 'Expecting string for "displayName" of type "AiExtractSubField"', + }); + } + const displayName: undefined | string = + val.displayName == void 0 ? void 0 : val.displayName; + if (!(val.prompt == void 0) && !sdIsString(val.prompt)) { + throw new BoxSdkError({ + message: 'Expecting string for "prompt" of type "AiExtractSubField"', + }); + } + const prompt: undefined | string = val.prompt == void 0 ? void 0 : val.prompt; + if (!(val.type == void 0) && !sdIsString(val.type)) { + throw new BoxSdkError({ + message: 'Expecting string for "type" of type "AiExtractSubField"', + }); + } + const type: undefined | string = val.type == void 0 ? void 0 : val.type; + if (!(val.options == void 0) && !sdIsList(val.options)) { + throw new BoxSdkError({ + message: 'Expecting array for "options" of type "AiExtractSubField"', + }); + } + const options: undefined | readonly AiExtractFieldOption[] = + val.options == void 0 + ? void 0 + : sdIsList(val.options) + ? (val.options.map(function ( + itm: SerializedData, + ): AiExtractFieldOption { + return deserializeAiExtractFieldOption(itm); + }) as readonly any[]) + : []; + return { + key: key, + description: description, + displayName: displayName, + prompt: prompt, + type: type, + options: options, + } satisfies AiExtractSubField; +} diff --git a/src/schemas/aiOptionsRules.ts b/src/schemas/aiOptionsRules.ts new file mode 100644 index 00000000..bbde0d9c --- /dev/null +++ b/src/schemas/aiOptionsRules.ts @@ -0,0 +1,65 @@ +import { BoxSdkError } from '../box/errors'; +import { SerializedData } from '../serialization/json'; +import { sdIsEmpty } from '../serialization/json'; +import { sdIsBoolean } from '../serialization/json'; +import { sdIsNumber } from '../serialization/json'; +import { sdIsString } from '../serialization/json'; +import { sdIsList } from '../serialization/json'; +import { sdIsMap } from '../serialization/json'; +export interface AiOptionsRules { + /** + * Indicates whether the field is a multi-select field. + * If true, the field can have multiple values. */ + readonly multiSelect?: boolean; + /** + * The selectable levels for the field. + * This is used to limit the levels of the taxonomy that can be selected. */ + readonly selectableLevels?: readonly number[]; + readonly rawData?: SerializedData; +} +export function serializeAiOptionsRules(val: AiOptionsRules): SerializedData { + return { + ['multi_select']: val.multiSelect, + ['selectable_levels']: + val.selectableLevels == void 0 + ? val.selectableLevels + : (val.selectableLevels.map(function (item: number): SerializedData { + return item; + }) as readonly any[]), + }; +} +export function deserializeAiOptionsRules(val: SerializedData): AiOptionsRules { + if (!sdIsMap(val)) { + throw new BoxSdkError({ message: 'Expecting a map for "AiOptionsRules"' }); + } + if (!(val.multi_select == void 0) && !sdIsBoolean(val.multi_select)) { + throw new BoxSdkError({ + message: 'Expecting boolean for "multi_select" of type "AiOptionsRules"', + }); + } + const multiSelect: undefined | boolean = + val.multi_select == void 0 ? void 0 : val.multi_select; + if (!(val.selectable_levels == void 0) && !sdIsList(val.selectable_levels)) { + throw new BoxSdkError({ + message: + 'Expecting array for "selectable_levels" of type "AiOptionsRules"', + }); + } + const selectableLevels: undefined | readonly number[] = + val.selectable_levels == void 0 + ? void 0 + : sdIsList(val.selectable_levels) + ? (val.selectable_levels.map(function (itm: SerializedData): number { + if (!sdIsNumber(itm)) { + throw new BoxSdkError({ + message: 'Expecting number for "AiOptionsRules"', + }); + } + return itm; + }) as readonly any[]) + : []; + return { + multiSelect: multiSelect, + selectableLevels: selectableLevels, + } satisfies AiOptionsRules; +} diff --git a/src/schemas/aiTaxonomyFileReference.ts b/src/schemas/aiTaxonomyFileReference.ts new file mode 100644 index 00000000..c42862c6 --- /dev/null +++ b/src/schemas/aiTaxonomyFileReference.ts @@ -0,0 +1,80 @@ +import { BoxSdkError } from '../box/errors'; +import { SerializedData } from '../serialization/json'; +import { sdIsEmpty } from '../serialization/json'; +import { sdIsBoolean } from '../serialization/json'; +import { sdIsNumber } from '../serialization/json'; +import { sdIsString } from '../serialization/json'; +import { sdIsList } from '../serialization/json'; +import { sdIsMap } from '../serialization/json'; +export type AiTaxonomyFileReferenceTypeField = 'file'; +export interface AiTaxonomyFileReference { + /** + * The type of the taxonomy source. */ + readonly type?: AiTaxonomyFileReferenceTypeField; + /** + * The identifier for a taxonomy, which corresponds to the `taxonomy_key` of the taxonomy source. */ + readonly taxonomyKey?: string; + /** + * The ID of the taxonomy source. Required if the type is `file` and unsupported if the type is `taxonomy`. */ + readonly id?: string; + readonly rawData?: SerializedData; +} +export function serializeAiTaxonomyFileReferenceTypeField( + val: AiTaxonomyFileReferenceTypeField, +): SerializedData { + return val; +} +export function deserializeAiTaxonomyFileReferenceTypeField( + val: SerializedData, +): AiTaxonomyFileReferenceTypeField { + if (val == 'file') { + return val; + } + throw new BoxSdkError({ + message: "Can't deserialize AiTaxonomyFileReferenceTypeField", + }); +} +export function serializeAiTaxonomyFileReference( + val: AiTaxonomyFileReference, +): SerializedData { + return { + ['type']: + val.type == void 0 + ? val.type + : serializeAiTaxonomyFileReferenceTypeField(val.type), + ['taxonomy_key']: val.taxonomyKey, + ['id']: val.id, + }; +} +export function deserializeAiTaxonomyFileReference( + val: SerializedData, +): AiTaxonomyFileReference { + if (!sdIsMap(val)) { + throw new BoxSdkError({ + message: 'Expecting a map for "AiTaxonomyFileReference"', + }); + } + const type: undefined | AiTaxonomyFileReferenceTypeField = + val.type == void 0 + ? void 0 + : deserializeAiTaxonomyFileReferenceTypeField(val.type); + if (!(val.taxonomy_key == void 0) && !sdIsString(val.taxonomy_key)) { + throw new BoxSdkError({ + message: + 'Expecting string for "taxonomy_key" of type "AiTaxonomyFileReference"', + }); + } + const taxonomyKey: undefined | string = + val.taxonomy_key == void 0 ? void 0 : val.taxonomy_key; + if (!(val.id == void 0) && !sdIsString(val.id)) { + throw new BoxSdkError({ + message: 'Expecting string for "id" of type "AiTaxonomyFileReference"', + }); + } + const id: undefined | string = val.id == void 0 ? void 0 : val.id; + return { + type: type, + taxonomyKey: taxonomyKey, + id: id, + } satisfies AiTaxonomyFileReference; +} diff --git a/src/schemas/aiTaxonomyReference.ts b/src/schemas/aiTaxonomyReference.ts new file mode 100644 index 00000000..dda6f7a6 --- /dev/null +++ b/src/schemas/aiTaxonomyReference.ts @@ -0,0 +1,81 @@ +import { BoxSdkError } from '../box/errors'; +import { SerializedData } from '../serialization/json'; +import { sdIsEmpty } from '../serialization/json'; +import { sdIsBoolean } from '../serialization/json'; +import { sdIsNumber } from '../serialization/json'; +import { sdIsString } from '../serialization/json'; +import { sdIsList } from '../serialization/json'; +import { sdIsMap } from '../serialization/json'; +export type AiTaxonomyReferenceTypeField = 'taxonomy'; +export interface AiTaxonomyReference { + /** + * The type of the taxonomy source. */ + readonly type?: AiTaxonomyReferenceTypeField; + /** + * The identifier for a taxonomy, which corresponds to the `taxonomy_key` of the taxonomy source. */ + readonly taxonomyKey?: string; + /** + * The namespace of the taxonomy source. */ + readonly namespace?: string; + readonly rawData?: SerializedData; +} +export function serializeAiTaxonomyReferenceTypeField( + val: AiTaxonomyReferenceTypeField, +): SerializedData { + return val; +} +export function deserializeAiTaxonomyReferenceTypeField( + val: SerializedData, +): AiTaxonomyReferenceTypeField { + if (val == 'taxonomy') { + return val; + } + throw new BoxSdkError({ + message: "Can't deserialize AiTaxonomyReferenceTypeField", + }); +} +export function serializeAiTaxonomyReference( + val: AiTaxonomyReference, +): SerializedData { + return { + ['type']: + val.type == void 0 + ? val.type + : serializeAiTaxonomyReferenceTypeField(val.type), + ['taxonomy_key']: val.taxonomyKey, + ['namespace']: val.namespace, + }; +} +export function deserializeAiTaxonomyReference( + val: SerializedData, +): AiTaxonomyReference { + if (!sdIsMap(val)) { + throw new BoxSdkError({ + message: 'Expecting a map for "AiTaxonomyReference"', + }); + } + const type: undefined | AiTaxonomyReferenceTypeField = + val.type == void 0 + ? void 0 + : deserializeAiTaxonomyReferenceTypeField(val.type); + if (!(val.taxonomy_key == void 0) && !sdIsString(val.taxonomy_key)) { + throw new BoxSdkError({ + message: + 'Expecting string for "taxonomy_key" of type "AiTaxonomyReference"', + }); + } + const taxonomyKey: undefined | string = + val.taxonomy_key == void 0 ? void 0 : val.taxonomy_key; + if (!(val.namespace == void 0) && !sdIsString(val.namespace)) { + throw new BoxSdkError({ + message: 'Expecting string for "namespace" of type "AiTaxonomyReference"', + }); + } + const namespace: undefined | string = + val.namespace == void 0 ? void 0 : val.namespace; + return { + type: type, + taxonomyKey: taxonomyKey, + namespace: namespace, + } satisfies AiTaxonomyReference; +} diff --git a/src/schemas/aiTaxonomySource.ts b/src/schemas/aiTaxonomySource.ts new file mode 100644 index 00000000..9e071937 --- /dev/null +++ b/src/schemas/aiTaxonomySource.ts @@ -0,0 +1,40 @@ +import { serializeAiTaxonomyReference } from './aiTaxonomyReference'; +import { deserializeAiTaxonomyReference } from './aiTaxonomyReference'; +import { serializeAiTaxonomyFileReference } from './aiTaxonomyFileReference'; +import { deserializeAiTaxonomyFileReference } from './aiTaxonomyFileReference'; +import { AiTaxonomyReference } from './aiTaxonomyReference'; +import { AiTaxonomyFileReference } from './aiTaxonomyFileReference'; +import { BoxSdkError } from '../box/errors'; +import { SerializedData } from '../serialization/json'; +import { sdIsEmpty } from '../serialization/json'; +import { sdIsBoolean } from '../serialization/json'; +import { sdIsNumber } from '../serialization/json'; +import { sdIsString } from '../serialization/json'; +import { sdIsList } from '../serialization/json'; +import { sdIsMap } from '../serialization/json'; +export type AiTaxonomySource = AiTaxonomyReference | AiTaxonomyFileReference; +export function serializeAiTaxonomySource(val: any): SerializedData { + if (val.type == 'taxonomy') { + return serializeAiTaxonomyReference(val); + } + if (val.type == 'file') { + return serializeAiTaxonomyFileReference(val); + } + throw new BoxSdkError({ message: 'unknown type' }); +} +export function deserializeAiTaxonomySource( + val: SerializedData, +): AiTaxonomySource { + if (!sdIsMap(val)) { + throw new BoxSdkError({ + message: 'Expecting a map for "AiTaxonomySource"', + }); + } + if (val.type == 'taxonomy') { + return deserializeAiTaxonomyReference(val); + } + if (val.type == 'file') { + return deserializeAiTaxonomyFileReference(val); + } + throw new BoxSdkError({ message: "Can't deserialize AiTaxonomySource" }); +} diff --git a/src/schemas/collaboration.ts b/src/schemas/collaboration.ts index 9c601811..28c9f9e1 100644 --- a/src/schemas/collaboration.ts +++ b/src/schemas/collaboration.ts @@ -123,7 +123,7 @@ export class Collaboration { readonly isAccessOnly?: boolean; /** * The status of the collaboration invitation. If the status - * is `pending`, `login` and `name` return an empty string. */ + * is `pending`, `name` returns an empty string. */ readonly status?: CollaborationStatusField; /** * When the `status` of the collaboration object changed to @@ -221,7 +221,7 @@ export interface CollaborationInput { readonly isAccessOnly?: boolean; /** * The status of the collaboration invitation. If the status - * is `pending`, `login` and `name` return an empty string. */ + * is `pending`, `name` returns an empty string. */ readonly status?: CollaborationStatusField; /** * When the `status` of the collaboration object changed to diff --git a/src/schemas/index.ts b/src/schemas/index.ts index d8f1260e..058f0ef5 100644 --- a/src/schemas/index.ts +++ b/src/schemas/index.ts @@ -4,6 +4,8 @@ export * from './aiAgentReference'; export * from './aiCitation'; export * from './aiResponseFull'; export * from './aiDialogueHistory'; +export * from './aiExtractFieldOption'; +export * from './aiExtractSubField'; export * from './aiExtractResponse'; export * from './aiExtractStructuredResponse'; export * from './aiItemBase'; @@ -39,7 +41,6 @@ export * from './aiStudioAgentExtract'; export * from './aiStudioAgentAsk'; export * from './aiAgentExtractStructured'; export * from './aiExtractStructuredAgent'; -export * from './aiExtractStructured'; export * from './aiAgentExtract'; export * from './aiExtractAgent'; export * from './aiExtract'; @@ -47,6 +48,11 @@ export * from './aiAgentAsk'; export * from './aiAskAgent'; export * from './aiAsk'; export * from './aiAgent'; +export * from './aiOptionsRules'; +export * from './aiTaxonomyFileReference'; +export * from './aiTaxonomyReference'; +export * from './aiTaxonomySource'; +export * from './aiExtractStructured'; export * from './appItem'; export * from './classification'; export * from './classificationTemplate'; From 80ef259e6f79b7b2634679074a764d70ca2a546c Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 10 Jun 2026 07:11:49 -0700 Subject: [PATCH 5/5] feat: Add new event types (box/box-openapi#1703) (box/box-openapi#605) --- .codegen.json | 2 +- src/managers/events.ts | 152 +++++++++++++++++++++++++++++++++++++++ src/schemas/aiAsk.ts | 4 +- src/schemas/aiTextGen.ts | 4 +- src/schemas/event.ts | 76 ++++++++++++++++++++ 5 files changed, 233 insertions(+), 5 deletions(-) diff --git a/.codegen.json b/.codegen.json index 0cc8cdf2..290ed017 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "a87c352", "specHash": "0ac3d31", "version": "10.11.1" } +{ "engineHash": "a87c352", "specHash": "dd7f7a9", "version": "10.11.1" } diff --git a/src/managers/events.ts b/src/managers/events.ts index 2de89589..bfa27519 100644 --- a/src/managers/events.ts +++ b/src/managers/events.ts @@ -64,6 +64,7 @@ export type GetEventsQueryParamsEventTypeField = | 'ADD_DEVICE_ASSOCIATION' | 'ADD_LOGIN_ACTIVITY_DEVICE' | 'ADMIN_LOGIN' + | 'ADVANCED_FOLDER_SETTINGS_UPDATE' | 'APPLICATION_CREATED' | 'APPLICATION_PUBLIC_KEY_ADDED' | 'APPLICATION_PUBLIC_KEY_DELETED' @@ -76,6 +77,7 @@ export type GetEventsQueryParamsEventTypeField = | 'COLLABORATION_ROLE_CHANGE' | 'COMMENT_CREATE' | 'COMMENT_DELETE' + | 'COMMENT_EDIT' | 'CONTENT_WORKFLOW_ABNORMAL_DOWNLOAD_ACTIVITY' | 'CONTENT_WORKFLOW_AUTOMATION_ADD' | 'CONTENT_WORKFLOW_AUTOMATION_DELETE' @@ -92,11 +94,19 @@ export type GetEventsQueryParamsEventTypeField = | 'EDIT' | 'EDIT_USER' | 'EMAIL_ALIAS_CONFIRM' + | 'EMAIL_ALIAS_PRIMARY' | 'EMAIL_ALIAS_REMOVE' + | 'EMAIL_UPLOAD_DISABLED' + | 'EMAIL_UPLOAD_ENABLED' | 'ENTERPRISE_APP_AUTHORIZATION_UPDATE' | 'EXTERNAL_COLLAB_SECURITY_SETTINGS' | 'FAILED_LOGIN' + | 'FAVORITE' | 'FILE_MARKED_MALICIOUS' + | 'FILE_REQUEST_CREATE' + | 'FILE_REQUEST_DELETE' + | 'FILE_REQUEST_UPDATE' + | 'FILE_VERSION_RESTORE' | 'FILE_WATERMARKED_DOWNLOAD' | 'GROUP_ADD_ITEM' | 'GROUP_ADD_USER' @@ -105,6 +115,7 @@ export type GetEventsQueryParamsEventTypeField = | 'GROUP_EDITED' | 'GROUP_REMOVE_ITEM' | 'GROUP_REMOVE_USER' + | 'ILLEGAL_ITEM_OWNERSHIP_TRANSFER_BY_USER' | 'ITEM_EMAIL_SEND' | 'ITEM_MODIFY' | 'ITEM_OPEN' @@ -118,6 +129,9 @@ export type GetEventsQueryParamsEventTypeField = | 'LEGAL_HOLD_POLICY_UPDATE' | 'LOCK' | 'LOGIN' + | 'METADATA_CASCADE_POLICY_APPLY' + | 'METADATA_CASCADE_POLICY_CREATE' + | 'METADATA_INSTANCE_COPY' | 'METADATA_INSTANCE_CREATE' | 'METADATA_INSTANCE_DELETE' | 'METADATA_INSTANCE_UPDATE' @@ -127,6 +141,7 @@ export type GetEventsQueryParamsEventTypeField = | 'MOVE' | 'NEW_USER' | 'OAUTH2_ACCESS_TOKEN_REVOKE' + | 'OAUTH2_REFRESH_TOKEN_REVOKE' | 'PREVIEW' | 'REMOVE_DEVICE_ASSOCIATION' | 'REMOVE_LOGIN_ACTIVITY_DEVICE' @@ -164,6 +179,7 @@ export type GetEventsQueryParamsEventTypeField = | 'TERMS_OF_SERVICE_ACCEPT' | 'TERMS_OF_SERVICE_REJECT' | 'UNDELETE' + | 'UNFAVORITE' | 'UNLOCK' | 'UNSHARE' | 'UPDATE_COLLABORATION_EXPIRATION' @@ -172,6 +188,9 @@ export type GetEventsQueryParamsEventTypeField = | 'USER_AUTHENTICATE_OAUTH2_ACCESS_TOKEN_CREATE' | 'WATERMARK_LABEL_CREATE' | 'WATERMARK_LABEL_DELETE' + | 'WORKFLOW_AUTOMATION_CREATE' + | 'WORKFLOW_AUTOMATION_DELETE' + | 'WORKFLOW_AUTOMATION_UPDATE' | string; export interface GetEventsQueryParams { /** @@ -263,6 +282,7 @@ export type GetEventStreamQueryParamsEventTypeField = | 'ADD_DEVICE_ASSOCIATION' | 'ADD_LOGIN_ACTIVITY_DEVICE' | 'ADMIN_LOGIN' + | 'ADVANCED_FOLDER_SETTINGS_UPDATE' | 'APPLICATION_CREATED' | 'APPLICATION_PUBLIC_KEY_ADDED' | 'APPLICATION_PUBLIC_KEY_DELETED' @@ -275,6 +295,7 @@ export type GetEventStreamQueryParamsEventTypeField = | 'COLLABORATION_ROLE_CHANGE' | 'COMMENT_CREATE' | 'COMMENT_DELETE' + | 'COMMENT_EDIT' | 'CONTENT_WORKFLOW_ABNORMAL_DOWNLOAD_ACTIVITY' | 'CONTENT_WORKFLOW_AUTOMATION_ADD' | 'CONTENT_WORKFLOW_AUTOMATION_DELETE' @@ -291,11 +312,19 @@ export type GetEventStreamQueryParamsEventTypeField = | 'EDIT' | 'EDIT_USER' | 'EMAIL_ALIAS_CONFIRM' + | 'EMAIL_ALIAS_PRIMARY' | 'EMAIL_ALIAS_REMOVE' + | 'EMAIL_UPLOAD_DISABLED' + | 'EMAIL_UPLOAD_ENABLED' | 'ENTERPRISE_APP_AUTHORIZATION_UPDATE' | 'EXTERNAL_COLLAB_SECURITY_SETTINGS' | 'FAILED_LOGIN' + | 'FAVORITE' | 'FILE_MARKED_MALICIOUS' + | 'FILE_REQUEST_CREATE' + | 'FILE_REQUEST_DELETE' + | 'FILE_REQUEST_UPDATE' + | 'FILE_VERSION_RESTORE' | 'FILE_WATERMARKED_DOWNLOAD' | 'GROUP_ADD_ITEM' | 'GROUP_ADD_USER' @@ -304,6 +333,7 @@ export type GetEventStreamQueryParamsEventTypeField = | 'GROUP_EDITED' | 'GROUP_REMOVE_ITEM' | 'GROUP_REMOVE_USER' + | 'ILLEGAL_ITEM_OWNERSHIP_TRANSFER_BY_USER' | 'ITEM_EMAIL_SEND' | 'ITEM_MODIFY' | 'ITEM_OPEN' @@ -317,6 +347,9 @@ export type GetEventStreamQueryParamsEventTypeField = | 'LEGAL_HOLD_POLICY_UPDATE' | 'LOCK' | 'LOGIN' + | 'METADATA_CASCADE_POLICY_APPLY' + | 'METADATA_CASCADE_POLICY_CREATE' + | 'METADATA_INSTANCE_COPY' | 'METADATA_INSTANCE_CREATE' | 'METADATA_INSTANCE_DELETE' | 'METADATA_INSTANCE_UPDATE' @@ -326,6 +359,7 @@ export type GetEventStreamQueryParamsEventTypeField = | 'MOVE' | 'NEW_USER' | 'OAUTH2_ACCESS_TOKEN_REVOKE' + | 'OAUTH2_REFRESH_TOKEN_REVOKE' | 'PREVIEW' | 'REMOVE_DEVICE_ASSOCIATION' | 'REMOVE_LOGIN_ACTIVITY_DEVICE' @@ -363,6 +397,7 @@ export type GetEventStreamQueryParamsEventTypeField = | 'TERMS_OF_SERVICE_ACCEPT' | 'TERMS_OF_SERVICE_REJECT' | 'UNDELETE' + | 'UNFAVORITE' | 'UNLOCK' | 'UNSHARE' | 'UPDATE_COLLABORATION_EXPIRATION' @@ -371,6 +406,9 @@ export type GetEventStreamQueryParamsEventTypeField = | 'USER_AUTHENTICATE_OAUTH2_ACCESS_TOKEN_CREATE' | 'WATERMARK_LABEL_CREATE' | 'WATERMARK_LABEL_DELETE' + | 'WORKFLOW_AUTOMATION_CREATE' + | 'WORKFLOW_AUTOMATION_DELETE' + | 'WORKFLOW_AUTOMATION_UPDATE' | string; export interface GetEventStreamQueryParams { /** @@ -682,6 +720,9 @@ export function deserializeGetEventsQueryParamsEventTypeField( if (val == 'ADMIN_LOGIN') { return val; } + if (val == 'ADVANCED_FOLDER_SETTINGS_UPDATE') { + return val; + } if (val == 'APPLICATION_CREATED') { return val; } @@ -718,6 +759,9 @@ export function deserializeGetEventsQueryParamsEventTypeField( if (val == 'COMMENT_DELETE') { return val; } + if (val == 'COMMENT_EDIT') { + return val; + } if (val == 'CONTENT_WORKFLOW_ABNORMAL_DOWNLOAD_ACTIVITY') { return val; } @@ -766,9 +810,18 @@ export function deserializeGetEventsQueryParamsEventTypeField( if (val == 'EMAIL_ALIAS_CONFIRM') { return val; } + if (val == 'EMAIL_ALIAS_PRIMARY') { + return val; + } if (val == 'EMAIL_ALIAS_REMOVE') { return val; } + if (val == 'EMAIL_UPLOAD_DISABLED') { + return val; + } + if (val == 'EMAIL_UPLOAD_ENABLED') { + return val; + } if (val == 'ENTERPRISE_APP_AUTHORIZATION_UPDATE') { return val; } @@ -778,9 +831,24 @@ export function deserializeGetEventsQueryParamsEventTypeField( if (val == 'FAILED_LOGIN') { return val; } + if (val == 'FAVORITE') { + return val; + } if (val == 'FILE_MARKED_MALICIOUS') { return val; } + if (val == 'FILE_REQUEST_CREATE') { + return val; + } + if (val == 'FILE_REQUEST_DELETE') { + return val; + } + if (val == 'FILE_REQUEST_UPDATE') { + return val; + } + if (val == 'FILE_VERSION_RESTORE') { + return val; + } if (val == 'FILE_WATERMARKED_DOWNLOAD') { return val; } @@ -805,6 +873,9 @@ export function deserializeGetEventsQueryParamsEventTypeField( if (val == 'GROUP_REMOVE_USER') { return val; } + if (val == 'ILLEGAL_ITEM_OWNERSHIP_TRANSFER_BY_USER') { + return val; + } if (val == 'ITEM_EMAIL_SEND') { return val; } @@ -844,6 +915,15 @@ export function deserializeGetEventsQueryParamsEventTypeField( if (val == 'LOGIN') { return val; } + if (val == 'METADATA_CASCADE_POLICY_APPLY') { + return val; + } + if (val == 'METADATA_CASCADE_POLICY_CREATE') { + return val; + } + if (val == 'METADATA_INSTANCE_COPY') { + return val; + } if (val == 'METADATA_INSTANCE_CREATE') { return val; } @@ -871,6 +951,9 @@ export function deserializeGetEventsQueryParamsEventTypeField( if (val == 'OAUTH2_ACCESS_TOKEN_REVOKE') { return val; } + if (val == 'OAUTH2_REFRESH_TOKEN_REVOKE') { + return val; + } if (val == 'PREVIEW') { return val; } @@ -982,6 +1065,9 @@ export function deserializeGetEventsQueryParamsEventTypeField( if (val == 'UNDELETE') { return val; } + if (val == 'UNFAVORITE') { + return val; + } if (val == 'UNLOCK') { return val; } @@ -1006,6 +1092,15 @@ export function deserializeGetEventsQueryParamsEventTypeField( if (val == 'WATERMARK_LABEL_DELETE') { return val; } + if (val == 'WORKFLOW_AUTOMATION_CREATE') { + return val; + } + if (val == 'WORKFLOW_AUTOMATION_DELETE') { + return val; + } + if (val == 'WORKFLOW_AUTOMATION_UPDATE') { + return val; + } if (sdIsString(val)) { return val; } @@ -1066,6 +1161,9 @@ export function deserializeGetEventStreamQueryParamsEventTypeField( if (val == 'ADMIN_LOGIN') { return val; } + if (val == 'ADVANCED_FOLDER_SETTINGS_UPDATE') { + return val; + } if (val == 'APPLICATION_CREATED') { return val; } @@ -1102,6 +1200,9 @@ export function deserializeGetEventStreamQueryParamsEventTypeField( if (val == 'COMMENT_DELETE') { return val; } + if (val == 'COMMENT_EDIT') { + return val; + } if (val == 'CONTENT_WORKFLOW_ABNORMAL_DOWNLOAD_ACTIVITY') { return val; } @@ -1150,9 +1251,18 @@ export function deserializeGetEventStreamQueryParamsEventTypeField( if (val == 'EMAIL_ALIAS_CONFIRM') { return val; } + if (val == 'EMAIL_ALIAS_PRIMARY') { + return val; + } if (val == 'EMAIL_ALIAS_REMOVE') { return val; } + if (val == 'EMAIL_UPLOAD_DISABLED') { + return val; + } + if (val == 'EMAIL_UPLOAD_ENABLED') { + return val; + } if (val == 'ENTERPRISE_APP_AUTHORIZATION_UPDATE') { return val; } @@ -1162,9 +1272,24 @@ export function deserializeGetEventStreamQueryParamsEventTypeField( if (val == 'FAILED_LOGIN') { return val; } + if (val == 'FAVORITE') { + return val; + } if (val == 'FILE_MARKED_MALICIOUS') { return val; } + if (val == 'FILE_REQUEST_CREATE') { + return val; + } + if (val == 'FILE_REQUEST_DELETE') { + return val; + } + if (val == 'FILE_REQUEST_UPDATE') { + return val; + } + if (val == 'FILE_VERSION_RESTORE') { + return val; + } if (val == 'FILE_WATERMARKED_DOWNLOAD') { return val; } @@ -1189,6 +1314,9 @@ export function deserializeGetEventStreamQueryParamsEventTypeField( if (val == 'GROUP_REMOVE_USER') { return val; } + if (val == 'ILLEGAL_ITEM_OWNERSHIP_TRANSFER_BY_USER') { + return val; + } if (val == 'ITEM_EMAIL_SEND') { return val; } @@ -1228,6 +1356,15 @@ export function deserializeGetEventStreamQueryParamsEventTypeField( if (val == 'LOGIN') { return val; } + if (val == 'METADATA_CASCADE_POLICY_APPLY') { + return val; + } + if (val == 'METADATA_CASCADE_POLICY_CREATE') { + return val; + } + if (val == 'METADATA_INSTANCE_COPY') { + return val; + } if (val == 'METADATA_INSTANCE_CREATE') { return val; } @@ -1255,6 +1392,9 @@ export function deserializeGetEventStreamQueryParamsEventTypeField( if (val == 'OAUTH2_ACCESS_TOKEN_REVOKE') { return val; } + if (val == 'OAUTH2_REFRESH_TOKEN_REVOKE') { + return val; + } if (val == 'PREVIEW') { return val; } @@ -1366,6 +1506,9 @@ export function deserializeGetEventStreamQueryParamsEventTypeField( if (val == 'UNDELETE') { return val; } + if (val == 'UNFAVORITE') { + return val; + } if (val == 'UNLOCK') { return val; } @@ -1390,6 +1533,15 @@ export function deserializeGetEventStreamQueryParamsEventTypeField( if (val == 'WATERMARK_LABEL_DELETE') { return val; } + if (val == 'WORKFLOW_AUTOMATION_CREATE') { + return val; + } + if (val == 'WORKFLOW_AUTOMATION_DELETE') { + return val; + } + if (val == 'WORKFLOW_AUTOMATION_UPDATE') { + return val; + } if (sdIsString(val)) { return val; } diff --git a/src/schemas/aiAsk.ts b/src/schemas/aiAsk.ts index 5d4897ee..421d34bf 100644 --- a/src/schemas/aiAsk.ts +++ b/src/schemas/aiAsk.ts @@ -24,8 +24,8 @@ import { sdIsMap } from '../serialization/json'; export type AiAskModeField = 'multiple_item_qa' | 'single_item_qa' | string; export interface AiAsk { /** - * Box AI handles text documents with text representations up to 1MB in size, or a maximum of 25 files, - * whichever comes first. If the text file size exceeds 1MB, the first 1MB of text representation will be processed. + * Box AI handles text documents with text representations up to 2MB in size, or a maximum of 25 files, + * whichever comes first. If the text file size exceeds 2MB, the first 2MB of text representation will be processed. * Box AI handles image documents with a resolution of 1024 x 1024 pixels, with a maximum of 5 images or 5 pages * for multi-page images. If the number of image or image pages exceeds 5, the first 5 images or pages will * be processed. If you set mode parameter to `single_item_qa`, the items array can have one element only. diff --git a/src/schemas/aiTextGen.ts b/src/schemas/aiTextGen.ts index 30da41c5..b826d8f8 100644 --- a/src/schemas/aiTextGen.ts +++ b/src/schemas/aiTextGen.ts @@ -68,8 +68,8 @@ export interface AiTextGen { * The items to be processed by the LLM, often files. * The array can include **exactly one** element. * - * **Note**: Box AI handles documents with text representations up to 1MB in size. - * If the file size exceeds 1MB, the first 1MB of text representation will be processed. */ + * **Note**: Box AI handles documents with text representations up to 2MB in size. + * If the file size exceeds 2MB, the first 2MB of text representation will be processed. */ readonly items: readonly AiTextGenItemsField[]; /** * The history of prompts and answers previously passed to the LLM. This parameter provides the additional context to the LLM when generating the response. */ diff --git a/src/schemas/event.ts b/src/schemas/event.ts index 2057d88f..cf5574f8 100644 --- a/src/schemas/event.ts +++ b/src/schemas/event.ts @@ -39,6 +39,7 @@ export type EventEventTypeField = | 'ADD_DEVICE_ASSOCIATION' | 'ADD_LOGIN_ACTIVITY_DEVICE' | 'ADMIN_LOGIN' + | 'ADVANCED_FOLDER_SETTINGS_UPDATE' | 'AI_SECURITY_DETECTION' | 'ANNOTATIONV2_CREATE' | 'ANNOTATIONV2_DELETE' @@ -67,6 +68,7 @@ export type EventEventTypeField = | 'COLLECTION_UPDATE' | 'COMMENT_CREATE' | 'COMMENT_DELETE' + | 'COMMENT_EDIT' | 'CONTENT_ACCESS' | 'CONTENT_RECOVERY_REPORT_CREATE' | 'CONTENT_RECOVERY_REPORT_DELETE' @@ -94,13 +96,21 @@ export type EventEventTypeField = | 'EDR_CROWDSTRIKE_DRIVE_OUTDATED' | 'EDR_CROWDSTRIKE_NO_BOX_TOOLS' | 'EMAIL_ALIAS_CONFIRM' + | 'EMAIL_ALIAS_PRIMARY' | 'EMAIL_ALIAS_REMOVE' + | 'EMAIL_UPLOAD_DISABLED' + | 'EMAIL_UPLOAD_ENABLED' | 'ENABLE_MULTI_FACTOR_AUTH' | 'ENABLE_TWO_FACTOR_AUTH' | 'ENTERPRISE_APP_AUTHORIZATION_UPDATE' | 'EXTERNAL_COLLAB_SECURITY_SETTINGS' | 'FAILED_LOGIN' + | 'FAVORITE' | 'FILE_MARKED_MALICIOUS' + | 'FILE_REQUEST_CREATE' + | 'FILE_REQUEST_DELETE' + | 'FILE_REQUEST_UPDATE' + | 'FILE_VERSION_RESTORE' | 'FILE_WATERMARKED_DOWNLOAD' | 'GROUP_ADD_ITEM' | 'GROUP_ADD_USER' @@ -112,6 +122,7 @@ export type EventEventTypeField = | 'GROUP_EDITED' | 'GROUP_REMOVE_ITEM' | 'GROUP_REMOVE_USER' + | 'ILLEGAL_ITEM_OWNERSHIP_TRANSFER_BY_USER' | 'ITEM_ASSOCIATION_CREATED' | 'ITEM_ASSOCIATION_DELETED' | 'ITEM_ASSOCIATION_UPDATED' @@ -145,6 +156,9 @@ export type EventEventTypeField = | 'LOGIN' | 'MASTER_INVITE_ACCEPT' | 'MASTER_INVITE_REJECT' + | 'METADATA_CASCADE_POLICY_APPLY' + | 'METADATA_CASCADE_POLICY_CREATE' + | 'METADATA_INSTANCE_COPY' | 'METADATA_INSTANCE_CREATE' | 'METADATA_INSTANCE_DELETE' | 'METADATA_INSTANCE_UPDATE' @@ -154,6 +168,7 @@ export type EventEventTypeField = | 'MOVE' | 'NEW_USER' | 'OAUTH2_ACCESS_TOKEN_REVOKE' + | 'OAUTH2_REFRESH_TOKEN_REVOKE' | 'PREVIEW' | 'REMOVE_DEVICE_ASSOCIATION' | 'REMOVE_LOGIN_ACTIVITY_DEVICE' @@ -208,6 +223,7 @@ export type EventEventTypeField = | 'TERMS_OF_SERVICE_ACCEPT' | 'TERMS_OF_SERVICE_REJECT' | 'UNDELETE' + | 'UNFAVORITE' | 'UNLOCK' | 'UNSHARE' | 'UPDATE_COLLABORATION_EXPIRATION' @@ -216,6 +232,9 @@ export type EventEventTypeField = | 'USER_AUTHENTICATE_OAUTH2_ACCESS_TOKEN_CREATE' | 'WATERMARK_LABEL_CREATE' | 'WATERMARK_LABEL_DELETE' + | 'WORKFLOW_AUTOMATION_CREATE' + | 'WORKFLOW_AUTOMATION_DELETE' + | 'WORKFLOW_AUTOMATION_UPDATE' | string; export interface Event { /** @@ -272,6 +291,9 @@ export function deserializeEventEventTypeField( if (val == 'ADMIN_LOGIN') { return val; } + if (val == 'ADVANCED_FOLDER_SETTINGS_UPDATE') { + return val; + } if (val == 'AI_SECURITY_DETECTION') { return val; } @@ -356,6 +378,9 @@ export function deserializeEventEventTypeField( if (val == 'COMMENT_DELETE') { return val; } + if (val == 'COMMENT_EDIT') { + return val; + } if (val == 'CONTENT_ACCESS') { return val; } @@ -437,9 +462,18 @@ export function deserializeEventEventTypeField( if (val == 'EMAIL_ALIAS_CONFIRM') { return val; } + if (val == 'EMAIL_ALIAS_PRIMARY') { + return val; + } if (val == 'EMAIL_ALIAS_REMOVE') { return val; } + if (val == 'EMAIL_UPLOAD_DISABLED') { + return val; + } + if (val == 'EMAIL_UPLOAD_ENABLED') { + return val; + } if (val == 'ENABLE_MULTI_FACTOR_AUTH') { return val; } @@ -455,9 +489,24 @@ export function deserializeEventEventTypeField( if (val == 'FAILED_LOGIN') { return val; } + if (val == 'FAVORITE') { + return val; + } if (val == 'FILE_MARKED_MALICIOUS') { return val; } + if (val == 'FILE_REQUEST_CREATE') { + return val; + } + if (val == 'FILE_REQUEST_DELETE') { + return val; + } + if (val == 'FILE_REQUEST_UPDATE') { + return val; + } + if (val == 'FILE_VERSION_RESTORE') { + return val; + } if (val == 'FILE_WATERMARKED_DOWNLOAD') { return val; } @@ -491,6 +540,9 @@ export function deserializeEventEventTypeField( if (val == 'GROUP_REMOVE_USER') { return val; } + if (val == 'ILLEGAL_ITEM_OWNERSHIP_TRANSFER_BY_USER') { + return val; + } if (val == 'ITEM_ASSOCIATION_CREATED') { return val; } @@ -590,6 +642,15 @@ export function deserializeEventEventTypeField( if (val == 'MASTER_INVITE_REJECT') { return val; } + if (val == 'METADATA_CASCADE_POLICY_APPLY') { + return val; + } + if (val == 'METADATA_CASCADE_POLICY_CREATE') { + return val; + } + if (val == 'METADATA_INSTANCE_COPY') { + return val; + } if (val == 'METADATA_INSTANCE_CREATE') { return val; } @@ -617,6 +678,9 @@ export function deserializeEventEventTypeField( if (val == 'OAUTH2_ACCESS_TOKEN_REVOKE') { return val; } + if (val == 'OAUTH2_REFRESH_TOKEN_REVOKE') { + return val; + } if (val == 'PREVIEW') { return val; } @@ -779,6 +843,9 @@ export function deserializeEventEventTypeField( if (val == 'UNDELETE') { return val; } + if (val == 'UNFAVORITE') { + return val; + } if (val == 'UNLOCK') { return val; } @@ -803,6 +870,15 @@ export function deserializeEventEventTypeField( if (val == 'WATERMARK_LABEL_DELETE') { return val; } + if (val == 'WORKFLOW_AUTOMATION_CREATE') { + return val; + } + if (val == 'WORKFLOW_AUTOMATION_DELETE') { + return val; + } + if (val == 'WORKFLOW_AUTOMATION_UPDATE') { + return val; + } if (sdIsString(val)) { return val; }