@orq-ai/node 3.14.8 → 4.0.0-rc.1
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 +210 -213
- package/bin/mcp-server.js.map +38 -38
- package/docs/sdks/agents/README.md +8 -4
- package/docs/sdks/budgets/README.md +4 -2
- package/docs/sdks/tools/README.md +4 -2
- package/examples/package-lock.json +5 -6
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +10 -10
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +10 -10
- package/package.json +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/FUNCTIONS.md +0 -103
- package/packages/orq-rc/README.md +0 -909
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/agents/README.md +0 -1319
- package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
- package/packages/orq-rc/docs/sdks/chunking/README.md +0 -95
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
- package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
- package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
- package/packages/orq-rc/docs/sdks/files/README.md +0 -301
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1489
- package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1172
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
- package/packages/orq-rc/docs/sdks/models/README.md +0 -76
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
- package/packages/orq-rc/docs/sdks/tools/README.md +0 -490
- package/packages/orq-rc/examples/README.md +0 -31
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/examples/package-lock.json +0 -627
- package/packages/orq-rc/examples/package.json +0 -18
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -3071
- package/packages/orq-rc/package.json +0 -43
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -167
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -167
- package/packages/orq-rc/src/funcs/agentsListActions.ts +0 -169
- package/packages/orq-rc/src/funcs/agentsListTasks.ts +0 -183
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/agentsRetrieveAction.ts +0 -173
- package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -163
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -190
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -188
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
- package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -171
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +0 -175
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -483
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -135
- package/packages/orq-rc/src/lib/files.ts +0 -82
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -345
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -407
- package/packages/orq-rc/src/lib/security.ts +0 -264
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
- package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
- package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
- package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
- package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
- package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
- package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
- package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
- package/packages/orq-rc/src/mcp-server/server.ts +0 -259
- package/packages/orq-rc/src/mcp-server/shared.ts +0 -74
- package/packages/orq-rc/src/mcp-server/tools/agentsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsListActions.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsListTasks.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveAction.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieveTask.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStream.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
- package/packages/orq-rc/src/models/components/deployments.ts +0 -8147
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/security.ts +0 -71
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -91
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +0 -91
- package/packages/orq-rc/src/models/errors/getagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -80
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -80
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -80
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -90
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -29
- package/packages/orq-rc/src/models/errors/listagenttasks.ts +0 -80
- package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
- package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -91
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -80
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -83
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -80
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -80
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -91
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -78
- package/packages/orq-rc/src/models/operations/createagent.ts +0 -3104
- package/packages/orq-rc/src/models/operations/createbudget.ts +0 -745
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -428
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -267
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -302
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -6943
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -9341
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1850
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -274
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -287
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -2032
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -7812
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -4077
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -243
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -87
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -66
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -87
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -98
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -78
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -75
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -6547
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -10532
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1266
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2606
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -10655
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +0 -2349
- 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/getagent.ts +0 -957
- package/packages/orq-rc/src/models/operations/getagenttask.ts +0 -259
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -318
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -338
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -1277
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2572
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2308
- package/packages/orq-rc/src/models/operations/getbudget.ts +0 -441
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -230
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -7486
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1292
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2437
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2444
- package/packages/orq-rc/src/models/operations/index.ts +0 -102
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1569
- package/packages/orq-rc/src/models/operations/listactions.ts +0 -526
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -1077
- package/packages/orq-rc/src/models/operations/listagenttasks.ts +0 -1106
- package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -617
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -507
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -500
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -4086
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -454
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1303
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2580
- package/packages/orq-rc/src/models/operations/parse.ts +0 -1295
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
- package/packages/orq-rc/src/models/operations/retrieveaction.ts +0 -426
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -210
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -3853
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -291
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -201
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -220
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -1160
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2333
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -4342
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3573
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -1367
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -4355
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -3321
- package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -628
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -325
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -6934
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -386
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -9704
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -2341
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -283
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -296
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -1363
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -8176
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4288
- package/packages/orq-rc/src/sdk/agents.ts +0 -238
- package/packages/orq-rc/src/sdk/budgets.ts +0 -99
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/contacts.ts +0 -99
- package/packages/orq-rc/src/sdk/datasets.ts +0 -204
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/evals.ts +0 -69
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/sdk.ts +0 -97
- package/packages/orq-rc/src/sdk/tools.ts +0 -117
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -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,2437 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type GetOnePromptRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* Unique identifier of the prompt
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const GetOnePromptType = {
|
|
20
|
-
Prompt: "prompt",
|
|
21
|
-
} as const;
|
|
22
|
-
export type GetOnePromptType = ClosedEnum<typeof GetOnePromptType>;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The modality of the model
|
|
26
|
-
*/
|
|
27
|
-
export const GetOnePromptModelType = {
|
|
28
|
-
Chat: "chat",
|
|
29
|
-
Completion: "completion",
|
|
30
|
-
Embedding: "embedding",
|
|
31
|
-
Image: "image",
|
|
32
|
-
Tts: "tts",
|
|
33
|
-
Stt: "stt",
|
|
34
|
-
Rerank: "rerank",
|
|
35
|
-
Moderation: "moderation",
|
|
36
|
-
Vision: "vision",
|
|
37
|
-
} as const;
|
|
38
|
-
/**
|
|
39
|
-
* The modality of the model
|
|
40
|
-
*/
|
|
41
|
-
export type GetOnePromptModelType = ClosedEnum<typeof GetOnePromptModelType>;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Only supported on `image` models.
|
|
45
|
-
*/
|
|
46
|
-
export const GetOnePromptFormat = {
|
|
47
|
-
Url: "url",
|
|
48
|
-
B64Json: "b64_json",
|
|
49
|
-
Text: "text",
|
|
50
|
-
JsonObject: "json_object",
|
|
51
|
-
} as const;
|
|
52
|
-
/**
|
|
53
|
-
* Only supported on `image` models.
|
|
54
|
-
*/
|
|
55
|
-
export type GetOnePromptFormat = ClosedEnum<typeof GetOnePromptFormat>;
|
|
56
|
-
|
|
57
|
-
export const GetOnePromptResponseFormat6 = {
|
|
58
|
-
Json: "json",
|
|
59
|
-
Text: "text",
|
|
60
|
-
Srt: "srt",
|
|
61
|
-
VerboseJson: "verbose_json",
|
|
62
|
-
Vtt: "vtt",
|
|
63
|
-
} as const;
|
|
64
|
-
export type GetOnePromptResponseFormat6 = ClosedEnum<
|
|
65
|
-
typeof GetOnePromptResponseFormat6
|
|
66
|
-
>;
|
|
67
|
-
|
|
68
|
-
export const GetOnePromptResponseFormat5 = {
|
|
69
|
-
Url: "url",
|
|
70
|
-
Base64Json: "base64_json",
|
|
71
|
-
} as const;
|
|
72
|
-
export type GetOnePromptResponseFormat5 = ClosedEnum<
|
|
73
|
-
typeof GetOnePromptResponseFormat5
|
|
74
|
-
>;
|
|
75
|
-
|
|
76
|
-
export const GetOnePromptResponseFormat4 = {
|
|
77
|
-
Mp3: "mp3",
|
|
78
|
-
Opus: "opus",
|
|
79
|
-
Aac: "aac",
|
|
80
|
-
Flac: "flac",
|
|
81
|
-
Wav: "wav",
|
|
82
|
-
Pcm: "pcm",
|
|
83
|
-
} as const;
|
|
84
|
-
export type GetOnePromptResponseFormat4 = ClosedEnum<
|
|
85
|
-
typeof GetOnePromptResponseFormat4
|
|
86
|
-
>;
|
|
87
|
-
|
|
88
|
-
export const GetOnePromptResponseFormatPromptsResponseType = {
|
|
89
|
-
Text: "text",
|
|
90
|
-
} as const;
|
|
91
|
-
export type GetOnePromptResponseFormatPromptsResponseType = ClosedEnum<
|
|
92
|
-
typeof GetOnePromptResponseFormatPromptsResponseType
|
|
93
|
-
>;
|
|
94
|
-
|
|
95
|
-
export type GetOnePromptResponseFormat3 = {
|
|
96
|
-
type: GetOnePromptResponseFormatPromptsResponseType;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export const GetOnePromptResponseFormatPromptsType = {
|
|
100
|
-
JsonObject: "json_object",
|
|
101
|
-
} as const;
|
|
102
|
-
export type GetOnePromptResponseFormatPromptsType = ClosedEnum<
|
|
103
|
-
typeof GetOnePromptResponseFormatPromptsType
|
|
104
|
-
>;
|
|
105
|
-
|
|
106
|
-
export type GetOnePromptResponseFormat2 = {
|
|
107
|
-
type: GetOnePromptResponseFormatPromptsType;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export const GetOnePromptResponseFormatType = {
|
|
111
|
-
JsonSchema: "json_schema",
|
|
112
|
-
} as const;
|
|
113
|
-
export type GetOnePromptResponseFormatType = ClosedEnum<
|
|
114
|
-
typeof GetOnePromptResponseFormatType
|
|
115
|
-
>;
|
|
116
|
-
|
|
117
|
-
export type GetOnePromptResponseFormatJsonSchema = {
|
|
118
|
-
name: string;
|
|
119
|
-
description?: string | undefined;
|
|
120
|
-
strict?: boolean | undefined;
|
|
121
|
-
schema: { [k: string]: any };
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export type GetOnePromptResponseFormat1 = {
|
|
125
|
-
type: GetOnePromptResponseFormatType;
|
|
126
|
-
jsonSchema: GetOnePromptResponseFormatJsonSchema;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* An object specifying the format that the model must output.
|
|
131
|
-
*
|
|
132
|
-
* @remarks
|
|
133
|
-
*
|
|
134
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
135
|
-
*
|
|
136
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
137
|
-
*
|
|
138
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
139
|
-
*/
|
|
140
|
-
export type GetOnePromptResponseFormat =
|
|
141
|
-
| GetOnePromptResponseFormat1
|
|
142
|
-
| GetOnePromptResponseFormat2
|
|
143
|
-
| GetOnePromptResponseFormat3
|
|
144
|
-
| GetOnePromptResponseFormat4
|
|
145
|
-
| GetOnePromptResponseFormat5
|
|
146
|
-
| GetOnePromptResponseFormat6;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
150
|
-
*/
|
|
151
|
-
export const GetOnePromptPhotoRealVersion = {
|
|
152
|
-
V1: "v1",
|
|
153
|
-
V2: "v2",
|
|
154
|
-
} as const;
|
|
155
|
-
/**
|
|
156
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
157
|
-
*/
|
|
158
|
-
export type GetOnePromptPhotoRealVersion = ClosedEnum<
|
|
159
|
-
typeof GetOnePromptPhotoRealVersion
|
|
160
|
-
>;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* The format to return the embeddings
|
|
164
|
-
*/
|
|
165
|
-
export const GetOnePromptEncodingFormat = {
|
|
166
|
-
Float: "float",
|
|
167
|
-
Base64: "base64",
|
|
168
|
-
} as const;
|
|
169
|
-
/**
|
|
170
|
-
* The format to return the embeddings
|
|
171
|
-
*/
|
|
172
|
-
export type GetOnePromptEncodingFormat = ClosedEnum<
|
|
173
|
-
typeof GetOnePromptEncodingFormat
|
|
174
|
-
>;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
178
|
-
*/
|
|
179
|
-
export const GetOnePromptReasoningEffort = {
|
|
180
|
-
Disable: "disable",
|
|
181
|
-
Minimal: "minimal",
|
|
182
|
-
Low: "low",
|
|
183
|
-
Medium: "medium",
|
|
184
|
-
High: "high",
|
|
185
|
-
} as const;
|
|
186
|
-
/**
|
|
187
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
188
|
-
*/
|
|
189
|
-
export type GetOnePromptReasoningEffort = ClosedEnum<
|
|
190
|
-
typeof GetOnePromptReasoningEffort
|
|
191
|
-
>;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Controls the verbosity of the model output.
|
|
195
|
-
*/
|
|
196
|
-
export const GetOnePromptVerbosity = {
|
|
197
|
-
Low: "low",
|
|
198
|
-
Medium: "medium",
|
|
199
|
-
High: "high",
|
|
200
|
-
} as const;
|
|
201
|
-
/**
|
|
202
|
-
* Controls the verbosity of the model output.
|
|
203
|
-
*/
|
|
204
|
-
export type GetOnePromptVerbosity = ClosedEnum<typeof GetOnePromptVerbosity>;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Model Parameters: Not all parameters apply to every model
|
|
208
|
-
*/
|
|
209
|
-
export type GetOnePromptModelParameters = {
|
|
210
|
-
/**
|
|
211
|
-
* Only supported on `chat` and `completion` models.
|
|
212
|
-
*/
|
|
213
|
-
temperature?: number | undefined;
|
|
214
|
-
/**
|
|
215
|
-
* Only supported on `chat` and `completion` models.
|
|
216
|
-
*/
|
|
217
|
-
maxTokens?: number | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* Only supported on `chat` and `completion` models.
|
|
220
|
-
*/
|
|
221
|
-
topK?: number | undefined;
|
|
222
|
-
/**
|
|
223
|
-
* Only supported on `chat` and `completion` models.
|
|
224
|
-
*/
|
|
225
|
-
topP?: number | undefined;
|
|
226
|
-
/**
|
|
227
|
-
* Only supported on `chat` and `completion` models.
|
|
228
|
-
*/
|
|
229
|
-
frequencyPenalty?: number | undefined;
|
|
230
|
-
/**
|
|
231
|
-
* Only supported on `chat` and `completion` models.
|
|
232
|
-
*/
|
|
233
|
-
presencePenalty?: number | undefined;
|
|
234
|
-
/**
|
|
235
|
-
* Only supported on `image` models.
|
|
236
|
-
*/
|
|
237
|
-
numImages?: number | undefined;
|
|
238
|
-
/**
|
|
239
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
240
|
-
*/
|
|
241
|
-
seed?: number | undefined;
|
|
242
|
-
/**
|
|
243
|
-
* Only supported on `image` models.
|
|
244
|
-
*/
|
|
245
|
-
format?: GetOnePromptFormat | undefined;
|
|
246
|
-
/**
|
|
247
|
-
* Only supported on `image` models.
|
|
248
|
-
*/
|
|
249
|
-
dimensions?: string | undefined;
|
|
250
|
-
/**
|
|
251
|
-
* Only supported on `image` models.
|
|
252
|
-
*/
|
|
253
|
-
quality?: string | undefined;
|
|
254
|
-
/**
|
|
255
|
-
* Only supported on `image` models.
|
|
256
|
-
*/
|
|
257
|
-
style?: string | undefined;
|
|
258
|
-
/**
|
|
259
|
-
* An object specifying the format that the model must output.
|
|
260
|
-
*
|
|
261
|
-
* @remarks
|
|
262
|
-
*
|
|
263
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
264
|
-
*
|
|
265
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
266
|
-
*
|
|
267
|
-
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
268
|
-
*/
|
|
269
|
-
responseFormat?:
|
|
270
|
-
| GetOnePromptResponseFormat1
|
|
271
|
-
| GetOnePromptResponseFormat2
|
|
272
|
-
| GetOnePromptResponseFormat3
|
|
273
|
-
| GetOnePromptResponseFormat4
|
|
274
|
-
| GetOnePromptResponseFormat5
|
|
275
|
-
| GetOnePromptResponseFormat6
|
|
276
|
-
| null
|
|
277
|
-
| undefined;
|
|
278
|
-
/**
|
|
279
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
280
|
-
*/
|
|
281
|
-
photoRealVersion?: GetOnePromptPhotoRealVersion | undefined;
|
|
282
|
-
/**
|
|
283
|
-
* The format to return the embeddings
|
|
284
|
-
*/
|
|
285
|
-
encodingFormat?: GetOnePromptEncodingFormat | undefined;
|
|
286
|
-
/**
|
|
287
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
288
|
-
*/
|
|
289
|
-
reasoningEffort?: GetOnePromptReasoningEffort | undefined;
|
|
290
|
-
/**
|
|
291
|
-
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
|
|
292
|
-
*/
|
|
293
|
-
budgetTokens?: number | undefined;
|
|
294
|
-
/**
|
|
295
|
-
* Controls the verbosity of the model output.
|
|
296
|
-
*/
|
|
297
|
-
verbosity?: GetOnePromptVerbosity | undefined;
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
export const GetOnePromptProvider = {
|
|
301
|
-
Cohere: "cohere",
|
|
302
|
-
Openai: "openai",
|
|
303
|
-
Anthropic: "anthropic",
|
|
304
|
-
Huggingface: "huggingface",
|
|
305
|
-
Replicate: "replicate",
|
|
306
|
-
Google: "google",
|
|
307
|
-
GoogleAi: "google-ai",
|
|
308
|
-
Azure: "azure",
|
|
309
|
-
Aws: "aws",
|
|
310
|
-
Anyscale: "anyscale",
|
|
311
|
-
Perplexity: "perplexity",
|
|
312
|
-
Groq: "groq",
|
|
313
|
-
Fal: "fal",
|
|
314
|
-
Leonardoai: "leonardoai",
|
|
315
|
-
Nvidia: "nvidia",
|
|
316
|
-
Jina: "jina",
|
|
317
|
-
Togetherai: "togetherai",
|
|
318
|
-
Elevenlabs: "elevenlabs",
|
|
319
|
-
Litellm: "litellm",
|
|
320
|
-
Openailike: "openailike",
|
|
321
|
-
Cerebras: "cerebras",
|
|
322
|
-
Bytedance: "bytedance",
|
|
323
|
-
Mistral: "mistral",
|
|
324
|
-
} as const;
|
|
325
|
-
export type GetOnePromptProvider = ClosedEnum<typeof GetOnePromptProvider>;
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* The role of the prompt message
|
|
329
|
-
*/
|
|
330
|
-
export const GetOnePromptRole = {
|
|
331
|
-
System: "system",
|
|
332
|
-
Assistant: "assistant",
|
|
333
|
-
User: "user",
|
|
334
|
-
Exception: "exception",
|
|
335
|
-
Tool: "tool",
|
|
336
|
-
Prompt: "prompt",
|
|
337
|
-
Correction: "correction",
|
|
338
|
-
ExpectedOutput: "expected_output",
|
|
339
|
-
} as const;
|
|
340
|
-
/**
|
|
341
|
-
* The role of the prompt message
|
|
342
|
-
*/
|
|
343
|
-
export type GetOnePromptRole = ClosedEnum<typeof GetOnePromptRole>;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* The type of the content part. Always `file`.
|
|
347
|
-
*/
|
|
348
|
-
export const GetOnePrompt2PromptsResponseType = {
|
|
349
|
-
File: "file",
|
|
350
|
-
} as const;
|
|
351
|
-
/**
|
|
352
|
-
* The type of the content part. Always `file`.
|
|
353
|
-
*/
|
|
354
|
-
export type GetOnePrompt2PromptsResponseType = ClosedEnum<
|
|
355
|
-
typeof GetOnePrompt2PromptsResponseType
|
|
356
|
-
>;
|
|
357
|
-
|
|
358
|
-
export type GetOnePrompt2File = {
|
|
359
|
-
/**
|
|
360
|
-
* The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
|
|
361
|
-
*/
|
|
362
|
-
fileData?: string | undefined;
|
|
363
|
-
/**
|
|
364
|
-
* URL to the file. Only supported by Anthropic Claude models for PDF files.
|
|
365
|
-
*/
|
|
366
|
-
uri?: string | undefined;
|
|
367
|
-
/**
|
|
368
|
-
* MIME type of the file (e.g., application/pdf, image/png)
|
|
369
|
-
*/
|
|
370
|
-
mimeType?: string | undefined;
|
|
371
|
-
/**
|
|
372
|
-
* The name of the file, used when passing the file to the model as a string.
|
|
373
|
-
*/
|
|
374
|
-
filename?: string | undefined;
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
export type GetOnePrompt23 = {
|
|
378
|
-
/**
|
|
379
|
-
* The type of the content part. Always `file`.
|
|
380
|
-
*/
|
|
381
|
-
type: GetOnePrompt2PromptsResponseType;
|
|
382
|
-
file: GetOnePrompt2File;
|
|
383
|
-
};
|
|
384
|
-
|
|
385
|
-
export const GetOnePrompt2PromptsType = {
|
|
386
|
-
ImageUrl: "image_url",
|
|
387
|
-
} as const;
|
|
388
|
-
export type GetOnePrompt2PromptsType = ClosedEnum<
|
|
389
|
-
typeof GetOnePrompt2PromptsType
|
|
390
|
-
>;
|
|
391
|
-
|
|
392
|
-
export type GetOnePrompt2ImageUrl = {
|
|
393
|
-
/**
|
|
394
|
-
* The orq.ai id of the image
|
|
395
|
-
*/
|
|
396
|
-
id?: string | undefined;
|
|
397
|
-
/**
|
|
398
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
399
|
-
*/
|
|
400
|
-
url: string;
|
|
401
|
-
/**
|
|
402
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
403
|
-
*/
|
|
404
|
-
detail?: string | undefined;
|
|
405
|
-
};
|
|
406
|
-
|
|
407
|
-
/**
|
|
408
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
409
|
-
*/
|
|
410
|
-
export type GetOnePrompt22 = {
|
|
411
|
-
type: GetOnePrompt2PromptsType;
|
|
412
|
-
imageUrl: GetOnePrompt2ImageUrl;
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
export const GetOnePrompt2Type = {
|
|
416
|
-
Text: "text",
|
|
417
|
-
} as const;
|
|
418
|
-
export type GetOnePrompt2Type = ClosedEnum<typeof GetOnePrompt2Type>;
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* Text content part of a prompt message
|
|
422
|
-
*/
|
|
423
|
-
export type GetOnePrompt21 = {
|
|
424
|
-
type: GetOnePrompt2Type;
|
|
425
|
-
text: string;
|
|
426
|
-
};
|
|
427
|
-
|
|
428
|
-
export type GetOnePromptContent2 =
|
|
429
|
-
| GetOnePrompt21
|
|
430
|
-
| GetOnePrompt22
|
|
431
|
-
| GetOnePrompt23;
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* 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.
|
|
435
|
-
*/
|
|
436
|
-
export type GetOnePromptContent =
|
|
437
|
-
| string
|
|
438
|
-
| Array<GetOnePrompt21 | GetOnePrompt22 | GetOnePrompt23>;
|
|
439
|
-
|
|
440
|
-
export const GetOnePromptPromptsType = {
|
|
441
|
-
Function: "function",
|
|
442
|
-
} as const;
|
|
443
|
-
export type GetOnePromptPromptsType = ClosedEnum<
|
|
444
|
-
typeof GetOnePromptPromptsType
|
|
445
|
-
>;
|
|
446
|
-
|
|
447
|
-
export type GetOnePromptFunction = {
|
|
448
|
-
name: string;
|
|
449
|
-
/**
|
|
450
|
-
* JSON string arguments for the functions
|
|
451
|
-
*/
|
|
452
|
-
arguments: string;
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
export type GetOnePromptToolCalls = {
|
|
456
|
-
id?: string | undefined;
|
|
457
|
-
index?: number | undefined;
|
|
458
|
-
type: GetOnePromptPromptsType;
|
|
459
|
-
function: GetOnePromptFunction;
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
export type GetOnePromptMessages = {
|
|
463
|
-
/**
|
|
464
|
-
* The role of the prompt message
|
|
465
|
-
*/
|
|
466
|
-
role: GetOnePromptRole;
|
|
467
|
-
/**
|
|
468
|
-
* 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.
|
|
469
|
-
*/
|
|
470
|
-
content: string | Array<GetOnePrompt21 | GetOnePrompt22 | GetOnePrompt23>;
|
|
471
|
-
toolCalls?: Array<GetOnePromptToolCalls> | undefined;
|
|
472
|
-
toolCallId?: string | undefined;
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* A list of messages compatible with the openAI schema
|
|
477
|
-
*/
|
|
478
|
-
export type GetOnePromptPromptConfig = {
|
|
479
|
-
stream?: boolean | undefined;
|
|
480
|
-
model?: string | undefined;
|
|
481
|
-
/**
|
|
482
|
-
* The id of the resource
|
|
483
|
-
*/
|
|
484
|
-
modelDbId?: string | null | undefined;
|
|
485
|
-
/**
|
|
486
|
-
* The modality of the model
|
|
487
|
-
*/
|
|
488
|
-
modelType?: GetOnePromptModelType | null | undefined;
|
|
489
|
-
/**
|
|
490
|
-
* Model Parameters: Not all parameters apply to every model
|
|
491
|
-
*/
|
|
492
|
-
modelParameters?: GetOnePromptModelParameters | undefined;
|
|
493
|
-
provider?: GetOnePromptProvider | undefined;
|
|
494
|
-
/**
|
|
495
|
-
* The ID of the integration to use
|
|
496
|
-
*/
|
|
497
|
-
integrationId?: string | null | undefined;
|
|
498
|
-
version?: string | undefined;
|
|
499
|
-
messages: Array<GetOnePromptMessages>;
|
|
500
|
-
};
|
|
501
|
-
|
|
502
|
-
export const GetOnePromptUseCases = {
|
|
503
|
-
AgentsSimulations: "Agents simulations",
|
|
504
|
-
Agents: "Agents",
|
|
505
|
-
APIInteraction: "API interaction",
|
|
506
|
-
AutonomousAgents: "Autonomous Agents",
|
|
507
|
-
Chatbots: "Chatbots",
|
|
508
|
-
Classification: "Classification",
|
|
509
|
-
CodeUnderstanding: "Code understanding",
|
|
510
|
-
CodeWriting: "Code writing",
|
|
511
|
-
Conversation: "Conversation",
|
|
512
|
-
DocumentsQA: "Documents QA",
|
|
513
|
-
Evaluation: "Evaluation",
|
|
514
|
-
Extraction: "Extraction",
|
|
515
|
-
MultiModal: "Multi-modal",
|
|
516
|
-
SelfChecking: "Self-checking",
|
|
517
|
-
SentimentAnalysis: "Sentiment analysis",
|
|
518
|
-
Sql: "SQL",
|
|
519
|
-
Summarization: "Summarization",
|
|
520
|
-
Tagging: "Tagging",
|
|
521
|
-
TranslationDocument: "Translation (document)",
|
|
522
|
-
TranslationSentences: "Translation (sentences)",
|
|
523
|
-
} as const;
|
|
524
|
-
export type GetOnePromptUseCases = ClosedEnum<typeof GetOnePromptUseCases>;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
528
|
-
*/
|
|
529
|
-
export const GetOnePromptLanguage = {
|
|
530
|
-
Chinese: "Chinese",
|
|
531
|
-
Dutch: "Dutch",
|
|
532
|
-
English: "English",
|
|
533
|
-
French: "French",
|
|
534
|
-
German: "German",
|
|
535
|
-
Russian: "Russian",
|
|
536
|
-
Spanish: "Spanish",
|
|
537
|
-
} as const;
|
|
538
|
-
/**
|
|
539
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
540
|
-
*/
|
|
541
|
-
export type GetOnePromptLanguage = ClosedEnum<typeof GetOnePromptLanguage>;
|
|
542
|
-
|
|
543
|
-
export type GetOnePromptMetadata = {
|
|
544
|
-
/**
|
|
545
|
-
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
546
|
-
*/
|
|
547
|
-
useCases?: Array<GetOnePromptUseCases> | undefined;
|
|
548
|
-
/**
|
|
549
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
550
|
-
*/
|
|
551
|
-
language?: GetOnePromptLanguage | null | undefined;
|
|
552
|
-
};
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* A prompt entity with configuration, metadata, and versioning.
|
|
556
|
-
*/
|
|
557
|
-
export type GetOnePromptPrompt = {
|
|
558
|
-
id: string;
|
|
559
|
-
type: GetOnePromptType;
|
|
560
|
-
owner: string;
|
|
561
|
-
domainId: string;
|
|
562
|
-
created: string;
|
|
563
|
-
updated: string;
|
|
564
|
-
createdById?: string | null | undefined;
|
|
565
|
-
updatedById?: string | null | undefined;
|
|
566
|
-
/**
|
|
567
|
-
* The prompt’s name, meant to be displayable in the UI.
|
|
568
|
-
*/
|
|
569
|
-
displayName: string;
|
|
570
|
-
/**
|
|
571
|
-
* The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
|
|
572
|
-
*/
|
|
573
|
-
description?: string | null | undefined;
|
|
574
|
-
/**
|
|
575
|
-
* A list of messages compatible with the openAI schema
|
|
576
|
-
*/
|
|
577
|
-
promptConfig: GetOnePromptPromptConfig;
|
|
578
|
-
metadata?: GetOnePromptMetadata | undefined;
|
|
579
|
-
};
|
|
580
|
-
|
|
581
|
-
/** @internal */
|
|
582
|
-
export const GetOnePromptRequest$inboundSchema: z.ZodType<
|
|
583
|
-
GetOnePromptRequest,
|
|
584
|
-
z.ZodTypeDef,
|
|
585
|
-
unknown
|
|
586
|
-
> = z.object({
|
|
587
|
-
id: z.string(),
|
|
588
|
-
});
|
|
589
|
-
|
|
590
|
-
/** @internal */
|
|
591
|
-
export type GetOnePromptRequest$Outbound = {
|
|
592
|
-
id: string;
|
|
593
|
-
};
|
|
594
|
-
|
|
595
|
-
/** @internal */
|
|
596
|
-
export const GetOnePromptRequest$outboundSchema: z.ZodType<
|
|
597
|
-
GetOnePromptRequest$Outbound,
|
|
598
|
-
z.ZodTypeDef,
|
|
599
|
-
GetOnePromptRequest
|
|
600
|
-
> = z.object({
|
|
601
|
-
id: z.string(),
|
|
602
|
-
});
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
* @internal
|
|
606
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
607
|
-
*/
|
|
608
|
-
export namespace GetOnePromptRequest$ {
|
|
609
|
-
/** @deprecated use `GetOnePromptRequest$inboundSchema` instead. */
|
|
610
|
-
export const inboundSchema = GetOnePromptRequest$inboundSchema;
|
|
611
|
-
/** @deprecated use `GetOnePromptRequest$outboundSchema` instead. */
|
|
612
|
-
export const outboundSchema = GetOnePromptRequest$outboundSchema;
|
|
613
|
-
/** @deprecated use `GetOnePromptRequest$Outbound` instead. */
|
|
614
|
-
export type Outbound = GetOnePromptRequest$Outbound;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
export function getOnePromptRequestToJSON(
|
|
618
|
-
getOnePromptRequest: GetOnePromptRequest,
|
|
619
|
-
): string {
|
|
620
|
-
return JSON.stringify(
|
|
621
|
-
GetOnePromptRequest$outboundSchema.parse(getOnePromptRequest),
|
|
622
|
-
);
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
export function getOnePromptRequestFromJSON(
|
|
626
|
-
jsonString: string,
|
|
627
|
-
): SafeParseResult<GetOnePromptRequest, SDKValidationError> {
|
|
628
|
-
return safeParse(
|
|
629
|
-
jsonString,
|
|
630
|
-
(x) => GetOnePromptRequest$inboundSchema.parse(JSON.parse(x)),
|
|
631
|
-
`Failed to parse 'GetOnePromptRequest' from JSON`,
|
|
632
|
-
);
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
/** @internal */
|
|
636
|
-
export const GetOnePromptType$inboundSchema: z.ZodNativeEnum<
|
|
637
|
-
typeof GetOnePromptType
|
|
638
|
-
> = z.nativeEnum(GetOnePromptType);
|
|
639
|
-
|
|
640
|
-
/** @internal */
|
|
641
|
-
export const GetOnePromptType$outboundSchema: z.ZodNativeEnum<
|
|
642
|
-
typeof GetOnePromptType
|
|
643
|
-
> = GetOnePromptType$inboundSchema;
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
* @internal
|
|
647
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
648
|
-
*/
|
|
649
|
-
export namespace GetOnePromptType$ {
|
|
650
|
-
/** @deprecated use `GetOnePromptType$inboundSchema` instead. */
|
|
651
|
-
export const inboundSchema = GetOnePromptType$inboundSchema;
|
|
652
|
-
/** @deprecated use `GetOnePromptType$outboundSchema` instead. */
|
|
653
|
-
export const outboundSchema = GetOnePromptType$outboundSchema;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
/** @internal */
|
|
657
|
-
export const GetOnePromptModelType$inboundSchema: z.ZodNativeEnum<
|
|
658
|
-
typeof GetOnePromptModelType
|
|
659
|
-
> = z.nativeEnum(GetOnePromptModelType);
|
|
660
|
-
|
|
661
|
-
/** @internal */
|
|
662
|
-
export const GetOnePromptModelType$outboundSchema: z.ZodNativeEnum<
|
|
663
|
-
typeof GetOnePromptModelType
|
|
664
|
-
> = GetOnePromptModelType$inboundSchema;
|
|
665
|
-
|
|
666
|
-
/**
|
|
667
|
-
* @internal
|
|
668
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
669
|
-
*/
|
|
670
|
-
export namespace GetOnePromptModelType$ {
|
|
671
|
-
/** @deprecated use `GetOnePromptModelType$inboundSchema` instead. */
|
|
672
|
-
export const inboundSchema = GetOnePromptModelType$inboundSchema;
|
|
673
|
-
/** @deprecated use `GetOnePromptModelType$outboundSchema` instead. */
|
|
674
|
-
export const outboundSchema = GetOnePromptModelType$outboundSchema;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
/** @internal */
|
|
678
|
-
export const GetOnePromptFormat$inboundSchema: z.ZodNativeEnum<
|
|
679
|
-
typeof GetOnePromptFormat
|
|
680
|
-
> = z.nativeEnum(GetOnePromptFormat);
|
|
681
|
-
|
|
682
|
-
/** @internal */
|
|
683
|
-
export const GetOnePromptFormat$outboundSchema: z.ZodNativeEnum<
|
|
684
|
-
typeof GetOnePromptFormat
|
|
685
|
-
> = GetOnePromptFormat$inboundSchema;
|
|
686
|
-
|
|
687
|
-
/**
|
|
688
|
-
* @internal
|
|
689
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
690
|
-
*/
|
|
691
|
-
export namespace GetOnePromptFormat$ {
|
|
692
|
-
/** @deprecated use `GetOnePromptFormat$inboundSchema` instead. */
|
|
693
|
-
export const inboundSchema = GetOnePromptFormat$inboundSchema;
|
|
694
|
-
/** @deprecated use `GetOnePromptFormat$outboundSchema` instead. */
|
|
695
|
-
export const outboundSchema = GetOnePromptFormat$outboundSchema;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
/** @internal */
|
|
699
|
-
export const GetOnePromptResponseFormat6$inboundSchema: z.ZodNativeEnum<
|
|
700
|
-
typeof GetOnePromptResponseFormat6
|
|
701
|
-
> = z.nativeEnum(GetOnePromptResponseFormat6);
|
|
702
|
-
|
|
703
|
-
/** @internal */
|
|
704
|
-
export const GetOnePromptResponseFormat6$outboundSchema: z.ZodNativeEnum<
|
|
705
|
-
typeof GetOnePromptResponseFormat6
|
|
706
|
-
> = GetOnePromptResponseFormat6$inboundSchema;
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* @internal
|
|
710
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
711
|
-
*/
|
|
712
|
-
export namespace GetOnePromptResponseFormat6$ {
|
|
713
|
-
/** @deprecated use `GetOnePromptResponseFormat6$inboundSchema` instead. */
|
|
714
|
-
export const inboundSchema = GetOnePromptResponseFormat6$inboundSchema;
|
|
715
|
-
/** @deprecated use `GetOnePromptResponseFormat6$outboundSchema` instead. */
|
|
716
|
-
export const outboundSchema = GetOnePromptResponseFormat6$outboundSchema;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
/** @internal */
|
|
720
|
-
export const GetOnePromptResponseFormat5$inboundSchema: z.ZodNativeEnum<
|
|
721
|
-
typeof GetOnePromptResponseFormat5
|
|
722
|
-
> = z.nativeEnum(GetOnePromptResponseFormat5);
|
|
723
|
-
|
|
724
|
-
/** @internal */
|
|
725
|
-
export const GetOnePromptResponseFormat5$outboundSchema: z.ZodNativeEnum<
|
|
726
|
-
typeof GetOnePromptResponseFormat5
|
|
727
|
-
> = GetOnePromptResponseFormat5$inboundSchema;
|
|
728
|
-
|
|
729
|
-
/**
|
|
730
|
-
* @internal
|
|
731
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
732
|
-
*/
|
|
733
|
-
export namespace GetOnePromptResponseFormat5$ {
|
|
734
|
-
/** @deprecated use `GetOnePromptResponseFormat5$inboundSchema` instead. */
|
|
735
|
-
export const inboundSchema = GetOnePromptResponseFormat5$inboundSchema;
|
|
736
|
-
/** @deprecated use `GetOnePromptResponseFormat5$outboundSchema` instead. */
|
|
737
|
-
export const outboundSchema = GetOnePromptResponseFormat5$outboundSchema;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/** @internal */
|
|
741
|
-
export const GetOnePromptResponseFormat4$inboundSchema: z.ZodNativeEnum<
|
|
742
|
-
typeof GetOnePromptResponseFormat4
|
|
743
|
-
> = z.nativeEnum(GetOnePromptResponseFormat4);
|
|
744
|
-
|
|
745
|
-
/** @internal */
|
|
746
|
-
export const GetOnePromptResponseFormat4$outboundSchema: z.ZodNativeEnum<
|
|
747
|
-
typeof GetOnePromptResponseFormat4
|
|
748
|
-
> = GetOnePromptResponseFormat4$inboundSchema;
|
|
749
|
-
|
|
750
|
-
/**
|
|
751
|
-
* @internal
|
|
752
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
753
|
-
*/
|
|
754
|
-
export namespace GetOnePromptResponseFormat4$ {
|
|
755
|
-
/** @deprecated use `GetOnePromptResponseFormat4$inboundSchema` instead. */
|
|
756
|
-
export const inboundSchema = GetOnePromptResponseFormat4$inboundSchema;
|
|
757
|
-
/** @deprecated use `GetOnePromptResponseFormat4$outboundSchema` instead. */
|
|
758
|
-
export const outboundSchema = GetOnePromptResponseFormat4$outboundSchema;
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
/** @internal */
|
|
762
|
-
export const GetOnePromptResponseFormatPromptsResponseType$inboundSchema:
|
|
763
|
-
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponseType> = z
|
|
764
|
-
.nativeEnum(GetOnePromptResponseFormatPromptsResponseType);
|
|
765
|
-
|
|
766
|
-
/** @internal */
|
|
767
|
-
export const GetOnePromptResponseFormatPromptsResponseType$outboundSchema:
|
|
768
|
-
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponseType> =
|
|
769
|
-
GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
770
|
-
|
|
771
|
-
/**
|
|
772
|
-
* @internal
|
|
773
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
774
|
-
*/
|
|
775
|
-
export namespace GetOnePromptResponseFormatPromptsResponseType$ {
|
|
776
|
-
/** @deprecated use `GetOnePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
|
|
777
|
-
export const inboundSchema =
|
|
778
|
-
GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
779
|
-
/** @deprecated use `GetOnePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
|
|
780
|
-
export const outboundSchema =
|
|
781
|
-
GetOnePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
/** @internal */
|
|
785
|
-
export const GetOnePromptResponseFormat3$inboundSchema: z.ZodType<
|
|
786
|
-
GetOnePromptResponseFormat3,
|
|
787
|
-
z.ZodTypeDef,
|
|
788
|
-
unknown
|
|
789
|
-
> = z.object({
|
|
790
|
-
type: GetOnePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
791
|
-
});
|
|
792
|
-
|
|
793
|
-
/** @internal */
|
|
794
|
-
export type GetOnePromptResponseFormat3$Outbound = {
|
|
795
|
-
type: string;
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
/** @internal */
|
|
799
|
-
export const GetOnePromptResponseFormat3$outboundSchema: z.ZodType<
|
|
800
|
-
GetOnePromptResponseFormat3$Outbound,
|
|
801
|
-
z.ZodTypeDef,
|
|
802
|
-
GetOnePromptResponseFormat3
|
|
803
|
-
> = z.object({
|
|
804
|
-
type: GetOnePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
805
|
-
});
|
|
806
|
-
|
|
807
|
-
/**
|
|
808
|
-
* @internal
|
|
809
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
810
|
-
*/
|
|
811
|
-
export namespace GetOnePromptResponseFormat3$ {
|
|
812
|
-
/** @deprecated use `GetOnePromptResponseFormat3$inboundSchema` instead. */
|
|
813
|
-
export const inboundSchema = GetOnePromptResponseFormat3$inboundSchema;
|
|
814
|
-
/** @deprecated use `GetOnePromptResponseFormat3$outboundSchema` instead. */
|
|
815
|
-
export const outboundSchema = GetOnePromptResponseFormat3$outboundSchema;
|
|
816
|
-
/** @deprecated use `GetOnePromptResponseFormat3$Outbound` instead. */
|
|
817
|
-
export type Outbound = GetOnePromptResponseFormat3$Outbound;
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
export function getOnePromptResponseFormat3ToJSON(
|
|
821
|
-
getOnePromptResponseFormat3: GetOnePromptResponseFormat3,
|
|
822
|
-
): string {
|
|
823
|
-
return JSON.stringify(
|
|
824
|
-
GetOnePromptResponseFormat3$outboundSchema.parse(
|
|
825
|
-
getOnePromptResponseFormat3,
|
|
826
|
-
),
|
|
827
|
-
);
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
export function getOnePromptResponseFormat3FromJSON(
|
|
831
|
-
jsonString: string,
|
|
832
|
-
): SafeParseResult<GetOnePromptResponseFormat3, SDKValidationError> {
|
|
833
|
-
return safeParse(
|
|
834
|
-
jsonString,
|
|
835
|
-
(x) => GetOnePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
836
|
-
`Failed to parse 'GetOnePromptResponseFormat3' from JSON`,
|
|
837
|
-
);
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
/** @internal */
|
|
841
|
-
export const GetOnePromptResponseFormatPromptsType$inboundSchema:
|
|
842
|
-
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> = z.nativeEnum(
|
|
843
|
-
GetOnePromptResponseFormatPromptsType,
|
|
844
|
-
);
|
|
845
|
-
|
|
846
|
-
/** @internal */
|
|
847
|
-
export const GetOnePromptResponseFormatPromptsType$outboundSchema:
|
|
848
|
-
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> =
|
|
849
|
-
GetOnePromptResponseFormatPromptsType$inboundSchema;
|
|
850
|
-
|
|
851
|
-
/**
|
|
852
|
-
* @internal
|
|
853
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
854
|
-
*/
|
|
855
|
-
export namespace GetOnePromptResponseFormatPromptsType$ {
|
|
856
|
-
/** @deprecated use `GetOnePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
857
|
-
export const inboundSchema =
|
|
858
|
-
GetOnePromptResponseFormatPromptsType$inboundSchema;
|
|
859
|
-
/** @deprecated use `GetOnePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
860
|
-
export const outboundSchema =
|
|
861
|
-
GetOnePromptResponseFormatPromptsType$outboundSchema;
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
/** @internal */
|
|
865
|
-
export const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
866
|
-
GetOnePromptResponseFormat2,
|
|
867
|
-
z.ZodTypeDef,
|
|
868
|
-
unknown
|
|
869
|
-
> = z.object({
|
|
870
|
-
type: GetOnePromptResponseFormatPromptsType$inboundSchema,
|
|
871
|
-
});
|
|
872
|
-
|
|
873
|
-
/** @internal */
|
|
874
|
-
export type GetOnePromptResponseFormat2$Outbound = {
|
|
875
|
-
type: string;
|
|
876
|
-
};
|
|
877
|
-
|
|
878
|
-
/** @internal */
|
|
879
|
-
export const GetOnePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
880
|
-
GetOnePromptResponseFormat2$Outbound,
|
|
881
|
-
z.ZodTypeDef,
|
|
882
|
-
GetOnePromptResponseFormat2
|
|
883
|
-
> = z.object({
|
|
884
|
-
type: GetOnePromptResponseFormatPromptsType$outboundSchema,
|
|
885
|
-
});
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
* @internal
|
|
889
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
890
|
-
*/
|
|
891
|
-
export namespace GetOnePromptResponseFormat2$ {
|
|
892
|
-
/** @deprecated use `GetOnePromptResponseFormat2$inboundSchema` instead. */
|
|
893
|
-
export const inboundSchema = GetOnePromptResponseFormat2$inboundSchema;
|
|
894
|
-
/** @deprecated use `GetOnePromptResponseFormat2$outboundSchema` instead. */
|
|
895
|
-
export const outboundSchema = GetOnePromptResponseFormat2$outboundSchema;
|
|
896
|
-
/** @deprecated use `GetOnePromptResponseFormat2$Outbound` instead. */
|
|
897
|
-
export type Outbound = GetOnePromptResponseFormat2$Outbound;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
export function getOnePromptResponseFormat2ToJSON(
|
|
901
|
-
getOnePromptResponseFormat2: GetOnePromptResponseFormat2,
|
|
902
|
-
): string {
|
|
903
|
-
return JSON.stringify(
|
|
904
|
-
GetOnePromptResponseFormat2$outboundSchema.parse(
|
|
905
|
-
getOnePromptResponseFormat2,
|
|
906
|
-
),
|
|
907
|
-
);
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
export function getOnePromptResponseFormat2FromJSON(
|
|
911
|
-
jsonString: string,
|
|
912
|
-
): SafeParseResult<GetOnePromptResponseFormat2, SDKValidationError> {
|
|
913
|
-
return safeParse(
|
|
914
|
-
jsonString,
|
|
915
|
-
(x) => GetOnePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
916
|
-
`Failed to parse 'GetOnePromptResponseFormat2' from JSON`,
|
|
917
|
-
);
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
/** @internal */
|
|
921
|
-
export const GetOnePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
922
|
-
typeof GetOnePromptResponseFormatType
|
|
923
|
-
> = z.nativeEnum(GetOnePromptResponseFormatType);
|
|
924
|
-
|
|
925
|
-
/** @internal */
|
|
926
|
-
export const GetOnePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
927
|
-
typeof GetOnePromptResponseFormatType
|
|
928
|
-
> = GetOnePromptResponseFormatType$inboundSchema;
|
|
929
|
-
|
|
930
|
-
/**
|
|
931
|
-
* @internal
|
|
932
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
933
|
-
*/
|
|
934
|
-
export namespace GetOnePromptResponseFormatType$ {
|
|
935
|
-
/** @deprecated use `GetOnePromptResponseFormatType$inboundSchema` instead. */
|
|
936
|
-
export const inboundSchema = GetOnePromptResponseFormatType$inboundSchema;
|
|
937
|
-
/** @deprecated use `GetOnePromptResponseFormatType$outboundSchema` instead. */
|
|
938
|
-
export const outboundSchema = GetOnePromptResponseFormatType$outboundSchema;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
/** @internal */
|
|
942
|
-
export const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
943
|
-
GetOnePromptResponseFormatJsonSchema,
|
|
944
|
-
z.ZodTypeDef,
|
|
945
|
-
unknown
|
|
946
|
-
> = z.object({
|
|
947
|
-
name: z.string(),
|
|
948
|
-
description: z.string().optional(),
|
|
949
|
-
strict: z.boolean().optional(),
|
|
950
|
-
schema: z.record(z.any()),
|
|
951
|
-
});
|
|
952
|
-
|
|
953
|
-
/** @internal */
|
|
954
|
-
export type GetOnePromptResponseFormatJsonSchema$Outbound = {
|
|
955
|
-
name: string;
|
|
956
|
-
description?: string | undefined;
|
|
957
|
-
strict?: boolean | undefined;
|
|
958
|
-
schema: { [k: string]: any };
|
|
959
|
-
};
|
|
960
|
-
|
|
961
|
-
/** @internal */
|
|
962
|
-
export const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
963
|
-
GetOnePromptResponseFormatJsonSchema$Outbound,
|
|
964
|
-
z.ZodTypeDef,
|
|
965
|
-
GetOnePromptResponseFormatJsonSchema
|
|
966
|
-
> = z.object({
|
|
967
|
-
name: z.string(),
|
|
968
|
-
description: z.string().optional(),
|
|
969
|
-
strict: z.boolean().optional(),
|
|
970
|
-
schema: z.record(z.any()),
|
|
971
|
-
});
|
|
972
|
-
|
|
973
|
-
/**
|
|
974
|
-
* @internal
|
|
975
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
976
|
-
*/
|
|
977
|
-
export namespace GetOnePromptResponseFormatJsonSchema$ {
|
|
978
|
-
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
979
|
-
export const inboundSchema =
|
|
980
|
-
GetOnePromptResponseFormatJsonSchema$inboundSchema;
|
|
981
|
-
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
982
|
-
export const outboundSchema =
|
|
983
|
-
GetOnePromptResponseFormatJsonSchema$outboundSchema;
|
|
984
|
-
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
985
|
-
export type Outbound = GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
export function getOnePromptResponseFormatJsonSchemaToJSON(
|
|
989
|
-
getOnePromptResponseFormatJsonSchema: GetOnePromptResponseFormatJsonSchema,
|
|
990
|
-
): string {
|
|
991
|
-
return JSON.stringify(
|
|
992
|
-
GetOnePromptResponseFormatJsonSchema$outboundSchema.parse(
|
|
993
|
-
getOnePromptResponseFormatJsonSchema,
|
|
994
|
-
),
|
|
995
|
-
);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
export function getOnePromptResponseFormatJsonSchemaFromJSON(
|
|
999
|
-
jsonString: string,
|
|
1000
|
-
): SafeParseResult<GetOnePromptResponseFormatJsonSchema, SDKValidationError> {
|
|
1001
|
-
return safeParse(
|
|
1002
|
-
jsonString,
|
|
1003
|
-
(x) =>
|
|
1004
|
-
GetOnePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1005
|
-
`Failed to parse 'GetOnePromptResponseFormatJsonSchema' from JSON`,
|
|
1006
|
-
);
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
/** @internal */
|
|
1010
|
-
export const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
1011
|
-
GetOnePromptResponseFormat1,
|
|
1012
|
-
z.ZodTypeDef,
|
|
1013
|
-
unknown
|
|
1014
|
-
> = z.object({
|
|
1015
|
-
type: GetOnePromptResponseFormatType$inboundSchema,
|
|
1016
|
-
json_schema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$inboundSchema),
|
|
1017
|
-
}).transform((v) => {
|
|
1018
|
-
return remap$(v, {
|
|
1019
|
-
"json_schema": "jsonSchema",
|
|
1020
|
-
});
|
|
1021
|
-
});
|
|
1022
|
-
|
|
1023
|
-
/** @internal */
|
|
1024
|
-
export type GetOnePromptResponseFormat1$Outbound = {
|
|
1025
|
-
type: string;
|
|
1026
|
-
json_schema: GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
1027
|
-
};
|
|
1028
|
-
|
|
1029
|
-
/** @internal */
|
|
1030
|
-
export const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
1031
|
-
GetOnePromptResponseFormat1$Outbound,
|
|
1032
|
-
z.ZodTypeDef,
|
|
1033
|
-
GetOnePromptResponseFormat1
|
|
1034
|
-
> = z.object({
|
|
1035
|
-
type: GetOnePromptResponseFormatType$outboundSchema,
|
|
1036
|
-
jsonSchema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$outboundSchema),
|
|
1037
|
-
}).transform((v) => {
|
|
1038
|
-
return remap$(v, {
|
|
1039
|
-
jsonSchema: "json_schema",
|
|
1040
|
-
});
|
|
1041
|
-
});
|
|
1042
|
-
|
|
1043
|
-
/**
|
|
1044
|
-
* @internal
|
|
1045
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1046
|
-
*/
|
|
1047
|
-
export namespace GetOnePromptResponseFormat1$ {
|
|
1048
|
-
/** @deprecated use `GetOnePromptResponseFormat1$inboundSchema` instead. */
|
|
1049
|
-
export const inboundSchema = GetOnePromptResponseFormat1$inboundSchema;
|
|
1050
|
-
/** @deprecated use `GetOnePromptResponseFormat1$outboundSchema` instead. */
|
|
1051
|
-
export const outboundSchema = GetOnePromptResponseFormat1$outboundSchema;
|
|
1052
|
-
/** @deprecated use `GetOnePromptResponseFormat1$Outbound` instead. */
|
|
1053
|
-
export type Outbound = GetOnePromptResponseFormat1$Outbound;
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
export function getOnePromptResponseFormat1ToJSON(
|
|
1057
|
-
getOnePromptResponseFormat1: GetOnePromptResponseFormat1,
|
|
1058
|
-
): string {
|
|
1059
|
-
return JSON.stringify(
|
|
1060
|
-
GetOnePromptResponseFormat1$outboundSchema.parse(
|
|
1061
|
-
getOnePromptResponseFormat1,
|
|
1062
|
-
),
|
|
1063
|
-
);
|
|
1064
|
-
}
|
|
1065
|
-
|
|
1066
|
-
export function getOnePromptResponseFormat1FromJSON(
|
|
1067
|
-
jsonString: string,
|
|
1068
|
-
): SafeParseResult<GetOnePromptResponseFormat1, SDKValidationError> {
|
|
1069
|
-
return safeParse(
|
|
1070
|
-
jsonString,
|
|
1071
|
-
(x) => GetOnePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
1072
|
-
`Failed to parse 'GetOnePromptResponseFormat1' from JSON`,
|
|
1073
|
-
);
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
/** @internal */
|
|
1077
|
-
export const GetOnePromptResponseFormat$inboundSchema: z.ZodType<
|
|
1078
|
-
GetOnePromptResponseFormat,
|
|
1079
|
-
z.ZodTypeDef,
|
|
1080
|
-
unknown
|
|
1081
|
-
> = z.union([
|
|
1082
|
-
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
1083
|
-
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
1084
|
-
z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
|
|
1085
|
-
GetOnePromptResponseFormat4$inboundSchema,
|
|
1086
|
-
GetOnePromptResponseFormat5$inboundSchema,
|
|
1087
|
-
GetOnePromptResponseFormat6$inboundSchema,
|
|
1088
|
-
]);
|
|
1089
|
-
|
|
1090
|
-
/** @internal */
|
|
1091
|
-
export type GetOnePromptResponseFormat$Outbound =
|
|
1092
|
-
| GetOnePromptResponseFormat1$Outbound
|
|
1093
|
-
| GetOnePromptResponseFormat2$Outbound
|
|
1094
|
-
| GetOnePromptResponseFormat3$Outbound
|
|
1095
|
-
| string
|
|
1096
|
-
| string
|
|
1097
|
-
| string;
|
|
1098
|
-
|
|
1099
|
-
/** @internal */
|
|
1100
|
-
export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
|
|
1101
|
-
GetOnePromptResponseFormat$Outbound,
|
|
1102
|
-
z.ZodTypeDef,
|
|
1103
|
-
GetOnePromptResponseFormat
|
|
1104
|
-
> = z.union([
|
|
1105
|
-
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
1106
|
-
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
1107
|
-
z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
|
|
1108
|
-
GetOnePromptResponseFormat4$outboundSchema,
|
|
1109
|
-
GetOnePromptResponseFormat5$outboundSchema,
|
|
1110
|
-
GetOnePromptResponseFormat6$outboundSchema,
|
|
1111
|
-
]);
|
|
1112
|
-
|
|
1113
|
-
/**
|
|
1114
|
-
* @internal
|
|
1115
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1116
|
-
*/
|
|
1117
|
-
export namespace GetOnePromptResponseFormat$ {
|
|
1118
|
-
/** @deprecated use `GetOnePromptResponseFormat$inboundSchema` instead. */
|
|
1119
|
-
export const inboundSchema = GetOnePromptResponseFormat$inboundSchema;
|
|
1120
|
-
/** @deprecated use `GetOnePromptResponseFormat$outboundSchema` instead. */
|
|
1121
|
-
export const outboundSchema = GetOnePromptResponseFormat$outboundSchema;
|
|
1122
|
-
/** @deprecated use `GetOnePromptResponseFormat$Outbound` instead. */
|
|
1123
|
-
export type Outbound = GetOnePromptResponseFormat$Outbound;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
export function getOnePromptResponseFormatToJSON(
|
|
1127
|
-
getOnePromptResponseFormat: GetOnePromptResponseFormat,
|
|
1128
|
-
): string {
|
|
1129
|
-
return JSON.stringify(
|
|
1130
|
-
GetOnePromptResponseFormat$outboundSchema.parse(getOnePromptResponseFormat),
|
|
1131
|
-
);
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
export function getOnePromptResponseFormatFromJSON(
|
|
1135
|
-
jsonString: string,
|
|
1136
|
-
): SafeParseResult<GetOnePromptResponseFormat, SDKValidationError> {
|
|
1137
|
-
return safeParse(
|
|
1138
|
-
jsonString,
|
|
1139
|
-
(x) => GetOnePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1140
|
-
`Failed to parse 'GetOnePromptResponseFormat' from JSON`,
|
|
1141
|
-
);
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
/** @internal */
|
|
1145
|
-
export const GetOnePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1146
|
-
typeof GetOnePromptPhotoRealVersion
|
|
1147
|
-
> = z.nativeEnum(GetOnePromptPhotoRealVersion);
|
|
1148
|
-
|
|
1149
|
-
/** @internal */
|
|
1150
|
-
export const GetOnePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
1151
|
-
typeof GetOnePromptPhotoRealVersion
|
|
1152
|
-
> = GetOnePromptPhotoRealVersion$inboundSchema;
|
|
1153
|
-
|
|
1154
|
-
/**
|
|
1155
|
-
* @internal
|
|
1156
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1157
|
-
*/
|
|
1158
|
-
export namespace GetOnePromptPhotoRealVersion$ {
|
|
1159
|
-
/** @deprecated use `GetOnePromptPhotoRealVersion$inboundSchema` instead. */
|
|
1160
|
-
export const inboundSchema = GetOnePromptPhotoRealVersion$inboundSchema;
|
|
1161
|
-
/** @deprecated use `GetOnePromptPhotoRealVersion$outboundSchema` instead. */
|
|
1162
|
-
export const outboundSchema = GetOnePromptPhotoRealVersion$outboundSchema;
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
/** @internal */
|
|
1166
|
-
export const GetOnePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
1167
|
-
typeof GetOnePromptEncodingFormat
|
|
1168
|
-
> = z.nativeEnum(GetOnePromptEncodingFormat);
|
|
1169
|
-
|
|
1170
|
-
/** @internal */
|
|
1171
|
-
export const GetOnePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
1172
|
-
typeof GetOnePromptEncodingFormat
|
|
1173
|
-
> = GetOnePromptEncodingFormat$inboundSchema;
|
|
1174
|
-
|
|
1175
|
-
/**
|
|
1176
|
-
* @internal
|
|
1177
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1178
|
-
*/
|
|
1179
|
-
export namespace GetOnePromptEncodingFormat$ {
|
|
1180
|
-
/** @deprecated use `GetOnePromptEncodingFormat$inboundSchema` instead. */
|
|
1181
|
-
export const inboundSchema = GetOnePromptEncodingFormat$inboundSchema;
|
|
1182
|
-
/** @deprecated use `GetOnePromptEncodingFormat$outboundSchema` instead. */
|
|
1183
|
-
export const outboundSchema = GetOnePromptEncodingFormat$outboundSchema;
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
/** @internal */
|
|
1187
|
-
export const GetOnePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1188
|
-
typeof GetOnePromptReasoningEffort
|
|
1189
|
-
> = z.nativeEnum(GetOnePromptReasoningEffort);
|
|
1190
|
-
|
|
1191
|
-
/** @internal */
|
|
1192
|
-
export const GetOnePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1193
|
-
typeof GetOnePromptReasoningEffort
|
|
1194
|
-
> = GetOnePromptReasoningEffort$inboundSchema;
|
|
1195
|
-
|
|
1196
|
-
/**
|
|
1197
|
-
* @internal
|
|
1198
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1199
|
-
*/
|
|
1200
|
-
export namespace GetOnePromptReasoningEffort$ {
|
|
1201
|
-
/** @deprecated use `GetOnePromptReasoningEffort$inboundSchema` instead. */
|
|
1202
|
-
export const inboundSchema = GetOnePromptReasoningEffort$inboundSchema;
|
|
1203
|
-
/** @deprecated use `GetOnePromptReasoningEffort$outboundSchema` instead. */
|
|
1204
|
-
export const outboundSchema = GetOnePromptReasoningEffort$outboundSchema;
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
|
-
/** @internal */
|
|
1208
|
-
export const GetOnePromptVerbosity$inboundSchema: z.ZodNativeEnum<
|
|
1209
|
-
typeof GetOnePromptVerbosity
|
|
1210
|
-
> = z.nativeEnum(GetOnePromptVerbosity);
|
|
1211
|
-
|
|
1212
|
-
/** @internal */
|
|
1213
|
-
export const GetOnePromptVerbosity$outboundSchema: z.ZodNativeEnum<
|
|
1214
|
-
typeof GetOnePromptVerbosity
|
|
1215
|
-
> = GetOnePromptVerbosity$inboundSchema;
|
|
1216
|
-
|
|
1217
|
-
/**
|
|
1218
|
-
* @internal
|
|
1219
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1220
|
-
*/
|
|
1221
|
-
export namespace GetOnePromptVerbosity$ {
|
|
1222
|
-
/** @deprecated use `GetOnePromptVerbosity$inboundSchema` instead. */
|
|
1223
|
-
export const inboundSchema = GetOnePromptVerbosity$inboundSchema;
|
|
1224
|
-
/** @deprecated use `GetOnePromptVerbosity$outboundSchema` instead. */
|
|
1225
|
-
export const outboundSchema = GetOnePromptVerbosity$outboundSchema;
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
/** @internal */
|
|
1229
|
-
export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
|
|
1230
|
-
GetOnePromptModelParameters,
|
|
1231
|
-
z.ZodTypeDef,
|
|
1232
|
-
unknown
|
|
1233
|
-
> = z.object({
|
|
1234
|
-
temperature: z.number().optional(),
|
|
1235
|
-
maxTokens: z.number().optional(),
|
|
1236
|
-
topK: z.number().optional(),
|
|
1237
|
-
topP: z.number().optional(),
|
|
1238
|
-
frequencyPenalty: z.number().optional(),
|
|
1239
|
-
presencePenalty: z.number().optional(),
|
|
1240
|
-
numImages: z.number().optional(),
|
|
1241
|
-
seed: z.number().optional(),
|
|
1242
|
-
format: GetOnePromptFormat$inboundSchema.optional(),
|
|
1243
|
-
dimensions: z.string().optional(),
|
|
1244
|
-
quality: z.string().optional(),
|
|
1245
|
-
style: z.string().optional(),
|
|
1246
|
-
responseFormat: z.nullable(
|
|
1247
|
-
z.union([
|
|
1248
|
-
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
1249
|
-
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
1250
|
-
z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
|
|
1251
|
-
GetOnePromptResponseFormat4$inboundSchema,
|
|
1252
|
-
GetOnePromptResponseFormat5$inboundSchema,
|
|
1253
|
-
GetOnePromptResponseFormat6$inboundSchema,
|
|
1254
|
-
]),
|
|
1255
|
-
).optional(),
|
|
1256
|
-
photoRealVersion: GetOnePromptPhotoRealVersion$inboundSchema.optional(),
|
|
1257
|
-
encoding_format: GetOnePromptEncodingFormat$inboundSchema.optional(),
|
|
1258
|
-
reasoningEffort: GetOnePromptReasoningEffort$inboundSchema.optional(),
|
|
1259
|
-
budgetTokens: z.number().optional(),
|
|
1260
|
-
verbosity: GetOnePromptVerbosity$inboundSchema.optional(),
|
|
1261
|
-
}).transform((v) => {
|
|
1262
|
-
return remap$(v, {
|
|
1263
|
-
"encoding_format": "encodingFormat",
|
|
1264
|
-
});
|
|
1265
|
-
});
|
|
1266
|
-
|
|
1267
|
-
/** @internal */
|
|
1268
|
-
export type GetOnePromptModelParameters$Outbound = {
|
|
1269
|
-
temperature?: number | undefined;
|
|
1270
|
-
maxTokens?: number | undefined;
|
|
1271
|
-
topK?: number | undefined;
|
|
1272
|
-
topP?: number | undefined;
|
|
1273
|
-
frequencyPenalty?: number | undefined;
|
|
1274
|
-
presencePenalty?: number | undefined;
|
|
1275
|
-
numImages?: number | undefined;
|
|
1276
|
-
seed?: number | undefined;
|
|
1277
|
-
format?: string | undefined;
|
|
1278
|
-
dimensions?: string | undefined;
|
|
1279
|
-
quality?: string | undefined;
|
|
1280
|
-
style?: string | undefined;
|
|
1281
|
-
responseFormat?:
|
|
1282
|
-
| GetOnePromptResponseFormat1$Outbound
|
|
1283
|
-
| GetOnePromptResponseFormat2$Outbound
|
|
1284
|
-
| GetOnePromptResponseFormat3$Outbound
|
|
1285
|
-
| string
|
|
1286
|
-
| string
|
|
1287
|
-
| string
|
|
1288
|
-
| null
|
|
1289
|
-
| undefined;
|
|
1290
|
-
photoRealVersion?: string | undefined;
|
|
1291
|
-
encoding_format?: string | undefined;
|
|
1292
|
-
reasoningEffort?: string | undefined;
|
|
1293
|
-
budgetTokens?: number | undefined;
|
|
1294
|
-
verbosity?: string | undefined;
|
|
1295
|
-
};
|
|
1296
|
-
|
|
1297
|
-
/** @internal */
|
|
1298
|
-
export const GetOnePromptModelParameters$outboundSchema: z.ZodType<
|
|
1299
|
-
GetOnePromptModelParameters$Outbound,
|
|
1300
|
-
z.ZodTypeDef,
|
|
1301
|
-
GetOnePromptModelParameters
|
|
1302
|
-
> = z.object({
|
|
1303
|
-
temperature: z.number().optional(),
|
|
1304
|
-
maxTokens: z.number().optional(),
|
|
1305
|
-
topK: z.number().optional(),
|
|
1306
|
-
topP: z.number().optional(),
|
|
1307
|
-
frequencyPenalty: z.number().optional(),
|
|
1308
|
-
presencePenalty: z.number().optional(),
|
|
1309
|
-
numImages: z.number().optional(),
|
|
1310
|
-
seed: z.number().optional(),
|
|
1311
|
-
format: GetOnePromptFormat$outboundSchema.optional(),
|
|
1312
|
-
dimensions: z.string().optional(),
|
|
1313
|
-
quality: z.string().optional(),
|
|
1314
|
-
style: z.string().optional(),
|
|
1315
|
-
responseFormat: z.nullable(
|
|
1316
|
-
z.union([
|
|
1317
|
-
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
1318
|
-
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
1319
|
-
z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
|
|
1320
|
-
GetOnePromptResponseFormat4$outboundSchema,
|
|
1321
|
-
GetOnePromptResponseFormat5$outboundSchema,
|
|
1322
|
-
GetOnePromptResponseFormat6$outboundSchema,
|
|
1323
|
-
]),
|
|
1324
|
-
).optional(),
|
|
1325
|
-
photoRealVersion: GetOnePromptPhotoRealVersion$outboundSchema.optional(),
|
|
1326
|
-
encodingFormat: GetOnePromptEncodingFormat$outboundSchema.optional(),
|
|
1327
|
-
reasoningEffort: GetOnePromptReasoningEffort$outboundSchema.optional(),
|
|
1328
|
-
budgetTokens: z.number().optional(),
|
|
1329
|
-
verbosity: GetOnePromptVerbosity$outboundSchema.optional(),
|
|
1330
|
-
}).transform((v) => {
|
|
1331
|
-
return remap$(v, {
|
|
1332
|
-
encodingFormat: "encoding_format",
|
|
1333
|
-
});
|
|
1334
|
-
});
|
|
1335
|
-
|
|
1336
|
-
/**
|
|
1337
|
-
* @internal
|
|
1338
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1339
|
-
*/
|
|
1340
|
-
export namespace GetOnePromptModelParameters$ {
|
|
1341
|
-
/** @deprecated use `GetOnePromptModelParameters$inboundSchema` instead. */
|
|
1342
|
-
export const inboundSchema = GetOnePromptModelParameters$inboundSchema;
|
|
1343
|
-
/** @deprecated use `GetOnePromptModelParameters$outboundSchema` instead. */
|
|
1344
|
-
export const outboundSchema = GetOnePromptModelParameters$outboundSchema;
|
|
1345
|
-
/** @deprecated use `GetOnePromptModelParameters$Outbound` instead. */
|
|
1346
|
-
export type Outbound = GetOnePromptModelParameters$Outbound;
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
export function getOnePromptModelParametersToJSON(
|
|
1350
|
-
getOnePromptModelParameters: GetOnePromptModelParameters,
|
|
1351
|
-
): string {
|
|
1352
|
-
return JSON.stringify(
|
|
1353
|
-
GetOnePromptModelParameters$outboundSchema.parse(
|
|
1354
|
-
getOnePromptModelParameters,
|
|
1355
|
-
),
|
|
1356
|
-
);
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
export function getOnePromptModelParametersFromJSON(
|
|
1360
|
-
jsonString: string,
|
|
1361
|
-
): SafeParseResult<GetOnePromptModelParameters, SDKValidationError> {
|
|
1362
|
-
return safeParse(
|
|
1363
|
-
jsonString,
|
|
1364
|
-
(x) => GetOnePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1365
|
-
`Failed to parse 'GetOnePromptModelParameters' from JSON`,
|
|
1366
|
-
);
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
/** @internal */
|
|
1370
|
-
export const GetOnePromptProvider$inboundSchema: z.ZodNativeEnum<
|
|
1371
|
-
typeof GetOnePromptProvider
|
|
1372
|
-
> = z.nativeEnum(GetOnePromptProvider);
|
|
1373
|
-
|
|
1374
|
-
/** @internal */
|
|
1375
|
-
export const GetOnePromptProvider$outboundSchema: z.ZodNativeEnum<
|
|
1376
|
-
typeof GetOnePromptProvider
|
|
1377
|
-
> = GetOnePromptProvider$inboundSchema;
|
|
1378
|
-
|
|
1379
|
-
/**
|
|
1380
|
-
* @internal
|
|
1381
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1382
|
-
*/
|
|
1383
|
-
export namespace GetOnePromptProvider$ {
|
|
1384
|
-
/** @deprecated use `GetOnePromptProvider$inboundSchema` instead. */
|
|
1385
|
-
export const inboundSchema = GetOnePromptProvider$inboundSchema;
|
|
1386
|
-
/** @deprecated use `GetOnePromptProvider$outboundSchema` instead. */
|
|
1387
|
-
export const outboundSchema = GetOnePromptProvider$outboundSchema;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
/** @internal */
|
|
1391
|
-
export const GetOnePromptRole$inboundSchema: z.ZodNativeEnum<
|
|
1392
|
-
typeof GetOnePromptRole
|
|
1393
|
-
> = z.nativeEnum(GetOnePromptRole);
|
|
1394
|
-
|
|
1395
|
-
/** @internal */
|
|
1396
|
-
export const GetOnePromptRole$outboundSchema: z.ZodNativeEnum<
|
|
1397
|
-
typeof GetOnePromptRole
|
|
1398
|
-
> = GetOnePromptRole$inboundSchema;
|
|
1399
|
-
|
|
1400
|
-
/**
|
|
1401
|
-
* @internal
|
|
1402
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1403
|
-
*/
|
|
1404
|
-
export namespace GetOnePromptRole$ {
|
|
1405
|
-
/** @deprecated use `GetOnePromptRole$inboundSchema` instead. */
|
|
1406
|
-
export const inboundSchema = GetOnePromptRole$inboundSchema;
|
|
1407
|
-
/** @deprecated use `GetOnePromptRole$outboundSchema` instead. */
|
|
1408
|
-
export const outboundSchema = GetOnePromptRole$outboundSchema;
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
/** @internal */
|
|
1412
|
-
export const GetOnePrompt2PromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
1413
|
-
typeof GetOnePrompt2PromptsResponseType
|
|
1414
|
-
> = z.nativeEnum(GetOnePrompt2PromptsResponseType);
|
|
1415
|
-
|
|
1416
|
-
/** @internal */
|
|
1417
|
-
export const GetOnePrompt2PromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
1418
|
-
typeof GetOnePrompt2PromptsResponseType
|
|
1419
|
-
> = GetOnePrompt2PromptsResponseType$inboundSchema;
|
|
1420
|
-
|
|
1421
|
-
/**
|
|
1422
|
-
* @internal
|
|
1423
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1424
|
-
*/
|
|
1425
|
-
export namespace GetOnePrompt2PromptsResponseType$ {
|
|
1426
|
-
/** @deprecated use `GetOnePrompt2PromptsResponseType$inboundSchema` instead. */
|
|
1427
|
-
export const inboundSchema = GetOnePrompt2PromptsResponseType$inboundSchema;
|
|
1428
|
-
/** @deprecated use `GetOnePrompt2PromptsResponseType$outboundSchema` instead. */
|
|
1429
|
-
export const outboundSchema = GetOnePrompt2PromptsResponseType$outboundSchema;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
/** @internal */
|
|
1433
|
-
export const GetOnePrompt2File$inboundSchema: z.ZodType<
|
|
1434
|
-
GetOnePrompt2File,
|
|
1435
|
-
z.ZodTypeDef,
|
|
1436
|
-
unknown
|
|
1437
|
-
> = z.object({
|
|
1438
|
-
file_data: z.string().optional(),
|
|
1439
|
-
uri: z.string().optional(),
|
|
1440
|
-
mimeType: z.string().optional(),
|
|
1441
|
-
filename: z.string().optional(),
|
|
1442
|
-
}).transform((v) => {
|
|
1443
|
-
return remap$(v, {
|
|
1444
|
-
"file_data": "fileData",
|
|
1445
|
-
});
|
|
1446
|
-
});
|
|
1447
|
-
|
|
1448
|
-
/** @internal */
|
|
1449
|
-
export type GetOnePrompt2File$Outbound = {
|
|
1450
|
-
file_data?: string | undefined;
|
|
1451
|
-
uri?: string | undefined;
|
|
1452
|
-
mimeType?: string | undefined;
|
|
1453
|
-
filename?: string | undefined;
|
|
1454
|
-
};
|
|
1455
|
-
|
|
1456
|
-
/** @internal */
|
|
1457
|
-
export const GetOnePrompt2File$outboundSchema: z.ZodType<
|
|
1458
|
-
GetOnePrompt2File$Outbound,
|
|
1459
|
-
z.ZodTypeDef,
|
|
1460
|
-
GetOnePrompt2File
|
|
1461
|
-
> = z.object({
|
|
1462
|
-
fileData: z.string().optional(),
|
|
1463
|
-
uri: z.string().optional(),
|
|
1464
|
-
mimeType: z.string().optional(),
|
|
1465
|
-
filename: z.string().optional(),
|
|
1466
|
-
}).transform((v) => {
|
|
1467
|
-
return remap$(v, {
|
|
1468
|
-
fileData: "file_data",
|
|
1469
|
-
});
|
|
1470
|
-
});
|
|
1471
|
-
|
|
1472
|
-
/**
|
|
1473
|
-
* @internal
|
|
1474
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1475
|
-
*/
|
|
1476
|
-
export namespace GetOnePrompt2File$ {
|
|
1477
|
-
/** @deprecated use `GetOnePrompt2File$inboundSchema` instead. */
|
|
1478
|
-
export const inboundSchema = GetOnePrompt2File$inboundSchema;
|
|
1479
|
-
/** @deprecated use `GetOnePrompt2File$outboundSchema` instead. */
|
|
1480
|
-
export const outboundSchema = GetOnePrompt2File$outboundSchema;
|
|
1481
|
-
/** @deprecated use `GetOnePrompt2File$Outbound` instead. */
|
|
1482
|
-
export type Outbound = GetOnePrompt2File$Outbound;
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
export function getOnePrompt2FileToJSON(
|
|
1486
|
-
getOnePrompt2File: GetOnePrompt2File,
|
|
1487
|
-
): string {
|
|
1488
|
-
return JSON.stringify(
|
|
1489
|
-
GetOnePrompt2File$outboundSchema.parse(getOnePrompt2File),
|
|
1490
|
-
);
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
export function getOnePrompt2FileFromJSON(
|
|
1494
|
-
jsonString: string,
|
|
1495
|
-
): SafeParseResult<GetOnePrompt2File, SDKValidationError> {
|
|
1496
|
-
return safeParse(
|
|
1497
|
-
jsonString,
|
|
1498
|
-
(x) => GetOnePrompt2File$inboundSchema.parse(JSON.parse(x)),
|
|
1499
|
-
`Failed to parse 'GetOnePrompt2File' from JSON`,
|
|
1500
|
-
);
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
/** @internal */
|
|
1504
|
-
export const GetOnePrompt23$inboundSchema: z.ZodType<
|
|
1505
|
-
GetOnePrompt23,
|
|
1506
|
-
z.ZodTypeDef,
|
|
1507
|
-
unknown
|
|
1508
|
-
> = z.object({
|
|
1509
|
-
type: GetOnePrompt2PromptsResponseType$inboundSchema,
|
|
1510
|
-
file: z.lazy(() => GetOnePrompt2File$inboundSchema),
|
|
1511
|
-
});
|
|
1512
|
-
|
|
1513
|
-
/** @internal */
|
|
1514
|
-
export type GetOnePrompt23$Outbound = {
|
|
1515
|
-
type: string;
|
|
1516
|
-
file: GetOnePrompt2File$Outbound;
|
|
1517
|
-
};
|
|
1518
|
-
|
|
1519
|
-
/** @internal */
|
|
1520
|
-
export const GetOnePrompt23$outboundSchema: z.ZodType<
|
|
1521
|
-
GetOnePrompt23$Outbound,
|
|
1522
|
-
z.ZodTypeDef,
|
|
1523
|
-
GetOnePrompt23
|
|
1524
|
-
> = z.object({
|
|
1525
|
-
type: GetOnePrompt2PromptsResponseType$outboundSchema,
|
|
1526
|
-
file: z.lazy(() => GetOnePrompt2File$outboundSchema),
|
|
1527
|
-
});
|
|
1528
|
-
|
|
1529
|
-
/**
|
|
1530
|
-
* @internal
|
|
1531
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1532
|
-
*/
|
|
1533
|
-
export namespace GetOnePrompt23$ {
|
|
1534
|
-
/** @deprecated use `GetOnePrompt23$inboundSchema` instead. */
|
|
1535
|
-
export const inboundSchema = GetOnePrompt23$inboundSchema;
|
|
1536
|
-
/** @deprecated use `GetOnePrompt23$outboundSchema` instead. */
|
|
1537
|
-
export const outboundSchema = GetOnePrompt23$outboundSchema;
|
|
1538
|
-
/** @deprecated use `GetOnePrompt23$Outbound` instead. */
|
|
1539
|
-
export type Outbound = GetOnePrompt23$Outbound;
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
export function getOnePrompt23ToJSON(getOnePrompt23: GetOnePrompt23): string {
|
|
1543
|
-
return JSON.stringify(GetOnePrompt23$outboundSchema.parse(getOnePrompt23));
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
export function getOnePrompt23FromJSON(
|
|
1547
|
-
jsonString: string,
|
|
1548
|
-
): SafeParseResult<GetOnePrompt23, SDKValidationError> {
|
|
1549
|
-
return safeParse(
|
|
1550
|
-
jsonString,
|
|
1551
|
-
(x) => GetOnePrompt23$inboundSchema.parse(JSON.parse(x)),
|
|
1552
|
-
`Failed to parse 'GetOnePrompt23' from JSON`,
|
|
1553
|
-
);
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
/** @internal */
|
|
1557
|
-
export const GetOnePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1558
|
-
typeof GetOnePrompt2PromptsType
|
|
1559
|
-
> = z.nativeEnum(GetOnePrompt2PromptsType);
|
|
1560
|
-
|
|
1561
|
-
/** @internal */
|
|
1562
|
-
export const GetOnePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1563
|
-
typeof GetOnePrompt2PromptsType
|
|
1564
|
-
> = GetOnePrompt2PromptsType$inboundSchema;
|
|
1565
|
-
|
|
1566
|
-
/**
|
|
1567
|
-
* @internal
|
|
1568
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1569
|
-
*/
|
|
1570
|
-
export namespace GetOnePrompt2PromptsType$ {
|
|
1571
|
-
/** @deprecated use `GetOnePrompt2PromptsType$inboundSchema` instead. */
|
|
1572
|
-
export const inboundSchema = GetOnePrompt2PromptsType$inboundSchema;
|
|
1573
|
-
/** @deprecated use `GetOnePrompt2PromptsType$outboundSchema` instead. */
|
|
1574
|
-
export const outboundSchema = GetOnePrompt2PromptsType$outboundSchema;
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
/** @internal */
|
|
1578
|
-
export const GetOnePrompt2ImageUrl$inboundSchema: z.ZodType<
|
|
1579
|
-
GetOnePrompt2ImageUrl,
|
|
1580
|
-
z.ZodTypeDef,
|
|
1581
|
-
unknown
|
|
1582
|
-
> = z.object({
|
|
1583
|
-
id: z.string().optional(),
|
|
1584
|
-
url: z.string(),
|
|
1585
|
-
detail: z.string().optional(),
|
|
1586
|
-
});
|
|
1587
|
-
|
|
1588
|
-
/** @internal */
|
|
1589
|
-
export type GetOnePrompt2ImageUrl$Outbound = {
|
|
1590
|
-
id?: string | undefined;
|
|
1591
|
-
url: string;
|
|
1592
|
-
detail?: string | undefined;
|
|
1593
|
-
};
|
|
1594
|
-
|
|
1595
|
-
/** @internal */
|
|
1596
|
-
export const GetOnePrompt2ImageUrl$outboundSchema: z.ZodType<
|
|
1597
|
-
GetOnePrompt2ImageUrl$Outbound,
|
|
1598
|
-
z.ZodTypeDef,
|
|
1599
|
-
GetOnePrompt2ImageUrl
|
|
1600
|
-
> = z.object({
|
|
1601
|
-
id: z.string().optional(),
|
|
1602
|
-
url: z.string(),
|
|
1603
|
-
detail: z.string().optional(),
|
|
1604
|
-
});
|
|
1605
|
-
|
|
1606
|
-
/**
|
|
1607
|
-
* @internal
|
|
1608
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1609
|
-
*/
|
|
1610
|
-
export namespace GetOnePrompt2ImageUrl$ {
|
|
1611
|
-
/** @deprecated use `GetOnePrompt2ImageUrl$inboundSchema` instead. */
|
|
1612
|
-
export const inboundSchema = GetOnePrompt2ImageUrl$inboundSchema;
|
|
1613
|
-
/** @deprecated use `GetOnePrompt2ImageUrl$outboundSchema` instead. */
|
|
1614
|
-
export const outboundSchema = GetOnePrompt2ImageUrl$outboundSchema;
|
|
1615
|
-
/** @deprecated use `GetOnePrompt2ImageUrl$Outbound` instead. */
|
|
1616
|
-
export type Outbound = GetOnePrompt2ImageUrl$Outbound;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
export function getOnePrompt2ImageUrlToJSON(
|
|
1620
|
-
getOnePrompt2ImageUrl: GetOnePrompt2ImageUrl,
|
|
1621
|
-
): string {
|
|
1622
|
-
return JSON.stringify(
|
|
1623
|
-
GetOnePrompt2ImageUrl$outboundSchema.parse(getOnePrompt2ImageUrl),
|
|
1624
|
-
);
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
export function getOnePrompt2ImageUrlFromJSON(
|
|
1628
|
-
jsonString: string,
|
|
1629
|
-
): SafeParseResult<GetOnePrompt2ImageUrl, SDKValidationError> {
|
|
1630
|
-
return safeParse(
|
|
1631
|
-
jsonString,
|
|
1632
|
-
(x) => GetOnePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1633
|
-
`Failed to parse 'GetOnePrompt2ImageUrl' from JSON`,
|
|
1634
|
-
);
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
/** @internal */
|
|
1638
|
-
export const GetOnePrompt22$inboundSchema: z.ZodType<
|
|
1639
|
-
GetOnePrompt22,
|
|
1640
|
-
z.ZodTypeDef,
|
|
1641
|
-
unknown
|
|
1642
|
-
> = z.object({
|
|
1643
|
-
type: GetOnePrompt2PromptsType$inboundSchema,
|
|
1644
|
-
image_url: z.lazy(() => GetOnePrompt2ImageUrl$inboundSchema),
|
|
1645
|
-
}).transform((v) => {
|
|
1646
|
-
return remap$(v, {
|
|
1647
|
-
"image_url": "imageUrl",
|
|
1648
|
-
});
|
|
1649
|
-
});
|
|
1650
|
-
|
|
1651
|
-
/** @internal */
|
|
1652
|
-
export type GetOnePrompt22$Outbound = {
|
|
1653
|
-
type: string;
|
|
1654
|
-
image_url: GetOnePrompt2ImageUrl$Outbound;
|
|
1655
|
-
};
|
|
1656
|
-
|
|
1657
|
-
/** @internal */
|
|
1658
|
-
export const GetOnePrompt22$outboundSchema: z.ZodType<
|
|
1659
|
-
GetOnePrompt22$Outbound,
|
|
1660
|
-
z.ZodTypeDef,
|
|
1661
|
-
GetOnePrompt22
|
|
1662
|
-
> = z.object({
|
|
1663
|
-
type: GetOnePrompt2PromptsType$outboundSchema,
|
|
1664
|
-
imageUrl: z.lazy(() => GetOnePrompt2ImageUrl$outboundSchema),
|
|
1665
|
-
}).transform((v) => {
|
|
1666
|
-
return remap$(v, {
|
|
1667
|
-
imageUrl: "image_url",
|
|
1668
|
-
});
|
|
1669
|
-
});
|
|
1670
|
-
|
|
1671
|
-
/**
|
|
1672
|
-
* @internal
|
|
1673
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1674
|
-
*/
|
|
1675
|
-
export namespace GetOnePrompt22$ {
|
|
1676
|
-
/** @deprecated use `GetOnePrompt22$inboundSchema` instead. */
|
|
1677
|
-
export const inboundSchema = GetOnePrompt22$inboundSchema;
|
|
1678
|
-
/** @deprecated use `GetOnePrompt22$outboundSchema` instead. */
|
|
1679
|
-
export const outboundSchema = GetOnePrompt22$outboundSchema;
|
|
1680
|
-
/** @deprecated use `GetOnePrompt22$Outbound` instead. */
|
|
1681
|
-
export type Outbound = GetOnePrompt22$Outbound;
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
export function getOnePrompt22ToJSON(getOnePrompt22: GetOnePrompt22): string {
|
|
1685
|
-
return JSON.stringify(GetOnePrompt22$outboundSchema.parse(getOnePrompt22));
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
export function getOnePrompt22FromJSON(
|
|
1689
|
-
jsonString: string,
|
|
1690
|
-
): SafeParseResult<GetOnePrompt22, SDKValidationError> {
|
|
1691
|
-
return safeParse(
|
|
1692
|
-
jsonString,
|
|
1693
|
-
(x) => GetOnePrompt22$inboundSchema.parse(JSON.parse(x)),
|
|
1694
|
-
`Failed to parse 'GetOnePrompt22' from JSON`,
|
|
1695
|
-
);
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
/** @internal */
|
|
1699
|
-
export const GetOnePrompt2Type$inboundSchema: z.ZodNativeEnum<
|
|
1700
|
-
typeof GetOnePrompt2Type
|
|
1701
|
-
> = z.nativeEnum(GetOnePrompt2Type);
|
|
1702
|
-
|
|
1703
|
-
/** @internal */
|
|
1704
|
-
export const GetOnePrompt2Type$outboundSchema: z.ZodNativeEnum<
|
|
1705
|
-
typeof GetOnePrompt2Type
|
|
1706
|
-
> = GetOnePrompt2Type$inboundSchema;
|
|
1707
|
-
|
|
1708
|
-
/**
|
|
1709
|
-
* @internal
|
|
1710
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1711
|
-
*/
|
|
1712
|
-
export namespace GetOnePrompt2Type$ {
|
|
1713
|
-
/** @deprecated use `GetOnePrompt2Type$inboundSchema` instead. */
|
|
1714
|
-
export const inboundSchema = GetOnePrompt2Type$inboundSchema;
|
|
1715
|
-
/** @deprecated use `GetOnePrompt2Type$outboundSchema` instead. */
|
|
1716
|
-
export const outboundSchema = GetOnePrompt2Type$outboundSchema;
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
/** @internal */
|
|
1720
|
-
export const GetOnePrompt21$inboundSchema: z.ZodType<
|
|
1721
|
-
GetOnePrompt21,
|
|
1722
|
-
z.ZodTypeDef,
|
|
1723
|
-
unknown
|
|
1724
|
-
> = z.object({
|
|
1725
|
-
type: GetOnePrompt2Type$inboundSchema,
|
|
1726
|
-
text: z.string(),
|
|
1727
|
-
});
|
|
1728
|
-
|
|
1729
|
-
/** @internal */
|
|
1730
|
-
export type GetOnePrompt21$Outbound = {
|
|
1731
|
-
type: string;
|
|
1732
|
-
text: string;
|
|
1733
|
-
};
|
|
1734
|
-
|
|
1735
|
-
/** @internal */
|
|
1736
|
-
export const GetOnePrompt21$outboundSchema: z.ZodType<
|
|
1737
|
-
GetOnePrompt21$Outbound,
|
|
1738
|
-
z.ZodTypeDef,
|
|
1739
|
-
GetOnePrompt21
|
|
1740
|
-
> = z.object({
|
|
1741
|
-
type: GetOnePrompt2Type$outboundSchema,
|
|
1742
|
-
text: z.string(),
|
|
1743
|
-
});
|
|
1744
|
-
|
|
1745
|
-
/**
|
|
1746
|
-
* @internal
|
|
1747
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1748
|
-
*/
|
|
1749
|
-
export namespace GetOnePrompt21$ {
|
|
1750
|
-
/** @deprecated use `GetOnePrompt21$inboundSchema` instead. */
|
|
1751
|
-
export const inboundSchema = GetOnePrompt21$inboundSchema;
|
|
1752
|
-
/** @deprecated use `GetOnePrompt21$outboundSchema` instead. */
|
|
1753
|
-
export const outboundSchema = GetOnePrompt21$outboundSchema;
|
|
1754
|
-
/** @deprecated use `GetOnePrompt21$Outbound` instead. */
|
|
1755
|
-
export type Outbound = GetOnePrompt21$Outbound;
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
export function getOnePrompt21ToJSON(getOnePrompt21: GetOnePrompt21): string {
|
|
1759
|
-
return JSON.stringify(GetOnePrompt21$outboundSchema.parse(getOnePrompt21));
|
|
1760
|
-
}
|
|
1761
|
-
|
|
1762
|
-
export function getOnePrompt21FromJSON(
|
|
1763
|
-
jsonString: string,
|
|
1764
|
-
): SafeParseResult<GetOnePrompt21, SDKValidationError> {
|
|
1765
|
-
return safeParse(
|
|
1766
|
-
jsonString,
|
|
1767
|
-
(x) => GetOnePrompt21$inboundSchema.parse(JSON.parse(x)),
|
|
1768
|
-
`Failed to parse 'GetOnePrompt21' from JSON`,
|
|
1769
|
-
);
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
/** @internal */
|
|
1773
|
-
export const GetOnePromptContent2$inboundSchema: z.ZodType<
|
|
1774
|
-
GetOnePromptContent2,
|
|
1775
|
-
z.ZodTypeDef,
|
|
1776
|
-
unknown
|
|
1777
|
-
> = z.union([
|
|
1778
|
-
z.lazy(() => GetOnePrompt21$inboundSchema),
|
|
1779
|
-
z.lazy(() => GetOnePrompt22$inboundSchema),
|
|
1780
|
-
z.lazy(() => GetOnePrompt23$inboundSchema),
|
|
1781
|
-
]);
|
|
1782
|
-
|
|
1783
|
-
/** @internal */
|
|
1784
|
-
export type GetOnePromptContent2$Outbound =
|
|
1785
|
-
| GetOnePrompt21$Outbound
|
|
1786
|
-
| GetOnePrompt22$Outbound
|
|
1787
|
-
| GetOnePrompt23$Outbound;
|
|
1788
|
-
|
|
1789
|
-
/** @internal */
|
|
1790
|
-
export const GetOnePromptContent2$outboundSchema: z.ZodType<
|
|
1791
|
-
GetOnePromptContent2$Outbound,
|
|
1792
|
-
z.ZodTypeDef,
|
|
1793
|
-
GetOnePromptContent2
|
|
1794
|
-
> = z.union([
|
|
1795
|
-
z.lazy(() => GetOnePrompt21$outboundSchema),
|
|
1796
|
-
z.lazy(() => GetOnePrompt22$outboundSchema),
|
|
1797
|
-
z.lazy(() => GetOnePrompt23$outboundSchema),
|
|
1798
|
-
]);
|
|
1799
|
-
|
|
1800
|
-
/**
|
|
1801
|
-
* @internal
|
|
1802
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1803
|
-
*/
|
|
1804
|
-
export namespace GetOnePromptContent2$ {
|
|
1805
|
-
/** @deprecated use `GetOnePromptContent2$inboundSchema` instead. */
|
|
1806
|
-
export const inboundSchema = GetOnePromptContent2$inboundSchema;
|
|
1807
|
-
/** @deprecated use `GetOnePromptContent2$outboundSchema` instead. */
|
|
1808
|
-
export const outboundSchema = GetOnePromptContent2$outboundSchema;
|
|
1809
|
-
/** @deprecated use `GetOnePromptContent2$Outbound` instead. */
|
|
1810
|
-
export type Outbound = GetOnePromptContent2$Outbound;
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
export function getOnePromptContent2ToJSON(
|
|
1814
|
-
getOnePromptContent2: GetOnePromptContent2,
|
|
1815
|
-
): string {
|
|
1816
|
-
return JSON.stringify(
|
|
1817
|
-
GetOnePromptContent2$outboundSchema.parse(getOnePromptContent2),
|
|
1818
|
-
);
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
export function getOnePromptContent2FromJSON(
|
|
1822
|
-
jsonString: string,
|
|
1823
|
-
): SafeParseResult<GetOnePromptContent2, SDKValidationError> {
|
|
1824
|
-
return safeParse(
|
|
1825
|
-
jsonString,
|
|
1826
|
-
(x) => GetOnePromptContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1827
|
-
`Failed to parse 'GetOnePromptContent2' from JSON`,
|
|
1828
|
-
);
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
/** @internal */
|
|
1832
|
-
export const GetOnePromptContent$inboundSchema: z.ZodType<
|
|
1833
|
-
GetOnePromptContent,
|
|
1834
|
-
z.ZodTypeDef,
|
|
1835
|
-
unknown
|
|
1836
|
-
> = z.union([
|
|
1837
|
-
z.string(),
|
|
1838
|
-
z.array(z.union([
|
|
1839
|
-
z.lazy(() => GetOnePrompt21$inboundSchema),
|
|
1840
|
-
z.lazy(() => GetOnePrompt22$inboundSchema),
|
|
1841
|
-
z.lazy(() => GetOnePrompt23$inboundSchema),
|
|
1842
|
-
])),
|
|
1843
|
-
]);
|
|
1844
|
-
|
|
1845
|
-
/** @internal */
|
|
1846
|
-
export type GetOnePromptContent$Outbound =
|
|
1847
|
-
| string
|
|
1848
|
-
| Array<
|
|
1849
|
-
GetOnePrompt21$Outbound | GetOnePrompt22$Outbound | GetOnePrompt23$Outbound
|
|
1850
|
-
>;
|
|
1851
|
-
|
|
1852
|
-
/** @internal */
|
|
1853
|
-
export const GetOnePromptContent$outboundSchema: z.ZodType<
|
|
1854
|
-
GetOnePromptContent$Outbound,
|
|
1855
|
-
z.ZodTypeDef,
|
|
1856
|
-
GetOnePromptContent
|
|
1857
|
-
> = z.union([
|
|
1858
|
-
z.string(),
|
|
1859
|
-
z.array(z.union([
|
|
1860
|
-
z.lazy(() => GetOnePrompt21$outboundSchema),
|
|
1861
|
-
z.lazy(() => GetOnePrompt22$outboundSchema),
|
|
1862
|
-
z.lazy(() => GetOnePrompt23$outboundSchema),
|
|
1863
|
-
])),
|
|
1864
|
-
]);
|
|
1865
|
-
|
|
1866
|
-
/**
|
|
1867
|
-
* @internal
|
|
1868
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1869
|
-
*/
|
|
1870
|
-
export namespace GetOnePromptContent$ {
|
|
1871
|
-
/** @deprecated use `GetOnePromptContent$inboundSchema` instead. */
|
|
1872
|
-
export const inboundSchema = GetOnePromptContent$inboundSchema;
|
|
1873
|
-
/** @deprecated use `GetOnePromptContent$outboundSchema` instead. */
|
|
1874
|
-
export const outboundSchema = GetOnePromptContent$outboundSchema;
|
|
1875
|
-
/** @deprecated use `GetOnePromptContent$Outbound` instead. */
|
|
1876
|
-
export type Outbound = GetOnePromptContent$Outbound;
|
|
1877
|
-
}
|
|
1878
|
-
|
|
1879
|
-
export function getOnePromptContentToJSON(
|
|
1880
|
-
getOnePromptContent: GetOnePromptContent,
|
|
1881
|
-
): string {
|
|
1882
|
-
return JSON.stringify(
|
|
1883
|
-
GetOnePromptContent$outboundSchema.parse(getOnePromptContent),
|
|
1884
|
-
);
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
|
-
export function getOnePromptContentFromJSON(
|
|
1888
|
-
jsonString: string,
|
|
1889
|
-
): SafeParseResult<GetOnePromptContent, SDKValidationError> {
|
|
1890
|
-
return safeParse(
|
|
1891
|
-
jsonString,
|
|
1892
|
-
(x) => GetOnePromptContent$inboundSchema.parse(JSON.parse(x)),
|
|
1893
|
-
`Failed to parse 'GetOnePromptContent' from JSON`,
|
|
1894
|
-
);
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
/** @internal */
|
|
1898
|
-
export const GetOnePromptPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1899
|
-
typeof GetOnePromptPromptsType
|
|
1900
|
-
> = z.nativeEnum(GetOnePromptPromptsType);
|
|
1901
|
-
|
|
1902
|
-
/** @internal */
|
|
1903
|
-
export const GetOnePromptPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1904
|
-
typeof GetOnePromptPromptsType
|
|
1905
|
-
> = GetOnePromptPromptsType$inboundSchema;
|
|
1906
|
-
|
|
1907
|
-
/**
|
|
1908
|
-
* @internal
|
|
1909
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1910
|
-
*/
|
|
1911
|
-
export namespace GetOnePromptPromptsType$ {
|
|
1912
|
-
/** @deprecated use `GetOnePromptPromptsType$inboundSchema` instead. */
|
|
1913
|
-
export const inboundSchema = GetOnePromptPromptsType$inboundSchema;
|
|
1914
|
-
/** @deprecated use `GetOnePromptPromptsType$outboundSchema` instead. */
|
|
1915
|
-
export const outboundSchema = GetOnePromptPromptsType$outboundSchema;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
/** @internal */
|
|
1919
|
-
export const GetOnePromptFunction$inboundSchema: z.ZodType<
|
|
1920
|
-
GetOnePromptFunction,
|
|
1921
|
-
z.ZodTypeDef,
|
|
1922
|
-
unknown
|
|
1923
|
-
> = z.object({
|
|
1924
|
-
name: z.string(),
|
|
1925
|
-
arguments: z.string(),
|
|
1926
|
-
});
|
|
1927
|
-
|
|
1928
|
-
/** @internal */
|
|
1929
|
-
export type GetOnePromptFunction$Outbound = {
|
|
1930
|
-
name: string;
|
|
1931
|
-
arguments: string;
|
|
1932
|
-
};
|
|
1933
|
-
|
|
1934
|
-
/** @internal */
|
|
1935
|
-
export const GetOnePromptFunction$outboundSchema: z.ZodType<
|
|
1936
|
-
GetOnePromptFunction$Outbound,
|
|
1937
|
-
z.ZodTypeDef,
|
|
1938
|
-
GetOnePromptFunction
|
|
1939
|
-
> = z.object({
|
|
1940
|
-
name: z.string(),
|
|
1941
|
-
arguments: z.string(),
|
|
1942
|
-
});
|
|
1943
|
-
|
|
1944
|
-
/**
|
|
1945
|
-
* @internal
|
|
1946
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1947
|
-
*/
|
|
1948
|
-
export namespace GetOnePromptFunction$ {
|
|
1949
|
-
/** @deprecated use `GetOnePromptFunction$inboundSchema` instead. */
|
|
1950
|
-
export const inboundSchema = GetOnePromptFunction$inboundSchema;
|
|
1951
|
-
/** @deprecated use `GetOnePromptFunction$outboundSchema` instead. */
|
|
1952
|
-
export const outboundSchema = GetOnePromptFunction$outboundSchema;
|
|
1953
|
-
/** @deprecated use `GetOnePromptFunction$Outbound` instead. */
|
|
1954
|
-
export type Outbound = GetOnePromptFunction$Outbound;
|
|
1955
|
-
}
|
|
1956
|
-
|
|
1957
|
-
export function getOnePromptFunctionToJSON(
|
|
1958
|
-
getOnePromptFunction: GetOnePromptFunction,
|
|
1959
|
-
): string {
|
|
1960
|
-
return JSON.stringify(
|
|
1961
|
-
GetOnePromptFunction$outboundSchema.parse(getOnePromptFunction),
|
|
1962
|
-
);
|
|
1963
|
-
}
|
|
1964
|
-
|
|
1965
|
-
export function getOnePromptFunctionFromJSON(
|
|
1966
|
-
jsonString: string,
|
|
1967
|
-
): SafeParseResult<GetOnePromptFunction, SDKValidationError> {
|
|
1968
|
-
return safeParse(
|
|
1969
|
-
jsonString,
|
|
1970
|
-
(x) => GetOnePromptFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1971
|
-
`Failed to parse 'GetOnePromptFunction' from JSON`,
|
|
1972
|
-
);
|
|
1973
|
-
}
|
|
1974
|
-
|
|
1975
|
-
/** @internal */
|
|
1976
|
-
export const GetOnePromptToolCalls$inboundSchema: z.ZodType<
|
|
1977
|
-
GetOnePromptToolCalls,
|
|
1978
|
-
z.ZodTypeDef,
|
|
1979
|
-
unknown
|
|
1980
|
-
> = z.object({
|
|
1981
|
-
id: z.string().optional(),
|
|
1982
|
-
index: z.number().optional(),
|
|
1983
|
-
type: GetOnePromptPromptsType$inboundSchema,
|
|
1984
|
-
function: z.lazy(() => GetOnePromptFunction$inboundSchema),
|
|
1985
|
-
});
|
|
1986
|
-
|
|
1987
|
-
/** @internal */
|
|
1988
|
-
export type GetOnePromptToolCalls$Outbound = {
|
|
1989
|
-
id?: string | undefined;
|
|
1990
|
-
index?: number | undefined;
|
|
1991
|
-
type: string;
|
|
1992
|
-
function: GetOnePromptFunction$Outbound;
|
|
1993
|
-
};
|
|
1994
|
-
|
|
1995
|
-
/** @internal */
|
|
1996
|
-
export const GetOnePromptToolCalls$outboundSchema: z.ZodType<
|
|
1997
|
-
GetOnePromptToolCalls$Outbound,
|
|
1998
|
-
z.ZodTypeDef,
|
|
1999
|
-
GetOnePromptToolCalls
|
|
2000
|
-
> = z.object({
|
|
2001
|
-
id: z.string().optional(),
|
|
2002
|
-
index: z.number().optional(),
|
|
2003
|
-
type: GetOnePromptPromptsType$outboundSchema,
|
|
2004
|
-
function: z.lazy(() => GetOnePromptFunction$outboundSchema),
|
|
2005
|
-
});
|
|
2006
|
-
|
|
2007
|
-
/**
|
|
2008
|
-
* @internal
|
|
2009
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2010
|
-
*/
|
|
2011
|
-
export namespace GetOnePromptToolCalls$ {
|
|
2012
|
-
/** @deprecated use `GetOnePromptToolCalls$inboundSchema` instead. */
|
|
2013
|
-
export const inboundSchema = GetOnePromptToolCalls$inboundSchema;
|
|
2014
|
-
/** @deprecated use `GetOnePromptToolCalls$outboundSchema` instead. */
|
|
2015
|
-
export const outboundSchema = GetOnePromptToolCalls$outboundSchema;
|
|
2016
|
-
/** @deprecated use `GetOnePromptToolCalls$Outbound` instead. */
|
|
2017
|
-
export type Outbound = GetOnePromptToolCalls$Outbound;
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
export function getOnePromptToolCallsToJSON(
|
|
2021
|
-
getOnePromptToolCalls: GetOnePromptToolCalls,
|
|
2022
|
-
): string {
|
|
2023
|
-
return JSON.stringify(
|
|
2024
|
-
GetOnePromptToolCalls$outboundSchema.parse(getOnePromptToolCalls),
|
|
2025
|
-
);
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
|
-
export function getOnePromptToolCallsFromJSON(
|
|
2029
|
-
jsonString: string,
|
|
2030
|
-
): SafeParseResult<GetOnePromptToolCalls, SDKValidationError> {
|
|
2031
|
-
return safeParse(
|
|
2032
|
-
jsonString,
|
|
2033
|
-
(x) => GetOnePromptToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
2034
|
-
`Failed to parse 'GetOnePromptToolCalls' from JSON`,
|
|
2035
|
-
);
|
|
2036
|
-
}
|
|
2037
|
-
|
|
2038
|
-
/** @internal */
|
|
2039
|
-
export const GetOnePromptMessages$inboundSchema: z.ZodType<
|
|
2040
|
-
GetOnePromptMessages,
|
|
2041
|
-
z.ZodTypeDef,
|
|
2042
|
-
unknown
|
|
2043
|
-
> = z.object({
|
|
2044
|
-
role: GetOnePromptRole$inboundSchema,
|
|
2045
|
-
content: z.union([
|
|
2046
|
-
z.string(),
|
|
2047
|
-
z.array(z.union([
|
|
2048
|
-
z.lazy(() => GetOnePrompt21$inboundSchema),
|
|
2049
|
-
z.lazy(() => GetOnePrompt22$inboundSchema),
|
|
2050
|
-
z.lazy(() => GetOnePrompt23$inboundSchema),
|
|
2051
|
-
])),
|
|
2052
|
-
]),
|
|
2053
|
-
tool_calls: z.array(z.lazy(() => GetOnePromptToolCalls$inboundSchema))
|
|
2054
|
-
.optional(),
|
|
2055
|
-
tool_call_id: z.string().optional(),
|
|
2056
|
-
}).transform((v) => {
|
|
2057
|
-
return remap$(v, {
|
|
2058
|
-
"tool_calls": "toolCalls",
|
|
2059
|
-
"tool_call_id": "toolCallId",
|
|
2060
|
-
});
|
|
2061
|
-
});
|
|
2062
|
-
|
|
2063
|
-
/** @internal */
|
|
2064
|
-
export type GetOnePromptMessages$Outbound = {
|
|
2065
|
-
role: string;
|
|
2066
|
-
content:
|
|
2067
|
-
| string
|
|
2068
|
-
| Array<
|
|
2069
|
-
| GetOnePrompt21$Outbound
|
|
2070
|
-
| GetOnePrompt22$Outbound
|
|
2071
|
-
| GetOnePrompt23$Outbound
|
|
2072
|
-
>;
|
|
2073
|
-
tool_calls?: Array<GetOnePromptToolCalls$Outbound> | undefined;
|
|
2074
|
-
tool_call_id?: string | undefined;
|
|
2075
|
-
};
|
|
2076
|
-
|
|
2077
|
-
/** @internal */
|
|
2078
|
-
export const GetOnePromptMessages$outboundSchema: z.ZodType<
|
|
2079
|
-
GetOnePromptMessages$Outbound,
|
|
2080
|
-
z.ZodTypeDef,
|
|
2081
|
-
GetOnePromptMessages
|
|
2082
|
-
> = z.object({
|
|
2083
|
-
role: GetOnePromptRole$outboundSchema,
|
|
2084
|
-
content: z.union([
|
|
2085
|
-
z.string(),
|
|
2086
|
-
z.array(z.union([
|
|
2087
|
-
z.lazy(() => GetOnePrompt21$outboundSchema),
|
|
2088
|
-
z.lazy(() => GetOnePrompt22$outboundSchema),
|
|
2089
|
-
z.lazy(() => GetOnePrompt23$outboundSchema),
|
|
2090
|
-
])),
|
|
2091
|
-
]),
|
|
2092
|
-
toolCalls: z.array(z.lazy(() => GetOnePromptToolCalls$outboundSchema))
|
|
2093
|
-
.optional(),
|
|
2094
|
-
toolCallId: z.string().optional(),
|
|
2095
|
-
}).transform((v) => {
|
|
2096
|
-
return remap$(v, {
|
|
2097
|
-
toolCalls: "tool_calls",
|
|
2098
|
-
toolCallId: "tool_call_id",
|
|
2099
|
-
});
|
|
2100
|
-
});
|
|
2101
|
-
|
|
2102
|
-
/**
|
|
2103
|
-
* @internal
|
|
2104
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2105
|
-
*/
|
|
2106
|
-
export namespace GetOnePromptMessages$ {
|
|
2107
|
-
/** @deprecated use `GetOnePromptMessages$inboundSchema` instead. */
|
|
2108
|
-
export const inboundSchema = GetOnePromptMessages$inboundSchema;
|
|
2109
|
-
/** @deprecated use `GetOnePromptMessages$outboundSchema` instead. */
|
|
2110
|
-
export const outboundSchema = GetOnePromptMessages$outboundSchema;
|
|
2111
|
-
/** @deprecated use `GetOnePromptMessages$Outbound` instead. */
|
|
2112
|
-
export type Outbound = GetOnePromptMessages$Outbound;
|
|
2113
|
-
}
|
|
2114
|
-
|
|
2115
|
-
export function getOnePromptMessagesToJSON(
|
|
2116
|
-
getOnePromptMessages: GetOnePromptMessages,
|
|
2117
|
-
): string {
|
|
2118
|
-
return JSON.stringify(
|
|
2119
|
-
GetOnePromptMessages$outboundSchema.parse(getOnePromptMessages),
|
|
2120
|
-
);
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
export function getOnePromptMessagesFromJSON(
|
|
2124
|
-
jsonString: string,
|
|
2125
|
-
): SafeParseResult<GetOnePromptMessages, SDKValidationError> {
|
|
2126
|
-
return safeParse(
|
|
2127
|
-
jsonString,
|
|
2128
|
-
(x) => GetOnePromptMessages$inboundSchema.parse(JSON.parse(x)),
|
|
2129
|
-
`Failed to parse 'GetOnePromptMessages' from JSON`,
|
|
2130
|
-
);
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
/** @internal */
|
|
2134
|
-
export const GetOnePromptPromptConfig$inboundSchema: z.ZodType<
|
|
2135
|
-
GetOnePromptPromptConfig,
|
|
2136
|
-
z.ZodTypeDef,
|
|
2137
|
-
unknown
|
|
2138
|
-
> = z.object({
|
|
2139
|
-
stream: z.boolean().optional(),
|
|
2140
|
-
model: z.string().optional(),
|
|
2141
|
-
model_db_id: z.nullable(z.string()).optional(),
|
|
2142
|
-
model_type: z.nullable(GetOnePromptModelType$inboundSchema).optional(),
|
|
2143
|
-
model_parameters: z.lazy(() => GetOnePromptModelParameters$inboundSchema)
|
|
2144
|
-
.optional(),
|
|
2145
|
-
provider: GetOnePromptProvider$inboundSchema.optional(),
|
|
2146
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
2147
|
-
version: z.string().optional(),
|
|
2148
|
-
messages: z.array(z.lazy(() => GetOnePromptMessages$inboundSchema)),
|
|
2149
|
-
}).transform((v) => {
|
|
2150
|
-
return remap$(v, {
|
|
2151
|
-
"model_db_id": "modelDbId",
|
|
2152
|
-
"model_type": "modelType",
|
|
2153
|
-
"model_parameters": "modelParameters",
|
|
2154
|
-
"integration_id": "integrationId",
|
|
2155
|
-
});
|
|
2156
|
-
});
|
|
2157
|
-
|
|
2158
|
-
/** @internal */
|
|
2159
|
-
export type GetOnePromptPromptConfig$Outbound = {
|
|
2160
|
-
stream?: boolean | undefined;
|
|
2161
|
-
model?: string | undefined;
|
|
2162
|
-
model_db_id?: string | null | undefined;
|
|
2163
|
-
model_type?: string | null | undefined;
|
|
2164
|
-
model_parameters?: GetOnePromptModelParameters$Outbound | undefined;
|
|
2165
|
-
provider?: string | undefined;
|
|
2166
|
-
integration_id?: string | null | undefined;
|
|
2167
|
-
version?: string | undefined;
|
|
2168
|
-
messages: Array<GetOnePromptMessages$Outbound>;
|
|
2169
|
-
};
|
|
2170
|
-
|
|
2171
|
-
/** @internal */
|
|
2172
|
-
export const GetOnePromptPromptConfig$outboundSchema: z.ZodType<
|
|
2173
|
-
GetOnePromptPromptConfig$Outbound,
|
|
2174
|
-
z.ZodTypeDef,
|
|
2175
|
-
GetOnePromptPromptConfig
|
|
2176
|
-
> = z.object({
|
|
2177
|
-
stream: z.boolean().optional(),
|
|
2178
|
-
model: z.string().optional(),
|
|
2179
|
-
modelDbId: z.nullable(z.string()).optional(),
|
|
2180
|
-
modelType: z.nullable(GetOnePromptModelType$outboundSchema).optional(),
|
|
2181
|
-
modelParameters: z.lazy(() => GetOnePromptModelParameters$outboundSchema)
|
|
2182
|
-
.optional(),
|
|
2183
|
-
provider: GetOnePromptProvider$outboundSchema.optional(),
|
|
2184
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
2185
|
-
version: z.string().optional(),
|
|
2186
|
-
messages: z.array(z.lazy(() => GetOnePromptMessages$outboundSchema)),
|
|
2187
|
-
}).transform((v) => {
|
|
2188
|
-
return remap$(v, {
|
|
2189
|
-
modelDbId: "model_db_id",
|
|
2190
|
-
modelType: "model_type",
|
|
2191
|
-
modelParameters: "model_parameters",
|
|
2192
|
-
integrationId: "integration_id",
|
|
2193
|
-
});
|
|
2194
|
-
});
|
|
2195
|
-
|
|
2196
|
-
/**
|
|
2197
|
-
* @internal
|
|
2198
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2199
|
-
*/
|
|
2200
|
-
export namespace GetOnePromptPromptConfig$ {
|
|
2201
|
-
/** @deprecated use `GetOnePromptPromptConfig$inboundSchema` instead. */
|
|
2202
|
-
export const inboundSchema = GetOnePromptPromptConfig$inboundSchema;
|
|
2203
|
-
/** @deprecated use `GetOnePromptPromptConfig$outboundSchema` instead. */
|
|
2204
|
-
export const outboundSchema = GetOnePromptPromptConfig$outboundSchema;
|
|
2205
|
-
/** @deprecated use `GetOnePromptPromptConfig$Outbound` instead. */
|
|
2206
|
-
export type Outbound = GetOnePromptPromptConfig$Outbound;
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
|
-
export function getOnePromptPromptConfigToJSON(
|
|
2210
|
-
getOnePromptPromptConfig: GetOnePromptPromptConfig,
|
|
2211
|
-
): string {
|
|
2212
|
-
return JSON.stringify(
|
|
2213
|
-
GetOnePromptPromptConfig$outboundSchema.parse(getOnePromptPromptConfig),
|
|
2214
|
-
);
|
|
2215
|
-
}
|
|
2216
|
-
|
|
2217
|
-
export function getOnePromptPromptConfigFromJSON(
|
|
2218
|
-
jsonString: string,
|
|
2219
|
-
): SafeParseResult<GetOnePromptPromptConfig, SDKValidationError> {
|
|
2220
|
-
return safeParse(
|
|
2221
|
-
jsonString,
|
|
2222
|
-
(x) => GetOnePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
2223
|
-
`Failed to parse 'GetOnePromptPromptConfig' from JSON`,
|
|
2224
|
-
);
|
|
2225
|
-
}
|
|
2226
|
-
|
|
2227
|
-
/** @internal */
|
|
2228
|
-
export const GetOnePromptUseCases$inboundSchema: z.ZodNativeEnum<
|
|
2229
|
-
typeof GetOnePromptUseCases
|
|
2230
|
-
> = z.nativeEnum(GetOnePromptUseCases);
|
|
2231
|
-
|
|
2232
|
-
/** @internal */
|
|
2233
|
-
export const GetOnePromptUseCases$outboundSchema: z.ZodNativeEnum<
|
|
2234
|
-
typeof GetOnePromptUseCases
|
|
2235
|
-
> = GetOnePromptUseCases$inboundSchema;
|
|
2236
|
-
|
|
2237
|
-
/**
|
|
2238
|
-
* @internal
|
|
2239
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2240
|
-
*/
|
|
2241
|
-
export namespace GetOnePromptUseCases$ {
|
|
2242
|
-
/** @deprecated use `GetOnePromptUseCases$inboundSchema` instead. */
|
|
2243
|
-
export const inboundSchema = GetOnePromptUseCases$inboundSchema;
|
|
2244
|
-
/** @deprecated use `GetOnePromptUseCases$outboundSchema` instead. */
|
|
2245
|
-
export const outboundSchema = GetOnePromptUseCases$outboundSchema;
|
|
2246
|
-
}
|
|
2247
|
-
|
|
2248
|
-
/** @internal */
|
|
2249
|
-
export const GetOnePromptLanguage$inboundSchema: z.ZodNativeEnum<
|
|
2250
|
-
typeof GetOnePromptLanguage
|
|
2251
|
-
> = z.nativeEnum(GetOnePromptLanguage);
|
|
2252
|
-
|
|
2253
|
-
/** @internal */
|
|
2254
|
-
export const GetOnePromptLanguage$outboundSchema: z.ZodNativeEnum<
|
|
2255
|
-
typeof GetOnePromptLanguage
|
|
2256
|
-
> = GetOnePromptLanguage$inboundSchema;
|
|
2257
|
-
|
|
2258
|
-
/**
|
|
2259
|
-
* @internal
|
|
2260
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2261
|
-
*/
|
|
2262
|
-
export namespace GetOnePromptLanguage$ {
|
|
2263
|
-
/** @deprecated use `GetOnePromptLanguage$inboundSchema` instead. */
|
|
2264
|
-
export const inboundSchema = GetOnePromptLanguage$inboundSchema;
|
|
2265
|
-
/** @deprecated use `GetOnePromptLanguage$outboundSchema` instead. */
|
|
2266
|
-
export const outboundSchema = GetOnePromptLanguage$outboundSchema;
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
/** @internal */
|
|
2270
|
-
export const GetOnePromptMetadata$inboundSchema: z.ZodType<
|
|
2271
|
-
GetOnePromptMetadata,
|
|
2272
|
-
z.ZodTypeDef,
|
|
2273
|
-
unknown
|
|
2274
|
-
> = z.object({
|
|
2275
|
-
use_cases: z.array(GetOnePromptUseCases$inboundSchema).optional(),
|
|
2276
|
-
language: z.nullable(GetOnePromptLanguage$inboundSchema).optional(),
|
|
2277
|
-
}).transform((v) => {
|
|
2278
|
-
return remap$(v, {
|
|
2279
|
-
"use_cases": "useCases",
|
|
2280
|
-
});
|
|
2281
|
-
});
|
|
2282
|
-
|
|
2283
|
-
/** @internal */
|
|
2284
|
-
export type GetOnePromptMetadata$Outbound = {
|
|
2285
|
-
use_cases?: Array<string> | undefined;
|
|
2286
|
-
language?: string | null | undefined;
|
|
2287
|
-
};
|
|
2288
|
-
|
|
2289
|
-
/** @internal */
|
|
2290
|
-
export const GetOnePromptMetadata$outboundSchema: z.ZodType<
|
|
2291
|
-
GetOnePromptMetadata$Outbound,
|
|
2292
|
-
z.ZodTypeDef,
|
|
2293
|
-
GetOnePromptMetadata
|
|
2294
|
-
> = z.object({
|
|
2295
|
-
useCases: z.array(GetOnePromptUseCases$outboundSchema).optional(),
|
|
2296
|
-
language: z.nullable(GetOnePromptLanguage$outboundSchema).optional(),
|
|
2297
|
-
}).transform((v) => {
|
|
2298
|
-
return remap$(v, {
|
|
2299
|
-
useCases: "use_cases",
|
|
2300
|
-
});
|
|
2301
|
-
});
|
|
2302
|
-
|
|
2303
|
-
/**
|
|
2304
|
-
* @internal
|
|
2305
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2306
|
-
*/
|
|
2307
|
-
export namespace GetOnePromptMetadata$ {
|
|
2308
|
-
/** @deprecated use `GetOnePromptMetadata$inboundSchema` instead. */
|
|
2309
|
-
export const inboundSchema = GetOnePromptMetadata$inboundSchema;
|
|
2310
|
-
/** @deprecated use `GetOnePromptMetadata$outboundSchema` instead. */
|
|
2311
|
-
export const outboundSchema = GetOnePromptMetadata$outboundSchema;
|
|
2312
|
-
/** @deprecated use `GetOnePromptMetadata$Outbound` instead. */
|
|
2313
|
-
export type Outbound = GetOnePromptMetadata$Outbound;
|
|
2314
|
-
}
|
|
2315
|
-
|
|
2316
|
-
export function getOnePromptMetadataToJSON(
|
|
2317
|
-
getOnePromptMetadata: GetOnePromptMetadata,
|
|
2318
|
-
): string {
|
|
2319
|
-
return JSON.stringify(
|
|
2320
|
-
GetOnePromptMetadata$outboundSchema.parse(getOnePromptMetadata),
|
|
2321
|
-
);
|
|
2322
|
-
}
|
|
2323
|
-
|
|
2324
|
-
export function getOnePromptMetadataFromJSON(
|
|
2325
|
-
jsonString: string,
|
|
2326
|
-
): SafeParseResult<GetOnePromptMetadata, SDKValidationError> {
|
|
2327
|
-
return safeParse(
|
|
2328
|
-
jsonString,
|
|
2329
|
-
(x) => GetOnePromptMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
2330
|
-
`Failed to parse 'GetOnePromptMetadata' from JSON`,
|
|
2331
|
-
);
|
|
2332
|
-
}
|
|
2333
|
-
|
|
2334
|
-
/** @internal */
|
|
2335
|
-
export const GetOnePromptPrompt$inboundSchema: z.ZodType<
|
|
2336
|
-
GetOnePromptPrompt,
|
|
2337
|
-
z.ZodTypeDef,
|
|
2338
|
-
unknown
|
|
2339
|
-
> = z.object({
|
|
2340
|
-
_id: z.string(),
|
|
2341
|
-
type: GetOnePromptType$inboundSchema,
|
|
2342
|
-
owner: z.string(),
|
|
2343
|
-
domain_id: z.string(),
|
|
2344
|
-
created: z.string(),
|
|
2345
|
-
updated: z.string(),
|
|
2346
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
2347
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
2348
|
-
display_name: z.string(),
|
|
2349
|
-
description: z.nullable(z.string()).optional(),
|
|
2350
|
-
prompt_config: z.lazy(() => GetOnePromptPromptConfig$inboundSchema),
|
|
2351
|
-
metadata: z.lazy(() => GetOnePromptMetadata$inboundSchema).optional(),
|
|
2352
|
-
}).transform((v) => {
|
|
2353
|
-
return remap$(v, {
|
|
2354
|
-
"_id": "id",
|
|
2355
|
-
"domain_id": "domainId",
|
|
2356
|
-
"created_by_id": "createdById",
|
|
2357
|
-
"updated_by_id": "updatedById",
|
|
2358
|
-
"display_name": "displayName",
|
|
2359
|
-
"prompt_config": "promptConfig",
|
|
2360
|
-
});
|
|
2361
|
-
});
|
|
2362
|
-
|
|
2363
|
-
/** @internal */
|
|
2364
|
-
export type GetOnePromptPrompt$Outbound = {
|
|
2365
|
-
_id: string;
|
|
2366
|
-
type: string;
|
|
2367
|
-
owner: string;
|
|
2368
|
-
domain_id: string;
|
|
2369
|
-
created: string;
|
|
2370
|
-
updated: string;
|
|
2371
|
-
created_by_id?: string | null | undefined;
|
|
2372
|
-
updated_by_id?: string | null | undefined;
|
|
2373
|
-
display_name: string;
|
|
2374
|
-
description?: string | null | undefined;
|
|
2375
|
-
prompt_config: GetOnePromptPromptConfig$Outbound;
|
|
2376
|
-
metadata?: GetOnePromptMetadata$Outbound | undefined;
|
|
2377
|
-
};
|
|
2378
|
-
|
|
2379
|
-
/** @internal */
|
|
2380
|
-
export const GetOnePromptPrompt$outboundSchema: z.ZodType<
|
|
2381
|
-
GetOnePromptPrompt$Outbound,
|
|
2382
|
-
z.ZodTypeDef,
|
|
2383
|
-
GetOnePromptPrompt
|
|
2384
|
-
> = z.object({
|
|
2385
|
-
id: z.string(),
|
|
2386
|
-
type: GetOnePromptType$outboundSchema,
|
|
2387
|
-
owner: z.string(),
|
|
2388
|
-
domainId: z.string(),
|
|
2389
|
-
created: z.string(),
|
|
2390
|
-
updated: z.string(),
|
|
2391
|
-
createdById: z.nullable(z.string()).optional(),
|
|
2392
|
-
updatedById: z.nullable(z.string()).optional(),
|
|
2393
|
-
displayName: z.string(),
|
|
2394
|
-
description: z.nullable(z.string()).optional(),
|
|
2395
|
-
promptConfig: z.lazy(() => GetOnePromptPromptConfig$outboundSchema),
|
|
2396
|
-
metadata: z.lazy(() => GetOnePromptMetadata$outboundSchema).optional(),
|
|
2397
|
-
}).transform((v) => {
|
|
2398
|
-
return remap$(v, {
|
|
2399
|
-
id: "_id",
|
|
2400
|
-
domainId: "domain_id",
|
|
2401
|
-
createdById: "created_by_id",
|
|
2402
|
-
updatedById: "updated_by_id",
|
|
2403
|
-
displayName: "display_name",
|
|
2404
|
-
promptConfig: "prompt_config",
|
|
2405
|
-
});
|
|
2406
|
-
});
|
|
2407
|
-
|
|
2408
|
-
/**
|
|
2409
|
-
* @internal
|
|
2410
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2411
|
-
*/
|
|
2412
|
-
export namespace GetOnePromptPrompt$ {
|
|
2413
|
-
/** @deprecated use `GetOnePromptPrompt$inboundSchema` instead. */
|
|
2414
|
-
export const inboundSchema = GetOnePromptPrompt$inboundSchema;
|
|
2415
|
-
/** @deprecated use `GetOnePromptPrompt$outboundSchema` instead. */
|
|
2416
|
-
export const outboundSchema = GetOnePromptPrompt$outboundSchema;
|
|
2417
|
-
/** @deprecated use `GetOnePromptPrompt$Outbound` instead. */
|
|
2418
|
-
export type Outbound = GetOnePromptPrompt$Outbound;
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
export function getOnePromptPromptToJSON(
|
|
2422
|
-
getOnePromptPrompt: GetOnePromptPrompt,
|
|
2423
|
-
): string {
|
|
2424
|
-
return JSON.stringify(
|
|
2425
|
-
GetOnePromptPrompt$outboundSchema.parse(getOnePromptPrompt),
|
|
2426
|
-
);
|
|
2427
|
-
}
|
|
2428
|
-
|
|
2429
|
-
export function getOnePromptPromptFromJSON(
|
|
2430
|
-
jsonString: string,
|
|
2431
|
-
): SafeParseResult<GetOnePromptPrompt, SDKValidationError> {
|
|
2432
|
-
return safeParse(
|
|
2433
|
-
jsonString,
|
|
2434
|
-
(x) => GetOnePromptPrompt$inboundSchema.parse(JSON.parse(x)),
|
|
2435
|
-
`Failed to parse 'GetOnePromptPrompt' from JSON`,
|
|
2436
|
-
);
|
|
2437
|
-
}
|