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,17 @@
|
|
|
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.Superdoc = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const V1API = tslib_1.__importStar(require("./v1.js"));
|
|
8
|
+
const v1_1 = require("./v1.js");
|
|
9
|
+
class Superdoc extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.v1 = new V1API.V1(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Superdoc = Superdoc;
|
|
16
|
+
Superdoc.V1 = v1_1.V1;
|
|
17
|
+
//# sourceMappingURL=superdoc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"superdoc.js","sourceRoot":"","sources":["../../src/resources/superdoc/superdoc.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uDAA8B;AAC9B,gCAA6D;AAE7D,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAFD,4BAEC;AAED,QAAQ,CAAC,EAAE,GAAG,OAAE,CAAC"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as V1API from "./v1.mjs";
|
|
4
4
|
import { V1 } from "./v1.mjs";
|
|
5
|
-
export class
|
|
5
|
+
export class Superdoc extends APIResource {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
8
|
this.v1 = new V1API.V1(this._client);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
//# sourceMappingURL=
|
|
11
|
+
Superdoc.V1 = V1;
|
|
12
|
+
//# sourceMappingURL=superdoc.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"superdoc.mjs","sourceRoot":"","sources":["../../src/resources/superdoc/superdoc.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAqC;AAEhD,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAED,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class V1 extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Populate fields inside a DOCX template using SuperDoc annotations. Supports
|
|
7
|
+
* text, images, dates, and numbers. Can target individual fields by ID or multiple
|
|
8
|
+
* fields by group.
|
|
9
|
+
*/
|
|
10
|
+
annotate(body: V1AnnotateParams, options?: RequestOptions): APIPromise<Response>;
|
|
11
|
+
/**
|
|
12
|
+
* Convert documents between formats using SuperDoc. Supports DOCX to PDF, Markdown
|
|
13
|
+
* to DOCX, and HTML to DOCX conversions.
|
|
14
|
+
*/
|
|
15
|
+
convert(body: V1ConvertParams, options?: RequestOptions): APIPromise<Response>;
|
|
16
|
+
}
|
|
17
|
+
export interface V1AnnotateParams {
|
|
18
|
+
/**
|
|
19
|
+
* Document source - provide either URL or base64
|
|
20
|
+
*/
|
|
21
|
+
document: V1AnnotateParams.Document;
|
|
22
|
+
/**
|
|
23
|
+
* Fields to populate in the template
|
|
24
|
+
*/
|
|
25
|
+
fields: Array<V1AnnotateParams.Field>;
|
|
26
|
+
/**
|
|
27
|
+
* Output format for the annotated document
|
|
28
|
+
*/
|
|
29
|
+
output_format?: 'docx' | 'pdf';
|
|
30
|
+
}
|
|
31
|
+
export declare namespace V1AnnotateParams {
|
|
32
|
+
/**
|
|
33
|
+
* Document source - provide either URL or base64
|
|
34
|
+
*/
|
|
35
|
+
interface Document {
|
|
36
|
+
/**
|
|
37
|
+
* Base64-encoded DOCX template
|
|
38
|
+
*/
|
|
39
|
+
base64?: string;
|
|
40
|
+
/**
|
|
41
|
+
* URL to the DOCX template
|
|
42
|
+
*/
|
|
43
|
+
url?: string;
|
|
44
|
+
}
|
|
45
|
+
interface Field {
|
|
46
|
+
/**
|
|
47
|
+
* Field data type
|
|
48
|
+
*/
|
|
49
|
+
type: 'text' | 'image' | 'date' | 'number';
|
|
50
|
+
/**
|
|
51
|
+
* Value to populate
|
|
52
|
+
*/
|
|
53
|
+
value: string | number;
|
|
54
|
+
/**
|
|
55
|
+
* Target field ID (for single field)
|
|
56
|
+
*/
|
|
57
|
+
id?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Target field group (for multiple fields with same tag)
|
|
60
|
+
*/
|
|
61
|
+
group?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Optional configuration (e.g., image dimensions)
|
|
64
|
+
*/
|
|
65
|
+
options?: Field.Options;
|
|
66
|
+
}
|
|
67
|
+
namespace Field {
|
|
68
|
+
/**
|
|
69
|
+
* Optional configuration (e.g., image dimensions)
|
|
70
|
+
*/
|
|
71
|
+
interface Options {
|
|
72
|
+
/**
|
|
73
|
+
* Image height in pixels
|
|
74
|
+
*/
|
|
75
|
+
height?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Image width in pixels
|
|
78
|
+
*/
|
|
79
|
+
width?: number;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export interface V1ConvertParams {
|
|
84
|
+
/**
|
|
85
|
+
* Source format of the document
|
|
86
|
+
*/
|
|
87
|
+
from: 'docx' | 'md' | 'html';
|
|
88
|
+
/**
|
|
89
|
+
* Base64-encoded document content
|
|
90
|
+
*/
|
|
91
|
+
document_base64?: string;
|
|
92
|
+
/**
|
|
93
|
+
* URL to the document to convert
|
|
94
|
+
*/
|
|
95
|
+
document_url?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Target format for conversion
|
|
98
|
+
*/
|
|
99
|
+
to?: 'pdf' | 'docx';
|
|
100
|
+
}
|
|
101
|
+
export declare namespace V1 {
|
|
102
|
+
export { type V1AnnotateParams as V1AnnotateParams, type V1ConvertParams as V1ConvertParams };
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/superdoc/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAShF;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAc/E;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC;IAEpC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAEtC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAChC;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;OAEG;IACH,UAAiB,QAAQ;QACvB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,KAAK;QACpB;;WAEG;QACH,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;QAE3C;;WAEG;QACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAEvB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC;KACzB;IAED,UAAiB,KAAK,CAAC;QACrB;;WAEG;QACH,UAAiB,OAAO;YACtB;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;IAE7B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CAC/F"}
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
* Populate fields inside a DOCX template using SuperDoc annotations. Supports
|
|
7
|
+
* text, images, dates, and numbers. Can target individual fields by ID or multiple
|
|
8
|
+
* fields by group.
|
|
9
|
+
*/
|
|
10
|
+
annotate(body: V1AnnotateParams, options?: RequestOptions): APIPromise<Response>;
|
|
11
|
+
/**
|
|
12
|
+
* Convert documents between formats using SuperDoc. Supports DOCX to PDF, Markdown
|
|
13
|
+
* to DOCX, and HTML to DOCX conversions.
|
|
14
|
+
*/
|
|
15
|
+
convert(body: V1ConvertParams, options?: RequestOptions): APIPromise<Response>;
|
|
16
|
+
}
|
|
17
|
+
export interface V1AnnotateParams {
|
|
18
|
+
/**
|
|
19
|
+
* Document source - provide either URL or base64
|
|
20
|
+
*/
|
|
21
|
+
document: V1AnnotateParams.Document;
|
|
22
|
+
/**
|
|
23
|
+
* Fields to populate in the template
|
|
24
|
+
*/
|
|
25
|
+
fields: Array<V1AnnotateParams.Field>;
|
|
26
|
+
/**
|
|
27
|
+
* Output format for the annotated document
|
|
28
|
+
*/
|
|
29
|
+
output_format?: 'docx' | 'pdf';
|
|
30
|
+
}
|
|
31
|
+
export declare namespace V1AnnotateParams {
|
|
32
|
+
/**
|
|
33
|
+
* Document source - provide either URL or base64
|
|
34
|
+
*/
|
|
35
|
+
interface Document {
|
|
36
|
+
/**
|
|
37
|
+
* Base64-encoded DOCX template
|
|
38
|
+
*/
|
|
39
|
+
base64?: string;
|
|
40
|
+
/**
|
|
41
|
+
* URL to the DOCX template
|
|
42
|
+
*/
|
|
43
|
+
url?: string;
|
|
44
|
+
}
|
|
45
|
+
interface Field {
|
|
46
|
+
/**
|
|
47
|
+
* Field data type
|
|
48
|
+
*/
|
|
49
|
+
type: 'text' | 'image' | 'date' | 'number';
|
|
50
|
+
/**
|
|
51
|
+
* Value to populate
|
|
52
|
+
*/
|
|
53
|
+
value: string | number;
|
|
54
|
+
/**
|
|
55
|
+
* Target field ID (for single field)
|
|
56
|
+
*/
|
|
57
|
+
id?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Target field group (for multiple fields with same tag)
|
|
60
|
+
*/
|
|
61
|
+
group?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Optional configuration (e.g., image dimensions)
|
|
64
|
+
*/
|
|
65
|
+
options?: Field.Options;
|
|
66
|
+
}
|
|
67
|
+
namespace Field {
|
|
68
|
+
/**
|
|
69
|
+
* Optional configuration (e.g., image dimensions)
|
|
70
|
+
*/
|
|
71
|
+
interface Options {
|
|
72
|
+
/**
|
|
73
|
+
* Image height in pixels
|
|
74
|
+
*/
|
|
75
|
+
height?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Image width in pixels
|
|
78
|
+
*/
|
|
79
|
+
width?: number;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export interface V1ConvertParams {
|
|
84
|
+
/**
|
|
85
|
+
* Source format of the document
|
|
86
|
+
*/
|
|
87
|
+
from: 'docx' | 'md' | 'html';
|
|
88
|
+
/**
|
|
89
|
+
* Base64-encoded document content
|
|
90
|
+
*/
|
|
91
|
+
document_base64?: string;
|
|
92
|
+
/**
|
|
93
|
+
* URL to the document to convert
|
|
94
|
+
*/
|
|
95
|
+
document_url?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Target format for conversion
|
|
98
|
+
*/
|
|
99
|
+
to?: 'pdf' | 'docx';
|
|
100
|
+
}
|
|
101
|
+
export declare namespace V1 {
|
|
102
|
+
export { type V1AnnotateParams as V1AnnotateParams, type V1ConvertParams as V1ConvertParams };
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/superdoc/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IAShF;;;OAGG;IACH,OAAO,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;CAc/E;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC;IAEpC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAEtC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAChC;AAED,yBAAiB,gBAAgB,CAAC;IAChC;;OAEG;IACH,UAAiB,QAAQ;QACvB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,KAAK;QACpB;;WAEG;QACH,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;QAE3C;;WAEG;QACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAEvB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC;KACzB;IAED,UAAiB,KAAK,CAAC;QACrB;;WAEG;QACH,UAAiB,OAAO;YACtB;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB;KACF;CACF;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;IAE7B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CAC/F"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const uploads_1 = require("../../internal/uploads.js");
|
|
8
|
+
class V1 extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Populate fields inside a DOCX template using SuperDoc annotations. Supports
|
|
11
|
+
* text, images, dates, and numbers. Can target individual fields by ID or multiple
|
|
12
|
+
* fields by group.
|
|
13
|
+
*/
|
|
14
|
+
annotate(body, options) {
|
|
15
|
+
return this._client.post('/superdoc/v1/annotate', {
|
|
16
|
+
body,
|
|
17
|
+
...options,
|
|
18
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/pdf' }, options?.headers]),
|
|
19
|
+
__binaryResponse: true,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Convert documents between formats using SuperDoc. Supports DOCX to PDF, Markdown
|
|
24
|
+
* to DOCX, and HTML to DOCX conversions.
|
|
25
|
+
*/
|
|
26
|
+
convert(body, options) {
|
|
27
|
+
return this._client.post('/superdoc/v1/convert', (0, uploads_1.maybeMultipartFormRequestOptions)({
|
|
28
|
+
body,
|
|
29
|
+
...options,
|
|
30
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: 'application/pdf' }, options?.headers]),
|
|
31
|
+
__binaryResponse: true,
|
|
32
|
+
}, this._client));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.V1 = V1;
|
|
36
|
+
//# sourceMappingURL=v1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/superdoc/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAA0E;AAE1E,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;OAIG;IACH,QAAQ,CAAC,IAAsB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAChD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,IAAqB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,sBAAsB,EACtB,IAAA,0CAAgC,EAC9B;YACE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,EACD,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;CACF;AAjCD,gBAiCC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { maybeMultipartFormRequestOptions } from "../../internal/uploads.mjs";
|
|
5
|
+
export class V1 extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Populate fields inside a DOCX template using SuperDoc annotations. Supports
|
|
8
|
+
* text, images, dates, and numbers. Can target individual fields by ID or multiple
|
|
9
|
+
* fields by group.
|
|
10
|
+
*/
|
|
11
|
+
annotate(body, options) {
|
|
12
|
+
return this._client.post('/superdoc/v1/annotate', {
|
|
13
|
+
body,
|
|
14
|
+
...options,
|
|
15
|
+
headers: buildHeaders([{ Accept: 'application/pdf' }, options?.headers]),
|
|
16
|
+
__binaryResponse: true,
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Convert documents between formats using SuperDoc. Supports DOCX to PDF, Markdown
|
|
21
|
+
* to DOCX, and HTML to DOCX conversions.
|
|
22
|
+
*/
|
|
23
|
+
convert(body, options) {
|
|
24
|
+
return this._client.post('/superdoc/v1/convert', maybeMultipartFormRequestOptions({
|
|
25
|
+
body,
|
|
26
|
+
...options,
|
|
27
|
+
headers: buildHeaders([{ Accept: 'application/pdf' }, options?.headers]),
|
|
28
|
+
__binaryResponse: true,
|
|
29
|
+
}, this._client));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=v1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/superdoc/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,gCAAgC,EAAE;AAE3C,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;OAIG;IACH,QAAQ,CAAC,IAAsB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE;YAChD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,IAAqB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,sBAAsB,EACtB,gCAAgC,CAC9B;YACE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACxE,gBAAgB,EAAE,IAAI;SACvB,EACD,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"superdoc.d.mts","sourceRoot":"","sources":["../src/resources/superdoc.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"superdoc.d.ts","sourceRoot":"","sources":["../src/resources/superdoc.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("./superdoc/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=superdoc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"superdoc.js","sourceRoot":"","sources":["../src/resources/superdoc.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"superdoc.mjs","sourceRoot":"","sources":["../src/resources/superdoc.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/translate/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,EAAE;OACb,EACL,EAAE,EACF,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,GACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/translate/index.ts"],"names":[],"mappings":"OAEO,EAAE,SAAS,EAAE;OACb,EACL,EAAE,EACF,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,GACvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 = exports.Translate = void 0;
|
|
5
|
+
var translate_1 = require("./translate.js");
|
|
6
|
+
Object.defineProperty(exports, "Translate", { enumerable: true, get: function () { return translate_1.Translate; } });
|
|
7
|
+
var v1_1 = require("./v1.js");
|
|
8
|
+
Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/translate/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,8BAQc;AAPZ,wFAAA,EAAE,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/translate/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,SAAS,EAAE;OACb,EACL,EAAE,GAOH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as V1API from "./v1.mjs";
|
|
3
|
+
import { V1, V1DetectParams, V1DetectResponse, V1ListLanguagesParams, V1ListLanguagesResponse, V1TranslateParams, V1TranslateResponse } from "./v1.mjs";
|
|
4
|
+
export declare class Translate extends APIResource {
|
|
5
|
+
v1: V1API.V1;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Translate {
|
|
8
|
+
export { V1 as V1, type V1DetectResponse as V1DetectResponse, type V1ListLanguagesResponse as V1ListLanguagesResponse, type V1TranslateResponse as V1TranslateResponse, type V1DetectParams as V1DetectParams, type V1ListLanguagesParams as V1ListLanguagesParams, type V1TranslateParams as V1TranslateParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=translate.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate.d.mts","sourceRoot":"","sources":["../../src/resources/translate/translate.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EACL,EAAE,EACF,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACpB;AAED,qBAAa,SAAU,SAAQ,WAAW;IACxC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,EAAE,IAAI,EAAE,EACR,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as V1API from "./v1.js";
|
|
3
|
+
import { V1, V1DetectParams, V1DetectResponse, V1ListLanguagesParams, V1ListLanguagesResponse, V1TranslateParams, V1TranslateResponse } from "./v1.js";
|
|
4
|
+
export declare class Translate extends APIResource {
|
|
5
|
+
v1: V1API.V1;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Translate {
|
|
8
|
+
export { V1 as V1, type V1DetectResponse as V1DetectResponse, type V1ListLanguagesResponse as V1ListLanguagesResponse, type V1TranslateResponse as V1TranslateResponse, type V1DetectParams as V1DetectParams, type V1ListLanguagesParams as V1ListLanguagesParams, type V1TranslateParams as V1TranslateParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=translate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate.d.ts","sourceRoot":"","sources":["../../src/resources/translate/translate.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EACL,EAAE,EACF,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,iBAAiB,EACjB,mBAAmB,EACpB;AAED,qBAAa,SAAU,SAAQ,WAAW;IACxC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,EAAE,IAAI,EAAE,EACR,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.Translate = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const V1API = tslib_1.__importStar(require("./v1.js"));
|
|
8
|
+
const v1_1 = require("./v1.js");
|
|
9
|
+
class Translate extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.v1 = new V1API.V1(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Translate = Translate;
|
|
16
|
+
Translate.V1 = v1_1.V1;
|
|
17
|
+
//# sourceMappingURL=translate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate.js","sourceRoot":"","sources":["../../src/resources/translate/translate.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uDAA8B;AAC9B,gCAQc;AAEd,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAFD,8BAEC;AAED,SAAS,CAAC,EAAE,GAAG,OAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as V1API from "./v1.mjs";
|
|
4
|
+
import { V1, } from "./v1.mjs";
|
|
5
|
+
export class Translate extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.v1 = new V1API.V1(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Translate.V1 = V1;
|
|
12
|
+
//# sourceMappingURL=translate.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translate.mjs","sourceRoot":"","sources":["../../src/resources/translate/translate.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EACL,EAAE,GAOH;AAED,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAED,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class V1 extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Detect the language of text. Returns the most likely language code and
|
|
7
|
+
* confidence score. Supports batch detection for multiple texts.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.translate.v1.detect({
|
|
12
|
+
* q: 'string',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
detect(body: V1DetectParams, options?: RequestOptions): APIPromise<V1DetectResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Get the list of languages supported for translation. Optionally specify a target
|
|
19
|
+
* language to get translated language names.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const response = await client.translate.v1.listLanguages();
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
listLanguages(query?: V1ListLanguagesParams | null | undefined, options?: RequestOptions): APIPromise<V1ListLanguagesResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Translate text between languages using Google Cloud Translation API. Supports
|
|
29
|
+
* 100+ languages, automatic language detection, HTML preservation, and batch
|
|
30
|
+
* translation.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const response = await client.translate.v1.translate({
|
|
35
|
+
* q: 'string',
|
|
36
|
+
* target: 'es',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
translate(body: V1TranslateParams, options?: RequestOptions): APIPromise<V1TranslateResponse>;
|
|
41
|
+
}
|
|
42
|
+
export interface V1DetectResponse {
|
|
43
|
+
data?: V1DetectResponse.Data;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace V1DetectResponse {
|
|
46
|
+
interface Data {
|
|
47
|
+
detections?: Array<Array<Data.Detection>>;
|
|
48
|
+
}
|
|
49
|
+
namespace Data {
|
|
50
|
+
interface Detection {
|
|
51
|
+
/**
|
|
52
|
+
* Confidence score (0-1)
|
|
53
|
+
*/
|
|
54
|
+
confidence?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the detection is reliable
|
|
57
|
+
*/
|
|
58
|
+
isReliable?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Detected language code (ISO 639-1)
|
|
61
|
+
*/
|
|
62
|
+
language?: string;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export interface V1ListLanguagesResponse {
|
|
67
|
+
data?: V1ListLanguagesResponse.Data;
|
|
68
|
+
}
|
|
69
|
+
export declare namespace V1ListLanguagesResponse {
|
|
70
|
+
interface Data {
|
|
71
|
+
languages?: Array<Data.Language>;
|
|
72
|
+
}
|
|
73
|
+
namespace Data {
|
|
74
|
+
interface Language {
|
|
75
|
+
/**
|
|
76
|
+
* Language code (ISO 639-1)
|
|
77
|
+
*/
|
|
78
|
+
language?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Language name (if target specified)
|
|
81
|
+
*/
|
|
82
|
+
name?: string;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export interface V1TranslateResponse {
|
|
87
|
+
data?: V1TranslateResponse.Data;
|
|
88
|
+
}
|
|
89
|
+
export declare namespace V1TranslateResponse {
|
|
90
|
+
interface Data {
|
|
91
|
+
translations?: Array<Data.Translation>;
|
|
92
|
+
}
|
|
93
|
+
namespace Data {
|
|
94
|
+
interface Translation {
|
|
95
|
+
/**
|
|
96
|
+
* Detected source language (if source not specified)
|
|
97
|
+
*/
|
|
98
|
+
detectedSourceLanguage?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Model used for translation
|
|
101
|
+
*/
|
|
102
|
+
model?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Translated text
|
|
105
|
+
*/
|
|
106
|
+
translatedText?: string;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export interface V1DetectParams {
|
|
111
|
+
/**
|
|
112
|
+
* Text to detect language for. Can be a single string or an array for batch
|
|
113
|
+
* detection.
|
|
114
|
+
*/
|
|
115
|
+
q: string | Array<string>;
|
|
116
|
+
}
|
|
117
|
+
export interface V1ListLanguagesParams {
|
|
118
|
+
/**
|
|
119
|
+
* Translation model to check language support for
|
|
120
|
+
*/
|
|
121
|
+
model?: 'nmt' | 'base';
|
|
122
|
+
/**
|
|
123
|
+
* Target language code for translating language names (e.g., 'es' for Spanish
|
|
124
|
+
* names)
|
|
125
|
+
*/
|
|
126
|
+
target?: string;
|
|
127
|
+
}
|
|
128
|
+
export interface V1TranslateParams {
|
|
129
|
+
/**
|
|
130
|
+
* Text to translate. Can be a single string or an array for batch translation.
|
|
131
|
+
*/
|
|
132
|
+
q: string | Array<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Target language code (ISO 639-1)
|
|
135
|
+
*/
|
|
136
|
+
target: string;
|
|
137
|
+
/**
|
|
138
|
+
* Format of the source text. Use 'html' to preserve HTML tags.
|
|
139
|
+
*/
|
|
140
|
+
format?: 'text' | 'html';
|
|
141
|
+
/**
|
|
142
|
+
* Translation model. 'nmt' (Neural Machine Translation) is recommended for
|
|
143
|
+
* quality.
|
|
144
|
+
*/
|
|
145
|
+
model?: 'nmt' | 'base';
|
|
146
|
+
/**
|
|
147
|
+
* Source language code (ISO 639-1). If not specified, language is auto-detected.
|
|
148
|
+
*/
|
|
149
|
+
source?: string;
|
|
150
|
+
}
|
|
151
|
+
export declare namespace V1 {
|
|
152
|
+
export { type V1DetectResponse as V1DetectResponse, type V1ListLanguagesResponse as V1ListLanguagesResponse, type V1TranslateResponse as V1TranslateResponse, type V1DetectParams as V1DetectParams, type V1ListLanguagesParams as V1ListLanguagesParams, type V1TranslateParams as V1TranslateParams, };
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/translate/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIpF;;;;;;;;OAQG;IACH,aAAa,CACX,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;IAItC;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG9F;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC;CAC9B;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;KAC3C;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,SAAS;YACxB;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,UAAU,CAAC,EAAE,OAAO,CAAC;YAErB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,uBAAuB,CAAC,IAAI,CAAC;CACrC;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,IAAI;QACnB,SAAS,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAClC;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,QAAQ;YACvB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;SACf;KACF;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,mBAAmB,CAAC,IAAI,CAAC;CACjC;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,IAAI;QACnB,YAAY,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KACxC;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B;;eAEG;YACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;YAEhC;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;SACzB;KACF;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|