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