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,263 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
export declare class V1 extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new visual workflow with nodes, edges, and trigger configuration.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const v1 = await client.workflows.v1.create({
|
|
11
|
-
* name: 'Document Processor',
|
|
12
|
-
* });
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
create(body: V1CreateParams, options?: RequestOptions): APIPromise<V1CreateResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Get a specific workflow by ID with full configuration.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const v1 = await client.workflows.v1.retrieve('id');
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<V1RetrieveResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Update an existing workflow's configuration.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const v1 = await client.workflows.v1.update('id');
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
update(id: string, body: V1UpdateParams, options?: RequestOptions): APIPromise<V1UpdateResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* List all workflows for the authenticated organization.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const v1s = await client.workflows.v1.list();
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
list(query?: V1ListParams | null | undefined, options?: RequestOptions): APIPromise<V1ListResponse>;
|
|
43
|
-
/**
|
|
44
|
-
* Delete a workflow and all associated data.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const v1 = await client.workflows.v1.delete('id');
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
delete(id: string, options?: RequestOptions): APIPromise<V1DeleteResponse>;
|
|
52
|
-
/**
|
|
53
|
-
* Deploy a workflow to Modal compute. Returns a webhook URL and secret for
|
|
54
|
-
* triggering the workflow.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* const response = await client.workflows.v1.deploy('id');
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
deploy(id: string, options?: RequestOptions): APIPromise<V1DeployResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* Execute a workflow for testing. This runs the workflow synchronously without
|
|
64
|
-
* deployment.
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```ts
|
|
68
|
-
* const response = await client.workflows.v1.execute('id');
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
execute(id: string, params?: V1ExecuteParams | null | undefined, options?: RequestOptions): APIPromise<V1ExecuteResponse>;
|
|
72
|
-
/**
|
|
73
|
-
* List all executions for a specific workflow.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* const response = await client.workflows.v1.listExecutions(
|
|
78
|
-
* 'id',
|
|
79
|
-
* );
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
listExecutions(id: string, query?: V1ListExecutionsParams | null | undefined, options?: RequestOptions): APIPromise<V1ListExecutionsResponse>;
|
|
83
|
-
/**
|
|
84
|
-
* Get detailed information about a workflow execution.
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```ts
|
|
88
|
-
* const response =
|
|
89
|
-
* await client.workflows.v1.retrieveExecution('id');
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
retrieveExecution(id: string, options?: RequestOptions): APIPromise<V1RetrieveExecutionResponse>;
|
|
93
|
-
/**
|
|
94
|
-
* Stop a deployed workflow and release its webhook URL.
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```ts
|
|
98
|
-
* const response = await client.workflows.v1.undeploy('id');
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
undeploy(id: string, options?: RequestOptions): APIPromise<V1UndeployResponse>;
|
|
102
|
-
}
|
|
103
|
-
export interface V1CreateResponse {
|
|
104
|
-
id?: string;
|
|
105
|
-
createdAt?: string;
|
|
106
|
-
description?: string;
|
|
107
|
-
edges?: Array<unknown>;
|
|
108
|
-
name?: string;
|
|
109
|
-
nodes?: Array<unknown>;
|
|
110
|
-
triggerType?: string;
|
|
111
|
-
updatedAt?: string;
|
|
112
|
-
visibility?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface V1RetrieveResponse {
|
|
115
|
-
id?: string;
|
|
116
|
-
createdAt?: string;
|
|
117
|
-
deployedAt?: string;
|
|
118
|
-
deploymentUrl?: string;
|
|
119
|
-
description?: string;
|
|
120
|
-
edges?: Array<unknown>;
|
|
121
|
-
name?: string;
|
|
122
|
-
nodes?: Array<unknown>;
|
|
123
|
-
triggerConfig?: unknown;
|
|
124
|
-
triggerType?: string;
|
|
125
|
-
updatedAt?: string;
|
|
126
|
-
visibility?: string;
|
|
127
|
-
}
|
|
128
|
-
export interface V1UpdateResponse {
|
|
129
|
-
id?: string;
|
|
130
|
-
name?: string;
|
|
131
|
-
updatedAt?: string;
|
|
132
|
-
}
|
|
133
|
-
export interface V1ListResponse {
|
|
134
|
-
limit?: number;
|
|
135
|
-
offset?: number;
|
|
136
|
-
total?: number;
|
|
137
|
-
workflows?: Array<V1ListResponse.Workflow>;
|
|
138
|
-
}
|
|
139
|
-
export declare namespace V1ListResponse {
|
|
140
|
-
interface Workflow {
|
|
141
|
-
id?: string;
|
|
142
|
-
createdAt?: string;
|
|
143
|
-
deployedAt?: string;
|
|
144
|
-
description?: string;
|
|
145
|
-
name?: string;
|
|
146
|
-
triggerType?: string;
|
|
147
|
-
updatedAt?: string;
|
|
148
|
-
visibility?: string;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
export interface V1DeleteResponse {
|
|
152
|
-
message?: string;
|
|
153
|
-
success?: boolean;
|
|
154
|
-
}
|
|
155
|
-
export interface V1DeployResponse {
|
|
156
|
-
message?: string;
|
|
157
|
-
success?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Only returned once - save this!
|
|
160
|
-
*/
|
|
161
|
-
webhookSecret?: string;
|
|
162
|
-
webhookUrl?: string;
|
|
163
|
-
}
|
|
164
|
-
export interface V1ExecuteResponse {
|
|
165
|
-
duration?: number;
|
|
166
|
-
error?: string;
|
|
167
|
-
executionId?: string;
|
|
168
|
-
outputs?: unknown;
|
|
169
|
-
status?: 'completed' | 'failed';
|
|
170
|
-
}
|
|
171
|
-
export interface V1ListExecutionsResponse {
|
|
172
|
-
executions?: Array<V1ListExecutionsResponse.Execution>;
|
|
173
|
-
}
|
|
174
|
-
export declare namespace V1ListExecutionsResponse {
|
|
175
|
-
interface Execution {
|
|
176
|
-
id?: string;
|
|
177
|
-
completedAt?: string;
|
|
178
|
-
durationMs?: number;
|
|
179
|
-
startedAt?: string;
|
|
180
|
-
status?: string;
|
|
181
|
-
triggerType?: string;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
export interface V1RetrieveExecutionResponse {
|
|
185
|
-
id?: string;
|
|
186
|
-
completedAt?: string;
|
|
187
|
-
durationMs?: number;
|
|
188
|
-
error?: string;
|
|
189
|
-
input?: unknown;
|
|
190
|
-
output?: unknown;
|
|
191
|
-
startedAt?: string;
|
|
192
|
-
status?: string;
|
|
193
|
-
triggerType?: string;
|
|
194
|
-
workflowId?: string;
|
|
195
|
-
}
|
|
196
|
-
export interface V1UndeployResponse {
|
|
197
|
-
message?: string;
|
|
198
|
-
success?: boolean;
|
|
199
|
-
}
|
|
200
|
-
export interface V1CreateParams {
|
|
201
|
-
/**
|
|
202
|
-
* Workflow name
|
|
203
|
-
*/
|
|
204
|
-
name: string;
|
|
205
|
-
/**
|
|
206
|
-
* Workflow description
|
|
207
|
-
*/
|
|
208
|
-
description?: string;
|
|
209
|
-
/**
|
|
210
|
-
* React Flow edges
|
|
211
|
-
*/
|
|
212
|
-
edges?: Array<unknown>;
|
|
213
|
-
/**
|
|
214
|
-
* React Flow nodes
|
|
215
|
-
*/
|
|
216
|
-
nodes?: Array<unknown>;
|
|
217
|
-
/**
|
|
218
|
-
* Trigger configuration
|
|
219
|
-
*/
|
|
220
|
-
triggerConfig?: unknown;
|
|
221
|
-
triggerType?: 'manual' | 'webhook' | 'schedule' | 'vault_upload';
|
|
222
|
-
/**
|
|
223
|
-
* Workflow visibility
|
|
224
|
-
*/
|
|
225
|
-
visibility?: 'private' | 'org' | 'public';
|
|
226
|
-
}
|
|
227
|
-
export interface V1UpdateParams {
|
|
228
|
-
description?: string;
|
|
229
|
-
edges?: Array<unknown>;
|
|
230
|
-
name?: string;
|
|
231
|
-
nodes?: Array<unknown>;
|
|
232
|
-
triggerConfig?: unknown;
|
|
233
|
-
triggerType?: 'manual' | 'webhook' | 'schedule' | 'vault_upload';
|
|
234
|
-
visibility?: 'private' | 'org' | 'public';
|
|
235
|
-
}
|
|
236
|
-
export interface V1ListParams {
|
|
237
|
-
/**
|
|
238
|
-
* Maximum number of results
|
|
239
|
-
*/
|
|
240
|
-
limit?: number;
|
|
241
|
-
/**
|
|
242
|
-
* Offset for pagination
|
|
243
|
-
*/
|
|
244
|
-
offset?: number;
|
|
245
|
-
/**
|
|
246
|
-
* Filter by visibility
|
|
247
|
-
*/
|
|
248
|
-
visibility?: 'private' | 'org' | 'public';
|
|
249
|
-
}
|
|
250
|
-
export interface V1ExecuteParams {
|
|
251
|
-
/**
|
|
252
|
-
* Input data to pass to the workflow trigger
|
|
253
|
-
*/
|
|
254
|
-
body?: unknown;
|
|
255
|
-
}
|
|
256
|
-
export interface V1ListExecutionsParams {
|
|
257
|
-
limit?: number;
|
|
258
|
-
status?: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
259
|
-
}
|
|
260
|
-
export declare namespace V1 {
|
|
261
|
-
export { type V1CreateResponse as V1CreateResponse, type V1RetrieveResponse as V1RetrieveResponse, type V1UpdateResponse as V1UpdateResponse, type V1ListResponse as V1ListResponse, type V1DeleteResponse as V1DeleteResponse, type V1DeployResponse as V1DeployResponse, type V1ExecuteResponse as V1ExecuteResponse, type V1ListExecutionsResponse as V1ListExecutionsResponse, type V1RetrieveExecutionResponse as V1RetrieveExecutionResponse, type V1UndeployResponse as V1UndeployResponse, type V1CreateParams as V1CreateParams, type V1UpdateParams as V1UpdateParams, type V1ListParams as V1ListParams, type V1ExecuteParams as V1ExecuteParams, type V1ListExecutionsParams as V1ListExecutionsParams, };
|
|
262
|
-
}
|
|
263
|
-
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/workflows/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIpF;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI9E;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAIhG;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,GAAE,YAAY,GAAG,IAAI,GAAG,SAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAIvG;;;;;;;OAOG;IACH,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B;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,WAAW,CAAC;CACvE;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
-
export declare class V1 extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a new visual workflow with nodes, edges, and trigger configuration.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const v1 = await client.workflows.v1.create({
|
|
11
|
-
* name: 'Document Processor',
|
|
12
|
-
* });
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
create(body: V1CreateParams, options?: RequestOptions): APIPromise<V1CreateResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Get a specific workflow by ID with full configuration.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const v1 = await client.workflows.v1.retrieve('id');
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<V1RetrieveResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Update an existing workflow's configuration.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const v1 = await client.workflows.v1.update('id');
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
update(id: string, body: V1UpdateParams, options?: RequestOptions): APIPromise<V1UpdateResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* List all workflows for the authenticated organization.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```ts
|
|
39
|
-
* const v1s = await client.workflows.v1.list();
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
list(query?: V1ListParams | null | undefined, options?: RequestOptions): APIPromise<V1ListResponse>;
|
|
43
|
-
/**
|
|
44
|
-
* Delete a workflow and all associated data.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const v1 = await client.workflows.v1.delete('id');
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
delete(id: string, options?: RequestOptions): APIPromise<V1DeleteResponse>;
|
|
52
|
-
/**
|
|
53
|
-
* Deploy a workflow to Modal compute. Returns a webhook URL and secret for
|
|
54
|
-
* triggering the workflow.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* const response = await client.workflows.v1.deploy('id');
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
deploy(id: string, options?: RequestOptions): APIPromise<V1DeployResponse>;
|
|
62
|
-
/**
|
|
63
|
-
* Execute a workflow for testing. This runs the workflow synchronously without
|
|
64
|
-
* deployment.
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```ts
|
|
68
|
-
* const response = await client.workflows.v1.execute('id');
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
execute(id: string, params?: V1ExecuteParams | null | undefined, options?: RequestOptions): APIPromise<V1ExecuteResponse>;
|
|
72
|
-
/**
|
|
73
|
-
* List all executions for a specific workflow.
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* const response = await client.workflows.v1.listExecutions(
|
|
78
|
-
* 'id',
|
|
79
|
-
* );
|
|
80
|
-
* ```
|
|
81
|
-
*/
|
|
82
|
-
listExecutions(id: string, query?: V1ListExecutionsParams | null | undefined, options?: RequestOptions): APIPromise<V1ListExecutionsResponse>;
|
|
83
|
-
/**
|
|
84
|
-
* Get detailed information about a workflow execution.
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* ```ts
|
|
88
|
-
* const response =
|
|
89
|
-
* await client.workflows.v1.retrieveExecution('id');
|
|
90
|
-
* ```
|
|
91
|
-
*/
|
|
92
|
-
retrieveExecution(id: string, options?: RequestOptions): APIPromise<V1RetrieveExecutionResponse>;
|
|
93
|
-
/**
|
|
94
|
-
* Stop a deployed workflow and release its webhook URL.
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```ts
|
|
98
|
-
* const response = await client.workflows.v1.undeploy('id');
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
undeploy(id: string, options?: RequestOptions): APIPromise<V1UndeployResponse>;
|
|
102
|
-
}
|
|
103
|
-
export interface V1CreateResponse {
|
|
104
|
-
id?: string;
|
|
105
|
-
createdAt?: string;
|
|
106
|
-
description?: string;
|
|
107
|
-
edges?: Array<unknown>;
|
|
108
|
-
name?: string;
|
|
109
|
-
nodes?: Array<unknown>;
|
|
110
|
-
triggerType?: string;
|
|
111
|
-
updatedAt?: string;
|
|
112
|
-
visibility?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface V1RetrieveResponse {
|
|
115
|
-
id?: string;
|
|
116
|
-
createdAt?: string;
|
|
117
|
-
deployedAt?: string;
|
|
118
|
-
deploymentUrl?: string;
|
|
119
|
-
description?: string;
|
|
120
|
-
edges?: Array<unknown>;
|
|
121
|
-
name?: string;
|
|
122
|
-
nodes?: Array<unknown>;
|
|
123
|
-
triggerConfig?: unknown;
|
|
124
|
-
triggerType?: string;
|
|
125
|
-
updatedAt?: string;
|
|
126
|
-
visibility?: string;
|
|
127
|
-
}
|
|
128
|
-
export interface V1UpdateResponse {
|
|
129
|
-
id?: string;
|
|
130
|
-
name?: string;
|
|
131
|
-
updatedAt?: string;
|
|
132
|
-
}
|
|
133
|
-
export interface V1ListResponse {
|
|
134
|
-
limit?: number;
|
|
135
|
-
offset?: number;
|
|
136
|
-
total?: number;
|
|
137
|
-
workflows?: Array<V1ListResponse.Workflow>;
|
|
138
|
-
}
|
|
139
|
-
export declare namespace V1ListResponse {
|
|
140
|
-
interface Workflow {
|
|
141
|
-
id?: string;
|
|
142
|
-
createdAt?: string;
|
|
143
|
-
deployedAt?: string;
|
|
144
|
-
description?: string;
|
|
145
|
-
name?: string;
|
|
146
|
-
triggerType?: string;
|
|
147
|
-
updatedAt?: string;
|
|
148
|
-
visibility?: string;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
export interface V1DeleteResponse {
|
|
152
|
-
message?: string;
|
|
153
|
-
success?: boolean;
|
|
154
|
-
}
|
|
155
|
-
export interface V1DeployResponse {
|
|
156
|
-
message?: string;
|
|
157
|
-
success?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Only returned once - save this!
|
|
160
|
-
*/
|
|
161
|
-
webhookSecret?: string;
|
|
162
|
-
webhookUrl?: string;
|
|
163
|
-
}
|
|
164
|
-
export interface V1ExecuteResponse {
|
|
165
|
-
duration?: number;
|
|
166
|
-
error?: string;
|
|
167
|
-
executionId?: string;
|
|
168
|
-
outputs?: unknown;
|
|
169
|
-
status?: 'completed' | 'failed';
|
|
170
|
-
}
|
|
171
|
-
export interface V1ListExecutionsResponse {
|
|
172
|
-
executions?: Array<V1ListExecutionsResponse.Execution>;
|
|
173
|
-
}
|
|
174
|
-
export declare namespace V1ListExecutionsResponse {
|
|
175
|
-
interface Execution {
|
|
176
|
-
id?: string;
|
|
177
|
-
completedAt?: string;
|
|
178
|
-
durationMs?: number;
|
|
179
|
-
startedAt?: string;
|
|
180
|
-
status?: string;
|
|
181
|
-
triggerType?: string;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
export interface V1RetrieveExecutionResponse {
|
|
185
|
-
id?: string;
|
|
186
|
-
completedAt?: string;
|
|
187
|
-
durationMs?: number;
|
|
188
|
-
error?: string;
|
|
189
|
-
input?: unknown;
|
|
190
|
-
output?: unknown;
|
|
191
|
-
startedAt?: string;
|
|
192
|
-
status?: string;
|
|
193
|
-
triggerType?: string;
|
|
194
|
-
workflowId?: string;
|
|
195
|
-
}
|
|
196
|
-
export interface V1UndeployResponse {
|
|
197
|
-
message?: string;
|
|
198
|
-
success?: boolean;
|
|
199
|
-
}
|
|
200
|
-
export interface V1CreateParams {
|
|
201
|
-
/**
|
|
202
|
-
* Workflow name
|
|
203
|
-
*/
|
|
204
|
-
name: string;
|
|
205
|
-
/**
|
|
206
|
-
* Workflow description
|
|
207
|
-
*/
|
|
208
|
-
description?: string;
|
|
209
|
-
/**
|
|
210
|
-
* React Flow edges
|
|
211
|
-
*/
|
|
212
|
-
edges?: Array<unknown>;
|
|
213
|
-
/**
|
|
214
|
-
* React Flow nodes
|
|
215
|
-
*/
|
|
216
|
-
nodes?: Array<unknown>;
|
|
217
|
-
/**
|
|
218
|
-
* Trigger configuration
|
|
219
|
-
*/
|
|
220
|
-
triggerConfig?: unknown;
|
|
221
|
-
triggerType?: 'manual' | 'webhook' | 'schedule' | 'vault_upload';
|
|
222
|
-
/**
|
|
223
|
-
* Workflow visibility
|
|
224
|
-
*/
|
|
225
|
-
visibility?: 'private' | 'org' | 'public';
|
|
226
|
-
}
|
|
227
|
-
export interface V1UpdateParams {
|
|
228
|
-
description?: string;
|
|
229
|
-
edges?: Array<unknown>;
|
|
230
|
-
name?: string;
|
|
231
|
-
nodes?: Array<unknown>;
|
|
232
|
-
triggerConfig?: unknown;
|
|
233
|
-
triggerType?: 'manual' | 'webhook' | 'schedule' | 'vault_upload';
|
|
234
|
-
visibility?: 'private' | 'org' | 'public';
|
|
235
|
-
}
|
|
236
|
-
export interface V1ListParams {
|
|
237
|
-
/**
|
|
238
|
-
* Maximum number of results
|
|
239
|
-
*/
|
|
240
|
-
limit?: number;
|
|
241
|
-
/**
|
|
242
|
-
* Offset for pagination
|
|
243
|
-
*/
|
|
244
|
-
offset?: number;
|
|
245
|
-
/**
|
|
246
|
-
* Filter by visibility
|
|
247
|
-
*/
|
|
248
|
-
visibility?: 'private' | 'org' | 'public';
|
|
249
|
-
}
|
|
250
|
-
export interface V1ExecuteParams {
|
|
251
|
-
/**
|
|
252
|
-
* Input data to pass to the workflow trigger
|
|
253
|
-
*/
|
|
254
|
-
body?: unknown;
|
|
255
|
-
}
|
|
256
|
-
export interface V1ListExecutionsParams {
|
|
257
|
-
limit?: number;
|
|
258
|
-
status?: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
259
|
-
}
|
|
260
|
-
export declare namespace V1 {
|
|
261
|
-
export { type V1CreateResponse as V1CreateResponse, type V1RetrieveResponse as V1RetrieveResponse, type V1UpdateResponse as V1UpdateResponse, type V1ListResponse as V1ListResponse, type V1DeleteResponse as V1DeleteResponse, type V1DeployResponse as V1DeployResponse, type V1ExecuteResponse as V1ExecuteResponse, type V1ListExecutionsResponse as V1ListExecutionsResponse, type V1RetrieveExecutionResponse as V1RetrieveExecutionResponse, type V1UndeployResponse as V1UndeployResponse, type V1CreateParams as V1CreateParams, type V1UpdateParams as V1UpdateParams, type V1ListParams as V1ListParams, type V1ExecuteParams as V1ExecuteParams, type V1ListExecutionsParams as V1ListExecutionsParams, };
|
|
262
|
-
}
|
|
263
|
-
//# sour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KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.V1 = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
-
class V1 extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a new visual workflow with nodes, edges, and trigger configuration.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const v1 = await client.workflows.v1.create({
|
|
14
|
-
* name: 'Document Processor',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
create(body, options) {
|
|
19
|
-
return this._client.post('/workflows/v1', { body, ...options });
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Get a specific workflow by ID with full configuration.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const v1 = await client.workflows.v1.retrieve('id');
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
retrieve(id, options) {
|
|
30
|
-
return this._client.get((0, path_1.path) `/workflows/v1/${id}`, options);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Update an existing workflow's configuration.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* const v1 = await client.workflows.v1.update('id');
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
update(id, body, options) {
|
|
41
|
-
return this._client.patch((0, path_1.path) `/workflows/v1/${id}`, { body, ...options });
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* List all workflows for the authenticated organization.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const v1s = await client.workflows.v1.list();
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
list(query = {}, options) {
|
|
52
|
-
return this._client.get('/workflows/v1', { query, ...options });
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Delete a workflow and all associated data.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const v1 = await client.workflows.v1.delete('id');
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
delete(id, options) {
|
|
63
|
-
return this._client.delete((0, path_1.path) `/workflows/v1/${id}`, options);
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Deploy a workflow to Modal compute. Returns a webhook URL and secret for
|
|
67
|
-
* triggering the workflow.
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```ts
|
|
71
|
-
* const response = await client.workflows.v1.deploy('id');
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
deploy(id, options) {
|
|
75
|
-
return this._client.post((0, path_1.path) `/workflows/v1/${id}/deploy`, options);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Execute a workflow for testing. This runs the workflow synchronously without
|
|
79
|
-
* deployment.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```ts
|
|
83
|
-
* const response = await client.workflows.v1.execute('id');
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
execute(id, params = undefined, options) {
|
|
87
|
-
const { body } = params ?? {};
|
|
88
|
-
return this._client.post((0, path_1.path) `/workflows/v1/${id}/execute`, { body: body, ...options });
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* List all executions for a specific workflow.
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```ts
|
|
95
|
-
* const response = await client.workflows.v1.listExecutions(
|
|
96
|
-
* 'id',
|
|
97
|
-
* );
|
|
98
|
-
* ```
|
|
99
|
-
*/
|
|
100
|
-
listExecutions(id, query = {}, options) {
|
|
101
|
-
return this._client.get((0, path_1.path) `/workflows/v1/${id}/executions`, { query, ...options });
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Get detailed information about a workflow execution.
|
|
105
|
-
*
|
|
106
|
-
* @example
|
|
107
|
-
* ```ts
|
|
108
|
-
* const response =
|
|
109
|
-
* await client.workflows.v1.retrieveExecution('id');
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
retrieveExecution(id, options) {
|
|
113
|
-
return this._client.get((0, path_1.path) `/workflows/v1/executions/${id}`, options);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Stop a deployed workflow and release its webhook URL.
|
|
117
|
-
*
|
|
118
|
-
* @example
|
|
119
|
-
* ```ts
|
|
120
|
-
* const response = await client.workflows.v1.undeploy('id');
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
undeploy(id, options) {
|
|
124
|
-
return this._client.delete((0, path_1.path) `/workflows/v1/${id}/deploy`, options);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
exports.V1 = V1;
|
|
128
|
-
//# sourceMappingURL=v1.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/workflows/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAoB,EAAE,OAAwB;QACnD,OAAO,I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