@orq-ai/node 3.9.4 → 3.10.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/bin/mcp-server.js +245 -322
- package/bin/mcp-server.js.map +33 -33
- package/examples/README.md +26 -0
- package/examples/contactsCreate.example.ts +40 -0
- package/examples/package-lock.json +626 -0
- package/examples/package.json +18 -0
- package/funcs/deploymentsStream.js +7 -7
- package/funcs/deploymentsStream.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/event-streams.d.ts +4 -10
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js +110 -194
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +1 -4
- package/lib/matchers.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/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- 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 +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +3 -2
- package/src/funcs/deploymentsStream.ts +7 -8
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +114 -231
- package/src/lib/matchers.ts +1 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- 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/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- 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 +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/FUNCTIONS.md +0 -103
- package/packages/orq-rc/README.md +0 -958
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -445
- package/packages/orq-rc/docs/sdks/datasets/README.md +0 -825
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -310
- package/packages/orq-rc/docs/sdks/evals/README.md +0 -3035
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -88
- package/packages/orq-rc/docs/sdks/files/README.md +0 -297
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1150
- package/packages/orq-rc/docs/sdks/knowledgebases/README.md +0 -94
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -82
- package/packages/orq-rc/docs/sdks/models/README.md +0 -75
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -550
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -76
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -3206
- package/packages/orq-rc/package.json +0 -45
- package/packages/orq-rc/src/core.ts +0 -13
- 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 -167
- 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 -184
- package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsBertScore.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsBleuScore.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsBotDetection.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContains.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsAll.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsAny.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsNone.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +0 -177
- 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/evalsEndsWith.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsExactMatch.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsGrammar.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsLocalization.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsPii.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +0 -174
- package/packages/orq-rc/src/funcs/evalsRagasContextEntitiesRecall.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +0 -180
- package/packages/orq-rc/src/funcs/evalsRagasContextRecall.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +0 -174
- package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +0 -174
- package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsRagasNoiseSensitivity.ts +0 -180
- package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsSummarization.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsTranslation.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsValidJson.ts +0 -175
- 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/knowledgeBasesChunkText.ts +0 -160
- 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/knowledgeDeleteDatasource.ts +0 -173
- 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/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/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/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 -73
- package/packages/orq-rc/src/lib/event-streams.ts +0 -264
- 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 -348
- 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 -261
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -112
- 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 -249
- package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
- 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/evalsAgeAppropriate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsBertScore.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsBleuScore.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsBotDetection.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContains.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsAny.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsEmail.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsNone.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsUrl.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsValidLink.ts +0 -36
- 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/evalsEndsWith.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsExactMatch.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsFactCheckingKnowledgeBase.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsGrammar.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsLengthBetween.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsLengthGreaterThan.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsLengthLessThan.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsLocalization.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsPii.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasCoherence.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasConciseness.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextEntitiesRecall.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextPrecision.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextRecall.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasCorrectness.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasFaithfulness.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasHarmfulness.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasMaliciousness.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasNoiseSensitivity.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasResponseRelevancy.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasSummarization.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsSentimentClassification.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsSummarization.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsToneOfVoice.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsTranslation.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsValidJson.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/knowledgeBasesChunkText.ts +0 -37
- 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/knowledgeDeleteDatasource.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/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/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.ts +0 -129
- package/packages/orq-rc/src/models/components/deployments.ts +0 -7289
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/security.ts +0 -71
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -91
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/evalsageappropriate.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalsbertscore.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsbleuscore.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsbotdetection.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontains.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalscontainsall.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsany.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsemail.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalscontainsnone.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsurl.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsvalidlink.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsendswith.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsexactmatch.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsfactcheckingknowledgebase.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsgrammar.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalslengthbetween.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalslengthgreaterthan.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalslengthlessthan.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalslocalization.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalspii.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsragascoherence.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalsragasconciseness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragascontextentitiesrecall.ts +0 -163
- package/packages/orq-rc/src/models/errors/evalsragascontextprecision.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsragascontextrecall.ts +0 -158
- package/packages/orq-rc/src/models/errors/evalsragascorrectness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragasfaithfulness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragasharmfulness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragasmaliciousness.ts +0 -158
- package/packages/orq-rc/src/models/errors/evalsragasnoisesensitivity.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsragasresponserelevancy.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsragassummarization.ts +0 -158
- package/packages/orq-rc/src/models/errors/evalssentimentclassification.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalssummarization.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalstoneofvoice.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalstranslation.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalsvalidjson.ts +0 -154
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -80
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -80
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -90
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -56
- package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -154
- 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 -91
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -83
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -80
- package/packages/orq-rc/src/models/operations/chunktext.ts +0 -1629
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -428
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -267
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -5222
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -3830
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -4083
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -66
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5439
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9379
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1256
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2328
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9499
- package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +0 -253
- package/packages/orq-rc/src/models/operations/evalsbertscore.ts +0 -197
- package/packages/orq-rc/src/models/operations/evalsbleuscore.ts +0 -131
- package/packages/orq-rc/src/models/operations/evalsbotdetection.ts +0 -249
- package/packages/orq-rc/src/models/operations/evalscontains.ts +0 -250
- package/packages/orq-rc/src/models/operations/evalscontainsall.ts +0 -248
- package/packages/orq-rc/src/models/operations/evalscontainsany.ts +0 -254
- package/packages/orq-rc/src/models/operations/evalscontainsemail.ts +0 -181
- package/packages/orq-rc/src/models/operations/evalscontainsnone.ts +0 -254
- package/packages/orq-rc/src/models/operations/evalscontainsurl.ts +0 -181
- package/packages/orq-rc/src/models/operations/evalscontainsvalidlink.ts +0 -186
- package/packages/orq-rc/src/models/operations/evalsendswith.ts +0 -250
- package/packages/orq-rc/src/models/operations/evalsexactmatch.ts +0 -183
- package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +0 -299
- package/packages/orq-rc/src/models/operations/evalsgrammar.ts +0 -243
- package/packages/orq-rc/src/models/operations/evalslengthbetween.ts +0 -268
- package/packages/orq-rc/src/models/operations/evalslengthgreaterthan.ts +0 -266
- package/packages/orq-rc/src/models/operations/evalslengthlessthan.ts +0 -259
- package/packages/orq-rc/src/models/operations/evalslocalization.ts +0 -253
- package/packages/orq-rc/src/models/operations/evalspii.ts +0 -243
- package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +0 -152
- package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +0 -153
- package/packages/orq-rc/src/models/operations/evalsragascontextentitiesrecall.ts +0 -164
- package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +0 -166
- package/packages/orq-rc/src/models/operations/evalsragascontextrecall.ts +0 -164
- package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +0 -153
- package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +0 -155
- package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +0 -146
- package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +0 -157
- package/packages/orq-rc/src/models/operations/evalsragasnoisesensitivity.ts +0 -166
- package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +0 -165
- package/packages/orq-rc/src/models/operations/evalsragassummarization.ts +0 -150
- package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +0 -285
- package/packages/orq-rc/src/models/operations/evalssummarization.ts +0 -253
- package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +0 -251
- package/packages/orq-rc/src/models/operations/evalstranslation.ts +0 -251
- package/packages/orq-rc/src/models/operations/evalsvalidjson.ts +0 -177
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2296
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -6163
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -537
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2157
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2162
- package/packages/orq-rc/src/models/operations/index.ts +0 -97
- package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -2520
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -490
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -2784
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -447
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -663
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2294
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -210
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2586
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3367
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -325
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -5155
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -393
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -4131
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -920
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -4220
- 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 -639
- 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 -249
- package/packages/orq-rc/src/sdk/knowledgebases.ts +0 -27
- 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/sdk.ts +0 -73
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -31
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -16
- 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/tsconfig.json +0 -41
|
@@ -1,2586 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type RetrieveDatapointRequest = {
|
|
13
|
-
datasetId: string;
|
|
14
|
-
datapointId: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* The role of the messages author, in this case tool.
|
|
19
|
-
*/
|
|
20
|
-
export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole = {
|
|
21
|
-
Tool: "tool",
|
|
22
|
-
} as const;
|
|
23
|
-
/**
|
|
24
|
-
* The role of the messages author, in this case tool.
|
|
25
|
-
*/
|
|
26
|
-
export type RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole =
|
|
27
|
-
ClosedEnum<
|
|
28
|
-
typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
|
|
29
|
-
>;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* The contents of the tool message.
|
|
33
|
-
*/
|
|
34
|
-
export type RetrieveDatapointMessagesDatasetsResponseContent =
|
|
35
|
-
| string
|
|
36
|
-
| Array<string>;
|
|
37
|
-
|
|
38
|
-
export type RetrieveDatapointMessagesToolMessage = {
|
|
39
|
-
/**
|
|
40
|
-
* The role of the messages author, in this case tool.
|
|
41
|
-
*/
|
|
42
|
-
role: RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole;
|
|
43
|
-
/**
|
|
44
|
-
* The contents of the tool message.
|
|
45
|
-
*/
|
|
46
|
-
content: string | Array<string>;
|
|
47
|
-
/**
|
|
48
|
-
* Tool call that this message is responding to.
|
|
49
|
-
*/
|
|
50
|
-
toolCallId: string;
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* The type of the content part.
|
|
55
|
-
*/
|
|
56
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
|
|
57
|
-
{
|
|
58
|
-
Refusal: "refusal",
|
|
59
|
-
} as const;
|
|
60
|
-
/**
|
|
61
|
-
* The type of the content part.
|
|
62
|
-
*/
|
|
63
|
-
export type RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
|
|
64
|
-
ClosedEnum<
|
|
65
|
-
typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
|
|
66
|
-
>;
|
|
67
|
-
|
|
68
|
-
export type RetrieveDatapoint2RefusalContentPart = {
|
|
69
|
-
/**
|
|
70
|
-
* The type of the content part.
|
|
71
|
-
*/
|
|
72
|
-
type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType;
|
|
73
|
-
/**
|
|
74
|
-
* The refusal message generated by the model.
|
|
75
|
-
*/
|
|
76
|
-
refusal: string;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* The type of the content part.
|
|
81
|
-
*/
|
|
82
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType = {
|
|
83
|
-
Text: "text",
|
|
84
|
-
} as const;
|
|
85
|
-
/**
|
|
86
|
-
* The type of the content part.
|
|
87
|
-
*/
|
|
88
|
-
export type RetrieveDatapoint2DatasetsResponse200ApplicationJSONType =
|
|
89
|
-
ClosedEnum<typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType>;
|
|
90
|
-
|
|
91
|
-
export type RetrieveDatapoint2TextContentPart = {
|
|
92
|
-
/**
|
|
93
|
-
* The type of the content part.
|
|
94
|
-
*/
|
|
95
|
-
type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType;
|
|
96
|
-
/**
|
|
97
|
-
* The text content.
|
|
98
|
-
*/
|
|
99
|
-
text: string;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
export type RetrieveDatapointContentDatasets2 =
|
|
103
|
-
| RetrieveDatapoint2TextContentPart
|
|
104
|
-
| RetrieveDatapoint2RefusalContentPart;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
108
|
-
*/
|
|
109
|
-
export type RetrieveDatapointMessagesDatasetsContent =
|
|
110
|
-
| string
|
|
111
|
-
| Array<
|
|
112
|
-
RetrieveDatapoint2TextContentPart | RetrieveDatapoint2RefusalContentPart
|
|
113
|
-
>;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* The role of the messages author, in this case `assistant`.
|
|
117
|
-
*/
|
|
118
|
-
export const RetrieveDatapointMessagesDatasetsResponse200Role = {
|
|
119
|
-
Assistant: "assistant",
|
|
120
|
-
} as const;
|
|
121
|
-
/**
|
|
122
|
-
* The role of the messages author, in this case `assistant`.
|
|
123
|
-
*/
|
|
124
|
-
export type RetrieveDatapointMessagesDatasetsResponse200Role = ClosedEnum<
|
|
125
|
-
typeof RetrieveDatapointMessagesDatasetsResponse200Role
|
|
126
|
-
>;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Data about a previous audio response from the model.
|
|
130
|
-
*/
|
|
131
|
-
export type RetrieveDatapointMessagesAudio = {
|
|
132
|
-
/**
|
|
133
|
-
* Unique identifier for a previous audio response from the model.
|
|
134
|
-
*/
|
|
135
|
-
id: string;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
140
|
-
*/
|
|
141
|
-
export const RetrieveDatapointMessagesType = {
|
|
142
|
-
Function: "function",
|
|
143
|
-
} as const;
|
|
144
|
-
/**
|
|
145
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
146
|
-
*/
|
|
147
|
-
export type RetrieveDatapointMessagesType = ClosedEnum<
|
|
148
|
-
typeof RetrieveDatapointMessagesType
|
|
149
|
-
>;
|
|
150
|
-
|
|
151
|
-
export type RetrieveDatapointMessagesFunction = {
|
|
152
|
-
/**
|
|
153
|
-
* The name of the function to call.
|
|
154
|
-
*/
|
|
155
|
-
name?: string | undefined;
|
|
156
|
-
/**
|
|
157
|
-
* 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.
|
|
158
|
-
*/
|
|
159
|
-
arguments?: string | undefined;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
export type RetrieveDatapointMessagesToolCalls = {
|
|
163
|
-
/**
|
|
164
|
-
* The ID of the tool call.
|
|
165
|
-
*/
|
|
166
|
-
id: string;
|
|
167
|
-
/**
|
|
168
|
-
* The type of the tool. Currently, only `function` is supported.
|
|
169
|
-
*/
|
|
170
|
-
type: RetrieveDatapointMessagesType;
|
|
171
|
-
function: RetrieveDatapointMessagesFunction;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
export type RetrieveDatapointMessagesAssistantMessage = {
|
|
175
|
-
/**
|
|
176
|
-
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
177
|
-
*/
|
|
178
|
-
content?:
|
|
179
|
-
| string
|
|
180
|
-
| Array<
|
|
181
|
-
RetrieveDatapoint2TextContentPart | RetrieveDatapoint2RefusalContentPart
|
|
182
|
-
>
|
|
183
|
-
| null
|
|
184
|
-
| undefined;
|
|
185
|
-
/**
|
|
186
|
-
* The refusal message by the assistant.
|
|
187
|
-
*/
|
|
188
|
-
refusal?: string | null | undefined;
|
|
189
|
-
/**
|
|
190
|
-
* The role of the messages author, in this case `assistant`.
|
|
191
|
-
*/
|
|
192
|
-
role: RetrieveDatapointMessagesDatasetsResponse200Role;
|
|
193
|
-
/**
|
|
194
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
195
|
-
*/
|
|
196
|
-
name?: string | undefined;
|
|
197
|
-
/**
|
|
198
|
-
* Data about a previous audio response from the model.
|
|
199
|
-
*/
|
|
200
|
-
audio?: RetrieveDatapointMessagesAudio | null | undefined;
|
|
201
|
-
/**
|
|
202
|
-
* The tool calls generated by the model, such as function calls.
|
|
203
|
-
*/
|
|
204
|
-
toolCalls?: Array<RetrieveDatapointMessagesToolCalls> | undefined;
|
|
205
|
-
/**
|
|
206
|
-
* Internal thought process of the model
|
|
207
|
-
*/
|
|
208
|
-
reasoning?: string | undefined;
|
|
209
|
-
/**
|
|
210
|
-
* 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`.
|
|
211
|
-
*/
|
|
212
|
-
reasoningSignature?: string | undefined;
|
|
213
|
-
/**
|
|
214
|
-
* 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.
|
|
215
|
-
*/
|
|
216
|
-
redactedReasoning?: string | undefined;
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* The role of the messages author, in this case `user`.
|
|
221
|
-
*/
|
|
222
|
-
export const RetrieveDatapointMessagesDatasetsResponseRole = {
|
|
223
|
-
User: "user",
|
|
224
|
-
} as const;
|
|
225
|
-
/**
|
|
226
|
-
* The role of the messages author, in this case `user`.
|
|
227
|
-
*/
|
|
228
|
-
export type RetrieveDatapointMessagesDatasetsResponseRole = ClosedEnum<
|
|
229
|
-
typeof RetrieveDatapointMessagesDatasetsResponseRole
|
|
230
|
-
>;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* The type of the content part. Always `file`.
|
|
234
|
-
*/
|
|
235
|
-
export const RetrieveDatapoint2DatasetsResponse200Type = {
|
|
236
|
-
File: "file",
|
|
237
|
-
} as const;
|
|
238
|
-
/**
|
|
239
|
-
* The type of the content part. Always `file`.
|
|
240
|
-
*/
|
|
241
|
-
export type RetrieveDatapoint2DatasetsResponse200Type = ClosedEnum<
|
|
242
|
-
typeof RetrieveDatapoint2DatasetsResponse200Type
|
|
243
|
-
>;
|
|
244
|
-
|
|
245
|
-
export type RetrieveDatapoint2File = {
|
|
246
|
-
/**
|
|
247
|
-
* The base64 encoded file data, used when passing the file to the model as a string.
|
|
248
|
-
*/
|
|
249
|
-
fileData: string;
|
|
250
|
-
/**
|
|
251
|
-
* The name of the file, used when passing the file to the model as a string.
|
|
252
|
-
*/
|
|
253
|
-
filename: string;
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
export type RetrieveDatapoint24 = {
|
|
257
|
-
/**
|
|
258
|
-
* The type of the content part. Always `file`.
|
|
259
|
-
*/
|
|
260
|
-
type: RetrieveDatapoint2DatasetsResponse200Type;
|
|
261
|
-
file: RetrieveDatapoint2File;
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
export const RetrieveDatapoint2DatasetsResponseType = {
|
|
265
|
-
InputAudio: "input_audio",
|
|
266
|
-
} as const;
|
|
267
|
-
export type RetrieveDatapoint2DatasetsResponseType = ClosedEnum<
|
|
268
|
-
typeof RetrieveDatapoint2DatasetsResponseType
|
|
269
|
-
>;
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
273
|
-
*/
|
|
274
|
-
export const RetrieveDatapoint2Format = {
|
|
275
|
-
Mp3: "mp3",
|
|
276
|
-
Wav: "wav",
|
|
277
|
-
} as const;
|
|
278
|
-
/**
|
|
279
|
-
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
280
|
-
*/
|
|
281
|
-
export type RetrieveDatapoint2Format = ClosedEnum<
|
|
282
|
-
typeof RetrieveDatapoint2Format
|
|
283
|
-
>;
|
|
284
|
-
|
|
285
|
-
export type RetrieveDatapoint2InputAudio = {
|
|
286
|
-
/**
|
|
287
|
-
* Base64 encoded audio data.
|
|
288
|
-
*/
|
|
289
|
-
data: string;
|
|
290
|
-
/**
|
|
291
|
-
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
292
|
-
*/
|
|
293
|
-
format: RetrieveDatapoint2Format;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
export type RetrieveDatapoint23 = {
|
|
297
|
-
type: RetrieveDatapoint2DatasetsResponseType;
|
|
298
|
-
inputAudio: RetrieveDatapoint2InputAudio;
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
export const RetrieveDatapoint2DatasetsType = {
|
|
302
|
-
ImageUrl: "image_url",
|
|
303
|
-
} as const;
|
|
304
|
-
export type RetrieveDatapoint2DatasetsType = ClosedEnum<
|
|
305
|
-
typeof RetrieveDatapoint2DatasetsType
|
|
306
|
-
>;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* Specifies the detail level of the image.
|
|
310
|
-
*/
|
|
311
|
-
export const RetrieveDatapoint2Detail = {
|
|
312
|
-
Low: "low",
|
|
313
|
-
High: "high",
|
|
314
|
-
Auto: "auto",
|
|
315
|
-
} as const;
|
|
316
|
-
/**
|
|
317
|
-
* Specifies the detail level of the image.
|
|
318
|
-
*/
|
|
319
|
-
export type RetrieveDatapoint2Detail = ClosedEnum<
|
|
320
|
-
typeof RetrieveDatapoint2Detail
|
|
321
|
-
>;
|
|
322
|
-
|
|
323
|
-
export type RetrieveDatapoint2ImageUrl = {
|
|
324
|
-
/**
|
|
325
|
-
* Either a URL of the image or the base64 encoded image data.
|
|
326
|
-
*/
|
|
327
|
-
url: string;
|
|
328
|
-
/**
|
|
329
|
-
* Specifies the detail level of the image.
|
|
330
|
-
*/
|
|
331
|
-
detail?: RetrieveDatapoint2Detail | undefined;
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
export type RetrieveDatapoint22 = {
|
|
335
|
-
type: RetrieveDatapoint2DatasetsType;
|
|
336
|
-
imageUrl: RetrieveDatapoint2ImageUrl;
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
export const RetrieveDatapoint2Type = {
|
|
340
|
-
Text: "text",
|
|
341
|
-
} as const;
|
|
342
|
-
export type RetrieveDatapoint2Type = ClosedEnum<typeof RetrieveDatapoint2Type>;
|
|
343
|
-
|
|
344
|
-
export type RetrieveDatapoint21 = {
|
|
345
|
-
type: RetrieveDatapoint2Type;
|
|
346
|
-
text: string;
|
|
347
|
-
};
|
|
348
|
-
|
|
349
|
-
export type RetrieveDatapointContent2 =
|
|
350
|
-
| RetrieveDatapoint21
|
|
351
|
-
| RetrieveDatapoint22
|
|
352
|
-
| RetrieveDatapoint23
|
|
353
|
-
| RetrieveDatapoint24;
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* The contents of the user message.
|
|
357
|
-
*/
|
|
358
|
-
export type RetrieveDatapointMessagesContent =
|
|
359
|
-
| string
|
|
360
|
-
| Array<
|
|
361
|
-
| RetrieveDatapoint21
|
|
362
|
-
| RetrieveDatapoint22
|
|
363
|
-
| RetrieveDatapoint23
|
|
364
|
-
| RetrieveDatapoint24
|
|
365
|
-
>;
|
|
366
|
-
|
|
367
|
-
export type RetrieveDatapointMessagesUserMessage = {
|
|
368
|
-
/**
|
|
369
|
-
* The role of the messages author, in this case `user`.
|
|
370
|
-
*/
|
|
371
|
-
role: RetrieveDatapointMessagesDatasetsResponseRole;
|
|
372
|
-
/**
|
|
373
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
374
|
-
*/
|
|
375
|
-
name?: string | undefined;
|
|
376
|
-
/**
|
|
377
|
-
* The contents of the user message.
|
|
378
|
-
*/
|
|
379
|
-
content:
|
|
380
|
-
| string
|
|
381
|
-
| Array<
|
|
382
|
-
| RetrieveDatapoint21
|
|
383
|
-
| RetrieveDatapoint22
|
|
384
|
-
| RetrieveDatapoint23
|
|
385
|
-
| RetrieveDatapoint24
|
|
386
|
-
>;
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* The role of the messages author, in this case `system`.
|
|
391
|
-
*/
|
|
392
|
-
export const RetrieveDatapointMessagesDatasetsRole = {
|
|
393
|
-
System: "system",
|
|
394
|
-
} as const;
|
|
395
|
-
/**
|
|
396
|
-
* The role of the messages author, in this case `system`.
|
|
397
|
-
*/
|
|
398
|
-
export type RetrieveDatapointMessagesDatasetsRole = ClosedEnum<
|
|
399
|
-
typeof RetrieveDatapointMessagesDatasetsRole
|
|
400
|
-
>;
|
|
401
|
-
|
|
402
|
-
export type RetrieveDatapointMessagesSystemMessage = {
|
|
403
|
-
/**
|
|
404
|
-
* The role of the messages author, in this case `system`.
|
|
405
|
-
*/
|
|
406
|
-
role: RetrieveDatapointMessagesDatasetsRole;
|
|
407
|
-
/**
|
|
408
|
-
* The contents of the system message.
|
|
409
|
-
*/
|
|
410
|
-
content: string;
|
|
411
|
-
/**
|
|
412
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
413
|
-
*/
|
|
414
|
-
name?: string | undefined;
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* The role of the messages author, in this case `developer`.
|
|
419
|
-
*/
|
|
420
|
-
export const RetrieveDatapointMessagesRole = {
|
|
421
|
-
Developer: "developer",
|
|
422
|
-
} as const;
|
|
423
|
-
/**
|
|
424
|
-
* The role of the messages author, in this case `developer`.
|
|
425
|
-
*/
|
|
426
|
-
export type RetrieveDatapointMessagesRole = ClosedEnum<
|
|
427
|
-
typeof RetrieveDatapointMessagesRole
|
|
428
|
-
>;
|
|
429
|
-
|
|
430
|
-
export type RetrieveDatapointMessagesDeveloperMessage = {
|
|
431
|
-
/**
|
|
432
|
-
* The role of the messages author, in this case `developer`.
|
|
433
|
-
*/
|
|
434
|
-
role: RetrieveDatapointMessagesRole;
|
|
435
|
-
/**
|
|
436
|
-
* The contents of the developer message.
|
|
437
|
-
*/
|
|
438
|
-
content: string;
|
|
439
|
-
/**
|
|
440
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
441
|
-
*/
|
|
442
|
-
name?: string | undefined;
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
export type RetrieveDatapointMessages =
|
|
446
|
-
| RetrieveDatapointMessagesToolMessage
|
|
447
|
-
| RetrieveDatapointMessagesDeveloperMessage
|
|
448
|
-
| RetrieveDatapointMessagesSystemMessage
|
|
449
|
-
| RetrieveDatapointMessagesUserMessage
|
|
450
|
-
| RetrieveDatapointMessagesAssistantMessage;
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* Datapoint retrieved.
|
|
454
|
-
*/
|
|
455
|
-
export type RetrieveDatapointResponseBody = {
|
|
456
|
-
/**
|
|
457
|
-
* The unique identifier of the dataset item
|
|
458
|
-
*/
|
|
459
|
-
id: string;
|
|
460
|
-
/**
|
|
461
|
-
* The unique identifier of the workspace it belongs to
|
|
462
|
-
*/
|
|
463
|
-
workspaceId: string;
|
|
464
|
-
/**
|
|
465
|
-
* 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.
|
|
466
|
-
*/
|
|
467
|
-
inputs?: { [k: string]: any } | undefined;
|
|
468
|
-
/**
|
|
469
|
-
* A list of messages comprising the conversation so far
|
|
470
|
-
*/
|
|
471
|
-
messages?:
|
|
472
|
-
| Array<
|
|
473
|
-
| RetrieveDatapointMessagesToolMessage
|
|
474
|
-
| RetrieveDatapointMessagesDeveloperMessage
|
|
475
|
-
| RetrieveDatapointMessagesSystemMessage
|
|
476
|
-
| RetrieveDatapointMessagesUserMessage
|
|
477
|
-
| RetrieveDatapointMessagesAssistantMessage
|
|
478
|
-
>
|
|
479
|
-
| undefined;
|
|
480
|
-
expectedOutput?: string | undefined;
|
|
481
|
-
/**
|
|
482
|
-
* The unique identifier of the dataset
|
|
483
|
-
*/
|
|
484
|
-
datasetId: string;
|
|
485
|
-
/**
|
|
486
|
-
* The unique identifier of the user who created the dataset
|
|
487
|
-
*/
|
|
488
|
-
createdById?: string | undefined;
|
|
489
|
-
/**
|
|
490
|
-
* The unique identifier of the user who last updated the dataset
|
|
491
|
-
*/
|
|
492
|
-
updatedById?: string | undefined;
|
|
493
|
-
/**
|
|
494
|
-
* The date and time the resource was created
|
|
495
|
-
*/
|
|
496
|
-
created?: Date | undefined;
|
|
497
|
-
/**
|
|
498
|
-
* The date and time the resource was last updated
|
|
499
|
-
*/
|
|
500
|
-
updated?: Date | undefined;
|
|
501
|
-
};
|
|
502
|
-
|
|
503
|
-
/** @internal */
|
|
504
|
-
export const RetrieveDatapointRequest$inboundSchema: z.ZodType<
|
|
505
|
-
RetrieveDatapointRequest,
|
|
506
|
-
z.ZodTypeDef,
|
|
507
|
-
unknown
|
|
508
|
-
> = z.object({
|
|
509
|
-
dataset_id: z.string(),
|
|
510
|
-
datapoint_id: z.string(),
|
|
511
|
-
}).transform((v) => {
|
|
512
|
-
return remap$(v, {
|
|
513
|
-
"dataset_id": "datasetId",
|
|
514
|
-
"datapoint_id": "datapointId",
|
|
515
|
-
});
|
|
516
|
-
});
|
|
517
|
-
|
|
518
|
-
/** @internal */
|
|
519
|
-
export type RetrieveDatapointRequest$Outbound = {
|
|
520
|
-
dataset_id: string;
|
|
521
|
-
datapoint_id: string;
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
/** @internal */
|
|
525
|
-
export const RetrieveDatapointRequest$outboundSchema: z.ZodType<
|
|
526
|
-
RetrieveDatapointRequest$Outbound,
|
|
527
|
-
z.ZodTypeDef,
|
|
528
|
-
RetrieveDatapointRequest
|
|
529
|
-
> = z.object({
|
|
530
|
-
datasetId: z.string(),
|
|
531
|
-
datapointId: z.string(),
|
|
532
|
-
}).transform((v) => {
|
|
533
|
-
return remap$(v, {
|
|
534
|
-
datasetId: "dataset_id",
|
|
535
|
-
datapointId: "datapoint_id",
|
|
536
|
-
});
|
|
537
|
-
});
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* @internal
|
|
541
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
542
|
-
*/
|
|
543
|
-
export namespace RetrieveDatapointRequest$ {
|
|
544
|
-
/** @deprecated use `RetrieveDatapointRequest$inboundSchema` instead. */
|
|
545
|
-
export const inboundSchema = RetrieveDatapointRequest$inboundSchema;
|
|
546
|
-
/** @deprecated use `RetrieveDatapointRequest$outboundSchema` instead. */
|
|
547
|
-
export const outboundSchema = RetrieveDatapointRequest$outboundSchema;
|
|
548
|
-
/** @deprecated use `RetrieveDatapointRequest$Outbound` instead. */
|
|
549
|
-
export type Outbound = RetrieveDatapointRequest$Outbound;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
export function retrieveDatapointRequestToJSON(
|
|
553
|
-
retrieveDatapointRequest: RetrieveDatapointRequest,
|
|
554
|
-
): string {
|
|
555
|
-
return JSON.stringify(
|
|
556
|
-
RetrieveDatapointRequest$outboundSchema.parse(retrieveDatapointRequest),
|
|
557
|
-
);
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
export function retrieveDatapointRequestFromJSON(
|
|
561
|
-
jsonString: string,
|
|
562
|
-
): SafeParseResult<RetrieveDatapointRequest, SDKValidationError> {
|
|
563
|
-
return safeParse(
|
|
564
|
-
jsonString,
|
|
565
|
-
(x) => RetrieveDatapointRequest$inboundSchema.parse(JSON.parse(x)),
|
|
566
|
-
`Failed to parse 'RetrieveDatapointRequest' from JSON`,
|
|
567
|
-
);
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
/** @internal */
|
|
571
|
-
export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema:
|
|
572
|
-
z.ZodNativeEnum<
|
|
573
|
-
typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
|
|
574
|
-
> = z.nativeEnum(
|
|
575
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole,
|
|
576
|
-
);
|
|
577
|
-
|
|
578
|
-
/** @internal */
|
|
579
|
-
export const RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema:
|
|
580
|
-
z.ZodNativeEnum<
|
|
581
|
-
typeof RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole
|
|
582
|
-
> =
|
|
583
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema;
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* @internal
|
|
587
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
588
|
-
*/
|
|
589
|
-
export namespace RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$ {
|
|
590
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema` instead. */
|
|
591
|
-
export const inboundSchema =
|
|
592
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema;
|
|
593
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema` instead. */
|
|
594
|
-
export const outboundSchema =
|
|
595
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
/** @internal */
|
|
599
|
-
export const RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema:
|
|
600
|
-
z.ZodType<
|
|
601
|
-
RetrieveDatapointMessagesDatasetsResponseContent,
|
|
602
|
-
z.ZodTypeDef,
|
|
603
|
-
unknown
|
|
604
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
605
|
-
|
|
606
|
-
/** @internal */
|
|
607
|
-
export type RetrieveDatapointMessagesDatasetsResponseContent$Outbound =
|
|
608
|
-
| string
|
|
609
|
-
| Array<string>;
|
|
610
|
-
|
|
611
|
-
/** @internal */
|
|
612
|
-
export const RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema:
|
|
613
|
-
z.ZodType<
|
|
614
|
-
RetrieveDatapointMessagesDatasetsResponseContent$Outbound,
|
|
615
|
-
z.ZodTypeDef,
|
|
616
|
-
RetrieveDatapointMessagesDatasetsResponseContent
|
|
617
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* @internal
|
|
621
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
622
|
-
*/
|
|
623
|
-
export namespace RetrieveDatapointMessagesDatasetsResponseContent$ {
|
|
624
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema` instead. */
|
|
625
|
-
export const inboundSchema =
|
|
626
|
-
RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema;
|
|
627
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema` instead. */
|
|
628
|
-
export const outboundSchema =
|
|
629
|
-
RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema;
|
|
630
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsResponseContent$Outbound` instead. */
|
|
631
|
-
export type Outbound =
|
|
632
|
-
RetrieveDatapointMessagesDatasetsResponseContent$Outbound;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
export function retrieveDatapointMessagesDatasetsResponseContentToJSON(
|
|
636
|
-
retrieveDatapointMessagesDatasetsResponseContent:
|
|
637
|
-
RetrieveDatapointMessagesDatasetsResponseContent,
|
|
638
|
-
): string {
|
|
639
|
-
return JSON.stringify(
|
|
640
|
-
RetrieveDatapointMessagesDatasetsResponseContent$outboundSchema.parse(
|
|
641
|
-
retrieveDatapointMessagesDatasetsResponseContent,
|
|
642
|
-
),
|
|
643
|
-
);
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
export function retrieveDatapointMessagesDatasetsResponseContentFromJSON(
|
|
647
|
-
jsonString: string,
|
|
648
|
-
): SafeParseResult<
|
|
649
|
-
RetrieveDatapointMessagesDatasetsResponseContent,
|
|
650
|
-
SDKValidationError
|
|
651
|
-
> {
|
|
652
|
-
return safeParse(
|
|
653
|
-
jsonString,
|
|
654
|
-
(x) =>
|
|
655
|
-
RetrieveDatapointMessagesDatasetsResponseContent$inboundSchema.parse(
|
|
656
|
-
JSON.parse(x),
|
|
657
|
-
),
|
|
658
|
-
`Failed to parse 'RetrieveDatapointMessagesDatasetsResponseContent' from JSON`,
|
|
659
|
-
);
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
/** @internal */
|
|
663
|
-
export const RetrieveDatapointMessagesToolMessage$inboundSchema: z.ZodType<
|
|
664
|
-
RetrieveDatapointMessagesToolMessage,
|
|
665
|
-
z.ZodTypeDef,
|
|
666
|
-
unknown
|
|
667
|
-
> = z.object({
|
|
668
|
-
role:
|
|
669
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$inboundSchema,
|
|
670
|
-
content: z.union([z.string(), z.array(z.string())]),
|
|
671
|
-
tool_call_id: z.string(),
|
|
672
|
-
}).transform((v) => {
|
|
673
|
-
return remap$(v, {
|
|
674
|
-
"tool_call_id": "toolCallId",
|
|
675
|
-
});
|
|
676
|
-
});
|
|
677
|
-
|
|
678
|
-
/** @internal */
|
|
679
|
-
export type RetrieveDatapointMessagesToolMessage$Outbound = {
|
|
680
|
-
role: string;
|
|
681
|
-
content: string | Array<string>;
|
|
682
|
-
tool_call_id: string;
|
|
683
|
-
};
|
|
684
|
-
|
|
685
|
-
/** @internal */
|
|
686
|
-
export const RetrieveDatapointMessagesToolMessage$outboundSchema: z.ZodType<
|
|
687
|
-
RetrieveDatapointMessagesToolMessage$Outbound,
|
|
688
|
-
z.ZodTypeDef,
|
|
689
|
-
RetrieveDatapointMessagesToolMessage
|
|
690
|
-
> = z.object({
|
|
691
|
-
role:
|
|
692
|
-
RetrieveDatapointMessagesDatasetsResponse200ApplicationJSONRole$outboundSchema,
|
|
693
|
-
content: z.union([z.string(), z.array(z.string())]),
|
|
694
|
-
toolCallId: z.string(),
|
|
695
|
-
}).transform((v) => {
|
|
696
|
-
return remap$(v, {
|
|
697
|
-
toolCallId: "tool_call_id",
|
|
698
|
-
});
|
|
699
|
-
});
|
|
700
|
-
|
|
701
|
-
/**
|
|
702
|
-
* @internal
|
|
703
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
704
|
-
*/
|
|
705
|
-
export namespace RetrieveDatapointMessagesToolMessage$ {
|
|
706
|
-
/** @deprecated use `RetrieveDatapointMessagesToolMessage$inboundSchema` instead. */
|
|
707
|
-
export const inboundSchema =
|
|
708
|
-
RetrieveDatapointMessagesToolMessage$inboundSchema;
|
|
709
|
-
/** @deprecated use `RetrieveDatapointMessagesToolMessage$outboundSchema` instead. */
|
|
710
|
-
export const outboundSchema =
|
|
711
|
-
RetrieveDatapointMessagesToolMessage$outboundSchema;
|
|
712
|
-
/** @deprecated use `RetrieveDatapointMessagesToolMessage$Outbound` instead. */
|
|
713
|
-
export type Outbound = RetrieveDatapointMessagesToolMessage$Outbound;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
export function retrieveDatapointMessagesToolMessageToJSON(
|
|
717
|
-
retrieveDatapointMessagesToolMessage: RetrieveDatapointMessagesToolMessage,
|
|
718
|
-
): string {
|
|
719
|
-
return JSON.stringify(
|
|
720
|
-
RetrieveDatapointMessagesToolMessage$outboundSchema.parse(
|
|
721
|
-
retrieveDatapointMessagesToolMessage,
|
|
722
|
-
),
|
|
723
|
-
);
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
export function retrieveDatapointMessagesToolMessageFromJSON(
|
|
727
|
-
jsonString: string,
|
|
728
|
-
): SafeParseResult<RetrieveDatapointMessagesToolMessage, SDKValidationError> {
|
|
729
|
-
return safeParse(
|
|
730
|
-
jsonString,
|
|
731
|
-
(x) =>
|
|
732
|
-
RetrieveDatapointMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
|
|
733
|
-
`Failed to parse 'RetrieveDatapointMessagesToolMessage' from JSON`,
|
|
734
|
-
);
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
/** @internal */
|
|
738
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
739
|
-
z.ZodNativeEnum<
|
|
740
|
-
typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
|
|
741
|
-
> = z.nativeEnum(
|
|
742
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType,
|
|
743
|
-
);
|
|
744
|
-
|
|
745
|
-
/** @internal */
|
|
746
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema:
|
|
747
|
-
z.ZodNativeEnum<
|
|
748
|
-
typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
|
|
749
|
-
> =
|
|
750
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* @internal
|
|
754
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
755
|
-
*/
|
|
756
|
-
export namespace RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$ {
|
|
757
|
-
/** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema` instead. */
|
|
758
|
-
export const inboundSchema =
|
|
759
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
760
|
-
/** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema` instead. */
|
|
761
|
-
export const outboundSchema =
|
|
762
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
/** @internal */
|
|
766
|
-
export const RetrieveDatapoint2RefusalContentPart$inboundSchema: z.ZodType<
|
|
767
|
-
RetrieveDatapoint2RefusalContentPart,
|
|
768
|
-
z.ZodTypeDef,
|
|
769
|
-
unknown
|
|
770
|
-
> = z.object({
|
|
771
|
-
type:
|
|
772
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
773
|
-
refusal: z.string(),
|
|
774
|
-
});
|
|
775
|
-
|
|
776
|
-
/** @internal */
|
|
777
|
-
export type RetrieveDatapoint2RefusalContentPart$Outbound = {
|
|
778
|
-
type: string;
|
|
779
|
-
refusal: string;
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
/** @internal */
|
|
783
|
-
export const RetrieveDatapoint2RefusalContentPart$outboundSchema: z.ZodType<
|
|
784
|
-
RetrieveDatapoint2RefusalContentPart$Outbound,
|
|
785
|
-
z.ZodTypeDef,
|
|
786
|
-
RetrieveDatapoint2RefusalContentPart
|
|
787
|
-
> = z.object({
|
|
788
|
-
type:
|
|
789
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
790
|
-
refusal: z.string(),
|
|
791
|
-
});
|
|
792
|
-
|
|
793
|
-
/**
|
|
794
|
-
* @internal
|
|
795
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
796
|
-
*/
|
|
797
|
-
export namespace RetrieveDatapoint2RefusalContentPart$ {
|
|
798
|
-
/** @deprecated use `RetrieveDatapoint2RefusalContentPart$inboundSchema` instead. */
|
|
799
|
-
export const inboundSchema =
|
|
800
|
-
RetrieveDatapoint2RefusalContentPart$inboundSchema;
|
|
801
|
-
/** @deprecated use `RetrieveDatapoint2RefusalContentPart$outboundSchema` instead. */
|
|
802
|
-
export const outboundSchema =
|
|
803
|
-
RetrieveDatapoint2RefusalContentPart$outboundSchema;
|
|
804
|
-
/** @deprecated use `RetrieveDatapoint2RefusalContentPart$Outbound` instead. */
|
|
805
|
-
export type Outbound = RetrieveDatapoint2RefusalContentPart$Outbound;
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
export function retrieveDatapoint2RefusalContentPartToJSON(
|
|
809
|
-
retrieveDatapoint2RefusalContentPart: RetrieveDatapoint2RefusalContentPart,
|
|
810
|
-
): string {
|
|
811
|
-
return JSON.stringify(
|
|
812
|
-
RetrieveDatapoint2RefusalContentPart$outboundSchema.parse(
|
|
813
|
-
retrieveDatapoint2RefusalContentPart,
|
|
814
|
-
),
|
|
815
|
-
);
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
export function retrieveDatapoint2RefusalContentPartFromJSON(
|
|
819
|
-
jsonString: string,
|
|
820
|
-
): SafeParseResult<RetrieveDatapoint2RefusalContentPart, SDKValidationError> {
|
|
821
|
-
return safeParse(
|
|
822
|
-
jsonString,
|
|
823
|
-
(x) =>
|
|
824
|
-
RetrieveDatapoint2RefusalContentPart$inboundSchema.parse(JSON.parse(x)),
|
|
825
|
-
`Failed to parse 'RetrieveDatapoint2RefusalContentPart' from JSON`,
|
|
826
|
-
);
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
/** @internal */
|
|
830
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema:
|
|
831
|
-
z.ZodNativeEnum<
|
|
832
|
-
typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType
|
|
833
|
-
> = z.nativeEnum(RetrieveDatapoint2DatasetsResponse200ApplicationJSONType);
|
|
834
|
-
|
|
835
|
-
/** @internal */
|
|
836
|
-
export const RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema:
|
|
837
|
-
z.ZodNativeEnum<
|
|
838
|
-
typeof RetrieveDatapoint2DatasetsResponse200ApplicationJSONType
|
|
839
|
-
> = RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema;
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* @internal
|
|
843
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
844
|
-
*/
|
|
845
|
-
export namespace RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$ {
|
|
846
|
-
/** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
847
|
-
export const inboundSchema =
|
|
848
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema;
|
|
849
|
-
/** @deprecated use `RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
850
|
-
export const outboundSchema =
|
|
851
|
-
RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
/** @internal */
|
|
855
|
-
export const RetrieveDatapoint2TextContentPart$inboundSchema: z.ZodType<
|
|
856
|
-
RetrieveDatapoint2TextContentPart,
|
|
857
|
-
z.ZodTypeDef,
|
|
858
|
-
unknown
|
|
859
|
-
> = z.object({
|
|
860
|
-
type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$inboundSchema,
|
|
861
|
-
text: z.string(),
|
|
862
|
-
});
|
|
863
|
-
|
|
864
|
-
/** @internal */
|
|
865
|
-
export type RetrieveDatapoint2TextContentPart$Outbound = {
|
|
866
|
-
type: string;
|
|
867
|
-
text: string;
|
|
868
|
-
};
|
|
869
|
-
|
|
870
|
-
/** @internal */
|
|
871
|
-
export const RetrieveDatapoint2TextContentPart$outboundSchema: z.ZodType<
|
|
872
|
-
RetrieveDatapoint2TextContentPart$Outbound,
|
|
873
|
-
z.ZodTypeDef,
|
|
874
|
-
RetrieveDatapoint2TextContentPart
|
|
875
|
-
> = z.object({
|
|
876
|
-
type: RetrieveDatapoint2DatasetsResponse200ApplicationJSONType$outboundSchema,
|
|
877
|
-
text: z.string(),
|
|
878
|
-
});
|
|
879
|
-
|
|
880
|
-
/**
|
|
881
|
-
* @internal
|
|
882
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
883
|
-
*/
|
|
884
|
-
export namespace RetrieveDatapoint2TextContentPart$ {
|
|
885
|
-
/** @deprecated use `RetrieveDatapoint2TextContentPart$inboundSchema` instead. */
|
|
886
|
-
export const inboundSchema = RetrieveDatapoint2TextContentPart$inboundSchema;
|
|
887
|
-
/** @deprecated use `RetrieveDatapoint2TextContentPart$outboundSchema` instead. */
|
|
888
|
-
export const outboundSchema =
|
|
889
|
-
RetrieveDatapoint2TextContentPart$outboundSchema;
|
|
890
|
-
/** @deprecated use `RetrieveDatapoint2TextContentPart$Outbound` instead. */
|
|
891
|
-
export type Outbound = RetrieveDatapoint2TextContentPart$Outbound;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
export function retrieveDatapoint2TextContentPartToJSON(
|
|
895
|
-
retrieveDatapoint2TextContentPart: RetrieveDatapoint2TextContentPart,
|
|
896
|
-
): string {
|
|
897
|
-
return JSON.stringify(
|
|
898
|
-
RetrieveDatapoint2TextContentPart$outboundSchema.parse(
|
|
899
|
-
retrieveDatapoint2TextContentPart,
|
|
900
|
-
),
|
|
901
|
-
);
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
export function retrieveDatapoint2TextContentPartFromJSON(
|
|
905
|
-
jsonString: string,
|
|
906
|
-
): SafeParseResult<RetrieveDatapoint2TextContentPart, SDKValidationError> {
|
|
907
|
-
return safeParse(
|
|
908
|
-
jsonString,
|
|
909
|
-
(x) => RetrieveDatapoint2TextContentPart$inboundSchema.parse(JSON.parse(x)),
|
|
910
|
-
`Failed to parse 'RetrieveDatapoint2TextContentPart' from JSON`,
|
|
911
|
-
);
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
/** @internal */
|
|
915
|
-
export const RetrieveDatapointContentDatasets2$inboundSchema: z.ZodType<
|
|
916
|
-
RetrieveDatapointContentDatasets2,
|
|
917
|
-
z.ZodTypeDef,
|
|
918
|
-
unknown
|
|
919
|
-
> = z.union([
|
|
920
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
|
|
921
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
|
|
922
|
-
]);
|
|
923
|
-
|
|
924
|
-
/** @internal */
|
|
925
|
-
export type RetrieveDatapointContentDatasets2$Outbound =
|
|
926
|
-
| RetrieveDatapoint2TextContentPart$Outbound
|
|
927
|
-
| RetrieveDatapoint2RefusalContentPart$Outbound;
|
|
928
|
-
|
|
929
|
-
/** @internal */
|
|
930
|
-
export const RetrieveDatapointContentDatasets2$outboundSchema: z.ZodType<
|
|
931
|
-
RetrieveDatapointContentDatasets2$Outbound,
|
|
932
|
-
z.ZodTypeDef,
|
|
933
|
-
RetrieveDatapointContentDatasets2
|
|
934
|
-
> = z.union([
|
|
935
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
|
|
936
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
|
|
937
|
-
]);
|
|
938
|
-
|
|
939
|
-
/**
|
|
940
|
-
* @internal
|
|
941
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
942
|
-
*/
|
|
943
|
-
export namespace RetrieveDatapointContentDatasets2$ {
|
|
944
|
-
/** @deprecated use `RetrieveDatapointContentDatasets2$inboundSchema` instead. */
|
|
945
|
-
export const inboundSchema = RetrieveDatapointContentDatasets2$inboundSchema;
|
|
946
|
-
/** @deprecated use `RetrieveDatapointContentDatasets2$outboundSchema` instead. */
|
|
947
|
-
export const outboundSchema =
|
|
948
|
-
RetrieveDatapointContentDatasets2$outboundSchema;
|
|
949
|
-
/** @deprecated use `RetrieveDatapointContentDatasets2$Outbound` instead. */
|
|
950
|
-
export type Outbound = RetrieveDatapointContentDatasets2$Outbound;
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
export function retrieveDatapointContentDatasets2ToJSON(
|
|
954
|
-
retrieveDatapointContentDatasets2: RetrieveDatapointContentDatasets2,
|
|
955
|
-
): string {
|
|
956
|
-
return JSON.stringify(
|
|
957
|
-
RetrieveDatapointContentDatasets2$outboundSchema.parse(
|
|
958
|
-
retrieveDatapointContentDatasets2,
|
|
959
|
-
),
|
|
960
|
-
);
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
export function retrieveDatapointContentDatasets2FromJSON(
|
|
964
|
-
jsonString: string,
|
|
965
|
-
): SafeParseResult<RetrieveDatapointContentDatasets2, SDKValidationError> {
|
|
966
|
-
return safeParse(
|
|
967
|
-
jsonString,
|
|
968
|
-
(x) => RetrieveDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)),
|
|
969
|
-
`Failed to parse 'RetrieveDatapointContentDatasets2' from JSON`,
|
|
970
|
-
);
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
/** @internal */
|
|
974
|
-
export const RetrieveDatapointMessagesDatasetsContent$inboundSchema: z.ZodType<
|
|
975
|
-
RetrieveDatapointMessagesDatasetsContent,
|
|
976
|
-
z.ZodTypeDef,
|
|
977
|
-
unknown
|
|
978
|
-
> = z.union([
|
|
979
|
-
z.string(),
|
|
980
|
-
z.array(z.union([
|
|
981
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
|
|
982
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
|
|
983
|
-
])),
|
|
984
|
-
]);
|
|
985
|
-
|
|
986
|
-
/** @internal */
|
|
987
|
-
export type RetrieveDatapointMessagesDatasetsContent$Outbound =
|
|
988
|
-
| string
|
|
989
|
-
| Array<
|
|
990
|
-
| RetrieveDatapoint2TextContentPart$Outbound
|
|
991
|
-
| RetrieveDatapoint2RefusalContentPart$Outbound
|
|
992
|
-
>;
|
|
993
|
-
|
|
994
|
-
/** @internal */
|
|
995
|
-
export const RetrieveDatapointMessagesDatasetsContent$outboundSchema: z.ZodType<
|
|
996
|
-
RetrieveDatapointMessagesDatasetsContent$Outbound,
|
|
997
|
-
z.ZodTypeDef,
|
|
998
|
-
RetrieveDatapointMessagesDatasetsContent
|
|
999
|
-
> = z.union([
|
|
1000
|
-
z.string(),
|
|
1001
|
-
z.array(z.union([
|
|
1002
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
|
|
1003
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
|
|
1004
|
-
])),
|
|
1005
|
-
]);
|
|
1006
|
-
|
|
1007
|
-
/**
|
|
1008
|
-
* @internal
|
|
1009
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1010
|
-
*/
|
|
1011
|
-
export namespace RetrieveDatapointMessagesDatasetsContent$ {
|
|
1012
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsContent$inboundSchema` instead. */
|
|
1013
|
-
export const inboundSchema =
|
|
1014
|
-
RetrieveDatapointMessagesDatasetsContent$inboundSchema;
|
|
1015
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsContent$outboundSchema` instead. */
|
|
1016
|
-
export const outboundSchema =
|
|
1017
|
-
RetrieveDatapointMessagesDatasetsContent$outboundSchema;
|
|
1018
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsContent$Outbound` instead. */
|
|
1019
|
-
export type Outbound = RetrieveDatapointMessagesDatasetsContent$Outbound;
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
export function retrieveDatapointMessagesDatasetsContentToJSON(
|
|
1023
|
-
retrieveDatapointMessagesDatasetsContent:
|
|
1024
|
-
RetrieveDatapointMessagesDatasetsContent,
|
|
1025
|
-
): string {
|
|
1026
|
-
return JSON.stringify(
|
|
1027
|
-
RetrieveDatapointMessagesDatasetsContent$outboundSchema.parse(
|
|
1028
|
-
retrieveDatapointMessagesDatasetsContent,
|
|
1029
|
-
),
|
|
1030
|
-
);
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
export function retrieveDatapointMessagesDatasetsContentFromJSON(
|
|
1034
|
-
jsonString: string,
|
|
1035
|
-
): SafeParseResult<
|
|
1036
|
-
RetrieveDatapointMessagesDatasetsContent,
|
|
1037
|
-
SDKValidationError
|
|
1038
|
-
> {
|
|
1039
|
-
return safeParse(
|
|
1040
|
-
jsonString,
|
|
1041
|
-
(x) =>
|
|
1042
|
-
RetrieveDatapointMessagesDatasetsContent$inboundSchema.parse(
|
|
1043
|
-
JSON.parse(x),
|
|
1044
|
-
),
|
|
1045
|
-
`Failed to parse 'RetrieveDatapointMessagesDatasetsContent' from JSON`,
|
|
1046
|
-
);
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
/** @internal */
|
|
1050
|
-
export const RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema:
|
|
1051
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponse200Role> = z
|
|
1052
|
-
.nativeEnum(RetrieveDatapointMessagesDatasetsResponse200Role);
|
|
1053
|
-
|
|
1054
|
-
/** @internal */
|
|
1055
|
-
export const RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema:
|
|
1056
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponse200Role> =
|
|
1057
|
-
RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema;
|
|
1058
|
-
|
|
1059
|
-
/**
|
|
1060
|
-
* @internal
|
|
1061
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1062
|
-
*/
|
|
1063
|
-
export namespace RetrieveDatapointMessagesDatasetsResponse200Role$ {
|
|
1064
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema` instead. */
|
|
1065
|
-
export const inboundSchema =
|
|
1066
|
-
RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema;
|
|
1067
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema` instead. */
|
|
1068
|
-
export const outboundSchema =
|
|
1069
|
-
RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema;
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
|
-
/** @internal */
|
|
1073
|
-
export const RetrieveDatapointMessagesAudio$inboundSchema: z.ZodType<
|
|
1074
|
-
RetrieveDatapointMessagesAudio,
|
|
1075
|
-
z.ZodTypeDef,
|
|
1076
|
-
unknown
|
|
1077
|
-
> = z.object({
|
|
1078
|
-
id: z.string(),
|
|
1079
|
-
});
|
|
1080
|
-
|
|
1081
|
-
/** @internal */
|
|
1082
|
-
export type RetrieveDatapointMessagesAudio$Outbound = {
|
|
1083
|
-
id: string;
|
|
1084
|
-
};
|
|
1085
|
-
|
|
1086
|
-
/** @internal */
|
|
1087
|
-
export const RetrieveDatapointMessagesAudio$outboundSchema: z.ZodType<
|
|
1088
|
-
RetrieveDatapointMessagesAudio$Outbound,
|
|
1089
|
-
z.ZodTypeDef,
|
|
1090
|
-
RetrieveDatapointMessagesAudio
|
|
1091
|
-
> = z.object({
|
|
1092
|
-
id: z.string(),
|
|
1093
|
-
});
|
|
1094
|
-
|
|
1095
|
-
/**
|
|
1096
|
-
* @internal
|
|
1097
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1098
|
-
*/
|
|
1099
|
-
export namespace RetrieveDatapointMessagesAudio$ {
|
|
1100
|
-
/** @deprecated use `RetrieveDatapointMessagesAudio$inboundSchema` instead. */
|
|
1101
|
-
export const inboundSchema = RetrieveDatapointMessagesAudio$inboundSchema;
|
|
1102
|
-
/** @deprecated use `RetrieveDatapointMessagesAudio$outboundSchema` instead. */
|
|
1103
|
-
export const outboundSchema = RetrieveDatapointMessagesAudio$outboundSchema;
|
|
1104
|
-
/** @deprecated use `RetrieveDatapointMessagesAudio$Outbound` instead. */
|
|
1105
|
-
export type Outbound = RetrieveDatapointMessagesAudio$Outbound;
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
export function retrieveDatapointMessagesAudioToJSON(
|
|
1109
|
-
retrieveDatapointMessagesAudio: RetrieveDatapointMessagesAudio,
|
|
1110
|
-
): string {
|
|
1111
|
-
return JSON.stringify(
|
|
1112
|
-
RetrieveDatapointMessagesAudio$outboundSchema.parse(
|
|
1113
|
-
retrieveDatapointMessagesAudio,
|
|
1114
|
-
),
|
|
1115
|
-
);
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
export function retrieveDatapointMessagesAudioFromJSON(
|
|
1119
|
-
jsonString: string,
|
|
1120
|
-
): SafeParseResult<RetrieveDatapointMessagesAudio, SDKValidationError> {
|
|
1121
|
-
return safeParse(
|
|
1122
|
-
jsonString,
|
|
1123
|
-
(x) => RetrieveDatapointMessagesAudio$inboundSchema.parse(JSON.parse(x)),
|
|
1124
|
-
`Failed to parse 'RetrieveDatapointMessagesAudio' from JSON`,
|
|
1125
|
-
);
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
/** @internal */
|
|
1129
|
-
export const RetrieveDatapointMessagesType$inboundSchema: z.ZodNativeEnum<
|
|
1130
|
-
typeof RetrieveDatapointMessagesType
|
|
1131
|
-
> = z.nativeEnum(RetrieveDatapointMessagesType);
|
|
1132
|
-
|
|
1133
|
-
/** @internal */
|
|
1134
|
-
export const RetrieveDatapointMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
1135
|
-
typeof RetrieveDatapointMessagesType
|
|
1136
|
-
> = RetrieveDatapointMessagesType$inboundSchema;
|
|
1137
|
-
|
|
1138
|
-
/**
|
|
1139
|
-
* @internal
|
|
1140
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1141
|
-
*/
|
|
1142
|
-
export namespace RetrieveDatapointMessagesType$ {
|
|
1143
|
-
/** @deprecated use `RetrieveDatapointMessagesType$inboundSchema` instead. */
|
|
1144
|
-
export const inboundSchema = RetrieveDatapointMessagesType$inboundSchema;
|
|
1145
|
-
/** @deprecated use `RetrieveDatapointMessagesType$outboundSchema` instead. */
|
|
1146
|
-
export const outboundSchema = RetrieveDatapointMessagesType$outboundSchema;
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
/** @internal */
|
|
1150
|
-
export const RetrieveDatapointMessagesFunction$inboundSchema: z.ZodType<
|
|
1151
|
-
RetrieveDatapointMessagesFunction,
|
|
1152
|
-
z.ZodTypeDef,
|
|
1153
|
-
unknown
|
|
1154
|
-
> = z.object({
|
|
1155
|
-
name: z.string().optional(),
|
|
1156
|
-
arguments: z.string().optional(),
|
|
1157
|
-
});
|
|
1158
|
-
|
|
1159
|
-
/** @internal */
|
|
1160
|
-
export type RetrieveDatapointMessagesFunction$Outbound = {
|
|
1161
|
-
name?: string | undefined;
|
|
1162
|
-
arguments?: string | undefined;
|
|
1163
|
-
};
|
|
1164
|
-
|
|
1165
|
-
/** @internal */
|
|
1166
|
-
export const RetrieveDatapointMessagesFunction$outboundSchema: z.ZodType<
|
|
1167
|
-
RetrieveDatapointMessagesFunction$Outbound,
|
|
1168
|
-
z.ZodTypeDef,
|
|
1169
|
-
RetrieveDatapointMessagesFunction
|
|
1170
|
-
> = z.object({
|
|
1171
|
-
name: z.string().optional(),
|
|
1172
|
-
arguments: z.string().optional(),
|
|
1173
|
-
});
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* @internal
|
|
1177
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1178
|
-
*/
|
|
1179
|
-
export namespace RetrieveDatapointMessagesFunction$ {
|
|
1180
|
-
/** @deprecated use `RetrieveDatapointMessagesFunction$inboundSchema` instead. */
|
|
1181
|
-
export const inboundSchema = RetrieveDatapointMessagesFunction$inboundSchema;
|
|
1182
|
-
/** @deprecated use `RetrieveDatapointMessagesFunction$outboundSchema` instead. */
|
|
1183
|
-
export const outboundSchema =
|
|
1184
|
-
RetrieveDatapointMessagesFunction$outboundSchema;
|
|
1185
|
-
/** @deprecated use `RetrieveDatapointMessagesFunction$Outbound` instead. */
|
|
1186
|
-
export type Outbound = RetrieveDatapointMessagesFunction$Outbound;
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
export function retrieveDatapointMessagesFunctionToJSON(
|
|
1190
|
-
retrieveDatapointMessagesFunction: RetrieveDatapointMessagesFunction,
|
|
1191
|
-
): string {
|
|
1192
|
-
return JSON.stringify(
|
|
1193
|
-
RetrieveDatapointMessagesFunction$outboundSchema.parse(
|
|
1194
|
-
retrieveDatapointMessagesFunction,
|
|
1195
|
-
),
|
|
1196
|
-
);
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
export function retrieveDatapointMessagesFunctionFromJSON(
|
|
1200
|
-
jsonString: string,
|
|
1201
|
-
): SafeParseResult<RetrieveDatapointMessagesFunction, SDKValidationError> {
|
|
1202
|
-
return safeParse(
|
|
1203
|
-
jsonString,
|
|
1204
|
-
(x) => RetrieveDatapointMessagesFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1205
|
-
`Failed to parse 'RetrieveDatapointMessagesFunction' from JSON`,
|
|
1206
|
-
);
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
/** @internal */
|
|
1210
|
-
export const RetrieveDatapointMessagesToolCalls$inboundSchema: z.ZodType<
|
|
1211
|
-
RetrieveDatapointMessagesToolCalls,
|
|
1212
|
-
z.ZodTypeDef,
|
|
1213
|
-
unknown
|
|
1214
|
-
> = z.object({
|
|
1215
|
-
id: z.string(),
|
|
1216
|
-
type: RetrieveDatapointMessagesType$inboundSchema,
|
|
1217
|
-
function: z.lazy(() => RetrieveDatapointMessagesFunction$inboundSchema),
|
|
1218
|
-
});
|
|
1219
|
-
|
|
1220
|
-
/** @internal */
|
|
1221
|
-
export type RetrieveDatapointMessagesToolCalls$Outbound = {
|
|
1222
|
-
id: string;
|
|
1223
|
-
type: string;
|
|
1224
|
-
function: RetrieveDatapointMessagesFunction$Outbound;
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
|
-
/** @internal */
|
|
1228
|
-
export const RetrieveDatapointMessagesToolCalls$outboundSchema: z.ZodType<
|
|
1229
|
-
RetrieveDatapointMessagesToolCalls$Outbound,
|
|
1230
|
-
z.ZodTypeDef,
|
|
1231
|
-
RetrieveDatapointMessagesToolCalls
|
|
1232
|
-
> = z.object({
|
|
1233
|
-
id: z.string(),
|
|
1234
|
-
type: RetrieveDatapointMessagesType$outboundSchema,
|
|
1235
|
-
function: z.lazy(() => RetrieveDatapointMessagesFunction$outboundSchema),
|
|
1236
|
-
});
|
|
1237
|
-
|
|
1238
|
-
/**
|
|
1239
|
-
* @internal
|
|
1240
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1241
|
-
*/
|
|
1242
|
-
export namespace RetrieveDatapointMessagesToolCalls$ {
|
|
1243
|
-
/** @deprecated use `RetrieveDatapointMessagesToolCalls$inboundSchema` instead. */
|
|
1244
|
-
export const inboundSchema = RetrieveDatapointMessagesToolCalls$inboundSchema;
|
|
1245
|
-
/** @deprecated use `RetrieveDatapointMessagesToolCalls$outboundSchema` instead. */
|
|
1246
|
-
export const outboundSchema =
|
|
1247
|
-
RetrieveDatapointMessagesToolCalls$outboundSchema;
|
|
1248
|
-
/** @deprecated use `RetrieveDatapointMessagesToolCalls$Outbound` instead. */
|
|
1249
|
-
export type Outbound = RetrieveDatapointMessagesToolCalls$Outbound;
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
export function retrieveDatapointMessagesToolCallsToJSON(
|
|
1253
|
-
retrieveDatapointMessagesToolCalls: RetrieveDatapointMessagesToolCalls,
|
|
1254
|
-
): string {
|
|
1255
|
-
return JSON.stringify(
|
|
1256
|
-
RetrieveDatapointMessagesToolCalls$outboundSchema.parse(
|
|
1257
|
-
retrieveDatapointMessagesToolCalls,
|
|
1258
|
-
),
|
|
1259
|
-
);
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1262
|
-
export function retrieveDatapointMessagesToolCallsFromJSON(
|
|
1263
|
-
jsonString: string,
|
|
1264
|
-
): SafeParseResult<RetrieveDatapointMessagesToolCalls, SDKValidationError> {
|
|
1265
|
-
return safeParse(
|
|
1266
|
-
jsonString,
|
|
1267
|
-
(x) =>
|
|
1268
|
-
RetrieveDatapointMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1269
|
-
`Failed to parse 'RetrieveDatapointMessagesToolCalls' from JSON`,
|
|
1270
|
-
);
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
/** @internal */
|
|
1274
|
-
export const RetrieveDatapointMessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
1275
|
-
RetrieveDatapointMessagesAssistantMessage,
|
|
1276
|
-
z.ZodTypeDef,
|
|
1277
|
-
unknown
|
|
1278
|
-
> = z.object({
|
|
1279
|
-
content: z.nullable(
|
|
1280
|
-
z.union([
|
|
1281
|
-
z.string(),
|
|
1282
|
-
z.array(
|
|
1283
|
-
z.union([
|
|
1284
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$inboundSchema),
|
|
1285
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$inboundSchema),
|
|
1286
|
-
]),
|
|
1287
|
-
),
|
|
1288
|
-
]),
|
|
1289
|
-
).optional(),
|
|
1290
|
-
refusal: z.nullable(z.string()).optional(),
|
|
1291
|
-
role: RetrieveDatapointMessagesDatasetsResponse200Role$inboundSchema,
|
|
1292
|
-
name: z.string().optional(),
|
|
1293
|
-
audio: z.nullable(z.lazy(() => RetrieveDatapointMessagesAudio$inboundSchema))
|
|
1294
|
-
.optional(),
|
|
1295
|
-
tool_calls: z.array(
|
|
1296
|
-
z.lazy(() => RetrieveDatapointMessagesToolCalls$inboundSchema),
|
|
1297
|
-
).optional(),
|
|
1298
|
-
reasoning: z.string().optional(),
|
|
1299
|
-
reasoning_signature: z.string().optional(),
|
|
1300
|
-
redacted_reasoning: z.string().optional(),
|
|
1301
|
-
}).transform((v) => {
|
|
1302
|
-
return remap$(v, {
|
|
1303
|
-
"tool_calls": "toolCalls",
|
|
1304
|
-
"reasoning_signature": "reasoningSignature",
|
|
1305
|
-
"redacted_reasoning": "redactedReasoning",
|
|
1306
|
-
});
|
|
1307
|
-
});
|
|
1308
|
-
|
|
1309
|
-
/** @internal */
|
|
1310
|
-
export type RetrieveDatapointMessagesAssistantMessage$Outbound = {
|
|
1311
|
-
content?:
|
|
1312
|
-
| string
|
|
1313
|
-
| Array<
|
|
1314
|
-
| RetrieveDatapoint2TextContentPart$Outbound
|
|
1315
|
-
| RetrieveDatapoint2RefusalContentPart$Outbound
|
|
1316
|
-
>
|
|
1317
|
-
| null
|
|
1318
|
-
| undefined;
|
|
1319
|
-
refusal?: string | null | undefined;
|
|
1320
|
-
role: string;
|
|
1321
|
-
name?: string | undefined;
|
|
1322
|
-
audio?: RetrieveDatapointMessagesAudio$Outbound | null | undefined;
|
|
1323
|
-
tool_calls?: Array<RetrieveDatapointMessagesToolCalls$Outbound> | undefined;
|
|
1324
|
-
reasoning?: string | undefined;
|
|
1325
|
-
reasoning_signature?: string | undefined;
|
|
1326
|
-
redacted_reasoning?: string | undefined;
|
|
1327
|
-
};
|
|
1328
|
-
|
|
1329
|
-
/** @internal */
|
|
1330
|
-
export const RetrieveDatapointMessagesAssistantMessage$outboundSchema:
|
|
1331
|
-
z.ZodType<
|
|
1332
|
-
RetrieveDatapointMessagesAssistantMessage$Outbound,
|
|
1333
|
-
z.ZodTypeDef,
|
|
1334
|
-
RetrieveDatapointMessagesAssistantMessage
|
|
1335
|
-
> = z.object({
|
|
1336
|
-
content: z.nullable(
|
|
1337
|
-
z.union([
|
|
1338
|
-
z.string(),
|
|
1339
|
-
z.array(
|
|
1340
|
-
z.union([
|
|
1341
|
-
z.lazy(() => RetrieveDatapoint2TextContentPart$outboundSchema),
|
|
1342
|
-
z.lazy(() => RetrieveDatapoint2RefusalContentPart$outboundSchema),
|
|
1343
|
-
]),
|
|
1344
|
-
),
|
|
1345
|
-
]),
|
|
1346
|
-
).optional(),
|
|
1347
|
-
refusal: z.nullable(z.string()).optional(),
|
|
1348
|
-
role: RetrieveDatapointMessagesDatasetsResponse200Role$outboundSchema,
|
|
1349
|
-
name: z.string().optional(),
|
|
1350
|
-
audio: z.nullable(
|
|
1351
|
-
z.lazy(() => RetrieveDatapointMessagesAudio$outboundSchema),
|
|
1352
|
-
).optional(),
|
|
1353
|
-
toolCalls: z.array(
|
|
1354
|
-
z.lazy(() => RetrieveDatapointMessagesToolCalls$outboundSchema),
|
|
1355
|
-
).optional(),
|
|
1356
|
-
reasoning: z.string().optional(),
|
|
1357
|
-
reasoningSignature: z.string().optional(),
|
|
1358
|
-
redactedReasoning: z.string().optional(),
|
|
1359
|
-
}).transform((v) => {
|
|
1360
|
-
return remap$(v, {
|
|
1361
|
-
toolCalls: "tool_calls",
|
|
1362
|
-
reasoningSignature: "reasoning_signature",
|
|
1363
|
-
redactedReasoning: "redacted_reasoning",
|
|
1364
|
-
});
|
|
1365
|
-
});
|
|
1366
|
-
|
|
1367
|
-
/**
|
|
1368
|
-
* @internal
|
|
1369
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1370
|
-
*/
|
|
1371
|
-
export namespace RetrieveDatapointMessagesAssistantMessage$ {
|
|
1372
|
-
/** @deprecated use `RetrieveDatapointMessagesAssistantMessage$inboundSchema` instead. */
|
|
1373
|
-
export const inboundSchema =
|
|
1374
|
-
RetrieveDatapointMessagesAssistantMessage$inboundSchema;
|
|
1375
|
-
/** @deprecated use `RetrieveDatapointMessagesAssistantMessage$outboundSchema` instead. */
|
|
1376
|
-
export const outboundSchema =
|
|
1377
|
-
RetrieveDatapointMessagesAssistantMessage$outboundSchema;
|
|
1378
|
-
/** @deprecated use `RetrieveDatapointMessagesAssistantMessage$Outbound` instead. */
|
|
1379
|
-
export type Outbound = RetrieveDatapointMessagesAssistantMessage$Outbound;
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
export function retrieveDatapointMessagesAssistantMessageToJSON(
|
|
1383
|
-
retrieveDatapointMessagesAssistantMessage:
|
|
1384
|
-
RetrieveDatapointMessagesAssistantMessage,
|
|
1385
|
-
): string {
|
|
1386
|
-
return JSON.stringify(
|
|
1387
|
-
RetrieveDatapointMessagesAssistantMessage$outboundSchema.parse(
|
|
1388
|
-
retrieveDatapointMessagesAssistantMessage,
|
|
1389
|
-
),
|
|
1390
|
-
);
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
|
-
export function retrieveDatapointMessagesAssistantMessageFromJSON(
|
|
1394
|
-
jsonString: string,
|
|
1395
|
-
): SafeParseResult<
|
|
1396
|
-
RetrieveDatapointMessagesAssistantMessage,
|
|
1397
|
-
SDKValidationError
|
|
1398
|
-
> {
|
|
1399
|
-
return safeParse(
|
|
1400
|
-
jsonString,
|
|
1401
|
-
(x) =>
|
|
1402
|
-
RetrieveDatapointMessagesAssistantMessage$inboundSchema.parse(
|
|
1403
|
-
JSON.parse(x),
|
|
1404
|
-
),
|
|
1405
|
-
`Failed to parse 'RetrieveDatapointMessagesAssistantMessage' from JSON`,
|
|
1406
|
-
);
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
/** @internal */
|
|
1410
|
-
export const RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema:
|
|
1411
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponseRole> = z
|
|
1412
|
-
.nativeEnum(RetrieveDatapointMessagesDatasetsResponseRole);
|
|
1413
|
-
|
|
1414
|
-
/** @internal */
|
|
1415
|
-
export const RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema:
|
|
1416
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsResponseRole> =
|
|
1417
|
-
RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema;
|
|
1418
|
-
|
|
1419
|
-
/**
|
|
1420
|
-
* @internal
|
|
1421
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1422
|
-
*/
|
|
1423
|
-
export namespace RetrieveDatapointMessagesDatasetsResponseRole$ {
|
|
1424
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema` instead. */
|
|
1425
|
-
export const inboundSchema =
|
|
1426
|
-
RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema;
|
|
1427
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema` instead. */
|
|
1428
|
-
export const outboundSchema =
|
|
1429
|
-
RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
/** @internal */
|
|
1433
|
-
export const RetrieveDatapoint2DatasetsResponse200Type$inboundSchema:
|
|
1434
|
-
z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponse200Type> = z
|
|
1435
|
-
.nativeEnum(RetrieveDatapoint2DatasetsResponse200Type);
|
|
1436
|
-
|
|
1437
|
-
/** @internal */
|
|
1438
|
-
export const RetrieveDatapoint2DatasetsResponse200Type$outboundSchema:
|
|
1439
|
-
z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponse200Type> =
|
|
1440
|
-
RetrieveDatapoint2DatasetsResponse200Type$inboundSchema;
|
|
1441
|
-
|
|
1442
|
-
/**
|
|
1443
|
-
* @internal
|
|
1444
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1445
|
-
*/
|
|
1446
|
-
export namespace RetrieveDatapoint2DatasetsResponse200Type$ {
|
|
1447
|
-
/** @deprecated use `RetrieveDatapoint2DatasetsResponse200Type$inboundSchema` instead. */
|
|
1448
|
-
export const inboundSchema =
|
|
1449
|
-
RetrieveDatapoint2DatasetsResponse200Type$inboundSchema;
|
|
1450
|
-
/** @deprecated use `RetrieveDatapoint2DatasetsResponse200Type$outboundSchema` instead. */
|
|
1451
|
-
export const outboundSchema =
|
|
1452
|
-
RetrieveDatapoint2DatasetsResponse200Type$outboundSchema;
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
/** @internal */
|
|
1456
|
-
export const RetrieveDatapoint2File$inboundSchema: z.ZodType<
|
|
1457
|
-
RetrieveDatapoint2File,
|
|
1458
|
-
z.ZodTypeDef,
|
|
1459
|
-
unknown
|
|
1460
|
-
> = z.object({
|
|
1461
|
-
file_data: z.string(),
|
|
1462
|
-
filename: z.string(),
|
|
1463
|
-
}).transform((v) => {
|
|
1464
|
-
return remap$(v, {
|
|
1465
|
-
"file_data": "fileData",
|
|
1466
|
-
});
|
|
1467
|
-
});
|
|
1468
|
-
|
|
1469
|
-
/** @internal */
|
|
1470
|
-
export type RetrieveDatapoint2File$Outbound = {
|
|
1471
|
-
file_data: string;
|
|
1472
|
-
filename: string;
|
|
1473
|
-
};
|
|
1474
|
-
|
|
1475
|
-
/** @internal */
|
|
1476
|
-
export const RetrieveDatapoint2File$outboundSchema: z.ZodType<
|
|
1477
|
-
RetrieveDatapoint2File$Outbound,
|
|
1478
|
-
z.ZodTypeDef,
|
|
1479
|
-
RetrieveDatapoint2File
|
|
1480
|
-
> = z.object({
|
|
1481
|
-
fileData: z.string(),
|
|
1482
|
-
filename: z.string(),
|
|
1483
|
-
}).transform((v) => {
|
|
1484
|
-
return remap$(v, {
|
|
1485
|
-
fileData: "file_data",
|
|
1486
|
-
});
|
|
1487
|
-
});
|
|
1488
|
-
|
|
1489
|
-
/**
|
|
1490
|
-
* @internal
|
|
1491
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1492
|
-
*/
|
|
1493
|
-
export namespace RetrieveDatapoint2File$ {
|
|
1494
|
-
/** @deprecated use `RetrieveDatapoint2File$inboundSchema` instead. */
|
|
1495
|
-
export const inboundSchema = RetrieveDatapoint2File$inboundSchema;
|
|
1496
|
-
/** @deprecated use `RetrieveDatapoint2File$outboundSchema` instead. */
|
|
1497
|
-
export const outboundSchema = RetrieveDatapoint2File$outboundSchema;
|
|
1498
|
-
/** @deprecated use `RetrieveDatapoint2File$Outbound` instead. */
|
|
1499
|
-
export type Outbound = RetrieveDatapoint2File$Outbound;
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
export function retrieveDatapoint2FileToJSON(
|
|
1503
|
-
retrieveDatapoint2File: RetrieveDatapoint2File,
|
|
1504
|
-
): string {
|
|
1505
|
-
return JSON.stringify(
|
|
1506
|
-
RetrieveDatapoint2File$outboundSchema.parse(retrieveDatapoint2File),
|
|
1507
|
-
);
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
export function retrieveDatapoint2FileFromJSON(
|
|
1511
|
-
jsonString: string,
|
|
1512
|
-
): SafeParseResult<RetrieveDatapoint2File, SDKValidationError> {
|
|
1513
|
-
return safeParse(
|
|
1514
|
-
jsonString,
|
|
1515
|
-
(x) => RetrieveDatapoint2File$inboundSchema.parse(JSON.parse(x)),
|
|
1516
|
-
`Failed to parse 'RetrieveDatapoint2File' from JSON`,
|
|
1517
|
-
);
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
/** @internal */
|
|
1521
|
-
export const RetrieveDatapoint24$inboundSchema: z.ZodType<
|
|
1522
|
-
RetrieveDatapoint24,
|
|
1523
|
-
z.ZodTypeDef,
|
|
1524
|
-
unknown
|
|
1525
|
-
> = z.object({
|
|
1526
|
-
type: RetrieveDatapoint2DatasetsResponse200Type$inboundSchema,
|
|
1527
|
-
file: z.lazy(() => RetrieveDatapoint2File$inboundSchema),
|
|
1528
|
-
});
|
|
1529
|
-
|
|
1530
|
-
/** @internal */
|
|
1531
|
-
export type RetrieveDatapoint24$Outbound = {
|
|
1532
|
-
type: string;
|
|
1533
|
-
file: RetrieveDatapoint2File$Outbound;
|
|
1534
|
-
};
|
|
1535
|
-
|
|
1536
|
-
/** @internal */
|
|
1537
|
-
export const RetrieveDatapoint24$outboundSchema: z.ZodType<
|
|
1538
|
-
RetrieveDatapoint24$Outbound,
|
|
1539
|
-
z.ZodTypeDef,
|
|
1540
|
-
RetrieveDatapoint24
|
|
1541
|
-
> = z.object({
|
|
1542
|
-
type: RetrieveDatapoint2DatasetsResponse200Type$outboundSchema,
|
|
1543
|
-
file: z.lazy(() => RetrieveDatapoint2File$outboundSchema),
|
|
1544
|
-
});
|
|
1545
|
-
|
|
1546
|
-
/**
|
|
1547
|
-
* @internal
|
|
1548
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1549
|
-
*/
|
|
1550
|
-
export namespace RetrieveDatapoint24$ {
|
|
1551
|
-
/** @deprecated use `RetrieveDatapoint24$inboundSchema` instead. */
|
|
1552
|
-
export const inboundSchema = RetrieveDatapoint24$inboundSchema;
|
|
1553
|
-
/** @deprecated use `RetrieveDatapoint24$outboundSchema` instead. */
|
|
1554
|
-
export const outboundSchema = RetrieveDatapoint24$outboundSchema;
|
|
1555
|
-
/** @deprecated use `RetrieveDatapoint24$Outbound` instead. */
|
|
1556
|
-
export type Outbound = RetrieveDatapoint24$Outbound;
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
export function retrieveDatapoint24ToJSON(
|
|
1560
|
-
retrieveDatapoint24: RetrieveDatapoint24,
|
|
1561
|
-
): string {
|
|
1562
|
-
return JSON.stringify(
|
|
1563
|
-
RetrieveDatapoint24$outboundSchema.parse(retrieveDatapoint24),
|
|
1564
|
-
);
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
export function retrieveDatapoint24FromJSON(
|
|
1568
|
-
jsonString: string,
|
|
1569
|
-
): SafeParseResult<RetrieveDatapoint24, SDKValidationError> {
|
|
1570
|
-
return safeParse(
|
|
1571
|
-
jsonString,
|
|
1572
|
-
(x) => RetrieveDatapoint24$inboundSchema.parse(JSON.parse(x)),
|
|
1573
|
-
`Failed to parse 'RetrieveDatapoint24' from JSON`,
|
|
1574
|
-
);
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
/** @internal */
|
|
1578
|
-
export const RetrieveDatapoint2DatasetsResponseType$inboundSchema:
|
|
1579
|
-
z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponseType> = z.nativeEnum(
|
|
1580
|
-
RetrieveDatapoint2DatasetsResponseType,
|
|
1581
|
-
);
|
|
1582
|
-
|
|
1583
|
-
/** @internal */
|
|
1584
|
-
export const RetrieveDatapoint2DatasetsResponseType$outboundSchema:
|
|
1585
|
-
z.ZodNativeEnum<typeof RetrieveDatapoint2DatasetsResponseType> =
|
|
1586
|
-
RetrieveDatapoint2DatasetsResponseType$inboundSchema;
|
|
1587
|
-
|
|
1588
|
-
/**
|
|
1589
|
-
* @internal
|
|
1590
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1591
|
-
*/
|
|
1592
|
-
export namespace RetrieveDatapoint2DatasetsResponseType$ {
|
|
1593
|
-
/** @deprecated use `RetrieveDatapoint2DatasetsResponseType$inboundSchema` instead. */
|
|
1594
|
-
export const inboundSchema =
|
|
1595
|
-
RetrieveDatapoint2DatasetsResponseType$inboundSchema;
|
|
1596
|
-
/** @deprecated use `RetrieveDatapoint2DatasetsResponseType$outboundSchema` instead. */
|
|
1597
|
-
export const outboundSchema =
|
|
1598
|
-
RetrieveDatapoint2DatasetsResponseType$outboundSchema;
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
/** @internal */
|
|
1602
|
-
export const RetrieveDatapoint2Format$inboundSchema: z.ZodNativeEnum<
|
|
1603
|
-
typeof RetrieveDatapoint2Format
|
|
1604
|
-
> = z.nativeEnum(RetrieveDatapoint2Format);
|
|
1605
|
-
|
|
1606
|
-
/** @internal */
|
|
1607
|
-
export const RetrieveDatapoint2Format$outboundSchema: z.ZodNativeEnum<
|
|
1608
|
-
typeof RetrieveDatapoint2Format
|
|
1609
|
-
> = RetrieveDatapoint2Format$inboundSchema;
|
|
1610
|
-
|
|
1611
|
-
/**
|
|
1612
|
-
* @internal
|
|
1613
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1614
|
-
*/
|
|
1615
|
-
export namespace RetrieveDatapoint2Format$ {
|
|
1616
|
-
/** @deprecated use `RetrieveDatapoint2Format$inboundSchema` instead. */
|
|
1617
|
-
export const inboundSchema = RetrieveDatapoint2Format$inboundSchema;
|
|
1618
|
-
/** @deprecated use `RetrieveDatapoint2Format$outboundSchema` instead. */
|
|
1619
|
-
export const outboundSchema = RetrieveDatapoint2Format$outboundSchema;
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
/** @internal */
|
|
1623
|
-
export const RetrieveDatapoint2InputAudio$inboundSchema: z.ZodType<
|
|
1624
|
-
RetrieveDatapoint2InputAudio,
|
|
1625
|
-
z.ZodTypeDef,
|
|
1626
|
-
unknown
|
|
1627
|
-
> = z.object({
|
|
1628
|
-
data: z.string(),
|
|
1629
|
-
format: RetrieveDatapoint2Format$inboundSchema,
|
|
1630
|
-
});
|
|
1631
|
-
|
|
1632
|
-
/** @internal */
|
|
1633
|
-
export type RetrieveDatapoint2InputAudio$Outbound = {
|
|
1634
|
-
data: string;
|
|
1635
|
-
format: string;
|
|
1636
|
-
};
|
|
1637
|
-
|
|
1638
|
-
/** @internal */
|
|
1639
|
-
export const RetrieveDatapoint2InputAudio$outboundSchema: z.ZodType<
|
|
1640
|
-
RetrieveDatapoint2InputAudio$Outbound,
|
|
1641
|
-
z.ZodTypeDef,
|
|
1642
|
-
RetrieveDatapoint2InputAudio
|
|
1643
|
-
> = z.object({
|
|
1644
|
-
data: z.string(),
|
|
1645
|
-
format: RetrieveDatapoint2Format$outboundSchema,
|
|
1646
|
-
});
|
|
1647
|
-
|
|
1648
|
-
/**
|
|
1649
|
-
* @internal
|
|
1650
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1651
|
-
*/
|
|
1652
|
-
export namespace RetrieveDatapoint2InputAudio$ {
|
|
1653
|
-
/** @deprecated use `RetrieveDatapoint2InputAudio$inboundSchema` instead. */
|
|
1654
|
-
export const inboundSchema = RetrieveDatapoint2InputAudio$inboundSchema;
|
|
1655
|
-
/** @deprecated use `RetrieveDatapoint2InputAudio$outboundSchema` instead. */
|
|
1656
|
-
export const outboundSchema = RetrieveDatapoint2InputAudio$outboundSchema;
|
|
1657
|
-
/** @deprecated use `RetrieveDatapoint2InputAudio$Outbound` instead. */
|
|
1658
|
-
export type Outbound = RetrieveDatapoint2InputAudio$Outbound;
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
export function retrieveDatapoint2InputAudioToJSON(
|
|
1662
|
-
retrieveDatapoint2InputAudio: RetrieveDatapoint2InputAudio,
|
|
1663
|
-
): string {
|
|
1664
|
-
return JSON.stringify(
|
|
1665
|
-
RetrieveDatapoint2InputAudio$outboundSchema.parse(
|
|
1666
|
-
retrieveDatapoint2InputAudio,
|
|
1667
|
-
),
|
|
1668
|
-
);
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
export function retrieveDatapoint2InputAudioFromJSON(
|
|
1672
|
-
jsonString: string,
|
|
1673
|
-
): SafeParseResult<RetrieveDatapoint2InputAudio, SDKValidationError> {
|
|
1674
|
-
return safeParse(
|
|
1675
|
-
jsonString,
|
|
1676
|
-
(x) => RetrieveDatapoint2InputAudio$inboundSchema.parse(JSON.parse(x)),
|
|
1677
|
-
`Failed to parse 'RetrieveDatapoint2InputAudio' from JSON`,
|
|
1678
|
-
);
|
|
1679
|
-
}
|
|
1680
|
-
|
|
1681
|
-
/** @internal */
|
|
1682
|
-
export const RetrieveDatapoint23$inboundSchema: z.ZodType<
|
|
1683
|
-
RetrieveDatapoint23,
|
|
1684
|
-
z.ZodTypeDef,
|
|
1685
|
-
unknown
|
|
1686
|
-
> = z.object({
|
|
1687
|
-
type: RetrieveDatapoint2DatasetsResponseType$inboundSchema,
|
|
1688
|
-
input_audio: z.lazy(() => RetrieveDatapoint2InputAudio$inboundSchema),
|
|
1689
|
-
}).transform((v) => {
|
|
1690
|
-
return remap$(v, {
|
|
1691
|
-
"input_audio": "inputAudio",
|
|
1692
|
-
});
|
|
1693
|
-
});
|
|
1694
|
-
|
|
1695
|
-
/** @internal */
|
|
1696
|
-
export type RetrieveDatapoint23$Outbound = {
|
|
1697
|
-
type: string;
|
|
1698
|
-
input_audio: RetrieveDatapoint2InputAudio$Outbound;
|
|
1699
|
-
};
|
|
1700
|
-
|
|
1701
|
-
/** @internal */
|
|
1702
|
-
export const RetrieveDatapoint23$outboundSchema: z.ZodType<
|
|
1703
|
-
RetrieveDatapoint23$Outbound,
|
|
1704
|
-
z.ZodTypeDef,
|
|
1705
|
-
RetrieveDatapoint23
|
|
1706
|
-
> = z.object({
|
|
1707
|
-
type: RetrieveDatapoint2DatasetsResponseType$outboundSchema,
|
|
1708
|
-
inputAudio: z.lazy(() => RetrieveDatapoint2InputAudio$outboundSchema),
|
|
1709
|
-
}).transform((v) => {
|
|
1710
|
-
return remap$(v, {
|
|
1711
|
-
inputAudio: "input_audio",
|
|
1712
|
-
});
|
|
1713
|
-
});
|
|
1714
|
-
|
|
1715
|
-
/**
|
|
1716
|
-
* @internal
|
|
1717
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1718
|
-
*/
|
|
1719
|
-
export namespace RetrieveDatapoint23$ {
|
|
1720
|
-
/** @deprecated use `RetrieveDatapoint23$inboundSchema` instead. */
|
|
1721
|
-
export const inboundSchema = RetrieveDatapoint23$inboundSchema;
|
|
1722
|
-
/** @deprecated use `RetrieveDatapoint23$outboundSchema` instead. */
|
|
1723
|
-
export const outboundSchema = RetrieveDatapoint23$outboundSchema;
|
|
1724
|
-
/** @deprecated use `RetrieveDatapoint23$Outbound` instead. */
|
|
1725
|
-
export type Outbound = RetrieveDatapoint23$Outbound;
|
|
1726
|
-
}
|
|
1727
|
-
|
|
1728
|
-
export function retrieveDatapoint23ToJSON(
|
|
1729
|
-
retrieveDatapoint23: RetrieveDatapoint23,
|
|
1730
|
-
): string {
|
|
1731
|
-
return JSON.stringify(
|
|
1732
|
-
RetrieveDatapoint23$outboundSchema.parse(retrieveDatapoint23),
|
|
1733
|
-
);
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
export function retrieveDatapoint23FromJSON(
|
|
1737
|
-
jsonString: string,
|
|
1738
|
-
): SafeParseResult<RetrieveDatapoint23, SDKValidationError> {
|
|
1739
|
-
return safeParse(
|
|
1740
|
-
jsonString,
|
|
1741
|
-
(x) => RetrieveDatapoint23$inboundSchema.parse(JSON.parse(x)),
|
|
1742
|
-
`Failed to parse 'RetrieveDatapoint23' from JSON`,
|
|
1743
|
-
);
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
/** @internal */
|
|
1747
|
-
export const RetrieveDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
1748
|
-
typeof RetrieveDatapoint2DatasetsType
|
|
1749
|
-
> = z.nativeEnum(RetrieveDatapoint2DatasetsType);
|
|
1750
|
-
|
|
1751
|
-
/** @internal */
|
|
1752
|
-
export const RetrieveDatapoint2DatasetsType$outboundSchema: z.ZodNativeEnum<
|
|
1753
|
-
typeof RetrieveDatapoint2DatasetsType
|
|
1754
|
-
> = RetrieveDatapoint2DatasetsType$inboundSchema;
|
|
1755
|
-
|
|
1756
|
-
/**
|
|
1757
|
-
* @internal
|
|
1758
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1759
|
-
*/
|
|
1760
|
-
export namespace RetrieveDatapoint2DatasetsType$ {
|
|
1761
|
-
/** @deprecated use `RetrieveDatapoint2DatasetsType$inboundSchema` instead. */
|
|
1762
|
-
export const inboundSchema = RetrieveDatapoint2DatasetsType$inboundSchema;
|
|
1763
|
-
/** @deprecated use `RetrieveDatapoint2DatasetsType$outboundSchema` instead. */
|
|
1764
|
-
export const outboundSchema = RetrieveDatapoint2DatasetsType$outboundSchema;
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
|
-
/** @internal */
|
|
1768
|
-
export const RetrieveDatapoint2Detail$inboundSchema: z.ZodNativeEnum<
|
|
1769
|
-
typeof RetrieveDatapoint2Detail
|
|
1770
|
-
> = z.nativeEnum(RetrieveDatapoint2Detail);
|
|
1771
|
-
|
|
1772
|
-
/** @internal */
|
|
1773
|
-
export const RetrieveDatapoint2Detail$outboundSchema: z.ZodNativeEnum<
|
|
1774
|
-
typeof RetrieveDatapoint2Detail
|
|
1775
|
-
> = RetrieveDatapoint2Detail$inboundSchema;
|
|
1776
|
-
|
|
1777
|
-
/**
|
|
1778
|
-
* @internal
|
|
1779
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1780
|
-
*/
|
|
1781
|
-
export namespace RetrieveDatapoint2Detail$ {
|
|
1782
|
-
/** @deprecated use `RetrieveDatapoint2Detail$inboundSchema` instead. */
|
|
1783
|
-
export const inboundSchema = RetrieveDatapoint2Detail$inboundSchema;
|
|
1784
|
-
/** @deprecated use `RetrieveDatapoint2Detail$outboundSchema` instead. */
|
|
1785
|
-
export const outboundSchema = RetrieveDatapoint2Detail$outboundSchema;
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
/** @internal */
|
|
1789
|
-
export const RetrieveDatapoint2ImageUrl$inboundSchema: z.ZodType<
|
|
1790
|
-
RetrieveDatapoint2ImageUrl,
|
|
1791
|
-
z.ZodTypeDef,
|
|
1792
|
-
unknown
|
|
1793
|
-
> = z.object({
|
|
1794
|
-
url: z.string(),
|
|
1795
|
-
detail: RetrieveDatapoint2Detail$inboundSchema.optional(),
|
|
1796
|
-
});
|
|
1797
|
-
|
|
1798
|
-
/** @internal */
|
|
1799
|
-
export type RetrieveDatapoint2ImageUrl$Outbound = {
|
|
1800
|
-
url: string;
|
|
1801
|
-
detail?: string | undefined;
|
|
1802
|
-
};
|
|
1803
|
-
|
|
1804
|
-
/** @internal */
|
|
1805
|
-
export const RetrieveDatapoint2ImageUrl$outboundSchema: z.ZodType<
|
|
1806
|
-
RetrieveDatapoint2ImageUrl$Outbound,
|
|
1807
|
-
z.ZodTypeDef,
|
|
1808
|
-
RetrieveDatapoint2ImageUrl
|
|
1809
|
-
> = z.object({
|
|
1810
|
-
url: z.string(),
|
|
1811
|
-
detail: RetrieveDatapoint2Detail$outboundSchema.optional(),
|
|
1812
|
-
});
|
|
1813
|
-
|
|
1814
|
-
/**
|
|
1815
|
-
* @internal
|
|
1816
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1817
|
-
*/
|
|
1818
|
-
export namespace RetrieveDatapoint2ImageUrl$ {
|
|
1819
|
-
/** @deprecated use `RetrieveDatapoint2ImageUrl$inboundSchema` instead. */
|
|
1820
|
-
export const inboundSchema = RetrieveDatapoint2ImageUrl$inboundSchema;
|
|
1821
|
-
/** @deprecated use `RetrieveDatapoint2ImageUrl$outboundSchema` instead. */
|
|
1822
|
-
export const outboundSchema = RetrieveDatapoint2ImageUrl$outboundSchema;
|
|
1823
|
-
/** @deprecated use `RetrieveDatapoint2ImageUrl$Outbound` instead. */
|
|
1824
|
-
export type Outbound = RetrieveDatapoint2ImageUrl$Outbound;
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
export function retrieveDatapoint2ImageUrlToJSON(
|
|
1828
|
-
retrieveDatapoint2ImageUrl: RetrieveDatapoint2ImageUrl,
|
|
1829
|
-
): string {
|
|
1830
|
-
return JSON.stringify(
|
|
1831
|
-
RetrieveDatapoint2ImageUrl$outboundSchema.parse(retrieveDatapoint2ImageUrl),
|
|
1832
|
-
);
|
|
1833
|
-
}
|
|
1834
|
-
|
|
1835
|
-
export function retrieveDatapoint2ImageUrlFromJSON(
|
|
1836
|
-
jsonString: string,
|
|
1837
|
-
): SafeParseResult<RetrieveDatapoint2ImageUrl, SDKValidationError> {
|
|
1838
|
-
return safeParse(
|
|
1839
|
-
jsonString,
|
|
1840
|
-
(x) => RetrieveDatapoint2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1841
|
-
`Failed to parse 'RetrieveDatapoint2ImageUrl' from JSON`,
|
|
1842
|
-
);
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
/** @internal */
|
|
1846
|
-
export const RetrieveDatapoint22$inboundSchema: z.ZodType<
|
|
1847
|
-
RetrieveDatapoint22,
|
|
1848
|
-
z.ZodTypeDef,
|
|
1849
|
-
unknown
|
|
1850
|
-
> = z.object({
|
|
1851
|
-
type: RetrieveDatapoint2DatasetsType$inboundSchema,
|
|
1852
|
-
image_url: z.lazy(() => RetrieveDatapoint2ImageUrl$inboundSchema),
|
|
1853
|
-
}).transform((v) => {
|
|
1854
|
-
return remap$(v, {
|
|
1855
|
-
"image_url": "imageUrl",
|
|
1856
|
-
});
|
|
1857
|
-
});
|
|
1858
|
-
|
|
1859
|
-
/** @internal */
|
|
1860
|
-
export type RetrieveDatapoint22$Outbound = {
|
|
1861
|
-
type: string;
|
|
1862
|
-
image_url: RetrieveDatapoint2ImageUrl$Outbound;
|
|
1863
|
-
};
|
|
1864
|
-
|
|
1865
|
-
/** @internal */
|
|
1866
|
-
export const RetrieveDatapoint22$outboundSchema: z.ZodType<
|
|
1867
|
-
RetrieveDatapoint22$Outbound,
|
|
1868
|
-
z.ZodTypeDef,
|
|
1869
|
-
RetrieveDatapoint22
|
|
1870
|
-
> = z.object({
|
|
1871
|
-
type: RetrieveDatapoint2DatasetsType$outboundSchema,
|
|
1872
|
-
imageUrl: z.lazy(() => RetrieveDatapoint2ImageUrl$outboundSchema),
|
|
1873
|
-
}).transform((v) => {
|
|
1874
|
-
return remap$(v, {
|
|
1875
|
-
imageUrl: "image_url",
|
|
1876
|
-
});
|
|
1877
|
-
});
|
|
1878
|
-
|
|
1879
|
-
/**
|
|
1880
|
-
* @internal
|
|
1881
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1882
|
-
*/
|
|
1883
|
-
export namespace RetrieveDatapoint22$ {
|
|
1884
|
-
/** @deprecated use `RetrieveDatapoint22$inboundSchema` instead. */
|
|
1885
|
-
export const inboundSchema = RetrieveDatapoint22$inboundSchema;
|
|
1886
|
-
/** @deprecated use `RetrieveDatapoint22$outboundSchema` instead. */
|
|
1887
|
-
export const outboundSchema = RetrieveDatapoint22$outboundSchema;
|
|
1888
|
-
/** @deprecated use `RetrieveDatapoint22$Outbound` instead. */
|
|
1889
|
-
export type Outbound = RetrieveDatapoint22$Outbound;
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
|
-
export function retrieveDatapoint22ToJSON(
|
|
1893
|
-
retrieveDatapoint22: RetrieveDatapoint22,
|
|
1894
|
-
): string {
|
|
1895
|
-
return JSON.stringify(
|
|
1896
|
-
RetrieveDatapoint22$outboundSchema.parse(retrieveDatapoint22),
|
|
1897
|
-
);
|
|
1898
|
-
}
|
|
1899
|
-
|
|
1900
|
-
export function retrieveDatapoint22FromJSON(
|
|
1901
|
-
jsonString: string,
|
|
1902
|
-
): SafeParseResult<RetrieveDatapoint22, SDKValidationError> {
|
|
1903
|
-
return safeParse(
|
|
1904
|
-
jsonString,
|
|
1905
|
-
(x) => RetrieveDatapoint22$inboundSchema.parse(JSON.parse(x)),
|
|
1906
|
-
`Failed to parse 'RetrieveDatapoint22' from JSON`,
|
|
1907
|
-
);
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
/** @internal */
|
|
1911
|
-
export const RetrieveDatapoint2Type$inboundSchema: z.ZodNativeEnum<
|
|
1912
|
-
typeof RetrieveDatapoint2Type
|
|
1913
|
-
> = z.nativeEnum(RetrieveDatapoint2Type);
|
|
1914
|
-
|
|
1915
|
-
/** @internal */
|
|
1916
|
-
export const RetrieveDatapoint2Type$outboundSchema: z.ZodNativeEnum<
|
|
1917
|
-
typeof RetrieveDatapoint2Type
|
|
1918
|
-
> = RetrieveDatapoint2Type$inboundSchema;
|
|
1919
|
-
|
|
1920
|
-
/**
|
|
1921
|
-
* @internal
|
|
1922
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1923
|
-
*/
|
|
1924
|
-
export namespace RetrieveDatapoint2Type$ {
|
|
1925
|
-
/** @deprecated use `RetrieveDatapoint2Type$inboundSchema` instead. */
|
|
1926
|
-
export const inboundSchema = RetrieveDatapoint2Type$inboundSchema;
|
|
1927
|
-
/** @deprecated use `RetrieveDatapoint2Type$outboundSchema` instead. */
|
|
1928
|
-
export const outboundSchema = RetrieveDatapoint2Type$outboundSchema;
|
|
1929
|
-
}
|
|
1930
|
-
|
|
1931
|
-
/** @internal */
|
|
1932
|
-
export const RetrieveDatapoint21$inboundSchema: z.ZodType<
|
|
1933
|
-
RetrieveDatapoint21,
|
|
1934
|
-
z.ZodTypeDef,
|
|
1935
|
-
unknown
|
|
1936
|
-
> = z.object({
|
|
1937
|
-
type: RetrieveDatapoint2Type$inboundSchema,
|
|
1938
|
-
text: z.string(),
|
|
1939
|
-
});
|
|
1940
|
-
|
|
1941
|
-
/** @internal */
|
|
1942
|
-
export type RetrieveDatapoint21$Outbound = {
|
|
1943
|
-
type: string;
|
|
1944
|
-
text: string;
|
|
1945
|
-
};
|
|
1946
|
-
|
|
1947
|
-
/** @internal */
|
|
1948
|
-
export const RetrieveDatapoint21$outboundSchema: z.ZodType<
|
|
1949
|
-
RetrieveDatapoint21$Outbound,
|
|
1950
|
-
z.ZodTypeDef,
|
|
1951
|
-
RetrieveDatapoint21
|
|
1952
|
-
> = z.object({
|
|
1953
|
-
type: RetrieveDatapoint2Type$outboundSchema,
|
|
1954
|
-
text: z.string(),
|
|
1955
|
-
});
|
|
1956
|
-
|
|
1957
|
-
/**
|
|
1958
|
-
* @internal
|
|
1959
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1960
|
-
*/
|
|
1961
|
-
export namespace RetrieveDatapoint21$ {
|
|
1962
|
-
/** @deprecated use `RetrieveDatapoint21$inboundSchema` instead. */
|
|
1963
|
-
export const inboundSchema = RetrieveDatapoint21$inboundSchema;
|
|
1964
|
-
/** @deprecated use `RetrieveDatapoint21$outboundSchema` instead. */
|
|
1965
|
-
export const outboundSchema = RetrieveDatapoint21$outboundSchema;
|
|
1966
|
-
/** @deprecated use `RetrieveDatapoint21$Outbound` instead. */
|
|
1967
|
-
export type Outbound = RetrieveDatapoint21$Outbound;
|
|
1968
|
-
}
|
|
1969
|
-
|
|
1970
|
-
export function retrieveDatapoint21ToJSON(
|
|
1971
|
-
retrieveDatapoint21: RetrieveDatapoint21,
|
|
1972
|
-
): string {
|
|
1973
|
-
return JSON.stringify(
|
|
1974
|
-
RetrieveDatapoint21$outboundSchema.parse(retrieveDatapoint21),
|
|
1975
|
-
);
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
export function retrieveDatapoint21FromJSON(
|
|
1979
|
-
jsonString: string,
|
|
1980
|
-
): SafeParseResult<RetrieveDatapoint21, SDKValidationError> {
|
|
1981
|
-
return safeParse(
|
|
1982
|
-
jsonString,
|
|
1983
|
-
(x) => RetrieveDatapoint21$inboundSchema.parse(JSON.parse(x)),
|
|
1984
|
-
`Failed to parse 'RetrieveDatapoint21' from JSON`,
|
|
1985
|
-
);
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
/** @internal */
|
|
1989
|
-
export const RetrieveDatapointContent2$inboundSchema: z.ZodType<
|
|
1990
|
-
RetrieveDatapointContent2,
|
|
1991
|
-
z.ZodTypeDef,
|
|
1992
|
-
unknown
|
|
1993
|
-
> = z.union([
|
|
1994
|
-
z.lazy(() => RetrieveDatapoint21$inboundSchema),
|
|
1995
|
-
z.lazy(() => RetrieveDatapoint22$inboundSchema),
|
|
1996
|
-
z.lazy(() => RetrieveDatapoint23$inboundSchema),
|
|
1997
|
-
z.lazy(() => RetrieveDatapoint24$inboundSchema),
|
|
1998
|
-
]);
|
|
1999
|
-
|
|
2000
|
-
/** @internal */
|
|
2001
|
-
export type RetrieveDatapointContent2$Outbound =
|
|
2002
|
-
| RetrieveDatapoint21$Outbound
|
|
2003
|
-
| RetrieveDatapoint22$Outbound
|
|
2004
|
-
| RetrieveDatapoint23$Outbound
|
|
2005
|
-
| RetrieveDatapoint24$Outbound;
|
|
2006
|
-
|
|
2007
|
-
/** @internal */
|
|
2008
|
-
export const RetrieveDatapointContent2$outboundSchema: z.ZodType<
|
|
2009
|
-
RetrieveDatapointContent2$Outbound,
|
|
2010
|
-
z.ZodTypeDef,
|
|
2011
|
-
RetrieveDatapointContent2
|
|
2012
|
-
> = z.union([
|
|
2013
|
-
z.lazy(() => RetrieveDatapoint21$outboundSchema),
|
|
2014
|
-
z.lazy(() => RetrieveDatapoint22$outboundSchema),
|
|
2015
|
-
z.lazy(() => RetrieveDatapoint23$outboundSchema),
|
|
2016
|
-
z.lazy(() => RetrieveDatapoint24$outboundSchema),
|
|
2017
|
-
]);
|
|
2018
|
-
|
|
2019
|
-
/**
|
|
2020
|
-
* @internal
|
|
2021
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2022
|
-
*/
|
|
2023
|
-
export namespace RetrieveDatapointContent2$ {
|
|
2024
|
-
/** @deprecated use `RetrieveDatapointContent2$inboundSchema` instead. */
|
|
2025
|
-
export const inboundSchema = RetrieveDatapointContent2$inboundSchema;
|
|
2026
|
-
/** @deprecated use `RetrieveDatapointContent2$outboundSchema` instead. */
|
|
2027
|
-
export const outboundSchema = RetrieveDatapointContent2$outboundSchema;
|
|
2028
|
-
/** @deprecated use `RetrieveDatapointContent2$Outbound` instead. */
|
|
2029
|
-
export type Outbound = RetrieveDatapointContent2$Outbound;
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
export function retrieveDatapointContent2ToJSON(
|
|
2033
|
-
retrieveDatapointContent2: RetrieveDatapointContent2,
|
|
2034
|
-
): string {
|
|
2035
|
-
return JSON.stringify(
|
|
2036
|
-
RetrieveDatapointContent2$outboundSchema.parse(retrieveDatapointContent2),
|
|
2037
|
-
);
|
|
2038
|
-
}
|
|
2039
|
-
|
|
2040
|
-
export function retrieveDatapointContent2FromJSON(
|
|
2041
|
-
jsonString: string,
|
|
2042
|
-
): SafeParseResult<RetrieveDatapointContent2, SDKValidationError> {
|
|
2043
|
-
return safeParse(
|
|
2044
|
-
jsonString,
|
|
2045
|
-
(x) => RetrieveDatapointContent2$inboundSchema.parse(JSON.parse(x)),
|
|
2046
|
-
`Failed to parse 'RetrieveDatapointContent2' from JSON`,
|
|
2047
|
-
);
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
/** @internal */
|
|
2051
|
-
export const RetrieveDatapointMessagesContent$inboundSchema: z.ZodType<
|
|
2052
|
-
RetrieveDatapointMessagesContent,
|
|
2053
|
-
z.ZodTypeDef,
|
|
2054
|
-
unknown
|
|
2055
|
-
> = z.union([
|
|
2056
|
-
z.string(),
|
|
2057
|
-
z.array(z.union([
|
|
2058
|
-
z.lazy(() => RetrieveDatapoint21$inboundSchema),
|
|
2059
|
-
z.lazy(() => RetrieveDatapoint22$inboundSchema),
|
|
2060
|
-
z.lazy(() => RetrieveDatapoint23$inboundSchema),
|
|
2061
|
-
z.lazy(() => RetrieveDatapoint24$inboundSchema),
|
|
2062
|
-
])),
|
|
2063
|
-
]);
|
|
2064
|
-
|
|
2065
|
-
/** @internal */
|
|
2066
|
-
export type RetrieveDatapointMessagesContent$Outbound =
|
|
2067
|
-
| string
|
|
2068
|
-
| Array<
|
|
2069
|
-
| RetrieveDatapoint21$Outbound
|
|
2070
|
-
| RetrieveDatapoint22$Outbound
|
|
2071
|
-
| RetrieveDatapoint23$Outbound
|
|
2072
|
-
| RetrieveDatapoint24$Outbound
|
|
2073
|
-
>;
|
|
2074
|
-
|
|
2075
|
-
/** @internal */
|
|
2076
|
-
export const RetrieveDatapointMessagesContent$outboundSchema: z.ZodType<
|
|
2077
|
-
RetrieveDatapointMessagesContent$Outbound,
|
|
2078
|
-
z.ZodTypeDef,
|
|
2079
|
-
RetrieveDatapointMessagesContent
|
|
2080
|
-
> = z.union([
|
|
2081
|
-
z.string(),
|
|
2082
|
-
z.array(z.union([
|
|
2083
|
-
z.lazy(() => RetrieveDatapoint21$outboundSchema),
|
|
2084
|
-
z.lazy(() => RetrieveDatapoint22$outboundSchema),
|
|
2085
|
-
z.lazy(() => RetrieveDatapoint23$outboundSchema),
|
|
2086
|
-
z.lazy(() => RetrieveDatapoint24$outboundSchema),
|
|
2087
|
-
])),
|
|
2088
|
-
]);
|
|
2089
|
-
|
|
2090
|
-
/**
|
|
2091
|
-
* @internal
|
|
2092
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2093
|
-
*/
|
|
2094
|
-
export namespace RetrieveDatapointMessagesContent$ {
|
|
2095
|
-
/** @deprecated use `RetrieveDatapointMessagesContent$inboundSchema` instead. */
|
|
2096
|
-
export const inboundSchema = RetrieveDatapointMessagesContent$inboundSchema;
|
|
2097
|
-
/** @deprecated use `RetrieveDatapointMessagesContent$outboundSchema` instead. */
|
|
2098
|
-
export const outboundSchema = RetrieveDatapointMessagesContent$outboundSchema;
|
|
2099
|
-
/** @deprecated use `RetrieveDatapointMessagesContent$Outbound` instead. */
|
|
2100
|
-
export type Outbound = RetrieveDatapointMessagesContent$Outbound;
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
|
-
export function retrieveDatapointMessagesContentToJSON(
|
|
2104
|
-
retrieveDatapointMessagesContent: RetrieveDatapointMessagesContent,
|
|
2105
|
-
): string {
|
|
2106
|
-
return JSON.stringify(
|
|
2107
|
-
RetrieveDatapointMessagesContent$outboundSchema.parse(
|
|
2108
|
-
retrieveDatapointMessagesContent,
|
|
2109
|
-
),
|
|
2110
|
-
);
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
export function retrieveDatapointMessagesContentFromJSON(
|
|
2114
|
-
jsonString: string,
|
|
2115
|
-
): SafeParseResult<RetrieveDatapointMessagesContent, SDKValidationError> {
|
|
2116
|
-
return safeParse(
|
|
2117
|
-
jsonString,
|
|
2118
|
-
(x) => RetrieveDatapointMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
2119
|
-
`Failed to parse 'RetrieveDatapointMessagesContent' from JSON`,
|
|
2120
|
-
);
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
/** @internal */
|
|
2124
|
-
export const RetrieveDatapointMessagesUserMessage$inboundSchema: z.ZodType<
|
|
2125
|
-
RetrieveDatapointMessagesUserMessage,
|
|
2126
|
-
z.ZodTypeDef,
|
|
2127
|
-
unknown
|
|
2128
|
-
> = z.object({
|
|
2129
|
-
role: RetrieveDatapointMessagesDatasetsResponseRole$inboundSchema,
|
|
2130
|
-
name: z.string().optional(),
|
|
2131
|
-
content: z.union([
|
|
2132
|
-
z.string(),
|
|
2133
|
-
z.array(z.union([
|
|
2134
|
-
z.lazy(() => RetrieveDatapoint21$inboundSchema),
|
|
2135
|
-
z.lazy(() => RetrieveDatapoint22$inboundSchema),
|
|
2136
|
-
z.lazy(() => RetrieveDatapoint23$inboundSchema),
|
|
2137
|
-
z.lazy(() => RetrieveDatapoint24$inboundSchema),
|
|
2138
|
-
])),
|
|
2139
|
-
]),
|
|
2140
|
-
});
|
|
2141
|
-
|
|
2142
|
-
/** @internal */
|
|
2143
|
-
export type RetrieveDatapointMessagesUserMessage$Outbound = {
|
|
2144
|
-
role: string;
|
|
2145
|
-
name?: string | undefined;
|
|
2146
|
-
content:
|
|
2147
|
-
| string
|
|
2148
|
-
| Array<
|
|
2149
|
-
| RetrieveDatapoint21$Outbound
|
|
2150
|
-
| RetrieveDatapoint22$Outbound
|
|
2151
|
-
| RetrieveDatapoint23$Outbound
|
|
2152
|
-
| RetrieveDatapoint24$Outbound
|
|
2153
|
-
>;
|
|
2154
|
-
};
|
|
2155
|
-
|
|
2156
|
-
/** @internal */
|
|
2157
|
-
export const RetrieveDatapointMessagesUserMessage$outboundSchema: z.ZodType<
|
|
2158
|
-
RetrieveDatapointMessagesUserMessage$Outbound,
|
|
2159
|
-
z.ZodTypeDef,
|
|
2160
|
-
RetrieveDatapointMessagesUserMessage
|
|
2161
|
-
> = z.object({
|
|
2162
|
-
role: RetrieveDatapointMessagesDatasetsResponseRole$outboundSchema,
|
|
2163
|
-
name: z.string().optional(),
|
|
2164
|
-
content: z.union([
|
|
2165
|
-
z.string(),
|
|
2166
|
-
z.array(z.union([
|
|
2167
|
-
z.lazy(() => RetrieveDatapoint21$outboundSchema),
|
|
2168
|
-
z.lazy(() => RetrieveDatapoint22$outboundSchema),
|
|
2169
|
-
z.lazy(() => RetrieveDatapoint23$outboundSchema),
|
|
2170
|
-
z.lazy(() => RetrieveDatapoint24$outboundSchema),
|
|
2171
|
-
])),
|
|
2172
|
-
]),
|
|
2173
|
-
});
|
|
2174
|
-
|
|
2175
|
-
/**
|
|
2176
|
-
* @internal
|
|
2177
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2178
|
-
*/
|
|
2179
|
-
export namespace RetrieveDatapointMessagesUserMessage$ {
|
|
2180
|
-
/** @deprecated use `RetrieveDatapointMessagesUserMessage$inboundSchema` instead. */
|
|
2181
|
-
export const inboundSchema =
|
|
2182
|
-
RetrieveDatapointMessagesUserMessage$inboundSchema;
|
|
2183
|
-
/** @deprecated use `RetrieveDatapointMessagesUserMessage$outboundSchema` instead. */
|
|
2184
|
-
export const outboundSchema =
|
|
2185
|
-
RetrieveDatapointMessagesUserMessage$outboundSchema;
|
|
2186
|
-
/** @deprecated use `RetrieveDatapointMessagesUserMessage$Outbound` instead. */
|
|
2187
|
-
export type Outbound = RetrieveDatapointMessagesUserMessage$Outbound;
|
|
2188
|
-
}
|
|
2189
|
-
|
|
2190
|
-
export function retrieveDatapointMessagesUserMessageToJSON(
|
|
2191
|
-
retrieveDatapointMessagesUserMessage: RetrieveDatapointMessagesUserMessage,
|
|
2192
|
-
): string {
|
|
2193
|
-
return JSON.stringify(
|
|
2194
|
-
RetrieveDatapointMessagesUserMessage$outboundSchema.parse(
|
|
2195
|
-
retrieveDatapointMessagesUserMessage,
|
|
2196
|
-
),
|
|
2197
|
-
);
|
|
2198
|
-
}
|
|
2199
|
-
|
|
2200
|
-
export function retrieveDatapointMessagesUserMessageFromJSON(
|
|
2201
|
-
jsonString: string,
|
|
2202
|
-
): SafeParseResult<RetrieveDatapointMessagesUserMessage, SDKValidationError> {
|
|
2203
|
-
return safeParse(
|
|
2204
|
-
jsonString,
|
|
2205
|
-
(x) =>
|
|
2206
|
-
RetrieveDatapointMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2207
|
-
`Failed to parse 'RetrieveDatapointMessagesUserMessage' from JSON`,
|
|
2208
|
-
);
|
|
2209
|
-
}
|
|
2210
|
-
|
|
2211
|
-
/** @internal */
|
|
2212
|
-
export const RetrieveDatapointMessagesDatasetsRole$inboundSchema:
|
|
2213
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsRole> = z.nativeEnum(
|
|
2214
|
-
RetrieveDatapointMessagesDatasetsRole,
|
|
2215
|
-
);
|
|
2216
|
-
|
|
2217
|
-
/** @internal */
|
|
2218
|
-
export const RetrieveDatapointMessagesDatasetsRole$outboundSchema:
|
|
2219
|
-
z.ZodNativeEnum<typeof RetrieveDatapointMessagesDatasetsRole> =
|
|
2220
|
-
RetrieveDatapointMessagesDatasetsRole$inboundSchema;
|
|
2221
|
-
|
|
2222
|
-
/**
|
|
2223
|
-
* @internal
|
|
2224
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2225
|
-
*/
|
|
2226
|
-
export namespace RetrieveDatapointMessagesDatasetsRole$ {
|
|
2227
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsRole$inboundSchema` instead. */
|
|
2228
|
-
export const inboundSchema =
|
|
2229
|
-
RetrieveDatapointMessagesDatasetsRole$inboundSchema;
|
|
2230
|
-
/** @deprecated use `RetrieveDatapointMessagesDatasetsRole$outboundSchema` instead. */
|
|
2231
|
-
export const outboundSchema =
|
|
2232
|
-
RetrieveDatapointMessagesDatasetsRole$outboundSchema;
|
|
2233
|
-
}
|
|
2234
|
-
|
|
2235
|
-
/** @internal */
|
|
2236
|
-
export const RetrieveDatapointMessagesSystemMessage$inboundSchema: z.ZodType<
|
|
2237
|
-
RetrieveDatapointMessagesSystemMessage,
|
|
2238
|
-
z.ZodTypeDef,
|
|
2239
|
-
unknown
|
|
2240
|
-
> = z.object({
|
|
2241
|
-
role: RetrieveDatapointMessagesDatasetsRole$inboundSchema,
|
|
2242
|
-
content: z.string(),
|
|
2243
|
-
name: z.string().optional(),
|
|
2244
|
-
});
|
|
2245
|
-
|
|
2246
|
-
/** @internal */
|
|
2247
|
-
export type RetrieveDatapointMessagesSystemMessage$Outbound = {
|
|
2248
|
-
role: string;
|
|
2249
|
-
content: string;
|
|
2250
|
-
name?: string | undefined;
|
|
2251
|
-
};
|
|
2252
|
-
|
|
2253
|
-
/** @internal */
|
|
2254
|
-
export const RetrieveDatapointMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
2255
|
-
RetrieveDatapointMessagesSystemMessage$Outbound,
|
|
2256
|
-
z.ZodTypeDef,
|
|
2257
|
-
RetrieveDatapointMessagesSystemMessage
|
|
2258
|
-
> = z.object({
|
|
2259
|
-
role: RetrieveDatapointMessagesDatasetsRole$outboundSchema,
|
|
2260
|
-
content: z.string(),
|
|
2261
|
-
name: z.string().optional(),
|
|
2262
|
-
});
|
|
2263
|
-
|
|
2264
|
-
/**
|
|
2265
|
-
* @internal
|
|
2266
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2267
|
-
*/
|
|
2268
|
-
export namespace RetrieveDatapointMessagesSystemMessage$ {
|
|
2269
|
-
/** @deprecated use `RetrieveDatapointMessagesSystemMessage$inboundSchema` instead. */
|
|
2270
|
-
export const inboundSchema =
|
|
2271
|
-
RetrieveDatapointMessagesSystemMessage$inboundSchema;
|
|
2272
|
-
/** @deprecated use `RetrieveDatapointMessagesSystemMessage$outboundSchema` instead. */
|
|
2273
|
-
export const outboundSchema =
|
|
2274
|
-
RetrieveDatapointMessagesSystemMessage$outboundSchema;
|
|
2275
|
-
/** @deprecated use `RetrieveDatapointMessagesSystemMessage$Outbound` instead. */
|
|
2276
|
-
export type Outbound = RetrieveDatapointMessagesSystemMessage$Outbound;
|
|
2277
|
-
}
|
|
2278
|
-
|
|
2279
|
-
export function retrieveDatapointMessagesSystemMessageToJSON(
|
|
2280
|
-
retrieveDatapointMessagesSystemMessage:
|
|
2281
|
-
RetrieveDatapointMessagesSystemMessage,
|
|
2282
|
-
): string {
|
|
2283
|
-
return JSON.stringify(
|
|
2284
|
-
RetrieveDatapointMessagesSystemMessage$outboundSchema.parse(
|
|
2285
|
-
retrieveDatapointMessagesSystemMessage,
|
|
2286
|
-
),
|
|
2287
|
-
);
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
export function retrieveDatapointMessagesSystemMessageFromJSON(
|
|
2291
|
-
jsonString: string,
|
|
2292
|
-
): SafeParseResult<RetrieveDatapointMessagesSystemMessage, SDKValidationError> {
|
|
2293
|
-
return safeParse(
|
|
2294
|
-
jsonString,
|
|
2295
|
-
(x) =>
|
|
2296
|
-
RetrieveDatapointMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2297
|
-
`Failed to parse 'RetrieveDatapointMessagesSystemMessage' from JSON`,
|
|
2298
|
-
);
|
|
2299
|
-
}
|
|
2300
|
-
|
|
2301
|
-
/** @internal */
|
|
2302
|
-
export const RetrieveDatapointMessagesRole$inboundSchema: z.ZodNativeEnum<
|
|
2303
|
-
typeof RetrieveDatapointMessagesRole
|
|
2304
|
-
> = z.nativeEnum(RetrieveDatapointMessagesRole);
|
|
2305
|
-
|
|
2306
|
-
/** @internal */
|
|
2307
|
-
export const RetrieveDatapointMessagesRole$outboundSchema: z.ZodNativeEnum<
|
|
2308
|
-
typeof RetrieveDatapointMessagesRole
|
|
2309
|
-
> = RetrieveDatapointMessagesRole$inboundSchema;
|
|
2310
|
-
|
|
2311
|
-
/**
|
|
2312
|
-
* @internal
|
|
2313
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2314
|
-
*/
|
|
2315
|
-
export namespace RetrieveDatapointMessagesRole$ {
|
|
2316
|
-
/** @deprecated use `RetrieveDatapointMessagesRole$inboundSchema` instead. */
|
|
2317
|
-
export const inboundSchema = RetrieveDatapointMessagesRole$inboundSchema;
|
|
2318
|
-
/** @deprecated use `RetrieveDatapointMessagesRole$outboundSchema` instead. */
|
|
2319
|
-
export const outboundSchema = RetrieveDatapointMessagesRole$outboundSchema;
|
|
2320
|
-
}
|
|
2321
|
-
|
|
2322
|
-
/** @internal */
|
|
2323
|
-
export const RetrieveDatapointMessagesDeveloperMessage$inboundSchema: z.ZodType<
|
|
2324
|
-
RetrieveDatapointMessagesDeveloperMessage,
|
|
2325
|
-
z.ZodTypeDef,
|
|
2326
|
-
unknown
|
|
2327
|
-
> = z.object({
|
|
2328
|
-
role: RetrieveDatapointMessagesRole$inboundSchema,
|
|
2329
|
-
content: z.string(),
|
|
2330
|
-
name: z.string().optional(),
|
|
2331
|
-
});
|
|
2332
|
-
|
|
2333
|
-
/** @internal */
|
|
2334
|
-
export type RetrieveDatapointMessagesDeveloperMessage$Outbound = {
|
|
2335
|
-
role: string;
|
|
2336
|
-
content: string;
|
|
2337
|
-
name?: string | undefined;
|
|
2338
|
-
};
|
|
2339
|
-
|
|
2340
|
-
/** @internal */
|
|
2341
|
-
export const RetrieveDatapointMessagesDeveloperMessage$outboundSchema:
|
|
2342
|
-
z.ZodType<
|
|
2343
|
-
RetrieveDatapointMessagesDeveloperMessage$Outbound,
|
|
2344
|
-
z.ZodTypeDef,
|
|
2345
|
-
RetrieveDatapointMessagesDeveloperMessage
|
|
2346
|
-
> = z.object({
|
|
2347
|
-
role: RetrieveDatapointMessagesRole$outboundSchema,
|
|
2348
|
-
content: z.string(),
|
|
2349
|
-
name: z.string().optional(),
|
|
2350
|
-
});
|
|
2351
|
-
|
|
2352
|
-
/**
|
|
2353
|
-
* @internal
|
|
2354
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2355
|
-
*/
|
|
2356
|
-
export namespace RetrieveDatapointMessagesDeveloperMessage$ {
|
|
2357
|
-
/** @deprecated use `RetrieveDatapointMessagesDeveloperMessage$inboundSchema` instead. */
|
|
2358
|
-
export const inboundSchema =
|
|
2359
|
-
RetrieveDatapointMessagesDeveloperMessage$inboundSchema;
|
|
2360
|
-
/** @deprecated use `RetrieveDatapointMessagesDeveloperMessage$outboundSchema` instead. */
|
|
2361
|
-
export const outboundSchema =
|
|
2362
|
-
RetrieveDatapointMessagesDeveloperMessage$outboundSchema;
|
|
2363
|
-
/** @deprecated use `RetrieveDatapointMessagesDeveloperMessage$Outbound` instead. */
|
|
2364
|
-
export type Outbound = RetrieveDatapointMessagesDeveloperMessage$Outbound;
|
|
2365
|
-
}
|
|
2366
|
-
|
|
2367
|
-
export function retrieveDatapointMessagesDeveloperMessageToJSON(
|
|
2368
|
-
retrieveDatapointMessagesDeveloperMessage:
|
|
2369
|
-
RetrieveDatapointMessagesDeveloperMessage,
|
|
2370
|
-
): string {
|
|
2371
|
-
return JSON.stringify(
|
|
2372
|
-
RetrieveDatapointMessagesDeveloperMessage$outboundSchema.parse(
|
|
2373
|
-
retrieveDatapointMessagesDeveloperMessage,
|
|
2374
|
-
),
|
|
2375
|
-
);
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
|
-
export function retrieveDatapointMessagesDeveloperMessageFromJSON(
|
|
2379
|
-
jsonString: string,
|
|
2380
|
-
): SafeParseResult<
|
|
2381
|
-
RetrieveDatapointMessagesDeveloperMessage,
|
|
2382
|
-
SDKValidationError
|
|
2383
|
-
> {
|
|
2384
|
-
return safeParse(
|
|
2385
|
-
jsonString,
|
|
2386
|
-
(x) =>
|
|
2387
|
-
RetrieveDatapointMessagesDeveloperMessage$inboundSchema.parse(
|
|
2388
|
-
JSON.parse(x),
|
|
2389
|
-
),
|
|
2390
|
-
`Failed to parse 'RetrieveDatapointMessagesDeveloperMessage' from JSON`,
|
|
2391
|
-
);
|
|
2392
|
-
}
|
|
2393
|
-
|
|
2394
|
-
/** @internal */
|
|
2395
|
-
export const RetrieveDatapointMessages$inboundSchema: z.ZodType<
|
|
2396
|
-
RetrieveDatapointMessages,
|
|
2397
|
-
z.ZodTypeDef,
|
|
2398
|
-
unknown
|
|
2399
|
-
> = z.union([
|
|
2400
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$inboundSchema),
|
|
2401
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
|
|
2402
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$inboundSchema),
|
|
2403
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$inboundSchema),
|
|
2404
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$inboundSchema),
|
|
2405
|
-
]);
|
|
2406
|
-
|
|
2407
|
-
/** @internal */
|
|
2408
|
-
export type RetrieveDatapointMessages$Outbound =
|
|
2409
|
-
| RetrieveDatapointMessagesToolMessage$Outbound
|
|
2410
|
-
| RetrieveDatapointMessagesDeveloperMessage$Outbound
|
|
2411
|
-
| RetrieveDatapointMessagesSystemMessage$Outbound
|
|
2412
|
-
| RetrieveDatapointMessagesUserMessage$Outbound
|
|
2413
|
-
| RetrieveDatapointMessagesAssistantMessage$Outbound;
|
|
2414
|
-
|
|
2415
|
-
/** @internal */
|
|
2416
|
-
export const RetrieveDatapointMessages$outboundSchema: z.ZodType<
|
|
2417
|
-
RetrieveDatapointMessages$Outbound,
|
|
2418
|
-
z.ZodTypeDef,
|
|
2419
|
-
RetrieveDatapointMessages
|
|
2420
|
-
> = z.union([
|
|
2421
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$outboundSchema),
|
|
2422
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
|
|
2423
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$outboundSchema),
|
|
2424
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$outboundSchema),
|
|
2425
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$outboundSchema),
|
|
2426
|
-
]);
|
|
2427
|
-
|
|
2428
|
-
/**
|
|
2429
|
-
* @internal
|
|
2430
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2431
|
-
*/
|
|
2432
|
-
export namespace RetrieveDatapointMessages$ {
|
|
2433
|
-
/** @deprecated use `RetrieveDatapointMessages$inboundSchema` instead. */
|
|
2434
|
-
export const inboundSchema = RetrieveDatapointMessages$inboundSchema;
|
|
2435
|
-
/** @deprecated use `RetrieveDatapointMessages$outboundSchema` instead. */
|
|
2436
|
-
export const outboundSchema = RetrieveDatapointMessages$outboundSchema;
|
|
2437
|
-
/** @deprecated use `RetrieveDatapointMessages$Outbound` instead. */
|
|
2438
|
-
export type Outbound = RetrieveDatapointMessages$Outbound;
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
export function retrieveDatapointMessagesToJSON(
|
|
2442
|
-
retrieveDatapointMessages: RetrieveDatapointMessages,
|
|
2443
|
-
): string {
|
|
2444
|
-
return JSON.stringify(
|
|
2445
|
-
RetrieveDatapointMessages$outboundSchema.parse(retrieveDatapointMessages),
|
|
2446
|
-
);
|
|
2447
|
-
}
|
|
2448
|
-
|
|
2449
|
-
export function retrieveDatapointMessagesFromJSON(
|
|
2450
|
-
jsonString: string,
|
|
2451
|
-
): SafeParseResult<RetrieveDatapointMessages, SDKValidationError> {
|
|
2452
|
-
return safeParse(
|
|
2453
|
-
jsonString,
|
|
2454
|
-
(x) => RetrieveDatapointMessages$inboundSchema.parse(JSON.parse(x)),
|
|
2455
|
-
`Failed to parse 'RetrieveDatapointMessages' from JSON`,
|
|
2456
|
-
);
|
|
2457
|
-
}
|
|
2458
|
-
|
|
2459
|
-
/** @internal */
|
|
2460
|
-
export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
2461
|
-
RetrieveDatapointResponseBody,
|
|
2462
|
-
z.ZodTypeDef,
|
|
2463
|
-
unknown
|
|
2464
|
-
> = z.object({
|
|
2465
|
-
_id: z.string(),
|
|
2466
|
-
workspace_id: z.string(),
|
|
2467
|
-
inputs: z.record(z.any()).optional(),
|
|
2468
|
-
messages: z.array(
|
|
2469
|
-
z.union([
|
|
2470
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$inboundSchema),
|
|
2471
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$inboundSchema),
|
|
2472
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$inboundSchema),
|
|
2473
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$inboundSchema),
|
|
2474
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$inboundSchema),
|
|
2475
|
-
]),
|
|
2476
|
-
).optional(),
|
|
2477
|
-
expected_output: z.string().optional(),
|
|
2478
|
-
dataset_id: z.string(),
|
|
2479
|
-
created_by_id: z.string().optional(),
|
|
2480
|
-
updated_by_id: z.string().optional(),
|
|
2481
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2482
|
-
.optional(),
|
|
2483
|
-
updated: z.string().datetime({ offset: true }).default(
|
|
2484
|
-
"2025-07-04T12:58:16.632Z",
|
|
2485
|
-
).transform(v => new Date(v)),
|
|
2486
|
-
}).transform((v) => {
|
|
2487
|
-
return remap$(v, {
|
|
2488
|
-
"_id": "id",
|
|
2489
|
-
"workspace_id": "workspaceId",
|
|
2490
|
-
"expected_output": "expectedOutput",
|
|
2491
|
-
"dataset_id": "datasetId",
|
|
2492
|
-
"created_by_id": "createdById",
|
|
2493
|
-
"updated_by_id": "updatedById",
|
|
2494
|
-
});
|
|
2495
|
-
});
|
|
2496
|
-
|
|
2497
|
-
/** @internal */
|
|
2498
|
-
export type RetrieveDatapointResponseBody$Outbound = {
|
|
2499
|
-
_id: string;
|
|
2500
|
-
workspace_id: string;
|
|
2501
|
-
inputs?: { [k: string]: any } | undefined;
|
|
2502
|
-
messages?:
|
|
2503
|
-
| Array<
|
|
2504
|
-
| RetrieveDatapointMessagesToolMessage$Outbound
|
|
2505
|
-
| RetrieveDatapointMessagesDeveloperMessage$Outbound
|
|
2506
|
-
| RetrieveDatapointMessagesSystemMessage$Outbound
|
|
2507
|
-
| RetrieveDatapointMessagesUserMessage$Outbound
|
|
2508
|
-
| RetrieveDatapointMessagesAssistantMessage$Outbound
|
|
2509
|
-
>
|
|
2510
|
-
| undefined;
|
|
2511
|
-
expected_output?: string | undefined;
|
|
2512
|
-
dataset_id: string;
|
|
2513
|
-
created_by_id?: string | undefined;
|
|
2514
|
-
updated_by_id?: string | undefined;
|
|
2515
|
-
created?: string | undefined;
|
|
2516
|
-
updated: string;
|
|
2517
|
-
};
|
|
2518
|
-
|
|
2519
|
-
/** @internal */
|
|
2520
|
-
export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
|
|
2521
|
-
RetrieveDatapointResponseBody$Outbound,
|
|
2522
|
-
z.ZodTypeDef,
|
|
2523
|
-
RetrieveDatapointResponseBody
|
|
2524
|
-
> = z.object({
|
|
2525
|
-
id: z.string(),
|
|
2526
|
-
workspaceId: z.string(),
|
|
2527
|
-
inputs: z.record(z.any()).optional(),
|
|
2528
|
-
messages: z.array(
|
|
2529
|
-
z.union([
|
|
2530
|
-
z.lazy(() => RetrieveDatapointMessagesToolMessage$outboundSchema),
|
|
2531
|
-
z.lazy(() => RetrieveDatapointMessagesDeveloperMessage$outboundSchema),
|
|
2532
|
-
z.lazy(() => RetrieveDatapointMessagesSystemMessage$outboundSchema),
|
|
2533
|
-
z.lazy(() => RetrieveDatapointMessagesUserMessage$outboundSchema),
|
|
2534
|
-
z.lazy(() => RetrieveDatapointMessagesAssistantMessage$outboundSchema),
|
|
2535
|
-
]),
|
|
2536
|
-
).optional(),
|
|
2537
|
-
expectedOutput: z.string().optional(),
|
|
2538
|
-
datasetId: z.string(),
|
|
2539
|
-
createdById: z.string().optional(),
|
|
2540
|
-
updatedById: z.string().optional(),
|
|
2541
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2542
|
-
updated: z.date().default(() => new Date("2025-07-04T12:58:16.632Z"))
|
|
2543
|
-
.transform(v => v.toISOString()),
|
|
2544
|
-
}).transform((v) => {
|
|
2545
|
-
return remap$(v, {
|
|
2546
|
-
id: "_id",
|
|
2547
|
-
workspaceId: "workspace_id",
|
|
2548
|
-
expectedOutput: "expected_output",
|
|
2549
|
-
datasetId: "dataset_id",
|
|
2550
|
-
createdById: "created_by_id",
|
|
2551
|
-
updatedById: "updated_by_id",
|
|
2552
|
-
});
|
|
2553
|
-
});
|
|
2554
|
-
|
|
2555
|
-
/**
|
|
2556
|
-
* @internal
|
|
2557
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2558
|
-
*/
|
|
2559
|
-
export namespace RetrieveDatapointResponseBody$ {
|
|
2560
|
-
/** @deprecated use `RetrieveDatapointResponseBody$inboundSchema` instead. */
|
|
2561
|
-
export const inboundSchema = RetrieveDatapointResponseBody$inboundSchema;
|
|
2562
|
-
/** @deprecated use `RetrieveDatapointResponseBody$outboundSchema` instead. */
|
|
2563
|
-
export const outboundSchema = RetrieveDatapointResponseBody$outboundSchema;
|
|
2564
|
-
/** @deprecated use `RetrieveDatapointResponseBody$Outbound` instead. */
|
|
2565
|
-
export type Outbound = RetrieveDatapointResponseBody$Outbound;
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
|
-
export function retrieveDatapointResponseBodyToJSON(
|
|
2569
|
-
retrieveDatapointResponseBody: RetrieveDatapointResponseBody,
|
|
2570
|
-
): string {
|
|
2571
|
-
return JSON.stringify(
|
|
2572
|
-
RetrieveDatapointResponseBody$outboundSchema.parse(
|
|
2573
|
-
retrieveDatapointResponseBody,
|
|
2574
|
-
),
|
|
2575
|
-
);
|
|
2576
|
-
}
|
|
2577
|
-
|
|
2578
|
-
export function retrieveDatapointResponseBodyFromJSON(
|
|
2579
|
-
jsonString: string,
|
|
2580
|
-
): SafeParseResult<RetrieveDatapointResponseBody, SDKValidationError> {
|
|
2581
|
-
return safeParse(
|
|
2582
|
-
jsonString,
|
|
2583
|
-
(x) => RetrieveDatapointResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
2584
|
-
`Failed to parse 'RetrieveDatapointResponseBody' from JSON`,
|
|
2585
|
-
);
|
|
2586
|
-
}
|