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,417 @@
|
|
|
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 V1 extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Store memories from conversation messages. Automatically extracts facts and
|
|
7
|
+
* handles deduplication.
|
|
8
|
+
*
|
|
9
|
+
* Use tag_1 through tag_12 for filtering - these are generic indexed fields you
|
|
10
|
+
* can use for any purpose:
|
|
11
|
+
*
|
|
12
|
+
* - Legal app: tag_1=client_id, tag_2=matter_id
|
|
13
|
+
* - Healthcare: tag_1=patient_id, tag_2=encounter_id
|
|
14
|
+
* - E-commerce: tag_1=customer_id, tag_2=order_id
|
|
15
|
+
*/
|
|
16
|
+
create(body: V1CreateParams, options?: RequestOptions): APIPromise<V1CreateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a single memory by its ID.
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<V1RetrieveResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* List all memories with optional filtering by tags and category.
|
|
23
|
+
*/
|
|
24
|
+
list(query?: V1ListParams | null | undefined, options?: RequestOptions): APIPromise<V1ListResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Delete a single memory by its ID.
|
|
27
|
+
*/
|
|
28
|
+
delete(id: string, options?: RequestOptions): APIPromise<V1DeleteResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Delete multiple memories matching tag filter criteria. CAUTION: This will delete
|
|
31
|
+
* all matching memories for your organization.
|
|
32
|
+
*/
|
|
33
|
+
deleteAll(params?: V1DeleteAllParams | null | undefined, options?: RequestOptions): APIPromise<V1DeleteAllResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Search memories using semantic similarity. Filter by tag fields to narrow
|
|
36
|
+
* results.
|
|
37
|
+
*
|
|
38
|
+
* Use tag_1 through tag_12 for filtering - these are generic indexed fields you
|
|
39
|
+
* define:
|
|
40
|
+
*
|
|
41
|
+
* - Legal app: tag_1=client_id, tag_2=matter_id
|
|
42
|
+
* - Healthcare: tag_1=patient_id, tag_2=encounter_id
|
|
43
|
+
*/
|
|
44
|
+
search(body: V1SearchParams, options?: RequestOptions): APIPromise<V1SearchResponse>;
|
|
45
|
+
}
|
|
46
|
+
export interface V1CreateResponse {
|
|
47
|
+
results?: Array<V1CreateResponse.Result>;
|
|
48
|
+
}
|
|
49
|
+
export declare namespace V1CreateResponse {
|
|
50
|
+
interface Result {
|
|
51
|
+
/**
|
|
52
|
+
* Memory ID
|
|
53
|
+
*/
|
|
54
|
+
id?: string;
|
|
55
|
+
/**
|
|
56
|
+
* What happened to this memory
|
|
57
|
+
*/
|
|
58
|
+
event?: 'ADD' | 'UPDATE' | 'DELETE' | 'NONE';
|
|
59
|
+
/**
|
|
60
|
+
* Extracted memory text
|
|
61
|
+
*/
|
|
62
|
+
memory?: string;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export interface V1RetrieveResponse {
|
|
66
|
+
/**
|
|
67
|
+
* Memory ID
|
|
68
|
+
*/
|
|
69
|
+
id?: string;
|
|
70
|
+
created_at?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Memory content
|
|
73
|
+
*/
|
|
74
|
+
memory?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Memory metadata
|
|
77
|
+
*/
|
|
78
|
+
metadata?: unknown;
|
|
79
|
+
updated_at?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface V1ListResponse {
|
|
82
|
+
/**
|
|
83
|
+
* Total count matching filters
|
|
84
|
+
*/
|
|
85
|
+
count?: number;
|
|
86
|
+
results?: Array<V1ListResponse.Result>;
|
|
87
|
+
}
|
|
88
|
+
export declare namespace V1ListResponse {
|
|
89
|
+
interface Result {
|
|
90
|
+
id?: string;
|
|
91
|
+
created_at?: string;
|
|
92
|
+
memory?: string;
|
|
93
|
+
metadata?: unknown;
|
|
94
|
+
tags?: unknown;
|
|
95
|
+
updated_at?: string;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export interface V1DeleteResponse {
|
|
99
|
+
message?: string;
|
|
100
|
+
success?: boolean;
|
|
101
|
+
}
|
|
102
|
+
export interface V1DeleteAllResponse {
|
|
103
|
+
/**
|
|
104
|
+
* Number of memories deleted
|
|
105
|
+
*/
|
|
106
|
+
deleted?: number;
|
|
107
|
+
}
|
|
108
|
+
export interface V1SearchResponse {
|
|
109
|
+
results?: Array<V1SearchResponse.Result>;
|
|
110
|
+
}
|
|
111
|
+
export declare namespace V1SearchResponse {
|
|
112
|
+
interface Result {
|
|
113
|
+
/**
|
|
114
|
+
* Memory ID
|
|
115
|
+
*/
|
|
116
|
+
id?: string;
|
|
117
|
+
created_at?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Memory content
|
|
120
|
+
*/
|
|
121
|
+
memory?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Additional metadata
|
|
124
|
+
*/
|
|
125
|
+
metadata?: unknown;
|
|
126
|
+
/**
|
|
127
|
+
* Similarity score (0-1)
|
|
128
|
+
*/
|
|
129
|
+
score?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Tag values for this memory
|
|
132
|
+
*/
|
|
133
|
+
tags?: Result.Tags;
|
|
134
|
+
updated_at?: string;
|
|
135
|
+
}
|
|
136
|
+
namespace Result {
|
|
137
|
+
/**
|
|
138
|
+
* Tag values for this memory
|
|
139
|
+
*/
|
|
140
|
+
interface Tags {
|
|
141
|
+
tag_1?: string;
|
|
142
|
+
tag_10?: string;
|
|
143
|
+
tag_11?: string;
|
|
144
|
+
tag_12?: string;
|
|
145
|
+
tag_2?: string;
|
|
146
|
+
tag_3?: string;
|
|
147
|
+
tag_4?: string;
|
|
148
|
+
tag_5?: string;
|
|
149
|
+
tag_6?: string;
|
|
150
|
+
tag_7?: string;
|
|
151
|
+
tag_8?: string;
|
|
152
|
+
tag_9?: string;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
export interface V1CreateParams {
|
|
157
|
+
/**
|
|
158
|
+
* Conversation messages to extract memories from
|
|
159
|
+
*/
|
|
160
|
+
messages: Array<V1CreateParams.Message>;
|
|
161
|
+
/**
|
|
162
|
+
* Custom category (e.g., "fact", "preference", "deadline")
|
|
163
|
+
*/
|
|
164
|
+
category?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Optional custom prompt for fact extraction
|
|
167
|
+
*/
|
|
168
|
+
extraction_prompt?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Whether to extract facts from messages (default: true)
|
|
171
|
+
*/
|
|
172
|
+
infer?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Additional metadata (not indexed)
|
|
175
|
+
*/
|
|
176
|
+
metadata?: {
|
|
177
|
+
[key: string]: unknown;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Generic indexed filter field 1 (you decide what it means)
|
|
181
|
+
*/
|
|
182
|
+
tag_1?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Generic indexed filter field 10
|
|
185
|
+
*/
|
|
186
|
+
tag_10?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Generic indexed filter field 11
|
|
189
|
+
*/
|
|
190
|
+
tag_11?: string;
|
|
191
|
+
/**
|
|
192
|
+
* Generic indexed filter field 12
|
|
193
|
+
*/
|
|
194
|
+
tag_12?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Generic indexed filter field 2
|
|
197
|
+
*/
|
|
198
|
+
tag_2?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Generic indexed filter field 3
|
|
201
|
+
*/
|
|
202
|
+
tag_3?: string;
|
|
203
|
+
/**
|
|
204
|
+
* Generic indexed filter field 4
|
|
205
|
+
*/
|
|
206
|
+
tag_4?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Generic indexed filter field 5
|
|
209
|
+
*/
|
|
210
|
+
tag_5?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Generic indexed filter field 6
|
|
213
|
+
*/
|
|
214
|
+
tag_6?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Generic indexed filter field 7
|
|
217
|
+
*/
|
|
218
|
+
tag_7?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Generic indexed filter field 8
|
|
221
|
+
*/
|
|
222
|
+
tag_8?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Generic indexed filter field 9
|
|
225
|
+
*/
|
|
226
|
+
tag_9?: string;
|
|
227
|
+
}
|
|
228
|
+
export declare namespace V1CreateParams {
|
|
229
|
+
interface Message {
|
|
230
|
+
/**
|
|
231
|
+
* Message content
|
|
232
|
+
*/
|
|
233
|
+
content: string;
|
|
234
|
+
/**
|
|
235
|
+
* Message role
|
|
236
|
+
*/
|
|
237
|
+
role: 'user' | 'assistant' | 'system';
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
export interface V1ListParams {
|
|
241
|
+
/**
|
|
242
|
+
* Filter by category
|
|
243
|
+
*/
|
|
244
|
+
category?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Number of results
|
|
247
|
+
*/
|
|
248
|
+
limit?: number;
|
|
249
|
+
/**
|
|
250
|
+
* Pagination offset
|
|
251
|
+
*/
|
|
252
|
+
offset?: number;
|
|
253
|
+
/**
|
|
254
|
+
* Filter by tag_1
|
|
255
|
+
*/
|
|
256
|
+
tag_1?: string;
|
|
257
|
+
/**
|
|
258
|
+
* Filter by tag_10
|
|
259
|
+
*/
|
|
260
|
+
tag_10?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Filter by tag_11
|
|
263
|
+
*/
|
|
264
|
+
tag_11?: string;
|
|
265
|
+
/**
|
|
266
|
+
* Filter by tag_12
|
|
267
|
+
*/
|
|
268
|
+
tag_12?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Filter by tag_2
|
|
271
|
+
*/
|
|
272
|
+
tag_2?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Filter by tag_3
|
|
275
|
+
*/
|
|
276
|
+
tag_3?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Filter by tag_4
|
|
279
|
+
*/
|
|
280
|
+
tag_4?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Filter by tag_5
|
|
283
|
+
*/
|
|
284
|
+
tag_5?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Filter by tag_6
|
|
287
|
+
*/
|
|
288
|
+
tag_6?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Filter by tag_7
|
|
291
|
+
*/
|
|
292
|
+
tag_7?: string;
|
|
293
|
+
/**
|
|
294
|
+
* Filter by tag_8
|
|
295
|
+
*/
|
|
296
|
+
tag_8?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Filter by tag_9
|
|
299
|
+
*/
|
|
300
|
+
tag_9?: string;
|
|
301
|
+
}
|
|
302
|
+
export interface V1DeleteAllParams {
|
|
303
|
+
/**
|
|
304
|
+
* Filter by tag_1
|
|
305
|
+
*/
|
|
306
|
+
tag_1?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Filter by tag_10
|
|
309
|
+
*/
|
|
310
|
+
tag_10?: string;
|
|
311
|
+
/**
|
|
312
|
+
* Filter by tag_11
|
|
313
|
+
*/
|
|
314
|
+
tag_11?: string;
|
|
315
|
+
/**
|
|
316
|
+
* Filter by tag_12
|
|
317
|
+
*/
|
|
318
|
+
tag_12?: string;
|
|
319
|
+
/**
|
|
320
|
+
* Filter by tag_2
|
|
321
|
+
*/
|
|
322
|
+
tag_2?: string;
|
|
323
|
+
/**
|
|
324
|
+
* Filter by tag_3
|
|
325
|
+
*/
|
|
326
|
+
tag_3?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Filter by tag_4
|
|
329
|
+
*/
|
|
330
|
+
tag_4?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Filter by tag_5
|
|
333
|
+
*/
|
|
334
|
+
tag_5?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Filter by tag_6
|
|
337
|
+
*/
|
|
338
|
+
tag_6?: string;
|
|
339
|
+
/**
|
|
340
|
+
* Filter by tag_7
|
|
341
|
+
*/
|
|
342
|
+
tag_7?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Filter by tag_8
|
|
345
|
+
*/
|
|
346
|
+
tag_8?: string;
|
|
347
|
+
/**
|
|
348
|
+
* Filter by tag_9
|
|
349
|
+
*/
|
|
350
|
+
tag_9?: string;
|
|
351
|
+
}
|
|
352
|
+
export interface V1SearchParams {
|
|
353
|
+
/**
|
|
354
|
+
* Search query for semantic matching
|
|
355
|
+
*/
|
|
356
|
+
query: string;
|
|
357
|
+
/**
|
|
358
|
+
* Filter by category
|
|
359
|
+
*/
|
|
360
|
+
category?: string;
|
|
361
|
+
/**
|
|
362
|
+
* Filter by tag_1
|
|
363
|
+
*/
|
|
364
|
+
tag_1?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Filter by tag_10
|
|
367
|
+
*/
|
|
368
|
+
tag_10?: string;
|
|
369
|
+
/**
|
|
370
|
+
* Filter by tag_11
|
|
371
|
+
*/
|
|
372
|
+
tag_11?: string;
|
|
373
|
+
/**
|
|
374
|
+
* Filter by tag_12
|
|
375
|
+
*/
|
|
376
|
+
tag_12?: string;
|
|
377
|
+
/**
|
|
378
|
+
* Filter by tag_2
|
|
379
|
+
*/
|
|
380
|
+
tag_2?: string;
|
|
381
|
+
/**
|
|
382
|
+
* Filter by tag_3
|
|
383
|
+
*/
|
|
384
|
+
tag_3?: string;
|
|
385
|
+
/**
|
|
386
|
+
* Filter by tag_4
|
|
387
|
+
*/
|
|
388
|
+
tag_4?: string;
|
|
389
|
+
/**
|
|
390
|
+
* Filter by tag_5
|
|
391
|
+
*/
|
|
392
|
+
tag_5?: string;
|
|
393
|
+
/**
|
|
394
|
+
* Filter by tag_6
|
|
395
|
+
*/
|
|
396
|
+
tag_6?: string;
|
|
397
|
+
/**
|
|
398
|
+
* Filter by tag_7
|
|
399
|
+
*/
|
|
400
|
+
tag_7?: string;
|
|
401
|
+
/**
|
|
402
|
+
* Filter by tag_8
|
|
403
|
+
*/
|
|
404
|
+
tag_8?: string;
|
|
405
|
+
/**
|
|
406
|
+
* Filter by tag_9
|
|
407
|
+
*/
|
|
408
|
+
tag_9?: string;
|
|
409
|
+
/**
|
|
410
|
+
* Maximum number of results to return
|
|
411
|
+
*/
|
|
412
|
+
top_k?: number;
|
|
413
|
+
}
|
|
414
|
+
export declare namespace V1 {
|
|
415
|
+
export { type V1CreateResponse as V1CreateResponse, type V1RetrieveResponse as V1RetrieveResponse, type V1ListResponse as V1ListResponse, type V1DeleteResponse as V1DeleteResponse, type V1DeleteAllResponse as V1DeleteAllResponse, type V1SearchResponse as V1SearchResponse, type V1CreateParams as V1CreateParams, type V1ListParams as V1ListParams, type V1DeleteAllParams as V1DeleteAllParams, type V1SearchParams as V1SearchParams, };
|
|
416
|
+
}
|
|
417
|
+
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/memory/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIpF;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9E;;OAEG;IACH,IAAI,CAAC,KAAK,GAAE,YAAY,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAA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C3C,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.V1 = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class V1 extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Store memories from conversation messages. Automatically extracts facts and
|
|
10
|
+
* handles deduplication.
|
|
11
|
+
*
|
|
12
|
+
* Use tag_1 through tag_12 for filtering - these are generic indexed fields you
|
|
13
|
+
* can use for any purpose:
|
|
14
|
+
*
|
|
15
|
+
* - Legal app: tag_1=client_id, tag_2=matter_id
|
|
16
|
+
* - Healthcare: tag_1=patient_id, tag_2=encounter_id
|
|
17
|
+
* - E-commerce: tag_1=customer_id, tag_2=order_id
|
|
18
|
+
*/
|
|
19
|
+
create(body, options) {
|
|
20
|
+
return this._client.post('/memory/v1', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve a single memory by its ID.
|
|
24
|
+
*/
|
|
25
|
+
retrieve(id, options) {
|
|
26
|
+
return this._client.get((0, path_1.path) `/memory/v1/${id}`, options);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* List all memories with optional filtering by tags and category.
|
|
30
|
+
*/
|
|
31
|
+
list(query = {}, options) {
|
|
32
|
+
return this._client.get('/memory/v1', { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Delete a single memory by its ID.
|
|
36
|
+
*/
|
|
37
|
+
delete(id, options) {
|
|
38
|
+
return this._client.delete((0, path_1.path) `/memory/v1/${id}`, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Delete multiple memories matching tag filter criteria. CAUTION: This will delete
|
|
42
|
+
* all matching memories for your organization.
|
|
43
|
+
*/
|
|
44
|
+
deleteAll(params = {}, options) {
|
|
45
|
+
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 } = params ?? {};
|
|
46
|
+
return this._client.delete('/memory/v1', {
|
|
47
|
+
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 },
|
|
48
|
+
...options,
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Search memories using semantic similarity. Filter by tag fields to narrow
|
|
53
|
+
* results.
|
|
54
|
+
*
|
|
55
|
+
* Use tag_1 through tag_12 for filtering - these are generic indexed fields you
|
|
56
|
+
* define:
|
|
57
|
+
*
|
|
58
|
+
* - Legal app: tag_1=client_id, tag_2=matter_id
|
|
59
|
+
* - Healthcare: tag_1=patient_id, tag_2=encounter_id
|
|
60
|
+
*/
|
|
61
|
+
search(body, options) {
|
|
62
|
+
return this._client.post('/memory/v1/search', { body, ...options });
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.V1 = V1;
|
|
66
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/memory/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IA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+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class V1 extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Store memories from conversation messages. Automatically extracts facts and
|
|
7
|
+
* handles deduplication.
|
|
8
|
+
*
|
|
9
|
+
* Use tag_1 through tag_12 for filtering - these are generic indexed fields you
|
|
10
|
+
* can use for any purpose:
|
|
11
|
+
*
|
|
12
|
+
* - Legal app: tag_1=client_id, tag_2=matter_id
|
|
13
|
+
* - Healthcare: tag_1=patient_id, tag_2=encounter_id
|
|
14
|
+
* - E-commerce: tag_1=customer_id, tag_2=order_id
|
|
15
|
+
*/
|
|
16
|
+
create(body, options) {
|
|
17
|
+
return this._client.post('/memory/v1', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve a single memory by its ID.
|
|
21
|
+
*/
|
|
22
|
+
retrieve(id, options) {
|
|
23
|
+
return this._client.get(path `/memory/v1/${id}`, options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* List all memories with optional filtering by tags and category.
|
|
27
|
+
*/
|
|
28
|
+
list(query = {}, options) {
|
|
29
|
+
return this._client.get('/memory/v1', { query, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Delete a single memory by its ID.
|
|
33
|
+
*/
|
|
34
|
+
delete(id, options) {
|
|
35
|
+
return this._client.delete(path `/memory/v1/${id}`, options);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Delete multiple memories matching tag filter criteria. CAUTION: This will delete
|
|
39
|
+
* all matching memories for your organization.
|
|
40
|
+
*/
|
|
41
|
+
deleteAll(params = {}, options) {
|
|
42
|
+
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 } = params ?? {};
|
|
43
|
+
return this._client.delete('/memory/v1', {
|
|
44
|
+
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 },
|
|
45
|
+
...options,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Search memories using semantic similarity. Filter by tag fields to narrow
|
|
50
|
+
* results.
|
|
51
|
+
*
|
|
52
|
+
* Use tag_1 through tag_12 for filtering - these are generic indexed fields you
|
|
53
|
+
* define:
|
|
54
|
+
*
|
|
55
|
+
* - Legal app: tag_1=client_id, tag_2=matter_id
|
|
56
|
+
* - Healthcare: tag_1=patient_id, tag_2=encounter_id
|
|
57
|
+
*/
|
|
58
|
+
search(body, options) {
|
|
59
|
+
return this._client.post('/memory/v1/search', { body, ...options });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=v1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/memory/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,QAAyC,EAAE,EAAE,OAAwB;QACxE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,SAAS,CACP,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAC7F,MAAM,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE;YACvC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YAChG,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.mts","sourceRoot":"","sources":["../src/resources/memory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/resources/memory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./memory/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=memory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../src/resources/memory.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.mjs","sourceRoot":"","sources":["../src/resources/memory.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
package/resources/ocr/v1.d.mts
CHANGED
|
@@ -44,15 +44,19 @@ export interface V1RetrieveResponse {
|
|
|
44
44
|
/**
|
|
45
45
|
* OCR job ID
|
|
46
46
|
*/
|
|
47
|
-
id
|
|
47
|
+
id: string;
|
|
48
48
|
/**
|
|
49
|
-
* Job
|
|
49
|
+
* Job creation timestamp
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
created_at: string;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Current job status
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
status: 'pending' | 'processing' | 'completed' | 'failed';
|
|
56
|
+
/**
|
|
57
|
+
* Job completion timestamp
|
|
58
|
+
*/
|
|
59
|
+
completed_at?: string;
|
|
56
60
|
/**
|
|
57
61
|
* Additional processing metadata
|
|
58
62
|
*/
|
|
@@ -61,10 +65,6 @@ export interface V1RetrieveResponse {
|
|
|
61
65
|
* Number of pages processed
|
|
62
66
|
*/
|
|
63
67
|
page_count?: number;
|
|
64
|
-
/**
|
|
65
|
-
* Current job status
|
|
66
|
-
*/
|
|
67
|
-
status?: 'pending' | 'processing' | 'completed' | 'failed';
|
|
68
68
|
/**
|
|
69
69
|
* Extracted text content (when completed)
|
|
70
70
|
*/
|
|
@@ -125,7 +125,7 @@ export interface V1ProcessParams {
|
|
|
125
125
|
*/
|
|
126
126
|
engine?: 'doctr' | 'paddleocr';
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* Additional processing options
|
|
129
129
|
*/
|
|
130
130
|
features?: V1ProcessParams.Features;
|
|
131
131
|
/**
|
|
@@ -139,25 +139,37 @@ export interface V1ProcessParams {
|
|
|
139
139
|
}
|
|
140
140
|
export declare namespace V1ProcessParams {
|
|
141
141
|
/**
|
|
142
|
-
*
|
|
142
|
+
* Additional processing options
|
|
143
143
|
*/
|
|
144
144
|
interface Features {
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Generate searchable PDF with text layer
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
embed?: {
|
|
149
|
+
[key: string]: unknown;
|
|
150
|
+
};
|
|
149
151
|
/**
|
|
150
|
-
*
|
|
152
|
+
* Detect and extract form fields
|
|
151
153
|
*/
|
|
152
|
-
|
|
154
|
+
forms?: {
|
|
155
|
+
[key: string]: unknown;
|
|
156
|
+
};
|
|
153
157
|
/**
|
|
154
|
-
*
|
|
158
|
+
* Extract tables as structured data
|
|
155
159
|
*/
|
|
156
|
-
tables?:
|
|
160
|
+
tables?: Features.Tables;
|
|
161
|
+
}
|
|
162
|
+
namespace Features {
|
|
157
163
|
/**
|
|
158
|
-
* Extract
|
|
164
|
+
* Extract tables as structured data
|
|
159
165
|
*/
|
|
160
|
-
|
|
166
|
+
interface Tables {
|
|
167
|
+
/**
|
|
168
|
+
* Output format for extracted tables
|
|
169
|
+
*/
|
|
170
|
+
format?: 'csv' | 'json';
|
|
171
|
+
[k: string]: unknown;
|
|
172
|
+
}
|
|
161
173
|
}
|
|
162
174
|
}
|
|
163
175
|
export declare namespace V1 {
|