@orq-ai/node 4.5.3 → 4.6.0-rc.2
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/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/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +4 -3
- package/src/lib/config.ts +2 -2
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -184
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +0 -178
- package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +0 -187
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +0 -182
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -204
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -189
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
- package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -171
- package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -171
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -160
- 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 -186
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -181
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -198
- 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/identitiesCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/identitiesList.ts +0 -170
- package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -176
- 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 -176
- 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 -185
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -180
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -180
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -175
- 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 -173
- 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/routerAudioSpeechCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -273
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -263
- package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -161
- package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -222
- package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -218
- package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -167
- package/packages/orq-rc/src/funcs/routerOcr.ts +0 -158
- package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
- package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -497
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -161
- 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 -346
- 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 -263
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
- package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
- package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
- package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
- package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
- package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
- package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -517
- package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
- package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
- package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -305
- package/packages/orq-rc/src/models/components/datapart.ts +0 -38
- package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
- package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
- package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
- package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
- package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
- package/packages/orq-rc/src/models/components/extendedmessage.ts +0 -146
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
- package/packages/orq-rc/src/models/components/filepart.ts +0 -218
- package/packages/orq-rc/src/models/components/getagentresponse.ts +0 -348
- package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
- package/packages/orq-rc/src/models/components/index.ts +0 -59
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3450
- package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
- package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
- package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -139
- package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
- package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
- package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
- package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
- package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
- package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
- package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -324
- package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
- package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -97
- package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
- package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
- package/packages/orq-rc/src/models/components/security.ts +0 -32
- package/packages/orq-rc/src/models/components/telemetry.ts +0 -48
- package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
- package/packages/orq-rc/src/models/components/textpart.ts +0 -54
- package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
- package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
- package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
- package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
- package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
- package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -230
- package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -214
- package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -200
- package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
- package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
- package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
- package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
- package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
- package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
- package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
- package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -35
- package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
- package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +0 -97
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
- package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -62
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
- package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -6393
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -644
- package/packages/orq-rc/src/models/operations/createannotation.ts +0 -166
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6392
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
- package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3418
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2551
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
- package/packages/orq-rc/src/models/operations/createembedding.ts +0 -947
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -4170
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -144
- package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
- package/packages/orq-rc/src/models/operations/createimage.ts +0 -1028
- package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -944
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
- package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5391
- package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
- package/packages/orq-rc/src/models/operations/createresponse.ts +0 -3325
- package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -2499
- package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
- package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
- package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -79
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
- package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4525
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -729
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -1269
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4653
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -39
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -116
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -172
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -170
- package/packages/orq-rc/src/models/operations/getagentresponse.ts +0 -46
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3165
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1398
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -2842
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3090
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3135
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
- package/packages/orq-rc/src/models/operations/index.ts +0 -116
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -777
- package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1253
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -2754
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
- package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -143
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3210
- package/packages/orq-rc/src/models/operations/parse.ts +0 -777
- package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -252
- package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +0 -100
- package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -2814
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -117
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1379
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -4927
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -668
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5089
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -6824
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -4152
- package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -188
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5473
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2810
- package/packages/orq-rc/src/sdk/agents.ts +0 -234
- package/packages/orq-rc/src/sdk/annotations.ts +0 -39
- package/packages/orq-rc/src/sdk/audio.ts +0 -25
- package/packages/orq-rc/src/sdk/chat.ts +0 -13
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/completions.ts +0 -32
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- 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/edits.ts +0 -27
- package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
- package/packages/orq-rc/src/sdk/evals.ts +0 -84
- package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
- 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/generations.ts +0 -27
- package/packages/orq-rc/src/sdk/identities.ts +0 -99
- package/packages/orq-rc/src/sdk/images.ts +0 -25
- 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/moderations.ts +0 -24
- package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
- package/packages/orq-rc/src/sdk/orqresponses.ts +0 -32
- 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/rerank.ts +0 -27
- package/packages/orq-rc/src/sdk/responses.ts +0 -53
- package/packages/orq-rc/src/sdk/router.ts +0 -72
- package/packages/orq-rc/src/sdk/sdk.ts +0 -115
- package/packages/orq-rc/src/sdk/speech.ts +0 -27
- package/packages/orq-rc/src/sdk/tools.ts +0 -135
- package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
- package/packages/orq-rc/src/sdk/translations.ts +0 -24
- package/packages/orq-rc/src/sdk/variations.ts +0 -27
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -45
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/src/types/unrecognized.ts +0 -35
|
@@ -1,1498 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import * as components from "../components/index.js";
|
|
11
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
-
|
|
13
|
-
export type ListDatasetDatapointsRequest = {
|
|
14
|
-
/**
|
|
15
|
-
* The unique identifier of the dataset
|
|
16
|
-
*/
|
|
17
|
-
datasetId: string;
|
|
18
|
-
/**
|
|
19
|
-
* A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
|
|
20
|
-
*/
|
|
21
|
-
limit?: number | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
|
|
24
|
-
*/
|
|
25
|
-
startingAfter?: string | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
|
|
28
|
-
*/
|
|
29
|
-
endingBefore?: string | undefined;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const ListDatasetDatapointsObject = {
|
|
33
|
-
List: "list",
|
|
34
|
-
} as const;
|
|
35
|
-
export type ListDatasetDatapointsObject = ClosedEnum<
|
|
36
|
-
typeof ListDatasetDatapointsObject
|
|
37
|
-
>;
|
|
38
|
-
|
|
39
|
-
export type ListDatasetDatapointsContentDatasetsResponse2 =
|
|
40
|
-
components.TextContentPartSchema;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* The contents of the tool message.
|
|
44
|
-
*/
|
|
45
|
-
export type ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent =
|
|
46
|
-
| string
|
|
47
|
-
| Array<components.TextContentPartSchema>;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
51
|
-
*/
|
|
52
|
-
export const ListDatasetDatapointsMessagesDatasetsType = {
|
|
53
|
-
Ephemeral: "ephemeral",
|
|
54
|
-
} as const;
|
|
55
|
-
/**
|
|
56
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
57
|
-
*/
|
|
58
|
-
export type ListDatasetDatapointsMessagesDatasetsType = ClosedEnum<
|
|
59
|
-
typeof ListDatasetDatapointsMessagesDatasetsType
|
|
60
|
-
>;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
64
|
-
*
|
|
65
|
-
* @remarks
|
|
66
|
-
*
|
|
67
|
-
* - `5m`: 5 minutes
|
|
68
|
-
* - `1h`: 1 hour
|
|
69
|
-
*
|
|
70
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
71
|
-
*/
|
|
72
|
-
export const ListDatasetDatapointsMessagesTtl = {
|
|
73
|
-
Fivem: "5m",
|
|
74
|
-
Oneh: "1h",
|
|
75
|
-
} as const;
|
|
76
|
-
/**
|
|
77
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
78
|
-
*
|
|
79
|
-
* @remarks
|
|
80
|
-
*
|
|
81
|
-
* - `5m`: 5 minutes
|
|
82
|
-
* - `1h`: 1 hour
|
|
83
|
-
*
|
|
84
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
85
|
-
*/
|
|
86
|
-
export type ListDatasetDatapointsMessagesTtl = ClosedEnum<
|
|
87
|
-
typeof ListDatasetDatapointsMessagesTtl
|
|
88
|
-
>;
|
|
89
|
-
|
|
90
|
-
export type ListDatasetDatapointsMessagesCacheControl = {
|
|
91
|
-
/**
|
|
92
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
93
|
-
*/
|
|
94
|
-
type: ListDatasetDatapointsMessagesDatasetsType;
|
|
95
|
-
/**
|
|
96
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
97
|
-
*
|
|
98
|
-
* @remarks
|
|
99
|
-
*
|
|
100
|
-
* - `5m`: 5 minutes
|
|
101
|
-
* - `1h`: 1 hour
|
|
102
|
-
*
|
|
103
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
104
|
-
*/
|
|
105
|
-
ttl: ListDatasetDatapointsMessagesTtl;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export type ListDatasetDatapointsMessagesToolMessage = {
|
|
109
|
-
/**
|
|
110
|
-
* The role of the messages author, in this case tool.
|
|
111
|
-
*/
|
|
112
|
-
role: "tool";
|
|
113
|
-
/**
|
|
114
|
-
* The contents of the tool message.
|
|
115
|
-
*/
|
|
116
|
-
content: string | Array<components.TextContentPartSchema>;
|
|
117
|
-
/**
|
|
118
|
-
* Tool call that this message is responding to.
|
|
119
|
-
*/
|
|
120
|
-
toolCallId: string | null;
|
|
121
|
-
cacheControl?: ListDatasetDatapointsMessagesCacheControl | undefined;
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export type ListDatasetDatapointsContentDatasets2 =
|
|
125
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
126
|
-
| components.RefusalPartSchema
|
|
127
|
-
| components.ReasoningPartSchema
|
|
128
|
-
| components.RedactedReasoningPartSchema;
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
132
|
-
*/
|
|
133
|
-
export type ListDatasetDatapointsMessagesDatasetsResponse200Content =
|
|
134
|
-
| string
|
|
135
|
-
| Array<
|
|
136
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
137
|
-
| components.RefusalPartSchema
|
|
138
|
-
| components.ReasoningPartSchema
|
|
139
|
-
| components.RedactedReasoningPartSchema
|
|
140
|
-
>;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Data about a previous audio response from the model.
|
|
144
|
-
*/
|
|
145
|
-
export type ListDatasetDatapointsMessagesAudio = {
|
|
146
|
-
/**
|
|
147
|
-
* Unique identifier for a previous audio response from the model.
|
|
148
|
-
*/
|
|
149
|
-
id: string;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
154
|
-
*/
|
|
155
|
-
export const ListDatasetDatapointsMessagesType = {
|
|
156
|
-
Function: "function",
|
|
157
|
-
} as const;
|
|
158
|
-
/**
|
|
159
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
160
|
-
*/
|
|
161
|
-
export type ListDatasetDatapointsMessagesType = ClosedEnum<
|
|
162
|
-
typeof ListDatasetDatapointsMessagesType
|
|
163
|
-
>;
|
|
164
|
-
|
|
165
|
-
export type ListDatasetDatapointsMessagesFunction = {
|
|
166
|
-
/**
|
|
167
|
-
* The name of the function to call.
|
|
168
|
-
*/
|
|
169
|
-
name?: string | undefined;
|
|
170
|
-
/**
|
|
171
|
-
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
172
|
-
*/
|
|
173
|
-
arguments?: string | undefined;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
export type ListDatasetDatapointsMessagesToolCalls = {
|
|
177
|
-
/**
|
|
178
|
-
* The ID of the tool call.
|
|
179
|
-
*/
|
|
180
|
-
id: string;
|
|
181
|
-
/**
|
|
182
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
183
|
-
*/
|
|
184
|
-
type: ListDatasetDatapointsMessagesType;
|
|
185
|
-
function: ListDatasetDatapointsMessagesFunction;
|
|
186
|
-
/**
|
|
187
|
-
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
188
|
-
*/
|
|
189
|
-
thoughtSignature?: string | undefined;
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
export type ListDatasetDatapointsMessagesAssistantMessage = {
|
|
193
|
-
/**
|
|
194
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
195
|
-
*/
|
|
196
|
-
content?:
|
|
197
|
-
| string
|
|
198
|
-
| Array<
|
|
199
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
200
|
-
| components.RefusalPartSchema
|
|
201
|
-
| components.ReasoningPartSchema
|
|
202
|
-
| components.RedactedReasoningPartSchema
|
|
203
|
-
>
|
|
204
|
-
| null
|
|
205
|
-
| undefined;
|
|
206
|
-
/**
|
|
207
|
-
* The refusal message by the assistant.
|
|
208
|
-
*/
|
|
209
|
-
refusal?: string | null | undefined;
|
|
210
|
-
/**
|
|
211
|
-
* The role of the messages author, in this case `assistant`.
|
|
212
|
-
*/
|
|
213
|
-
role: "assistant";
|
|
214
|
-
/**
|
|
215
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
216
|
-
*/
|
|
217
|
-
name?: string | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* Data about a previous audio response from the model.
|
|
220
|
-
*/
|
|
221
|
-
audio?: ListDatasetDatapointsMessagesAudio | null | undefined;
|
|
222
|
-
/**
|
|
223
|
-
* The tool calls generated by the model, such as function calls.
|
|
224
|
-
*/
|
|
225
|
-
toolCalls?: Array<ListDatasetDatapointsMessagesToolCalls> | undefined;
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
230
|
-
*/
|
|
231
|
-
export const ListDatasetDatapoints2DatasetsType = {
|
|
232
|
-
Ephemeral: "ephemeral",
|
|
233
|
-
} as const;
|
|
234
|
-
/**
|
|
235
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
236
|
-
*/
|
|
237
|
-
export type ListDatasetDatapoints2DatasetsType = ClosedEnum<
|
|
238
|
-
typeof ListDatasetDatapoints2DatasetsType
|
|
239
|
-
>;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
243
|
-
*
|
|
244
|
-
* @remarks
|
|
245
|
-
*
|
|
246
|
-
* - `5m`: 5 minutes
|
|
247
|
-
* - `1h`: 1 hour
|
|
248
|
-
*
|
|
249
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
250
|
-
*/
|
|
251
|
-
export const ListDatasetDatapoints2Ttl = {
|
|
252
|
-
Fivem: "5m",
|
|
253
|
-
Oneh: "1h",
|
|
254
|
-
} as const;
|
|
255
|
-
/**
|
|
256
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
257
|
-
*
|
|
258
|
-
* @remarks
|
|
259
|
-
*
|
|
260
|
-
* - `5m`: 5 minutes
|
|
261
|
-
* - `1h`: 1 hour
|
|
262
|
-
*
|
|
263
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
264
|
-
*/
|
|
265
|
-
export type ListDatasetDatapoints2Ttl = ClosedEnum<
|
|
266
|
-
typeof ListDatasetDatapoints2Ttl
|
|
267
|
-
>;
|
|
268
|
-
|
|
269
|
-
export type ListDatasetDatapoints2CacheControl = {
|
|
270
|
-
/**
|
|
271
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
272
|
-
*/
|
|
273
|
-
type: ListDatasetDatapoints2DatasetsType;
|
|
274
|
-
/**
|
|
275
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
276
|
-
*
|
|
277
|
-
* @remarks
|
|
278
|
-
*
|
|
279
|
-
* - `5m`: 5 minutes
|
|
280
|
-
* - `1h`: 1 hour
|
|
281
|
-
*
|
|
282
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
283
|
-
*/
|
|
284
|
-
ttl: ListDatasetDatapoints2Ttl;
|
|
285
|
-
};
|
|
286
|
-
|
|
287
|
-
export type ListDatasetDatapoints24 = {
|
|
288
|
-
/**
|
|
289
|
-
* The type of the content part. Always `file`.
|
|
290
|
-
*/
|
|
291
|
-
type: "file";
|
|
292
|
-
cacheControl?: ListDatasetDatapoints2CacheControl | undefined;
|
|
293
|
-
/**
|
|
294
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
295
|
-
*/
|
|
296
|
-
file: components.FileContentPartSchema;
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
export type ListDatasetDatapointsContent2 =
|
|
300
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
301
|
-
| components.ImageContentPartSchema
|
|
302
|
-
| components.AudioContentPartSchema
|
|
303
|
-
| ListDatasetDatapoints24;
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* The contents of the user message.
|
|
307
|
-
*/
|
|
308
|
-
export type ListDatasetDatapointsMessagesDatasetsResponseContent =
|
|
309
|
-
| string
|
|
310
|
-
| Array<
|
|
311
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
312
|
-
| components.ImageContentPartSchema
|
|
313
|
-
| components.AudioContentPartSchema
|
|
314
|
-
| ListDatasetDatapoints24
|
|
315
|
-
>;
|
|
316
|
-
|
|
317
|
-
export type ListDatasetDatapointsMessagesUserMessage = {
|
|
318
|
-
/**
|
|
319
|
-
* The role of the messages author, in this case `user`.
|
|
320
|
-
*/
|
|
321
|
-
role: "user";
|
|
322
|
-
/**
|
|
323
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
324
|
-
*/
|
|
325
|
-
name?: string | undefined;
|
|
326
|
-
/**
|
|
327
|
-
* The contents of the user message.
|
|
328
|
-
*/
|
|
329
|
-
content:
|
|
330
|
-
| string
|
|
331
|
-
| Array<
|
|
332
|
-
| (components.TextContentPartSchema & { type: "text" })
|
|
333
|
-
| components.ImageContentPartSchema
|
|
334
|
-
| components.AudioContentPartSchema
|
|
335
|
-
| ListDatasetDatapoints24
|
|
336
|
-
>;
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* The contents of the developer message.
|
|
341
|
-
*/
|
|
342
|
-
export type ListDatasetDatapointsMessagesDatasetsContent =
|
|
343
|
-
| string
|
|
344
|
-
| Array<components.TextContentPartSchema>;
|
|
345
|
-
|
|
346
|
-
export type ListDatasetDatapointsMessagesDeveloperMessage = {
|
|
347
|
-
/**
|
|
348
|
-
* The role of the messages author, in this case `developer`.
|
|
349
|
-
*/
|
|
350
|
-
role: "developer";
|
|
351
|
-
/**
|
|
352
|
-
* The contents of the developer message.
|
|
353
|
-
*/
|
|
354
|
-
content: string | Array<components.TextContentPartSchema>;
|
|
355
|
-
/**
|
|
356
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
357
|
-
*/
|
|
358
|
-
name?: string | undefined;
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* The contents of the system message.
|
|
363
|
-
*/
|
|
364
|
-
export type ListDatasetDatapointsMessagesContent =
|
|
365
|
-
| string
|
|
366
|
-
| Array<components.TextContentPartSchema>;
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
370
|
-
*/
|
|
371
|
-
export type ListDatasetDatapointsMessagesSystemMessage = {
|
|
372
|
-
/**
|
|
373
|
-
* The role of the messages author, in this case `system`.
|
|
374
|
-
*/
|
|
375
|
-
role: "system";
|
|
376
|
-
/**
|
|
377
|
-
* The contents of the system message.
|
|
378
|
-
*/
|
|
379
|
-
content: string | Array<components.TextContentPartSchema>;
|
|
380
|
-
/**
|
|
381
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
382
|
-
*/
|
|
383
|
-
name?: string | undefined;
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
export type ListDatasetDatapointsMessages =
|
|
387
|
-
| ListDatasetDatapointsMessagesSystemMessage
|
|
388
|
-
| ListDatasetDatapointsMessagesDeveloperMessage
|
|
389
|
-
| ListDatasetDatapointsMessagesUserMessage
|
|
390
|
-
| ListDatasetDatapointsMessagesAssistantMessage
|
|
391
|
-
| ListDatasetDatapointsMessagesToolMessage;
|
|
392
|
-
|
|
393
|
-
/**
|
|
394
|
-
* The type of evaluation
|
|
395
|
-
*/
|
|
396
|
-
export const ListDatasetDatapointsEvaluationsEvaluationType = {
|
|
397
|
-
HumanReview: "human_review",
|
|
398
|
-
} as const;
|
|
399
|
-
/**
|
|
400
|
-
* The type of evaluation
|
|
401
|
-
*/
|
|
402
|
-
export type ListDatasetDatapointsEvaluationsEvaluationType = ClosedEnum<
|
|
403
|
-
typeof ListDatasetDatapointsEvaluationsEvaluationType
|
|
404
|
-
>;
|
|
405
|
-
|
|
406
|
-
export const ListDatasetDatapointsEvaluationsDatasetsSource = {
|
|
407
|
-
Orq: "orq",
|
|
408
|
-
External: "external",
|
|
409
|
-
} as const;
|
|
410
|
-
export type ListDatasetDatapointsEvaluationsDatasetsSource = ClosedEnum<
|
|
411
|
-
typeof ListDatasetDatapointsEvaluationsDatasetsSource
|
|
412
|
-
>;
|
|
413
|
-
|
|
414
|
-
export type ListDatasetDatapointsEvaluations3 = {
|
|
415
|
-
/**
|
|
416
|
-
* The unique identifier of the human evaluation
|
|
417
|
-
*/
|
|
418
|
-
id: string;
|
|
419
|
-
/**
|
|
420
|
-
* The type of evaluation
|
|
421
|
-
*/
|
|
422
|
-
evaluationType: ListDatasetDatapointsEvaluationsEvaluationType;
|
|
423
|
-
/**
|
|
424
|
-
* The unique identifier of the human review
|
|
425
|
-
*/
|
|
426
|
-
humanReviewId: string;
|
|
427
|
-
source: ListDatasetDatapointsEvaluationsDatasetsSource;
|
|
428
|
-
/**
|
|
429
|
-
* The unique identifier of the user who reviewed the item
|
|
430
|
-
*/
|
|
431
|
-
reviewedById: string;
|
|
432
|
-
/**
|
|
433
|
-
* The date and time the item was reviewed
|
|
434
|
-
*/
|
|
435
|
-
reviewedAt: Date;
|
|
436
|
-
type: "string_array";
|
|
437
|
-
values: Array<string>;
|
|
438
|
-
};
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* The type of evaluation
|
|
442
|
-
*/
|
|
443
|
-
export const ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType = {
|
|
444
|
-
HumanReview: "human_review",
|
|
445
|
-
} as const;
|
|
446
|
-
/**
|
|
447
|
-
* The type of evaluation
|
|
448
|
-
*/
|
|
449
|
-
export type ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType =
|
|
450
|
-
ClosedEnum<
|
|
451
|
-
typeof ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType
|
|
452
|
-
>;
|
|
453
|
-
|
|
454
|
-
export const ListDatasetDatapointsEvaluationsSource = {
|
|
455
|
-
Orq: "orq",
|
|
456
|
-
External: "external",
|
|
457
|
-
} as const;
|
|
458
|
-
export type ListDatasetDatapointsEvaluationsSource = ClosedEnum<
|
|
459
|
-
typeof ListDatasetDatapointsEvaluationsSource
|
|
460
|
-
>;
|
|
461
|
-
|
|
462
|
-
export type ListDatasetDatapointsEvaluations2 = {
|
|
463
|
-
/**
|
|
464
|
-
* The unique identifier of the human evaluation
|
|
465
|
-
*/
|
|
466
|
-
id: string;
|
|
467
|
-
/**
|
|
468
|
-
* The type of evaluation
|
|
469
|
-
*/
|
|
470
|
-
evaluationType:
|
|
471
|
-
ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType;
|
|
472
|
-
/**
|
|
473
|
-
* The unique identifier of the human review
|
|
474
|
-
*/
|
|
475
|
-
humanReviewId: string;
|
|
476
|
-
source: ListDatasetDatapointsEvaluationsSource;
|
|
477
|
-
/**
|
|
478
|
-
* The unique identifier of the user who reviewed the item
|
|
479
|
-
*/
|
|
480
|
-
reviewedById: string;
|
|
481
|
-
/**
|
|
482
|
-
* The date and time the item was reviewed
|
|
483
|
-
*/
|
|
484
|
-
reviewedAt: Date;
|
|
485
|
-
type: "number";
|
|
486
|
-
value: number;
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* The type of evaluation
|
|
491
|
-
*/
|
|
492
|
-
export const ListDatasetDatapointsEvaluationsDatasetsEvaluationType = {
|
|
493
|
-
HumanReview: "human_review",
|
|
494
|
-
} as const;
|
|
495
|
-
/**
|
|
496
|
-
* The type of evaluation
|
|
497
|
-
*/
|
|
498
|
-
export type ListDatasetDatapointsEvaluationsDatasetsEvaluationType = ClosedEnum<
|
|
499
|
-
typeof ListDatasetDatapointsEvaluationsDatasetsEvaluationType
|
|
500
|
-
>;
|
|
501
|
-
|
|
502
|
-
export const ListDatasetDatapointsEvaluationsDatasetsResponseSource = {
|
|
503
|
-
Orq: "orq",
|
|
504
|
-
External: "external",
|
|
505
|
-
} as const;
|
|
506
|
-
export type ListDatasetDatapointsEvaluationsDatasetsResponseSource = ClosedEnum<
|
|
507
|
-
typeof ListDatasetDatapointsEvaluationsDatasetsResponseSource
|
|
508
|
-
>;
|
|
509
|
-
|
|
510
|
-
export type ListDatasetDatapointsEvaluations1 = {
|
|
511
|
-
/**
|
|
512
|
-
* The unique identifier of the human evaluation
|
|
513
|
-
*/
|
|
514
|
-
id: string;
|
|
515
|
-
/**
|
|
516
|
-
* The type of evaluation
|
|
517
|
-
*/
|
|
518
|
-
evaluationType: ListDatasetDatapointsEvaluationsDatasetsEvaluationType;
|
|
519
|
-
/**
|
|
520
|
-
* The unique identifier of the human review
|
|
521
|
-
*/
|
|
522
|
-
humanReviewId: string;
|
|
523
|
-
source: ListDatasetDatapointsEvaluationsDatasetsResponseSource;
|
|
524
|
-
/**
|
|
525
|
-
* The unique identifier of the user who reviewed the item
|
|
526
|
-
*/
|
|
527
|
-
reviewedById: string;
|
|
528
|
-
/**
|
|
529
|
-
* The date and time the item was reviewed
|
|
530
|
-
*/
|
|
531
|
-
reviewedAt: Date;
|
|
532
|
-
type: "string";
|
|
533
|
-
value: string;
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
export type ListDatasetDatapointsEvaluations =
|
|
537
|
-
| ListDatasetDatapointsEvaluations1
|
|
538
|
-
| ListDatasetDatapointsEvaluations2
|
|
539
|
-
| ListDatasetDatapointsEvaluations3;
|
|
540
|
-
|
|
541
|
-
export type ListDatasetDatapointsData = {
|
|
542
|
-
/**
|
|
543
|
-
* The unique identifier of the dataset item
|
|
544
|
-
*/
|
|
545
|
-
id: string;
|
|
546
|
-
/**
|
|
547
|
-
* The unique identifier of the workspace it belongs to
|
|
548
|
-
*/
|
|
549
|
-
workspaceId: string;
|
|
550
|
-
/**
|
|
551
|
-
* The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.
|
|
552
|
-
*/
|
|
553
|
-
inputs?: { [k: string]: any } | undefined;
|
|
554
|
-
/**
|
|
555
|
-
* A list of messages comprising the conversation so far
|
|
556
|
-
*/
|
|
557
|
-
messages?:
|
|
558
|
-
| Array<
|
|
559
|
-
| ListDatasetDatapointsMessagesSystemMessage
|
|
560
|
-
| ListDatasetDatapointsMessagesDeveloperMessage
|
|
561
|
-
| ListDatasetDatapointsMessagesUserMessage
|
|
562
|
-
| ListDatasetDatapointsMessagesAssistantMessage
|
|
563
|
-
| ListDatasetDatapointsMessagesToolMessage
|
|
564
|
-
>
|
|
565
|
-
| undefined;
|
|
566
|
-
expectedOutput?: string | undefined;
|
|
567
|
-
/**
|
|
568
|
-
* Evaluations associated with the datapoint
|
|
569
|
-
*/
|
|
570
|
-
evaluations?:
|
|
571
|
-
| Array<
|
|
572
|
-
| ListDatasetDatapointsEvaluations1
|
|
573
|
-
| ListDatasetDatapointsEvaluations2
|
|
574
|
-
| ListDatasetDatapointsEvaluations3
|
|
575
|
-
>
|
|
576
|
-
| undefined;
|
|
577
|
-
/**
|
|
578
|
-
* The unique identifier of the dataset
|
|
579
|
-
*/
|
|
580
|
-
datasetId: string;
|
|
581
|
-
/**
|
|
582
|
-
* The version of the dataset snapshot
|
|
583
|
-
*/
|
|
584
|
-
snapshotVersion?: string | undefined;
|
|
585
|
-
/**
|
|
586
|
-
* The unique identifier of the user who created the dataset
|
|
587
|
-
*/
|
|
588
|
-
createdById?: string | undefined;
|
|
589
|
-
/**
|
|
590
|
-
* The unique identifier of the user who last updated the dataset
|
|
591
|
-
*/
|
|
592
|
-
updatedById?: string | undefined;
|
|
593
|
-
/**
|
|
594
|
-
* The date and time the resource was created
|
|
595
|
-
*/
|
|
596
|
-
created?: Date | undefined;
|
|
597
|
-
/**
|
|
598
|
-
* The date and time the resource was last updated
|
|
599
|
-
*/
|
|
600
|
-
updated: Date;
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* Datapoints retrieved successfully. Returns a paginated list of datapoints.
|
|
605
|
-
*/
|
|
606
|
-
export type ListDatasetDatapointsResponseBody = {
|
|
607
|
-
object: ListDatasetDatapointsObject;
|
|
608
|
-
data: Array<ListDatasetDatapointsData>;
|
|
609
|
-
hasMore: boolean;
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
/** @internal */
|
|
613
|
-
export type ListDatasetDatapointsRequest$Outbound = {
|
|
614
|
-
dataset_id: string;
|
|
615
|
-
limit: number;
|
|
616
|
-
starting_after?: string | undefined;
|
|
617
|
-
ending_before?: string | undefined;
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
/** @internal */
|
|
621
|
-
export const ListDatasetDatapointsRequest$outboundSchema: z.ZodType<
|
|
622
|
-
ListDatasetDatapointsRequest$Outbound,
|
|
623
|
-
z.ZodTypeDef,
|
|
624
|
-
ListDatasetDatapointsRequest
|
|
625
|
-
> = z.object({
|
|
626
|
-
datasetId: z.string(),
|
|
627
|
-
limit: z.number().int().default(10),
|
|
628
|
-
startingAfter: z.string().optional(),
|
|
629
|
-
endingBefore: z.string().optional(),
|
|
630
|
-
}).transform((v) => {
|
|
631
|
-
return remap$(v, {
|
|
632
|
-
datasetId: "dataset_id",
|
|
633
|
-
startingAfter: "starting_after",
|
|
634
|
-
endingBefore: "ending_before",
|
|
635
|
-
});
|
|
636
|
-
});
|
|
637
|
-
|
|
638
|
-
export function listDatasetDatapointsRequestToJSON(
|
|
639
|
-
listDatasetDatapointsRequest: ListDatasetDatapointsRequest,
|
|
640
|
-
): string {
|
|
641
|
-
return JSON.stringify(
|
|
642
|
-
ListDatasetDatapointsRequest$outboundSchema.parse(
|
|
643
|
-
listDatasetDatapointsRequest,
|
|
644
|
-
),
|
|
645
|
-
);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/** @internal */
|
|
649
|
-
export const ListDatasetDatapointsObject$inboundSchema: z.ZodNativeEnum<
|
|
650
|
-
typeof ListDatasetDatapointsObject
|
|
651
|
-
> = z.nativeEnum(ListDatasetDatapointsObject);
|
|
652
|
-
|
|
653
|
-
/** @internal */
|
|
654
|
-
export const ListDatasetDatapointsContentDatasetsResponse2$inboundSchema:
|
|
655
|
-
z.ZodType<
|
|
656
|
-
ListDatasetDatapointsContentDatasetsResponse2,
|
|
657
|
-
z.ZodTypeDef,
|
|
658
|
-
unknown
|
|
659
|
-
> = components.TextContentPartSchema$inboundSchema;
|
|
660
|
-
|
|
661
|
-
export function listDatasetDatapointsContentDatasetsResponse2FromJSON(
|
|
662
|
-
jsonString: string,
|
|
663
|
-
): SafeParseResult<
|
|
664
|
-
ListDatasetDatapointsContentDatasetsResponse2,
|
|
665
|
-
SDKValidationError
|
|
666
|
-
> {
|
|
667
|
-
return safeParse(
|
|
668
|
-
jsonString,
|
|
669
|
-
(x) =>
|
|
670
|
-
ListDatasetDatapointsContentDatasetsResponse2$inboundSchema.parse(
|
|
671
|
-
JSON.parse(x),
|
|
672
|
-
),
|
|
673
|
-
`Failed to parse 'ListDatasetDatapointsContentDatasetsResponse2' from JSON`,
|
|
674
|
-
);
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
/** @internal */
|
|
678
|
-
export const ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema:
|
|
679
|
-
z.ZodType<
|
|
680
|
-
ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent,
|
|
681
|
-
z.ZodTypeDef,
|
|
682
|
-
unknown
|
|
683
|
-
> = z.union([
|
|
684
|
-
z.string(),
|
|
685
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
686
|
-
]);
|
|
687
|
-
|
|
688
|
-
export function listDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContentFromJSON(
|
|
689
|
-
jsonString: string,
|
|
690
|
-
): SafeParseResult<
|
|
691
|
-
ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent,
|
|
692
|
-
SDKValidationError
|
|
693
|
-
> {
|
|
694
|
-
return safeParse(
|
|
695
|
-
jsonString,
|
|
696
|
-
(x) =>
|
|
697
|
-
ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema
|
|
698
|
-
.parse(JSON.parse(x)),
|
|
699
|
-
`Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent' from JSON`,
|
|
700
|
-
);
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
/** @internal */
|
|
704
|
-
export const ListDatasetDatapointsMessagesDatasetsType$inboundSchema:
|
|
705
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsMessagesDatasetsType> = z
|
|
706
|
-
.nativeEnum(ListDatasetDatapointsMessagesDatasetsType);
|
|
707
|
-
|
|
708
|
-
/** @internal */
|
|
709
|
-
export const ListDatasetDatapointsMessagesTtl$inboundSchema: z.ZodNativeEnum<
|
|
710
|
-
typeof ListDatasetDatapointsMessagesTtl
|
|
711
|
-
> = z.nativeEnum(ListDatasetDatapointsMessagesTtl);
|
|
712
|
-
|
|
713
|
-
/** @internal */
|
|
714
|
-
export const ListDatasetDatapointsMessagesCacheControl$inboundSchema: z.ZodType<
|
|
715
|
-
ListDatasetDatapointsMessagesCacheControl,
|
|
716
|
-
z.ZodTypeDef,
|
|
717
|
-
unknown
|
|
718
|
-
> = z.object({
|
|
719
|
-
type: ListDatasetDatapointsMessagesDatasetsType$inboundSchema,
|
|
720
|
-
ttl: ListDatasetDatapointsMessagesTtl$inboundSchema.default("5m"),
|
|
721
|
-
});
|
|
722
|
-
|
|
723
|
-
export function listDatasetDatapointsMessagesCacheControlFromJSON(
|
|
724
|
-
jsonString: string,
|
|
725
|
-
): SafeParseResult<
|
|
726
|
-
ListDatasetDatapointsMessagesCacheControl,
|
|
727
|
-
SDKValidationError
|
|
728
|
-
> {
|
|
729
|
-
return safeParse(
|
|
730
|
-
jsonString,
|
|
731
|
-
(x) =>
|
|
732
|
-
ListDatasetDatapointsMessagesCacheControl$inboundSchema.parse(
|
|
733
|
-
JSON.parse(x),
|
|
734
|
-
),
|
|
735
|
-
`Failed to parse 'ListDatasetDatapointsMessagesCacheControl' from JSON`,
|
|
736
|
-
);
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
/** @internal */
|
|
740
|
-
export const ListDatasetDatapointsMessagesToolMessage$inboundSchema: z.ZodType<
|
|
741
|
-
ListDatasetDatapointsMessagesToolMessage,
|
|
742
|
-
z.ZodTypeDef,
|
|
743
|
-
unknown
|
|
744
|
-
> = z.object({
|
|
745
|
-
role: z.literal("tool"),
|
|
746
|
-
content: z.union([
|
|
747
|
-
z.string(),
|
|
748
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
749
|
-
]),
|
|
750
|
-
tool_call_id: z.nullable(z.string()),
|
|
751
|
-
cache_control: z.lazy(() =>
|
|
752
|
-
ListDatasetDatapointsMessagesCacheControl$inboundSchema
|
|
753
|
-
).optional(),
|
|
754
|
-
}).transform((v) => {
|
|
755
|
-
return remap$(v, {
|
|
756
|
-
"tool_call_id": "toolCallId",
|
|
757
|
-
"cache_control": "cacheControl",
|
|
758
|
-
});
|
|
759
|
-
});
|
|
760
|
-
|
|
761
|
-
export function listDatasetDatapointsMessagesToolMessageFromJSON(
|
|
762
|
-
jsonString: string,
|
|
763
|
-
): SafeParseResult<
|
|
764
|
-
ListDatasetDatapointsMessagesToolMessage,
|
|
765
|
-
SDKValidationError
|
|
766
|
-
> {
|
|
767
|
-
return safeParse(
|
|
768
|
-
jsonString,
|
|
769
|
-
(x) =>
|
|
770
|
-
ListDatasetDatapointsMessagesToolMessage$inboundSchema.parse(
|
|
771
|
-
JSON.parse(x),
|
|
772
|
-
),
|
|
773
|
-
`Failed to parse 'ListDatasetDatapointsMessagesToolMessage' from JSON`,
|
|
774
|
-
);
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
/** @internal */
|
|
778
|
-
export const ListDatasetDatapointsContentDatasets2$inboundSchema: z.ZodType<
|
|
779
|
-
ListDatasetDatapointsContentDatasets2,
|
|
780
|
-
z.ZodTypeDef,
|
|
781
|
-
unknown
|
|
782
|
-
> = z.union([
|
|
783
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
784
|
-
z.object({ type: z.literal("text") }),
|
|
785
|
-
),
|
|
786
|
-
components.RefusalPartSchema$inboundSchema,
|
|
787
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
788
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
789
|
-
]);
|
|
790
|
-
|
|
791
|
-
export function listDatasetDatapointsContentDatasets2FromJSON(
|
|
792
|
-
jsonString: string,
|
|
793
|
-
): SafeParseResult<ListDatasetDatapointsContentDatasets2, SDKValidationError> {
|
|
794
|
-
return safeParse(
|
|
795
|
-
jsonString,
|
|
796
|
-
(x) =>
|
|
797
|
-
ListDatasetDatapointsContentDatasets2$inboundSchema.parse(JSON.parse(x)),
|
|
798
|
-
`Failed to parse 'ListDatasetDatapointsContentDatasets2' from JSON`,
|
|
799
|
-
);
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
/** @internal */
|
|
803
|
-
export const ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema:
|
|
804
|
-
z.ZodType<
|
|
805
|
-
ListDatasetDatapointsMessagesDatasetsResponse200Content,
|
|
806
|
-
z.ZodTypeDef,
|
|
807
|
-
unknown
|
|
808
|
-
> = z.union([
|
|
809
|
-
z.string(),
|
|
810
|
-
z.array(
|
|
811
|
-
z.union([
|
|
812
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
813
|
-
z.object({ type: z.literal("text") }),
|
|
814
|
-
),
|
|
815
|
-
components.RefusalPartSchema$inboundSchema,
|
|
816
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
817
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
818
|
-
]),
|
|
819
|
-
),
|
|
820
|
-
]);
|
|
821
|
-
|
|
822
|
-
export function listDatasetDatapointsMessagesDatasetsResponse200ContentFromJSON(
|
|
823
|
-
jsonString: string,
|
|
824
|
-
): SafeParseResult<
|
|
825
|
-
ListDatasetDatapointsMessagesDatasetsResponse200Content,
|
|
826
|
-
SDKValidationError
|
|
827
|
-
> {
|
|
828
|
-
return safeParse(
|
|
829
|
-
jsonString,
|
|
830
|
-
(x) =>
|
|
831
|
-
ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema
|
|
832
|
-
.parse(JSON.parse(x)),
|
|
833
|
-
`Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponse200Content' from JSON`,
|
|
834
|
-
);
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
/** @internal */
|
|
838
|
-
export const ListDatasetDatapointsMessagesAudio$inboundSchema: z.ZodType<
|
|
839
|
-
ListDatasetDatapointsMessagesAudio,
|
|
840
|
-
z.ZodTypeDef,
|
|
841
|
-
unknown
|
|
842
|
-
> = z.object({
|
|
843
|
-
id: z.string(),
|
|
844
|
-
});
|
|
845
|
-
|
|
846
|
-
export function listDatasetDatapointsMessagesAudioFromJSON(
|
|
847
|
-
jsonString: string,
|
|
848
|
-
): SafeParseResult<ListDatasetDatapointsMessagesAudio, SDKValidationError> {
|
|
849
|
-
return safeParse(
|
|
850
|
-
jsonString,
|
|
851
|
-
(x) =>
|
|
852
|
-
ListDatasetDatapointsMessagesAudio$inboundSchema.parse(JSON.parse(x)),
|
|
853
|
-
`Failed to parse 'ListDatasetDatapointsMessagesAudio' from JSON`,
|
|
854
|
-
);
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
/** @internal */
|
|
858
|
-
export const ListDatasetDatapointsMessagesType$inboundSchema: z.ZodNativeEnum<
|
|
859
|
-
typeof ListDatasetDatapointsMessagesType
|
|
860
|
-
> = z.nativeEnum(ListDatasetDatapointsMessagesType);
|
|
861
|
-
|
|
862
|
-
/** @internal */
|
|
863
|
-
export const ListDatasetDatapointsMessagesFunction$inboundSchema: z.ZodType<
|
|
864
|
-
ListDatasetDatapointsMessagesFunction,
|
|
865
|
-
z.ZodTypeDef,
|
|
866
|
-
unknown
|
|
867
|
-
> = z.object({
|
|
868
|
-
name: z.string().optional(),
|
|
869
|
-
arguments: z.string().optional(),
|
|
870
|
-
});
|
|
871
|
-
|
|
872
|
-
export function listDatasetDatapointsMessagesFunctionFromJSON(
|
|
873
|
-
jsonString: string,
|
|
874
|
-
): SafeParseResult<ListDatasetDatapointsMessagesFunction, SDKValidationError> {
|
|
875
|
-
return safeParse(
|
|
876
|
-
jsonString,
|
|
877
|
-
(x) =>
|
|
878
|
-
ListDatasetDatapointsMessagesFunction$inboundSchema.parse(JSON.parse(x)),
|
|
879
|
-
`Failed to parse 'ListDatasetDatapointsMessagesFunction' from JSON`,
|
|
880
|
-
);
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
/** @internal */
|
|
884
|
-
export const ListDatasetDatapointsMessagesToolCalls$inboundSchema: z.ZodType<
|
|
885
|
-
ListDatasetDatapointsMessagesToolCalls,
|
|
886
|
-
z.ZodTypeDef,
|
|
887
|
-
unknown
|
|
888
|
-
> = z.object({
|
|
889
|
-
id: z.string(),
|
|
890
|
-
type: ListDatasetDatapointsMessagesType$inboundSchema,
|
|
891
|
-
function: z.lazy(() => ListDatasetDatapointsMessagesFunction$inboundSchema),
|
|
892
|
-
thought_signature: z.string().optional(),
|
|
893
|
-
}).transform((v) => {
|
|
894
|
-
return remap$(v, {
|
|
895
|
-
"thought_signature": "thoughtSignature",
|
|
896
|
-
});
|
|
897
|
-
});
|
|
898
|
-
|
|
899
|
-
export function listDatasetDatapointsMessagesToolCallsFromJSON(
|
|
900
|
-
jsonString: string,
|
|
901
|
-
): SafeParseResult<ListDatasetDatapointsMessagesToolCalls, SDKValidationError> {
|
|
902
|
-
return safeParse(
|
|
903
|
-
jsonString,
|
|
904
|
-
(x) =>
|
|
905
|
-
ListDatasetDatapointsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
906
|
-
`Failed to parse 'ListDatasetDatapointsMessagesToolCalls' from JSON`,
|
|
907
|
-
);
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
/** @internal */
|
|
911
|
-
export const ListDatasetDatapointsMessagesAssistantMessage$inboundSchema:
|
|
912
|
-
z.ZodType<
|
|
913
|
-
ListDatasetDatapointsMessagesAssistantMessage,
|
|
914
|
-
z.ZodTypeDef,
|
|
915
|
-
unknown
|
|
916
|
-
> = z.object({
|
|
917
|
-
content: z.nullable(
|
|
918
|
-
z.union([
|
|
919
|
-
z.string(),
|
|
920
|
-
z.array(
|
|
921
|
-
z.union([
|
|
922
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
923
|
-
z.object({ type: z.literal("text") }),
|
|
924
|
-
),
|
|
925
|
-
components.RefusalPartSchema$inboundSchema,
|
|
926
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
927
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
928
|
-
]),
|
|
929
|
-
),
|
|
930
|
-
]),
|
|
931
|
-
).optional(),
|
|
932
|
-
refusal: z.nullable(z.string()).optional(),
|
|
933
|
-
role: z.literal("assistant"),
|
|
934
|
-
name: z.string().optional(),
|
|
935
|
-
audio: z.nullable(
|
|
936
|
-
z.lazy(() => ListDatasetDatapointsMessagesAudio$inboundSchema),
|
|
937
|
-
).optional(),
|
|
938
|
-
tool_calls: z.array(
|
|
939
|
-
z.lazy(() => ListDatasetDatapointsMessagesToolCalls$inboundSchema),
|
|
940
|
-
).optional(),
|
|
941
|
-
}).transform((v) => {
|
|
942
|
-
return remap$(v, {
|
|
943
|
-
"tool_calls": "toolCalls",
|
|
944
|
-
});
|
|
945
|
-
});
|
|
946
|
-
|
|
947
|
-
export function listDatasetDatapointsMessagesAssistantMessageFromJSON(
|
|
948
|
-
jsonString: string,
|
|
949
|
-
): SafeParseResult<
|
|
950
|
-
ListDatasetDatapointsMessagesAssistantMessage,
|
|
951
|
-
SDKValidationError
|
|
952
|
-
> {
|
|
953
|
-
return safeParse(
|
|
954
|
-
jsonString,
|
|
955
|
-
(x) =>
|
|
956
|
-
ListDatasetDatapointsMessagesAssistantMessage$inboundSchema.parse(
|
|
957
|
-
JSON.parse(x),
|
|
958
|
-
),
|
|
959
|
-
`Failed to parse 'ListDatasetDatapointsMessagesAssistantMessage' from JSON`,
|
|
960
|
-
);
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
/** @internal */
|
|
964
|
-
export const ListDatasetDatapoints2DatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
965
|
-
typeof ListDatasetDatapoints2DatasetsType
|
|
966
|
-
> = z.nativeEnum(ListDatasetDatapoints2DatasetsType);
|
|
967
|
-
|
|
968
|
-
/** @internal */
|
|
969
|
-
export const ListDatasetDatapoints2Ttl$inboundSchema: z.ZodNativeEnum<
|
|
970
|
-
typeof ListDatasetDatapoints2Ttl
|
|
971
|
-
> = z.nativeEnum(ListDatasetDatapoints2Ttl);
|
|
972
|
-
|
|
973
|
-
/** @internal */
|
|
974
|
-
export const ListDatasetDatapoints2CacheControl$inboundSchema: z.ZodType<
|
|
975
|
-
ListDatasetDatapoints2CacheControl,
|
|
976
|
-
z.ZodTypeDef,
|
|
977
|
-
unknown
|
|
978
|
-
> = z.object({
|
|
979
|
-
type: ListDatasetDatapoints2DatasetsType$inboundSchema,
|
|
980
|
-
ttl: ListDatasetDatapoints2Ttl$inboundSchema.default("5m"),
|
|
981
|
-
});
|
|
982
|
-
|
|
983
|
-
export function listDatasetDatapoints2CacheControlFromJSON(
|
|
984
|
-
jsonString: string,
|
|
985
|
-
): SafeParseResult<ListDatasetDatapoints2CacheControl, SDKValidationError> {
|
|
986
|
-
return safeParse(
|
|
987
|
-
jsonString,
|
|
988
|
-
(x) =>
|
|
989
|
-
ListDatasetDatapoints2CacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
990
|
-
`Failed to parse 'ListDatasetDatapoints2CacheControl' from JSON`,
|
|
991
|
-
);
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
/** @internal */
|
|
995
|
-
export const ListDatasetDatapoints24$inboundSchema: z.ZodType<
|
|
996
|
-
ListDatasetDatapoints24,
|
|
997
|
-
z.ZodTypeDef,
|
|
998
|
-
unknown
|
|
999
|
-
> = z.object({
|
|
1000
|
-
type: z.literal("file"),
|
|
1001
|
-
cache_control: z.lazy(() => ListDatasetDatapoints2CacheControl$inboundSchema)
|
|
1002
|
-
.optional(),
|
|
1003
|
-
file: components.FileContentPartSchema$inboundSchema,
|
|
1004
|
-
}).transform((v) => {
|
|
1005
|
-
return remap$(v, {
|
|
1006
|
-
"cache_control": "cacheControl",
|
|
1007
|
-
});
|
|
1008
|
-
});
|
|
1009
|
-
|
|
1010
|
-
export function listDatasetDatapoints24FromJSON(
|
|
1011
|
-
jsonString: string,
|
|
1012
|
-
): SafeParseResult<ListDatasetDatapoints24, SDKValidationError> {
|
|
1013
|
-
return safeParse(
|
|
1014
|
-
jsonString,
|
|
1015
|
-
(x) => ListDatasetDatapoints24$inboundSchema.parse(JSON.parse(x)),
|
|
1016
|
-
`Failed to parse 'ListDatasetDatapoints24' from JSON`,
|
|
1017
|
-
);
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
/** @internal */
|
|
1021
|
-
export const ListDatasetDatapointsContent2$inboundSchema: z.ZodType<
|
|
1022
|
-
ListDatasetDatapointsContent2,
|
|
1023
|
-
z.ZodTypeDef,
|
|
1024
|
-
unknown
|
|
1025
|
-
> = z.union([
|
|
1026
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
1027
|
-
z.object({ type: z.literal("text") }),
|
|
1028
|
-
),
|
|
1029
|
-
components.ImageContentPartSchema$inboundSchema,
|
|
1030
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
1031
|
-
z.lazy(() => ListDatasetDatapoints24$inboundSchema),
|
|
1032
|
-
]);
|
|
1033
|
-
|
|
1034
|
-
export function listDatasetDatapointsContent2FromJSON(
|
|
1035
|
-
jsonString: string,
|
|
1036
|
-
): SafeParseResult<ListDatasetDatapointsContent2, SDKValidationError> {
|
|
1037
|
-
return safeParse(
|
|
1038
|
-
jsonString,
|
|
1039
|
-
(x) => ListDatasetDatapointsContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1040
|
-
`Failed to parse 'ListDatasetDatapointsContent2' from JSON`,
|
|
1041
|
-
);
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
/** @internal */
|
|
1045
|
-
export const ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema:
|
|
1046
|
-
z.ZodType<
|
|
1047
|
-
ListDatasetDatapointsMessagesDatasetsResponseContent,
|
|
1048
|
-
z.ZodTypeDef,
|
|
1049
|
-
unknown
|
|
1050
|
-
> = z.union([
|
|
1051
|
-
z.string(),
|
|
1052
|
-
z.array(
|
|
1053
|
-
z.union([
|
|
1054
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
1055
|
-
z.object({ type: z.literal("text") }),
|
|
1056
|
-
),
|
|
1057
|
-
components.ImageContentPartSchema$inboundSchema,
|
|
1058
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
1059
|
-
z.lazy(() => ListDatasetDatapoints24$inboundSchema),
|
|
1060
|
-
]),
|
|
1061
|
-
),
|
|
1062
|
-
]);
|
|
1063
|
-
|
|
1064
|
-
export function listDatasetDatapointsMessagesDatasetsResponseContentFromJSON(
|
|
1065
|
-
jsonString: string,
|
|
1066
|
-
): SafeParseResult<
|
|
1067
|
-
ListDatasetDatapointsMessagesDatasetsResponseContent,
|
|
1068
|
-
SDKValidationError
|
|
1069
|
-
> {
|
|
1070
|
-
return safeParse(
|
|
1071
|
-
jsonString,
|
|
1072
|
-
(x) =>
|
|
1073
|
-
ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema.parse(
|
|
1074
|
-
JSON.parse(x),
|
|
1075
|
-
),
|
|
1076
|
-
`Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponseContent' from JSON`,
|
|
1077
|
-
);
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
/** @internal */
|
|
1081
|
-
export const ListDatasetDatapointsMessagesUserMessage$inboundSchema: z.ZodType<
|
|
1082
|
-
ListDatasetDatapointsMessagesUserMessage,
|
|
1083
|
-
z.ZodTypeDef,
|
|
1084
|
-
unknown
|
|
1085
|
-
> = z.object({
|
|
1086
|
-
role: z.literal("user"),
|
|
1087
|
-
name: z.string().optional(),
|
|
1088
|
-
content: z.union([
|
|
1089
|
-
z.string(),
|
|
1090
|
-
z.array(
|
|
1091
|
-
z.union([
|
|
1092
|
-
components.TextContentPartSchema$inboundSchema.and(
|
|
1093
|
-
z.object({ type: z.literal("text") }),
|
|
1094
|
-
),
|
|
1095
|
-
components.ImageContentPartSchema$inboundSchema,
|
|
1096
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
1097
|
-
z.lazy(() => ListDatasetDatapoints24$inboundSchema),
|
|
1098
|
-
]),
|
|
1099
|
-
),
|
|
1100
|
-
]),
|
|
1101
|
-
});
|
|
1102
|
-
|
|
1103
|
-
export function listDatasetDatapointsMessagesUserMessageFromJSON(
|
|
1104
|
-
jsonString: string,
|
|
1105
|
-
): SafeParseResult<
|
|
1106
|
-
ListDatasetDatapointsMessagesUserMessage,
|
|
1107
|
-
SDKValidationError
|
|
1108
|
-
> {
|
|
1109
|
-
return safeParse(
|
|
1110
|
-
jsonString,
|
|
1111
|
-
(x) =>
|
|
1112
|
-
ListDatasetDatapointsMessagesUserMessage$inboundSchema.parse(
|
|
1113
|
-
JSON.parse(x),
|
|
1114
|
-
),
|
|
1115
|
-
`Failed to parse 'ListDatasetDatapointsMessagesUserMessage' from JSON`,
|
|
1116
|
-
);
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
/** @internal */
|
|
1120
|
-
export const ListDatasetDatapointsMessagesDatasetsContent$inboundSchema:
|
|
1121
|
-
z.ZodType<
|
|
1122
|
-
ListDatasetDatapointsMessagesDatasetsContent,
|
|
1123
|
-
z.ZodTypeDef,
|
|
1124
|
-
unknown
|
|
1125
|
-
> = z.union([
|
|
1126
|
-
z.string(),
|
|
1127
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1128
|
-
]);
|
|
1129
|
-
|
|
1130
|
-
export function listDatasetDatapointsMessagesDatasetsContentFromJSON(
|
|
1131
|
-
jsonString: string,
|
|
1132
|
-
): SafeParseResult<
|
|
1133
|
-
ListDatasetDatapointsMessagesDatasetsContent,
|
|
1134
|
-
SDKValidationError
|
|
1135
|
-
> {
|
|
1136
|
-
return safeParse(
|
|
1137
|
-
jsonString,
|
|
1138
|
-
(x) =>
|
|
1139
|
-
ListDatasetDatapointsMessagesDatasetsContent$inboundSchema.parse(
|
|
1140
|
-
JSON.parse(x),
|
|
1141
|
-
),
|
|
1142
|
-
`Failed to parse 'ListDatasetDatapointsMessagesDatasetsContent' from JSON`,
|
|
1143
|
-
);
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
/** @internal */
|
|
1147
|
-
export const ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema:
|
|
1148
|
-
z.ZodType<
|
|
1149
|
-
ListDatasetDatapointsMessagesDeveloperMessage,
|
|
1150
|
-
z.ZodTypeDef,
|
|
1151
|
-
unknown
|
|
1152
|
-
> = z.object({
|
|
1153
|
-
role: z.literal("developer"),
|
|
1154
|
-
content: z.union([
|
|
1155
|
-
z.string(),
|
|
1156
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1157
|
-
]),
|
|
1158
|
-
name: z.string().optional(),
|
|
1159
|
-
});
|
|
1160
|
-
|
|
1161
|
-
export function listDatasetDatapointsMessagesDeveloperMessageFromJSON(
|
|
1162
|
-
jsonString: string,
|
|
1163
|
-
): SafeParseResult<
|
|
1164
|
-
ListDatasetDatapointsMessagesDeveloperMessage,
|
|
1165
|
-
SDKValidationError
|
|
1166
|
-
> {
|
|
1167
|
-
return safeParse(
|
|
1168
|
-
jsonString,
|
|
1169
|
-
(x) =>
|
|
1170
|
-
ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema.parse(
|
|
1171
|
-
JSON.parse(x),
|
|
1172
|
-
),
|
|
1173
|
-
`Failed to parse 'ListDatasetDatapointsMessagesDeveloperMessage' from JSON`,
|
|
1174
|
-
);
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
/** @internal */
|
|
1178
|
-
export const ListDatasetDatapointsMessagesContent$inboundSchema: z.ZodType<
|
|
1179
|
-
ListDatasetDatapointsMessagesContent,
|
|
1180
|
-
z.ZodTypeDef,
|
|
1181
|
-
unknown
|
|
1182
|
-
> = z.union([
|
|
1183
|
-
z.string(),
|
|
1184
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1185
|
-
]);
|
|
1186
|
-
|
|
1187
|
-
export function listDatasetDatapointsMessagesContentFromJSON(
|
|
1188
|
-
jsonString: string,
|
|
1189
|
-
): SafeParseResult<ListDatasetDatapointsMessagesContent, SDKValidationError> {
|
|
1190
|
-
return safeParse(
|
|
1191
|
-
jsonString,
|
|
1192
|
-
(x) =>
|
|
1193
|
-
ListDatasetDatapointsMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
1194
|
-
`Failed to parse 'ListDatasetDatapointsMessagesContent' from JSON`,
|
|
1195
|
-
);
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
/** @internal */
|
|
1199
|
-
export const ListDatasetDatapointsMessagesSystemMessage$inboundSchema:
|
|
1200
|
-
z.ZodType<ListDatasetDatapointsMessagesSystemMessage, z.ZodTypeDef, unknown> =
|
|
1201
|
-
z.object({
|
|
1202
|
-
role: z.literal("system"),
|
|
1203
|
-
content: z.union([
|
|
1204
|
-
z.string(),
|
|
1205
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1206
|
-
]),
|
|
1207
|
-
name: z.string().optional(),
|
|
1208
|
-
});
|
|
1209
|
-
|
|
1210
|
-
export function listDatasetDatapointsMessagesSystemMessageFromJSON(
|
|
1211
|
-
jsonString: string,
|
|
1212
|
-
): SafeParseResult<
|
|
1213
|
-
ListDatasetDatapointsMessagesSystemMessage,
|
|
1214
|
-
SDKValidationError
|
|
1215
|
-
> {
|
|
1216
|
-
return safeParse(
|
|
1217
|
-
jsonString,
|
|
1218
|
-
(x) =>
|
|
1219
|
-
ListDatasetDatapointsMessagesSystemMessage$inboundSchema.parse(
|
|
1220
|
-
JSON.parse(x),
|
|
1221
|
-
),
|
|
1222
|
-
`Failed to parse 'ListDatasetDatapointsMessagesSystemMessage' from JSON`,
|
|
1223
|
-
);
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
/** @internal */
|
|
1227
|
-
export const ListDatasetDatapointsMessages$inboundSchema: z.ZodType<
|
|
1228
|
-
ListDatasetDatapointsMessages,
|
|
1229
|
-
z.ZodTypeDef,
|
|
1230
|
-
unknown
|
|
1231
|
-
> = z.union([
|
|
1232
|
-
z.lazy(() => ListDatasetDatapointsMessagesSystemMessage$inboundSchema),
|
|
1233
|
-
z.lazy(() => ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema),
|
|
1234
|
-
z.lazy(() => ListDatasetDatapointsMessagesUserMessage$inboundSchema),
|
|
1235
|
-
z.lazy(() => ListDatasetDatapointsMessagesAssistantMessage$inboundSchema),
|
|
1236
|
-
z.lazy(() => ListDatasetDatapointsMessagesToolMessage$inboundSchema),
|
|
1237
|
-
]);
|
|
1238
|
-
|
|
1239
|
-
export function listDatasetDatapointsMessagesFromJSON(
|
|
1240
|
-
jsonString: string,
|
|
1241
|
-
): SafeParseResult<ListDatasetDatapointsMessages, SDKValidationError> {
|
|
1242
|
-
return safeParse(
|
|
1243
|
-
jsonString,
|
|
1244
|
-
(x) => ListDatasetDatapointsMessages$inboundSchema.parse(JSON.parse(x)),
|
|
1245
|
-
`Failed to parse 'ListDatasetDatapointsMessages' from JSON`,
|
|
1246
|
-
);
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
/** @internal */
|
|
1250
|
-
export const ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema:
|
|
1251
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsEvaluationType> = z
|
|
1252
|
-
.nativeEnum(ListDatasetDatapointsEvaluationsEvaluationType);
|
|
1253
|
-
|
|
1254
|
-
/** @internal */
|
|
1255
|
-
export const ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema:
|
|
1256
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsSource> = z
|
|
1257
|
-
.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsSource);
|
|
1258
|
-
|
|
1259
|
-
/** @internal */
|
|
1260
|
-
export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
1261
|
-
ListDatasetDatapointsEvaluations3,
|
|
1262
|
-
z.ZodTypeDef,
|
|
1263
|
-
unknown
|
|
1264
|
-
> = z.object({
|
|
1265
|
-
id: z.string(),
|
|
1266
|
-
evaluation_type: ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema,
|
|
1267
|
-
human_review_id: z.string(),
|
|
1268
|
-
source: ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema.default(
|
|
1269
|
-
"orq",
|
|
1270
|
-
),
|
|
1271
|
-
reviewed_by_id: z.string(),
|
|
1272
|
-
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1273
|
-
"2026-03-10T17:52:56.712Z",
|
|
1274
|
-
).transform(v => new Date(v)),
|
|
1275
|
-
type: z.literal("string_array"),
|
|
1276
|
-
values: z.array(z.string()),
|
|
1277
|
-
}).transform((v) => {
|
|
1278
|
-
return remap$(v, {
|
|
1279
|
-
"evaluation_type": "evaluationType",
|
|
1280
|
-
"human_review_id": "humanReviewId",
|
|
1281
|
-
"reviewed_by_id": "reviewedById",
|
|
1282
|
-
"reviewed_at": "reviewedAt",
|
|
1283
|
-
});
|
|
1284
|
-
});
|
|
1285
|
-
|
|
1286
|
-
export function listDatasetDatapointsEvaluations3FromJSON(
|
|
1287
|
-
jsonString: string,
|
|
1288
|
-
): SafeParseResult<ListDatasetDatapointsEvaluations3, SDKValidationError> {
|
|
1289
|
-
return safeParse(
|
|
1290
|
-
jsonString,
|
|
1291
|
-
(x) => ListDatasetDatapointsEvaluations3$inboundSchema.parse(JSON.parse(x)),
|
|
1292
|
-
`Failed to parse 'ListDatasetDatapointsEvaluations3' from JSON`,
|
|
1293
|
-
);
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
/** @internal */
|
|
1297
|
-
export const ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema:
|
|
1298
|
-
z.ZodNativeEnum<
|
|
1299
|
-
typeof ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType
|
|
1300
|
-
> = z.nativeEnum(
|
|
1301
|
-
ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType,
|
|
1302
|
-
);
|
|
1303
|
-
|
|
1304
|
-
/** @internal */
|
|
1305
|
-
export const ListDatasetDatapointsEvaluationsSource$inboundSchema:
|
|
1306
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsSource> = z.nativeEnum(
|
|
1307
|
-
ListDatasetDatapointsEvaluationsSource,
|
|
1308
|
-
);
|
|
1309
|
-
|
|
1310
|
-
/** @internal */
|
|
1311
|
-
export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
1312
|
-
ListDatasetDatapointsEvaluations2,
|
|
1313
|
-
z.ZodTypeDef,
|
|
1314
|
-
unknown
|
|
1315
|
-
> = z.object({
|
|
1316
|
-
id: z.string(),
|
|
1317
|
-
evaluation_type:
|
|
1318
|
-
ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema,
|
|
1319
|
-
human_review_id: z.string(),
|
|
1320
|
-
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
1321
|
-
reviewed_by_id: z.string(),
|
|
1322
|
-
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1323
|
-
"2026-03-10T17:52:56.711Z",
|
|
1324
|
-
).transform(v => new Date(v)),
|
|
1325
|
-
type: z.literal("number"),
|
|
1326
|
-
value: z.number(),
|
|
1327
|
-
}).transform((v) => {
|
|
1328
|
-
return remap$(v, {
|
|
1329
|
-
"evaluation_type": "evaluationType",
|
|
1330
|
-
"human_review_id": "humanReviewId",
|
|
1331
|
-
"reviewed_by_id": "reviewedById",
|
|
1332
|
-
"reviewed_at": "reviewedAt",
|
|
1333
|
-
});
|
|
1334
|
-
});
|
|
1335
|
-
|
|
1336
|
-
export function listDatasetDatapointsEvaluations2FromJSON(
|
|
1337
|
-
jsonString: string,
|
|
1338
|
-
): SafeParseResult<ListDatasetDatapointsEvaluations2, SDKValidationError> {
|
|
1339
|
-
return safeParse(
|
|
1340
|
-
jsonString,
|
|
1341
|
-
(x) => ListDatasetDatapointsEvaluations2$inboundSchema.parse(JSON.parse(x)),
|
|
1342
|
-
`Failed to parse 'ListDatasetDatapointsEvaluations2' from JSON`,
|
|
1343
|
-
);
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
/** @internal */
|
|
1347
|
-
export const ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema:
|
|
1348
|
-
z.ZodNativeEnum<
|
|
1349
|
-
typeof ListDatasetDatapointsEvaluationsDatasetsEvaluationType
|
|
1350
|
-
> = z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsEvaluationType);
|
|
1351
|
-
|
|
1352
|
-
/** @internal */
|
|
1353
|
-
export const ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema:
|
|
1354
|
-
z.ZodNativeEnum<
|
|
1355
|
-
typeof ListDatasetDatapointsEvaluationsDatasetsResponseSource
|
|
1356
|
-
> = z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsResponseSource);
|
|
1357
|
-
|
|
1358
|
-
/** @internal */
|
|
1359
|
-
export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
1360
|
-
ListDatasetDatapointsEvaluations1,
|
|
1361
|
-
z.ZodTypeDef,
|
|
1362
|
-
unknown
|
|
1363
|
-
> = z.object({
|
|
1364
|
-
id: z.string(),
|
|
1365
|
-
evaluation_type:
|
|
1366
|
-
ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema,
|
|
1367
|
-
human_review_id: z.string(),
|
|
1368
|
-
source: ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema
|
|
1369
|
-
.default("orq"),
|
|
1370
|
-
reviewed_by_id: z.string(),
|
|
1371
|
-
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1372
|
-
"2026-03-10T17:52:56.710Z",
|
|
1373
|
-
).transform(v => new Date(v)),
|
|
1374
|
-
type: z.literal("string"),
|
|
1375
|
-
value: z.string(),
|
|
1376
|
-
}).transform((v) => {
|
|
1377
|
-
return remap$(v, {
|
|
1378
|
-
"evaluation_type": "evaluationType",
|
|
1379
|
-
"human_review_id": "humanReviewId",
|
|
1380
|
-
"reviewed_by_id": "reviewedById",
|
|
1381
|
-
"reviewed_at": "reviewedAt",
|
|
1382
|
-
});
|
|
1383
|
-
});
|
|
1384
|
-
|
|
1385
|
-
export function listDatasetDatapointsEvaluations1FromJSON(
|
|
1386
|
-
jsonString: string,
|
|
1387
|
-
): SafeParseResult<ListDatasetDatapointsEvaluations1, SDKValidationError> {
|
|
1388
|
-
return safeParse(
|
|
1389
|
-
jsonString,
|
|
1390
|
-
(x) => ListDatasetDatapointsEvaluations1$inboundSchema.parse(JSON.parse(x)),
|
|
1391
|
-
`Failed to parse 'ListDatasetDatapointsEvaluations1' from JSON`,
|
|
1392
|
-
);
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
/** @internal */
|
|
1396
|
-
export const ListDatasetDatapointsEvaluations$inboundSchema: z.ZodType<
|
|
1397
|
-
ListDatasetDatapointsEvaluations,
|
|
1398
|
-
z.ZodTypeDef,
|
|
1399
|
-
unknown
|
|
1400
|
-
> = z.union([
|
|
1401
|
-
z.lazy(() => ListDatasetDatapointsEvaluations1$inboundSchema),
|
|
1402
|
-
z.lazy(() => ListDatasetDatapointsEvaluations2$inboundSchema),
|
|
1403
|
-
z.lazy(() => ListDatasetDatapointsEvaluations3$inboundSchema),
|
|
1404
|
-
]);
|
|
1405
|
-
|
|
1406
|
-
export function listDatasetDatapointsEvaluationsFromJSON(
|
|
1407
|
-
jsonString: string,
|
|
1408
|
-
): SafeParseResult<ListDatasetDatapointsEvaluations, SDKValidationError> {
|
|
1409
|
-
return safeParse(
|
|
1410
|
-
jsonString,
|
|
1411
|
-
(x) => ListDatasetDatapointsEvaluations$inboundSchema.parse(JSON.parse(x)),
|
|
1412
|
-
`Failed to parse 'ListDatasetDatapointsEvaluations' from JSON`,
|
|
1413
|
-
);
|
|
1414
|
-
}
|
|
1415
|
-
|
|
1416
|
-
/** @internal */
|
|
1417
|
-
export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
1418
|
-
ListDatasetDatapointsData,
|
|
1419
|
-
z.ZodTypeDef,
|
|
1420
|
-
unknown
|
|
1421
|
-
> = z.object({
|
|
1422
|
-
_id: z.string(),
|
|
1423
|
-
workspace_id: z.string(),
|
|
1424
|
-
inputs: z.record(z.any()).optional(),
|
|
1425
|
-
messages: z.array(
|
|
1426
|
-
z.union([
|
|
1427
|
-
z.lazy(() => ListDatasetDatapointsMessagesSystemMessage$inboundSchema),
|
|
1428
|
-
z.lazy(() =>
|
|
1429
|
-
ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema
|
|
1430
|
-
),
|
|
1431
|
-
z.lazy(() => ListDatasetDatapointsMessagesUserMessage$inboundSchema),
|
|
1432
|
-
z.lazy(() => ListDatasetDatapointsMessagesAssistantMessage$inboundSchema),
|
|
1433
|
-
z.lazy(() => ListDatasetDatapointsMessagesToolMessage$inboundSchema),
|
|
1434
|
-
]),
|
|
1435
|
-
).optional(),
|
|
1436
|
-
expected_output: z.string().optional(),
|
|
1437
|
-
evaluations: z.array(
|
|
1438
|
-
z.union([
|
|
1439
|
-
z.lazy(() => ListDatasetDatapointsEvaluations1$inboundSchema),
|
|
1440
|
-
z.lazy(() => ListDatasetDatapointsEvaluations2$inboundSchema),
|
|
1441
|
-
z.lazy(() => ListDatasetDatapointsEvaluations3$inboundSchema),
|
|
1442
|
-
]),
|
|
1443
|
-
).optional(),
|
|
1444
|
-
dataset_id: z.string(),
|
|
1445
|
-
snapshot_version: z.string().optional(),
|
|
1446
|
-
created_by_id: z.string().optional(),
|
|
1447
|
-
updated_by_id: z.string().optional(),
|
|
1448
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1449
|
-
.optional(),
|
|
1450
|
-
updated: z.string().datetime({ offset: true }).default(
|
|
1451
|
-
"2026-03-10T17:52:40.977Z",
|
|
1452
|
-
).transform(v => new Date(v)),
|
|
1453
|
-
}).transform((v) => {
|
|
1454
|
-
return remap$(v, {
|
|
1455
|
-
"_id": "id",
|
|
1456
|
-
"workspace_id": "workspaceId",
|
|
1457
|
-
"expected_output": "expectedOutput",
|
|
1458
|
-
"dataset_id": "datasetId",
|
|
1459
|
-
"snapshot_version": "snapshotVersion",
|
|
1460
|
-
"created_by_id": "createdById",
|
|
1461
|
-
"updated_by_id": "updatedById",
|
|
1462
|
-
});
|
|
1463
|
-
});
|
|
1464
|
-
|
|
1465
|
-
export function listDatasetDatapointsDataFromJSON(
|
|
1466
|
-
jsonString: string,
|
|
1467
|
-
): SafeParseResult<ListDatasetDatapointsData, SDKValidationError> {
|
|
1468
|
-
return safeParse(
|
|
1469
|
-
jsonString,
|
|
1470
|
-
(x) => ListDatasetDatapointsData$inboundSchema.parse(JSON.parse(x)),
|
|
1471
|
-
`Failed to parse 'ListDatasetDatapointsData' from JSON`,
|
|
1472
|
-
);
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
/** @internal */
|
|
1476
|
-
export const ListDatasetDatapointsResponseBody$inboundSchema: z.ZodType<
|
|
1477
|
-
ListDatasetDatapointsResponseBody,
|
|
1478
|
-
z.ZodTypeDef,
|
|
1479
|
-
unknown
|
|
1480
|
-
> = z.object({
|
|
1481
|
-
object: ListDatasetDatapointsObject$inboundSchema,
|
|
1482
|
-
data: z.array(z.lazy(() => ListDatasetDatapointsData$inboundSchema)),
|
|
1483
|
-
has_more: z.boolean(),
|
|
1484
|
-
}).transform((v) => {
|
|
1485
|
-
return remap$(v, {
|
|
1486
|
-
"has_more": "hasMore",
|
|
1487
|
-
});
|
|
1488
|
-
});
|
|
1489
|
-
|
|
1490
|
-
export function listDatasetDatapointsResponseBodyFromJSON(
|
|
1491
|
-
jsonString: string,
|
|
1492
|
-
): SafeParseResult<ListDatasetDatapointsResponseBody, SDKValidationError> {
|
|
1493
|
-
return safeParse(
|
|
1494
|
-
jsonString,
|
|
1495
|
-
(x) => ListDatasetDatapointsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
1496
|
-
`Failed to parse 'ListDatasetDatapointsResponseBody' from JSON`,
|
|
1497
|
-
);
|
|
1498
|
-
}
|