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
|
@@ -2,41 +2,40 @@
|
|
|
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
|
import { path } from '../../internal/utils/path';
|
|
8
7
|
|
|
9
8
|
export class Transcription extends APIResource {
|
|
10
9
|
/**
|
|
11
|
-
* Creates an asynchronous transcription job for audio files. Supports
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
10
|
+
* Creates an asynchronous transcription job for audio files. Supports two modes:
|
|
11
|
+
*
|
|
12
|
+
* **Vault-based (recommended)**: Pass `vault_id` and `object_id` to transcribe
|
|
13
|
+
* audio from your vault. The transcript will automatically be saved back to the
|
|
14
|
+
* vault when complete.
|
|
15
|
+
*
|
|
16
|
+
* **Direct URL (legacy)**: Pass `audio_url` for direct transcription without
|
|
17
|
+
* automatic storage.
|
|
15
18
|
*
|
|
16
19
|
* @example
|
|
17
20
|
* ```ts
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* });
|
|
21
|
+
* const transcription =
|
|
22
|
+
* await client.voice.transcription.create();
|
|
21
23
|
* ```
|
|
22
24
|
*/
|
|
23
|
-
create(body: TranscriptionCreateParams, options?: RequestOptions): APIPromise<
|
|
24
|
-
return this._client.post('/voice/transcription', {
|
|
25
|
-
body,
|
|
26
|
-
...options,
|
|
27
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
-
});
|
|
25
|
+
create(body: TranscriptionCreateParams, options?: RequestOptions): APIPromise<TranscriptionCreateResponse> {
|
|
26
|
+
return this._client.post('/voice/transcription', { body, ...options });
|
|
29
27
|
}
|
|
30
28
|
|
|
31
29
|
/**
|
|
32
|
-
* Retrieve the status and result of an audio transcription job.
|
|
33
|
-
*
|
|
30
|
+
* Retrieve the status and result of an audio transcription job. For vault-based
|
|
31
|
+
* jobs, returns status and result_object_id when complete. For legacy direct URL
|
|
32
|
+
* jobs, returns the full transcription data.
|
|
34
33
|
*
|
|
35
34
|
* @example
|
|
36
35
|
* ```ts
|
|
37
36
|
* const transcription =
|
|
38
37
|
* await client.voice.transcription.retrieve(
|
|
39
|
-
* '
|
|
38
|
+
* 'tr_abc123def456',
|
|
40
39
|
* );
|
|
41
40
|
* ```
|
|
42
41
|
*/
|
|
@@ -45,6 +44,28 @@ export class Transcription extends APIResource {
|
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
|
|
47
|
+
export interface TranscriptionCreateResponse {
|
|
48
|
+
/**
|
|
49
|
+
* Unique transcription job ID
|
|
50
|
+
*/
|
|
51
|
+
id?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Source audio object ID (only for vault-based transcription)
|
|
55
|
+
*/
|
|
56
|
+
source_object_id?: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Current status of the transcription job
|
|
60
|
+
*/
|
|
61
|
+
status?: 'queued' | 'processing' | 'completed' | 'error';
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Vault ID (only for vault-based transcription)
|
|
65
|
+
*/
|
|
66
|
+
vault_id?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
48
69
|
export interface TranscriptionRetrieveResponse {
|
|
49
70
|
/**
|
|
50
71
|
* Unique transcription job ID
|
|
@@ -54,7 +75,7 @@ export interface TranscriptionRetrieveResponse {
|
|
|
54
75
|
/**
|
|
55
76
|
* Current status of the transcription job
|
|
56
77
|
*/
|
|
57
|
-
status: 'queued' | 'processing' | 'completed' | '
|
|
78
|
+
status: 'queued' | 'processing' | 'completed' | 'failed';
|
|
58
79
|
|
|
59
80
|
/**
|
|
60
81
|
* Duration of the audio file in seconds
|
|
@@ -62,54 +83,72 @@ export interface TranscriptionRetrieveResponse {
|
|
|
62
83
|
audio_duration?: number;
|
|
63
84
|
|
|
64
85
|
/**
|
|
65
|
-
* Overall confidence score
|
|
86
|
+
* Overall confidence score (0-100)
|
|
66
87
|
*/
|
|
67
88
|
confidence?: number;
|
|
68
89
|
|
|
69
90
|
/**
|
|
70
|
-
* Error message (only present when status is
|
|
91
|
+
* Error message (only present when status is failed)
|
|
71
92
|
*/
|
|
72
93
|
error?: string;
|
|
73
94
|
|
|
74
95
|
/**
|
|
75
|
-
*
|
|
96
|
+
* Result transcript object ID (vault-based jobs, when completed)
|
|
76
97
|
*/
|
|
77
|
-
|
|
98
|
+
result_object_id?: string;
|
|
78
99
|
|
|
79
100
|
/**
|
|
80
|
-
*
|
|
101
|
+
* Source audio object ID (vault-based jobs only)
|
|
81
102
|
*/
|
|
82
|
-
|
|
83
|
-
}
|
|
103
|
+
source_object_id?: string;
|
|
84
104
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Full transcription text (legacy direct URL jobs only)
|
|
107
|
+
*/
|
|
108
|
+
text?: string;
|
|
88
109
|
|
|
89
|
-
|
|
110
|
+
/**
|
|
111
|
+
* Vault ID (vault-based jobs only)
|
|
112
|
+
*/
|
|
113
|
+
vault_id?: string;
|
|
90
114
|
|
|
91
|
-
|
|
115
|
+
/**
|
|
116
|
+
* Number of words in the transcript
|
|
117
|
+
*/
|
|
118
|
+
word_count?: number;
|
|
92
119
|
|
|
93
|
-
|
|
94
|
-
|
|
120
|
+
/**
|
|
121
|
+
* Word-level timestamps (legacy direct URL jobs only)
|
|
122
|
+
*/
|
|
123
|
+
words?: Array<unknown>;
|
|
95
124
|
}
|
|
96
125
|
|
|
97
126
|
export interface TranscriptionCreateParams {
|
|
98
127
|
/**
|
|
99
|
-
* URL of the audio file to transcribe
|
|
128
|
+
* URL of the audio file to transcribe (legacy mode, no auto-storage)
|
|
100
129
|
*/
|
|
101
|
-
audio_url
|
|
130
|
+
audio_url?: string;
|
|
102
131
|
|
|
103
132
|
/**
|
|
104
133
|
* Automatically extract key phrases and topics
|
|
105
134
|
*/
|
|
106
135
|
auto_highlights?: boolean;
|
|
107
136
|
|
|
137
|
+
/**
|
|
138
|
+
* How much to boost custom vocabulary
|
|
139
|
+
*/
|
|
140
|
+
boost_param?: 'low' | 'default' | 'high';
|
|
141
|
+
|
|
108
142
|
/**
|
|
109
143
|
* Enable content moderation and safety labeling
|
|
110
144
|
*/
|
|
111
145
|
content_safety_labels?: boolean;
|
|
112
146
|
|
|
147
|
+
/**
|
|
148
|
+
* Output format for the transcript when using vault mode
|
|
149
|
+
*/
|
|
150
|
+
format?: 'json' | 'text';
|
|
151
|
+
|
|
113
152
|
/**
|
|
114
153
|
* Format text with proper capitalization
|
|
115
154
|
*/
|
|
@@ -126,6 +165,11 @@ export interface TranscriptionCreateParams {
|
|
|
126
165
|
*/
|
|
127
166
|
language_detection?: boolean;
|
|
128
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Object ID of the audio file in the vault (use with vault_id)
|
|
170
|
+
*/
|
|
171
|
+
object_id?: string;
|
|
172
|
+
|
|
129
173
|
/**
|
|
130
174
|
* Add punctuation to the transcript
|
|
131
175
|
*/
|
|
@@ -135,10 +179,26 @@ export interface TranscriptionCreateParams {
|
|
|
135
179
|
* Enable speaker identification and labeling
|
|
136
180
|
*/
|
|
137
181
|
speaker_labels?: boolean;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Expected number of speakers (improves accuracy when known)
|
|
185
|
+
*/
|
|
186
|
+
speakers_expected?: number;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Vault ID containing the audio file (use with object_id)
|
|
190
|
+
*/
|
|
191
|
+
vault_id?: string;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Custom vocabulary words to boost (e.g., legal terms)
|
|
195
|
+
*/
|
|
196
|
+
word_boost?: Array<string>;
|
|
138
197
|
}
|
|
139
198
|
|
|
140
199
|
export declare namespace Transcription {
|
|
141
200
|
export {
|
|
201
|
+
type TranscriptionCreateResponse as TranscriptionCreateResponse,
|
|
142
202
|
type TranscriptionRetrieveResponse as TranscriptionRetrieveResponse,
|
|
143
203
|
type TranscriptionCreateParams as TranscriptionCreateParams,
|
|
144
204
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Speak, type SpeakCreateParams
|
|
4
|
-
export { V1, type V1ListVoicesParams } from './v1';
|
|
3
|
+
export { Speak, type SpeakCreateParams } from './speak';
|
|
4
|
+
export { V1, type V1ListVoicesResponse, type V1ListVoicesParams } from './v1';
|
|
@@ -29,31 +29,6 @@ export class Speak extends APIResource {
|
|
|
29
29
|
__binaryResponse: true,
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Convert text to speech using ElevenLabs AI voices with streaming for real-time
|
|
35
|
-
* playback. Returns audio data as an MP3 stream for immediate playback with
|
|
36
|
-
* minimal latency. Perfect for legal document narration, client presentations, or
|
|
37
|
-
* accessibility features.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const response = await client.voice.v1.speak.stream({
|
|
42
|
-
* text: 'text',
|
|
43
|
-
* });
|
|
44
|
-
*
|
|
45
|
-
* const content = await response.blob();
|
|
46
|
-
* console.log(content);
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
stream(body: SpeakStreamParams, options?: RequestOptions): APIPromise<Response> {
|
|
50
|
-
return this._client.post('/voice/v1/speak/stream', {
|
|
51
|
-
body,
|
|
52
|
-
...options,
|
|
53
|
-
headers: buildHeaders([{ Accept: 'audio/mpeg' }, options?.headers]),
|
|
54
|
-
__binaryResponse: true,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
32
|
}
|
|
58
33
|
|
|
59
34
|
export interface SpeakCreateParams {
|
|
@@ -145,93 +120,6 @@ export namespace SpeakCreateParams {
|
|
|
145
120
|
}
|
|
146
121
|
}
|
|
147
122
|
|
|
148
|
-
export interface SpeakStreamParams {
|
|
149
|
-
/**
|
|
150
|
-
* Text to convert to speech
|
|
151
|
-
*/
|
|
152
|
-
text: string;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Apply text normalization
|
|
156
|
-
*/
|
|
157
|
-
apply_text_normalization?: boolean;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Enable request logging
|
|
161
|
-
*/
|
|
162
|
-
enable_logging?: boolean;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Language code (e.g., 'en', 'es', 'fr')
|
|
166
|
-
*/
|
|
167
|
-
language_code?: string;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* TTS model to use
|
|
171
|
-
*/
|
|
172
|
-
model_id?:
|
|
173
|
-
| 'eleven_monolingual_v1'
|
|
174
|
-
| 'eleven_multilingual_v1'
|
|
175
|
-
| 'eleven_multilingual_v2'
|
|
176
|
-
| 'eleven_turbo_v2';
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Next text for context
|
|
180
|
-
*/
|
|
181
|
-
next_text?: string;
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Optimize for streaming latency (0-4)
|
|
185
|
-
*/
|
|
186
|
-
optimize_streaming_latency?: number;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Audio output format
|
|
190
|
-
*/
|
|
191
|
-
output_format?: 'mp3_44100_128' | 'mp3_22050_32' | 'pcm_16000' | 'pcm_22050' | 'pcm_24000' | 'pcm_44100';
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Previous text for context
|
|
195
|
-
*/
|
|
196
|
-
previous_text?: string;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Random seed for reproducible generation
|
|
200
|
-
*/
|
|
201
|
-
seed?: number;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* ElevenLabs voice ID (defaults to Rachel for professional clarity)
|
|
205
|
-
*/
|
|
206
|
-
voice_id?: string;
|
|
207
|
-
|
|
208
|
-
voice_settings?: SpeakStreamParams.VoiceSettings;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export namespace SpeakStreamParams {
|
|
212
|
-
export interface VoiceSettings {
|
|
213
|
-
/**
|
|
214
|
-
* Similarity boost (0-1)
|
|
215
|
-
*/
|
|
216
|
-
similarity_boost?: number;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Voice stability (0-1)
|
|
220
|
-
*/
|
|
221
|
-
stability?: number;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Style exaggeration (0-1)
|
|
225
|
-
*/
|
|
226
|
-
style?: number;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Enable speaker boost
|
|
230
|
-
*/
|
|
231
|
-
use_speaker_boost?: boolean;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
123
|
export declare namespace Speak {
|
|
236
|
-
export { type SpeakCreateParams as SpeakCreateParams
|
|
124
|
+
export { type SpeakCreateParams as SpeakCreateParams };
|
|
237
125
|
}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as SpeakAPI from './speak';
|
|
5
|
-
import { Speak, SpeakCreateParams
|
|
5
|
+
import { Speak, SpeakCreateParams } from './speak';
|
|
6
6
|
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
-
import { buildHeaders } from '../../../internal/headers';
|
|
8
7
|
import { RequestOptions } from '../../../internal/request-options';
|
|
9
8
|
|
|
10
9
|
export class V1 extends APIResource {
|
|
@@ -18,15 +17,67 @@ export class V1 extends APIResource {
|
|
|
18
17
|
*
|
|
19
18
|
* @example
|
|
20
19
|
* ```ts
|
|
21
|
-
* await client.voice.v1.listVoices();
|
|
20
|
+
* const response = await client.voice.v1.listVoices();
|
|
22
21
|
* ```
|
|
23
22
|
*/
|
|
24
|
-
listVoices(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
listVoices(
|
|
24
|
+
query: V1ListVoicesParams | null | undefined = {},
|
|
25
|
+
options?: RequestOptions,
|
|
26
|
+
): APIPromise<V1ListVoicesResponse> {
|
|
27
|
+
return this._client.get('/voice/v1/voices', { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface V1ListVoicesResponse {
|
|
32
|
+
/**
|
|
33
|
+
* Token for next page of results
|
|
34
|
+
*/
|
|
35
|
+
next_page_token?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Total number of voices (if requested)
|
|
39
|
+
*/
|
|
40
|
+
total_count?: number;
|
|
41
|
+
|
|
42
|
+
voices?: Array<V1ListVoicesResponse.Voice>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export namespace V1ListVoicesResponse {
|
|
46
|
+
export interface Voice {
|
|
47
|
+
/**
|
|
48
|
+
* Available subscription tiers
|
|
49
|
+
*/
|
|
50
|
+
available_for_tiers?: Array<string>;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Voice category
|
|
54
|
+
*/
|
|
55
|
+
category?: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Voice description
|
|
59
|
+
*/
|
|
60
|
+
description?: string;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Voice characteristics and metadata
|
|
64
|
+
*/
|
|
65
|
+
labels?: unknown;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Voice name
|
|
69
|
+
*/
|
|
70
|
+
name?: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* URL to preview audio sample
|
|
74
|
+
*/
|
|
75
|
+
preview_url?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Unique voice identifier
|
|
79
|
+
*/
|
|
80
|
+
voice_id?: string;
|
|
30
81
|
}
|
|
31
82
|
}
|
|
32
83
|
|
|
@@ -80,11 +131,7 @@ export interface V1ListVoicesParams {
|
|
|
80
131
|
V1.Speak = Speak;
|
|
81
132
|
|
|
82
133
|
export declare namespace V1 {
|
|
83
|
-
export { type V1ListVoicesParams as V1ListVoicesParams };
|
|
134
|
+
export { type V1ListVoicesResponse as V1ListVoicesResponse, type V1ListVoicesParams as V1ListVoicesParams };
|
|
84
135
|
|
|
85
|
-
export {
|
|
86
|
-
Speak as Speak,
|
|
87
|
-
type SpeakCreateParams as SpeakCreateParams,
|
|
88
|
-
type SpeakStreamParams as SpeakStreamParams,
|
|
89
|
-
};
|
|
136
|
+
export { Speak as Speak, type SpeakCreateParams as SpeakCreateParams };
|
|
90
137
|
}
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as StreamingAPI from './streaming';
|
|
5
|
-
import { Streaming } from './streaming';
|
|
5
|
+
import { Streaming, StreamingGetURLResponse } from './streaming';
|
|
6
6
|
import * as TranscriptionAPI from './transcription';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
Transcription,
|
|
9
|
+
TranscriptionCreateParams,
|
|
10
|
+
TranscriptionCreateResponse,
|
|
11
|
+
TranscriptionRetrieveResponse,
|
|
12
|
+
} from './transcription';
|
|
8
13
|
import * as V1API from './v1/v1';
|
|
9
|
-
import { V1, V1ListVoicesParams } from './v1/v1';
|
|
14
|
+
import { V1, V1ListVoicesParams, V1ListVoicesResponse } from './v1/v1';
|
|
10
15
|
|
|
11
16
|
export class Voice extends APIResource {
|
|
12
17
|
streaming: StreamingAPI.Streaming = new StreamingAPI.Streaming(this._client);
|
|
@@ -19,13 +24,18 @@ Voice.Transcription = Transcription;
|
|
|
19
24
|
Voice.V1 = V1;
|
|
20
25
|
|
|
21
26
|
export declare namespace Voice {
|
|
22
|
-
export { Streaming as Streaming };
|
|
27
|
+
export { Streaming as Streaming, type StreamingGetURLResponse as StreamingGetURLResponse };
|
|
23
28
|
|
|
24
29
|
export {
|
|
25
30
|
Transcription as Transcription,
|
|
31
|
+
type TranscriptionCreateResponse as TranscriptionCreateResponse,
|
|
26
32
|
type TranscriptionRetrieveResponse as TranscriptionRetrieveResponse,
|
|
27
33
|
type TranscriptionCreateParams as TranscriptionCreateParams,
|
|
28
34
|
};
|
|
29
35
|
|
|
30
|
-
export {
|
|
36
|
+
export {
|
|
37
|
+
V1 as V1,
|
|
38
|
+
type V1ListVoicesResponse as V1ListVoicesResponse,
|
|
39
|
+
type V1ListVoicesParams as V1ListVoicesParams,
|
|
40
|
+
};
|
|
31
41
|
}
|
|
@@ -1,144 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
import { path } from '../../internal/utils/path';
|
|
8
4
|
|
|
9
|
-
export class V1 extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a new webhook endpoint to receive real-time notifications for events in
|
|
12
|
-
* your Case.dev workspace. Webhooks enable automated workflows by sending HTTP
|
|
13
|
-
* POST requests to your specified URL when events occur.
|
|
14
|
-
*
|
|
15
|
-
* **Security**: Webhooks are signed with HMAC-SHA256 using the provided secret.
|
|
16
|
-
* The signature is included in the `X-Case-Signature` header.
|
|
17
|
-
*
|
|
18
|
-
* **Available Events**:
|
|
19
|
-
*
|
|
20
|
-
* - `document.processed` - Document OCR/processing completed
|
|
21
|
-
* - `vault.updated` - Document added/removed from vault
|
|
22
|
-
* - `action.completed` - Workflow action finished
|
|
23
|
-
* - `compute.finished` - Compute job completed
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const v1 = await client.webhooks.v1.create({
|
|
28
|
-
* events: ['document.processed', 'vault.updated'],
|
|
29
|
-
* url: 'https://api.lawfirm.com/webhooks/case-dev',
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
create(body: V1CreateParams, options?: RequestOptions): APIPromise<V1CreateResponse> {
|
|
34
|
-
return this._client.post('/webhooks/v1', { body, ...options });
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Retrieve detailed information about a specific webhook endpoint, including its
|
|
39
|
-
* URL, description, subscribed events, and status.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* await client.webhooks.v1.retrieve('id');
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<void> {
|
|
47
|
-
return this._client.get(path`/webhooks/v1/${id}`, {
|
|
48
|
-
...options,
|
|
49
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Retrieve all webhook endpoints configured for your organization. Webhooks allow
|
|
55
|
-
* you to receive real-time notifications when events occur in your Case.dev
|
|
56
|
-
* workspace, such as document processing completion, OCR results, or workflow
|
|
57
|
-
* status changes.
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* await client.webhooks.v1.list();
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
list(options?: RequestOptions): APIPromise<void> {
|
|
65
|
-
return this._client.get('/webhooks/v1', {
|
|
66
|
-
...options,
|
|
67
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Delete a webhook endpoint from your organization. This action is irreversible
|
|
73
|
-
* and will stop all webhook deliveries to the specified URL.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* await client.webhooks.v1.delete('wh_abc123xyz789');
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
81
|
-
return this._client.delete(path`/webhooks/v1/${id}`, {
|
|
82
|
-
...options,
|
|
83
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface V1CreateResponse {
|
|
89
|
-
/**
|
|
90
|
-
* Unique webhook endpoint ID
|
|
91
|
-
*/
|
|
92
|
-
id?: string;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Creation timestamp
|
|
96
|
-
*/
|
|
97
|
-
createdAt?: string;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Webhook description
|
|
101
|
-
*/
|
|
102
|
-
description?: string | null;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Subscribed event types
|
|
106
|
-
*/
|
|
107
|
-
events?: Array<string>;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Whether webhook is active
|
|
111
|
-
*/
|
|
112
|
-
isActive?: boolean;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Webhook signing secret (only shown on creation)
|
|
116
|
-
*/
|
|
117
|
-
secret?: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Webhook destination URL
|
|
121
|
-
*/
|
|
122
|
-
url?: string;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export interface V1CreateParams {
|
|
126
|
-
/**
|
|
127
|
-
* Array of event types to subscribe to
|
|
128
|
-
*/
|
|
129
|
-
events: Array<string>;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* HTTPS URL where webhook events will be sent
|
|
133
|
-
*/
|
|
134
|
-
url: string;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Optional description for the webhook
|
|
138
|
-
*/
|
|
139
|
-
description?: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export declare namespace V1 {
|
|
143
|
-
export { type V1CreateResponse as V1CreateResponse, type V1CreateParams as V1CreateParams };
|
|
144
|
-
}
|
|
5
|
+
export class V1 extends APIResource {}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as V1API from './v1';
|
|
5
|
-
import { V1
|
|
5
|
+
import { V1 } from './v1';
|
|
6
6
|
|
|
7
7
|
export class Webhooks extends APIResource {
|
|
8
8
|
v1: V1API.V1 = new V1API.V1(this._client);
|
|
@@ -11,5 +11,5 @@ export class Webhooks extends APIResource {
|
|
|
11
11
|
Webhooks.V1 = V1;
|
|
12
12
|
|
|
13
13
|
export declare namespace Webhooks {
|
|
14
|
-
export { V1 as V1
|
|
14
|
+
export { V1 as V1 };
|
|
15
15
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.2.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.2.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|