@orq-ai/node 4.0.5 → 4.1.0-rc.1
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/bin/mcp-server.js +214 -217
- package/bin/mcp-server.js.map +39 -39
- package/docs/sdks/agents/README.md +8 -4
- package/docs/sdks/budgets/README.md +4 -2
- package/docs/sdks/tools/README.md +2 -2
- package/examples/package-lock.json +4 -7
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +4 -3
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- 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/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/FUNCTIONS.md +0 -103
- package/packages/orq-rc/README.md +0 -901
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/agents/README.md +0 -1064
- package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
- package/packages/orq-rc/docs/sdks/chunking/README.md +0 -97
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
- package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
- package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
- package/packages/orq-rc/docs/sdks/files/README.md +0 -301
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1487
- package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1171
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
- package/packages/orq-rc/docs/sdks/models/README.md +0 -76
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
- package/packages/orq-rc/docs/sdks/responses/README.md +0 -134
- package/packages/orq-rc/docs/sdks/tools/README.md +0 -420
- package/packages/orq-rc/examples/README.md +0 -31
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/examples/package-lock.json +0 -619
- package/packages/orq-rc/examples/package.json +0 -18
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -3047
- package/packages/orq-rc/package.json +0 -40
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -174
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -165
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -191
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
- package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -483
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -135
- package/packages/orq-rc/src/lib/files.ts +0 -82
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -345
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -407
- package/packages/orq-rc/src/lib/security.ts +0 -264
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
- package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
- package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
- package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
- package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
- package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
- package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
- package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
- package/packages/orq-rc/src/mcp-server/server.ts +0 -251
- package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -6261
- package/packages/orq-rc/src/models/components/security.ts +0 -56
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -26
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8215
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -1353
- package/packages/orq-rc/src/models/operations/createbudget.ts +0 -582
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -5379
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -694
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -6857
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -229
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -242
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -6179
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -3956
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5091
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -8055
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -980
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2054
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -8269
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -261
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -280
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2033
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2292
- package/packages/orq-rc/src/models/operations/getbudget.ts +0 -357
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -5543
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1924
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1942
- package/packages/orq-rc/src/models/operations/index.ts +0 -98
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1893
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -3614
- package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -494
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -413
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -3169
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1068
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2041
- package/packages/orq-rc/src/models/operations/parse.ts +0 -1013
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3741
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2985
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -171
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -189
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2347
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -7613
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -9732
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -15817
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -8649
- package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -502
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -5374
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -7197
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -238
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -251
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -463
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -6410
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4279
- package/packages/orq-rc/src/sdk/agents.ts +0 -196
- package/packages/orq-rc/src/sdk/budgets.ts +0 -99
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/contacts.ts +0 -99
- package/packages/orq-rc/src/sdk/datasets.ts +0 -204
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/evals.ts +0 -69
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/responses.ts +0 -29
- package/packages/orq-rc/src/sdk/sdk.ts +0 -97
- package/packages/orq-rc/src/sdk/tools.ts +0 -99
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -45
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/src/types/unrecognized.ts +0 -27
- package/packages/orq-rc/tsconfig.json +0 -41
|
@@ -1,2054 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type DeploymentsRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
15
|
-
*/
|
|
16
|
-
limit?: number | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
19
|
-
*/
|
|
20
|
-
startingAfter?: string | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
23
|
-
*/
|
|
24
|
-
endingBefore?: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const DeploymentsObject = {
|
|
28
|
-
List: "list",
|
|
29
|
-
} as const;
|
|
30
|
-
export type DeploymentsObject = ClosedEnum<typeof DeploymentsObject>;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
34
|
-
*/
|
|
35
|
-
export const DeploymentsType = {
|
|
36
|
-
Function: "function",
|
|
37
|
-
} as const;
|
|
38
|
-
/**
|
|
39
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
40
|
-
*/
|
|
41
|
-
export type DeploymentsType = ClosedEnum<typeof DeploymentsType>;
|
|
42
|
-
|
|
43
|
-
export const DeploymentsDeploymentsResponseType = {
|
|
44
|
-
Object: "object",
|
|
45
|
-
} as const;
|
|
46
|
-
export type DeploymentsDeploymentsResponseType = ClosedEnum<
|
|
47
|
-
typeof DeploymentsDeploymentsResponseType
|
|
48
|
-
>;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* The parameters the functions accepts, described as a JSON Schema object.
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
*
|
|
55
|
-
* Omitting `parameters` defines a function with an empty parameter list.
|
|
56
|
-
*/
|
|
57
|
-
export type DeploymentsParameters = {
|
|
58
|
-
type: DeploymentsDeploymentsResponseType;
|
|
59
|
-
properties: { [k: string]: any };
|
|
60
|
-
required?: Array<string> | undefined;
|
|
61
|
-
additionalProperties?: boolean | undefined;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export type DeploymentsFunction = {
|
|
65
|
-
/**
|
|
66
|
-
* The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
67
|
-
*/
|
|
68
|
-
name: string;
|
|
69
|
-
/**
|
|
70
|
-
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
71
|
-
*/
|
|
72
|
-
description?: string | undefined;
|
|
73
|
-
strict?: boolean | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* The parameters the functions accepts, described as a JSON Schema object.
|
|
76
|
-
*
|
|
77
|
-
* @remarks
|
|
78
|
-
*
|
|
79
|
-
* Omitting `parameters` defines a function with an empty parameter list.
|
|
80
|
-
*/
|
|
81
|
-
parameters: DeploymentsParameters;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export type DeploymentsTools = {
|
|
85
|
-
displayName?: string | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
88
|
-
*/
|
|
89
|
-
type: DeploymentsType;
|
|
90
|
-
function: DeploymentsFunction;
|
|
91
|
-
id?: number | undefined;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* The modality of the model
|
|
96
|
-
*/
|
|
97
|
-
export const DeploymentsModelType = {
|
|
98
|
-
Chat: "chat",
|
|
99
|
-
Completion: "completion",
|
|
100
|
-
Embedding: "embedding",
|
|
101
|
-
Image: "image",
|
|
102
|
-
Tts: "tts",
|
|
103
|
-
Stt: "stt",
|
|
104
|
-
Rerank: "rerank",
|
|
105
|
-
Moderation: "moderation",
|
|
106
|
-
Vision: "vision",
|
|
107
|
-
} as const;
|
|
108
|
-
/**
|
|
109
|
-
* The modality of the model
|
|
110
|
-
*/
|
|
111
|
-
export type DeploymentsModelType = ClosedEnum<typeof DeploymentsModelType>;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Only supported on `image` models.
|
|
115
|
-
*/
|
|
116
|
-
export const DeploymentsFormat = {
|
|
117
|
-
Url: "url",
|
|
118
|
-
B64Json: "b64_json",
|
|
119
|
-
Text: "text",
|
|
120
|
-
JsonObject: "json_object",
|
|
121
|
-
} as const;
|
|
122
|
-
/**
|
|
123
|
-
* Only supported on `image` models.
|
|
124
|
-
*/
|
|
125
|
-
export type DeploymentsFormat = ClosedEnum<typeof DeploymentsFormat>;
|
|
126
|
-
|
|
127
|
-
export const DeploymentsResponseFormat6 = {
|
|
128
|
-
Json: "json",
|
|
129
|
-
Text: "text",
|
|
130
|
-
Srt: "srt",
|
|
131
|
-
VerboseJson: "verbose_json",
|
|
132
|
-
Vtt: "vtt",
|
|
133
|
-
} as const;
|
|
134
|
-
export type DeploymentsResponseFormat6 = ClosedEnum<
|
|
135
|
-
typeof DeploymentsResponseFormat6
|
|
136
|
-
>;
|
|
137
|
-
|
|
138
|
-
export const DeploymentsResponseFormat5 = {
|
|
139
|
-
Url: "url",
|
|
140
|
-
Base64Json: "base64_json",
|
|
141
|
-
} as const;
|
|
142
|
-
export type DeploymentsResponseFormat5 = ClosedEnum<
|
|
143
|
-
typeof DeploymentsResponseFormat5
|
|
144
|
-
>;
|
|
145
|
-
|
|
146
|
-
export const DeploymentsResponseFormat4 = {
|
|
147
|
-
Mp3: "mp3",
|
|
148
|
-
Opus: "opus",
|
|
149
|
-
Aac: "aac",
|
|
150
|
-
Flac: "flac",
|
|
151
|
-
Wav: "wav",
|
|
152
|
-
Pcm: "pcm",
|
|
153
|
-
} as const;
|
|
154
|
-
export type DeploymentsResponseFormat4 = ClosedEnum<
|
|
155
|
-
typeof DeploymentsResponseFormat4
|
|
156
|
-
>;
|
|
157
|
-
|
|
158
|
-
export const DeploymentsResponseFormatDeploymentsType = {
|
|
159
|
-
Text: "text",
|
|
160
|
-
} as const;
|
|
161
|
-
export type DeploymentsResponseFormatDeploymentsType = ClosedEnum<
|
|
162
|
-
typeof DeploymentsResponseFormatDeploymentsType
|
|
163
|
-
>;
|
|
164
|
-
|
|
165
|
-
export type DeploymentsResponseFormat3 = {
|
|
166
|
-
type: DeploymentsResponseFormatDeploymentsType;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
export const DeploymentsResponseFormatType = {
|
|
170
|
-
JsonObject: "json_object",
|
|
171
|
-
} as const;
|
|
172
|
-
export type DeploymentsResponseFormatType = ClosedEnum<
|
|
173
|
-
typeof DeploymentsResponseFormatType
|
|
174
|
-
>;
|
|
175
|
-
|
|
176
|
-
export type DeploymentsResponseFormat2 = {
|
|
177
|
-
type: DeploymentsResponseFormatType;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
export const DeploymentsResponseFormatDeploymentsResponseType = {
|
|
181
|
-
JsonSchema: "json_schema",
|
|
182
|
-
} as const;
|
|
183
|
-
export type DeploymentsResponseFormatDeploymentsResponseType = ClosedEnum<
|
|
184
|
-
typeof DeploymentsResponseFormatDeploymentsResponseType
|
|
185
|
-
>;
|
|
186
|
-
|
|
187
|
-
export type DeploymentsResponseFormatJsonSchema = {
|
|
188
|
-
name: string;
|
|
189
|
-
description?: string | undefined;
|
|
190
|
-
strict?: boolean | undefined;
|
|
191
|
-
schema: { [k: string]: any };
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
export type DeploymentsResponseFormat1 = {
|
|
195
|
-
type: DeploymentsResponseFormatDeploymentsResponseType;
|
|
196
|
-
displayName?: string | undefined;
|
|
197
|
-
jsonSchema: DeploymentsResponseFormatJsonSchema;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* An object specifying the format that the model must output.
|
|
202
|
-
*
|
|
203
|
-
* @remarks
|
|
204
|
-
*
|
|
205
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
206
|
-
*
|
|
207
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
208
|
-
*
|
|
209
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
210
|
-
*/
|
|
211
|
-
export type DeploymentsResponseFormat =
|
|
212
|
-
| DeploymentsResponseFormat1
|
|
213
|
-
| DeploymentsResponseFormat2
|
|
214
|
-
| DeploymentsResponseFormat3
|
|
215
|
-
| DeploymentsResponseFormat4
|
|
216
|
-
| DeploymentsResponseFormat5
|
|
217
|
-
| DeploymentsResponseFormat6;
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
221
|
-
*/
|
|
222
|
-
export const DeploymentsPhotoRealVersion = {
|
|
223
|
-
V1: "v1",
|
|
224
|
-
V2: "v2",
|
|
225
|
-
} as const;
|
|
226
|
-
/**
|
|
227
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
228
|
-
*/
|
|
229
|
-
export type DeploymentsPhotoRealVersion = ClosedEnum<
|
|
230
|
-
typeof DeploymentsPhotoRealVersion
|
|
231
|
-
>;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* The format to return the embeddings
|
|
235
|
-
*/
|
|
236
|
-
export const DeploymentsEncodingFormat = {
|
|
237
|
-
Float: "float",
|
|
238
|
-
Base64: "base64",
|
|
239
|
-
} as const;
|
|
240
|
-
/**
|
|
241
|
-
* The format to return the embeddings
|
|
242
|
-
*/
|
|
243
|
-
export type DeploymentsEncodingFormat = ClosedEnum<
|
|
244
|
-
typeof DeploymentsEncodingFormat
|
|
245
|
-
>;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
249
|
-
*/
|
|
250
|
-
export const DeploymentsReasoningEffort = {
|
|
251
|
-
None: "none",
|
|
252
|
-
Disable: "disable",
|
|
253
|
-
Minimal: "minimal",
|
|
254
|
-
Low: "low",
|
|
255
|
-
Medium: "medium",
|
|
256
|
-
High: "high",
|
|
257
|
-
} as const;
|
|
258
|
-
/**
|
|
259
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
260
|
-
*/
|
|
261
|
-
export type DeploymentsReasoningEffort = ClosedEnum<
|
|
262
|
-
typeof DeploymentsReasoningEffort
|
|
263
|
-
>;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Controls the verbosity of the model output.
|
|
267
|
-
*/
|
|
268
|
-
export const DeploymentsVerbosity = {
|
|
269
|
-
Low: "low",
|
|
270
|
-
Medium: "medium",
|
|
271
|
-
High: "high",
|
|
272
|
-
} as const;
|
|
273
|
-
/**
|
|
274
|
-
* Controls the verbosity of the model output.
|
|
275
|
-
*/
|
|
276
|
-
export type DeploymentsVerbosity = ClosedEnum<typeof DeploymentsVerbosity>;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
280
|
-
*/
|
|
281
|
-
export const DeploymentsThinkingLevel = {
|
|
282
|
-
Low: "low",
|
|
283
|
-
High: "high",
|
|
284
|
-
} as const;
|
|
285
|
-
/**
|
|
286
|
-
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
287
|
-
*/
|
|
288
|
-
export type DeploymentsThinkingLevel = ClosedEnum<
|
|
289
|
-
typeof DeploymentsThinkingLevel
|
|
290
|
-
>;
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Model Parameters: Not all parameters apply to every model
|
|
294
|
-
*/
|
|
295
|
-
export type DeploymentsModelParameters = {
|
|
296
|
-
/**
|
|
297
|
-
* Only supported on `chat` and `completion` models.
|
|
298
|
-
*/
|
|
299
|
-
temperature?: number | undefined;
|
|
300
|
-
/**
|
|
301
|
-
* Only supported on `chat` and `completion` models.
|
|
302
|
-
*/
|
|
303
|
-
maxTokens?: number | undefined;
|
|
304
|
-
/**
|
|
305
|
-
* Only supported on `chat` and `completion` models.
|
|
306
|
-
*/
|
|
307
|
-
topK?: number | undefined;
|
|
308
|
-
/**
|
|
309
|
-
* Only supported on `chat` and `completion` models.
|
|
310
|
-
*/
|
|
311
|
-
topP?: number | undefined;
|
|
312
|
-
/**
|
|
313
|
-
* Only supported on `chat` and `completion` models.
|
|
314
|
-
*/
|
|
315
|
-
frequencyPenalty?: number | undefined;
|
|
316
|
-
/**
|
|
317
|
-
* Only supported on `chat` and `completion` models.
|
|
318
|
-
*/
|
|
319
|
-
presencePenalty?: number | undefined;
|
|
320
|
-
/**
|
|
321
|
-
* Only supported on `image` models.
|
|
322
|
-
*/
|
|
323
|
-
numImages?: number | undefined;
|
|
324
|
-
/**
|
|
325
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
326
|
-
*/
|
|
327
|
-
seed?: number | undefined;
|
|
328
|
-
/**
|
|
329
|
-
* Only supported on `image` models.
|
|
330
|
-
*/
|
|
331
|
-
format?: DeploymentsFormat | undefined;
|
|
332
|
-
/**
|
|
333
|
-
* Only supported on `image` models.
|
|
334
|
-
*/
|
|
335
|
-
dimensions?: string | undefined;
|
|
336
|
-
/**
|
|
337
|
-
* Only supported on `image` models.
|
|
338
|
-
*/
|
|
339
|
-
quality?: string | undefined;
|
|
340
|
-
/**
|
|
341
|
-
* Only supported on `image` models.
|
|
342
|
-
*/
|
|
343
|
-
style?: string | undefined;
|
|
344
|
-
/**
|
|
345
|
-
* An object specifying the format that the model must output.
|
|
346
|
-
*
|
|
347
|
-
* @remarks
|
|
348
|
-
*
|
|
349
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
350
|
-
*
|
|
351
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
352
|
-
*
|
|
353
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
354
|
-
*/
|
|
355
|
-
responseFormat?:
|
|
356
|
-
| DeploymentsResponseFormat1
|
|
357
|
-
| DeploymentsResponseFormat2
|
|
358
|
-
| DeploymentsResponseFormat3
|
|
359
|
-
| DeploymentsResponseFormat4
|
|
360
|
-
| DeploymentsResponseFormat5
|
|
361
|
-
| DeploymentsResponseFormat6
|
|
362
|
-
| null
|
|
363
|
-
| undefined;
|
|
364
|
-
/**
|
|
365
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
366
|
-
*/
|
|
367
|
-
photoRealVersion?: DeploymentsPhotoRealVersion | undefined;
|
|
368
|
-
/**
|
|
369
|
-
* The format to return the embeddings
|
|
370
|
-
*/
|
|
371
|
-
encodingFormat?: DeploymentsEncodingFormat | undefined;
|
|
372
|
-
/**
|
|
373
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
374
|
-
*/
|
|
375
|
-
reasoningEffort?: DeploymentsReasoningEffort | undefined;
|
|
376
|
-
/**
|
|
377
|
-
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
|
|
378
|
-
*/
|
|
379
|
-
budgetTokens?: number | undefined;
|
|
380
|
-
/**
|
|
381
|
-
* Controls the verbosity of the model output.
|
|
382
|
-
*/
|
|
383
|
-
verbosity?: DeploymentsVerbosity | undefined;
|
|
384
|
-
/**
|
|
385
|
-
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
386
|
-
*/
|
|
387
|
-
thinkingLevel?: DeploymentsThinkingLevel | undefined;
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
export const DeploymentsProvider = {
|
|
391
|
-
Cohere: "cohere",
|
|
392
|
-
Openai: "openai",
|
|
393
|
-
Anthropic: "anthropic",
|
|
394
|
-
Huggingface: "huggingface",
|
|
395
|
-
Replicate: "replicate",
|
|
396
|
-
Google: "google",
|
|
397
|
-
GoogleAi: "google-ai",
|
|
398
|
-
Azure: "azure",
|
|
399
|
-
Aws: "aws",
|
|
400
|
-
Anyscale: "anyscale",
|
|
401
|
-
Perplexity: "perplexity",
|
|
402
|
-
Groq: "groq",
|
|
403
|
-
Fal: "fal",
|
|
404
|
-
Leonardoai: "leonardoai",
|
|
405
|
-
Nvidia: "nvidia",
|
|
406
|
-
Jina: "jina",
|
|
407
|
-
Togetherai: "togetherai",
|
|
408
|
-
Elevenlabs: "elevenlabs",
|
|
409
|
-
Litellm: "litellm",
|
|
410
|
-
Openailike: "openailike",
|
|
411
|
-
Cerebras: "cerebras",
|
|
412
|
-
Bytedance: "bytedance",
|
|
413
|
-
Mistral: "mistral",
|
|
414
|
-
} as const;
|
|
415
|
-
export type DeploymentsProvider = ClosedEnum<typeof DeploymentsProvider>;
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* The role of the prompt message
|
|
419
|
-
*/
|
|
420
|
-
export const DeploymentsRole = {
|
|
421
|
-
System: "system",
|
|
422
|
-
Assistant: "assistant",
|
|
423
|
-
User: "user",
|
|
424
|
-
Exception: "exception",
|
|
425
|
-
Tool: "tool",
|
|
426
|
-
Prompt: "prompt",
|
|
427
|
-
Correction: "correction",
|
|
428
|
-
ExpectedOutput: "expected_output",
|
|
429
|
-
} as const;
|
|
430
|
-
/**
|
|
431
|
-
* The role of the prompt message
|
|
432
|
-
*/
|
|
433
|
-
export type DeploymentsRole = ClosedEnum<typeof DeploymentsRole>;
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* The type of the content part. Always `file`.
|
|
437
|
-
*/
|
|
438
|
-
export const Deployments2DeploymentsType = {
|
|
439
|
-
File: "file",
|
|
440
|
-
} as const;
|
|
441
|
-
/**
|
|
442
|
-
* The type of the content part. Always `file`.
|
|
443
|
-
*/
|
|
444
|
-
export type Deployments2DeploymentsType = ClosedEnum<
|
|
445
|
-
typeof Deployments2DeploymentsType
|
|
446
|
-
>;
|
|
447
|
-
|
|
448
|
-
export type Deployments2File = {
|
|
449
|
-
/**
|
|
450
|
-
* The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
|
|
451
|
-
*/
|
|
452
|
-
fileData?: string | undefined;
|
|
453
|
-
/**
|
|
454
|
-
* URL to the file. Only supported by Anthropic Claude models for PDF files.
|
|
455
|
-
*/
|
|
456
|
-
uri?: string | undefined;
|
|
457
|
-
/**
|
|
458
|
-
* MIME type of the file (e.g., application/pdf, image/png)
|
|
459
|
-
*/
|
|
460
|
-
mimeType?: string | undefined;
|
|
461
|
-
/**
|
|
462
|
-
* The name of the file, used when passing the file to the model as a string.
|
|
463
|
-
*/
|
|
464
|
-
filename?: string | undefined;
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
export type Deployments23 = {
|
|
468
|
-
/**
|
|
469
|
-
* The type of the content part. Always `file`.
|
|
470
|
-
*/
|
|
471
|
-
type: Deployments2DeploymentsType;
|
|
472
|
-
file: Deployments2File;
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
export const Deployments2Type = {
|
|
476
|
-
ImageUrl: "image_url",
|
|
477
|
-
} as const;
|
|
478
|
-
export type Deployments2Type = ClosedEnum<typeof Deployments2Type>;
|
|
479
|
-
|
|
480
|
-
export type Deployments2ImageUrl = {
|
|
481
|
-
/**
|
|
482
|
-
* The orq.ai id of the image
|
|
483
|
-
*/
|
|
484
|
-
id?: string | undefined;
|
|
485
|
-
/**
|
|
486
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
487
|
-
*/
|
|
488
|
-
url: string;
|
|
489
|
-
/**
|
|
490
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
491
|
-
*/
|
|
492
|
-
detail?: string | undefined;
|
|
493
|
-
};
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
497
|
-
*/
|
|
498
|
-
export type Deployments22 = {
|
|
499
|
-
type: Deployments2Type;
|
|
500
|
-
imageUrl: Deployments2ImageUrl;
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
export const Deployments2DeploymentsResponseType = {
|
|
504
|
-
Text: "text",
|
|
505
|
-
} as const;
|
|
506
|
-
export type Deployments2DeploymentsResponseType = ClosedEnum<
|
|
507
|
-
typeof Deployments2DeploymentsResponseType
|
|
508
|
-
>;
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* Text content part of a prompt message
|
|
512
|
-
*/
|
|
513
|
-
export type Deployments21 = {
|
|
514
|
-
type: Deployments2DeploymentsResponseType;
|
|
515
|
-
text: string;
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
export type DeploymentsContent2 = Deployments21 | Deployments22 | Deployments23;
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
|
|
522
|
-
*/
|
|
523
|
-
export type DeploymentsContent =
|
|
524
|
-
| string
|
|
525
|
-
| Array<Deployments21 | Deployments22 | Deployments23>;
|
|
526
|
-
|
|
527
|
-
export const DeploymentsDeploymentsType = {
|
|
528
|
-
Function: "function",
|
|
529
|
-
} as const;
|
|
530
|
-
export type DeploymentsDeploymentsType = ClosedEnum<
|
|
531
|
-
typeof DeploymentsDeploymentsType
|
|
532
|
-
>;
|
|
533
|
-
|
|
534
|
-
export type DeploymentsDeploymentsFunction = {
|
|
535
|
-
name: string;
|
|
536
|
-
/**
|
|
537
|
-
* JSON string arguments for the functions
|
|
538
|
-
*/
|
|
539
|
-
arguments: string;
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
export type DeploymentsToolCalls = {
|
|
543
|
-
id?: string | undefined;
|
|
544
|
-
index?: number | undefined;
|
|
545
|
-
type: DeploymentsDeploymentsType;
|
|
546
|
-
function: DeploymentsDeploymentsFunction;
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
export type DeploymentsMessages = {
|
|
550
|
-
/**
|
|
551
|
-
* The role of the prompt message
|
|
552
|
-
*/
|
|
553
|
-
role: DeploymentsRole;
|
|
554
|
-
/**
|
|
555
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
|
|
556
|
-
*/
|
|
557
|
-
content: string | Array<Deployments21 | Deployments22 | Deployments23> | null;
|
|
558
|
-
toolCalls?: Array<DeploymentsToolCalls> | undefined;
|
|
559
|
-
toolCallId?: string | undefined;
|
|
560
|
-
};
|
|
561
|
-
|
|
562
|
-
export type DeploymentsPromptConfig = {
|
|
563
|
-
tools: Array<DeploymentsTools>;
|
|
564
|
-
model: string;
|
|
565
|
-
/**
|
|
566
|
-
* The modality of the model
|
|
567
|
-
*/
|
|
568
|
-
modelType: DeploymentsModelType;
|
|
569
|
-
/**
|
|
570
|
-
* Model Parameters: Not all parameters apply to every model
|
|
571
|
-
*/
|
|
572
|
-
modelParameters: DeploymentsModelParameters;
|
|
573
|
-
provider: DeploymentsProvider;
|
|
574
|
-
messages: Array<DeploymentsMessages>;
|
|
575
|
-
};
|
|
576
|
-
|
|
577
|
-
export type DeploymentsData = {
|
|
578
|
-
/**
|
|
579
|
-
* Unique identifier for the object.
|
|
580
|
-
*/
|
|
581
|
-
id: string;
|
|
582
|
-
/**
|
|
583
|
-
* Date in ISO 8601 format at which the object was created.
|
|
584
|
-
*/
|
|
585
|
-
created: string;
|
|
586
|
-
/**
|
|
587
|
-
* Date in ISO 8601 format at which the object was last updated.
|
|
588
|
-
*/
|
|
589
|
-
updated: string;
|
|
590
|
-
/**
|
|
591
|
-
* The deployment unique key
|
|
592
|
-
*/
|
|
593
|
-
key: string;
|
|
594
|
-
/**
|
|
595
|
-
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
596
|
-
*/
|
|
597
|
-
description: string;
|
|
598
|
-
promptConfig: DeploymentsPromptConfig;
|
|
599
|
-
/**
|
|
600
|
-
* THe version of the deployment
|
|
601
|
-
*/
|
|
602
|
-
version: string;
|
|
603
|
-
};
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* List all deployments
|
|
607
|
-
*/
|
|
608
|
-
export type DeploymentsResponseBody = {
|
|
609
|
-
object: DeploymentsObject;
|
|
610
|
-
data: Array<DeploymentsData>;
|
|
611
|
-
hasMore: boolean;
|
|
612
|
-
};
|
|
613
|
-
|
|
614
|
-
/** @internal */
|
|
615
|
-
export const DeploymentsRequest$inboundSchema: z.ZodType<
|
|
616
|
-
DeploymentsRequest,
|
|
617
|
-
z.ZodTypeDef,
|
|
618
|
-
unknown
|
|
619
|
-
> = z.object({
|
|
620
|
-
limit: z.number().default(10),
|
|
621
|
-
starting_after: z.string().optional(),
|
|
622
|
-
ending_before: z.string().optional(),
|
|
623
|
-
}).transform((v) => {
|
|
624
|
-
return remap$(v, {
|
|
625
|
-
"starting_after": "startingAfter",
|
|
626
|
-
"ending_before": "endingBefore",
|
|
627
|
-
});
|
|
628
|
-
});
|
|
629
|
-
/** @internal */
|
|
630
|
-
export type DeploymentsRequest$Outbound = {
|
|
631
|
-
limit: number;
|
|
632
|
-
starting_after?: string | undefined;
|
|
633
|
-
ending_before?: string | undefined;
|
|
634
|
-
};
|
|
635
|
-
|
|
636
|
-
/** @internal */
|
|
637
|
-
export const DeploymentsRequest$outboundSchema: z.ZodType<
|
|
638
|
-
DeploymentsRequest$Outbound,
|
|
639
|
-
z.ZodTypeDef,
|
|
640
|
-
DeploymentsRequest
|
|
641
|
-
> = z.object({
|
|
642
|
-
limit: z.number().default(10),
|
|
643
|
-
startingAfter: z.string().optional(),
|
|
644
|
-
endingBefore: z.string().optional(),
|
|
645
|
-
}).transform((v) => {
|
|
646
|
-
return remap$(v, {
|
|
647
|
-
startingAfter: "starting_after",
|
|
648
|
-
endingBefore: "ending_before",
|
|
649
|
-
});
|
|
650
|
-
});
|
|
651
|
-
|
|
652
|
-
export function deploymentsRequestToJSON(
|
|
653
|
-
deploymentsRequest: DeploymentsRequest,
|
|
654
|
-
): string {
|
|
655
|
-
return JSON.stringify(
|
|
656
|
-
DeploymentsRequest$outboundSchema.parse(deploymentsRequest),
|
|
657
|
-
);
|
|
658
|
-
}
|
|
659
|
-
export function deploymentsRequestFromJSON(
|
|
660
|
-
jsonString: string,
|
|
661
|
-
): SafeParseResult<DeploymentsRequest, SDKValidationError> {
|
|
662
|
-
return safeParse(
|
|
663
|
-
jsonString,
|
|
664
|
-
(x) => DeploymentsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
665
|
-
`Failed to parse 'DeploymentsRequest' from JSON`,
|
|
666
|
-
);
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
/** @internal */
|
|
670
|
-
export const DeploymentsObject$inboundSchema: z.ZodNativeEnum<
|
|
671
|
-
typeof DeploymentsObject
|
|
672
|
-
> = z.nativeEnum(DeploymentsObject);
|
|
673
|
-
/** @internal */
|
|
674
|
-
export const DeploymentsObject$outboundSchema: z.ZodNativeEnum<
|
|
675
|
-
typeof DeploymentsObject
|
|
676
|
-
> = DeploymentsObject$inboundSchema;
|
|
677
|
-
|
|
678
|
-
/** @internal */
|
|
679
|
-
export const DeploymentsType$inboundSchema: z.ZodNativeEnum<
|
|
680
|
-
typeof DeploymentsType
|
|
681
|
-
> = z.nativeEnum(DeploymentsType);
|
|
682
|
-
/** @internal */
|
|
683
|
-
export const DeploymentsType$outboundSchema: z.ZodNativeEnum<
|
|
684
|
-
typeof DeploymentsType
|
|
685
|
-
> = DeploymentsType$inboundSchema;
|
|
686
|
-
|
|
687
|
-
/** @internal */
|
|
688
|
-
export const DeploymentsDeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
689
|
-
typeof DeploymentsDeploymentsResponseType
|
|
690
|
-
> = z.nativeEnum(DeploymentsDeploymentsResponseType);
|
|
691
|
-
/** @internal */
|
|
692
|
-
export const DeploymentsDeploymentsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
693
|
-
typeof DeploymentsDeploymentsResponseType
|
|
694
|
-
> = DeploymentsDeploymentsResponseType$inboundSchema;
|
|
695
|
-
|
|
696
|
-
/** @internal */
|
|
697
|
-
export const DeploymentsParameters$inboundSchema: z.ZodType<
|
|
698
|
-
DeploymentsParameters,
|
|
699
|
-
z.ZodTypeDef,
|
|
700
|
-
unknown
|
|
701
|
-
> = z.object({
|
|
702
|
-
type: DeploymentsDeploymentsResponseType$inboundSchema,
|
|
703
|
-
properties: z.record(z.any()),
|
|
704
|
-
required: z.array(z.string()).optional(),
|
|
705
|
-
additionalProperties: z.boolean().optional(),
|
|
706
|
-
});
|
|
707
|
-
/** @internal */
|
|
708
|
-
export type DeploymentsParameters$Outbound = {
|
|
709
|
-
type: string;
|
|
710
|
-
properties: { [k: string]: any };
|
|
711
|
-
required?: Array<string> | undefined;
|
|
712
|
-
additionalProperties?: boolean | undefined;
|
|
713
|
-
};
|
|
714
|
-
|
|
715
|
-
/** @internal */
|
|
716
|
-
export const DeploymentsParameters$outboundSchema: z.ZodType<
|
|
717
|
-
DeploymentsParameters$Outbound,
|
|
718
|
-
z.ZodTypeDef,
|
|
719
|
-
DeploymentsParameters
|
|
720
|
-
> = z.object({
|
|
721
|
-
type: DeploymentsDeploymentsResponseType$outboundSchema,
|
|
722
|
-
properties: z.record(z.any()),
|
|
723
|
-
required: z.array(z.string()).optional(),
|
|
724
|
-
additionalProperties: z.boolean().optional(),
|
|
725
|
-
});
|
|
726
|
-
|
|
727
|
-
export function deploymentsParametersToJSON(
|
|
728
|
-
deploymentsParameters: DeploymentsParameters,
|
|
729
|
-
): string {
|
|
730
|
-
return JSON.stringify(
|
|
731
|
-
DeploymentsParameters$outboundSchema.parse(deploymentsParameters),
|
|
732
|
-
);
|
|
733
|
-
}
|
|
734
|
-
export function deploymentsParametersFromJSON(
|
|
735
|
-
jsonString: string,
|
|
736
|
-
): SafeParseResult<DeploymentsParameters, SDKValidationError> {
|
|
737
|
-
return safeParse(
|
|
738
|
-
jsonString,
|
|
739
|
-
(x) => DeploymentsParameters$inboundSchema.parse(JSON.parse(x)),
|
|
740
|
-
`Failed to parse 'DeploymentsParameters' from JSON`,
|
|
741
|
-
);
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
/** @internal */
|
|
745
|
-
export const DeploymentsFunction$inboundSchema: z.ZodType<
|
|
746
|
-
DeploymentsFunction,
|
|
747
|
-
z.ZodTypeDef,
|
|
748
|
-
unknown
|
|
749
|
-
> = z.object({
|
|
750
|
-
name: z.string(),
|
|
751
|
-
description: z.string().optional(),
|
|
752
|
-
strict: z.boolean().optional(),
|
|
753
|
-
parameters: z.lazy(() => DeploymentsParameters$inboundSchema),
|
|
754
|
-
});
|
|
755
|
-
/** @internal */
|
|
756
|
-
export type DeploymentsFunction$Outbound = {
|
|
757
|
-
name: string;
|
|
758
|
-
description?: string | undefined;
|
|
759
|
-
strict?: boolean | undefined;
|
|
760
|
-
parameters: DeploymentsParameters$Outbound;
|
|
761
|
-
};
|
|
762
|
-
|
|
763
|
-
/** @internal */
|
|
764
|
-
export const DeploymentsFunction$outboundSchema: z.ZodType<
|
|
765
|
-
DeploymentsFunction$Outbound,
|
|
766
|
-
z.ZodTypeDef,
|
|
767
|
-
DeploymentsFunction
|
|
768
|
-
> = z.object({
|
|
769
|
-
name: z.string(),
|
|
770
|
-
description: z.string().optional(),
|
|
771
|
-
strict: z.boolean().optional(),
|
|
772
|
-
parameters: z.lazy(() => DeploymentsParameters$outboundSchema),
|
|
773
|
-
});
|
|
774
|
-
|
|
775
|
-
export function deploymentsFunctionToJSON(
|
|
776
|
-
deploymentsFunction: DeploymentsFunction,
|
|
777
|
-
): string {
|
|
778
|
-
return JSON.stringify(
|
|
779
|
-
DeploymentsFunction$outboundSchema.parse(deploymentsFunction),
|
|
780
|
-
);
|
|
781
|
-
}
|
|
782
|
-
export function deploymentsFunctionFromJSON(
|
|
783
|
-
jsonString: string,
|
|
784
|
-
): SafeParseResult<DeploymentsFunction, SDKValidationError> {
|
|
785
|
-
return safeParse(
|
|
786
|
-
jsonString,
|
|
787
|
-
(x) => DeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
788
|
-
`Failed to parse 'DeploymentsFunction' from JSON`,
|
|
789
|
-
);
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
/** @internal */
|
|
793
|
-
export const DeploymentsTools$inboundSchema: z.ZodType<
|
|
794
|
-
DeploymentsTools,
|
|
795
|
-
z.ZodTypeDef,
|
|
796
|
-
unknown
|
|
797
|
-
> = z.object({
|
|
798
|
-
display_name: z.string().optional(),
|
|
799
|
-
type: DeploymentsType$inboundSchema,
|
|
800
|
-
function: z.lazy(() => DeploymentsFunction$inboundSchema),
|
|
801
|
-
id: z.number().optional(),
|
|
802
|
-
}).transform((v) => {
|
|
803
|
-
return remap$(v, {
|
|
804
|
-
"display_name": "displayName",
|
|
805
|
-
});
|
|
806
|
-
});
|
|
807
|
-
/** @internal */
|
|
808
|
-
export type DeploymentsTools$Outbound = {
|
|
809
|
-
display_name?: string | undefined;
|
|
810
|
-
type: string;
|
|
811
|
-
function: DeploymentsFunction$Outbound;
|
|
812
|
-
id?: number | undefined;
|
|
813
|
-
};
|
|
814
|
-
|
|
815
|
-
/** @internal */
|
|
816
|
-
export const DeploymentsTools$outboundSchema: z.ZodType<
|
|
817
|
-
DeploymentsTools$Outbound,
|
|
818
|
-
z.ZodTypeDef,
|
|
819
|
-
DeploymentsTools
|
|
820
|
-
> = z.object({
|
|
821
|
-
displayName: z.string().optional(),
|
|
822
|
-
type: DeploymentsType$outboundSchema,
|
|
823
|
-
function: z.lazy(() => DeploymentsFunction$outboundSchema),
|
|
824
|
-
id: z.number().optional(),
|
|
825
|
-
}).transform((v) => {
|
|
826
|
-
return remap$(v, {
|
|
827
|
-
displayName: "display_name",
|
|
828
|
-
});
|
|
829
|
-
});
|
|
830
|
-
|
|
831
|
-
export function deploymentsToolsToJSON(
|
|
832
|
-
deploymentsTools: DeploymentsTools,
|
|
833
|
-
): string {
|
|
834
|
-
return JSON.stringify(
|
|
835
|
-
DeploymentsTools$outboundSchema.parse(deploymentsTools),
|
|
836
|
-
);
|
|
837
|
-
}
|
|
838
|
-
export function deploymentsToolsFromJSON(
|
|
839
|
-
jsonString: string,
|
|
840
|
-
): SafeParseResult<DeploymentsTools, SDKValidationError> {
|
|
841
|
-
return safeParse(
|
|
842
|
-
jsonString,
|
|
843
|
-
(x) => DeploymentsTools$inboundSchema.parse(JSON.parse(x)),
|
|
844
|
-
`Failed to parse 'DeploymentsTools' from JSON`,
|
|
845
|
-
);
|
|
846
|
-
}
|
|
847
|
-
|
|
848
|
-
/** @internal */
|
|
849
|
-
export const DeploymentsModelType$inboundSchema: z.ZodNativeEnum<
|
|
850
|
-
typeof DeploymentsModelType
|
|
851
|
-
> = z.nativeEnum(DeploymentsModelType);
|
|
852
|
-
/** @internal */
|
|
853
|
-
export const DeploymentsModelType$outboundSchema: z.ZodNativeEnum<
|
|
854
|
-
typeof DeploymentsModelType
|
|
855
|
-
> = DeploymentsModelType$inboundSchema;
|
|
856
|
-
|
|
857
|
-
/** @internal */
|
|
858
|
-
export const DeploymentsFormat$inboundSchema: z.ZodNativeEnum<
|
|
859
|
-
typeof DeploymentsFormat
|
|
860
|
-
> = z.nativeEnum(DeploymentsFormat);
|
|
861
|
-
/** @internal */
|
|
862
|
-
export const DeploymentsFormat$outboundSchema: z.ZodNativeEnum<
|
|
863
|
-
typeof DeploymentsFormat
|
|
864
|
-
> = DeploymentsFormat$inboundSchema;
|
|
865
|
-
|
|
866
|
-
/** @internal */
|
|
867
|
-
export const DeploymentsResponseFormat6$inboundSchema: z.ZodNativeEnum<
|
|
868
|
-
typeof DeploymentsResponseFormat6
|
|
869
|
-
> = z.nativeEnum(DeploymentsResponseFormat6);
|
|
870
|
-
/** @internal */
|
|
871
|
-
export const DeploymentsResponseFormat6$outboundSchema: z.ZodNativeEnum<
|
|
872
|
-
typeof DeploymentsResponseFormat6
|
|
873
|
-
> = DeploymentsResponseFormat6$inboundSchema;
|
|
874
|
-
|
|
875
|
-
/** @internal */
|
|
876
|
-
export const DeploymentsResponseFormat5$inboundSchema: z.ZodNativeEnum<
|
|
877
|
-
typeof DeploymentsResponseFormat5
|
|
878
|
-
> = z.nativeEnum(DeploymentsResponseFormat5);
|
|
879
|
-
/** @internal */
|
|
880
|
-
export const DeploymentsResponseFormat5$outboundSchema: z.ZodNativeEnum<
|
|
881
|
-
typeof DeploymentsResponseFormat5
|
|
882
|
-
> = DeploymentsResponseFormat5$inboundSchema;
|
|
883
|
-
|
|
884
|
-
/** @internal */
|
|
885
|
-
export const DeploymentsResponseFormat4$inboundSchema: z.ZodNativeEnum<
|
|
886
|
-
typeof DeploymentsResponseFormat4
|
|
887
|
-
> = z.nativeEnum(DeploymentsResponseFormat4);
|
|
888
|
-
/** @internal */
|
|
889
|
-
export const DeploymentsResponseFormat4$outboundSchema: z.ZodNativeEnum<
|
|
890
|
-
typeof DeploymentsResponseFormat4
|
|
891
|
-
> = DeploymentsResponseFormat4$inboundSchema;
|
|
892
|
-
|
|
893
|
-
/** @internal */
|
|
894
|
-
export const DeploymentsResponseFormatDeploymentsType$inboundSchema:
|
|
895
|
-
z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> = z
|
|
896
|
-
.nativeEnum(DeploymentsResponseFormatDeploymentsType);
|
|
897
|
-
/** @internal */
|
|
898
|
-
export const DeploymentsResponseFormatDeploymentsType$outboundSchema:
|
|
899
|
-
z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsType> =
|
|
900
|
-
DeploymentsResponseFormatDeploymentsType$inboundSchema;
|
|
901
|
-
|
|
902
|
-
/** @internal */
|
|
903
|
-
export const DeploymentsResponseFormat3$inboundSchema: z.ZodType<
|
|
904
|
-
DeploymentsResponseFormat3,
|
|
905
|
-
z.ZodTypeDef,
|
|
906
|
-
unknown
|
|
907
|
-
> = z.object({
|
|
908
|
-
type: DeploymentsResponseFormatDeploymentsType$inboundSchema,
|
|
909
|
-
});
|
|
910
|
-
/** @internal */
|
|
911
|
-
export type DeploymentsResponseFormat3$Outbound = {
|
|
912
|
-
type: string;
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
/** @internal */
|
|
916
|
-
export const DeploymentsResponseFormat3$outboundSchema: z.ZodType<
|
|
917
|
-
DeploymentsResponseFormat3$Outbound,
|
|
918
|
-
z.ZodTypeDef,
|
|
919
|
-
DeploymentsResponseFormat3
|
|
920
|
-
> = z.object({
|
|
921
|
-
type: DeploymentsResponseFormatDeploymentsType$outboundSchema,
|
|
922
|
-
});
|
|
923
|
-
|
|
924
|
-
export function deploymentsResponseFormat3ToJSON(
|
|
925
|
-
deploymentsResponseFormat3: DeploymentsResponseFormat3,
|
|
926
|
-
): string {
|
|
927
|
-
return JSON.stringify(
|
|
928
|
-
DeploymentsResponseFormat3$outboundSchema.parse(deploymentsResponseFormat3),
|
|
929
|
-
);
|
|
930
|
-
}
|
|
931
|
-
export function deploymentsResponseFormat3FromJSON(
|
|
932
|
-
jsonString: string,
|
|
933
|
-
): SafeParseResult<DeploymentsResponseFormat3, SDKValidationError> {
|
|
934
|
-
return safeParse(
|
|
935
|
-
jsonString,
|
|
936
|
-
(x) => DeploymentsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
937
|
-
`Failed to parse 'DeploymentsResponseFormat3' from JSON`,
|
|
938
|
-
);
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
/** @internal */
|
|
942
|
-
export const DeploymentsResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
943
|
-
typeof DeploymentsResponseFormatType
|
|
944
|
-
> = z.nativeEnum(DeploymentsResponseFormatType);
|
|
945
|
-
/** @internal */
|
|
946
|
-
export const DeploymentsResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
947
|
-
typeof DeploymentsResponseFormatType
|
|
948
|
-
> = DeploymentsResponseFormatType$inboundSchema;
|
|
949
|
-
|
|
950
|
-
/** @internal */
|
|
951
|
-
export const DeploymentsResponseFormat2$inboundSchema: z.ZodType<
|
|
952
|
-
DeploymentsResponseFormat2,
|
|
953
|
-
z.ZodTypeDef,
|
|
954
|
-
unknown
|
|
955
|
-
> = z.object({
|
|
956
|
-
type: DeploymentsResponseFormatType$inboundSchema,
|
|
957
|
-
});
|
|
958
|
-
/** @internal */
|
|
959
|
-
export type DeploymentsResponseFormat2$Outbound = {
|
|
960
|
-
type: string;
|
|
961
|
-
};
|
|
962
|
-
|
|
963
|
-
/** @internal */
|
|
964
|
-
export const DeploymentsResponseFormat2$outboundSchema: z.ZodType<
|
|
965
|
-
DeploymentsResponseFormat2$Outbound,
|
|
966
|
-
z.ZodTypeDef,
|
|
967
|
-
DeploymentsResponseFormat2
|
|
968
|
-
> = z.object({
|
|
969
|
-
type: DeploymentsResponseFormatType$outboundSchema,
|
|
970
|
-
});
|
|
971
|
-
|
|
972
|
-
export function deploymentsResponseFormat2ToJSON(
|
|
973
|
-
deploymentsResponseFormat2: DeploymentsResponseFormat2,
|
|
974
|
-
): string {
|
|
975
|
-
return JSON.stringify(
|
|
976
|
-
DeploymentsResponseFormat2$outboundSchema.parse(deploymentsResponseFormat2),
|
|
977
|
-
);
|
|
978
|
-
}
|
|
979
|
-
export function deploymentsResponseFormat2FromJSON(
|
|
980
|
-
jsonString: string,
|
|
981
|
-
): SafeParseResult<DeploymentsResponseFormat2, SDKValidationError> {
|
|
982
|
-
return safeParse(
|
|
983
|
-
jsonString,
|
|
984
|
-
(x) => DeploymentsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
985
|
-
`Failed to parse 'DeploymentsResponseFormat2' from JSON`,
|
|
986
|
-
);
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
/** @internal */
|
|
990
|
-
export const DeploymentsResponseFormatDeploymentsResponseType$inboundSchema:
|
|
991
|
-
z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> = z
|
|
992
|
-
.nativeEnum(DeploymentsResponseFormatDeploymentsResponseType);
|
|
993
|
-
/** @internal */
|
|
994
|
-
export const DeploymentsResponseFormatDeploymentsResponseType$outboundSchema:
|
|
995
|
-
z.ZodNativeEnum<typeof DeploymentsResponseFormatDeploymentsResponseType> =
|
|
996
|
-
DeploymentsResponseFormatDeploymentsResponseType$inboundSchema;
|
|
997
|
-
|
|
998
|
-
/** @internal */
|
|
999
|
-
export const DeploymentsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
1000
|
-
DeploymentsResponseFormatJsonSchema,
|
|
1001
|
-
z.ZodTypeDef,
|
|
1002
|
-
unknown
|
|
1003
|
-
> = z.object({
|
|
1004
|
-
name: z.string(),
|
|
1005
|
-
description: z.string().optional(),
|
|
1006
|
-
strict: z.boolean().optional(),
|
|
1007
|
-
schema: z.record(z.any()),
|
|
1008
|
-
});
|
|
1009
|
-
/** @internal */
|
|
1010
|
-
export type DeploymentsResponseFormatJsonSchema$Outbound = {
|
|
1011
|
-
name: string;
|
|
1012
|
-
description?: string | undefined;
|
|
1013
|
-
strict?: boolean | undefined;
|
|
1014
|
-
schema: { [k: string]: any };
|
|
1015
|
-
};
|
|
1016
|
-
|
|
1017
|
-
/** @internal */
|
|
1018
|
-
export const DeploymentsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
1019
|
-
DeploymentsResponseFormatJsonSchema$Outbound,
|
|
1020
|
-
z.ZodTypeDef,
|
|
1021
|
-
DeploymentsResponseFormatJsonSchema
|
|
1022
|
-
> = z.object({
|
|
1023
|
-
name: z.string(),
|
|
1024
|
-
description: z.string().optional(),
|
|
1025
|
-
strict: z.boolean().optional(),
|
|
1026
|
-
schema: z.record(z.any()),
|
|
1027
|
-
});
|
|
1028
|
-
|
|
1029
|
-
export function deploymentsResponseFormatJsonSchemaToJSON(
|
|
1030
|
-
deploymentsResponseFormatJsonSchema: DeploymentsResponseFormatJsonSchema,
|
|
1031
|
-
): string {
|
|
1032
|
-
return JSON.stringify(
|
|
1033
|
-
DeploymentsResponseFormatJsonSchema$outboundSchema.parse(
|
|
1034
|
-
deploymentsResponseFormatJsonSchema,
|
|
1035
|
-
),
|
|
1036
|
-
);
|
|
1037
|
-
}
|
|
1038
|
-
export function deploymentsResponseFormatJsonSchemaFromJSON(
|
|
1039
|
-
jsonString: string,
|
|
1040
|
-
): SafeParseResult<DeploymentsResponseFormatJsonSchema, SDKValidationError> {
|
|
1041
|
-
return safeParse(
|
|
1042
|
-
jsonString,
|
|
1043
|
-
(x) =>
|
|
1044
|
-
DeploymentsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1045
|
-
`Failed to parse 'DeploymentsResponseFormatJsonSchema' from JSON`,
|
|
1046
|
-
);
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
/** @internal */
|
|
1050
|
-
export const DeploymentsResponseFormat1$inboundSchema: z.ZodType<
|
|
1051
|
-
DeploymentsResponseFormat1,
|
|
1052
|
-
z.ZodTypeDef,
|
|
1053
|
-
unknown
|
|
1054
|
-
> = z.object({
|
|
1055
|
-
type: DeploymentsResponseFormatDeploymentsResponseType$inboundSchema,
|
|
1056
|
-
display_name: z.string().optional(),
|
|
1057
|
-
json_schema: z.lazy(() => DeploymentsResponseFormatJsonSchema$inboundSchema),
|
|
1058
|
-
}).transform((v) => {
|
|
1059
|
-
return remap$(v, {
|
|
1060
|
-
"display_name": "displayName",
|
|
1061
|
-
"json_schema": "jsonSchema",
|
|
1062
|
-
});
|
|
1063
|
-
});
|
|
1064
|
-
/** @internal */
|
|
1065
|
-
export type DeploymentsResponseFormat1$Outbound = {
|
|
1066
|
-
type: string;
|
|
1067
|
-
display_name?: string | undefined;
|
|
1068
|
-
json_schema: DeploymentsResponseFormatJsonSchema$Outbound;
|
|
1069
|
-
};
|
|
1070
|
-
|
|
1071
|
-
/** @internal */
|
|
1072
|
-
export const DeploymentsResponseFormat1$outboundSchema: z.ZodType<
|
|
1073
|
-
DeploymentsResponseFormat1$Outbound,
|
|
1074
|
-
z.ZodTypeDef,
|
|
1075
|
-
DeploymentsResponseFormat1
|
|
1076
|
-
> = z.object({
|
|
1077
|
-
type: DeploymentsResponseFormatDeploymentsResponseType$outboundSchema,
|
|
1078
|
-
displayName: z.string().optional(),
|
|
1079
|
-
jsonSchema: z.lazy(() => DeploymentsResponseFormatJsonSchema$outboundSchema),
|
|
1080
|
-
}).transform((v) => {
|
|
1081
|
-
return remap$(v, {
|
|
1082
|
-
displayName: "display_name",
|
|
1083
|
-
jsonSchema: "json_schema",
|
|
1084
|
-
});
|
|
1085
|
-
});
|
|
1086
|
-
|
|
1087
|
-
export function deploymentsResponseFormat1ToJSON(
|
|
1088
|
-
deploymentsResponseFormat1: DeploymentsResponseFormat1,
|
|
1089
|
-
): string {
|
|
1090
|
-
return JSON.stringify(
|
|
1091
|
-
DeploymentsResponseFormat1$outboundSchema.parse(deploymentsResponseFormat1),
|
|
1092
|
-
);
|
|
1093
|
-
}
|
|
1094
|
-
export function deploymentsResponseFormat1FromJSON(
|
|
1095
|
-
jsonString: string,
|
|
1096
|
-
): SafeParseResult<DeploymentsResponseFormat1, SDKValidationError> {
|
|
1097
|
-
return safeParse(
|
|
1098
|
-
jsonString,
|
|
1099
|
-
(x) => DeploymentsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
1100
|
-
`Failed to parse 'DeploymentsResponseFormat1' from JSON`,
|
|
1101
|
-
);
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
/** @internal */
|
|
1105
|
-
export const DeploymentsResponseFormat$inboundSchema: z.ZodType<
|
|
1106
|
-
DeploymentsResponseFormat,
|
|
1107
|
-
z.ZodTypeDef,
|
|
1108
|
-
unknown
|
|
1109
|
-
> = z.union([
|
|
1110
|
-
z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
|
|
1111
|
-
z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
|
|
1112
|
-
z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
|
|
1113
|
-
DeploymentsResponseFormat4$inboundSchema,
|
|
1114
|
-
DeploymentsResponseFormat5$inboundSchema,
|
|
1115
|
-
DeploymentsResponseFormat6$inboundSchema,
|
|
1116
|
-
]);
|
|
1117
|
-
/** @internal */
|
|
1118
|
-
export type DeploymentsResponseFormat$Outbound =
|
|
1119
|
-
| DeploymentsResponseFormat1$Outbound
|
|
1120
|
-
| DeploymentsResponseFormat2$Outbound
|
|
1121
|
-
| DeploymentsResponseFormat3$Outbound
|
|
1122
|
-
| string
|
|
1123
|
-
| string
|
|
1124
|
-
| string;
|
|
1125
|
-
|
|
1126
|
-
/** @internal */
|
|
1127
|
-
export const DeploymentsResponseFormat$outboundSchema: z.ZodType<
|
|
1128
|
-
DeploymentsResponseFormat$Outbound,
|
|
1129
|
-
z.ZodTypeDef,
|
|
1130
|
-
DeploymentsResponseFormat
|
|
1131
|
-
> = z.union([
|
|
1132
|
-
z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
|
|
1133
|
-
z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
|
|
1134
|
-
z.lazy(() => DeploymentsResponseFormat3$outboundSchema),
|
|
1135
|
-
DeploymentsResponseFormat4$outboundSchema,
|
|
1136
|
-
DeploymentsResponseFormat5$outboundSchema,
|
|
1137
|
-
DeploymentsResponseFormat6$outboundSchema,
|
|
1138
|
-
]);
|
|
1139
|
-
|
|
1140
|
-
export function deploymentsResponseFormatToJSON(
|
|
1141
|
-
deploymentsResponseFormat: DeploymentsResponseFormat,
|
|
1142
|
-
): string {
|
|
1143
|
-
return JSON.stringify(
|
|
1144
|
-
DeploymentsResponseFormat$outboundSchema.parse(deploymentsResponseFormat),
|
|
1145
|
-
);
|
|
1146
|
-
}
|
|
1147
|
-
export function deploymentsResponseFormatFromJSON(
|
|
1148
|
-
jsonString: string,
|
|
1149
|
-
): SafeParseResult<DeploymentsResponseFormat, SDKValidationError> {
|
|
1150
|
-
return safeParse(
|
|
1151
|
-
jsonString,
|
|
1152
|
-
(x) => DeploymentsResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1153
|
-
`Failed to parse 'DeploymentsResponseFormat' from JSON`,
|
|
1154
|
-
);
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
/** @internal */
|
|
1158
|
-
export const DeploymentsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1159
|
-
typeof DeploymentsPhotoRealVersion
|
|
1160
|
-
> = z.nativeEnum(DeploymentsPhotoRealVersion);
|
|
1161
|
-
/** @internal */
|
|
1162
|
-
export const DeploymentsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
1163
|
-
typeof DeploymentsPhotoRealVersion
|
|
1164
|
-
> = DeploymentsPhotoRealVersion$inboundSchema;
|
|
1165
|
-
|
|
1166
|
-
/** @internal */
|
|
1167
|
-
export const DeploymentsEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
1168
|
-
typeof DeploymentsEncodingFormat
|
|
1169
|
-
> = z.nativeEnum(DeploymentsEncodingFormat);
|
|
1170
|
-
/** @internal */
|
|
1171
|
-
export const DeploymentsEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
1172
|
-
typeof DeploymentsEncodingFormat
|
|
1173
|
-
> = DeploymentsEncodingFormat$inboundSchema;
|
|
1174
|
-
|
|
1175
|
-
/** @internal */
|
|
1176
|
-
export const DeploymentsReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1177
|
-
typeof DeploymentsReasoningEffort
|
|
1178
|
-
> = z.nativeEnum(DeploymentsReasoningEffort);
|
|
1179
|
-
/** @internal */
|
|
1180
|
-
export const DeploymentsReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1181
|
-
typeof DeploymentsReasoningEffort
|
|
1182
|
-
> = DeploymentsReasoningEffort$inboundSchema;
|
|
1183
|
-
|
|
1184
|
-
/** @internal */
|
|
1185
|
-
export const DeploymentsVerbosity$inboundSchema: z.ZodNativeEnum<
|
|
1186
|
-
typeof DeploymentsVerbosity
|
|
1187
|
-
> = z.nativeEnum(DeploymentsVerbosity);
|
|
1188
|
-
/** @internal */
|
|
1189
|
-
export const DeploymentsVerbosity$outboundSchema: z.ZodNativeEnum<
|
|
1190
|
-
typeof DeploymentsVerbosity
|
|
1191
|
-
> = DeploymentsVerbosity$inboundSchema;
|
|
1192
|
-
|
|
1193
|
-
/** @internal */
|
|
1194
|
-
export const DeploymentsThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
1195
|
-
typeof DeploymentsThinkingLevel
|
|
1196
|
-
> = z.nativeEnum(DeploymentsThinkingLevel);
|
|
1197
|
-
/** @internal */
|
|
1198
|
-
export const DeploymentsThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
1199
|
-
typeof DeploymentsThinkingLevel
|
|
1200
|
-
> = DeploymentsThinkingLevel$inboundSchema;
|
|
1201
|
-
|
|
1202
|
-
/** @internal */
|
|
1203
|
-
export const DeploymentsModelParameters$inboundSchema: z.ZodType<
|
|
1204
|
-
DeploymentsModelParameters,
|
|
1205
|
-
z.ZodTypeDef,
|
|
1206
|
-
unknown
|
|
1207
|
-
> = z.object({
|
|
1208
|
-
temperature: z.number().optional(),
|
|
1209
|
-
maxTokens: z.number().optional(),
|
|
1210
|
-
topK: z.number().optional(),
|
|
1211
|
-
topP: z.number().optional(),
|
|
1212
|
-
frequencyPenalty: z.number().optional(),
|
|
1213
|
-
presencePenalty: z.number().optional(),
|
|
1214
|
-
numImages: z.number().optional(),
|
|
1215
|
-
seed: z.number().optional(),
|
|
1216
|
-
format: DeploymentsFormat$inboundSchema.optional(),
|
|
1217
|
-
dimensions: z.string().optional(),
|
|
1218
|
-
quality: z.string().optional(),
|
|
1219
|
-
style: z.string().optional(),
|
|
1220
|
-
responseFormat: z.nullable(
|
|
1221
|
-
z.union([
|
|
1222
|
-
z.lazy(() => DeploymentsResponseFormat1$inboundSchema),
|
|
1223
|
-
z.lazy(() => DeploymentsResponseFormat2$inboundSchema),
|
|
1224
|
-
z.lazy(() => DeploymentsResponseFormat3$inboundSchema),
|
|
1225
|
-
DeploymentsResponseFormat4$inboundSchema,
|
|
1226
|
-
DeploymentsResponseFormat5$inboundSchema,
|
|
1227
|
-
DeploymentsResponseFormat6$inboundSchema,
|
|
1228
|
-
]),
|
|
1229
|
-
).optional(),
|
|
1230
|
-
photoRealVersion: DeploymentsPhotoRealVersion$inboundSchema.optional(),
|
|
1231
|
-
encoding_format: DeploymentsEncodingFormat$inboundSchema.optional(),
|
|
1232
|
-
reasoningEffort: DeploymentsReasoningEffort$inboundSchema.optional(),
|
|
1233
|
-
budgetTokens: z.number().optional(),
|
|
1234
|
-
verbosity: DeploymentsVerbosity$inboundSchema.optional(),
|
|
1235
|
-
thinkingLevel: DeploymentsThinkingLevel$inboundSchema.optional(),
|
|
1236
|
-
}).transform((v) => {
|
|
1237
|
-
return remap$(v, {
|
|
1238
|
-
"encoding_format": "encodingFormat",
|
|
1239
|
-
});
|
|
1240
|
-
});
|
|
1241
|
-
/** @internal */
|
|
1242
|
-
export type DeploymentsModelParameters$Outbound = {
|
|
1243
|
-
temperature?: number | undefined;
|
|
1244
|
-
maxTokens?: number | undefined;
|
|
1245
|
-
topK?: number | undefined;
|
|
1246
|
-
topP?: number | undefined;
|
|
1247
|
-
frequencyPenalty?: number | undefined;
|
|
1248
|
-
presencePenalty?: number | undefined;
|
|
1249
|
-
numImages?: number | undefined;
|
|
1250
|
-
seed?: number | undefined;
|
|
1251
|
-
format?: string | undefined;
|
|
1252
|
-
dimensions?: string | undefined;
|
|
1253
|
-
quality?: string | undefined;
|
|
1254
|
-
style?: string | undefined;
|
|
1255
|
-
responseFormat?:
|
|
1256
|
-
| DeploymentsResponseFormat1$Outbound
|
|
1257
|
-
| DeploymentsResponseFormat2$Outbound
|
|
1258
|
-
| DeploymentsResponseFormat3$Outbound
|
|
1259
|
-
| string
|
|
1260
|
-
| string
|
|
1261
|
-
| string
|
|
1262
|
-
| null
|
|
1263
|
-
| undefined;
|
|
1264
|
-
photoRealVersion?: string | undefined;
|
|
1265
|
-
encoding_format?: string | undefined;
|
|
1266
|
-
reasoningEffort?: string | undefined;
|
|
1267
|
-
budgetTokens?: number | undefined;
|
|
1268
|
-
verbosity?: string | undefined;
|
|
1269
|
-
thinkingLevel?: string | undefined;
|
|
1270
|
-
};
|
|
1271
|
-
|
|
1272
|
-
/** @internal */
|
|
1273
|
-
export const DeploymentsModelParameters$outboundSchema: z.ZodType<
|
|
1274
|
-
DeploymentsModelParameters$Outbound,
|
|
1275
|
-
z.ZodTypeDef,
|
|
1276
|
-
DeploymentsModelParameters
|
|
1277
|
-
> = z.object({
|
|
1278
|
-
temperature: z.number().optional(),
|
|
1279
|
-
maxTokens: z.number().optional(),
|
|
1280
|
-
topK: z.number().optional(),
|
|
1281
|
-
topP: z.number().optional(),
|
|
1282
|
-
frequencyPenalty: z.number().optional(),
|
|
1283
|
-
presencePenalty: z.number().optional(),
|
|
1284
|
-
numImages: z.number().optional(),
|
|
1285
|
-
seed: z.number().optional(),
|
|
1286
|
-
format: DeploymentsFormat$outboundSchema.optional(),
|
|
1287
|
-
dimensions: z.string().optional(),
|
|
1288
|
-
quality: z.string().optional(),
|
|
1289
|
-
style: z.string().optional(),
|
|
1290
|
-
responseFormat: z.nullable(
|
|
1291
|
-
z.union([
|
|
1292
|
-
z.lazy(() => DeploymentsResponseFormat1$outboundSchema),
|
|
1293
|
-
z.lazy(() => DeploymentsResponseFormat2$outboundSchema),
|
|
1294
|
-
z.lazy(() => DeploymentsResponseFormat3$outboundSchema),
|
|
1295
|
-
DeploymentsResponseFormat4$outboundSchema,
|
|
1296
|
-
DeploymentsResponseFormat5$outboundSchema,
|
|
1297
|
-
DeploymentsResponseFormat6$outboundSchema,
|
|
1298
|
-
]),
|
|
1299
|
-
).optional(),
|
|
1300
|
-
photoRealVersion: DeploymentsPhotoRealVersion$outboundSchema.optional(),
|
|
1301
|
-
encodingFormat: DeploymentsEncodingFormat$outboundSchema.optional(),
|
|
1302
|
-
reasoningEffort: DeploymentsReasoningEffort$outboundSchema.optional(),
|
|
1303
|
-
budgetTokens: z.number().optional(),
|
|
1304
|
-
verbosity: DeploymentsVerbosity$outboundSchema.optional(),
|
|
1305
|
-
thinkingLevel: DeploymentsThinkingLevel$outboundSchema.optional(),
|
|
1306
|
-
}).transform((v) => {
|
|
1307
|
-
return remap$(v, {
|
|
1308
|
-
encodingFormat: "encoding_format",
|
|
1309
|
-
});
|
|
1310
|
-
});
|
|
1311
|
-
|
|
1312
|
-
export function deploymentsModelParametersToJSON(
|
|
1313
|
-
deploymentsModelParameters: DeploymentsModelParameters,
|
|
1314
|
-
): string {
|
|
1315
|
-
return JSON.stringify(
|
|
1316
|
-
DeploymentsModelParameters$outboundSchema.parse(deploymentsModelParameters),
|
|
1317
|
-
);
|
|
1318
|
-
}
|
|
1319
|
-
export function deploymentsModelParametersFromJSON(
|
|
1320
|
-
jsonString: string,
|
|
1321
|
-
): SafeParseResult<DeploymentsModelParameters, SDKValidationError> {
|
|
1322
|
-
return safeParse(
|
|
1323
|
-
jsonString,
|
|
1324
|
-
(x) => DeploymentsModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1325
|
-
`Failed to parse 'DeploymentsModelParameters' from JSON`,
|
|
1326
|
-
);
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
|
-
/** @internal */
|
|
1330
|
-
export const DeploymentsProvider$inboundSchema: z.ZodNativeEnum<
|
|
1331
|
-
typeof DeploymentsProvider
|
|
1332
|
-
> = z.nativeEnum(DeploymentsProvider);
|
|
1333
|
-
/** @internal */
|
|
1334
|
-
export const DeploymentsProvider$outboundSchema: z.ZodNativeEnum<
|
|
1335
|
-
typeof DeploymentsProvider
|
|
1336
|
-
> = DeploymentsProvider$inboundSchema;
|
|
1337
|
-
|
|
1338
|
-
/** @internal */
|
|
1339
|
-
export const DeploymentsRole$inboundSchema: z.ZodNativeEnum<
|
|
1340
|
-
typeof DeploymentsRole
|
|
1341
|
-
> = z.nativeEnum(DeploymentsRole);
|
|
1342
|
-
/** @internal */
|
|
1343
|
-
export const DeploymentsRole$outboundSchema: z.ZodNativeEnum<
|
|
1344
|
-
typeof DeploymentsRole
|
|
1345
|
-
> = DeploymentsRole$inboundSchema;
|
|
1346
|
-
|
|
1347
|
-
/** @internal */
|
|
1348
|
-
export const Deployments2DeploymentsType$inboundSchema: z.ZodNativeEnum<
|
|
1349
|
-
typeof Deployments2DeploymentsType
|
|
1350
|
-
> = z.nativeEnum(Deployments2DeploymentsType);
|
|
1351
|
-
/** @internal */
|
|
1352
|
-
export const Deployments2DeploymentsType$outboundSchema: z.ZodNativeEnum<
|
|
1353
|
-
typeof Deployments2DeploymentsType
|
|
1354
|
-
> = Deployments2DeploymentsType$inboundSchema;
|
|
1355
|
-
|
|
1356
|
-
/** @internal */
|
|
1357
|
-
export const Deployments2File$inboundSchema: z.ZodType<
|
|
1358
|
-
Deployments2File,
|
|
1359
|
-
z.ZodTypeDef,
|
|
1360
|
-
unknown
|
|
1361
|
-
> = z.object({
|
|
1362
|
-
file_data: z.string().optional(),
|
|
1363
|
-
uri: z.string().optional(),
|
|
1364
|
-
mimeType: z.string().optional(),
|
|
1365
|
-
filename: z.string().optional(),
|
|
1366
|
-
}).transform((v) => {
|
|
1367
|
-
return remap$(v, {
|
|
1368
|
-
"file_data": "fileData",
|
|
1369
|
-
});
|
|
1370
|
-
});
|
|
1371
|
-
/** @internal */
|
|
1372
|
-
export type Deployments2File$Outbound = {
|
|
1373
|
-
file_data?: string | undefined;
|
|
1374
|
-
uri?: string | undefined;
|
|
1375
|
-
mimeType?: string | undefined;
|
|
1376
|
-
filename?: string | undefined;
|
|
1377
|
-
};
|
|
1378
|
-
|
|
1379
|
-
/** @internal */
|
|
1380
|
-
export const Deployments2File$outboundSchema: z.ZodType<
|
|
1381
|
-
Deployments2File$Outbound,
|
|
1382
|
-
z.ZodTypeDef,
|
|
1383
|
-
Deployments2File
|
|
1384
|
-
> = z.object({
|
|
1385
|
-
fileData: z.string().optional(),
|
|
1386
|
-
uri: z.string().optional(),
|
|
1387
|
-
mimeType: z.string().optional(),
|
|
1388
|
-
filename: z.string().optional(),
|
|
1389
|
-
}).transform((v) => {
|
|
1390
|
-
return remap$(v, {
|
|
1391
|
-
fileData: "file_data",
|
|
1392
|
-
});
|
|
1393
|
-
});
|
|
1394
|
-
|
|
1395
|
-
export function deployments2FileToJSON(
|
|
1396
|
-
deployments2File: Deployments2File,
|
|
1397
|
-
): string {
|
|
1398
|
-
return JSON.stringify(
|
|
1399
|
-
Deployments2File$outboundSchema.parse(deployments2File),
|
|
1400
|
-
);
|
|
1401
|
-
}
|
|
1402
|
-
export function deployments2FileFromJSON(
|
|
1403
|
-
jsonString: string,
|
|
1404
|
-
): SafeParseResult<Deployments2File, SDKValidationError> {
|
|
1405
|
-
return safeParse(
|
|
1406
|
-
jsonString,
|
|
1407
|
-
(x) => Deployments2File$inboundSchema.parse(JSON.parse(x)),
|
|
1408
|
-
`Failed to parse 'Deployments2File' from JSON`,
|
|
1409
|
-
);
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
/** @internal */
|
|
1413
|
-
export const Deployments23$inboundSchema: z.ZodType<
|
|
1414
|
-
Deployments23,
|
|
1415
|
-
z.ZodTypeDef,
|
|
1416
|
-
unknown
|
|
1417
|
-
> = z.object({
|
|
1418
|
-
type: Deployments2DeploymentsType$inboundSchema,
|
|
1419
|
-
file: z.lazy(() => Deployments2File$inboundSchema),
|
|
1420
|
-
});
|
|
1421
|
-
/** @internal */
|
|
1422
|
-
export type Deployments23$Outbound = {
|
|
1423
|
-
type: string;
|
|
1424
|
-
file: Deployments2File$Outbound;
|
|
1425
|
-
};
|
|
1426
|
-
|
|
1427
|
-
/** @internal */
|
|
1428
|
-
export const Deployments23$outboundSchema: z.ZodType<
|
|
1429
|
-
Deployments23$Outbound,
|
|
1430
|
-
z.ZodTypeDef,
|
|
1431
|
-
Deployments23
|
|
1432
|
-
> = z.object({
|
|
1433
|
-
type: Deployments2DeploymentsType$outboundSchema,
|
|
1434
|
-
file: z.lazy(() => Deployments2File$outboundSchema),
|
|
1435
|
-
});
|
|
1436
|
-
|
|
1437
|
-
export function deployments23ToJSON(deployments23: Deployments23): string {
|
|
1438
|
-
return JSON.stringify(Deployments23$outboundSchema.parse(deployments23));
|
|
1439
|
-
}
|
|
1440
|
-
export function deployments23FromJSON(
|
|
1441
|
-
jsonString: string,
|
|
1442
|
-
): SafeParseResult<Deployments23, SDKValidationError> {
|
|
1443
|
-
return safeParse(
|
|
1444
|
-
jsonString,
|
|
1445
|
-
(x) => Deployments23$inboundSchema.parse(JSON.parse(x)),
|
|
1446
|
-
`Failed to parse 'Deployments23' from JSON`,
|
|
1447
|
-
);
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
/** @internal */
|
|
1451
|
-
export const Deployments2Type$inboundSchema: z.ZodNativeEnum<
|
|
1452
|
-
typeof Deployments2Type
|
|
1453
|
-
> = z.nativeEnum(Deployments2Type);
|
|
1454
|
-
/** @internal */
|
|
1455
|
-
export const Deployments2Type$outboundSchema: z.ZodNativeEnum<
|
|
1456
|
-
typeof Deployments2Type
|
|
1457
|
-
> = Deployments2Type$inboundSchema;
|
|
1458
|
-
|
|
1459
|
-
/** @internal */
|
|
1460
|
-
export const Deployments2ImageUrl$inboundSchema: z.ZodType<
|
|
1461
|
-
Deployments2ImageUrl,
|
|
1462
|
-
z.ZodTypeDef,
|
|
1463
|
-
unknown
|
|
1464
|
-
> = z.object({
|
|
1465
|
-
id: z.string().optional(),
|
|
1466
|
-
url: z.string(),
|
|
1467
|
-
detail: z.string().optional(),
|
|
1468
|
-
});
|
|
1469
|
-
/** @internal */
|
|
1470
|
-
export type Deployments2ImageUrl$Outbound = {
|
|
1471
|
-
id?: string | undefined;
|
|
1472
|
-
url: string;
|
|
1473
|
-
detail?: string | undefined;
|
|
1474
|
-
};
|
|
1475
|
-
|
|
1476
|
-
/** @internal */
|
|
1477
|
-
export const Deployments2ImageUrl$outboundSchema: z.ZodType<
|
|
1478
|
-
Deployments2ImageUrl$Outbound,
|
|
1479
|
-
z.ZodTypeDef,
|
|
1480
|
-
Deployments2ImageUrl
|
|
1481
|
-
> = z.object({
|
|
1482
|
-
id: z.string().optional(),
|
|
1483
|
-
url: z.string(),
|
|
1484
|
-
detail: z.string().optional(),
|
|
1485
|
-
});
|
|
1486
|
-
|
|
1487
|
-
export function deployments2ImageUrlToJSON(
|
|
1488
|
-
deployments2ImageUrl: Deployments2ImageUrl,
|
|
1489
|
-
): string {
|
|
1490
|
-
return JSON.stringify(
|
|
1491
|
-
Deployments2ImageUrl$outboundSchema.parse(deployments2ImageUrl),
|
|
1492
|
-
);
|
|
1493
|
-
}
|
|
1494
|
-
export function deployments2ImageUrlFromJSON(
|
|
1495
|
-
jsonString: string,
|
|
1496
|
-
): SafeParseResult<Deployments2ImageUrl, SDKValidationError> {
|
|
1497
|
-
return safeParse(
|
|
1498
|
-
jsonString,
|
|
1499
|
-
(x) => Deployments2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1500
|
-
`Failed to parse 'Deployments2ImageUrl' from JSON`,
|
|
1501
|
-
);
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
/** @internal */
|
|
1505
|
-
export const Deployments22$inboundSchema: z.ZodType<
|
|
1506
|
-
Deployments22,
|
|
1507
|
-
z.ZodTypeDef,
|
|
1508
|
-
unknown
|
|
1509
|
-
> = z.object({
|
|
1510
|
-
type: Deployments2Type$inboundSchema,
|
|
1511
|
-
image_url: z.lazy(() => Deployments2ImageUrl$inboundSchema),
|
|
1512
|
-
}).transform((v) => {
|
|
1513
|
-
return remap$(v, {
|
|
1514
|
-
"image_url": "imageUrl",
|
|
1515
|
-
});
|
|
1516
|
-
});
|
|
1517
|
-
/** @internal */
|
|
1518
|
-
export type Deployments22$Outbound = {
|
|
1519
|
-
type: string;
|
|
1520
|
-
image_url: Deployments2ImageUrl$Outbound;
|
|
1521
|
-
};
|
|
1522
|
-
|
|
1523
|
-
/** @internal */
|
|
1524
|
-
export const Deployments22$outboundSchema: z.ZodType<
|
|
1525
|
-
Deployments22$Outbound,
|
|
1526
|
-
z.ZodTypeDef,
|
|
1527
|
-
Deployments22
|
|
1528
|
-
> = z.object({
|
|
1529
|
-
type: Deployments2Type$outboundSchema,
|
|
1530
|
-
imageUrl: z.lazy(() => Deployments2ImageUrl$outboundSchema),
|
|
1531
|
-
}).transform((v) => {
|
|
1532
|
-
return remap$(v, {
|
|
1533
|
-
imageUrl: "image_url",
|
|
1534
|
-
});
|
|
1535
|
-
});
|
|
1536
|
-
|
|
1537
|
-
export function deployments22ToJSON(deployments22: Deployments22): string {
|
|
1538
|
-
return JSON.stringify(Deployments22$outboundSchema.parse(deployments22));
|
|
1539
|
-
}
|
|
1540
|
-
export function deployments22FromJSON(
|
|
1541
|
-
jsonString: string,
|
|
1542
|
-
): SafeParseResult<Deployments22, SDKValidationError> {
|
|
1543
|
-
return safeParse(
|
|
1544
|
-
jsonString,
|
|
1545
|
-
(x) => Deployments22$inboundSchema.parse(JSON.parse(x)),
|
|
1546
|
-
`Failed to parse 'Deployments22' from JSON`,
|
|
1547
|
-
);
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
/** @internal */
|
|
1551
|
-
export const Deployments2DeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
1552
|
-
typeof Deployments2DeploymentsResponseType
|
|
1553
|
-
> = z.nativeEnum(Deployments2DeploymentsResponseType);
|
|
1554
|
-
/** @internal */
|
|
1555
|
-
export const Deployments2DeploymentsResponseType$outboundSchema:
|
|
1556
|
-
z.ZodNativeEnum<typeof Deployments2DeploymentsResponseType> =
|
|
1557
|
-
Deployments2DeploymentsResponseType$inboundSchema;
|
|
1558
|
-
|
|
1559
|
-
/** @internal */
|
|
1560
|
-
export const Deployments21$inboundSchema: z.ZodType<
|
|
1561
|
-
Deployments21,
|
|
1562
|
-
z.ZodTypeDef,
|
|
1563
|
-
unknown
|
|
1564
|
-
> = z.object({
|
|
1565
|
-
type: Deployments2DeploymentsResponseType$inboundSchema,
|
|
1566
|
-
text: z.string(),
|
|
1567
|
-
});
|
|
1568
|
-
/** @internal */
|
|
1569
|
-
export type Deployments21$Outbound = {
|
|
1570
|
-
type: string;
|
|
1571
|
-
text: string;
|
|
1572
|
-
};
|
|
1573
|
-
|
|
1574
|
-
/** @internal */
|
|
1575
|
-
export const Deployments21$outboundSchema: z.ZodType<
|
|
1576
|
-
Deployments21$Outbound,
|
|
1577
|
-
z.ZodTypeDef,
|
|
1578
|
-
Deployments21
|
|
1579
|
-
> = z.object({
|
|
1580
|
-
type: Deployments2DeploymentsResponseType$outboundSchema,
|
|
1581
|
-
text: z.string(),
|
|
1582
|
-
});
|
|
1583
|
-
|
|
1584
|
-
export function deployments21ToJSON(deployments21: Deployments21): string {
|
|
1585
|
-
return JSON.stringify(Deployments21$outboundSchema.parse(deployments21));
|
|
1586
|
-
}
|
|
1587
|
-
export function deployments21FromJSON(
|
|
1588
|
-
jsonString: string,
|
|
1589
|
-
): SafeParseResult<Deployments21, SDKValidationError> {
|
|
1590
|
-
return safeParse(
|
|
1591
|
-
jsonString,
|
|
1592
|
-
(x) => Deployments21$inboundSchema.parse(JSON.parse(x)),
|
|
1593
|
-
`Failed to parse 'Deployments21' from JSON`,
|
|
1594
|
-
);
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
|
-
/** @internal */
|
|
1598
|
-
export const DeploymentsContent2$inboundSchema: z.ZodType<
|
|
1599
|
-
DeploymentsContent2,
|
|
1600
|
-
z.ZodTypeDef,
|
|
1601
|
-
unknown
|
|
1602
|
-
> = z.union([
|
|
1603
|
-
z.lazy(() => Deployments21$inboundSchema),
|
|
1604
|
-
z.lazy(() => Deployments22$inboundSchema),
|
|
1605
|
-
z.lazy(() => Deployments23$inboundSchema),
|
|
1606
|
-
]);
|
|
1607
|
-
/** @internal */
|
|
1608
|
-
export type DeploymentsContent2$Outbound =
|
|
1609
|
-
| Deployments21$Outbound
|
|
1610
|
-
| Deployments22$Outbound
|
|
1611
|
-
| Deployments23$Outbound;
|
|
1612
|
-
|
|
1613
|
-
/** @internal */
|
|
1614
|
-
export const DeploymentsContent2$outboundSchema: z.ZodType<
|
|
1615
|
-
DeploymentsContent2$Outbound,
|
|
1616
|
-
z.ZodTypeDef,
|
|
1617
|
-
DeploymentsContent2
|
|
1618
|
-
> = z.union([
|
|
1619
|
-
z.lazy(() => Deployments21$outboundSchema),
|
|
1620
|
-
z.lazy(() => Deployments22$outboundSchema),
|
|
1621
|
-
z.lazy(() => Deployments23$outboundSchema),
|
|
1622
|
-
]);
|
|
1623
|
-
|
|
1624
|
-
export function deploymentsContent2ToJSON(
|
|
1625
|
-
deploymentsContent2: DeploymentsContent2,
|
|
1626
|
-
): string {
|
|
1627
|
-
return JSON.stringify(
|
|
1628
|
-
DeploymentsContent2$outboundSchema.parse(deploymentsContent2),
|
|
1629
|
-
);
|
|
1630
|
-
}
|
|
1631
|
-
export function deploymentsContent2FromJSON(
|
|
1632
|
-
jsonString: string,
|
|
1633
|
-
): SafeParseResult<DeploymentsContent2, SDKValidationError> {
|
|
1634
|
-
return safeParse(
|
|
1635
|
-
jsonString,
|
|
1636
|
-
(x) => DeploymentsContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1637
|
-
`Failed to parse 'DeploymentsContent2' from JSON`,
|
|
1638
|
-
);
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
/** @internal */
|
|
1642
|
-
export const DeploymentsContent$inboundSchema: z.ZodType<
|
|
1643
|
-
DeploymentsContent,
|
|
1644
|
-
z.ZodTypeDef,
|
|
1645
|
-
unknown
|
|
1646
|
-
> = z.union([
|
|
1647
|
-
z.string(),
|
|
1648
|
-
z.array(z.union([
|
|
1649
|
-
z.lazy(() => Deployments21$inboundSchema),
|
|
1650
|
-
z.lazy(() => Deployments22$inboundSchema),
|
|
1651
|
-
z.lazy(() => Deployments23$inboundSchema),
|
|
1652
|
-
])),
|
|
1653
|
-
]);
|
|
1654
|
-
/** @internal */
|
|
1655
|
-
export type DeploymentsContent$Outbound =
|
|
1656
|
-
| string
|
|
1657
|
-
| Array<
|
|
1658
|
-
Deployments21$Outbound | Deployments22$Outbound | Deployments23$Outbound
|
|
1659
|
-
>;
|
|
1660
|
-
|
|
1661
|
-
/** @internal */
|
|
1662
|
-
export const DeploymentsContent$outboundSchema: z.ZodType<
|
|
1663
|
-
DeploymentsContent$Outbound,
|
|
1664
|
-
z.ZodTypeDef,
|
|
1665
|
-
DeploymentsContent
|
|
1666
|
-
> = z.union([
|
|
1667
|
-
z.string(),
|
|
1668
|
-
z.array(z.union([
|
|
1669
|
-
z.lazy(() => Deployments21$outboundSchema),
|
|
1670
|
-
z.lazy(() => Deployments22$outboundSchema),
|
|
1671
|
-
z.lazy(() => Deployments23$outboundSchema),
|
|
1672
|
-
])),
|
|
1673
|
-
]);
|
|
1674
|
-
|
|
1675
|
-
export function deploymentsContentToJSON(
|
|
1676
|
-
deploymentsContent: DeploymentsContent,
|
|
1677
|
-
): string {
|
|
1678
|
-
return JSON.stringify(
|
|
1679
|
-
DeploymentsContent$outboundSchema.parse(deploymentsContent),
|
|
1680
|
-
);
|
|
1681
|
-
}
|
|
1682
|
-
export function deploymentsContentFromJSON(
|
|
1683
|
-
jsonString: string,
|
|
1684
|
-
): SafeParseResult<DeploymentsContent, SDKValidationError> {
|
|
1685
|
-
return safeParse(
|
|
1686
|
-
jsonString,
|
|
1687
|
-
(x) => DeploymentsContent$inboundSchema.parse(JSON.parse(x)),
|
|
1688
|
-
`Failed to parse 'DeploymentsContent' from JSON`,
|
|
1689
|
-
);
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
/** @internal */
|
|
1693
|
-
export const DeploymentsDeploymentsType$inboundSchema: z.ZodNativeEnum<
|
|
1694
|
-
typeof DeploymentsDeploymentsType
|
|
1695
|
-
> = z.nativeEnum(DeploymentsDeploymentsType);
|
|
1696
|
-
/** @internal */
|
|
1697
|
-
export const DeploymentsDeploymentsType$outboundSchema: z.ZodNativeEnum<
|
|
1698
|
-
typeof DeploymentsDeploymentsType
|
|
1699
|
-
> = DeploymentsDeploymentsType$inboundSchema;
|
|
1700
|
-
|
|
1701
|
-
/** @internal */
|
|
1702
|
-
export const DeploymentsDeploymentsFunction$inboundSchema: z.ZodType<
|
|
1703
|
-
DeploymentsDeploymentsFunction,
|
|
1704
|
-
z.ZodTypeDef,
|
|
1705
|
-
unknown
|
|
1706
|
-
> = z.object({
|
|
1707
|
-
name: z.string(),
|
|
1708
|
-
arguments: z.string(),
|
|
1709
|
-
});
|
|
1710
|
-
/** @internal */
|
|
1711
|
-
export type DeploymentsDeploymentsFunction$Outbound = {
|
|
1712
|
-
name: string;
|
|
1713
|
-
arguments: string;
|
|
1714
|
-
};
|
|
1715
|
-
|
|
1716
|
-
/** @internal */
|
|
1717
|
-
export const DeploymentsDeploymentsFunction$outboundSchema: z.ZodType<
|
|
1718
|
-
DeploymentsDeploymentsFunction$Outbound,
|
|
1719
|
-
z.ZodTypeDef,
|
|
1720
|
-
DeploymentsDeploymentsFunction
|
|
1721
|
-
> = z.object({
|
|
1722
|
-
name: z.string(),
|
|
1723
|
-
arguments: z.string(),
|
|
1724
|
-
});
|
|
1725
|
-
|
|
1726
|
-
export function deploymentsDeploymentsFunctionToJSON(
|
|
1727
|
-
deploymentsDeploymentsFunction: DeploymentsDeploymentsFunction,
|
|
1728
|
-
): string {
|
|
1729
|
-
return JSON.stringify(
|
|
1730
|
-
DeploymentsDeploymentsFunction$outboundSchema.parse(
|
|
1731
|
-
deploymentsDeploymentsFunction,
|
|
1732
|
-
),
|
|
1733
|
-
);
|
|
1734
|
-
}
|
|
1735
|
-
export function deploymentsDeploymentsFunctionFromJSON(
|
|
1736
|
-
jsonString: string,
|
|
1737
|
-
): SafeParseResult<DeploymentsDeploymentsFunction, SDKValidationError> {
|
|
1738
|
-
return safeParse(
|
|
1739
|
-
jsonString,
|
|
1740
|
-
(x) => DeploymentsDeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1741
|
-
`Failed to parse 'DeploymentsDeploymentsFunction' from JSON`,
|
|
1742
|
-
);
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
/** @internal */
|
|
1746
|
-
export const DeploymentsToolCalls$inboundSchema: z.ZodType<
|
|
1747
|
-
DeploymentsToolCalls,
|
|
1748
|
-
z.ZodTypeDef,
|
|
1749
|
-
unknown
|
|
1750
|
-
> = z.object({
|
|
1751
|
-
id: z.string().optional(),
|
|
1752
|
-
index: z.number().optional(),
|
|
1753
|
-
type: DeploymentsDeploymentsType$inboundSchema,
|
|
1754
|
-
function: z.lazy(() => DeploymentsDeploymentsFunction$inboundSchema),
|
|
1755
|
-
});
|
|
1756
|
-
/** @internal */
|
|
1757
|
-
export type DeploymentsToolCalls$Outbound = {
|
|
1758
|
-
id?: string | undefined;
|
|
1759
|
-
index?: number | undefined;
|
|
1760
|
-
type: string;
|
|
1761
|
-
function: DeploymentsDeploymentsFunction$Outbound;
|
|
1762
|
-
};
|
|
1763
|
-
|
|
1764
|
-
/** @internal */
|
|
1765
|
-
export const DeploymentsToolCalls$outboundSchema: z.ZodType<
|
|
1766
|
-
DeploymentsToolCalls$Outbound,
|
|
1767
|
-
z.ZodTypeDef,
|
|
1768
|
-
DeploymentsToolCalls
|
|
1769
|
-
> = z.object({
|
|
1770
|
-
id: z.string().optional(),
|
|
1771
|
-
index: z.number().optional(),
|
|
1772
|
-
type: DeploymentsDeploymentsType$outboundSchema,
|
|
1773
|
-
function: z.lazy(() => DeploymentsDeploymentsFunction$outboundSchema),
|
|
1774
|
-
});
|
|
1775
|
-
|
|
1776
|
-
export function deploymentsToolCallsToJSON(
|
|
1777
|
-
deploymentsToolCalls: DeploymentsToolCalls,
|
|
1778
|
-
): string {
|
|
1779
|
-
return JSON.stringify(
|
|
1780
|
-
DeploymentsToolCalls$outboundSchema.parse(deploymentsToolCalls),
|
|
1781
|
-
);
|
|
1782
|
-
}
|
|
1783
|
-
export function deploymentsToolCallsFromJSON(
|
|
1784
|
-
jsonString: string,
|
|
1785
|
-
): SafeParseResult<DeploymentsToolCalls, SDKValidationError> {
|
|
1786
|
-
return safeParse(
|
|
1787
|
-
jsonString,
|
|
1788
|
-
(x) => DeploymentsToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1789
|
-
`Failed to parse 'DeploymentsToolCalls' from JSON`,
|
|
1790
|
-
);
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
/** @internal */
|
|
1794
|
-
export const DeploymentsMessages$inboundSchema: z.ZodType<
|
|
1795
|
-
DeploymentsMessages,
|
|
1796
|
-
z.ZodTypeDef,
|
|
1797
|
-
unknown
|
|
1798
|
-
> = z.object({
|
|
1799
|
-
role: DeploymentsRole$inboundSchema,
|
|
1800
|
-
content: z.nullable(
|
|
1801
|
-
z.union([
|
|
1802
|
-
z.string(),
|
|
1803
|
-
z.array(z.union([
|
|
1804
|
-
z.lazy(() => Deployments21$inboundSchema),
|
|
1805
|
-
z.lazy(() => Deployments22$inboundSchema),
|
|
1806
|
-
z.lazy(() => Deployments23$inboundSchema),
|
|
1807
|
-
])),
|
|
1808
|
-
]),
|
|
1809
|
-
),
|
|
1810
|
-
tool_calls: z.array(z.lazy(() => DeploymentsToolCalls$inboundSchema))
|
|
1811
|
-
.optional(),
|
|
1812
|
-
tool_call_id: z.string().optional(),
|
|
1813
|
-
}).transform((v) => {
|
|
1814
|
-
return remap$(v, {
|
|
1815
|
-
"tool_calls": "toolCalls",
|
|
1816
|
-
"tool_call_id": "toolCallId",
|
|
1817
|
-
});
|
|
1818
|
-
});
|
|
1819
|
-
/** @internal */
|
|
1820
|
-
export type DeploymentsMessages$Outbound = {
|
|
1821
|
-
role: string;
|
|
1822
|
-
content:
|
|
1823
|
-
| string
|
|
1824
|
-
| Array<
|
|
1825
|
-
Deployments21$Outbound | Deployments22$Outbound | Deployments23$Outbound
|
|
1826
|
-
>
|
|
1827
|
-
| null;
|
|
1828
|
-
tool_calls?: Array<DeploymentsToolCalls$Outbound> | undefined;
|
|
1829
|
-
tool_call_id?: string | undefined;
|
|
1830
|
-
};
|
|
1831
|
-
|
|
1832
|
-
/** @internal */
|
|
1833
|
-
export const DeploymentsMessages$outboundSchema: z.ZodType<
|
|
1834
|
-
DeploymentsMessages$Outbound,
|
|
1835
|
-
z.ZodTypeDef,
|
|
1836
|
-
DeploymentsMessages
|
|
1837
|
-
> = z.object({
|
|
1838
|
-
role: DeploymentsRole$outboundSchema,
|
|
1839
|
-
content: z.nullable(
|
|
1840
|
-
z.union([
|
|
1841
|
-
z.string(),
|
|
1842
|
-
z.array(z.union([
|
|
1843
|
-
z.lazy(() => Deployments21$outboundSchema),
|
|
1844
|
-
z.lazy(() => Deployments22$outboundSchema),
|
|
1845
|
-
z.lazy(() => Deployments23$outboundSchema),
|
|
1846
|
-
])),
|
|
1847
|
-
]),
|
|
1848
|
-
),
|
|
1849
|
-
toolCalls: z.array(z.lazy(() => DeploymentsToolCalls$outboundSchema))
|
|
1850
|
-
.optional(),
|
|
1851
|
-
toolCallId: z.string().optional(),
|
|
1852
|
-
}).transform((v) => {
|
|
1853
|
-
return remap$(v, {
|
|
1854
|
-
toolCalls: "tool_calls",
|
|
1855
|
-
toolCallId: "tool_call_id",
|
|
1856
|
-
});
|
|
1857
|
-
});
|
|
1858
|
-
|
|
1859
|
-
export function deploymentsMessagesToJSON(
|
|
1860
|
-
deploymentsMessages: DeploymentsMessages,
|
|
1861
|
-
): string {
|
|
1862
|
-
return JSON.stringify(
|
|
1863
|
-
DeploymentsMessages$outboundSchema.parse(deploymentsMessages),
|
|
1864
|
-
);
|
|
1865
|
-
}
|
|
1866
|
-
export function deploymentsMessagesFromJSON(
|
|
1867
|
-
jsonString: string,
|
|
1868
|
-
): SafeParseResult<DeploymentsMessages, SDKValidationError> {
|
|
1869
|
-
return safeParse(
|
|
1870
|
-
jsonString,
|
|
1871
|
-
(x) => DeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
|
|
1872
|
-
`Failed to parse 'DeploymentsMessages' from JSON`,
|
|
1873
|
-
);
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
/** @internal */
|
|
1877
|
-
export const DeploymentsPromptConfig$inboundSchema: z.ZodType<
|
|
1878
|
-
DeploymentsPromptConfig,
|
|
1879
|
-
z.ZodTypeDef,
|
|
1880
|
-
unknown
|
|
1881
|
-
> = z.object({
|
|
1882
|
-
tools: z.array(z.lazy(() => DeploymentsTools$inboundSchema)),
|
|
1883
|
-
model: z.string(),
|
|
1884
|
-
model_type: DeploymentsModelType$inboundSchema,
|
|
1885
|
-
model_parameters: z.lazy(() => DeploymentsModelParameters$inboundSchema),
|
|
1886
|
-
provider: DeploymentsProvider$inboundSchema,
|
|
1887
|
-
messages: z.array(z.lazy(() => DeploymentsMessages$inboundSchema)),
|
|
1888
|
-
}).transform((v) => {
|
|
1889
|
-
return remap$(v, {
|
|
1890
|
-
"model_type": "modelType",
|
|
1891
|
-
"model_parameters": "modelParameters",
|
|
1892
|
-
});
|
|
1893
|
-
});
|
|
1894
|
-
/** @internal */
|
|
1895
|
-
export type DeploymentsPromptConfig$Outbound = {
|
|
1896
|
-
tools: Array<DeploymentsTools$Outbound>;
|
|
1897
|
-
model: string;
|
|
1898
|
-
model_type: string;
|
|
1899
|
-
model_parameters: DeploymentsModelParameters$Outbound;
|
|
1900
|
-
provider: string;
|
|
1901
|
-
messages: Array<DeploymentsMessages$Outbound>;
|
|
1902
|
-
};
|
|
1903
|
-
|
|
1904
|
-
/** @internal */
|
|
1905
|
-
export const DeploymentsPromptConfig$outboundSchema: z.ZodType<
|
|
1906
|
-
DeploymentsPromptConfig$Outbound,
|
|
1907
|
-
z.ZodTypeDef,
|
|
1908
|
-
DeploymentsPromptConfig
|
|
1909
|
-
> = z.object({
|
|
1910
|
-
tools: z.array(z.lazy(() => DeploymentsTools$outboundSchema)),
|
|
1911
|
-
model: z.string(),
|
|
1912
|
-
modelType: DeploymentsModelType$outboundSchema,
|
|
1913
|
-
modelParameters: z.lazy(() => DeploymentsModelParameters$outboundSchema),
|
|
1914
|
-
provider: DeploymentsProvider$outboundSchema,
|
|
1915
|
-
messages: z.array(z.lazy(() => DeploymentsMessages$outboundSchema)),
|
|
1916
|
-
}).transform((v) => {
|
|
1917
|
-
return remap$(v, {
|
|
1918
|
-
modelType: "model_type",
|
|
1919
|
-
modelParameters: "model_parameters",
|
|
1920
|
-
});
|
|
1921
|
-
});
|
|
1922
|
-
|
|
1923
|
-
export function deploymentsPromptConfigToJSON(
|
|
1924
|
-
deploymentsPromptConfig: DeploymentsPromptConfig,
|
|
1925
|
-
): string {
|
|
1926
|
-
return JSON.stringify(
|
|
1927
|
-
DeploymentsPromptConfig$outboundSchema.parse(deploymentsPromptConfig),
|
|
1928
|
-
);
|
|
1929
|
-
}
|
|
1930
|
-
export function deploymentsPromptConfigFromJSON(
|
|
1931
|
-
jsonString: string,
|
|
1932
|
-
): SafeParseResult<DeploymentsPromptConfig, SDKValidationError> {
|
|
1933
|
-
return safeParse(
|
|
1934
|
-
jsonString,
|
|
1935
|
-
(x) => DeploymentsPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
1936
|
-
`Failed to parse 'DeploymentsPromptConfig' from JSON`,
|
|
1937
|
-
);
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
|
-
/** @internal */
|
|
1941
|
-
export const DeploymentsData$inboundSchema: z.ZodType<
|
|
1942
|
-
DeploymentsData,
|
|
1943
|
-
z.ZodTypeDef,
|
|
1944
|
-
unknown
|
|
1945
|
-
> = z.object({
|
|
1946
|
-
id: z.string(),
|
|
1947
|
-
created: z.string(),
|
|
1948
|
-
updated: z.string(),
|
|
1949
|
-
key: z.string(),
|
|
1950
|
-
description: z.string(),
|
|
1951
|
-
prompt_config: z.lazy(() => DeploymentsPromptConfig$inboundSchema),
|
|
1952
|
-
version: z.string(),
|
|
1953
|
-
}).transform((v) => {
|
|
1954
|
-
return remap$(v, {
|
|
1955
|
-
"prompt_config": "promptConfig",
|
|
1956
|
-
});
|
|
1957
|
-
});
|
|
1958
|
-
/** @internal */
|
|
1959
|
-
export type DeploymentsData$Outbound = {
|
|
1960
|
-
id: string;
|
|
1961
|
-
created: string;
|
|
1962
|
-
updated: string;
|
|
1963
|
-
key: string;
|
|
1964
|
-
description: string;
|
|
1965
|
-
prompt_config: DeploymentsPromptConfig$Outbound;
|
|
1966
|
-
version: string;
|
|
1967
|
-
};
|
|
1968
|
-
|
|
1969
|
-
/** @internal */
|
|
1970
|
-
export const DeploymentsData$outboundSchema: z.ZodType<
|
|
1971
|
-
DeploymentsData$Outbound,
|
|
1972
|
-
z.ZodTypeDef,
|
|
1973
|
-
DeploymentsData
|
|
1974
|
-
> = z.object({
|
|
1975
|
-
id: z.string(),
|
|
1976
|
-
created: z.string(),
|
|
1977
|
-
updated: z.string(),
|
|
1978
|
-
key: z.string(),
|
|
1979
|
-
description: z.string(),
|
|
1980
|
-
promptConfig: z.lazy(() => DeploymentsPromptConfig$outboundSchema),
|
|
1981
|
-
version: z.string(),
|
|
1982
|
-
}).transform((v) => {
|
|
1983
|
-
return remap$(v, {
|
|
1984
|
-
promptConfig: "prompt_config",
|
|
1985
|
-
});
|
|
1986
|
-
});
|
|
1987
|
-
|
|
1988
|
-
export function deploymentsDataToJSON(
|
|
1989
|
-
deploymentsData: DeploymentsData,
|
|
1990
|
-
): string {
|
|
1991
|
-
return JSON.stringify(DeploymentsData$outboundSchema.parse(deploymentsData));
|
|
1992
|
-
}
|
|
1993
|
-
export function deploymentsDataFromJSON(
|
|
1994
|
-
jsonString: string,
|
|
1995
|
-
): SafeParseResult<DeploymentsData, SDKValidationError> {
|
|
1996
|
-
return safeParse(
|
|
1997
|
-
jsonString,
|
|
1998
|
-
(x) => DeploymentsData$inboundSchema.parse(JSON.parse(x)),
|
|
1999
|
-
`Failed to parse 'DeploymentsData' from JSON`,
|
|
2000
|
-
);
|
|
2001
|
-
}
|
|
2002
|
-
|
|
2003
|
-
/** @internal */
|
|
2004
|
-
export const DeploymentsResponseBody$inboundSchema: z.ZodType<
|
|
2005
|
-
DeploymentsResponseBody,
|
|
2006
|
-
z.ZodTypeDef,
|
|
2007
|
-
unknown
|
|
2008
|
-
> = z.object({
|
|
2009
|
-
object: DeploymentsObject$inboundSchema,
|
|
2010
|
-
data: z.array(z.lazy(() => DeploymentsData$inboundSchema)),
|
|
2011
|
-
has_more: z.boolean(),
|
|
2012
|
-
}).transform((v) => {
|
|
2013
|
-
return remap$(v, {
|
|
2014
|
-
"has_more": "hasMore",
|
|
2015
|
-
});
|
|
2016
|
-
});
|
|
2017
|
-
/** @internal */
|
|
2018
|
-
export type DeploymentsResponseBody$Outbound = {
|
|
2019
|
-
object: string;
|
|
2020
|
-
data: Array<DeploymentsData$Outbound>;
|
|
2021
|
-
has_more: boolean;
|
|
2022
|
-
};
|
|
2023
|
-
|
|
2024
|
-
/** @internal */
|
|
2025
|
-
export const DeploymentsResponseBody$outboundSchema: z.ZodType<
|
|
2026
|
-
DeploymentsResponseBody$Outbound,
|
|
2027
|
-
z.ZodTypeDef,
|
|
2028
|
-
DeploymentsResponseBody
|
|
2029
|
-
> = z.object({
|
|
2030
|
-
object: DeploymentsObject$outboundSchema,
|
|
2031
|
-
data: z.array(z.lazy(() => DeploymentsData$outboundSchema)),
|
|
2032
|
-
hasMore: z.boolean(),
|
|
2033
|
-
}).transform((v) => {
|
|
2034
|
-
return remap$(v, {
|
|
2035
|
-
hasMore: "has_more",
|
|
2036
|
-
});
|
|
2037
|
-
});
|
|
2038
|
-
|
|
2039
|
-
export function deploymentsResponseBodyToJSON(
|
|
2040
|
-
deploymentsResponseBody: DeploymentsResponseBody,
|
|
2041
|
-
): string {
|
|
2042
|
-
return JSON.stringify(
|
|
2043
|
-
DeploymentsResponseBody$outboundSchema.parse(deploymentsResponseBody),
|
|
2044
|
-
);
|
|
2045
|
-
}
|
|
2046
|
-
export function deploymentsResponseBodyFromJSON(
|
|
2047
|
-
jsonString: string,
|
|
2048
|
-
): SafeParseResult<DeploymentsResponseBody, SDKValidationError> {
|
|
2049
|
-
return safeParse(
|
|
2050
|
-
jsonString,
|
|
2051
|
-
(x) => DeploymentsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
2052
|
-
`Failed to parse 'DeploymentsResponseBody' from JSON`,
|
|
2053
|
-
);
|
|
2054
|
-
}
|