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