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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"OAEO,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"OAEO,EAAE,EAAE,EAAE;OACN,EAAE,QAAQ,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"OAEO,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"OAEO,EAAE,EAAE,EAAE;OACN,EAAE,QAAQ,EAAE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8BAA0B;AAAjB,wFAAA,EAAE,OAAA;AACX,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,EAAE,EAAE;OACN,EAAE,QAAQ,EAAE"}
|
|
@@ -1,109 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
2
|
export declare class V1 extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new webhook endpoint to receive real-time notifications for events in
|
|
7
|
-
* your Case.dev workspace. Webhooks enable automated workflows by sending HTTP
|
|
8
|
-
* POST requests to your specified URL when events occur.
|
|
9
|
-
*
|
|
10
|
-
* **Security**: Webhooks are signed with HMAC-SHA256 using the provided secret.
|
|
11
|
-
* The signature is included in the `X-Case-Signature` header.
|
|
12
|
-
*
|
|
13
|
-
* **Available Events**:
|
|
14
|
-
*
|
|
15
|
-
* - `document.processed` - Document OCR/processing completed
|
|
16
|
-
* - `vault.updated` - Document added/removed from vault
|
|
17
|
-
* - `action.completed` - Workflow action finished
|
|
18
|
-
* - `compute.finished` - Compute job completed
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const v1 = await client.webhooks.v1.create({
|
|
23
|
-
* events: ['document.processed', 'vault.updated'],
|
|
24
|
-
* url: 'https://api.lawfirm.com/webhooks/case-dev',
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
create(body: V1CreateParams, options?: RequestOptions): APIPromise<V1CreateResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve detailed information about a specific webhook endpoint, including its
|
|
31
|
-
* URL, description, subscribed events, and status.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* await client.webhooks.v1.retrieve('id');
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Retrieve all webhook endpoints configured for your organization. Webhooks allow
|
|
41
|
-
* you to receive real-time notifications when events occur in your Case.dev
|
|
42
|
-
* workspace, such as document processing completion, OCR results, or workflow
|
|
43
|
-
* status changes.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* await client.webhooks.v1.list();
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
list(options?: RequestOptions): APIPromise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* Delete a webhook endpoint from your organization. This action is irreversible
|
|
53
|
-
* and will stop all webhook deliveries to the specified URL.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await client.webhooks.v1.delete('wh_abc123xyz789');
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
61
|
-
}
|
|
62
|
-
export interface V1CreateResponse {
|
|
63
|
-
/**
|
|
64
|
-
* Unique webhook endpoint ID
|
|
65
|
-
*/
|
|
66
|
-
id?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Creation timestamp
|
|
69
|
-
*/
|
|
70
|
-
createdAt?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Webhook description
|
|
73
|
-
*/
|
|
74
|
-
description?: string | null;
|
|
75
|
-
/**
|
|
76
|
-
* Subscribed event types
|
|
77
|
-
*/
|
|
78
|
-
events?: Array<string>;
|
|
79
|
-
/**
|
|
80
|
-
* Whether webhook is active
|
|
81
|
-
*/
|
|
82
|
-
isActive?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Webhook signing secret (only shown on creation)
|
|
85
|
-
*/
|
|
86
|
-
secret?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Webhook destination URL
|
|
89
|
-
*/
|
|
90
|
-
url?: string;
|
|
91
|
-
}
|
|
92
|
-
export interface V1CreateParams {
|
|
93
|
-
/**
|
|
94
|
-
* Array of event types to subscribe to
|
|
95
|
-
*/
|
|
96
|
-
events: Array<string>;
|
|
97
|
-
/**
|
|
98
|
-
* HTTPS URL where webhook events will be sent
|
|
99
|
-
*/
|
|
100
|
-
url: string;
|
|
101
|
-
/**
|
|
102
|
-
* Optional description for the webhook
|
|
103
|
-
*/
|
|
104
|
-
description?: string;
|
|
105
|
-
}
|
|
106
|
-
export declare namespace V1 {
|
|
107
|
-
export { type V1CreateResponse as V1CreateResponse, type V1CreateParams as V1CreateParams };
|
|
108
3
|
}
|
|
109
4
|
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,EAAG,SAAQ,WAAW;CAAG"}
|
|
@@ -1,109 +1,4 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
2
|
export declare class V1 extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new webhook endpoint to receive real-time notifications for events in
|
|
7
|
-
* your Case.dev workspace. Webhooks enable automated workflows by sending HTTP
|
|
8
|
-
* POST requests to your specified URL when events occur.
|
|
9
|
-
*
|
|
10
|
-
* **Security**: Webhooks are signed with HMAC-SHA256 using the provided secret.
|
|
11
|
-
* The signature is included in the `X-Case-Signature` header.
|
|
12
|
-
*
|
|
13
|
-
* **Available Events**:
|
|
14
|
-
*
|
|
15
|
-
* - `document.processed` - Document OCR/processing completed
|
|
16
|
-
* - `vault.updated` - Document added/removed from vault
|
|
17
|
-
* - `action.completed` - Workflow action finished
|
|
18
|
-
* - `compute.finished` - Compute job completed
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```ts
|
|
22
|
-
* const v1 = await client.webhooks.v1.create({
|
|
23
|
-
* events: ['document.processed', 'vault.updated'],
|
|
24
|
-
* url: 'https://api.lawfirm.com/webhooks/case-dev',
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
create(body: V1CreateParams, options?: RequestOptions): APIPromise<V1CreateResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve detailed information about a specific webhook endpoint, including its
|
|
31
|
-
* URL, description, subscribed events, and status.
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* await client.webhooks.v1.retrieve('id');
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Retrieve all webhook endpoints configured for your organization. Webhooks allow
|
|
41
|
-
* you to receive real-time notifications when events occur in your Case.dev
|
|
42
|
-
* workspace, such as document processing completion, OCR results, or workflow
|
|
43
|
-
* status changes.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* await client.webhooks.v1.list();
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
list(options?: RequestOptions): APIPromise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* Delete a webhook endpoint from your organization. This action is irreversible
|
|
53
|
-
* and will stop all webhook deliveries to the specified URL.
|
|
54
|
-
*
|
|
55
|
-
* @example
|
|
56
|
-
* ```ts
|
|
57
|
-
* await client.webhooks.v1.delete('wh_abc123xyz789');
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
61
|
-
}
|
|
62
|
-
export interface V1CreateResponse {
|
|
63
|
-
/**
|
|
64
|
-
* Unique webhook endpoint ID
|
|
65
|
-
*/
|
|
66
|
-
id?: string;
|
|
67
|
-
/**
|
|
68
|
-
* Creation timestamp
|
|
69
|
-
*/
|
|
70
|
-
createdAt?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Webhook description
|
|
73
|
-
*/
|
|
74
|
-
description?: string | null;
|
|
75
|
-
/**
|
|
76
|
-
* Subscribed event types
|
|
77
|
-
*/
|
|
78
|
-
events?: Array<string>;
|
|
79
|
-
/**
|
|
80
|
-
* Whether webhook is active
|
|
81
|
-
*/
|
|
82
|
-
isActive?: boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Webhook signing secret (only shown on creation)
|
|
85
|
-
*/
|
|
86
|
-
secret?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Webhook destination URL
|
|
89
|
-
*/
|
|
90
|
-
url?: string;
|
|
91
|
-
}
|
|
92
|
-
export interface V1CreateParams {
|
|
93
|
-
/**
|
|
94
|
-
* Array of event types to subscribe to
|
|
95
|
-
*/
|
|
96
|
-
events: Array<string>;
|
|
97
|
-
/**
|
|
98
|
-
* HTTPS URL where webhook events will be sent
|
|
99
|
-
*/
|
|
100
|
-
url: string;
|
|
101
|
-
/**
|
|
102
|
-
* Optional description for the webhook
|
|
103
|
-
*/
|
|
104
|
-
description?: string;
|
|
105
|
-
}
|
|
106
|
-
export declare namespace V1 {
|
|
107
|
-
export { type V1CreateResponse as V1CreateResponse, type V1CreateParams as V1CreateParams };
|
|
108
3
|
}
|
|
109
4
|
//# sourceMappingURL=v1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,EAAG,SAAQ,WAAW;CAAG"}
|
package/resources/webhooks/v1.js
CHANGED
|
@@ -3,82 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.V1 = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
8
6
|
class V1 extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a new webhook endpoint to receive real-time notifications for events in
|
|
11
|
-
* your Case.dev workspace. Webhooks enable automated workflows by sending HTTP
|
|
12
|
-
* POST requests to your specified URL when events occur.
|
|
13
|
-
*
|
|
14
|
-
* **Security**: Webhooks are signed with HMAC-SHA256 using the provided secret.
|
|
15
|
-
* The signature is included in the `X-Case-Signature` header.
|
|
16
|
-
*
|
|
17
|
-
* **Available Events**:
|
|
18
|
-
*
|
|
19
|
-
* - `document.processed` - Document OCR/processing completed
|
|
20
|
-
* - `vault.updated` - Document added/removed from vault
|
|
21
|
-
* - `action.completed` - Workflow action finished
|
|
22
|
-
* - `compute.finished` - Compute job completed
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const v1 = await client.webhooks.v1.create({
|
|
27
|
-
* events: ['document.processed', 'vault.updated'],
|
|
28
|
-
* url: 'https://api.lawfirm.com/webhooks/case-dev',
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
create(body, options) {
|
|
33
|
-
return this._client.post('/webhooks/v1', { body, ...options });
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Retrieve detailed information about a specific webhook endpoint, including its
|
|
37
|
-
* URL, description, subscribed events, and status.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* await client.webhooks.v1.retrieve('id');
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
retrieve(id, options) {
|
|
45
|
-
return this._client.get((0, path_1.path) `/webhooks/v1/${id}`, {
|
|
46
|
-
...options,
|
|
47
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Retrieve all webhook endpoints configured for your organization. Webhooks allow
|
|
52
|
-
* you to receive real-time notifications when events occur in your Case.dev
|
|
53
|
-
* workspace, such as document processing completion, OCR results, or workflow
|
|
54
|
-
* status changes.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* await client.webhooks.v1.list();
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
list(options) {
|
|
62
|
-
return this._client.get('/webhooks/v1', {
|
|
63
|
-
...options,
|
|
64
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Delete a webhook endpoint from your organization. This action is irreversible
|
|
69
|
-
* and will stop all webhook deliveries to the specified URL.
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* ```ts
|
|
73
|
-
* await client.webhooks.v1.delete('wh_abc123xyz789');
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
delete(id, options) {
|
|
77
|
-
return this._client.delete((0, path_1.path) `/webhooks/v1/${id}`, {
|
|
78
|
-
...options,
|
|
79
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
7
|
}
|
|
83
8
|
exports.V1 = V1;
|
|
84
9
|
//# sourceMappingURL=v1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,MAAa,EAAG,SAAQ,sBAAW;CAAG;AAAtC,gBAAsC"}
|
|
@@ -1,80 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
5
3
|
export class V1 extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a new webhook endpoint to receive real-time notifications for events in
|
|
8
|
-
* your Case.dev workspace. Webhooks enable automated workflows by sending HTTP
|
|
9
|
-
* POST requests to your specified URL when events occur.
|
|
10
|
-
*
|
|
11
|
-
* **Security**: Webhooks are signed with HMAC-SHA256 using the provided secret.
|
|
12
|
-
* The signature is included in the `X-Case-Signature` header.
|
|
13
|
-
*
|
|
14
|
-
* **Available Events**:
|
|
15
|
-
*
|
|
16
|
-
* - `document.processed` - Document OCR/processing completed
|
|
17
|
-
* - `vault.updated` - Document added/removed from vault
|
|
18
|
-
* - `action.completed` - Workflow action finished
|
|
19
|
-
* - `compute.finished` - Compute job completed
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const v1 = await client.webhooks.v1.create({
|
|
24
|
-
* events: ['document.processed', 'vault.updated'],
|
|
25
|
-
* url: 'https://api.lawfirm.com/webhooks/case-dev',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
create(body, options) {
|
|
30
|
-
return this._client.post('/webhooks/v1', { body, ...options });
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Retrieve detailed information about a specific webhook endpoint, including its
|
|
34
|
-
* URL, description, subscribed events, and status.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* await client.webhooks.v1.retrieve('id');
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
retrieve(id, options) {
|
|
42
|
-
return this._client.get(path `/webhooks/v1/${id}`, {
|
|
43
|
-
...options,
|
|
44
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Retrieve all webhook endpoints configured for your organization. Webhooks allow
|
|
49
|
-
* you to receive real-time notifications when events occur in your Case.dev
|
|
50
|
-
* workspace, such as document processing completion, OCR results, or workflow
|
|
51
|
-
* status changes.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* ```ts
|
|
55
|
-
* await client.webhooks.v1.list();
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
list(options) {
|
|
59
|
-
return this._client.get('/webhooks/v1', {
|
|
60
|
-
...options,
|
|
61
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Delete a webhook endpoint from your organization. This action is irreversible
|
|
66
|
-
* and will stop all webhook deliveries to the specified URL.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```ts
|
|
70
|
-
* await client.webhooks.v1.delete('wh_abc123xyz789');
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
delete(id, options) {
|
|
74
|
-
return this._client.delete(path `/webhooks/v1/${id}`, {
|
|
75
|
-
...options,
|
|
76
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
4
|
}
|
|
80
5
|
//# sourceMappingURL=v1.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,EAAG,SAAQ,WAAW;CAAG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as V1API from "./v1.mjs";
|
|
3
|
-
import { V1
|
|
3
|
+
import { V1 } from "./v1.mjs";
|
|
4
4
|
export declare class Webhooks extends APIResource {
|
|
5
5
|
v1: V1API.V1;
|
|
6
6
|
}
|
|
7
7
|
export declare namespace Webhooks {
|
|
8
|
-
export { V1 as V1
|
|
8
|
+
export { V1 as V1 };
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=webhooks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,qBAAa,QAAS,SAAQ,WAAW;IACvC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;CACrB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as V1API from "./v1.js";
|
|
3
|
-
import { V1
|
|
3
|
+
import { V1 } from "./v1.js";
|
|
4
4
|
export declare class Webhooks extends APIResource {
|
|
5
5
|
v1: V1API.V1;
|
|
6
6
|
}
|
|
7
7
|
export declare namespace Webhooks {
|
|
8
|
-
export { V1 as V1
|
|
8
|
+
export { V1 as V1 };
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,qBAAa,QAAS,SAAQ,WAAW;IACvC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uDAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uDAA8B;AAC9B,gCAA0B;AAE1B,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAFD,4BAEC;AAED,QAAQ,CAAC,EAAE,GAAG,OAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../../src/resources/webhooks/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EAAE,EAAE,EAAE;AAEb,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAED,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -16,14 +16,11 @@ import * as Errors from './core/error';
|
|
|
16
16
|
import * as Uploads from './core/uploads';
|
|
17
17
|
import * as API from './resources/index';
|
|
18
18
|
import { APIPromise } from './core/api-promise';
|
|
19
|
-
import { Actions } from './resources/actions/actions';
|
|
20
19
|
import { Compute } from './resources/compute/compute';
|
|
21
|
-
import { Convert } from './resources/convert/convert';
|
|
22
20
|
import { Format } from './resources/format/format';
|
|
23
|
-
import { Llm } from './resources/llm/llm';
|
|
21
|
+
import { Llm, LlmGetConfigResponse } from './resources/llm/llm';
|
|
24
22
|
import { Ocr } from './resources/ocr/ocr';
|
|
25
23
|
import { Search } from './resources/search/search';
|
|
26
|
-
import { Templates } from './resources/templates/templates';
|
|
27
24
|
import {
|
|
28
25
|
Vault,
|
|
29
26
|
VaultCreateParams,
|
|
@@ -31,6 +28,7 @@ import {
|
|
|
31
28
|
VaultIngestParams,
|
|
32
29
|
VaultIngestResponse,
|
|
33
30
|
VaultListResponse,
|
|
31
|
+
VaultRetrieveResponse,
|
|
34
32
|
VaultSearchParams,
|
|
35
33
|
VaultSearchResponse,
|
|
36
34
|
VaultUploadParams,
|
|
@@ -38,7 +36,6 @@ import {
|
|
|
38
36
|
} from './resources/vault/vault';
|
|
39
37
|
import { Voice } from './resources/voice/voice';
|
|
40
38
|
import { Webhooks } from './resources/webhooks/webhooks';
|
|
41
|
-
import { Workflows } from './resources/workflows/workflows';
|
|
42
39
|
import { type Fetch } from './internal/builtin-types';
|
|
43
40
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
44
41
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -760,9 +757,7 @@ export class Casedev {
|
|
|
760
757
|
|
|
761
758
|
static toFile = Uploads.toFile;
|
|
762
759
|
|
|
763
|
-
actions: API.Actions = new API.Actions(this);
|
|
764
760
|
compute: API.Compute = new API.Compute(this);
|
|
765
|
-
convert: API.Convert = new API.Convert(this);
|
|
766
761
|
format: API.Format = new API.Format(this);
|
|
767
762
|
llm: API.Llm = new API.Llm(this);
|
|
768
763
|
ocr: API.Ocr = new API.Ocr(this);
|
|
@@ -770,13 +765,9 @@ export class Casedev {
|
|
|
770
765
|
vault: API.Vault = new API.Vault(this);
|
|
771
766
|
voice: API.Voice = new API.Voice(this);
|
|
772
767
|
webhooks: API.Webhooks = new API.Webhooks(this);
|
|
773
|
-
templates: API.Templates = new API.Templates(this);
|
|
774
|
-
workflows: API.Workflows = new API.Workflows(this);
|
|
775
768
|
}
|
|
776
769
|
|
|
777
|
-
Casedev.Actions = Actions;
|
|
778
770
|
Casedev.Compute = Compute;
|
|
779
|
-
Casedev.Convert = Convert;
|
|
780
771
|
Casedev.Format = Format;
|
|
781
772
|
Casedev.Llm = Llm;
|
|
782
773
|
Casedev.Ocr = Ocr;
|
|
@@ -784,21 +775,15 @@ Casedev.Search = Search;
|
|
|
784
775
|
Casedev.Vault = Vault;
|
|
785
776
|
Casedev.Voice = Voice;
|
|
786
777
|
Casedev.Webhooks = Webhooks;
|
|
787
|
-
Casedev.Templates = Templates;
|
|
788
|
-
Casedev.Workflows = Workflows;
|
|
789
778
|
|
|
790
779
|
export declare namespace Casedev {
|
|
791
780
|
export type RequestOptions = Opts.RequestOptions;
|
|
792
781
|
|
|
793
|
-
export { Actions as Actions };
|
|
794
|
-
|
|
795
782
|
export { Compute as Compute };
|
|
796
783
|
|
|
797
|
-
export { Convert as Convert };
|
|
798
|
-
|
|
799
784
|
export { Format as Format };
|
|
800
785
|
|
|
801
|
-
export { Llm as Llm };
|
|
786
|
+
export { Llm as Llm, type LlmGetConfigResponse as LlmGetConfigResponse };
|
|
802
787
|
|
|
803
788
|
export { Ocr as Ocr };
|
|
804
789
|
|
|
@@ -807,6 +792,7 @@ export declare namespace Casedev {
|
|
|
807
792
|
export {
|
|
808
793
|
Vault as Vault,
|
|
809
794
|
type VaultCreateResponse as VaultCreateResponse,
|
|
795
|
+
type VaultRetrieveResponse as VaultRetrieveResponse,
|
|
810
796
|
type VaultListResponse as VaultListResponse,
|
|
811
797
|
type VaultIngestResponse as VaultIngestResponse,
|
|
812
798
|
type VaultSearchResponse as VaultSearchResponse,
|
|
@@ -820,8 +806,4 @@ export declare namespace Casedev {
|
|
|
820
806
|
export { Voice as Voice };
|
|
821
807
|
|
|
822
808
|
export { Webhooks as Webhooks };
|
|
823
|
-
|
|
824
|
-
export { Templates as Templates };
|
|
825
|
-
|
|
826
|
-
export { Workflows as Workflows };
|
|
827
809
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as V1API from './v1/v1';
|
|
5
|
-
import { V1,
|
|
5
|
+
import { V1, V1GetUsageParams, V1GetUsageResponse } from './v1/v1';
|
|
6
6
|
|
|
7
7
|
export class Compute extends APIResource {
|
|
8
8
|
v1: V1API.V1 = new V1API.V1(this._client);
|
|
@@ -13,8 +13,7 @@ Compute.V1 = V1;
|
|
|
13
13
|
export declare namespace Compute {
|
|
14
14
|
export {
|
|
15
15
|
V1 as V1,
|
|
16
|
-
type
|
|
17
|
-
type V1DeployParams as V1DeployParams,
|
|
16
|
+
type V1GetUsageResponse as V1GetUsageResponse,
|
|
18
17
|
type V1GetUsageParams as V1GetUsageParams,
|
|
19
18
|
};
|
|
20
19
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Compute } from './compute';
|
|
4
|
-
export { V1, type
|
|
4
|
+
export { V1, type V1GetUsageResponse, type V1GetUsageParams } from './v1/index';
|