@orq-ai/node 4.0.5 → 4.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +214 -217
- package/bin/mcp-server.js.map +39 -39
- package/docs/sdks/agents/README.md +8 -4
- package/docs/sdks/budgets/README.md +4 -2
- package/docs/sdks/tools/README.md +2 -2
- package/examples/package-lock.json +4 -7
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +4 -3
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/FUNCTIONS.md +0 -103
- package/packages/orq-rc/README.md +0 -901
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/agents/README.md +0 -1064
- package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
- package/packages/orq-rc/docs/sdks/chunking/README.md +0 -97
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
- package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
- package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
- package/packages/orq-rc/docs/sdks/files/README.md +0 -301
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1487
- package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1171
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
- package/packages/orq-rc/docs/sdks/models/README.md +0 -76
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
- package/packages/orq-rc/docs/sdks/responses/README.md +0 -134
- package/packages/orq-rc/docs/sdks/tools/README.md +0 -420
- package/packages/orq-rc/examples/README.md +0 -31
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/examples/package-lock.json +0 -619
- package/packages/orq-rc/examples/package.json +0 -18
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -3047
- package/packages/orq-rc/package.json +0 -40
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -174
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -165
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -191
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
- package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -483
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -135
- package/packages/orq-rc/src/lib/files.ts +0 -82
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -345
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -407
- package/packages/orq-rc/src/lib/security.ts +0 -264
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
- package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
- package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
- package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
- package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
- package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
- package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
- package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
- package/packages/orq-rc/src/mcp-server/server.ts +0 -251
- package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -6261
- package/packages/orq-rc/src/models/components/security.ts +0 -56
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -26
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8215
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -1353
- package/packages/orq-rc/src/models/operations/createbudget.ts +0 -582
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -5379
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -694
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -6857
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -229
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -242
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -6179
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -3956
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5091
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -8055
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -980
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2054
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -8269
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -261
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -280
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2033
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2292
- package/packages/orq-rc/src/models/operations/getbudget.ts +0 -357
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -5543
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1924
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1942
- package/packages/orq-rc/src/models/operations/index.ts +0 -98
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1893
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -3614
- package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -494
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -413
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -3169
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1068
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2041
- package/packages/orq-rc/src/models/operations/parse.ts +0 -1013
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3741
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2985
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -171
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -189
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2347
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -7613
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -9732
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -15817
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -8649
- package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -502
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -5374
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -7197
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -238
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -251
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -463
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -6410
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4279
- package/packages/orq-rc/src/sdk/agents.ts +0 -196
- package/packages/orq-rc/src/sdk/budgets.ts +0 -99
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/contacts.ts +0 -99
- package/packages/orq-rc/src/sdk/datasets.ts +0 -204
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/evals.ts +0 -69
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/responses.ts +0 -29
- package/packages/orq-rc/src/sdk/sdk.ts +0 -97
- package/packages/orq-rc/src/sdk/tools.ts +0 -99
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -45
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/src/types/unrecognized.ts +0 -27
- package/packages/orq-rc/tsconfig.json +0 -41
|
@@ -1,2292 +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
|
-
export type GetAllToolsRequest = {
|
|
16
|
-
/**
|
|
17
|
-
* Maximum number of tools per page (1-200). Omit to return all tools.
|
|
18
|
-
*/
|
|
19
|
-
limit?: number | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
22
|
-
*/
|
|
23
|
-
startingAfter?: string | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
26
|
-
*/
|
|
27
|
-
endingBefore?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const GetAllToolsObject = {
|
|
31
|
-
List: "list",
|
|
32
|
-
} as const;
|
|
33
|
-
export type GetAllToolsObject = ClosedEnum<typeof GetAllToolsObject>;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* 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.
|
|
37
|
-
*/
|
|
38
|
-
export const GetAllToolsDataToolsResponse200Status = {
|
|
39
|
-
Live: "live",
|
|
40
|
-
Draft: "draft",
|
|
41
|
-
Pending: "pending",
|
|
42
|
-
Published: "published",
|
|
43
|
-
} as const;
|
|
44
|
-
/**
|
|
45
|
-
* 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.
|
|
46
|
-
*/
|
|
47
|
-
export type GetAllToolsDataToolsResponse200Status = ClosedEnum<
|
|
48
|
-
typeof GetAllToolsDataToolsResponse200Status
|
|
49
|
-
>;
|
|
50
|
-
|
|
51
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONType = {
|
|
52
|
-
Code: "code",
|
|
53
|
-
} as const;
|
|
54
|
-
export type GetAllToolsDataToolsResponse200ApplicationJSONType = ClosedEnum<
|
|
55
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONType
|
|
56
|
-
>;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* The type must be "object"
|
|
60
|
-
*/
|
|
61
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type = {
|
|
62
|
-
Object: "object",
|
|
63
|
-
} as const;
|
|
64
|
-
/**
|
|
65
|
-
* The type must be "object"
|
|
66
|
-
*/
|
|
67
|
-
export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type =
|
|
68
|
-
ClosedEnum<
|
|
69
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
|
|
70
|
-
>;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* 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.
|
|
74
|
-
*/
|
|
75
|
-
export type GetAllToolsDataParameters = {
|
|
76
|
-
/**
|
|
77
|
-
* The type must be "object"
|
|
78
|
-
*/
|
|
79
|
-
type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type;
|
|
80
|
-
/**
|
|
81
|
-
* The properties of the function parameters
|
|
82
|
-
*/
|
|
83
|
-
properties: { [k: string]: any };
|
|
84
|
-
/**
|
|
85
|
-
* Array of required parameter names
|
|
86
|
-
*/
|
|
87
|
-
required: Array<string>;
|
|
88
|
-
additionalProperties?: { [k: string]: any } | undefined;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export const DataLanguage = {
|
|
92
|
-
Python: "python",
|
|
93
|
-
} as const;
|
|
94
|
-
export type DataLanguage = ClosedEnum<typeof DataLanguage>;
|
|
95
|
-
|
|
96
|
-
export type DataCodeTool = {
|
|
97
|
-
/**
|
|
98
|
-
* 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.
|
|
99
|
-
*/
|
|
100
|
-
parameters?: GetAllToolsDataParameters | undefined;
|
|
101
|
-
language: DataLanguage;
|
|
102
|
-
/**
|
|
103
|
-
* The code to execute.
|
|
104
|
-
*/
|
|
105
|
-
code: string;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Executes code snippets in a sandboxed environment, currently supporting Python.
|
|
110
|
-
*/
|
|
111
|
-
export type DataCodeExecutionTool = {
|
|
112
|
-
id?: string | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
115
|
-
*
|
|
116
|
-
* @remarks
|
|
117
|
-
*
|
|
118
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
119
|
-
*
|
|
120
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
121
|
-
*/
|
|
122
|
-
path: string;
|
|
123
|
-
/**
|
|
124
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
125
|
-
*/
|
|
126
|
-
key: string;
|
|
127
|
-
/**
|
|
128
|
-
* 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.
|
|
129
|
-
*/
|
|
130
|
-
displayName?: string | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* 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.
|
|
133
|
-
*/
|
|
134
|
-
description: string;
|
|
135
|
-
/**
|
|
136
|
-
* The id of the user that created the tool
|
|
137
|
-
*/
|
|
138
|
-
createdById?: string | undefined;
|
|
139
|
-
/**
|
|
140
|
-
* The id of the user that last updated the tool
|
|
141
|
-
*/
|
|
142
|
-
updatedById?: string | undefined;
|
|
143
|
-
projectId: string;
|
|
144
|
-
workspaceId: string;
|
|
145
|
-
created: string;
|
|
146
|
-
updated: string;
|
|
147
|
-
/**
|
|
148
|
-
* 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.
|
|
149
|
-
*/
|
|
150
|
-
status?: GetAllToolsDataToolsResponse200Status | undefined;
|
|
151
|
-
versionHash?: string | undefined;
|
|
152
|
-
type: GetAllToolsDataToolsResponse200ApplicationJSONType;
|
|
153
|
-
codeTool: DataCodeTool;
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* 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.
|
|
158
|
-
*/
|
|
159
|
-
export const GetAllToolsDataToolsResponseStatus = {
|
|
160
|
-
Live: "live",
|
|
161
|
-
Draft: "draft",
|
|
162
|
-
Pending: "pending",
|
|
163
|
-
Published: "published",
|
|
164
|
-
} as const;
|
|
165
|
-
/**
|
|
166
|
-
* 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.
|
|
167
|
-
*/
|
|
168
|
-
export type GetAllToolsDataToolsResponseStatus = ClosedEnum<
|
|
169
|
-
typeof GetAllToolsDataToolsResponseStatus
|
|
170
|
-
>;
|
|
171
|
-
|
|
172
|
-
export const GetAllToolsDataToolsResponse200Type = {
|
|
173
|
-
Mcp: "mcp",
|
|
174
|
-
} as const;
|
|
175
|
-
export type GetAllToolsDataToolsResponse200Type = ClosedEnum<
|
|
176
|
-
typeof GetAllToolsDataToolsResponse200Type
|
|
177
|
-
>;
|
|
178
|
-
|
|
179
|
-
export type DataHeaders = {
|
|
180
|
-
value: string;
|
|
181
|
-
encrypted?: boolean | undefined;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type = {
|
|
185
|
-
Object: "object",
|
|
186
|
-
} as const;
|
|
187
|
-
export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type =
|
|
188
|
-
ClosedEnum<
|
|
189
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
|
|
190
|
-
>;
|
|
191
|
-
|
|
192
|
-
export type GetAllToolsDataSchema = {
|
|
193
|
-
type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type;
|
|
194
|
-
properties?: { [k: string]: any } | undefined;
|
|
195
|
-
required?: Array<string> | undefined;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
export type DataTools = {
|
|
199
|
-
id?: string | undefined;
|
|
200
|
-
name: string;
|
|
201
|
-
description?: string | undefined;
|
|
202
|
-
schema: GetAllToolsDataSchema;
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* The connection type used by the MCP server
|
|
207
|
-
*/
|
|
208
|
-
export const DataConnectionType = {
|
|
209
|
-
Http: "http",
|
|
210
|
-
Sse: "sse",
|
|
211
|
-
} as const;
|
|
212
|
-
/**
|
|
213
|
-
* The connection type used by the MCP server
|
|
214
|
-
*/
|
|
215
|
-
export type DataConnectionType = ClosedEnum<typeof DataConnectionType>;
|
|
216
|
-
|
|
217
|
-
export type DataMcp = {
|
|
218
|
-
/**
|
|
219
|
-
* The MCP server URL (cached for execution)
|
|
220
|
-
*/
|
|
221
|
-
serverUrl: string;
|
|
222
|
-
/**
|
|
223
|
-
* HTTP headers for MCP server requests with encryption support
|
|
224
|
-
*/
|
|
225
|
-
headers?: { [k: string]: DataHeaders } | undefined;
|
|
226
|
-
/**
|
|
227
|
-
* Array of tools available from the MCP server
|
|
228
|
-
*/
|
|
229
|
-
tools: Array<DataTools>;
|
|
230
|
-
/**
|
|
231
|
-
* The connection type used by the MCP server
|
|
232
|
-
*/
|
|
233
|
-
connectionType: DataConnectionType;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
|
|
238
|
-
*/
|
|
239
|
-
export type DataMCPTool = {
|
|
240
|
-
id?: string | undefined;
|
|
241
|
-
/**
|
|
242
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
243
|
-
*
|
|
244
|
-
* @remarks
|
|
245
|
-
*
|
|
246
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
247
|
-
*
|
|
248
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
249
|
-
*/
|
|
250
|
-
path: string;
|
|
251
|
-
/**
|
|
252
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
253
|
-
*/
|
|
254
|
-
key: string;
|
|
255
|
-
/**
|
|
256
|
-
* 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.
|
|
257
|
-
*/
|
|
258
|
-
displayName?: string | undefined;
|
|
259
|
-
/**
|
|
260
|
-
* 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.
|
|
261
|
-
*/
|
|
262
|
-
description: string;
|
|
263
|
-
/**
|
|
264
|
-
* The id of the user that created the tool
|
|
265
|
-
*/
|
|
266
|
-
createdById?: string | undefined;
|
|
267
|
-
/**
|
|
268
|
-
* The id of the user that last updated the tool
|
|
269
|
-
*/
|
|
270
|
-
updatedById?: string | undefined;
|
|
271
|
-
projectId: string;
|
|
272
|
-
workspaceId: string;
|
|
273
|
-
created: string;
|
|
274
|
-
updated: string;
|
|
275
|
-
/**
|
|
276
|
-
* 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.
|
|
277
|
-
*/
|
|
278
|
-
status?: GetAllToolsDataToolsResponseStatus | undefined;
|
|
279
|
-
versionHash?: string | undefined;
|
|
280
|
-
type: GetAllToolsDataToolsResponse200Type;
|
|
281
|
-
mcp: DataMcp;
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* 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.
|
|
286
|
-
*/
|
|
287
|
-
export const GetAllToolsDataToolsStatus = {
|
|
288
|
-
Live: "live",
|
|
289
|
-
Draft: "draft",
|
|
290
|
-
Pending: "pending",
|
|
291
|
-
Published: "published",
|
|
292
|
-
} as const;
|
|
293
|
-
/**
|
|
294
|
-
* 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.
|
|
295
|
-
*/
|
|
296
|
-
export type GetAllToolsDataToolsStatus = ClosedEnum<
|
|
297
|
-
typeof GetAllToolsDataToolsStatus
|
|
298
|
-
>;
|
|
299
|
-
|
|
300
|
-
export const GetAllToolsDataToolsResponseType = {
|
|
301
|
-
Http: "http",
|
|
302
|
-
} as const;
|
|
303
|
-
export type GetAllToolsDataToolsResponseType = ClosedEnum<
|
|
304
|
-
typeof GetAllToolsDataToolsResponseType
|
|
305
|
-
>;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* The HTTP method to use.
|
|
309
|
-
*/
|
|
310
|
-
export const GetAllToolsDataMethod = {
|
|
311
|
-
Get: "GET",
|
|
312
|
-
Post: "POST",
|
|
313
|
-
Put: "PUT",
|
|
314
|
-
Delete: "DELETE",
|
|
315
|
-
} as const;
|
|
316
|
-
/**
|
|
317
|
-
* The HTTP method to use.
|
|
318
|
-
*/
|
|
319
|
-
export type GetAllToolsDataMethod = ClosedEnum<typeof GetAllToolsDataMethod>;
|
|
320
|
-
|
|
321
|
-
export type GetAllToolsHeaders2 = {
|
|
322
|
-
value: string;
|
|
323
|
-
encrypted?: boolean | undefined;
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
export type GetAllToolsDataHeaders = GetAllToolsHeaders2 | string;
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
330
|
-
*/
|
|
331
|
-
export type DataBlueprint = {
|
|
332
|
-
/**
|
|
333
|
-
* The URL to send the request to.
|
|
334
|
-
*/
|
|
335
|
-
url: string;
|
|
336
|
-
/**
|
|
337
|
-
* The HTTP method to use.
|
|
338
|
-
*/
|
|
339
|
-
method: GetAllToolsDataMethod;
|
|
340
|
-
/**
|
|
341
|
-
* The headers to send with the request. Can be a string value or an object with value and encrypted properties.
|
|
342
|
-
*/
|
|
343
|
-
headers?: { [k: string]: GetAllToolsHeaders2 | string } | undefined;
|
|
344
|
-
/**
|
|
345
|
-
* The body to send with the request.
|
|
346
|
-
*/
|
|
347
|
-
body?: { [k: string]: any } | undefined;
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* The type of the argument.
|
|
352
|
-
*/
|
|
353
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type = {
|
|
354
|
-
String: "string",
|
|
355
|
-
Number: "number",
|
|
356
|
-
Boolean: "boolean",
|
|
357
|
-
} as const;
|
|
358
|
-
/**
|
|
359
|
-
* The type of the argument.
|
|
360
|
-
*/
|
|
361
|
-
export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type =
|
|
362
|
-
ClosedEnum<
|
|
363
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
|
|
364
|
-
>;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* The default value of the argument.
|
|
368
|
-
*/
|
|
369
|
-
export type DataDefaultValue = string | number | boolean;
|
|
370
|
-
|
|
371
|
-
export type DataArguments = {
|
|
372
|
-
/**
|
|
373
|
-
* The type of the argument.
|
|
374
|
-
*/
|
|
375
|
-
type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type;
|
|
376
|
-
/**
|
|
377
|
-
* A description of the argument.
|
|
378
|
-
*/
|
|
379
|
-
description: string;
|
|
380
|
-
/**
|
|
381
|
-
* 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.
|
|
382
|
-
*/
|
|
383
|
-
sendToModel?: boolean | undefined;
|
|
384
|
-
/**
|
|
385
|
-
* The default value of the argument.
|
|
386
|
-
*/
|
|
387
|
-
defaultValue?: string | number | boolean | undefined;
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
export type GetAllToolsDataHttp = {
|
|
391
|
-
/**
|
|
392
|
-
* The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
|
|
393
|
-
*/
|
|
394
|
-
blueprint: DataBlueprint;
|
|
395
|
-
/**
|
|
396
|
-
* The arguments to send with the request. The keys will be used to replace the placeholders in the `blueprint` field.
|
|
397
|
-
*/
|
|
398
|
-
arguments?: { [k: string]: DataArguments } | undefined;
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
|
|
403
|
-
*/
|
|
404
|
-
export type DataHTTPTool = {
|
|
405
|
-
id?: string | undefined;
|
|
406
|
-
/**
|
|
407
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
408
|
-
*
|
|
409
|
-
* @remarks
|
|
410
|
-
*
|
|
411
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
412
|
-
*
|
|
413
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
414
|
-
*/
|
|
415
|
-
path: string;
|
|
416
|
-
/**
|
|
417
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
418
|
-
*/
|
|
419
|
-
key: string;
|
|
420
|
-
/**
|
|
421
|
-
* 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.
|
|
422
|
-
*/
|
|
423
|
-
displayName?: string | undefined;
|
|
424
|
-
/**
|
|
425
|
-
* 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.
|
|
426
|
-
*/
|
|
427
|
-
description: string;
|
|
428
|
-
/**
|
|
429
|
-
* The id of the user that created the tool
|
|
430
|
-
*/
|
|
431
|
-
createdById?: string | undefined;
|
|
432
|
-
/**
|
|
433
|
-
* The id of the user that last updated the tool
|
|
434
|
-
*/
|
|
435
|
-
updatedById?: string | undefined;
|
|
436
|
-
projectId: string;
|
|
437
|
-
workspaceId: string;
|
|
438
|
-
created: string;
|
|
439
|
-
updated: string;
|
|
440
|
-
/**
|
|
441
|
-
* 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.
|
|
442
|
-
*/
|
|
443
|
-
status?: GetAllToolsDataToolsStatus | undefined;
|
|
444
|
-
versionHash?: string | undefined;
|
|
445
|
-
type: GetAllToolsDataToolsResponseType;
|
|
446
|
-
http: GetAllToolsDataHttp;
|
|
447
|
-
};
|
|
448
|
-
|
|
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
|
-
export const GetAllToolsDataStatus = {
|
|
453
|
-
Live: "live",
|
|
454
|
-
Draft: "draft",
|
|
455
|
-
Pending: "pending",
|
|
456
|
-
Published: "published",
|
|
457
|
-
} as const;
|
|
458
|
-
/**
|
|
459
|
-
* 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.
|
|
460
|
-
*/
|
|
461
|
-
export type GetAllToolsDataStatus = ClosedEnum<typeof GetAllToolsDataStatus>;
|
|
462
|
-
|
|
463
|
-
export const GetAllToolsDataToolsType = {
|
|
464
|
-
JsonSchema: "json_schema",
|
|
465
|
-
} as const;
|
|
466
|
-
export type GetAllToolsDataToolsType = ClosedEnum<
|
|
467
|
-
typeof GetAllToolsDataToolsType
|
|
468
|
-
>;
|
|
469
|
-
|
|
470
|
-
/**
|
|
471
|
-
* 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.
|
|
472
|
-
*/
|
|
473
|
-
export type DataSchema = {
|
|
474
|
-
/**
|
|
475
|
-
* The JSON Schema type
|
|
476
|
-
*/
|
|
477
|
-
type: string;
|
|
478
|
-
/**
|
|
479
|
-
* The properties of the JSON Schema object
|
|
480
|
-
*/
|
|
481
|
-
properties: { [k: string]: any };
|
|
482
|
-
/**
|
|
483
|
-
* Array of required property names
|
|
484
|
-
*/
|
|
485
|
-
required: Array<string>;
|
|
486
|
-
additionalProperties?: { [k: string]: any } | undefined;
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
export type DataJsonSchema = {
|
|
490
|
-
/**
|
|
491
|
-
* 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.
|
|
492
|
-
*/
|
|
493
|
-
name: string;
|
|
494
|
-
/**
|
|
495
|
-
* A description of what the response format is for. This will be shown to the user.
|
|
496
|
-
*/
|
|
497
|
-
description: string;
|
|
498
|
-
/**
|
|
499
|
-
* 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.
|
|
500
|
-
*/
|
|
501
|
-
schema: DataSchema;
|
|
502
|
-
/**
|
|
503
|
-
* 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.
|
|
504
|
-
*/
|
|
505
|
-
strict?: boolean | undefined;
|
|
506
|
-
};
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* A tool that enforces structured output format using JSON Schema for consistent response formatting.
|
|
510
|
-
*/
|
|
511
|
-
export type DataJSONSchemaTool = {
|
|
512
|
-
id?: string | undefined;
|
|
513
|
-
/**
|
|
514
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
515
|
-
*
|
|
516
|
-
* @remarks
|
|
517
|
-
*
|
|
518
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
519
|
-
*
|
|
520
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
521
|
-
*/
|
|
522
|
-
path: string;
|
|
523
|
-
/**
|
|
524
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
525
|
-
*/
|
|
526
|
-
key: string;
|
|
527
|
-
/**
|
|
528
|
-
* 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.
|
|
529
|
-
*/
|
|
530
|
-
displayName?: string | undefined;
|
|
531
|
-
/**
|
|
532
|
-
* 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.
|
|
533
|
-
*/
|
|
534
|
-
description: string;
|
|
535
|
-
/**
|
|
536
|
-
* The id of the user that created the tool
|
|
537
|
-
*/
|
|
538
|
-
createdById?: string | undefined;
|
|
539
|
-
/**
|
|
540
|
-
* The id of the user that last updated the tool
|
|
541
|
-
*/
|
|
542
|
-
updatedById?: string | undefined;
|
|
543
|
-
projectId: string;
|
|
544
|
-
workspaceId: string;
|
|
545
|
-
created: string;
|
|
546
|
-
updated: string;
|
|
547
|
-
/**
|
|
548
|
-
* 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.
|
|
549
|
-
*/
|
|
550
|
-
status?: GetAllToolsDataStatus | undefined;
|
|
551
|
-
versionHash?: string | undefined;
|
|
552
|
-
type: GetAllToolsDataToolsType;
|
|
553
|
-
jsonSchema: DataJsonSchema;
|
|
554
|
-
};
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* 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.
|
|
558
|
-
*/
|
|
559
|
-
export const DataStatus = {
|
|
560
|
-
Live: "live",
|
|
561
|
-
Draft: "draft",
|
|
562
|
-
Pending: "pending",
|
|
563
|
-
Published: "published",
|
|
564
|
-
} as const;
|
|
565
|
-
/**
|
|
566
|
-
* 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.
|
|
567
|
-
*/
|
|
568
|
-
export type DataStatus = ClosedEnum<typeof DataStatus>;
|
|
569
|
-
|
|
570
|
-
export const GetAllToolsDataType = {
|
|
571
|
-
Function: "function",
|
|
572
|
-
} as const;
|
|
573
|
-
export type GetAllToolsDataType = ClosedEnum<typeof GetAllToolsDataType>;
|
|
574
|
-
|
|
575
|
-
/**
|
|
576
|
-
* The type must be "object"
|
|
577
|
-
*/
|
|
578
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType = {
|
|
579
|
-
Object: "object",
|
|
580
|
-
} as const;
|
|
581
|
-
/**
|
|
582
|
-
* The type must be "object"
|
|
583
|
-
*/
|
|
584
|
-
export type GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType =
|
|
585
|
-
ClosedEnum<
|
|
586
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
|
|
587
|
-
>;
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
* 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.
|
|
591
|
-
*/
|
|
592
|
-
export type DataParameters = {
|
|
593
|
-
/**
|
|
594
|
-
* The type must be "object"
|
|
595
|
-
*/
|
|
596
|
-
type: GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType;
|
|
597
|
-
/**
|
|
598
|
-
* The properties of the function parameters
|
|
599
|
-
*/
|
|
600
|
-
properties: { [k: string]: any };
|
|
601
|
-
/**
|
|
602
|
-
* Array of required parameter names
|
|
603
|
-
*/
|
|
604
|
-
required: Array<string>;
|
|
605
|
-
additionalProperties?: { [k: string]: any } | undefined;
|
|
606
|
-
};
|
|
607
|
-
|
|
608
|
-
export type GetAllToolsDataFunction = {
|
|
609
|
-
/**
|
|
610
|
-
* 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.
|
|
611
|
-
*/
|
|
612
|
-
name: string;
|
|
613
|
-
/**
|
|
614
|
-
* A description of what the function does, used by the model to choose when and how to call the function.
|
|
615
|
-
*/
|
|
616
|
-
description?: string | undefined;
|
|
617
|
-
/**
|
|
618
|
-
* 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.
|
|
619
|
-
*/
|
|
620
|
-
strict?: boolean | undefined;
|
|
621
|
-
/**
|
|
622
|
-
* 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.
|
|
623
|
-
*/
|
|
624
|
-
parameters?: DataParameters | undefined;
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* A custom function tool that allows the model to call predefined functions with structured parameters.
|
|
629
|
-
*/
|
|
630
|
-
export type DataFunctionTool = {
|
|
631
|
-
id?: string | undefined;
|
|
632
|
-
/**
|
|
633
|
-
* Entity storage path in the format: `project/folder/subfolder/...`
|
|
634
|
-
*
|
|
635
|
-
* @remarks
|
|
636
|
-
*
|
|
637
|
-
* The first element identifies the project, followed by nested folders (auto-created as needed).
|
|
638
|
-
*
|
|
639
|
-
* With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
|
|
640
|
-
*/
|
|
641
|
-
path: string;
|
|
642
|
-
/**
|
|
643
|
-
* Unique key of the tool as it will be displayed in the UI
|
|
644
|
-
*/
|
|
645
|
-
key: string;
|
|
646
|
-
/**
|
|
647
|
-
* 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.
|
|
648
|
-
*/
|
|
649
|
-
displayName?: string | undefined;
|
|
650
|
-
/**
|
|
651
|
-
* 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.
|
|
652
|
-
*/
|
|
653
|
-
description: string;
|
|
654
|
-
/**
|
|
655
|
-
* The id of the user that created the tool
|
|
656
|
-
*/
|
|
657
|
-
createdById?: string | undefined;
|
|
658
|
-
/**
|
|
659
|
-
* The id of the user that last updated the tool
|
|
660
|
-
*/
|
|
661
|
-
updatedById?: string | undefined;
|
|
662
|
-
projectId: string;
|
|
663
|
-
workspaceId: string;
|
|
664
|
-
created: string;
|
|
665
|
-
updated: string;
|
|
666
|
-
/**
|
|
667
|
-
* 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.
|
|
668
|
-
*/
|
|
669
|
-
status?: DataStatus | undefined;
|
|
670
|
-
versionHash?: string | undefined;
|
|
671
|
-
type: GetAllToolsDataType;
|
|
672
|
-
function: GetAllToolsDataFunction;
|
|
673
|
-
};
|
|
674
|
-
|
|
675
|
-
export type GetAllToolsData =
|
|
676
|
-
| DataFunctionTool
|
|
677
|
-
| DataJSONSchemaTool
|
|
678
|
-
| DataHTTPTool
|
|
679
|
-
| DataMCPTool
|
|
680
|
-
| DataCodeExecutionTool;
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* Successfully retrieved the list of tools.
|
|
684
|
-
*/
|
|
685
|
-
export type GetAllToolsResponseBody = {
|
|
686
|
-
object: GetAllToolsObject;
|
|
687
|
-
data: Array<
|
|
688
|
-
| DataFunctionTool
|
|
689
|
-
| DataJSONSchemaTool
|
|
690
|
-
| DataHTTPTool
|
|
691
|
-
| DataMCPTool
|
|
692
|
-
| DataCodeExecutionTool
|
|
693
|
-
>;
|
|
694
|
-
hasMore: boolean;
|
|
695
|
-
};
|
|
696
|
-
|
|
697
|
-
/** @internal */
|
|
698
|
-
export const GetAllToolsRequest$inboundSchema: z.ZodType<
|
|
699
|
-
GetAllToolsRequest,
|
|
700
|
-
z.ZodTypeDef,
|
|
701
|
-
unknown
|
|
702
|
-
> = z.object({
|
|
703
|
-
limit: z.number().optional(),
|
|
704
|
-
starting_after: z.string().optional(),
|
|
705
|
-
ending_before: z.string().optional(),
|
|
706
|
-
}).transform((v) => {
|
|
707
|
-
return remap$(v, {
|
|
708
|
-
"starting_after": "startingAfter",
|
|
709
|
-
"ending_before": "endingBefore",
|
|
710
|
-
});
|
|
711
|
-
});
|
|
712
|
-
/** @internal */
|
|
713
|
-
export type GetAllToolsRequest$Outbound = {
|
|
714
|
-
limit?: number | undefined;
|
|
715
|
-
starting_after?: string | undefined;
|
|
716
|
-
ending_before?: string | undefined;
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
/** @internal */
|
|
720
|
-
export const GetAllToolsRequest$outboundSchema: z.ZodType<
|
|
721
|
-
GetAllToolsRequest$Outbound,
|
|
722
|
-
z.ZodTypeDef,
|
|
723
|
-
GetAllToolsRequest
|
|
724
|
-
> = z.object({
|
|
725
|
-
limit: z.number().optional(),
|
|
726
|
-
startingAfter: z.string().optional(),
|
|
727
|
-
endingBefore: z.string().optional(),
|
|
728
|
-
}).transform((v) => {
|
|
729
|
-
return remap$(v, {
|
|
730
|
-
startingAfter: "starting_after",
|
|
731
|
-
endingBefore: "ending_before",
|
|
732
|
-
});
|
|
733
|
-
});
|
|
734
|
-
|
|
735
|
-
export function getAllToolsRequestToJSON(
|
|
736
|
-
getAllToolsRequest: GetAllToolsRequest,
|
|
737
|
-
): string {
|
|
738
|
-
return JSON.stringify(
|
|
739
|
-
GetAllToolsRequest$outboundSchema.parse(getAllToolsRequest),
|
|
740
|
-
);
|
|
741
|
-
}
|
|
742
|
-
export function getAllToolsRequestFromJSON(
|
|
743
|
-
jsonString: string,
|
|
744
|
-
): SafeParseResult<GetAllToolsRequest, SDKValidationError> {
|
|
745
|
-
return safeParse(
|
|
746
|
-
jsonString,
|
|
747
|
-
(x) => GetAllToolsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
748
|
-
`Failed to parse 'GetAllToolsRequest' from JSON`,
|
|
749
|
-
);
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
/** @internal */
|
|
753
|
-
export const GetAllToolsObject$inboundSchema: z.ZodNativeEnum<
|
|
754
|
-
typeof GetAllToolsObject
|
|
755
|
-
> = z.nativeEnum(GetAllToolsObject);
|
|
756
|
-
/** @internal */
|
|
757
|
-
export const GetAllToolsObject$outboundSchema: z.ZodNativeEnum<
|
|
758
|
-
typeof GetAllToolsObject
|
|
759
|
-
> = GetAllToolsObject$inboundSchema;
|
|
760
|
-
|
|
761
|
-
/** @internal */
|
|
762
|
-
export const GetAllToolsDataToolsResponse200Status$inboundSchema:
|
|
763
|
-
z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> = z.nativeEnum(
|
|
764
|
-
GetAllToolsDataToolsResponse200Status,
|
|
765
|
-
);
|
|
766
|
-
/** @internal */
|
|
767
|
-
export const GetAllToolsDataToolsResponse200Status$outboundSchema:
|
|
768
|
-
z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Status> =
|
|
769
|
-
GetAllToolsDataToolsResponse200Status$inboundSchema;
|
|
770
|
-
|
|
771
|
-
/** @internal */
|
|
772
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema:
|
|
773
|
-
z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONType> = z
|
|
774
|
-
.nativeEnum(GetAllToolsDataToolsResponse200ApplicationJSONType);
|
|
775
|
-
/** @internal */
|
|
776
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema:
|
|
777
|
-
z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200ApplicationJSONType> =
|
|
778
|
-
GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema;
|
|
779
|
-
|
|
780
|
-
/** @internal */
|
|
781
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema:
|
|
782
|
-
z.ZodNativeEnum<
|
|
783
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
|
|
784
|
-
> = z.nativeEnum(
|
|
785
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type,
|
|
786
|
-
);
|
|
787
|
-
/** @internal */
|
|
788
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$outboundSchema:
|
|
789
|
-
z.ZodNativeEnum<
|
|
790
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type
|
|
791
|
-
> =
|
|
792
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema;
|
|
793
|
-
|
|
794
|
-
/** @internal */
|
|
795
|
-
export const GetAllToolsDataParameters$inboundSchema: z.ZodType<
|
|
796
|
-
GetAllToolsDataParameters,
|
|
797
|
-
z.ZodTypeDef,
|
|
798
|
-
unknown
|
|
799
|
-
> = collectExtraKeys$(
|
|
800
|
-
z.object({
|
|
801
|
-
type:
|
|
802
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$inboundSchema,
|
|
803
|
-
properties: z.record(z.any()),
|
|
804
|
-
required: z.array(z.string()),
|
|
805
|
-
}).catchall(z.any()),
|
|
806
|
-
"additionalProperties",
|
|
807
|
-
true,
|
|
808
|
-
);
|
|
809
|
-
/** @internal */
|
|
810
|
-
export type GetAllToolsDataParameters$Outbound = {
|
|
811
|
-
type: string;
|
|
812
|
-
properties: { [k: string]: any };
|
|
813
|
-
required: Array<string>;
|
|
814
|
-
[additionalProperties: string]: unknown;
|
|
815
|
-
};
|
|
816
|
-
|
|
817
|
-
/** @internal */
|
|
818
|
-
export const GetAllToolsDataParameters$outboundSchema: z.ZodType<
|
|
819
|
-
GetAllToolsDataParameters$Outbound,
|
|
820
|
-
z.ZodTypeDef,
|
|
821
|
-
GetAllToolsDataParameters
|
|
822
|
-
> = z.object({
|
|
823
|
-
type:
|
|
824
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody5Type$outboundSchema,
|
|
825
|
-
properties: z.record(z.any()),
|
|
826
|
-
required: z.array(z.string()),
|
|
827
|
-
additionalProperties: z.record(z.any()).optional(),
|
|
828
|
-
}).transform((v) => {
|
|
829
|
-
return {
|
|
830
|
-
...v.additionalProperties,
|
|
831
|
-
...remap$(v, {
|
|
832
|
-
additionalProperties: null,
|
|
833
|
-
}),
|
|
834
|
-
};
|
|
835
|
-
});
|
|
836
|
-
|
|
837
|
-
export function getAllToolsDataParametersToJSON(
|
|
838
|
-
getAllToolsDataParameters: GetAllToolsDataParameters,
|
|
839
|
-
): string {
|
|
840
|
-
return JSON.stringify(
|
|
841
|
-
GetAllToolsDataParameters$outboundSchema.parse(getAllToolsDataParameters),
|
|
842
|
-
);
|
|
843
|
-
}
|
|
844
|
-
export function getAllToolsDataParametersFromJSON(
|
|
845
|
-
jsonString: string,
|
|
846
|
-
): SafeParseResult<GetAllToolsDataParameters, SDKValidationError> {
|
|
847
|
-
return safeParse(
|
|
848
|
-
jsonString,
|
|
849
|
-
(x) => GetAllToolsDataParameters$inboundSchema.parse(JSON.parse(x)),
|
|
850
|
-
`Failed to parse 'GetAllToolsDataParameters' from JSON`,
|
|
851
|
-
);
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
/** @internal */
|
|
855
|
-
export const DataLanguage$inboundSchema: z.ZodNativeEnum<typeof DataLanguage> =
|
|
856
|
-
z.nativeEnum(DataLanguage);
|
|
857
|
-
/** @internal */
|
|
858
|
-
export const DataLanguage$outboundSchema: z.ZodNativeEnum<typeof DataLanguage> =
|
|
859
|
-
DataLanguage$inboundSchema;
|
|
860
|
-
|
|
861
|
-
/** @internal */
|
|
862
|
-
export const DataCodeTool$inboundSchema: z.ZodType<
|
|
863
|
-
DataCodeTool,
|
|
864
|
-
z.ZodTypeDef,
|
|
865
|
-
unknown
|
|
866
|
-
> = z.object({
|
|
867
|
-
parameters: z.lazy(() => GetAllToolsDataParameters$inboundSchema).optional(),
|
|
868
|
-
language: DataLanguage$inboundSchema,
|
|
869
|
-
code: z.string(),
|
|
870
|
-
});
|
|
871
|
-
/** @internal */
|
|
872
|
-
export type DataCodeTool$Outbound = {
|
|
873
|
-
parameters?: GetAllToolsDataParameters$Outbound | undefined;
|
|
874
|
-
language: string;
|
|
875
|
-
code: string;
|
|
876
|
-
};
|
|
877
|
-
|
|
878
|
-
/** @internal */
|
|
879
|
-
export const DataCodeTool$outboundSchema: z.ZodType<
|
|
880
|
-
DataCodeTool$Outbound,
|
|
881
|
-
z.ZodTypeDef,
|
|
882
|
-
DataCodeTool
|
|
883
|
-
> = z.object({
|
|
884
|
-
parameters: z.lazy(() => GetAllToolsDataParameters$outboundSchema).optional(),
|
|
885
|
-
language: DataLanguage$outboundSchema,
|
|
886
|
-
code: z.string(),
|
|
887
|
-
});
|
|
888
|
-
|
|
889
|
-
export function dataCodeToolToJSON(dataCodeTool: DataCodeTool): string {
|
|
890
|
-
return JSON.stringify(DataCodeTool$outboundSchema.parse(dataCodeTool));
|
|
891
|
-
}
|
|
892
|
-
export function dataCodeToolFromJSON(
|
|
893
|
-
jsonString: string,
|
|
894
|
-
): SafeParseResult<DataCodeTool, SDKValidationError> {
|
|
895
|
-
return safeParse(
|
|
896
|
-
jsonString,
|
|
897
|
-
(x) => DataCodeTool$inboundSchema.parse(JSON.parse(x)),
|
|
898
|
-
`Failed to parse 'DataCodeTool' from JSON`,
|
|
899
|
-
);
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
/** @internal */
|
|
903
|
-
export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
904
|
-
DataCodeExecutionTool,
|
|
905
|
-
z.ZodTypeDef,
|
|
906
|
-
unknown
|
|
907
|
-
> = z.object({
|
|
908
|
-
_id: z.string().default("tool_01KATB7EZFWH6WY99NAFKTSDDK"),
|
|
909
|
-
path: z.string(),
|
|
910
|
-
key: z.string(),
|
|
911
|
-
display_name: z.string().optional(),
|
|
912
|
-
description: z.string(),
|
|
913
|
-
created_by_id: z.string().optional(),
|
|
914
|
-
updated_by_id: z.string().optional(),
|
|
915
|
-
project_id: z.string(),
|
|
916
|
-
workspace_id: z.string(),
|
|
917
|
-
created: z.string(),
|
|
918
|
-
updated: z.string(),
|
|
919
|
-
status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
|
|
920
|
-
version_hash: z.string().optional(),
|
|
921
|
-
type: GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema,
|
|
922
|
-
code_tool: z.lazy(() => DataCodeTool$inboundSchema),
|
|
923
|
-
}).transform((v) => {
|
|
924
|
-
return remap$(v, {
|
|
925
|
-
"_id": "id",
|
|
926
|
-
"display_name": "displayName",
|
|
927
|
-
"created_by_id": "createdById",
|
|
928
|
-
"updated_by_id": "updatedById",
|
|
929
|
-
"project_id": "projectId",
|
|
930
|
-
"workspace_id": "workspaceId",
|
|
931
|
-
"version_hash": "versionHash",
|
|
932
|
-
"code_tool": "codeTool",
|
|
933
|
-
});
|
|
934
|
-
});
|
|
935
|
-
/** @internal */
|
|
936
|
-
export type DataCodeExecutionTool$Outbound = {
|
|
937
|
-
_id: string;
|
|
938
|
-
path: string;
|
|
939
|
-
key: string;
|
|
940
|
-
display_name?: string | undefined;
|
|
941
|
-
description: string;
|
|
942
|
-
created_by_id?: string | undefined;
|
|
943
|
-
updated_by_id?: string | undefined;
|
|
944
|
-
project_id: string;
|
|
945
|
-
workspace_id: string;
|
|
946
|
-
created: string;
|
|
947
|
-
updated: string;
|
|
948
|
-
status: string;
|
|
949
|
-
version_hash?: string | undefined;
|
|
950
|
-
type: string;
|
|
951
|
-
code_tool: DataCodeTool$Outbound;
|
|
952
|
-
};
|
|
953
|
-
|
|
954
|
-
/** @internal */
|
|
955
|
-
export const DataCodeExecutionTool$outboundSchema: z.ZodType<
|
|
956
|
-
DataCodeExecutionTool$Outbound,
|
|
957
|
-
z.ZodTypeDef,
|
|
958
|
-
DataCodeExecutionTool
|
|
959
|
-
> = z.object({
|
|
960
|
-
id: z.string().default("tool_01KATB7EZFWH6WY99NAFKTSDDK"),
|
|
961
|
-
path: z.string(),
|
|
962
|
-
key: z.string(),
|
|
963
|
-
displayName: z.string().optional(),
|
|
964
|
-
description: z.string(),
|
|
965
|
-
createdById: z.string().optional(),
|
|
966
|
-
updatedById: z.string().optional(),
|
|
967
|
-
projectId: z.string(),
|
|
968
|
-
workspaceId: z.string(),
|
|
969
|
-
created: z.string(),
|
|
970
|
-
updated: z.string(),
|
|
971
|
-
status: GetAllToolsDataToolsResponse200Status$outboundSchema.default("live"),
|
|
972
|
-
versionHash: z.string().optional(),
|
|
973
|
-
type: GetAllToolsDataToolsResponse200ApplicationJSONType$outboundSchema,
|
|
974
|
-
codeTool: z.lazy(() => DataCodeTool$outboundSchema),
|
|
975
|
-
}).transform((v) => {
|
|
976
|
-
return remap$(v, {
|
|
977
|
-
id: "_id",
|
|
978
|
-
displayName: "display_name",
|
|
979
|
-
createdById: "created_by_id",
|
|
980
|
-
updatedById: "updated_by_id",
|
|
981
|
-
projectId: "project_id",
|
|
982
|
-
workspaceId: "workspace_id",
|
|
983
|
-
versionHash: "version_hash",
|
|
984
|
-
codeTool: "code_tool",
|
|
985
|
-
});
|
|
986
|
-
});
|
|
987
|
-
|
|
988
|
-
export function dataCodeExecutionToolToJSON(
|
|
989
|
-
dataCodeExecutionTool: DataCodeExecutionTool,
|
|
990
|
-
): string {
|
|
991
|
-
return JSON.stringify(
|
|
992
|
-
DataCodeExecutionTool$outboundSchema.parse(dataCodeExecutionTool),
|
|
993
|
-
);
|
|
994
|
-
}
|
|
995
|
-
export function dataCodeExecutionToolFromJSON(
|
|
996
|
-
jsonString: string,
|
|
997
|
-
): SafeParseResult<DataCodeExecutionTool, SDKValidationError> {
|
|
998
|
-
return safeParse(
|
|
999
|
-
jsonString,
|
|
1000
|
-
(x) => DataCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
|
|
1001
|
-
`Failed to parse 'DataCodeExecutionTool' from JSON`,
|
|
1002
|
-
);
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
/** @internal */
|
|
1006
|
-
export const GetAllToolsDataToolsResponseStatus$inboundSchema: z.ZodNativeEnum<
|
|
1007
|
-
typeof GetAllToolsDataToolsResponseStatus
|
|
1008
|
-
> = z.nativeEnum(GetAllToolsDataToolsResponseStatus);
|
|
1009
|
-
/** @internal */
|
|
1010
|
-
export const GetAllToolsDataToolsResponseStatus$outboundSchema: z.ZodNativeEnum<
|
|
1011
|
-
typeof GetAllToolsDataToolsResponseStatus
|
|
1012
|
-
> = GetAllToolsDataToolsResponseStatus$inboundSchema;
|
|
1013
|
-
|
|
1014
|
-
/** @internal */
|
|
1015
|
-
export const GetAllToolsDataToolsResponse200Type$inboundSchema: z.ZodNativeEnum<
|
|
1016
|
-
typeof GetAllToolsDataToolsResponse200Type
|
|
1017
|
-
> = z.nativeEnum(GetAllToolsDataToolsResponse200Type);
|
|
1018
|
-
/** @internal */
|
|
1019
|
-
export const GetAllToolsDataToolsResponse200Type$outboundSchema:
|
|
1020
|
-
z.ZodNativeEnum<typeof GetAllToolsDataToolsResponse200Type> =
|
|
1021
|
-
GetAllToolsDataToolsResponse200Type$inboundSchema;
|
|
1022
|
-
|
|
1023
|
-
/** @internal */
|
|
1024
|
-
export const DataHeaders$inboundSchema: z.ZodType<
|
|
1025
|
-
DataHeaders,
|
|
1026
|
-
z.ZodTypeDef,
|
|
1027
|
-
unknown
|
|
1028
|
-
> = z.object({
|
|
1029
|
-
value: z.string(),
|
|
1030
|
-
encrypted: z.boolean().default(false),
|
|
1031
|
-
});
|
|
1032
|
-
/** @internal */
|
|
1033
|
-
export type DataHeaders$Outbound = {
|
|
1034
|
-
value: string;
|
|
1035
|
-
encrypted: boolean;
|
|
1036
|
-
};
|
|
1037
|
-
|
|
1038
|
-
/** @internal */
|
|
1039
|
-
export const DataHeaders$outboundSchema: z.ZodType<
|
|
1040
|
-
DataHeaders$Outbound,
|
|
1041
|
-
z.ZodTypeDef,
|
|
1042
|
-
DataHeaders
|
|
1043
|
-
> = z.object({
|
|
1044
|
-
value: z.string(),
|
|
1045
|
-
encrypted: z.boolean().default(false),
|
|
1046
|
-
});
|
|
1047
|
-
|
|
1048
|
-
export function dataHeadersToJSON(dataHeaders: DataHeaders): string {
|
|
1049
|
-
return JSON.stringify(DataHeaders$outboundSchema.parse(dataHeaders));
|
|
1050
|
-
}
|
|
1051
|
-
export function dataHeadersFromJSON(
|
|
1052
|
-
jsonString: string,
|
|
1053
|
-
): SafeParseResult<DataHeaders, SDKValidationError> {
|
|
1054
|
-
return safeParse(
|
|
1055
|
-
jsonString,
|
|
1056
|
-
(x) => DataHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
1057
|
-
`Failed to parse 'DataHeaders' from JSON`,
|
|
1058
|
-
);
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
/** @internal */
|
|
1062
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema:
|
|
1063
|
-
z.ZodNativeEnum<
|
|
1064
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
|
|
1065
|
-
> = z.nativeEnum(
|
|
1066
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type,
|
|
1067
|
-
);
|
|
1068
|
-
/** @internal */
|
|
1069
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$outboundSchema:
|
|
1070
|
-
z.ZodNativeEnum<
|
|
1071
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type
|
|
1072
|
-
> =
|
|
1073
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema;
|
|
1074
|
-
|
|
1075
|
-
/** @internal */
|
|
1076
|
-
export const GetAllToolsDataSchema$inboundSchema: z.ZodType<
|
|
1077
|
-
GetAllToolsDataSchema,
|
|
1078
|
-
z.ZodTypeDef,
|
|
1079
|
-
unknown
|
|
1080
|
-
> = z.object({
|
|
1081
|
-
type:
|
|
1082
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$inboundSchema,
|
|
1083
|
-
properties: z.record(z.any()).optional(),
|
|
1084
|
-
required: z.array(z.string()).optional(),
|
|
1085
|
-
});
|
|
1086
|
-
/** @internal */
|
|
1087
|
-
export type GetAllToolsDataSchema$Outbound = {
|
|
1088
|
-
type: string;
|
|
1089
|
-
properties?: { [k: string]: any } | undefined;
|
|
1090
|
-
required?: Array<string> | undefined;
|
|
1091
|
-
};
|
|
1092
|
-
|
|
1093
|
-
/** @internal */
|
|
1094
|
-
export const GetAllToolsDataSchema$outboundSchema: z.ZodType<
|
|
1095
|
-
GetAllToolsDataSchema$Outbound,
|
|
1096
|
-
z.ZodTypeDef,
|
|
1097
|
-
GetAllToolsDataSchema
|
|
1098
|
-
> = z.object({
|
|
1099
|
-
type:
|
|
1100
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody4Type$outboundSchema,
|
|
1101
|
-
properties: z.record(z.any()).optional(),
|
|
1102
|
-
required: z.array(z.string()).optional(),
|
|
1103
|
-
});
|
|
1104
|
-
|
|
1105
|
-
export function getAllToolsDataSchemaToJSON(
|
|
1106
|
-
getAllToolsDataSchema: GetAllToolsDataSchema,
|
|
1107
|
-
): string {
|
|
1108
|
-
return JSON.stringify(
|
|
1109
|
-
GetAllToolsDataSchema$outboundSchema.parse(getAllToolsDataSchema),
|
|
1110
|
-
);
|
|
1111
|
-
}
|
|
1112
|
-
export function getAllToolsDataSchemaFromJSON(
|
|
1113
|
-
jsonString: string,
|
|
1114
|
-
): SafeParseResult<GetAllToolsDataSchema, SDKValidationError> {
|
|
1115
|
-
return safeParse(
|
|
1116
|
-
jsonString,
|
|
1117
|
-
(x) => GetAllToolsDataSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1118
|
-
`Failed to parse 'GetAllToolsDataSchema' from JSON`,
|
|
1119
|
-
);
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
/** @internal */
|
|
1123
|
-
export const DataTools$inboundSchema: z.ZodType<
|
|
1124
|
-
DataTools,
|
|
1125
|
-
z.ZodTypeDef,
|
|
1126
|
-
unknown
|
|
1127
|
-
> = z.object({
|
|
1128
|
-
id: z.string().default("01KATB7EZF34F1H4YC268A2HJX"),
|
|
1129
|
-
name: z.string(),
|
|
1130
|
-
description: z.string().optional(),
|
|
1131
|
-
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
1132
|
-
});
|
|
1133
|
-
/** @internal */
|
|
1134
|
-
export type DataTools$Outbound = {
|
|
1135
|
-
id: string;
|
|
1136
|
-
name: string;
|
|
1137
|
-
description?: string | undefined;
|
|
1138
|
-
schema: GetAllToolsDataSchema$Outbound;
|
|
1139
|
-
};
|
|
1140
|
-
|
|
1141
|
-
/** @internal */
|
|
1142
|
-
export const DataTools$outboundSchema: z.ZodType<
|
|
1143
|
-
DataTools$Outbound,
|
|
1144
|
-
z.ZodTypeDef,
|
|
1145
|
-
DataTools
|
|
1146
|
-
> = z.object({
|
|
1147
|
-
id: z.string().default("01KATB7EZF34F1H4YC268A2HJX"),
|
|
1148
|
-
name: z.string(),
|
|
1149
|
-
description: z.string().optional(),
|
|
1150
|
-
schema: z.lazy(() => GetAllToolsDataSchema$outboundSchema),
|
|
1151
|
-
});
|
|
1152
|
-
|
|
1153
|
-
export function dataToolsToJSON(dataTools: DataTools): string {
|
|
1154
|
-
return JSON.stringify(DataTools$outboundSchema.parse(dataTools));
|
|
1155
|
-
}
|
|
1156
|
-
export function dataToolsFromJSON(
|
|
1157
|
-
jsonString: string,
|
|
1158
|
-
): SafeParseResult<DataTools, SDKValidationError> {
|
|
1159
|
-
return safeParse(
|
|
1160
|
-
jsonString,
|
|
1161
|
-
(x) => DataTools$inboundSchema.parse(JSON.parse(x)),
|
|
1162
|
-
`Failed to parse 'DataTools' from JSON`,
|
|
1163
|
-
);
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
/** @internal */
|
|
1167
|
-
export const DataConnectionType$inboundSchema: z.ZodNativeEnum<
|
|
1168
|
-
typeof DataConnectionType
|
|
1169
|
-
> = z.nativeEnum(DataConnectionType);
|
|
1170
|
-
/** @internal */
|
|
1171
|
-
export const DataConnectionType$outboundSchema: z.ZodNativeEnum<
|
|
1172
|
-
typeof DataConnectionType
|
|
1173
|
-
> = DataConnectionType$inboundSchema;
|
|
1174
|
-
|
|
1175
|
-
/** @internal */
|
|
1176
|
-
export const DataMcp$inboundSchema: z.ZodType<DataMcp, z.ZodTypeDef, unknown> =
|
|
1177
|
-
z.object({
|
|
1178
|
-
server_url: z.string(),
|
|
1179
|
-
headers: z.record(z.lazy(() => DataHeaders$inboundSchema)).optional(),
|
|
1180
|
-
tools: z.array(z.lazy(() => DataTools$inboundSchema)),
|
|
1181
|
-
connection_type: DataConnectionType$inboundSchema,
|
|
1182
|
-
}).transform((v) => {
|
|
1183
|
-
return remap$(v, {
|
|
1184
|
-
"server_url": "serverUrl",
|
|
1185
|
-
"connection_type": "connectionType",
|
|
1186
|
-
});
|
|
1187
|
-
});
|
|
1188
|
-
/** @internal */
|
|
1189
|
-
export type DataMcp$Outbound = {
|
|
1190
|
-
server_url: string;
|
|
1191
|
-
headers?: { [k: string]: DataHeaders$Outbound } | undefined;
|
|
1192
|
-
tools: Array<DataTools$Outbound>;
|
|
1193
|
-
connection_type: string;
|
|
1194
|
-
};
|
|
1195
|
-
|
|
1196
|
-
/** @internal */
|
|
1197
|
-
export const DataMcp$outboundSchema: z.ZodType<
|
|
1198
|
-
DataMcp$Outbound,
|
|
1199
|
-
z.ZodTypeDef,
|
|
1200
|
-
DataMcp
|
|
1201
|
-
> = z.object({
|
|
1202
|
-
serverUrl: z.string(),
|
|
1203
|
-
headers: z.record(z.lazy(() => DataHeaders$outboundSchema)).optional(),
|
|
1204
|
-
tools: z.array(z.lazy(() => DataTools$outboundSchema)),
|
|
1205
|
-
connectionType: DataConnectionType$outboundSchema,
|
|
1206
|
-
}).transform((v) => {
|
|
1207
|
-
return remap$(v, {
|
|
1208
|
-
serverUrl: "server_url",
|
|
1209
|
-
connectionType: "connection_type",
|
|
1210
|
-
});
|
|
1211
|
-
});
|
|
1212
|
-
|
|
1213
|
-
export function dataMcpToJSON(dataMcp: DataMcp): string {
|
|
1214
|
-
return JSON.stringify(DataMcp$outboundSchema.parse(dataMcp));
|
|
1215
|
-
}
|
|
1216
|
-
export function dataMcpFromJSON(
|
|
1217
|
-
jsonString: string,
|
|
1218
|
-
): SafeParseResult<DataMcp, SDKValidationError> {
|
|
1219
|
-
return safeParse(
|
|
1220
|
-
jsonString,
|
|
1221
|
-
(x) => DataMcp$inboundSchema.parse(JSON.parse(x)),
|
|
1222
|
-
`Failed to parse 'DataMcp' from JSON`,
|
|
1223
|
-
);
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
/** @internal */
|
|
1227
|
-
export const DataMCPTool$inboundSchema: z.ZodType<
|
|
1228
|
-
DataMCPTool,
|
|
1229
|
-
z.ZodTypeDef,
|
|
1230
|
-
unknown
|
|
1231
|
-
> = z.object({
|
|
1232
|
-
_id: z.string().default("tool_01KATB7EZDBXCHZVJDF518NQ3E"),
|
|
1233
|
-
path: z.string(),
|
|
1234
|
-
key: z.string(),
|
|
1235
|
-
display_name: z.string().optional(),
|
|
1236
|
-
description: z.string(),
|
|
1237
|
-
created_by_id: z.string().optional(),
|
|
1238
|
-
updated_by_id: z.string().optional(),
|
|
1239
|
-
project_id: z.string(),
|
|
1240
|
-
workspace_id: z.string(),
|
|
1241
|
-
created: z.string(),
|
|
1242
|
-
updated: z.string(),
|
|
1243
|
-
status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
|
|
1244
|
-
version_hash: z.string().optional(),
|
|
1245
|
-
type: GetAllToolsDataToolsResponse200Type$inboundSchema,
|
|
1246
|
-
mcp: z.lazy(() => DataMcp$inboundSchema),
|
|
1247
|
-
}).transform((v) => {
|
|
1248
|
-
return remap$(v, {
|
|
1249
|
-
"_id": "id",
|
|
1250
|
-
"display_name": "displayName",
|
|
1251
|
-
"created_by_id": "createdById",
|
|
1252
|
-
"updated_by_id": "updatedById",
|
|
1253
|
-
"project_id": "projectId",
|
|
1254
|
-
"workspace_id": "workspaceId",
|
|
1255
|
-
"version_hash": "versionHash",
|
|
1256
|
-
});
|
|
1257
|
-
});
|
|
1258
|
-
/** @internal */
|
|
1259
|
-
export type DataMCPTool$Outbound = {
|
|
1260
|
-
_id: string;
|
|
1261
|
-
path: string;
|
|
1262
|
-
key: string;
|
|
1263
|
-
display_name?: string | undefined;
|
|
1264
|
-
description: string;
|
|
1265
|
-
created_by_id?: string | undefined;
|
|
1266
|
-
updated_by_id?: string | undefined;
|
|
1267
|
-
project_id: string;
|
|
1268
|
-
workspace_id: string;
|
|
1269
|
-
created: string;
|
|
1270
|
-
updated: string;
|
|
1271
|
-
status: string;
|
|
1272
|
-
version_hash?: string | undefined;
|
|
1273
|
-
type: string;
|
|
1274
|
-
mcp: DataMcp$Outbound;
|
|
1275
|
-
};
|
|
1276
|
-
|
|
1277
|
-
/** @internal */
|
|
1278
|
-
export const DataMCPTool$outboundSchema: z.ZodType<
|
|
1279
|
-
DataMCPTool$Outbound,
|
|
1280
|
-
z.ZodTypeDef,
|
|
1281
|
-
DataMCPTool
|
|
1282
|
-
> = z.object({
|
|
1283
|
-
id: z.string().default("tool_01KATB7EZDBXCHZVJDF518NQ3E"),
|
|
1284
|
-
path: z.string(),
|
|
1285
|
-
key: z.string(),
|
|
1286
|
-
displayName: z.string().optional(),
|
|
1287
|
-
description: z.string(),
|
|
1288
|
-
createdById: z.string().optional(),
|
|
1289
|
-
updatedById: z.string().optional(),
|
|
1290
|
-
projectId: z.string(),
|
|
1291
|
-
workspaceId: z.string(),
|
|
1292
|
-
created: z.string(),
|
|
1293
|
-
updated: z.string(),
|
|
1294
|
-
status: GetAllToolsDataToolsResponseStatus$outboundSchema.default("live"),
|
|
1295
|
-
versionHash: z.string().optional(),
|
|
1296
|
-
type: GetAllToolsDataToolsResponse200Type$outboundSchema,
|
|
1297
|
-
mcp: z.lazy(() => DataMcp$outboundSchema),
|
|
1298
|
-
}).transform((v) => {
|
|
1299
|
-
return remap$(v, {
|
|
1300
|
-
id: "_id",
|
|
1301
|
-
displayName: "display_name",
|
|
1302
|
-
createdById: "created_by_id",
|
|
1303
|
-
updatedById: "updated_by_id",
|
|
1304
|
-
projectId: "project_id",
|
|
1305
|
-
workspaceId: "workspace_id",
|
|
1306
|
-
versionHash: "version_hash",
|
|
1307
|
-
});
|
|
1308
|
-
});
|
|
1309
|
-
|
|
1310
|
-
export function dataMCPToolToJSON(dataMCPTool: DataMCPTool): string {
|
|
1311
|
-
return JSON.stringify(DataMCPTool$outboundSchema.parse(dataMCPTool));
|
|
1312
|
-
}
|
|
1313
|
-
export function dataMCPToolFromJSON(
|
|
1314
|
-
jsonString: string,
|
|
1315
|
-
): SafeParseResult<DataMCPTool, SDKValidationError> {
|
|
1316
|
-
return safeParse(
|
|
1317
|
-
jsonString,
|
|
1318
|
-
(x) => DataMCPTool$inboundSchema.parse(JSON.parse(x)),
|
|
1319
|
-
`Failed to parse 'DataMCPTool' from JSON`,
|
|
1320
|
-
);
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
/** @internal */
|
|
1324
|
-
export const GetAllToolsDataToolsStatus$inboundSchema: z.ZodNativeEnum<
|
|
1325
|
-
typeof GetAllToolsDataToolsStatus
|
|
1326
|
-
> = z.nativeEnum(GetAllToolsDataToolsStatus);
|
|
1327
|
-
/** @internal */
|
|
1328
|
-
export const GetAllToolsDataToolsStatus$outboundSchema: z.ZodNativeEnum<
|
|
1329
|
-
typeof GetAllToolsDataToolsStatus
|
|
1330
|
-
> = GetAllToolsDataToolsStatus$inboundSchema;
|
|
1331
|
-
|
|
1332
|
-
/** @internal */
|
|
1333
|
-
export const GetAllToolsDataToolsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
1334
|
-
typeof GetAllToolsDataToolsResponseType
|
|
1335
|
-
> = z.nativeEnum(GetAllToolsDataToolsResponseType);
|
|
1336
|
-
/** @internal */
|
|
1337
|
-
export const GetAllToolsDataToolsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
1338
|
-
typeof GetAllToolsDataToolsResponseType
|
|
1339
|
-
> = GetAllToolsDataToolsResponseType$inboundSchema;
|
|
1340
|
-
|
|
1341
|
-
/** @internal */
|
|
1342
|
-
export const GetAllToolsDataMethod$inboundSchema: z.ZodNativeEnum<
|
|
1343
|
-
typeof GetAllToolsDataMethod
|
|
1344
|
-
> = z.nativeEnum(GetAllToolsDataMethod);
|
|
1345
|
-
/** @internal */
|
|
1346
|
-
export const GetAllToolsDataMethod$outboundSchema: z.ZodNativeEnum<
|
|
1347
|
-
typeof GetAllToolsDataMethod
|
|
1348
|
-
> = GetAllToolsDataMethod$inboundSchema;
|
|
1349
|
-
|
|
1350
|
-
/** @internal */
|
|
1351
|
-
export const GetAllToolsHeaders2$inboundSchema: z.ZodType<
|
|
1352
|
-
GetAllToolsHeaders2,
|
|
1353
|
-
z.ZodTypeDef,
|
|
1354
|
-
unknown
|
|
1355
|
-
> = z.object({
|
|
1356
|
-
value: z.string(),
|
|
1357
|
-
encrypted: z.boolean().default(false),
|
|
1358
|
-
});
|
|
1359
|
-
/** @internal */
|
|
1360
|
-
export type GetAllToolsHeaders2$Outbound = {
|
|
1361
|
-
value: string;
|
|
1362
|
-
encrypted: boolean;
|
|
1363
|
-
};
|
|
1364
|
-
|
|
1365
|
-
/** @internal */
|
|
1366
|
-
export const GetAllToolsHeaders2$outboundSchema: z.ZodType<
|
|
1367
|
-
GetAllToolsHeaders2$Outbound,
|
|
1368
|
-
z.ZodTypeDef,
|
|
1369
|
-
GetAllToolsHeaders2
|
|
1370
|
-
> = z.object({
|
|
1371
|
-
value: z.string(),
|
|
1372
|
-
encrypted: z.boolean().default(false),
|
|
1373
|
-
});
|
|
1374
|
-
|
|
1375
|
-
export function getAllToolsHeaders2ToJSON(
|
|
1376
|
-
getAllToolsHeaders2: GetAllToolsHeaders2,
|
|
1377
|
-
): string {
|
|
1378
|
-
return JSON.stringify(
|
|
1379
|
-
GetAllToolsHeaders2$outboundSchema.parse(getAllToolsHeaders2),
|
|
1380
|
-
);
|
|
1381
|
-
}
|
|
1382
|
-
export function getAllToolsHeaders2FromJSON(
|
|
1383
|
-
jsonString: string,
|
|
1384
|
-
): SafeParseResult<GetAllToolsHeaders2, SDKValidationError> {
|
|
1385
|
-
return safeParse(
|
|
1386
|
-
jsonString,
|
|
1387
|
-
(x) => GetAllToolsHeaders2$inboundSchema.parse(JSON.parse(x)),
|
|
1388
|
-
`Failed to parse 'GetAllToolsHeaders2' from JSON`,
|
|
1389
|
-
);
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
/** @internal */
|
|
1393
|
-
export const GetAllToolsDataHeaders$inboundSchema: z.ZodType<
|
|
1394
|
-
GetAllToolsDataHeaders,
|
|
1395
|
-
z.ZodTypeDef,
|
|
1396
|
-
unknown
|
|
1397
|
-
> = z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]);
|
|
1398
|
-
/** @internal */
|
|
1399
|
-
export type GetAllToolsDataHeaders$Outbound =
|
|
1400
|
-
| GetAllToolsHeaders2$Outbound
|
|
1401
|
-
| string;
|
|
1402
|
-
|
|
1403
|
-
/** @internal */
|
|
1404
|
-
export const GetAllToolsDataHeaders$outboundSchema: z.ZodType<
|
|
1405
|
-
GetAllToolsDataHeaders$Outbound,
|
|
1406
|
-
z.ZodTypeDef,
|
|
1407
|
-
GetAllToolsDataHeaders
|
|
1408
|
-
> = z.union([z.lazy(() => GetAllToolsHeaders2$outboundSchema), z.string()]);
|
|
1409
|
-
|
|
1410
|
-
export function getAllToolsDataHeadersToJSON(
|
|
1411
|
-
getAllToolsDataHeaders: GetAllToolsDataHeaders,
|
|
1412
|
-
): string {
|
|
1413
|
-
return JSON.stringify(
|
|
1414
|
-
GetAllToolsDataHeaders$outboundSchema.parse(getAllToolsDataHeaders),
|
|
1415
|
-
);
|
|
1416
|
-
}
|
|
1417
|
-
export function getAllToolsDataHeadersFromJSON(
|
|
1418
|
-
jsonString: string,
|
|
1419
|
-
): SafeParseResult<GetAllToolsDataHeaders, SDKValidationError> {
|
|
1420
|
-
return safeParse(
|
|
1421
|
-
jsonString,
|
|
1422
|
-
(x) => GetAllToolsDataHeaders$inboundSchema.parse(JSON.parse(x)),
|
|
1423
|
-
`Failed to parse 'GetAllToolsDataHeaders' from JSON`,
|
|
1424
|
-
);
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
/** @internal */
|
|
1428
|
-
export const DataBlueprint$inboundSchema: z.ZodType<
|
|
1429
|
-
DataBlueprint,
|
|
1430
|
-
z.ZodTypeDef,
|
|
1431
|
-
unknown
|
|
1432
|
-
> = z.object({
|
|
1433
|
-
url: z.string(),
|
|
1434
|
-
method: GetAllToolsDataMethod$inboundSchema,
|
|
1435
|
-
headers: z.record(
|
|
1436
|
-
z.union([z.lazy(() => GetAllToolsHeaders2$inboundSchema), z.string()]),
|
|
1437
|
-
).optional(),
|
|
1438
|
-
body: z.record(z.any()).optional(),
|
|
1439
|
-
});
|
|
1440
|
-
/** @internal */
|
|
1441
|
-
export type DataBlueprint$Outbound = {
|
|
1442
|
-
url: string;
|
|
1443
|
-
method: string;
|
|
1444
|
-
headers?: { [k: string]: GetAllToolsHeaders2$Outbound | string } | undefined;
|
|
1445
|
-
body?: { [k: string]: any } | undefined;
|
|
1446
|
-
};
|
|
1447
|
-
|
|
1448
|
-
/** @internal */
|
|
1449
|
-
export const DataBlueprint$outboundSchema: z.ZodType<
|
|
1450
|
-
DataBlueprint$Outbound,
|
|
1451
|
-
z.ZodTypeDef,
|
|
1452
|
-
DataBlueprint
|
|
1453
|
-
> = z.object({
|
|
1454
|
-
url: z.string(),
|
|
1455
|
-
method: GetAllToolsDataMethod$outboundSchema,
|
|
1456
|
-
headers: z.record(
|
|
1457
|
-
z.union([z.lazy(() => GetAllToolsHeaders2$outboundSchema), z.string()]),
|
|
1458
|
-
).optional(),
|
|
1459
|
-
body: z.record(z.any()).optional(),
|
|
1460
|
-
});
|
|
1461
|
-
|
|
1462
|
-
export function dataBlueprintToJSON(dataBlueprint: DataBlueprint): string {
|
|
1463
|
-
return JSON.stringify(DataBlueprint$outboundSchema.parse(dataBlueprint));
|
|
1464
|
-
}
|
|
1465
|
-
export function dataBlueprintFromJSON(
|
|
1466
|
-
jsonString: string,
|
|
1467
|
-
): SafeParseResult<DataBlueprint, SDKValidationError> {
|
|
1468
|
-
return safeParse(
|
|
1469
|
-
jsonString,
|
|
1470
|
-
(x) => DataBlueprint$inboundSchema.parse(JSON.parse(x)),
|
|
1471
|
-
`Failed to parse 'DataBlueprint' from JSON`,
|
|
1472
|
-
);
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
/** @internal */
|
|
1476
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema:
|
|
1477
|
-
z.ZodNativeEnum<
|
|
1478
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
|
|
1479
|
-
> = z.nativeEnum(
|
|
1480
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type,
|
|
1481
|
-
);
|
|
1482
|
-
/** @internal */
|
|
1483
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema:
|
|
1484
|
-
z.ZodNativeEnum<
|
|
1485
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type
|
|
1486
|
-
> =
|
|
1487
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema;
|
|
1488
|
-
|
|
1489
|
-
/** @internal */
|
|
1490
|
-
export const DataDefaultValue$inboundSchema: z.ZodType<
|
|
1491
|
-
DataDefaultValue,
|
|
1492
|
-
z.ZodTypeDef,
|
|
1493
|
-
unknown
|
|
1494
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1495
|
-
/** @internal */
|
|
1496
|
-
export type DataDefaultValue$Outbound = string | number | boolean;
|
|
1497
|
-
|
|
1498
|
-
/** @internal */
|
|
1499
|
-
export const DataDefaultValue$outboundSchema: z.ZodType<
|
|
1500
|
-
DataDefaultValue$Outbound,
|
|
1501
|
-
z.ZodTypeDef,
|
|
1502
|
-
DataDefaultValue
|
|
1503
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1504
|
-
|
|
1505
|
-
export function dataDefaultValueToJSON(
|
|
1506
|
-
dataDefaultValue: DataDefaultValue,
|
|
1507
|
-
): string {
|
|
1508
|
-
return JSON.stringify(
|
|
1509
|
-
DataDefaultValue$outboundSchema.parse(dataDefaultValue),
|
|
1510
|
-
);
|
|
1511
|
-
}
|
|
1512
|
-
export function dataDefaultValueFromJSON(
|
|
1513
|
-
jsonString: string,
|
|
1514
|
-
): SafeParseResult<DataDefaultValue, SDKValidationError> {
|
|
1515
|
-
return safeParse(
|
|
1516
|
-
jsonString,
|
|
1517
|
-
(x) => DataDefaultValue$inboundSchema.parse(JSON.parse(x)),
|
|
1518
|
-
`Failed to parse 'DataDefaultValue' from JSON`,
|
|
1519
|
-
);
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
/** @internal */
|
|
1523
|
-
export const DataArguments$inboundSchema: z.ZodType<
|
|
1524
|
-
DataArguments,
|
|
1525
|
-
z.ZodTypeDef,
|
|
1526
|
-
unknown
|
|
1527
|
-
> = z.object({
|
|
1528
|
-
type:
|
|
1529
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$inboundSchema,
|
|
1530
|
-
description: z.string(),
|
|
1531
|
-
send_to_model: z.boolean().default(true),
|
|
1532
|
-
default_value: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
1533
|
-
}).transform((v) => {
|
|
1534
|
-
return remap$(v, {
|
|
1535
|
-
"send_to_model": "sendToModel",
|
|
1536
|
-
"default_value": "defaultValue",
|
|
1537
|
-
});
|
|
1538
|
-
});
|
|
1539
|
-
/** @internal */
|
|
1540
|
-
export type DataArguments$Outbound = {
|
|
1541
|
-
type: string;
|
|
1542
|
-
description: string;
|
|
1543
|
-
send_to_model: boolean;
|
|
1544
|
-
default_value?: string | number | boolean | undefined;
|
|
1545
|
-
};
|
|
1546
|
-
|
|
1547
|
-
/** @internal */
|
|
1548
|
-
export const DataArguments$outboundSchema: z.ZodType<
|
|
1549
|
-
DataArguments$Outbound,
|
|
1550
|
-
z.ZodTypeDef,
|
|
1551
|
-
DataArguments
|
|
1552
|
-
> = z.object({
|
|
1553
|
-
type:
|
|
1554
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBody3Type$outboundSchema,
|
|
1555
|
-
description: z.string(),
|
|
1556
|
-
sendToModel: z.boolean().default(true),
|
|
1557
|
-
defaultValue: z.union([z.string(), z.number(), z.boolean()]).optional(),
|
|
1558
|
-
}).transform((v) => {
|
|
1559
|
-
return remap$(v, {
|
|
1560
|
-
sendToModel: "send_to_model",
|
|
1561
|
-
defaultValue: "default_value",
|
|
1562
|
-
});
|
|
1563
|
-
});
|
|
1564
|
-
|
|
1565
|
-
export function dataArgumentsToJSON(dataArguments: DataArguments): string {
|
|
1566
|
-
return JSON.stringify(DataArguments$outboundSchema.parse(dataArguments));
|
|
1567
|
-
}
|
|
1568
|
-
export function dataArgumentsFromJSON(
|
|
1569
|
-
jsonString: string,
|
|
1570
|
-
): SafeParseResult<DataArguments, SDKValidationError> {
|
|
1571
|
-
return safeParse(
|
|
1572
|
-
jsonString,
|
|
1573
|
-
(x) => DataArguments$inboundSchema.parse(JSON.parse(x)),
|
|
1574
|
-
`Failed to parse 'DataArguments' from JSON`,
|
|
1575
|
-
);
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
/** @internal */
|
|
1579
|
-
export const GetAllToolsDataHttp$inboundSchema: z.ZodType<
|
|
1580
|
-
GetAllToolsDataHttp,
|
|
1581
|
-
z.ZodTypeDef,
|
|
1582
|
-
unknown
|
|
1583
|
-
> = z.object({
|
|
1584
|
-
blueprint: z.lazy(() => DataBlueprint$inboundSchema),
|
|
1585
|
-
arguments: z.record(z.lazy(() => DataArguments$inboundSchema)).optional(),
|
|
1586
|
-
});
|
|
1587
|
-
/** @internal */
|
|
1588
|
-
export type GetAllToolsDataHttp$Outbound = {
|
|
1589
|
-
blueprint: DataBlueprint$Outbound;
|
|
1590
|
-
arguments?: { [k: string]: DataArguments$Outbound } | undefined;
|
|
1591
|
-
};
|
|
1592
|
-
|
|
1593
|
-
/** @internal */
|
|
1594
|
-
export const GetAllToolsDataHttp$outboundSchema: z.ZodType<
|
|
1595
|
-
GetAllToolsDataHttp$Outbound,
|
|
1596
|
-
z.ZodTypeDef,
|
|
1597
|
-
GetAllToolsDataHttp
|
|
1598
|
-
> = z.object({
|
|
1599
|
-
blueprint: z.lazy(() => DataBlueprint$outboundSchema),
|
|
1600
|
-
arguments: z.record(z.lazy(() => DataArguments$outboundSchema)).optional(),
|
|
1601
|
-
});
|
|
1602
|
-
|
|
1603
|
-
export function getAllToolsDataHttpToJSON(
|
|
1604
|
-
getAllToolsDataHttp: GetAllToolsDataHttp,
|
|
1605
|
-
): string {
|
|
1606
|
-
return JSON.stringify(
|
|
1607
|
-
GetAllToolsDataHttp$outboundSchema.parse(getAllToolsDataHttp),
|
|
1608
|
-
);
|
|
1609
|
-
}
|
|
1610
|
-
export function getAllToolsDataHttpFromJSON(
|
|
1611
|
-
jsonString: string,
|
|
1612
|
-
): SafeParseResult<GetAllToolsDataHttp, SDKValidationError> {
|
|
1613
|
-
return safeParse(
|
|
1614
|
-
jsonString,
|
|
1615
|
-
(x) => GetAllToolsDataHttp$inboundSchema.parse(JSON.parse(x)),
|
|
1616
|
-
`Failed to parse 'GetAllToolsDataHttp' from JSON`,
|
|
1617
|
-
);
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
/** @internal */
|
|
1621
|
-
export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
1622
|
-
DataHTTPTool,
|
|
1623
|
-
z.ZodTypeDef,
|
|
1624
|
-
unknown
|
|
1625
|
-
> = z.object({
|
|
1626
|
-
_id: z.string().default("tool_01KATB7EZBNBNQ41T5AF76NR18"),
|
|
1627
|
-
path: z.string(),
|
|
1628
|
-
key: z.string(),
|
|
1629
|
-
display_name: z.string().optional(),
|
|
1630
|
-
description: z.string(),
|
|
1631
|
-
created_by_id: z.string().optional(),
|
|
1632
|
-
updated_by_id: z.string().optional(),
|
|
1633
|
-
project_id: z.string(),
|
|
1634
|
-
workspace_id: z.string(),
|
|
1635
|
-
created: z.string(),
|
|
1636
|
-
updated: z.string(),
|
|
1637
|
-
status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
|
|
1638
|
-
version_hash: z.string().optional(),
|
|
1639
|
-
type: GetAllToolsDataToolsResponseType$inboundSchema,
|
|
1640
|
-
http: z.lazy(() => GetAllToolsDataHttp$inboundSchema),
|
|
1641
|
-
}).transform((v) => {
|
|
1642
|
-
return remap$(v, {
|
|
1643
|
-
"_id": "id",
|
|
1644
|
-
"display_name": "displayName",
|
|
1645
|
-
"created_by_id": "createdById",
|
|
1646
|
-
"updated_by_id": "updatedById",
|
|
1647
|
-
"project_id": "projectId",
|
|
1648
|
-
"workspace_id": "workspaceId",
|
|
1649
|
-
"version_hash": "versionHash",
|
|
1650
|
-
});
|
|
1651
|
-
});
|
|
1652
|
-
/** @internal */
|
|
1653
|
-
export type DataHTTPTool$Outbound = {
|
|
1654
|
-
_id: string;
|
|
1655
|
-
path: string;
|
|
1656
|
-
key: string;
|
|
1657
|
-
display_name?: string | undefined;
|
|
1658
|
-
description: string;
|
|
1659
|
-
created_by_id?: string | undefined;
|
|
1660
|
-
updated_by_id?: string | undefined;
|
|
1661
|
-
project_id: string;
|
|
1662
|
-
workspace_id: string;
|
|
1663
|
-
created: string;
|
|
1664
|
-
updated: string;
|
|
1665
|
-
status: string;
|
|
1666
|
-
version_hash?: string | undefined;
|
|
1667
|
-
type: string;
|
|
1668
|
-
http: GetAllToolsDataHttp$Outbound;
|
|
1669
|
-
};
|
|
1670
|
-
|
|
1671
|
-
/** @internal */
|
|
1672
|
-
export const DataHTTPTool$outboundSchema: z.ZodType<
|
|
1673
|
-
DataHTTPTool$Outbound,
|
|
1674
|
-
z.ZodTypeDef,
|
|
1675
|
-
DataHTTPTool
|
|
1676
|
-
> = z.object({
|
|
1677
|
-
id: z.string().default("tool_01KATB7EZBNBNQ41T5AF76NR18"),
|
|
1678
|
-
path: z.string(),
|
|
1679
|
-
key: z.string(),
|
|
1680
|
-
displayName: z.string().optional(),
|
|
1681
|
-
description: z.string(),
|
|
1682
|
-
createdById: z.string().optional(),
|
|
1683
|
-
updatedById: z.string().optional(),
|
|
1684
|
-
projectId: z.string(),
|
|
1685
|
-
workspaceId: z.string(),
|
|
1686
|
-
created: z.string(),
|
|
1687
|
-
updated: z.string(),
|
|
1688
|
-
status: GetAllToolsDataToolsStatus$outboundSchema.default("live"),
|
|
1689
|
-
versionHash: z.string().optional(),
|
|
1690
|
-
type: GetAllToolsDataToolsResponseType$outboundSchema,
|
|
1691
|
-
http: z.lazy(() => GetAllToolsDataHttp$outboundSchema),
|
|
1692
|
-
}).transform((v) => {
|
|
1693
|
-
return remap$(v, {
|
|
1694
|
-
id: "_id",
|
|
1695
|
-
displayName: "display_name",
|
|
1696
|
-
createdById: "created_by_id",
|
|
1697
|
-
updatedById: "updated_by_id",
|
|
1698
|
-
projectId: "project_id",
|
|
1699
|
-
workspaceId: "workspace_id",
|
|
1700
|
-
versionHash: "version_hash",
|
|
1701
|
-
});
|
|
1702
|
-
});
|
|
1703
|
-
|
|
1704
|
-
export function dataHTTPToolToJSON(dataHTTPTool: DataHTTPTool): string {
|
|
1705
|
-
return JSON.stringify(DataHTTPTool$outboundSchema.parse(dataHTTPTool));
|
|
1706
|
-
}
|
|
1707
|
-
export function dataHTTPToolFromJSON(
|
|
1708
|
-
jsonString: string,
|
|
1709
|
-
): SafeParseResult<DataHTTPTool, SDKValidationError> {
|
|
1710
|
-
return safeParse(
|
|
1711
|
-
jsonString,
|
|
1712
|
-
(x) => DataHTTPTool$inboundSchema.parse(JSON.parse(x)),
|
|
1713
|
-
`Failed to parse 'DataHTTPTool' from JSON`,
|
|
1714
|
-
);
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
/** @internal */
|
|
1718
|
-
export const GetAllToolsDataStatus$inboundSchema: z.ZodNativeEnum<
|
|
1719
|
-
typeof GetAllToolsDataStatus
|
|
1720
|
-
> = z.nativeEnum(GetAllToolsDataStatus);
|
|
1721
|
-
/** @internal */
|
|
1722
|
-
export const GetAllToolsDataStatus$outboundSchema: z.ZodNativeEnum<
|
|
1723
|
-
typeof GetAllToolsDataStatus
|
|
1724
|
-
> = GetAllToolsDataStatus$inboundSchema;
|
|
1725
|
-
|
|
1726
|
-
/** @internal */
|
|
1727
|
-
export const GetAllToolsDataToolsType$inboundSchema: z.ZodNativeEnum<
|
|
1728
|
-
typeof GetAllToolsDataToolsType
|
|
1729
|
-
> = z.nativeEnum(GetAllToolsDataToolsType);
|
|
1730
|
-
/** @internal */
|
|
1731
|
-
export const GetAllToolsDataToolsType$outboundSchema: z.ZodNativeEnum<
|
|
1732
|
-
typeof GetAllToolsDataToolsType
|
|
1733
|
-
> = GetAllToolsDataToolsType$inboundSchema;
|
|
1734
|
-
|
|
1735
|
-
/** @internal */
|
|
1736
|
-
export const DataSchema$inboundSchema: z.ZodType<
|
|
1737
|
-
DataSchema,
|
|
1738
|
-
z.ZodTypeDef,
|
|
1739
|
-
unknown
|
|
1740
|
-
> = collectExtraKeys$(
|
|
1741
|
-
z.object({
|
|
1742
|
-
type: z.string(),
|
|
1743
|
-
properties: z.record(z.any()),
|
|
1744
|
-
required: z.array(z.string()),
|
|
1745
|
-
}).catchall(z.any()),
|
|
1746
|
-
"additionalProperties",
|
|
1747
|
-
true,
|
|
1748
|
-
);
|
|
1749
|
-
/** @internal */
|
|
1750
|
-
export type DataSchema$Outbound = {
|
|
1751
|
-
type: string;
|
|
1752
|
-
properties: { [k: string]: any };
|
|
1753
|
-
required: Array<string>;
|
|
1754
|
-
[additionalProperties: string]: unknown;
|
|
1755
|
-
};
|
|
1756
|
-
|
|
1757
|
-
/** @internal */
|
|
1758
|
-
export const DataSchema$outboundSchema: z.ZodType<
|
|
1759
|
-
DataSchema$Outbound,
|
|
1760
|
-
z.ZodTypeDef,
|
|
1761
|
-
DataSchema
|
|
1762
|
-
> = z.object({
|
|
1763
|
-
type: z.string(),
|
|
1764
|
-
properties: z.record(z.any()),
|
|
1765
|
-
required: z.array(z.string()),
|
|
1766
|
-
additionalProperties: z.record(z.any()).optional(),
|
|
1767
|
-
}).transform((v) => {
|
|
1768
|
-
return {
|
|
1769
|
-
...v.additionalProperties,
|
|
1770
|
-
...remap$(v, {
|
|
1771
|
-
additionalProperties: null,
|
|
1772
|
-
}),
|
|
1773
|
-
};
|
|
1774
|
-
});
|
|
1775
|
-
|
|
1776
|
-
export function dataSchemaToJSON(dataSchema: DataSchema): string {
|
|
1777
|
-
return JSON.stringify(DataSchema$outboundSchema.parse(dataSchema));
|
|
1778
|
-
}
|
|
1779
|
-
export function dataSchemaFromJSON(
|
|
1780
|
-
jsonString: string,
|
|
1781
|
-
): SafeParseResult<DataSchema, SDKValidationError> {
|
|
1782
|
-
return safeParse(
|
|
1783
|
-
jsonString,
|
|
1784
|
-
(x) => DataSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1785
|
-
`Failed to parse 'DataSchema' from JSON`,
|
|
1786
|
-
);
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
/** @internal */
|
|
1790
|
-
export const DataJsonSchema$inboundSchema: z.ZodType<
|
|
1791
|
-
DataJsonSchema,
|
|
1792
|
-
z.ZodTypeDef,
|
|
1793
|
-
unknown
|
|
1794
|
-
> = z.object({
|
|
1795
|
-
name: z.string(),
|
|
1796
|
-
description: z.string(),
|
|
1797
|
-
schema: z.lazy(() => DataSchema$inboundSchema),
|
|
1798
|
-
strict: z.boolean().optional(),
|
|
1799
|
-
});
|
|
1800
|
-
/** @internal */
|
|
1801
|
-
export type DataJsonSchema$Outbound = {
|
|
1802
|
-
name: string;
|
|
1803
|
-
description: string;
|
|
1804
|
-
schema: DataSchema$Outbound;
|
|
1805
|
-
strict?: boolean | undefined;
|
|
1806
|
-
};
|
|
1807
|
-
|
|
1808
|
-
/** @internal */
|
|
1809
|
-
export const DataJsonSchema$outboundSchema: z.ZodType<
|
|
1810
|
-
DataJsonSchema$Outbound,
|
|
1811
|
-
z.ZodTypeDef,
|
|
1812
|
-
DataJsonSchema
|
|
1813
|
-
> = z.object({
|
|
1814
|
-
name: z.string(),
|
|
1815
|
-
description: z.string(),
|
|
1816
|
-
schema: z.lazy(() => DataSchema$outboundSchema),
|
|
1817
|
-
strict: z.boolean().optional(),
|
|
1818
|
-
});
|
|
1819
|
-
|
|
1820
|
-
export function dataJsonSchemaToJSON(dataJsonSchema: DataJsonSchema): string {
|
|
1821
|
-
return JSON.stringify(DataJsonSchema$outboundSchema.parse(dataJsonSchema));
|
|
1822
|
-
}
|
|
1823
|
-
export function dataJsonSchemaFromJSON(
|
|
1824
|
-
jsonString: string,
|
|
1825
|
-
): SafeParseResult<DataJsonSchema, SDKValidationError> {
|
|
1826
|
-
return safeParse(
|
|
1827
|
-
jsonString,
|
|
1828
|
-
(x) => DataJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1829
|
-
`Failed to parse 'DataJsonSchema' from JSON`,
|
|
1830
|
-
);
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
/** @internal */
|
|
1834
|
-
export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
1835
|
-
DataJSONSchemaTool,
|
|
1836
|
-
z.ZodTypeDef,
|
|
1837
|
-
unknown
|
|
1838
|
-
> = z.object({
|
|
1839
|
-
_id: z.string().default("tool_01KATB7EZA2KDDYMWY6NPY5YZR"),
|
|
1840
|
-
path: z.string(),
|
|
1841
|
-
key: z.string(),
|
|
1842
|
-
display_name: z.string().optional(),
|
|
1843
|
-
description: z.string(),
|
|
1844
|
-
created_by_id: z.string().optional(),
|
|
1845
|
-
updated_by_id: z.string().optional(),
|
|
1846
|
-
project_id: z.string(),
|
|
1847
|
-
workspace_id: z.string(),
|
|
1848
|
-
created: z.string(),
|
|
1849
|
-
updated: z.string(),
|
|
1850
|
-
status: GetAllToolsDataStatus$inboundSchema.default("live"),
|
|
1851
|
-
version_hash: z.string().optional(),
|
|
1852
|
-
type: GetAllToolsDataToolsType$inboundSchema,
|
|
1853
|
-
json_schema: z.lazy(() => DataJsonSchema$inboundSchema),
|
|
1854
|
-
}).transform((v) => {
|
|
1855
|
-
return remap$(v, {
|
|
1856
|
-
"_id": "id",
|
|
1857
|
-
"display_name": "displayName",
|
|
1858
|
-
"created_by_id": "createdById",
|
|
1859
|
-
"updated_by_id": "updatedById",
|
|
1860
|
-
"project_id": "projectId",
|
|
1861
|
-
"workspace_id": "workspaceId",
|
|
1862
|
-
"version_hash": "versionHash",
|
|
1863
|
-
"json_schema": "jsonSchema",
|
|
1864
|
-
});
|
|
1865
|
-
});
|
|
1866
|
-
/** @internal */
|
|
1867
|
-
export type DataJSONSchemaTool$Outbound = {
|
|
1868
|
-
_id: string;
|
|
1869
|
-
path: string;
|
|
1870
|
-
key: string;
|
|
1871
|
-
display_name?: string | undefined;
|
|
1872
|
-
description: string;
|
|
1873
|
-
created_by_id?: string | undefined;
|
|
1874
|
-
updated_by_id?: string | undefined;
|
|
1875
|
-
project_id: string;
|
|
1876
|
-
workspace_id: string;
|
|
1877
|
-
created: string;
|
|
1878
|
-
updated: string;
|
|
1879
|
-
status: string;
|
|
1880
|
-
version_hash?: string | undefined;
|
|
1881
|
-
type: string;
|
|
1882
|
-
json_schema: DataJsonSchema$Outbound;
|
|
1883
|
-
};
|
|
1884
|
-
|
|
1885
|
-
/** @internal */
|
|
1886
|
-
export const DataJSONSchemaTool$outboundSchema: z.ZodType<
|
|
1887
|
-
DataJSONSchemaTool$Outbound,
|
|
1888
|
-
z.ZodTypeDef,
|
|
1889
|
-
DataJSONSchemaTool
|
|
1890
|
-
> = z.object({
|
|
1891
|
-
id: z.string().default("tool_01KATB7EZA2KDDYMWY6NPY5YZR"),
|
|
1892
|
-
path: z.string(),
|
|
1893
|
-
key: z.string(),
|
|
1894
|
-
displayName: z.string().optional(),
|
|
1895
|
-
description: z.string(),
|
|
1896
|
-
createdById: z.string().optional(),
|
|
1897
|
-
updatedById: z.string().optional(),
|
|
1898
|
-
projectId: z.string(),
|
|
1899
|
-
workspaceId: z.string(),
|
|
1900
|
-
created: z.string(),
|
|
1901
|
-
updated: z.string(),
|
|
1902
|
-
status: GetAllToolsDataStatus$outboundSchema.default("live"),
|
|
1903
|
-
versionHash: z.string().optional(),
|
|
1904
|
-
type: GetAllToolsDataToolsType$outboundSchema,
|
|
1905
|
-
jsonSchema: z.lazy(() => DataJsonSchema$outboundSchema),
|
|
1906
|
-
}).transform((v) => {
|
|
1907
|
-
return remap$(v, {
|
|
1908
|
-
id: "_id",
|
|
1909
|
-
displayName: "display_name",
|
|
1910
|
-
createdById: "created_by_id",
|
|
1911
|
-
updatedById: "updated_by_id",
|
|
1912
|
-
projectId: "project_id",
|
|
1913
|
-
workspaceId: "workspace_id",
|
|
1914
|
-
versionHash: "version_hash",
|
|
1915
|
-
jsonSchema: "json_schema",
|
|
1916
|
-
});
|
|
1917
|
-
});
|
|
1918
|
-
|
|
1919
|
-
export function dataJSONSchemaToolToJSON(
|
|
1920
|
-
dataJSONSchemaTool: DataJSONSchemaTool,
|
|
1921
|
-
): string {
|
|
1922
|
-
return JSON.stringify(
|
|
1923
|
-
DataJSONSchemaTool$outboundSchema.parse(dataJSONSchemaTool),
|
|
1924
|
-
);
|
|
1925
|
-
}
|
|
1926
|
-
export function dataJSONSchemaToolFromJSON(
|
|
1927
|
-
jsonString: string,
|
|
1928
|
-
): SafeParseResult<DataJSONSchemaTool, SDKValidationError> {
|
|
1929
|
-
return safeParse(
|
|
1930
|
-
jsonString,
|
|
1931
|
-
(x) => DataJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
|
|
1932
|
-
`Failed to parse 'DataJSONSchemaTool' from JSON`,
|
|
1933
|
-
);
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
/** @internal */
|
|
1937
|
-
export const DataStatus$inboundSchema: z.ZodNativeEnum<typeof DataStatus> = z
|
|
1938
|
-
.nativeEnum(DataStatus);
|
|
1939
|
-
/** @internal */
|
|
1940
|
-
export const DataStatus$outboundSchema: z.ZodNativeEnum<typeof DataStatus> =
|
|
1941
|
-
DataStatus$inboundSchema;
|
|
1942
|
-
|
|
1943
|
-
/** @internal */
|
|
1944
|
-
export const GetAllToolsDataType$inboundSchema: z.ZodNativeEnum<
|
|
1945
|
-
typeof GetAllToolsDataType
|
|
1946
|
-
> = z.nativeEnum(GetAllToolsDataType);
|
|
1947
|
-
/** @internal */
|
|
1948
|
-
export const GetAllToolsDataType$outboundSchema: z.ZodNativeEnum<
|
|
1949
|
-
typeof GetAllToolsDataType
|
|
1950
|
-
> = GetAllToolsDataType$inboundSchema;
|
|
1951
|
-
|
|
1952
|
-
/** @internal */
|
|
1953
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
1954
|
-
z.ZodNativeEnum<
|
|
1955
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
|
|
1956
|
-
> = z.nativeEnum(
|
|
1957
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType,
|
|
1958
|
-
);
|
|
1959
|
-
/** @internal */
|
|
1960
|
-
export const GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema:
|
|
1961
|
-
z.ZodNativeEnum<
|
|
1962
|
-
typeof GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType
|
|
1963
|
-
> =
|
|
1964
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
1965
|
-
|
|
1966
|
-
/** @internal */
|
|
1967
|
-
export const DataParameters$inboundSchema: z.ZodType<
|
|
1968
|
-
DataParameters,
|
|
1969
|
-
z.ZodTypeDef,
|
|
1970
|
-
unknown
|
|
1971
|
-
> = collectExtraKeys$(
|
|
1972
|
-
z.object({
|
|
1973
|
-
type:
|
|
1974
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
1975
|
-
properties: z.record(z.any()),
|
|
1976
|
-
required: z.array(z.string()),
|
|
1977
|
-
}).catchall(z.any()),
|
|
1978
|
-
"additionalProperties",
|
|
1979
|
-
true,
|
|
1980
|
-
);
|
|
1981
|
-
/** @internal */
|
|
1982
|
-
export type DataParameters$Outbound = {
|
|
1983
|
-
type: string;
|
|
1984
|
-
properties: { [k: string]: any };
|
|
1985
|
-
required: Array<string>;
|
|
1986
|
-
[additionalProperties: string]: unknown;
|
|
1987
|
-
};
|
|
1988
|
-
|
|
1989
|
-
/** @internal */
|
|
1990
|
-
export const DataParameters$outboundSchema: z.ZodType<
|
|
1991
|
-
DataParameters$Outbound,
|
|
1992
|
-
z.ZodTypeDef,
|
|
1993
|
-
DataParameters
|
|
1994
|
-
> = z.object({
|
|
1995
|
-
type:
|
|
1996
|
-
GetAllToolsDataToolsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
1997
|
-
properties: z.record(z.any()),
|
|
1998
|
-
required: z.array(z.string()),
|
|
1999
|
-
additionalProperties: z.record(z.any()).optional(),
|
|
2000
|
-
}).transform((v) => {
|
|
2001
|
-
return {
|
|
2002
|
-
...v.additionalProperties,
|
|
2003
|
-
...remap$(v, {
|
|
2004
|
-
additionalProperties: null,
|
|
2005
|
-
}),
|
|
2006
|
-
};
|
|
2007
|
-
});
|
|
2008
|
-
|
|
2009
|
-
export function dataParametersToJSON(dataParameters: DataParameters): string {
|
|
2010
|
-
return JSON.stringify(DataParameters$outboundSchema.parse(dataParameters));
|
|
2011
|
-
}
|
|
2012
|
-
export function dataParametersFromJSON(
|
|
2013
|
-
jsonString: string,
|
|
2014
|
-
): SafeParseResult<DataParameters, SDKValidationError> {
|
|
2015
|
-
return safeParse(
|
|
2016
|
-
jsonString,
|
|
2017
|
-
(x) => DataParameters$inboundSchema.parse(JSON.parse(x)),
|
|
2018
|
-
`Failed to parse 'DataParameters' from JSON`,
|
|
2019
|
-
);
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
/** @internal */
|
|
2023
|
-
export const GetAllToolsDataFunction$inboundSchema: z.ZodType<
|
|
2024
|
-
GetAllToolsDataFunction,
|
|
2025
|
-
z.ZodTypeDef,
|
|
2026
|
-
unknown
|
|
2027
|
-
> = z.object({
|
|
2028
|
-
name: z.string(),
|
|
2029
|
-
description: z.string().optional(),
|
|
2030
|
-
strict: z.boolean().optional(),
|
|
2031
|
-
parameters: z.lazy(() => DataParameters$inboundSchema).optional(),
|
|
2032
|
-
});
|
|
2033
|
-
/** @internal */
|
|
2034
|
-
export type GetAllToolsDataFunction$Outbound = {
|
|
2035
|
-
name: string;
|
|
2036
|
-
description?: string | undefined;
|
|
2037
|
-
strict?: boolean | undefined;
|
|
2038
|
-
parameters?: DataParameters$Outbound | undefined;
|
|
2039
|
-
};
|
|
2040
|
-
|
|
2041
|
-
/** @internal */
|
|
2042
|
-
export const GetAllToolsDataFunction$outboundSchema: z.ZodType<
|
|
2043
|
-
GetAllToolsDataFunction$Outbound,
|
|
2044
|
-
z.ZodTypeDef,
|
|
2045
|
-
GetAllToolsDataFunction
|
|
2046
|
-
> = z.object({
|
|
2047
|
-
name: z.string(),
|
|
2048
|
-
description: z.string().optional(),
|
|
2049
|
-
strict: z.boolean().optional(),
|
|
2050
|
-
parameters: z.lazy(() => DataParameters$outboundSchema).optional(),
|
|
2051
|
-
});
|
|
2052
|
-
|
|
2053
|
-
export function getAllToolsDataFunctionToJSON(
|
|
2054
|
-
getAllToolsDataFunction: GetAllToolsDataFunction,
|
|
2055
|
-
): string {
|
|
2056
|
-
return JSON.stringify(
|
|
2057
|
-
GetAllToolsDataFunction$outboundSchema.parse(getAllToolsDataFunction),
|
|
2058
|
-
);
|
|
2059
|
-
}
|
|
2060
|
-
export function getAllToolsDataFunctionFromJSON(
|
|
2061
|
-
jsonString: string,
|
|
2062
|
-
): SafeParseResult<GetAllToolsDataFunction, SDKValidationError> {
|
|
2063
|
-
return safeParse(
|
|
2064
|
-
jsonString,
|
|
2065
|
-
(x) => GetAllToolsDataFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2066
|
-
`Failed to parse 'GetAllToolsDataFunction' from JSON`,
|
|
2067
|
-
);
|
|
2068
|
-
}
|
|
2069
|
-
|
|
2070
|
-
/** @internal */
|
|
2071
|
-
export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
2072
|
-
DataFunctionTool,
|
|
2073
|
-
z.ZodTypeDef,
|
|
2074
|
-
unknown
|
|
2075
|
-
> = z.object({
|
|
2076
|
-
_id: z.string().default("tool_01KATB7EZ8PBCAG6KRD0XCSWG4"),
|
|
2077
|
-
path: z.string(),
|
|
2078
|
-
key: z.string(),
|
|
2079
|
-
display_name: z.string().optional(),
|
|
2080
|
-
description: z.string(),
|
|
2081
|
-
created_by_id: z.string().optional(),
|
|
2082
|
-
updated_by_id: z.string().optional(),
|
|
2083
|
-
project_id: z.string(),
|
|
2084
|
-
workspace_id: z.string(),
|
|
2085
|
-
created: z.string(),
|
|
2086
|
-
updated: z.string(),
|
|
2087
|
-
status: DataStatus$inboundSchema.default("live"),
|
|
2088
|
-
version_hash: z.string().optional(),
|
|
2089
|
-
type: GetAllToolsDataType$inboundSchema,
|
|
2090
|
-
function: z.lazy(() => GetAllToolsDataFunction$inboundSchema),
|
|
2091
|
-
}).transform((v) => {
|
|
2092
|
-
return remap$(v, {
|
|
2093
|
-
"_id": "id",
|
|
2094
|
-
"display_name": "displayName",
|
|
2095
|
-
"created_by_id": "createdById",
|
|
2096
|
-
"updated_by_id": "updatedById",
|
|
2097
|
-
"project_id": "projectId",
|
|
2098
|
-
"workspace_id": "workspaceId",
|
|
2099
|
-
"version_hash": "versionHash",
|
|
2100
|
-
});
|
|
2101
|
-
});
|
|
2102
|
-
/** @internal */
|
|
2103
|
-
export type DataFunctionTool$Outbound = {
|
|
2104
|
-
_id: string;
|
|
2105
|
-
path: string;
|
|
2106
|
-
key: string;
|
|
2107
|
-
display_name?: string | undefined;
|
|
2108
|
-
description: string;
|
|
2109
|
-
created_by_id?: string | undefined;
|
|
2110
|
-
updated_by_id?: string | undefined;
|
|
2111
|
-
project_id: string;
|
|
2112
|
-
workspace_id: string;
|
|
2113
|
-
created: string;
|
|
2114
|
-
updated: string;
|
|
2115
|
-
status: string;
|
|
2116
|
-
version_hash?: string | undefined;
|
|
2117
|
-
type: string;
|
|
2118
|
-
function: GetAllToolsDataFunction$Outbound;
|
|
2119
|
-
};
|
|
2120
|
-
|
|
2121
|
-
/** @internal */
|
|
2122
|
-
export const DataFunctionTool$outboundSchema: z.ZodType<
|
|
2123
|
-
DataFunctionTool$Outbound,
|
|
2124
|
-
z.ZodTypeDef,
|
|
2125
|
-
DataFunctionTool
|
|
2126
|
-
> = z.object({
|
|
2127
|
-
id: z.string().default("tool_01KATB7EZ8PBCAG6KRD0XCSWG4"),
|
|
2128
|
-
path: z.string(),
|
|
2129
|
-
key: z.string(),
|
|
2130
|
-
displayName: z.string().optional(),
|
|
2131
|
-
description: z.string(),
|
|
2132
|
-
createdById: z.string().optional(),
|
|
2133
|
-
updatedById: z.string().optional(),
|
|
2134
|
-
projectId: z.string(),
|
|
2135
|
-
workspaceId: z.string(),
|
|
2136
|
-
created: z.string(),
|
|
2137
|
-
updated: z.string(),
|
|
2138
|
-
status: DataStatus$outboundSchema.default("live"),
|
|
2139
|
-
versionHash: z.string().optional(),
|
|
2140
|
-
type: GetAllToolsDataType$outboundSchema,
|
|
2141
|
-
function: z.lazy(() => GetAllToolsDataFunction$outboundSchema),
|
|
2142
|
-
}).transform((v) => {
|
|
2143
|
-
return remap$(v, {
|
|
2144
|
-
id: "_id",
|
|
2145
|
-
displayName: "display_name",
|
|
2146
|
-
createdById: "created_by_id",
|
|
2147
|
-
updatedById: "updated_by_id",
|
|
2148
|
-
projectId: "project_id",
|
|
2149
|
-
workspaceId: "workspace_id",
|
|
2150
|
-
versionHash: "version_hash",
|
|
2151
|
-
});
|
|
2152
|
-
});
|
|
2153
|
-
|
|
2154
|
-
export function dataFunctionToolToJSON(
|
|
2155
|
-
dataFunctionTool: DataFunctionTool,
|
|
2156
|
-
): string {
|
|
2157
|
-
return JSON.stringify(
|
|
2158
|
-
DataFunctionTool$outboundSchema.parse(dataFunctionTool),
|
|
2159
|
-
);
|
|
2160
|
-
}
|
|
2161
|
-
export function dataFunctionToolFromJSON(
|
|
2162
|
-
jsonString: string,
|
|
2163
|
-
): SafeParseResult<DataFunctionTool, SDKValidationError> {
|
|
2164
|
-
return safeParse(
|
|
2165
|
-
jsonString,
|
|
2166
|
-
(x) => DataFunctionTool$inboundSchema.parse(JSON.parse(x)),
|
|
2167
|
-
`Failed to parse 'DataFunctionTool' from JSON`,
|
|
2168
|
-
);
|
|
2169
|
-
}
|
|
2170
|
-
|
|
2171
|
-
/** @internal */
|
|
2172
|
-
export const GetAllToolsData$inboundSchema: z.ZodType<
|
|
2173
|
-
GetAllToolsData,
|
|
2174
|
-
z.ZodTypeDef,
|
|
2175
|
-
unknown
|
|
2176
|
-
> = z.union([
|
|
2177
|
-
z.lazy(() => DataFunctionTool$inboundSchema),
|
|
2178
|
-
z.lazy(() => DataJSONSchemaTool$inboundSchema),
|
|
2179
|
-
z.lazy(() => DataHTTPTool$inboundSchema),
|
|
2180
|
-
z.lazy(() => DataMCPTool$inboundSchema),
|
|
2181
|
-
z.lazy(() => DataCodeExecutionTool$inboundSchema),
|
|
2182
|
-
]);
|
|
2183
|
-
/** @internal */
|
|
2184
|
-
export type GetAllToolsData$Outbound =
|
|
2185
|
-
| DataFunctionTool$Outbound
|
|
2186
|
-
| DataJSONSchemaTool$Outbound
|
|
2187
|
-
| DataHTTPTool$Outbound
|
|
2188
|
-
| DataMCPTool$Outbound
|
|
2189
|
-
| DataCodeExecutionTool$Outbound;
|
|
2190
|
-
|
|
2191
|
-
/** @internal */
|
|
2192
|
-
export const GetAllToolsData$outboundSchema: z.ZodType<
|
|
2193
|
-
GetAllToolsData$Outbound,
|
|
2194
|
-
z.ZodTypeDef,
|
|
2195
|
-
GetAllToolsData
|
|
2196
|
-
> = z.union([
|
|
2197
|
-
z.lazy(() => DataFunctionTool$outboundSchema),
|
|
2198
|
-
z.lazy(() => DataJSONSchemaTool$outboundSchema),
|
|
2199
|
-
z.lazy(() => DataHTTPTool$outboundSchema),
|
|
2200
|
-
z.lazy(() => DataMCPTool$outboundSchema),
|
|
2201
|
-
z.lazy(() => DataCodeExecutionTool$outboundSchema),
|
|
2202
|
-
]);
|
|
2203
|
-
|
|
2204
|
-
export function getAllToolsDataToJSON(
|
|
2205
|
-
getAllToolsData: GetAllToolsData,
|
|
2206
|
-
): string {
|
|
2207
|
-
return JSON.stringify(GetAllToolsData$outboundSchema.parse(getAllToolsData));
|
|
2208
|
-
}
|
|
2209
|
-
export function getAllToolsDataFromJSON(
|
|
2210
|
-
jsonString: string,
|
|
2211
|
-
): SafeParseResult<GetAllToolsData, SDKValidationError> {
|
|
2212
|
-
return safeParse(
|
|
2213
|
-
jsonString,
|
|
2214
|
-
(x) => GetAllToolsData$inboundSchema.parse(JSON.parse(x)),
|
|
2215
|
-
`Failed to parse 'GetAllToolsData' from JSON`,
|
|
2216
|
-
);
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
/** @internal */
|
|
2220
|
-
export const GetAllToolsResponseBody$inboundSchema: z.ZodType<
|
|
2221
|
-
GetAllToolsResponseBody,
|
|
2222
|
-
z.ZodTypeDef,
|
|
2223
|
-
unknown
|
|
2224
|
-
> = z.object({
|
|
2225
|
-
object: GetAllToolsObject$inboundSchema,
|
|
2226
|
-
data: z.array(
|
|
2227
|
-
z.union([
|
|
2228
|
-
z.lazy(() => DataFunctionTool$inboundSchema),
|
|
2229
|
-
z.lazy(() => DataJSONSchemaTool$inboundSchema),
|
|
2230
|
-
z.lazy(() => DataHTTPTool$inboundSchema),
|
|
2231
|
-
z.lazy(() => DataMCPTool$inboundSchema),
|
|
2232
|
-
z.lazy(() => DataCodeExecutionTool$inboundSchema),
|
|
2233
|
-
]),
|
|
2234
|
-
),
|
|
2235
|
-
has_more: z.boolean(),
|
|
2236
|
-
}).transform((v) => {
|
|
2237
|
-
return remap$(v, {
|
|
2238
|
-
"has_more": "hasMore",
|
|
2239
|
-
});
|
|
2240
|
-
});
|
|
2241
|
-
/** @internal */
|
|
2242
|
-
export type GetAllToolsResponseBody$Outbound = {
|
|
2243
|
-
object: string;
|
|
2244
|
-
data: Array<
|
|
2245
|
-
| DataFunctionTool$Outbound
|
|
2246
|
-
| DataJSONSchemaTool$Outbound
|
|
2247
|
-
| DataHTTPTool$Outbound
|
|
2248
|
-
| DataMCPTool$Outbound
|
|
2249
|
-
| DataCodeExecutionTool$Outbound
|
|
2250
|
-
>;
|
|
2251
|
-
has_more: boolean;
|
|
2252
|
-
};
|
|
2253
|
-
|
|
2254
|
-
/** @internal */
|
|
2255
|
-
export const GetAllToolsResponseBody$outboundSchema: z.ZodType<
|
|
2256
|
-
GetAllToolsResponseBody$Outbound,
|
|
2257
|
-
z.ZodTypeDef,
|
|
2258
|
-
GetAllToolsResponseBody
|
|
2259
|
-
> = z.object({
|
|
2260
|
-
object: GetAllToolsObject$outboundSchema,
|
|
2261
|
-
data: z.array(
|
|
2262
|
-
z.union([
|
|
2263
|
-
z.lazy(() => DataFunctionTool$outboundSchema),
|
|
2264
|
-
z.lazy(() => DataJSONSchemaTool$outboundSchema),
|
|
2265
|
-
z.lazy(() => DataHTTPTool$outboundSchema),
|
|
2266
|
-
z.lazy(() => DataMCPTool$outboundSchema),
|
|
2267
|
-
z.lazy(() => DataCodeExecutionTool$outboundSchema),
|
|
2268
|
-
]),
|
|
2269
|
-
),
|
|
2270
|
-
hasMore: z.boolean(),
|
|
2271
|
-
}).transform((v) => {
|
|
2272
|
-
return remap$(v, {
|
|
2273
|
-
hasMore: "has_more",
|
|
2274
|
-
});
|
|
2275
|
-
});
|
|
2276
|
-
|
|
2277
|
-
export function getAllToolsResponseBodyToJSON(
|
|
2278
|
-
getAllToolsResponseBody: GetAllToolsResponseBody,
|
|
2279
|
-
): string {
|
|
2280
|
-
return JSON.stringify(
|
|
2281
|
-
GetAllToolsResponseBody$outboundSchema.parse(getAllToolsResponseBody),
|
|
2282
|
-
);
|
|
2283
|
-
}
|
|
2284
|
-
export function getAllToolsResponseBodyFromJSON(
|
|
2285
|
-
jsonString: string,
|
|
2286
|
-
): SafeParseResult<GetAllToolsResponseBody, SDKValidationError> {
|
|
2287
|
-
return safeParse(
|
|
2288
|
-
jsonString,
|
|
2289
|
-
(x) => GetAllToolsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
2290
|
-
`Failed to parse 'GetAllToolsResponseBody' from JSON`,
|
|
2291
|
-
);
|
|
2292
|
-
}
|