@orq-ai/node 3.1.8 → 3.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -1
- package/bin/mcp-server.js +47941 -0
- package/bin/mcp-server.js.map +318 -0
- package/funcs/contactsCreate.d.ts +2 -1
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +11 -7
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/deploymentsGetConfig.d.ts +2 -1
- package/funcs/deploymentsGetConfig.d.ts.map +1 -1
- package/funcs/deploymentsGetConfig.js +11 -7
- package/funcs/deploymentsGetConfig.js.map +1 -1
- package/funcs/deploymentsInvoke.d.ts +2 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +11 -7
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/deploymentsList.d.ts +2 -1
- package/funcs/deploymentsList.d.ts.map +1 -1
- package/funcs/deploymentsList.js +11 -7
- package/funcs/deploymentsList.js.map +1 -1
- package/funcs/deploymentsMetricsCreate.d.ts +2 -1
- package/funcs/deploymentsMetricsCreate.d.ts.map +1 -1
- package/funcs/deploymentsMetricsCreate.js +11 -7
- package/funcs/deploymentsMetricsCreate.js.map +1 -1
- package/funcs/deploymentsStream.d.ts +2 -1
- package/funcs/deploymentsStream.d.ts.map +1 -1
- package/funcs/deploymentsStream.js +11 -7
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/feedbackCreate.d.ts +2 -1
- package/funcs/feedbackCreate.d.ts.map +1 -1
- package/funcs/feedbackCreate.js +11 -7
- package/funcs/feedbackCreate.js.map +1 -1
- package/funcs/filesCreate.d.ts +2 -1
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +11 -7
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.d.ts +2 -1
- package/funcs/filesDelete.d.ts.map +1 -1
- package/funcs/filesDelete.js +11 -7
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesGet.d.ts +2 -1
- package/funcs/filesGet.d.ts.map +1 -1
- package/funcs/filesGet.js +11 -7
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.d.ts +2 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +11 -7
- package/funcs/filesList.js.map +1 -1
- package/funcs/promptsCreate.d.ts +2 -1
- package/funcs/promptsCreate.d.ts.map +1 -1
- package/funcs/promptsCreate.js +11 -7
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.d.ts +2 -1
- package/funcs/promptsDelete.d.ts.map +1 -1
- package/funcs/promptsDelete.js +11 -7
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetVersion.d.ts +2 -1
- package/funcs/promptsGetVersion.d.ts.map +1 -1
- package/funcs/promptsGetVersion.js +11 -7
- package/funcs/promptsGetVersion.js.map +1 -1
- package/funcs/promptsList.d.ts +2 -1
- package/funcs/promptsList.d.ts.map +1 -1
- package/funcs/promptsList.js +11 -7
- package/funcs/promptsList.js.map +1 -1
- package/funcs/promptsListVersions.d.ts +2 -1
- package/funcs/promptsListVersions.d.ts.map +1 -1
- package/funcs/promptsListVersions.js +11 -7
- package/funcs/promptsListVersions.js.map +1 -1
- package/funcs/promptsRetrieve.d.ts +2 -1
- package/funcs/promptsRetrieve.d.ts.map +1 -1
- package/funcs/promptsRetrieve.js +11 -7
- package/funcs/promptsRetrieve.js.map +1 -1
- package/funcs/promptsUpdate.d.ts +2 -1
- package/funcs/promptsUpdate.d.ts.map +1 -1
- package/funcs/promptsUpdate.js +11 -7
- package/funcs/promptsUpdate.js.map +1 -1
- package/funcs/remoteconfigsRetrieve.d.ts +2 -1
- package/funcs/remoteconfigsRetrieve.d.ts.map +1 -1
- package/funcs/remoteconfigsRetrieve.js +11 -7
- package/funcs/remoteconfigsRetrieve.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +6 -6
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/files.js.map +1 -1
- package/lib/primitives.d.ts +3 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +7 -0
- package/lib/primitives.js.map +1 -1
- package/lib/sdks.d.ts +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/mcp-server/build.d.mts.map +1 -0
- package/mcp-server/build.mjs +14 -0
- package/mcp-server/build.mjs.map +1 -0
- package/mcp-server/cli/start/command.d.ts +2 -0
- package/mcp-server/cli/start/command.d.ts.map +1 -0
- package/mcp-server/cli/start/command.js +145 -0
- package/mcp-server/cli/start/command.js.map +1 -0
- package/mcp-server/cli/start/impl.d.ts +19 -0
- package/mcp-server/cli/start/impl.d.ts.map +1 -0
- package/mcp-server/cli/start/impl.js +106 -0
- package/mcp-server/cli/start/impl.js.map +1 -0
- package/mcp-server/cli.d.ts +6 -0
- package/mcp-server/cli.d.ts.map +1 -0
- package/mcp-server/cli.js +10 -0
- package/mcp-server/cli.js.map +1 -0
- package/mcp-server/console-logger.d.ts +7 -0
- package/mcp-server/console-logger.d.ts.map +1 -0
- package/mcp-server/console-logger.js +59 -0
- package/mcp-server/console-logger.js.map +1 -0
- package/mcp-server/mcp-server.d.ts +2 -0
- package/mcp-server/mcp-server.d.ts.map +1 -0
- package/mcp-server/mcp-server.js +29 -0
- package/mcp-server/mcp-server.js.map +1 -0
- package/mcp-server/resources.d.ts +27 -0
- package/mcp-server/resources.d.ts.map +1 -0
- package/mcp-server/resources.js +51 -0
- package/mcp-server/resources.js.map +1 -0
- package/mcp-server/scopes.d.ts +3 -0
- package/mcp-server/scopes.d.ts.map +1 -0
- package/mcp-server/scopes.js +8 -0
- package/mcp-server/scopes.js.map +1 -0
- package/mcp-server/server.d.ts +14 -0
- package/mcp-server/server.d.ts.map +1 -0
- package/mcp-server/server.js +65 -0
- package/mcp-server/server.js.map +1 -0
- package/mcp-server/shared.d.ts +7 -0
- package/mcp-server/shared.d.ts.map +1 -0
- package/mcp-server/shared.js +98 -0
- package/mcp-server/shared.js.map +1 -0
- package/mcp-server/tools/contactsCreate.d.ts +8 -0
- package/mcp-server/tools/contactsCreate.d.ts.map +1 -0
- package/mcp-server/tools/contactsCreate.js +64 -0
- package/mcp-server/tools/contactsCreate.js.map +1 -0
- package/mcp-server/tools/deploymentsGetConfig.d.ts +8 -0
- package/mcp-server/tools/deploymentsGetConfig.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsGetConfig.js +64 -0
- package/mcp-server/tools/deploymentsGetConfig.js.map +1 -0
- package/mcp-server/tools/deploymentsInvoke.d.ts +8 -0
- package/mcp-server/tools/deploymentsInvoke.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsInvoke.js +64 -0
- package/mcp-server/tools/deploymentsInvoke.js.map +1 -0
- package/mcp-server/tools/deploymentsList.d.ts +8 -0
- package/mcp-server/tools/deploymentsList.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsList.js +64 -0
- package/mcp-server/tools/deploymentsList.js.map +1 -0
- package/mcp-server/tools/deploymentsMetricsCreate.d.ts +8 -0
- package/mcp-server/tools/deploymentsMetricsCreate.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsMetricsCreate.js +64 -0
- package/mcp-server/tools/deploymentsMetricsCreate.js.map +1 -0
- package/mcp-server/tools/deploymentsStream.d.ts +8 -0
- package/mcp-server/tools/deploymentsStream.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsStream.js +64 -0
- package/mcp-server/tools/deploymentsStream.js.map +1 -0
- package/mcp-server/tools/feedbackCreate.d.ts +8 -0
- package/mcp-server/tools/feedbackCreate.d.ts.map +1 -0
- package/mcp-server/tools/feedbackCreate.js +64 -0
- package/mcp-server/tools/feedbackCreate.js.map +1 -0
- package/mcp-server/tools/filesCreate.d.ts +8 -0
- package/mcp-server/tools/filesCreate.d.ts.map +1 -0
- package/mcp-server/tools/filesCreate.js +64 -0
- package/mcp-server/tools/filesCreate.js.map +1 -0
- package/mcp-server/tools/filesDelete.d.ts +8 -0
- package/mcp-server/tools/filesDelete.d.ts.map +1 -0
- package/mcp-server/tools/filesDelete.js +61 -0
- package/mcp-server/tools/filesDelete.js.map +1 -0
- package/mcp-server/tools/filesGet.d.ts +8 -0
- package/mcp-server/tools/filesGet.d.ts.map +1 -0
- package/mcp-server/tools/filesGet.js +64 -0
- package/mcp-server/tools/filesGet.js.map +1 -0
- package/mcp-server/tools/filesList.d.ts +8 -0
- package/mcp-server/tools/filesList.d.ts.map +1 -0
- package/mcp-server/tools/filesList.js +64 -0
- package/mcp-server/tools/filesList.js.map +1 -0
- package/mcp-server/tools/promptsCreate.d.ts +8 -0
- package/mcp-server/tools/promptsCreate.d.ts.map +1 -0
- package/mcp-server/tools/promptsCreate.js +62 -0
- package/mcp-server/tools/promptsCreate.js.map +1 -0
- package/mcp-server/tools/promptsDelete.d.ts +8 -0
- package/mcp-server/tools/promptsDelete.d.ts.map +1 -0
- package/mcp-server/tools/promptsDelete.js +61 -0
- package/mcp-server/tools/promptsDelete.js.map +1 -0
- package/mcp-server/tools/promptsGetVersion.d.ts +8 -0
- package/mcp-server/tools/promptsGetVersion.d.ts.map +1 -0
- package/mcp-server/tools/promptsGetVersion.js +64 -0
- package/mcp-server/tools/promptsGetVersion.js.map +1 -0
- package/mcp-server/tools/promptsList.d.ts +8 -0
- package/mcp-server/tools/promptsList.d.ts.map +1 -0
- package/mcp-server/tools/promptsList.js +64 -0
- package/mcp-server/tools/promptsList.js.map +1 -0
- package/mcp-server/tools/promptsListVersions.d.ts +8 -0
- package/mcp-server/tools/promptsListVersions.d.ts.map +1 -0
- package/mcp-server/tools/promptsListVersions.js +64 -0
- package/mcp-server/tools/promptsListVersions.js.map +1 -0
- package/mcp-server/tools/promptsRetrieve.d.ts +8 -0
- package/mcp-server/tools/promptsRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/promptsRetrieve.js +64 -0
- package/mcp-server/tools/promptsRetrieve.js.map +1 -0
- package/mcp-server/tools/promptsUpdate.d.ts +8 -0
- package/mcp-server/tools/promptsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/promptsUpdate.js +62 -0
- package/mcp-server/tools/promptsUpdate.js.map +1 -0
- package/mcp-server/tools/remoteconfigsRetrieve.d.ts +8 -0
- package/mcp-server/tools/remoteconfigsRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/remoteconfigsRetrieve.js +63 -0
- package/mcp-server/tools/remoteconfigsRetrieve.js.map +1 -0
- package/mcp-server/tools.d.ts +25 -0
- package/mcp-server/tools.d.ts.map +1 -0
- package/mcp-server/tools.js +74 -0
- package/mcp-server/tools.js.map +1 -0
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createprompt.d.ts +10 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +4 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +5 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +2 -0
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +5 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +2 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +5 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +5 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +5 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +5 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/updateprompt.d.ts +10 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +4 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +16 -2
- package/packages/orq-rc/README.md +83 -2
- package/packages/orq-rc/docs/sdks/datasets/README.md +934 -0
- package/packages/orq-rc/docs/sdks/prompts/README.md +110 -110
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +1397 -41
- package/packages/orq-rc/package.json +16 -2
- package/packages/orq-rc/src/funcs/contactsCreate.ts +35 -8
- package/packages/orq-rc/src/funcs/datasetsClear.ts +161 -0
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +159 -0
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +161 -0
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +165 -0
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +161 -0
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +176 -0
- package/packages/orq-rc/src/funcs/datasetsList.ts +161 -0
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +168 -0
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +169 -0
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +175 -0
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +170 -0
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +173 -0
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +35 -8
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +35 -8
- package/packages/orq-rc/src/funcs/deploymentsList.ts +36 -8
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +35 -8
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +35 -8
- package/packages/orq-rc/src/funcs/filesCreate.ts +35 -8
- package/packages/orq-rc/src/funcs/filesDelete.ts +35 -8
- package/packages/orq-rc/src/funcs/filesGet.ts +35 -8
- package/packages/orq-rc/src/funcs/filesList.ts +35 -8
- package/packages/orq-rc/src/funcs/promptsCreate.ts +35 -8
- package/packages/orq-rc/src/funcs/promptsDelete.ts +35 -8
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +36 -8
- package/packages/orq-rc/src/funcs/promptsList.ts +36 -9
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +35 -8
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +35 -8
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +36 -8
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +35 -8
- package/packages/orq-rc/src/lib/config.ts +6 -6
- package/packages/orq-rc/src/lib/files.ts +1 -1
- package/packages/orq-rc/src/lib/primitives.ts +14 -0
- package/packages/orq-rc/src/lib/sdks.ts +1 -1
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +116 -0
- package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +137 -0
- package/packages/orq-rc/src/mcp-server/cli.ts +13 -0
- package/packages/orq-rc/src/mcp-server/console-logger.ts +71 -0
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +26 -0
- package/packages/orq-rc/src/mcp-server/resources.ts +96 -0
- package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
- package/packages/orq-rc/src/mcp-server/server.ts +98 -0
- package/packages/orq-rc/src/mcp-server/shared.ts +75 -0
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoints.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +33 -0
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +33 -0
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
- package/packages/orq-rc/src/mcp-server/tools.ts +116 -0
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +1816 -0
- package/packages/orq-rc/src/models/operations/cleardataset.ts +75 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +296 -0
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +1740 -0
- package/packages/orq-rc/src/models/operations/createprompt.ts +728 -629
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +81 -0
- package/packages/orq-rc/src/models/operations/deletedataset.ts +75 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +7 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +7 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +7 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +7 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +23 -48
- package/packages/orq-rc/src/models/operations/index.ts +12 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1071 -0
- package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +23 -48
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +924 -0
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +288 -0
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +1729 -0
- package/packages/orq-rc/src/models/operations/updatedataset.ts +374 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +643 -716
- package/packages/orq-rc/src/sdk/datasets.ts +222 -0
- package/packages/orq-rc/src/sdk/prompts.ts +14 -14
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/types/async.ts +68 -0
- package/src/funcs/contactsCreate.ts +35 -8
- package/src/funcs/deploymentsGetConfig.ts +35 -8
- package/src/funcs/deploymentsInvoke.ts +35 -8
- package/src/funcs/deploymentsList.ts +36 -8
- package/src/funcs/deploymentsMetricsCreate.ts +35 -8
- package/src/funcs/deploymentsStream.ts +35 -8
- package/src/funcs/feedbackCreate.ts +35 -8
- package/src/funcs/filesCreate.ts +35 -8
- package/src/funcs/filesDelete.ts +35 -8
- package/src/funcs/filesGet.ts +35 -8
- package/src/funcs/filesList.ts +35 -8
- package/src/funcs/promptsCreate.ts +35 -8
- package/src/funcs/promptsDelete.ts +35 -8
- package/src/funcs/promptsGetVersion.ts +36 -8
- package/src/funcs/promptsList.ts +35 -8
- package/src/funcs/promptsListVersions.ts +35 -8
- package/src/funcs/promptsRetrieve.ts +35 -8
- package/src/funcs/promptsUpdate.ts +36 -8
- package/src/funcs/remoteconfigsRetrieve.ts +35 -8
- package/src/lib/config.ts +6 -6
- package/src/lib/files.ts +1 -1
- package/src/lib/primitives.ts +14 -0
- package/src/lib/sdks.ts +1 -1
- package/src/mcp-server/cli/start/command.ts +116 -0
- package/src/mcp-server/cli/start/impl.ts +137 -0
- package/src/mcp-server/cli.ts +13 -0
- package/src/mcp-server/console-logger.ts +71 -0
- package/src/mcp-server/mcp-server.ts +26 -0
- package/src/mcp-server/resources.ts +96 -0
- package/src/mcp-server/scopes.ts +7 -0
- package/src/mcp-server/server.ts +76 -0
- package/src/mcp-server/shared.ts +75 -0
- package/src/mcp-server/tools/contactsCreate.ts +37 -0
- package/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
- package/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
- package/src/mcp-server/tools/deploymentsList.ts +37 -0
- package/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
- package/src/mcp-server/tools/deploymentsStream.ts +37 -0
- package/src/mcp-server/tools/feedbackCreate.ts +37 -0
- package/src/mcp-server/tools/filesCreate.ts +37 -0
- package/src/mcp-server/tools/filesDelete.ts +33 -0
- package/src/mcp-server/tools/filesGet.ts +37 -0
- package/src/mcp-server/tools/filesList.ts +37 -0
- package/src/mcp-server/tools/promptsCreate.ts +35 -0
- package/src/mcp-server/tools/promptsDelete.ts +33 -0
- package/src/mcp-server/tools/promptsGetVersion.ts +37 -0
- package/src/mcp-server/tools/promptsList.ts +37 -0
- package/src/mcp-server/tools/promptsListVersions.ts +37 -0
- package/src/mcp-server/tools/promptsRetrieve.ts +37 -0
- package/src/mcp-server/tools/promptsUpdate.ts +35 -0
- package/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
- package/src/mcp-server/tools.ts +116 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createprompt.ts +14 -0
- package/src/models/operations/deploymentgetconfig.ts +7 -0
- package/src/models/operations/deployments.ts +7 -0
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +7 -0
- package/src/models/operations/getoneprompt.ts +7 -0
- package/src/models/operations/getpromptversion.ts +7 -0
- package/src/models/operations/listpromptversions.ts +7 -0
- package/src/models/operations/updateprompt.ts +14 -0
- package/src/types/async.ts +68 -0
- package/types/async.d.ts +23 -0
- package/types/async.d.ts.map +1 -0
- package/types/async.js +44 -0
- package/types/async.js.map +1 -0
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The type of the model
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const ModelType = {
|
|
16
16
|
Chat: "chat",
|
|
17
17
|
Completion: "completion",
|
|
18
18
|
Embedding: "embedding",
|
|
@@ -26,12 +26,12 @@ export const UpdatePromptModelType = {
|
|
|
26
26
|
/**
|
|
27
27
|
* The type of the model
|
|
28
28
|
*/
|
|
29
|
-
export type
|
|
29
|
+
export type ModelType = ClosedEnum<typeof ModelType>;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Only supported on `image` models.
|
|
33
33
|
*/
|
|
34
|
-
export const
|
|
34
|
+
export const Format = {
|
|
35
35
|
Url: "url",
|
|
36
36
|
B64Json: "b64_json",
|
|
37
37
|
Text: "text",
|
|
@@ -40,47 +40,45 @@ export const UpdatePromptFormat = {
|
|
|
40
40
|
/**
|
|
41
41
|
* Only supported on `image` models.
|
|
42
42
|
*/
|
|
43
|
-
export type
|
|
43
|
+
export type Format = ClosedEnum<typeof Format>;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Only supported on `image` models.
|
|
47
47
|
*/
|
|
48
|
-
export const
|
|
48
|
+
export const Quality = {
|
|
49
49
|
Standard: "standard",
|
|
50
50
|
Hd: "hd",
|
|
51
51
|
} as const;
|
|
52
52
|
/**
|
|
53
53
|
* Only supported on `image` models.
|
|
54
54
|
*/
|
|
55
|
-
export type
|
|
55
|
+
export type Quality = ClosedEnum<typeof Quality>;
|
|
56
56
|
|
|
57
|
-
export const
|
|
57
|
+
export const UpdatePromptResponseFormatType = {
|
|
58
58
|
JsonObject: "json_object",
|
|
59
59
|
} as const;
|
|
60
|
-
export type
|
|
61
|
-
typeof
|
|
60
|
+
export type UpdatePromptResponseFormatType = ClosedEnum<
|
|
61
|
+
typeof UpdatePromptResponseFormatType
|
|
62
62
|
>;
|
|
63
63
|
|
|
64
|
-
export type
|
|
65
|
-
type:
|
|
64
|
+
export type ResponseFormat2 = {
|
|
65
|
+
type: UpdatePromptResponseFormatType;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
export const
|
|
68
|
+
export const ResponseFormatType = {
|
|
69
69
|
JsonSchema: "json_schema",
|
|
70
70
|
} as const;
|
|
71
|
-
export type
|
|
72
|
-
typeof UpdatePromptResponseFormatType
|
|
73
|
-
>;
|
|
71
|
+
export type ResponseFormatType = ClosedEnum<typeof ResponseFormatType>;
|
|
74
72
|
|
|
75
|
-
export type
|
|
73
|
+
export type JsonSchema = {
|
|
76
74
|
name: string;
|
|
77
75
|
strict: boolean;
|
|
78
76
|
schema: { [k: string]: any };
|
|
79
77
|
};
|
|
80
78
|
|
|
81
|
-
export type
|
|
82
|
-
type:
|
|
83
|
-
jsonSchema:
|
|
79
|
+
export type ResponseFormat1 = {
|
|
80
|
+
type: ResponseFormatType;
|
|
81
|
+
jsonSchema: JsonSchema;
|
|
84
82
|
};
|
|
85
83
|
|
|
86
84
|
/**
|
|
@@ -94,42 +92,36 @@ export type UpdatePromptResponseFormat1 = {
|
|
|
94
92
|
*
|
|
95
93
|
* 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.
|
|
96
94
|
*/
|
|
97
|
-
export type
|
|
98
|
-
| UpdatePromptResponseFormat2
|
|
99
|
-
| UpdatePromptResponseFormat1;
|
|
95
|
+
export type ResponseFormat = ResponseFormat2 | ResponseFormat1;
|
|
100
96
|
|
|
101
97
|
/**
|
|
102
98
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
103
99
|
*/
|
|
104
|
-
export const
|
|
100
|
+
export const PhotoRealVersion = {
|
|
105
101
|
V1: "v1",
|
|
106
102
|
V2: "v2",
|
|
107
103
|
} as const;
|
|
108
104
|
/**
|
|
109
105
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
110
106
|
*/
|
|
111
|
-
export type
|
|
112
|
-
typeof UpdatePromptPhotoRealVersion
|
|
113
|
-
>;
|
|
107
|
+
export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
|
|
114
108
|
|
|
115
109
|
/**
|
|
116
110
|
* The format to return the embeddings
|
|
117
111
|
*/
|
|
118
|
-
export const
|
|
112
|
+
export const EncodingFormat = {
|
|
119
113
|
Float: "float",
|
|
120
114
|
Base64: "base64",
|
|
121
115
|
} as const;
|
|
122
116
|
/**
|
|
123
117
|
* The format to return the embeddings
|
|
124
118
|
*/
|
|
125
|
-
export type
|
|
126
|
-
typeof UpdatePromptEncodingFormat
|
|
127
|
-
>;
|
|
119
|
+
export type EncodingFormat = ClosedEnum<typeof EncodingFormat>;
|
|
128
120
|
|
|
129
121
|
/**
|
|
130
122
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
131
123
|
*/
|
|
132
|
-
export const
|
|
124
|
+
export const ReasoningEffort = {
|
|
133
125
|
Low: "low",
|
|
134
126
|
Medium: "medium",
|
|
135
127
|
High: "high",
|
|
@@ -137,14 +129,12 @@ export const UpdatePromptReasoningEffort = {
|
|
|
137
129
|
/**
|
|
138
130
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
139
131
|
*/
|
|
140
|
-
export type
|
|
141
|
-
typeof UpdatePromptReasoningEffort
|
|
142
|
-
>;
|
|
132
|
+
export type ReasoningEffort = ClosedEnum<typeof ReasoningEffort>;
|
|
143
133
|
|
|
144
134
|
/**
|
|
145
135
|
* Model Parameters: Not all parameters apply to every model
|
|
146
136
|
*/
|
|
147
|
-
export type
|
|
137
|
+
export type ModelParameters = {
|
|
148
138
|
/**
|
|
149
139
|
* Only supported on `chat` and `completion` models.
|
|
150
140
|
*/
|
|
@@ -180,7 +170,7 @@ export type UpdatePromptModelParameters = {
|
|
|
180
170
|
/**
|
|
181
171
|
* Only supported on `image` models.
|
|
182
172
|
*/
|
|
183
|
-
format?:
|
|
173
|
+
format?: Format | undefined;
|
|
184
174
|
/**
|
|
185
175
|
* Only supported on `image` models.
|
|
186
176
|
*/
|
|
@@ -188,7 +178,7 @@ export type UpdatePromptModelParameters = {
|
|
|
188
178
|
/**
|
|
189
179
|
* Only supported on `image` models.
|
|
190
180
|
*/
|
|
191
|
-
quality?:
|
|
181
|
+
quality?: Quality | undefined;
|
|
192
182
|
/**
|
|
193
183
|
* Only supported on `image` models.
|
|
194
184
|
*/
|
|
@@ -204,26 +194,26 @@ export type UpdatePromptModelParameters = {
|
|
|
204
194
|
*
|
|
205
195
|
* 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.
|
|
206
196
|
*/
|
|
207
|
-
responseFormat?:
|
|
208
|
-
| UpdatePromptResponseFormat2
|
|
209
|
-
| UpdatePromptResponseFormat1
|
|
210
|
-
| null
|
|
211
|
-
| undefined;
|
|
197
|
+
responseFormat?: ResponseFormat2 | ResponseFormat1 | null | undefined;
|
|
212
198
|
/**
|
|
213
199
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
214
200
|
*/
|
|
215
|
-
photoRealVersion?:
|
|
201
|
+
photoRealVersion?: PhotoRealVersion | undefined;
|
|
216
202
|
/**
|
|
217
203
|
* The format to return the embeddings
|
|
218
204
|
*/
|
|
219
|
-
encodingFormat?:
|
|
205
|
+
encodingFormat?: EncodingFormat | undefined;
|
|
220
206
|
/**
|
|
221
207
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
222
208
|
*/
|
|
223
|
-
reasoningEffort?:
|
|
209
|
+
reasoningEffort?: ReasoningEffort | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
|
|
212
|
+
*/
|
|
213
|
+
budgetTokens?: number | undefined;
|
|
224
214
|
};
|
|
225
215
|
|
|
226
|
-
export const
|
|
216
|
+
export const Provider = {
|
|
227
217
|
Cohere: "cohere",
|
|
228
218
|
Openai: "openai",
|
|
229
219
|
Anthropic: "anthropic",
|
|
@@ -243,7 +233,7 @@ export const UpdatePromptProvider = {
|
|
|
243
233
|
Togetherai: "togetherai",
|
|
244
234
|
Elevenlabs: "elevenlabs",
|
|
245
235
|
} as const;
|
|
246
|
-
export type
|
|
236
|
+
export type Provider = ClosedEnum<typeof Provider>;
|
|
247
237
|
|
|
248
238
|
/**
|
|
249
239
|
* The role of the prompt message
|
|
@@ -346,23 +336,23 @@ export type UpdatePromptMessages = {
|
|
|
346
336
|
/**
|
|
347
337
|
* A list of messages compatible with the openAI schema
|
|
348
338
|
*/
|
|
349
|
-
export type
|
|
339
|
+
export type PromptConfig = {
|
|
350
340
|
stream?: boolean | undefined;
|
|
351
341
|
model?: string | undefined;
|
|
352
342
|
/**
|
|
353
343
|
* The type of the model
|
|
354
344
|
*/
|
|
355
|
-
modelType?:
|
|
345
|
+
modelType?: ModelType | undefined;
|
|
356
346
|
/**
|
|
357
347
|
* Model Parameters: Not all parameters apply to every model
|
|
358
348
|
*/
|
|
359
|
-
modelParameters?:
|
|
360
|
-
provider?:
|
|
349
|
+
modelParameters?: ModelParameters | undefined;
|
|
350
|
+
provider?: Provider | undefined;
|
|
361
351
|
version?: string | undefined;
|
|
362
352
|
messages: Array<UpdatePromptMessages>;
|
|
363
353
|
};
|
|
364
354
|
|
|
365
|
-
export const
|
|
355
|
+
export const UseCases = {
|
|
366
356
|
Agents: "Agents",
|
|
367
357
|
AgentsSimulations: "Agents simulations",
|
|
368
358
|
APIInteraction: "API interaction",
|
|
@@ -380,12 +370,12 @@ export const UpdatePromptUseCases = {
|
|
|
380
370
|
Summarization: "Summarization",
|
|
381
371
|
Tagging: "Tagging",
|
|
382
372
|
} as const;
|
|
383
|
-
export type
|
|
373
|
+
export type UseCases = ClosedEnum<typeof UseCases>;
|
|
384
374
|
|
|
385
375
|
/**
|
|
386
376
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
387
377
|
*/
|
|
388
|
-
export const
|
|
378
|
+
export const Language = {
|
|
389
379
|
Chinese: "Chinese",
|
|
390
380
|
Dutch: "Dutch",
|
|
391
381
|
English: "English",
|
|
@@ -397,17 +387,17 @@ export const UpdatePromptLanguage = {
|
|
|
397
387
|
/**
|
|
398
388
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
399
389
|
*/
|
|
400
|
-
export type
|
|
390
|
+
export type Language = ClosedEnum<typeof Language>;
|
|
401
391
|
|
|
402
392
|
export type UpdatePromptMetadata = {
|
|
403
393
|
/**
|
|
404
394
|
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
405
395
|
*/
|
|
406
|
-
useCases?: Array<
|
|
396
|
+
useCases?: Array<UseCases> | undefined;
|
|
407
397
|
/**
|
|
408
398
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
409
399
|
*/
|
|
410
|
-
language?:
|
|
400
|
+
language?: Language | undefined;
|
|
411
401
|
};
|
|
412
402
|
|
|
413
403
|
export type UpdatePromptRequestBody = {
|
|
@@ -428,7 +418,7 @@ export type UpdatePromptRequestBody = {
|
|
|
428
418
|
/**
|
|
429
419
|
* A list of messages compatible with the openAI schema
|
|
430
420
|
*/
|
|
431
|
-
promptConfig?:
|
|
421
|
+
promptConfig?: PromptConfig | undefined;
|
|
432
422
|
metadata?: UpdatePromptMetadata | undefined;
|
|
433
423
|
};
|
|
434
424
|
|
|
@@ -450,7 +440,7 @@ export type UpdatePromptPromptsType = ClosedEnum<
|
|
|
450
440
|
/**
|
|
451
441
|
* The type of the model
|
|
452
442
|
*/
|
|
453
|
-
export const
|
|
443
|
+
export const UpdatePromptModelType = {
|
|
454
444
|
Chat: "chat",
|
|
455
445
|
Completion: "completion",
|
|
456
446
|
Embedding: "embedding",
|
|
@@ -464,14 +454,12 @@ export const UpdatePromptPromptsModelType = {
|
|
|
464
454
|
/**
|
|
465
455
|
* The type of the model
|
|
466
456
|
*/
|
|
467
|
-
export type
|
|
468
|
-
typeof UpdatePromptPromptsModelType
|
|
469
|
-
>;
|
|
457
|
+
export type UpdatePromptModelType = ClosedEnum<typeof UpdatePromptModelType>;
|
|
470
458
|
|
|
471
459
|
/**
|
|
472
460
|
* Only supported on `image` models.
|
|
473
461
|
*/
|
|
474
|
-
export const
|
|
462
|
+
export const UpdatePromptFormat = {
|
|
475
463
|
Url: "url",
|
|
476
464
|
B64Json: "b64_json",
|
|
477
465
|
Text: "text",
|
|
@@ -480,40 +468,36 @@ export const UpdatePromptPromptsFormat = {
|
|
|
480
468
|
/**
|
|
481
469
|
* Only supported on `image` models.
|
|
482
470
|
*/
|
|
483
|
-
export type
|
|
484
|
-
typeof UpdatePromptPromptsFormat
|
|
485
|
-
>;
|
|
471
|
+
export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
|
|
486
472
|
|
|
487
473
|
/**
|
|
488
474
|
* Only supported on `image` models.
|
|
489
475
|
*/
|
|
490
|
-
export const
|
|
476
|
+
export const UpdatePromptQuality = {
|
|
491
477
|
Standard: "standard",
|
|
492
478
|
Hd: "hd",
|
|
493
479
|
} as const;
|
|
494
480
|
/**
|
|
495
481
|
* Only supported on `image` models.
|
|
496
482
|
*/
|
|
497
|
-
export type
|
|
498
|
-
typeof UpdatePromptPromptsQuality
|
|
499
|
-
>;
|
|
483
|
+
export type UpdatePromptQuality = ClosedEnum<typeof UpdatePromptQuality>;
|
|
500
484
|
|
|
501
|
-
export const
|
|
485
|
+
export const UpdatePromptResponseFormatPromptsResponseType = {
|
|
502
486
|
JsonObject: "json_object",
|
|
503
487
|
} as const;
|
|
504
|
-
export type
|
|
505
|
-
typeof
|
|
488
|
+
export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
489
|
+
typeof UpdatePromptResponseFormatPromptsResponseType
|
|
506
490
|
>;
|
|
507
491
|
|
|
508
|
-
export type
|
|
509
|
-
type:
|
|
492
|
+
export type UpdatePromptResponseFormat2 = {
|
|
493
|
+
type: UpdatePromptResponseFormatPromptsResponseType;
|
|
510
494
|
};
|
|
511
495
|
|
|
512
|
-
export const
|
|
496
|
+
export const UpdatePromptResponseFormatPromptsType = {
|
|
513
497
|
JsonSchema: "json_schema",
|
|
514
498
|
} as const;
|
|
515
|
-
export type
|
|
516
|
-
typeof
|
|
499
|
+
export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
|
|
500
|
+
typeof UpdatePromptResponseFormatPromptsType
|
|
517
501
|
>;
|
|
518
502
|
|
|
519
503
|
export type UpdatePromptResponseFormatJsonSchema = {
|
|
@@ -522,8 +506,8 @@ export type UpdatePromptResponseFormatJsonSchema = {
|
|
|
522
506
|
schema: { [k: string]: any };
|
|
523
507
|
};
|
|
524
508
|
|
|
525
|
-
export type
|
|
526
|
-
type:
|
|
509
|
+
export type UpdatePromptResponseFormat1 = {
|
|
510
|
+
type: UpdatePromptResponseFormatPromptsType;
|
|
527
511
|
jsonSchema: UpdatePromptResponseFormatJsonSchema;
|
|
528
512
|
};
|
|
529
513
|
|
|
@@ -538,42 +522,42 @@ export type UpdatePromptResponseFormatPrompts1 = {
|
|
|
538
522
|
*
|
|
539
523
|
* 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.
|
|
540
524
|
*/
|
|
541
|
-
export type
|
|
542
|
-
|
|
|
543
|
-
|
|
|
525
|
+
export type UpdatePromptResponseFormat =
|
|
526
|
+
| UpdatePromptResponseFormat2
|
|
527
|
+
| UpdatePromptResponseFormat1;
|
|
544
528
|
|
|
545
529
|
/**
|
|
546
530
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
547
531
|
*/
|
|
548
|
-
export const
|
|
532
|
+
export const UpdatePromptPhotoRealVersion = {
|
|
549
533
|
V1: "v1",
|
|
550
534
|
V2: "v2",
|
|
551
535
|
} as const;
|
|
552
536
|
/**
|
|
553
537
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
554
538
|
*/
|
|
555
|
-
export type
|
|
556
|
-
typeof
|
|
539
|
+
export type UpdatePromptPhotoRealVersion = ClosedEnum<
|
|
540
|
+
typeof UpdatePromptPhotoRealVersion
|
|
557
541
|
>;
|
|
558
542
|
|
|
559
543
|
/**
|
|
560
544
|
* The format to return the embeddings
|
|
561
545
|
*/
|
|
562
|
-
export const
|
|
546
|
+
export const UpdatePromptEncodingFormat = {
|
|
563
547
|
Float: "float",
|
|
564
548
|
Base64: "base64",
|
|
565
549
|
} as const;
|
|
566
550
|
/**
|
|
567
551
|
* The format to return the embeddings
|
|
568
552
|
*/
|
|
569
|
-
export type
|
|
570
|
-
typeof
|
|
553
|
+
export type UpdatePromptEncodingFormat = ClosedEnum<
|
|
554
|
+
typeof UpdatePromptEncodingFormat
|
|
571
555
|
>;
|
|
572
556
|
|
|
573
557
|
/**
|
|
574
558
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
575
559
|
*/
|
|
576
|
-
export const
|
|
560
|
+
export const UpdatePromptReasoningEffort = {
|
|
577
561
|
Low: "low",
|
|
578
562
|
Medium: "medium",
|
|
579
563
|
High: "high",
|
|
@@ -581,14 +565,14 @@ export const UpdatePromptPromptsReasoningEffort = {
|
|
|
581
565
|
/**
|
|
582
566
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
583
567
|
*/
|
|
584
|
-
export type
|
|
585
|
-
typeof
|
|
568
|
+
export type UpdatePromptReasoningEffort = ClosedEnum<
|
|
569
|
+
typeof UpdatePromptReasoningEffort
|
|
586
570
|
>;
|
|
587
571
|
|
|
588
572
|
/**
|
|
589
573
|
* Model Parameters: Not all parameters apply to every model
|
|
590
574
|
*/
|
|
591
|
-
export type
|
|
575
|
+
export type UpdatePromptModelParameters = {
|
|
592
576
|
/**
|
|
593
577
|
* Only supported on `chat` and `completion` models.
|
|
594
578
|
*/
|
|
@@ -624,7 +608,7 @@ export type UpdatePromptPromptsModelParameters = {
|
|
|
624
608
|
/**
|
|
625
609
|
* Only supported on `image` models.
|
|
626
610
|
*/
|
|
627
|
-
format?:
|
|
611
|
+
format?: UpdatePromptFormat | undefined;
|
|
628
612
|
/**
|
|
629
613
|
* Only supported on `image` models.
|
|
630
614
|
*/
|
|
@@ -632,7 +616,7 @@ export type UpdatePromptPromptsModelParameters = {
|
|
|
632
616
|
/**
|
|
633
617
|
* Only supported on `image` models.
|
|
634
618
|
*/
|
|
635
|
-
quality?:
|
|
619
|
+
quality?: UpdatePromptQuality | undefined;
|
|
636
620
|
/**
|
|
637
621
|
* Only supported on `image` models.
|
|
638
622
|
*/
|
|
@@ -649,25 +633,29 @@ export type UpdatePromptPromptsModelParameters = {
|
|
|
649
633
|
* 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.
|
|
650
634
|
*/
|
|
651
635
|
responseFormat?:
|
|
652
|
-
|
|
|
653
|
-
|
|
|
636
|
+
| UpdatePromptResponseFormat2
|
|
637
|
+
| UpdatePromptResponseFormat1
|
|
654
638
|
| null
|
|
655
639
|
| undefined;
|
|
656
640
|
/**
|
|
657
641
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
658
642
|
*/
|
|
659
|
-
photoRealVersion?:
|
|
643
|
+
photoRealVersion?: UpdatePromptPhotoRealVersion | undefined;
|
|
660
644
|
/**
|
|
661
645
|
* The format to return the embeddings
|
|
662
646
|
*/
|
|
663
|
-
encodingFormat?:
|
|
647
|
+
encodingFormat?: UpdatePromptEncodingFormat | undefined;
|
|
664
648
|
/**
|
|
665
649
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
666
650
|
*/
|
|
667
|
-
reasoningEffort?:
|
|
651
|
+
reasoningEffort?: UpdatePromptReasoningEffort | undefined;
|
|
652
|
+
/**
|
|
653
|
+
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
|
|
654
|
+
*/
|
|
655
|
+
budgetTokens?: number | undefined;
|
|
668
656
|
};
|
|
669
657
|
|
|
670
|
-
export const
|
|
658
|
+
export const UpdatePromptProvider = {
|
|
671
659
|
Cohere: "cohere",
|
|
672
660
|
Openai: "openai",
|
|
673
661
|
Anthropic: "anthropic",
|
|
@@ -687,9 +675,7 @@ export const UpdatePromptPromptsProvider = {
|
|
|
687
675
|
Togetherai: "togetherai",
|
|
688
676
|
Elevenlabs: "elevenlabs",
|
|
689
677
|
} as const;
|
|
690
|
-
export type
|
|
691
|
-
typeof UpdatePromptPromptsProvider
|
|
692
|
-
>;
|
|
678
|
+
export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
|
|
693
679
|
|
|
694
680
|
/**
|
|
695
681
|
* The role of the prompt message
|
|
@@ -804,7 +790,7 @@ export type UpdatePromptPromptsMessages = {
|
|
|
804
790
|
/**
|
|
805
791
|
* A list of messages compatible with the openAI schema
|
|
806
792
|
*/
|
|
807
|
-
export type
|
|
793
|
+
export type UpdatePromptPromptConfig = {
|
|
808
794
|
stream?: boolean | undefined;
|
|
809
795
|
model?: string | undefined;
|
|
810
796
|
/**
|
|
@@ -814,12 +800,12 @@ export type UpdatePromptPromptsPromptConfig = {
|
|
|
814
800
|
/**
|
|
815
801
|
* The type of the model
|
|
816
802
|
*/
|
|
817
|
-
modelType?:
|
|
803
|
+
modelType?: UpdatePromptModelType | undefined;
|
|
818
804
|
/**
|
|
819
805
|
* Model Parameters: Not all parameters apply to every model
|
|
820
806
|
*/
|
|
821
|
-
modelParameters?:
|
|
822
|
-
provider?:
|
|
807
|
+
modelParameters?: UpdatePromptModelParameters | undefined;
|
|
808
|
+
provider?: UpdatePromptProvider | undefined;
|
|
823
809
|
/**
|
|
824
810
|
* The id of the resource
|
|
825
811
|
*/
|
|
@@ -828,7 +814,7 @@ export type UpdatePromptPromptsPromptConfig = {
|
|
|
828
814
|
messages: Array<UpdatePromptPromptsMessages>;
|
|
829
815
|
};
|
|
830
816
|
|
|
831
|
-
export const
|
|
817
|
+
export const UpdatePromptUseCases = {
|
|
832
818
|
Agents: "Agents",
|
|
833
819
|
AgentsSimulations: "Agents simulations",
|
|
834
820
|
APIInteraction: "API interaction",
|
|
@@ -846,14 +832,12 @@ export const UpdatePromptPromptsUseCases = {
|
|
|
846
832
|
Summarization: "Summarization",
|
|
847
833
|
Tagging: "Tagging",
|
|
848
834
|
} as const;
|
|
849
|
-
export type
|
|
850
|
-
typeof UpdatePromptPromptsUseCases
|
|
851
|
-
>;
|
|
835
|
+
export type UpdatePromptUseCases = ClosedEnum<typeof UpdatePromptUseCases>;
|
|
852
836
|
|
|
853
837
|
/**
|
|
854
838
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
855
839
|
*/
|
|
856
|
-
export const
|
|
840
|
+
export const UpdatePromptLanguage = {
|
|
857
841
|
Chinese: "Chinese",
|
|
858
842
|
Dutch: "Dutch",
|
|
859
843
|
English: "English",
|
|
@@ -865,19 +849,17 @@ export const UpdatePromptPromptsLanguage = {
|
|
|
865
849
|
/**
|
|
866
850
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
867
851
|
*/
|
|
868
|
-
export type
|
|
869
|
-
typeof UpdatePromptPromptsLanguage
|
|
870
|
-
>;
|
|
852
|
+
export type UpdatePromptLanguage = ClosedEnum<typeof UpdatePromptLanguage>;
|
|
871
853
|
|
|
872
854
|
export type UpdatePromptPromptsMetadata = {
|
|
873
855
|
/**
|
|
874
856
|
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
875
857
|
*/
|
|
876
|
-
useCases?: Array<
|
|
858
|
+
useCases?: Array<UpdatePromptUseCases> | undefined;
|
|
877
859
|
/**
|
|
878
860
|
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
879
861
|
*/
|
|
880
|
-
language?:
|
|
862
|
+
language?: UpdatePromptLanguage | undefined;
|
|
881
863
|
};
|
|
882
864
|
|
|
883
865
|
/**
|
|
@@ -903,177 +885,164 @@ export type UpdatePromptResponseBody = {
|
|
|
903
885
|
/**
|
|
904
886
|
* A list of messages compatible with the openAI schema
|
|
905
887
|
*/
|
|
906
|
-
promptConfig:
|
|
888
|
+
promptConfig: UpdatePromptPromptConfig;
|
|
907
889
|
metadata?: UpdatePromptPromptsMetadata | undefined;
|
|
908
890
|
};
|
|
909
891
|
|
|
910
892
|
/** @internal */
|
|
911
|
-
export const
|
|
912
|
-
|
|
913
|
-
> = z.nativeEnum(UpdatePromptModelType);
|
|
893
|
+
export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
|
|
894
|
+
.nativeEnum(ModelType);
|
|
914
895
|
|
|
915
896
|
/** @internal */
|
|
916
|
-
export const
|
|
917
|
-
|
|
918
|
-
> = UpdatePromptModelType$inboundSchema;
|
|
897
|
+
export const ModelType$outboundSchema: z.ZodNativeEnum<typeof ModelType> =
|
|
898
|
+
ModelType$inboundSchema;
|
|
919
899
|
|
|
920
900
|
/**
|
|
921
901
|
* @internal
|
|
922
902
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
923
903
|
*/
|
|
924
|
-
export namespace
|
|
925
|
-
/** @deprecated use `
|
|
926
|
-
export const inboundSchema =
|
|
927
|
-
/** @deprecated use `
|
|
928
|
-
export const outboundSchema =
|
|
904
|
+
export namespace ModelType$ {
|
|
905
|
+
/** @deprecated use `ModelType$inboundSchema` instead. */
|
|
906
|
+
export const inboundSchema = ModelType$inboundSchema;
|
|
907
|
+
/** @deprecated use `ModelType$outboundSchema` instead. */
|
|
908
|
+
export const outboundSchema = ModelType$outboundSchema;
|
|
929
909
|
}
|
|
930
910
|
|
|
931
911
|
/** @internal */
|
|
932
|
-
export const
|
|
933
|
-
|
|
934
|
-
> = z.nativeEnum(UpdatePromptFormat);
|
|
912
|
+
export const Format$inboundSchema: z.ZodNativeEnum<typeof Format> = z
|
|
913
|
+
.nativeEnum(Format);
|
|
935
914
|
|
|
936
915
|
/** @internal */
|
|
937
|
-
export const
|
|
938
|
-
|
|
939
|
-
> = UpdatePromptFormat$inboundSchema;
|
|
916
|
+
export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> =
|
|
917
|
+
Format$inboundSchema;
|
|
940
918
|
|
|
941
919
|
/**
|
|
942
920
|
* @internal
|
|
943
921
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
944
922
|
*/
|
|
945
|
-
export namespace
|
|
946
|
-
/** @deprecated use `
|
|
947
|
-
export const inboundSchema =
|
|
948
|
-
/** @deprecated use `
|
|
949
|
-
export const outboundSchema =
|
|
923
|
+
export namespace Format$ {
|
|
924
|
+
/** @deprecated use `Format$inboundSchema` instead. */
|
|
925
|
+
export const inboundSchema = Format$inboundSchema;
|
|
926
|
+
/** @deprecated use `Format$outboundSchema` instead. */
|
|
927
|
+
export const outboundSchema = Format$outboundSchema;
|
|
950
928
|
}
|
|
951
929
|
|
|
952
930
|
/** @internal */
|
|
953
|
-
export const
|
|
954
|
-
|
|
955
|
-
> = z.nativeEnum(UpdatePromptQuality);
|
|
931
|
+
export const Quality$inboundSchema: z.ZodNativeEnum<typeof Quality> = z
|
|
932
|
+
.nativeEnum(Quality);
|
|
956
933
|
|
|
957
934
|
/** @internal */
|
|
958
|
-
export const
|
|
959
|
-
|
|
960
|
-
> = UpdatePromptQuality$inboundSchema;
|
|
935
|
+
export const Quality$outboundSchema: z.ZodNativeEnum<typeof Quality> =
|
|
936
|
+
Quality$inboundSchema;
|
|
961
937
|
|
|
962
938
|
/**
|
|
963
939
|
* @internal
|
|
964
940
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
965
941
|
*/
|
|
966
|
-
export namespace
|
|
967
|
-
/** @deprecated use `
|
|
968
|
-
export const inboundSchema =
|
|
969
|
-
/** @deprecated use `
|
|
970
|
-
export const outboundSchema =
|
|
942
|
+
export namespace Quality$ {
|
|
943
|
+
/** @deprecated use `Quality$inboundSchema` instead. */
|
|
944
|
+
export const inboundSchema = Quality$inboundSchema;
|
|
945
|
+
/** @deprecated use `Quality$outboundSchema` instead. */
|
|
946
|
+
export const outboundSchema = Quality$outboundSchema;
|
|
971
947
|
}
|
|
972
948
|
|
|
973
949
|
/** @internal */
|
|
974
|
-
export const
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
);
|
|
950
|
+
export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
951
|
+
typeof UpdatePromptResponseFormatType
|
|
952
|
+
> = z.nativeEnum(UpdatePromptResponseFormatType);
|
|
978
953
|
|
|
979
954
|
/** @internal */
|
|
980
|
-
export const
|
|
981
|
-
|
|
982
|
-
|
|
955
|
+
export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
956
|
+
typeof UpdatePromptResponseFormatType
|
|
957
|
+
> = UpdatePromptResponseFormatType$inboundSchema;
|
|
983
958
|
|
|
984
959
|
/**
|
|
985
960
|
* @internal
|
|
986
961
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
987
962
|
*/
|
|
988
|
-
export namespace
|
|
989
|
-
/** @deprecated use `
|
|
990
|
-
export const inboundSchema =
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
export const outboundSchema =
|
|
994
|
-
UpdatePromptResponseFormatPromptsType$outboundSchema;
|
|
963
|
+
export namespace UpdatePromptResponseFormatType$ {
|
|
964
|
+
/** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
|
|
965
|
+
export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
|
|
966
|
+
/** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
|
|
967
|
+
export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
|
|
995
968
|
}
|
|
996
969
|
|
|
997
970
|
/** @internal */
|
|
998
|
-
export const
|
|
999
|
-
|
|
971
|
+
export const ResponseFormat2$inboundSchema: z.ZodType<
|
|
972
|
+
ResponseFormat2,
|
|
1000
973
|
z.ZodTypeDef,
|
|
1001
974
|
unknown
|
|
1002
975
|
> = z.object({
|
|
1003
|
-
type:
|
|
976
|
+
type: UpdatePromptResponseFormatType$inboundSchema,
|
|
1004
977
|
});
|
|
1005
978
|
|
|
1006
979
|
/** @internal */
|
|
1007
|
-
export type
|
|
980
|
+
export type ResponseFormat2$Outbound = {
|
|
1008
981
|
type: string;
|
|
1009
982
|
};
|
|
1010
983
|
|
|
1011
984
|
/** @internal */
|
|
1012
|
-
export const
|
|
1013
|
-
|
|
985
|
+
export const ResponseFormat2$outboundSchema: z.ZodType<
|
|
986
|
+
ResponseFormat2$Outbound,
|
|
1014
987
|
z.ZodTypeDef,
|
|
1015
|
-
|
|
988
|
+
ResponseFormat2
|
|
1016
989
|
> = z.object({
|
|
1017
|
-
type:
|
|
990
|
+
type: UpdatePromptResponseFormatType$outboundSchema,
|
|
1018
991
|
});
|
|
1019
992
|
|
|
1020
993
|
/**
|
|
1021
994
|
* @internal
|
|
1022
995
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1023
996
|
*/
|
|
1024
|
-
export namespace
|
|
1025
|
-
/** @deprecated use `
|
|
1026
|
-
export const inboundSchema =
|
|
1027
|
-
/** @deprecated use `
|
|
1028
|
-
export const outboundSchema =
|
|
1029
|
-
/** @deprecated use `
|
|
1030
|
-
export type Outbound =
|
|
997
|
+
export namespace ResponseFormat2$ {
|
|
998
|
+
/** @deprecated use `ResponseFormat2$inboundSchema` instead. */
|
|
999
|
+
export const inboundSchema = ResponseFormat2$inboundSchema;
|
|
1000
|
+
/** @deprecated use `ResponseFormat2$outboundSchema` instead. */
|
|
1001
|
+
export const outboundSchema = ResponseFormat2$outboundSchema;
|
|
1002
|
+
/** @deprecated use `ResponseFormat2$Outbound` instead. */
|
|
1003
|
+
export type Outbound = ResponseFormat2$Outbound;
|
|
1031
1004
|
}
|
|
1032
1005
|
|
|
1033
|
-
export function
|
|
1034
|
-
|
|
1006
|
+
export function responseFormat2ToJSON(
|
|
1007
|
+
responseFormat2: ResponseFormat2,
|
|
1035
1008
|
): string {
|
|
1036
|
-
return JSON.stringify(
|
|
1037
|
-
UpdatePromptResponseFormat2$outboundSchema.parse(
|
|
1038
|
-
updatePromptResponseFormat2,
|
|
1039
|
-
),
|
|
1040
|
-
);
|
|
1009
|
+
return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
|
|
1041
1010
|
}
|
|
1042
1011
|
|
|
1043
|
-
export function
|
|
1012
|
+
export function responseFormat2FromJSON(
|
|
1044
1013
|
jsonString: string,
|
|
1045
|
-
): SafeParseResult<
|
|
1014
|
+
): SafeParseResult<ResponseFormat2, SDKValidationError> {
|
|
1046
1015
|
return safeParse(
|
|
1047
1016
|
jsonString,
|
|
1048
|
-
(x) =>
|
|
1049
|
-
`Failed to parse '
|
|
1017
|
+
(x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
1018
|
+
`Failed to parse 'ResponseFormat2' from JSON`,
|
|
1050
1019
|
);
|
|
1051
1020
|
}
|
|
1052
1021
|
|
|
1053
1022
|
/** @internal */
|
|
1054
|
-
export const
|
|
1055
|
-
typeof
|
|
1056
|
-
> = z.nativeEnum(
|
|
1023
|
+
export const ResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
1024
|
+
typeof ResponseFormatType
|
|
1025
|
+
> = z.nativeEnum(ResponseFormatType);
|
|
1057
1026
|
|
|
1058
1027
|
/** @internal */
|
|
1059
|
-
export const
|
|
1060
|
-
typeof
|
|
1061
|
-
> =
|
|
1028
|
+
export const ResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
1029
|
+
typeof ResponseFormatType
|
|
1030
|
+
> = ResponseFormatType$inboundSchema;
|
|
1062
1031
|
|
|
1063
1032
|
/**
|
|
1064
1033
|
* @internal
|
|
1065
1034
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1066
1035
|
*/
|
|
1067
|
-
export namespace
|
|
1068
|
-
/** @deprecated use `
|
|
1069
|
-
export const inboundSchema =
|
|
1070
|
-
/** @deprecated use `
|
|
1071
|
-
export const outboundSchema =
|
|
1036
|
+
export namespace ResponseFormatType$ {
|
|
1037
|
+
/** @deprecated use `ResponseFormatType$inboundSchema` instead. */
|
|
1038
|
+
export const inboundSchema = ResponseFormatType$inboundSchema;
|
|
1039
|
+
/** @deprecated use `ResponseFormatType$outboundSchema` instead. */
|
|
1040
|
+
export const outboundSchema = ResponseFormatType$outboundSchema;
|
|
1072
1041
|
}
|
|
1073
1042
|
|
|
1074
1043
|
/** @internal */
|
|
1075
|
-
export const
|
|
1076
|
-
|
|
1044
|
+
export const JsonSchema$inboundSchema: z.ZodType<
|
|
1045
|
+
JsonSchema,
|
|
1077
1046
|
z.ZodTypeDef,
|
|
1078
1047
|
unknown
|
|
1079
1048
|
> = z.object({
|
|
@@ -1083,17 +1052,17 @@ export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
1083
1052
|
});
|
|
1084
1053
|
|
|
1085
1054
|
/** @internal */
|
|
1086
|
-
export type
|
|
1055
|
+
export type JsonSchema$Outbound = {
|
|
1087
1056
|
name: string;
|
|
1088
1057
|
strict: boolean;
|
|
1089
1058
|
schema: { [k: string]: any };
|
|
1090
1059
|
};
|
|
1091
1060
|
|
|
1092
1061
|
/** @internal */
|
|
1093
|
-
export const
|
|
1094
|
-
|
|
1062
|
+
export const JsonSchema$outboundSchema: z.ZodType<
|
|
1063
|
+
JsonSchema$Outbound,
|
|
1095
1064
|
z.ZodTypeDef,
|
|
1096
|
-
|
|
1065
|
+
JsonSchema
|
|
1097
1066
|
> = z.object({
|
|
1098
1067
|
name: z.string(),
|
|
1099
1068
|
strict: z.boolean(),
|
|
@@ -1104,41 +1073,37 @@ export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
1104
1073
|
* @internal
|
|
1105
1074
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1106
1075
|
*/
|
|
1107
|
-
export namespace
|
|
1108
|
-
/** @deprecated use `
|
|
1109
|
-
export const inboundSchema =
|
|
1110
|
-
/** @deprecated use `
|
|
1111
|
-
export const outboundSchema =
|
|
1112
|
-
/** @deprecated use `
|
|
1113
|
-
export type Outbound =
|
|
1076
|
+
export namespace JsonSchema$ {
|
|
1077
|
+
/** @deprecated use `JsonSchema$inboundSchema` instead. */
|
|
1078
|
+
export const inboundSchema = JsonSchema$inboundSchema;
|
|
1079
|
+
/** @deprecated use `JsonSchema$outboundSchema` instead. */
|
|
1080
|
+
export const outboundSchema = JsonSchema$outboundSchema;
|
|
1081
|
+
/** @deprecated use `JsonSchema$Outbound` instead. */
|
|
1082
|
+
export type Outbound = JsonSchema$Outbound;
|
|
1114
1083
|
}
|
|
1115
1084
|
|
|
1116
|
-
export function
|
|
1117
|
-
|
|
1118
|
-
): string {
|
|
1119
|
-
return JSON.stringify(
|
|
1120
|
-
ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
|
|
1121
|
-
);
|
|
1085
|
+
export function jsonSchemaToJSON(jsonSchema: JsonSchema): string {
|
|
1086
|
+
return JSON.stringify(JsonSchema$outboundSchema.parse(jsonSchema));
|
|
1122
1087
|
}
|
|
1123
1088
|
|
|
1124
|
-
export function
|
|
1089
|
+
export function jsonSchemaFromJSON(
|
|
1125
1090
|
jsonString: string,
|
|
1126
|
-
): SafeParseResult<
|
|
1091
|
+
): SafeParseResult<JsonSchema, SDKValidationError> {
|
|
1127
1092
|
return safeParse(
|
|
1128
1093
|
jsonString,
|
|
1129
|
-
(x) =>
|
|
1130
|
-
`Failed to parse '
|
|
1094
|
+
(x) => JsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1095
|
+
`Failed to parse 'JsonSchema' from JSON`,
|
|
1131
1096
|
);
|
|
1132
1097
|
}
|
|
1133
1098
|
|
|
1134
1099
|
/** @internal */
|
|
1135
|
-
export const
|
|
1136
|
-
|
|
1100
|
+
export const ResponseFormat1$inboundSchema: z.ZodType<
|
|
1101
|
+
ResponseFormat1,
|
|
1137
1102
|
z.ZodTypeDef,
|
|
1138
1103
|
unknown
|
|
1139
1104
|
> = z.object({
|
|
1140
|
-
type:
|
|
1141
|
-
json_schema: z.lazy(() =>
|
|
1105
|
+
type: ResponseFormatType$inboundSchema,
|
|
1106
|
+
json_schema: z.lazy(() => JsonSchema$inboundSchema),
|
|
1142
1107
|
}).transform((v) => {
|
|
1143
1108
|
return remap$(v, {
|
|
1144
1109
|
"json_schema": "jsonSchema",
|
|
@@ -1146,19 +1111,19 @@ export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
|
1146
1111
|
});
|
|
1147
1112
|
|
|
1148
1113
|
/** @internal */
|
|
1149
|
-
export type
|
|
1114
|
+
export type ResponseFormat1$Outbound = {
|
|
1150
1115
|
type: string;
|
|
1151
|
-
json_schema:
|
|
1116
|
+
json_schema: JsonSchema$Outbound;
|
|
1152
1117
|
};
|
|
1153
1118
|
|
|
1154
1119
|
/** @internal */
|
|
1155
|
-
export const
|
|
1156
|
-
|
|
1120
|
+
export const ResponseFormat1$outboundSchema: z.ZodType<
|
|
1121
|
+
ResponseFormat1$Outbound,
|
|
1157
1122
|
z.ZodTypeDef,
|
|
1158
|
-
|
|
1123
|
+
ResponseFormat1
|
|
1159
1124
|
> = z.object({
|
|
1160
|
-
type:
|
|
1161
|
-
jsonSchema: z.lazy(() =>
|
|
1125
|
+
type: ResponseFormatType$outboundSchema,
|
|
1126
|
+
jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
|
|
1162
1127
|
}).transform((v) => {
|
|
1163
1128
|
return remap$(v, {
|
|
1164
1129
|
jsonSchema: "json_schema",
|
|
@@ -1169,157 +1134,149 @@ export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
|
1169
1134
|
* @internal
|
|
1170
1135
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1171
1136
|
*/
|
|
1172
|
-
export namespace
|
|
1173
|
-
/** @deprecated use `
|
|
1174
|
-
export const inboundSchema =
|
|
1175
|
-
/** @deprecated use `
|
|
1176
|
-
export const outboundSchema =
|
|
1177
|
-
/** @deprecated use `
|
|
1178
|
-
export type Outbound =
|
|
1137
|
+
export namespace ResponseFormat1$ {
|
|
1138
|
+
/** @deprecated use `ResponseFormat1$inboundSchema` instead. */
|
|
1139
|
+
export const inboundSchema = ResponseFormat1$inboundSchema;
|
|
1140
|
+
/** @deprecated use `ResponseFormat1$outboundSchema` instead. */
|
|
1141
|
+
export const outboundSchema = ResponseFormat1$outboundSchema;
|
|
1142
|
+
/** @deprecated use `ResponseFormat1$Outbound` instead. */
|
|
1143
|
+
export type Outbound = ResponseFormat1$Outbound;
|
|
1179
1144
|
}
|
|
1180
1145
|
|
|
1181
|
-
export function
|
|
1182
|
-
|
|
1146
|
+
export function responseFormat1ToJSON(
|
|
1147
|
+
responseFormat1: ResponseFormat1,
|
|
1183
1148
|
): string {
|
|
1184
|
-
return JSON.stringify(
|
|
1185
|
-
UpdatePromptResponseFormat1$outboundSchema.parse(
|
|
1186
|
-
updatePromptResponseFormat1,
|
|
1187
|
-
),
|
|
1188
|
-
);
|
|
1149
|
+
return JSON.stringify(ResponseFormat1$outboundSchema.parse(responseFormat1));
|
|
1189
1150
|
}
|
|
1190
1151
|
|
|
1191
|
-
export function
|
|
1152
|
+
export function responseFormat1FromJSON(
|
|
1192
1153
|
jsonString: string,
|
|
1193
|
-
): SafeParseResult<
|
|
1154
|
+
): SafeParseResult<ResponseFormat1, SDKValidationError> {
|
|
1194
1155
|
return safeParse(
|
|
1195
1156
|
jsonString,
|
|
1196
|
-
(x) =>
|
|
1197
|
-
`Failed to parse '
|
|
1157
|
+
(x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
1158
|
+
`Failed to parse 'ResponseFormat1' from JSON`,
|
|
1198
1159
|
);
|
|
1199
1160
|
}
|
|
1200
1161
|
|
|
1201
1162
|
/** @internal */
|
|
1202
|
-
export const
|
|
1203
|
-
|
|
1163
|
+
export const ResponseFormat$inboundSchema: z.ZodType<
|
|
1164
|
+
ResponseFormat,
|
|
1204
1165
|
z.ZodTypeDef,
|
|
1205
1166
|
unknown
|
|
1206
1167
|
> = z.union([
|
|
1207
|
-
z.lazy(() =>
|
|
1208
|
-
z.lazy(() =>
|
|
1168
|
+
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1169
|
+
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1209
1170
|
]);
|
|
1210
1171
|
|
|
1211
1172
|
/** @internal */
|
|
1212
|
-
export type
|
|
1213
|
-
|
|
|
1214
|
-
|
|
|
1173
|
+
export type ResponseFormat$Outbound =
|
|
1174
|
+
| ResponseFormat2$Outbound
|
|
1175
|
+
| ResponseFormat1$Outbound;
|
|
1215
1176
|
|
|
1216
1177
|
/** @internal */
|
|
1217
|
-
export const
|
|
1218
|
-
|
|
1178
|
+
export const ResponseFormat$outboundSchema: z.ZodType<
|
|
1179
|
+
ResponseFormat$Outbound,
|
|
1219
1180
|
z.ZodTypeDef,
|
|
1220
|
-
|
|
1181
|
+
ResponseFormat
|
|
1221
1182
|
> = z.union([
|
|
1222
|
-
z.lazy(() =>
|
|
1223
|
-
z.lazy(() =>
|
|
1183
|
+
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1184
|
+
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1224
1185
|
]);
|
|
1225
1186
|
|
|
1226
1187
|
/**
|
|
1227
1188
|
* @internal
|
|
1228
1189
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1229
1190
|
*/
|
|
1230
|
-
export namespace
|
|
1231
|
-
/** @deprecated use `
|
|
1232
|
-
export const inboundSchema =
|
|
1233
|
-
/** @deprecated use `
|
|
1234
|
-
export const outboundSchema =
|
|
1235
|
-
/** @deprecated use `
|
|
1236
|
-
export type Outbound =
|
|
1191
|
+
export namespace ResponseFormat$ {
|
|
1192
|
+
/** @deprecated use `ResponseFormat$inboundSchema` instead. */
|
|
1193
|
+
export const inboundSchema = ResponseFormat$inboundSchema;
|
|
1194
|
+
/** @deprecated use `ResponseFormat$outboundSchema` instead. */
|
|
1195
|
+
export const outboundSchema = ResponseFormat$outboundSchema;
|
|
1196
|
+
/** @deprecated use `ResponseFormat$Outbound` instead. */
|
|
1197
|
+
export type Outbound = ResponseFormat$Outbound;
|
|
1237
1198
|
}
|
|
1238
1199
|
|
|
1239
|
-
export function
|
|
1240
|
-
|
|
1241
|
-
): string {
|
|
1242
|
-
return JSON.stringify(
|
|
1243
|
-
UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
|
|
1244
|
-
);
|
|
1200
|
+
export function responseFormatToJSON(responseFormat: ResponseFormat): string {
|
|
1201
|
+
return JSON.stringify(ResponseFormat$outboundSchema.parse(responseFormat));
|
|
1245
1202
|
}
|
|
1246
1203
|
|
|
1247
|
-
export function
|
|
1204
|
+
export function responseFormatFromJSON(
|
|
1248
1205
|
jsonString: string,
|
|
1249
|
-
): SafeParseResult<
|
|
1206
|
+
): SafeParseResult<ResponseFormat, SDKValidationError> {
|
|
1250
1207
|
return safeParse(
|
|
1251
1208
|
jsonString,
|
|
1252
|
-
(x) =>
|
|
1253
|
-
`Failed to parse '
|
|
1209
|
+
(x) => ResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1210
|
+
`Failed to parse 'ResponseFormat' from JSON`,
|
|
1254
1211
|
);
|
|
1255
1212
|
}
|
|
1256
1213
|
|
|
1257
1214
|
/** @internal */
|
|
1258
|
-
export const
|
|
1259
|
-
typeof
|
|
1260
|
-
> = z.nativeEnum(
|
|
1215
|
+
export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1216
|
+
typeof PhotoRealVersion
|
|
1217
|
+
> = z.nativeEnum(PhotoRealVersion);
|
|
1261
1218
|
|
|
1262
1219
|
/** @internal */
|
|
1263
|
-
export const
|
|
1264
|
-
typeof
|
|
1265
|
-
> =
|
|
1220
|
+
export const PhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
1221
|
+
typeof PhotoRealVersion
|
|
1222
|
+
> = PhotoRealVersion$inboundSchema;
|
|
1266
1223
|
|
|
1267
1224
|
/**
|
|
1268
1225
|
* @internal
|
|
1269
1226
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1270
1227
|
*/
|
|
1271
|
-
export namespace
|
|
1272
|
-
/** @deprecated use `
|
|
1273
|
-
export const inboundSchema =
|
|
1274
|
-
/** @deprecated use `
|
|
1275
|
-
export const outboundSchema =
|
|
1228
|
+
export namespace PhotoRealVersion$ {
|
|
1229
|
+
/** @deprecated use `PhotoRealVersion$inboundSchema` instead. */
|
|
1230
|
+
export const inboundSchema = PhotoRealVersion$inboundSchema;
|
|
1231
|
+
/** @deprecated use `PhotoRealVersion$outboundSchema` instead. */
|
|
1232
|
+
export const outboundSchema = PhotoRealVersion$outboundSchema;
|
|
1276
1233
|
}
|
|
1277
1234
|
|
|
1278
1235
|
/** @internal */
|
|
1279
|
-
export const
|
|
1280
|
-
typeof
|
|
1281
|
-
> = z.nativeEnum(
|
|
1236
|
+
export const EncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
1237
|
+
typeof EncodingFormat
|
|
1238
|
+
> = z.nativeEnum(EncodingFormat);
|
|
1282
1239
|
|
|
1283
1240
|
/** @internal */
|
|
1284
|
-
export const
|
|
1285
|
-
typeof
|
|
1286
|
-
> =
|
|
1241
|
+
export const EncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
1242
|
+
typeof EncodingFormat
|
|
1243
|
+
> = EncodingFormat$inboundSchema;
|
|
1287
1244
|
|
|
1288
1245
|
/**
|
|
1289
1246
|
* @internal
|
|
1290
1247
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1291
1248
|
*/
|
|
1292
|
-
export namespace
|
|
1293
|
-
/** @deprecated use `
|
|
1294
|
-
export const inboundSchema =
|
|
1295
|
-
/** @deprecated use `
|
|
1296
|
-
export const outboundSchema =
|
|
1249
|
+
export namespace EncodingFormat$ {
|
|
1250
|
+
/** @deprecated use `EncodingFormat$inboundSchema` instead. */
|
|
1251
|
+
export const inboundSchema = EncodingFormat$inboundSchema;
|
|
1252
|
+
/** @deprecated use `EncodingFormat$outboundSchema` instead. */
|
|
1253
|
+
export const outboundSchema = EncodingFormat$outboundSchema;
|
|
1297
1254
|
}
|
|
1298
1255
|
|
|
1299
1256
|
/** @internal */
|
|
1300
|
-
export const
|
|
1301
|
-
typeof
|
|
1302
|
-
> = z.nativeEnum(
|
|
1257
|
+
export const ReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1258
|
+
typeof ReasoningEffort
|
|
1259
|
+
> = z.nativeEnum(ReasoningEffort);
|
|
1303
1260
|
|
|
1304
1261
|
/** @internal */
|
|
1305
|
-
export const
|
|
1306
|
-
typeof
|
|
1307
|
-
> =
|
|
1262
|
+
export const ReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1263
|
+
typeof ReasoningEffort
|
|
1264
|
+
> = ReasoningEffort$inboundSchema;
|
|
1308
1265
|
|
|
1309
1266
|
/**
|
|
1310
1267
|
* @internal
|
|
1311
1268
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1312
1269
|
*/
|
|
1313
|
-
export namespace
|
|
1314
|
-
/** @deprecated use `
|
|
1315
|
-
export const inboundSchema =
|
|
1316
|
-
/** @deprecated use `
|
|
1317
|
-
export const outboundSchema =
|
|
1270
|
+
export namespace ReasoningEffort$ {
|
|
1271
|
+
/** @deprecated use `ReasoningEffort$inboundSchema` instead. */
|
|
1272
|
+
export const inboundSchema = ReasoningEffort$inboundSchema;
|
|
1273
|
+
/** @deprecated use `ReasoningEffort$outboundSchema` instead. */
|
|
1274
|
+
export const outboundSchema = ReasoningEffort$outboundSchema;
|
|
1318
1275
|
}
|
|
1319
1276
|
|
|
1320
1277
|
/** @internal */
|
|
1321
|
-
export const
|
|
1322
|
-
|
|
1278
|
+
export const ModelParameters$inboundSchema: z.ZodType<
|
|
1279
|
+
ModelParameters,
|
|
1323
1280
|
z.ZodTypeDef,
|
|
1324
1281
|
unknown
|
|
1325
1282
|
> = z.object({
|
|
@@ -1331,19 +1288,20 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
1331
1288
|
presencePenalty: z.number().optional(),
|
|
1332
1289
|
numImages: z.number().optional(),
|
|
1333
1290
|
seed: z.number().optional(),
|
|
1334
|
-
format:
|
|
1291
|
+
format: Format$inboundSchema.optional(),
|
|
1335
1292
|
dimensions: z.string().optional(),
|
|
1336
|
-
quality:
|
|
1293
|
+
quality: Quality$inboundSchema.optional(),
|
|
1337
1294
|
style: z.string().optional(),
|
|
1338
1295
|
responseFormat: z.nullable(
|
|
1339
1296
|
z.union([
|
|
1340
|
-
z.lazy(() =>
|
|
1341
|
-
z.lazy(() =>
|
|
1297
|
+
z.lazy(() => ResponseFormat2$inboundSchema),
|
|
1298
|
+
z.lazy(() => ResponseFormat1$inboundSchema),
|
|
1342
1299
|
]),
|
|
1343
1300
|
).optional(),
|
|
1344
|
-
photoRealVersion:
|
|
1345
|
-
encoding_format:
|
|
1346
|
-
reasoningEffort:
|
|
1301
|
+
photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
|
|
1302
|
+
encoding_format: EncodingFormat$inboundSchema.optional(),
|
|
1303
|
+
reasoningEffort: ReasoningEffort$inboundSchema.optional(),
|
|
1304
|
+
budgetTokens: z.number().optional(),
|
|
1347
1305
|
}).transform((v) => {
|
|
1348
1306
|
return remap$(v, {
|
|
1349
1307
|
"encoding_format": "encodingFormat",
|
|
@@ -1351,7 +1309,7 @@ export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
1351
1309
|
});
|
|
1352
1310
|
|
|
1353
1311
|
/** @internal */
|
|
1354
|
-
export type
|
|
1312
|
+
export type ModelParameters$Outbound = {
|
|
1355
1313
|
temperature?: number | undefined;
|
|
1356
1314
|
maxTokens?: number | undefined;
|
|
1357
1315
|
topK?: number | undefined;
|
|
@@ -1365,20 +1323,21 @@ export type UpdatePromptModelParameters$Outbound = {
|
|
|
1365
1323
|
quality?: string | undefined;
|
|
1366
1324
|
style?: string | undefined;
|
|
1367
1325
|
responseFormat?:
|
|
1368
|
-
|
|
|
1369
|
-
|
|
|
1326
|
+
| ResponseFormat2$Outbound
|
|
1327
|
+
| ResponseFormat1$Outbound
|
|
1370
1328
|
| null
|
|
1371
1329
|
| undefined;
|
|
1372
1330
|
photoRealVersion?: string | undefined;
|
|
1373
1331
|
encoding_format?: string | undefined;
|
|
1374
1332
|
reasoningEffort?: string | undefined;
|
|
1333
|
+
budgetTokens?: number | undefined;
|
|
1375
1334
|
};
|
|
1376
1335
|
|
|
1377
1336
|
/** @internal */
|
|
1378
|
-
export const
|
|
1379
|
-
|
|
1337
|
+
export const ModelParameters$outboundSchema: z.ZodType<
|
|
1338
|
+
ModelParameters$Outbound,
|
|
1380
1339
|
z.ZodTypeDef,
|
|
1381
|
-
|
|
1340
|
+
ModelParameters
|
|
1382
1341
|
> = z.object({
|
|
1383
1342
|
temperature: z.number().optional(),
|
|
1384
1343
|
maxTokens: z.number().optional(),
|
|
@@ -1388,19 +1347,20 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
1388
1347
|
presencePenalty: z.number().optional(),
|
|
1389
1348
|
numImages: z.number().optional(),
|
|
1390
1349
|
seed: z.number().optional(),
|
|
1391
|
-
format:
|
|
1350
|
+
format: Format$outboundSchema.optional(),
|
|
1392
1351
|
dimensions: z.string().optional(),
|
|
1393
|
-
quality:
|
|
1352
|
+
quality: Quality$outboundSchema.optional(),
|
|
1394
1353
|
style: z.string().optional(),
|
|
1395
1354
|
responseFormat: z.nullable(
|
|
1396
1355
|
z.union([
|
|
1397
|
-
z.lazy(() =>
|
|
1398
|
-
z.lazy(() =>
|
|
1356
|
+
z.lazy(() => ResponseFormat2$outboundSchema),
|
|
1357
|
+
z.lazy(() => ResponseFormat1$outboundSchema),
|
|
1399
1358
|
]),
|
|
1400
1359
|
).optional(),
|
|
1401
|
-
photoRealVersion:
|
|
1402
|
-
encodingFormat:
|
|
1403
|
-
reasoningEffort:
|
|
1360
|
+
photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
|
|
1361
|
+
encodingFormat: EncodingFormat$outboundSchema.optional(),
|
|
1362
|
+
reasoningEffort: ReasoningEffort$outboundSchema.optional(),
|
|
1363
|
+
budgetTokens: z.number().optional(),
|
|
1404
1364
|
}).transform((v) => {
|
|
1405
1365
|
return remap$(v, {
|
|
1406
1366
|
encodingFormat: "encoding_format",
|
|
@@ -1411,54 +1371,48 @@ export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
1411
1371
|
* @internal
|
|
1412
1372
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1413
1373
|
*/
|
|
1414
|
-
export namespace
|
|
1415
|
-
/** @deprecated use `
|
|
1416
|
-
export const inboundSchema =
|
|
1417
|
-
/** @deprecated use `
|
|
1418
|
-
export const outboundSchema =
|
|
1419
|
-
/** @deprecated use `
|
|
1420
|
-
export type Outbound =
|
|
1374
|
+
export namespace ModelParameters$ {
|
|
1375
|
+
/** @deprecated use `ModelParameters$inboundSchema` instead. */
|
|
1376
|
+
export const inboundSchema = ModelParameters$inboundSchema;
|
|
1377
|
+
/** @deprecated use `ModelParameters$outboundSchema` instead. */
|
|
1378
|
+
export const outboundSchema = ModelParameters$outboundSchema;
|
|
1379
|
+
/** @deprecated use `ModelParameters$Outbound` instead. */
|
|
1380
|
+
export type Outbound = ModelParameters$Outbound;
|
|
1421
1381
|
}
|
|
1422
1382
|
|
|
1423
|
-
export function
|
|
1424
|
-
|
|
1383
|
+
export function modelParametersToJSON(
|
|
1384
|
+
modelParameters: ModelParameters,
|
|
1425
1385
|
): string {
|
|
1426
|
-
return JSON.stringify(
|
|
1427
|
-
UpdatePromptModelParameters$outboundSchema.parse(
|
|
1428
|
-
updatePromptModelParameters,
|
|
1429
|
-
),
|
|
1430
|
-
);
|
|
1386
|
+
return JSON.stringify(ModelParameters$outboundSchema.parse(modelParameters));
|
|
1431
1387
|
}
|
|
1432
1388
|
|
|
1433
|
-
export function
|
|
1389
|
+
export function modelParametersFromJSON(
|
|
1434
1390
|
jsonString: string,
|
|
1435
|
-
): SafeParseResult<
|
|
1391
|
+
): SafeParseResult<ModelParameters, SDKValidationError> {
|
|
1436
1392
|
return safeParse(
|
|
1437
1393
|
jsonString,
|
|
1438
|
-
(x) =>
|
|
1439
|
-
`Failed to parse '
|
|
1394
|
+
(x) => ModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1395
|
+
`Failed to parse 'ModelParameters' from JSON`,
|
|
1440
1396
|
);
|
|
1441
1397
|
}
|
|
1442
1398
|
|
|
1443
1399
|
/** @internal */
|
|
1444
|
-
export const
|
|
1445
|
-
|
|
1446
|
-
> = z.nativeEnum(UpdatePromptProvider);
|
|
1400
|
+
export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
|
|
1401
|
+
.nativeEnum(Provider);
|
|
1447
1402
|
|
|
1448
1403
|
/** @internal */
|
|
1449
|
-
export const
|
|
1450
|
-
|
|
1451
|
-
> = UpdatePromptProvider$inboundSchema;
|
|
1404
|
+
export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
|
|
1405
|
+
Provider$inboundSchema;
|
|
1452
1406
|
|
|
1453
1407
|
/**
|
|
1454
1408
|
* @internal
|
|
1455
1409
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1456
1410
|
*/
|
|
1457
|
-
export namespace
|
|
1458
|
-
/** @deprecated use `
|
|
1459
|
-
export const inboundSchema =
|
|
1460
|
-
/** @deprecated use `
|
|
1461
|
-
export const outboundSchema =
|
|
1411
|
+
export namespace Provider$ {
|
|
1412
|
+
/** @deprecated use `Provider$inboundSchema` instead. */
|
|
1413
|
+
export const inboundSchema = Provider$inboundSchema;
|
|
1414
|
+
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
1415
|
+
export const outboundSchema = Provider$outboundSchema;
|
|
1462
1416
|
}
|
|
1463
1417
|
|
|
1464
1418
|
/** @internal */
|
|
@@ -2037,17 +1991,16 @@ export function updatePromptMessagesFromJSON(
|
|
|
2037
1991
|
}
|
|
2038
1992
|
|
|
2039
1993
|
/** @internal */
|
|
2040
|
-
export const
|
|
2041
|
-
|
|
1994
|
+
export const PromptConfig$inboundSchema: z.ZodType<
|
|
1995
|
+
PromptConfig,
|
|
2042
1996
|
z.ZodTypeDef,
|
|
2043
1997
|
unknown
|
|
2044
1998
|
> = z.object({
|
|
2045
1999
|
stream: z.boolean().optional(),
|
|
2046
2000
|
model: z.string().optional(),
|
|
2047
|
-
model_type:
|
|
2048
|
-
model_parameters: z.lazy(() =>
|
|
2049
|
-
|
|
2050
|
-
provider: UpdatePromptProvider$inboundSchema.optional(),
|
|
2001
|
+
model_type: ModelType$inboundSchema.optional(),
|
|
2002
|
+
model_parameters: z.lazy(() => ModelParameters$inboundSchema).optional(),
|
|
2003
|
+
provider: Provider$inboundSchema.optional(),
|
|
2051
2004
|
version: z.string().optional(),
|
|
2052
2005
|
messages: z.array(z.lazy(() => UpdatePromptMessages$inboundSchema)),
|
|
2053
2006
|
}).transform((v) => {
|
|
@@ -2058,28 +2011,27 @@ export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
|
|
|
2058
2011
|
});
|
|
2059
2012
|
|
|
2060
2013
|
/** @internal */
|
|
2061
|
-
export type
|
|
2014
|
+
export type PromptConfig$Outbound = {
|
|
2062
2015
|
stream?: boolean | undefined;
|
|
2063
2016
|
model?: string | undefined;
|
|
2064
2017
|
model_type?: string | undefined;
|
|
2065
|
-
model_parameters?:
|
|
2018
|
+
model_parameters?: ModelParameters$Outbound | undefined;
|
|
2066
2019
|
provider?: string | undefined;
|
|
2067
2020
|
version?: string | undefined;
|
|
2068
2021
|
messages: Array<UpdatePromptMessages$Outbound>;
|
|
2069
2022
|
};
|
|
2070
2023
|
|
|
2071
2024
|
/** @internal */
|
|
2072
|
-
export const
|
|
2073
|
-
|
|
2025
|
+
export const PromptConfig$outboundSchema: z.ZodType<
|
|
2026
|
+
PromptConfig$Outbound,
|
|
2074
2027
|
z.ZodTypeDef,
|
|
2075
|
-
|
|
2028
|
+
PromptConfig
|
|
2076
2029
|
> = z.object({
|
|
2077
2030
|
stream: z.boolean().optional(),
|
|
2078
2031
|
model: z.string().optional(),
|
|
2079
|
-
modelType:
|
|
2080
|
-
modelParameters: z.lazy(() =>
|
|
2081
|
-
|
|
2082
|
-
provider: UpdatePromptProvider$outboundSchema.optional(),
|
|
2032
|
+
modelType: ModelType$outboundSchema.optional(),
|
|
2033
|
+
modelParameters: z.lazy(() => ModelParameters$outboundSchema).optional(),
|
|
2034
|
+
provider: Provider$outboundSchema.optional(),
|
|
2083
2035
|
version: z.string().optional(),
|
|
2084
2036
|
messages: z.array(z.lazy(() => UpdatePromptMessages$outboundSchema)),
|
|
2085
2037
|
}).transform((v) => {
|
|
@@ -2093,73 +2045,65 @@ export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
|
|
|
2093
2045
|
* @internal
|
|
2094
2046
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2095
2047
|
*/
|
|
2096
|
-
export namespace
|
|
2097
|
-
/** @deprecated use `
|
|
2098
|
-
export const inboundSchema =
|
|
2099
|
-
/** @deprecated use `
|
|
2100
|
-
export const outboundSchema =
|
|
2101
|
-
/** @deprecated use `
|
|
2102
|
-
export type Outbound =
|
|
2048
|
+
export namespace PromptConfig$ {
|
|
2049
|
+
/** @deprecated use `PromptConfig$inboundSchema` instead. */
|
|
2050
|
+
export const inboundSchema = PromptConfig$inboundSchema;
|
|
2051
|
+
/** @deprecated use `PromptConfig$outboundSchema` instead. */
|
|
2052
|
+
export const outboundSchema = PromptConfig$outboundSchema;
|
|
2053
|
+
/** @deprecated use `PromptConfig$Outbound` instead. */
|
|
2054
|
+
export type Outbound = PromptConfig$Outbound;
|
|
2103
2055
|
}
|
|
2104
2056
|
|
|
2105
|
-
export function
|
|
2106
|
-
|
|
2107
|
-
): string {
|
|
2108
|
-
return JSON.stringify(
|
|
2109
|
-
UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
|
|
2110
|
-
);
|
|
2057
|
+
export function promptConfigToJSON(promptConfig: PromptConfig): string {
|
|
2058
|
+
return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
|
|
2111
2059
|
}
|
|
2112
2060
|
|
|
2113
|
-
export function
|
|
2061
|
+
export function promptConfigFromJSON(
|
|
2114
2062
|
jsonString: string,
|
|
2115
|
-
): SafeParseResult<
|
|
2063
|
+
): SafeParseResult<PromptConfig, SDKValidationError> {
|
|
2116
2064
|
return safeParse(
|
|
2117
2065
|
jsonString,
|
|
2118
|
-
(x) =>
|
|
2119
|
-
`Failed to parse '
|
|
2066
|
+
(x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
2067
|
+
`Failed to parse 'PromptConfig' from JSON`,
|
|
2120
2068
|
);
|
|
2121
2069
|
}
|
|
2122
2070
|
|
|
2123
2071
|
/** @internal */
|
|
2124
|
-
export const
|
|
2125
|
-
|
|
2126
|
-
> = z.nativeEnum(UpdatePromptUseCases);
|
|
2072
|
+
export const UseCases$inboundSchema: z.ZodNativeEnum<typeof UseCases> = z
|
|
2073
|
+
.nativeEnum(UseCases);
|
|
2127
2074
|
|
|
2128
2075
|
/** @internal */
|
|
2129
|
-
export const
|
|
2130
|
-
|
|
2131
|
-
> = UpdatePromptUseCases$inboundSchema;
|
|
2076
|
+
export const UseCases$outboundSchema: z.ZodNativeEnum<typeof UseCases> =
|
|
2077
|
+
UseCases$inboundSchema;
|
|
2132
2078
|
|
|
2133
2079
|
/**
|
|
2134
2080
|
* @internal
|
|
2135
2081
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2136
2082
|
*/
|
|
2137
|
-
export namespace
|
|
2138
|
-
/** @deprecated use `
|
|
2139
|
-
export const inboundSchema =
|
|
2140
|
-
/** @deprecated use `
|
|
2141
|
-
export const outboundSchema =
|
|
2083
|
+
export namespace UseCases$ {
|
|
2084
|
+
/** @deprecated use `UseCases$inboundSchema` instead. */
|
|
2085
|
+
export const inboundSchema = UseCases$inboundSchema;
|
|
2086
|
+
/** @deprecated use `UseCases$outboundSchema` instead. */
|
|
2087
|
+
export const outboundSchema = UseCases$outboundSchema;
|
|
2142
2088
|
}
|
|
2143
2089
|
|
|
2144
2090
|
/** @internal */
|
|
2145
|
-
export const
|
|
2146
|
-
|
|
2147
|
-
> = z.nativeEnum(UpdatePromptLanguage);
|
|
2091
|
+
export const Language$inboundSchema: z.ZodNativeEnum<typeof Language> = z
|
|
2092
|
+
.nativeEnum(Language);
|
|
2148
2093
|
|
|
2149
2094
|
/** @internal */
|
|
2150
|
-
export const
|
|
2151
|
-
|
|
2152
|
-
> = UpdatePromptLanguage$inboundSchema;
|
|
2095
|
+
export const Language$outboundSchema: z.ZodNativeEnum<typeof Language> =
|
|
2096
|
+
Language$inboundSchema;
|
|
2153
2097
|
|
|
2154
2098
|
/**
|
|
2155
2099
|
* @internal
|
|
2156
2100
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2157
2101
|
*/
|
|
2158
|
-
export namespace
|
|
2159
|
-
/** @deprecated use `
|
|
2160
|
-
export const inboundSchema =
|
|
2161
|
-
/** @deprecated use `
|
|
2162
|
-
export const outboundSchema =
|
|
2102
|
+
export namespace Language$ {
|
|
2103
|
+
/** @deprecated use `Language$inboundSchema` instead. */
|
|
2104
|
+
export const inboundSchema = Language$inboundSchema;
|
|
2105
|
+
/** @deprecated use `Language$outboundSchema` instead. */
|
|
2106
|
+
export const outboundSchema = Language$outboundSchema;
|
|
2163
2107
|
}
|
|
2164
2108
|
|
|
2165
2109
|
/** @internal */
|
|
@@ -2168,8 +2112,8 @@ export const UpdatePromptMetadata$inboundSchema: z.ZodType<
|
|
|
2168
2112
|
z.ZodTypeDef,
|
|
2169
2113
|
unknown
|
|
2170
2114
|
> = z.object({
|
|
2171
|
-
use_cases: z.array(
|
|
2172
|
-
language:
|
|
2115
|
+
use_cases: z.array(UseCases$inboundSchema).optional(),
|
|
2116
|
+
language: Language$inboundSchema.optional(),
|
|
2173
2117
|
}).transform((v) => {
|
|
2174
2118
|
return remap$(v, {
|
|
2175
2119
|
"use_cases": "useCases",
|
|
@@ -2188,8 +2132,8 @@ export const UpdatePromptMetadata$outboundSchema: z.ZodType<
|
|
|
2188
2132
|
z.ZodTypeDef,
|
|
2189
2133
|
UpdatePromptMetadata
|
|
2190
2134
|
> = z.object({
|
|
2191
|
-
useCases: z.array(
|
|
2192
|
-
language:
|
|
2135
|
+
useCases: z.array(UseCases$outboundSchema).optional(),
|
|
2136
|
+
language: Language$outboundSchema.optional(),
|
|
2193
2137
|
}).transform((v) => {
|
|
2194
2138
|
return remap$(v, {
|
|
2195
2139
|
useCases: "use_cases",
|
|
@@ -2241,8 +2185,7 @@ export const UpdatePromptRequestBody$inboundSchema: z.ZodType<
|
|
|
2241
2185
|
updated_by_id: z.string().optional(),
|
|
2242
2186
|
display_name: z.string().optional(),
|
|
2243
2187
|
description: z.nullable(z.string()).optional(),
|
|
2244
|
-
prompt_config: z.lazy(() =>
|
|
2245
|
-
.optional(),
|
|
2188
|
+
prompt_config: z.lazy(() => PromptConfig$inboundSchema).optional(),
|
|
2246
2189
|
metadata: z.lazy(() => UpdatePromptMetadata$inboundSchema).optional(),
|
|
2247
2190
|
}).transform((v) => {
|
|
2248
2191
|
return remap$(v, {
|
|
@@ -2264,7 +2207,7 @@ export type UpdatePromptRequestBody$Outbound = {
|
|
|
2264
2207
|
updated_by_id?: string | undefined;
|
|
2265
2208
|
display_name?: string | undefined;
|
|
2266
2209
|
description?: string | null | undefined;
|
|
2267
|
-
prompt_config?:
|
|
2210
|
+
prompt_config?: PromptConfig$Outbound | undefined;
|
|
2268
2211
|
metadata?: UpdatePromptMetadata$Outbound | undefined;
|
|
2269
2212
|
};
|
|
2270
2213
|
|
|
@@ -2282,8 +2225,7 @@ export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
|
|
|
2282
2225
|
updatedById: z.string().optional(),
|
|
2283
2226
|
displayName: z.string().optional(),
|
|
2284
2227
|
description: z.nullable(z.string()).optional(),
|
|
2285
|
-
promptConfig: z.lazy(() =>
|
|
2286
|
-
.optional(),
|
|
2228
|
+
promptConfig: z.lazy(() => PromptConfig$outboundSchema).optional(),
|
|
2287
2229
|
metadata: z.lazy(() => UpdatePromptMetadata$outboundSchema).optional(),
|
|
2288
2230
|
}).transform((v) => {
|
|
2289
2231
|
return remap$(v, {
|
|
@@ -2413,170 +2355,169 @@ export namespace UpdatePromptPromptsType$ {
|
|
|
2413
2355
|
}
|
|
2414
2356
|
|
|
2415
2357
|
/** @internal */
|
|
2416
|
-
export const
|
|
2417
|
-
typeof
|
|
2418
|
-
> = z.nativeEnum(
|
|
2358
|
+
export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
|
|
2359
|
+
typeof UpdatePromptModelType
|
|
2360
|
+
> = z.nativeEnum(UpdatePromptModelType);
|
|
2419
2361
|
|
|
2420
2362
|
/** @internal */
|
|
2421
|
-
export const
|
|
2422
|
-
typeof
|
|
2423
|
-
> =
|
|
2363
|
+
export const UpdatePromptModelType$outboundSchema: z.ZodNativeEnum<
|
|
2364
|
+
typeof UpdatePromptModelType
|
|
2365
|
+
> = UpdatePromptModelType$inboundSchema;
|
|
2424
2366
|
|
|
2425
2367
|
/**
|
|
2426
2368
|
* @internal
|
|
2427
2369
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2428
2370
|
*/
|
|
2429
|
-
export namespace
|
|
2430
|
-
/** @deprecated use `
|
|
2431
|
-
export const inboundSchema =
|
|
2432
|
-
/** @deprecated use `
|
|
2433
|
-
export const outboundSchema =
|
|
2371
|
+
export namespace UpdatePromptModelType$ {
|
|
2372
|
+
/** @deprecated use `UpdatePromptModelType$inboundSchema` instead. */
|
|
2373
|
+
export const inboundSchema = UpdatePromptModelType$inboundSchema;
|
|
2374
|
+
/** @deprecated use `UpdatePromptModelType$outboundSchema` instead. */
|
|
2375
|
+
export const outboundSchema = UpdatePromptModelType$outboundSchema;
|
|
2434
2376
|
}
|
|
2435
2377
|
|
|
2436
2378
|
/** @internal */
|
|
2437
|
-
export const
|
|
2438
|
-
typeof
|
|
2439
|
-
> = z.nativeEnum(
|
|
2379
|
+
export const UpdatePromptFormat$inboundSchema: z.ZodNativeEnum<
|
|
2380
|
+
typeof UpdatePromptFormat
|
|
2381
|
+
> = z.nativeEnum(UpdatePromptFormat);
|
|
2440
2382
|
|
|
2441
2383
|
/** @internal */
|
|
2442
|
-
export const
|
|
2443
|
-
typeof
|
|
2444
|
-
> =
|
|
2384
|
+
export const UpdatePromptFormat$outboundSchema: z.ZodNativeEnum<
|
|
2385
|
+
typeof UpdatePromptFormat
|
|
2386
|
+
> = UpdatePromptFormat$inboundSchema;
|
|
2445
2387
|
|
|
2446
2388
|
/**
|
|
2447
2389
|
* @internal
|
|
2448
2390
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2449
2391
|
*/
|
|
2450
|
-
export namespace
|
|
2451
|
-
/** @deprecated use `
|
|
2452
|
-
export const inboundSchema =
|
|
2453
|
-
/** @deprecated use `
|
|
2454
|
-
export const outboundSchema =
|
|
2392
|
+
export namespace UpdatePromptFormat$ {
|
|
2393
|
+
/** @deprecated use `UpdatePromptFormat$inboundSchema` instead. */
|
|
2394
|
+
export const inboundSchema = UpdatePromptFormat$inboundSchema;
|
|
2395
|
+
/** @deprecated use `UpdatePromptFormat$outboundSchema` instead. */
|
|
2396
|
+
export const outboundSchema = UpdatePromptFormat$outboundSchema;
|
|
2455
2397
|
}
|
|
2456
2398
|
|
|
2457
2399
|
/** @internal */
|
|
2458
|
-
export const
|
|
2459
|
-
typeof
|
|
2460
|
-
> = z.nativeEnum(
|
|
2400
|
+
export const UpdatePromptQuality$inboundSchema: z.ZodNativeEnum<
|
|
2401
|
+
typeof UpdatePromptQuality
|
|
2402
|
+
> = z.nativeEnum(UpdatePromptQuality);
|
|
2461
2403
|
|
|
2462
2404
|
/** @internal */
|
|
2463
|
-
export const
|
|
2464
|
-
typeof
|
|
2465
|
-
> =
|
|
2405
|
+
export const UpdatePromptQuality$outboundSchema: z.ZodNativeEnum<
|
|
2406
|
+
typeof UpdatePromptQuality
|
|
2407
|
+
> = UpdatePromptQuality$inboundSchema;
|
|
2466
2408
|
|
|
2467
2409
|
/**
|
|
2468
2410
|
* @internal
|
|
2469
2411
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2470
2412
|
*/
|
|
2471
|
-
export namespace
|
|
2472
|
-
/** @deprecated use `
|
|
2473
|
-
export const inboundSchema =
|
|
2474
|
-
/** @deprecated use `
|
|
2475
|
-
export const outboundSchema =
|
|
2413
|
+
export namespace UpdatePromptQuality$ {
|
|
2414
|
+
/** @deprecated use `UpdatePromptQuality$inboundSchema` instead. */
|
|
2415
|
+
export const inboundSchema = UpdatePromptQuality$inboundSchema;
|
|
2416
|
+
/** @deprecated use `UpdatePromptQuality$outboundSchema` instead. */
|
|
2417
|
+
export const outboundSchema = UpdatePromptQuality$outboundSchema;
|
|
2476
2418
|
}
|
|
2477
2419
|
|
|
2478
2420
|
/** @internal */
|
|
2479
|
-
export const
|
|
2480
|
-
z.ZodNativeEnum<typeof
|
|
2481
|
-
.nativeEnum(
|
|
2421
|
+
export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
|
|
2422
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
|
|
2423
|
+
.nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
|
|
2482
2424
|
|
|
2483
2425
|
/** @internal */
|
|
2484
|
-
export const
|
|
2485
|
-
z.ZodNativeEnum<typeof
|
|
2486
|
-
|
|
2426
|
+
export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
|
|
2427
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
|
|
2428
|
+
UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
2487
2429
|
|
|
2488
2430
|
/**
|
|
2489
2431
|
* @internal
|
|
2490
2432
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2491
2433
|
*/
|
|
2492
|
-
export namespace
|
|
2493
|
-
/** @deprecated use `
|
|
2434
|
+
export namespace UpdatePromptResponseFormatPromptsResponseType$ {
|
|
2435
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
2494
2436
|
export const inboundSchema =
|
|
2495
|
-
|
|
2496
|
-
/** @deprecated use `
|
|
2437
|
+
UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
2438
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
2497
2439
|
export const outboundSchema =
|
|
2498
|
-
|
|
2440
|
+
UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
2499
2441
|
}
|
|
2500
2442
|
|
|
2501
2443
|
/** @internal */
|
|
2502
|
-
export const
|
|
2503
|
-
|
|
2444
|
+
export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
2445
|
+
UpdatePromptResponseFormat2,
|
|
2504
2446
|
z.ZodTypeDef,
|
|
2505
2447
|
unknown
|
|
2506
2448
|
> = z.object({
|
|
2507
|
-
type:
|
|
2449
|
+
type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
2508
2450
|
});
|
|
2509
2451
|
|
|
2510
2452
|
/** @internal */
|
|
2511
|
-
export type
|
|
2453
|
+
export type UpdatePromptResponseFormat2$Outbound = {
|
|
2512
2454
|
type: string;
|
|
2513
2455
|
};
|
|
2514
2456
|
|
|
2515
2457
|
/** @internal */
|
|
2516
|
-
export const
|
|
2517
|
-
|
|
2458
|
+
export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
2459
|
+
UpdatePromptResponseFormat2$Outbound,
|
|
2518
2460
|
z.ZodTypeDef,
|
|
2519
|
-
|
|
2461
|
+
UpdatePromptResponseFormat2
|
|
2520
2462
|
> = z.object({
|
|
2521
|
-
type:
|
|
2463
|
+
type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
2522
2464
|
});
|
|
2523
2465
|
|
|
2524
2466
|
/**
|
|
2525
2467
|
* @internal
|
|
2526
2468
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2527
2469
|
*/
|
|
2528
|
-
export namespace
|
|
2529
|
-
/** @deprecated use `
|
|
2530
|
-
export const inboundSchema =
|
|
2531
|
-
/** @deprecated use `
|
|
2532
|
-
export const outboundSchema =
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
export type Outbound = UpdatePromptResponseFormatPrompts2$Outbound;
|
|
2470
|
+
export namespace UpdatePromptResponseFormat2$ {
|
|
2471
|
+
/** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
|
|
2472
|
+
export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
|
|
2473
|
+
/** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
|
|
2474
|
+
export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
|
|
2475
|
+
/** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
|
|
2476
|
+
export type Outbound = UpdatePromptResponseFormat2$Outbound;
|
|
2536
2477
|
}
|
|
2537
2478
|
|
|
2538
|
-
export function
|
|
2539
|
-
|
|
2479
|
+
export function updatePromptResponseFormat2ToJSON(
|
|
2480
|
+
updatePromptResponseFormat2: UpdatePromptResponseFormat2,
|
|
2540
2481
|
): string {
|
|
2541
2482
|
return JSON.stringify(
|
|
2542
|
-
|
|
2543
|
-
|
|
2483
|
+
UpdatePromptResponseFormat2$outboundSchema.parse(
|
|
2484
|
+
updatePromptResponseFormat2,
|
|
2544
2485
|
),
|
|
2545
2486
|
);
|
|
2546
2487
|
}
|
|
2547
2488
|
|
|
2548
|
-
export function
|
|
2489
|
+
export function updatePromptResponseFormat2FromJSON(
|
|
2549
2490
|
jsonString: string,
|
|
2550
|
-
): SafeParseResult<
|
|
2491
|
+
): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
|
|
2551
2492
|
return safeParse(
|
|
2552
2493
|
jsonString,
|
|
2553
|
-
(x) =>
|
|
2554
|
-
|
|
2555
|
-
`Failed to parse 'UpdatePromptResponseFormatPrompts2' from JSON`,
|
|
2494
|
+
(x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
2495
|
+
`Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
|
|
2556
2496
|
);
|
|
2557
2497
|
}
|
|
2558
2498
|
|
|
2559
2499
|
/** @internal */
|
|
2560
|
-
export const
|
|
2561
|
-
z.ZodNativeEnum<typeof
|
|
2562
|
-
|
|
2500
|
+
export const UpdatePromptResponseFormatPromptsType$inboundSchema:
|
|
2501
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
|
|
2502
|
+
UpdatePromptResponseFormatPromptsType,
|
|
2503
|
+
);
|
|
2563
2504
|
|
|
2564
2505
|
/** @internal */
|
|
2565
|
-
export const
|
|
2566
|
-
z.ZodNativeEnum<typeof
|
|
2567
|
-
|
|
2506
|
+
export const UpdatePromptResponseFormatPromptsType$outboundSchema:
|
|
2507
|
+
z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
|
|
2508
|
+
UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
2568
2509
|
|
|
2569
2510
|
/**
|
|
2570
2511
|
* @internal
|
|
2571
2512
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2572
2513
|
*/
|
|
2573
|
-
export namespace
|
|
2574
|
-
/** @deprecated use `
|
|
2514
|
+
export namespace UpdatePromptResponseFormatPromptsType$ {
|
|
2515
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
2575
2516
|
export const inboundSchema =
|
|
2576
|
-
|
|
2577
|
-
/** @deprecated use `
|
|
2517
|
+
UpdatePromptResponseFormatPromptsType$inboundSchema;
|
|
2518
|
+
/** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
2578
2519
|
export const outboundSchema =
|
|
2579
|
-
|
|
2520
|
+
UpdatePromptResponseFormatPromptsType$outboundSchema;
|
|
2580
2521
|
}
|
|
2581
2522
|
|
|
2582
2523
|
/** @internal */
|
|
@@ -2645,12 +2586,12 @@ export function updatePromptResponseFormatJsonSchemaFromJSON(
|
|
|
2645
2586
|
}
|
|
2646
2587
|
|
|
2647
2588
|
/** @internal */
|
|
2648
|
-
export const
|
|
2649
|
-
|
|
2589
|
+
export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
2590
|
+
UpdatePromptResponseFormat1,
|
|
2650
2591
|
z.ZodTypeDef,
|
|
2651
2592
|
unknown
|
|
2652
2593
|
> = z.object({
|
|
2653
|
-
type:
|
|
2594
|
+
type: UpdatePromptResponseFormatPromptsType$inboundSchema,
|
|
2654
2595
|
json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
|
|
2655
2596
|
}).transform((v) => {
|
|
2656
2597
|
return remap$(v, {
|
|
@@ -2659,18 +2600,18 @@ export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
|
|
|
2659
2600
|
});
|
|
2660
2601
|
|
|
2661
2602
|
/** @internal */
|
|
2662
|
-
export type
|
|
2603
|
+
export type UpdatePromptResponseFormat1$Outbound = {
|
|
2663
2604
|
type: string;
|
|
2664
2605
|
json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
|
|
2665
2606
|
};
|
|
2666
2607
|
|
|
2667
2608
|
/** @internal */
|
|
2668
|
-
export const
|
|
2669
|
-
|
|
2609
|
+
export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
2610
|
+
UpdatePromptResponseFormat1$Outbound,
|
|
2670
2611
|
z.ZodTypeDef,
|
|
2671
|
-
|
|
2612
|
+
UpdatePromptResponseFormat1
|
|
2672
2613
|
> = z.object({
|
|
2673
|
-
type:
|
|
2614
|
+
type: UpdatePromptResponseFormatPromptsType$outboundSchema,
|
|
2674
2615
|
jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
|
|
2675
2616
|
}).transform((v) => {
|
|
2676
2617
|
return remap$(v, {
|
|
@@ -2682,166 +2623,157 @@ export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
|
|
|
2682
2623
|
* @internal
|
|
2683
2624
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2684
2625
|
*/
|
|
2685
|
-
export namespace
|
|
2686
|
-
/** @deprecated use `
|
|
2687
|
-
export const inboundSchema =
|
|
2688
|
-
/** @deprecated use `
|
|
2689
|
-
export const outboundSchema =
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
export type Outbound = UpdatePromptResponseFormatPrompts1$Outbound;
|
|
2626
|
+
export namespace UpdatePromptResponseFormat1$ {
|
|
2627
|
+
/** @deprecated use `UpdatePromptResponseFormat1$inboundSchema` instead. */
|
|
2628
|
+
export const inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
|
|
2629
|
+
/** @deprecated use `UpdatePromptResponseFormat1$outboundSchema` instead. */
|
|
2630
|
+
export const outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
|
|
2631
|
+
/** @deprecated use `UpdatePromptResponseFormat1$Outbound` instead. */
|
|
2632
|
+
export type Outbound = UpdatePromptResponseFormat1$Outbound;
|
|
2693
2633
|
}
|
|
2694
2634
|
|
|
2695
|
-
export function
|
|
2696
|
-
|
|
2635
|
+
export function updatePromptResponseFormat1ToJSON(
|
|
2636
|
+
updatePromptResponseFormat1: UpdatePromptResponseFormat1,
|
|
2697
2637
|
): string {
|
|
2698
2638
|
return JSON.stringify(
|
|
2699
|
-
|
|
2700
|
-
|
|
2639
|
+
UpdatePromptResponseFormat1$outboundSchema.parse(
|
|
2640
|
+
updatePromptResponseFormat1,
|
|
2701
2641
|
),
|
|
2702
2642
|
);
|
|
2703
2643
|
}
|
|
2704
2644
|
|
|
2705
|
-
export function
|
|
2645
|
+
export function updatePromptResponseFormat1FromJSON(
|
|
2706
2646
|
jsonString: string,
|
|
2707
|
-
): SafeParseResult<
|
|
2647
|
+
): SafeParseResult<UpdatePromptResponseFormat1, SDKValidationError> {
|
|
2708
2648
|
return safeParse(
|
|
2709
2649
|
jsonString,
|
|
2710
|
-
(x) =>
|
|
2711
|
-
|
|
2712
|
-
`Failed to parse 'UpdatePromptResponseFormatPrompts1' from JSON`,
|
|
2650
|
+
(x) => UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
2651
|
+
`Failed to parse 'UpdatePromptResponseFormat1' from JSON`,
|
|
2713
2652
|
);
|
|
2714
2653
|
}
|
|
2715
2654
|
|
|
2716
2655
|
/** @internal */
|
|
2717
|
-
export const
|
|
2718
|
-
|
|
2656
|
+
export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
|
|
2657
|
+
UpdatePromptResponseFormat,
|
|
2719
2658
|
z.ZodTypeDef,
|
|
2720
2659
|
unknown
|
|
2721
2660
|
> = z.union([
|
|
2722
|
-
z.lazy(() =>
|
|
2723
|
-
z.lazy(() =>
|
|
2661
|
+
z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
|
|
2662
|
+
z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
|
|
2724
2663
|
]);
|
|
2725
2664
|
|
|
2726
2665
|
/** @internal */
|
|
2727
|
-
export type
|
|
2728
|
-
|
|
|
2729
|
-
|
|
|
2666
|
+
export type UpdatePromptResponseFormat$Outbound =
|
|
2667
|
+
| UpdatePromptResponseFormat2$Outbound
|
|
2668
|
+
| UpdatePromptResponseFormat1$Outbound;
|
|
2730
2669
|
|
|
2731
2670
|
/** @internal */
|
|
2732
|
-
export const
|
|
2733
|
-
|
|
2671
|
+
export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
2672
|
+
UpdatePromptResponseFormat$Outbound,
|
|
2734
2673
|
z.ZodTypeDef,
|
|
2735
|
-
|
|
2674
|
+
UpdatePromptResponseFormat
|
|
2736
2675
|
> = z.union([
|
|
2737
|
-
z.lazy(() =>
|
|
2738
|
-
z.lazy(() =>
|
|
2676
|
+
z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
|
|
2677
|
+
z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
|
|
2739
2678
|
]);
|
|
2740
2679
|
|
|
2741
2680
|
/**
|
|
2742
2681
|
* @internal
|
|
2743
2682
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2744
2683
|
*/
|
|
2745
|
-
export namespace
|
|
2746
|
-
/** @deprecated use `
|
|
2747
|
-
export const inboundSchema =
|
|
2748
|
-
/** @deprecated use `
|
|
2749
|
-
export const outboundSchema =
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
export type Outbound = UpdatePromptPromptsResponseFormat$Outbound;
|
|
2684
|
+
export namespace UpdatePromptResponseFormat$ {
|
|
2685
|
+
/** @deprecated use `UpdatePromptResponseFormat$inboundSchema` instead. */
|
|
2686
|
+
export const inboundSchema = UpdatePromptResponseFormat$inboundSchema;
|
|
2687
|
+
/** @deprecated use `UpdatePromptResponseFormat$outboundSchema` instead. */
|
|
2688
|
+
export const outboundSchema = UpdatePromptResponseFormat$outboundSchema;
|
|
2689
|
+
/** @deprecated use `UpdatePromptResponseFormat$Outbound` instead. */
|
|
2690
|
+
export type Outbound = UpdatePromptResponseFormat$Outbound;
|
|
2753
2691
|
}
|
|
2754
2692
|
|
|
2755
|
-
export function
|
|
2756
|
-
|
|
2693
|
+
export function updatePromptResponseFormatToJSON(
|
|
2694
|
+
updatePromptResponseFormat: UpdatePromptResponseFormat,
|
|
2757
2695
|
): string {
|
|
2758
2696
|
return JSON.stringify(
|
|
2759
|
-
|
|
2760
|
-
updatePromptPromptsResponseFormat,
|
|
2761
|
-
),
|
|
2697
|
+
UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
|
|
2762
2698
|
);
|
|
2763
2699
|
}
|
|
2764
2700
|
|
|
2765
|
-
export function
|
|
2701
|
+
export function updatePromptResponseFormatFromJSON(
|
|
2766
2702
|
jsonString: string,
|
|
2767
|
-
): SafeParseResult<
|
|
2703
|
+
): SafeParseResult<UpdatePromptResponseFormat, SDKValidationError> {
|
|
2768
2704
|
return safeParse(
|
|
2769
2705
|
jsonString,
|
|
2770
|
-
(x) =>
|
|
2771
|
-
`Failed to parse '
|
|
2706
|
+
(x) => UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
2707
|
+
`Failed to parse 'UpdatePromptResponseFormat' from JSON`,
|
|
2772
2708
|
);
|
|
2773
2709
|
}
|
|
2774
2710
|
|
|
2775
2711
|
/** @internal */
|
|
2776
|
-
export const
|
|
2777
|
-
typeof
|
|
2778
|
-
> = z.nativeEnum(
|
|
2712
|
+
export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
2713
|
+
typeof UpdatePromptPhotoRealVersion
|
|
2714
|
+
> = z.nativeEnum(UpdatePromptPhotoRealVersion);
|
|
2779
2715
|
|
|
2780
2716
|
/** @internal */
|
|
2781
|
-
export const
|
|
2782
|
-
|
|
2783
|
-
|
|
2717
|
+
export const UpdatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
2718
|
+
typeof UpdatePromptPhotoRealVersion
|
|
2719
|
+
> = UpdatePromptPhotoRealVersion$inboundSchema;
|
|
2784
2720
|
|
|
2785
2721
|
/**
|
|
2786
2722
|
* @internal
|
|
2787
2723
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2788
2724
|
*/
|
|
2789
|
-
export namespace
|
|
2790
|
-
/** @deprecated use `
|
|
2791
|
-
export const inboundSchema =
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
export const outboundSchema =
|
|
2795
|
-
UpdatePromptPromptsPhotoRealVersion$outboundSchema;
|
|
2725
|
+
export namespace UpdatePromptPhotoRealVersion$ {
|
|
2726
|
+
/** @deprecated use `UpdatePromptPhotoRealVersion$inboundSchema` instead. */
|
|
2727
|
+
export const inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
|
|
2728
|
+
/** @deprecated use `UpdatePromptPhotoRealVersion$outboundSchema` instead. */
|
|
2729
|
+
export const outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
|
|
2796
2730
|
}
|
|
2797
2731
|
|
|
2798
2732
|
/** @internal */
|
|
2799
|
-
export const
|
|
2800
|
-
typeof
|
|
2801
|
-
> = z.nativeEnum(
|
|
2733
|
+
export const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
2734
|
+
typeof UpdatePromptEncodingFormat
|
|
2735
|
+
> = z.nativeEnum(UpdatePromptEncodingFormat);
|
|
2802
2736
|
|
|
2803
2737
|
/** @internal */
|
|
2804
|
-
export const
|
|
2805
|
-
typeof
|
|
2806
|
-
> =
|
|
2738
|
+
export const UpdatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
2739
|
+
typeof UpdatePromptEncodingFormat
|
|
2740
|
+
> = UpdatePromptEncodingFormat$inboundSchema;
|
|
2807
2741
|
|
|
2808
2742
|
/**
|
|
2809
2743
|
* @internal
|
|
2810
2744
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2811
2745
|
*/
|
|
2812
|
-
export namespace
|
|
2813
|
-
/** @deprecated use `
|
|
2814
|
-
export const inboundSchema =
|
|
2815
|
-
/** @deprecated use `
|
|
2816
|
-
export const outboundSchema =
|
|
2817
|
-
UpdatePromptPromptsEncodingFormat$outboundSchema;
|
|
2746
|
+
export namespace UpdatePromptEncodingFormat$ {
|
|
2747
|
+
/** @deprecated use `UpdatePromptEncodingFormat$inboundSchema` instead. */
|
|
2748
|
+
export const inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
|
|
2749
|
+
/** @deprecated use `UpdatePromptEncodingFormat$outboundSchema` instead. */
|
|
2750
|
+
export const outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
|
|
2818
2751
|
}
|
|
2819
2752
|
|
|
2820
2753
|
/** @internal */
|
|
2821
|
-
export const
|
|
2822
|
-
typeof
|
|
2823
|
-
> = z.nativeEnum(
|
|
2754
|
+
export const UpdatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
2755
|
+
typeof UpdatePromptReasoningEffort
|
|
2756
|
+
> = z.nativeEnum(UpdatePromptReasoningEffort);
|
|
2824
2757
|
|
|
2825
2758
|
/** @internal */
|
|
2826
|
-
export const
|
|
2827
|
-
typeof
|
|
2828
|
-
> =
|
|
2759
|
+
export const UpdatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
2760
|
+
typeof UpdatePromptReasoningEffort
|
|
2761
|
+
> = UpdatePromptReasoningEffort$inboundSchema;
|
|
2829
2762
|
|
|
2830
2763
|
/**
|
|
2831
2764
|
* @internal
|
|
2832
2765
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2833
2766
|
*/
|
|
2834
|
-
export namespace
|
|
2835
|
-
/** @deprecated use `
|
|
2836
|
-
export const inboundSchema =
|
|
2837
|
-
/** @deprecated use `
|
|
2838
|
-
export const outboundSchema =
|
|
2839
|
-
UpdatePromptPromptsReasoningEffort$outboundSchema;
|
|
2767
|
+
export namespace UpdatePromptReasoningEffort$ {
|
|
2768
|
+
/** @deprecated use `UpdatePromptReasoningEffort$inboundSchema` instead. */
|
|
2769
|
+
export const inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
|
|
2770
|
+
/** @deprecated use `UpdatePromptReasoningEffort$outboundSchema` instead. */
|
|
2771
|
+
export const outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
|
|
2840
2772
|
}
|
|
2841
2773
|
|
|
2842
2774
|
/** @internal */
|
|
2843
|
-
export const
|
|
2844
|
-
|
|
2775
|
+
export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
|
|
2776
|
+
UpdatePromptModelParameters,
|
|
2845
2777
|
z.ZodTypeDef,
|
|
2846
2778
|
unknown
|
|
2847
2779
|
> = z.object({
|
|
@@ -2853,20 +2785,20 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
2853
2785
|
presencePenalty: z.number().optional(),
|
|
2854
2786
|
numImages: z.number().optional(),
|
|
2855
2787
|
seed: z.number().optional(),
|
|
2856
|
-
format:
|
|
2788
|
+
format: UpdatePromptFormat$inboundSchema.optional(),
|
|
2857
2789
|
dimensions: z.string().optional(),
|
|
2858
|
-
quality:
|
|
2790
|
+
quality: UpdatePromptQuality$inboundSchema.optional(),
|
|
2859
2791
|
style: z.string().optional(),
|
|
2860
2792
|
responseFormat: z.nullable(
|
|
2861
2793
|
z.union([
|
|
2862
|
-
z.lazy(() =>
|
|
2863
|
-
z.lazy(() =>
|
|
2794
|
+
z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
|
|
2795
|
+
z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
|
|
2864
2796
|
]),
|
|
2865
2797
|
).optional(),
|
|
2866
|
-
photoRealVersion:
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2798
|
+
photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
2799
|
+
encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
|
|
2800
|
+
reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
|
|
2801
|
+
budgetTokens: z.number().optional(),
|
|
2870
2802
|
}).transform((v) => {
|
|
2871
2803
|
return remap$(v, {
|
|
2872
2804
|
"encoding_format": "encodingFormat",
|
|
@@ -2874,7 +2806,7 @@ export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
|
|
|
2874
2806
|
});
|
|
2875
2807
|
|
|
2876
2808
|
/** @internal */
|
|
2877
|
-
export type
|
|
2809
|
+
export type UpdatePromptModelParameters$Outbound = {
|
|
2878
2810
|
temperature?: number | undefined;
|
|
2879
2811
|
maxTokens?: number | undefined;
|
|
2880
2812
|
topK?: number | undefined;
|
|
@@ -2888,20 +2820,21 @@ export type UpdatePromptPromptsModelParameters$Outbound = {
|
|
|
2888
2820
|
quality?: string | undefined;
|
|
2889
2821
|
style?: string | undefined;
|
|
2890
2822
|
responseFormat?:
|
|
2891
|
-
|
|
|
2892
|
-
|
|
|
2823
|
+
| UpdatePromptResponseFormat2$Outbound
|
|
2824
|
+
| UpdatePromptResponseFormat1$Outbound
|
|
2893
2825
|
| null
|
|
2894
2826
|
| undefined;
|
|
2895
2827
|
photoRealVersion?: string | undefined;
|
|
2896
2828
|
encoding_format?: string | undefined;
|
|
2897
2829
|
reasoningEffort?: string | undefined;
|
|
2830
|
+
budgetTokens?: number | undefined;
|
|
2898
2831
|
};
|
|
2899
2832
|
|
|
2900
2833
|
/** @internal */
|
|
2901
|
-
export const
|
|
2902
|
-
|
|
2834
|
+
export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
|
|
2835
|
+
UpdatePromptModelParameters$Outbound,
|
|
2903
2836
|
z.ZodTypeDef,
|
|
2904
|
-
|
|
2837
|
+
UpdatePromptModelParameters
|
|
2905
2838
|
> = z.object({
|
|
2906
2839
|
temperature: z.number().optional(),
|
|
2907
2840
|
maxTokens: z.number().optional(),
|
|
@@ -2911,20 +2844,20 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
2911
2844
|
presencePenalty: z.number().optional(),
|
|
2912
2845
|
numImages: z.number().optional(),
|
|
2913
2846
|
seed: z.number().optional(),
|
|
2914
|
-
format:
|
|
2847
|
+
format: UpdatePromptFormat$outboundSchema.optional(),
|
|
2915
2848
|
dimensions: z.string().optional(),
|
|
2916
|
-
quality:
|
|
2849
|
+
quality: UpdatePromptQuality$outboundSchema.optional(),
|
|
2917
2850
|
style: z.string().optional(),
|
|
2918
2851
|
responseFormat: z.nullable(
|
|
2919
2852
|
z.union([
|
|
2920
|
-
z.lazy(() =>
|
|
2921
|
-
z.lazy(() =>
|
|
2853
|
+
z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
|
|
2854
|
+
z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
|
|
2922
2855
|
]),
|
|
2923
2856
|
).optional(),
|
|
2924
|
-
photoRealVersion:
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2857
|
+
photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
|
|
2858
|
+
encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
|
|
2859
|
+
reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
|
|
2860
|
+
budgetTokens: z.number().optional(),
|
|
2928
2861
|
}).transform((v) => {
|
|
2929
2862
|
return remap$(v, {
|
|
2930
2863
|
encodingFormat: "encoding_format",
|
|
@@ -2935,56 +2868,54 @@ export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
|
|
|
2935
2868
|
* @internal
|
|
2936
2869
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2937
2870
|
*/
|
|
2938
|
-
export namespace
|
|
2939
|
-
/** @deprecated use `
|
|
2940
|
-
export const inboundSchema =
|
|
2941
|
-
/** @deprecated use `
|
|
2942
|
-
export const outboundSchema =
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
export type Outbound = UpdatePromptPromptsModelParameters$Outbound;
|
|
2871
|
+
export namespace UpdatePromptModelParameters$ {
|
|
2872
|
+
/** @deprecated use `UpdatePromptModelParameters$inboundSchema` instead. */
|
|
2873
|
+
export const inboundSchema = UpdatePromptModelParameters$inboundSchema;
|
|
2874
|
+
/** @deprecated use `UpdatePromptModelParameters$outboundSchema` instead. */
|
|
2875
|
+
export const outboundSchema = UpdatePromptModelParameters$outboundSchema;
|
|
2876
|
+
/** @deprecated use `UpdatePromptModelParameters$Outbound` instead. */
|
|
2877
|
+
export type Outbound = UpdatePromptModelParameters$Outbound;
|
|
2946
2878
|
}
|
|
2947
2879
|
|
|
2948
|
-
export function
|
|
2949
|
-
|
|
2880
|
+
export function updatePromptModelParametersToJSON(
|
|
2881
|
+
updatePromptModelParameters: UpdatePromptModelParameters,
|
|
2950
2882
|
): string {
|
|
2951
2883
|
return JSON.stringify(
|
|
2952
|
-
|
|
2953
|
-
|
|
2884
|
+
UpdatePromptModelParameters$outboundSchema.parse(
|
|
2885
|
+
updatePromptModelParameters,
|
|
2954
2886
|
),
|
|
2955
2887
|
);
|
|
2956
2888
|
}
|
|
2957
2889
|
|
|
2958
|
-
export function
|
|
2890
|
+
export function updatePromptModelParametersFromJSON(
|
|
2959
2891
|
jsonString: string,
|
|
2960
|
-
): SafeParseResult<
|
|
2892
|
+
): SafeParseResult<UpdatePromptModelParameters, SDKValidationError> {
|
|
2961
2893
|
return safeParse(
|
|
2962
2894
|
jsonString,
|
|
2963
|
-
(x) =>
|
|
2964
|
-
|
|
2965
|
-
`Failed to parse 'UpdatePromptPromptsModelParameters' from JSON`,
|
|
2895
|
+
(x) => UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2896
|
+
`Failed to parse 'UpdatePromptModelParameters' from JSON`,
|
|
2966
2897
|
);
|
|
2967
2898
|
}
|
|
2968
2899
|
|
|
2969
2900
|
/** @internal */
|
|
2970
|
-
export const
|
|
2971
|
-
typeof
|
|
2972
|
-
> = z.nativeEnum(
|
|
2901
|
+
export const UpdatePromptProvider$inboundSchema: z.ZodNativeEnum<
|
|
2902
|
+
typeof UpdatePromptProvider
|
|
2903
|
+
> = z.nativeEnum(UpdatePromptProvider);
|
|
2973
2904
|
|
|
2974
2905
|
/** @internal */
|
|
2975
|
-
export const
|
|
2976
|
-
typeof
|
|
2977
|
-
> =
|
|
2906
|
+
export const UpdatePromptProvider$outboundSchema: z.ZodNativeEnum<
|
|
2907
|
+
typeof UpdatePromptProvider
|
|
2908
|
+
> = UpdatePromptProvider$inboundSchema;
|
|
2978
2909
|
|
|
2979
2910
|
/**
|
|
2980
2911
|
* @internal
|
|
2981
2912
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2982
2913
|
*/
|
|
2983
|
-
export namespace
|
|
2984
|
-
/** @deprecated use `
|
|
2985
|
-
export const inboundSchema =
|
|
2986
|
-
/** @deprecated use `
|
|
2987
|
-
export const outboundSchema =
|
|
2914
|
+
export namespace UpdatePromptProvider$ {
|
|
2915
|
+
/** @deprecated use `UpdatePromptProvider$inboundSchema` instead. */
|
|
2916
|
+
export const inboundSchema = UpdatePromptProvider$inboundSchema;
|
|
2917
|
+
/** @deprecated use `UpdatePromptProvider$outboundSchema` instead. */
|
|
2918
|
+
export const outboundSchema = UpdatePromptProvider$outboundSchema;
|
|
2988
2919
|
}
|
|
2989
2920
|
|
|
2990
2921
|
/** @internal */
|
|
@@ -3588,19 +3519,18 @@ export function updatePromptPromptsMessagesFromJSON(
|
|
|
3588
3519
|
}
|
|
3589
3520
|
|
|
3590
3521
|
/** @internal */
|
|
3591
|
-
export const
|
|
3592
|
-
|
|
3522
|
+
export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
|
|
3523
|
+
UpdatePromptPromptConfig,
|
|
3593
3524
|
z.ZodTypeDef,
|
|
3594
3525
|
unknown
|
|
3595
3526
|
> = z.object({
|
|
3596
3527
|
stream: z.boolean().optional(),
|
|
3597
3528
|
model: z.string().optional(),
|
|
3598
3529
|
model_db_id: z.string().optional(),
|
|
3599
|
-
model_type:
|
|
3600
|
-
model_parameters: z.lazy(() =>
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
provider: UpdatePromptPromptsProvider$inboundSchema.optional(),
|
|
3530
|
+
model_type: UpdatePromptModelType$inboundSchema.optional(),
|
|
3531
|
+
model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
|
|
3532
|
+
.optional(),
|
|
3533
|
+
provider: UpdatePromptProvider$inboundSchema.optional(),
|
|
3604
3534
|
integration_id: z.nullable(z.string()).optional(),
|
|
3605
3535
|
version: z.string().optional(),
|
|
3606
3536
|
messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$inboundSchema)),
|
|
@@ -3614,12 +3544,12 @@ export const UpdatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
|
3614
3544
|
});
|
|
3615
3545
|
|
|
3616
3546
|
/** @internal */
|
|
3617
|
-
export type
|
|
3547
|
+
export type UpdatePromptPromptConfig$Outbound = {
|
|
3618
3548
|
stream?: boolean | undefined;
|
|
3619
3549
|
model?: string | undefined;
|
|
3620
3550
|
model_db_id?: string | undefined;
|
|
3621
3551
|
model_type?: string | undefined;
|
|
3622
|
-
model_parameters?:
|
|
3552
|
+
model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
|
|
3623
3553
|
provider?: string | undefined;
|
|
3624
3554
|
integration_id?: string | null | undefined;
|
|
3625
3555
|
version?: string | undefined;
|
|
@@ -3627,19 +3557,18 @@ export type UpdatePromptPromptsPromptConfig$Outbound = {
|
|
|
3627
3557
|
};
|
|
3628
3558
|
|
|
3629
3559
|
/** @internal */
|
|
3630
|
-
export const
|
|
3631
|
-
|
|
3560
|
+
export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
|
|
3561
|
+
UpdatePromptPromptConfig$Outbound,
|
|
3632
3562
|
z.ZodTypeDef,
|
|
3633
|
-
|
|
3563
|
+
UpdatePromptPromptConfig
|
|
3634
3564
|
> = z.object({
|
|
3635
3565
|
stream: z.boolean().optional(),
|
|
3636
3566
|
model: z.string().optional(),
|
|
3637
3567
|
modelDbId: z.string().optional(),
|
|
3638
|
-
modelType:
|
|
3639
|
-
modelParameters: z.lazy(() =>
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
provider: UpdatePromptPromptsProvider$outboundSchema.optional(),
|
|
3568
|
+
modelType: UpdatePromptModelType$outboundSchema.optional(),
|
|
3569
|
+
modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
|
|
3570
|
+
.optional(),
|
|
3571
|
+
provider: UpdatePromptProvider$outboundSchema.optional(),
|
|
3643
3572
|
integrationId: z.nullable(z.string()).optional(),
|
|
3644
3573
|
version: z.string().optional(),
|
|
3645
3574
|
messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$outboundSchema)),
|
|
@@ -3656,75 +3585,73 @@ export const UpdatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
|
|
|
3656
3585
|
* @internal
|
|
3657
3586
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3658
3587
|
*/
|
|
3659
|
-
export namespace
|
|
3660
|
-
/** @deprecated use `
|
|
3661
|
-
export const inboundSchema =
|
|
3662
|
-
/** @deprecated use `
|
|
3663
|
-
export const outboundSchema =
|
|
3664
|
-
/** @deprecated use `
|
|
3665
|
-
export type Outbound =
|
|
3588
|
+
export namespace UpdatePromptPromptConfig$ {
|
|
3589
|
+
/** @deprecated use `UpdatePromptPromptConfig$inboundSchema` instead. */
|
|
3590
|
+
export const inboundSchema = UpdatePromptPromptConfig$inboundSchema;
|
|
3591
|
+
/** @deprecated use `UpdatePromptPromptConfig$outboundSchema` instead. */
|
|
3592
|
+
export const outboundSchema = UpdatePromptPromptConfig$outboundSchema;
|
|
3593
|
+
/** @deprecated use `UpdatePromptPromptConfig$Outbound` instead. */
|
|
3594
|
+
export type Outbound = UpdatePromptPromptConfig$Outbound;
|
|
3666
3595
|
}
|
|
3667
3596
|
|
|
3668
|
-
export function
|
|
3669
|
-
|
|
3597
|
+
export function updatePromptPromptConfigToJSON(
|
|
3598
|
+
updatePromptPromptConfig: UpdatePromptPromptConfig,
|
|
3670
3599
|
): string {
|
|
3671
3600
|
return JSON.stringify(
|
|
3672
|
-
|
|
3673
|
-
updatePromptPromptsPromptConfig,
|
|
3674
|
-
),
|
|
3601
|
+
UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
|
|
3675
3602
|
);
|
|
3676
3603
|
}
|
|
3677
3604
|
|
|
3678
|
-
export function
|
|
3605
|
+
export function updatePromptPromptConfigFromJSON(
|
|
3679
3606
|
jsonString: string,
|
|
3680
|
-
): SafeParseResult<
|
|
3607
|
+
): SafeParseResult<UpdatePromptPromptConfig, SDKValidationError> {
|
|
3681
3608
|
return safeParse(
|
|
3682
3609
|
jsonString,
|
|
3683
|
-
(x) =>
|
|
3684
|
-
`Failed to parse '
|
|
3610
|
+
(x) => UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3611
|
+
`Failed to parse 'UpdatePromptPromptConfig' from JSON`,
|
|
3685
3612
|
);
|
|
3686
3613
|
}
|
|
3687
3614
|
|
|
3688
3615
|
/** @internal */
|
|
3689
|
-
export const
|
|
3690
|
-
typeof
|
|
3691
|
-
> = z.nativeEnum(
|
|
3616
|
+
export const UpdatePromptUseCases$inboundSchema: z.ZodNativeEnum<
|
|
3617
|
+
typeof UpdatePromptUseCases
|
|
3618
|
+
> = z.nativeEnum(UpdatePromptUseCases);
|
|
3692
3619
|
|
|
3693
3620
|
/** @internal */
|
|
3694
|
-
export const
|
|
3695
|
-
typeof
|
|
3696
|
-
> =
|
|
3621
|
+
export const UpdatePromptUseCases$outboundSchema: z.ZodNativeEnum<
|
|
3622
|
+
typeof UpdatePromptUseCases
|
|
3623
|
+
> = UpdatePromptUseCases$inboundSchema;
|
|
3697
3624
|
|
|
3698
3625
|
/**
|
|
3699
3626
|
* @internal
|
|
3700
3627
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3701
3628
|
*/
|
|
3702
|
-
export namespace
|
|
3703
|
-
/** @deprecated use `
|
|
3704
|
-
export const inboundSchema =
|
|
3705
|
-
/** @deprecated use `
|
|
3706
|
-
export const outboundSchema =
|
|
3629
|
+
export namespace UpdatePromptUseCases$ {
|
|
3630
|
+
/** @deprecated use `UpdatePromptUseCases$inboundSchema` instead. */
|
|
3631
|
+
export const inboundSchema = UpdatePromptUseCases$inboundSchema;
|
|
3632
|
+
/** @deprecated use `UpdatePromptUseCases$outboundSchema` instead. */
|
|
3633
|
+
export const outboundSchema = UpdatePromptUseCases$outboundSchema;
|
|
3707
3634
|
}
|
|
3708
3635
|
|
|
3709
3636
|
/** @internal */
|
|
3710
|
-
export const
|
|
3711
|
-
typeof
|
|
3712
|
-
> = z.nativeEnum(
|
|
3637
|
+
export const UpdatePromptLanguage$inboundSchema: z.ZodNativeEnum<
|
|
3638
|
+
typeof UpdatePromptLanguage
|
|
3639
|
+
> = z.nativeEnum(UpdatePromptLanguage);
|
|
3713
3640
|
|
|
3714
3641
|
/** @internal */
|
|
3715
|
-
export const
|
|
3716
|
-
typeof
|
|
3717
|
-
> =
|
|
3642
|
+
export const UpdatePromptLanguage$outboundSchema: z.ZodNativeEnum<
|
|
3643
|
+
typeof UpdatePromptLanguage
|
|
3644
|
+
> = UpdatePromptLanguage$inboundSchema;
|
|
3718
3645
|
|
|
3719
3646
|
/**
|
|
3720
3647
|
* @internal
|
|
3721
3648
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3722
3649
|
*/
|
|
3723
|
-
export namespace
|
|
3724
|
-
/** @deprecated use `
|
|
3725
|
-
export const inboundSchema =
|
|
3726
|
-
/** @deprecated use `
|
|
3727
|
-
export const outboundSchema =
|
|
3650
|
+
export namespace UpdatePromptLanguage$ {
|
|
3651
|
+
/** @deprecated use `UpdatePromptLanguage$inboundSchema` instead. */
|
|
3652
|
+
export const inboundSchema = UpdatePromptLanguage$inboundSchema;
|
|
3653
|
+
/** @deprecated use `UpdatePromptLanguage$outboundSchema` instead. */
|
|
3654
|
+
export const outboundSchema = UpdatePromptLanguage$outboundSchema;
|
|
3728
3655
|
}
|
|
3729
3656
|
|
|
3730
3657
|
/** @internal */
|
|
@@ -3733,8 +3660,8 @@ export const UpdatePromptPromptsMetadata$inboundSchema: z.ZodType<
|
|
|
3733
3660
|
z.ZodTypeDef,
|
|
3734
3661
|
unknown
|
|
3735
3662
|
> = z.object({
|
|
3736
|
-
use_cases: z.array(
|
|
3737
|
-
language:
|
|
3663
|
+
use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
|
|
3664
|
+
language: UpdatePromptLanguage$inboundSchema.optional(),
|
|
3738
3665
|
}).transform((v) => {
|
|
3739
3666
|
return remap$(v, {
|
|
3740
3667
|
"use_cases": "useCases",
|
|
@@ -3753,8 +3680,8 @@ export const UpdatePromptPromptsMetadata$outboundSchema: z.ZodType<
|
|
|
3753
3680
|
z.ZodTypeDef,
|
|
3754
3681
|
UpdatePromptPromptsMetadata
|
|
3755
3682
|
> = z.object({
|
|
3756
|
-
useCases: z.array(
|
|
3757
|
-
language:
|
|
3683
|
+
useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
|
|
3684
|
+
language: UpdatePromptLanguage$outboundSchema.optional(),
|
|
3758
3685
|
}).transform((v) => {
|
|
3759
3686
|
return remap$(v, {
|
|
3760
3687
|
useCases: "use_cases",
|
|
@@ -3810,7 +3737,7 @@ export const UpdatePromptResponseBody$inboundSchema: z.ZodType<
|
|
|
3810
3737
|
updated_by_id: z.string().optional(),
|
|
3811
3738
|
display_name: z.string(),
|
|
3812
3739
|
description: z.nullable(z.string()).optional(),
|
|
3813
|
-
prompt_config: z.lazy(() =>
|
|
3740
|
+
prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema),
|
|
3814
3741
|
metadata: z.lazy(() => UpdatePromptPromptsMetadata$inboundSchema).optional(),
|
|
3815
3742
|
}).transform((v) => {
|
|
3816
3743
|
return remap$(v, {
|
|
@@ -3835,7 +3762,7 @@ export type UpdatePromptResponseBody$Outbound = {
|
|
|
3835
3762
|
updated_by_id?: string | undefined;
|
|
3836
3763
|
display_name: string;
|
|
3837
3764
|
description?: string | null | undefined;
|
|
3838
|
-
prompt_config:
|
|
3765
|
+
prompt_config: UpdatePromptPromptConfig$Outbound;
|
|
3839
3766
|
metadata?: UpdatePromptPromptsMetadata$Outbound | undefined;
|
|
3840
3767
|
};
|
|
3841
3768
|
|
|
@@ -3855,7 +3782,7 @@ export const UpdatePromptResponseBody$outboundSchema: z.ZodType<
|
|
|
3855
3782
|
updatedById: z.string().optional(),
|
|
3856
3783
|
displayName: z.string(),
|
|
3857
3784
|
description: z.nullable(z.string()).optional(),
|
|
3858
|
-
promptConfig: z.lazy(() =>
|
|
3785
|
+
promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema),
|
|
3859
3786
|
metadata: z.lazy(() => UpdatePromptPromptsMetadata$outboundSchema).optional(),
|
|
3860
3787
|
}).transform((v) => {
|
|
3861
3788
|
return remap$(v, {
|