casedev 0.1.0 → 0.3.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 +44 -0
- package/LICENSE +1 -1
- package/README.md +3 -1
- package/client.d.mts +4 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -16
- package/client.d.ts.map +1 -1
- package/client.js +0 -12
- package/client.js.map +1 -1
- package/client.mjs +0 -12
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/compute/compute.d.mts +2 -2
- package/resources/compute/compute.d.mts.map +1 -1
- package/resources/compute/compute.d.ts +2 -2
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/index.d.mts +1 -1
- package/resources/compute/index.d.mts.map +1 -1
- package/resources/compute/index.d.ts +1 -1
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/index.js.map +1 -1
- package/resources/compute/index.mjs.map +1 -1
- package/resources/compute/v1/environments.d.mts +119 -9
- package/resources/compute/v1/environments.d.mts.map +1 -1
- package/resources/compute/v1/environments.d.ts +119 -9
- package/resources/compute/v1/environments.d.ts.map +1 -1
- package/resources/compute/v1/environments.js +11 -18
- package/resources/compute/v1/environments.js.map +1 -1
- package/resources/compute/v1/environments.mjs +11 -18
- package/resources/compute/v1/environments.mjs.map +1 -1
- package/resources/compute/v1/functions.d.mts +0 -39
- package/resources/compute/v1/functions.d.mts.map +1 -1
- package/resources/compute/v1/functions.d.ts +0 -39
- package/resources/compute/v1/functions.d.ts.map +1 -1
- package/resources/compute/v1/functions.js +0 -36
- package/resources/compute/v1/functions.js.map +1 -1
- package/resources/compute/v1/functions.mjs +0 -36
- package/resources/compute/v1/functions.mjs.map +1 -1
- package/resources/compute/v1/index.d.mts +6 -6
- package/resources/compute/v1/index.d.mts.map +1 -1
- package/resources/compute/v1/index.d.ts +6 -6
- package/resources/compute/v1/index.d.ts.map +1 -1
- package/resources/compute/v1/index.js.map +1 -1
- package/resources/compute/v1/index.mjs.map +1 -1
- package/resources/compute/v1/invoke.d.mts +0 -69
- package/resources/compute/v1/invoke.d.mts.map +1 -1
- package/resources/compute/v1/invoke.d.ts +0 -69
- package/resources/compute/v1/invoke.d.ts.map +1 -1
- package/resources/compute/v1/invoke.js +0 -18
- package/resources/compute/v1/invoke.js.map +1 -1
- package/resources/compute/v1/invoke.mjs +0 -18
- package/resources/compute/v1/invoke.mjs.map +1 -1
- package/resources/compute/v1/runs.d.mts +0 -41
- package/resources/compute/v1/runs.d.mts.map +1 -1
- package/resources/compute/v1/runs.d.ts +0 -41
- package/resources/compute/v1/runs.d.ts.map +1 -1
- package/resources/compute/v1/runs.js +0 -35
- package/resources/compute/v1/runs.js.map +1 -1
- package/resources/compute/v1/runs.mjs +0 -35
- package/resources/compute/v1/runs.mjs.map +1 -1
- package/resources/compute/v1/secrets.d.mts +101 -19
- package/resources/compute/v1/secrets.d.mts.map +1 -1
- package/resources/compute/v1/secrets.d.ts +101 -19
- package/resources/compute/v1/secrets.d.ts.map +1 -1
- package/resources/compute/v1/secrets.js +19 -35
- package/resources/compute/v1/secrets.js.map +1 -1
- package/resources/compute/v1/secrets.mjs +19 -35
- package/resources/compute/v1/secrets.mjs.map +1 -1
- package/resources/compute/v1/v1.d.mts +40 -190
- package/resources/compute/v1/v1.d.mts.map +1 -1
- package/resources/compute/v1/v1.d.ts +40 -190
- package/resources/compute/v1/v1.d.ts.map +1 -1
- package/resources/compute/v1/v1.js +5 -26
- package/resources/compute/v1/v1.js.map +1 -1
- package/resources/compute/v1/v1.mjs +5 -26
- package/resources/compute/v1/v1.mjs.map +1 -1
- package/resources/format/v1/index.d.mts +1 -1
- package/resources/format/v1/index.d.mts.map +1 -1
- package/resources/format/v1/index.d.ts +1 -1
- package/resources/format/v1/index.d.ts.map +1 -1
- package/resources/format/v1/index.js.map +1 -1
- package/resources/format/v1/index.mjs.map +1 -1
- package/resources/format/v1/templates.d.mts +72 -3
- package/resources/format/v1/templates.d.mts.map +1 -1
- package/resources/format/v1/templates.d.ts +72 -3
- package/resources/format/v1/templates.d.ts.map +1 -1
- package/resources/format/v1/templates.js +2 -10
- package/resources/format/v1/templates.js.map +1 -1
- package/resources/format/v1/templates.mjs +2 -10
- package/resources/format/v1/templates.mjs.map +1 -1
- package/resources/format/v1/v1.d.mts +2 -2
- package/resources/format/v1/v1.d.mts.map +1 -1
- package/resources/format/v1/v1.d.ts +2 -2
- package/resources/format/v1/v1.d.ts.map +1 -1
- package/resources/format/v1/v1.js.map +1 -1
- package/resources/format/v1/v1.mjs +1 -1
- package/resources/format/v1/v1.mjs.map +1 -1
- package/resources/index.d.mts +2 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -9
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -4
- package/resources/index.mjs.map +1 -1
- package/resources/llm/index.d.mts +2 -2
- package/resources/llm/index.d.mts.map +1 -1
- package/resources/llm/index.d.ts +2 -2
- package/resources/llm/index.d.ts.map +1 -1
- package/resources/llm/index.js.map +1 -1
- package/resources/llm/index.mjs +1 -1
- package/resources/llm/index.mjs.map +1 -1
- package/resources/llm/llm.d.mts +36 -4
- package/resources/llm/llm.d.mts.map +1 -1
- package/resources/llm/llm.d.ts +36 -4
- package/resources/llm/llm.d.ts.map +1 -1
- package/resources/llm/llm.js +2 -6
- package/resources/llm/llm.js.map +1 -1
- package/resources/llm/llm.mjs +2 -6
- package/resources/llm/llm.mjs.map +1 -1
- package/resources/llm/v1/index.d.mts +1 -1
- package/resources/llm/v1/index.d.mts.map +1 -1
- package/resources/llm/v1/index.d.ts +1 -1
- package/resources/llm/v1/index.d.ts.map +1 -1
- package/resources/llm/v1/index.js.map +1 -1
- package/resources/llm/v1/index.mjs +1 -1
- package/resources/llm/v1/index.mjs.map +1 -1
- package/resources/llm/v1/v1.d.mts +66 -5
- package/resources/llm/v1/v1.d.mts.map +1 -1
- package/resources/llm/v1/v1.d.ts +66 -5
- package/resources/llm/v1/v1.d.ts.map +1 -1
- package/resources/llm/v1/v1.js +4 -12
- package/resources/llm/v1/v1.js.map +1 -1
- package/resources/llm/v1/v1.mjs +4 -12
- package/resources/llm/v1/v1.mjs.map +1 -1
- package/resources/ocr/index.d.mts +1 -1
- package/resources/ocr/index.d.mts.map +1 -1
- package/resources/ocr/index.d.ts +1 -1
- package/resources/ocr/index.d.ts.map +1 -1
- package/resources/ocr/index.js.map +1 -1
- package/resources/ocr/index.mjs +1 -1
- package/resources/ocr/index.mjs.map +1 -1
- package/resources/ocr/ocr.d.mts +2 -2
- package/resources/ocr/ocr.d.mts.map +1 -1
- package/resources/ocr/ocr.d.ts +2 -2
- package/resources/ocr/ocr.d.ts.map +1 -1
- package/resources/ocr/ocr.js.map +1 -1
- package/resources/ocr/ocr.mjs +1 -1
- package/resources/ocr/ocr.mjs.map +1 -1
- package/resources/ocr/v1.d.mts +61 -15
- package/resources/ocr/v1.d.mts.map +1 -1
- package/resources/ocr/v1.d.ts +61 -15
- package/resources/ocr/v1.d.ts.map +1 -1
- package/resources/ocr/v1.js +6 -11
- package/resources/ocr/v1.js.map +1 -1
- package/resources/ocr/v1.mjs +6 -11
- package/resources/ocr/v1.mjs.map +1 -1
- package/resources/search/index.d.mts +1 -1
- package/resources/search/index.d.mts.map +1 -1
- package/resources/search/index.d.ts +1 -1
- package/resources/search/index.d.ts.map +1 -1
- package/resources/search/index.js.map +1 -1
- package/resources/search/index.mjs.map +1 -1
- package/resources/search/search.d.mts +2 -2
- package/resources/search/search.d.mts.map +1 -1
- package/resources/search/search.d.ts +2 -2
- package/resources/search/search.d.ts.map +1 -1
- package/resources/search/search.js.map +1 -1
- package/resources/search/search.mjs.map +1 -1
- package/resources/search/v1.d.mts +74 -2
- package/resources/search/v1.d.mts.map +1 -1
- package/resources/search/v1.d.ts +74 -2
- package/resources/search/v1.d.ts.map +1 -1
- package/resources/search/v1.js +1 -6
- package/resources/search/v1.js.map +1 -1
- package/resources/search/v1.mjs +1 -6
- package/resources/search/v1.mjs.map +1 -1
- package/resources/vault/graphrag.d.mts +39 -4
- package/resources/vault/graphrag.d.mts.map +1 -1
- package/resources/vault/graphrag.d.ts +39 -4
- package/resources/vault/graphrag.d.ts.map +1 -1
- package/resources/vault/graphrag.js +4 -11
- package/resources/vault/graphrag.js.map +1 -1
- package/resources/vault/graphrag.mjs +4 -11
- package/resources/vault/graphrag.mjs.map +1 -1
- package/resources/vault/index.d.mts +3 -3
- package/resources/vault/index.d.mts.map +1 -1
- package/resources/vault/index.d.ts +3 -3
- package/resources/vault/index.d.ts.map +1 -1
- package/resources/vault/index.js.map +1 -1
- package/resources/vault/index.mjs.map +1 -1
- package/resources/vault/objects.d.mts +193 -15
- package/resources/vault/objects.d.mts.map +1 -1
- package/resources/vault/objects.d.ts +193 -15
- package/resources/vault/objects.d.ts.map +1 -1
- package/resources/vault/objects.js +17 -27
- package/resources/vault/objects.js.map +1 -1
- package/resources/vault/objects.mjs +17 -27
- package/resources/vault/objects.mjs.map +1 -1
- package/resources/vault/vault.d.mts +207 -30
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +207 -30
- package/resources/vault/vault.d.ts.map +1 -1
- package/resources/vault/vault.js +11 -13
- package/resources/vault/vault.js.map +1 -1
- package/resources/vault/vault.mjs +11 -13
- package/resources/vault/vault.mjs.map +1 -1
- package/resources/voice/index.d.mts +3 -3
- package/resources/voice/index.d.mts.map +1 -1
- package/resources/voice/index.d.ts +3 -3
- package/resources/voice/index.d.ts.map +1 -1
- package/resources/voice/index.js.map +1 -1
- package/resources/voice/index.mjs.map +1 -1
- package/resources/voice/streaming.d.mts +52 -3
- package/resources/voice/streaming.d.mts.map +1 -1
- package/resources/voice/streaming.d.ts +52 -3
- package/resources/voice/streaming.d.ts.map +1 -1
- package/resources/voice/streaming.js +3 -7
- package/resources/voice/streaming.js.map +1 -1
- package/resources/voice/streaming.mjs +3 -7
- package/resources/voice/streaming.mjs.map +1 -1
- package/resources/voice/transcription.d.mts +82 -28
- package/resources/voice/transcription.d.mts.map +1 -1
- package/resources/voice/transcription.d.ts +82 -28
- package/resources/voice/transcription.d.ts.map +1 -1
- package/resources/voice/transcription.js +15 -16
- package/resources/voice/transcription.js.map +1 -1
- package/resources/voice/transcription.mjs +15 -16
- package/resources/voice/transcription.mjs.map +1 -1
- package/resources/voice/v1/index.d.mts +2 -2
- package/resources/voice/v1/index.d.mts.map +1 -1
- package/resources/voice/v1/index.d.ts +2 -2
- package/resources/voice/v1/index.d.ts.map +1 -1
- package/resources/voice/v1/index.js.map +1 -1
- package/resources/voice/v1/index.mjs.map +1 -1
- package/resources/voice/v1/speak.d.mts +1 -85
- package/resources/voice/v1/speak.d.mts.map +1 -1
- package/resources/voice/v1/speak.d.ts +1 -85
- package/resources/voice/v1/speak.d.ts.map +1 -1
- package/resources/voice/v1/speak.js +0 -24
- package/resources/voice/v1/speak.js.map +1 -1
- package/resources/voice/v1/speak.mjs +0 -24
- package/resources/voice/v1/speak.mjs.map +1 -1
- package/resources/voice/v1/v1.d.mts +48 -5
- package/resources/voice/v1/v1.d.mts.map +1 -1
- package/resources/voice/v1/v1.d.ts +48 -5
- package/resources/voice/v1/v1.d.ts.map +1 -1
- package/resources/voice/v1/v1.js +2 -7
- package/resources/voice/v1/v1.js.map +1 -1
- package/resources/voice/v1/v1.mjs +2 -7
- package/resources/voice/v1/v1.mjs.map +1 -1
- package/resources/voice/voice.d.mts +6 -6
- package/resources/voice/voice.d.mts.map +1 -1
- package/resources/voice/voice.d.ts +6 -6
- package/resources/voice/voice.d.ts.map +1 -1
- package/resources/voice/voice.js.map +1 -1
- package/resources/voice/voice.mjs +1 -1
- package/resources/voice/voice.mjs.map +1 -1
- package/resources/webhooks/index.d.mts +1 -1
- package/resources/webhooks/index.d.mts.map +1 -1
- package/resources/webhooks/index.d.ts +1 -1
- package/resources/webhooks/index.d.ts.map +1 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/v1.d.mts +0 -105
- package/resources/webhooks/v1.d.mts.map +1 -1
- package/resources/webhooks/v1.d.ts +0 -105
- package/resources/webhooks/v1.d.ts.map +1 -1
- package/resources/webhooks/v1.js +0 -75
- package/resources/webhooks/v1.js.map +1 -1
- package/resources/webhooks/v1.mjs +0 -75
- package/resources/webhooks/v1.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts +2 -2
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts +2 -2
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/src/client.ts +4 -22
- package/src/resources/compute/compute.ts +2 -3
- package/src/resources/compute/index.ts +1 -1
- package/src/resources/compute/v1/environments.ts +149 -21
- package/src/resources/compute/v1/functions.ts +1 -66
- package/src/resources/compute/v1/index.ts +11 -4
- package/src/resources/compute/v1/invoke.ts +1 -87
- package/src/resources/compute/v1/runs.ts +1 -61
- package/src/resources/compute/v1/secrets.ts +136 -39
- package/src/resources/compute/v1/v1.ts +54 -235
- package/src/resources/format/v1/index.ts +2 -0
- package/src/resources/format/v1/templates.ts +94 -12
- package/src/resources/format/v1/v1.ts +10 -1
- package/src/resources/index.ts +2 -5
- package/src/resources/llm/index.ts +7 -2
- package/src/resources/llm/llm.ts +50 -9
- package/src/resources/llm/v1/index.ts +6 -1
- package/src/resources/llm/v1/v1.ts +94 -15
- package/src/resources/ocr/index.ts +8 -1
- package/src/resources/ocr/ocr.ts +10 -1
- package/src/resources/ocr/v1.ts +69 -23
- package/src/resources/search/index.ts +1 -0
- package/src/resources/search/search.ts +2 -0
- package/src/resources/search/v1.ts +95 -7
- package/src/resources/vault/graphrag.ts +55 -13
- package/src/resources/vault/index.ts +6 -1
- package/src/resources/vault/objects.ts +250 -31
- package/src/resources/vault/vault.ts +253 -30
- package/src/resources/voice/index.ts +3 -2
- package/src/resources/voice/streaming.ts +65 -8
- package/src/resources/voice/transcription.ts +94 -34
- package/src/resources/voice/v1/index.ts +2 -2
- package/src/resources/voice/v1/speak.ts +1 -113
- package/src/resources/voice/v1/v1.ts +62 -15
- package/src/resources/voice/voice.ts +15 -5
- package/src/resources/webhooks/index.ts +1 -1
- package/src/resources/webhooks/v1.ts +1 -140
- package/src/resources/webhooks/webhooks.ts +2 -2
- 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/actions/actions.d.mts +0 -10
- package/resources/actions/actions.d.mts.map +0 -1
- package/resources/actions/actions.d.ts +0 -10
- package/resources/actions/actions.d.ts.map +0 -1
- package/resources/actions/actions.js +0 -17
- package/resources/actions/actions.js.map +0 -1
- package/resources/actions/actions.mjs +0 -12
- package/resources/actions/actions.mjs.map +0 -1
- package/resources/actions/index.d.mts +0 -3
- package/resources/actions/index.d.mts.map +0 -1
- package/resources/actions/index.d.ts +0 -3
- package/resources/actions/index.d.ts.map +0 -1
- package/resources/actions/index.js +0 -9
- package/resources/actions/index.js.map +0 -1
- package/resources/actions/index.mjs +0 -4
- package/resources/actions/index.mjs.map +0 -1
- package/resources/actions/v1.d.mts +0 -122
- package/resources/actions/v1.d.mts.map +0 -1
- package/resources/actions/v1.d.ts +0 -122
- package/resources/actions/v1.d.ts.map +0 -1
- package/resources/actions/v1.js +0 -71
- package/resources/actions/v1.js.map +0 -1
- package/resources/actions/v1.mjs +0 -67
- package/resources/actions/v1.mjs.map +0 -1
- package/resources/actions.d.mts +0 -2
- package/resources/actions.d.mts.map +0 -1
- package/resources/actions.d.ts +0 -2
- package/resources/actions.d.ts.map +0 -1
- package/resources/actions.js +0 -6
- package/resources/actions.js.map +0 -1
- package/resources/actions.mjs +0 -3
- package/resources/actions.mjs.map +0 -1
- package/resources/convert/convert.d.mts +0 -10
- package/resources/convert/convert.d.mts.map +0 -1
- package/resources/convert/convert.d.ts +0 -10
- package/resources/convert/convert.d.ts.map +0 -1
- package/resources/convert/convert.js +0 -17
- package/resources/convert/convert.js.map +0 -1
- package/resources/convert/convert.mjs +0 -12
- package/resources/convert/convert.mjs.map +0 -1
- package/resources/convert/index.d.mts +0 -3
- package/resources/convert/index.d.mts.map +0 -1
- package/resources/convert/index.d.ts +0 -3
- package/resources/convert/index.d.ts.map +0 -1
- package/resources/convert/index.js +0 -9
- package/resources/convert/index.js.map +0 -1
- package/resources/convert/index.mjs +0 -4
- package/resources/convert/index.mjs.map +0 -1
- package/resources/convert/v1/index.d.mts +0 -3
- package/resources/convert/v1/index.d.mts.map +0 -1
- package/resources/convert/v1/index.d.ts +0 -3
- package/resources/convert/v1/index.d.ts.map +0 -1
- package/resources/convert/v1/index.js +0 -9
- package/resources/convert/v1/index.js.map +0 -1
- package/resources/convert/v1/index.mjs +0 -4
- package/resources/convert/v1/index.mjs.map +0 -1
- package/resources/convert/v1/jobs.d.mts +0 -17
- package/resources/convert/v1/jobs.d.mts.map +0 -1
- package/resources/convert/v1/jobs.d.ts +0 -17
- package/resources/convert/v1/jobs.d.ts.map +0 -1
- package/resources/convert/v1/jobs.js +0 -32
- package/resources/convert/v1/jobs.js.map +0 -1
- package/resources/convert/v1/jobs.mjs +0 -28
- package/resources/convert/v1/jobs.mjs.map +0 -1
- package/resources/convert/v1/v1.d.mts +0 -101
- package/resources/convert/v1/v1.d.mts.map +0 -1
- package/resources/convert/v1/v1.d.ts +0 -101
- package/resources/convert/v1/v1.d.ts.map +0 -1
- package/resources/convert/v1/v1.js +0 -52
- package/resources/convert/v1/v1.js.map +0 -1
- package/resources/convert/v1/v1.mjs +0 -47
- package/resources/convert/v1/v1.mjs.map +0 -1
- package/resources/convert/v1.d.mts +0 -2
- package/resources/convert/v1.d.mts.map +0 -1
- package/resources/convert/v1.d.ts +0 -2
- package/resources/convert/v1.d.ts.map +0 -1
- package/resources/convert/v1.js +0 -6
- package/resources/convert/v1.js.map +0 -1
- package/resources/convert/v1.mjs +0 -3
- package/resources/convert/v1.mjs.map +0 -1
- package/resources/convert.d.mts +0 -2
- package/resources/convert.d.mts.map +0 -1
- package/resources/convert.d.ts +0 -2
- package/resources/convert.d.ts.map +0 -1
- package/resources/convert.js +0 -6
- package/resources/convert.js.map +0 -1
- package/resources/convert.mjs +0 -3
- package/resources/convert.mjs.map +0 -1
- package/resources/templates/index.d.mts +0 -3
- package/resources/templates/index.d.mts.map +0 -1
- package/resources/templates/index.d.ts +0 -3
- package/resources/templates/index.d.ts.map +0 -1
- package/resources/templates/index.js +0 -9
- package/resources/templates/index.js.map +0 -1
- package/resources/templates/index.mjs +0 -4
- package/resources/templates/index.mjs.map +0 -1
- package/resources/templates/templates.d.mts +0 -10
- package/resources/templates/templates.d.mts.map +0 -1
- package/resources/templates/templates.d.ts +0 -10
- package/resources/templates/templates.d.ts.map +0 -1
- package/resources/templates/templates.js +0 -17
- package/resources/templates/templates.js.map +0 -1
- package/resources/templates/templates.mjs +0 -12
- package/resources/templates/templates.mjs.map +0 -1
- package/resources/templates/v1.d.mts +0 -128
- package/resources/templates/v1.d.mts.map +0 -1
- package/resources/templates/v1.d.ts +0 -128
- package/resources/templates/v1.d.ts.map +0 -1
- package/resources/templates/v1.js +0 -71
- package/resources/templates/v1.js.map +0 -1
- package/resources/templates/v1.mjs +0 -67
- package/resources/templates/v1.mjs.map +0 -1
- package/resources/templates.d.mts +0 -2
- package/resources/templates.d.mts.map +0 -1
- package/resources/templates.d.ts +0 -2
- package/resources/templates.d.ts.map +0 -1
- package/resources/templates.js +0 -6
- package/resources/templates.js.map +0 -1
- package/resources/templates.mjs +0 -3
- package/resources/templates.mjs.map +0 -1
- package/resources/workflows/index.d.mts +0 -3
- package/resources/workflows/index.d.mts.map +0 -1
- package/resources/workflows/index.d.ts +0 -3
- package/resources/workflows/index.d.ts.map +0 -1
- package/resources/workflows/index.js +0 -9
- package/resources/workflows/index.js.map +0 -1
- package/resources/workflows/index.mjs +0 -4
- package/resources/workflows/index.mjs.map +0 -1
- package/resources/workflows/v1.d.mts +0 -263
- package/resources/workflows/v1.d.mts.map +0 -1
- package/resources/workflows/v1.d.ts +0 -263
- package/resources/workflows/v1.d.ts.map +0 -1
- package/resources/workflows/v1.js +0 -128
- package/resources/workflows/v1.js.map +0 -1
- package/resources/workflows/v1.mjs +0 -124
- package/resources/workflows/v1.mjs.map +0 -1
- package/resources/workflows/workflows.d.mts +0 -10
- package/resources/workflows/workflows.d.mts.map +0 -1
- package/resources/workflows/workflows.d.ts +0 -10
- package/resources/workflows/workflows.d.ts.map +0 -1
- package/resources/workflows/workflows.js +0 -17
- package/resources/workflows/workflows.js.map +0 -1
- package/resources/workflows/workflows.mjs +0 -12
- package/resources/workflows/workflows.mjs.map +0 -1
- package/resources/workflows.d.mts +0 -2
- package/resources/workflows.d.mts.map +0 -1
- package/resources/workflows.d.ts +0 -2
- package/resources/workflows.d.ts.map +0 -1
- package/resources/workflows.js +0 -6
- package/resources/workflows.js.map +0 -1
- package/resources/workflows.mjs +0 -3
- package/resources/workflows.mjs.map +0 -1
- package/src/resources/actions/actions.ts +0 -21
- package/src/resources/actions/index.ts +0 -10
- package/src/resources/actions/v1.ts +0 -179
- package/src/resources/actions.ts +0 -3
- package/src/resources/convert/convert.ts +0 -21
- package/src/resources/convert/index.ts +0 -10
- package/src/resources/convert/v1/index.ts +0 -10
- package/src/resources/convert/v1/jobs.ts +0 -32
- package/src/resources/convert/v1/v1.ts +0 -141
- package/src/resources/convert/v1.ts +0 -3
- package/src/resources/convert.ts +0 -3
- package/src/resources/templates/index.ts +0 -10
- package/src/resources/templates/templates.ts +0 -21
- package/src/resources/templates/v1.ts +0 -187
- package/src/resources/templates.ts +0 -3
- package/src/resources/workflows/index.ts +0 -21
- package/src/resources/workflows/v1.ts +0 -407
- package/src/resources/workflows/workflows.ts +0 -49
- package/src/resources/workflows.ts +0 -3
|
@@ -2,18 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as GraphragAPI from './graphrag';
|
|
5
|
-
import { Graphrag } from './graphrag';
|
|
5
|
+
import { Graphrag, GraphragGetStatsResponse, GraphragInitResponse } from './graphrag';
|
|
6
6
|
import * as ObjectsAPI from './objects';
|
|
7
7
|
import {
|
|
8
8
|
ObjectCreatePresignedURLParams,
|
|
9
9
|
ObjectCreatePresignedURLResponse,
|
|
10
10
|
ObjectDownloadParams,
|
|
11
|
+
ObjectDownloadResponse,
|
|
11
12
|
ObjectGetTextParams,
|
|
13
|
+
ObjectGetTextResponse,
|
|
14
|
+
ObjectListResponse,
|
|
12
15
|
ObjectRetrieveParams,
|
|
16
|
+
ObjectRetrieveResponse,
|
|
13
17
|
Objects,
|
|
14
18
|
} from './objects';
|
|
15
19
|
import { APIPromise } from '../../core/api-promise';
|
|
16
|
-
import { buildHeaders } from '../../internal/headers';
|
|
17
20
|
import { RequestOptions } from '../../internal/request-options';
|
|
18
21
|
import { path } from '../../internal/utils/path';
|
|
19
22
|
|
|
@@ -24,8 +27,8 @@ export class Vault extends APIResource {
|
|
|
24
27
|
/**
|
|
25
28
|
* Creates a new secure vault with dedicated S3 storage and vector search
|
|
26
29
|
* capabilities. Each vault provides isolated document storage with semantic
|
|
27
|
-
* search, OCR processing, and optional knowledge graph features for legal
|
|
28
|
-
* analysis and discovery.
|
|
30
|
+
* search, OCR processing, and optional GraphRAG knowledge graph features for legal
|
|
31
|
+
* document analysis and discovery.
|
|
29
32
|
*
|
|
30
33
|
* @example
|
|
31
34
|
* ```ts
|
|
@@ -45,19 +48,16 @@ export class Vault extends APIResource {
|
|
|
45
48
|
*
|
|
46
49
|
* @example
|
|
47
50
|
* ```ts
|
|
48
|
-
* await client.vault.retrieve('vault_abc123');
|
|
51
|
+
* const vault = await client.vault.retrieve('vault_abc123');
|
|
49
52
|
* ```
|
|
50
53
|
*/
|
|
51
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
52
|
-
return this._client.get(path`/vault/${id}`,
|
|
53
|
-
...options,
|
|
54
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
55
|
-
});
|
|
54
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<VaultRetrieveResponse> {
|
|
55
|
+
return this._client.get(path`/vault/${id}`, options);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* List all vaults for the authenticated organization. Returns vault metadata
|
|
60
|
-
* including storage configuration and usage statistics.
|
|
60
|
+
* including name, description, storage configuration, and usage statistics.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* ```ts
|
|
@@ -69,10 +69,12 @@ export class Vault extends APIResource {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* Triggers
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
72
|
+
* Triggers ingestion workflow for a vault object to extract text, generate chunks,
|
|
73
|
+
* and create embeddings. For supported file types (PDF, DOCX, TXT, RTF, XML,
|
|
74
|
+
* audio, video), processing happens asynchronously. For unsupported types (images,
|
|
75
|
+
* archives, etc.), the file is marked as completed immediately without text
|
|
76
|
+
* extraction. GraphRAG indexing must be triggered separately via POST
|
|
77
|
+
* /vault/:id/graphrag/:objectId.
|
|
76
78
|
*
|
|
77
79
|
* @example
|
|
78
80
|
* ```ts
|
|
@@ -142,15 +144,20 @@ export interface VaultCreateResponse {
|
|
|
142
144
|
*/
|
|
143
145
|
description?: string;
|
|
144
146
|
|
|
147
|
+
/**
|
|
148
|
+
* Whether vector indexing is enabled for this vault
|
|
149
|
+
*/
|
|
150
|
+
enableIndexing?: boolean;
|
|
151
|
+
|
|
145
152
|
/**
|
|
146
153
|
* S3 bucket name for document storage
|
|
147
154
|
*/
|
|
148
155
|
filesBucket?: string;
|
|
149
156
|
|
|
150
157
|
/**
|
|
151
|
-
* Vector search index name
|
|
158
|
+
* Vector search index name. Null for storage-only vaults.
|
|
152
159
|
*/
|
|
153
|
-
indexName?: string;
|
|
160
|
+
indexName?: string | null;
|
|
154
161
|
|
|
155
162
|
/**
|
|
156
163
|
* Vault display name
|
|
@@ -163,9 +170,118 @@ export interface VaultCreateResponse {
|
|
|
163
170
|
region?: string;
|
|
164
171
|
|
|
165
172
|
/**
|
|
166
|
-
* S3 bucket name for vector embeddings
|
|
173
|
+
* S3 bucket name for vector embeddings. Null for storage-only vaults.
|
|
174
|
+
*/
|
|
175
|
+
vectorBucket?: string | null;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface VaultRetrieveResponse {
|
|
179
|
+
/**
|
|
180
|
+
* Vault identifier
|
|
181
|
+
*/
|
|
182
|
+
id: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Vault creation timestamp
|
|
186
|
+
*/
|
|
187
|
+
createdAt: string;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* S3 bucket for document storage
|
|
191
|
+
*/
|
|
192
|
+
filesBucket: string;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Vault name
|
|
196
|
+
*/
|
|
197
|
+
name: string;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* AWS region
|
|
201
|
+
*/
|
|
202
|
+
region: string;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Document chunking strategy configuration
|
|
206
|
+
*/
|
|
207
|
+
chunkStrategy?: VaultRetrieveResponse.ChunkStrategy;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Vault description
|
|
211
|
+
*/
|
|
212
|
+
description?: string;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Whether GraphRAG is enabled
|
|
216
|
+
*/
|
|
217
|
+
enableGraph?: boolean;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Search index name
|
|
221
|
+
*/
|
|
222
|
+
indexName?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* KMS key for encryption
|
|
167
226
|
*/
|
|
168
|
-
|
|
227
|
+
kmsKeyId?: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Additional vault metadata
|
|
231
|
+
*/
|
|
232
|
+
metadata?: unknown;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Total storage size in bytes
|
|
236
|
+
*/
|
|
237
|
+
totalBytes?: number;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Number of stored documents
|
|
241
|
+
*/
|
|
242
|
+
totalObjects?: number;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Number of vector embeddings
|
|
246
|
+
*/
|
|
247
|
+
totalVectors?: number;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Last update timestamp
|
|
251
|
+
*/
|
|
252
|
+
updatedAt?: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* S3 bucket for vector embeddings
|
|
256
|
+
*/
|
|
257
|
+
vectorBucket?: string | null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export namespace VaultRetrieveResponse {
|
|
261
|
+
/**
|
|
262
|
+
* Document chunking strategy configuration
|
|
263
|
+
*/
|
|
264
|
+
export interface ChunkStrategy {
|
|
265
|
+
/**
|
|
266
|
+
* Target size for each chunk in tokens
|
|
267
|
+
*/
|
|
268
|
+
chunkSize?: number;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Chunking method (e.g., 'semantic', 'fixed')
|
|
272
|
+
*/
|
|
273
|
+
method?: string;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Minimum chunk size in tokens
|
|
277
|
+
*/
|
|
278
|
+
minChunkSize?: number;
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Number of overlapping tokens between chunks
|
|
282
|
+
*/
|
|
283
|
+
overlap?: number;
|
|
284
|
+
}
|
|
169
285
|
}
|
|
170
286
|
|
|
171
287
|
export interface VaultListResponse {
|
|
@@ -218,7 +334,8 @@ export namespace VaultListResponse {
|
|
|
218
334
|
|
|
219
335
|
export interface VaultIngestResponse {
|
|
220
336
|
/**
|
|
221
|
-
*
|
|
337
|
+
* Always false - GraphRAG must be triggered separately via POST
|
|
338
|
+
* /vault/:id/graphrag/:objectId
|
|
222
339
|
*/
|
|
223
340
|
enableGraphRAG: boolean;
|
|
224
341
|
|
|
@@ -233,19 +350,20 @@ export interface VaultIngestResponse {
|
|
|
233
350
|
objectId: string;
|
|
234
351
|
|
|
235
352
|
/**
|
|
236
|
-
* Current ingestion status
|
|
353
|
+
* Current ingestion status. 'stored' for file types without text extraction (no
|
|
354
|
+
* chunks/vectors created).
|
|
237
355
|
*/
|
|
238
|
-
status: 'processing';
|
|
356
|
+
status: 'processing' | 'stored';
|
|
239
357
|
|
|
240
358
|
/**
|
|
241
|
-
* Workflow run ID for tracking progress
|
|
359
|
+
* Workflow run ID for tracking progress. Null for file types that skip processing.
|
|
242
360
|
*/
|
|
243
|
-
workflowId: string;
|
|
361
|
+
workflowId: string | null;
|
|
244
362
|
}
|
|
245
363
|
|
|
246
364
|
export interface VaultSearchResponse {
|
|
247
365
|
/**
|
|
248
|
-
* Relevant text chunks with similarity scores
|
|
366
|
+
* Relevant text chunks with similarity scores and page locations
|
|
249
367
|
*/
|
|
250
368
|
chunks?: Array<VaultSearchResponse.Chunk>;
|
|
251
369
|
|
|
@@ -274,11 +392,61 @@ export interface VaultSearchResponse {
|
|
|
274
392
|
|
|
275
393
|
export namespace VaultSearchResponse {
|
|
276
394
|
export interface Chunk {
|
|
395
|
+
/**
|
|
396
|
+
* Index of the chunk within the document (0-based)
|
|
397
|
+
*/
|
|
398
|
+
chunk_index?: number;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Vector similarity distance (lower is more similar)
|
|
402
|
+
*/
|
|
403
|
+
distance?: number;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* ID of the source document
|
|
407
|
+
*/
|
|
408
|
+
object_id?: string;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* PDF page number where the chunk ends (1-indexed). Null for non-PDF documents or
|
|
412
|
+
* documents ingested before page tracking was added.
|
|
413
|
+
*/
|
|
414
|
+
page_end?: number | null;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* PDF page number where the chunk begins (1-indexed). Null for non-PDF documents
|
|
418
|
+
* or documents ingested before page tracking was added.
|
|
419
|
+
*/
|
|
420
|
+
page_start?: number | null;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Relevance score (deprecated, use distance or hybridScore)
|
|
424
|
+
*/
|
|
277
425
|
score?: number;
|
|
278
426
|
|
|
427
|
+
/**
|
|
428
|
+
* Source identifier (deprecated, use object_id)
|
|
429
|
+
*/
|
|
279
430
|
source?: string;
|
|
280
431
|
|
|
432
|
+
/**
|
|
433
|
+
* Preview of the chunk text (up to 500 characters)
|
|
434
|
+
*/
|
|
281
435
|
text?: string;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Ending word index (0-based) in the OCR word list. Use with GET
|
|
439
|
+
* /vault/:id/objects/:objectId/ocr-words to retrieve bounding boxes for
|
|
440
|
+
* highlighting.
|
|
441
|
+
*/
|
|
442
|
+
word_end_index?: number | null;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Starting word index (0-based) in the OCR word list. Use with GET
|
|
446
|
+
* /vault/:id/objects/:objectId/ocr-words to retrieve bounding boxes for
|
|
447
|
+
* highlighting.
|
|
448
|
+
*/
|
|
449
|
+
word_start_index?: number | null;
|
|
282
450
|
}
|
|
283
451
|
|
|
284
452
|
export interface Source {
|
|
@@ -304,6 +472,11 @@ export interface VaultUploadResponse {
|
|
|
304
472
|
*/
|
|
305
473
|
auto_index?: boolean;
|
|
306
474
|
|
|
475
|
+
/**
|
|
476
|
+
* Whether the vault supports indexing. False for storage-only vaults.
|
|
477
|
+
*/
|
|
478
|
+
enableIndexing?: boolean;
|
|
479
|
+
|
|
307
480
|
/**
|
|
308
481
|
* URL expiration time in seconds
|
|
309
482
|
*/
|
|
@@ -321,6 +494,11 @@ export interface VaultUploadResponse {
|
|
|
321
494
|
*/
|
|
322
495
|
objectId?: string;
|
|
323
496
|
|
|
497
|
+
/**
|
|
498
|
+
* Folder path for hierarchy if provided
|
|
499
|
+
*/
|
|
500
|
+
path?: string | null;
|
|
501
|
+
|
|
324
502
|
/**
|
|
325
503
|
* S3 object key for the file
|
|
326
504
|
*/
|
|
@@ -354,9 +532,22 @@ export interface VaultCreateParams {
|
|
|
354
532
|
description?: string;
|
|
355
533
|
|
|
356
534
|
/**
|
|
357
|
-
* Enable knowledge graph for entity relationship mapping
|
|
535
|
+
* Enable knowledge graph for entity relationship mapping. Only applies when
|
|
536
|
+
* enableIndexing is true.
|
|
358
537
|
*/
|
|
359
538
|
enableGraph?: boolean;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Enable vector indexing and search capabilities. Set to false for storage-only
|
|
542
|
+
* vaults.
|
|
543
|
+
*/
|
|
544
|
+
enableIndexing?: boolean;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Optional metadata to attach to the vault (e.g., { containsPHI: true } for HIPAA
|
|
548
|
+
* compliance tracking)
|
|
549
|
+
*/
|
|
550
|
+
metadata?: unknown;
|
|
360
551
|
}
|
|
361
552
|
|
|
362
553
|
export interface VaultIngestParams {
|
|
@@ -373,9 +564,9 @@ export interface VaultSearchParams {
|
|
|
373
564
|
query: string;
|
|
374
565
|
|
|
375
566
|
/**
|
|
376
|
-
*
|
|
567
|
+
* Filters to narrow search results to specific documents
|
|
377
568
|
*/
|
|
378
|
-
filters?:
|
|
569
|
+
filters?: VaultSearchParams.Filters;
|
|
379
570
|
|
|
380
571
|
/**
|
|
381
572
|
* Search method: 'global' for comprehensive questions, 'entity' for specific
|
|
@@ -389,6 +580,21 @@ export interface VaultSearchParams {
|
|
|
389
580
|
topK?: number;
|
|
390
581
|
}
|
|
391
582
|
|
|
583
|
+
export namespace VaultSearchParams {
|
|
584
|
+
/**
|
|
585
|
+
* Filters to narrow search results to specific documents
|
|
586
|
+
*/
|
|
587
|
+
export interface Filters {
|
|
588
|
+
/**
|
|
589
|
+
* Filter to specific document(s) by object ID. Accepts a single ID or array of
|
|
590
|
+
* IDs.
|
|
591
|
+
*/
|
|
592
|
+
object_id?: string | Array<string>;
|
|
593
|
+
|
|
594
|
+
[k: string]: unknown;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
|
|
392
598
|
export interface VaultUploadParams {
|
|
393
599
|
/**
|
|
394
600
|
* MIME type of the file (e.g., application/pdf, image/jpeg)
|
|
@@ -411,7 +617,15 @@ export interface VaultUploadParams {
|
|
|
411
617
|
metadata?: unknown;
|
|
412
618
|
|
|
413
619
|
/**
|
|
414
|
-
*
|
|
620
|
+
* Optional folder path for hierarchy preservation. Allows integrations to maintain
|
|
621
|
+
* source folder structure from systems like NetDocs, Clio, or Smokeball. Example:
|
|
622
|
+
* '/Discovery/Depositions/2024'
|
|
623
|
+
*/
|
|
624
|
+
path?: string;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* File size in bytes (optional, max 500MB). When provided, enforces exact file
|
|
628
|
+
* size at S3 level.
|
|
415
629
|
*/
|
|
416
630
|
sizeBytes?: number;
|
|
417
631
|
}
|
|
@@ -422,6 +636,7 @@ Vault.Objects = Objects;
|
|
|
422
636
|
export declare namespace Vault {
|
|
423
637
|
export {
|
|
424
638
|
type VaultCreateResponse as VaultCreateResponse,
|
|
639
|
+
type VaultRetrieveResponse as VaultRetrieveResponse,
|
|
425
640
|
type VaultListResponse as VaultListResponse,
|
|
426
641
|
type VaultIngestResponse as VaultIngestResponse,
|
|
427
642
|
type VaultSearchResponse as VaultSearchResponse,
|
|
@@ -432,11 +647,19 @@ export declare namespace Vault {
|
|
|
432
647
|
type VaultUploadParams as VaultUploadParams,
|
|
433
648
|
};
|
|
434
649
|
|
|
435
|
-
export {
|
|
650
|
+
export {
|
|
651
|
+
Graphrag as Graphrag,
|
|
652
|
+
type GraphragGetStatsResponse as GraphragGetStatsResponse,
|
|
653
|
+
type GraphragInitResponse as GraphragInitResponse,
|
|
654
|
+
};
|
|
436
655
|
|
|
437
656
|
export {
|
|
438
657
|
Objects as Objects,
|
|
658
|
+
type ObjectRetrieveResponse as ObjectRetrieveResponse,
|
|
659
|
+
type ObjectListResponse as ObjectListResponse,
|
|
439
660
|
type ObjectCreatePresignedURLResponse as ObjectCreatePresignedURLResponse,
|
|
661
|
+
type ObjectDownloadResponse as ObjectDownloadResponse,
|
|
662
|
+
type ObjectGetTextResponse as ObjectGetTextResponse,
|
|
440
663
|
type ObjectRetrieveParams as ObjectRetrieveParams,
|
|
441
664
|
type ObjectCreatePresignedURLParams as ObjectCreatePresignedURLParams,
|
|
442
665
|
type ObjectDownloadParams as ObjectDownloadParams,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Streaming } from './streaming';
|
|
3
|
+
export { Streaming, type StreamingGetURLResponse } from './streaming';
|
|
4
4
|
export {
|
|
5
5
|
Transcription,
|
|
6
|
+
type TranscriptionCreateResponse,
|
|
6
7
|
type TranscriptionRetrieveResponse,
|
|
7
8
|
type TranscriptionCreateParams,
|
|
8
9
|
} from './transcription';
|
|
9
|
-
export { V1, type V1ListVoicesParams } from './v1/index';
|
|
10
|
+
export { V1, type V1ListVoicesResponse, type V1ListVoicesParams } from './v1/index';
|
|
10
11
|
export { Voice } from './voice';
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../internal/headers';
|
|
6
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
6
|
|
|
8
7
|
export class Streaming extends APIResource {
|
|
@@ -17,17 +16,75 @@ export class Streaming extends APIResource {
|
|
|
17
16
|
* - Encoding: PCM 16-bit little-endian
|
|
18
17
|
* - Channels: Mono (1 channel)
|
|
19
18
|
*
|
|
20
|
-
* **Pricing:** $0.
|
|
19
|
+
* **Pricing:** $0.01 per minute ($0.60 per hour)
|
|
21
20
|
*
|
|
22
21
|
* @example
|
|
23
22
|
* ```ts
|
|
24
|
-
* await client.voice.streaming.getURL();
|
|
23
|
+
* const response = await client.voice.streaming.getURL();
|
|
25
24
|
* ```
|
|
26
25
|
*/
|
|
27
|
-
getURL(options?: RequestOptions): APIPromise<
|
|
28
|
-
return this._client.get('/voice/streaming/url',
|
|
29
|
-
...options,
|
|
30
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
31
|
-
});
|
|
26
|
+
getURL(options?: RequestOptions): APIPromise<StreamingGetURLResponse> {
|
|
27
|
+
return this._client.get('/voice/streaming/url', options);
|
|
32
28
|
}
|
|
33
29
|
}
|
|
30
|
+
|
|
31
|
+
export interface StreamingGetURLResponse {
|
|
32
|
+
audio_format?: StreamingGetURLResponse.AudioFormat;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Complete WebSocket URL with authentication token
|
|
36
|
+
*/
|
|
37
|
+
connect_url?: string;
|
|
38
|
+
|
|
39
|
+
pricing?: StreamingGetURLResponse.Pricing;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Connection protocol
|
|
43
|
+
*/
|
|
44
|
+
protocol?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Base WebSocket URL for streaming transcription
|
|
48
|
+
*/
|
|
49
|
+
url?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export namespace StreamingGetURLResponse {
|
|
53
|
+
export interface AudioFormat {
|
|
54
|
+
/**
|
|
55
|
+
* Number of audio channels
|
|
56
|
+
*/
|
|
57
|
+
channels?: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Required audio encoding format
|
|
61
|
+
*/
|
|
62
|
+
encoding?: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Required audio sample rate in Hz
|
|
66
|
+
*/
|
|
67
|
+
sample_rate?: number;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface Pricing {
|
|
71
|
+
/**
|
|
72
|
+
* Currency for pricing
|
|
73
|
+
*/
|
|
74
|
+
currency?: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Cost per hour of transcription
|
|
78
|
+
*/
|
|
79
|
+
per_hour?: number;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Cost per minute of transcription
|
|
83
|
+
*/
|
|
84
|
+
per_minute?: number;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export declare namespace Streaming {
|
|
89
|
+
export { type StreamingGetURLResponse as StreamingGetURLResponse };
|
|
90
|
+
}
|