casedev 0.1.0 → 0.2.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 +32 -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 +39 -5
- package/resources/ocr/v1.d.mts.map +1 -1
- package/resources/ocr/v1.d.ts +39 -5
- 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 +188 -15
- package/resources/vault/objects.d.mts.map +1 -1
- package/resources/vault/objects.d.ts +188 -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 +193 -29
- package/resources/vault/vault.d.mts.map +1 -1
- package/resources/vault/vault.d.ts +193 -29
- 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 +51 -2
- package/resources/voice/streaming.d.mts.map +1 -1
- package/resources/voice/streaming.d.ts +51 -2
- package/resources/voice/streaming.d.ts.map +1 -1
- package/resources/voice/streaming.js +2 -6
- package/resources/voice/streaming.js.map +1 -1
- package/resources/voice/streaming.mjs +2 -6
- 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 +50 -13
- 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 +244 -31
- package/src/resources/vault/vault.ts +237 -29
- package/src/resources/voice/index.ts +3 -2
- package/src/resources/voice/streaming.ts +64 -7
- 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
|
@@ -17,9 +17,58 @@ export declare class Streaming extends APIResource {
|
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
20
|
-
* await client.voice.streaming.getURL();
|
|
20
|
+
* const response = await client.voice.streaming.getURL();
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
getURL(options?: RequestOptions): APIPromise<
|
|
23
|
+
getURL(options?: RequestOptions): APIPromise<StreamingGetURLResponse>;
|
|
24
|
+
}
|
|
25
|
+
export interface StreamingGetURLResponse {
|
|
26
|
+
audio_format?: StreamingGetURLResponse.AudioFormat;
|
|
27
|
+
/**
|
|
28
|
+
* Complete WebSocket URL with authentication token
|
|
29
|
+
*/
|
|
30
|
+
connect_url?: string;
|
|
31
|
+
pricing?: StreamingGetURLResponse.Pricing;
|
|
32
|
+
/**
|
|
33
|
+
* Connection protocol
|
|
34
|
+
*/
|
|
35
|
+
protocol?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Base WebSocket URL for streaming transcription
|
|
38
|
+
*/
|
|
39
|
+
url?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare namespace StreamingGetURLResponse {
|
|
42
|
+
interface AudioFormat {
|
|
43
|
+
/**
|
|
44
|
+
* Number of audio channels
|
|
45
|
+
*/
|
|
46
|
+
channels?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Required audio encoding format
|
|
49
|
+
*/
|
|
50
|
+
encoding?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Required audio sample rate in Hz
|
|
53
|
+
*/
|
|
54
|
+
sample_rate?: number;
|
|
55
|
+
}
|
|
56
|
+
interface Pricing {
|
|
57
|
+
/**
|
|
58
|
+
* Currency for pricing
|
|
59
|
+
*/
|
|
60
|
+
currency?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Cost per hour of transcription
|
|
63
|
+
*/
|
|
64
|
+
per_hour?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Cost per minute of transcription
|
|
67
|
+
*/
|
|
68
|
+
per_minute?: number;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export declare namespace Streaming {
|
|
72
|
+
export { type StreamingGetURLResponse as StreamingGetURLResponse };
|
|
24
73
|
}
|
|
25
74
|
//# sourceMappingURL=streaming.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../src/resources/voice/streaming.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"streaming.d.ts","sourceRoot":"","sources":["../../src/resources/voice/streaming.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAGtE;AAED,MAAM,WAAW,uBAAuB;IACtC,YAAY,CAAC,EAAE,uBAAuB,CAAC,WAAW,CAAC;IAEnD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,uBAAuB,CAAC,OAAO,CAAC;IAE1C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,WAAW;QAC1B;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB;IAED,UAAiB,OAAO;QACtB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACpE"}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Streaming = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
6
|
class Streaming extends resource_1.APIResource {
|
|
8
7
|
/**
|
|
9
8
|
* Returns the WebSocket URL and connection details for real-time audio
|
|
@@ -20,14 +19,11 @@ class Streaming extends resource_1.APIResource {
|
|
|
20
19
|
*
|
|
21
20
|
* @example
|
|
22
21
|
* ```ts
|
|
23
|
-
* await client.voice.streaming.getURL();
|
|
22
|
+
* const response = await client.voice.streaming.getURL();
|
|
24
23
|
* ```
|
|
25
24
|
*/
|
|
26
25
|
getURL(options) {
|
|
27
|
-
return this._client.get('/voice/streaming/url',
|
|
28
|
-
...options,
|
|
29
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
30
|
-
});
|
|
26
|
+
return this._client.get('/voice/streaming/url', options);
|
|
31
27
|
}
|
|
32
28
|
}
|
|
33
29
|
exports.Streaming = Streaming;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming.js","sourceRoot":"","sources":["../../src/resources/voice/streaming.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"streaming.js","sourceRoot":"","sources":["../../src/resources/voice/streaming.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF;AAtBD,8BAsBC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
3
|
export class Streaming extends APIResource {
|
|
5
4
|
/**
|
|
6
5
|
* Returns the WebSocket URL and connection details for real-time audio
|
|
@@ -17,14 +16,11 @@ export class Streaming extends APIResource {
|
|
|
17
16
|
*
|
|
18
17
|
* @example
|
|
19
18
|
* ```ts
|
|
20
|
-
* await client.voice.streaming.getURL();
|
|
19
|
+
* const response = await client.voice.streaming.getURL();
|
|
21
20
|
* ```
|
|
22
21
|
*/
|
|
23
22
|
getURL(options) {
|
|
24
|
-
return this._client.get('/voice/streaming/url',
|
|
25
|
-
...options,
|
|
26
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
-
});
|
|
23
|
+
return this._client.get('/voice/streaming/url', options);
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
26
|
//# sourceMappingURL=streaming.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streaming.mjs","sourceRoot":"","sources":["../../src/resources/voice/streaming.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"streaming.mjs","sourceRoot":"","sources":["../../src/resources/voice/streaming.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -3,33 +3,55 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
4
|
export declare class Transcription extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Creates an asynchronous transcription job for audio files. Supports
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* Creates an asynchronous transcription job for audio files. Supports two modes:
|
|
7
|
+
*
|
|
8
|
+
* **Vault-based (recommended)**: Pass `vault_id` and `object_id` to transcribe
|
|
9
|
+
* audio from your vault. The transcript will automatically be saved back to the
|
|
10
|
+
* vault when complete.
|
|
11
|
+
*
|
|
12
|
+
* **Direct URL (legacy)**: Pass `audio_url` for direct transcription without
|
|
13
|
+
* automatic storage.
|
|
10
14
|
*
|
|
11
15
|
* @example
|
|
12
16
|
* ```ts
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* });
|
|
17
|
+
* const transcription =
|
|
18
|
+
* await client.voice.transcription.create();
|
|
16
19
|
* ```
|
|
17
20
|
*/
|
|
18
|
-
create(body: TranscriptionCreateParams, options?: RequestOptions): APIPromise<
|
|
21
|
+
create(body: TranscriptionCreateParams, options?: RequestOptions): APIPromise<TranscriptionCreateResponse>;
|
|
19
22
|
/**
|
|
20
|
-
* Retrieve the status and result of an audio transcription job.
|
|
21
|
-
*
|
|
23
|
+
* Retrieve the status and result of an audio transcription job. For vault-based
|
|
24
|
+
* jobs, returns status and result_object_id when complete. For legacy direct URL
|
|
25
|
+
* jobs, returns the full transcription data.
|
|
22
26
|
*
|
|
23
27
|
* @example
|
|
24
28
|
* ```ts
|
|
25
29
|
* const transcription =
|
|
26
30
|
* await client.voice.transcription.retrieve(
|
|
27
|
-
* '
|
|
31
|
+
* 'tr_abc123def456',
|
|
28
32
|
* );
|
|
29
33
|
* ```
|
|
30
34
|
*/
|
|
31
35
|
retrieve(id: string, options?: RequestOptions): APIPromise<TranscriptionRetrieveResponse>;
|
|
32
36
|
}
|
|
37
|
+
export interface TranscriptionCreateResponse {
|
|
38
|
+
/**
|
|
39
|
+
* Unique transcription job ID
|
|
40
|
+
*/
|
|
41
|
+
id?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Source audio object ID (only for vault-based transcription)
|
|
44
|
+
*/
|
|
45
|
+
source_object_id?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Current status of the transcription job
|
|
48
|
+
*/
|
|
49
|
+
status?: 'queued' | 'processing' | 'completed' | 'error';
|
|
50
|
+
/**
|
|
51
|
+
* Vault ID (only for vault-based transcription)
|
|
52
|
+
*/
|
|
53
|
+
vault_id?: string;
|
|
54
|
+
}
|
|
33
55
|
export interface TranscriptionRetrieveResponse {
|
|
34
56
|
/**
|
|
35
57
|
* Unique transcription job ID
|
|
@@ -38,49 +60,65 @@ export interface TranscriptionRetrieveResponse {
|
|
|
38
60
|
/**
|
|
39
61
|
* Current status of the transcription job
|
|
40
62
|
*/
|
|
41
|
-
status: 'queued' | 'processing' | 'completed' | '
|
|
63
|
+
status: 'queued' | 'processing' | 'completed' | 'failed';
|
|
42
64
|
/**
|
|
43
65
|
* Duration of the audio file in seconds
|
|
44
66
|
*/
|
|
45
67
|
audio_duration?: number;
|
|
46
68
|
/**
|
|
47
|
-
* Overall confidence score
|
|
69
|
+
* Overall confidence score (0-100)
|
|
48
70
|
*/
|
|
49
71
|
confidence?: number;
|
|
50
72
|
/**
|
|
51
|
-
* Error message (only present when status is
|
|
73
|
+
* Error message (only present when status is failed)
|
|
52
74
|
*/
|
|
53
75
|
error?: string;
|
|
54
76
|
/**
|
|
55
|
-
*
|
|
77
|
+
* Result transcript object ID (vault-based jobs, when completed)
|
|
78
|
+
*/
|
|
79
|
+
result_object_id?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Source audio object ID (vault-based jobs only)
|
|
82
|
+
*/
|
|
83
|
+
source_object_id?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Full transcription text (legacy direct URL jobs only)
|
|
56
86
|
*/
|
|
57
87
|
text?: string;
|
|
58
88
|
/**
|
|
59
|
-
*
|
|
89
|
+
* Vault ID (vault-based jobs only)
|
|
60
90
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
91
|
+
vault_id?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Number of words in the transcript
|
|
94
|
+
*/
|
|
95
|
+
word_count?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Word-level timestamps (legacy direct URL jobs only)
|
|
98
|
+
*/
|
|
99
|
+
words?: Array<unknown>;
|
|
70
100
|
}
|
|
71
101
|
export interface TranscriptionCreateParams {
|
|
72
102
|
/**
|
|
73
|
-
* URL of the audio file to transcribe
|
|
103
|
+
* URL of the audio file to transcribe (legacy mode, no auto-storage)
|
|
74
104
|
*/
|
|
75
|
-
audio_url
|
|
105
|
+
audio_url?: string;
|
|
76
106
|
/**
|
|
77
107
|
* Automatically extract key phrases and topics
|
|
78
108
|
*/
|
|
79
109
|
auto_highlights?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* How much to boost custom vocabulary
|
|
112
|
+
*/
|
|
113
|
+
boost_param?: 'low' | 'default' | 'high';
|
|
80
114
|
/**
|
|
81
115
|
* Enable content moderation and safety labeling
|
|
82
116
|
*/
|
|
83
117
|
content_safety_labels?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Output format for the transcript when using vault mode
|
|
120
|
+
*/
|
|
121
|
+
format?: 'json' | 'text';
|
|
84
122
|
/**
|
|
85
123
|
* Format text with proper capitalization
|
|
86
124
|
*/
|
|
@@ -94,6 +132,10 @@ export interface TranscriptionCreateParams {
|
|
|
94
132
|
* Enable automatic language detection
|
|
95
133
|
*/
|
|
96
134
|
language_detection?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Object ID of the audio file in the vault (use with vault_id)
|
|
137
|
+
*/
|
|
138
|
+
object_id?: string;
|
|
97
139
|
/**
|
|
98
140
|
* Add punctuation to the transcript
|
|
99
141
|
*/
|
|
@@ -102,8 +144,20 @@ export interface TranscriptionCreateParams {
|
|
|
102
144
|
* Enable speaker identification and labeling
|
|
103
145
|
*/
|
|
104
146
|
speaker_labels?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Expected number of speakers (improves accuracy when known)
|
|
149
|
+
*/
|
|
150
|
+
speakers_expected?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Vault ID containing the audio file (use with object_id)
|
|
153
|
+
*/
|
|
154
|
+
vault_id?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Custom vocabulary words to boost (e.g., legal terms)
|
|
157
|
+
*/
|
|
158
|
+
word_boost?: Array<string>;
|
|
105
159
|
}
|
|
106
160
|
export declare namespace Transcription {
|
|
107
|
-
export { type TranscriptionRetrieveResponse as TranscriptionRetrieveResponse, type TranscriptionCreateParams as TranscriptionCreateParams, };
|
|
161
|
+
export { type TranscriptionCreateResponse as TranscriptionCreateResponse, type TranscriptionRetrieveResponse as TranscriptionRetrieveResponse, type TranscriptionCreateParams as TranscriptionCreateParams, };
|
|
108
162
|
}
|
|
109
163
|
//# sourceMappingURL=transcription.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcription.d.mts","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"transcription.d.mts","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI1G;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;IAEzD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;IAEzD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;IAEzC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -3,33 +3,55 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
4
|
export declare class Transcription extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Creates an asynchronous transcription job for audio files. Supports
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* Creates an asynchronous transcription job for audio files. Supports two modes:
|
|
7
|
+
*
|
|
8
|
+
* **Vault-based (recommended)**: Pass `vault_id` and `object_id` to transcribe
|
|
9
|
+
* audio from your vault. The transcript will automatically be saved back to the
|
|
10
|
+
* vault when complete.
|
|
11
|
+
*
|
|
12
|
+
* **Direct URL (legacy)**: Pass `audio_url` for direct transcription without
|
|
13
|
+
* automatic storage.
|
|
10
14
|
*
|
|
11
15
|
* @example
|
|
12
16
|
* ```ts
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* });
|
|
17
|
+
* const transcription =
|
|
18
|
+
* await client.voice.transcription.create();
|
|
16
19
|
* ```
|
|
17
20
|
*/
|
|
18
|
-
create(body: TranscriptionCreateParams, options?: RequestOptions): APIPromise<
|
|
21
|
+
create(body: TranscriptionCreateParams, options?: RequestOptions): APIPromise<TranscriptionCreateResponse>;
|
|
19
22
|
/**
|
|
20
|
-
* Retrieve the status and result of an audio transcription job.
|
|
21
|
-
*
|
|
23
|
+
* Retrieve the status and result of an audio transcription job. For vault-based
|
|
24
|
+
* jobs, returns status and result_object_id when complete. For legacy direct URL
|
|
25
|
+
* jobs, returns the full transcription data.
|
|
22
26
|
*
|
|
23
27
|
* @example
|
|
24
28
|
* ```ts
|
|
25
29
|
* const transcription =
|
|
26
30
|
* await client.voice.transcription.retrieve(
|
|
27
|
-
* '
|
|
31
|
+
* 'tr_abc123def456',
|
|
28
32
|
* );
|
|
29
33
|
* ```
|
|
30
34
|
*/
|
|
31
35
|
retrieve(id: string, options?: RequestOptions): APIPromise<TranscriptionRetrieveResponse>;
|
|
32
36
|
}
|
|
37
|
+
export interface TranscriptionCreateResponse {
|
|
38
|
+
/**
|
|
39
|
+
* Unique transcription job ID
|
|
40
|
+
*/
|
|
41
|
+
id?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Source audio object ID (only for vault-based transcription)
|
|
44
|
+
*/
|
|
45
|
+
source_object_id?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Current status of the transcription job
|
|
48
|
+
*/
|
|
49
|
+
status?: 'queued' | 'processing' | 'completed' | 'error';
|
|
50
|
+
/**
|
|
51
|
+
* Vault ID (only for vault-based transcription)
|
|
52
|
+
*/
|
|
53
|
+
vault_id?: string;
|
|
54
|
+
}
|
|
33
55
|
export interface TranscriptionRetrieveResponse {
|
|
34
56
|
/**
|
|
35
57
|
* Unique transcription job ID
|
|
@@ -38,49 +60,65 @@ export interface TranscriptionRetrieveResponse {
|
|
|
38
60
|
/**
|
|
39
61
|
* Current status of the transcription job
|
|
40
62
|
*/
|
|
41
|
-
status: 'queued' | 'processing' | 'completed' | '
|
|
63
|
+
status: 'queued' | 'processing' | 'completed' | 'failed';
|
|
42
64
|
/**
|
|
43
65
|
* Duration of the audio file in seconds
|
|
44
66
|
*/
|
|
45
67
|
audio_duration?: number;
|
|
46
68
|
/**
|
|
47
|
-
* Overall confidence score
|
|
69
|
+
* Overall confidence score (0-100)
|
|
48
70
|
*/
|
|
49
71
|
confidence?: number;
|
|
50
72
|
/**
|
|
51
|
-
* Error message (only present when status is
|
|
73
|
+
* Error message (only present when status is failed)
|
|
52
74
|
*/
|
|
53
75
|
error?: string;
|
|
54
76
|
/**
|
|
55
|
-
*
|
|
77
|
+
* Result transcript object ID (vault-based jobs, when completed)
|
|
78
|
+
*/
|
|
79
|
+
result_object_id?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Source audio object ID (vault-based jobs only)
|
|
82
|
+
*/
|
|
83
|
+
source_object_id?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Full transcription text (legacy direct URL jobs only)
|
|
56
86
|
*/
|
|
57
87
|
text?: string;
|
|
58
88
|
/**
|
|
59
|
-
*
|
|
89
|
+
* Vault ID (vault-based jobs only)
|
|
60
90
|
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
91
|
+
vault_id?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Number of words in the transcript
|
|
94
|
+
*/
|
|
95
|
+
word_count?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Word-level timestamps (legacy direct URL jobs only)
|
|
98
|
+
*/
|
|
99
|
+
words?: Array<unknown>;
|
|
70
100
|
}
|
|
71
101
|
export interface TranscriptionCreateParams {
|
|
72
102
|
/**
|
|
73
|
-
* URL of the audio file to transcribe
|
|
103
|
+
* URL of the audio file to transcribe (legacy mode, no auto-storage)
|
|
74
104
|
*/
|
|
75
|
-
audio_url
|
|
105
|
+
audio_url?: string;
|
|
76
106
|
/**
|
|
77
107
|
* Automatically extract key phrases and topics
|
|
78
108
|
*/
|
|
79
109
|
auto_highlights?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* How much to boost custom vocabulary
|
|
112
|
+
*/
|
|
113
|
+
boost_param?: 'low' | 'default' | 'high';
|
|
80
114
|
/**
|
|
81
115
|
* Enable content moderation and safety labeling
|
|
82
116
|
*/
|
|
83
117
|
content_safety_labels?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Output format for the transcript when using vault mode
|
|
120
|
+
*/
|
|
121
|
+
format?: 'json' | 'text';
|
|
84
122
|
/**
|
|
85
123
|
* Format text with proper capitalization
|
|
86
124
|
*/
|
|
@@ -94,6 +132,10 @@ export interface TranscriptionCreateParams {
|
|
|
94
132
|
* Enable automatic language detection
|
|
95
133
|
*/
|
|
96
134
|
language_detection?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Object ID of the audio file in the vault (use with vault_id)
|
|
137
|
+
*/
|
|
138
|
+
object_id?: string;
|
|
97
139
|
/**
|
|
98
140
|
* Add punctuation to the transcript
|
|
99
141
|
*/
|
|
@@ -102,8 +144,20 @@ export interface TranscriptionCreateParams {
|
|
|
102
144
|
* Enable speaker identification and labeling
|
|
103
145
|
*/
|
|
104
146
|
speaker_labels?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Expected number of speakers (improves accuracy when known)
|
|
149
|
+
*/
|
|
150
|
+
speakers_expected?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Vault ID containing the audio file (use with object_id)
|
|
153
|
+
*/
|
|
154
|
+
vault_id?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Custom vocabulary words to boost (e.g., legal terms)
|
|
157
|
+
*/
|
|
158
|
+
word_boost?: Array<string>;
|
|
105
159
|
}
|
|
106
160
|
export declare namespace Transcription {
|
|
107
|
-
export { type TranscriptionRetrieveResponse as TranscriptionRetrieveResponse, type TranscriptionCreateParams as TranscriptionCreateParams, };
|
|
161
|
+
export { type TranscriptionCreateResponse as TranscriptionCreateResponse, type TranscriptionRetrieveResponse as TranscriptionRetrieveResponse, type TranscriptionCreateParams as TranscriptionCreateParams, };
|
|
108
162
|
}
|
|
109
163
|
//# sourceMappingURL=transcription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcription.d.ts","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"transcription.d.ts","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI1G;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;CAG1F;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,OAAO,CAAC;IAEzD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;IAEzD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CACxB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;IAEzC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -3,38 +3,37 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Transcription = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
6
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
7
|
class Transcription extends resource_1.APIResource {
|
|
9
8
|
/**
|
|
10
|
-
* Creates an asynchronous transcription job for audio files. Supports
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
9
|
+
* Creates an asynchronous transcription job for audio files. Supports two modes:
|
|
10
|
+
*
|
|
11
|
+
* **Vault-based (recommended)**: Pass `vault_id` and `object_id` to transcribe
|
|
12
|
+
* audio from your vault. The transcript will automatically be saved back to the
|
|
13
|
+
* vault when complete.
|
|
14
|
+
*
|
|
15
|
+
* **Direct URL (legacy)**: Pass `audio_url` for direct transcription without
|
|
16
|
+
* automatic storage.
|
|
14
17
|
*
|
|
15
18
|
* @example
|
|
16
19
|
* ```ts
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* });
|
|
20
|
+
* const transcription =
|
|
21
|
+
* await client.voice.transcription.create();
|
|
20
22
|
* ```
|
|
21
23
|
*/
|
|
22
24
|
create(body, options) {
|
|
23
|
-
return this._client.post('/voice/transcription', {
|
|
24
|
-
body,
|
|
25
|
-
...options,
|
|
26
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
27
|
-
});
|
|
25
|
+
return this._client.post('/voice/transcription', { body, ...options });
|
|
28
26
|
}
|
|
29
27
|
/**
|
|
30
|
-
* Retrieve the status and result of an audio transcription job.
|
|
31
|
-
*
|
|
28
|
+
* Retrieve the status and result of an audio transcription job. For vault-based
|
|
29
|
+
* jobs, returns status and result_object_id when complete. For legacy direct URL
|
|
30
|
+
* jobs, returns the full transcription data.
|
|
32
31
|
*
|
|
33
32
|
* @example
|
|
34
33
|
* ```ts
|
|
35
34
|
* const transcription =
|
|
36
35
|
* await client.voice.transcription.retrieve(
|
|
37
|
-
* '
|
|
36
|
+
* 'tr_abc123def456',
|
|
38
37
|
* );
|
|
39
38
|
* ```
|
|
40
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcription.js","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;
|
|
1
|
+
{"version":3,"file":"transcription.js","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AArCD,sCAqCC"}
|
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
3
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
4
|
export class Transcription extends APIResource {
|
|
6
5
|
/**
|
|
7
|
-
* Creates an asynchronous transcription job for audio files. Supports
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* Creates an asynchronous transcription job for audio files. Supports two modes:
|
|
7
|
+
*
|
|
8
|
+
* **Vault-based (recommended)**: Pass `vault_id` and `object_id` to transcribe
|
|
9
|
+
* audio from your vault. The transcript will automatically be saved back to the
|
|
10
|
+
* vault when complete.
|
|
11
|
+
*
|
|
12
|
+
* **Direct URL (legacy)**: Pass `audio_url` for direct transcription without
|
|
13
|
+
* automatic storage.
|
|
11
14
|
*
|
|
12
15
|
* @example
|
|
13
16
|
* ```ts
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* });
|
|
17
|
+
* const transcription =
|
|
18
|
+
* await client.voice.transcription.create();
|
|
17
19
|
* ```
|
|
18
20
|
*/
|
|
19
21
|
create(body, options) {
|
|
20
|
-
return this._client.post('/voice/transcription', {
|
|
21
|
-
body,
|
|
22
|
-
...options,
|
|
23
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
24
|
-
});
|
|
22
|
+
return this._client.post('/voice/transcription', { body, ...options });
|
|
25
23
|
}
|
|
26
24
|
/**
|
|
27
|
-
* Retrieve the status and result of an audio transcription job.
|
|
28
|
-
*
|
|
25
|
+
* Retrieve the status and result of an audio transcription job. For vault-based
|
|
26
|
+
* jobs, returns status and result_object_id when complete. For legacy direct URL
|
|
27
|
+
* jobs, returns the full transcription data.
|
|
29
28
|
*
|
|
30
29
|
* @example
|
|
31
30
|
* ```ts
|
|
32
31
|
* const transcription =
|
|
33
32
|
* await client.voice.transcription.retrieve(
|
|
34
|
-
* '
|
|
33
|
+
* 'tr_abc123def456',
|
|
35
34
|
* );
|
|
36
35
|
* ```
|
|
37
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transcription.mjs","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"transcription.mjs","sourceRoot":"","sources":["../../src/resources/voice/transcription.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Speak, type SpeakCreateParams
|
|
2
|
-
export { V1, type V1ListVoicesParams } from "./v1.mjs";
|
|
1
|
+
export { Speak, type SpeakCreateParams } from "./speak.mjs";
|
|
2
|
+
export { V1, type V1ListVoicesResponse, type V1ListVoicesParams } from "./v1.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/voice/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/voice/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,iBAAiB,EAAE;OACjC,EAAE,EAAE,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE"}
|