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