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