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