@orq-ai/node 4.0.5 → 4.1.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 +214 -217
- package/bin/mcp-server.js.map +39 -39
- package/docs/sdks/agents/README.md +8 -4
- package/docs/sdks/budgets/README.md +4 -2
- package/docs/sdks/tools/README.md +2 -2
- package/examples/package-lock.json +4 -7
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +4 -3
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/packages/orq-rc/FUNCTIONS.md +0 -103
- package/packages/orq-rc/README.md +0 -901
- package/packages/orq-rc/RUNTIMES.md +0 -48
- package/packages/orq-rc/docs/sdks/agents/README.md +0 -1064
- package/packages/orq-rc/docs/sdks/budgets/README.md +0 -401
- package/packages/orq-rc/docs/sdks/chunking/README.md +0 -97
- package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
- package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
- package/packages/orq-rc/docs/sdks/deployments/README.md +0 -312
- package/packages/orq-rc/docs/sdks/evals/README.md +0 -339
- package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
- package/packages/orq-rc/docs/sdks/files/README.md +0 -301
- package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1487
- package/packages/orq-rc/docs/sdks/memorystores/README.md +0 -1171
- package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
- package/packages/orq-rc/docs/sdks/models/README.md +0 -76
- package/packages/orq-rc/docs/sdks/prompts/README.md +0 -591
- package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
- package/packages/orq-rc/docs/sdks/responses/README.md +0 -134
- package/packages/orq-rc/docs/sdks/tools/README.md +0 -420
- package/packages/orq-rc/examples/README.md +0 -31
- package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
- package/packages/orq-rc/examples/package-lock.json +0 -619
- package/packages/orq-rc/examples/package.json +0 -18
- package/packages/orq-rc/jsr.json +0 -28
- package/packages/orq-rc/package-lock.json +0 -3047
- package/packages/orq-rc/package.json +0 -40
- package/packages/orq-rc/src/core.ts +0 -13
- package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -174
- package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/agentsList.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -179
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
- package/packages/orq-rc/src/funcs/agentsRun.ts +0 -165
- package/packages/orq-rc/src/funcs/agentsStream.ts +0 -201
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -191
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/budgetsGet.ts +0 -166
- package/packages/orq-rc/src/funcs/budgetsList.ts +0 -170
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +0 -167
- package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
- package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
- package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
- package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
- package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
- package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
- package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
- package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
- package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
- package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
- package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
- package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
- package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
- package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
- package/packages/orq-rc/src/funcs/filesList.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
- package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -175
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
- package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -184
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -181
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -176
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -178
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -173
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -179
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -174
- package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
- package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
- package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
- package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
- package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
- package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
- package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
- package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
- package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -172
- package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
- package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
- package/packages/orq-rc/src/hooks/global.ts +0 -44
- package/packages/orq-rc/src/hooks/hooks.ts +0 -132
- package/packages/orq-rc/src/hooks/index.ts +0 -6
- package/packages/orq-rc/src/hooks/registration.ts +0 -15
- package/packages/orq-rc/src/hooks/types.ts +0 -112
- package/packages/orq-rc/src/index.ts +0 -9
- package/packages/orq-rc/src/lib/base64.ts +0 -37
- package/packages/orq-rc/src/lib/config.ts +0 -74
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/encodings.ts +0 -483
- package/packages/orq-rc/src/lib/env.ts +0 -89
- package/packages/orq-rc/src/lib/event-streams.ts +0 -135
- package/packages/orq-rc/src/lib/files.ts +0 -82
- package/packages/orq-rc/src/lib/http.ts +0 -323
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/packages/orq-rc/src/lib/logger.ts +0 -9
- package/packages/orq-rc/src/lib/matchers.ts +0 -345
- package/packages/orq-rc/src/lib/primitives.ts +0 -150
- package/packages/orq-rc/src/lib/retries.ts +0 -218
- package/packages/orq-rc/src/lib/schemas.ts +0 -91
- package/packages/orq-rc/src/lib/sdks.ts +0 -407
- package/packages/orq-rc/src/lib/security.ts +0 -264
- package/packages/orq-rc/src/lib/url.ts +0 -33
- package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -111
- package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
- package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
- package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
- package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
- package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
- package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
- package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
- package/packages/orq-rc/src/mcp-server/server.ts +0 -251
- 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 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsList.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/agentsResponsesCreate.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/agentsRetrieve.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 -40
- package/packages/orq-rc/src/mcp-server/tools/agentsStreamRun.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/agentsUpdate.ts +0 -41
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/budgetsGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeGetChunksCount.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunksPaginated.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresCreateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteDocument.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresDeleteMemory.ts +0 -40
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListDocuments.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresListMemories.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresRetrieveMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateDocument.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/memoryStoresUpdateMemory.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
- package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
- package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
- package/packages/orq-rc/src/models/components/index.ts +0 -6
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -6261
- package/packages/orq-rc/src/models/components/security.ts +0 -56
- package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
- package/packages/orq-rc/src/models/errors/createagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/createeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/getevals.ts +0 -67
- package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -67
- package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -77
- package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
- package/packages/orq-rc/src/models/errors/index.ts +0 -26
- 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/retrieveagentrequest.ts +0 -67
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -78
- package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
- package/packages/orq-rc/src/models/errors/streamagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateagent.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -70
- package/packages/orq-rc/src/models/errors/updateeval.ts +0 -67
- package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -67
- package/packages/orq-rc/src/models/errors/updatetool.ts +0 -78
- package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -8215
- package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -1353
- package/packages/orq-rc/src/models/operations/createbudget.ts +0 -582
- package/packages/orq-rc/src/models/operations/createchunk.ts +0 -341
- package/packages/orq-rc/src/models/operations/createcontact.ts +0 -237
- package/packages/orq-rc/src/models/operations/createdataset.ts +0 -257
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -5379
- package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -694
- package/packages/orq-rc/src/models/operations/createeval.ts +0 -6857
- package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -226
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1489
- package/packages/orq-rc/src/models/operations/creatememory.ts +0 -229
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -242
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -310
- package/packages/orq-rc/src/models/operations/createprompt.ts +0 -6179
- package/packages/orq-rc/src/models/operations/createtool.ts +0 -3956
- package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletebudget.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -81
- package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -198
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -72
- package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -51
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -63
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -72
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -83
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -63
- package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletetool.ts +0 -60
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5091
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -8055
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -980
- package/packages/orq-rc/src/models/operations/deployments.ts +0 -2054
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -8269
- package/packages/orq-rc/src/models/operations/filedelete.ts +0 -63
- package/packages/orq-rc/src/models/operations/fileget.ts +0 -181
- package/packages/orq-rc/src/models/operations/filelist.ts +0 -268
- package/packages/orq-rc/src/models/operations/fileupload.ts +0 -258
- package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -261
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -280
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -325
- package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2033
- package/packages/orq-rc/src/models/operations/getalltools.ts +0 -2292
- package/packages/orq-rc/src/models/operations/getbudget.ts +0 -357
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -185
- package/packages/orq-rc/src/models/operations/getevals.ts +0 -5543
- package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -258
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -1070
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -1924
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -1942
- package/packages/orq-rc/src/models/operations/index.ts +0 -98
- package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -1893
- package/packages/orq-rc/src/models/operations/listagents.ts +0 -3614
- package/packages/orq-rc/src/models/operations/listbudgets.ts +0 -494
- package/packages/orq-rc/src/models/operations/listchunks.ts +0 -395
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -408
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -413
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -3169
- package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -334
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -363
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -1068
- package/packages/orq-rc/src/models/operations/listmodels.ts +0 -207
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2041
- package/packages/orq-rc/src/models/operations/parse.ts +0 -1013
- package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -146
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -3741
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -180
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2985
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -246
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -231
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -171
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -189
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -234
- package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -2347
- package/packages/orq-rc/src/models/operations/runagent.ts +0 -7613
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -2775
- package/packages/orq-rc/src/models/operations/streamagent.ts +0 -9732
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -15817
- package/packages/orq-rc/src/models/operations/updateagent.ts +0 -8649
- package/packages/orq-rc/src/models/operations/updatebudget.ts +0 -502
- package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -361
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -280
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -5374
- package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -326
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -288
- package/packages/orq-rc/src/models/operations/updateeval.ts +0 -7197
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1925
- package/packages/orq-rc/src/models/operations/updatememory.ts +0 -238
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -251
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -463
- package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -6410
- package/packages/orq-rc/src/models/operations/updatetool.ts +0 -4279
- package/packages/orq-rc/src/sdk/agents.ts +0 -196
- package/packages/orq-rc/src/sdk/budgets.ts +0 -99
- package/packages/orq-rc/src/sdk/chunking.ts +0 -27
- package/packages/orq-rc/src/sdk/contacts.ts +0 -99
- package/packages/orq-rc/src/sdk/datasets.ts +0 -204
- package/packages/orq-rc/src/sdk/deployments.ts +0 -89
- package/packages/orq-rc/src/sdk/evals.ts +0 -69
- package/packages/orq-rc/src/sdk/feedback.ts +0 -27
- package/packages/orq-rc/src/sdk/files.ts +0 -78
- package/packages/orq-rc/src/sdk/index.ts +0 -5
- package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
- package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
- package/packages/orq-rc/src/sdk/metrics.ts +0 -27
- package/packages/orq-rc/src/sdk/models.ts +0 -25
- package/packages/orq-rc/src/sdk/prompts.ts +0 -126
- package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
- package/packages/orq-rc/src/sdk/responses.ts +0 -29
- package/packages/orq-rc/src/sdk/sdk.ts +0 -97
- package/packages/orq-rc/src/sdk/tools.ts +0 -99
- package/packages/orq-rc/src/types/async.ts +0 -68
- package/packages/orq-rc/src/types/blobs.ts +0 -32
- package/packages/orq-rc/src/types/constdatetime.ts +0 -15
- package/packages/orq-rc/src/types/enums.ts +0 -45
- package/packages/orq-rc/src/types/fp.ts +0 -50
- package/packages/orq-rc/src/types/index.ts +0 -11
- package/packages/orq-rc/src/types/operations.ts +0 -105
- package/packages/orq-rc/src/types/rfcdate.ts +0 -54
- package/packages/orq-rc/src/types/streams.ts +0 -21
- package/packages/orq-rc/src/types/unrecognized.ts +0 -27
- package/packages/orq-rc/tsconfig.json +0 -41
|
@@ -1,1924 +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
|
-
displayName?: string | undefined;
|
|
127
|
-
jsonSchema: GetOnePromptResponseFormatJsonSchema;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* An object specifying the format that the model must output.
|
|
132
|
-
*
|
|
133
|
-
* @remarks
|
|
134
|
-
*
|
|
135
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
136
|
-
*
|
|
137
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
138
|
-
*
|
|
139
|
-
* 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.
|
|
140
|
-
*/
|
|
141
|
-
export type GetOnePromptResponseFormat =
|
|
142
|
-
| GetOnePromptResponseFormat1
|
|
143
|
-
| GetOnePromptResponseFormat2
|
|
144
|
-
| GetOnePromptResponseFormat3
|
|
145
|
-
| GetOnePromptResponseFormat4
|
|
146
|
-
| GetOnePromptResponseFormat5
|
|
147
|
-
| GetOnePromptResponseFormat6;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
151
|
-
*/
|
|
152
|
-
export const GetOnePromptPhotoRealVersion = {
|
|
153
|
-
V1: "v1",
|
|
154
|
-
V2: "v2",
|
|
155
|
-
} as const;
|
|
156
|
-
/**
|
|
157
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
158
|
-
*/
|
|
159
|
-
export type GetOnePromptPhotoRealVersion = ClosedEnum<
|
|
160
|
-
typeof GetOnePromptPhotoRealVersion
|
|
161
|
-
>;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* The format to return the embeddings
|
|
165
|
-
*/
|
|
166
|
-
export const GetOnePromptEncodingFormat = {
|
|
167
|
-
Float: "float",
|
|
168
|
-
Base64: "base64",
|
|
169
|
-
} as const;
|
|
170
|
-
/**
|
|
171
|
-
* The format to return the embeddings
|
|
172
|
-
*/
|
|
173
|
-
export type GetOnePromptEncodingFormat = ClosedEnum<
|
|
174
|
-
typeof GetOnePromptEncodingFormat
|
|
175
|
-
>;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
179
|
-
*/
|
|
180
|
-
export const GetOnePromptReasoningEffort = {
|
|
181
|
-
None: "none",
|
|
182
|
-
Disable: "disable",
|
|
183
|
-
Minimal: "minimal",
|
|
184
|
-
Low: "low",
|
|
185
|
-
Medium: "medium",
|
|
186
|
-
High: "high",
|
|
187
|
-
} as const;
|
|
188
|
-
/**
|
|
189
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
190
|
-
*/
|
|
191
|
-
export type GetOnePromptReasoningEffort = ClosedEnum<
|
|
192
|
-
typeof GetOnePromptReasoningEffort
|
|
193
|
-
>;
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Controls the verbosity of the model output.
|
|
197
|
-
*/
|
|
198
|
-
export const GetOnePromptVerbosity = {
|
|
199
|
-
Low: "low",
|
|
200
|
-
Medium: "medium",
|
|
201
|
-
High: "high",
|
|
202
|
-
} as const;
|
|
203
|
-
/**
|
|
204
|
-
* Controls the verbosity of the model output.
|
|
205
|
-
*/
|
|
206
|
-
export type GetOnePromptVerbosity = ClosedEnum<typeof GetOnePromptVerbosity>;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
210
|
-
*/
|
|
211
|
-
export const GetOnePromptThinkingLevel = {
|
|
212
|
-
Low: "low",
|
|
213
|
-
High: "high",
|
|
214
|
-
} as const;
|
|
215
|
-
/**
|
|
216
|
-
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
217
|
-
*/
|
|
218
|
-
export type GetOnePromptThinkingLevel = ClosedEnum<
|
|
219
|
-
typeof GetOnePromptThinkingLevel
|
|
220
|
-
>;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Model Parameters: Not all parameters apply to every model
|
|
224
|
-
*/
|
|
225
|
-
export type GetOnePromptModelParameters = {
|
|
226
|
-
/**
|
|
227
|
-
* Only supported on `chat` and `completion` models.
|
|
228
|
-
*/
|
|
229
|
-
temperature?: number | undefined;
|
|
230
|
-
/**
|
|
231
|
-
* Only supported on `chat` and `completion` models.
|
|
232
|
-
*/
|
|
233
|
-
maxTokens?: number | undefined;
|
|
234
|
-
/**
|
|
235
|
-
* Only supported on `chat` and `completion` models.
|
|
236
|
-
*/
|
|
237
|
-
topK?: number | undefined;
|
|
238
|
-
/**
|
|
239
|
-
* Only supported on `chat` and `completion` models.
|
|
240
|
-
*/
|
|
241
|
-
topP?: number | undefined;
|
|
242
|
-
/**
|
|
243
|
-
* Only supported on `chat` and `completion` models.
|
|
244
|
-
*/
|
|
245
|
-
frequencyPenalty?: number | undefined;
|
|
246
|
-
/**
|
|
247
|
-
* Only supported on `chat` and `completion` models.
|
|
248
|
-
*/
|
|
249
|
-
presencePenalty?: number | undefined;
|
|
250
|
-
/**
|
|
251
|
-
* Only supported on `image` models.
|
|
252
|
-
*/
|
|
253
|
-
numImages?: number | undefined;
|
|
254
|
-
/**
|
|
255
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
256
|
-
*/
|
|
257
|
-
seed?: number | undefined;
|
|
258
|
-
/**
|
|
259
|
-
* Only supported on `image` models.
|
|
260
|
-
*/
|
|
261
|
-
format?: GetOnePromptFormat | undefined;
|
|
262
|
-
/**
|
|
263
|
-
* Only supported on `image` models.
|
|
264
|
-
*/
|
|
265
|
-
dimensions?: string | undefined;
|
|
266
|
-
/**
|
|
267
|
-
* Only supported on `image` models.
|
|
268
|
-
*/
|
|
269
|
-
quality?: string | undefined;
|
|
270
|
-
/**
|
|
271
|
-
* Only supported on `image` models.
|
|
272
|
-
*/
|
|
273
|
-
style?: string | undefined;
|
|
274
|
-
/**
|
|
275
|
-
* An object specifying the format that the model must output.
|
|
276
|
-
*
|
|
277
|
-
* @remarks
|
|
278
|
-
*
|
|
279
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
280
|
-
*
|
|
281
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
282
|
-
*
|
|
283
|
-
* 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.
|
|
284
|
-
*/
|
|
285
|
-
responseFormat?:
|
|
286
|
-
| GetOnePromptResponseFormat1
|
|
287
|
-
| GetOnePromptResponseFormat2
|
|
288
|
-
| GetOnePromptResponseFormat3
|
|
289
|
-
| GetOnePromptResponseFormat4
|
|
290
|
-
| GetOnePromptResponseFormat5
|
|
291
|
-
| GetOnePromptResponseFormat6
|
|
292
|
-
| null
|
|
293
|
-
| undefined;
|
|
294
|
-
/**
|
|
295
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
296
|
-
*/
|
|
297
|
-
photoRealVersion?: GetOnePromptPhotoRealVersion | undefined;
|
|
298
|
-
/**
|
|
299
|
-
* The format to return the embeddings
|
|
300
|
-
*/
|
|
301
|
-
encodingFormat?: GetOnePromptEncodingFormat | undefined;
|
|
302
|
-
/**
|
|
303
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
304
|
-
*/
|
|
305
|
-
reasoningEffort?: GetOnePromptReasoningEffort | undefined;
|
|
306
|
-
/**
|
|
307
|
-
* 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`
|
|
308
|
-
*/
|
|
309
|
-
budgetTokens?: number | undefined;
|
|
310
|
-
/**
|
|
311
|
-
* Controls the verbosity of the model output.
|
|
312
|
-
*/
|
|
313
|
-
verbosity?: GetOnePromptVerbosity | undefined;
|
|
314
|
-
/**
|
|
315
|
-
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
316
|
-
*/
|
|
317
|
-
thinkingLevel?: GetOnePromptThinkingLevel | undefined;
|
|
318
|
-
};
|
|
319
|
-
|
|
320
|
-
export const GetOnePromptProvider = {
|
|
321
|
-
Cohere: "cohere",
|
|
322
|
-
Openai: "openai",
|
|
323
|
-
Anthropic: "anthropic",
|
|
324
|
-
Huggingface: "huggingface",
|
|
325
|
-
Replicate: "replicate",
|
|
326
|
-
Google: "google",
|
|
327
|
-
GoogleAi: "google-ai",
|
|
328
|
-
Azure: "azure",
|
|
329
|
-
Aws: "aws",
|
|
330
|
-
Anyscale: "anyscale",
|
|
331
|
-
Perplexity: "perplexity",
|
|
332
|
-
Groq: "groq",
|
|
333
|
-
Fal: "fal",
|
|
334
|
-
Leonardoai: "leonardoai",
|
|
335
|
-
Nvidia: "nvidia",
|
|
336
|
-
Jina: "jina",
|
|
337
|
-
Togetherai: "togetherai",
|
|
338
|
-
Elevenlabs: "elevenlabs",
|
|
339
|
-
Litellm: "litellm",
|
|
340
|
-
Openailike: "openailike",
|
|
341
|
-
Cerebras: "cerebras",
|
|
342
|
-
Bytedance: "bytedance",
|
|
343
|
-
Mistral: "mistral",
|
|
344
|
-
} as const;
|
|
345
|
-
export type GetOnePromptProvider = ClosedEnum<typeof GetOnePromptProvider>;
|
|
346
|
-
|
|
347
|
-
/**
|
|
348
|
-
* The role of the prompt message
|
|
349
|
-
*/
|
|
350
|
-
export const GetOnePromptRole = {
|
|
351
|
-
System: "system",
|
|
352
|
-
Assistant: "assistant",
|
|
353
|
-
User: "user",
|
|
354
|
-
Exception: "exception",
|
|
355
|
-
Tool: "tool",
|
|
356
|
-
Prompt: "prompt",
|
|
357
|
-
Correction: "correction",
|
|
358
|
-
ExpectedOutput: "expected_output",
|
|
359
|
-
} as const;
|
|
360
|
-
/**
|
|
361
|
-
* The role of the prompt message
|
|
362
|
-
*/
|
|
363
|
-
export type GetOnePromptRole = ClosedEnum<typeof GetOnePromptRole>;
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* The type of the content part. Always `file`.
|
|
367
|
-
*/
|
|
368
|
-
export const GetOnePrompt2PromptsResponseType = {
|
|
369
|
-
File: "file",
|
|
370
|
-
} as const;
|
|
371
|
-
/**
|
|
372
|
-
* The type of the content part. Always `file`.
|
|
373
|
-
*/
|
|
374
|
-
export type GetOnePrompt2PromptsResponseType = ClosedEnum<
|
|
375
|
-
typeof GetOnePrompt2PromptsResponseType
|
|
376
|
-
>;
|
|
377
|
-
|
|
378
|
-
export type GetOnePrompt2File = {
|
|
379
|
-
/**
|
|
380
|
-
* The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
|
|
381
|
-
*/
|
|
382
|
-
fileData?: string | undefined;
|
|
383
|
-
/**
|
|
384
|
-
* URL to the file. Only supported by Anthropic Claude models for PDF files.
|
|
385
|
-
*/
|
|
386
|
-
uri?: string | undefined;
|
|
387
|
-
/**
|
|
388
|
-
* MIME type of the file (e.g., application/pdf, image/png)
|
|
389
|
-
*/
|
|
390
|
-
mimeType?: string | undefined;
|
|
391
|
-
/**
|
|
392
|
-
* The name of the file, used when passing the file to the model as a string.
|
|
393
|
-
*/
|
|
394
|
-
filename?: string | undefined;
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
export type GetOnePrompt23 = {
|
|
398
|
-
/**
|
|
399
|
-
* The type of the content part. Always `file`.
|
|
400
|
-
*/
|
|
401
|
-
type: GetOnePrompt2PromptsResponseType;
|
|
402
|
-
file: GetOnePrompt2File;
|
|
403
|
-
};
|
|
404
|
-
|
|
405
|
-
export const GetOnePrompt2PromptsType = {
|
|
406
|
-
ImageUrl: "image_url",
|
|
407
|
-
} as const;
|
|
408
|
-
export type GetOnePrompt2PromptsType = ClosedEnum<
|
|
409
|
-
typeof GetOnePrompt2PromptsType
|
|
410
|
-
>;
|
|
411
|
-
|
|
412
|
-
export type GetOnePrompt2ImageUrl = {
|
|
413
|
-
/**
|
|
414
|
-
* The orq.ai id of the image
|
|
415
|
-
*/
|
|
416
|
-
id?: string | undefined;
|
|
417
|
-
/**
|
|
418
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
419
|
-
*/
|
|
420
|
-
url: string;
|
|
421
|
-
/**
|
|
422
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
423
|
-
*/
|
|
424
|
-
detail?: string | undefined;
|
|
425
|
-
};
|
|
426
|
-
|
|
427
|
-
/**
|
|
428
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
429
|
-
*/
|
|
430
|
-
export type GetOnePrompt22 = {
|
|
431
|
-
type: GetOnePrompt2PromptsType;
|
|
432
|
-
imageUrl: GetOnePrompt2ImageUrl;
|
|
433
|
-
};
|
|
434
|
-
|
|
435
|
-
export const GetOnePrompt2Type = {
|
|
436
|
-
Text: "text",
|
|
437
|
-
} as const;
|
|
438
|
-
export type GetOnePrompt2Type = ClosedEnum<typeof GetOnePrompt2Type>;
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Text content part of a prompt message
|
|
442
|
-
*/
|
|
443
|
-
export type GetOnePrompt21 = {
|
|
444
|
-
type: GetOnePrompt2Type;
|
|
445
|
-
text: string;
|
|
446
|
-
};
|
|
447
|
-
|
|
448
|
-
export type GetOnePromptContent2 =
|
|
449
|
-
| GetOnePrompt21
|
|
450
|
-
| GetOnePrompt22
|
|
451
|
-
| GetOnePrompt23;
|
|
452
|
-
|
|
453
|
-
/**
|
|
454
|
-
* 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. Can be null for tool messages in certain scenarios.
|
|
455
|
-
*/
|
|
456
|
-
export type GetOnePromptContent =
|
|
457
|
-
| string
|
|
458
|
-
| Array<GetOnePrompt21 | GetOnePrompt22 | GetOnePrompt23>;
|
|
459
|
-
|
|
460
|
-
export const GetOnePromptPromptsType = {
|
|
461
|
-
Function: "function",
|
|
462
|
-
} as const;
|
|
463
|
-
export type GetOnePromptPromptsType = ClosedEnum<
|
|
464
|
-
typeof GetOnePromptPromptsType
|
|
465
|
-
>;
|
|
466
|
-
|
|
467
|
-
export type GetOnePromptFunction = {
|
|
468
|
-
name: string;
|
|
469
|
-
/**
|
|
470
|
-
* JSON string arguments for the functions
|
|
471
|
-
*/
|
|
472
|
-
arguments: string;
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
export type GetOnePromptToolCalls = {
|
|
476
|
-
id?: string | undefined;
|
|
477
|
-
index?: number | undefined;
|
|
478
|
-
type: GetOnePromptPromptsType;
|
|
479
|
-
function: GetOnePromptFunction;
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
export type GetOnePromptMessages = {
|
|
483
|
-
/**
|
|
484
|
-
* The role of the prompt message
|
|
485
|
-
*/
|
|
486
|
-
role: GetOnePromptRole;
|
|
487
|
-
/**
|
|
488
|
-
* 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. Can be null for tool messages in certain scenarios.
|
|
489
|
-
*/
|
|
490
|
-
content:
|
|
491
|
-
| string
|
|
492
|
-
| Array<GetOnePrompt21 | GetOnePrompt22 | GetOnePrompt23>
|
|
493
|
-
| null;
|
|
494
|
-
toolCalls?: Array<GetOnePromptToolCalls> | undefined;
|
|
495
|
-
toolCallId?: string | undefined;
|
|
496
|
-
};
|
|
497
|
-
|
|
498
|
-
/**
|
|
499
|
-
* A list of messages compatible with the openAI schema
|
|
500
|
-
*/
|
|
501
|
-
export type GetOnePromptPromptConfig = {
|
|
502
|
-
stream?: boolean | undefined;
|
|
503
|
-
model?: string | undefined;
|
|
504
|
-
/**
|
|
505
|
-
* The id of the resource
|
|
506
|
-
*/
|
|
507
|
-
modelDbId?: string | null | undefined;
|
|
508
|
-
/**
|
|
509
|
-
* The modality of the model
|
|
510
|
-
*/
|
|
511
|
-
modelType?: GetOnePromptModelType | null | undefined;
|
|
512
|
-
/**
|
|
513
|
-
* Model Parameters: Not all parameters apply to every model
|
|
514
|
-
*/
|
|
515
|
-
modelParameters?: GetOnePromptModelParameters | undefined;
|
|
516
|
-
provider?: GetOnePromptProvider | undefined;
|
|
517
|
-
/**
|
|
518
|
-
* The ID of the integration to use
|
|
519
|
-
*/
|
|
520
|
-
integrationId?: string | null | undefined;
|
|
521
|
-
version?: string | undefined;
|
|
522
|
-
messages: Array<GetOnePromptMessages>;
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
export const GetOnePromptUseCases = {
|
|
526
|
-
AgentsSimulations: "Agents simulations",
|
|
527
|
-
Agents: "Agents",
|
|
528
|
-
APIInteraction: "API interaction",
|
|
529
|
-
AutonomousAgents: "Autonomous Agents",
|
|
530
|
-
Chatbots: "Chatbots",
|
|
531
|
-
Classification: "Classification",
|
|
532
|
-
CodeUnderstanding: "Code understanding",
|
|
533
|
-
CodeWriting: "Code writing",
|
|
534
|
-
Conversation: "Conversation",
|
|
535
|
-
DocumentsQA: "Documents QA",
|
|
536
|
-
Evaluation: "Evaluation",
|
|
537
|
-
Extraction: "Extraction",
|
|
538
|
-
MultiModal: "Multi-modal",
|
|
539
|
-
SelfChecking: "Self-checking",
|
|
540
|
-
SentimentAnalysis: "Sentiment analysis",
|
|
541
|
-
Sql: "SQL",
|
|
542
|
-
Summarization: "Summarization",
|
|
543
|
-
Tagging: "Tagging",
|
|
544
|
-
TranslationDocument: "Translation (document)",
|
|
545
|
-
TranslationSentences: "Translation (sentences)",
|
|
546
|
-
} as const;
|
|
547
|
-
export type GetOnePromptUseCases = ClosedEnum<typeof GetOnePromptUseCases>;
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
551
|
-
*/
|
|
552
|
-
export const GetOnePromptLanguage = {
|
|
553
|
-
Chinese: "Chinese",
|
|
554
|
-
Dutch: "Dutch",
|
|
555
|
-
English: "English",
|
|
556
|
-
French: "French",
|
|
557
|
-
German: "German",
|
|
558
|
-
Russian: "Russian",
|
|
559
|
-
Spanish: "Spanish",
|
|
560
|
-
} as const;
|
|
561
|
-
/**
|
|
562
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
563
|
-
*/
|
|
564
|
-
export type GetOnePromptLanguage = ClosedEnum<typeof GetOnePromptLanguage>;
|
|
565
|
-
|
|
566
|
-
export type GetOnePromptMetadata = {
|
|
567
|
-
/**
|
|
568
|
-
* 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
|
|
569
|
-
*/
|
|
570
|
-
useCases?: Array<GetOnePromptUseCases> | undefined;
|
|
571
|
-
/**
|
|
572
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
573
|
-
*/
|
|
574
|
-
language?: GetOnePromptLanguage | null | undefined;
|
|
575
|
-
};
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* A prompt entity with configuration, metadata, and versioning.
|
|
579
|
-
*/
|
|
580
|
-
export type GetOnePromptPrompt = {
|
|
581
|
-
id: string;
|
|
582
|
-
type: GetOnePromptType;
|
|
583
|
-
owner: string;
|
|
584
|
-
domainId: string;
|
|
585
|
-
created: string;
|
|
586
|
-
updated: string;
|
|
587
|
-
createdById?: string | null | undefined;
|
|
588
|
-
updatedById?: string | null | undefined;
|
|
589
|
-
/**
|
|
590
|
-
* The prompt’s name, meant to be displayable in the UI.
|
|
591
|
-
*/
|
|
592
|
-
displayName: string;
|
|
593
|
-
/**
|
|
594
|
-
* 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
|
|
595
|
-
*/
|
|
596
|
-
description?: string | null | undefined;
|
|
597
|
-
/**
|
|
598
|
-
* A list of messages compatible with the openAI schema
|
|
599
|
-
*/
|
|
600
|
-
promptConfig: GetOnePromptPromptConfig;
|
|
601
|
-
metadata?: GetOnePromptMetadata | undefined;
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
/** @internal */
|
|
605
|
-
export const GetOnePromptRequest$inboundSchema: z.ZodType<
|
|
606
|
-
GetOnePromptRequest,
|
|
607
|
-
z.ZodTypeDef,
|
|
608
|
-
unknown
|
|
609
|
-
> = z.object({
|
|
610
|
-
id: z.string(),
|
|
611
|
-
});
|
|
612
|
-
/** @internal */
|
|
613
|
-
export type GetOnePromptRequest$Outbound = {
|
|
614
|
-
id: string;
|
|
615
|
-
};
|
|
616
|
-
|
|
617
|
-
/** @internal */
|
|
618
|
-
export const GetOnePromptRequest$outboundSchema: z.ZodType<
|
|
619
|
-
GetOnePromptRequest$Outbound,
|
|
620
|
-
z.ZodTypeDef,
|
|
621
|
-
GetOnePromptRequest
|
|
622
|
-
> = z.object({
|
|
623
|
-
id: z.string(),
|
|
624
|
-
});
|
|
625
|
-
|
|
626
|
-
export function getOnePromptRequestToJSON(
|
|
627
|
-
getOnePromptRequest: GetOnePromptRequest,
|
|
628
|
-
): string {
|
|
629
|
-
return JSON.stringify(
|
|
630
|
-
GetOnePromptRequest$outboundSchema.parse(getOnePromptRequest),
|
|
631
|
-
);
|
|
632
|
-
}
|
|
633
|
-
export function getOnePromptRequestFromJSON(
|
|
634
|
-
jsonString: string,
|
|
635
|
-
): SafeParseResult<GetOnePromptRequest, SDKValidationError> {
|
|
636
|
-
return safeParse(
|
|
637
|
-
jsonString,
|
|
638
|
-
(x) => GetOnePromptRequest$inboundSchema.parse(JSON.parse(x)),
|
|
639
|
-
`Failed to parse 'GetOnePromptRequest' from JSON`,
|
|
640
|
-
);
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
/** @internal */
|
|
644
|
-
export const GetOnePromptType$inboundSchema: z.ZodNativeEnum<
|
|
645
|
-
typeof GetOnePromptType
|
|
646
|
-
> = z.nativeEnum(GetOnePromptType);
|
|
647
|
-
/** @internal */
|
|
648
|
-
export const GetOnePromptType$outboundSchema: z.ZodNativeEnum<
|
|
649
|
-
typeof GetOnePromptType
|
|
650
|
-
> = GetOnePromptType$inboundSchema;
|
|
651
|
-
|
|
652
|
-
/** @internal */
|
|
653
|
-
export const GetOnePromptModelType$inboundSchema: z.ZodNativeEnum<
|
|
654
|
-
typeof GetOnePromptModelType
|
|
655
|
-
> = z.nativeEnum(GetOnePromptModelType);
|
|
656
|
-
/** @internal */
|
|
657
|
-
export const GetOnePromptModelType$outboundSchema: z.ZodNativeEnum<
|
|
658
|
-
typeof GetOnePromptModelType
|
|
659
|
-
> = GetOnePromptModelType$inboundSchema;
|
|
660
|
-
|
|
661
|
-
/** @internal */
|
|
662
|
-
export const GetOnePromptFormat$inboundSchema: z.ZodNativeEnum<
|
|
663
|
-
typeof GetOnePromptFormat
|
|
664
|
-
> = z.nativeEnum(GetOnePromptFormat);
|
|
665
|
-
/** @internal */
|
|
666
|
-
export const GetOnePromptFormat$outboundSchema: z.ZodNativeEnum<
|
|
667
|
-
typeof GetOnePromptFormat
|
|
668
|
-
> = GetOnePromptFormat$inboundSchema;
|
|
669
|
-
|
|
670
|
-
/** @internal */
|
|
671
|
-
export const GetOnePromptResponseFormat6$inboundSchema: z.ZodNativeEnum<
|
|
672
|
-
typeof GetOnePromptResponseFormat6
|
|
673
|
-
> = z.nativeEnum(GetOnePromptResponseFormat6);
|
|
674
|
-
/** @internal */
|
|
675
|
-
export const GetOnePromptResponseFormat6$outboundSchema: z.ZodNativeEnum<
|
|
676
|
-
typeof GetOnePromptResponseFormat6
|
|
677
|
-
> = GetOnePromptResponseFormat6$inboundSchema;
|
|
678
|
-
|
|
679
|
-
/** @internal */
|
|
680
|
-
export const GetOnePromptResponseFormat5$inboundSchema: z.ZodNativeEnum<
|
|
681
|
-
typeof GetOnePromptResponseFormat5
|
|
682
|
-
> = z.nativeEnum(GetOnePromptResponseFormat5);
|
|
683
|
-
/** @internal */
|
|
684
|
-
export const GetOnePromptResponseFormat5$outboundSchema: z.ZodNativeEnum<
|
|
685
|
-
typeof GetOnePromptResponseFormat5
|
|
686
|
-
> = GetOnePromptResponseFormat5$inboundSchema;
|
|
687
|
-
|
|
688
|
-
/** @internal */
|
|
689
|
-
export const GetOnePromptResponseFormat4$inboundSchema: z.ZodNativeEnum<
|
|
690
|
-
typeof GetOnePromptResponseFormat4
|
|
691
|
-
> = z.nativeEnum(GetOnePromptResponseFormat4);
|
|
692
|
-
/** @internal */
|
|
693
|
-
export const GetOnePromptResponseFormat4$outboundSchema: z.ZodNativeEnum<
|
|
694
|
-
typeof GetOnePromptResponseFormat4
|
|
695
|
-
> = GetOnePromptResponseFormat4$inboundSchema;
|
|
696
|
-
|
|
697
|
-
/** @internal */
|
|
698
|
-
export const GetOnePromptResponseFormatPromptsResponseType$inboundSchema:
|
|
699
|
-
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponseType> = z
|
|
700
|
-
.nativeEnum(GetOnePromptResponseFormatPromptsResponseType);
|
|
701
|
-
/** @internal */
|
|
702
|
-
export const GetOnePromptResponseFormatPromptsResponseType$outboundSchema:
|
|
703
|
-
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsResponseType> =
|
|
704
|
-
GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
|
|
705
|
-
|
|
706
|
-
/** @internal */
|
|
707
|
-
export const GetOnePromptResponseFormat3$inboundSchema: z.ZodType<
|
|
708
|
-
GetOnePromptResponseFormat3,
|
|
709
|
-
z.ZodTypeDef,
|
|
710
|
-
unknown
|
|
711
|
-
> = z.object({
|
|
712
|
-
type: GetOnePromptResponseFormatPromptsResponseType$inboundSchema,
|
|
713
|
-
});
|
|
714
|
-
/** @internal */
|
|
715
|
-
export type GetOnePromptResponseFormat3$Outbound = {
|
|
716
|
-
type: string;
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
/** @internal */
|
|
720
|
-
export const GetOnePromptResponseFormat3$outboundSchema: z.ZodType<
|
|
721
|
-
GetOnePromptResponseFormat3$Outbound,
|
|
722
|
-
z.ZodTypeDef,
|
|
723
|
-
GetOnePromptResponseFormat3
|
|
724
|
-
> = z.object({
|
|
725
|
-
type: GetOnePromptResponseFormatPromptsResponseType$outboundSchema,
|
|
726
|
-
});
|
|
727
|
-
|
|
728
|
-
export function getOnePromptResponseFormat3ToJSON(
|
|
729
|
-
getOnePromptResponseFormat3: GetOnePromptResponseFormat3,
|
|
730
|
-
): string {
|
|
731
|
-
return JSON.stringify(
|
|
732
|
-
GetOnePromptResponseFormat3$outboundSchema.parse(
|
|
733
|
-
getOnePromptResponseFormat3,
|
|
734
|
-
),
|
|
735
|
-
);
|
|
736
|
-
}
|
|
737
|
-
export function getOnePromptResponseFormat3FromJSON(
|
|
738
|
-
jsonString: string,
|
|
739
|
-
): SafeParseResult<GetOnePromptResponseFormat3, SDKValidationError> {
|
|
740
|
-
return safeParse(
|
|
741
|
-
jsonString,
|
|
742
|
-
(x) => GetOnePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
743
|
-
`Failed to parse 'GetOnePromptResponseFormat3' from JSON`,
|
|
744
|
-
);
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
/** @internal */
|
|
748
|
-
export const GetOnePromptResponseFormatPromptsType$inboundSchema:
|
|
749
|
-
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> = z.nativeEnum(
|
|
750
|
-
GetOnePromptResponseFormatPromptsType,
|
|
751
|
-
);
|
|
752
|
-
/** @internal */
|
|
753
|
-
export const GetOnePromptResponseFormatPromptsType$outboundSchema:
|
|
754
|
-
z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType> =
|
|
755
|
-
GetOnePromptResponseFormatPromptsType$inboundSchema;
|
|
756
|
-
|
|
757
|
-
/** @internal */
|
|
758
|
-
export const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<
|
|
759
|
-
GetOnePromptResponseFormat2,
|
|
760
|
-
z.ZodTypeDef,
|
|
761
|
-
unknown
|
|
762
|
-
> = z.object({
|
|
763
|
-
type: GetOnePromptResponseFormatPromptsType$inboundSchema,
|
|
764
|
-
});
|
|
765
|
-
/** @internal */
|
|
766
|
-
export type GetOnePromptResponseFormat2$Outbound = {
|
|
767
|
-
type: string;
|
|
768
|
-
};
|
|
769
|
-
|
|
770
|
-
/** @internal */
|
|
771
|
-
export const GetOnePromptResponseFormat2$outboundSchema: z.ZodType<
|
|
772
|
-
GetOnePromptResponseFormat2$Outbound,
|
|
773
|
-
z.ZodTypeDef,
|
|
774
|
-
GetOnePromptResponseFormat2
|
|
775
|
-
> = z.object({
|
|
776
|
-
type: GetOnePromptResponseFormatPromptsType$outboundSchema,
|
|
777
|
-
});
|
|
778
|
-
|
|
779
|
-
export function getOnePromptResponseFormat2ToJSON(
|
|
780
|
-
getOnePromptResponseFormat2: GetOnePromptResponseFormat2,
|
|
781
|
-
): string {
|
|
782
|
-
return JSON.stringify(
|
|
783
|
-
GetOnePromptResponseFormat2$outboundSchema.parse(
|
|
784
|
-
getOnePromptResponseFormat2,
|
|
785
|
-
),
|
|
786
|
-
);
|
|
787
|
-
}
|
|
788
|
-
export function getOnePromptResponseFormat2FromJSON(
|
|
789
|
-
jsonString: string,
|
|
790
|
-
): SafeParseResult<GetOnePromptResponseFormat2, SDKValidationError> {
|
|
791
|
-
return safeParse(
|
|
792
|
-
jsonString,
|
|
793
|
-
(x) => GetOnePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
794
|
-
`Failed to parse 'GetOnePromptResponseFormat2' from JSON`,
|
|
795
|
-
);
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
/** @internal */
|
|
799
|
-
export const GetOnePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
800
|
-
typeof GetOnePromptResponseFormatType
|
|
801
|
-
> = z.nativeEnum(GetOnePromptResponseFormatType);
|
|
802
|
-
/** @internal */
|
|
803
|
-
export const GetOnePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
804
|
-
typeof GetOnePromptResponseFormatType
|
|
805
|
-
> = GetOnePromptResponseFormatType$inboundSchema;
|
|
806
|
-
|
|
807
|
-
/** @internal */
|
|
808
|
-
export const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
809
|
-
GetOnePromptResponseFormatJsonSchema,
|
|
810
|
-
z.ZodTypeDef,
|
|
811
|
-
unknown
|
|
812
|
-
> = z.object({
|
|
813
|
-
name: z.string(),
|
|
814
|
-
description: z.string().optional(),
|
|
815
|
-
strict: z.boolean().optional(),
|
|
816
|
-
schema: z.record(z.any()),
|
|
817
|
-
});
|
|
818
|
-
/** @internal */
|
|
819
|
-
export type GetOnePromptResponseFormatJsonSchema$Outbound = {
|
|
820
|
-
name: string;
|
|
821
|
-
description?: string | undefined;
|
|
822
|
-
strict?: boolean | undefined;
|
|
823
|
-
schema: { [k: string]: any };
|
|
824
|
-
};
|
|
825
|
-
|
|
826
|
-
/** @internal */
|
|
827
|
-
export const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
828
|
-
GetOnePromptResponseFormatJsonSchema$Outbound,
|
|
829
|
-
z.ZodTypeDef,
|
|
830
|
-
GetOnePromptResponseFormatJsonSchema
|
|
831
|
-
> = z.object({
|
|
832
|
-
name: z.string(),
|
|
833
|
-
description: z.string().optional(),
|
|
834
|
-
strict: z.boolean().optional(),
|
|
835
|
-
schema: z.record(z.any()),
|
|
836
|
-
});
|
|
837
|
-
|
|
838
|
-
export function getOnePromptResponseFormatJsonSchemaToJSON(
|
|
839
|
-
getOnePromptResponseFormatJsonSchema: GetOnePromptResponseFormatJsonSchema,
|
|
840
|
-
): string {
|
|
841
|
-
return JSON.stringify(
|
|
842
|
-
GetOnePromptResponseFormatJsonSchema$outboundSchema.parse(
|
|
843
|
-
getOnePromptResponseFormatJsonSchema,
|
|
844
|
-
),
|
|
845
|
-
);
|
|
846
|
-
}
|
|
847
|
-
export function getOnePromptResponseFormatJsonSchemaFromJSON(
|
|
848
|
-
jsonString: string,
|
|
849
|
-
): SafeParseResult<GetOnePromptResponseFormatJsonSchema, SDKValidationError> {
|
|
850
|
-
return safeParse(
|
|
851
|
-
jsonString,
|
|
852
|
-
(x) =>
|
|
853
|
-
GetOnePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
854
|
-
`Failed to parse 'GetOnePromptResponseFormatJsonSchema' from JSON`,
|
|
855
|
-
);
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
/** @internal */
|
|
859
|
-
export const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
860
|
-
GetOnePromptResponseFormat1,
|
|
861
|
-
z.ZodTypeDef,
|
|
862
|
-
unknown
|
|
863
|
-
> = z.object({
|
|
864
|
-
type: GetOnePromptResponseFormatType$inboundSchema,
|
|
865
|
-
display_name: z.string().optional(),
|
|
866
|
-
json_schema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$inboundSchema),
|
|
867
|
-
}).transform((v) => {
|
|
868
|
-
return remap$(v, {
|
|
869
|
-
"display_name": "displayName",
|
|
870
|
-
"json_schema": "jsonSchema",
|
|
871
|
-
});
|
|
872
|
-
});
|
|
873
|
-
/** @internal */
|
|
874
|
-
export type GetOnePromptResponseFormat1$Outbound = {
|
|
875
|
-
type: string;
|
|
876
|
-
display_name?: string | undefined;
|
|
877
|
-
json_schema: GetOnePromptResponseFormatJsonSchema$Outbound;
|
|
878
|
-
};
|
|
879
|
-
|
|
880
|
-
/** @internal */
|
|
881
|
-
export const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
882
|
-
GetOnePromptResponseFormat1$Outbound,
|
|
883
|
-
z.ZodTypeDef,
|
|
884
|
-
GetOnePromptResponseFormat1
|
|
885
|
-
> = z.object({
|
|
886
|
-
type: GetOnePromptResponseFormatType$outboundSchema,
|
|
887
|
-
displayName: z.string().optional(),
|
|
888
|
-
jsonSchema: z.lazy(() => GetOnePromptResponseFormatJsonSchema$outboundSchema),
|
|
889
|
-
}).transform((v) => {
|
|
890
|
-
return remap$(v, {
|
|
891
|
-
displayName: "display_name",
|
|
892
|
-
jsonSchema: "json_schema",
|
|
893
|
-
});
|
|
894
|
-
});
|
|
895
|
-
|
|
896
|
-
export function getOnePromptResponseFormat1ToJSON(
|
|
897
|
-
getOnePromptResponseFormat1: GetOnePromptResponseFormat1,
|
|
898
|
-
): string {
|
|
899
|
-
return JSON.stringify(
|
|
900
|
-
GetOnePromptResponseFormat1$outboundSchema.parse(
|
|
901
|
-
getOnePromptResponseFormat1,
|
|
902
|
-
),
|
|
903
|
-
);
|
|
904
|
-
}
|
|
905
|
-
export function getOnePromptResponseFormat1FromJSON(
|
|
906
|
-
jsonString: string,
|
|
907
|
-
): SafeParseResult<GetOnePromptResponseFormat1, SDKValidationError> {
|
|
908
|
-
return safeParse(
|
|
909
|
-
jsonString,
|
|
910
|
-
(x) => GetOnePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
911
|
-
`Failed to parse 'GetOnePromptResponseFormat1' from JSON`,
|
|
912
|
-
);
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
/** @internal */
|
|
916
|
-
export const GetOnePromptResponseFormat$inboundSchema: z.ZodType<
|
|
917
|
-
GetOnePromptResponseFormat,
|
|
918
|
-
z.ZodTypeDef,
|
|
919
|
-
unknown
|
|
920
|
-
> = z.union([
|
|
921
|
-
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
922
|
-
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
923
|
-
z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
|
|
924
|
-
GetOnePromptResponseFormat4$inboundSchema,
|
|
925
|
-
GetOnePromptResponseFormat5$inboundSchema,
|
|
926
|
-
GetOnePromptResponseFormat6$inboundSchema,
|
|
927
|
-
]);
|
|
928
|
-
/** @internal */
|
|
929
|
-
export type GetOnePromptResponseFormat$Outbound =
|
|
930
|
-
| GetOnePromptResponseFormat1$Outbound
|
|
931
|
-
| GetOnePromptResponseFormat2$Outbound
|
|
932
|
-
| GetOnePromptResponseFormat3$Outbound
|
|
933
|
-
| string
|
|
934
|
-
| string
|
|
935
|
-
| string;
|
|
936
|
-
|
|
937
|
-
/** @internal */
|
|
938
|
-
export const GetOnePromptResponseFormat$outboundSchema: z.ZodType<
|
|
939
|
-
GetOnePromptResponseFormat$Outbound,
|
|
940
|
-
z.ZodTypeDef,
|
|
941
|
-
GetOnePromptResponseFormat
|
|
942
|
-
> = z.union([
|
|
943
|
-
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
944
|
-
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
945
|
-
z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
|
|
946
|
-
GetOnePromptResponseFormat4$outboundSchema,
|
|
947
|
-
GetOnePromptResponseFormat5$outboundSchema,
|
|
948
|
-
GetOnePromptResponseFormat6$outboundSchema,
|
|
949
|
-
]);
|
|
950
|
-
|
|
951
|
-
export function getOnePromptResponseFormatToJSON(
|
|
952
|
-
getOnePromptResponseFormat: GetOnePromptResponseFormat,
|
|
953
|
-
): string {
|
|
954
|
-
return JSON.stringify(
|
|
955
|
-
GetOnePromptResponseFormat$outboundSchema.parse(getOnePromptResponseFormat),
|
|
956
|
-
);
|
|
957
|
-
}
|
|
958
|
-
export function getOnePromptResponseFormatFromJSON(
|
|
959
|
-
jsonString: string,
|
|
960
|
-
): SafeParseResult<GetOnePromptResponseFormat, SDKValidationError> {
|
|
961
|
-
return safeParse(
|
|
962
|
-
jsonString,
|
|
963
|
-
(x) => GetOnePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
964
|
-
`Failed to parse 'GetOnePromptResponseFormat' from JSON`,
|
|
965
|
-
);
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
/** @internal */
|
|
969
|
-
export const GetOnePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
970
|
-
typeof GetOnePromptPhotoRealVersion
|
|
971
|
-
> = z.nativeEnum(GetOnePromptPhotoRealVersion);
|
|
972
|
-
/** @internal */
|
|
973
|
-
export const GetOnePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
974
|
-
typeof GetOnePromptPhotoRealVersion
|
|
975
|
-
> = GetOnePromptPhotoRealVersion$inboundSchema;
|
|
976
|
-
|
|
977
|
-
/** @internal */
|
|
978
|
-
export const GetOnePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
979
|
-
typeof GetOnePromptEncodingFormat
|
|
980
|
-
> = z.nativeEnum(GetOnePromptEncodingFormat);
|
|
981
|
-
/** @internal */
|
|
982
|
-
export const GetOnePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
983
|
-
typeof GetOnePromptEncodingFormat
|
|
984
|
-
> = GetOnePromptEncodingFormat$inboundSchema;
|
|
985
|
-
|
|
986
|
-
/** @internal */
|
|
987
|
-
export const GetOnePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
988
|
-
typeof GetOnePromptReasoningEffort
|
|
989
|
-
> = z.nativeEnum(GetOnePromptReasoningEffort);
|
|
990
|
-
/** @internal */
|
|
991
|
-
export const GetOnePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
992
|
-
typeof GetOnePromptReasoningEffort
|
|
993
|
-
> = GetOnePromptReasoningEffort$inboundSchema;
|
|
994
|
-
|
|
995
|
-
/** @internal */
|
|
996
|
-
export const GetOnePromptVerbosity$inboundSchema: z.ZodNativeEnum<
|
|
997
|
-
typeof GetOnePromptVerbosity
|
|
998
|
-
> = z.nativeEnum(GetOnePromptVerbosity);
|
|
999
|
-
/** @internal */
|
|
1000
|
-
export const GetOnePromptVerbosity$outboundSchema: z.ZodNativeEnum<
|
|
1001
|
-
typeof GetOnePromptVerbosity
|
|
1002
|
-
> = GetOnePromptVerbosity$inboundSchema;
|
|
1003
|
-
|
|
1004
|
-
/** @internal */
|
|
1005
|
-
export const GetOnePromptThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
1006
|
-
typeof GetOnePromptThinkingLevel
|
|
1007
|
-
> = z.nativeEnum(GetOnePromptThinkingLevel);
|
|
1008
|
-
/** @internal */
|
|
1009
|
-
export const GetOnePromptThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
1010
|
-
typeof GetOnePromptThinkingLevel
|
|
1011
|
-
> = GetOnePromptThinkingLevel$inboundSchema;
|
|
1012
|
-
|
|
1013
|
-
/** @internal */
|
|
1014
|
-
export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
|
|
1015
|
-
GetOnePromptModelParameters,
|
|
1016
|
-
z.ZodTypeDef,
|
|
1017
|
-
unknown
|
|
1018
|
-
> = z.object({
|
|
1019
|
-
temperature: z.number().optional(),
|
|
1020
|
-
maxTokens: z.number().optional(),
|
|
1021
|
-
topK: z.number().optional(),
|
|
1022
|
-
topP: z.number().optional(),
|
|
1023
|
-
frequencyPenalty: z.number().optional(),
|
|
1024
|
-
presencePenalty: z.number().optional(),
|
|
1025
|
-
numImages: z.number().optional(),
|
|
1026
|
-
seed: z.number().optional(),
|
|
1027
|
-
format: GetOnePromptFormat$inboundSchema.optional(),
|
|
1028
|
-
dimensions: z.string().optional(),
|
|
1029
|
-
quality: z.string().optional(),
|
|
1030
|
-
style: z.string().optional(),
|
|
1031
|
-
responseFormat: z.nullable(
|
|
1032
|
-
z.union([
|
|
1033
|
-
z.lazy(() => GetOnePromptResponseFormat1$inboundSchema),
|
|
1034
|
-
z.lazy(() => GetOnePromptResponseFormat2$inboundSchema),
|
|
1035
|
-
z.lazy(() => GetOnePromptResponseFormat3$inboundSchema),
|
|
1036
|
-
GetOnePromptResponseFormat4$inboundSchema,
|
|
1037
|
-
GetOnePromptResponseFormat5$inboundSchema,
|
|
1038
|
-
GetOnePromptResponseFormat6$inboundSchema,
|
|
1039
|
-
]),
|
|
1040
|
-
).optional(),
|
|
1041
|
-
photoRealVersion: GetOnePromptPhotoRealVersion$inboundSchema.optional(),
|
|
1042
|
-
encoding_format: GetOnePromptEncodingFormat$inboundSchema.optional(),
|
|
1043
|
-
reasoningEffort: GetOnePromptReasoningEffort$inboundSchema.optional(),
|
|
1044
|
-
budgetTokens: z.number().optional(),
|
|
1045
|
-
verbosity: GetOnePromptVerbosity$inboundSchema.optional(),
|
|
1046
|
-
thinkingLevel: GetOnePromptThinkingLevel$inboundSchema.optional(),
|
|
1047
|
-
}).transform((v) => {
|
|
1048
|
-
return remap$(v, {
|
|
1049
|
-
"encoding_format": "encodingFormat",
|
|
1050
|
-
});
|
|
1051
|
-
});
|
|
1052
|
-
/** @internal */
|
|
1053
|
-
export type GetOnePromptModelParameters$Outbound = {
|
|
1054
|
-
temperature?: number | undefined;
|
|
1055
|
-
maxTokens?: number | undefined;
|
|
1056
|
-
topK?: number | undefined;
|
|
1057
|
-
topP?: number | undefined;
|
|
1058
|
-
frequencyPenalty?: number | undefined;
|
|
1059
|
-
presencePenalty?: number | undefined;
|
|
1060
|
-
numImages?: number | undefined;
|
|
1061
|
-
seed?: number | undefined;
|
|
1062
|
-
format?: string | undefined;
|
|
1063
|
-
dimensions?: string | undefined;
|
|
1064
|
-
quality?: string | undefined;
|
|
1065
|
-
style?: string | undefined;
|
|
1066
|
-
responseFormat?:
|
|
1067
|
-
| GetOnePromptResponseFormat1$Outbound
|
|
1068
|
-
| GetOnePromptResponseFormat2$Outbound
|
|
1069
|
-
| GetOnePromptResponseFormat3$Outbound
|
|
1070
|
-
| string
|
|
1071
|
-
| string
|
|
1072
|
-
| string
|
|
1073
|
-
| null
|
|
1074
|
-
| undefined;
|
|
1075
|
-
photoRealVersion?: string | undefined;
|
|
1076
|
-
encoding_format?: string | undefined;
|
|
1077
|
-
reasoningEffort?: string | undefined;
|
|
1078
|
-
budgetTokens?: number | undefined;
|
|
1079
|
-
verbosity?: string | undefined;
|
|
1080
|
-
thinkingLevel?: string | undefined;
|
|
1081
|
-
};
|
|
1082
|
-
|
|
1083
|
-
/** @internal */
|
|
1084
|
-
export const GetOnePromptModelParameters$outboundSchema: z.ZodType<
|
|
1085
|
-
GetOnePromptModelParameters$Outbound,
|
|
1086
|
-
z.ZodTypeDef,
|
|
1087
|
-
GetOnePromptModelParameters
|
|
1088
|
-
> = z.object({
|
|
1089
|
-
temperature: z.number().optional(),
|
|
1090
|
-
maxTokens: z.number().optional(),
|
|
1091
|
-
topK: z.number().optional(),
|
|
1092
|
-
topP: z.number().optional(),
|
|
1093
|
-
frequencyPenalty: z.number().optional(),
|
|
1094
|
-
presencePenalty: z.number().optional(),
|
|
1095
|
-
numImages: z.number().optional(),
|
|
1096
|
-
seed: z.number().optional(),
|
|
1097
|
-
format: GetOnePromptFormat$outboundSchema.optional(),
|
|
1098
|
-
dimensions: z.string().optional(),
|
|
1099
|
-
quality: z.string().optional(),
|
|
1100
|
-
style: z.string().optional(),
|
|
1101
|
-
responseFormat: z.nullable(
|
|
1102
|
-
z.union([
|
|
1103
|
-
z.lazy(() => GetOnePromptResponseFormat1$outboundSchema),
|
|
1104
|
-
z.lazy(() => GetOnePromptResponseFormat2$outboundSchema),
|
|
1105
|
-
z.lazy(() => GetOnePromptResponseFormat3$outboundSchema),
|
|
1106
|
-
GetOnePromptResponseFormat4$outboundSchema,
|
|
1107
|
-
GetOnePromptResponseFormat5$outboundSchema,
|
|
1108
|
-
GetOnePromptResponseFormat6$outboundSchema,
|
|
1109
|
-
]),
|
|
1110
|
-
).optional(),
|
|
1111
|
-
photoRealVersion: GetOnePromptPhotoRealVersion$outboundSchema.optional(),
|
|
1112
|
-
encodingFormat: GetOnePromptEncodingFormat$outboundSchema.optional(),
|
|
1113
|
-
reasoningEffort: GetOnePromptReasoningEffort$outboundSchema.optional(),
|
|
1114
|
-
budgetTokens: z.number().optional(),
|
|
1115
|
-
verbosity: GetOnePromptVerbosity$outboundSchema.optional(),
|
|
1116
|
-
thinkingLevel: GetOnePromptThinkingLevel$outboundSchema.optional(),
|
|
1117
|
-
}).transform((v) => {
|
|
1118
|
-
return remap$(v, {
|
|
1119
|
-
encodingFormat: "encoding_format",
|
|
1120
|
-
});
|
|
1121
|
-
});
|
|
1122
|
-
|
|
1123
|
-
export function getOnePromptModelParametersToJSON(
|
|
1124
|
-
getOnePromptModelParameters: GetOnePromptModelParameters,
|
|
1125
|
-
): string {
|
|
1126
|
-
return JSON.stringify(
|
|
1127
|
-
GetOnePromptModelParameters$outboundSchema.parse(
|
|
1128
|
-
getOnePromptModelParameters,
|
|
1129
|
-
),
|
|
1130
|
-
);
|
|
1131
|
-
}
|
|
1132
|
-
export function getOnePromptModelParametersFromJSON(
|
|
1133
|
-
jsonString: string,
|
|
1134
|
-
): SafeParseResult<GetOnePromptModelParameters, SDKValidationError> {
|
|
1135
|
-
return safeParse(
|
|
1136
|
-
jsonString,
|
|
1137
|
-
(x) => GetOnePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1138
|
-
`Failed to parse 'GetOnePromptModelParameters' from JSON`,
|
|
1139
|
-
);
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
/** @internal */
|
|
1143
|
-
export const GetOnePromptProvider$inboundSchema: z.ZodNativeEnum<
|
|
1144
|
-
typeof GetOnePromptProvider
|
|
1145
|
-
> = z.nativeEnum(GetOnePromptProvider);
|
|
1146
|
-
/** @internal */
|
|
1147
|
-
export const GetOnePromptProvider$outboundSchema: z.ZodNativeEnum<
|
|
1148
|
-
typeof GetOnePromptProvider
|
|
1149
|
-
> = GetOnePromptProvider$inboundSchema;
|
|
1150
|
-
|
|
1151
|
-
/** @internal */
|
|
1152
|
-
export const GetOnePromptRole$inboundSchema: z.ZodNativeEnum<
|
|
1153
|
-
typeof GetOnePromptRole
|
|
1154
|
-
> = z.nativeEnum(GetOnePromptRole);
|
|
1155
|
-
/** @internal */
|
|
1156
|
-
export const GetOnePromptRole$outboundSchema: z.ZodNativeEnum<
|
|
1157
|
-
typeof GetOnePromptRole
|
|
1158
|
-
> = GetOnePromptRole$inboundSchema;
|
|
1159
|
-
|
|
1160
|
-
/** @internal */
|
|
1161
|
-
export const GetOnePrompt2PromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
1162
|
-
typeof GetOnePrompt2PromptsResponseType
|
|
1163
|
-
> = z.nativeEnum(GetOnePrompt2PromptsResponseType);
|
|
1164
|
-
/** @internal */
|
|
1165
|
-
export const GetOnePrompt2PromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
1166
|
-
typeof GetOnePrompt2PromptsResponseType
|
|
1167
|
-
> = GetOnePrompt2PromptsResponseType$inboundSchema;
|
|
1168
|
-
|
|
1169
|
-
/** @internal */
|
|
1170
|
-
export const GetOnePrompt2File$inboundSchema: z.ZodType<
|
|
1171
|
-
GetOnePrompt2File,
|
|
1172
|
-
z.ZodTypeDef,
|
|
1173
|
-
unknown
|
|
1174
|
-
> = z.object({
|
|
1175
|
-
file_data: z.string().optional(),
|
|
1176
|
-
uri: z.string().optional(),
|
|
1177
|
-
mimeType: z.string().optional(),
|
|
1178
|
-
filename: z.string().optional(),
|
|
1179
|
-
}).transform((v) => {
|
|
1180
|
-
return remap$(v, {
|
|
1181
|
-
"file_data": "fileData",
|
|
1182
|
-
});
|
|
1183
|
-
});
|
|
1184
|
-
/** @internal */
|
|
1185
|
-
export type GetOnePrompt2File$Outbound = {
|
|
1186
|
-
file_data?: string | undefined;
|
|
1187
|
-
uri?: string | undefined;
|
|
1188
|
-
mimeType?: string | undefined;
|
|
1189
|
-
filename?: string | undefined;
|
|
1190
|
-
};
|
|
1191
|
-
|
|
1192
|
-
/** @internal */
|
|
1193
|
-
export const GetOnePrompt2File$outboundSchema: z.ZodType<
|
|
1194
|
-
GetOnePrompt2File$Outbound,
|
|
1195
|
-
z.ZodTypeDef,
|
|
1196
|
-
GetOnePrompt2File
|
|
1197
|
-
> = z.object({
|
|
1198
|
-
fileData: z.string().optional(),
|
|
1199
|
-
uri: z.string().optional(),
|
|
1200
|
-
mimeType: z.string().optional(),
|
|
1201
|
-
filename: z.string().optional(),
|
|
1202
|
-
}).transform((v) => {
|
|
1203
|
-
return remap$(v, {
|
|
1204
|
-
fileData: "file_data",
|
|
1205
|
-
});
|
|
1206
|
-
});
|
|
1207
|
-
|
|
1208
|
-
export function getOnePrompt2FileToJSON(
|
|
1209
|
-
getOnePrompt2File: GetOnePrompt2File,
|
|
1210
|
-
): string {
|
|
1211
|
-
return JSON.stringify(
|
|
1212
|
-
GetOnePrompt2File$outboundSchema.parse(getOnePrompt2File),
|
|
1213
|
-
);
|
|
1214
|
-
}
|
|
1215
|
-
export function getOnePrompt2FileFromJSON(
|
|
1216
|
-
jsonString: string,
|
|
1217
|
-
): SafeParseResult<GetOnePrompt2File, SDKValidationError> {
|
|
1218
|
-
return safeParse(
|
|
1219
|
-
jsonString,
|
|
1220
|
-
(x) => GetOnePrompt2File$inboundSchema.parse(JSON.parse(x)),
|
|
1221
|
-
`Failed to parse 'GetOnePrompt2File' from JSON`,
|
|
1222
|
-
);
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
/** @internal */
|
|
1226
|
-
export const GetOnePrompt23$inboundSchema: z.ZodType<
|
|
1227
|
-
GetOnePrompt23,
|
|
1228
|
-
z.ZodTypeDef,
|
|
1229
|
-
unknown
|
|
1230
|
-
> = z.object({
|
|
1231
|
-
type: GetOnePrompt2PromptsResponseType$inboundSchema,
|
|
1232
|
-
file: z.lazy(() => GetOnePrompt2File$inboundSchema),
|
|
1233
|
-
});
|
|
1234
|
-
/** @internal */
|
|
1235
|
-
export type GetOnePrompt23$Outbound = {
|
|
1236
|
-
type: string;
|
|
1237
|
-
file: GetOnePrompt2File$Outbound;
|
|
1238
|
-
};
|
|
1239
|
-
|
|
1240
|
-
/** @internal */
|
|
1241
|
-
export const GetOnePrompt23$outboundSchema: z.ZodType<
|
|
1242
|
-
GetOnePrompt23$Outbound,
|
|
1243
|
-
z.ZodTypeDef,
|
|
1244
|
-
GetOnePrompt23
|
|
1245
|
-
> = z.object({
|
|
1246
|
-
type: GetOnePrompt2PromptsResponseType$outboundSchema,
|
|
1247
|
-
file: z.lazy(() => GetOnePrompt2File$outboundSchema),
|
|
1248
|
-
});
|
|
1249
|
-
|
|
1250
|
-
export function getOnePrompt23ToJSON(getOnePrompt23: GetOnePrompt23): string {
|
|
1251
|
-
return JSON.stringify(GetOnePrompt23$outboundSchema.parse(getOnePrompt23));
|
|
1252
|
-
}
|
|
1253
|
-
export function getOnePrompt23FromJSON(
|
|
1254
|
-
jsonString: string,
|
|
1255
|
-
): SafeParseResult<GetOnePrompt23, SDKValidationError> {
|
|
1256
|
-
return safeParse(
|
|
1257
|
-
jsonString,
|
|
1258
|
-
(x) => GetOnePrompt23$inboundSchema.parse(JSON.parse(x)),
|
|
1259
|
-
`Failed to parse 'GetOnePrompt23' from JSON`,
|
|
1260
|
-
);
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
/** @internal */
|
|
1264
|
-
export const GetOnePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1265
|
-
typeof GetOnePrompt2PromptsType
|
|
1266
|
-
> = z.nativeEnum(GetOnePrompt2PromptsType);
|
|
1267
|
-
/** @internal */
|
|
1268
|
-
export const GetOnePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1269
|
-
typeof GetOnePrompt2PromptsType
|
|
1270
|
-
> = GetOnePrompt2PromptsType$inboundSchema;
|
|
1271
|
-
|
|
1272
|
-
/** @internal */
|
|
1273
|
-
export const GetOnePrompt2ImageUrl$inboundSchema: z.ZodType<
|
|
1274
|
-
GetOnePrompt2ImageUrl,
|
|
1275
|
-
z.ZodTypeDef,
|
|
1276
|
-
unknown
|
|
1277
|
-
> = z.object({
|
|
1278
|
-
id: z.string().optional(),
|
|
1279
|
-
url: z.string(),
|
|
1280
|
-
detail: z.string().optional(),
|
|
1281
|
-
});
|
|
1282
|
-
/** @internal */
|
|
1283
|
-
export type GetOnePrompt2ImageUrl$Outbound = {
|
|
1284
|
-
id?: string | undefined;
|
|
1285
|
-
url: string;
|
|
1286
|
-
detail?: string | undefined;
|
|
1287
|
-
};
|
|
1288
|
-
|
|
1289
|
-
/** @internal */
|
|
1290
|
-
export const GetOnePrompt2ImageUrl$outboundSchema: z.ZodType<
|
|
1291
|
-
GetOnePrompt2ImageUrl$Outbound,
|
|
1292
|
-
z.ZodTypeDef,
|
|
1293
|
-
GetOnePrompt2ImageUrl
|
|
1294
|
-
> = z.object({
|
|
1295
|
-
id: z.string().optional(),
|
|
1296
|
-
url: z.string(),
|
|
1297
|
-
detail: z.string().optional(),
|
|
1298
|
-
});
|
|
1299
|
-
|
|
1300
|
-
export function getOnePrompt2ImageUrlToJSON(
|
|
1301
|
-
getOnePrompt2ImageUrl: GetOnePrompt2ImageUrl,
|
|
1302
|
-
): string {
|
|
1303
|
-
return JSON.stringify(
|
|
1304
|
-
GetOnePrompt2ImageUrl$outboundSchema.parse(getOnePrompt2ImageUrl),
|
|
1305
|
-
);
|
|
1306
|
-
}
|
|
1307
|
-
export function getOnePrompt2ImageUrlFromJSON(
|
|
1308
|
-
jsonString: string,
|
|
1309
|
-
): SafeParseResult<GetOnePrompt2ImageUrl, SDKValidationError> {
|
|
1310
|
-
return safeParse(
|
|
1311
|
-
jsonString,
|
|
1312
|
-
(x) => GetOnePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1313
|
-
`Failed to parse 'GetOnePrompt2ImageUrl' from JSON`,
|
|
1314
|
-
);
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
|
-
/** @internal */
|
|
1318
|
-
export const GetOnePrompt22$inboundSchema: z.ZodType<
|
|
1319
|
-
GetOnePrompt22,
|
|
1320
|
-
z.ZodTypeDef,
|
|
1321
|
-
unknown
|
|
1322
|
-
> = z.object({
|
|
1323
|
-
type: GetOnePrompt2PromptsType$inboundSchema,
|
|
1324
|
-
image_url: z.lazy(() => GetOnePrompt2ImageUrl$inboundSchema),
|
|
1325
|
-
}).transform((v) => {
|
|
1326
|
-
return remap$(v, {
|
|
1327
|
-
"image_url": "imageUrl",
|
|
1328
|
-
});
|
|
1329
|
-
});
|
|
1330
|
-
/** @internal */
|
|
1331
|
-
export type GetOnePrompt22$Outbound = {
|
|
1332
|
-
type: string;
|
|
1333
|
-
image_url: GetOnePrompt2ImageUrl$Outbound;
|
|
1334
|
-
};
|
|
1335
|
-
|
|
1336
|
-
/** @internal */
|
|
1337
|
-
export const GetOnePrompt22$outboundSchema: z.ZodType<
|
|
1338
|
-
GetOnePrompt22$Outbound,
|
|
1339
|
-
z.ZodTypeDef,
|
|
1340
|
-
GetOnePrompt22
|
|
1341
|
-
> = z.object({
|
|
1342
|
-
type: GetOnePrompt2PromptsType$outboundSchema,
|
|
1343
|
-
imageUrl: z.lazy(() => GetOnePrompt2ImageUrl$outboundSchema),
|
|
1344
|
-
}).transform((v) => {
|
|
1345
|
-
return remap$(v, {
|
|
1346
|
-
imageUrl: "image_url",
|
|
1347
|
-
});
|
|
1348
|
-
});
|
|
1349
|
-
|
|
1350
|
-
export function getOnePrompt22ToJSON(getOnePrompt22: GetOnePrompt22): string {
|
|
1351
|
-
return JSON.stringify(GetOnePrompt22$outboundSchema.parse(getOnePrompt22));
|
|
1352
|
-
}
|
|
1353
|
-
export function getOnePrompt22FromJSON(
|
|
1354
|
-
jsonString: string,
|
|
1355
|
-
): SafeParseResult<GetOnePrompt22, SDKValidationError> {
|
|
1356
|
-
return safeParse(
|
|
1357
|
-
jsonString,
|
|
1358
|
-
(x) => GetOnePrompt22$inboundSchema.parse(JSON.parse(x)),
|
|
1359
|
-
`Failed to parse 'GetOnePrompt22' from JSON`,
|
|
1360
|
-
);
|
|
1361
|
-
}
|
|
1362
|
-
|
|
1363
|
-
/** @internal */
|
|
1364
|
-
export const GetOnePrompt2Type$inboundSchema: z.ZodNativeEnum<
|
|
1365
|
-
typeof GetOnePrompt2Type
|
|
1366
|
-
> = z.nativeEnum(GetOnePrompt2Type);
|
|
1367
|
-
/** @internal */
|
|
1368
|
-
export const GetOnePrompt2Type$outboundSchema: z.ZodNativeEnum<
|
|
1369
|
-
typeof GetOnePrompt2Type
|
|
1370
|
-
> = GetOnePrompt2Type$inboundSchema;
|
|
1371
|
-
|
|
1372
|
-
/** @internal */
|
|
1373
|
-
export const GetOnePrompt21$inboundSchema: z.ZodType<
|
|
1374
|
-
GetOnePrompt21,
|
|
1375
|
-
z.ZodTypeDef,
|
|
1376
|
-
unknown
|
|
1377
|
-
> = z.object({
|
|
1378
|
-
type: GetOnePrompt2Type$inboundSchema,
|
|
1379
|
-
text: z.string(),
|
|
1380
|
-
});
|
|
1381
|
-
/** @internal */
|
|
1382
|
-
export type GetOnePrompt21$Outbound = {
|
|
1383
|
-
type: string;
|
|
1384
|
-
text: string;
|
|
1385
|
-
};
|
|
1386
|
-
|
|
1387
|
-
/** @internal */
|
|
1388
|
-
export const GetOnePrompt21$outboundSchema: z.ZodType<
|
|
1389
|
-
GetOnePrompt21$Outbound,
|
|
1390
|
-
z.ZodTypeDef,
|
|
1391
|
-
GetOnePrompt21
|
|
1392
|
-
> = z.object({
|
|
1393
|
-
type: GetOnePrompt2Type$outboundSchema,
|
|
1394
|
-
text: z.string(),
|
|
1395
|
-
});
|
|
1396
|
-
|
|
1397
|
-
export function getOnePrompt21ToJSON(getOnePrompt21: GetOnePrompt21): string {
|
|
1398
|
-
return JSON.stringify(GetOnePrompt21$outboundSchema.parse(getOnePrompt21));
|
|
1399
|
-
}
|
|
1400
|
-
export function getOnePrompt21FromJSON(
|
|
1401
|
-
jsonString: string,
|
|
1402
|
-
): SafeParseResult<GetOnePrompt21, SDKValidationError> {
|
|
1403
|
-
return safeParse(
|
|
1404
|
-
jsonString,
|
|
1405
|
-
(x) => GetOnePrompt21$inboundSchema.parse(JSON.parse(x)),
|
|
1406
|
-
`Failed to parse 'GetOnePrompt21' from JSON`,
|
|
1407
|
-
);
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
|
-
/** @internal */
|
|
1411
|
-
export const GetOnePromptContent2$inboundSchema: z.ZodType<
|
|
1412
|
-
GetOnePromptContent2,
|
|
1413
|
-
z.ZodTypeDef,
|
|
1414
|
-
unknown
|
|
1415
|
-
> = z.union([
|
|
1416
|
-
z.lazy(() => GetOnePrompt21$inboundSchema),
|
|
1417
|
-
z.lazy(() => GetOnePrompt22$inboundSchema),
|
|
1418
|
-
z.lazy(() => GetOnePrompt23$inboundSchema),
|
|
1419
|
-
]);
|
|
1420
|
-
/** @internal */
|
|
1421
|
-
export type GetOnePromptContent2$Outbound =
|
|
1422
|
-
| GetOnePrompt21$Outbound
|
|
1423
|
-
| GetOnePrompt22$Outbound
|
|
1424
|
-
| GetOnePrompt23$Outbound;
|
|
1425
|
-
|
|
1426
|
-
/** @internal */
|
|
1427
|
-
export const GetOnePromptContent2$outboundSchema: z.ZodType<
|
|
1428
|
-
GetOnePromptContent2$Outbound,
|
|
1429
|
-
z.ZodTypeDef,
|
|
1430
|
-
GetOnePromptContent2
|
|
1431
|
-
> = z.union([
|
|
1432
|
-
z.lazy(() => GetOnePrompt21$outboundSchema),
|
|
1433
|
-
z.lazy(() => GetOnePrompt22$outboundSchema),
|
|
1434
|
-
z.lazy(() => GetOnePrompt23$outboundSchema),
|
|
1435
|
-
]);
|
|
1436
|
-
|
|
1437
|
-
export function getOnePromptContent2ToJSON(
|
|
1438
|
-
getOnePromptContent2: GetOnePromptContent2,
|
|
1439
|
-
): string {
|
|
1440
|
-
return JSON.stringify(
|
|
1441
|
-
GetOnePromptContent2$outboundSchema.parse(getOnePromptContent2),
|
|
1442
|
-
);
|
|
1443
|
-
}
|
|
1444
|
-
export function getOnePromptContent2FromJSON(
|
|
1445
|
-
jsonString: string,
|
|
1446
|
-
): SafeParseResult<GetOnePromptContent2, SDKValidationError> {
|
|
1447
|
-
return safeParse(
|
|
1448
|
-
jsonString,
|
|
1449
|
-
(x) => GetOnePromptContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1450
|
-
`Failed to parse 'GetOnePromptContent2' from JSON`,
|
|
1451
|
-
);
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
/** @internal */
|
|
1455
|
-
export const GetOnePromptContent$inboundSchema: z.ZodType<
|
|
1456
|
-
GetOnePromptContent,
|
|
1457
|
-
z.ZodTypeDef,
|
|
1458
|
-
unknown
|
|
1459
|
-
> = z.union([
|
|
1460
|
-
z.string(),
|
|
1461
|
-
z.array(z.union([
|
|
1462
|
-
z.lazy(() => GetOnePrompt21$inboundSchema),
|
|
1463
|
-
z.lazy(() => GetOnePrompt22$inboundSchema),
|
|
1464
|
-
z.lazy(() => GetOnePrompt23$inboundSchema),
|
|
1465
|
-
])),
|
|
1466
|
-
]);
|
|
1467
|
-
/** @internal */
|
|
1468
|
-
export type GetOnePromptContent$Outbound =
|
|
1469
|
-
| string
|
|
1470
|
-
| Array<
|
|
1471
|
-
GetOnePrompt21$Outbound | GetOnePrompt22$Outbound | GetOnePrompt23$Outbound
|
|
1472
|
-
>;
|
|
1473
|
-
|
|
1474
|
-
/** @internal */
|
|
1475
|
-
export const GetOnePromptContent$outboundSchema: z.ZodType<
|
|
1476
|
-
GetOnePromptContent$Outbound,
|
|
1477
|
-
z.ZodTypeDef,
|
|
1478
|
-
GetOnePromptContent
|
|
1479
|
-
> = z.union([
|
|
1480
|
-
z.string(),
|
|
1481
|
-
z.array(z.union([
|
|
1482
|
-
z.lazy(() => GetOnePrompt21$outboundSchema),
|
|
1483
|
-
z.lazy(() => GetOnePrompt22$outboundSchema),
|
|
1484
|
-
z.lazy(() => GetOnePrompt23$outboundSchema),
|
|
1485
|
-
])),
|
|
1486
|
-
]);
|
|
1487
|
-
|
|
1488
|
-
export function getOnePromptContentToJSON(
|
|
1489
|
-
getOnePromptContent: GetOnePromptContent,
|
|
1490
|
-
): string {
|
|
1491
|
-
return JSON.stringify(
|
|
1492
|
-
GetOnePromptContent$outboundSchema.parse(getOnePromptContent),
|
|
1493
|
-
);
|
|
1494
|
-
}
|
|
1495
|
-
export function getOnePromptContentFromJSON(
|
|
1496
|
-
jsonString: string,
|
|
1497
|
-
): SafeParseResult<GetOnePromptContent, SDKValidationError> {
|
|
1498
|
-
return safeParse(
|
|
1499
|
-
jsonString,
|
|
1500
|
-
(x) => GetOnePromptContent$inboundSchema.parse(JSON.parse(x)),
|
|
1501
|
-
`Failed to parse 'GetOnePromptContent' from JSON`,
|
|
1502
|
-
);
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
/** @internal */
|
|
1506
|
-
export const GetOnePromptPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1507
|
-
typeof GetOnePromptPromptsType
|
|
1508
|
-
> = z.nativeEnum(GetOnePromptPromptsType);
|
|
1509
|
-
/** @internal */
|
|
1510
|
-
export const GetOnePromptPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1511
|
-
typeof GetOnePromptPromptsType
|
|
1512
|
-
> = GetOnePromptPromptsType$inboundSchema;
|
|
1513
|
-
|
|
1514
|
-
/** @internal */
|
|
1515
|
-
export const GetOnePromptFunction$inboundSchema: z.ZodType<
|
|
1516
|
-
GetOnePromptFunction,
|
|
1517
|
-
z.ZodTypeDef,
|
|
1518
|
-
unknown
|
|
1519
|
-
> = z.object({
|
|
1520
|
-
name: z.string(),
|
|
1521
|
-
arguments: z.string(),
|
|
1522
|
-
});
|
|
1523
|
-
/** @internal */
|
|
1524
|
-
export type GetOnePromptFunction$Outbound = {
|
|
1525
|
-
name: string;
|
|
1526
|
-
arguments: string;
|
|
1527
|
-
};
|
|
1528
|
-
|
|
1529
|
-
/** @internal */
|
|
1530
|
-
export const GetOnePromptFunction$outboundSchema: z.ZodType<
|
|
1531
|
-
GetOnePromptFunction$Outbound,
|
|
1532
|
-
z.ZodTypeDef,
|
|
1533
|
-
GetOnePromptFunction
|
|
1534
|
-
> = z.object({
|
|
1535
|
-
name: z.string(),
|
|
1536
|
-
arguments: z.string(),
|
|
1537
|
-
});
|
|
1538
|
-
|
|
1539
|
-
export function getOnePromptFunctionToJSON(
|
|
1540
|
-
getOnePromptFunction: GetOnePromptFunction,
|
|
1541
|
-
): string {
|
|
1542
|
-
return JSON.stringify(
|
|
1543
|
-
GetOnePromptFunction$outboundSchema.parse(getOnePromptFunction),
|
|
1544
|
-
);
|
|
1545
|
-
}
|
|
1546
|
-
export function getOnePromptFunctionFromJSON(
|
|
1547
|
-
jsonString: string,
|
|
1548
|
-
): SafeParseResult<GetOnePromptFunction, SDKValidationError> {
|
|
1549
|
-
return safeParse(
|
|
1550
|
-
jsonString,
|
|
1551
|
-
(x) => GetOnePromptFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1552
|
-
`Failed to parse 'GetOnePromptFunction' from JSON`,
|
|
1553
|
-
);
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
/** @internal */
|
|
1557
|
-
export const GetOnePromptToolCalls$inboundSchema: z.ZodType<
|
|
1558
|
-
GetOnePromptToolCalls,
|
|
1559
|
-
z.ZodTypeDef,
|
|
1560
|
-
unknown
|
|
1561
|
-
> = z.object({
|
|
1562
|
-
id: z.string().optional(),
|
|
1563
|
-
index: z.number().optional(),
|
|
1564
|
-
type: GetOnePromptPromptsType$inboundSchema,
|
|
1565
|
-
function: z.lazy(() => GetOnePromptFunction$inboundSchema),
|
|
1566
|
-
});
|
|
1567
|
-
/** @internal */
|
|
1568
|
-
export type GetOnePromptToolCalls$Outbound = {
|
|
1569
|
-
id?: string | undefined;
|
|
1570
|
-
index?: number | undefined;
|
|
1571
|
-
type: string;
|
|
1572
|
-
function: GetOnePromptFunction$Outbound;
|
|
1573
|
-
};
|
|
1574
|
-
|
|
1575
|
-
/** @internal */
|
|
1576
|
-
export const GetOnePromptToolCalls$outboundSchema: z.ZodType<
|
|
1577
|
-
GetOnePromptToolCalls$Outbound,
|
|
1578
|
-
z.ZodTypeDef,
|
|
1579
|
-
GetOnePromptToolCalls
|
|
1580
|
-
> = z.object({
|
|
1581
|
-
id: z.string().optional(),
|
|
1582
|
-
index: z.number().optional(),
|
|
1583
|
-
type: GetOnePromptPromptsType$outboundSchema,
|
|
1584
|
-
function: z.lazy(() => GetOnePromptFunction$outboundSchema),
|
|
1585
|
-
});
|
|
1586
|
-
|
|
1587
|
-
export function getOnePromptToolCallsToJSON(
|
|
1588
|
-
getOnePromptToolCalls: GetOnePromptToolCalls,
|
|
1589
|
-
): string {
|
|
1590
|
-
return JSON.stringify(
|
|
1591
|
-
GetOnePromptToolCalls$outboundSchema.parse(getOnePromptToolCalls),
|
|
1592
|
-
);
|
|
1593
|
-
}
|
|
1594
|
-
export function getOnePromptToolCallsFromJSON(
|
|
1595
|
-
jsonString: string,
|
|
1596
|
-
): SafeParseResult<GetOnePromptToolCalls, SDKValidationError> {
|
|
1597
|
-
return safeParse(
|
|
1598
|
-
jsonString,
|
|
1599
|
-
(x) => GetOnePromptToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1600
|
-
`Failed to parse 'GetOnePromptToolCalls' from JSON`,
|
|
1601
|
-
);
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
/** @internal */
|
|
1605
|
-
export const GetOnePromptMessages$inboundSchema: z.ZodType<
|
|
1606
|
-
GetOnePromptMessages,
|
|
1607
|
-
z.ZodTypeDef,
|
|
1608
|
-
unknown
|
|
1609
|
-
> = z.object({
|
|
1610
|
-
role: GetOnePromptRole$inboundSchema,
|
|
1611
|
-
content: z.nullable(
|
|
1612
|
-
z.union([
|
|
1613
|
-
z.string(),
|
|
1614
|
-
z.array(z.union([
|
|
1615
|
-
z.lazy(() => GetOnePrompt21$inboundSchema),
|
|
1616
|
-
z.lazy(() => GetOnePrompt22$inboundSchema),
|
|
1617
|
-
z.lazy(() => GetOnePrompt23$inboundSchema),
|
|
1618
|
-
])),
|
|
1619
|
-
]),
|
|
1620
|
-
),
|
|
1621
|
-
tool_calls: z.array(z.lazy(() => GetOnePromptToolCalls$inboundSchema))
|
|
1622
|
-
.optional(),
|
|
1623
|
-
tool_call_id: z.string().optional(),
|
|
1624
|
-
}).transform((v) => {
|
|
1625
|
-
return remap$(v, {
|
|
1626
|
-
"tool_calls": "toolCalls",
|
|
1627
|
-
"tool_call_id": "toolCallId",
|
|
1628
|
-
});
|
|
1629
|
-
});
|
|
1630
|
-
/** @internal */
|
|
1631
|
-
export type GetOnePromptMessages$Outbound = {
|
|
1632
|
-
role: string;
|
|
1633
|
-
content:
|
|
1634
|
-
| string
|
|
1635
|
-
| Array<
|
|
1636
|
-
| GetOnePrompt21$Outbound
|
|
1637
|
-
| GetOnePrompt22$Outbound
|
|
1638
|
-
| GetOnePrompt23$Outbound
|
|
1639
|
-
>
|
|
1640
|
-
| null;
|
|
1641
|
-
tool_calls?: Array<GetOnePromptToolCalls$Outbound> | undefined;
|
|
1642
|
-
tool_call_id?: string | undefined;
|
|
1643
|
-
};
|
|
1644
|
-
|
|
1645
|
-
/** @internal */
|
|
1646
|
-
export const GetOnePromptMessages$outboundSchema: z.ZodType<
|
|
1647
|
-
GetOnePromptMessages$Outbound,
|
|
1648
|
-
z.ZodTypeDef,
|
|
1649
|
-
GetOnePromptMessages
|
|
1650
|
-
> = z.object({
|
|
1651
|
-
role: GetOnePromptRole$outboundSchema,
|
|
1652
|
-
content: z.nullable(
|
|
1653
|
-
z.union([
|
|
1654
|
-
z.string(),
|
|
1655
|
-
z.array(z.union([
|
|
1656
|
-
z.lazy(() => GetOnePrompt21$outboundSchema),
|
|
1657
|
-
z.lazy(() => GetOnePrompt22$outboundSchema),
|
|
1658
|
-
z.lazy(() => GetOnePrompt23$outboundSchema),
|
|
1659
|
-
])),
|
|
1660
|
-
]),
|
|
1661
|
-
),
|
|
1662
|
-
toolCalls: z.array(z.lazy(() => GetOnePromptToolCalls$outboundSchema))
|
|
1663
|
-
.optional(),
|
|
1664
|
-
toolCallId: z.string().optional(),
|
|
1665
|
-
}).transform((v) => {
|
|
1666
|
-
return remap$(v, {
|
|
1667
|
-
toolCalls: "tool_calls",
|
|
1668
|
-
toolCallId: "tool_call_id",
|
|
1669
|
-
});
|
|
1670
|
-
});
|
|
1671
|
-
|
|
1672
|
-
export function getOnePromptMessagesToJSON(
|
|
1673
|
-
getOnePromptMessages: GetOnePromptMessages,
|
|
1674
|
-
): string {
|
|
1675
|
-
return JSON.stringify(
|
|
1676
|
-
GetOnePromptMessages$outboundSchema.parse(getOnePromptMessages),
|
|
1677
|
-
);
|
|
1678
|
-
}
|
|
1679
|
-
export function getOnePromptMessagesFromJSON(
|
|
1680
|
-
jsonString: string,
|
|
1681
|
-
): SafeParseResult<GetOnePromptMessages, SDKValidationError> {
|
|
1682
|
-
return safeParse(
|
|
1683
|
-
jsonString,
|
|
1684
|
-
(x) => GetOnePromptMessages$inboundSchema.parse(JSON.parse(x)),
|
|
1685
|
-
`Failed to parse 'GetOnePromptMessages' from JSON`,
|
|
1686
|
-
);
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
/** @internal */
|
|
1690
|
-
export const GetOnePromptPromptConfig$inboundSchema: z.ZodType<
|
|
1691
|
-
GetOnePromptPromptConfig,
|
|
1692
|
-
z.ZodTypeDef,
|
|
1693
|
-
unknown
|
|
1694
|
-
> = z.object({
|
|
1695
|
-
stream: z.boolean().optional(),
|
|
1696
|
-
model: z.string().optional(),
|
|
1697
|
-
model_db_id: z.nullable(z.string()).optional(),
|
|
1698
|
-
model_type: z.nullable(GetOnePromptModelType$inboundSchema).optional(),
|
|
1699
|
-
model_parameters: z.lazy(() => GetOnePromptModelParameters$inboundSchema)
|
|
1700
|
-
.optional(),
|
|
1701
|
-
provider: GetOnePromptProvider$inboundSchema.optional(),
|
|
1702
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
1703
|
-
version: z.string().optional(),
|
|
1704
|
-
messages: z.array(z.lazy(() => GetOnePromptMessages$inboundSchema)),
|
|
1705
|
-
}).transform((v) => {
|
|
1706
|
-
return remap$(v, {
|
|
1707
|
-
"model_db_id": "modelDbId",
|
|
1708
|
-
"model_type": "modelType",
|
|
1709
|
-
"model_parameters": "modelParameters",
|
|
1710
|
-
"integration_id": "integrationId",
|
|
1711
|
-
});
|
|
1712
|
-
});
|
|
1713
|
-
/** @internal */
|
|
1714
|
-
export type GetOnePromptPromptConfig$Outbound = {
|
|
1715
|
-
stream?: boolean | undefined;
|
|
1716
|
-
model?: string | undefined;
|
|
1717
|
-
model_db_id?: string | null | undefined;
|
|
1718
|
-
model_type?: string | null | undefined;
|
|
1719
|
-
model_parameters?: GetOnePromptModelParameters$Outbound | undefined;
|
|
1720
|
-
provider?: string | undefined;
|
|
1721
|
-
integration_id?: string | null | undefined;
|
|
1722
|
-
version?: string | undefined;
|
|
1723
|
-
messages: Array<GetOnePromptMessages$Outbound>;
|
|
1724
|
-
};
|
|
1725
|
-
|
|
1726
|
-
/** @internal */
|
|
1727
|
-
export const GetOnePromptPromptConfig$outboundSchema: z.ZodType<
|
|
1728
|
-
GetOnePromptPromptConfig$Outbound,
|
|
1729
|
-
z.ZodTypeDef,
|
|
1730
|
-
GetOnePromptPromptConfig
|
|
1731
|
-
> = z.object({
|
|
1732
|
-
stream: z.boolean().optional(),
|
|
1733
|
-
model: z.string().optional(),
|
|
1734
|
-
modelDbId: z.nullable(z.string()).optional(),
|
|
1735
|
-
modelType: z.nullable(GetOnePromptModelType$outboundSchema).optional(),
|
|
1736
|
-
modelParameters: z.lazy(() => GetOnePromptModelParameters$outboundSchema)
|
|
1737
|
-
.optional(),
|
|
1738
|
-
provider: GetOnePromptProvider$outboundSchema.optional(),
|
|
1739
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
1740
|
-
version: z.string().optional(),
|
|
1741
|
-
messages: z.array(z.lazy(() => GetOnePromptMessages$outboundSchema)),
|
|
1742
|
-
}).transform((v) => {
|
|
1743
|
-
return remap$(v, {
|
|
1744
|
-
modelDbId: "model_db_id",
|
|
1745
|
-
modelType: "model_type",
|
|
1746
|
-
modelParameters: "model_parameters",
|
|
1747
|
-
integrationId: "integration_id",
|
|
1748
|
-
});
|
|
1749
|
-
});
|
|
1750
|
-
|
|
1751
|
-
export function getOnePromptPromptConfigToJSON(
|
|
1752
|
-
getOnePromptPromptConfig: GetOnePromptPromptConfig,
|
|
1753
|
-
): string {
|
|
1754
|
-
return JSON.stringify(
|
|
1755
|
-
GetOnePromptPromptConfig$outboundSchema.parse(getOnePromptPromptConfig),
|
|
1756
|
-
);
|
|
1757
|
-
}
|
|
1758
|
-
export function getOnePromptPromptConfigFromJSON(
|
|
1759
|
-
jsonString: string,
|
|
1760
|
-
): SafeParseResult<GetOnePromptPromptConfig, SDKValidationError> {
|
|
1761
|
-
return safeParse(
|
|
1762
|
-
jsonString,
|
|
1763
|
-
(x) => GetOnePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
1764
|
-
`Failed to parse 'GetOnePromptPromptConfig' from JSON`,
|
|
1765
|
-
);
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
/** @internal */
|
|
1769
|
-
export const GetOnePromptUseCases$inboundSchema: z.ZodNativeEnum<
|
|
1770
|
-
typeof GetOnePromptUseCases
|
|
1771
|
-
> = z.nativeEnum(GetOnePromptUseCases);
|
|
1772
|
-
/** @internal */
|
|
1773
|
-
export const GetOnePromptUseCases$outboundSchema: z.ZodNativeEnum<
|
|
1774
|
-
typeof GetOnePromptUseCases
|
|
1775
|
-
> = GetOnePromptUseCases$inboundSchema;
|
|
1776
|
-
|
|
1777
|
-
/** @internal */
|
|
1778
|
-
export const GetOnePromptLanguage$inboundSchema: z.ZodNativeEnum<
|
|
1779
|
-
typeof GetOnePromptLanguage
|
|
1780
|
-
> = z.nativeEnum(GetOnePromptLanguage);
|
|
1781
|
-
/** @internal */
|
|
1782
|
-
export const GetOnePromptLanguage$outboundSchema: z.ZodNativeEnum<
|
|
1783
|
-
typeof GetOnePromptLanguage
|
|
1784
|
-
> = GetOnePromptLanguage$inboundSchema;
|
|
1785
|
-
|
|
1786
|
-
/** @internal */
|
|
1787
|
-
export const GetOnePromptMetadata$inboundSchema: z.ZodType<
|
|
1788
|
-
GetOnePromptMetadata,
|
|
1789
|
-
z.ZodTypeDef,
|
|
1790
|
-
unknown
|
|
1791
|
-
> = z.object({
|
|
1792
|
-
use_cases: z.array(GetOnePromptUseCases$inboundSchema).optional(),
|
|
1793
|
-
language: z.nullable(GetOnePromptLanguage$inboundSchema).optional(),
|
|
1794
|
-
}).transform((v) => {
|
|
1795
|
-
return remap$(v, {
|
|
1796
|
-
"use_cases": "useCases",
|
|
1797
|
-
});
|
|
1798
|
-
});
|
|
1799
|
-
/** @internal */
|
|
1800
|
-
export type GetOnePromptMetadata$Outbound = {
|
|
1801
|
-
use_cases?: Array<string> | undefined;
|
|
1802
|
-
language?: string | null | undefined;
|
|
1803
|
-
};
|
|
1804
|
-
|
|
1805
|
-
/** @internal */
|
|
1806
|
-
export const GetOnePromptMetadata$outboundSchema: z.ZodType<
|
|
1807
|
-
GetOnePromptMetadata$Outbound,
|
|
1808
|
-
z.ZodTypeDef,
|
|
1809
|
-
GetOnePromptMetadata
|
|
1810
|
-
> = z.object({
|
|
1811
|
-
useCases: z.array(GetOnePromptUseCases$outboundSchema).optional(),
|
|
1812
|
-
language: z.nullable(GetOnePromptLanguage$outboundSchema).optional(),
|
|
1813
|
-
}).transform((v) => {
|
|
1814
|
-
return remap$(v, {
|
|
1815
|
-
useCases: "use_cases",
|
|
1816
|
-
});
|
|
1817
|
-
});
|
|
1818
|
-
|
|
1819
|
-
export function getOnePromptMetadataToJSON(
|
|
1820
|
-
getOnePromptMetadata: GetOnePromptMetadata,
|
|
1821
|
-
): string {
|
|
1822
|
-
return JSON.stringify(
|
|
1823
|
-
GetOnePromptMetadata$outboundSchema.parse(getOnePromptMetadata),
|
|
1824
|
-
);
|
|
1825
|
-
}
|
|
1826
|
-
export function getOnePromptMetadataFromJSON(
|
|
1827
|
-
jsonString: string,
|
|
1828
|
-
): SafeParseResult<GetOnePromptMetadata, SDKValidationError> {
|
|
1829
|
-
return safeParse(
|
|
1830
|
-
jsonString,
|
|
1831
|
-
(x) => GetOnePromptMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
1832
|
-
`Failed to parse 'GetOnePromptMetadata' from JSON`,
|
|
1833
|
-
);
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
/** @internal */
|
|
1837
|
-
export const GetOnePromptPrompt$inboundSchema: z.ZodType<
|
|
1838
|
-
GetOnePromptPrompt,
|
|
1839
|
-
z.ZodTypeDef,
|
|
1840
|
-
unknown
|
|
1841
|
-
> = z.object({
|
|
1842
|
-
_id: z.string(),
|
|
1843
|
-
type: GetOnePromptType$inboundSchema,
|
|
1844
|
-
owner: z.string(),
|
|
1845
|
-
domain_id: z.string(),
|
|
1846
|
-
created: z.string(),
|
|
1847
|
-
updated: z.string(),
|
|
1848
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
1849
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
1850
|
-
display_name: z.string(),
|
|
1851
|
-
description: z.nullable(z.string()).optional(),
|
|
1852
|
-
prompt_config: z.lazy(() => GetOnePromptPromptConfig$inboundSchema),
|
|
1853
|
-
metadata: z.lazy(() => GetOnePromptMetadata$inboundSchema).optional(),
|
|
1854
|
-
}).transform((v) => {
|
|
1855
|
-
return remap$(v, {
|
|
1856
|
-
"_id": "id",
|
|
1857
|
-
"domain_id": "domainId",
|
|
1858
|
-
"created_by_id": "createdById",
|
|
1859
|
-
"updated_by_id": "updatedById",
|
|
1860
|
-
"display_name": "displayName",
|
|
1861
|
-
"prompt_config": "promptConfig",
|
|
1862
|
-
});
|
|
1863
|
-
});
|
|
1864
|
-
/** @internal */
|
|
1865
|
-
export type GetOnePromptPrompt$Outbound = {
|
|
1866
|
-
_id: string;
|
|
1867
|
-
type: string;
|
|
1868
|
-
owner: string;
|
|
1869
|
-
domain_id: string;
|
|
1870
|
-
created: string;
|
|
1871
|
-
updated: string;
|
|
1872
|
-
created_by_id?: string | null | undefined;
|
|
1873
|
-
updated_by_id?: string | null | undefined;
|
|
1874
|
-
display_name: string;
|
|
1875
|
-
description?: string | null | undefined;
|
|
1876
|
-
prompt_config: GetOnePromptPromptConfig$Outbound;
|
|
1877
|
-
metadata?: GetOnePromptMetadata$Outbound | undefined;
|
|
1878
|
-
};
|
|
1879
|
-
|
|
1880
|
-
/** @internal */
|
|
1881
|
-
export const GetOnePromptPrompt$outboundSchema: z.ZodType<
|
|
1882
|
-
GetOnePromptPrompt$Outbound,
|
|
1883
|
-
z.ZodTypeDef,
|
|
1884
|
-
GetOnePromptPrompt
|
|
1885
|
-
> = z.object({
|
|
1886
|
-
id: z.string(),
|
|
1887
|
-
type: GetOnePromptType$outboundSchema,
|
|
1888
|
-
owner: z.string(),
|
|
1889
|
-
domainId: z.string(),
|
|
1890
|
-
created: z.string(),
|
|
1891
|
-
updated: z.string(),
|
|
1892
|
-
createdById: z.nullable(z.string()).optional(),
|
|
1893
|
-
updatedById: z.nullable(z.string()).optional(),
|
|
1894
|
-
displayName: z.string(),
|
|
1895
|
-
description: z.nullable(z.string()).optional(),
|
|
1896
|
-
promptConfig: z.lazy(() => GetOnePromptPromptConfig$outboundSchema),
|
|
1897
|
-
metadata: z.lazy(() => GetOnePromptMetadata$outboundSchema).optional(),
|
|
1898
|
-
}).transform((v) => {
|
|
1899
|
-
return remap$(v, {
|
|
1900
|
-
id: "_id",
|
|
1901
|
-
domainId: "domain_id",
|
|
1902
|
-
createdById: "created_by_id",
|
|
1903
|
-
updatedById: "updated_by_id",
|
|
1904
|
-
displayName: "display_name",
|
|
1905
|
-
promptConfig: "prompt_config",
|
|
1906
|
-
});
|
|
1907
|
-
});
|
|
1908
|
-
|
|
1909
|
-
export function getOnePromptPromptToJSON(
|
|
1910
|
-
getOnePromptPrompt: GetOnePromptPrompt,
|
|
1911
|
-
): string {
|
|
1912
|
-
return JSON.stringify(
|
|
1913
|
-
GetOnePromptPrompt$outboundSchema.parse(getOnePromptPrompt),
|
|
1914
|
-
);
|
|
1915
|
-
}
|
|
1916
|
-
export function getOnePromptPromptFromJSON(
|
|
1917
|
-
jsonString: string,
|
|
1918
|
-
): SafeParseResult<GetOnePromptPrompt, SDKValidationError> {
|
|
1919
|
-
return safeParse(
|
|
1920
|
-
jsonString,
|
|
1921
|
-
(x) => GetOnePromptPrompt$inboundSchema.parse(JSON.parse(x)),
|
|
1922
|
-
`Failed to parse 'GetOnePromptPrompt' from JSON`,
|
|
1923
|
-
);
|
|
1924
|
-
}
|