@orq-ai/node 3.0.1 → 3.1.0-rc.26
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 +28 -39
- package/docs/sdks/deployments/README.md +86 -9
- package/docs/sdks/files/README.md +2 -170
- package/docs/sdks/orq/README.md +1 -1
- package/docs/sdks/prompts/README.md +97 -181
- package/{packages/orq-rc/docs/sdks/files → docs/sdks/promptsnippets}/README.md +134 -144
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +5 -1
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/deploymentsGetConfig.d.ts.map +1 -1
- package/funcs/deploymentsGetConfig.js +5 -1
- package/funcs/deploymentsGetConfig.js.map +1 -1
- 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/{deploymentsAll.d.ts → deploymentsList.d.ts} +2 -2
- package/funcs/deploymentsList.d.ts.map +1 -0
- package/funcs/{deploymentsAll.js → deploymentsList.js} +10 -5
- package/funcs/deploymentsList.js.map +1 -0
- package/funcs/deploymentsMetricsCreate.d.ts.map +1 -1
- package/funcs/deploymentsMetricsCreate.js +5 -1
- package/funcs/deploymentsMetricsCreate.js.map +1 -1
- package/funcs/deploymentsStream.d.ts +16 -0
- package/funcs/deploymentsStream.d.ts.map +1 -0
- package/funcs/deploymentsStream.js +125 -0
- package/funcs/deploymentsStream.js.map +1 -0
- package/funcs/feedbackCreate.d.ts.map +1 -1
- package/funcs/feedbackCreate.js +5 -1
- package/funcs/feedbackCreate.js.map +1 -1
- package/funcs/filesDelete.d.ts.map +1 -1
- package/funcs/filesDelete.js +5 -1
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesGet.d.ts.map +1 -1
- package/funcs/filesGet.js +5 -1
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +5 -1
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpload.d.ts.map +1 -1
- package/funcs/filesUpload.js +5 -1
- package/funcs/filesUpload.js.map +1 -1
- package/funcs/{promptsCreateVersion.d.ts → promptSnippetsCreate.d.ts} +3 -3
- package/funcs/promptSnippetsCreate.d.ts.map +1 -0
- package/funcs/{promptsGetAll.js → promptSnippetsCreate.js} +12 -8
- package/funcs/promptSnippetsCreate.js.map +1 -0
- package/funcs/{filesUpdate.d.ts → promptSnippetsDelete.d.ts} +3 -3
- package/funcs/{promptsCreateVersion.d.ts.map → promptSnippetsDelete.d.ts.map} +1 -1
- package/funcs/{promptsDuplicate.js → promptSnippetsDelete.js} +13 -9
- 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} +11 -7
- package/funcs/promptSnippetsGet.js.map +1 -0
- package/funcs/{promptSnippetsFindOne.d.ts → promptSnippetsGetByKey.d.ts} +3 -3
- package/funcs/promptSnippetsGetByKey.d.ts.map +1 -0
- package/funcs/{promptsCreateVersion.js → promptSnippetsGetByKey.js} +16 -13
- package/funcs/promptSnippetsGetByKey.js.map +1 -0
- package/funcs/promptSnippetsUpdate.d.ts +13 -0
- package/funcs/promptSnippetsUpdate.d.ts.map +1 -0
- package/funcs/{filesUpdate.js → promptSnippetsUpdate.js} +17 -9
- package/funcs/promptSnippetsUpdate.js.map +1 -0
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.d.ts.map +1 -1
- package/funcs/promptsCreate.js +7 -3
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.d.ts.map +1 -1
- package/funcs/promptsDelete.js +6 -2
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/{promptsGetOne.d.ts → promptsGet.d.ts} +3 -3
- package/funcs/promptsGet.d.ts.map +1 -0
- package/funcs/{promptsGetOne.js → promptsGet.js} +10 -6
- package/funcs/promptsGet.js.map +1 -0
- package/funcs/{promptsDuplicate.d.ts → promptsList.d.ts} +3 -3
- package/funcs/{filesUpdate.d.ts.map → promptsList.d.ts.map} +1 -1
- package/funcs/{promptTemplatesGetAll.js → promptsList.js} +17 -13
- package/funcs/promptsList.js.map +1 -0
- package/funcs/promptsUpdate.d.ts.map +1 -1
- package/funcs/promptsUpdate.js +6 -2
- package/funcs/promptsUpdate.js.map +1 -1
- package/funcs/remoteconfigGetConfig.d.ts.map +1 -1
- package/funcs/remoteconfigGetConfig.js +5 -1
- package/funcs/remoteconfigGetConfig.js.map +1 -1
- package/hooks/global.d.ts +5 -0
- package/hooks/global.d.ts.map +1 -0
- package/hooks/global.js +35 -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 +28 -0
- 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/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +4 -1
- package/lib/schemas.js.map +1 -1
- package/lib/sdks.js +1 -1
- package/lib/sdks.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -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/{operations/duplicateprompt.js → errors/updatepromptsnippet.js} +33 -23
- package/models/errors/updatepromptsnippet.js.map +1 -0
- package/models/operations/createcontact.d.ts +25 -0
- package/models/operations/createcontact.d.ts.map +1 -1
- package/models/operations/createcontact.js +30 -3
- package/models/operations/createcontact.js.map +1 -1
- package/models/operations/createfeedback.d.ts +25 -0
- package/models/operations/createfeedback.d.ts.map +1 -1
- package/models/operations/createfeedback.js +28 -1
- package/models/operations/createfeedback.js.map +1 -1
- package/models/operations/createprompt.d.ts +2199 -748
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +1628 -486
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createpromptsnippet.d.ts +3490 -0
- package/models/operations/createpromptsnippet.d.ts.map +1 -0
- package/models/operations/createpromptsnippet.js +3018 -0
- package/models/operations/createpromptsnippet.js.map +1 -0
- package/models/operations/deleteprompt.d.ts +25 -0
- package/models/operations/deleteprompt.d.ts.map +1 -1
- package/models/operations/deleteprompt.js +28 -1
- package/models/operations/deleteprompt.js.map +1 -1
- package/models/operations/deletepromptsnippet.d.ts +57 -0
- package/models/operations/deletepromptsnippet.d.ts.map +1 -0
- package/models/operations/deletepromptsnippet.js +96 -0
- package/models/operations/deletepromptsnippet.js.map +1 -0
- package/models/operations/deploymentcreatemetric.d.ts +25 -0
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +29 -2
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +25 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +31 -4
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +23 -683
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +23 -614
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +40 -8
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +46 -13
- 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/filedelete.d.ts +25 -0
- package/models/operations/filedelete.d.ts.map +1 -1
- package/models/operations/filedelete.js +28 -1
- package/models/operations/filedelete.js.map +1 -1
- package/models/operations/fileget.d.ts +25 -0
- package/models/operations/fileget.d.ts.map +1 -1
- package/models/operations/fileget.js +30 -3
- package/models/operations/fileget.js.map +1 -1
- package/models/operations/filelist.d.ts +26 -5
- package/models/operations/filelist.d.ts.map +1 -1
- package/models/operations/filelist.js +32 -13
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/fileupload.d.ts +25 -0
- package/models/operations/fileupload.d.ts.map +1 -1
- package/models/operations/fileupload.js +30 -3
- package/models/operations/fileupload.js.map +1 -1
- package/models/operations/findonebykeypromptsnippet.d.ts +2405 -0
- package/models/operations/findonebykeypromptsnippet.d.ts.map +1 -0
- package/models/operations/findonebykeypromptsnippet.js +2113 -0
- package/models/operations/findonebykeypromptsnippet.js.map +1 -0
- package/models/operations/findonepromptsnippet.d.ts +891 -4764
- package/models/operations/findonepromptsnippet.d.ts.map +1 -1
- package/models/operations/findonepromptsnippet.js +966 -4752
- package/models/operations/findonepromptsnippet.js.map +1 -1
- package/models/operations/getallprompts.d.ts +907 -9115
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +923 -8166
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +25 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +28 -1
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/index.d.ts +5 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -5
- package/models/operations/index.js.map +1 -1
- package/models/operations/remoteconfigsgetconfig.d.ts +25 -0
- package/models/operations/remoteconfigsgetconfig.d.ts.map +1 -1
- package/models/operations/remoteconfigsgetconfig.js +28 -1
- package/models/operations/remoteconfigsgetconfig.js.map +1 -1
- package/models/operations/updateprompt.d.ts +1363 -5103
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1020 -4666
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatepromptsnippet.d.ts +3518 -0
- package/models/operations/updatepromptsnippet.d.ts.map +1 -0
- package/models/operations/updatepromptsnippet.js +3076 -0
- package/models/operations/updatepromptsnippet.js.map +1 -0
- package/package.json +8 -8
- package/sdk/deployments.d.ts +10 -6
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +14 -6
- 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 +7 -15
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +12 -26
- package/sdk/prompts.js.map +1 -1
- package/sdk/promptsnippets.d.ts +25 -0
- package/sdk/promptsnippets.d.ts.map +1 -0
- package/sdk/promptsnippets.js +47 -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/contactsCreate.ts +7 -2
- package/src/funcs/deploymentsGetConfig.ts +7 -2
- package/src/funcs/deploymentsInvoke.ts +23 -17
- package/src/funcs/{deploymentsAll.ts → deploymentsList.ts} +10 -4
- package/src/funcs/deploymentsMetricsCreate.ts +6 -1
- package/src/funcs/{filesUpdate.ts → deploymentsStream.ts} +42 -21
- package/src/funcs/feedbackCreate.ts +7 -2
- package/src/funcs/filesDelete.ts +6 -1
- package/src/funcs/filesGet.ts +6 -1
- package/src/funcs/filesList.ts +7 -2
- package/src/funcs/filesUpload.ts +7 -2
- package/src/funcs/{promptsCreateVersion.ts → promptSnippetsCreate.ts} +20 -18
- package/src/funcs/{promptsDuplicate.ts → promptSnippetsDelete.ts} +14 -8
- package/src/funcs/{promptSnippetsFindOne.ts → promptSnippetsGet.ts} +10 -5
- package/{packages/orq-rc/src/funcs/promptSnippetsFindOne.ts → src/funcs/promptSnippetsGetByKey.ts} +20 -12
- package/{packages/orq-rc/src/funcs/promptsUpdate.ts → src/funcs/promptSnippetsUpdate.ts} +22 -15
- package/src/funcs/promptsCreate.ts +9 -4
- package/src/funcs/promptsDelete.ts +7 -2
- package/src/funcs/{promptsGetOne.ts → promptsGet.ts} +9 -4
- package/src/funcs/{promptsGetAll.ts → promptsList.ts} +21 -14
- package/src/funcs/promptsUpdate.ts +7 -2
- package/src/funcs/remoteconfigGetConfig.ts +7 -2
- package/src/hooks/global.ts +38 -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/schemas.ts +5 -0
- package/src/lib/sdks.ts +2 -2
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/updatepromptsnippet.ts +71 -0
- package/src/models/operations/createcontact.ts +60 -2
- package/src/models/operations/createfeedback.ts +58 -0
- package/src/models/operations/createprompt.ts +3795 -1345
- package/src/models/operations/createpromptsnippet.ts +6189 -0
- package/src/models/operations/deleteprompt.ts +58 -0
- package/src/models/operations/deletepromptsnippet.ts +127 -0
- package/src/models/operations/deploymentcreatemetric.ts +60 -0
- package/src/models/operations/deploymentgetconfig.ts +58 -0
- package/src/models/operations/deploymentinvoke.ts +182 -1423
- package/src/models/operations/deployments.ts +83 -18
- package/src/models/operations/deploymentstream.ts +3062 -0
- package/src/models/operations/filedelete.ts +58 -0
- package/src/models/operations/fileget.ts +56 -2
- package/src/models/operations/filelist.ts +61 -17
- package/src/models/operations/fileupload.ts +60 -2
- package/src/models/operations/findonebykeypromptsnippet.ts +4461 -0
- package/src/models/operations/findonepromptsnippet.ts +1779 -11084
- package/src/models/operations/getallprompts.ts +1595 -16105
- package/src/models/operations/getoneprompt.ts +58 -0
- package/src/models/operations/index.ts +5 -5
- package/src/models/operations/remoteconfigsgetconfig.ts +60 -0
- package/src/models/operations/updateprompt.ts +2571 -10999
- package/src/models/operations/updatepromptsnippet.ts +6483 -0
- package/src/sdk/deployments.ts +25 -11
- package/src/sdk/files.ts +0 -33
- package/src/sdk/prompts.ts +15 -45
- package/src/sdk/promptsnippets.ts +84 -0
- package/src/sdk/sdk.ts +4 -4
- package/tsconfig.json +41 -0
- package/docs/sdks/prompt/README.md +0 -6
- package/docs/sdks/snippets/README.md +0 -84
- package/docs/sdks/templates/README.md +0 -80
- package/funcs/deploymentsAll.d.ts.map +0 -1
- package/funcs/deploymentsAll.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.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.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 -2003
- package/models/operations/createpromptversion.d.ts.map +0 -1
- package/models/operations/createpromptversion.js +0 -1852
- package/models/operations/createpromptversion.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 -6607
- package/models/operations/getallprompttemplates.d.ts.map +0 -1
- package/models/operations/getallprompttemplates.js +0 -6225
- package/models/operations/getallprompttemplates.js.map +0 -1
- package/packages/orq-rc/FUNCTIONS.md +0 -106
- package/packages/orq-rc/README.md +0 -564
- package/packages/orq-rc/RUNTIMES.md +0 -22
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -239
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
- package/packages/orq-rc/docs/sdks/prompt/README.md +0 -6
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -533
- package/packages/orq-rc/docs/sdks/remoteconfig/README.md +0 -80
- package/packages/orq-rc/docs/sdks/snippets/README.md +0 -84
- package/packages/orq-rc/docs/sdks/templates/README.md +0 -80
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -124
- package/packages/orq-rc/src/funcs/deploymentsAll.ts +0 -138
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -132
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -135
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -132
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -124
- package/packages/orq-rc/src/funcs/filesBulkUpload.ts +0 -126
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -128
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -127
- package/packages/orq-rc/src/funcs/filesList.ts +0 -129
- package/packages/orq-rc/src/funcs/filesUpdate.ts +0 -128
- package/packages/orq-rc/src/funcs/filesUpload.ts +0 -145
- package/packages/orq-rc/src/funcs/promptTemplatesGetAll.ts +0 -130
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -124
- package/packages/orq-rc/src/funcs/promptsCreateVersion.ts +0 -129
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -128
- package/packages/orq-rc/src/funcs/promptsDuplicate.ts +0 -128
- package/packages/orq-rc/src/funcs/promptsGetAll.ts +0 -126
- package/packages/orq-rc/src/funcs/promptsGetOne.ts +0 -128
- package/packages/orq-rc/src/funcs/remoteconfigGetConfig.ts +0 -125
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -14
- package/packages/orq-rc/src/hooks/types.ts +0 -109
- package/packages/orq-rc/src/index.ts +0 -7
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -60
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -449
- package/packages/orq-rc/src/lib/env.ts +0 -41
- package/packages/orq-rc/src/lib/event-streams.ts +0 -264
- package/packages/orq-rc/src/lib/files.ts +0 -40
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -325
- package/packages/orq-rc/src/lib/primitives.ts +0 -122
- package/packages/orq-rc/src/lib/retries.ts +0 -219
- package/packages/orq-rc/src/lib/schemas.ts +0 -86
- package/packages/orq-rc/src/lib/sdks.ts +0 -397
- package/packages/orq-rc/src/lib/security.ts +0 -254
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/models/components/deployments.ts +0 -1673
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/security.ts +0 -71
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -27
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -9
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
- package/packages/orq-rc/src/models/operations/bulkfileupload.ts +0 -315
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -3461
- package/packages/orq-rc/src/models/operations/createpromptversion.ts +0 -3703
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -1790
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -3483
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -2385
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2098
- package/packages/orq-rc/src/models/operations/duplicateprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -222
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -333
- package/packages/orq-rc/src/models/operations/fileupdate.ts +0 -298
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -322
- package/packages/orq-rc/src/models/operations/findonepromptsnippet.ts +0 -13629
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -18640
- package/packages/orq-rc/src/models/operations/getallprompttemplates.ts +0 -13690
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/index.ts +0 -26
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -14407
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/deployments.ts +0 -75
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -105
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/prompt.ts +0 -19
- package/packages/orq-rc/src/sdk/prompts.ts +0 -114
- package/packages/orq-rc/src/sdk/remoteconfig.ts +0 -24
- package/packages/orq-rc/src/sdk/sdk.ts +0 -49
- package/packages/orq-rc/src/sdk/snippets.ts +0 -24
- package/packages/orq-rc/src/sdk/templates.ts +0 -24
- package/packages/orq-rc/src/types/blobs.ts +0 -31
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -16
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- 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/funcs/filesBulkUpload.ts +0 -128
- package/src/funcs/promptTemplatesGetAll.ts +0 -131
- package/src/models/operations/bulkfileupload.ts +0 -315
- package/src/models/operations/createpromptversion.ts +0 -3703
- package/src/models/operations/duplicateprompt.ts +0 -69
- package/src/models/operations/fileupdate.ts +0 -298
- package/src/models/operations/getallprompttemplates.ts +0 -13690
- package/src/sdk/prompt.ts +0 -19
- package/src/sdk/snippets.ts +0 -24
- package/src/sdk/templates.ts +0 -24
|
@@ -2,10 +2,13 @@ import * as z from "zod";
|
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type CreatePromptGlobals = {
|
|
6
|
+
contactId?: string | undefined;
|
|
7
|
+
};
|
|
5
8
|
/**
|
|
6
9
|
* The type of the model
|
|
7
10
|
*/
|
|
8
|
-
export declare const
|
|
11
|
+
export declare const CreatePromptModelType: {
|
|
9
12
|
readonly Chat: "chat";
|
|
10
13
|
readonly Completion: "completion";
|
|
11
14
|
readonly Embedding: "embedding";
|
|
@@ -19,11 +22,11 @@ export declare const ModelType: {
|
|
|
19
22
|
/**
|
|
20
23
|
* The type of the model
|
|
21
24
|
*/
|
|
22
|
-
export type
|
|
25
|
+
export type CreatePromptModelType = ClosedEnum<typeof CreatePromptModelType>;
|
|
23
26
|
/**
|
|
24
27
|
* Only supported on `image` models.
|
|
25
28
|
*/
|
|
26
|
-
export declare const
|
|
29
|
+
export declare const CreatePromptFormat: {
|
|
27
30
|
readonly Url: "url";
|
|
28
31
|
readonly B64Json: "b64_json";
|
|
29
32
|
readonly Text: "text";
|
|
@@ -32,39 +35,39 @@ export declare const Format: {
|
|
|
32
35
|
/**
|
|
33
36
|
* Only supported on `image` models.
|
|
34
37
|
*/
|
|
35
|
-
export type
|
|
38
|
+
export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
|
|
36
39
|
/**
|
|
37
40
|
* Only supported on `image` models.
|
|
38
41
|
*/
|
|
39
|
-
export declare const
|
|
42
|
+
export declare const CreatePromptQuality: {
|
|
40
43
|
readonly Standard: "standard";
|
|
41
44
|
readonly Hd: "hd";
|
|
42
45
|
};
|
|
43
46
|
/**
|
|
44
47
|
* Only supported on `image` models.
|
|
45
48
|
*/
|
|
46
|
-
export type
|
|
47
|
-
export declare const
|
|
49
|
+
export type CreatePromptQuality = ClosedEnum<typeof CreatePromptQuality>;
|
|
50
|
+
export declare const CreatePromptResponseFormatPromptsType: {
|
|
48
51
|
readonly JsonObject: "json_object";
|
|
49
52
|
};
|
|
50
|
-
export type
|
|
51
|
-
export type
|
|
52
|
-
type:
|
|
53
|
+
export type CreatePromptResponseFormatPromptsType = ClosedEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
54
|
+
export type CreatePromptResponseFormat2 = {
|
|
55
|
+
type: CreatePromptResponseFormatPromptsType;
|
|
53
56
|
};
|
|
54
|
-
export declare const
|
|
57
|
+
export declare const CreatePromptResponseFormatType: {
|
|
55
58
|
readonly JsonSchema: "json_schema";
|
|
56
59
|
};
|
|
57
|
-
export type
|
|
58
|
-
export type
|
|
60
|
+
export type CreatePromptResponseFormatType = ClosedEnum<typeof CreatePromptResponseFormatType>;
|
|
61
|
+
export type CreatePromptResponseFormatJsonSchema = {
|
|
59
62
|
name: string;
|
|
60
63
|
strict: boolean;
|
|
61
64
|
schema: {
|
|
62
65
|
[k: string]: any;
|
|
63
66
|
};
|
|
64
67
|
};
|
|
65
|
-
export type
|
|
66
|
-
type:
|
|
67
|
-
jsonSchema:
|
|
68
|
+
export type CreatePromptResponseFormat1 = {
|
|
69
|
+
type: CreatePromptResponseFormatType;
|
|
70
|
+
jsonSchema: CreatePromptResponseFormatJsonSchema;
|
|
68
71
|
};
|
|
69
72
|
/**
|
|
70
73
|
* An object specifying the format that the model must output.
|
|
@@ -77,33 +80,33 @@ export type ResponseFormat1 = {
|
|
|
77
80
|
*
|
|
78
81
|
* 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.
|
|
79
82
|
*/
|
|
80
|
-
export type
|
|
83
|
+
export type CreatePromptResponseFormat = CreatePromptResponseFormat2 | CreatePromptResponseFormat1;
|
|
81
84
|
/**
|
|
82
85
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
83
86
|
*/
|
|
84
|
-
export declare const
|
|
87
|
+
export declare const CreatePromptPhotoRealVersion: {
|
|
85
88
|
readonly V1: "v1";
|
|
86
89
|
readonly V2: "v2";
|
|
87
90
|
};
|
|
88
91
|
/**
|
|
89
92
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
90
93
|
*/
|
|
91
|
-
export type
|
|
94
|
+
export type CreatePromptPhotoRealVersion = ClosedEnum<typeof CreatePromptPhotoRealVersion>;
|
|
92
95
|
/**
|
|
93
96
|
* The format to return the embeddings
|
|
94
97
|
*/
|
|
95
|
-
export declare const
|
|
98
|
+
export declare const CreatePromptEncodingFormat: {
|
|
96
99
|
readonly Float: "float";
|
|
97
100
|
readonly Base64: "base64";
|
|
98
101
|
};
|
|
99
102
|
/**
|
|
100
103
|
* The format to return the embeddings
|
|
101
104
|
*/
|
|
102
|
-
export type
|
|
105
|
+
export type CreatePromptEncodingFormat = ClosedEnum<typeof CreatePromptEncodingFormat>;
|
|
103
106
|
/**
|
|
104
107
|
* Model Parameters: Not all parameters apply to every model
|
|
105
108
|
*/
|
|
106
|
-
export type
|
|
109
|
+
export type CreatePromptModelParameters = {
|
|
107
110
|
/**
|
|
108
111
|
* Only supported on `chat` and `completion` models.
|
|
109
112
|
*/
|
|
@@ -139,7 +142,7 @@ export type ModelParameters = {
|
|
|
139
142
|
/**
|
|
140
143
|
* Only supported on `image` models.
|
|
141
144
|
*/
|
|
142
|
-
format?:
|
|
145
|
+
format?: CreatePromptFormat | undefined;
|
|
143
146
|
/**
|
|
144
147
|
* Only supported on `image` models.
|
|
145
148
|
*/
|
|
@@ -147,7 +150,7 @@ export type ModelParameters = {
|
|
|
147
150
|
/**
|
|
148
151
|
* Only supported on `image` models.
|
|
149
152
|
*/
|
|
150
|
-
quality?:
|
|
153
|
+
quality?: CreatePromptQuality | undefined;
|
|
151
154
|
/**
|
|
152
155
|
* Only supported on `image` models.
|
|
153
156
|
*/
|
|
@@ -163,17 +166,17 @@ export type ModelParameters = {
|
|
|
163
166
|
*
|
|
164
167
|
* 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.
|
|
165
168
|
*/
|
|
166
|
-
responseFormat?:
|
|
169
|
+
responseFormat?: CreatePromptResponseFormat2 | CreatePromptResponseFormat1 | null | undefined;
|
|
167
170
|
/**
|
|
168
171
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
169
172
|
*/
|
|
170
|
-
photoRealVersion?:
|
|
173
|
+
photoRealVersion?: CreatePromptPhotoRealVersion | undefined;
|
|
171
174
|
/**
|
|
172
175
|
* The format to return the embeddings
|
|
173
176
|
*/
|
|
174
|
-
encodingFormat?:
|
|
177
|
+
encodingFormat?: CreatePromptEncodingFormat | undefined;
|
|
175
178
|
};
|
|
176
|
-
export declare const
|
|
179
|
+
export declare const CreatePromptProvider: {
|
|
177
180
|
readonly Cohere: "cohere";
|
|
178
181
|
readonly Openai: "openai";
|
|
179
182
|
readonly Anthropic: "anthropic";
|
|
@@ -190,8 +193,10 @@ export declare const Provider: {
|
|
|
190
193
|
readonly Leonardoai: "leonardoai";
|
|
191
194
|
readonly Nvidia: "nvidia";
|
|
192
195
|
readonly Jina: "jina";
|
|
196
|
+
readonly Togetherai: "togetherai";
|
|
197
|
+
readonly Elevenlabs: "elevenlabs";
|
|
193
198
|
};
|
|
194
|
-
export type
|
|
199
|
+
export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
|
|
195
200
|
/**
|
|
196
201
|
* The role of the prompt message
|
|
197
202
|
*/
|
|
@@ -274,43 +279,97 @@ export type CreatePromptMessages = {
|
|
|
274
279
|
content: string | Array<CreatePrompt21 | CreatePrompt22>;
|
|
275
280
|
toolCalls?: Array<CreatePromptToolCalls> | undefined;
|
|
276
281
|
};
|
|
277
|
-
|
|
282
|
+
/**
|
|
283
|
+
* A list of messages compatible with the openAI schema
|
|
284
|
+
*/
|
|
285
|
+
export type CreatePromptPromptConfig = {
|
|
278
286
|
stream?: boolean | undefined;
|
|
279
287
|
model?: string | undefined;
|
|
280
288
|
/**
|
|
281
289
|
* The type of the model
|
|
282
290
|
*/
|
|
283
|
-
modelType?:
|
|
291
|
+
modelType?: CreatePromptModelType | undefined;
|
|
284
292
|
/**
|
|
285
293
|
* Model Parameters: Not all parameters apply to every model
|
|
286
294
|
*/
|
|
287
|
-
modelParameters?:
|
|
288
|
-
provider?:
|
|
295
|
+
modelParameters?: CreatePromptModelParameters | undefined;
|
|
296
|
+
provider?: CreatePromptProvider | undefined;
|
|
289
297
|
version?: string | undefined;
|
|
290
298
|
messages: Array<CreatePromptMessages>;
|
|
291
299
|
};
|
|
300
|
+
export declare const CreatePromptUseCases: {
|
|
301
|
+
readonly Agents: "Agents";
|
|
302
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
303
|
+
readonly APIInteraction: "API interaction";
|
|
304
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
305
|
+
readonly Chatbots: "Chatbots";
|
|
306
|
+
readonly Classification: "Classification";
|
|
307
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
308
|
+
readonly CodeWriting: "Code writing";
|
|
309
|
+
readonly DocumentsQA: "Documents QA";
|
|
310
|
+
readonly Conversation: "Conversation";
|
|
311
|
+
readonly Extraction: "Extraction";
|
|
312
|
+
readonly MultiModal: "Multi-modal";
|
|
313
|
+
readonly SelfChecking: "Self-checking";
|
|
314
|
+
readonly Sql: "SQL";
|
|
315
|
+
readonly Summarization: "Summarization";
|
|
316
|
+
readonly Tagging: "Tagging";
|
|
317
|
+
};
|
|
318
|
+
export type CreatePromptUseCases = ClosedEnum<typeof CreatePromptUseCases>;
|
|
319
|
+
/**
|
|
320
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
321
|
+
*/
|
|
322
|
+
export declare const CreatePromptLanguage: {
|
|
323
|
+
readonly Chinese: "Chinese";
|
|
324
|
+
readonly Dutch: "Dutch";
|
|
325
|
+
readonly English: "English";
|
|
326
|
+
readonly French: "French";
|
|
327
|
+
readonly German: "German";
|
|
328
|
+
readonly Russian: "Russian";
|
|
329
|
+
readonly Spanish: "Spanish";
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
333
|
+
*/
|
|
334
|
+
export type CreatePromptLanguage = ClosedEnum<typeof CreatePromptLanguage>;
|
|
292
335
|
export type CreatePromptMetadata = {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
336
|
+
/**
|
|
337
|
+
* 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
|
|
338
|
+
*/
|
|
339
|
+
useCases?: Array<CreatePromptUseCases> | undefined;
|
|
340
|
+
/**
|
|
341
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
342
|
+
*/
|
|
343
|
+
language?: CreatePromptLanguage | undefined;
|
|
300
344
|
};
|
|
301
|
-
export type CreatePromptPromptsType = ClosedEnum<typeof CreatePromptPromptsType>;
|
|
302
345
|
export type CreatePromptRequestBody = {
|
|
346
|
+
/**
|
|
347
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
348
|
+
*/
|
|
303
349
|
displayName: string;
|
|
350
|
+
/**
|
|
351
|
+
* 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
|
|
352
|
+
*/
|
|
304
353
|
description?: string | null | undefined;
|
|
305
|
-
|
|
354
|
+
/**
|
|
355
|
+
* A list of messages compatible with the openAI schema
|
|
356
|
+
*/
|
|
357
|
+
promptConfig: CreatePromptPromptConfig;
|
|
306
358
|
metadata?: CreatePromptMetadata | undefined;
|
|
307
|
-
|
|
308
|
-
|
|
359
|
+
/**
|
|
360
|
+
* The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
|
|
361
|
+
*/
|
|
362
|
+
path: string;
|
|
363
|
+
};
|
|
364
|
+
export declare const CreatePromptOwner2: {
|
|
365
|
+
readonly Vendor: "vendor";
|
|
309
366
|
};
|
|
367
|
+
export type CreatePromptOwner2 = ClosedEnum<typeof CreatePromptOwner2>;
|
|
368
|
+
export type CreatePromptOwner = string | CreatePromptOwner2;
|
|
310
369
|
/**
|
|
311
370
|
* The type of the model
|
|
312
371
|
*/
|
|
313
|
-
export declare const
|
|
372
|
+
export declare const CreatePromptPromptsModelType: {
|
|
314
373
|
readonly Chat: "chat";
|
|
315
374
|
readonly Completion: "completion";
|
|
316
375
|
readonly Embedding: "embedding";
|
|
@@ -324,11 +383,11 @@ export declare const CreatePromptModelType: {
|
|
|
324
383
|
/**
|
|
325
384
|
* The type of the model
|
|
326
385
|
*/
|
|
327
|
-
export type
|
|
386
|
+
export type CreatePromptPromptsModelType = ClosedEnum<typeof CreatePromptPromptsModelType>;
|
|
328
387
|
/**
|
|
329
388
|
* Only supported on `image` models.
|
|
330
389
|
*/
|
|
331
|
-
export declare const
|
|
390
|
+
export declare const CreatePromptPromptsFormat: {
|
|
332
391
|
readonly Url: "url";
|
|
333
392
|
readonly B64Json: "b64_json";
|
|
334
393
|
readonly Text: "text";
|
|
@@ -337,39 +396,39 @@ export declare const CreatePromptFormat: {
|
|
|
337
396
|
/**
|
|
338
397
|
* Only supported on `image` models.
|
|
339
398
|
*/
|
|
340
|
-
export type
|
|
399
|
+
export type CreatePromptPromptsFormat = ClosedEnum<typeof CreatePromptPromptsFormat>;
|
|
341
400
|
/**
|
|
342
401
|
* Only supported on `image` models.
|
|
343
402
|
*/
|
|
344
|
-
export declare const
|
|
403
|
+
export declare const CreatePromptPromptsQuality: {
|
|
345
404
|
readonly Standard: "standard";
|
|
346
405
|
readonly Hd: "hd";
|
|
347
406
|
};
|
|
348
407
|
/**
|
|
349
408
|
* Only supported on `image` models.
|
|
350
409
|
*/
|
|
351
|
-
export type
|
|
352
|
-
export declare const
|
|
410
|
+
export type CreatePromptPromptsQuality = ClosedEnum<typeof CreatePromptPromptsQuality>;
|
|
411
|
+
export declare const CreatePromptResponseFormatPromptsResponse200Type: {
|
|
353
412
|
readonly JsonObject: "json_object";
|
|
354
413
|
};
|
|
355
|
-
export type
|
|
356
|
-
export type
|
|
357
|
-
type:
|
|
414
|
+
export type CreatePromptResponseFormatPromptsResponse200Type = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponse200Type>;
|
|
415
|
+
export type CreatePromptResponseFormatPrompts2 = {
|
|
416
|
+
type: CreatePromptResponseFormatPromptsResponse200Type;
|
|
358
417
|
};
|
|
359
|
-
export declare const
|
|
418
|
+
export declare const CreatePromptResponseFormatPromptsResponseType: {
|
|
360
419
|
readonly JsonSchema: "json_schema";
|
|
361
420
|
};
|
|
362
|
-
export type
|
|
363
|
-
export type
|
|
421
|
+
export type CreatePromptResponseFormatPromptsResponseType = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
422
|
+
export type CreatePromptResponseFormatPromptsJsonSchema = {
|
|
364
423
|
name: string;
|
|
365
424
|
strict: boolean;
|
|
366
425
|
schema: {
|
|
367
426
|
[k: string]: any;
|
|
368
427
|
};
|
|
369
428
|
};
|
|
370
|
-
export type
|
|
371
|
-
type:
|
|
372
|
-
jsonSchema:
|
|
429
|
+
export type CreatePromptResponseFormatPrompts1 = {
|
|
430
|
+
type: CreatePromptResponseFormatPromptsResponseType;
|
|
431
|
+
jsonSchema: CreatePromptResponseFormatPromptsJsonSchema;
|
|
373
432
|
};
|
|
374
433
|
/**
|
|
375
434
|
* An object specifying the format that the model must output.
|
|
@@ -382,33 +441,33 @@ export type CreatePromptResponseFormat1 = {
|
|
|
382
441
|
*
|
|
383
442
|
* 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.
|
|
384
443
|
*/
|
|
385
|
-
export type
|
|
444
|
+
export type CreatePromptPromptsResponseFormat = CreatePromptResponseFormatPrompts2 | CreatePromptResponseFormatPrompts1;
|
|
386
445
|
/**
|
|
387
446
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
388
447
|
*/
|
|
389
|
-
export declare const
|
|
448
|
+
export declare const CreatePromptPromptsPhotoRealVersion: {
|
|
390
449
|
readonly V1: "v1";
|
|
391
450
|
readonly V2: "v2";
|
|
392
451
|
};
|
|
393
452
|
/**
|
|
394
453
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
395
454
|
*/
|
|
396
|
-
export type
|
|
455
|
+
export type CreatePromptPromptsPhotoRealVersion = ClosedEnum<typeof CreatePromptPromptsPhotoRealVersion>;
|
|
397
456
|
/**
|
|
398
457
|
* The format to return the embeddings
|
|
399
458
|
*/
|
|
400
|
-
export declare const
|
|
459
|
+
export declare const CreatePromptPromptsEncodingFormat: {
|
|
401
460
|
readonly Float: "float";
|
|
402
461
|
readonly Base64: "base64";
|
|
403
462
|
};
|
|
404
463
|
/**
|
|
405
464
|
* The format to return the embeddings
|
|
406
465
|
*/
|
|
407
|
-
export type
|
|
466
|
+
export type CreatePromptPromptsEncodingFormat = ClosedEnum<typeof CreatePromptPromptsEncodingFormat>;
|
|
408
467
|
/**
|
|
409
468
|
* Model Parameters: Not all parameters apply to every model
|
|
410
469
|
*/
|
|
411
|
-
export type
|
|
470
|
+
export type CreatePromptPromptsModelParameters = {
|
|
412
471
|
/**
|
|
413
472
|
* Only supported on `chat` and `completion` models.
|
|
414
473
|
*/
|
|
@@ -444,7 +503,7 @@ export type CreatePromptModelParameters = {
|
|
|
444
503
|
/**
|
|
445
504
|
* Only supported on `image` models.
|
|
446
505
|
*/
|
|
447
|
-
format?:
|
|
506
|
+
format?: CreatePromptPromptsFormat | undefined;
|
|
448
507
|
/**
|
|
449
508
|
* Only supported on `image` models.
|
|
450
509
|
*/
|
|
@@ -452,7 +511,7 @@ export type CreatePromptModelParameters = {
|
|
|
452
511
|
/**
|
|
453
512
|
* Only supported on `image` models.
|
|
454
513
|
*/
|
|
455
|
-
quality?:
|
|
514
|
+
quality?: CreatePromptPromptsQuality | undefined;
|
|
456
515
|
/**
|
|
457
516
|
* Only supported on `image` models.
|
|
458
517
|
*/
|
|
@@ -468,17 +527,17 @@ export type CreatePromptModelParameters = {
|
|
|
468
527
|
*
|
|
469
528
|
* 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.
|
|
470
529
|
*/
|
|
471
|
-
responseFormat?:
|
|
530
|
+
responseFormat?: CreatePromptResponseFormatPrompts2 | CreatePromptResponseFormatPrompts1 | null | undefined;
|
|
472
531
|
/**
|
|
473
532
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
474
533
|
*/
|
|
475
|
-
photoRealVersion?:
|
|
534
|
+
photoRealVersion?: CreatePromptPromptsPhotoRealVersion | undefined;
|
|
476
535
|
/**
|
|
477
536
|
* The format to return the embeddings
|
|
478
537
|
*/
|
|
479
|
-
encodingFormat?:
|
|
538
|
+
encodingFormat?: CreatePromptPromptsEncodingFormat | undefined;
|
|
480
539
|
};
|
|
481
|
-
export declare const
|
|
540
|
+
export declare const CreatePromptPromptsProvider: {
|
|
482
541
|
readonly Cohere: "cohere";
|
|
483
542
|
readonly Openai: "openai";
|
|
484
543
|
readonly Anthropic: "anthropic";
|
|
@@ -495,8 +554,10 @@ export declare const CreatePromptProvider: {
|
|
|
495
554
|
readonly Leonardoai: "leonardoai";
|
|
496
555
|
readonly Nvidia: "nvidia";
|
|
497
556
|
readonly Jina: "jina";
|
|
557
|
+
readonly Togetherai: "togetherai";
|
|
558
|
+
readonly Elevenlabs: "elevenlabs";
|
|
498
559
|
};
|
|
499
|
-
export type
|
|
560
|
+
export type CreatePromptPromptsProvider = ClosedEnum<typeof CreatePromptPromptsProvider>;
|
|
500
561
|
/**
|
|
501
562
|
* The role of the prompt message
|
|
502
563
|
*/
|
|
@@ -555,10 +616,10 @@ export type CreatePromptContentPrompts2 = CreatePrompt2Prompts1 | CreatePrompt2P
|
|
|
555
616
|
* 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.
|
|
556
617
|
*/
|
|
557
618
|
export type CreatePromptPromptsContent = string | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
|
|
558
|
-
export declare const
|
|
619
|
+
export declare const CreatePromptPromptsResponseType: {
|
|
559
620
|
readonly Function: "function";
|
|
560
621
|
};
|
|
561
|
-
export type
|
|
622
|
+
export type CreatePromptPromptsResponseType = ClosedEnum<typeof CreatePromptPromptsResponseType>;
|
|
562
623
|
export type CreatePromptPromptsFunction = {
|
|
563
624
|
name: string;
|
|
564
625
|
/**
|
|
@@ -569,7 +630,7 @@ export type CreatePromptPromptsFunction = {
|
|
|
569
630
|
export type CreatePromptPromptsToolCalls = {
|
|
570
631
|
id?: string | undefined;
|
|
571
632
|
index?: number | undefined;
|
|
572
|
-
type:
|
|
633
|
+
type: CreatePromptPromptsResponseType;
|
|
573
634
|
function: CreatePromptPromptsFunction;
|
|
574
635
|
};
|
|
575
636
|
export type CreatePromptPromptsMessages = {
|
|
@@ -583,7 +644,10 @@ export type CreatePromptPromptsMessages = {
|
|
|
583
644
|
content: string | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
|
|
584
645
|
toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
|
|
585
646
|
};
|
|
586
|
-
|
|
647
|
+
/**
|
|
648
|
+
* A list of messages compatible with the openAI schema
|
|
649
|
+
*/
|
|
650
|
+
export type CreatePromptPromptsPromptConfig = {
|
|
587
651
|
stream?: boolean | undefined;
|
|
588
652
|
model?: string | undefined;
|
|
589
653
|
/**
|
|
@@ -593,12 +657,12 @@ export type CreatePromptPromptConfig = {
|
|
|
593
657
|
/**
|
|
594
658
|
* The type of the model
|
|
595
659
|
*/
|
|
596
|
-
modelType?:
|
|
660
|
+
modelType?: CreatePromptPromptsModelType | undefined;
|
|
597
661
|
/**
|
|
598
662
|
* Model Parameters: Not all parameters apply to every model
|
|
599
663
|
*/
|
|
600
|
-
modelParameters?:
|
|
601
|
-
provider?:
|
|
664
|
+
modelParameters?: CreatePromptPromptsModelParameters | undefined;
|
|
665
|
+
provider?: CreatePromptPromptsProvider | undefined;
|
|
602
666
|
/**
|
|
603
667
|
* The id of the resource
|
|
604
668
|
*/
|
|
@@ -606,284 +670,1523 @@ export type CreatePromptPromptConfig = {
|
|
|
606
670
|
version?: string | undefined;
|
|
607
671
|
messages: Array<CreatePromptPromptsMessages>;
|
|
608
672
|
};
|
|
673
|
+
export declare const CreatePromptPromptsUseCases: {
|
|
674
|
+
readonly Agents: "Agents";
|
|
675
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
676
|
+
readonly APIInteraction: "API interaction";
|
|
677
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
678
|
+
readonly Chatbots: "Chatbots";
|
|
679
|
+
readonly Classification: "Classification";
|
|
680
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
681
|
+
readonly CodeWriting: "Code writing";
|
|
682
|
+
readonly DocumentsQA: "Documents QA";
|
|
683
|
+
readonly Conversation: "Conversation";
|
|
684
|
+
readonly Extraction: "Extraction";
|
|
685
|
+
readonly MultiModal: "Multi-modal";
|
|
686
|
+
readonly SelfChecking: "Self-checking";
|
|
687
|
+
readonly Sql: "SQL";
|
|
688
|
+
readonly Summarization: "Summarization";
|
|
689
|
+
readonly Tagging: "Tagging";
|
|
690
|
+
};
|
|
691
|
+
export type CreatePromptPromptsUseCases = ClosedEnum<typeof CreatePromptPromptsUseCases>;
|
|
692
|
+
/**
|
|
693
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
694
|
+
*/
|
|
695
|
+
export declare const CreatePromptPromptsLanguage: {
|
|
696
|
+
readonly Chinese: "Chinese";
|
|
697
|
+
readonly Dutch: "Dutch";
|
|
698
|
+
readonly English: "English";
|
|
699
|
+
readonly French: "French";
|
|
700
|
+
readonly German: "German";
|
|
701
|
+
readonly Russian: "Russian";
|
|
702
|
+
readonly Spanish: "Spanish";
|
|
703
|
+
};
|
|
704
|
+
/**
|
|
705
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
706
|
+
*/
|
|
707
|
+
export type CreatePromptPromptsLanguage = ClosedEnum<typeof CreatePromptPromptsLanguage>;
|
|
609
708
|
export type CreatePromptPromptsMetadata = {
|
|
610
|
-
useCases?: Array<string> | undefined;
|
|
611
|
-
language?: string | undefined;
|
|
612
|
-
};
|
|
613
|
-
export declare const CreatePromptPromptsResponseType: {
|
|
614
|
-
readonly Prompt: "prompt";
|
|
615
|
-
readonly Snippet: "snippet";
|
|
616
|
-
readonly Template: "template";
|
|
617
|
-
};
|
|
618
|
-
export type CreatePromptPromptsResponseType = ClosedEnum<typeof CreatePromptPromptsResponseType>;
|
|
619
|
-
/**
|
|
620
|
-
* Prompt created.
|
|
621
|
-
*/
|
|
622
|
-
export type CreatePromptResponseBody = {
|
|
623
709
|
/**
|
|
624
|
-
*
|
|
710
|
+
* 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
|
|
625
711
|
*/
|
|
626
|
-
|
|
627
|
-
displayName: string;
|
|
712
|
+
useCases?: Array<CreatePromptPromptsUseCases> | undefined;
|
|
628
713
|
/**
|
|
629
|
-
* The
|
|
714
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
630
715
|
*/
|
|
631
|
-
|
|
632
|
-
description?: string | null | undefined;
|
|
633
|
-
promptConfig?: CreatePromptPromptConfig | undefined;
|
|
634
|
-
metadata?: CreatePromptPromptsMetadata | undefined;
|
|
635
|
-
key?: string | undefined;
|
|
636
|
-
type: CreatePromptPromptsResponseType;
|
|
716
|
+
language?: CreatePromptPromptsLanguage | undefined;
|
|
637
717
|
};
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
export
|
|
718
|
+
export declare const CreatePromptPromptsType: {
|
|
719
|
+
readonly Prompt: "prompt";
|
|
720
|
+
};
|
|
721
|
+
export type CreatePromptPromptsType = ClosedEnum<typeof CreatePromptPromptsType>;
|
|
642
722
|
/**
|
|
643
|
-
*
|
|
644
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
723
|
+
* The type of the model
|
|
645
724
|
*/
|
|
646
|
-
export declare
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
readonly Moderations: "moderations";
|
|
658
|
-
}>;
|
|
659
|
-
/** @deprecated use `ModelType$outboundSchema` instead. */
|
|
660
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
661
|
-
readonly Chat: "chat";
|
|
662
|
-
readonly Completion: "completion";
|
|
663
|
-
readonly Embedding: "embedding";
|
|
664
|
-
readonly Vision: "vision";
|
|
665
|
-
readonly Image: "image";
|
|
666
|
-
readonly Tts: "tts";
|
|
667
|
-
readonly Stt: "stt";
|
|
668
|
-
readonly Rerank: "rerank";
|
|
669
|
-
readonly Moderations: "moderations";
|
|
670
|
-
}>;
|
|
671
|
-
}
|
|
672
|
-
/** @internal */
|
|
673
|
-
export declare const Format$inboundSchema: z.ZodNativeEnum<typeof Format>;
|
|
674
|
-
/** @internal */
|
|
675
|
-
export declare const Format$outboundSchema: z.ZodNativeEnum<typeof Format>;
|
|
725
|
+
export declare const CreatePromptPromptsResponseModelType: {
|
|
726
|
+
readonly Chat: "chat";
|
|
727
|
+
readonly Completion: "completion";
|
|
728
|
+
readonly Embedding: "embedding";
|
|
729
|
+
readonly Vision: "vision";
|
|
730
|
+
readonly Image: "image";
|
|
731
|
+
readonly Tts: "tts";
|
|
732
|
+
readonly Stt: "stt";
|
|
733
|
+
readonly Rerank: "rerank";
|
|
734
|
+
readonly Moderations: "moderations";
|
|
735
|
+
};
|
|
676
736
|
/**
|
|
677
|
-
*
|
|
678
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
737
|
+
* The type of the model
|
|
679
738
|
*/
|
|
680
|
-
export
|
|
681
|
-
/** @deprecated use `Format$inboundSchema` instead. */
|
|
682
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
683
|
-
readonly Url: "url";
|
|
684
|
-
readonly B64Json: "b64_json";
|
|
685
|
-
readonly Text: "text";
|
|
686
|
-
readonly JsonObject: "json_object";
|
|
687
|
-
}>;
|
|
688
|
-
/** @deprecated use `Format$outboundSchema` instead. */
|
|
689
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
690
|
-
readonly Url: "url";
|
|
691
|
-
readonly B64Json: "b64_json";
|
|
692
|
-
readonly Text: "text";
|
|
693
|
-
readonly JsonObject: "json_object";
|
|
694
|
-
}>;
|
|
695
|
-
}
|
|
696
|
-
/** @internal */
|
|
697
|
-
export declare const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality>;
|
|
698
|
-
/** @internal */
|
|
699
|
-
export declare const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality>;
|
|
739
|
+
export type CreatePromptPromptsResponseModelType = ClosedEnum<typeof CreatePromptPromptsResponseModelType>;
|
|
700
740
|
/**
|
|
701
|
-
*
|
|
702
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
741
|
+
* Only supported on `image` models.
|
|
703
742
|
*/
|
|
704
|
-
export declare
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
/** @deprecated use `Quality$outboundSchema` instead. */
|
|
711
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
712
|
-
readonly Standard: "standard";
|
|
713
|
-
readonly Hd: "hd";
|
|
714
|
-
}>;
|
|
715
|
-
}
|
|
716
|
-
/** @internal */
|
|
717
|
-
export declare const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatType>;
|
|
718
|
-
/** @internal */
|
|
719
|
-
export declare const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatType>;
|
|
743
|
+
export declare const CreatePromptPromptsResponse200Format: {
|
|
744
|
+
readonly Url: "url";
|
|
745
|
+
readonly B64Json: "b64_json";
|
|
746
|
+
readonly Text: "text";
|
|
747
|
+
readonly JsonObject: "json_object";
|
|
748
|
+
};
|
|
720
749
|
/**
|
|
721
|
-
*
|
|
722
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
750
|
+
* Only supported on `image` models.
|
|
723
751
|
*/
|
|
724
|
-
export
|
|
725
|
-
/** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
|
|
726
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
727
|
-
readonly JsonObject: "json_object";
|
|
728
|
-
}>;
|
|
729
|
-
/** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
|
|
730
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
731
|
-
readonly JsonObject: "json_object";
|
|
732
|
-
}>;
|
|
733
|
-
}
|
|
734
|
-
/** @internal */
|
|
735
|
-
export declare const ResponseFormat2$inboundSchema: z.ZodType<ResponseFormat2, z.ZodTypeDef, unknown>;
|
|
736
|
-
/** @internal */
|
|
737
|
-
export type ResponseFormat2$Outbound = {
|
|
738
|
-
type: string;
|
|
739
|
-
};
|
|
740
|
-
/** @internal */
|
|
741
|
-
export declare const ResponseFormat2$outboundSchema: z.ZodType<ResponseFormat2$Outbound, z.ZodTypeDef, ResponseFormat2>;
|
|
752
|
+
export type CreatePromptPromptsResponse200Format = ClosedEnum<typeof CreatePromptPromptsResponse200Format>;
|
|
742
753
|
/**
|
|
743
|
-
*
|
|
744
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
754
|
+
* Only supported on `image` models.
|
|
745
755
|
*/
|
|
746
|
-
export declare
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
const outboundSchema: z.ZodType<ResponseFormat2$Outbound, z.ZodTypeDef, ResponseFormat2>;
|
|
751
|
-
/** @deprecated use `ResponseFormat2$Outbound` instead. */
|
|
752
|
-
type Outbound = ResponseFormat2$Outbound;
|
|
753
|
-
}
|
|
754
|
-
export declare function responseFormat2ToJSON(responseFormat2: ResponseFormat2): string;
|
|
755
|
-
export declare function responseFormat2FromJSON(jsonString: string): SafeParseResult<ResponseFormat2, SDKValidationError>;
|
|
756
|
-
/** @internal */
|
|
757
|
-
export declare const ResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof ResponseFormatType>;
|
|
758
|
-
/** @internal */
|
|
759
|
-
export declare const ResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof ResponseFormatType>;
|
|
756
|
+
export declare const CreatePromptPromptsResponseQuality: {
|
|
757
|
+
readonly Standard: "standard";
|
|
758
|
+
readonly Hd: "hd";
|
|
759
|
+
};
|
|
760
760
|
/**
|
|
761
|
-
*
|
|
762
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
761
|
+
* Only supported on `image` models.
|
|
763
762
|
*/
|
|
764
|
-
export
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
export
|
|
776
|
-
|
|
777
|
-
export type JsonSchema$Outbound = {
|
|
763
|
+
export type CreatePromptPromptsResponseQuality = ClosedEnum<typeof CreatePromptPromptsResponseQuality>;
|
|
764
|
+
export declare const CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType: {
|
|
765
|
+
readonly JsonObject: "json_object";
|
|
766
|
+
};
|
|
767
|
+
export type CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
768
|
+
export type CreatePromptResponseFormatPromptsResponse2 = {
|
|
769
|
+
type: CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType;
|
|
770
|
+
};
|
|
771
|
+
export declare const CreatePromptResponseFormatPromptsResponse200ApplicationJSONType: {
|
|
772
|
+
readonly JsonSchema: "json_schema";
|
|
773
|
+
};
|
|
774
|
+
export type CreatePromptResponseFormatPromptsResponse200ApplicationJSONType = ClosedEnum<typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONType>;
|
|
775
|
+
export type CreatePromptResponseFormatPromptsResponseJsonSchema = {
|
|
778
776
|
name: string;
|
|
779
777
|
strict: boolean;
|
|
780
778
|
schema: {
|
|
781
779
|
[k: string]: any;
|
|
782
780
|
};
|
|
783
781
|
};
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
* @internal
|
|
788
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
789
|
-
*/
|
|
790
|
-
export declare namespace JsonSchema$ {
|
|
791
|
-
/** @deprecated use `JsonSchema$inboundSchema` instead. */
|
|
792
|
-
const inboundSchema: z.ZodType<JsonSchema, z.ZodTypeDef, unknown>;
|
|
793
|
-
/** @deprecated use `JsonSchema$outboundSchema` instead. */
|
|
794
|
-
const outboundSchema: z.ZodType<JsonSchema$Outbound, z.ZodTypeDef, JsonSchema>;
|
|
795
|
-
/** @deprecated use `JsonSchema$Outbound` instead. */
|
|
796
|
-
type Outbound = JsonSchema$Outbound;
|
|
797
|
-
}
|
|
798
|
-
export declare function jsonSchemaToJSON(jsonSchema: JsonSchema): string;
|
|
799
|
-
export declare function jsonSchemaFromJSON(jsonString: string): SafeParseResult<JsonSchema, SDKValidationError>;
|
|
800
|
-
/** @internal */
|
|
801
|
-
export declare const ResponseFormat1$inboundSchema: z.ZodType<ResponseFormat1, z.ZodTypeDef, unknown>;
|
|
802
|
-
/** @internal */
|
|
803
|
-
export type ResponseFormat1$Outbound = {
|
|
804
|
-
type: string;
|
|
805
|
-
json_schema: JsonSchema$Outbound;
|
|
782
|
+
export type CreatePromptResponseFormatPromptsResponse1 = {
|
|
783
|
+
type: CreatePromptResponseFormatPromptsResponse200ApplicationJSONType;
|
|
784
|
+
jsonSchema: CreatePromptResponseFormatPromptsResponseJsonSchema;
|
|
806
785
|
};
|
|
807
|
-
/** @internal */
|
|
808
|
-
export declare const ResponseFormat1$outboundSchema: z.ZodType<ResponseFormat1$Outbound, z.ZodTypeDef, ResponseFormat1>;
|
|
809
786
|
/**
|
|
810
|
-
*
|
|
787
|
+
* An object specifying the format that the model must output.
|
|
788
|
+
*
|
|
789
|
+
* @remarks
|
|
790
|
+
*
|
|
791
|
+
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
792
|
+
*
|
|
793
|
+
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
794
|
+
*
|
|
795
|
+
* 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.
|
|
796
|
+
*/
|
|
797
|
+
export type CreatePromptPromptsResponseResponseFormat = CreatePromptResponseFormatPromptsResponse2 | CreatePromptResponseFormatPromptsResponse1;
|
|
798
|
+
/**
|
|
799
|
+
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
800
|
+
*/
|
|
801
|
+
export declare const CreatePromptPromptsResponsePhotoRealVersion: {
|
|
802
|
+
readonly V1: "v1";
|
|
803
|
+
readonly V2: "v2";
|
|
804
|
+
};
|
|
805
|
+
/**
|
|
806
|
+
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
807
|
+
*/
|
|
808
|
+
export type CreatePromptPromptsResponsePhotoRealVersion = ClosedEnum<typeof CreatePromptPromptsResponsePhotoRealVersion>;
|
|
809
|
+
/**
|
|
810
|
+
* The format to return the embeddings
|
|
811
|
+
*/
|
|
812
|
+
export declare const CreatePromptPromptsResponseEncodingFormat: {
|
|
813
|
+
readonly Float: "float";
|
|
814
|
+
readonly Base64: "base64";
|
|
815
|
+
};
|
|
816
|
+
/**
|
|
817
|
+
* The format to return the embeddings
|
|
818
|
+
*/
|
|
819
|
+
export type CreatePromptPromptsResponseEncodingFormat = ClosedEnum<typeof CreatePromptPromptsResponseEncodingFormat>;
|
|
820
|
+
/**
|
|
821
|
+
* Model Parameters: Not all parameters apply to every model
|
|
822
|
+
*/
|
|
823
|
+
export type CreatePromptPromptsResponseModelParameters = {
|
|
824
|
+
/**
|
|
825
|
+
* Only supported on `chat` and `completion` models.
|
|
826
|
+
*/
|
|
827
|
+
temperature?: number | undefined;
|
|
828
|
+
/**
|
|
829
|
+
* Only supported on `chat` and `completion` models.
|
|
830
|
+
*/
|
|
831
|
+
maxTokens?: number | undefined;
|
|
832
|
+
/**
|
|
833
|
+
* Only supported on `chat` and `completion` models.
|
|
834
|
+
*/
|
|
835
|
+
topK?: number | undefined;
|
|
836
|
+
/**
|
|
837
|
+
* Only supported on `chat` and `completion` models.
|
|
838
|
+
*/
|
|
839
|
+
topP?: number | undefined;
|
|
840
|
+
/**
|
|
841
|
+
* Only supported on `chat` and `completion` models.
|
|
842
|
+
*/
|
|
843
|
+
frequencyPenalty?: number | undefined;
|
|
844
|
+
/**
|
|
845
|
+
* Only supported on `chat` and `completion` models.
|
|
846
|
+
*/
|
|
847
|
+
presencePenalty?: number | undefined;
|
|
848
|
+
/**
|
|
849
|
+
* Only supported on `image` models.
|
|
850
|
+
*/
|
|
851
|
+
numImages?: number | undefined;
|
|
852
|
+
/**
|
|
853
|
+
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
854
|
+
*/
|
|
855
|
+
seed?: number | undefined;
|
|
856
|
+
/**
|
|
857
|
+
* Only supported on `image` models.
|
|
858
|
+
*/
|
|
859
|
+
format?: CreatePromptPromptsResponse200Format | undefined;
|
|
860
|
+
/**
|
|
861
|
+
* Only supported on `image` models.
|
|
862
|
+
*/
|
|
863
|
+
dimensions?: string | undefined;
|
|
864
|
+
/**
|
|
865
|
+
* Only supported on `image` models.
|
|
866
|
+
*/
|
|
867
|
+
quality?: CreatePromptPromptsResponseQuality | undefined;
|
|
868
|
+
/**
|
|
869
|
+
* Only supported on `image` models.
|
|
870
|
+
*/
|
|
871
|
+
style?: string | undefined;
|
|
872
|
+
/**
|
|
873
|
+
* An object specifying the format that the model must output.
|
|
874
|
+
*
|
|
875
|
+
* @remarks
|
|
876
|
+
*
|
|
877
|
+
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
878
|
+
*
|
|
879
|
+
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
880
|
+
*
|
|
881
|
+
* 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.
|
|
882
|
+
*/
|
|
883
|
+
responseFormat?: CreatePromptResponseFormatPromptsResponse2 | CreatePromptResponseFormatPromptsResponse1 | null | undefined;
|
|
884
|
+
/**
|
|
885
|
+
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
886
|
+
*/
|
|
887
|
+
photoRealVersion?: CreatePromptPromptsResponsePhotoRealVersion | undefined;
|
|
888
|
+
/**
|
|
889
|
+
* The format to return the embeddings
|
|
890
|
+
*/
|
|
891
|
+
encodingFormat?: CreatePromptPromptsResponseEncodingFormat | undefined;
|
|
892
|
+
};
|
|
893
|
+
export declare const CreatePromptPromptsResponseProvider: {
|
|
894
|
+
readonly Cohere: "cohere";
|
|
895
|
+
readonly Openai: "openai";
|
|
896
|
+
readonly Anthropic: "anthropic";
|
|
897
|
+
readonly Huggingface: "huggingface";
|
|
898
|
+
readonly Replicate: "replicate";
|
|
899
|
+
readonly Google: "google";
|
|
900
|
+
readonly GoogleAi: "google-ai";
|
|
901
|
+
readonly Azure: "azure";
|
|
902
|
+
readonly Aws: "aws";
|
|
903
|
+
readonly Anyscale: "anyscale";
|
|
904
|
+
readonly Perplexity: "perplexity";
|
|
905
|
+
readonly Groq: "groq";
|
|
906
|
+
readonly Fal: "fal";
|
|
907
|
+
readonly Leonardoai: "leonardoai";
|
|
908
|
+
readonly Nvidia: "nvidia";
|
|
909
|
+
readonly Jina: "jina";
|
|
910
|
+
readonly Togetherai: "togetherai";
|
|
911
|
+
readonly Elevenlabs: "elevenlabs";
|
|
912
|
+
};
|
|
913
|
+
export type CreatePromptPromptsResponseProvider = ClosedEnum<typeof CreatePromptPromptsResponseProvider>;
|
|
914
|
+
/**
|
|
915
|
+
* The role of the prompt message
|
|
916
|
+
*/
|
|
917
|
+
export declare const CreatePromptPromptsResponseRole: {
|
|
918
|
+
readonly System: "system";
|
|
919
|
+
readonly Assistant: "assistant";
|
|
920
|
+
readonly User: "user";
|
|
921
|
+
readonly Exception: "exception";
|
|
922
|
+
readonly Tool: "tool";
|
|
923
|
+
readonly Prompt: "prompt";
|
|
924
|
+
readonly Correction: "correction";
|
|
925
|
+
readonly ExpectedOutput: "expected_output";
|
|
926
|
+
};
|
|
927
|
+
/**
|
|
928
|
+
* The role of the prompt message
|
|
929
|
+
*/
|
|
930
|
+
export type CreatePromptPromptsResponseRole = ClosedEnum<typeof CreatePromptPromptsResponseRole>;
|
|
931
|
+
export declare const CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType: {
|
|
932
|
+
readonly ImageUrl: "image_url";
|
|
933
|
+
};
|
|
934
|
+
export type CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType = ClosedEnum<typeof CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType>;
|
|
935
|
+
export type CreatePrompt2PromptsResponseImageUrl = {
|
|
936
|
+
/**
|
|
937
|
+
* The orq.ai id of the image
|
|
938
|
+
*/
|
|
939
|
+
id?: string | undefined;
|
|
940
|
+
/**
|
|
941
|
+
* Either a URL of the image or the base64 encoded data URI.
|
|
942
|
+
*/
|
|
943
|
+
url: string;
|
|
944
|
+
/**
|
|
945
|
+
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
946
|
+
*/
|
|
947
|
+
detail?: string | undefined;
|
|
948
|
+
};
|
|
949
|
+
/**
|
|
950
|
+
* The image part of the prompt message. Only supported with vision models.
|
|
951
|
+
*/
|
|
952
|
+
export type CreatePrompt2PromptsResponse2 = {
|
|
953
|
+
type: CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType;
|
|
954
|
+
imageUrl: CreatePrompt2PromptsResponseImageUrl;
|
|
955
|
+
};
|
|
956
|
+
export declare const CreatePrompt2PromptsResponse200ApplicationJSONType: {
|
|
957
|
+
readonly Text: "text";
|
|
958
|
+
};
|
|
959
|
+
export type CreatePrompt2PromptsResponse200ApplicationJSONType = ClosedEnum<typeof CreatePrompt2PromptsResponse200ApplicationJSONType>;
|
|
960
|
+
/**
|
|
961
|
+
* Text content part of a prompt message
|
|
962
|
+
*/
|
|
963
|
+
export type CreatePrompt2PromptsResponse1 = {
|
|
964
|
+
type: CreatePrompt2PromptsResponse200ApplicationJSONType;
|
|
965
|
+
text: string;
|
|
966
|
+
};
|
|
967
|
+
export type CreatePromptContentPromptsResponse2 = CreatePrompt2PromptsResponse1 | CreatePrompt2PromptsResponse2;
|
|
968
|
+
/**
|
|
969
|
+
* 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.
|
|
970
|
+
*/
|
|
971
|
+
export type CreatePromptPromptsResponseContent = string | Array<CreatePrompt2PromptsResponse1 | CreatePrompt2PromptsResponse2>;
|
|
972
|
+
export declare const CreatePromptPromptsResponse200Type: {
|
|
973
|
+
readonly Function: "function";
|
|
974
|
+
};
|
|
975
|
+
export type CreatePromptPromptsResponse200Type = ClosedEnum<typeof CreatePromptPromptsResponse200Type>;
|
|
976
|
+
export type CreatePromptPromptsResponseFunction = {
|
|
977
|
+
name: string;
|
|
978
|
+
/**
|
|
979
|
+
* JSON string arguments for the functions
|
|
980
|
+
*/
|
|
981
|
+
arguments: string;
|
|
982
|
+
};
|
|
983
|
+
export type CreatePromptPromptsResponseToolCalls = {
|
|
984
|
+
id?: string | undefined;
|
|
985
|
+
index?: number | undefined;
|
|
986
|
+
type: CreatePromptPromptsResponse200Type;
|
|
987
|
+
function: CreatePromptPromptsResponseFunction;
|
|
988
|
+
};
|
|
989
|
+
export type CreatePromptPromptsResponseMessages = {
|
|
990
|
+
/**
|
|
991
|
+
* The role of the prompt message
|
|
992
|
+
*/
|
|
993
|
+
role: CreatePromptPromptsResponseRole;
|
|
994
|
+
/**
|
|
995
|
+
* 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.
|
|
996
|
+
*/
|
|
997
|
+
content: string | Array<CreatePrompt2PromptsResponse1 | CreatePrompt2PromptsResponse2>;
|
|
998
|
+
toolCalls?: Array<CreatePromptPromptsResponseToolCalls> | undefined;
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* A list of messages compatible with the openAI schema
|
|
1002
|
+
*/
|
|
1003
|
+
export type CreatePromptPromptsResponsePromptConfig = {
|
|
1004
|
+
stream?: boolean | undefined;
|
|
1005
|
+
model?: string | undefined;
|
|
1006
|
+
/**
|
|
1007
|
+
* The id of the resource
|
|
1008
|
+
*/
|
|
1009
|
+
modelDbId?: string | undefined;
|
|
1010
|
+
/**
|
|
1011
|
+
* The type of the model
|
|
1012
|
+
*/
|
|
1013
|
+
modelType?: CreatePromptPromptsResponseModelType | undefined;
|
|
1014
|
+
/**
|
|
1015
|
+
* Model Parameters: Not all parameters apply to every model
|
|
1016
|
+
*/
|
|
1017
|
+
modelParameters?: CreatePromptPromptsResponseModelParameters | undefined;
|
|
1018
|
+
provider?: CreatePromptPromptsResponseProvider | undefined;
|
|
1019
|
+
/**
|
|
1020
|
+
* The id of the resource
|
|
1021
|
+
*/
|
|
1022
|
+
integrationId?: string | null | undefined;
|
|
1023
|
+
version?: string | undefined;
|
|
1024
|
+
messages: Array<CreatePromptPromptsResponseMessages>;
|
|
1025
|
+
};
|
|
1026
|
+
export declare const CreatePromptPromptsResponseUseCases: {
|
|
1027
|
+
readonly Agents: "Agents";
|
|
1028
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
1029
|
+
readonly APIInteraction: "API interaction";
|
|
1030
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
1031
|
+
readonly Chatbots: "Chatbots";
|
|
1032
|
+
readonly Classification: "Classification";
|
|
1033
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
1034
|
+
readonly CodeWriting: "Code writing";
|
|
1035
|
+
readonly DocumentsQA: "Documents QA";
|
|
1036
|
+
readonly Conversation: "Conversation";
|
|
1037
|
+
readonly Extraction: "Extraction";
|
|
1038
|
+
readonly MultiModal: "Multi-modal";
|
|
1039
|
+
readonly SelfChecking: "Self-checking";
|
|
1040
|
+
readonly Sql: "SQL";
|
|
1041
|
+
readonly Summarization: "Summarization";
|
|
1042
|
+
readonly Tagging: "Tagging";
|
|
1043
|
+
};
|
|
1044
|
+
export type CreatePromptPromptsResponseUseCases = ClosedEnum<typeof CreatePromptPromptsResponseUseCases>;
|
|
1045
|
+
/**
|
|
1046
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
1047
|
+
*/
|
|
1048
|
+
export declare const CreatePromptPromptsResponseLanguage: {
|
|
1049
|
+
readonly Chinese: "Chinese";
|
|
1050
|
+
readonly Dutch: "Dutch";
|
|
1051
|
+
readonly English: "English";
|
|
1052
|
+
readonly French: "French";
|
|
1053
|
+
readonly German: "German";
|
|
1054
|
+
readonly Russian: "Russian";
|
|
1055
|
+
readonly Spanish: "Spanish";
|
|
1056
|
+
};
|
|
1057
|
+
/**
|
|
1058
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
1059
|
+
*/
|
|
1060
|
+
export type CreatePromptPromptsResponseLanguage = ClosedEnum<typeof CreatePromptPromptsResponseLanguage>;
|
|
1061
|
+
export type CreatePromptPromptsResponseMetadata = {
|
|
1062
|
+
/**
|
|
1063
|
+
* 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
|
|
1064
|
+
*/
|
|
1065
|
+
useCases?: Array<CreatePromptPromptsResponseUseCases> | undefined;
|
|
1066
|
+
/**
|
|
1067
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
1068
|
+
*/
|
|
1069
|
+
language?: CreatePromptPromptsResponseLanguage | undefined;
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* Prompt version model returned from the API
|
|
1073
|
+
*/
|
|
1074
|
+
export type CreatePromptVersions = {
|
|
1075
|
+
id: string;
|
|
1076
|
+
createdById: string;
|
|
1077
|
+
/**
|
|
1078
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
1079
|
+
*/
|
|
1080
|
+
displayName: string;
|
|
1081
|
+
updatedById: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* 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
|
|
1084
|
+
*/
|
|
1085
|
+
description?: string | null | undefined;
|
|
1086
|
+
/**
|
|
1087
|
+
* A list of messages compatible with the openAI schema
|
|
1088
|
+
*/
|
|
1089
|
+
promptConfig: CreatePromptPromptsResponsePromptConfig;
|
|
1090
|
+
metadata: CreatePromptPromptsResponseMetadata;
|
|
1091
|
+
timestamp: string;
|
|
1092
|
+
};
|
|
1093
|
+
/**
|
|
1094
|
+
* Prompt model returned from the API
|
|
1095
|
+
*/
|
|
1096
|
+
export type CreatePromptResponseBody = {
|
|
1097
|
+
id: string;
|
|
1098
|
+
owner: string | CreatePromptOwner2;
|
|
1099
|
+
domainId: string;
|
|
1100
|
+
createdById: string;
|
|
1101
|
+
/**
|
|
1102
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
1103
|
+
*/
|
|
1104
|
+
displayName: string;
|
|
1105
|
+
updatedById: string;
|
|
1106
|
+
/**
|
|
1107
|
+
* 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
|
|
1108
|
+
*/
|
|
1109
|
+
description?: string | null | undefined;
|
|
1110
|
+
/**
|
|
1111
|
+
* A list of messages compatible with the openAI schema
|
|
1112
|
+
*/
|
|
1113
|
+
promptConfig: CreatePromptPromptsPromptConfig;
|
|
1114
|
+
metadata: CreatePromptPromptsMetadata;
|
|
1115
|
+
/**
|
|
1116
|
+
* The date and time the resource was created
|
|
1117
|
+
*/
|
|
1118
|
+
created?: Date | undefined;
|
|
1119
|
+
/**
|
|
1120
|
+
* The date and time the resource was last updated
|
|
1121
|
+
*/
|
|
1122
|
+
updated?: Date | undefined;
|
|
1123
|
+
type: CreatePromptPromptsType;
|
|
1124
|
+
versions: Array<CreatePromptVersions>;
|
|
1125
|
+
};
|
|
1126
|
+
/** @internal */
|
|
1127
|
+
export declare const CreatePromptGlobals$inboundSchema: z.ZodType<CreatePromptGlobals, z.ZodTypeDef, unknown>;
|
|
1128
|
+
/** @internal */
|
|
1129
|
+
export type CreatePromptGlobals$Outbound = {
|
|
1130
|
+
contactId?: string | undefined;
|
|
1131
|
+
};
|
|
1132
|
+
/** @internal */
|
|
1133
|
+
export declare const CreatePromptGlobals$outboundSchema: z.ZodType<CreatePromptGlobals$Outbound, z.ZodTypeDef, CreatePromptGlobals>;
|
|
1134
|
+
/**
|
|
1135
|
+
* @internal
|
|
1136
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1137
|
+
*/
|
|
1138
|
+
export declare namespace CreatePromptGlobals$ {
|
|
1139
|
+
/** @deprecated use `CreatePromptGlobals$inboundSchema` instead. */
|
|
1140
|
+
const inboundSchema: z.ZodType<CreatePromptGlobals, z.ZodTypeDef, unknown>;
|
|
1141
|
+
/** @deprecated use `CreatePromptGlobals$outboundSchema` instead. */
|
|
1142
|
+
const outboundSchema: z.ZodType<CreatePromptGlobals$Outbound, z.ZodTypeDef, CreatePromptGlobals>;
|
|
1143
|
+
/** @deprecated use `CreatePromptGlobals$Outbound` instead. */
|
|
1144
|
+
type Outbound = CreatePromptGlobals$Outbound;
|
|
1145
|
+
}
|
|
1146
|
+
export declare function createPromptGlobalsToJSON(createPromptGlobals: CreatePromptGlobals): string;
|
|
1147
|
+
export declare function createPromptGlobalsFromJSON(jsonString: string): SafeParseResult<CreatePromptGlobals, SDKValidationError>;
|
|
1148
|
+
/** @internal */
|
|
1149
|
+
export declare const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
1150
|
+
/** @internal */
|
|
1151
|
+
export declare const CreatePromptModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
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 CreatePromptModelType$ {
|
|
1157
|
+
/** @deprecated use `CreatePromptModelType$inboundSchema` instead. */
|
|
1158
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1159
|
+
readonly Chat: "chat";
|
|
1160
|
+
readonly Completion: "completion";
|
|
1161
|
+
readonly Embedding: "embedding";
|
|
1162
|
+
readonly Vision: "vision";
|
|
1163
|
+
readonly Image: "image";
|
|
1164
|
+
readonly Tts: "tts";
|
|
1165
|
+
readonly Stt: "stt";
|
|
1166
|
+
readonly Rerank: "rerank";
|
|
1167
|
+
readonly Moderations: "moderations";
|
|
1168
|
+
}>;
|
|
1169
|
+
/** @deprecated use `CreatePromptModelType$outboundSchema` instead. */
|
|
1170
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1171
|
+
readonly Chat: "chat";
|
|
1172
|
+
readonly Completion: "completion";
|
|
1173
|
+
readonly Embedding: "embedding";
|
|
1174
|
+
readonly Vision: "vision";
|
|
1175
|
+
readonly Image: "image";
|
|
1176
|
+
readonly Tts: "tts";
|
|
1177
|
+
readonly Stt: "stt";
|
|
1178
|
+
readonly Rerank: "rerank";
|
|
1179
|
+
readonly Moderations: "moderations";
|
|
1180
|
+
}>;
|
|
1181
|
+
}
|
|
1182
|
+
/** @internal */
|
|
1183
|
+
export declare const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptFormat>;
|
|
1184
|
+
/** @internal */
|
|
1185
|
+
export declare const CreatePromptFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptFormat>;
|
|
1186
|
+
/**
|
|
1187
|
+
* @internal
|
|
1188
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1189
|
+
*/
|
|
1190
|
+
export declare namespace CreatePromptFormat$ {
|
|
1191
|
+
/** @deprecated use `CreatePromptFormat$inboundSchema` instead. */
|
|
1192
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1193
|
+
readonly Url: "url";
|
|
1194
|
+
readonly B64Json: "b64_json";
|
|
1195
|
+
readonly Text: "text";
|
|
1196
|
+
readonly JsonObject: "json_object";
|
|
1197
|
+
}>;
|
|
1198
|
+
/** @deprecated use `CreatePromptFormat$outboundSchema` instead. */
|
|
1199
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1200
|
+
readonly Url: "url";
|
|
1201
|
+
readonly B64Json: "b64_json";
|
|
1202
|
+
readonly Text: "text";
|
|
1203
|
+
readonly JsonObject: "json_object";
|
|
1204
|
+
}>;
|
|
1205
|
+
}
|
|
1206
|
+
/** @internal */
|
|
1207
|
+
export declare const CreatePromptQuality$inboundSchema: z.ZodNativeEnum<typeof CreatePromptQuality>;
|
|
1208
|
+
/** @internal */
|
|
1209
|
+
export declare const CreatePromptQuality$outboundSchema: z.ZodNativeEnum<typeof CreatePromptQuality>;
|
|
1210
|
+
/**
|
|
1211
|
+
* @internal
|
|
1212
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1213
|
+
*/
|
|
1214
|
+
export declare namespace CreatePromptQuality$ {
|
|
1215
|
+
/** @deprecated use `CreatePromptQuality$inboundSchema` instead. */
|
|
1216
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1217
|
+
readonly Standard: "standard";
|
|
1218
|
+
readonly Hd: "hd";
|
|
1219
|
+
}>;
|
|
1220
|
+
/** @deprecated use `CreatePromptQuality$outboundSchema` instead. */
|
|
1221
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1222
|
+
readonly Standard: "standard";
|
|
1223
|
+
readonly Hd: "hd";
|
|
1224
|
+
}>;
|
|
1225
|
+
}
|
|
1226
|
+
/** @internal */
|
|
1227
|
+
export declare const CreatePromptResponseFormatPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
1228
|
+
/** @internal */
|
|
1229
|
+
export declare const CreatePromptResponseFormatPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsType>;
|
|
1230
|
+
/**
|
|
1231
|
+
* @internal
|
|
1232
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1233
|
+
*/
|
|
1234
|
+
export declare namespace CreatePromptResponseFormatPromptsType$ {
|
|
1235
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
1236
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1237
|
+
readonly JsonObject: "json_object";
|
|
1238
|
+
}>;
|
|
1239
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
1240
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1241
|
+
readonly JsonObject: "json_object";
|
|
1242
|
+
}>;
|
|
1243
|
+
}
|
|
1244
|
+
/** @internal */
|
|
1245
|
+
export declare const CreatePromptResponseFormat2$inboundSchema: z.ZodType<CreatePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1246
|
+
/** @internal */
|
|
1247
|
+
export type CreatePromptResponseFormat2$Outbound = {
|
|
1248
|
+
type: string;
|
|
1249
|
+
};
|
|
1250
|
+
/** @internal */
|
|
1251
|
+
export declare const CreatePromptResponseFormat2$outboundSchema: z.ZodType<CreatePromptResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptResponseFormat2>;
|
|
1252
|
+
/**
|
|
1253
|
+
* @internal
|
|
1254
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1255
|
+
*/
|
|
1256
|
+
export declare namespace CreatePromptResponseFormat2$ {
|
|
1257
|
+
/** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
|
|
1258
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1259
|
+
/** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
|
|
1260
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptResponseFormat2>;
|
|
1261
|
+
/** @deprecated use `CreatePromptResponseFormat2$Outbound` instead. */
|
|
1262
|
+
type Outbound = CreatePromptResponseFormat2$Outbound;
|
|
1263
|
+
}
|
|
1264
|
+
export declare function createPromptResponseFormat2ToJSON(createPromptResponseFormat2: CreatePromptResponseFormat2): string;
|
|
1265
|
+
export declare function createPromptResponseFormat2FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat2, SDKValidationError>;
|
|
1266
|
+
/** @internal */
|
|
1267
|
+
export declare const CreatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatType>;
|
|
1268
|
+
/** @internal */
|
|
1269
|
+
export declare const CreatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatType>;
|
|
1270
|
+
/**
|
|
1271
|
+
* @internal
|
|
1272
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1273
|
+
*/
|
|
1274
|
+
export declare namespace CreatePromptResponseFormatType$ {
|
|
1275
|
+
/** @deprecated use `CreatePromptResponseFormatType$inboundSchema` instead. */
|
|
1276
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1277
|
+
readonly JsonSchema: "json_schema";
|
|
1278
|
+
}>;
|
|
1279
|
+
/** @deprecated use `CreatePromptResponseFormatType$outboundSchema` instead. */
|
|
1280
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1281
|
+
readonly JsonSchema: "json_schema";
|
|
1282
|
+
}>;
|
|
1283
|
+
}
|
|
1284
|
+
/** @internal */
|
|
1285
|
+
export declare const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1286
|
+
/** @internal */
|
|
1287
|
+
export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
1288
|
+
name: string;
|
|
1289
|
+
strict: boolean;
|
|
1290
|
+
schema: {
|
|
1291
|
+
[k: string]: any;
|
|
1292
|
+
};
|
|
1293
|
+
};
|
|
1294
|
+
/** @internal */
|
|
1295
|
+
export declare const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatJsonSchema>;
|
|
1296
|
+
/**
|
|
1297
|
+
* @internal
|
|
1298
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1299
|
+
*/
|
|
1300
|
+
export declare namespace CreatePromptResponseFormatJsonSchema$ {
|
|
1301
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1302
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1303
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1304
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatJsonSchema>;
|
|
1305
|
+
/** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
1306
|
+
type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
|
|
1307
|
+
}
|
|
1308
|
+
export declare function createPromptResponseFormatJsonSchemaToJSON(createPromptResponseFormatJsonSchema: CreatePromptResponseFormatJsonSchema): string;
|
|
1309
|
+
export declare function createPromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatJsonSchema, SDKValidationError>;
|
|
1310
|
+
/** @internal */
|
|
1311
|
+
export declare const CreatePromptResponseFormat1$inboundSchema: z.ZodType<CreatePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1312
|
+
/** @internal */
|
|
1313
|
+
export type CreatePromptResponseFormat1$Outbound = {
|
|
1314
|
+
type: string;
|
|
1315
|
+
json_schema: CreatePromptResponseFormatJsonSchema$Outbound;
|
|
1316
|
+
};
|
|
1317
|
+
/** @internal */
|
|
1318
|
+
export declare const CreatePromptResponseFormat1$outboundSchema: z.ZodType<CreatePromptResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptResponseFormat1>;
|
|
1319
|
+
/**
|
|
1320
|
+
* @internal
|
|
1321
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1322
|
+
*/
|
|
1323
|
+
export declare namespace CreatePromptResponseFormat1$ {
|
|
1324
|
+
/** @deprecated use `CreatePromptResponseFormat1$inboundSchema` instead. */
|
|
1325
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1326
|
+
/** @deprecated use `CreatePromptResponseFormat1$outboundSchema` instead. */
|
|
1327
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptResponseFormat1>;
|
|
1328
|
+
/** @deprecated use `CreatePromptResponseFormat1$Outbound` instead. */
|
|
1329
|
+
type Outbound = CreatePromptResponseFormat1$Outbound;
|
|
1330
|
+
}
|
|
1331
|
+
export declare function createPromptResponseFormat1ToJSON(createPromptResponseFormat1: CreatePromptResponseFormat1): string;
|
|
1332
|
+
export declare function createPromptResponseFormat1FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat1, SDKValidationError>;
|
|
1333
|
+
/** @internal */
|
|
1334
|
+
export declare const CreatePromptResponseFormat$inboundSchema: z.ZodType<CreatePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
1335
|
+
/** @internal */
|
|
1336
|
+
export type CreatePromptResponseFormat$Outbound = CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat1$Outbound;
|
|
1337
|
+
/** @internal */
|
|
1338
|
+
export declare const CreatePromptResponseFormat$outboundSchema: z.ZodType<CreatePromptResponseFormat$Outbound, z.ZodTypeDef, CreatePromptResponseFormat>;
|
|
1339
|
+
/**
|
|
1340
|
+
* @internal
|
|
1341
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1342
|
+
*/
|
|
1343
|
+
export declare namespace CreatePromptResponseFormat$ {
|
|
1344
|
+
/** @deprecated use `CreatePromptResponseFormat$inboundSchema` instead. */
|
|
1345
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormat, z.ZodTypeDef, unknown>;
|
|
1346
|
+
/** @deprecated use `CreatePromptResponseFormat$outboundSchema` instead. */
|
|
1347
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormat$Outbound, z.ZodTypeDef, CreatePromptResponseFormat>;
|
|
1348
|
+
/** @deprecated use `CreatePromptResponseFormat$Outbound` instead. */
|
|
1349
|
+
type Outbound = CreatePromptResponseFormat$Outbound;
|
|
1350
|
+
}
|
|
1351
|
+
export declare function createPromptResponseFormatToJSON(createPromptResponseFormat: CreatePromptResponseFormat): string;
|
|
1352
|
+
export declare function createPromptResponseFormatFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormat, SDKValidationError>;
|
|
1353
|
+
/** @internal */
|
|
1354
|
+
export declare const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPhotoRealVersion>;
|
|
1355
|
+
/** @internal */
|
|
1356
|
+
export declare const CreatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPhotoRealVersion>;
|
|
1357
|
+
/**
|
|
1358
|
+
* @internal
|
|
1359
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1360
|
+
*/
|
|
1361
|
+
export declare namespace CreatePromptPhotoRealVersion$ {
|
|
1362
|
+
/** @deprecated use `CreatePromptPhotoRealVersion$inboundSchema` instead. */
|
|
1363
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1364
|
+
readonly V1: "v1";
|
|
1365
|
+
readonly V2: "v2";
|
|
1366
|
+
}>;
|
|
1367
|
+
/** @deprecated use `CreatePromptPhotoRealVersion$outboundSchema` instead. */
|
|
1368
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1369
|
+
readonly V1: "v1";
|
|
1370
|
+
readonly V2: "v2";
|
|
1371
|
+
}>;
|
|
1372
|
+
}
|
|
1373
|
+
/** @internal */
|
|
1374
|
+
export declare const CreatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptEncodingFormat>;
|
|
1375
|
+
/** @internal */
|
|
1376
|
+
export declare const CreatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptEncodingFormat>;
|
|
1377
|
+
/**
|
|
1378
|
+
* @internal
|
|
1379
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1380
|
+
*/
|
|
1381
|
+
export declare namespace CreatePromptEncodingFormat$ {
|
|
1382
|
+
/** @deprecated use `CreatePromptEncodingFormat$inboundSchema` instead. */
|
|
1383
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1384
|
+
readonly Float: "float";
|
|
1385
|
+
readonly Base64: "base64";
|
|
1386
|
+
}>;
|
|
1387
|
+
/** @deprecated use `CreatePromptEncodingFormat$outboundSchema` instead. */
|
|
1388
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1389
|
+
readonly Float: "float";
|
|
1390
|
+
readonly Base64: "base64";
|
|
1391
|
+
}>;
|
|
1392
|
+
}
|
|
1393
|
+
/** @internal */
|
|
1394
|
+
export declare const CreatePromptModelParameters$inboundSchema: z.ZodType<CreatePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
1395
|
+
/** @internal */
|
|
1396
|
+
export type CreatePromptModelParameters$Outbound = {
|
|
1397
|
+
temperature?: number | undefined;
|
|
1398
|
+
maxTokens?: number | undefined;
|
|
1399
|
+
topK?: number | undefined;
|
|
1400
|
+
topP?: number | undefined;
|
|
1401
|
+
frequencyPenalty?: number | undefined;
|
|
1402
|
+
presencePenalty?: number | undefined;
|
|
1403
|
+
numImages?: number | undefined;
|
|
1404
|
+
seed?: number | undefined;
|
|
1405
|
+
format?: string | undefined;
|
|
1406
|
+
dimensions?: string | undefined;
|
|
1407
|
+
quality?: string | undefined;
|
|
1408
|
+
style?: string | undefined;
|
|
1409
|
+
responseFormat?: CreatePromptResponseFormat2$Outbound | CreatePromptResponseFormat1$Outbound | null | undefined;
|
|
1410
|
+
photoRealVersion?: string | undefined;
|
|
1411
|
+
encoding_format?: string | undefined;
|
|
1412
|
+
};
|
|
1413
|
+
/** @internal */
|
|
1414
|
+
export declare const CreatePromptModelParameters$outboundSchema: z.ZodType<CreatePromptModelParameters$Outbound, z.ZodTypeDef, CreatePromptModelParameters>;
|
|
1415
|
+
/**
|
|
1416
|
+
* @internal
|
|
1417
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1418
|
+
*/
|
|
1419
|
+
export declare namespace CreatePromptModelParameters$ {
|
|
1420
|
+
/** @deprecated use `CreatePromptModelParameters$inboundSchema` instead. */
|
|
1421
|
+
const inboundSchema: z.ZodType<CreatePromptModelParameters, z.ZodTypeDef, unknown>;
|
|
1422
|
+
/** @deprecated use `CreatePromptModelParameters$outboundSchema` instead. */
|
|
1423
|
+
const outboundSchema: z.ZodType<CreatePromptModelParameters$Outbound, z.ZodTypeDef, CreatePromptModelParameters>;
|
|
1424
|
+
/** @deprecated use `CreatePromptModelParameters$Outbound` instead. */
|
|
1425
|
+
type Outbound = CreatePromptModelParameters$Outbound;
|
|
1426
|
+
}
|
|
1427
|
+
export declare function createPromptModelParametersToJSON(createPromptModelParameters: CreatePromptModelParameters): string;
|
|
1428
|
+
export declare function createPromptModelParametersFromJSON(jsonString: string): SafeParseResult<CreatePromptModelParameters, SDKValidationError>;
|
|
1429
|
+
/** @internal */
|
|
1430
|
+
export declare const CreatePromptProvider$inboundSchema: z.ZodNativeEnum<typeof CreatePromptProvider>;
|
|
1431
|
+
/** @internal */
|
|
1432
|
+
export declare const CreatePromptProvider$outboundSchema: z.ZodNativeEnum<typeof CreatePromptProvider>;
|
|
1433
|
+
/**
|
|
1434
|
+
* @internal
|
|
1435
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1436
|
+
*/
|
|
1437
|
+
export declare namespace CreatePromptProvider$ {
|
|
1438
|
+
/** @deprecated use `CreatePromptProvider$inboundSchema` instead. */
|
|
1439
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1440
|
+
readonly Cohere: "cohere";
|
|
1441
|
+
readonly Openai: "openai";
|
|
1442
|
+
readonly Anthropic: "anthropic";
|
|
1443
|
+
readonly Huggingface: "huggingface";
|
|
1444
|
+
readonly Replicate: "replicate";
|
|
1445
|
+
readonly Google: "google";
|
|
1446
|
+
readonly GoogleAi: "google-ai";
|
|
1447
|
+
readonly Azure: "azure";
|
|
1448
|
+
readonly Aws: "aws";
|
|
1449
|
+
readonly Anyscale: "anyscale";
|
|
1450
|
+
readonly Perplexity: "perplexity";
|
|
1451
|
+
readonly Groq: "groq";
|
|
1452
|
+
readonly Fal: "fal";
|
|
1453
|
+
readonly Leonardoai: "leonardoai";
|
|
1454
|
+
readonly Nvidia: "nvidia";
|
|
1455
|
+
readonly Jina: "jina";
|
|
1456
|
+
readonly Togetherai: "togetherai";
|
|
1457
|
+
readonly Elevenlabs: "elevenlabs";
|
|
1458
|
+
}>;
|
|
1459
|
+
/** @deprecated use `CreatePromptProvider$outboundSchema` instead. */
|
|
1460
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1461
|
+
readonly Cohere: "cohere";
|
|
1462
|
+
readonly Openai: "openai";
|
|
1463
|
+
readonly Anthropic: "anthropic";
|
|
1464
|
+
readonly Huggingface: "huggingface";
|
|
1465
|
+
readonly Replicate: "replicate";
|
|
1466
|
+
readonly Google: "google";
|
|
1467
|
+
readonly GoogleAi: "google-ai";
|
|
1468
|
+
readonly Azure: "azure";
|
|
1469
|
+
readonly Aws: "aws";
|
|
1470
|
+
readonly Anyscale: "anyscale";
|
|
1471
|
+
readonly Perplexity: "perplexity";
|
|
1472
|
+
readonly Groq: "groq";
|
|
1473
|
+
readonly Fal: "fal";
|
|
1474
|
+
readonly Leonardoai: "leonardoai";
|
|
1475
|
+
readonly Nvidia: "nvidia";
|
|
1476
|
+
readonly Jina: "jina";
|
|
1477
|
+
readonly Togetherai: "togetherai";
|
|
1478
|
+
readonly Elevenlabs: "elevenlabs";
|
|
1479
|
+
}>;
|
|
1480
|
+
}
|
|
1481
|
+
/** @internal */
|
|
1482
|
+
export declare const CreatePromptRole$inboundSchema: z.ZodNativeEnum<typeof CreatePromptRole>;
|
|
1483
|
+
/** @internal */
|
|
1484
|
+
export declare const CreatePromptRole$outboundSchema: z.ZodNativeEnum<typeof CreatePromptRole>;
|
|
1485
|
+
/**
|
|
1486
|
+
* @internal
|
|
1487
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1488
|
+
*/
|
|
1489
|
+
export declare namespace CreatePromptRole$ {
|
|
1490
|
+
/** @deprecated use `CreatePromptRole$inboundSchema` instead. */
|
|
1491
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1492
|
+
readonly System: "system";
|
|
1493
|
+
readonly Assistant: "assistant";
|
|
1494
|
+
readonly User: "user";
|
|
1495
|
+
readonly Exception: "exception";
|
|
1496
|
+
readonly Tool: "tool";
|
|
1497
|
+
readonly Prompt: "prompt";
|
|
1498
|
+
readonly Correction: "correction";
|
|
1499
|
+
readonly ExpectedOutput: "expected_output";
|
|
1500
|
+
}>;
|
|
1501
|
+
/** @deprecated use `CreatePromptRole$outboundSchema` instead. */
|
|
1502
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1503
|
+
readonly System: "system";
|
|
1504
|
+
readonly Assistant: "assistant";
|
|
1505
|
+
readonly User: "user";
|
|
1506
|
+
readonly Exception: "exception";
|
|
1507
|
+
readonly Tool: "tool";
|
|
1508
|
+
readonly Prompt: "prompt";
|
|
1509
|
+
readonly Correction: "correction";
|
|
1510
|
+
readonly ExpectedOutput: "expected_output";
|
|
1511
|
+
}>;
|
|
1512
|
+
}
|
|
1513
|
+
/** @internal */
|
|
1514
|
+
export declare const CreatePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsType>;
|
|
1515
|
+
/** @internal */
|
|
1516
|
+
export declare const CreatePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsType>;
|
|
1517
|
+
/**
|
|
1518
|
+
* @internal
|
|
1519
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1520
|
+
*/
|
|
1521
|
+
export declare namespace CreatePrompt2PromptsType$ {
|
|
1522
|
+
/** @deprecated use `CreatePrompt2PromptsType$inboundSchema` instead. */
|
|
1523
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1524
|
+
readonly ImageUrl: "image_url";
|
|
1525
|
+
}>;
|
|
1526
|
+
/** @deprecated use `CreatePrompt2PromptsType$outboundSchema` instead. */
|
|
1527
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1528
|
+
readonly ImageUrl: "image_url";
|
|
1529
|
+
}>;
|
|
1530
|
+
}
|
|
1531
|
+
/** @internal */
|
|
1532
|
+
export declare const CreatePrompt2ImageUrl$inboundSchema: z.ZodType<CreatePrompt2ImageUrl, z.ZodTypeDef, unknown>;
|
|
1533
|
+
/** @internal */
|
|
1534
|
+
export type CreatePrompt2ImageUrl$Outbound = {
|
|
1535
|
+
url: string;
|
|
1536
|
+
detail?: string | undefined;
|
|
1537
|
+
};
|
|
1538
|
+
/** @internal */
|
|
1539
|
+
export declare const CreatePrompt2ImageUrl$outboundSchema: z.ZodType<CreatePrompt2ImageUrl$Outbound, z.ZodTypeDef, CreatePrompt2ImageUrl>;
|
|
1540
|
+
/**
|
|
1541
|
+
* @internal
|
|
1542
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1543
|
+
*/
|
|
1544
|
+
export declare namespace CreatePrompt2ImageUrl$ {
|
|
1545
|
+
/** @deprecated use `CreatePrompt2ImageUrl$inboundSchema` instead. */
|
|
1546
|
+
const inboundSchema: z.ZodType<CreatePrompt2ImageUrl, z.ZodTypeDef, unknown>;
|
|
1547
|
+
/** @deprecated use `CreatePrompt2ImageUrl$outboundSchema` instead. */
|
|
1548
|
+
const outboundSchema: z.ZodType<CreatePrompt2ImageUrl$Outbound, z.ZodTypeDef, CreatePrompt2ImageUrl>;
|
|
1549
|
+
/** @deprecated use `CreatePrompt2ImageUrl$Outbound` instead. */
|
|
1550
|
+
type Outbound = CreatePrompt2ImageUrl$Outbound;
|
|
1551
|
+
}
|
|
1552
|
+
export declare function createPrompt2ImageUrlToJSON(createPrompt2ImageUrl: CreatePrompt2ImageUrl): string;
|
|
1553
|
+
export declare function createPrompt2ImageUrlFromJSON(jsonString: string): SafeParseResult<CreatePrompt2ImageUrl, SDKValidationError>;
|
|
1554
|
+
/** @internal */
|
|
1555
|
+
export declare const CreatePrompt22$inboundSchema: z.ZodType<CreatePrompt22, z.ZodTypeDef, unknown>;
|
|
1556
|
+
/** @internal */
|
|
1557
|
+
export type CreatePrompt22$Outbound = {
|
|
1558
|
+
type: string;
|
|
1559
|
+
image_url: CreatePrompt2ImageUrl$Outbound;
|
|
1560
|
+
};
|
|
1561
|
+
/** @internal */
|
|
1562
|
+
export declare const CreatePrompt22$outboundSchema: z.ZodType<CreatePrompt22$Outbound, z.ZodTypeDef, CreatePrompt22>;
|
|
1563
|
+
/**
|
|
1564
|
+
* @internal
|
|
1565
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1566
|
+
*/
|
|
1567
|
+
export declare namespace CreatePrompt22$ {
|
|
1568
|
+
/** @deprecated use `CreatePrompt22$inboundSchema` instead. */
|
|
1569
|
+
const inboundSchema: z.ZodType<CreatePrompt22, z.ZodTypeDef, unknown>;
|
|
1570
|
+
/** @deprecated use `CreatePrompt22$outboundSchema` instead. */
|
|
1571
|
+
const outboundSchema: z.ZodType<CreatePrompt22$Outbound, z.ZodTypeDef, CreatePrompt22>;
|
|
1572
|
+
/** @deprecated use `CreatePrompt22$Outbound` instead. */
|
|
1573
|
+
type Outbound = CreatePrompt22$Outbound;
|
|
1574
|
+
}
|
|
1575
|
+
export declare function createPrompt22ToJSON(createPrompt22: CreatePrompt22): string;
|
|
1576
|
+
export declare function createPrompt22FromJSON(jsonString: string): SafeParseResult<CreatePrompt22, SDKValidationError>;
|
|
1577
|
+
/** @internal */
|
|
1578
|
+
export declare const CreatePrompt2Type$inboundSchema: z.ZodNativeEnum<typeof CreatePrompt2Type>;
|
|
1579
|
+
/** @internal */
|
|
1580
|
+
export declare const CreatePrompt2Type$outboundSchema: z.ZodNativeEnum<typeof CreatePrompt2Type>;
|
|
1581
|
+
/**
|
|
1582
|
+
* @internal
|
|
1583
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1584
|
+
*/
|
|
1585
|
+
export declare namespace CreatePrompt2Type$ {
|
|
1586
|
+
/** @deprecated use `CreatePrompt2Type$inboundSchema` instead. */
|
|
1587
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1588
|
+
readonly Text: "text";
|
|
1589
|
+
}>;
|
|
1590
|
+
/** @deprecated use `CreatePrompt2Type$outboundSchema` instead. */
|
|
1591
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1592
|
+
readonly Text: "text";
|
|
1593
|
+
}>;
|
|
1594
|
+
}
|
|
1595
|
+
/** @internal */
|
|
1596
|
+
export declare const CreatePrompt21$inboundSchema: z.ZodType<CreatePrompt21, z.ZodTypeDef, unknown>;
|
|
1597
|
+
/** @internal */
|
|
1598
|
+
export type CreatePrompt21$Outbound = {
|
|
1599
|
+
type: string;
|
|
1600
|
+
text: string;
|
|
1601
|
+
};
|
|
1602
|
+
/** @internal */
|
|
1603
|
+
export declare const CreatePrompt21$outboundSchema: z.ZodType<CreatePrompt21$Outbound, z.ZodTypeDef, CreatePrompt21>;
|
|
1604
|
+
/**
|
|
1605
|
+
* @internal
|
|
1606
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1607
|
+
*/
|
|
1608
|
+
export declare namespace CreatePrompt21$ {
|
|
1609
|
+
/** @deprecated use `CreatePrompt21$inboundSchema` instead. */
|
|
1610
|
+
const inboundSchema: z.ZodType<CreatePrompt21, z.ZodTypeDef, unknown>;
|
|
1611
|
+
/** @deprecated use `CreatePrompt21$outboundSchema` instead. */
|
|
1612
|
+
const outboundSchema: z.ZodType<CreatePrompt21$Outbound, z.ZodTypeDef, CreatePrompt21>;
|
|
1613
|
+
/** @deprecated use `CreatePrompt21$Outbound` instead. */
|
|
1614
|
+
type Outbound = CreatePrompt21$Outbound;
|
|
1615
|
+
}
|
|
1616
|
+
export declare function createPrompt21ToJSON(createPrompt21: CreatePrompt21): string;
|
|
1617
|
+
export declare function createPrompt21FromJSON(jsonString: string): SafeParseResult<CreatePrompt21, SDKValidationError>;
|
|
1618
|
+
/** @internal */
|
|
1619
|
+
export declare const CreatePromptContent2$inboundSchema: z.ZodType<CreatePromptContent2, z.ZodTypeDef, unknown>;
|
|
1620
|
+
/** @internal */
|
|
1621
|
+
export type CreatePromptContent2$Outbound = CreatePrompt21$Outbound | CreatePrompt22$Outbound;
|
|
1622
|
+
/** @internal */
|
|
1623
|
+
export declare const CreatePromptContent2$outboundSchema: z.ZodType<CreatePromptContent2$Outbound, z.ZodTypeDef, CreatePromptContent2>;
|
|
1624
|
+
/**
|
|
1625
|
+
* @internal
|
|
1626
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1627
|
+
*/
|
|
1628
|
+
export declare namespace CreatePromptContent2$ {
|
|
1629
|
+
/** @deprecated use `CreatePromptContent2$inboundSchema` instead. */
|
|
1630
|
+
const inboundSchema: z.ZodType<CreatePromptContent2, z.ZodTypeDef, unknown>;
|
|
1631
|
+
/** @deprecated use `CreatePromptContent2$outboundSchema` instead. */
|
|
1632
|
+
const outboundSchema: z.ZodType<CreatePromptContent2$Outbound, z.ZodTypeDef, CreatePromptContent2>;
|
|
1633
|
+
/** @deprecated use `CreatePromptContent2$Outbound` instead. */
|
|
1634
|
+
type Outbound = CreatePromptContent2$Outbound;
|
|
1635
|
+
}
|
|
1636
|
+
export declare function createPromptContent2ToJSON(createPromptContent2: CreatePromptContent2): string;
|
|
1637
|
+
export declare function createPromptContent2FromJSON(jsonString: string): SafeParseResult<CreatePromptContent2, SDKValidationError>;
|
|
1638
|
+
/** @internal */
|
|
1639
|
+
export declare const CreatePromptContent$inboundSchema: z.ZodType<CreatePromptContent, z.ZodTypeDef, unknown>;
|
|
1640
|
+
/** @internal */
|
|
1641
|
+
export type CreatePromptContent$Outbound = string | Array<CreatePrompt21$Outbound | CreatePrompt22$Outbound>;
|
|
1642
|
+
/** @internal */
|
|
1643
|
+
export declare const CreatePromptContent$outboundSchema: z.ZodType<CreatePromptContent$Outbound, z.ZodTypeDef, CreatePromptContent>;
|
|
1644
|
+
/**
|
|
1645
|
+
* @internal
|
|
1646
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1647
|
+
*/
|
|
1648
|
+
export declare namespace CreatePromptContent$ {
|
|
1649
|
+
/** @deprecated use `CreatePromptContent$inboundSchema` instead. */
|
|
1650
|
+
const inboundSchema: z.ZodType<CreatePromptContent, z.ZodTypeDef, unknown>;
|
|
1651
|
+
/** @deprecated use `CreatePromptContent$outboundSchema` instead. */
|
|
1652
|
+
const outboundSchema: z.ZodType<CreatePromptContent$Outbound, z.ZodTypeDef, CreatePromptContent>;
|
|
1653
|
+
/** @deprecated use `CreatePromptContent$Outbound` instead. */
|
|
1654
|
+
type Outbound = CreatePromptContent$Outbound;
|
|
1655
|
+
}
|
|
1656
|
+
export declare function createPromptContentToJSON(createPromptContent: CreatePromptContent): string;
|
|
1657
|
+
export declare function createPromptContentFromJSON(jsonString: string): SafeParseResult<CreatePromptContent, SDKValidationError>;
|
|
1658
|
+
/** @internal */
|
|
1659
|
+
export declare const CreatePromptType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptType>;
|
|
1660
|
+
/** @internal */
|
|
1661
|
+
export declare const CreatePromptType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptType>;
|
|
1662
|
+
/**
|
|
1663
|
+
* @internal
|
|
1664
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1665
|
+
*/
|
|
1666
|
+
export declare namespace CreatePromptType$ {
|
|
1667
|
+
/** @deprecated use `CreatePromptType$inboundSchema` instead. */
|
|
1668
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1669
|
+
readonly Function: "function";
|
|
1670
|
+
}>;
|
|
1671
|
+
/** @deprecated use `CreatePromptType$outboundSchema` instead. */
|
|
1672
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1673
|
+
readonly Function: "function";
|
|
1674
|
+
}>;
|
|
1675
|
+
}
|
|
1676
|
+
/** @internal */
|
|
1677
|
+
export declare const CreatePromptFunction$inboundSchema: z.ZodType<CreatePromptFunction, z.ZodTypeDef, unknown>;
|
|
1678
|
+
/** @internal */
|
|
1679
|
+
export type CreatePromptFunction$Outbound = {
|
|
1680
|
+
name: string;
|
|
1681
|
+
arguments: string;
|
|
1682
|
+
};
|
|
1683
|
+
/** @internal */
|
|
1684
|
+
export declare const CreatePromptFunction$outboundSchema: z.ZodType<CreatePromptFunction$Outbound, z.ZodTypeDef, CreatePromptFunction>;
|
|
1685
|
+
/**
|
|
1686
|
+
* @internal
|
|
1687
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1688
|
+
*/
|
|
1689
|
+
export declare namespace CreatePromptFunction$ {
|
|
1690
|
+
/** @deprecated use `CreatePromptFunction$inboundSchema` instead. */
|
|
1691
|
+
const inboundSchema: z.ZodType<CreatePromptFunction, z.ZodTypeDef, unknown>;
|
|
1692
|
+
/** @deprecated use `CreatePromptFunction$outboundSchema` instead. */
|
|
1693
|
+
const outboundSchema: z.ZodType<CreatePromptFunction$Outbound, z.ZodTypeDef, CreatePromptFunction>;
|
|
1694
|
+
/** @deprecated use `CreatePromptFunction$Outbound` instead. */
|
|
1695
|
+
type Outbound = CreatePromptFunction$Outbound;
|
|
1696
|
+
}
|
|
1697
|
+
export declare function createPromptFunctionToJSON(createPromptFunction: CreatePromptFunction): string;
|
|
1698
|
+
export declare function createPromptFunctionFromJSON(jsonString: string): SafeParseResult<CreatePromptFunction, SDKValidationError>;
|
|
1699
|
+
/** @internal */
|
|
1700
|
+
export declare const CreatePromptToolCalls$inboundSchema: z.ZodType<CreatePromptToolCalls, z.ZodTypeDef, unknown>;
|
|
1701
|
+
/** @internal */
|
|
1702
|
+
export type CreatePromptToolCalls$Outbound = {
|
|
1703
|
+
id?: string | undefined;
|
|
1704
|
+
index?: number | undefined;
|
|
1705
|
+
type: string;
|
|
1706
|
+
function: CreatePromptFunction$Outbound;
|
|
1707
|
+
};
|
|
1708
|
+
/** @internal */
|
|
1709
|
+
export declare const CreatePromptToolCalls$outboundSchema: z.ZodType<CreatePromptToolCalls$Outbound, z.ZodTypeDef, CreatePromptToolCalls>;
|
|
1710
|
+
/**
|
|
1711
|
+
* @internal
|
|
1712
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1713
|
+
*/
|
|
1714
|
+
export declare namespace CreatePromptToolCalls$ {
|
|
1715
|
+
/** @deprecated use `CreatePromptToolCalls$inboundSchema` instead. */
|
|
1716
|
+
const inboundSchema: z.ZodType<CreatePromptToolCalls, z.ZodTypeDef, unknown>;
|
|
1717
|
+
/** @deprecated use `CreatePromptToolCalls$outboundSchema` instead. */
|
|
1718
|
+
const outboundSchema: z.ZodType<CreatePromptToolCalls$Outbound, z.ZodTypeDef, CreatePromptToolCalls>;
|
|
1719
|
+
/** @deprecated use `CreatePromptToolCalls$Outbound` instead. */
|
|
1720
|
+
type Outbound = CreatePromptToolCalls$Outbound;
|
|
1721
|
+
}
|
|
1722
|
+
export declare function createPromptToolCallsToJSON(createPromptToolCalls: CreatePromptToolCalls): string;
|
|
1723
|
+
export declare function createPromptToolCallsFromJSON(jsonString: string): SafeParseResult<CreatePromptToolCalls, SDKValidationError>;
|
|
1724
|
+
/** @internal */
|
|
1725
|
+
export declare const CreatePromptMessages$inboundSchema: z.ZodType<CreatePromptMessages, z.ZodTypeDef, unknown>;
|
|
1726
|
+
/** @internal */
|
|
1727
|
+
export type CreatePromptMessages$Outbound = {
|
|
1728
|
+
role: string;
|
|
1729
|
+
content: string | Array<CreatePrompt21$Outbound | CreatePrompt22$Outbound>;
|
|
1730
|
+
tool_calls?: Array<CreatePromptToolCalls$Outbound> | undefined;
|
|
1731
|
+
};
|
|
1732
|
+
/** @internal */
|
|
1733
|
+
export declare const CreatePromptMessages$outboundSchema: z.ZodType<CreatePromptMessages$Outbound, z.ZodTypeDef, CreatePromptMessages>;
|
|
1734
|
+
/**
|
|
1735
|
+
* @internal
|
|
1736
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1737
|
+
*/
|
|
1738
|
+
export declare namespace CreatePromptMessages$ {
|
|
1739
|
+
/** @deprecated use `CreatePromptMessages$inboundSchema` instead. */
|
|
1740
|
+
const inboundSchema: z.ZodType<CreatePromptMessages, z.ZodTypeDef, unknown>;
|
|
1741
|
+
/** @deprecated use `CreatePromptMessages$outboundSchema` instead. */
|
|
1742
|
+
const outboundSchema: z.ZodType<CreatePromptMessages$Outbound, z.ZodTypeDef, CreatePromptMessages>;
|
|
1743
|
+
/** @deprecated use `CreatePromptMessages$Outbound` instead. */
|
|
1744
|
+
type Outbound = CreatePromptMessages$Outbound;
|
|
1745
|
+
}
|
|
1746
|
+
export declare function createPromptMessagesToJSON(createPromptMessages: CreatePromptMessages): string;
|
|
1747
|
+
export declare function createPromptMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptMessages, SDKValidationError>;
|
|
1748
|
+
/** @internal */
|
|
1749
|
+
export declare const CreatePromptPromptConfig$inboundSchema: z.ZodType<CreatePromptPromptConfig, z.ZodTypeDef, unknown>;
|
|
1750
|
+
/** @internal */
|
|
1751
|
+
export type CreatePromptPromptConfig$Outbound = {
|
|
1752
|
+
stream?: boolean | undefined;
|
|
1753
|
+
model?: string | undefined;
|
|
1754
|
+
model_type?: string | undefined;
|
|
1755
|
+
model_parameters?: CreatePromptModelParameters$Outbound | undefined;
|
|
1756
|
+
provider?: string | undefined;
|
|
1757
|
+
version?: string | undefined;
|
|
1758
|
+
messages: Array<CreatePromptMessages$Outbound>;
|
|
1759
|
+
};
|
|
1760
|
+
/** @internal */
|
|
1761
|
+
export declare const CreatePromptPromptConfig$outboundSchema: z.ZodType<CreatePromptPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptConfig>;
|
|
1762
|
+
/**
|
|
1763
|
+
* @internal
|
|
1764
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1765
|
+
*/
|
|
1766
|
+
export declare namespace CreatePromptPromptConfig$ {
|
|
1767
|
+
/** @deprecated use `CreatePromptPromptConfig$inboundSchema` instead. */
|
|
1768
|
+
const inboundSchema: z.ZodType<CreatePromptPromptConfig, z.ZodTypeDef, unknown>;
|
|
1769
|
+
/** @deprecated use `CreatePromptPromptConfig$outboundSchema` instead. */
|
|
1770
|
+
const outboundSchema: z.ZodType<CreatePromptPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptConfig>;
|
|
1771
|
+
/** @deprecated use `CreatePromptPromptConfig$Outbound` instead. */
|
|
1772
|
+
type Outbound = CreatePromptPromptConfig$Outbound;
|
|
1773
|
+
}
|
|
1774
|
+
export declare function createPromptPromptConfigToJSON(createPromptPromptConfig: CreatePromptPromptConfig): string;
|
|
1775
|
+
export declare function createPromptPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptConfig, SDKValidationError>;
|
|
1776
|
+
/** @internal */
|
|
1777
|
+
export declare const CreatePromptUseCases$inboundSchema: z.ZodNativeEnum<typeof CreatePromptUseCases>;
|
|
1778
|
+
/** @internal */
|
|
1779
|
+
export declare const CreatePromptUseCases$outboundSchema: z.ZodNativeEnum<typeof CreatePromptUseCases>;
|
|
1780
|
+
/**
|
|
1781
|
+
* @internal
|
|
1782
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1783
|
+
*/
|
|
1784
|
+
export declare namespace CreatePromptUseCases$ {
|
|
1785
|
+
/** @deprecated use `CreatePromptUseCases$inboundSchema` instead. */
|
|
1786
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1787
|
+
readonly Agents: "Agents";
|
|
1788
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
1789
|
+
readonly APIInteraction: "API interaction";
|
|
1790
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
1791
|
+
readonly Chatbots: "Chatbots";
|
|
1792
|
+
readonly Classification: "Classification";
|
|
1793
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
1794
|
+
readonly CodeWriting: "Code writing";
|
|
1795
|
+
readonly DocumentsQA: "Documents QA";
|
|
1796
|
+
readonly Conversation: "Conversation";
|
|
1797
|
+
readonly Extraction: "Extraction";
|
|
1798
|
+
readonly MultiModal: "Multi-modal";
|
|
1799
|
+
readonly SelfChecking: "Self-checking";
|
|
1800
|
+
readonly Sql: "SQL";
|
|
1801
|
+
readonly Summarization: "Summarization";
|
|
1802
|
+
readonly Tagging: "Tagging";
|
|
1803
|
+
}>;
|
|
1804
|
+
/** @deprecated use `CreatePromptUseCases$outboundSchema` instead. */
|
|
1805
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1806
|
+
readonly Agents: "Agents";
|
|
1807
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
1808
|
+
readonly APIInteraction: "API interaction";
|
|
1809
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
1810
|
+
readonly Chatbots: "Chatbots";
|
|
1811
|
+
readonly Classification: "Classification";
|
|
1812
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
1813
|
+
readonly CodeWriting: "Code writing";
|
|
1814
|
+
readonly DocumentsQA: "Documents QA";
|
|
1815
|
+
readonly Conversation: "Conversation";
|
|
1816
|
+
readonly Extraction: "Extraction";
|
|
1817
|
+
readonly MultiModal: "Multi-modal";
|
|
1818
|
+
readonly SelfChecking: "Self-checking";
|
|
1819
|
+
readonly Sql: "SQL";
|
|
1820
|
+
readonly Summarization: "Summarization";
|
|
1821
|
+
readonly Tagging: "Tagging";
|
|
1822
|
+
}>;
|
|
1823
|
+
}
|
|
1824
|
+
/** @internal */
|
|
1825
|
+
export declare const CreatePromptLanguage$inboundSchema: z.ZodNativeEnum<typeof CreatePromptLanguage>;
|
|
1826
|
+
/** @internal */
|
|
1827
|
+
export declare const CreatePromptLanguage$outboundSchema: z.ZodNativeEnum<typeof CreatePromptLanguage>;
|
|
1828
|
+
/**
|
|
1829
|
+
* @internal
|
|
1830
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1831
|
+
*/
|
|
1832
|
+
export declare namespace CreatePromptLanguage$ {
|
|
1833
|
+
/** @deprecated use `CreatePromptLanguage$inboundSchema` instead. */
|
|
1834
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1835
|
+
readonly Chinese: "Chinese";
|
|
1836
|
+
readonly Dutch: "Dutch";
|
|
1837
|
+
readonly English: "English";
|
|
1838
|
+
readonly French: "French";
|
|
1839
|
+
readonly German: "German";
|
|
1840
|
+
readonly Russian: "Russian";
|
|
1841
|
+
readonly Spanish: "Spanish";
|
|
1842
|
+
}>;
|
|
1843
|
+
/** @deprecated use `CreatePromptLanguage$outboundSchema` instead. */
|
|
1844
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1845
|
+
readonly Chinese: "Chinese";
|
|
1846
|
+
readonly Dutch: "Dutch";
|
|
1847
|
+
readonly English: "English";
|
|
1848
|
+
readonly French: "French";
|
|
1849
|
+
readonly German: "German";
|
|
1850
|
+
readonly Russian: "Russian";
|
|
1851
|
+
readonly Spanish: "Spanish";
|
|
1852
|
+
}>;
|
|
1853
|
+
}
|
|
1854
|
+
/** @internal */
|
|
1855
|
+
export declare const CreatePromptMetadata$inboundSchema: z.ZodType<CreatePromptMetadata, z.ZodTypeDef, unknown>;
|
|
1856
|
+
/** @internal */
|
|
1857
|
+
export type CreatePromptMetadata$Outbound = {
|
|
1858
|
+
use_cases?: Array<string> | undefined;
|
|
1859
|
+
language?: string | undefined;
|
|
1860
|
+
};
|
|
1861
|
+
/** @internal */
|
|
1862
|
+
export declare const CreatePromptMetadata$outboundSchema: z.ZodType<CreatePromptMetadata$Outbound, z.ZodTypeDef, CreatePromptMetadata>;
|
|
1863
|
+
/**
|
|
1864
|
+
* @internal
|
|
1865
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1866
|
+
*/
|
|
1867
|
+
export declare namespace CreatePromptMetadata$ {
|
|
1868
|
+
/** @deprecated use `CreatePromptMetadata$inboundSchema` instead. */
|
|
1869
|
+
const inboundSchema: z.ZodType<CreatePromptMetadata, z.ZodTypeDef, unknown>;
|
|
1870
|
+
/** @deprecated use `CreatePromptMetadata$outboundSchema` instead. */
|
|
1871
|
+
const outboundSchema: z.ZodType<CreatePromptMetadata$Outbound, z.ZodTypeDef, CreatePromptMetadata>;
|
|
1872
|
+
/** @deprecated use `CreatePromptMetadata$Outbound` instead. */
|
|
1873
|
+
type Outbound = CreatePromptMetadata$Outbound;
|
|
1874
|
+
}
|
|
1875
|
+
export declare function createPromptMetadataToJSON(createPromptMetadata: CreatePromptMetadata): string;
|
|
1876
|
+
export declare function createPromptMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptMetadata, SDKValidationError>;
|
|
1877
|
+
/** @internal */
|
|
1878
|
+
export declare const CreatePromptRequestBody$inboundSchema: z.ZodType<CreatePromptRequestBody, z.ZodTypeDef, unknown>;
|
|
1879
|
+
/** @internal */
|
|
1880
|
+
export type CreatePromptRequestBody$Outbound = {
|
|
1881
|
+
display_name: string;
|
|
1882
|
+
description?: string | null | undefined;
|
|
1883
|
+
prompt_config: CreatePromptPromptConfig$Outbound;
|
|
1884
|
+
metadata?: CreatePromptMetadata$Outbound | undefined;
|
|
1885
|
+
path: string;
|
|
1886
|
+
};
|
|
1887
|
+
/** @internal */
|
|
1888
|
+
export declare const CreatePromptRequestBody$outboundSchema: z.ZodType<CreatePromptRequestBody$Outbound, z.ZodTypeDef, CreatePromptRequestBody>;
|
|
1889
|
+
/**
|
|
1890
|
+
* @internal
|
|
1891
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1892
|
+
*/
|
|
1893
|
+
export declare namespace CreatePromptRequestBody$ {
|
|
1894
|
+
/** @deprecated use `CreatePromptRequestBody$inboundSchema` instead. */
|
|
1895
|
+
const inboundSchema: z.ZodType<CreatePromptRequestBody, z.ZodTypeDef, unknown>;
|
|
1896
|
+
/** @deprecated use `CreatePromptRequestBody$outboundSchema` instead. */
|
|
1897
|
+
const outboundSchema: z.ZodType<CreatePromptRequestBody$Outbound, z.ZodTypeDef, CreatePromptRequestBody>;
|
|
1898
|
+
/** @deprecated use `CreatePromptRequestBody$Outbound` instead. */
|
|
1899
|
+
type Outbound = CreatePromptRequestBody$Outbound;
|
|
1900
|
+
}
|
|
1901
|
+
export declare function createPromptRequestBodyToJSON(createPromptRequestBody: CreatePromptRequestBody): string;
|
|
1902
|
+
export declare function createPromptRequestBodyFromJSON(jsonString: string): SafeParseResult<CreatePromptRequestBody, SDKValidationError>;
|
|
1903
|
+
/** @internal */
|
|
1904
|
+
export declare const CreatePromptOwner2$inboundSchema: z.ZodNativeEnum<typeof CreatePromptOwner2>;
|
|
1905
|
+
/** @internal */
|
|
1906
|
+
export declare const CreatePromptOwner2$outboundSchema: z.ZodNativeEnum<typeof CreatePromptOwner2>;
|
|
1907
|
+
/**
|
|
1908
|
+
* @internal
|
|
1909
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1910
|
+
*/
|
|
1911
|
+
export declare namespace CreatePromptOwner2$ {
|
|
1912
|
+
/** @deprecated use `CreatePromptOwner2$inboundSchema` instead. */
|
|
1913
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1914
|
+
readonly Vendor: "vendor";
|
|
1915
|
+
}>;
|
|
1916
|
+
/** @deprecated use `CreatePromptOwner2$outboundSchema` instead. */
|
|
1917
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1918
|
+
readonly Vendor: "vendor";
|
|
1919
|
+
}>;
|
|
1920
|
+
}
|
|
1921
|
+
/** @internal */
|
|
1922
|
+
export declare const CreatePromptOwner$inboundSchema: z.ZodType<CreatePromptOwner, z.ZodTypeDef, unknown>;
|
|
1923
|
+
/** @internal */
|
|
1924
|
+
export type CreatePromptOwner$Outbound = string | string;
|
|
1925
|
+
/** @internal */
|
|
1926
|
+
export declare const CreatePromptOwner$outboundSchema: z.ZodType<CreatePromptOwner$Outbound, z.ZodTypeDef, CreatePromptOwner>;
|
|
1927
|
+
/**
|
|
1928
|
+
* @internal
|
|
1929
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1930
|
+
*/
|
|
1931
|
+
export declare namespace CreatePromptOwner$ {
|
|
1932
|
+
/** @deprecated use `CreatePromptOwner$inboundSchema` instead. */
|
|
1933
|
+
const inboundSchema: z.ZodType<string, z.ZodTypeDef, unknown>;
|
|
1934
|
+
/** @deprecated use `CreatePromptOwner$outboundSchema` instead. */
|
|
1935
|
+
const outboundSchema: z.ZodType<string, z.ZodTypeDef, string>;
|
|
1936
|
+
/** @deprecated use `CreatePromptOwner$Outbound` instead. */
|
|
1937
|
+
type Outbound = CreatePromptOwner$Outbound;
|
|
1938
|
+
}
|
|
1939
|
+
export declare function createPromptOwnerToJSON(createPromptOwner: CreatePromptOwner): string;
|
|
1940
|
+
export declare function createPromptOwnerFromJSON(jsonString: string): SafeParseResult<CreatePromptOwner, SDKValidationError>;
|
|
1941
|
+
/** @internal */
|
|
1942
|
+
export declare const CreatePromptPromptsModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsModelType>;
|
|
1943
|
+
/** @internal */
|
|
1944
|
+
export declare const CreatePromptPromptsModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsModelType>;
|
|
1945
|
+
/**
|
|
1946
|
+
* @internal
|
|
1947
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1948
|
+
*/
|
|
1949
|
+
export declare namespace CreatePromptPromptsModelType$ {
|
|
1950
|
+
/** @deprecated use `CreatePromptPromptsModelType$inboundSchema` instead. */
|
|
1951
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1952
|
+
readonly Chat: "chat";
|
|
1953
|
+
readonly Completion: "completion";
|
|
1954
|
+
readonly Embedding: "embedding";
|
|
1955
|
+
readonly Vision: "vision";
|
|
1956
|
+
readonly Image: "image";
|
|
1957
|
+
readonly Tts: "tts";
|
|
1958
|
+
readonly Stt: "stt";
|
|
1959
|
+
readonly Rerank: "rerank";
|
|
1960
|
+
readonly Moderations: "moderations";
|
|
1961
|
+
}>;
|
|
1962
|
+
/** @deprecated use `CreatePromptPromptsModelType$outboundSchema` instead. */
|
|
1963
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1964
|
+
readonly Chat: "chat";
|
|
1965
|
+
readonly Completion: "completion";
|
|
1966
|
+
readonly Embedding: "embedding";
|
|
1967
|
+
readonly Vision: "vision";
|
|
1968
|
+
readonly Image: "image";
|
|
1969
|
+
readonly Tts: "tts";
|
|
1970
|
+
readonly Stt: "stt";
|
|
1971
|
+
readonly Rerank: "rerank";
|
|
1972
|
+
readonly Moderations: "moderations";
|
|
1973
|
+
}>;
|
|
1974
|
+
}
|
|
1975
|
+
/** @internal */
|
|
1976
|
+
export declare const CreatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsFormat>;
|
|
1977
|
+
/** @internal */
|
|
1978
|
+
export declare const CreatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsFormat>;
|
|
1979
|
+
/**
|
|
1980
|
+
* @internal
|
|
1981
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1982
|
+
*/
|
|
1983
|
+
export declare namespace CreatePromptPromptsFormat$ {
|
|
1984
|
+
/** @deprecated use `CreatePromptPromptsFormat$inboundSchema` instead. */
|
|
1985
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1986
|
+
readonly Url: "url";
|
|
1987
|
+
readonly B64Json: "b64_json";
|
|
1988
|
+
readonly Text: "text";
|
|
1989
|
+
readonly JsonObject: "json_object";
|
|
1990
|
+
}>;
|
|
1991
|
+
/** @deprecated use `CreatePromptPromptsFormat$outboundSchema` instead. */
|
|
1992
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1993
|
+
readonly Url: "url";
|
|
1994
|
+
readonly B64Json: "b64_json";
|
|
1995
|
+
readonly Text: "text";
|
|
1996
|
+
readonly JsonObject: "json_object";
|
|
1997
|
+
}>;
|
|
1998
|
+
}
|
|
1999
|
+
/** @internal */
|
|
2000
|
+
export declare const CreatePromptPromptsQuality$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsQuality>;
|
|
2001
|
+
/** @internal */
|
|
2002
|
+
export declare const CreatePromptPromptsQuality$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsQuality>;
|
|
2003
|
+
/**
|
|
2004
|
+
* @internal
|
|
2005
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2006
|
+
*/
|
|
2007
|
+
export declare namespace CreatePromptPromptsQuality$ {
|
|
2008
|
+
/** @deprecated use `CreatePromptPromptsQuality$inboundSchema` instead. */
|
|
2009
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2010
|
+
readonly Standard: "standard";
|
|
2011
|
+
readonly Hd: "hd";
|
|
2012
|
+
}>;
|
|
2013
|
+
/** @deprecated use `CreatePromptPromptsQuality$outboundSchema` instead. */
|
|
2014
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2015
|
+
readonly Standard: "standard";
|
|
2016
|
+
readonly Hd: "hd";
|
|
2017
|
+
}>;
|
|
2018
|
+
}
|
|
2019
|
+
/** @internal */
|
|
2020
|
+
export declare const CreatePromptResponseFormatPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type>;
|
|
2021
|
+
/** @internal */
|
|
2022
|
+
export declare const CreatePromptResponseFormatPromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200Type>;
|
|
2023
|
+
/**
|
|
2024
|
+
* @internal
|
|
2025
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2026
|
+
*/
|
|
2027
|
+
export declare namespace CreatePromptResponseFormatPromptsResponse200Type$ {
|
|
2028
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
|
|
2029
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2030
|
+
readonly JsonObject: "json_object";
|
|
2031
|
+
}>;
|
|
2032
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
|
|
2033
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2034
|
+
readonly JsonObject: "json_object";
|
|
2035
|
+
}>;
|
|
2036
|
+
}
|
|
2037
|
+
/** @internal */
|
|
2038
|
+
export declare const CreatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<CreatePromptResponseFormatPrompts2, z.ZodTypeDef, unknown>;
|
|
2039
|
+
/** @internal */
|
|
2040
|
+
export type CreatePromptResponseFormatPrompts2$Outbound = {
|
|
2041
|
+
type: string;
|
|
2042
|
+
};
|
|
2043
|
+
/** @internal */
|
|
2044
|
+
export declare const CreatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<CreatePromptResponseFormatPrompts2$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPrompts2>;
|
|
2045
|
+
/**
|
|
2046
|
+
* @internal
|
|
2047
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2048
|
+
*/
|
|
2049
|
+
export declare namespace CreatePromptResponseFormatPrompts2$ {
|
|
2050
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts2$inboundSchema` instead. */
|
|
2051
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormatPrompts2, z.ZodTypeDef, unknown>;
|
|
2052
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts2$outboundSchema` instead. */
|
|
2053
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormatPrompts2$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPrompts2>;
|
|
2054
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts2$Outbound` instead. */
|
|
2055
|
+
type Outbound = CreatePromptResponseFormatPrompts2$Outbound;
|
|
2056
|
+
}
|
|
2057
|
+
export declare function createPromptResponseFormatPrompts2ToJSON(createPromptResponseFormatPrompts2: CreatePromptResponseFormatPrompts2): string;
|
|
2058
|
+
export declare function createPromptResponseFormatPrompts2FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatPrompts2, SDKValidationError>;
|
|
2059
|
+
/** @internal */
|
|
2060
|
+
export declare const CreatePromptResponseFormatPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
2061
|
+
/** @internal */
|
|
2062
|
+
export declare const CreatePromptResponseFormatPromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponseType>;
|
|
2063
|
+
/**
|
|
2064
|
+
* @internal
|
|
811
2065
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
812
2066
|
*/
|
|
813
|
-
export declare namespace
|
|
814
|
-
/** @deprecated use `
|
|
815
|
-
const inboundSchema: z.
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
/** @deprecated use `
|
|
819
|
-
|
|
2067
|
+
export declare namespace CreatePromptResponseFormatPromptsResponseType$ {
|
|
2068
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
2069
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2070
|
+
readonly JsonSchema: "json_schema";
|
|
2071
|
+
}>;
|
|
2072
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
2073
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2074
|
+
readonly JsonSchema: "json_schema";
|
|
2075
|
+
}>;
|
|
2076
|
+
}
|
|
2077
|
+
/** @internal */
|
|
2078
|
+
export declare const CreatePromptResponseFormatPromptsJsonSchema$inboundSchema: z.ZodType<CreatePromptResponseFormatPromptsJsonSchema, z.ZodTypeDef, unknown>;
|
|
2079
|
+
/** @internal */
|
|
2080
|
+
export type CreatePromptResponseFormatPromptsJsonSchema$Outbound = {
|
|
2081
|
+
name: string;
|
|
2082
|
+
strict: boolean;
|
|
2083
|
+
schema: {
|
|
2084
|
+
[k: string]: any;
|
|
2085
|
+
};
|
|
2086
|
+
};
|
|
2087
|
+
/** @internal */
|
|
2088
|
+
export declare const CreatePromptResponseFormatPromptsJsonSchema$outboundSchema: z.ZodType<CreatePromptResponseFormatPromptsJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPromptsJsonSchema>;
|
|
2089
|
+
/**
|
|
2090
|
+
* @internal
|
|
2091
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2092
|
+
*/
|
|
2093
|
+
export declare namespace CreatePromptResponseFormatPromptsJsonSchema$ {
|
|
2094
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$inboundSchema` instead. */
|
|
2095
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormatPromptsJsonSchema, z.ZodTypeDef, unknown>;
|
|
2096
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$outboundSchema` instead. */
|
|
2097
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormatPromptsJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPromptsJsonSchema>;
|
|
2098
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsJsonSchema$Outbound` instead. */
|
|
2099
|
+
type Outbound = CreatePromptResponseFormatPromptsJsonSchema$Outbound;
|
|
2100
|
+
}
|
|
2101
|
+
export declare function createPromptResponseFormatPromptsJsonSchemaToJSON(createPromptResponseFormatPromptsJsonSchema: CreatePromptResponseFormatPromptsJsonSchema): string;
|
|
2102
|
+
export declare function createPromptResponseFormatPromptsJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatPromptsJsonSchema, SDKValidationError>;
|
|
2103
|
+
/** @internal */
|
|
2104
|
+
export declare const CreatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<CreatePromptResponseFormatPrompts1, z.ZodTypeDef, unknown>;
|
|
2105
|
+
/** @internal */
|
|
2106
|
+
export type CreatePromptResponseFormatPrompts1$Outbound = {
|
|
2107
|
+
type: string;
|
|
2108
|
+
json_schema: CreatePromptResponseFormatPromptsJsonSchema$Outbound;
|
|
2109
|
+
};
|
|
2110
|
+
/** @internal */
|
|
2111
|
+
export declare const CreatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<CreatePromptResponseFormatPrompts1$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPrompts1>;
|
|
2112
|
+
/**
|
|
2113
|
+
* @internal
|
|
2114
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2115
|
+
*/
|
|
2116
|
+
export declare namespace CreatePromptResponseFormatPrompts1$ {
|
|
2117
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts1$inboundSchema` instead. */
|
|
2118
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormatPrompts1, z.ZodTypeDef, unknown>;
|
|
2119
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts1$outboundSchema` instead. */
|
|
2120
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormatPrompts1$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPrompts1>;
|
|
2121
|
+
/** @deprecated use `CreatePromptResponseFormatPrompts1$Outbound` instead. */
|
|
2122
|
+
type Outbound = CreatePromptResponseFormatPrompts1$Outbound;
|
|
820
2123
|
}
|
|
821
|
-
export declare function
|
|
822
|
-
export declare function
|
|
2124
|
+
export declare function createPromptResponseFormatPrompts1ToJSON(createPromptResponseFormatPrompts1: CreatePromptResponseFormatPrompts1): string;
|
|
2125
|
+
export declare function createPromptResponseFormatPrompts1FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatPrompts1, SDKValidationError>;
|
|
823
2126
|
/** @internal */
|
|
824
|
-
export declare const
|
|
2127
|
+
export declare const CreatePromptPromptsResponseFormat$inboundSchema: z.ZodType<CreatePromptPromptsResponseFormat, z.ZodTypeDef, unknown>;
|
|
825
2128
|
/** @internal */
|
|
826
|
-
export type
|
|
2129
|
+
export type CreatePromptPromptsResponseFormat$Outbound = CreatePromptResponseFormatPrompts2$Outbound | CreatePromptResponseFormatPrompts1$Outbound;
|
|
827
2130
|
/** @internal */
|
|
828
|
-
export declare const
|
|
2131
|
+
export declare const CreatePromptPromptsResponseFormat$outboundSchema: z.ZodType<CreatePromptPromptsResponseFormat$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseFormat>;
|
|
829
2132
|
/**
|
|
830
2133
|
* @internal
|
|
831
2134
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
832
2135
|
*/
|
|
833
|
-
export declare namespace
|
|
834
|
-
/** @deprecated use `
|
|
835
|
-
const inboundSchema: z.ZodType<
|
|
836
|
-
/** @deprecated use `
|
|
837
|
-
const outboundSchema: z.ZodType<
|
|
838
|
-
/** @deprecated use `
|
|
839
|
-
type Outbound =
|
|
2136
|
+
export declare namespace CreatePromptPromptsResponseFormat$ {
|
|
2137
|
+
/** @deprecated use `CreatePromptPromptsResponseFormat$inboundSchema` instead. */
|
|
2138
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsResponseFormat, z.ZodTypeDef, unknown>;
|
|
2139
|
+
/** @deprecated use `CreatePromptPromptsResponseFormat$outboundSchema` instead. */
|
|
2140
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsResponseFormat$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseFormat>;
|
|
2141
|
+
/** @deprecated use `CreatePromptPromptsResponseFormat$Outbound` instead. */
|
|
2142
|
+
type Outbound = CreatePromptPromptsResponseFormat$Outbound;
|
|
840
2143
|
}
|
|
841
|
-
export declare function
|
|
842
|
-
export declare function
|
|
2144
|
+
export declare function createPromptPromptsResponseFormatToJSON(createPromptPromptsResponseFormat: CreatePromptPromptsResponseFormat): string;
|
|
2145
|
+
export declare function createPromptPromptsResponseFormatFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsResponseFormat, SDKValidationError>;
|
|
843
2146
|
/** @internal */
|
|
844
|
-
export declare const
|
|
2147
|
+
export declare const CreatePromptPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsPhotoRealVersion>;
|
|
845
2148
|
/** @internal */
|
|
846
|
-
export declare const
|
|
2149
|
+
export declare const CreatePromptPromptsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsPhotoRealVersion>;
|
|
847
2150
|
/**
|
|
848
2151
|
* @internal
|
|
849
2152
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
850
2153
|
*/
|
|
851
|
-
export declare namespace
|
|
852
|
-
/** @deprecated use `
|
|
2154
|
+
export declare namespace CreatePromptPromptsPhotoRealVersion$ {
|
|
2155
|
+
/** @deprecated use `CreatePromptPromptsPhotoRealVersion$inboundSchema` instead. */
|
|
853
2156
|
const inboundSchema: z.ZodNativeEnum<{
|
|
854
2157
|
readonly V1: "v1";
|
|
855
2158
|
readonly V2: "v2";
|
|
856
2159
|
}>;
|
|
857
|
-
/** @deprecated use `
|
|
2160
|
+
/** @deprecated use `CreatePromptPromptsPhotoRealVersion$outboundSchema` instead. */
|
|
858
2161
|
const outboundSchema: z.ZodNativeEnum<{
|
|
859
2162
|
readonly V1: "v1";
|
|
860
2163
|
readonly V2: "v2";
|
|
861
2164
|
}>;
|
|
862
2165
|
}
|
|
863
2166
|
/** @internal */
|
|
864
|
-
export declare const
|
|
2167
|
+
export declare const CreatePromptPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsEncodingFormat>;
|
|
865
2168
|
/** @internal */
|
|
866
|
-
export declare const
|
|
2169
|
+
export declare const CreatePromptPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsEncodingFormat>;
|
|
867
2170
|
/**
|
|
868
2171
|
* @internal
|
|
869
2172
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
870
2173
|
*/
|
|
871
|
-
export declare namespace
|
|
872
|
-
/** @deprecated use `
|
|
2174
|
+
export declare namespace CreatePromptPromptsEncodingFormat$ {
|
|
2175
|
+
/** @deprecated use `CreatePromptPromptsEncodingFormat$inboundSchema` instead. */
|
|
873
2176
|
const inboundSchema: z.ZodNativeEnum<{
|
|
874
2177
|
readonly Float: "float";
|
|
875
2178
|
readonly Base64: "base64";
|
|
876
2179
|
}>;
|
|
877
|
-
/** @deprecated use `
|
|
2180
|
+
/** @deprecated use `CreatePromptPromptsEncodingFormat$outboundSchema` instead. */
|
|
878
2181
|
const outboundSchema: z.ZodNativeEnum<{
|
|
879
2182
|
readonly Float: "float";
|
|
880
2183
|
readonly Base64: "base64";
|
|
881
2184
|
}>;
|
|
882
2185
|
}
|
|
883
2186
|
/** @internal */
|
|
884
|
-
export declare const
|
|
2187
|
+
export declare const CreatePromptPromptsModelParameters$inboundSchema: z.ZodType<CreatePromptPromptsModelParameters, z.ZodTypeDef, unknown>;
|
|
885
2188
|
/** @internal */
|
|
886
|
-
export type
|
|
2189
|
+
export type CreatePromptPromptsModelParameters$Outbound = {
|
|
887
2190
|
temperature?: number | undefined;
|
|
888
2191
|
maxTokens?: number | undefined;
|
|
889
2192
|
topK?: number | undefined;
|
|
@@ -896,36 +2199,36 @@ export type ModelParameters$Outbound = {
|
|
|
896
2199
|
dimensions?: string | undefined;
|
|
897
2200
|
quality?: string | undefined;
|
|
898
2201
|
style?: string | undefined;
|
|
899
|
-
responseFormat?:
|
|
2202
|
+
responseFormat?: CreatePromptResponseFormatPrompts2$Outbound | CreatePromptResponseFormatPrompts1$Outbound | null | undefined;
|
|
900
2203
|
photoRealVersion?: string | undefined;
|
|
901
2204
|
encoding_format?: string | undefined;
|
|
902
2205
|
};
|
|
903
2206
|
/** @internal */
|
|
904
|
-
export declare const
|
|
2207
|
+
export declare const CreatePromptPromptsModelParameters$outboundSchema: z.ZodType<CreatePromptPromptsModelParameters$Outbound, z.ZodTypeDef, CreatePromptPromptsModelParameters>;
|
|
905
2208
|
/**
|
|
906
2209
|
* @internal
|
|
907
2210
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
908
2211
|
*/
|
|
909
|
-
export declare namespace
|
|
910
|
-
/** @deprecated use `
|
|
911
|
-
const inboundSchema: z.ZodType<
|
|
912
|
-
/** @deprecated use `
|
|
913
|
-
const outboundSchema: z.ZodType<
|
|
914
|
-
/** @deprecated use `
|
|
915
|
-
type Outbound =
|
|
2212
|
+
export declare namespace CreatePromptPromptsModelParameters$ {
|
|
2213
|
+
/** @deprecated use `CreatePromptPromptsModelParameters$inboundSchema` instead. */
|
|
2214
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsModelParameters, z.ZodTypeDef, unknown>;
|
|
2215
|
+
/** @deprecated use `CreatePromptPromptsModelParameters$outboundSchema` instead. */
|
|
2216
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsModelParameters$Outbound, z.ZodTypeDef, CreatePromptPromptsModelParameters>;
|
|
2217
|
+
/** @deprecated use `CreatePromptPromptsModelParameters$Outbound` instead. */
|
|
2218
|
+
type Outbound = CreatePromptPromptsModelParameters$Outbound;
|
|
916
2219
|
}
|
|
917
|
-
export declare function
|
|
918
|
-
export declare function
|
|
2220
|
+
export declare function createPromptPromptsModelParametersToJSON(createPromptPromptsModelParameters: CreatePromptPromptsModelParameters): string;
|
|
2221
|
+
export declare function createPromptPromptsModelParametersFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsModelParameters, SDKValidationError>;
|
|
919
2222
|
/** @internal */
|
|
920
|
-
export declare const
|
|
2223
|
+
export declare const CreatePromptPromptsProvider$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsProvider>;
|
|
921
2224
|
/** @internal */
|
|
922
|
-
export declare const
|
|
2225
|
+
export declare const CreatePromptPromptsProvider$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsProvider>;
|
|
923
2226
|
/**
|
|
924
2227
|
* @internal
|
|
925
2228
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
926
2229
|
*/
|
|
927
|
-
export declare namespace
|
|
928
|
-
/** @deprecated use `
|
|
2230
|
+
export declare namespace CreatePromptPromptsProvider$ {
|
|
2231
|
+
/** @deprecated use `CreatePromptPromptsProvider$inboundSchema` instead. */
|
|
929
2232
|
const inboundSchema: z.ZodNativeEnum<{
|
|
930
2233
|
readonly Cohere: "cohere";
|
|
931
2234
|
readonly Openai: "openai";
|
|
@@ -943,8 +2246,10 @@ export declare namespace Provider$ {
|
|
|
943
2246
|
readonly Leonardoai: "leonardoai";
|
|
944
2247
|
readonly Nvidia: "nvidia";
|
|
945
2248
|
readonly Jina: "jina";
|
|
2249
|
+
readonly Togetherai: "togetherai";
|
|
2250
|
+
readonly Elevenlabs: "elevenlabs";
|
|
946
2251
|
}>;
|
|
947
|
-
/** @deprecated use `
|
|
2252
|
+
/** @deprecated use `CreatePromptPromptsProvider$outboundSchema` instead. */
|
|
948
2253
|
const outboundSchema: z.ZodNativeEnum<{
|
|
949
2254
|
readonly Cohere: "cohere";
|
|
950
2255
|
readonly Openai: "openai";
|
|
@@ -962,18 +2267,20 @@ export declare namespace Provider$ {
|
|
|
962
2267
|
readonly Leonardoai: "leonardoai";
|
|
963
2268
|
readonly Nvidia: "nvidia";
|
|
964
2269
|
readonly Jina: "jina";
|
|
2270
|
+
readonly Togetherai: "togetherai";
|
|
2271
|
+
readonly Elevenlabs: "elevenlabs";
|
|
965
2272
|
}>;
|
|
966
2273
|
}
|
|
967
2274
|
/** @internal */
|
|
968
|
-
export declare const
|
|
2275
|
+
export declare const CreatePromptPromptsRole$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsRole>;
|
|
969
2276
|
/** @internal */
|
|
970
|
-
export declare const
|
|
2277
|
+
export declare const CreatePromptPromptsRole$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsRole>;
|
|
971
2278
|
/**
|
|
972
2279
|
* @internal
|
|
973
2280
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
974
2281
|
*/
|
|
975
|
-
export declare namespace
|
|
976
|
-
/** @deprecated use `
|
|
2282
|
+
export declare namespace CreatePromptPromptsRole$ {
|
|
2283
|
+
/** @deprecated use `CreatePromptPromptsRole$inboundSchema` instead. */
|
|
977
2284
|
const inboundSchema: z.ZodNativeEnum<{
|
|
978
2285
|
readonly System: "system";
|
|
979
2286
|
readonly Assistant: "assistant";
|
|
@@ -984,7 +2291,7 @@ export declare namespace CreatePromptRole$ {
|
|
|
984
2291
|
readonly Correction: "correction";
|
|
985
2292
|
readonly ExpectedOutput: "expected_output";
|
|
986
2293
|
}>;
|
|
987
|
-
/** @deprecated use `
|
|
2294
|
+
/** @deprecated use `CreatePromptPromptsRole$outboundSchema` instead. */
|
|
988
2295
|
const outboundSchema: z.ZodNativeEnum<{
|
|
989
2296
|
readonly System: "system";
|
|
990
2297
|
readonly Assistant: "assistant";
|
|
@@ -997,291 +2304,372 @@ export declare namespace CreatePromptRole$ {
|
|
|
997
2304
|
}>;
|
|
998
2305
|
}
|
|
999
2306
|
/** @internal */
|
|
1000
|
-
export declare const
|
|
2307
|
+
export declare const CreatePrompt2PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200Type>;
|
|
1001
2308
|
/** @internal */
|
|
1002
|
-
export declare const
|
|
2309
|
+
export declare const CreatePrompt2PromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200Type>;
|
|
1003
2310
|
/**
|
|
1004
2311
|
* @internal
|
|
1005
2312
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1006
2313
|
*/
|
|
1007
|
-
export declare namespace
|
|
1008
|
-
/** @deprecated use `
|
|
2314
|
+
export declare namespace CreatePrompt2PromptsResponse200Type$ {
|
|
2315
|
+
/** @deprecated use `CreatePrompt2PromptsResponse200Type$inboundSchema` instead. */
|
|
1009
2316
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1010
2317
|
readonly ImageUrl: "image_url";
|
|
1011
2318
|
}>;
|
|
1012
|
-
/** @deprecated use `
|
|
2319
|
+
/** @deprecated use `CreatePrompt2PromptsResponse200Type$outboundSchema` instead. */
|
|
1013
2320
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1014
2321
|
readonly ImageUrl: "image_url";
|
|
1015
2322
|
}>;
|
|
1016
2323
|
}
|
|
1017
2324
|
/** @internal */
|
|
1018
|
-
export declare const
|
|
2325
|
+
export declare const CreatePrompt2PromptsImageUrl$inboundSchema: z.ZodType<CreatePrompt2PromptsImageUrl, z.ZodTypeDef, unknown>;
|
|
1019
2326
|
/** @internal */
|
|
1020
|
-
export type
|
|
2327
|
+
export type CreatePrompt2PromptsImageUrl$Outbound = {
|
|
2328
|
+
id?: string | undefined;
|
|
1021
2329
|
url: string;
|
|
1022
2330
|
detail?: string | undefined;
|
|
1023
2331
|
};
|
|
1024
2332
|
/** @internal */
|
|
1025
|
-
export declare const
|
|
2333
|
+
export declare const CreatePrompt2PromptsImageUrl$outboundSchema: z.ZodType<CreatePrompt2PromptsImageUrl$Outbound, z.ZodTypeDef, CreatePrompt2PromptsImageUrl>;
|
|
1026
2334
|
/**
|
|
1027
2335
|
* @internal
|
|
1028
2336
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1029
2337
|
*/
|
|
1030
|
-
export declare namespace
|
|
1031
|
-
/** @deprecated use `
|
|
1032
|
-
const inboundSchema: z.ZodType<
|
|
1033
|
-
/** @deprecated use `
|
|
1034
|
-
const outboundSchema: z.ZodType<
|
|
1035
|
-
/** @deprecated use `
|
|
1036
|
-
type Outbound =
|
|
2338
|
+
export declare namespace CreatePrompt2PromptsImageUrl$ {
|
|
2339
|
+
/** @deprecated use `CreatePrompt2PromptsImageUrl$inboundSchema` instead. */
|
|
2340
|
+
const inboundSchema: z.ZodType<CreatePrompt2PromptsImageUrl, z.ZodTypeDef, unknown>;
|
|
2341
|
+
/** @deprecated use `CreatePrompt2PromptsImageUrl$outboundSchema` instead. */
|
|
2342
|
+
const outboundSchema: z.ZodType<CreatePrompt2PromptsImageUrl$Outbound, z.ZodTypeDef, CreatePrompt2PromptsImageUrl>;
|
|
2343
|
+
/** @deprecated use `CreatePrompt2PromptsImageUrl$Outbound` instead. */
|
|
2344
|
+
type Outbound = CreatePrompt2PromptsImageUrl$Outbound;
|
|
1037
2345
|
}
|
|
1038
|
-
export declare function
|
|
1039
|
-
export declare function
|
|
2346
|
+
export declare function createPrompt2PromptsImageUrlToJSON(createPrompt2PromptsImageUrl: CreatePrompt2PromptsImageUrl): string;
|
|
2347
|
+
export declare function createPrompt2PromptsImageUrlFromJSON(jsonString: string): SafeParseResult<CreatePrompt2PromptsImageUrl, SDKValidationError>;
|
|
1040
2348
|
/** @internal */
|
|
1041
|
-
export declare const
|
|
2349
|
+
export declare const CreatePrompt2Prompts2$inboundSchema: z.ZodType<CreatePrompt2Prompts2, z.ZodTypeDef, unknown>;
|
|
1042
2350
|
/** @internal */
|
|
1043
|
-
export type
|
|
2351
|
+
export type CreatePrompt2Prompts2$Outbound = {
|
|
1044
2352
|
type: string;
|
|
1045
|
-
image_url:
|
|
2353
|
+
image_url: CreatePrompt2PromptsImageUrl$Outbound;
|
|
1046
2354
|
};
|
|
1047
2355
|
/** @internal */
|
|
1048
|
-
export declare const
|
|
2356
|
+
export declare const CreatePrompt2Prompts2$outboundSchema: z.ZodType<CreatePrompt2Prompts2$Outbound, z.ZodTypeDef, CreatePrompt2Prompts2>;
|
|
1049
2357
|
/**
|
|
1050
2358
|
* @internal
|
|
1051
2359
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1052
2360
|
*/
|
|
1053
|
-
export declare namespace
|
|
1054
|
-
/** @deprecated use `
|
|
1055
|
-
const inboundSchema: z.ZodType<
|
|
1056
|
-
/** @deprecated use `
|
|
1057
|
-
const outboundSchema: z.ZodType<
|
|
1058
|
-
/** @deprecated use `
|
|
1059
|
-
type Outbound =
|
|
2361
|
+
export declare namespace CreatePrompt2Prompts2$ {
|
|
2362
|
+
/** @deprecated use `CreatePrompt2Prompts2$inboundSchema` instead. */
|
|
2363
|
+
const inboundSchema: z.ZodType<CreatePrompt2Prompts2, z.ZodTypeDef, unknown>;
|
|
2364
|
+
/** @deprecated use `CreatePrompt2Prompts2$outboundSchema` instead. */
|
|
2365
|
+
const outboundSchema: z.ZodType<CreatePrompt2Prompts2$Outbound, z.ZodTypeDef, CreatePrompt2Prompts2>;
|
|
2366
|
+
/** @deprecated use `CreatePrompt2Prompts2$Outbound` instead. */
|
|
2367
|
+
type Outbound = CreatePrompt2Prompts2$Outbound;
|
|
1060
2368
|
}
|
|
1061
|
-
export declare function
|
|
1062
|
-
export declare function
|
|
2369
|
+
export declare function createPrompt2Prompts2ToJSON(createPrompt2Prompts2: CreatePrompt2Prompts2): string;
|
|
2370
|
+
export declare function createPrompt2Prompts2FromJSON(jsonString: string): SafeParseResult<CreatePrompt2Prompts2, SDKValidationError>;
|
|
1063
2371
|
/** @internal */
|
|
1064
|
-
export declare const
|
|
2372
|
+
export declare const CreatePrompt2PromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponseType>;
|
|
1065
2373
|
/** @internal */
|
|
1066
|
-
export declare const
|
|
2374
|
+
export declare const CreatePrompt2PromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponseType>;
|
|
1067
2375
|
/**
|
|
1068
2376
|
* @internal
|
|
1069
2377
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1070
2378
|
*/
|
|
1071
|
-
export declare namespace
|
|
1072
|
-
/** @deprecated use `
|
|
2379
|
+
export declare namespace CreatePrompt2PromptsResponseType$ {
|
|
2380
|
+
/** @deprecated use `CreatePrompt2PromptsResponseType$inboundSchema` instead. */
|
|
1073
2381
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1074
2382
|
readonly Text: "text";
|
|
1075
2383
|
}>;
|
|
1076
|
-
/** @deprecated use `
|
|
2384
|
+
/** @deprecated use `CreatePrompt2PromptsResponseType$outboundSchema` instead. */
|
|
1077
2385
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1078
2386
|
readonly Text: "text";
|
|
1079
2387
|
}>;
|
|
1080
2388
|
}
|
|
1081
2389
|
/** @internal */
|
|
1082
|
-
export declare const
|
|
2390
|
+
export declare const CreatePrompt2Prompts1$inboundSchema: z.ZodType<CreatePrompt2Prompts1, z.ZodTypeDef, unknown>;
|
|
1083
2391
|
/** @internal */
|
|
1084
|
-
export type
|
|
2392
|
+
export type CreatePrompt2Prompts1$Outbound = {
|
|
1085
2393
|
type: string;
|
|
1086
2394
|
text: string;
|
|
1087
2395
|
};
|
|
1088
2396
|
/** @internal */
|
|
1089
|
-
export declare const
|
|
2397
|
+
export declare const CreatePrompt2Prompts1$outboundSchema: z.ZodType<CreatePrompt2Prompts1$Outbound, z.ZodTypeDef, CreatePrompt2Prompts1>;
|
|
1090
2398
|
/**
|
|
1091
2399
|
* @internal
|
|
1092
2400
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1093
|
-
*/
|
|
1094
|
-
export declare namespace
|
|
1095
|
-
/** @deprecated use `
|
|
1096
|
-
const inboundSchema: z.ZodType<
|
|
1097
|
-
/** @deprecated use `
|
|
1098
|
-
const outboundSchema: z.ZodType<
|
|
1099
|
-
/** @deprecated use `
|
|
1100
|
-
type Outbound =
|
|
2401
|
+
*/
|
|
2402
|
+
export declare namespace CreatePrompt2Prompts1$ {
|
|
2403
|
+
/** @deprecated use `CreatePrompt2Prompts1$inboundSchema` instead. */
|
|
2404
|
+
const inboundSchema: z.ZodType<CreatePrompt2Prompts1, z.ZodTypeDef, unknown>;
|
|
2405
|
+
/** @deprecated use `CreatePrompt2Prompts1$outboundSchema` instead. */
|
|
2406
|
+
const outboundSchema: z.ZodType<CreatePrompt2Prompts1$Outbound, z.ZodTypeDef, CreatePrompt2Prompts1>;
|
|
2407
|
+
/** @deprecated use `CreatePrompt2Prompts1$Outbound` instead. */
|
|
2408
|
+
type Outbound = CreatePrompt2Prompts1$Outbound;
|
|
1101
2409
|
}
|
|
1102
|
-
export declare function
|
|
1103
|
-
export declare function
|
|
2410
|
+
export declare function createPrompt2Prompts1ToJSON(createPrompt2Prompts1: CreatePrompt2Prompts1): string;
|
|
2411
|
+
export declare function createPrompt2Prompts1FromJSON(jsonString: string): SafeParseResult<CreatePrompt2Prompts1, SDKValidationError>;
|
|
1104
2412
|
/** @internal */
|
|
1105
|
-
export declare const
|
|
2413
|
+
export declare const CreatePromptContentPrompts2$inboundSchema: z.ZodType<CreatePromptContentPrompts2, z.ZodTypeDef, unknown>;
|
|
1106
2414
|
/** @internal */
|
|
1107
|
-
export type
|
|
2415
|
+
export type CreatePromptContentPrompts2$Outbound = CreatePrompt2Prompts1$Outbound | CreatePrompt2Prompts2$Outbound;
|
|
1108
2416
|
/** @internal */
|
|
1109
|
-
export declare const
|
|
2417
|
+
export declare const CreatePromptContentPrompts2$outboundSchema: z.ZodType<CreatePromptContentPrompts2$Outbound, z.ZodTypeDef, CreatePromptContentPrompts2>;
|
|
1110
2418
|
/**
|
|
1111
2419
|
* @internal
|
|
1112
2420
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1113
2421
|
*/
|
|
1114
|
-
export declare namespace
|
|
1115
|
-
/** @deprecated use `
|
|
1116
|
-
const inboundSchema: z.ZodType<
|
|
1117
|
-
/** @deprecated use `
|
|
1118
|
-
const outboundSchema: z.ZodType<
|
|
1119
|
-
/** @deprecated use `
|
|
1120
|
-
type Outbound =
|
|
2422
|
+
export declare namespace CreatePromptContentPrompts2$ {
|
|
2423
|
+
/** @deprecated use `CreatePromptContentPrompts2$inboundSchema` instead. */
|
|
2424
|
+
const inboundSchema: z.ZodType<CreatePromptContentPrompts2, z.ZodTypeDef, unknown>;
|
|
2425
|
+
/** @deprecated use `CreatePromptContentPrompts2$outboundSchema` instead. */
|
|
2426
|
+
const outboundSchema: z.ZodType<CreatePromptContentPrompts2$Outbound, z.ZodTypeDef, CreatePromptContentPrompts2>;
|
|
2427
|
+
/** @deprecated use `CreatePromptContentPrompts2$Outbound` instead. */
|
|
2428
|
+
type Outbound = CreatePromptContentPrompts2$Outbound;
|
|
1121
2429
|
}
|
|
1122
|
-
export declare function
|
|
1123
|
-
export declare function
|
|
2430
|
+
export declare function createPromptContentPrompts2ToJSON(createPromptContentPrompts2: CreatePromptContentPrompts2): string;
|
|
2431
|
+
export declare function createPromptContentPrompts2FromJSON(jsonString: string): SafeParseResult<CreatePromptContentPrompts2, SDKValidationError>;
|
|
1124
2432
|
/** @internal */
|
|
1125
|
-
export declare const
|
|
2433
|
+
export declare const CreatePromptPromptsContent$inboundSchema: z.ZodType<CreatePromptPromptsContent, z.ZodTypeDef, unknown>;
|
|
1126
2434
|
/** @internal */
|
|
1127
|
-
export type
|
|
2435
|
+
export type CreatePromptPromptsContent$Outbound = string | Array<CreatePrompt2Prompts1$Outbound | CreatePrompt2Prompts2$Outbound>;
|
|
1128
2436
|
/** @internal */
|
|
1129
|
-
export declare const
|
|
2437
|
+
export declare const CreatePromptPromptsContent$outboundSchema: z.ZodType<CreatePromptPromptsContent$Outbound, z.ZodTypeDef, CreatePromptPromptsContent>;
|
|
1130
2438
|
/**
|
|
1131
2439
|
* @internal
|
|
1132
2440
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1133
2441
|
*/
|
|
1134
|
-
export declare namespace
|
|
1135
|
-
/** @deprecated use `
|
|
1136
|
-
const inboundSchema: z.ZodType<
|
|
1137
|
-
/** @deprecated use `
|
|
1138
|
-
const outboundSchema: z.ZodType<
|
|
1139
|
-
/** @deprecated use `
|
|
1140
|
-
type Outbound =
|
|
2442
|
+
export declare namespace CreatePromptPromptsContent$ {
|
|
2443
|
+
/** @deprecated use `CreatePromptPromptsContent$inboundSchema` instead. */
|
|
2444
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsContent, z.ZodTypeDef, unknown>;
|
|
2445
|
+
/** @deprecated use `CreatePromptPromptsContent$outboundSchema` instead. */
|
|
2446
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsContent$Outbound, z.ZodTypeDef, CreatePromptPromptsContent>;
|
|
2447
|
+
/** @deprecated use `CreatePromptPromptsContent$Outbound` instead. */
|
|
2448
|
+
type Outbound = CreatePromptPromptsContent$Outbound;
|
|
1141
2449
|
}
|
|
1142
|
-
export declare function
|
|
1143
|
-
export declare function
|
|
2450
|
+
export declare function createPromptPromptsContentToJSON(createPromptPromptsContent: CreatePromptPromptsContent): string;
|
|
2451
|
+
export declare function createPromptPromptsContentFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsContent, SDKValidationError>;
|
|
1144
2452
|
/** @internal */
|
|
1145
|
-
export declare const
|
|
2453
|
+
export declare const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseType>;
|
|
1146
2454
|
/** @internal */
|
|
1147
|
-
export declare const
|
|
2455
|
+
export declare const CreatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseType>;
|
|
1148
2456
|
/**
|
|
1149
2457
|
* @internal
|
|
1150
2458
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1151
2459
|
*/
|
|
1152
|
-
export declare namespace
|
|
1153
|
-
/** @deprecated use `
|
|
2460
|
+
export declare namespace CreatePromptPromptsResponseType$ {
|
|
2461
|
+
/** @deprecated use `CreatePromptPromptsResponseType$inboundSchema` instead. */
|
|
1154
2462
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1155
2463
|
readonly Function: "function";
|
|
1156
2464
|
}>;
|
|
1157
|
-
/** @deprecated use `
|
|
2465
|
+
/** @deprecated use `CreatePromptPromptsResponseType$outboundSchema` instead. */
|
|
1158
2466
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1159
2467
|
readonly Function: "function";
|
|
1160
2468
|
}>;
|
|
1161
2469
|
}
|
|
1162
2470
|
/** @internal */
|
|
1163
|
-
export declare const
|
|
2471
|
+
export declare const CreatePromptPromptsFunction$inboundSchema: z.ZodType<CreatePromptPromptsFunction, z.ZodTypeDef, unknown>;
|
|
1164
2472
|
/** @internal */
|
|
1165
|
-
export type
|
|
2473
|
+
export type CreatePromptPromptsFunction$Outbound = {
|
|
1166
2474
|
name: string;
|
|
1167
2475
|
arguments: string;
|
|
1168
2476
|
};
|
|
1169
2477
|
/** @internal */
|
|
1170
|
-
export declare const
|
|
2478
|
+
export declare const CreatePromptPromptsFunction$outboundSchema: z.ZodType<CreatePromptPromptsFunction$Outbound, z.ZodTypeDef, CreatePromptPromptsFunction>;
|
|
1171
2479
|
/**
|
|
1172
2480
|
* @internal
|
|
1173
2481
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1174
2482
|
*/
|
|
1175
|
-
export declare namespace
|
|
1176
|
-
/** @deprecated use `
|
|
1177
|
-
const inboundSchema: z.ZodType<
|
|
1178
|
-
/** @deprecated use `
|
|
1179
|
-
const outboundSchema: z.ZodType<
|
|
1180
|
-
/** @deprecated use `
|
|
1181
|
-
type Outbound =
|
|
2483
|
+
export declare namespace CreatePromptPromptsFunction$ {
|
|
2484
|
+
/** @deprecated use `CreatePromptPromptsFunction$inboundSchema` instead. */
|
|
2485
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsFunction, z.ZodTypeDef, unknown>;
|
|
2486
|
+
/** @deprecated use `CreatePromptPromptsFunction$outboundSchema` instead. */
|
|
2487
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsFunction$Outbound, z.ZodTypeDef, CreatePromptPromptsFunction>;
|
|
2488
|
+
/** @deprecated use `CreatePromptPromptsFunction$Outbound` instead. */
|
|
2489
|
+
type Outbound = CreatePromptPromptsFunction$Outbound;
|
|
1182
2490
|
}
|
|
1183
|
-
export declare function
|
|
1184
|
-
export declare function
|
|
2491
|
+
export declare function createPromptPromptsFunctionToJSON(createPromptPromptsFunction: CreatePromptPromptsFunction): string;
|
|
2492
|
+
export declare function createPromptPromptsFunctionFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsFunction, SDKValidationError>;
|
|
1185
2493
|
/** @internal */
|
|
1186
|
-
export declare const
|
|
2494
|
+
export declare const CreatePromptPromptsToolCalls$inboundSchema: z.ZodType<CreatePromptPromptsToolCalls, z.ZodTypeDef, unknown>;
|
|
1187
2495
|
/** @internal */
|
|
1188
|
-
export type
|
|
2496
|
+
export type CreatePromptPromptsToolCalls$Outbound = {
|
|
1189
2497
|
id?: string | undefined;
|
|
1190
2498
|
index?: number | undefined;
|
|
1191
2499
|
type: string;
|
|
1192
|
-
function:
|
|
2500
|
+
function: CreatePromptPromptsFunction$Outbound;
|
|
1193
2501
|
};
|
|
1194
2502
|
/** @internal */
|
|
1195
|
-
export declare const
|
|
2503
|
+
export declare const CreatePromptPromptsToolCalls$outboundSchema: z.ZodType<CreatePromptPromptsToolCalls$Outbound, z.ZodTypeDef, CreatePromptPromptsToolCalls>;
|
|
1196
2504
|
/**
|
|
1197
2505
|
* @internal
|
|
1198
2506
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1199
2507
|
*/
|
|
1200
|
-
export declare namespace
|
|
1201
|
-
/** @deprecated use `
|
|
1202
|
-
const inboundSchema: z.ZodType<
|
|
1203
|
-
/** @deprecated use `
|
|
1204
|
-
const outboundSchema: z.ZodType<
|
|
1205
|
-
/** @deprecated use `
|
|
1206
|
-
type Outbound =
|
|
2508
|
+
export declare namespace CreatePromptPromptsToolCalls$ {
|
|
2509
|
+
/** @deprecated use `CreatePromptPromptsToolCalls$inboundSchema` instead. */
|
|
2510
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsToolCalls, z.ZodTypeDef, unknown>;
|
|
2511
|
+
/** @deprecated use `CreatePromptPromptsToolCalls$outboundSchema` instead. */
|
|
2512
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsToolCalls$Outbound, z.ZodTypeDef, CreatePromptPromptsToolCalls>;
|
|
2513
|
+
/** @deprecated use `CreatePromptPromptsToolCalls$Outbound` instead. */
|
|
2514
|
+
type Outbound = CreatePromptPromptsToolCalls$Outbound;
|
|
1207
2515
|
}
|
|
1208
|
-
export declare function
|
|
1209
|
-
export declare function
|
|
2516
|
+
export declare function createPromptPromptsToolCallsToJSON(createPromptPromptsToolCalls: CreatePromptPromptsToolCalls): string;
|
|
2517
|
+
export declare function createPromptPromptsToolCallsFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsToolCalls, SDKValidationError>;
|
|
1210
2518
|
/** @internal */
|
|
1211
|
-
export declare const
|
|
2519
|
+
export declare const CreatePromptPromptsMessages$inboundSchema: z.ZodType<CreatePromptPromptsMessages, z.ZodTypeDef, unknown>;
|
|
1212
2520
|
/** @internal */
|
|
1213
|
-
export type
|
|
2521
|
+
export type CreatePromptPromptsMessages$Outbound = {
|
|
1214
2522
|
role: string;
|
|
1215
|
-
content: string | Array<
|
|
1216
|
-
tool_calls?: Array<
|
|
2523
|
+
content: string | Array<CreatePrompt2Prompts1$Outbound | CreatePrompt2Prompts2$Outbound>;
|
|
2524
|
+
tool_calls?: Array<CreatePromptPromptsToolCalls$Outbound> | undefined;
|
|
1217
2525
|
};
|
|
1218
2526
|
/** @internal */
|
|
1219
|
-
export declare const
|
|
2527
|
+
export declare const CreatePromptPromptsMessages$outboundSchema: z.ZodType<CreatePromptPromptsMessages$Outbound, z.ZodTypeDef, CreatePromptPromptsMessages>;
|
|
1220
2528
|
/**
|
|
1221
2529
|
* @internal
|
|
1222
2530
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1223
2531
|
*/
|
|
1224
|
-
export declare namespace
|
|
1225
|
-
/** @deprecated use `
|
|
1226
|
-
const inboundSchema: z.ZodType<
|
|
1227
|
-
/** @deprecated use `
|
|
1228
|
-
const outboundSchema: z.ZodType<
|
|
1229
|
-
/** @deprecated use `
|
|
1230
|
-
type Outbound =
|
|
2532
|
+
export declare namespace CreatePromptPromptsMessages$ {
|
|
2533
|
+
/** @deprecated use `CreatePromptPromptsMessages$inboundSchema` instead. */
|
|
2534
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsMessages, z.ZodTypeDef, unknown>;
|
|
2535
|
+
/** @deprecated use `CreatePromptPromptsMessages$outboundSchema` instead. */
|
|
2536
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsMessages$Outbound, z.ZodTypeDef, CreatePromptPromptsMessages>;
|
|
2537
|
+
/** @deprecated use `CreatePromptPromptsMessages$Outbound` instead. */
|
|
2538
|
+
type Outbound = CreatePromptPromptsMessages$Outbound;
|
|
1231
2539
|
}
|
|
1232
|
-
export declare function
|
|
1233
|
-
export declare function
|
|
2540
|
+
export declare function createPromptPromptsMessagesToJSON(createPromptPromptsMessages: CreatePromptPromptsMessages): string;
|
|
2541
|
+
export declare function createPromptPromptsMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsMessages, SDKValidationError>;
|
|
1234
2542
|
/** @internal */
|
|
1235
|
-
export declare const
|
|
2543
|
+
export declare const CreatePromptPromptsPromptConfig$inboundSchema: z.ZodType<CreatePromptPromptsPromptConfig, z.ZodTypeDef, unknown>;
|
|
1236
2544
|
/** @internal */
|
|
1237
|
-
export type
|
|
2545
|
+
export type CreatePromptPromptsPromptConfig$Outbound = {
|
|
1238
2546
|
stream?: boolean | undefined;
|
|
1239
2547
|
model?: string | undefined;
|
|
2548
|
+
model_db_id?: string | undefined;
|
|
1240
2549
|
model_type?: string | undefined;
|
|
1241
|
-
model_parameters?:
|
|
2550
|
+
model_parameters?: CreatePromptPromptsModelParameters$Outbound | undefined;
|
|
1242
2551
|
provider?: string | undefined;
|
|
2552
|
+
integration_id?: string | null | undefined;
|
|
1243
2553
|
version?: string | undefined;
|
|
1244
|
-
messages: Array<
|
|
2554
|
+
messages: Array<CreatePromptPromptsMessages$Outbound>;
|
|
1245
2555
|
};
|
|
1246
2556
|
/** @internal */
|
|
1247
|
-
export declare const
|
|
2557
|
+
export declare const CreatePromptPromptsPromptConfig$outboundSchema: z.ZodType<CreatePromptPromptsPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptsPromptConfig>;
|
|
1248
2558
|
/**
|
|
1249
2559
|
* @internal
|
|
1250
2560
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1251
2561
|
*/
|
|
1252
|
-
export declare namespace
|
|
1253
|
-
/** @deprecated use `
|
|
1254
|
-
const inboundSchema: z.ZodType<
|
|
1255
|
-
/** @deprecated use `
|
|
1256
|
-
const outboundSchema: z.ZodType<
|
|
1257
|
-
/** @deprecated use `
|
|
1258
|
-
type Outbound =
|
|
2562
|
+
export declare namespace CreatePromptPromptsPromptConfig$ {
|
|
2563
|
+
/** @deprecated use `CreatePromptPromptsPromptConfig$inboundSchema` instead. */
|
|
2564
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsPromptConfig, z.ZodTypeDef, unknown>;
|
|
2565
|
+
/** @deprecated use `CreatePromptPromptsPromptConfig$outboundSchema` instead. */
|
|
2566
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsPromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptsPromptConfig>;
|
|
2567
|
+
/** @deprecated use `CreatePromptPromptsPromptConfig$Outbound` instead. */
|
|
2568
|
+
type Outbound = CreatePromptPromptsPromptConfig$Outbound;
|
|
1259
2569
|
}
|
|
1260
|
-
export declare function
|
|
1261
|
-
export declare function
|
|
2570
|
+
export declare function createPromptPromptsPromptConfigToJSON(createPromptPromptsPromptConfig: CreatePromptPromptsPromptConfig): string;
|
|
2571
|
+
export declare function createPromptPromptsPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsPromptConfig, SDKValidationError>;
|
|
1262
2572
|
/** @internal */
|
|
1263
|
-
export declare const
|
|
2573
|
+
export declare const CreatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsUseCases>;
|
|
1264
2574
|
/** @internal */
|
|
1265
|
-
export
|
|
2575
|
+
export declare const CreatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsUseCases>;
|
|
2576
|
+
/**
|
|
2577
|
+
* @internal
|
|
2578
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2579
|
+
*/
|
|
2580
|
+
export declare namespace CreatePromptPromptsUseCases$ {
|
|
2581
|
+
/** @deprecated use `CreatePromptPromptsUseCases$inboundSchema` instead. */
|
|
2582
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2583
|
+
readonly Agents: "Agents";
|
|
2584
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
2585
|
+
readonly APIInteraction: "API interaction";
|
|
2586
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
2587
|
+
readonly Chatbots: "Chatbots";
|
|
2588
|
+
readonly Classification: "Classification";
|
|
2589
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
2590
|
+
readonly CodeWriting: "Code writing";
|
|
2591
|
+
readonly DocumentsQA: "Documents QA";
|
|
2592
|
+
readonly Conversation: "Conversation";
|
|
2593
|
+
readonly Extraction: "Extraction";
|
|
2594
|
+
readonly MultiModal: "Multi-modal";
|
|
2595
|
+
readonly SelfChecking: "Self-checking";
|
|
2596
|
+
readonly Sql: "SQL";
|
|
2597
|
+
readonly Summarization: "Summarization";
|
|
2598
|
+
readonly Tagging: "Tagging";
|
|
2599
|
+
}>;
|
|
2600
|
+
/** @deprecated use `CreatePromptPromptsUseCases$outboundSchema` instead. */
|
|
2601
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2602
|
+
readonly Agents: "Agents";
|
|
2603
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
2604
|
+
readonly APIInteraction: "API interaction";
|
|
2605
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
2606
|
+
readonly Chatbots: "Chatbots";
|
|
2607
|
+
readonly Classification: "Classification";
|
|
2608
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
2609
|
+
readonly CodeWriting: "Code writing";
|
|
2610
|
+
readonly DocumentsQA: "Documents QA";
|
|
2611
|
+
readonly Conversation: "Conversation";
|
|
2612
|
+
readonly Extraction: "Extraction";
|
|
2613
|
+
readonly MultiModal: "Multi-modal";
|
|
2614
|
+
readonly SelfChecking: "Self-checking";
|
|
2615
|
+
readonly Sql: "SQL";
|
|
2616
|
+
readonly Summarization: "Summarization";
|
|
2617
|
+
readonly Tagging: "Tagging";
|
|
2618
|
+
}>;
|
|
2619
|
+
}
|
|
2620
|
+
/** @internal */
|
|
2621
|
+
export declare const CreatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsLanguage>;
|
|
2622
|
+
/** @internal */
|
|
2623
|
+
export declare const CreatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsLanguage>;
|
|
2624
|
+
/**
|
|
2625
|
+
* @internal
|
|
2626
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2627
|
+
*/
|
|
2628
|
+
export declare namespace CreatePromptPromptsLanguage$ {
|
|
2629
|
+
/** @deprecated use `CreatePromptPromptsLanguage$inboundSchema` instead. */
|
|
2630
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2631
|
+
readonly Chinese: "Chinese";
|
|
2632
|
+
readonly Dutch: "Dutch";
|
|
2633
|
+
readonly English: "English";
|
|
2634
|
+
readonly French: "French";
|
|
2635
|
+
readonly German: "German";
|
|
2636
|
+
readonly Russian: "Russian";
|
|
2637
|
+
readonly Spanish: "Spanish";
|
|
2638
|
+
}>;
|
|
2639
|
+
/** @deprecated use `CreatePromptPromptsLanguage$outboundSchema` instead. */
|
|
2640
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2641
|
+
readonly Chinese: "Chinese";
|
|
2642
|
+
readonly Dutch: "Dutch";
|
|
2643
|
+
readonly English: "English";
|
|
2644
|
+
readonly French: "French";
|
|
2645
|
+
readonly German: "German";
|
|
2646
|
+
readonly Russian: "Russian";
|
|
2647
|
+
readonly Spanish: "Spanish";
|
|
2648
|
+
}>;
|
|
2649
|
+
}
|
|
2650
|
+
/** @internal */
|
|
2651
|
+
export declare const CreatePromptPromptsMetadata$inboundSchema: z.ZodType<CreatePromptPromptsMetadata, z.ZodTypeDef, unknown>;
|
|
2652
|
+
/** @internal */
|
|
2653
|
+
export type CreatePromptPromptsMetadata$Outbound = {
|
|
1266
2654
|
use_cases?: Array<string> | undefined;
|
|
1267
2655
|
language?: string | undefined;
|
|
1268
2656
|
};
|
|
1269
2657
|
/** @internal */
|
|
1270
|
-
export declare const
|
|
2658
|
+
export declare const CreatePromptPromptsMetadata$outboundSchema: z.ZodType<CreatePromptPromptsMetadata$Outbound, z.ZodTypeDef, CreatePromptPromptsMetadata>;
|
|
1271
2659
|
/**
|
|
1272
2660
|
* @internal
|
|
1273
2661
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1274
2662
|
*/
|
|
1275
|
-
export declare namespace
|
|
1276
|
-
/** @deprecated use `
|
|
1277
|
-
const inboundSchema: z.ZodType<
|
|
1278
|
-
/** @deprecated use `
|
|
1279
|
-
const outboundSchema: z.ZodType<
|
|
1280
|
-
/** @deprecated use `
|
|
1281
|
-
type Outbound =
|
|
2663
|
+
export declare namespace CreatePromptPromptsMetadata$ {
|
|
2664
|
+
/** @deprecated use `CreatePromptPromptsMetadata$inboundSchema` instead. */
|
|
2665
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsMetadata, z.ZodTypeDef, unknown>;
|
|
2666
|
+
/** @deprecated use `CreatePromptPromptsMetadata$outboundSchema` instead. */
|
|
2667
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsMetadata$Outbound, z.ZodTypeDef, CreatePromptPromptsMetadata>;
|
|
2668
|
+
/** @deprecated use `CreatePromptPromptsMetadata$Outbound` instead. */
|
|
2669
|
+
type Outbound = CreatePromptPromptsMetadata$Outbound;
|
|
1282
2670
|
}
|
|
1283
|
-
export declare function
|
|
1284
|
-
export declare function
|
|
2671
|
+
export declare function createPromptPromptsMetadataToJSON(createPromptPromptsMetadata: CreatePromptPromptsMetadata): string;
|
|
2672
|
+
export declare function createPromptPromptsMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsMetadata, SDKValidationError>;
|
|
1285
2673
|
/** @internal */
|
|
1286
2674
|
export declare const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsType>;
|
|
1287
2675
|
/** @internal */
|
|
@@ -1294,53 +2682,22 @@ export declare namespace CreatePromptPromptsType$ {
|
|
|
1294
2682
|
/** @deprecated use `CreatePromptPromptsType$inboundSchema` instead. */
|
|
1295
2683
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1296
2684
|
readonly Prompt: "prompt";
|
|
1297
|
-
readonly Snippet: "snippet";
|
|
1298
|
-
readonly Template: "template";
|
|
1299
2685
|
}>;
|
|
1300
2686
|
/** @deprecated use `CreatePromptPromptsType$outboundSchema` instead. */
|
|
1301
2687
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1302
2688
|
readonly Prompt: "prompt";
|
|
1303
|
-
readonly Snippet: "snippet";
|
|
1304
|
-
readonly Template: "template";
|
|
1305
2689
|
}>;
|
|
1306
2690
|
}
|
|
1307
2691
|
/** @internal */
|
|
1308
|
-
export declare const
|
|
1309
|
-
/** @internal */
|
|
1310
|
-
export type CreatePromptRequestBody$Outbound = {
|
|
1311
|
-
display_name: string;
|
|
1312
|
-
description?: string | null | undefined;
|
|
1313
|
-
prompt_config?: PromptConfig$Outbound | undefined;
|
|
1314
|
-
metadata?: CreatePromptMetadata$Outbound | undefined;
|
|
1315
|
-
key?: string | undefined;
|
|
1316
|
-
type: string;
|
|
1317
|
-
};
|
|
1318
|
-
/** @internal */
|
|
1319
|
-
export declare const CreatePromptRequestBody$outboundSchema: z.ZodType<CreatePromptRequestBody$Outbound, z.ZodTypeDef, CreatePromptRequestBody>;
|
|
1320
|
-
/**
|
|
1321
|
-
* @internal
|
|
1322
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1323
|
-
*/
|
|
1324
|
-
export declare namespace CreatePromptRequestBody$ {
|
|
1325
|
-
/** @deprecated use `CreatePromptRequestBody$inboundSchema` instead. */
|
|
1326
|
-
const inboundSchema: z.ZodType<CreatePromptRequestBody, z.ZodTypeDef, unknown>;
|
|
1327
|
-
/** @deprecated use `CreatePromptRequestBody$outboundSchema` instead. */
|
|
1328
|
-
const outboundSchema: z.ZodType<CreatePromptRequestBody$Outbound, z.ZodTypeDef, CreatePromptRequestBody>;
|
|
1329
|
-
/** @deprecated use `CreatePromptRequestBody$Outbound` instead. */
|
|
1330
|
-
type Outbound = CreatePromptRequestBody$Outbound;
|
|
1331
|
-
}
|
|
1332
|
-
export declare function createPromptRequestBodyToJSON(createPromptRequestBody: CreatePromptRequestBody): string;
|
|
1333
|
-
export declare function createPromptRequestBodyFromJSON(jsonString: string): SafeParseResult<CreatePromptRequestBody, SDKValidationError>;
|
|
1334
|
-
/** @internal */
|
|
1335
|
-
export declare const CreatePromptModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptModelType>;
|
|
2692
|
+
export declare const CreatePromptPromptsResponseModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseModelType>;
|
|
1336
2693
|
/** @internal */
|
|
1337
|
-
export declare const
|
|
2694
|
+
export declare const CreatePromptPromptsResponseModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseModelType>;
|
|
1338
2695
|
/**
|
|
1339
2696
|
* @internal
|
|
1340
2697
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1341
2698
|
*/
|
|
1342
|
-
export declare namespace
|
|
1343
|
-
/** @deprecated use `
|
|
2699
|
+
export declare namespace CreatePromptPromptsResponseModelType$ {
|
|
2700
|
+
/** @deprecated use `CreatePromptPromptsResponseModelType$inboundSchema` instead. */
|
|
1344
2701
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1345
2702
|
readonly Chat: "chat";
|
|
1346
2703
|
readonly Completion: "completion";
|
|
@@ -1352,7 +2709,7 @@ export declare namespace CreatePromptModelType$ {
|
|
|
1352
2709
|
readonly Rerank: "rerank";
|
|
1353
2710
|
readonly Moderations: "moderations";
|
|
1354
2711
|
}>;
|
|
1355
|
-
/** @deprecated use `
|
|
2712
|
+
/** @deprecated use `CreatePromptPromptsResponseModelType$outboundSchema` instead. */
|
|
1356
2713
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1357
2714
|
readonly Chat: "chat";
|
|
1358
2715
|
readonly Completion: "completion";
|
|
@@ -1366,22 +2723,22 @@ export declare namespace CreatePromptModelType$ {
|
|
|
1366
2723
|
}>;
|
|
1367
2724
|
}
|
|
1368
2725
|
/** @internal */
|
|
1369
|
-
export declare const
|
|
2726
|
+
export declare const CreatePromptPromptsResponse200Format$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponse200Format>;
|
|
1370
2727
|
/** @internal */
|
|
1371
|
-
export declare const
|
|
2728
|
+
export declare const CreatePromptPromptsResponse200Format$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponse200Format>;
|
|
1372
2729
|
/**
|
|
1373
2730
|
* @internal
|
|
1374
2731
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1375
2732
|
*/
|
|
1376
|
-
export declare namespace
|
|
1377
|
-
/** @deprecated use `
|
|
2733
|
+
export declare namespace CreatePromptPromptsResponse200Format$ {
|
|
2734
|
+
/** @deprecated use `CreatePromptPromptsResponse200Format$inboundSchema` instead. */
|
|
1378
2735
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1379
2736
|
readonly Url: "url";
|
|
1380
2737
|
readonly B64Json: "b64_json";
|
|
1381
2738
|
readonly Text: "text";
|
|
1382
2739
|
readonly JsonObject: "json_object";
|
|
1383
2740
|
}>;
|
|
1384
|
-
/** @deprecated use `
|
|
2741
|
+
/** @deprecated use `CreatePromptPromptsResponse200Format$outboundSchema` instead. */
|
|
1385
2742
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1386
2743
|
readonly Url: "url";
|
|
1387
2744
|
readonly B64Json: "b64_json";
|
|
@@ -1390,87 +2747,87 @@ export declare namespace CreatePromptFormat$ {
|
|
|
1390
2747
|
}>;
|
|
1391
2748
|
}
|
|
1392
2749
|
/** @internal */
|
|
1393
|
-
export declare const
|
|
2750
|
+
export declare const CreatePromptPromptsResponseQuality$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseQuality>;
|
|
1394
2751
|
/** @internal */
|
|
1395
|
-
export declare const
|
|
2752
|
+
export declare const CreatePromptPromptsResponseQuality$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseQuality>;
|
|
1396
2753
|
/**
|
|
1397
2754
|
* @internal
|
|
1398
2755
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1399
2756
|
*/
|
|
1400
|
-
export declare namespace
|
|
1401
|
-
/** @deprecated use `
|
|
2757
|
+
export declare namespace CreatePromptPromptsResponseQuality$ {
|
|
2758
|
+
/** @deprecated use `CreatePromptPromptsResponseQuality$inboundSchema` instead. */
|
|
1402
2759
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1403
2760
|
readonly Standard: "standard";
|
|
1404
2761
|
readonly Hd: "hd";
|
|
1405
2762
|
}>;
|
|
1406
|
-
/** @deprecated use `
|
|
2763
|
+
/** @deprecated use `CreatePromptPromptsResponseQuality$outboundSchema` instead. */
|
|
1407
2764
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1408
2765
|
readonly Standard: "standard";
|
|
1409
2766
|
readonly Hd: "hd";
|
|
1410
2767
|
}>;
|
|
1411
2768
|
}
|
|
1412
2769
|
/** @internal */
|
|
1413
|
-
export declare const
|
|
2770
|
+
export declare const CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
1414
2771
|
/** @internal */
|
|
1415
|
-
export declare const
|
|
2772
|
+
export declare const CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType>;
|
|
1416
2773
|
/**
|
|
1417
2774
|
* @internal
|
|
1418
2775
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1419
2776
|
*/
|
|
1420
|
-
export declare namespace
|
|
1421
|
-
/** @deprecated use `
|
|
2777
|
+
export declare namespace CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$ {
|
|
2778
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
|
|
1422
2779
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1423
2780
|
readonly JsonObject: "json_object";
|
|
1424
2781
|
}>;
|
|
1425
|
-
/** @deprecated use `
|
|
2782
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
|
|
1426
2783
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1427
2784
|
readonly JsonObject: "json_object";
|
|
1428
2785
|
}>;
|
|
1429
2786
|
}
|
|
1430
2787
|
/** @internal */
|
|
1431
|
-
export declare const
|
|
2788
|
+
export declare const CreatePromptResponseFormatPromptsResponse2$inboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponse2, z.ZodTypeDef, unknown>;
|
|
1432
2789
|
/** @internal */
|
|
1433
|
-
export type
|
|
2790
|
+
export type CreatePromptResponseFormatPromptsResponse2$Outbound = {
|
|
1434
2791
|
type: string;
|
|
1435
2792
|
};
|
|
1436
2793
|
/** @internal */
|
|
1437
|
-
export declare const
|
|
2794
|
+
export declare const CreatePromptResponseFormatPromptsResponse2$outboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponse2$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPromptsResponse2>;
|
|
1438
2795
|
/**
|
|
1439
|
-
* @internal
|
|
1440
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1441
|
-
*/
|
|
1442
|
-
export declare namespace
|
|
1443
|
-
/** @deprecated use `
|
|
1444
|
-
const inboundSchema: z.ZodType<
|
|
1445
|
-
/** @deprecated use `
|
|
1446
|
-
const outboundSchema: z.ZodType<
|
|
1447
|
-
/** @deprecated use `
|
|
1448
|
-
type Outbound =
|
|
2796
|
+
* @internal
|
|
2797
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2798
|
+
*/
|
|
2799
|
+
export declare namespace CreatePromptResponseFormatPromptsResponse2$ {
|
|
2800
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse2$inboundSchema` instead. */
|
|
2801
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponse2, z.ZodTypeDef, unknown>;
|
|
2802
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse2$outboundSchema` instead. */
|
|
2803
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponse2$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPromptsResponse2>;
|
|
2804
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse2$Outbound` instead. */
|
|
2805
|
+
type Outbound = CreatePromptResponseFormatPromptsResponse2$Outbound;
|
|
1449
2806
|
}
|
|
1450
|
-
export declare function
|
|
1451
|
-
export declare function
|
|
2807
|
+
export declare function createPromptResponseFormatPromptsResponse2ToJSON(createPromptResponseFormatPromptsResponse2: CreatePromptResponseFormatPromptsResponse2): string;
|
|
2808
|
+
export declare function createPromptResponseFormatPromptsResponse2FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatPromptsResponse2, SDKValidationError>;
|
|
1452
2809
|
/** @internal */
|
|
1453
|
-
export declare const
|
|
2810
|
+
export declare const CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONType>;
|
|
1454
2811
|
/** @internal */
|
|
1455
|
-
export declare const
|
|
2812
|
+
export declare const CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptResponseFormatPromptsResponse200ApplicationJSONType>;
|
|
1456
2813
|
/**
|
|
1457
2814
|
* @internal
|
|
1458
2815
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1459
2816
|
*/
|
|
1460
|
-
export declare namespace
|
|
1461
|
-
/** @deprecated use `
|
|
2817
|
+
export declare namespace CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$ {
|
|
2818
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
1462
2819
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1463
2820
|
readonly JsonSchema: "json_schema";
|
|
1464
2821
|
}>;
|
|
1465
|
-
/** @deprecated use `
|
|
2822
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
1466
2823
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1467
2824
|
readonly JsonSchema: "json_schema";
|
|
1468
2825
|
}>;
|
|
1469
2826
|
}
|
|
1470
2827
|
/** @internal */
|
|
1471
|
-
export declare const
|
|
2828
|
+
export declare const CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponseJsonSchema, z.ZodTypeDef, unknown>;
|
|
1472
2829
|
/** @internal */
|
|
1473
|
-
export type
|
|
2830
|
+
export type CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound = {
|
|
1474
2831
|
name: string;
|
|
1475
2832
|
strict: boolean;
|
|
1476
2833
|
schema: {
|
|
@@ -1478,108 +2835,108 @@ export type CreatePromptResponseFormatJsonSchema$Outbound = {
|
|
|
1478
2835
|
};
|
|
1479
2836
|
};
|
|
1480
2837
|
/** @internal */
|
|
1481
|
-
export declare const
|
|
2838
|
+
export declare const CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPromptsResponseJsonSchema>;
|
|
1482
2839
|
/**
|
|
1483
2840
|
* @internal
|
|
1484
2841
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1485
2842
|
*/
|
|
1486
|
-
export declare namespace
|
|
1487
|
-
/** @deprecated use `
|
|
1488
|
-
const inboundSchema: z.ZodType<
|
|
1489
|
-
/** @deprecated use `
|
|
1490
|
-
const outboundSchema: z.ZodType<
|
|
1491
|
-
/** @deprecated use `
|
|
1492
|
-
type Outbound =
|
|
2843
|
+
export declare namespace CreatePromptResponseFormatPromptsResponseJsonSchema$ {
|
|
2844
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseJsonSchema$inboundSchema` instead. */
|
|
2845
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponseJsonSchema, z.ZodTypeDef, unknown>;
|
|
2846
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseJsonSchema$outboundSchema` instead. */
|
|
2847
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPromptsResponseJsonSchema>;
|
|
2848
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound` instead. */
|
|
2849
|
+
type Outbound = CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound;
|
|
1493
2850
|
}
|
|
1494
|
-
export declare function
|
|
1495
|
-
export declare function
|
|
2851
|
+
export declare function createPromptResponseFormatPromptsResponseJsonSchemaToJSON(createPromptResponseFormatPromptsResponseJsonSchema: CreatePromptResponseFormatPromptsResponseJsonSchema): string;
|
|
2852
|
+
export declare function createPromptResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatPromptsResponseJsonSchema, SDKValidationError>;
|
|
1496
2853
|
/** @internal */
|
|
1497
|
-
export declare const
|
|
2854
|
+
export declare const CreatePromptResponseFormatPromptsResponse1$inboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponse1, z.ZodTypeDef, unknown>;
|
|
1498
2855
|
/** @internal */
|
|
1499
|
-
export type
|
|
2856
|
+
export type CreatePromptResponseFormatPromptsResponse1$Outbound = {
|
|
1500
2857
|
type: string;
|
|
1501
|
-
json_schema:
|
|
2858
|
+
json_schema: CreatePromptResponseFormatPromptsResponseJsonSchema$Outbound;
|
|
1502
2859
|
};
|
|
1503
2860
|
/** @internal */
|
|
1504
|
-
export declare const
|
|
2861
|
+
export declare const CreatePromptResponseFormatPromptsResponse1$outboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponse1$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPromptsResponse1>;
|
|
1505
2862
|
/**
|
|
1506
2863
|
* @internal
|
|
1507
2864
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1508
2865
|
*/
|
|
1509
|
-
export declare namespace
|
|
1510
|
-
/** @deprecated use `
|
|
1511
|
-
const inboundSchema: z.ZodType<
|
|
1512
|
-
/** @deprecated use `
|
|
1513
|
-
const outboundSchema: z.ZodType<
|
|
1514
|
-
/** @deprecated use `
|
|
1515
|
-
type Outbound =
|
|
2866
|
+
export declare namespace CreatePromptResponseFormatPromptsResponse1$ {
|
|
2867
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse1$inboundSchema` instead. */
|
|
2868
|
+
const inboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponse1, z.ZodTypeDef, unknown>;
|
|
2869
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse1$outboundSchema` instead. */
|
|
2870
|
+
const outboundSchema: z.ZodType<CreatePromptResponseFormatPromptsResponse1$Outbound, z.ZodTypeDef, CreatePromptResponseFormatPromptsResponse1>;
|
|
2871
|
+
/** @deprecated use `CreatePromptResponseFormatPromptsResponse1$Outbound` instead. */
|
|
2872
|
+
type Outbound = CreatePromptResponseFormatPromptsResponse1$Outbound;
|
|
1516
2873
|
}
|
|
1517
|
-
export declare function
|
|
1518
|
-
export declare function
|
|
2874
|
+
export declare function createPromptResponseFormatPromptsResponse1ToJSON(createPromptResponseFormatPromptsResponse1: CreatePromptResponseFormatPromptsResponse1): string;
|
|
2875
|
+
export declare function createPromptResponseFormatPromptsResponse1FromJSON(jsonString: string): SafeParseResult<CreatePromptResponseFormatPromptsResponse1, SDKValidationError>;
|
|
1519
2876
|
/** @internal */
|
|
1520
|
-
export declare const
|
|
2877
|
+
export declare const CreatePromptPromptsResponseResponseFormat$inboundSchema: z.ZodType<CreatePromptPromptsResponseResponseFormat, z.ZodTypeDef, unknown>;
|
|
1521
2878
|
/** @internal */
|
|
1522
|
-
export type
|
|
2879
|
+
export type CreatePromptPromptsResponseResponseFormat$Outbound = CreatePromptResponseFormatPromptsResponse2$Outbound | CreatePromptResponseFormatPromptsResponse1$Outbound;
|
|
1523
2880
|
/** @internal */
|
|
1524
|
-
export declare const
|
|
2881
|
+
export declare const CreatePromptPromptsResponseResponseFormat$outboundSchema: z.ZodType<CreatePromptPromptsResponseResponseFormat$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseResponseFormat>;
|
|
1525
2882
|
/**
|
|
1526
2883
|
* @internal
|
|
1527
2884
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1528
2885
|
*/
|
|
1529
|
-
export declare namespace
|
|
1530
|
-
/** @deprecated use `
|
|
1531
|
-
const inboundSchema: z.ZodType<
|
|
1532
|
-
/** @deprecated use `
|
|
1533
|
-
const outboundSchema: z.ZodType<
|
|
1534
|
-
/** @deprecated use `
|
|
1535
|
-
type Outbound =
|
|
2886
|
+
export declare namespace CreatePromptPromptsResponseResponseFormat$ {
|
|
2887
|
+
/** @deprecated use `CreatePromptPromptsResponseResponseFormat$inboundSchema` instead. */
|
|
2888
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsResponseResponseFormat, z.ZodTypeDef, unknown>;
|
|
2889
|
+
/** @deprecated use `CreatePromptPromptsResponseResponseFormat$outboundSchema` instead. */
|
|
2890
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsResponseResponseFormat$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseResponseFormat>;
|
|
2891
|
+
/** @deprecated use `CreatePromptPromptsResponseResponseFormat$Outbound` instead. */
|
|
2892
|
+
type Outbound = CreatePromptPromptsResponseResponseFormat$Outbound;
|
|
1536
2893
|
}
|
|
1537
|
-
export declare function
|
|
1538
|
-
export declare function
|
|
2894
|
+
export declare function createPromptPromptsResponseResponseFormatToJSON(createPromptPromptsResponseResponseFormat: CreatePromptPromptsResponseResponseFormat): string;
|
|
2895
|
+
export declare function createPromptPromptsResponseResponseFormatFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsResponseResponseFormat, SDKValidationError>;
|
|
1539
2896
|
/** @internal */
|
|
1540
|
-
export declare const
|
|
2897
|
+
export declare const CreatePromptPromptsResponsePhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponsePhotoRealVersion>;
|
|
1541
2898
|
/** @internal */
|
|
1542
|
-
export declare const
|
|
2899
|
+
export declare const CreatePromptPromptsResponsePhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponsePhotoRealVersion>;
|
|
1543
2900
|
/**
|
|
1544
2901
|
* @internal
|
|
1545
2902
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1546
2903
|
*/
|
|
1547
|
-
export declare namespace
|
|
1548
|
-
/** @deprecated use `
|
|
2904
|
+
export declare namespace CreatePromptPromptsResponsePhotoRealVersion$ {
|
|
2905
|
+
/** @deprecated use `CreatePromptPromptsResponsePhotoRealVersion$inboundSchema` instead. */
|
|
1549
2906
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1550
2907
|
readonly V1: "v1";
|
|
1551
2908
|
readonly V2: "v2";
|
|
1552
2909
|
}>;
|
|
1553
|
-
/** @deprecated use `
|
|
2910
|
+
/** @deprecated use `CreatePromptPromptsResponsePhotoRealVersion$outboundSchema` instead. */
|
|
1554
2911
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1555
2912
|
readonly V1: "v1";
|
|
1556
2913
|
readonly V2: "v2";
|
|
1557
2914
|
}>;
|
|
1558
2915
|
}
|
|
1559
2916
|
/** @internal */
|
|
1560
|
-
export declare const
|
|
2917
|
+
export declare const CreatePromptPromptsResponseEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseEncodingFormat>;
|
|
1561
2918
|
/** @internal */
|
|
1562
|
-
export declare const
|
|
2919
|
+
export declare const CreatePromptPromptsResponseEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseEncodingFormat>;
|
|
1563
2920
|
/**
|
|
1564
2921
|
* @internal
|
|
1565
2922
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1566
2923
|
*/
|
|
1567
|
-
export declare namespace
|
|
1568
|
-
/** @deprecated use `
|
|
2924
|
+
export declare namespace CreatePromptPromptsResponseEncodingFormat$ {
|
|
2925
|
+
/** @deprecated use `CreatePromptPromptsResponseEncodingFormat$inboundSchema` instead. */
|
|
1569
2926
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1570
2927
|
readonly Float: "float";
|
|
1571
2928
|
readonly Base64: "base64";
|
|
1572
2929
|
}>;
|
|
1573
|
-
/** @deprecated use `
|
|
2930
|
+
/** @deprecated use `CreatePromptPromptsResponseEncodingFormat$outboundSchema` instead. */
|
|
1574
2931
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1575
2932
|
readonly Float: "float";
|
|
1576
2933
|
readonly Base64: "base64";
|
|
1577
2934
|
}>;
|
|
1578
2935
|
}
|
|
1579
2936
|
/** @internal */
|
|
1580
|
-
export declare const
|
|
2937
|
+
export declare const CreatePromptPromptsResponseModelParameters$inboundSchema: z.ZodType<CreatePromptPromptsResponseModelParameters, z.ZodTypeDef, unknown>;
|
|
1581
2938
|
/** @internal */
|
|
1582
|
-
export type
|
|
2939
|
+
export type CreatePromptPromptsResponseModelParameters$Outbound = {
|
|
1583
2940
|
temperature?: number | undefined;
|
|
1584
2941
|
maxTokens?: number | undefined;
|
|
1585
2942
|
topK?: number | undefined;
|
|
@@ -1592,36 +2949,36 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
1592
2949
|
dimensions?: string | undefined;
|
|
1593
2950
|
quality?: string | undefined;
|
|
1594
2951
|
style?: string | undefined;
|
|
1595
|
-
responseFormat?:
|
|
2952
|
+
responseFormat?: CreatePromptResponseFormatPromptsResponse2$Outbound | CreatePromptResponseFormatPromptsResponse1$Outbound | null | undefined;
|
|
1596
2953
|
photoRealVersion?: string | undefined;
|
|
1597
2954
|
encoding_format?: string | undefined;
|
|
1598
2955
|
};
|
|
1599
2956
|
/** @internal */
|
|
1600
|
-
export declare const
|
|
2957
|
+
export declare const CreatePromptPromptsResponseModelParameters$outboundSchema: z.ZodType<CreatePromptPromptsResponseModelParameters$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseModelParameters>;
|
|
1601
2958
|
/**
|
|
1602
2959
|
* @internal
|
|
1603
2960
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1604
2961
|
*/
|
|
1605
|
-
export declare namespace
|
|
1606
|
-
/** @deprecated use `
|
|
1607
|
-
const inboundSchema: z.ZodType<
|
|
1608
|
-
/** @deprecated use `
|
|
1609
|
-
const outboundSchema: z.ZodType<
|
|
1610
|
-
/** @deprecated use `
|
|
1611
|
-
type Outbound =
|
|
2962
|
+
export declare namespace CreatePromptPromptsResponseModelParameters$ {
|
|
2963
|
+
/** @deprecated use `CreatePromptPromptsResponseModelParameters$inboundSchema` instead. */
|
|
2964
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsResponseModelParameters, z.ZodTypeDef, unknown>;
|
|
2965
|
+
/** @deprecated use `CreatePromptPromptsResponseModelParameters$outboundSchema` instead. */
|
|
2966
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsResponseModelParameters$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseModelParameters>;
|
|
2967
|
+
/** @deprecated use `CreatePromptPromptsResponseModelParameters$Outbound` instead. */
|
|
2968
|
+
type Outbound = CreatePromptPromptsResponseModelParameters$Outbound;
|
|
1612
2969
|
}
|
|
1613
|
-
export declare function
|
|
1614
|
-
export declare function
|
|
2970
|
+
export declare function createPromptPromptsResponseModelParametersToJSON(createPromptPromptsResponseModelParameters: CreatePromptPromptsResponseModelParameters): string;
|
|
2971
|
+
export declare function createPromptPromptsResponseModelParametersFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsResponseModelParameters, SDKValidationError>;
|
|
1615
2972
|
/** @internal */
|
|
1616
|
-
export declare const
|
|
2973
|
+
export declare const CreatePromptPromptsResponseProvider$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseProvider>;
|
|
1617
2974
|
/** @internal */
|
|
1618
|
-
export declare const
|
|
2975
|
+
export declare const CreatePromptPromptsResponseProvider$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseProvider>;
|
|
1619
2976
|
/**
|
|
1620
2977
|
* @internal
|
|
1621
2978
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1622
2979
|
*/
|
|
1623
|
-
export declare namespace
|
|
1624
|
-
/** @deprecated use `
|
|
2980
|
+
export declare namespace CreatePromptPromptsResponseProvider$ {
|
|
2981
|
+
/** @deprecated use `CreatePromptPromptsResponseProvider$inboundSchema` instead. */
|
|
1625
2982
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1626
2983
|
readonly Cohere: "cohere";
|
|
1627
2984
|
readonly Openai: "openai";
|
|
@@ -1639,8 +2996,10 @@ export declare namespace CreatePromptProvider$ {
|
|
|
1639
2996
|
readonly Leonardoai: "leonardoai";
|
|
1640
2997
|
readonly Nvidia: "nvidia";
|
|
1641
2998
|
readonly Jina: "jina";
|
|
2999
|
+
readonly Togetherai: "togetherai";
|
|
3000
|
+
readonly Elevenlabs: "elevenlabs";
|
|
1642
3001
|
}>;
|
|
1643
|
-
/** @deprecated use `
|
|
3002
|
+
/** @deprecated use `CreatePromptPromptsResponseProvider$outboundSchema` instead. */
|
|
1644
3003
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1645
3004
|
readonly Cohere: "cohere";
|
|
1646
3005
|
readonly Openai: "openai";
|
|
@@ -1658,18 +3017,20 @@ export declare namespace CreatePromptProvider$ {
|
|
|
1658
3017
|
readonly Leonardoai: "leonardoai";
|
|
1659
3018
|
readonly Nvidia: "nvidia";
|
|
1660
3019
|
readonly Jina: "jina";
|
|
3020
|
+
readonly Togetherai: "togetherai";
|
|
3021
|
+
readonly Elevenlabs: "elevenlabs";
|
|
1661
3022
|
}>;
|
|
1662
3023
|
}
|
|
1663
3024
|
/** @internal */
|
|
1664
|
-
export declare const
|
|
3025
|
+
export declare const CreatePromptPromptsResponseRole$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseRole>;
|
|
1665
3026
|
/** @internal */
|
|
1666
|
-
export declare const
|
|
3027
|
+
export declare const CreatePromptPromptsResponseRole$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseRole>;
|
|
1667
3028
|
/**
|
|
1668
3029
|
* @internal
|
|
1669
3030
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1670
3031
|
*/
|
|
1671
|
-
export declare namespace
|
|
1672
|
-
/** @deprecated use `
|
|
3032
|
+
export declare namespace CreatePromptPromptsResponseRole$ {
|
|
3033
|
+
/** @deprecated use `CreatePromptPromptsResponseRole$inboundSchema` instead. */
|
|
1673
3034
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1674
3035
|
readonly System: "system";
|
|
1675
3036
|
readonly Assistant: "assistant";
|
|
@@ -1680,7 +3041,7 @@ export declare namespace CreatePromptPromptsRole$ {
|
|
|
1680
3041
|
readonly Correction: "correction";
|
|
1681
3042
|
readonly ExpectedOutput: "expected_output";
|
|
1682
3043
|
}>;
|
|
1683
|
-
/** @deprecated use `
|
|
3044
|
+
/** @deprecated use `CreatePromptPromptsResponseRole$outboundSchema` instead. */
|
|
1684
3045
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1685
3046
|
readonly System: "system";
|
|
1686
3047
|
readonly Assistant: "assistant";
|
|
@@ -1693,151 +3054,151 @@ export declare namespace CreatePromptPromptsRole$ {
|
|
|
1693
3054
|
}>;
|
|
1694
3055
|
}
|
|
1695
3056
|
/** @internal */
|
|
1696
|
-
export declare const
|
|
3057
|
+
export declare const CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType>;
|
|
1697
3058
|
/** @internal */
|
|
1698
|
-
export declare const
|
|
3059
|
+
export declare const CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType$outboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType>;
|
|
1699
3060
|
/**
|
|
1700
3061
|
* @internal
|
|
1701
3062
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1702
3063
|
*/
|
|
1703
|
-
export declare namespace
|
|
1704
|
-
/** @deprecated use `
|
|
3064
|
+
export declare namespace CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType$ {
|
|
3065
|
+
/** @deprecated use `CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
|
|
1705
3066
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1706
3067
|
readonly ImageUrl: "image_url";
|
|
1707
3068
|
}>;
|
|
1708
|
-
/** @deprecated use `
|
|
3069
|
+
/** @deprecated use `CreatePrompt2PromptsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
|
|
1709
3070
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1710
3071
|
readonly ImageUrl: "image_url";
|
|
1711
3072
|
}>;
|
|
1712
3073
|
}
|
|
1713
3074
|
/** @internal */
|
|
1714
|
-
export declare const
|
|
3075
|
+
export declare const CreatePrompt2PromptsResponseImageUrl$inboundSchema: z.ZodType<CreatePrompt2PromptsResponseImageUrl, z.ZodTypeDef, unknown>;
|
|
1715
3076
|
/** @internal */
|
|
1716
|
-
export type
|
|
3077
|
+
export type CreatePrompt2PromptsResponseImageUrl$Outbound = {
|
|
1717
3078
|
id?: string | undefined;
|
|
1718
3079
|
url: string;
|
|
1719
3080
|
detail?: string | undefined;
|
|
1720
3081
|
};
|
|
1721
3082
|
/** @internal */
|
|
1722
|
-
export declare const
|
|
3083
|
+
export declare const CreatePrompt2PromptsResponseImageUrl$outboundSchema: z.ZodType<CreatePrompt2PromptsResponseImageUrl$Outbound, z.ZodTypeDef, CreatePrompt2PromptsResponseImageUrl>;
|
|
1723
3084
|
/**
|
|
1724
3085
|
* @internal
|
|
1725
3086
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1726
3087
|
*/
|
|
1727
|
-
export declare namespace
|
|
1728
|
-
/** @deprecated use `
|
|
1729
|
-
const inboundSchema: z.ZodType<
|
|
1730
|
-
/** @deprecated use `
|
|
1731
|
-
const outboundSchema: z.ZodType<
|
|
1732
|
-
/** @deprecated use `
|
|
1733
|
-
type Outbound =
|
|
3088
|
+
export declare namespace CreatePrompt2PromptsResponseImageUrl$ {
|
|
3089
|
+
/** @deprecated use `CreatePrompt2PromptsResponseImageUrl$inboundSchema` instead. */
|
|
3090
|
+
const inboundSchema: z.ZodType<CreatePrompt2PromptsResponseImageUrl, z.ZodTypeDef, unknown>;
|
|
3091
|
+
/** @deprecated use `CreatePrompt2PromptsResponseImageUrl$outboundSchema` instead. */
|
|
3092
|
+
const outboundSchema: z.ZodType<CreatePrompt2PromptsResponseImageUrl$Outbound, z.ZodTypeDef, CreatePrompt2PromptsResponseImageUrl>;
|
|
3093
|
+
/** @deprecated use `CreatePrompt2PromptsResponseImageUrl$Outbound` instead. */
|
|
3094
|
+
type Outbound = CreatePrompt2PromptsResponseImageUrl$Outbound;
|
|
1734
3095
|
}
|
|
1735
|
-
export declare function
|
|
1736
|
-
export declare function
|
|
3096
|
+
export declare function createPrompt2PromptsResponseImageUrlToJSON(createPrompt2PromptsResponseImageUrl: CreatePrompt2PromptsResponseImageUrl): string;
|
|
3097
|
+
export declare function createPrompt2PromptsResponseImageUrlFromJSON(jsonString: string): SafeParseResult<CreatePrompt2PromptsResponseImageUrl, SDKValidationError>;
|
|
1737
3098
|
/** @internal */
|
|
1738
|
-
export declare const
|
|
3099
|
+
export declare const CreatePrompt2PromptsResponse2$inboundSchema: z.ZodType<CreatePrompt2PromptsResponse2, z.ZodTypeDef, unknown>;
|
|
1739
3100
|
/** @internal */
|
|
1740
|
-
export type
|
|
3101
|
+
export type CreatePrompt2PromptsResponse2$Outbound = {
|
|
1741
3102
|
type: string;
|
|
1742
|
-
image_url:
|
|
3103
|
+
image_url: CreatePrompt2PromptsResponseImageUrl$Outbound;
|
|
1743
3104
|
};
|
|
1744
3105
|
/** @internal */
|
|
1745
|
-
export declare const
|
|
3106
|
+
export declare const CreatePrompt2PromptsResponse2$outboundSchema: z.ZodType<CreatePrompt2PromptsResponse2$Outbound, z.ZodTypeDef, CreatePrompt2PromptsResponse2>;
|
|
1746
3107
|
/**
|
|
1747
3108
|
* @internal
|
|
1748
3109
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1749
3110
|
*/
|
|
1750
|
-
export declare namespace
|
|
1751
|
-
/** @deprecated use `
|
|
1752
|
-
const inboundSchema: z.ZodType<
|
|
1753
|
-
/** @deprecated use `
|
|
1754
|
-
const outboundSchema: z.ZodType<
|
|
1755
|
-
/** @deprecated use `
|
|
1756
|
-
type Outbound =
|
|
3111
|
+
export declare namespace CreatePrompt2PromptsResponse2$ {
|
|
3112
|
+
/** @deprecated use `CreatePrompt2PromptsResponse2$inboundSchema` instead. */
|
|
3113
|
+
const inboundSchema: z.ZodType<CreatePrompt2PromptsResponse2, z.ZodTypeDef, unknown>;
|
|
3114
|
+
/** @deprecated use `CreatePrompt2PromptsResponse2$outboundSchema` instead. */
|
|
3115
|
+
const outboundSchema: z.ZodType<CreatePrompt2PromptsResponse2$Outbound, z.ZodTypeDef, CreatePrompt2PromptsResponse2>;
|
|
3116
|
+
/** @deprecated use `CreatePrompt2PromptsResponse2$Outbound` instead. */
|
|
3117
|
+
type Outbound = CreatePrompt2PromptsResponse2$Outbound;
|
|
1757
3118
|
}
|
|
1758
|
-
export declare function
|
|
1759
|
-
export declare function
|
|
3119
|
+
export declare function createPrompt2PromptsResponse2ToJSON(createPrompt2PromptsResponse2: CreatePrompt2PromptsResponse2): string;
|
|
3120
|
+
export declare function createPrompt2PromptsResponse2FromJSON(jsonString: string): SafeParseResult<CreatePrompt2PromptsResponse2, SDKValidationError>;
|
|
1760
3121
|
/** @internal */
|
|
1761
|
-
export declare const
|
|
3122
|
+
export declare const CreatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200ApplicationJSONType>;
|
|
1762
3123
|
/** @internal */
|
|
1763
|
-
export declare const
|
|
3124
|
+
export declare const CreatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema: z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200ApplicationJSONType>;
|
|
1764
3125
|
/**
|
|
1765
3126
|
* @internal
|
|
1766
3127
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1767
3128
|
*/
|
|
1768
|
-
export declare namespace
|
|
1769
|
-
/** @deprecated use `
|
|
3129
|
+
export declare namespace CreatePrompt2PromptsResponse200ApplicationJSONType$ {
|
|
3130
|
+
/** @deprecated use `CreatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
1770
3131
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1771
3132
|
readonly Text: "text";
|
|
1772
3133
|
}>;
|
|
1773
|
-
/** @deprecated use `
|
|
3134
|
+
/** @deprecated use `CreatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
1774
3135
|
const outboundSchema: z.ZodNativeEnum<{
|
|
1775
3136
|
readonly Text: "text";
|
|
1776
3137
|
}>;
|
|
1777
3138
|
}
|
|
1778
3139
|
/** @internal */
|
|
1779
|
-
export declare const
|
|
3140
|
+
export declare const CreatePrompt2PromptsResponse1$inboundSchema: z.ZodType<CreatePrompt2PromptsResponse1, z.ZodTypeDef, unknown>;
|
|
1780
3141
|
/** @internal */
|
|
1781
|
-
export type
|
|
3142
|
+
export type CreatePrompt2PromptsResponse1$Outbound = {
|
|
1782
3143
|
type: string;
|
|
1783
3144
|
text: string;
|
|
1784
3145
|
};
|
|
1785
3146
|
/** @internal */
|
|
1786
|
-
export declare const
|
|
3147
|
+
export declare const CreatePrompt2PromptsResponse1$outboundSchema: z.ZodType<CreatePrompt2PromptsResponse1$Outbound, z.ZodTypeDef, CreatePrompt2PromptsResponse1>;
|
|
1787
3148
|
/**
|
|
1788
3149
|
* @internal
|
|
1789
3150
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1790
3151
|
*/
|
|
1791
|
-
export declare namespace
|
|
1792
|
-
/** @deprecated use `
|
|
1793
|
-
const inboundSchema: z.ZodType<
|
|
1794
|
-
/** @deprecated use `
|
|
1795
|
-
const outboundSchema: z.ZodType<
|
|
1796
|
-
/** @deprecated use `
|
|
1797
|
-
type Outbound =
|
|
3152
|
+
export declare namespace CreatePrompt2PromptsResponse1$ {
|
|
3153
|
+
/** @deprecated use `CreatePrompt2PromptsResponse1$inboundSchema` instead. */
|
|
3154
|
+
const inboundSchema: z.ZodType<CreatePrompt2PromptsResponse1, z.ZodTypeDef, unknown>;
|
|
3155
|
+
/** @deprecated use `CreatePrompt2PromptsResponse1$outboundSchema` instead. */
|
|
3156
|
+
const outboundSchema: z.ZodType<CreatePrompt2PromptsResponse1$Outbound, z.ZodTypeDef, CreatePrompt2PromptsResponse1>;
|
|
3157
|
+
/** @deprecated use `CreatePrompt2PromptsResponse1$Outbound` instead. */
|
|
3158
|
+
type Outbound = CreatePrompt2PromptsResponse1$Outbound;
|
|
1798
3159
|
}
|
|
1799
|
-
export declare function
|
|
1800
|
-
export declare function
|
|
3160
|
+
export declare function createPrompt2PromptsResponse1ToJSON(createPrompt2PromptsResponse1: CreatePrompt2PromptsResponse1): string;
|
|
3161
|
+
export declare function createPrompt2PromptsResponse1FromJSON(jsonString: string): SafeParseResult<CreatePrompt2PromptsResponse1, SDKValidationError>;
|
|
1801
3162
|
/** @internal */
|
|
1802
|
-
export declare const
|
|
3163
|
+
export declare const CreatePromptContentPromptsResponse2$inboundSchema: z.ZodType<CreatePromptContentPromptsResponse2, z.ZodTypeDef, unknown>;
|
|
1803
3164
|
/** @internal */
|
|
1804
|
-
export type
|
|
3165
|
+
export type CreatePromptContentPromptsResponse2$Outbound = CreatePrompt2PromptsResponse1$Outbound | CreatePrompt2PromptsResponse2$Outbound;
|
|
1805
3166
|
/** @internal */
|
|
1806
|
-
export declare const
|
|
3167
|
+
export declare const CreatePromptContentPromptsResponse2$outboundSchema: z.ZodType<CreatePromptContentPromptsResponse2$Outbound, z.ZodTypeDef, CreatePromptContentPromptsResponse2>;
|
|
1807
3168
|
/**
|
|
1808
3169
|
* @internal
|
|
1809
3170
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1810
3171
|
*/
|
|
1811
|
-
export declare namespace
|
|
1812
|
-
/** @deprecated use `
|
|
1813
|
-
const inboundSchema: z.ZodType<
|
|
1814
|
-
/** @deprecated use `
|
|
1815
|
-
const outboundSchema: z.ZodType<
|
|
1816
|
-
/** @deprecated use `
|
|
1817
|
-
type Outbound =
|
|
3172
|
+
export declare namespace CreatePromptContentPromptsResponse2$ {
|
|
3173
|
+
/** @deprecated use `CreatePromptContentPromptsResponse2$inboundSchema` instead. */
|
|
3174
|
+
const inboundSchema: z.ZodType<CreatePromptContentPromptsResponse2, z.ZodTypeDef, unknown>;
|
|
3175
|
+
/** @deprecated use `CreatePromptContentPromptsResponse2$outboundSchema` instead. */
|
|
3176
|
+
const outboundSchema: z.ZodType<CreatePromptContentPromptsResponse2$Outbound, z.ZodTypeDef, CreatePromptContentPromptsResponse2>;
|
|
3177
|
+
/** @deprecated use `CreatePromptContentPromptsResponse2$Outbound` instead. */
|
|
3178
|
+
type Outbound = CreatePromptContentPromptsResponse2$Outbound;
|
|
1818
3179
|
}
|
|
1819
|
-
export declare function
|
|
1820
|
-
export declare function
|
|
3180
|
+
export declare function createPromptContentPromptsResponse2ToJSON(createPromptContentPromptsResponse2: CreatePromptContentPromptsResponse2): string;
|
|
3181
|
+
export declare function createPromptContentPromptsResponse2FromJSON(jsonString: string): SafeParseResult<CreatePromptContentPromptsResponse2, SDKValidationError>;
|
|
1821
3182
|
/** @internal */
|
|
1822
|
-
export declare const
|
|
3183
|
+
export declare const CreatePromptPromptsResponseContent$inboundSchema: z.ZodType<CreatePromptPromptsResponseContent, z.ZodTypeDef, unknown>;
|
|
1823
3184
|
/** @internal */
|
|
1824
|
-
export type
|
|
3185
|
+
export type CreatePromptPromptsResponseContent$Outbound = string | Array<CreatePrompt2PromptsResponse1$Outbound | CreatePrompt2PromptsResponse2$Outbound>;
|
|
1825
3186
|
/** @internal */
|
|
1826
|
-
export declare const
|
|
3187
|
+
export declare const CreatePromptPromptsResponseContent$outboundSchema: z.ZodType<CreatePromptPromptsResponseContent$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseContent>;
|
|
1827
3188
|
/**
|
|
1828
3189
|
* @internal
|
|
1829
3190
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1830
3191
|
*/
|
|
1831
|
-
export declare namespace
|
|
1832
|
-
/** @deprecated use `
|
|
1833
|
-
const inboundSchema: z.ZodType<
|
|
1834
|
-
/** @deprecated use `
|
|
1835
|
-
const outboundSchema: z.ZodType<
|
|
1836
|
-
/** @deprecated use `
|
|
1837
|
-
type Outbound =
|
|
3192
|
+
export declare namespace CreatePromptPromptsResponseContent$ {
|
|
3193
|
+
/** @deprecated use `CreatePromptPromptsResponseContent$inboundSchema` instead. */
|
|
3194
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsResponseContent, z.ZodTypeDef, unknown>;
|
|
3195
|
+
/** @deprecated use `CreatePromptPromptsResponseContent$outboundSchema` instead. */
|
|
3196
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsResponseContent$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseContent>;
|
|
3197
|
+
/** @deprecated use `CreatePromptPromptsResponseContent$Outbound` instead. */
|
|
3198
|
+
type Outbound = CreatePromptPromptsResponseContent$Outbound;
|
|
1838
3199
|
}
|
|
1839
|
-
export declare function
|
|
1840
|
-
export declare function
|
|
3200
|
+
export declare function createPromptPromptsResponseContentToJSON(createPromptPromptsResponseContent: CreatePromptPromptsResponseContent): string;
|
|
3201
|
+
export declare function createPromptPromptsResponseContentFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsResponseContent, SDKValidationError>;
|
|
1841
3202
|
/** @internal */
|
|
1842
3203
|
export declare const CreatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponse200Type>;
|
|
1843
3204
|
/** @internal */
|
|
@@ -1857,164 +3218,254 @@ export declare namespace CreatePromptPromptsResponse200Type$ {
|
|
|
1857
3218
|
}>;
|
|
1858
3219
|
}
|
|
1859
3220
|
/** @internal */
|
|
1860
|
-
export declare const
|
|
3221
|
+
export declare const CreatePromptPromptsResponseFunction$inboundSchema: z.ZodType<CreatePromptPromptsResponseFunction, z.ZodTypeDef, unknown>;
|
|
1861
3222
|
/** @internal */
|
|
1862
|
-
export type
|
|
3223
|
+
export type CreatePromptPromptsResponseFunction$Outbound = {
|
|
1863
3224
|
name: string;
|
|
1864
3225
|
arguments: string;
|
|
1865
3226
|
};
|
|
1866
3227
|
/** @internal */
|
|
1867
|
-
export declare const
|
|
3228
|
+
export declare const CreatePromptPromptsResponseFunction$outboundSchema: z.ZodType<CreatePromptPromptsResponseFunction$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseFunction>;
|
|
1868
3229
|
/**
|
|
1869
3230
|
* @internal
|
|
1870
3231
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1871
3232
|
*/
|
|
1872
|
-
export declare namespace
|
|
1873
|
-
/** @deprecated use `
|
|
1874
|
-
const inboundSchema: z.ZodType<
|
|
1875
|
-
/** @deprecated use `
|
|
1876
|
-
const outboundSchema: z.ZodType<
|
|
1877
|
-
/** @deprecated use `
|
|
1878
|
-
type Outbound =
|
|
3233
|
+
export declare namespace CreatePromptPromptsResponseFunction$ {
|
|
3234
|
+
/** @deprecated use `CreatePromptPromptsResponseFunction$inboundSchema` instead. */
|
|
3235
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsResponseFunction, z.ZodTypeDef, unknown>;
|
|
3236
|
+
/** @deprecated use `CreatePromptPromptsResponseFunction$outboundSchema` instead. */
|
|
3237
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsResponseFunction$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseFunction>;
|
|
3238
|
+
/** @deprecated use `CreatePromptPromptsResponseFunction$Outbound` instead. */
|
|
3239
|
+
type Outbound = CreatePromptPromptsResponseFunction$Outbound;
|
|
1879
3240
|
}
|
|
1880
|
-
export declare function
|
|
1881
|
-
export declare function
|
|
3241
|
+
export declare function createPromptPromptsResponseFunctionToJSON(createPromptPromptsResponseFunction: CreatePromptPromptsResponseFunction): string;
|
|
3242
|
+
export declare function createPromptPromptsResponseFunctionFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsResponseFunction, SDKValidationError>;
|
|
1882
3243
|
/** @internal */
|
|
1883
|
-
export declare const
|
|
3244
|
+
export declare const CreatePromptPromptsResponseToolCalls$inboundSchema: z.ZodType<CreatePromptPromptsResponseToolCalls, z.ZodTypeDef, unknown>;
|
|
1884
3245
|
/** @internal */
|
|
1885
|
-
export type
|
|
3246
|
+
export type CreatePromptPromptsResponseToolCalls$Outbound = {
|
|
1886
3247
|
id?: string | undefined;
|
|
1887
3248
|
index?: number | undefined;
|
|
1888
3249
|
type: string;
|
|
1889
|
-
function:
|
|
3250
|
+
function: CreatePromptPromptsResponseFunction$Outbound;
|
|
1890
3251
|
};
|
|
1891
3252
|
/** @internal */
|
|
1892
|
-
export declare const
|
|
3253
|
+
export declare const CreatePromptPromptsResponseToolCalls$outboundSchema: z.ZodType<CreatePromptPromptsResponseToolCalls$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseToolCalls>;
|
|
1893
3254
|
/**
|
|
1894
3255
|
* @internal
|
|
1895
3256
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1896
3257
|
*/
|
|
1897
|
-
export declare namespace
|
|
1898
|
-
/** @deprecated use `
|
|
1899
|
-
const inboundSchema: z.ZodType<
|
|
1900
|
-
/** @deprecated use `
|
|
1901
|
-
const outboundSchema: z.ZodType<
|
|
1902
|
-
/** @deprecated use `
|
|
1903
|
-
type Outbound =
|
|
3258
|
+
export declare namespace CreatePromptPromptsResponseToolCalls$ {
|
|
3259
|
+
/** @deprecated use `CreatePromptPromptsResponseToolCalls$inboundSchema` instead. */
|
|
3260
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsResponseToolCalls, z.ZodTypeDef, unknown>;
|
|
3261
|
+
/** @deprecated use `CreatePromptPromptsResponseToolCalls$outboundSchema` instead. */
|
|
3262
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsResponseToolCalls$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseToolCalls>;
|
|
3263
|
+
/** @deprecated use `CreatePromptPromptsResponseToolCalls$Outbound` instead. */
|
|
3264
|
+
type Outbound = CreatePromptPromptsResponseToolCalls$Outbound;
|
|
1904
3265
|
}
|
|
1905
|
-
export declare function
|
|
1906
|
-
export declare function
|
|
3266
|
+
export declare function createPromptPromptsResponseToolCallsToJSON(createPromptPromptsResponseToolCalls: CreatePromptPromptsResponseToolCalls): string;
|
|
3267
|
+
export declare function createPromptPromptsResponseToolCallsFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsResponseToolCalls, SDKValidationError>;
|
|
1907
3268
|
/** @internal */
|
|
1908
|
-
export declare const
|
|
3269
|
+
export declare const CreatePromptPromptsResponseMessages$inboundSchema: z.ZodType<CreatePromptPromptsResponseMessages, z.ZodTypeDef, unknown>;
|
|
1909
3270
|
/** @internal */
|
|
1910
|
-
export type
|
|
3271
|
+
export type CreatePromptPromptsResponseMessages$Outbound = {
|
|
1911
3272
|
role: string;
|
|
1912
|
-
content: string | Array<
|
|
1913
|
-
tool_calls?: Array<
|
|
3273
|
+
content: string | Array<CreatePrompt2PromptsResponse1$Outbound | CreatePrompt2PromptsResponse2$Outbound>;
|
|
3274
|
+
tool_calls?: Array<CreatePromptPromptsResponseToolCalls$Outbound> | undefined;
|
|
1914
3275
|
};
|
|
1915
3276
|
/** @internal */
|
|
1916
|
-
export declare const
|
|
3277
|
+
export declare const CreatePromptPromptsResponseMessages$outboundSchema: z.ZodType<CreatePromptPromptsResponseMessages$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseMessages>;
|
|
1917
3278
|
/**
|
|
1918
3279
|
* @internal
|
|
1919
3280
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1920
3281
|
*/
|
|
1921
|
-
export declare namespace
|
|
1922
|
-
/** @deprecated use `
|
|
1923
|
-
const inboundSchema: z.ZodType<
|
|
1924
|
-
/** @deprecated use `
|
|
1925
|
-
const outboundSchema: z.ZodType<
|
|
1926
|
-
/** @deprecated use `
|
|
1927
|
-
type Outbound =
|
|
3282
|
+
export declare namespace CreatePromptPromptsResponseMessages$ {
|
|
3283
|
+
/** @deprecated use `CreatePromptPromptsResponseMessages$inboundSchema` instead. */
|
|
3284
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsResponseMessages, z.ZodTypeDef, unknown>;
|
|
3285
|
+
/** @deprecated use `CreatePromptPromptsResponseMessages$outboundSchema` instead. */
|
|
3286
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsResponseMessages$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseMessages>;
|
|
3287
|
+
/** @deprecated use `CreatePromptPromptsResponseMessages$Outbound` instead. */
|
|
3288
|
+
type Outbound = CreatePromptPromptsResponseMessages$Outbound;
|
|
1928
3289
|
}
|
|
1929
|
-
export declare function
|
|
1930
|
-
export declare function
|
|
3290
|
+
export declare function createPromptPromptsResponseMessagesToJSON(createPromptPromptsResponseMessages: CreatePromptPromptsResponseMessages): string;
|
|
3291
|
+
export declare function createPromptPromptsResponseMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsResponseMessages, SDKValidationError>;
|
|
1931
3292
|
/** @internal */
|
|
1932
|
-
export declare const
|
|
3293
|
+
export declare const CreatePromptPromptsResponsePromptConfig$inboundSchema: z.ZodType<CreatePromptPromptsResponsePromptConfig, z.ZodTypeDef, unknown>;
|
|
1933
3294
|
/** @internal */
|
|
1934
|
-
export type
|
|
3295
|
+
export type CreatePromptPromptsResponsePromptConfig$Outbound = {
|
|
1935
3296
|
stream?: boolean | undefined;
|
|
1936
3297
|
model?: string | undefined;
|
|
1937
3298
|
model_db_id?: string | undefined;
|
|
1938
3299
|
model_type?: string | undefined;
|
|
1939
|
-
model_parameters?:
|
|
3300
|
+
model_parameters?: CreatePromptPromptsResponseModelParameters$Outbound | undefined;
|
|
1940
3301
|
provider?: string | undefined;
|
|
1941
3302
|
integration_id?: string | null | undefined;
|
|
1942
3303
|
version?: string | undefined;
|
|
1943
|
-
messages: Array<
|
|
3304
|
+
messages: Array<CreatePromptPromptsResponseMessages$Outbound>;
|
|
1944
3305
|
};
|
|
1945
3306
|
/** @internal */
|
|
1946
|
-
export declare const
|
|
3307
|
+
export declare const CreatePromptPromptsResponsePromptConfig$outboundSchema: z.ZodType<CreatePromptPromptsResponsePromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptsResponsePromptConfig>;
|
|
1947
3308
|
/**
|
|
1948
3309
|
* @internal
|
|
1949
3310
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1950
3311
|
*/
|
|
1951
|
-
export declare namespace
|
|
1952
|
-
/** @deprecated use `
|
|
1953
|
-
const inboundSchema: z.ZodType<
|
|
1954
|
-
/** @deprecated use `
|
|
1955
|
-
const outboundSchema: z.ZodType<
|
|
1956
|
-
/** @deprecated use `
|
|
1957
|
-
type Outbound =
|
|
3312
|
+
export declare namespace CreatePromptPromptsResponsePromptConfig$ {
|
|
3313
|
+
/** @deprecated use `CreatePromptPromptsResponsePromptConfig$inboundSchema` instead. */
|
|
3314
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsResponsePromptConfig, z.ZodTypeDef, unknown>;
|
|
3315
|
+
/** @deprecated use `CreatePromptPromptsResponsePromptConfig$outboundSchema` instead. */
|
|
3316
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsResponsePromptConfig$Outbound, z.ZodTypeDef, CreatePromptPromptsResponsePromptConfig>;
|
|
3317
|
+
/** @deprecated use `CreatePromptPromptsResponsePromptConfig$Outbound` instead. */
|
|
3318
|
+
type Outbound = CreatePromptPromptsResponsePromptConfig$Outbound;
|
|
1958
3319
|
}
|
|
1959
|
-
export declare function
|
|
1960
|
-
export declare function
|
|
3320
|
+
export declare function createPromptPromptsResponsePromptConfigToJSON(createPromptPromptsResponsePromptConfig: CreatePromptPromptsResponsePromptConfig): string;
|
|
3321
|
+
export declare function createPromptPromptsResponsePromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsResponsePromptConfig, SDKValidationError>;
|
|
1961
3322
|
/** @internal */
|
|
1962
|
-
export declare const
|
|
1963
|
-
/** @internal */
|
|
1964
|
-
export type CreatePromptPromptsMetadata$Outbound = {
|
|
1965
|
-
use_cases?: Array<string> | undefined;
|
|
1966
|
-
language?: string | undefined;
|
|
1967
|
-
};
|
|
3323
|
+
export declare const CreatePromptPromptsResponseUseCases$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseUseCases>;
|
|
1968
3324
|
/** @internal */
|
|
1969
|
-
export declare const
|
|
3325
|
+
export declare const CreatePromptPromptsResponseUseCases$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseUseCases>;
|
|
1970
3326
|
/**
|
|
1971
3327
|
* @internal
|
|
1972
3328
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1973
3329
|
*/
|
|
1974
|
-
export declare namespace
|
|
1975
|
-
/** @deprecated use `
|
|
1976
|
-
const inboundSchema: z.
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
3330
|
+
export declare namespace CreatePromptPromptsResponseUseCases$ {
|
|
3331
|
+
/** @deprecated use `CreatePromptPromptsResponseUseCases$inboundSchema` instead. */
|
|
3332
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
3333
|
+
readonly Agents: "Agents";
|
|
3334
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
3335
|
+
readonly APIInteraction: "API interaction";
|
|
3336
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
3337
|
+
readonly Chatbots: "Chatbots";
|
|
3338
|
+
readonly Classification: "Classification";
|
|
3339
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
3340
|
+
readonly CodeWriting: "Code writing";
|
|
3341
|
+
readonly DocumentsQA: "Documents QA";
|
|
3342
|
+
readonly Conversation: "Conversation";
|
|
3343
|
+
readonly Extraction: "Extraction";
|
|
3344
|
+
readonly MultiModal: "Multi-modal";
|
|
3345
|
+
readonly SelfChecking: "Self-checking";
|
|
3346
|
+
readonly Sql: "SQL";
|
|
3347
|
+
readonly Summarization: "Summarization";
|
|
3348
|
+
readonly Tagging: "Tagging";
|
|
3349
|
+
}>;
|
|
3350
|
+
/** @deprecated use `CreatePromptPromptsResponseUseCases$outboundSchema` instead. */
|
|
3351
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
3352
|
+
readonly Agents: "Agents";
|
|
3353
|
+
readonly AgentsSimulations: "Agents simulations";
|
|
3354
|
+
readonly APIInteraction: "API interaction";
|
|
3355
|
+
readonly AutonomousAgents: "Autonomous Agents";
|
|
3356
|
+
readonly Chatbots: "Chatbots";
|
|
3357
|
+
readonly Classification: "Classification";
|
|
3358
|
+
readonly CodeUnderstanding: "Code understanding";
|
|
3359
|
+
readonly CodeWriting: "Code writing";
|
|
3360
|
+
readonly DocumentsQA: "Documents QA";
|
|
3361
|
+
readonly Conversation: "Conversation";
|
|
3362
|
+
readonly Extraction: "Extraction";
|
|
3363
|
+
readonly MultiModal: "Multi-modal";
|
|
3364
|
+
readonly SelfChecking: "Self-checking";
|
|
3365
|
+
readonly Sql: "SQL";
|
|
3366
|
+
readonly Summarization: "Summarization";
|
|
3367
|
+
readonly Tagging: "Tagging";
|
|
3368
|
+
}>;
|
|
1981
3369
|
}
|
|
1982
|
-
export declare function createPromptPromptsMetadataToJSON(createPromptPromptsMetadata: CreatePromptPromptsMetadata): string;
|
|
1983
|
-
export declare function createPromptPromptsMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsMetadata, SDKValidationError>;
|
|
1984
3370
|
/** @internal */
|
|
1985
|
-
export declare const
|
|
3371
|
+
export declare const CreatePromptPromptsResponseLanguage$inboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseLanguage>;
|
|
1986
3372
|
/** @internal */
|
|
1987
|
-
export declare const
|
|
3373
|
+
export declare const CreatePromptPromptsResponseLanguage$outboundSchema: z.ZodNativeEnum<typeof CreatePromptPromptsResponseLanguage>;
|
|
1988
3374
|
/**
|
|
1989
3375
|
* @internal
|
|
1990
3376
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1991
3377
|
*/
|
|
1992
|
-
export declare namespace
|
|
1993
|
-
/** @deprecated use `
|
|
3378
|
+
export declare namespace CreatePromptPromptsResponseLanguage$ {
|
|
3379
|
+
/** @deprecated use `CreatePromptPromptsResponseLanguage$inboundSchema` instead. */
|
|
1994
3380
|
const inboundSchema: z.ZodNativeEnum<{
|
|
1995
|
-
readonly
|
|
1996
|
-
readonly
|
|
1997
|
-
readonly
|
|
3381
|
+
readonly Chinese: "Chinese";
|
|
3382
|
+
readonly Dutch: "Dutch";
|
|
3383
|
+
readonly English: "English";
|
|
3384
|
+
readonly French: "French";
|
|
3385
|
+
readonly German: "German";
|
|
3386
|
+
readonly Russian: "Russian";
|
|
3387
|
+
readonly Spanish: "Spanish";
|
|
1998
3388
|
}>;
|
|
1999
|
-
/** @deprecated use `
|
|
3389
|
+
/** @deprecated use `CreatePromptPromptsResponseLanguage$outboundSchema` instead. */
|
|
2000
3390
|
const outboundSchema: z.ZodNativeEnum<{
|
|
2001
|
-
readonly
|
|
2002
|
-
readonly
|
|
2003
|
-
readonly
|
|
3391
|
+
readonly Chinese: "Chinese";
|
|
3392
|
+
readonly Dutch: "Dutch";
|
|
3393
|
+
readonly English: "English";
|
|
3394
|
+
readonly French: "French";
|
|
3395
|
+
readonly German: "German";
|
|
3396
|
+
readonly Russian: "Russian";
|
|
3397
|
+
readonly Spanish: "Spanish";
|
|
2004
3398
|
}>;
|
|
2005
3399
|
}
|
|
2006
3400
|
/** @internal */
|
|
3401
|
+
export declare const CreatePromptPromptsResponseMetadata$inboundSchema: z.ZodType<CreatePromptPromptsResponseMetadata, z.ZodTypeDef, unknown>;
|
|
3402
|
+
/** @internal */
|
|
3403
|
+
export type CreatePromptPromptsResponseMetadata$Outbound = {
|
|
3404
|
+
use_cases?: Array<string> | undefined;
|
|
3405
|
+
language?: string | undefined;
|
|
3406
|
+
};
|
|
3407
|
+
/** @internal */
|
|
3408
|
+
export declare const CreatePromptPromptsResponseMetadata$outboundSchema: z.ZodType<CreatePromptPromptsResponseMetadata$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseMetadata>;
|
|
3409
|
+
/**
|
|
3410
|
+
* @internal
|
|
3411
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3412
|
+
*/
|
|
3413
|
+
export declare namespace CreatePromptPromptsResponseMetadata$ {
|
|
3414
|
+
/** @deprecated use `CreatePromptPromptsResponseMetadata$inboundSchema` instead. */
|
|
3415
|
+
const inboundSchema: z.ZodType<CreatePromptPromptsResponseMetadata, z.ZodTypeDef, unknown>;
|
|
3416
|
+
/** @deprecated use `CreatePromptPromptsResponseMetadata$outboundSchema` instead. */
|
|
3417
|
+
const outboundSchema: z.ZodType<CreatePromptPromptsResponseMetadata$Outbound, z.ZodTypeDef, CreatePromptPromptsResponseMetadata>;
|
|
3418
|
+
/** @deprecated use `CreatePromptPromptsResponseMetadata$Outbound` instead. */
|
|
3419
|
+
type Outbound = CreatePromptPromptsResponseMetadata$Outbound;
|
|
3420
|
+
}
|
|
3421
|
+
export declare function createPromptPromptsResponseMetadataToJSON(createPromptPromptsResponseMetadata: CreatePromptPromptsResponseMetadata): string;
|
|
3422
|
+
export declare function createPromptPromptsResponseMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptPromptsResponseMetadata, SDKValidationError>;
|
|
3423
|
+
/** @internal */
|
|
3424
|
+
export declare const CreatePromptVersions$inboundSchema: z.ZodType<CreatePromptVersions, z.ZodTypeDef, unknown>;
|
|
3425
|
+
/** @internal */
|
|
3426
|
+
export type CreatePromptVersions$Outbound = {
|
|
3427
|
+
_id: string;
|
|
3428
|
+
created_by_id: string;
|
|
3429
|
+
display_name: string;
|
|
3430
|
+
updated_by_id: string;
|
|
3431
|
+
description?: string | null | undefined;
|
|
3432
|
+
prompt_config: CreatePromptPromptsResponsePromptConfig$Outbound;
|
|
3433
|
+
metadata: CreatePromptPromptsResponseMetadata$Outbound;
|
|
3434
|
+
timestamp: string;
|
|
3435
|
+
};
|
|
3436
|
+
/** @internal */
|
|
3437
|
+
export declare const CreatePromptVersions$outboundSchema: z.ZodType<CreatePromptVersions$Outbound, z.ZodTypeDef, CreatePromptVersions>;
|
|
3438
|
+
/**
|
|
3439
|
+
* @internal
|
|
3440
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3441
|
+
*/
|
|
3442
|
+
export declare namespace CreatePromptVersions$ {
|
|
3443
|
+
/** @deprecated use `CreatePromptVersions$inboundSchema` instead. */
|
|
3444
|
+
const inboundSchema: z.ZodType<CreatePromptVersions, z.ZodTypeDef, unknown>;
|
|
3445
|
+
/** @deprecated use `CreatePromptVersions$outboundSchema` instead. */
|
|
3446
|
+
const outboundSchema: z.ZodType<CreatePromptVersions$Outbound, z.ZodTypeDef, CreatePromptVersions>;
|
|
3447
|
+
/** @deprecated use `CreatePromptVersions$Outbound` instead. */
|
|
3448
|
+
type Outbound = CreatePromptVersions$Outbound;
|
|
3449
|
+
}
|
|
3450
|
+
export declare function createPromptVersionsToJSON(createPromptVersions: CreatePromptVersions): string;
|
|
3451
|
+
export declare function createPromptVersionsFromJSON(jsonString: string): SafeParseResult<CreatePromptVersions, SDKValidationError>;
|
|
3452
|
+
/** @internal */
|
|
2007
3453
|
export declare const CreatePromptResponseBody$inboundSchema: z.ZodType<CreatePromptResponseBody, z.ZodTypeDef, unknown>;
|
|
2008
3454
|
/** @internal */
|
|
2009
3455
|
export type CreatePromptResponseBody$Outbound = {
|
|
2010
3456
|
_id: string;
|
|
2011
|
-
|
|
3457
|
+
owner: string | string;
|
|
2012
3458
|
domain_id: string;
|
|
3459
|
+
created_by_id: string;
|
|
3460
|
+
display_name: string;
|
|
3461
|
+
updated_by_id: string;
|
|
2013
3462
|
description?: string | null | undefined;
|
|
2014
|
-
prompt_config
|
|
2015
|
-
metadata
|
|
2016
|
-
|
|
3463
|
+
prompt_config: CreatePromptPromptsPromptConfig$Outbound;
|
|
3464
|
+
metadata: CreatePromptPromptsMetadata$Outbound;
|
|
3465
|
+
created?: string | undefined;
|
|
3466
|
+
updated: string;
|
|
2017
3467
|
type: string;
|
|
3468
|
+
versions: Array<CreatePromptVersions$Outbound>;
|
|
2018
3469
|
};
|
|
2019
3470
|
/** @internal */
|
|
2020
3471
|
export declare const CreatePromptResponseBody$outboundSchema: z.ZodType<CreatePromptResponseBody$Outbound, z.ZodTypeDef, CreatePromptResponseBody>;
|