@orq-ai/node 3.14.8 → 4.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +210 -213
- package/bin/mcp-server.js.map +38 -38
- package/docs/sdks/agents/README.md +8 -4
- package/docs/sdks/budgets/README.md +4 -2
- package/docs/sdks/tools/README.md +4 -2
- package/examples/package-lock.json +5 -6
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +10 -10
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +10 -10
- package/package.json +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/FUNCTIONS.md +0 -103
- package/packages/orq-rc/README.md +0 -909
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/agents/README.md +0 -1319
- package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
- package/packages/orq-rc/docs/sdks/chunking/README.md +0 -95
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
- package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
- package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
- package/packages/orq-rc/docs/sdks/files/README.md +0 -301
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1489
- package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1172
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
- package/packages/orq-rc/docs/sdks/models/README.md +0 -76
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
- package/packages/orq-rc/docs/sdks/tools/README.md +0 -490
- package/packages/orq-rc/examples/README.md +0 -31
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/examples/package-lock.json +0 -627
- package/packages/orq-rc/examples/package.json +0 -18
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -3071
- package/packages/orq-rc/package.json +0 -43
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -167
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -167
- package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -163
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -190
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -188
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
- package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -171
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +0 -175
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -483
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -135
- package/packages/orq-rc/src/lib/files.ts +0 -82
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -345
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -407
- package/packages/orq-rc/src/lib/security.ts +0 -264
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
- package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
- package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
- package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
- package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
- package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
- package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
- package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
- package/packages/orq-rc/src/mcp-server/server.ts +0 -259
- package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
- package/packages/orq-rc/src/models/components/deployments.ts +0 -8147
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/security.ts +0 -71
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -91
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +0 -91
- package/packages/orq-rc/src/models/errors/getagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -80
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -80
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -80
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -90
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -29
- package/packages/orq-rc/src/models/errors/listagenttasks.ts +0 -80
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -91
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -83
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -80
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -91
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -78
- package/packages/orq-rc/src/models/operations/createagent.ts +0 -3104
- package/packages/orq-rc/src/models/operations/createbudget.ts +0 -745
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -428
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -267
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -302
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -6943
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -9341
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1850
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -274
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -287
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -2032
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -7812
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -4077
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -243
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -87
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -66
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -87
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -98
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -78
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -75
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -6547
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -10532
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1266
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2606
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -10655
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +0 -2349
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
- package/packages/orq-rc/src/models/operations/getagent.ts +0 -957
- package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -259
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -318
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -338
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -1277
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2572
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2308
- package/packages/orq-rc/src/models/operations/getbudget.ts +0 -441
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -230
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -7486
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1292
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2437
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2444
- package/packages/orq-rc/src/models/operations/index.ts +0 -102
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1569
- package/packages/orq-rc/src/models/operations/listactions.ts +0 -526
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -1077
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -1106
- package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -617
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -507
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -500
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -4086
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -454
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1303
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2580
- package/packages/orq-rc/src/models/operations/parse.ts +0 -1295
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -426
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -210
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -3853
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -291
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -201
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -220
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -1160
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2333
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -4342
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3573
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -1367
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -4355
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -3321
- package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -628
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -325
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -6934
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -386
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -9704
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -2341
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -283
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -296
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -1363
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -8176
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4288
- package/packages/orq-rc/src/sdk/agents.ts +0 -238
- package/packages/orq-rc/src/sdk/budgets.ts +0 -99
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/contacts.ts +0 -99
- package/packages/orq-rc/src/sdk/datasets.ts +0 -204
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/evals.ts +0 -69
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/sdk.ts +0 -97
- package/packages/orq-rc/src/sdk/tools.ts +0 -117
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -16
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/tsconfig.json +0 -41
|
@@ -1,1569 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Tool message
|
|
14
|
-
*/
|
|
15
|
-
export const RoleToolMessage = {
|
|
16
|
-
Tool: "tool",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Tool message
|
|
20
|
-
*/
|
|
21
|
-
export type RoleToolMessage = ClosedEnum<typeof RoleToolMessage>;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* User message
|
|
25
|
-
*/
|
|
26
|
-
export const RoleUserMessage = {
|
|
27
|
-
User: "user",
|
|
28
|
-
} as const;
|
|
29
|
-
/**
|
|
30
|
-
* User message
|
|
31
|
-
*/
|
|
32
|
-
export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Message role (user or tool for continuing executions)
|
|
36
|
-
*/
|
|
37
|
-
export type InvokeAgentRole = RoleUserMessage | RoleToolMessage;
|
|
38
|
-
|
|
39
|
-
export const InvokeAgentPublicMessagePartKind = {
|
|
40
|
-
ToolResult: "tool_result",
|
|
41
|
-
} as const;
|
|
42
|
-
export type InvokeAgentPublicMessagePartKind = ClosedEnum<
|
|
43
|
-
typeof InvokeAgentPublicMessagePartKind
|
|
44
|
-
>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
48
|
-
*/
|
|
49
|
-
export type ToolResultPart = {
|
|
50
|
-
kind: InvokeAgentPublicMessagePartKind;
|
|
51
|
-
toolCallId: string;
|
|
52
|
-
result?: any | undefined;
|
|
53
|
-
metadata?: { [k: string]: any } | undefined;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const PublicMessagePartKind = {
|
|
57
|
-
File: "file",
|
|
58
|
-
} as const;
|
|
59
|
-
export type PublicMessagePartKind = ClosedEnum<typeof PublicMessagePartKind>;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
63
|
-
*/
|
|
64
|
-
export type FileInURIFormat = {
|
|
65
|
-
/**
|
|
66
|
-
* URL for the File content
|
|
67
|
-
*/
|
|
68
|
-
uri: string;
|
|
69
|
-
/**
|
|
70
|
-
* Optional mimeType for the file
|
|
71
|
-
*/
|
|
72
|
-
mimeType?: string | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* Optional name for the file
|
|
75
|
-
*/
|
|
76
|
-
name?: string | undefined;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
81
|
-
*/
|
|
82
|
-
export type BinaryFormat = {
|
|
83
|
-
/**
|
|
84
|
-
* base64 encoded content of the file
|
|
85
|
-
*/
|
|
86
|
-
bytes: string;
|
|
87
|
-
/**
|
|
88
|
-
* Optional mimeType for the file
|
|
89
|
-
*/
|
|
90
|
-
mimeType?: string | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* Optional name for the file
|
|
93
|
-
*/
|
|
94
|
-
name?: string | undefined;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export type PublicMessagePartFile = BinaryFormat | FileInURIFormat;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
101
|
-
*/
|
|
102
|
-
export type FilePart = {
|
|
103
|
-
kind: PublicMessagePartKind;
|
|
104
|
-
file: BinaryFormat | FileInURIFormat;
|
|
105
|
-
metadata?: { [k: string]: any } | undefined;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export const Kind = {
|
|
109
|
-
Text: "text",
|
|
110
|
-
} as const;
|
|
111
|
-
export type Kind = ClosedEnum<typeof Kind>;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Text content part. Use this to send text messages to the agent.
|
|
115
|
-
*/
|
|
116
|
-
export type TextPart = {
|
|
117
|
-
kind: Kind;
|
|
118
|
-
text: string;
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
123
|
-
*/
|
|
124
|
-
export type PublicMessagePart = TextPart | FilePart | ToolResultPart;
|
|
125
|
-
|
|
126
|
-
export type Message = {
|
|
127
|
-
/**
|
|
128
|
-
* Optional A2A message ID in ULID format
|
|
129
|
-
*/
|
|
130
|
-
messageId?: string | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* Message role (user or tool for continuing executions)
|
|
133
|
-
*/
|
|
134
|
-
role: RoleUserMessage | RoleToolMessage;
|
|
135
|
-
/**
|
|
136
|
-
* A2A message parts (text, file, or tool_result only)
|
|
137
|
-
*/
|
|
138
|
-
parts: Array<TextPart | FilePart | ToolResultPart>;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
143
|
-
*/
|
|
144
|
-
export type Contact = {
|
|
145
|
-
/**
|
|
146
|
-
* Unique identifier for the contact
|
|
147
|
-
*/
|
|
148
|
-
id: string;
|
|
149
|
-
/**
|
|
150
|
-
* Display name of the contact
|
|
151
|
-
*/
|
|
152
|
-
displayName?: string | undefined;
|
|
153
|
-
/**
|
|
154
|
-
* Email address of the contact
|
|
155
|
-
*/
|
|
156
|
-
email?: string | undefined;
|
|
157
|
-
/**
|
|
158
|
-
* A hash of key/value pairs containing any other data about the contact
|
|
159
|
-
*/
|
|
160
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
161
|
-
/**
|
|
162
|
-
* URL to the contact's avatar or logo
|
|
163
|
-
*/
|
|
164
|
-
logoUrl?: string | undefined;
|
|
165
|
-
/**
|
|
166
|
-
* A list of tags associated with the contact
|
|
167
|
-
*/
|
|
168
|
-
tags?: Array<string> | undefined;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Thread information to group related requests
|
|
173
|
-
*/
|
|
174
|
-
export type InvokeAgentThread = {
|
|
175
|
-
/**
|
|
176
|
-
* Unique thread identifier to group related invocations.
|
|
177
|
-
*/
|
|
178
|
-
id: string;
|
|
179
|
-
/**
|
|
180
|
-
* Optional tags to differentiate or categorize threads
|
|
181
|
-
*/
|
|
182
|
-
tags?: Array<string> | undefined;
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
187
|
-
*/
|
|
188
|
-
export type Memory = {
|
|
189
|
-
/**
|
|
190
|
-
* An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
|
|
191
|
-
*/
|
|
192
|
-
entityId: string;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
export type InvokeAgentRequestBody = {
|
|
196
|
-
/**
|
|
197
|
-
* Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
|
|
198
|
-
*/
|
|
199
|
-
taskId?: string | undefined;
|
|
200
|
-
message: Message;
|
|
201
|
-
/**
|
|
202
|
-
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
203
|
-
*/
|
|
204
|
-
variables?: { [k: string]: any } | undefined;
|
|
205
|
-
/**
|
|
206
|
-
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
207
|
-
*/
|
|
208
|
-
contact?: Contact | undefined;
|
|
209
|
-
/**
|
|
210
|
-
* Thread information to group related requests
|
|
211
|
-
*/
|
|
212
|
-
thread?: InvokeAgentThread | undefined;
|
|
213
|
-
/**
|
|
214
|
-
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
215
|
-
*/
|
|
216
|
-
memory?: Memory | undefined;
|
|
217
|
-
/**
|
|
218
|
-
* Optional metadata for the agent invocation as key-value pairs that will be included in traces
|
|
219
|
-
*/
|
|
220
|
-
metadata?: { [k: string]: any } | undefined;
|
|
221
|
-
};
|
|
222
|
-
|
|
223
|
-
export type InvokeAgentRequest = {
|
|
224
|
-
/**
|
|
225
|
-
* The key or ID of the agent to invoke
|
|
226
|
-
*/
|
|
227
|
-
key: string;
|
|
228
|
-
requestBody?: InvokeAgentRequestBody | undefined;
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* A2A entity type
|
|
233
|
-
*/
|
|
234
|
-
export const InvokeAgentKind = {
|
|
235
|
-
Task: "task",
|
|
236
|
-
} as const;
|
|
237
|
-
/**
|
|
238
|
-
* A2A entity type
|
|
239
|
-
*/
|
|
240
|
-
export type InvokeAgentKind = ClosedEnum<typeof InvokeAgentKind>;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Current task state
|
|
244
|
-
*/
|
|
245
|
-
export const InvokeAgentState = {
|
|
246
|
-
Submitted: "submitted",
|
|
247
|
-
Working: "working",
|
|
248
|
-
InputRequired: "input-required",
|
|
249
|
-
Completed: "completed",
|
|
250
|
-
Failed: "failed",
|
|
251
|
-
Canceled: "canceled",
|
|
252
|
-
Rejected: "rejected",
|
|
253
|
-
AuthRequired: "auth-required",
|
|
254
|
-
Unknown: "unknown",
|
|
255
|
-
} as const;
|
|
256
|
-
/**
|
|
257
|
-
* Current task state
|
|
258
|
-
*/
|
|
259
|
-
export type InvokeAgentState = ClosedEnum<typeof InvokeAgentState>;
|
|
260
|
-
|
|
261
|
-
export const InvokeAgentAgentsKind = {
|
|
262
|
-
Message: "message",
|
|
263
|
-
} as const;
|
|
264
|
-
export type InvokeAgentAgentsKind = ClosedEnum<typeof InvokeAgentAgentsKind>;
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Extended A2A message role
|
|
268
|
-
*/
|
|
269
|
-
export const InvokeAgentAgentsRole = {
|
|
270
|
-
User: "user",
|
|
271
|
-
Agent: "agent",
|
|
272
|
-
Tool: "tool",
|
|
273
|
-
System: "system",
|
|
274
|
-
} as const;
|
|
275
|
-
/**
|
|
276
|
-
* Extended A2A message role
|
|
277
|
-
*/
|
|
278
|
-
export type InvokeAgentAgentsRole = ClosedEnum<typeof InvokeAgentAgentsRole>;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Optional status message
|
|
282
|
-
*/
|
|
283
|
-
export type InvokeAgentMessage = {
|
|
284
|
-
kind: InvokeAgentAgentsKind;
|
|
285
|
-
messageId: string;
|
|
286
|
-
/**
|
|
287
|
-
* Extended A2A message role
|
|
288
|
-
*/
|
|
289
|
-
role: InvokeAgentAgentsRole;
|
|
290
|
-
parts: Array<any>;
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Task status information
|
|
295
|
-
*/
|
|
296
|
-
export type InvokeAgentStatus = {
|
|
297
|
-
/**
|
|
298
|
-
* Current task state
|
|
299
|
-
*/
|
|
300
|
-
state: InvokeAgentState;
|
|
301
|
-
/**
|
|
302
|
-
* ISO timestamp of status update
|
|
303
|
-
*/
|
|
304
|
-
timestamp?: string | undefined;
|
|
305
|
-
/**
|
|
306
|
-
* Optional status message
|
|
307
|
-
*/
|
|
308
|
-
message?: InvokeAgentMessage | undefined;
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* A2A Task response format
|
|
313
|
-
*/
|
|
314
|
-
export type InvokeAgentResponseBody = {
|
|
315
|
-
/**
|
|
316
|
-
* The ID of the created agent execution task
|
|
317
|
-
*/
|
|
318
|
-
id: string;
|
|
319
|
-
/**
|
|
320
|
-
* The correlation ID for this execution
|
|
321
|
-
*/
|
|
322
|
-
contextId: string;
|
|
323
|
-
/**
|
|
324
|
-
* A2A entity type
|
|
325
|
-
*/
|
|
326
|
-
kind: InvokeAgentKind;
|
|
327
|
-
/**
|
|
328
|
-
* Task status information
|
|
329
|
-
*/
|
|
330
|
-
status: InvokeAgentStatus;
|
|
331
|
-
/**
|
|
332
|
-
* Task metadata containing workspace_id and trace_id for feedback
|
|
333
|
-
*/
|
|
334
|
-
metadata?: { [k: string]: any } | undefined;
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
/** @internal */
|
|
338
|
-
export const RoleToolMessage$inboundSchema: z.ZodNativeEnum<
|
|
339
|
-
typeof RoleToolMessage
|
|
340
|
-
> = z.nativeEnum(RoleToolMessage);
|
|
341
|
-
|
|
342
|
-
/** @internal */
|
|
343
|
-
export const RoleToolMessage$outboundSchema: z.ZodNativeEnum<
|
|
344
|
-
typeof RoleToolMessage
|
|
345
|
-
> = RoleToolMessage$inboundSchema;
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* @internal
|
|
349
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
350
|
-
*/
|
|
351
|
-
export namespace RoleToolMessage$ {
|
|
352
|
-
/** @deprecated use `RoleToolMessage$inboundSchema` instead. */
|
|
353
|
-
export const inboundSchema = RoleToolMessage$inboundSchema;
|
|
354
|
-
/** @deprecated use `RoleToolMessage$outboundSchema` instead. */
|
|
355
|
-
export const outboundSchema = RoleToolMessage$outboundSchema;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
/** @internal */
|
|
359
|
-
export const RoleUserMessage$inboundSchema: z.ZodNativeEnum<
|
|
360
|
-
typeof RoleUserMessage
|
|
361
|
-
> = z.nativeEnum(RoleUserMessage);
|
|
362
|
-
|
|
363
|
-
/** @internal */
|
|
364
|
-
export const RoleUserMessage$outboundSchema: z.ZodNativeEnum<
|
|
365
|
-
typeof RoleUserMessage
|
|
366
|
-
> = RoleUserMessage$inboundSchema;
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* @internal
|
|
370
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
371
|
-
*/
|
|
372
|
-
export namespace RoleUserMessage$ {
|
|
373
|
-
/** @deprecated use `RoleUserMessage$inboundSchema` instead. */
|
|
374
|
-
export const inboundSchema = RoleUserMessage$inboundSchema;
|
|
375
|
-
/** @deprecated use `RoleUserMessage$outboundSchema` instead. */
|
|
376
|
-
export const outboundSchema = RoleUserMessage$outboundSchema;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
/** @internal */
|
|
380
|
-
export const InvokeAgentRole$inboundSchema: z.ZodType<
|
|
381
|
-
InvokeAgentRole,
|
|
382
|
-
z.ZodTypeDef,
|
|
383
|
-
unknown
|
|
384
|
-
> = z.union([RoleUserMessage$inboundSchema, RoleToolMessage$inboundSchema]);
|
|
385
|
-
|
|
386
|
-
/** @internal */
|
|
387
|
-
export type InvokeAgentRole$Outbound = string | string;
|
|
388
|
-
|
|
389
|
-
/** @internal */
|
|
390
|
-
export const InvokeAgentRole$outboundSchema: z.ZodType<
|
|
391
|
-
InvokeAgentRole$Outbound,
|
|
392
|
-
z.ZodTypeDef,
|
|
393
|
-
InvokeAgentRole
|
|
394
|
-
> = z.union([RoleUserMessage$outboundSchema, RoleToolMessage$outboundSchema]);
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* @internal
|
|
398
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
399
|
-
*/
|
|
400
|
-
export namespace InvokeAgentRole$ {
|
|
401
|
-
/** @deprecated use `InvokeAgentRole$inboundSchema` instead. */
|
|
402
|
-
export const inboundSchema = InvokeAgentRole$inboundSchema;
|
|
403
|
-
/** @deprecated use `InvokeAgentRole$outboundSchema` instead. */
|
|
404
|
-
export const outboundSchema = InvokeAgentRole$outboundSchema;
|
|
405
|
-
/** @deprecated use `InvokeAgentRole$Outbound` instead. */
|
|
406
|
-
export type Outbound = InvokeAgentRole$Outbound;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export function invokeAgentRoleToJSON(
|
|
410
|
-
invokeAgentRole: InvokeAgentRole,
|
|
411
|
-
): string {
|
|
412
|
-
return JSON.stringify(InvokeAgentRole$outboundSchema.parse(invokeAgentRole));
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
export function invokeAgentRoleFromJSON(
|
|
416
|
-
jsonString: string,
|
|
417
|
-
): SafeParseResult<InvokeAgentRole, SDKValidationError> {
|
|
418
|
-
return safeParse(
|
|
419
|
-
jsonString,
|
|
420
|
-
(x) => InvokeAgentRole$inboundSchema.parse(JSON.parse(x)),
|
|
421
|
-
`Failed to parse 'InvokeAgentRole' from JSON`,
|
|
422
|
-
);
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
/** @internal */
|
|
426
|
-
export const InvokeAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
427
|
-
typeof InvokeAgentPublicMessagePartKind
|
|
428
|
-
> = z.nativeEnum(InvokeAgentPublicMessagePartKind);
|
|
429
|
-
|
|
430
|
-
/** @internal */
|
|
431
|
-
export const InvokeAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
432
|
-
typeof InvokeAgentPublicMessagePartKind
|
|
433
|
-
> = InvokeAgentPublicMessagePartKind$inboundSchema;
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* @internal
|
|
437
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
438
|
-
*/
|
|
439
|
-
export namespace InvokeAgentPublicMessagePartKind$ {
|
|
440
|
-
/** @deprecated use `InvokeAgentPublicMessagePartKind$inboundSchema` instead. */
|
|
441
|
-
export const inboundSchema = InvokeAgentPublicMessagePartKind$inboundSchema;
|
|
442
|
-
/** @deprecated use `InvokeAgentPublicMessagePartKind$outboundSchema` instead. */
|
|
443
|
-
export const outboundSchema = InvokeAgentPublicMessagePartKind$outboundSchema;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
/** @internal */
|
|
447
|
-
export const ToolResultPart$inboundSchema: z.ZodType<
|
|
448
|
-
ToolResultPart,
|
|
449
|
-
z.ZodTypeDef,
|
|
450
|
-
unknown
|
|
451
|
-
> = z.object({
|
|
452
|
-
kind: InvokeAgentPublicMessagePartKind$inboundSchema,
|
|
453
|
-
tool_call_id: z.string(),
|
|
454
|
-
result: z.any().optional(),
|
|
455
|
-
metadata: z.record(z.any()).optional(),
|
|
456
|
-
}).transform((v) => {
|
|
457
|
-
return remap$(v, {
|
|
458
|
-
"tool_call_id": "toolCallId",
|
|
459
|
-
});
|
|
460
|
-
});
|
|
461
|
-
|
|
462
|
-
/** @internal */
|
|
463
|
-
export type ToolResultPart$Outbound = {
|
|
464
|
-
kind: string;
|
|
465
|
-
tool_call_id: string;
|
|
466
|
-
result?: any | undefined;
|
|
467
|
-
metadata?: { [k: string]: any } | undefined;
|
|
468
|
-
};
|
|
469
|
-
|
|
470
|
-
/** @internal */
|
|
471
|
-
export const ToolResultPart$outboundSchema: z.ZodType<
|
|
472
|
-
ToolResultPart$Outbound,
|
|
473
|
-
z.ZodTypeDef,
|
|
474
|
-
ToolResultPart
|
|
475
|
-
> = z.object({
|
|
476
|
-
kind: InvokeAgentPublicMessagePartKind$outboundSchema,
|
|
477
|
-
toolCallId: z.string(),
|
|
478
|
-
result: z.any().optional(),
|
|
479
|
-
metadata: z.record(z.any()).optional(),
|
|
480
|
-
}).transform((v) => {
|
|
481
|
-
return remap$(v, {
|
|
482
|
-
toolCallId: "tool_call_id",
|
|
483
|
-
});
|
|
484
|
-
});
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* @internal
|
|
488
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
489
|
-
*/
|
|
490
|
-
export namespace ToolResultPart$ {
|
|
491
|
-
/** @deprecated use `ToolResultPart$inboundSchema` instead. */
|
|
492
|
-
export const inboundSchema = ToolResultPart$inboundSchema;
|
|
493
|
-
/** @deprecated use `ToolResultPart$outboundSchema` instead. */
|
|
494
|
-
export const outboundSchema = ToolResultPart$outboundSchema;
|
|
495
|
-
/** @deprecated use `ToolResultPart$Outbound` instead. */
|
|
496
|
-
export type Outbound = ToolResultPart$Outbound;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
export function toolResultPartToJSON(toolResultPart: ToolResultPart): string {
|
|
500
|
-
return JSON.stringify(ToolResultPart$outboundSchema.parse(toolResultPart));
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
export function toolResultPartFromJSON(
|
|
504
|
-
jsonString: string,
|
|
505
|
-
): SafeParseResult<ToolResultPart, SDKValidationError> {
|
|
506
|
-
return safeParse(
|
|
507
|
-
jsonString,
|
|
508
|
-
(x) => ToolResultPart$inboundSchema.parse(JSON.parse(x)),
|
|
509
|
-
`Failed to parse 'ToolResultPart' from JSON`,
|
|
510
|
-
);
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
/** @internal */
|
|
514
|
-
export const PublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
515
|
-
typeof PublicMessagePartKind
|
|
516
|
-
> = z.nativeEnum(PublicMessagePartKind);
|
|
517
|
-
|
|
518
|
-
/** @internal */
|
|
519
|
-
export const PublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
520
|
-
typeof PublicMessagePartKind
|
|
521
|
-
> = PublicMessagePartKind$inboundSchema;
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* @internal
|
|
525
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
526
|
-
*/
|
|
527
|
-
export namespace PublicMessagePartKind$ {
|
|
528
|
-
/** @deprecated use `PublicMessagePartKind$inboundSchema` instead. */
|
|
529
|
-
export const inboundSchema = PublicMessagePartKind$inboundSchema;
|
|
530
|
-
/** @deprecated use `PublicMessagePartKind$outboundSchema` instead. */
|
|
531
|
-
export const outboundSchema = PublicMessagePartKind$outboundSchema;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
/** @internal */
|
|
535
|
-
export const FileInURIFormat$inboundSchema: z.ZodType<
|
|
536
|
-
FileInURIFormat,
|
|
537
|
-
z.ZodTypeDef,
|
|
538
|
-
unknown
|
|
539
|
-
> = z.object({
|
|
540
|
-
uri: z.string(),
|
|
541
|
-
mimeType: z.string().optional(),
|
|
542
|
-
name: z.string().optional(),
|
|
543
|
-
});
|
|
544
|
-
|
|
545
|
-
/** @internal */
|
|
546
|
-
export type FileInURIFormat$Outbound = {
|
|
547
|
-
uri: string;
|
|
548
|
-
mimeType?: string | undefined;
|
|
549
|
-
name?: string | undefined;
|
|
550
|
-
};
|
|
551
|
-
|
|
552
|
-
/** @internal */
|
|
553
|
-
export const FileInURIFormat$outboundSchema: z.ZodType<
|
|
554
|
-
FileInURIFormat$Outbound,
|
|
555
|
-
z.ZodTypeDef,
|
|
556
|
-
FileInURIFormat
|
|
557
|
-
> = z.object({
|
|
558
|
-
uri: z.string(),
|
|
559
|
-
mimeType: z.string().optional(),
|
|
560
|
-
name: z.string().optional(),
|
|
561
|
-
});
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* @internal
|
|
565
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
566
|
-
*/
|
|
567
|
-
export namespace FileInURIFormat$ {
|
|
568
|
-
/** @deprecated use `FileInURIFormat$inboundSchema` instead. */
|
|
569
|
-
export const inboundSchema = FileInURIFormat$inboundSchema;
|
|
570
|
-
/** @deprecated use `FileInURIFormat$outboundSchema` instead. */
|
|
571
|
-
export const outboundSchema = FileInURIFormat$outboundSchema;
|
|
572
|
-
/** @deprecated use `FileInURIFormat$Outbound` instead. */
|
|
573
|
-
export type Outbound = FileInURIFormat$Outbound;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
export function fileInURIFormatToJSON(
|
|
577
|
-
fileInURIFormat: FileInURIFormat,
|
|
578
|
-
): string {
|
|
579
|
-
return JSON.stringify(FileInURIFormat$outboundSchema.parse(fileInURIFormat));
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
export function fileInURIFormatFromJSON(
|
|
583
|
-
jsonString: string,
|
|
584
|
-
): SafeParseResult<FileInURIFormat, SDKValidationError> {
|
|
585
|
-
return safeParse(
|
|
586
|
-
jsonString,
|
|
587
|
-
(x) => FileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
588
|
-
`Failed to parse 'FileInURIFormat' from JSON`,
|
|
589
|
-
);
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
/** @internal */
|
|
593
|
-
export const BinaryFormat$inboundSchema: z.ZodType<
|
|
594
|
-
BinaryFormat,
|
|
595
|
-
z.ZodTypeDef,
|
|
596
|
-
unknown
|
|
597
|
-
> = z.object({
|
|
598
|
-
bytes: z.string(),
|
|
599
|
-
mimeType: z.string().optional(),
|
|
600
|
-
name: z.string().optional(),
|
|
601
|
-
});
|
|
602
|
-
|
|
603
|
-
/** @internal */
|
|
604
|
-
export type BinaryFormat$Outbound = {
|
|
605
|
-
bytes: string;
|
|
606
|
-
mimeType?: string | undefined;
|
|
607
|
-
name?: string | undefined;
|
|
608
|
-
};
|
|
609
|
-
|
|
610
|
-
/** @internal */
|
|
611
|
-
export const BinaryFormat$outboundSchema: z.ZodType<
|
|
612
|
-
BinaryFormat$Outbound,
|
|
613
|
-
z.ZodTypeDef,
|
|
614
|
-
BinaryFormat
|
|
615
|
-
> = z.object({
|
|
616
|
-
bytes: z.string(),
|
|
617
|
-
mimeType: z.string().optional(),
|
|
618
|
-
name: z.string().optional(),
|
|
619
|
-
});
|
|
620
|
-
|
|
621
|
-
/**
|
|
622
|
-
* @internal
|
|
623
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
624
|
-
*/
|
|
625
|
-
export namespace BinaryFormat$ {
|
|
626
|
-
/** @deprecated use `BinaryFormat$inboundSchema` instead. */
|
|
627
|
-
export const inboundSchema = BinaryFormat$inboundSchema;
|
|
628
|
-
/** @deprecated use `BinaryFormat$outboundSchema` instead. */
|
|
629
|
-
export const outboundSchema = BinaryFormat$outboundSchema;
|
|
630
|
-
/** @deprecated use `BinaryFormat$Outbound` instead. */
|
|
631
|
-
export type Outbound = BinaryFormat$Outbound;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
export function binaryFormatToJSON(binaryFormat: BinaryFormat): string {
|
|
635
|
-
return JSON.stringify(BinaryFormat$outboundSchema.parse(binaryFormat));
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
export function binaryFormatFromJSON(
|
|
639
|
-
jsonString: string,
|
|
640
|
-
): SafeParseResult<BinaryFormat, SDKValidationError> {
|
|
641
|
-
return safeParse(
|
|
642
|
-
jsonString,
|
|
643
|
-
(x) => BinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
644
|
-
`Failed to parse 'BinaryFormat' from JSON`,
|
|
645
|
-
);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/** @internal */
|
|
649
|
-
export const PublicMessagePartFile$inboundSchema: z.ZodType<
|
|
650
|
-
PublicMessagePartFile,
|
|
651
|
-
z.ZodTypeDef,
|
|
652
|
-
unknown
|
|
653
|
-
> = z.union([
|
|
654
|
-
z.lazy(() => BinaryFormat$inboundSchema),
|
|
655
|
-
z.lazy(() => FileInURIFormat$inboundSchema),
|
|
656
|
-
]);
|
|
657
|
-
|
|
658
|
-
/** @internal */
|
|
659
|
-
export type PublicMessagePartFile$Outbound =
|
|
660
|
-
| BinaryFormat$Outbound
|
|
661
|
-
| FileInURIFormat$Outbound;
|
|
662
|
-
|
|
663
|
-
/** @internal */
|
|
664
|
-
export const PublicMessagePartFile$outboundSchema: z.ZodType<
|
|
665
|
-
PublicMessagePartFile$Outbound,
|
|
666
|
-
z.ZodTypeDef,
|
|
667
|
-
PublicMessagePartFile
|
|
668
|
-
> = z.union([
|
|
669
|
-
z.lazy(() => BinaryFormat$outboundSchema),
|
|
670
|
-
z.lazy(() => FileInURIFormat$outboundSchema),
|
|
671
|
-
]);
|
|
672
|
-
|
|
673
|
-
/**
|
|
674
|
-
* @internal
|
|
675
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
676
|
-
*/
|
|
677
|
-
export namespace PublicMessagePartFile$ {
|
|
678
|
-
/** @deprecated use `PublicMessagePartFile$inboundSchema` instead. */
|
|
679
|
-
export const inboundSchema = PublicMessagePartFile$inboundSchema;
|
|
680
|
-
/** @deprecated use `PublicMessagePartFile$outboundSchema` instead. */
|
|
681
|
-
export const outboundSchema = PublicMessagePartFile$outboundSchema;
|
|
682
|
-
/** @deprecated use `PublicMessagePartFile$Outbound` instead. */
|
|
683
|
-
export type Outbound = PublicMessagePartFile$Outbound;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
export function publicMessagePartFileToJSON(
|
|
687
|
-
publicMessagePartFile: PublicMessagePartFile,
|
|
688
|
-
): string {
|
|
689
|
-
return JSON.stringify(
|
|
690
|
-
PublicMessagePartFile$outboundSchema.parse(publicMessagePartFile),
|
|
691
|
-
);
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
export function publicMessagePartFileFromJSON(
|
|
695
|
-
jsonString: string,
|
|
696
|
-
): SafeParseResult<PublicMessagePartFile, SDKValidationError> {
|
|
697
|
-
return safeParse(
|
|
698
|
-
jsonString,
|
|
699
|
-
(x) => PublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
|
|
700
|
-
`Failed to parse 'PublicMessagePartFile' from JSON`,
|
|
701
|
-
);
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
/** @internal */
|
|
705
|
-
export const FilePart$inboundSchema: z.ZodType<
|
|
706
|
-
FilePart,
|
|
707
|
-
z.ZodTypeDef,
|
|
708
|
-
unknown
|
|
709
|
-
> = z.object({
|
|
710
|
-
kind: PublicMessagePartKind$inboundSchema,
|
|
711
|
-
file: z.union([
|
|
712
|
-
z.lazy(() => BinaryFormat$inboundSchema),
|
|
713
|
-
z.lazy(() => FileInURIFormat$inboundSchema),
|
|
714
|
-
]),
|
|
715
|
-
metadata: z.record(z.any()).optional(),
|
|
716
|
-
});
|
|
717
|
-
|
|
718
|
-
/** @internal */
|
|
719
|
-
export type FilePart$Outbound = {
|
|
720
|
-
kind: string;
|
|
721
|
-
file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
|
|
722
|
-
metadata?: { [k: string]: any } | undefined;
|
|
723
|
-
};
|
|
724
|
-
|
|
725
|
-
/** @internal */
|
|
726
|
-
export const FilePart$outboundSchema: z.ZodType<
|
|
727
|
-
FilePart$Outbound,
|
|
728
|
-
z.ZodTypeDef,
|
|
729
|
-
FilePart
|
|
730
|
-
> = z.object({
|
|
731
|
-
kind: PublicMessagePartKind$outboundSchema,
|
|
732
|
-
file: z.union([
|
|
733
|
-
z.lazy(() => BinaryFormat$outboundSchema),
|
|
734
|
-
z.lazy(() => FileInURIFormat$outboundSchema),
|
|
735
|
-
]),
|
|
736
|
-
metadata: z.record(z.any()).optional(),
|
|
737
|
-
});
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* @internal
|
|
741
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
742
|
-
*/
|
|
743
|
-
export namespace FilePart$ {
|
|
744
|
-
/** @deprecated use `FilePart$inboundSchema` instead. */
|
|
745
|
-
export const inboundSchema = FilePart$inboundSchema;
|
|
746
|
-
/** @deprecated use `FilePart$outboundSchema` instead. */
|
|
747
|
-
export const outboundSchema = FilePart$outboundSchema;
|
|
748
|
-
/** @deprecated use `FilePart$Outbound` instead. */
|
|
749
|
-
export type Outbound = FilePart$Outbound;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
export function filePartToJSON(filePart: FilePart): string {
|
|
753
|
-
return JSON.stringify(FilePart$outboundSchema.parse(filePart));
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
export function filePartFromJSON(
|
|
757
|
-
jsonString: string,
|
|
758
|
-
): SafeParseResult<FilePart, SDKValidationError> {
|
|
759
|
-
return safeParse(
|
|
760
|
-
jsonString,
|
|
761
|
-
(x) => FilePart$inboundSchema.parse(JSON.parse(x)),
|
|
762
|
-
`Failed to parse 'FilePart' from JSON`,
|
|
763
|
-
);
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/** @internal */
|
|
767
|
-
export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
|
|
768
|
-
Kind,
|
|
769
|
-
);
|
|
770
|
-
|
|
771
|
-
/** @internal */
|
|
772
|
-
export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> =
|
|
773
|
-
Kind$inboundSchema;
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* @internal
|
|
777
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
778
|
-
*/
|
|
779
|
-
export namespace Kind$ {
|
|
780
|
-
/** @deprecated use `Kind$inboundSchema` instead. */
|
|
781
|
-
export const inboundSchema = Kind$inboundSchema;
|
|
782
|
-
/** @deprecated use `Kind$outboundSchema` instead. */
|
|
783
|
-
export const outboundSchema = Kind$outboundSchema;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
/** @internal */
|
|
787
|
-
export const TextPart$inboundSchema: z.ZodType<
|
|
788
|
-
TextPart,
|
|
789
|
-
z.ZodTypeDef,
|
|
790
|
-
unknown
|
|
791
|
-
> = z.object({
|
|
792
|
-
kind: Kind$inboundSchema,
|
|
793
|
-
text: z.string(),
|
|
794
|
-
});
|
|
795
|
-
|
|
796
|
-
/** @internal */
|
|
797
|
-
export type TextPart$Outbound = {
|
|
798
|
-
kind: string;
|
|
799
|
-
text: string;
|
|
800
|
-
};
|
|
801
|
-
|
|
802
|
-
/** @internal */
|
|
803
|
-
export const TextPart$outboundSchema: z.ZodType<
|
|
804
|
-
TextPart$Outbound,
|
|
805
|
-
z.ZodTypeDef,
|
|
806
|
-
TextPart
|
|
807
|
-
> = z.object({
|
|
808
|
-
kind: Kind$outboundSchema,
|
|
809
|
-
text: z.string(),
|
|
810
|
-
});
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* @internal
|
|
814
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
815
|
-
*/
|
|
816
|
-
export namespace TextPart$ {
|
|
817
|
-
/** @deprecated use `TextPart$inboundSchema` instead. */
|
|
818
|
-
export const inboundSchema = TextPart$inboundSchema;
|
|
819
|
-
/** @deprecated use `TextPart$outboundSchema` instead. */
|
|
820
|
-
export const outboundSchema = TextPart$outboundSchema;
|
|
821
|
-
/** @deprecated use `TextPart$Outbound` instead. */
|
|
822
|
-
export type Outbound = TextPart$Outbound;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
export function textPartToJSON(textPart: TextPart): string {
|
|
826
|
-
return JSON.stringify(TextPart$outboundSchema.parse(textPart));
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
export function textPartFromJSON(
|
|
830
|
-
jsonString: string,
|
|
831
|
-
): SafeParseResult<TextPart, SDKValidationError> {
|
|
832
|
-
return safeParse(
|
|
833
|
-
jsonString,
|
|
834
|
-
(x) => TextPart$inboundSchema.parse(JSON.parse(x)),
|
|
835
|
-
`Failed to parse 'TextPart' from JSON`,
|
|
836
|
-
);
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
/** @internal */
|
|
840
|
-
export const PublicMessagePart$inboundSchema: z.ZodType<
|
|
841
|
-
PublicMessagePart,
|
|
842
|
-
z.ZodTypeDef,
|
|
843
|
-
unknown
|
|
844
|
-
> = z.union([
|
|
845
|
-
z.lazy(() => TextPart$inboundSchema),
|
|
846
|
-
z.lazy(() => FilePart$inboundSchema),
|
|
847
|
-
z.lazy(() => ToolResultPart$inboundSchema),
|
|
848
|
-
]);
|
|
849
|
-
|
|
850
|
-
/** @internal */
|
|
851
|
-
export type PublicMessagePart$Outbound =
|
|
852
|
-
| TextPart$Outbound
|
|
853
|
-
| FilePart$Outbound
|
|
854
|
-
| ToolResultPart$Outbound;
|
|
855
|
-
|
|
856
|
-
/** @internal */
|
|
857
|
-
export const PublicMessagePart$outboundSchema: z.ZodType<
|
|
858
|
-
PublicMessagePart$Outbound,
|
|
859
|
-
z.ZodTypeDef,
|
|
860
|
-
PublicMessagePart
|
|
861
|
-
> = z.union([
|
|
862
|
-
z.lazy(() => TextPart$outboundSchema),
|
|
863
|
-
z.lazy(() => FilePart$outboundSchema),
|
|
864
|
-
z.lazy(() => ToolResultPart$outboundSchema),
|
|
865
|
-
]);
|
|
866
|
-
|
|
867
|
-
/**
|
|
868
|
-
* @internal
|
|
869
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
870
|
-
*/
|
|
871
|
-
export namespace PublicMessagePart$ {
|
|
872
|
-
/** @deprecated use `PublicMessagePart$inboundSchema` instead. */
|
|
873
|
-
export const inboundSchema = PublicMessagePart$inboundSchema;
|
|
874
|
-
/** @deprecated use `PublicMessagePart$outboundSchema` instead. */
|
|
875
|
-
export const outboundSchema = PublicMessagePart$outboundSchema;
|
|
876
|
-
/** @deprecated use `PublicMessagePart$Outbound` instead. */
|
|
877
|
-
export type Outbound = PublicMessagePart$Outbound;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
export function publicMessagePartToJSON(
|
|
881
|
-
publicMessagePart: PublicMessagePart,
|
|
882
|
-
): string {
|
|
883
|
-
return JSON.stringify(
|
|
884
|
-
PublicMessagePart$outboundSchema.parse(publicMessagePart),
|
|
885
|
-
);
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
export function publicMessagePartFromJSON(
|
|
889
|
-
jsonString: string,
|
|
890
|
-
): SafeParseResult<PublicMessagePart, SDKValidationError> {
|
|
891
|
-
return safeParse(
|
|
892
|
-
jsonString,
|
|
893
|
-
(x) => PublicMessagePart$inboundSchema.parse(JSON.parse(x)),
|
|
894
|
-
`Failed to parse 'PublicMessagePart' from JSON`,
|
|
895
|
-
);
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
/** @internal */
|
|
899
|
-
export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
|
|
900
|
-
z.object({
|
|
901
|
-
messageId: z.string().optional(),
|
|
902
|
-
role: z.union([
|
|
903
|
-
RoleUserMessage$inboundSchema,
|
|
904
|
-
RoleToolMessage$inboundSchema,
|
|
905
|
-
]),
|
|
906
|
-
parts: z.array(
|
|
907
|
-
z.union([
|
|
908
|
-
z.lazy(() => TextPart$inboundSchema),
|
|
909
|
-
z.lazy(() => FilePart$inboundSchema),
|
|
910
|
-
z.lazy(() => ToolResultPart$inboundSchema),
|
|
911
|
-
]),
|
|
912
|
-
),
|
|
913
|
-
});
|
|
914
|
-
|
|
915
|
-
/** @internal */
|
|
916
|
-
export type Message$Outbound = {
|
|
917
|
-
messageId?: string | undefined;
|
|
918
|
-
role: string | string;
|
|
919
|
-
parts: Array<TextPart$Outbound | FilePart$Outbound | ToolResultPart$Outbound>;
|
|
920
|
-
};
|
|
921
|
-
|
|
922
|
-
/** @internal */
|
|
923
|
-
export const Message$outboundSchema: z.ZodType<
|
|
924
|
-
Message$Outbound,
|
|
925
|
-
z.ZodTypeDef,
|
|
926
|
-
Message
|
|
927
|
-
> = z.object({
|
|
928
|
-
messageId: z.string().optional(),
|
|
929
|
-
role: z.union([
|
|
930
|
-
RoleUserMessage$outboundSchema,
|
|
931
|
-
RoleToolMessage$outboundSchema,
|
|
932
|
-
]),
|
|
933
|
-
parts: z.array(
|
|
934
|
-
z.union([
|
|
935
|
-
z.lazy(() => TextPart$outboundSchema),
|
|
936
|
-
z.lazy(() => FilePart$outboundSchema),
|
|
937
|
-
z.lazy(() => ToolResultPart$outboundSchema),
|
|
938
|
-
]),
|
|
939
|
-
),
|
|
940
|
-
});
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* @internal
|
|
944
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
945
|
-
*/
|
|
946
|
-
export namespace Message$ {
|
|
947
|
-
/** @deprecated use `Message$inboundSchema` instead. */
|
|
948
|
-
export const inboundSchema = Message$inboundSchema;
|
|
949
|
-
/** @deprecated use `Message$outboundSchema` instead. */
|
|
950
|
-
export const outboundSchema = Message$outboundSchema;
|
|
951
|
-
/** @deprecated use `Message$Outbound` instead. */
|
|
952
|
-
export type Outbound = Message$Outbound;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
export function messageToJSON(message: Message): string {
|
|
956
|
-
return JSON.stringify(Message$outboundSchema.parse(message));
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
export function messageFromJSON(
|
|
960
|
-
jsonString: string,
|
|
961
|
-
): SafeParseResult<Message, SDKValidationError> {
|
|
962
|
-
return safeParse(
|
|
963
|
-
jsonString,
|
|
964
|
-
(x) => Message$inboundSchema.parse(JSON.parse(x)),
|
|
965
|
-
`Failed to parse 'Message' from JSON`,
|
|
966
|
-
);
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
/** @internal */
|
|
970
|
-
export const Contact$inboundSchema: z.ZodType<Contact, z.ZodTypeDef, unknown> =
|
|
971
|
-
z.object({
|
|
972
|
-
id: z.string(),
|
|
973
|
-
display_name: z.string().optional(),
|
|
974
|
-
email: z.string().optional(),
|
|
975
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
976
|
-
logo_url: z.string().optional(),
|
|
977
|
-
tags: z.array(z.string()).optional(),
|
|
978
|
-
}).transform((v) => {
|
|
979
|
-
return remap$(v, {
|
|
980
|
-
"display_name": "displayName",
|
|
981
|
-
"logo_url": "logoUrl",
|
|
982
|
-
});
|
|
983
|
-
});
|
|
984
|
-
|
|
985
|
-
/** @internal */
|
|
986
|
-
export type Contact$Outbound = {
|
|
987
|
-
id: string;
|
|
988
|
-
display_name?: string | undefined;
|
|
989
|
-
email?: string | undefined;
|
|
990
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
991
|
-
logo_url?: string | undefined;
|
|
992
|
-
tags?: Array<string> | undefined;
|
|
993
|
-
};
|
|
994
|
-
|
|
995
|
-
/** @internal */
|
|
996
|
-
export const Contact$outboundSchema: z.ZodType<
|
|
997
|
-
Contact$Outbound,
|
|
998
|
-
z.ZodTypeDef,
|
|
999
|
-
Contact
|
|
1000
|
-
> = z.object({
|
|
1001
|
-
id: z.string(),
|
|
1002
|
-
displayName: z.string().optional(),
|
|
1003
|
-
email: z.string().optional(),
|
|
1004
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
1005
|
-
logoUrl: z.string().optional(),
|
|
1006
|
-
tags: z.array(z.string()).optional(),
|
|
1007
|
-
}).transform((v) => {
|
|
1008
|
-
return remap$(v, {
|
|
1009
|
-
displayName: "display_name",
|
|
1010
|
-
logoUrl: "logo_url",
|
|
1011
|
-
});
|
|
1012
|
-
});
|
|
1013
|
-
|
|
1014
|
-
/**
|
|
1015
|
-
* @internal
|
|
1016
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1017
|
-
*/
|
|
1018
|
-
export namespace Contact$ {
|
|
1019
|
-
/** @deprecated use `Contact$inboundSchema` instead. */
|
|
1020
|
-
export const inboundSchema = Contact$inboundSchema;
|
|
1021
|
-
/** @deprecated use `Contact$outboundSchema` instead. */
|
|
1022
|
-
export const outboundSchema = Contact$outboundSchema;
|
|
1023
|
-
/** @deprecated use `Contact$Outbound` instead. */
|
|
1024
|
-
export type Outbound = Contact$Outbound;
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
export function contactToJSON(contact: Contact): string {
|
|
1028
|
-
return JSON.stringify(Contact$outboundSchema.parse(contact));
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
export function contactFromJSON(
|
|
1032
|
-
jsonString: string,
|
|
1033
|
-
): SafeParseResult<Contact, SDKValidationError> {
|
|
1034
|
-
return safeParse(
|
|
1035
|
-
jsonString,
|
|
1036
|
-
(x) => Contact$inboundSchema.parse(JSON.parse(x)),
|
|
1037
|
-
`Failed to parse 'Contact' from JSON`,
|
|
1038
|
-
);
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
/** @internal */
|
|
1042
|
-
export const InvokeAgentThread$inboundSchema: z.ZodType<
|
|
1043
|
-
InvokeAgentThread,
|
|
1044
|
-
z.ZodTypeDef,
|
|
1045
|
-
unknown
|
|
1046
|
-
> = z.object({
|
|
1047
|
-
id: z.string(),
|
|
1048
|
-
tags: z.array(z.string()).optional(),
|
|
1049
|
-
});
|
|
1050
|
-
|
|
1051
|
-
/** @internal */
|
|
1052
|
-
export type InvokeAgentThread$Outbound = {
|
|
1053
|
-
id: string;
|
|
1054
|
-
tags?: Array<string> | undefined;
|
|
1055
|
-
};
|
|
1056
|
-
|
|
1057
|
-
/** @internal */
|
|
1058
|
-
export const InvokeAgentThread$outboundSchema: z.ZodType<
|
|
1059
|
-
InvokeAgentThread$Outbound,
|
|
1060
|
-
z.ZodTypeDef,
|
|
1061
|
-
InvokeAgentThread
|
|
1062
|
-
> = z.object({
|
|
1063
|
-
id: z.string(),
|
|
1064
|
-
tags: z.array(z.string()).optional(),
|
|
1065
|
-
});
|
|
1066
|
-
|
|
1067
|
-
/**
|
|
1068
|
-
* @internal
|
|
1069
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1070
|
-
*/
|
|
1071
|
-
export namespace InvokeAgentThread$ {
|
|
1072
|
-
/** @deprecated use `InvokeAgentThread$inboundSchema` instead. */
|
|
1073
|
-
export const inboundSchema = InvokeAgentThread$inboundSchema;
|
|
1074
|
-
/** @deprecated use `InvokeAgentThread$outboundSchema` instead. */
|
|
1075
|
-
export const outboundSchema = InvokeAgentThread$outboundSchema;
|
|
1076
|
-
/** @deprecated use `InvokeAgentThread$Outbound` instead. */
|
|
1077
|
-
export type Outbound = InvokeAgentThread$Outbound;
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
export function invokeAgentThreadToJSON(
|
|
1081
|
-
invokeAgentThread: InvokeAgentThread,
|
|
1082
|
-
): string {
|
|
1083
|
-
return JSON.stringify(
|
|
1084
|
-
InvokeAgentThread$outboundSchema.parse(invokeAgentThread),
|
|
1085
|
-
);
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
export function invokeAgentThreadFromJSON(
|
|
1089
|
-
jsonString: string,
|
|
1090
|
-
): SafeParseResult<InvokeAgentThread, SDKValidationError> {
|
|
1091
|
-
return safeParse(
|
|
1092
|
-
jsonString,
|
|
1093
|
-
(x) => InvokeAgentThread$inboundSchema.parse(JSON.parse(x)),
|
|
1094
|
-
`Failed to parse 'InvokeAgentThread' from JSON`,
|
|
1095
|
-
);
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
/** @internal */
|
|
1099
|
-
export const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown> = z
|
|
1100
|
-
.object({
|
|
1101
|
-
entity_id: z.string(),
|
|
1102
|
-
}).transform((v) => {
|
|
1103
|
-
return remap$(v, {
|
|
1104
|
-
"entity_id": "entityId",
|
|
1105
|
-
});
|
|
1106
|
-
});
|
|
1107
|
-
|
|
1108
|
-
/** @internal */
|
|
1109
|
-
export type Memory$Outbound = {
|
|
1110
|
-
entity_id: string;
|
|
1111
|
-
};
|
|
1112
|
-
|
|
1113
|
-
/** @internal */
|
|
1114
|
-
export const Memory$outboundSchema: z.ZodType<
|
|
1115
|
-
Memory$Outbound,
|
|
1116
|
-
z.ZodTypeDef,
|
|
1117
|
-
Memory
|
|
1118
|
-
> = z.object({
|
|
1119
|
-
entityId: z.string(),
|
|
1120
|
-
}).transform((v) => {
|
|
1121
|
-
return remap$(v, {
|
|
1122
|
-
entityId: "entity_id",
|
|
1123
|
-
});
|
|
1124
|
-
});
|
|
1125
|
-
|
|
1126
|
-
/**
|
|
1127
|
-
* @internal
|
|
1128
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1129
|
-
*/
|
|
1130
|
-
export namespace Memory$ {
|
|
1131
|
-
/** @deprecated use `Memory$inboundSchema` instead. */
|
|
1132
|
-
export const inboundSchema = Memory$inboundSchema;
|
|
1133
|
-
/** @deprecated use `Memory$outboundSchema` instead. */
|
|
1134
|
-
export const outboundSchema = Memory$outboundSchema;
|
|
1135
|
-
/** @deprecated use `Memory$Outbound` instead. */
|
|
1136
|
-
export type Outbound = Memory$Outbound;
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
export function memoryToJSON(memory: Memory): string {
|
|
1140
|
-
return JSON.stringify(Memory$outboundSchema.parse(memory));
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
export function memoryFromJSON(
|
|
1144
|
-
jsonString: string,
|
|
1145
|
-
): SafeParseResult<Memory, SDKValidationError> {
|
|
1146
|
-
return safeParse(
|
|
1147
|
-
jsonString,
|
|
1148
|
-
(x) => Memory$inboundSchema.parse(JSON.parse(x)),
|
|
1149
|
-
`Failed to parse 'Memory' from JSON`,
|
|
1150
|
-
);
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
/** @internal */
|
|
1154
|
-
export const InvokeAgentRequestBody$inboundSchema: z.ZodType<
|
|
1155
|
-
InvokeAgentRequestBody,
|
|
1156
|
-
z.ZodTypeDef,
|
|
1157
|
-
unknown
|
|
1158
|
-
> = z.object({
|
|
1159
|
-
task_id: z.string().optional(),
|
|
1160
|
-
message: z.lazy(() => Message$inboundSchema),
|
|
1161
|
-
variables: z.record(z.any()).optional(),
|
|
1162
|
-
contact: z.lazy(() => Contact$inboundSchema).optional(),
|
|
1163
|
-
thread: z.lazy(() => InvokeAgentThread$inboundSchema).optional(),
|
|
1164
|
-
memory: z.lazy(() => Memory$inboundSchema).optional(),
|
|
1165
|
-
metadata: z.record(z.any()).optional(),
|
|
1166
|
-
}).transform((v) => {
|
|
1167
|
-
return remap$(v, {
|
|
1168
|
-
"task_id": "taskId",
|
|
1169
|
-
});
|
|
1170
|
-
});
|
|
1171
|
-
|
|
1172
|
-
/** @internal */
|
|
1173
|
-
export type InvokeAgentRequestBody$Outbound = {
|
|
1174
|
-
task_id?: string | undefined;
|
|
1175
|
-
message: Message$Outbound;
|
|
1176
|
-
variables?: { [k: string]: any } | undefined;
|
|
1177
|
-
contact?: Contact$Outbound | undefined;
|
|
1178
|
-
thread?: InvokeAgentThread$Outbound | undefined;
|
|
1179
|
-
memory?: Memory$Outbound | undefined;
|
|
1180
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1181
|
-
};
|
|
1182
|
-
|
|
1183
|
-
/** @internal */
|
|
1184
|
-
export const InvokeAgentRequestBody$outboundSchema: z.ZodType<
|
|
1185
|
-
InvokeAgentRequestBody$Outbound,
|
|
1186
|
-
z.ZodTypeDef,
|
|
1187
|
-
InvokeAgentRequestBody
|
|
1188
|
-
> = z.object({
|
|
1189
|
-
taskId: z.string().optional(),
|
|
1190
|
-
message: z.lazy(() => Message$outboundSchema),
|
|
1191
|
-
variables: z.record(z.any()).optional(),
|
|
1192
|
-
contact: z.lazy(() => Contact$outboundSchema).optional(),
|
|
1193
|
-
thread: z.lazy(() => InvokeAgentThread$outboundSchema).optional(),
|
|
1194
|
-
memory: z.lazy(() => Memory$outboundSchema).optional(),
|
|
1195
|
-
metadata: z.record(z.any()).optional(),
|
|
1196
|
-
}).transform((v) => {
|
|
1197
|
-
return remap$(v, {
|
|
1198
|
-
taskId: "task_id",
|
|
1199
|
-
});
|
|
1200
|
-
});
|
|
1201
|
-
|
|
1202
|
-
/**
|
|
1203
|
-
* @internal
|
|
1204
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1205
|
-
*/
|
|
1206
|
-
export namespace InvokeAgentRequestBody$ {
|
|
1207
|
-
/** @deprecated use `InvokeAgentRequestBody$inboundSchema` instead. */
|
|
1208
|
-
export const inboundSchema = InvokeAgentRequestBody$inboundSchema;
|
|
1209
|
-
/** @deprecated use `InvokeAgentRequestBody$outboundSchema` instead. */
|
|
1210
|
-
export const outboundSchema = InvokeAgentRequestBody$outboundSchema;
|
|
1211
|
-
/** @deprecated use `InvokeAgentRequestBody$Outbound` instead. */
|
|
1212
|
-
export type Outbound = InvokeAgentRequestBody$Outbound;
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
export function invokeAgentRequestBodyToJSON(
|
|
1216
|
-
invokeAgentRequestBody: InvokeAgentRequestBody,
|
|
1217
|
-
): string {
|
|
1218
|
-
return JSON.stringify(
|
|
1219
|
-
InvokeAgentRequestBody$outboundSchema.parse(invokeAgentRequestBody),
|
|
1220
|
-
);
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
export function invokeAgentRequestBodyFromJSON(
|
|
1224
|
-
jsonString: string,
|
|
1225
|
-
): SafeParseResult<InvokeAgentRequestBody, SDKValidationError> {
|
|
1226
|
-
return safeParse(
|
|
1227
|
-
jsonString,
|
|
1228
|
-
(x) => InvokeAgentRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
1229
|
-
`Failed to parse 'InvokeAgentRequestBody' from JSON`,
|
|
1230
|
-
);
|
|
1231
|
-
}
|
|
1232
|
-
|
|
1233
|
-
/** @internal */
|
|
1234
|
-
export const InvokeAgentRequest$inboundSchema: z.ZodType<
|
|
1235
|
-
InvokeAgentRequest,
|
|
1236
|
-
z.ZodTypeDef,
|
|
1237
|
-
unknown
|
|
1238
|
-
> = z.object({
|
|
1239
|
-
key: z.string(),
|
|
1240
|
-
RequestBody: z.lazy(() => InvokeAgentRequestBody$inboundSchema).optional(),
|
|
1241
|
-
}).transform((v) => {
|
|
1242
|
-
return remap$(v, {
|
|
1243
|
-
"RequestBody": "requestBody",
|
|
1244
|
-
});
|
|
1245
|
-
});
|
|
1246
|
-
|
|
1247
|
-
/** @internal */
|
|
1248
|
-
export type InvokeAgentRequest$Outbound = {
|
|
1249
|
-
key: string;
|
|
1250
|
-
RequestBody?: InvokeAgentRequestBody$Outbound | undefined;
|
|
1251
|
-
};
|
|
1252
|
-
|
|
1253
|
-
/** @internal */
|
|
1254
|
-
export const InvokeAgentRequest$outboundSchema: z.ZodType<
|
|
1255
|
-
InvokeAgentRequest$Outbound,
|
|
1256
|
-
z.ZodTypeDef,
|
|
1257
|
-
InvokeAgentRequest
|
|
1258
|
-
> = z.object({
|
|
1259
|
-
key: z.string(),
|
|
1260
|
-
requestBody: z.lazy(() => InvokeAgentRequestBody$outboundSchema).optional(),
|
|
1261
|
-
}).transform((v) => {
|
|
1262
|
-
return remap$(v, {
|
|
1263
|
-
requestBody: "RequestBody",
|
|
1264
|
-
});
|
|
1265
|
-
});
|
|
1266
|
-
|
|
1267
|
-
/**
|
|
1268
|
-
* @internal
|
|
1269
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1270
|
-
*/
|
|
1271
|
-
export namespace InvokeAgentRequest$ {
|
|
1272
|
-
/** @deprecated use `InvokeAgentRequest$inboundSchema` instead. */
|
|
1273
|
-
export const inboundSchema = InvokeAgentRequest$inboundSchema;
|
|
1274
|
-
/** @deprecated use `InvokeAgentRequest$outboundSchema` instead. */
|
|
1275
|
-
export const outboundSchema = InvokeAgentRequest$outboundSchema;
|
|
1276
|
-
/** @deprecated use `InvokeAgentRequest$Outbound` instead. */
|
|
1277
|
-
export type Outbound = InvokeAgentRequest$Outbound;
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
export function invokeAgentRequestToJSON(
|
|
1281
|
-
invokeAgentRequest: InvokeAgentRequest,
|
|
1282
|
-
): string {
|
|
1283
|
-
return JSON.stringify(
|
|
1284
|
-
InvokeAgentRequest$outboundSchema.parse(invokeAgentRequest),
|
|
1285
|
-
);
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
export function invokeAgentRequestFromJSON(
|
|
1289
|
-
jsonString: string,
|
|
1290
|
-
): SafeParseResult<InvokeAgentRequest, SDKValidationError> {
|
|
1291
|
-
return safeParse(
|
|
1292
|
-
jsonString,
|
|
1293
|
-
(x) => InvokeAgentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1294
|
-
`Failed to parse 'InvokeAgentRequest' from JSON`,
|
|
1295
|
-
);
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
/** @internal */
|
|
1299
|
-
export const InvokeAgentKind$inboundSchema: z.ZodNativeEnum<
|
|
1300
|
-
typeof InvokeAgentKind
|
|
1301
|
-
> = z.nativeEnum(InvokeAgentKind);
|
|
1302
|
-
|
|
1303
|
-
/** @internal */
|
|
1304
|
-
export const InvokeAgentKind$outboundSchema: z.ZodNativeEnum<
|
|
1305
|
-
typeof InvokeAgentKind
|
|
1306
|
-
> = InvokeAgentKind$inboundSchema;
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* @internal
|
|
1310
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1311
|
-
*/
|
|
1312
|
-
export namespace InvokeAgentKind$ {
|
|
1313
|
-
/** @deprecated use `InvokeAgentKind$inboundSchema` instead. */
|
|
1314
|
-
export const inboundSchema = InvokeAgentKind$inboundSchema;
|
|
1315
|
-
/** @deprecated use `InvokeAgentKind$outboundSchema` instead. */
|
|
1316
|
-
export const outboundSchema = InvokeAgentKind$outboundSchema;
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
/** @internal */
|
|
1320
|
-
export const InvokeAgentState$inboundSchema: z.ZodNativeEnum<
|
|
1321
|
-
typeof InvokeAgentState
|
|
1322
|
-
> = z.nativeEnum(InvokeAgentState);
|
|
1323
|
-
|
|
1324
|
-
/** @internal */
|
|
1325
|
-
export const InvokeAgentState$outboundSchema: z.ZodNativeEnum<
|
|
1326
|
-
typeof InvokeAgentState
|
|
1327
|
-
> = InvokeAgentState$inboundSchema;
|
|
1328
|
-
|
|
1329
|
-
/**
|
|
1330
|
-
* @internal
|
|
1331
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1332
|
-
*/
|
|
1333
|
-
export namespace InvokeAgentState$ {
|
|
1334
|
-
/** @deprecated use `InvokeAgentState$inboundSchema` instead. */
|
|
1335
|
-
export const inboundSchema = InvokeAgentState$inboundSchema;
|
|
1336
|
-
/** @deprecated use `InvokeAgentState$outboundSchema` instead. */
|
|
1337
|
-
export const outboundSchema = InvokeAgentState$outboundSchema;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
/** @internal */
|
|
1341
|
-
export const InvokeAgentAgentsKind$inboundSchema: z.ZodNativeEnum<
|
|
1342
|
-
typeof InvokeAgentAgentsKind
|
|
1343
|
-
> = z.nativeEnum(InvokeAgentAgentsKind);
|
|
1344
|
-
|
|
1345
|
-
/** @internal */
|
|
1346
|
-
export const InvokeAgentAgentsKind$outboundSchema: z.ZodNativeEnum<
|
|
1347
|
-
typeof InvokeAgentAgentsKind
|
|
1348
|
-
> = InvokeAgentAgentsKind$inboundSchema;
|
|
1349
|
-
|
|
1350
|
-
/**
|
|
1351
|
-
* @internal
|
|
1352
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1353
|
-
*/
|
|
1354
|
-
export namespace InvokeAgentAgentsKind$ {
|
|
1355
|
-
/** @deprecated use `InvokeAgentAgentsKind$inboundSchema` instead. */
|
|
1356
|
-
export const inboundSchema = InvokeAgentAgentsKind$inboundSchema;
|
|
1357
|
-
/** @deprecated use `InvokeAgentAgentsKind$outboundSchema` instead. */
|
|
1358
|
-
export const outboundSchema = InvokeAgentAgentsKind$outboundSchema;
|
|
1359
|
-
}
|
|
1360
|
-
|
|
1361
|
-
/** @internal */
|
|
1362
|
-
export const InvokeAgentAgentsRole$inboundSchema: z.ZodNativeEnum<
|
|
1363
|
-
typeof InvokeAgentAgentsRole
|
|
1364
|
-
> = z.nativeEnum(InvokeAgentAgentsRole);
|
|
1365
|
-
|
|
1366
|
-
/** @internal */
|
|
1367
|
-
export const InvokeAgentAgentsRole$outboundSchema: z.ZodNativeEnum<
|
|
1368
|
-
typeof InvokeAgentAgentsRole
|
|
1369
|
-
> = InvokeAgentAgentsRole$inboundSchema;
|
|
1370
|
-
|
|
1371
|
-
/**
|
|
1372
|
-
* @internal
|
|
1373
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1374
|
-
*/
|
|
1375
|
-
export namespace InvokeAgentAgentsRole$ {
|
|
1376
|
-
/** @deprecated use `InvokeAgentAgentsRole$inboundSchema` instead. */
|
|
1377
|
-
export const inboundSchema = InvokeAgentAgentsRole$inboundSchema;
|
|
1378
|
-
/** @deprecated use `InvokeAgentAgentsRole$outboundSchema` instead. */
|
|
1379
|
-
export const outboundSchema = InvokeAgentAgentsRole$outboundSchema;
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
/** @internal */
|
|
1383
|
-
export const InvokeAgentMessage$inboundSchema: z.ZodType<
|
|
1384
|
-
InvokeAgentMessage,
|
|
1385
|
-
z.ZodTypeDef,
|
|
1386
|
-
unknown
|
|
1387
|
-
> = z.object({
|
|
1388
|
-
kind: InvokeAgentAgentsKind$inboundSchema,
|
|
1389
|
-
messageId: z.string(),
|
|
1390
|
-
role: InvokeAgentAgentsRole$inboundSchema,
|
|
1391
|
-
parts: z.array(z.any()),
|
|
1392
|
-
});
|
|
1393
|
-
|
|
1394
|
-
/** @internal */
|
|
1395
|
-
export type InvokeAgentMessage$Outbound = {
|
|
1396
|
-
kind: string;
|
|
1397
|
-
messageId: string;
|
|
1398
|
-
role: string;
|
|
1399
|
-
parts: Array<any>;
|
|
1400
|
-
};
|
|
1401
|
-
|
|
1402
|
-
/** @internal */
|
|
1403
|
-
export const InvokeAgentMessage$outboundSchema: z.ZodType<
|
|
1404
|
-
InvokeAgentMessage$Outbound,
|
|
1405
|
-
z.ZodTypeDef,
|
|
1406
|
-
InvokeAgentMessage
|
|
1407
|
-
> = z.object({
|
|
1408
|
-
kind: InvokeAgentAgentsKind$outboundSchema,
|
|
1409
|
-
messageId: z.string(),
|
|
1410
|
-
role: InvokeAgentAgentsRole$outboundSchema,
|
|
1411
|
-
parts: z.array(z.any()),
|
|
1412
|
-
});
|
|
1413
|
-
|
|
1414
|
-
/**
|
|
1415
|
-
* @internal
|
|
1416
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1417
|
-
*/
|
|
1418
|
-
export namespace InvokeAgentMessage$ {
|
|
1419
|
-
/** @deprecated use `InvokeAgentMessage$inboundSchema` instead. */
|
|
1420
|
-
export const inboundSchema = InvokeAgentMessage$inboundSchema;
|
|
1421
|
-
/** @deprecated use `InvokeAgentMessage$outboundSchema` instead. */
|
|
1422
|
-
export const outboundSchema = InvokeAgentMessage$outboundSchema;
|
|
1423
|
-
/** @deprecated use `InvokeAgentMessage$Outbound` instead. */
|
|
1424
|
-
export type Outbound = InvokeAgentMessage$Outbound;
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
export function invokeAgentMessageToJSON(
|
|
1428
|
-
invokeAgentMessage: InvokeAgentMessage,
|
|
1429
|
-
): string {
|
|
1430
|
-
return JSON.stringify(
|
|
1431
|
-
InvokeAgentMessage$outboundSchema.parse(invokeAgentMessage),
|
|
1432
|
-
);
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
export function invokeAgentMessageFromJSON(
|
|
1436
|
-
jsonString: string,
|
|
1437
|
-
): SafeParseResult<InvokeAgentMessage, SDKValidationError> {
|
|
1438
|
-
return safeParse(
|
|
1439
|
-
jsonString,
|
|
1440
|
-
(x) => InvokeAgentMessage$inboundSchema.parse(JSON.parse(x)),
|
|
1441
|
-
`Failed to parse 'InvokeAgentMessage' from JSON`,
|
|
1442
|
-
);
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
/** @internal */
|
|
1446
|
-
export const InvokeAgentStatus$inboundSchema: z.ZodType<
|
|
1447
|
-
InvokeAgentStatus,
|
|
1448
|
-
z.ZodTypeDef,
|
|
1449
|
-
unknown
|
|
1450
|
-
> = z.object({
|
|
1451
|
-
state: InvokeAgentState$inboundSchema,
|
|
1452
|
-
timestamp: z.string().optional(),
|
|
1453
|
-
message: z.lazy(() => InvokeAgentMessage$inboundSchema).optional(),
|
|
1454
|
-
});
|
|
1455
|
-
|
|
1456
|
-
/** @internal */
|
|
1457
|
-
export type InvokeAgentStatus$Outbound = {
|
|
1458
|
-
state: string;
|
|
1459
|
-
timestamp?: string | undefined;
|
|
1460
|
-
message?: InvokeAgentMessage$Outbound | undefined;
|
|
1461
|
-
};
|
|
1462
|
-
|
|
1463
|
-
/** @internal */
|
|
1464
|
-
export const InvokeAgentStatus$outboundSchema: z.ZodType<
|
|
1465
|
-
InvokeAgentStatus$Outbound,
|
|
1466
|
-
z.ZodTypeDef,
|
|
1467
|
-
InvokeAgentStatus
|
|
1468
|
-
> = z.object({
|
|
1469
|
-
state: InvokeAgentState$outboundSchema,
|
|
1470
|
-
timestamp: z.string().optional(),
|
|
1471
|
-
message: z.lazy(() => InvokeAgentMessage$outboundSchema).optional(),
|
|
1472
|
-
});
|
|
1473
|
-
|
|
1474
|
-
/**
|
|
1475
|
-
* @internal
|
|
1476
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1477
|
-
*/
|
|
1478
|
-
export namespace InvokeAgentStatus$ {
|
|
1479
|
-
/** @deprecated use `InvokeAgentStatus$inboundSchema` instead. */
|
|
1480
|
-
export const inboundSchema = InvokeAgentStatus$inboundSchema;
|
|
1481
|
-
/** @deprecated use `InvokeAgentStatus$outboundSchema` instead. */
|
|
1482
|
-
export const outboundSchema = InvokeAgentStatus$outboundSchema;
|
|
1483
|
-
/** @deprecated use `InvokeAgentStatus$Outbound` instead. */
|
|
1484
|
-
export type Outbound = InvokeAgentStatus$Outbound;
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
export function invokeAgentStatusToJSON(
|
|
1488
|
-
invokeAgentStatus: InvokeAgentStatus,
|
|
1489
|
-
): string {
|
|
1490
|
-
return JSON.stringify(
|
|
1491
|
-
InvokeAgentStatus$outboundSchema.parse(invokeAgentStatus),
|
|
1492
|
-
);
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
export function invokeAgentStatusFromJSON(
|
|
1496
|
-
jsonString: string,
|
|
1497
|
-
): SafeParseResult<InvokeAgentStatus, SDKValidationError> {
|
|
1498
|
-
return safeParse(
|
|
1499
|
-
jsonString,
|
|
1500
|
-
(x) => InvokeAgentStatus$inboundSchema.parse(JSON.parse(x)),
|
|
1501
|
-
`Failed to parse 'InvokeAgentStatus' from JSON`,
|
|
1502
|
-
);
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
/** @internal */
|
|
1506
|
-
export const InvokeAgentResponseBody$inboundSchema: z.ZodType<
|
|
1507
|
-
InvokeAgentResponseBody,
|
|
1508
|
-
z.ZodTypeDef,
|
|
1509
|
-
unknown
|
|
1510
|
-
> = z.object({
|
|
1511
|
-
id: z.string(),
|
|
1512
|
-
contextId: z.string(),
|
|
1513
|
-
kind: InvokeAgentKind$inboundSchema,
|
|
1514
|
-
status: z.lazy(() => InvokeAgentStatus$inboundSchema),
|
|
1515
|
-
metadata: z.record(z.any()).optional(),
|
|
1516
|
-
});
|
|
1517
|
-
|
|
1518
|
-
/** @internal */
|
|
1519
|
-
export type InvokeAgentResponseBody$Outbound = {
|
|
1520
|
-
id: string;
|
|
1521
|
-
contextId: string;
|
|
1522
|
-
kind: string;
|
|
1523
|
-
status: InvokeAgentStatus$Outbound;
|
|
1524
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1525
|
-
};
|
|
1526
|
-
|
|
1527
|
-
/** @internal */
|
|
1528
|
-
export const InvokeAgentResponseBody$outboundSchema: z.ZodType<
|
|
1529
|
-
InvokeAgentResponseBody$Outbound,
|
|
1530
|
-
z.ZodTypeDef,
|
|
1531
|
-
InvokeAgentResponseBody
|
|
1532
|
-
> = z.object({
|
|
1533
|
-
id: z.string(),
|
|
1534
|
-
contextId: z.string(),
|
|
1535
|
-
kind: InvokeAgentKind$outboundSchema,
|
|
1536
|
-
status: z.lazy(() => InvokeAgentStatus$outboundSchema),
|
|
1537
|
-
metadata: z.record(z.any()).optional(),
|
|
1538
|
-
});
|
|
1539
|
-
|
|
1540
|
-
/**
|
|
1541
|
-
* @internal
|
|
1542
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1543
|
-
*/
|
|
1544
|
-
export namespace InvokeAgentResponseBody$ {
|
|
1545
|
-
/** @deprecated use `InvokeAgentResponseBody$inboundSchema` instead. */
|
|
1546
|
-
export const inboundSchema = InvokeAgentResponseBody$inboundSchema;
|
|
1547
|
-
/** @deprecated use `InvokeAgentResponseBody$outboundSchema` instead. */
|
|
1548
|
-
export const outboundSchema = InvokeAgentResponseBody$outboundSchema;
|
|
1549
|
-
/** @deprecated use `InvokeAgentResponseBody$Outbound` instead. */
|
|
1550
|
-
export type Outbound = InvokeAgentResponseBody$Outbound;
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
export function invokeAgentResponseBodyToJSON(
|
|
1554
|
-
invokeAgentResponseBody: InvokeAgentResponseBody,
|
|
1555
|
-
): string {
|
|
1556
|
-
return JSON.stringify(
|
|
1557
|
-
InvokeAgentResponseBody$outboundSchema.parse(invokeAgentResponseBody),
|
|
1558
|
-
);
|
|
1559
|
-
}
|
|
1560
|
-
|
|
1561
|
-
export function invokeAgentResponseBodyFromJSON(
|
|
1562
|
-
jsonString: string,
|
|
1563
|
-
): SafeParseResult<InvokeAgentResponseBody, SDKValidationError> {
|
|
1564
|
-
return safeParse(
|
|
1565
|
-
jsonString,
|
|
1566
|
-
(x) => InvokeAgentResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
1567
|
-
`Failed to parse 'InvokeAgentResponseBody' from JSON`,
|
|
1568
|
-
);
|
|
1569
|
-
}
|