@orq-ai/node 3.1.0-rc.7 → 3.1.1
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/README.md +31 -38
- package/docs/sdks/deployments/README.md +25 -138
- package/docs/sdks/files/README.md +2 -174
- package/docs/sdks/orq/README.md +1 -1
- package/docs/sdks/prompts/README.md +154 -79
- package/docs/sdks/promptsnippets/README.md +488 -0
- package/funcs/deploymentsInvoke.d.ts +1 -7
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +10 -11
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/deploymentsStream.d.ts +16 -0
- package/funcs/deploymentsStream.d.ts.map +1 -0
- package/funcs/{deploymentsGetLogs.js → deploymentsStream.js} +30 -18
- package/funcs/deploymentsStream.js.map +1 -0
- package/funcs/{promptSnippetsFindOne.d.ts → promptSnippetsCreate.d.ts} +3 -3
- package/funcs/promptSnippetsCreate.d.ts.map +1 -0
- package/funcs/{promptsGetAll.js → promptSnippetsCreate.js} +8 -8
- package/funcs/promptSnippetsCreate.js.map +1 -0
- package/funcs/{promptsGetOne.d.ts → promptSnippetsDelete.d.ts} +3 -3
- package/funcs/{promptsCreateVersion.d.ts.map → promptSnippetsDelete.d.ts.map} +1 -1
- package/funcs/{promptsGetOne.js → promptSnippetsDelete.js} +8 -8
- package/funcs/promptSnippetsDelete.js.map +1 -0
- package/funcs/{promptsGetAll.d.ts → promptSnippetsGet.d.ts} +3 -3
- package/funcs/promptSnippetsGet.d.ts.map +1 -0
- package/funcs/{promptSnippetsFindOne.js → promptSnippetsGet.js} +6 -6
- package/funcs/promptSnippetsGet.js.map +1 -0
- package/funcs/{filesUpdate.d.ts → promptSnippetsGetByKey.d.ts} +3 -3
- package/funcs/promptSnippetsGetByKey.d.ts.map +1 -0
- package/funcs/promptSnippetsGetByKey.js +109 -0
- package/funcs/promptSnippetsGetByKey.js.map +1 -0
- package/funcs/{promptsCreateVersion.d.ts → promptSnippetsList.d.ts} +3 -3
- package/funcs/promptSnippetsList.d.ts.map +1 -0
- package/funcs/{promptTemplatesGetAll.js → promptSnippetsList.js} +13 -13
- package/funcs/promptSnippetsList.js.map +1 -0
- package/funcs/promptSnippetsUpdate.d.ts +13 -0
- package/funcs/promptSnippetsUpdate.d.ts.map +1 -0
- package/funcs/{promptsCreateVersion.js → promptSnippetsUpdate.js} +14 -10
- package/funcs/promptSnippetsUpdate.js.map +1 -0
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.js +2 -2
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.js +1 -1
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetVersion.d.ts +16 -0
- package/funcs/promptsGetVersion.d.ts.map +1 -0
- package/funcs/{filesUpdate.js → promptsGetVersion.js} +22 -12
- package/funcs/promptsGetVersion.js.map +1 -0
- package/funcs/promptsList.d.ts +15 -0
- package/funcs/promptsList.d.ts.map +1 -0
- package/funcs/promptsList.js +112 -0
- package/funcs/promptsList.js.map +1 -0
- package/funcs/promptsListVersions.d.ts +15 -0
- package/funcs/promptsListVersions.d.ts.map +1 -0
- package/funcs/{deploymentsInvalidate.js → promptsListVersions.js} +18 -13
- package/funcs/promptsListVersions.js.map +1 -0
- package/funcs/{deploymentsInvalidate.d.ts → promptsRetrieve.d.ts} +4 -4
- package/funcs/promptsRetrieve.d.ts.map +1 -0
- package/funcs/{promptsDuplicate.js → promptsRetrieve.js} +12 -10
- package/funcs/promptsRetrieve.js.map +1 -0
- package/funcs/promptsUpdate.js +1 -1
- package/funcs/promptsUpdate.js.map +1 -1
- package/hooks/global.d.ts +5 -0
- package/hooks/global.d.ts.map +1 -0
- package/hooks/global.js +41 -0
- package/hooks/global.js.map +1 -0
- package/hooks/registration.d.ts.map +1 -1
- package/hooks/registration.js +2 -1
- package/hooks/registration.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +11 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/env.d.ts +13 -0
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +17 -0
- package/lib/env.js.map +1 -1
- package/lib/retries.js +0 -1
- package/lib/retries.js.map +1 -1
- package/lib/sdks.js +1 -1
- package/lib/sdks.js.map +1 -1
- package/models/components/deployments.d.ts +0 -5
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +0 -2
- package/models/components/deployments.js.map +1 -1
- package/models/errors/getpromptversion.d.ts +36 -0
- package/models/errors/getpromptversion.d.ts.map +1 -0
- package/models/errors/getpromptversion.js +79 -0
- package/models/errors/getpromptversion.js.map +1 -0
- package/models/errors/index.d.ts +2 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/updatepromptsnippet.d.ts +36 -0
- package/models/errors/updatepromptsnippet.d.ts.map +1 -0
- package/models/errors/updatepromptsnippet.js +79 -0
- package/models/errors/updatepromptsnippet.js.map +1 -0
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createprompt.d.ts +690 -381
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +638 -482
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createpromptsnippet.d.ts +3567 -0
- package/models/operations/createpromptsnippet.d.ts.map +1 -0
- package/models/operations/createpromptsnippet.js +3056 -0
- package/models/operations/createpromptsnippet.js.map +1 -0
- package/models/operations/deleteprompt.d.ts +1 -1
- package/models/operations/deletepromptsnippet.d.ts +32 -0
- package/models/operations/deletepromptsnippet.d.ts.map +1 -0
- package/models/operations/{duplicateprompt.js → deletepromptsnippet.js} +17 -17
- package/models/operations/deletepromptsnippet.js.map +1 -0
- package/models/operations/deploymentgetconfig.d.ts +39 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +29 -4
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +17 -683
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +21 -614
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +39 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +28 -3
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +1622 -0
- package/models/operations/deploymentstream.d.ts.map +1 -0
- package/models/operations/deploymentstream.js +1571 -0
- package/models/operations/deploymentstream.js.map +1 -0
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/findonebykeypromptsnippet.d.ts +2448 -0
- package/models/operations/findonebykeypromptsnippet.d.ts.map +1 -0
- package/models/operations/findonebykeypromptsnippet.js +2133 -0
- package/models/operations/findonebykeypromptsnippet.js.map +1 -0
- package/models/operations/findonepromptsnippet.d.ts +926 -4792
- package/models/operations/findonepromptsnippet.d.ts.map +1 -1
- package/models/operations/findonepromptsnippet.js +971 -4750
- package/models/operations/findonepromptsnippet.js.map +1 -1
- package/models/operations/getallprompts.d.ts +558 -9970
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +554 -8812
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getallpromptsnippets.d.ts +2512 -0
- package/models/operations/getallpromptsnippets.d.ts.map +1 -0
- package/models/operations/getallpromptsnippets.js +2195 -0
- package/models/operations/getallpromptsnippets.js.map +1 -0
- package/models/operations/getoneprompt.d.ts +1203 -1
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1011 -1
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1228 -0
- package/models/operations/getpromptversion.d.ts.map +1 -0
- package/models/operations/getpromptversion.js +1080 -0
- package/models/operations/getpromptversion.js.map +1 -0
- package/models/operations/index.d.ts +8 -7
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +8 -7
- package/models/operations/index.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +1286 -0
- package/models/operations/listpromptversions.d.ts.map +1 -0
- package/models/operations/listpromptversions.js +1142 -0
- package/models/operations/listpromptversions.js.map +1 -0
- package/models/operations/updateprompt.d.ts +1101 -6001
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1115 -5739
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatepromptsnippet.d.ts +3595 -0
- package/models/operations/updatepromptsnippet.d.ts.map +1 -0
- package/models/operations/updatepromptsnippet.js +3116 -0
- package/models/operations/updatepromptsnippet.js.map +1 -0
- package/package.json +7 -9
- package/packages/orq-rc/FUNCTIONS.md +106 -0
- package/packages/orq-rc/README.md +559 -0
- package/packages/orq-rc/RUNTIMES.md +48 -0
- package/{docs/sdks/snippets → packages/orq-rc/docs/sdks/contacts}/README.md +12 -12
- package/packages/orq-rc/docs/sdks/deployments/README.md +316 -0
- package/packages/orq-rc/docs/sdks/feedback/README.md +92 -0
- package/packages/orq-rc/docs/sdks/files/README.md +305 -0
- package/packages/orq-rc/docs/sdks/metrics/README.md +86 -0
- package/packages/orq-rc/docs/sdks/orq/README.md +10 -0
- package/packages/orq-rc/docs/sdks/prompts/README.md +608 -0
- package/packages/orq-rc/docs/sdks/promptsnippets/README.md +534 -0
- package/{docs/sdks/templates → packages/orq-rc/docs/sdks/remoteconfig}/README.md +10 -10
- package/packages/orq-rc/jsr.json +28 -0
- package/packages/orq-rc/package-lock.json +1861 -0
- package/packages/orq-rc/package.json +31 -0
- package/packages/orq-rc/src/core.ts +13 -0
- package/packages/orq-rc/src/funcs/contactsCreate.ts +126 -0
- package/{src/funcs/deploymentsGetLogs.ts → packages/orq-rc/src/funcs/deploymentsGetConfig.ts} +20 -19
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +142 -0
- package/packages/orq-rc/src/funcs/deploymentsList.ts +141 -0
- package/{src/funcs/promptsCreateVersion.ts → packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts} +14 -11
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +150 -0
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +126 -0
- package/packages/orq-rc/src/funcs/filesDelete.ts +130 -0
- package/{src/funcs/filesUpdate.ts → packages/orq-rc/src/funcs/filesGet.ts} +11 -12
- package/packages/orq-rc/src/funcs/filesList.ts +131 -0
- package/{src/funcs/filesBulkUpload.ts → packages/orq-rc/src/funcs/filesUpload.ts} +32 -12
- package/packages/orq-rc/src/funcs/promptSnippetsCreate.ts +128 -0
- package/{src/funcs/promptsDuplicate.ts → packages/orq-rc/src/funcs/promptSnippetsDelete.ts} +8 -7
- package/{src/funcs/promptSnippetsFindOne.ts → packages/orq-rc/src/funcs/promptSnippetsGet.ts} +4 -4
- package/packages/orq-rc/src/funcs/promptSnippetsGetByKey.ts +132 -0
- package/{src/funcs/promptTemplatesGetAll.ts → packages/orq-rc/src/funcs/promptSnippetsList.ts} +16 -16
- package/packages/orq-rc/src/funcs/promptSnippetsUpdate.ts +139 -0
- package/{src/funcs/promptsGetAll.ts → packages/orq-rc/src/funcs/promptsCreate.ts} +9 -11
- package/{src/funcs/promptsGetOne.ts → packages/orq-rc/src/funcs/promptsDelete.ts} +7 -7
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +146 -0
- package/packages/orq-rc/src/funcs/promptsList.ts +133 -0
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +139 -0
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +132 -0
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +138 -0
- package/packages/orq-rc/src/funcs/remoteconfigGetConfig.ts +127 -0
- package/packages/orq-rc/src/hooks/global.ts +44 -0
- package/packages/orq-rc/src/hooks/hooks.ts +132 -0
- package/packages/orq-rc/src/hooks/index.ts +6 -0
- package/packages/orq-rc/src/hooks/registration.ts +15 -0
- package/packages/orq-rc/src/hooks/types.ts +109 -0
- package/packages/orq-rc/src/index.ts +7 -0
- package/packages/orq-rc/src/lib/base64.ts +37 -0
- package/packages/orq-rc/src/lib/config.ts +70 -0
- package/packages/orq-rc/src/lib/dlv.ts +53 -0
- package/packages/orq-rc/src/lib/encodings.ts +483 -0
- package/packages/orq-rc/src/lib/env.ts +73 -0
- package/packages/orq-rc/src/lib/event-streams.ts +264 -0
- package/packages/orq-rc/src/lib/files.ts +40 -0
- package/packages/orq-rc/src/lib/http.ts +323 -0
- package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
- package/packages/orq-rc/src/lib/logger.ts +9 -0
- package/packages/orq-rc/src/lib/matchers.ts +325 -0
- package/packages/orq-rc/src/lib/primitives.ts +136 -0
- package/packages/orq-rc/src/lib/retries.ts +218 -0
- package/packages/orq-rc/src/lib/schemas.ts +91 -0
- package/packages/orq-rc/src/lib/sdks.ts +400 -0
- package/packages/orq-rc/src/lib/security.ts +254 -0
- package/packages/orq-rc/src/lib/url.ts +33 -0
- package/packages/orq-rc/src/models/components/deployments.ts +1666 -0
- package/packages/orq-rc/src/models/components/index.ts +6 -0
- package/packages/orq-rc/src/models/components/security.ts +71 -0
- package/packages/orq-rc/src/models/errors/apierror.ts +27 -0
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +71 -0
- package/packages/orq-rc/src/models/errors/honoapierror.ts +82 -0
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
- package/packages/orq-rc/src/models/errors/index.ts +11 -0
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +97 -0
- package/packages/orq-rc/src/models/errors/updateprompt.ts +71 -0
- package/packages/orq-rc/src/models/errors/updatepromptsnippet.ts +71 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +256 -0
- package/packages/orq-rc/src/models/operations/createfeedback.ts +286 -0
- package/packages/orq-rc/src/models/operations/createprompt.ts +3819 -0
- package/packages/orq-rc/src/models/operations/createpromptsnippet.ts +6239 -0
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +69 -0
- package/packages/orq-rc/src/models/operations/deletepromptsnippet.ts +69 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +1790 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +3527 -0
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1144 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +2148 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +3062 -0
- package/packages/orq-rc/src/models/operations/filedelete.ts +78 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +222 -0
- package/packages/orq-rc/src/models/operations/filelist.ts +321 -0
- package/packages/orq-rc/src/models/operations/fileupload.ts +322 -0
- package/packages/orq-rc/src/models/operations/findonebykeypromptsnippet.ts +4483 -0
- package/packages/orq-rc/src/models/operations/findonepromptsnippet.ts +4343 -0
- package/packages/orq-rc/src/models/operations/getallprompts.ts +2116 -0
- package/packages/orq-rc/src/models/operations/getallpromptsnippets.ts +4472 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1982 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +2012 -0
- package/packages/orq-rc/src/models/operations/index.ts +29 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +2146 -0
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +190 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +3917 -0
- package/packages/orq-rc/src/models/operations/updatepromptsnippet.ts +6544 -0
- package/packages/orq-rc/src/sdk/contacts.ts +27 -0
- package/packages/orq-rc/src/sdk/deployments.ts +89 -0
- package/packages/orq-rc/src/sdk/feedback.ts +27 -0
- package/packages/orq-rc/src/sdk/files.ts +72 -0
- package/packages/orq-rc/src/sdk/index.ts +5 -0
- package/packages/orq-rc/src/sdk/metrics.ts +27 -0
- package/packages/orq-rc/src/sdk/prompts.ts +126 -0
- package/packages/orq-rc/src/sdk/promptsnippets.ts +99 -0
- package/packages/orq-rc/src/sdk/remoteconfig.ts +24 -0
- package/packages/orq-rc/src/sdk/sdk.ts +49 -0
- package/packages/orq-rc/src/types/blobs.ts +31 -0
- package/packages/orq-rc/src/types/constdatetime.ts +15 -0
- package/packages/orq-rc/src/types/enums.ts +16 -0
- package/packages/orq-rc/src/types/fp.ts +50 -0
- package/packages/orq-rc/src/types/index.ts +11 -0
- package/packages/orq-rc/src/types/operations.ts +105 -0
- package/packages/orq-rc/src/types/rfcdate.ts +54 -0
- package/packages/orq-rc/src/types/streams.ts +21 -0
- package/packages/orq-rc/tsconfig.json +41 -0
- package/sdk/deployments.d.ts +5 -15
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +6 -18
- package/sdk/deployments.js.map +1 -1
- package/sdk/files.d.ts +0 -11
- package/sdk/files.d.ts.map +1 -1
- package/sdk/files.js +0 -17
- package/sdk/files.js.map +1 -1
- package/sdk/prompts.d.ts +26 -14
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +37 -25
- package/sdk/prompts.js.map +1 -1
- package/sdk/promptsnippets.d.ts +29 -0
- package/sdk/promptsnippets.d.ts.map +1 -0
- package/sdk/promptsnippets.js +54 -0
- package/sdk/promptsnippets.js.map +1 -0
- package/sdk/sdk.d.ts +3 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/deploymentsInvoke.ts +21 -16
- package/src/funcs/deploymentsStream.ts +150 -0
- package/src/funcs/promptSnippetsCreate.ts +128 -0
- package/src/funcs/{deploymentsInvalidate.ts → promptSnippetsDelete.ts} +9 -13
- package/src/funcs/promptSnippetsGet.ts +130 -0
- package/src/funcs/promptSnippetsGetByKey.ts +132 -0
- package/src/funcs/promptSnippetsList.ts +132 -0
- package/src/funcs/promptSnippetsUpdate.ts +139 -0
- package/src/funcs/promptsCreate.ts +2 -2
- package/src/funcs/promptsDelete.ts +1 -1
- package/src/funcs/promptsGetVersion.ts +146 -0
- package/src/funcs/promptsList.ts +133 -0
- package/src/funcs/promptsListVersions.ts +139 -0
- package/src/funcs/promptsRetrieve.ts +132 -0
- package/src/funcs/promptsUpdate.ts +1 -1
- package/src/hooks/global.ts +44 -0
- package/src/hooks/registration.ts +2 -1
- package/src/lib/config.ts +13 -3
- package/src/lib/env.ts +32 -0
- package/src/lib/retries.ts +0 -1
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/deployments.ts +0 -7
- package/src/models/errors/getpromptversion.ts +71 -0
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/updatepromptsnippet.ts +71 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createprompt.ts +1045 -691
- package/src/models/operations/createpromptsnippet.ts +6239 -0
- package/src/models/operations/deleteprompt.ts +1 -1
- package/src/models/operations/deletepromptsnippet.ts +69 -0
- package/src/models/operations/deploymentgetconfig.ts +44 -0
- package/src/models/operations/deploymentinvoke.ts +180 -1423
- package/src/models/operations/deployments.ts +43 -0
- package/src/models/operations/deploymentstream.ts +3062 -0
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/findonebykeypromptsnippet.ts +4483 -0
- package/src/models/operations/findonepromptsnippet.ts +1811 -11109
- package/src/models/operations/getallprompts.ts +1294 -18123
- package/src/models/operations/getallpromptsnippets.ts +4472 -0
- package/src/models/operations/getoneprompt.ts +1914 -1
- package/src/models/operations/getpromptversion.ts +2012 -0
- package/src/models/operations/index.ts +8 -7
- package/src/models/operations/listpromptversions.ts +2146 -0
- package/src/models/operations/updateprompt.ts +1999 -12503
- package/src/models/operations/updatepromptsnippet.ts +6544 -0
- package/src/sdk/deployments.ts +11 -33
- package/src/sdk/files.ts +0 -33
- package/src/sdk/prompts.ts +51 -39
- package/src/sdk/promptsnippets.ts +99 -0
- package/src/sdk/sdk.ts +4 -4
- package/docs/sdks/prompt/README.md +0 -6
- package/funcs/deploymentsGetLogs.d.ts +0 -15
- package/funcs/deploymentsGetLogs.d.ts.map +0 -1
- package/funcs/deploymentsGetLogs.js.map +0 -1
- package/funcs/deploymentsInvalidate.d.ts.map +0 -1
- package/funcs/deploymentsInvalidate.js.map +0 -1
- package/funcs/filesBulkUpload.d.ts +0 -15
- package/funcs/filesBulkUpload.d.ts.map +0 -1
- package/funcs/filesBulkUpload.js +0 -109
- package/funcs/filesBulkUpload.js.map +0 -1
- package/funcs/filesUpdate.d.ts.map +0 -1
- package/funcs/filesUpdate.js.map +0 -1
- package/funcs/promptSnippetsFindOne.d.ts.map +0 -1
- package/funcs/promptSnippetsFindOne.js.map +0 -1
- package/funcs/promptTemplatesGetAll.d.ts +0 -12
- package/funcs/promptTemplatesGetAll.d.ts.map +0 -1
- package/funcs/promptTemplatesGetAll.js.map +0 -1
- package/funcs/promptsCreateVersion.js.map +0 -1
- package/funcs/promptsDuplicate.d.ts +0 -12
- package/funcs/promptsDuplicate.d.ts.map +0 -1
- package/funcs/promptsDuplicate.js.map +0 -1
- package/funcs/promptsGetAll.d.ts.map +0 -1
- package/funcs/promptsGetAll.js.map +0 -1
- package/funcs/promptsGetOne.d.ts.map +0 -1
- package/funcs/promptsGetOne.js.map +0 -1
- package/models/operations/bulkfileupload.d.ts +0 -173
- package/models/operations/bulkfileupload.d.ts.map +0 -1
- package/models/operations/bulkfileupload.js +0 -210
- package/models/operations/bulkfileupload.js.map +0 -1
- package/models/operations/createpromptversion.d.ts +0 -2015
- package/models/operations/createpromptversion.d.ts.map +0 -1
- package/models/operations/createpromptversion.js +0 -1856
- package/models/operations/createpromptversion.js.map +0 -1
- package/models/operations/deploymentgetlogs.d.ts +0 -52406
- package/models/operations/deploymentgetlogs.d.ts.map +0 -1
- package/models/operations/deploymentgetlogs.js +0 -53803
- package/models/operations/deploymentgetlogs.js.map +0 -1
- package/models/operations/duplicateprompt.d.ts +0 -32
- package/models/operations/duplicateprompt.d.ts.map +0 -1
- package/models/operations/duplicateprompt.js.map +0 -1
- package/models/operations/fileupdate.d.ts +0 -143
- package/models/operations/fileupdate.d.ts.map +0 -1
- package/models/operations/fileupdate.js +0 -193
- package/models/operations/fileupdate.js.map +0 -1
- package/models/operations/getallprompttemplates.d.ts +0 -6643
- package/models/operations/getallprompttemplates.d.ts.map +0 -1
- package/models/operations/getallprompttemplates.js +0 -6234
- package/models/operations/getallprompttemplates.js.map +0 -1
- package/models/operations/invaliddeployment.d.ts +0 -29
- package/models/operations/invaliddeployment.d.ts.map +0 -1
- package/models/operations/invaliddeployment.js +0 -78
- package/models/operations/invaliddeployment.js.map +0 -1
- package/sdk/prompt.d.ts +0 -10
- package/sdk/prompt.d.ts.map +0 -1
- package/sdk/prompt.js +0 -19
- package/sdk/prompt.js.map +0 -1
- package/sdk/snippets.d.ts +0 -9
- package/sdk/snippets.d.ts.map +0 -1
- package/sdk/snippets.js +0 -19
- package/sdk/snippets.js.map +0 -1
- package/sdk/templates.d.ts +0 -9
- package/sdk/templates.d.ts.map +0 -1
- package/sdk/templates.js +0 -19
- package/sdk/templates.js.map +0 -1
- package/src/models/operations/bulkfileupload.ts +0 -315
- package/src/models/operations/createpromptversion.ts +0 -3707
- package/src/models/operations/deploymentgetlogs.ts +0 -119430
- package/src/models/operations/duplicateprompt.ts +0 -69
- package/src/models/operations/fileupdate.ts +0 -298
- package/src/models/operations/getallprompttemplates.ts +0 -13779
- package/src/models/operations/invaliddeployment.ts +0 -75
- package/src/sdk/prompt.ts +0 -19
- package/src/sdk/snippets.ts +0 -24
- package/src/sdk/templates.ts +0 -24
|
@@ -1,12 +1,408 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
export type GetOnePromptRequest = {
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
+
* Unique identifier of the prompt
|
|
7
8
|
*/
|
|
8
9
|
id: string;
|
|
9
10
|
};
|
|
11
|
+
export declare const GetOnePromptType: {
|
|
12
|
+
readonly Prompt: "prompt";
|
|
13
|
+
};
|
|
14
|
+
export type GetOnePromptType = ClosedEnum<typeof GetOnePromptType>;
|
|
15
|
+
/**
|
|
16
|
+
* The type of the model
|
|
17
|
+
*/
|
|
18
|
+
export declare const GetOnePromptModelType: {
|
|
19
|
+
readonly Chat: "chat";
|
|
20
|
+
readonly Completion: "completion";
|
|
21
|
+
readonly Embedding: "embedding";
|
|
22
|
+
readonly Vision: "vision";
|
|
23
|
+
readonly Image: "image";
|
|
24
|
+
readonly Tts: "tts";
|
|
25
|
+
readonly Stt: "stt";
|
|
26
|
+
readonly Rerank: "rerank";
|
|
27
|
+
readonly Moderations: "moderations";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The type of the model
|
|
31
|
+
*/
|
|
32
|
+
export type GetOnePromptModelType = ClosedEnum<typeof GetOnePromptModelType>;
|
|
33
|
+
/**
|
|
34
|
+
* Only supported on `image` models.
|
|
35
|
+
*/
|
|
36
|
+
export declare const GetOnePromptFormat: {
|
|
37
|
+
readonly Url: "url";
|
|
38
|
+
readonly B64Json: "b64_json";
|
|
39
|
+
readonly Text: "text";
|
|
40
|
+
readonly JsonObject: "json_object";
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Only supported on `image` models.
|
|
44
|
+
*/
|
|
45
|
+
export type GetOnePromptFormat = ClosedEnum<typeof GetOnePromptFormat>;
|
|
46
|
+
/**
|
|
47
|
+
* Only supported on `image` models.
|
|
48
|
+
*/
|
|
49
|
+
export declare const GetOnePromptQuality: {
|
|
50
|
+
readonly Standard: "standard";
|
|
51
|
+
readonly Hd: "hd";
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Only supported on `image` models.
|
|
55
|
+
*/
|
|
56
|
+
export type GetOnePromptQuality = ClosedEnum<typeof GetOnePromptQuality>;
|
|
57
|
+
export declare const GetOnePromptResponseFormatPromptsType: {
|
|
58
|
+
readonly JsonObject: "json_object";
|
|
59
|
+
};
|
|
60
|
+
export type GetOnePromptResponseFormatPromptsType = ClosedEnum<typeof GetOnePromptResponseFormatPromptsType>;
|
|
61
|
+
export type GetOnePromptResponseFormat2 = {
|
|
62
|
+
type: GetOnePromptResponseFormatPromptsType;
|
|
63
|
+
};
|
|
64
|
+
export declare const GetOnePromptResponseFormatType: {
|
|
65
|
+
readonly JsonSchema: "json_schema";
|
|
66
|
+
};
|
|
67
|
+
export type GetOnePromptResponseFormatType = ClosedEnum<typeof GetOnePromptResponseFormatType>;
|
|
68
|
+
export type GetOnePromptResponseFormatJsonSchema = {
|
|
69
|
+
name: string;
|
|
70
|
+
strict: boolean;
|
|
71
|
+
schema: {
|
|
72
|
+
[k: string]: any;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export type GetOnePromptResponseFormat1 = {
|
|
76
|
+
type: GetOnePromptResponseFormatType;
|
|
77
|
+
jsonSchema: GetOnePromptResponseFormatJsonSchema;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* An object specifying the format that the model must output.
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
*
|
|
84
|
+
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
85
|
+
*
|
|
86
|
+
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
87
|
+
*
|
|
88
|
+
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
89
|
+
*/
|
|
90
|
+
export type GetOnePromptResponseFormat = GetOnePromptResponseFormat2 | GetOnePromptResponseFormat1;
|
|
91
|
+
/**
|
|
92
|
+
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
93
|
+
*/
|
|
94
|
+
export declare const GetOnePromptPhotoRealVersion: {
|
|
95
|
+
readonly V1: "v1";
|
|
96
|
+
readonly V2: "v2";
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
100
|
+
*/
|
|
101
|
+
export type GetOnePromptPhotoRealVersion = ClosedEnum<typeof GetOnePromptPhotoRealVersion>;
|
|
102
|
+
/**
|
|
103
|
+
* The format to return the embeddings
|
|
104
|
+
*/
|
|
105
|
+
export declare const GetOnePromptEncodingFormat: {
|
|
106
|
+
readonly Float: "float";
|
|
107
|
+
readonly Base64: "base64";
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* The format to return the embeddings
|
|
111
|
+
*/
|
|
112
|
+
export type GetOnePromptEncodingFormat = ClosedEnum<typeof GetOnePromptEncodingFormat>;
|
|
113
|
+
/**
|
|
114
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
115
|
+
*/
|
|
116
|
+
export declare const GetOnePromptReasoningEffort: {
|
|
117
|
+
readonly Low: "low";
|
|
118
|
+
readonly Medium: "medium";
|
|
119
|
+
readonly High: "high";
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
123
|
+
*/
|
|
124
|
+
export type GetOnePromptReasoningEffort = ClosedEnum<typeof GetOnePromptReasoningEffort>;
|
|
125
|
+
/**
|
|
126
|
+
* Model Parameters: Not all parameters apply to every model
|
|
127
|
+
*/
|
|
128
|
+
export type GetOnePromptModelParameters = {
|
|
129
|
+
/**
|
|
130
|
+
* Only supported on `chat` and `completion` models.
|
|
131
|
+
*/
|
|
132
|
+
temperature?: number | undefined;
|
|
133
|
+
/**
|
|
134
|
+
* Only supported on `chat` and `completion` models.
|
|
135
|
+
*/
|
|
136
|
+
maxTokens?: number | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* Only supported on `chat` and `completion` models.
|
|
139
|
+
*/
|
|
140
|
+
topK?: number | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* Only supported on `chat` and `completion` models.
|
|
143
|
+
*/
|
|
144
|
+
topP?: number | undefined;
|
|
145
|
+
/**
|
|
146
|
+
* Only supported on `chat` and `completion` models.
|
|
147
|
+
*/
|
|
148
|
+
frequencyPenalty?: number | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* Only supported on `chat` and `completion` models.
|
|
151
|
+
*/
|
|
152
|
+
presencePenalty?: number | undefined;
|
|
153
|
+
/**
|
|
154
|
+
* Only supported on `image` models.
|
|
155
|
+
*/
|
|
156
|
+
numImages?: number | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
159
|
+
*/
|
|
160
|
+
seed?: number | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Only supported on `image` models.
|
|
163
|
+
*/
|
|
164
|
+
format?: GetOnePromptFormat | undefined;
|
|
165
|
+
/**
|
|
166
|
+
* Only supported on `image` models.
|
|
167
|
+
*/
|
|
168
|
+
dimensions?: string | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Only supported on `image` models.
|
|
171
|
+
*/
|
|
172
|
+
quality?: GetOnePromptQuality | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* Only supported on `image` models.
|
|
175
|
+
*/
|
|
176
|
+
style?: string | undefined;
|
|
177
|
+
/**
|
|
178
|
+
* An object specifying the format that the model must output.
|
|
179
|
+
*
|
|
180
|
+
* @remarks
|
|
181
|
+
*
|
|
182
|
+
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
183
|
+
*
|
|
184
|
+
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
185
|
+
*
|
|
186
|
+
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
187
|
+
*/
|
|
188
|
+
responseFormat?: GetOnePromptResponseFormat2 | GetOnePromptResponseFormat1 | null | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
191
|
+
*/
|
|
192
|
+
photoRealVersion?: GetOnePromptPhotoRealVersion | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* The format to return the embeddings
|
|
195
|
+
*/
|
|
196
|
+
encodingFormat?: GetOnePromptEncodingFormat | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
199
|
+
*/
|
|
200
|
+
reasoningEffort?: GetOnePromptReasoningEffort | undefined;
|
|
201
|
+
};
|
|
202
|
+
export declare const GetOnePromptProvider: {
|
|
203
|
+
readonly Cohere: "cohere";
|
|
204
|
+
readonly Openai: "openai";
|
|
205
|
+
readonly Anthropic: "anthropic";
|
|
206
|
+
readonly Huggingface: "huggingface";
|
|
207
|
+
readonly Replicate: "replicate";
|
|
208
|
+
readonly Google: "google";
|
|
209
|
+
readonly GoogleAi: "google-ai";
|
|
210
|
+
readonly Azure: "azure";
|
|
211
|
+
readonly Aws: "aws";
|
|
212
|
+
readonly Anyscale: "anyscale";
|
|
213
|
+
readonly Perplexity: "perplexity";
|
|
214
|
+
readonly Groq: "groq";
|
|
215
|
+
readonly Fal: "fal";
|
|
216
|
+
readonly Leonardoai: "leonardoai";
|
|
217
|
+
readonly Nvidia: "nvidia";
|
|
218
|
+
readonly Jina: "jina";
|
|
219
|
+
readonly Togetherai: "togetherai";
|
|
220
|
+
readonly Elevenlabs: "elevenlabs";
|
|
221
|
+
};
|
|
222
|
+
export type GetOnePromptProvider = ClosedEnum<typeof GetOnePromptProvider>;
|
|
223
|
+
/**
|
|
224
|
+
* The role of the prompt message
|
|
225
|
+
*/
|
|
226
|
+
export declare const GetOnePromptRole: {
|
|
227
|
+
readonly System: "system";
|
|
228
|
+
readonly Assistant: "assistant";
|
|
229
|
+
readonly User: "user";
|
|
230
|
+
readonly Exception: "exception";
|
|
231
|
+
readonly Tool: "tool";
|
|
232
|
+
readonly Prompt: "prompt";
|
|
233
|
+
readonly Correction: "correction";
|
|
234
|
+
readonly ExpectedOutput: "expected_output";
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* The role of the prompt message
|
|
238
|
+
*/
|
|
239
|
+
export type GetOnePromptRole = ClosedEnum<typeof GetOnePromptRole>;
|
|
240
|
+
export declare const GetOnePrompt2PromptsType: {
|
|
241
|
+
readonly ImageUrl: "image_url";
|
|
242
|
+
};
|
|
243
|
+
export type GetOnePrompt2PromptsType = ClosedEnum<typeof GetOnePrompt2PromptsType>;
|
|
244
|
+
export type GetOnePrompt2ImageUrl = {
|
|
245
|
+
/**
|
|
246
|
+
* The orq.ai id of the image
|
|
247
|
+
*/
|
|
248
|
+
id?: string | undefined;
|
|
249
|
+
/**
|
|
250
|
+
* Either a URL of the image or the base64 encoded data URI.
|
|
251
|
+
*/
|
|
252
|
+
url: string;
|
|
253
|
+
/**
|
|
254
|
+
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
255
|
+
*/
|
|
256
|
+
detail?: string | undefined;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* The image part of the prompt message. Only supported with vision models.
|
|
260
|
+
*/
|
|
261
|
+
export type GetOnePrompt22 = {
|
|
262
|
+
type: GetOnePrompt2PromptsType;
|
|
263
|
+
imageUrl: GetOnePrompt2ImageUrl;
|
|
264
|
+
};
|
|
265
|
+
export declare const GetOnePrompt2Type: {
|
|
266
|
+
readonly Text: "text";
|
|
267
|
+
};
|
|
268
|
+
export type GetOnePrompt2Type = ClosedEnum<typeof GetOnePrompt2Type>;
|
|
269
|
+
/**
|
|
270
|
+
* Text content part of a prompt message
|
|
271
|
+
*/
|
|
272
|
+
export type GetOnePrompt21 = {
|
|
273
|
+
type: GetOnePrompt2Type;
|
|
274
|
+
text: string;
|
|
275
|
+
};
|
|
276
|
+
export type GetOnePromptContent2 = GetOnePrompt21 | GetOnePrompt22;
|
|
277
|
+
/**
|
|
278
|
+
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
279
|
+
*/
|
|
280
|
+
export type GetOnePromptContent = string | Array<GetOnePrompt21 | GetOnePrompt22>;
|
|
281
|
+
export declare const GetOnePromptPromptsType: {
|
|
282
|
+
readonly Function: "function";
|
|
283
|
+
};
|
|
284
|
+
export type GetOnePromptPromptsType = ClosedEnum<typeof GetOnePromptPromptsType>;
|
|
285
|
+
export type GetOnePromptFunction = {
|
|
286
|
+
name: string;
|
|
287
|
+
/**
|
|
288
|
+
* JSON string arguments for the functions
|
|
289
|
+
*/
|
|
290
|
+
arguments: string;
|
|
291
|
+
};
|
|
292
|
+
export type GetOnePromptToolCalls = {
|
|
293
|
+
id?: string | undefined;
|
|
294
|
+
index?: number | undefined;
|
|
295
|
+
type: GetOnePromptPromptsType;
|
|
296
|
+
function: GetOnePromptFunction;
|
|
297
|
+
};
|
|
298
|
+
export type GetOnePromptMessages = {
|
|
299
|
+
/**
|
|
300
|
+
* The role of the prompt message
|
|
301
|
+
*/
|
|
302
|
+
role: GetOnePromptRole;
|
|
303
|
+
/**
|
|
304
|
+
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
305
|
+
*/
|
|
306
|
+
content: string | Array<GetOnePrompt21 | GetOnePrompt22>;
|
|
307
|
+
toolCalls?: Array<GetOnePromptToolCalls> | undefined;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* A list of messages compatible with the openAI schema
|
|
311
|
+
*/
|
|
312
|
+
export type GetOnePromptPromptConfig = {
|
|
313
|
+
stream?: boolean | undefined;
|
|
314
|
+
model?: string | undefined;
|
|
315
|
+
/**
|
|
316
|
+
* The id of the resource
|
|
317
|
+
*/
|
|
318
|
+
modelDbId?: string | undefined;
|
|
319
|
+
/**
|
|
320
|
+
* The type of the model
|
|
321
|
+
*/
|
|
322
|
+
modelType?: GetOnePromptModelType | undefined;
|
|
323
|
+
/**
|
|
324
|
+
* Model Parameters: Not all parameters apply to every model
|
|
325
|
+
*/
|
|
326
|
+
modelParameters?: GetOnePromptModelParameters | undefined;
|
|
327
|
+
provider?: GetOnePromptProvider | undefined;
|
|
328
|
+
/**
|
|
329
|
+
* The id of the resource
|
|
330
|
+
*/
|
|
331
|
+
integrationId?: string | null | undefined;
|
|
332
|
+
version?: string | undefined;
|
|
333
|
+
messages: Array<GetOnePromptMessages>;
|
|
334
|
+
};
|
|
335
|
+
export declare const GetOnePromptUseCases: {
|
|
336
|
+
readonly Agents: "Agents";
|
|
337
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
338
|
+
readonly APIInteraction: "API interaction";
|
|
339
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
340
|
+
readonly Chatbots: "Chatbots";
|
|
341
|
+
readonly Classification: "Classification";
|
|
342
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
343
|
+
readonly CodeWriting: "Code writing";
|
|
344
|
+
readonly DocumentsQA: "Documents QA";
|
|
345
|
+
readonly Conversation: "Conversation";
|
|
346
|
+
readonly Extraction: "Extraction";
|
|
347
|
+
readonly MultiModal: "Multi-modal";
|
|
348
|
+
readonly SelfChecking: "Self-checking";
|
|
349
|
+
readonly Sql: "SQL";
|
|
350
|
+
readonly Summarization: "Summarization";
|
|
351
|
+
readonly Tagging: "Tagging";
|
|
352
|
+
};
|
|
353
|
+
export type GetOnePromptUseCases = ClosedEnum<typeof GetOnePromptUseCases>;
|
|
354
|
+
/**
|
|
355
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
356
|
+
*/
|
|
357
|
+
export declare const GetOnePromptLanguage: {
|
|
358
|
+
readonly Chinese: "Chinese";
|
|
359
|
+
readonly Dutch: "Dutch";
|
|
360
|
+
readonly English: "English";
|
|
361
|
+
readonly French: "French";
|
|
362
|
+
readonly German: "German";
|
|
363
|
+
readonly Russian: "Russian";
|
|
364
|
+
readonly Spanish: "Spanish";
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
368
|
+
*/
|
|
369
|
+
export type GetOnePromptLanguage = ClosedEnum<typeof GetOnePromptLanguage>;
|
|
370
|
+
export type GetOnePromptMetadata = {
|
|
371
|
+
/**
|
|
372
|
+
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
373
|
+
*/
|
|
374
|
+
useCases?: Array<GetOnePromptUseCases> | undefined;
|
|
375
|
+
/**
|
|
376
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
377
|
+
*/
|
|
378
|
+
language?: GetOnePromptLanguage | undefined;
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* Prompt retrieved.
|
|
382
|
+
*/
|
|
383
|
+
export type GetOnePromptResponseBody = {
|
|
384
|
+
id: string;
|
|
385
|
+
type: GetOnePromptType;
|
|
386
|
+
owner: string;
|
|
387
|
+
domainId: string;
|
|
388
|
+
created: string;
|
|
389
|
+
updated: string;
|
|
390
|
+
createdById?: string | undefined;
|
|
391
|
+
updatedById?: string | undefined;
|
|
392
|
+
/**
|
|
393
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
394
|
+
*/
|
|
395
|
+
displayName: string;
|
|
396
|
+
/**
|
|
397
|
+
* The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
|
|
398
|
+
*/
|
|
399
|
+
description?: string | null | undefined;
|
|
400
|
+
/**
|
|
401
|
+
* A list of messages compatible with the openAI schema
|
|
402
|
+
*/
|
|
403
|
+
promptConfig: GetOnePromptPromptConfig;
|
|
404
|
+
metadata?: GetOnePromptMetadata | undefined;
|
|
405
|
+
};
|
|
10
406
|
/** @internal */
|
|
11
407
|
export declare const GetOnePromptRequest$inboundSchema: z.ZodType<GetOnePromptRequest, z.ZodTypeDef, unknown>;
|
|
12
408
|
/** @internal */
|
|
@@ -29,4 +425,810 @@ export declare namespace GetOnePromptRequest$ {
|
|
|
29
425
|
}
|
|
30
426
|
export declare function getOnePromptRequestToJSON(getOnePromptRequest: GetOnePromptRequest): string;
|
|
31
427
|
export declare function getOnePromptRequestFromJSON(jsonString: string): SafeParseResult<GetOnePromptRequest, SDKValidationError>;
|
|
428
|
+
/** @internal */
|
|
429
|
+
export declare const GetOnePromptType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptType>;
|
|
430
|
+
/** @internal */
|
|
431
|
+
export declare const GetOnePromptType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptType>;
|
|
432
|
+
/**
|
|
433
|
+
* @internal
|
|
434
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
435
|
+
*/
|
|
436
|
+
export declare namespace GetOnePromptType$ {
|
|
437
|
+
/** @deprecated use `GetOnePromptType$inboundSchema` instead. */
|
|
438
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
439
|
+
readonly Prompt: "prompt";
|
|
440
|
+
}>;
|
|
441
|
+
/** @deprecated use `GetOnePromptType$outboundSchema` instead. */
|
|
442
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
443
|
+
readonly Prompt: "prompt";
|
|
444
|
+
}>;
|
|
445
|
+
}
|
|
446
|
+
/** @internal */
|
|
447
|
+
export declare const GetOnePromptModelType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptModelType>;
|
|
448
|
+
/** @internal */
|
|
449
|
+
export declare const GetOnePromptModelType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptModelType>;
|
|
450
|
+
/**
|
|
451
|
+
* @internal
|
|
452
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
453
|
+
*/
|
|
454
|
+
export declare namespace GetOnePromptModelType$ {
|
|
455
|
+
/** @deprecated use `GetOnePromptModelType$inboundSchema` instead. */
|
|
456
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
457
|
+
readonly Chat: "chat";
|
|
458
|
+
readonly Completion: "completion";
|
|
459
|
+
readonly Embedding: "embedding";
|
|
460
|
+
readonly Vision: "vision";
|
|
461
|
+
readonly Image: "image";
|
|
462
|
+
readonly Tts: "tts";
|
|
463
|
+
readonly Stt: "stt";
|
|
464
|
+
readonly Rerank: "rerank";
|
|
465
|
+
readonly Moderations: "moderations";
|
|
466
|
+
}>;
|
|
467
|
+
/** @deprecated use `GetOnePromptModelType$outboundSchema` instead. */
|
|
468
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
469
|
+
readonly Chat: "chat";
|
|
470
|
+
readonly Completion: "completion";
|
|
471
|
+
readonly Embedding: "embedding";
|
|
472
|
+
readonly Vision: "vision";
|
|
473
|
+
readonly Image: "image";
|
|
474
|
+
readonly Tts: "tts";
|
|
475
|
+
readonly Stt: "stt";
|
|
476
|
+
readonly Rerank: "rerank";
|
|
477
|
+
readonly Moderations: "moderations";
|
|
478
|
+
}>;
|
|
479
|
+
}
|
|
480
|
+
/** @internal */
|
|
481
|
+
export declare const GetOnePromptFormat$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptFormat>;
|
|
482
|
+
/** @internal */
|
|
483
|
+
export declare const GetOnePromptFormat$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptFormat>;
|
|
484
|
+
/**
|
|
485
|
+
* @internal
|
|
486
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
487
|
+
*/
|
|
488
|
+
export declare namespace GetOnePromptFormat$ {
|
|
489
|
+
/** @deprecated use `GetOnePromptFormat$inboundSchema` instead. */
|
|
490
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
491
|
+
readonly Url: "url";
|
|
492
|
+
readonly B64Json: "b64_json";
|
|
493
|
+
readonly Text: "text";
|
|
494
|
+
readonly JsonObject: "json_object";
|
|
495
|
+
}>;
|
|
496
|
+
/** @deprecated use `GetOnePromptFormat$outboundSchema` instead. */
|
|
497
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
498
|
+
readonly Url: "url";
|
|
499
|
+
readonly B64Json: "b64_json";
|
|
500
|
+
readonly Text: "text";
|
|
501
|
+
readonly JsonObject: "json_object";
|
|
502
|
+
}>;
|
|
503
|
+
}
|
|
504
|
+
/** @internal */
|
|
505
|
+
export declare const GetOnePromptQuality$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptQuality>;
|
|
506
|
+
/** @internal */
|
|
507
|
+
export declare const GetOnePromptQuality$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptQuality>;
|
|
508
|
+
/**
|
|
509
|
+
* @internal
|
|
510
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
511
|
+
*/
|
|
512
|
+
export declare namespace GetOnePromptQuality$ {
|
|
513
|
+
/** @deprecated use `GetOnePromptQuality$inboundSchema` instead. */
|
|
514
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
515
|
+
readonly Standard: "standard";
|
|
516
|
+
readonly Hd: "hd";
|
|
517
|
+
}>;
|
|
518
|
+
/** @deprecated use `GetOnePromptQuality$outboundSchema` instead. */
|
|
519
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
520
|
+
readonly Standard: "standard";
|
|
521
|
+
readonly Hd: "hd";
|
|
522
|
+
}>;
|
|
523
|
+
}
|
|
524
|
+
/** @internal */
|
|
525
|
+
export declare const GetOnePromptResponseFormatPromptsType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType>;
|
|
526
|
+
/** @internal */
|
|
527
|
+
export declare const GetOnePromptResponseFormatPromptsType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType>;
|
|
528
|
+
/**
|
|
529
|
+
* @internal
|
|
530
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
531
|
+
*/
|
|
532
|
+
export declare namespace GetOnePromptResponseFormatPromptsType$ {
|
|
533
|
+
/** @deprecated use `GetOnePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
534
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
535
|
+
readonly JsonObject: "json_object";
|
|
536
|
+
}>;
|
|
537
|
+
/** @deprecated use `GetOnePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
538
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
539
|
+
readonly JsonObject: "json_object";
|
|
540
|
+
}>;
|
|
541
|
+
}
|
|
542
|
+
/** @internal */
|
|
543
|
+
export declare const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<GetOnePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
544
|
+
/** @internal */
|
|
545
|
+
export type GetOnePromptResponseFormat2$Outbound = {
|
|
546
|
+
type: string;
|
|
547
|
+
};
|
|
548
|
+
/** @internal */
|
|
549
|
+
export declare const GetOnePromptResponseFormat2$outboundSchema: z.ZodType<GetOnePromptResponseFormat2$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat2>;
|
|
550
|
+
/**
|
|
551
|
+
* @internal
|
|
552
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
553
|
+
*/
|
|
554
|
+
export declare namespace GetOnePromptResponseFormat2$ {
|
|
555
|
+
/** @deprecated use `GetOnePromptResponseFormat2$inboundSchema` instead. */
|
|
556
|
+
const inboundSchema: z.ZodType<GetOnePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
557
|
+
/** @deprecated use `GetOnePromptResponseFormat2$outboundSchema` instead. */
|
|
558
|
+
const outboundSchema: z.ZodType<GetOnePromptResponseFormat2$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat2>;
|
|
559
|
+
/** @deprecated use `GetOnePromptResponseFormat2$Outbound` instead. */
|
|
560
|
+
type Outbound = GetOnePromptResponseFormat2$Outbound;
|
|
561
|
+
}
|
|
562
|
+
export declare function getOnePromptResponseFormat2ToJSON(getOnePromptResponseFormat2: GetOnePromptResponseFormat2): string;
|
|
563
|
+
export declare function getOnePromptResponseFormat2FromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormat2, SDKValidationError>;
|
|
564
|
+
/** @internal */
|
|
565
|
+
export declare const GetOnePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatType>;
|
|
566
|
+
/** @internal */
|
|
567
|
+
export declare const GetOnePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatType>;
|
|
568
|
+
/**
|
|
569
|
+
* @internal
|
|
570
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
571
|
+
*/
|
|
572
|
+
export declare namespace GetOnePromptResponseFormatType$ {
|
|
573
|
+
/** @deprecated use `GetOnePromptResponseFormatType$inboundSchema` instead. */
|
|
574
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
575
|
+
readonly JsonSchema: "json_schema";
|
|
576
|
+
}>;
|
|
577
|
+
/** @deprecated use `GetOnePromptResponseFormatType$outboundSchema` instead. */
|
|
578
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
579
|
+
readonly JsonSchema: "json_schema";
|
|
580
|
+
}>;
|
|
581
|
+
}
|
|
582
|
+
/** @internal */
|
|
583
|
+
export declare const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<GetOnePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
584
|
+
/** @internal */
|
|
585
|
+
export type GetOnePromptResponseFormatJsonSchema$Outbound = {
|
|
586
|
+
name: string;
|
|
587
|
+
strict: boolean;
|
|
588
|
+
schema: {
|
|
589
|
+
[k: string]: any;
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
/** @internal */
|
|
593
|
+
export declare const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<GetOnePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, GetOnePromptResponseFormatJsonSchema>;
|
|
594
|
+
/**
|
|
595
|
+
* @internal
|
|
596
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
597
|
+
*/
|
|
598
|
+
export declare namespace GetOnePromptResponseFormatJsonSchema$ {
|
|
599
|
+
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
600
|
+
const inboundSchema: z.ZodType<GetOnePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
601
|
+
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
602
|
+
const outboundSchema: z.ZodType<GetOnePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, GetOnePromptResponseFormatJsonSchema>;
|
|
603
|
+
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
604
|
+
type Outbound = GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
605
|
+
}
|
|
606
|
+
export declare function getOnePromptResponseFormatJsonSchemaToJSON(getOnePromptResponseFormatJsonSchema: GetOnePromptResponseFormatJsonSchema): string;
|
|
607
|
+
export declare function getOnePromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormatJsonSchema, SDKValidationError>;
|
|
608
|
+
/** @internal */
|
|
609
|
+
export declare const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<GetOnePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
610
|
+
/** @internal */
|
|
611
|
+
export type GetOnePromptResponseFormat1$Outbound = {
|
|
612
|
+
type: string;
|
|
613
|
+
json_schema: GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
614
|
+
};
|
|
615
|
+
/** @internal */
|
|
616
|
+
export declare const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<GetOnePromptResponseFormat1$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat1>;
|
|
617
|
+
/**
|
|
618
|
+
* @internal
|
|
619
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
620
|
+
*/
|
|
621
|
+
export declare namespace GetOnePromptResponseFormat1$ {
|
|
622
|
+
/** @deprecated use `GetOnePromptResponseFormat1$inboundSchema` instead. */
|
|
623
|
+
const inboundSchema: z.ZodType<GetOnePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
624
|
+
/** @deprecated use `GetOnePromptResponseFormat1$outboundSchema` instead. */
|
|
625
|
+
const outboundSchema: z.ZodType<GetOnePromptResponseFormat1$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat1>;
|
|
626
|
+
/** @deprecated use `GetOnePromptResponseFormat1$Outbound` instead. */
|
|
627
|
+
type Outbound = GetOnePromptResponseFormat1$Outbound;
|
|
628
|
+
}
|
|
629
|
+
export declare function getOnePromptResponseFormat1ToJSON(getOnePromptResponseFormat1: GetOnePromptResponseFormat1): string;
|
|
630
|
+
export declare function getOnePromptResponseFormat1FromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormat1, SDKValidationError>;
|
|
631
|
+
/** @internal */
|
|
632
|
+
export declare const GetOnePromptResponseFormat$inboundSchema: z.ZodType<GetOnePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
633
|
+
/** @internal */
|
|
634
|
+
export type GetOnePromptResponseFormat$Outbound = GetOnePromptResponseFormat2$Outbound | GetOnePromptResponseFormat1$Outbound;
|
|
635
|
+
/** @internal */
|
|
636
|
+
export declare const GetOnePromptResponseFormat$outboundSchema: z.ZodType<GetOnePromptResponseFormat$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat>;
|
|
637
|
+
/**
|
|
638
|
+
* @internal
|
|
639
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
640
|
+
*/
|
|
641
|
+
export declare namespace GetOnePromptResponseFormat$ {
|
|
642
|
+
/** @deprecated use `GetOnePromptResponseFormat$inboundSchema` instead. */
|
|
643
|
+
const inboundSchema: z.ZodType<GetOnePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
644
|
+
/** @deprecated use `GetOnePromptResponseFormat$outboundSchema` instead. */
|
|
645
|
+
const outboundSchema: z.ZodType<GetOnePromptResponseFormat$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat>;
|
|
646
|
+
/** @deprecated use `GetOnePromptResponseFormat$Outbound` instead. */
|
|
647
|
+
type Outbound = GetOnePromptResponseFormat$Outbound;
|
|
648
|
+
}
|
|
649
|
+
export declare function getOnePromptResponseFormatToJSON(getOnePromptResponseFormat: GetOnePromptResponseFormat): string;
|
|
650
|
+
export declare function getOnePromptResponseFormatFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormat, SDKValidationError>;
|
|
651
|
+
/** @internal */
|
|
652
|
+
export declare const GetOnePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptPhotoRealVersion>;
|
|
653
|
+
/** @internal */
|
|
654
|
+
export declare const GetOnePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptPhotoRealVersion>;
|
|
655
|
+
/**
|
|
656
|
+
* @internal
|
|
657
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
658
|
+
*/
|
|
659
|
+
export declare namespace GetOnePromptPhotoRealVersion$ {
|
|
660
|
+
/** @deprecated use `GetOnePromptPhotoRealVersion$inboundSchema` instead. */
|
|
661
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
662
|
+
readonly V1: "v1";
|
|
663
|
+
readonly V2: "v2";
|
|
664
|
+
}>;
|
|
665
|
+
/** @deprecated use `GetOnePromptPhotoRealVersion$outboundSchema` instead. */
|
|
666
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
667
|
+
readonly V1: "v1";
|
|
668
|
+
readonly V2: "v2";
|
|
669
|
+
}>;
|
|
670
|
+
}
|
|
671
|
+
/** @internal */
|
|
672
|
+
export declare const GetOnePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptEncodingFormat>;
|
|
673
|
+
/** @internal */
|
|
674
|
+
export declare const GetOnePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptEncodingFormat>;
|
|
675
|
+
/**
|
|
676
|
+
* @internal
|
|
677
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
678
|
+
*/
|
|
679
|
+
export declare namespace GetOnePromptEncodingFormat$ {
|
|
680
|
+
/** @deprecated use `GetOnePromptEncodingFormat$inboundSchema` instead. */
|
|
681
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
682
|
+
readonly Float: "float";
|
|
683
|
+
readonly Base64: "base64";
|
|
684
|
+
}>;
|
|
685
|
+
/** @deprecated use `GetOnePromptEncodingFormat$outboundSchema` instead. */
|
|
686
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
687
|
+
readonly Float: "float";
|
|
688
|
+
readonly Base64: "base64";
|
|
689
|
+
}>;
|
|
690
|
+
}
|
|
691
|
+
/** @internal */
|
|
692
|
+
export declare const GetOnePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptReasoningEffort>;
|
|
693
|
+
/** @internal */
|
|
694
|
+
export declare const GetOnePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptReasoningEffort>;
|
|
695
|
+
/**
|
|
696
|
+
* @internal
|
|
697
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
698
|
+
*/
|
|
699
|
+
export declare namespace GetOnePromptReasoningEffort$ {
|
|
700
|
+
/** @deprecated use `GetOnePromptReasoningEffort$inboundSchema` instead. */
|
|
701
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
702
|
+
readonly Low: "low";
|
|
703
|
+
readonly Medium: "medium";
|
|
704
|
+
readonly High: "high";
|
|
705
|
+
}>;
|
|
706
|
+
/** @deprecated use `GetOnePromptReasoningEffort$outboundSchema` instead. */
|
|
707
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
708
|
+
readonly Low: "low";
|
|
709
|
+
readonly Medium: "medium";
|
|
710
|
+
readonly High: "high";
|
|
711
|
+
}>;
|
|
712
|
+
}
|
|
713
|
+
/** @internal */
|
|
714
|
+
export declare const GetOnePromptModelParameters$inboundSchema: z.ZodType<GetOnePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
715
|
+
/** @internal */
|
|
716
|
+
export type GetOnePromptModelParameters$Outbound = {
|
|
717
|
+
temperature?: number | undefined;
|
|
718
|
+
maxTokens?: number | undefined;
|
|
719
|
+
topK?: number | undefined;
|
|
720
|
+
topP?: number | undefined;
|
|
721
|
+
frequencyPenalty?: number | undefined;
|
|
722
|
+
presencePenalty?: number | undefined;
|
|
723
|
+
numImages?: number | undefined;
|
|
724
|
+
seed?: number | undefined;
|
|
725
|
+
format?: string | undefined;
|
|
726
|
+
dimensions?: string | undefined;
|
|
727
|
+
quality?: string | undefined;
|
|
728
|
+
style?: string | undefined;
|
|
729
|
+
responseFormat?: GetOnePromptResponseFormat2$Outbound | GetOnePromptResponseFormat1$Outbound | null | undefined;
|
|
730
|
+
photoRealVersion?: string | undefined;
|
|
731
|
+
encoding_format?: string | undefined;
|
|
732
|
+
reasoningEffort?: string | undefined;
|
|
733
|
+
};
|
|
734
|
+
/** @internal */
|
|
735
|
+
export declare const GetOnePromptModelParameters$outboundSchema: z.ZodType<GetOnePromptModelParameters$Outbound, z.ZodTypeDef, GetOnePromptModelParameters>;
|
|
736
|
+
/**
|
|
737
|
+
* @internal
|
|
738
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
739
|
+
*/
|
|
740
|
+
export declare namespace GetOnePromptModelParameters$ {
|
|
741
|
+
/** @deprecated use `GetOnePromptModelParameters$inboundSchema` instead. */
|
|
742
|
+
const inboundSchema: z.ZodType<GetOnePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
743
|
+
/** @deprecated use `GetOnePromptModelParameters$outboundSchema` instead. */
|
|
744
|
+
const outboundSchema: z.ZodType<GetOnePromptModelParameters$Outbound, z.ZodTypeDef, GetOnePromptModelParameters>;
|
|
745
|
+
/** @deprecated use `GetOnePromptModelParameters$Outbound` instead. */
|
|
746
|
+
type Outbound = GetOnePromptModelParameters$Outbound;
|
|
747
|
+
}
|
|
748
|
+
export declare function getOnePromptModelParametersToJSON(getOnePromptModelParameters: GetOnePromptModelParameters): string;
|
|
749
|
+
export declare function getOnePromptModelParametersFromJSON(jsonString: string): SafeParseResult<GetOnePromptModelParameters, SDKValidationError>;
|
|
750
|
+
/** @internal */
|
|
751
|
+
export declare const GetOnePromptProvider$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptProvider>;
|
|
752
|
+
/** @internal */
|
|
753
|
+
export declare const GetOnePromptProvider$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptProvider>;
|
|
754
|
+
/**
|
|
755
|
+
* @internal
|
|
756
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
757
|
+
*/
|
|
758
|
+
export declare namespace GetOnePromptProvider$ {
|
|
759
|
+
/** @deprecated use `GetOnePromptProvider$inboundSchema` instead. */
|
|
760
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
761
|
+
readonly Cohere: "cohere";
|
|
762
|
+
readonly Openai: "openai";
|
|
763
|
+
readonly Anthropic: "anthropic";
|
|
764
|
+
readonly Huggingface: "huggingface";
|
|
765
|
+
readonly Replicate: "replicate";
|
|
766
|
+
readonly Google: "google";
|
|
767
|
+
readonly GoogleAi: "google-ai";
|
|
768
|
+
readonly Azure: "azure";
|
|
769
|
+
readonly Aws: "aws";
|
|
770
|
+
readonly Anyscale: "anyscale";
|
|
771
|
+
readonly Perplexity: "perplexity";
|
|
772
|
+
readonly Groq: "groq";
|
|
773
|
+
readonly Fal: "fal";
|
|
774
|
+
readonly Leonardoai: "leonardoai";
|
|
775
|
+
readonly Nvidia: "nvidia";
|
|
776
|
+
readonly Jina: "jina";
|
|
777
|
+
readonly Togetherai: "togetherai";
|
|
778
|
+
readonly Elevenlabs: "elevenlabs";
|
|
779
|
+
}>;
|
|
780
|
+
/** @deprecated use `GetOnePromptProvider$outboundSchema` instead. */
|
|
781
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
782
|
+
readonly Cohere: "cohere";
|
|
783
|
+
readonly Openai: "openai";
|
|
784
|
+
readonly Anthropic: "anthropic";
|
|
785
|
+
readonly Huggingface: "huggingface";
|
|
786
|
+
readonly Replicate: "replicate";
|
|
787
|
+
readonly Google: "google";
|
|
788
|
+
readonly GoogleAi: "google-ai";
|
|
789
|
+
readonly Azure: "azure";
|
|
790
|
+
readonly Aws: "aws";
|
|
791
|
+
readonly Anyscale: "anyscale";
|
|
792
|
+
readonly Perplexity: "perplexity";
|
|
793
|
+
readonly Groq: "groq";
|
|
794
|
+
readonly Fal: "fal";
|
|
795
|
+
readonly Leonardoai: "leonardoai";
|
|
796
|
+
readonly Nvidia: "nvidia";
|
|
797
|
+
readonly Jina: "jina";
|
|
798
|
+
readonly Togetherai: "togetherai";
|
|
799
|
+
readonly Elevenlabs: "elevenlabs";
|
|
800
|
+
}>;
|
|
801
|
+
}
|
|
802
|
+
/** @internal */
|
|
803
|
+
export declare const GetOnePromptRole$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptRole>;
|
|
804
|
+
/** @internal */
|
|
805
|
+
export declare const GetOnePromptRole$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptRole>;
|
|
806
|
+
/**
|
|
807
|
+
* @internal
|
|
808
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
809
|
+
*/
|
|
810
|
+
export declare namespace GetOnePromptRole$ {
|
|
811
|
+
/** @deprecated use `GetOnePromptRole$inboundSchema` instead. */
|
|
812
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
813
|
+
readonly System: "system";
|
|
814
|
+
readonly Assistant: "assistant";
|
|
815
|
+
readonly User: "user";
|
|
816
|
+
readonly Exception: "exception";
|
|
817
|
+
readonly Tool: "tool";
|
|
818
|
+
readonly Prompt: "prompt";
|
|
819
|
+
readonly Correction: "correction";
|
|
820
|
+
readonly ExpectedOutput: "expected_output";
|
|
821
|
+
}>;
|
|
822
|
+
/** @deprecated use `GetOnePromptRole$outboundSchema` instead. */
|
|
823
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
824
|
+
readonly System: "system";
|
|
825
|
+
readonly Assistant: "assistant";
|
|
826
|
+
readonly User: "user";
|
|
827
|
+
readonly Exception: "exception";
|
|
828
|
+
readonly Tool: "tool";
|
|
829
|
+
readonly Prompt: "prompt";
|
|
830
|
+
readonly Correction: "correction";
|
|
831
|
+
readonly ExpectedOutput: "expected_output";
|
|
832
|
+
}>;
|
|
833
|
+
}
|
|
834
|
+
/** @internal */
|
|
835
|
+
export declare const GetOnePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2PromptsType>;
|
|
836
|
+
/** @internal */
|
|
837
|
+
export declare const GetOnePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2PromptsType>;
|
|
838
|
+
/**
|
|
839
|
+
* @internal
|
|
840
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
841
|
+
*/
|
|
842
|
+
export declare namespace GetOnePrompt2PromptsType$ {
|
|
843
|
+
/** @deprecated use `GetOnePrompt2PromptsType$inboundSchema` instead. */
|
|
844
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
845
|
+
readonly ImageUrl: "image_url";
|
|
846
|
+
}>;
|
|
847
|
+
/** @deprecated use `GetOnePrompt2PromptsType$outboundSchema` instead. */
|
|
848
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
849
|
+
readonly ImageUrl: "image_url";
|
|
850
|
+
}>;
|
|
851
|
+
}
|
|
852
|
+
/** @internal */
|
|
853
|
+
export declare const GetOnePrompt2ImageUrl$inboundSchema: z.ZodType<GetOnePrompt2ImageUrl, z.ZodTypeDef, unknown>;
|
|
854
|
+
/** @internal */
|
|
855
|
+
export type GetOnePrompt2ImageUrl$Outbound = {
|
|
856
|
+
id?: string | undefined;
|
|
857
|
+
url: string;
|
|
858
|
+
detail?: string | undefined;
|
|
859
|
+
};
|
|
860
|
+
/** @internal */
|
|
861
|
+
export declare const GetOnePrompt2ImageUrl$outboundSchema: z.ZodType<GetOnePrompt2ImageUrl$Outbound, z.ZodTypeDef, GetOnePrompt2ImageUrl>;
|
|
862
|
+
/**
|
|
863
|
+
* @internal
|
|
864
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
865
|
+
*/
|
|
866
|
+
export declare namespace GetOnePrompt2ImageUrl$ {
|
|
867
|
+
/** @deprecated use `GetOnePrompt2ImageUrl$inboundSchema` instead. */
|
|
868
|
+
const inboundSchema: z.ZodType<GetOnePrompt2ImageUrl, z.ZodTypeDef, unknown>;
|
|
869
|
+
/** @deprecated use `GetOnePrompt2ImageUrl$outboundSchema` instead. */
|
|
870
|
+
const outboundSchema: z.ZodType<GetOnePrompt2ImageUrl$Outbound, z.ZodTypeDef, GetOnePrompt2ImageUrl>;
|
|
871
|
+
/** @deprecated use `GetOnePrompt2ImageUrl$Outbound` instead. */
|
|
872
|
+
type Outbound = GetOnePrompt2ImageUrl$Outbound;
|
|
873
|
+
}
|
|
874
|
+
export declare function getOnePrompt2ImageUrlToJSON(getOnePrompt2ImageUrl: GetOnePrompt2ImageUrl): string;
|
|
875
|
+
export declare function getOnePrompt2ImageUrlFromJSON(jsonString: string): SafeParseResult<GetOnePrompt2ImageUrl, SDKValidationError>;
|
|
876
|
+
/** @internal */
|
|
877
|
+
export declare const GetOnePrompt22$inboundSchema: z.ZodType<GetOnePrompt22, z.ZodTypeDef, unknown>;
|
|
878
|
+
/** @internal */
|
|
879
|
+
export type GetOnePrompt22$Outbound = {
|
|
880
|
+
type: string;
|
|
881
|
+
image_url: GetOnePrompt2ImageUrl$Outbound;
|
|
882
|
+
};
|
|
883
|
+
/** @internal */
|
|
884
|
+
export declare const GetOnePrompt22$outboundSchema: z.ZodType<GetOnePrompt22$Outbound, z.ZodTypeDef, GetOnePrompt22>;
|
|
885
|
+
/**
|
|
886
|
+
* @internal
|
|
887
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
888
|
+
*/
|
|
889
|
+
export declare namespace GetOnePrompt22$ {
|
|
890
|
+
/** @deprecated use `GetOnePrompt22$inboundSchema` instead. */
|
|
891
|
+
const inboundSchema: z.ZodType<GetOnePrompt22, z.ZodTypeDef, unknown>;
|
|
892
|
+
/** @deprecated use `GetOnePrompt22$outboundSchema` instead. */
|
|
893
|
+
const outboundSchema: z.ZodType<GetOnePrompt22$Outbound, z.ZodTypeDef, GetOnePrompt22>;
|
|
894
|
+
/** @deprecated use `GetOnePrompt22$Outbound` instead. */
|
|
895
|
+
type Outbound = GetOnePrompt22$Outbound;
|
|
896
|
+
}
|
|
897
|
+
export declare function getOnePrompt22ToJSON(getOnePrompt22: GetOnePrompt22): string;
|
|
898
|
+
export declare function getOnePrompt22FromJSON(jsonString: string): SafeParseResult<GetOnePrompt22, SDKValidationError>;
|
|
899
|
+
/** @internal */
|
|
900
|
+
export declare const GetOnePrompt2Type$inboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2Type>;
|
|
901
|
+
/** @internal */
|
|
902
|
+
export declare const GetOnePrompt2Type$outboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2Type>;
|
|
903
|
+
/**
|
|
904
|
+
* @internal
|
|
905
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
906
|
+
*/
|
|
907
|
+
export declare namespace GetOnePrompt2Type$ {
|
|
908
|
+
/** @deprecated use `GetOnePrompt2Type$inboundSchema` instead. */
|
|
909
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
910
|
+
readonly Text: "text";
|
|
911
|
+
}>;
|
|
912
|
+
/** @deprecated use `GetOnePrompt2Type$outboundSchema` instead. */
|
|
913
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
914
|
+
readonly Text: "text";
|
|
915
|
+
}>;
|
|
916
|
+
}
|
|
917
|
+
/** @internal */
|
|
918
|
+
export declare const GetOnePrompt21$inboundSchema: z.ZodType<GetOnePrompt21, z.ZodTypeDef, unknown>;
|
|
919
|
+
/** @internal */
|
|
920
|
+
export type GetOnePrompt21$Outbound = {
|
|
921
|
+
type: string;
|
|
922
|
+
text: string;
|
|
923
|
+
};
|
|
924
|
+
/** @internal */
|
|
925
|
+
export declare const GetOnePrompt21$outboundSchema: z.ZodType<GetOnePrompt21$Outbound, z.ZodTypeDef, GetOnePrompt21>;
|
|
926
|
+
/**
|
|
927
|
+
* @internal
|
|
928
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
929
|
+
*/
|
|
930
|
+
export declare namespace GetOnePrompt21$ {
|
|
931
|
+
/** @deprecated use `GetOnePrompt21$inboundSchema` instead. */
|
|
932
|
+
const inboundSchema: z.ZodType<GetOnePrompt21, z.ZodTypeDef, unknown>;
|
|
933
|
+
/** @deprecated use `GetOnePrompt21$outboundSchema` instead. */
|
|
934
|
+
const outboundSchema: z.ZodType<GetOnePrompt21$Outbound, z.ZodTypeDef, GetOnePrompt21>;
|
|
935
|
+
/** @deprecated use `GetOnePrompt21$Outbound` instead. */
|
|
936
|
+
type Outbound = GetOnePrompt21$Outbound;
|
|
937
|
+
}
|
|
938
|
+
export declare function getOnePrompt21ToJSON(getOnePrompt21: GetOnePrompt21): string;
|
|
939
|
+
export declare function getOnePrompt21FromJSON(jsonString: string): SafeParseResult<GetOnePrompt21, SDKValidationError>;
|
|
940
|
+
/** @internal */
|
|
941
|
+
export declare const GetOnePromptContent2$inboundSchema: z.ZodType<GetOnePromptContent2, z.ZodTypeDef, unknown>;
|
|
942
|
+
/** @internal */
|
|
943
|
+
export type GetOnePromptContent2$Outbound = GetOnePrompt21$Outbound | GetOnePrompt22$Outbound;
|
|
944
|
+
/** @internal */
|
|
945
|
+
export declare const GetOnePromptContent2$outboundSchema: z.ZodType<GetOnePromptContent2$Outbound, z.ZodTypeDef, GetOnePromptContent2>;
|
|
946
|
+
/**
|
|
947
|
+
* @internal
|
|
948
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
949
|
+
*/
|
|
950
|
+
export declare namespace GetOnePromptContent2$ {
|
|
951
|
+
/** @deprecated use `GetOnePromptContent2$inboundSchema` instead. */
|
|
952
|
+
const inboundSchema: z.ZodType<GetOnePromptContent2, z.ZodTypeDef, unknown>;
|
|
953
|
+
/** @deprecated use `GetOnePromptContent2$outboundSchema` instead. */
|
|
954
|
+
const outboundSchema: z.ZodType<GetOnePromptContent2$Outbound, z.ZodTypeDef, GetOnePromptContent2>;
|
|
955
|
+
/** @deprecated use `GetOnePromptContent2$Outbound` instead. */
|
|
956
|
+
type Outbound = GetOnePromptContent2$Outbound;
|
|
957
|
+
}
|
|
958
|
+
export declare function getOnePromptContent2ToJSON(getOnePromptContent2: GetOnePromptContent2): string;
|
|
959
|
+
export declare function getOnePromptContent2FromJSON(jsonString: string): SafeParseResult<GetOnePromptContent2, SDKValidationError>;
|
|
960
|
+
/** @internal */
|
|
961
|
+
export declare const GetOnePromptContent$inboundSchema: z.ZodType<GetOnePromptContent, z.ZodTypeDef, unknown>;
|
|
962
|
+
/** @internal */
|
|
963
|
+
export type GetOnePromptContent$Outbound = string | Array<GetOnePrompt21$Outbound | GetOnePrompt22$Outbound>;
|
|
964
|
+
/** @internal */
|
|
965
|
+
export declare const GetOnePromptContent$outboundSchema: z.ZodType<GetOnePromptContent$Outbound, z.ZodTypeDef, GetOnePromptContent>;
|
|
966
|
+
/**
|
|
967
|
+
* @internal
|
|
968
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
969
|
+
*/
|
|
970
|
+
export declare namespace GetOnePromptContent$ {
|
|
971
|
+
/** @deprecated use `GetOnePromptContent$inboundSchema` instead. */
|
|
972
|
+
const inboundSchema: z.ZodType<GetOnePromptContent, z.ZodTypeDef, unknown>;
|
|
973
|
+
/** @deprecated use `GetOnePromptContent$outboundSchema` instead. */
|
|
974
|
+
const outboundSchema: z.ZodType<GetOnePromptContent$Outbound, z.ZodTypeDef, GetOnePromptContent>;
|
|
975
|
+
/** @deprecated use `GetOnePromptContent$Outbound` instead. */
|
|
976
|
+
type Outbound = GetOnePromptContent$Outbound;
|
|
977
|
+
}
|
|
978
|
+
export declare function getOnePromptContentToJSON(getOnePromptContent: GetOnePromptContent): string;
|
|
979
|
+
export declare function getOnePromptContentFromJSON(jsonString: string): SafeParseResult<GetOnePromptContent, SDKValidationError>;
|
|
980
|
+
/** @internal */
|
|
981
|
+
export declare const GetOnePromptPromptsType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptPromptsType>;
|
|
982
|
+
/** @internal */
|
|
983
|
+
export declare const GetOnePromptPromptsType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptPromptsType>;
|
|
984
|
+
/**
|
|
985
|
+
* @internal
|
|
986
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
987
|
+
*/
|
|
988
|
+
export declare namespace GetOnePromptPromptsType$ {
|
|
989
|
+
/** @deprecated use `GetOnePromptPromptsType$inboundSchema` instead. */
|
|
990
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
991
|
+
readonly Function: "function";
|
|
992
|
+
}>;
|
|
993
|
+
/** @deprecated use `GetOnePromptPromptsType$outboundSchema` instead. */
|
|
994
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
995
|
+
readonly Function: "function";
|
|
996
|
+
}>;
|
|
997
|
+
}
|
|
998
|
+
/** @internal */
|
|
999
|
+
export declare const GetOnePromptFunction$inboundSchema: z.ZodType<GetOnePromptFunction, z.ZodTypeDef, unknown>;
|
|
1000
|
+
/** @internal */
|
|
1001
|
+
export type GetOnePromptFunction$Outbound = {
|
|
1002
|
+
name: string;
|
|
1003
|
+
arguments: string;
|
|
1004
|
+
};
|
|
1005
|
+
/** @internal */
|
|
1006
|
+
export declare const GetOnePromptFunction$outboundSchema: z.ZodType<GetOnePromptFunction$Outbound, z.ZodTypeDef, GetOnePromptFunction>;
|
|
1007
|
+
/**
|
|
1008
|
+
* @internal
|
|
1009
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1010
|
+
*/
|
|
1011
|
+
export declare namespace GetOnePromptFunction$ {
|
|
1012
|
+
/** @deprecated use `GetOnePromptFunction$inboundSchema` instead. */
|
|
1013
|
+
const inboundSchema: z.ZodType<GetOnePromptFunction, z.ZodTypeDef, unknown>;
|
|
1014
|
+
/** @deprecated use `GetOnePromptFunction$outboundSchema` instead. */
|
|
1015
|
+
const outboundSchema: z.ZodType<GetOnePromptFunction$Outbound, z.ZodTypeDef, GetOnePromptFunction>;
|
|
1016
|
+
/** @deprecated use `GetOnePromptFunction$Outbound` instead. */
|
|
1017
|
+
type Outbound = GetOnePromptFunction$Outbound;
|
|
1018
|
+
}
|
|
1019
|
+
export declare function getOnePromptFunctionToJSON(getOnePromptFunction: GetOnePromptFunction): string;
|
|
1020
|
+
export declare function getOnePromptFunctionFromJSON(jsonString: string): SafeParseResult<GetOnePromptFunction, SDKValidationError>;
|
|
1021
|
+
/** @internal */
|
|
1022
|
+
export declare const GetOnePromptToolCalls$inboundSchema: z.ZodType<GetOnePromptToolCalls, z.ZodTypeDef, unknown>;
|
|
1023
|
+
/** @internal */
|
|
1024
|
+
export type GetOnePromptToolCalls$Outbound = {
|
|
1025
|
+
id?: string | undefined;
|
|
1026
|
+
index?: number | undefined;
|
|
1027
|
+
type: string;
|
|
1028
|
+
function: GetOnePromptFunction$Outbound;
|
|
1029
|
+
};
|
|
1030
|
+
/** @internal */
|
|
1031
|
+
export declare const GetOnePromptToolCalls$outboundSchema: z.ZodType<GetOnePromptToolCalls$Outbound, z.ZodTypeDef, GetOnePromptToolCalls>;
|
|
1032
|
+
/**
|
|
1033
|
+
* @internal
|
|
1034
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1035
|
+
*/
|
|
1036
|
+
export declare namespace GetOnePromptToolCalls$ {
|
|
1037
|
+
/** @deprecated use `GetOnePromptToolCalls$inboundSchema` instead. */
|
|
1038
|
+
const inboundSchema: z.ZodType<GetOnePromptToolCalls, z.ZodTypeDef, unknown>;
|
|
1039
|
+
/** @deprecated use `GetOnePromptToolCalls$outboundSchema` instead. */
|
|
1040
|
+
const outboundSchema: z.ZodType<GetOnePromptToolCalls$Outbound, z.ZodTypeDef, GetOnePromptToolCalls>;
|
|
1041
|
+
/** @deprecated use `GetOnePromptToolCalls$Outbound` instead. */
|
|
1042
|
+
type Outbound = GetOnePromptToolCalls$Outbound;
|
|
1043
|
+
}
|
|
1044
|
+
export declare function getOnePromptToolCallsToJSON(getOnePromptToolCalls: GetOnePromptToolCalls): string;
|
|
1045
|
+
export declare function getOnePromptToolCallsFromJSON(jsonString: string): SafeParseResult<GetOnePromptToolCalls, SDKValidationError>;
|
|
1046
|
+
/** @internal */
|
|
1047
|
+
export declare const GetOnePromptMessages$inboundSchema: z.ZodType<GetOnePromptMessages, z.ZodTypeDef, unknown>;
|
|
1048
|
+
/** @internal */
|
|
1049
|
+
export type GetOnePromptMessages$Outbound = {
|
|
1050
|
+
role: string;
|
|
1051
|
+
content: string | Array<GetOnePrompt21$Outbound | GetOnePrompt22$Outbound>;
|
|
1052
|
+
tool_calls?: Array<GetOnePromptToolCalls$Outbound> | undefined;
|
|
1053
|
+
};
|
|
1054
|
+
/** @internal */
|
|
1055
|
+
export declare const GetOnePromptMessages$outboundSchema: z.ZodType<GetOnePromptMessages$Outbound, z.ZodTypeDef, GetOnePromptMessages>;
|
|
1056
|
+
/**
|
|
1057
|
+
* @internal
|
|
1058
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1059
|
+
*/
|
|
1060
|
+
export declare namespace GetOnePromptMessages$ {
|
|
1061
|
+
/** @deprecated use `GetOnePromptMessages$inboundSchema` instead. */
|
|
1062
|
+
const inboundSchema: z.ZodType<GetOnePromptMessages, z.ZodTypeDef, unknown>;
|
|
1063
|
+
/** @deprecated use `GetOnePromptMessages$outboundSchema` instead. */
|
|
1064
|
+
const outboundSchema: z.ZodType<GetOnePromptMessages$Outbound, z.ZodTypeDef, GetOnePromptMessages>;
|
|
1065
|
+
/** @deprecated use `GetOnePromptMessages$Outbound` instead. */
|
|
1066
|
+
type Outbound = GetOnePromptMessages$Outbound;
|
|
1067
|
+
}
|
|
1068
|
+
export declare function getOnePromptMessagesToJSON(getOnePromptMessages: GetOnePromptMessages): string;
|
|
1069
|
+
export declare function getOnePromptMessagesFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessages, SDKValidationError>;
|
|
1070
|
+
/** @internal */
|
|
1071
|
+
export declare const GetOnePromptPromptConfig$inboundSchema: z.ZodType<GetOnePromptPromptConfig, z.ZodTypeDef, unknown>;
|
|
1072
|
+
/** @internal */
|
|
1073
|
+
export type GetOnePromptPromptConfig$Outbound = {
|
|
1074
|
+
stream?: boolean | undefined;
|
|
1075
|
+
model?: string | undefined;
|
|
1076
|
+
model_db_id?: string | undefined;
|
|
1077
|
+
model_type?: string | undefined;
|
|
1078
|
+
model_parameters?: GetOnePromptModelParameters$Outbound | undefined;
|
|
1079
|
+
provider?: string | undefined;
|
|
1080
|
+
integration_id?: string | null | undefined;
|
|
1081
|
+
version?: string | undefined;
|
|
1082
|
+
messages: Array<GetOnePromptMessages$Outbound>;
|
|
1083
|
+
};
|
|
1084
|
+
/** @internal */
|
|
1085
|
+
export declare const GetOnePromptPromptConfig$outboundSchema: z.ZodType<GetOnePromptPromptConfig$Outbound, z.ZodTypeDef, GetOnePromptPromptConfig>;
|
|
1086
|
+
/**
|
|
1087
|
+
* @internal
|
|
1088
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1089
|
+
*/
|
|
1090
|
+
export declare namespace GetOnePromptPromptConfig$ {
|
|
1091
|
+
/** @deprecated use `GetOnePromptPromptConfig$inboundSchema` instead. */
|
|
1092
|
+
const inboundSchema: z.ZodType<GetOnePromptPromptConfig, z.ZodTypeDef, unknown>;
|
|
1093
|
+
/** @deprecated use `GetOnePromptPromptConfig$outboundSchema` instead. */
|
|
1094
|
+
const outboundSchema: z.ZodType<GetOnePromptPromptConfig$Outbound, z.ZodTypeDef, GetOnePromptPromptConfig>;
|
|
1095
|
+
/** @deprecated use `GetOnePromptPromptConfig$Outbound` instead. */
|
|
1096
|
+
type Outbound = GetOnePromptPromptConfig$Outbound;
|
|
1097
|
+
}
|
|
1098
|
+
export declare function getOnePromptPromptConfigToJSON(getOnePromptPromptConfig: GetOnePromptPromptConfig): string;
|
|
1099
|
+
export declare function getOnePromptPromptConfigFromJSON(jsonString: string): SafeParseResult<GetOnePromptPromptConfig, SDKValidationError>;
|
|
1100
|
+
/** @internal */
|
|
1101
|
+
export declare const GetOnePromptUseCases$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptUseCases>;
|
|
1102
|
+
/** @internal */
|
|
1103
|
+
export declare const GetOnePromptUseCases$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptUseCases>;
|
|
1104
|
+
/**
|
|
1105
|
+
* @internal
|
|
1106
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1107
|
+
*/
|
|
1108
|
+
export declare namespace GetOnePromptUseCases$ {
|
|
1109
|
+
/** @deprecated use `GetOnePromptUseCases$inboundSchema` instead. */
|
|
1110
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1111
|
+
readonly Agents: "Agents";
|
|
1112
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
1113
|
+
readonly APIInteraction: "API interaction";
|
|
1114
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
1115
|
+
readonly Chatbots: "Chatbots";
|
|
1116
|
+
readonly Classification: "Classification";
|
|
1117
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
1118
|
+
readonly CodeWriting: "Code writing";
|
|
1119
|
+
readonly DocumentsQA: "Documents QA";
|
|
1120
|
+
readonly Conversation: "Conversation";
|
|
1121
|
+
readonly Extraction: "Extraction";
|
|
1122
|
+
readonly MultiModal: "Multi-modal";
|
|
1123
|
+
readonly SelfChecking: "Self-checking";
|
|
1124
|
+
readonly Sql: "SQL";
|
|
1125
|
+
readonly Summarization: "Summarization";
|
|
1126
|
+
readonly Tagging: "Tagging";
|
|
1127
|
+
}>;
|
|
1128
|
+
/** @deprecated use `GetOnePromptUseCases$outboundSchema` instead. */
|
|
1129
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1130
|
+
readonly Agents: "Agents";
|
|
1131
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
1132
|
+
readonly APIInteraction: "API interaction";
|
|
1133
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
1134
|
+
readonly Chatbots: "Chatbots";
|
|
1135
|
+
readonly Classification: "Classification";
|
|
1136
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
1137
|
+
readonly CodeWriting: "Code writing";
|
|
1138
|
+
readonly DocumentsQA: "Documents QA";
|
|
1139
|
+
readonly Conversation: "Conversation";
|
|
1140
|
+
readonly Extraction: "Extraction";
|
|
1141
|
+
readonly MultiModal: "Multi-modal";
|
|
1142
|
+
readonly SelfChecking: "Self-checking";
|
|
1143
|
+
readonly Sql: "SQL";
|
|
1144
|
+
readonly Summarization: "Summarization";
|
|
1145
|
+
readonly Tagging: "Tagging";
|
|
1146
|
+
}>;
|
|
1147
|
+
}
|
|
1148
|
+
/** @internal */
|
|
1149
|
+
export declare const GetOnePromptLanguage$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptLanguage>;
|
|
1150
|
+
/** @internal */
|
|
1151
|
+
export declare const GetOnePromptLanguage$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptLanguage>;
|
|
1152
|
+
/**
|
|
1153
|
+
* @internal
|
|
1154
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1155
|
+
*/
|
|
1156
|
+
export declare namespace GetOnePromptLanguage$ {
|
|
1157
|
+
/** @deprecated use `GetOnePromptLanguage$inboundSchema` instead. */
|
|
1158
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1159
|
+
readonly Chinese: "Chinese";
|
|
1160
|
+
readonly Dutch: "Dutch";
|
|
1161
|
+
readonly English: "English";
|
|
1162
|
+
readonly French: "French";
|
|
1163
|
+
readonly German: "German";
|
|
1164
|
+
readonly Russian: "Russian";
|
|
1165
|
+
readonly Spanish: "Spanish";
|
|
1166
|
+
}>;
|
|
1167
|
+
/** @deprecated use `GetOnePromptLanguage$outboundSchema` instead. */
|
|
1168
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1169
|
+
readonly Chinese: "Chinese";
|
|
1170
|
+
readonly Dutch: "Dutch";
|
|
1171
|
+
readonly English: "English";
|
|
1172
|
+
readonly French: "French";
|
|
1173
|
+
readonly German: "German";
|
|
1174
|
+
readonly Russian: "Russian";
|
|
1175
|
+
readonly Spanish: "Spanish";
|
|
1176
|
+
}>;
|
|
1177
|
+
}
|
|
1178
|
+
/** @internal */
|
|
1179
|
+
export declare const GetOnePromptMetadata$inboundSchema: z.ZodType<GetOnePromptMetadata, z.ZodTypeDef, unknown>;
|
|
1180
|
+
/** @internal */
|
|
1181
|
+
export type GetOnePromptMetadata$Outbound = {
|
|
1182
|
+
use_cases?: Array<string> | undefined;
|
|
1183
|
+
language?: string | undefined;
|
|
1184
|
+
};
|
|
1185
|
+
/** @internal */
|
|
1186
|
+
export declare const GetOnePromptMetadata$outboundSchema: z.ZodType<GetOnePromptMetadata$Outbound, z.ZodTypeDef, GetOnePromptMetadata>;
|
|
1187
|
+
/**
|
|
1188
|
+
* @internal
|
|
1189
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1190
|
+
*/
|
|
1191
|
+
export declare namespace GetOnePromptMetadata$ {
|
|
1192
|
+
/** @deprecated use `GetOnePromptMetadata$inboundSchema` instead. */
|
|
1193
|
+
const inboundSchema: z.ZodType<GetOnePromptMetadata, z.ZodTypeDef, unknown>;
|
|
1194
|
+
/** @deprecated use `GetOnePromptMetadata$outboundSchema` instead. */
|
|
1195
|
+
const outboundSchema: z.ZodType<GetOnePromptMetadata$Outbound, z.ZodTypeDef, GetOnePromptMetadata>;
|
|
1196
|
+
/** @deprecated use `GetOnePromptMetadata$Outbound` instead. */
|
|
1197
|
+
type Outbound = GetOnePromptMetadata$Outbound;
|
|
1198
|
+
}
|
|
1199
|
+
export declare function getOnePromptMetadataToJSON(getOnePromptMetadata: GetOnePromptMetadata): string;
|
|
1200
|
+
export declare function getOnePromptMetadataFromJSON(jsonString: string): SafeParseResult<GetOnePromptMetadata, SDKValidationError>;
|
|
1201
|
+
/** @internal */
|
|
1202
|
+
export declare const GetOnePromptResponseBody$inboundSchema: z.ZodType<GetOnePromptResponseBody, z.ZodTypeDef, unknown>;
|
|
1203
|
+
/** @internal */
|
|
1204
|
+
export type GetOnePromptResponseBody$Outbound = {
|
|
1205
|
+
_id: string;
|
|
1206
|
+
type: string;
|
|
1207
|
+
owner: string;
|
|
1208
|
+
domain_id: string;
|
|
1209
|
+
created: string;
|
|
1210
|
+
updated: string;
|
|
1211
|
+
created_by_id?: string | undefined;
|
|
1212
|
+
updated_by_id?: string | undefined;
|
|
1213
|
+
display_name: string;
|
|
1214
|
+
description?: string | null | undefined;
|
|
1215
|
+
prompt_config: GetOnePromptPromptConfig$Outbound;
|
|
1216
|
+
metadata?: GetOnePromptMetadata$Outbound | undefined;
|
|
1217
|
+
};
|
|
1218
|
+
/** @internal */
|
|
1219
|
+
export declare const GetOnePromptResponseBody$outboundSchema: z.ZodType<GetOnePromptResponseBody$Outbound, z.ZodTypeDef, GetOnePromptResponseBody>;
|
|
1220
|
+
/**
|
|
1221
|
+
* @internal
|
|
1222
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1223
|
+
*/
|
|
1224
|
+
export declare namespace GetOnePromptResponseBody$ {
|
|
1225
|
+
/** @deprecated use `GetOnePromptResponseBody$inboundSchema` instead. */
|
|
1226
|
+
const inboundSchema: z.ZodType<GetOnePromptResponseBody, z.ZodTypeDef, unknown>;
|
|
1227
|
+
/** @deprecated use `GetOnePromptResponseBody$outboundSchema` instead. */
|
|
1228
|
+
const outboundSchema: z.ZodType<GetOnePromptResponseBody$Outbound, z.ZodTypeDef, GetOnePromptResponseBody>;
|
|
1229
|
+
/** @deprecated use `GetOnePromptResponseBody$Outbound` instead. */
|
|
1230
|
+
type Outbound = GetOnePromptResponseBody$Outbound;
|
|
1231
|
+
}
|
|
1232
|
+
export declare function getOnePromptResponseBodyToJSON(getOnePromptResponseBody: GetOnePromptResponseBody): string;
|
|
1233
|
+
export declare function getOnePromptResponseBodyFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseBody, SDKValidationError>;
|
|
32
1234
|
//# sourceMappingURL=getoneprompt.d.ts.map
|