@orq-ai/node 3.14.8 → 4.0.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 +210 -213
- package/bin/mcp-server.js.map +38 -38
- package/docs/sdks/agents/README.md +8 -4
- package/docs/sdks/budgets/README.md +4 -2
- package/docs/sdks/tools/README.md +4 -2
- package/examples/package-lock.json +5 -6
- 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 +10 -10
- package/models/operations/duplicatetool.js +10 -10
- 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 +10 -10
- 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 +10 -10
- 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 +10 -10
- package/package.json +4 -4
- 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 +10 -10
- package/src/models/operations/duplicatetool.ts +10 -10
- 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 +10 -10
- 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 +10 -10
- 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 +10 -10
- package/packages/orq-rc/FUNCTIONS.md +0 -103
- package/packages/orq-rc/README.md +0 -909
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/agents/README.md +0 -1319
- package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
- package/packages/orq-rc/docs/sdks/chunking/README.md +0 -95
- 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 -1489
- package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1172
- 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/tools/README.md +0 -490
- 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 -627
- 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 -3071
- package/packages/orq-rc/package.json +0 -43
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -167
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -167
- package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -163
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -190
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -188
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -176
- 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 -171
- 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 -163
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +0 -175
- 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 -259
- 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 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.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 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -37
- 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/toolsDuplicate.ts +0 -37
- 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/deployments.ts +0 -8147
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/security.ts +0 -71
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -91
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +0 -91
- package/packages/orq-rc/src/models/errors/getagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -80
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -80
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -80
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -90
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -29
- package/packages/orq-rc/src/models/errors/listagenttasks.ts +0 -80
- 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/retrievecontact.ts +0 -91
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -83
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -80
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -91
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -78
- package/packages/orq-rc/src/models/operations/createagent.ts +0 -3104
- package/packages/orq-rc/src/models/operations/createbudget.ts +0 -745
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -428
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -267
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -302
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -6943
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -9341
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1850
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -274
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -287
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -2032
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -7812
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -4077
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -243
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -87
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -66
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -87
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -98
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -78
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -75
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -6547
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -10532
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1266
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2606
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -10655
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +0 -2349
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
- package/packages/orq-rc/src/models/operations/getagent.ts +0 -957
- package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -259
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -318
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -338
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -1277
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2572
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2308
- package/packages/orq-rc/src/models/operations/getbudget.ts +0 -441
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -230
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -7486
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1292
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2437
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2444
- package/packages/orq-rc/src/models/operations/index.ts +0 -102
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1569
- package/packages/orq-rc/src/models/operations/listactions.ts +0 -526
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -1077
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -1106
- package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -617
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -507
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -500
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -4086
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -454
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1303
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2580
- package/packages/orq-rc/src/models/operations/parse.ts +0 -1295
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -426
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -210
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -3853
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -291
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -201
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -220
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -1160
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2333
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -4342
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3573
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -1367
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -4355
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -3321
- package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -628
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -325
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -6934
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -386
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -9704
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -2341
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -283
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -296
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -1363
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -8176
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4288
- package/packages/orq-rc/src/sdk/agents.ts +0 -238
- 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/sdk.ts +0 -97
- package/packages/orq-rc/src/sdk/tools.ts +0 -117
- 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 -16
- 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/tsconfig.json +0 -41
|
@@ -1,4077 +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
|
-
/**
|
|
13
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
14
|
-
*/
|
|
15
|
-
export const CreateToolRequestBodyToolsRequest5Status = {
|
|
16
|
-
Live: "live",
|
|
17
|
-
Draft: "draft",
|
|
18
|
-
Pending: "pending",
|
|
19
|
-
Published: "published",
|
|
20
|
-
} as const;
|
|
21
|
-
/**
|
|
22
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
23
|
-
*/
|
|
24
|
-
export type CreateToolRequestBodyToolsRequest5Status = ClosedEnum<
|
|
25
|
-
typeof CreateToolRequestBodyToolsRequest5Status
|
|
26
|
-
>;
|
|
27
|
-
|
|
28
|
-
export const CreateToolRequestBodyToolsRequest5Type = {
|
|
29
|
-
Code: "code",
|
|
30
|
-
} as const;
|
|
31
|
-
export type CreateToolRequestBodyToolsRequest5Type = ClosedEnum<
|
|
32
|
-
typeof CreateToolRequestBodyToolsRequest5Type
|
|
33
|
-
>;
|
|
34
|
-
|
|
35
|
-
export const RequestBodyLanguage = {
|
|
36
|
-
Python: "python",
|
|
37
|
-
} as const;
|
|
38
|
-
export type RequestBodyLanguage = ClosedEnum<typeof RequestBodyLanguage>;
|
|
39
|
-
|
|
40
|
-
export type RequestBodyCodeTool = {
|
|
41
|
-
/**
|
|
42
|
-
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
43
|
-
*/
|
|
44
|
-
parameters?: { [k: string]: any } | undefined;
|
|
45
|
-
language: RequestBodyLanguage;
|
|
46
|
-
/**
|
|
47
|
-
* The code to execute.
|
|
48
|
-
*/
|
|
49
|
-
code: string;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Executes code snippets in a sandboxed environment, currently supporting Python.
|
|
54
|
-
*/
|
|
55
|
-
export type RequestBodyCodeExecutionTool = {
|
|
56
|
-
/**
|
|
57
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
58
|
-
*
|
|
59
|
-
* @remarks
|
|
60
|
-
*
|
|
61
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
62
|
-
*
|
|
63
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
64
|
-
*/
|
|
65
|
-
path: string;
|
|
66
|
-
/**
|
|
67
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
68
|
-
*/
|
|
69
|
-
key: string;
|
|
70
|
-
/**
|
|
71
|
-
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
72
|
-
*/
|
|
73
|
-
displayName?: string | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
76
|
-
*/
|
|
77
|
-
description: string;
|
|
78
|
-
/**
|
|
79
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
80
|
-
*/
|
|
81
|
-
status?: CreateToolRequestBodyToolsRequest5Status | undefined;
|
|
82
|
-
type: CreateToolRequestBodyToolsRequest5Type;
|
|
83
|
-
codeTool: RequestBodyCodeTool;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
88
|
-
*/
|
|
89
|
-
export const CreateToolRequestBodyToolsRequestStatus = {
|
|
90
|
-
Live: "live",
|
|
91
|
-
Draft: "draft",
|
|
92
|
-
Pending: "pending",
|
|
93
|
-
Published: "published",
|
|
94
|
-
} as const;
|
|
95
|
-
/**
|
|
96
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
97
|
-
*/
|
|
98
|
-
export type CreateToolRequestBodyToolsRequestStatus = ClosedEnum<
|
|
99
|
-
typeof CreateToolRequestBodyToolsRequestStatus
|
|
100
|
-
>;
|
|
101
|
-
|
|
102
|
-
export const CreateToolRequestBodyToolsRequest4Type = {
|
|
103
|
-
Mcp: "mcp",
|
|
104
|
-
} as const;
|
|
105
|
-
export type CreateToolRequestBodyToolsRequest4Type = ClosedEnum<
|
|
106
|
-
typeof CreateToolRequestBodyToolsRequest4Type
|
|
107
|
-
>;
|
|
108
|
-
|
|
109
|
-
export type Headers = {
|
|
110
|
-
value: string;
|
|
111
|
-
encrypted?: boolean | undefined;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export const CreateToolRequestBodyToolsRequest4McpType = {
|
|
115
|
-
Object: "object",
|
|
116
|
-
} as const;
|
|
117
|
-
export type CreateToolRequestBodyToolsRequest4McpType = ClosedEnum<
|
|
118
|
-
typeof CreateToolRequestBodyToolsRequest4McpType
|
|
119
|
-
>;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* The original MCP tool input schema for LLM conversion
|
|
123
|
-
*/
|
|
124
|
-
export type InputSchema = {
|
|
125
|
-
type: CreateToolRequestBodyToolsRequest4McpType;
|
|
126
|
-
properties?: { [k: string]: any } | undefined;
|
|
127
|
-
required?: Array<string> | undefined;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* The connection type used by the MCP server
|
|
132
|
-
*/
|
|
133
|
-
export const ConnectionType = {
|
|
134
|
-
Http: "http",
|
|
135
|
-
Sse: "sse",
|
|
136
|
-
} as const;
|
|
137
|
-
/**
|
|
138
|
-
* The connection type used by the MCP server
|
|
139
|
-
*/
|
|
140
|
-
export type ConnectionType = ClosedEnum<typeof ConnectionType>;
|
|
141
|
-
|
|
142
|
-
export type Mcp = {
|
|
143
|
-
/**
|
|
144
|
-
* The ID of the MCP server this tool belongs to
|
|
145
|
-
*/
|
|
146
|
-
serverId: string;
|
|
147
|
-
/**
|
|
148
|
-
* The original tool name from the MCP server
|
|
149
|
-
*/
|
|
150
|
-
toolName: string;
|
|
151
|
-
/**
|
|
152
|
-
* The MCP server URL (cached for execution)
|
|
153
|
-
*/
|
|
154
|
-
serverUrl: string;
|
|
155
|
-
/**
|
|
156
|
-
* HTTP headers for MCP server requests (encrypted format)
|
|
157
|
-
*/
|
|
158
|
-
headers?: { [k: string]: Headers } | undefined;
|
|
159
|
-
/**
|
|
160
|
-
* The original MCP tool input schema for LLM conversion
|
|
161
|
-
*/
|
|
162
|
-
inputSchema: InputSchema;
|
|
163
|
-
/**
|
|
164
|
-
* The connection type used by the MCP server
|
|
165
|
-
*/
|
|
166
|
-
connectionType: ConnectionType;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
|
|
171
|
-
*/
|
|
172
|
-
export type MCPTool = {
|
|
173
|
-
/**
|
|
174
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
175
|
-
*
|
|
176
|
-
* @remarks
|
|
177
|
-
*
|
|
178
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
179
|
-
*
|
|
180
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
181
|
-
*/
|
|
182
|
-
path: string;
|
|
183
|
-
/**
|
|
184
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
185
|
-
*/
|
|
186
|
-
key: string;
|
|
187
|
-
/**
|
|
188
|
-
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
189
|
-
*/
|
|
190
|
-
displayName?: string | undefined;
|
|
191
|
-
/**
|
|
192
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
193
|
-
*/
|
|
194
|
-
description: string;
|
|
195
|
-
/**
|
|
196
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
197
|
-
*/
|
|
198
|
-
status?: CreateToolRequestBodyToolsRequestStatus | undefined;
|
|
199
|
-
type: CreateToolRequestBodyToolsRequest4Type;
|
|
200
|
-
mcp: Mcp;
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
205
|
-
*/
|
|
206
|
-
export const CreateToolRequestBodyToolsStatus = {
|
|
207
|
-
Live: "live",
|
|
208
|
-
Draft: "draft",
|
|
209
|
-
Pending: "pending",
|
|
210
|
-
Published: "published",
|
|
211
|
-
} as const;
|
|
212
|
-
/**
|
|
213
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
214
|
-
*/
|
|
215
|
-
export type CreateToolRequestBodyToolsStatus = ClosedEnum<
|
|
216
|
-
typeof CreateToolRequestBodyToolsStatus
|
|
217
|
-
>;
|
|
218
|
-
|
|
219
|
-
export const CreateToolRequestBodyToolsRequestType = {
|
|
220
|
-
Http: "http",
|
|
221
|
-
} as const;
|
|
222
|
-
export type CreateToolRequestBodyToolsRequestType = ClosedEnum<
|
|
223
|
-
typeof CreateToolRequestBodyToolsRequestType
|
|
224
|
-
>;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* The HTTP method to use.
|
|
228
|
-
*/
|
|
229
|
-
export const CreateToolRequestBodyMethod = {
|
|
230
|
-
Get: "GET",
|
|
231
|
-
Post: "POST",
|
|
232
|
-
Put: "PUT",
|
|
233
|
-
Delete: "DELETE",
|
|
234
|
-
} as const;
|
|
235
|
-
/**
|
|
236
|
-
* The HTTP method to use.
|
|
237
|
-
*/
|
|
238
|
-
export type CreateToolRequestBodyMethod = ClosedEnum<
|
|
239
|
-
typeof CreateToolRequestBodyMethod
|
|
240
|
-
>;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
244
|
-
*/
|
|
245
|
-
export type RequestBodyBlueprint = {
|
|
246
|
-
/**
|
|
247
|
-
* The URL to send the request to.
|
|
248
|
-
*/
|
|
249
|
-
url: string;
|
|
250
|
-
/**
|
|
251
|
-
* The HTTP method to use.
|
|
252
|
-
*/
|
|
253
|
-
method: CreateToolRequestBodyMethod;
|
|
254
|
-
/**
|
|
255
|
-
* The headers to send with the request.
|
|
256
|
-
*/
|
|
257
|
-
headers?: { [k: string]: string } | undefined;
|
|
258
|
-
/**
|
|
259
|
-
* The body to send with the request.
|
|
260
|
-
*/
|
|
261
|
-
body?: { [k: string]: any } | undefined;
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* The type of the argument.
|
|
266
|
-
*/
|
|
267
|
-
export const CreateToolRequestBodyToolsRequest3Type = {
|
|
268
|
-
String: "string",
|
|
269
|
-
Number: "number",
|
|
270
|
-
Boolean: "boolean",
|
|
271
|
-
} as const;
|
|
272
|
-
/**
|
|
273
|
-
* The type of the argument.
|
|
274
|
-
*/
|
|
275
|
-
export type CreateToolRequestBodyToolsRequest3Type = ClosedEnum<
|
|
276
|
-
typeof CreateToolRequestBodyToolsRequest3Type
|
|
277
|
-
>;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* The default value of the argument.
|
|
281
|
-
*/
|
|
282
|
-
export type RequestBodyDefaultValue = string | number | boolean;
|
|
283
|
-
|
|
284
|
-
export type RequestBodyArguments = {
|
|
285
|
-
/**
|
|
286
|
-
* The type of the argument.
|
|
287
|
-
*/
|
|
288
|
-
type: CreateToolRequestBodyToolsRequest3Type;
|
|
289
|
-
/**
|
|
290
|
-
* A description of the argument.
|
|
291
|
-
*/
|
|
292
|
-
description: string;
|
|
293
|
-
/**
|
|
294
|
-
* Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
|
|
295
|
-
*/
|
|
296
|
-
sendToModel?: boolean | undefined;
|
|
297
|
-
/**
|
|
298
|
-
* The default value of the argument.
|
|
299
|
-
*/
|
|
300
|
-
defaultValue?: string | number | boolean | undefined;
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
export type CreateToolRequestBodyHttp = {
|
|
304
|
-
/**
|
|
305
|
-
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
306
|
-
*/
|
|
307
|
-
blueprint: RequestBodyBlueprint;
|
|
308
|
-
/**
|
|
309
|
-
* The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
|
|
310
|
-
*/
|
|
311
|
-
arguments?: { [k: string]: RequestBodyArguments } | undefined;
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
|
|
316
|
-
*/
|
|
317
|
-
export type RequestBodyHTTPTool = {
|
|
318
|
-
/**
|
|
319
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
320
|
-
*
|
|
321
|
-
* @remarks
|
|
322
|
-
*
|
|
323
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
324
|
-
*
|
|
325
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
326
|
-
*/
|
|
327
|
-
path: string;
|
|
328
|
-
/**
|
|
329
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
330
|
-
*/
|
|
331
|
-
key: string;
|
|
332
|
-
/**
|
|
333
|
-
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
334
|
-
*/
|
|
335
|
-
displayName?: string | undefined;
|
|
336
|
-
/**
|
|
337
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
338
|
-
*/
|
|
339
|
-
description: string;
|
|
340
|
-
/**
|
|
341
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
342
|
-
*/
|
|
343
|
-
status?: CreateToolRequestBodyToolsStatus | undefined;
|
|
344
|
-
type: CreateToolRequestBodyToolsRequestType;
|
|
345
|
-
http: CreateToolRequestBodyHttp;
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
350
|
-
*/
|
|
351
|
-
export const CreateToolRequestBodyStatus = {
|
|
352
|
-
Live: "live",
|
|
353
|
-
Draft: "draft",
|
|
354
|
-
Pending: "pending",
|
|
355
|
-
Published: "published",
|
|
356
|
-
} as const;
|
|
357
|
-
/**
|
|
358
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
359
|
-
*/
|
|
360
|
-
export type CreateToolRequestBodyStatus = ClosedEnum<
|
|
361
|
-
typeof CreateToolRequestBodyStatus
|
|
362
|
-
>;
|
|
363
|
-
|
|
364
|
-
export const CreateToolRequestBodyToolsType = {
|
|
365
|
-
JsonSchema: "json_schema",
|
|
366
|
-
} as const;
|
|
367
|
-
export type CreateToolRequestBodyToolsType = ClosedEnum<
|
|
368
|
-
typeof CreateToolRequestBodyToolsType
|
|
369
|
-
>;
|
|
370
|
-
|
|
371
|
-
export type RequestBodyJsonSchema = {
|
|
372
|
-
/**
|
|
373
|
-
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
374
|
-
*/
|
|
375
|
-
name: string;
|
|
376
|
-
/**
|
|
377
|
-
* A description of what the response format is for. This will be shown to the user.
|
|
378
|
-
*/
|
|
379
|
-
description?: string | undefined;
|
|
380
|
-
/**
|
|
381
|
-
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
382
|
-
*/
|
|
383
|
-
schema: { [k: string]: any };
|
|
384
|
-
/**
|
|
385
|
-
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
|
|
386
|
-
*/
|
|
387
|
-
strict?: boolean | null | undefined;
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* A tool that enforces structured output format using JSON Schema for consistent response formatting.
|
|
392
|
-
*/
|
|
393
|
-
export type JSONSchemaTool = {
|
|
394
|
-
/**
|
|
395
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
396
|
-
*
|
|
397
|
-
* @remarks
|
|
398
|
-
*
|
|
399
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
400
|
-
*
|
|
401
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
402
|
-
*/
|
|
403
|
-
path: string;
|
|
404
|
-
/**
|
|
405
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
406
|
-
*/
|
|
407
|
-
key: string;
|
|
408
|
-
/**
|
|
409
|
-
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
410
|
-
*/
|
|
411
|
-
displayName?: string | undefined;
|
|
412
|
-
/**
|
|
413
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
414
|
-
*/
|
|
415
|
-
description: string;
|
|
416
|
-
/**
|
|
417
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
418
|
-
*/
|
|
419
|
-
status?: CreateToolRequestBodyStatus | undefined;
|
|
420
|
-
type: CreateToolRequestBodyToolsType;
|
|
421
|
-
jsonSchema: RequestBodyJsonSchema;
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
426
|
-
*/
|
|
427
|
-
export const RequestBodyStatus = {
|
|
428
|
-
Live: "live",
|
|
429
|
-
Draft: "draft",
|
|
430
|
-
Pending: "pending",
|
|
431
|
-
Published: "published",
|
|
432
|
-
} as const;
|
|
433
|
-
/**
|
|
434
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
435
|
-
*/
|
|
436
|
-
export type RequestBodyStatus = ClosedEnum<typeof RequestBodyStatus>;
|
|
437
|
-
|
|
438
|
-
export const CreateToolRequestBodyType = {
|
|
439
|
-
Function: "function",
|
|
440
|
-
} as const;
|
|
441
|
-
export type CreateToolRequestBodyType = ClosedEnum<
|
|
442
|
-
typeof CreateToolRequestBodyType
|
|
443
|
-
>;
|
|
444
|
-
|
|
445
|
-
export type RequestBodyFunction = {
|
|
446
|
-
/**
|
|
447
|
-
* 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.
|
|
448
|
-
*/
|
|
449
|
-
name: string;
|
|
450
|
-
/**
|
|
451
|
-
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
452
|
-
*/
|
|
453
|
-
description?: string | undefined;
|
|
454
|
-
/**
|
|
455
|
-
* Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
|
|
456
|
-
*/
|
|
457
|
-
strict?: boolean | undefined;
|
|
458
|
-
/**
|
|
459
|
-
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
460
|
-
*/
|
|
461
|
-
parameters?: { [k: string]: any } | undefined;
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* A custom function tool that allows the model to call predefined functions with structured parameters.
|
|
466
|
-
*/
|
|
467
|
-
export type RequestBodyFunctionTool = {
|
|
468
|
-
/**
|
|
469
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
470
|
-
*
|
|
471
|
-
* @remarks
|
|
472
|
-
*
|
|
473
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
474
|
-
*
|
|
475
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
476
|
-
*/
|
|
477
|
-
path: string;
|
|
478
|
-
/**
|
|
479
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
480
|
-
*/
|
|
481
|
-
key: string;
|
|
482
|
-
/**
|
|
483
|
-
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
484
|
-
*/
|
|
485
|
-
displayName?: string | undefined;
|
|
486
|
-
/**
|
|
487
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
488
|
-
*/
|
|
489
|
-
description: string;
|
|
490
|
-
/**
|
|
491
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
492
|
-
*/
|
|
493
|
-
status?: RequestBodyStatus | undefined;
|
|
494
|
-
type: CreateToolRequestBodyType;
|
|
495
|
-
function: RequestBodyFunction;
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
/**
|
|
499
|
-
* The tool to create
|
|
500
|
-
*/
|
|
501
|
-
export type CreateToolRequestBody =
|
|
502
|
-
| RequestBodyFunctionTool
|
|
503
|
-
| JSONSchemaTool
|
|
504
|
-
| RequestBodyHTTPTool
|
|
505
|
-
| MCPTool
|
|
506
|
-
| RequestBodyCodeExecutionTool;
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
510
|
-
*/
|
|
511
|
-
export const CreateToolResponseBodyToolsResponse200Status = {
|
|
512
|
-
Live: "live",
|
|
513
|
-
Draft: "draft",
|
|
514
|
-
Pending: "pending",
|
|
515
|
-
Published: "published",
|
|
516
|
-
} as const;
|
|
517
|
-
/**
|
|
518
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
519
|
-
*/
|
|
520
|
-
export type CreateToolResponseBodyToolsResponse200Status = ClosedEnum<
|
|
521
|
-
typeof CreateToolResponseBodyToolsResponse200Status
|
|
522
|
-
>;
|
|
523
|
-
|
|
524
|
-
export const CreateToolResponseBodyToolsResponse200ApplicationJSONType = {
|
|
525
|
-
Code: "code",
|
|
526
|
-
} as const;
|
|
527
|
-
export type CreateToolResponseBodyToolsResponse200ApplicationJSONType =
|
|
528
|
-
ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJSONType>;
|
|
529
|
-
|
|
530
|
-
export const ResponseBodyLanguage = {
|
|
531
|
-
Python: "python",
|
|
532
|
-
} as const;
|
|
533
|
-
export type ResponseBodyLanguage = ClosedEnum<typeof ResponseBodyLanguage>;
|
|
534
|
-
|
|
535
|
-
export type ResponseBodyCodeTool = {
|
|
536
|
-
/**
|
|
537
|
-
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
538
|
-
*/
|
|
539
|
-
parameters?: { [k: string]: any } | undefined;
|
|
540
|
-
language: ResponseBodyLanguage;
|
|
541
|
-
/**
|
|
542
|
-
* The code to execute.
|
|
543
|
-
*/
|
|
544
|
-
code: string;
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
export type ResponseBody5 = {
|
|
548
|
-
id?: string | undefined;
|
|
549
|
-
/**
|
|
550
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
551
|
-
*
|
|
552
|
-
* @remarks
|
|
553
|
-
*
|
|
554
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
555
|
-
*
|
|
556
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
557
|
-
*/
|
|
558
|
-
path: string;
|
|
559
|
-
/**
|
|
560
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
561
|
-
*/
|
|
562
|
-
key: string;
|
|
563
|
-
/**
|
|
564
|
-
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
565
|
-
*/
|
|
566
|
-
displayName?: string | undefined;
|
|
567
|
-
/**
|
|
568
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
569
|
-
*/
|
|
570
|
-
description: string;
|
|
571
|
-
/**
|
|
572
|
-
* The id of the user that created the tool
|
|
573
|
-
*/
|
|
574
|
-
createdById?: string | undefined;
|
|
575
|
-
/**
|
|
576
|
-
* The id of the user that last updated the tool
|
|
577
|
-
*/
|
|
578
|
-
updatedById?: string | undefined;
|
|
579
|
-
projectId: string;
|
|
580
|
-
workspaceId: string;
|
|
581
|
-
created: string;
|
|
582
|
-
updated: string;
|
|
583
|
-
/**
|
|
584
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
585
|
-
*/
|
|
586
|
-
status?: CreateToolResponseBodyToolsResponse200Status | undefined;
|
|
587
|
-
versionHash?: string | undefined;
|
|
588
|
-
type: CreateToolResponseBodyToolsResponse200ApplicationJSONType;
|
|
589
|
-
codeTool: ResponseBodyCodeTool;
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
594
|
-
*/
|
|
595
|
-
export const CreateToolResponseBodyToolsResponseStatus = {
|
|
596
|
-
Live: "live",
|
|
597
|
-
Draft: "draft",
|
|
598
|
-
Pending: "pending",
|
|
599
|
-
Published: "published",
|
|
600
|
-
} as const;
|
|
601
|
-
/**
|
|
602
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
603
|
-
*/
|
|
604
|
-
export type CreateToolResponseBodyToolsResponseStatus = ClosedEnum<
|
|
605
|
-
typeof CreateToolResponseBodyToolsResponseStatus
|
|
606
|
-
>;
|
|
607
|
-
|
|
608
|
-
export const CreateToolResponseBodyToolsResponse200Type = {
|
|
609
|
-
Mcp: "mcp",
|
|
610
|
-
} as const;
|
|
611
|
-
export type CreateToolResponseBodyToolsResponse200Type = ClosedEnum<
|
|
612
|
-
typeof CreateToolResponseBodyToolsResponse200Type
|
|
613
|
-
>;
|
|
614
|
-
|
|
615
|
-
export type ResponseBodyHeaders = {
|
|
616
|
-
value: string;
|
|
617
|
-
encrypted?: boolean | undefined;
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
export const CreateToolResponseBodyToolsResponse200ApplicationJson4Type = {
|
|
621
|
-
Object: "object",
|
|
622
|
-
} as const;
|
|
623
|
-
export type CreateToolResponseBodyToolsResponse200ApplicationJson4Type =
|
|
624
|
-
ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type>;
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
* The original MCP tool input schema for LLM conversion
|
|
628
|
-
*/
|
|
629
|
-
export type ResponseBodyInputSchema = {
|
|
630
|
-
type: CreateToolResponseBodyToolsResponse200ApplicationJson4Type;
|
|
631
|
-
properties?: { [k: string]: any } | undefined;
|
|
632
|
-
required?: Array<string> | undefined;
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* The connection type used by the MCP server
|
|
637
|
-
*/
|
|
638
|
-
export const ResponseBodyConnectionType = {
|
|
639
|
-
Http: "http",
|
|
640
|
-
Sse: "sse",
|
|
641
|
-
} as const;
|
|
642
|
-
/**
|
|
643
|
-
* The connection type used by the MCP server
|
|
644
|
-
*/
|
|
645
|
-
export type ResponseBodyConnectionType = ClosedEnum<
|
|
646
|
-
typeof ResponseBodyConnectionType
|
|
647
|
-
>;
|
|
648
|
-
|
|
649
|
-
export type ResponseBodyMcp = {
|
|
650
|
-
/**
|
|
651
|
-
* The ID of the MCP server this tool belongs to
|
|
652
|
-
*/
|
|
653
|
-
serverId: string;
|
|
654
|
-
/**
|
|
655
|
-
* The original tool name from the MCP server
|
|
656
|
-
*/
|
|
657
|
-
toolName: string;
|
|
658
|
-
/**
|
|
659
|
-
* The MCP server URL (cached for execution)
|
|
660
|
-
*/
|
|
661
|
-
serverUrl: string;
|
|
662
|
-
/**
|
|
663
|
-
* HTTP headers for MCP server requests (encrypted format)
|
|
664
|
-
*/
|
|
665
|
-
headers?: { [k: string]: ResponseBodyHeaders } | undefined;
|
|
666
|
-
/**
|
|
667
|
-
* The original MCP tool input schema for LLM conversion
|
|
668
|
-
*/
|
|
669
|
-
inputSchema: ResponseBodyInputSchema;
|
|
670
|
-
/**
|
|
671
|
-
* The connection type used by the MCP server
|
|
672
|
-
*/
|
|
673
|
-
connectionType: ResponseBodyConnectionType;
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
export type ResponseBody4 = {
|
|
677
|
-
id?: string | undefined;
|
|
678
|
-
/**
|
|
679
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
680
|
-
*
|
|
681
|
-
* @remarks
|
|
682
|
-
*
|
|
683
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
684
|
-
*
|
|
685
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
686
|
-
*/
|
|
687
|
-
path: string;
|
|
688
|
-
/**
|
|
689
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
690
|
-
*/
|
|
691
|
-
key: string;
|
|
692
|
-
/**
|
|
693
|
-
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
694
|
-
*/
|
|
695
|
-
displayName?: string | undefined;
|
|
696
|
-
/**
|
|
697
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
698
|
-
*/
|
|
699
|
-
description: string;
|
|
700
|
-
/**
|
|
701
|
-
* The id of the user that created the tool
|
|
702
|
-
*/
|
|
703
|
-
createdById?: string | undefined;
|
|
704
|
-
/**
|
|
705
|
-
* The id of the user that last updated the tool
|
|
706
|
-
*/
|
|
707
|
-
updatedById?: string | undefined;
|
|
708
|
-
projectId: string;
|
|
709
|
-
workspaceId: string;
|
|
710
|
-
created: string;
|
|
711
|
-
updated: string;
|
|
712
|
-
/**
|
|
713
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
714
|
-
*/
|
|
715
|
-
status?: CreateToolResponseBodyToolsResponseStatus | undefined;
|
|
716
|
-
versionHash?: string | undefined;
|
|
717
|
-
type: CreateToolResponseBodyToolsResponse200Type;
|
|
718
|
-
mcp: ResponseBodyMcp;
|
|
719
|
-
};
|
|
720
|
-
|
|
721
|
-
/**
|
|
722
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
723
|
-
*/
|
|
724
|
-
export const CreateToolResponseBodyToolsStatus = {
|
|
725
|
-
Live: "live",
|
|
726
|
-
Draft: "draft",
|
|
727
|
-
Pending: "pending",
|
|
728
|
-
Published: "published",
|
|
729
|
-
} as const;
|
|
730
|
-
/**
|
|
731
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
732
|
-
*/
|
|
733
|
-
export type CreateToolResponseBodyToolsStatus = ClosedEnum<
|
|
734
|
-
typeof CreateToolResponseBodyToolsStatus
|
|
735
|
-
>;
|
|
736
|
-
|
|
737
|
-
export const CreateToolResponseBodyToolsResponseType = {
|
|
738
|
-
Http: "http",
|
|
739
|
-
} as const;
|
|
740
|
-
export type CreateToolResponseBodyToolsResponseType = ClosedEnum<
|
|
741
|
-
typeof CreateToolResponseBodyToolsResponseType
|
|
742
|
-
>;
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
* The HTTP method to use.
|
|
746
|
-
*/
|
|
747
|
-
export const CreateToolResponseBodyMethod = {
|
|
748
|
-
Get: "GET",
|
|
749
|
-
Post: "POST",
|
|
750
|
-
Put: "PUT",
|
|
751
|
-
Delete: "DELETE",
|
|
752
|
-
} as const;
|
|
753
|
-
/**
|
|
754
|
-
* The HTTP method to use.
|
|
755
|
-
*/
|
|
756
|
-
export type CreateToolResponseBodyMethod = ClosedEnum<
|
|
757
|
-
typeof CreateToolResponseBodyMethod
|
|
758
|
-
>;
|
|
759
|
-
|
|
760
|
-
/**
|
|
761
|
-
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
762
|
-
*/
|
|
763
|
-
export type ResponseBodyBlueprint = {
|
|
764
|
-
/**
|
|
765
|
-
* The URL to send the request to.
|
|
766
|
-
*/
|
|
767
|
-
url: string;
|
|
768
|
-
/**
|
|
769
|
-
* The HTTP method to use.
|
|
770
|
-
*/
|
|
771
|
-
method: CreateToolResponseBodyMethod;
|
|
772
|
-
/**
|
|
773
|
-
* The headers to send with the request.
|
|
774
|
-
*/
|
|
775
|
-
headers?: { [k: string]: string } | undefined;
|
|
776
|
-
/**
|
|
777
|
-
* The body to send with the request.
|
|
778
|
-
*/
|
|
779
|
-
body?: { [k: string]: any } | undefined;
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
/**
|
|
783
|
-
* The type of the argument.
|
|
784
|
-
*/
|
|
785
|
-
export const CreateToolResponseBodyToolsResponse200ApplicationJson3Type = {
|
|
786
|
-
String: "string",
|
|
787
|
-
Number: "number",
|
|
788
|
-
Boolean: "boolean",
|
|
789
|
-
} as const;
|
|
790
|
-
/**
|
|
791
|
-
* The type of the argument.
|
|
792
|
-
*/
|
|
793
|
-
export type CreateToolResponseBodyToolsResponse200ApplicationJson3Type =
|
|
794
|
-
ClosedEnum<typeof CreateToolResponseBodyToolsResponse200ApplicationJson3Type>;
|
|
795
|
-
|
|
796
|
-
/**
|
|
797
|
-
* The default value of the argument.
|
|
798
|
-
*/
|
|
799
|
-
export type ResponseBodyDefaultValue = string | number | boolean;
|
|
800
|
-
|
|
801
|
-
export type ResponseBodyArguments = {
|
|
802
|
-
/**
|
|
803
|
-
* The type of the argument.
|
|
804
|
-
*/
|
|
805
|
-
type: CreateToolResponseBodyToolsResponse200ApplicationJson3Type;
|
|
806
|
-
/**
|
|
807
|
-
* A description of the argument.
|
|
808
|
-
*/
|
|
809
|
-
description: string;
|
|
810
|
-
/**
|
|
811
|
-
* Whether to send the argument to the model. If set to false, the argument will not be sent to the model and needs to be provided by the user or it will be left blank.
|
|
812
|
-
*/
|
|
813
|
-
sendToModel?: boolean | undefined;
|
|
814
|
-
/**
|
|
815
|
-
* The default value of the argument.
|
|
816
|
-
*/
|
|
817
|
-
defaultValue?: string | number | boolean | undefined;
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
export type CreateToolResponseBodyHttp = {
|
|
821
|
-
/**
|
|
822
|
-
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
823
|
-
*/
|
|
824
|
-
blueprint: ResponseBodyBlueprint;
|
|
825
|
-
/**
|
|
826
|
-
* The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
|
|
827
|
-
*/
|
|
828
|
-
arguments?: { [k: string]: ResponseBodyArguments } | undefined;
|
|
829
|
-
};
|
|
830
|
-
|
|
831
|
-
export type ResponseBody3 = {
|
|
832
|
-
id?: string | undefined;
|
|
833
|
-
/**
|
|
834
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
835
|
-
*
|
|
836
|
-
* @remarks
|
|
837
|
-
*
|
|
838
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
839
|
-
*
|
|
840
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
841
|
-
*/
|
|
842
|
-
path: string;
|
|
843
|
-
/**
|
|
844
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
845
|
-
*/
|
|
846
|
-
key: string;
|
|
847
|
-
/**
|
|
848
|
-
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
849
|
-
*/
|
|
850
|
-
displayName?: string | undefined;
|
|
851
|
-
/**
|
|
852
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
853
|
-
*/
|
|
854
|
-
description: string;
|
|
855
|
-
/**
|
|
856
|
-
* The id of the user that created the tool
|
|
857
|
-
*/
|
|
858
|
-
createdById?: string | undefined;
|
|
859
|
-
/**
|
|
860
|
-
* The id of the user that last updated the tool
|
|
861
|
-
*/
|
|
862
|
-
updatedById?: string | undefined;
|
|
863
|
-
projectId: string;
|
|
864
|
-
workspaceId: string;
|
|
865
|
-
created: string;
|
|
866
|
-
updated: string;
|
|
867
|
-
/**
|
|
868
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
869
|
-
*/
|
|
870
|
-
status?: CreateToolResponseBodyToolsStatus | undefined;
|
|
871
|
-
versionHash?: string | undefined;
|
|
872
|
-
type: CreateToolResponseBodyToolsResponseType;
|
|
873
|
-
http: CreateToolResponseBodyHttp;
|
|
874
|
-
};
|
|
875
|
-
|
|
876
|
-
/**
|
|
877
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
878
|
-
*/
|
|
879
|
-
export const CreateToolResponseBodyStatus = {
|
|
880
|
-
Live: "live",
|
|
881
|
-
Draft: "draft",
|
|
882
|
-
Pending: "pending",
|
|
883
|
-
Published: "published",
|
|
884
|
-
} as const;
|
|
885
|
-
/**
|
|
886
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
887
|
-
*/
|
|
888
|
-
export type CreateToolResponseBodyStatus = ClosedEnum<
|
|
889
|
-
typeof CreateToolResponseBodyStatus
|
|
890
|
-
>;
|
|
891
|
-
|
|
892
|
-
export const CreateToolResponseBodyToolsType = {
|
|
893
|
-
JsonSchema: "json_schema",
|
|
894
|
-
} as const;
|
|
895
|
-
export type CreateToolResponseBodyToolsType = ClosedEnum<
|
|
896
|
-
typeof CreateToolResponseBodyToolsType
|
|
897
|
-
>;
|
|
898
|
-
|
|
899
|
-
export type ResponseBodyJsonSchema = {
|
|
900
|
-
/**
|
|
901
|
-
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
902
|
-
*/
|
|
903
|
-
name: string;
|
|
904
|
-
/**
|
|
905
|
-
* A description of what the response format is for. This will be shown to the user.
|
|
906
|
-
*/
|
|
907
|
-
description?: string | undefined;
|
|
908
|
-
/**
|
|
909
|
-
* The schema for the response format, described as a JSON Schema object. See the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
910
|
-
*/
|
|
911
|
-
schema: { [k: string]: any };
|
|
912
|
-
/**
|
|
913
|
-
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the `schema` field. Only a subset of JSON Schema is supported when `strict` is `true`. Only compatible with `OpenAI` models.
|
|
914
|
-
*/
|
|
915
|
-
strict?: boolean | null | undefined;
|
|
916
|
-
};
|
|
917
|
-
|
|
918
|
-
export type ResponseBody2 = {
|
|
919
|
-
id?: string | undefined;
|
|
920
|
-
/**
|
|
921
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
922
|
-
*
|
|
923
|
-
* @remarks
|
|
924
|
-
*
|
|
925
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
926
|
-
*
|
|
927
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
928
|
-
*/
|
|
929
|
-
path: string;
|
|
930
|
-
/**
|
|
931
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
932
|
-
*/
|
|
933
|
-
key: string;
|
|
934
|
-
/**
|
|
935
|
-
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
936
|
-
*/
|
|
937
|
-
displayName?: string | undefined;
|
|
938
|
-
/**
|
|
939
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
940
|
-
*/
|
|
941
|
-
description: string;
|
|
942
|
-
/**
|
|
943
|
-
* The id of the user that created the tool
|
|
944
|
-
*/
|
|
945
|
-
createdById?: string | undefined;
|
|
946
|
-
/**
|
|
947
|
-
* The id of the user that last updated the tool
|
|
948
|
-
*/
|
|
949
|
-
updatedById?: string | undefined;
|
|
950
|
-
projectId: string;
|
|
951
|
-
workspaceId: string;
|
|
952
|
-
created: string;
|
|
953
|
-
updated: string;
|
|
954
|
-
/**
|
|
955
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
956
|
-
*/
|
|
957
|
-
status?: CreateToolResponseBodyStatus | undefined;
|
|
958
|
-
versionHash?: string | undefined;
|
|
959
|
-
type: CreateToolResponseBodyToolsType;
|
|
960
|
-
jsonSchema: ResponseBodyJsonSchema;
|
|
961
|
-
};
|
|
962
|
-
|
|
963
|
-
/**
|
|
964
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
965
|
-
*/
|
|
966
|
-
export const ResponseBodyStatus = {
|
|
967
|
-
Live: "live",
|
|
968
|
-
Draft: "draft",
|
|
969
|
-
Pending: "pending",
|
|
970
|
-
Published: "published",
|
|
971
|
-
} as const;
|
|
972
|
-
/**
|
|
973
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
974
|
-
*/
|
|
975
|
-
export type ResponseBodyStatus = ClosedEnum<typeof ResponseBodyStatus>;
|
|
976
|
-
|
|
977
|
-
export const CreateToolResponseBodyType = {
|
|
978
|
-
Function: "function",
|
|
979
|
-
} as const;
|
|
980
|
-
export type CreateToolResponseBodyType = ClosedEnum<
|
|
981
|
-
typeof CreateToolResponseBodyType
|
|
982
|
-
>;
|
|
983
|
-
|
|
984
|
-
export type CreateToolResponseBodyFunction = {
|
|
985
|
-
/**
|
|
986
|
-
* 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.
|
|
987
|
-
*/
|
|
988
|
-
name: string;
|
|
989
|
-
/**
|
|
990
|
-
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
991
|
-
*/
|
|
992
|
-
description?: string | undefined;
|
|
993
|
-
/**
|
|
994
|
-
* Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the `parameters` field. Only a subset of JSON Schema is supported when `strict` is `true`. Currently only compatible with `OpenAI` models.
|
|
995
|
-
*/
|
|
996
|
-
strict?: boolean | undefined;
|
|
997
|
-
/**
|
|
998
|
-
* The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
|
|
999
|
-
*/
|
|
1000
|
-
parameters?: { [k: string]: any } | undefined;
|
|
1001
|
-
};
|
|
1002
|
-
|
|
1003
|
-
export type ResponseBody1 = {
|
|
1004
|
-
id?: string | undefined;
|
|
1005
|
-
/**
|
|
1006
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
1007
|
-
*
|
|
1008
|
-
* @remarks
|
|
1009
|
-
*
|
|
1010
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
1011
|
-
*
|
|
1012
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
1013
|
-
*/
|
|
1014
|
-
path: string;
|
|
1015
|
-
/**
|
|
1016
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
1017
|
-
*/
|
|
1018
|
-
key: string;
|
|
1019
|
-
/**
|
|
1020
|
-
* The name of the tool as it will be displayed in the UI. This is optional and if not provided, the `key` will be used.
|
|
1021
|
-
*/
|
|
1022
|
-
displayName?: string | undefined;
|
|
1023
|
-
/**
|
|
1024
|
-
* A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
|
|
1025
|
-
*/
|
|
1026
|
-
description: string;
|
|
1027
|
-
/**
|
|
1028
|
-
* The id of the user that created the tool
|
|
1029
|
-
*/
|
|
1030
|
-
createdById?: string | undefined;
|
|
1031
|
-
/**
|
|
1032
|
-
* The id of the user that last updated the tool
|
|
1033
|
-
*/
|
|
1034
|
-
updatedById?: string | undefined;
|
|
1035
|
-
projectId: string;
|
|
1036
|
-
workspaceId: string;
|
|
1037
|
-
created: string;
|
|
1038
|
-
updated: string;
|
|
1039
|
-
/**
|
|
1040
|
-
* The status of the tool. `Live` is the latest version of the tool. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
1041
|
-
*/
|
|
1042
|
-
status?: ResponseBodyStatus | undefined;
|
|
1043
|
-
versionHash?: string | undefined;
|
|
1044
|
-
type: CreateToolResponseBodyType;
|
|
1045
|
-
function: CreateToolResponseBodyFunction;
|
|
1046
|
-
};
|
|
1047
|
-
|
|
1048
|
-
/**
|
|
1049
|
-
* Successfully created the tool.
|
|
1050
|
-
*/
|
|
1051
|
-
export type CreateToolResponseBody =
|
|
1052
|
-
| ResponseBody1
|
|
1053
|
-
| ResponseBody2
|
|
1054
|
-
| ResponseBody3
|
|
1055
|
-
| ResponseBody4
|
|
1056
|
-
| ResponseBody5;
|
|
1057
|
-
|
|
1058
|
-
/** @internal */
|
|
1059
|
-
export const CreateToolRequestBodyToolsRequest5Status$inboundSchema:
|
|
1060
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest5Status> = z
|
|
1061
|
-
.nativeEnum(CreateToolRequestBodyToolsRequest5Status);
|
|
1062
|
-
|
|
1063
|
-
/** @internal */
|
|
1064
|
-
export const CreateToolRequestBodyToolsRequest5Status$outboundSchema:
|
|
1065
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest5Status> =
|
|
1066
|
-
CreateToolRequestBodyToolsRequest5Status$inboundSchema;
|
|
1067
|
-
|
|
1068
|
-
/**
|
|
1069
|
-
* @internal
|
|
1070
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1071
|
-
*/
|
|
1072
|
-
export namespace CreateToolRequestBodyToolsRequest5Status$ {
|
|
1073
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequest5Status$inboundSchema` instead. */
|
|
1074
|
-
export const inboundSchema =
|
|
1075
|
-
CreateToolRequestBodyToolsRequest5Status$inboundSchema;
|
|
1076
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequest5Status$outboundSchema` instead. */
|
|
1077
|
-
export const outboundSchema =
|
|
1078
|
-
CreateToolRequestBodyToolsRequest5Status$outboundSchema;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
/** @internal */
|
|
1082
|
-
export const CreateToolRequestBodyToolsRequest5Type$inboundSchema:
|
|
1083
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest5Type> = z.nativeEnum(
|
|
1084
|
-
CreateToolRequestBodyToolsRequest5Type,
|
|
1085
|
-
);
|
|
1086
|
-
|
|
1087
|
-
/** @internal */
|
|
1088
|
-
export const CreateToolRequestBodyToolsRequest5Type$outboundSchema:
|
|
1089
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest5Type> =
|
|
1090
|
-
CreateToolRequestBodyToolsRequest5Type$inboundSchema;
|
|
1091
|
-
|
|
1092
|
-
/**
|
|
1093
|
-
* @internal
|
|
1094
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1095
|
-
*/
|
|
1096
|
-
export namespace CreateToolRequestBodyToolsRequest5Type$ {
|
|
1097
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequest5Type$inboundSchema` instead. */
|
|
1098
|
-
export const inboundSchema =
|
|
1099
|
-
CreateToolRequestBodyToolsRequest5Type$inboundSchema;
|
|
1100
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequest5Type$outboundSchema` instead. */
|
|
1101
|
-
export const outboundSchema =
|
|
1102
|
-
CreateToolRequestBodyToolsRequest5Type$outboundSchema;
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
/** @internal */
|
|
1106
|
-
export const RequestBodyLanguage$inboundSchema: z.ZodNativeEnum<
|
|
1107
|
-
typeof RequestBodyLanguage
|
|
1108
|
-
> = z.nativeEnum(RequestBodyLanguage);
|
|
1109
|
-
|
|
1110
|
-
/** @internal */
|
|
1111
|
-
export const RequestBodyLanguage$outboundSchema: z.ZodNativeEnum<
|
|
1112
|
-
typeof RequestBodyLanguage
|
|
1113
|
-
> = RequestBodyLanguage$inboundSchema;
|
|
1114
|
-
|
|
1115
|
-
/**
|
|
1116
|
-
* @internal
|
|
1117
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1118
|
-
*/
|
|
1119
|
-
export namespace RequestBodyLanguage$ {
|
|
1120
|
-
/** @deprecated use `RequestBodyLanguage$inboundSchema` instead. */
|
|
1121
|
-
export const inboundSchema = RequestBodyLanguage$inboundSchema;
|
|
1122
|
-
/** @deprecated use `RequestBodyLanguage$outboundSchema` instead. */
|
|
1123
|
-
export const outboundSchema = RequestBodyLanguage$outboundSchema;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
/** @internal */
|
|
1127
|
-
export const RequestBodyCodeTool$inboundSchema: z.ZodType<
|
|
1128
|
-
RequestBodyCodeTool,
|
|
1129
|
-
z.ZodTypeDef,
|
|
1130
|
-
unknown
|
|
1131
|
-
> = z.object({
|
|
1132
|
-
parameters: z.record(z.any()).optional(),
|
|
1133
|
-
language: RequestBodyLanguage$inboundSchema,
|
|
1134
|
-
code: z.string(),
|
|
1135
|
-
});
|
|
1136
|
-
|
|
1137
|
-
/** @internal */
|
|
1138
|
-
export type RequestBodyCodeTool$Outbound = {
|
|
1139
|
-
parameters?: { [k: string]: any } | undefined;
|
|
1140
|
-
language: string;
|
|
1141
|
-
code: string;
|
|
1142
|
-
};
|
|
1143
|
-
|
|
1144
|
-
/** @internal */
|
|
1145
|
-
export const RequestBodyCodeTool$outboundSchema: z.ZodType<
|
|
1146
|
-
RequestBodyCodeTool$Outbound,
|
|
1147
|
-
z.ZodTypeDef,
|
|
1148
|
-
RequestBodyCodeTool
|
|
1149
|
-
> = z.object({
|
|
1150
|
-
parameters: z.record(z.any()).optional(),
|
|
1151
|
-
language: RequestBodyLanguage$outboundSchema,
|
|
1152
|
-
code: z.string(),
|
|
1153
|
-
});
|
|
1154
|
-
|
|
1155
|
-
/**
|
|
1156
|
-
* @internal
|
|
1157
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1158
|
-
*/
|
|
1159
|
-
export namespace RequestBodyCodeTool$ {
|
|
1160
|
-
/** @deprecated use `RequestBodyCodeTool$inboundSchema` instead. */
|
|
1161
|
-
export const inboundSchema = RequestBodyCodeTool$inboundSchema;
|
|
1162
|
-
/** @deprecated use `RequestBodyCodeTool$outboundSchema` instead. */
|
|
1163
|
-
export const outboundSchema = RequestBodyCodeTool$outboundSchema;
|
|
1164
|
-
/** @deprecated use `RequestBodyCodeTool$Outbound` instead. */
|
|
1165
|
-
export type Outbound = RequestBodyCodeTool$Outbound;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
export function requestBodyCodeToolToJSON(
|
|
1169
|
-
requestBodyCodeTool: RequestBodyCodeTool,
|
|
1170
|
-
): string {
|
|
1171
|
-
return JSON.stringify(
|
|
1172
|
-
RequestBodyCodeTool$outboundSchema.parse(requestBodyCodeTool),
|
|
1173
|
-
);
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
export function requestBodyCodeToolFromJSON(
|
|
1177
|
-
jsonString: string,
|
|
1178
|
-
): SafeParseResult<RequestBodyCodeTool, SDKValidationError> {
|
|
1179
|
-
return safeParse(
|
|
1180
|
-
jsonString,
|
|
1181
|
-
(x) => RequestBodyCodeTool$inboundSchema.parse(JSON.parse(x)),
|
|
1182
|
-
`Failed to parse 'RequestBodyCodeTool' from JSON`,
|
|
1183
|
-
);
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
/** @internal */
|
|
1187
|
-
export const RequestBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
1188
|
-
RequestBodyCodeExecutionTool,
|
|
1189
|
-
z.ZodTypeDef,
|
|
1190
|
-
unknown
|
|
1191
|
-
> = z.object({
|
|
1192
|
-
path: z.string(),
|
|
1193
|
-
key: z.string(),
|
|
1194
|
-
display_name: z.string().optional(),
|
|
1195
|
-
description: z.string(),
|
|
1196
|
-
status: CreateToolRequestBodyToolsRequest5Status$inboundSchema.default(
|
|
1197
|
-
"live",
|
|
1198
|
-
),
|
|
1199
|
-
type: CreateToolRequestBodyToolsRequest5Type$inboundSchema,
|
|
1200
|
-
code_tool: z.lazy(() => RequestBodyCodeTool$inboundSchema),
|
|
1201
|
-
}).transform((v) => {
|
|
1202
|
-
return remap$(v, {
|
|
1203
|
-
"display_name": "displayName",
|
|
1204
|
-
"code_tool": "codeTool",
|
|
1205
|
-
});
|
|
1206
|
-
});
|
|
1207
|
-
|
|
1208
|
-
/** @internal */
|
|
1209
|
-
export type RequestBodyCodeExecutionTool$Outbound = {
|
|
1210
|
-
path: string;
|
|
1211
|
-
key: string;
|
|
1212
|
-
display_name?: string | undefined;
|
|
1213
|
-
description: string;
|
|
1214
|
-
status: string;
|
|
1215
|
-
type: string;
|
|
1216
|
-
code_tool: RequestBodyCodeTool$Outbound;
|
|
1217
|
-
};
|
|
1218
|
-
|
|
1219
|
-
/** @internal */
|
|
1220
|
-
export const RequestBodyCodeExecutionTool$outboundSchema: z.ZodType<
|
|
1221
|
-
RequestBodyCodeExecutionTool$Outbound,
|
|
1222
|
-
z.ZodTypeDef,
|
|
1223
|
-
RequestBodyCodeExecutionTool
|
|
1224
|
-
> = z.object({
|
|
1225
|
-
path: z.string(),
|
|
1226
|
-
key: z.string(),
|
|
1227
|
-
displayName: z.string().optional(),
|
|
1228
|
-
description: z.string(),
|
|
1229
|
-
status: CreateToolRequestBodyToolsRequest5Status$outboundSchema.default(
|
|
1230
|
-
"live",
|
|
1231
|
-
),
|
|
1232
|
-
type: CreateToolRequestBodyToolsRequest5Type$outboundSchema,
|
|
1233
|
-
codeTool: z.lazy(() => RequestBodyCodeTool$outboundSchema),
|
|
1234
|
-
}).transform((v) => {
|
|
1235
|
-
return remap$(v, {
|
|
1236
|
-
displayName: "display_name",
|
|
1237
|
-
codeTool: "code_tool",
|
|
1238
|
-
});
|
|
1239
|
-
});
|
|
1240
|
-
|
|
1241
|
-
/**
|
|
1242
|
-
* @internal
|
|
1243
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1244
|
-
*/
|
|
1245
|
-
export namespace RequestBodyCodeExecutionTool$ {
|
|
1246
|
-
/** @deprecated use `RequestBodyCodeExecutionTool$inboundSchema` instead. */
|
|
1247
|
-
export const inboundSchema = RequestBodyCodeExecutionTool$inboundSchema;
|
|
1248
|
-
/** @deprecated use `RequestBodyCodeExecutionTool$outboundSchema` instead. */
|
|
1249
|
-
export const outboundSchema = RequestBodyCodeExecutionTool$outboundSchema;
|
|
1250
|
-
/** @deprecated use `RequestBodyCodeExecutionTool$Outbound` instead. */
|
|
1251
|
-
export type Outbound = RequestBodyCodeExecutionTool$Outbound;
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
export function requestBodyCodeExecutionToolToJSON(
|
|
1255
|
-
requestBodyCodeExecutionTool: RequestBodyCodeExecutionTool,
|
|
1256
|
-
): string {
|
|
1257
|
-
return JSON.stringify(
|
|
1258
|
-
RequestBodyCodeExecutionTool$outboundSchema.parse(
|
|
1259
|
-
requestBodyCodeExecutionTool,
|
|
1260
|
-
),
|
|
1261
|
-
);
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
export function requestBodyCodeExecutionToolFromJSON(
|
|
1265
|
-
jsonString: string,
|
|
1266
|
-
): SafeParseResult<RequestBodyCodeExecutionTool, SDKValidationError> {
|
|
1267
|
-
return safeParse(
|
|
1268
|
-
jsonString,
|
|
1269
|
-
(x) => RequestBodyCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
|
|
1270
|
-
`Failed to parse 'RequestBodyCodeExecutionTool' from JSON`,
|
|
1271
|
-
);
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
/** @internal */
|
|
1275
|
-
export const CreateToolRequestBodyToolsRequestStatus$inboundSchema:
|
|
1276
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequestStatus> = z
|
|
1277
|
-
.nativeEnum(CreateToolRequestBodyToolsRequestStatus);
|
|
1278
|
-
|
|
1279
|
-
/** @internal */
|
|
1280
|
-
export const CreateToolRequestBodyToolsRequestStatus$outboundSchema:
|
|
1281
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequestStatus> =
|
|
1282
|
-
CreateToolRequestBodyToolsRequestStatus$inboundSchema;
|
|
1283
|
-
|
|
1284
|
-
/**
|
|
1285
|
-
* @internal
|
|
1286
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1287
|
-
*/
|
|
1288
|
-
export namespace CreateToolRequestBodyToolsRequestStatus$ {
|
|
1289
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequestStatus$inboundSchema` instead. */
|
|
1290
|
-
export const inboundSchema =
|
|
1291
|
-
CreateToolRequestBodyToolsRequestStatus$inboundSchema;
|
|
1292
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequestStatus$outboundSchema` instead. */
|
|
1293
|
-
export const outboundSchema =
|
|
1294
|
-
CreateToolRequestBodyToolsRequestStatus$outboundSchema;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
/** @internal */
|
|
1298
|
-
export const CreateToolRequestBodyToolsRequest4Type$inboundSchema:
|
|
1299
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest4Type> = z.nativeEnum(
|
|
1300
|
-
CreateToolRequestBodyToolsRequest4Type,
|
|
1301
|
-
);
|
|
1302
|
-
|
|
1303
|
-
/** @internal */
|
|
1304
|
-
export const CreateToolRequestBodyToolsRequest4Type$outboundSchema:
|
|
1305
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest4Type> =
|
|
1306
|
-
CreateToolRequestBodyToolsRequest4Type$inboundSchema;
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* @internal
|
|
1310
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1311
|
-
*/
|
|
1312
|
-
export namespace CreateToolRequestBodyToolsRequest4Type$ {
|
|
1313
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequest4Type$inboundSchema` instead. */
|
|
1314
|
-
export const inboundSchema =
|
|
1315
|
-
CreateToolRequestBodyToolsRequest4Type$inboundSchema;
|
|
1316
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequest4Type$outboundSchema` instead. */
|
|
1317
|
-
export const outboundSchema =
|
|
1318
|
-
CreateToolRequestBodyToolsRequest4Type$outboundSchema;
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
/** @internal */
|
|
1322
|
-
export const Headers$inboundSchema: z.ZodType<Headers, z.ZodTypeDef, unknown> =
|
|
1323
|
-
z.object({
|
|
1324
|
-
value: z.string(),
|
|
1325
|
-
encrypted: z.boolean().default(false),
|
|
1326
|
-
});
|
|
1327
|
-
|
|
1328
|
-
/** @internal */
|
|
1329
|
-
export type Headers$Outbound = {
|
|
1330
|
-
value: string;
|
|
1331
|
-
encrypted: boolean;
|
|
1332
|
-
};
|
|
1333
|
-
|
|
1334
|
-
/** @internal */
|
|
1335
|
-
export const Headers$outboundSchema: z.ZodType<
|
|
1336
|
-
Headers$Outbound,
|
|
1337
|
-
z.ZodTypeDef,
|
|
1338
|
-
Headers
|
|
1339
|
-
> = z.object({
|
|
1340
|
-
value: z.string(),
|
|
1341
|
-
encrypted: z.boolean().default(false),
|
|
1342
|
-
});
|
|
1343
|
-
|
|
1344
|
-
/**
|
|
1345
|
-
* @internal
|
|
1346
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1347
|
-
*/
|
|
1348
|
-
export namespace Headers$ {
|
|
1349
|
-
/** @deprecated use `Headers$inboundSchema` instead. */
|
|
1350
|
-
export const inboundSchema = Headers$inboundSchema;
|
|
1351
|
-
/** @deprecated use `Headers$outboundSchema` instead. */
|
|
1352
|
-
export const outboundSchema = Headers$outboundSchema;
|
|
1353
|
-
/** @deprecated use `Headers$Outbound` instead. */
|
|
1354
|
-
export type Outbound = Headers$Outbound;
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
export function headersToJSON(headers: Headers): string {
|
|
1358
|
-
return JSON.stringify(Headers$outboundSchema.parse(headers));
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
export function headersFromJSON(
|
|
1362
|
-
jsonString: string,
|
|
1363
|
-
): SafeParseResult<Headers, SDKValidationError> {
|
|
1364
|
-
return safeParse(
|
|
1365
|
-
jsonString,
|
|
1366
|
-
(x) => Headers$inboundSchema.parse(JSON.parse(x)),
|
|
1367
|
-
`Failed to parse 'Headers' from JSON`,
|
|
1368
|
-
);
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
/** @internal */
|
|
1372
|
-
export const CreateToolRequestBodyToolsRequest4McpType$inboundSchema:
|
|
1373
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest4McpType> = z
|
|
1374
|
-
.nativeEnum(CreateToolRequestBodyToolsRequest4McpType);
|
|
1375
|
-
|
|
1376
|
-
/** @internal */
|
|
1377
|
-
export const CreateToolRequestBodyToolsRequest4McpType$outboundSchema:
|
|
1378
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest4McpType> =
|
|
1379
|
-
CreateToolRequestBodyToolsRequest4McpType$inboundSchema;
|
|
1380
|
-
|
|
1381
|
-
/**
|
|
1382
|
-
* @internal
|
|
1383
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1384
|
-
*/
|
|
1385
|
-
export namespace CreateToolRequestBodyToolsRequest4McpType$ {
|
|
1386
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequest4McpType$inboundSchema` instead. */
|
|
1387
|
-
export const inboundSchema =
|
|
1388
|
-
CreateToolRequestBodyToolsRequest4McpType$inboundSchema;
|
|
1389
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequest4McpType$outboundSchema` instead. */
|
|
1390
|
-
export const outboundSchema =
|
|
1391
|
-
CreateToolRequestBodyToolsRequest4McpType$outboundSchema;
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
/** @internal */
|
|
1395
|
-
export const InputSchema$inboundSchema: z.ZodType<
|
|
1396
|
-
InputSchema,
|
|
1397
|
-
z.ZodTypeDef,
|
|
1398
|
-
unknown
|
|
1399
|
-
> = z.object({
|
|
1400
|
-
type: CreateToolRequestBodyToolsRequest4McpType$inboundSchema,
|
|
1401
|
-
properties: z.record(z.any()).optional(),
|
|
1402
|
-
required: z.array(z.string()).optional(),
|
|
1403
|
-
});
|
|
1404
|
-
|
|
1405
|
-
/** @internal */
|
|
1406
|
-
export type InputSchema$Outbound = {
|
|
1407
|
-
type: string;
|
|
1408
|
-
properties?: { [k: string]: any } | undefined;
|
|
1409
|
-
required?: Array<string> | undefined;
|
|
1410
|
-
};
|
|
1411
|
-
|
|
1412
|
-
/** @internal */
|
|
1413
|
-
export const InputSchema$outboundSchema: z.ZodType<
|
|
1414
|
-
InputSchema$Outbound,
|
|
1415
|
-
z.ZodTypeDef,
|
|
1416
|
-
InputSchema
|
|
1417
|
-
> = z.object({
|
|
1418
|
-
type: CreateToolRequestBodyToolsRequest4McpType$outboundSchema,
|
|
1419
|
-
properties: z.record(z.any()).optional(),
|
|
1420
|
-
required: z.array(z.string()).optional(),
|
|
1421
|
-
});
|
|
1422
|
-
|
|
1423
|
-
/**
|
|
1424
|
-
* @internal
|
|
1425
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1426
|
-
*/
|
|
1427
|
-
export namespace InputSchema$ {
|
|
1428
|
-
/** @deprecated use `InputSchema$inboundSchema` instead. */
|
|
1429
|
-
export const inboundSchema = InputSchema$inboundSchema;
|
|
1430
|
-
/** @deprecated use `InputSchema$outboundSchema` instead. */
|
|
1431
|
-
export const outboundSchema = InputSchema$outboundSchema;
|
|
1432
|
-
/** @deprecated use `InputSchema$Outbound` instead. */
|
|
1433
|
-
export type Outbound = InputSchema$Outbound;
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
export function inputSchemaToJSON(inputSchema: InputSchema): string {
|
|
1437
|
-
return JSON.stringify(InputSchema$outboundSchema.parse(inputSchema));
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
export function inputSchemaFromJSON(
|
|
1441
|
-
jsonString: string,
|
|
1442
|
-
): SafeParseResult<InputSchema, SDKValidationError> {
|
|
1443
|
-
return safeParse(
|
|
1444
|
-
jsonString,
|
|
1445
|
-
(x) => InputSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1446
|
-
`Failed to parse 'InputSchema' from JSON`,
|
|
1447
|
-
);
|
|
1448
|
-
}
|
|
1449
|
-
|
|
1450
|
-
/** @internal */
|
|
1451
|
-
export const ConnectionType$inboundSchema: z.ZodNativeEnum<
|
|
1452
|
-
typeof ConnectionType
|
|
1453
|
-
> = z.nativeEnum(ConnectionType);
|
|
1454
|
-
|
|
1455
|
-
/** @internal */
|
|
1456
|
-
export const ConnectionType$outboundSchema: z.ZodNativeEnum<
|
|
1457
|
-
typeof ConnectionType
|
|
1458
|
-
> = ConnectionType$inboundSchema;
|
|
1459
|
-
|
|
1460
|
-
/**
|
|
1461
|
-
* @internal
|
|
1462
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1463
|
-
*/
|
|
1464
|
-
export namespace ConnectionType$ {
|
|
1465
|
-
/** @deprecated use `ConnectionType$inboundSchema` instead. */
|
|
1466
|
-
export const inboundSchema = ConnectionType$inboundSchema;
|
|
1467
|
-
/** @deprecated use `ConnectionType$outboundSchema` instead. */
|
|
1468
|
-
export const outboundSchema = ConnectionType$outboundSchema;
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
/** @internal */
|
|
1472
|
-
export const Mcp$inboundSchema: z.ZodType<Mcp, z.ZodTypeDef, unknown> = z
|
|
1473
|
-
.object({
|
|
1474
|
-
server_id: z.string(),
|
|
1475
|
-
tool_name: z.string(),
|
|
1476
|
-
server_url: z.string(),
|
|
1477
|
-
headers: z.record(z.lazy(() => Headers$inboundSchema)).optional(),
|
|
1478
|
-
input_schema: z.lazy(() => InputSchema$inboundSchema),
|
|
1479
|
-
connection_type: ConnectionType$inboundSchema,
|
|
1480
|
-
}).transform((v) => {
|
|
1481
|
-
return remap$(v, {
|
|
1482
|
-
"server_id": "serverId",
|
|
1483
|
-
"tool_name": "toolName",
|
|
1484
|
-
"server_url": "serverUrl",
|
|
1485
|
-
"input_schema": "inputSchema",
|
|
1486
|
-
"connection_type": "connectionType",
|
|
1487
|
-
});
|
|
1488
|
-
});
|
|
1489
|
-
|
|
1490
|
-
/** @internal */
|
|
1491
|
-
export type Mcp$Outbound = {
|
|
1492
|
-
server_id: string;
|
|
1493
|
-
tool_name: string;
|
|
1494
|
-
server_url: string;
|
|
1495
|
-
headers?: { [k: string]: Headers$Outbound } | undefined;
|
|
1496
|
-
input_schema: InputSchema$Outbound;
|
|
1497
|
-
connection_type: string;
|
|
1498
|
-
};
|
|
1499
|
-
|
|
1500
|
-
/** @internal */
|
|
1501
|
-
export const Mcp$outboundSchema: z.ZodType<Mcp$Outbound, z.ZodTypeDef, Mcp> = z
|
|
1502
|
-
.object({
|
|
1503
|
-
serverId: z.string(),
|
|
1504
|
-
toolName: z.string(),
|
|
1505
|
-
serverUrl: z.string(),
|
|
1506
|
-
headers: z.record(z.lazy(() => Headers$outboundSchema)).optional(),
|
|
1507
|
-
inputSchema: z.lazy(() => InputSchema$outboundSchema),
|
|
1508
|
-
connectionType: ConnectionType$outboundSchema,
|
|
1509
|
-
}).transform((v) => {
|
|
1510
|
-
return remap$(v, {
|
|
1511
|
-
serverId: "server_id",
|
|
1512
|
-
toolName: "tool_name",
|
|
1513
|
-
serverUrl: "server_url",
|
|
1514
|
-
inputSchema: "input_schema",
|
|
1515
|
-
connectionType: "connection_type",
|
|
1516
|
-
});
|
|
1517
|
-
});
|
|
1518
|
-
|
|
1519
|
-
/**
|
|
1520
|
-
* @internal
|
|
1521
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1522
|
-
*/
|
|
1523
|
-
export namespace Mcp$ {
|
|
1524
|
-
/** @deprecated use `Mcp$inboundSchema` instead. */
|
|
1525
|
-
export const inboundSchema = Mcp$inboundSchema;
|
|
1526
|
-
/** @deprecated use `Mcp$outboundSchema` instead. */
|
|
1527
|
-
export const outboundSchema = Mcp$outboundSchema;
|
|
1528
|
-
/** @deprecated use `Mcp$Outbound` instead. */
|
|
1529
|
-
export type Outbound = Mcp$Outbound;
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
export function mcpToJSON(mcp: Mcp): string {
|
|
1533
|
-
return JSON.stringify(Mcp$outboundSchema.parse(mcp));
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
|
-
export function mcpFromJSON(
|
|
1537
|
-
jsonString: string,
|
|
1538
|
-
): SafeParseResult<Mcp, SDKValidationError> {
|
|
1539
|
-
return safeParse(
|
|
1540
|
-
jsonString,
|
|
1541
|
-
(x) => Mcp$inboundSchema.parse(JSON.parse(x)),
|
|
1542
|
-
`Failed to parse 'Mcp' from JSON`,
|
|
1543
|
-
);
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
/** @internal */
|
|
1547
|
-
export const MCPTool$inboundSchema: z.ZodType<MCPTool, z.ZodTypeDef, unknown> =
|
|
1548
|
-
z.object({
|
|
1549
|
-
path: z.string(),
|
|
1550
|
-
key: z.string(),
|
|
1551
|
-
display_name: z.string().optional(),
|
|
1552
|
-
description: z.string(),
|
|
1553
|
-
status: CreateToolRequestBodyToolsRequestStatus$inboundSchema.default(
|
|
1554
|
-
"live",
|
|
1555
|
-
),
|
|
1556
|
-
type: CreateToolRequestBodyToolsRequest4Type$inboundSchema,
|
|
1557
|
-
mcp: z.lazy(() => Mcp$inboundSchema),
|
|
1558
|
-
}).transform((v) => {
|
|
1559
|
-
return remap$(v, {
|
|
1560
|
-
"display_name": "displayName",
|
|
1561
|
-
});
|
|
1562
|
-
});
|
|
1563
|
-
|
|
1564
|
-
/** @internal */
|
|
1565
|
-
export type MCPTool$Outbound = {
|
|
1566
|
-
path: string;
|
|
1567
|
-
key: string;
|
|
1568
|
-
display_name?: string | undefined;
|
|
1569
|
-
description: string;
|
|
1570
|
-
status: string;
|
|
1571
|
-
type: string;
|
|
1572
|
-
mcp: Mcp$Outbound;
|
|
1573
|
-
};
|
|
1574
|
-
|
|
1575
|
-
/** @internal */
|
|
1576
|
-
export const MCPTool$outboundSchema: z.ZodType<
|
|
1577
|
-
MCPTool$Outbound,
|
|
1578
|
-
z.ZodTypeDef,
|
|
1579
|
-
MCPTool
|
|
1580
|
-
> = z.object({
|
|
1581
|
-
path: z.string(),
|
|
1582
|
-
key: z.string(),
|
|
1583
|
-
displayName: z.string().optional(),
|
|
1584
|
-
description: z.string(),
|
|
1585
|
-
status: CreateToolRequestBodyToolsRequestStatus$outboundSchema.default(
|
|
1586
|
-
"live",
|
|
1587
|
-
),
|
|
1588
|
-
type: CreateToolRequestBodyToolsRequest4Type$outboundSchema,
|
|
1589
|
-
mcp: z.lazy(() => Mcp$outboundSchema),
|
|
1590
|
-
}).transform((v) => {
|
|
1591
|
-
return remap$(v, {
|
|
1592
|
-
displayName: "display_name",
|
|
1593
|
-
});
|
|
1594
|
-
});
|
|
1595
|
-
|
|
1596
|
-
/**
|
|
1597
|
-
* @internal
|
|
1598
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1599
|
-
*/
|
|
1600
|
-
export namespace MCPTool$ {
|
|
1601
|
-
/** @deprecated use `MCPTool$inboundSchema` instead. */
|
|
1602
|
-
export const inboundSchema = MCPTool$inboundSchema;
|
|
1603
|
-
/** @deprecated use `MCPTool$outboundSchema` instead. */
|
|
1604
|
-
export const outboundSchema = MCPTool$outboundSchema;
|
|
1605
|
-
/** @deprecated use `MCPTool$Outbound` instead. */
|
|
1606
|
-
export type Outbound = MCPTool$Outbound;
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
export function mcpToolToJSON(mcpTool: MCPTool): string {
|
|
1610
|
-
return JSON.stringify(MCPTool$outboundSchema.parse(mcpTool));
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
export function mcpToolFromJSON(
|
|
1614
|
-
jsonString: string,
|
|
1615
|
-
): SafeParseResult<MCPTool, SDKValidationError> {
|
|
1616
|
-
return safeParse(
|
|
1617
|
-
jsonString,
|
|
1618
|
-
(x) => MCPTool$inboundSchema.parse(JSON.parse(x)),
|
|
1619
|
-
`Failed to parse 'MCPTool' from JSON`,
|
|
1620
|
-
);
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
/** @internal */
|
|
1624
|
-
export const CreateToolRequestBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
|
|
1625
|
-
typeof CreateToolRequestBodyToolsStatus
|
|
1626
|
-
> = z.nativeEnum(CreateToolRequestBodyToolsStatus);
|
|
1627
|
-
|
|
1628
|
-
/** @internal */
|
|
1629
|
-
export const CreateToolRequestBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
|
|
1630
|
-
typeof CreateToolRequestBodyToolsStatus
|
|
1631
|
-
> = CreateToolRequestBodyToolsStatus$inboundSchema;
|
|
1632
|
-
|
|
1633
|
-
/**
|
|
1634
|
-
* @internal
|
|
1635
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1636
|
-
*/
|
|
1637
|
-
export namespace CreateToolRequestBodyToolsStatus$ {
|
|
1638
|
-
/** @deprecated use `CreateToolRequestBodyToolsStatus$inboundSchema` instead. */
|
|
1639
|
-
export const inboundSchema = CreateToolRequestBodyToolsStatus$inboundSchema;
|
|
1640
|
-
/** @deprecated use `CreateToolRequestBodyToolsStatus$outboundSchema` instead. */
|
|
1641
|
-
export const outboundSchema = CreateToolRequestBodyToolsStatus$outboundSchema;
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
/** @internal */
|
|
1645
|
-
export const CreateToolRequestBodyToolsRequestType$inboundSchema:
|
|
1646
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequestType> = z.nativeEnum(
|
|
1647
|
-
CreateToolRequestBodyToolsRequestType,
|
|
1648
|
-
);
|
|
1649
|
-
|
|
1650
|
-
/** @internal */
|
|
1651
|
-
export const CreateToolRequestBodyToolsRequestType$outboundSchema:
|
|
1652
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequestType> =
|
|
1653
|
-
CreateToolRequestBodyToolsRequestType$inboundSchema;
|
|
1654
|
-
|
|
1655
|
-
/**
|
|
1656
|
-
* @internal
|
|
1657
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1658
|
-
*/
|
|
1659
|
-
export namespace CreateToolRequestBodyToolsRequestType$ {
|
|
1660
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequestType$inboundSchema` instead. */
|
|
1661
|
-
export const inboundSchema =
|
|
1662
|
-
CreateToolRequestBodyToolsRequestType$inboundSchema;
|
|
1663
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequestType$outboundSchema` instead. */
|
|
1664
|
-
export const outboundSchema =
|
|
1665
|
-
CreateToolRequestBodyToolsRequestType$outboundSchema;
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
/** @internal */
|
|
1669
|
-
export const CreateToolRequestBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
1670
|
-
typeof CreateToolRequestBodyMethod
|
|
1671
|
-
> = z.nativeEnum(CreateToolRequestBodyMethod);
|
|
1672
|
-
|
|
1673
|
-
/** @internal */
|
|
1674
|
-
export const CreateToolRequestBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
1675
|
-
typeof CreateToolRequestBodyMethod
|
|
1676
|
-
> = CreateToolRequestBodyMethod$inboundSchema;
|
|
1677
|
-
|
|
1678
|
-
/**
|
|
1679
|
-
* @internal
|
|
1680
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1681
|
-
*/
|
|
1682
|
-
export namespace CreateToolRequestBodyMethod$ {
|
|
1683
|
-
/** @deprecated use `CreateToolRequestBodyMethod$inboundSchema` instead. */
|
|
1684
|
-
export const inboundSchema = CreateToolRequestBodyMethod$inboundSchema;
|
|
1685
|
-
/** @deprecated use `CreateToolRequestBodyMethod$outboundSchema` instead. */
|
|
1686
|
-
export const outboundSchema = CreateToolRequestBodyMethod$outboundSchema;
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
/** @internal */
|
|
1690
|
-
export const RequestBodyBlueprint$inboundSchema: z.ZodType<
|
|
1691
|
-
RequestBodyBlueprint,
|
|
1692
|
-
z.ZodTypeDef,
|
|
1693
|
-
unknown
|
|
1694
|
-
> = z.object({
|
|
1695
|
-
url: z.string(),
|
|
1696
|
-
method: CreateToolRequestBodyMethod$inboundSchema,
|
|
1697
|
-
headers: z.record(z.string()).optional(),
|
|
1698
|
-
body: z.record(z.any()).optional(),
|
|
1699
|
-
});
|
|
1700
|
-
|
|
1701
|
-
/** @internal */
|
|
1702
|
-
export type RequestBodyBlueprint$Outbound = {
|
|
1703
|
-
url: string;
|
|
1704
|
-
method: string;
|
|
1705
|
-
headers?: { [k: string]: string } | undefined;
|
|
1706
|
-
body?: { [k: string]: any } | undefined;
|
|
1707
|
-
};
|
|
1708
|
-
|
|
1709
|
-
/** @internal */
|
|
1710
|
-
export const RequestBodyBlueprint$outboundSchema: z.ZodType<
|
|
1711
|
-
RequestBodyBlueprint$Outbound,
|
|
1712
|
-
z.ZodTypeDef,
|
|
1713
|
-
RequestBodyBlueprint
|
|
1714
|
-
> = z.object({
|
|
1715
|
-
url: z.string(),
|
|
1716
|
-
method: CreateToolRequestBodyMethod$outboundSchema,
|
|
1717
|
-
headers: z.record(z.string()).optional(),
|
|
1718
|
-
body: z.record(z.any()).optional(),
|
|
1719
|
-
});
|
|
1720
|
-
|
|
1721
|
-
/**
|
|
1722
|
-
* @internal
|
|
1723
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1724
|
-
*/
|
|
1725
|
-
export namespace RequestBodyBlueprint$ {
|
|
1726
|
-
/** @deprecated use `RequestBodyBlueprint$inboundSchema` instead. */
|
|
1727
|
-
export const inboundSchema = RequestBodyBlueprint$inboundSchema;
|
|
1728
|
-
/** @deprecated use `RequestBodyBlueprint$outboundSchema` instead. */
|
|
1729
|
-
export const outboundSchema = RequestBodyBlueprint$outboundSchema;
|
|
1730
|
-
/** @deprecated use `RequestBodyBlueprint$Outbound` instead. */
|
|
1731
|
-
export type Outbound = RequestBodyBlueprint$Outbound;
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
export function requestBodyBlueprintToJSON(
|
|
1735
|
-
requestBodyBlueprint: RequestBodyBlueprint,
|
|
1736
|
-
): string {
|
|
1737
|
-
return JSON.stringify(
|
|
1738
|
-
RequestBodyBlueprint$outboundSchema.parse(requestBodyBlueprint),
|
|
1739
|
-
);
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
export function requestBodyBlueprintFromJSON(
|
|
1743
|
-
jsonString: string,
|
|
1744
|
-
): SafeParseResult<RequestBodyBlueprint, SDKValidationError> {
|
|
1745
|
-
return safeParse(
|
|
1746
|
-
jsonString,
|
|
1747
|
-
(x) => RequestBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
|
|
1748
|
-
`Failed to parse 'RequestBodyBlueprint' from JSON`,
|
|
1749
|
-
);
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
/** @internal */
|
|
1753
|
-
export const CreateToolRequestBodyToolsRequest3Type$inboundSchema:
|
|
1754
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest3Type> = z.nativeEnum(
|
|
1755
|
-
CreateToolRequestBodyToolsRequest3Type,
|
|
1756
|
-
);
|
|
1757
|
-
|
|
1758
|
-
/** @internal */
|
|
1759
|
-
export const CreateToolRequestBodyToolsRequest3Type$outboundSchema:
|
|
1760
|
-
z.ZodNativeEnum<typeof CreateToolRequestBodyToolsRequest3Type> =
|
|
1761
|
-
CreateToolRequestBodyToolsRequest3Type$inboundSchema;
|
|
1762
|
-
|
|
1763
|
-
/**
|
|
1764
|
-
* @internal
|
|
1765
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1766
|
-
*/
|
|
1767
|
-
export namespace CreateToolRequestBodyToolsRequest3Type$ {
|
|
1768
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequest3Type$inboundSchema` instead. */
|
|
1769
|
-
export const inboundSchema =
|
|
1770
|
-
CreateToolRequestBodyToolsRequest3Type$inboundSchema;
|
|
1771
|
-
/** @deprecated use `CreateToolRequestBodyToolsRequest3Type$outboundSchema` instead. */
|
|
1772
|
-
export const outboundSchema =
|
|
1773
|
-
CreateToolRequestBodyToolsRequest3Type$outboundSchema;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
/** @internal */
|
|
1777
|
-
export const RequestBodyDefaultValue$inboundSchema: z.ZodType<
|
|
1778
|
-
RequestBodyDefaultValue,
|
|
1779
|
-
z.ZodTypeDef,
|
|
1780
|
-
unknown
|
|
1781
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1782
|
-
|
|
1783
|
-
/** @internal */
|
|
1784
|
-
export type RequestBodyDefaultValue$Outbound = string | number | boolean;
|
|
1785
|
-
|
|
1786
|
-
/** @internal */
|
|
1787
|
-
export const RequestBodyDefaultValue$outboundSchema: z.ZodType<
|
|
1788
|
-
RequestBodyDefaultValue$Outbound,
|
|
1789
|
-
z.ZodTypeDef,
|
|
1790
|
-
RequestBodyDefaultValue
|
|
1791
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1792
|
-
|
|
1793
|
-
/**
|
|
1794
|
-
* @internal
|
|
1795
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1796
|
-
*/
|
|
1797
|
-
export namespace RequestBodyDefaultValue$ {
|
|
1798
|
-
/** @deprecated use `RequestBodyDefaultValue$inboundSchema` instead. */
|
|
1799
|
-
export const inboundSchema = RequestBodyDefaultValue$inboundSchema;
|
|
1800
|
-
/** @deprecated use `RequestBodyDefaultValue$outboundSchema` instead. */
|
|
1801
|
-
export const outboundSchema = RequestBodyDefaultValue$outboundSchema;
|
|
1802
|
-
/** @deprecated use `RequestBodyDefaultValue$Outbound` instead. */
|
|
1803
|
-
export type Outbound = RequestBodyDefaultValue$Outbound;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
export function requestBodyDefaultValueToJSON(
|
|
1807
|
-
requestBodyDefaultValue: RequestBodyDefaultValue,
|
|
1808
|
-
): string {
|
|
1809
|
-
return JSON.stringify(
|
|
1810
|
-
RequestBodyDefaultValue$outboundSchema.parse(requestBodyDefaultValue),
|
|
1811
|
-
);
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
export function requestBodyDefaultValueFromJSON(
|
|
1815
|
-
jsonString: string,
|
|
1816
|
-
): SafeParseResult<RequestBodyDefaultValue, SDKValidationError> {
|
|
1817
|
-
return safeParse(
|
|
1818
|
-
jsonString,
|
|
1819
|
-
(x) => RequestBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
|
|
1820
|
-
`Failed to parse 'RequestBodyDefaultValue' from JSON`,
|
|
1821
|
-
);
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
/** @internal */
|
|
1825
|
-
export const RequestBodyArguments$inboundSchema: z.ZodType<
|
|
1826
|
-
RequestBodyArguments,
|
|
1827
|
-
z.ZodTypeDef,
|
|
1828
|
-
unknown
|
|
1829
|
-
> = z.object({
|
|
1830
|
-
type: CreateToolRequestBodyToolsRequest3Type$inboundSchema,
|
|
1831
|
-
description: z.string(),
|
|
1832
|
-
send_to_model: z.boolean().default(true),
|
|
1833
|
-
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
1834
|
-
}).transform((v) => {
|
|
1835
|
-
return remap$(v, {
|
|
1836
|
-
"send_to_model": "sendToModel",
|
|
1837
|
-
"default_value": "defaultValue",
|
|
1838
|
-
});
|
|
1839
|
-
});
|
|
1840
|
-
|
|
1841
|
-
/** @internal */
|
|
1842
|
-
export type RequestBodyArguments$Outbound = {
|
|
1843
|
-
type: string;
|
|
1844
|
-
description: string;
|
|
1845
|
-
send_to_model: boolean;
|
|
1846
|
-
default_value?: string | number | boolean | undefined;
|
|
1847
|
-
};
|
|
1848
|
-
|
|
1849
|
-
/** @internal */
|
|
1850
|
-
export const RequestBodyArguments$outboundSchema: z.ZodType<
|
|
1851
|
-
RequestBodyArguments$Outbound,
|
|
1852
|
-
z.ZodTypeDef,
|
|
1853
|
-
RequestBodyArguments
|
|
1854
|
-
> = z.object({
|
|
1855
|
-
type: CreateToolRequestBodyToolsRequest3Type$outboundSchema,
|
|
1856
|
-
description: z.string(),
|
|
1857
|
-
sendToModel: z.boolean().default(true),
|
|
1858
|
-
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
1859
|
-
}).transform((v) => {
|
|
1860
|
-
return remap$(v, {
|
|
1861
|
-
sendToModel: "send_to_model",
|
|
1862
|
-
defaultValue: "default_value",
|
|
1863
|
-
});
|
|
1864
|
-
});
|
|
1865
|
-
|
|
1866
|
-
/**
|
|
1867
|
-
* @internal
|
|
1868
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1869
|
-
*/
|
|
1870
|
-
export namespace RequestBodyArguments$ {
|
|
1871
|
-
/** @deprecated use `RequestBodyArguments$inboundSchema` instead. */
|
|
1872
|
-
export const inboundSchema = RequestBodyArguments$inboundSchema;
|
|
1873
|
-
/** @deprecated use `RequestBodyArguments$outboundSchema` instead. */
|
|
1874
|
-
export const outboundSchema = RequestBodyArguments$outboundSchema;
|
|
1875
|
-
/** @deprecated use `RequestBodyArguments$Outbound` instead. */
|
|
1876
|
-
export type Outbound = RequestBodyArguments$Outbound;
|
|
1877
|
-
}
|
|
1878
|
-
|
|
1879
|
-
export function requestBodyArgumentsToJSON(
|
|
1880
|
-
requestBodyArguments: RequestBodyArguments,
|
|
1881
|
-
): string {
|
|
1882
|
-
return JSON.stringify(
|
|
1883
|
-
RequestBodyArguments$outboundSchema.parse(requestBodyArguments),
|
|
1884
|
-
);
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
|
-
export function requestBodyArgumentsFromJSON(
|
|
1888
|
-
jsonString: string,
|
|
1889
|
-
): SafeParseResult<RequestBodyArguments, SDKValidationError> {
|
|
1890
|
-
return safeParse(
|
|
1891
|
-
jsonString,
|
|
1892
|
-
(x) => RequestBodyArguments$inboundSchema.parse(JSON.parse(x)),
|
|
1893
|
-
`Failed to parse 'RequestBodyArguments' from JSON`,
|
|
1894
|
-
);
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
/** @internal */
|
|
1898
|
-
export const CreateToolRequestBodyHttp$inboundSchema: z.ZodType<
|
|
1899
|
-
CreateToolRequestBodyHttp,
|
|
1900
|
-
z.ZodTypeDef,
|
|
1901
|
-
unknown
|
|
1902
|
-
> = z.object({
|
|
1903
|
-
blueprint: z.lazy(() => RequestBodyBlueprint$inboundSchema),
|
|
1904
|
-
arguments: z.record(z.lazy(() => RequestBodyArguments$inboundSchema))
|
|
1905
|
-
.optional(),
|
|
1906
|
-
});
|
|
1907
|
-
|
|
1908
|
-
/** @internal */
|
|
1909
|
-
export type CreateToolRequestBodyHttp$Outbound = {
|
|
1910
|
-
blueprint: RequestBodyBlueprint$Outbound;
|
|
1911
|
-
arguments?: { [k: string]: RequestBodyArguments$Outbound } | undefined;
|
|
1912
|
-
};
|
|
1913
|
-
|
|
1914
|
-
/** @internal */
|
|
1915
|
-
export const CreateToolRequestBodyHttp$outboundSchema: z.ZodType<
|
|
1916
|
-
CreateToolRequestBodyHttp$Outbound,
|
|
1917
|
-
z.ZodTypeDef,
|
|
1918
|
-
CreateToolRequestBodyHttp
|
|
1919
|
-
> = z.object({
|
|
1920
|
-
blueprint: z.lazy(() => RequestBodyBlueprint$outboundSchema),
|
|
1921
|
-
arguments: z.record(z.lazy(() => RequestBodyArguments$outboundSchema))
|
|
1922
|
-
.optional(),
|
|
1923
|
-
});
|
|
1924
|
-
|
|
1925
|
-
/**
|
|
1926
|
-
* @internal
|
|
1927
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1928
|
-
*/
|
|
1929
|
-
export namespace CreateToolRequestBodyHttp$ {
|
|
1930
|
-
/** @deprecated use `CreateToolRequestBodyHttp$inboundSchema` instead. */
|
|
1931
|
-
export const inboundSchema = CreateToolRequestBodyHttp$inboundSchema;
|
|
1932
|
-
/** @deprecated use `CreateToolRequestBodyHttp$outboundSchema` instead. */
|
|
1933
|
-
export const outboundSchema = CreateToolRequestBodyHttp$outboundSchema;
|
|
1934
|
-
/** @deprecated use `CreateToolRequestBodyHttp$Outbound` instead. */
|
|
1935
|
-
export type Outbound = CreateToolRequestBodyHttp$Outbound;
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
export function createToolRequestBodyHttpToJSON(
|
|
1939
|
-
createToolRequestBodyHttp: CreateToolRequestBodyHttp,
|
|
1940
|
-
): string {
|
|
1941
|
-
return JSON.stringify(
|
|
1942
|
-
CreateToolRequestBodyHttp$outboundSchema.parse(createToolRequestBodyHttp),
|
|
1943
|
-
);
|
|
1944
|
-
}
|
|
1945
|
-
|
|
1946
|
-
export function createToolRequestBodyHttpFromJSON(
|
|
1947
|
-
jsonString: string,
|
|
1948
|
-
): SafeParseResult<CreateToolRequestBodyHttp, SDKValidationError> {
|
|
1949
|
-
return safeParse(
|
|
1950
|
-
jsonString,
|
|
1951
|
-
(x) => CreateToolRequestBodyHttp$inboundSchema.parse(JSON.parse(x)),
|
|
1952
|
-
`Failed to parse 'CreateToolRequestBodyHttp' from JSON`,
|
|
1953
|
-
);
|
|
1954
|
-
}
|
|
1955
|
-
|
|
1956
|
-
/** @internal */
|
|
1957
|
-
export const RequestBodyHTTPTool$inboundSchema: z.ZodType<
|
|
1958
|
-
RequestBodyHTTPTool,
|
|
1959
|
-
z.ZodTypeDef,
|
|
1960
|
-
unknown
|
|
1961
|
-
> = z.object({
|
|
1962
|
-
path: z.string(),
|
|
1963
|
-
key: z.string(),
|
|
1964
|
-
display_name: z.string().optional(),
|
|
1965
|
-
description: z.string(),
|
|
1966
|
-
status: CreateToolRequestBodyToolsStatus$inboundSchema.default("live"),
|
|
1967
|
-
type: CreateToolRequestBodyToolsRequestType$inboundSchema,
|
|
1968
|
-
http: z.lazy(() => CreateToolRequestBodyHttp$inboundSchema),
|
|
1969
|
-
}).transform((v) => {
|
|
1970
|
-
return remap$(v, {
|
|
1971
|
-
"display_name": "displayName",
|
|
1972
|
-
});
|
|
1973
|
-
});
|
|
1974
|
-
|
|
1975
|
-
/** @internal */
|
|
1976
|
-
export type RequestBodyHTTPTool$Outbound = {
|
|
1977
|
-
path: string;
|
|
1978
|
-
key: string;
|
|
1979
|
-
display_name?: string | undefined;
|
|
1980
|
-
description: string;
|
|
1981
|
-
status: string;
|
|
1982
|
-
type: string;
|
|
1983
|
-
http: CreateToolRequestBodyHttp$Outbound;
|
|
1984
|
-
};
|
|
1985
|
-
|
|
1986
|
-
/** @internal */
|
|
1987
|
-
export const RequestBodyHTTPTool$outboundSchema: z.ZodType<
|
|
1988
|
-
RequestBodyHTTPTool$Outbound,
|
|
1989
|
-
z.ZodTypeDef,
|
|
1990
|
-
RequestBodyHTTPTool
|
|
1991
|
-
> = z.object({
|
|
1992
|
-
path: z.string(),
|
|
1993
|
-
key: z.string(),
|
|
1994
|
-
displayName: z.string().optional(),
|
|
1995
|
-
description: z.string(),
|
|
1996
|
-
status: CreateToolRequestBodyToolsStatus$outboundSchema.default("live"),
|
|
1997
|
-
type: CreateToolRequestBodyToolsRequestType$outboundSchema,
|
|
1998
|
-
http: z.lazy(() => CreateToolRequestBodyHttp$outboundSchema),
|
|
1999
|
-
}).transform((v) => {
|
|
2000
|
-
return remap$(v, {
|
|
2001
|
-
displayName: "display_name",
|
|
2002
|
-
});
|
|
2003
|
-
});
|
|
2004
|
-
|
|
2005
|
-
/**
|
|
2006
|
-
* @internal
|
|
2007
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2008
|
-
*/
|
|
2009
|
-
export namespace RequestBodyHTTPTool$ {
|
|
2010
|
-
/** @deprecated use `RequestBodyHTTPTool$inboundSchema` instead. */
|
|
2011
|
-
export const inboundSchema = RequestBodyHTTPTool$inboundSchema;
|
|
2012
|
-
/** @deprecated use `RequestBodyHTTPTool$outboundSchema` instead. */
|
|
2013
|
-
export const outboundSchema = RequestBodyHTTPTool$outboundSchema;
|
|
2014
|
-
/** @deprecated use `RequestBodyHTTPTool$Outbound` instead. */
|
|
2015
|
-
export type Outbound = RequestBodyHTTPTool$Outbound;
|
|
2016
|
-
}
|
|
2017
|
-
|
|
2018
|
-
export function requestBodyHTTPToolToJSON(
|
|
2019
|
-
requestBodyHTTPTool: RequestBodyHTTPTool,
|
|
2020
|
-
): string {
|
|
2021
|
-
return JSON.stringify(
|
|
2022
|
-
RequestBodyHTTPTool$outboundSchema.parse(requestBodyHTTPTool),
|
|
2023
|
-
);
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
export function requestBodyHTTPToolFromJSON(
|
|
2027
|
-
jsonString: string,
|
|
2028
|
-
): SafeParseResult<RequestBodyHTTPTool, SDKValidationError> {
|
|
2029
|
-
return safeParse(
|
|
2030
|
-
jsonString,
|
|
2031
|
-
(x) => RequestBodyHTTPTool$inboundSchema.parse(JSON.parse(x)),
|
|
2032
|
-
`Failed to parse 'RequestBodyHTTPTool' from JSON`,
|
|
2033
|
-
);
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
/** @internal */
|
|
2037
|
-
export const CreateToolRequestBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
2038
|
-
typeof CreateToolRequestBodyStatus
|
|
2039
|
-
> = z.nativeEnum(CreateToolRequestBodyStatus);
|
|
2040
|
-
|
|
2041
|
-
/** @internal */
|
|
2042
|
-
export const CreateToolRequestBodyStatus$outboundSchema: z.ZodNativeEnum<
|
|
2043
|
-
typeof CreateToolRequestBodyStatus
|
|
2044
|
-
> = CreateToolRequestBodyStatus$inboundSchema;
|
|
2045
|
-
|
|
2046
|
-
/**
|
|
2047
|
-
* @internal
|
|
2048
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2049
|
-
*/
|
|
2050
|
-
export namespace CreateToolRequestBodyStatus$ {
|
|
2051
|
-
/** @deprecated use `CreateToolRequestBodyStatus$inboundSchema` instead. */
|
|
2052
|
-
export const inboundSchema = CreateToolRequestBodyStatus$inboundSchema;
|
|
2053
|
-
/** @deprecated use `CreateToolRequestBodyStatus$outboundSchema` instead. */
|
|
2054
|
-
export const outboundSchema = CreateToolRequestBodyStatus$outboundSchema;
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
/** @internal */
|
|
2058
|
-
export const CreateToolRequestBodyToolsType$inboundSchema: z.ZodNativeEnum<
|
|
2059
|
-
typeof CreateToolRequestBodyToolsType
|
|
2060
|
-
> = z.nativeEnum(CreateToolRequestBodyToolsType);
|
|
2061
|
-
|
|
2062
|
-
/** @internal */
|
|
2063
|
-
export const CreateToolRequestBodyToolsType$outboundSchema: z.ZodNativeEnum<
|
|
2064
|
-
typeof CreateToolRequestBodyToolsType
|
|
2065
|
-
> = CreateToolRequestBodyToolsType$inboundSchema;
|
|
2066
|
-
|
|
2067
|
-
/**
|
|
2068
|
-
* @internal
|
|
2069
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2070
|
-
*/
|
|
2071
|
-
export namespace CreateToolRequestBodyToolsType$ {
|
|
2072
|
-
/** @deprecated use `CreateToolRequestBodyToolsType$inboundSchema` instead. */
|
|
2073
|
-
export const inboundSchema = CreateToolRequestBodyToolsType$inboundSchema;
|
|
2074
|
-
/** @deprecated use `CreateToolRequestBodyToolsType$outboundSchema` instead. */
|
|
2075
|
-
export const outboundSchema = CreateToolRequestBodyToolsType$outboundSchema;
|
|
2076
|
-
}
|
|
2077
|
-
|
|
2078
|
-
/** @internal */
|
|
2079
|
-
export const RequestBodyJsonSchema$inboundSchema: z.ZodType<
|
|
2080
|
-
RequestBodyJsonSchema,
|
|
2081
|
-
z.ZodTypeDef,
|
|
2082
|
-
unknown
|
|
2083
|
-
> = z.object({
|
|
2084
|
-
name: z.string(),
|
|
2085
|
-
description: z.string().optional(),
|
|
2086
|
-
schema: z.record(z.any()),
|
|
2087
|
-
strict: z.nullable(z.boolean().default(false)),
|
|
2088
|
-
});
|
|
2089
|
-
|
|
2090
|
-
/** @internal */
|
|
2091
|
-
export type RequestBodyJsonSchema$Outbound = {
|
|
2092
|
-
name: string;
|
|
2093
|
-
description?: string | undefined;
|
|
2094
|
-
schema: { [k: string]: any };
|
|
2095
|
-
strict: boolean | null;
|
|
2096
|
-
};
|
|
2097
|
-
|
|
2098
|
-
/** @internal */
|
|
2099
|
-
export const RequestBodyJsonSchema$outboundSchema: z.ZodType<
|
|
2100
|
-
RequestBodyJsonSchema$Outbound,
|
|
2101
|
-
z.ZodTypeDef,
|
|
2102
|
-
RequestBodyJsonSchema
|
|
2103
|
-
> = z.object({
|
|
2104
|
-
name: z.string(),
|
|
2105
|
-
description: z.string().optional(),
|
|
2106
|
-
schema: z.record(z.any()),
|
|
2107
|
-
strict: z.nullable(z.boolean().default(false)),
|
|
2108
|
-
});
|
|
2109
|
-
|
|
2110
|
-
/**
|
|
2111
|
-
* @internal
|
|
2112
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2113
|
-
*/
|
|
2114
|
-
export namespace RequestBodyJsonSchema$ {
|
|
2115
|
-
/** @deprecated use `RequestBodyJsonSchema$inboundSchema` instead. */
|
|
2116
|
-
export const inboundSchema = RequestBodyJsonSchema$inboundSchema;
|
|
2117
|
-
/** @deprecated use `RequestBodyJsonSchema$outboundSchema` instead. */
|
|
2118
|
-
export const outboundSchema = RequestBodyJsonSchema$outboundSchema;
|
|
2119
|
-
/** @deprecated use `RequestBodyJsonSchema$Outbound` instead. */
|
|
2120
|
-
export type Outbound = RequestBodyJsonSchema$Outbound;
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
export function requestBodyJsonSchemaToJSON(
|
|
2124
|
-
requestBodyJsonSchema: RequestBodyJsonSchema,
|
|
2125
|
-
): string {
|
|
2126
|
-
return JSON.stringify(
|
|
2127
|
-
RequestBodyJsonSchema$outboundSchema.parse(requestBodyJsonSchema),
|
|
2128
|
-
);
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
export function requestBodyJsonSchemaFromJSON(
|
|
2132
|
-
jsonString: string,
|
|
2133
|
-
): SafeParseResult<RequestBodyJsonSchema, SDKValidationError> {
|
|
2134
|
-
return safeParse(
|
|
2135
|
-
jsonString,
|
|
2136
|
-
(x) => RequestBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
2137
|
-
`Failed to parse 'RequestBodyJsonSchema' from JSON`,
|
|
2138
|
-
);
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
/** @internal */
|
|
2142
|
-
export const JSONSchemaTool$inboundSchema: z.ZodType<
|
|
2143
|
-
JSONSchemaTool,
|
|
2144
|
-
z.ZodTypeDef,
|
|
2145
|
-
unknown
|
|
2146
|
-
> = z.object({
|
|
2147
|
-
path: z.string(),
|
|
2148
|
-
key: z.string(),
|
|
2149
|
-
display_name: z.string().optional(),
|
|
2150
|
-
description: z.string(),
|
|
2151
|
-
status: CreateToolRequestBodyStatus$inboundSchema.default("live"),
|
|
2152
|
-
type: CreateToolRequestBodyToolsType$inboundSchema,
|
|
2153
|
-
json_schema: z.lazy(() => RequestBodyJsonSchema$inboundSchema),
|
|
2154
|
-
}).transform((v) => {
|
|
2155
|
-
return remap$(v, {
|
|
2156
|
-
"display_name": "displayName",
|
|
2157
|
-
"json_schema": "jsonSchema",
|
|
2158
|
-
});
|
|
2159
|
-
});
|
|
2160
|
-
|
|
2161
|
-
/** @internal */
|
|
2162
|
-
export type JSONSchemaTool$Outbound = {
|
|
2163
|
-
path: string;
|
|
2164
|
-
key: string;
|
|
2165
|
-
display_name?: string | undefined;
|
|
2166
|
-
description: string;
|
|
2167
|
-
status: string;
|
|
2168
|
-
type: string;
|
|
2169
|
-
json_schema: RequestBodyJsonSchema$Outbound;
|
|
2170
|
-
};
|
|
2171
|
-
|
|
2172
|
-
/** @internal */
|
|
2173
|
-
export const JSONSchemaTool$outboundSchema: z.ZodType<
|
|
2174
|
-
JSONSchemaTool$Outbound,
|
|
2175
|
-
z.ZodTypeDef,
|
|
2176
|
-
JSONSchemaTool
|
|
2177
|
-
> = z.object({
|
|
2178
|
-
path: z.string(),
|
|
2179
|
-
key: z.string(),
|
|
2180
|
-
displayName: z.string().optional(),
|
|
2181
|
-
description: z.string(),
|
|
2182
|
-
status: CreateToolRequestBodyStatus$outboundSchema.default("live"),
|
|
2183
|
-
type: CreateToolRequestBodyToolsType$outboundSchema,
|
|
2184
|
-
jsonSchema: z.lazy(() => RequestBodyJsonSchema$outboundSchema),
|
|
2185
|
-
}).transform((v) => {
|
|
2186
|
-
return remap$(v, {
|
|
2187
|
-
displayName: "display_name",
|
|
2188
|
-
jsonSchema: "json_schema",
|
|
2189
|
-
});
|
|
2190
|
-
});
|
|
2191
|
-
|
|
2192
|
-
/**
|
|
2193
|
-
* @internal
|
|
2194
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2195
|
-
*/
|
|
2196
|
-
export namespace JSONSchemaTool$ {
|
|
2197
|
-
/** @deprecated use `JSONSchemaTool$inboundSchema` instead. */
|
|
2198
|
-
export const inboundSchema = JSONSchemaTool$inboundSchema;
|
|
2199
|
-
/** @deprecated use `JSONSchemaTool$outboundSchema` instead. */
|
|
2200
|
-
export const outboundSchema = JSONSchemaTool$outboundSchema;
|
|
2201
|
-
/** @deprecated use `JSONSchemaTool$Outbound` instead. */
|
|
2202
|
-
export type Outbound = JSONSchemaTool$Outbound;
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
|
-
export function jsonSchemaToolToJSON(jsonSchemaTool: JSONSchemaTool): string {
|
|
2206
|
-
return JSON.stringify(JSONSchemaTool$outboundSchema.parse(jsonSchemaTool));
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
|
-
export function jsonSchemaToolFromJSON(
|
|
2210
|
-
jsonString: string,
|
|
2211
|
-
): SafeParseResult<JSONSchemaTool, SDKValidationError> {
|
|
2212
|
-
return safeParse(
|
|
2213
|
-
jsonString,
|
|
2214
|
-
(x) => JSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
|
|
2215
|
-
`Failed to parse 'JSONSchemaTool' from JSON`,
|
|
2216
|
-
);
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
/** @internal */
|
|
2220
|
-
export const RequestBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
2221
|
-
typeof RequestBodyStatus
|
|
2222
|
-
> = z.nativeEnum(RequestBodyStatus);
|
|
2223
|
-
|
|
2224
|
-
/** @internal */
|
|
2225
|
-
export const RequestBodyStatus$outboundSchema: z.ZodNativeEnum<
|
|
2226
|
-
typeof RequestBodyStatus
|
|
2227
|
-
> = RequestBodyStatus$inboundSchema;
|
|
2228
|
-
|
|
2229
|
-
/**
|
|
2230
|
-
* @internal
|
|
2231
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2232
|
-
*/
|
|
2233
|
-
export namespace RequestBodyStatus$ {
|
|
2234
|
-
/** @deprecated use `RequestBodyStatus$inboundSchema` instead. */
|
|
2235
|
-
export const inboundSchema = RequestBodyStatus$inboundSchema;
|
|
2236
|
-
/** @deprecated use `RequestBodyStatus$outboundSchema` instead. */
|
|
2237
|
-
export const outboundSchema = RequestBodyStatus$outboundSchema;
|
|
2238
|
-
}
|
|
2239
|
-
|
|
2240
|
-
/** @internal */
|
|
2241
|
-
export const CreateToolRequestBodyType$inboundSchema: z.ZodNativeEnum<
|
|
2242
|
-
typeof CreateToolRequestBodyType
|
|
2243
|
-
> = z.nativeEnum(CreateToolRequestBodyType);
|
|
2244
|
-
|
|
2245
|
-
/** @internal */
|
|
2246
|
-
export const CreateToolRequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
2247
|
-
typeof CreateToolRequestBodyType
|
|
2248
|
-
> = CreateToolRequestBodyType$inboundSchema;
|
|
2249
|
-
|
|
2250
|
-
/**
|
|
2251
|
-
* @internal
|
|
2252
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2253
|
-
*/
|
|
2254
|
-
export namespace CreateToolRequestBodyType$ {
|
|
2255
|
-
/** @deprecated use `CreateToolRequestBodyType$inboundSchema` instead. */
|
|
2256
|
-
export const inboundSchema = CreateToolRequestBodyType$inboundSchema;
|
|
2257
|
-
/** @deprecated use `CreateToolRequestBodyType$outboundSchema` instead. */
|
|
2258
|
-
export const outboundSchema = CreateToolRequestBodyType$outboundSchema;
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
|
-
/** @internal */
|
|
2262
|
-
export const RequestBodyFunction$inboundSchema: z.ZodType<
|
|
2263
|
-
RequestBodyFunction,
|
|
2264
|
-
z.ZodTypeDef,
|
|
2265
|
-
unknown
|
|
2266
|
-
> = z.object({
|
|
2267
|
-
name: z.string(),
|
|
2268
|
-
description: z.string().optional(),
|
|
2269
|
-
strict: z.boolean().optional(),
|
|
2270
|
-
parameters: z.record(z.any()).optional(),
|
|
2271
|
-
});
|
|
2272
|
-
|
|
2273
|
-
/** @internal */
|
|
2274
|
-
export type RequestBodyFunction$Outbound = {
|
|
2275
|
-
name: string;
|
|
2276
|
-
description?: string | undefined;
|
|
2277
|
-
strict?: boolean | undefined;
|
|
2278
|
-
parameters?: { [k: string]: any } | undefined;
|
|
2279
|
-
};
|
|
2280
|
-
|
|
2281
|
-
/** @internal */
|
|
2282
|
-
export const RequestBodyFunction$outboundSchema: z.ZodType<
|
|
2283
|
-
RequestBodyFunction$Outbound,
|
|
2284
|
-
z.ZodTypeDef,
|
|
2285
|
-
RequestBodyFunction
|
|
2286
|
-
> = z.object({
|
|
2287
|
-
name: z.string(),
|
|
2288
|
-
description: z.string().optional(),
|
|
2289
|
-
strict: z.boolean().optional(),
|
|
2290
|
-
parameters: z.record(z.any()).optional(),
|
|
2291
|
-
});
|
|
2292
|
-
|
|
2293
|
-
/**
|
|
2294
|
-
* @internal
|
|
2295
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2296
|
-
*/
|
|
2297
|
-
export namespace RequestBodyFunction$ {
|
|
2298
|
-
/** @deprecated use `RequestBodyFunction$inboundSchema` instead. */
|
|
2299
|
-
export const inboundSchema = RequestBodyFunction$inboundSchema;
|
|
2300
|
-
/** @deprecated use `RequestBodyFunction$outboundSchema` instead. */
|
|
2301
|
-
export const outboundSchema = RequestBodyFunction$outboundSchema;
|
|
2302
|
-
/** @deprecated use `RequestBodyFunction$Outbound` instead. */
|
|
2303
|
-
export type Outbound = RequestBodyFunction$Outbound;
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
export function requestBodyFunctionToJSON(
|
|
2307
|
-
requestBodyFunction: RequestBodyFunction,
|
|
2308
|
-
): string {
|
|
2309
|
-
return JSON.stringify(
|
|
2310
|
-
RequestBodyFunction$outboundSchema.parse(requestBodyFunction),
|
|
2311
|
-
);
|
|
2312
|
-
}
|
|
2313
|
-
|
|
2314
|
-
export function requestBodyFunctionFromJSON(
|
|
2315
|
-
jsonString: string,
|
|
2316
|
-
): SafeParseResult<RequestBodyFunction, SDKValidationError> {
|
|
2317
|
-
return safeParse(
|
|
2318
|
-
jsonString,
|
|
2319
|
-
(x) => RequestBodyFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2320
|
-
`Failed to parse 'RequestBodyFunction' from JSON`,
|
|
2321
|
-
);
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
/** @internal */
|
|
2325
|
-
export const RequestBodyFunctionTool$inboundSchema: z.ZodType<
|
|
2326
|
-
RequestBodyFunctionTool,
|
|
2327
|
-
z.ZodTypeDef,
|
|
2328
|
-
unknown
|
|
2329
|
-
> = z.object({
|
|
2330
|
-
path: z.string(),
|
|
2331
|
-
key: z.string(),
|
|
2332
|
-
display_name: z.string().optional(),
|
|
2333
|
-
description: z.string(),
|
|
2334
|
-
status: RequestBodyStatus$inboundSchema.default("live"),
|
|
2335
|
-
type: CreateToolRequestBodyType$inboundSchema,
|
|
2336
|
-
function: z.lazy(() => RequestBodyFunction$inboundSchema),
|
|
2337
|
-
}).transform((v) => {
|
|
2338
|
-
return remap$(v, {
|
|
2339
|
-
"display_name": "displayName",
|
|
2340
|
-
});
|
|
2341
|
-
});
|
|
2342
|
-
|
|
2343
|
-
/** @internal */
|
|
2344
|
-
export type RequestBodyFunctionTool$Outbound = {
|
|
2345
|
-
path: string;
|
|
2346
|
-
key: string;
|
|
2347
|
-
display_name?: string | undefined;
|
|
2348
|
-
description: string;
|
|
2349
|
-
status: string;
|
|
2350
|
-
type: string;
|
|
2351
|
-
function: RequestBodyFunction$Outbound;
|
|
2352
|
-
};
|
|
2353
|
-
|
|
2354
|
-
/** @internal */
|
|
2355
|
-
export const RequestBodyFunctionTool$outboundSchema: z.ZodType<
|
|
2356
|
-
RequestBodyFunctionTool$Outbound,
|
|
2357
|
-
z.ZodTypeDef,
|
|
2358
|
-
RequestBodyFunctionTool
|
|
2359
|
-
> = z.object({
|
|
2360
|
-
path: z.string(),
|
|
2361
|
-
key: z.string(),
|
|
2362
|
-
displayName: z.string().optional(),
|
|
2363
|
-
description: z.string(),
|
|
2364
|
-
status: RequestBodyStatus$outboundSchema.default("live"),
|
|
2365
|
-
type: CreateToolRequestBodyType$outboundSchema,
|
|
2366
|
-
function: z.lazy(() => RequestBodyFunction$outboundSchema),
|
|
2367
|
-
}).transform((v) => {
|
|
2368
|
-
return remap$(v, {
|
|
2369
|
-
displayName: "display_name",
|
|
2370
|
-
});
|
|
2371
|
-
});
|
|
2372
|
-
|
|
2373
|
-
/**
|
|
2374
|
-
* @internal
|
|
2375
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2376
|
-
*/
|
|
2377
|
-
export namespace RequestBodyFunctionTool$ {
|
|
2378
|
-
/** @deprecated use `RequestBodyFunctionTool$inboundSchema` instead. */
|
|
2379
|
-
export const inboundSchema = RequestBodyFunctionTool$inboundSchema;
|
|
2380
|
-
/** @deprecated use `RequestBodyFunctionTool$outboundSchema` instead. */
|
|
2381
|
-
export const outboundSchema = RequestBodyFunctionTool$outboundSchema;
|
|
2382
|
-
/** @deprecated use `RequestBodyFunctionTool$Outbound` instead. */
|
|
2383
|
-
export type Outbound = RequestBodyFunctionTool$Outbound;
|
|
2384
|
-
}
|
|
2385
|
-
|
|
2386
|
-
export function requestBodyFunctionToolToJSON(
|
|
2387
|
-
requestBodyFunctionTool: RequestBodyFunctionTool,
|
|
2388
|
-
): string {
|
|
2389
|
-
return JSON.stringify(
|
|
2390
|
-
RequestBodyFunctionTool$outboundSchema.parse(requestBodyFunctionTool),
|
|
2391
|
-
);
|
|
2392
|
-
}
|
|
2393
|
-
|
|
2394
|
-
export function requestBodyFunctionToolFromJSON(
|
|
2395
|
-
jsonString: string,
|
|
2396
|
-
): SafeParseResult<RequestBodyFunctionTool, SDKValidationError> {
|
|
2397
|
-
return safeParse(
|
|
2398
|
-
jsonString,
|
|
2399
|
-
(x) => RequestBodyFunctionTool$inboundSchema.parse(JSON.parse(x)),
|
|
2400
|
-
`Failed to parse 'RequestBodyFunctionTool' from JSON`,
|
|
2401
|
-
);
|
|
2402
|
-
}
|
|
2403
|
-
|
|
2404
|
-
/** @internal */
|
|
2405
|
-
export const CreateToolRequestBody$inboundSchema: z.ZodType<
|
|
2406
|
-
CreateToolRequestBody,
|
|
2407
|
-
z.ZodTypeDef,
|
|
2408
|
-
unknown
|
|
2409
|
-
> = z.union([
|
|
2410
|
-
z.lazy(() => RequestBodyFunctionTool$inboundSchema),
|
|
2411
|
-
z.lazy(() => JSONSchemaTool$inboundSchema),
|
|
2412
|
-
z.lazy(() => RequestBodyHTTPTool$inboundSchema),
|
|
2413
|
-
z.lazy(() => MCPTool$inboundSchema),
|
|
2414
|
-
z.lazy(() => RequestBodyCodeExecutionTool$inboundSchema),
|
|
2415
|
-
]);
|
|
2416
|
-
|
|
2417
|
-
/** @internal */
|
|
2418
|
-
export type CreateToolRequestBody$Outbound =
|
|
2419
|
-
| RequestBodyFunctionTool$Outbound
|
|
2420
|
-
| JSONSchemaTool$Outbound
|
|
2421
|
-
| RequestBodyHTTPTool$Outbound
|
|
2422
|
-
| MCPTool$Outbound
|
|
2423
|
-
| RequestBodyCodeExecutionTool$Outbound;
|
|
2424
|
-
|
|
2425
|
-
/** @internal */
|
|
2426
|
-
export const CreateToolRequestBody$outboundSchema: z.ZodType<
|
|
2427
|
-
CreateToolRequestBody$Outbound,
|
|
2428
|
-
z.ZodTypeDef,
|
|
2429
|
-
CreateToolRequestBody
|
|
2430
|
-
> = z.union([
|
|
2431
|
-
z.lazy(() => RequestBodyFunctionTool$outboundSchema),
|
|
2432
|
-
z.lazy(() => JSONSchemaTool$outboundSchema),
|
|
2433
|
-
z.lazy(() => RequestBodyHTTPTool$outboundSchema),
|
|
2434
|
-
z.lazy(() => MCPTool$outboundSchema),
|
|
2435
|
-
z.lazy(() => RequestBodyCodeExecutionTool$outboundSchema),
|
|
2436
|
-
]);
|
|
2437
|
-
|
|
2438
|
-
/**
|
|
2439
|
-
* @internal
|
|
2440
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2441
|
-
*/
|
|
2442
|
-
export namespace CreateToolRequestBody$ {
|
|
2443
|
-
/** @deprecated use `CreateToolRequestBody$inboundSchema` instead. */
|
|
2444
|
-
export const inboundSchema = CreateToolRequestBody$inboundSchema;
|
|
2445
|
-
/** @deprecated use `CreateToolRequestBody$outboundSchema` instead. */
|
|
2446
|
-
export const outboundSchema = CreateToolRequestBody$outboundSchema;
|
|
2447
|
-
/** @deprecated use `CreateToolRequestBody$Outbound` instead. */
|
|
2448
|
-
export type Outbound = CreateToolRequestBody$Outbound;
|
|
2449
|
-
}
|
|
2450
|
-
|
|
2451
|
-
export function createToolRequestBodyToJSON(
|
|
2452
|
-
createToolRequestBody: CreateToolRequestBody,
|
|
2453
|
-
): string {
|
|
2454
|
-
return JSON.stringify(
|
|
2455
|
-
CreateToolRequestBody$outboundSchema.parse(createToolRequestBody),
|
|
2456
|
-
);
|
|
2457
|
-
}
|
|
2458
|
-
|
|
2459
|
-
export function createToolRequestBodyFromJSON(
|
|
2460
|
-
jsonString: string,
|
|
2461
|
-
): SafeParseResult<CreateToolRequestBody, SDKValidationError> {
|
|
2462
|
-
return safeParse(
|
|
2463
|
-
jsonString,
|
|
2464
|
-
(x) => CreateToolRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
2465
|
-
`Failed to parse 'CreateToolRequestBody' from JSON`,
|
|
2466
|
-
);
|
|
2467
|
-
}
|
|
2468
|
-
|
|
2469
|
-
/** @internal */
|
|
2470
|
-
export const CreateToolResponseBodyToolsResponse200Status$inboundSchema:
|
|
2471
|
-
z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200Status> = z
|
|
2472
|
-
.nativeEnum(CreateToolResponseBodyToolsResponse200Status);
|
|
2473
|
-
|
|
2474
|
-
/** @internal */
|
|
2475
|
-
export const CreateToolResponseBodyToolsResponse200Status$outboundSchema:
|
|
2476
|
-
z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200Status> =
|
|
2477
|
-
CreateToolResponseBodyToolsResponse200Status$inboundSchema;
|
|
2478
|
-
|
|
2479
|
-
/**
|
|
2480
|
-
* @internal
|
|
2481
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2482
|
-
*/
|
|
2483
|
-
export namespace CreateToolResponseBodyToolsResponse200Status$ {
|
|
2484
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponse200Status$inboundSchema` instead. */
|
|
2485
|
-
export const inboundSchema =
|
|
2486
|
-
CreateToolResponseBodyToolsResponse200Status$inboundSchema;
|
|
2487
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponse200Status$outboundSchema` instead. */
|
|
2488
|
-
export const outboundSchema =
|
|
2489
|
-
CreateToolResponseBodyToolsResponse200Status$outboundSchema;
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2492
|
-
/** @internal */
|
|
2493
|
-
export const CreateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema:
|
|
2494
|
-
z.ZodNativeEnum<
|
|
2495
|
-
typeof CreateToolResponseBodyToolsResponse200ApplicationJSONType
|
|
2496
|
-
> = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJSONType);
|
|
2497
|
-
|
|
2498
|
-
/** @internal */
|
|
2499
|
-
export const CreateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema:
|
|
2500
|
-
z.ZodNativeEnum<
|
|
2501
|
-
typeof CreateToolResponseBodyToolsResponse200ApplicationJSONType
|
|
2502
|
-
> = CreateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema;
|
|
2503
|
-
|
|
2504
|
-
/**
|
|
2505
|
-
* @internal
|
|
2506
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2507
|
-
*/
|
|
2508
|
-
export namespace CreateToolResponseBodyToolsResponse200ApplicationJSONType$ {
|
|
2509
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
2510
|
-
export const inboundSchema =
|
|
2511
|
-
CreateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema;
|
|
2512
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
2513
|
-
export const outboundSchema =
|
|
2514
|
-
CreateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema;
|
|
2515
|
-
}
|
|
2516
|
-
|
|
2517
|
-
/** @internal */
|
|
2518
|
-
export const ResponseBodyLanguage$inboundSchema: z.ZodNativeEnum<
|
|
2519
|
-
typeof ResponseBodyLanguage
|
|
2520
|
-
> = z.nativeEnum(ResponseBodyLanguage);
|
|
2521
|
-
|
|
2522
|
-
/** @internal */
|
|
2523
|
-
export const ResponseBodyLanguage$outboundSchema: z.ZodNativeEnum<
|
|
2524
|
-
typeof ResponseBodyLanguage
|
|
2525
|
-
> = ResponseBodyLanguage$inboundSchema;
|
|
2526
|
-
|
|
2527
|
-
/**
|
|
2528
|
-
* @internal
|
|
2529
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2530
|
-
*/
|
|
2531
|
-
export namespace ResponseBodyLanguage$ {
|
|
2532
|
-
/** @deprecated use `ResponseBodyLanguage$inboundSchema` instead. */
|
|
2533
|
-
export const inboundSchema = ResponseBodyLanguage$inboundSchema;
|
|
2534
|
-
/** @deprecated use `ResponseBodyLanguage$outboundSchema` instead. */
|
|
2535
|
-
export const outboundSchema = ResponseBodyLanguage$outboundSchema;
|
|
2536
|
-
}
|
|
2537
|
-
|
|
2538
|
-
/** @internal */
|
|
2539
|
-
export const ResponseBodyCodeTool$inboundSchema: z.ZodType<
|
|
2540
|
-
ResponseBodyCodeTool,
|
|
2541
|
-
z.ZodTypeDef,
|
|
2542
|
-
unknown
|
|
2543
|
-
> = z.object({
|
|
2544
|
-
parameters: z.record(z.any()).optional(),
|
|
2545
|
-
language: ResponseBodyLanguage$inboundSchema,
|
|
2546
|
-
code: z.string(),
|
|
2547
|
-
});
|
|
2548
|
-
|
|
2549
|
-
/** @internal */
|
|
2550
|
-
export type ResponseBodyCodeTool$Outbound = {
|
|
2551
|
-
parameters?: { [k: string]: any } | undefined;
|
|
2552
|
-
language: string;
|
|
2553
|
-
code: string;
|
|
2554
|
-
};
|
|
2555
|
-
|
|
2556
|
-
/** @internal */
|
|
2557
|
-
export const ResponseBodyCodeTool$outboundSchema: z.ZodType<
|
|
2558
|
-
ResponseBodyCodeTool$Outbound,
|
|
2559
|
-
z.ZodTypeDef,
|
|
2560
|
-
ResponseBodyCodeTool
|
|
2561
|
-
> = z.object({
|
|
2562
|
-
parameters: z.record(z.any()).optional(),
|
|
2563
|
-
language: ResponseBodyLanguage$outboundSchema,
|
|
2564
|
-
code: z.string(),
|
|
2565
|
-
});
|
|
2566
|
-
|
|
2567
|
-
/**
|
|
2568
|
-
* @internal
|
|
2569
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2570
|
-
*/
|
|
2571
|
-
export namespace ResponseBodyCodeTool$ {
|
|
2572
|
-
/** @deprecated use `ResponseBodyCodeTool$inboundSchema` instead. */
|
|
2573
|
-
export const inboundSchema = ResponseBodyCodeTool$inboundSchema;
|
|
2574
|
-
/** @deprecated use `ResponseBodyCodeTool$outboundSchema` instead. */
|
|
2575
|
-
export const outboundSchema = ResponseBodyCodeTool$outboundSchema;
|
|
2576
|
-
/** @deprecated use `ResponseBodyCodeTool$Outbound` instead. */
|
|
2577
|
-
export type Outbound = ResponseBodyCodeTool$Outbound;
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
|
-
export function responseBodyCodeToolToJSON(
|
|
2581
|
-
responseBodyCodeTool: ResponseBodyCodeTool,
|
|
2582
|
-
): string {
|
|
2583
|
-
return JSON.stringify(
|
|
2584
|
-
ResponseBodyCodeTool$outboundSchema.parse(responseBodyCodeTool),
|
|
2585
|
-
);
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
-
export function responseBodyCodeToolFromJSON(
|
|
2589
|
-
jsonString: string,
|
|
2590
|
-
): SafeParseResult<ResponseBodyCodeTool, SDKValidationError> {
|
|
2591
|
-
return safeParse(
|
|
2592
|
-
jsonString,
|
|
2593
|
-
(x) => ResponseBodyCodeTool$inboundSchema.parse(JSON.parse(x)),
|
|
2594
|
-
`Failed to parse 'ResponseBodyCodeTool' from JSON`,
|
|
2595
|
-
);
|
|
2596
|
-
}
|
|
2597
|
-
|
|
2598
|
-
/** @internal */
|
|
2599
|
-
export const ResponseBody5$inboundSchema: z.ZodType<
|
|
2600
|
-
ResponseBody5,
|
|
2601
|
-
z.ZodTypeDef,
|
|
2602
|
-
unknown
|
|
2603
|
-
> = z.object({
|
|
2604
|
-
_id: z.string().default("01K8WYAS7A2PV6VP6VK3ANPG47"),
|
|
2605
|
-
path: z.string(),
|
|
2606
|
-
key: z.string(),
|
|
2607
|
-
display_name: z.string().optional(),
|
|
2608
|
-
description: z.string(),
|
|
2609
|
-
created_by_id: z.string().optional(),
|
|
2610
|
-
updated_by_id: z.string().optional(),
|
|
2611
|
-
project_id: z.string(),
|
|
2612
|
-
workspace_id: z.string(),
|
|
2613
|
-
created: z.string(),
|
|
2614
|
-
updated: z.string(),
|
|
2615
|
-
status: CreateToolResponseBodyToolsResponse200Status$inboundSchema.default(
|
|
2616
|
-
"live",
|
|
2617
|
-
),
|
|
2618
|
-
version_hash: z.string().optional(),
|
|
2619
|
-
type: CreateToolResponseBodyToolsResponse200ApplicationJSONType$inboundSchema,
|
|
2620
|
-
code_tool: z.lazy(() => ResponseBodyCodeTool$inboundSchema),
|
|
2621
|
-
}).transform((v) => {
|
|
2622
|
-
return remap$(v, {
|
|
2623
|
-
"_id": "id",
|
|
2624
|
-
"display_name": "displayName",
|
|
2625
|
-
"created_by_id": "createdById",
|
|
2626
|
-
"updated_by_id": "updatedById",
|
|
2627
|
-
"project_id": "projectId",
|
|
2628
|
-
"workspace_id": "workspaceId",
|
|
2629
|
-
"version_hash": "versionHash",
|
|
2630
|
-
"code_tool": "codeTool",
|
|
2631
|
-
});
|
|
2632
|
-
});
|
|
2633
|
-
|
|
2634
|
-
/** @internal */
|
|
2635
|
-
export type ResponseBody5$Outbound = {
|
|
2636
|
-
_id: string;
|
|
2637
|
-
path: string;
|
|
2638
|
-
key: string;
|
|
2639
|
-
display_name?: string | undefined;
|
|
2640
|
-
description: string;
|
|
2641
|
-
created_by_id?: string | undefined;
|
|
2642
|
-
updated_by_id?: string | undefined;
|
|
2643
|
-
project_id: string;
|
|
2644
|
-
workspace_id: string;
|
|
2645
|
-
created: string;
|
|
2646
|
-
updated: string;
|
|
2647
|
-
status: string;
|
|
2648
|
-
version_hash?: string | undefined;
|
|
2649
|
-
type: string;
|
|
2650
|
-
code_tool: ResponseBodyCodeTool$Outbound;
|
|
2651
|
-
};
|
|
2652
|
-
|
|
2653
|
-
/** @internal */
|
|
2654
|
-
export const ResponseBody5$outboundSchema: z.ZodType<
|
|
2655
|
-
ResponseBody5$Outbound,
|
|
2656
|
-
z.ZodTypeDef,
|
|
2657
|
-
ResponseBody5
|
|
2658
|
-
> = z.object({
|
|
2659
|
-
id: z.string().default("01K8WYAS7A2PV6VP6VK3ANPG47"),
|
|
2660
|
-
path: z.string(),
|
|
2661
|
-
key: z.string(),
|
|
2662
|
-
displayName: z.string().optional(),
|
|
2663
|
-
description: z.string(),
|
|
2664
|
-
createdById: z.string().optional(),
|
|
2665
|
-
updatedById: z.string().optional(),
|
|
2666
|
-
projectId: z.string(),
|
|
2667
|
-
workspaceId: z.string(),
|
|
2668
|
-
created: z.string(),
|
|
2669
|
-
updated: z.string(),
|
|
2670
|
-
status: CreateToolResponseBodyToolsResponse200Status$outboundSchema.default(
|
|
2671
|
-
"live",
|
|
2672
|
-
),
|
|
2673
|
-
versionHash: z.string().optional(),
|
|
2674
|
-
type:
|
|
2675
|
-
CreateToolResponseBodyToolsResponse200ApplicationJSONType$outboundSchema,
|
|
2676
|
-
codeTool: z.lazy(() => ResponseBodyCodeTool$outboundSchema),
|
|
2677
|
-
}).transform((v) => {
|
|
2678
|
-
return remap$(v, {
|
|
2679
|
-
id: "_id",
|
|
2680
|
-
displayName: "display_name",
|
|
2681
|
-
createdById: "created_by_id",
|
|
2682
|
-
updatedById: "updated_by_id",
|
|
2683
|
-
projectId: "project_id",
|
|
2684
|
-
workspaceId: "workspace_id",
|
|
2685
|
-
versionHash: "version_hash",
|
|
2686
|
-
codeTool: "code_tool",
|
|
2687
|
-
});
|
|
2688
|
-
});
|
|
2689
|
-
|
|
2690
|
-
/**
|
|
2691
|
-
* @internal
|
|
2692
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2693
|
-
*/
|
|
2694
|
-
export namespace ResponseBody5$ {
|
|
2695
|
-
/** @deprecated use `ResponseBody5$inboundSchema` instead. */
|
|
2696
|
-
export const inboundSchema = ResponseBody5$inboundSchema;
|
|
2697
|
-
/** @deprecated use `ResponseBody5$outboundSchema` instead. */
|
|
2698
|
-
export const outboundSchema = ResponseBody5$outboundSchema;
|
|
2699
|
-
/** @deprecated use `ResponseBody5$Outbound` instead. */
|
|
2700
|
-
export type Outbound = ResponseBody5$Outbound;
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
|
-
export function responseBody5ToJSON(responseBody5: ResponseBody5): string {
|
|
2704
|
-
return JSON.stringify(ResponseBody5$outboundSchema.parse(responseBody5));
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
export function responseBody5FromJSON(
|
|
2708
|
-
jsonString: string,
|
|
2709
|
-
): SafeParseResult<ResponseBody5, SDKValidationError> {
|
|
2710
|
-
return safeParse(
|
|
2711
|
-
jsonString,
|
|
2712
|
-
(x) => ResponseBody5$inboundSchema.parse(JSON.parse(x)),
|
|
2713
|
-
`Failed to parse 'ResponseBody5' from JSON`,
|
|
2714
|
-
);
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
/** @internal */
|
|
2718
|
-
export const CreateToolResponseBodyToolsResponseStatus$inboundSchema:
|
|
2719
|
-
z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponseStatus> = z
|
|
2720
|
-
.nativeEnum(CreateToolResponseBodyToolsResponseStatus);
|
|
2721
|
-
|
|
2722
|
-
/** @internal */
|
|
2723
|
-
export const CreateToolResponseBodyToolsResponseStatus$outboundSchema:
|
|
2724
|
-
z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponseStatus> =
|
|
2725
|
-
CreateToolResponseBodyToolsResponseStatus$inboundSchema;
|
|
2726
|
-
|
|
2727
|
-
/**
|
|
2728
|
-
* @internal
|
|
2729
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2730
|
-
*/
|
|
2731
|
-
export namespace CreateToolResponseBodyToolsResponseStatus$ {
|
|
2732
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponseStatus$inboundSchema` instead. */
|
|
2733
|
-
export const inboundSchema =
|
|
2734
|
-
CreateToolResponseBodyToolsResponseStatus$inboundSchema;
|
|
2735
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponseStatus$outboundSchema` instead. */
|
|
2736
|
-
export const outboundSchema =
|
|
2737
|
-
CreateToolResponseBodyToolsResponseStatus$outboundSchema;
|
|
2738
|
-
}
|
|
2739
|
-
|
|
2740
|
-
/** @internal */
|
|
2741
|
-
export const CreateToolResponseBodyToolsResponse200Type$inboundSchema:
|
|
2742
|
-
z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200Type> = z
|
|
2743
|
-
.nativeEnum(CreateToolResponseBodyToolsResponse200Type);
|
|
2744
|
-
|
|
2745
|
-
/** @internal */
|
|
2746
|
-
export const CreateToolResponseBodyToolsResponse200Type$outboundSchema:
|
|
2747
|
-
z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponse200Type> =
|
|
2748
|
-
CreateToolResponseBodyToolsResponse200Type$inboundSchema;
|
|
2749
|
-
|
|
2750
|
-
/**
|
|
2751
|
-
* @internal
|
|
2752
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2753
|
-
*/
|
|
2754
|
-
export namespace CreateToolResponseBodyToolsResponse200Type$ {
|
|
2755
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponse200Type$inboundSchema` instead. */
|
|
2756
|
-
export const inboundSchema =
|
|
2757
|
-
CreateToolResponseBodyToolsResponse200Type$inboundSchema;
|
|
2758
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponse200Type$outboundSchema` instead. */
|
|
2759
|
-
export const outboundSchema =
|
|
2760
|
-
CreateToolResponseBodyToolsResponse200Type$outboundSchema;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
/** @internal */
|
|
2764
|
-
export const ResponseBodyHeaders$inboundSchema: z.ZodType<
|
|
2765
|
-
ResponseBodyHeaders,
|
|
2766
|
-
z.ZodTypeDef,
|
|
2767
|
-
unknown
|
|
2768
|
-
> = z.object({
|
|
2769
|
-
value: z.string(),
|
|
2770
|
-
encrypted: z.boolean().default(false),
|
|
2771
|
-
});
|
|
2772
|
-
|
|
2773
|
-
/** @internal */
|
|
2774
|
-
export type ResponseBodyHeaders$Outbound = {
|
|
2775
|
-
value: string;
|
|
2776
|
-
encrypted: boolean;
|
|
2777
|
-
};
|
|
2778
|
-
|
|
2779
|
-
/** @internal */
|
|
2780
|
-
export const ResponseBodyHeaders$outboundSchema: z.ZodType<
|
|
2781
|
-
ResponseBodyHeaders$Outbound,
|
|
2782
|
-
z.ZodTypeDef,
|
|
2783
|
-
ResponseBodyHeaders
|
|
2784
|
-
> = z.object({
|
|
2785
|
-
value: z.string(),
|
|
2786
|
-
encrypted: z.boolean().default(false),
|
|
2787
|
-
});
|
|
2788
|
-
|
|
2789
|
-
/**
|
|
2790
|
-
* @internal
|
|
2791
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2792
|
-
*/
|
|
2793
|
-
export namespace ResponseBodyHeaders$ {
|
|
2794
|
-
/** @deprecated use `ResponseBodyHeaders$inboundSchema` instead. */
|
|
2795
|
-
export const inboundSchema = ResponseBodyHeaders$inboundSchema;
|
|
2796
|
-
/** @deprecated use `ResponseBodyHeaders$outboundSchema` instead. */
|
|
2797
|
-
export const outboundSchema = ResponseBodyHeaders$outboundSchema;
|
|
2798
|
-
/** @deprecated use `ResponseBodyHeaders$Outbound` instead. */
|
|
2799
|
-
export type Outbound = ResponseBodyHeaders$Outbound;
|
|
2800
|
-
}
|
|
2801
|
-
|
|
2802
|
-
export function responseBodyHeadersToJSON(
|
|
2803
|
-
responseBodyHeaders: ResponseBodyHeaders,
|
|
2804
|
-
): string {
|
|
2805
|
-
return JSON.stringify(
|
|
2806
|
-
ResponseBodyHeaders$outboundSchema.parse(responseBodyHeaders),
|
|
2807
|
-
);
|
|
2808
|
-
}
|
|
2809
|
-
|
|
2810
|
-
export function responseBodyHeadersFromJSON(
|
|
2811
|
-
jsonString: string,
|
|
2812
|
-
): SafeParseResult<ResponseBodyHeaders, SDKValidationError> {
|
|
2813
|
-
return safeParse(
|
|
2814
|
-
jsonString,
|
|
2815
|
-
(x) => ResponseBodyHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
2816
|
-
`Failed to parse 'ResponseBodyHeaders' from JSON`,
|
|
2817
|
-
);
|
|
2818
|
-
}
|
|
2819
|
-
|
|
2820
|
-
/** @internal */
|
|
2821
|
-
export const CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema:
|
|
2822
|
-
z.ZodNativeEnum<
|
|
2823
|
-
typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type
|
|
2824
|
-
> = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson4Type);
|
|
2825
|
-
|
|
2826
|
-
/** @internal */
|
|
2827
|
-
export const CreateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema:
|
|
2828
|
-
z.ZodNativeEnum<
|
|
2829
|
-
typeof CreateToolResponseBodyToolsResponse200ApplicationJson4Type
|
|
2830
|
-
> = CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema;
|
|
2831
|
-
|
|
2832
|
-
/**
|
|
2833
|
-
* @internal
|
|
2834
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2835
|
-
*/
|
|
2836
|
-
export namespace CreateToolResponseBodyToolsResponse200ApplicationJson4Type$ {
|
|
2837
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema` instead. */
|
|
2838
|
-
export const inboundSchema =
|
|
2839
|
-
CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema;
|
|
2840
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema` instead. */
|
|
2841
|
-
export const outboundSchema =
|
|
2842
|
-
CreateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema;
|
|
2843
|
-
}
|
|
2844
|
-
|
|
2845
|
-
/** @internal */
|
|
2846
|
-
export const ResponseBodyInputSchema$inboundSchema: z.ZodType<
|
|
2847
|
-
ResponseBodyInputSchema,
|
|
2848
|
-
z.ZodTypeDef,
|
|
2849
|
-
unknown
|
|
2850
|
-
> = z.object({
|
|
2851
|
-
type:
|
|
2852
|
-
CreateToolResponseBodyToolsResponse200ApplicationJson4Type$inboundSchema,
|
|
2853
|
-
properties: z.record(z.any()).optional(),
|
|
2854
|
-
required: z.array(z.string()).optional(),
|
|
2855
|
-
});
|
|
2856
|
-
|
|
2857
|
-
/** @internal */
|
|
2858
|
-
export type ResponseBodyInputSchema$Outbound = {
|
|
2859
|
-
type: string;
|
|
2860
|
-
properties?: { [k: string]: any } | undefined;
|
|
2861
|
-
required?: Array<string> | undefined;
|
|
2862
|
-
};
|
|
2863
|
-
|
|
2864
|
-
/** @internal */
|
|
2865
|
-
export const ResponseBodyInputSchema$outboundSchema: z.ZodType<
|
|
2866
|
-
ResponseBodyInputSchema$Outbound,
|
|
2867
|
-
z.ZodTypeDef,
|
|
2868
|
-
ResponseBodyInputSchema
|
|
2869
|
-
> = z.object({
|
|
2870
|
-
type:
|
|
2871
|
-
CreateToolResponseBodyToolsResponse200ApplicationJson4Type$outboundSchema,
|
|
2872
|
-
properties: z.record(z.any()).optional(),
|
|
2873
|
-
required: z.array(z.string()).optional(),
|
|
2874
|
-
});
|
|
2875
|
-
|
|
2876
|
-
/**
|
|
2877
|
-
* @internal
|
|
2878
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2879
|
-
*/
|
|
2880
|
-
export namespace ResponseBodyInputSchema$ {
|
|
2881
|
-
/** @deprecated use `ResponseBodyInputSchema$inboundSchema` instead. */
|
|
2882
|
-
export const inboundSchema = ResponseBodyInputSchema$inboundSchema;
|
|
2883
|
-
/** @deprecated use `ResponseBodyInputSchema$outboundSchema` instead. */
|
|
2884
|
-
export const outboundSchema = ResponseBodyInputSchema$outboundSchema;
|
|
2885
|
-
/** @deprecated use `ResponseBodyInputSchema$Outbound` instead. */
|
|
2886
|
-
export type Outbound = ResponseBodyInputSchema$Outbound;
|
|
2887
|
-
}
|
|
2888
|
-
|
|
2889
|
-
export function responseBodyInputSchemaToJSON(
|
|
2890
|
-
responseBodyInputSchema: ResponseBodyInputSchema,
|
|
2891
|
-
): string {
|
|
2892
|
-
return JSON.stringify(
|
|
2893
|
-
ResponseBodyInputSchema$outboundSchema.parse(responseBodyInputSchema),
|
|
2894
|
-
);
|
|
2895
|
-
}
|
|
2896
|
-
|
|
2897
|
-
export function responseBodyInputSchemaFromJSON(
|
|
2898
|
-
jsonString: string,
|
|
2899
|
-
): SafeParseResult<ResponseBodyInputSchema, SDKValidationError> {
|
|
2900
|
-
return safeParse(
|
|
2901
|
-
jsonString,
|
|
2902
|
-
(x) => ResponseBodyInputSchema$inboundSchema.parse(JSON.parse(x)),
|
|
2903
|
-
`Failed to parse 'ResponseBodyInputSchema' from JSON`,
|
|
2904
|
-
);
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
|
-
/** @internal */
|
|
2908
|
-
export const ResponseBodyConnectionType$inboundSchema: z.ZodNativeEnum<
|
|
2909
|
-
typeof ResponseBodyConnectionType
|
|
2910
|
-
> = z.nativeEnum(ResponseBodyConnectionType);
|
|
2911
|
-
|
|
2912
|
-
/** @internal */
|
|
2913
|
-
export const ResponseBodyConnectionType$outboundSchema: z.ZodNativeEnum<
|
|
2914
|
-
typeof ResponseBodyConnectionType
|
|
2915
|
-
> = ResponseBodyConnectionType$inboundSchema;
|
|
2916
|
-
|
|
2917
|
-
/**
|
|
2918
|
-
* @internal
|
|
2919
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2920
|
-
*/
|
|
2921
|
-
export namespace ResponseBodyConnectionType$ {
|
|
2922
|
-
/** @deprecated use `ResponseBodyConnectionType$inboundSchema` instead. */
|
|
2923
|
-
export const inboundSchema = ResponseBodyConnectionType$inboundSchema;
|
|
2924
|
-
/** @deprecated use `ResponseBodyConnectionType$outboundSchema` instead. */
|
|
2925
|
-
export const outboundSchema = ResponseBodyConnectionType$outboundSchema;
|
|
2926
|
-
}
|
|
2927
|
-
|
|
2928
|
-
/** @internal */
|
|
2929
|
-
export const ResponseBodyMcp$inboundSchema: z.ZodType<
|
|
2930
|
-
ResponseBodyMcp,
|
|
2931
|
-
z.ZodTypeDef,
|
|
2932
|
-
unknown
|
|
2933
|
-
> = z.object({
|
|
2934
|
-
server_id: z.string(),
|
|
2935
|
-
tool_name: z.string(),
|
|
2936
|
-
server_url: z.string(),
|
|
2937
|
-
headers: z.record(z.lazy(() => ResponseBodyHeaders$inboundSchema)).optional(),
|
|
2938
|
-
input_schema: z.lazy(() => ResponseBodyInputSchema$inboundSchema),
|
|
2939
|
-
connection_type: ResponseBodyConnectionType$inboundSchema,
|
|
2940
|
-
}).transform((v) => {
|
|
2941
|
-
return remap$(v, {
|
|
2942
|
-
"server_id": "serverId",
|
|
2943
|
-
"tool_name": "toolName",
|
|
2944
|
-
"server_url": "serverUrl",
|
|
2945
|
-
"input_schema": "inputSchema",
|
|
2946
|
-
"connection_type": "connectionType",
|
|
2947
|
-
});
|
|
2948
|
-
});
|
|
2949
|
-
|
|
2950
|
-
/** @internal */
|
|
2951
|
-
export type ResponseBodyMcp$Outbound = {
|
|
2952
|
-
server_id: string;
|
|
2953
|
-
tool_name: string;
|
|
2954
|
-
server_url: string;
|
|
2955
|
-
headers?: { [k: string]: ResponseBodyHeaders$Outbound } | undefined;
|
|
2956
|
-
input_schema: ResponseBodyInputSchema$Outbound;
|
|
2957
|
-
connection_type: string;
|
|
2958
|
-
};
|
|
2959
|
-
|
|
2960
|
-
/** @internal */
|
|
2961
|
-
export const ResponseBodyMcp$outboundSchema: z.ZodType<
|
|
2962
|
-
ResponseBodyMcp$Outbound,
|
|
2963
|
-
z.ZodTypeDef,
|
|
2964
|
-
ResponseBodyMcp
|
|
2965
|
-
> = z.object({
|
|
2966
|
-
serverId: z.string(),
|
|
2967
|
-
toolName: z.string(),
|
|
2968
|
-
serverUrl: z.string(),
|
|
2969
|
-
headers: z.record(z.lazy(() => ResponseBodyHeaders$outboundSchema))
|
|
2970
|
-
.optional(),
|
|
2971
|
-
inputSchema: z.lazy(() => ResponseBodyInputSchema$outboundSchema),
|
|
2972
|
-
connectionType: ResponseBodyConnectionType$outboundSchema,
|
|
2973
|
-
}).transform((v) => {
|
|
2974
|
-
return remap$(v, {
|
|
2975
|
-
serverId: "server_id",
|
|
2976
|
-
toolName: "tool_name",
|
|
2977
|
-
serverUrl: "server_url",
|
|
2978
|
-
inputSchema: "input_schema",
|
|
2979
|
-
connectionType: "connection_type",
|
|
2980
|
-
});
|
|
2981
|
-
});
|
|
2982
|
-
|
|
2983
|
-
/**
|
|
2984
|
-
* @internal
|
|
2985
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2986
|
-
*/
|
|
2987
|
-
export namespace ResponseBodyMcp$ {
|
|
2988
|
-
/** @deprecated use `ResponseBodyMcp$inboundSchema` instead. */
|
|
2989
|
-
export const inboundSchema = ResponseBodyMcp$inboundSchema;
|
|
2990
|
-
/** @deprecated use `ResponseBodyMcp$outboundSchema` instead. */
|
|
2991
|
-
export const outboundSchema = ResponseBodyMcp$outboundSchema;
|
|
2992
|
-
/** @deprecated use `ResponseBodyMcp$Outbound` instead. */
|
|
2993
|
-
export type Outbound = ResponseBodyMcp$Outbound;
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2996
|
-
export function responseBodyMcpToJSON(
|
|
2997
|
-
responseBodyMcp: ResponseBodyMcp,
|
|
2998
|
-
): string {
|
|
2999
|
-
return JSON.stringify(ResponseBodyMcp$outboundSchema.parse(responseBodyMcp));
|
|
3000
|
-
}
|
|
3001
|
-
|
|
3002
|
-
export function responseBodyMcpFromJSON(
|
|
3003
|
-
jsonString: string,
|
|
3004
|
-
): SafeParseResult<ResponseBodyMcp, SDKValidationError> {
|
|
3005
|
-
return safeParse(
|
|
3006
|
-
jsonString,
|
|
3007
|
-
(x) => ResponseBodyMcp$inboundSchema.parse(JSON.parse(x)),
|
|
3008
|
-
`Failed to parse 'ResponseBodyMcp' from JSON`,
|
|
3009
|
-
);
|
|
3010
|
-
}
|
|
3011
|
-
|
|
3012
|
-
/** @internal */
|
|
3013
|
-
export const ResponseBody4$inboundSchema: z.ZodType<
|
|
3014
|
-
ResponseBody4,
|
|
3015
|
-
z.ZodTypeDef,
|
|
3016
|
-
unknown
|
|
3017
|
-
> = z.object({
|
|
3018
|
-
_id: z.string().default("01K8WYAS794WCZC6FJYQAP4DZT"),
|
|
3019
|
-
path: z.string(),
|
|
3020
|
-
key: z.string(),
|
|
3021
|
-
display_name: z.string().optional(),
|
|
3022
|
-
description: z.string(),
|
|
3023
|
-
created_by_id: z.string().optional(),
|
|
3024
|
-
updated_by_id: z.string().optional(),
|
|
3025
|
-
project_id: z.string(),
|
|
3026
|
-
workspace_id: z.string(),
|
|
3027
|
-
created: z.string(),
|
|
3028
|
-
updated: z.string(),
|
|
3029
|
-
status: CreateToolResponseBodyToolsResponseStatus$inboundSchema.default(
|
|
3030
|
-
"live",
|
|
3031
|
-
),
|
|
3032
|
-
version_hash: z.string().optional(),
|
|
3033
|
-
type: CreateToolResponseBodyToolsResponse200Type$inboundSchema,
|
|
3034
|
-
mcp: z.lazy(() => ResponseBodyMcp$inboundSchema),
|
|
3035
|
-
}).transform((v) => {
|
|
3036
|
-
return remap$(v, {
|
|
3037
|
-
"_id": "id",
|
|
3038
|
-
"display_name": "displayName",
|
|
3039
|
-
"created_by_id": "createdById",
|
|
3040
|
-
"updated_by_id": "updatedById",
|
|
3041
|
-
"project_id": "projectId",
|
|
3042
|
-
"workspace_id": "workspaceId",
|
|
3043
|
-
"version_hash": "versionHash",
|
|
3044
|
-
});
|
|
3045
|
-
});
|
|
3046
|
-
|
|
3047
|
-
/** @internal */
|
|
3048
|
-
export type ResponseBody4$Outbound = {
|
|
3049
|
-
_id: string;
|
|
3050
|
-
path: string;
|
|
3051
|
-
key: string;
|
|
3052
|
-
display_name?: string | undefined;
|
|
3053
|
-
description: string;
|
|
3054
|
-
created_by_id?: string | undefined;
|
|
3055
|
-
updated_by_id?: string | undefined;
|
|
3056
|
-
project_id: string;
|
|
3057
|
-
workspace_id: string;
|
|
3058
|
-
created: string;
|
|
3059
|
-
updated: string;
|
|
3060
|
-
status: string;
|
|
3061
|
-
version_hash?: string | undefined;
|
|
3062
|
-
type: string;
|
|
3063
|
-
mcp: ResponseBodyMcp$Outbound;
|
|
3064
|
-
};
|
|
3065
|
-
|
|
3066
|
-
/** @internal */
|
|
3067
|
-
export const ResponseBody4$outboundSchema: z.ZodType<
|
|
3068
|
-
ResponseBody4$Outbound,
|
|
3069
|
-
z.ZodTypeDef,
|
|
3070
|
-
ResponseBody4
|
|
3071
|
-
> = z.object({
|
|
3072
|
-
id: z.string().default("01K8WYAS794WCZC6FJYQAP4DZT"),
|
|
3073
|
-
path: z.string(),
|
|
3074
|
-
key: z.string(),
|
|
3075
|
-
displayName: z.string().optional(),
|
|
3076
|
-
description: z.string(),
|
|
3077
|
-
createdById: z.string().optional(),
|
|
3078
|
-
updatedById: z.string().optional(),
|
|
3079
|
-
projectId: z.string(),
|
|
3080
|
-
workspaceId: z.string(),
|
|
3081
|
-
created: z.string(),
|
|
3082
|
-
updated: z.string(),
|
|
3083
|
-
status: CreateToolResponseBodyToolsResponseStatus$outboundSchema.default(
|
|
3084
|
-
"live",
|
|
3085
|
-
),
|
|
3086
|
-
versionHash: z.string().optional(),
|
|
3087
|
-
type: CreateToolResponseBodyToolsResponse200Type$outboundSchema,
|
|
3088
|
-
mcp: z.lazy(() => ResponseBodyMcp$outboundSchema),
|
|
3089
|
-
}).transform((v) => {
|
|
3090
|
-
return remap$(v, {
|
|
3091
|
-
id: "_id",
|
|
3092
|
-
displayName: "display_name",
|
|
3093
|
-
createdById: "created_by_id",
|
|
3094
|
-
updatedById: "updated_by_id",
|
|
3095
|
-
projectId: "project_id",
|
|
3096
|
-
workspaceId: "workspace_id",
|
|
3097
|
-
versionHash: "version_hash",
|
|
3098
|
-
});
|
|
3099
|
-
});
|
|
3100
|
-
|
|
3101
|
-
/**
|
|
3102
|
-
* @internal
|
|
3103
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3104
|
-
*/
|
|
3105
|
-
export namespace ResponseBody4$ {
|
|
3106
|
-
/** @deprecated use `ResponseBody4$inboundSchema` instead. */
|
|
3107
|
-
export const inboundSchema = ResponseBody4$inboundSchema;
|
|
3108
|
-
/** @deprecated use `ResponseBody4$outboundSchema` instead. */
|
|
3109
|
-
export const outboundSchema = ResponseBody4$outboundSchema;
|
|
3110
|
-
/** @deprecated use `ResponseBody4$Outbound` instead. */
|
|
3111
|
-
export type Outbound = ResponseBody4$Outbound;
|
|
3112
|
-
}
|
|
3113
|
-
|
|
3114
|
-
export function responseBody4ToJSON(responseBody4: ResponseBody4): string {
|
|
3115
|
-
return JSON.stringify(ResponseBody4$outboundSchema.parse(responseBody4));
|
|
3116
|
-
}
|
|
3117
|
-
|
|
3118
|
-
export function responseBody4FromJSON(
|
|
3119
|
-
jsonString: string,
|
|
3120
|
-
): SafeParseResult<ResponseBody4, SDKValidationError> {
|
|
3121
|
-
return safeParse(
|
|
3122
|
-
jsonString,
|
|
3123
|
-
(x) => ResponseBody4$inboundSchema.parse(JSON.parse(x)),
|
|
3124
|
-
`Failed to parse 'ResponseBody4' from JSON`,
|
|
3125
|
-
);
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
|
-
/** @internal */
|
|
3129
|
-
export const CreateToolResponseBodyToolsStatus$inboundSchema: z.ZodNativeEnum<
|
|
3130
|
-
typeof CreateToolResponseBodyToolsStatus
|
|
3131
|
-
> = z.nativeEnum(CreateToolResponseBodyToolsStatus);
|
|
3132
|
-
|
|
3133
|
-
/** @internal */
|
|
3134
|
-
export const CreateToolResponseBodyToolsStatus$outboundSchema: z.ZodNativeEnum<
|
|
3135
|
-
typeof CreateToolResponseBodyToolsStatus
|
|
3136
|
-
> = CreateToolResponseBodyToolsStatus$inboundSchema;
|
|
3137
|
-
|
|
3138
|
-
/**
|
|
3139
|
-
* @internal
|
|
3140
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3141
|
-
*/
|
|
3142
|
-
export namespace CreateToolResponseBodyToolsStatus$ {
|
|
3143
|
-
/** @deprecated use `CreateToolResponseBodyToolsStatus$inboundSchema` instead. */
|
|
3144
|
-
export const inboundSchema = CreateToolResponseBodyToolsStatus$inboundSchema;
|
|
3145
|
-
/** @deprecated use `CreateToolResponseBodyToolsStatus$outboundSchema` instead. */
|
|
3146
|
-
export const outboundSchema =
|
|
3147
|
-
CreateToolResponseBodyToolsStatus$outboundSchema;
|
|
3148
|
-
}
|
|
3149
|
-
|
|
3150
|
-
/** @internal */
|
|
3151
|
-
export const CreateToolResponseBodyToolsResponseType$inboundSchema:
|
|
3152
|
-
z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponseType> = z
|
|
3153
|
-
.nativeEnum(CreateToolResponseBodyToolsResponseType);
|
|
3154
|
-
|
|
3155
|
-
/** @internal */
|
|
3156
|
-
export const CreateToolResponseBodyToolsResponseType$outboundSchema:
|
|
3157
|
-
z.ZodNativeEnum<typeof CreateToolResponseBodyToolsResponseType> =
|
|
3158
|
-
CreateToolResponseBodyToolsResponseType$inboundSchema;
|
|
3159
|
-
|
|
3160
|
-
/**
|
|
3161
|
-
* @internal
|
|
3162
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3163
|
-
*/
|
|
3164
|
-
export namespace CreateToolResponseBodyToolsResponseType$ {
|
|
3165
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponseType$inboundSchema` instead. */
|
|
3166
|
-
export const inboundSchema =
|
|
3167
|
-
CreateToolResponseBodyToolsResponseType$inboundSchema;
|
|
3168
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponseType$outboundSchema` instead. */
|
|
3169
|
-
export const outboundSchema =
|
|
3170
|
-
CreateToolResponseBodyToolsResponseType$outboundSchema;
|
|
3171
|
-
}
|
|
3172
|
-
|
|
3173
|
-
/** @internal */
|
|
3174
|
-
export const CreateToolResponseBodyMethod$inboundSchema: z.ZodNativeEnum<
|
|
3175
|
-
typeof CreateToolResponseBodyMethod
|
|
3176
|
-
> = z.nativeEnum(CreateToolResponseBodyMethod);
|
|
3177
|
-
|
|
3178
|
-
/** @internal */
|
|
3179
|
-
export const CreateToolResponseBodyMethod$outboundSchema: z.ZodNativeEnum<
|
|
3180
|
-
typeof CreateToolResponseBodyMethod
|
|
3181
|
-
> = CreateToolResponseBodyMethod$inboundSchema;
|
|
3182
|
-
|
|
3183
|
-
/**
|
|
3184
|
-
* @internal
|
|
3185
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3186
|
-
*/
|
|
3187
|
-
export namespace CreateToolResponseBodyMethod$ {
|
|
3188
|
-
/** @deprecated use `CreateToolResponseBodyMethod$inboundSchema` instead. */
|
|
3189
|
-
export const inboundSchema = CreateToolResponseBodyMethod$inboundSchema;
|
|
3190
|
-
/** @deprecated use `CreateToolResponseBodyMethod$outboundSchema` instead. */
|
|
3191
|
-
export const outboundSchema = CreateToolResponseBodyMethod$outboundSchema;
|
|
3192
|
-
}
|
|
3193
|
-
|
|
3194
|
-
/** @internal */
|
|
3195
|
-
export const ResponseBodyBlueprint$inboundSchema: z.ZodType<
|
|
3196
|
-
ResponseBodyBlueprint,
|
|
3197
|
-
z.ZodTypeDef,
|
|
3198
|
-
unknown
|
|
3199
|
-
> = z.object({
|
|
3200
|
-
url: z.string(),
|
|
3201
|
-
method: CreateToolResponseBodyMethod$inboundSchema,
|
|
3202
|
-
headers: z.record(z.string()).optional(),
|
|
3203
|
-
body: z.record(z.any()).optional(),
|
|
3204
|
-
});
|
|
3205
|
-
|
|
3206
|
-
/** @internal */
|
|
3207
|
-
export type ResponseBodyBlueprint$Outbound = {
|
|
3208
|
-
url: string;
|
|
3209
|
-
method: string;
|
|
3210
|
-
headers?: { [k: string]: string } | undefined;
|
|
3211
|
-
body?: { [k: string]: any } | undefined;
|
|
3212
|
-
};
|
|
3213
|
-
|
|
3214
|
-
/** @internal */
|
|
3215
|
-
export const ResponseBodyBlueprint$outboundSchema: z.ZodType<
|
|
3216
|
-
ResponseBodyBlueprint$Outbound,
|
|
3217
|
-
z.ZodTypeDef,
|
|
3218
|
-
ResponseBodyBlueprint
|
|
3219
|
-
> = z.object({
|
|
3220
|
-
url: z.string(),
|
|
3221
|
-
method: CreateToolResponseBodyMethod$outboundSchema,
|
|
3222
|
-
headers: z.record(z.string()).optional(),
|
|
3223
|
-
body: z.record(z.any()).optional(),
|
|
3224
|
-
});
|
|
3225
|
-
|
|
3226
|
-
/**
|
|
3227
|
-
* @internal
|
|
3228
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3229
|
-
*/
|
|
3230
|
-
export namespace ResponseBodyBlueprint$ {
|
|
3231
|
-
/** @deprecated use `ResponseBodyBlueprint$inboundSchema` instead. */
|
|
3232
|
-
export const inboundSchema = ResponseBodyBlueprint$inboundSchema;
|
|
3233
|
-
/** @deprecated use `ResponseBodyBlueprint$outboundSchema` instead. */
|
|
3234
|
-
export const outboundSchema = ResponseBodyBlueprint$outboundSchema;
|
|
3235
|
-
/** @deprecated use `ResponseBodyBlueprint$Outbound` instead. */
|
|
3236
|
-
export type Outbound = ResponseBodyBlueprint$Outbound;
|
|
3237
|
-
}
|
|
3238
|
-
|
|
3239
|
-
export function responseBodyBlueprintToJSON(
|
|
3240
|
-
responseBodyBlueprint: ResponseBodyBlueprint,
|
|
3241
|
-
): string {
|
|
3242
|
-
return JSON.stringify(
|
|
3243
|
-
ResponseBodyBlueprint$outboundSchema.parse(responseBodyBlueprint),
|
|
3244
|
-
);
|
|
3245
|
-
}
|
|
3246
|
-
|
|
3247
|
-
export function responseBodyBlueprintFromJSON(
|
|
3248
|
-
jsonString: string,
|
|
3249
|
-
): SafeParseResult<ResponseBodyBlueprint, SDKValidationError> {
|
|
3250
|
-
return safeParse(
|
|
3251
|
-
jsonString,
|
|
3252
|
-
(x) => ResponseBodyBlueprint$inboundSchema.parse(JSON.parse(x)),
|
|
3253
|
-
`Failed to parse 'ResponseBodyBlueprint' from JSON`,
|
|
3254
|
-
);
|
|
3255
|
-
}
|
|
3256
|
-
|
|
3257
|
-
/** @internal */
|
|
3258
|
-
export const CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema:
|
|
3259
|
-
z.ZodNativeEnum<
|
|
3260
|
-
typeof CreateToolResponseBodyToolsResponse200ApplicationJson3Type
|
|
3261
|
-
> = z.nativeEnum(CreateToolResponseBodyToolsResponse200ApplicationJson3Type);
|
|
3262
|
-
|
|
3263
|
-
/** @internal */
|
|
3264
|
-
export const CreateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema:
|
|
3265
|
-
z.ZodNativeEnum<
|
|
3266
|
-
typeof CreateToolResponseBodyToolsResponse200ApplicationJson3Type
|
|
3267
|
-
> = CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema;
|
|
3268
|
-
|
|
3269
|
-
/**
|
|
3270
|
-
* @internal
|
|
3271
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3272
|
-
*/
|
|
3273
|
-
export namespace CreateToolResponseBodyToolsResponse200ApplicationJson3Type$ {
|
|
3274
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema` instead. */
|
|
3275
|
-
export const inboundSchema =
|
|
3276
|
-
CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema;
|
|
3277
|
-
/** @deprecated use `CreateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema` instead. */
|
|
3278
|
-
export const outboundSchema =
|
|
3279
|
-
CreateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema;
|
|
3280
|
-
}
|
|
3281
|
-
|
|
3282
|
-
/** @internal */
|
|
3283
|
-
export const ResponseBodyDefaultValue$inboundSchema: z.ZodType<
|
|
3284
|
-
ResponseBodyDefaultValue,
|
|
3285
|
-
z.ZodTypeDef,
|
|
3286
|
-
unknown
|
|
3287
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3288
|
-
|
|
3289
|
-
/** @internal */
|
|
3290
|
-
export type ResponseBodyDefaultValue$Outbound = string | number | boolean;
|
|
3291
|
-
|
|
3292
|
-
/** @internal */
|
|
3293
|
-
export const ResponseBodyDefaultValue$outboundSchema: z.ZodType<
|
|
3294
|
-
ResponseBodyDefaultValue$Outbound,
|
|
3295
|
-
z.ZodTypeDef,
|
|
3296
|
-
ResponseBodyDefaultValue
|
|
3297
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3298
|
-
|
|
3299
|
-
/**
|
|
3300
|
-
* @internal
|
|
3301
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3302
|
-
*/
|
|
3303
|
-
export namespace ResponseBodyDefaultValue$ {
|
|
3304
|
-
/** @deprecated use `ResponseBodyDefaultValue$inboundSchema` instead. */
|
|
3305
|
-
export const inboundSchema = ResponseBodyDefaultValue$inboundSchema;
|
|
3306
|
-
/** @deprecated use `ResponseBodyDefaultValue$outboundSchema` instead. */
|
|
3307
|
-
export const outboundSchema = ResponseBodyDefaultValue$outboundSchema;
|
|
3308
|
-
/** @deprecated use `ResponseBodyDefaultValue$Outbound` instead. */
|
|
3309
|
-
export type Outbound = ResponseBodyDefaultValue$Outbound;
|
|
3310
|
-
}
|
|
3311
|
-
|
|
3312
|
-
export function responseBodyDefaultValueToJSON(
|
|
3313
|
-
responseBodyDefaultValue: ResponseBodyDefaultValue,
|
|
3314
|
-
): string {
|
|
3315
|
-
return JSON.stringify(
|
|
3316
|
-
ResponseBodyDefaultValue$outboundSchema.parse(responseBodyDefaultValue),
|
|
3317
|
-
);
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
|
-
export function responseBodyDefaultValueFromJSON(
|
|
3321
|
-
jsonString: string,
|
|
3322
|
-
): SafeParseResult<ResponseBodyDefaultValue, SDKValidationError> {
|
|
3323
|
-
return safeParse(
|
|
3324
|
-
jsonString,
|
|
3325
|
-
(x) => ResponseBodyDefaultValue$inboundSchema.parse(JSON.parse(x)),
|
|
3326
|
-
`Failed to parse 'ResponseBodyDefaultValue' from JSON`,
|
|
3327
|
-
);
|
|
3328
|
-
}
|
|
3329
|
-
|
|
3330
|
-
/** @internal */
|
|
3331
|
-
export const ResponseBodyArguments$inboundSchema: z.ZodType<
|
|
3332
|
-
ResponseBodyArguments,
|
|
3333
|
-
z.ZodTypeDef,
|
|
3334
|
-
unknown
|
|
3335
|
-
> = z.object({
|
|
3336
|
-
type:
|
|
3337
|
-
CreateToolResponseBodyToolsResponse200ApplicationJson3Type$inboundSchema,
|
|
3338
|
-
description: z.string(),
|
|
3339
|
-
send_to_model: z.boolean().default(true),
|
|
3340
|
-
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
3341
|
-
}).transform((v) => {
|
|
3342
|
-
return remap$(v, {
|
|
3343
|
-
"send_to_model": "sendToModel",
|
|
3344
|
-
"default_value": "defaultValue",
|
|
3345
|
-
});
|
|
3346
|
-
});
|
|
3347
|
-
|
|
3348
|
-
/** @internal */
|
|
3349
|
-
export type ResponseBodyArguments$Outbound = {
|
|
3350
|
-
type: string;
|
|
3351
|
-
description: string;
|
|
3352
|
-
send_to_model: boolean;
|
|
3353
|
-
default_value?: string | number | boolean | undefined;
|
|
3354
|
-
};
|
|
3355
|
-
|
|
3356
|
-
/** @internal */
|
|
3357
|
-
export const ResponseBodyArguments$outboundSchema: z.ZodType<
|
|
3358
|
-
ResponseBodyArguments$Outbound,
|
|
3359
|
-
z.ZodTypeDef,
|
|
3360
|
-
ResponseBodyArguments
|
|
3361
|
-
> = z.object({
|
|
3362
|
-
type:
|
|
3363
|
-
CreateToolResponseBodyToolsResponse200ApplicationJson3Type$outboundSchema,
|
|
3364
|
-
description: z.string(),
|
|
3365
|
-
sendToModel: z.boolean().default(true),
|
|
3366
|
-
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
3367
|
-
}).transform((v) => {
|
|
3368
|
-
return remap$(v, {
|
|
3369
|
-
sendToModel: "send_to_model",
|
|
3370
|
-
defaultValue: "default_value",
|
|
3371
|
-
});
|
|
3372
|
-
});
|
|
3373
|
-
|
|
3374
|
-
/**
|
|
3375
|
-
* @internal
|
|
3376
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3377
|
-
*/
|
|
3378
|
-
export namespace ResponseBodyArguments$ {
|
|
3379
|
-
/** @deprecated use `ResponseBodyArguments$inboundSchema` instead. */
|
|
3380
|
-
export const inboundSchema = ResponseBodyArguments$inboundSchema;
|
|
3381
|
-
/** @deprecated use `ResponseBodyArguments$outboundSchema` instead. */
|
|
3382
|
-
export const outboundSchema = ResponseBodyArguments$outboundSchema;
|
|
3383
|
-
/** @deprecated use `ResponseBodyArguments$Outbound` instead. */
|
|
3384
|
-
export type Outbound = ResponseBodyArguments$Outbound;
|
|
3385
|
-
}
|
|
3386
|
-
|
|
3387
|
-
export function responseBodyArgumentsToJSON(
|
|
3388
|
-
responseBodyArguments: ResponseBodyArguments,
|
|
3389
|
-
): string {
|
|
3390
|
-
return JSON.stringify(
|
|
3391
|
-
ResponseBodyArguments$outboundSchema.parse(responseBodyArguments),
|
|
3392
|
-
);
|
|
3393
|
-
}
|
|
3394
|
-
|
|
3395
|
-
export function responseBodyArgumentsFromJSON(
|
|
3396
|
-
jsonString: string,
|
|
3397
|
-
): SafeParseResult<ResponseBodyArguments, SDKValidationError> {
|
|
3398
|
-
return safeParse(
|
|
3399
|
-
jsonString,
|
|
3400
|
-
(x) => ResponseBodyArguments$inboundSchema.parse(JSON.parse(x)),
|
|
3401
|
-
`Failed to parse 'ResponseBodyArguments' from JSON`,
|
|
3402
|
-
);
|
|
3403
|
-
}
|
|
3404
|
-
|
|
3405
|
-
/** @internal */
|
|
3406
|
-
export const CreateToolResponseBodyHttp$inboundSchema: z.ZodType<
|
|
3407
|
-
CreateToolResponseBodyHttp,
|
|
3408
|
-
z.ZodTypeDef,
|
|
3409
|
-
unknown
|
|
3410
|
-
> = z.object({
|
|
3411
|
-
blueprint: z.lazy(() => ResponseBodyBlueprint$inboundSchema),
|
|
3412
|
-
arguments: z.record(z.lazy(() => ResponseBodyArguments$inboundSchema))
|
|
3413
|
-
.optional(),
|
|
3414
|
-
});
|
|
3415
|
-
|
|
3416
|
-
/** @internal */
|
|
3417
|
-
export type CreateToolResponseBodyHttp$Outbound = {
|
|
3418
|
-
blueprint: ResponseBodyBlueprint$Outbound;
|
|
3419
|
-
arguments?: { [k: string]: ResponseBodyArguments$Outbound } | undefined;
|
|
3420
|
-
};
|
|
3421
|
-
|
|
3422
|
-
/** @internal */
|
|
3423
|
-
export const CreateToolResponseBodyHttp$outboundSchema: z.ZodType<
|
|
3424
|
-
CreateToolResponseBodyHttp$Outbound,
|
|
3425
|
-
z.ZodTypeDef,
|
|
3426
|
-
CreateToolResponseBodyHttp
|
|
3427
|
-
> = z.object({
|
|
3428
|
-
blueprint: z.lazy(() => ResponseBodyBlueprint$outboundSchema),
|
|
3429
|
-
arguments: z.record(z.lazy(() => ResponseBodyArguments$outboundSchema))
|
|
3430
|
-
.optional(),
|
|
3431
|
-
});
|
|
3432
|
-
|
|
3433
|
-
/**
|
|
3434
|
-
* @internal
|
|
3435
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3436
|
-
*/
|
|
3437
|
-
export namespace CreateToolResponseBodyHttp$ {
|
|
3438
|
-
/** @deprecated use `CreateToolResponseBodyHttp$inboundSchema` instead. */
|
|
3439
|
-
export const inboundSchema = CreateToolResponseBodyHttp$inboundSchema;
|
|
3440
|
-
/** @deprecated use `CreateToolResponseBodyHttp$outboundSchema` instead. */
|
|
3441
|
-
export const outboundSchema = CreateToolResponseBodyHttp$outboundSchema;
|
|
3442
|
-
/** @deprecated use `CreateToolResponseBodyHttp$Outbound` instead. */
|
|
3443
|
-
export type Outbound = CreateToolResponseBodyHttp$Outbound;
|
|
3444
|
-
}
|
|
3445
|
-
|
|
3446
|
-
export function createToolResponseBodyHttpToJSON(
|
|
3447
|
-
createToolResponseBodyHttp: CreateToolResponseBodyHttp,
|
|
3448
|
-
): string {
|
|
3449
|
-
return JSON.stringify(
|
|
3450
|
-
CreateToolResponseBodyHttp$outboundSchema.parse(createToolResponseBodyHttp),
|
|
3451
|
-
);
|
|
3452
|
-
}
|
|
3453
|
-
|
|
3454
|
-
export function createToolResponseBodyHttpFromJSON(
|
|
3455
|
-
jsonString: string,
|
|
3456
|
-
): SafeParseResult<CreateToolResponseBodyHttp, SDKValidationError> {
|
|
3457
|
-
return safeParse(
|
|
3458
|
-
jsonString,
|
|
3459
|
-
(x) => CreateToolResponseBodyHttp$inboundSchema.parse(JSON.parse(x)),
|
|
3460
|
-
`Failed to parse 'CreateToolResponseBodyHttp' from JSON`,
|
|
3461
|
-
);
|
|
3462
|
-
}
|
|
3463
|
-
|
|
3464
|
-
/** @internal */
|
|
3465
|
-
export const ResponseBody3$inboundSchema: z.ZodType<
|
|
3466
|
-
ResponseBody3,
|
|
3467
|
-
z.ZodTypeDef,
|
|
3468
|
-
unknown
|
|
3469
|
-
> = z.object({
|
|
3470
|
-
_id: z.string().default("01K8WYAS77XKSH8BYYPANAJZP1"),
|
|
3471
|
-
path: z.string(),
|
|
3472
|
-
key: z.string(),
|
|
3473
|
-
display_name: z.string().optional(),
|
|
3474
|
-
description: z.string(),
|
|
3475
|
-
created_by_id: z.string().optional(),
|
|
3476
|
-
updated_by_id: z.string().optional(),
|
|
3477
|
-
project_id: z.string(),
|
|
3478
|
-
workspace_id: z.string(),
|
|
3479
|
-
created: z.string(),
|
|
3480
|
-
updated: z.string(),
|
|
3481
|
-
status: CreateToolResponseBodyToolsStatus$inboundSchema.default("live"),
|
|
3482
|
-
version_hash: z.string().optional(),
|
|
3483
|
-
type: CreateToolResponseBodyToolsResponseType$inboundSchema,
|
|
3484
|
-
http: z.lazy(() => CreateToolResponseBodyHttp$inboundSchema),
|
|
3485
|
-
}).transform((v) => {
|
|
3486
|
-
return remap$(v, {
|
|
3487
|
-
"_id": "id",
|
|
3488
|
-
"display_name": "displayName",
|
|
3489
|
-
"created_by_id": "createdById",
|
|
3490
|
-
"updated_by_id": "updatedById",
|
|
3491
|
-
"project_id": "projectId",
|
|
3492
|
-
"workspace_id": "workspaceId",
|
|
3493
|
-
"version_hash": "versionHash",
|
|
3494
|
-
});
|
|
3495
|
-
});
|
|
3496
|
-
|
|
3497
|
-
/** @internal */
|
|
3498
|
-
export type ResponseBody3$Outbound = {
|
|
3499
|
-
_id: string;
|
|
3500
|
-
path: string;
|
|
3501
|
-
key: string;
|
|
3502
|
-
display_name?: string | undefined;
|
|
3503
|
-
description: string;
|
|
3504
|
-
created_by_id?: string | undefined;
|
|
3505
|
-
updated_by_id?: string | undefined;
|
|
3506
|
-
project_id: string;
|
|
3507
|
-
workspace_id: string;
|
|
3508
|
-
created: string;
|
|
3509
|
-
updated: string;
|
|
3510
|
-
status: string;
|
|
3511
|
-
version_hash?: string | undefined;
|
|
3512
|
-
type: string;
|
|
3513
|
-
http: CreateToolResponseBodyHttp$Outbound;
|
|
3514
|
-
};
|
|
3515
|
-
|
|
3516
|
-
/** @internal */
|
|
3517
|
-
export const ResponseBody3$outboundSchema: z.ZodType<
|
|
3518
|
-
ResponseBody3$Outbound,
|
|
3519
|
-
z.ZodTypeDef,
|
|
3520
|
-
ResponseBody3
|
|
3521
|
-
> = z.object({
|
|
3522
|
-
id: z.string().default("01K8WYAS77XKSH8BYYPANAJZP1"),
|
|
3523
|
-
path: z.string(),
|
|
3524
|
-
key: z.string(),
|
|
3525
|
-
displayName: z.string().optional(),
|
|
3526
|
-
description: z.string(),
|
|
3527
|
-
createdById: z.string().optional(),
|
|
3528
|
-
updatedById: z.string().optional(),
|
|
3529
|
-
projectId: z.string(),
|
|
3530
|
-
workspaceId: z.string(),
|
|
3531
|
-
created: z.string(),
|
|
3532
|
-
updated: z.string(),
|
|
3533
|
-
status: CreateToolResponseBodyToolsStatus$outboundSchema.default("live"),
|
|
3534
|
-
versionHash: z.string().optional(),
|
|
3535
|
-
type: CreateToolResponseBodyToolsResponseType$outboundSchema,
|
|
3536
|
-
http: z.lazy(() => CreateToolResponseBodyHttp$outboundSchema),
|
|
3537
|
-
}).transform((v) => {
|
|
3538
|
-
return remap$(v, {
|
|
3539
|
-
id: "_id",
|
|
3540
|
-
displayName: "display_name",
|
|
3541
|
-
createdById: "created_by_id",
|
|
3542
|
-
updatedById: "updated_by_id",
|
|
3543
|
-
projectId: "project_id",
|
|
3544
|
-
workspaceId: "workspace_id",
|
|
3545
|
-
versionHash: "version_hash",
|
|
3546
|
-
});
|
|
3547
|
-
});
|
|
3548
|
-
|
|
3549
|
-
/**
|
|
3550
|
-
* @internal
|
|
3551
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3552
|
-
*/
|
|
3553
|
-
export namespace ResponseBody3$ {
|
|
3554
|
-
/** @deprecated use `ResponseBody3$inboundSchema` instead. */
|
|
3555
|
-
export const inboundSchema = ResponseBody3$inboundSchema;
|
|
3556
|
-
/** @deprecated use `ResponseBody3$outboundSchema` instead. */
|
|
3557
|
-
export const outboundSchema = ResponseBody3$outboundSchema;
|
|
3558
|
-
/** @deprecated use `ResponseBody3$Outbound` instead. */
|
|
3559
|
-
export type Outbound = ResponseBody3$Outbound;
|
|
3560
|
-
}
|
|
3561
|
-
|
|
3562
|
-
export function responseBody3ToJSON(responseBody3: ResponseBody3): string {
|
|
3563
|
-
return JSON.stringify(ResponseBody3$outboundSchema.parse(responseBody3));
|
|
3564
|
-
}
|
|
3565
|
-
|
|
3566
|
-
export function responseBody3FromJSON(
|
|
3567
|
-
jsonString: string,
|
|
3568
|
-
): SafeParseResult<ResponseBody3, SDKValidationError> {
|
|
3569
|
-
return safeParse(
|
|
3570
|
-
jsonString,
|
|
3571
|
-
(x) => ResponseBody3$inboundSchema.parse(JSON.parse(x)),
|
|
3572
|
-
`Failed to parse 'ResponseBody3' from JSON`,
|
|
3573
|
-
);
|
|
3574
|
-
}
|
|
3575
|
-
|
|
3576
|
-
/** @internal */
|
|
3577
|
-
export const CreateToolResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
3578
|
-
typeof CreateToolResponseBodyStatus
|
|
3579
|
-
> = z.nativeEnum(CreateToolResponseBodyStatus);
|
|
3580
|
-
|
|
3581
|
-
/** @internal */
|
|
3582
|
-
export const CreateToolResponseBodyStatus$outboundSchema: z.ZodNativeEnum<
|
|
3583
|
-
typeof CreateToolResponseBodyStatus
|
|
3584
|
-
> = CreateToolResponseBodyStatus$inboundSchema;
|
|
3585
|
-
|
|
3586
|
-
/**
|
|
3587
|
-
* @internal
|
|
3588
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3589
|
-
*/
|
|
3590
|
-
export namespace CreateToolResponseBodyStatus$ {
|
|
3591
|
-
/** @deprecated use `CreateToolResponseBodyStatus$inboundSchema` instead. */
|
|
3592
|
-
export const inboundSchema = CreateToolResponseBodyStatus$inboundSchema;
|
|
3593
|
-
/** @deprecated use `CreateToolResponseBodyStatus$outboundSchema` instead. */
|
|
3594
|
-
export const outboundSchema = CreateToolResponseBodyStatus$outboundSchema;
|
|
3595
|
-
}
|
|
3596
|
-
|
|
3597
|
-
/** @internal */
|
|
3598
|
-
export const CreateToolResponseBodyToolsType$inboundSchema: z.ZodNativeEnum<
|
|
3599
|
-
typeof CreateToolResponseBodyToolsType
|
|
3600
|
-
> = z.nativeEnum(CreateToolResponseBodyToolsType);
|
|
3601
|
-
|
|
3602
|
-
/** @internal */
|
|
3603
|
-
export const CreateToolResponseBodyToolsType$outboundSchema: z.ZodNativeEnum<
|
|
3604
|
-
typeof CreateToolResponseBodyToolsType
|
|
3605
|
-
> = CreateToolResponseBodyToolsType$inboundSchema;
|
|
3606
|
-
|
|
3607
|
-
/**
|
|
3608
|
-
* @internal
|
|
3609
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3610
|
-
*/
|
|
3611
|
-
export namespace CreateToolResponseBodyToolsType$ {
|
|
3612
|
-
/** @deprecated use `CreateToolResponseBodyToolsType$inboundSchema` instead. */
|
|
3613
|
-
export const inboundSchema = CreateToolResponseBodyToolsType$inboundSchema;
|
|
3614
|
-
/** @deprecated use `CreateToolResponseBodyToolsType$outboundSchema` instead. */
|
|
3615
|
-
export const outboundSchema = CreateToolResponseBodyToolsType$outboundSchema;
|
|
3616
|
-
}
|
|
3617
|
-
|
|
3618
|
-
/** @internal */
|
|
3619
|
-
export const ResponseBodyJsonSchema$inboundSchema: z.ZodType<
|
|
3620
|
-
ResponseBodyJsonSchema,
|
|
3621
|
-
z.ZodTypeDef,
|
|
3622
|
-
unknown
|
|
3623
|
-
> = z.object({
|
|
3624
|
-
name: z.string(),
|
|
3625
|
-
description: z.string().optional(),
|
|
3626
|
-
schema: z.record(z.any()),
|
|
3627
|
-
strict: z.nullable(z.boolean().default(false)),
|
|
3628
|
-
});
|
|
3629
|
-
|
|
3630
|
-
/** @internal */
|
|
3631
|
-
export type ResponseBodyJsonSchema$Outbound = {
|
|
3632
|
-
name: string;
|
|
3633
|
-
description?: string | undefined;
|
|
3634
|
-
schema: { [k: string]: any };
|
|
3635
|
-
strict: boolean | null;
|
|
3636
|
-
};
|
|
3637
|
-
|
|
3638
|
-
/** @internal */
|
|
3639
|
-
export const ResponseBodyJsonSchema$outboundSchema: z.ZodType<
|
|
3640
|
-
ResponseBodyJsonSchema$Outbound,
|
|
3641
|
-
z.ZodTypeDef,
|
|
3642
|
-
ResponseBodyJsonSchema
|
|
3643
|
-
> = z.object({
|
|
3644
|
-
name: z.string(),
|
|
3645
|
-
description: z.string().optional(),
|
|
3646
|
-
schema: z.record(z.any()),
|
|
3647
|
-
strict: z.nullable(z.boolean().default(false)),
|
|
3648
|
-
});
|
|
3649
|
-
|
|
3650
|
-
/**
|
|
3651
|
-
* @internal
|
|
3652
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3653
|
-
*/
|
|
3654
|
-
export namespace ResponseBodyJsonSchema$ {
|
|
3655
|
-
/** @deprecated use `ResponseBodyJsonSchema$inboundSchema` instead. */
|
|
3656
|
-
export const inboundSchema = ResponseBodyJsonSchema$inboundSchema;
|
|
3657
|
-
/** @deprecated use `ResponseBodyJsonSchema$outboundSchema` instead. */
|
|
3658
|
-
export const outboundSchema = ResponseBodyJsonSchema$outboundSchema;
|
|
3659
|
-
/** @deprecated use `ResponseBodyJsonSchema$Outbound` instead. */
|
|
3660
|
-
export type Outbound = ResponseBodyJsonSchema$Outbound;
|
|
3661
|
-
}
|
|
3662
|
-
|
|
3663
|
-
export function responseBodyJsonSchemaToJSON(
|
|
3664
|
-
responseBodyJsonSchema: ResponseBodyJsonSchema,
|
|
3665
|
-
): string {
|
|
3666
|
-
return JSON.stringify(
|
|
3667
|
-
ResponseBodyJsonSchema$outboundSchema.parse(responseBodyJsonSchema),
|
|
3668
|
-
);
|
|
3669
|
-
}
|
|
3670
|
-
|
|
3671
|
-
export function responseBodyJsonSchemaFromJSON(
|
|
3672
|
-
jsonString: string,
|
|
3673
|
-
): SafeParseResult<ResponseBodyJsonSchema, SDKValidationError> {
|
|
3674
|
-
return safeParse(
|
|
3675
|
-
jsonString,
|
|
3676
|
-
(x) => ResponseBodyJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
3677
|
-
`Failed to parse 'ResponseBodyJsonSchema' from JSON`,
|
|
3678
|
-
);
|
|
3679
|
-
}
|
|
3680
|
-
|
|
3681
|
-
/** @internal */
|
|
3682
|
-
export const ResponseBody2$inboundSchema: z.ZodType<
|
|
3683
|
-
ResponseBody2,
|
|
3684
|
-
z.ZodTypeDef,
|
|
3685
|
-
unknown
|
|
3686
|
-
> = z.object({
|
|
3687
|
-
_id: z.string().default("01K8WYAS76J4ZSYDV6470SRHXN"),
|
|
3688
|
-
path: z.string(),
|
|
3689
|
-
key: z.string(),
|
|
3690
|
-
display_name: z.string().optional(),
|
|
3691
|
-
description: z.string(),
|
|
3692
|
-
created_by_id: z.string().optional(),
|
|
3693
|
-
updated_by_id: z.string().optional(),
|
|
3694
|
-
project_id: z.string(),
|
|
3695
|
-
workspace_id: z.string(),
|
|
3696
|
-
created: z.string(),
|
|
3697
|
-
updated: z.string(),
|
|
3698
|
-
status: CreateToolResponseBodyStatus$inboundSchema.default("live"),
|
|
3699
|
-
version_hash: z.string().optional(),
|
|
3700
|
-
type: CreateToolResponseBodyToolsType$inboundSchema,
|
|
3701
|
-
json_schema: z.lazy(() => ResponseBodyJsonSchema$inboundSchema),
|
|
3702
|
-
}).transform((v) => {
|
|
3703
|
-
return remap$(v, {
|
|
3704
|
-
"_id": "id",
|
|
3705
|
-
"display_name": "displayName",
|
|
3706
|
-
"created_by_id": "createdById",
|
|
3707
|
-
"updated_by_id": "updatedById",
|
|
3708
|
-
"project_id": "projectId",
|
|
3709
|
-
"workspace_id": "workspaceId",
|
|
3710
|
-
"version_hash": "versionHash",
|
|
3711
|
-
"json_schema": "jsonSchema",
|
|
3712
|
-
});
|
|
3713
|
-
});
|
|
3714
|
-
|
|
3715
|
-
/** @internal */
|
|
3716
|
-
export type ResponseBody2$Outbound = {
|
|
3717
|
-
_id: string;
|
|
3718
|
-
path: string;
|
|
3719
|
-
key: string;
|
|
3720
|
-
display_name?: string | undefined;
|
|
3721
|
-
description: string;
|
|
3722
|
-
created_by_id?: string | undefined;
|
|
3723
|
-
updated_by_id?: string | undefined;
|
|
3724
|
-
project_id: string;
|
|
3725
|
-
workspace_id: string;
|
|
3726
|
-
created: string;
|
|
3727
|
-
updated: string;
|
|
3728
|
-
status: string;
|
|
3729
|
-
version_hash?: string | undefined;
|
|
3730
|
-
type: string;
|
|
3731
|
-
json_schema: ResponseBodyJsonSchema$Outbound;
|
|
3732
|
-
};
|
|
3733
|
-
|
|
3734
|
-
/** @internal */
|
|
3735
|
-
export const ResponseBody2$outboundSchema: z.ZodType<
|
|
3736
|
-
ResponseBody2$Outbound,
|
|
3737
|
-
z.ZodTypeDef,
|
|
3738
|
-
ResponseBody2
|
|
3739
|
-
> = z.object({
|
|
3740
|
-
id: z.string().default("01K8WYAS76J4ZSYDV6470SRHXN"),
|
|
3741
|
-
path: z.string(),
|
|
3742
|
-
key: z.string(),
|
|
3743
|
-
displayName: z.string().optional(),
|
|
3744
|
-
description: z.string(),
|
|
3745
|
-
createdById: z.string().optional(),
|
|
3746
|
-
updatedById: z.string().optional(),
|
|
3747
|
-
projectId: z.string(),
|
|
3748
|
-
workspaceId: z.string(),
|
|
3749
|
-
created: z.string(),
|
|
3750
|
-
updated: z.string(),
|
|
3751
|
-
status: CreateToolResponseBodyStatus$outboundSchema.default("live"),
|
|
3752
|
-
versionHash: z.string().optional(),
|
|
3753
|
-
type: CreateToolResponseBodyToolsType$outboundSchema,
|
|
3754
|
-
jsonSchema: z.lazy(() => ResponseBodyJsonSchema$outboundSchema),
|
|
3755
|
-
}).transform((v) => {
|
|
3756
|
-
return remap$(v, {
|
|
3757
|
-
id: "_id",
|
|
3758
|
-
displayName: "display_name",
|
|
3759
|
-
createdById: "created_by_id",
|
|
3760
|
-
updatedById: "updated_by_id",
|
|
3761
|
-
projectId: "project_id",
|
|
3762
|
-
workspaceId: "workspace_id",
|
|
3763
|
-
versionHash: "version_hash",
|
|
3764
|
-
jsonSchema: "json_schema",
|
|
3765
|
-
});
|
|
3766
|
-
});
|
|
3767
|
-
|
|
3768
|
-
/**
|
|
3769
|
-
* @internal
|
|
3770
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3771
|
-
*/
|
|
3772
|
-
export namespace ResponseBody2$ {
|
|
3773
|
-
/** @deprecated use `ResponseBody2$inboundSchema` instead. */
|
|
3774
|
-
export const inboundSchema = ResponseBody2$inboundSchema;
|
|
3775
|
-
/** @deprecated use `ResponseBody2$outboundSchema` instead. */
|
|
3776
|
-
export const outboundSchema = ResponseBody2$outboundSchema;
|
|
3777
|
-
/** @deprecated use `ResponseBody2$Outbound` instead. */
|
|
3778
|
-
export type Outbound = ResponseBody2$Outbound;
|
|
3779
|
-
}
|
|
3780
|
-
|
|
3781
|
-
export function responseBody2ToJSON(responseBody2: ResponseBody2): string {
|
|
3782
|
-
return JSON.stringify(ResponseBody2$outboundSchema.parse(responseBody2));
|
|
3783
|
-
}
|
|
3784
|
-
|
|
3785
|
-
export function responseBody2FromJSON(
|
|
3786
|
-
jsonString: string,
|
|
3787
|
-
): SafeParseResult<ResponseBody2, SDKValidationError> {
|
|
3788
|
-
return safeParse(
|
|
3789
|
-
jsonString,
|
|
3790
|
-
(x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
3791
|
-
`Failed to parse 'ResponseBody2' from JSON`,
|
|
3792
|
-
);
|
|
3793
|
-
}
|
|
3794
|
-
|
|
3795
|
-
/** @internal */
|
|
3796
|
-
export const ResponseBodyStatus$inboundSchema: z.ZodNativeEnum<
|
|
3797
|
-
typeof ResponseBodyStatus
|
|
3798
|
-
> = z.nativeEnum(ResponseBodyStatus);
|
|
3799
|
-
|
|
3800
|
-
/** @internal */
|
|
3801
|
-
export const ResponseBodyStatus$outboundSchema: z.ZodNativeEnum<
|
|
3802
|
-
typeof ResponseBodyStatus
|
|
3803
|
-
> = ResponseBodyStatus$inboundSchema;
|
|
3804
|
-
|
|
3805
|
-
/**
|
|
3806
|
-
* @internal
|
|
3807
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3808
|
-
*/
|
|
3809
|
-
export namespace ResponseBodyStatus$ {
|
|
3810
|
-
/** @deprecated use `ResponseBodyStatus$inboundSchema` instead. */
|
|
3811
|
-
export const inboundSchema = ResponseBodyStatus$inboundSchema;
|
|
3812
|
-
/** @deprecated use `ResponseBodyStatus$outboundSchema` instead. */
|
|
3813
|
-
export const outboundSchema = ResponseBodyStatus$outboundSchema;
|
|
3814
|
-
}
|
|
3815
|
-
|
|
3816
|
-
/** @internal */
|
|
3817
|
-
export const CreateToolResponseBodyType$inboundSchema: z.ZodNativeEnum<
|
|
3818
|
-
typeof CreateToolResponseBodyType
|
|
3819
|
-
> = z.nativeEnum(CreateToolResponseBodyType);
|
|
3820
|
-
|
|
3821
|
-
/** @internal */
|
|
3822
|
-
export const CreateToolResponseBodyType$outboundSchema: z.ZodNativeEnum<
|
|
3823
|
-
typeof CreateToolResponseBodyType
|
|
3824
|
-
> = CreateToolResponseBodyType$inboundSchema;
|
|
3825
|
-
|
|
3826
|
-
/**
|
|
3827
|
-
* @internal
|
|
3828
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3829
|
-
*/
|
|
3830
|
-
export namespace CreateToolResponseBodyType$ {
|
|
3831
|
-
/** @deprecated use `CreateToolResponseBodyType$inboundSchema` instead. */
|
|
3832
|
-
export const inboundSchema = CreateToolResponseBodyType$inboundSchema;
|
|
3833
|
-
/** @deprecated use `CreateToolResponseBodyType$outboundSchema` instead. */
|
|
3834
|
-
export const outboundSchema = CreateToolResponseBodyType$outboundSchema;
|
|
3835
|
-
}
|
|
3836
|
-
|
|
3837
|
-
/** @internal */
|
|
3838
|
-
export const CreateToolResponseBodyFunction$inboundSchema: z.ZodType<
|
|
3839
|
-
CreateToolResponseBodyFunction,
|
|
3840
|
-
z.ZodTypeDef,
|
|
3841
|
-
unknown
|
|
3842
|
-
> = z.object({
|
|
3843
|
-
name: z.string(),
|
|
3844
|
-
description: z.string().optional(),
|
|
3845
|
-
strict: z.boolean().optional(),
|
|
3846
|
-
parameters: z.record(z.any()).optional(),
|
|
3847
|
-
});
|
|
3848
|
-
|
|
3849
|
-
/** @internal */
|
|
3850
|
-
export type CreateToolResponseBodyFunction$Outbound = {
|
|
3851
|
-
name: string;
|
|
3852
|
-
description?: string | undefined;
|
|
3853
|
-
strict?: boolean | undefined;
|
|
3854
|
-
parameters?: { [k: string]: any } | undefined;
|
|
3855
|
-
};
|
|
3856
|
-
|
|
3857
|
-
/** @internal */
|
|
3858
|
-
export const CreateToolResponseBodyFunction$outboundSchema: z.ZodType<
|
|
3859
|
-
CreateToolResponseBodyFunction$Outbound,
|
|
3860
|
-
z.ZodTypeDef,
|
|
3861
|
-
CreateToolResponseBodyFunction
|
|
3862
|
-
> = z.object({
|
|
3863
|
-
name: z.string(),
|
|
3864
|
-
description: z.string().optional(),
|
|
3865
|
-
strict: z.boolean().optional(),
|
|
3866
|
-
parameters: z.record(z.any()).optional(),
|
|
3867
|
-
});
|
|
3868
|
-
|
|
3869
|
-
/**
|
|
3870
|
-
* @internal
|
|
3871
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3872
|
-
*/
|
|
3873
|
-
export namespace CreateToolResponseBodyFunction$ {
|
|
3874
|
-
/** @deprecated use `CreateToolResponseBodyFunction$inboundSchema` instead. */
|
|
3875
|
-
export const inboundSchema = CreateToolResponseBodyFunction$inboundSchema;
|
|
3876
|
-
/** @deprecated use `CreateToolResponseBodyFunction$outboundSchema` instead. */
|
|
3877
|
-
export const outboundSchema = CreateToolResponseBodyFunction$outboundSchema;
|
|
3878
|
-
/** @deprecated use `CreateToolResponseBodyFunction$Outbound` instead. */
|
|
3879
|
-
export type Outbound = CreateToolResponseBodyFunction$Outbound;
|
|
3880
|
-
}
|
|
3881
|
-
|
|
3882
|
-
export function createToolResponseBodyFunctionToJSON(
|
|
3883
|
-
createToolResponseBodyFunction: CreateToolResponseBodyFunction,
|
|
3884
|
-
): string {
|
|
3885
|
-
return JSON.stringify(
|
|
3886
|
-
CreateToolResponseBodyFunction$outboundSchema.parse(
|
|
3887
|
-
createToolResponseBodyFunction,
|
|
3888
|
-
),
|
|
3889
|
-
);
|
|
3890
|
-
}
|
|
3891
|
-
|
|
3892
|
-
export function createToolResponseBodyFunctionFromJSON(
|
|
3893
|
-
jsonString: string,
|
|
3894
|
-
): SafeParseResult<CreateToolResponseBodyFunction, SDKValidationError> {
|
|
3895
|
-
return safeParse(
|
|
3896
|
-
jsonString,
|
|
3897
|
-
(x) => CreateToolResponseBodyFunction$inboundSchema.parse(JSON.parse(x)),
|
|
3898
|
-
`Failed to parse 'CreateToolResponseBodyFunction' from JSON`,
|
|
3899
|
-
);
|
|
3900
|
-
}
|
|
3901
|
-
|
|
3902
|
-
/** @internal */
|
|
3903
|
-
export const ResponseBody1$inboundSchema: z.ZodType<
|
|
3904
|
-
ResponseBody1,
|
|
3905
|
-
z.ZodTypeDef,
|
|
3906
|
-
unknown
|
|
3907
|
-
> = z.object({
|
|
3908
|
-
_id: z.string().default("01K8WYAS75RPPWEQ69QMDRSE50"),
|
|
3909
|
-
path: z.string(),
|
|
3910
|
-
key: z.string(),
|
|
3911
|
-
display_name: z.string().optional(),
|
|
3912
|
-
description: z.string(),
|
|
3913
|
-
created_by_id: z.string().optional(),
|
|
3914
|
-
updated_by_id: z.string().optional(),
|
|
3915
|
-
project_id: z.string(),
|
|
3916
|
-
workspace_id: z.string(),
|
|
3917
|
-
created: z.string(),
|
|
3918
|
-
updated: z.string(),
|
|
3919
|
-
status: ResponseBodyStatus$inboundSchema.default("live"),
|
|
3920
|
-
version_hash: z.string().optional(),
|
|
3921
|
-
type: CreateToolResponseBodyType$inboundSchema,
|
|
3922
|
-
function: z.lazy(() => CreateToolResponseBodyFunction$inboundSchema),
|
|
3923
|
-
}).transform((v) => {
|
|
3924
|
-
return remap$(v, {
|
|
3925
|
-
"_id": "id",
|
|
3926
|
-
"display_name": "displayName",
|
|
3927
|
-
"created_by_id": "createdById",
|
|
3928
|
-
"updated_by_id": "updatedById",
|
|
3929
|
-
"project_id": "projectId",
|
|
3930
|
-
"workspace_id": "workspaceId",
|
|
3931
|
-
"version_hash": "versionHash",
|
|
3932
|
-
});
|
|
3933
|
-
});
|
|
3934
|
-
|
|
3935
|
-
/** @internal */
|
|
3936
|
-
export type ResponseBody1$Outbound = {
|
|
3937
|
-
_id: string;
|
|
3938
|
-
path: string;
|
|
3939
|
-
key: string;
|
|
3940
|
-
display_name?: string | undefined;
|
|
3941
|
-
description: string;
|
|
3942
|
-
created_by_id?: string | undefined;
|
|
3943
|
-
updated_by_id?: string | undefined;
|
|
3944
|
-
project_id: string;
|
|
3945
|
-
workspace_id: string;
|
|
3946
|
-
created: string;
|
|
3947
|
-
updated: string;
|
|
3948
|
-
status: string;
|
|
3949
|
-
version_hash?: string | undefined;
|
|
3950
|
-
type: string;
|
|
3951
|
-
function: CreateToolResponseBodyFunction$Outbound;
|
|
3952
|
-
};
|
|
3953
|
-
|
|
3954
|
-
/** @internal */
|
|
3955
|
-
export const ResponseBody1$outboundSchema: z.ZodType<
|
|
3956
|
-
ResponseBody1$Outbound,
|
|
3957
|
-
z.ZodTypeDef,
|
|
3958
|
-
ResponseBody1
|
|
3959
|
-
> = z.object({
|
|
3960
|
-
id: z.string().default("01K8WYAS75RPPWEQ69QMDRSE50"),
|
|
3961
|
-
path: z.string(),
|
|
3962
|
-
key: z.string(),
|
|
3963
|
-
displayName: z.string().optional(),
|
|
3964
|
-
description: z.string(),
|
|
3965
|
-
createdById: z.string().optional(),
|
|
3966
|
-
updatedById: z.string().optional(),
|
|
3967
|
-
projectId: z.string(),
|
|
3968
|
-
workspaceId: z.string(),
|
|
3969
|
-
created: z.string(),
|
|
3970
|
-
updated: z.string(),
|
|
3971
|
-
status: ResponseBodyStatus$outboundSchema.default("live"),
|
|
3972
|
-
versionHash: z.string().optional(),
|
|
3973
|
-
type: CreateToolResponseBodyType$outboundSchema,
|
|
3974
|
-
function: z.lazy(() => CreateToolResponseBodyFunction$outboundSchema),
|
|
3975
|
-
}).transform((v) => {
|
|
3976
|
-
return remap$(v, {
|
|
3977
|
-
id: "_id",
|
|
3978
|
-
displayName: "display_name",
|
|
3979
|
-
createdById: "created_by_id",
|
|
3980
|
-
updatedById: "updated_by_id",
|
|
3981
|
-
projectId: "project_id",
|
|
3982
|
-
workspaceId: "workspace_id",
|
|
3983
|
-
versionHash: "version_hash",
|
|
3984
|
-
});
|
|
3985
|
-
});
|
|
3986
|
-
|
|
3987
|
-
/**
|
|
3988
|
-
* @internal
|
|
3989
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3990
|
-
*/
|
|
3991
|
-
export namespace ResponseBody1$ {
|
|
3992
|
-
/** @deprecated use `ResponseBody1$inboundSchema` instead. */
|
|
3993
|
-
export const inboundSchema = ResponseBody1$inboundSchema;
|
|
3994
|
-
/** @deprecated use `ResponseBody1$outboundSchema` instead. */
|
|
3995
|
-
export const outboundSchema = ResponseBody1$outboundSchema;
|
|
3996
|
-
/** @deprecated use `ResponseBody1$Outbound` instead. */
|
|
3997
|
-
export type Outbound = ResponseBody1$Outbound;
|
|
3998
|
-
}
|
|
3999
|
-
|
|
4000
|
-
export function responseBody1ToJSON(responseBody1: ResponseBody1): string {
|
|
4001
|
-
return JSON.stringify(ResponseBody1$outboundSchema.parse(responseBody1));
|
|
4002
|
-
}
|
|
4003
|
-
|
|
4004
|
-
export function responseBody1FromJSON(
|
|
4005
|
-
jsonString: string,
|
|
4006
|
-
): SafeParseResult<ResponseBody1, SDKValidationError> {
|
|
4007
|
-
return safeParse(
|
|
4008
|
-
jsonString,
|
|
4009
|
-
(x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
4010
|
-
`Failed to parse 'ResponseBody1' from JSON`,
|
|
4011
|
-
);
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
/** @internal */
|
|
4015
|
-
export const CreateToolResponseBody$inboundSchema: z.ZodType<
|
|
4016
|
-
CreateToolResponseBody,
|
|
4017
|
-
z.ZodTypeDef,
|
|
4018
|
-
unknown
|
|
4019
|
-
> = z.union([
|
|
4020
|
-
z.lazy(() => ResponseBody1$inboundSchema),
|
|
4021
|
-
z.lazy(() => ResponseBody2$inboundSchema),
|
|
4022
|
-
z.lazy(() => ResponseBody3$inboundSchema),
|
|
4023
|
-
z.lazy(() => ResponseBody4$inboundSchema),
|
|
4024
|
-
z.lazy(() => ResponseBody5$inboundSchema),
|
|
4025
|
-
]);
|
|
4026
|
-
|
|
4027
|
-
/** @internal */
|
|
4028
|
-
export type CreateToolResponseBody$Outbound =
|
|
4029
|
-
| ResponseBody1$Outbound
|
|
4030
|
-
| ResponseBody2$Outbound
|
|
4031
|
-
| ResponseBody3$Outbound
|
|
4032
|
-
| ResponseBody4$Outbound
|
|
4033
|
-
| ResponseBody5$Outbound;
|
|
4034
|
-
|
|
4035
|
-
/** @internal */
|
|
4036
|
-
export const CreateToolResponseBody$outboundSchema: z.ZodType<
|
|
4037
|
-
CreateToolResponseBody$Outbound,
|
|
4038
|
-
z.ZodTypeDef,
|
|
4039
|
-
CreateToolResponseBody
|
|
4040
|
-
> = z.union([
|
|
4041
|
-
z.lazy(() => ResponseBody1$outboundSchema),
|
|
4042
|
-
z.lazy(() => ResponseBody2$outboundSchema),
|
|
4043
|
-
z.lazy(() => ResponseBody3$outboundSchema),
|
|
4044
|
-
z.lazy(() => ResponseBody4$outboundSchema),
|
|
4045
|
-
z.lazy(() => ResponseBody5$outboundSchema),
|
|
4046
|
-
]);
|
|
4047
|
-
|
|
4048
|
-
/**
|
|
4049
|
-
* @internal
|
|
4050
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4051
|
-
*/
|
|
4052
|
-
export namespace CreateToolResponseBody$ {
|
|
4053
|
-
/** @deprecated use `CreateToolResponseBody$inboundSchema` instead. */
|
|
4054
|
-
export const inboundSchema = CreateToolResponseBody$inboundSchema;
|
|
4055
|
-
/** @deprecated use `CreateToolResponseBody$outboundSchema` instead. */
|
|
4056
|
-
export const outboundSchema = CreateToolResponseBody$outboundSchema;
|
|
4057
|
-
/** @deprecated use `CreateToolResponseBody$Outbound` instead. */
|
|
4058
|
-
export type Outbound = CreateToolResponseBody$Outbound;
|
|
4059
|
-
}
|
|
4060
|
-
|
|
4061
|
-
export function createToolResponseBodyToJSON(
|
|
4062
|
-
createToolResponseBody: CreateToolResponseBody,
|
|
4063
|
-
): string {
|
|
4064
|
-
return JSON.stringify(
|
|
4065
|
-
CreateToolResponseBody$outboundSchema.parse(createToolResponseBody),
|
|
4066
|
-
);
|
|
4067
|
-
}
|
|
4068
|
-
|
|
4069
|
-
export function createToolResponseBodyFromJSON(
|
|
4070
|
-
jsonString: string,
|
|
4071
|
-
): SafeParseResult<CreateToolResponseBody, SDKValidationError> {
|
|
4072
|
-
return safeParse(
|
|
4073
|
-
jsonString,
|
|
4074
|
-
(x) => CreateToolResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
4075
|
-
`Failed to parse 'CreateToolResponseBody' from JSON`,
|
|
4076
|
-
);
|
|
4077
|
-
}
|