@orq-ai/node 2.14.6 → 3.0.0-rc.19
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/FUNCTIONS.md +106 -0
- package/README.md +495 -172
- package/RUNTIMES.md +22 -0
- package/core.d.ts +10 -0
- package/core.d.ts.map +1 -0
- package/core.js +17 -0
- package/core.js.map +1 -0
- package/docs/sdks/contacts/README.md +84 -0
- package/docs/sdks/deployments/README.md +239 -0
- package/docs/sdks/feedback/README.md +92 -0
- package/docs/sdks/files/README.md +473 -0
- package/docs/sdks/metrics/README.md +86 -0
- package/docs/sdks/orq/README.md +10 -0
- package/docs/sdks/prompt/README.md +6 -0
- package/docs/sdks/prompts/README.md +533 -0
- package/docs/sdks/remoteconfig/README.md +80 -0
- package/docs/sdks/snippets/README.md +84 -0
- package/docs/sdks/templates/README.md +80 -0
- package/funcs/contactsCreate.d.ts +15 -0
- package/funcs/contactsCreate.d.ts.map +1 -0
- package/funcs/contactsCreate.js +106 -0
- package/funcs/contactsCreate.js.map +1 -0
- package/funcs/deploymentsAll.d.ts +16 -0
- package/funcs/deploymentsAll.d.ts.map +1 -0
- package/funcs/deploymentsAll.js +114 -0
- package/funcs/deploymentsAll.js.map +1 -0
- package/funcs/deploymentsGetConfig.d.ts +15 -0
- package/funcs/deploymentsGetConfig.d.ts.map +1 -0
- package/funcs/deploymentsGetConfig.js +106 -0
- package/funcs/deploymentsGetConfig.js.map +1 -0
- package/funcs/deploymentsInvoke.d.ts +22 -0
- package/funcs/deploymentsInvoke.d.ts.map +1 -0
- package/funcs/deploymentsInvoke.js +116 -0
- package/funcs/deploymentsInvoke.js.map +1 -0
- package/funcs/deploymentsMetricsCreate.d.ts +15 -0
- package/funcs/deploymentsMetricsCreate.d.ts.map +1 -0
- package/funcs/deploymentsMetricsCreate.js +112 -0
- package/funcs/deploymentsMetricsCreate.js.map +1 -0
- package/funcs/feedbackCreate.d.ts +15 -0
- package/funcs/feedbackCreate.d.ts.map +1 -0
- package/funcs/feedbackCreate.js +106 -0
- package/funcs/feedbackCreate.js.map +1 -0
- package/funcs/filesBulkUpload.d.ts +15 -0
- package/funcs/filesBulkUpload.d.ts.map +1 -0
- package/funcs/filesBulkUpload.js +107 -0
- package/funcs/filesBulkUpload.js.map +1 -0
- package/funcs/filesDelete.d.ts +12 -0
- package/funcs/filesDelete.d.ts.map +1 -0
- package/funcs/filesDelete.js +109 -0
- package/funcs/filesDelete.js.map +1 -0
- package/funcs/filesGet.d.ts +12 -0
- package/funcs/filesGet.d.ts.map +1 -0
- package/funcs/filesGet.js +108 -0
- package/funcs/filesGet.js.map +1 -0
- package/funcs/filesList.d.ts +12 -0
- package/funcs/filesList.d.ts.map +1 -0
- package/funcs/filesList.js +109 -0
- package/funcs/filesList.js.map +1 -0
- package/funcs/filesUpdate.d.ts +12 -0
- package/funcs/filesUpdate.d.ts.map +1 -0
- package/funcs/filesUpdate.js +109 -0
- package/funcs/filesUpdate.js.map +1 -0
- package/funcs/filesUpload.d.ts +15 -0
- package/funcs/filesUpload.d.ts.map +1 -0
- package/funcs/filesUpload.js +123 -0
- package/funcs/filesUpload.js.map +1 -0
- package/funcs/promptSnippetsFindOne.d.ts +12 -0
- package/funcs/promptSnippetsFindOne.d.ts.map +1 -0
- package/funcs/promptSnippetsFindOne.js +108 -0
- package/funcs/promptSnippetsFindOne.js.map +1 -0
- package/funcs/promptTemplatesGetAll.d.ts +12 -0
- package/funcs/promptTemplatesGetAll.d.ts.map +1 -0
- package/funcs/promptTemplatesGetAll.js +108 -0
- package/funcs/promptTemplatesGetAll.js.map +1 -0
- package/funcs/promptsCreate.d.ts +12 -0
- package/funcs/promptsCreate.d.ts.map +1 -0
- package/funcs/promptsCreate.js +105 -0
- package/funcs/promptsCreate.js.map +1 -0
- package/funcs/promptsCreateVersion.d.ts +12 -0
- package/funcs/promptsCreateVersion.d.ts.map +1 -0
- package/funcs/promptsCreateVersion.js +109 -0
- package/funcs/promptsCreateVersion.js.map +1 -0
- package/funcs/promptsDelete.d.ts +12 -0
- package/funcs/promptsDelete.d.ts.map +1 -0
- package/funcs/promptsDelete.js +109 -0
- package/funcs/promptsDelete.js.map +1 -0
- package/funcs/promptsDuplicate.d.ts +12 -0
- package/funcs/promptsDuplicate.d.ts.map +1 -0
- package/funcs/promptsDuplicate.js +109 -0
- package/funcs/promptsDuplicate.js.map +1 -0
- package/funcs/promptsGetAll.d.ts +12 -0
- package/funcs/promptsGetAll.d.ts.map +1 -0
- package/funcs/promptsGetAll.js +105 -0
- package/funcs/promptsGetAll.js.map +1 -0
- package/funcs/promptsGetOne.d.ts +12 -0
- package/funcs/promptsGetOne.d.ts.map +1 -0
- package/funcs/promptsGetOne.js +109 -0
- package/funcs/promptsGetOne.js.map +1 -0
- package/funcs/promptsUpdate.d.ts +13 -0
- package/funcs/promptsUpdate.d.ts.map +1 -0
- package/funcs/promptsUpdate.js +113 -0
- package/funcs/promptsUpdate.js.map +1 -0
- package/funcs/remoteconfigGetConfig.d.ts +12 -0
- package/funcs/remoteconfigGetConfig.d.ts.map +1 -0
- package/funcs/remoteconfigGetConfig.js +106 -0
- package/funcs/remoteconfigGetConfig.js.map +1 -0
- package/hooks/hooks.d.ts +24 -0
- package/hooks/hooks.d.ts.map +1 -0
- package/hooks/hooks.js +86 -0
- package/hooks/hooks.js.map +1 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.d.ts.map +1 -0
- package/hooks/index.js +22 -0
- package/hooks/index.js.map +1 -0
- package/hooks/registration.d.ts +3 -0
- package/hooks/registration.d.ts.map +1 -0
- package/hooks/registration.js +15 -0
- package/hooks/registration.js.map +1 -0
- package/hooks/types.d.ts +77 -0
- package/hooks/types.d.ts.map +1 -0
- package/hooks/types.js +6 -0
- package/hooks/types.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +46 -0
- package/index.js.map +1 -0
- package/lib/base64.d.ts +10 -0
- package/lib/base64.d.ts.map +1 -0
- package/lib/base64.js +71 -0
- package/lib/base64.js.map +1 -0
- package/lib/config.d.ts +34 -0
- package/lib/config.d.ts.map +1 -0
- package/lib/config.js +36 -0
- package/lib/config.js.map +1 -0
- package/lib/dlv.d.ts +14 -0
- package/lib/dlv.d.ts.map +1 -0
- package/lib/dlv.js +49 -0
- package/lib/dlv.js.map +1 -0
- package/lib/encodings.d.ts +51 -0
- package/lib/encodings.d.ts.map +1 -0
- package/lib/encodings.js +343 -0
- package/lib/encodings.js.map +1 -0
- package/lib/env.d.ts +15 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +66 -0
- package/lib/env.js.map +1 -0
- package/lib/event-streams.d.ts +17 -0
- package/lib/event-streams.d.ts.map +1 -0
- package/lib/event-streams.js +221 -0
- package/lib/event-streams.js.map +1 -0
- package/lib/files.d.ts +8 -0
- package/lib/files.d.ts.map +1 -0
- package/lib/files.js +36 -0
- package/lib/files.js.map +1 -0
- package/lib/http.d.ts +67 -0
- package/lib/http.d.ts.map +1 -0
- package/lib/http.js +218 -0
- package/lib/http.js.map +1 -0
- package/lib/is-plain-object.d.ts +2 -0
- package/lib/is-plain-object.d.ts.map +1 -0
- package/lib/is-plain-object.js +41 -0
- package/lib/is-plain-object.js.map +1 -0
- package/lib/logger.d.ts +6 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +6 -0
- package/lib/logger.js.map +1 -0
- package/lib/matchers.d.ts +64 -0
- package/lib/matchers.d.ts.map +1 -0
- package/lib/matchers.js +208 -0
- package/lib/matchers.js.map +1 -0
- package/lib/primitives.d.ts +22 -0
- package/lib/primitives.d.ts.map +1 -0
- package/lib/primitives.js +94 -0
- package/lib/primitives.js.map +1 -0
- package/lib/retries.d.ts +38 -0
- package/lib/retries.d.ts.map +1 -0
- package/lib/retries.js +155 -0
- package/lib/retries.js.map +1 -0
- package/lib/schemas.d.ts +19 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +59 -0
- package/lib/schemas.js.map +1 -0
- package/lib/sdks.d.ts +60 -0
- package/lib/sdks.d.ts.map +1 -0
- package/lib/sdks.js +278 -0
- package/lib/sdks.js.map +1 -0
- package/lib/security.d.ts +82 -0
- package/lib/security.d.ts.map +1 -0
- package/lib/security.js +140 -0
- package/lib/security.js.map +1 -0
- package/lib/url.d.ts +5 -0
- package/lib/url.d.ts.map +1 -0
- package/lib/url.js +25 -0
- package/lib/url.js.map +1 -0
- package/models/components/deployments.d.ts +920 -0
- package/models/components/deployments.d.ts.map +1 -0
- package/models/components/deployments.js +948 -0
- package/models/components/deployments.js.map +1 -0
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -0
- package/models/components/index.js +22 -0
- package/models/components/index.js.map +1 -0
- package/models/components/security.d.ts +29 -0
- package/models/components/security.d.ts.map +1 -0
- package/models/components/security.js +78 -0
- package/models/components/security.js.map +1 -0
- package/models/errors/apierror.d.ts +8 -0
- package/models/errors/apierror.d.ts.map +1 -0
- package/models/errors/apierror.js +21 -0
- package/models/errors/apierror.js.map +1 -0
- package/models/errors/honoapierror.d.ts +42 -0
- package/models/errors/honoapierror.d.ts.map +1 -0
- package/models/errors/honoapierror.js +80 -0
- package/models/errors/honoapierror.js.map +1 -0
- package/models/errors/httpclienterrors.d.ts +44 -0
- package/models/errors/httpclienterrors.d.ts.map +1 -0
- package/models/errors/httpclienterrors.js +78 -0
- package/models/errors/httpclienterrors.js.map +1 -0
- package/models/errors/index.d.ts +6 -0
- package/models/errors/index.d.ts.map +1 -0
- package/models/errors/index.js +25 -0
- package/models/errors/index.js.map +1 -0
- package/models/errors/sdkvalidationerror.d.ts +20 -0
- package/models/errors/sdkvalidationerror.d.ts.map +1 -0
- package/models/errors/sdkvalidationerror.js +115 -0
- package/models/errors/sdkvalidationerror.js.map +1 -0
- package/models/errors/updateprompt.d.ts +36 -0
- package/models/errors/updateprompt.d.ts.map +1 -0
- package/models/errors/updateprompt.js +79 -0
- package/models/errors/updateprompt.js.map +1 -0
- package/models/operations/bulkfileupload.d.ts +173 -0
- package/models/operations/bulkfileupload.d.ts.map +1 -0
- package/models/operations/bulkfileupload.js +210 -0
- package/models/operations/bulkfileupload.js.map +1 -0
- package/models/operations/createcontact.d.ts +139 -0
- package/models/operations/createcontact.d.ts.map +1 -0
- package/models/operations/createcontact.js +149 -0
- package/models/operations/createcontact.js.map +1 -0
- package/models/operations/createfeedback.d.ts +136 -0
- package/models/operations/createfeedback.d.ts.map +1 -0
- package/models/operations/createfeedback.js +172 -0
- package/models/operations/createfeedback.js.map +1 -0
- package/models/operations/createprompt.d.ts +2035 -0
- package/models/operations/createprompt.d.ts.map +1 -0
- package/models/operations/createprompt.js +1853 -0
- package/models/operations/createprompt.js.map +1 -0
- package/models/operations/createpromptversion.d.ts +2003 -0
- package/models/operations/createpromptversion.d.ts.map +1 -0
- package/models/operations/createpromptversion.js +1852 -0
- package/models/operations/createpromptversion.js.map +1 -0
- package/models/operations/deleteprompt.d.ts +32 -0
- package/models/operations/deleteprompt.d.ts.map +1 -0
- package/models/operations/deleteprompt.js +69 -0
- package/models/operations/deleteprompt.js.map +1 -0
- package/models/operations/deploymentcreatemetric.d.ts +957 -0
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -0
- package/models/operations/deploymentcreatemetric.js +954 -0
- package/models/operations/deploymentcreatemetric.js.map +1 -0
- package/models/operations/deploymentgetconfig.d.ts +1885 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -0
- package/models/operations/deploymentgetconfig.js +1782 -0
- package/models/operations/deploymentgetconfig.js.map +1 -0
- package/models/operations/deploymentinvoke.d.ts +1350 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -0
- package/models/operations/deploymentinvoke.js +1210 -0
- package/models/operations/deploymentinvoke.js.map +1 -0
- package/models/operations/deployments.d.ts +1233 -0
- package/models/operations/deployments.d.ts.map +1 -0
- package/models/operations/deployments.js +1111 -0
- package/models/operations/deployments.js.map +1 -0
- package/models/operations/duplicateprompt.d.ts +32 -0
- package/models/operations/duplicateprompt.d.ts.map +1 -0
- package/models/operations/duplicateprompt.js +69 -0
- package/models/operations/duplicateprompt.js.map +1 -0
- package/models/operations/filedelete.d.ts +32 -0
- package/models/operations/filedelete.d.ts.map +1 -0
- package/models/operations/filedelete.js +78 -0
- package/models/operations/filedelete.js.map +1 -0
- package/models/operations/fileget.d.ts +116 -0
- package/models/operations/fileget.d.ts.map +1 -0
- package/models/operations/fileget.js +154 -0
- package/models/operations/fileget.js.map +1 -0
- package/models/operations/filelist.d.ts +174 -0
- package/models/operations/filelist.d.ts.map +1 -0
- package/models/operations/filelist.js +217 -0
- package/models/operations/filelist.js.map +1 -0
- package/models/operations/fileupdate.d.ts +143 -0
- package/models/operations/fileupdate.d.ts.map +1 -0
- package/models/operations/fileupdate.js +193 -0
- package/models/operations/fileupdate.js.map +1 -0
- package/models/operations/fileupload.d.ts +179 -0
- package/models/operations/fileupload.d.ts.map +1 -0
- package/models/operations/fileupload.js +212 -0
- package/models/operations/fileupload.js.map +1 -0
- package/models/operations/findonepromptsnippet.d.ts +6278 -0
- package/models/operations/findonepromptsnippet.d.ts.map +1 -0
- package/models/operations/findonepromptsnippet.js +5891 -0
- package/models/operations/findonepromptsnippet.js.map +1 -0
- package/models/operations/getallprompts.d.ts +10675 -0
- package/models/operations/getallprompts.d.ts.map +1 -0
- package/models/operations/getallprompts.js +9398 -0
- package/models/operations/getallprompts.js.map +1 -0
- package/models/operations/getallprompttemplates.d.ts +6607 -0
- package/models/operations/getallprompttemplates.d.ts.map +1 -0
- package/models/operations/getallprompttemplates.js +6225 -0
- package/models/operations/getallprompttemplates.js.map +1 -0
- package/models/operations/getoneprompt.d.ts +32 -0
- package/models/operations/getoneprompt.d.ts.map +1 -0
- package/models/operations/getoneprompt.js +69 -0
- package/models/operations/getoneprompt.js.map +1 -0
- package/models/operations/index.d.ts +23 -0
- package/models/operations/index.d.ts.map +1 -0
- package/models/operations/index.js +42 -0
- package/models/operations/index.js.map +1 -0
- package/models/operations/remoteconfigsgetconfig.d.ts +121 -0
- package/models/operations/remoteconfigsgetconfig.d.ts.map +1 -0
- package/models/operations/remoteconfigsgetconfig.js +126 -0
- package/models/operations/remoteconfigsgetconfig.js.map +1 -0
- package/models/operations/updateprompt.d.ts +7251 -0
- package/models/operations/updateprompt.d.ts.map +1 -0
- package/models/operations/updateprompt.js +6678 -0
- package/models/operations/updateprompt.js.map +1 -0
- package/package.json +26 -24
- package/sdk/contacts.d.ts +12 -0
- package/sdk/contacts.d.ts.map +1 -0
- package/sdk/contacts.js +22 -0
- package/sdk/contacts.js.map +1 -0
- package/sdk/deployments.d.ts +34 -0
- package/sdk/deployments.d.ts.map +1 -0
- package/sdk/deployments.js +49 -0
- package/sdk/deployments.js.map +1 -0
- package/sdk/feedback.d.ts +12 -0
- package/sdk/feedback.d.ts.map +1 -0
- package/sdk/feedback.js +22 -0
- package/sdk/feedback.js.map +1 -0
- package/sdk/files.d.ts +35 -0
- package/sdk/files.d.ts.map +1 -0
- package/sdk/files.js +60 -0
- package/sdk/files.js.map +1 -0
- package/sdk/index.d.ts +2 -0
- package/sdk/index.d.ts.map +1 -0
- package/sdk/index.js +21 -0
- package/sdk/index.js.map +1 -0
- package/sdk/metrics.d.ts +12 -0
- package/sdk/metrics.d.ts.map +1 -0
- package/sdk/metrics.js +22 -0
- package/sdk/metrics.js.map +1 -0
- package/sdk/prompt.d.ts +10 -0
- package/sdk/prompt.d.ts.map +1 -0
- package/sdk/prompt.js +21 -0
- package/sdk/prompt.js.map +1 -0
- package/sdk/prompts.d.ts +33 -0
- package/sdk/prompts.d.ts.map +1 -0
- package/sdk/prompts.js +61 -0
- package/sdk/prompts.js.map +1 -0
- package/sdk/remoteconfig.d.ts +9 -0
- package/sdk/remoteconfig.d.ts.map +1 -0
- package/sdk/remoteconfig.js +19 -0
- package/sdk/remoteconfig.js.map +1 -0
- package/sdk/sdk.d.ts +25 -0
- package/sdk/sdk.d.ts.map +1 -0
- package/sdk/sdk.js +46 -0
- package/sdk/sdk.js.map +1 -0
- package/sdk/snippets.d.ts +9 -0
- package/sdk/snippets.d.ts.map +1 -0
- package/sdk/snippets.js +19 -0
- package/sdk/snippets.js.map +1 -0
- package/sdk/templates.d.ts +9 -0
- package/sdk/templates.d.ts.map +1 -0
- package/sdk/templates.js +19 -0
- package/sdk/templates.js.map +1 -0
- package/src/core.ts +13 -0
- package/src/funcs/contactsCreate.ts +124 -0
- package/src/funcs/deploymentsAll.ts +138 -0
- package/src/funcs/deploymentsGetConfig.ts +132 -0
- package/src/funcs/deploymentsInvoke.ts +135 -0
- package/src/funcs/deploymentsMetricsCreate.ts +132 -0
- package/src/funcs/feedbackCreate.ts +124 -0
- package/src/funcs/filesBulkUpload.ts +126 -0
- package/src/funcs/filesDelete.ts +128 -0
- package/src/funcs/filesGet.ts +127 -0
- package/src/funcs/filesList.ts +129 -0
- package/src/funcs/filesUpdate.ts +128 -0
- package/src/funcs/filesUpload.ts +145 -0
- package/src/funcs/promptSnippetsFindOne.ts +128 -0
- package/src/funcs/promptTemplatesGetAll.ts +130 -0
- package/src/funcs/promptsCreate.ts +124 -0
- package/src/funcs/promptsCreateVersion.ts +129 -0
- package/src/funcs/promptsDelete.ts +128 -0
- package/src/funcs/promptsDuplicate.ts +128 -0
- package/src/funcs/promptsGetAll.ts +126 -0
- package/src/funcs/promptsGetOne.ts +128 -0
- package/src/funcs/promptsUpdate.ts +136 -0
- package/src/funcs/remoteconfigGetConfig.ts +125 -0
- package/src/hooks/hooks.ts +132 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/registration.ts +14 -0
- package/src/hooks/types.ts +109 -0
- package/src/index.ts +7 -0
- package/src/lib/base64.ts +37 -0
- package/src/lib/config.ts +60 -0
- package/src/lib/dlv.ts +53 -0
- package/src/lib/encodings.ts +449 -0
- package/src/lib/env.ts +41 -0
- package/src/lib/event-streams.ts +264 -0
- package/src/lib/files.ts +40 -0
- package/src/lib/http.ts +323 -0
- package/src/lib/is-plain-object.ts +43 -0
- package/src/lib/logger.ts +9 -0
- package/src/lib/matchers.ts +325 -0
- package/src/lib/primitives.ts +122 -0
- package/src/lib/retries.ts +219 -0
- package/src/lib/schemas.ts +86 -0
- package/src/lib/sdks.ts +397 -0
- package/src/lib/security.ts +254 -0
- package/src/lib/url.ts +33 -0
- package/src/models/components/deployments.ts +1673 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/security.ts +71 -0
- package/src/models/errors/apierror.ts +27 -0
- package/src/models/errors/honoapierror.ts +82 -0
- package/src/models/errors/httpclienterrors.ts +62 -0
- package/src/models/errors/index.ts +9 -0
- package/src/models/errors/sdkvalidationerror.ts +97 -0
- package/src/models/errors/updateprompt.ts +71 -0
- package/src/models/operations/bulkfileupload.ts +315 -0
- package/src/models/operations/createcontact.ts +256 -0
- package/src/models/operations/createfeedback.ts +286 -0
- package/src/models/operations/createprompt.ts +3461 -0
- package/src/models/operations/createpromptversion.ts +3703 -0
- package/src/models/operations/deleteprompt.ts +69 -0
- package/src/models/operations/deploymentcreatemetric.ts +1790 -0
- package/src/models/operations/deploymentgetconfig.ts +3483 -0
- package/src/models/operations/deploymentinvoke.ts +2385 -0
- package/src/models/operations/deployments.ts +2098 -0
- package/src/models/operations/duplicateprompt.ts +69 -0
- package/src/models/operations/filedelete.ts +78 -0
- package/src/models/operations/fileget.ts +222 -0
- package/src/models/operations/filelist.ts +333 -0
- package/src/models/operations/fileupdate.ts +298 -0
- package/src/models/operations/fileupload.ts +322 -0
- package/src/models/operations/findonepromptsnippet.ts +13629 -0
- package/src/models/operations/getallprompts.ts +18640 -0
- package/src/models/operations/getallprompttemplates.ts +13690 -0
- package/src/models/operations/getoneprompt.ts +69 -0
- package/src/models/operations/index.ts +26 -0
- package/src/models/operations/remoteconfigsgetconfig.ts +190 -0
- package/src/models/operations/updateprompt.ts +14407 -0
- package/src/sdk/contacts.ts +27 -0
- package/src/sdk/deployments.ts +75 -0
- package/src/sdk/feedback.ts +27 -0
- package/src/sdk/files.ts +105 -0
- package/src/sdk/index.ts +5 -0
- package/src/sdk/metrics.ts +27 -0
- package/src/sdk/prompt.ts +19 -0
- package/src/sdk/prompts.ts +114 -0
- package/src/sdk/remoteconfig.ts +24 -0
- package/src/sdk/sdk.ts +49 -0
- package/src/sdk/snippets.ts +24 -0
- package/src/sdk/templates.ts +24 -0
- package/src/types/blobs.ts +31 -0
- package/src/types/constdatetime.ts +15 -0
- package/src/types/enums.ts +16 -0
- package/src/types/fp.ts +50 -0
- package/src/types/index.ts +11 -0
- package/src/types/operations.ts +105 -0
- package/src/types/rfcdate.ts +54 -0
- package/src/types/streams.ts +21 -0
- package/types/blobs.d.ts +4 -0
- package/types/blobs.d.ts.map +1 -0
- package/types/blobs.js +62 -0
- package/types/blobs.js.map +1 -0
- package/types/constdatetime.d.ts +3 -0
- package/types/constdatetime.d.ts.map +1 -0
- package/types/constdatetime.js +46 -0
- package/types/constdatetime.js.map +1 -0
- package/types/enums.d.ts +12 -0
- package/types/enums.d.ts.map +1 -0
- package/types/enums.js +10 -0
- package/types/enums.js.map +1 -0
- package/types/fp.d.ts +31 -0
- package/types/fp.d.ts.map +1 -0
- package/types/fp.js +37 -0
- package/types/fp.js.map +1 -0
- package/types/index.d.ts +8 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +16 -0
- package/types/index.js.map +1 -0
- package/types/operations.d.ts +27 -0
- package/types/operations.d.ts.map +1 -0
- package/types/operations.js +83 -0
- package/types/operations.js.map +1 -0
- package/types/rfcdate.d.ts +21 -0
- package/types/rfcdate.d.ts.map +1 -0
- package/types/rfcdate.js +46 -0
- package/types/rfcdate.js.map +1 -0
- package/types/streams.d.ts +2 -0
- package/types/streams.d.ts.map +1 -0
- package/types/streams.js +18 -0
- package/types/streams.js.map +1 -0
- package/src/index.d.ts +0 -3
- package/src/index.js +0 -7
- package/src/index.js.map +0 -1
- package/src/lib/api/contacts/index.d.ts +0 -9
- package/src/lib/api/contacts/index.js +0 -25
- package/src/lib/api/contacts/index.js.map +0 -1
- package/src/lib/api/deployments.d.ts +0 -45
- package/src/lib/api/deployments.js +0 -166
- package/src/lib/api/deployments.js.map +0 -1
- package/src/lib/api/feedback/feedback.d.ts +0 -20
- package/src/lib/api/feedback/feedback.js +0 -51
- package/src/lib/api/feedback/feedback.js.map +0 -1
- package/src/lib/api/feedback/index.d.ts +0 -1
- package/src/lib/api/feedback/index.js +0 -5
- package/src/lib/api/feedback/index.js.map +0 -1
- package/src/lib/api/index.d.ts +0 -1
- package/src/lib/api/index.js +0 -5
- package/src/lib/api/index.js.map +0 -1
- package/src/lib/api/webhooks/index.d.ts +0 -1
- package/src/lib/api/webhooks/index.js +0 -5
- package/src/lib/api/webhooks/index.js.map +0 -1
- package/src/lib/api/webhooks/webhooks.d.ts +0 -14
- package/src/lib/api/webhooks/webhooks.js +0 -40
- package/src/lib/api/webhooks/webhooks.js.map +0 -1
- package/src/lib/client.d.ts +0 -17
- package/src/lib/client.js +0 -47
- package/src/lib/client.js.map +0 -1
- package/src/lib/exceptions/index.d.ts +0 -9
- package/src/lib/exceptions/index.js +0 -31
- package/src/lib/exceptions/index.js.map +0 -1
- package/src/lib/http/index.d.ts +0 -7
- package/src/lib/http/index.js +0 -15
- package/src/lib/http/index.js.map +0 -1
- package/src/lib/models/contacts.d.ts +0 -8
- package/src/lib/models/contacts.js +0 -3
- package/src/lib/models/contacts.js.map +0 -1
- package/src/lib/models/deployments.d.ts +0 -167
- package/src/lib/models/deployments.js +0 -40
- package/src/lib/models/deployments.js.map +0 -1
- package/src/lib/models/feedback.models.d.ts +0 -23
- package/src/lib/models/feedback.models.js +0 -3
- package/src/lib/models/feedback.models.js.map +0 -1
- package/src/lib/models/index.d.ts +0 -6
- package/src/lib/models/index.js +0 -10
- package/src/lib/models/index.js.map +0 -1
- package/src/lib/models/options.d.ts +0 -13
- package/src/lib/models/options.js +0 -3
- package/src/lib/models/options.js.map +0 -1
- package/src/lib/models/user-info.d.ts +0 -3
- package/src/lib/models/user-info.js +0 -3
- package/src/lib/models/user-info.js.map +0 -1
- package/src/lib/models/webhooks.d.ts +0 -83
- package/src/lib/models/webhooks.js +0 -8
- package/src/lib/models/webhooks.js.map +0 -1
- package/src/lib/utils/index.d.ts +0 -6
- package/src/lib/utils/index.js +0 -51
- package/src/lib/utils/index.js.map +0 -1
- package/src/lib/version.d.ts +0 -1
- package/src/lib/version.js +0 -5
- package/src/lib/version.js.map +0 -1
|
@@ -0,0 +1,1885 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type Inputs = string | number | boolean;
|
|
6
|
+
/**
|
|
7
|
+
* The role of the prompt message
|
|
8
|
+
*/
|
|
9
|
+
export declare const Role: {
|
|
10
|
+
readonly System: "system";
|
|
11
|
+
readonly Assistant: "assistant";
|
|
12
|
+
readonly User: "user";
|
|
13
|
+
readonly Exception: "exception";
|
|
14
|
+
readonly Tool: "tool";
|
|
15
|
+
readonly Prompt: "prompt";
|
|
16
|
+
readonly Correction: "correction";
|
|
17
|
+
readonly ExpectedOutput: "expected_output";
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The role of the prompt message
|
|
21
|
+
*/
|
|
22
|
+
export type Role = ClosedEnum<typeof Role>;
|
|
23
|
+
export declare const TwoType: {
|
|
24
|
+
readonly ImageUrl: "image_url";
|
|
25
|
+
};
|
|
26
|
+
export type TwoType = ClosedEnum<typeof TwoType>;
|
|
27
|
+
export type ImageUrl = {
|
|
28
|
+
/**
|
|
29
|
+
* Either a URL of the image or the base64 encoded data URI.
|
|
30
|
+
*/
|
|
31
|
+
url: string;
|
|
32
|
+
/**
|
|
33
|
+
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
34
|
+
*/
|
|
35
|
+
detail?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* The image part of the prompt message. Only supported with vision models.
|
|
39
|
+
*/
|
|
40
|
+
export type Two2 = {
|
|
41
|
+
type: TwoType;
|
|
42
|
+
imageUrl: ImageUrl;
|
|
43
|
+
};
|
|
44
|
+
export declare const Type: {
|
|
45
|
+
readonly Text: "text";
|
|
46
|
+
};
|
|
47
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
48
|
+
/**
|
|
49
|
+
* Text content part of a prompt message
|
|
50
|
+
*/
|
|
51
|
+
export type One = {
|
|
52
|
+
type: Type;
|
|
53
|
+
text: string;
|
|
54
|
+
};
|
|
55
|
+
export type Two = One | Two2;
|
|
56
|
+
/**
|
|
57
|
+
* 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.
|
|
58
|
+
*/
|
|
59
|
+
export type Content = string | Array<One | Two2>;
|
|
60
|
+
export declare const DeploymentGetConfigType: {
|
|
61
|
+
readonly Function: "function";
|
|
62
|
+
};
|
|
63
|
+
export type DeploymentGetConfigType = ClosedEnum<typeof DeploymentGetConfigType>;
|
|
64
|
+
export type FunctionT = {
|
|
65
|
+
name: string;
|
|
66
|
+
/**
|
|
67
|
+
* JSON string arguments for the functions
|
|
68
|
+
*/
|
|
69
|
+
arguments: string;
|
|
70
|
+
};
|
|
71
|
+
export type ToolCalls = {
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
index?: number | undefined;
|
|
74
|
+
type: DeploymentGetConfigType;
|
|
75
|
+
function: FunctionT;
|
|
76
|
+
};
|
|
77
|
+
export type PrefixMessages = {
|
|
78
|
+
/**
|
|
79
|
+
* The role of the prompt message
|
|
80
|
+
*/
|
|
81
|
+
role: Role;
|
|
82
|
+
/**
|
|
83
|
+
* 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.
|
|
84
|
+
*/
|
|
85
|
+
content: string | Array<One | Two2>;
|
|
86
|
+
toolCalls?: Array<ToolCalls> | undefined;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* The role of the prompt message
|
|
90
|
+
*/
|
|
91
|
+
export declare const DeploymentGetConfigRole: {
|
|
92
|
+
readonly System: "system";
|
|
93
|
+
readonly Assistant: "assistant";
|
|
94
|
+
readonly User: "user";
|
|
95
|
+
readonly Exception: "exception";
|
|
96
|
+
readonly Tool: "tool";
|
|
97
|
+
readonly Prompt: "prompt";
|
|
98
|
+
readonly Correction: "correction";
|
|
99
|
+
readonly ExpectedOutput: "expected_output";
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* The role of the prompt message
|
|
103
|
+
*/
|
|
104
|
+
export type DeploymentGetConfigRole = ClosedEnum<typeof DeploymentGetConfigRole>;
|
|
105
|
+
export declare const DeploymentGetConfig2DeploymentsType: {
|
|
106
|
+
readonly ImageUrl: "image_url";
|
|
107
|
+
};
|
|
108
|
+
export type DeploymentGetConfig2DeploymentsType = ClosedEnum<typeof DeploymentGetConfig2DeploymentsType>;
|
|
109
|
+
export type TwoImageUrl = {
|
|
110
|
+
/**
|
|
111
|
+
* Either a URL of the image or the base64 encoded data URI.
|
|
112
|
+
*/
|
|
113
|
+
url: string;
|
|
114
|
+
/**
|
|
115
|
+
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
116
|
+
*/
|
|
117
|
+
detail?: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* The image part of the prompt message. Only supported with vision models.
|
|
121
|
+
*/
|
|
122
|
+
export type DeploymentGetConfig22 = {
|
|
123
|
+
type: DeploymentGetConfig2DeploymentsType;
|
|
124
|
+
imageUrl: TwoImageUrl;
|
|
125
|
+
};
|
|
126
|
+
export declare const DeploymentGetConfig2Type: {
|
|
127
|
+
readonly Text: "text";
|
|
128
|
+
};
|
|
129
|
+
export type DeploymentGetConfig2Type = ClosedEnum<typeof DeploymentGetConfig2Type>;
|
|
130
|
+
/**
|
|
131
|
+
* Text content part of a prompt message
|
|
132
|
+
*/
|
|
133
|
+
export type Two1 = {
|
|
134
|
+
type: DeploymentGetConfig2Type;
|
|
135
|
+
text: string;
|
|
136
|
+
};
|
|
137
|
+
export type Content2 = Two1 | DeploymentGetConfig22;
|
|
138
|
+
/**
|
|
139
|
+
* 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.
|
|
140
|
+
*/
|
|
141
|
+
export type DeploymentGetConfigContent = string | Array<Two1 | DeploymentGetConfig22>;
|
|
142
|
+
export declare const DeploymentGetConfigDeploymentsType: {
|
|
143
|
+
readonly Function: "function";
|
|
144
|
+
};
|
|
145
|
+
export type DeploymentGetConfigDeploymentsType = ClosedEnum<typeof DeploymentGetConfigDeploymentsType>;
|
|
146
|
+
export type DeploymentGetConfigFunction = {
|
|
147
|
+
name: string;
|
|
148
|
+
/**
|
|
149
|
+
* JSON string arguments for the functions
|
|
150
|
+
*/
|
|
151
|
+
arguments: string;
|
|
152
|
+
};
|
|
153
|
+
export type DeploymentGetConfigToolCalls = {
|
|
154
|
+
id?: string | undefined;
|
|
155
|
+
index?: number | undefined;
|
|
156
|
+
type: DeploymentGetConfigDeploymentsType;
|
|
157
|
+
function: DeploymentGetConfigFunction;
|
|
158
|
+
};
|
|
159
|
+
export type Messages = {
|
|
160
|
+
/**
|
|
161
|
+
* The role of the prompt message
|
|
162
|
+
*/
|
|
163
|
+
role: DeploymentGetConfigRole;
|
|
164
|
+
/**
|
|
165
|
+
* 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.
|
|
166
|
+
*/
|
|
167
|
+
content: string | Array<Two1 | DeploymentGetConfig22>;
|
|
168
|
+
toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Metadata about the document
|
|
172
|
+
*/
|
|
173
|
+
export type Metadata = {
|
|
174
|
+
/**
|
|
175
|
+
* Name of the file the text is from.
|
|
176
|
+
*/
|
|
177
|
+
fileName?: string | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* Content type of the file the text is from.
|
|
180
|
+
*/
|
|
181
|
+
fileType?: string | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* The page number the text is from.
|
|
184
|
+
*/
|
|
185
|
+
pageNumber?: number | undefined;
|
|
186
|
+
};
|
|
187
|
+
export type Documents = {
|
|
188
|
+
/**
|
|
189
|
+
* The text content of the document
|
|
190
|
+
*/
|
|
191
|
+
text: string;
|
|
192
|
+
/**
|
|
193
|
+
* Metadata about the document
|
|
194
|
+
*/
|
|
195
|
+
metadata?: Metadata | undefined;
|
|
196
|
+
};
|
|
197
|
+
export type InvokeOptions = {
|
|
198
|
+
/**
|
|
199
|
+
* Whether to include the retrieved knowledge chunks in the response.
|
|
200
|
+
*/
|
|
201
|
+
includeRetrievals?: boolean | undefined;
|
|
202
|
+
};
|
|
203
|
+
export type DeploymentGetConfigRequestBody = {
|
|
204
|
+
/**
|
|
205
|
+
* The deployment key to invoke
|
|
206
|
+
*/
|
|
207
|
+
key: string;
|
|
208
|
+
/**
|
|
209
|
+
* Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
|
|
210
|
+
*/
|
|
211
|
+
inputs?: {
|
|
212
|
+
[k: string]: string | number | boolean;
|
|
213
|
+
} | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* Key-value pairs that match your data model and fields declared in your configuration matrix. If you send multiple prompt keys, the context will be applied to the evaluation of each key.
|
|
216
|
+
*/
|
|
217
|
+
context?: {
|
|
218
|
+
[k: string]: any;
|
|
219
|
+
} | undefined;
|
|
220
|
+
/**
|
|
221
|
+
* A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
|
|
222
|
+
*/
|
|
223
|
+
prefixMessages?: Array<PrefixMessages> | undefined;
|
|
224
|
+
/**
|
|
225
|
+
* A list of messages to send to the deployment.
|
|
226
|
+
*/
|
|
227
|
+
messages?: Array<Messages> | undefined;
|
|
228
|
+
/**
|
|
229
|
+
* A list of file IDs that are associated with the deployment request.
|
|
230
|
+
*/
|
|
231
|
+
fileIds?: Array<string> | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* Key-value pairs that you want to attach to the log generated by this request.
|
|
234
|
+
*/
|
|
235
|
+
metadata?: {
|
|
236
|
+
[k: string]: any;
|
|
237
|
+
} | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
|
|
240
|
+
*/
|
|
241
|
+
extraParams?: {
|
|
242
|
+
[k: string]: any;
|
|
243
|
+
} | undefined;
|
|
244
|
+
/**
|
|
245
|
+
* A list of relevant documents that evaluators and guardrails can cite to evaluate the user input or the model response based on your deployment settings.
|
|
246
|
+
*/
|
|
247
|
+
documents?: Array<Documents> | undefined;
|
|
248
|
+
invokeOptions?: InvokeOptions | undefined;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* The type of the model. Current `chat`,`completion` and `image` are supported
|
|
252
|
+
*/
|
|
253
|
+
export declare const DeploymentGetConfigDeploymentsResponseType: {
|
|
254
|
+
readonly Chat: "chat";
|
|
255
|
+
readonly Completion: "completion";
|
|
256
|
+
readonly Embedding: "embedding";
|
|
257
|
+
readonly Vision: "vision";
|
|
258
|
+
readonly Image: "image";
|
|
259
|
+
readonly Tts: "tts";
|
|
260
|
+
readonly Stt: "stt";
|
|
261
|
+
readonly Rerank: "rerank";
|
|
262
|
+
readonly Moderations: "moderations";
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* The type of the model. Current `chat`,`completion` and `image` are supported
|
|
266
|
+
*/
|
|
267
|
+
export type DeploymentGetConfigDeploymentsResponseType = ClosedEnum<typeof DeploymentGetConfigDeploymentsResponseType>;
|
|
268
|
+
/**
|
|
269
|
+
* The role of the prompt message
|
|
270
|
+
*/
|
|
271
|
+
export declare const DeploymentGetConfigDeploymentsRole: {
|
|
272
|
+
readonly System: "system";
|
|
273
|
+
readonly Assistant: "assistant";
|
|
274
|
+
readonly User: "user";
|
|
275
|
+
readonly Exception: "exception";
|
|
276
|
+
readonly Tool: "tool";
|
|
277
|
+
readonly Prompt: "prompt";
|
|
278
|
+
readonly Correction: "correction";
|
|
279
|
+
readonly ExpectedOutput: "expected_output";
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* The role of the prompt message
|
|
283
|
+
*/
|
|
284
|
+
export type DeploymentGetConfigDeploymentsRole = ClosedEnum<typeof DeploymentGetConfigDeploymentsRole>;
|
|
285
|
+
export declare const DeploymentGetConfig2DeploymentsResponse200Type: {
|
|
286
|
+
readonly ImageUrl: "image_url";
|
|
287
|
+
};
|
|
288
|
+
export type DeploymentGetConfig2DeploymentsResponse200Type = ClosedEnum<typeof DeploymentGetConfig2DeploymentsResponse200Type>;
|
|
289
|
+
export type DeploymentGetConfig2ImageUrl = {
|
|
290
|
+
/**
|
|
291
|
+
* The orq.ai id of the image
|
|
292
|
+
*/
|
|
293
|
+
id?: string | undefined;
|
|
294
|
+
/**
|
|
295
|
+
* Either a URL of the image or the base64 encoded data URI.
|
|
296
|
+
*/
|
|
297
|
+
url: string;
|
|
298
|
+
/**
|
|
299
|
+
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
300
|
+
*/
|
|
301
|
+
detail?: string | undefined;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* The image part of the prompt message. Only supported with vision models.
|
|
305
|
+
*/
|
|
306
|
+
export type DeploymentGetConfig2Deployments2 = {
|
|
307
|
+
type: DeploymentGetConfig2DeploymentsResponse200Type;
|
|
308
|
+
imageUrl: DeploymentGetConfig2ImageUrl;
|
|
309
|
+
};
|
|
310
|
+
export declare const DeploymentGetConfig2DeploymentsResponseType: {
|
|
311
|
+
readonly Text: "text";
|
|
312
|
+
};
|
|
313
|
+
export type DeploymentGetConfig2DeploymentsResponseType = ClosedEnum<typeof DeploymentGetConfig2DeploymentsResponseType>;
|
|
314
|
+
/**
|
|
315
|
+
* Text content part of a prompt message
|
|
316
|
+
*/
|
|
317
|
+
export type DeploymentGetConfig21 = {
|
|
318
|
+
type: DeploymentGetConfig2DeploymentsResponseType;
|
|
319
|
+
text: string;
|
|
320
|
+
};
|
|
321
|
+
export type DeploymentGetConfigContent2 = DeploymentGetConfig21 | DeploymentGetConfig2Deployments2;
|
|
322
|
+
/**
|
|
323
|
+
* 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.
|
|
324
|
+
*/
|
|
325
|
+
export type DeploymentGetConfigDeploymentsContent = string | Array<DeploymentGetConfig21 | DeploymentGetConfig2Deployments2>;
|
|
326
|
+
export declare const DeploymentGetConfigDeploymentsResponse200ApplicationJSONType: {
|
|
327
|
+
readonly Function: "function";
|
|
328
|
+
};
|
|
329
|
+
export type DeploymentGetConfigDeploymentsResponse200ApplicationJSONType = ClosedEnum<typeof DeploymentGetConfigDeploymentsResponse200ApplicationJSONType>;
|
|
330
|
+
export type DeploymentGetConfigDeploymentsResponseFunction = {
|
|
331
|
+
name: string;
|
|
332
|
+
/**
|
|
333
|
+
* JSON string arguments for the functions
|
|
334
|
+
*/
|
|
335
|
+
arguments: string;
|
|
336
|
+
};
|
|
337
|
+
export type DeploymentGetConfigDeploymentsToolCalls = {
|
|
338
|
+
id?: string | undefined;
|
|
339
|
+
index?: number | undefined;
|
|
340
|
+
type: DeploymentGetConfigDeploymentsResponse200ApplicationJSONType;
|
|
341
|
+
function: DeploymentGetConfigDeploymentsResponseFunction;
|
|
342
|
+
};
|
|
343
|
+
export type DeploymentGetConfigMessages = {
|
|
344
|
+
/**
|
|
345
|
+
* The role of the prompt message
|
|
346
|
+
*/
|
|
347
|
+
role: DeploymentGetConfigDeploymentsRole;
|
|
348
|
+
/**
|
|
349
|
+
* 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.
|
|
350
|
+
*/
|
|
351
|
+
content: string | Array<DeploymentGetConfig21 | DeploymentGetConfig2Deployments2>;
|
|
352
|
+
toolCalls?: Array<DeploymentGetConfigDeploymentsToolCalls> | undefined;
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* Only supported on `image` models.
|
|
356
|
+
*/
|
|
357
|
+
export declare const DeploymentGetConfigFormat: {
|
|
358
|
+
readonly Url: "url";
|
|
359
|
+
readonly B64Json: "b64_json";
|
|
360
|
+
readonly Text: "text";
|
|
361
|
+
readonly JsonObject: "json_object";
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* Only supported on `image` models.
|
|
365
|
+
*/
|
|
366
|
+
export type DeploymentGetConfigFormat = ClosedEnum<typeof DeploymentGetConfigFormat>;
|
|
367
|
+
/**
|
|
368
|
+
* Only supported on `image` models.
|
|
369
|
+
*/
|
|
370
|
+
export declare const DeploymentGetConfigQuality: {
|
|
371
|
+
readonly Standard: "standard";
|
|
372
|
+
readonly Hd: "hd";
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* Only supported on `image` models.
|
|
376
|
+
*/
|
|
377
|
+
export type DeploymentGetConfigQuality = ClosedEnum<typeof DeploymentGetConfigQuality>;
|
|
378
|
+
export declare const DeploymentGetConfigResponseFormatType: {
|
|
379
|
+
readonly JsonObject: "json_object";
|
|
380
|
+
};
|
|
381
|
+
export type DeploymentGetConfigResponseFormatType = ClosedEnum<typeof DeploymentGetConfigResponseFormatType>;
|
|
382
|
+
export type DeploymentGetConfigResponseFormat2 = {
|
|
383
|
+
type: DeploymentGetConfigResponseFormatType;
|
|
384
|
+
};
|
|
385
|
+
export declare const DeploymentGetConfigResponseFormatDeploymentsType: {
|
|
386
|
+
readonly JsonSchema: "json_schema";
|
|
387
|
+
};
|
|
388
|
+
export type DeploymentGetConfigResponseFormatDeploymentsType = ClosedEnum<typeof DeploymentGetConfigResponseFormatDeploymentsType>;
|
|
389
|
+
export type DeploymentGetConfigResponseFormatJsonSchema = {
|
|
390
|
+
name: string;
|
|
391
|
+
strict: boolean;
|
|
392
|
+
schema: {
|
|
393
|
+
[k: string]: any;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
export type DeploymentGetConfigResponseFormat1 = {
|
|
397
|
+
type: DeploymentGetConfigResponseFormatDeploymentsType;
|
|
398
|
+
jsonSchema: DeploymentGetConfigResponseFormatJsonSchema;
|
|
399
|
+
};
|
|
400
|
+
/**
|
|
401
|
+
* An object specifying the format that the model must output.
|
|
402
|
+
*
|
|
403
|
+
* @remarks
|
|
404
|
+
*
|
|
405
|
+
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
406
|
+
*
|
|
407
|
+
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
408
|
+
*
|
|
409
|
+
* 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.
|
|
410
|
+
*/
|
|
411
|
+
export type DeploymentGetConfigResponseFormat = DeploymentGetConfigResponseFormat2 | DeploymentGetConfigResponseFormat1;
|
|
412
|
+
/**
|
|
413
|
+
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
414
|
+
*/
|
|
415
|
+
export declare const DeploymentGetConfigPhotoRealVersion: {
|
|
416
|
+
readonly V1: "v1";
|
|
417
|
+
readonly V2: "v2";
|
|
418
|
+
};
|
|
419
|
+
/**
|
|
420
|
+
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
421
|
+
*/
|
|
422
|
+
export type DeploymentGetConfigPhotoRealVersion = ClosedEnum<typeof DeploymentGetConfigPhotoRealVersion>;
|
|
423
|
+
/**
|
|
424
|
+
* The format to return the embeddings
|
|
425
|
+
*/
|
|
426
|
+
export declare const DeploymentGetConfigEncodingFormat: {
|
|
427
|
+
readonly Float: "float";
|
|
428
|
+
readonly Base64: "base64";
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* The format to return the embeddings
|
|
432
|
+
*/
|
|
433
|
+
export type DeploymentGetConfigEncodingFormat = ClosedEnum<typeof DeploymentGetConfigEncodingFormat>;
|
|
434
|
+
/**
|
|
435
|
+
* Model Parameters: Not all parameters apply to every model
|
|
436
|
+
*/
|
|
437
|
+
export type ParametersT = {
|
|
438
|
+
/**
|
|
439
|
+
* Only supported on `chat` and `completion` models.
|
|
440
|
+
*/
|
|
441
|
+
temperature?: number | undefined;
|
|
442
|
+
/**
|
|
443
|
+
* Only supported on `chat` and `completion` models.
|
|
444
|
+
*/
|
|
445
|
+
maxTokens?: number | undefined;
|
|
446
|
+
/**
|
|
447
|
+
* Only supported on `chat` and `completion` models.
|
|
448
|
+
*/
|
|
449
|
+
topK?: number | undefined;
|
|
450
|
+
/**
|
|
451
|
+
* Only supported on `chat` and `completion` models.
|
|
452
|
+
*/
|
|
453
|
+
topP?: number | undefined;
|
|
454
|
+
/**
|
|
455
|
+
* Only supported on `chat` and `completion` models.
|
|
456
|
+
*/
|
|
457
|
+
frequencyPenalty?: number | undefined;
|
|
458
|
+
/**
|
|
459
|
+
* Only supported on `chat` and `completion` models.
|
|
460
|
+
*/
|
|
461
|
+
presencePenalty?: number | undefined;
|
|
462
|
+
/**
|
|
463
|
+
* Only supported on `image` models.
|
|
464
|
+
*/
|
|
465
|
+
numImages?: number | undefined;
|
|
466
|
+
/**
|
|
467
|
+
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
468
|
+
*/
|
|
469
|
+
seed?: number | undefined;
|
|
470
|
+
/**
|
|
471
|
+
* Only supported on `image` models.
|
|
472
|
+
*/
|
|
473
|
+
format?: DeploymentGetConfigFormat | undefined;
|
|
474
|
+
/**
|
|
475
|
+
* Only supported on `image` models.
|
|
476
|
+
*/
|
|
477
|
+
dimensions?: string | undefined;
|
|
478
|
+
/**
|
|
479
|
+
* Only supported on `image` models.
|
|
480
|
+
*/
|
|
481
|
+
quality?: DeploymentGetConfigQuality | undefined;
|
|
482
|
+
/**
|
|
483
|
+
* Only supported on `image` models.
|
|
484
|
+
*/
|
|
485
|
+
style?: string | undefined;
|
|
486
|
+
/**
|
|
487
|
+
* An object specifying the format that the model must output.
|
|
488
|
+
*
|
|
489
|
+
* @remarks
|
|
490
|
+
*
|
|
491
|
+
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
492
|
+
*
|
|
493
|
+
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
494
|
+
*
|
|
495
|
+
* 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.
|
|
496
|
+
*/
|
|
497
|
+
responseFormat?: DeploymentGetConfigResponseFormat2 | DeploymentGetConfigResponseFormat1 | null | undefined;
|
|
498
|
+
/**
|
|
499
|
+
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
500
|
+
*/
|
|
501
|
+
photoRealVersion?: DeploymentGetConfigPhotoRealVersion | undefined;
|
|
502
|
+
/**
|
|
503
|
+
* The format to return the embeddings
|
|
504
|
+
*/
|
|
505
|
+
encodingFormat?: DeploymentGetConfigEncodingFormat | undefined;
|
|
506
|
+
};
|
|
507
|
+
/**
|
|
508
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
509
|
+
*/
|
|
510
|
+
export declare const DeploymentGetConfigDeploymentsResponse200Type: {
|
|
511
|
+
readonly Function: "function";
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
515
|
+
*/
|
|
516
|
+
export type DeploymentGetConfigDeploymentsResponse200Type = ClosedEnum<typeof DeploymentGetConfigDeploymentsResponse200Type>;
|
|
517
|
+
export type DeploymentGetConfigDeploymentsFunction = {
|
|
518
|
+
/**
|
|
519
|
+
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
520
|
+
*/
|
|
521
|
+
name: string;
|
|
522
|
+
/**
|
|
523
|
+
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
524
|
+
*/
|
|
525
|
+
description?: string | undefined;
|
|
526
|
+
/**
|
|
527
|
+
* The parameters the functions accepts, described as a JSON Schema object.
|
|
528
|
+
*
|
|
529
|
+
* @remarks
|
|
530
|
+
*
|
|
531
|
+
* Omitting `parameters` defines a function with an empty parameter list.
|
|
532
|
+
*/
|
|
533
|
+
parameters?: {
|
|
534
|
+
[k: string]: any;
|
|
535
|
+
} | undefined;
|
|
536
|
+
};
|
|
537
|
+
export type Tools = {
|
|
538
|
+
/**
|
|
539
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
540
|
+
*/
|
|
541
|
+
type: DeploymentGetConfigDeploymentsResponse200Type;
|
|
542
|
+
function: DeploymentGetConfigDeploymentsFunction;
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* The deployment configuration
|
|
546
|
+
*/
|
|
547
|
+
export type DeploymentGetConfigResponseBody = {
|
|
548
|
+
/**
|
|
549
|
+
* A unique identifier for the response. Can be used to add metrics to the transaction.
|
|
550
|
+
*/
|
|
551
|
+
id: string;
|
|
552
|
+
/**
|
|
553
|
+
* The provider of the model
|
|
554
|
+
*/
|
|
555
|
+
provider: string;
|
|
556
|
+
/**
|
|
557
|
+
* The model of the configuration
|
|
558
|
+
*/
|
|
559
|
+
model: string;
|
|
560
|
+
/**
|
|
561
|
+
* The type of the model. Current `chat`,`completion` and `image` are supported
|
|
562
|
+
*/
|
|
563
|
+
type?: DeploymentGetConfigDeploymentsResponseType | undefined;
|
|
564
|
+
/**
|
|
565
|
+
* The current version of the deployment
|
|
566
|
+
*/
|
|
567
|
+
version: string;
|
|
568
|
+
messages: Array<DeploymentGetConfigMessages>;
|
|
569
|
+
/**
|
|
570
|
+
* Model Parameters: Not all parameters apply to every model
|
|
571
|
+
*/
|
|
572
|
+
parameters: ParametersT;
|
|
573
|
+
/**
|
|
574
|
+
* A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
|
|
575
|
+
*/
|
|
576
|
+
tools?: Array<Tools> | undefined;
|
|
577
|
+
};
|
|
578
|
+
/** @internal */
|
|
579
|
+
export declare const Inputs$inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown>;
|
|
580
|
+
/** @internal */
|
|
581
|
+
export type Inputs$Outbound = string | number | boolean;
|
|
582
|
+
/** @internal */
|
|
583
|
+
export declare const Inputs$outboundSchema: z.ZodType<Inputs$Outbound, z.ZodTypeDef, Inputs>;
|
|
584
|
+
/**
|
|
585
|
+
* @internal
|
|
586
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
587
|
+
*/
|
|
588
|
+
export declare namespace Inputs$ {
|
|
589
|
+
/** @deprecated use `Inputs$inboundSchema` instead. */
|
|
590
|
+
const inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown>;
|
|
591
|
+
/** @deprecated use `Inputs$outboundSchema` instead. */
|
|
592
|
+
const outboundSchema: z.ZodType<Inputs$Outbound, z.ZodTypeDef, Inputs>;
|
|
593
|
+
/** @deprecated use `Inputs$Outbound` instead. */
|
|
594
|
+
type Outbound = Inputs$Outbound;
|
|
595
|
+
}
|
|
596
|
+
export declare function inputsToJSON(inputs: Inputs): string;
|
|
597
|
+
export declare function inputsFromJSON(jsonString: string): SafeParseResult<Inputs, SDKValidationError>;
|
|
598
|
+
/** @internal */
|
|
599
|
+
export declare const Role$inboundSchema: z.ZodNativeEnum<typeof Role>;
|
|
600
|
+
/** @internal */
|
|
601
|
+
export declare const Role$outboundSchema: z.ZodNativeEnum<typeof Role>;
|
|
602
|
+
/**
|
|
603
|
+
* @internal
|
|
604
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
605
|
+
*/
|
|
606
|
+
export declare namespace Role$ {
|
|
607
|
+
/** @deprecated use `Role$inboundSchema` instead. */
|
|
608
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
609
|
+
readonly System: "system";
|
|
610
|
+
readonly Assistant: "assistant";
|
|
611
|
+
readonly User: "user";
|
|
612
|
+
readonly Exception: "exception";
|
|
613
|
+
readonly Tool: "tool";
|
|
614
|
+
readonly Prompt: "prompt";
|
|
615
|
+
readonly Correction: "correction";
|
|
616
|
+
readonly ExpectedOutput: "expected_output";
|
|
617
|
+
}>;
|
|
618
|
+
/** @deprecated use `Role$outboundSchema` instead. */
|
|
619
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
620
|
+
readonly System: "system";
|
|
621
|
+
readonly Assistant: "assistant";
|
|
622
|
+
readonly User: "user";
|
|
623
|
+
readonly Exception: "exception";
|
|
624
|
+
readonly Tool: "tool";
|
|
625
|
+
readonly Prompt: "prompt";
|
|
626
|
+
readonly Correction: "correction";
|
|
627
|
+
readonly ExpectedOutput: "expected_output";
|
|
628
|
+
}>;
|
|
629
|
+
}
|
|
630
|
+
/** @internal */
|
|
631
|
+
export declare const TwoType$inboundSchema: z.ZodNativeEnum<typeof TwoType>;
|
|
632
|
+
/** @internal */
|
|
633
|
+
export declare const TwoType$outboundSchema: z.ZodNativeEnum<typeof TwoType>;
|
|
634
|
+
/**
|
|
635
|
+
* @internal
|
|
636
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
637
|
+
*/
|
|
638
|
+
export declare namespace TwoType$ {
|
|
639
|
+
/** @deprecated use `TwoType$inboundSchema` instead. */
|
|
640
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
641
|
+
readonly ImageUrl: "image_url";
|
|
642
|
+
}>;
|
|
643
|
+
/** @deprecated use `TwoType$outboundSchema` instead. */
|
|
644
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
645
|
+
readonly ImageUrl: "image_url";
|
|
646
|
+
}>;
|
|
647
|
+
}
|
|
648
|
+
/** @internal */
|
|
649
|
+
export declare const ImageUrl$inboundSchema: z.ZodType<ImageUrl, z.ZodTypeDef, unknown>;
|
|
650
|
+
/** @internal */
|
|
651
|
+
export type ImageUrl$Outbound = {
|
|
652
|
+
url: string;
|
|
653
|
+
detail?: string | undefined;
|
|
654
|
+
};
|
|
655
|
+
/** @internal */
|
|
656
|
+
export declare const ImageUrl$outboundSchema: z.ZodType<ImageUrl$Outbound, z.ZodTypeDef, ImageUrl>;
|
|
657
|
+
/**
|
|
658
|
+
* @internal
|
|
659
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
660
|
+
*/
|
|
661
|
+
export declare namespace ImageUrl$ {
|
|
662
|
+
/** @deprecated use `ImageUrl$inboundSchema` instead. */
|
|
663
|
+
const inboundSchema: z.ZodType<ImageUrl, z.ZodTypeDef, unknown>;
|
|
664
|
+
/** @deprecated use `ImageUrl$outboundSchema` instead. */
|
|
665
|
+
const outboundSchema: z.ZodType<ImageUrl$Outbound, z.ZodTypeDef, ImageUrl>;
|
|
666
|
+
/** @deprecated use `ImageUrl$Outbound` instead. */
|
|
667
|
+
type Outbound = ImageUrl$Outbound;
|
|
668
|
+
}
|
|
669
|
+
export declare function imageUrlToJSON(imageUrl: ImageUrl): string;
|
|
670
|
+
export declare function imageUrlFromJSON(jsonString: string): SafeParseResult<ImageUrl, SDKValidationError>;
|
|
671
|
+
/** @internal */
|
|
672
|
+
export declare const Two2$inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown>;
|
|
673
|
+
/** @internal */
|
|
674
|
+
export type Two2$Outbound = {
|
|
675
|
+
type: string;
|
|
676
|
+
image_url: ImageUrl$Outbound;
|
|
677
|
+
};
|
|
678
|
+
/** @internal */
|
|
679
|
+
export declare const Two2$outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2>;
|
|
680
|
+
/**
|
|
681
|
+
* @internal
|
|
682
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
683
|
+
*/
|
|
684
|
+
export declare namespace Two2$ {
|
|
685
|
+
/** @deprecated use `Two2$inboundSchema` instead. */
|
|
686
|
+
const inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown>;
|
|
687
|
+
/** @deprecated use `Two2$outboundSchema` instead. */
|
|
688
|
+
const outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2>;
|
|
689
|
+
/** @deprecated use `Two2$Outbound` instead. */
|
|
690
|
+
type Outbound = Two2$Outbound;
|
|
691
|
+
}
|
|
692
|
+
export declare function two2ToJSON(two2: Two2): string;
|
|
693
|
+
export declare function two2FromJSON(jsonString: string): SafeParseResult<Two2, SDKValidationError>;
|
|
694
|
+
/** @internal */
|
|
695
|
+
export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
|
|
696
|
+
/** @internal */
|
|
697
|
+
export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
|
|
698
|
+
/**
|
|
699
|
+
* @internal
|
|
700
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
701
|
+
*/
|
|
702
|
+
export declare namespace Type$ {
|
|
703
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
704
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
705
|
+
readonly Text: "text";
|
|
706
|
+
}>;
|
|
707
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
708
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
709
|
+
readonly Text: "text";
|
|
710
|
+
}>;
|
|
711
|
+
}
|
|
712
|
+
/** @internal */
|
|
713
|
+
export declare const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
|
|
714
|
+
/** @internal */
|
|
715
|
+
export type One$Outbound = {
|
|
716
|
+
type: string;
|
|
717
|
+
text: string;
|
|
718
|
+
};
|
|
719
|
+
/** @internal */
|
|
720
|
+
export declare const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
|
|
721
|
+
/**
|
|
722
|
+
* @internal
|
|
723
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
724
|
+
*/
|
|
725
|
+
export declare namespace One$ {
|
|
726
|
+
/** @deprecated use `One$inboundSchema` instead. */
|
|
727
|
+
const inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown>;
|
|
728
|
+
/** @deprecated use `One$outboundSchema` instead. */
|
|
729
|
+
const outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One>;
|
|
730
|
+
/** @deprecated use `One$Outbound` instead. */
|
|
731
|
+
type Outbound = One$Outbound;
|
|
732
|
+
}
|
|
733
|
+
export declare function oneToJSON(one: One): string;
|
|
734
|
+
export declare function oneFromJSON(jsonString: string): SafeParseResult<One, SDKValidationError>;
|
|
735
|
+
/** @internal */
|
|
736
|
+
export declare const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
|
|
737
|
+
/** @internal */
|
|
738
|
+
export type Two$Outbound = One$Outbound | Two2$Outbound;
|
|
739
|
+
/** @internal */
|
|
740
|
+
export declare const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
|
|
741
|
+
/**
|
|
742
|
+
* @internal
|
|
743
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
744
|
+
*/
|
|
745
|
+
export declare namespace Two$ {
|
|
746
|
+
/** @deprecated use `Two$inboundSchema` instead. */
|
|
747
|
+
const inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown>;
|
|
748
|
+
/** @deprecated use `Two$outboundSchema` instead. */
|
|
749
|
+
const outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two>;
|
|
750
|
+
/** @deprecated use `Two$Outbound` instead. */
|
|
751
|
+
type Outbound = Two$Outbound;
|
|
752
|
+
}
|
|
753
|
+
export declare function twoToJSON(two: Two): string;
|
|
754
|
+
export declare function twoFromJSON(jsonString: string): SafeParseResult<Two, SDKValidationError>;
|
|
755
|
+
/** @internal */
|
|
756
|
+
export declare const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown>;
|
|
757
|
+
/** @internal */
|
|
758
|
+
export type Content$Outbound = string | Array<One$Outbound | Two2$Outbound>;
|
|
759
|
+
/** @internal */
|
|
760
|
+
export declare const Content$outboundSchema: z.ZodType<Content$Outbound, z.ZodTypeDef, Content>;
|
|
761
|
+
/**
|
|
762
|
+
* @internal
|
|
763
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
764
|
+
*/
|
|
765
|
+
export declare namespace Content$ {
|
|
766
|
+
/** @deprecated use `Content$inboundSchema` instead. */
|
|
767
|
+
const inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown>;
|
|
768
|
+
/** @deprecated use `Content$outboundSchema` instead. */
|
|
769
|
+
const outboundSchema: z.ZodType<Content$Outbound, z.ZodTypeDef, Content>;
|
|
770
|
+
/** @deprecated use `Content$Outbound` instead. */
|
|
771
|
+
type Outbound = Content$Outbound;
|
|
772
|
+
}
|
|
773
|
+
export declare function contentToJSON(content: Content): string;
|
|
774
|
+
export declare function contentFromJSON(jsonString: string): SafeParseResult<Content, SDKValidationError>;
|
|
775
|
+
/** @internal */
|
|
776
|
+
export declare const DeploymentGetConfigType$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigType>;
|
|
777
|
+
/** @internal */
|
|
778
|
+
export declare const DeploymentGetConfigType$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigType>;
|
|
779
|
+
/**
|
|
780
|
+
* @internal
|
|
781
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
782
|
+
*/
|
|
783
|
+
export declare namespace DeploymentGetConfigType$ {
|
|
784
|
+
/** @deprecated use `DeploymentGetConfigType$inboundSchema` instead. */
|
|
785
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
786
|
+
readonly Function: "function";
|
|
787
|
+
}>;
|
|
788
|
+
/** @deprecated use `DeploymentGetConfigType$outboundSchema` instead. */
|
|
789
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
790
|
+
readonly Function: "function";
|
|
791
|
+
}>;
|
|
792
|
+
}
|
|
793
|
+
/** @internal */
|
|
794
|
+
export declare const FunctionT$inboundSchema: z.ZodType<FunctionT, z.ZodTypeDef, unknown>;
|
|
795
|
+
/** @internal */
|
|
796
|
+
export type FunctionT$Outbound = {
|
|
797
|
+
name: string;
|
|
798
|
+
arguments: string;
|
|
799
|
+
};
|
|
800
|
+
/** @internal */
|
|
801
|
+
export declare const FunctionT$outboundSchema: z.ZodType<FunctionT$Outbound, z.ZodTypeDef, FunctionT>;
|
|
802
|
+
/**
|
|
803
|
+
* @internal
|
|
804
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
805
|
+
*/
|
|
806
|
+
export declare namespace FunctionT$ {
|
|
807
|
+
/** @deprecated use `FunctionT$inboundSchema` instead. */
|
|
808
|
+
const inboundSchema: z.ZodType<FunctionT, z.ZodTypeDef, unknown>;
|
|
809
|
+
/** @deprecated use `FunctionT$outboundSchema` instead. */
|
|
810
|
+
const outboundSchema: z.ZodType<FunctionT$Outbound, z.ZodTypeDef, FunctionT>;
|
|
811
|
+
/** @deprecated use `FunctionT$Outbound` instead. */
|
|
812
|
+
type Outbound = FunctionT$Outbound;
|
|
813
|
+
}
|
|
814
|
+
export declare function functionToJSON(functionT: FunctionT): string;
|
|
815
|
+
export declare function functionFromJSON(jsonString: string): SafeParseResult<FunctionT, SDKValidationError>;
|
|
816
|
+
/** @internal */
|
|
817
|
+
export declare const ToolCalls$inboundSchema: z.ZodType<ToolCalls, z.ZodTypeDef, unknown>;
|
|
818
|
+
/** @internal */
|
|
819
|
+
export type ToolCalls$Outbound = {
|
|
820
|
+
id?: string | undefined;
|
|
821
|
+
index?: number | undefined;
|
|
822
|
+
type: string;
|
|
823
|
+
function: FunctionT$Outbound;
|
|
824
|
+
};
|
|
825
|
+
/** @internal */
|
|
826
|
+
export declare const ToolCalls$outboundSchema: z.ZodType<ToolCalls$Outbound, z.ZodTypeDef, ToolCalls>;
|
|
827
|
+
/**
|
|
828
|
+
* @internal
|
|
829
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
830
|
+
*/
|
|
831
|
+
export declare namespace ToolCalls$ {
|
|
832
|
+
/** @deprecated use `ToolCalls$inboundSchema` instead. */
|
|
833
|
+
const inboundSchema: z.ZodType<ToolCalls, z.ZodTypeDef, unknown>;
|
|
834
|
+
/** @deprecated use `ToolCalls$outboundSchema` instead. */
|
|
835
|
+
const outboundSchema: z.ZodType<ToolCalls$Outbound, z.ZodTypeDef, ToolCalls>;
|
|
836
|
+
/** @deprecated use `ToolCalls$Outbound` instead. */
|
|
837
|
+
type Outbound = ToolCalls$Outbound;
|
|
838
|
+
}
|
|
839
|
+
export declare function toolCallsToJSON(toolCalls: ToolCalls): string;
|
|
840
|
+
export declare function toolCallsFromJSON(jsonString: string): SafeParseResult<ToolCalls, SDKValidationError>;
|
|
841
|
+
/** @internal */
|
|
842
|
+
export declare const PrefixMessages$inboundSchema: z.ZodType<PrefixMessages, z.ZodTypeDef, unknown>;
|
|
843
|
+
/** @internal */
|
|
844
|
+
export type PrefixMessages$Outbound = {
|
|
845
|
+
role: string;
|
|
846
|
+
content: string | Array<One$Outbound | Two2$Outbound>;
|
|
847
|
+
tool_calls?: Array<ToolCalls$Outbound> | undefined;
|
|
848
|
+
};
|
|
849
|
+
/** @internal */
|
|
850
|
+
export declare const PrefixMessages$outboundSchema: z.ZodType<PrefixMessages$Outbound, z.ZodTypeDef, PrefixMessages>;
|
|
851
|
+
/**
|
|
852
|
+
* @internal
|
|
853
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
854
|
+
*/
|
|
855
|
+
export declare namespace PrefixMessages$ {
|
|
856
|
+
/** @deprecated use `PrefixMessages$inboundSchema` instead. */
|
|
857
|
+
const inboundSchema: z.ZodType<PrefixMessages, z.ZodTypeDef, unknown>;
|
|
858
|
+
/** @deprecated use `PrefixMessages$outboundSchema` instead. */
|
|
859
|
+
const outboundSchema: z.ZodType<PrefixMessages$Outbound, z.ZodTypeDef, PrefixMessages>;
|
|
860
|
+
/** @deprecated use `PrefixMessages$Outbound` instead. */
|
|
861
|
+
type Outbound = PrefixMessages$Outbound;
|
|
862
|
+
}
|
|
863
|
+
export declare function prefixMessagesToJSON(prefixMessages: PrefixMessages): string;
|
|
864
|
+
export declare function prefixMessagesFromJSON(jsonString: string): SafeParseResult<PrefixMessages, SDKValidationError>;
|
|
865
|
+
/** @internal */
|
|
866
|
+
export declare const DeploymentGetConfigRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigRole>;
|
|
867
|
+
/** @internal */
|
|
868
|
+
export declare const DeploymentGetConfigRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigRole>;
|
|
869
|
+
/**
|
|
870
|
+
* @internal
|
|
871
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
872
|
+
*/
|
|
873
|
+
export declare namespace DeploymentGetConfigRole$ {
|
|
874
|
+
/** @deprecated use `DeploymentGetConfigRole$inboundSchema` instead. */
|
|
875
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
876
|
+
readonly System: "system";
|
|
877
|
+
readonly Assistant: "assistant";
|
|
878
|
+
readonly User: "user";
|
|
879
|
+
readonly Exception: "exception";
|
|
880
|
+
readonly Tool: "tool";
|
|
881
|
+
readonly Prompt: "prompt";
|
|
882
|
+
readonly Correction: "correction";
|
|
883
|
+
readonly ExpectedOutput: "expected_output";
|
|
884
|
+
}>;
|
|
885
|
+
/** @deprecated use `DeploymentGetConfigRole$outboundSchema` instead. */
|
|
886
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
887
|
+
readonly System: "system";
|
|
888
|
+
readonly Assistant: "assistant";
|
|
889
|
+
readonly User: "user";
|
|
890
|
+
readonly Exception: "exception";
|
|
891
|
+
readonly Tool: "tool";
|
|
892
|
+
readonly Prompt: "prompt";
|
|
893
|
+
readonly Correction: "correction";
|
|
894
|
+
readonly ExpectedOutput: "expected_output";
|
|
895
|
+
}>;
|
|
896
|
+
}
|
|
897
|
+
/** @internal */
|
|
898
|
+
export declare const DeploymentGetConfig2DeploymentsType$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType>;
|
|
899
|
+
/** @internal */
|
|
900
|
+
export declare const DeploymentGetConfig2DeploymentsType$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType>;
|
|
901
|
+
/**
|
|
902
|
+
* @internal
|
|
903
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
904
|
+
*/
|
|
905
|
+
export declare namespace DeploymentGetConfig2DeploymentsType$ {
|
|
906
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsType$inboundSchema` instead. */
|
|
907
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
908
|
+
readonly ImageUrl: "image_url";
|
|
909
|
+
}>;
|
|
910
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsType$outboundSchema` instead. */
|
|
911
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
912
|
+
readonly ImageUrl: "image_url";
|
|
913
|
+
}>;
|
|
914
|
+
}
|
|
915
|
+
/** @internal */
|
|
916
|
+
export declare const TwoImageUrl$inboundSchema: z.ZodType<TwoImageUrl, z.ZodTypeDef, unknown>;
|
|
917
|
+
/** @internal */
|
|
918
|
+
export type TwoImageUrl$Outbound = {
|
|
919
|
+
url: string;
|
|
920
|
+
detail?: string | undefined;
|
|
921
|
+
};
|
|
922
|
+
/** @internal */
|
|
923
|
+
export declare const TwoImageUrl$outboundSchema: z.ZodType<TwoImageUrl$Outbound, z.ZodTypeDef, TwoImageUrl>;
|
|
924
|
+
/**
|
|
925
|
+
* @internal
|
|
926
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
927
|
+
*/
|
|
928
|
+
export declare namespace TwoImageUrl$ {
|
|
929
|
+
/** @deprecated use `TwoImageUrl$inboundSchema` instead. */
|
|
930
|
+
const inboundSchema: z.ZodType<TwoImageUrl, z.ZodTypeDef, unknown>;
|
|
931
|
+
/** @deprecated use `TwoImageUrl$outboundSchema` instead. */
|
|
932
|
+
const outboundSchema: z.ZodType<TwoImageUrl$Outbound, z.ZodTypeDef, TwoImageUrl>;
|
|
933
|
+
/** @deprecated use `TwoImageUrl$Outbound` instead. */
|
|
934
|
+
type Outbound = TwoImageUrl$Outbound;
|
|
935
|
+
}
|
|
936
|
+
export declare function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string;
|
|
937
|
+
export declare function twoImageUrlFromJSON(jsonString: string): SafeParseResult<TwoImageUrl, SDKValidationError>;
|
|
938
|
+
/** @internal */
|
|
939
|
+
export declare const DeploymentGetConfig22$inboundSchema: z.ZodType<DeploymentGetConfig22, z.ZodTypeDef, unknown>;
|
|
940
|
+
/** @internal */
|
|
941
|
+
export type DeploymentGetConfig22$Outbound = {
|
|
942
|
+
type: string;
|
|
943
|
+
image_url: TwoImageUrl$Outbound;
|
|
944
|
+
};
|
|
945
|
+
/** @internal */
|
|
946
|
+
export declare const DeploymentGetConfig22$outboundSchema: z.ZodType<DeploymentGetConfig22$Outbound, z.ZodTypeDef, DeploymentGetConfig22>;
|
|
947
|
+
/**
|
|
948
|
+
* @internal
|
|
949
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
950
|
+
*/
|
|
951
|
+
export declare namespace DeploymentGetConfig22$ {
|
|
952
|
+
/** @deprecated use `DeploymentGetConfig22$inboundSchema` instead. */
|
|
953
|
+
const inboundSchema: z.ZodType<DeploymentGetConfig22, z.ZodTypeDef, unknown>;
|
|
954
|
+
/** @deprecated use `DeploymentGetConfig22$outboundSchema` instead. */
|
|
955
|
+
const outboundSchema: z.ZodType<DeploymentGetConfig22$Outbound, z.ZodTypeDef, DeploymentGetConfig22>;
|
|
956
|
+
/** @deprecated use `DeploymentGetConfig22$Outbound` instead. */
|
|
957
|
+
type Outbound = DeploymentGetConfig22$Outbound;
|
|
958
|
+
}
|
|
959
|
+
export declare function deploymentGetConfig22ToJSON(deploymentGetConfig22: DeploymentGetConfig22): string;
|
|
960
|
+
export declare function deploymentGetConfig22FromJSON(jsonString: string): SafeParseResult<DeploymentGetConfig22, SDKValidationError>;
|
|
961
|
+
/** @internal */
|
|
962
|
+
export declare const DeploymentGetConfig2Type$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfig2Type>;
|
|
963
|
+
/** @internal */
|
|
964
|
+
export declare const DeploymentGetConfig2Type$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfig2Type>;
|
|
965
|
+
/**
|
|
966
|
+
* @internal
|
|
967
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
968
|
+
*/
|
|
969
|
+
export declare namespace DeploymentGetConfig2Type$ {
|
|
970
|
+
/** @deprecated use `DeploymentGetConfig2Type$inboundSchema` instead. */
|
|
971
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
972
|
+
readonly Text: "text";
|
|
973
|
+
}>;
|
|
974
|
+
/** @deprecated use `DeploymentGetConfig2Type$outboundSchema` instead. */
|
|
975
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
976
|
+
readonly Text: "text";
|
|
977
|
+
}>;
|
|
978
|
+
}
|
|
979
|
+
/** @internal */
|
|
980
|
+
export declare const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown>;
|
|
981
|
+
/** @internal */
|
|
982
|
+
export type Two1$Outbound = {
|
|
983
|
+
type: string;
|
|
984
|
+
text: string;
|
|
985
|
+
};
|
|
986
|
+
/** @internal */
|
|
987
|
+
export declare const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1>;
|
|
988
|
+
/**
|
|
989
|
+
* @internal
|
|
990
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
991
|
+
*/
|
|
992
|
+
export declare namespace Two1$ {
|
|
993
|
+
/** @deprecated use `Two1$inboundSchema` instead. */
|
|
994
|
+
const inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown>;
|
|
995
|
+
/** @deprecated use `Two1$outboundSchema` instead. */
|
|
996
|
+
const outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1>;
|
|
997
|
+
/** @deprecated use `Two1$Outbound` instead. */
|
|
998
|
+
type Outbound = Two1$Outbound;
|
|
999
|
+
}
|
|
1000
|
+
export declare function two1ToJSON(two1: Two1): string;
|
|
1001
|
+
export declare function two1FromJSON(jsonString: string): SafeParseResult<Two1, SDKValidationError>;
|
|
1002
|
+
/** @internal */
|
|
1003
|
+
export declare const Content2$inboundSchema: z.ZodType<Content2, z.ZodTypeDef, unknown>;
|
|
1004
|
+
/** @internal */
|
|
1005
|
+
export type Content2$Outbound = Two1$Outbound | DeploymentGetConfig22$Outbound;
|
|
1006
|
+
/** @internal */
|
|
1007
|
+
export declare const Content2$outboundSchema: z.ZodType<Content2$Outbound, z.ZodTypeDef, Content2>;
|
|
1008
|
+
/**
|
|
1009
|
+
* @internal
|
|
1010
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1011
|
+
*/
|
|
1012
|
+
export declare namespace Content2$ {
|
|
1013
|
+
/** @deprecated use `Content2$inboundSchema` instead. */
|
|
1014
|
+
const inboundSchema: z.ZodType<Content2, z.ZodTypeDef, unknown>;
|
|
1015
|
+
/** @deprecated use `Content2$outboundSchema` instead. */
|
|
1016
|
+
const outboundSchema: z.ZodType<Content2$Outbound, z.ZodTypeDef, Content2>;
|
|
1017
|
+
/** @deprecated use `Content2$Outbound` instead. */
|
|
1018
|
+
type Outbound = Content2$Outbound;
|
|
1019
|
+
}
|
|
1020
|
+
export declare function content2ToJSON(content2: Content2): string;
|
|
1021
|
+
export declare function content2FromJSON(jsonString: string): SafeParseResult<Content2, SDKValidationError>;
|
|
1022
|
+
/** @internal */
|
|
1023
|
+
export declare const DeploymentGetConfigContent$inboundSchema: z.ZodType<DeploymentGetConfigContent, z.ZodTypeDef, unknown>;
|
|
1024
|
+
/** @internal */
|
|
1025
|
+
export type DeploymentGetConfigContent$Outbound = string | Array<Two1$Outbound | DeploymentGetConfig22$Outbound>;
|
|
1026
|
+
/** @internal */
|
|
1027
|
+
export declare const DeploymentGetConfigContent$outboundSchema: z.ZodType<DeploymentGetConfigContent$Outbound, z.ZodTypeDef, DeploymentGetConfigContent>;
|
|
1028
|
+
/**
|
|
1029
|
+
* @internal
|
|
1030
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1031
|
+
*/
|
|
1032
|
+
export declare namespace DeploymentGetConfigContent$ {
|
|
1033
|
+
/** @deprecated use `DeploymentGetConfigContent$inboundSchema` instead. */
|
|
1034
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigContent, z.ZodTypeDef, unknown>;
|
|
1035
|
+
/** @deprecated use `DeploymentGetConfigContent$outboundSchema` instead. */
|
|
1036
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigContent$Outbound, z.ZodTypeDef, DeploymentGetConfigContent>;
|
|
1037
|
+
/** @deprecated use `DeploymentGetConfigContent$Outbound` instead. */
|
|
1038
|
+
type Outbound = DeploymentGetConfigContent$Outbound;
|
|
1039
|
+
}
|
|
1040
|
+
export declare function deploymentGetConfigContentToJSON(deploymentGetConfigContent: DeploymentGetConfigContent): string;
|
|
1041
|
+
export declare function deploymentGetConfigContentFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigContent, SDKValidationError>;
|
|
1042
|
+
/** @internal */
|
|
1043
|
+
export declare const DeploymentGetConfigDeploymentsType$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsType>;
|
|
1044
|
+
/** @internal */
|
|
1045
|
+
export declare const DeploymentGetConfigDeploymentsType$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsType>;
|
|
1046
|
+
/**
|
|
1047
|
+
* @internal
|
|
1048
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1049
|
+
*/
|
|
1050
|
+
export declare namespace DeploymentGetConfigDeploymentsType$ {
|
|
1051
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsType$inboundSchema` instead. */
|
|
1052
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1053
|
+
readonly Function: "function";
|
|
1054
|
+
}>;
|
|
1055
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsType$outboundSchema` instead. */
|
|
1056
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1057
|
+
readonly Function: "function";
|
|
1058
|
+
}>;
|
|
1059
|
+
}
|
|
1060
|
+
/** @internal */
|
|
1061
|
+
export declare const DeploymentGetConfigFunction$inboundSchema: z.ZodType<DeploymentGetConfigFunction, z.ZodTypeDef, unknown>;
|
|
1062
|
+
/** @internal */
|
|
1063
|
+
export type DeploymentGetConfigFunction$Outbound = {
|
|
1064
|
+
name: string;
|
|
1065
|
+
arguments: string;
|
|
1066
|
+
};
|
|
1067
|
+
/** @internal */
|
|
1068
|
+
export declare const DeploymentGetConfigFunction$outboundSchema: z.ZodType<DeploymentGetConfigFunction$Outbound, z.ZodTypeDef, DeploymentGetConfigFunction>;
|
|
1069
|
+
/**
|
|
1070
|
+
* @internal
|
|
1071
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1072
|
+
*/
|
|
1073
|
+
export declare namespace DeploymentGetConfigFunction$ {
|
|
1074
|
+
/** @deprecated use `DeploymentGetConfigFunction$inboundSchema` instead. */
|
|
1075
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigFunction, z.ZodTypeDef, unknown>;
|
|
1076
|
+
/** @deprecated use `DeploymentGetConfigFunction$outboundSchema` instead. */
|
|
1077
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigFunction$Outbound, z.ZodTypeDef, DeploymentGetConfigFunction>;
|
|
1078
|
+
/** @deprecated use `DeploymentGetConfigFunction$Outbound` instead. */
|
|
1079
|
+
type Outbound = DeploymentGetConfigFunction$Outbound;
|
|
1080
|
+
}
|
|
1081
|
+
export declare function deploymentGetConfigFunctionToJSON(deploymentGetConfigFunction: DeploymentGetConfigFunction): string;
|
|
1082
|
+
export declare function deploymentGetConfigFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigFunction, SDKValidationError>;
|
|
1083
|
+
/** @internal */
|
|
1084
|
+
export declare const DeploymentGetConfigToolCalls$inboundSchema: z.ZodType<DeploymentGetConfigToolCalls, z.ZodTypeDef, unknown>;
|
|
1085
|
+
/** @internal */
|
|
1086
|
+
export type DeploymentGetConfigToolCalls$Outbound = {
|
|
1087
|
+
id?: string | undefined;
|
|
1088
|
+
index?: number | undefined;
|
|
1089
|
+
type: string;
|
|
1090
|
+
function: DeploymentGetConfigFunction$Outbound;
|
|
1091
|
+
};
|
|
1092
|
+
/** @internal */
|
|
1093
|
+
export declare const DeploymentGetConfigToolCalls$outboundSchema: z.ZodType<DeploymentGetConfigToolCalls$Outbound, z.ZodTypeDef, DeploymentGetConfigToolCalls>;
|
|
1094
|
+
/**
|
|
1095
|
+
* @internal
|
|
1096
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1097
|
+
*/
|
|
1098
|
+
export declare namespace DeploymentGetConfigToolCalls$ {
|
|
1099
|
+
/** @deprecated use `DeploymentGetConfigToolCalls$inboundSchema` instead. */
|
|
1100
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigToolCalls, z.ZodTypeDef, unknown>;
|
|
1101
|
+
/** @deprecated use `DeploymentGetConfigToolCalls$outboundSchema` instead. */
|
|
1102
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigToolCalls$Outbound, z.ZodTypeDef, DeploymentGetConfigToolCalls>;
|
|
1103
|
+
/** @deprecated use `DeploymentGetConfigToolCalls$Outbound` instead. */
|
|
1104
|
+
type Outbound = DeploymentGetConfigToolCalls$Outbound;
|
|
1105
|
+
}
|
|
1106
|
+
export declare function deploymentGetConfigToolCallsToJSON(deploymentGetConfigToolCalls: DeploymentGetConfigToolCalls): string;
|
|
1107
|
+
export declare function deploymentGetConfigToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigToolCalls, SDKValidationError>;
|
|
1108
|
+
/** @internal */
|
|
1109
|
+
export declare const Messages$inboundSchema: z.ZodType<Messages, z.ZodTypeDef, unknown>;
|
|
1110
|
+
/** @internal */
|
|
1111
|
+
export type Messages$Outbound = {
|
|
1112
|
+
role: string;
|
|
1113
|
+
content: string | Array<Two1$Outbound | DeploymentGetConfig22$Outbound>;
|
|
1114
|
+
tool_calls?: Array<DeploymentGetConfigToolCalls$Outbound> | undefined;
|
|
1115
|
+
};
|
|
1116
|
+
/** @internal */
|
|
1117
|
+
export declare const Messages$outboundSchema: z.ZodType<Messages$Outbound, z.ZodTypeDef, Messages>;
|
|
1118
|
+
/**
|
|
1119
|
+
* @internal
|
|
1120
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1121
|
+
*/
|
|
1122
|
+
export declare namespace Messages$ {
|
|
1123
|
+
/** @deprecated use `Messages$inboundSchema` instead. */
|
|
1124
|
+
const inboundSchema: z.ZodType<Messages, z.ZodTypeDef, unknown>;
|
|
1125
|
+
/** @deprecated use `Messages$outboundSchema` instead. */
|
|
1126
|
+
const outboundSchema: z.ZodType<Messages$Outbound, z.ZodTypeDef, Messages>;
|
|
1127
|
+
/** @deprecated use `Messages$Outbound` instead. */
|
|
1128
|
+
type Outbound = Messages$Outbound;
|
|
1129
|
+
}
|
|
1130
|
+
export declare function messagesToJSON(messages: Messages): string;
|
|
1131
|
+
export declare function messagesFromJSON(jsonString: string): SafeParseResult<Messages, SDKValidationError>;
|
|
1132
|
+
/** @internal */
|
|
1133
|
+
export declare const Metadata$inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
|
|
1134
|
+
/** @internal */
|
|
1135
|
+
export type Metadata$Outbound = {
|
|
1136
|
+
file_name?: string | undefined;
|
|
1137
|
+
file_type?: string | undefined;
|
|
1138
|
+
page_number?: number | undefined;
|
|
1139
|
+
};
|
|
1140
|
+
/** @internal */
|
|
1141
|
+
export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
|
|
1142
|
+
/**
|
|
1143
|
+
* @internal
|
|
1144
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1145
|
+
*/
|
|
1146
|
+
export declare namespace Metadata$ {
|
|
1147
|
+
/** @deprecated use `Metadata$inboundSchema` instead. */
|
|
1148
|
+
const inboundSchema: z.ZodType<Metadata, z.ZodTypeDef, unknown>;
|
|
1149
|
+
/** @deprecated use `Metadata$outboundSchema` instead. */
|
|
1150
|
+
const outboundSchema: z.ZodType<Metadata$Outbound, z.ZodTypeDef, Metadata>;
|
|
1151
|
+
/** @deprecated use `Metadata$Outbound` instead. */
|
|
1152
|
+
type Outbound = Metadata$Outbound;
|
|
1153
|
+
}
|
|
1154
|
+
export declare function metadataToJSON(metadata: Metadata): string;
|
|
1155
|
+
export declare function metadataFromJSON(jsonString: string): SafeParseResult<Metadata, SDKValidationError>;
|
|
1156
|
+
/** @internal */
|
|
1157
|
+
export declare const Documents$inboundSchema: z.ZodType<Documents, z.ZodTypeDef, unknown>;
|
|
1158
|
+
/** @internal */
|
|
1159
|
+
export type Documents$Outbound = {
|
|
1160
|
+
text: string;
|
|
1161
|
+
metadata?: Metadata$Outbound | undefined;
|
|
1162
|
+
};
|
|
1163
|
+
/** @internal */
|
|
1164
|
+
export declare const Documents$outboundSchema: z.ZodType<Documents$Outbound, z.ZodTypeDef, Documents>;
|
|
1165
|
+
/**
|
|
1166
|
+
* @internal
|
|
1167
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1168
|
+
*/
|
|
1169
|
+
export declare namespace Documents$ {
|
|
1170
|
+
/** @deprecated use `Documents$inboundSchema` instead. */
|
|
1171
|
+
const inboundSchema: z.ZodType<Documents, z.ZodTypeDef, unknown>;
|
|
1172
|
+
/** @deprecated use `Documents$outboundSchema` instead. */
|
|
1173
|
+
const outboundSchema: z.ZodType<Documents$Outbound, z.ZodTypeDef, Documents>;
|
|
1174
|
+
/** @deprecated use `Documents$Outbound` instead. */
|
|
1175
|
+
type Outbound = Documents$Outbound;
|
|
1176
|
+
}
|
|
1177
|
+
export declare function documentsToJSON(documents: Documents): string;
|
|
1178
|
+
export declare function documentsFromJSON(jsonString: string): SafeParseResult<Documents, SDKValidationError>;
|
|
1179
|
+
/** @internal */
|
|
1180
|
+
export declare const InvokeOptions$inboundSchema: z.ZodType<InvokeOptions, z.ZodTypeDef, unknown>;
|
|
1181
|
+
/** @internal */
|
|
1182
|
+
export type InvokeOptions$Outbound = {
|
|
1183
|
+
include_retrievals: boolean;
|
|
1184
|
+
};
|
|
1185
|
+
/** @internal */
|
|
1186
|
+
export declare const InvokeOptions$outboundSchema: z.ZodType<InvokeOptions$Outbound, z.ZodTypeDef, InvokeOptions>;
|
|
1187
|
+
/**
|
|
1188
|
+
* @internal
|
|
1189
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1190
|
+
*/
|
|
1191
|
+
export declare namespace InvokeOptions$ {
|
|
1192
|
+
/** @deprecated use `InvokeOptions$inboundSchema` instead. */
|
|
1193
|
+
const inboundSchema: z.ZodType<InvokeOptions, z.ZodTypeDef, unknown>;
|
|
1194
|
+
/** @deprecated use `InvokeOptions$outboundSchema` instead. */
|
|
1195
|
+
const outboundSchema: z.ZodType<InvokeOptions$Outbound, z.ZodTypeDef, InvokeOptions>;
|
|
1196
|
+
/** @deprecated use `InvokeOptions$Outbound` instead. */
|
|
1197
|
+
type Outbound = InvokeOptions$Outbound;
|
|
1198
|
+
}
|
|
1199
|
+
export declare function invokeOptionsToJSON(invokeOptions: InvokeOptions): string;
|
|
1200
|
+
export declare function invokeOptionsFromJSON(jsonString: string): SafeParseResult<InvokeOptions, SDKValidationError>;
|
|
1201
|
+
/** @internal */
|
|
1202
|
+
export declare const DeploymentGetConfigRequestBody$inboundSchema: z.ZodType<DeploymentGetConfigRequestBody, z.ZodTypeDef, unknown>;
|
|
1203
|
+
/** @internal */
|
|
1204
|
+
export type DeploymentGetConfigRequestBody$Outbound = {
|
|
1205
|
+
key: string;
|
|
1206
|
+
inputs?: {
|
|
1207
|
+
[k: string]: string | number | boolean;
|
|
1208
|
+
} | undefined;
|
|
1209
|
+
context?: {
|
|
1210
|
+
[k: string]: any;
|
|
1211
|
+
} | undefined;
|
|
1212
|
+
prefix_messages?: Array<PrefixMessages$Outbound> | undefined;
|
|
1213
|
+
messages?: Array<Messages$Outbound> | undefined;
|
|
1214
|
+
file_ids?: Array<string> | undefined;
|
|
1215
|
+
metadata?: {
|
|
1216
|
+
[k: string]: any;
|
|
1217
|
+
} | undefined;
|
|
1218
|
+
extra_params?: {
|
|
1219
|
+
[k: string]: any;
|
|
1220
|
+
} | undefined;
|
|
1221
|
+
documents?: Array<Documents$Outbound> | undefined;
|
|
1222
|
+
invoke_options?: InvokeOptions$Outbound | undefined;
|
|
1223
|
+
};
|
|
1224
|
+
/** @internal */
|
|
1225
|
+
export declare const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<DeploymentGetConfigRequestBody$Outbound, z.ZodTypeDef, DeploymentGetConfigRequestBody>;
|
|
1226
|
+
/**
|
|
1227
|
+
* @internal
|
|
1228
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1229
|
+
*/
|
|
1230
|
+
export declare namespace DeploymentGetConfigRequestBody$ {
|
|
1231
|
+
/** @deprecated use `DeploymentGetConfigRequestBody$inboundSchema` instead. */
|
|
1232
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigRequestBody, z.ZodTypeDef, unknown>;
|
|
1233
|
+
/** @deprecated use `DeploymentGetConfigRequestBody$outboundSchema` instead. */
|
|
1234
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigRequestBody$Outbound, z.ZodTypeDef, DeploymentGetConfigRequestBody>;
|
|
1235
|
+
/** @deprecated use `DeploymentGetConfigRequestBody$Outbound` instead. */
|
|
1236
|
+
type Outbound = DeploymentGetConfigRequestBody$Outbound;
|
|
1237
|
+
}
|
|
1238
|
+
export declare function deploymentGetConfigRequestBodyToJSON(deploymentGetConfigRequestBody: DeploymentGetConfigRequestBody): string;
|
|
1239
|
+
export declare function deploymentGetConfigRequestBodyFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigRequestBody, SDKValidationError>;
|
|
1240
|
+
/** @internal */
|
|
1241
|
+
export declare const DeploymentGetConfigDeploymentsResponseType$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponseType>;
|
|
1242
|
+
/** @internal */
|
|
1243
|
+
export declare const DeploymentGetConfigDeploymentsResponseType$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponseType>;
|
|
1244
|
+
/**
|
|
1245
|
+
* @internal
|
|
1246
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1247
|
+
*/
|
|
1248
|
+
export declare namespace DeploymentGetConfigDeploymentsResponseType$ {
|
|
1249
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsResponseType$inboundSchema` instead. */
|
|
1250
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1251
|
+
readonly Chat: "chat";
|
|
1252
|
+
readonly Completion: "completion";
|
|
1253
|
+
readonly Embedding: "embedding";
|
|
1254
|
+
readonly Vision: "vision";
|
|
1255
|
+
readonly Image: "image";
|
|
1256
|
+
readonly Tts: "tts";
|
|
1257
|
+
readonly Stt: "stt";
|
|
1258
|
+
readonly Rerank: "rerank";
|
|
1259
|
+
readonly Moderations: "moderations";
|
|
1260
|
+
}>;
|
|
1261
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsResponseType$outboundSchema` instead. */
|
|
1262
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1263
|
+
readonly Chat: "chat";
|
|
1264
|
+
readonly Completion: "completion";
|
|
1265
|
+
readonly Embedding: "embedding";
|
|
1266
|
+
readonly Vision: "vision";
|
|
1267
|
+
readonly Image: "image";
|
|
1268
|
+
readonly Tts: "tts";
|
|
1269
|
+
readonly Stt: "stt";
|
|
1270
|
+
readonly Rerank: "rerank";
|
|
1271
|
+
readonly Moderations: "moderations";
|
|
1272
|
+
}>;
|
|
1273
|
+
}
|
|
1274
|
+
/** @internal */
|
|
1275
|
+
export declare const DeploymentGetConfigDeploymentsRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsRole>;
|
|
1276
|
+
/** @internal */
|
|
1277
|
+
export declare const DeploymentGetConfigDeploymentsRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsRole>;
|
|
1278
|
+
/**
|
|
1279
|
+
* @internal
|
|
1280
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1281
|
+
*/
|
|
1282
|
+
export declare namespace DeploymentGetConfigDeploymentsRole$ {
|
|
1283
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsRole$inboundSchema` instead. */
|
|
1284
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1285
|
+
readonly System: "system";
|
|
1286
|
+
readonly Assistant: "assistant";
|
|
1287
|
+
readonly User: "user";
|
|
1288
|
+
readonly Exception: "exception";
|
|
1289
|
+
readonly Tool: "tool";
|
|
1290
|
+
readonly Prompt: "prompt";
|
|
1291
|
+
readonly Correction: "correction";
|
|
1292
|
+
readonly ExpectedOutput: "expected_output";
|
|
1293
|
+
}>;
|
|
1294
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsRole$outboundSchema` instead. */
|
|
1295
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1296
|
+
readonly System: "system";
|
|
1297
|
+
readonly Assistant: "assistant";
|
|
1298
|
+
readonly User: "user";
|
|
1299
|
+
readonly Exception: "exception";
|
|
1300
|
+
readonly Tool: "tool";
|
|
1301
|
+
readonly Prompt: "prompt";
|
|
1302
|
+
readonly Correction: "correction";
|
|
1303
|
+
readonly ExpectedOutput: "expected_output";
|
|
1304
|
+
}>;
|
|
1305
|
+
}
|
|
1306
|
+
/** @internal */
|
|
1307
|
+
export declare const DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsResponse200Type>;
|
|
1308
|
+
/** @internal */
|
|
1309
|
+
export declare const DeploymentGetConfig2DeploymentsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsResponse200Type>;
|
|
1310
|
+
/**
|
|
1311
|
+
* @internal
|
|
1312
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1313
|
+
*/
|
|
1314
|
+
export declare namespace DeploymentGetConfig2DeploymentsResponse200Type$ {
|
|
1315
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema` instead. */
|
|
1316
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1317
|
+
readonly ImageUrl: "image_url";
|
|
1318
|
+
}>;
|
|
1319
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsResponse200Type$outboundSchema` instead. */
|
|
1320
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1321
|
+
readonly ImageUrl: "image_url";
|
|
1322
|
+
}>;
|
|
1323
|
+
}
|
|
1324
|
+
/** @internal */
|
|
1325
|
+
export declare const DeploymentGetConfig2ImageUrl$inboundSchema: z.ZodType<DeploymentGetConfig2ImageUrl, z.ZodTypeDef, unknown>;
|
|
1326
|
+
/** @internal */
|
|
1327
|
+
export type DeploymentGetConfig2ImageUrl$Outbound = {
|
|
1328
|
+
id?: string | undefined;
|
|
1329
|
+
url: string;
|
|
1330
|
+
detail?: string | undefined;
|
|
1331
|
+
};
|
|
1332
|
+
/** @internal */
|
|
1333
|
+
export declare const DeploymentGetConfig2ImageUrl$outboundSchema: z.ZodType<DeploymentGetConfig2ImageUrl$Outbound, z.ZodTypeDef, DeploymentGetConfig2ImageUrl>;
|
|
1334
|
+
/**
|
|
1335
|
+
* @internal
|
|
1336
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1337
|
+
*/
|
|
1338
|
+
export declare namespace DeploymentGetConfig2ImageUrl$ {
|
|
1339
|
+
/** @deprecated use `DeploymentGetConfig2ImageUrl$inboundSchema` instead. */
|
|
1340
|
+
const inboundSchema: z.ZodType<DeploymentGetConfig2ImageUrl, z.ZodTypeDef, unknown>;
|
|
1341
|
+
/** @deprecated use `DeploymentGetConfig2ImageUrl$outboundSchema` instead. */
|
|
1342
|
+
const outboundSchema: z.ZodType<DeploymentGetConfig2ImageUrl$Outbound, z.ZodTypeDef, DeploymentGetConfig2ImageUrl>;
|
|
1343
|
+
/** @deprecated use `DeploymentGetConfig2ImageUrl$Outbound` instead. */
|
|
1344
|
+
type Outbound = DeploymentGetConfig2ImageUrl$Outbound;
|
|
1345
|
+
}
|
|
1346
|
+
export declare function deploymentGetConfig2ImageUrlToJSON(deploymentGetConfig2ImageUrl: DeploymentGetConfig2ImageUrl): string;
|
|
1347
|
+
export declare function deploymentGetConfig2ImageUrlFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfig2ImageUrl, SDKValidationError>;
|
|
1348
|
+
/** @internal */
|
|
1349
|
+
export declare const DeploymentGetConfig2Deployments2$inboundSchema: z.ZodType<DeploymentGetConfig2Deployments2, z.ZodTypeDef, unknown>;
|
|
1350
|
+
/** @internal */
|
|
1351
|
+
export type DeploymentGetConfig2Deployments2$Outbound = {
|
|
1352
|
+
type: string;
|
|
1353
|
+
image_url: DeploymentGetConfig2ImageUrl$Outbound;
|
|
1354
|
+
};
|
|
1355
|
+
/** @internal */
|
|
1356
|
+
export declare const DeploymentGetConfig2Deployments2$outboundSchema: z.ZodType<DeploymentGetConfig2Deployments2$Outbound, z.ZodTypeDef, DeploymentGetConfig2Deployments2>;
|
|
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 DeploymentGetConfig2Deployments2$ {
|
|
1362
|
+
/** @deprecated use `DeploymentGetConfig2Deployments2$inboundSchema` instead. */
|
|
1363
|
+
const inboundSchema: z.ZodType<DeploymentGetConfig2Deployments2, z.ZodTypeDef, unknown>;
|
|
1364
|
+
/** @deprecated use `DeploymentGetConfig2Deployments2$outboundSchema` instead. */
|
|
1365
|
+
const outboundSchema: z.ZodType<DeploymentGetConfig2Deployments2$Outbound, z.ZodTypeDef, DeploymentGetConfig2Deployments2>;
|
|
1366
|
+
/** @deprecated use `DeploymentGetConfig2Deployments2$Outbound` instead. */
|
|
1367
|
+
type Outbound = DeploymentGetConfig2Deployments2$Outbound;
|
|
1368
|
+
}
|
|
1369
|
+
export declare function deploymentGetConfig2Deployments2ToJSON(deploymentGetConfig2Deployments2: DeploymentGetConfig2Deployments2): string;
|
|
1370
|
+
export declare function deploymentGetConfig2Deployments2FromJSON(jsonString: string): SafeParseResult<DeploymentGetConfig2Deployments2, SDKValidationError>;
|
|
1371
|
+
/** @internal */
|
|
1372
|
+
export declare const DeploymentGetConfig2DeploymentsResponseType$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsResponseType>;
|
|
1373
|
+
/** @internal */
|
|
1374
|
+
export declare const DeploymentGetConfig2DeploymentsResponseType$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsResponseType>;
|
|
1375
|
+
/**
|
|
1376
|
+
* @internal
|
|
1377
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1378
|
+
*/
|
|
1379
|
+
export declare namespace DeploymentGetConfig2DeploymentsResponseType$ {
|
|
1380
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsResponseType$inboundSchema` instead. */
|
|
1381
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1382
|
+
readonly Text: "text";
|
|
1383
|
+
}>;
|
|
1384
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsResponseType$outboundSchema` instead. */
|
|
1385
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1386
|
+
readonly Text: "text";
|
|
1387
|
+
}>;
|
|
1388
|
+
}
|
|
1389
|
+
/** @internal */
|
|
1390
|
+
export declare const DeploymentGetConfig21$inboundSchema: z.ZodType<DeploymentGetConfig21, z.ZodTypeDef, unknown>;
|
|
1391
|
+
/** @internal */
|
|
1392
|
+
export type DeploymentGetConfig21$Outbound = {
|
|
1393
|
+
type: string;
|
|
1394
|
+
text: string;
|
|
1395
|
+
};
|
|
1396
|
+
/** @internal */
|
|
1397
|
+
export declare const DeploymentGetConfig21$outboundSchema: z.ZodType<DeploymentGetConfig21$Outbound, z.ZodTypeDef, DeploymentGetConfig21>;
|
|
1398
|
+
/**
|
|
1399
|
+
* @internal
|
|
1400
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1401
|
+
*/
|
|
1402
|
+
export declare namespace DeploymentGetConfig21$ {
|
|
1403
|
+
/** @deprecated use `DeploymentGetConfig21$inboundSchema` instead. */
|
|
1404
|
+
const inboundSchema: z.ZodType<DeploymentGetConfig21, z.ZodTypeDef, unknown>;
|
|
1405
|
+
/** @deprecated use `DeploymentGetConfig21$outboundSchema` instead. */
|
|
1406
|
+
const outboundSchema: z.ZodType<DeploymentGetConfig21$Outbound, z.ZodTypeDef, DeploymentGetConfig21>;
|
|
1407
|
+
/** @deprecated use `DeploymentGetConfig21$Outbound` instead. */
|
|
1408
|
+
type Outbound = DeploymentGetConfig21$Outbound;
|
|
1409
|
+
}
|
|
1410
|
+
export declare function deploymentGetConfig21ToJSON(deploymentGetConfig21: DeploymentGetConfig21): string;
|
|
1411
|
+
export declare function deploymentGetConfig21FromJSON(jsonString: string): SafeParseResult<DeploymentGetConfig21, SDKValidationError>;
|
|
1412
|
+
/** @internal */
|
|
1413
|
+
export declare const DeploymentGetConfigContent2$inboundSchema: z.ZodType<DeploymentGetConfigContent2, z.ZodTypeDef, unknown>;
|
|
1414
|
+
/** @internal */
|
|
1415
|
+
export type DeploymentGetConfigContent2$Outbound = DeploymentGetConfig21$Outbound | DeploymentGetConfig2Deployments2$Outbound;
|
|
1416
|
+
/** @internal */
|
|
1417
|
+
export declare const DeploymentGetConfigContent2$outboundSchema: z.ZodType<DeploymentGetConfigContent2$Outbound, z.ZodTypeDef, DeploymentGetConfigContent2>;
|
|
1418
|
+
/**
|
|
1419
|
+
* @internal
|
|
1420
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1421
|
+
*/
|
|
1422
|
+
export declare namespace DeploymentGetConfigContent2$ {
|
|
1423
|
+
/** @deprecated use `DeploymentGetConfigContent2$inboundSchema` instead. */
|
|
1424
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigContent2, z.ZodTypeDef, unknown>;
|
|
1425
|
+
/** @deprecated use `DeploymentGetConfigContent2$outboundSchema` instead. */
|
|
1426
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigContent2$Outbound, z.ZodTypeDef, DeploymentGetConfigContent2>;
|
|
1427
|
+
/** @deprecated use `DeploymentGetConfigContent2$Outbound` instead. */
|
|
1428
|
+
type Outbound = DeploymentGetConfigContent2$Outbound;
|
|
1429
|
+
}
|
|
1430
|
+
export declare function deploymentGetConfigContent2ToJSON(deploymentGetConfigContent2: DeploymentGetConfigContent2): string;
|
|
1431
|
+
export declare function deploymentGetConfigContent2FromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigContent2, SDKValidationError>;
|
|
1432
|
+
/** @internal */
|
|
1433
|
+
export declare const DeploymentGetConfigDeploymentsContent$inboundSchema: z.ZodType<DeploymentGetConfigDeploymentsContent, z.ZodTypeDef, unknown>;
|
|
1434
|
+
/** @internal */
|
|
1435
|
+
export type DeploymentGetConfigDeploymentsContent$Outbound = string | Array<DeploymentGetConfig21$Outbound | DeploymentGetConfig2Deployments2$Outbound>;
|
|
1436
|
+
/** @internal */
|
|
1437
|
+
export declare const DeploymentGetConfigDeploymentsContent$outboundSchema: z.ZodType<DeploymentGetConfigDeploymentsContent$Outbound, z.ZodTypeDef, DeploymentGetConfigDeploymentsContent>;
|
|
1438
|
+
/**
|
|
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 DeploymentGetConfigDeploymentsContent$ {
|
|
1443
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsContent$inboundSchema` instead. */
|
|
1444
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigDeploymentsContent, z.ZodTypeDef, unknown>;
|
|
1445
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsContent$outboundSchema` instead. */
|
|
1446
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigDeploymentsContent$Outbound, z.ZodTypeDef, DeploymentGetConfigDeploymentsContent>;
|
|
1447
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsContent$Outbound` instead. */
|
|
1448
|
+
type Outbound = DeploymentGetConfigDeploymentsContent$Outbound;
|
|
1449
|
+
}
|
|
1450
|
+
export declare function deploymentGetConfigDeploymentsContentToJSON(deploymentGetConfigDeploymentsContent: DeploymentGetConfigDeploymentsContent): string;
|
|
1451
|
+
export declare function deploymentGetConfigDeploymentsContentFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigDeploymentsContent, SDKValidationError>;
|
|
1452
|
+
/** @internal */
|
|
1453
|
+
export declare const DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponse200ApplicationJSONType>;
|
|
1454
|
+
/** @internal */
|
|
1455
|
+
export declare const DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponse200ApplicationJSONType>;
|
|
1456
|
+
/**
|
|
1457
|
+
* @internal
|
|
1458
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1459
|
+
*/
|
|
1460
|
+
export declare namespace DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$ {
|
|
1461
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
1462
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1463
|
+
readonly Function: "function";
|
|
1464
|
+
}>;
|
|
1465
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
1466
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1467
|
+
readonly Function: "function";
|
|
1468
|
+
}>;
|
|
1469
|
+
}
|
|
1470
|
+
/** @internal */
|
|
1471
|
+
export declare const DeploymentGetConfigDeploymentsResponseFunction$inboundSchema: z.ZodType<DeploymentGetConfigDeploymentsResponseFunction, z.ZodTypeDef, unknown>;
|
|
1472
|
+
/** @internal */
|
|
1473
|
+
export type DeploymentGetConfigDeploymentsResponseFunction$Outbound = {
|
|
1474
|
+
name: string;
|
|
1475
|
+
arguments: string;
|
|
1476
|
+
};
|
|
1477
|
+
/** @internal */
|
|
1478
|
+
export declare const DeploymentGetConfigDeploymentsResponseFunction$outboundSchema: z.ZodType<DeploymentGetConfigDeploymentsResponseFunction$Outbound, z.ZodTypeDef, DeploymentGetConfigDeploymentsResponseFunction>;
|
|
1479
|
+
/**
|
|
1480
|
+
* @internal
|
|
1481
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1482
|
+
*/
|
|
1483
|
+
export declare namespace DeploymentGetConfigDeploymentsResponseFunction$ {
|
|
1484
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsResponseFunction$inboundSchema` instead. */
|
|
1485
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigDeploymentsResponseFunction, z.ZodTypeDef, unknown>;
|
|
1486
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsResponseFunction$outboundSchema` instead. */
|
|
1487
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigDeploymentsResponseFunction$Outbound, z.ZodTypeDef, DeploymentGetConfigDeploymentsResponseFunction>;
|
|
1488
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsResponseFunction$Outbound` instead. */
|
|
1489
|
+
type Outbound = DeploymentGetConfigDeploymentsResponseFunction$Outbound;
|
|
1490
|
+
}
|
|
1491
|
+
export declare function deploymentGetConfigDeploymentsResponseFunctionToJSON(deploymentGetConfigDeploymentsResponseFunction: DeploymentGetConfigDeploymentsResponseFunction): string;
|
|
1492
|
+
export declare function deploymentGetConfigDeploymentsResponseFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigDeploymentsResponseFunction, SDKValidationError>;
|
|
1493
|
+
/** @internal */
|
|
1494
|
+
export declare const DeploymentGetConfigDeploymentsToolCalls$inboundSchema: z.ZodType<DeploymentGetConfigDeploymentsToolCalls, z.ZodTypeDef, unknown>;
|
|
1495
|
+
/** @internal */
|
|
1496
|
+
export type DeploymentGetConfigDeploymentsToolCalls$Outbound = {
|
|
1497
|
+
id?: string | undefined;
|
|
1498
|
+
index?: number | undefined;
|
|
1499
|
+
type: string;
|
|
1500
|
+
function: DeploymentGetConfigDeploymentsResponseFunction$Outbound;
|
|
1501
|
+
};
|
|
1502
|
+
/** @internal */
|
|
1503
|
+
export declare const DeploymentGetConfigDeploymentsToolCalls$outboundSchema: z.ZodType<DeploymentGetConfigDeploymentsToolCalls$Outbound, z.ZodTypeDef, DeploymentGetConfigDeploymentsToolCalls>;
|
|
1504
|
+
/**
|
|
1505
|
+
* @internal
|
|
1506
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1507
|
+
*/
|
|
1508
|
+
export declare namespace DeploymentGetConfigDeploymentsToolCalls$ {
|
|
1509
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsToolCalls$inboundSchema` instead. */
|
|
1510
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigDeploymentsToolCalls, z.ZodTypeDef, unknown>;
|
|
1511
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsToolCalls$outboundSchema` instead. */
|
|
1512
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigDeploymentsToolCalls$Outbound, z.ZodTypeDef, DeploymentGetConfigDeploymentsToolCalls>;
|
|
1513
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsToolCalls$Outbound` instead. */
|
|
1514
|
+
type Outbound = DeploymentGetConfigDeploymentsToolCalls$Outbound;
|
|
1515
|
+
}
|
|
1516
|
+
export declare function deploymentGetConfigDeploymentsToolCallsToJSON(deploymentGetConfigDeploymentsToolCalls: DeploymentGetConfigDeploymentsToolCalls): string;
|
|
1517
|
+
export declare function deploymentGetConfigDeploymentsToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigDeploymentsToolCalls, SDKValidationError>;
|
|
1518
|
+
/** @internal */
|
|
1519
|
+
export declare const DeploymentGetConfigMessages$inboundSchema: z.ZodType<DeploymentGetConfigMessages, z.ZodTypeDef, unknown>;
|
|
1520
|
+
/** @internal */
|
|
1521
|
+
export type DeploymentGetConfigMessages$Outbound = {
|
|
1522
|
+
role: string;
|
|
1523
|
+
content: string | Array<DeploymentGetConfig21$Outbound | DeploymentGetConfig2Deployments2$Outbound>;
|
|
1524
|
+
tool_calls?: Array<DeploymentGetConfigDeploymentsToolCalls$Outbound> | undefined;
|
|
1525
|
+
};
|
|
1526
|
+
/** @internal */
|
|
1527
|
+
export declare const DeploymentGetConfigMessages$outboundSchema: z.ZodType<DeploymentGetConfigMessages$Outbound, z.ZodTypeDef, DeploymentGetConfigMessages>;
|
|
1528
|
+
/**
|
|
1529
|
+
* @internal
|
|
1530
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1531
|
+
*/
|
|
1532
|
+
export declare namespace DeploymentGetConfigMessages$ {
|
|
1533
|
+
/** @deprecated use `DeploymentGetConfigMessages$inboundSchema` instead. */
|
|
1534
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigMessages, z.ZodTypeDef, unknown>;
|
|
1535
|
+
/** @deprecated use `DeploymentGetConfigMessages$outboundSchema` instead. */
|
|
1536
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigMessages$Outbound, z.ZodTypeDef, DeploymentGetConfigMessages>;
|
|
1537
|
+
/** @deprecated use `DeploymentGetConfigMessages$Outbound` instead. */
|
|
1538
|
+
type Outbound = DeploymentGetConfigMessages$Outbound;
|
|
1539
|
+
}
|
|
1540
|
+
export declare function deploymentGetConfigMessagesToJSON(deploymentGetConfigMessages: DeploymentGetConfigMessages): string;
|
|
1541
|
+
export declare function deploymentGetConfigMessagesFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigMessages, SDKValidationError>;
|
|
1542
|
+
/** @internal */
|
|
1543
|
+
export declare const DeploymentGetConfigFormat$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigFormat>;
|
|
1544
|
+
/** @internal */
|
|
1545
|
+
export declare const DeploymentGetConfigFormat$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigFormat>;
|
|
1546
|
+
/**
|
|
1547
|
+
* @internal
|
|
1548
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1549
|
+
*/
|
|
1550
|
+
export declare namespace DeploymentGetConfigFormat$ {
|
|
1551
|
+
/** @deprecated use `DeploymentGetConfigFormat$inboundSchema` instead. */
|
|
1552
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1553
|
+
readonly Url: "url";
|
|
1554
|
+
readonly B64Json: "b64_json";
|
|
1555
|
+
readonly Text: "text";
|
|
1556
|
+
readonly JsonObject: "json_object";
|
|
1557
|
+
}>;
|
|
1558
|
+
/** @deprecated use `DeploymentGetConfigFormat$outboundSchema` instead. */
|
|
1559
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1560
|
+
readonly Url: "url";
|
|
1561
|
+
readonly B64Json: "b64_json";
|
|
1562
|
+
readonly Text: "text";
|
|
1563
|
+
readonly JsonObject: "json_object";
|
|
1564
|
+
}>;
|
|
1565
|
+
}
|
|
1566
|
+
/** @internal */
|
|
1567
|
+
export declare const DeploymentGetConfigQuality$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigQuality>;
|
|
1568
|
+
/** @internal */
|
|
1569
|
+
export declare const DeploymentGetConfigQuality$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigQuality>;
|
|
1570
|
+
/**
|
|
1571
|
+
* @internal
|
|
1572
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1573
|
+
*/
|
|
1574
|
+
export declare namespace DeploymentGetConfigQuality$ {
|
|
1575
|
+
/** @deprecated use `DeploymentGetConfigQuality$inboundSchema` instead. */
|
|
1576
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1577
|
+
readonly Standard: "standard";
|
|
1578
|
+
readonly Hd: "hd";
|
|
1579
|
+
}>;
|
|
1580
|
+
/** @deprecated use `DeploymentGetConfigQuality$outboundSchema` instead. */
|
|
1581
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1582
|
+
readonly Standard: "standard";
|
|
1583
|
+
readonly Hd: "hd";
|
|
1584
|
+
}>;
|
|
1585
|
+
}
|
|
1586
|
+
/** @internal */
|
|
1587
|
+
export declare const DeploymentGetConfigResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatType>;
|
|
1588
|
+
/** @internal */
|
|
1589
|
+
export declare const DeploymentGetConfigResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatType>;
|
|
1590
|
+
/**
|
|
1591
|
+
* @internal
|
|
1592
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1593
|
+
*/
|
|
1594
|
+
export declare namespace DeploymentGetConfigResponseFormatType$ {
|
|
1595
|
+
/** @deprecated use `DeploymentGetConfigResponseFormatType$inboundSchema` instead. */
|
|
1596
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1597
|
+
readonly JsonObject: "json_object";
|
|
1598
|
+
}>;
|
|
1599
|
+
/** @deprecated use `DeploymentGetConfigResponseFormatType$outboundSchema` instead. */
|
|
1600
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1601
|
+
readonly JsonObject: "json_object";
|
|
1602
|
+
}>;
|
|
1603
|
+
}
|
|
1604
|
+
/** @internal */
|
|
1605
|
+
export declare const DeploymentGetConfigResponseFormat2$inboundSchema: z.ZodType<DeploymentGetConfigResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1606
|
+
/** @internal */
|
|
1607
|
+
export type DeploymentGetConfigResponseFormat2$Outbound = {
|
|
1608
|
+
type: string;
|
|
1609
|
+
};
|
|
1610
|
+
/** @internal */
|
|
1611
|
+
export declare const DeploymentGetConfigResponseFormat2$outboundSchema: z.ZodType<DeploymentGetConfigResponseFormat2$Outbound, z.ZodTypeDef, DeploymentGetConfigResponseFormat2>;
|
|
1612
|
+
/**
|
|
1613
|
+
* @internal
|
|
1614
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1615
|
+
*/
|
|
1616
|
+
export declare namespace DeploymentGetConfigResponseFormat2$ {
|
|
1617
|
+
/** @deprecated use `DeploymentGetConfigResponseFormat2$inboundSchema` instead. */
|
|
1618
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigResponseFormat2, z.ZodTypeDef, unknown>;
|
|
1619
|
+
/** @deprecated use `DeploymentGetConfigResponseFormat2$outboundSchema` instead. */
|
|
1620
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigResponseFormat2$Outbound, z.ZodTypeDef, DeploymentGetConfigResponseFormat2>;
|
|
1621
|
+
/** @deprecated use `DeploymentGetConfigResponseFormat2$Outbound` instead. */
|
|
1622
|
+
type Outbound = DeploymentGetConfigResponseFormat2$Outbound;
|
|
1623
|
+
}
|
|
1624
|
+
export declare function deploymentGetConfigResponseFormat2ToJSON(deploymentGetConfigResponseFormat2: DeploymentGetConfigResponseFormat2): string;
|
|
1625
|
+
export declare function deploymentGetConfigResponseFormat2FromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigResponseFormat2, SDKValidationError>;
|
|
1626
|
+
/** @internal */
|
|
1627
|
+
export declare const DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatDeploymentsType>;
|
|
1628
|
+
/** @internal */
|
|
1629
|
+
export declare const DeploymentGetConfigResponseFormatDeploymentsType$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatDeploymentsType>;
|
|
1630
|
+
/**
|
|
1631
|
+
* @internal
|
|
1632
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1633
|
+
*/
|
|
1634
|
+
export declare namespace DeploymentGetConfigResponseFormatDeploymentsType$ {
|
|
1635
|
+
/** @deprecated use `DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema` instead. */
|
|
1636
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1637
|
+
readonly JsonSchema: "json_schema";
|
|
1638
|
+
}>;
|
|
1639
|
+
/** @deprecated use `DeploymentGetConfigResponseFormatDeploymentsType$outboundSchema` instead. */
|
|
1640
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1641
|
+
readonly JsonSchema: "json_schema";
|
|
1642
|
+
}>;
|
|
1643
|
+
}
|
|
1644
|
+
/** @internal */
|
|
1645
|
+
export declare const DeploymentGetConfigResponseFormatJsonSchema$inboundSchema: z.ZodType<DeploymentGetConfigResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1646
|
+
/** @internal */
|
|
1647
|
+
export type DeploymentGetConfigResponseFormatJsonSchema$Outbound = {
|
|
1648
|
+
name: string;
|
|
1649
|
+
strict: boolean;
|
|
1650
|
+
schema: {
|
|
1651
|
+
[k: string]: any;
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1654
|
+
/** @internal */
|
|
1655
|
+
export declare const DeploymentGetConfigResponseFormatJsonSchema$outboundSchema: z.ZodType<DeploymentGetConfigResponseFormatJsonSchema$Outbound, z.ZodTypeDef, DeploymentGetConfigResponseFormatJsonSchema>;
|
|
1656
|
+
/**
|
|
1657
|
+
* @internal
|
|
1658
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1659
|
+
*/
|
|
1660
|
+
export declare namespace DeploymentGetConfigResponseFormatJsonSchema$ {
|
|
1661
|
+
/** @deprecated use `DeploymentGetConfigResponseFormatJsonSchema$inboundSchema` instead. */
|
|
1662
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
|
|
1663
|
+
/** @deprecated use `DeploymentGetConfigResponseFormatJsonSchema$outboundSchema` instead. */
|
|
1664
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigResponseFormatJsonSchema$Outbound, z.ZodTypeDef, DeploymentGetConfigResponseFormatJsonSchema>;
|
|
1665
|
+
/** @deprecated use `DeploymentGetConfigResponseFormatJsonSchema$Outbound` instead. */
|
|
1666
|
+
type Outbound = DeploymentGetConfigResponseFormatJsonSchema$Outbound;
|
|
1667
|
+
}
|
|
1668
|
+
export declare function deploymentGetConfigResponseFormatJsonSchemaToJSON(deploymentGetConfigResponseFormatJsonSchema: DeploymentGetConfigResponseFormatJsonSchema): string;
|
|
1669
|
+
export declare function deploymentGetConfigResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigResponseFormatJsonSchema, SDKValidationError>;
|
|
1670
|
+
/** @internal */
|
|
1671
|
+
export declare const DeploymentGetConfigResponseFormat1$inboundSchema: z.ZodType<DeploymentGetConfigResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1672
|
+
/** @internal */
|
|
1673
|
+
export type DeploymentGetConfigResponseFormat1$Outbound = {
|
|
1674
|
+
type: string;
|
|
1675
|
+
json_schema: DeploymentGetConfigResponseFormatJsonSchema$Outbound;
|
|
1676
|
+
};
|
|
1677
|
+
/** @internal */
|
|
1678
|
+
export declare const DeploymentGetConfigResponseFormat1$outboundSchema: z.ZodType<DeploymentGetConfigResponseFormat1$Outbound, z.ZodTypeDef, DeploymentGetConfigResponseFormat1>;
|
|
1679
|
+
/**
|
|
1680
|
+
* @internal
|
|
1681
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1682
|
+
*/
|
|
1683
|
+
export declare namespace DeploymentGetConfigResponseFormat1$ {
|
|
1684
|
+
/** @deprecated use `DeploymentGetConfigResponseFormat1$inboundSchema` instead. */
|
|
1685
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigResponseFormat1, z.ZodTypeDef, unknown>;
|
|
1686
|
+
/** @deprecated use `DeploymentGetConfigResponseFormat1$outboundSchema` instead. */
|
|
1687
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigResponseFormat1$Outbound, z.ZodTypeDef, DeploymentGetConfigResponseFormat1>;
|
|
1688
|
+
/** @deprecated use `DeploymentGetConfigResponseFormat1$Outbound` instead. */
|
|
1689
|
+
type Outbound = DeploymentGetConfigResponseFormat1$Outbound;
|
|
1690
|
+
}
|
|
1691
|
+
export declare function deploymentGetConfigResponseFormat1ToJSON(deploymentGetConfigResponseFormat1: DeploymentGetConfigResponseFormat1): string;
|
|
1692
|
+
export declare function deploymentGetConfigResponseFormat1FromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigResponseFormat1, SDKValidationError>;
|
|
1693
|
+
/** @internal */
|
|
1694
|
+
export declare const DeploymentGetConfigResponseFormat$inboundSchema: z.ZodType<DeploymentGetConfigResponseFormat, z.ZodTypeDef, unknown>;
|
|
1695
|
+
/** @internal */
|
|
1696
|
+
export type DeploymentGetConfigResponseFormat$Outbound = DeploymentGetConfigResponseFormat2$Outbound | DeploymentGetConfigResponseFormat1$Outbound;
|
|
1697
|
+
/** @internal */
|
|
1698
|
+
export declare const DeploymentGetConfigResponseFormat$outboundSchema: z.ZodType<DeploymentGetConfigResponseFormat$Outbound, z.ZodTypeDef, DeploymentGetConfigResponseFormat>;
|
|
1699
|
+
/**
|
|
1700
|
+
* @internal
|
|
1701
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1702
|
+
*/
|
|
1703
|
+
export declare namespace DeploymentGetConfigResponseFormat$ {
|
|
1704
|
+
/** @deprecated use `DeploymentGetConfigResponseFormat$inboundSchema` instead. */
|
|
1705
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigResponseFormat, z.ZodTypeDef, unknown>;
|
|
1706
|
+
/** @deprecated use `DeploymentGetConfigResponseFormat$outboundSchema` instead. */
|
|
1707
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigResponseFormat$Outbound, z.ZodTypeDef, DeploymentGetConfigResponseFormat>;
|
|
1708
|
+
/** @deprecated use `DeploymentGetConfigResponseFormat$Outbound` instead. */
|
|
1709
|
+
type Outbound = DeploymentGetConfigResponseFormat$Outbound;
|
|
1710
|
+
}
|
|
1711
|
+
export declare function deploymentGetConfigResponseFormatToJSON(deploymentGetConfigResponseFormat: DeploymentGetConfigResponseFormat): string;
|
|
1712
|
+
export declare function deploymentGetConfigResponseFormatFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigResponseFormat, SDKValidationError>;
|
|
1713
|
+
/** @internal */
|
|
1714
|
+
export declare const DeploymentGetConfigPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigPhotoRealVersion>;
|
|
1715
|
+
/** @internal */
|
|
1716
|
+
export declare const DeploymentGetConfigPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigPhotoRealVersion>;
|
|
1717
|
+
/**
|
|
1718
|
+
* @internal
|
|
1719
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1720
|
+
*/
|
|
1721
|
+
export declare namespace DeploymentGetConfigPhotoRealVersion$ {
|
|
1722
|
+
/** @deprecated use `DeploymentGetConfigPhotoRealVersion$inboundSchema` instead. */
|
|
1723
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1724
|
+
readonly V1: "v1";
|
|
1725
|
+
readonly V2: "v2";
|
|
1726
|
+
}>;
|
|
1727
|
+
/** @deprecated use `DeploymentGetConfigPhotoRealVersion$outboundSchema` instead. */
|
|
1728
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1729
|
+
readonly V1: "v1";
|
|
1730
|
+
readonly V2: "v2";
|
|
1731
|
+
}>;
|
|
1732
|
+
}
|
|
1733
|
+
/** @internal */
|
|
1734
|
+
export declare const DeploymentGetConfigEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigEncodingFormat>;
|
|
1735
|
+
/** @internal */
|
|
1736
|
+
export declare const DeploymentGetConfigEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigEncodingFormat>;
|
|
1737
|
+
/**
|
|
1738
|
+
* @internal
|
|
1739
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1740
|
+
*/
|
|
1741
|
+
export declare namespace DeploymentGetConfigEncodingFormat$ {
|
|
1742
|
+
/** @deprecated use `DeploymentGetConfigEncodingFormat$inboundSchema` instead. */
|
|
1743
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1744
|
+
readonly Float: "float";
|
|
1745
|
+
readonly Base64: "base64";
|
|
1746
|
+
}>;
|
|
1747
|
+
/** @deprecated use `DeploymentGetConfigEncodingFormat$outboundSchema` instead. */
|
|
1748
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1749
|
+
readonly Float: "float";
|
|
1750
|
+
readonly Base64: "base64";
|
|
1751
|
+
}>;
|
|
1752
|
+
}
|
|
1753
|
+
/** @internal */
|
|
1754
|
+
export declare const ParametersT$inboundSchema: z.ZodType<ParametersT, z.ZodTypeDef, unknown>;
|
|
1755
|
+
/** @internal */
|
|
1756
|
+
export type ParametersT$Outbound = {
|
|
1757
|
+
temperature?: number | undefined;
|
|
1758
|
+
maxTokens?: number | undefined;
|
|
1759
|
+
topK?: number | undefined;
|
|
1760
|
+
topP?: number | undefined;
|
|
1761
|
+
frequencyPenalty?: number | undefined;
|
|
1762
|
+
presencePenalty?: number | undefined;
|
|
1763
|
+
numImages?: number | undefined;
|
|
1764
|
+
seed?: number | undefined;
|
|
1765
|
+
format?: string | undefined;
|
|
1766
|
+
dimensions?: string | undefined;
|
|
1767
|
+
quality?: string | undefined;
|
|
1768
|
+
style?: string | undefined;
|
|
1769
|
+
responseFormat?: DeploymentGetConfigResponseFormat2$Outbound | DeploymentGetConfigResponseFormat1$Outbound | null | undefined;
|
|
1770
|
+
photoRealVersion?: string | undefined;
|
|
1771
|
+
encoding_format?: string | undefined;
|
|
1772
|
+
};
|
|
1773
|
+
/** @internal */
|
|
1774
|
+
export declare const ParametersT$outboundSchema: z.ZodType<ParametersT$Outbound, z.ZodTypeDef, ParametersT>;
|
|
1775
|
+
/**
|
|
1776
|
+
* @internal
|
|
1777
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1778
|
+
*/
|
|
1779
|
+
export declare namespace ParametersT$ {
|
|
1780
|
+
/** @deprecated use `ParametersT$inboundSchema` instead. */
|
|
1781
|
+
const inboundSchema: z.ZodType<ParametersT, z.ZodTypeDef, unknown>;
|
|
1782
|
+
/** @deprecated use `ParametersT$outboundSchema` instead. */
|
|
1783
|
+
const outboundSchema: z.ZodType<ParametersT$Outbound, z.ZodTypeDef, ParametersT>;
|
|
1784
|
+
/** @deprecated use `ParametersT$Outbound` instead. */
|
|
1785
|
+
type Outbound = ParametersT$Outbound;
|
|
1786
|
+
}
|
|
1787
|
+
export declare function parametersToJSON(parametersT: ParametersT): string;
|
|
1788
|
+
export declare function parametersFromJSON(jsonString: string): SafeParseResult<ParametersT, SDKValidationError>;
|
|
1789
|
+
/** @internal */
|
|
1790
|
+
export declare const DeploymentGetConfigDeploymentsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponse200Type>;
|
|
1791
|
+
/** @internal */
|
|
1792
|
+
export declare const DeploymentGetConfigDeploymentsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponse200Type>;
|
|
1793
|
+
/**
|
|
1794
|
+
* @internal
|
|
1795
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1796
|
+
*/
|
|
1797
|
+
export declare namespace DeploymentGetConfigDeploymentsResponse200Type$ {
|
|
1798
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsResponse200Type$inboundSchema` instead. */
|
|
1799
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1800
|
+
readonly Function: "function";
|
|
1801
|
+
}>;
|
|
1802
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsResponse200Type$outboundSchema` instead. */
|
|
1803
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1804
|
+
readonly Function: "function";
|
|
1805
|
+
}>;
|
|
1806
|
+
}
|
|
1807
|
+
/** @internal */
|
|
1808
|
+
export declare const DeploymentGetConfigDeploymentsFunction$inboundSchema: z.ZodType<DeploymentGetConfigDeploymentsFunction, z.ZodTypeDef, unknown>;
|
|
1809
|
+
/** @internal */
|
|
1810
|
+
export type DeploymentGetConfigDeploymentsFunction$Outbound = {
|
|
1811
|
+
name: string;
|
|
1812
|
+
description?: string | undefined;
|
|
1813
|
+
parameters?: {
|
|
1814
|
+
[k: string]: any;
|
|
1815
|
+
} | undefined;
|
|
1816
|
+
};
|
|
1817
|
+
/** @internal */
|
|
1818
|
+
export declare const DeploymentGetConfigDeploymentsFunction$outboundSchema: z.ZodType<DeploymentGetConfigDeploymentsFunction$Outbound, z.ZodTypeDef, DeploymentGetConfigDeploymentsFunction>;
|
|
1819
|
+
/**
|
|
1820
|
+
* @internal
|
|
1821
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1822
|
+
*/
|
|
1823
|
+
export declare namespace DeploymentGetConfigDeploymentsFunction$ {
|
|
1824
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsFunction$inboundSchema` instead. */
|
|
1825
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigDeploymentsFunction, z.ZodTypeDef, unknown>;
|
|
1826
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsFunction$outboundSchema` instead. */
|
|
1827
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigDeploymentsFunction$Outbound, z.ZodTypeDef, DeploymentGetConfigDeploymentsFunction>;
|
|
1828
|
+
/** @deprecated use `DeploymentGetConfigDeploymentsFunction$Outbound` instead. */
|
|
1829
|
+
type Outbound = DeploymentGetConfigDeploymentsFunction$Outbound;
|
|
1830
|
+
}
|
|
1831
|
+
export declare function deploymentGetConfigDeploymentsFunctionToJSON(deploymentGetConfigDeploymentsFunction: DeploymentGetConfigDeploymentsFunction): string;
|
|
1832
|
+
export declare function deploymentGetConfigDeploymentsFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigDeploymentsFunction, SDKValidationError>;
|
|
1833
|
+
/** @internal */
|
|
1834
|
+
export declare const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown>;
|
|
1835
|
+
/** @internal */
|
|
1836
|
+
export type Tools$Outbound = {
|
|
1837
|
+
type: string;
|
|
1838
|
+
function: DeploymentGetConfigDeploymentsFunction$Outbound;
|
|
1839
|
+
};
|
|
1840
|
+
/** @internal */
|
|
1841
|
+
export declare const Tools$outboundSchema: z.ZodType<Tools$Outbound, z.ZodTypeDef, Tools>;
|
|
1842
|
+
/**
|
|
1843
|
+
* @internal
|
|
1844
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1845
|
+
*/
|
|
1846
|
+
export declare namespace Tools$ {
|
|
1847
|
+
/** @deprecated use `Tools$inboundSchema` instead. */
|
|
1848
|
+
const inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown>;
|
|
1849
|
+
/** @deprecated use `Tools$outboundSchema` instead. */
|
|
1850
|
+
const outboundSchema: z.ZodType<Tools$Outbound, z.ZodTypeDef, Tools>;
|
|
1851
|
+
/** @deprecated use `Tools$Outbound` instead. */
|
|
1852
|
+
type Outbound = Tools$Outbound;
|
|
1853
|
+
}
|
|
1854
|
+
export declare function toolsToJSON(tools: Tools): string;
|
|
1855
|
+
export declare function toolsFromJSON(jsonString: string): SafeParseResult<Tools, SDKValidationError>;
|
|
1856
|
+
/** @internal */
|
|
1857
|
+
export declare const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<DeploymentGetConfigResponseBody, z.ZodTypeDef, unknown>;
|
|
1858
|
+
/** @internal */
|
|
1859
|
+
export type DeploymentGetConfigResponseBody$Outbound = {
|
|
1860
|
+
id: string;
|
|
1861
|
+
provider: string;
|
|
1862
|
+
model: string;
|
|
1863
|
+
type?: string | undefined;
|
|
1864
|
+
version: string;
|
|
1865
|
+
messages: Array<DeploymentGetConfigMessages$Outbound>;
|
|
1866
|
+
parameters: ParametersT$Outbound;
|
|
1867
|
+
tools?: Array<Tools$Outbound> | undefined;
|
|
1868
|
+
};
|
|
1869
|
+
/** @internal */
|
|
1870
|
+
export declare const DeploymentGetConfigResponseBody$outboundSchema: z.ZodType<DeploymentGetConfigResponseBody$Outbound, z.ZodTypeDef, DeploymentGetConfigResponseBody>;
|
|
1871
|
+
/**
|
|
1872
|
+
* @internal
|
|
1873
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1874
|
+
*/
|
|
1875
|
+
export declare namespace DeploymentGetConfigResponseBody$ {
|
|
1876
|
+
/** @deprecated use `DeploymentGetConfigResponseBody$inboundSchema` instead. */
|
|
1877
|
+
const inboundSchema: z.ZodType<DeploymentGetConfigResponseBody, z.ZodTypeDef, unknown>;
|
|
1878
|
+
/** @deprecated use `DeploymentGetConfigResponseBody$outboundSchema` instead. */
|
|
1879
|
+
const outboundSchema: z.ZodType<DeploymentGetConfigResponseBody$Outbound, z.ZodTypeDef, DeploymentGetConfigResponseBody>;
|
|
1880
|
+
/** @deprecated use `DeploymentGetConfigResponseBody$Outbound` instead. */
|
|
1881
|
+
type Outbound = DeploymentGetConfigResponseBody$Outbound;
|
|
1882
|
+
}
|
|
1883
|
+
export declare function deploymentGetConfigResponseBodyToJSON(deploymentGetConfigResponseBody: DeploymentGetConfigResponseBody): string;
|
|
1884
|
+
export declare function deploymentGetConfigResponseBodyFromJSON(jsonString: string): SafeParseResult<DeploymentGetConfigResponseBody, SDKValidationError>;
|
|
1885
|
+
//# sourceMappingURL=deploymentgetconfig.d.ts.map
|