@orq-ai/node 4.0.2 → 4.1.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mcp-server.js +214 -217
- package/bin/mcp-server.js.map +39 -39
- package/docs/sdks/agents/README.md +8 -4
- package/docs/sdks/budgets/README.md +4 -2
- package/docs/sdks/tools/README.md +2 -2
- package/examples/package-lock.json +4 -7
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +4 -3
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/FUNCTIONS.md +0 -103
- package/packages/orq-rc/README.md +0 -910
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/agents/README.md +0 -1363
- package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
- package/packages/orq-rc/docs/sdks/chunking/README.md +0 -97
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
- package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
- package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
- package/packages/orq-rc/docs/sdks/files/README.md +0 -301
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1487
- package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1171
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
- package/packages/orq-rc/docs/sdks/models/README.md +0 -76
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
- package/packages/orq-rc/docs/sdks/responses/README.md +0 -139
- package/packages/orq-rc/docs/sdks/tools/README.md +0 -420
- package/packages/orq-rc/examples/README.md +0 -31
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/examples/package-lock.json +0 -619
- package/packages/orq-rc/examples/package.json +0 -18
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -3047
- package/packages/orq-rc/package.json +0 -40
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -167
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -167
- package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -163
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -191
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -189
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
- package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -483
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -135
- package/packages/orq-rc/src/lib/files.ts +0 -82
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -345
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -407
- package/packages/orq-rc/src/lib/security.ts +0 -264
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
- package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
- package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
- package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
- package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
- package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
- package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
- package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
- package/packages/orq-rc/src/mcp-server/server.ts +0 -259
- package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -6261
- package/packages/orq-rc/src/models/components/security.ts +0 -56
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/getagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -27
- package/packages/orq-rc/src/models/errors/listagenttasks.ts +0 -67
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/createagent.ts +0 -8057
- package/packages/orq-rc/src/models/operations/createagentresponse.ts +0 -1339
- package/packages/orq-rc/src/models/operations/createbudget.ts +0 -582
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -5379
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -694
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -6857
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -229
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -242
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -6179
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -3956
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5091
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -8055
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -980
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2054
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -8269
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
- package/packages/orq-rc/src/models/operations/getagent.ts +0 -3480
- package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -2389
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -261
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -280
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2033
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2292
- package/packages/orq-rc/src/models/operations/getbudget.ts +0 -357
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -5543
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1924
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1942
- package/packages/orq-rc/src/models/operations/index.ts +0 -102
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1930
- package/packages/orq-rc/src/models/operations/listactions.ts +0 -427
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -3626
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -2614
- package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -494
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -413
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -3169
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1068
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2041
- package/packages/orq-rc/src/models/operations/parse.ts +0 -1013
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -354
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2985
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -171
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -189
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2347
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -7617
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -9732
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -15831
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -8649
- package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -502
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -5374
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -7197
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -238
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -251
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -463
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -6410
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4279
- package/packages/orq-rc/src/sdk/agents.ts +0 -244
- package/packages/orq-rc/src/sdk/budgets.ts +0 -99
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/contacts.ts +0 -99
- package/packages/orq-rc/src/sdk/datasets.ts +0 -204
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/evals.ts +0 -69
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/responses.ts +0 -27
- package/packages/orq-rc/src/sdk/sdk.ts +0 -97
- package/packages/orq-rc/src/sdk/tools.ts +0 -99
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -45
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/src/types/unrecognized.ts +0 -27
- package/packages/orq-rc/tsconfig.json +0 -41
|
@@ -1,2985 +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
|
-
export type RetrieveDatapointRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* The unique identifier of the dataset
|
|
15
|
-
*/
|
|
16
|
-
datasetId: string;
|
|
17
|
-
/**
|
|
18
|
-
* The unique identifier of the datapoint
|
|
19
|
-
*/
|
|
20
|
-
datapointId: string;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The role of the messages author, in this case tool.
|
|
25
|
-
*/
|
|
26
|
-
export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole = {
|
|
27
|
-
Tool: "tool",
|
|
28
|
-
} as const;
|
|
29
|
-
/**
|
|
30
|
-
* The role of the messages author, in this case tool.
|
|
31
|
-
*/
|
|
32
|
-
export type RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole =
|
|
33
|
-
ClosedEnum<
|
|
34
|
-
typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
|
|
35
|
-
>;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The contents of the tool message.
|
|
39
|
-
*/
|
|
40
|
-
export type RetrieveDatapointMessagesDatasetsResponseContent =
|
|
41
|
-
| string
|
|
42
|
-
| Array<string>;
|
|
43
|
-
|
|
44
|
-
export type RetrieveDatapointMessagesToolMessage = {
|
|
45
|
-
/**
|
|
46
|
-
* The role of the messages author, in this case tool.
|
|
47
|
-
*/
|
|
48
|
-
role: RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole;
|
|
49
|
-
/**
|
|
50
|
-
* The contents of the tool message.
|
|
51
|
-
*/
|
|
52
|
-
content: string | Array<string>;
|
|
53
|
-
/**
|
|
54
|
-
* Tool call that this message is responding to.
|
|
55
|
-
*/
|
|
56
|
-
toolCallId: string;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* The type of the content part.
|
|
61
|
-
*/
|
|
62
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
|
|
63
|
-
{
|
|
64
|
-
Refusal: "refusal",
|
|
65
|
-
} as const;
|
|
66
|
-
/**
|
|
67
|
-
* The type of the content part.
|
|
68
|
-
*/
|
|
69
|
-
export type RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
|
|
70
|
-
ClosedEnum<
|
|
71
|
-
typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
|
|
72
|
-
>;
|
|
73
|
-
|
|
74
|
-
export type RetrieveDatapoint2RefusalContentPart = {
|
|
75
|
-
/**
|
|
76
|
-
* The type of the content part.
|
|
77
|
-
*/
|
|
78
|
-
type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType;
|
|
79
|
-
/**
|
|
80
|
-
* The refusal message generated by the model.
|
|
81
|
-
*/
|
|
82
|
-
refusal: string;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* The type of the content part.
|
|
87
|
-
*/
|
|
88
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType = {
|
|
89
|
-
Text: "text",
|
|
90
|
-
} as const;
|
|
91
|
-
/**
|
|
92
|
-
* The type of the content part.
|
|
93
|
-
*/
|
|
94
|
-
export type RetrieveDatapoint2DatasetsResponse200ApplicationJSONType =
|
|
95
|
-
ClosedEnum<typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType>;
|
|
96
|
-
|
|
97
|
-
export const RetrieveDatapointAnnotationsDatasetsType = {
|
|
98
|
-
FilePath: "file_path",
|
|
99
|
-
} as const;
|
|
100
|
-
export type RetrieveDatapointAnnotationsDatasetsType = ClosedEnum<
|
|
101
|
-
typeof RetrieveDatapointAnnotationsDatasetsType
|
|
102
|
-
>;
|
|
103
|
-
|
|
104
|
-
export type RetrieveDatapointAnnotationsFilePath = {
|
|
105
|
-
fileId: string;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export type RetrieveDatapointAnnotations2 = {
|
|
109
|
-
type: RetrieveDatapointAnnotationsDatasetsType;
|
|
110
|
-
text: string;
|
|
111
|
-
filePath: RetrieveDatapointAnnotationsFilePath;
|
|
112
|
-
startIndex: number;
|
|
113
|
-
endIndex: number;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export const RetrieveDatapointAnnotationsType = {
|
|
117
|
-
FileCitation: "file_citation",
|
|
118
|
-
} as const;
|
|
119
|
-
export type RetrieveDatapointAnnotationsType = ClosedEnum<
|
|
120
|
-
typeof RetrieveDatapointAnnotationsType
|
|
121
|
-
>;
|
|
122
|
-
|
|
123
|
-
export type RetrieveDatapointAnnotationsFileCitation = {
|
|
124
|
-
fileId: string;
|
|
125
|
-
quote?: string | undefined;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export type RetrieveDatapointAnnotations1 = {
|
|
129
|
-
type: RetrieveDatapointAnnotationsType;
|
|
130
|
-
text: string;
|
|
131
|
-
fileCitation: RetrieveDatapointAnnotationsFileCitation;
|
|
132
|
-
startIndex: number;
|
|
133
|
-
endIndex: number;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export type RetrieveDatapoint2Annotations =
|
|
137
|
-
| RetrieveDatapointAnnotations1
|
|
138
|
-
| RetrieveDatapointAnnotations2;
|
|
139
|
-
|
|
140
|
-
export type RetrieveDatapoint2TextContentPart = {
|
|
141
|
-
/**
|
|
142
|
-
* The type of the content part.
|
|
143
|
-
*/
|
|
144
|
-
type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType;
|
|
145
|
-
/**
|
|
146
|
-
* The text content.
|
|
147
|
-
*/
|
|
148
|
-
text: string;
|
|
149
|
-
/**
|
|
150
|
-
* Annotations for the text content.
|
|
151
|
-
*/
|
|
152
|
-
annotations?:
|
|
153
|
-
| Array<RetrieveDatapointAnnotations1 | RetrieveDatapointAnnotations2>
|
|
154
|
-
| undefined;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export type RetrieveDatapointContentDatasets2 =
|
|
158
|
-
| RetrieveDatapoint2TextContentPart
|
|
159
|
-
| RetrieveDatapoint2RefusalContentPart;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
163
|
-
*/
|
|
164
|
-
export type RetrieveDatapointMessagesDatasetsContent =
|
|
165
|
-
| string
|
|
166
|
-
| Array<
|
|
167
|
-
RetrieveDatapoint2TextContentPart | RetrieveDatapoint2RefusalContentPart
|
|
168
|
-
>;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* The role of the messages author, in this case `assistant`.
|
|
172
|
-
*/
|
|
173
|
-
export const RetrieveDatapointMessagesDatasetsResponse200Role = {
|
|
174
|
-
Assistant: "assistant",
|
|
175
|
-
} as const;
|
|
176
|
-
/**
|
|
177
|
-
* The role of the messages author, in this case `assistant`.
|
|
178
|
-
*/
|
|
179
|
-
export type RetrieveDatapointMessagesDatasetsResponse200Role = ClosedEnum<
|
|
180
|
-
typeof RetrieveDatapointMessagesDatasetsResponse200Role
|
|
181
|
-
>;
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Data about a previous audio response from the model.
|
|
185
|
-
*/
|
|
186
|
-
export type RetrieveDatapointMessagesAudio = {
|
|
187
|
-
/**
|
|
188
|
-
* Unique identifier for a previous audio response from the model.
|
|
189
|
-
*/
|
|
190
|
-
id: string;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
195
|
-
*/
|
|
196
|
-
export const RetrieveDatapointMessagesType = {
|
|
197
|
-
Function: "function",
|
|
198
|
-
} as const;
|
|
199
|
-
/**
|
|
200
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
201
|
-
*/
|
|
202
|
-
export type RetrieveDatapointMessagesType = ClosedEnum<
|
|
203
|
-
typeof RetrieveDatapointMessagesType
|
|
204
|
-
>;
|
|
205
|
-
|
|
206
|
-
export type RetrieveDatapointMessagesFunction = {
|
|
207
|
-
/**
|
|
208
|
-
* The name of the function to call.
|
|
209
|
-
*/
|
|
210
|
-
name?: string | undefined;
|
|
211
|
-
/**
|
|
212
|
-
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
213
|
-
*/
|
|
214
|
-
arguments?: string | undefined;
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
export type RetrieveDatapointMessagesToolCalls = {
|
|
218
|
-
/**
|
|
219
|
-
* The ID of the tool call.
|
|
220
|
-
*/
|
|
221
|
-
id: string;
|
|
222
|
-
/**
|
|
223
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
224
|
-
*/
|
|
225
|
-
type: RetrieveDatapointMessagesType;
|
|
226
|
-
function: RetrieveDatapointMessagesFunction;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
export type RetrieveDatapointMessagesAssistantMessage = {
|
|
230
|
-
/**
|
|
231
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
232
|
-
*/
|
|
233
|
-
content?:
|
|
234
|
-
| string
|
|
235
|
-
| Array<
|
|
236
|
-
RetrieveDatapoint2TextContentPart | RetrieveDatapoint2RefusalContentPart
|
|
237
|
-
>
|
|
238
|
-
| null
|
|
239
|
-
| undefined;
|
|
240
|
-
/**
|
|
241
|
-
* The refusal message by the assistant.
|
|
242
|
-
*/
|
|
243
|
-
refusal?: string | null | undefined;
|
|
244
|
-
/**
|
|
245
|
-
* The role of the messages author, in this case `assistant`.
|
|
246
|
-
*/
|
|
247
|
-
role: RetrieveDatapointMessagesDatasetsResponse200Role;
|
|
248
|
-
/**
|
|
249
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
250
|
-
*/
|
|
251
|
-
name?: string | undefined;
|
|
252
|
-
/**
|
|
253
|
-
* Data about a previous audio response from the model.
|
|
254
|
-
*/
|
|
255
|
-
audio?: RetrieveDatapointMessagesAudio | null | undefined;
|
|
256
|
-
/**
|
|
257
|
-
* The tool calls generated by the model, such as function calls.
|
|
258
|
-
*/
|
|
259
|
-
toolCalls?: Array<RetrieveDatapointMessagesToolCalls> | undefined;
|
|
260
|
-
/**
|
|
261
|
-
* Internal thought process of the model
|
|
262
|
-
*/
|
|
263
|
-
reasoning?: string | undefined;
|
|
264
|
-
/**
|
|
265
|
-
* The signature holds a cryptographic token which verifies that the thinking block was generated by the model, and is verified when thinking is part of a multiturn conversation. This value should not be modified and should always be sent to the API when the reasoning is redacted. Currently only supported by `Anthropic`.
|
|
266
|
-
*/
|
|
267
|
-
reasoningSignature?: string | undefined;
|
|
268
|
-
/**
|
|
269
|
-
* Occasionally the model's internal reasoning will be flagged by the safety systems of the provider. When this occurs, the provider will encrypt the reasoning. These redacted reasoning is decrypted when passed back to the API, allowing the model to continue its response without losing context.
|
|
270
|
-
*/
|
|
271
|
-
redactedReasoning?: string | undefined;
|
|
272
|
-
};
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* The role of the messages author, in this case `user`.
|
|
276
|
-
*/
|
|
277
|
-
export const RetrieveDatapointMessagesDatasetsResponseRole = {
|
|
278
|
-
User: "user",
|
|
279
|
-
} as const;
|
|
280
|
-
/**
|
|
281
|
-
* The role of the messages author, in this case `user`.
|
|
282
|
-
*/
|
|
283
|
-
export type RetrieveDatapointMessagesDatasetsResponseRole = ClosedEnum<
|
|
284
|
-
typeof RetrieveDatapointMessagesDatasetsResponseRole
|
|
285
|
-
>;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* The type of the content part. Always `file`.
|
|
289
|
-
*/
|
|
290
|
-
export const RetrieveDatapoint2DatasetsResponse200Type = {
|
|
291
|
-
File: "file",
|
|
292
|
-
} as const;
|
|
293
|
-
/**
|
|
294
|
-
* The type of the content part. Always `file`.
|
|
295
|
-
*/
|
|
296
|
-
export type RetrieveDatapoint2DatasetsResponse200Type = ClosedEnum<
|
|
297
|
-
typeof RetrieveDatapoint2DatasetsResponse200Type
|
|
298
|
-
>;
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
302
|
-
*/
|
|
303
|
-
export type RetrieveDatapoint2File = {
|
|
304
|
-
/**
|
|
305
|
-
* The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
|
|
306
|
-
*/
|
|
307
|
-
fileData?: string | undefined;
|
|
308
|
-
/**
|
|
309
|
-
* URL to the file. Only supported by Anthropic Claude models for PDF files.
|
|
310
|
-
*/
|
|
311
|
-
uri?: string | undefined;
|
|
312
|
-
/**
|
|
313
|
-
* MIME type of the file (e.g., application/pdf, image/png)
|
|
314
|
-
*/
|
|
315
|
-
mimeType?: string | undefined;
|
|
316
|
-
/**
|
|
317
|
-
* The name of the file, used when passing the file to the model as a string.
|
|
318
|
-
*/
|
|
319
|
-
filename?: string | undefined;
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
export type RetrieveDatapoint24 = {
|
|
323
|
-
/**
|
|
324
|
-
* The type of the content part. Always `file`.
|
|
325
|
-
*/
|
|
326
|
-
type: RetrieveDatapoint2DatasetsResponse200Type;
|
|
327
|
-
/**
|
|
328
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
329
|
-
*/
|
|
330
|
-
file: RetrieveDatapoint2File;
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
export const RetrieveDatapoint2DatasetsResponseType = {
|
|
334
|
-
InputAudio: "input_audio",
|
|
335
|
-
} as const;
|
|
336
|
-
export type RetrieveDatapoint2DatasetsResponseType = ClosedEnum<
|
|
337
|
-
typeof RetrieveDatapoint2DatasetsResponseType
|
|
338
|
-
>;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
342
|
-
*/
|
|
343
|
-
export const RetrieveDatapoint2Format = {
|
|
344
|
-
Mp3: "mp3",
|
|
345
|
-
Wav: "wav",
|
|
346
|
-
} as const;
|
|
347
|
-
/**
|
|
348
|
-
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
349
|
-
*/
|
|
350
|
-
export type RetrieveDatapoint2Format = ClosedEnum<
|
|
351
|
-
typeof RetrieveDatapoint2Format
|
|
352
|
-
>;
|
|
353
|
-
|
|
354
|
-
export type RetrieveDatapoint2InputAudio = {
|
|
355
|
-
/**
|
|
356
|
-
* Base64 encoded audio data.
|
|
357
|
-
*/
|
|
358
|
-
data: string;
|
|
359
|
-
/**
|
|
360
|
-
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
361
|
-
*/
|
|
362
|
-
format: RetrieveDatapoint2Format;
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
export type RetrieveDatapoint23 = {
|
|
366
|
-
type: RetrieveDatapoint2DatasetsResponseType;
|
|
367
|
-
inputAudio: RetrieveDatapoint2InputAudio;
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
export const RetrieveDatapoint2DatasetsType = {
|
|
371
|
-
ImageUrl: "image_url",
|
|
372
|
-
} as const;
|
|
373
|
-
export type RetrieveDatapoint2DatasetsType = ClosedEnum<
|
|
374
|
-
typeof RetrieveDatapoint2DatasetsType
|
|
375
|
-
>;
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Specifies the detail level of the image.
|
|
379
|
-
*/
|
|
380
|
-
export const RetrieveDatapoint2Detail = {
|
|
381
|
-
Low: "low",
|
|
382
|
-
High: "high",
|
|
383
|
-
Auto: "auto",
|
|
384
|
-
} as const;
|
|
385
|
-
/**
|
|
386
|
-
* Specifies the detail level of the image.
|
|
387
|
-
*/
|
|
388
|
-
export type RetrieveDatapoint2Detail = ClosedEnum<
|
|
389
|
-
typeof RetrieveDatapoint2Detail
|
|
390
|
-
>;
|
|
391
|
-
|
|
392
|
-
export type RetrieveDatapoint2ImageUrl = {
|
|
393
|
-
/**
|
|
394
|
-
* Either a URL of the image or the base64 encoded image data.
|
|
395
|
-
*/
|
|
396
|
-
url: string;
|
|
397
|
-
/**
|
|
398
|
-
* Specifies the detail level of the image.
|
|
399
|
-
*/
|
|
400
|
-
detail?: RetrieveDatapoint2Detail | undefined;
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export type RetrieveDatapoint22 = {
|
|
404
|
-
type: RetrieveDatapoint2DatasetsType;
|
|
405
|
-
imageUrl: RetrieveDatapoint2ImageUrl;
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
export const RetrieveDatapoint2Type = {
|
|
409
|
-
Text: "text",
|
|
410
|
-
} as const;
|
|
411
|
-
export type RetrieveDatapoint2Type = ClosedEnum<typeof RetrieveDatapoint2Type>;
|
|
412
|
-
|
|
413
|
-
export type RetrieveDatapoint21 = {
|
|
414
|
-
type: RetrieveDatapoint2Type;
|
|
415
|
-
text: string;
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
export type RetrieveDatapointContent2 =
|
|
419
|
-
| RetrieveDatapoint21
|
|
420
|
-
| RetrieveDatapoint22
|
|
421
|
-
| RetrieveDatapoint23
|
|
422
|
-
| RetrieveDatapoint24;
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* The contents of the user message.
|
|
426
|
-
*/
|
|
427
|
-
export type RetrieveDatapointMessagesContent =
|
|
428
|
-
| string
|
|
429
|
-
| Array<
|
|
430
|
-
| RetrieveDatapoint21
|
|
431
|
-
| RetrieveDatapoint22
|
|
432
|
-
| RetrieveDatapoint23
|
|
433
|
-
| RetrieveDatapoint24
|
|
434
|
-
>;
|
|
435
|
-
|
|
436
|
-
export type RetrieveDatapointMessagesUserMessage = {
|
|
437
|
-
/**
|
|
438
|
-
* The role of the messages author, in this case `user`.
|
|
439
|
-
*/
|
|
440
|
-
role: RetrieveDatapointMessagesDatasetsResponseRole;
|
|
441
|
-
/**
|
|
442
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
443
|
-
*/
|
|
444
|
-
name?: string | undefined;
|
|
445
|
-
/**
|
|
446
|
-
* The contents of the user message.
|
|
447
|
-
*/
|
|
448
|
-
content:
|
|
449
|
-
| string
|
|
450
|
-
| Array<
|
|
451
|
-
| RetrieveDatapoint21
|
|
452
|
-
| RetrieveDatapoint22
|
|
453
|
-
| RetrieveDatapoint23
|
|
454
|
-
| RetrieveDatapoint24
|
|
455
|
-
>;
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* The role of the messages author, in this case `system`.
|
|
460
|
-
*/
|
|
461
|
-
export const RetrieveDatapointMessagesDatasetsRole = {
|
|
462
|
-
System: "system",
|
|
463
|
-
} as const;
|
|
464
|
-
/**
|
|
465
|
-
* The role of the messages author, in this case `system`.
|
|
466
|
-
*/
|
|
467
|
-
export type RetrieveDatapointMessagesDatasetsRole = ClosedEnum<
|
|
468
|
-
typeof RetrieveDatapointMessagesDatasetsRole
|
|
469
|
-
>;
|
|
470
|
-
|
|
471
|
-
export type RetrieveDatapointMessagesSystemMessage = {
|
|
472
|
-
/**
|
|
473
|
-
* The role of the messages author, in this case `system`.
|
|
474
|
-
*/
|
|
475
|
-
role: RetrieveDatapointMessagesDatasetsRole;
|
|
476
|
-
/**
|
|
477
|
-
* The contents of the system message.
|
|
478
|
-
*/
|
|
479
|
-
content: string;
|
|
480
|
-
/**
|
|
481
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
482
|
-
*/
|
|
483
|
-
name?: string | undefined;
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* The role of the messages author, in this case `developer`.
|
|
488
|
-
*/
|
|
489
|
-
export const RetrieveDatapointMessagesRole = {
|
|
490
|
-
Developer: "developer",
|
|
491
|
-
} as const;
|
|
492
|
-
/**
|
|
493
|
-
* The role of the messages author, in this case `developer`.
|
|
494
|
-
*/
|
|
495
|
-
export type RetrieveDatapointMessagesRole = ClosedEnum<
|
|
496
|
-
typeof RetrieveDatapointMessagesRole
|
|
497
|
-
>;
|
|
498
|
-
|
|
499
|
-
export type RetrieveDatapointMessagesDeveloperMessage = {
|
|
500
|
-
/**
|
|
501
|
-
* The role of the messages author, in this case `developer`.
|
|
502
|
-
*/
|
|
503
|
-
role: RetrieveDatapointMessagesRole;
|
|
504
|
-
/**
|
|
505
|
-
* The contents of the developer message.
|
|
506
|
-
*/
|
|
507
|
-
content: string;
|
|
508
|
-
/**
|
|
509
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
510
|
-
*/
|
|
511
|
-
name?: string | undefined;
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
export type RetrieveDatapointMessages =
|
|
515
|
-
| RetrieveDatapointMessagesToolMessage
|
|
516
|
-
| RetrieveDatapointMessagesDeveloperMessage
|
|
517
|
-
| RetrieveDatapointMessagesSystemMessage
|
|
518
|
-
| RetrieveDatapointMessagesUserMessage
|
|
519
|
-
| RetrieveDatapointMessagesAssistantMessage;
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* The type of evaluation
|
|
523
|
-
*/
|
|
524
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseEvaluationType = {
|
|
525
|
-
HumanReview: "human_review",
|
|
526
|
-
} as const;
|
|
527
|
-
/**
|
|
528
|
-
* The type of evaluation
|
|
529
|
-
*/
|
|
530
|
-
export type RetrieveDatapointEvaluationsDatasetsResponseEvaluationType =
|
|
531
|
-
ClosedEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseEvaluationType>;
|
|
532
|
-
|
|
533
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseSource = {
|
|
534
|
-
Orq: "orq",
|
|
535
|
-
External: "external",
|
|
536
|
-
} as const;
|
|
537
|
-
export type RetrieveDatapointEvaluationsDatasetsResponseSource = ClosedEnum<
|
|
538
|
-
typeof RetrieveDatapointEvaluationsDatasetsResponseSource
|
|
539
|
-
>;
|
|
540
|
-
|
|
541
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseType = {
|
|
542
|
-
StringArray: "string_array",
|
|
543
|
-
} as const;
|
|
544
|
-
export type RetrieveDatapointEvaluationsDatasetsResponseType = ClosedEnum<
|
|
545
|
-
typeof RetrieveDatapointEvaluationsDatasetsResponseType
|
|
546
|
-
>;
|
|
547
|
-
|
|
548
|
-
export type RetrieveDatapointEvaluations3 = {
|
|
549
|
-
/**
|
|
550
|
-
* The unique identifier of the human evaluation
|
|
551
|
-
*/
|
|
552
|
-
id: string;
|
|
553
|
-
/**
|
|
554
|
-
* The type of evaluation
|
|
555
|
-
*/
|
|
556
|
-
evaluationType: RetrieveDatapointEvaluationsDatasetsResponseEvaluationType;
|
|
557
|
-
/**
|
|
558
|
-
* The unique identifier of the human review
|
|
559
|
-
*/
|
|
560
|
-
humanReviewId: string;
|
|
561
|
-
source?: RetrieveDatapointEvaluationsDatasetsResponseSource | undefined;
|
|
562
|
-
/**
|
|
563
|
-
* The unique identifier of the user who reviewed the item
|
|
564
|
-
*/
|
|
565
|
-
reviewedById: string;
|
|
566
|
-
/**
|
|
567
|
-
* The date and time the item was reviewed
|
|
568
|
-
*/
|
|
569
|
-
reviewedAt?: Date | undefined;
|
|
570
|
-
type: RetrieveDatapointEvaluationsDatasetsResponseType;
|
|
571
|
-
values: Array<string>;
|
|
572
|
-
};
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* The type of evaluation
|
|
576
|
-
*/
|
|
577
|
-
export const RetrieveDatapointEvaluationsDatasetsEvaluationType = {
|
|
578
|
-
HumanReview: "human_review",
|
|
579
|
-
} as const;
|
|
580
|
-
/**
|
|
581
|
-
* The type of evaluation
|
|
582
|
-
*/
|
|
583
|
-
export type RetrieveDatapointEvaluationsDatasetsEvaluationType = ClosedEnum<
|
|
584
|
-
typeof RetrieveDatapointEvaluationsDatasetsEvaluationType
|
|
585
|
-
>;
|
|
586
|
-
|
|
587
|
-
export const RetrieveDatapointEvaluationsDatasetsSource = {
|
|
588
|
-
Orq: "orq",
|
|
589
|
-
External: "external",
|
|
590
|
-
} as const;
|
|
591
|
-
export type RetrieveDatapointEvaluationsDatasetsSource = ClosedEnum<
|
|
592
|
-
typeof RetrieveDatapointEvaluationsDatasetsSource
|
|
593
|
-
>;
|
|
594
|
-
|
|
595
|
-
export const RetrieveDatapointEvaluationsDatasetsType = {
|
|
596
|
-
Number: "number",
|
|
597
|
-
} as const;
|
|
598
|
-
export type RetrieveDatapointEvaluationsDatasetsType = ClosedEnum<
|
|
599
|
-
typeof RetrieveDatapointEvaluationsDatasetsType
|
|
600
|
-
>;
|
|
601
|
-
|
|
602
|
-
export type RetrieveDatapointEvaluations2 = {
|
|
603
|
-
/**
|
|
604
|
-
* The unique identifier of the human evaluation
|
|
605
|
-
*/
|
|
606
|
-
id: string;
|
|
607
|
-
/**
|
|
608
|
-
* The type of evaluation
|
|
609
|
-
*/
|
|
610
|
-
evaluationType: RetrieveDatapointEvaluationsDatasetsEvaluationType;
|
|
611
|
-
/**
|
|
612
|
-
* The unique identifier of the human review
|
|
613
|
-
*/
|
|
614
|
-
humanReviewId: string;
|
|
615
|
-
source?: RetrieveDatapointEvaluationsDatasetsSource | undefined;
|
|
616
|
-
/**
|
|
617
|
-
* The unique identifier of the user who reviewed the item
|
|
618
|
-
*/
|
|
619
|
-
reviewedById: string;
|
|
620
|
-
/**
|
|
621
|
-
* The date and time the item was reviewed
|
|
622
|
-
*/
|
|
623
|
-
reviewedAt?: Date | undefined;
|
|
624
|
-
type: RetrieveDatapointEvaluationsDatasetsType;
|
|
625
|
-
value: number;
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* The type of evaluation
|
|
630
|
-
*/
|
|
631
|
-
export const RetrieveDatapointEvaluationsEvaluationType = {
|
|
632
|
-
HumanReview: "human_review",
|
|
633
|
-
} as const;
|
|
634
|
-
/**
|
|
635
|
-
* The type of evaluation
|
|
636
|
-
*/
|
|
637
|
-
export type RetrieveDatapointEvaluationsEvaluationType = ClosedEnum<
|
|
638
|
-
typeof RetrieveDatapointEvaluationsEvaluationType
|
|
639
|
-
>;
|
|
640
|
-
|
|
641
|
-
export const RetrieveDatapointEvaluationsSource = {
|
|
642
|
-
Orq: "orq",
|
|
643
|
-
External: "external",
|
|
644
|
-
} as const;
|
|
645
|
-
export type RetrieveDatapointEvaluationsSource = ClosedEnum<
|
|
646
|
-
typeof RetrieveDatapointEvaluationsSource
|
|
647
|
-
>;
|
|
648
|
-
|
|
649
|
-
export const RetrieveDatapointEvaluationsType = {
|
|
650
|
-
String: "string",
|
|
651
|
-
} as const;
|
|
652
|
-
export type RetrieveDatapointEvaluationsType = ClosedEnum<
|
|
653
|
-
typeof RetrieveDatapointEvaluationsType
|
|
654
|
-
>;
|
|
655
|
-
|
|
656
|
-
export type RetrieveDatapointEvaluations1 = {
|
|
657
|
-
/**
|
|
658
|
-
* The unique identifier of the human evaluation
|
|
659
|
-
*/
|
|
660
|
-
id: string;
|
|
661
|
-
/**
|
|
662
|
-
* The type of evaluation
|
|
663
|
-
*/
|
|
664
|
-
evaluationType: RetrieveDatapointEvaluationsEvaluationType;
|
|
665
|
-
/**
|
|
666
|
-
* The unique identifier of the human review
|
|
667
|
-
*/
|
|
668
|
-
humanReviewId: string;
|
|
669
|
-
source?: RetrieveDatapointEvaluationsSource | undefined;
|
|
670
|
-
/**
|
|
671
|
-
* The unique identifier of the user who reviewed the item
|
|
672
|
-
*/
|
|
673
|
-
reviewedById: string;
|
|
674
|
-
/**
|
|
675
|
-
* The date and time the item was reviewed
|
|
676
|
-
*/
|
|
677
|
-
reviewedAt?: Date | undefined;
|
|
678
|
-
type: RetrieveDatapointEvaluationsType;
|
|
679
|
-
value: string;
|
|
680
|
-
};
|
|
681
|
-
|
|
682
|
-
export type RetrieveDatapointEvaluations =
|
|
683
|
-
| RetrieveDatapointEvaluations1
|
|
684
|
-
| RetrieveDatapointEvaluations2
|
|
685
|
-
| RetrieveDatapointEvaluations3;
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* Datapoint retrieved.
|
|
689
|
-
*/
|
|
690
|
-
export type RetrieveDatapointResponseBody = {
|
|
691
|
-
/**
|
|
692
|
-
* The unique identifier of the dataset item
|
|
693
|
-
*/
|
|
694
|
-
id: string;
|
|
695
|
-
/**
|
|
696
|
-
* The unique identifier of the workspace it belongs to
|
|
697
|
-
*/
|
|
698
|
-
workspaceId: string;
|
|
699
|
-
/**
|
|
700
|
-
* The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.
|
|
701
|
-
*/
|
|
702
|
-
inputs?: { [k: string]: any } | undefined;
|
|
703
|
-
/**
|
|
704
|
-
* A list of messages comprising the conversation so far
|
|
705
|
-
*/
|
|
706
|
-
messages?:
|
|
707
|
-
| Array<
|
|
708
|
-
| RetrieveDatapointMessagesToolMessage
|
|
709
|
-
| RetrieveDatapointMessagesDeveloperMessage
|
|
710
|
-
| RetrieveDatapointMessagesSystemMessage
|
|
711
|
-
| RetrieveDatapointMessagesUserMessage
|
|
712
|
-
| RetrieveDatapointMessagesAssistantMessage
|
|
713
|
-
>
|
|
714
|
-
| undefined;
|
|
715
|
-
expectedOutput?: string | undefined;
|
|
716
|
-
/**
|
|
717
|
-
* Evaluations associated with the datapoint
|
|
718
|
-
*/
|
|
719
|
-
evaluations?:
|
|
720
|
-
| Array<
|
|
721
|
-
| RetrieveDatapointEvaluations1
|
|
722
|
-
| RetrieveDatapointEvaluations2
|
|
723
|
-
| RetrieveDatapointEvaluations3
|
|
724
|
-
>
|
|
725
|
-
| undefined;
|
|
726
|
-
/**
|
|
727
|
-
* The unique identifier of the dataset
|
|
728
|
-
*/
|
|
729
|
-
datasetId: string;
|
|
730
|
-
/**
|
|
731
|
-
* The version of the dataset snapshot
|
|
732
|
-
*/
|
|
733
|
-
snapshotVersion?: string | undefined;
|
|
734
|
-
/**
|
|
735
|
-
* The unique identifier of the user who created the dataset
|
|
736
|
-
*/
|
|
737
|
-
createdById?: string | undefined;
|
|
738
|
-
/**
|
|
739
|
-
* The unique identifier of the user who last updated the dataset
|
|
740
|
-
*/
|
|
741
|
-
updatedById?: string | undefined;
|
|
742
|
-
/**
|
|
743
|
-
* The date and time the resource was created
|
|
744
|
-
*/
|
|
745
|
-
created?: Date | undefined;
|
|
746
|
-
/**
|
|
747
|
-
* The date and time the resource was last updated
|
|
748
|
-
*/
|
|
749
|
-
updated?: Date | undefined;
|
|
750
|
-
};
|
|
751
|
-
|
|
752
|
-
/** @internal */
|
|
753
|
-
export const RetrieveDatapointRequest$inboundSchema: z.ZodType<
|
|
754
|
-
RetrieveDatapointRequest,
|
|
755
|
-
z.ZodTypeDef,
|
|
756
|
-
unknown
|
|
757
|
-
> = z.object({
|
|
758
|
-
dataset_id: z.string(),
|
|
759
|
-
datapoint_id: z.string(),
|
|
760
|
-
}).transform((v) => {
|
|
761
|
-
return remap$(v, {
|
|
762
|
-
"dataset_id": "datasetId",
|
|
763
|
-
"datapoint_id": "datapointId",
|
|
764
|
-
});
|
|
765
|
-
});
|
|
766
|
-
/** @internal */
|
|
767
|
-
export type RetrieveDatapointRequest$Outbound = {
|
|
768
|
-
dataset_id: string;
|
|
769
|
-
datapoint_id: string;
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
/** @internal */
|
|
773
|
-
export const RetrieveDatapointRequest$outboundSchema: z.ZodType<
|
|
774
|
-
RetrieveDatapointRequest$Outbound,
|
|
775
|
-
z.ZodTypeDef,
|
|
776
|
-
RetrieveDatapointRequest
|
|
777
|
-
> = z.object({
|
|
778
|
-
datasetId: z.string(),
|
|
779
|
-
datapointId: z.string(),
|
|
780
|
-
}).transform((v) => {
|
|
781
|
-
return remap$(v, {
|
|
782
|
-
datasetId: "dataset_id",
|
|
783
|
-
datapointId: "datapoint_id",
|
|
784
|
-
});
|
|
785
|
-
});
|
|
786
|
-
|
|
787
|
-
export function retrieveDatapointRequestToJSON(
|
|
788
|
-
retrieveDatapointRequest: RetrieveDatapointRequest,
|
|
789
|
-
): string {
|
|
790
|
-
return JSON.stringify(
|
|
791
|
-
RetrieveDatapointRequest$outboundSchema.parse(retrieveDatapointRequest),
|
|
792
|
-
);
|
|
793
|
-
}
|
|
794
|
-
export function retrieveDatapointRequestFromJSON(
|
|
795
|
-
jsonString: string,
|
|
796
|
-
): SafeParseResult<RetrieveDatapointRequest, SDKValidationError> {
|
|
797
|
-
return safeParse(
|
|
798
|
-
jsonString,
|
|
799
|
-
(x) => RetrieveDatapointRequest$inboundSchema.parse(JSON.parse(x)),
|
|
800
|
-
`Failed to parse 'RetrieveDatapointRequest' from JSON`,
|
|
801
|
-
);
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
/** @internal */
|
|
805
|
-
export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema:
|
|
806
|
-
z.ZodNativeEnum<
|
|
807
|
-
typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
|
|
808
|
-
> = z.nativeEnum(
|
|
809
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole,
|
|
810
|
-
);
|
|
811
|
-
/** @internal */
|
|
812
|
-
export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema:
|
|
813
|
-
z.ZodNativeEnum<
|
|
814
|
-
typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
|
|
815
|
-
> =
|
|
816
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema;
|
|
817
|
-
|
|
818
|
-
/** @internal */
|
|
819
|
-
export const RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema:
|
|
820
|
-
z.ZodType<
|
|
821
|
-
RetrieveDatapointMessagesDatasetsResponseContent,
|
|
822
|
-
z.ZodTypeDef,
|
|
823
|
-
unknown
|
|
824
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
825
|
-
/** @internal */
|
|
826
|
-
export type RetrieveDatapointMessagesDatasetsResponseContent$Outbound =
|
|
827
|
-
| string
|
|
828
|
-
| Array<string>;
|
|
829
|
-
|
|
830
|
-
/** @internal */
|
|
831
|
-
export const RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema:
|
|
832
|
-
z.ZodType<
|
|
833
|
-
RetrieveDatapointMessagesDatasetsResponseContent$Outbound,
|
|
834
|
-
z.ZodTypeDef,
|
|
835
|
-
RetrieveDatapointMessagesDatasetsResponseContent
|
|
836
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
837
|
-
|
|
838
|
-
export function retrieveDatapointMessagesDatasetsResponseContentToJSON(
|
|
839
|
-
retrieveDatapointMessagesDatasetsResponseContent:
|
|
840
|
-
RetrieveDatapointMessagesDatasetsResponseContent,
|
|
841
|
-
): string {
|
|
842
|
-
return JSON.stringify(
|
|
843
|
-
RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema.parse(
|
|
844
|
-
retrieveDatapointMessagesDatasetsResponseContent,
|
|
845
|
-
),
|
|
846
|
-
);
|
|
847
|
-
}
|
|
848
|
-
export function retrieveDatapointMessagesDatasetsResponseContentFromJSON(
|
|
849
|
-
jsonString: string,
|
|
850
|
-
): SafeParseResult<
|
|
851
|
-
RetrieveDatapointMessagesDatasetsResponseContent,
|
|
852
|
-
SDKValidationError
|
|
853
|
-
> {
|
|
854
|
-
return safeParse(
|
|
855
|
-
jsonString,
|
|
856
|
-
(x) =>
|
|
857
|
-
RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema.parse(
|
|
858
|
-
JSON.parse(x),
|
|
859
|
-
),
|
|
860
|
-
`Failed to parse 'RetrieveDatapointMessagesDatasetsResponseContent' from JSON`,
|
|
861
|
-
);
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
/** @internal */
|
|
865
|
-
export const RetrieveDatapointMessagesToolMessage$inboundSchema: z.ZodType<
|
|
866
|
-
RetrieveDatapointMessagesToolMessage,
|
|
867
|
-
z.ZodTypeDef,
|
|
868
|
-
unknown
|
|
869
|
-
> = z.object({
|
|
870
|
-
role:
|
|
871
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema,
|
|
872
|
-
content: z.union([z.string(), z.array(z.string())]),
|
|
873
|
-
tool_call_id: z.string(),
|
|
874
|
-
}).transform((v) => {
|
|
875
|
-
return remap$(v, {
|
|
876
|
-
"tool_call_id": "toolCallId",
|
|
877
|
-
});
|
|
878
|
-
});
|
|
879
|
-
/** @internal */
|
|
880
|
-
export type RetrieveDatapointMessagesToolMessage$Outbound = {
|
|
881
|
-
role: string;
|
|
882
|
-
content: string | Array<string>;
|
|
883
|
-
tool_call_id: string;
|
|
884
|
-
};
|
|
885
|
-
|
|
886
|
-
/** @internal */
|
|
887
|
-
export const RetrieveDatapointMessagesToolMessage$outboundSchema: z.ZodType<
|
|
888
|
-
RetrieveDatapointMessagesToolMessage$Outbound,
|
|
889
|
-
z.ZodTypeDef,
|
|
890
|
-
RetrieveDatapointMessagesToolMessage
|
|
891
|
-
> = z.object({
|
|
892
|
-
role:
|
|
893
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema,
|
|
894
|
-
content: z.union([z.string(), z.array(z.string())]),
|
|
895
|
-
toolCallId: z.string(),
|
|
896
|
-
}).transform((v) => {
|
|
897
|
-
return remap$(v, {
|
|
898
|
-
toolCallId: "tool_call_id",
|
|
899
|
-
});
|
|
900
|
-
});
|
|
901
|
-
|
|
902
|
-
export function retrieveDatapointMessagesToolMessageToJSON(
|
|
903
|
-
retrieveDatapointMessagesToolMessage: RetrieveDatapointMessagesToolMessage,
|
|
904
|
-
): string {
|
|
905
|
-
return JSON.stringify(
|
|
906
|
-
RetrieveDatapointMessagesToolMessage$outboundSchema.parse(
|
|
907
|
-
retrieveDatapointMessagesToolMessage,
|
|
908
|
-
),
|
|
909
|
-
);
|
|
910
|
-
}
|
|
911
|
-
export function retrieveDatapointMessagesToolMessageFromJSON(
|
|
912
|
-
jsonString: string,
|
|
913
|
-
): SafeParseResult<RetrieveDatapointMessagesToolMessage, SDKValidationError> {
|
|
914
|
-
return safeParse(
|
|
915
|
-
jsonString,
|
|
916
|
-
(x) =>
|
|
917
|
-
RetrieveDatapointMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
|
|
918
|
-
`Failed to parse 'RetrieveDatapointMessagesToolMessage' from JSON`,
|
|
919
|
-
);
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
/** @internal */
|
|
923
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
924
|
-
z.ZodNativeEnum<
|
|
925
|
-
typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
|
|
926
|
-
> = z.nativeEnum(
|
|
927
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType,
|
|
928
|
-
);
|
|
929
|
-
/** @internal */
|
|
930
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema:
|
|
931
|
-
z.ZodNativeEnum<
|
|
932
|
-
typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
|
|
933
|
-
> =
|
|
934
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
935
|
-
|
|
936
|
-
/** @internal */
|
|
937
|
-
export const RetrieveDatapoint2RefusalContentPart$inboundSchema: z.ZodType<
|
|
938
|
-
RetrieveDatapoint2RefusalContentPart,
|
|
939
|
-
z.ZodTypeDef,
|
|
940
|
-
unknown
|
|
941
|
-
> = z.object({
|
|
942
|
-
type:
|
|
943
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
944
|
-
refusal: z.string(),
|
|
945
|
-
});
|
|
946
|
-
/** @internal */
|
|
947
|
-
export type RetrieveDatapoint2RefusalContentPart$Outbound = {
|
|
948
|
-
type: string;
|
|
949
|
-
refusal: string;
|
|
950
|
-
};
|
|
951
|
-
|
|
952
|
-
/** @internal */
|
|
953
|
-
export const RetrieveDatapoint2RefusalContentPart$outboundSchema: z.ZodType<
|
|
954
|
-
RetrieveDatapoint2RefusalContentPart$Outbound,
|
|
955
|
-
z.ZodTypeDef,
|
|
956
|
-
RetrieveDatapoint2RefusalContentPart
|
|
957
|
-
> = z.object({
|
|
958
|
-
type:
|
|
959
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
960
|
-
refusal: z.string(),
|
|
961
|
-
});
|
|
962
|
-
|
|
963
|
-
export function retrieveDatapoint2RefusalContentPartToJSON(
|
|
964
|
-
retrieveDatapoint2RefusalContentPart: RetrieveDatapoint2RefusalContentPart,
|
|
965
|
-
): string {
|
|
966
|
-
return JSON.stringify(
|
|
967
|
-
RetrieveDatapoint2RefusalContentPart$outboundSchema.parse(
|
|
968
|
-
retrieveDatapoint2RefusalContentPart,
|
|
969
|
-
),
|
|
970
|
-
);
|
|
971
|
-
}
|
|
972
|
-
export function retrieveDatapoint2RefusalContentPartFromJSON(
|
|
973
|
-
jsonString: string,
|
|
974
|
-
): SafeParseResult<RetrieveDatapoint2RefusalContentPart, SDKValidationError> {
|
|
975
|
-
return safeParse(
|
|
976
|
-
jsonString,
|
|
977
|
-
(x) =>
|
|
978
|
-
RetrieveDatapoint2RefusalContentPart$inboundSchema.parse(JSON.parse(x)),
|
|
979
|
-
`Failed to parse 'RetrieveDatapoint2RefusalContentPart' from JSON`,
|
|
980
|
-
);
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
/** @internal */
|
|
984
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema:
|
|
985
|
-
z.ZodNativeEnum<
|
|
986
|
-
typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType
|
|
987
|
-
> = z.nativeEnum(RetrieveDatapoint2DatasetsResponse200ApplicationJSONType);
|
|
988
|
-
/** @internal */
|
|
989
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema:
|
|
990
|
-
z.ZodNativeEnum<
|
|
991
|
-
typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType
|
|
992
|
-
> = RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema;
|
|
993
|
-
|
|
994
|
-
/** @internal */
|
|
995
|
-
export const RetrieveDatapointAnnotationsDatasetsType$inboundSchema:
|
|
996
|
-
z.ZodNativeEnum<typeof RetrieveDatapointAnnotationsDatasetsType> = z
|
|
997
|
-
.nativeEnum(RetrieveDatapointAnnotationsDatasetsType);
|
|
998
|
-
/** @internal */
|
|
999
|
-
export const RetrieveDatapointAnnotationsDatasetsType$outboundSchema:
|
|
1000
|
-
z.ZodNativeEnum<typeof RetrieveDatapointAnnotationsDatasetsType> =
|
|
1001
|
-
RetrieveDatapointAnnotationsDatasetsType$inboundSchema;
|
|
1002
|
-
|
|
1003
|
-
/** @internal */
|
|
1004
|
-
export const RetrieveDatapointAnnotationsFilePath$inboundSchema: z.ZodType<
|
|
1005
|
-
RetrieveDatapointAnnotationsFilePath,
|
|
1006
|
-
z.ZodTypeDef,
|
|
1007
|
-
unknown
|
|
1008
|
-
> = z.object({
|
|
1009
|
-
file_id: z.string(),
|
|
1010
|
-
}).transform((v) => {
|
|
1011
|
-
return remap$(v, {
|
|
1012
|
-
"file_id": "fileId",
|
|
1013
|
-
});
|
|
1014
|
-
});
|
|
1015
|
-
/** @internal */
|
|
1016
|
-
export type RetrieveDatapointAnnotationsFilePath$Outbound = {
|
|
1017
|
-
file_id: string;
|
|
1018
|
-
};
|
|
1019
|
-
|
|
1020
|
-
/** @internal */
|
|
1021
|
-
export const RetrieveDatapointAnnotationsFilePath$outboundSchema: z.ZodType<
|
|
1022
|
-
RetrieveDatapointAnnotationsFilePath$Outbound,
|
|
1023
|
-
z.ZodTypeDef,
|
|
1024
|
-
RetrieveDatapointAnnotationsFilePath
|
|
1025
|
-
> = z.object({
|
|
1026
|
-
fileId: z.string(),
|
|
1027
|
-
}).transform((v) => {
|
|
1028
|
-
return remap$(v, {
|
|
1029
|
-
fileId: "file_id",
|
|
1030
|
-
});
|
|
1031
|
-
});
|
|
1032
|
-
|
|
1033
|
-
export function retrieveDatapointAnnotationsFilePathToJSON(
|
|
1034
|
-
retrieveDatapointAnnotationsFilePath: RetrieveDatapointAnnotationsFilePath,
|
|
1035
|
-
): string {
|
|
1036
|
-
return JSON.stringify(
|
|
1037
|
-
RetrieveDatapointAnnotationsFilePath$outboundSchema.parse(
|
|
1038
|
-
retrieveDatapointAnnotationsFilePath,
|
|
1039
|
-
),
|
|
1040
|
-
);
|
|
1041
|
-
}
|
|
1042
|
-
export function retrieveDatapointAnnotationsFilePathFromJSON(
|
|
1043
|
-
jsonString: string,
|
|
1044
|
-
): SafeParseResult<RetrieveDatapointAnnotationsFilePath, SDKValidationError> {
|
|
1045
|
-
return safeParse(
|
|
1046
|
-
jsonString,
|
|
1047
|
-
(x) =>
|
|
1048
|
-
RetrieveDatapointAnnotationsFilePath$inboundSchema.parse(JSON.parse(x)),
|
|
1049
|
-
`Failed to parse 'RetrieveDatapointAnnotationsFilePath' from JSON`,
|
|
1050
|
-
);
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
/** @internal */
|
|
1054
|
-
export const RetrieveDatapointAnnotations2$inboundSchema: z.ZodType<
|
|
1055
|
-
RetrieveDatapointAnnotations2,
|
|
1056
|
-
z.ZodTypeDef,
|
|
1057
|
-
unknown
|
|
1058
|
-
> = z.object({
|
|
1059
|
-
type: RetrieveDatapointAnnotationsDatasetsType$inboundSchema,
|
|
1060
|
-
text: z.string(),
|
|
1061
|
-
file_path: z.lazy(() => RetrieveDatapointAnnotationsFilePath$inboundSchema),
|
|
1062
|
-
start_index: z.number().int(),
|
|
1063
|
-
end_index: z.number().int(),
|
|
1064
|
-
}).transform((v) => {
|
|
1065
|
-
return remap$(v, {
|
|
1066
|
-
"file_path": "filePath",
|
|
1067
|
-
"start_index": "startIndex",
|
|
1068
|
-
"end_index": "endIndex",
|
|
1069
|
-
});
|
|
1070
|
-
});
|
|
1071
|
-
/** @internal */
|
|
1072
|
-
export type RetrieveDatapointAnnotations2$Outbound = {
|
|
1073
|
-
type: string;
|
|
1074
|
-
text: string;
|
|
1075
|
-
file_path: RetrieveDatapointAnnotationsFilePath$Outbound;
|
|
1076
|
-
start_index: number;
|
|
1077
|
-
end_index: number;
|
|
1078
|
-
};
|
|
1079
|
-
|
|
1080
|
-
/** @internal */
|
|
1081
|
-
export const RetrieveDatapointAnnotations2$outboundSchema: z.ZodType<
|
|
1082
|
-
RetrieveDatapointAnnotations2$Outbound,
|
|
1083
|
-
z.ZodTypeDef,
|
|
1084
|
-
RetrieveDatapointAnnotations2
|
|
1085
|
-
> = z.object({
|
|
1086
|
-
type: RetrieveDatapointAnnotationsDatasetsType$outboundSchema,
|
|
1087
|
-
text: z.string(),
|
|
1088
|
-
filePath: z.lazy(() => RetrieveDatapointAnnotationsFilePath$outboundSchema),
|
|
1089
|
-
startIndex: z.number().int(),
|
|
1090
|
-
endIndex: z.number().int(),
|
|
1091
|
-
}).transform((v) => {
|
|
1092
|
-
return remap$(v, {
|
|
1093
|
-
filePath: "file_path",
|
|
1094
|
-
startIndex: "start_index",
|
|
1095
|
-
endIndex: "end_index",
|
|
1096
|
-
});
|
|
1097
|
-
});
|
|
1098
|
-
|
|
1099
|
-
export function retrieveDatapointAnnotations2ToJSON(
|
|
1100
|
-
retrieveDatapointAnnotations2: RetrieveDatapointAnnotations2,
|
|
1101
|
-
): string {
|
|
1102
|
-
return JSON.stringify(
|
|
1103
|
-
RetrieveDatapointAnnotations2$outboundSchema.parse(
|
|
1104
|
-
retrieveDatapointAnnotations2,
|
|
1105
|
-
),
|
|
1106
|
-
);
|
|
1107
|
-
}
|
|
1108
|
-
export function retrieveDatapointAnnotations2FromJSON(
|
|
1109
|
-
jsonString: string,
|
|
1110
|
-
): SafeParseResult<RetrieveDatapointAnnotations2, SDKValidationError> {
|
|
1111
|
-
return safeParse(
|
|
1112
|
-
jsonString,
|
|
1113
|
-
(x) => RetrieveDatapointAnnotations2$inboundSchema.parse(JSON.parse(x)),
|
|
1114
|
-
`Failed to parse 'RetrieveDatapointAnnotations2' from JSON`,
|
|
1115
|
-
);
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
/** @internal */
|
|
1119
|
-
export const RetrieveDatapointAnnotationsType$inboundSchema: z.ZodNativeEnum<
|
|
1120
|
-
typeof RetrieveDatapointAnnotationsType
|
|
1121
|
-
> = z.nativeEnum(RetrieveDatapointAnnotationsType);
|
|
1122
|
-
/** @internal */
|
|
1123
|
-
export const RetrieveDatapointAnnotationsType$outboundSchema: z.ZodNativeEnum<
|
|
1124
|
-
typeof RetrieveDatapointAnnotationsType
|
|
1125
|
-
> = RetrieveDatapointAnnotationsType$inboundSchema;
|
|
1126
|
-
|
|
1127
|
-
/** @internal */
|
|
1128
|
-
export const RetrieveDatapointAnnotationsFileCitation$inboundSchema: z.ZodType<
|
|
1129
|
-
RetrieveDatapointAnnotationsFileCitation,
|
|
1130
|
-
z.ZodTypeDef,
|
|
1131
|
-
unknown
|
|
1132
|
-
> = z.object({
|
|
1133
|
-
file_id: z.string(),
|
|
1134
|
-
quote: z.string().optional(),
|
|
1135
|
-
}).transform((v) => {
|
|
1136
|
-
return remap$(v, {
|
|
1137
|
-
"file_id": "fileId",
|
|
1138
|
-
});
|
|
1139
|
-
});
|
|
1140
|
-
/** @internal */
|
|
1141
|
-
export type RetrieveDatapointAnnotationsFileCitation$Outbound = {
|
|
1142
|
-
file_id: string;
|
|
1143
|
-
quote?: string | undefined;
|
|
1144
|
-
};
|
|
1145
|
-
|
|
1146
|
-
/** @internal */
|
|
1147
|
-
export const RetrieveDatapointAnnotationsFileCitation$outboundSchema: z.ZodType<
|
|
1148
|
-
RetrieveDatapointAnnotationsFileCitation$Outbound,
|
|
1149
|
-
z.ZodTypeDef,
|
|
1150
|
-
RetrieveDatapointAnnotationsFileCitation
|
|
1151
|
-
> = z.object({
|
|
1152
|
-
fileId: z.string(),
|
|
1153
|
-
quote: z.string().optional(),
|
|
1154
|
-
}).transform((v) => {
|
|
1155
|
-
return remap$(v, {
|
|
1156
|
-
fileId: "file_id",
|
|
1157
|
-
});
|
|
1158
|
-
});
|
|
1159
|
-
|
|
1160
|
-
export function retrieveDatapointAnnotationsFileCitationToJSON(
|
|
1161
|
-
retrieveDatapointAnnotationsFileCitation:
|
|
1162
|
-
RetrieveDatapointAnnotationsFileCitation,
|
|
1163
|
-
): string {
|
|
1164
|
-
return JSON.stringify(
|
|
1165
|
-
RetrieveDatapointAnnotationsFileCitation$outboundSchema.parse(
|
|
1166
|
-
retrieveDatapointAnnotationsFileCitation,
|
|
1167
|
-
),
|
|
1168
|
-
);
|
|
1169
|
-
}
|
|
1170
|
-
export function retrieveDatapointAnnotationsFileCitationFromJSON(
|
|
1171
|
-
jsonString: string,
|
|
1172
|
-
): SafeParseResult<
|
|
1173
|
-
RetrieveDatapointAnnotationsFileCitation,
|
|
1174
|
-
SDKValidationError
|
|
1175
|
-
> {
|
|
1176
|
-
return safeParse(
|
|
1177
|
-
jsonString,
|
|
1178
|
-
(x) =>
|
|
1179
|
-
RetrieveDatapointAnnotationsFileCitation$inboundSchema.parse(
|
|
1180
|
-
JSON.parse(x),
|
|
1181
|
-
),
|
|
1182
|
-
`Failed to parse 'RetrieveDatapointAnnotationsFileCitation' from JSON`,
|
|
1183
|
-
);
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
/** @internal */
|
|
1187
|
-
export const RetrieveDatapointAnnotations1$inboundSchema: z.ZodType<
|
|
1188
|
-
RetrieveDatapointAnnotations1,
|
|
1189
|
-
z.ZodTypeDef,
|
|
1190
|
-
unknown
|
|
1191
|
-
> = z.object({
|
|
1192
|
-
type: RetrieveDatapointAnnotationsType$inboundSchema,
|
|
1193
|
-
text: z.string(),
|
|
1194
|
-
file_citation: z.lazy(() =>
|
|
1195
|
-
RetrieveDatapointAnnotationsFileCitation$inboundSchema
|
|
1196
|
-
),
|
|
1197
|
-
start_index: z.number().int(),
|
|
1198
|
-
end_index: z.number().int(),
|
|
1199
|
-
}).transform((v) => {
|
|
1200
|
-
return remap$(v, {
|
|
1201
|
-
"file_citation": "fileCitation",
|
|
1202
|
-
"start_index": "startIndex",
|
|
1203
|
-
"end_index": "endIndex",
|
|
1204
|
-
});
|
|
1205
|
-
});
|
|
1206
|
-
/** @internal */
|
|
1207
|
-
export type RetrieveDatapointAnnotations1$Outbound = {
|
|
1208
|
-
type: string;
|
|
1209
|
-
text: string;
|
|
1210
|
-
file_citation: RetrieveDatapointAnnotationsFileCitation$Outbound;
|
|
1211
|
-
start_index: number;
|
|
1212
|
-
end_index: number;
|
|
1213
|
-
};
|
|
1214
|
-
|
|
1215
|
-
/** @internal */
|
|
1216
|
-
export const RetrieveDatapointAnnotations1$outboundSchema: z.ZodType<
|
|
1217
|
-
RetrieveDatapointAnnotations1$Outbound,
|
|
1218
|
-
z.ZodTypeDef,
|
|
1219
|
-
RetrieveDatapointAnnotations1
|
|
1220
|
-
> = z.object({
|
|
1221
|
-
type: RetrieveDatapointAnnotationsType$outboundSchema,
|
|
1222
|
-
text: z.string(),
|
|
1223
|
-
fileCitation: z.lazy(() =>
|
|
1224
|
-
RetrieveDatapointAnnotationsFileCitation$outboundSchema
|
|
1225
|
-
),
|
|
1226
|
-
startIndex: z.number().int(),
|
|
1227
|
-
endIndex: z.number().int(),
|
|
1228
|
-
}).transform((v) => {
|
|
1229
|
-
return remap$(v, {
|
|
1230
|
-
fileCitation: "file_citation",
|
|
1231
|
-
startIndex: "start_index",
|
|
1232
|
-
endIndex: "end_index",
|
|
1233
|
-
});
|
|
1234
|
-
});
|
|
1235
|
-
|
|
1236
|
-
export function retrieveDatapointAnnotations1ToJSON(
|
|
1237
|
-
retrieveDatapointAnnotations1: RetrieveDatapointAnnotations1,
|
|
1238
|
-
): string {
|
|
1239
|
-
return JSON.stringify(
|
|
1240
|
-
RetrieveDatapointAnnotations1$outboundSchema.parse(
|
|
1241
|
-
retrieveDatapointAnnotations1,
|
|
1242
|
-
),
|
|
1243
|
-
);
|
|
1244
|
-
}
|
|
1245
|
-
export function retrieveDatapointAnnotations1FromJSON(
|
|
1246
|
-
jsonString: string,
|
|
1247
|
-
): SafeParseResult<RetrieveDatapointAnnotations1, SDKValidationError> {
|
|
1248
|
-
return safeParse(
|
|
1249
|
-
jsonString,
|
|
1250
|
-
(x) => RetrieveDatapointAnnotations1$inboundSchema.parse(JSON.parse(x)),
|
|
1251
|
-
`Failed to parse 'RetrieveDatapointAnnotations1' from JSON`,
|
|
1252
|
-
);
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
/** @internal */
|
|
1256
|
-
export const RetrieveDatapoint2Annotations$inboundSchema: z.ZodType<
|
|
1257
|
-
RetrieveDatapoint2Annotations,
|
|
1258
|
-
z.ZodTypeDef,
|
|
1259
|
-
unknown
|
|
1260
|
-
> = z.union([
|
|
1261
|
-
z.lazy(() => RetrieveDatapointAnnotations1$inboundSchema),
|
|
1262
|
-
z.lazy(() => RetrieveDatapointAnnotations2$inboundSchema),
|
|
1263
|
-
]);
|
|
1264
|
-
/** @internal */
|
|
1265
|
-
export type RetrieveDatapoint2Annotations$Outbound =
|
|
1266
|
-
| RetrieveDatapointAnnotations1$Outbound
|
|
1267
|
-
| RetrieveDatapointAnnotations2$Outbound;
|
|
1268
|
-
|
|
1269
|
-
/** @internal */
|
|
1270
|
-
export const RetrieveDatapoint2Annotations$outboundSchema: z.ZodType<
|
|
1271
|
-
RetrieveDatapoint2Annotations$Outbound,
|
|
1272
|
-
z.ZodTypeDef,
|
|
1273
|
-
RetrieveDatapoint2Annotations
|
|
1274
|
-
> = z.union([
|
|
1275
|
-
z.lazy(() => RetrieveDatapointAnnotations1$outboundSchema),
|
|
1276
|
-
z.lazy(() => RetrieveDatapointAnnotations2$outboundSchema),
|
|
1277
|
-
]);
|
|
1278
|
-
|
|
1279
|
-
export function retrieveDatapoint2AnnotationsToJSON(
|
|
1280
|
-
retrieveDatapoint2Annotations: RetrieveDatapoint2Annotations,
|
|
1281
|
-
): string {
|
|
1282
|
-
return JSON.stringify(
|
|
1283
|
-
RetrieveDatapoint2Annotations$outboundSchema.parse(
|
|
1284
|
-
retrieveDatapoint2Annotations,
|
|
1285
|
-
),
|
|
1286
|
-
);
|
|
1287
|
-
}
|
|
1288
|
-
export function retrieveDatapoint2AnnotationsFromJSON(
|
|
1289
|
-
jsonString: string,
|
|
1290
|
-
): SafeParseResult<RetrieveDatapoint2Annotations, SDKValidationError> {
|
|
1291
|
-
return safeParse(
|
|
1292
|
-
jsonString,
|
|
1293
|
-
(x) => RetrieveDatapoint2Annotations$inboundSchema.parse(JSON.parse(x)),
|
|
1294
|
-
`Failed to parse 'RetrieveDatapoint2Annotations' from JSON`,
|
|
1295
|
-
);
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
/** @internal */
|
|
1299
|
-
export const RetrieveDatapoint2TextContentPart$inboundSchema: z.ZodType<
|
|
1300
|
-
RetrieveDatapoint2TextContentPart,
|
|
1301
|
-
z.ZodTypeDef,
|
|
1302
|
-
unknown
|
|
1303
|
-
> = z.object({
|
|
1304
|
-
type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema,
|
|
1305
|
-
text: z.string(),
|
|
1306
|
-
annotations: z.array(
|
|
1307
|
-
z.union([
|
|
1308
|
-
z.lazy(() => RetrieveDatapointAnnotations1$inboundSchema),
|
|
1309
|
-
z.lazy(() => RetrieveDatapointAnnotations2$inboundSchema),
|
|
1310
|
-
]),
|
|
1311
|
-
).optional(),
|
|
1312
|
-
});
|
|
1313
|
-
/** @internal */
|
|
1314
|
-
export type RetrieveDatapoint2TextContentPart$Outbound = {
|
|
1315
|
-
type: string;
|
|
1316
|
-
text: string;
|
|
1317
|
-
annotations?:
|
|
1318
|
-
| Array<
|
|
1319
|
-
| RetrieveDatapointAnnotations1$Outbound
|
|
1320
|
-
| RetrieveDatapointAnnotations2$Outbound
|
|
1321
|
-
>
|
|
1322
|
-
| undefined;
|
|
1323
|
-
};
|
|
1324
|
-
|
|
1325
|
-
/** @internal */
|
|
1326
|
-
export const RetrieveDatapoint2TextContentPart$outboundSchema: z.ZodType<
|
|
1327
|
-
RetrieveDatapoint2TextContentPart$Outbound,
|
|
1328
|
-
z.ZodTypeDef,
|
|
1329
|
-
RetrieveDatapoint2TextContentPart
|
|
1330
|
-
> = z.object({
|
|
1331
|
-
type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema,
|
|
1332
|
-
text: z.string(),
|
|
1333
|
-
annotations: z.array(
|
|
1334
|
-
z.union([
|
|
1335
|
-
z.lazy(() => RetrieveDatapointAnnotations1$outboundSchema),
|
|
1336
|
-
z.lazy(() => RetrieveDatapointAnnotations2$outboundSchema),
|
|
1337
|
-
]),
|
|
1338
|
-
).optional(),
|
|
1339
|
-
});
|
|
1340
|
-
|
|
1341
|
-
export function retrieveDatapoint2TextContentPartToJSON(
|
|
1342
|
-
retrieveDatapoint2TextContentPart: RetrieveDatapoint2TextContentPart,
|
|
1343
|
-
): string {
|
|
1344
|
-
return JSON.stringify(
|
|
1345
|
-
RetrieveDatapoint2TextContentPart$outboundSchema.parse(
|
|
1346
|
-
retrieveDatapoint2TextContentPart,
|
|
1347
|
-
),
|
|
1348
|
-
);
|
|
1349
|
-
}
|
|
1350
|
-
export function retrieveDatapoint2TextContentPartFromJSON(
|
|
1351
|
-
jsonString: string,
|
|
1352
|
-
): SafeParseResult<RetrieveDatapoint2TextContentPart, SDKValidationError> {
|
|
1353
|
-
return safeParse(
|
|
1354
|
-
jsonString,
|
|
1355
|
-
(x) => RetrieveDatapoint2TextContentPart$inboundSchema.parse(JSON.parse(x)),
|
|
1356
|
-
`Failed to parse 'RetrieveDatapoint2TextContentPart' from JSON`,
|
|
1357
|
-
);
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
/** @internal */
|
|
1361
|
-
export const RetrieveDatapointContentDatasets2$inboundSchema: z.ZodType<
|
|
1362
|
-
RetrieveDatapointContentDatasets2,
|
|
1363
|
-
z.ZodTypeDef,
|
|
1364
|
-
unknown
|
|
1365
|
-
> = z.union([
|
|
1366
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
|
|
1367
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
|
|
1368
|
-
]);
|
|
1369
|
-
/** @internal */
|
|
1370
|
-
export type RetrieveDatapointContentDatasets2$Outbound =
|
|
1371
|
-
| RetrieveDatapoint2TextContentPart$Outbound
|
|
1372
|
-
| RetrieveDatapoint2RefusalContentPart$Outbound;
|
|
1373
|
-
|
|
1374
|
-
/** @internal */
|
|
1375
|
-
export const RetrieveDatapointContentDatasets2$outboundSchema: z.ZodType<
|
|
1376
|
-
RetrieveDatapointContentDatasets2$Outbound,
|
|
1377
|
-
z.ZodTypeDef,
|
|
1378
|
-
RetrieveDatapointContentDatasets2
|
|
1379
|
-
> = z.union([
|
|
1380
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
|
|
1381
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
|
|
1382
|
-
]);
|
|
1383
|
-
|
|
1384
|
-
export function retrieveDatapointContentDatasets2ToJSON(
|
|
1385
|
-
retrieveDatapointContentDatasets2: RetrieveDatapointContentDatasets2,
|
|
1386
|
-
): string {
|
|
1387
|
-
return JSON.stringify(
|
|
1388
|
-
RetrieveDatapointContentDatasets2$outboundSchema.parse(
|
|
1389
|
-
retrieveDatapointContentDatasets2,
|
|
1390
|
-
),
|
|
1391
|
-
);
|
|
1392
|
-
}
|
|
1393
|
-
export function retrieveDatapointContentDatasets2FromJSON(
|
|
1394
|
-
jsonString: string,
|
|
1395
|
-
): SafeParseResult<RetrieveDatapointContentDatasets2, SDKValidationError> {
|
|
1396
|
-
return safeParse(
|
|
1397
|
-
jsonString,
|
|
1398
|
-
(x) => RetrieveDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)),
|
|
1399
|
-
`Failed to parse 'RetrieveDatapointContentDatasets2' from JSON`,
|
|
1400
|
-
);
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
/** @internal */
|
|
1404
|
-
export const RetrieveDatapointMessagesDatasetsContent$inboundSchema: z.ZodType<
|
|
1405
|
-
RetrieveDatapointMessagesDatasetsContent,
|
|
1406
|
-
z.ZodTypeDef,
|
|
1407
|
-
unknown
|
|
1408
|
-
> = z.union([
|
|
1409
|
-
z.string(),
|
|
1410
|
-
z.array(z.union([
|
|
1411
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
|
|
1412
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
|
|
1413
|
-
])),
|
|
1414
|
-
]);
|
|
1415
|
-
/** @internal */
|
|
1416
|
-
export type RetrieveDatapointMessagesDatasetsContent$Outbound =
|
|
1417
|
-
| string
|
|
1418
|
-
| Array<
|
|
1419
|
-
| RetrieveDatapoint2TextContentPart$Outbound
|
|
1420
|
-
| RetrieveDatapoint2RefusalContentPart$Outbound
|
|
1421
|
-
>;
|
|
1422
|
-
|
|
1423
|
-
/** @internal */
|
|
1424
|
-
export const RetrieveDatapointMessagesDatasetsContent$outboundSchema: z.ZodType<
|
|
1425
|
-
RetrieveDatapointMessagesDatasetsContent$Outbound,
|
|
1426
|
-
z.ZodTypeDef,
|
|
1427
|
-
RetrieveDatapointMessagesDatasetsContent
|
|
1428
|
-
> = z.union([
|
|
1429
|
-
z.string(),
|
|
1430
|
-
z.array(z.union([
|
|
1431
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
|
|
1432
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
|
|
1433
|
-
])),
|
|
1434
|
-
]);
|
|
1435
|
-
|
|
1436
|
-
export function retrieveDatapointMessagesDatasetsContentToJSON(
|
|
1437
|
-
retrieveDatapointMessagesDatasetsContent:
|
|
1438
|
-
RetrieveDatapointMessagesDatasetsContent,
|
|
1439
|
-
): string {
|
|
1440
|
-
return JSON.stringify(
|
|
1441
|
-
RetrieveDatapointMessagesDatasetsContent$outboundSchema.parse(
|
|
1442
|
-
retrieveDatapointMessagesDatasetsContent,
|
|
1443
|
-
),
|
|
1444
|
-
);
|
|
1445
|
-
}
|
|
1446
|
-
export function retrieveDatapointMessagesDatasetsContentFromJSON(
|
|
1447
|
-
jsonString: string,
|
|
1448
|
-
): SafeParseResult<
|
|
1449
|
-
RetrieveDatapointMessagesDatasetsContent,
|
|
1450
|
-
SDKValidationError
|
|
1451
|
-
> {
|
|
1452
|
-
return safeParse(
|
|
1453
|
-
jsonString,
|
|
1454
|
-
(x) =>
|
|
1455
|
-
RetrieveDatapointMessagesDatasetsContent$inboundSchema.parse(
|
|
1456
|
-
JSON.parse(x),
|
|
1457
|
-
),
|
|
1458
|
-
`Failed to parse 'RetrieveDatapointMessagesDatasetsContent' from JSON`,
|
|
1459
|
-
);
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
/** @internal */
|
|
1463
|
-
export const RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema:
|
|
1464
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponse200Role> = z
|
|
1465
|
-
.nativeEnum(RetrieveDatapointMessagesDatasetsResponse200Role);
|
|
1466
|
-
/** @internal */
|
|
1467
|
-
export const RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema:
|
|
1468
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponse200Role> =
|
|
1469
|
-
RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema;
|
|
1470
|
-
|
|
1471
|
-
/** @internal */
|
|
1472
|
-
export const RetrieveDatapointMessagesAudio$inboundSchema: z.ZodType<
|
|
1473
|
-
RetrieveDatapointMessagesAudio,
|
|
1474
|
-
z.ZodTypeDef,
|
|
1475
|
-
unknown
|
|
1476
|
-
> = z.object({
|
|
1477
|
-
id: z.string(),
|
|
1478
|
-
});
|
|
1479
|
-
/** @internal */
|
|
1480
|
-
export type RetrieveDatapointMessagesAudio$Outbound = {
|
|
1481
|
-
id: string;
|
|
1482
|
-
};
|
|
1483
|
-
|
|
1484
|
-
/** @internal */
|
|
1485
|
-
export const RetrieveDatapointMessagesAudio$outboundSchema: z.ZodType<
|
|
1486
|
-
RetrieveDatapointMessagesAudio$Outbound,
|
|
1487
|
-
z.ZodTypeDef,
|
|
1488
|
-
RetrieveDatapointMessagesAudio
|
|
1489
|
-
> = z.object({
|
|
1490
|
-
id: z.string(),
|
|
1491
|
-
});
|
|
1492
|
-
|
|
1493
|
-
export function retrieveDatapointMessagesAudioToJSON(
|
|
1494
|
-
retrieveDatapointMessagesAudio: RetrieveDatapointMessagesAudio,
|
|
1495
|
-
): string {
|
|
1496
|
-
return JSON.stringify(
|
|
1497
|
-
RetrieveDatapointMessagesAudio$outboundSchema.parse(
|
|
1498
|
-
retrieveDatapointMessagesAudio,
|
|
1499
|
-
),
|
|
1500
|
-
);
|
|
1501
|
-
}
|
|
1502
|
-
export function retrieveDatapointMessagesAudioFromJSON(
|
|
1503
|
-
jsonString: string,
|
|
1504
|
-
): SafeParseResult<RetrieveDatapointMessagesAudio, SDKValidationError> {
|
|
1505
|
-
return safeParse(
|
|
1506
|
-
jsonString,
|
|
1507
|
-
(x) => RetrieveDatapointMessagesAudio$inboundSchema.parse(JSON.parse(x)),
|
|
1508
|
-
`Failed to parse 'RetrieveDatapointMessagesAudio' from JSON`,
|
|
1509
|
-
);
|
|
1510
|
-
}
|
|
1511
|
-
|
|
1512
|
-
/** @internal */
|
|
1513
|
-
export const RetrieveDatapointMessagesType$inboundSchema: z.ZodNativeEnum<
|
|
1514
|
-
typeof RetrieveDatapointMessagesType
|
|
1515
|
-
> = z.nativeEnum(RetrieveDatapointMessagesType);
|
|
1516
|
-
/** @internal */
|
|
1517
|
-
export const RetrieveDatapointMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
1518
|
-
typeof RetrieveDatapointMessagesType
|
|
1519
|
-
> = RetrieveDatapointMessagesType$inboundSchema;
|
|
1520
|
-
|
|
1521
|
-
/** @internal */
|
|
1522
|
-
export const RetrieveDatapointMessagesFunction$inboundSchema: z.ZodType<
|
|
1523
|
-
RetrieveDatapointMessagesFunction,
|
|
1524
|
-
z.ZodTypeDef,
|
|
1525
|
-
unknown
|
|
1526
|
-
> = z.object({
|
|
1527
|
-
name: z.string().optional(),
|
|
1528
|
-
arguments: z.string().optional(),
|
|
1529
|
-
});
|
|
1530
|
-
/** @internal */
|
|
1531
|
-
export type RetrieveDatapointMessagesFunction$Outbound = {
|
|
1532
|
-
name?: string | undefined;
|
|
1533
|
-
arguments?: string | undefined;
|
|
1534
|
-
};
|
|
1535
|
-
|
|
1536
|
-
/** @internal */
|
|
1537
|
-
export const RetrieveDatapointMessagesFunction$outboundSchema: z.ZodType<
|
|
1538
|
-
RetrieveDatapointMessagesFunction$Outbound,
|
|
1539
|
-
z.ZodTypeDef,
|
|
1540
|
-
RetrieveDatapointMessagesFunction
|
|
1541
|
-
> = z.object({
|
|
1542
|
-
name: z.string().optional(),
|
|
1543
|
-
arguments: z.string().optional(),
|
|
1544
|
-
});
|
|
1545
|
-
|
|
1546
|
-
export function retrieveDatapointMessagesFunctionToJSON(
|
|
1547
|
-
retrieveDatapointMessagesFunction: RetrieveDatapointMessagesFunction,
|
|
1548
|
-
): string {
|
|
1549
|
-
return JSON.stringify(
|
|
1550
|
-
RetrieveDatapointMessagesFunction$outboundSchema.parse(
|
|
1551
|
-
retrieveDatapointMessagesFunction,
|
|
1552
|
-
),
|
|
1553
|
-
);
|
|
1554
|
-
}
|
|
1555
|
-
export function retrieveDatapointMessagesFunctionFromJSON(
|
|
1556
|
-
jsonString: string,
|
|
1557
|
-
): SafeParseResult<RetrieveDatapointMessagesFunction, SDKValidationError> {
|
|
1558
|
-
return safeParse(
|
|
1559
|
-
jsonString,
|
|
1560
|
-
(x) => RetrieveDatapointMessagesFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1561
|
-
`Failed to parse 'RetrieveDatapointMessagesFunction' from JSON`,
|
|
1562
|
-
);
|
|
1563
|
-
}
|
|
1564
|
-
|
|
1565
|
-
/** @internal */
|
|
1566
|
-
export const RetrieveDatapointMessagesToolCalls$inboundSchema: z.ZodType<
|
|
1567
|
-
RetrieveDatapointMessagesToolCalls,
|
|
1568
|
-
z.ZodTypeDef,
|
|
1569
|
-
unknown
|
|
1570
|
-
> = z.object({
|
|
1571
|
-
id: z.string(),
|
|
1572
|
-
type: RetrieveDatapointMessagesType$inboundSchema,
|
|
1573
|
-
function: z.lazy(() => RetrieveDatapointMessagesFunction$inboundSchema),
|
|
1574
|
-
});
|
|
1575
|
-
/** @internal */
|
|
1576
|
-
export type RetrieveDatapointMessagesToolCalls$Outbound = {
|
|
1577
|
-
id: string;
|
|
1578
|
-
type: string;
|
|
1579
|
-
function: RetrieveDatapointMessagesFunction$Outbound;
|
|
1580
|
-
};
|
|
1581
|
-
|
|
1582
|
-
/** @internal */
|
|
1583
|
-
export const RetrieveDatapointMessagesToolCalls$outboundSchema: z.ZodType<
|
|
1584
|
-
RetrieveDatapointMessagesToolCalls$Outbound,
|
|
1585
|
-
z.ZodTypeDef,
|
|
1586
|
-
RetrieveDatapointMessagesToolCalls
|
|
1587
|
-
> = z.object({
|
|
1588
|
-
id: z.string(),
|
|
1589
|
-
type: RetrieveDatapointMessagesType$outboundSchema,
|
|
1590
|
-
function: z.lazy(() => RetrieveDatapointMessagesFunction$outboundSchema),
|
|
1591
|
-
});
|
|
1592
|
-
|
|
1593
|
-
export function retrieveDatapointMessagesToolCallsToJSON(
|
|
1594
|
-
retrieveDatapointMessagesToolCalls: RetrieveDatapointMessagesToolCalls,
|
|
1595
|
-
): string {
|
|
1596
|
-
return JSON.stringify(
|
|
1597
|
-
RetrieveDatapointMessagesToolCalls$outboundSchema.parse(
|
|
1598
|
-
retrieveDatapointMessagesToolCalls,
|
|
1599
|
-
),
|
|
1600
|
-
);
|
|
1601
|
-
}
|
|
1602
|
-
export function retrieveDatapointMessagesToolCallsFromJSON(
|
|
1603
|
-
jsonString: string,
|
|
1604
|
-
): SafeParseResult<RetrieveDatapointMessagesToolCalls, SDKValidationError> {
|
|
1605
|
-
return safeParse(
|
|
1606
|
-
jsonString,
|
|
1607
|
-
(x) =>
|
|
1608
|
-
RetrieveDatapointMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1609
|
-
`Failed to parse 'RetrieveDatapointMessagesToolCalls' from JSON`,
|
|
1610
|
-
);
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
/** @internal */
|
|
1614
|
-
export const RetrieveDatapointMessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
1615
|
-
RetrieveDatapointMessagesAssistantMessage,
|
|
1616
|
-
z.ZodTypeDef,
|
|
1617
|
-
unknown
|
|
1618
|
-
> = z.object({
|
|
1619
|
-
content: z.nullable(
|
|
1620
|
-
z.union([
|
|
1621
|
-
z.string(),
|
|
1622
|
-
z.array(
|
|
1623
|
-
z.union([
|
|
1624
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
|
|
1625
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
|
|
1626
|
-
]),
|
|
1627
|
-
),
|
|
1628
|
-
]),
|
|
1629
|
-
).optional(),
|
|
1630
|
-
refusal: z.nullable(z.string()).optional(),
|
|
1631
|
-
role: RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema,
|
|
1632
|
-
name: z.string().optional(),
|
|
1633
|
-
audio: z.nullable(z.lazy(() => RetrieveDatapointMessagesAudio$inboundSchema))
|
|
1634
|
-
.optional(),
|
|
1635
|
-
tool_calls: z.array(
|
|
1636
|
-
z.lazy(() => RetrieveDatapointMessagesToolCalls$inboundSchema),
|
|
1637
|
-
).optional(),
|
|
1638
|
-
reasoning: z.string().optional(),
|
|
1639
|
-
reasoning_signature: z.string().optional(),
|
|
1640
|
-
redacted_reasoning: z.string().optional(),
|
|
1641
|
-
}).transform((v) => {
|
|
1642
|
-
return remap$(v, {
|
|
1643
|
-
"tool_calls": "toolCalls",
|
|
1644
|
-
"reasoning_signature": "reasoningSignature",
|
|
1645
|
-
"redacted_reasoning": "redactedReasoning",
|
|
1646
|
-
});
|
|
1647
|
-
});
|
|
1648
|
-
/** @internal */
|
|
1649
|
-
export type RetrieveDatapointMessagesAssistantMessage$Outbound = {
|
|
1650
|
-
content?:
|
|
1651
|
-
| string
|
|
1652
|
-
| Array<
|
|
1653
|
-
| RetrieveDatapoint2TextContentPart$Outbound
|
|
1654
|
-
| RetrieveDatapoint2RefusalContentPart$Outbound
|
|
1655
|
-
>
|
|
1656
|
-
| null
|
|
1657
|
-
| undefined;
|
|
1658
|
-
refusal?: string | null | undefined;
|
|
1659
|
-
role: string;
|
|
1660
|
-
name?: string | undefined;
|
|
1661
|
-
audio?: RetrieveDatapointMessagesAudio$Outbound | null | undefined;
|
|
1662
|
-
tool_calls?: Array<RetrieveDatapointMessagesToolCalls$Outbound> | undefined;
|
|
1663
|
-
reasoning?: string | undefined;
|
|
1664
|
-
reasoning_signature?: string | undefined;
|
|
1665
|
-
redacted_reasoning?: string | undefined;
|
|
1666
|
-
};
|
|
1667
|
-
|
|
1668
|
-
/** @internal */
|
|
1669
|
-
export const RetrieveDatapointMessagesAssistantMessage$outboundSchema:
|
|
1670
|
-
z.ZodType<
|
|
1671
|
-
RetrieveDatapointMessagesAssistantMessage$Outbound,
|
|
1672
|
-
z.ZodTypeDef,
|
|
1673
|
-
RetrieveDatapointMessagesAssistantMessage
|
|
1674
|
-
> = z.object({
|
|
1675
|
-
content: z.nullable(
|
|
1676
|
-
z.union([
|
|
1677
|
-
z.string(),
|
|
1678
|
-
z.array(
|
|
1679
|
-
z.union([
|
|
1680
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
|
|
1681
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
|
|
1682
|
-
]),
|
|
1683
|
-
),
|
|
1684
|
-
]),
|
|
1685
|
-
).optional(),
|
|
1686
|
-
refusal: z.nullable(z.string()).optional(),
|
|
1687
|
-
role: RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema,
|
|
1688
|
-
name: z.string().optional(),
|
|
1689
|
-
audio: z.nullable(
|
|
1690
|
-
z.lazy(() => RetrieveDatapointMessagesAudio$outboundSchema),
|
|
1691
|
-
).optional(),
|
|
1692
|
-
toolCalls: z.array(
|
|
1693
|
-
z.lazy(() => RetrieveDatapointMessagesToolCalls$outboundSchema),
|
|
1694
|
-
).optional(),
|
|
1695
|
-
reasoning: z.string().optional(),
|
|
1696
|
-
reasoningSignature: z.string().optional(),
|
|
1697
|
-
redactedReasoning: z.string().optional(),
|
|
1698
|
-
}).transform((v) => {
|
|
1699
|
-
return remap$(v, {
|
|
1700
|
-
toolCalls: "tool_calls",
|
|
1701
|
-
reasoningSignature: "reasoning_signature",
|
|
1702
|
-
redactedReasoning: "redacted_reasoning",
|
|
1703
|
-
});
|
|
1704
|
-
});
|
|
1705
|
-
|
|
1706
|
-
export function retrieveDatapointMessagesAssistantMessageToJSON(
|
|
1707
|
-
retrieveDatapointMessagesAssistantMessage:
|
|
1708
|
-
RetrieveDatapointMessagesAssistantMessage,
|
|
1709
|
-
): string {
|
|
1710
|
-
return JSON.stringify(
|
|
1711
|
-
RetrieveDatapointMessagesAssistantMessage$outboundSchema.parse(
|
|
1712
|
-
retrieveDatapointMessagesAssistantMessage,
|
|
1713
|
-
),
|
|
1714
|
-
);
|
|
1715
|
-
}
|
|
1716
|
-
export function retrieveDatapointMessagesAssistantMessageFromJSON(
|
|
1717
|
-
jsonString: string,
|
|
1718
|
-
): SafeParseResult<
|
|
1719
|
-
RetrieveDatapointMessagesAssistantMessage,
|
|
1720
|
-
SDKValidationError
|
|
1721
|
-
> {
|
|
1722
|
-
return safeParse(
|
|
1723
|
-
jsonString,
|
|
1724
|
-
(x) =>
|
|
1725
|
-
RetrieveDatapointMessagesAssistantMessage$inboundSchema.parse(
|
|
1726
|
-
JSON.parse(x),
|
|
1727
|
-
),
|
|
1728
|
-
`Failed to parse 'RetrieveDatapointMessagesAssistantMessage' from JSON`,
|
|
1729
|
-
);
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
/** @internal */
|
|
1733
|
-
export const RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema:
|
|
1734
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponseRole> = z
|
|
1735
|
-
.nativeEnum(RetrieveDatapointMessagesDatasetsResponseRole);
|
|
1736
|
-
/** @internal */
|
|
1737
|
-
export const RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema:
|
|
1738
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponseRole> =
|
|
1739
|
-
RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema;
|
|
1740
|
-
|
|
1741
|
-
/** @internal */
|
|
1742
|
-
export const RetrieveDatapoint2DatasetsResponse200Type$inboundSchema:
|
|
1743
|
-
z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponse200Type> = z
|
|
1744
|
-
.nativeEnum(RetrieveDatapoint2DatasetsResponse200Type);
|
|
1745
|
-
/** @internal */
|
|
1746
|
-
export const RetrieveDatapoint2DatasetsResponse200Type$outboundSchema:
|
|
1747
|
-
z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponse200Type> =
|
|
1748
|
-
RetrieveDatapoint2DatasetsResponse200Type$inboundSchema;
|
|
1749
|
-
|
|
1750
|
-
/** @internal */
|
|
1751
|
-
export const RetrieveDatapoint2File$inboundSchema: z.ZodType<
|
|
1752
|
-
RetrieveDatapoint2File,
|
|
1753
|
-
z.ZodTypeDef,
|
|
1754
|
-
unknown
|
|
1755
|
-
> = z.object({
|
|
1756
|
-
file_data: z.string().optional(),
|
|
1757
|
-
uri: z.string().optional(),
|
|
1758
|
-
mimeType: z.string().optional(),
|
|
1759
|
-
filename: z.string().optional(),
|
|
1760
|
-
}).transform((v) => {
|
|
1761
|
-
return remap$(v, {
|
|
1762
|
-
"file_data": "fileData",
|
|
1763
|
-
});
|
|
1764
|
-
});
|
|
1765
|
-
/** @internal */
|
|
1766
|
-
export type RetrieveDatapoint2File$Outbound = {
|
|
1767
|
-
file_data?: string | undefined;
|
|
1768
|
-
uri?: string | undefined;
|
|
1769
|
-
mimeType?: string | undefined;
|
|
1770
|
-
filename?: string | undefined;
|
|
1771
|
-
};
|
|
1772
|
-
|
|
1773
|
-
/** @internal */
|
|
1774
|
-
export const RetrieveDatapoint2File$outboundSchema: z.ZodType<
|
|
1775
|
-
RetrieveDatapoint2File$Outbound,
|
|
1776
|
-
z.ZodTypeDef,
|
|
1777
|
-
RetrieveDatapoint2File
|
|
1778
|
-
> = z.object({
|
|
1779
|
-
fileData: z.string().optional(),
|
|
1780
|
-
uri: z.string().optional(),
|
|
1781
|
-
mimeType: z.string().optional(),
|
|
1782
|
-
filename: z.string().optional(),
|
|
1783
|
-
}).transform((v) => {
|
|
1784
|
-
return remap$(v, {
|
|
1785
|
-
fileData: "file_data",
|
|
1786
|
-
});
|
|
1787
|
-
});
|
|
1788
|
-
|
|
1789
|
-
export function retrieveDatapoint2FileToJSON(
|
|
1790
|
-
retrieveDatapoint2File: RetrieveDatapoint2File,
|
|
1791
|
-
): string {
|
|
1792
|
-
return JSON.stringify(
|
|
1793
|
-
RetrieveDatapoint2File$outboundSchema.parse(retrieveDatapoint2File),
|
|
1794
|
-
);
|
|
1795
|
-
}
|
|
1796
|
-
export function retrieveDatapoint2FileFromJSON(
|
|
1797
|
-
jsonString: string,
|
|
1798
|
-
): SafeParseResult<RetrieveDatapoint2File, SDKValidationError> {
|
|
1799
|
-
return safeParse(
|
|
1800
|
-
jsonString,
|
|
1801
|
-
(x) => RetrieveDatapoint2File$inboundSchema.parse(JSON.parse(x)),
|
|
1802
|
-
`Failed to parse 'RetrieveDatapoint2File' from JSON`,
|
|
1803
|
-
);
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
/** @internal */
|
|
1807
|
-
export const RetrieveDatapoint24$inboundSchema: z.ZodType<
|
|
1808
|
-
RetrieveDatapoint24,
|
|
1809
|
-
z.ZodTypeDef,
|
|
1810
|
-
unknown
|
|
1811
|
-
> = z.object({
|
|
1812
|
-
type: RetrieveDatapoint2DatasetsResponse200Type$inboundSchema,
|
|
1813
|
-
file: z.lazy(() => RetrieveDatapoint2File$inboundSchema),
|
|
1814
|
-
});
|
|
1815
|
-
/** @internal */
|
|
1816
|
-
export type RetrieveDatapoint24$Outbound = {
|
|
1817
|
-
type: string;
|
|
1818
|
-
file: RetrieveDatapoint2File$Outbound;
|
|
1819
|
-
};
|
|
1820
|
-
|
|
1821
|
-
/** @internal */
|
|
1822
|
-
export const RetrieveDatapoint24$outboundSchema: z.ZodType<
|
|
1823
|
-
RetrieveDatapoint24$Outbound,
|
|
1824
|
-
z.ZodTypeDef,
|
|
1825
|
-
RetrieveDatapoint24
|
|
1826
|
-
> = z.object({
|
|
1827
|
-
type: RetrieveDatapoint2DatasetsResponse200Type$outboundSchema,
|
|
1828
|
-
file: z.lazy(() => RetrieveDatapoint2File$outboundSchema),
|
|
1829
|
-
});
|
|
1830
|
-
|
|
1831
|
-
export function retrieveDatapoint24ToJSON(
|
|
1832
|
-
retrieveDatapoint24: RetrieveDatapoint24,
|
|
1833
|
-
): string {
|
|
1834
|
-
return JSON.stringify(
|
|
1835
|
-
RetrieveDatapoint24$outboundSchema.parse(retrieveDatapoint24),
|
|
1836
|
-
);
|
|
1837
|
-
}
|
|
1838
|
-
export function retrieveDatapoint24FromJSON(
|
|
1839
|
-
jsonString: string,
|
|
1840
|
-
): SafeParseResult<RetrieveDatapoint24, SDKValidationError> {
|
|
1841
|
-
return safeParse(
|
|
1842
|
-
jsonString,
|
|
1843
|
-
(x) => RetrieveDatapoint24$inboundSchema.parse(JSON.parse(x)),
|
|
1844
|
-
`Failed to parse 'RetrieveDatapoint24' from JSON`,
|
|
1845
|
-
);
|
|
1846
|
-
}
|
|
1847
|
-
|
|
1848
|
-
/** @internal */
|
|
1849
|
-
export const RetrieveDatapoint2DatasetsResponseType$inboundSchema:
|
|
1850
|
-
z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponseType> = z.nativeEnum(
|
|
1851
|
-
RetrieveDatapoint2DatasetsResponseType,
|
|
1852
|
-
);
|
|
1853
|
-
/** @internal */
|
|
1854
|
-
export const RetrieveDatapoint2DatasetsResponseType$outboundSchema:
|
|
1855
|
-
z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponseType> =
|
|
1856
|
-
RetrieveDatapoint2DatasetsResponseType$inboundSchema;
|
|
1857
|
-
|
|
1858
|
-
/** @internal */
|
|
1859
|
-
export const RetrieveDatapoint2Format$inboundSchema: z.ZodNativeEnum<
|
|
1860
|
-
typeof RetrieveDatapoint2Format
|
|
1861
|
-
> = z.nativeEnum(RetrieveDatapoint2Format);
|
|
1862
|
-
/** @internal */
|
|
1863
|
-
export const RetrieveDatapoint2Format$outboundSchema: z.ZodNativeEnum<
|
|
1864
|
-
typeof RetrieveDatapoint2Format
|
|
1865
|
-
> = RetrieveDatapoint2Format$inboundSchema;
|
|
1866
|
-
|
|
1867
|
-
/** @internal */
|
|
1868
|
-
export const RetrieveDatapoint2InputAudio$inboundSchema: z.ZodType<
|
|
1869
|
-
RetrieveDatapoint2InputAudio,
|
|
1870
|
-
z.ZodTypeDef,
|
|
1871
|
-
unknown
|
|
1872
|
-
> = z.object({
|
|
1873
|
-
data: z.string(),
|
|
1874
|
-
format: RetrieveDatapoint2Format$inboundSchema,
|
|
1875
|
-
});
|
|
1876
|
-
/** @internal */
|
|
1877
|
-
export type RetrieveDatapoint2InputAudio$Outbound = {
|
|
1878
|
-
data: string;
|
|
1879
|
-
format: string;
|
|
1880
|
-
};
|
|
1881
|
-
|
|
1882
|
-
/** @internal */
|
|
1883
|
-
export const RetrieveDatapoint2InputAudio$outboundSchema: z.ZodType<
|
|
1884
|
-
RetrieveDatapoint2InputAudio$Outbound,
|
|
1885
|
-
z.ZodTypeDef,
|
|
1886
|
-
RetrieveDatapoint2InputAudio
|
|
1887
|
-
> = z.object({
|
|
1888
|
-
data: z.string(),
|
|
1889
|
-
format: RetrieveDatapoint2Format$outboundSchema,
|
|
1890
|
-
});
|
|
1891
|
-
|
|
1892
|
-
export function retrieveDatapoint2InputAudioToJSON(
|
|
1893
|
-
retrieveDatapoint2InputAudio: RetrieveDatapoint2InputAudio,
|
|
1894
|
-
): string {
|
|
1895
|
-
return JSON.stringify(
|
|
1896
|
-
RetrieveDatapoint2InputAudio$outboundSchema.parse(
|
|
1897
|
-
retrieveDatapoint2InputAudio,
|
|
1898
|
-
),
|
|
1899
|
-
);
|
|
1900
|
-
}
|
|
1901
|
-
export function retrieveDatapoint2InputAudioFromJSON(
|
|
1902
|
-
jsonString: string,
|
|
1903
|
-
): SafeParseResult<RetrieveDatapoint2InputAudio, SDKValidationError> {
|
|
1904
|
-
return safeParse(
|
|
1905
|
-
jsonString,
|
|
1906
|
-
(x) => RetrieveDatapoint2InputAudio$inboundSchema.parse(JSON.parse(x)),
|
|
1907
|
-
`Failed to parse 'RetrieveDatapoint2InputAudio' from JSON`,
|
|
1908
|
-
);
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
/** @internal */
|
|
1912
|
-
export const RetrieveDatapoint23$inboundSchema: z.ZodType<
|
|
1913
|
-
RetrieveDatapoint23,
|
|
1914
|
-
z.ZodTypeDef,
|
|
1915
|
-
unknown
|
|
1916
|
-
> = z.object({
|
|
1917
|
-
type: RetrieveDatapoint2DatasetsResponseType$inboundSchema,
|
|
1918
|
-
input_audio: z.lazy(() => RetrieveDatapoint2InputAudio$inboundSchema),
|
|
1919
|
-
}).transform((v) => {
|
|
1920
|
-
return remap$(v, {
|
|
1921
|
-
"input_audio": "inputAudio",
|
|
1922
|
-
});
|
|
1923
|
-
});
|
|
1924
|
-
/** @internal */
|
|
1925
|
-
export type RetrieveDatapoint23$Outbound = {
|
|
1926
|
-
type: string;
|
|
1927
|
-
input_audio: RetrieveDatapoint2InputAudio$Outbound;
|
|
1928
|
-
};
|
|
1929
|
-
|
|
1930
|
-
/** @internal */
|
|
1931
|
-
export const RetrieveDatapoint23$outboundSchema: z.ZodType<
|
|
1932
|
-
RetrieveDatapoint23$Outbound,
|
|
1933
|
-
z.ZodTypeDef,
|
|
1934
|
-
RetrieveDatapoint23
|
|
1935
|
-
> = z.object({
|
|
1936
|
-
type: RetrieveDatapoint2DatasetsResponseType$outboundSchema,
|
|
1937
|
-
inputAudio: z.lazy(() => RetrieveDatapoint2InputAudio$outboundSchema),
|
|
1938
|
-
}).transform((v) => {
|
|
1939
|
-
return remap$(v, {
|
|
1940
|
-
inputAudio: "input_audio",
|
|
1941
|
-
});
|
|
1942
|
-
});
|
|
1943
|
-
|
|
1944
|
-
export function retrieveDatapoint23ToJSON(
|
|
1945
|
-
retrieveDatapoint23: RetrieveDatapoint23,
|
|
1946
|
-
): string {
|
|
1947
|
-
return JSON.stringify(
|
|
1948
|
-
RetrieveDatapoint23$outboundSchema.parse(retrieveDatapoint23),
|
|
1949
|
-
);
|
|
1950
|
-
}
|
|
1951
|
-
export function retrieveDatapoint23FromJSON(
|
|
1952
|
-
jsonString: string,
|
|
1953
|
-
): SafeParseResult<RetrieveDatapoint23, SDKValidationError> {
|
|
1954
|
-
return safeParse(
|
|
1955
|
-
jsonString,
|
|
1956
|
-
(x) => RetrieveDatapoint23$inboundSchema.parse(JSON.parse(x)),
|
|
1957
|
-
`Failed to parse 'RetrieveDatapoint23' from JSON`,
|
|
1958
|
-
);
|
|
1959
|
-
}
|
|
1960
|
-
|
|
1961
|
-
/** @internal */
|
|
1962
|
-
export const RetrieveDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
1963
|
-
typeof RetrieveDatapoint2DatasetsType
|
|
1964
|
-
> = z.nativeEnum(RetrieveDatapoint2DatasetsType);
|
|
1965
|
-
/** @internal */
|
|
1966
|
-
export const RetrieveDatapoint2DatasetsType$outboundSchema: z.ZodNativeEnum<
|
|
1967
|
-
typeof RetrieveDatapoint2DatasetsType
|
|
1968
|
-
> = RetrieveDatapoint2DatasetsType$inboundSchema;
|
|
1969
|
-
|
|
1970
|
-
/** @internal */
|
|
1971
|
-
export const RetrieveDatapoint2Detail$inboundSchema: z.ZodNativeEnum<
|
|
1972
|
-
typeof RetrieveDatapoint2Detail
|
|
1973
|
-
> = z.nativeEnum(RetrieveDatapoint2Detail);
|
|
1974
|
-
/** @internal */
|
|
1975
|
-
export const RetrieveDatapoint2Detail$outboundSchema: z.ZodNativeEnum<
|
|
1976
|
-
typeof RetrieveDatapoint2Detail
|
|
1977
|
-
> = RetrieveDatapoint2Detail$inboundSchema;
|
|
1978
|
-
|
|
1979
|
-
/** @internal */
|
|
1980
|
-
export const RetrieveDatapoint2ImageUrl$inboundSchema: z.ZodType<
|
|
1981
|
-
RetrieveDatapoint2ImageUrl,
|
|
1982
|
-
z.ZodTypeDef,
|
|
1983
|
-
unknown
|
|
1984
|
-
> = z.object({
|
|
1985
|
-
url: z.string(),
|
|
1986
|
-
detail: RetrieveDatapoint2Detail$inboundSchema.optional(),
|
|
1987
|
-
});
|
|
1988
|
-
/** @internal */
|
|
1989
|
-
export type RetrieveDatapoint2ImageUrl$Outbound = {
|
|
1990
|
-
url: string;
|
|
1991
|
-
detail?: string | undefined;
|
|
1992
|
-
};
|
|
1993
|
-
|
|
1994
|
-
/** @internal */
|
|
1995
|
-
export const RetrieveDatapoint2ImageUrl$outboundSchema: z.ZodType<
|
|
1996
|
-
RetrieveDatapoint2ImageUrl$Outbound,
|
|
1997
|
-
z.ZodTypeDef,
|
|
1998
|
-
RetrieveDatapoint2ImageUrl
|
|
1999
|
-
> = z.object({
|
|
2000
|
-
url: z.string(),
|
|
2001
|
-
detail: RetrieveDatapoint2Detail$outboundSchema.optional(),
|
|
2002
|
-
});
|
|
2003
|
-
|
|
2004
|
-
export function retrieveDatapoint2ImageUrlToJSON(
|
|
2005
|
-
retrieveDatapoint2ImageUrl: RetrieveDatapoint2ImageUrl,
|
|
2006
|
-
): string {
|
|
2007
|
-
return JSON.stringify(
|
|
2008
|
-
RetrieveDatapoint2ImageUrl$outboundSchema.parse(retrieveDatapoint2ImageUrl),
|
|
2009
|
-
);
|
|
2010
|
-
}
|
|
2011
|
-
export function retrieveDatapoint2ImageUrlFromJSON(
|
|
2012
|
-
jsonString: string,
|
|
2013
|
-
): SafeParseResult<RetrieveDatapoint2ImageUrl, SDKValidationError> {
|
|
2014
|
-
return safeParse(
|
|
2015
|
-
jsonString,
|
|
2016
|
-
(x) => RetrieveDatapoint2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
2017
|
-
`Failed to parse 'RetrieveDatapoint2ImageUrl' from JSON`,
|
|
2018
|
-
);
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
|
-
/** @internal */
|
|
2022
|
-
export const RetrieveDatapoint22$inboundSchema: z.ZodType<
|
|
2023
|
-
RetrieveDatapoint22,
|
|
2024
|
-
z.ZodTypeDef,
|
|
2025
|
-
unknown
|
|
2026
|
-
> = z.object({
|
|
2027
|
-
type: RetrieveDatapoint2DatasetsType$inboundSchema,
|
|
2028
|
-
image_url: z.lazy(() => RetrieveDatapoint2ImageUrl$inboundSchema),
|
|
2029
|
-
}).transform((v) => {
|
|
2030
|
-
return remap$(v, {
|
|
2031
|
-
"image_url": "imageUrl",
|
|
2032
|
-
});
|
|
2033
|
-
});
|
|
2034
|
-
/** @internal */
|
|
2035
|
-
export type RetrieveDatapoint22$Outbound = {
|
|
2036
|
-
type: string;
|
|
2037
|
-
image_url: RetrieveDatapoint2ImageUrl$Outbound;
|
|
2038
|
-
};
|
|
2039
|
-
|
|
2040
|
-
/** @internal */
|
|
2041
|
-
export const RetrieveDatapoint22$outboundSchema: z.ZodType<
|
|
2042
|
-
RetrieveDatapoint22$Outbound,
|
|
2043
|
-
z.ZodTypeDef,
|
|
2044
|
-
RetrieveDatapoint22
|
|
2045
|
-
> = z.object({
|
|
2046
|
-
type: RetrieveDatapoint2DatasetsType$outboundSchema,
|
|
2047
|
-
imageUrl: z.lazy(() => RetrieveDatapoint2ImageUrl$outboundSchema),
|
|
2048
|
-
}).transform((v) => {
|
|
2049
|
-
return remap$(v, {
|
|
2050
|
-
imageUrl: "image_url",
|
|
2051
|
-
});
|
|
2052
|
-
});
|
|
2053
|
-
|
|
2054
|
-
export function retrieveDatapoint22ToJSON(
|
|
2055
|
-
retrieveDatapoint22: RetrieveDatapoint22,
|
|
2056
|
-
): string {
|
|
2057
|
-
return JSON.stringify(
|
|
2058
|
-
RetrieveDatapoint22$outboundSchema.parse(retrieveDatapoint22),
|
|
2059
|
-
);
|
|
2060
|
-
}
|
|
2061
|
-
export function retrieveDatapoint22FromJSON(
|
|
2062
|
-
jsonString: string,
|
|
2063
|
-
): SafeParseResult<RetrieveDatapoint22, SDKValidationError> {
|
|
2064
|
-
return safeParse(
|
|
2065
|
-
jsonString,
|
|
2066
|
-
(x) => RetrieveDatapoint22$inboundSchema.parse(JSON.parse(x)),
|
|
2067
|
-
`Failed to parse 'RetrieveDatapoint22' from JSON`,
|
|
2068
|
-
);
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
/** @internal */
|
|
2072
|
-
export const RetrieveDatapoint2Type$inboundSchema: z.ZodNativeEnum<
|
|
2073
|
-
typeof RetrieveDatapoint2Type
|
|
2074
|
-
> = z.nativeEnum(RetrieveDatapoint2Type);
|
|
2075
|
-
/** @internal */
|
|
2076
|
-
export const RetrieveDatapoint2Type$outboundSchema: z.ZodNativeEnum<
|
|
2077
|
-
typeof RetrieveDatapoint2Type
|
|
2078
|
-
> = RetrieveDatapoint2Type$inboundSchema;
|
|
2079
|
-
|
|
2080
|
-
/** @internal */
|
|
2081
|
-
export const RetrieveDatapoint21$inboundSchema: z.ZodType<
|
|
2082
|
-
RetrieveDatapoint21,
|
|
2083
|
-
z.ZodTypeDef,
|
|
2084
|
-
unknown
|
|
2085
|
-
> = z.object({
|
|
2086
|
-
type: RetrieveDatapoint2Type$inboundSchema,
|
|
2087
|
-
text: z.string(),
|
|
2088
|
-
});
|
|
2089
|
-
/** @internal */
|
|
2090
|
-
export type RetrieveDatapoint21$Outbound = {
|
|
2091
|
-
type: string;
|
|
2092
|
-
text: string;
|
|
2093
|
-
};
|
|
2094
|
-
|
|
2095
|
-
/** @internal */
|
|
2096
|
-
export const RetrieveDatapoint21$outboundSchema: z.ZodType<
|
|
2097
|
-
RetrieveDatapoint21$Outbound,
|
|
2098
|
-
z.ZodTypeDef,
|
|
2099
|
-
RetrieveDatapoint21
|
|
2100
|
-
> = z.object({
|
|
2101
|
-
type: RetrieveDatapoint2Type$outboundSchema,
|
|
2102
|
-
text: z.string(),
|
|
2103
|
-
});
|
|
2104
|
-
|
|
2105
|
-
export function retrieveDatapoint21ToJSON(
|
|
2106
|
-
retrieveDatapoint21: RetrieveDatapoint21,
|
|
2107
|
-
): string {
|
|
2108
|
-
return JSON.stringify(
|
|
2109
|
-
RetrieveDatapoint21$outboundSchema.parse(retrieveDatapoint21),
|
|
2110
|
-
);
|
|
2111
|
-
}
|
|
2112
|
-
export function retrieveDatapoint21FromJSON(
|
|
2113
|
-
jsonString: string,
|
|
2114
|
-
): SafeParseResult<RetrieveDatapoint21, SDKValidationError> {
|
|
2115
|
-
return safeParse(
|
|
2116
|
-
jsonString,
|
|
2117
|
-
(x) => RetrieveDatapoint21$inboundSchema.parse(JSON.parse(x)),
|
|
2118
|
-
`Failed to parse 'RetrieveDatapoint21' from JSON`,
|
|
2119
|
-
);
|
|
2120
|
-
}
|
|
2121
|
-
|
|
2122
|
-
/** @internal */
|
|
2123
|
-
export const RetrieveDatapointContent2$inboundSchema: z.ZodType<
|
|
2124
|
-
RetrieveDatapointContent2,
|
|
2125
|
-
z.ZodTypeDef,
|
|
2126
|
-
unknown
|
|
2127
|
-
> = z.union([
|
|
2128
|
-
z.lazy(() => RetrieveDatapoint21$inboundSchema),
|
|
2129
|
-
z.lazy(() => RetrieveDatapoint22$inboundSchema),
|
|
2130
|
-
z.lazy(() => RetrieveDatapoint23$inboundSchema),
|
|
2131
|
-
z.lazy(() => RetrieveDatapoint24$inboundSchema),
|
|
2132
|
-
]);
|
|
2133
|
-
/** @internal */
|
|
2134
|
-
export type RetrieveDatapointContent2$Outbound =
|
|
2135
|
-
| RetrieveDatapoint21$Outbound
|
|
2136
|
-
| RetrieveDatapoint22$Outbound
|
|
2137
|
-
| RetrieveDatapoint23$Outbound
|
|
2138
|
-
| RetrieveDatapoint24$Outbound;
|
|
2139
|
-
|
|
2140
|
-
/** @internal */
|
|
2141
|
-
export const RetrieveDatapointContent2$outboundSchema: z.ZodType<
|
|
2142
|
-
RetrieveDatapointContent2$Outbound,
|
|
2143
|
-
z.ZodTypeDef,
|
|
2144
|
-
RetrieveDatapointContent2
|
|
2145
|
-
> = z.union([
|
|
2146
|
-
z.lazy(() => RetrieveDatapoint21$outboundSchema),
|
|
2147
|
-
z.lazy(() => RetrieveDatapoint22$outboundSchema),
|
|
2148
|
-
z.lazy(() => RetrieveDatapoint23$outboundSchema),
|
|
2149
|
-
z.lazy(() => RetrieveDatapoint24$outboundSchema),
|
|
2150
|
-
]);
|
|
2151
|
-
|
|
2152
|
-
export function retrieveDatapointContent2ToJSON(
|
|
2153
|
-
retrieveDatapointContent2: RetrieveDatapointContent2,
|
|
2154
|
-
): string {
|
|
2155
|
-
return JSON.stringify(
|
|
2156
|
-
RetrieveDatapointContent2$outboundSchema.parse(retrieveDatapointContent2),
|
|
2157
|
-
);
|
|
2158
|
-
}
|
|
2159
|
-
export function retrieveDatapointContent2FromJSON(
|
|
2160
|
-
jsonString: string,
|
|
2161
|
-
): SafeParseResult<RetrieveDatapointContent2, SDKValidationError> {
|
|
2162
|
-
return safeParse(
|
|
2163
|
-
jsonString,
|
|
2164
|
-
(x) => RetrieveDatapointContent2$inboundSchema.parse(JSON.parse(x)),
|
|
2165
|
-
`Failed to parse 'RetrieveDatapointContent2' from JSON`,
|
|
2166
|
-
);
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
/** @internal */
|
|
2170
|
-
export const RetrieveDatapointMessagesContent$inboundSchema: z.ZodType<
|
|
2171
|
-
RetrieveDatapointMessagesContent,
|
|
2172
|
-
z.ZodTypeDef,
|
|
2173
|
-
unknown
|
|
2174
|
-
> = z.union([
|
|
2175
|
-
z.string(),
|
|
2176
|
-
z.array(z.union([
|
|
2177
|
-
z.lazy(() => RetrieveDatapoint21$inboundSchema),
|
|
2178
|
-
z.lazy(() => RetrieveDatapoint22$inboundSchema),
|
|
2179
|
-
z.lazy(() => RetrieveDatapoint23$inboundSchema),
|
|
2180
|
-
z.lazy(() => RetrieveDatapoint24$inboundSchema),
|
|
2181
|
-
])),
|
|
2182
|
-
]);
|
|
2183
|
-
/** @internal */
|
|
2184
|
-
export type RetrieveDatapointMessagesContent$Outbound =
|
|
2185
|
-
| string
|
|
2186
|
-
| Array<
|
|
2187
|
-
| RetrieveDatapoint21$Outbound
|
|
2188
|
-
| RetrieveDatapoint22$Outbound
|
|
2189
|
-
| RetrieveDatapoint23$Outbound
|
|
2190
|
-
| RetrieveDatapoint24$Outbound
|
|
2191
|
-
>;
|
|
2192
|
-
|
|
2193
|
-
/** @internal */
|
|
2194
|
-
export const RetrieveDatapointMessagesContent$outboundSchema: z.ZodType<
|
|
2195
|
-
RetrieveDatapointMessagesContent$Outbound,
|
|
2196
|
-
z.ZodTypeDef,
|
|
2197
|
-
RetrieveDatapointMessagesContent
|
|
2198
|
-
> = z.union([
|
|
2199
|
-
z.string(),
|
|
2200
|
-
z.array(z.union([
|
|
2201
|
-
z.lazy(() => RetrieveDatapoint21$outboundSchema),
|
|
2202
|
-
z.lazy(() => RetrieveDatapoint22$outboundSchema),
|
|
2203
|
-
z.lazy(() => RetrieveDatapoint23$outboundSchema),
|
|
2204
|
-
z.lazy(() => RetrieveDatapoint24$outboundSchema),
|
|
2205
|
-
])),
|
|
2206
|
-
]);
|
|
2207
|
-
|
|
2208
|
-
export function retrieveDatapointMessagesContentToJSON(
|
|
2209
|
-
retrieveDatapointMessagesContent: RetrieveDatapointMessagesContent,
|
|
2210
|
-
): string {
|
|
2211
|
-
return JSON.stringify(
|
|
2212
|
-
RetrieveDatapointMessagesContent$outboundSchema.parse(
|
|
2213
|
-
retrieveDatapointMessagesContent,
|
|
2214
|
-
),
|
|
2215
|
-
);
|
|
2216
|
-
}
|
|
2217
|
-
export function retrieveDatapointMessagesContentFromJSON(
|
|
2218
|
-
jsonString: string,
|
|
2219
|
-
): SafeParseResult<RetrieveDatapointMessagesContent, SDKValidationError> {
|
|
2220
|
-
return safeParse(
|
|
2221
|
-
jsonString,
|
|
2222
|
-
(x) => RetrieveDatapointMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
2223
|
-
`Failed to parse 'RetrieveDatapointMessagesContent' from JSON`,
|
|
2224
|
-
);
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
/** @internal */
|
|
2228
|
-
export const RetrieveDatapointMessagesUserMessage$inboundSchema: z.ZodType<
|
|
2229
|
-
RetrieveDatapointMessagesUserMessage,
|
|
2230
|
-
z.ZodTypeDef,
|
|
2231
|
-
unknown
|
|
2232
|
-
> = z.object({
|
|
2233
|
-
role: RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema,
|
|
2234
|
-
name: z.string().optional(),
|
|
2235
|
-
content: z.union([
|
|
2236
|
-
z.string(),
|
|
2237
|
-
z.array(z.union([
|
|
2238
|
-
z.lazy(() => RetrieveDatapoint21$inboundSchema),
|
|
2239
|
-
z.lazy(() => RetrieveDatapoint22$inboundSchema),
|
|
2240
|
-
z.lazy(() => RetrieveDatapoint23$inboundSchema),
|
|
2241
|
-
z.lazy(() => RetrieveDatapoint24$inboundSchema),
|
|
2242
|
-
])),
|
|
2243
|
-
]),
|
|
2244
|
-
});
|
|
2245
|
-
/** @internal */
|
|
2246
|
-
export type RetrieveDatapointMessagesUserMessage$Outbound = {
|
|
2247
|
-
role: string;
|
|
2248
|
-
name?: string | undefined;
|
|
2249
|
-
content:
|
|
2250
|
-
| string
|
|
2251
|
-
| Array<
|
|
2252
|
-
| RetrieveDatapoint21$Outbound
|
|
2253
|
-
| RetrieveDatapoint22$Outbound
|
|
2254
|
-
| RetrieveDatapoint23$Outbound
|
|
2255
|
-
| RetrieveDatapoint24$Outbound
|
|
2256
|
-
>;
|
|
2257
|
-
};
|
|
2258
|
-
|
|
2259
|
-
/** @internal */
|
|
2260
|
-
export const RetrieveDatapointMessagesUserMessage$outboundSchema: z.ZodType<
|
|
2261
|
-
RetrieveDatapointMessagesUserMessage$Outbound,
|
|
2262
|
-
z.ZodTypeDef,
|
|
2263
|
-
RetrieveDatapointMessagesUserMessage
|
|
2264
|
-
> = z.object({
|
|
2265
|
-
role: RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema,
|
|
2266
|
-
name: z.string().optional(),
|
|
2267
|
-
content: z.union([
|
|
2268
|
-
z.string(),
|
|
2269
|
-
z.array(z.union([
|
|
2270
|
-
z.lazy(() => RetrieveDatapoint21$outboundSchema),
|
|
2271
|
-
z.lazy(() => RetrieveDatapoint22$outboundSchema),
|
|
2272
|
-
z.lazy(() => RetrieveDatapoint23$outboundSchema),
|
|
2273
|
-
z.lazy(() => RetrieveDatapoint24$outboundSchema),
|
|
2274
|
-
])),
|
|
2275
|
-
]),
|
|
2276
|
-
});
|
|
2277
|
-
|
|
2278
|
-
export function retrieveDatapointMessagesUserMessageToJSON(
|
|
2279
|
-
retrieveDatapointMessagesUserMessage: RetrieveDatapointMessagesUserMessage,
|
|
2280
|
-
): string {
|
|
2281
|
-
return JSON.stringify(
|
|
2282
|
-
RetrieveDatapointMessagesUserMessage$outboundSchema.parse(
|
|
2283
|
-
retrieveDatapointMessagesUserMessage,
|
|
2284
|
-
),
|
|
2285
|
-
);
|
|
2286
|
-
}
|
|
2287
|
-
export function retrieveDatapointMessagesUserMessageFromJSON(
|
|
2288
|
-
jsonString: string,
|
|
2289
|
-
): SafeParseResult<RetrieveDatapointMessagesUserMessage, SDKValidationError> {
|
|
2290
|
-
return safeParse(
|
|
2291
|
-
jsonString,
|
|
2292
|
-
(x) =>
|
|
2293
|
-
RetrieveDatapointMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2294
|
-
`Failed to parse 'RetrieveDatapointMessagesUserMessage' from JSON`,
|
|
2295
|
-
);
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
/** @internal */
|
|
2299
|
-
export const RetrieveDatapointMessagesDatasetsRole$inboundSchema:
|
|
2300
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsRole> = z.nativeEnum(
|
|
2301
|
-
RetrieveDatapointMessagesDatasetsRole,
|
|
2302
|
-
);
|
|
2303
|
-
/** @internal */
|
|
2304
|
-
export const RetrieveDatapointMessagesDatasetsRole$outboundSchema:
|
|
2305
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsRole> =
|
|
2306
|
-
RetrieveDatapointMessagesDatasetsRole$inboundSchema;
|
|
2307
|
-
|
|
2308
|
-
/** @internal */
|
|
2309
|
-
export const RetrieveDatapointMessagesSystemMessage$inboundSchema: z.ZodType<
|
|
2310
|
-
RetrieveDatapointMessagesSystemMessage,
|
|
2311
|
-
z.ZodTypeDef,
|
|
2312
|
-
unknown
|
|
2313
|
-
> = z.object({
|
|
2314
|
-
role: RetrieveDatapointMessagesDatasetsRole$inboundSchema,
|
|
2315
|
-
content: z.string(),
|
|
2316
|
-
name: z.string().optional(),
|
|
2317
|
-
});
|
|
2318
|
-
/** @internal */
|
|
2319
|
-
export type RetrieveDatapointMessagesSystemMessage$Outbound = {
|
|
2320
|
-
role: string;
|
|
2321
|
-
content: string;
|
|
2322
|
-
name?: string | undefined;
|
|
2323
|
-
};
|
|
2324
|
-
|
|
2325
|
-
/** @internal */
|
|
2326
|
-
export const RetrieveDatapointMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
2327
|
-
RetrieveDatapointMessagesSystemMessage$Outbound,
|
|
2328
|
-
z.ZodTypeDef,
|
|
2329
|
-
RetrieveDatapointMessagesSystemMessage
|
|
2330
|
-
> = z.object({
|
|
2331
|
-
role: RetrieveDatapointMessagesDatasetsRole$outboundSchema,
|
|
2332
|
-
content: z.string(),
|
|
2333
|
-
name: z.string().optional(),
|
|
2334
|
-
});
|
|
2335
|
-
|
|
2336
|
-
export function retrieveDatapointMessagesSystemMessageToJSON(
|
|
2337
|
-
retrieveDatapointMessagesSystemMessage:
|
|
2338
|
-
RetrieveDatapointMessagesSystemMessage,
|
|
2339
|
-
): string {
|
|
2340
|
-
return JSON.stringify(
|
|
2341
|
-
RetrieveDatapointMessagesSystemMessage$outboundSchema.parse(
|
|
2342
|
-
retrieveDatapointMessagesSystemMessage,
|
|
2343
|
-
),
|
|
2344
|
-
);
|
|
2345
|
-
}
|
|
2346
|
-
export function retrieveDatapointMessagesSystemMessageFromJSON(
|
|
2347
|
-
jsonString: string,
|
|
2348
|
-
): SafeParseResult<RetrieveDatapointMessagesSystemMessage, SDKValidationError> {
|
|
2349
|
-
return safeParse(
|
|
2350
|
-
jsonString,
|
|
2351
|
-
(x) =>
|
|
2352
|
-
RetrieveDatapointMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2353
|
-
`Failed to parse 'RetrieveDatapointMessagesSystemMessage' from JSON`,
|
|
2354
|
-
);
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
/** @internal */
|
|
2358
|
-
export const RetrieveDatapointMessagesRole$inboundSchema: z.ZodNativeEnum<
|
|
2359
|
-
typeof RetrieveDatapointMessagesRole
|
|
2360
|
-
> = z.nativeEnum(RetrieveDatapointMessagesRole);
|
|
2361
|
-
/** @internal */
|
|
2362
|
-
export const RetrieveDatapointMessagesRole$outboundSchema: z.ZodNativeEnum<
|
|
2363
|
-
typeof RetrieveDatapointMessagesRole
|
|
2364
|
-
> = RetrieveDatapointMessagesRole$inboundSchema;
|
|
2365
|
-
|
|
2366
|
-
/** @internal */
|
|
2367
|
-
export const RetrieveDatapointMessagesDeveloperMessage$inboundSchema: z.ZodType<
|
|
2368
|
-
RetrieveDatapointMessagesDeveloperMessage,
|
|
2369
|
-
z.ZodTypeDef,
|
|
2370
|
-
unknown
|
|
2371
|
-
> = z.object({
|
|
2372
|
-
role: RetrieveDatapointMessagesRole$inboundSchema,
|
|
2373
|
-
content: z.string(),
|
|
2374
|
-
name: z.string().optional(),
|
|
2375
|
-
});
|
|
2376
|
-
/** @internal */
|
|
2377
|
-
export type RetrieveDatapointMessagesDeveloperMessage$Outbound = {
|
|
2378
|
-
role: string;
|
|
2379
|
-
content: string;
|
|
2380
|
-
name?: string | undefined;
|
|
2381
|
-
};
|
|
2382
|
-
|
|
2383
|
-
/** @internal */
|
|
2384
|
-
export const RetrieveDatapointMessagesDeveloperMessage$outboundSchema:
|
|
2385
|
-
z.ZodType<
|
|
2386
|
-
RetrieveDatapointMessagesDeveloperMessage$Outbound,
|
|
2387
|
-
z.ZodTypeDef,
|
|
2388
|
-
RetrieveDatapointMessagesDeveloperMessage
|
|
2389
|
-
> = z.object({
|
|
2390
|
-
role: RetrieveDatapointMessagesRole$outboundSchema,
|
|
2391
|
-
content: z.string(),
|
|
2392
|
-
name: z.string().optional(),
|
|
2393
|
-
});
|
|
2394
|
-
|
|
2395
|
-
export function retrieveDatapointMessagesDeveloperMessageToJSON(
|
|
2396
|
-
retrieveDatapointMessagesDeveloperMessage:
|
|
2397
|
-
RetrieveDatapointMessagesDeveloperMessage,
|
|
2398
|
-
): string {
|
|
2399
|
-
return JSON.stringify(
|
|
2400
|
-
RetrieveDatapointMessagesDeveloperMessage$outboundSchema.parse(
|
|
2401
|
-
retrieveDatapointMessagesDeveloperMessage,
|
|
2402
|
-
),
|
|
2403
|
-
);
|
|
2404
|
-
}
|
|
2405
|
-
export function retrieveDatapointMessagesDeveloperMessageFromJSON(
|
|
2406
|
-
jsonString: string,
|
|
2407
|
-
): SafeParseResult<
|
|
2408
|
-
RetrieveDatapointMessagesDeveloperMessage,
|
|
2409
|
-
SDKValidationError
|
|
2410
|
-
> {
|
|
2411
|
-
return safeParse(
|
|
2412
|
-
jsonString,
|
|
2413
|
-
(x) =>
|
|
2414
|
-
RetrieveDatapointMessagesDeveloperMessage$inboundSchema.parse(
|
|
2415
|
-
JSON.parse(x),
|
|
2416
|
-
),
|
|
2417
|
-
`Failed to parse 'RetrieveDatapointMessagesDeveloperMessage' from JSON`,
|
|
2418
|
-
);
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
/** @internal */
|
|
2422
|
-
export const RetrieveDatapointMessages$inboundSchema: z.ZodType<
|
|
2423
|
-
RetrieveDatapointMessages,
|
|
2424
|
-
z.ZodTypeDef,
|
|
2425
|
-
unknown
|
|
2426
|
-
> = z.union([
|
|
2427
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$inboundSchema),
|
|
2428
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
|
|
2429
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$inboundSchema),
|
|
2430
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$inboundSchema),
|
|
2431
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$inboundSchema),
|
|
2432
|
-
]);
|
|
2433
|
-
/** @internal */
|
|
2434
|
-
export type RetrieveDatapointMessages$Outbound =
|
|
2435
|
-
| RetrieveDatapointMessagesToolMessage$Outbound
|
|
2436
|
-
| RetrieveDatapointMessagesDeveloperMessage$Outbound
|
|
2437
|
-
| RetrieveDatapointMessagesSystemMessage$Outbound
|
|
2438
|
-
| RetrieveDatapointMessagesUserMessage$Outbound
|
|
2439
|
-
| RetrieveDatapointMessagesAssistantMessage$Outbound;
|
|
2440
|
-
|
|
2441
|
-
/** @internal */
|
|
2442
|
-
export const RetrieveDatapointMessages$outboundSchema: z.ZodType<
|
|
2443
|
-
RetrieveDatapointMessages$Outbound,
|
|
2444
|
-
z.ZodTypeDef,
|
|
2445
|
-
RetrieveDatapointMessages
|
|
2446
|
-
> = z.union([
|
|
2447
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$outboundSchema),
|
|
2448
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
|
|
2449
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$outboundSchema),
|
|
2450
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$outboundSchema),
|
|
2451
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$outboundSchema),
|
|
2452
|
-
]);
|
|
2453
|
-
|
|
2454
|
-
export function retrieveDatapointMessagesToJSON(
|
|
2455
|
-
retrieveDatapointMessages: RetrieveDatapointMessages,
|
|
2456
|
-
): string {
|
|
2457
|
-
return JSON.stringify(
|
|
2458
|
-
RetrieveDatapointMessages$outboundSchema.parse(retrieveDatapointMessages),
|
|
2459
|
-
);
|
|
2460
|
-
}
|
|
2461
|
-
export function retrieveDatapointMessagesFromJSON(
|
|
2462
|
-
jsonString: string,
|
|
2463
|
-
): SafeParseResult<RetrieveDatapointMessages, SDKValidationError> {
|
|
2464
|
-
return safeParse(
|
|
2465
|
-
jsonString,
|
|
2466
|
-
(x) => RetrieveDatapointMessages$inboundSchema.parse(JSON.parse(x)),
|
|
2467
|
-
`Failed to parse 'RetrieveDatapointMessages' from JSON`,
|
|
2468
|
-
);
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
/** @internal */
|
|
2472
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema:
|
|
2473
|
-
z.ZodNativeEnum<
|
|
2474
|
-
typeof RetrieveDatapointEvaluationsDatasetsResponseEvaluationType
|
|
2475
|
-
> = z.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseEvaluationType);
|
|
2476
|
-
/** @internal */
|
|
2477
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema:
|
|
2478
|
-
z.ZodNativeEnum<
|
|
2479
|
-
typeof RetrieveDatapointEvaluationsDatasetsResponseEvaluationType
|
|
2480
|
-
> = RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema;
|
|
2481
|
-
|
|
2482
|
-
/** @internal */
|
|
2483
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema:
|
|
2484
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseSource> = z
|
|
2485
|
-
.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseSource);
|
|
2486
|
-
/** @internal */
|
|
2487
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema:
|
|
2488
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseSource> =
|
|
2489
|
-
RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema;
|
|
2490
|
-
|
|
2491
|
-
/** @internal */
|
|
2492
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema:
|
|
2493
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseType> = z
|
|
2494
|
-
.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseType);
|
|
2495
|
-
/** @internal */
|
|
2496
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema:
|
|
2497
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseType> =
|
|
2498
|
-
RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema;
|
|
2499
|
-
|
|
2500
|
-
/** @internal */
|
|
2501
|
-
export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
2502
|
-
RetrieveDatapointEvaluations3,
|
|
2503
|
-
z.ZodTypeDef,
|
|
2504
|
-
unknown
|
|
2505
|
-
> = z.object({
|
|
2506
|
-
id: z.string(),
|
|
2507
|
-
evaluation_type:
|
|
2508
|
-
RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema,
|
|
2509
|
-
human_review_id: z.string(),
|
|
2510
|
-
source: RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
2511
|
-
.default("orq"),
|
|
2512
|
-
reviewed_by_id: z.string(),
|
|
2513
|
-
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2514
|
-
"2025-11-22T21:11:58.464Z",
|
|
2515
|
-
).transform(v => new Date(v)),
|
|
2516
|
-
type: RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema,
|
|
2517
|
-
values: z.array(z.string()),
|
|
2518
|
-
}).transform((v) => {
|
|
2519
|
-
return remap$(v, {
|
|
2520
|
-
"evaluation_type": "evaluationType",
|
|
2521
|
-
"human_review_id": "humanReviewId",
|
|
2522
|
-
"reviewed_by_id": "reviewedById",
|
|
2523
|
-
"reviewed_at": "reviewedAt",
|
|
2524
|
-
});
|
|
2525
|
-
});
|
|
2526
|
-
/** @internal */
|
|
2527
|
-
export type RetrieveDatapointEvaluations3$Outbound = {
|
|
2528
|
-
id: string;
|
|
2529
|
-
evaluation_type: string;
|
|
2530
|
-
human_review_id: string;
|
|
2531
|
-
source: string;
|
|
2532
|
-
reviewed_by_id: string;
|
|
2533
|
-
reviewed_at: string;
|
|
2534
|
-
type: string;
|
|
2535
|
-
values: Array<string>;
|
|
2536
|
-
};
|
|
2537
|
-
|
|
2538
|
-
/** @internal */
|
|
2539
|
-
export const RetrieveDatapointEvaluations3$outboundSchema: z.ZodType<
|
|
2540
|
-
RetrieveDatapointEvaluations3$Outbound,
|
|
2541
|
-
z.ZodTypeDef,
|
|
2542
|
-
RetrieveDatapointEvaluations3
|
|
2543
|
-
> = z.object({
|
|
2544
|
-
id: z.string(),
|
|
2545
|
-
evaluationType:
|
|
2546
|
-
RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema,
|
|
2547
|
-
humanReviewId: z.string(),
|
|
2548
|
-
source: RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
|
|
2549
|
-
.default("orq"),
|
|
2550
|
-
reviewedById: z.string(),
|
|
2551
|
-
reviewedAt: z.date().default(() => new Date("2025-11-22T21:11:58.464Z"))
|
|
2552
|
-
.transform(v => v.toISOString()),
|
|
2553
|
-
type: RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema,
|
|
2554
|
-
values: z.array(z.string()),
|
|
2555
|
-
}).transform((v) => {
|
|
2556
|
-
return remap$(v, {
|
|
2557
|
-
evaluationType: "evaluation_type",
|
|
2558
|
-
humanReviewId: "human_review_id",
|
|
2559
|
-
reviewedById: "reviewed_by_id",
|
|
2560
|
-
reviewedAt: "reviewed_at",
|
|
2561
|
-
});
|
|
2562
|
-
});
|
|
2563
|
-
|
|
2564
|
-
export function retrieveDatapointEvaluations3ToJSON(
|
|
2565
|
-
retrieveDatapointEvaluations3: RetrieveDatapointEvaluations3,
|
|
2566
|
-
): string {
|
|
2567
|
-
return JSON.stringify(
|
|
2568
|
-
RetrieveDatapointEvaluations3$outboundSchema.parse(
|
|
2569
|
-
retrieveDatapointEvaluations3,
|
|
2570
|
-
),
|
|
2571
|
-
);
|
|
2572
|
-
}
|
|
2573
|
-
export function retrieveDatapointEvaluations3FromJSON(
|
|
2574
|
-
jsonString: string,
|
|
2575
|
-
): SafeParseResult<RetrieveDatapointEvaluations3, SDKValidationError> {
|
|
2576
|
-
return safeParse(
|
|
2577
|
-
jsonString,
|
|
2578
|
-
(x) => RetrieveDatapointEvaluations3$inboundSchema.parse(JSON.parse(x)),
|
|
2579
|
-
`Failed to parse 'RetrieveDatapointEvaluations3' from JSON`,
|
|
2580
|
-
);
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2583
|
-
/** @internal */
|
|
2584
|
-
export const RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema:
|
|
2585
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsEvaluationType> = z
|
|
2586
|
-
.nativeEnum(RetrieveDatapointEvaluationsDatasetsEvaluationType);
|
|
2587
|
-
/** @internal */
|
|
2588
|
-
export const RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema:
|
|
2589
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsEvaluationType> =
|
|
2590
|
-
RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema;
|
|
2591
|
-
|
|
2592
|
-
/** @internal */
|
|
2593
|
-
export const RetrieveDatapointEvaluationsDatasetsSource$inboundSchema:
|
|
2594
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsSource> = z
|
|
2595
|
-
.nativeEnum(RetrieveDatapointEvaluationsDatasetsSource);
|
|
2596
|
-
/** @internal */
|
|
2597
|
-
export const RetrieveDatapointEvaluationsDatasetsSource$outboundSchema:
|
|
2598
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsSource> =
|
|
2599
|
-
RetrieveDatapointEvaluationsDatasetsSource$inboundSchema;
|
|
2600
|
-
|
|
2601
|
-
/** @internal */
|
|
2602
|
-
export const RetrieveDatapointEvaluationsDatasetsType$inboundSchema:
|
|
2603
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsType> = z
|
|
2604
|
-
.nativeEnum(RetrieveDatapointEvaluationsDatasetsType);
|
|
2605
|
-
/** @internal */
|
|
2606
|
-
export const RetrieveDatapointEvaluationsDatasetsType$outboundSchema:
|
|
2607
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsType> =
|
|
2608
|
-
RetrieveDatapointEvaluationsDatasetsType$inboundSchema;
|
|
2609
|
-
|
|
2610
|
-
/** @internal */
|
|
2611
|
-
export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
2612
|
-
RetrieveDatapointEvaluations2,
|
|
2613
|
-
z.ZodTypeDef,
|
|
2614
|
-
unknown
|
|
2615
|
-
> = z.object({
|
|
2616
|
-
id: z.string(),
|
|
2617
|
-
evaluation_type:
|
|
2618
|
-
RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema,
|
|
2619
|
-
human_review_id: z.string(),
|
|
2620
|
-
source: RetrieveDatapointEvaluationsDatasetsSource$inboundSchema.default(
|
|
2621
|
-
"orq",
|
|
2622
|
-
),
|
|
2623
|
-
reviewed_by_id: z.string(),
|
|
2624
|
-
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2625
|
-
"2025-11-22T21:11:58.464Z",
|
|
2626
|
-
).transform(v => new Date(v)),
|
|
2627
|
-
type: RetrieveDatapointEvaluationsDatasetsType$inboundSchema,
|
|
2628
|
-
value: z.number(),
|
|
2629
|
-
}).transform((v) => {
|
|
2630
|
-
return remap$(v, {
|
|
2631
|
-
"evaluation_type": "evaluationType",
|
|
2632
|
-
"human_review_id": "humanReviewId",
|
|
2633
|
-
"reviewed_by_id": "reviewedById",
|
|
2634
|
-
"reviewed_at": "reviewedAt",
|
|
2635
|
-
});
|
|
2636
|
-
});
|
|
2637
|
-
/** @internal */
|
|
2638
|
-
export type RetrieveDatapointEvaluations2$Outbound = {
|
|
2639
|
-
id: string;
|
|
2640
|
-
evaluation_type: string;
|
|
2641
|
-
human_review_id: string;
|
|
2642
|
-
source: string;
|
|
2643
|
-
reviewed_by_id: string;
|
|
2644
|
-
reviewed_at: string;
|
|
2645
|
-
type: string;
|
|
2646
|
-
value: number;
|
|
2647
|
-
};
|
|
2648
|
-
|
|
2649
|
-
/** @internal */
|
|
2650
|
-
export const RetrieveDatapointEvaluations2$outboundSchema: z.ZodType<
|
|
2651
|
-
RetrieveDatapointEvaluations2$Outbound,
|
|
2652
|
-
z.ZodTypeDef,
|
|
2653
|
-
RetrieveDatapointEvaluations2
|
|
2654
|
-
> = z.object({
|
|
2655
|
-
id: z.string(),
|
|
2656
|
-
evaluationType:
|
|
2657
|
-
RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema,
|
|
2658
|
-
humanReviewId: z.string(),
|
|
2659
|
-
source: RetrieveDatapointEvaluationsDatasetsSource$outboundSchema.default(
|
|
2660
|
-
"orq",
|
|
2661
|
-
),
|
|
2662
|
-
reviewedById: z.string(),
|
|
2663
|
-
reviewedAt: z.date().default(() => new Date("2025-11-22T21:11:58.464Z"))
|
|
2664
|
-
.transform(v => v.toISOString()),
|
|
2665
|
-
type: RetrieveDatapointEvaluationsDatasetsType$outboundSchema,
|
|
2666
|
-
value: z.number(),
|
|
2667
|
-
}).transform((v) => {
|
|
2668
|
-
return remap$(v, {
|
|
2669
|
-
evaluationType: "evaluation_type",
|
|
2670
|
-
humanReviewId: "human_review_id",
|
|
2671
|
-
reviewedById: "reviewed_by_id",
|
|
2672
|
-
reviewedAt: "reviewed_at",
|
|
2673
|
-
});
|
|
2674
|
-
});
|
|
2675
|
-
|
|
2676
|
-
export function retrieveDatapointEvaluations2ToJSON(
|
|
2677
|
-
retrieveDatapointEvaluations2: RetrieveDatapointEvaluations2,
|
|
2678
|
-
): string {
|
|
2679
|
-
return JSON.stringify(
|
|
2680
|
-
RetrieveDatapointEvaluations2$outboundSchema.parse(
|
|
2681
|
-
retrieveDatapointEvaluations2,
|
|
2682
|
-
),
|
|
2683
|
-
);
|
|
2684
|
-
}
|
|
2685
|
-
export function retrieveDatapointEvaluations2FromJSON(
|
|
2686
|
-
jsonString: string,
|
|
2687
|
-
): SafeParseResult<RetrieveDatapointEvaluations2, SDKValidationError> {
|
|
2688
|
-
return safeParse(
|
|
2689
|
-
jsonString,
|
|
2690
|
-
(x) => RetrieveDatapointEvaluations2$inboundSchema.parse(JSON.parse(x)),
|
|
2691
|
-
`Failed to parse 'RetrieveDatapointEvaluations2' from JSON`,
|
|
2692
|
-
);
|
|
2693
|
-
}
|
|
2694
|
-
|
|
2695
|
-
/** @internal */
|
|
2696
|
-
export const RetrieveDatapointEvaluationsEvaluationType$inboundSchema:
|
|
2697
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsEvaluationType> = z
|
|
2698
|
-
.nativeEnum(RetrieveDatapointEvaluationsEvaluationType);
|
|
2699
|
-
/** @internal */
|
|
2700
|
-
export const RetrieveDatapointEvaluationsEvaluationType$outboundSchema:
|
|
2701
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsEvaluationType> =
|
|
2702
|
-
RetrieveDatapointEvaluationsEvaluationType$inboundSchema;
|
|
2703
|
-
|
|
2704
|
-
/** @internal */
|
|
2705
|
-
export const RetrieveDatapointEvaluationsSource$inboundSchema: z.ZodNativeEnum<
|
|
2706
|
-
typeof RetrieveDatapointEvaluationsSource
|
|
2707
|
-
> = z.nativeEnum(RetrieveDatapointEvaluationsSource);
|
|
2708
|
-
/** @internal */
|
|
2709
|
-
export const RetrieveDatapointEvaluationsSource$outboundSchema: z.ZodNativeEnum<
|
|
2710
|
-
typeof RetrieveDatapointEvaluationsSource
|
|
2711
|
-
> = RetrieveDatapointEvaluationsSource$inboundSchema;
|
|
2712
|
-
|
|
2713
|
-
/** @internal */
|
|
2714
|
-
export const RetrieveDatapointEvaluationsType$inboundSchema: z.ZodNativeEnum<
|
|
2715
|
-
typeof RetrieveDatapointEvaluationsType
|
|
2716
|
-
> = z.nativeEnum(RetrieveDatapointEvaluationsType);
|
|
2717
|
-
/** @internal */
|
|
2718
|
-
export const RetrieveDatapointEvaluationsType$outboundSchema: z.ZodNativeEnum<
|
|
2719
|
-
typeof RetrieveDatapointEvaluationsType
|
|
2720
|
-
> = RetrieveDatapointEvaluationsType$inboundSchema;
|
|
2721
|
-
|
|
2722
|
-
/** @internal */
|
|
2723
|
-
export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
2724
|
-
RetrieveDatapointEvaluations1,
|
|
2725
|
-
z.ZodTypeDef,
|
|
2726
|
-
unknown
|
|
2727
|
-
> = z.object({
|
|
2728
|
-
id: z.string(),
|
|
2729
|
-
evaluation_type: RetrieveDatapointEvaluationsEvaluationType$inboundSchema,
|
|
2730
|
-
human_review_id: z.string(),
|
|
2731
|
-
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2732
|
-
reviewed_by_id: z.string(),
|
|
2733
|
-
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2734
|
-
"2025-11-22T21:11:58.463Z",
|
|
2735
|
-
).transform(v => new Date(v)),
|
|
2736
|
-
type: RetrieveDatapointEvaluationsType$inboundSchema,
|
|
2737
|
-
value: z.string(),
|
|
2738
|
-
}).transform((v) => {
|
|
2739
|
-
return remap$(v, {
|
|
2740
|
-
"evaluation_type": "evaluationType",
|
|
2741
|
-
"human_review_id": "humanReviewId",
|
|
2742
|
-
"reviewed_by_id": "reviewedById",
|
|
2743
|
-
"reviewed_at": "reviewedAt",
|
|
2744
|
-
});
|
|
2745
|
-
});
|
|
2746
|
-
/** @internal */
|
|
2747
|
-
export type RetrieveDatapointEvaluations1$Outbound = {
|
|
2748
|
-
id: string;
|
|
2749
|
-
evaluation_type: string;
|
|
2750
|
-
human_review_id: string;
|
|
2751
|
-
source: string;
|
|
2752
|
-
reviewed_by_id: string;
|
|
2753
|
-
reviewed_at: string;
|
|
2754
|
-
type: string;
|
|
2755
|
-
value: string;
|
|
2756
|
-
};
|
|
2757
|
-
|
|
2758
|
-
/** @internal */
|
|
2759
|
-
export const RetrieveDatapointEvaluations1$outboundSchema: z.ZodType<
|
|
2760
|
-
RetrieveDatapointEvaluations1$Outbound,
|
|
2761
|
-
z.ZodTypeDef,
|
|
2762
|
-
RetrieveDatapointEvaluations1
|
|
2763
|
-
> = z.object({
|
|
2764
|
-
id: z.string(),
|
|
2765
|
-
evaluationType: RetrieveDatapointEvaluationsEvaluationType$outboundSchema,
|
|
2766
|
-
humanReviewId: z.string(),
|
|
2767
|
-
source: RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
|
|
2768
|
-
reviewedById: z.string(),
|
|
2769
|
-
reviewedAt: z.date().default(() => new Date("2025-11-22T21:11:58.463Z"))
|
|
2770
|
-
.transform(v => v.toISOString()),
|
|
2771
|
-
type: RetrieveDatapointEvaluationsType$outboundSchema,
|
|
2772
|
-
value: z.string(),
|
|
2773
|
-
}).transform((v) => {
|
|
2774
|
-
return remap$(v, {
|
|
2775
|
-
evaluationType: "evaluation_type",
|
|
2776
|
-
humanReviewId: "human_review_id",
|
|
2777
|
-
reviewedById: "reviewed_by_id",
|
|
2778
|
-
reviewedAt: "reviewed_at",
|
|
2779
|
-
});
|
|
2780
|
-
});
|
|
2781
|
-
|
|
2782
|
-
export function retrieveDatapointEvaluations1ToJSON(
|
|
2783
|
-
retrieveDatapointEvaluations1: RetrieveDatapointEvaluations1,
|
|
2784
|
-
): string {
|
|
2785
|
-
return JSON.stringify(
|
|
2786
|
-
RetrieveDatapointEvaluations1$outboundSchema.parse(
|
|
2787
|
-
retrieveDatapointEvaluations1,
|
|
2788
|
-
),
|
|
2789
|
-
);
|
|
2790
|
-
}
|
|
2791
|
-
export function retrieveDatapointEvaluations1FromJSON(
|
|
2792
|
-
jsonString: string,
|
|
2793
|
-
): SafeParseResult<RetrieveDatapointEvaluations1, SDKValidationError> {
|
|
2794
|
-
return safeParse(
|
|
2795
|
-
jsonString,
|
|
2796
|
-
(x) => RetrieveDatapointEvaluations1$inboundSchema.parse(JSON.parse(x)),
|
|
2797
|
-
`Failed to parse 'RetrieveDatapointEvaluations1' from JSON`,
|
|
2798
|
-
);
|
|
2799
|
-
}
|
|
2800
|
-
|
|
2801
|
-
/** @internal */
|
|
2802
|
-
export const RetrieveDatapointEvaluations$inboundSchema: z.ZodType<
|
|
2803
|
-
RetrieveDatapointEvaluations,
|
|
2804
|
-
z.ZodTypeDef,
|
|
2805
|
-
unknown
|
|
2806
|
-
> = z.union([
|
|
2807
|
-
z.lazy(() => RetrieveDatapointEvaluations1$inboundSchema),
|
|
2808
|
-
z.lazy(() => RetrieveDatapointEvaluations2$inboundSchema),
|
|
2809
|
-
z.lazy(() => RetrieveDatapointEvaluations3$inboundSchema),
|
|
2810
|
-
]);
|
|
2811
|
-
/** @internal */
|
|
2812
|
-
export type RetrieveDatapointEvaluations$Outbound =
|
|
2813
|
-
| RetrieveDatapointEvaluations1$Outbound
|
|
2814
|
-
| RetrieveDatapointEvaluations2$Outbound
|
|
2815
|
-
| RetrieveDatapointEvaluations3$Outbound;
|
|
2816
|
-
|
|
2817
|
-
/** @internal */
|
|
2818
|
-
export const RetrieveDatapointEvaluations$outboundSchema: z.ZodType<
|
|
2819
|
-
RetrieveDatapointEvaluations$Outbound,
|
|
2820
|
-
z.ZodTypeDef,
|
|
2821
|
-
RetrieveDatapointEvaluations
|
|
2822
|
-
> = z.union([
|
|
2823
|
-
z.lazy(() => RetrieveDatapointEvaluations1$outboundSchema),
|
|
2824
|
-
z.lazy(() => RetrieveDatapointEvaluations2$outboundSchema),
|
|
2825
|
-
z.lazy(() => RetrieveDatapointEvaluations3$outboundSchema),
|
|
2826
|
-
]);
|
|
2827
|
-
|
|
2828
|
-
export function retrieveDatapointEvaluationsToJSON(
|
|
2829
|
-
retrieveDatapointEvaluations: RetrieveDatapointEvaluations,
|
|
2830
|
-
): string {
|
|
2831
|
-
return JSON.stringify(
|
|
2832
|
-
RetrieveDatapointEvaluations$outboundSchema.parse(
|
|
2833
|
-
retrieveDatapointEvaluations,
|
|
2834
|
-
),
|
|
2835
|
-
);
|
|
2836
|
-
}
|
|
2837
|
-
export function retrieveDatapointEvaluationsFromJSON(
|
|
2838
|
-
jsonString: string,
|
|
2839
|
-
): SafeParseResult<RetrieveDatapointEvaluations, SDKValidationError> {
|
|
2840
|
-
return safeParse(
|
|
2841
|
-
jsonString,
|
|
2842
|
-
(x) => RetrieveDatapointEvaluations$inboundSchema.parse(JSON.parse(x)),
|
|
2843
|
-
`Failed to parse 'RetrieveDatapointEvaluations' from JSON`,
|
|
2844
|
-
);
|
|
2845
|
-
}
|
|
2846
|
-
|
|
2847
|
-
/** @internal */
|
|
2848
|
-
export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
2849
|
-
RetrieveDatapointResponseBody,
|
|
2850
|
-
z.ZodTypeDef,
|
|
2851
|
-
unknown
|
|
2852
|
-
> = z.object({
|
|
2853
|
-
_id: z.string(),
|
|
2854
|
-
workspace_id: z.string(),
|
|
2855
|
-
inputs: z.record(z.any()).optional(),
|
|
2856
|
-
messages: z.array(
|
|
2857
|
-
z.union([
|
|
2858
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$inboundSchema),
|
|
2859
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
|
|
2860
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$inboundSchema),
|
|
2861
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$inboundSchema),
|
|
2862
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$inboundSchema),
|
|
2863
|
-
]),
|
|
2864
|
-
).optional(),
|
|
2865
|
-
expected_output: z.string().optional(),
|
|
2866
|
-
evaluations: z.array(
|
|
2867
|
-
z.union([
|
|
2868
|
-
z.lazy(() => RetrieveDatapointEvaluations1$inboundSchema),
|
|
2869
|
-
z.lazy(() => RetrieveDatapointEvaluations2$inboundSchema),
|
|
2870
|
-
z.lazy(() => RetrieveDatapointEvaluations3$inboundSchema),
|
|
2871
|
-
]),
|
|
2872
|
-
).optional(),
|
|
2873
|
-
dataset_id: z.string(),
|
|
2874
|
-
snapshot_version: z.string().optional(),
|
|
2875
|
-
created_by_id: z.string().optional(),
|
|
2876
|
-
updated_by_id: z.string().optional(),
|
|
2877
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2878
|
-
.optional(),
|
|
2879
|
-
updated: z.string().datetime({ offset: true }).default(
|
|
2880
|
-
"2025-11-22T21:11:48.435Z",
|
|
2881
|
-
).transform(v => new Date(v)),
|
|
2882
|
-
}).transform((v) => {
|
|
2883
|
-
return remap$(v, {
|
|
2884
|
-
"_id": "id",
|
|
2885
|
-
"workspace_id": "workspaceId",
|
|
2886
|
-
"expected_output": "expectedOutput",
|
|
2887
|
-
"dataset_id": "datasetId",
|
|
2888
|
-
"snapshot_version": "snapshotVersion",
|
|
2889
|
-
"created_by_id": "createdById",
|
|
2890
|
-
"updated_by_id": "updatedById",
|
|
2891
|
-
});
|
|
2892
|
-
});
|
|
2893
|
-
/** @internal */
|
|
2894
|
-
export type RetrieveDatapointResponseBody$Outbound = {
|
|
2895
|
-
_id: string;
|
|
2896
|
-
workspace_id: string;
|
|
2897
|
-
inputs?: { [k: string]: any } | undefined;
|
|
2898
|
-
messages?:
|
|
2899
|
-
| Array<
|
|
2900
|
-
| RetrieveDatapointMessagesToolMessage$Outbound
|
|
2901
|
-
| RetrieveDatapointMessagesDeveloperMessage$Outbound
|
|
2902
|
-
| RetrieveDatapointMessagesSystemMessage$Outbound
|
|
2903
|
-
| RetrieveDatapointMessagesUserMessage$Outbound
|
|
2904
|
-
| RetrieveDatapointMessagesAssistantMessage$Outbound
|
|
2905
|
-
>
|
|
2906
|
-
| undefined;
|
|
2907
|
-
expected_output?: string | undefined;
|
|
2908
|
-
evaluations?:
|
|
2909
|
-
| Array<
|
|
2910
|
-
| RetrieveDatapointEvaluations1$Outbound
|
|
2911
|
-
| RetrieveDatapointEvaluations2$Outbound
|
|
2912
|
-
| RetrieveDatapointEvaluations3$Outbound
|
|
2913
|
-
>
|
|
2914
|
-
| undefined;
|
|
2915
|
-
dataset_id: string;
|
|
2916
|
-
snapshot_version?: string | undefined;
|
|
2917
|
-
created_by_id?: string | undefined;
|
|
2918
|
-
updated_by_id?: string | undefined;
|
|
2919
|
-
created?: string | undefined;
|
|
2920
|
-
updated: string;
|
|
2921
|
-
};
|
|
2922
|
-
|
|
2923
|
-
/** @internal */
|
|
2924
|
-
export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
2925
|
-
RetrieveDatapointResponseBody$Outbound,
|
|
2926
|
-
z.ZodTypeDef,
|
|
2927
|
-
RetrieveDatapointResponseBody
|
|
2928
|
-
> = z.object({
|
|
2929
|
-
id: z.string(),
|
|
2930
|
-
workspaceId: z.string(),
|
|
2931
|
-
inputs: z.record(z.any()).optional(),
|
|
2932
|
-
messages: z.array(
|
|
2933
|
-
z.union([
|
|
2934
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$outboundSchema),
|
|
2935
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
|
|
2936
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$outboundSchema),
|
|
2937
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$outboundSchema),
|
|
2938
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$outboundSchema),
|
|
2939
|
-
]),
|
|
2940
|
-
).optional(),
|
|
2941
|
-
expectedOutput: z.string().optional(),
|
|
2942
|
-
evaluations: z.array(
|
|
2943
|
-
z.union([
|
|
2944
|
-
z.lazy(() => RetrieveDatapointEvaluations1$outboundSchema),
|
|
2945
|
-
z.lazy(() => RetrieveDatapointEvaluations2$outboundSchema),
|
|
2946
|
-
z.lazy(() => RetrieveDatapointEvaluations3$outboundSchema),
|
|
2947
|
-
]),
|
|
2948
|
-
).optional(),
|
|
2949
|
-
datasetId: z.string(),
|
|
2950
|
-
snapshotVersion: z.string().optional(),
|
|
2951
|
-
createdById: z.string().optional(),
|
|
2952
|
-
updatedById: z.string().optional(),
|
|
2953
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2954
|
-
updated: z.date().default(() => new Date("2025-11-22T21:11:48.435Z"))
|
|
2955
|
-
.transform(v => v.toISOString()),
|
|
2956
|
-
}).transform((v) => {
|
|
2957
|
-
return remap$(v, {
|
|
2958
|
-
id: "_id",
|
|
2959
|
-
workspaceId: "workspace_id",
|
|
2960
|
-
expectedOutput: "expected_output",
|
|
2961
|
-
datasetId: "dataset_id",
|
|
2962
|
-
snapshotVersion: "snapshot_version",
|
|
2963
|
-
createdById: "created_by_id",
|
|
2964
|
-
updatedById: "updated_by_id",
|
|
2965
|
-
});
|
|
2966
|
-
});
|
|
2967
|
-
|
|
2968
|
-
export function retrieveDatapointResponseBodyToJSON(
|
|
2969
|
-
retrieveDatapointResponseBody: RetrieveDatapointResponseBody,
|
|
2970
|
-
): string {
|
|
2971
|
-
return JSON.stringify(
|
|
2972
|
-
RetrieveDatapointResponseBody$outboundSchema.parse(
|
|
2973
|
-
retrieveDatapointResponseBody,
|
|
2974
|
-
),
|
|
2975
|
-
);
|
|
2976
|
-
}
|
|
2977
|
-
export function retrieveDatapointResponseBodyFromJSON(
|
|
2978
|
-
jsonString: string,
|
|
2979
|
-
): SafeParseResult<RetrieveDatapointResponseBody, SDKValidationError> {
|
|
2980
|
-
return safeParse(
|
|
2981
|
-
jsonString,
|
|
2982
|
-
(x) => RetrieveDatapointResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
2983
|
-
`Failed to parse 'RetrieveDatapointResponseBody' from JSON`,
|
|
2984
|
-
);
|
|
2985
|
-
}
|