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