casedev 0.3.0 → 0.4.1
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 +29 -0
- package/client.d.mts +24 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +24 -5
- package/client.d.ts.map +1 -1
- package/client.js +31 -5
- package/client.js.map +1 -1
- package/client.mjs +31 -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/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 +275 -3
- package/resources/vault/objects.d.mts.map +1 -1
- package/resources/vault/objects.d.ts +275 -3
- 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 +139 -7
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +139 -7
- 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/src/client.ts +53 -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/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 +361 -2
- package/src/resources/vault/vault.ts +220 -3
- 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,122 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class V1 extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Analyzes text or vault documents for legal privilege. Detects attorney-client
|
|
10
|
+
* privilege, work product doctrine, common interest privilege, and litigation hold
|
|
11
|
+
* materials.
|
|
12
|
+
*
|
|
13
|
+
* Returns structured privilege flags with confidence scores and policy-friendly
|
|
14
|
+
* rationale suitable for discovery workflows and privilege logs.
|
|
15
|
+
*
|
|
16
|
+
* **Size Limit:** Maximum 200,000 characters (larger documents rejected).
|
|
17
|
+
*
|
|
18
|
+
* **Permissions:** Requires `chat` permission. When using `document_id`, also
|
|
19
|
+
* requires `vault` permission.
|
|
20
|
+
*
|
|
21
|
+
* **Note:** When analyzing vault documents, results are automatically stored in
|
|
22
|
+
* the document's `privilege_analysis` metadata field.
|
|
23
|
+
*/
|
|
24
|
+
detect(body: V1DetectParams, options?: RequestOptions): APIPromise<V1DetectResponse> {
|
|
25
|
+
return this._client.post('/privilege/v1/detect', { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface V1DetectResponse {
|
|
30
|
+
categories: Array<V1DetectResponse.Category>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Overall confidence score (0-1)
|
|
34
|
+
*/
|
|
35
|
+
confidence: number;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Policy-friendly explanation for privilege log
|
|
39
|
+
*/
|
|
40
|
+
policy_rationale: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Whether any privilege was detected
|
|
44
|
+
*/
|
|
45
|
+
privileged: boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Recommended action for discovery
|
|
49
|
+
*/
|
|
50
|
+
recommendation: 'withhold' | 'redact' | 'produce' | 'review';
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace V1DetectResponse {
|
|
54
|
+
export interface Category {
|
|
55
|
+
/**
|
|
56
|
+
* Confidence for this category (0-1)
|
|
57
|
+
*/
|
|
58
|
+
confidence?: number;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Whether this privilege type was detected
|
|
62
|
+
*/
|
|
63
|
+
detected?: boolean;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Specific phrases or patterns found
|
|
67
|
+
*/
|
|
68
|
+
indicators?: Array<string>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Explanation of detection result
|
|
72
|
+
*/
|
|
73
|
+
rationale?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Privilege category
|
|
77
|
+
*/
|
|
78
|
+
type?: string;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface V1DetectParams {
|
|
83
|
+
/**
|
|
84
|
+
* Privilege categories to check. Defaults to all: attorney_client, work_product,
|
|
85
|
+
* common_interest, litigation_hold
|
|
86
|
+
*/
|
|
87
|
+
categories?: Array<'attorney_client' | 'work_product' | 'common_interest' | 'litigation_hold'>;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Text content to analyze (required if document_id not provided)
|
|
91
|
+
*/
|
|
92
|
+
content?: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Vault object ID to analyze (required if content not provided)
|
|
96
|
+
*/
|
|
97
|
+
document_id?: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Include detailed rationale for each category
|
|
101
|
+
*/
|
|
102
|
+
include_rationale?: boolean;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Jurisdiction for privilege rules
|
|
106
|
+
*/
|
|
107
|
+
jurisdiction?: 'US-Federal';
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* LLM model to use for analysis
|
|
111
|
+
*/
|
|
112
|
+
model?: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Vault ID (required when using document_id)
|
|
116
|
+
*/
|
|
117
|
+
vault_id?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export declare namespace V1 {
|
|
121
|
+
export { type V1DetectResponse as V1DetectResponse, type V1DetectParams as V1DetectParams };
|
|
122
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as V1API from './v1';
|
|
5
|
+
import { V1, V1AnnotateParams, V1ConvertParams } from './v1';
|
|
6
|
+
|
|
7
|
+
export class Superdoc extends APIResource {
|
|
8
|
+
v1: V1API.V1 = new V1API.V1(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Superdoc.V1 = V1;
|
|
12
|
+
|
|
13
|
+
export declare namespace Superdoc {
|
|
14
|
+
export { V1 as V1, type V1AnnotateParams as V1AnnotateParams, type V1ConvertParams as V1ConvertParams };
|
|
15
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { maybeMultipartFormRequestOptions } from '../../internal/uploads';
|
|
8
|
+
|
|
9
|
+
export class V1 extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Populate fields inside a DOCX template using SuperDoc annotations. Supports
|
|
12
|
+
* text, images, dates, and numbers. Can target individual fields by ID or multiple
|
|
13
|
+
* fields by group.
|
|
14
|
+
*/
|
|
15
|
+
annotate(body: V1AnnotateParams, options?: RequestOptions): APIPromise<Response> {
|
|
16
|
+
return this._client.post('/superdoc/v1/annotate', {
|
|
17
|
+
body,
|
|
18
|
+
...options,
|
|
19
|
+
headers: buildHeaders([{ Accept: 'application/pdf' }, options?.headers]),
|
|
20
|
+
__binaryResponse: true,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Convert documents between formats using SuperDoc. Supports DOCX to PDF, Markdown
|
|
26
|
+
* to DOCX, and HTML to DOCX conversions.
|
|
27
|
+
*/
|
|
28
|
+
convert(body: V1ConvertParams, options?: RequestOptions): APIPromise<Response> {
|
|
29
|
+
return this._client.post(
|
|
30
|
+
'/superdoc/v1/convert',
|
|
31
|
+
maybeMultipartFormRequestOptions(
|
|
32
|
+
{
|
|
33
|
+
body,
|
|
34
|
+
...options,
|
|
35
|
+
headers: buildHeaders([{ Accept: 'application/pdf' }, options?.headers]),
|
|
36
|
+
__binaryResponse: true,
|
|
37
|
+
},
|
|
38
|
+
this._client,
|
|
39
|
+
),
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface V1AnnotateParams {
|
|
45
|
+
/**
|
|
46
|
+
* Document source - provide either URL or base64
|
|
47
|
+
*/
|
|
48
|
+
document: V1AnnotateParams.Document;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Fields to populate in the template
|
|
52
|
+
*/
|
|
53
|
+
fields: Array<V1AnnotateParams.Field>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Output format for the annotated document
|
|
57
|
+
*/
|
|
58
|
+
output_format?: 'docx' | 'pdf';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export namespace V1AnnotateParams {
|
|
62
|
+
/**
|
|
63
|
+
* Document source - provide either URL or base64
|
|
64
|
+
*/
|
|
65
|
+
export interface Document {
|
|
66
|
+
/**
|
|
67
|
+
* Base64-encoded DOCX template
|
|
68
|
+
*/
|
|
69
|
+
base64?: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* URL to the DOCX template
|
|
73
|
+
*/
|
|
74
|
+
url?: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface Field {
|
|
78
|
+
/**
|
|
79
|
+
* Field data type
|
|
80
|
+
*/
|
|
81
|
+
type: 'text' | 'image' | 'date' | 'number';
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Value to populate
|
|
85
|
+
*/
|
|
86
|
+
value: string | number;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Target field ID (for single field)
|
|
90
|
+
*/
|
|
91
|
+
id?: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Target field group (for multiple fields with same tag)
|
|
95
|
+
*/
|
|
96
|
+
group?: string;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Optional configuration (e.g., image dimensions)
|
|
100
|
+
*/
|
|
101
|
+
options?: Field.Options;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export namespace Field {
|
|
105
|
+
/**
|
|
106
|
+
* Optional configuration (e.g., image dimensions)
|
|
107
|
+
*/
|
|
108
|
+
export interface Options {
|
|
109
|
+
/**
|
|
110
|
+
* Image height in pixels
|
|
111
|
+
*/
|
|
112
|
+
height?: number;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Image width in pixels
|
|
116
|
+
*/
|
|
117
|
+
width?: number;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface V1ConvertParams {
|
|
123
|
+
/**
|
|
124
|
+
* Source format of the document
|
|
125
|
+
*/
|
|
126
|
+
from: 'docx' | 'md' | 'html';
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Base64-encoded document content
|
|
130
|
+
*/
|
|
131
|
+
document_base64?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* URL to the document to convert
|
|
135
|
+
*/
|
|
136
|
+
document_url?: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Target format for conversion
|
|
140
|
+
*/
|
|
141
|
+
to?: 'pdf' | 'docx';
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export declare namespace V1 {
|
|
145
|
+
export { type V1AnnotateParams as V1AnnotateParams, type V1ConvertParams as V1ConvertParams };
|
|
146
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Translate } from './translate';
|
|
4
|
+
export {
|
|
5
|
+
V1,
|
|
6
|
+
type V1DetectResponse,
|
|
7
|
+
type V1ListLanguagesResponse,
|
|
8
|
+
type V1TranslateResponse,
|
|
9
|
+
type V1DetectParams,
|
|
10
|
+
type V1ListLanguagesParams,
|
|
11
|
+
type V1TranslateParams,
|
|
12
|
+
} from './v1';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as V1API from './v1';
|
|
5
|
+
import {
|
|
6
|
+
V1,
|
|
7
|
+
V1DetectParams,
|
|
8
|
+
V1DetectResponse,
|
|
9
|
+
V1ListLanguagesParams,
|
|
10
|
+
V1ListLanguagesResponse,
|
|
11
|
+
V1TranslateParams,
|
|
12
|
+
V1TranslateResponse,
|
|
13
|
+
} from './v1';
|
|
14
|
+
|
|
15
|
+
export class Translate extends APIResource {
|
|
16
|
+
v1: V1API.V1 = new V1API.V1(this._client);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
Translate.V1 = V1;
|
|
20
|
+
|
|
21
|
+
export declare namespace Translate {
|
|
22
|
+
export {
|
|
23
|
+
V1 as V1,
|
|
24
|
+
type V1DetectResponse as V1DetectResponse,
|
|
25
|
+
type V1ListLanguagesResponse as V1ListLanguagesResponse,
|
|
26
|
+
type V1TranslateResponse as V1TranslateResponse,
|
|
27
|
+
type V1DetectParams as V1DetectParams,
|
|
28
|
+
type V1ListLanguagesParams as V1ListLanguagesParams,
|
|
29
|
+
type V1TranslateParams as V1TranslateParams,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class V1 extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Detect the language of text. Returns the most likely language code and
|
|
10
|
+
* confidence score. Supports batch detection for multiple texts.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response = await client.translate.v1.detect({
|
|
15
|
+
* q: 'string',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
detect(body: V1DetectParams, options?: RequestOptions): APIPromise<V1DetectResponse> {
|
|
20
|
+
return this._client.post('/translate/v1/detect', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Get the list of languages supported for translation. Optionally specify a target
|
|
25
|
+
* language to get translated language names.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const response = await client.translate.v1.listLanguages();
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
listLanguages(
|
|
33
|
+
query: V1ListLanguagesParams | null | undefined = {},
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<V1ListLanguagesResponse> {
|
|
36
|
+
return this._client.get('/translate/v1/languages', { query, ...options });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Translate text between languages using Google Cloud Translation API. Supports
|
|
41
|
+
* 100+ languages, automatic language detection, HTML preservation, and batch
|
|
42
|
+
* translation.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const response = await client.translate.v1.translate({
|
|
47
|
+
* q: 'string',
|
|
48
|
+
* target: 'es',
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
translate(body: V1TranslateParams, options?: RequestOptions): APIPromise<V1TranslateResponse> {
|
|
53
|
+
return this._client.post('/translate/v1/translate', { body, ...options });
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface V1DetectResponse {
|
|
58
|
+
data?: V1DetectResponse.Data;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export namespace V1DetectResponse {
|
|
62
|
+
export interface Data {
|
|
63
|
+
detections?: Array<Array<Data.Detection>>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export namespace Data {
|
|
67
|
+
export interface Detection {
|
|
68
|
+
/**
|
|
69
|
+
* Confidence score (0-1)
|
|
70
|
+
*/
|
|
71
|
+
confidence?: number;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Whether the detection is reliable
|
|
75
|
+
*/
|
|
76
|
+
isReliable?: boolean;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Detected language code (ISO 639-1)
|
|
80
|
+
*/
|
|
81
|
+
language?: string;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface V1ListLanguagesResponse {
|
|
87
|
+
data?: V1ListLanguagesResponse.Data;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export namespace V1ListLanguagesResponse {
|
|
91
|
+
export interface Data {
|
|
92
|
+
languages?: Array<Data.Language>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export namespace Data {
|
|
96
|
+
export interface Language {
|
|
97
|
+
/**
|
|
98
|
+
* Language code (ISO 639-1)
|
|
99
|
+
*/
|
|
100
|
+
language?: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Language name (if target specified)
|
|
104
|
+
*/
|
|
105
|
+
name?: string;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface V1TranslateResponse {
|
|
111
|
+
data?: V1TranslateResponse.Data;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export namespace V1TranslateResponse {
|
|
115
|
+
export interface Data {
|
|
116
|
+
translations?: Array<Data.Translation>;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export namespace Data {
|
|
120
|
+
export interface Translation {
|
|
121
|
+
/**
|
|
122
|
+
* Detected source language (if source not specified)
|
|
123
|
+
*/
|
|
124
|
+
detectedSourceLanguage?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Model used for translation
|
|
128
|
+
*/
|
|
129
|
+
model?: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Translated text
|
|
133
|
+
*/
|
|
134
|
+
translatedText?: string;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface V1DetectParams {
|
|
140
|
+
/**
|
|
141
|
+
* Text to detect language for. Can be a single string or an array for batch
|
|
142
|
+
* detection.
|
|
143
|
+
*/
|
|
144
|
+
q: string | Array<string>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface V1ListLanguagesParams {
|
|
148
|
+
/**
|
|
149
|
+
* Translation model to check language support for
|
|
150
|
+
*/
|
|
151
|
+
model?: 'nmt' | 'base';
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Target language code for translating language names (e.g., 'es' for Spanish
|
|
155
|
+
* names)
|
|
156
|
+
*/
|
|
157
|
+
target?: string;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface V1TranslateParams {
|
|
161
|
+
/**
|
|
162
|
+
* Text to translate. Can be a single string or an array for batch translation.
|
|
163
|
+
*/
|
|
164
|
+
q: string | Array<string>;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Target language code (ISO 639-1)
|
|
168
|
+
*/
|
|
169
|
+
target: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Format of the source text. Use 'html' to preserve HTML tags.
|
|
173
|
+
*/
|
|
174
|
+
format?: 'text' | 'html';
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Translation model. 'nmt' (Neural Machine Translation) is recommended for
|
|
178
|
+
* quality.
|
|
179
|
+
*/
|
|
180
|
+
model?: 'nmt' | 'base';
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Source language code (ISO 639-1). If not specified, language is auto-detected.
|
|
184
|
+
*/
|
|
185
|
+
source?: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export declare namespace V1 {
|
|
189
|
+
export {
|
|
190
|
+
type V1DetectResponse as V1DetectResponse,
|
|
191
|
+
type V1ListLanguagesResponse as V1ListLanguagesResponse,
|
|
192
|
+
type V1TranslateResponse as V1TranslateResponse,
|
|
193
|
+
type V1DetectParams as V1DetectParams,
|
|
194
|
+
type V1ListLanguagesParams as V1ListLanguagesParams,
|
|
195
|
+
type V1TranslateParams as V1TranslateParams,
|
|
196
|
+
};
|
|
197
|
+
}
|
|
@@ -35,6 +35,28 @@ export class Graphrag extends APIResource {
|
|
|
35
35
|
init(id: string, options?: RequestOptions): APIPromise<GraphragInitResponse> {
|
|
36
36
|
return this._client.post(path`/vault/${id}/graphrag/init`, options);
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Manually trigger GraphRAG indexing for a vault object. The object must already
|
|
41
|
+
* be ingested (completed status). This extracts entities, relationships, and
|
|
42
|
+
* communities from the document for advanced knowledge graph queries.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const response = await client.vault.graphrag.processObject(
|
|
47
|
+
* 'objectId',
|
|
48
|
+
* { id: 'id' },
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
processObject(
|
|
53
|
+
objectID: string,
|
|
54
|
+
params: GraphragProcessObjectParams,
|
|
55
|
+
options?: RequestOptions,
|
|
56
|
+
): APIPromise<GraphragProcessObjectResponse> {
|
|
57
|
+
const { id } = params;
|
|
58
|
+
return this._client.post(path`/vault/${id}/graphrag/${objectID}`, options);
|
|
59
|
+
}
|
|
38
60
|
}
|
|
39
61
|
|
|
40
62
|
export interface GraphragGetStatsResponse {
|
|
@@ -79,9 +101,73 @@ export interface GraphragInitResponse {
|
|
|
79
101
|
vault_id?: string;
|
|
80
102
|
}
|
|
81
103
|
|
|
104
|
+
export interface GraphragProcessObjectResponse {
|
|
105
|
+
/**
|
|
106
|
+
* Number of communities detected
|
|
107
|
+
*/
|
|
108
|
+
communities: number;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Number of entities extracted
|
|
112
|
+
*/
|
|
113
|
+
entities: number;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* ID of the indexed object
|
|
117
|
+
*/
|
|
118
|
+
objectId: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Number of relationships extracted
|
|
122
|
+
*/
|
|
123
|
+
relationships: number;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Extraction statistics
|
|
127
|
+
*/
|
|
128
|
+
stats: GraphragProcessObjectResponse.Stats;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Status from GraphRAG service
|
|
132
|
+
*/
|
|
133
|
+
status: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Whether indexing completed successfully
|
|
137
|
+
*/
|
|
138
|
+
success: boolean;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* ID of the vault
|
|
142
|
+
*/
|
|
143
|
+
vaultId: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export namespace GraphragProcessObjectResponse {
|
|
147
|
+
/**
|
|
148
|
+
* Extraction statistics
|
|
149
|
+
*/
|
|
150
|
+
export interface Stats {
|
|
151
|
+
community_count?: number;
|
|
152
|
+
|
|
153
|
+
entity_count?: number;
|
|
154
|
+
|
|
155
|
+
relationship_count?: number;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface GraphragProcessObjectParams {
|
|
160
|
+
/**
|
|
161
|
+
* Vault ID
|
|
162
|
+
*/
|
|
163
|
+
id: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
82
166
|
export declare namespace Graphrag {
|
|
83
167
|
export {
|
|
84
168
|
type GraphragGetStatsResponse as GraphragGetStatsResponse,
|
|
85
169
|
type GraphragInitResponse as GraphragInitResponse,
|
|
170
|
+
type GraphragProcessObjectResponse as GraphragProcessObjectResponse,
|
|
171
|
+
type GraphragProcessObjectParams as GraphragProcessObjectParams,
|
|
86
172
|
};
|
|
87
173
|
}
|
|
@@ -1,27 +1,54 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Graphrag,
|
|
5
|
+
type GraphragGetStatsResponse,
|
|
6
|
+
type GraphragInitResponse,
|
|
7
|
+
type GraphragProcessObjectResponse,
|
|
8
|
+
type GraphragProcessObjectParams,
|
|
9
|
+
} from './graphrag';
|
|
10
|
+
export {
|
|
11
|
+
Multipart,
|
|
12
|
+
type MultipartGetPartURLsResponse,
|
|
13
|
+
type MultipartInitResponse,
|
|
14
|
+
type MultipartAbortParams,
|
|
15
|
+
type MultipartCompleteParams,
|
|
16
|
+
type MultipartGetPartURLsParams,
|
|
17
|
+
type MultipartInitParams,
|
|
18
|
+
} from './multipart';
|
|
4
19
|
export {
|
|
5
20
|
Objects,
|
|
6
21
|
type ObjectRetrieveResponse,
|
|
22
|
+
type ObjectUpdateResponse,
|
|
7
23
|
type ObjectListResponse,
|
|
24
|
+
type ObjectDeleteResponse,
|
|
8
25
|
type ObjectCreatePresignedURLResponse,
|
|
9
26
|
type ObjectDownloadResponse,
|
|
27
|
+
type ObjectGetOcrWordsResponse,
|
|
28
|
+
type ObjectGetSummarizeJobResponse,
|
|
10
29
|
type ObjectGetTextResponse,
|
|
11
30
|
type ObjectRetrieveParams,
|
|
31
|
+
type ObjectUpdateParams,
|
|
32
|
+
type ObjectDeleteParams,
|
|
12
33
|
type ObjectCreatePresignedURLParams,
|
|
13
34
|
type ObjectDownloadParams,
|
|
35
|
+
type ObjectGetOcrWordsParams,
|
|
36
|
+
type ObjectGetSummarizeJobParams,
|
|
14
37
|
type ObjectGetTextParams,
|
|
15
38
|
} from './objects';
|
|
16
39
|
export {
|
|
17
40
|
Vault,
|
|
18
41
|
type VaultCreateResponse,
|
|
19
42
|
type VaultRetrieveResponse,
|
|
43
|
+
type VaultUpdateResponse,
|
|
20
44
|
type VaultListResponse,
|
|
45
|
+
type VaultDeleteResponse,
|
|
21
46
|
type VaultIngestResponse,
|
|
22
47
|
type VaultSearchResponse,
|
|
23
48
|
type VaultUploadResponse,
|
|
24
49
|
type VaultCreateParams,
|
|
50
|
+
type VaultUpdateParams,
|
|
51
|
+
type VaultDeleteParams,
|
|
25
52
|
type VaultIngestParams,
|
|
26
53
|
type VaultSearchParams,
|
|
27
54
|
type VaultUploadParams,
|