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
package/resources/llm/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/llm/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/llm/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,GAAG,EAA6B;OAClC,EACL,EAAE,GAIH"}
|
package/resources/llm/llm.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as V1API from "./v1/v1.mjs";
|
|
3
|
-
import { V1, V1CreateEmbeddingParams } from "./v1/v1.mjs";
|
|
3
|
+
import { V1, V1CreateEmbeddingParams, V1CreateEmbeddingResponse, V1ListModelsResponse } from "./v1/v1.mjs";
|
|
4
4
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
5
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
6
|
export declare class Llm extends APIResource {
|
|
@@ -20,12 +20,44 @@ export declare class Llm extends APIResource {
|
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```ts
|
|
23
|
-
* await client.llm.getConfig();
|
|
23
|
+
* const response = await client.llm.getConfig();
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
getConfig(options?: RequestOptions): APIPromise<
|
|
26
|
+
getConfig(options?: RequestOptions): APIPromise<LlmGetConfigResponse>;
|
|
27
|
+
}
|
|
28
|
+
export interface LlmGetConfigResponse {
|
|
29
|
+
models: Array<LlmGetConfigResponse.Model>;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace LlmGetConfigResponse {
|
|
32
|
+
interface Model {
|
|
33
|
+
/**
|
|
34
|
+
* Unique model identifier
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* Type of model (e.g., language, embedding)
|
|
39
|
+
*/
|
|
40
|
+
modelType: string;
|
|
41
|
+
/**
|
|
42
|
+
* Human-readable model name
|
|
43
|
+
*/
|
|
44
|
+
name: string;
|
|
45
|
+
/**
|
|
46
|
+
* Model description and capabilities
|
|
47
|
+
*/
|
|
48
|
+
description?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Pricing information for the model
|
|
51
|
+
*/
|
|
52
|
+
pricing?: unknown;
|
|
53
|
+
/**
|
|
54
|
+
* Technical specifications and limits
|
|
55
|
+
*/
|
|
56
|
+
specification?: unknown;
|
|
57
|
+
}
|
|
27
58
|
}
|
|
28
59
|
export declare namespace Llm {
|
|
29
|
-
export {
|
|
60
|
+
export { type LlmGetConfigResponse as LlmGetConfigResponse };
|
|
61
|
+
export { V1 as V1, type V1CreateEmbeddingResponse as V1CreateEmbeddingResponse, type V1ListModelsResponse as V1ListModelsResponse, type V1CreateEmbeddingParams as V1CreateEmbeddingParams, };
|
|
30
62
|
}
|
|
31
63
|
//# sourceMappingURL=llm.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm.d.mts","sourceRoot":"","sources":["../../src/resources/llm/llm.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE,uBAAuB,EAAE;
|
|
1
|
+
{"version":3,"file":"llm.d.mts","sourceRoot":"","sources":["../../src/resources/llm/llm.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE;OAChF,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;IAE1C;;;;;;;;;;;;;;;;;OAiBG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAGtE;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,KAAK,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;CAC3C;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB;CACF;AAID,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;IAE7D,OAAO,EACL,EAAE,IAAI,EAAE,EACR,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
package/resources/llm/llm.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as V1API from "./v1/v1.js";
|
|
3
|
-
import { V1, V1CreateEmbeddingParams } from "./v1/v1.js";
|
|
3
|
+
import { V1, V1CreateEmbeddingParams, V1CreateEmbeddingResponse, V1ListModelsResponse } from "./v1/v1.js";
|
|
4
4
|
import { APIPromise } from "../../core/api-promise.js";
|
|
5
5
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
6
|
export declare class Llm extends APIResource {
|
|
@@ -20,12 +20,44 @@ export declare class Llm extends APIResource {
|
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```ts
|
|
23
|
-
* await client.llm.getConfig();
|
|
23
|
+
* const response = await client.llm.getConfig();
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
getConfig(options?: RequestOptions): APIPromise<
|
|
26
|
+
getConfig(options?: RequestOptions): APIPromise<LlmGetConfigResponse>;
|
|
27
|
+
}
|
|
28
|
+
export interface LlmGetConfigResponse {
|
|
29
|
+
models: Array<LlmGetConfigResponse.Model>;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace LlmGetConfigResponse {
|
|
32
|
+
interface Model {
|
|
33
|
+
/**
|
|
34
|
+
* Unique model identifier
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* Type of model (e.g., language, embedding)
|
|
39
|
+
*/
|
|
40
|
+
modelType: string;
|
|
41
|
+
/**
|
|
42
|
+
* Human-readable model name
|
|
43
|
+
*/
|
|
44
|
+
name: string;
|
|
45
|
+
/**
|
|
46
|
+
* Model description and capabilities
|
|
47
|
+
*/
|
|
48
|
+
description?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Pricing information for the model
|
|
51
|
+
*/
|
|
52
|
+
pricing?: unknown;
|
|
53
|
+
/**
|
|
54
|
+
* Technical specifications and limits
|
|
55
|
+
*/
|
|
56
|
+
specification?: unknown;
|
|
57
|
+
}
|
|
27
58
|
}
|
|
28
59
|
export declare namespace Llm {
|
|
29
|
-
export {
|
|
60
|
+
export { type LlmGetConfigResponse as LlmGetConfigResponse };
|
|
61
|
+
export { V1 as V1, type V1CreateEmbeddingResponse as V1CreateEmbeddingResponse, type V1ListModelsResponse as V1ListModelsResponse, type V1CreateEmbeddingParams as V1CreateEmbeddingParams, };
|
|
30
62
|
}
|
|
31
63
|
//# sourceMappingURL=llm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../src/resources/llm/llm.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE,uBAAuB,EAAE;
|
|
1
|
+
{"version":3,"file":"llm.d.ts","sourceRoot":"","sources":["../../src/resources/llm/llm.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE;OAChF,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;IAE1C;;;;;;;;;;;;;;;;;OAiBG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAGtE;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,KAAK,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;CAC3C;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB;CACF;AAID,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;IAE7D,OAAO,EACL,EAAE,IAAI,EAAE,EACR,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
package/resources/llm/llm.js
CHANGED
|
@@ -6,7 +6,6 @@ const tslib_1 = require("../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const V1API = tslib_1.__importStar(require("./v1/v1.js"));
|
|
8
8
|
const v1_1 = require("./v1/v1.js");
|
|
9
|
-
const headers_1 = require("../../internal/headers.js");
|
|
10
9
|
class Llm extends resource_1.APIResource {
|
|
11
10
|
constructor() {
|
|
12
11
|
super(...arguments);
|
|
@@ -27,14 +26,11 @@ class Llm extends resource_1.APIResource {
|
|
|
27
26
|
*
|
|
28
27
|
* @example
|
|
29
28
|
* ```ts
|
|
30
|
-
* await client.llm.getConfig();
|
|
29
|
+
* const response = await client.llm.getConfig();
|
|
31
30
|
* ```
|
|
32
31
|
*/
|
|
33
32
|
getConfig(options) {
|
|
34
|
-
return this._client.get('/llm/config',
|
|
35
|
-
...options,
|
|
36
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
37
|
-
});
|
|
33
|
+
return this._client.get('/llm/config', options);
|
|
38
34
|
}
|
|
39
35
|
}
|
|
40
36
|
exports.Llm = Llm;
|
package/resources/llm/llm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm.js","sourceRoot":"","sources":["../../src/resources/llm/llm.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0DAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"llm.js","sourceRoot":"","sources":["../../src/resources/llm/llm.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0DAAiC;AACjC,mCAAuG;AAIvG,MAAa,GAAI,SAAQ,sBAAW;IAApC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuB5C,CAAC;IArBC;;;;;;;;;;;;;;;;;OAiBG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF;AAxBD,kBAwBC;AAwCD,GAAG,CAAC,EAAE,GAAG,OAAE,CAAC"}
|
package/resources/llm/llm.mjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as V1API from "./v1/v1.mjs";
|
|
4
4
|
import { V1 } from "./v1/v1.mjs";
|
|
5
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
6
5
|
export class Llm extends APIResource {
|
|
7
6
|
constructor() {
|
|
8
7
|
super(...arguments);
|
|
@@ -23,14 +22,11 @@ export class Llm extends APIResource {
|
|
|
23
22
|
*
|
|
24
23
|
* @example
|
|
25
24
|
* ```ts
|
|
26
|
-
* await client.llm.getConfig();
|
|
25
|
+
* const response = await client.llm.getConfig();
|
|
27
26
|
* ```
|
|
28
27
|
*/
|
|
29
28
|
getConfig(options) {
|
|
30
|
-
return this._client.get('/llm/config',
|
|
31
|
-
...options,
|
|
32
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
33
|
-
});
|
|
29
|
+
return this._client.get('/llm/config', options);
|
|
34
30
|
}
|
|
35
31
|
}
|
|
36
32
|
Llm.V1 = V1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm.mjs","sourceRoot":"","sources":["../../src/resources/llm/llm.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"llm.mjs","sourceRoot":"","sources":["../../src/resources/llm/llm.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAA4E;AAIvF,MAAM,OAAO,GAAI,SAAQ,WAAW;IAApC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuB5C,CAAC;IArBC;;;;;;;;;;;;;;;;;OAiBG;IACH,SAAS,CAAC,OAAwB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF;AAwCD,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Chat, type ChatCreateCompletionResponse, type ChatCreateCompletionParams } from "./chat.mjs";
|
|
2
|
-
export { V1, type V1CreateEmbeddingParams } from "./v1.mjs";
|
|
2
|
+
export { V1, type V1CreateEmbeddingResponse, type V1ListModelsResponse, type V1CreateEmbeddingParams, } from "./v1.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/llm/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,4BAA4B,EAAE,KAAK,0BAA0B,EAAE;OAC5E,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/llm/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,4BAA4B,EAAE,KAAK,0BAA0B,EAAE;OAC5E,EACL,EAAE,EACF,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Chat, type ChatCreateCompletionResponse, type ChatCreateCompletionParams } from "./chat.js";
|
|
2
|
-
export { V1, type V1CreateEmbeddingParams } from "./v1.js";
|
|
2
|
+
export { V1, type V1CreateEmbeddingResponse, type V1ListModelsResponse, type V1CreateEmbeddingParams, } from "./v1.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/llm/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,4BAA4B,EAAE,KAAK,0BAA0B,EAAE;OAC5E,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/llm/v1/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,4BAA4B,EAAE,KAAK,0BAA0B,EAAE;OAC5E,EACL,EAAE,EACF,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/llm/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAAkG;AAAzF,4FAAA,IAAI,OAAA;AACb,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/llm/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kCAAkG;AAAzF,4FAAA,IAAI,OAAA;AACb,8BAKc;AAJZ,wFAAA,EAAE,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/llm/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAsE;OAC5E,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/llm/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAsE;OAC5E,EACL,EAAE,GAIH"}
|
|
@@ -12,13 +12,13 @@ export declare class V1 extends APIResource {
|
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
|
-
* await client.llm.v1.createEmbedding({
|
|
15
|
+
* const response = await client.llm.v1.createEmbedding({
|
|
16
16
|
* input: 'string',
|
|
17
17
|
* model: 'model',
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
createEmbedding(body: V1CreateEmbeddingParams, options?: RequestOptions): APIPromise<
|
|
21
|
+
createEmbedding(body: V1CreateEmbeddingParams, options?: RequestOptions): APIPromise<V1CreateEmbeddingResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* Retrieve a list of all available language models from 40+ providers including
|
|
24
24
|
* OpenAI, Anthropic, Google, and Case.dev's specialized legal models. Returns
|
|
@@ -29,10 +29,71 @@ export declare class V1 extends APIResource {
|
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```ts
|
|
32
|
-
* await client.llm.v1.listModels();
|
|
32
|
+
* const response = await client.llm.v1.listModels();
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
listModels(options?: RequestOptions): APIPromise<
|
|
35
|
+
listModels(options?: RequestOptions): APIPromise<V1ListModelsResponse>;
|
|
36
|
+
}
|
|
37
|
+
export interface V1CreateEmbeddingResponse {
|
|
38
|
+
data?: Array<V1CreateEmbeddingResponse.Data>;
|
|
39
|
+
model?: string;
|
|
40
|
+
object?: string;
|
|
41
|
+
usage?: V1CreateEmbeddingResponse.Usage;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace V1CreateEmbeddingResponse {
|
|
44
|
+
interface Data {
|
|
45
|
+
embedding?: Array<number>;
|
|
46
|
+
index?: number;
|
|
47
|
+
object?: string;
|
|
48
|
+
}
|
|
49
|
+
interface Usage {
|
|
50
|
+
prompt_tokens?: number;
|
|
51
|
+
total_tokens?: number;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export interface V1ListModelsResponse {
|
|
55
|
+
data?: Array<V1ListModelsResponse.Data>;
|
|
56
|
+
/**
|
|
57
|
+
* Response object type, always 'list'
|
|
58
|
+
*/
|
|
59
|
+
object?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace V1ListModelsResponse {
|
|
62
|
+
interface Data {
|
|
63
|
+
/**
|
|
64
|
+
* Unique model identifier
|
|
65
|
+
*/
|
|
66
|
+
id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Unix timestamp of model creation
|
|
69
|
+
*/
|
|
70
|
+
created?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Object type, always 'model'
|
|
73
|
+
*/
|
|
74
|
+
object?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Model provider (openai, anthropic, google, casemark, etc.)
|
|
77
|
+
*/
|
|
78
|
+
owned_by?: string;
|
|
79
|
+
pricing?: Data.Pricing;
|
|
80
|
+
}
|
|
81
|
+
namespace Data {
|
|
82
|
+
interface Pricing {
|
|
83
|
+
/**
|
|
84
|
+
* Input token price per token
|
|
85
|
+
*/
|
|
86
|
+
input?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Cache read price per token (if supported)
|
|
89
|
+
*/
|
|
90
|
+
input_cache_read?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Output token price per token
|
|
93
|
+
*/
|
|
94
|
+
output?: string;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
36
97
|
}
|
|
37
98
|
export interface V1CreateEmbeddingParams {
|
|
38
99
|
/**
|
|
@@ -57,7 +118,7 @@ export interface V1CreateEmbeddingParams {
|
|
|
57
118
|
user?: string;
|
|
58
119
|
}
|
|
59
120
|
export declare namespace V1 {
|
|
60
|
-
export { type V1CreateEmbeddingParams as V1CreateEmbeddingParams };
|
|
121
|
+
export { type V1CreateEmbeddingResponse as V1CreateEmbeddingResponse, type V1ListModelsResponse as V1ListModelsResponse, type V1CreateEmbeddingParams as V1CreateEmbeddingParams, };
|
|
61
122
|
export { Chat as Chat, type ChatCreateCompletionResponse as ChatCreateCompletionResponse, type ChatCreateCompletionParams as ChatCreateCompletionParams, };
|
|
62
123
|
}
|
|
63
124
|
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../../src/resources/llm/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,0BAA0B,EAAE,4BAA4B,EAAE;OAClE,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../../src/resources/llm/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,0BAA0B,EAAE,4BAA4B,EAAE;OAClE,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;;;;;;;;OAYG;IACH,eAAe,CACb,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAGvE;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAE7C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,yBAAyB,CAAC,KAAK,CAAC;CACzC;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,IAAI;QACnB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE1B,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;IAED,UAAiB,KAAK;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC;KACxB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,OAAO;YACtB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAE1B;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAErC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAID,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/llm/v1/v1.d.ts
CHANGED
|
@@ -12,13 +12,13 @@ export declare class V1 extends APIResource {
|
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
|
-
* await client.llm.v1.createEmbedding({
|
|
15
|
+
* const response = await client.llm.v1.createEmbedding({
|
|
16
16
|
* input: 'string',
|
|
17
17
|
* model: 'model',
|
|
18
18
|
* });
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
createEmbedding(body: V1CreateEmbeddingParams, options?: RequestOptions): APIPromise<
|
|
21
|
+
createEmbedding(body: V1CreateEmbeddingParams, options?: RequestOptions): APIPromise<V1CreateEmbeddingResponse>;
|
|
22
22
|
/**
|
|
23
23
|
* Retrieve a list of all available language models from 40+ providers including
|
|
24
24
|
* OpenAI, Anthropic, Google, and Case.dev's specialized legal models. Returns
|
|
@@ -29,10 +29,71 @@ export declare class V1 extends APIResource {
|
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```ts
|
|
32
|
-
* await client.llm.v1.listModels();
|
|
32
|
+
* const response = await client.llm.v1.listModels();
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
|
-
listModels(options?: RequestOptions): APIPromise<
|
|
35
|
+
listModels(options?: RequestOptions): APIPromise<V1ListModelsResponse>;
|
|
36
|
+
}
|
|
37
|
+
export interface V1CreateEmbeddingResponse {
|
|
38
|
+
data?: Array<V1CreateEmbeddingResponse.Data>;
|
|
39
|
+
model?: string;
|
|
40
|
+
object?: string;
|
|
41
|
+
usage?: V1CreateEmbeddingResponse.Usage;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace V1CreateEmbeddingResponse {
|
|
44
|
+
interface Data {
|
|
45
|
+
embedding?: Array<number>;
|
|
46
|
+
index?: number;
|
|
47
|
+
object?: string;
|
|
48
|
+
}
|
|
49
|
+
interface Usage {
|
|
50
|
+
prompt_tokens?: number;
|
|
51
|
+
total_tokens?: number;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export interface V1ListModelsResponse {
|
|
55
|
+
data?: Array<V1ListModelsResponse.Data>;
|
|
56
|
+
/**
|
|
57
|
+
* Response object type, always 'list'
|
|
58
|
+
*/
|
|
59
|
+
object?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace V1ListModelsResponse {
|
|
62
|
+
interface Data {
|
|
63
|
+
/**
|
|
64
|
+
* Unique model identifier
|
|
65
|
+
*/
|
|
66
|
+
id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Unix timestamp of model creation
|
|
69
|
+
*/
|
|
70
|
+
created?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Object type, always 'model'
|
|
73
|
+
*/
|
|
74
|
+
object?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Model provider (openai, anthropic, google, casemark, etc.)
|
|
77
|
+
*/
|
|
78
|
+
owned_by?: string;
|
|
79
|
+
pricing?: Data.Pricing;
|
|
80
|
+
}
|
|
81
|
+
namespace Data {
|
|
82
|
+
interface Pricing {
|
|
83
|
+
/**
|
|
84
|
+
* Input token price per token
|
|
85
|
+
*/
|
|
86
|
+
input?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Cache read price per token (if supported)
|
|
89
|
+
*/
|
|
90
|
+
input_cache_read?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Output token price per token
|
|
93
|
+
*/
|
|
94
|
+
output?: string;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
36
97
|
}
|
|
37
98
|
export interface V1CreateEmbeddingParams {
|
|
38
99
|
/**
|
|
@@ -57,7 +118,7 @@ export interface V1CreateEmbeddingParams {
|
|
|
57
118
|
user?: string;
|
|
58
119
|
}
|
|
59
120
|
export declare namespace V1 {
|
|
60
|
-
export { type V1CreateEmbeddingParams as V1CreateEmbeddingParams };
|
|
121
|
+
export { type V1CreateEmbeddingResponse as V1CreateEmbeddingResponse, type V1ListModelsResponse as V1ListModelsResponse, type V1CreateEmbeddingParams as V1CreateEmbeddingParams, };
|
|
61
122
|
export { Chat as Chat, type ChatCreateCompletionResponse as ChatCreateCompletionResponse, type ChatCreateCompletionParams as ChatCreateCompletionParams, };
|
|
62
123
|
}
|
|
63
124
|
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/resources/llm/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,0BAA0B,EAAE,4BAA4B,EAAE;OAClE,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../../src/resources/llm/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,0BAA0B,EAAE,4BAA4B,EAAE;OAClE,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;;;;;;;;OAYG;IACH,eAAe,CACb,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAGvE;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAE7C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,yBAAyB,CAAC,KAAK,CAAC;CACzC;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,IAAI;QACnB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAE1B,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB;IAED,UAAiB,KAAK;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QAEvB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC;KACxB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,OAAO;YACtB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;YAE1B;;eAEG;YACH,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAE9B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAErC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAID,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
package/resources/llm/v1/v1.js
CHANGED
|
@@ -6,7 +6,6 @@ const tslib_1 = require("../../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const ChatAPI = tslib_1.__importStar(require("./chat.js"));
|
|
8
8
|
const chat_1 = require("./chat.js");
|
|
9
|
-
const headers_1 = require("../../../internal/headers.js");
|
|
10
9
|
class V1 extends resource_1.APIResource {
|
|
11
10
|
constructor() {
|
|
12
11
|
super(...arguments);
|
|
@@ -19,18 +18,14 @@ class V1 extends resource_1.APIResource {
|
|
|
19
18
|
*
|
|
20
19
|
* @example
|
|
21
20
|
* ```ts
|
|
22
|
-
* await client.llm.v1.createEmbedding({
|
|
21
|
+
* const response = await client.llm.v1.createEmbedding({
|
|
23
22
|
* input: 'string',
|
|
24
23
|
* model: 'model',
|
|
25
24
|
* });
|
|
26
25
|
* ```
|
|
27
26
|
*/
|
|
28
27
|
createEmbedding(body, options) {
|
|
29
|
-
return this._client.post('/llm/v1/embeddings', {
|
|
30
|
-
body,
|
|
31
|
-
...options,
|
|
32
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
33
|
-
});
|
|
28
|
+
return this._client.post('/llm/v1/embeddings', { body, ...options });
|
|
34
29
|
}
|
|
35
30
|
/**
|
|
36
31
|
* Retrieve a list of all available language models from 40+ providers including
|
|
@@ -42,14 +37,11 @@ class V1 extends resource_1.APIResource {
|
|
|
42
37
|
*
|
|
43
38
|
* @example
|
|
44
39
|
* ```ts
|
|
45
|
-
* await client.llm.v1.listModels();
|
|
40
|
+
* const response = await client.llm.v1.listModels();
|
|
46
41
|
* ```
|
|
47
42
|
*/
|
|
48
43
|
listModels(options) {
|
|
49
|
-
return this._client.get('/llm/v1/models',
|
|
50
|
-
...options,
|
|
51
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
52
|
-
});
|
|
44
|
+
return this._client.get('/llm/v1/models', options);
|
|
53
45
|
}
|
|
54
46
|
}
|
|
55
47
|
exports.V1 = V1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/resources/llm/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,2DAAkC;AAClC,oCAAwF;
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../../src/resources/llm/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,2DAAkC;AAClC,oCAAwF;AAIxF,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsCtD,CAAC;IApCC;;;;;;;;;;;;OAYG;IACH,eAAe,CACb,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AAvCD,gBAuCC;AA6GD,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC"}
|
package/resources/llm/v1/v1.mjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as ChatAPI from "./chat.mjs";
|
|
4
4
|
import { Chat } from "./chat.mjs";
|
|
5
|
-
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
6
5
|
export class V1 extends APIResource {
|
|
7
6
|
constructor() {
|
|
8
7
|
super(...arguments);
|
|
@@ -15,18 +14,14 @@ export class V1 extends APIResource {
|
|
|
15
14
|
*
|
|
16
15
|
* @example
|
|
17
16
|
* ```ts
|
|
18
|
-
* await client.llm.v1.createEmbedding({
|
|
17
|
+
* const response = await client.llm.v1.createEmbedding({
|
|
19
18
|
* input: 'string',
|
|
20
19
|
* model: 'model',
|
|
21
20
|
* });
|
|
22
21
|
* ```
|
|
23
22
|
*/
|
|
24
23
|
createEmbedding(body, options) {
|
|
25
|
-
return this._client.post('/llm/v1/embeddings', {
|
|
26
|
-
body,
|
|
27
|
-
...options,
|
|
28
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
29
|
-
});
|
|
24
|
+
return this._client.post('/llm/v1/embeddings', { body, ...options });
|
|
30
25
|
}
|
|
31
26
|
/**
|
|
32
27
|
* Retrieve a list of all available language models from 40+ providers including
|
|
@@ -38,14 +33,11 @@ export class V1 extends APIResource {
|
|
|
38
33
|
*
|
|
39
34
|
* @example
|
|
40
35
|
* ```ts
|
|
41
|
-
* await client.llm.v1.listModels();
|
|
36
|
+
* const response = await client.llm.v1.listModels();
|
|
42
37
|
* ```
|
|
43
38
|
*/
|
|
44
39
|
listModels(options) {
|
|
45
|
-
return this._client.get('/llm/v1/models',
|
|
46
|
-
...options,
|
|
47
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
48
|
-
});
|
|
40
|
+
return this._client.get('/llm/v1/models', options);
|
|
49
41
|
}
|
|
50
42
|
}
|
|
51
43
|
V1.Chat = Chat;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../../src/resources/llm/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAA4D;
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../../src/resources/llm/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAA4D;AAIzE,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsCtD,CAAC;IApCC;;;;;;;;;;;;OAYG;IACH,eAAe,CACb,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AA6GD,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Ocr } from "./ocr.mjs";
|
|
2
|
-
export { V1, type V1ProcessResponse, type V1DownloadParams, type V1ProcessParams } from "./v1.mjs";
|
|
2
|
+
export { V1, type V1RetrieveResponse, type V1DownloadResponse, type V1ProcessResponse, type V1DownloadParams, type V1ProcessParams, } from "./v1.mjs";
|
|
3
3
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/ocr/index.ts"],"names":[],"mappings":"OAEO,EAAE,GAAG,EAAE;OACP,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/ocr/index.ts"],"names":[],"mappings":"OAEO,EAAE,GAAG,EAAE;OACP,EACL,EAAE,EACF,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB"}
|
package/resources/ocr/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Ocr } from "./ocr.js";
|
|
2
|
-
export { V1, type V1ProcessResponse, type V1DownloadParams, type V1ProcessParams } from "./v1.js";
|
|
2
|
+
export { V1, type V1RetrieveResponse, type V1DownloadResponse, type V1ProcessResponse, type V1DownloadParams, type V1ProcessParams, } from "./v1.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/ocr/index.ts"],"names":[],"mappings":"OAEO,EAAE,GAAG,EAAE;OACP,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/ocr/index.ts"],"names":[],"mappings":"OAEO,EAAE,GAAG,EAAE;OACP,EACL,EAAE,EACF,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/ocr/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gCAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/ocr/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gCAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,8BAOc;AANZ,wFAAA,EAAE,OAAA"}
|
package/resources/ocr/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/ocr/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,GAAG,EAAE;OACP,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/ocr/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,GAAG,EAAE;OACP,EACL,EAAE,GAMH"}
|
package/resources/ocr/ocr.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as V1API from "./v1.mjs";
|
|
3
|
-
import { V1, V1DownloadParams, V1ProcessParams, V1ProcessResponse } from "./v1.mjs";
|
|
3
|
+
import { V1, V1DownloadParams, V1DownloadResponse, V1ProcessParams, V1ProcessResponse, V1RetrieveResponse } from "./v1.mjs";
|
|
4
4
|
export declare class Ocr extends APIResource {
|
|
5
5
|
v1: V1API.V1;
|
|
6
6
|
}
|
|
7
7
|
export declare namespace Ocr {
|
|
8
|
-
export { V1 as V1, type V1ProcessResponse as V1ProcessResponse, type V1DownloadParams as V1DownloadParams, type V1ProcessParams as V1ProcessParams, };
|
|
8
|
+
export { V1 as V1, type V1RetrieveResponse as V1RetrieveResponse, type V1DownloadResponse as V1DownloadResponse, type V1ProcessResponse as V1ProcessResponse, type V1DownloadParams as V1DownloadParams, type V1ProcessParams as V1ProcessParams, };
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=ocr.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ocr.d.mts","sourceRoot":"","sources":["../../src/resources/ocr/ocr.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,
|
|
1
|
+
{"version":3,"file":"ocr.d.mts","sourceRoot":"","sources":["../../src/resources/ocr/ocr.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EACL,EAAE,EACF,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EACnB;AAED,qBAAa,GAAI,SAAQ,WAAW;IAClC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,EAAE,IAAI,EAAE,EACR,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|