casedev 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/client.d.mts +23 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -5
- package/client.d.ts.map +1 -1
- package/client.js +24 -5
- package/client.js.map +1 -1
- package/client.mjs +24 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/applications/applications.d.mts +10 -0
- package/resources/applications/applications.d.mts.map +1 -0
- package/resources/applications/applications.d.ts +10 -0
- package/resources/applications/applications.d.ts.map +1 -0
- package/resources/applications/applications.js +17 -0
- package/resources/applications/applications.js.map +1 -0
- package/resources/applications/applications.mjs +12 -0
- package/resources/applications/applications.mjs.map +1 -0
- package/resources/applications/index.d.mts +3 -0
- package/resources/applications/index.d.mts.map +1 -0
- package/resources/applications/index.d.ts +3 -0
- package/resources/applications/index.d.ts.map +1 -0
- package/resources/applications/index.js +9 -0
- package/resources/applications/index.js.map +1 -0
- package/resources/applications/index.mjs +4 -0
- package/resources/applications/index.mjs.map +1 -0
- package/resources/applications/v1/deployments.d.mts +105 -0
- package/resources/applications/v1/deployments.d.mts.map +1 -0
- package/resources/applications/v1/deployments.d.ts +105 -0
- package/resources/applications/v1/deployments.d.ts.map +1 -0
- package/resources/applications/v1/deployments.js +89 -0
- package/resources/applications/v1/deployments.js.map +1 -0
- package/resources/applications/v1/deployments.mjs +85 -0
- package/resources/applications/v1/deployments.mjs.map +1 -0
- package/resources/applications/v1/index.d.mts +5 -0
- package/resources/applications/v1/index.d.mts.map +1 -0
- package/resources/applications/v1/index.d.ts +5 -0
- package/resources/applications/v1/index.d.ts.map +1 -0
- package/resources/applications/v1/index.js +13 -0
- package/resources/applications/v1/index.js.map +1 -0
- package/resources/applications/v1/index.mjs +6 -0
- package/resources/applications/v1/index.mjs.map +1 -0
- package/resources/applications/v1/projects.d.mts +247 -0
- package/resources/applications/v1/projects.d.mts.map +1 -0
- package/resources/applications/v1/projects.d.ts +247 -0
- package/resources/applications/v1/projects.d.ts.map +1 -0
- package/resources/applications/v1/projects.js +137 -0
- package/resources/applications/v1/projects.js.map +1 -0
- package/resources/applications/v1/projects.mjs +133 -0
- package/resources/applications/v1/projects.mjs.map +1 -0
- package/resources/applications/v1/v1.d.mts +18 -0
- package/resources/applications/v1/v1.d.mts.map +1 -0
- package/resources/applications/v1/v1.d.ts +18 -0
- package/resources/applications/v1/v1.d.ts.map +1 -0
- package/resources/applications/v1/v1.js +25 -0
- package/resources/applications/v1/v1.js.map +1 -0
- package/resources/applications/v1/v1.mjs +20 -0
- package/resources/applications/v1/v1.mjs.map +1 -0
- package/resources/applications/v1/workflows.d.mts +19 -0
- package/resources/applications/v1/workflows.d.mts.map +1 -0
- package/resources/applications/v1/workflows.d.ts +19 -0
- package/resources/applications/v1/workflows.d.ts.map +1 -0
- package/resources/applications/v1/workflows.js +21 -0
- package/resources/applications/v1/workflows.js.map +1 -0
- package/resources/applications/v1/workflows.mjs +17 -0
- package/resources/applications/v1/workflows.mjs.map +1 -0
- package/resources/applications/v1.d.mts +2 -0
- package/resources/applications/v1.d.mts.map +1 -0
- package/resources/applications/v1.d.ts +2 -0
- package/resources/applications/v1.d.ts.map +1 -0
- package/resources/applications/v1.js +6 -0
- package/resources/applications/v1.js.map +1 -0
- package/resources/{webhooks.mjs → applications/v1.mjs} +2 -2
- package/resources/applications/v1.mjs.map +1 -0
- package/resources/applications.d.mts +2 -0
- package/resources/applications.d.mts.map +1 -0
- package/resources/applications.d.ts +2 -0
- package/resources/applications.d.ts.map +1 -0
- package/resources/applications.js +6 -0
- package/resources/applications.js.map +1 -0
- package/resources/applications.mjs +3 -0
- package/resources/applications.mjs.map +1 -0
- package/resources/compute/v1/index.d.mts +2 -3
- package/resources/compute/v1/index.d.mts.map +1 -1
- package/resources/compute/v1/index.d.ts +2 -3
- package/resources/compute/v1/index.d.ts.map +1 -1
- package/resources/compute/v1/index.js +5 -7
- package/resources/compute/v1/index.js.map +1 -1
- package/resources/compute/v1/index.mjs +2 -3
- package/resources/compute/v1/index.mjs.map +1 -1
- package/resources/compute/v1/instance-types.d.mts +70 -0
- package/resources/compute/v1/instance-types.d.mts.map +1 -0
- package/resources/compute/v1/instance-types.d.ts +70 -0
- package/resources/compute/v1/instance-types.d.ts.map +1 -0
- package/resources/compute/v1/instance-types.js +24 -0
- package/resources/compute/v1/instance-types.js.map +1 -0
- package/resources/compute/v1/instance-types.mjs +20 -0
- package/resources/compute/v1/instance-types.mjs.map +1 -0
- package/resources/compute/v1/instances.d.mts +157 -0
- package/resources/compute/v1/instances.d.mts.map +1 -0
- package/resources/compute/v1/instances.d.ts +157 -0
- package/resources/compute/v1/instances.d.ts.map +1 -0
- package/resources/compute/v1/instances.js +74 -0
- package/resources/compute/v1/instances.js.map +1 -0
- package/resources/compute/v1/instances.mjs +70 -0
- package/resources/compute/v1/instances.mjs.map +1 -0
- package/resources/compute/v1/v1.d.mts +8 -12
- package/resources/compute/v1/v1.d.mts.map +1 -1
- package/resources/compute/v1/v1.d.ts +8 -12
- package/resources/compute/v1/v1.d.ts.map +1 -1
- package/resources/compute/v1/v1.js +8 -12
- package/resources/compute/v1/v1.js.map +1 -1
- package/resources/compute/v1/v1.mjs +8 -12
- package/resources/compute/v1/v1.mjs.map +1 -1
- package/resources/database/database.d.mts +10 -0
- package/resources/database/database.d.mts.map +1 -0
- package/resources/database/database.d.ts +10 -0
- package/resources/database/database.d.ts.map +1 -0
- package/resources/database/database.js +17 -0
- package/resources/database/database.js.map +1 -0
- package/resources/database/database.mjs +12 -0
- package/resources/database/database.mjs.map +1 -0
- package/resources/database/index.d.mts +3 -0
- package/resources/database/index.d.mts.map +1 -0
- package/resources/database/index.d.ts +3 -0
- package/resources/database/index.d.ts.map +1 -0
- package/resources/database/index.js +9 -0
- package/resources/database/index.js.map +1 -0
- package/resources/database/index.mjs +4 -0
- package/resources/database/index.mjs.map +1 -0
- package/resources/database/v1/index.d.mts +3 -0
- package/resources/database/v1/index.d.mts.map +1 -0
- package/resources/database/v1/index.d.ts +3 -0
- package/resources/database/v1/index.d.ts.map +1 -0
- package/resources/{webhooks → database/v1}/index.js +3 -3
- package/resources/database/v1/index.js.map +1 -0
- package/resources/database/v1/index.mjs +4 -0
- package/resources/database/v1/index.mjs.map +1 -0
- package/resources/database/v1/projects.d.mts +464 -0
- package/resources/database/v1/projects.d.mts.map +1 -0
- package/resources/database/v1/projects.d.ts +464 -0
- package/resources/database/v1/projects.d.ts.map +1 -0
- package/resources/database/v1/projects.js +122 -0
- package/resources/database/v1/projects.js.map +1 -0
- package/resources/database/v1/projects.mjs +118 -0
- package/resources/database/v1/projects.mjs.map +1 -0
- package/resources/database/v1/v1.d.mts +141 -0
- package/resources/database/v1/v1.d.mts.map +1 -0
- package/resources/database/v1/v1.d.ts +141 -0
- package/resources/database/v1/v1.d.ts.map +1 -0
- package/resources/database/v1/v1.js +30 -0
- package/resources/database/v1/v1.js.map +1 -0
- package/resources/database/v1/v1.mjs +25 -0
- package/resources/database/v1/v1.mjs.map +1 -0
- package/resources/database/v1.d.mts +2 -0
- package/resources/database/v1.d.mts.map +1 -0
- package/resources/database/v1.d.ts +2 -0
- package/resources/database/v1.d.ts.map +1 -0
- package/resources/database/v1.js +6 -0
- package/resources/database/v1.js.map +1 -0
- package/resources/database/v1.mjs +3 -0
- package/resources/database/v1.mjs.map +1 -0
- package/resources/database.d.mts +2 -0
- package/resources/database.d.mts.map +1 -0
- package/resources/database.d.ts +2 -0
- package/resources/database.d.ts.map +1 -0
- package/resources/{webhooks.js → database.js} +2 -2
- package/resources/database.js.map +1 -0
- package/resources/database.mjs +3 -0
- package/resources/database.mjs.map +1 -0
- package/resources/index.d.mts +8 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -1
- package/resources/index.mjs.map +1 -1
- package/resources/legal/index.d.mts +3 -0
- package/resources/legal/index.d.mts.map +1 -0
- package/resources/legal/index.d.ts +3 -0
- package/resources/legal/index.d.ts.map +1 -0
- package/resources/legal/index.js +9 -0
- package/resources/legal/index.js.map +1 -0
- package/resources/legal/index.mjs +4 -0
- package/resources/legal/index.mjs.map +1 -0
- package/resources/legal/legal.d.mts +10 -0
- package/resources/legal/legal.d.mts.map +1 -0
- package/resources/legal/legal.d.ts +10 -0
- package/resources/legal/legal.d.ts.map +1 -0
- package/resources/{webhooks/webhooks.js → legal/legal.js} +5 -5
- package/resources/legal/legal.js.map +1 -0
- package/resources/legal/legal.mjs +12 -0
- package/resources/legal/legal.mjs.map +1 -0
- package/resources/legal/v1.d.mts +572 -0
- package/resources/legal/v1.d.mts.map +1 -0
- package/resources/legal/v1.d.ts +572 -0
- package/resources/legal/v1.d.ts.map +1 -0
- package/resources/legal/v1.js +72 -0
- package/resources/legal/v1.js.map +1 -0
- package/resources/legal/v1.mjs +68 -0
- package/resources/legal/v1.mjs.map +1 -0
- package/resources/legal.d.mts +2 -0
- package/resources/legal.d.mts.map +1 -0
- package/resources/legal.d.ts +2 -0
- package/resources/legal.d.ts.map +1 -0
- package/resources/legal.js +6 -0
- package/resources/legal.js.map +1 -0
- package/resources/legal.mjs +3 -0
- package/resources/legal.mjs.map +1 -0
- package/resources/memory/index.d.mts +3 -0
- package/resources/memory/index.d.mts.map +1 -0
- package/resources/memory/index.d.ts +3 -0
- package/resources/memory/index.d.ts.map +1 -0
- package/resources/memory/index.js +9 -0
- package/resources/memory/index.js.map +1 -0
- package/resources/memory/index.mjs +4 -0
- package/resources/memory/index.mjs.map +1 -0
- package/resources/memory/memory.d.mts +10 -0
- package/resources/memory/memory.d.mts.map +1 -0
- package/resources/memory/memory.d.ts +10 -0
- package/resources/memory/memory.d.ts.map +1 -0
- package/resources/memory/memory.js +17 -0
- package/resources/memory/memory.js.map +1 -0
- package/resources/memory/memory.mjs +12 -0
- package/resources/memory/memory.mjs.map +1 -0
- package/resources/memory/v1.d.mts +417 -0
- package/resources/memory/v1.d.mts.map +1 -0
- package/resources/memory/v1.d.ts +417 -0
- package/resources/memory/v1.d.ts.map +1 -0
- package/resources/memory/v1.js +66 -0
- package/resources/memory/v1.js.map +1 -0
- package/resources/memory/v1.mjs +62 -0
- package/resources/memory/v1.mjs.map +1 -0
- package/resources/memory.d.mts +2 -0
- package/resources/memory.d.mts.map +1 -0
- package/resources/memory.d.ts +2 -0
- package/resources/memory.d.ts.map +1 -0
- package/resources/memory.js +6 -0
- package/resources/memory.js.map +1 -0
- package/resources/memory.mjs +3 -0
- package/resources/memory.mjs.map +1 -0
- package/resources/ocr/v1.d.mts +31 -19
- package/resources/ocr/v1.d.mts.map +1 -1
- package/resources/ocr/v1.d.ts +31 -19
- package/resources/ocr/v1.d.ts.map +1 -1
- package/resources/privilege/index.d.mts +3 -0
- package/resources/privilege/index.d.mts.map +1 -0
- package/resources/privilege/index.d.ts +3 -0
- package/resources/privilege/index.d.ts.map +1 -0
- package/resources/privilege/index.js +9 -0
- package/resources/privilege/index.js.map +1 -0
- package/resources/privilege/index.mjs +4 -0
- package/resources/privilege/index.mjs.map +1 -0
- package/resources/privilege/privilege.d.mts +10 -0
- package/resources/privilege/privilege.d.mts.map +1 -0
- package/resources/privilege/privilege.d.ts +10 -0
- package/resources/privilege/privilege.d.ts.map +1 -0
- package/resources/privilege/privilege.js +17 -0
- package/resources/privilege/privilege.js.map +1 -0
- package/resources/privilege/privilege.mjs +12 -0
- package/resources/privilege/privilege.mjs.map +1 -0
- package/resources/privilege/v1.d.mts +100 -0
- package/resources/privilege/v1.d.mts.map +1 -0
- package/resources/privilege/v1.d.ts +100 -0
- package/resources/privilege/v1.d.ts.map +1 -0
- package/resources/privilege/v1.js +28 -0
- package/resources/privilege/v1.js.map +1 -0
- package/resources/privilege/v1.mjs +24 -0
- package/resources/privilege/v1.mjs.map +1 -0
- package/resources/privilege.d.mts +2 -0
- package/resources/privilege.d.mts.map +1 -0
- package/resources/privilege.d.ts +2 -0
- package/resources/privilege.d.ts.map +1 -0
- package/resources/privilege.js +6 -0
- package/resources/privilege.js.map +1 -0
- package/resources/privilege.mjs +3 -0
- package/resources/privilege.mjs.map +1 -0
- package/resources/superdoc/index.d.mts +3 -0
- package/resources/superdoc/index.d.mts.map +1 -0
- package/resources/superdoc/index.d.ts +3 -0
- package/resources/superdoc/index.d.ts.map +1 -0
- package/resources/superdoc/index.js +9 -0
- package/resources/superdoc/index.js.map +1 -0
- package/resources/{webhooks → superdoc}/index.mjs +1 -1
- package/resources/superdoc/index.mjs.map +1 -0
- package/resources/superdoc/superdoc.d.mts +10 -0
- package/resources/superdoc/superdoc.d.mts.map +1 -0
- package/resources/superdoc/superdoc.d.ts +10 -0
- package/resources/superdoc/superdoc.d.ts.map +1 -0
- package/resources/superdoc/superdoc.js +17 -0
- package/resources/superdoc/superdoc.js.map +1 -0
- package/resources/{webhooks/webhooks.mjs → superdoc/superdoc.mjs} +3 -3
- package/resources/superdoc/superdoc.mjs.map +1 -0
- package/resources/superdoc/v1.d.mts +104 -0
- package/resources/superdoc/v1.d.mts.map +1 -0
- package/resources/superdoc/v1.d.ts +104 -0
- package/resources/superdoc/v1.d.ts.map +1 -0
- package/resources/superdoc/v1.js +36 -0
- package/resources/superdoc/v1.js.map +1 -0
- package/resources/superdoc/v1.mjs +32 -0
- package/resources/superdoc/v1.mjs.map +1 -0
- package/resources/superdoc.d.mts +2 -0
- package/resources/superdoc.d.mts.map +1 -0
- package/resources/superdoc.d.ts +2 -0
- package/resources/superdoc.d.ts.map +1 -0
- package/resources/superdoc.js +6 -0
- package/resources/superdoc.js.map +1 -0
- package/resources/superdoc.mjs +3 -0
- package/resources/superdoc.mjs.map +1 -0
- package/resources/translate/index.d.mts +3 -0
- package/resources/translate/index.d.mts.map +1 -0
- package/resources/translate/index.d.ts +3 -0
- package/resources/translate/index.d.ts.map +1 -0
- package/resources/translate/index.js +9 -0
- package/resources/translate/index.js.map +1 -0
- package/resources/translate/index.mjs +4 -0
- package/resources/translate/index.mjs.map +1 -0
- package/resources/translate/translate.d.mts +10 -0
- package/resources/translate/translate.d.mts.map +1 -0
- package/resources/translate/translate.d.ts +10 -0
- package/resources/translate/translate.d.ts.map +1 -0
- package/resources/translate/translate.js +17 -0
- package/resources/translate/translate.js.map +1 -0
- package/resources/translate/translate.mjs +12 -0
- package/resources/translate/translate.mjs.map +1 -0
- package/resources/translate/v1.d.mts +154 -0
- package/resources/translate/v1.d.mts.map +1 -0
- package/resources/translate/v1.d.ts +154 -0
- package/resources/translate/v1.d.ts.map +1 -0
- package/resources/translate/v1.js +51 -0
- package/resources/translate/v1.js.map +1 -0
- package/resources/translate/v1.mjs +47 -0
- package/resources/translate/v1.mjs.map +1 -0
- package/resources/translate.d.mts +2 -0
- package/resources/translate.d.mts.map +1 -0
- package/resources/translate.d.ts +2 -0
- package/resources/translate.d.ts.map +1 -0
- package/resources/translate.js +6 -0
- package/resources/translate.js.map +1 -0
- package/resources/translate.mjs +3 -0
- package/resources/translate.mjs.map +1 -0
- package/resources/vault/graphrag.d.mts +65 -1
- package/resources/vault/graphrag.d.mts.map +1 -1
- package/resources/vault/graphrag.d.ts +65 -1
- package/resources/vault/graphrag.d.ts.map +1 -1
- package/resources/vault/graphrag.js +17 -0
- package/resources/vault/graphrag.js.map +1 -1
- package/resources/vault/graphrag.mjs +17 -0
- package/resources/vault/graphrag.mjs.map +1 -1
- package/resources/vault/index.d.mts +4 -3
- package/resources/vault/index.d.mts.map +1 -1
- package/resources/vault/index.d.ts +4 -3
- package/resources/vault/index.d.ts.map +1 -1
- package/resources/vault/index.js +3 -1
- package/resources/vault/index.js.map +1 -1
- package/resources/vault/index.mjs +2 -1
- package/resources/vault/index.mjs.map +1 -1
- package/resources/vault/multipart.d.mts +140 -0
- package/resources/vault/multipart.d.mts.map +1 -0
- package/resources/vault/multipart.d.ts +140 -0
- package/resources/vault/multipart.d.ts.map +1 -0
- package/resources/vault/multipart.js +84 -0
- package/resources/vault/multipart.js.map +1 -0
- package/resources/vault/multipart.mjs +80 -0
- package/resources/vault/multipart.mjs.map +1 -0
- package/resources/vault/objects.d.mts +319 -42
- package/resources/vault/objects.d.mts.map +1 -1
- package/resources/vault/objects.d.ts +319 -42
- package/resources/vault/objects.d.ts.map +1 -1
- package/resources/vault/objects.js +72 -0
- package/resources/vault/objects.js.map +1 -1
- package/resources/vault/objects.mjs +72 -0
- package/resources/vault/objects.mjs.map +1 -1
- package/resources/vault/vault.d.mts +168 -23
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +168 -23
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js +33 -0
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs +34 -1
- package/resources/vault/vault.mjs.map +1 -1
- package/resources/voice/streaming.d.mts +1 -1
- package/resources/voice/streaming.d.ts +1 -1
- package/resources/voice/streaming.js +1 -1
- package/resources/voice/streaming.mjs +1 -1
- package/src/client.ts +46 -7
- package/src/internal/parse.ts +6 -0
- package/src/resources/{webhooks/webhooks.ts → applications/applications.ts} +5 -5
- package/src/resources/applications/index.ts +4 -0
- package/src/resources/applications/v1/deployments.ts +183 -0
- package/src/resources/applications/v1/index.ts +27 -0
- package/src/resources/applications/v1/projects.ts +421 -0
- package/src/resources/applications/v1/v1.ts +69 -0
- package/src/resources/applications/v1/workflows.ts +31 -0
- package/src/resources/{webhooks.ts → applications/v1.ts} +1 -1
- package/src/resources/{webhooks/index.ts → applications.ts} +1 -2
- package/src/resources/compute/v1/index.ts +9 -3
- package/src/resources/compute/v1/instance-types.ts +86 -0
- package/src/resources/compute/v1/instances.ts +237 -0
- package/src/resources/compute/v1/v1.ts +24 -16
- package/src/resources/database/database.ts +15 -0
- package/src/resources/database/index.ts +4 -0
- package/src/resources/database/v1/index.ts +16 -0
- package/src/resources/database/v1/projects.ts +594 -0
- package/src/resources/database/v1/v1.ts +209 -0
- package/src/resources/database/v1.ts +3 -0
- package/src/resources/database.ts +3 -0
- package/src/resources/index.ts +11 -1
- package/src/resources/legal/index.ts +22 -0
- package/src/resources/legal/legal.ts +51 -0
- package/src/resources/legal/v1.ts +749 -0
- package/src/resources/legal.ts +3 -0
- package/src/resources/memory/index.ts +16 -0
- package/src/resources/memory/memory.ts +39 -0
- package/src/resources/memory/v1.ts +556 -0
- package/src/resources/memory.ts +3 -0
- package/src/resources/ocr/v1.ts +29 -20
- package/src/resources/privilege/index.ts +4 -0
- package/src/resources/privilege/privilege.ts +15 -0
- package/src/resources/privilege/v1.ts +122 -0
- package/src/resources/privilege.ts +3 -0
- package/src/resources/superdoc/index.ts +4 -0
- package/src/resources/superdoc/superdoc.ts +15 -0
- package/src/resources/superdoc/v1.ts +146 -0
- package/src/resources/superdoc.ts +3 -0
- package/src/resources/translate/index.ts +12 -0
- package/src/resources/translate/translate.ts +31 -0
- package/src/resources/translate/v1.ts +197 -0
- package/src/resources/translate.ts +3 -0
- package/src/resources/vault/graphrag.ts +86 -0
- package/src/resources/vault/index.ts +28 -1
- package/src/resources/vault/multipart.ts +204 -0
- package/src/resources/vault/objects.ts +409 -44
- package/src/resources/vault/vault.ts +254 -22
- package/src/resources/voice/streaming.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/compute/v1/functions.d.mts +0 -4
- package/resources/compute/v1/functions.d.mts.map +0 -1
- package/resources/compute/v1/functions.d.ts +0 -4
- package/resources/compute/v1/functions.d.ts.map +0 -1
- package/resources/compute/v1/functions.js +0 -9
- package/resources/compute/v1/functions.js.map +0 -1
- package/resources/compute/v1/functions.mjs +0 -5
- package/resources/compute/v1/functions.mjs.map +0 -1
- package/resources/compute/v1/invoke.d.mts +0 -4
- package/resources/compute/v1/invoke.d.mts.map +0 -1
- package/resources/compute/v1/invoke.d.ts +0 -4
- package/resources/compute/v1/invoke.d.ts.map +0 -1
- package/resources/compute/v1/invoke.js +0 -9
- package/resources/compute/v1/invoke.js.map +0 -1
- package/resources/compute/v1/invoke.mjs +0 -5
- package/resources/compute/v1/invoke.mjs.map +0 -1
- package/resources/compute/v1/runs.d.mts +0 -4
- package/resources/compute/v1/runs.d.mts.map +0 -1
- package/resources/compute/v1/runs.d.ts +0 -4
- package/resources/compute/v1/runs.d.ts.map +0 -1
- package/resources/compute/v1/runs.js +0 -9
- package/resources/compute/v1/runs.js.map +0 -1
- package/resources/compute/v1/runs.mjs +0 -5
- package/resources/compute/v1/runs.mjs.map +0 -1
- package/resources/webhooks/index.d.mts +0 -3
- package/resources/webhooks/index.d.mts.map +0 -1
- package/resources/webhooks/index.d.ts +0 -3
- package/resources/webhooks/index.d.ts.map +0 -1
- package/resources/webhooks/index.js.map +0 -1
- package/resources/webhooks/index.mjs.map +0 -1
- package/resources/webhooks/v1.d.mts +0 -4
- package/resources/webhooks/v1.d.mts.map +0 -1
- package/resources/webhooks/v1.d.ts +0 -4
- package/resources/webhooks/v1.d.ts.map +0 -1
- package/resources/webhooks/v1.js +0 -9
- package/resources/webhooks/v1.js.map +0 -1
- package/resources/webhooks/v1.mjs +0 -5
- package/resources/webhooks/v1.mjs.map +0 -1
- package/resources/webhooks/webhooks.d.mts +0 -10
- package/resources/webhooks/webhooks.d.mts.map +0 -1
- package/resources/webhooks/webhooks.d.ts +0 -10
- package/resources/webhooks/webhooks.d.ts.map +0 -1
- package/resources/webhooks/webhooks.js.map +0 -1
- package/resources/webhooks/webhooks.mjs.map +0 -1
- package/resources/webhooks.d.mts +0 -2
- package/resources/webhooks.d.mts.map +0 -1
- package/resources/webhooks.d.ts +0 -2
- package/resources/webhooks.d.ts.map +0 -1
- package/resources/webhooks.js.map +0 -1
- package/resources/webhooks.mjs.map +0 -1
- package/src/resources/compute/v1/functions.ts +0 -5
- package/src/resources/compute/v1/invoke.ts +0 -5
- package/src/resources/compute/v1/runs.ts +0 -5
- package/src/resources/webhooks/v1.ts +0 -5
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Multipart extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Abort a multipart upload and discard uploaded parts.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* await client.vault.multipart.abort('id', {
|
|
11
|
+
* objectId: 'objectId',
|
|
12
|
+
* uploadId: 'uploadId',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
abort(id: string, body: MultipartAbortParams, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Complete a multipart upload by providing the list of part numbers and ETags.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* await client.vault.multipart.complete('id', {
|
|
23
|
+
* objectId: 'objectId',
|
|
24
|
+
* parts: [{ etag: 'etag', partNumber: 1 }],
|
|
25
|
+
* sizeBytes: 1,
|
|
26
|
+
* uploadId: 'uploadId',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
complete(id: string, body: MultipartCompleteParams, options?: RequestOptions): APIPromise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Generate presigned URLs for individual multipart upload parts.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const response = await client.vault.multipart.getPartURLs(
|
|
37
|
+
* 'id',
|
|
38
|
+
* {
|
|
39
|
+
* objectId: 'objectId',
|
|
40
|
+
* parts: [{ partNumber: 1, sizeBytes: 1 }],
|
|
41
|
+
* uploadId: 'uploadId',
|
|
42
|
+
* },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
getPartURLs(id: string, body: MultipartGetPartURLsParams, options?: RequestOptions): APIPromise<MultipartGetPartURLsResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Initiate a multipart upload for large files (>5GB). Returns an uploadId and
|
|
49
|
+
* object metadata. Use part URLs endpoint to upload parts and complete endpoint to
|
|
50
|
+
* finalize.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const response = await client.vault.multipart.init('id', {
|
|
55
|
+
* contentType: 'contentType',
|
|
56
|
+
* filename: 'filename',
|
|
57
|
+
* sizeBytes: 1,
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
init(id: string, body: MultipartInitParams, options?: RequestOptions): APIPromise<MultipartInitResponse>;
|
|
62
|
+
}
|
|
63
|
+
export interface MultipartGetPartURLsResponse {
|
|
64
|
+
urls?: Array<MultipartGetPartURLsResponse.URL>;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace MultipartGetPartURLsResponse {
|
|
67
|
+
interface URL {
|
|
68
|
+
partNumber?: number;
|
|
69
|
+
url?: string;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export interface MultipartInitResponse {
|
|
73
|
+
next_step?: string;
|
|
74
|
+
objectId?: string;
|
|
75
|
+
partCount?: number;
|
|
76
|
+
partSizeBytes?: number;
|
|
77
|
+
s3Key?: string;
|
|
78
|
+
uploadId?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface MultipartAbortParams {
|
|
81
|
+
objectId: string;
|
|
82
|
+
uploadId: string;
|
|
83
|
+
}
|
|
84
|
+
export interface MultipartCompleteParams {
|
|
85
|
+
objectId: string;
|
|
86
|
+
parts: Array<MultipartCompleteParams.Part>;
|
|
87
|
+
sizeBytes: number;
|
|
88
|
+
uploadId: string;
|
|
89
|
+
}
|
|
90
|
+
export declare namespace MultipartCompleteParams {
|
|
91
|
+
interface Part {
|
|
92
|
+
etag: string;
|
|
93
|
+
partNumber: number;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export interface MultipartGetPartURLsParams {
|
|
97
|
+
objectId: string;
|
|
98
|
+
parts: Array<MultipartGetPartURLsParams.Part>;
|
|
99
|
+
uploadId: string;
|
|
100
|
+
}
|
|
101
|
+
export declare namespace MultipartGetPartURLsParams {
|
|
102
|
+
interface Part {
|
|
103
|
+
partNumber: number;
|
|
104
|
+
sizeBytes: number;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export interface MultipartInitParams {
|
|
108
|
+
/**
|
|
109
|
+
* MIME type of the file
|
|
110
|
+
*/
|
|
111
|
+
contentType: string;
|
|
112
|
+
/**
|
|
113
|
+
* Name of the file to upload
|
|
114
|
+
*/
|
|
115
|
+
filename: string;
|
|
116
|
+
/**
|
|
117
|
+
* File size in bytes (required, max 8GB).
|
|
118
|
+
*/
|
|
119
|
+
sizeBytes: number;
|
|
120
|
+
/**
|
|
121
|
+
* Whether to automatically process and index the file for search
|
|
122
|
+
*/
|
|
123
|
+
auto_index?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Additional metadata to associate with the file
|
|
126
|
+
*/
|
|
127
|
+
metadata?: unknown;
|
|
128
|
+
/**
|
|
129
|
+
* Multipart part size in bytes (min 5MB). Defaults to 64MB.
|
|
130
|
+
*/
|
|
131
|
+
partSizeBytes?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Optional folder path for hierarchy preservation
|
|
134
|
+
*/
|
|
135
|
+
path?: string;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace Multipart {
|
|
138
|
+
export { type MultipartGetPartURLsResponse as MultipartGetPartURLsResponse, type MultipartInitResponse as MultipartInitResponse, type MultipartAbortParams as MultipartAbortParams, type MultipartCompleteParams as MultipartCompleteParams, type MultipartGetPartURLsParams as MultipartGetPartURLsParams, type MultipartInitParams as MultipartInitParams, };
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=multipart.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multipart.d.mts","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzF;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ/F;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGzG;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,GAAG,CAAC,CAAC;CAChD;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,GAAG;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,CAAC,EAAE,MAAM,CAAC;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,4BAA4B,EACjE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Multipart extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Abort a multipart upload and discard uploaded parts.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* await client.vault.multipart.abort('id', {
|
|
11
|
+
* objectId: 'objectId',
|
|
12
|
+
* uploadId: 'uploadId',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
abort(id: string, body: MultipartAbortParams, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Complete a multipart upload by providing the list of part numbers and ETags.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* await client.vault.multipart.complete('id', {
|
|
23
|
+
* objectId: 'objectId',
|
|
24
|
+
* parts: [{ etag: 'etag', partNumber: 1 }],
|
|
25
|
+
* sizeBytes: 1,
|
|
26
|
+
* uploadId: 'uploadId',
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
complete(id: string, body: MultipartCompleteParams, options?: RequestOptions): APIPromise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Generate presigned URLs for individual multipart upload parts.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const response = await client.vault.multipart.getPartURLs(
|
|
37
|
+
* 'id',
|
|
38
|
+
* {
|
|
39
|
+
* objectId: 'objectId',
|
|
40
|
+
* parts: [{ partNumber: 1, sizeBytes: 1 }],
|
|
41
|
+
* uploadId: 'uploadId',
|
|
42
|
+
* },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
getPartURLs(id: string, body: MultipartGetPartURLsParams, options?: RequestOptions): APIPromise<MultipartGetPartURLsResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Initiate a multipart upload for large files (>5GB). Returns an uploadId and
|
|
49
|
+
* object metadata. Use part URLs endpoint to upload parts and complete endpoint to
|
|
50
|
+
* finalize.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const response = await client.vault.multipart.init('id', {
|
|
55
|
+
* contentType: 'contentType',
|
|
56
|
+
* filename: 'filename',
|
|
57
|
+
* sizeBytes: 1,
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
init(id: string, body: MultipartInitParams, options?: RequestOptions): APIPromise<MultipartInitResponse>;
|
|
62
|
+
}
|
|
63
|
+
export interface MultipartGetPartURLsResponse {
|
|
64
|
+
urls?: Array<MultipartGetPartURLsResponse.URL>;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace MultipartGetPartURLsResponse {
|
|
67
|
+
interface URL {
|
|
68
|
+
partNumber?: number;
|
|
69
|
+
url?: string;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export interface MultipartInitResponse {
|
|
73
|
+
next_step?: string;
|
|
74
|
+
objectId?: string;
|
|
75
|
+
partCount?: number;
|
|
76
|
+
partSizeBytes?: number;
|
|
77
|
+
s3Key?: string;
|
|
78
|
+
uploadId?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface MultipartAbortParams {
|
|
81
|
+
objectId: string;
|
|
82
|
+
uploadId: string;
|
|
83
|
+
}
|
|
84
|
+
export interface MultipartCompleteParams {
|
|
85
|
+
objectId: string;
|
|
86
|
+
parts: Array<MultipartCompleteParams.Part>;
|
|
87
|
+
sizeBytes: number;
|
|
88
|
+
uploadId: string;
|
|
89
|
+
}
|
|
90
|
+
export declare namespace MultipartCompleteParams {
|
|
91
|
+
interface Part {
|
|
92
|
+
etag: string;
|
|
93
|
+
partNumber: number;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export interface MultipartGetPartURLsParams {
|
|
97
|
+
objectId: string;
|
|
98
|
+
parts: Array<MultipartGetPartURLsParams.Part>;
|
|
99
|
+
uploadId: string;
|
|
100
|
+
}
|
|
101
|
+
export declare namespace MultipartGetPartURLsParams {
|
|
102
|
+
interface Part {
|
|
103
|
+
partNumber: number;
|
|
104
|
+
sizeBytes: number;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export interface MultipartInitParams {
|
|
108
|
+
/**
|
|
109
|
+
* MIME type of the file
|
|
110
|
+
*/
|
|
111
|
+
contentType: string;
|
|
112
|
+
/**
|
|
113
|
+
* Name of the file to upload
|
|
114
|
+
*/
|
|
115
|
+
filename: string;
|
|
116
|
+
/**
|
|
117
|
+
* File size in bytes (required, max 8GB).
|
|
118
|
+
*/
|
|
119
|
+
sizeBytes: number;
|
|
120
|
+
/**
|
|
121
|
+
* Whether to automatically process and index the file for search
|
|
122
|
+
*/
|
|
123
|
+
auto_index?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Additional metadata to associate with the file
|
|
126
|
+
*/
|
|
127
|
+
metadata?: unknown;
|
|
128
|
+
/**
|
|
129
|
+
* Multipart part size in bytes (min 5MB). Defaults to 64MB.
|
|
130
|
+
*/
|
|
131
|
+
partSizeBytes?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Optional folder path for hierarchy preservation
|
|
134
|
+
*/
|
|
135
|
+
path?: string;
|
|
136
|
+
}
|
|
137
|
+
export declare namespace Multipart {
|
|
138
|
+
export { type MultipartGetPartURLsResponse as MultipartGetPartURLsResponse, type MultipartInitResponse as MultipartInitResponse, type MultipartAbortParams as MultipartAbortParams, type MultipartCompleteParams as MultipartCompleteParams, type MultipartGetPartURLsParams as MultipartGetPartURLsParams, type MultipartInitParams as MultipartInitParams, };
|
|
139
|
+
}
|
|
140
|
+
//# sourceMappingURL=multipart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multipart.d.ts","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzF;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQ/F;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGzG;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,CAAC,EAAE,KAAK,CAAC,4BAA4B,CAAC,GAAG,CAAC,CAAC;CAChD;AAED,yBAAiB,4BAA4B,CAAC;IAC5C,UAAiB,GAAG;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,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AAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Multipart = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Multipart extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Abort a multipart upload and discard uploaded parts.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* await client.vault.multipart.abort('id', {
|
|
15
|
+
* objectId: 'objectId',
|
|
16
|
+
* uploadId: 'uploadId',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
abort(id, body, options) {
|
|
21
|
+
return this._client.post((0, path_1.path) `/vault/${id}/multipart/abort`, {
|
|
22
|
+
body,
|
|
23
|
+
...options,
|
|
24
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Complete a multipart upload by providing the list of part numbers and ETags.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* await client.vault.multipart.complete('id', {
|
|
33
|
+
* objectId: 'objectId',
|
|
34
|
+
* parts: [{ etag: 'etag', partNumber: 1 }],
|
|
35
|
+
* sizeBytes: 1,
|
|
36
|
+
* uploadId: 'uploadId',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
complete(id, body, options) {
|
|
41
|
+
return this._client.post((0, path_1.path) `/vault/${id}/multipart/complete`, {
|
|
42
|
+
body,
|
|
43
|
+
...options,
|
|
44
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Generate presigned URLs for individual multipart upload parts.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const response = await client.vault.multipart.getPartURLs(
|
|
53
|
+
* 'id',
|
|
54
|
+
* {
|
|
55
|
+
* objectId: 'objectId',
|
|
56
|
+
* parts: [{ partNumber: 1, sizeBytes: 1 }],
|
|
57
|
+
* uploadId: 'uploadId',
|
|
58
|
+
* },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
getPartURLs(id, body, options) {
|
|
63
|
+
return this._client.post((0, path_1.path) `/vault/${id}/multipart/part-urls`, { body, ...options });
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Initiate a multipart upload for large files (>5GB). Returns an uploadId and
|
|
67
|
+
* object metadata. Use part URLs endpoint to upload parts and complete endpoint to
|
|
68
|
+
* finalize.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const response = await client.vault.multipart.init('id', {
|
|
73
|
+
* contentType: 'contentType',
|
|
74
|
+
* filename: 'filename',
|
|
75
|
+
* sizeBytes: 1,
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
init(id, body, options) {
|
|
80
|
+
return this._client.post((0, path_1.path) `/vault/${id}/multipart/init`, { body, ...options });
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
exports.Multipart = Multipart;
|
|
84
|
+
//# sourceMappingURL=multipart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multipart.js","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAU,EAAE,IAA0B,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,kBAAkB,EAAE;YAC3D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,IAA6B,EAAE,OAAwB;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,qBAAqB,EAAE;YAC9D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,WAAW,CACT,EAAU,EACV,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAjFD,8BAiFC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class Multipart extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Abort a multipart upload and discard uploaded parts.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* await client.vault.multipart.abort('id', {
|
|
12
|
+
* objectId: 'objectId',
|
|
13
|
+
* uploadId: 'uploadId',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
abort(id, body, options) {
|
|
18
|
+
return this._client.post(path `/vault/${id}/multipart/abort`, {
|
|
19
|
+
body,
|
|
20
|
+
...options,
|
|
21
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Complete a multipart upload by providing the list of part numbers and ETags.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* await client.vault.multipart.complete('id', {
|
|
30
|
+
* objectId: 'objectId',
|
|
31
|
+
* parts: [{ etag: 'etag', partNumber: 1 }],
|
|
32
|
+
* sizeBytes: 1,
|
|
33
|
+
* uploadId: 'uploadId',
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
complete(id, body, options) {
|
|
38
|
+
return this._client.post(path `/vault/${id}/multipart/complete`, {
|
|
39
|
+
body,
|
|
40
|
+
...options,
|
|
41
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Generate presigned URLs for individual multipart upload parts.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const response = await client.vault.multipart.getPartURLs(
|
|
50
|
+
* 'id',
|
|
51
|
+
* {
|
|
52
|
+
* objectId: 'objectId',
|
|
53
|
+
* parts: [{ partNumber: 1, sizeBytes: 1 }],
|
|
54
|
+
* uploadId: 'uploadId',
|
|
55
|
+
* },
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
getPartURLs(id, body, options) {
|
|
60
|
+
return this._client.post(path `/vault/${id}/multipart/part-urls`, { body, ...options });
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Initiate a multipart upload for large files (>5GB). Returns an uploadId and
|
|
64
|
+
* object metadata. Use part URLs endpoint to upload parts and complete endpoint to
|
|
65
|
+
* finalize.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* const response = await client.vault.multipart.init('id', {
|
|
70
|
+
* contentType: 'contentType',
|
|
71
|
+
* filename: 'filename',
|
|
72
|
+
* sizeBytes: 1,
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
init(id, body, options) {
|
|
77
|
+
return this._client.post(path `/vault/${id}/multipart/init`, { body, ...options });
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=multipart.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multipart.mjs","sourceRoot":"","sources":["../../src/resources/vault/multipart.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MA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