@orq-ai/node 4.1.4 → 4.2.0-rc.10
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/README.md +18 -0
- package/bin/mcp-server.js +835 -380
- package/bin/mcp-server.js.map +61 -58
- package/examples/package-lock.json +4 -7
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- 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/components/conversationresponse.js +2 -2
- package/models/components/invokedeploymentrequest.d.ts +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.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/deploymentgetconfig.d.ts +1 -1
- package/models/operations/deploymentstream.d.ts +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.js +28 -28
- 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/retrieveconversation.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/updatecontact.js +2 -2
- package/models/operations/updateconversation.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 +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/conversationresponse.ts +2 -2
- package/src/models/components/invokedeploymentrequest.ts +1 -1
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.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/deploymentgetconfig.ts +1 -1
- package/src/models/operations/deploymentstream.ts +1 -1
- 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/generateconversationname.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +28 -28
- 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/retrieveconversation.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/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.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/_speakeasy/.github/action-inputs-config.json +0 -53
- package/_speakeasy/.github/action-security-config.json +0 -88
- 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 -3552
- 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 -170
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -186
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
- 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 -170
- 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/conversationsCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/conversationsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/conversationsGenerateName.ts +0 -194
- package/packages/orq-rc/src/funcs/conversationsList.ts +0 -181
- package/packages/orq-rc/src/funcs/conversationsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/conversationsUpdate.ts +0 -184
- 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/evalsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -190
- 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 -183
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
- 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/routerChatCompletions.ts +0 -172
- package/packages/orq-rc/src/funcs/routerImagesGenerate.ts +0 -160
- 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/toolsGetV2ToolsToolIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
- 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 -497
- 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 -121
- package/packages/orq-rc/src/mcp-server/resources.ts +0 -176
- package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
- package/packages/orq-rc/src/mcp-server/server.ts +0 -267
- package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -40
- 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/conversationsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/conversationsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/conversationsGenerateName.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/conversationsList.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/conversationsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/conversationsUpdate.ts +0 -40
- 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/evalsInvoke.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -39
- package/packages/orq-rc/src/mcp-server/tools/evaluatorsGetV2EvaluatorsIdVersionsVersionId.ts +0 -40
- 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/routerChatCompletions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/routerImagesGenerate.ts +0 -37
- 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/toolsGetV2ToolsToolIdVersions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -39
- 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 -133
- package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -173
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -309
- package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -125
- package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -150
- package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -125
- package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -801
- package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -305
- package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -185
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -822
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -1399
- package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
- package/packages/orq-rc/src/models/components/conversationresponse.ts +0 -194
- package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -340
- package/packages/orq-rc/src/models/components/datapart.ts +0 -58
- package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -112
- package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -125
- package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -105
- package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -113
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
- package/packages/orq-rc/src/models/components/filepart.ts +0 -218
- package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
- package/packages/orq-rc/src/models/components/index.ts +0 -55
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -5271
- package/packages/orq-rc/src/models/components/partdelta.ts +0 -80
- package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -120
- package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -216
- package/packages/orq-rc/src/models/components/publiccontact.ts +0 -99
- package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -90
- package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
- package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
- package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -526
- package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -118
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -124
- package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -148
- package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -27
- package/packages/orq-rc/src/models/components/security.ts +0 -56
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
- package/packages/orq-rc/src/models/components/textpart.ts +0 -54
- package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
- package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -108
- package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -83
- package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -121
- package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -392
- package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -360
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -336
- package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -123
- package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
- package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -130
- package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -141
- package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -132
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/deleteconversation.ts +0 -67
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/generateconversationname.ts +0 -132
- 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/getv2evaluatorsidversions.ts +0 -67
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversionsversionid.ts +0 -69
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -67
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -69
- 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 -35
- package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -128
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/retrieveconversation.ts +0 -67
- 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/updateconversation.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8610
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -770
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -8948
- 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/createconversation.ts +0 -314
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -4044
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -662
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -5397
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
- package/packages/orq-rc/src/models/operations/createimage.ts +0 -966
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -241
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -245
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5320
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -3791
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
- 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/deleteconversation.ts +0 -63
- 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 -3596
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -7042
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1136
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2005
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -7134
- 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/generateconversationname.ts +0 -319
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -280
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -305
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -1991
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2214
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -4268
- 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 -1875
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1892
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -274
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversionsversionid.ts +0 -193
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -276
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -194
- package/packages/orq-rc/src/models/operations/index.ts +0 -106
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -957
- package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1878
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -3811
- 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 -420
- package/packages/orq-rc/src/models/operations/listconversations.ts +0 -151
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -2486
- 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 -1048
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -1989
- package/packages/orq-rc/src/models/operations/parse.ts +0 -945
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3956
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
- package/packages/orq-rc/src/models/operations/retrieveconversation.ts +0 -262
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2334
- 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 -183
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -192
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2262
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -6502
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -838
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -6833
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -9054
- 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/updateconversation.ts +0 -377
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -4058
- 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 -5776
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -250
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -254
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -375
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5618
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4114
- package/packages/orq-rc/src/sdk/agents.ts +0 -196
- 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/conversations.ts +0 -125
- 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 -84
- package/packages/orq-rc/src/sdk/evaluators.ts +0 -45
- 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 -34
- package/packages/orq-rc/src/sdk/router.ts +0 -52
- package/packages/orq-rc/src/sdk/sdk.ts +0 -109
- package/packages/orq-rc/src/sdk/tools.ts +0 -135
- 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 -35
- package/packages/orq-rc/tsconfig.json +0 -40
|
@@ -1,2334 +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 * as components from "../components/index.js";
|
|
11
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
-
|
|
13
|
-
export type RetrieveDatapointRequest = {
|
|
14
|
-
/**
|
|
15
|
-
* The unique identifier of the dataset
|
|
16
|
-
*/
|
|
17
|
-
datasetId: string;
|
|
18
|
-
/**
|
|
19
|
-
* The unique identifier of the datapoint
|
|
20
|
-
*/
|
|
21
|
-
datapointId: string;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export type RetrieveDatapointContentDatasetsResponse2 =
|
|
25
|
-
components.TextContentPartSchema;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The contents of the tool message.
|
|
29
|
-
*/
|
|
30
|
-
export type RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent =
|
|
31
|
-
| string
|
|
32
|
-
| Array<components.TextContentPartSchema>;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
36
|
-
*/
|
|
37
|
-
export const RetrieveDatapointMessagesDatasetsType = {
|
|
38
|
-
Ephemeral: "ephemeral",
|
|
39
|
-
} as const;
|
|
40
|
-
/**
|
|
41
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
42
|
-
*/
|
|
43
|
-
export type RetrieveDatapointMessagesDatasetsType = ClosedEnum<
|
|
44
|
-
typeof RetrieveDatapointMessagesDatasetsType
|
|
45
|
-
>;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
*
|
|
52
|
-
* - `5m`: 5 minutes
|
|
53
|
-
* - `1h`: 1 hour
|
|
54
|
-
*
|
|
55
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
56
|
-
*/
|
|
57
|
-
export const RetrieveDatapointMessagesTtl = {
|
|
58
|
-
Fivem: "5m",
|
|
59
|
-
Oneh: "1h",
|
|
60
|
-
} as const;
|
|
61
|
-
/**
|
|
62
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
*
|
|
66
|
-
* - `5m`: 5 minutes
|
|
67
|
-
* - `1h`: 1 hour
|
|
68
|
-
*
|
|
69
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
70
|
-
*/
|
|
71
|
-
export type RetrieveDatapointMessagesTtl = ClosedEnum<
|
|
72
|
-
typeof RetrieveDatapointMessagesTtl
|
|
73
|
-
>;
|
|
74
|
-
|
|
75
|
-
export type RetrieveDatapointMessagesCacheControl = {
|
|
76
|
-
/**
|
|
77
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
78
|
-
*/
|
|
79
|
-
type: RetrieveDatapointMessagesDatasetsType;
|
|
80
|
-
/**
|
|
81
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
82
|
-
*
|
|
83
|
-
* @remarks
|
|
84
|
-
*
|
|
85
|
-
* - `5m`: 5 minutes
|
|
86
|
-
* - `1h`: 1 hour
|
|
87
|
-
*
|
|
88
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
89
|
-
*/
|
|
90
|
-
ttl?: RetrieveDatapointMessagesTtl | undefined;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export type RetrieveDatapointMessagesToolMessage = {
|
|
94
|
-
/**
|
|
95
|
-
* The role of the messages author, in this case tool.
|
|
96
|
-
*/
|
|
97
|
-
role: "tool";
|
|
98
|
-
/**
|
|
99
|
-
* The contents of the tool message.
|
|
100
|
-
*/
|
|
101
|
-
content: string | Array<components.TextContentPartSchema>;
|
|
102
|
-
/**
|
|
103
|
-
* Tool call that this message is responding to.
|
|
104
|
-
*/
|
|
105
|
-
toolCallId: string | null;
|
|
106
|
-
cacheControl?: RetrieveDatapointMessagesCacheControl | undefined;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export type RetrieveDatapointContentDatasets2 =
|
|
110
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
111
|
-
| components.RefusalPartSchema
|
|
112
|
-
| components.ReasoningPartSchema
|
|
113
|
-
| components.RedactedReasoningPartSchema;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
117
|
-
*/
|
|
118
|
-
export type RetrieveDatapointMessagesDatasetsResponse200Content =
|
|
119
|
-
| string
|
|
120
|
-
| Array<
|
|
121
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
122
|
-
| components.RefusalPartSchema
|
|
123
|
-
| components.ReasoningPartSchema
|
|
124
|
-
| components.RedactedReasoningPartSchema
|
|
125
|
-
>;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Data about a previous audio response from the model.
|
|
129
|
-
*/
|
|
130
|
-
export type RetrieveDatapointMessagesAudio = {
|
|
131
|
-
/**
|
|
132
|
-
* Unique identifier for a previous audio response from the model.
|
|
133
|
-
*/
|
|
134
|
-
id: string;
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
139
|
-
*/
|
|
140
|
-
export const RetrieveDatapointMessagesType = {
|
|
141
|
-
Function: "function",
|
|
142
|
-
} as const;
|
|
143
|
-
/**
|
|
144
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
145
|
-
*/
|
|
146
|
-
export type RetrieveDatapointMessagesType = ClosedEnum<
|
|
147
|
-
typeof RetrieveDatapointMessagesType
|
|
148
|
-
>;
|
|
149
|
-
|
|
150
|
-
export type RetrieveDatapointMessagesFunction = {
|
|
151
|
-
/**
|
|
152
|
-
* The name of the function to call.
|
|
153
|
-
*/
|
|
154
|
-
name?: string | undefined;
|
|
155
|
-
/**
|
|
156
|
-
* 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.
|
|
157
|
-
*/
|
|
158
|
-
arguments?: string | undefined;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
export type RetrieveDatapointMessagesToolCalls = {
|
|
162
|
-
/**
|
|
163
|
-
* The ID of the tool call.
|
|
164
|
-
*/
|
|
165
|
-
id: string;
|
|
166
|
-
/**
|
|
167
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
168
|
-
*/
|
|
169
|
-
type: RetrieveDatapointMessagesType;
|
|
170
|
-
function: RetrieveDatapointMessagesFunction;
|
|
171
|
-
/**
|
|
172
|
-
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
173
|
-
*/
|
|
174
|
-
thoughtSignature?: string | undefined;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
export type RetrieveDatapointMessagesAssistantMessage = {
|
|
178
|
-
/**
|
|
179
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
180
|
-
*/
|
|
181
|
-
content?:
|
|
182
|
-
| string
|
|
183
|
-
| Array<
|
|
184
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
185
|
-
| components.RefusalPartSchema
|
|
186
|
-
| components.ReasoningPartSchema
|
|
187
|
-
| components.RedactedReasoningPartSchema
|
|
188
|
-
>
|
|
189
|
-
| null
|
|
190
|
-
| undefined;
|
|
191
|
-
/**
|
|
192
|
-
* The refusal message by the assistant.
|
|
193
|
-
*/
|
|
194
|
-
refusal?: string | null | undefined;
|
|
195
|
-
/**
|
|
196
|
-
* The role of the messages author, in this case `assistant`.
|
|
197
|
-
*/
|
|
198
|
-
role: "assistant";
|
|
199
|
-
/**
|
|
200
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
201
|
-
*/
|
|
202
|
-
name?: string | undefined;
|
|
203
|
-
/**
|
|
204
|
-
* Data about a previous audio response from the model.
|
|
205
|
-
*/
|
|
206
|
-
audio?: RetrieveDatapointMessagesAudio | null | undefined;
|
|
207
|
-
/**
|
|
208
|
-
* The tool calls generated by the model, such as function calls.
|
|
209
|
-
*/
|
|
210
|
-
toolCalls?: Array<RetrieveDatapointMessagesToolCalls> | undefined;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
215
|
-
*/
|
|
216
|
-
export const RetrieveDatapoint2DatasetsType = {
|
|
217
|
-
Ephemeral: "ephemeral",
|
|
218
|
-
} as const;
|
|
219
|
-
/**
|
|
220
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
221
|
-
*/
|
|
222
|
-
export type RetrieveDatapoint2DatasetsType = ClosedEnum<
|
|
223
|
-
typeof RetrieveDatapoint2DatasetsType
|
|
224
|
-
>;
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
228
|
-
*
|
|
229
|
-
* @remarks
|
|
230
|
-
*
|
|
231
|
-
* - `5m`: 5 minutes
|
|
232
|
-
* - `1h`: 1 hour
|
|
233
|
-
*
|
|
234
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
235
|
-
*/
|
|
236
|
-
export const RetrieveDatapoint2Ttl = {
|
|
237
|
-
Fivem: "5m",
|
|
238
|
-
Oneh: "1h",
|
|
239
|
-
} as const;
|
|
240
|
-
/**
|
|
241
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
242
|
-
*
|
|
243
|
-
* @remarks
|
|
244
|
-
*
|
|
245
|
-
* - `5m`: 5 minutes
|
|
246
|
-
* - `1h`: 1 hour
|
|
247
|
-
*
|
|
248
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
249
|
-
*/
|
|
250
|
-
export type RetrieveDatapoint2Ttl = ClosedEnum<typeof RetrieveDatapoint2Ttl>;
|
|
251
|
-
|
|
252
|
-
export type RetrieveDatapoint2CacheControl = {
|
|
253
|
-
/**
|
|
254
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
255
|
-
*/
|
|
256
|
-
type: RetrieveDatapoint2DatasetsType;
|
|
257
|
-
/**
|
|
258
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
259
|
-
*
|
|
260
|
-
* @remarks
|
|
261
|
-
*
|
|
262
|
-
* - `5m`: 5 minutes
|
|
263
|
-
* - `1h`: 1 hour
|
|
264
|
-
*
|
|
265
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
266
|
-
*/
|
|
267
|
-
ttl?: RetrieveDatapoint2Ttl | undefined;
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
export type RetrieveDatapoint24 = {
|
|
271
|
-
/**
|
|
272
|
-
* The type of the content part. Always `file`.
|
|
273
|
-
*/
|
|
274
|
-
type: "file";
|
|
275
|
-
cacheControl?: RetrieveDatapoint2CacheControl | undefined;
|
|
276
|
-
/**
|
|
277
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
278
|
-
*/
|
|
279
|
-
file: components.FileContentPartSchema;
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
export type RetrieveDatapointContent2 =
|
|
283
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
284
|
-
| components.ImageContentPartSchema
|
|
285
|
-
| components.AudioContentPartSchema
|
|
286
|
-
| RetrieveDatapoint24;
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* The contents of the user message.
|
|
290
|
-
*/
|
|
291
|
-
export type RetrieveDatapointMessagesDatasetsResponseContent =
|
|
292
|
-
| string
|
|
293
|
-
| Array<
|
|
294
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
295
|
-
| components.ImageContentPartSchema
|
|
296
|
-
| components.AudioContentPartSchema
|
|
297
|
-
| RetrieveDatapoint24
|
|
298
|
-
>;
|
|
299
|
-
|
|
300
|
-
export type RetrieveDatapointMessagesUserMessage = {
|
|
301
|
-
/**
|
|
302
|
-
* The role of the messages author, in this case `user`.
|
|
303
|
-
*/
|
|
304
|
-
role: "user";
|
|
305
|
-
/**
|
|
306
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
307
|
-
*/
|
|
308
|
-
name?: string | undefined;
|
|
309
|
-
/**
|
|
310
|
-
* The contents of the user message.
|
|
311
|
-
*/
|
|
312
|
-
content:
|
|
313
|
-
| string
|
|
314
|
-
| Array<
|
|
315
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
316
|
-
| components.ImageContentPartSchema
|
|
317
|
-
| components.AudioContentPartSchema
|
|
318
|
-
| RetrieveDatapoint24
|
|
319
|
-
>;
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* The contents of the developer message.
|
|
324
|
-
*/
|
|
325
|
-
export type RetrieveDatapointMessagesDatasetsContent =
|
|
326
|
-
| string
|
|
327
|
-
| Array<components.TextContentPartSchema>;
|
|
328
|
-
|
|
329
|
-
export type RetrieveDatapointMessagesDeveloperMessage = {
|
|
330
|
-
/**
|
|
331
|
-
* The role of the messages author, in this case `developer`.
|
|
332
|
-
*/
|
|
333
|
-
role: "developer";
|
|
334
|
-
/**
|
|
335
|
-
* The contents of the developer message.
|
|
336
|
-
*/
|
|
337
|
-
content: string | Array<components.TextContentPartSchema>;
|
|
338
|
-
/**
|
|
339
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
340
|
-
*/
|
|
341
|
-
name?: string | undefined;
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* The contents of the system message.
|
|
346
|
-
*/
|
|
347
|
-
export type RetrieveDatapointMessagesContent =
|
|
348
|
-
| string
|
|
349
|
-
| Array<components.TextContentPartSchema>;
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
353
|
-
*/
|
|
354
|
-
export type RetrieveDatapointMessagesSystemMessage = {
|
|
355
|
-
/**
|
|
356
|
-
* The role of the messages author, in this case `system`.
|
|
357
|
-
*/
|
|
358
|
-
role: "system";
|
|
359
|
-
/**
|
|
360
|
-
* The contents of the system message.
|
|
361
|
-
*/
|
|
362
|
-
content: string | Array<components.TextContentPartSchema>;
|
|
363
|
-
/**
|
|
364
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
365
|
-
*/
|
|
366
|
-
name?: string | undefined;
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
export type RetrieveDatapointMessages =
|
|
370
|
-
| RetrieveDatapointMessagesSystemMessage
|
|
371
|
-
| RetrieveDatapointMessagesDeveloperMessage
|
|
372
|
-
| RetrieveDatapointMessagesUserMessage
|
|
373
|
-
| RetrieveDatapointMessagesAssistantMessage
|
|
374
|
-
| RetrieveDatapointMessagesToolMessage;
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* The type of evaluation
|
|
378
|
-
*/
|
|
379
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseEvaluationType = {
|
|
380
|
-
HumanReview: "human_review",
|
|
381
|
-
} as const;
|
|
382
|
-
/**
|
|
383
|
-
* The type of evaluation
|
|
384
|
-
*/
|
|
385
|
-
export type RetrieveDatapointEvaluationsDatasetsResponseEvaluationType =
|
|
386
|
-
ClosedEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseEvaluationType>;
|
|
387
|
-
|
|
388
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseSource = {
|
|
389
|
-
Orq: "orq",
|
|
390
|
-
External: "external",
|
|
391
|
-
} as const;
|
|
392
|
-
export type RetrieveDatapointEvaluationsDatasetsResponseSource = ClosedEnum<
|
|
393
|
-
typeof RetrieveDatapointEvaluationsDatasetsResponseSource
|
|
394
|
-
>;
|
|
395
|
-
|
|
396
|
-
export type RetrieveDatapointEvaluations3 = {
|
|
397
|
-
/**
|
|
398
|
-
* The unique identifier of the human evaluation
|
|
399
|
-
*/
|
|
400
|
-
id: string;
|
|
401
|
-
/**
|
|
402
|
-
* The type of evaluation
|
|
403
|
-
*/
|
|
404
|
-
evaluationType: RetrieveDatapointEvaluationsDatasetsResponseEvaluationType;
|
|
405
|
-
/**
|
|
406
|
-
* The unique identifier of the human review
|
|
407
|
-
*/
|
|
408
|
-
humanReviewId: string;
|
|
409
|
-
source?: RetrieveDatapointEvaluationsDatasetsResponseSource | undefined;
|
|
410
|
-
/**
|
|
411
|
-
* The unique identifier of the user who reviewed the item
|
|
412
|
-
*/
|
|
413
|
-
reviewedById: string;
|
|
414
|
-
/**
|
|
415
|
-
* The date and time the item was reviewed
|
|
416
|
-
*/
|
|
417
|
-
reviewedAt?: Date | undefined;
|
|
418
|
-
type: "string_array";
|
|
419
|
-
values: Array<string>;
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* The type of evaluation
|
|
424
|
-
*/
|
|
425
|
-
export const RetrieveDatapointEvaluationsDatasetsEvaluationType = {
|
|
426
|
-
HumanReview: "human_review",
|
|
427
|
-
} as const;
|
|
428
|
-
/**
|
|
429
|
-
* The type of evaluation
|
|
430
|
-
*/
|
|
431
|
-
export type RetrieveDatapointEvaluationsDatasetsEvaluationType = ClosedEnum<
|
|
432
|
-
typeof RetrieveDatapointEvaluationsDatasetsEvaluationType
|
|
433
|
-
>;
|
|
434
|
-
|
|
435
|
-
export const RetrieveDatapointEvaluationsDatasetsSource = {
|
|
436
|
-
Orq: "orq",
|
|
437
|
-
External: "external",
|
|
438
|
-
} as const;
|
|
439
|
-
export type RetrieveDatapointEvaluationsDatasetsSource = ClosedEnum<
|
|
440
|
-
typeof RetrieveDatapointEvaluationsDatasetsSource
|
|
441
|
-
>;
|
|
442
|
-
|
|
443
|
-
export type RetrieveDatapointEvaluations2 = {
|
|
444
|
-
/**
|
|
445
|
-
* The unique identifier of the human evaluation
|
|
446
|
-
*/
|
|
447
|
-
id: string;
|
|
448
|
-
/**
|
|
449
|
-
* The type of evaluation
|
|
450
|
-
*/
|
|
451
|
-
evaluationType: RetrieveDatapointEvaluationsDatasetsEvaluationType;
|
|
452
|
-
/**
|
|
453
|
-
* The unique identifier of the human review
|
|
454
|
-
*/
|
|
455
|
-
humanReviewId: string;
|
|
456
|
-
source?: RetrieveDatapointEvaluationsDatasetsSource | undefined;
|
|
457
|
-
/**
|
|
458
|
-
* The unique identifier of the user who reviewed the item
|
|
459
|
-
*/
|
|
460
|
-
reviewedById: string;
|
|
461
|
-
/**
|
|
462
|
-
* The date and time the item was reviewed
|
|
463
|
-
*/
|
|
464
|
-
reviewedAt?: Date | undefined;
|
|
465
|
-
type: "number";
|
|
466
|
-
value: number;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* The type of evaluation
|
|
471
|
-
*/
|
|
472
|
-
export const RetrieveDatapointEvaluationsEvaluationType = {
|
|
473
|
-
HumanReview: "human_review",
|
|
474
|
-
} as const;
|
|
475
|
-
/**
|
|
476
|
-
* The type of evaluation
|
|
477
|
-
*/
|
|
478
|
-
export type RetrieveDatapointEvaluationsEvaluationType = ClosedEnum<
|
|
479
|
-
typeof RetrieveDatapointEvaluationsEvaluationType
|
|
480
|
-
>;
|
|
481
|
-
|
|
482
|
-
export const RetrieveDatapointEvaluationsSource = {
|
|
483
|
-
Orq: "orq",
|
|
484
|
-
External: "external",
|
|
485
|
-
} as const;
|
|
486
|
-
export type RetrieveDatapointEvaluationsSource = ClosedEnum<
|
|
487
|
-
typeof RetrieveDatapointEvaluationsSource
|
|
488
|
-
>;
|
|
489
|
-
|
|
490
|
-
export type RetrieveDatapointEvaluations1 = {
|
|
491
|
-
/**
|
|
492
|
-
* The unique identifier of the human evaluation
|
|
493
|
-
*/
|
|
494
|
-
id: string;
|
|
495
|
-
/**
|
|
496
|
-
* The type of evaluation
|
|
497
|
-
*/
|
|
498
|
-
evaluationType: RetrieveDatapointEvaluationsEvaluationType;
|
|
499
|
-
/**
|
|
500
|
-
* The unique identifier of the human review
|
|
501
|
-
*/
|
|
502
|
-
humanReviewId: string;
|
|
503
|
-
source?: RetrieveDatapointEvaluationsSource | undefined;
|
|
504
|
-
/**
|
|
505
|
-
* The unique identifier of the user who reviewed the item
|
|
506
|
-
*/
|
|
507
|
-
reviewedById: string;
|
|
508
|
-
/**
|
|
509
|
-
* The date and time the item was reviewed
|
|
510
|
-
*/
|
|
511
|
-
reviewedAt?: Date | undefined;
|
|
512
|
-
type: "string";
|
|
513
|
-
value: string;
|
|
514
|
-
};
|
|
515
|
-
|
|
516
|
-
export type RetrieveDatapointEvaluations =
|
|
517
|
-
| RetrieveDatapointEvaluations1
|
|
518
|
-
| RetrieveDatapointEvaluations2
|
|
519
|
-
| RetrieveDatapointEvaluations3;
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Datapoint retrieved.
|
|
523
|
-
*/
|
|
524
|
-
export type RetrieveDatapointResponseBody = {
|
|
525
|
-
/**
|
|
526
|
-
* The unique identifier of the dataset item
|
|
527
|
-
*/
|
|
528
|
-
id: string;
|
|
529
|
-
/**
|
|
530
|
-
* The unique identifier of the workspace it belongs to
|
|
531
|
-
*/
|
|
532
|
-
workspaceId: string;
|
|
533
|
-
/**
|
|
534
|
-
* 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.
|
|
535
|
-
*/
|
|
536
|
-
inputs?: { [k: string]: any } | undefined;
|
|
537
|
-
/**
|
|
538
|
-
* A list of messages comprising the conversation so far
|
|
539
|
-
*/
|
|
540
|
-
messages?:
|
|
541
|
-
| Array<
|
|
542
|
-
| RetrieveDatapointMessagesSystemMessage
|
|
543
|
-
| RetrieveDatapointMessagesDeveloperMessage
|
|
544
|
-
| RetrieveDatapointMessagesUserMessage
|
|
545
|
-
| RetrieveDatapointMessagesAssistantMessage
|
|
546
|
-
| RetrieveDatapointMessagesToolMessage
|
|
547
|
-
>
|
|
548
|
-
| undefined;
|
|
549
|
-
expectedOutput?: string | undefined;
|
|
550
|
-
/**
|
|
551
|
-
* Evaluations associated with the datapoint
|
|
552
|
-
*/
|
|
553
|
-
evaluations?:
|
|
554
|
-
| Array<
|
|
555
|
-
| RetrieveDatapointEvaluations1
|
|
556
|
-
| RetrieveDatapointEvaluations2
|
|
557
|
-
| RetrieveDatapointEvaluations3
|
|
558
|
-
>
|
|
559
|
-
| undefined;
|
|
560
|
-
/**
|
|
561
|
-
* The unique identifier of the dataset
|
|
562
|
-
*/
|
|
563
|
-
datasetId: string;
|
|
564
|
-
/**
|
|
565
|
-
* The version of the dataset snapshot
|
|
566
|
-
*/
|
|
567
|
-
snapshotVersion?: string | undefined;
|
|
568
|
-
/**
|
|
569
|
-
* The unique identifier of the user who created the dataset
|
|
570
|
-
*/
|
|
571
|
-
createdById?: string | undefined;
|
|
572
|
-
/**
|
|
573
|
-
* The unique identifier of the user who last updated the dataset
|
|
574
|
-
*/
|
|
575
|
-
updatedById?: string | undefined;
|
|
576
|
-
/**
|
|
577
|
-
* The date and time the resource was created
|
|
578
|
-
*/
|
|
579
|
-
created?: Date | undefined;
|
|
580
|
-
/**
|
|
581
|
-
* The date and time the resource was last updated
|
|
582
|
-
*/
|
|
583
|
-
updated?: Date | undefined;
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
/** @internal */
|
|
587
|
-
export const RetrieveDatapointRequest$inboundSchema: z.ZodType<
|
|
588
|
-
RetrieveDatapointRequest,
|
|
589
|
-
z.ZodTypeDef,
|
|
590
|
-
unknown
|
|
591
|
-
> = z.object({
|
|
592
|
-
dataset_id: z.string(),
|
|
593
|
-
datapoint_id: z.string(),
|
|
594
|
-
}).transform((v) => {
|
|
595
|
-
return remap$(v, {
|
|
596
|
-
"dataset_id": "datasetId",
|
|
597
|
-
"datapoint_id": "datapointId",
|
|
598
|
-
});
|
|
599
|
-
});
|
|
600
|
-
/** @internal */
|
|
601
|
-
export type RetrieveDatapointRequest$Outbound = {
|
|
602
|
-
dataset_id: string;
|
|
603
|
-
datapoint_id: string;
|
|
604
|
-
};
|
|
605
|
-
|
|
606
|
-
/** @internal */
|
|
607
|
-
export const RetrieveDatapointRequest$outboundSchema: z.ZodType<
|
|
608
|
-
RetrieveDatapointRequest$Outbound,
|
|
609
|
-
z.ZodTypeDef,
|
|
610
|
-
RetrieveDatapointRequest
|
|
611
|
-
> = z.object({
|
|
612
|
-
datasetId: z.string(),
|
|
613
|
-
datapointId: z.string(),
|
|
614
|
-
}).transform((v) => {
|
|
615
|
-
return remap$(v, {
|
|
616
|
-
datasetId: "dataset_id",
|
|
617
|
-
datapointId: "datapoint_id",
|
|
618
|
-
});
|
|
619
|
-
});
|
|
620
|
-
|
|
621
|
-
export function retrieveDatapointRequestToJSON(
|
|
622
|
-
retrieveDatapointRequest: RetrieveDatapointRequest,
|
|
623
|
-
): string {
|
|
624
|
-
return JSON.stringify(
|
|
625
|
-
RetrieveDatapointRequest$outboundSchema.parse(retrieveDatapointRequest),
|
|
626
|
-
);
|
|
627
|
-
}
|
|
628
|
-
export function retrieveDatapointRequestFromJSON(
|
|
629
|
-
jsonString: string,
|
|
630
|
-
): SafeParseResult<RetrieveDatapointRequest, SDKValidationError> {
|
|
631
|
-
return safeParse(
|
|
632
|
-
jsonString,
|
|
633
|
-
(x) => RetrieveDatapointRequest$inboundSchema.parse(JSON.parse(x)),
|
|
634
|
-
`Failed to parse 'RetrieveDatapointRequest' from JSON`,
|
|
635
|
-
);
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/** @internal */
|
|
639
|
-
export const RetrieveDatapointContentDatasetsResponse2$inboundSchema: z.ZodType<
|
|
640
|
-
RetrieveDatapointContentDatasetsResponse2,
|
|
641
|
-
z.ZodTypeDef,
|
|
642
|
-
unknown
|
|
643
|
-
> = components.TextContentPartSchema$inboundSchema;
|
|
644
|
-
/** @internal */
|
|
645
|
-
export type RetrieveDatapointContentDatasetsResponse2$Outbound =
|
|
646
|
-
components.TextContentPartSchema$Outbound;
|
|
647
|
-
|
|
648
|
-
/** @internal */
|
|
649
|
-
export const RetrieveDatapointContentDatasetsResponse2$outboundSchema:
|
|
650
|
-
z.ZodType<
|
|
651
|
-
RetrieveDatapointContentDatasetsResponse2$Outbound,
|
|
652
|
-
z.ZodTypeDef,
|
|
653
|
-
RetrieveDatapointContentDatasetsResponse2
|
|
654
|
-
> = components.TextContentPartSchema$outboundSchema;
|
|
655
|
-
|
|
656
|
-
export function retrieveDatapointContentDatasetsResponse2ToJSON(
|
|
657
|
-
retrieveDatapointContentDatasetsResponse2:
|
|
658
|
-
RetrieveDatapointContentDatasetsResponse2,
|
|
659
|
-
): string {
|
|
660
|
-
return JSON.stringify(
|
|
661
|
-
RetrieveDatapointContentDatasetsResponse2$outboundSchema.parse(
|
|
662
|
-
retrieveDatapointContentDatasetsResponse2,
|
|
663
|
-
),
|
|
664
|
-
);
|
|
665
|
-
}
|
|
666
|
-
export function retrieveDatapointContentDatasetsResponse2FromJSON(
|
|
667
|
-
jsonString: string,
|
|
668
|
-
): SafeParseResult<
|
|
669
|
-
RetrieveDatapointContentDatasetsResponse2,
|
|
670
|
-
SDKValidationError
|
|
671
|
-
> {
|
|
672
|
-
return safeParse(
|
|
673
|
-
jsonString,
|
|
674
|
-
(x) =>
|
|
675
|
-
RetrieveDatapointContentDatasetsResponse2$inboundSchema.parse(
|
|
676
|
-
JSON.parse(x),
|
|
677
|
-
),
|
|
678
|
-
`Failed to parse 'RetrieveDatapointContentDatasetsResponse2' from JSON`,
|
|
679
|
-
);
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
/** @internal */
|
|
683
|
-
export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema:
|
|
684
|
-
z.ZodType<
|
|
685
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent,
|
|
686
|
-
z.ZodTypeDef,
|
|
687
|
-
unknown
|
|
688
|
-
> = z.union([
|
|
689
|
-
z.string(),
|
|
690
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
691
|
-
]);
|
|
692
|
-
/** @internal */
|
|
693
|
-
export type RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent$Outbound =
|
|
694
|
-
| string
|
|
695
|
-
| Array<components.TextContentPartSchema$Outbound>;
|
|
696
|
-
|
|
697
|
-
/** @internal */
|
|
698
|
-
export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent$outboundSchema:
|
|
699
|
-
z.ZodType<
|
|
700
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent$Outbound,
|
|
701
|
-
z.ZodTypeDef,
|
|
702
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent
|
|
703
|
-
> = z.union([
|
|
704
|
-
z.string(),
|
|
705
|
-
z.array(components.TextContentPartSchema$outboundSchema),
|
|
706
|
-
]);
|
|
707
|
-
|
|
708
|
-
export function retrieveDatapointMessagesDatasetsResponse200ApplicationJSONContentToJSON(
|
|
709
|
-
retrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent:
|
|
710
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent,
|
|
711
|
-
): string {
|
|
712
|
-
return JSON.stringify(
|
|
713
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent$outboundSchema
|
|
714
|
-
.parse(
|
|
715
|
-
retrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent,
|
|
716
|
-
),
|
|
717
|
-
);
|
|
718
|
-
}
|
|
719
|
-
export function retrieveDatapointMessagesDatasetsResponse200ApplicationJSONContentFromJSON(
|
|
720
|
-
jsonString: string,
|
|
721
|
-
): SafeParseResult<
|
|
722
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent,
|
|
723
|
-
SDKValidationError
|
|
724
|
-
> {
|
|
725
|
-
return safeParse(
|
|
726
|
-
jsonString,
|
|
727
|
-
(x) =>
|
|
728
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema
|
|
729
|
-
.parse(JSON.parse(x)),
|
|
730
|
-
`Failed to parse 'RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONContent' from JSON`,
|
|
731
|
-
);
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
/** @internal */
|
|
735
|
-
export const RetrieveDatapointMessagesDatasetsType$inboundSchema:
|
|
736
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsType> = z.nativeEnum(
|
|
737
|
-
RetrieveDatapointMessagesDatasetsType,
|
|
738
|
-
);
|
|
739
|
-
/** @internal */
|
|
740
|
-
export const RetrieveDatapointMessagesDatasetsType$outboundSchema:
|
|
741
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsType> =
|
|
742
|
-
RetrieveDatapointMessagesDatasetsType$inboundSchema;
|
|
743
|
-
|
|
744
|
-
/** @internal */
|
|
745
|
-
export const RetrieveDatapointMessagesTtl$inboundSchema: z.ZodNativeEnum<
|
|
746
|
-
typeof RetrieveDatapointMessagesTtl
|
|
747
|
-
> = z.nativeEnum(RetrieveDatapointMessagesTtl);
|
|
748
|
-
/** @internal */
|
|
749
|
-
export const RetrieveDatapointMessagesTtl$outboundSchema: z.ZodNativeEnum<
|
|
750
|
-
typeof RetrieveDatapointMessagesTtl
|
|
751
|
-
> = RetrieveDatapointMessagesTtl$inboundSchema;
|
|
752
|
-
|
|
753
|
-
/** @internal */
|
|
754
|
-
export const RetrieveDatapointMessagesCacheControl$inboundSchema: z.ZodType<
|
|
755
|
-
RetrieveDatapointMessagesCacheControl,
|
|
756
|
-
z.ZodTypeDef,
|
|
757
|
-
unknown
|
|
758
|
-
> = z.object({
|
|
759
|
-
type: RetrieveDatapointMessagesDatasetsType$inboundSchema,
|
|
760
|
-
ttl: RetrieveDatapointMessagesTtl$inboundSchema.default("5m"),
|
|
761
|
-
});
|
|
762
|
-
/** @internal */
|
|
763
|
-
export type RetrieveDatapointMessagesCacheControl$Outbound = {
|
|
764
|
-
type: string;
|
|
765
|
-
ttl: string;
|
|
766
|
-
};
|
|
767
|
-
|
|
768
|
-
/** @internal */
|
|
769
|
-
export const RetrieveDatapointMessagesCacheControl$outboundSchema: z.ZodType<
|
|
770
|
-
RetrieveDatapointMessagesCacheControl$Outbound,
|
|
771
|
-
z.ZodTypeDef,
|
|
772
|
-
RetrieveDatapointMessagesCacheControl
|
|
773
|
-
> = z.object({
|
|
774
|
-
type: RetrieveDatapointMessagesDatasetsType$outboundSchema,
|
|
775
|
-
ttl: RetrieveDatapointMessagesTtl$outboundSchema.default("5m"),
|
|
776
|
-
});
|
|
777
|
-
|
|
778
|
-
export function retrieveDatapointMessagesCacheControlToJSON(
|
|
779
|
-
retrieveDatapointMessagesCacheControl: RetrieveDatapointMessagesCacheControl,
|
|
780
|
-
): string {
|
|
781
|
-
return JSON.stringify(
|
|
782
|
-
RetrieveDatapointMessagesCacheControl$outboundSchema.parse(
|
|
783
|
-
retrieveDatapointMessagesCacheControl,
|
|
784
|
-
),
|
|
785
|
-
);
|
|
786
|
-
}
|
|
787
|
-
export function retrieveDatapointMessagesCacheControlFromJSON(
|
|
788
|
-
jsonString: string,
|
|
789
|
-
): SafeParseResult<RetrieveDatapointMessagesCacheControl, SDKValidationError> {
|
|
790
|
-
return safeParse(
|
|
791
|
-
jsonString,
|
|
792
|
-
(x) =>
|
|
793
|
-
RetrieveDatapointMessagesCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
794
|
-
`Failed to parse 'RetrieveDatapointMessagesCacheControl' from JSON`,
|
|
795
|
-
);
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
/** @internal */
|
|
799
|
-
export const RetrieveDatapointMessagesToolMessage$inboundSchema: z.ZodType<
|
|
800
|
-
RetrieveDatapointMessagesToolMessage,
|
|
801
|
-
z.ZodTypeDef,
|
|
802
|
-
unknown
|
|
803
|
-
> = z.object({
|
|
804
|
-
role: z.literal("tool"),
|
|
805
|
-
content: z.union([
|
|
806
|
-
z.string(),
|
|
807
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
808
|
-
]),
|
|
809
|
-
tool_call_id: z.nullable(z.string()),
|
|
810
|
-
cache_control: z.lazy(() =>
|
|
811
|
-
RetrieveDatapointMessagesCacheControl$inboundSchema
|
|
812
|
-
).optional(),
|
|
813
|
-
}).transform((v) => {
|
|
814
|
-
return remap$(v, {
|
|
815
|
-
"tool_call_id": "toolCallId",
|
|
816
|
-
"cache_control": "cacheControl",
|
|
817
|
-
});
|
|
818
|
-
});
|
|
819
|
-
/** @internal */
|
|
820
|
-
export type RetrieveDatapointMessagesToolMessage$Outbound = {
|
|
821
|
-
role: "tool";
|
|
822
|
-
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
823
|
-
tool_call_id: string | null;
|
|
824
|
-
cache_control?: RetrieveDatapointMessagesCacheControl$Outbound | undefined;
|
|
825
|
-
};
|
|
826
|
-
|
|
827
|
-
/** @internal */
|
|
828
|
-
export const RetrieveDatapointMessagesToolMessage$outboundSchema: z.ZodType<
|
|
829
|
-
RetrieveDatapointMessagesToolMessage$Outbound,
|
|
830
|
-
z.ZodTypeDef,
|
|
831
|
-
RetrieveDatapointMessagesToolMessage
|
|
832
|
-
> = z.object({
|
|
833
|
-
role: z.literal("tool"),
|
|
834
|
-
content: z.union([
|
|
835
|
-
z.string(),
|
|
836
|
-
z.array(components.TextContentPartSchema$outboundSchema),
|
|
837
|
-
]),
|
|
838
|
-
toolCallId: z.nullable(z.string()),
|
|
839
|
-
cacheControl: z.lazy(() =>
|
|
840
|
-
RetrieveDatapointMessagesCacheControl$outboundSchema
|
|
841
|
-
).optional(),
|
|
842
|
-
}).transform((v) => {
|
|
843
|
-
return remap$(v, {
|
|
844
|
-
toolCallId: "tool_call_id",
|
|
845
|
-
cacheControl: "cache_control",
|
|
846
|
-
});
|
|
847
|
-
});
|
|
848
|
-
|
|
849
|
-
export function retrieveDatapointMessagesToolMessageToJSON(
|
|
850
|
-
retrieveDatapointMessagesToolMessage: RetrieveDatapointMessagesToolMessage,
|
|
851
|
-
): string {
|
|
852
|
-
return JSON.stringify(
|
|
853
|
-
RetrieveDatapointMessagesToolMessage$outboundSchema.parse(
|
|
854
|
-
retrieveDatapointMessagesToolMessage,
|
|
855
|
-
),
|
|
856
|
-
);
|
|
857
|
-
}
|
|
858
|
-
export function retrieveDatapointMessagesToolMessageFromJSON(
|
|
859
|
-
jsonString: string,
|
|
860
|
-
): SafeParseResult<RetrieveDatapointMessagesToolMessage, SDKValidationError> {
|
|
861
|
-
return safeParse(
|
|
862
|
-
jsonString,
|
|
863
|
-
(x) =>
|
|
864
|
-
RetrieveDatapointMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
|
|
865
|
-
`Failed to parse 'RetrieveDatapointMessagesToolMessage' from JSON`,
|
|
866
|
-
);
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
/** @internal */
|
|
870
|
-
export const RetrieveDatapointContentDatasets2$inboundSchema: z.ZodType<
|
|
871
|
-
RetrieveDatapointContentDatasets2,
|
|
872
|
-
z.ZodTypeDef,
|
|
873
|
-
unknown
|
|
874
|
-
> = z.union([
|
|
875
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
876
|
-
z.object({ type: z.literal("text") }),
|
|
877
|
-
),
|
|
878
|
-
components.RefusalPartSchema$inboundSchema,
|
|
879
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
880
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
881
|
-
]);
|
|
882
|
-
/** @internal */
|
|
883
|
-
export type RetrieveDatapointContentDatasets2$Outbound =
|
|
884
|
-
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
885
|
-
| components.RefusalPartSchema$Outbound
|
|
886
|
-
| components.ReasoningPartSchema$Outbound
|
|
887
|
-
| components.RedactedReasoningPartSchema$Outbound;
|
|
888
|
-
|
|
889
|
-
/** @internal */
|
|
890
|
-
export const RetrieveDatapointContentDatasets2$outboundSchema: z.ZodType<
|
|
891
|
-
RetrieveDatapointContentDatasets2$Outbound,
|
|
892
|
-
z.ZodTypeDef,
|
|
893
|
-
RetrieveDatapointContentDatasets2
|
|
894
|
-
> = z.union([
|
|
895
|
-
components.TextContentPartSchema$outboundSchema.and(
|
|
896
|
-
z.object({ type: z.literal("text") }),
|
|
897
|
-
),
|
|
898
|
-
components.RefusalPartSchema$outboundSchema,
|
|
899
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
900
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
901
|
-
]);
|
|
902
|
-
|
|
903
|
-
export function retrieveDatapointContentDatasets2ToJSON(
|
|
904
|
-
retrieveDatapointContentDatasets2: RetrieveDatapointContentDatasets2,
|
|
905
|
-
): string {
|
|
906
|
-
return JSON.stringify(
|
|
907
|
-
RetrieveDatapointContentDatasets2$outboundSchema.parse(
|
|
908
|
-
retrieveDatapointContentDatasets2,
|
|
909
|
-
),
|
|
910
|
-
);
|
|
911
|
-
}
|
|
912
|
-
export function retrieveDatapointContentDatasets2FromJSON(
|
|
913
|
-
jsonString: string,
|
|
914
|
-
): SafeParseResult<RetrieveDatapointContentDatasets2, SDKValidationError> {
|
|
915
|
-
return safeParse(
|
|
916
|
-
jsonString,
|
|
917
|
-
(x) => RetrieveDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)),
|
|
918
|
-
`Failed to parse 'RetrieveDatapointContentDatasets2' from JSON`,
|
|
919
|
-
);
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
/** @internal */
|
|
923
|
-
export const RetrieveDatapointMessagesDatasetsResponse200Content$inboundSchema:
|
|
924
|
-
z.ZodType<
|
|
925
|
-
RetrieveDatapointMessagesDatasetsResponse200Content,
|
|
926
|
-
z.ZodTypeDef,
|
|
927
|
-
unknown
|
|
928
|
-
> = z.union([
|
|
929
|
-
z.string(),
|
|
930
|
-
z.array(
|
|
931
|
-
z.union([
|
|
932
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
933
|
-
z.object({ type: z.literal("text") }),
|
|
934
|
-
),
|
|
935
|
-
components.RefusalPartSchema$inboundSchema,
|
|
936
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
937
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
938
|
-
]),
|
|
939
|
-
),
|
|
940
|
-
]);
|
|
941
|
-
/** @internal */
|
|
942
|
-
export type RetrieveDatapointMessagesDatasetsResponse200Content$Outbound =
|
|
943
|
-
| string
|
|
944
|
-
| Array<
|
|
945
|
-
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
946
|
-
| components.RefusalPartSchema$Outbound
|
|
947
|
-
| components.ReasoningPartSchema$Outbound
|
|
948
|
-
| components.RedactedReasoningPartSchema$Outbound
|
|
949
|
-
>;
|
|
950
|
-
|
|
951
|
-
/** @internal */
|
|
952
|
-
export const RetrieveDatapointMessagesDatasetsResponse200Content$outboundSchema:
|
|
953
|
-
z.ZodType<
|
|
954
|
-
RetrieveDatapointMessagesDatasetsResponse200Content$Outbound,
|
|
955
|
-
z.ZodTypeDef,
|
|
956
|
-
RetrieveDatapointMessagesDatasetsResponse200Content
|
|
957
|
-
> = z.union([
|
|
958
|
-
z.string(),
|
|
959
|
-
z.array(
|
|
960
|
-
z.union([
|
|
961
|
-
components.TextContentPartSchema$outboundSchema.and(
|
|
962
|
-
z.object({ type: z.literal("text") }),
|
|
963
|
-
),
|
|
964
|
-
components.RefusalPartSchema$outboundSchema,
|
|
965
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
966
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
967
|
-
]),
|
|
968
|
-
),
|
|
969
|
-
]);
|
|
970
|
-
|
|
971
|
-
export function retrieveDatapointMessagesDatasetsResponse200ContentToJSON(
|
|
972
|
-
retrieveDatapointMessagesDatasetsResponse200Content:
|
|
973
|
-
RetrieveDatapointMessagesDatasetsResponse200Content,
|
|
974
|
-
): string {
|
|
975
|
-
return JSON.stringify(
|
|
976
|
-
RetrieveDatapointMessagesDatasetsResponse200Content$outboundSchema.parse(
|
|
977
|
-
retrieveDatapointMessagesDatasetsResponse200Content,
|
|
978
|
-
),
|
|
979
|
-
);
|
|
980
|
-
}
|
|
981
|
-
export function retrieveDatapointMessagesDatasetsResponse200ContentFromJSON(
|
|
982
|
-
jsonString: string,
|
|
983
|
-
): SafeParseResult<
|
|
984
|
-
RetrieveDatapointMessagesDatasetsResponse200Content,
|
|
985
|
-
SDKValidationError
|
|
986
|
-
> {
|
|
987
|
-
return safeParse(
|
|
988
|
-
jsonString,
|
|
989
|
-
(x) =>
|
|
990
|
-
RetrieveDatapointMessagesDatasetsResponse200Content$inboundSchema.parse(
|
|
991
|
-
JSON.parse(x),
|
|
992
|
-
),
|
|
993
|
-
`Failed to parse 'RetrieveDatapointMessagesDatasetsResponse200Content' from JSON`,
|
|
994
|
-
);
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
/** @internal */
|
|
998
|
-
export const RetrieveDatapointMessagesAudio$inboundSchema: z.ZodType<
|
|
999
|
-
RetrieveDatapointMessagesAudio,
|
|
1000
|
-
z.ZodTypeDef,
|
|
1001
|
-
unknown
|
|
1002
|
-
> = z.object({
|
|
1003
|
-
id: z.string(),
|
|
1004
|
-
});
|
|
1005
|
-
/** @internal */
|
|
1006
|
-
export type RetrieveDatapointMessagesAudio$Outbound = {
|
|
1007
|
-
id: string;
|
|
1008
|
-
};
|
|
1009
|
-
|
|
1010
|
-
/** @internal */
|
|
1011
|
-
export const RetrieveDatapointMessagesAudio$outboundSchema: z.ZodType<
|
|
1012
|
-
RetrieveDatapointMessagesAudio$Outbound,
|
|
1013
|
-
z.ZodTypeDef,
|
|
1014
|
-
RetrieveDatapointMessagesAudio
|
|
1015
|
-
> = z.object({
|
|
1016
|
-
id: z.string(),
|
|
1017
|
-
});
|
|
1018
|
-
|
|
1019
|
-
export function retrieveDatapointMessagesAudioToJSON(
|
|
1020
|
-
retrieveDatapointMessagesAudio: RetrieveDatapointMessagesAudio,
|
|
1021
|
-
): string {
|
|
1022
|
-
return JSON.stringify(
|
|
1023
|
-
RetrieveDatapointMessagesAudio$outboundSchema.parse(
|
|
1024
|
-
retrieveDatapointMessagesAudio,
|
|
1025
|
-
),
|
|
1026
|
-
);
|
|
1027
|
-
}
|
|
1028
|
-
export function retrieveDatapointMessagesAudioFromJSON(
|
|
1029
|
-
jsonString: string,
|
|
1030
|
-
): SafeParseResult<RetrieveDatapointMessagesAudio, SDKValidationError> {
|
|
1031
|
-
return safeParse(
|
|
1032
|
-
jsonString,
|
|
1033
|
-
(x) => RetrieveDatapointMessagesAudio$inboundSchema.parse(JSON.parse(x)),
|
|
1034
|
-
`Failed to parse 'RetrieveDatapointMessagesAudio' from JSON`,
|
|
1035
|
-
);
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
/** @internal */
|
|
1039
|
-
export const RetrieveDatapointMessagesType$inboundSchema: z.ZodNativeEnum<
|
|
1040
|
-
typeof RetrieveDatapointMessagesType
|
|
1041
|
-
> = z.nativeEnum(RetrieveDatapointMessagesType);
|
|
1042
|
-
/** @internal */
|
|
1043
|
-
export const RetrieveDatapointMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
1044
|
-
typeof RetrieveDatapointMessagesType
|
|
1045
|
-
> = RetrieveDatapointMessagesType$inboundSchema;
|
|
1046
|
-
|
|
1047
|
-
/** @internal */
|
|
1048
|
-
export const RetrieveDatapointMessagesFunction$inboundSchema: z.ZodType<
|
|
1049
|
-
RetrieveDatapointMessagesFunction,
|
|
1050
|
-
z.ZodTypeDef,
|
|
1051
|
-
unknown
|
|
1052
|
-
> = z.object({
|
|
1053
|
-
name: z.string().optional(),
|
|
1054
|
-
arguments: z.string().optional(),
|
|
1055
|
-
});
|
|
1056
|
-
/** @internal */
|
|
1057
|
-
export type RetrieveDatapointMessagesFunction$Outbound = {
|
|
1058
|
-
name?: string | undefined;
|
|
1059
|
-
arguments?: string | undefined;
|
|
1060
|
-
};
|
|
1061
|
-
|
|
1062
|
-
/** @internal */
|
|
1063
|
-
export const RetrieveDatapointMessagesFunction$outboundSchema: z.ZodType<
|
|
1064
|
-
RetrieveDatapointMessagesFunction$Outbound,
|
|
1065
|
-
z.ZodTypeDef,
|
|
1066
|
-
RetrieveDatapointMessagesFunction
|
|
1067
|
-
> = z.object({
|
|
1068
|
-
name: z.string().optional(),
|
|
1069
|
-
arguments: z.string().optional(),
|
|
1070
|
-
});
|
|
1071
|
-
|
|
1072
|
-
export function retrieveDatapointMessagesFunctionToJSON(
|
|
1073
|
-
retrieveDatapointMessagesFunction: RetrieveDatapointMessagesFunction,
|
|
1074
|
-
): string {
|
|
1075
|
-
return JSON.stringify(
|
|
1076
|
-
RetrieveDatapointMessagesFunction$outboundSchema.parse(
|
|
1077
|
-
retrieveDatapointMessagesFunction,
|
|
1078
|
-
),
|
|
1079
|
-
);
|
|
1080
|
-
}
|
|
1081
|
-
export function retrieveDatapointMessagesFunctionFromJSON(
|
|
1082
|
-
jsonString: string,
|
|
1083
|
-
): SafeParseResult<RetrieveDatapointMessagesFunction, SDKValidationError> {
|
|
1084
|
-
return safeParse(
|
|
1085
|
-
jsonString,
|
|
1086
|
-
(x) => RetrieveDatapointMessagesFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1087
|
-
`Failed to parse 'RetrieveDatapointMessagesFunction' from JSON`,
|
|
1088
|
-
);
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
/** @internal */
|
|
1092
|
-
export const RetrieveDatapointMessagesToolCalls$inboundSchema: z.ZodType<
|
|
1093
|
-
RetrieveDatapointMessagesToolCalls,
|
|
1094
|
-
z.ZodTypeDef,
|
|
1095
|
-
unknown
|
|
1096
|
-
> = z.object({
|
|
1097
|
-
id: z.string(),
|
|
1098
|
-
type: RetrieveDatapointMessagesType$inboundSchema,
|
|
1099
|
-
function: z.lazy(() => RetrieveDatapointMessagesFunction$inboundSchema),
|
|
1100
|
-
thought_signature: z.string().optional(),
|
|
1101
|
-
}).transform((v) => {
|
|
1102
|
-
return remap$(v, {
|
|
1103
|
-
"thought_signature": "thoughtSignature",
|
|
1104
|
-
});
|
|
1105
|
-
});
|
|
1106
|
-
/** @internal */
|
|
1107
|
-
export type RetrieveDatapointMessagesToolCalls$Outbound = {
|
|
1108
|
-
id: string;
|
|
1109
|
-
type: string;
|
|
1110
|
-
function: RetrieveDatapointMessagesFunction$Outbound;
|
|
1111
|
-
thought_signature?: string | undefined;
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
|
-
/** @internal */
|
|
1115
|
-
export const RetrieveDatapointMessagesToolCalls$outboundSchema: z.ZodType<
|
|
1116
|
-
RetrieveDatapointMessagesToolCalls$Outbound,
|
|
1117
|
-
z.ZodTypeDef,
|
|
1118
|
-
RetrieveDatapointMessagesToolCalls
|
|
1119
|
-
> = z.object({
|
|
1120
|
-
id: z.string(),
|
|
1121
|
-
type: RetrieveDatapointMessagesType$outboundSchema,
|
|
1122
|
-
function: z.lazy(() => RetrieveDatapointMessagesFunction$outboundSchema),
|
|
1123
|
-
thoughtSignature: z.string().optional(),
|
|
1124
|
-
}).transform((v) => {
|
|
1125
|
-
return remap$(v, {
|
|
1126
|
-
thoughtSignature: "thought_signature",
|
|
1127
|
-
});
|
|
1128
|
-
});
|
|
1129
|
-
|
|
1130
|
-
export function retrieveDatapointMessagesToolCallsToJSON(
|
|
1131
|
-
retrieveDatapointMessagesToolCalls: RetrieveDatapointMessagesToolCalls,
|
|
1132
|
-
): string {
|
|
1133
|
-
return JSON.stringify(
|
|
1134
|
-
RetrieveDatapointMessagesToolCalls$outboundSchema.parse(
|
|
1135
|
-
retrieveDatapointMessagesToolCalls,
|
|
1136
|
-
),
|
|
1137
|
-
);
|
|
1138
|
-
}
|
|
1139
|
-
export function retrieveDatapointMessagesToolCallsFromJSON(
|
|
1140
|
-
jsonString: string,
|
|
1141
|
-
): SafeParseResult<RetrieveDatapointMessagesToolCalls, SDKValidationError> {
|
|
1142
|
-
return safeParse(
|
|
1143
|
-
jsonString,
|
|
1144
|
-
(x) =>
|
|
1145
|
-
RetrieveDatapointMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1146
|
-
`Failed to parse 'RetrieveDatapointMessagesToolCalls' from JSON`,
|
|
1147
|
-
);
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
/** @internal */
|
|
1151
|
-
export const RetrieveDatapointMessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
1152
|
-
RetrieveDatapointMessagesAssistantMessage,
|
|
1153
|
-
z.ZodTypeDef,
|
|
1154
|
-
unknown
|
|
1155
|
-
> = z.object({
|
|
1156
|
-
content: z.nullable(
|
|
1157
|
-
z.union([
|
|
1158
|
-
z.string(),
|
|
1159
|
-
z.array(
|
|
1160
|
-
z.union([
|
|
1161
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
1162
|
-
z.object({ type: z.literal("text") }),
|
|
1163
|
-
),
|
|
1164
|
-
components.RefusalPartSchema$inboundSchema,
|
|
1165
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
1166
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1167
|
-
]),
|
|
1168
|
-
),
|
|
1169
|
-
]),
|
|
1170
|
-
).optional(),
|
|
1171
|
-
refusal: z.nullable(z.string()).optional(),
|
|
1172
|
-
role: z.literal("assistant"),
|
|
1173
|
-
name: z.string().optional(),
|
|
1174
|
-
audio: z.nullable(z.lazy(() => RetrieveDatapointMessagesAudio$inboundSchema))
|
|
1175
|
-
.optional(),
|
|
1176
|
-
tool_calls: z.array(
|
|
1177
|
-
z.lazy(() => RetrieveDatapointMessagesToolCalls$inboundSchema),
|
|
1178
|
-
).optional(),
|
|
1179
|
-
}).transform((v) => {
|
|
1180
|
-
return remap$(v, {
|
|
1181
|
-
"tool_calls": "toolCalls",
|
|
1182
|
-
});
|
|
1183
|
-
});
|
|
1184
|
-
/** @internal */
|
|
1185
|
-
export type RetrieveDatapointMessagesAssistantMessage$Outbound = {
|
|
1186
|
-
content?:
|
|
1187
|
-
| string
|
|
1188
|
-
| Array<
|
|
1189
|
-
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
1190
|
-
| components.RefusalPartSchema$Outbound
|
|
1191
|
-
| components.ReasoningPartSchema$Outbound
|
|
1192
|
-
| components.RedactedReasoningPartSchema$Outbound
|
|
1193
|
-
>
|
|
1194
|
-
| null
|
|
1195
|
-
| undefined;
|
|
1196
|
-
refusal?: string | null | undefined;
|
|
1197
|
-
role: "assistant";
|
|
1198
|
-
name?: string | undefined;
|
|
1199
|
-
audio?: RetrieveDatapointMessagesAudio$Outbound | null | undefined;
|
|
1200
|
-
tool_calls?: Array<RetrieveDatapointMessagesToolCalls$Outbound> | undefined;
|
|
1201
|
-
};
|
|
1202
|
-
|
|
1203
|
-
/** @internal */
|
|
1204
|
-
export const RetrieveDatapointMessagesAssistantMessage$outboundSchema:
|
|
1205
|
-
z.ZodType<
|
|
1206
|
-
RetrieveDatapointMessagesAssistantMessage$Outbound,
|
|
1207
|
-
z.ZodTypeDef,
|
|
1208
|
-
RetrieveDatapointMessagesAssistantMessage
|
|
1209
|
-
> = z.object({
|
|
1210
|
-
content: z.nullable(
|
|
1211
|
-
z.union([
|
|
1212
|
-
z.string(),
|
|
1213
|
-
z.array(
|
|
1214
|
-
z.union([
|
|
1215
|
-
components.TextContentPartSchema$outboundSchema.and(
|
|
1216
|
-
z.object({ type: z.literal("text") }),
|
|
1217
|
-
),
|
|
1218
|
-
components.RefusalPartSchema$outboundSchema,
|
|
1219
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
1220
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1221
|
-
]),
|
|
1222
|
-
),
|
|
1223
|
-
]),
|
|
1224
|
-
).optional(),
|
|
1225
|
-
refusal: z.nullable(z.string()).optional(),
|
|
1226
|
-
role: z.literal("assistant"),
|
|
1227
|
-
name: z.string().optional(),
|
|
1228
|
-
audio: z.nullable(
|
|
1229
|
-
z.lazy(() => RetrieveDatapointMessagesAudio$outboundSchema),
|
|
1230
|
-
).optional(),
|
|
1231
|
-
toolCalls: z.array(
|
|
1232
|
-
z.lazy(() => RetrieveDatapointMessagesToolCalls$outboundSchema),
|
|
1233
|
-
).optional(),
|
|
1234
|
-
}).transform((v) => {
|
|
1235
|
-
return remap$(v, {
|
|
1236
|
-
toolCalls: "tool_calls",
|
|
1237
|
-
});
|
|
1238
|
-
});
|
|
1239
|
-
|
|
1240
|
-
export function retrieveDatapointMessagesAssistantMessageToJSON(
|
|
1241
|
-
retrieveDatapointMessagesAssistantMessage:
|
|
1242
|
-
RetrieveDatapointMessagesAssistantMessage,
|
|
1243
|
-
): string {
|
|
1244
|
-
return JSON.stringify(
|
|
1245
|
-
RetrieveDatapointMessagesAssistantMessage$outboundSchema.parse(
|
|
1246
|
-
retrieveDatapointMessagesAssistantMessage,
|
|
1247
|
-
),
|
|
1248
|
-
);
|
|
1249
|
-
}
|
|
1250
|
-
export function retrieveDatapointMessagesAssistantMessageFromJSON(
|
|
1251
|
-
jsonString: string,
|
|
1252
|
-
): SafeParseResult<
|
|
1253
|
-
RetrieveDatapointMessagesAssistantMessage,
|
|
1254
|
-
SDKValidationError
|
|
1255
|
-
> {
|
|
1256
|
-
return safeParse(
|
|
1257
|
-
jsonString,
|
|
1258
|
-
(x) =>
|
|
1259
|
-
RetrieveDatapointMessagesAssistantMessage$inboundSchema.parse(
|
|
1260
|
-
JSON.parse(x),
|
|
1261
|
-
),
|
|
1262
|
-
`Failed to parse 'RetrieveDatapointMessagesAssistantMessage' from JSON`,
|
|
1263
|
-
);
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
/** @internal */
|
|
1267
|
-
export const RetrieveDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
1268
|
-
typeof RetrieveDatapoint2DatasetsType
|
|
1269
|
-
> = z.nativeEnum(RetrieveDatapoint2DatasetsType);
|
|
1270
|
-
/** @internal */
|
|
1271
|
-
export const RetrieveDatapoint2DatasetsType$outboundSchema: z.ZodNativeEnum<
|
|
1272
|
-
typeof RetrieveDatapoint2DatasetsType
|
|
1273
|
-
> = RetrieveDatapoint2DatasetsType$inboundSchema;
|
|
1274
|
-
|
|
1275
|
-
/** @internal */
|
|
1276
|
-
export const RetrieveDatapoint2Ttl$inboundSchema: z.ZodNativeEnum<
|
|
1277
|
-
typeof RetrieveDatapoint2Ttl
|
|
1278
|
-
> = z.nativeEnum(RetrieveDatapoint2Ttl);
|
|
1279
|
-
/** @internal */
|
|
1280
|
-
export const RetrieveDatapoint2Ttl$outboundSchema: z.ZodNativeEnum<
|
|
1281
|
-
typeof RetrieveDatapoint2Ttl
|
|
1282
|
-
> = RetrieveDatapoint2Ttl$inboundSchema;
|
|
1283
|
-
|
|
1284
|
-
/** @internal */
|
|
1285
|
-
export const RetrieveDatapoint2CacheControl$inboundSchema: z.ZodType<
|
|
1286
|
-
RetrieveDatapoint2CacheControl,
|
|
1287
|
-
z.ZodTypeDef,
|
|
1288
|
-
unknown
|
|
1289
|
-
> = z.object({
|
|
1290
|
-
type: RetrieveDatapoint2DatasetsType$inboundSchema,
|
|
1291
|
-
ttl: RetrieveDatapoint2Ttl$inboundSchema.default("5m"),
|
|
1292
|
-
});
|
|
1293
|
-
/** @internal */
|
|
1294
|
-
export type RetrieveDatapoint2CacheControl$Outbound = {
|
|
1295
|
-
type: string;
|
|
1296
|
-
ttl: string;
|
|
1297
|
-
};
|
|
1298
|
-
|
|
1299
|
-
/** @internal */
|
|
1300
|
-
export const RetrieveDatapoint2CacheControl$outboundSchema: z.ZodType<
|
|
1301
|
-
RetrieveDatapoint2CacheControl$Outbound,
|
|
1302
|
-
z.ZodTypeDef,
|
|
1303
|
-
RetrieveDatapoint2CacheControl
|
|
1304
|
-
> = z.object({
|
|
1305
|
-
type: RetrieveDatapoint2DatasetsType$outboundSchema,
|
|
1306
|
-
ttl: RetrieveDatapoint2Ttl$outboundSchema.default("5m"),
|
|
1307
|
-
});
|
|
1308
|
-
|
|
1309
|
-
export function retrieveDatapoint2CacheControlToJSON(
|
|
1310
|
-
retrieveDatapoint2CacheControl: RetrieveDatapoint2CacheControl,
|
|
1311
|
-
): string {
|
|
1312
|
-
return JSON.stringify(
|
|
1313
|
-
RetrieveDatapoint2CacheControl$outboundSchema.parse(
|
|
1314
|
-
retrieveDatapoint2CacheControl,
|
|
1315
|
-
),
|
|
1316
|
-
);
|
|
1317
|
-
}
|
|
1318
|
-
export function retrieveDatapoint2CacheControlFromJSON(
|
|
1319
|
-
jsonString: string,
|
|
1320
|
-
): SafeParseResult<RetrieveDatapoint2CacheControl, SDKValidationError> {
|
|
1321
|
-
return safeParse(
|
|
1322
|
-
jsonString,
|
|
1323
|
-
(x) => RetrieveDatapoint2CacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
1324
|
-
`Failed to parse 'RetrieveDatapoint2CacheControl' from JSON`,
|
|
1325
|
-
);
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
/** @internal */
|
|
1329
|
-
export const RetrieveDatapoint24$inboundSchema: z.ZodType<
|
|
1330
|
-
RetrieveDatapoint24,
|
|
1331
|
-
z.ZodTypeDef,
|
|
1332
|
-
unknown
|
|
1333
|
-
> = z.object({
|
|
1334
|
-
type: z.literal("file"),
|
|
1335
|
-
cache_control: z.lazy(() => RetrieveDatapoint2CacheControl$inboundSchema)
|
|
1336
|
-
.optional(),
|
|
1337
|
-
file: components.FileContentPartSchema$inboundSchema,
|
|
1338
|
-
}).transform((v) => {
|
|
1339
|
-
return remap$(v, {
|
|
1340
|
-
"cache_control": "cacheControl",
|
|
1341
|
-
});
|
|
1342
|
-
});
|
|
1343
|
-
/** @internal */
|
|
1344
|
-
export type RetrieveDatapoint24$Outbound = {
|
|
1345
|
-
type: "file";
|
|
1346
|
-
cache_control?: RetrieveDatapoint2CacheControl$Outbound | undefined;
|
|
1347
|
-
file: components.FileContentPartSchema$Outbound;
|
|
1348
|
-
};
|
|
1349
|
-
|
|
1350
|
-
/** @internal */
|
|
1351
|
-
export const RetrieveDatapoint24$outboundSchema: z.ZodType<
|
|
1352
|
-
RetrieveDatapoint24$Outbound,
|
|
1353
|
-
z.ZodTypeDef,
|
|
1354
|
-
RetrieveDatapoint24
|
|
1355
|
-
> = z.object({
|
|
1356
|
-
type: z.literal("file"),
|
|
1357
|
-
cacheControl: z.lazy(() => RetrieveDatapoint2CacheControl$outboundSchema)
|
|
1358
|
-
.optional(),
|
|
1359
|
-
file: components.FileContentPartSchema$outboundSchema,
|
|
1360
|
-
}).transform((v) => {
|
|
1361
|
-
return remap$(v, {
|
|
1362
|
-
cacheControl: "cache_control",
|
|
1363
|
-
});
|
|
1364
|
-
});
|
|
1365
|
-
|
|
1366
|
-
export function retrieveDatapoint24ToJSON(
|
|
1367
|
-
retrieveDatapoint24: RetrieveDatapoint24,
|
|
1368
|
-
): string {
|
|
1369
|
-
return JSON.stringify(
|
|
1370
|
-
RetrieveDatapoint24$outboundSchema.parse(retrieveDatapoint24),
|
|
1371
|
-
);
|
|
1372
|
-
}
|
|
1373
|
-
export function retrieveDatapoint24FromJSON(
|
|
1374
|
-
jsonString: string,
|
|
1375
|
-
): SafeParseResult<RetrieveDatapoint24, SDKValidationError> {
|
|
1376
|
-
return safeParse(
|
|
1377
|
-
jsonString,
|
|
1378
|
-
(x) => RetrieveDatapoint24$inboundSchema.parse(JSON.parse(x)),
|
|
1379
|
-
`Failed to parse 'RetrieveDatapoint24' from JSON`,
|
|
1380
|
-
);
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
/** @internal */
|
|
1384
|
-
export const RetrieveDatapointContent2$inboundSchema: z.ZodType<
|
|
1385
|
-
RetrieveDatapointContent2,
|
|
1386
|
-
z.ZodTypeDef,
|
|
1387
|
-
unknown
|
|
1388
|
-
> = z.union([
|
|
1389
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
1390
|
-
z.object({ type: z.literal("text") }),
|
|
1391
|
-
),
|
|
1392
|
-
components.ImageContentPartSchema$inboundSchema,
|
|
1393
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
1394
|
-
z.lazy(() => RetrieveDatapoint24$inboundSchema),
|
|
1395
|
-
]);
|
|
1396
|
-
/** @internal */
|
|
1397
|
-
export type RetrieveDatapointContent2$Outbound =
|
|
1398
|
-
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
1399
|
-
| components.ImageContentPartSchema$Outbound
|
|
1400
|
-
| components.AudioContentPartSchema$Outbound
|
|
1401
|
-
| RetrieveDatapoint24$Outbound;
|
|
1402
|
-
|
|
1403
|
-
/** @internal */
|
|
1404
|
-
export const RetrieveDatapointContent2$outboundSchema: z.ZodType<
|
|
1405
|
-
RetrieveDatapointContent2$Outbound,
|
|
1406
|
-
z.ZodTypeDef,
|
|
1407
|
-
RetrieveDatapointContent2
|
|
1408
|
-
> = z.union([
|
|
1409
|
-
components.TextContentPartSchema$outboundSchema.and(
|
|
1410
|
-
z.object({ type: z.literal("text") }),
|
|
1411
|
-
),
|
|
1412
|
-
components.ImageContentPartSchema$outboundSchema,
|
|
1413
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
1414
|
-
z.lazy(() => RetrieveDatapoint24$outboundSchema),
|
|
1415
|
-
]);
|
|
1416
|
-
|
|
1417
|
-
export function retrieveDatapointContent2ToJSON(
|
|
1418
|
-
retrieveDatapointContent2: RetrieveDatapointContent2,
|
|
1419
|
-
): string {
|
|
1420
|
-
return JSON.stringify(
|
|
1421
|
-
RetrieveDatapointContent2$outboundSchema.parse(retrieveDatapointContent2),
|
|
1422
|
-
);
|
|
1423
|
-
}
|
|
1424
|
-
export function retrieveDatapointContent2FromJSON(
|
|
1425
|
-
jsonString: string,
|
|
1426
|
-
): SafeParseResult<RetrieveDatapointContent2, SDKValidationError> {
|
|
1427
|
-
return safeParse(
|
|
1428
|
-
jsonString,
|
|
1429
|
-
(x) => RetrieveDatapointContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1430
|
-
`Failed to parse 'RetrieveDatapointContent2' from JSON`,
|
|
1431
|
-
);
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
/** @internal */
|
|
1435
|
-
export const RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema:
|
|
1436
|
-
z.ZodType<
|
|
1437
|
-
RetrieveDatapointMessagesDatasetsResponseContent,
|
|
1438
|
-
z.ZodTypeDef,
|
|
1439
|
-
unknown
|
|
1440
|
-
> = z.union([
|
|
1441
|
-
z.string(),
|
|
1442
|
-
z.array(
|
|
1443
|
-
z.union([
|
|
1444
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
1445
|
-
z.object({ type: z.literal("text") }),
|
|
1446
|
-
),
|
|
1447
|
-
components.ImageContentPartSchema$inboundSchema,
|
|
1448
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
1449
|
-
z.lazy(() => RetrieveDatapoint24$inboundSchema),
|
|
1450
|
-
]),
|
|
1451
|
-
),
|
|
1452
|
-
]);
|
|
1453
|
-
/** @internal */
|
|
1454
|
-
export type RetrieveDatapointMessagesDatasetsResponseContent$Outbound =
|
|
1455
|
-
| string
|
|
1456
|
-
| Array<
|
|
1457
|
-
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
1458
|
-
| components.ImageContentPartSchema$Outbound
|
|
1459
|
-
| components.AudioContentPartSchema$Outbound
|
|
1460
|
-
| RetrieveDatapoint24$Outbound
|
|
1461
|
-
>;
|
|
1462
|
-
|
|
1463
|
-
/** @internal */
|
|
1464
|
-
export const RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema:
|
|
1465
|
-
z.ZodType<
|
|
1466
|
-
RetrieveDatapointMessagesDatasetsResponseContent$Outbound,
|
|
1467
|
-
z.ZodTypeDef,
|
|
1468
|
-
RetrieveDatapointMessagesDatasetsResponseContent
|
|
1469
|
-
> = z.union([
|
|
1470
|
-
z.string(),
|
|
1471
|
-
z.array(
|
|
1472
|
-
z.union([
|
|
1473
|
-
components.TextContentPartSchema$outboundSchema.and(
|
|
1474
|
-
z.object({ type: z.literal("text") }),
|
|
1475
|
-
),
|
|
1476
|
-
components.ImageContentPartSchema$outboundSchema,
|
|
1477
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
1478
|
-
z.lazy(() => RetrieveDatapoint24$outboundSchema),
|
|
1479
|
-
]),
|
|
1480
|
-
),
|
|
1481
|
-
]);
|
|
1482
|
-
|
|
1483
|
-
export function retrieveDatapointMessagesDatasetsResponseContentToJSON(
|
|
1484
|
-
retrieveDatapointMessagesDatasetsResponseContent:
|
|
1485
|
-
RetrieveDatapointMessagesDatasetsResponseContent,
|
|
1486
|
-
): string {
|
|
1487
|
-
return JSON.stringify(
|
|
1488
|
-
RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema.parse(
|
|
1489
|
-
retrieveDatapointMessagesDatasetsResponseContent,
|
|
1490
|
-
),
|
|
1491
|
-
);
|
|
1492
|
-
}
|
|
1493
|
-
export function retrieveDatapointMessagesDatasetsResponseContentFromJSON(
|
|
1494
|
-
jsonString: string,
|
|
1495
|
-
): SafeParseResult<
|
|
1496
|
-
RetrieveDatapointMessagesDatasetsResponseContent,
|
|
1497
|
-
SDKValidationError
|
|
1498
|
-
> {
|
|
1499
|
-
return safeParse(
|
|
1500
|
-
jsonString,
|
|
1501
|
-
(x) =>
|
|
1502
|
-
RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema.parse(
|
|
1503
|
-
JSON.parse(x),
|
|
1504
|
-
),
|
|
1505
|
-
`Failed to parse 'RetrieveDatapointMessagesDatasetsResponseContent' from JSON`,
|
|
1506
|
-
);
|
|
1507
|
-
}
|
|
1508
|
-
|
|
1509
|
-
/** @internal */
|
|
1510
|
-
export const RetrieveDatapointMessagesUserMessage$inboundSchema: z.ZodType<
|
|
1511
|
-
RetrieveDatapointMessagesUserMessage,
|
|
1512
|
-
z.ZodTypeDef,
|
|
1513
|
-
unknown
|
|
1514
|
-
> = z.object({
|
|
1515
|
-
role: z.literal("user"),
|
|
1516
|
-
name: z.string().optional(),
|
|
1517
|
-
content: z.union([
|
|
1518
|
-
z.string(),
|
|
1519
|
-
z.array(
|
|
1520
|
-
z.union([
|
|
1521
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
1522
|
-
z.object({ type: z.literal("text") }),
|
|
1523
|
-
),
|
|
1524
|
-
components.ImageContentPartSchema$inboundSchema,
|
|
1525
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
1526
|
-
z.lazy(() => RetrieveDatapoint24$inboundSchema),
|
|
1527
|
-
]),
|
|
1528
|
-
),
|
|
1529
|
-
]),
|
|
1530
|
-
});
|
|
1531
|
-
/** @internal */
|
|
1532
|
-
export type RetrieveDatapointMessagesUserMessage$Outbound = {
|
|
1533
|
-
role: "user";
|
|
1534
|
-
name?: string | undefined;
|
|
1535
|
-
content:
|
|
1536
|
-
| string
|
|
1537
|
-
| Array<
|
|
1538
|
-
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
1539
|
-
| components.ImageContentPartSchema$Outbound
|
|
1540
|
-
| components.AudioContentPartSchema$Outbound
|
|
1541
|
-
| RetrieveDatapoint24$Outbound
|
|
1542
|
-
>;
|
|
1543
|
-
};
|
|
1544
|
-
|
|
1545
|
-
/** @internal */
|
|
1546
|
-
export const RetrieveDatapointMessagesUserMessage$outboundSchema: z.ZodType<
|
|
1547
|
-
RetrieveDatapointMessagesUserMessage$Outbound,
|
|
1548
|
-
z.ZodTypeDef,
|
|
1549
|
-
RetrieveDatapointMessagesUserMessage
|
|
1550
|
-
> = z.object({
|
|
1551
|
-
role: z.literal("user"),
|
|
1552
|
-
name: z.string().optional(),
|
|
1553
|
-
content: z.union([
|
|
1554
|
-
z.string(),
|
|
1555
|
-
z.array(
|
|
1556
|
-
z.union([
|
|
1557
|
-
components.TextContentPartSchema$outboundSchema.and(
|
|
1558
|
-
z.object({ type: z.literal("text") }),
|
|
1559
|
-
),
|
|
1560
|
-
components.ImageContentPartSchema$outboundSchema,
|
|
1561
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
1562
|
-
z.lazy(() => RetrieveDatapoint24$outboundSchema),
|
|
1563
|
-
]),
|
|
1564
|
-
),
|
|
1565
|
-
]),
|
|
1566
|
-
});
|
|
1567
|
-
|
|
1568
|
-
export function retrieveDatapointMessagesUserMessageToJSON(
|
|
1569
|
-
retrieveDatapointMessagesUserMessage: RetrieveDatapointMessagesUserMessage,
|
|
1570
|
-
): string {
|
|
1571
|
-
return JSON.stringify(
|
|
1572
|
-
RetrieveDatapointMessagesUserMessage$outboundSchema.parse(
|
|
1573
|
-
retrieveDatapointMessagesUserMessage,
|
|
1574
|
-
),
|
|
1575
|
-
);
|
|
1576
|
-
}
|
|
1577
|
-
export function retrieveDatapointMessagesUserMessageFromJSON(
|
|
1578
|
-
jsonString: string,
|
|
1579
|
-
): SafeParseResult<RetrieveDatapointMessagesUserMessage, SDKValidationError> {
|
|
1580
|
-
return safeParse(
|
|
1581
|
-
jsonString,
|
|
1582
|
-
(x) =>
|
|
1583
|
-
RetrieveDatapointMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
1584
|
-
`Failed to parse 'RetrieveDatapointMessagesUserMessage' from JSON`,
|
|
1585
|
-
);
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
/** @internal */
|
|
1589
|
-
export const RetrieveDatapointMessagesDatasetsContent$inboundSchema: z.ZodType<
|
|
1590
|
-
RetrieveDatapointMessagesDatasetsContent,
|
|
1591
|
-
z.ZodTypeDef,
|
|
1592
|
-
unknown
|
|
1593
|
-
> = z.union([
|
|
1594
|
-
z.string(),
|
|
1595
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1596
|
-
]);
|
|
1597
|
-
/** @internal */
|
|
1598
|
-
export type RetrieveDatapointMessagesDatasetsContent$Outbound =
|
|
1599
|
-
| string
|
|
1600
|
-
| Array<components.TextContentPartSchema$Outbound>;
|
|
1601
|
-
|
|
1602
|
-
/** @internal */
|
|
1603
|
-
export const RetrieveDatapointMessagesDatasetsContent$outboundSchema: z.ZodType<
|
|
1604
|
-
RetrieveDatapointMessagesDatasetsContent$Outbound,
|
|
1605
|
-
z.ZodTypeDef,
|
|
1606
|
-
RetrieveDatapointMessagesDatasetsContent
|
|
1607
|
-
> = z.union([
|
|
1608
|
-
z.string(),
|
|
1609
|
-
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1610
|
-
]);
|
|
1611
|
-
|
|
1612
|
-
export function retrieveDatapointMessagesDatasetsContentToJSON(
|
|
1613
|
-
retrieveDatapointMessagesDatasetsContent:
|
|
1614
|
-
RetrieveDatapointMessagesDatasetsContent,
|
|
1615
|
-
): string {
|
|
1616
|
-
return JSON.stringify(
|
|
1617
|
-
RetrieveDatapointMessagesDatasetsContent$outboundSchema.parse(
|
|
1618
|
-
retrieveDatapointMessagesDatasetsContent,
|
|
1619
|
-
),
|
|
1620
|
-
);
|
|
1621
|
-
}
|
|
1622
|
-
export function retrieveDatapointMessagesDatasetsContentFromJSON(
|
|
1623
|
-
jsonString: string,
|
|
1624
|
-
): SafeParseResult<
|
|
1625
|
-
RetrieveDatapointMessagesDatasetsContent,
|
|
1626
|
-
SDKValidationError
|
|
1627
|
-
> {
|
|
1628
|
-
return safeParse(
|
|
1629
|
-
jsonString,
|
|
1630
|
-
(x) =>
|
|
1631
|
-
RetrieveDatapointMessagesDatasetsContent$inboundSchema.parse(
|
|
1632
|
-
JSON.parse(x),
|
|
1633
|
-
),
|
|
1634
|
-
`Failed to parse 'RetrieveDatapointMessagesDatasetsContent' from JSON`,
|
|
1635
|
-
);
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
/** @internal */
|
|
1639
|
-
export const RetrieveDatapointMessagesDeveloperMessage$inboundSchema: z.ZodType<
|
|
1640
|
-
RetrieveDatapointMessagesDeveloperMessage,
|
|
1641
|
-
z.ZodTypeDef,
|
|
1642
|
-
unknown
|
|
1643
|
-
> = z.object({
|
|
1644
|
-
role: z.literal("developer"),
|
|
1645
|
-
content: z.union([
|
|
1646
|
-
z.string(),
|
|
1647
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1648
|
-
]),
|
|
1649
|
-
name: z.string().optional(),
|
|
1650
|
-
});
|
|
1651
|
-
/** @internal */
|
|
1652
|
-
export type RetrieveDatapointMessagesDeveloperMessage$Outbound = {
|
|
1653
|
-
role: "developer";
|
|
1654
|
-
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
1655
|
-
name?: string | undefined;
|
|
1656
|
-
};
|
|
1657
|
-
|
|
1658
|
-
/** @internal */
|
|
1659
|
-
export const RetrieveDatapointMessagesDeveloperMessage$outboundSchema:
|
|
1660
|
-
z.ZodType<
|
|
1661
|
-
RetrieveDatapointMessagesDeveloperMessage$Outbound,
|
|
1662
|
-
z.ZodTypeDef,
|
|
1663
|
-
RetrieveDatapointMessagesDeveloperMessage
|
|
1664
|
-
> = z.object({
|
|
1665
|
-
role: z.literal("developer"),
|
|
1666
|
-
content: z.union([
|
|
1667
|
-
z.string(),
|
|
1668
|
-
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1669
|
-
]),
|
|
1670
|
-
name: z.string().optional(),
|
|
1671
|
-
});
|
|
1672
|
-
|
|
1673
|
-
export function retrieveDatapointMessagesDeveloperMessageToJSON(
|
|
1674
|
-
retrieveDatapointMessagesDeveloperMessage:
|
|
1675
|
-
RetrieveDatapointMessagesDeveloperMessage,
|
|
1676
|
-
): string {
|
|
1677
|
-
return JSON.stringify(
|
|
1678
|
-
RetrieveDatapointMessagesDeveloperMessage$outboundSchema.parse(
|
|
1679
|
-
retrieveDatapointMessagesDeveloperMessage,
|
|
1680
|
-
),
|
|
1681
|
-
);
|
|
1682
|
-
}
|
|
1683
|
-
export function retrieveDatapointMessagesDeveloperMessageFromJSON(
|
|
1684
|
-
jsonString: string,
|
|
1685
|
-
): SafeParseResult<
|
|
1686
|
-
RetrieveDatapointMessagesDeveloperMessage,
|
|
1687
|
-
SDKValidationError
|
|
1688
|
-
> {
|
|
1689
|
-
return safeParse(
|
|
1690
|
-
jsonString,
|
|
1691
|
-
(x) =>
|
|
1692
|
-
RetrieveDatapointMessagesDeveloperMessage$inboundSchema.parse(
|
|
1693
|
-
JSON.parse(x),
|
|
1694
|
-
),
|
|
1695
|
-
`Failed to parse 'RetrieveDatapointMessagesDeveloperMessage' from JSON`,
|
|
1696
|
-
);
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
/** @internal */
|
|
1700
|
-
export const RetrieveDatapointMessagesContent$inboundSchema: z.ZodType<
|
|
1701
|
-
RetrieveDatapointMessagesContent,
|
|
1702
|
-
z.ZodTypeDef,
|
|
1703
|
-
unknown
|
|
1704
|
-
> = z.union([
|
|
1705
|
-
z.string(),
|
|
1706
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1707
|
-
]);
|
|
1708
|
-
/** @internal */
|
|
1709
|
-
export type RetrieveDatapointMessagesContent$Outbound =
|
|
1710
|
-
| string
|
|
1711
|
-
| Array<components.TextContentPartSchema$Outbound>;
|
|
1712
|
-
|
|
1713
|
-
/** @internal */
|
|
1714
|
-
export const RetrieveDatapointMessagesContent$outboundSchema: z.ZodType<
|
|
1715
|
-
RetrieveDatapointMessagesContent$Outbound,
|
|
1716
|
-
z.ZodTypeDef,
|
|
1717
|
-
RetrieveDatapointMessagesContent
|
|
1718
|
-
> = z.union([
|
|
1719
|
-
z.string(),
|
|
1720
|
-
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1721
|
-
]);
|
|
1722
|
-
|
|
1723
|
-
export function retrieveDatapointMessagesContentToJSON(
|
|
1724
|
-
retrieveDatapointMessagesContent: RetrieveDatapointMessagesContent,
|
|
1725
|
-
): string {
|
|
1726
|
-
return JSON.stringify(
|
|
1727
|
-
RetrieveDatapointMessagesContent$outboundSchema.parse(
|
|
1728
|
-
retrieveDatapointMessagesContent,
|
|
1729
|
-
),
|
|
1730
|
-
);
|
|
1731
|
-
}
|
|
1732
|
-
export function retrieveDatapointMessagesContentFromJSON(
|
|
1733
|
-
jsonString: string,
|
|
1734
|
-
): SafeParseResult<RetrieveDatapointMessagesContent, SDKValidationError> {
|
|
1735
|
-
return safeParse(
|
|
1736
|
-
jsonString,
|
|
1737
|
-
(x) => RetrieveDatapointMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
1738
|
-
`Failed to parse 'RetrieveDatapointMessagesContent' from JSON`,
|
|
1739
|
-
);
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
/** @internal */
|
|
1743
|
-
export const RetrieveDatapointMessagesSystemMessage$inboundSchema: z.ZodType<
|
|
1744
|
-
RetrieveDatapointMessagesSystemMessage,
|
|
1745
|
-
z.ZodTypeDef,
|
|
1746
|
-
unknown
|
|
1747
|
-
> = z.object({
|
|
1748
|
-
role: z.literal("system"),
|
|
1749
|
-
content: z.union([
|
|
1750
|
-
z.string(),
|
|
1751
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1752
|
-
]),
|
|
1753
|
-
name: z.string().optional(),
|
|
1754
|
-
});
|
|
1755
|
-
/** @internal */
|
|
1756
|
-
export type RetrieveDatapointMessagesSystemMessage$Outbound = {
|
|
1757
|
-
role: "system";
|
|
1758
|
-
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
1759
|
-
name?: string | undefined;
|
|
1760
|
-
};
|
|
1761
|
-
|
|
1762
|
-
/** @internal */
|
|
1763
|
-
export const RetrieveDatapointMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
1764
|
-
RetrieveDatapointMessagesSystemMessage$Outbound,
|
|
1765
|
-
z.ZodTypeDef,
|
|
1766
|
-
RetrieveDatapointMessagesSystemMessage
|
|
1767
|
-
> = z.object({
|
|
1768
|
-
role: z.literal("system"),
|
|
1769
|
-
content: z.union([
|
|
1770
|
-
z.string(),
|
|
1771
|
-
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1772
|
-
]),
|
|
1773
|
-
name: z.string().optional(),
|
|
1774
|
-
});
|
|
1775
|
-
|
|
1776
|
-
export function retrieveDatapointMessagesSystemMessageToJSON(
|
|
1777
|
-
retrieveDatapointMessagesSystemMessage:
|
|
1778
|
-
RetrieveDatapointMessagesSystemMessage,
|
|
1779
|
-
): string {
|
|
1780
|
-
return JSON.stringify(
|
|
1781
|
-
RetrieveDatapointMessagesSystemMessage$outboundSchema.parse(
|
|
1782
|
-
retrieveDatapointMessagesSystemMessage,
|
|
1783
|
-
),
|
|
1784
|
-
);
|
|
1785
|
-
}
|
|
1786
|
-
export function retrieveDatapointMessagesSystemMessageFromJSON(
|
|
1787
|
-
jsonString: string,
|
|
1788
|
-
): SafeParseResult<RetrieveDatapointMessagesSystemMessage, SDKValidationError> {
|
|
1789
|
-
return safeParse(
|
|
1790
|
-
jsonString,
|
|
1791
|
-
(x) =>
|
|
1792
|
-
RetrieveDatapointMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)),
|
|
1793
|
-
`Failed to parse 'RetrieveDatapointMessagesSystemMessage' from JSON`,
|
|
1794
|
-
);
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
/** @internal */
|
|
1798
|
-
export const RetrieveDatapointMessages$inboundSchema: z.ZodType<
|
|
1799
|
-
RetrieveDatapointMessages,
|
|
1800
|
-
z.ZodTypeDef,
|
|
1801
|
-
unknown
|
|
1802
|
-
> = z.union([
|
|
1803
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$inboundSchema),
|
|
1804
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
|
|
1805
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$inboundSchema),
|
|
1806
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$inboundSchema),
|
|
1807
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$inboundSchema),
|
|
1808
|
-
]);
|
|
1809
|
-
/** @internal */
|
|
1810
|
-
export type RetrieveDatapointMessages$Outbound =
|
|
1811
|
-
| RetrieveDatapointMessagesSystemMessage$Outbound
|
|
1812
|
-
| RetrieveDatapointMessagesDeveloperMessage$Outbound
|
|
1813
|
-
| RetrieveDatapointMessagesUserMessage$Outbound
|
|
1814
|
-
| RetrieveDatapointMessagesAssistantMessage$Outbound
|
|
1815
|
-
| RetrieveDatapointMessagesToolMessage$Outbound;
|
|
1816
|
-
|
|
1817
|
-
/** @internal */
|
|
1818
|
-
export const RetrieveDatapointMessages$outboundSchema: z.ZodType<
|
|
1819
|
-
RetrieveDatapointMessages$Outbound,
|
|
1820
|
-
z.ZodTypeDef,
|
|
1821
|
-
RetrieveDatapointMessages
|
|
1822
|
-
> = z.union([
|
|
1823
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$outboundSchema),
|
|
1824
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
|
|
1825
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$outboundSchema),
|
|
1826
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$outboundSchema),
|
|
1827
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$outboundSchema),
|
|
1828
|
-
]);
|
|
1829
|
-
|
|
1830
|
-
export function retrieveDatapointMessagesToJSON(
|
|
1831
|
-
retrieveDatapointMessages: RetrieveDatapointMessages,
|
|
1832
|
-
): string {
|
|
1833
|
-
return JSON.stringify(
|
|
1834
|
-
RetrieveDatapointMessages$outboundSchema.parse(retrieveDatapointMessages),
|
|
1835
|
-
);
|
|
1836
|
-
}
|
|
1837
|
-
export function retrieveDatapointMessagesFromJSON(
|
|
1838
|
-
jsonString: string,
|
|
1839
|
-
): SafeParseResult<RetrieveDatapointMessages, SDKValidationError> {
|
|
1840
|
-
return safeParse(
|
|
1841
|
-
jsonString,
|
|
1842
|
-
(x) => RetrieveDatapointMessages$inboundSchema.parse(JSON.parse(x)),
|
|
1843
|
-
`Failed to parse 'RetrieveDatapointMessages' from JSON`,
|
|
1844
|
-
);
|
|
1845
|
-
}
|
|
1846
|
-
|
|
1847
|
-
/** @internal */
|
|
1848
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema:
|
|
1849
|
-
z.ZodNativeEnum<
|
|
1850
|
-
typeof RetrieveDatapointEvaluationsDatasetsResponseEvaluationType
|
|
1851
|
-
> = z.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseEvaluationType);
|
|
1852
|
-
/** @internal */
|
|
1853
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema:
|
|
1854
|
-
z.ZodNativeEnum<
|
|
1855
|
-
typeof RetrieveDatapointEvaluationsDatasetsResponseEvaluationType
|
|
1856
|
-
> = RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema;
|
|
1857
|
-
|
|
1858
|
-
/** @internal */
|
|
1859
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema:
|
|
1860
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseSource> = z
|
|
1861
|
-
.nativeEnum(RetrieveDatapointEvaluationsDatasetsResponseSource);
|
|
1862
|
-
/** @internal */
|
|
1863
|
-
export const RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema:
|
|
1864
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsResponseSource> =
|
|
1865
|
-
RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema;
|
|
1866
|
-
|
|
1867
|
-
/** @internal */
|
|
1868
|
-
export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
1869
|
-
RetrieveDatapointEvaluations3,
|
|
1870
|
-
z.ZodTypeDef,
|
|
1871
|
-
unknown
|
|
1872
|
-
> = z.object({
|
|
1873
|
-
id: z.string(),
|
|
1874
|
-
evaluation_type:
|
|
1875
|
-
RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema,
|
|
1876
|
-
human_review_id: z.string(),
|
|
1877
|
-
source: RetrieveDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
1878
|
-
.default("orq"),
|
|
1879
|
-
reviewed_by_id: z.string(),
|
|
1880
|
-
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1881
|
-
"2026-01-05T07:05:54.441Z",
|
|
1882
|
-
).transform(v => new Date(v)),
|
|
1883
|
-
type: z.literal("string_array"),
|
|
1884
|
-
values: z.array(z.string()),
|
|
1885
|
-
}).transform((v) => {
|
|
1886
|
-
return remap$(v, {
|
|
1887
|
-
"evaluation_type": "evaluationType",
|
|
1888
|
-
"human_review_id": "humanReviewId",
|
|
1889
|
-
"reviewed_by_id": "reviewedById",
|
|
1890
|
-
"reviewed_at": "reviewedAt",
|
|
1891
|
-
});
|
|
1892
|
-
});
|
|
1893
|
-
/** @internal */
|
|
1894
|
-
export type RetrieveDatapointEvaluations3$Outbound = {
|
|
1895
|
-
id: string;
|
|
1896
|
-
evaluation_type: string;
|
|
1897
|
-
human_review_id: string;
|
|
1898
|
-
source: string;
|
|
1899
|
-
reviewed_by_id: string;
|
|
1900
|
-
reviewed_at: string;
|
|
1901
|
-
type: "string_array";
|
|
1902
|
-
values: Array<string>;
|
|
1903
|
-
};
|
|
1904
|
-
|
|
1905
|
-
/** @internal */
|
|
1906
|
-
export const RetrieveDatapointEvaluations3$outboundSchema: z.ZodType<
|
|
1907
|
-
RetrieveDatapointEvaluations3$Outbound,
|
|
1908
|
-
z.ZodTypeDef,
|
|
1909
|
-
RetrieveDatapointEvaluations3
|
|
1910
|
-
> = z.object({
|
|
1911
|
-
id: z.string(),
|
|
1912
|
-
evaluationType:
|
|
1913
|
-
RetrieveDatapointEvaluationsDatasetsResponseEvaluationType$outboundSchema,
|
|
1914
|
-
humanReviewId: z.string(),
|
|
1915
|
-
source: RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
|
|
1916
|
-
.default("orq"),
|
|
1917
|
-
reviewedById: z.string(),
|
|
1918
|
-
reviewedAt: z.date().default(() => new Date("2026-01-05T07:05:54.441Z"))
|
|
1919
|
-
.transform(v => v.toISOString()),
|
|
1920
|
-
type: z.literal("string_array"),
|
|
1921
|
-
values: z.array(z.string()),
|
|
1922
|
-
}).transform((v) => {
|
|
1923
|
-
return remap$(v, {
|
|
1924
|
-
evaluationType: "evaluation_type",
|
|
1925
|
-
humanReviewId: "human_review_id",
|
|
1926
|
-
reviewedById: "reviewed_by_id",
|
|
1927
|
-
reviewedAt: "reviewed_at",
|
|
1928
|
-
});
|
|
1929
|
-
});
|
|
1930
|
-
|
|
1931
|
-
export function retrieveDatapointEvaluations3ToJSON(
|
|
1932
|
-
retrieveDatapointEvaluations3: RetrieveDatapointEvaluations3,
|
|
1933
|
-
): string {
|
|
1934
|
-
return JSON.stringify(
|
|
1935
|
-
RetrieveDatapointEvaluations3$outboundSchema.parse(
|
|
1936
|
-
retrieveDatapointEvaluations3,
|
|
1937
|
-
),
|
|
1938
|
-
);
|
|
1939
|
-
}
|
|
1940
|
-
export function retrieveDatapointEvaluations3FromJSON(
|
|
1941
|
-
jsonString: string,
|
|
1942
|
-
): SafeParseResult<RetrieveDatapointEvaluations3, SDKValidationError> {
|
|
1943
|
-
return safeParse(
|
|
1944
|
-
jsonString,
|
|
1945
|
-
(x) => RetrieveDatapointEvaluations3$inboundSchema.parse(JSON.parse(x)),
|
|
1946
|
-
`Failed to parse 'RetrieveDatapointEvaluations3' from JSON`,
|
|
1947
|
-
);
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
/** @internal */
|
|
1951
|
-
export const RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema:
|
|
1952
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsEvaluationType> = z
|
|
1953
|
-
.nativeEnum(RetrieveDatapointEvaluationsDatasetsEvaluationType);
|
|
1954
|
-
/** @internal */
|
|
1955
|
-
export const RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema:
|
|
1956
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsEvaluationType> =
|
|
1957
|
-
RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema;
|
|
1958
|
-
|
|
1959
|
-
/** @internal */
|
|
1960
|
-
export const RetrieveDatapointEvaluationsDatasetsSource$inboundSchema:
|
|
1961
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsSource> = z
|
|
1962
|
-
.nativeEnum(RetrieveDatapointEvaluationsDatasetsSource);
|
|
1963
|
-
/** @internal */
|
|
1964
|
-
export const RetrieveDatapointEvaluationsDatasetsSource$outboundSchema:
|
|
1965
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsDatasetsSource> =
|
|
1966
|
-
RetrieveDatapointEvaluationsDatasetsSource$inboundSchema;
|
|
1967
|
-
|
|
1968
|
-
/** @internal */
|
|
1969
|
-
export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
1970
|
-
RetrieveDatapointEvaluations2,
|
|
1971
|
-
z.ZodTypeDef,
|
|
1972
|
-
unknown
|
|
1973
|
-
> = z.object({
|
|
1974
|
-
id: z.string(),
|
|
1975
|
-
evaluation_type:
|
|
1976
|
-
RetrieveDatapointEvaluationsDatasetsEvaluationType$inboundSchema,
|
|
1977
|
-
human_review_id: z.string(),
|
|
1978
|
-
source: RetrieveDatapointEvaluationsDatasetsSource$inboundSchema.default(
|
|
1979
|
-
"orq",
|
|
1980
|
-
),
|
|
1981
|
-
reviewed_by_id: z.string(),
|
|
1982
|
-
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1983
|
-
"2026-01-05T07:05:54.440Z",
|
|
1984
|
-
).transform(v => new Date(v)),
|
|
1985
|
-
type: z.literal("number"),
|
|
1986
|
-
value: z.number(),
|
|
1987
|
-
}).transform((v) => {
|
|
1988
|
-
return remap$(v, {
|
|
1989
|
-
"evaluation_type": "evaluationType",
|
|
1990
|
-
"human_review_id": "humanReviewId",
|
|
1991
|
-
"reviewed_by_id": "reviewedById",
|
|
1992
|
-
"reviewed_at": "reviewedAt",
|
|
1993
|
-
});
|
|
1994
|
-
});
|
|
1995
|
-
/** @internal */
|
|
1996
|
-
export type RetrieveDatapointEvaluations2$Outbound = {
|
|
1997
|
-
id: string;
|
|
1998
|
-
evaluation_type: string;
|
|
1999
|
-
human_review_id: string;
|
|
2000
|
-
source: string;
|
|
2001
|
-
reviewed_by_id: string;
|
|
2002
|
-
reviewed_at: string;
|
|
2003
|
-
type: "number";
|
|
2004
|
-
value: number;
|
|
2005
|
-
};
|
|
2006
|
-
|
|
2007
|
-
/** @internal */
|
|
2008
|
-
export const RetrieveDatapointEvaluations2$outboundSchema: z.ZodType<
|
|
2009
|
-
RetrieveDatapointEvaluations2$Outbound,
|
|
2010
|
-
z.ZodTypeDef,
|
|
2011
|
-
RetrieveDatapointEvaluations2
|
|
2012
|
-
> = z.object({
|
|
2013
|
-
id: z.string(),
|
|
2014
|
-
evaluationType:
|
|
2015
|
-
RetrieveDatapointEvaluationsDatasetsEvaluationType$outboundSchema,
|
|
2016
|
-
humanReviewId: z.string(),
|
|
2017
|
-
source: RetrieveDatapointEvaluationsDatasetsSource$outboundSchema.default(
|
|
2018
|
-
"orq",
|
|
2019
|
-
),
|
|
2020
|
-
reviewedById: z.string(),
|
|
2021
|
-
reviewedAt: z.date().default(() => new Date("2026-01-05T07:05:54.440Z"))
|
|
2022
|
-
.transform(v => v.toISOString()),
|
|
2023
|
-
type: z.literal("number"),
|
|
2024
|
-
value: z.number(),
|
|
2025
|
-
}).transform((v) => {
|
|
2026
|
-
return remap$(v, {
|
|
2027
|
-
evaluationType: "evaluation_type",
|
|
2028
|
-
humanReviewId: "human_review_id",
|
|
2029
|
-
reviewedById: "reviewed_by_id",
|
|
2030
|
-
reviewedAt: "reviewed_at",
|
|
2031
|
-
});
|
|
2032
|
-
});
|
|
2033
|
-
|
|
2034
|
-
export function retrieveDatapointEvaluations2ToJSON(
|
|
2035
|
-
retrieveDatapointEvaluations2: RetrieveDatapointEvaluations2,
|
|
2036
|
-
): string {
|
|
2037
|
-
return JSON.stringify(
|
|
2038
|
-
RetrieveDatapointEvaluations2$outboundSchema.parse(
|
|
2039
|
-
retrieveDatapointEvaluations2,
|
|
2040
|
-
),
|
|
2041
|
-
);
|
|
2042
|
-
}
|
|
2043
|
-
export function retrieveDatapointEvaluations2FromJSON(
|
|
2044
|
-
jsonString: string,
|
|
2045
|
-
): SafeParseResult<RetrieveDatapointEvaluations2, SDKValidationError> {
|
|
2046
|
-
return safeParse(
|
|
2047
|
-
jsonString,
|
|
2048
|
-
(x) => RetrieveDatapointEvaluations2$inboundSchema.parse(JSON.parse(x)),
|
|
2049
|
-
`Failed to parse 'RetrieveDatapointEvaluations2' from JSON`,
|
|
2050
|
-
);
|
|
2051
|
-
}
|
|
2052
|
-
|
|
2053
|
-
/** @internal */
|
|
2054
|
-
export const RetrieveDatapointEvaluationsEvaluationType$inboundSchema:
|
|
2055
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsEvaluationType> = z
|
|
2056
|
-
.nativeEnum(RetrieveDatapointEvaluationsEvaluationType);
|
|
2057
|
-
/** @internal */
|
|
2058
|
-
export const RetrieveDatapointEvaluationsEvaluationType$outboundSchema:
|
|
2059
|
-
z.ZodNativeEnum<typeof RetrieveDatapointEvaluationsEvaluationType> =
|
|
2060
|
-
RetrieveDatapointEvaluationsEvaluationType$inboundSchema;
|
|
2061
|
-
|
|
2062
|
-
/** @internal */
|
|
2063
|
-
export const RetrieveDatapointEvaluationsSource$inboundSchema: z.ZodNativeEnum<
|
|
2064
|
-
typeof RetrieveDatapointEvaluationsSource
|
|
2065
|
-
> = z.nativeEnum(RetrieveDatapointEvaluationsSource);
|
|
2066
|
-
/** @internal */
|
|
2067
|
-
export const RetrieveDatapointEvaluationsSource$outboundSchema: z.ZodNativeEnum<
|
|
2068
|
-
typeof RetrieveDatapointEvaluationsSource
|
|
2069
|
-
> = RetrieveDatapointEvaluationsSource$inboundSchema;
|
|
2070
|
-
|
|
2071
|
-
/** @internal */
|
|
2072
|
-
export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
2073
|
-
RetrieveDatapointEvaluations1,
|
|
2074
|
-
z.ZodTypeDef,
|
|
2075
|
-
unknown
|
|
2076
|
-
> = z.object({
|
|
2077
|
-
id: z.string(),
|
|
2078
|
-
evaluation_type: RetrieveDatapointEvaluationsEvaluationType$inboundSchema,
|
|
2079
|
-
human_review_id: z.string(),
|
|
2080
|
-
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2081
|
-
reviewed_by_id: z.string(),
|
|
2082
|
-
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2083
|
-
"2026-01-05T07:05:54.439Z",
|
|
2084
|
-
).transform(v => new Date(v)),
|
|
2085
|
-
type: z.literal("string"),
|
|
2086
|
-
value: z.string(),
|
|
2087
|
-
}).transform((v) => {
|
|
2088
|
-
return remap$(v, {
|
|
2089
|
-
"evaluation_type": "evaluationType",
|
|
2090
|
-
"human_review_id": "humanReviewId",
|
|
2091
|
-
"reviewed_by_id": "reviewedById",
|
|
2092
|
-
"reviewed_at": "reviewedAt",
|
|
2093
|
-
});
|
|
2094
|
-
});
|
|
2095
|
-
/** @internal */
|
|
2096
|
-
export type RetrieveDatapointEvaluations1$Outbound = {
|
|
2097
|
-
id: string;
|
|
2098
|
-
evaluation_type: string;
|
|
2099
|
-
human_review_id: string;
|
|
2100
|
-
source: string;
|
|
2101
|
-
reviewed_by_id: string;
|
|
2102
|
-
reviewed_at: string;
|
|
2103
|
-
type: "string";
|
|
2104
|
-
value: string;
|
|
2105
|
-
};
|
|
2106
|
-
|
|
2107
|
-
/** @internal */
|
|
2108
|
-
export const RetrieveDatapointEvaluations1$outboundSchema: z.ZodType<
|
|
2109
|
-
RetrieveDatapointEvaluations1$Outbound,
|
|
2110
|
-
z.ZodTypeDef,
|
|
2111
|
-
RetrieveDatapointEvaluations1
|
|
2112
|
-
> = z.object({
|
|
2113
|
-
id: z.string(),
|
|
2114
|
-
evaluationType: RetrieveDatapointEvaluationsEvaluationType$outboundSchema,
|
|
2115
|
-
humanReviewId: z.string(),
|
|
2116
|
-
source: RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
|
|
2117
|
-
reviewedById: z.string(),
|
|
2118
|
-
reviewedAt: z.date().default(() => new Date("2026-01-05T07:05:54.439Z"))
|
|
2119
|
-
.transform(v => v.toISOString()),
|
|
2120
|
-
type: z.literal("string"),
|
|
2121
|
-
value: z.string(),
|
|
2122
|
-
}).transform((v) => {
|
|
2123
|
-
return remap$(v, {
|
|
2124
|
-
evaluationType: "evaluation_type",
|
|
2125
|
-
humanReviewId: "human_review_id",
|
|
2126
|
-
reviewedById: "reviewed_by_id",
|
|
2127
|
-
reviewedAt: "reviewed_at",
|
|
2128
|
-
});
|
|
2129
|
-
});
|
|
2130
|
-
|
|
2131
|
-
export function retrieveDatapointEvaluations1ToJSON(
|
|
2132
|
-
retrieveDatapointEvaluations1: RetrieveDatapointEvaluations1,
|
|
2133
|
-
): string {
|
|
2134
|
-
return JSON.stringify(
|
|
2135
|
-
RetrieveDatapointEvaluations1$outboundSchema.parse(
|
|
2136
|
-
retrieveDatapointEvaluations1,
|
|
2137
|
-
),
|
|
2138
|
-
);
|
|
2139
|
-
}
|
|
2140
|
-
export function retrieveDatapointEvaluations1FromJSON(
|
|
2141
|
-
jsonString: string,
|
|
2142
|
-
): SafeParseResult<RetrieveDatapointEvaluations1, SDKValidationError> {
|
|
2143
|
-
return safeParse(
|
|
2144
|
-
jsonString,
|
|
2145
|
-
(x) => RetrieveDatapointEvaluations1$inboundSchema.parse(JSON.parse(x)),
|
|
2146
|
-
`Failed to parse 'RetrieveDatapointEvaluations1' from JSON`,
|
|
2147
|
-
);
|
|
2148
|
-
}
|
|
2149
|
-
|
|
2150
|
-
/** @internal */
|
|
2151
|
-
export const RetrieveDatapointEvaluations$inboundSchema: z.ZodType<
|
|
2152
|
-
RetrieveDatapointEvaluations,
|
|
2153
|
-
z.ZodTypeDef,
|
|
2154
|
-
unknown
|
|
2155
|
-
> = z.union([
|
|
2156
|
-
z.lazy(() => RetrieveDatapointEvaluations1$inboundSchema),
|
|
2157
|
-
z.lazy(() => RetrieveDatapointEvaluations2$inboundSchema),
|
|
2158
|
-
z.lazy(() => RetrieveDatapointEvaluations3$inboundSchema),
|
|
2159
|
-
]);
|
|
2160
|
-
/** @internal */
|
|
2161
|
-
export type RetrieveDatapointEvaluations$Outbound =
|
|
2162
|
-
| RetrieveDatapointEvaluations1$Outbound
|
|
2163
|
-
| RetrieveDatapointEvaluations2$Outbound
|
|
2164
|
-
| RetrieveDatapointEvaluations3$Outbound;
|
|
2165
|
-
|
|
2166
|
-
/** @internal */
|
|
2167
|
-
export const RetrieveDatapointEvaluations$outboundSchema: z.ZodType<
|
|
2168
|
-
RetrieveDatapointEvaluations$Outbound,
|
|
2169
|
-
z.ZodTypeDef,
|
|
2170
|
-
RetrieveDatapointEvaluations
|
|
2171
|
-
> = z.union([
|
|
2172
|
-
z.lazy(() => RetrieveDatapointEvaluations1$outboundSchema),
|
|
2173
|
-
z.lazy(() => RetrieveDatapointEvaluations2$outboundSchema),
|
|
2174
|
-
z.lazy(() => RetrieveDatapointEvaluations3$outboundSchema),
|
|
2175
|
-
]);
|
|
2176
|
-
|
|
2177
|
-
export function retrieveDatapointEvaluationsToJSON(
|
|
2178
|
-
retrieveDatapointEvaluations: RetrieveDatapointEvaluations,
|
|
2179
|
-
): string {
|
|
2180
|
-
return JSON.stringify(
|
|
2181
|
-
RetrieveDatapointEvaluations$outboundSchema.parse(
|
|
2182
|
-
retrieveDatapointEvaluations,
|
|
2183
|
-
),
|
|
2184
|
-
);
|
|
2185
|
-
}
|
|
2186
|
-
export function retrieveDatapointEvaluationsFromJSON(
|
|
2187
|
-
jsonString: string,
|
|
2188
|
-
): SafeParseResult<RetrieveDatapointEvaluations, SDKValidationError> {
|
|
2189
|
-
return safeParse(
|
|
2190
|
-
jsonString,
|
|
2191
|
-
(x) => RetrieveDatapointEvaluations$inboundSchema.parse(JSON.parse(x)),
|
|
2192
|
-
`Failed to parse 'RetrieveDatapointEvaluations' from JSON`,
|
|
2193
|
-
);
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
/** @internal */
|
|
2197
|
-
export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
2198
|
-
RetrieveDatapointResponseBody,
|
|
2199
|
-
z.ZodTypeDef,
|
|
2200
|
-
unknown
|
|
2201
|
-
> = z.object({
|
|
2202
|
-
_id: z.string(),
|
|
2203
|
-
workspace_id: z.string(),
|
|
2204
|
-
inputs: z.record(z.any()).optional(),
|
|
2205
|
-
messages: z.array(
|
|
2206
|
-
z.union([
|
|
2207
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$inboundSchema),
|
|
2208
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
|
|
2209
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$inboundSchema),
|
|
2210
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$inboundSchema),
|
|
2211
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$inboundSchema),
|
|
2212
|
-
]),
|
|
2213
|
-
).optional(),
|
|
2214
|
-
expected_output: z.string().optional(),
|
|
2215
|
-
evaluations: z.array(
|
|
2216
|
-
z.union([
|
|
2217
|
-
z.lazy(() => RetrieveDatapointEvaluations1$inboundSchema),
|
|
2218
|
-
z.lazy(() => RetrieveDatapointEvaluations2$inboundSchema),
|
|
2219
|
-
z.lazy(() => RetrieveDatapointEvaluations3$inboundSchema),
|
|
2220
|
-
]),
|
|
2221
|
-
).optional(),
|
|
2222
|
-
dataset_id: z.string(),
|
|
2223
|
-
snapshot_version: z.string().optional(),
|
|
2224
|
-
created_by_id: z.string().optional(),
|
|
2225
|
-
updated_by_id: z.string().optional(),
|
|
2226
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2227
|
-
.optional(),
|
|
2228
|
-
updated: z.string().datetime({ offset: true }).default(
|
|
2229
|
-
"2026-01-05T07:05:41.258Z",
|
|
2230
|
-
).transform(v => new Date(v)),
|
|
2231
|
-
}).transform((v) => {
|
|
2232
|
-
return remap$(v, {
|
|
2233
|
-
"_id": "id",
|
|
2234
|
-
"workspace_id": "workspaceId",
|
|
2235
|
-
"expected_output": "expectedOutput",
|
|
2236
|
-
"dataset_id": "datasetId",
|
|
2237
|
-
"snapshot_version": "snapshotVersion",
|
|
2238
|
-
"created_by_id": "createdById",
|
|
2239
|
-
"updated_by_id": "updatedById",
|
|
2240
|
-
});
|
|
2241
|
-
});
|
|
2242
|
-
/** @internal */
|
|
2243
|
-
export type RetrieveDatapointResponseBody$Outbound = {
|
|
2244
|
-
_id: string;
|
|
2245
|
-
workspace_id: string;
|
|
2246
|
-
inputs?: { [k: string]: any } | undefined;
|
|
2247
|
-
messages?:
|
|
2248
|
-
| Array<
|
|
2249
|
-
| RetrieveDatapointMessagesSystemMessage$Outbound
|
|
2250
|
-
| RetrieveDatapointMessagesDeveloperMessage$Outbound
|
|
2251
|
-
| RetrieveDatapointMessagesUserMessage$Outbound
|
|
2252
|
-
| RetrieveDatapointMessagesAssistantMessage$Outbound
|
|
2253
|
-
| RetrieveDatapointMessagesToolMessage$Outbound
|
|
2254
|
-
>
|
|
2255
|
-
| undefined;
|
|
2256
|
-
expected_output?: string | undefined;
|
|
2257
|
-
evaluations?:
|
|
2258
|
-
| Array<
|
|
2259
|
-
| RetrieveDatapointEvaluations1$Outbound
|
|
2260
|
-
| RetrieveDatapointEvaluations2$Outbound
|
|
2261
|
-
| RetrieveDatapointEvaluations3$Outbound
|
|
2262
|
-
>
|
|
2263
|
-
| undefined;
|
|
2264
|
-
dataset_id: string;
|
|
2265
|
-
snapshot_version?: string | undefined;
|
|
2266
|
-
created_by_id?: string | undefined;
|
|
2267
|
-
updated_by_id?: string | undefined;
|
|
2268
|
-
created?: string | undefined;
|
|
2269
|
-
updated: string;
|
|
2270
|
-
};
|
|
2271
|
-
|
|
2272
|
-
/** @internal */
|
|
2273
|
-
export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
2274
|
-
RetrieveDatapointResponseBody$Outbound,
|
|
2275
|
-
z.ZodTypeDef,
|
|
2276
|
-
RetrieveDatapointResponseBody
|
|
2277
|
-
> = z.object({
|
|
2278
|
-
id: z.string(),
|
|
2279
|
-
workspaceId: z.string(),
|
|
2280
|
-
inputs: z.record(z.any()).optional(),
|
|
2281
|
-
messages: z.array(
|
|
2282
|
-
z.union([
|
|
2283
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$outboundSchema),
|
|
2284
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
|
|
2285
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$outboundSchema),
|
|
2286
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$outboundSchema),
|
|
2287
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$outboundSchema),
|
|
2288
|
-
]),
|
|
2289
|
-
).optional(),
|
|
2290
|
-
expectedOutput: z.string().optional(),
|
|
2291
|
-
evaluations: z.array(
|
|
2292
|
-
z.union([
|
|
2293
|
-
z.lazy(() => RetrieveDatapointEvaluations1$outboundSchema),
|
|
2294
|
-
z.lazy(() => RetrieveDatapointEvaluations2$outboundSchema),
|
|
2295
|
-
z.lazy(() => RetrieveDatapointEvaluations3$outboundSchema),
|
|
2296
|
-
]),
|
|
2297
|
-
).optional(),
|
|
2298
|
-
datasetId: z.string(),
|
|
2299
|
-
snapshotVersion: z.string().optional(),
|
|
2300
|
-
createdById: z.string().optional(),
|
|
2301
|
-
updatedById: z.string().optional(),
|
|
2302
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2303
|
-
updated: z.date().default(() => new Date("2026-01-05T07:05:41.258Z"))
|
|
2304
|
-
.transform(v => v.toISOString()),
|
|
2305
|
-
}).transform((v) => {
|
|
2306
|
-
return remap$(v, {
|
|
2307
|
-
id: "_id",
|
|
2308
|
-
workspaceId: "workspace_id",
|
|
2309
|
-
expectedOutput: "expected_output",
|
|
2310
|
-
datasetId: "dataset_id",
|
|
2311
|
-
snapshotVersion: "snapshot_version",
|
|
2312
|
-
createdById: "created_by_id",
|
|
2313
|
-
updatedById: "updated_by_id",
|
|
2314
|
-
});
|
|
2315
|
-
});
|
|
2316
|
-
|
|
2317
|
-
export function retrieveDatapointResponseBodyToJSON(
|
|
2318
|
-
retrieveDatapointResponseBody: RetrieveDatapointResponseBody,
|
|
2319
|
-
): string {
|
|
2320
|
-
return JSON.stringify(
|
|
2321
|
-
RetrieveDatapointResponseBody$outboundSchema.parse(
|
|
2322
|
-
retrieveDatapointResponseBody,
|
|
2323
|
-
),
|
|
2324
|
-
);
|
|
2325
|
-
}
|
|
2326
|
-
export function retrieveDatapointResponseBodyFromJSON(
|
|
2327
|
-
jsonString: string,
|
|
2328
|
-
): SafeParseResult<RetrieveDatapointResponseBody, SDKValidationError> {
|
|
2329
|
-
return safeParse(
|
|
2330
|
-
jsonString,
|
|
2331
|
-
(x) => RetrieveDatapointResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
2332
|
-
`Failed to parse 'RetrieveDatapointResponseBody' from JSON`,
|
|
2333
|
-
);
|
|
2334
|
-
}
|