@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,1367 +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 StreamAgentRoleToolMessage = {
|
|
16
|
-
Tool: "tool",
|
|
17
|
-
} as const;
|
|
18
|
-
/**
|
|
19
|
-
* Tool message
|
|
20
|
-
*/
|
|
21
|
-
export type StreamAgentRoleToolMessage = ClosedEnum<
|
|
22
|
-
typeof StreamAgentRoleToolMessage
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* User message
|
|
27
|
-
*/
|
|
28
|
-
export const StreamAgentRoleUserMessage = {
|
|
29
|
-
User: "user",
|
|
30
|
-
} as const;
|
|
31
|
-
/**
|
|
32
|
-
* User message
|
|
33
|
-
*/
|
|
34
|
-
export type StreamAgentRoleUserMessage = ClosedEnum<
|
|
35
|
-
typeof StreamAgentRoleUserMessage
|
|
36
|
-
>;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Message role (user or tool for continuing executions)
|
|
40
|
-
*/
|
|
41
|
-
export type StreamAgentRole =
|
|
42
|
-
| StreamAgentRoleUserMessage
|
|
43
|
-
| StreamAgentRoleToolMessage;
|
|
44
|
-
|
|
45
|
-
export const StreamAgentPublicMessagePartAgentsRequestKind = {
|
|
46
|
-
ToolResult: "tool_result",
|
|
47
|
-
} as const;
|
|
48
|
-
export type StreamAgentPublicMessagePartAgentsRequestKind = ClosedEnum<
|
|
49
|
-
typeof StreamAgentPublicMessagePartAgentsRequestKind
|
|
50
|
-
>;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* 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.
|
|
54
|
-
*/
|
|
55
|
-
export type StreamAgentPublicMessagePartToolResultPart = {
|
|
56
|
-
kind: StreamAgentPublicMessagePartAgentsRequestKind;
|
|
57
|
-
toolCallId: string;
|
|
58
|
-
result?: any | undefined;
|
|
59
|
-
metadata?: { [k: string]: any } | undefined;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export const StreamAgentPublicMessagePartAgentsKind = {
|
|
63
|
-
File: "file",
|
|
64
|
-
} as const;
|
|
65
|
-
export type StreamAgentPublicMessagePartAgentsKind = ClosedEnum<
|
|
66
|
-
typeof StreamAgentPublicMessagePartAgentsKind
|
|
67
|
-
>;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
71
|
-
*/
|
|
72
|
-
export type StreamAgentFileFileInURIFormat = {
|
|
73
|
-
/**
|
|
74
|
-
* URL for the File content
|
|
75
|
-
*/
|
|
76
|
-
uri: string;
|
|
77
|
-
/**
|
|
78
|
-
* Optional mimeType for the file
|
|
79
|
-
*/
|
|
80
|
-
mimeType?: string | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Optional name for the file
|
|
83
|
-
*/
|
|
84
|
-
name?: string | undefined;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
89
|
-
*/
|
|
90
|
-
export type StreamAgentFileBinaryFormat = {
|
|
91
|
-
/**
|
|
92
|
-
* base64 encoded content of the file
|
|
93
|
-
*/
|
|
94
|
-
bytes: string;
|
|
95
|
-
/**
|
|
96
|
-
* Optional mimeType for the file
|
|
97
|
-
*/
|
|
98
|
-
mimeType?: string | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* Optional name for the file
|
|
101
|
-
*/
|
|
102
|
-
name?: string | undefined;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export type StreamAgentPublicMessagePartFile =
|
|
106
|
-
| StreamAgentFileBinaryFormat
|
|
107
|
-
| StreamAgentFileFileInURIFormat;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
111
|
-
*/
|
|
112
|
-
export type StreamAgentPublicMessagePartFilePart = {
|
|
113
|
-
kind: StreamAgentPublicMessagePartAgentsKind;
|
|
114
|
-
file: StreamAgentFileBinaryFormat | StreamAgentFileFileInURIFormat;
|
|
115
|
-
metadata?: { [k: string]: any } | undefined;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export const StreamAgentPublicMessagePartKind = {
|
|
119
|
-
Text: "text",
|
|
120
|
-
} as const;
|
|
121
|
-
export type StreamAgentPublicMessagePartKind = ClosedEnum<
|
|
122
|
-
typeof StreamAgentPublicMessagePartKind
|
|
123
|
-
>;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Text content part. Use this to send text messages to the agent.
|
|
127
|
-
*/
|
|
128
|
-
export type StreamAgentPublicMessagePartTextPart = {
|
|
129
|
-
kind: StreamAgentPublicMessagePartKind;
|
|
130
|
-
text: string;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* 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.
|
|
135
|
-
*/
|
|
136
|
-
export type StreamAgentPublicMessagePart =
|
|
137
|
-
| StreamAgentPublicMessagePartTextPart
|
|
138
|
-
| StreamAgentPublicMessagePartFilePart
|
|
139
|
-
| StreamAgentPublicMessagePartToolResultPart;
|
|
140
|
-
|
|
141
|
-
export type StreamAgentMessage = {
|
|
142
|
-
/**
|
|
143
|
-
* Optional A2A message ID in ULID format
|
|
144
|
-
*/
|
|
145
|
-
messageId?: string | undefined;
|
|
146
|
-
/**
|
|
147
|
-
* Message role (user or tool for continuing executions)
|
|
148
|
-
*/
|
|
149
|
-
role: StreamAgentRoleUserMessage | StreamAgentRoleToolMessage;
|
|
150
|
-
/**
|
|
151
|
-
* A2A message parts (text, file, or tool_result only)
|
|
152
|
-
*/
|
|
153
|
-
parts: Array<
|
|
154
|
-
| StreamAgentPublicMessagePartTextPart
|
|
155
|
-
| StreamAgentPublicMessagePartFilePart
|
|
156
|
-
| StreamAgentPublicMessagePartToolResultPart
|
|
157
|
-
>;
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
162
|
-
*/
|
|
163
|
-
export type StreamAgentContact = {
|
|
164
|
-
/**
|
|
165
|
-
* Unique identifier for the contact
|
|
166
|
-
*/
|
|
167
|
-
id: string;
|
|
168
|
-
/**
|
|
169
|
-
* Display name of the contact
|
|
170
|
-
*/
|
|
171
|
-
displayName?: string | undefined;
|
|
172
|
-
/**
|
|
173
|
-
* Email address of the contact
|
|
174
|
-
*/
|
|
175
|
-
email?: string | undefined;
|
|
176
|
-
/**
|
|
177
|
-
* A hash of key/value pairs containing any other data about the contact
|
|
178
|
-
*/
|
|
179
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
180
|
-
/**
|
|
181
|
-
* URL to the contact's avatar or logo
|
|
182
|
-
*/
|
|
183
|
-
logoUrl?: string | undefined;
|
|
184
|
-
/**
|
|
185
|
-
* A list of tags associated with the contact
|
|
186
|
-
*/
|
|
187
|
-
tags?: Array<string> | undefined;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* Thread information to group related requests
|
|
192
|
-
*/
|
|
193
|
-
export type StreamAgentThread = {
|
|
194
|
-
/**
|
|
195
|
-
* Unique thread identifier to group related invocations.
|
|
196
|
-
*/
|
|
197
|
-
id: string;
|
|
198
|
-
/**
|
|
199
|
-
* Optional tags to differentiate or categorize threads
|
|
200
|
-
*/
|
|
201
|
-
tags?: Array<string> | undefined;
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
206
|
-
*/
|
|
207
|
-
export type StreamAgentMemory = {
|
|
208
|
-
/**
|
|
209
|
-
* 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.
|
|
210
|
-
*/
|
|
211
|
-
entityId: string;
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
export type StreamAgentRequestBody = {
|
|
215
|
-
/**
|
|
216
|
-
* 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.
|
|
217
|
-
*/
|
|
218
|
-
taskId?: string | undefined;
|
|
219
|
-
message: StreamAgentMessage;
|
|
220
|
-
/**
|
|
221
|
-
* Optional variables for template replacement in system prompt, instructions, and messages
|
|
222
|
-
*/
|
|
223
|
-
variables?: { [k: string]: any } | undefined;
|
|
224
|
-
/**
|
|
225
|
-
* Information about the contact making the request. If the contact does not exist, it will be created automatically.
|
|
226
|
-
*/
|
|
227
|
-
contact?: StreamAgentContact | undefined;
|
|
228
|
-
/**
|
|
229
|
-
* Thread information to group related requests
|
|
230
|
-
*/
|
|
231
|
-
thread?: StreamAgentThread | undefined;
|
|
232
|
-
/**
|
|
233
|
-
* Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
|
|
234
|
-
*/
|
|
235
|
-
memory?: StreamAgentMemory | undefined;
|
|
236
|
-
/**
|
|
237
|
-
* Optional metadata for the agent invocation as key-value pairs that will be included in traces
|
|
238
|
-
*/
|
|
239
|
-
metadata?: { [k: string]: any } | undefined;
|
|
240
|
-
/**
|
|
241
|
-
* Stream timeout in seconds (1-3600). Default: 1800 (30 minutes)
|
|
242
|
-
*/
|
|
243
|
-
streamTimeoutSeconds?: number | undefined;
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
export type StreamAgentRequest = {
|
|
247
|
-
/**
|
|
248
|
-
* The key or ID of the agent to invoke
|
|
249
|
-
*/
|
|
250
|
-
key: string;
|
|
251
|
-
requestBody?: StreamAgentRequestBody | undefined;
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* SSE stream of agent events
|
|
256
|
-
*/
|
|
257
|
-
export type StreamAgentResponseBody = {
|
|
258
|
-
/**
|
|
259
|
-
* JSON-encoded event data
|
|
260
|
-
*/
|
|
261
|
-
data: string;
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
/** @internal */
|
|
265
|
-
export const StreamAgentRoleToolMessage$inboundSchema: z.ZodNativeEnum<
|
|
266
|
-
typeof StreamAgentRoleToolMessage
|
|
267
|
-
> = z.nativeEnum(StreamAgentRoleToolMessage);
|
|
268
|
-
|
|
269
|
-
/** @internal */
|
|
270
|
-
export const StreamAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
|
|
271
|
-
typeof StreamAgentRoleToolMessage
|
|
272
|
-
> = StreamAgentRoleToolMessage$inboundSchema;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* @internal
|
|
276
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
277
|
-
*/
|
|
278
|
-
export namespace StreamAgentRoleToolMessage$ {
|
|
279
|
-
/** @deprecated use `StreamAgentRoleToolMessage$inboundSchema` instead. */
|
|
280
|
-
export const inboundSchema = StreamAgentRoleToolMessage$inboundSchema;
|
|
281
|
-
/** @deprecated use `StreamAgentRoleToolMessage$outboundSchema` instead. */
|
|
282
|
-
export const outboundSchema = StreamAgentRoleToolMessage$outboundSchema;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
/** @internal */
|
|
286
|
-
export const StreamAgentRoleUserMessage$inboundSchema: z.ZodNativeEnum<
|
|
287
|
-
typeof StreamAgentRoleUserMessage
|
|
288
|
-
> = z.nativeEnum(StreamAgentRoleUserMessage);
|
|
289
|
-
|
|
290
|
-
/** @internal */
|
|
291
|
-
export const StreamAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
|
|
292
|
-
typeof StreamAgentRoleUserMessage
|
|
293
|
-
> = StreamAgentRoleUserMessage$inboundSchema;
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* @internal
|
|
297
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
298
|
-
*/
|
|
299
|
-
export namespace StreamAgentRoleUserMessage$ {
|
|
300
|
-
/** @deprecated use `StreamAgentRoleUserMessage$inboundSchema` instead. */
|
|
301
|
-
export const inboundSchema = StreamAgentRoleUserMessage$inboundSchema;
|
|
302
|
-
/** @deprecated use `StreamAgentRoleUserMessage$outboundSchema` instead. */
|
|
303
|
-
export const outboundSchema = StreamAgentRoleUserMessage$outboundSchema;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/** @internal */
|
|
307
|
-
export const StreamAgentRole$inboundSchema: z.ZodType<
|
|
308
|
-
StreamAgentRole,
|
|
309
|
-
z.ZodTypeDef,
|
|
310
|
-
unknown
|
|
311
|
-
> = z.union([
|
|
312
|
-
StreamAgentRoleUserMessage$inboundSchema,
|
|
313
|
-
StreamAgentRoleToolMessage$inboundSchema,
|
|
314
|
-
]);
|
|
315
|
-
|
|
316
|
-
/** @internal */
|
|
317
|
-
export type StreamAgentRole$Outbound = string | string;
|
|
318
|
-
|
|
319
|
-
/** @internal */
|
|
320
|
-
export const StreamAgentRole$outboundSchema: z.ZodType<
|
|
321
|
-
StreamAgentRole$Outbound,
|
|
322
|
-
z.ZodTypeDef,
|
|
323
|
-
StreamAgentRole
|
|
324
|
-
> = z.union([
|
|
325
|
-
StreamAgentRoleUserMessage$outboundSchema,
|
|
326
|
-
StreamAgentRoleToolMessage$outboundSchema,
|
|
327
|
-
]);
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* @internal
|
|
331
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
332
|
-
*/
|
|
333
|
-
export namespace StreamAgentRole$ {
|
|
334
|
-
/** @deprecated use `StreamAgentRole$inboundSchema` instead. */
|
|
335
|
-
export const inboundSchema = StreamAgentRole$inboundSchema;
|
|
336
|
-
/** @deprecated use `StreamAgentRole$outboundSchema` instead. */
|
|
337
|
-
export const outboundSchema = StreamAgentRole$outboundSchema;
|
|
338
|
-
/** @deprecated use `StreamAgentRole$Outbound` instead. */
|
|
339
|
-
export type Outbound = StreamAgentRole$Outbound;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export function streamAgentRoleToJSON(
|
|
343
|
-
streamAgentRole: StreamAgentRole,
|
|
344
|
-
): string {
|
|
345
|
-
return JSON.stringify(StreamAgentRole$outboundSchema.parse(streamAgentRole));
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
export function streamAgentRoleFromJSON(
|
|
349
|
-
jsonString: string,
|
|
350
|
-
): SafeParseResult<StreamAgentRole, SDKValidationError> {
|
|
351
|
-
return safeParse(
|
|
352
|
-
jsonString,
|
|
353
|
-
(x) => StreamAgentRole$inboundSchema.parse(JSON.parse(x)),
|
|
354
|
-
`Failed to parse 'StreamAgentRole' from JSON`,
|
|
355
|
-
);
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
/** @internal */
|
|
359
|
-
export const StreamAgentPublicMessagePartAgentsRequestKind$inboundSchema:
|
|
360
|
-
z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsRequestKind> = z
|
|
361
|
-
.nativeEnum(StreamAgentPublicMessagePartAgentsRequestKind);
|
|
362
|
-
|
|
363
|
-
/** @internal */
|
|
364
|
-
export const StreamAgentPublicMessagePartAgentsRequestKind$outboundSchema:
|
|
365
|
-
z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsRequestKind> =
|
|
366
|
-
StreamAgentPublicMessagePartAgentsRequestKind$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 StreamAgentPublicMessagePartAgentsRequestKind$ {
|
|
373
|
-
/** @deprecated use `StreamAgentPublicMessagePartAgentsRequestKind$inboundSchema` instead. */
|
|
374
|
-
export const inboundSchema =
|
|
375
|
-
StreamAgentPublicMessagePartAgentsRequestKind$inboundSchema;
|
|
376
|
-
/** @deprecated use `StreamAgentPublicMessagePartAgentsRequestKind$outboundSchema` instead. */
|
|
377
|
-
export const outboundSchema =
|
|
378
|
-
StreamAgentPublicMessagePartAgentsRequestKind$outboundSchema;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
/** @internal */
|
|
382
|
-
export const StreamAgentPublicMessagePartToolResultPart$inboundSchema:
|
|
383
|
-
z.ZodType<StreamAgentPublicMessagePartToolResultPart, z.ZodTypeDef, unknown> =
|
|
384
|
-
z.object({
|
|
385
|
-
kind: StreamAgentPublicMessagePartAgentsRequestKind$inboundSchema,
|
|
386
|
-
tool_call_id: z.string(),
|
|
387
|
-
result: z.any().optional(),
|
|
388
|
-
metadata: z.record(z.any()).optional(),
|
|
389
|
-
}).transform((v) => {
|
|
390
|
-
return remap$(v, {
|
|
391
|
-
"tool_call_id": "toolCallId",
|
|
392
|
-
});
|
|
393
|
-
});
|
|
394
|
-
|
|
395
|
-
/** @internal */
|
|
396
|
-
export type StreamAgentPublicMessagePartToolResultPart$Outbound = {
|
|
397
|
-
kind: string;
|
|
398
|
-
tool_call_id: string;
|
|
399
|
-
result?: any | undefined;
|
|
400
|
-
metadata?: { [k: string]: any } | undefined;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
/** @internal */
|
|
404
|
-
export const StreamAgentPublicMessagePartToolResultPart$outboundSchema:
|
|
405
|
-
z.ZodType<
|
|
406
|
-
StreamAgentPublicMessagePartToolResultPart$Outbound,
|
|
407
|
-
z.ZodTypeDef,
|
|
408
|
-
StreamAgentPublicMessagePartToolResultPart
|
|
409
|
-
> = z.object({
|
|
410
|
-
kind: StreamAgentPublicMessagePartAgentsRequestKind$outboundSchema,
|
|
411
|
-
toolCallId: z.string(),
|
|
412
|
-
result: z.any().optional(),
|
|
413
|
-
metadata: z.record(z.any()).optional(),
|
|
414
|
-
}).transform((v) => {
|
|
415
|
-
return remap$(v, {
|
|
416
|
-
toolCallId: "tool_call_id",
|
|
417
|
-
});
|
|
418
|
-
});
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* @internal
|
|
422
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
423
|
-
*/
|
|
424
|
-
export namespace StreamAgentPublicMessagePartToolResultPart$ {
|
|
425
|
-
/** @deprecated use `StreamAgentPublicMessagePartToolResultPart$inboundSchema` instead. */
|
|
426
|
-
export const inboundSchema =
|
|
427
|
-
StreamAgentPublicMessagePartToolResultPart$inboundSchema;
|
|
428
|
-
/** @deprecated use `StreamAgentPublicMessagePartToolResultPart$outboundSchema` instead. */
|
|
429
|
-
export const outboundSchema =
|
|
430
|
-
StreamAgentPublicMessagePartToolResultPart$outboundSchema;
|
|
431
|
-
/** @deprecated use `StreamAgentPublicMessagePartToolResultPart$Outbound` instead. */
|
|
432
|
-
export type Outbound = StreamAgentPublicMessagePartToolResultPart$Outbound;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
export function streamAgentPublicMessagePartToolResultPartToJSON(
|
|
436
|
-
streamAgentPublicMessagePartToolResultPart:
|
|
437
|
-
StreamAgentPublicMessagePartToolResultPart,
|
|
438
|
-
): string {
|
|
439
|
-
return JSON.stringify(
|
|
440
|
-
StreamAgentPublicMessagePartToolResultPart$outboundSchema.parse(
|
|
441
|
-
streamAgentPublicMessagePartToolResultPart,
|
|
442
|
-
),
|
|
443
|
-
);
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
export function streamAgentPublicMessagePartToolResultPartFromJSON(
|
|
447
|
-
jsonString: string,
|
|
448
|
-
): SafeParseResult<
|
|
449
|
-
StreamAgentPublicMessagePartToolResultPart,
|
|
450
|
-
SDKValidationError
|
|
451
|
-
> {
|
|
452
|
-
return safeParse(
|
|
453
|
-
jsonString,
|
|
454
|
-
(x) =>
|
|
455
|
-
StreamAgentPublicMessagePartToolResultPart$inboundSchema.parse(
|
|
456
|
-
JSON.parse(x),
|
|
457
|
-
),
|
|
458
|
-
`Failed to parse 'StreamAgentPublicMessagePartToolResultPart' from JSON`,
|
|
459
|
-
);
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
/** @internal */
|
|
463
|
-
export const StreamAgentPublicMessagePartAgentsKind$inboundSchema:
|
|
464
|
-
z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsKind> = z.nativeEnum(
|
|
465
|
-
StreamAgentPublicMessagePartAgentsKind,
|
|
466
|
-
);
|
|
467
|
-
|
|
468
|
-
/** @internal */
|
|
469
|
-
export const StreamAgentPublicMessagePartAgentsKind$outboundSchema:
|
|
470
|
-
z.ZodNativeEnum<typeof StreamAgentPublicMessagePartAgentsKind> =
|
|
471
|
-
StreamAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* @internal
|
|
475
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
476
|
-
*/
|
|
477
|
-
export namespace StreamAgentPublicMessagePartAgentsKind$ {
|
|
478
|
-
/** @deprecated use `StreamAgentPublicMessagePartAgentsKind$inboundSchema` instead. */
|
|
479
|
-
export const inboundSchema =
|
|
480
|
-
StreamAgentPublicMessagePartAgentsKind$inboundSchema;
|
|
481
|
-
/** @deprecated use `StreamAgentPublicMessagePartAgentsKind$outboundSchema` instead. */
|
|
482
|
-
export const outboundSchema =
|
|
483
|
-
StreamAgentPublicMessagePartAgentsKind$outboundSchema;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
/** @internal */
|
|
487
|
-
export const StreamAgentFileFileInURIFormat$inboundSchema: z.ZodType<
|
|
488
|
-
StreamAgentFileFileInURIFormat,
|
|
489
|
-
z.ZodTypeDef,
|
|
490
|
-
unknown
|
|
491
|
-
> = z.object({
|
|
492
|
-
uri: z.string(),
|
|
493
|
-
mimeType: z.string().optional(),
|
|
494
|
-
name: z.string().optional(),
|
|
495
|
-
});
|
|
496
|
-
|
|
497
|
-
/** @internal */
|
|
498
|
-
export type StreamAgentFileFileInURIFormat$Outbound = {
|
|
499
|
-
uri: string;
|
|
500
|
-
mimeType?: string | undefined;
|
|
501
|
-
name?: string | undefined;
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
/** @internal */
|
|
505
|
-
export const StreamAgentFileFileInURIFormat$outboundSchema: z.ZodType<
|
|
506
|
-
StreamAgentFileFileInURIFormat$Outbound,
|
|
507
|
-
z.ZodTypeDef,
|
|
508
|
-
StreamAgentFileFileInURIFormat
|
|
509
|
-
> = z.object({
|
|
510
|
-
uri: z.string(),
|
|
511
|
-
mimeType: z.string().optional(),
|
|
512
|
-
name: z.string().optional(),
|
|
513
|
-
});
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* @internal
|
|
517
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
518
|
-
*/
|
|
519
|
-
export namespace StreamAgentFileFileInURIFormat$ {
|
|
520
|
-
/** @deprecated use `StreamAgentFileFileInURIFormat$inboundSchema` instead. */
|
|
521
|
-
export const inboundSchema = StreamAgentFileFileInURIFormat$inboundSchema;
|
|
522
|
-
/** @deprecated use `StreamAgentFileFileInURIFormat$outboundSchema` instead. */
|
|
523
|
-
export const outboundSchema = StreamAgentFileFileInURIFormat$outboundSchema;
|
|
524
|
-
/** @deprecated use `StreamAgentFileFileInURIFormat$Outbound` instead. */
|
|
525
|
-
export type Outbound = StreamAgentFileFileInURIFormat$Outbound;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
export function streamAgentFileFileInURIFormatToJSON(
|
|
529
|
-
streamAgentFileFileInURIFormat: StreamAgentFileFileInURIFormat,
|
|
530
|
-
): string {
|
|
531
|
-
return JSON.stringify(
|
|
532
|
-
StreamAgentFileFileInURIFormat$outboundSchema.parse(
|
|
533
|
-
streamAgentFileFileInURIFormat,
|
|
534
|
-
),
|
|
535
|
-
);
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
export function streamAgentFileFileInURIFormatFromJSON(
|
|
539
|
-
jsonString: string,
|
|
540
|
-
): SafeParseResult<StreamAgentFileFileInURIFormat, SDKValidationError> {
|
|
541
|
-
return safeParse(
|
|
542
|
-
jsonString,
|
|
543
|
-
(x) => StreamAgentFileFileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
544
|
-
`Failed to parse 'StreamAgentFileFileInURIFormat' from JSON`,
|
|
545
|
-
);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
/** @internal */
|
|
549
|
-
export const StreamAgentFileBinaryFormat$inboundSchema: z.ZodType<
|
|
550
|
-
StreamAgentFileBinaryFormat,
|
|
551
|
-
z.ZodTypeDef,
|
|
552
|
-
unknown
|
|
553
|
-
> = z.object({
|
|
554
|
-
bytes: z.string(),
|
|
555
|
-
mimeType: z.string().optional(),
|
|
556
|
-
name: z.string().optional(),
|
|
557
|
-
});
|
|
558
|
-
|
|
559
|
-
/** @internal */
|
|
560
|
-
export type StreamAgentFileBinaryFormat$Outbound = {
|
|
561
|
-
bytes: string;
|
|
562
|
-
mimeType?: string | undefined;
|
|
563
|
-
name?: string | undefined;
|
|
564
|
-
};
|
|
565
|
-
|
|
566
|
-
/** @internal */
|
|
567
|
-
export const StreamAgentFileBinaryFormat$outboundSchema: z.ZodType<
|
|
568
|
-
StreamAgentFileBinaryFormat$Outbound,
|
|
569
|
-
z.ZodTypeDef,
|
|
570
|
-
StreamAgentFileBinaryFormat
|
|
571
|
-
> = z.object({
|
|
572
|
-
bytes: z.string(),
|
|
573
|
-
mimeType: z.string().optional(),
|
|
574
|
-
name: z.string().optional(),
|
|
575
|
-
});
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* @internal
|
|
579
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
580
|
-
*/
|
|
581
|
-
export namespace StreamAgentFileBinaryFormat$ {
|
|
582
|
-
/** @deprecated use `StreamAgentFileBinaryFormat$inboundSchema` instead. */
|
|
583
|
-
export const inboundSchema = StreamAgentFileBinaryFormat$inboundSchema;
|
|
584
|
-
/** @deprecated use `StreamAgentFileBinaryFormat$outboundSchema` instead. */
|
|
585
|
-
export const outboundSchema = StreamAgentFileBinaryFormat$outboundSchema;
|
|
586
|
-
/** @deprecated use `StreamAgentFileBinaryFormat$Outbound` instead. */
|
|
587
|
-
export type Outbound = StreamAgentFileBinaryFormat$Outbound;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
export function streamAgentFileBinaryFormatToJSON(
|
|
591
|
-
streamAgentFileBinaryFormat: StreamAgentFileBinaryFormat,
|
|
592
|
-
): string {
|
|
593
|
-
return JSON.stringify(
|
|
594
|
-
StreamAgentFileBinaryFormat$outboundSchema.parse(
|
|
595
|
-
streamAgentFileBinaryFormat,
|
|
596
|
-
),
|
|
597
|
-
);
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
export function streamAgentFileBinaryFormatFromJSON(
|
|
601
|
-
jsonString: string,
|
|
602
|
-
): SafeParseResult<StreamAgentFileBinaryFormat, SDKValidationError> {
|
|
603
|
-
return safeParse(
|
|
604
|
-
jsonString,
|
|
605
|
-
(x) => StreamAgentFileBinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
606
|
-
`Failed to parse 'StreamAgentFileBinaryFormat' from JSON`,
|
|
607
|
-
);
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
/** @internal */
|
|
611
|
-
export const StreamAgentPublicMessagePartFile$inboundSchema: z.ZodType<
|
|
612
|
-
StreamAgentPublicMessagePartFile,
|
|
613
|
-
z.ZodTypeDef,
|
|
614
|
-
unknown
|
|
615
|
-
> = z.union([
|
|
616
|
-
z.lazy(() => StreamAgentFileBinaryFormat$inboundSchema),
|
|
617
|
-
z.lazy(() => StreamAgentFileFileInURIFormat$inboundSchema),
|
|
618
|
-
]);
|
|
619
|
-
|
|
620
|
-
/** @internal */
|
|
621
|
-
export type StreamAgentPublicMessagePartFile$Outbound =
|
|
622
|
-
| StreamAgentFileBinaryFormat$Outbound
|
|
623
|
-
| StreamAgentFileFileInURIFormat$Outbound;
|
|
624
|
-
|
|
625
|
-
/** @internal */
|
|
626
|
-
export const StreamAgentPublicMessagePartFile$outboundSchema: z.ZodType<
|
|
627
|
-
StreamAgentPublicMessagePartFile$Outbound,
|
|
628
|
-
z.ZodTypeDef,
|
|
629
|
-
StreamAgentPublicMessagePartFile
|
|
630
|
-
> = z.union([
|
|
631
|
-
z.lazy(() => StreamAgentFileBinaryFormat$outboundSchema),
|
|
632
|
-
z.lazy(() => StreamAgentFileFileInURIFormat$outboundSchema),
|
|
633
|
-
]);
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* @internal
|
|
637
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
638
|
-
*/
|
|
639
|
-
export namespace StreamAgentPublicMessagePartFile$ {
|
|
640
|
-
/** @deprecated use `StreamAgentPublicMessagePartFile$inboundSchema` instead. */
|
|
641
|
-
export const inboundSchema = StreamAgentPublicMessagePartFile$inboundSchema;
|
|
642
|
-
/** @deprecated use `StreamAgentPublicMessagePartFile$outboundSchema` instead. */
|
|
643
|
-
export const outboundSchema = StreamAgentPublicMessagePartFile$outboundSchema;
|
|
644
|
-
/** @deprecated use `StreamAgentPublicMessagePartFile$Outbound` instead. */
|
|
645
|
-
export type Outbound = StreamAgentPublicMessagePartFile$Outbound;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
export function streamAgentPublicMessagePartFileToJSON(
|
|
649
|
-
streamAgentPublicMessagePartFile: StreamAgentPublicMessagePartFile,
|
|
650
|
-
): string {
|
|
651
|
-
return JSON.stringify(
|
|
652
|
-
StreamAgentPublicMessagePartFile$outboundSchema.parse(
|
|
653
|
-
streamAgentPublicMessagePartFile,
|
|
654
|
-
),
|
|
655
|
-
);
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
export function streamAgentPublicMessagePartFileFromJSON(
|
|
659
|
-
jsonString: string,
|
|
660
|
-
): SafeParseResult<StreamAgentPublicMessagePartFile, SDKValidationError> {
|
|
661
|
-
return safeParse(
|
|
662
|
-
jsonString,
|
|
663
|
-
(x) => StreamAgentPublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
|
|
664
|
-
`Failed to parse 'StreamAgentPublicMessagePartFile' from JSON`,
|
|
665
|
-
);
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
/** @internal */
|
|
669
|
-
export const StreamAgentPublicMessagePartFilePart$inboundSchema: z.ZodType<
|
|
670
|
-
StreamAgentPublicMessagePartFilePart,
|
|
671
|
-
z.ZodTypeDef,
|
|
672
|
-
unknown
|
|
673
|
-
> = z.object({
|
|
674
|
-
kind: StreamAgentPublicMessagePartAgentsKind$inboundSchema,
|
|
675
|
-
file: z.union([
|
|
676
|
-
z.lazy(() => StreamAgentFileBinaryFormat$inboundSchema),
|
|
677
|
-
z.lazy(() => StreamAgentFileFileInURIFormat$inboundSchema),
|
|
678
|
-
]),
|
|
679
|
-
metadata: z.record(z.any()).optional(),
|
|
680
|
-
});
|
|
681
|
-
|
|
682
|
-
/** @internal */
|
|
683
|
-
export type StreamAgentPublicMessagePartFilePart$Outbound = {
|
|
684
|
-
kind: string;
|
|
685
|
-
file:
|
|
686
|
-
| StreamAgentFileBinaryFormat$Outbound
|
|
687
|
-
| StreamAgentFileFileInURIFormat$Outbound;
|
|
688
|
-
metadata?: { [k: string]: any } | undefined;
|
|
689
|
-
};
|
|
690
|
-
|
|
691
|
-
/** @internal */
|
|
692
|
-
export const StreamAgentPublicMessagePartFilePart$outboundSchema: z.ZodType<
|
|
693
|
-
StreamAgentPublicMessagePartFilePart$Outbound,
|
|
694
|
-
z.ZodTypeDef,
|
|
695
|
-
StreamAgentPublicMessagePartFilePart
|
|
696
|
-
> = z.object({
|
|
697
|
-
kind: StreamAgentPublicMessagePartAgentsKind$outboundSchema,
|
|
698
|
-
file: z.union([
|
|
699
|
-
z.lazy(() => StreamAgentFileBinaryFormat$outboundSchema),
|
|
700
|
-
z.lazy(() => StreamAgentFileFileInURIFormat$outboundSchema),
|
|
701
|
-
]),
|
|
702
|
-
metadata: z.record(z.any()).optional(),
|
|
703
|
-
});
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* @internal
|
|
707
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
708
|
-
*/
|
|
709
|
-
export namespace StreamAgentPublicMessagePartFilePart$ {
|
|
710
|
-
/** @deprecated use `StreamAgentPublicMessagePartFilePart$inboundSchema` instead. */
|
|
711
|
-
export const inboundSchema =
|
|
712
|
-
StreamAgentPublicMessagePartFilePart$inboundSchema;
|
|
713
|
-
/** @deprecated use `StreamAgentPublicMessagePartFilePart$outboundSchema` instead. */
|
|
714
|
-
export const outboundSchema =
|
|
715
|
-
StreamAgentPublicMessagePartFilePart$outboundSchema;
|
|
716
|
-
/** @deprecated use `StreamAgentPublicMessagePartFilePart$Outbound` instead. */
|
|
717
|
-
export type Outbound = StreamAgentPublicMessagePartFilePart$Outbound;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
export function streamAgentPublicMessagePartFilePartToJSON(
|
|
721
|
-
streamAgentPublicMessagePartFilePart: StreamAgentPublicMessagePartFilePart,
|
|
722
|
-
): string {
|
|
723
|
-
return JSON.stringify(
|
|
724
|
-
StreamAgentPublicMessagePartFilePart$outboundSchema.parse(
|
|
725
|
-
streamAgentPublicMessagePartFilePart,
|
|
726
|
-
),
|
|
727
|
-
);
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
export function streamAgentPublicMessagePartFilePartFromJSON(
|
|
731
|
-
jsonString: string,
|
|
732
|
-
): SafeParseResult<StreamAgentPublicMessagePartFilePart, SDKValidationError> {
|
|
733
|
-
return safeParse(
|
|
734
|
-
jsonString,
|
|
735
|
-
(x) =>
|
|
736
|
-
StreamAgentPublicMessagePartFilePart$inboundSchema.parse(JSON.parse(x)),
|
|
737
|
-
`Failed to parse 'StreamAgentPublicMessagePartFilePart' from JSON`,
|
|
738
|
-
);
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
/** @internal */
|
|
742
|
-
export const StreamAgentPublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
743
|
-
typeof StreamAgentPublicMessagePartKind
|
|
744
|
-
> = z.nativeEnum(StreamAgentPublicMessagePartKind);
|
|
745
|
-
|
|
746
|
-
/** @internal */
|
|
747
|
-
export const StreamAgentPublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
748
|
-
typeof StreamAgentPublicMessagePartKind
|
|
749
|
-
> = StreamAgentPublicMessagePartKind$inboundSchema;
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* @internal
|
|
753
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
754
|
-
*/
|
|
755
|
-
export namespace StreamAgentPublicMessagePartKind$ {
|
|
756
|
-
/** @deprecated use `StreamAgentPublicMessagePartKind$inboundSchema` instead. */
|
|
757
|
-
export const inboundSchema = StreamAgentPublicMessagePartKind$inboundSchema;
|
|
758
|
-
/** @deprecated use `StreamAgentPublicMessagePartKind$outboundSchema` instead. */
|
|
759
|
-
export const outboundSchema = StreamAgentPublicMessagePartKind$outboundSchema;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
/** @internal */
|
|
763
|
-
export const StreamAgentPublicMessagePartTextPart$inboundSchema: z.ZodType<
|
|
764
|
-
StreamAgentPublicMessagePartTextPart,
|
|
765
|
-
z.ZodTypeDef,
|
|
766
|
-
unknown
|
|
767
|
-
> = z.object({
|
|
768
|
-
kind: StreamAgentPublicMessagePartKind$inboundSchema,
|
|
769
|
-
text: z.string(),
|
|
770
|
-
});
|
|
771
|
-
|
|
772
|
-
/** @internal */
|
|
773
|
-
export type StreamAgentPublicMessagePartTextPart$Outbound = {
|
|
774
|
-
kind: string;
|
|
775
|
-
text: string;
|
|
776
|
-
};
|
|
777
|
-
|
|
778
|
-
/** @internal */
|
|
779
|
-
export const StreamAgentPublicMessagePartTextPart$outboundSchema: z.ZodType<
|
|
780
|
-
StreamAgentPublicMessagePartTextPart$Outbound,
|
|
781
|
-
z.ZodTypeDef,
|
|
782
|
-
StreamAgentPublicMessagePartTextPart
|
|
783
|
-
> = z.object({
|
|
784
|
-
kind: StreamAgentPublicMessagePartKind$outboundSchema,
|
|
785
|
-
text: z.string(),
|
|
786
|
-
});
|
|
787
|
-
|
|
788
|
-
/**
|
|
789
|
-
* @internal
|
|
790
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
791
|
-
*/
|
|
792
|
-
export namespace StreamAgentPublicMessagePartTextPart$ {
|
|
793
|
-
/** @deprecated use `StreamAgentPublicMessagePartTextPart$inboundSchema` instead. */
|
|
794
|
-
export const inboundSchema =
|
|
795
|
-
StreamAgentPublicMessagePartTextPart$inboundSchema;
|
|
796
|
-
/** @deprecated use `StreamAgentPublicMessagePartTextPart$outboundSchema` instead. */
|
|
797
|
-
export const outboundSchema =
|
|
798
|
-
StreamAgentPublicMessagePartTextPart$outboundSchema;
|
|
799
|
-
/** @deprecated use `StreamAgentPublicMessagePartTextPart$Outbound` instead. */
|
|
800
|
-
export type Outbound = StreamAgentPublicMessagePartTextPart$Outbound;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
export function streamAgentPublicMessagePartTextPartToJSON(
|
|
804
|
-
streamAgentPublicMessagePartTextPart: StreamAgentPublicMessagePartTextPart,
|
|
805
|
-
): string {
|
|
806
|
-
return JSON.stringify(
|
|
807
|
-
StreamAgentPublicMessagePartTextPart$outboundSchema.parse(
|
|
808
|
-
streamAgentPublicMessagePartTextPart,
|
|
809
|
-
),
|
|
810
|
-
);
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
export function streamAgentPublicMessagePartTextPartFromJSON(
|
|
814
|
-
jsonString: string,
|
|
815
|
-
): SafeParseResult<StreamAgentPublicMessagePartTextPart, SDKValidationError> {
|
|
816
|
-
return safeParse(
|
|
817
|
-
jsonString,
|
|
818
|
-
(x) =>
|
|
819
|
-
StreamAgentPublicMessagePartTextPart$inboundSchema.parse(JSON.parse(x)),
|
|
820
|
-
`Failed to parse 'StreamAgentPublicMessagePartTextPart' from JSON`,
|
|
821
|
-
);
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
/** @internal */
|
|
825
|
-
export const StreamAgentPublicMessagePart$inboundSchema: z.ZodType<
|
|
826
|
-
StreamAgentPublicMessagePart,
|
|
827
|
-
z.ZodTypeDef,
|
|
828
|
-
unknown
|
|
829
|
-
> = z.union([
|
|
830
|
-
z.lazy(() => StreamAgentPublicMessagePartTextPart$inboundSchema),
|
|
831
|
-
z.lazy(() => StreamAgentPublicMessagePartFilePart$inboundSchema),
|
|
832
|
-
z.lazy(() => StreamAgentPublicMessagePartToolResultPart$inboundSchema),
|
|
833
|
-
]);
|
|
834
|
-
|
|
835
|
-
/** @internal */
|
|
836
|
-
export type StreamAgentPublicMessagePart$Outbound =
|
|
837
|
-
| StreamAgentPublicMessagePartTextPart$Outbound
|
|
838
|
-
| StreamAgentPublicMessagePartFilePart$Outbound
|
|
839
|
-
| StreamAgentPublicMessagePartToolResultPart$Outbound;
|
|
840
|
-
|
|
841
|
-
/** @internal */
|
|
842
|
-
export const StreamAgentPublicMessagePart$outboundSchema: z.ZodType<
|
|
843
|
-
StreamAgentPublicMessagePart$Outbound,
|
|
844
|
-
z.ZodTypeDef,
|
|
845
|
-
StreamAgentPublicMessagePart
|
|
846
|
-
> = z.union([
|
|
847
|
-
z.lazy(() => StreamAgentPublicMessagePartTextPart$outboundSchema),
|
|
848
|
-
z.lazy(() => StreamAgentPublicMessagePartFilePart$outboundSchema),
|
|
849
|
-
z.lazy(() => StreamAgentPublicMessagePartToolResultPart$outboundSchema),
|
|
850
|
-
]);
|
|
851
|
-
|
|
852
|
-
/**
|
|
853
|
-
* @internal
|
|
854
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
855
|
-
*/
|
|
856
|
-
export namespace StreamAgentPublicMessagePart$ {
|
|
857
|
-
/** @deprecated use `StreamAgentPublicMessagePart$inboundSchema` instead. */
|
|
858
|
-
export const inboundSchema = StreamAgentPublicMessagePart$inboundSchema;
|
|
859
|
-
/** @deprecated use `StreamAgentPublicMessagePart$outboundSchema` instead. */
|
|
860
|
-
export const outboundSchema = StreamAgentPublicMessagePart$outboundSchema;
|
|
861
|
-
/** @deprecated use `StreamAgentPublicMessagePart$Outbound` instead. */
|
|
862
|
-
export type Outbound = StreamAgentPublicMessagePart$Outbound;
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
export function streamAgentPublicMessagePartToJSON(
|
|
866
|
-
streamAgentPublicMessagePart: StreamAgentPublicMessagePart,
|
|
867
|
-
): string {
|
|
868
|
-
return JSON.stringify(
|
|
869
|
-
StreamAgentPublicMessagePart$outboundSchema.parse(
|
|
870
|
-
streamAgentPublicMessagePart,
|
|
871
|
-
),
|
|
872
|
-
);
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
export function streamAgentPublicMessagePartFromJSON(
|
|
876
|
-
jsonString: string,
|
|
877
|
-
): SafeParseResult<StreamAgentPublicMessagePart, SDKValidationError> {
|
|
878
|
-
return safeParse(
|
|
879
|
-
jsonString,
|
|
880
|
-
(x) => StreamAgentPublicMessagePart$inboundSchema.parse(JSON.parse(x)),
|
|
881
|
-
`Failed to parse 'StreamAgentPublicMessagePart' from JSON`,
|
|
882
|
-
);
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
/** @internal */
|
|
886
|
-
export const StreamAgentMessage$inboundSchema: z.ZodType<
|
|
887
|
-
StreamAgentMessage,
|
|
888
|
-
z.ZodTypeDef,
|
|
889
|
-
unknown
|
|
890
|
-
> = z.object({
|
|
891
|
-
messageId: z.string().optional(),
|
|
892
|
-
role: z.union([
|
|
893
|
-
StreamAgentRoleUserMessage$inboundSchema,
|
|
894
|
-
StreamAgentRoleToolMessage$inboundSchema,
|
|
895
|
-
]),
|
|
896
|
-
parts: z.array(
|
|
897
|
-
z.union([
|
|
898
|
-
z.lazy(() => StreamAgentPublicMessagePartTextPart$inboundSchema),
|
|
899
|
-
z.lazy(() => StreamAgentPublicMessagePartFilePart$inboundSchema),
|
|
900
|
-
z.lazy(() => StreamAgentPublicMessagePartToolResultPart$inboundSchema),
|
|
901
|
-
]),
|
|
902
|
-
),
|
|
903
|
-
});
|
|
904
|
-
|
|
905
|
-
/** @internal */
|
|
906
|
-
export type StreamAgentMessage$Outbound = {
|
|
907
|
-
messageId?: string | undefined;
|
|
908
|
-
role: string | string;
|
|
909
|
-
parts: Array<
|
|
910
|
-
| StreamAgentPublicMessagePartTextPart$Outbound
|
|
911
|
-
| StreamAgentPublicMessagePartFilePart$Outbound
|
|
912
|
-
| StreamAgentPublicMessagePartToolResultPart$Outbound
|
|
913
|
-
>;
|
|
914
|
-
};
|
|
915
|
-
|
|
916
|
-
/** @internal */
|
|
917
|
-
export const StreamAgentMessage$outboundSchema: z.ZodType<
|
|
918
|
-
StreamAgentMessage$Outbound,
|
|
919
|
-
z.ZodTypeDef,
|
|
920
|
-
StreamAgentMessage
|
|
921
|
-
> = z.object({
|
|
922
|
-
messageId: z.string().optional(),
|
|
923
|
-
role: z.union([
|
|
924
|
-
StreamAgentRoleUserMessage$outboundSchema,
|
|
925
|
-
StreamAgentRoleToolMessage$outboundSchema,
|
|
926
|
-
]),
|
|
927
|
-
parts: z.array(
|
|
928
|
-
z.union([
|
|
929
|
-
z.lazy(() => StreamAgentPublicMessagePartTextPart$outboundSchema),
|
|
930
|
-
z.lazy(() => StreamAgentPublicMessagePartFilePart$outboundSchema),
|
|
931
|
-
z.lazy(() => StreamAgentPublicMessagePartToolResultPart$outboundSchema),
|
|
932
|
-
]),
|
|
933
|
-
),
|
|
934
|
-
});
|
|
935
|
-
|
|
936
|
-
/**
|
|
937
|
-
* @internal
|
|
938
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
939
|
-
*/
|
|
940
|
-
export namespace StreamAgentMessage$ {
|
|
941
|
-
/** @deprecated use `StreamAgentMessage$inboundSchema` instead. */
|
|
942
|
-
export const inboundSchema = StreamAgentMessage$inboundSchema;
|
|
943
|
-
/** @deprecated use `StreamAgentMessage$outboundSchema` instead. */
|
|
944
|
-
export const outboundSchema = StreamAgentMessage$outboundSchema;
|
|
945
|
-
/** @deprecated use `StreamAgentMessage$Outbound` instead. */
|
|
946
|
-
export type Outbound = StreamAgentMessage$Outbound;
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
export function streamAgentMessageToJSON(
|
|
950
|
-
streamAgentMessage: StreamAgentMessage,
|
|
951
|
-
): string {
|
|
952
|
-
return JSON.stringify(
|
|
953
|
-
StreamAgentMessage$outboundSchema.parse(streamAgentMessage),
|
|
954
|
-
);
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
export function streamAgentMessageFromJSON(
|
|
958
|
-
jsonString: string,
|
|
959
|
-
): SafeParseResult<StreamAgentMessage, SDKValidationError> {
|
|
960
|
-
return safeParse(
|
|
961
|
-
jsonString,
|
|
962
|
-
(x) => StreamAgentMessage$inboundSchema.parse(JSON.parse(x)),
|
|
963
|
-
`Failed to parse 'StreamAgentMessage' from JSON`,
|
|
964
|
-
);
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
/** @internal */
|
|
968
|
-
export const StreamAgentContact$inboundSchema: z.ZodType<
|
|
969
|
-
StreamAgentContact,
|
|
970
|
-
z.ZodTypeDef,
|
|
971
|
-
unknown
|
|
972
|
-
> = z.object({
|
|
973
|
-
id: z.string(),
|
|
974
|
-
display_name: z.string().optional(),
|
|
975
|
-
email: z.string().optional(),
|
|
976
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
977
|
-
logo_url: z.string().optional(),
|
|
978
|
-
tags: z.array(z.string()).optional(),
|
|
979
|
-
}).transform((v) => {
|
|
980
|
-
return remap$(v, {
|
|
981
|
-
"display_name": "displayName",
|
|
982
|
-
"logo_url": "logoUrl",
|
|
983
|
-
});
|
|
984
|
-
});
|
|
985
|
-
|
|
986
|
-
/** @internal */
|
|
987
|
-
export type StreamAgentContact$Outbound = {
|
|
988
|
-
id: string;
|
|
989
|
-
display_name?: string | undefined;
|
|
990
|
-
email?: string | undefined;
|
|
991
|
-
metadata?: Array<{ [k: string]: any }> | undefined;
|
|
992
|
-
logo_url?: string | undefined;
|
|
993
|
-
tags?: Array<string> | undefined;
|
|
994
|
-
};
|
|
995
|
-
|
|
996
|
-
/** @internal */
|
|
997
|
-
export const StreamAgentContact$outboundSchema: z.ZodType<
|
|
998
|
-
StreamAgentContact$Outbound,
|
|
999
|
-
z.ZodTypeDef,
|
|
1000
|
-
StreamAgentContact
|
|
1001
|
-
> = z.object({
|
|
1002
|
-
id: z.string(),
|
|
1003
|
-
displayName: z.string().optional(),
|
|
1004
|
-
email: z.string().optional(),
|
|
1005
|
-
metadata: z.array(z.record(z.any())).optional(),
|
|
1006
|
-
logoUrl: z.string().optional(),
|
|
1007
|
-
tags: z.array(z.string()).optional(),
|
|
1008
|
-
}).transform((v) => {
|
|
1009
|
-
return remap$(v, {
|
|
1010
|
-
displayName: "display_name",
|
|
1011
|
-
logoUrl: "logo_url",
|
|
1012
|
-
});
|
|
1013
|
-
});
|
|
1014
|
-
|
|
1015
|
-
/**
|
|
1016
|
-
* @internal
|
|
1017
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1018
|
-
*/
|
|
1019
|
-
export namespace StreamAgentContact$ {
|
|
1020
|
-
/** @deprecated use `StreamAgentContact$inboundSchema` instead. */
|
|
1021
|
-
export const inboundSchema = StreamAgentContact$inboundSchema;
|
|
1022
|
-
/** @deprecated use `StreamAgentContact$outboundSchema` instead. */
|
|
1023
|
-
export const outboundSchema = StreamAgentContact$outboundSchema;
|
|
1024
|
-
/** @deprecated use `StreamAgentContact$Outbound` instead. */
|
|
1025
|
-
export type Outbound = StreamAgentContact$Outbound;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
export function streamAgentContactToJSON(
|
|
1029
|
-
streamAgentContact: StreamAgentContact,
|
|
1030
|
-
): string {
|
|
1031
|
-
return JSON.stringify(
|
|
1032
|
-
StreamAgentContact$outboundSchema.parse(streamAgentContact),
|
|
1033
|
-
);
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
export function streamAgentContactFromJSON(
|
|
1037
|
-
jsonString: string,
|
|
1038
|
-
): SafeParseResult<StreamAgentContact, SDKValidationError> {
|
|
1039
|
-
return safeParse(
|
|
1040
|
-
jsonString,
|
|
1041
|
-
(x) => StreamAgentContact$inboundSchema.parse(JSON.parse(x)),
|
|
1042
|
-
`Failed to parse 'StreamAgentContact' from JSON`,
|
|
1043
|
-
);
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
/** @internal */
|
|
1047
|
-
export const StreamAgentThread$inboundSchema: z.ZodType<
|
|
1048
|
-
StreamAgentThread,
|
|
1049
|
-
z.ZodTypeDef,
|
|
1050
|
-
unknown
|
|
1051
|
-
> = z.object({
|
|
1052
|
-
id: z.string(),
|
|
1053
|
-
tags: z.array(z.string()).optional(),
|
|
1054
|
-
});
|
|
1055
|
-
|
|
1056
|
-
/** @internal */
|
|
1057
|
-
export type StreamAgentThread$Outbound = {
|
|
1058
|
-
id: string;
|
|
1059
|
-
tags?: Array<string> | undefined;
|
|
1060
|
-
};
|
|
1061
|
-
|
|
1062
|
-
/** @internal */
|
|
1063
|
-
export const StreamAgentThread$outboundSchema: z.ZodType<
|
|
1064
|
-
StreamAgentThread$Outbound,
|
|
1065
|
-
z.ZodTypeDef,
|
|
1066
|
-
StreamAgentThread
|
|
1067
|
-
> = z.object({
|
|
1068
|
-
id: z.string(),
|
|
1069
|
-
tags: z.array(z.string()).optional(),
|
|
1070
|
-
});
|
|
1071
|
-
|
|
1072
|
-
/**
|
|
1073
|
-
* @internal
|
|
1074
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1075
|
-
*/
|
|
1076
|
-
export namespace StreamAgentThread$ {
|
|
1077
|
-
/** @deprecated use `StreamAgentThread$inboundSchema` instead. */
|
|
1078
|
-
export const inboundSchema = StreamAgentThread$inboundSchema;
|
|
1079
|
-
/** @deprecated use `StreamAgentThread$outboundSchema` instead. */
|
|
1080
|
-
export const outboundSchema = StreamAgentThread$outboundSchema;
|
|
1081
|
-
/** @deprecated use `StreamAgentThread$Outbound` instead. */
|
|
1082
|
-
export type Outbound = StreamAgentThread$Outbound;
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
export function streamAgentThreadToJSON(
|
|
1086
|
-
streamAgentThread: StreamAgentThread,
|
|
1087
|
-
): string {
|
|
1088
|
-
return JSON.stringify(
|
|
1089
|
-
StreamAgentThread$outboundSchema.parse(streamAgentThread),
|
|
1090
|
-
);
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
export function streamAgentThreadFromJSON(
|
|
1094
|
-
jsonString: string,
|
|
1095
|
-
): SafeParseResult<StreamAgentThread, SDKValidationError> {
|
|
1096
|
-
return safeParse(
|
|
1097
|
-
jsonString,
|
|
1098
|
-
(x) => StreamAgentThread$inboundSchema.parse(JSON.parse(x)),
|
|
1099
|
-
`Failed to parse 'StreamAgentThread' from JSON`,
|
|
1100
|
-
);
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
/** @internal */
|
|
1104
|
-
export const StreamAgentMemory$inboundSchema: z.ZodType<
|
|
1105
|
-
StreamAgentMemory,
|
|
1106
|
-
z.ZodTypeDef,
|
|
1107
|
-
unknown
|
|
1108
|
-
> = z.object({
|
|
1109
|
-
entity_id: z.string(),
|
|
1110
|
-
}).transform((v) => {
|
|
1111
|
-
return remap$(v, {
|
|
1112
|
-
"entity_id": "entityId",
|
|
1113
|
-
});
|
|
1114
|
-
});
|
|
1115
|
-
|
|
1116
|
-
/** @internal */
|
|
1117
|
-
export type StreamAgentMemory$Outbound = {
|
|
1118
|
-
entity_id: string;
|
|
1119
|
-
};
|
|
1120
|
-
|
|
1121
|
-
/** @internal */
|
|
1122
|
-
export const StreamAgentMemory$outboundSchema: z.ZodType<
|
|
1123
|
-
StreamAgentMemory$Outbound,
|
|
1124
|
-
z.ZodTypeDef,
|
|
1125
|
-
StreamAgentMemory
|
|
1126
|
-
> = z.object({
|
|
1127
|
-
entityId: z.string(),
|
|
1128
|
-
}).transform((v) => {
|
|
1129
|
-
return remap$(v, {
|
|
1130
|
-
entityId: "entity_id",
|
|
1131
|
-
});
|
|
1132
|
-
});
|
|
1133
|
-
|
|
1134
|
-
/**
|
|
1135
|
-
* @internal
|
|
1136
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1137
|
-
*/
|
|
1138
|
-
export namespace StreamAgentMemory$ {
|
|
1139
|
-
/** @deprecated use `StreamAgentMemory$inboundSchema` instead. */
|
|
1140
|
-
export const inboundSchema = StreamAgentMemory$inboundSchema;
|
|
1141
|
-
/** @deprecated use `StreamAgentMemory$outboundSchema` instead. */
|
|
1142
|
-
export const outboundSchema = StreamAgentMemory$outboundSchema;
|
|
1143
|
-
/** @deprecated use `StreamAgentMemory$Outbound` instead. */
|
|
1144
|
-
export type Outbound = StreamAgentMemory$Outbound;
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
export function streamAgentMemoryToJSON(
|
|
1148
|
-
streamAgentMemory: StreamAgentMemory,
|
|
1149
|
-
): string {
|
|
1150
|
-
return JSON.stringify(
|
|
1151
|
-
StreamAgentMemory$outboundSchema.parse(streamAgentMemory),
|
|
1152
|
-
);
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
export function streamAgentMemoryFromJSON(
|
|
1156
|
-
jsonString: string,
|
|
1157
|
-
): SafeParseResult<StreamAgentMemory, SDKValidationError> {
|
|
1158
|
-
return safeParse(
|
|
1159
|
-
jsonString,
|
|
1160
|
-
(x) => StreamAgentMemory$inboundSchema.parse(JSON.parse(x)),
|
|
1161
|
-
`Failed to parse 'StreamAgentMemory' from JSON`,
|
|
1162
|
-
);
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
/** @internal */
|
|
1166
|
-
export const StreamAgentRequestBody$inboundSchema: z.ZodType<
|
|
1167
|
-
StreamAgentRequestBody,
|
|
1168
|
-
z.ZodTypeDef,
|
|
1169
|
-
unknown
|
|
1170
|
-
> = z.object({
|
|
1171
|
-
task_id: z.string().optional(),
|
|
1172
|
-
message: z.lazy(() => StreamAgentMessage$inboundSchema),
|
|
1173
|
-
variables: z.record(z.any()).optional(),
|
|
1174
|
-
contact: z.lazy(() => StreamAgentContact$inboundSchema).optional(),
|
|
1175
|
-
thread: z.lazy(() => StreamAgentThread$inboundSchema).optional(),
|
|
1176
|
-
memory: z.lazy(() => StreamAgentMemory$inboundSchema).optional(),
|
|
1177
|
-
metadata: z.record(z.any()).optional(),
|
|
1178
|
-
stream_timeout_seconds: z.number().optional(),
|
|
1179
|
-
}).transform((v) => {
|
|
1180
|
-
return remap$(v, {
|
|
1181
|
-
"task_id": "taskId",
|
|
1182
|
-
"stream_timeout_seconds": "streamTimeoutSeconds",
|
|
1183
|
-
});
|
|
1184
|
-
});
|
|
1185
|
-
|
|
1186
|
-
/** @internal */
|
|
1187
|
-
export type StreamAgentRequestBody$Outbound = {
|
|
1188
|
-
task_id?: string | undefined;
|
|
1189
|
-
message: StreamAgentMessage$Outbound;
|
|
1190
|
-
variables?: { [k: string]: any } | undefined;
|
|
1191
|
-
contact?: StreamAgentContact$Outbound | undefined;
|
|
1192
|
-
thread?: StreamAgentThread$Outbound | undefined;
|
|
1193
|
-
memory?: StreamAgentMemory$Outbound | undefined;
|
|
1194
|
-
metadata?: { [k: string]: any } | undefined;
|
|
1195
|
-
stream_timeout_seconds?: number | undefined;
|
|
1196
|
-
};
|
|
1197
|
-
|
|
1198
|
-
/** @internal */
|
|
1199
|
-
export const StreamAgentRequestBody$outboundSchema: z.ZodType<
|
|
1200
|
-
StreamAgentRequestBody$Outbound,
|
|
1201
|
-
z.ZodTypeDef,
|
|
1202
|
-
StreamAgentRequestBody
|
|
1203
|
-
> = z.object({
|
|
1204
|
-
taskId: z.string().optional(),
|
|
1205
|
-
message: z.lazy(() => StreamAgentMessage$outboundSchema),
|
|
1206
|
-
variables: z.record(z.any()).optional(),
|
|
1207
|
-
contact: z.lazy(() => StreamAgentContact$outboundSchema).optional(),
|
|
1208
|
-
thread: z.lazy(() => StreamAgentThread$outboundSchema).optional(),
|
|
1209
|
-
memory: z.lazy(() => StreamAgentMemory$outboundSchema).optional(),
|
|
1210
|
-
metadata: z.record(z.any()).optional(),
|
|
1211
|
-
streamTimeoutSeconds: z.number().optional(),
|
|
1212
|
-
}).transform((v) => {
|
|
1213
|
-
return remap$(v, {
|
|
1214
|
-
taskId: "task_id",
|
|
1215
|
-
streamTimeoutSeconds: "stream_timeout_seconds",
|
|
1216
|
-
});
|
|
1217
|
-
});
|
|
1218
|
-
|
|
1219
|
-
/**
|
|
1220
|
-
* @internal
|
|
1221
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1222
|
-
*/
|
|
1223
|
-
export namespace StreamAgentRequestBody$ {
|
|
1224
|
-
/** @deprecated use `StreamAgentRequestBody$inboundSchema` instead. */
|
|
1225
|
-
export const inboundSchema = StreamAgentRequestBody$inboundSchema;
|
|
1226
|
-
/** @deprecated use `StreamAgentRequestBody$outboundSchema` instead. */
|
|
1227
|
-
export const outboundSchema = StreamAgentRequestBody$outboundSchema;
|
|
1228
|
-
/** @deprecated use `StreamAgentRequestBody$Outbound` instead. */
|
|
1229
|
-
export type Outbound = StreamAgentRequestBody$Outbound;
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
export function streamAgentRequestBodyToJSON(
|
|
1233
|
-
streamAgentRequestBody: StreamAgentRequestBody,
|
|
1234
|
-
): string {
|
|
1235
|
-
return JSON.stringify(
|
|
1236
|
-
StreamAgentRequestBody$outboundSchema.parse(streamAgentRequestBody),
|
|
1237
|
-
);
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
export function streamAgentRequestBodyFromJSON(
|
|
1241
|
-
jsonString: string,
|
|
1242
|
-
): SafeParseResult<StreamAgentRequestBody, SDKValidationError> {
|
|
1243
|
-
return safeParse(
|
|
1244
|
-
jsonString,
|
|
1245
|
-
(x) => StreamAgentRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
1246
|
-
`Failed to parse 'StreamAgentRequestBody' from JSON`,
|
|
1247
|
-
);
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
/** @internal */
|
|
1251
|
-
export const StreamAgentRequest$inboundSchema: z.ZodType<
|
|
1252
|
-
StreamAgentRequest,
|
|
1253
|
-
z.ZodTypeDef,
|
|
1254
|
-
unknown
|
|
1255
|
-
> = z.object({
|
|
1256
|
-
key: z.string(),
|
|
1257
|
-
RequestBody: z.lazy(() => StreamAgentRequestBody$inboundSchema).optional(),
|
|
1258
|
-
}).transform((v) => {
|
|
1259
|
-
return remap$(v, {
|
|
1260
|
-
"RequestBody": "requestBody",
|
|
1261
|
-
});
|
|
1262
|
-
});
|
|
1263
|
-
|
|
1264
|
-
/** @internal */
|
|
1265
|
-
export type StreamAgentRequest$Outbound = {
|
|
1266
|
-
key: string;
|
|
1267
|
-
RequestBody?: StreamAgentRequestBody$Outbound | undefined;
|
|
1268
|
-
};
|
|
1269
|
-
|
|
1270
|
-
/** @internal */
|
|
1271
|
-
export const StreamAgentRequest$outboundSchema: z.ZodType<
|
|
1272
|
-
StreamAgentRequest$Outbound,
|
|
1273
|
-
z.ZodTypeDef,
|
|
1274
|
-
StreamAgentRequest
|
|
1275
|
-
> = z.object({
|
|
1276
|
-
key: z.string(),
|
|
1277
|
-
requestBody: z.lazy(() => StreamAgentRequestBody$outboundSchema).optional(),
|
|
1278
|
-
}).transform((v) => {
|
|
1279
|
-
return remap$(v, {
|
|
1280
|
-
requestBody: "RequestBody",
|
|
1281
|
-
});
|
|
1282
|
-
});
|
|
1283
|
-
|
|
1284
|
-
/**
|
|
1285
|
-
* @internal
|
|
1286
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1287
|
-
*/
|
|
1288
|
-
export namespace StreamAgentRequest$ {
|
|
1289
|
-
/** @deprecated use `StreamAgentRequest$inboundSchema` instead. */
|
|
1290
|
-
export const inboundSchema = StreamAgentRequest$inboundSchema;
|
|
1291
|
-
/** @deprecated use `StreamAgentRequest$outboundSchema` instead. */
|
|
1292
|
-
export const outboundSchema = StreamAgentRequest$outboundSchema;
|
|
1293
|
-
/** @deprecated use `StreamAgentRequest$Outbound` instead. */
|
|
1294
|
-
export type Outbound = StreamAgentRequest$Outbound;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
export function streamAgentRequestToJSON(
|
|
1298
|
-
streamAgentRequest: StreamAgentRequest,
|
|
1299
|
-
): string {
|
|
1300
|
-
return JSON.stringify(
|
|
1301
|
-
StreamAgentRequest$outboundSchema.parse(streamAgentRequest),
|
|
1302
|
-
);
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
export function streamAgentRequestFromJSON(
|
|
1306
|
-
jsonString: string,
|
|
1307
|
-
): SafeParseResult<StreamAgentRequest, SDKValidationError> {
|
|
1308
|
-
return safeParse(
|
|
1309
|
-
jsonString,
|
|
1310
|
-
(x) => StreamAgentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1311
|
-
`Failed to parse 'StreamAgentRequest' from JSON`,
|
|
1312
|
-
);
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
/** @internal */
|
|
1316
|
-
export const StreamAgentResponseBody$inboundSchema: z.ZodType<
|
|
1317
|
-
StreamAgentResponseBody,
|
|
1318
|
-
z.ZodTypeDef,
|
|
1319
|
-
unknown
|
|
1320
|
-
> = z.object({
|
|
1321
|
-
data: z.string(),
|
|
1322
|
-
});
|
|
1323
|
-
|
|
1324
|
-
/** @internal */
|
|
1325
|
-
export type StreamAgentResponseBody$Outbound = {
|
|
1326
|
-
data: string;
|
|
1327
|
-
};
|
|
1328
|
-
|
|
1329
|
-
/** @internal */
|
|
1330
|
-
export const StreamAgentResponseBody$outboundSchema: z.ZodType<
|
|
1331
|
-
StreamAgentResponseBody$Outbound,
|
|
1332
|
-
z.ZodTypeDef,
|
|
1333
|
-
StreamAgentResponseBody
|
|
1334
|
-
> = z.object({
|
|
1335
|
-
data: z.string(),
|
|
1336
|
-
});
|
|
1337
|
-
|
|
1338
|
-
/**
|
|
1339
|
-
* @internal
|
|
1340
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1341
|
-
*/
|
|
1342
|
-
export namespace StreamAgentResponseBody$ {
|
|
1343
|
-
/** @deprecated use `StreamAgentResponseBody$inboundSchema` instead. */
|
|
1344
|
-
export const inboundSchema = StreamAgentResponseBody$inboundSchema;
|
|
1345
|
-
/** @deprecated use `StreamAgentResponseBody$outboundSchema` instead. */
|
|
1346
|
-
export const outboundSchema = StreamAgentResponseBody$outboundSchema;
|
|
1347
|
-
/** @deprecated use `StreamAgentResponseBody$Outbound` instead. */
|
|
1348
|
-
export type Outbound = StreamAgentResponseBody$Outbound;
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
|
-
export function streamAgentResponseBodyToJSON(
|
|
1352
|
-
streamAgentResponseBody: StreamAgentResponseBody,
|
|
1353
|
-
): string {
|
|
1354
|
-
return JSON.stringify(
|
|
1355
|
-
StreamAgentResponseBody$outboundSchema.parse(streamAgentResponseBody),
|
|
1356
|
-
);
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
export function streamAgentResponseBodyFromJSON(
|
|
1360
|
-
jsonString: string,
|
|
1361
|
-
): SafeParseResult<StreamAgentResponseBody, SDKValidationError> {
|
|
1362
|
-
return safeParse(
|
|
1363
|
-
jsonString,
|
|
1364
|
-
(x) => StreamAgentResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
1365
|
-
`Failed to parse 'StreamAgentResponseBody' from JSON`,
|
|
1366
|
-
);
|
|
1367
|
-
}
|