@orq-ai/node 3.1.9 → 3.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +55 -1
- package/bin/mcp-server.js +50033 -0
- package/bin/mcp-server.js.map +318 -0
- package/funcs/contactsCreate.d.ts +2 -1
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +11 -7
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/deploymentsGetConfig.d.ts +2 -1
- package/funcs/deploymentsGetConfig.d.ts.map +1 -1
- package/funcs/deploymentsGetConfig.js +11 -7
- package/funcs/deploymentsGetConfig.js.map +1 -1
- package/funcs/deploymentsInvoke.d.ts +2 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +11 -7
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/deploymentsList.d.ts +2 -1
- package/funcs/deploymentsList.d.ts.map +1 -1
- package/funcs/deploymentsList.js +11 -7
- package/funcs/deploymentsList.js.map +1 -1
- package/funcs/deploymentsMetricsCreate.d.ts +2 -1
- package/funcs/deploymentsMetricsCreate.d.ts.map +1 -1
- package/funcs/deploymentsMetricsCreate.js +11 -7
- package/funcs/deploymentsMetricsCreate.js.map +1 -1
- package/funcs/deploymentsStream.d.ts +2 -1
- package/funcs/deploymentsStream.d.ts.map +1 -1
- package/funcs/deploymentsStream.js +11 -7
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/feedbackCreate.d.ts +2 -1
- package/funcs/feedbackCreate.d.ts.map +1 -1
- package/funcs/feedbackCreate.js +11 -7
- package/funcs/feedbackCreate.js.map +1 -1
- package/funcs/filesCreate.d.ts +2 -1
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +11 -7
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.d.ts +2 -1
- package/funcs/filesDelete.d.ts.map +1 -1
- package/funcs/filesDelete.js +11 -7
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesGet.d.ts +2 -1
- package/funcs/filesGet.d.ts.map +1 -1
- package/funcs/filesGet.js +11 -7
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.d.ts +2 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +11 -7
- package/funcs/filesList.js.map +1 -1
- package/funcs/promptsCreate.d.ts +2 -1
- package/funcs/promptsCreate.d.ts.map +1 -1
- package/funcs/promptsCreate.js +11 -7
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.d.ts +2 -1
- package/funcs/promptsDelete.d.ts.map +1 -1
- package/funcs/promptsDelete.js +11 -7
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetVersion.d.ts +2 -1
- package/funcs/promptsGetVersion.d.ts.map +1 -1
- package/funcs/promptsGetVersion.js +11 -7
- package/funcs/promptsGetVersion.js.map +1 -1
- package/funcs/promptsList.d.ts +2 -1
- package/funcs/promptsList.d.ts.map +1 -1
- package/funcs/promptsList.js +11 -7
- package/funcs/promptsList.js.map +1 -1
- package/funcs/promptsListVersions.d.ts +2 -1
- package/funcs/promptsListVersions.d.ts.map +1 -1
- package/funcs/promptsListVersions.js +11 -7
- package/funcs/promptsListVersions.js.map +1 -1
- package/funcs/promptsRetrieve.d.ts +2 -1
- package/funcs/promptsRetrieve.d.ts.map +1 -1
- package/funcs/promptsRetrieve.js +11 -7
- package/funcs/promptsRetrieve.js.map +1 -1
- package/funcs/promptsUpdate.d.ts +2 -1
- package/funcs/promptsUpdate.d.ts.map +1 -1
- package/funcs/promptsUpdate.js +11 -7
- package/funcs/promptsUpdate.js.map +1 -1
- package/funcs/remoteconfigsRetrieve.d.ts +2 -1
- package/funcs/remoteconfigsRetrieve.d.ts.map +1 -1
- package/funcs/remoteconfigsRetrieve.js +11 -7
- package/funcs/remoteconfigsRetrieve.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +6 -6
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/files.js.map +1 -1
- package/lib/primitives.d.ts +3 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +7 -0
- package/lib/primitives.js.map +1 -1
- package/lib/sdks.d.ts +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/mcp-server/build.d.mts.map +1 -0
- package/mcp-server/build.mjs +14 -0
- package/mcp-server/build.mjs.map +1 -0
- package/mcp-server/cli/start/command.d.ts +2 -0
- package/mcp-server/cli/start/command.d.ts.map +1 -0
- package/mcp-server/cli/start/command.js +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/mcp-server.d.ts +2 -0
- package/mcp-server/mcp-server.d.ts.map +1 -0
- package/mcp-server/mcp-server.js +29 -0
- package/mcp-server/mcp-server.js.map +1 -0
- package/mcp-server/resources.d.ts +27 -0
- package/mcp-server/resources.d.ts.map +1 -0
- package/mcp-server/resources.js +51 -0
- package/mcp-server/resources.js.map +1 -0
- package/mcp-server/scopes.d.ts +3 -0
- package/mcp-server/scopes.d.ts.map +1 -0
- package/mcp-server/scopes.js +8 -0
- package/mcp-server/scopes.js.map +1 -0
- package/mcp-server/server.d.ts +15 -0
- package/mcp-server/server.d.ts.map +1 -0
- package/mcp-server/server.js +66 -0
- package/mcp-server/server.js.map +1 -0
- package/mcp-server/shared.d.ts +7 -0
- package/mcp-server/shared.d.ts.map +1 -0
- package/mcp-server/shared.js +98 -0
- package/mcp-server/shared.js.map +1 -0
- package/mcp-server/tools/contactsCreate.d.ts +8 -0
- package/mcp-server/tools/contactsCreate.d.ts.map +1 -0
- package/mcp-server/tools/contactsCreate.js +64 -0
- package/mcp-server/tools/contactsCreate.js.map +1 -0
- package/mcp-server/tools/deploymentsGetConfig.d.ts +8 -0
- package/mcp-server/tools/deploymentsGetConfig.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsGetConfig.js +64 -0
- package/mcp-server/tools/deploymentsGetConfig.js.map +1 -0
- package/mcp-server/tools/deploymentsInvoke.d.ts +8 -0
- package/mcp-server/tools/deploymentsInvoke.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsInvoke.js +64 -0
- package/mcp-server/tools/deploymentsInvoke.js.map +1 -0
- package/mcp-server/tools/deploymentsList.d.ts +8 -0
- package/mcp-server/tools/deploymentsList.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsList.js +64 -0
- package/mcp-server/tools/deploymentsList.js.map +1 -0
- package/mcp-server/tools/deploymentsMetricsCreate.d.ts +8 -0
- package/mcp-server/tools/deploymentsMetricsCreate.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsMetricsCreate.js +64 -0
- package/mcp-server/tools/deploymentsMetricsCreate.js.map +1 -0
- package/mcp-server/tools/deploymentsStream.d.ts +8 -0
- package/mcp-server/tools/deploymentsStream.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsStream.js +64 -0
- package/mcp-server/tools/deploymentsStream.js.map +1 -0
- package/mcp-server/tools/feedbackCreate.d.ts +8 -0
- package/mcp-server/tools/feedbackCreate.d.ts.map +1 -0
- package/mcp-server/tools/feedbackCreate.js +64 -0
- package/mcp-server/tools/feedbackCreate.js.map +1 -0
- package/mcp-server/tools/filesCreate.d.ts +8 -0
- package/mcp-server/tools/filesCreate.d.ts.map +1 -0
- package/mcp-server/tools/filesCreate.js +64 -0
- package/mcp-server/tools/filesCreate.js.map +1 -0
- package/mcp-server/tools/filesDelete.d.ts +8 -0
- package/mcp-server/tools/filesDelete.d.ts.map +1 -0
- package/mcp-server/tools/filesDelete.js +61 -0
- package/mcp-server/tools/filesDelete.js.map +1 -0
- package/mcp-server/tools/filesGet.d.ts +8 -0
- package/mcp-server/tools/filesGet.d.ts.map +1 -0
- package/mcp-server/tools/filesGet.js +64 -0
- package/mcp-server/tools/filesGet.js.map +1 -0
- package/mcp-server/tools/filesList.d.ts +8 -0
- package/mcp-server/tools/filesList.d.ts.map +1 -0
- package/mcp-server/tools/filesList.js +64 -0
- package/mcp-server/tools/filesList.js.map +1 -0
- package/mcp-server/tools/promptsCreate.d.ts +8 -0
- package/mcp-server/tools/promptsCreate.d.ts.map +1 -0
- package/mcp-server/tools/promptsCreate.js +62 -0
- package/mcp-server/tools/promptsCreate.js.map +1 -0
- package/mcp-server/tools/promptsDelete.d.ts +8 -0
- package/mcp-server/tools/promptsDelete.d.ts.map +1 -0
- package/mcp-server/tools/promptsDelete.js +61 -0
- package/mcp-server/tools/promptsDelete.js.map +1 -0
- package/mcp-server/tools/promptsGetVersion.d.ts +8 -0
- package/mcp-server/tools/promptsGetVersion.d.ts.map +1 -0
- package/mcp-server/tools/promptsGetVersion.js +64 -0
- package/mcp-server/tools/promptsGetVersion.js.map +1 -0
- package/mcp-server/tools/promptsList.d.ts +8 -0
- package/mcp-server/tools/promptsList.d.ts.map +1 -0
- package/mcp-server/tools/promptsList.js +64 -0
- package/mcp-server/tools/promptsList.js.map +1 -0
- package/mcp-server/tools/promptsListVersions.d.ts +8 -0
- package/mcp-server/tools/promptsListVersions.d.ts.map +1 -0
- package/mcp-server/tools/promptsListVersions.js +64 -0
- package/mcp-server/tools/promptsListVersions.js.map +1 -0
- package/mcp-server/tools/promptsRetrieve.d.ts +8 -0
- package/mcp-server/tools/promptsRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/promptsRetrieve.js +64 -0
- package/mcp-server/tools/promptsRetrieve.js.map +1 -0
- package/mcp-server/tools/promptsUpdate.d.ts +8 -0
- package/mcp-server/tools/promptsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/promptsUpdate.js +62 -0
- package/mcp-server/tools/promptsUpdate.js.map +1 -0
- package/mcp-server/tools/remoteconfigsRetrieve.d.ts +8 -0
- package/mcp-server/tools/remoteconfigsRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/remoteconfigsRetrieve.js +63 -0
- package/mcp-server/tools/remoteconfigsRetrieve.js.map +1 -0
- package/mcp-server/tools.d.ts +25 -0
- package/mcp-server/tools.d.ts.map +1 -0
- package/mcp-server/tools.js +77 -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/createcontact.js +2 -2
- package/models/operations/createprompt.d.ts +26 -16
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +30 -27
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentcreatemetric.d.ts +790 -132
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +770 -143
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +1824 -503
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +1788 -521
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +17 -17
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +20 -20
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +5 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +2 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +1742 -426
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +1643 -386
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +5 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +5 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +5 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +5 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/updateprompt.d.ts +10 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +4 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +16 -2
- package/packages/orq-rc/README.md +83 -2
- package/packages/orq-rc/docs/sdks/datasets/README.md +934 -0
- package/packages/orq-rc/docs/sdks/prompts/README.md +110 -110
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +1397 -41
- package/packages/orq-rc/package.json +16 -2
- package/packages/orq-rc/src/funcs/contactsCreate.ts +35 -8
- package/packages/orq-rc/src/funcs/datasetsClear.ts +161 -0
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +159 -0
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +161 -0
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +165 -0
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +161 -0
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +176 -0
- package/packages/orq-rc/src/funcs/datasetsList.ts +161 -0
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +168 -0
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +169 -0
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +175 -0
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +170 -0
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +173 -0
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +35 -8
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +35 -8
- package/packages/orq-rc/src/funcs/deploymentsList.ts +36 -8
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +35 -8
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +35 -8
- package/packages/orq-rc/src/funcs/filesCreate.ts +35 -8
- package/packages/orq-rc/src/funcs/filesDelete.ts +35 -8
- package/packages/orq-rc/src/funcs/filesGet.ts +35 -8
- package/packages/orq-rc/src/funcs/filesList.ts +35 -8
- package/packages/orq-rc/src/funcs/promptsCreate.ts +35 -8
- package/packages/orq-rc/src/funcs/promptsDelete.ts +35 -8
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +36 -8
- package/packages/orq-rc/src/funcs/promptsList.ts +36 -9
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +35 -8
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +35 -8
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +36 -8
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +35 -8
- package/packages/orq-rc/src/lib/config.ts +6 -6
- package/packages/orq-rc/src/lib/files.ts +1 -1
- package/packages/orq-rc/src/lib/primitives.ts +14 -0
- package/packages/orq-rc/src/lib/sdks.ts +1 -1
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +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/mcp-server.ts +26 -0
- package/packages/orq-rc/src/mcp-server/resources.ts +96 -0
- package/packages/orq-rc/src/mcp-server/scopes.ts +7 -0
- package/packages/orq-rc/src/mcp-server/server.ts +106 -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 +121 -0
- package/packages/orq-rc/src/models/components/deployments.ts +3134 -673
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +1816 -0
- package/packages/orq-rc/src/models/operations/cleardataset.ts +75 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +296 -0
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +1740 -0
- package/packages/orq-rc/src/models/operations/createprompt.ts +736 -637
- 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/deploymentcreatemetric.ts +1799 -334
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +3626 -1003
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +32 -28
- package/packages/orq-rc/src/models/operations/deployments.ts +7 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +3 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +3 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +4 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +15 -8
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +15 -8
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +31 -56
- package/packages/orq-rc/src/models/operations/index.ts +12 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1071 -0
- package/packages/orq-rc/src/models/operations/listdatasets.ts +406 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +31 -56
- 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 +629 -698
- package/packages/orq-rc/src/sdk/datasets.ts +222 -0
- package/packages/orq-rc/src/sdk/prompts.ts +14 -14
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/types/async.ts +68 -0
- package/src/funcs/contactsCreate.ts +35 -8
- package/src/funcs/deploymentsGetConfig.ts +35 -8
- package/src/funcs/deploymentsInvoke.ts +35 -8
- package/src/funcs/deploymentsList.ts +36 -8
- package/src/funcs/deploymentsMetricsCreate.ts +35 -8
- package/src/funcs/deploymentsStream.ts +35 -8
- package/src/funcs/feedbackCreate.ts +35 -8
- package/src/funcs/filesCreate.ts +35 -8
- package/src/funcs/filesDelete.ts +35 -8
- package/src/funcs/filesGet.ts +35 -8
- package/src/funcs/filesList.ts +35 -8
- package/src/funcs/promptsCreate.ts +35 -8
- package/src/funcs/promptsDelete.ts +35 -8
- package/src/funcs/promptsGetVersion.ts +36 -8
- package/src/funcs/promptsList.ts +35 -8
- package/src/funcs/promptsListVersions.ts +35 -8
- package/src/funcs/promptsRetrieve.ts +35 -8
- package/src/funcs/promptsUpdate.ts +36 -8
- package/src/funcs/remoteconfigsRetrieve.ts +35 -8
- package/src/lib/config.ts +6 -6
- package/src/lib/files.ts +1 -1
- package/src/lib/primitives.ts +14 -0
- package/src/lib/sdks.ts +1 -1
- package/src/mcp-server/cli/start/command.ts +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/mcp-server.ts +26 -0
- package/src/mcp-server/resources.ts +96 -0
- package/src/mcp-server/scopes.ts +7 -0
- package/src/mcp-server/server.ts +84 -0
- package/src/mcp-server/shared.ts +75 -0
- package/src/mcp-server/tools/contactsCreate.ts +37 -0
- package/src/mcp-server/tools/deploymentsGetConfig.ts +37 -0
- package/src/mcp-server/tools/deploymentsInvoke.ts +37 -0
- package/src/mcp-server/tools/deploymentsList.ts +37 -0
- package/src/mcp-server/tools/deploymentsMetricsCreate.ts +37 -0
- package/src/mcp-server/tools/deploymentsStream.ts +37 -0
- package/src/mcp-server/tools/feedbackCreate.ts +37 -0
- package/src/mcp-server/tools/filesCreate.ts +37 -0
- package/src/mcp-server/tools/filesDelete.ts +33 -0
- package/src/mcp-server/tools/filesGet.ts +37 -0
- package/src/mcp-server/tools/filesList.ts +37 -0
- package/src/mcp-server/tools/promptsCreate.ts +35 -0
- package/src/mcp-server/tools/promptsDelete.ts +33 -0
- package/src/mcp-server/tools/promptsGetVersion.ts +37 -0
- package/src/mcp-server/tools/promptsList.ts +37 -0
- package/src/mcp-server/tools/promptsListVersions.ts +37 -0
- package/src/mcp-server/tools/promptsRetrieve.ts +37 -0
- package/src/mcp-server/tools/promptsUpdate.ts +35 -0
- package/src/mcp-server/tools/remoteconfigsRetrieve.ts +36 -0
- package/src/mcp-server/tools.ts +121 -0
- package/src/models/components/deployments.ts +3133 -635
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createprompt.ts +48 -30
- package/src/models/operations/deploymentcreatemetric.ts +1859 -324
- package/src/models/operations/deploymentgetconfig.ts +3449 -886
- package/src/models/operations/deploymentinvoke.ts +32 -28
- package/src/models/operations/deployments.ts +7 -0
- package/src/models/operations/deploymentstream.ts +3661 -763
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +7 -0
- package/src/models/operations/getoneprompt.ts +7 -0
- package/src/models/operations/getpromptversion.ts +7 -0
- package/src/models/operations/listpromptversions.ts +7 -0
- package/src/models/operations/updateprompt.ts +14 -0
- package/src/types/async.ts +68 -0
- package/types/async.d.ts +23 -0
- package/types/async.d.ts.map +1 -0
- package/types/async.js +44 -0
- package/types/async.js.map +1 -0
|
@@ -12,284 +12,801 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
export type Inputs = string | number | boolean;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* The role of the
|
|
15
|
+
* The role of the messages author, in this case tool.
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
18
|
-
System: "system",
|
|
19
|
-
Assistant: "assistant",
|
|
20
|
-
User: "user",
|
|
21
|
-
Exception: "exception",
|
|
17
|
+
export const DeploymentsPrefixMessages5Role = {
|
|
22
18
|
Tool: "tool",
|
|
23
|
-
Prompt: "prompt",
|
|
24
|
-
Correction: "correction",
|
|
25
|
-
ExpectedOutput: "expected_output",
|
|
26
19
|
} as const;
|
|
27
20
|
/**
|
|
28
|
-
* The role of the
|
|
21
|
+
* The role of the messages author, in this case tool.
|
|
29
22
|
*/
|
|
30
|
-
export type
|
|
23
|
+
export type DeploymentsPrefixMessages5Role = ClosedEnum<
|
|
24
|
+
typeof DeploymentsPrefixMessages5Role
|
|
25
|
+
>;
|
|
31
26
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export type
|
|
27
|
+
/**
|
|
28
|
+
* The contents of the tool message.
|
|
29
|
+
*/
|
|
30
|
+
export type DeploymentsPrefixMessagesContent = string | Array<string>;
|
|
36
31
|
|
|
37
|
-
export type
|
|
32
|
+
export type Five = {
|
|
38
33
|
/**
|
|
39
|
-
*
|
|
34
|
+
* The role of the messages author, in this case tool.
|
|
40
35
|
*/
|
|
41
|
-
|
|
36
|
+
role: DeploymentsPrefixMessages5Role;
|
|
42
37
|
/**
|
|
43
|
-
*
|
|
38
|
+
* The contents of the tool message.
|
|
44
39
|
*/
|
|
45
|
-
|
|
40
|
+
content: string | Array<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Tool call that this message is responding to.
|
|
43
|
+
*/
|
|
44
|
+
toolCallId: string;
|
|
46
45
|
};
|
|
47
46
|
|
|
48
47
|
/**
|
|
49
|
-
* The
|
|
48
|
+
* The type of the content part.
|
|
50
49
|
*/
|
|
51
|
-
export
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
export const Deployments2PrefixMessages4Type = {
|
|
51
|
+
Refusal: "refusal",
|
|
52
|
+
} as const;
|
|
53
|
+
/**
|
|
54
|
+
* The type of the content part.
|
|
55
|
+
*/
|
|
56
|
+
export type Deployments2PrefixMessages4Type = ClosedEnum<
|
|
57
|
+
typeof Deployments2PrefixMessages4Type
|
|
58
|
+
>;
|
|
59
|
+
|
|
60
|
+
export type Deployments22 = {
|
|
61
|
+
/**
|
|
62
|
+
* The type of the content part.
|
|
63
|
+
*/
|
|
64
|
+
type: Deployments2PrefixMessages4Type;
|
|
65
|
+
/**
|
|
66
|
+
* The refusal message generated by the model.
|
|
67
|
+
*/
|
|
68
|
+
refusal: string;
|
|
54
69
|
};
|
|
55
70
|
|
|
56
|
-
|
|
71
|
+
/**
|
|
72
|
+
* The type of the content part.
|
|
73
|
+
*/
|
|
74
|
+
export const Deployments2PrefixMessagesType = {
|
|
57
75
|
Text: "text",
|
|
58
76
|
} as const;
|
|
59
|
-
export type Deployments2Type = ClosedEnum<typeof Deployments2Type>;
|
|
60
|
-
|
|
61
77
|
/**
|
|
62
|
-
*
|
|
78
|
+
* The type of the content part.
|
|
63
79
|
*/
|
|
64
|
-
export type
|
|
65
|
-
|
|
80
|
+
export type Deployments2PrefixMessagesType = ClosedEnum<
|
|
81
|
+
typeof Deployments2PrefixMessagesType
|
|
82
|
+
>;
|
|
83
|
+
|
|
84
|
+
export type Deployments21 = {
|
|
85
|
+
/**
|
|
86
|
+
* The type of the content part.
|
|
87
|
+
*/
|
|
88
|
+
type: Deployments2PrefixMessagesType;
|
|
89
|
+
/**
|
|
90
|
+
* The text content.
|
|
91
|
+
*/
|
|
66
92
|
text: string;
|
|
67
93
|
};
|
|
68
94
|
|
|
69
|
-
export type
|
|
95
|
+
export type DeploymentsContent2 = Deployments21 | Deployments22;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
99
|
+
*/
|
|
100
|
+
export type PrefixMessagesContent =
|
|
101
|
+
| string
|
|
102
|
+
| Array<Deployments21 | Deployments22>;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The role of the messages author, in this case `assistant`.
|
|
106
|
+
*/
|
|
107
|
+
export const DeploymentsPrefixMessages4Role = {
|
|
108
|
+
Assistant: "assistant",
|
|
109
|
+
} as const;
|
|
110
|
+
/**
|
|
111
|
+
* The role of the messages author, in this case `assistant`.
|
|
112
|
+
*/
|
|
113
|
+
export type DeploymentsPrefixMessages4Role = ClosedEnum<
|
|
114
|
+
typeof DeploymentsPrefixMessages4Role
|
|
115
|
+
>;
|
|
70
116
|
|
|
71
117
|
/**
|
|
72
|
-
*
|
|
118
|
+
* Data about a previous audio response from the model.
|
|
73
119
|
*/
|
|
74
|
-
export type
|
|
120
|
+
export type Audio = {
|
|
121
|
+
/**
|
|
122
|
+
* Unique identifier for a previous audio response from the model.
|
|
123
|
+
*/
|
|
124
|
+
id: string;
|
|
125
|
+
};
|
|
75
126
|
|
|
127
|
+
/**
|
|
128
|
+
* The type of the tool. Currently, only `5` is supported.
|
|
129
|
+
*/
|
|
76
130
|
export const Type = {
|
|
77
131
|
Function: "function",
|
|
78
132
|
} as const;
|
|
133
|
+
/**
|
|
134
|
+
* The type of the tool. Currently, only `5` is supported.
|
|
135
|
+
*/
|
|
79
136
|
export type Type = ClosedEnum<typeof Type>;
|
|
80
137
|
|
|
81
138
|
export type FunctionT = {
|
|
82
|
-
name: string;
|
|
83
139
|
/**
|
|
84
|
-
*
|
|
140
|
+
* The name of the function to call.
|
|
141
|
+
*/
|
|
142
|
+
name?: string | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
85
145
|
*/
|
|
86
|
-
arguments
|
|
146
|
+
arguments?: string | undefined;
|
|
87
147
|
};
|
|
88
148
|
|
|
89
149
|
export type ToolCalls = {
|
|
90
|
-
|
|
91
|
-
|
|
150
|
+
/**
|
|
151
|
+
* The ID of the tool call.
|
|
152
|
+
*/
|
|
153
|
+
id: string;
|
|
154
|
+
/**
|
|
155
|
+
* The type of the tool. Currently, only `5` is supported.
|
|
156
|
+
*/
|
|
92
157
|
type: Type;
|
|
93
158
|
function: FunctionT;
|
|
94
159
|
};
|
|
95
160
|
|
|
96
|
-
export type
|
|
161
|
+
export type Four = {
|
|
97
162
|
/**
|
|
98
|
-
* The
|
|
163
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
99
164
|
*/
|
|
100
|
-
|
|
165
|
+
content?: string | Array<Deployments21 | Deployments22> | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* The refusal message by the assistant.
|
|
168
|
+
*/
|
|
169
|
+
refusal?: string | null | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* The role of the messages author, in this case `assistant`.
|
|
172
|
+
*/
|
|
173
|
+
role: DeploymentsPrefixMessages4Role;
|
|
174
|
+
/**
|
|
175
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
176
|
+
*/
|
|
177
|
+
name?: string | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* Data about a previous audio response from the model.
|
|
180
|
+
*/
|
|
181
|
+
audio?: Audio | null | undefined;
|
|
101
182
|
/**
|
|
102
|
-
* The
|
|
183
|
+
* The tool calls generated by the model, such as function calls.
|
|
103
184
|
*/
|
|
104
|
-
content: string | Array<One | Two2>;
|
|
105
185
|
toolCalls?: Array<ToolCalls> | undefined;
|
|
106
186
|
};
|
|
107
187
|
|
|
108
188
|
/**
|
|
109
|
-
* The role of the
|
|
189
|
+
* The role of the messages author, in this case `user`.
|
|
110
190
|
*/
|
|
111
|
-
export const
|
|
112
|
-
System: "system",
|
|
113
|
-
Assistant: "assistant",
|
|
191
|
+
export const DeploymentsPrefixMessagesRole = {
|
|
114
192
|
User: "user",
|
|
115
|
-
Exception: "exception",
|
|
116
|
-
Tool: "tool",
|
|
117
|
-
Prompt: "prompt",
|
|
118
|
-
Correction: "correction",
|
|
119
|
-
ExpectedOutput: "expected_output",
|
|
120
193
|
} as const;
|
|
121
194
|
/**
|
|
122
|
-
* The role of the
|
|
195
|
+
* The role of the messages author, in this case `user`.
|
|
123
196
|
*/
|
|
124
|
-
export type
|
|
197
|
+
export type DeploymentsPrefixMessagesRole = ClosedEnum<
|
|
198
|
+
typeof DeploymentsPrefixMessagesRole
|
|
199
|
+
>;
|
|
125
200
|
|
|
126
|
-
export const
|
|
127
|
-
|
|
201
|
+
export const Deployments2Type = {
|
|
202
|
+
InputAudio: "input_audio",
|
|
128
203
|
} as const;
|
|
129
|
-
export type
|
|
130
|
-
typeof Deployments2MessagesContentType
|
|
131
|
-
>;
|
|
204
|
+
export type Deployments2Type = ClosedEnum<typeof Deployments2Type>;
|
|
132
205
|
|
|
133
|
-
|
|
206
|
+
/**
|
|
207
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
208
|
+
*/
|
|
209
|
+
export const Format = {
|
|
210
|
+
Mp3: "mp3",
|
|
211
|
+
Wav: "wav",
|
|
212
|
+
} as const;
|
|
213
|
+
/**
|
|
214
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
215
|
+
*/
|
|
216
|
+
export type Format = ClosedEnum<typeof Format>;
|
|
217
|
+
|
|
218
|
+
export type InputAudio = {
|
|
134
219
|
/**
|
|
135
|
-
*
|
|
220
|
+
* Base64 encoded audio data.
|
|
136
221
|
*/
|
|
137
|
-
|
|
222
|
+
data: string;
|
|
138
223
|
/**
|
|
139
|
-
*
|
|
224
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
140
225
|
*/
|
|
141
|
-
|
|
226
|
+
format: Format;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
export type Two3 = {
|
|
230
|
+
type: Deployments2Type;
|
|
231
|
+
inputAudio: InputAudio;
|
|
142
232
|
};
|
|
143
233
|
|
|
234
|
+
export const TwoType = {
|
|
235
|
+
ImageUrl: "image_url",
|
|
236
|
+
} as const;
|
|
237
|
+
export type TwoType = ClosedEnum<typeof TwoType>;
|
|
238
|
+
|
|
144
239
|
/**
|
|
145
|
-
*
|
|
240
|
+
* Specifies the detail level of the image.
|
|
146
241
|
*/
|
|
147
|
-
export
|
|
148
|
-
|
|
149
|
-
|
|
242
|
+
export const Detail = {
|
|
243
|
+
Low: "low",
|
|
244
|
+
High: "high",
|
|
245
|
+
Auto: "auto",
|
|
246
|
+
} as const;
|
|
247
|
+
/**
|
|
248
|
+
* Specifies the detail level of the image.
|
|
249
|
+
*/
|
|
250
|
+
export type Detail = ClosedEnum<typeof Detail>;
|
|
251
|
+
|
|
252
|
+
export type ImageUrl = {
|
|
253
|
+
/**
|
|
254
|
+
* Either a URL of the image or the base64 encoded image data.
|
|
255
|
+
*/
|
|
256
|
+
url: string;
|
|
257
|
+
/**
|
|
258
|
+
* Specifies the detail level of the image.
|
|
259
|
+
*/
|
|
260
|
+
detail?: Detail | undefined;
|
|
150
261
|
};
|
|
151
262
|
|
|
152
|
-
export
|
|
263
|
+
export type Two2 = {
|
|
264
|
+
type: TwoType;
|
|
265
|
+
imageUrl: ImageUrl;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export const Deployments2PrefixMessages3Type = {
|
|
153
269
|
Text: "text",
|
|
154
270
|
} as const;
|
|
155
|
-
export type
|
|
156
|
-
typeof
|
|
271
|
+
export type Deployments2PrefixMessages3Type = ClosedEnum<
|
|
272
|
+
typeof Deployments2PrefixMessages3Type
|
|
157
273
|
>;
|
|
158
274
|
|
|
159
|
-
/**
|
|
160
|
-
* Text content part of a prompt message
|
|
161
|
-
*/
|
|
162
275
|
export type Two1 = {
|
|
163
|
-
type:
|
|
276
|
+
type: Deployments2PrefixMessages3Type;
|
|
164
277
|
text: string;
|
|
165
278
|
};
|
|
166
279
|
|
|
167
|
-
export type Content2 = Two1 |
|
|
280
|
+
export type Content2 = Two1 | Two2 | Two3;
|
|
168
281
|
|
|
169
282
|
/**
|
|
170
|
-
* The contents of the user message.
|
|
283
|
+
* The contents of the user message.
|
|
171
284
|
*/
|
|
172
|
-
export type
|
|
285
|
+
export type Content = string | Array<Two1 | Two2 | Two3>;
|
|
173
286
|
|
|
174
|
-
export
|
|
175
|
-
|
|
287
|
+
export type Three = {
|
|
288
|
+
/**
|
|
289
|
+
* The role of the messages author, in this case `user`.
|
|
290
|
+
*/
|
|
291
|
+
role: DeploymentsPrefixMessagesRole;
|
|
292
|
+
/**
|
|
293
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
294
|
+
*/
|
|
295
|
+
name?: string | undefined;
|
|
296
|
+
/**
|
|
297
|
+
* The contents of the user message.
|
|
298
|
+
*/
|
|
299
|
+
content: string | Array<Two1 | Two2 | Two3>;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The role of the messages author, in this case `system`.
|
|
304
|
+
*/
|
|
305
|
+
export const PrefixMessagesRole = {
|
|
306
|
+
System: "system",
|
|
176
307
|
} as const;
|
|
177
|
-
|
|
308
|
+
/**
|
|
309
|
+
* The role of the messages author, in this case `system`.
|
|
310
|
+
*/
|
|
311
|
+
export type PrefixMessagesRole = ClosedEnum<typeof PrefixMessagesRole>;
|
|
178
312
|
|
|
179
|
-
export type
|
|
180
|
-
|
|
313
|
+
export type Two = {
|
|
314
|
+
/**
|
|
315
|
+
* The role of the messages author, in this case `system`.
|
|
316
|
+
*/
|
|
317
|
+
role: PrefixMessagesRole;
|
|
318
|
+
/**
|
|
319
|
+
* The contents of the system message.
|
|
320
|
+
*/
|
|
321
|
+
content: string;
|
|
181
322
|
/**
|
|
182
|
-
*
|
|
323
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
183
324
|
*/
|
|
184
|
-
|
|
325
|
+
name?: string | undefined;
|
|
185
326
|
};
|
|
186
327
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
};
|
|
328
|
+
/**
|
|
329
|
+
* The role of the messages author, in this case `developer`.
|
|
330
|
+
*/
|
|
331
|
+
export const Role = {
|
|
332
|
+
Developer: "developer",
|
|
333
|
+
} as const;
|
|
334
|
+
/**
|
|
335
|
+
* The role of the messages author, in this case `developer`.
|
|
336
|
+
*/
|
|
337
|
+
export type Role = ClosedEnum<typeof Role>;
|
|
193
338
|
|
|
194
|
-
export type
|
|
339
|
+
export type One = {
|
|
195
340
|
/**
|
|
196
|
-
* The role of the
|
|
341
|
+
* The role of the messages author, in this case `developer`.
|
|
197
342
|
*/
|
|
198
|
-
role:
|
|
343
|
+
role: Role;
|
|
344
|
+
/**
|
|
345
|
+
* The contents of the developer message.
|
|
346
|
+
*/
|
|
347
|
+
content: string;
|
|
199
348
|
/**
|
|
200
|
-
*
|
|
349
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
201
350
|
*/
|
|
202
|
-
|
|
203
|
-
toolCalls?: Array<DeploymentsToolCalls> | undefined;
|
|
351
|
+
name?: string | undefined;
|
|
204
352
|
};
|
|
205
353
|
|
|
354
|
+
export type PrefixMessages = One | Two | Three | Five | Four;
|
|
355
|
+
|
|
206
356
|
/**
|
|
207
|
-
*
|
|
357
|
+
* The role of the messages author, in this case tool.
|
|
208
358
|
*/
|
|
209
|
-
export
|
|
359
|
+
export const DeploymentsMessages5Role = {
|
|
360
|
+
Tool: "tool",
|
|
361
|
+
} as const;
|
|
362
|
+
/**
|
|
363
|
+
* The role of the messages author, in this case tool.
|
|
364
|
+
*/
|
|
365
|
+
export type DeploymentsMessages5Role = ClosedEnum<
|
|
366
|
+
typeof DeploymentsMessages5Role
|
|
367
|
+
>;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* The contents of the tool message.
|
|
371
|
+
*/
|
|
372
|
+
export type DeploymentsMessages5Content = string | Array<string>;
|
|
373
|
+
|
|
374
|
+
export type Messages5 = {
|
|
210
375
|
/**
|
|
211
|
-
*
|
|
376
|
+
* The role of the messages author, in this case tool.
|
|
212
377
|
*/
|
|
213
|
-
|
|
378
|
+
role: DeploymentsMessages5Role;
|
|
214
379
|
/**
|
|
215
|
-
*
|
|
380
|
+
* The contents of the tool message.
|
|
216
381
|
*/
|
|
217
|
-
|
|
382
|
+
content: string | Array<string>;
|
|
218
383
|
/**
|
|
219
|
-
*
|
|
384
|
+
* Tool call that this message is responding to.
|
|
220
385
|
*/
|
|
221
|
-
|
|
386
|
+
toolCallId: string;
|
|
222
387
|
};
|
|
223
388
|
|
|
224
|
-
|
|
389
|
+
/**
|
|
390
|
+
* The type of the content part.
|
|
391
|
+
*/
|
|
392
|
+
export const Deployments2Messages4ContentType = {
|
|
393
|
+
Refusal: "refusal",
|
|
394
|
+
} as const;
|
|
395
|
+
/**
|
|
396
|
+
* The type of the content part.
|
|
397
|
+
*/
|
|
398
|
+
export type Deployments2Messages4ContentType = ClosedEnum<
|
|
399
|
+
typeof Deployments2Messages4ContentType
|
|
400
|
+
>;
|
|
401
|
+
|
|
402
|
+
export type Deployments2Messages42 = {
|
|
225
403
|
/**
|
|
226
|
-
* The
|
|
404
|
+
* The type of the content part.
|
|
227
405
|
*/
|
|
228
|
-
|
|
406
|
+
type: Deployments2Messages4ContentType;
|
|
229
407
|
/**
|
|
230
|
-
*
|
|
408
|
+
* The refusal message generated by the model.
|
|
231
409
|
*/
|
|
232
|
-
|
|
410
|
+
refusal: string;
|
|
233
411
|
};
|
|
234
412
|
|
|
235
|
-
|
|
413
|
+
/**
|
|
414
|
+
* The type of the content part.
|
|
415
|
+
*/
|
|
416
|
+
export const Deployments2Messages4Type = {
|
|
417
|
+
Text: "text",
|
|
418
|
+
} as const;
|
|
419
|
+
/**
|
|
420
|
+
* The type of the content part.
|
|
421
|
+
*/
|
|
422
|
+
export type Deployments2Messages4Type = ClosedEnum<
|
|
423
|
+
typeof Deployments2Messages4Type
|
|
424
|
+
>;
|
|
425
|
+
|
|
426
|
+
export type Deployments2Messages41 = {
|
|
236
427
|
/**
|
|
237
|
-
*
|
|
428
|
+
* The type of the content part.
|
|
238
429
|
*/
|
|
239
|
-
|
|
430
|
+
type: Deployments2Messages4Type;
|
|
431
|
+
/**
|
|
432
|
+
* The text content.
|
|
433
|
+
*/
|
|
434
|
+
text: string;
|
|
240
435
|
};
|
|
241
436
|
|
|
437
|
+
export type DeploymentsContentMessages42 =
|
|
438
|
+
| Deployments2Messages41
|
|
439
|
+
| Deployments2Messages42;
|
|
440
|
+
|
|
242
441
|
/**
|
|
243
|
-
* The
|
|
442
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
244
443
|
*/
|
|
245
|
-
export type
|
|
444
|
+
export type DeploymentsMessagesContent =
|
|
445
|
+
| string
|
|
446
|
+
| Array<Deployments2Messages41 | Deployments2Messages42>;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* The role of the messages author, in this case `assistant`.
|
|
450
|
+
*/
|
|
451
|
+
export const DeploymentsMessages4Role = {
|
|
452
|
+
Assistant: "assistant",
|
|
453
|
+
} as const;
|
|
454
|
+
/**
|
|
455
|
+
* The role of the messages author, in this case `assistant`.
|
|
456
|
+
*/
|
|
457
|
+
export type DeploymentsMessages4Role = ClosedEnum<
|
|
458
|
+
typeof DeploymentsMessages4Role
|
|
459
|
+
>;
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Data about a previous audio response from the model.
|
|
463
|
+
*/
|
|
464
|
+
export type MessagesAudio = {
|
|
246
465
|
/**
|
|
247
|
-
*
|
|
466
|
+
* Unique identifier for a previous audio response from the model.
|
|
248
467
|
*/
|
|
249
|
-
|
|
468
|
+
id: string;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* The type of the tool. Currently, only `5` is supported.
|
|
473
|
+
*/
|
|
474
|
+
export const MessagesType = {
|
|
475
|
+
Function: "function",
|
|
476
|
+
} as const;
|
|
477
|
+
/**
|
|
478
|
+
* The type of the tool. Currently, only `5` is supported.
|
|
479
|
+
*/
|
|
480
|
+
export type MessagesType = ClosedEnum<typeof MessagesType>;
|
|
481
|
+
|
|
482
|
+
export type MessagesFunction = {
|
|
250
483
|
/**
|
|
251
|
-
*
|
|
484
|
+
* The name of the function to call.
|
|
252
485
|
*/
|
|
253
|
-
|
|
486
|
+
name?: string | undefined;
|
|
254
487
|
/**
|
|
255
|
-
*
|
|
488
|
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
256
489
|
*/
|
|
257
|
-
|
|
490
|
+
arguments?: string | undefined;
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
export type MessagesToolCalls = {
|
|
258
494
|
/**
|
|
259
|
-
*
|
|
495
|
+
* The ID of the tool call.
|
|
260
496
|
*/
|
|
261
|
-
|
|
497
|
+
id: string;
|
|
262
498
|
/**
|
|
263
|
-
*
|
|
499
|
+
* The type of the tool. Currently, only `5` is supported.
|
|
264
500
|
*/
|
|
265
|
-
|
|
501
|
+
type: MessagesType;
|
|
502
|
+
function: MessagesFunction;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
export type Messages4 = {
|
|
266
506
|
/**
|
|
267
|
-
*
|
|
507
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
268
508
|
*/
|
|
269
|
-
|
|
509
|
+
content?:
|
|
510
|
+
| string
|
|
511
|
+
| Array<Deployments2Messages41 | Deployments2Messages42>
|
|
512
|
+
| undefined;
|
|
270
513
|
/**
|
|
271
|
-
*
|
|
514
|
+
* The refusal message by the assistant.
|
|
272
515
|
*/
|
|
273
|
-
|
|
516
|
+
refusal?: string | null | undefined;
|
|
274
517
|
/**
|
|
275
|
-
*
|
|
518
|
+
* The role of the messages author, in this case `assistant`.
|
|
276
519
|
*/
|
|
277
|
-
|
|
520
|
+
role: DeploymentsMessages4Role;
|
|
278
521
|
/**
|
|
279
|
-
*
|
|
522
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
280
523
|
*/
|
|
281
|
-
|
|
282
|
-
|
|
524
|
+
name?: string | undefined;
|
|
525
|
+
/**
|
|
526
|
+
* Data about a previous audio response from the model.
|
|
527
|
+
*/
|
|
528
|
+
audio?: MessagesAudio | null | undefined;
|
|
529
|
+
/**
|
|
530
|
+
* The tool calls generated by the model, such as function calls.
|
|
531
|
+
*/
|
|
532
|
+
toolCalls?: Array<MessagesToolCalls> | undefined;
|
|
283
533
|
};
|
|
284
534
|
|
|
285
|
-
/**
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
535
|
+
/**
|
|
536
|
+
* The role of the messages author, in this case `user`.
|
|
537
|
+
*/
|
|
538
|
+
export const DeploymentsMessages3Role = {
|
|
539
|
+
User: "user",
|
|
540
|
+
} as const;
|
|
541
|
+
/**
|
|
542
|
+
* The role of the messages author, in this case `user`.
|
|
543
|
+
*/
|
|
544
|
+
export type DeploymentsMessages3Role = ClosedEnum<
|
|
545
|
+
typeof DeploymentsMessages3Role
|
|
546
|
+
>;
|
|
547
|
+
|
|
548
|
+
export const Deployments2Messages3ContentType = {
|
|
549
|
+
InputAudio: "input_audio",
|
|
550
|
+
} as const;
|
|
551
|
+
export type Deployments2Messages3ContentType = ClosedEnum<
|
|
552
|
+
typeof Deployments2Messages3ContentType
|
|
553
|
+
>;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
557
|
+
*/
|
|
558
|
+
export const TwoFormat = {
|
|
559
|
+
Mp3: "mp3",
|
|
560
|
+
Wav: "wav",
|
|
561
|
+
} as const;
|
|
562
|
+
/**
|
|
563
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
564
|
+
*/
|
|
565
|
+
export type TwoFormat = ClosedEnum<typeof TwoFormat>;
|
|
566
|
+
|
|
567
|
+
export type TwoInputAudio = {
|
|
568
|
+
/**
|
|
569
|
+
* Base64 encoded audio data.
|
|
570
|
+
*/
|
|
571
|
+
data: string;
|
|
572
|
+
/**
|
|
573
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
574
|
+
*/
|
|
575
|
+
format: TwoFormat;
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
export type Deployments23 = {
|
|
579
|
+
type: Deployments2Messages3ContentType;
|
|
580
|
+
inputAudio: TwoInputAudio;
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
export const Deployments2Messages3Type = {
|
|
584
|
+
ImageUrl: "image_url",
|
|
585
|
+
} as const;
|
|
586
|
+
export type Deployments2Messages3Type = ClosedEnum<
|
|
587
|
+
typeof Deployments2Messages3Type
|
|
588
|
+
>;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Specifies the detail level of the image.
|
|
592
|
+
*/
|
|
593
|
+
export const TwoDetail = {
|
|
594
|
+
Low: "low",
|
|
595
|
+
High: "high",
|
|
596
|
+
Auto: "auto",
|
|
597
|
+
} as const;
|
|
598
|
+
/**
|
|
599
|
+
* Specifies the detail level of the image.
|
|
600
|
+
*/
|
|
601
|
+
export type TwoDetail = ClosedEnum<typeof TwoDetail>;
|
|
602
|
+
|
|
603
|
+
export type TwoImageUrl = {
|
|
604
|
+
/**
|
|
605
|
+
* Either a URL of the image or the base64 encoded image data.
|
|
606
|
+
*/
|
|
607
|
+
url: string;
|
|
608
|
+
/**
|
|
609
|
+
* Specifies the detail level of the image.
|
|
610
|
+
*/
|
|
611
|
+
detail?: TwoDetail | undefined;
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
export type Deployments2Messages2 = {
|
|
615
|
+
type: Deployments2Messages3Type;
|
|
616
|
+
imageUrl: TwoImageUrl;
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
export const Deployments2MessagesType = {
|
|
620
|
+
Text: "text",
|
|
621
|
+
} as const;
|
|
622
|
+
export type Deployments2MessagesType = ClosedEnum<
|
|
623
|
+
typeof Deployments2MessagesType
|
|
624
|
+
>;
|
|
625
|
+
|
|
626
|
+
export type Deployments2Messages1 = {
|
|
627
|
+
type: Deployments2MessagesType;
|
|
628
|
+
text: string;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
export type DeploymentsContentMessages2 =
|
|
632
|
+
| Deployments2Messages1
|
|
633
|
+
| Deployments2Messages2
|
|
634
|
+
| Deployments23;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* The contents of the user message.
|
|
638
|
+
*/
|
|
639
|
+
export type MessagesContent =
|
|
640
|
+
| string
|
|
641
|
+
| Array<Deployments2Messages1 | Deployments2Messages2 | Deployments23>;
|
|
642
|
+
|
|
643
|
+
export type Messages3 = {
|
|
644
|
+
/**
|
|
645
|
+
* The role of the messages author, in this case `user`.
|
|
646
|
+
*/
|
|
647
|
+
role: DeploymentsMessages3Role;
|
|
648
|
+
/**
|
|
649
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
650
|
+
*/
|
|
651
|
+
name?: string | undefined;
|
|
652
|
+
/**
|
|
653
|
+
* The contents of the user message.
|
|
654
|
+
*/
|
|
655
|
+
content:
|
|
656
|
+
| string
|
|
657
|
+
| Array<Deployments2Messages1 | Deployments2Messages2 | Deployments23>;
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* The role of the messages author, in this case `system`.
|
|
662
|
+
*/
|
|
663
|
+
export const DeploymentsMessagesRole = {
|
|
664
|
+
System: "system",
|
|
665
|
+
} as const;
|
|
666
|
+
/**
|
|
667
|
+
* The role of the messages author, in this case `system`.
|
|
668
|
+
*/
|
|
669
|
+
export type DeploymentsMessagesRole = ClosedEnum<
|
|
670
|
+
typeof DeploymentsMessagesRole
|
|
671
|
+
>;
|
|
672
|
+
|
|
673
|
+
export type Messages2 = {
|
|
674
|
+
/**
|
|
675
|
+
* The role of the messages author, in this case `system`.
|
|
676
|
+
*/
|
|
677
|
+
role: DeploymentsMessagesRole;
|
|
678
|
+
/**
|
|
679
|
+
* The contents of the system message.
|
|
680
|
+
*/
|
|
681
|
+
content: string;
|
|
682
|
+
/**
|
|
683
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
684
|
+
*/
|
|
685
|
+
name?: string | undefined;
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* The role of the messages author, in this case `developer`.
|
|
690
|
+
*/
|
|
691
|
+
export const MessagesRole = {
|
|
692
|
+
Developer: "developer",
|
|
693
|
+
} as const;
|
|
694
|
+
/**
|
|
695
|
+
* The role of the messages author, in this case `developer`.
|
|
696
|
+
*/
|
|
697
|
+
export type MessagesRole = ClosedEnum<typeof MessagesRole>;
|
|
698
|
+
|
|
699
|
+
export type Messages1 = {
|
|
700
|
+
/**
|
|
701
|
+
* The role of the messages author, in this case `developer`.
|
|
702
|
+
*/
|
|
703
|
+
role: MessagesRole;
|
|
704
|
+
/**
|
|
705
|
+
* The contents of the developer message.
|
|
706
|
+
*/
|
|
707
|
+
content: string;
|
|
708
|
+
/**
|
|
709
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
710
|
+
*/
|
|
711
|
+
name?: string | undefined;
|
|
712
|
+
};
|
|
713
|
+
|
|
714
|
+
export type Messages =
|
|
715
|
+
| Messages1
|
|
716
|
+
| Messages2
|
|
717
|
+
| Messages3
|
|
718
|
+
| Messages5
|
|
719
|
+
| Messages4;
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Metadata about the document
|
|
723
|
+
*/
|
|
724
|
+
export type Metadata = {
|
|
725
|
+
/**
|
|
726
|
+
* Name of the file the text is from.
|
|
727
|
+
*/
|
|
728
|
+
fileName?: string | undefined;
|
|
729
|
+
/**
|
|
730
|
+
* Content type of the file the text is from.
|
|
731
|
+
*/
|
|
732
|
+
fileType?: string | undefined;
|
|
733
|
+
/**
|
|
734
|
+
* The page number the text is from.
|
|
735
|
+
*/
|
|
736
|
+
pageNumber?: number | undefined;
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
export type Documents = {
|
|
740
|
+
/**
|
|
741
|
+
* The text content of the document
|
|
742
|
+
*/
|
|
743
|
+
text: string;
|
|
744
|
+
/**
|
|
745
|
+
* Metadata about the document
|
|
746
|
+
*/
|
|
747
|
+
metadata?: Metadata | undefined;
|
|
748
|
+
};
|
|
749
|
+
|
|
750
|
+
export type InvokeOptions = {
|
|
751
|
+
/**
|
|
752
|
+
* Whether to include the retrieved knowledge chunks in the response.
|
|
753
|
+
*/
|
|
754
|
+
includeRetrievals?: boolean | undefined;
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* The deployment request payload
|
|
759
|
+
*/
|
|
760
|
+
export type Deployments = {
|
|
761
|
+
/**
|
|
762
|
+
* The deployment key to invoke
|
|
763
|
+
*/
|
|
764
|
+
key: string;
|
|
765
|
+
/**
|
|
766
|
+
* Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
|
|
767
|
+
*/
|
|
768
|
+
inputs?: { [k: string]: string | number | boolean } | undefined;
|
|
769
|
+
/**
|
|
770
|
+
* Key-value pairs that match your data model and fields declared in your configuration matrix. If you send multiple prompt keys, the context will be applied to the evaluation of each key.
|
|
771
|
+
*/
|
|
772
|
+
context?: { [k: string]: any } | undefined;
|
|
773
|
+
/**
|
|
774
|
+
* A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
|
|
775
|
+
*/
|
|
776
|
+
prefixMessages?: Array<One | Two | Three | Five | Four> | undefined;
|
|
777
|
+
/**
|
|
778
|
+
* A list of messages to send to the deployment.
|
|
779
|
+
*/
|
|
780
|
+
messages?:
|
|
781
|
+
| Array<Messages1 | Messages2 | Messages3 | Messages5 | Messages4>
|
|
782
|
+
| undefined;
|
|
783
|
+
/**
|
|
784
|
+
* A list of file IDs that are associated with the deployment request.
|
|
785
|
+
*/
|
|
786
|
+
fileIds?: Array<string> | undefined;
|
|
787
|
+
/**
|
|
788
|
+
* Key-value pairs that you want to attach to the log generated by this request.
|
|
789
|
+
*/
|
|
790
|
+
metadata?: { [k: string]: any } | undefined;
|
|
791
|
+
/**
|
|
792
|
+
* Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
|
|
793
|
+
*/
|
|
794
|
+
extraParams?: { [k: string]: any } | undefined;
|
|
795
|
+
/**
|
|
796
|
+
* A list of relevant documents that evaluators and guardrails can cite to evaluate the user input or the model response based on your deployment settings.
|
|
797
|
+
*/
|
|
798
|
+
documents?: Array<Documents> | undefined;
|
|
799
|
+
invokeOptions?: InvokeOptions | undefined;
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
/** @internal */
|
|
803
|
+
export const Inputs$inboundSchema: z.ZodType<Inputs, z.ZodTypeDef, unknown> = z
|
|
804
|
+
.union([z.string(), z.number(), z.boolean()]);
|
|
805
|
+
|
|
806
|
+
/** @internal */
|
|
807
|
+
export type Inputs$Outbound = string | number | boolean;
|
|
808
|
+
|
|
809
|
+
/** @internal */
|
|
293
810
|
export const Inputs$outboundSchema: z.ZodType<
|
|
294
811
|
Inputs$Outbound,
|
|
295
812
|
z.ZodTypeDef,
|
|
@@ -324,490 +841,2291 @@ export function inputsFromJSON(
|
|
|
324
841
|
}
|
|
325
842
|
|
|
326
843
|
/** @internal */
|
|
327
|
-
export const
|
|
328
|
-
|
|
329
|
-
);
|
|
844
|
+
export const DeploymentsPrefixMessages5Role$inboundSchema: z.ZodNativeEnum<
|
|
845
|
+
typeof DeploymentsPrefixMessages5Role
|
|
846
|
+
> = z.nativeEnum(DeploymentsPrefixMessages5Role);
|
|
330
847
|
|
|
331
848
|
/** @internal */
|
|
332
|
-
export const
|
|
333
|
-
|
|
849
|
+
export const DeploymentsPrefixMessages5Role$outboundSchema: z.ZodNativeEnum<
|
|
850
|
+
typeof DeploymentsPrefixMessages5Role
|
|
851
|
+
> = DeploymentsPrefixMessages5Role$inboundSchema;
|
|
334
852
|
|
|
335
853
|
/**
|
|
336
854
|
* @internal
|
|
337
855
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
338
856
|
*/
|
|
339
|
-
export namespace
|
|
340
|
-
/** @deprecated use `
|
|
341
|
-
export const inboundSchema =
|
|
342
|
-
/** @deprecated use `
|
|
343
|
-
export const outboundSchema =
|
|
857
|
+
export namespace DeploymentsPrefixMessages5Role$ {
|
|
858
|
+
/** @deprecated use `DeploymentsPrefixMessages5Role$inboundSchema` instead. */
|
|
859
|
+
export const inboundSchema = DeploymentsPrefixMessages5Role$inboundSchema;
|
|
860
|
+
/** @deprecated use `DeploymentsPrefixMessages5Role$outboundSchema` instead. */
|
|
861
|
+
export const outboundSchema = DeploymentsPrefixMessages5Role$outboundSchema;
|
|
344
862
|
}
|
|
345
863
|
|
|
346
864
|
/** @internal */
|
|
347
|
-
export const
|
|
348
|
-
|
|
865
|
+
export const DeploymentsPrefixMessagesContent$inboundSchema: z.ZodType<
|
|
866
|
+
DeploymentsPrefixMessagesContent,
|
|
867
|
+
z.ZodTypeDef,
|
|
868
|
+
unknown
|
|
869
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
349
870
|
|
|
350
871
|
/** @internal */
|
|
351
|
-
export
|
|
352
|
-
|
|
872
|
+
export type DeploymentsPrefixMessagesContent$Outbound = string | Array<string>;
|
|
873
|
+
|
|
874
|
+
/** @internal */
|
|
875
|
+
export const DeploymentsPrefixMessagesContent$outboundSchema: z.ZodType<
|
|
876
|
+
DeploymentsPrefixMessagesContent$Outbound,
|
|
877
|
+
z.ZodTypeDef,
|
|
878
|
+
DeploymentsPrefixMessagesContent
|
|
879
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
353
880
|
|
|
354
881
|
/**
|
|
355
882
|
* @internal
|
|
356
883
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
357
884
|
*/
|
|
358
|
-
export namespace
|
|
359
|
-
/** @deprecated use `
|
|
360
|
-
export const inboundSchema =
|
|
361
|
-
/** @deprecated use `
|
|
362
|
-
export const outboundSchema =
|
|
885
|
+
export namespace DeploymentsPrefixMessagesContent$ {
|
|
886
|
+
/** @deprecated use `DeploymentsPrefixMessagesContent$inboundSchema` instead. */
|
|
887
|
+
export const inboundSchema = DeploymentsPrefixMessagesContent$inboundSchema;
|
|
888
|
+
/** @deprecated use `DeploymentsPrefixMessagesContent$outboundSchema` instead. */
|
|
889
|
+
export const outboundSchema = DeploymentsPrefixMessagesContent$outboundSchema;
|
|
890
|
+
/** @deprecated use `DeploymentsPrefixMessagesContent$Outbound` instead. */
|
|
891
|
+
export type Outbound = DeploymentsPrefixMessagesContent$Outbound;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
export function deploymentsPrefixMessagesContentToJSON(
|
|
895
|
+
deploymentsPrefixMessagesContent: DeploymentsPrefixMessagesContent,
|
|
896
|
+
): string {
|
|
897
|
+
return JSON.stringify(
|
|
898
|
+
DeploymentsPrefixMessagesContent$outboundSchema.parse(
|
|
899
|
+
deploymentsPrefixMessagesContent,
|
|
900
|
+
),
|
|
901
|
+
);
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export function deploymentsPrefixMessagesContentFromJSON(
|
|
905
|
+
jsonString: string,
|
|
906
|
+
): SafeParseResult<DeploymentsPrefixMessagesContent, SDKValidationError> {
|
|
907
|
+
return safeParse(
|
|
908
|
+
jsonString,
|
|
909
|
+
(x) => DeploymentsPrefixMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
910
|
+
`Failed to parse 'DeploymentsPrefixMessagesContent' from JSON`,
|
|
911
|
+
);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/** @internal */
|
|
915
|
+
export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
|
|
916
|
+
.object({
|
|
917
|
+
role: DeploymentsPrefixMessages5Role$inboundSchema,
|
|
918
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
919
|
+
tool_call_id: z.string(),
|
|
920
|
+
}).transform((v) => {
|
|
921
|
+
return remap$(v, {
|
|
922
|
+
"tool_call_id": "toolCallId",
|
|
923
|
+
});
|
|
924
|
+
});
|
|
925
|
+
|
|
926
|
+
/** @internal */
|
|
927
|
+
export type Five$Outbound = {
|
|
928
|
+
role: string;
|
|
929
|
+
content: string | Array<string>;
|
|
930
|
+
tool_call_id: string;
|
|
931
|
+
};
|
|
932
|
+
|
|
933
|
+
/** @internal */
|
|
934
|
+
export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
|
|
935
|
+
z.object({
|
|
936
|
+
role: DeploymentsPrefixMessages5Role$outboundSchema,
|
|
937
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
938
|
+
toolCallId: z.string(),
|
|
939
|
+
}).transform((v) => {
|
|
940
|
+
return remap$(v, {
|
|
941
|
+
toolCallId: "tool_call_id",
|
|
942
|
+
});
|
|
943
|
+
});
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* @internal
|
|
947
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
948
|
+
*/
|
|
949
|
+
export namespace Five$ {
|
|
950
|
+
/** @deprecated use `Five$inboundSchema` instead. */
|
|
951
|
+
export const inboundSchema = Five$inboundSchema;
|
|
952
|
+
/** @deprecated use `Five$outboundSchema` instead. */
|
|
953
|
+
export const outboundSchema = Five$outboundSchema;
|
|
954
|
+
/** @deprecated use `Five$Outbound` instead. */
|
|
955
|
+
export type Outbound = Five$Outbound;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
export function fiveToJSON(five: Five): string {
|
|
959
|
+
return JSON.stringify(Five$outboundSchema.parse(five));
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
export function fiveFromJSON(
|
|
963
|
+
jsonString: string,
|
|
964
|
+
): SafeParseResult<Five, SDKValidationError> {
|
|
965
|
+
return safeParse(
|
|
966
|
+
jsonString,
|
|
967
|
+
(x) => Five$inboundSchema.parse(JSON.parse(x)),
|
|
968
|
+
`Failed to parse 'Five' from JSON`,
|
|
969
|
+
);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
/** @internal */
|
|
973
|
+
export const Deployments2PrefixMessages4Type$inboundSchema: z.ZodNativeEnum<
|
|
974
|
+
typeof Deployments2PrefixMessages4Type
|
|
975
|
+
> = z.nativeEnum(Deployments2PrefixMessages4Type);
|
|
976
|
+
|
|
977
|
+
/** @internal */
|
|
978
|
+
export const Deployments2PrefixMessages4Type$outboundSchema: z.ZodNativeEnum<
|
|
979
|
+
typeof Deployments2PrefixMessages4Type
|
|
980
|
+
> = Deployments2PrefixMessages4Type$inboundSchema;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* @internal
|
|
984
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
985
|
+
*/
|
|
986
|
+
export namespace Deployments2PrefixMessages4Type$ {
|
|
987
|
+
/** @deprecated use `Deployments2PrefixMessages4Type$inboundSchema` instead. */
|
|
988
|
+
export const inboundSchema = Deployments2PrefixMessages4Type$inboundSchema;
|
|
989
|
+
/** @deprecated use `Deployments2PrefixMessages4Type$outboundSchema` instead. */
|
|
990
|
+
export const outboundSchema = Deployments2PrefixMessages4Type$outboundSchema;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/** @internal */
|
|
994
|
+
export const Deployments22$inboundSchema: z.ZodType<
|
|
995
|
+
Deployments22,
|
|
996
|
+
z.ZodTypeDef,
|
|
997
|
+
unknown
|
|
998
|
+
> = z.object({
|
|
999
|
+
type: Deployments2PrefixMessages4Type$inboundSchema,
|
|
1000
|
+
refusal: z.string(),
|
|
1001
|
+
});
|
|
1002
|
+
|
|
1003
|
+
/** @internal */
|
|
1004
|
+
export type Deployments22$Outbound = {
|
|
1005
|
+
type: string;
|
|
1006
|
+
refusal: string;
|
|
1007
|
+
};
|
|
1008
|
+
|
|
1009
|
+
/** @internal */
|
|
1010
|
+
export const Deployments22$outboundSchema: z.ZodType<
|
|
1011
|
+
Deployments22$Outbound,
|
|
1012
|
+
z.ZodTypeDef,
|
|
1013
|
+
Deployments22
|
|
1014
|
+
> = z.object({
|
|
1015
|
+
type: Deployments2PrefixMessages4Type$outboundSchema,
|
|
1016
|
+
refusal: z.string(),
|
|
1017
|
+
});
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* @internal
|
|
1021
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1022
|
+
*/
|
|
1023
|
+
export namespace Deployments22$ {
|
|
1024
|
+
/** @deprecated use `Deployments22$inboundSchema` instead. */
|
|
1025
|
+
export const inboundSchema = Deployments22$inboundSchema;
|
|
1026
|
+
/** @deprecated use `Deployments22$outboundSchema` instead. */
|
|
1027
|
+
export const outboundSchema = Deployments22$outboundSchema;
|
|
1028
|
+
/** @deprecated use `Deployments22$Outbound` instead. */
|
|
1029
|
+
export type Outbound = Deployments22$Outbound;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
export function deployments22ToJSON(deployments22: Deployments22): string {
|
|
1033
|
+
return JSON.stringify(Deployments22$outboundSchema.parse(deployments22));
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
export function deployments22FromJSON(
|
|
1037
|
+
jsonString: string,
|
|
1038
|
+
): SafeParseResult<Deployments22, SDKValidationError> {
|
|
1039
|
+
return safeParse(
|
|
1040
|
+
jsonString,
|
|
1041
|
+
(x) => Deployments22$inboundSchema.parse(JSON.parse(x)),
|
|
1042
|
+
`Failed to parse 'Deployments22' from JSON`,
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
/** @internal */
|
|
1047
|
+
export const Deployments2PrefixMessagesType$inboundSchema: z.ZodNativeEnum<
|
|
1048
|
+
typeof Deployments2PrefixMessagesType
|
|
1049
|
+
> = z.nativeEnum(Deployments2PrefixMessagesType);
|
|
1050
|
+
|
|
1051
|
+
/** @internal */
|
|
1052
|
+
export const Deployments2PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
1053
|
+
typeof Deployments2PrefixMessagesType
|
|
1054
|
+
> = Deployments2PrefixMessagesType$inboundSchema;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* @internal
|
|
1058
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1059
|
+
*/
|
|
1060
|
+
export namespace Deployments2PrefixMessagesType$ {
|
|
1061
|
+
/** @deprecated use `Deployments2PrefixMessagesType$inboundSchema` instead. */
|
|
1062
|
+
export const inboundSchema = Deployments2PrefixMessagesType$inboundSchema;
|
|
1063
|
+
/** @deprecated use `Deployments2PrefixMessagesType$outboundSchema` instead. */
|
|
1064
|
+
export const outboundSchema = Deployments2PrefixMessagesType$outboundSchema;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
/** @internal */
|
|
1068
|
+
export const Deployments21$inboundSchema: z.ZodType<
|
|
1069
|
+
Deployments21,
|
|
1070
|
+
z.ZodTypeDef,
|
|
1071
|
+
unknown
|
|
1072
|
+
> = z.object({
|
|
1073
|
+
type: Deployments2PrefixMessagesType$inboundSchema,
|
|
1074
|
+
text: z.string(),
|
|
1075
|
+
});
|
|
1076
|
+
|
|
1077
|
+
/** @internal */
|
|
1078
|
+
export type Deployments21$Outbound = {
|
|
1079
|
+
type: string;
|
|
1080
|
+
text: string;
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
/** @internal */
|
|
1084
|
+
export const Deployments21$outboundSchema: z.ZodType<
|
|
1085
|
+
Deployments21$Outbound,
|
|
1086
|
+
z.ZodTypeDef,
|
|
1087
|
+
Deployments21
|
|
1088
|
+
> = z.object({
|
|
1089
|
+
type: Deployments2PrefixMessagesType$outboundSchema,
|
|
1090
|
+
text: z.string(),
|
|
1091
|
+
});
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* @internal
|
|
1095
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1096
|
+
*/
|
|
1097
|
+
export namespace Deployments21$ {
|
|
1098
|
+
/** @deprecated use `Deployments21$inboundSchema` instead. */
|
|
1099
|
+
export const inboundSchema = Deployments21$inboundSchema;
|
|
1100
|
+
/** @deprecated use `Deployments21$outboundSchema` instead. */
|
|
1101
|
+
export const outboundSchema = Deployments21$outboundSchema;
|
|
1102
|
+
/** @deprecated use `Deployments21$Outbound` instead. */
|
|
1103
|
+
export type Outbound = Deployments21$Outbound;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export function deployments21ToJSON(deployments21: Deployments21): string {
|
|
1107
|
+
return JSON.stringify(Deployments21$outboundSchema.parse(deployments21));
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
export function deployments21FromJSON(
|
|
1111
|
+
jsonString: string,
|
|
1112
|
+
): SafeParseResult<Deployments21, SDKValidationError> {
|
|
1113
|
+
return safeParse(
|
|
1114
|
+
jsonString,
|
|
1115
|
+
(x) => Deployments21$inboundSchema.parse(JSON.parse(x)),
|
|
1116
|
+
`Failed to parse 'Deployments21' from JSON`,
|
|
1117
|
+
);
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
/** @internal */
|
|
1121
|
+
export const DeploymentsContent2$inboundSchema: z.ZodType<
|
|
1122
|
+
DeploymentsContent2,
|
|
1123
|
+
z.ZodTypeDef,
|
|
1124
|
+
unknown
|
|
1125
|
+
> = z.union([
|
|
1126
|
+
z.lazy(() => Deployments21$inboundSchema),
|
|
1127
|
+
z.lazy(() => Deployments22$inboundSchema),
|
|
1128
|
+
]);
|
|
1129
|
+
|
|
1130
|
+
/** @internal */
|
|
1131
|
+
export type DeploymentsContent2$Outbound =
|
|
1132
|
+
| Deployments21$Outbound
|
|
1133
|
+
| Deployments22$Outbound;
|
|
1134
|
+
|
|
1135
|
+
/** @internal */
|
|
1136
|
+
export const DeploymentsContent2$outboundSchema: z.ZodType<
|
|
1137
|
+
DeploymentsContent2$Outbound,
|
|
1138
|
+
z.ZodTypeDef,
|
|
1139
|
+
DeploymentsContent2
|
|
1140
|
+
> = z.union([
|
|
1141
|
+
z.lazy(() => Deployments21$outboundSchema),
|
|
1142
|
+
z.lazy(() => Deployments22$outboundSchema),
|
|
1143
|
+
]);
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* @internal
|
|
1147
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1148
|
+
*/
|
|
1149
|
+
export namespace DeploymentsContent2$ {
|
|
1150
|
+
/** @deprecated use `DeploymentsContent2$inboundSchema` instead. */
|
|
1151
|
+
export const inboundSchema = DeploymentsContent2$inboundSchema;
|
|
1152
|
+
/** @deprecated use `DeploymentsContent2$outboundSchema` instead. */
|
|
1153
|
+
export const outboundSchema = DeploymentsContent2$outboundSchema;
|
|
1154
|
+
/** @deprecated use `DeploymentsContent2$Outbound` instead. */
|
|
1155
|
+
export type Outbound = DeploymentsContent2$Outbound;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
export function deploymentsContent2ToJSON(
|
|
1159
|
+
deploymentsContent2: DeploymentsContent2,
|
|
1160
|
+
): string {
|
|
1161
|
+
return JSON.stringify(
|
|
1162
|
+
DeploymentsContent2$outboundSchema.parse(deploymentsContent2),
|
|
1163
|
+
);
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
export function deploymentsContent2FromJSON(
|
|
1167
|
+
jsonString: string,
|
|
1168
|
+
): SafeParseResult<DeploymentsContent2, SDKValidationError> {
|
|
1169
|
+
return safeParse(
|
|
1170
|
+
jsonString,
|
|
1171
|
+
(x) => DeploymentsContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1172
|
+
`Failed to parse 'DeploymentsContent2' from JSON`,
|
|
1173
|
+
);
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
/** @internal */
|
|
1177
|
+
export const PrefixMessagesContent$inboundSchema: z.ZodType<
|
|
1178
|
+
PrefixMessagesContent,
|
|
1179
|
+
z.ZodTypeDef,
|
|
1180
|
+
unknown
|
|
1181
|
+
> = z.union([
|
|
1182
|
+
z.string(),
|
|
1183
|
+
z.array(z.union([
|
|
1184
|
+
z.lazy(() => Deployments21$inboundSchema),
|
|
1185
|
+
z.lazy(() => Deployments22$inboundSchema),
|
|
1186
|
+
])),
|
|
1187
|
+
]);
|
|
1188
|
+
|
|
1189
|
+
/** @internal */
|
|
1190
|
+
export type PrefixMessagesContent$Outbound =
|
|
1191
|
+
| string
|
|
1192
|
+
| Array<Deployments21$Outbound | Deployments22$Outbound>;
|
|
1193
|
+
|
|
1194
|
+
/** @internal */
|
|
1195
|
+
export const PrefixMessagesContent$outboundSchema: z.ZodType<
|
|
1196
|
+
PrefixMessagesContent$Outbound,
|
|
1197
|
+
z.ZodTypeDef,
|
|
1198
|
+
PrefixMessagesContent
|
|
1199
|
+
> = z.union([
|
|
1200
|
+
z.string(),
|
|
1201
|
+
z.array(z.union([
|
|
1202
|
+
z.lazy(() => Deployments21$outboundSchema),
|
|
1203
|
+
z.lazy(() => Deployments22$outboundSchema),
|
|
1204
|
+
])),
|
|
1205
|
+
]);
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* @internal
|
|
1209
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1210
|
+
*/
|
|
1211
|
+
export namespace PrefixMessagesContent$ {
|
|
1212
|
+
/** @deprecated use `PrefixMessagesContent$inboundSchema` instead. */
|
|
1213
|
+
export const inboundSchema = PrefixMessagesContent$inboundSchema;
|
|
1214
|
+
/** @deprecated use `PrefixMessagesContent$outboundSchema` instead. */
|
|
1215
|
+
export const outboundSchema = PrefixMessagesContent$outboundSchema;
|
|
1216
|
+
/** @deprecated use `PrefixMessagesContent$Outbound` instead. */
|
|
1217
|
+
export type Outbound = PrefixMessagesContent$Outbound;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
export function prefixMessagesContentToJSON(
|
|
1221
|
+
prefixMessagesContent: PrefixMessagesContent,
|
|
1222
|
+
): string {
|
|
1223
|
+
return JSON.stringify(
|
|
1224
|
+
PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
|
|
1225
|
+
);
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
export function prefixMessagesContentFromJSON(
|
|
1229
|
+
jsonString: string,
|
|
1230
|
+
): SafeParseResult<PrefixMessagesContent, SDKValidationError> {
|
|
1231
|
+
return safeParse(
|
|
1232
|
+
jsonString,
|
|
1233
|
+
(x) => PrefixMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
1234
|
+
`Failed to parse 'PrefixMessagesContent' from JSON`,
|
|
1235
|
+
);
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
/** @internal */
|
|
1239
|
+
export const DeploymentsPrefixMessages4Role$inboundSchema: z.ZodNativeEnum<
|
|
1240
|
+
typeof DeploymentsPrefixMessages4Role
|
|
1241
|
+
> = z.nativeEnum(DeploymentsPrefixMessages4Role);
|
|
1242
|
+
|
|
1243
|
+
/** @internal */
|
|
1244
|
+
export const DeploymentsPrefixMessages4Role$outboundSchema: z.ZodNativeEnum<
|
|
1245
|
+
typeof DeploymentsPrefixMessages4Role
|
|
1246
|
+
> = DeploymentsPrefixMessages4Role$inboundSchema;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* @internal
|
|
1250
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1251
|
+
*/
|
|
1252
|
+
export namespace DeploymentsPrefixMessages4Role$ {
|
|
1253
|
+
/** @deprecated use `DeploymentsPrefixMessages4Role$inboundSchema` instead. */
|
|
1254
|
+
export const inboundSchema = DeploymentsPrefixMessages4Role$inboundSchema;
|
|
1255
|
+
/** @deprecated use `DeploymentsPrefixMessages4Role$outboundSchema` instead. */
|
|
1256
|
+
export const outboundSchema = DeploymentsPrefixMessages4Role$outboundSchema;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
/** @internal */
|
|
1260
|
+
export const Audio$inboundSchema: z.ZodType<Audio, z.ZodTypeDef, unknown> = z
|
|
1261
|
+
.object({
|
|
1262
|
+
id: z.string(),
|
|
1263
|
+
});
|
|
1264
|
+
|
|
1265
|
+
/** @internal */
|
|
1266
|
+
export type Audio$Outbound = {
|
|
1267
|
+
id: string;
|
|
1268
|
+
};
|
|
1269
|
+
|
|
1270
|
+
/** @internal */
|
|
1271
|
+
export const Audio$outboundSchema: z.ZodType<
|
|
1272
|
+
Audio$Outbound,
|
|
1273
|
+
z.ZodTypeDef,
|
|
1274
|
+
Audio
|
|
1275
|
+
> = z.object({
|
|
1276
|
+
id: z.string(),
|
|
1277
|
+
});
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* @internal
|
|
1281
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1282
|
+
*/
|
|
1283
|
+
export namespace Audio$ {
|
|
1284
|
+
/** @deprecated use `Audio$inboundSchema` instead. */
|
|
1285
|
+
export const inboundSchema = Audio$inboundSchema;
|
|
1286
|
+
/** @deprecated use `Audio$outboundSchema` instead. */
|
|
1287
|
+
export const outboundSchema = Audio$outboundSchema;
|
|
1288
|
+
/** @deprecated use `Audio$Outbound` instead. */
|
|
1289
|
+
export type Outbound = Audio$Outbound;
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
export function audioToJSON(audio: Audio): string {
|
|
1293
|
+
return JSON.stringify(Audio$outboundSchema.parse(audio));
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
export function audioFromJSON(
|
|
1297
|
+
jsonString: string,
|
|
1298
|
+
): SafeParseResult<Audio, SDKValidationError> {
|
|
1299
|
+
return safeParse(
|
|
1300
|
+
jsonString,
|
|
1301
|
+
(x) => Audio$inboundSchema.parse(JSON.parse(x)),
|
|
1302
|
+
`Failed to parse 'Audio' from JSON`,
|
|
1303
|
+
);
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
/** @internal */
|
|
1307
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
1308
|
+
Type,
|
|
1309
|
+
);
|
|
1310
|
+
|
|
1311
|
+
/** @internal */
|
|
1312
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
1313
|
+
Type$inboundSchema;
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* @internal
|
|
1317
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1318
|
+
*/
|
|
1319
|
+
export namespace Type$ {
|
|
1320
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
1321
|
+
export const inboundSchema = Type$inboundSchema;
|
|
1322
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
1323
|
+
export const outboundSchema = Type$outboundSchema;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
/** @internal */
|
|
1327
|
+
export const FunctionT$inboundSchema: z.ZodType<
|
|
1328
|
+
FunctionT,
|
|
1329
|
+
z.ZodTypeDef,
|
|
1330
|
+
unknown
|
|
1331
|
+
> = z.object({
|
|
1332
|
+
name: z.string().optional(),
|
|
1333
|
+
arguments: z.string().optional(),
|
|
1334
|
+
});
|
|
1335
|
+
|
|
1336
|
+
/** @internal */
|
|
1337
|
+
export type FunctionT$Outbound = {
|
|
1338
|
+
name?: string | undefined;
|
|
1339
|
+
arguments?: string | undefined;
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1342
|
+
/** @internal */
|
|
1343
|
+
export const FunctionT$outboundSchema: z.ZodType<
|
|
1344
|
+
FunctionT$Outbound,
|
|
1345
|
+
z.ZodTypeDef,
|
|
1346
|
+
FunctionT
|
|
1347
|
+
> = z.object({
|
|
1348
|
+
name: z.string().optional(),
|
|
1349
|
+
arguments: z.string().optional(),
|
|
1350
|
+
});
|
|
1351
|
+
|
|
1352
|
+
/**
|
|
1353
|
+
* @internal
|
|
1354
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1355
|
+
*/
|
|
1356
|
+
export namespace FunctionT$ {
|
|
1357
|
+
/** @deprecated use `FunctionT$inboundSchema` instead. */
|
|
1358
|
+
export const inboundSchema = FunctionT$inboundSchema;
|
|
1359
|
+
/** @deprecated use `FunctionT$outboundSchema` instead. */
|
|
1360
|
+
export const outboundSchema = FunctionT$outboundSchema;
|
|
1361
|
+
/** @deprecated use `FunctionT$Outbound` instead. */
|
|
1362
|
+
export type Outbound = FunctionT$Outbound;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
export function functionToJSON(functionT: FunctionT): string {
|
|
1366
|
+
return JSON.stringify(FunctionT$outboundSchema.parse(functionT));
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
export function functionFromJSON(
|
|
1370
|
+
jsonString: string,
|
|
1371
|
+
): SafeParseResult<FunctionT, SDKValidationError> {
|
|
1372
|
+
return safeParse(
|
|
1373
|
+
jsonString,
|
|
1374
|
+
(x) => FunctionT$inboundSchema.parse(JSON.parse(x)),
|
|
1375
|
+
`Failed to parse 'FunctionT' from JSON`,
|
|
1376
|
+
);
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
/** @internal */
|
|
1380
|
+
export const ToolCalls$inboundSchema: z.ZodType<
|
|
1381
|
+
ToolCalls,
|
|
1382
|
+
z.ZodTypeDef,
|
|
1383
|
+
unknown
|
|
1384
|
+
> = z.object({
|
|
1385
|
+
id: z.string(),
|
|
1386
|
+
type: Type$inboundSchema,
|
|
1387
|
+
function: z.lazy(() => FunctionT$inboundSchema),
|
|
1388
|
+
});
|
|
1389
|
+
|
|
1390
|
+
/** @internal */
|
|
1391
|
+
export type ToolCalls$Outbound = {
|
|
1392
|
+
id: string;
|
|
1393
|
+
type: string;
|
|
1394
|
+
function: FunctionT$Outbound;
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
/** @internal */
|
|
1398
|
+
export const ToolCalls$outboundSchema: z.ZodType<
|
|
1399
|
+
ToolCalls$Outbound,
|
|
1400
|
+
z.ZodTypeDef,
|
|
1401
|
+
ToolCalls
|
|
1402
|
+
> = z.object({
|
|
1403
|
+
id: z.string(),
|
|
1404
|
+
type: Type$outboundSchema,
|
|
1405
|
+
function: z.lazy(() => FunctionT$outboundSchema),
|
|
1406
|
+
});
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* @internal
|
|
1410
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1411
|
+
*/
|
|
1412
|
+
export namespace ToolCalls$ {
|
|
1413
|
+
/** @deprecated use `ToolCalls$inboundSchema` instead. */
|
|
1414
|
+
export const inboundSchema = ToolCalls$inboundSchema;
|
|
1415
|
+
/** @deprecated use `ToolCalls$outboundSchema` instead. */
|
|
1416
|
+
export const outboundSchema = ToolCalls$outboundSchema;
|
|
1417
|
+
/** @deprecated use `ToolCalls$Outbound` instead. */
|
|
1418
|
+
export type Outbound = ToolCalls$Outbound;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
export function toolCallsToJSON(toolCalls: ToolCalls): string {
|
|
1422
|
+
return JSON.stringify(ToolCalls$outboundSchema.parse(toolCalls));
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
export function toolCallsFromJSON(
|
|
1426
|
+
jsonString: string,
|
|
1427
|
+
): SafeParseResult<ToolCalls, SDKValidationError> {
|
|
1428
|
+
return safeParse(
|
|
1429
|
+
jsonString,
|
|
1430
|
+
(x) => ToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1431
|
+
`Failed to parse 'ToolCalls' from JSON`,
|
|
1432
|
+
);
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
/** @internal */
|
|
1436
|
+
export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
|
|
1437
|
+
.object({
|
|
1438
|
+
content: z.union([
|
|
1439
|
+
z.string(),
|
|
1440
|
+
z.array(z.union([
|
|
1441
|
+
z.lazy(() => Deployments21$inboundSchema),
|
|
1442
|
+
z.lazy(() => Deployments22$inboundSchema),
|
|
1443
|
+
])),
|
|
1444
|
+
]).optional(),
|
|
1445
|
+
refusal: z.nullable(z.string()).optional(),
|
|
1446
|
+
role: DeploymentsPrefixMessages4Role$inboundSchema,
|
|
1447
|
+
name: z.string().optional(),
|
|
1448
|
+
audio: z.nullable(z.lazy(() => Audio$inboundSchema)).optional(),
|
|
1449
|
+
tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
|
|
1450
|
+
}).transform((v) => {
|
|
1451
|
+
return remap$(v, {
|
|
1452
|
+
"tool_calls": "toolCalls",
|
|
1453
|
+
});
|
|
1454
|
+
});
|
|
1455
|
+
|
|
1456
|
+
/** @internal */
|
|
1457
|
+
export type Four$Outbound = {
|
|
1458
|
+
content?:
|
|
1459
|
+
| string
|
|
1460
|
+
| Array<Deployments21$Outbound | Deployments22$Outbound>
|
|
1461
|
+
| undefined;
|
|
1462
|
+
refusal?: string | null | undefined;
|
|
1463
|
+
role: string;
|
|
1464
|
+
name?: string | undefined;
|
|
1465
|
+
audio?: Audio$Outbound | null | undefined;
|
|
1466
|
+
tool_calls?: Array<ToolCalls$Outbound> | undefined;
|
|
1467
|
+
};
|
|
1468
|
+
|
|
1469
|
+
/** @internal */
|
|
1470
|
+
export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
|
|
1471
|
+
z.object({
|
|
1472
|
+
content: z.union([
|
|
1473
|
+
z.string(),
|
|
1474
|
+
z.array(z.union([
|
|
1475
|
+
z.lazy(() => Deployments21$outboundSchema),
|
|
1476
|
+
z.lazy(() => Deployments22$outboundSchema),
|
|
1477
|
+
])),
|
|
1478
|
+
]).optional(),
|
|
1479
|
+
refusal: z.nullable(z.string()).optional(),
|
|
1480
|
+
role: DeploymentsPrefixMessages4Role$outboundSchema,
|
|
1481
|
+
name: z.string().optional(),
|
|
1482
|
+
audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
|
|
1483
|
+
toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
|
|
1484
|
+
}).transform((v) => {
|
|
1485
|
+
return remap$(v, {
|
|
1486
|
+
toolCalls: "tool_calls",
|
|
1487
|
+
});
|
|
1488
|
+
});
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* @internal
|
|
1492
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1493
|
+
*/
|
|
1494
|
+
export namespace Four$ {
|
|
1495
|
+
/** @deprecated use `Four$inboundSchema` instead. */
|
|
1496
|
+
export const inboundSchema = Four$inboundSchema;
|
|
1497
|
+
/** @deprecated use `Four$outboundSchema` instead. */
|
|
1498
|
+
export const outboundSchema = Four$outboundSchema;
|
|
1499
|
+
/** @deprecated use `Four$Outbound` instead. */
|
|
1500
|
+
export type Outbound = Four$Outbound;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
export function fourToJSON(four: Four): string {
|
|
1504
|
+
return JSON.stringify(Four$outboundSchema.parse(four));
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
export function fourFromJSON(
|
|
1508
|
+
jsonString: string,
|
|
1509
|
+
): SafeParseResult<Four, SDKValidationError> {
|
|
1510
|
+
return safeParse(
|
|
1511
|
+
jsonString,
|
|
1512
|
+
(x) => Four$inboundSchema.parse(JSON.parse(x)),
|
|
1513
|
+
`Failed to parse 'Four' from JSON`,
|
|
1514
|
+
);
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
/** @internal */
|
|
1518
|
+
export const DeploymentsPrefixMessagesRole$inboundSchema: z.ZodNativeEnum<
|
|
1519
|
+
typeof DeploymentsPrefixMessagesRole
|
|
1520
|
+
> = z.nativeEnum(DeploymentsPrefixMessagesRole);
|
|
1521
|
+
|
|
1522
|
+
/** @internal */
|
|
1523
|
+
export const DeploymentsPrefixMessagesRole$outboundSchema: z.ZodNativeEnum<
|
|
1524
|
+
typeof DeploymentsPrefixMessagesRole
|
|
1525
|
+
> = DeploymentsPrefixMessagesRole$inboundSchema;
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* @internal
|
|
1529
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1530
|
+
*/
|
|
1531
|
+
export namespace DeploymentsPrefixMessagesRole$ {
|
|
1532
|
+
/** @deprecated use `DeploymentsPrefixMessagesRole$inboundSchema` instead. */
|
|
1533
|
+
export const inboundSchema = DeploymentsPrefixMessagesRole$inboundSchema;
|
|
1534
|
+
/** @deprecated use `DeploymentsPrefixMessagesRole$outboundSchema` instead. */
|
|
1535
|
+
export const outboundSchema = DeploymentsPrefixMessagesRole$outboundSchema;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/** @internal */
|
|
1539
|
+
export const Deployments2Type$inboundSchema: z.ZodNativeEnum<
|
|
1540
|
+
typeof Deployments2Type
|
|
1541
|
+
> = z.nativeEnum(Deployments2Type);
|
|
1542
|
+
|
|
1543
|
+
/** @internal */
|
|
1544
|
+
export const Deployments2Type$outboundSchema: z.ZodNativeEnum<
|
|
1545
|
+
typeof Deployments2Type
|
|
1546
|
+
> = Deployments2Type$inboundSchema;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* @internal
|
|
1550
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1551
|
+
*/
|
|
1552
|
+
export namespace Deployments2Type$ {
|
|
1553
|
+
/** @deprecated use `Deployments2Type$inboundSchema` instead. */
|
|
1554
|
+
export const inboundSchema = Deployments2Type$inboundSchema;
|
|
1555
|
+
/** @deprecated use `Deployments2Type$outboundSchema` instead. */
|
|
1556
|
+
export const outboundSchema = Deployments2Type$outboundSchema;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
/** @internal */
|
|
1560
|
+
export const Format$inboundSchema: z.ZodNativeEnum<typeof Format> = z
|
|
1561
|
+
.nativeEnum(Format);
|
|
1562
|
+
|
|
1563
|
+
/** @internal */
|
|
1564
|
+
export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> =
|
|
1565
|
+
Format$inboundSchema;
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* @internal
|
|
1569
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1570
|
+
*/
|
|
1571
|
+
export namespace Format$ {
|
|
1572
|
+
/** @deprecated use `Format$inboundSchema` instead. */
|
|
1573
|
+
export const inboundSchema = Format$inboundSchema;
|
|
1574
|
+
/** @deprecated use `Format$outboundSchema` instead. */
|
|
1575
|
+
export const outboundSchema = Format$outboundSchema;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
/** @internal */
|
|
1579
|
+
export const InputAudio$inboundSchema: z.ZodType<
|
|
1580
|
+
InputAudio,
|
|
1581
|
+
z.ZodTypeDef,
|
|
1582
|
+
unknown
|
|
1583
|
+
> = z.object({
|
|
1584
|
+
data: z.string(),
|
|
1585
|
+
format: Format$inboundSchema,
|
|
1586
|
+
});
|
|
1587
|
+
|
|
1588
|
+
/** @internal */
|
|
1589
|
+
export type InputAudio$Outbound = {
|
|
1590
|
+
data: string;
|
|
1591
|
+
format: string;
|
|
1592
|
+
};
|
|
1593
|
+
|
|
1594
|
+
/** @internal */
|
|
1595
|
+
export const InputAudio$outboundSchema: z.ZodType<
|
|
1596
|
+
InputAudio$Outbound,
|
|
1597
|
+
z.ZodTypeDef,
|
|
1598
|
+
InputAudio
|
|
1599
|
+
> = z.object({
|
|
1600
|
+
data: z.string(),
|
|
1601
|
+
format: Format$outboundSchema,
|
|
1602
|
+
});
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* @internal
|
|
1606
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1607
|
+
*/
|
|
1608
|
+
export namespace InputAudio$ {
|
|
1609
|
+
/** @deprecated use `InputAudio$inboundSchema` instead. */
|
|
1610
|
+
export const inboundSchema = InputAudio$inboundSchema;
|
|
1611
|
+
/** @deprecated use `InputAudio$outboundSchema` instead. */
|
|
1612
|
+
export const outboundSchema = InputAudio$outboundSchema;
|
|
1613
|
+
/** @deprecated use `InputAudio$Outbound` instead. */
|
|
1614
|
+
export type Outbound = InputAudio$Outbound;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
export function inputAudioToJSON(inputAudio: InputAudio): string {
|
|
1618
|
+
return JSON.stringify(InputAudio$outboundSchema.parse(inputAudio));
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
export function inputAudioFromJSON(
|
|
1622
|
+
jsonString: string,
|
|
1623
|
+
): SafeParseResult<InputAudio, SDKValidationError> {
|
|
1624
|
+
return safeParse(
|
|
1625
|
+
jsonString,
|
|
1626
|
+
(x) => InputAudio$inboundSchema.parse(JSON.parse(x)),
|
|
1627
|
+
`Failed to parse 'InputAudio' from JSON`,
|
|
1628
|
+
);
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
/** @internal */
|
|
1632
|
+
export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
|
|
1633
|
+
.object({
|
|
1634
|
+
type: Deployments2Type$inboundSchema,
|
|
1635
|
+
input_audio: z.lazy(() => InputAudio$inboundSchema),
|
|
1636
|
+
}).transform((v) => {
|
|
1637
|
+
return remap$(v, {
|
|
1638
|
+
"input_audio": "inputAudio",
|
|
1639
|
+
});
|
|
1640
|
+
});
|
|
1641
|
+
|
|
1642
|
+
/** @internal */
|
|
1643
|
+
export type Two3$Outbound = {
|
|
1644
|
+
type: string;
|
|
1645
|
+
input_audio: InputAudio$Outbound;
|
|
1646
|
+
};
|
|
1647
|
+
|
|
1648
|
+
/** @internal */
|
|
1649
|
+
export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
|
|
1650
|
+
z.object({
|
|
1651
|
+
type: Deployments2Type$outboundSchema,
|
|
1652
|
+
inputAudio: z.lazy(() => InputAudio$outboundSchema),
|
|
1653
|
+
}).transform((v) => {
|
|
1654
|
+
return remap$(v, {
|
|
1655
|
+
inputAudio: "input_audio",
|
|
1656
|
+
});
|
|
1657
|
+
});
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* @internal
|
|
1661
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1662
|
+
*/
|
|
1663
|
+
export namespace Two3$ {
|
|
1664
|
+
/** @deprecated use `Two3$inboundSchema` instead. */
|
|
1665
|
+
export const inboundSchema = Two3$inboundSchema;
|
|
1666
|
+
/** @deprecated use `Two3$outboundSchema` instead. */
|
|
1667
|
+
export const outboundSchema = Two3$outboundSchema;
|
|
1668
|
+
/** @deprecated use `Two3$Outbound` instead. */
|
|
1669
|
+
export type Outbound = Two3$Outbound;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
export function two3ToJSON(two3: Two3): string {
|
|
1673
|
+
return JSON.stringify(Two3$outboundSchema.parse(two3));
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
export function two3FromJSON(
|
|
1677
|
+
jsonString: string,
|
|
1678
|
+
): SafeParseResult<Two3, SDKValidationError> {
|
|
1679
|
+
return safeParse(
|
|
1680
|
+
jsonString,
|
|
1681
|
+
(x) => Two3$inboundSchema.parse(JSON.parse(x)),
|
|
1682
|
+
`Failed to parse 'Two3' from JSON`,
|
|
1683
|
+
);
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
/** @internal */
|
|
1687
|
+
export const TwoType$inboundSchema: z.ZodNativeEnum<typeof TwoType> = z
|
|
1688
|
+
.nativeEnum(TwoType);
|
|
1689
|
+
|
|
1690
|
+
/** @internal */
|
|
1691
|
+
export const TwoType$outboundSchema: z.ZodNativeEnum<typeof TwoType> =
|
|
1692
|
+
TwoType$inboundSchema;
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* @internal
|
|
1696
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1697
|
+
*/
|
|
1698
|
+
export namespace TwoType$ {
|
|
1699
|
+
/** @deprecated use `TwoType$inboundSchema` instead. */
|
|
1700
|
+
export const inboundSchema = TwoType$inboundSchema;
|
|
1701
|
+
/** @deprecated use `TwoType$outboundSchema` instead. */
|
|
1702
|
+
export const outboundSchema = TwoType$outboundSchema;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
/** @internal */
|
|
1706
|
+
export const Detail$inboundSchema: z.ZodNativeEnum<typeof Detail> = z
|
|
1707
|
+
.nativeEnum(Detail);
|
|
1708
|
+
|
|
1709
|
+
/** @internal */
|
|
1710
|
+
export const Detail$outboundSchema: z.ZodNativeEnum<typeof Detail> =
|
|
1711
|
+
Detail$inboundSchema;
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* @internal
|
|
1715
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1716
|
+
*/
|
|
1717
|
+
export namespace Detail$ {
|
|
1718
|
+
/** @deprecated use `Detail$inboundSchema` instead. */
|
|
1719
|
+
export const inboundSchema = Detail$inboundSchema;
|
|
1720
|
+
/** @deprecated use `Detail$outboundSchema` instead. */
|
|
1721
|
+
export const outboundSchema = Detail$outboundSchema;
|
|
1722
|
+
}
|
|
1723
|
+
|
|
1724
|
+
/** @internal */
|
|
1725
|
+
export const ImageUrl$inboundSchema: z.ZodType<
|
|
1726
|
+
ImageUrl,
|
|
1727
|
+
z.ZodTypeDef,
|
|
1728
|
+
unknown
|
|
1729
|
+
> = z.object({
|
|
1730
|
+
url: z.string(),
|
|
1731
|
+
detail: Detail$inboundSchema.optional(),
|
|
1732
|
+
});
|
|
1733
|
+
|
|
1734
|
+
/** @internal */
|
|
1735
|
+
export type ImageUrl$Outbound = {
|
|
1736
|
+
url: string;
|
|
1737
|
+
detail?: string | undefined;
|
|
1738
|
+
};
|
|
1739
|
+
|
|
1740
|
+
/** @internal */
|
|
1741
|
+
export const ImageUrl$outboundSchema: z.ZodType<
|
|
1742
|
+
ImageUrl$Outbound,
|
|
1743
|
+
z.ZodTypeDef,
|
|
1744
|
+
ImageUrl
|
|
1745
|
+
> = z.object({
|
|
1746
|
+
url: z.string(),
|
|
1747
|
+
detail: Detail$outboundSchema.optional(),
|
|
1748
|
+
});
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* @internal
|
|
1752
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1753
|
+
*/
|
|
1754
|
+
export namespace ImageUrl$ {
|
|
1755
|
+
/** @deprecated use `ImageUrl$inboundSchema` instead. */
|
|
1756
|
+
export const inboundSchema = ImageUrl$inboundSchema;
|
|
1757
|
+
/** @deprecated use `ImageUrl$outboundSchema` instead. */
|
|
1758
|
+
export const outboundSchema = ImageUrl$outboundSchema;
|
|
1759
|
+
/** @deprecated use `ImageUrl$Outbound` instead. */
|
|
1760
|
+
export type Outbound = ImageUrl$Outbound;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
export function imageUrlToJSON(imageUrl: ImageUrl): string {
|
|
1764
|
+
return JSON.stringify(ImageUrl$outboundSchema.parse(imageUrl));
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
export function imageUrlFromJSON(
|
|
1768
|
+
jsonString: string,
|
|
1769
|
+
): SafeParseResult<ImageUrl, SDKValidationError> {
|
|
1770
|
+
return safeParse(
|
|
1771
|
+
jsonString,
|
|
1772
|
+
(x) => ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1773
|
+
`Failed to parse 'ImageUrl' from JSON`,
|
|
1774
|
+
);
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
/** @internal */
|
|
1778
|
+
export const Two2$inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown> = z
|
|
1779
|
+
.object({
|
|
1780
|
+
type: TwoType$inboundSchema,
|
|
1781
|
+
image_url: z.lazy(() => ImageUrl$inboundSchema),
|
|
1782
|
+
}).transform((v) => {
|
|
1783
|
+
return remap$(v, {
|
|
1784
|
+
"image_url": "imageUrl",
|
|
1785
|
+
});
|
|
1786
|
+
});
|
|
1787
|
+
|
|
1788
|
+
/** @internal */
|
|
1789
|
+
export type Two2$Outbound = {
|
|
1790
|
+
type: string;
|
|
1791
|
+
image_url: ImageUrl$Outbound;
|
|
1792
|
+
};
|
|
1793
|
+
|
|
1794
|
+
/** @internal */
|
|
1795
|
+
export const Two2$outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2> =
|
|
1796
|
+
z.object({
|
|
1797
|
+
type: TwoType$outboundSchema,
|
|
1798
|
+
imageUrl: z.lazy(() => ImageUrl$outboundSchema),
|
|
1799
|
+
}).transform((v) => {
|
|
1800
|
+
return remap$(v, {
|
|
1801
|
+
imageUrl: "image_url",
|
|
1802
|
+
});
|
|
1803
|
+
});
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* @internal
|
|
1807
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1808
|
+
*/
|
|
1809
|
+
export namespace Two2$ {
|
|
1810
|
+
/** @deprecated use `Two2$inboundSchema` instead. */
|
|
1811
|
+
export const inboundSchema = Two2$inboundSchema;
|
|
1812
|
+
/** @deprecated use `Two2$outboundSchema` instead. */
|
|
1813
|
+
export const outboundSchema = Two2$outboundSchema;
|
|
1814
|
+
/** @deprecated use `Two2$Outbound` instead. */
|
|
1815
|
+
export type Outbound = Two2$Outbound;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
export function two2ToJSON(two2: Two2): string {
|
|
1819
|
+
return JSON.stringify(Two2$outboundSchema.parse(two2));
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
export function two2FromJSON(
|
|
1823
|
+
jsonString: string,
|
|
1824
|
+
): SafeParseResult<Two2, SDKValidationError> {
|
|
1825
|
+
return safeParse(
|
|
1826
|
+
jsonString,
|
|
1827
|
+
(x) => Two2$inboundSchema.parse(JSON.parse(x)),
|
|
1828
|
+
`Failed to parse 'Two2' from JSON`,
|
|
1829
|
+
);
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
/** @internal */
|
|
1833
|
+
export const Deployments2PrefixMessages3Type$inboundSchema: z.ZodNativeEnum<
|
|
1834
|
+
typeof Deployments2PrefixMessages3Type
|
|
1835
|
+
> = z.nativeEnum(Deployments2PrefixMessages3Type);
|
|
1836
|
+
|
|
1837
|
+
/** @internal */
|
|
1838
|
+
export const Deployments2PrefixMessages3Type$outboundSchema: z.ZodNativeEnum<
|
|
1839
|
+
typeof Deployments2PrefixMessages3Type
|
|
1840
|
+
> = Deployments2PrefixMessages3Type$inboundSchema;
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* @internal
|
|
1844
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1845
|
+
*/
|
|
1846
|
+
export namespace Deployments2PrefixMessages3Type$ {
|
|
1847
|
+
/** @deprecated use `Deployments2PrefixMessages3Type$inboundSchema` instead. */
|
|
1848
|
+
export const inboundSchema = Deployments2PrefixMessages3Type$inboundSchema;
|
|
1849
|
+
/** @deprecated use `Deployments2PrefixMessages3Type$outboundSchema` instead. */
|
|
1850
|
+
export const outboundSchema = Deployments2PrefixMessages3Type$outboundSchema;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
/** @internal */
|
|
1854
|
+
export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
|
|
1855
|
+
.object({
|
|
1856
|
+
type: Deployments2PrefixMessages3Type$inboundSchema,
|
|
1857
|
+
text: z.string(),
|
|
1858
|
+
});
|
|
1859
|
+
|
|
1860
|
+
/** @internal */
|
|
1861
|
+
export type Two1$Outbound = {
|
|
1862
|
+
type: string;
|
|
1863
|
+
text: string;
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
/** @internal */
|
|
1867
|
+
export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
|
|
1868
|
+
z.object({
|
|
1869
|
+
type: Deployments2PrefixMessages3Type$outboundSchema,
|
|
1870
|
+
text: z.string(),
|
|
1871
|
+
});
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* @internal
|
|
1875
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1876
|
+
*/
|
|
1877
|
+
export namespace Two1$ {
|
|
1878
|
+
/** @deprecated use `Two1$inboundSchema` instead. */
|
|
1879
|
+
export const inboundSchema = Two1$inboundSchema;
|
|
1880
|
+
/** @deprecated use `Two1$outboundSchema` instead. */
|
|
1881
|
+
export const outboundSchema = Two1$outboundSchema;
|
|
1882
|
+
/** @deprecated use `Two1$Outbound` instead. */
|
|
1883
|
+
export type Outbound = Two1$Outbound;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
export function two1ToJSON(two1: Two1): string {
|
|
1887
|
+
return JSON.stringify(Two1$outboundSchema.parse(two1));
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
export function two1FromJSON(
|
|
1891
|
+
jsonString: string,
|
|
1892
|
+
): SafeParseResult<Two1, SDKValidationError> {
|
|
1893
|
+
return safeParse(
|
|
1894
|
+
jsonString,
|
|
1895
|
+
(x) => Two1$inboundSchema.parse(JSON.parse(x)),
|
|
1896
|
+
`Failed to parse 'Two1' from JSON`,
|
|
1897
|
+
);
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
/** @internal */
|
|
1901
|
+
export const Content2$inboundSchema: z.ZodType<
|
|
1902
|
+
Content2,
|
|
1903
|
+
z.ZodTypeDef,
|
|
1904
|
+
unknown
|
|
1905
|
+
> = z.union([
|
|
1906
|
+
z.lazy(() => Two1$inboundSchema),
|
|
1907
|
+
z.lazy(() => Two2$inboundSchema),
|
|
1908
|
+
z.lazy(() => Two3$inboundSchema),
|
|
1909
|
+
]);
|
|
1910
|
+
|
|
1911
|
+
/** @internal */
|
|
1912
|
+
export type Content2$Outbound = Two1$Outbound | Two2$Outbound | Two3$Outbound;
|
|
1913
|
+
|
|
1914
|
+
/** @internal */
|
|
1915
|
+
export const Content2$outboundSchema: z.ZodType<
|
|
1916
|
+
Content2$Outbound,
|
|
1917
|
+
z.ZodTypeDef,
|
|
1918
|
+
Content2
|
|
1919
|
+
> = z.union([
|
|
1920
|
+
z.lazy(() => Two1$outboundSchema),
|
|
1921
|
+
z.lazy(() => Two2$outboundSchema),
|
|
1922
|
+
z.lazy(() => Two3$outboundSchema),
|
|
1923
|
+
]);
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* @internal
|
|
1927
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1928
|
+
*/
|
|
1929
|
+
export namespace Content2$ {
|
|
1930
|
+
/** @deprecated use `Content2$inboundSchema` instead. */
|
|
1931
|
+
export const inboundSchema = Content2$inboundSchema;
|
|
1932
|
+
/** @deprecated use `Content2$outboundSchema` instead. */
|
|
1933
|
+
export const outboundSchema = Content2$outboundSchema;
|
|
1934
|
+
/** @deprecated use `Content2$Outbound` instead. */
|
|
1935
|
+
export type Outbound = Content2$Outbound;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
export function content2ToJSON(content2: Content2): string {
|
|
1939
|
+
return JSON.stringify(Content2$outboundSchema.parse(content2));
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
export function content2FromJSON(
|
|
1943
|
+
jsonString: string,
|
|
1944
|
+
): SafeParseResult<Content2, SDKValidationError> {
|
|
1945
|
+
return safeParse(
|
|
1946
|
+
jsonString,
|
|
1947
|
+
(x) => Content2$inboundSchema.parse(JSON.parse(x)),
|
|
1948
|
+
`Failed to parse 'Content2' from JSON`,
|
|
1949
|
+
);
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
/** @internal */
|
|
1953
|
+
export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
|
|
1954
|
+
z.union([
|
|
1955
|
+
z.string(),
|
|
1956
|
+
z.array(z.union([
|
|
1957
|
+
z.lazy(() => Two1$inboundSchema),
|
|
1958
|
+
z.lazy(() => Two2$inboundSchema),
|
|
1959
|
+
z.lazy(() => Two3$inboundSchema),
|
|
1960
|
+
])),
|
|
1961
|
+
]);
|
|
1962
|
+
|
|
1963
|
+
/** @internal */
|
|
1964
|
+
export type Content$Outbound =
|
|
1965
|
+
| string
|
|
1966
|
+
| Array<Two1$Outbound | Two2$Outbound | Two3$Outbound>;
|
|
1967
|
+
|
|
1968
|
+
/** @internal */
|
|
1969
|
+
export const Content$outboundSchema: z.ZodType<
|
|
1970
|
+
Content$Outbound,
|
|
1971
|
+
z.ZodTypeDef,
|
|
1972
|
+
Content
|
|
1973
|
+
> = z.union([
|
|
1974
|
+
z.string(),
|
|
1975
|
+
z.array(z.union([
|
|
1976
|
+
z.lazy(() => Two1$outboundSchema),
|
|
1977
|
+
z.lazy(() => Two2$outboundSchema),
|
|
1978
|
+
z.lazy(() => Two3$outboundSchema),
|
|
1979
|
+
])),
|
|
1980
|
+
]);
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* @internal
|
|
1984
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1985
|
+
*/
|
|
1986
|
+
export namespace Content$ {
|
|
1987
|
+
/** @deprecated use `Content$inboundSchema` instead. */
|
|
1988
|
+
export const inboundSchema = Content$inboundSchema;
|
|
1989
|
+
/** @deprecated use `Content$outboundSchema` instead. */
|
|
1990
|
+
export const outboundSchema = Content$outboundSchema;
|
|
1991
|
+
/** @deprecated use `Content$Outbound` instead. */
|
|
1992
|
+
export type Outbound = Content$Outbound;
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
export function contentToJSON(content: Content): string {
|
|
1996
|
+
return JSON.stringify(Content$outboundSchema.parse(content));
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
export function contentFromJSON(
|
|
2000
|
+
jsonString: string,
|
|
2001
|
+
): SafeParseResult<Content, SDKValidationError> {
|
|
2002
|
+
return safeParse(
|
|
2003
|
+
jsonString,
|
|
2004
|
+
(x) => Content$inboundSchema.parse(JSON.parse(x)),
|
|
2005
|
+
`Failed to parse 'Content' from JSON`,
|
|
2006
|
+
);
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
/** @internal */
|
|
2010
|
+
export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
|
|
2011
|
+
.object({
|
|
2012
|
+
role: DeploymentsPrefixMessagesRole$inboundSchema,
|
|
2013
|
+
name: z.string().optional(),
|
|
2014
|
+
content: z.union([
|
|
2015
|
+
z.string(),
|
|
2016
|
+
z.array(z.union([
|
|
2017
|
+
z.lazy(() => Two1$inboundSchema),
|
|
2018
|
+
z.lazy(() => Two2$inboundSchema),
|
|
2019
|
+
z.lazy(() => Two3$inboundSchema),
|
|
2020
|
+
])),
|
|
2021
|
+
]),
|
|
2022
|
+
});
|
|
2023
|
+
|
|
2024
|
+
/** @internal */
|
|
2025
|
+
export type Three$Outbound = {
|
|
2026
|
+
role: string;
|
|
2027
|
+
name?: string | undefined;
|
|
2028
|
+
content: string | Array<Two1$Outbound | Two2$Outbound | Two3$Outbound>;
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
/** @internal */
|
|
2032
|
+
export const Three$outboundSchema: z.ZodType<
|
|
2033
|
+
Three$Outbound,
|
|
2034
|
+
z.ZodTypeDef,
|
|
2035
|
+
Three
|
|
2036
|
+
> = z.object({
|
|
2037
|
+
role: DeploymentsPrefixMessagesRole$outboundSchema,
|
|
2038
|
+
name: z.string().optional(),
|
|
2039
|
+
content: z.union([
|
|
2040
|
+
z.string(),
|
|
2041
|
+
z.array(z.union([
|
|
2042
|
+
z.lazy(() => Two1$outboundSchema),
|
|
2043
|
+
z.lazy(() => Two2$outboundSchema),
|
|
2044
|
+
z.lazy(() => Two3$outboundSchema),
|
|
2045
|
+
])),
|
|
2046
|
+
]),
|
|
2047
|
+
});
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* @internal
|
|
2051
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2052
|
+
*/
|
|
2053
|
+
export namespace Three$ {
|
|
2054
|
+
/** @deprecated use `Three$inboundSchema` instead. */
|
|
2055
|
+
export const inboundSchema = Three$inboundSchema;
|
|
2056
|
+
/** @deprecated use `Three$outboundSchema` instead. */
|
|
2057
|
+
export const outboundSchema = Three$outboundSchema;
|
|
2058
|
+
/** @deprecated use `Three$Outbound` instead. */
|
|
2059
|
+
export type Outbound = Three$Outbound;
|
|
2060
|
+
}
|
|
2061
|
+
|
|
2062
|
+
export function threeToJSON(three: Three): string {
|
|
2063
|
+
return JSON.stringify(Three$outboundSchema.parse(three));
|
|
2064
|
+
}
|
|
2065
|
+
|
|
2066
|
+
export function threeFromJSON(
|
|
2067
|
+
jsonString: string,
|
|
2068
|
+
): SafeParseResult<Three, SDKValidationError> {
|
|
2069
|
+
return safeParse(
|
|
2070
|
+
jsonString,
|
|
2071
|
+
(x) => Three$inboundSchema.parse(JSON.parse(x)),
|
|
2072
|
+
`Failed to parse 'Three' from JSON`,
|
|
2073
|
+
);
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
/** @internal */
|
|
2077
|
+
export const PrefixMessagesRole$inboundSchema: z.ZodNativeEnum<
|
|
2078
|
+
typeof PrefixMessagesRole
|
|
2079
|
+
> = z.nativeEnum(PrefixMessagesRole);
|
|
2080
|
+
|
|
2081
|
+
/** @internal */
|
|
2082
|
+
export const PrefixMessagesRole$outboundSchema: z.ZodNativeEnum<
|
|
2083
|
+
typeof PrefixMessagesRole
|
|
2084
|
+
> = PrefixMessagesRole$inboundSchema;
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
* @internal
|
|
2088
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2089
|
+
*/
|
|
2090
|
+
export namespace PrefixMessagesRole$ {
|
|
2091
|
+
/** @deprecated use `PrefixMessagesRole$inboundSchema` instead. */
|
|
2092
|
+
export const inboundSchema = PrefixMessagesRole$inboundSchema;
|
|
2093
|
+
/** @deprecated use `PrefixMessagesRole$outboundSchema` instead. */
|
|
2094
|
+
export const outboundSchema = PrefixMessagesRole$outboundSchema;
|
|
2095
|
+
}
|
|
2096
|
+
|
|
2097
|
+
/** @internal */
|
|
2098
|
+
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
2099
|
+
.object({
|
|
2100
|
+
role: PrefixMessagesRole$inboundSchema,
|
|
2101
|
+
content: z.string(),
|
|
2102
|
+
name: z.string().optional(),
|
|
2103
|
+
});
|
|
2104
|
+
|
|
2105
|
+
/** @internal */
|
|
2106
|
+
export type Two$Outbound = {
|
|
2107
|
+
role: string;
|
|
2108
|
+
content: string;
|
|
2109
|
+
name?: string | undefined;
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2112
|
+
/** @internal */
|
|
2113
|
+
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
2114
|
+
.object({
|
|
2115
|
+
role: PrefixMessagesRole$outboundSchema,
|
|
2116
|
+
content: z.string(),
|
|
2117
|
+
name: z.string().optional(),
|
|
2118
|
+
});
|
|
2119
|
+
|
|
2120
|
+
/**
|
|
2121
|
+
* @internal
|
|
2122
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2123
|
+
*/
|
|
2124
|
+
export namespace Two$ {
|
|
2125
|
+
/** @deprecated use `Two$inboundSchema` instead. */
|
|
2126
|
+
export const inboundSchema = Two$inboundSchema;
|
|
2127
|
+
/** @deprecated use `Two$outboundSchema` instead. */
|
|
2128
|
+
export const outboundSchema = Two$outboundSchema;
|
|
2129
|
+
/** @deprecated use `Two$Outbound` instead. */
|
|
2130
|
+
export type Outbound = Two$Outbound;
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
export function twoToJSON(two: Two): string {
|
|
2134
|
+
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
export function twoFromJSON(
|
|
2138
|
+
jsonString: string,
|
|
2139
|
+
): SafeParseResult<Two, SDKValidationError> {
|
|
2140
|
+
return safeParse(
|
|
2141
|
+
jsonString,
|
|
2142
|
+
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
2143
|
+
`Failed to parse 'Two' from JSON`,
|
|
2144
|
+
);
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
/** @internal */
|
|
2148
|
+
export const Role$inboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(
|
|
2149
|
+
Role,
|
|
2150
|
+
);
|
|
2151
|
+
|
|
2152
|
+
/** @internal */
|
|
2153
|
+
export const Role$outboundSchema: z.ZodNativeEnum<typeof Role> =
|
|
2154
|
+
Role$inboundSchema;
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* @internal
|
|
2158
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2159
|
+
*/
|
|
2160
|
+
export namespace Role$ {
|
|
2161
|
+
/** @deprecated use `Role$inboundSchema` instead. */
|
|
2162
|
+
export const inboundSchema = Role$inboundSchema;
|
|
2163
|
+
/** @deprecated use `Role$outboundSchema` instead. */
|
|
2164
|
+
export const outboundSchema = Role$outboundSchema;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
/** @internal */
|
|
2168
|
+
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
2169
|
+
.object({
|
|
2170
|
+
role: Role$inboundSchema,
|
|
2171
|
+
content: z.string(),
|
|
2172
|
+
name: z.string().optional(),
|
|
2173
|
+
});
|
|
2174
|
+
|
|
2175
|
+
/** @internal */
|
|
2176
|
+
export type One$Outbound = {
|
|
2177
|
+
role: string;
|
|
2178
|
+
content: string;
|
|
2179
|
+
name?: string | undefined;
|
|
2180
|
+
};
|
|
2181
|
+
|
|
2182
|
+
/** @internal */
|
|
2183
|
+
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
2184
|
+
.object({
|
|
2185
|
+
role: Role$outboundSchema,
|
|
2186
|
+
content: z.string(),
|
|
2187
|
+
name: z.string().optional(),
|
|
2188
|
+
});
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* @internal
|
|
2192
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2193
|
+
*/
|
|
2194
|
+
export namespace One$ {
|
|
2195
|
+
/** @deprecated use `One$inboundSchema` instead. */
|
|
2196
|
+
export const inboundSchema = One$inboundSchema;
|
|
2197
|
+
/** @deprecated use `One$outboundSchema` instead. */
|
|
2198
|
+
export const outboundSchema = One$outboundSchema;
|
|
2199
|
+
/** @deprecated use `One$Outbound` instead. */
|
|
2200
|
+
export type Outbound = One$Outbound;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
export function oneToJSON(one: One): string {
|
|
2204
|
+
return JSON.stringify(One$outboundSchema.parse(one));
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
export function oneFromJSON(
|
|
2208
|
+
jsonString: string,
|
|
2209
|
+
): SafeParseResult<One, SDKValidationError> {
|
|
2210
|
+
return safeParse(
|
|
2211
|
+
jsonString,
|
|
2212
|
+
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
2213
|
+
`Failed to parse 'One' from JSON`,
|
|
2214
|
+
);
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
/** @internal */
|
|
2218
|
+
export const PrefixMessages$inboundSchema: z.ZodType<
|
|
2219
|
+
PrefixMessages,
|
|
2220
|
+
z.ZodTypeDef,
|
|
2221
|
+
unknown
|
|
2222
|
+
> = z.union([
|
|
2223
|
+
z.lazy(() => One$inboundSchema),
|
|
2224
|
+
z.lazy(() => Two$inboundSchema),
|
|
2225
|
+
z.lazy(() => Three$inboundSchema),
|
|
2226
|
+
z.lazy(() => Five$inboundSchema),
|
|
2227
|
+
z.lazy(() => Four$inboundSchema),
|
|
2228
|
+
]);
|
|
2229
|
+
|
|
2230
|
+
/** @internal */
|
|
2231
|
+
export type PrefixMessages$Outbound =
|
|
2232
|
+
| One$Outbound
|
|
2233
|
+
| Two$Outbound
|
|
2234
|
+
| Three$Outbound
|
|
2235
|
+
| Five$Outbound
|
|
2236
|
+
| Four$Outbound;
|
|
2237
|
+
|
|
2238
|
+
/** @internal */
|
|
2239
|
+
export const PrefixMessages$outboundSchema: z.ZodType<
|
|
2240
|
+
PrefixMessages$Outbound,
|
|
2241
|
+
z.ZodTypeDef,
|
|
2242
|
+
PrefixMessages
|
|
2243
|
+
> = z.union([
|
|
2244
|
+
z.lazy(() => One$outboundSchema),
|
|
2245
|
+
z.lazy(() => Two$outboundSchema),
|
|
2246
|
+
z.lazy(() => Three$outboundSchema),
|
|
2247
|
+
z.lazy(() => Five$outboundSchema),
|
|
2248
|
+
z.lazy(() => Four$outboundSchema),
|
|
2249
|
+
]);
|
|
2250
|
+
|
|
2251
|
+
/**
|
|
2252
|
+
* @internal
|
|
2253
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2254
|
+
*/
|
|
2255
|
+
export namespace PrefixMessages$ {
|
|
2256
|
+
/** @deprecated use `PrefixMessages$inboundSchema` instead. */
|
|
2257
|
+
export const inboundSchema = PrefixMessages$inboundSchema;
|
|
2258
|
+
/** @deprecated use `PrefixMessages$outboundSchema` instead. */
|
|
2259
|
+
export const outboundSchema = PrefixMessages$outboundSchema;
|
|
2260
|
+
/** @deprecated use `PrefixMessages$Outbound` instead. */
|
|
2261
|
+
export type Outbound = PrefixMessages$Outbound;
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
|
|
2265
|
+
return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
|
|
2266
|
+
}
|
|
2267
|
+
|
|
2268
|
+
export function prefixMessagesFromJSON(
|
|
2269
|
+
jsonString: string,
|
|
2270
|
+
): SafeParseResult<PrefixMessages, SDKValidationError> {
|
|
2271
|
+
return safeParse(
|
|
2272
|
+
jsonString,
|
|
2273
|
+
(x) => PrefixMessages$inboundSchema.parse(JSON.parse(x)),
|
|
2274
|
+
`Failed to parse 'PrefixMessages' from JSON`,
|
|
2275
|
+
);
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2278
|
+
/** @internal */
|
|
2279
|
+
export const DeploymentsMessages5Role$inboundSchema: z.ZodNativeEnum<
|
|
2280
|
+
typeof DeploymentsMessages5Role
|
|
2281
|
+
> = z.nativeEnum(DeploymentsMessages5Role);
|
|
2282
|
+
|
|
2283
|
+
/** @internal */
|
|
2284
|
+
export const DeploymentsMessages5Role$outboundSchema: z.ZodNativeEnum<
|
|
2285
|
+
typeof DeploymentsMessages5Role
|
|
2286
|
+
> = DeploymentsMessages5Role$inboundSchema;
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* @internal
|
|
2290
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2291
|
+
*/
|
|
2292
|
+
export namespace DeploymentsMessages5Role$ {
|
|
2293
|
+
/** @deprecated use `DeploymentsMessages5Role$inboundSchema` instead. */
|
|
2294
|
+
export const inboundSchema = DeploymentsMessages5Role$inboundSchema;
|
|
2295
|
+
/** @deprecated use `DeploymentsMessages5Role$outboundSchema` instead. */
|
|
2296
|
+
export const outboundSchema = DeploymentsMessages5Role$outboundSchema;
|
|
2297
|
+
}
|
|
2298
|
+
|
|
2299
|
+
/** @internal */
|
|
2300
|
+
export const DeploymentsMessages5Content$inboundSchema: z.ZodType<
|
|
2301
|
+
DeploymentsMessages5Content,
|
|
2302
|
+
z.ZodTypeDef,
|
|
2303
|
+
unknown
|
|
2304
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2305
|
+
|
|
2306
|
+
/** @internal */
|
|
2307
|
+
export type DeploymentsMessages5Content$Outbound = string | Array<string>;
|
|
2308
|
+
|
|
2309
|
+
/** @internal */
|
|
2310
|
+
export const DeploymentsMessages5Content$outboundSchema: z.ZodType<
|
|
2311
|
+
DeploymentsMessages5Content$Outbound,
|
|
2312
|
+
z.ZodTypeDef,
|
|
2313
|
+
DeploymentsMessages5Content
|
|
2314
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2315
|
+
|
|
2316
|
+
/**
|
|
2317
|
+
* @internal
|
|
2318
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2319
|
+
*/
|
|
2320
|
+
export namespace DeploymentsMessages5Content$ {
|
|
2321
|
+
/** @deprecated use `DeploymentsMessages5Content$inboundSchema` instead. */
|
|
2322
|
+
export const inboundSchema = DeploymentsMessages5Content$inboundSchema;
|
|
2323
|
+
/** @deprecated use `DeploymentsMessages5Content$outboundSchema` instead. */
|
|
2324
|
+
export const outboundSchema = DeploymentsMessages5Content$outboundSchema;
|
|
2325
|
+
/** @deprecated use `DeploymentsMessages5Content$Outbound` instead. */
|
|
2326
|
+
export type Outbound = DeploymentsMessages5Content$Outbound;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
export function deploymentsMessages5ContentToJSON(
|
|
2330
|
+
deploymentsMessages5Content: DeploymentsMessages5Content,
|
|
2331
|
+
): string {
|
|
2332
|
+
return JSON.stringify(
|
|
2333
|
+
DeploymentsMessages5Content$outboundSchema.parse(
|
|
2334
|
+
deploymentsMessages5Content,
|
|
2335
|
+
),
|
|
2336
|
+
);
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
export function deploymentsMessages5ContentFromJSON(
|
|
2340
|
+
jsonString: string,
|
|
2341
|
+
): SafeParseResult<DeploymentsMessages5Content, SDKValidationError> {
|
|
2342
|
+
return safeParse(
|
|
2343
|
+
jsonString,
|
|
2344
|
+
(x) => DeploymentsMessages5Content$inboundSchema.parse(JSON.parse(x)),
|
|
2345
|
+
`Failed to parse 'DeploymentsMessages5Content' from JSON`,
|
|
2346
|
+
);
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
/** @internal */
|
|
2350
|
+
export const Messages5$inboundSchema: z.ZodType<
|
|
2351
|
+
Messages5,
|
|
2352
|
+
z.ZodTypeDef,
|
|
2353
|
+
unknown
|
|
2354
|
+
> = z.object({
|
|
2355
|
+
role: DeploymentsMessages5Role$inboundSchema,
|
|
2356
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
2357
|
+
tool_call_id: z.string(),
|
|
2358
|
+
}).transform((v) => {
|
|
2359
|
+
return remap$(v, {
|
|
2360
|
+
"tool_call_id": "toolCallId",
|
|
2361
|
+
});
|
|
2362
|
+
});
|
|
2363
|
+
|
|
2364
|
+
/** @internal */
|
|
2365
|
+
export type Messages5$Outbound = {
|
|
2366
|
+
role: string;
|
|
2367
|
+
content: string | Array<string>;
|
|
2368
|
+
tool_call_id: string;
|
|
2369
|
+
};
|
|
2370
|
+
|
|
2371
|
+
/** @internal */
|
|
2372
|
+
export const Messages5$outboundSchema: z.ZodType<
|
|
2373
|
+
Messages5$Outbound,
|
|
2374
|
+
z.ZodTypeDef,
|
|
2375
|
+
Messages5
|
|
2376
|
+
> = z.object({
|
|
2377
|
+
role: DeploymentsMessages5Role$outboundSchema,
|
|
2378
|
+
content: z.union([z.string(), z.array(z.string())]),
|
|
2379
|
+
toolCallId: z.string(),
|
|
2380
|
+
}).transform((v) => {
|
|
2381
|
+
return remap$(v, {
|
|
2382
|
+
toolCallId: "tool_call_id",
|
|
2383
|
+
});
|
|
2384
|
+
});
|
|
2385
|
+
|
|
2386
|
+
/**
|
|
2387
|
+
* @internal
|
|
2388
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2389
|
+
*/
|
|
2390
|
+
export namespace Messages5$ {
|
|
2391
|
+
/** @deprecated use `Messages5$inboundSchema` instead. */
|
|
2392
|
+
export const inboundSchema = Messages5$inboundSchema;
|
|
2393
|
+
/** @deprecated use `Messages5$outboundSchema` instead. */
|
|
2394
|
+
export const outboundSchema = Messages5$outboundSchema;
|
|
2395
|
+
/** @deprecated use `Messages5$Outbound` instead. */
|
|
2396
|
+
export type Outbound = Messages5$Outbound;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
export function messages5ToJSON(messages5: Messages5): string {
|
|
2400
|
+
return JSON.stringify(Messages5$outboundSchema.parse(messages5));
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
export function messages5FromJSON(
|
|
2404
|
+
jsonString: string,
|
|
2405
|
+
): SafeParseResult<Messages5, SDKValidationError> {
|
|
2406
|
+
return safeParse(
|
|
2407
|
+
jsonString,
|
|
2408
|
+
(x) => Messages5$inboundSchema.parse(JSON.parse(x)),
|
|
2409
|
+
`Failed to parse 'Messages5' from JSON`,
|
|
2410
|
+
);
|
|
2411
|
+
}
|
|
2412
|
+
|
|
2413
|
+
/** @internal */
|
|
2414
|
+
export const Deployments2Messages4ContentType$inboundSchema: z.ZodNativeEnum<
|
|
2415
|
+
typeof Deployments2Messages4ContentType
|
|
2416
|
+
> = z.nativeEnum(Deployments2Messages4ContentType);
|
|
2417
|
+
|
|
2418
|
+
/** @internal */
|
|
2419
|
+
export const Deployments2Messages4ContentType$outboundSchema: z.ZodNativeEnum<
|
|
2420
|
+
typeof Deployments2Messages4ContentType
|
|
2421
|
+
> = Deployments2Messages4ContentType$inboundSchema;
|
|
2422
|
+
|
|
2423
|
+
/**
|
|
2424
|
+
* @internal
|
|
2425
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2426
|
+
*/
|
|
2427
|
+
export namespace Deployments2Messages4ContentType$ {
|
|
2428
|
+
/** @deprecated use `Deployments2Messages4ContentType$inboundSchema` instead. */
|
|
2429
|
+
export const inboundSchema = Deployments2Messages4ContentType$inboundSchema;
|
|
2430
|
+
/** @deprecated use `Deployments2Messages4ContentType$outboundSchema` instead. */
|
|
2431
|
+
export const outboundSchema = Deployments2Messages4ContentType$outboundSchema;
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
/** @internal */
|
|
2435
|
+
export const Deployments2Messages42$inboundSchema: z.ZodType<
|
|
2436
|
+
Deployments2Messages42,
|
|
2437
|
+
z.ZodTypeDef,
|
|
2438
|
+
unknown
|
|
2439
|
+
> = z.object({
|
|
2440
|
+
type: Deployments2Messages4ContentType$inboundSchema,
|
|
2441
|
+
refusal: z.string(),
|
|
2442
|
+
});
|
|
2443
|
+
|
|
2444
|
+
/** @internal */
|
|
2445
|
+
export type Deployments2Messages42$Outbound = {
|
|
2446
|
+
type: string;
|
|
2447
|
+
refusal: string;
|
|
2448
|
+
};
|
|
2449
|
+
|
|
2450
|
+
/** @internal */
|
|
2451
|
+
export const Deployments2Messages42$outboundSchema: z.ZodType<
|
|
2452
|
+
Deployments2Messages42$Outbound,
|
|
2453
|
+
z.ZodTypeDef,
|
|
2454
|
+
Deployments2Messages42
|
|
2455
|
+
> = z.object({
|
|
2456
|
+
type: Deployments2Messages4ContentType$outboundSchema,
|
|
2457
|
+
refusal: z.string(),
|
|
2458
|
+
});
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
* @internal
|
|
2462
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2463
|
+
*/
|
|
2464
|
+
export namespace Deployments2Messages42$ {
|
|
2465
|
+
/** @deprecated use `Deployments2Messages42$inboundSchema` instead. */
|
|
2466
|
+
export const inboundSchema = Deployments2Messages42$inboundSchema;
|
|
2467
|
+
/** @deprecated use `Deployments2Messages42$outboundSchema` instead. */
|
|
2468
|
+
export const outboundSchema = Deployments2Messages42$outboundSchema;
|
|
2469
|
+
/** @deprecated use `Deployments2Messages42$Outbound` instead. */
|
|
2470
|
+
export type Outbound = Deployments2Messages42$Outbound;
|
|
2471
|
+
}
|
|
2472
|
+
|
|
2473
|
+
export function deployments2Messages42ToJSON(
|
|
2474
|
+
deployments2Messages42: Deployments2Messages42,
|
|
2475
|
+
): string {
|
|
2476
|
+
return JSON.stringify(
|
|
2477
|
+
Deployments2Messages42$outboundSchema.parse(deployments2Messages42),
|
|
2478
|
+
);
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
export function deployments2Messages42FromJSON(
|
|
2482
|
+
jsonString: string,
|
|
2483
|
+
): SafeParseResult<Deployments2Messages42, SDKValidationError> {
|
|
2484
|
+
return safeParse(
|
|
2485
|
+
jsonString,
|
|
2486
|
+
(x) => Deployments2Messages42$inboundSchema.parse(JSON.parse(x)),
|
|
2487
|
+
`Failed to parse 'Deployments2Messages42' from JSON`,
|
|
2488
|
+
);
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
/** @internal */
|
|
2492
|
+
export const Deployments2Messages4Type$inboundSchema: z.ZodNativeEnum<
|
|
2493
|
+
typeof Deployments2Messages4Type
|
|
2494
|
+
> = z.nativeEnum(Deployments2Messages4Type);
|
|
2495
|
+
|
|
2496
|
+
/** @internal */
|
|
2497
|
+
export const Deployments2Messages4Type$outboundSchema: z.ZodNativeEnum<
|
|
2498
|
+
typeof Deployments2Messages4Type
|
|
2499
|
+
> = Deployments2Messages4Type$inboundSchema;
|
|
2500
|
+
|
|
2501
|
+
/**
|
|
2502
|
+
* @internal
|
|
2503
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2504
|
+
*/
|
|
2505
|
+
export namespace Deployments2Messages4Type$ {
|
|
2506
|
+
/** @deprecated use `Deployments2Messages4Type$inboundSchema` instead. */
|
|
2507
|
+
export const inboundSchema = Deployments2Messages4Type$inboundSchema;
|
|
2508
|
+
/** @deprecated use `Deployments2Messages4Type$outboundSchema` instead. */
|
|
2509
|
+
export const outboundSchema = Deployments2Messages4Type$outboundSchema;
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
/** @internal */
|
|
2513
|
+
export const Deployments2Messages41$inboundSchema: z.ZodType<
|
|
2514
|
+
Deployments2Messages41,
|
|
2515
|
+
z.ZodTypeDef,
|
|
2516
|
+
unknown
|
|
2517
|
+
> = z.object({
|
|
2518
|
+
type: Deployments2Messages4Type$inboundSchema,
|
|
2519
|
+
text: z.string(),
|
|
2520
|
+
});
|
|
2521
|
+
|
|
2522
|
+
/** @internal */
|
|
2523
|
+
export type Deployments2Messages41$Outbound = {
|
|
2524
|
+
type: string;
|
|
2525
|
+
text: string;
|
|
2526
|
+
};
|
|
2527
|
+
|
|
2528
|
+
/** @internal */
|
|
2529
|
+
export const Deployments2Messages41$outboundSchema: z.ZodType<
|
|
2530
|
+
Deployments2Messages41$Outbound,
|
|
2531
|
+
z.ZodTypeDef,
|
|
2532
|
+
Deployments2Messages41
|
|
2533
|
+
> = z.object({
|
|
2534
|
+
type: Deployments2Messages4Type$outboundSchema,
|
|
2535
|
+
text: z.string(),
|
|
2536
|
+
});
|
|
2537
|
+
|
|
2538
|
+
/**
|
|
2539
|
+
* @internal
|
|
2540
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2541
|
+
*/
|
|
2542
|
+
export namespace Deployments2Messages41$ {
|
|
2543
|
+
/** @deprecated use `Deployments2Messages41$inboundSchema` instead. */
|
|
2544
|
+
export const inboundSchema = Deployments2Messages41$inboundSchema;
|
|
2545
|
+
/** @deprecated use `Deployments2Messages41$outboundSchema` instead. */
|
|
2546
|
+
export const outboundSchema = Deployments2Messages41$outboundSchema;
|
|
2547
|
+
/** @deprecated use `Deployments2Messages41$Outbound` instead. */
|
|
2548
|
+
export type Outbound = Deployments2Messages41$Outbound;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
export function deployments2Messages41ToJSON(
|
|
2552
|
+
deployments2Messages41: Deployments2Messages41,
|
|
2553
|
+
): string {
|
|
2554
|
+
return JSON.stringify(
|
|
2555
|
+
Deployments2Messages41$outboundSchema.parse(deployments2Messages41),
|
|
2556
|
+
);
|
|
2557
|
+
}
|
|
2558
|
+
|
|
2559
|
+
export function deployments2Messages41FromJSON(
|
|
2560
|
+
jsonString: string,
|
|
2561
|
+
): SafeParseResult<Deployments2Messages41, SDKValidationError> {
|
|
2562
|
+
return safeParse(
|
|
2563
|
+
jsonString,
|
|
2564
|
+
(x) => Deployments2Messages41$inboundSchema.parse(JSON.parse(x)),
|
|
2565
|
+
`Failed to parse 'Deployments2Messages41' from JSON`,
|
|
2566
|
+
);
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
/** @internal */
|
|
2570
|
+
export const DeploymentsContentMessages42$inboundSchema: z.ZodType<
|
|
2571
|
+
DeploymentsContentMessages42,
|
|
2572
|
+
z.ZodTypeDef,
|
|
2573
|
+
unknown
|
|
2574
|
+
> = z.union([
|
|
2575
|
+
z.lazy(() => Deployments2Messages41$inboundSchema),
|
|
2576
|
+
z.lazy(() => Deployments2Messages42$inboundSchema),
|
|
2577
|
+
]);
|
|
2578
|
+
|
|
2579
|
+
/** @internal */
|
|
2580
|
+
export type DeploymentsContentMessages42$Outbound =
|
|
2581
|
+
| Deployments2Messages41$Outbound
|
|
2582
|
+
| Deployments2Messages42$Outbound;
|
|
2583
|
+
|
|
2584
|
+
/** @internal */
|
|
2585
|
+
export const DeploymentsContentMessages42$outboundSchema: z.ZodType<
|
|
2586
|
+
DeploymentsContentMessages42$Outbound,
|
|
2587
|
+
z.ZodTypeDef,
|
|
2588
|
+
DeploymentsContentMessages42
|
|
2589
|
+
> = z.union([
|
|
2590
|
+
z.lazy(() => Deployments2Messages41$outboundSchema),
|
|
2591
|
+
z.lazy(() => Deployments2Messages42$outboundSchema),
|
|
2592
|
+
]);
|
|
2593
|
+
|
|
2594
|
+
/**
|
|
2595
|
+
* @internal
|
|
2596
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2597
|
+
*/
|
|
2598
|
+
export namespace DeploymentsContentMessages42$ {
|
|
2599
|
+
/** @deprecated use `DeploymentsContentMessages42$inboundSchema` instead. */
|
|
2600
|
+
export const inboundSchema = DeploymentsContentMessages42$inboundSchema;
|
|
2601
|
+
/** @deprecated use `DeploymentsContentMessages42$outboundSchema` instead. */
|
|
2602
|
+
export const outboundSchema = DeploymentsContentMessages42$outboundSchema;
|
|
2603
|
+
/** @deprecated use `DeploymentsContentMessages42$Outbound` instead. */
|
|
2604
|
+
export type Outbound = DeploymentsContentMessages42$Outbound;
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
export function deploymentsContentMessages42ToJSON(
|
|
2608
|
+
deploymentsContentMessages42: DeploymentsContentMessages42,
|
|
2609
|
+
): string {
|
|
2610
|
+
return JSON.stringify(
|
|
2611
|
+
DeploymentsContentMessages42$outboundSchema.parse(
|
|
2612
|
+
deploymentsContentMessages42,
|
|
2613
|
+
),
|
|
2614
|
+
);
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
export function deploymentsContentMessages42FromJSON(
|
|
2618
|
+
jsonString: string,
|
|
2619
|
+
): SafeParseResult<DeploymentsContentMessages42, SDKValidationError> {
|
|
2620
|
+
return safeParse(
|
|
2621
|
+
jsonString,
|
|
2622
|
+
(x) => DeploymentsContentMessages42$inboundSchema.parse(JSON.parse(x)),
|
|
2623
|
+
`Failed to parse 'DeploymentsContentMessages42' from JSON`,
|
|
2624
|
+
);
|
|
363
2625
|
}
|
|
364
2626
|
|
|
365
2627
|
/** @internal */
|
|
366
|
-
export const
|
|
367
|
-
|
|
2628
|
+
export const DeploymentsMessagesContent$inboundSchema: z.ZodType<
|
|
2629
|
+
DeploymentsMessagesContent,
|
|
368
2630
|
z.ZodTypeDef,
|
|
369
2631
|
unknown
|
|
370
|
-
> = z.
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
2632
|
+
> = z.union([
|
|
2633
|
+
z.string(),
|
|
2634
|
+
z.array(z.union([
|
|
2635
|
+
z.lazy(() => Deployments2Messages41$inboundSchema),
|
|
2636
|
+
z.lazy(() => Deployments2Messages42$inboundSchema),
|
|
2637
|
+
])),
|
|
2638
|
+
]);
|
|
374
2639
|
|
|
375
2640
|
/** @internal */
|
|
376
|
-
export type
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
};
|
|
2641
|
+
export type DeploymentsMessagesContent$Outbound =
|
|
2642
|
+
| string
|
|
2643
|
+
| Array<Deployments2Messages41$Outbound | Deployments2Messages42$Outbound>;
|
|
380
2644
|
|
|
381
2645
|
/** @internal */
|
|
382
|
-
export const
|
|
383
|
-
|
|
2646
|
+
export const DeploymentsMessagesContent$outboundSchema: z.ZodType<
|
|
2647
|
+
DeploymentsMessagesContent$Outbound,
|
|
384
2648
|
z.ZodTypeDef,
|
|
385
|
-
|
|
386
|
-
> = z.
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
2649
|
+
DeploymentsMessagesContent
|
|
2650
|
+
> = z.union([
|
|
2651
|
+
z.string(),
|
|
2652
|
+
z.array(z.union([
|
|
2653
|
+
z.lazy(() => Deployments2Messages41$outboundSchema),
|
|
2654
|
+
z.lazy(() => Deployments2Messages42$outboundSchema),
|
|
2655
|
+
])),
|
|
2656
|
+
]);
|
|
390
2657
|
|
|
391
2658
|
/**
|
|
392
2659
|
* @internal
|
|
393
2660
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
394
2661
|
*/
|
|
395
|
-
export namespace
|
|
396
|
-
/** @deprecated use `
|
|
397
|
-
export const inboundSchema =
|
|
398
|
-
/** @deprecated use `
|
|
399
|
-
export const outboundSchema =
|
|
400
|
-
/** @deprecated use `
|
|
401
|
-
export type Outbound =
|
|
2662
|
+
export namespace DeploymentsMessagesContent$ {
|
|
2663
|
+
/** @deprecated use `DeploymentsMessagesContent$inboundSchema` instead. */
|
|
2664
|
+
export const inboundSchema = DeploymentsMessagesContent$inboundSchema;
|
|
2665
|
+
/** @deprecated use `DeploymentsMessagesContent$outboundSchema` instead. */
|
|
2666
|
+
export const outboundSchema = DeploymentsMessagesContent$outboundSchema;
|
|
2667
|
+
/** @deprecated use `DeploymentsMessagesContent$Outbound` instead. */
|
|
2668
|
+
export type Outbound = DeploymentsMessagesContent$Outbound;
|
|
402
2669
|
}
|
|
403
2670
|
|
|
404
|
-
export function
|
|
405
|
-
|
|
2671
|
+
export function deploymentsMessagesContentToJSON(
|
|
2672
|
+
deploymentsMessagesContent: DeploymentsMessagesContent,
|
|
2673
|
+
): string {
|
|
2674
|
+
return JSON.stringify(
|
|
2675
|
+
DeploymentsMessagesContent$outboundSchema.parse(deploymentsMessagesContent),
|
|
2676
|
+
);
|
|
406
2677
|
}
|
|
407
2678
|
|
|
408
|
-
export function
|
|
2679
|
+
export function deploymentsMessagesContentFromJSON(
|
|
409
2680
|
jsonString: string,
|
|
410
|
-
): SafeParseResult<
|
|
2681
|
+
): SafeParseResult<DeploymentsMessagesContent, SDKValidationError> {
|
|
411
2682
|
return safeParse(
|
|
412
2683
|
jsonString,
|
|
413
|
-
(x) =>
|
|
414
|
-
`Failed to parse '
|
|
2684
|
+
(x) => DeploymentsMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
2685
|
+
`Failed to parse 'DeploymentsMessagesContent' from JSON`,
|
|
415
2686
|
);
|
|
416
2687
|
}
|
|
417
2688
|
|
|
418
2689
|
/** @internal */
|
|
419
|
-
export const
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
image_url: z.lazy(() => ImageUrl$inboundSchema),
|
|
423
|
-
}).transform((v) => {
|
|
424
|
-
return remap$(v, {
|
|
425
|
-
"image_url": "imageUrl",
|
|
426
|
-
});
|
|
427
|
-
});
|
|
2690
|
+
export const DeploymentsMessages4Role$inboundSchema: z.ZodNativeEnum<
|
|
2691
|
+
typeof DeploymentsMessages4Role
|
|
2692
|
+
> = z.nativeEnum(DeploymentsMessages4Role);
|
|
428
2693
|
|
|
429
2694
|
/** @internal */
|
|
430
|
-
export
|
|
431
|
-
|
|
432
|
-
|
|
2695
|
+
export const DeploymentsMessages4Role$outboundSchema: z.ZodNativeEnum<
|
|
2696
|
+
typeof DeploymentsMessages4Role
|
|
2697
|
+
> = DeploymentsMessages4Role$inboundSchema;
|
|
2698
|
+
|
|
2699
|
+
/**
|
|
2700
|
+
* @internal
|
|
2701
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2702
|
+
*/
|
|
2703
|
+
export namespace DeploymentsMessages4Role$ {
|
|
2704
|
+
/** @deprecated use `DeploymentsMessages4Role$inboundSchema` instead. */
|
|
2705
|
+
export const inboundSchema = DeploymentsMessages4Role$inboundSchema;
|
|
2706
|
+
/** @deprecated use `DeploymentsMessages4Role$outboundSchema` instead. */
|
|
2707
|
+
export const outboundSchema = DeploymentsMessages4Role$outboundSchema;
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
/** @internal */
|
|
2711
|
+
export const MessagesAudio$inboundSchema: z.ZodType<
|
|
2712
|
+
MessagesAudio,
|
|
2713
|
+
z.ZodTypeDef,
|
|
2714
|
+
unknown
|
|
2715
|
+
> = z.object({
|
|
2716
|
+
id: z.string(),
|
|
2717
|
+
});
|
|
2718
|
+
|
|
2719
|
+
/** @internal */
|
|
2720
|
+
export type MessagesAudio$Outbound = {
|
|
2721
|
+
id: string;
|
|
433
2722
|
};
|
|
434
2723
|
|
|
435
2724
|
/** @internal */
|
|
436
|
-
export const
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
});
|
|
444
|
-
});
|
|
2725
|
+
export const MessagesAudio$outboundSchema: z.ZodType<
|
|
2726
|
+
MessagesAudio$Outbound,
|
|
2727
|
+
z.ZodTypeDef,
|
|
2728
|
+
MessagesAudio
|
|
2729
|
+
> = z.object({
|
|
2730
|
+
id: z.string(),
|
|
2731
|
+
});
|
|
445
2732
|
|
|
446
2733
|
/**
|
|
447
2734
|
* @internal
|
|
448
2735
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
449
2736
|
*/
|
|
450
|
-
export namespace
|
|
451
|
-
/** @deprecated use `
|
|
452
|
-
export const inboundSchema =
|
|
453
|
-
/** @deprecated use `
|
|
454
|
-
export const outboundSchema =
|
|
455
|
-
/** @deprecated use `
|
|
456
|
-
export type Outbound =
|
|
2737
|
+
export namespace MessagesAudio$ {
|
|
2738
|
+
/** @deprecated use `MessagesAudio$inboundSchema` instead. */
|
|
2739
|
+
export const inboundSchema = MessagesAudio$inboundSchema;
|
|
2740
|
+
/** @deprecated use `MessagesAudio$outboundSchema` instead. */
|
|
2741
|
+
export const outboundSchema = MessagesAudio$outboundSchema;
|
|
2742
|
+
/** @deprecated use `MessagesAudio$Outbound` instead. */
|
|
2743
|
+
export type Outbound = MessagesAudio$Outbound;
|
|
457
2744
|
}
|
|
458
2745
|
|
|
459
|
-
export function
|
|
460
|
-
return JSON.stringify(
|
|
2746
|
+
export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
|
|
2747
|
+
return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
|
|
461
2748
|
}
|
|
462
2749
|
|
|
463
|
-
export function
|
|
2750
|
+
export function messagesAudioFromJSON(
|
|
464
2751
|
jsonString: string,
|
|
465
|
-
): SafeParseResult<
|
|
2752
|
+
): SafeParseResult<MessagesAudio, SDKValidationError> {
|
|
466
2753
|
return safeParse(
|
|
467
2754
|
jsonString,
|
|
468
|
-
(x) =>
|
|
469
|
-
`Failed to parse '
|
|
2755
|
+
(x) => MessagesAudio$inboundSchema.parse(JSON.parse(x)),
|
|
2756
|
+
`Failed to parse 'MessagesAudio' from JSON`,
|
|
470
2757
|
);
|
|
471
2758
|
}
|
|
472
2759
|
|
|
473
2760
|
/** @internal */
|
|
474
|
-
export const
|
|
475
|
-
|
|
476
|
-
> = z.nativeEnum(Deployments2Type);
|
|
2761
|
+
export const MessagesType$inboundSchema: z.ZodNativeEnum<typeof MessagesType> =
|
|
2762
|
+
z.nativeEnum(MessagesType);
|
|
477
2763
|
|
|
478
2764
|
/** @internal */
|
|
479
|
-
export const
|
|
480
|
-
|
|
481
|
-
> = Deployments2Type$inboundSchema;
|
|
2765
|
+
export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
|
|
2766
|
+
MessagesType$inboundSchema;
|
|
482
2767
|
|
|
483
2768
|
/**
|
|
484
2769
|
* @internal
|
|
485
2770
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
486
2771
|
*/
|
|
487
|
-
export namespace
|
|
488
|
-
/** @deprecated use `
|
|
489
|
-
export const inboundSchema =
|
|
490
|
-
/** @deprecated use `
|
|
491
|
-
export const outboundSchema =
|
|
2772
|
+
export namespace MessagesType$ {
|
|
2773
|
+
/** @deprecated use `MessagesType$inboundSchema` instead. */
|
|
2774
|
+
export const inboundSchema = MessagesType$inboundSchema;
|
|
2775
|
+
/** @deprecated use `MessagesType$outboundSchema` instead. */
|
|
2776
|
+
export const outboundSchema = MessagesType$outboundSchema;
|
|
492
2777
|
}
|
|
493
2778
|
|
|
494
2779
|
/** @internal */
|
|
495
|
-
export const
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
2780
|
+
export const MessagesFunction$inboundSchema: z.ZodType<
|
|
2781
|
+
MessagesFunction,
|
|
2782
|
+
z.ZodTypeDef,
|
|
2783
|
+
unknown
|
|
2784
|
+
> = z.object({
|
|
2785
|
+
name: z.string().optional(),
|
|
2786
|
+
arguments: z.string().optional(),
|
|
2787
|
+
});
|
|
500
2788
|
|
|
501
2789
|
/** @internal */
|
|
502
|
-
export type
|
|
503
|
-
|
|
504
|
-
|
|
2790
|
+
export type MessagesFunction$Outbound = {
|
|
2791
|
+
name?: string | undefined;
|
|
2792
|
+
arguments?: string | undefined;
|
|
505
2793
|
};
|
|
506
2794
|
|
|
507
2795
|
/** @internal */
|
|
508
|
-
export const
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
2796
|
+
export const MessagesFunction$outboundSchema: z.ZodType<
|
|
2797
|
+
MessagesFunction$Outbound,
|
|
2798
|
+
z.ZodTypeDef,
|
|
2799
|
+
MessagesFunction
|
|
2800
|
+
> = z.object({
|
|
2801
|
+
name: z.string().optional(),
|
|
2802
|
+
arguments: z.string().optional(),
|
|
2803
|
+
});
|
|
513
2804
|
|
|
514
2805
|
/**
|
|
515
2806
|
* @internal
|
|
516
2807
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
517
2808
|
*/
|
|
518
|
-
export namespace
|
|
519
|
-
/** @deprecated use `
|
|
520
|
-
export const inboundSchema =
|
|
521
|
-
/** @deprecated use `
|
|
522
|
-
export const outboundSchema =
|
|
523
|
-
/** @deprecated use `
|
|
524
|
-
export type Outbound =
|
|
2809
|
+
export namespace MessagesFunction$ {
|
|
2810
|
+
/** @deprecated use `MessagesFunction$inboundSchema` instead. */
|
|
2811
|
+
export const inboundSchema = MessagesFunction$inboundSchema;
|
|
2812
|
+
/** @deprecated use `MessagesFunction$outboundSchema` instead. */
|
|
2813
|
+
export const outboundSchema = MessagesFunction$outboundSchema;
|
|
2814
|
+
/** @deprecated use `MessagesFunction$Outbound` instead. */
|
|
2815
|
+
export type Outbound = MessagesFunction$Outbound;
|
|
525
2816
|
}
|
|
526
2817
|
|
|
527
|
-
export function
|
|
528
|
-
|
|
2818
|
+
export function messagesFunctionToJSON(
|
|
2819
|
+
messagesFunction: MessagesFunction,
|
|
2820
|
+
): string {
|
|
2821
|
+
return JSON.stringify(
|
|
2822
|
+
MessagesFunction$outboundSchema.parse(messagesFunction),
|
|
2823
|
+
);
|
|
529
2824
|
}
|
|
530
2825
|
|
|
531
|
-
export function
|
|
2826
|
+
export function messagesFunctionFromJSON(
|
|
532
2827
|
jsonString: string,
|
|
533
|
-
): SafeParseResult<
|
|
2828
|
+
): SafeParseResult<MessagesFunction, SDKValidationError> {
|
|
534
2829
|
return safeParse(
|
|
535
2830
|
jsonString,
|
|
536
|
-
(x) =>
|
|
537
|
-
`Failed to parse '
|
|
2831
|
+
(x) => MessagesFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2832
|
+
`Failed to parse 'MessagesFunction' from JSON`,
|
|
538
2833
|
);
|
|
539
2834
|
}
|
|
540
2835
|
|
|
541
2836
|
/** @internal */
|
|
542
|
-
export const
|
|
543
|
-
|
|
544
|
-
|
|
2837
|
+
export const MessagesToolCalls$inboundSchema: z.ZodType<
|
|
2838
|
+
MessagesToolCalls,
|
|
2839
|
+
z.ZodTypeDef,
|
|
2840
|
+
unknown
|
|
2841
|
+
> = z.object({
|
|
2842
|
+
id: z.string(),
|
|
2843
|
+
type: MessagesType$inboundSchema,
|
|
2844
|
+
function: z.lazy(() => MessagesFunction$inboundSchema),
|
|
2845
|
+
});
|
|
545
2846
|
|
|
546
2847
|
/** @internal */
|
|
547
|
-
export type
|
|
2848
|
+
export type MessagesToolCalls$Outbound = {
|
|
2849
|
+
id: string;
|
|
2850
|
+
type: string;
|
|
2851
|
+
function: MessagesFunction$Outbound;
|
|
2852
|
+
};
|
|
548
2853
|
|
|
549
2854
|
/** @internal */
|
|
550
|
-
export const
|
|
551
|
-
|
|
2855
|
+
export const MessagesToolCalls$outboundSchema: z.ZodType<
|
|
2856
|
+
MessagesToolCalls$Outbound,
|
|
2857
|
+
z.ZodTypeDef,
|
|
2858
|
+
MessagesToolCalls
|
|
2859
|
+
> = z.object({
|
|
2860
|
+
id: z.string(),
|
|
2861
|
+
type: MessagesType$outboundSchema,
|
|
2862
|
+
function: z.lazy(() => MessagesFunction$outboundSchema),
|
|
2863
|
+
});
|
|
552
2864
|
|
|
553
2865
|
/**
|
|
554
2866
|
* @internal
|
|
555
2867
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
556
2868
|
*/
|
|
557
|
-
export namespace
|
|
558
|
-
/** @deprecated use `
|
|
559
|
-
export const inboundSchema =
|
|
560
|
-
/** @deprecated use `
|
|
561
|
-
export const outboundSchema =
|
|
562
|
-
/** @deprecated use `
|
|
563
|
-
export type Outbound =
|
|
2869
|
+
export namespace MessagesToolCalls$ {
|
|
2870
|
+
/** @deprecated use `MessagesToolCalls$inboundSchema` instead. */
|
|
2871
|
+
export const inboundSchema = MessagesToolCalls$inboundSchema;
|
|
2872
|
+
/** @deprecated use `MessagesToolCalls$outboundSchema` instead. */
|
|
2873
|
+
export const outboundSchema = MessagesToolCalls$outboundSchema;
|
|
2874
|
+
/** @deprecated use `MessagesToolCalls$Outbound` instead. */
|
|
2875
|
+
export type Outbound = MessagesToolCalls$Outbound;
|
|
564
2876
|
}
|
|
565
2877
|
|
|
566
|
-
export function
|
|
567
|
-
|
|
2878
|
+
export function messagesToolCallsToJSON(
|
|
2879
|
+
messagesToolCalls: MessagesToolCalls,
|
|
2880
|
+
): string {
|
|
2881
|
+
return JSON.stringify(
|
|
2882
|
+
MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
|
|
2883
|
+
);
|
|
568
2884
|
}
|
|
569
2885
|
|
|
570
|
-
export function
|
|
2886
|
+
export function messagesToolCallsFromJSON(
|
|
571
2887
|
jsonString: string,
|
|
572
|
-
): SafeParseResult<
|
|
2888
|
+
): SafeParseResult<MessagesToolCalls, SDKValidationError> {
|
|
573
2889
|
return safeParse(
|
|
574
2890
|
jsonString,
|
|
575
|
-
(x) =>
|
|
576
|
-
`Failed to parse '
|
|
2891
|
+
(x) => MessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
2892
|
+
`Failed to parse 'MessagesToolCalls' from JSON`,
|
|
577
2893
|
);
|
|
578
2894
|
}
|
|
579
2895
|
|
|
580
2896
|
/** @internal */
|
|
581
|
-
export const
|
|
582
|
-
|
|
2897
|
+
export const Messages4$inboundSchema: z.ZodType<
|
|
2898
|
+
Messages4,
|
|
2899
|
+
z.ZodTypeDef,
|
|
2900
|
+
unknown
|
|
2901
|
+
> = z.object({
|
|
2902
|
+
content: z.union([
|
|
583
2903
|
z.string(),
|
|
584
2904
|
z.array(z.union([
|
|
585
|
-
z.lazy(() =>
|
|
586
|
-
z.lazy(() =>
|
|
2905
|
+
z.lazy(() => Deployments2Messages41$inboundSchema),
|
|
2906
|
+
z.lazy(() => Deployments2Messages42$inboundSchema),
|
|
587
2907
|
])),
|
|
588
|
-
])
|
|
2908
|
+
]).optional(),
|
|
2909
|
+
refusal: z.nullable(z.string()).optional(),
|
|
2910
|
+
role: DeploymentsMessages4Role$inboundSchema,
|
|
2911
|
+
name: z.string().optional(),
|
|
2912
|
+
audio: z.nullable(z.lazy(() => MessagesAudio$inboundSchema)).optional(),
|
|
2913
|
+
tool_calls: z.array(z.lazy(() => MessagesToolCalls$inboundSchema)).optional(),
|
|
2914
|
+
}).transform((v) => {
|
|
2915
|
+
return remap$(v, {
|
|
2916
|
+
"tool_calls": "toolCalls",
|
|
2917
|
+
});
|
|
2918
|
+
});
|
|
589
2919
|
|
|
590
2920
|
/** @internal */
|
|
591
|
-
export type
|
|
2921
|
+
export type Messages4$Outbound = {
|
|
2922
|
+
content?:
|
|
2923
|
+
| string
|
|
2924
|
+
| Array<Deployments2Messages41$Outbound | Deployments2Messages42$Outbound>
|
|
2925
|
+
| undefined;
|
|
2926
|
+
refusal?: string | null | undefined;
|
|
2927
|
+
role: string;
|
|
2928
|
+
name?: string | undefined;
|
|
2929
|
+
audio?: MessagesAudio$Outbound | null | undefined;
|
|
2930
|
+
tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
|
|
2931
|
+
};
|
|
592
2932
|
|
|
593
2933
|
/** @internal */
|
|
594
|
-
export const
|
|
595
|
-
|
|
2934
|
+
export const Messages4$outboundSchema: z.ZodType<
|
|
2935
|
+
Messages4$Outbound,
|
|
596
2936
|
z.ZodTypeDef,
|
|
597
|
-
|
|
598
|
-
> = z.
|
|
599
|
-
z.
|
|
600
|
-
|
|
601
|
-
z.
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
])
|
|
2937
|
+
Messages4
|
|
2938
|
+
> = z.object({
|
|
2939
|
+
content: z.union([
|
|
2940
|
+
z.string(),
|
|
2941
|
+
z.array(z.union([
|
|
2942
|
+
z.lazy(() => Deployments2Messages41$outboundSchema),
|
|
2943
|
+
z.lazy(() => Deployments2Messages42$outboundSchema),
|
|
2944
|
+
])),
|
|
2945
|
+
]).optional(),
|
|
2946
|
+
refusal: z.nullable(z.string()).optional(),
|
|
2947
|
+
role: DeploymentsMessages4Role$outboundSchema,
|
|
2948
|
+
name: z.string().optional(),
|
|
2949
|
+
audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
|
|
2950
|
+
toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
|
|
2951
|
+
}).transform((v) => {
|
|
2952
|
+
return remap$(v, {
|
|
2953
|
+
toolCalls: "tool_calls",
|
|
2954
|
+
});
|
|
2955
|
+
});
|
|
605
2956
|
|
|
606
2957
|
/**
|
|
607
2958
|
* @internal
|
|
608
2959
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
609
2960
|
*/
|
|
610
|
-
export namespace
|
|
611
|
-
/** @deprecated use `
|
|
612
|
-
export const inboundSchema =
|
|
613
|
-
/** @deprecated use `
|
|
614
|
-
export const outboundSchema =
|
|
615
|
-
/** @deprecated use `
|
|
616
|
-
export type Outbound =
|
|
2961
|
+
export namespace Messages4$ {
|
|
2962
|
+
/** @deprecated use `Messages4$inboundSchema` instead. */
|
|
2963
|
+
export const inboundSchema = Messages4$inboundSchema;
|
|
2964
|
+
/** @deprecated use `Messages4$outboundSchema` instead. */
|
|
2965
|
+
export const outboundSchema = Messages4$outboundSchema;
|
|
2966
|
+
/** @deprecated use `Messages4$Outbound` instead. */
|
|
2967
|
+
export type Outbound = Messages4$Outbound;
|
|
617
2968
|
}
|
|
618
2969
|
|
|
619
|
-
export function
|
|
620
|
-
return JSON.stringify(
|
|
2970
|
+
export function messages4ToJSON(messages4: Messages4): string {
|
|
2971
|
+
return JSON.stringify(Messages4$outboundSchema.parse(messages4));
|
|
621
2972
|
}
|
|
622
2973
|
|
|
623
|
-
export function
|
|
2974
|
+
export function messages4FromJSON(
|
|
624
2975
|
jsonString: string,
|
|
625
|
-
): SafeParseResult<
|
|
2976
|
+
): SafeParseResult<Messages4, SDKValidationError> {
|
|
626
2977
|
return safeParse(
|
|
627
2978
|
jsonString,
|
|
628
|
-
(x) =>
|
|
629
|
-
`Failed to parse '
|
|
2979
|
+
(x) => Messages4$inboundSchema.parse(JSON.parse(x)),
|
|
2980
|
+
`Failed to parse 'Messages4' from JSON`,
|
|
630
2981
|
);
|
|
631
2982
|
}
|
|
632
2983
|
|
|
633
2984
|
/** @internal */
|
|
634
|
-
export const
|
|
635
|
-
|
|
636
|
-
);
|
|
2985
|
+
export const DeploymentsMessages3Role$inboundSchema: z.ZodNativeEnum<
|
|
2986
|
+
typeof DeploymentsMessages3Role
|
|
2987
|
+
> = z.nativeEnum(DeploymentsMessages3Role);
|
|
637
2988
|
|
|
638
2989
|
/** @internal */
|
|
639
|
-
export const
|
|
640
|
-
|
|
2990
|
+
export const DeploymentsMessages3Role$outboundSchema: z.ZodNativeEnum<
|
|
2991
|
+
typeof DeploymentsMessages3Role
|
|
2992
|
+
> = DeploymentsMessages3Role$inboundSchema;
|
|
641
2993
|
|
|
642
2994
|
/**
|
|
643
2995
|
* @internal
|
|
644
2996
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
645
2997
|
*/
|
|
646
|
-
export namespace
|
|
647
|
-
/** @deprecated use `
|
|
648
|
-
export const inboundSchema =
|
|
649
|
-
/** @deprecated use `
|
|
650
|
-
export const outboundSchema =
|
|
2998
|
+
export namespace DeploymentsMessages3Role$ {
|
|
2999
|
+
/** @deprecated use `DeploymentsMessages3Role$inboundSchema` instead. */
|
|
3000
|
+
export const inboundSchema = DeploymentsMessages3Role$inboundSchema;
|
|
3001
|
+
/** @deprecated use `DeploymentsMessages3Role$outboundSchema` instead. */
|
|
3002
|
+
export const outboundSchema = DeploymentsMessages3Role$outboundSchema;
|
|
651
3003
|
}
|
|
652
3004
|
|
|
653
3005
|
/** @internal */
|
|
654
|
-
export const
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
unknown
|
|
658
|
-
> = z.object({
|
|
659
|
-
name: z.string(),
|
|
660
|
-
arguments: z.string(),
|
|
661
|
-
});
|
|
662
|
-
|
|
663
|
-
/** @internal */
|
|
664
|
-
export type FunctionT$Outbound = {
|
|
665
|
-
name: string;
|
|
666
|
-
arguments: string;
|
|
667
|
-
};
|
|
3006
|
+
export const Deployments2Messages3ContentType$inboundSchema: z.ZodNativeEnum<
|
|
3007
|
+
typeof Deployments2Messages3ContentType
|
|
3008
|
+
> = z.nativeEnum(Deployments2Messages3ContentType);
|
|
668
3009
|
|
|
669
3010
|
/** @internal */
|
|
670
|
-
export const
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
FunctionT
|
|
674
|
-
> = z.object({
|
|
675
|
-
name: z.string(),
|
|
676
|
-
arguments: z.string(),
|
|
677
|
-
});
|
|
3011
|
+
export const Deployments2Messages3ContentType$outboundSchema: z.ZodNativeEnum<
|
|
3012
|
+
typeof Deployments2Messages3ContentType
|
|
3013
|
+
> = Deployments2Messages3ContentType$inboundSchema;
|
|
678
3014
|
|
|
679
3015
|
/**
|
|
680
3016
|
* @internal
|
|
681
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
682
|
-
*/
|
|
683
|
-
export namespace
|
|
684
|
-
/** @deprecated use `
|
|
685
|
-
export const inboundSchema =
|
|
686
|
-
/** @deprecated use `
|
|
687
|
-
export const outboundSchema =
|
|
688
|
-
/** @deprecated use `FunctionT$Outbound` instead. */
|
|
689
|
-
export type Outbound = FunctionT$Outbound;
|
|
3017
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3018
|
+
*/
|
|
3019
|
+
export namespace Deployments2Messages3ContentType$ {
|
|
3020
|
+
/** @deprecated use `Deployments2Messages3ContentType$inboundSchema` instead. */
|
|
3021
|
+
export const inboundSchema = Deployments2Messages3ContentType$inboundSchema;
|
|
3022
|
+
/** @deprecated use `Deployments2Messages3ContentType$outboundSchema` instead. */
|
|
3023
|
+
export const outboundSchema = Deployments2Messages3ContentType$outboundSchema;
|
|
690
3024
|
}
|
|
691
3025
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
3026
|
+
/** @internal */
|
|
3027
|
+
export const TwoFormat$inboundSchema: z.ZodNativeEnum<typeof TwoFormat> = z
|
|
3028
|
+
.nativeEnum(TwoFormat);
|
|
695
3029
|
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
3030
|
+
/** @internal */
|
|
3031
|
+
export const TwoFormat$outboundSchema: z.ZodNativeEnum<typeof TwoFormat> =
|
|
3032
|
+
TwoFormat$inboundSchema;
|
|
3033
|
+
|
|
3034
|
+
/**
|
|
3035
|
+
* @internal
|
|
3036
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3037
|
+
*/
|
|
3038
|
+
export namespace TwoFormat$ {
|
|
3039
|
+
/** @deprecated use `TwoFormat$inboundSchema` instead. */
|
|
3040
|
+
export const inboundSchema = TwoFormat$inboundSchema;
|
|
3041
|
+
/** @deprecated use `TwoFormat$outboundSchema` instead. */
|
|
3042
|
+
export const outboundSchema = TwoFormat$outboundSchema;
|
|
704
3043
|
}
|
|
705
3044
|
|
|
706
3045
|
/** @internal */
|
|
707
|
-
export const
|
|
708
|
-
|
|
3046
|
+
export const TwoInputAudio$inboundSchema: z.ZodType<
|
|
3047
|
+
TwoInputAudio,
|
|
709
3048
|
z.ZodTypeDef,
|
|
710
3049
|
unknown
|
|
711
3050
|
> = z.object({
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
type: Type$inboundSchema,
|
|
715
|
-
function: z.lazy(() => FunctionT$inboundSchema),
|
|
3051
|
+
data: z.string(),
|
|
3052
|
+
format: TwoFormat$inboundSchema,
|
|
716
3053
|
});
|
|
717
3054
|
|
|
718
3055
|
/** @internal */
|
|
719
|
-
export type
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
type: string;
|
|
723
|
-
function: FunctionT$Outbound;
|
|
3056
|
+
export type TwoInputAudio$Outbound = {
|
|
3057
|
+
data: string;
|
|
3058
|
+
format: string;
|
|
724
3059
|
};
|
|
725
3060
|
|
|
726
3061
|
/** @internal */
|
|
727
|
-
export const
|
|
728
|
-
|
|
3062
|
+
export const TwoInputAudio$outboundSchema: z.ZodType<
|
|
3063
|
+
TwoInputAudio$Outbound,
|
|
729
3064
|
z.ZodTypeDef,
|
|
730
|
-
|
|
3065
|
+
TwoInputAudio
|
|
731
3066
|
> = z.object({
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
type: Type$outboundSchema,
|
|
735
|
-
function: z.lazy(() => FunctionT$outboundSchema),
|
|
3067
|
+
data: z.string(),
|
|
3068
|
+
format: TwoFormat$outboundSchema,
|
|
736
3069
|
});
|
|
737
3070
|
|
|
738
3071
|
/**
|
|
739
3072
|
* @internal
|
|
740
3073
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
741
3074
|
*/
|
|
742
|
-
export namespace
|
|
743
|
-
/** @deprecated use `
|
|
744
|
-
export const inboundSchema =
|
|
745
|
-
/** @deprecated use `
|
|
746
|
-
export const outboundSchema =
|
|
747
|
-
/** @deprecated use `
|
|
748
|
-
export type Outbound =
|
|
3075
|
+
export namespace TwoInputAudio$ {
|
|
3076
|
+
/** @deprecated use `TwoInputAudio$inboundSchema` instead. */
|
|
3077
|
+
export const inboundSchema = TwoInputAudio$inboundSchema;
|
|
3078
|
+
/** @deprecated use `TwoInputAudio$outboundSchema` instead. */
|
|
3079
|
+
export const outboundSchema = TwoInputAudio$outboundSchema;
|
|
3080
|
+
/** @deprecated use `TwoInputAudio$Outbound` instead. */
|
|
3081
|
+
export type Outbound = TwoInputAudio$Outbound;
|
|
749
3082
|
}
|
|
750
3083
|
|
|
751
|
-
export function
|
|
752
|
-
return JSON.stringify(
|
|
3084
|
+
export function twoInputAudioToJSON(twoInputAudio: TwoInputAudio): string {
|
|
3085
|
+
return JSON.stringify(TwoInputAudio$outboundSchema.parse(twoInputAudio));
|
|
753
3086
|
}
|
|
754
3087
|
|
|
755
|
-
export function
|
|
3088
|
+
export function twoInputAudioFromJSON(
|
|
756
3089
|
jsonString: string,
|
|
757
|
-
): SafeParseResult<
|
|
3090
|
+
): SafeParseResult<TwoInputAudio, SDKValidationError> {
|
|
758
3091
|
return safeParse(
|
|
759
3092
|
jsonString,
|
|
760
|
-
(x) =>
|
|
761
|
-
`Failed to parse '
|
|
3093
|
+
(x) => TwoInputAudio$inboundSchema.parse(JSON.parse(x)),
|
|
3094
|
+
`Failed to parse 'TwoInputAudio' from JSON`,
|
|
762
3095
|
);
|
|
763
3096
|
}
|
|
764
3097
|
|
|
765
3098
|
/** @internal */
|
|
766
|
-
export const
|
|
767
|
-
|
|
3099
|
+
export const Deployments23$inboundSchema: z.ZodType<
|
|
3100
|
+
Deployments23,
|
|
768
3101
|
z.ZodTypeDef,
|
|
769
3102
|
unknown
|
|
770
3103
|
> = z.object({
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
z.string(),
|
|
774
|
-
z.array(z.union([
|
|
775
|
-
z.lazy(() => One$inboundSchema),
|
|
776
|
-
z.lazy(() => Two2$inboundSchema),
|
|
777
|
-
])),
|
|
778
|
-
]),
|
|
779
|
-
tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
|
|
3104
|
+
type: Deployments2Messages3ContentType$inboundSchema,
|
|
3105
|
+
input_audio: z.lazy(() => TwoInputAudio$inboundSchema),
|
|
780
3106
|
}).transform((v) => {
|
|
781
3107
|
return remap$(v, {
|
|
782
|
-
"
|
|
3108
|
+
"input_audio": "inputAudio",
|
|
783
3109
|
});
|
|
784
3110
|
});
|
|
785
3111
|
|
|
786
3112
|
/** @internal */
|
|
787
|
-
export type
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
tool_calls?: Array<ToolCalls$Outbound> | undefined;
|
|
3113
|
+
export type Deployments23$Outbound = {
|
|
3114
|
+
type: string;
|
|
3115
|
+
input_audio: TwoInputAudio$Outbound;
|
|
791
3116
|
};
|
|
792
3117
|
|
|
793
3118
|
/** @internal */
|
|
794
|
-
export const
|
|
795
|
-
|
|
3119
|
+
export const Deployments23$outboundSchema: z.ZodType<
|
|
3120
|
+
Deployments23$Outbound,
|
|
796
3121
|
z.ZodTypeDef,
|
|
797
|
-
|
|
3122
|
+
Deployments23
|
|
798
3123
|
> = z.object({
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
z.string(),
|
|
802
|
-
z.array(z.union([
|
|
803
|
-
z.lazy(() => One$outboundSchema),
|
|
804
|
-
z.lazy(() => Two2$outboundSchema),
|
|
805
|
-
])),
|
|
806
|
-
]),
|
|
807
|
-
toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
|
|
3124
|
+
type: Deployments2Messages3ContentType$outboundSchema,
|
|
3125
|
+
inputAudio: z.lazy(() => TwoInputAudio$outboundSchema),
|
|
808
3126
|
}).transform((v) => {
|
|
809
3127
|
return remap$(v, {
|
|
810
|
-
|
|
3128
|
+
inputAudio: "input_audio",
|
|
811
3129
|
});
|
|
812
3130
|
});
|
|
813
3131
|
|
|
@@ -815,69 +3133,67 @@ export const PrefixMessages$outboundSchema: z.ZodType<
|
|
|
815
3133
|
* @internal
|
|
816
3134
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
817
3135
|
*/
|
|
818
|
-
export namespace
|
|
819
|
-
/** @deprecated use `
|
|
820
|
-
export const inboundSchema =
|
|
821
|
-
/** @deprecated use `
|
|
822
|
-
export const outboundSchema =
|
|
823
|
-
/** @deprecated use `
|
|
824
|
-
export type Outbound =
|
|
3136
|
+
export namespace Deployments23$ {
|
|
3137
|
+
/** @deprecated use `Deployments23$inboundSchema` instead. */
|
|
3138
|
+
export const inboundSchema = Deployments23$inboundSchema;
|
|
3139
|
+
/** @deprecated use `Deployments23$outboundSchema` instead. */
|
|
3140
|
+
export const outboundSchema = Deployments23$outboundSchema;
|
|
3141
|
+
/** @deprecated use `Deployments23$Outbound` instead. */
|
|
3142
|
+
export type Outbound = Deployments23$Outbound;
|
|
825
3143
|
}
|
|
826
3144
|
|
|
827
|
-
export function
|
|
828
|
-
return JSON.stringify(
|
|
3145
|
+
export function deployments23ToJSON(deployments23: Deployments23): string {
|
|
3146
|
+
return JSON.stringify(Deployments23$outboundSchema.parse(deployments23));
|
|
829
3147
|
}
|
|
830
3148
|
|
|
831
|
-
export function
|
|
3149
|
+
export function deployments23FromJSON(
|
|
832
3150
|
jsonString: string,
|
|
833
|
-
): SafeParseResult<
|
|
3151
|
+
): SafeParseResult<Deployments23, SDKValidationError> {
|
|
834
3152
|
return safeParse(
|
|
835
3153
|
jsonString,
|
|
836
|
-
(x) =>
|
|
837
|
-
`Failed to parse '
|
|
3154
|
+
(x) => Deployments23$inboundSchema.parse(JSON.parse(x)),
|
|
3155
|
+
`Failed to parse 'Deployments23' from JSON`,
|
|
838
3156
|
);
|
|
839
3157
|
}
|
|
840
3158
|
|
|
841
3159
|
/** @internal */
|
|
842
|
-
export const
|
|
843
|
-
typeof
|
|
844
|
-
> = z.nativeEnum(
|
|
3160
|
+
export const Deployments2Messages3Type$inboundSchema: z.ZodNativeEnum<
|
|
3161
|
+
typeof Deployments2Messages3Type
|
|
3162
|
+
> = z.nativeEnum(Deployments2Messages3Type);
|
|
845
3163
|
|
|
846
3164
|
/** @internal */
|
|
847
|
-
export const
|
|
848
|
-
typeof
|
|
849
|
-
> =
|
|
3165
|
+
export const Deployments2Messages3Type$outboundSchema: z.ZodNativeEnum<
|
|
3166
|
+
typeof Deployments2Messages3Type
|
|
3167
|
+
> = Deployments2Messages3Type$inboundSchema;
|
|
850
3168
|
|
|
851
3169
|
/**
|
|
852
3170
|
* @internal
|
|
853
3171
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
854
3172
|
*/
|
|
855
|
-
export namespace
|
|
856
|
-
/** @deprecated use `
|
|
857
|
-
export const inboundSchema =
|
|
858
|
-
/** @deprecated use `
|
|
859
|
-
export const outboundSchema =
|
|
3173
|
+
export namespace Deployments2Messages3Type$ {
|
|
3174
|
+
/** @deprecated use `Deployments2Messages3Type$inboundSchema` instead. */
|
|
3175
|
+
export const inboundSchema = Deployments2Messages3Type$inboundSchema;
|
|
3176
|
+
/** @deprecated use `Deployments2Messages3Type$outboundSchema` instead. */
|
|
3177
|
+
export const outboundSchema = Deployments2Messages3Type$outboundSchema;
|
|
860
3178
|
}
|
|
861
3179
|
|
|
862
3180
|
/** @internal */
|
|
863
|
-
export const
|
|
864
|
-
|
|
865
|
-
> = z.nativeEnum(Deployments2MessagesContentType);
|
|
3181
|
+
export const TwoDetail$inboundSchema: z.ZodNativeEnum<typeof TwoDetail> = z
|
|
3182
|
+
.nativeEnum(TwoDetail);
|
|
866
3183
|
|
|
867
3184
|
/** @internal */
|
|
868
|
-
export const
|
|
869
|
-
|
|
870
|
-
> = Deployments2MessagesContentType$inboundSchema;
|
|
3185
|
+
export const TwoDetail$outboundSchema: z.ZodNativeEnum<typeof TwoDetail> =
|
|
3186
|
+
TwoDetail$inboundSchema;
|
|
871
3187
|
|
|
872
3188
|
/**
|
|
873
3189
|
* @internal
|
|
874
3190
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
875
3191
|
*/
|
|
876
|
-
export namespace
|
|
877
|
-
/** @deprecated use `
|
|
878
|
-
export const inboundSchema =
|
|
879
|
-
/** @deprecated use `
|
|
880
|
-
export const outboundSchema =
|
|
3192
|
+
export namespace TwoDetail$ {
|
|
3193
|
+
/** @deprecated use `TwoDetail$inboundSchema` instead. */
|
|
3194
|
+
export const inboundSchema = TwoDetail$inboundSchema;
|
|
3195
|
+
/** @deprecated use `TwoDetail$outboundSchema` instead. */
|
|
3196
|
+
export const outboundSchema = TwoDetail$outboundSchema;
|
|
881
3197
|
}
|
|
882
3198
|
|
|
883
3199
|
/** @internal */
|
|
@@ -887,7 +3203,7 @@ export const TwoImageUrl$inboundSchema: z.ZodType<
|
|
|
887
3203
|
unknown
|
|
888
3204
|
> = z.object({
|
|
889
3205
|
url: z.string(),
|
|
890
|
-
detail:
|
|
3206
|
+
detail: TwoDetail$inboundSchema.optional(),
|
|
891
3207
|
});
|
|
892
3208
|
|
|
893
3209
|
/** @internal */
|
|
@@ -903,7 +3219,7 @@ export const TwoImageUrl$outboundSchema: z.ZodType<
|
|
|
903
3219
|
TwoImageUrl
|
|
904
3220
|
> = z.object({
|
|
905
3221
|
url: z.string(),
|
|
906
|
-
detail:
|
|
3222
|
+
detail: TwoDetail$outboundSchema.optional(),
|
|
907
3223
|
});
|
|
908
3224
|
|
|
909
3225
|
/**
|
|
@@ -934,12 +3250,12 @@ export function twoImageUrlFromJSON(
|
|
|
934
3250
|
}
|
|
935
3251
|
|
|
936
3252
|
/** @internal */
|
|
937
|
-
export const
|
|
938
|
-
|
|
3253
|
+
export const Deployments2Messages2$inboundSchema: z.ZodType<
|
|
3254
|
+
Deployments2Messages2,
|
|
939
3255
|
z.ZodTypeDef,
|
|
940
3256
|
unknown
|
|
941
3257
|
> = z.object({
|
|
942
|
-
type:
|
|
3258
|
+
type: Deployments2Messages3Type$inboundSchema,
|
|
943
3259
|
image_url: z.lazy(() => TwoImageUrl$inboundSchema),
|
|
944
3260
|
}).transform((v) => {
|
|
945
3261
|
return remap$(v, {
|
|
@@ -948,18 +3264,18 @@ export const Deployments22$inboundSchema: z.ZodType<
|
|
|
948
3264
|
});
|
|
949
3265
|
|
|
950
3266
|
/** @internal */
|
|
951
|
-
export type
|
|
3267
|
+
export type Deployments2Messages2$Outbound = {
|
|
952
3268
|
type: string;
|
|
953
3269
|
image_url: TwoImageUrl$Outbound;
|
|
954
3270
|
};
|
|
955
3271
|
|
|
956
3272
|
/** @internal */
|
|
957
|
-
export const
|
|
958
|
-
|
|
3273
|
+
export const Deployments2Messages2$outboundSchema: z.ZodType<
|
|
3274
|
+
Deployments2Messages2$Outbound,
|
|
959
3275
|
z.ZodTypeDef,
|
|
960
|
-
|
|
3276
|
+
Deployments2Messages2
|
|
961
3277
|
> = z.object({
|
|
962
|
-
type:
|
|
3278
|
+
type: Deployments2Messages3Type$outboundSchema,
|
|
963
3279
|
imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
|
|
964
3280
|
}).transform((v) => {
|
|
965
3281
|
return remap$(v, {
|
|
@@ -971,26 +3287,30 @@ export const Deployments22$outboundSchema: z.ZodType<
|
|
|
971
3287
|
* @internal
|
|
972
3288
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
973
3289
|
*/
|
|
974
|
-
export namespace
|
|
975
|
-
/** @deprecated use `
|
|
976
|
-
export const inboundSchema =
|
|
977
|
-
/** @deprecated use `
|
|
978
|
-
export const outboundSchema =
|
|
979
|
-
/** @deprecated use `
|
|
980
|
-
export type Outbound =
|
|
3290
|
+
export namespace Deployments2Messages2$ {
|
|
3291
|
+
/** @deprecated use `Deployments2Messages2$inboundSchema` instead. */
|
|
3292
|
+
export const inboundSchema = Deployments2Messages2$inboundSchema;
|
|
3293
|
+
/** @deprecated use `Deployments2Messages2$outboundSchema` instead. */
|
|
3294
|
+
export const outboundSchema = Deployments2Messages2$outboundSchema;
|
|
3295
|
+
/** @deprecated use `Deployments2Messages2$Outbound` instead. */
|
|
3296
|
+
export type Outbound = Deployments2Messages2$Outbound;
|
|
981
3297
|
}
|
|
982
3298
|
|
|
983
|
-
export function
|
|
984
|
-
|
|
3299
|
+
export function deployments2Messages2ToJSON(
|
|
3300
|
+
deployments2Messages2: Deployments2Messages2,
|
|
3301
|
+
): string {
|
|
3302
|
+
return JSON.stringify(
|
|
3303
|
+
Deployments2Messages2$outboundSchema.parse(deployments2Messages2),
|
|
3304
|
+
);
|
|
985
3305
|
}
|
|
986
3306
|
|
|
987
|
-
export function
|
|
3307
|
+
export function deployments2Messages2FromJSON(
|
|
988
3308
|
jsonString: string,
|
|
989
|
-
): SafeParseResult<
|
|
3309
|
+
): SafeParseResult<Deployments2Messages2, SDKValidationError> {
|
|
990
3310
|
return safeParse(
|
|
991
3311
|
jsonString,
|
|
992
|
-
(x) =>
|
|
993
|
-
`Failed to parse '
|
|
3312
|
+
(x) => Deployments2Messages2$inboundSchema.parse(JSON.parse(x)),
|
|
3313
|
+
`Failed to parse 'Deployments2Messages2' from JSON`,
|
|
994
3314
|
);
|
|
995
3315
|
}
|
|
996
3316
|
|
|
@@ -1016,130 +3336,157 @@ export namespace Deployments2MessagesType$ {
|
|
|
1016
3336
|
}
|
|
1017
3337
|
|
|
1018
3338
|
/** @internal */
|
|
1019
|
-
export const
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
3339
|
+
export const Deployments2Messages1$inboundSchema: z.ZodType<
|
|
3340
|
+
Deployments2Messages1,
|
|
3341
|
+
z.ZodTypeDef,
|
|
3342
|
+
unknown
|
|
3343
|
+
> = z.object({
|
|
3344
|
+
type: Deployments2MessagesType$inboundSchema,
|
|
3345
|
+
text: z.string(),
|
|
3346
|
+
});
|
|
1024
3347
|
|
|
1025
3348
|
/** @internal */
|
|
1026
|
-
export type
|
|
3349
|
+
export type Deployments2Messages1$Outbound = {
|
|
1027
3350
|
type: string;
|
|
1028
3351
|
text: string;
|
|
1029
3352
|
};
|
|
1030
3353
|
|
|
1031
3354
|
/** @internal */
|
|
1032
|
-
export const
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
3355
|
+
export const Deployments2Messages1$outboundSchema: z.ZodType<
|
|
3356
|
+
Deployments2Messages1$Outbound,
|
|
3357
|
+
z.ZodTypeDef,
|
|
3358
|
+
Deployments2Messages1
|
|
3359
|
+
> = z.object({
|
|
3360
|
+
type: Deployments2MessagesType$outboundSchema,
|
|
3361
|
+
text: z.string(),
|
|
3362
|
+
});
|
|
1037
3363
|
|
|
1038
3364
|
/**
|
|
1039
3365
|
* @internal
|
|
1040
3366
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1041
3367
|
*/
|
|
1042
|
-
export namespace
|
|
1043
|
-
/** @deprecated use `
|
|
1044
|
-
export const inboundSchema =
|
|
1045
|
-
/** @deprecated use `
|
|
1046
|
-
export const outboundSchema =
|
|
1047
|
-
/** @deprecated use `
|
|
1048
|
-
export type Outbound =
|
|
3368
|
+
export namespace Deployments2Messages1$ {
|
|
3369
|
+
/** @deprecated use `Deployments2Messages1$inboundSchema` instead. */
|
|
3370
|
+
export const inboundSchema = Deployments2Messages1$inboundSchema;
|
|
3371
|
+
/** @deprecated use `Deployments2Messages1$outboundSchema` instead. */
|
|
3372
|
+
export const outboundSchema = Deployments2Messages1$outboundSchema;
|
|
3373
|
+
/** @deprecated use `Deployments2Messages1$Outbound` instead. */
|
|
3374
|
+
export type Outbound = Deployments2Messages1$Outbound;
|
|
1049
3375
|
}
|
|
1050
3376
|
|
|
1051
|
-
export function
|
|
1052
|
-
|
|
3377
|
+
export function deployments2Messages1ToJSON(
|
|
3378
|
+
deployments2Messages1: Deployments2Messages1,
|
|
3379
|
+
): string {
|
|
3380
|
+
return JSON.stringify(
|
|
3381
|
+
Deployments2Messages1$outboundSchema.parse(deployments2Messages1),
|
|
3382
|
+
);
|
|
1053
3383
|
}
|
|
1054
3384
|
|
|
1055
|
-
export function
|
|
3385
|
+
export function deployments2Messages1FromJSON(
|
|
1056
3386
|
jsonString: string,
|
|
1057
|
-
): SafeParseResult<
|
|
3387
|
+
): SafeParseResult<Deployments2Messages1, SDKValidationError> {
|
|
1058
3388
|
return safeParse(
|
|
1059
3389
|
jsonString,
|
|
1060
|
-
(x) =>
|
|
1061
|
-
`Failed to parse '
|
|
3390
|
+
(x) => Deployments2Messages1$inboundSchema.parse(JSON.parse(x)),
|
|
3391
|
+
`Failed to parse 'Deployments2Messages1' from JSON`,
|
|
1062
3392
|
);
|
|
1063
3393
|
}
|
|
1064
3394
|
|
|
1065
3395
|
/** @internal */
|
|
1066
|
-
export const
|
|
1067
|
-
|
|
3396
|
+
export const DeploymentsContentMessages2$inboundSchema: z.ZodType<
|
|
3397
|
+
DeploymentsContentMessages2,
|
|
1068
3398
|
z.ZodTypeDef,
|
|
1069
3399
|
unknown
|
|
1070
3400
|
> = z.union([
|
|
1071
|
-
z.lazy(() =>
|
|
1072
|
-
z.lazy(() =>
|
|
3401
|
+
z.lazy(() => Deployments2Messages1$inboundSchema),
|
|
3402
|
+
z.lazy(() => Deployments2Messages2$inboundSchema),
|
|
3403
|
+
z.lazy(() => Deployments23$inboundSchema),
|
|
1073
3404
|
]);
|
|
1074
3405
|
|
|
1075
3406
|
/** @internal */
|
|
1076
|
-
export type
|
|
3407
|
+
export type DeploymentsContentMessages2$Outbound =
|
|
3408
|
+
| Deployments2Messages1$Outbound
|
|
3409
|
+
| Deployments2Messages2$Outbound
|
|
3410
|
+
| Deployments23$Outbound;
|
|
1077
3411
|
|
|
1078
3412
|
/** @internal */
|
|
1079
|
-
export const
|
|
1080
|
-
|
|
3413
|
+
export const DeploymentsContentMessages2$outboundSchema: z.ZodType<
|
|
3414
|
+
DeploymentsContentMessages2$Outbound,
|
|
1081
3415
|
z.ZodTypeDef,
|
|
1082
|
-
|
|
3416
|
+
DeploymentsContentMessages2
|
|
1083
3417
|
> = z.union([
|
|
1084
|
-
z.lazy(() =>
|
|
1085
|
-
z.lazy(() =>
|
|
3418
|
+
z.lazy(() => Deployments2Messages1$outboundSchema),
|
|
3419
|
+
z.lazy(() => Deployments2Messages2$outboundSchema),
|
|
3420
|
+
z.lazy(() => Deployments23$outboundSchema),
|
|
1086
3421
|
]);
|
|
1087
3422
|
|
|
1088
3423
|
/**
|
|
1089
3424
|
* @internal
|
|
1090
3425
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1091
3426
|
*/
|
|
1092
|
-
export namespace
|
|
1093
|
-
/** @deprecated use `
|
|
1094
|
-
export const inboundSchema =
|
|
1095
|
-
/** @deprecated use `
|
|
1096
|
-
export const outboundSchema =
|
|
1097
|
-
/** @deprecated use `
|
|
1098
|
-
export type Outbound =
|
|
3427
|
+
export namespace DeploymentsContentMessages2$ {
|
|
3428
|
+
/** @deprecated use `DeploymentsContentMessages2$inboundSchema` instead. */
|
|
3429
|
+
export const inboundSchema = DeploymentsContentMessages2$inboundSchema;
|
|
3430
|
+
/** @deprecated use `DeploymentsContentMessages2$outboundSchema` instead. */
|
|
3431
|
+
export const outboundSchema = DeploymentsContentMessages2$outboundSchema;
|
|
3432
|
+
/** @deprecated use `DeploymentsContentMessages2$Outbound` instead. */
|
|
3433
|
+
export type Outbound = DeploymentsContentMessages2$Outbound;
|
|
1099
3434
|
}
|
|
1100
3435
|
|
|
1101
|
-
export function
|
|
1102
|
-
|
|
3436
|
+
export function deploymentsContentMessages2ToJSON(
|
|
3437
|
+
deploymentsContentMessages2: DeploymentsContentMessages2,
|
|
3438
|
+
): string {
|
|
3439
|
+
return JSON.stringify(
|
|
3440
|
+
DeploymentsContentMessages2$outboundSchema.parse(
|
|
3441
|
+
deploymentsContentMessages2,
|
|
3442
|
+
),
|
|
3443
|
+
);
|
|
1103
3444
|
}
|
|
1104
3445
|
|
|
1105
|
-
export function
|
|
3446
|
+
export function deploymentsContentMessages2FromJSON(
|
|
1106
3447
|
jsonString: string,
|
|
1107
|
-
): SafeParseResult<
|
|
3448
|
+
): SafeParseResult<DeploymentsContentMessages2, SDKValidationError> {
|
|
1108
3449
|
return safeParse(
|
|
1109
3450
|
jsonString,
|
|
1110
|
-
(x) =>
|
|
1111
|
-
`Failed to parse '
|
|
3451
|
+
(x) => DeploymentsContentMessages2$inboundSchema.parse(JSON.parse(x)),
|
|
3452
|
+
`Failed to parse 'DeploymentsContentMessages2' from JSON`,
|
|
1112
3453
|
);
|
|
1113
3454
|
}
|
|
1114
3455
|
|
|
1115
3456
|
/** @internal */
|
|
1116
|
-
export const
|
|
1117
|
-
|
|
3457
|
+
export const MessagesContent$inboundSchema: z.ZodType<
|
|
3458
|
+
MessagesContent,
|
|
1118
3459
|
z.ZodTypeDef,
|
|
1119
3460
|
unknown
|
|
1120
3461
|
> = z.union([
|
|
1121
3462
|
z.string(),
|
|
1122
3463
|
z.array(z.union([
|
|
1123
|
-
z.lazy(() =>
|
|
1124
|
-
z.lazy(() =>
|
|
3464
|
+
z.lazy(() => Deployments2Messages1$inboundSchema),
|
|
3465
|
+
z.lazy(() => Deployments2Messages2$inboundSchema),
|
|
3466
|
+
z.lazy(() => Deployments23$inboundSchema),
|
|
1125
3467
|
])),
|
|
1126
3468
|
]);
|
|
1127
3469
|
|
|
1128
3470
|
/** @internal */
|
|
1129
|
-
export type
|
|
3471
|
+
export type MessagesContent$Outbound =
|
|
1130
3472
|
| string
|
|
1131
|
-
| Array<
|
|
3473
|
+
| Array<
|
|
3474
|
+
| Deployments2Messages1$Outbound
|
|
3475
|
+
| Deployments2Messages2$Outbound
|
|
3476
|
+
| Deployments23$Outbound
|
|
3477
|
+
>;
|
|
1132
3478
|
|
|
1133
3479
|
/** @internal */
|
|
1134
|
-
export const
|
|
1135
|
-
|
|
3480
|
+
export const MessagesContent$outboundSchema: z.ZodType<
|
|
3481
|
+
MessagesContent$Outbound,
|
|
1136
3482
|
z.ZodTypeDef,
|
|
1137
|
-
|
|
3483
|
+
MessagesContent
|
|
1138
3484
|
> = z.union([
|
|
1139
3485
|
z.string(),
|
|
1140
3486
|
z.array(z.union([
|
|
1141
|
-
z.lazy(() =>
|
|
1142
|
-
z.lazy(() =>
|
|
3487
|
+
z.lazy(() => Deployments2Messages1$outboundSchema),
|
|
3488
|
+
z.lazy(() => Deployments2Messages2$outboundSchema),
|
|
3489
|
+
z.lazy(() => Deployments23$outboundSchema),
|
|
1143
3490
|
])),
|
|
1144
3491
|
]);
|
|
1145
3492
|
|
|
@@ -1147,171 +3494,256 @@ export const DeploymentsContent$outboundSchema: z.ZodType<
|
|
|
1147
3494
|
* @internal
|
|
1148
3495
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1149
3496
|
*/
|
|
1150
|
-
export namespace
|
|
1151
|
-
/** @deprecated use `
|
|
1152
|
-
export const inboundSchema =
|
|
1153
|
-
/** @deprecated use `
|
|
1154
|
-
export const outboundSchema =
|
|
1155
|
-
/** @deprecated use `
|
|
1156
|
-
export type Outbound =
|
|
3497
|
+
export namespace MessagesContent$ {
|
|
3498
|
+
/** @deprecated use `MessagesContent$inboundSchema` instead. */
|
|
3499
|
+
export const inboundSchema = MessagesContent$inboundSchema;
|
|
3500
|
+
/** @deprecated use `MessagesContent$outboundSchema` instead. */
|
|
3501
|
+
export const outboundSchema = MessagesContent$outboundSchema;
|
|
3502
|
+
/** @deprecated use `MessagesContent$Outbound` instead. */
|
|
3503
|
+
export type Outbound = MessagesContent$Outbound;
|
|
1157
3504
|
}
|
|
1158
3505
|
|
|
1159
|
-
export function
|
|
1160
|
-
|
|
3506
|
+
export function messagesContentToJSON(
|
|
3507
|
+
messagesContent: MessagesContent,
|
|
1161
3508
|
): string {
|
|
1162
|
-
return JSON.stringify(
|
|
1163
|
-
|
|
3509
|
+
return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
|
|
3510
|
+
}
|
|
3511
|
+
|
|
3512
|
+
export function messagesContentFromJSON(
|
|
3513
|
+
jsonString: string,
|
|
3514
|
+
): SafeParseResult<MessagesContent, SDKValidationError> {
|
|
3515
|
+
return safeParse(
|
|
3516
|
+
jsonString,
|
|
3517
|
+
(x) => MessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
3518
|
+
`Failed to parse 'MessagesContent' from JSON`,
|
|
1164
3519
|
);
|
|
1165
3520
|
}
|
|
1166
3521
|
|
|
1167
|
-
|
|
3522
|
+
/** @internal */
|
|
3523
|
+
export const Messages3$inboundSchema: z.ZodType<
|
|
3524
|
+
Messages3,
|
|
3525
|
+
z.ZodTypeDef,
|
|
3526
|
+
unknown
|
|
3527
|
+
> = z.object({
|
|
3528
|
+
role: DeploymentsMessages3Role$inboundSchema,
|
|
3529
|
+
name: z.string().optional(),
|
|
3530
|
+
content: z.union([
|
|
3531
|
+
z.string(),
|
|
3532
|
+
z.array(z.union([
|
|
3533
|
+
z.lazy(() => Deployments2Messages1$inboundSchema),
|
|
3534
|
+
z.lazy(() => Deployments2Messages2$inboundSchema),
|
|
3535
|
+
z.lazy(() => Deployments23$inboundSchema),
|
|
3536
|
+
])),
|
|
3537
|
+
]),
|
|
3538
|
+
});
|
|
3539
|
+
|
|
3540
|
+
/** @internal */
|
|
3541
|
+
export type Messages3$Outbound = {
|
|
3542
|
+
role: string;
|
|
3543
|
+
name?: string | undefined;
|
|
3544
|
+
content:
|
|
3545
|
+
| string
|
|
3546
|
+
| Array<
|
|
3547
|
+
| Deployments2Messages1$Outbound
|
|
3548
|
+
| Deployments2Messages2$Outbound
|
|
3549
|
+
| Deployments23$Outbound
|
|
3550
|
+
>;
|
|
3551
|
+
};
|
|
3552
|
+
|
|
3553
|
+
/** @internal */
|
|
3554
|
+
export const Messages3$outboundSchema: z.ZodType<
|
|
3555
|
+
Messages3$Outbound,
|
|
3556
|
+
z.ZodTypeDef,
|
|
3557
|
+
Messages3
|
|
3558
|
+
> = z.object({
|
|
3559
|
+
role: DeploymentsMessages3Role$outboundSchema,
|
|
3560
|
+
name: z.string().optional(),
|
|
3561
|
+
content: z.union([
|
|
3562
|
+
z.string(),
|
|
3563
|
+
z.array(z.union([
|
|
3564
|
+
z.lazy(() => Deployments2Messages1$outboundSchema),
|
|
3565
|
+
z.lazy(() => Deployments2Messages2$outboundSchema),
|
|
3566
|
+
z.lazy(() => Deployments23$outboundSchema),
|
|
3567
|
+
])),
|
|
3568
|
+
]),
|
|
3569
|
+
});
|
|
3570
|
+
|
|
3571
|
+
/**
|
|
3572
|
+
* @internal
|
|
3573
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3574
|
+
*/
|
|
3575
|
+
export namespace Messages3$ {
|
|
3576
|
+
/** @deprecated use `Messages3$inboundSchema` instead. */
|
|
3577
|
+
export const inboundSchema = Messages3$inboundSchema;
|
|
3578
|
+
/** @deprecated use `Messages3$outboundSchema` instead. */
|
|
3579
|
+
export const outboundSchema = Messages3$outboundSchema;
|
|
3580
|
+
/** @deprecated use `Messages3$Outbound` instead. */
|
|
3581
|
+
export type Outbound = Messages3$Outbound;
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3584
|
+
export function messages3ToJSON(messages3: Messages3): string {
|
|
3585
|
+
return JSON.stringify(Messages3$outboundSchema.parse(messages3));
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
export function messages3FromJSON(
|
|
1168
3589
|
jsonString: string,
|
|
1169
|
-
): SafeParseResult<
|
|
3590
|
+
): SafeParseResult<Messages3, SDKValidationError> {
|
|
1170
3591
|
return safeParse(
|
|
1171
3592
|
jsonString,
|
|
1172
|
-
(x) =>
|
|
1173
|
-
`Failed to parse '
|
|
3593
|
+
(x) => Messages3$inboundSchema.parse(JSON.parse(x)),
|
|
3594
|
+
`Failed to parse 'Messages3' from JSON`,
|
|
1174
3595
|
);
|
|
1175
3596
|
}
|
|
1176
3597
|
|
|
1177
3598
|
/** @internal */
|
|
1178
|
-
export const
|
|
1179
|
-
typeof
|
|
1180
|
-
> = z.nativeEnum(
|
|
3599
|
+
export const DeploymentsMessagesRole$inboundSchema: z.ZodNativeEnum<
|
|
3600
|
+
typeof DeploymentsMessagesRole
|
|
3601
|
+
> = z.nativeEnum(DeploymentsMessagesRole);
|
|
1181
3602
|
|
|
1182
3603
|
/** @internal */
|
|
1183
|
-
export const
|
|
1184
|
-
typeof
|
|
1185
|
-
> =
|
|
3604
|
+
export const DeploymentsMessagesRole$outboundSchema: z.ZodNativeEnum<
|
|
3605
|
+
typeof DeploymentsMessagesRole
|
|
3606
|
+
> = DeploymentsMessagesRole$inboundSchema;
|
|
1186
3607
|
|
|
1187
3608
|
/**
|
|
1188
3609
|
* @internal
|
|
1189
3610
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1190
3611
|
*/
|
|
1191
|
-
export namespace
|
|
1192
|
-
/** @deprecated use `
|
|
1193
|
-
export const inboundSchema =
|
|
1194
|
-
/** @deprecated use `
|
|
1195
|
-
export const outboundSchema =
|
|
3612
|
+
export namespace DeploymentsMessagesRole$ {
|
|
3613
|
+
/** @deprecated use `DeploymentsMessagesRole$inboundSchema` instead. */
|
|
3614
|
+
export const inboundSchema = DeploymentsMessagesRole$inboundSchema;
|
|
3615
|
+
/** @deprecated use `DeploymentsMessagesRole$outboundSchema` instead. */
|
|
3616
|
+
export const outboundSchema = DeploymentsMessagesRole$outboundSchema;
|
|
1196
3617
|
}
|
|
1197
3618
|
|
|
1198
3619
|
/** @internal */
|
|
1199
|
-
export const
|
|
1200
|
-
|
|
3620
|
+
export const Messages2$inboundSchema: z.ZodType<
|
|
3621
|
+
Messages2,
|
|
1201
3622
|
z.ZodTypeDef,
|
|
1202
3623
|
unknown
|
|
1203
3624
|
> = z.object({
|
|
1204
|
-
|
|
1205
|
-
|
|
3625
|
+
role: DeploymentsMessagesRole$inboundSchema,
|
|
3626
|
+
content: z.string(),
|
|
3627
|
+
name: z.string().optional(),
|
|
1206
3628
|
});
|
|
1207
3629
|
|
|
1208
3630
|
/** @internal */
|
|
1209
|
-
export type
|
|
1210
|
-
|
|
1211
|
-
|
|
3631
|
+
export type Messages2$Outbound = {
|
|
3632
|
+
role: string;
|
|
3633
|
+
content: string;
|
|
3634
|
+
name?: string | undefined;
|
|
1212
3635
|
};
|
|
1213
3636
|
|
|
1214
3637
|
/** @internal */
|
|
1215
|
-
export const
|
|
1216
|
-
|
|
3638
|
+
export const Messages2$outboundSchema: z.ZodType<
|
|
3639
|
+
Messages2$Outbound,
|
|
1217
3640
|
z.ZodTypeDef,
|
|
1218
|
-
|
|
3641
|
+
Messages2
|
|
1219
3642
|
> = z.object({
|
|
1220
|
-
|
|
1221
|
-
|
|
3643
|
+
role: DeploymentsMessagesRole$outboundSchema,
|
|
3644
|
+
content: z.string(),
|
|
3645
|
+
name: z.string().optional(),
|
|
1222
3646
|
});
|
|
1223
3647
|
|
|
1224
3648
|
/**
|
|
1225
3649
|
* @internal
|
|
1226
3650
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1227
3651
|
*/
|
|
1228
|
-
export namespace
|
|
1229
|
-
/** @deprecated use `
|
|
1230
|
-
export const inboundSchema =
|
|
1231
|
-
/** @deprecated use `
|
|
1232
|
-
export const outboundSchema =
|
|
1233
|
-
/** @deprecated use `
|
|
1234
|
-
export type Outbound =
|
|
3652
|
+
export namespace Messages2$ {
|
|
3653
|
+
/** @deprecated use `Messages2$inboundSchema` instead. */
|
|
3654
|
+
export const inboundSchema = Messages2$inboundSchema;
|
|
3655
|
+
/** @deprecated use `Messages2$outboundSchema` instead. */
|
|
3656
|
+
export const outboundSchema = Messages2$outboundSchema;
|
|
3657
|
+
/** @deprecated use `Messages2$Outbound` instead. */
|
|
3658
|
+
export type Outbound = Messages2$Outbound;
|
|
1235
3659
|
}
|
|
1236
3660
|
|
|
1237
|
-
export function
|
|
1238
|
-
|
|
1239
|
-
): string {
|
|
1240
|
-
return JSON.stringify(
|
|
1241
|
-
DeploymentsFunction$outboundSchema.parse(deploymentsFunction),
|
|
1242
|
-
);
|
|
3661
|
+
export function messages2ToJSON(messages2: Messages2): string {
|
|
3662
|
+
return JSON.stringify(Messages2$outboundSchema.parse(messages2));
|
|
1243
3663
|
}
|
|
1244
3664
|
|
|
1245
|
-
export function
|
|
3665
|
+
export function messages2FromJSON(
|
|
1246
3666
|
jsonString: string,
|
|
1247
|
-
): SafeParseResult<
|
|
3667
|
+
): SafeParseResult<Messages2, SDKValidationError> {
|
|
1248
3668
|
return safeParse(
|
|
1249
3669
|
jsonString,
|
|
1250
|
-
(x) =>
|
|
1251
|
-
`Failed to parse '
|
|
3670
|
+
(x) => Messages2$inboundSchema.parse(JSON.parse(x)),
|
|
3671
|
+
`Failed to parse 'Messages2' from JSON`,
|
|
1252
3672
|
);
|
|
1253
3673
|
}
|
|
1254
3674
|
|
|
1255
3675
|
/** @internal */
|
|
1256
|
-
export const
|
|
1257
|
-
|
|
3676
|
+
export const MessagesRole$inboundSchema: z.ZodNativeEnum<typeof MessagesRole> =
|
|
3677
|
+
z.nativeEnum(MessagesRole);
|
|
3678
|
+
|
|
3679
|
+
/** @internal */
|
|
3680
|
+
export const MessagesRole$outboundSchema: z.ZodNativeEnum<typeof MessagesRole> =
|
|
3681
|
+
MessagesRole$inboundSchema;
|
|
3682
|
+
|
|
3683
|
+
/**
|
|
3684
|
+
* @internal
|
|
3685
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3686
|
+
*/
|
|
3687
|
+
export namespace MessagesRole$ {
|
|
3688
|
+
/** @deprecated use `MessagesRole$inboundSchema` instead. */
|
|
3689
|
+
export const inboundSchema = MessagesRole$inboundSchema;
|
|
3690
|
+
/** @deprecated use `MessagesRole$outboundSchema` instead. */
|
|
3691
|
+
export const outboundSchema = MessagesRole$outboundSchema;
|
|
3692
|
+
}
|
|
3693
|
+
|
|
3694
|
+
/** @internal */
|
|
3695
|
+
export const Messages1$inboundSchema: z.ZodType<
|
|
3696
|
+
Messages1,
|
|
1258
3697
|
z.ZodTypeDef,
|
|
1259
3698
|
unknown
|
|
1260
3699
|
> = z.object({
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
function: z.lazy(() => DeploymentsFunction$inboundSchema),
|
|
3700
|
+
role: MessagesRole$inboundSchema,
|
|
3701
|
+
content: z.string(),
|
|
3702
|
+
name: z.string().optional(),
|
|
1265
3703
|
});
|
|
1266
3704
|
|
|
1267
3705
|
/** @internal */
|
|
1268
|
-
export type
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
function: DeploymentsFunction$Outbound;
|
|
3706
|
+
export type Messages1$Outbound = {
|
|
3707
|
+
role: string;
|
|
3708
|
+
content: string;
|
|
3709
|
+
name?: string | undefined;
|
|
1273
3710
|
};
|
|
1274
3711
|
|
|
1275
3712
|
/** @internal */
|
|
1276
|
-
export const
|
|
1277
|
-
|
|
3713
|
+
export const Messages1$outboundSchema: z.ZodType<
|
|
3714
|
+
Messages1$Outbound,
|
|
1278
3715
|
z.ZodTypeDef,
|
|
1279
|
-
|
|
3716
|
+
Messages1
|
|
1280
3717
|
> = z.object({
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
function: z.lazy(() => DeploymentsFunction$outboundSchema),
|
|
3718
|
+
role: MessagesRole$outboundSchema,
|
|
3719
|
+
content: z.string(),
|
|
3720
|
+
name: z.string().optional(),
|
|
1285
3721
|
});
|
|
1286
3722
|
|
|
1287
3723
|
/**
|
|
1288
3724
|
* @internal
|
|
1289
3725
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1290
3726
|
*/
|
|
1291
|
-
export namespace
|
|
1292
|
-
/** @deprecated use `
|
|
1293
|
-
export const inboundSchema =
|
|
1294
|
-
/** @deprecated use `
|
|
1295
|
-
export const outboundSchema =
|
|
1296
|
-
/** @deprecated use `
|
|
1297
|
-
export type Outbound =
|
|
3727
|
+
export namespace Messages1$ {
|
|
3728
|
+
/** @deprecated use `Messages1$inboundSchema` instead. */
|
|
3729
|
+
export const inboundSchema = Messages1$inboundSchema;
|
|
3730
|
+
/** @deprecated use `Messages1$outboundSchema` instead. */
|
|
3731
|
+
export const outboundSchema = Messages1$outboundSchema;
|
|
3732
|
+
/** @deprecated use `Messages1$Outbound` instead. */
|
|
3733
|
+
export type Outbound = Messages1$Outbound;
|
|
1298
3734
|
}
|
|
1299
3735
|
|
|
1300
|
-
export function
|
|
1301
|
-
|
|
1302
|
-
): string {
|
|
1303
|
-
return JSON.stringify(
|
|
1304
|
-
DeploymentsToolCalls$outboundSchema.parse(deploymentsToolCalls),
|
|
1305
|
-
);
|
|
3736
|
+
export function messages1ToJSON(messages1: Messages1): string {
|
|
3737
|
+
return JSON.stringify(Messages1$outboundSchema.parse(messages1));
|
|
1306
3738
|
}
|
|
1307
3739
|
|
|
1308
|
-
export function
|
|
3740
|
+
export function messages1FromJSON(
|
|
1309
3741
|
jsonString: string,
|
|
1310
|
-
): SafeParseResult<
|
|
3742
|
+
): SafeParseResult<Messages1, SDKValidationError> {
|
|
1311
3743
|
return safeParse(
|
|
1312
3744
|
jsonString,
|
|
1313
|
-
(x) =>
|
|
1314
|
-
`Failed to parse '
|
|
3745
|
+
(x) => Messages1$inboundSchema.parse(JSON.parse(x)),
|
|
3746
|
+
`Failed to parse 'Messages1' from JSON`,
|
|
1315
3747
|
);
|
|
1316
3748
|
}
|
|
1317
3749
|
|
|
@@ -1320,51 +3752,34 @@ export const Messages$inboundSchema: z.ZodType<
|
|
|
1320
3752
|
Messages,
|
|
1321
3753
|
z.ZodTypeDef,
|
|
1322
3754
|
unknown
|
|
1323
|
-
> = z.
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
])),
|
|
1331
|
-
]),
|
|
1332
|
-
tool_calls: z.array(z.lazy(() => DeploymentsToolCalls$inboundSchema))
|
|
1333
|
-
.optional(),
|
|
1334
|
-
}).transform((v) => {
|
|
1335
|
-
return remap$(v, {
|
|
1336
|
-
"tool_calls": "toolCalls",
|
|
1337
|
-
});
|
|
1338
|
-
});
|
|
3755
|
+
> = z.union([
|
|
3756
|
+
z.lazy(() => Messages1$inboundSchema),
|
|
3757
|
+
z.lazy(() => Messages2$inboundSchema),
|
|
3758
|
+
z.lazy(() => Messages3$inboundSchema),
|
|
3759
|
+
z.lazy(() => Messages5$inboundSchema),
|
|
3760
|
+
z.lazy(() => Messages4$inboundSchema),
|
|
3761
|
+
]);
|
|
1339
3762
|
|
|
1340
3763
|
/** @internal */
|
|
1341
|
-
export type Messages$Outbound =
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
3764
|
+
export type Messages$Outbound =
|
|
3765
|
+
| Messages1$Outbound
|
|
3766
|
+
| Messages2$Outbound
|
|
3767
|
+
| Messages3$Outbound
|
|
3768
|
+
| Messages5$Outbound
|
|
3769
|
+
| Messages4$Outbound;
|
|
1346
3770
|
|
|
1347
3771
|
/** @internal */
|
|
1348
3772
|
export const Messages$outboundSchema: z.ZodType<
|
|
1349
3773
|
Messages$Outbound,
|
|
1350
3774
|
z.ZodTypeDef,
|
|
1351
3775
|
Messages
|
|
1352
|
-
> = z.
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
])),
|
|
1360
|
-
]),
|
|
1361
|
-
toolCalls: z.array(z.lazy(() => DeploymentsToolCalls$outboundSchema))
|
|
1362
|
-
.optional(),
|
|
1363
|
-
}).transform((v) => {
|
|
1364
|
-
return remap$(v, {
|
|
1365
|
-
toolCalls: "tool_calls",
|
|
1366
|
-
});
|
|
1367
|
-
});
|
|
3776
|
+
> = z.union([
|
|
3777
|
+
z.lazy(() => Messages1$outboundSchema),
|
|
3778
|
+
z.lazy(() => Messages2$outboundSchema),
|
|
3779
|
+
z.lazy(() => Messages3$outboundSchema),
|
|
3780
|
+
z.lazy(() => Messages5$outboundSchema),
|
|
3781
|
+
z.lazy(() => Messages4$outboundSchema),
|
|
3782
|
+
]);
|
|
1368
3783
|
|
|
1369
3784
|
/**
|
|
1370
3785
|
* @internal
|
|
@@ -1581,9 +3996,24 @@ export const Deployments$inboundSchema: z.ZodType<
|
|
|
1581
3996
|
key: z.string(),
|
|
1582
3997
|
inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
|
|
1583
3998
|
context: z.record(z.any()).optional(),
|
|
1584
|
-
prefix_messages: z.array(
|
|
1585
|
-
.
|
|
1586
|
-
|
|
3999
|
+
prefix_messages: z.array(
|
|
4000
|
+
z.union([
|
|
4001
|
+
z.lazy(() => One$inboundSchema),
|
|
4002
|
+
z.lazy(() => Two$inboundSchema),
|
|
4003
|
+
z.lazy(() => Three$inboundSchema),
|
|
4004
|
+
z.lazy(() => Five$inboundSchema),
|
|
4005
|
+
z.lazy(() => Four$inboundSchema),
|
|
4006
|
+
]),
|
|
4007
|
+
).optional(),
|
|
4008
|
+
messages: z.array(
|
|
4009
|
+
z.union([
|
|
4010
|
+
z.lazy(() => Messages1$inboundSchema),
|
|
4011
|
+
z.lazy(() => Messages2$inboundSchema),
|
|
4012
|
+
z.lazy(() => Messages3$inboundSchema),
|
|
4013
|
+
z.lazy(() => Messages5$inboundSchema),
|
|
4014
|
+
z.lazy(() => Messages4$inboundSchema),
|
|
4015
|
+
]),
|
|
4016
|
+
).optional(),
|
|
1587
4017
|
file_ids: z.array(z.string()).optional(),
|
|
1588
4018
|
metadata: z.record(z.any()).optional(),
|
|
1589
4019
|
extra_params: z.record(z.any()).optional(),
|
|
@@ -1603,8 +4033,24 @@ export type Deployments$Outbound = {
|
|
|
1603
4033
|
key: string;
|
|
1604
4034
|
inputs?: { [k: string]: string | number | boolean } | undefined;
|
|
1605
4035
|
context?: { [k: string]: any } | undefined;
|
|
1606
|
-
prefix_messages?:
|
|
1607
|
-
|
|
4036
|
+
prefix_messages?:
|
|
4037
|
+
| Array<
|
|
4038
|
+
| One$Outbound
|
|
4039
|
+
| Two$Outbound
|
|
4040
|
+
| Three$Outbound
|
|
4041
|
+
| Five$Outbound
|
|
4042
|
+
| Four$Outbound
|
|
4043
|
+
>
|
|
4044
|
+
| undefined;
|
|
4045
|
+
messages?:
|
|
4046
|
+
| Array<
|
|
4047
|
+
| Messages1$Outbound
|
|
4048
|
+
| Messages2$Outbound
|
|
4049
|
+
| Messages3$Outbound
|
|
4050
|
+
| Messages5$Outbound
|
|
4051
|
+
| Messages4$Outbound
|
|
4052
|
+
>
|
|
4053
|
+
| undefined;
|
|
1608
4054
|
file_ids?: Array<string> | undefined;
|
|
1609
4055
|
metadata?: { [k: string]: any } | undefined;
|
|
1610
4056
|
extra_params?: { [k: string]: any } | undefined;
|
|
@@ -1621,9 +4067,24 @@ export const Deployments$outboundSchema: z.ZodType<
|
|
|
1621
4067
|
key: z.string(),
|
|
1622
4068
|
inputs: z.record(z.union([z.string(), z.number(), z.boolean()])).optional(),
|
|
1623
4069
|
context: z.record(z.any()).optional(),
|
|
1624
|
-
prefixMessages: z.array(
|
|
1625
|
-
.
|
|
1626
|
-
|
|
4070
|
+
prefixMessages: z.array(
|
|
4071
|
+
z.union([
|
|
4072
|
+
z.lazy(() => One$outboundSchema),
|
|
4073
|
+
z.lazy(() => Two$outboundSchema),
|
|
4074
|
+
z.lazy(() => Three$outboundSchema),
|
|
4075
|
+
z.lazy(() => Five$outboundSchema),
|
|
4076
|
+
z.lazy(() => Four$outboundSchema),
|
|
4077
|
+
]),
|
|
4078
|
+
).optional(),
|
|
4079
|
+
messages: z.array(
|
|
4080
|
+
z.union([
|
|
4081
|
+
z.lazy(() => Messages1$outboundSchema),
|
|
4082
|
+
z.lazy(() => Messages2$outboundSchema),
|
|
4083
|
+
z.lazy(() => Messages3$outboundSchema),
|
|
4084
|
+
z.lazy(() => Messages5$outboundSchema),
|
|
4085
|
+
z.lazy(() => Messages4$outboundSchema),
|
|
4086
|
+
]),
|
|
4087
|
+
).optional(),
|
|
1627
4088
|
fileIds: z.array(z.string()).optional(),
|
|
1628
4089
|
metadata: z.record(z.any()).optional(),
|
|
1629
4090
|
extraParams: z.record(z.any()).optional(),
|