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,16 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Memory } from './memory';
|
|
4
|
+
export {
|
|
5
|
+
V1,
|
|
6
|
+
type V1CreateResponse,
|
|
7
|
+
type V1RetrieveResponse,
|
|
8
|
+
type V1ListResponse,
|
|
9
|
+
type V1DeleteResponse,
|
|
10
|
+
type V1DeleteAllResponse,
|
|
11
|
+
type V1SearchResponse,
|
|
12
|
+
type V1CreateParams,
|
|
13
|
+
type V1ListParams,
|
|
14
|
+
type V1DeleteAllParams,
|
|
15
|
+
type V1SearchParams,
|
|
16
|
+
} from './v1';
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
V1CreateParams,
|
|
8
|
+
V1CreateResponse,
|
|
9
|
+
V1DeleteAllParams,
|
|
10
|
+
V1DeleteAllResponse,
|
|
11
|
+
V1DeleteResponse,
|
|
12
|
+
V1ListParams,
|
|
13
|
+
V1ListResponse,
|
|
14
|
+
V1RetrieveResponse,
|
|
15
|
+
V1SearchParams,
|
|
16
|
+
V1SearchResponse,
|
|
17
|
+
} from './v1';
|
|
18
|
+
|
|
19
|
+
export class Memory extends APIResource {
|
|
20
|
+
v1: V1API.V1 = new V1API.V1(this._client);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
Memory.V1 = V1;
|
|
24
|
+
|
|
25
|
+
export declare namespace Memory {
|
|
26
|
+
export {
|
|
27
|
+
V1 as V1,
|
|
28
|
+
type V1CreateResponse as V1CreateResponse,
|
|
29
|
+
type V1RetrieveResponse as V1RetrieveResponse,
|
|
30
|
+
type V1ListResponse as V1ListResponse,
|
|
31
|
+
type V1DeleteResponse as V1DeleteResponse,
|
|
32
|
+
type V1DeleteAllResponse as V1DeleteAllResponse,
|
|
33
|
+
type V1SearchResponse as V1SearchResponse,
|
|
34
|
+
type V1CreateParams as V1CreateParams,
|
|
35
|
+
type V1ListParams as V1ListParams,
|
|
36
|
+
type V1DeleteAllParams as V1DeleteAllParams,
|
|
37
|
+
type V1SearchParams as V1SearchParams,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,556 @@
|
|
|
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
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class V1 extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Store memories from conversation messages. Automatically extracts facts and
|
|
11
|
+
* handles deduplication.
|
|
12
|
+
*
|
|
13
|
+
* Use tag_1 through tag_12 for filtering - these are generic indexed fields you
|
|
14
|
+
* can use for any purpose:
|
|
15
|
+
*
|
|
16
|
+
* - Legal app: tag_1=client_id, tag_2=matter_id
|
|
17
|
+
* - Healthcare: tag_1=patient_id, tag_2=encounter_id
|
|
18
|
+
* - E-commerce: tag_1=customer_id, tag_2=order_id
|
|
19
|
+
*/
|
|
20
|
+
create(body: V1CreateParams, options?: RequestOptions): APIPromise<V1CreateResponse> {
|
|
21
|
+
return this._client.post('/memory/v1', { body, ...options });
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Retrieve a single memory by its ID.
|
|
26
|
+
*/
|
|
27
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<V1RetrieveResponse> {
|
|
28
|
+
return this._client.get(path`/memory/v1/${id}`, options);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* List all memories with optional filtering by tags and category.
|
|
33
|
+
*/
|
|
34
|
+
list(query: V1ListParams | null | undefined = {}, options?: RequestOptions): APIPromise<V1ListResponse> {
|
|
35
|
+
return this._client.get('/memory/v1', { query, ...options });
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Delete a single memory by its ID.
|
|
40
|
+
*/
|
|
41
|
+
delete(id: string, options?: RequestOptions): APIPromise<V1DeleteResponse> {
|
|
42
|
+
return this._client.delete(path`/memory/v1/${id}`, options);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Delete multiple memories matching tag filter criteria. CAUTION: This will delete
|
|
47
|
+
* all matching memories for your organization.
|
|
48
|
+
*/
|
|
49
|
+
deleteAll(
|
|
50
|
+
params: V1DeleteAllParams | null | undefined = {},
|
|
51
|
+
options?: RequestOptions,
|
|
52
|
+
): APIPromise<V1DeleteAllResponse> {
|
|
53
|
+
const { tag_1, tag_10, tag_11, tag_12, tag_2, tag_3, tag_4, tag_5, tag_6, tag_7, tag_8, tag_9 } =
|
|
54
|
+
params ?? {};
|
|
55
|
+
return this._client.delete('/memory/v1', {
|
|
56
|
+
query: { tag_1, tag_10, tag_11, tag_12, tag_2, tag_3, tag_4, tag_5, tag_6, tag_7, tag_8, tag_9 },
|
|
57
|
+
...options,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Search memories using semantic similarity. Filter by tag fields to narrow
|
|
63
|
+
* results.
|
|
64
|
+
*
|
|
65
|
+
* Use tag_1 through tag_12 for filtering - these are generic indexed fields you
|
|
66
|
+
* define:
|
|
67
|
+
*
|
|
68
|
+
* - Legal app: tag_1=client_id, tag_2=matter_id
|
|
69
|
+
* - Healthcare: tag_1=patient_id, tag_2=encounter_id
|
|
70
|
+
*/
|
|
71
|
+
search(body: V1SearchParams, options?: RequestOptions): APIPromise<V1SearchResponse> {
|
|
72
|
+
return this._client.post('/memory/v1/search', { body, ...options });
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface V1CreateResponse {
|
|
77
|
+
results?: Array<V1CreateResponse.Result>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export namespace V1CreateResponse {
|
|
81
|
+
export interface Result {
|
|
82
|
+
/**
|
|
83
|
+
* Memory ID
|
|
84
|
+
*/
|
|
85
|
+
id?: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* What happened to this memory
|
|
89
|
+
*/
|
|
90
|
+
event?: 'ADD' | 'UPDATE' | 'DELETE' | 'NONE';
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Extracted memory text
|
|
94
|
+
*/
|
|
95
|
+
memory?: string;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface V1RetrieveResponse {
|
|
100
|
+
/**
|
|
101
|
+
* Memory ID
|
|
102
|
+
*/
|
|
103
|
+
id?: string;
|
|
104
|
+
|
|
105
|
+
created_at?: string;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Memory content
|
|
109
|
+
*/
|
|
110
|
+
memory?: string;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Memory metadata
|
|
114
|
+
*/
|
|
115
|
+
metadata?: unknown;
|
|
116
|
+
|
|
117
|
+
updated_at?: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface V1ListResponse {
|
|
121
|
+
/**
|
|
122
|
+
* Total count matching filters
|
|
123
|
+
*/
|
|
124
|
+
count?: number;
|
|
125
|
+
|
|
126
|
+
results?: Array<V1ListResponse.Result>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export namespace V1ListResponse {
|
|
130
|
+
export interface Result {
|
|
131
|
+
id?: string;
|
|
132
|
+
|
|
133
|
+
created_at?: string;
|
|
134
|
+
|
|
135
|
+
memory?: string;
|
|
136
|
+
|
|
137
|
+
metadata?: unknown;
|
|
138
|
+
|
|
139
|
+
tags?: unknown;
|
|
140
|
+
|
|
141
|
+
updated_at?: string;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface V1DeleteResponse {
|
|
146
|
+
message?: string;
|
|
147
|
+
|
|
148
|
+
success?: boolean;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface V1DeleteAllResponse {
|
|
152
|
+
/**
|
|
153
|
+
* Number of memories deleted
|
|
154
|
+
*/
|
|
155
|
+
deleted?: number;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface V1SearchResponse {
|
|
159
|
+
results?: Array<V1SearchResponse.Result>;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export namespace V1SearchResponse {
|
|
163
|
+
export interface Result {
|
|
164
|
+
/**
|
|
165
|
+
* Memory ID
|
|
166
|
+
*/
|
|
167
|
+
id?: string;
|
|
168
|
+
|
|
169
|
+
created_at?: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Memory content
|
|
173
|
+
*/
|
|
174
|
+
memory?: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Additional metadata
|
|
178
|
+
*/
|
|
179
|
+
metadata?: unknown;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Similarity score (0-1)
|
|
183
|
+
*/
|
|
184
|
+
score?: number;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Tag values for this memory
|
|
188
|
+
*/
|
|
189
|
+
tags?: Result.Tags;
|
|
190
|
+
|
|
191
|
+
updated_at?: string;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export namespace Result {
|
|
195
|
+
/**
|
|
196
|
+
* Tag values for this memory
|
|
197
|
+
*/
|
|
198
|
+
export interface Tags {
|
|
199
|
+
tag_1?: string;
|
|
200
|
+
|
|
201
|
+
tag_10?: string;
|
|
202
|
+
|
|
203
|
+
tag_11?: string;
|
|
204
|
+
|
|
205
|
+
tag_12?: string;
|
|
206
|
+
|
|
207
|
+
tag_2?: string;
|
|
208
|
+
|
|
209
|
+
tag_3?: string;
|
|
210
|
+
|
|
211
|
+
tag_4?: string;
|
|
212
|
+
|
|
213
|
+
tag_5?: string;
|
|
214
|
+
|
|
215
|
+
tag_6?: string;
|
|
216
|
+
|
|
217
|
+
tag_7?: string;
|
|
218
|
+
|
|
219
|
+
tag_8?: string;
|
|
220
|
+
|
|
221
|
+
tag_9?: string;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface V1CreateParams {
|
|
227
|
+
/**
|
|
228
|
+
* Conversation messages to extract memories from
|
|
229
|
+
*/
|
|
230
|
+
messages: Array<V1CreateParams.Message>;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Custom category (e.g., "fact", "preference", "deadline")
|
|
234
|
+
*/
|
|
235
|
+
category?: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Optional custom prompt for fact extraction
|
|
239
|
+
*/
|
|
240
|
+
extraction_prompt?: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Whether to extract facts from messages (default: true)
|
|
244
|
+
*/
|
|
245
|
+
infer?: boolean;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Additional metadata (not indexed)
|
|
249
|
+
*/
|
|
250
|
+
metadata?: { [key: string]: unknown };
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Generic indexed filter field 1 (you decide what it means)
|
|
254
|
+
*/
|
|
255
|
+
tag_1?: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Generic indexed filter field 10
|
|
259
|
+
*/
|
|
260
|
+
tag_10?: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Generic indexed filter field 11
|
|
264
|
+
*/
|
|
265
|
+
tag_11?: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Generic indexed filter field 12
|
|
269
|
+
*/
|
|
270
|
+
tag_12?: string;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Generic indexed filter field 2
|
|
274
|
+
*/
|
|
275
|
+
tag_2?: string;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Generic indexed filter field 3
|
|
279
|
+
*/
|
|
280
|
+
tag_3?: string;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Generic indexed filter field 4
|
|
284
|
+
*/
|
|
285
|
+
tag_4?: string;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Generic indexed filter field 5
|
|
289
|
+
*/
|
|
290
|
+
tag_5?: string;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Generic indexed filter field 6
|
|
294
|
+
*/
|
|
295
|
+
tag_6?: string;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Generic indexed filter field 7
|
|
299
|
+
*/
|
|
300
|
+
tag_7?: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Generic indexed filter field 8
|
|
304
|
+
*/
|
|
305
|
+
tag_8?: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Generic indexed filter field 9
|
|
309
|
+
*/
|
|
310
|
+
tag_9?: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export namespace V1CreateParams {
|
|
314
|
+
export interface Message {
|
|
315
|
+
/**
|
|
316
|
+
* Message content
|
|
317
|
+
*/
|
|
318
|
+
content: string;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Message role
|
|
322
|
+
*/
|
|
323
|
+
role: 'user' | 'assistant' | 'system';
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export interface V1ListParams {
|
|
328
|
+
/**
|
|
329
|
+
* Filter by category
|
|
330
|
+
*/
|
|
331
|
+
category?: string;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Number of results
|
|
335
|
+
*/
|
|
336
|
+
limit?: number;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Pagination offset
|
|
340
|
+
*/
|
|
341
|
+
offset?: number;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Filter by tag_1
|
|
345
|
+
*/
|
|
346
|
+
tag_1?: string;
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Filter by tag_10
|
|
350
|
+
*/
|
|
351
|
+
tag_10?: string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Filter by tag_11
|
|
355
|
+
*/
|
|
356
|
+
tag_11?: string;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Filter by tag_12
|
|
360
|
+
*/
|
|
361
|
+
tag_12?: string;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Filter by tag_2
|
|
365
|
+
*/
|
|
366
|
+
tag_2?: string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Filter by tag_3
|
|
370
|
+
*/
|
|
371
|
+
tag_3?: string;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Filter by tag_4
|
|
375
|
+
*/
|
|
376
|
+
tag_4?: string;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Filter by tag_5
|
|
380
|
+
*/
|
|
381
|
+
tag_5?: string;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Filter by tag_6
|
|
385
|
+
*/
|
|
386
|
+
tag_6?: string;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Filter by tag_7
|
|
390
|
+
*/
|
|
391
|
+
tag_7?: string;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Filter by tag_8
|
|
395
|
+
*/
|
|
396
|
+
tag_8?: string;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Filter by tag_9
|
|
400
|
+
*/
|
|
401
|
+
tag_9?: string;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export interface V1DeleteAllParams {
|
|
405
|
+
/**
|
|
406
|
+
* Filter by tag_1
|
|
407
|
+
*/
|
|
408
|
+
tag_1?: string;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Filter by tag_10
|
|
412
|
+
*/
|
|
413
|
+
tag_10?: string;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Filter by tag_11
|
|
417
|
+
*/
|
|
418
|
+
tag_11?: string;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Filter by tag_12
|
|
422
|
+
*/
|
|
423
|
+
tag_12?: string;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Filter by tag_2
|
|
427
|
+
*/
|
|
428
|
+
tag_2?: string;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Filter by tag_3
|
|
432
|
+
*/
|
|
433
|
+
tag_3?: string;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Filter by tag_4
|
|
437
|
+
*/
|
|
438
|
+
tag_4?: string;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Filter by tag_5
|
|
442
|
+
*/
|
|
443
|
+
tag_5?: string;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Filter by tag_6
|
|
447
|
+
*/
|
|
448
|
+
tag_6?: string;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Filter by tag_7
|
|
452
|
+
*/
|
|
453
|
+
tag_7?: string;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Filter by tag_8
|
|
457
|
+
*/
|
|
458
|
+
tag_8?: string;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Filter by tag_9
|
|
462
|
+
*/
|
|
463
|
+
tag_9?: string;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export interface V1SearchParams {
|
|
467
|
+
/**
|
|
468
|
+
* Search query for semantic matching
|
|
469
|
+
*/
|
|
470
|
+
query: string;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Filter by category
|
|
474
|
+
*/
|
|
475
|
+
category?: string;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Filter by tag_1
|
|
479
|
+
*/
|
|
480
|
+
tag_1?: string;
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Filter by tag_10
|
|
484
|
+
*/
|
|
485
|
+
tag_10?: string;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Filter by tag_11
|
|
489
|
+
*/
|
|
490
|
+
tag_11?: string;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Filter by tag_12
|
|
494
|
+
*/
|
|
495
|
+
tag_12?: string;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Filter by tag_2
|
|
499
|
+
*/
|
|
500
|
+
tag_2?: string;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Filter by tag_3
|
|
504
|
+
*/
|
|
505
|
+
tag_3?: string;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Filter by tag_4
|
|
509
|
+
*/
|
|
510
|
+
tag_4?: string;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Filter by tag_5
|
|
514
|
+
*/
|
|
515
|
+
tag_5?: string;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Filter by tag_6
|
|
519
|
+
*/
|
|
520
|
+
tag_6?: string;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Filter by tag_7
|
|
524
|
+
*/
|
|
525
|
+
tag_7?: string;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Filter by tag_8
|
|
529
|
+
*/
|
|
530
|
+
tag_8?: string;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Filter by tag_9
|
|
534
|
+
*/
|
|
535
|
+
tag_9?: string;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Maximum number of results to return
|
|
539
|
+
*/
|
|
540
|
+
top_k?: number;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export declare namespace V1 {
|
|
544
|
+
export {
|
|
545
|
+
type V1CreateResponse as V1CreateResponse,
|
|
546
|
+
type V1RetrieveResponse as V1RetrieveResponse,
|
|
547
|
+
type V1ListResponse as V1ListResponse,
|
|
548
|
+
type V1DeleteResponse as V1DeleteResponse,
|
|
549
|
+
type V1DeleteAllResponse as V1DeleteAllResponse,
|
|
550
|
+
type V1SearchResponse as V1SearchResponse,
|
|
551
|
+
type V1CreateParams as V1CreateParams,
|
|
552
|
+
type V1ListParams as V1ListParams,
|
|
553
|
+
type V1DeleteAllParams as V1DeleteAllParams,
|
|
554
|
+
type V1SearchParams as V1SearchParams,
|
|
555
|
+
};
|
|
556
|
+
}
|
package/src/resources/ocr/v1.ts
CHANGED
|
@@ -62,17 +62,22 @@ export interface V1RetrieveResponse {
|
|
|
62
62
|
/**
|
|
63
63
|
* OCR job ID
|
|
64
64
|
*/
|
|
65
|
-
id
|
|
65
|
+
id: string;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
* Job
|
|
68
|
+
* Job creation timestamp
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
created_at: string;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Current job status
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
status: 'pending' | 'processing' | 'completed' | 'failed';
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Job completion timestamp
|
|
79
|
+
*/
|
|
80
|
+
completed_at?: string;
|
|
76
81
|
|
|
77
82
|
/**
|
|
78
83
|
* Additional processing metadata
|
|
@@ -84,11 +89,6 @@ export interface V1RetrieveResponse {
|
|
|
84
89
|
*/
|
|
85
90
|
page_count?: number;
|
|
86
91
|
|
|
87
|
-
/**
|
|
88
|
-
* Current job status
|
|
89
|
-
*/
|
|
90
|
-
status?: 'pending' | 'processing' | 'completed' | 'failed';
|
|
91
|
-
|
|
92
92
|
/**
|
|
93
93
|
* Extracted text content (when completed)
|
|
94
94
|
*/
|
|
@@ -163,7 +163,7 @@ export interface V1ProcessParams {
|
|
|
163
163
|
engine?: 'doctr' | 'paddleocr';
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* Additional processing options
|
|
167
167
|
*/
|
|
168
168
|
features?: V1ProcessParams.Features;
|
|
169
169
|
|
|
@@ -180,28 +180,37 @@ export interface V1ProcessParams {
|
|
|
180
180
|
|
|
181
181
|
export namespace V1ProcessParams {
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
* Additional processing options
|
|
184
184
|
*/
|
|
185
185
|
export interface Features {
|
|
186
186
|
/**
|
|
187
|
-
*
|
|
187
|
+
* Generate searchable PDF with text layer
|
|
188
188
|
*/
|
|
189
|
-
|
|
189
|
+
embed?: { [key: string]: unknown };
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
|
-
*
|
|
192
|
+
* Detect and extract form fields
|
|
193
193
|
*/
|
|
194
|
-
|
|
194
|
+
forms?: { [key: string]: unknown };
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
|
-
*
|
|
197
|
+
* Extract tables as structured data
|
|
198
198
|
*/
|
|
199
|
-
tables?:
|
|
199
|
+
tables?: Features.Tables;
|
|
200
|
+
}
|
|
200
201
|
|
|
202
|
+
export namespace Features {
|
|
201
203
|
/**
|
|
202
|
-
* Extract
|
|
204
|
+
* Extract tables as structured data
|
|
203
205
|
*/
|
|
204
|
-
|
|
206
|
+
export interface Tables {
|
|
207
|
+
/**
|
|
208
|
+
* Output format for extracted tables
|
|
209
|
+
*/
|
|
210
|
+
format?: 'csv' | 'json';
|
|
211
|
+
|
|
212
|
+
[k: string]: unknown;
|
|
213
|
+
}
|
|
205
214
|
}
|
|
206
215
|
}
|
|
207
216
|
|