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,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../../internal/headers';
|
|
6
5
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
6
|
import { path } from '../../../internal/utils/path';
|
|
8
7
|
|
|
@@ -21,11 +20,8 @@ export class Templates extends APIResource {
|
|
|
21
20
|
* documents should be structured and formatted for specific legal use cases such
|
|
22
21
|
* as contracts, briefs, or pleadings.
|
|
23
22
|
*/
|
|
24
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
25
|
-
return this._client.get(path`/format/v1/templates/${id}`,
|
|
26
|
-
...options,
|
|
27
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
-
});
|
|
23
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<TemplateRetrieveResponse> {
|
|
24
|
+
return this._client.get(path`/format/v1/templates/${id}`, options);
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
/**
|
|
@@ -36,12 +32,11 @@ export class Templates extends APIResource {
|
|
|
36
32
|
* Filter by type to get specific template categories like contracts, pleadings, or
|
|
37
33
|
* correspondence.
|
|
38
34
|
*/
|
|
39
|
-
list(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
35
|
+
list(
|
|
36
|
+
query: TemplateListParams | null | undefined = {},
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<TemplateListResponse> {
|
|
39
|
+
return this._client.get('/format/v1/templates', { query, ...options });
|
|
45
40
|
}
|
|
46
41
|
}
|
|
47
42
|
|
|
@@ -72,6 +67,91 @@ export interface TemplateCreateResponse {
|
|
|
72
67
|
variables?: Array<string>;
|
|
73
68
|
}
|
|
74
69
|
|
|
70
|
+
export interface TemplateRetrieveResponse {
|
|
71
|
+
/**
|
|
72
|
+
* Unique template identifier
|
|
73
|
+
*/
|
|
74
|
+
id?: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Template formatting rules and structure
|
|
78
|
+
*/
|
|
79
|
+
content?: unknown;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Template creation timestamp
|
|
83
|
+
*/
|
|
84
|
+
createdAt?: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Template description
|
|
88
|
+
*/
|
|
89
|
+
description?: string;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Template name
|
|
93
|
+
*/
|
|
94
|
+
name?: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Organization ID that owns the template
|
|
98
|
+
*/
|
|
99
|
+
organizationId?: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Template last modification timestamp
|
|
103
|
+
*/
|
|
104
|
+
updatedAt?: string;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface TemplateListResponse {
|
|
108
|
+
templates?: Array<TemplateListResponse.Template>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export namespace TemplateListResponse {
|
|
112
|
+
export interface Template {
|
|
113
|
+
/**
|
|
114
|
+
* Unique template identifier
|
|
115
|
+
*/
|
|
116
|
+
id?: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Template creation timestamp
|
|
120
|
+
*/
|
|
121
|
+
createdAt?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Template description
|
|
125
|
+
*/
|
|
126
|
+
description?: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Template name
|
|
130
|
+
*/
|
|
131
|
+
name?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Template tags for organization
|
|
135
|
+
*/
|
|
136
|
+
tags?: Array<unknown>;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Template type/category
|
|
140
|
+
*/
|
|
141
|
+
type?: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Number of times template has been used
|
|
145
|
+
*/
|
|
146
|
+
usageCount?: number;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Template variables for customization
|
|
150
|
+
*/
|
|
151
|
+
variables?: Array<unknown>;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
75
155
|
export interface TemplateCreateParams {
|
|
76
156
|
/**
|
|
77
157
|
* Template content with {{variable}} placeholders
|
|
@@ -119,6 +199,8 @@ export interface TemplateListParams {
|
|
|
119
199
|
export declare namespace Templates {
|
|
120
200
|
export {
|
|
121
201
|
type TemplateCreateResponse as TemplateCreateResponse,
|
|
202
|
+
type TemplateRetrieveResponse as TemplateRetrieveResponse,
|
|
203
|
+
type TemplateListResponse as TemplateListResponse,
|
|
122
204
|
type TemplateCreateParams as TemplateCreateParams,
|
|
123
205
|
type TemplateListParams as TemplateListParams,
|
|
124
206
|
};
|
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as TemplatesAPI from './templates';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
TemplateCreateParams,
|
|
7
|
+
TemplateCreateResponse,
|
|
8
|
+
TemplateListParams,
|
|
9
|
+
TemplateListResponse,
|
|
10
|
+
TemplateRetrieveResponse,
|
|
11
|
+
Templates,
|
|
12
|
+
} from './templates';
|
|
6
13
|
import { APIPromise } from '../../../core/api-promise';
|
|
7
14
|
import { buildHeaders } from '../../../internal/headers';
|
|
8
15
|
import { RequestOptions } from '../../../internal/request-options';
|
|
@@ -85,6 +92,8 @@ export declare namespace V1 {
|
|
|
85
92
|
export {
|
|
86
93
|
Templates as Templates,
|
|
87
94
|
type TemplateCreateResponse as TemplateCreateResponse,
|
|
95
|
+
type TemplateRetrieveResponse as TemplateRetrieveResponse,
|
|
96
|
+
type TemplateListResponse as TemplateListResponse,
|
|
88
97
|
type TemplateCreateParams as TemplateCreateParams,
|
|
89
98
|
type TemplateListParams as TemplateListParams,
|
|
90
99
|
};
|
package/src/resources/index.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Actions } from './actions/actions';
|
|
4
3
|
export { Compute } from './compute/compute';
|
|
5
|
-
export { Convert } from './convert/convert';
|
|
6
4
|
export { Format } from './format/format';
|
|
7
|
-
export { Llm } from './llm/llm';
|
|
5
|
+
export { Llm, type LlmGetConfigResponse } from './llm/llm';
|
|
8
6
|
export { Ocr } from './ocr/ocr';
|
|
9
7
|
export { Search } from './search/search';
|
|
10
|
-
export { Templates } from './templates/templates';
|
|
11
8
|
export {
|
|
12
9
|
Vault,
|
|
13
10
|
type VaultCreateResponse,
|
|
11
|
+
type VaultRetrieveResponse,
|
|
14
12
|
type VaultListResponse,
|
|
15
13
|
type VaultIngestResponse,
|
|
16
14
|
type VaultSearchResponse,
|
|
@@ -22,4 +20,3 @@ export {
|
|
|
22
20
|
} from './vault/vault';
|
|
23
21
|
export { Voice } from './voice/voice';
|
|
24
22
|
export { Webhooks } from './webhooks/webhooks';
|
|
25
|
-
export { Workflows } from './workflows/workflows';
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export { Llm } from './llm';
|
|
4
|
-
export {
|
|
3
|
+
export { Llm, type LlmGetConfigResponse } from './llm';
|
|
4
|
+
export {
|
|
5
|
+
V1,
|
|
6
|
+
type V1CreateEmbeddingResponse,
|
|
7
|
+
type V1ListModelsResponse,
|
|
8
|
+
type V1CreateEmbeddingParams,
|
|
9
|
+
} from './v1/index';
|
package/src/resources/llm/llm.ts
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as V1API from './v1/v1';
|
|
5
|
-
import { V1, V1CreateEmbeddingParams } from './v1/v1';
|
|
5
|
+
import { V1, V1CreateEmbeddingParams, V1CreateEmbeddingResponse, V1ListModelsResponse } from './v1/v1';
|
|
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 Llm extends APIResource {
|
|
@@ -25,19 +24,61 @@ export class Llm extends APIResource {
|
|
|
25
24
|
*
|
|
26
25
|
* @example
|
|
27
26
|
* ```ts
|
|
28
|
-
* await client.llm.getConfig();
|
|
27
|
+
* const response = await client.llm.getConfig();
|
|
29
28
|
* ```
|
|
30
29
|
*/
|
|
31
|
-
getConfig(options?: RequestOptions): APIPromise<
|
|
32
|
-
return this._client.get('/llm/config',
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
getConfig(options?: RequestOptions): APIPromise<LlmGetConfigResponse> {
|
|
31
|
+
return this._client.get('/llm/config', options);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface LlmGetConfigResponse {
|
|
36
|
+
models: Array<LlmGetConfigResponse.Model>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export namespace LlmGetConfigResponse {
|
|
40
|
+
export interface Model {
|
|
41
|
+
/**
|
|
42
|
+
* Unique model identifier
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Type of model (e.g., language, embedding)
|
|
48
|
+
*/
|
|
49
|
+
modelType: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Human-readable model name
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Model description and capabilities
|
|
58
|
+
*/
|
|
59
|
+
description?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Pricing information for the model
|
|
63
|
+
*/
|
|
64
|
+
pricing?: unknown;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Technical specifications and limits
|
|
68
|
+
*/
|
|
69
|
+
specification?: unknown;
|
|
36
70
|
}
|
|
37
71
|
}
|
|
38
72
|
|
|
39
73
|
Llm.V1 = V1;
|
|
40
74
|
|
|
41
75
|
export declare namespace Llm {
|
|
42
|
-
export {
|
|
76
|
+
export { type LlmGetConfigResponse as LlmGetConfigResponse };
|
|
77
|
+
|
|
78
|
+
export {
|
|
79
|
+
V1 as V1,
|
|
80
|
+
type V1CreateEmbeddingResponse as V1CreateEmbeddingResponse,
|
|
81
|
+
type V1ListModelsResponse as V1ListModelsResponse,
|
|
82
|
+
type V1CreateEmbeddingParams as V1CreateEmbeddingParams,
|
|
83
|
+
};
|
|
43
84
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Chat, type ChatCreateCompletionResponse, type ChatCreateCompletionParams } from './chat';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
V1,
|
|
6
|
+
type V1CreateEmbeddingResponse,
|
|
7
|
+
type V1ListModelsResponse,
|
|
8
|
+
type V1CreateEmbeddingParams,
|
|
9
|
+
} from './v1';
|
|
@@ -4,7 +4,6 @@ import { APIResource } from '../../../core/resource';
|
|
|
4
4
|
import * as ChatAPI from './chat';
|
|
5
5
|
import { Chat, ChatCreateCompletionParams, ChatCreateCompletionResponse } from './chat';
|
|
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 {
|
|
@@ -17,18 +16,17 @@ export class V1 extends APIResource {
|
|
|
17
16
|
*
|
|
18
17
|
* @example
|
|
19
18
|
* ```ts
|
|
20
|
-
* await client.llm.v1.createEmbedding({
|
|
19
|
+
* const response = await client.llm.v1.createEmbedding({
|
|
21
20
|
* input: 'string',
|
|
22
21
|
* model: 'model',
|
|
23
22
|
* });
|
|
24
23
|
* ```
|
|
25
24
|
*/
|
|
26
|
-
createEmbedding(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
});
|
|
25
|
+
createEmbedding(
|
|
26
|
+
body: V1CreateEmbeddingParams,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): APIPromise<V1CreateEmbeddingResponse> {
|
|
29
|
+
return this._client.post('/llm/v1/embeddings', { body, ...options });
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
/**
|
|
@@ -41,14 +39,91 @@ export class V1 extends APIResource {
|
|
|
41
39
|
*
|
|
42
40
|
* @example
|
|
43
41
|
* ```ts
|
|
44
|
-
* await client.llm.v1.listModels();
|
|
42
|
+
* const response = await client.llm.v1.listModels();
|
|
45
43
|
* ```
|
|
46
44
|
*/
|
|
47
|
-
listModels(options?: RequestOptions): APIPromise<
|
|
48
|
-
return this._client.get('/llm/v1/models',
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
listModels(options?: RequestOptions): APIPromise<V1ListModelsResponse> {
|
|
46
|
+
return this._client.get('/llm/v1/models', options);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface V1CreateEmbeddingResponse {
|
|
51
|
+
data?: Array<V1CreateEmbeddingResponse.Data>;
|
|
52
|
+
|
|
53
|
+
model?: string;
|
|
54
|
+
|
|
55
|
+
object?: string;
|
|
56
|
+
|
|
57
|
+
usage?: V1CreateEmbeddingResponse.Usage;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export namespace V1CreateEmbeddingResponse {
|
|
61
|
+
export interface Data {
|
|
62
|
+
embedding?: Array<number>;
|
|
63
|
+
|
|
64
|
+
index?: number;
|
|
65
|
+
|
|
66
|
+
object?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface Usage {
|
|
70
|
+
prompt_tokens?: number;
|
|
71
|
+
|
|
72
|
+
total_tokens?: number;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface V1ListModelsResponse {
|
|
77
|
+
data?: Array<V1ListModelsResponse.Data>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Response object type, always 'list'
|
|
81
|
+
*/
|
|
82
|
+
object?: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export namespace V1ListModelsResponse {
|
|
86
|
+
export interface Data {
|
|
87
|
+
/**
|
|
88
|
+
* Unique model identifier
|
|
89
|
+
*/
|
|
90
|
+
id?: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Unix timestamp of model creation
|
|
94
|
+
*/
|
|
95
|
+
created?: number;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Object type, always 'model'
|
|
99
|
+
*/
|
|
100
|
+
object?: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Model provider (openai, anthropic, google, casemark, etc.)
|
|
104
|
+
*/
|
|
105
|
+
owned_by?: string;
|
|
106
|
+
|
|
107
|
+
pricing?: Data.Pricing;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export namespace Data {
|
|
111
|
+
export interface Pricing {
|
|
112
|
+
/**
|
|
113
|
+
* Input token price per token
|
|
114
|
+
*/
|
|
115
|
+
input?: string;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Cache read price per token (if supported)
|
|
119
|
+
*/
|
|
120
|
+
input_cache_read?: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Output token price per token
|
|
124
|
+
*/
|
|
125
|
+
output?: string;
|
|
126
|
+
}
|
|
52
127
|
}
|
|
53
128
|
}
|
|
54
129
|
|
|
@@ -82,7 +157,11 @@ export interface V1CreateEmbeddingParams {
|
|
|
82
157
|
V1.Chat = Chat;
|
|
83
158
|
|
|
84
159
|
export declare namespace V1 {
|
|
85
|
-
export {
|
|
160
|
+
export {
|
|
161
|
+
type V1CreateEmbeddingResponse as V1CreateEmbeddingResponse,
|
|
162
|
+
type V1ListModelsResponse as V1ListModelsResponse,
|
|
163
|
+
type V1CreateEmbeddingParams as V1CreateEmbeddingParams,
|
|
164
|
+
};
|
|
86
165
|
|
|
87
166
|
export {
|
|
88
167
|
Chat as Chat,
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Ocr } from './ocr';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
V1,
|
|
6
|
+
type V1RetrieveResponse,
|
|
7
|
+
type V1DownloadResponse,
|
|
8
|
+
type V1ProcessResponse,
|
|
9
|
+
type V1DownloadParams,
|
|
10
|
+
type V1ProcessParams,
|
|
11
|
+
} from './v1';
|
package/src/resources/ocr/ocr.ts
CHANGED
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as V1API from './v1';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
V1,
|
|
7
|
+
V1DownloadParams,
|
|
8
|
+
V1DownloadResponse,
|
|
9
|
+
V1ProcessParams,
|
|
10
|
+
V1ProcessResponse,
|
|
11
|
+
V1RetrieveResponse,
|
|
12
|
+
} from './v1';
|
|
6
13
|
|
|
7
14
|
export class Ocr extends APIResource {
|
|
8
15
|
v1: V1API.V1 = new V1API.V1(this._client);
|
|
@@ -13,6 +20,8 @@ Ocr.V1 = V1;
|
|
|
13
20
|
export declare namespace Ocr {
|
|
14
21
|
export {
|
|
15
22
|
V1 as V1,
|
|
23
|
+
type V1RetrieveResponse as V1RetrieveResponse,
|
|
24
|
+
type V1DownloadResponse as V1DownloadResponse,
|
|
16
25
|
type V1ProcessResponse as V1ProcessResponse,
|
|
17
26
|
type V1DownloadParams as V1DownloadParams,
|
|
18
27
|
type V1ProcessParams as V1ProcessParams,
|
package/src/resources/ocr/v1.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import {
|
|
5
|
+
import { type Uploadable } from '../../core/uploads';
|
|
6
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
7
|
import { path } from '../../internal/utils/path';
|
|
8
8
|
|
|
@@ -13,14 +13,11 @@ export class V1 extends APIResource {
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
|
-
* await client.ocr.v1.retrieve('id');
|
|
16
|
+
* const v1 = await client.ocr.v1.retrieve('id');
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
20
|
-
return this._client.get(path`/ocr/v1/${id}`,
|
|
21
|
-
...options,
|
|
22
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
23
|
-
});
|
|
19
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<V1RetrieveResponse> {
|
|
20
|
+
return this._client.get(path`/ocr/v1/${id}`, options);
|
|
24
21
|
}
|
|
25
22
|
|
|
26
23
|
/**
|
|
@@ -30,19 +27,18 @@ export class V1 extends APIResource {
|
|
|
30
27
|
*
|
|
31
28
|
* @example
|
|
32
29
|
* ```ts
|
|
33
|
-
* await client.ocr.v1.download('text', {
|
|
30
|
+
* const response = await client.ocr.v1.download('text', {
|
|
31
|
+
* id: 'id',
|
|
32
|
+
* });
|
|
34
33
|
* ```
|
|
35
34
|
*/
|
|
36
35
|
download(
|
|
37
36
|
type: 'text' | 'json' | 'pdf' | 'original',
|
|
38
37
|
params: V1DownloadParams,
|
|
39
38
|
options?: RequestOptions,
|
|
40
|
-
): APIPromise<
|
|
39
|
+
): APIPromise<string> {
|
|
41
40
|
const { id } = params;
|
|
42
|
-
return this._client.get(path`/ocr/v1/${id}/download/${type}`,
|
|
43
|
-
...options,
|
|
44
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
-
});
|
|
41
|
+
return this._client.get(path`/ocr/v1/${id}/download/${type}`, options);
|
|
46
42
|
}
|
|
47
43
|
|
|
48
44
|
/**
|
|
@@ -62,6 +58,45 @@ export class V1 extends APIResource {
|
|
|
62
58
|
}
|
|
63
59
|
}
|
|
64
60
|
|
|
61
|
+
export interface V1RetrieveResponse {
|
|
62
|
+
/**
|
|
63
|
+
* OCR job ID
|
|
64
|
+
*/
|
|
65
|
+
id?: string;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Job completion timestamp
|
|
69
|
+
*/
|
|
70
|
+
completed_at?: string;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Job creation timestamp
|
|
74
|
+
*/
|
|
75
|
+
created_at?: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Additional processing metadata
|
|
79
|
+
*/
|
|
80
|
+
metadata?: unknown;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Number of pages processed
|
|
84
|
+
*/
|
|
85
|
+
page_count?: number;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Current job status
|
|
89
|
+
*/
|
|
90
|
+
status?: 'pending' | 'processing' | 'completed' | 'failed';
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Extracted text content (when completed)
|
|
94
|
+
*/
|
|
95
|
+
text?: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type V1DownloadResponse = Uploadable;
|
|
99
|
+
|
|
65
100
|
export interface V1ProcessResponse {
|
|
66
101
|
/**
|
|
67
102
|
* Unique job identifier
|
|
@@ -172,6 +207,8 @@ export namespace V1ProcessParams {
|
|
|
172
207
|
|
|
173
208
|
export declare namespace V1 {
|
|
174
209
|
export {
|
|
210
|
+
type V1RetrieveResponse as V1RetrieveResponse,
|
|
211
|
+
type V1DownloadResponse as V1DownloadResponse,
|
|
175
212
|
type V1ProcessResponse as V1ProcessResponse,
|
|
176
213
|
type V1DownloadParams as V1DownloadParams,
|
|
177
214
|
type V1ProcessParams as V1ProcessParams,
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
V1ResearchParams,
|
|
12
12
|
V1ResearchResponse,
|
|
13
13
|
V1RetrieveResearchParams,
|
|
14
|
+
V1RetrieveResearchResponse,
|
|
14
15
|
V1SearchParams,
|
|
15
16
|
V1SearchResponse,
|
|
16
17
|
V1SimilarParams,
|
|
@@ -29,6 +30,7 @@ export declare namespace Search {
|
|
|
29
30
|
type V1AnswerResponse as V1AnswerResponse,
|
|
30
31
|
type V1ContentsResponse as V1ContentsResponse,
|
|
31
32
|
type V1ResearchResponse as V1ResearchResponse,
|
|
33
|
+
type V1RetrieveResearchResponse as V1RetrieveResearchResponse,
|
|
32
34
|
type V1SearchResponse as V1SearchResponse,
|
|
33
35
|
type V1SimilarResponse as V1SimilarResponse,
|
|
34
36
|
type V1AnswerParams as V1AnswerParams,
|