@orq-ai/node 3.6.2 → 3.7.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 +144 -47
- package/bin/mcp-server.js.map +75 -75
- package/funcs/contactsCreate.js +2 -0
- package/funcs/contactsCreate.js.map +1 -1
- package/funcs/datasetsClear.js +2 -0
- package/funcs/datasetsClear.js.map +1 -1
- package/funcs/datasetsCreate.js +2 -0
- package/funcs/datasetsCreate.js.map +1 -1
- package/funcs/datasetsCreateDatapoint.js +2 -0
- package/funcs/datasetsCreateDatapoint.js.map +1 -1
- package/funcs/datasetsCreateDatapoints.js +2 -0
- package/funcs/datasetsCreateDatapoints.js.map +1 -1
- package/funcs/datasetsCreateExperiment.js +2 -0
- package/funcs/datasetsCreateExperiment.js.map +1 -1
- package/funcs/datasetsDelete.js +2 -0
- package/funcs/datasetsDelete.js.map +1 -1
- package/funcs/datasetsDeleteDatapoint.js +2 -0
- package/funcs/datasetsDeleteDatapoint.js.map +1 -1
- package/funcs/datasetsList.js +2 -0
- package/funcs/datasetsList.js.map +1 -1
- package/funcs/datasetsListDatapoints.js +2 -0
- package/funcs/datasetsListDatapoints.js.map +1 -1
- package/funcs/datasetsRetrieve.js +2 -0
- package/funcs/datasetsRetrieve.js.map +1 -1
- package/funcs/datasetsRetrieveDatapoint.js +2 -0
- package/funcs/datasetsRetrieveDatapoint.js.map +1 -1
- package/funcs/datasetsUpdate.js +2 -0
- package/funcs/datasetsUpdate.js.map +1 -1
- package/funcs/datasetsUpdateDatapoint.js +2 -0
- package/funcs/datasetsUpdateDatapoint.js.map +1 -1
- package/funcs/deploymentsCreateExperiment.js +2 -0
- package/funcs/deploymentsCreateExperiment.js.map +1 -1
- package/funcs/deploymentsGetConfig.js +2 -0
- package/funcs/deploymentsGetConfig.js.map +1 -1
- package/funcs/deploymentsInvoke.js +2 -0
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/deploymentsList.js +2 -0
- package/funcs/deploymentsList.js.map +1 -1
- package/funcs/deploymentsMetricsCreate.js +2 -0
- package/funcs/deploymentsMetricsCreate.js.map +1 -1
- package/funcs/deploymentsStream.js +2 -0
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/feedbackCreate.js +2 -0
- package/funcs/feedbackCreate.js.map +1 -1
- package/funcs/filesCreate.js +2 -0
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.js +2 -0
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesGet.js +2 -0
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.js +2 -0
- package/funcs/filesList.js.map +1 -1
- package/funcs/knowledgeCreate.js +2 -0
- package/funcs/knowledgeCreate.js.map +1 -1
- package/funcs/knowledgeCreateChunks.js +2 -0
- package/funcs/knowledgeCreateChunks.js.map +1 -1
- package/funcs/knowledgeCreateDatasource.js +2 -0
- package/funcs/knowledgeCreateDatasource.js.map +1 -1
- package/funcs/knowledgeDelete.js +2 -0
- package/funcs/knowledgeDelete.js.map +1 -1
- package/funcs/knowledgeDeleteChunk.js +2 -0
- package/funcs/knowledgeDeleteChunk.js.map +1 -1
- package/funcs/knowledgeDeleteDatasource.js +2 -0
- package/funcs/knowledgeDeleteDatasource.js.map +1 -1
- package/funcs/knowledgeList.js +2 -0
- package/funcs/knowledgeList.js.map +1 -1
- package/funcs/knowledgeListChunks.js +2 -0
- package/funcs/knowledgeListChunks.js.map +1 -1
- package/funcs/knowledgeListDatasources.js +2 -0
- package/funcs/knowledgeListDatasources.js.map +1 -1
- package/funcs/knowledgeRetrieve.js +2 -0
- package/funcs/knowledgeRetrieve.js.map +1 -1
- package/funcs/knowledgeRetrieveChunk.js +2 -0
- package/funcs/knowledgeRetrieveChunk.js.map +1 -1
- package/funcs/knowledgeRetrieveDatasource.js +2 -0
- package/funcs/knowledgeRetrieveDatasource.js.map +1 -1
- package/funcs/knowledgeSearch.js +2 -0
- package/funcs/knowledgeSearch.js.map +1 -1
- package/funcs/knowledgeUpdate.js +2 -0
- package/funcs/knowledgeUpdate.js.map +1 -1
- package/funcs/knowledgeUpdateChunk.js +2 -0
- package/funcs/knowledgeUpdateChunk.js.map +1 -1
- package/funcs/knowledgeUpdateDatasource.js +2 -0
- package/funcs/knowledgeUpdateDatasource.js.map +1 -1
- package/funcs/modelsList.js +2 -0
- package/funcs/modelsList.js.map +1 -1
- package/funcs/promptsCreate.js +2 -0
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.js +2 -0
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetVersion.js +2 -0
- package/funcs/promptsGetVersion.js.map +1 -1
- package/funcs/promptsList.js +2 -0
- package/funcs/promptsList.js.map +1 -1
- package/funcs/promptsListVersions.js +2 -0
- package/funcs/promptsListVersions.js.map +1 -1
- package/funcs/promptsRetrieve.js +2 -0
- package/funcs/promptsRetrieve.js.map +1 -1
- package/funcs/promptsUpdate.js +2 -0
- package/funcs/promptsUpdate.js.map +1 -1
- package/funcs/remoteconfigsRetrieve.js +2 -0
- package/funcs/remoteconfigsRetrieve.js.map +1 -1
- package/hooks/types.d.ts +2 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +7 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +1 -0
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +3 -3
- package/lib/sdks.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/bulkcreatedatapoints.js +2 -2
- 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/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.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/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.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/package.json +3 -2
- package/src/funcs/contactsCreate.ts +2 -0
- package/src/funcs/datasetsClear.ts +2 -0
- package/src/funcs/datasetsCreate.ts +2 -0
- package/src/funcs/datasetsCreateDatapoint.ts +2 -0
- package/src/funcs/datasetsCreateDatapoints.ts +2 -0
- package/src/funcs/datasetsCreateExperiment.ts +2 -0
- package/src/funcs/datasetsDelete.ts +2 -0
- package/src/funcs/datasetsDeleteDatapoint.ts +2 -0
- package/src/funcs/datasetsList.ts +2 -0
- package/src/funcs/datasetsListDatapoints.ts +2 -0
- package/src/funcs/datasetsRetrieve.ts +2 -0
- package/src/funcs/datasetsRetrieveDatapoint.ts +2 -0
- package/src/funcs/datasetsUpdate.ts +2 -0
- package/src/funcs/datasetsUpdateDatapoint.ts +2 -0
- package/src/funcs/deploymentsCreateExperiment.ts +2 -0
- package/src/funcs/deploymentsGetConfig.ts +2 -0
- package/src/funcs/deploymentsInvoke.ts +2 -0
- package/src/funcs/deploymentsList.ts +2 -0
- package/src/funcs/deploymentsMetricsCreate.ts +2 -0
- package/src/funcs/deploymentsStream.ts +2 -0
- package/src/funcs/feedbackCreate.ts +2 -0
- package/src/funcs/filesCreate.ts +2 -0
- package/src/funcs/filesDelete.ts +2 -0
- package/src/funcs/filesGet.ts +2 -0
- package/src/funcs/filesList.ts +2 -0
- package/src/funcs/knowledgeCreate.ts +2 -0
- package/src/funcs/knowledgeCreateChunks.ts +2 -0
- package/src/funcs/knowledgeCreateDatasource.ts +2 -0
- package/src/funcs/knowledgeDelete.ts +2 -0
- package/src/funcs/knowledgeDeleteChunk.ts +2 -0
- package/src/funcs/knowledgeDeleteDatasource.ts +2 -0
- package/src/funcs/knowledgeList.ts +2 -0
- package/src/funcs/knowledgeListChunks.ts +2 -0
- package/src/funcs/knowledgeListDatasources.ts +2 -0
- package/src/funcs/knowledgeRetrieve.ts +2 -0
- package/src/funcs/knowledgeRetrieveChunk.ts +2 -0
- package/src/funcs/knowledgeRetrieveDatasource.ts +2 -0
- package/src/funcs/knowledgeSearch.ts +2 -0
- package/src/funcs/knowledgeUpdate.ts +2 -0
- package/src/funcs/knowledgeUpdateChunk.ts +2 -0
- package/src/funcs/knowledgeUpdateDatasource.ts +2 -0
- package/src/funcs/modelsList.ts +2 -0
- package/src/funcs/promptsCreate.ts +2 -0
- package/src/funcs/promptsDelete.ts +2 -0
- package/src/funcs/promptsGetVersion.ts +2 -0
- package/src/funcs/promptsList.ts +2 -0
- package/src/funcs/promptsListVersions.ts +2 -0
- package/src/funcs/promptsRetrieve.ts +2 -0
- package/src/funcs/promptsUpdate.ts +2 -0
- package/src/funcs/remoteconfigsRetrieve.ts +2 -0
- package/src/hooks/types.ts +2 -0
- package/src/lib/config.ts +7 -3
- package/src/lib/sdks.ts +10 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- 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/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.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/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/FUNCTIONS.md +0 -106
- package/packages/orq-rc/README.md +0 -707
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -84
- package/packages/orq-rc/docs/sdks/datasets/README.md +0 -1027
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -405
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -92
- package/packages/orq-rc/docs/sdks/files/README.md +0 -311
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1285
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -86
- package/packages/orq-rc/docs/sdks/models/README.md +0 -79
- package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -576
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -80
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -3217
- 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 -154
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -161
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -159
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -161
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateExperiment.ts +0 -162
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -161
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -161
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -168
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -169
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -170
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -173
- package/packages/orq-rc/src/funcs/deploymentsCreateExperiment.ts +0 -167
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -162
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -170
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -170
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -178
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -154
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -174
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -158
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -160
- package/packages/orq-rc/src/funcs/filesList.ts +0 -161
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -152
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -165
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -160
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -161
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -168
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -163
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -172
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -168
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -160
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -163
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -161
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -168
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -164
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -136
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -154
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -158
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -175
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -161
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -167
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -155
- 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 -110
- package/packages/orq-rc/src/index.ts +0 -7
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -70
- 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 -40
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -345
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -401
- 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 -125
- package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -140
- 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 -163
- 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/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/datasetsCreateDatapoints.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateExperiment.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/deploymentsCreateExperiment.ts +0 -37
- 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/feedbackCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/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 -27
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -71
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -82
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -10
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -97
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -71
- package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +0 -2232
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -432
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -256
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
- package/packages/orq-rc/src/models/operations/createdatasetexperiment.ts +0 -307
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2149
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
- package/packages/orq-rc/src/models/operations/createdeploymentexperiment.ts +0 -321
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -4079
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
- 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/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 -5435
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9378
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1255
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2316
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9499
- 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 -2294
- 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 -2155
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2160
- package/packages/orq-rc/src/models/operations/index.ts +0 -54
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1276
- 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 -2292
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1126
- 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/updatedatapoint.ts +0 -2139
- 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/updateknowledge.ts +0 -980
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -4261
- package/packages/orq-rc/src/sdk/contacts.ts +0 -27
- package/packages/orq-rc/src/sdk/datasets.ts +0 -240
- package/packages/orq-rc/src/sdk/deployments.ts +0 -107
- 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 -264
- 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 -61
- 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,2232 +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
|
-
/**
|
|
13
|
-
* The role of the prompt message
|
|
14
|
-
*/
|
|
15
|
-
export const BulkCreateDatapointsRole = {
|
|
16
|
-
System: "system",
|
|
17
|
-
Assistant: "assistant",
|
|
18
|
-
User: "user",
|
|
19
|
-
Exception: "exception",
|
|
20
|
-
Tool: "tool",
|
|
21
|
-
Prompt: "prompt",
|
|
22
|
-
Correction: "correction",
|
|
23
|
-
ExpectedOutput: "expected_output",
|
|
24
|
-
} as const;
|
|
25
|
-
/**
|
|
26
|
-
* The role of the prompt message
|
|
27
|
-
*/
|
|
28
|
-
export type BulkCreateDatapointsRole = ClosedEnum<
|
|
29
|
-
typeof BulkCreateDatapointsRole
|
|
30
|
-
>;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The type of the content part. Always `file`.
|
|
34
|
-
*/
|
|
35
|
-
export const BulkCreateDatapoints2DatasetsRequestType = {
|
|
36
|
-
File: "file",
|
|
37
|
-
} as const;
|
|
38
|
-
/**
|
|
39
|
-
* The type of the content part. Always `file`.
|
|
40
|
-
*/
|
|
41
|
-
export type BulkCreateDatapoints2DatasetsRequestType = ClosedEnum<
|
|
42
|
-
typeof BulkCreateDatapoints2DatasetsRequestType
|
|
43
|
-
>;
|
|
44
|
-
|
|
45
|
-
export type BulkCreateDatapoints2File = {
|
|
46
|
-
/**
|
|
47
|
-
* The base64 encoded file data, used when passing the file to the model as a string.
|
|
48
|
-
*/
|
|
49
|
-
fileData: string;
|
|
50
|
-
/**
|
|
51
|
-
* The name of the file, used when passing the file to the model as a string.
|
|
52
|
-
*/
|
|
53
|
-
filename?: string | undefined;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export type BulkCreateDatapoints23 = {
|
|
57
|
-
/**
|
|
58
|
-
* The type of the content part. Always `file`.
|
|
59
|
-
*/
|
|
60
|
-
type: BulkCreateDatapoints2DatasetsRequestType;
|
|
61
|
-
file: BulkCreateDatapoints2File;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export const BulkCreateDatapoints2DatasetsType = {
|
|
65
|
-
ImageUrl: "image_url",
|
|
66
|
-
} as const;
|
|
67
|
-
export type BulkCreateDatapoints2DatasetsType = ClosedEnum<
|
|
68
|
-
typeof BulkCreateDatapoints2DatasetsType
|
|
69
|
-
>;
|
|
70
|
-
|
|
71
|
-
export type BulkCreateDatapoints2ImageUrl = {
|
|
72
|
-
/**
|
|
73
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
74
|
-
*/
|
|
75
|
-
url: string;
|
|
76
|
-
/**
|
|
77
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
78
|
-
*/
|
|
79
|
-
detail?: string | undefined;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
84
|
-
*/
|
|
85
|
-
export type BulkCreateDatapoints22 = {
|
|
86
|
-
type: BulkCreateDatapoints2DatasetsType;
|
|
87
|
-
imageUrl: BulkCreateDatapoints2ImageUrl;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export const BulkCreateDatapoints2Type = {
|
|
91
|
-
Text: "text",
|
|
92
|
-
} as const;
|
|
93
|
-
export type BulkCreateDatapoints2Type = ClosedEnum<
|
|
94
|
-
typeof BulkCreateDatapoints2Type
|
|
95
|
-
>;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Text content part of a prompt message
|
|
99
|
-
*/
|
|
100
|
-
export type BulkCreateDatapoints21 = {
|
|
101
|
-
type: BulkCreateDatapoints2Type;
|
|
102
|
-
text: string;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export type BulkCreateDatapointsContent2 =
|
|
106
|
-
| BulkCreateDatapoints21
|
|
107
|
-
| BulkCreateDatapoints22
|
|
108
|
-
| BulkCreateDatapoints23;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
112
|
-
*/
|
|
113
|
-
export type BulkCreateDatapointsContent =
|
|
114
|
-
| string
|
|
115
|
-
| Array<
|
|
116
|
-
BulkCreateDatapoints21 | BulkCreateDatapoints22 | BulkCreateDatapoints23
|
|
117
|
-
>;
|
|
118
|
-
|
|
119
|
-
export const BulkCreateDatapointsType = {
|
|
120
|
-
Function: "function",
|
|
121
|
-
} as const;
|
|
122
|
-
export type BulkCreateDatapointsType = ClosedEnum<
|
|
123
|
-
typeof BulkCreateDatapointsType
|
|
124
|
-
>;
|
|
125
|
-
|
|
126
|
-
export type BulkCreateDatapointsFunction = {
|
|
127
|
-
name: string;
|
|
128
|
-
/**
|
|
129
|
-
* JSON string arguments for the functions
|
|
130
|
-
*/
|
|
131
|
-
arguments: string;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export type BulkCreateDatapointsToolCalls = {
|
|
135
|
-
id?: string | undefined;
|
|
136
|
-
index?: number | undefined;
|
|
137
|
-
type: BulkCreateDatapointsType;
|
|
138
|
-
function: BulkCreateDatapointsFunction;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
export type BulkCreateDatapointsMessages = {
|
|
142
|
-
/**
|
|
143
|
-
* The role of the prompt message
|
|
144
|
-
*/
|
|
145
|
-
role: BulkCreateDatapointsRole;
|
|
146
|
-
/**
|
|
147
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
148
|
-
*/
|
|
149
|
-
content:
|
|
150
|
-
| string
|
|
151
|
-
| Array<
|
|
152
|
-
BulkCreateDatapoints21 | BulkCreateDatapoints22 | BulkCreateDatapoints23
|
|
153
|
-
>;
|
|
154
|
-
toolCalls?: Array<BulkCreateDatapointsToolCalls> | undefined;
|
|
155
|
-
toolCallId?: string | undefined;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export type Items = {
|
|
159
|
-
/**
|
|
160
|
-
* 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.
|
|
161
|
-
*/
|
|
162
|
-
inputs?: { [k: string]: any } | undefined;
|
|
163
|
-
/**
|
|
164
|
-
* The prompt template messages
|
|
165
|
-
*/
|
|
166
|
-
messages?: Array<BulkCreateDatapointsMessages> | undefined;
|
|
167
|
-
expectedOutput?: string | undefined;
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
export type BulkCreateDatapointsRequestBody = {
|
|
171
|
-
items: Array<Items>;
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
export type BulkCreateDatapointsRequest = {
|
|
175
|
-
datasetId: string;
|
|
176
|
-
requestBody?: BulkCreateDatapointsRequestBody | undefined;
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* The role of the prompt message
|
|
181
|
-
*/
|
|
182
|
-
export const BulkCreateDatapointsDatasetsRole = {
|
|
183
|
-
System: "system",
|
|
184
|
-
Assistant: "assistant",
|
|
185
|
-
User: "user",
|
|
186
|
-
Exception: "exception",
|
|
187
|
-
Tool: "tool",
|
|
188
|
-
Prompt: "prompt",
|
|
189
|
-
Correction: "correction",
|
|
190
|
-
ExpectedOutput: "expected_output",
|
|
191
|
-
} as const;
|
|
192
|
-
/**
|
|
193
|
-
* The role of the prompt message
|
|
194
|
-
*/
|
|
195
|
-
export type BulkCreateDatapointsDatasetsRole = ClosedEnum<
|
|
196
|
-
typeof BulkCreateDatapointsDatasetsRole
|
|
197
|
-
>;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* The type of the content part. Always `file`.
|
|
201
|
-
*/
|
|
202
|
-
export const BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType = {
|
|
203
|
-
File: "file",
|
|
204
|
-
} as const;
|
|
205
|
-
/**
|
|
206
|
-
* The type of the content part. Always `file`.
|
|
207
|
-
*/
|
|
208
|
-
export type BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType =
|
|
209
|
-
ClosedEnum<
|
|
210
|
-
typeof BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType
|
|
211
|
-
>;
|
|
212
|
-
|
|
213
|
-
export type BulkCreateDatapoints2DatasetsFile = {
|
|
214
|
-
/**
|
|
215
|
-
* The base64 encoded file data, used when passing the file to the model as a string.
|
|
216
|
-
*/
|
|
217
|
-
fileData: string;
|
|
218
|
-
/**
|
|
219
|
-
* The name of the file, used when passing the file to the model as a string.
|
|
220
|
-
*/
|
|
221
|
-
filename?: string | undefined;
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
export type BulkCreateDatapoints2Datasets3 = {
|
|
225
|
-
/**
|
|
226
|
-
* The type of the content part. Always `file`.
|
|
227
|
-
*/
|
|
228
|
-
type: BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType;
|
|
229
|
-
file: BulkCreateDatapoints2DatasetsFile;
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
export const BulkCreateDatapoints2DatasetsResponse200Type = {
|
|
233
|
-
ImageUrl: "image_url",
|
|
234
|
-
} as const;
|
|
235
|
-
export type BulkCreateDatapoints2DatasetsResponse200Type = ClosedEnum<
|
|
236
|
-
typeof BulkCreateDatapoints2DatasetsResponse200Type
|
|
237
|
-
>;
|
|
238
|
-
|
|
239
|
-
export type BulkCreateDatapoints2DatasetsImageUrl = {
|
|
240
|
-
/**
|
|
241
|
-
* The orq.ai id of the image
|
|
242
|
-
*/
|
|
243
|
-
id?: string | undefined;
|
|
244
|
-
/**
|
|
245
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
246
|
-
*/
|
|
247
|
-
url: string;
|
|
248
|
-
/**
|
|
249
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
250
|
-
*/
|
|
251
|
-
detail?: string | undefined;
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
256
|
-
*/
|
|
257
|
-
export type BulkCreateDatapoints2Datasets2 = {
|
|
258
|
-
type: BulkCreateDatapoints2DatasetsResponse200Type;
|
|
259
|
-
imageUrl: BulkCreateDatapoints2DatasetsImageUrl;
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
export const BulkCreateDatapoints2DatasetsResponseType = {
|
|
263
|
-
Text: "text",
|
|
264
|
-
} as const;
|
|
265
|
-
export type BulkCreateDatapoints2DatasetsResponseType = ClosedEnum<
|
|
266
|
-
typeof BulkCreateDatapoints2DatasetsResponseType
|
|
267
|
-
>;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Text content part of a prompt message
|
|
271
|
-
*/
|
|
272
|
-
export type BulkCreateDatapoints2Datasets1 = {
|
|
273
|
-
type: BulkCreateDatapoints2DatasetsResponseType;
|
|
274
|
-
text: string;
|
|
275
|
-
};
|
|
276
|
-
|
|
277
|
-
export type BulkCreateDatapointsContentDatasets2 =
|
|
278
|
-
| BulkCreateDatapoints2Datasets1
|
|
279
|
-
| BulkCreateDatapoints2Datasets2
|
|
280
|
-
| BulkCreateDatapoints2Datasets3;
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
284
|
-
*/
|
|
285
|
-
export type BulkCreateDatapointsDatasetsContent =
|
|
286
|
-
| string
|
|
287
|
-
| Array<
|
|
288
|
-
| BulkCreateDatapoints2Datasets1
|
|
289
|
-
| BulkCreateDatapoints2Datasets2
|
|
290
|
-
| BulkCreateDatapoints2Datasets3
|
|
291
|
-
>;
|
|
292
|
-
|
|
293
|
-
export const BulkCreateDatapointsDatasetsType = {
|
|
294
|
-
Function: "function",
|
|
295
|
-
} as const;
|
|
296
|
-
export type BulkCreateDatapointsDatasetsType = ClosedEnum<
|
|
297
|
-
typeof BulkCreateDatapointsDatasetsType
|
|
298
|
-
>;
|
|
299
|
-
|
|
300
|
-
export type BulkCreateDatapointsDatasetsFunction = {
|
|
301
|
-
name: string;
|
|
302
|
-
/**
|
|
303
|
-
* JSON string arguments for the functions
|
|
304
|
-
*/
|
|
305
|
-
arguments: string;
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
export type BulkCreateDatapointsDatasetsToolCalls = {
|
|
309
|
-
id?: string | undefined;
|
|
310
|
-
index?: number | undefined;
|
|
311
|
-
type: BulkCreateDatapointsDatasetsType;
|
|
312
|
-
function: BulkCreateDatapointsDatasetsFunction;
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
export type BulkCreateDatapointsDatasetsMessages = {
|
|
316
|
-
/**
|
|
317
|
-
* The role of the prompt message
|
|
318
|
-
*/
|
|
319
|
-
role: BulkCreateDatapointsDatasetsRole;
|
|
320
|
-
/**
|
|
321
|
-
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
322
|
-
*/
|
|
323
|
-
content:
|
|
324
|
-
| string
|
|
325
|
-
| Array<
|
|
326
|
-
| BulkCreateDatapoints2Datasets1
|
|
327
|
-
| BulkCreateDatapoints2Datasets2
|
|
328
|
-
| BulkCreateDatapoints2Datasets3
|
|
329
|
-
>;
|
|
330
|
-
toolCalls?: Array<BulkCreateDatapointsDatasetsToolCalls> | undefined;
|
|
331
|
-
toolCallId?: string | undefined;
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
export type ResponseBody = {
|
|
335
|
-
/**
|
|
336
|
-
* The unique identifier of the dataset item
|
|
337
|
-
*/
|
|
338
|
-
id: string;
|
|
339
|
-
/**
|
|
340
|
-
* The unique identifier of the workspace it belongs to
|
|
341
|
-
*/
|
|
342
|
-
workspaceId: string;
|
|
343
|
-
/**
|
|
344
|
-
* 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.
|
|
345
|
-
*/
|
|
346
|
-
inputs?: { [k: string]: any } | undefined;
|
|
347
|
-
/**
|
|
348
|
-
* The prompt template messages
|
|
349
|
-
*/
|
|
350
|
-
messages?: Array<BulkCreateDatapointsDatasetsMessages> | undefined;
|
|
351
|
-
expectedOutput?: string | undefined;
|
|
352
|
-
/**
|
|
353
|
-
* The unique identifier of the dataset
|
|
354
|
-
*/
|
|
355
|
-
datasetId: string;
|
|
356
|
-
/**
|
|
357
|
-
* The unique identifier of the user who created the dataset
|
|
358
|
-
*/
|
|
359
|
-
createdById?: string | undefined;
|
|
360
|
-
/**
|
|
361
|
-
* The unique identifier of the user who last updated the dataset
|
|
362
|
-
*/
|
|
363
|
-
updatedById?: string | undefined;
|
|
364
|
-
/**
|
|
365
|
-
* The date and time the resource was created
|
|
366
|
-
*/
|
|
367
|
-
created?: Date | undefined;
|
|
368
|
-
/**
|
|
369
|
-
* The date and time the resource was last updated
|
|
370
|
-
*/
|
|
371
|
-
updated?: Date | undefined;
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
/** @internal */
|
|
375
|
-
export const BulkCreateDatapointsRole$inboundSchema: z.ZodNativeEnum<
|
|
376
|
-
typeof BulkCreateDatapointsRole
|
|
377
|
-
> = z.nativeEnum(BulkCreateDatapointsRole);
|
|
378
|
-
|
|
379
|
-
/** @internal */
|
|
380
|
-
export const BulkCreateDatapointsRole$outboundSchema: z.ZodNativeEnum<
|
|
381
|
-
typeof BulkCreateDatapointsRole
|
|
382
|
-
> = BulkCreateDatapointsRole$inboundSchema;
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* @internal
|
|
386
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
387
|
-
*/
|
|
388
|
-
export namespace BulkCreateDatapointsRole$ {
|
|
389
|
-
/** @deprecated use `BulkCreateDatapointsRole$inboundSchema` instead. */
|
|
390
|
-
export const inboundSchema = BulkCreateDatapointsRole$inboundSchema;
|
|
391
|
-
/** @deprecated use `BulkCreateDatapointsRole$outboundSchema` instead. */
|
|
392
|
-
export const outboundSchema = BulkCreateDatapointsRole$outboundSchema;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
/** @internal */
|
|
396
|
-
export const BulkCreateDatapoints2DatasetsRequestType$inboundSchema:
|
|
397
|
-
z.ZodNativeEnum<typeof BulkCreateDatapoints2DatasetsRequestType> = z
|
|
398
|
-
.nativeEnum(BulkCreateDatapoints2DatasetsRequestType);
|
|
399
|
-
|
|
400
|
-
/** @internal */
|
|
401
|
-
export const BulkCreateDatapoints2DatasetsRequestType$outboundSchema:
|
|
402
|
-
z.ZodNativeEnum<typeof BulkCreateDatapoints2DatasetsRequestType> =
|
|
403
|
-
BulkCreateDatapoints2DatasetsRequestType$inboundSchema;
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* @internal
|
|
407
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
408
|
-
*/
|
|
409
|
-
export namespace BulkCreateDatapoints2DatasetsRequestType$ {
|
|
410
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsRequestType$inboundSchema` instead. */
|
|
411
|
-
export const inboundSchema =
|
|
412
|
-
BulkCreateDatapoints2DatasetsRequestType$inboundSchema;
|
|
413
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsRequestType$outboundSchema` instead. */
|
|
414
|
-
export const outboundSchema =
|
|
415
|
-
BulkCreateDatapoints2DatasetsRequestType$outboundSchema;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
/** @internal */
|
|
419
|
-
export const BulkCreateDatapoints2File$inboundSchema: z.ZodType<
|
|
420
|
-
BulkCreateDatapoints2File,
|
|
421
|
-
z.ZodTypeDef,
|
|
422
|
-
unknown
|
|
423
|
-
> = z.object({
|
|
424
|
-
file_data: z.string(),
|
|
425
|
-
filename: z.string().optional(),
|
|
426
|
-
}).transform((v) => {
|
|
427
|
-
return remap$(v, {
|
|
428
|
-
"file_data": "fileData",
|
|
429
|
-
});
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
/** @internal */
|
|
433
|
-
export type BulkCreateDatapoints2File$Outbound = {
|
|
434
|
-
file_data: string;
|
|
435
|
-
filename?: string | undefined;
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
/** @internal */
|
|
439
|
-
export const BulkCreateDatapoints2File$outboundSchema: z.ZodType<
|
|
440
|
-
BulkCreateDatapoints2File$Outbound,
|
|
441
|
-
z.ZodTypeDef,
|
|
442
|
-
BulkCreateDatapoints2File
|
|
443
|
-
> = z.object({
|
|
444
|
-
fileData: z.string(),
|
|
445
|
-
filename: z.string().optional(),
|
|
446
|
-
}).transform((v) => {
|
|
447
|
-
return remap$(v, {
|
|
448
|
-
fileData: "file_data",
|
|
449
|
-
});
|
|
450
|
-
});
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* @internal
|
|
454
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
455
|
-
*/
|
|
456
|
-
export namespace BulkCreateDatapoints2File$ {
|
|
457
|
-
/** @deprecated use `BulkCreateDatapoints2File$inboundSchema` instead. */
|
|
458
|
-
export const inboundSchema = BulkCreateDatapoints2File$inboundSchema;
|
|
459
|
-
/** @deprecated use `BulkCreateDatapoints2File$outboundSchema` instead. */
|
|
460
|
-
export const outboundSchema = BulkCreateDatapoints2File$outboundSchema;
|
|
461
|
-
/** @deprecated use `BulkCreateDatapoints2File$Outbound` instead. */
|
|
462
|
-
export type Outbound = BulkCreateDatapoints2File$Outbound;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
export function bulkCreateDatapoints2FileToJSON(
|
|
466
|
-
bulkCreateDatapoints2File: BulkCreateDatapoints2File,
|
|
467
|
-
): string {
|
|
468
|
-
return JSON.stringify(
|
|
469
|
-
BulkCreateDatapoints2File$outboundSchema.parse(bulkCreateDatapoints2File),
|
|
470
|
-
);
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
export function bulkCreateDatapoints2FileFromJSON(
|
|
474
|
-
jsonString: string,
|
|
475
|
-
): SafeParseResult<BulkCreateDatapoints2File, SDKValidationError> {
|
|
476
|
-
return safeParse(
|
|
477
|
-
jsonString,
|
|
478
|
-
(x) => BulkCreateDatapoints2File$inboundSchema.parse(JSON.parse(x)),
|
|
479
|
-
`Failed to parse 'BulkCreateDatapoints2File' from JSON`,
|
|
480
|
-
);
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
/** @internal */
|
|
484
|
-
export const BulkCreateDatapoints23$inboundSchema: z.ZodType<
|
|
485
|
-
BulkCreateDatapoints23,
|
|
486
|
-
z.ZodTypeDef,
|
|
487
|
-
unknown
|
|
488
|
-
> = z.object({
|
|
489
|
-
type: BulkCreateDatapoints2DatasetsRequestType$inboundSchema,
|
|
490
|
-
file: z.lazy(() => BulkCreateDatapoints2File$inboundSchema),
|
|
491
|
-
});
|
|
492
|
-
|
|
493
|
-
/** @internal */
|
|
494
|
-
export type BulkCreateDatapoints23$Outbound = {
|
|
495
|
-
type: string;
|
|
496
|
-
file: BulkCreateDatapoints2File$Outbound;
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
/** @internal */
|
|
500
|
-
export const BulkCreateDatapoints23$outboundSchema: z.ZodType<
|
|
501
|
-
BulkCreateDatapoints23$Outbound,
|
|
502
|
-
z.ZodTypeDef,
|
|
503
|
-
BulkCreateDatapoints23
|
|
504
|
-
> = z.object({
|
|
505
|
-
type: BulkCreateDatapoints2DatasetsRequestType$outboundSchema,
|
|
506
|
-
file: z.lazy(() => BulkCreateDatapoints2File$outboundSchema),
|
|
507
|
-
});
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* @internal
|
|
511
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
512
|
-
*/
|
|
513
|
-
export namespace BulkCreateDatapoints23$ {
|
|
514
|
-
/** @deprecated use `BulkCreateDatapoints23$inboundSchema` instead. */
|
|
515
|
-
export const inboundSchema = BulkCreateDatapoints23$inboundSchema;
|
|
516
|
-
/** @deprecated use `BulkCreateDatapoints23$outboundSchema` instead. */
|
|
517
|
-
export const outboundSchema = BulkCreateDatapoints23$outboundSchema;
|
|
518
|
-
/** @deprecated use `BulkCreateDatapoints23$Outbound` instead. */
|
|
519
|
-
export type Outbound = BulkCreateDatapoints23$Outbound;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
export function bulkCreateDatapoints23ToJSON(
|
|
523
|
-
bulkCreateDatapoints23: BulkCreateDatapoints23,
|
|
524
|
-
): string {
|
|
525
|
-
return JSON.stringify(
|
|
526
|
-
BulkCreateDatapoints23$outboundSchema.parse(bulkCreateDatapoints23),
|
|
527
|
-
);
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
export function bulkCreateDatapoints23FromJSON(
|
|
531
|
-
jsonString: string,
|
|
532
|
-
): SafeParseResult<BulkCreateDatapoints23, SDKValidationError> {
|
|
533
|
-
return safeParse(
|
|
534
|
-
jsonString,
|
|
535
|
-
(x) => BulkCreateDatapoints23$inboundSchema.parse(JSON.parse(x)),
|
|
536
|
-
`Failed to parse 'BulkCreateDatapoints23' from JSON`,
|
|
537
|
-
);
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
/** @internal */
|
|
541
|
-
export const BulkCreateDatapoints2DatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
542
|
-
typeof BulkCreateDatapoints2DatasetsType
|
|
543
|
-
> = z.nativeEnum(BulkCreateDatapoints2DatasetsType);
|
|
544
|
-
|
|
545
|
-
/** @internal */
|
|
546
|
-
export const BulkCreateDatapoints2DatasetsType$outboundSchema: z.ZodNativeEnum<
|
|
547
|
-
typeof BulkCreateDatapoints2DatasetsType
|
|
548
|
-
> = BulkCreateDatapoints2DatasetsType$inboundSchema;
|
|
549
|
-
|
|
550
|
-
/**
|
|
551
|
-
* @internal
|
|
552
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
553
|
-
*/
|
|
554
|
-
export namespace BulkCreateDatapoints2DatasetsType$ {
|
|
555
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsType$inboundSchema` instead. */
|
|
556
|
-
export const inboundSchema = BulkCreateDatapoints2DatasetsType$inboundSchema;
|
|
557
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsType$outboundSchema` instead. */
|
|
558
|
-
export const outboundSchema =
|
|
559
|
-
BulkCreateDatapoints2DatasetsType$outboundSchema;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
/** @internal */
|
|
563
|
-
export const BulkCreateDatapoints2ImageUrl$inboundSchema: z.ZodType<
|
|
564
|
-
BulkCreateDatapoints2ImageUrl,
|
|
565
|
-
z.ZodTypeDef,
|
|
566
|
-
unknown
|
|
567
|
-
> = z.object({
|
|
568
|
-
url: z.string(),
|
|
569
|
-
detail: z.string().optional(),
|
|
570
|
-
});
|
|
571
|
-
|
|
572
|
-
/** @internal */
|
|
573
|
-
export type BulkCreateDatapoints2ImageUrl$Outbound = {
|
|
574
|
-
url: string;
|
|
575
|
-
detail?: string | undefined;
|
|
576
|
-
};
|
|
577
|
-
|
|
578
|
-
/** @internal */
|
|
579
|
-
export const BulkCreateDatapoints2ImageUrl$outboundSchema: z.ZodType<
|
|
580
|
-
BulkCreateDatapoints2ImageUrl$Outbound,
|
|
581
|
-
z.ZodTypeDef,
|
|
582
|
-
BulkCreateDatapoints2ImageUrl
|
|
583
|
-
> = z.object({
|
|
584
|
-
url: z.string(),
|
|
585
|
-
detail: z.string().optional(),
|
|
586
|
-
});
|
|
587
|
-
|
|
588
|
-
/**
|
|
589
|
-
* @internal
|
|
590
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
591
|
-
*/
|
|
592
|
-
export namespace BulkCreateDatapoints2ImageUrl$ {
|
|
593
|
-
/** @deprecated use `BulkCreateDatapoints2ImageUrl$inboundSchema` instead. */
|
|
594
|
-
export const inboundSchema = BulkCreateDatapoints2ImageUrl$inboundSchema;
|
|
595
|
-
/** @deprecated use `BulkCreateDatapoints2ImageUrl$outboundSchema` instead. */
|
|
596
|
-
export const outboundSchema = BulkCreateDatapoints2ImageUrl$outboundSchema;
|
|
597
|
-
/** @deprecated use `BulkCreateDatapoints2ImageUrl$Outbound` instead. */
|
|
598
|
-
export type Outbound = BulkCreateDatapoints2ImageUrl$Outbound;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
export function bulkCreateDatapoints2ImageUrlToJSON(
|
|
602
|
-
bulkCreateDatapoints2ImageUrl: BulkCreateDatapoints2ImageUrl,
|
|
603
|
-
): string {
|
|
604
|
-
return JSON.stringify(
|
|
605
|
-
BulkCreateDatapoints2ImageUrl$outboundSchema.parse(
|
|
606
|
-
bulkCreateDatapoints2ImageUrl,
|
|
607
|
-
),
|
|
608
|
-
);
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
export function bulkCreateDatapoints2ImageUrlFromJSON(
|
|
612
|
-
jsonString: string,
|
|
613
|
-
): SafeParseResult<BulkCreateDatapoints2ImageUrl, SDKValidationError> {
|
|
614
|
-
return safeParse(
|
|
615
|
-
jsonString,
|
|
616
|
-
(x) => BulkCreateDatapoints2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
617
|
-
`Failed to parse 'BulkCreateDatapoints2ImageUrl' from JSON`,
|
|
618
|
-
);
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
/** @internal */
|
|
622
|
-
export const BulkCreateDatapoints22$inboundSchema: z.ZodType<
|
|
623
|
-
BulkCreateDatapoints22,
|
|
624
|
-
z.ZodTypeDef,
|
|
625
|
-
unknown
|
|
626
|
-
> = z.object({
|
|
627
|
-
type: BulkCreateDatapoints2DatasetsType$inboundSchema,
|
|
628
|
-
image_url: z.lazy(() => BulkCreateDatapoints2ImageUrl$inboundSchema),
|
|
629
|
-
}).transform((v) => {
|
|
630
|
-
return remap$(v, {
|
|
631
|
-
"image_url": "imageUrl",
|
|
632
|
-
});
|
|
633
|
-
});
|
|
634
|
-
|
|
635
|
-
/** @internal */
|
|
636
|
-
export type BulkCreateDatapoints22$Outbound = {
|
|
637
|
-
type: string;
|
|
638
|
-
image_url: BulkCreateDatapoints2ImageUrl$Outbound;
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
/** @internal */
|
|
642
|
-
export const BulkCreateDatapoints22$outboundSchema: z.ZodType<
|
|
643
|
-
BulkCreateDatapoints22$Outbound,
|
|
644
|
-
z.ZodTypeDef,
|
|
645
|
-
BulkCreateDatapoints22
|
|
646
|
-
> = z.object({
|
|
647
|
-
type: BulkCreateDatapoints2DatasetsType$outboundSchema,
|
|
648
|
-
imageUrl: z.lazy(() => BulkCreateDatapoints2ImageUrl$outboundSchema),
|
|
649
|
-
}).transform((v) => {
|
|
650
|
-
return remap$(v, {
|
|
651
|
-
imageUrl: "image_url",
|
|
652
|
-
});
|
|
653
|
-
});
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* @internal
|
|
657
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
658
|
-
*/
|
|
659
|
-
export namespace BulkCreateDatapoints22$ {
|
|
660
|
-
/** @deprecated use `BulkCreateDatapoints22$inboundSchema` instead. */
|
|
661
|
-
export const inboundSchema = BulkCreateDatapoints22$inboundSchema;
|
|
662
|
-
/** @deprecated use `BulkCreateDatapoints22$outboundSchema` instead. */
|
|
663
|
-
export const outboundSchema = BulkCreateDatapoints22$outboundSchema;
|
|
664
|
-
/** @deprecated use `BulkCreateDatapoints22$Outbound` instead. */
|
|
665
|
-
export type Outbound = BulkCreateDatapoints22$Outbound;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
export function bulkCreateDatapoints22ToJSON(
|
|
669
|
-
bulkCreateDatapoints22: BulkCreateDatapoints22,
|
|
670
|
-
): string {
|
|
671
|
-
return JSON.stringify(
|
|
672
|
-
BulkCreateDatapoints22$outboundSchema.parse(bulkCreateDatapoints22),
|
|
673
|
-
);
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
export function bulkCreateDatapoints22FromJSON(
|
|
677
|
-
jsonString: string,
|
|
678
|
-
): SafeParseResult<BulkCreateDatapoints22, SDKValidationError> {
|
|
679
|
-
return safeParse(
|
|
680
|
-
jsonString,
|
|
681
|
-
(x) => BulkCreateDatapoints22$inboundSchema.parse(JSON.parse(x)),
|
|
682
|
-
`Failed to parse 'BulkCreateDatapoints22' from JSON`,
|
|
683
|
-
);
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
/** @internal */
|
|
687
|
-
export const BulkCreateDatapoints2Type$inboundSchema: z.ZodNativeEnum<
|
|
688
|
-
typeof BulkCreateDatapoints2Type
|
|
689
|
-
> = z.nativeEnum(BulkCreateDatapoints2Type);
|
|
690
|
-
|
|
691
|
-
/** @internal */
|
|
692
|
-
export const BulkCreateDatapoints2Type$outboundSchema: z.ZodNativeEnum<
|
|
693
|
-
typeof BulkCreateDatapoints2Type
|
|
694
|
-
> = BulkCreateDatapoints2Type$inboundSchema;
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* @internal
|
|
698
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
699
|
-
*/
|
|
700
|
-
export namespace BulkCreateDatapoints2Type$ {
|
|
701
|
-
/** @deprecated use `BulkCreateDatapoints2Type$inboundSchema` instead. */
|
|
702
|
-
export const inboundSchema = BulkCreateDatapoints2Type$inboundSchema;
|
|
703
|
-
/** @deprecated use `BulkCreateDatapoints2Type$outboundSchema` instead. */
|
|
704
|
-
export const outboundSchema = BulkCreateDatapoints2Type$outboundSchema;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
/** @internal */
|
|
708
|
-
export const BulkCreateDatapoints21$inboundSchema: z.ZodType<
|
|
709
|
-
BulkCreateDatapoints21,
|
|
710
|
-
z.ZodTypeDef,
|
|
711
|
-
unknown
|
|
712
|
-
> = z.object({
|
|
713
|
-
type: BulkCreateDatapoints2Type$inboundSchema,
|
|
714
|
-
text: z.string(),
|
|
715
|
-
});
|
|
716
|
-
|
|
717
|
-
/** @internal */
|
|
718
|
-
export type BulkCreateDatapoints21$Outbound = {
|
|
719
|
-
type: string;
|
|
720
|
-
text: string;
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
/** @internal */
|
|
724
|
-
export const BulkCreateDatapoints21$outboundSchema: z.ZodType<
|
|
725
|
-
BulkCreateDatapoints21$Outbound,
|
|
726
|
-
z.ZodTypeDef,
|
|
727
|
-
BulkCreateDatapoints21
|
|
728
|
-
> = z.object({
|
|
729
|
-
type: BulkCreateDatapoints2Type$outboundSchema,
|
|
730
|
-
text: z.string(),
|
|
731
|
-
});
|
|
732
|
-
|
|
733
|
-
/**
|
|
734
|
-
* @internal
|
|
735
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
736
|
-
*/
|
|
737
|
-
export namespace BulkCreateDatapoints21$ {
|
|
738
|
-
/** @deprecated use `BulkCreateDatapoints21$inboundSchema` instead. */
|
|
739
|
-
export const inboundSchema = BulkCreateDatapoints21$inboundSchema;
|
|
740
|
-
/** @deprecated use `BulkCreateDatapoints21$outboundSchema` instead. */
|
|
741
|
-
export const outboundSchema = BulkCreateDatapoints21$outboundSchema;
|
|
742
|
-
/** @deprecated use `BulkCreateDatapoints21$Outbound` instead. */
|
|
743
|
-
export type Outbound = BulkCreateDatapoints21$Outbound;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
export function bulkCreateDatapoints21ToJSON(
|
|
747
|
-
bulkCreateDatapoints21: BulkCreateDatapoints21,
|
|
748
|
-
): string {
|
|
749
|
-
return JSON.stringify(
|
|
750
|
-
BulkCreateDatapoints21$outboundSchema.parse(bulkCreateDatapoints21),
|
|
751
|
-
);
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
export function bulkCreateDatapoints21FromJSON(
|
|
755
|
-
jsonString: string,
|
|
756
|
-
): SafeParseResult<BulkCreateDatapoints21, SDKValidationError> {
|
|
757
|
-
return safeParse(
|
|
758
|
-
jsonString,
|
|
759
|
-
(x) => BulkCreateDatapoints21$inboundSchema.parse(JSON.parse(x)),
|
|
760
|
-
`Failed to parse 'BulkCreateDatapoints21' from JSON`,
|
|
761
|
-
);
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
/** @internal */
|
|
765
|
-
export const BulkCreateDatapointsContent2$inboundSchema: z.ZodType<
|
|
766
|
-
BulkCreateDatapointsContent2,
|
|
767
|
-
z.ZodTypeDef,
|
|
768
|
-
unknown
|
|
769
|
-
> = z.union([
|
|
770
|
-
z.lazy(() => BulkCreateDatapoints21$inboundSchema),
|
|
771
|
-
z.lazy(() => BulkCreateDatapoints22$inboundSchema),
|
|
772
|
-
z.lazy(() => BulkCreateDatapoints23$inboundSchema),
|
|
773
|
-
]);
|
|
774
|
-
|
|
775
|
-
/** @internal */
|
|
776
|
-
export type BulkCreateDatapointsContent2$Outbound =
|
|
777
|
-
| BulkCreateDatapoints21$Outbound
|
|
778
|
-
| BulkCreateDatapoints22$Outbound
|
|
779
|
-
| BulkCreateDatapoints23$Outbound;
|
|
780
|
-
|
|
781
|
-
/** @internal */
|
|
782
|
-
export const BulkCreateDatapointsContent2$outboundSchema: z.ZodType<
|
|
783
|
-
BulkCreateDatapointsContent2$Outbound,
|
|
784
|
-
z.ZodTypeDef,
|
|
785
|
-
BulkCreateDatapointsContent2
|
|
786
|
-
> = z.union([
|
|
787
|
-
z.lazy(() => BulkCreateDatapoints21$outboundSchema),
|
|
788
|
-
z.lazy(() => BulkCreateDatapoints22$outboundSchema),
|
|
789
|
-
z.lazy(() => BulkCreateDatapoints23$outboundSchema),
|
|
790
|
-
]);
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* @internal
|
|
794
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
795
|
-
*/
|
|
796
|
-
export namespace BulkCreateDatapointsContent2$ {
|
|
797
|
-
/** @deprecated use `BulkCreateDatapointsContent2$inboundSchema` instead. */
|
|
798
|
-
export const inboundSchema = BulkCreateDatapointsContent2$inboundSchema;
|
|
799
|
-
/** @deprecated use `BulkCreateDatapointsContent2$outboundSchema` instead. */
|
|
800
|
-
export const outboundSchema = BulkCreateDatapointsContent2$outboundSchema;
|
|
801
|
-
/** @deprecated use `BulkCreateDatapointsContent2$Outbound` instead. */
|
|
802
|
-
export type Outbound = BulkCreateDatapointsContent2$Outbound;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
export function bulkCreateDatapointsContent2ToJSON(
|
|
806
|
-
bulkCreateDatapointsContent2: BulkCreateDatapointsContent2,
|
|
807
|
-
): string {
|
|
808
|
-
return JSON.stringify(
|
|
809
|
-
BulkCreateDatapointsContent2$outboundSchema.parse(
|
|
810
|
-
bulkCreateDatapointsContent2,
|
|
811
|
-
),
|
|
812
|
-
);
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
export function bulkCreateDatapointsContent2FromJSON(
|
|
816
|
-
jsonString: string,
|
|
817
|
-
): SafeParseResult<BulkCreateDatapointsContent2, SDKValidationError> {
|
|
818
|
-
return safeParse(
|
|
819
|
-
jsonString,
|
|
820
|
-
(x) => BulkCreateDatapointsContent2$inboundSchema.parse(JSON.parse(x)),
|
|
821
|
-
`Failed to parse 'BulkCreateDatapointsContent2' from JSON`,
|
|
822
|
-
);
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
/** @internal */
|
|
826
|
-
export const BulkCreateDatapointsContent$inboundSchema: z.ZodType<
|
|
827
|
-
BulkCreateDatapointsContent,
|
|
828
|
-
z.ZodTypeDef,
|
|
829
|
-
unknown
|
|
830
|
-
> = z.union([
|
|
831
|
-
z.string(),
|
|
832
|
-
z.array(z.union([
|
|
833
|
-
z.lazy(() => BulkCreateDatapoints21$inboundSchema),
|
|
834
|
-
z.lazy(() => BulkCreateDatapoints22$inboundSchema),
|
|
835
|
-
z.lazy(() => BulkCreateDatapoints23$inboundSchema),
|
|
836
|
-
])),
|
|
837
|
-
]);
|
|
838
|
-
|
|
839
|
-
/** @internal */
|
|
840
|
-
export type BulkCreateDatapointsContent$Outbound =
|
|
841
|
-
| string
|
|
842
|
-
| Array<
|
|
843
|
-
| BulkCreateDatapoints21$Outbound
|
|
844
|
-
| BulkCreateDatapoints22$Outbound
|
|
845
|
-
| BulkCreateDatapoints23$Outbound
|
|
846
|
-
>;
|
|
847
|
-
|
|
848
|
-
/** @internal */
|
|
849
|
-
export const BulkCreateDatapointsContent$outboundSchema: z.ZodType<
|
|
850
|
-
BulkCreateDatapointsContent$Outbound,
|
|
851
|
-
z.ZodTypeDef,
|
|
852
|
-
BulkCreateDatapointsContent
|
|
853
|
-
> = z.union([
|
|
854
|
-
z.string(),
|
|
855
|
-
z.array(z.union([
|
|
856
|
-
z.lazy(() => BulkCreateDatapoints21$outboundSchema),
|
|
857
|
-
z.lazy(() => BulkCreateDatapoints22$outboundSchema),
|
|
858
|
-
z.lazy(() => BulkCreateDatapoints23$outboundSchema),
|
|
859
|
-
])),
|
|
860
|
-
]);
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* @internal
|
|
864
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
865
|
-
*/
|
|
866
|
-
export namespace BulkCreateDatapointsContent$ {
|
|
867
|
-
/** @deprecated use `BulkCreateDatapointsContent$inboundSchema` instead. */
|
|
868
|
-
export const inboundSchema = BulkCreateDatapointsContent$inboundSchema;
|
|
869
|
-
/** @deprecated use `BulkCreateDatapointsContent$outboundSchema` instead. */
|
|
870
|
-
export const outboundSchema = BulkCreateDatapointsContent$outboundSchema;
|
|
871
|
-
/** @deprecated use `BulkCreateDatapointsContent$Outbound` instead. */
|
|
872
|
-
export type Outbound = BulkCreateDatapointsContent$Outbound;
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
export function bulkCreateDatapointsContentToJSON(
|
|
876
|
-
bulkCreateDatapointsContent: BulkCreateDatapointsContent,
|
|
877
|
-
): string {
|
|
878
|
-
return JSON.stringify(
|
|
879
|
-
BulkCreateDatapointsContent$outboundSchema.parse(
|
|
880
|
-
bulkCreateDatapointsContent,
|
|
881
|
-
),
|
|
882
|
-
);
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
export function bulkCreateDatapointsContentFromJSON(
|
|
886
|
-
jsonString: string,
|
|
887
|
-
): SafeParseResult<BulkCreateDatapointsContent, SDKValidationError> {
|
|
888
|
-
return safeParse(
|
|
889
|
-
jsonString,
|
|
890
|
-
(x) => BulkCreateDatapointsContent$inboundSchema.parse(JSON.parse(x)),
|
|
891
|
-
`Failed to parse 'BulkCreateDatapointsContent' from JSON`,
|
|
892
|
-
);
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
/** @internal */
|
|
896
|
-
export const BulkCreateDatapointsType$inboundSchema: z.ZodNativeEnum<
|
|
897
|
-
typeof BulkCreateDatapointsType
|
|
898
|
-
> = z.nativeEnum(BulkCreateDatapointsType);
|
|
899
|
-
|
|
900
|
-
/** @internal */
|
|
901
|
-
export const BulkCreateDatapointsType$outboundSchema: z.ZodNativeEnum<
|
|
902
|
-
typeof BulkCreateDatapointsType
|
|
903
|
-
> = BulkCreateDatapointsType$inboundSchema;
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* @internal
|
|
907
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
908
|
-
*/
|
|
909
|
-
export namespace BulkCreateDatapointsType$ {
|
|
910
|
-
/** @deprecated use `BulkCreateDatapointsType$inboundSchema` instead. */
|
|
911
|
-
export const inboundSchema = BulkCreateDatapointsType$inboundSchema;
|
|
912
|
-
/** @deprecated use `BulkCreateDatapointsType$outboundSchema` instead. */
|
|
913
|
-
export const outboundSchema = BulkCreateDatapointsType$outboundSchema;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
/** @internal */
|
|
917
|
-
export const BulkCreateDatapointsFunction$inboundSchema: z.ZodType<
|
|
918
|
-
BulkCreateDatapointsFunction,
|
|
919
|
-
z.ZodTypeDef,
|
|
920
|
-
unknown
|
|
921
|
-
> = z.object({
|
|
922
|
-
name: z.string(),
|
|
923
|
-
arguments: z.string(),
|
|
924
|
-
});
|
|
925
|
-
|
|
926
|
-
/** @internal */
|
|
927
|
-
export type BulkCreateDatapointsFunction$Outbound = {
|
|
928
|
-
name: string;
|
|
929
|
-
arguments: string;
|
|
930
|
-
};
|
|
931
|
-
|
|
932
|
-
/** @internal */
|
|
933
|
-
export const BulkCreateDatapointsFunction$outboundSchema: z.ZodType<
|
|
934
|
-
BulkCreateDatapointsFunction$Outbound,
|
|
935
|
-
z.ZodTypeDef,
|
|
936
|
-
BulkCreateDatapointsFunction
|
|
937
|
-
> = z.object({
|
|
938
|
-
name: z.string(),
|
|
939
|
-
arguments: z.string(),
|
|
940
|
-
});
|
|
941
|
-
|
|
942
|
-
/**
|
|
943
|
-
* @internal
|
|
944
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
945
|
-
*/
|
|
946
|
-
export namespace BulkCreateDatapointsFunction$ {
|
|
947
|
-
/** @deprecated use `BulkCreateDatapointsFunction$inboundSchema` instead. */
|
|
948
|
-
export const inboundSchema = BulkCreateDatapointsFunction$inboundSchema;
|
|
949
|
-
/** @deprecated use `BulkCreateDatapointsFunction$outboundSchema` instead. */
|
|
950
|
-
export const outboundSchema = BulkCreateDatapointsFunction$outboundSchema;
|
|
951
|
-
/** @deprecated use `BulkCreateDatapointsFunction$Outbound` instead. */
|
|
952
|
-
export type Outbound = BulkCreateDatapointsFunction$Outbound;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
export function bulkCreateDatapointsFunctionToJSON(
|
|
956
|
-
bulkCreateDatapointsFunction: BulkCreateDatapointsFunction,
|
|
957
|
-
): string {
|
|
958
|
-
return JSON.stringify(
|
|
959
|
-
BulkCreateDatapointsFunction$outboundSchema.parse(
|
|
960
|
-
bulkCreateDatapointsFunction,
|
|
961
|
-
),
|
|
962
|
-
);
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
export function bulkCreateDatapointsFunctionFromJSON(
|
|
966
|
-
jsonString: string,
|
|
967
|
-
): SafeParseResult<BulkCreateDatapointsFunction, SDKValidationError> {
|
|
968
|
-
return safeParse(
|
|
969
|
-
jsonString,
|
|
970
|
-
(x) => BulkCreateDatapointsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
971
|
-
`Failed to parse 'BulkCreateDatapointsFunction' from JSON`,
|
|
972
|
-
);
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
/** @internal */
|
|
976
|
-
export const BulkCreateDatapointsToolCalls$inboundSchema: z.ZodType<
|
|
977
|
-
BulkCreateDatapointsToolCalls,
|
|
978
|
-
z.ZodTypeDef,
|
|
979
|
-
unknown
|
|
980
|
-
> = z.object({
|
|
981
|
-
id: z.string().optional(),
|
|
982
|
-
index: z.number().optional(),
|
|
983
|
-
type: BulkCreateDatapointsType$inboundSchema,
|
|
984
|
-
function: z.lazy(() => BulkCreateDatapointsFunction$inboundSchema),
|
|
985
|
-
});
|
|
986
|
-
|
|
987
|
-
/** @internal */
|
|
988
|
-
export type BulkCreateDatapointsToolCalls$Outbound = {
|
|
989
|
-
id?: string | undefined;
|
|
990
|
-
index?: number | undefined;
|
|
991
|
-
type: string;
|
|
992
|
-
function: BulkCreateDatapointsFunction$Outbound;
|
|
993
|
-
};
|
|
994
|
-
|
|
995
|
-
/** @internal */
|
|
996
|
-
export const BulkCreateDatapointsToolCalls$outboundSchema: z.ZodType<
|
|
997
|
-
BulkCreateDatapointsToolCalls$Outbound,
|
|
998
|
-
z.ZodTypeDef,
|
|
999
|
-
BulkCreateDatapointsToolCalls
|
|
1000
|
-
> = z.object({
|
|
1001
|
-
id: z.string().optional(),
|
|
1002
|
-
index: z.number().optional(),
|
|
1003
|
-
type: BulkCreateDatapointsType$outboundSchema,
|
|
1004
|
-
function: z.lazy(() => BulkCreateDatapointsFunction$outboundSchema),
|
|
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 BulkCreateDatapointsToolCalls$ {
|
|
1012
|
-
/** @deprecated use `BulkCreateDatapointsToolCalls$inboundSchema` instead. */
|
|
1013
|
-
export const inboundSchema = BulkCreateDatapointsToolCalls$inboundSchema;
|
|
1014
|
-
/** @deprecated use `BulkCreateDatapointsToolCalls$outboundSchema` instead. */
|
|
1015
|
-
export const outboundSchema = BulkCreateDatapointsToolCalls$outboundSchema;
|
|
1016
|
-
/** @deprecated use `BulkCreateDatapointsToolCalls$Outbound` instead. */
|
|
1017
|
-
export type Outbound = BulkCreateDatapointsToolCalls$Outbound;
|
|
1018
|
-
}
|
|
1019
|
-
|
|
1020
|
-
export function bulkCreateDatapointsToolCallsToJSON(
|
|
1021
|
-
bulkCreateDatapointsToolCalls: BulkCreateDatapointsToolCalls,
|
|
1022
|
-
): string {
|
|
1023
|
-
return JSON.stringify(
|
|
1024
|
-
BulkCreateDatapointsToolCalls$outboundSchema.parse(
|
|
1025
|
-
bulkCreateDatapointsToolCalls,
|
|
1026
|
-
),
|
|
1027
|
-
);
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
export function bulkCreateDatapointsToolCallsFromJSON(
|
|
1031
|
-
jsonString: string,
|
|
1032
|
-
): SafeParseResult<BulkCreateDatapointsToolCalls, SDKValidationError> {
|
|
1033
|
-
return safeParse(
|
|
1034
|
-
jsonString,
|
|
1035
|
-
(x) => BulkCreateDatapointsToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1036
|
-
`Failed to parse 'BulkCreateDatapointsToolCalls' from JSON`,
|
|
1037
|
-
);
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
/** @internal */
|
|
1041
|
-
export const BulkCreateDatapointsMessages$inboundSchema: z.ZodType<
|
|
1042
|
-
BulkCreateDatapointsMessages,
|
|
1043
|
-
z.ZodTypeDef,
|
|
1044
|
-
unknown
|
|
1045
|
-
> = z.object({
|
|
1046
|
-
role: BulkCreateDatapointsRole$inboundSchema,
|
|
1047
|
-
content: z.union([
|
|
1048
|
-
z.string(),
|
|
1049
|
-
z.array(z.union([
|
|
1050
|
-
z.lazy(() => BulkCreateDatapoints21$inboundSchema),
|
|
1051
|
-
z.lazy(() => BulkCreateDatapoints22$inboundSchema),
|
|
1052
|
-
z.lazy(() => BulkCreateDatapoints23$inboundSchema),
|
|
1053
|
-
])),
|
|
1054
|
-
]),
|
|
1055
|
-
tool_calls: z.array(z.lazy(() => BulkCreateDatapointsToolCalls$inboundSchema))
|
|
1056
|
-
.optional(),
|
|
1057
|
-
tool_call_id: z.string().optional(),
|
|
1058
|
-
}).transform((v) => {
|
|
1059
|
-
return remap$(v, {
|
|
1060
|
-
"tool_calls": "toolCalls",
|
|
1061
|
-
"tool_call_id": "toolCallId",
|
|
1062
|
-
});
|
|
1063
|
-
});
|
|
1064
|
-
|
|
1065
|
-
/** @internal */
|
|
1066
|
-
export type BulkCreateDatapointsMessages$Outbound = {
|
|
1067
|
-
role: string;
|
|
1068
|
-
content:
|
|
1069
|
-
| string
|
|
1070
|
-
| Array<
|
|
1071
|
-
| BulkCreateDatapoints21$Outbound
|
|
1072
|
-
| BulkCreateDatapoints22$Outbound
|
|
1073
|
-
| BulkCreateDatapoints23$Outbound
|
|
1074
|
-
>;
|
|
1075
|
-
tool_calls?: Array<BulkCreateDatapointsToolCalls$Outbound> | undefined;
|
|
1076
|
-
tool_call_id?: string | undefined;
|
|
1077
|
-
};
|
|
1078
|
-
|
|
1079
|
-
/** @internal */
|
|
1080
|
-
export const BulkCreateDatapointsMessages$outboundSchema: z.ZodType<
|
|
1081
|
-
BulkCreateDatapointsMessages$Outbound,
|
|
1082
|
-
z.ZodTypeDef,
|
|
1083
|
-
BulkCreateDatapointsMessages
|
|
1084
|
-
> = z.object({
|
|
1085
|
-
role: BulkCreateDatapointsRole$outboundSchema,
|
|
1086
|
-
content: z.union([
|
|
1087
|
-
z.string(),
|
|
1088
|
-
z.array(z.union([
|
|
1089
|
-
z.lazy(() => BulkCreateDatapoints21$outboundSchema),
|
|
1090
|
-
z.lazy(() => BulkCreateDatapoints22$outboundSchema),
|
|
1091
|
-
z.lazy(() => BulkCreateDatapoints23$outboundSchema),
|
|
1092
|
-
])),
|
|
1093
|
-
]),
|
|
1094
|
-
toolCalls: z.array(z.lazy(() => BulkCreateDatapointsToolCalls$outboundSchema))
|
|
1095
|
-
.optional(),
|
|
1096
|
-
toolCallId: z.string().optional(),
|
|
1097
|
-
}).transform((v) => {
|
|
1098
|
-
return remap$(v, {
|
|
1099
|
-
toolCalls: "tool_calls",
|
|
1100
|
-
toolCallId: "tool_call_id",
|
|
1101
|
-
});
|
|
1102
|
-
});
|
|
1103
|
-
|
|
1104
|
-
/**
|
|
1105
|
-
* @internal
|
|
1106
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1107
|
-
*/
|
|
1108
|
-
export namespace BulkCreateDatapointsMessages$ {
|
|
1109
|
-
/** @deprecated use `BulkCreateDatapointsMessages$inboundSchema` instead. */
|
|
1110
|
-
export const inboundSchema = BulkCreateDatapointsMessages$inboundSchema;
|
|
1111
|
-
/** @deprecated use `BulkCreateDatapointsMessages$outboundSchema` instead. */
|
|
1112
|
-
export const outboundSchema = BulkCreateDatapointsMessages$outboundSchema;
|
|
1113
|
-
/** @deprecated use `BulkCreateDatapointsMessages$Outbound` instead. */
|
|
1114
|
-
export type Outbound = BulkCreateDatapointsMessages$Outbound;
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
export function bulkCreateDatapointsMessagesToJSON(
|
|
1118
|
-
bulkCreateDatapointsMessages: BulkCreateDatapointsMessages,
|
|
1119
|
-
): string {
|
|
1120
|
-
return JSON.stringify(
|
|
1121
|
-
BulkCreateDatapointsMessages$outboundSchema.parse(
|
|
1122
|
-
bulkCreateDatapointsMessages,
|
|
1123
|
-
),
|
|
1124
|
-
);
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
export function bulkCreateDatapointsMessagesFromJSON(
|
|
1128
|
-
jsonString: string,
|
|
1129
|
-
): SafeParseResult<BulkCreateDatapointsMessages, SDKValidationError> {
|
|
1130
|
-
return safeParse(
|
|
1131
|
-
jsonString,
|
|
1132
|
-
(x) => BulkCreateDatapointsMessages$inboundSchema.parse(JSON.parse(x)),
|
|
1133
|
-
`Failed to parse 'BulkCreateDatapointsMessages' from JSON`,
|
|
1134
|
-
);
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
/** @internal */
|
|
1138
|
-
export const Items$inboundSchema: z.ZodType<Items, z.ZodTypeDef, unknown> = z
|
|
1139
|
-
.object({
|
|
1140
|
-
inputs: z.record(z.any()).optional(),
|
|
1141
|
-
messages: z.array(z.lazy(() => BulkCreateDatapointsMessages$inboundSchema))
|
|
1142
|
-
.optional(),
|
|
1143
|
-
expected_output: z.string().optional(),
|
|
1144
|
-
}).transform((v) => {
|
|
1145
|
-
return remap$(v, {
|
|
1146
|
-
"expected_output": "expectedOutput",
|
|
1147
|
-
});
|
|
1148
|
-
});
|
|
1149
|
-
|
|
1150
|
-
/** @internal */
|
|
1151
|
-
export type Items$Outbound = {
|
|
1152
|
-
inputs?: { [k: string]: any } | undefined;
|
|
1153
|
-
messages?: Array<BulkCreateDatapointsMessages$Outbound> | undefined;
|
|
1154
|
-
expected_output?: string | undefined;
|
|
1155
|
-
};
|
|
1156
|
-
|
|
1157
|
-
/** @internal */
|
|
1158
|
-
export const Items$outboundSchema: z.ZodType<
|
|
1159
|
-
Items$Outbound,
|
|
1160
|
-
z.ZodTypeDef,
|
|
1161
|
-
Items
|
|
1162
|
-
> = z.object({
|
|
1163
|
-
inputs: z.record(z.any()).optional(),
|
|
1164
|
-
messages: z.array(z.lazy(() => BulkCreateDatapointsMessages$outboundSchema))
|
|
1165
|
-
.optional(),
|
|
1166
|
-
expectedOutput: z.string().optional(),
|
|
1167
|
-
}).transform((v) => {
|
|
1168
|
-
return remap$(v, {
|
|
1169
|
-
expectedOutput: "expected_output",
|
|
1170
|
-
});
|
|
1171
|
-
});
|
|
1172
|
-
|
|
1173
|
-
/**
|
|
1174
|
-
* @internal
|
|
1175
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1176
|
-
*/
|
|
1177
|
-
export namespace Items$ {
|
|
1178
|
-
/** @deprecated use `Items$inboundSchema` instead. */
|
|
1179
|
-
export const inboundSchema = Items$inboundSchema;
|
|
1180
|
-
/** @deprecated use `Items$outboundSchema` instead. */
|
|
1181
|
-
export const outboundSchema = Items$outboundSchema;
|
|
1182
|
-
/** @deprecated use `Items$Outbound` instead. */
|
|
1183
|
-
export type Outbound = Items$Outbound;
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
export function itemsToJSON(items: Items): string {
|
|
1187
|
-
return JSON.stringify(Items$outboundSchema.parse(items));
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
export function itemsFromJSON(
|
|
1191
|
-
jsonString: string,
|
|
1192
|
-
): SafeParseResult<Items, SDKValidationError> {
|
|
1193
|
-
return safeParse(
|
|
1194
|
-
jsonString,
|
|
1195
|
-
(x) => Items$inboundSchema.parse(JSON.parse(x)),
|
|
1196
|
-
`Failed to parse 'Items' from JSON`,
|
|
1197
|
-
);
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
/** @internal */
|
|
1201
|
-
export const BulkCreateDatapointsRequestBody$inboundSchema: z.ZodType<
|
|
1202
|
-
BulkCreateDatapointsRequestBody,
|
|
1203
|
-
z.ZodTypeDef,
|
|
1204
|
-
unknown
|
|
1205
|
-
> = z.object({
|
|
1206
|
-
items: z.array(z.lazy(() => Items$inboundSchema)),
|
|
1207
|
-
});
|
|
1208
|
-
|
|
1209
|
-
/** @internal */
|
|
1210
|
-
export type BulkCreateDatapointsRequestBody$Outbound = {
|
|
1211
|
-
items: Array<Items$Outbound>;
|
|
1212
|
-
};
|
|
1213
|
-
|
|
1214
|
-
/** @internal */
|
|
1215
|
-
export const BulkCreateDatapointsRequestBody$outboundSchema: z.ZodType<
|
|
1216
|
-
BulkCreateDatapointsRequestBody$Outbound,
|
|
1217
|
-
z.ZodTypeDef,
|
|
1218
|
-
BulkCreateDatapointsRequestBody
|
|
1219
|
-
> = z.object({
|
|
1220
|
-
items: z.array(z.lazy(() => Items$outboundSchema)),
|
|
1221
|
-
});
|
|
1222
|
-
|
|
1223
|
-
/**
|
|
1224
|
-
* @internal
|
|
1225
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1226
|
-
*/
|
|
1227
|
-
export namespace BulkCreateDatapointsRequestBody$ {
|
|
1228
|
-
/** @deprecated use `BulkCreateDatapointsRequestBody$inboundSchema` instead. */
|
|
1229
|
-
export const inboundSchema = BulkCreateDatapointsRequestBody$inboundSchema;
|
|
1230
|
-
/** @deprecated use `BulkCreateDatapointsRequestBody$outboundSchema` instead. */
|
|
1231
|
-
export const outboundSchema = BulkCreateDatapointsRequestBody$outboundSchema;
|
|
1232
|
-
/** @deprecated use `BulkCreateDatapointsRequestBody$Outbound` instead. */
|
|
1233
|
-
export type Outbound = BulkCreateDatapointsRequestBody$Outbound;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
export function bulkCreateDatapointsRequestBodyToJSON(
|
|
1237
|
-
bulkCreateDatapointsRequestBody: BulkCreateDatapointsRequestBody,
|
|
1238
|
-
): string {
|
|
1239
|
-
return JSON.stringify(
|
|
1240
|
-
BulkCreateDatapointsRequestBody$outboundSchema.parse(
|
|
1241
|
-
bulkCreateDatapointsRequestBody,
|
|
1242
|
-
),
|
|
1243
|
-
);
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
export function bulkCreateDatapointsRequestBodyFromJSON(
|
|
1247
|
-
jsonString: string,
|
|
1248
|
-
): SafeParseResult<BulkCreateDatapointsRequestBody, SDKValidationError> {
|
|
1249
|
-
return safeParse(
|
|
1250
|
-
jsonString,
|
|
1251
|
-
(x) => BulkCreateDatapointsRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
1252
|
-
`Failed to parse 'BulkCreateDatapointsRequestBody' from JSON`,
|
|
1253
|
-
);
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
/** @internal */
|
|
1257
|
-
export const BulkCreateDatapointsRequest$inboundSchema: z.ZodType<
|
|
1258
|
-
BulkCreateDatapointsRequest,
|
|
1259
|
-
z.ZodTypeDef,
|
|
1260
|
-
unknown
|
|
1261
|
-
> = z.object({
|
|
1262
|
-
dataset_id: z.string(),
|
|
1263
|
-
RequestBody: z.lazy(() => BulkCreateDatapointsRequestBody$inboundSchema)
|
|
1264
|
-
.optional(),
|
|
1265
|
-
}).transform((v) => {
|
|
1266
|
-
return remap$(v, {
|
|
1267
|
-
"dataset_id": "datasetId",
|
|
1268
|
-
"RequestBody": "requestBody",
|
|
1269
|
-
});
|
|
1270
|
-
});
|
|
1271
|
-
|
|
1272
|
-
/** @internal */
|
|
1273
|
-
export type BulkCreateDatapointsRequest$Outbound = {
|
|
1274
|
-
dataset_id: string;
|
|
1275
|
-
RequestBody?: BulkCreateDatapointsRequestBody$Outbound | undefined;
|
|
1276
|
-
};
|
|
1277
|
-
|
|
1278
|
-
/** @internal */
|
|
1279
|
-
export const BulkCreateDatapointsRequest$outboundSchema: z.ZodType<
|
|
1280
|
-
BulkCreateDatapointsRequest$Outbound,
|
|
1281
|
-
z.ZodTypeDef,
|
|
1282
|
-
BulkCreateDatapointsRequest
|
|
1283
|
-
> = z.object({
|
|
1284
|
-
datasetId: z.string(),
|
|
1285
|
-
requestBody: z.lazy(() => BulkCreateDatapointsRequestBody$outboundSchema)
|
|
1286
|
-
.optional(),
|
|
1287
|
-
}).transform((v) => {
|
|
1288
|
-
return remap$(v, {
|
|
1289
|
-
datasetId: "dataset_id",
|
|
1290
|
-
requestBody: "RequestBody",
|
|
1291
|
-
});
|
|
1292
|
-
});
|
|
1293
|
-
|
|
1294
|
-
/**
|
|
1295
|
-
* @internal
|
|
1296
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1297
|
-
*/
|
|
1298
|
-
export namespace BulkCreateDatapointsRequest$ {
|
|
1299
|
-
/** @deprecated use `BulkCreateDatapointsRequest$inboundSchema` instead. */
|
|
1300
|
-
export const inboundSchema = BulkCreateDatapointsRequest$inboundSchema;
|
|
1301
|
-
/** @deprecated use `BulkCreateDatapointsRequest$outboundSchema` instead. */
|
|
1302
|
-
export const outboundSchema = BulkCreateDatapointsRequest$outboundSchema;
|
|
1303
|
-
/** @deprecated use `BulkCreateDatapointsRequest$Outbound` instead. */
|
|
1304
|
-
export type Outbound = BulkCreateDatapointsRequest$Outbound;
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
export function bulkCreateDatapointsRequestToJSON(
|
|
1308
|
-
bulkCreateDatapointsRequest: BulkCreateDatapointsRequest,
|
|
1309
|
-
): string {
|
|
1310
|
-
return JSON.stringify(
|
|
1311
|
-
BulkCreateDatapointsRequest$outboundSchema.parse(
|
|
1312
|
-
bulkCreateDatapointsRequest,
|
|
1313
|
-
),
|
|
1314
|
-
);
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
export function bulkCreateDatapointsRequestFromJSON(
|
|
1318
|
-
jsonString: string,
|
|
1319
|
-
): SafeParseResult<BulkCreateDatapointsRequest, SDKValidationError> {
|
|
1320
|
-
return safeParse(
|
|
1321
|
-
jsonString,
|
|
1322
|
-
(x) => BulkCreateDatapointsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1323
|
-
`Failed to parse 'BulkCreateDatapointsRequest' from JSON`,
|
|
1324
|
-
);
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
/** @internal */
|
|
1328
|
-
export const BulkCreateDatapointsDatasetsRole$inboundSchema: z.ZodNativeEnum<
|
|
1329
|
-
typeof BulkCreateDatapointsDatasetsRole
|
|
1330
|
-
> = z.nativeEnum(BulkCreateDatapointsDatasetsRole);
|
|
1331
|
-
|
|
1332
|
-
/** @internal */
|
|
1333
|
-
export const BulkCreateDatapointsDatasetsRole$outboundSchema: z.ZodNativeEnum<
|
|
1334
|
-
typeof BulkCreateDatapointsDatasetsRole
|
|
1335
|
-
> = BulkCreateDatapointsDatasetsRole$inboundSchema;
|
|
1336
|
-
|
|
1337
|
-
/**
|
|
1338
|
-
* @internal
|
|
1339
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1340
|
-
*/
|
|
1341
|
-
export namespace BulkCreateDatapointsDatasetsRole$ {
|
|
1342
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsRole$inboundSchema` instead. */
|
|
1343
|
-
export const inboundSchema = BulkCreateDatapointsDatasetsRole$inboundSchema;
|
|
1344
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsRole$outboundSchema` instead. */
|
|
1345
|
-
export const outboundSchema = BulkCreateDatapointsDatasetsRole$outboundSchema;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
/** @internal */
|
|
1349
|
-
export const BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema:
|
|
1350
|
-
z.ZodNativeEnum<
|
|
1351
|
-
typeof BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType
|
|
1352
|
-
> = z.nativeEnum(BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType);
|
|
1353
|
-
|
|
1354
|
-
/** @internal */
|
|
1355
|
-
export const BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema:
|
|
1356
|
-
z.ZodNativeEnum<
|
|
1357
|
-
typeof BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType
|
|
1358
|
-
> = BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema;
|
|
1359
|
-
|
|
1360
|
-
/**
|
|
1361
|
-
* @internal
|
|
1362
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1363
|
-
*/
|
|
1364
|
-
export namespace BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType$ {
|
|
1365
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
1366
|
-
export const inboundSchema =
|
|
1367
|
-
BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema;
|
|
1368
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
1369
|
-
export const outboundSchema =
|
|
1370
|
-
BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema;
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
/** @internal */
|
|
1374
|
-
export const BulkCreateDatapoints2DatasetsFile$inboundSchema: z.ZodType<
|
|
1375
|
-
BulkCreateDatapoints2DatasetsFile,
|
|
1376
|
-
z.ZodTypeDef,
|
|
1377
|
-
unknown
|
|
1378
|
-
> = z.object({
|
|
1379
|
-
file_data: z.string(),
|
|
1380
|
-
filename: z.string().optional(),
|
|
1381
|
-
}).transform((v) => {
|
|
1382
|
-
return remap$(v, {
|
|
1383
|
-
"file_data": "fileData",
|
|
1384
|
-
});
|
|
1385
|
-
});
|
|
1386
|
-
|
|
1387
|
-
/** @internal */
|
|
1388
|
-
export type BulkCreateDatapoints2DatasetsFile$Outbound = {
|
|
1389
|
-
file_data: string;
|
|
1390
|
-
filename?: string | undefined;
|
|
1391
|
-
};
|
|
1392
|
-
|
|
1393
|
-
/** @internal */
|
|
1394
|
-
export const BulkCreateDatapoints2DatasetsFile$outboundSchema: z.ZodType<
|
|
1395
|
-
BulkCreateDatapoints2DatasetsFile$Outbound,
|
|
1396
|
-
z.ZodTypeDef,
|
|
1397
|
-
BulkCreateDatapoints2DatasetsFile
|
|
1398
|
-
> = z.object({
|
|
1399
|
-
fileData: z.string(),
|
|
1400
|
-
filename: z.string().optional(),
|
|
1401
|
-
}).transform((v) => {
|
|
1402
|
-
return remap$(v, {
|
|
1403
|
-
fileData: "file_data",
|
|
1404
|
-
});
|
|
1405
|
-
});
|
|
1406
|
-
|
|
1407
|
-
/**
|
|
1408
|
-
* @internal
|
|
1409
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1410
|
-
*/
|
|
1411
|
-
export namespace BulkCreateDatapoints2DatasetsFile$ {
|
|
1412
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsFile$inboundSchema` instead. */
|
|
1413
|
-
export const inboundSchema = BulkCreateDatapoints2DatasetsFile$inboundSchema;
|
|
1414
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsFile$outboundSchema` instead. */
|
|
1415
|
-
export const outboundSchema =
|
|
1416
|
-
BulkCreateDatapoints2DatasetsFile$outboundSchema;
|
|
1417
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsFile$Outbound` instead. */
|
|
1418
|
-
export type Outbound = BulkCreateDatapoints2DatasetsFile$Outbound;
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
export function bulkCreateDatapoints2DatasetsFileToJSON(
|
|
1422
|
-
bulkCreateDatapoints2DatasetsFile: BulkCreateDatapoints2DatasetsFile,
|
|
1423
|
-
): string {
|
|
1424
|
-
return JSON.stringify(
|
|
1425
|
-
BulkCreateDatapoints2DatasetsFile$outboundSchema.parse(
|
|
1426
|
-
bulkCreateDatapoints2DatasetsFile,
|
|
1427
|
-
),
|
|
1428
|
-
);
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
export function bulkCreateDatapoints2DatasetsFileFromJSON(
|
|
1432
|
-
jsonString: string,
|
|
1433
|
-
): SafeParseResult<BulkCreateDatapoints2DatasetsFile, SDKValidationError> {
|
|
1434
|
-
return safeParse(
|
|
1435
|
-
jsonString,
|
|
1436
|
-
(x) => BulkCreateDatapoints2DatasetsFile$inboundSchema.parse(JSON.parse(x)),
|
|
1437
|
-
`Failed to parse 'BulkCreateDatapoints2DatasetsFile' from JSON`,
|
|
1438
|
-
);
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
|
-
/** @internal */
|
|
1442
|
-
export const BulkCreateDatapoints2Datasets3$inboundSchema: z.ZodType<
|
|
1443
|
-
BulkCreateDatapoints2Datasets3,
|
|
1444
|
-
z.ZodTypeDef,
|
|
1445
|
-
unknown
|
|
1446
|
-
> = z.object({
|
|
1447
|
-
type:
|
|
1448
|
-
BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema,
|
|
1449
|
-
file: z.lazy(() => BulkCreateDatapoints2DatasetsFile$inboundSchema),
|
|
1450
|
-
});
|
|
1451
|
-
|
|
1452
|
-
/** @internal */
|
|
1453
|
-
export type BulkCreateDatapoints2Datasets3$Outbound = {
|
|
1454
|
-
type: string;
|
|
1455
|
-
file: BulkCreateDatapoints2DatasetsFile$Outbound;
|
|
1456
|
-
};
|
|
1457
|
-
|
|
1458
|
-
/** @internal */
|
|
1459
|
-
export const BulkCreateDatapoints2Datasets3$outboundSchema: z.ZodType<
|
|
1460
|
-
BulkCreateDatapoints2Datasets3$Outbound,
|
|
1461
|
-
z.ZodTypeDef,
|
|
1462
|
-
BulkCreateDatapoints2Datasets3
|
|
1463
|
-
> = z.object({
|
|
1464
|
-
type:
|
|
1465
|
-
BulkCreateDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema,
|
|
1466
|
-
file: z.lazy(() => BulkCreateDatapoints2DatasetsFile$outboundSchema),
|
|
1467
|
-
});
|
|
1468
|
-
|
|
1469
|
-
/**
|
|
1470
|
-
* @internal
|
|
1471
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1472
|
-
*/
|
|
1473
|
-
export namespace BulkCreateDatapoints2Datasets3$ {
|
|
1474
|
-
/** @deprecated use `BulkCreateDatapoints2Datasets3$inboundSchema` instead. */
|
|
1475
|
-
export const inboundSchema = BulkCreateDatapoints2Datasets3$inboundSchema;
|
|
1476
|
-
/** @deprecated use `BulkCreateDatapoints2Datasets3$outboundSchema` instead. */
|
|
1477
|
-
export const outboundSchema = BulkCreateDatapoints2Datasets3$outboundSchema;
|
|
1478
|
-
/** @deprecated use `BulkCreateDatapoints2Datasets3$Outbound` instead. */
|
|
1479
|
-
export type Outbound = BulkCreateDatapoints2Datasets3$Outbound;
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
export function bulkCreateDatapoints2Datasets3ToJSON(
|
|
1483
|
-
bulkCreateDatapoints2Datasets3: BulkCreateDatapoints2Datasets3,
|
|
1484
|
-
): string {
|
|
1485
|
-
return JSON.stringify(
|
|
1486
|
-
BulkCreateDatapoints2Datasets3$outboundSchema.parse(
|
|
1487
|
-
bulkCreateDatapoints2Datasets3,
|
|
1488
|
-
),
|
|
1489
|
-
);
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1492
|
-
export function bulkCreateDatapoints2Datasets3FromJSON(
|
|
1493
|
-
jsonString: string,
|
|
1494
|
-
): SafeParseResult<BulkCreateDatapoints2Datasets3, SDKValidationError> {
|
|
1495
|
-
return safeParse(
|
|
1496
|
-
jsonString,
|
|
1497
|
-
(x) => BulkCreateDatapoints2Datasets3$inboundSchema.parse(JSON.parse(x)),
|
|
1498
|
-
`Failed to parse 'BulkCreateDatapoints2Datasets3' from JSON`,
|
|
1499
|
-
);
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
/** @internal */
|
|
1503
|
-
export const BulkCreateDatapoints2DatasetsResponse200Type$inboundSchema:
|
|
1504
|
-
z.ZodNativeEnum<typeof BulkCreateDatapoints2DatasetsResponse200Type> = z
|
|
1505
|
-
.nativeEnum(BulkCreateDatapoints2DatasetsResponse200Type);
|
|
1506
|
-
|
|
1507
|
-
/** @internal */
|
|
1508
|
-
export const BulkCreateDatapoints2DatasetsResponse200Type$outboundSchema:
|
|
1509
|
-
z.ZodNativeEnum<typeof BulkCreateDatapoints2DatasetsResponse200Type> =
|
|
1510
|
-
BulkCreateDatapoints2DatasetsResponse200Type$inboundSchema;
|
|
1511
|
-
|
|
1512
|
-
/**
|
|
1513
|
-
* @internal
|
|
1514
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1515
|
-
*/
|
|
1516
|
-
export namespace BulkCreateDatapoints2DatasetsResponse200Type$ {
|
|
1517
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsResponse200Type$inboundSchema` instead. */
|
|
1518
|
-
export const inboundSchema =
|
|
1519
|
-
BulkCreateDatapoints2DatasetsResponse200Type$inboundSchema;
|
|
1520
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsResponse200Type$outboundSchema` instead. */
|
|
1521
|
-
export const outboundSchema =
|
|
1522
|
-
BulkCreateDatapoints2DatasetsResponse200Type$outboundSchema;
|
|
1523
|
-
}
|
|
1524
|
-
|
|
1525
|
-
/** @internal */
|
|
1526
|
-
export const BulkCreateDatapoints2DatasetsImageUrl$inboundSchema: z.ZodType<
|
|
1527
|
-
BulkCreateDatapoints2DatasetsImageUrl,
|
|
1528
|
-
z.ZodTypeDef,
|
|
1529
|
-
unknown
|
|
1530
|
-
> = z.object({
|
|
1531
|
-
id: z.string().optional(),
|
|
1532
|
-
url: z.string(),
|
|
1533
|
-
detail: z.string().optional(),
|
|
1534
|
-
});
|
|
1535
|
-
|
|
1536
|
-
/** @internal */
|
|
1537
|
-
export type BulkCreateDatapoints2DatasetsImageUrl$Outbound = {
|
|
1538
|
-
id?: string | undefined;
|
|
1539
|
-
url: string;
|
|
1540
|
-
detail?: string | undefined;
|
|
1541
|
-
};
|
|
1542
|
-
|
|
1543
|
-
/** @internal */
|
|
1544
|
-
export const BulkCreateDatapoints2DatasetsImageUrl$outboundSchema: z.ZodType<
|
|
1545
|
-
BulkCreateDatapoints2DatasetsImageUrl$Outbound,
|
|
1546
|
-
z.ZodTypeDef,
|
|
1547
|
-
BulkCreateDatapoints2DatasetsImageUrl
|
|
1548
|
-
> = z.object({
|
|
1549
|
-
id: z.string().optional(),
|
|
1550
|
-
url: z.string(),
|
|
1551
|
-
detail: z.string().optional(),
|
|
1552
|
-
});
|
|
1553
|
-
|
|
1554
|
-
/**
|
|
1555
|
-
* @internal
|
|
1556
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1557
|
-
*/
|
|
1558
|
-
export namespace BulkCreateDatapoints2DatasetsImageUrl$ {
|
|
1559
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsImageUrl$inboundSchema` instead. */
|
|
1560
|
-
export const inboundSchema =
|
|
1561
|
-
BulkCreateDatapoints2DatasetsImageUrl$inboundSchema;
|
|
1562
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsImageUrl$outboundSchema` instead. */
|
|
1563
|
-
export const outboundSchema =
|
|
1564
|
-
BulkCreateDatapoints2DatasetsImageUrl$outboundSchema;
|
|
1565
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsImageUrl$Outbound` instead. */
|
|
1566
|
-
export type Outbound = BulkCreateDatapoints2DatasetsImageUrl$Outbound;
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
export function bulkCreateDatapoints2DatasetsImageUrlToJSON(
|
|
1570
|
-
bulkCreateDatapoints2DatasetsImageUrl: BulkCreateDatapoints2DatasetsImageUrl,
|
|
1571
|
-
): string {
|
|
1572
|
-
return JSON.stringify(
|
|
1573
|
-
BulkCreateDatapoints2DatasetsImageUrl$outboundSchema.parse(
|
|
1574
|
-
bulkCreateDatapoints2DatasetsImageUrl,
|
|
1575
|
-
),
|
|
1576
|
-
);
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
export function bulkCreateDatapoints2DatasetsImageUrlFromJSON(
|
|
1580
|
-
jsonString: string,
|
|
1581
|
-
): SafeParseResult<BulkCreateDatapoints2DatasetsImageUrl, SDKValidationError> {
|
|
1582
|
-
return safeParse(
|
|
1583
|
-
jsonString,
|
|
1584
|
-
(x) =>
|
|
1585
|
-
BulkCreateDatapoints2DatasetsImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1586
|
-
`Failed to parse 'BulkCreateDatapoints2DatasetsImageUrl' from JSON`,
|
|
1587
|
-
);
|
|
1588
|
-
}
|
|
1589
|
-
|
|
1590
|
-
/** @internal */
|
|
1591
|
-
export const BulkCreateDatapoints2Datasets2$inboundSchema: z.ZodType<
|
|
1592
|
-
BulkCreateDatapoints2Datasets2,
|
|
1593
|
-
z.ZodTypeDef,
|
|
1594
|
-
unknown
|
|
1595
|
-
> = z.object({
|
|
1596
|
-
type: BulkCreateDatapoints2DatasetsResponse200Type$inboundSchema,
|
|
1597
|
-
image_url: z.lazy(() => BulkCreateDatapoints2DatasetsImageUrl$inboundSchema),
|
|
1598
|
-
}).transform((v) => {
|
|
1599
|
-
return remap$(v, {
|
|
1600
|
-
"image_url": "imageUrl",
|
|
1601
|
-
});
|
|
1602
|
-
});
|
|
1603
|
-
|
|
1604
|
-
/** @internal */
|
|
1605
|
-
export type BulkCreateDatapoints2Datasets2$Outbound = {
|
|
1606
|
-
type: string;
|
|
1607
|
-
image_url: BulkCreateDatapoints2DatasetsImageUrl$Outbound;
|
|
1608
|
-
};
|
|
1609
|
-
|
|
1610
|
-
/** @internal */
|
|
1611
|
-
export const BulkCreateDatapoints2Datasets2$outboundSchema: z.ZodType<
|
|
1612
|
-
BulkCreateDatapoints2Datasets2$Outbound,
|
|
1613
|
-
z.ZodTypeDef,
|
|
1614
|
-
BulkCreateDatapoints2Datasets2
|
|
1615
|
-
> = z.object({
|
|
1616
|
-
type: BulkCreateDatapoints2DatasetsResponse200Type$outboundSchema,
|
|
1617
|
-
imageUrl: z.lazy(() => BulkCreateDatapoints2DatasetsImageUrl$outboundSchema),
|
|
1618
|
-
}).transform((v) => {
|
|
1619
|
-
return remap$(v, {
|
|
1620
|
-
imageUrl: "image_url",
|
|
1621
|
-
});
|
|
1622
|
-
});
|
|
1623
|
-
|
|
1624
|
-
/**
|
|
1625
|
-
* @internal
|
|
1626
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1627
|
-
*/
|
|
1628
|
-
export namespace BulkCreateDatapoints2Datasets2$ {
|
|
1629
|
-
/** @deprecated use `BulkCreateDatapoints2Datasets2$inboundSchema` instead. */
|
|
1630
|
-
export const inboundSchema = BulkCreateDatapoints2Datasets2$inboundSchema;
|
|
1631
|
-
/** @deprecated use `BulkCreateDatapoints2Datasets2$outboundSchema` instead. */
|
|
1632
|
-
export const outboundSchema = BulkCreateDatapoints2Datasets2$outboundSchema;
|
|
1633
|
-
/** @deprecated use `BulkCreateDatapoints2Datasets2$Outbound` instead. */
|
|
1634
|
-
export type Outbound = BulkCreateDatapoints2Datasets2$Outbound;
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
export function bulkCreateDatapoints2Datasets2ToJSON(
|
|
1638
|
-
bulkCreateDatapoints2Datasets2: BulkCreateDatapoints2Datasets2,
|
|
1639
|
-
): string {
|
|
1640
|
-
return JSON.stringify(
|
|
1641
|
-
BulkCreateDatapoints2Datasets2$outboundSchema.parse(
|
|
1642
|
-
bulkCreateDatapoints2Datasets2,
|
|
1643
|
-
),
|
|
1644
|
-
);
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
export function bulkCreateDatapoints2Datasets2FromJSON(
|
|
1648
|
-
jsonString: string,
|
|
1649
|
-
): SafeParseResult<BulkCreateDatapoints2Datasets2, SDKValidationError> {
|
|
1650
|
-
return safeParse(
|
|
1651
|
-
jsonString,
|
|
1652
|
-
(x) => BulkCreateDatapoints2Datasets2$inboundSchema.parse(JSON.parse(x)),
|
|
1653
|
-
`Failed to parse 'BulkCreateDatapoints2Datasets2' from JSON`,
|
|
1654
|
-
);
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
/** @internal */
|
|
1658
|
-
export const BulkCreateDatapoints2DatasetsResponseType$inboundSchema:
|
|
1659
|
-
z.ZodNativeEnum<typeof BulkCreateDatapoints2DatasetsResponseType> = z
|
|
1660
|
-
.nativeEnum(BulkCreateDatapoints2DatasetsResponseType);
|
|
1661
|
-
|
|
1662
|
-
/** @internal */
|
|
1663
|
-
export const BulkCreateDatapoints2DatasetsResponseType$outboundSchema:
|
|
1664
|
-
z.ZodNativeEnum<typeof BulkCreateDatapoints2DatasetsResponseType> =
|
|
1665
|
-
BulkCreateDatapoints2DatasetsResponseType$inboundSchema;
|
|
1666
|
-
|
|
1667
|
-
/**
|
|
1668
|
-
* @internal
|
|
1669
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1670
|
-
*/
|
|
1671
|
-
export namespace BulkCreateDatapoints2DatasetsResponseType$ {
|
|
1672
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsResponseType$inboundSchema` instead. */
|
|
1673
|
-
export const inboundSchema =
|
|
1674
|
-
BulkCreateDatapoints2DatasetsResponseType$inboundSchema;
|
|
1675
|
-
/** @deprecated use `BulkCreateDatapoints2DatasetsResponseType$outboundSchema` instead. */
|
|
1676
|
-
export const outboundSchema =
|
|
1677
|
-
BulkCreateDatapoints2DatasetsResponseType$outboundSchema;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
/** @internal */
|
|
1681
|
-
export const BulkCreateDatapoints2Datasets1$inboundSchema: z.ZodType<
|
|
1682
|
-
BulkCreateDatapoints2Datasets1,
|
|
1683
|
-
z.ZodTypeDef,
|
|
1684
|
-
unknown
|
|
1685
|
-
> = z.object({
|
|
1686
|
-
type: BulkCreateDatapoints2DatasetsResponseType$inboundSchema,
|
|
1687
|
-
text: z.string(),
|
|
1688
|
-
});
|
|
1689
|
-
|
|
1690
|
-
/** @internal */
|
|
1691
|
-
export type BulkCreateDatapoints2Datasets1$Outbound = {
|
|
1692
|
-
type: string;
|
|
1693
|
-
text: string;
|
|
1694
|
-
};
|
|
1695
|
-
|
|
1696
|
-
/** @internal */
|
|
1697
|
-
export const BulkCreateDatapoints2Datasets1$outboundSchema: z.ZodType<
|
|
1698
|
-
BulkCreateDatapoints2Datasets1$Outbound,
|
|
1699
|
-
z.ZodTypeDef,
|
|
1700
|
-
BulkCreateDatapoints2Datasets1
|
|
1701
|
-
> = z.object({
|
|
1702
|
-
type: BulkCreateDatapoints2DatasetsResponseType$outboundSchema,
|
|
1703
|
-
text: z.string(),
|
|
1704
|
-
});
|
|
1705
|
-
|
|
1706
|
-
/**
|
|
1707
|
-
* @internal
|
|
1708
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1709
|
-
*/
|
|
1710
|
-
export namespace BulkCreateDatapoints2Datasets1$ {
|
|
1711
|
-
/** @deprecated use `BulkCreateDatapoints2Datasets1$inboundSchema` instead. */
|
|
1712
|
-
export const inboundSchema = BulkCreateDatapoints2Datasets1$inboundSchema;
|
|
1713
|
-
/** @deprecated use `BulkCreateDatapoints2Datasets1$outboundSchema` instead. */
|
|
1714
|
-
export const outboundSchema = BulkCreateDatapoints2Datasets1$outboundSchema;
|
|
1715
|
-
/** @deprecated use `BulkCreateDatapoints2Datasets1$Outbound` instead. */
|
|
1716
|
-
export type Outbound = BulkCreateDatapoints2Datasets1$Outbound;
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
export function bulkCreateDatapoints2Datasets1ToJSON(
|
|
1720
|
-
bulkCreateDatapoints2Datasets1: BulkCreateDatapoints2Datasets1,
|
|
1721
|
-
): string {
|
|
1722
|
-
return JSON.stringify(
|
|
1723
|
-
BulkCreateDatapoints2Datasets1$outboundSchema.parse(
|
|
1724
|
-
bulkCreateDatapoints2Datasets1,
|
|
1725
|
-
),
|
|
1726
|
-
);
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1729
|
-
export function bulkCreateDatapoints2Datasets1FromJSON(
|
|
1730
|
-
jsonString: string,
|
|
1731
|
-
): SafeParseResult<BulkCreateDatapoints2Datasets1, SDKValidationError> {
|
|
1732
|
-
return safeParse(
|
|
1733
|
-
jsonString,
|
|
1734
|
-
(x) => BulkCreateDatapoints2Datasets1$inboundSchema.parse(JSON.parse(x)),
|
|
1735
|
-
`Failed to parse 'BulkCreateDatapoints2Datasets1' from JSON`,
|
|
1736
|
-
);
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
/** @internal */
|
|
1740
|
-
export const BulkCreateDatapointsContentDatasets2$inboundSchema: z.ZodType<
|
|
1741
|
-
BulkCreateDatapointsContentDatasets2,
|
|
1742
|
-
z.ZodTypeDef,
|
|
1743
|
-
unknown
|
|
1744
|
-
> = z.union([
|
|
1745
|
-
z.lazy(() => BulkCreateDatapoints2Datasets1$inboundSchema),
|
|
1746
|
-
z.lazy(() => BulkCreateDatapoints2Datasets2$inboundSchema),
|
|
1747
|
-
z.lazy(() => BulkCreateDatapoints2Datasets3$inboundSchema),
|
|
1748
|
-
]);
|
|
1749
|
-
|
|
1750
|
-
/** @internal */
|
|
1751
|
-
export type BulkCreateDatapointsContentDatasets2$Outbound =
|
|
1752
|
-
| BulkCreateDatapoints2Datasets1$Outbound
|
|
1753
|
-
| BulkCreateDatapoints2Datasets2$Outbound
|
|
1754
|
-
| BulkCreateDatapoints2Datasets3$Outbound;
|
|
1755
|
-
|
|
1756
|
-
/** @internal */
|
|
1757
|
-
export const BulkCreateDatapointsContentDatasets2$outboundSchema: z.ZodType<
|
|
1758
|
-
BulkCreateDatapointsContentDatasets2$Outbound,
|
|
1759
|
-
z.ZodTypeDef,
|
|
1760
|
-
BulkCreateDatapointsContentDatasets2
|
|
1761
|
-
> = z.union([
|
|
1762
|
-
z.lazy(() => BulkCreateDatapoints2Datasets1$outboundSchema),
|
|
1763
|
-
z.lazy(() => BulkCreateDatapoints2Datasets2$outboundSchema),
|
|
1764
|
-
z.lazy(() => BulkCreateDatapoints2Datasets3$outboundSchema),
|
|
1765
|
-
]);
|
|
1766
|
-
|
|
1767
|
-
/**
|
|
1768
|
-
* @internal
|
|
1769
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1770
|
-
*/
|
|
1771
|
-
export namespace BulkCreateDatapointsContentDatasets2$ {
|
|
1772
|
-
/** @deprecated use `BulkCreateDatapointsContentDatasets2$inboundSchema` instead. */
|
|
1773
|
-
export const inboundSchema =
|
|
1774
|
-
BulkCreateDatapointsContentDatasets2$inboundSchema;
|
|
1775
|
-
/** @deprecated use `BulkCreateDatapointsContentDatasets2$outboundSchema` instead. */
|
|
1776
|
-
export const outboundSchema =
|
|
1777
|
-
BulkCreateDatapointsContentDatasets2$outboundSchema;
|
|
1778
|
-
/** @deprecated use `BulkCreateDatapointsContentDatasets2$Outbound` instead. */
|
|
1779
|
-
export type Outbound = BulkCreateDatapointsContentDatasets2$Outbound;
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
export function bulkCreateDatapointsContentDatasets2ToJSON(
|
|
1783
|
-
bulkCreateDatapointsContentDatasets2: BulkCreateDatapointsContentDatasets2,
|
|
1784
|
-
): string {
|
|
1785
|
-
return JSON.stringify(
|
|
1786
|
-
BulkCreateDatapointsContentDatasets2$outboundSchema.parse(
|
|
1787
|
-
bulkCreateDatapointsContentDatasets2,
|
|
1788
|
-
),
|
|
1789
|
-
);
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
export function bulkCreateDatapointsContentDatasets2FromJSON(
|
|
1793
|
-
jsonString: string,
|
|
1794
|
-
): SafeParseResult<BulkCreateDatapointsContentDatasets2, SDKValidationError> {
|
|
1795
|
-
return safeParse(
|
|
1796
|
-
jsonString,
|
|
1797
|
-
(x) =>
|
|
1798
|
-
BulkCreateDatapointsContentDatasets2$inboundSchema.parse(JSON.parse(x)),
|
|
1799
|
-
`Failed to parse 'BulkCreateDatapointsContentDatasets2' from JSON`,
|
|
1800
|
-
);
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
/** @internal */
|
|
1804
|
-
export const BulkCreateDatapointsDatasetsContent$inboundSchema: z.ZodType<
|
|
1805
|
-
BulkCreateDatapointsDatasetsContent,
|
|
1806
|
-
z.ZodTypeDef,
|
|
1807
|
-
unknown
|
|
1808
|
-
> = z.union([
|
|
1809
|
-
z.string(),
|
|
1810
|
-
z.array(z.union([
|
|
1811
|
-
z.lazy(() => BulkCreateDatapoints2Datasets1$inboundSchema),
|
|
1812
|
-
z.lazy(() => BulkCreateDatapoints2Datasets2$inboundSchema),
|
|
1813
|
-
z.lazy(() => BulkCreateDatapoints2Datasets3$inboundSchema),
|
|
1814
|
-
])),
|
|
1815
|
-
]);
|
|
1816
|
-
|
|
1817
|
-
/** @internal */
|
|
1818
|
-
export type BulkCreateDatapointsDatasetsContent$Outbound =
|
|
1819
|
-
| string
|
|
1820
|
-
| Array<
|
|
1821
|
-
| BulkCreateDatapoints2Datasets1$Outbound
|
|
1822
|
-
| BulkCreateDatapoints2Datasets2$Outbound
|
|
1823
|
-
| BulkCreateDatapoints2Datasets3$Outbound
|
|
1824
|
-
>;
|
|
1825
|
-
|
|
1826
|
-
/** @internal */
|
|
1827
|
-
export const BulkCreateDatapointsDatasetsContent$outboundSchema: z.ZodType<
|
|
1828
|
-
BulkCreateDatapointsDatasetsContent$Outbound,
|
|
1829
|
-
z.ZodTypeDef,
|
|
1830
|
-
BulkCreateDatapointsDatasetsContent
|
|
1831
|
-
> = z.union([
|
|
1832
|
-
z.string(),
|
|
1833
|
-
z.array(z.union([
|
|
1834
|
-
z.lazy(() => BulkCreateDatapoints2Datasets1$outboundSchema),
|
|
1835
|
-
z.lazy(() => BulkCreateDatapoints2Datasets2$outboundSchema),
|
|
1836
|
-
z.lazy(() => BulkCreateDatapoints2Datasets3$outboundSchema),
|
|
1837
|
-
])),
|
|
1838
|
-
]);
|
|
1839
|
-
|
|
1840
|
-
/**
|
|
1841
|
-
* @internal
|
|
1842
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1843
|
-
*/
|
|
1844
|
-
export namespace BulkCreateDatapointsDatasetsContent$ {
|
|
1845
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsContent$inboundSchema` instead. */
|
|
1846
|
-
export const inboundSchema =
|
|
1847
|
-
BulkCreateDatapointsDatasetsContent$inboundSchema;
|
|
1848
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsContent$outboundSchema` instead. */
|
|
1849
|
-
export const outboundSchema =
|
|
1850
|
-
BulkCreateDatapointsDatasetsContent$outboundSchema;
|
|
1851
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsContent$Outbound` instead. */
|
|
1852
|
-
export type Outbound = BulkCreateDatapointsDatasetsContent$Outbound;
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
export function bulkCreateDatapointsDatasetsContentToJSON(
|
|
1856
|
-
bulkCreateDatapointsDatasetsContent: BulkCreateDatapointsDatasetsContent,
|
|
1857
|
-
): string {
|
|
1858
|
-
return JSON.stringify(
|
|
1859
|
-
BulkCreateDatapointsDatasetsContent$outboundSchema.parse(
|
|
1860
|
-
bulkCreateDatapointsDatasetsContent,
|
|
1861
|
-
),
|
|
1862
|
-
);
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
|
-
export function bulkCreateDatapointsDatasetsContentFromJSON(
|
|
1866
|
-
jsonString: string,
|
|
1867
|
-
): SafeParseResult<BulkCreateDatapointsDatasetsContent, SDKValidationError> {
|
|
1868
|
-
return safeParse(
|
|
1869
|
-
jsonString,
|
|
1870
|
-
(x) =>
|
|
1871
|
-
BulkCreateDatapointsDatasetsContent$inboundSchema.parse(JSON.parse(x)),
|
|
1872
|
-
`Failed to parse 'BulkCreateDatapointsDatasetsContent' from JSON`,
|
|
1873
|
-
);
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
/** @internal */
|
|
1877
|
-
export const BulkCreateDatapointsDatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
1878
|
-
typeof BulkCreateDatapointsDatasetsType
|
|
1879
|
-
> = z.nativeEnum(BulkCreateDatapointsDatasetsType);
|
|
1880
|
-
|
|
1881
|
-
/** @internal */
|
|
1882
|
-
export const BulkCreateDatapointsDatasetsType$outboundSchema: z.ZodNativeEnum<
|
|
1883
|
-
typeof BulkCreateDatapointsDatasetsType
|
|
1884
|
-
> = BulkCreateDatapointsDatasetsType$inboundSchema;
|
|
1885
|
-
|
|
1886
|
-
/**
|
|
1887
|
-
* @internal
|
|
1888
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1889
|
-
*/
|
|
1890
|
-
export namespace BulkCreateDatapointsDatasetsType$ {
|
|
1891
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsType$inboundSchema` instead. */
|
|
1892
|
-
export const inboundSchema = BulkCreateDatapointsDatasetsType$inboundSchema;
|
|
1893
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsType$outboundSchema` instead. */
|
|
1894
|
-
export const outboundSchema = BulkCreateDatapointsDatasetsType$outboundSchema;
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
/** @internal */
|
|
1898
|
-
export const BulkCreateDatapointsDatasetsFunction$inboundSchema: z.ZodType<
|
|
1899
|
-
BulkCreateDatapointsDatasetsFunction,
|
|
1900
|
-
z.ZodTypeDef,
|
|
1901
|
-
unknown
|
|
1902
|
-
> = z.object({
|
|
1903
|
-
name: z.string(),
|
|
1904
|
-
arguments: z.string(),
|
|
1905
|
-
});
|
|
1906
|
-
|
|
1907
|
-
/** @internal */
|
|
1908
|
-
export type BulkCreateDatapointsDatasetsFunction$Outbound = {
|
|
1909
|
-
name: string;
|
|
1910
|
-
arguments: string;
|
|
1911
|
-
};
|
|
1912
|
-
|
|
1913
|
-
/** @internal */
|
|
1914
|
-
export const BulkCreateDatapointsDatasetsFunction$outboundSchema: z.ZodType<
|
|
1915
|
-
BulkCreateDatapointsDatasetsFunction$Outbound,
|
|
1916
|
-
z.ZodTypeDef,
|
|
1917
|
-
BulkCreateDatapointsDatasetsFunction
|
|
1918
|
-
> = z.object({
|
|
1919
|
-
name: z.string(),
|
|
1920
|
-
arguments: z.string(),
|
|
1921
|
-
});
|
|
1922
|
-
|
|
1923
|
-
/**
|
|
1924
|
-
* @internal
|
|
1925
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1926
|
-
*/
|
|
1927
|
-
export namespace BulkCreateDatapointsDatasetsFunction$ {
|
|
1928
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsFunction$inboundSchema` instead. */
|
|
1929
|
-
export const inboundSchema =
|
|
1930
|
-
BulkCreateDatapointsDatasetsFunction$inboundSchema;
|
|
1931
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsFunction$outboundSchema` instead. */
|
|
1932
|
-
export const outboundSchema =
|
|
1933
|
-
BulkCreateDatapointsDatasetsFunction$outboundSchema;
|
|
1934
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsFunction$Outbound` instead. */
|
|
1935
|
-
export type Outbound = BulkCreateDatapointsDatasetsFunction$Outbound;
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
export function bulkCreateDatapointsDatasetsFunctionToJSON(
|
|
1939
|
-
bulkCreateDatapointsDatasetsFunction: BulkCreateDatapointsDatasetsFunction,
|
|
1940
|
-
): string {
|
|
1941
|
-
return JSON.stringify(
|
|
1942
|
-
BulkCreateDatapointsDatasetsFunction$outboundSchema.parse(
|
|
1943
|
-
bulkCreateDatapointsDatasetsFunction,
|
|
1944
|
-
),
|
|
1945
|
-
);
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
export function bulkCreateDatapointsDatasetsFunctionFromJSON(
|
|
1949
|
-
jsonString: string,
|
|
1950
|
-
): SafeParseResult<BulkCreateDatapointsDatasetsFunction, SDKValidationError> {
|
|
1951
|
-
return safeParse(
|
|
1952
|
-
jsonString,
|
|
1953
|
-
(x) =>
|
|
1954
|
-
BulkCreateDatapointsDatasetsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1955
|
-
`Failed to parse 'BulkCreateDatapointsDatasetsFunction' from JSON`,
|
|
1956
|
-
);
|
|
1957
|
-
}
|
|
1958
|
-
|
|
1959
|
-
/** @internal */
|
|
1960
|
-
export const BulkCreateDatapointsDatasetsToolCalls$inboundSchema: z.ZodType<
|
|
1961
|
-
BulkCreateDatapointsDatasetsToolCalls,
|
|
1962
|
-
z.ZodTypeDef,
|
|
1963
|
-
unknown
|
|
1964
|
-
> = z.object({
|
|
1965
|
-
id: z.string().optional(),
|
|
1966
|
-
index: z.number().optional(),
|
|
1967
|
-
type: BulkCreateDatapointsDatasetsType$inboundSchema,
|
|
1968
|
-
function: z.lazy(() => BulkCreateDatapointsDatasetsFunction$inboundSchema),
|
|
1969
|
-
});
|
|
1970
|
-
|
|
1971
|
-
/** @internal */
|
|
1972
|
-
export type BulkCreateDatapointsDatasetsToolCalls$Outbound = {
|
|
1973
|
-
id?: string | undefined;
|
|
1974
|
-
index?: number | undefined;
|
|
1975
|
-
type: string;
|
|
1976
|
-
function: BulkCreateDatapointsDatasetsFunction$Outbound;
|
|
1977
|
-
};
|
|
1978
|
-
|
|
1979
|
-
/** @internal */
|
|
1980
|
-
export const BulkCreateDatapointsDatasetsToolCalls$outboundSchema: z.ZodType<
|
|
1981
|
-
BulkCreateDatapointsDatasetsToolCalls$Outbound,
|
|
1982
|
-
z.ZodTypeDef,
|
|
1983
|
-
BulkCreateDatapointsDatasetsToolCalls
|
|
1984
|
-
> = z.object({
|
|
1985
|
-
id: z.string().optional(),
|
|
1986
|
-
index: z.number().optional(),
|
|
1987
|
-
type: BulkCreateDatapointsDatasetsType$outboundSchema,
|
|
1988
|
-
function: z.lazy(() => BulkCreateDatapointsDatasetsFunction$outboundSchema),
|
|
1989
|
-
});
|
|
1990
|
-
|
|
1991
|
-
/**
|
|
1992
|
-
* @internal
|
|
1993
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1994
|
-
*/
|
|
1995
|
-
export namespace BulkCreateDatapointsDatasetsToolCalls$ {
|
|
1996
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsToolCalls$inboundSchema` instead. */
|
|
1997
|
-
export const inboundSchema =
|
|
1998
|
-
BulkCreateDatapointsDatasetsToolCalls$inboundSchema;
|
|
1999
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsToolCalls$outboundSchema` instead. */
|
|
2000
|
-
export const outboundSchema =
|
|
2001
|
-
BulkCreateDatapointsDatasetsToolCalls$outboundSchema;
|
|
2002
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsToolCalls$Outbound` instead. */
|
|
2003
|
-
export type Outbound = BulkCreateDatapointsDatasetsToolCalls$Outbound;
|
|
2004
|
-
}
|
|
2005
|
-
|
|
2006
|
-
export function bulkCreateDatapointsDatasetsToolCallsToJSON(
|
|
2007
|
-
bulkCreateDatapointsDatasetsToolCalls: BulkCreateDatapointsDatasetsToolCalls,
|
|
2008
|
-
): string {
|
|
2009
|
-
return JSON.stringify(
|
|
2010
|
-
BulkCreateDatapointsDatasetsToolCalls$outboundSchema.parse(
|
|
2011
|
-
bulkCreateDatapointsDatasetsToolCalls,
|
|
2012
|
-
),
|
|
2013
|
-
);
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
export function bulkCreateDatapointsDatasetsToolCallsFromJSON(
|
|
2017
|
-
jsonString: string,
|
|
2018
|
-
): SafeParseResult<BulkCreateDatapointsDatasetsToolCalls, SDKValidationError> {
|
|
2019
|
-
return safeParse(
|
|
2020
|
-
jsonString,
|
|
2021
|
-
(x) =>
|
|
2022
|
-
BulkCreateDatapointsDatasetsToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
2023
|
-
`Failed to parse 'BulkCreateDatapointsDatasetsToolCalls' from JSON`,
|
|
2024
|
-
);
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2027
|
-
/** @internal */
|
|
2028
|
-
export const BulkCreateDatapointsDatasetsMessages$inboundSchema: z.ZodType<
|
|
2029
|
-
BulkCreateDatapointsDatasetsMessages,
|
|
2030
|
-
z.ZodTypeDef,
|
|
2031
|
-
unknown
|
|
2032
|
-
> = z.object({
|
|
2033
|
-
role: BulkCreateDatapointsDatasetsRole$inboundSchema,
|
|
2034
|
-
content: z.union([
|
|
2035
|
-
z.string(),
|
|
2036
|
-
z.array(z.union([
|
|
2037
|
-
z.lazy(() => BulkCreateDatapoints2Datasets1$inboundSchema),
|
|
2038
|
-
z.lazy(() => BulkCreateDatapoints2Datasets2$inboundSchema),
|
|
2039
|
-
z.lazy(() => BulkCreateDatapoints2Datasets3$inboundSchema),
|
|
2040
|
-
])),
|
|
2041
|
-
]),
|
|
2042
|
-
tool_calls: z.array(
|
|
2043
|
-
z.lazy(() => BulkCreateDatapointsDatasetsToolCalls$inboundSchema),
|
|
2044
|
-
).optional(),
|
|
2045
|
-
tool_call_id: z.string().optional(),
|
|
2046
|
-
}).transform((v) => {
|
|
2047
|
-
return remap$(v, {
|
|
2048
|
-
"tool_calls": "toolCalls",
|
|
2049
|
-
"tool_call_id": "toolCallId",
|
|
2050
|
-
});
|
|
2051
|
-
});
|
|
2052
|
-
|
|
2053
|
-
/** @internal */
|
|
2054
|
-
export type BulkCreateDatapointsDatasetsMessages$Outbound = {
|
|
2055
|
-
role: string;
|
|
2056
|
-
content:
|
|
2057
|
-
| string
|
|
2058
|
-
| Array<
|
|
2059
|
-
| BulkCreateDatapoints2Datasets1$Outbound
|
|
2060
|
-
| BulkCreateDatapoints2Datasets2$Outbound
|
|
2061
|
-
| BulkCreateDatapoints2Datasets3$Outbound
|
|
2062
|
-
>;
|
|
2063
|
-
tool_calls?:
|
|
2064
|
-
| Array<BulkCreateDatapointsDatasetsToolCalls$Outbound>
|
|
2065
|
-
| undefined;
|
|
2066
|
-
tool_call_id?: string | undefined;
|
|
2067
|
-
};
|
|
2068
|
-
|
|
2069
|
-
/** @internal */
|
|
2070
|
-
export const BulkCreateDatapointsDatasetsMessages$outboundSchema: z.ZodType<
|
|
2071
|
-
BulkCreateDatapointsDatasetsMessages$Outbound,
|
|
2072
|
-
z.ZodTypeDef,
|
|
2073
|
-
BulkCreateDatapointsDatasetsMessages
|
|
2074
|
-
> = z.object({
|
|
2075
|
-
role: BulkCreateDatapointsDatasetsRole$outboundSchema,
|
|
2076
|
-
content: z.union([
|
|
2077
|
-
z.string(),
|
|
2078
|
-
z.array(z.union([
|
|
2079
|
-
z.lazy(() => BulkCreateDatapoints2Datasets1$outboundSchema),
|
|
2080
|
-
z.lazy(() => BulkCreateDatapoints2Datasets2$outboundSchema),
|
|
2081
|
-
z.lazy(() => BulkCreateDatapoints2Datasets3$outboundSchema),
|
|
2082
|
-
])),
|
|
2083
|
-
]),
|
|
2084
|
-
toolCalls: z.array(
|
|
2085
|
-
z.lazy(() => BulkCreateDatapointsDatasetsToolCalls$outboundSchema),
|
|
2086
|
-
).optional(),
|
|
2087
|
-
toolCallId: z.string().optional(),
|
|
2088
|
-
}).transform((v) => {
|
|
2089
|
-
return remap$(v, {
|
|
2090
|
-
toolCalls: "tool_calls",
|
|
2091
|
-
toolCallId: "tool_call_id",
|
|
2092
|
-
});
|
|
2093
|
-
});
|
|
2094
|
-
|
|
2095
|
-
/**
|
|
2096
|
-
* @internal
|
|
2097
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2098
|
-
*/
|
|
2099
|
-
export namespace BulkCreateDatapointsDatasetsMessages$ {
|
|
2100
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsMessages$inboundSchema` instead. */
|
|
2101
|
-
export const inboundSchema =
|
|
2102
|
-
BulkCreateDatapointsDatasetsMessages$inboundSchema;
|
|
2103
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsMessages$outboundSchema` instead. */
|
|
2104
|
-
export const outboundSchema =
|
|
2105
|
-
BulkCreateDatapointsDatasetsMessages$outboundSchema;
|
|
2106
|
-
/** @deprecated use `BulkCreateDatapointsDatasetsMessages$Outbound` instead. */
|
|
2107
|
-
export type Outbound = BulkCreateDatapointsDatasetsMessages$Outbound;
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
export function bulkCreateDatapointsDatasetsMessagesToJSON(
|
|
2111
|
-
bulkCreateDatapointsDatasetsMessages: BulkCreateDatapointsDatasetsMessages,
|
|
2112
|
-
): string {
|
|
2113
|
-
return JSON.stringify(
|
|
2114
|
-
BulkCreateDatapointsDatasetsMessages$outboundSchema.parse(
|
|
2115
|
-
bulkCreateDatapointsDatasetsMessages,
|
|
2116
|
-
),
|
|
2117
|
-
);
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
export function bulkCreateDatapointsDatasetsMessagesFromJSON(
|
|
2121
|
-
jsonString: string,
|
|
2122
|
-
): SafeParseResult<BulkCreateDatapointsDatasetsMessages, SDKValidationError> {
|
|
2123
|
-
return safeParse(
|
|
2124
|
-
jsonString,
|
|
2125
|
-
(x) =>
|
|
2126
|
-
BulkCreateDatapointsDatasetsMessages$inboundSchema.parse(JSON.parse(x)),
|
|
2127
|
-
`Failed to parse 'BulkCreateDatapointsDatasetsMessages' from JSON`,
|
|
2128
|
-
);
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
/** @internal */
|
|
2132
|
-
export const ResponseBody$inboundSchema: z.ZodType<
|
|
2133
|
-
ResponseBody,
|
|
2134
|
-
z.ZodTypeDef,
|
|
2135
|
-
unknown
|
|
2136
|
-
> = z.object({
|
|
2137
|
-
_id: z.string(),
|
|
2138
|
-
workspace_id: z.string(),
|
|
2139
|
-
inputs: z.record(z.any()).optional(),
|
|
2140
|
-
messages: z.array(
|
|
2141
|
-
z.lazy(() => BulkCreateDatapointsDatasetsMessages$inboundSchema),
|
|
2142
|
-
).optional(),
|
|
2143
|
-
expected_output: z.string().optional(),
|
|
2144
|
-
dataset_id: z.string(),
|
|
2145
|
-
created_by_id: z.string().optional(),
|
|
2146
|
-
updated_by_id: z.string().optional(),
|
|
2147
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2148
|
-
.optional(),
|
|
2149
|
-
updated: z.string().datetime({ offset: true }).default(
|
|
2150
|
-
"2025-05-29T12:34:18.367Z",
|
|
2151
|
-
).transform(v => new Date(v)),
|
|
2152
|
-
}).transform((v) => {
|
|
2153
|
-
return remap$(v, {
|
|
2154
|
-
"_id": "id",
|
|
2155
|
-
"workspace_id": "workspaceId",
|
|
2156
|
-
"expected_output": "expectedOutput",
|
|
2157
|
-
"dataset_id": "datasetId",
|
|
2158
|
-
"created_by_id": "createdById",
|
|
2159
|
-
"updated_by_id": "updatedById",
|
|
2160
|
-
});
|
|
2161
|
-
});
|
|
2162
|
-
|
|
2163
|
-
/** @internal */
|
|
2164
|
-
export type ResponseBody$Outbound = {
|
|
2165
|
-
_id: string;
|
|
2166
|
-
workspace_id: string;
|
|
2167
|
-
inputs?: { [k: string]: any } | undefined;
|
|
2168
|
-
messages?: Array<BulkCreateDatapointsDatasetsMessages$Outbound> | undefined;
|
|
2169
|
-
expected_output?: string | undefined;
|
|
2170
|
-
dataset_id: string;
|
|
2171
|
-
created_by_id?: string | undefined;
|
|
2172
|
-
updated_by_id?: string | undefined;
|
|
2173
|
-
created?: string | undefined;
|
|
2174
|
-
updated: string;
|
|
2175
|
-
};
|
|
2176
|
-
|
|
2177
|
-
/** @internal */
|
|
2178
|
-
export const ResponseBody$outboundSchema: z.ZodType<
|
|
2179
|
-
ResponseBody$Outbound,
|
|
2180
|
-
z.ZodTypeDef,
|
|
2181
|
-
ResponseBody
|
|
2182
|
-
> = z.object({
|
|
2183
|
-
id: z.string(),
|
|
2184
|
-
workspaceId: z.string(),
|
|
2185
|
-
inputs: z.record(z.any()).optional(),
|
|
2186
|
-
messages: z.array(
|
|
2187
|
-
z.lazy(() => BulkCreateDatapointsDatasetsMessages$outboundSchema),
|
|
2188
|
-
).optional(),
|
|
2189
|
-
expectedOutput: z.string().optional(),
|
|
2190
|
-
datasetId: z.string(),
|
|
2191
|
-
createdById: z.string().optional(),
|
|
2192
|
-
updatedById: z.string().optional(),
|
|
2193
|
-
created: z.date().transform(v => v.toISOString()).optional(),
|
|
2194
|
-
updated: z.date().default(() => new Date("2025-05-29T12:34:18.367Z"))
|
|
2195
|
-
.transform(v => v.toISOString()),
|
|
2196
|
-
}).transform((v) => {
|
|
2197
|
-
return remap$(v, {
|
|
2198
|
-
id: "_id",
|
|
2199
|
-
workspaceId: "workspace_id",
|
|
2200
|
-
expectedOutput: "expected_output",
|
|
2201
|
-
datasetId: "dataset_id",
|
|
2202
|
-
createdById: "created_by_id",
|
|
2203
|
-
updatedById: "updated_by_id",
|
|
2204
|
-
});
|
|
2205
|
-
});
|
|
2206
|
-
|
|
2207
|
-
/**
|
|
2208
|
-
* @internal
|
|
2209
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2210
|
-
*/
|
|
2211
|
-
export namespace ResponseBody$ {
|
|
2212
|
-
/** @deprecated use `ResponseBody$inboundSchema` instead. */
|
|
2213
|
-
export const inboundSchema = ResponseBody$inboundSchema;
|
|
2214
|
-
/** @deprecated use `ResponseBody$outboundSchema` instead. */
|
|
2215
|
-
export const outboundSchema = ResponseBody$outboundSchema;
|
|
2216
|
-
/** @deprecated use `ResponseBody$Outbound` instead. */
|
|
2217
|
-
export type Outbound = ResponseBody$Outbound;
|
|
2218
|
-
}
|
|
2219
|
-
|
|
2220
|
-
export function responseBodyToJSON(responseBody: ResponseBody): string {
|
|
2221
|
-
return JSON.stringify(ResponseBody$outboundSchema.parse(responseBody));
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
export function responseBodyFromJSON(
|
|
2225
|
-
jsonString: string,
|
|
2226
|
-
): SafeParseResult<ResponseBody, SDKValidationError> {
|
|
2227
|
-
return safeParse(
|
|
2228
|
-
jsonString,
|
|
2229
|
-
(x) => ResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
2230
|
-
`Failed to parse 'ResponseBody' from JSON`,
|
|
2231
|
-
);
|
|
2232
|
-
}
|