@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,1942 +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 GetPromptVersionRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* The unique identifier of the prompt
|
|
15
|
-
*/
|
|
16
|
-
promptId: string;
|
|
17
|
-
/**
|
|
18
|
-
* The unique identifier of the prompt version
|
|
19
|
-
*/
|
|
20
|
-
versionId: string;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The modality of the model
|
|
25
|
-
*/
|
|
26
|
-
export const GetPromptVersionModelType = {
|
|
27
|
-
Chat: "chat",
|
|
28
|
-
Completion: "completion",
|
|
29
|
-
Embedding: "embedding",
|
|
30
|
-
Image: "image",
|
|
31
|
-
Tts: "tts",
|
|
32
|
-
Stt: "stt",
|
|
33
|
-
Rerank: "rerank",
|
|
34
|
-
Moderation: "moderation",
|
|
35
|
-
Vision: "vision",
|
|
36
|
-
} as const;
|
|
37
|
-
/**
|
|
38
|
-
* The modality of the model
|
|
39
|
-
*/
|
|
40
|
-
export type GetPromptVersionModelType = ClosedEnum<
|
|
41
|
-
typeof GetPromptVersionModelType
|
|
42
|
-
>;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Only supported on `image` models.
|
|
46
|
-
*/
|
|
47
|
-
export const GetPromptVersionFormat = {
|
|
48
|
-
Url: "url",
|
|
49
|
-
B64Json: "b64_json",
|
|
50
|
-
Text: "text",
|
|
51
|
-
JsonObject: "json_object",
|
|
52
|
-
} as const;
|
|
53
|
-
/**
|
|
54
|
-
* Only supported on `image` models.
|
|
55
|
-
*/
|
|
56
|
-
export type GetPromptVersionFormat = ClosedEnum<typeof GetPromptVersionFormat>;
|
|
57
|
-
|
|
58
|
-
export const GetPromptVersionResponseFormat6 = {
|
|
59
|
-
Json: "json",
|
|
60
|
-
Text: "text",
|
|
61
|
-
Srt: "srt",
|
|
62
|
-
VerboseJson: "verbose_json",
|
|
63
|
-
Vtt: "vtt",
|
|
64
|
-
} as const;
|
|
65
|
-
export type GetPromptVersionResponseFormat6 = ClosedEnum<
|
|
66
|
-
typeof GetPromptVersionResponseFormat6
|
|
67
|
-
>;
|
|
68
|
-
|
|
69
|
-
export const GetPromptVersionResponseFormat5 = {
|
|
70
|
-
Url: "url",
|
|
71
|
-
Base64Json: "base64_json",
|
|
72
|
-
} as const;
|
|
73
|
-
export type GetPromptVersionResponseFormat5 = ClosedEnum<
|
|
74
|
-
typeof GetPromptVersionResponseFormat5
|
|
75
|
-
>;
|
|
76
|
-
|
|
77
|
-
export const GetPromptVersionResponseFormat4 = {
|
|
78
|
-
Mp3: "mp3",
|
|
79
|
-
Opus: "opus",
|
|
80
|
-
Aac: "aac",
|
|
81
|
-
Flac: "flac",
|
|
82
|
-
Wav: "wav",
|
|
83
|
-
Pcm: "pcm",
|
|
84
|
-
} as const;
|
|
85
|
-
export type GetPromptVersionResponseFormat4 = ClosedEnum<
|
|
86
|
-
typeof GetPromptVersionResponseFormat4
|
|
87
|
-
>;
|
|
88
|
-
|
|
89
|
-
export const GetPromptVersionResponseFormatPromptsResponseType = {
|
|
90
|
-
Text: "text",
|
|
91
|
-
} as const;
|
|
92
|
-
export type GetPromptVersionResponseFormatPromptsResponseType = ClosedEnum<
|
|
93
|
-
typeof GetPromptVersionResponseFormatPromptsResponseType
|
|
94
|
-
>;
|
|
95
|
-
|
|
96
|
-
export type GetPromptVersionResponseFormat3 = {
|
|
97
|
-
type: GetPromptVersionResponseFormatPromptsResponseType;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export const GetPromptVersionResponseFormatPromptsType = {
|
|
101
|
-
JsonObject: "json_object",
|
|
102
|
-
} as const;
|
|
103
|
-
export type GetPromptVersionResponseFormatPromptsType = ClosedEnum<
|
|
104
|
-
typeof GetPromptVersionResponseFormatPromptsType
|
|
105
|
-
>;
|
|
106
|
-
|
|
107
|
-
export type GetPromptVersionResponseFormat2 = {
|
|
108
|
-
type: GetPromptVersionResponseFormatPromptsType;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export const GetPromptVersionResponseFormatType = {
|
|
112
|
-
JsonSchema: "json_schema",
|
|
113
|
-
} as const;
|
|
114
|
-
export type GetPromptVersionResponseFormatType = ClosedEnum<
|
|
115
|
-
typeof GetPromptVersionResponseFormatType
|
|
116
|
-
>;
|
|
117
|
-
|
|
118
|
-
export type GetPromptVersionResponseFormatJsonSchema = {
|
|
119
|
-
name: string;
|
|
120
|
-
description?: string | undefined;
|
|
121
|
-
strict?: boolean | undefined;
|
|
122
|
-
schema: { [k: string]: any };
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export type GetPromptVersionResponseFormat1 = {
|
|
126
|
-
type: GetPromptVersionResponseFormatType;
|
|
127
|
-
displayName?: string | undefined;
|
|
128
|
-
jsonSchema: GetPromptVersionResponseFormatJsonSchema;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* An object specifying the format that the model must output.
|
|
133
|
-
*
|
|
134
|
-
* @remarks
|
|
135
|
-
*
|
|
136
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
137
|
-
*
|
|
138
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
139
|
-
*
|
|
140
|
-
* 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.
|
|
141
|
-
*/
|
|
142
|
-
export type GetPromptVersionResponseFormat =
|
|
143
|
-
| GetPromptVersionResponseFormat1
|
|
144
|
-
| GetPromptVersionResponseFormat2
|
|
145
|
-
| GetPromptVersionResponseFormat3
|
|
146
|
-
| GetPromptVersionResponseFormat4
|
|
147
|
-
| GetPromptVersionResponseFormat5
|
|
148
|
-
| GetPromptVersionResponseFormat6;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
152
|
-
*/
|
|
153
|
-
export const GetPromptVersionPhotoRealVersion = {
|
|
154
|
-
V1: "v1",
|
|
155
|
-
V2: "v2",
|
|
156
|
-
} as const;
|
|
157
|
-
/**
|
|
158
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
159
|
-
*/
|
|
160
|
-
export type GetPromptVersionPhotoRealVersion = ClosedEnum<
|
|
161
|
-
typeof GetPromptVersionPhotoRealVersion
|
|
162
|
-
>;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* The format to return the embeddings
|
|
166
|
-
*/
|
|
167
|
-
export const GetPromptVersionEncodingFormat = {
|
|
168
|
-
Float: "float",
|
|
169
|
-
Base64: "base64",
|
|
170
|
-
} as const;
|
|
171
|
-
/**
|
|
172
|
-
* The format to return the embeddings
|
|
173
|
-
*/
|
|
174
|
-
export type GetPromptVersionEncodingFormat = ClosedEnum<
|
|
175
|
-
typeof GetPromptVersionEncodingFormat
|
|
176
|
-
>;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
180
|
-
*/
|
|
181
|
-
export const GetPromptVersionReasoningEffort = {
|
|
182
|
-
None: "none",
|
|
183
|
-
Disable: "disable",
|
|
184
|
-
Minimal: "minimal",
|
|
185
|
-
Low: "low",
|
|
186
|
-
Medium: "medium",
|
|
187
|
-
High: "high",
|
|
188
|
-
} as const;
|
|
189
|
-
/**
|
|
190
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
191
|
-
*/
|
|
192
|
-
export type GetPromptVersionReasoningEffort = ClosedEnum<
|
|
193
|
-
typeof GetPromptVersionReasoningEffort
|
|
194
|
-
>;
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Controls the verbosity of the model output.
|
|
198
|
-
*/
|
|
199
|
-
export const GetPromptVersionVerbosity = {
|
|
200
|
-
Low: "low",
|
|
201
|
-
Medium: "medium",
|
|
202
|
-
High: "high",
|
|
203
|
-
} as const;
|
|
204
|
-
/**
|
|
205
|
-
* Controls the verbosity of the model output.
|
|
206
|
-
*/
|
|
207
|
-
export type GetPromptVersionVerbosity = ClosedEnum<
|
|
208
|
-
typeof GetPromptVersionVerbosity
|
|
209
|
-
>;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
213
|
-
*/
|
|
214
|
-
export const GetPromptVersionThinkingLevel = {
|
|
215
|
-
Low: "low",
|
|
216
|
-
High: "high",
|
|
217
|
-
} as const;
|
|
218
|
-
/**
|
|
219
|
-
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
220
|
-
*/
|
|
221
|
-
export type GetPromptVersionThinkingLevel = ClosedEnum<
|
|
222
|
-
typeof GetPromptVersionThinkingLevel
|
|
223
|
-
>;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Model Parameters: Not all parameters apply to every model
|
|
227
|
-
*/
|
|
228
|
-
export type GetPromptVersionModelParameters = {
|
|
229
|
-
/**
|
|
230
|
-
* Only supported on `chat` and `completion` models.
|
|
231
|
-
*/
|
|
232
|
-
temperature?: number | undefined;
|
|
233
|
-
/**
|
|
234
|
-
* Only supported on `chat` and `completion` models.
|
|
235
|
-
*/
|
|
236
|
-
maxTokens?: number | undefined;
|
|
237
|
-
/**
|
|
238
|
-
* Only supported on `chat` and `completion` models.
|
|
239
|
-
*/
|
|
240
|
-
topK?: number | undefined;
|
|
241
|
-
/**
|
|
242
|
-
* Only supported on `chat` and `completion` models.
|
|
243
|
-
*/
|
|
244
|
-
topP?: number | undefined;
|
|
245
|
-
/**
|
|
246
|
-
* Only supported on `chat` and `completion` models.
|
|
247
|
-
*/
|
|
248
|
-
frequencyPenalty?: number | undefined;
|
|
249
|
-
/**
|
|
250
|
-
* Only supported on `chat` and `completion` models.
|
|
251
|
-
*/
|
|
252
|
-
presencePenalty?: number | undefined;
|
|
253
|
-
/**
|
|
254
|
-
* Only supported on `image` models.
|
|
255
|
-
*/
|
|
256
|
-
numImages?: number | undefined;
|
|
257
|
-
/**
|
|
258
|
-
* Best effort deterministic seed for the model. Currently only OpenAI models support these
|
|
259
|
-
*/
|
|
260
|
-
seed?: number | undefined;
|
|
261
|
-
/**
|
|
262
|
-
* Only supported on `image` models.
|
|
263
|
-
*/
|
|
264
|
-
format?: GetPromptVersionFormat | undefined;
|
|
265
|
-
/**
|
|
266
|
-
* Only supported on `image` models.
|
|
267
|
-
*/
|
|
268
|
-
dimensions?: string | undefined;
|
|
269
|
-
/**
|
|
270
|
-
* Only supported on `image` models.
|
|
271
|
-
*/
|
|
272
|
-
quality?: string | undefined;
|
|
273
|
-
/**
|
|
274
|
-
* Only supported on `image` models.
|
|
275
|
-
*/
|
|
276
|
-
style?: string | undefined;
|
|
277
|
-
/**
|
|
278
|
-
* An object specifying the format that the model must output.
|
|
279
|
-
*
|
|
280
|
-
* @remarks
|
|
281
|
-
*
|
|
282
|
-
* Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
|
|
283
|
-
*
|
|
284
|
-
* Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
|
|
285
|
-
*
|
|
286
|
-
* 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.
|
|
287
|
-
*/
|
|
288
|
-
responseFormat?:
|
|
289
|
-
| GetPromptVersionResponseFormat1
|
|
290
|
-
| GetPromptVersionResponseFormat2
|
|
291
|
-
| GetPromptVersionResponseFormat3
|
|
292
|
-
| GetPromptVersionResponseFormat4
|
|
293
|
-
| GetPromptVersionResponseFormat5
|
|
294
|
-
| GetPromptVersionResponseFormat6
|
|
295
|
-
| null
|
|
296
|
-
| undefined;
|
|
297
|
-
/**
|
|
298
|
-
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
299
|
-
*/
|
|
300
|
-
photoRealVersion?: GetPromptVersionPhotoRealVersion | undefined;
|
|
301
|
-
/**
|
|
302
|
-
* The format to return the embeddings
|
|
303
|
-
*/
|
|
304
|
-
encodingFormat?: GetPromptVersionEncodingFormat | undefined;
|
|
305
|
-
/**
|
|
306
|
-
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
307
|
-
*/
|
|
308
|
-
reasoningEffort?: GetPromptVersionReasoningEffort | undefined;
|
|
309
|
-
/**
|
|
310
|
-
* 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`
|
|
311
|
-
*/
|
|
312
|
-
budgetTokens?: number | undefined;
|
|
313
|
-
/**
|
|
314
|
-
* Controls the verbosity of the model output.
|
|
315
|
-
*/
|
|
316
|
-
verbosity?: GetPromptVersionVerbosity | undefined;
|
|
317
|
-
/**
|
|
318
|
-
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
319
|
-
*/
|
|
320
|
-
thinkingLevel?: GetPromptVersionThinkingLevel | undefined;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
export const GetPromptVersionProvider = {
|
|
324
|
-
Cohere: "cohere",
|
|
325
|
-
Openai: "openai",
|
|
326
|
-
Anthropic: "anthropic",
|
|
327
|
-
Huggingface: "huggingface",
|
|
328
|
-
Replicate: "replicate",
|
|
329
|
-
Google: "google",
|
|
330
|
-
GoogleAi: "google-ai",
|
|
331
|
-
Azure: "azure",
|
|
332
|
-
Aws: "aws",
|
|
333
|
-
Anyscale: "anyscale",
|
|
334
|
-
Perplexity: "perplexity",
|
|
335
|
-
Groq: "groq",
|
|
336
|
-
Fal: "fal",
|
|
337
|
-
Leonardoai: "leonardoai",
|
|
338
|
-
Nvidia: "nvidia",
|
|
339
|
-
Jina: "jina",
|
|
340
|
-
Togetherai: "togetherai",
|
|
341
|
-
Elevenlabs: "elevenlabs",
|
|
342
|
-
Litellm: "litellm",
|
|
343
|
-
Openailike: "openailike",
|
|
344
|
-
Cerebras: "cerebras",
|
|
345
|
-
Bytedance: "bytedance",
|
|
346
|
-
Mistral: "mistral",
|
|
347
|
-
} as const;
|
|
348
|
-
export type GetPromptVersionProvider = ClosedEnum<
|
|
349
|
-
typeof GetPromptVersionProvider
|
|
350
|
-
>;
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* The role of the prompt message
|
|
354
|
-
*/
|
|
355
|
-
export const GetPromptVersionRole = {
|
|
356
|
-
System: "system",
|
|
357
|
-
Assistant: "assistant",
|
|
358
|
-
User: "user",
|
|
359
|
-
Exception: "exception",
|
|
360
|
-
Tool: "tool",
|
|
361
|
-
Prompt: "prompt",
|
|
362
|
-
Correction: "correction",
|
|
363
|
-
ExpectedOutput: "expected_output",
|
|
364
|
-
} as const;
|
|
365
|
-
/**
|
|
366
|
-
* The role of the prompt message
|
|
367
|
-
*/
|
|
368
|
-
export type GetPromptVersionRole = ClosedEnum<typeof GetPromptVersionRole>;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* The type of the content part. Always `file`.
|
|
372
|
-
*/
|
|
373
|
-
export const GetPromptVersion2PromptsResponseType = {
|
|
374
|
-
File: "file",
|
|
375
|
-
} as const;
|
|
376
|
-
/**
|
|
377
|
-
* The type of the content part. Always `file`.
|
|
378
|
-
*/
|
|
379
|
-
export type GetPromptVersion2PromptsResponseType = ClosedEnum<
|
|
380
|
-
typeof GetPromptVersion2PromptsResponseType
|
|
381
|
-
>;
|
|
382
|
-
|
|
383
|
-
export type GetPromptVersion2File = {
|
|
384
|
-
/**
|
|
385
|
-
* The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
|
|
386
|
-
*/
|
|
387
|
-
fileData?: string | undefined;
|
|
388
|
-
/**
|
|
389
|
-
* URL to the file. Only supported by Anthropic Claude models for PDF files.
|
|
390
|
-
*/
|
|
391
|
-
uri?: string | undefined;
|
|
392
|
-
/**
|
|
393
|
-
* MIME type of the file (e.g., application/pdf, image/png)
|
|
394
|
-
*/
|
|
395
|
-
mimeType?: string | undefined;
|
|
396
|
-
/**
|
|
397
|
-
* The name of the file, used when passing the file to the model as a string.
|
|
398
|
-
*/
|
|
399
|
-
filename?: string | undefined;
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
export type GetPromptVersion23 = {
|
|
403
|
-
/**
|
|
404
|
-
* The type of the content part. Always `file`.
|
|
405
|
-
*/
|
|
406
|
-
type: GetPromptVersion2PromptsResponseType;
|
|
407
|
-
file: GetPromptVersion2File;
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
export const GetPromptVersion2PromptsType = {
|
|
411
|
-
ImageUrl: "image_url",
|
|
412
|
-
} as const;
|
|
413
|
-
export type GetPromptVersion2PromptsType = ClosedEnum<
|
|
414
|
-
typeof GetPromptVersion2PromptsType
|
|
415
|
-
>;
|
|
416
|
-
|
|
417
|
-
export type GetPromptVersion2ImageUrl = {
|
|
418
|
-
/**
|
|
419
|
-
* The orq.ai id of the image
|
|
420
|
-
*/
|
|
421
|
-
id?: string | undefined;
|
|
422
|
-
/**
|
|
423
|
-
* Either a URL of the image or the base64 encoded data URI.
|
|
424
|
-
*/
|
|
425
|
-
url: string;
|
|
426
|
-
/**
|
|
427
|
-
* Specifies the detail level of the image. Currently only supported with OpenAI models
|
|
428
|
-
*/
|
|
429
|
-
detail?: string | undefined;
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
/**
|
|
433
|
-
* The image part of the prompt message. Only supported with vision models.
|
|
434
|
-
*/
|
|
435
|
-
export type GetPromptVersion22 = {
|
|
436
|
-
type: GetPromptVersion2PromptsType;
|
|
437
|
-
imageUrl: GetPromptVersion2ImageUrl;
|
|
438
|
-
};
|
|
439
|
-
|
|
440
|
-
export const GetPromptVersion2Type = {
|
|
441
|
-
Text: "text",
|
|
442
|
-
} as const;
|
|
443
|
-
export type GetPromptVersion2Type = ClosedEnum<typeof GetPromptVersion2Type>;
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Text content part of a prompt message
|
|
447
|
-
*/
|
|
448
|
-
export type GetPromptVersion21 = {
|
|
449
|
-
type: GetPromptVersion2Type;
|
|
450
|
-
text: string;
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
export type GetPromptVersionContent2 =
|
|
454
|
-
| GetPromptVersion21
|
|
455
|
-
| GetPromptVersion22
|
|
456
|
-
| GetPromptVersion23;
|
|
457
|
-
|
|
458
|
-
/**
|
|
459
|
-
* 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.
|
|
460
|
-
*/
|
|
461
|
-
export type GetPromptVersionContent =
|
|
462
|
-
| string
|
|
463
|
-
| Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>;
|
|
464
|
-
|
|
465
|
-
export const GetPromptVersionType = {
|
|
466
|
-
Function: "function",
|
|
467
|
-
} as const;
|
|
468
|
-
export type GetPromptVersionType = ClosedEnum<typeof GetPromptVersionType>;
|
|
469
|
-
|
|
470
|
-
export type GetPromptVersionFunction = {
|
|
471
|
-
name: string;
|
|
472
|
-
/**
|
|
473
|
-
* JSON string arguments for the functions
|
|
474
|
-
*/
|
|
475
|
-
arguments: string;
|
|
476
|
-
};
|
|
477
|
-
|
|
478
|
-
export type GetPromptVersionToolCalls = {
|
|
479
|
-
id?: string | undefined;
|
|
480
|
-
index?: number | undefined;
|
|
481
|
-
type: GetPromptVersionType;
|
|
482
|
-
function: GetPromptVersionFunction;
|
|
483
|
-
};
|
|
484
|
-
|
|
485
|
-
export type GetPromptVersionMessages = {
|
|
486
|
-
/**
|
|
487
|
-
* The role of the prompt message
|
|
488
|
-
*/
|
|
489
|
-
role: GetPromptVersionRole;
|
|
490
|
-
/**
|
|
491
|
-
* 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.
|
|
492
|
-
*/
|
|
493
|
-
content:
|
|
494
|
-
| string
|
|
495
|
-
| Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>
|
|
496
|
-
| null;
|
|
497
|
-
toolCalls?: Array<GetPromptVersionToolCalls> | undefined;
|
|
498
|
-
toolCallId?: string | undefined;
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
/**
|
|
502
|
-
* A list of messages compatible with the openAI schema
|
|
503
|
-
*/
|
|
504
|
-
export type GetPromptVersionPromptConfig = {
|
|
505
|
-
stream?: boolean | undefined;
|
|
506
|
-
model?: string | undefined;
|
|
507
|
-
/**
|
|
508
|
-
* The id of the resource
|
|
509
|
-
*/
|
|
510
|
-
modelDbId?: string | null | undefined;
|
|
511
|
-
/**
|
|
512
|
-
* The modality of the model
|
|
513
|
-
*/
|
|
514
|
-
modelType?: GetPromptVersionModelType | null | undefined;
|
|
515
|
-
/**
|
|
516
|
-
* Model Parameters: Not all parameters apply to every model
|
|
517
|
-
*/
|
|
518
|
-
modelParameters?: GetPromptVersionModelParameters | undefined;
|
|
519
|
-
provider?: GetPromptVersionProvider | undefined;
|
|
520
|
-
/**
|
|
521
|
-
* The ID of the integration to use
|
|
522
|
-
*/
|
|
523
|
-
integrationId?: string | null | undefined;
|
|
524
|
-
version?: string | undefined;
|
|
525
|
-
messages: Array<GetPromptVersionMessages>;
|
|
526
|
-
};
|
|
527
|
-
|
|
528
|
-
export const GetPromptVersionUseCases = {
|
|
529
|
-
AgentsSimulations: "Agents simulations",
|
|
530
|
-
Agents: "Agents",
|
|
531
|
-
APIInteraction: "API interaction",
|
|
532
|
-
AutonomousAgents: "Autonomous Agents",
|
|
533
|
-
Chatbots: "Chatbots",
|
|
534
|
-
Classification: "Classification",
|
|
535
|
-
CodeUnderstanding: "Code understanding",
|
|
536
|
-
CodeWriting: "Code writing",
|
|
537
|
-
Conversation: "Conversation",
|
|
538
|
-
DocumentsQA: "Documents QA",
|
|
539
|
-
Evaluation: "Evaluation",
|
|
540
|
-
Extraction: "Extraction",
|
|
541
|
-
MultiModal: "Multi-modal",
|
|
542
|
-
SelfChecking: "Self-checking",
|
|
543
|
-
SentimentAnalysis: "Sentiment analysis",
|
|
544
|
-
Sql: "SQL",
|
|
545
|
-
Summarization: "Summarization",
|
|
546
|
-
Tagging: "Tagging",
|
|
547
|
-
TranslationDocument: "Translation (document)",
|
|
548
|
-
TranslationSentences: "Translation (sentences)",
|
|
549
|
-
} as const;
|
|
550
|
-
export type GetPromptVersionUseCases = ClosedEnum<
|
|
551
|
-
typeof GetPromptVersionUseCases
|
|
552
|
-
>;
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
556
|
-
*/
|
|
557
|
-
export const GetPromptVersionLanguage = {
|
|
558
|
-
Chinese: "Chinese",
|
|
559
|
-
Dutch: "Dutch",
|
|
560
|
-
English: "English",
|
|
561
|
-
French: "French",
|
|
562
|
-
German: "German",
|
|
563
|
-
Russian: "Russian",
|
|
564
|
-
Spanish: "Spanish",
|
|
565
|
-
} as const;
|
|
566
|
-
/**
|
|
567
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
568
|
-
*/
|
|
569
|
-
export type GetPromptVersionLanguage = ClosedEnum<
|
|
570
|
-
typeof GetPromptVersionLanguage
|
|
571
|
-
>;
|
|
572
|
-
|
|
573
|
-
export type GetPromptVersionMetadata = {
|
|
574
|
-
/**
|
|
575
|
-
* 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
|
|
576
|
-
*/
|
|
577
|
-
useCases?: Array<GetPromptVersionUseCases> | undefined;
|
|
578
|
-
/**
|
|
579
|
-
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
580
|
-
*/
|
|
581
|
-
language?: GetPromptVersionLanguage | null | undefined;
|
|
582
|
-
};
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* Prompt version retrieved successfully.
|
|
586
|
-
*/
|
|
587
|
-
export type GetPromptVersionResponseBody = {
|
|
588
|
-
id: string;
|
|
589
|
-
createdById?: string | null | undefined;
|
|
590
|
-
updatedById?: string | null | undefined;
|
|
591
|
-
/**
|
|
592
|
-
* 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
|
|
593
|
-
*/
|
|
594
|
-
description?: string | null | undefined;
|
|
595
|
-
/**
|
|
596
|
-
* A list of messages compatible with the openAI schema
|
|
597
|
-
*/
|
|
598
|
-
promptConfig: GetPromptVersionPromptConfig;
|
|
599
|
-
metadata?: GetPromptVersionMetadata | undefined;
|
|
600
|
-
timestamp: string;
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
/** @internal */
|
|
604
|
-
export const GetPromptVersionRequest$inboundSchema: z.ZodType<
|
|
605
|
-
GetPromptVersionRequest,
|
|
606
|
-
z.ZodTypeDef,
|
|
607
|
-
unknown
|
|
608
|
-
> = z.object({
|
|
609
|
-
prompt_id: z.string(),
|
|
610
|
-
version_id: z.string(),
|
|
611
|
-
}).transform((v) => {
|
|
612
|
-
return remap$(v, {
|
|
613
|
-
"prompt_id": "promptId",
|
|
614
|
-
"version_id": "versionId",
|
|
615
|
-
});
|
|
616
|
-
});
|
|
617
|
-
/** @internal */
|
|
618
|
-
export type GetPromptVersionRequest$Outbound = {
|
|
619
|
-
prompt_id: string;
|
|
620
|
-
version_id: string;
|
|
621
|
-
};
|
|
622
|
-
|
|
623
|
-
/** @internal */
|
|
624
|
-
export const GetPromptVersionRequest$outboundSchema: z.ZodType<
|
|
625
|
-
GetPromptVersionRequest$Outbound,
|
|
626
|
-
z.ZodTypeDef,
|
|
627
|
-
GetPromptVersionRequest
|
|
628
|
-
> = z.object({
|
|
629
|
-
promptId: z.string(),
|
|
630
|
-
versionId: z.string(),
|
|
631
|
-
}).transform((v) => {
|
|
632
|
-
return remap$(v, {
|
|
633
|
-
promptId: "prompt_id",
|
|
634
|
-
versionId: "version_id",
|
|
635
|
-
});
|
|
636
|
-
});
|
|
637
|
-
|
|
638
|
-
export function getPromptVersionRequestToJSON(
|
|
639
|
-
getPromptVersionRequest: GetPromptVersionRequest,
|
|
640
|
-
): string {
|
|
641
|
-
return JSON.stringify(
|
|
642
|
-
GetPromptVersionRequest$outboundSchema.parse(getPromptVersionRequest),
|
|
643
|
-
);
|
|
644
|
-
}
|
|
645
|
-
export function getPromptVersionRequestFromJSON(
|
|
646
|
-
jsonString: string,
|
|
647
|
-
): SafeParseResult<GetPromptVersionRequest, SDKValidationError> {
|
|
648
|
-
return safeParse(
|
|
649
|
-
jsonString,
|
|
650
|
-
(x) => GetPromptVersionRequest$inboundSchema.parse(JSON.parse(x)),
|
|
651
|
-
`Failed to parse 'GetPromptVersionRequest' from JSON`,
|
|
652
|
-
);
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
/** @internal */
|
|
656
|
-
export const GetPromptVersionModelType$inboundSchema: z.ZodNativeEnum<
|
|
657
|
-
typeof GetPromptVersionModelType
|
|
658
|
-
> = z.nativeEnum(GetPromptVersionModelType);
|
|
659
|
-
/** @internal */
|
|
660
|
-
export const GetPromptVersionModelType$outboundSchema: z.ZodNativeEnum<
|
|
661
|
-
typeof GetPromptVersionModelType
|
|
662
|
-
> = GetPromptVersionModelType$inboundSchema;
|
|
663
|
-
|
|
664
|
-
/** @internal */
|
|
665
|
-
export const GetPromptVersionFormat$inboundSchema: z.ZodNativeEnum<
|
|
666
|
-
typeof GetPromptVersionFormat
|
|
667
|
-
> = z.nativeEnum(GetPromptVersionFormat);
|
|
668
|
-
/** @internal */
|
|
669
|
-
export const GetPromptVersionFormat$outboundSchema: z.ZodNativeEnum<
|
|
670
|
-
typeof GetPromptVersionFormat
|
|
671
|
-
> = GetPromptVersionFormat$inboundSchema;
|
|
672
|
-
|
|
673
|
-
/** @internal */
|
|
674
|
-
export const GetPromptVersionResponseFormat6$inboundSchema: z.ZodNativeEnum<
|
|
675
|
-
typeof GetPromptVersionResponseFormat6
|
|
676
|
-
> = z.nativeEnum(GetPromptVersionResponseFormat6);
|
|
677
|
-
/** @internal */
|
|
678
|
-
export const GetPromptVersionResponseFormat6$outboundSchema: z.ZodNativeEnum<
|
|
679
|
-
typeof GetPromptVersionResponseFormat6
|
|
680
|
-
> = GetPromptVersionResponseFormat6$inboundSchema;
|
|
681
|
-
|
|
682
|
-
/** @internal */
|
|
683
|
-
export const GetPromptVersionResponseFormat5$inboundSchema: z.ZodNativeEnum<
|
|
684
|
-
typeof GetPromptVersionResponseFormat5
|
|
685
|
-
> = z.nativeEnum(GetPromptVersionResponseFormat5);
|
|
686
|
-
/** @internal */
|
|
687
|
-
export const GetPromptVersionResponseFormat5$outboundSchema: z.ZodNativeEnum<
|
|
688
|
-
typeof GetPromptVersionResponseFormat5
|
|
689
|
-
> = GetPromptVersionResponseFormat5$inboundSchema;
|
|
690
|
-
|
|
691
|
-
/** @internal */
|
|
692
|
-
export const GetPromptVersionResponseFormat4$inboundSchema: z.ZodNativeEnum<
|
|
693
|
-
typeof GetPromptVersionResponseFormat4
|
|
694
|
-
> = z.nativeEnum(GetPromptVersionResponseFormat4);
|
|
695
|
-
/** @internal */
|
|
696
|
-
export const GetPromptVersionResponseFormat4$outboundSchema: z.ZodNativeEnum<
|
|
697
|
-
typeof GetPromptVersionResponseFormat4
|
|
698
|
-
> = GetPromptVersionResponseFormat4$inboundSchema;
|
|
699
|
-
|
|
700
|
-
/** @internal */
|
|
701
|
-
export const GetPromptVersionResponseFormatPromptsResponseType$inboundSchema:
|
|
702
|
-
z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsResponseType> = z
|
|
703
|
-
.nativeEnum(GetPromptVersionResponseFormatPromptsResponseType);
|
|
704
|
-
/** @internal */
|
|
705
|
-
export const GetPromptVersionResponseFormatPromptsResponseType$outboundSchema:
|
|
706
|
-
z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsResponseType> =
|
|
707
|
-
GetPromptVersionResponseFormatPromptsResponseType$inboundSchema;
|
|
708
|
-
|
|
709
|
-
/** @internal */
|
|
710
|
-
export const GetPromptVersionResponseFormat3$inboundSchema: z.ZodType<
|
|
711
|
-
GetPromptVersionResponseFormat3,
|
|
712
|
-
z.ZodTypeDef,
|
|
713
|
-
unknown
|
|
714
|
-
> = z.object({
|
|
715
|
-
type: GetPromptVersionResponseFormatPromptsResponseType$inboundSchema,
|
|
716
|
-
});
|
|
717
|
-
/** @internal */
|
|
718
|
-
export type GetPromptVersionResponseFormat3$Outbound = {
|
|
719
|
-
type: string;
|
|
720
|
-
};
|
|
721
|
-
|
|
722
|
-
/** @internal */
|
|
723
|
-
export const GetPromptVersionResponseFormat3$outboundSchema: z.ZodType<
|
|
724
|
-
GetPromptVersionResponseFormat3$Outbound,
|
|
725
|
-
z.ZodTypeDef,
|
|
726
|
-
GetPromptVersionResponseFormat3
|
|
727
|
-
> = z.object({
|
|
728
|
-
type: GetPromptVersionResponseFormatPromptsResponseType$outboundSchema,
|
|
729
|
-
});
|
|
730
|
-
|
|
731
|
-
export function getPromptVersionResponseFormat3ToJSON(
|
|
732
|
-
getPromptVersionResponseFormat3: GetPromptVersionResponseFormat3,
|
|
733
|
-
): string {
|
|
734
|
-
return JSON.stringify(
|
|
735
|
-
GetPromptVersionResponseFormat3$outboundSchema.parse(
|
|
736
|
-
getPromptVersionResponseFormat3,
|
|
737
|
-
),
|
|
738
|
-
);
|
|
739
|
-
}
|
|
740
|
-
export function getPromptVersionResponseFormat3FromJSON(
|
|
741
|
-
jsonString: string,
|
|
742
|
-
): SafeParseResult<GetPromptVersionResponseFormat3, SDKValidationError> {
|
|
743
|
-
return safeParse(
|
|
744
|
-
jsonString,
|
|
745
|
-
(x) => GetPromptVersionResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
746
|
-
`Failed to parse 'GetPromptVersionResponseFormat3' from JSON`,
|
|
747
|
-
);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
/** @internal */
|
|
751
|
-
export const GetPromptVersionResponseFormatPromptsType$inboundSchema:
|
|
752
|
-
z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsType> = z
|
|
753
|
-
.nativeEnum(GetPromptVersionResponseFormatPromptsType);
|
|
754
|
-
/** @internal */
|
|
755
|
-
export const GetPromptVersionResponseFormatPromptsType$outboundSchema:
|
|
756
|
-
z.ZodNativeEnum<typeof GetPromptVersionResponseFormatPromptsType> =
|
|
757
|
-
GetPromptVersionResponseFormatPromptsType$inboundSchema;
|
|
758
|
-
|
|
759
|
-
/** @internal */
|
|
760
|
-
export const GetPromptVersionResponseFormat2$inboundSchema: z.ZodType<
|
|
761
|
-
GetPromptVersionResponseFormat2,
|
|
762
|
-
z.ZodTypeDef,
|
|
763
|
-
unknown
|
|
764
|
-
> = z.object({
|
|
765
|
-
type: GetPromptVersionResponseFormatPromptsType$inboundSchema,
|
|
766
|
-
});
|
|
767
|
-
/** @internal */
|
|
768
|
-
export type GetPromptVersionResponseFormat2$Outbound = {
|
|
769
|
-
type: string;
|
|
770
|
-
};
|
|
771
|
-
|
|
772
|
-
/** @internal */
|
|
773
|
-
export const GetPromptVersionResponseFormat2$outboundSchema: z.ZodType<
|
|
774
|
-
GetPromptVersionResponseFormat2$Outbound,
|
|
775
|
-
z.ZodTypeDef,
|
|
776
|
-
GetPromptVersionResponseFormat2
|
|
777
|
-
> = z.object({
|
|
778
|
-
type: GetPromptVersionResponseFormatPromptsType$outboundSchema,
|
|
779
|
-
});
|
|
780
|
-
|
|
781
|
-
export function getPromptVersionResponseFormat2ToJSON(
|
|
782
|
-
getPromptVersionResponseFormat2: GetPromptVersionResponseFormat2,
|
|
783
|
-
): string {
|
|
784
|
-
return JSON.stringify(
|
|
785
|
-
GetPromptVersionResponseFormat2$outboundSchema.parse(
|
|
786
|
-
getPromptVersionResponseFormat2,
|
|
787
|
-
),
|
|
788
|
-
);
|
|
789
|
-
}
|
|
790
|
-
export function getPromptVersionResponseFormat2FromJSON(
|
|
791
|
-
jsonString: string,
|
|
792
|
-
): SafeParseResult<GetPromptVersionResponseFormat2, SDKValidationError> {
|
|
793
|
-
return safeParse(
|
|
794
|
-
jsonString,
|
|
795
|
-
(x) => GetPromptVersionResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
796
|
-
`Failed to parse 'GetPromptVersionResponseFormat2' from JSON`,
|
|
797
|
-
);
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
/** @internal */
|
|
801
|
-
export const GetPromptVersionResponseFormatType$inboundSchema: z.ZodNativeEnum<
|
|
802
|
-
typeof GetPromptVersionResponseFormatType
|
|
803
|
-
> = z.nativeEnum(GetPromptVersionResponseFormatType);
|
|
804
|
-
/** @internal */
|
|
805
|
-
export const GetPromptVersionResponseFormatType$outboundSchema: z.ZodNativeEnum<
|
|
806
|
-
typeof GetPromptVersionResponseFormatType
|
|
807
|
-
> = GetPromptVersionResponseFormatType$inboundSchema;
|
|
808
|
-
|
|
809
|
-
/** @internal */
|
|
810
|
-
export const GetPromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
811
|
-
GetPromptVersionResponseFormatJsonSchema,
|
|
812
|
-
z.ZodTypeDef,
|
|
813
|
-
unknown
|
|
814
|
-
> = z.object({
|
|
815
|
-
name: z.string(),
|
|
816
|
-
description: z.string().optional(),
|
|
817
|
-
strict: z.boolean().optional(),
|
|
818
|
-
schema: z.record(z.any()),
|
|
819
|
-
});
|
|
820
|
-
/** @internal */
|
|
821
|
-
export type GetPromptVersionResponseFormatJsonSchema$Outbound = {
|
|
822
|
-
name: string;
|
|
823
|
-
description?: string | undefined;
|
|
824
|
-
strict?: boolean | undefined;
|
|
825
|
-
schema: { [k: string]: any };
|
|
826
|
-
};
|
|
827
|
-
|
|
828
|
-
/** @internal */
|
|
829
|
-
export const GetPromptVersionResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
830
|
-
GetPromptVersionResponseFormatJsonSchema$Outbound,
|
|
831
|
-
z.ZodTypeDef,
|
|
832
|
-
GetPromptVersionResponseFormatJsonSchema
|
|
833
|
-
> = z.object({
|
|
834
|
-
name: z.string(),
|
|
835
|
-
description: z.string().optional(),
|
|
836
|
-
strict: z.boolean().optional(),
|
|
837
|
-
schema: z.record(z.any()),
|
|
838
|
-
});
|
|
839
|
-
|
|
840
|
-
export function getPromptVersionResponseFormatJsonSchemaToJSON(
|
|
841
|
-
getPromptVersionResponseFormatJsonSchema:
|
|
842
|
-
GetPromptVersionResponseFormatJsonSchema,
|
|
843
|
-
): string {
|
|
844
|
-
return JSON.stringify(
|
|
845
|
-
GetPromptVersionResponseFormatJsonSchema$outboundSchema.parse(
|
|
846
|
-
getPromptVersionResponseFormatJsonSchema,
|
|
847
|
-
),
|
|
848
|
-
);
|
|
849
|
-
}
|
|
850
|
-
export function getPromptVersionResponseFormatJsonSchemaFromJSON(
|
|
851
|
-
jsonString: string,
|
|
852
|
-
): SafeParseResult<
|
|
853
|
-
GetPromptVersionResponseFormatJsonSchema,
|
|
854
|
-
SDKValidationError
|
|
855
|
-
> {
|
|
856
|
-
return safeParse(
|
|
857
|
-
jsonString,
|
|
858
|
-
(x) =>
|
|
859
|
-
GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(
|
|
860
|
-
JSON.parse(x),
|
|
861
|
-
),
|
|
862
|
-
`Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`,
|
|
863
|
-
);
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
/** @internal */
|
|
867
|
-
export const GetPromptVersionResponseFormat1$inboundSchema: z.ZodType<
|
|
868
|
-
GetPromptVersionResponseFormat1,
|
|
869
|
-
z.ZodTypeDef,
|
|
870
|
-
unknown
|
|
871
|
-
> = z.object({
|
|
872
|
-
type: GetPromptVersionResponseFormatType$inboundSchema,
|
|
873
|
-
display_name: z.string().optional(),
|
|
874
|
-
json_schema: z.lazy(() =>
|
|
875
|
-
GetPromptVersionResponseFormatJsonSchema$inboundSchema
|
|
876
|
-
),
|
|
877
|
-
}).transform((v) => {
|
|
878
|
-
return remap$(v, {
|
|
879
|
-
"display_name": "displayName",
|
|
880
|
-
"json_schema": "jsonSchema",
|
|
881
|
-
});
|
|
882
|
-
});
|
|
883
|
-
/** @internal */
|
|
884
|
-
export type GetPromptVersionResponseFormat1$Outbound = {
|
|
885
|
-
type: string;
|
|
886
|
-
display_name?: string | undefined;
|
|
887
|
-
json_schema: GetPromptVersionResponseFormatJsonSchema$Outbound;
|
|
888
|
-
};
|
|
889
|
-
|
|
890
|
-
/** @internal */
|
|
891
|
-
export const GetPromptVersionResponseFormat1$outboundSchema: z.ZodType<
|
|
892
|
-
GetPromptVersionResponseFormat1$Outbound,
|
|
893
|
-
z.ZodTypeDef,
|
|
894
|
-
GetPromptVersionResponseFormat1
|
|
895
|
-
> = z.object({
|
|
896
|
-
type: GetPromptVersionResponseFormatType$outboundSchema,
|
|
897
|
-
displayName: z.string().optional(),
|
|
898
|
-
jsonSchema: z.lazy(() =>
|
|
899
|
-
GetPromptVersionResponseFormatJsonSchema$outboundSchema
|
|
900
|
-
),
|
|
901
|
-
}).transform((v) => {
|
|
902
|
-
return remap$(v, {
|
|
903
|
-
displayName: "display_name",
|
|
904
|
-
jsonSchema: "json_schema",
|
|
905
|
-
});
|
|
906
|
-
});
|
|
907
|
-
|
|
908
|
-
export function getPromptVersionResponseFormat1ToJSON(
|
|
909
|
-
getPromptVersionResponseFormat1: GetPromptVersionResponseFormat1,
|
|
910
|
-
): string {
|
|
911
|
-
return JSON.stringify(
|
|
912
|
-
GetPromptVersionResponseFormat1$outboundSchema.parse(
|
|
913
|
-
getPromptVersionResponseFormat1,
|
|
914
|
-
),
|
|
915
|
-
);
|
|
916
|
-
}
|
|
917
|
-
export function getPromptVersionResponseFormat1FromJSON(
|
|
918
|
-
jsonString: string,
|
|
919
|
-
): SafeParseResult<GetPromptVersionResponseFormat1, SDKValidationError> {
|
|
920
|
-
return safeParse(
|
|
921
|
-
jsonString,
|
|
922
|
-
(x) => GetPromptVersionResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
923
|
-
`Failed to parse 'GetPromptVersionResponseFormat1' from JSON`,
|
|
924
|
-
);
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
/** @internal */
|
|
928
|
-
export const GetPromptVersionResponseFormat$inboundSchema: z.ZodType<
|
|
929
|
-
GetPromptVersionResponseFormat,
|
|
930
|
-
z.ZodTypeDef,
|
|
931
|
-
unknown
|
|
932
|
-
> = z.union([
|
|
933
|
-
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
934
|
-
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
935
|
-
z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
|
|
936
|
-
GetPromptVersionResponseFormat4$inboundSchema,
|
|
937
|
-
GetPromptVersionResponseFormat5$inboundSchema,
|
|
938
|
-
GetPromptVersionResponseFormat6$inboundSchema,
|
|
939
|
-
]);
|
|
940
|
-
/** @internal */
|
|
941
|
-
export type GetPromptVersionResponseFormat$Outbound =
|
|
942
|
-
| GetPromptVersionResponseFormat1$Outbound
|
|
943
|
-
| GetPromptVersionResponseFormat2$Outbound
|
|
944
|
-
| GetPromptVersionResponseFormat3$Outbound
|
|
945
|
-
| string
|
|
946
|
-
| string
|
|
947
|
-
| string;
|
|
948
|
-
|
|
949
|
-
/** @internal */
|
|
950
|
-
export const GetPromptVersionResponseFormat$outboundSchema: z.ZodType<
|
|
951
|
-
GetPromptVersionResponseFormat$Outbound,
|
|
952
|
-
z.ZodTypeDef,
|
|
953
|
-
GetPromptVersionResponseFormat
|
|
954
|
-
> = z.union([
|
|
955
|
-
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
956
|
-
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
957
|
-
z.lazy(() => GetPromptVersionResponseFormat3$outboundSchema),
|
|
958
|
-
GetPromptVersionResponseFormat4$outboundSchema,
|
|
959
|
-
GetPromptVersionResponseFormat5$outboundSchema,
|
|
960
|
-
GetPromptVersionResponseFormat6$outboundSchema,
|
|
961
|
-
]);
|
|
962
|
-
|
|
963
|
-
export function getPromptVersionResponseFormatToJSON(
|
|
964
|
-
getPromptVersionResponseFormat: GetPromptVersionResponseFormat,
|
|
965
|
-
): string {
|
|
966
|
-
return JSON.stringify(
|
|
967
|
-
GetPromptVersionResponseFormat$outboundSchema.parse(
|
|
968
|
-
getPromptVersionResponseFormat,
|
|
969
|
-
),
|
|
970
|
-
);
|
|
971
|
-
}
|
|
972
|
-
export function getPromptVersionResponseFormatFromJSON(
|
|
973
|
-
jsonString: string,
|
|
974
|
-
): SafeParseResult<GetPromptVersionResponseFormat, SDKValidationError> {
|
|
975
|
-
return safeParse(
|
|
976
|
-
jsonString,
|
|
977
|
-
(x) => GetPromptVersionResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
978
|
-
`Failed to parse 'GetPromptVersionResponseFormat' from JSON`,
|
|
979
|
-
);
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
/** @internal */
|
|
983
|
-
export const GetPromptVersionPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
984
|
-
typeof GetPromptVersionPhotoRealVersion
|
|
985
|
-
> = z.nativeEnum(GetPromptVersionPhotoRealVersion);
|
|
986
|
-
/** @internal */
|
|
987
|
-
export const GetPromptVersionPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
988
|
-
typeof GetPromptVersionPhotoRealVersion
|
|
989
|
-
> = GetPromptVersionPhotoRealVersion$inboundSchema;
|
|
990
|
-
|
|
991
|
-
/** @internal */
|
|
992
|
-
export const GetPromptVersionEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
993
|
-
typeof GetPromptVersionEncodingFormat
|
|
994
|
-
> = z.nativeEnum(GetPromptVersionEncodingFormat);
|
|
995
|
-
/** @internal */
|
|
996
|
-
export const GetPromptVersionEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
997
|
-
typeof GetPromptVersionEncodingFormat
|
|
998
|
-
> = GetPromptVersionEncodingFormat$inboundSchema;
|
|
999
|
-
|
|
1000
|
-
/** @internal */
|
|
1001
|
-
export const GetPromptVersionReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1002
|
-
typeof GetPromptVersionReasoningEffort
|
|
1003
|
-
> = z.nativeEnum(GetPromptVersionReasoningEffort);
|
|
1004
|
-
/** @internal */
|
|
1005
|
-
export const GetPromptVersionReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1006
|
-
typeof GetPromptVersionReasoningEffort
|
|
1007
|
-
> = GetPromptVersionReasoningEffort$inboundSchema;
|
|
1008
|
-
|
|
1009
|
-
/** @internal */
|
|
1010
|
-
export const GetPromptVersionVerbosity$inboundSchema: z.ZodNativeEnum<
|
|
1011
|
-
typeof GetPromptVersionVerbosity
|
|
1012
|
-
> = z.nativeEnum(GetPromptVersionVerbosity);
|
|
1013
|
-
/** @internal */
|
|
1014
|
-
export const GetPromptVersionVerbosity$outboundSchema: z.ZodNativeEnum<
|
|
1015
|
-
typeof GetPromptVersionVerbosity
|
|
1016
|
-
> = GetPromptVersionVerbosity$inboundSchema;
|
|
1017
|
-
|
|
1018
|
-
/** @internal */
|
|
1019
|
-
export const GetPromptVersionThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
1020
|
-
typeof GetPromptVersionThinkingLevel
|
|
1021
|
-
> = z.nativeEnum(GetPromptVersionThinkingLevel);
|
|
1022
|
-
/** @internal */
|
|
1023
|
-
export const GetPromptVersionThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
1024
|
-
typeof GetPromptVersionThinkingLevel
|
|
1025
|
-
> = GetPromptVersionThinkingLevel$inboundSchema;
|
|
1026
|
-
|
|
1027
|
-
/** @internal */
|
|
1028
|
-
export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
|
|
1029
|
-
GetPromptVersionModelParameters,
|
|
1030
|
-
z.ZodTypeDef,
|
|
1031
|
-
unknown
|
|
1032
|
-
> = z.object({
|
|
1033
|
-
temperature: z.number().optional(),
|
|
1034
|
-
maxTokens: z.number().optional(),
|
|
1035
|
-
topK: z.number().optional(),
|
|
1036
|
-
topP: z.number().optional(),
|
|
1037
|
-
frequencyPenalty: z.number().optional(),
|
|
1038
|
-
presencePenalty: z.number().optional(),
|
|
1039
|
-
numImages: z.number().optional(),
|
|
1040
|
-
seed: z.number().optional(),
|
|
1041
|
-
format: GetPromptVersionFormat$inboundSchema.optional(),
|
|
1042
|
-
dimensions: z.string().optional(),
|
|
1043
|
-
quality: z.string().optional(),
|
|
1044
|
-
style: z.string().optional(),
|
|
1045
|
-
responseFormat: z.nullable(
|
|
1046
|
-
z.union([
|
|
1047
|
-
z.lazy(() => GetPromptVersionResponseFormat1$inboundSchema),
|
|
1048
|
-
z.lazy(() => GetPromptVersionResponseFormat2$inboundSchema),
|
|
1049
|
-
z.lazy(() => GetPromptVersionResponseFormat3$inboundSchema),
|
|
1050
|
-
GetPromptVersionResponseFormat4$inboundSchema,
|
|
1051
|
-
GetPromptVersionResponseFormat5$inboundSchema,
|
|
1052
|
-
GetPromptVersionResponseFormat6$inboundSchema,
|
|
1053
|
-
]),
|
|
1054
|
-
).optional(),
|
|
1055
|
-
photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
|
|
1056
|
-
encoding_format: GetPromptVersionEncodingFormat$inboundSchema.optional(),
|
|
1057
|
-
reasoningEffort: GetPromptVersionReasoningEffort$inboundSchema.optional(),
|
|
1058
|
-
budgetTokens: z.number().optional(),
|
|
1059
|
-
verbosity: GetPromptVersionVerbosity$inboundSchema.optional(),
|
|
1060
|
-
thinkingLevel: GetPromptVersionThinkingLevel$inboundSchema.optional(),
|
|
1061
|
-
}).transform((v) => {
|
|
1062
|
-
return remap$(v, {
|
|
1063
|
-
"encoding_format": "encodingFormat",
|
|
1064
|
-
});
|
|
1065
|
-
});
|
|
1066
|
-
/** @internal */
|
|
1067
|
-
export type GetPromptVersionModelParameters$Outbound = {
|
|
1068
|
-
temperature?: number | undefined;
|
|
1069
|
-
maxTokens?: number | undefined;
|
|
1070
|
-
topK?: number | undefined;
|
|
1071
|
-
topP?: number | undefined;
|
|
1072
|
-
frequencyPenalty?: number | undefined;
|
|
1073
|
-
presencePenalty?: number | undefined;
|
|
1074
|
-
numImages?: number | undefined;
|
|
1075
|
-
seed?: number | undefined;
|
|
1076
|
-
format?: string | undefined;
|
|
1077
|
-
dimensions?: string | undefined;
|
|
1078
|
-
quality?: string | undefined;
|
|
1079
|
-
style?: string | undefined;
|
|
1080
|
-
responseFormat?:
|
|
1081
|
-
| GetPromptVersionResponseFormat1$Outbound
|
|
1082
|
-
| GetPromptVersionResponseFormat2$Outbound
|
|
1083
|
-
| GetPromptVersionResponseFormat3$Outbound
|
|
1084
|
-
| string
|
|
1085
|
-
| string
|
|
1086
|
-
| string
|
|
1087
|
-
| null
|
|
1088
|
-
| undefined;
|
|
1089
|
-
photoRealVersion?: string | undefined;
|
|
1090
|
-
encoding_format?: string | undefined;
|
|
1091
|
-
reasoningEffort?: string | undefined;
|
|
1092
|
-
budgetTokens?: number | undefined;
|
|
1093
|
-
verbosity?: string | undefined;
|
|
1094
|
-
thinkingLevel?: string | undefined;
|
|
1095
|
-
};
|
|
1096
|
-
|
|
1097
|
-
/** @internal */
|
|
1098
|
-
export const GetPromptVersionModelParameters$outboundSchema: z.ZodType<
|
|
1099
|
-
GetPromptVersionModelParameters$Outbound,
|
|
1100
|
-
z.ZodTypeDef,
|
|
1101
|
-
GetPromptVersionModelParameters
|
|
1102
|
-
> = z.object({
|
|
1103
|
-
temperature: z.number().optional(),
|
|
1104
|
-
maxTokens: z.number().optional(),
|
|
1105
|
-
topK: z.number().optional(),
|
|
1106
|
-
topP: z.number().optional(),
|
|
1107
|
-
frequencyPenalty: z.number().optional(),
|
|
1108
|
-
presencePenalty: z.number().optional(),
|
|
1109
|
-
numImages: z.number().optional(),
|
|
1110
|
-
seed: z.number().optional(),
|
|
1111
|
-
format: GetPromptVersionFormat$outboundSchema.optional(),
|
|
1112
|
-
dimensions: z.string().optional(),
|
|
1113
|
-
quality: z.string().optional(),
|
|
1114
|
-
style: z.string().optional(),
|
|
1115
|
-
responseFormat: z.nullable(
|
|
1116
|
-
z.union([
|
|
1117
|
-
z.lazy(() => GetPromptVersionResponseFormat1$outboundSchema),
|
|
1118
|
-
z.lazy(() => GetPromptVersionResponseFormat2$outboundSchema),
|
|
1119
|
-
z.lazy(() => GetPromptVersionResponseFormat3$outboundSchema),
|
|
1120
|
-
GetPromptVersionResponseFormat4$outboundSchema,
|
|
1121
|
-
GetPromptVersionResponseFormat5$outboundSchema,
|
|
1122
|
-
GetPromptVersionResponseFormat6$outboundSchema,
|
|
1123
|
-
]),
|
|
1124
|
-
).optional(),
|
|
1125
|
-
photoRealVersion: GetPromptVersionPhotoRealVersion$outboundSchema.optional(),
|
|
1126
|
-
encodingFormat: GetPromptVersionEncodingFormat$outboundSchema.optional(),
|
|
1127
|
-
reasoningEffort: GetPromptVersionReasoningEffort$outboundSchema.optional(),
|
|
1128
|
-
budgetTokens: z.number().optional(),
|
|
1129
|
-
verbosity: GetPromptVersionVerbosity$outboundSchema.optional(),
|
|
1130
|
-
thinkingLevel: GetPromptVersionThinkingLevel$outboundSchema.optional(),
|
|
1131
|
-
}).transform((v) => {
|
|
1132
|
-
return remap$(v, {
|
|
1133
|
-
encodingFormat: "encoding_format",
|
|
1134
|
-
});
|
|
1135
|
-
});
|
|
1136
|
-
|
|
1137
|
-
export function getPromptVersionModelParametersToJSON(
|
|
1138
|
-
getPromptVersionModelParameters: GetPromptVersionModelParameters,
|
|
1139
|
-
): string {
|
|
1140
|
-
return JSON.stringify(
|
|
1141
|
-
GetPromptVersionModelParameters$outboundSchema.parse(
|
|
1142
|
-
getPromptVersionModelParameters,
|
|
1143
|
-
),
|
|
1144
|
-
);
|
|
1145
|
-
}
|
|
1146
|
-
export function getPromptVersionModelParametersFromJSON(
|
|
1147
|
-
jsonString: string,
|
|
1148
|
-
): SafeParseResult<GetPromptVersionModelParameters, SDKValidationError> {
|
|
1149
|
-
return safeParse(
|
|
1150
|
-
jsonString,
|
|
1151
|
-
(x) => GetPromptVersionModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1152
|
-
`Failed to parse 'GetPromptVersionModelParameters' from JSON`,
|
|
1153
|
-
);
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
/** @internal */
|
|
1157
|
-
export const GetPromptVersionProvider$inboundSchema: z.ZodNativeEnum<
|
|
1158
|
-
typeof GetPromptVersionProvider
|
|
1159
|
-
> = z.nativeEnum(GetPromptVersionProvider);
|
|
1160
|
-
/** @internal */
|
|
1161
|
-
export const GetPromptVersionProvider$outboundSchema: z.ZodNativeEnum<
|
|
1162
|
-
typeof GetPromptVersionProvider
|
|
1163
|
-
> = GetPromptVersionProvider$inboundSchema;
|
|
1164
|
-
|
|
1165
|
-
/** @internal */
|
|
1166
|
-
export const GetPromptVersionRole$inboundSchema: z.ZodNativeEnum<
|
|
1167
|
-
typeof GetPromptVersionRole
|
|
1168
|
-
> = z.nativeEnum(GetPromptVersionRole);
|
|
1169
|
-
/** @internal */
|
|
1170
|
-
export const GetPromptVersionRole$outboundSchema: z.ZodNativeEnum<
|
|
1171
|
-
typeof GetPromptVersionRole
|
|
1172
|
-
> = GetPromptVersionRole$inboundSchema;
|
|
1173
|
-
|
|
1174
|
-
/** @internal */
|
|
1175
|
-
export const GetPromptVersion2PromptsResponseType$inboundSchema:
|
|
1176
|
-
z.ZodNativeEnum<typeof GetPromptVersion2PromptsResponseType> = z.nativeEnum(
|
|
1177
|
-
GetPromptVersion2PromptsResponseType,
|
|
1178
|
-
);
|
|
1179
|
-
/** @internal */
|
|
1180
|
-
export const GetPromptVersion2PromptsResponseType$outboundSchema:
|
|
1181
|
-
z.ZodNativeEnum<typeof GetPromptVersion2PromptsResponseType> =
|
|
1182
|
-
GetPromptVersion2PromptsResponseType$inboundSchema;
|
|
1183
|
-
|
|
1184
|
-
/** @internal */
|
|
1185
|
-
export const GetPromptVersion2File$inboundSchema: z.ZodType<
|
|
1186
|
-
GetPromptVersion2File,
|
|
1187
|
-
z.ZodTypeDef,
|
|
1188
|
-
unknown
|
|
1189
|
-
> = z.object({
|
|
1190
|
-
file_data: z.string().optional(),
|
|
1191
|
-
uri: z.string().optional(),
|
|
1192
|
-
mimeType: z.string().optional(),
|
|
1193
|
-
filename: z.string().optional(),
|
|
1194
|
-
}).transform((v) => {
|
|
1195
|
-
return remap$(v, {
|
|
1196
|
-
"file_data": "fileData",
|
|
1197
|
-
});
|
|
1198
|
-
});
|
|
1199
|
-
/** @internal */
|
|
1200
|
-
export type GetPromptVersion2File$Outbound = {
|
|
1201
|
-
file_data?: string | undefined;
|
|
1202
|
-
uri?: string | undefined;
|
|
1203
|
-
mimeType?: string | undefined;
|
|
1204
|
-
filename?: string | undefined;
|
|
1205
|
-
};
|
|
1206
|
-
|
|
1207
|
-
/** @internal */
|
|
1208
|
-
export const GetPromptVersion2File$outboundSchema: z.ZodType<
|
|
1209
|
-
GetPromptVersion2File$Outbound,
|
|
1210
|
-
z.ZodTypeDef,
|
|
1211
|
-
GetPromptVersion2File
|
|
1212
|
-
> = z.object({
|
|
1213
|
-
fileData: z.string().optional(),
|
|
1214
|
-
uri: z.string().optional(),
|
|
1215
|
-
mimeType: z.string().optional(),
|
|
1216
|
-
filename: z.string().optional(),
|
|
1217
|
-
}).transform((v) => {
|
|
1218
|
-
return remap$(v, {
|
|
1219
|
-
fileData: "file_data",
|
|
1220
|
-
});
|
|
1221
|
-
});
|
|
1222
|
-
|
|
1223
|
-
export function getPromptVersion2FileToJSON(
|
|
1224
|
-
getPromptVersion2File: GetPromptVersion2File,
|
|
1225
|
-
): string {
|
|
1226
|
-
return JSON.stringify(
|
|
1227
|
-
GetPromptVersion2File$outboundSchema.parse(getPromptVersion2File),
|
|
1228
|
-
);
|
|
1229
|
-
}
|
|
1230
|
-
export function getPromptVersion2FileFromJSON(
|
|
1231
|
-
jsonString: string,
|
|
1232
|
-
): SafeParseResult<GetPromptVersion2File, SDKValidationError> {
|
|
1233
|
-
return safeParse(
|
|
1234
|
-
jsonString,
|
|
1235
|
-
(x) => GetPromptVersion2File$inboundSchema.parse(JSON.parse(x)),
|
|
1236
|
-
`Failed to parse 'GetPromptVersion2File' from JSON`,
|
|
1237
|
-
);
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
/** @internal */
|
|
1241
|
-
export const GetPromptVersion23$inboundSchema: z.ZodType<
|
|
1242
|
-
GetPromptVersion23,
|
|
1243
|
-
z.ZodTypeDef,
|
|
1244
|
-
unknown
|
|
1245
|
-
> = z.object({
|
|
1246
|
-
type: GetPromptVersion2PromptsResponseType$inboundSchema,
|
|
1247
|
-
file: z.lazy(() => GetPromptVersion2File$inboundSchema),
|
|
1248
|
-
});
|
|
1249
|
-
/** @internal */
|
|
1250
|
-
export type GetPromptVersion23$Outbound = {
|
|
1251
|
-
type: string;
|
|
1252
|
-
file: GetPromptVersion2File$Outbound;
|
|
1253
|
-
};
|
|
1254
|
-
|
|
1255
|
-
/** @internal */
|
|
1256
|
-
export const GetPromptVersion23$outboundSchema: z.ZodType<
|
|
1257
|
-
GetPromptVersion23$Outbound,
|
|
1258
|
-
z.ZodTypeDef,
|
|
1259
|
-
GetPromptVersion23
|
|
1260
|
-
> = z.object({
|
|
1261
|
-
type: GetPromptVersion2PromptsResponseType$outboundSchema,
|
|
1262
|
-
file: z.lazy(() => GetPromptVersion2File$outboundSchema),
|
|
1263
|
-
});
|
|
1264
|
-
|
|
1265
|
-
export function getPromptVersion23ToJSON(
|
|
1266
|
-
getPromptVersion23: GetPromptVersion23,
|
|
1267
|
-
): string {
|
|
1268
|
-
return JSON.stringify(
|
|
1269
|
-
GetPromptVersion23$outboundSchema.parse(getPromptVersion23),
|
|
1270
|
-
);
|
|
1271
|
-
}
|
|
1272
|
-
export function getPromptVersion23FromJSON(
|
|
1273
|
-
jsonString: string,
|
|
1274
|
-
): SafeParseResult<GetPromptVersion23, SDKValidationError> {
|
|
1275
|
-
return safeParse(
|
|
1276
|
-
jsonString,
|
|
1277
|
-
(x) => GetPromptVersion23$inboundSchema.parse(JSON.parse(x)),
|
|
1278
|
-
`Failed to parse 'GetPromptVersion23' from JSON`,
|
|
1279
|
-
);
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
/** @internal */
|
|
1283
|
-
export const GetPromptVersion2PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1284
|
-
typeof GetPromptVersion2PromptsType
|
|
1285
|
-
> = z.nativeEnum(GetPromptVersion2PromptsType);
|
|
1286
|
-
/** @internal */
|
|
1287
|
-
export const GetPromptVersion2PromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1288
|
-
typeof GetPromptVersion2PromptsType
|
|
1289
|
-
> = GetPromptVersion2PromptsType$inboundSchema;
|
|
1290
|
-
|
|
1291
|
-
/** @internal */
|
|
1292
|
-
export const GetPromptVersion2ImageUrl$inboundSchema: z.ZodType<
|
|
1293
|
-
GetPromptVersion2ImageUrl,
|
|
1294
|
-
z.ZodTypeDef,
|
|
1295
|
-
unknown
|
|
1296
|
-
> = z.object({
|
|
1297
|
-
id: z.string().optional(),
|
|
1298
|
-
url: z.string(),
|
|
1299
|
-
detail: z.string().optional(),
|
|
1300
|
-
});
|
|
1301
|
-
/** @internal */
|
|
1302
|
-
export type GetPromptVersion2ImageUrl$Outbound = {
|
|
1303
|
-
id?: string | undefined;
|
|
1304
|
-
url: string;
|
|
1305
|
-
detail?: string | undefined;
|
|
1306
|
-
};
|
|
1307
|
-
|
|
1308
|
-
/** @internal */
|
|
1309
|
-
export const GetPromptVersion2ImageUrl$outboundSchema: z.ZodType<
|
|
1310
|
-
GetPromptVersion2ImageUrl$Outbound,
|
|
1311
|
-
z.ZodTypeDef,
|
|
1312
|
-
GetPromptVersion2ImageUrl
|
|
1313
|
-
> = z.object({
|
|
1314
|
-
id: z.string().optional(),
|
|
1315
|
-
url: z.string(),
|
|
1316
|
-
detail: z.string().optional(),
|
|
1317
|
-
});
|
|
1318
|
-
|
|
1319
|
-
export function getPromptVersion2ImageUrlToJSON(
|
|
1320
|
-
getPromptVersion2ImageUrl: GetPromptVersion2ImageUrl,
|
|
1321
|
-
): string {
|
|
1322
|
-
return JSON.stringify(
|
|
1323
|
-
GetPromptVersion2ImageUrl$outboundSchema.parse(getPromptVersion2ImageUrl),
|
|
1324
|
-
);
|
|
1325
|
-
}
|
|
1326
|
-
export function getPromptVersion2ImageUrlFromJSON(
|
|
1327
|
-
jsonString: string,
|
|
1328
|
-
): SafeParseResult<GetPromptVersion2ImageUrl, SDKValidationError> {
|
|
1329
|
-
return safeParse(
|
|
1330
|
-
jsonString,
|
|
1331
|
-
(x) => GetPromptVersion2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1332
|
-
`Failed to parse 'GetPromptVersion2ImageUrl' from JSON`,
|
|
1333
|
-
);
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
/** @internal */
|
|
1337
|
-
export const GetPromptVersion22$inboundSchema: z.ZodType<
|
|
1338
|
-
GetPromptVersion22,
|
|
1339
|
-
z.ZodTypeDef,
|
|
1340
|
-
unknown
|
|
1341
|
-
> = z.object({
|
|
1342
|
-
type: GetPromptVersion2PromptsType$inboundSchema,
|
|
1343
|
-
image_url: z.lazy(() => GetPromptVersion2ImageUrl$inboundSchema),
|
|
1344
|
-
}).transform((v) => {
|
|
1345
|
-
return remap$(v, {
|
|
1346
|
-
"image_url": "imageUrl",
|
|
1347
|
-
});
|
|
1348
|
-
});
|
|
1349
|
-
/** @internal */
|
|
1350
|
-
export type GetPromptVersion22$Outbound = {
|
|
1351
|
-
type: string;
|
|
1352
|
-
image_url: GetPromptVersion2ImageUrl$Outbound;
|
|
1353
|
-
};
|
|
1354
|
-
|
|
1355
|
-
/** @internal */
|
|
1356
|
-
export const GetPromptVersion22$outboundSchema: z.ZodType<
|
|
1357
|
-
GetPromptVersion22$Outbound,
|
|
1358
|
-
z.ZodTypeDef,
|
|
1359
|
-
GetPromptVersion22
|
|
1360
|
-
> = z.object({
|
|
1361
|
-
type: GetPromptVersion2PromptsType$outboundSchema,
|
|
1362
|
-
imageUrl: z.lazy(() => GetPromptVersion2ImageUrl$outboundSchema),
|
|
1363
|
-
}).transform((v) => {
|
|
1364
|
-
return remap$(v, {
|
|
1365
|
-
imageUrl: "image_url",
|
|
1366
|
-
});
|
|
1367
|
-
});
|
|
1368
|
-
|
|
1369
|
-
export function getPromptVersion22ToJSON(
|
|
1370
|
-
getPromptVersion22: GetPromptVersion22,
|
|
1371
|
-
): string {
|
|
1372
|
-
return JSON.stringify(
|
|
1373
|
-
GetPromptVersion22$outboundSchema.parse(getPromptVersion22),
|
|
1374
|
-
);
|
|
1375
|
-
}
|
|
1376
|
-
export function getPromptVersion22FromJSON(
|
|
1377
|
-
jsonString: string,
|
|
1378
|
-
): SafeParseResult<GetPromptVersion22, SDKValidationError> {
|
|
1379
|
-
return safeParse(
|
|
1380
|
-
jsonString,
|
|
1381
|
-
(x) => GetPromptVersion22$inboundSchema.parse(JSON.parse(x)),
|
|
1382
|
-
`Failed to parse 'GetPromptVersion22' from JSON`,
|
|
1383
|
-
);
|
|
1384
|
-
}
|
|
1385
|
-
|
|
1386
|
-
/** @internal */
|
|
1387
|
-
export const GetPromptVersion2Type$inboundSchema: z.ZodNativeEnum<
|
|
1388
|
-
typeof GetPromptVersion2Type
|
|
1389
|
-
> = z.nativeEnum(GetPromptVersion2Type);
|
|
1390
|
-
/** @internal */
|
|
1391
|
-
export const GetPromptVersion2Type$outboundSchema: z.ZodNativeEnum<
|
|
1392
|
-
typeof GetPromptVersion2Type
|
|
1393
|
-
> = GetPromptVersion2Type$inboundSchema;
|
|
1394
|
-
|
|
1395
|
-
/** @internal */
|
|
1396
|
-
export const GetPromptVersion21$inboundSchema: z.ZodType<
|
|
1397
|
-
GetPromptVersion21,
|
|
1398
|
-
z.ZodTypeDef,
|
|
1399
|
-
unknown
|
|
1400
|
-
> = z.object({
|
|
1401
|
-
type: GetPromptVersion2Type$inboundSchema,
|
|
1402
|
-
text: z.string(),
|
|
1403
|
-
});
|
|
1404
|
-
/** @internal */
|
|
1405
|
-
export type GetPromptVersion21$Outbound = {
|
|
1406
|
-
type: string;
|
|
1407
|
-
text: string;
|
|
1408
|
-
};
|
|
1409
|
-
|
|
1410
|
-
/** @internal */
|
|
1411
|
-
export const GetPromptVersion21$outboundSchema: z.ZodType<
|
|
1412
|
-
GetPromptVersion21$Outbound,
|
|
1413
|
-
z.ZodTypeDef,
|
|
1414
|
-
GetPromptVersion21
|
|
1415
|
-
> = z.object({
|
|
1416
|
-
type: GetPromptVersion2Type$outboundSchema,
|
|
1417
|
-
text: z.string(),
|
|
1418
|
-
});
|
|
1419
|
-
|
|
1420
|
-
export function getPromptVersion21ToJSON(
|
|
1421
|
-
getPromptVersion21: GetPromptVersion21,
|
|
1422
|
-
): string {
|
|
1423
|
-
return JSON.stringify(
|
|
1424
|
-
GetPromptVersion21$outboundSchema.parse(getPromptVersion21),
|
|
1425
|
-
);
|
|
1426
|
-
}
|
|
1427
|
-
export function getPromptVersion21FromJSON(
|
|
1428
|
-
jsonString: string,
|
|
1429
|
-
): SafeParseResult<GetPromptVersion21, SDKValidationError> {
|
|
1430
|
-
return safeParse(
|
|
1431
|
-
jsonString,
|
|
1432
|
-
(x) => GetPromptVersion21$inboundSchema.parse(JSON.parse(x)),
|
|
1433
|
-
`Failed to parse 'GetPromptVersion21' from JSON`,
|
|
1434
|
-
);
|
|
1435
|
-
}
|
|
1436
|
-
|
|
1437
|
-
/** @internal */
|
|
1438
|
-
export const GetPromptVersionContent2$inboundSchema: z.ZodType<
|
|
1439
|
-
GetPromptVersionContent2,
|
|
1440
|
-
z.ZodTypeDef,
|
|
1441
|
-
unknown
|
|
1442
|
-
> = z.union([
|
|
1443
|
-
z.lazy(() => GetPromptVersion21$inboundSchema),
|
|
1444
|
-
z.lazy(() => GetPromptVersion22$inboundSchema),
|
|
1445
|
-
z.lazy(() => GetPromptVersion23$inboundSchema),
|
|
1446
|
-
]);
|
|
1447
|
-
/** @internal */
|
|
1448
|
-
export type GetPromptVersionContent2$Outbound =
|
|
1449
|
-
| GetPromptVersion21$Outbound
|
|
1450
|
-
| GetPromptVersion22$Outbound
|
|
1451
|
-
| GetPromptVersion23$Outbound;
|
|
1452
|
-
|
|
1453
|
-
/** @internal */
|
|
1454
|
-
export const GetPromptVersionContent2$outboundSchema: z.ZodType<
|
|
1455
|
-
GetPromptVersionContent2$Outbound,
|
|
1456
|
-
z.ZodTypeDef,
|
|
1457
|
-
GetPromptVersionContent2
|
|
1458
|
-
> = z.union([
|
|
1459
|
-
z.lazy(() => GetPromptVersion21$outboundSchema),
|
|
1460
|
-
z.lazy(() => GetPromptVersion22$outboundSchema),
|
|
1461
|
-
z.lazy(() => GetPromptVersion23$outboundSchema),
|
|
1462
|
-
]);
|
|
1463
|
-
|
|
1464
|
-
export function getPromptVersionContent2ToJSON(
|
|
1465
|
-
getPromptVersionContent2: GetPromptVersionContent2,
|
|
1466
|
-
): string {
|
|
1467
|
-
return JSON.stringify(
|
|
1468
|
-
GetPromptVersionContent2$outboundSchema.parse(getPromptVersionContent2),
|
|
1469
|
-
);
|
|
1470
|
-
}
|
|
1471
|
-
export function getPromptVersionContent2FromJSON(
|
|
1472
|
-
jsonString: string,
|
|
1473
|
-
): SafeParseResult<GetPromptVersionContent2, SDKValidationError> {
|
|
1474
|
-
return safeParse(
|
|
1475
|
-
jsonString,
|
|
1476
|
-
(x) => GetPromptVersionContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1477
|
-
`Failed to parse 'GetPromptVersionContent2' from JSON`,
|
|
1478
|
-
);
|
|
1479
|
-
}
|
|
1480
|
-
|
|
1481
|
-
/** @internal */
|
|
1482
|
-
export const GetPromptVersionContent$inboundSchema: z.ZodType<
|
|
1483
|
-
GetPromptVersionContent,
|
|
1484
|
-
z.ZodTypeDef,
|
|
1485
|
-
unknown
|
|
1486
|
-
> = z.union([
|
|
1487
|
-
z.string(),
|
|
1488
|
-
z.array(z.union([
|
|
1489
|
-
z.lazy(() => GetPromptVersion21$inboundSchema),
|
|
1490
|
-
z.lazy(() => GetPromptVersion22$inboundSchema),
|
|
1491
|
-
z.lazy(() => GetPromptVersion23$inboundSchema),
|
|
1492
|
-
])),
|
|
1493
|
-
]);
|
|
1494
|
-
/** @internal */
|
|
1495
|
-
export type GetPromptVersionContent$Outbound =
|
|
1496
|
-
| string
|
|
1497
|
-
| Array<
|
|
1498
|
-
| GetPromptVersion21$Outbound
|
|
1499
|
-
| GetPromptVersion22$Outbound
|
|
1500
|
-
| GetPromptVersion23$Outbound
|
|
1501
|
-
>;
|
|
1502
|
-
|
|
1503
|
-
/** @internal */
|
|
1504
|
-
export const GetPromptVersionContent$outboundSchema: z.ZodType<
|
|
1505
|
-
GetPromptVersionContent$Outbound,
|
|
1506
|
-
z.ZodTypeDef,
|
|
1507
|
-
GetPromptVersionContent
|
|
1508
|
-
> = z.union([
|
|
1509
|
-
z.string(),
|
|
1510
|
-
z.array(z.union([
|
|
1511
|
-
z.lazy(() => GetPromptVersion21$outboundSchema),
|
|
1512
|
-
z.lazy(() => GetPromptVersion22$outboundSchema),
|
|
1513
|
-
z.lazy(() => GetPromptVersion23$outboundSchema),
|
|
1514
|
-
])),
|
|
1515
|
-
]);
|
|
1516
|
-
|
|
1517
|
-
export function getPromptVersionContentToJSON(
|
|
1518
|
-
getPromptVersionContent: GetPromptVersionContent,
|
|
1519
|
-
): string {
|
|
1520
|
-
return JSON.stringify(
|
|
1521
|
-
GetPromptVersionContent$outboundSchema.parse(getPromptVersionContent),
|
|
1522
|
-
);
|
|
1523
|
-
}
|
|
1524
|
-
export function getPromptVersionContentFromJSON(
|
|
1525
|
-
jsonString: string,
|
|
1526
|
-
): SafeParseResult<GetPromptVersionContent, SDKValidationError> {
|
|
1527
|
-
return safeParse(
|
|
1528
|
-
jsonString,
|
|
1529
|
-
(x) => GetPromptVersionContent$inboundSchema.parse(JSON.parse(x)),
|
|
1530
|
-
`Failed to parse 'GetPromptVersionContent' from JSON`,
|
|
1531
|
-
);
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
/** @internal */
|
|
1535
|
-
export const GetPromptVersionType$inboundSchema: z.ZodNativeEnum<
|
|
1536
|
-
typeof GetPromptVersionType
|
|
1537
|
-
> = z.nativeEnum(GetPromptVersionType);
|
|
1538
|
-
/** @internal */
|
|
1539
|
-
export const GetPromptVersionType$outboundSchema: z.ZodNativeEnum<
|
|
1540
|
-
typeof GetPromptVersionType
|
|
1541
|
-
> = GetPromptVersionType$inboundSchema;
|
|
1542
|
-
|
|
1543
|
-
/** @internal */
|
|
1544
|
-
export const GetPromptVersionFunction$inboundSchema: z.ZodType<
|
|
1545
|
-
GetPromptVersionFunction,
|
|
1546
|
-
z.ZodTypeDef,
|
|
1547
|
-
unknown
|
|
1548
|
-
> = z.object({
|
|
1549
|
-
name: z.string(),
|
|
1550
|
-
arguments: z.string(),
|
|
1551
|
-
});
|
|
1552
|
-
/** @internal */
|
|
1553
|
-
export type GetPromptVersionFunction$Outbound = {
|
|
1554
|
-
name: string;
|
|
1555
|
-
arguments: string;
|
|
1556
|
-
};
|
|
1557
|
-
|
|
1558
|
-
/** @internal */
|
|
1559
|
-
export const GetPromptVersionFunction$outboundSchema: z.ZodType<
|
|
1560
|
-
GetPromptVersionFunction$Outbound,
|
|
1561
|
-
z.ZodTypeDef,
|
|
1562
|
-
GetPromptVersionFunction
|
|
1563
|
-
> = z.object({
|
|
1564
|
-
name: z.string(),
|
|
1565
|
-
arguments: z.string(),
|
|
1566
|
-
});
|
|
1567
|
-
|
|
1568
|
-
export function getPromptVersionFunctionToJSON(
|
|
1569
|
-
getPromptVersionFunction: GetPromptVersionFunction,
|
|
1570
|
-
): string {
|
|
1571
|
-
return JSON.stringify(
|
|
1572
|
-
GetPromptVersionFunction$outboundSchema.parse(getPromptVersionFunction),
|
|
1573
|
-
);
|
|
1574
|
-
}
|
|
1575
|
-
export function getPromptVersionFunctionFromJSON(
|
|
1576
|
-
jsonString: string,
|
|
1577
|
-
): SafeParseResult<GetPromptVersionFunction, SDKValidationError> {
|
|
1578
|
-
return safeParse(
|
|
1579
|
-
jsonString,
|
|
1580
|
-
(x) => GetPromptVersionFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1581
|
-
`Failed to parse 'GetPromptVersionFunction' from JSON`,
|
|
1582
|
-
);
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
/** @internal */
|
|
1586
|
-
export const GetPromptVersionToolCalls$inboundSchema: z.ZodType<
|
|
1587
|
-
GetPromptVersionToolCalls,
|
|
1588
|
-
z.ZodTypeDef,
|
|
1589
|
-
unknown
|
|
1590
|
-
> = z.object({
|
|
1591
|
-
id: z.string().optional(),
|
|
1592
|
-
index: z.number().optional(),
|
|
1593
|
-
type: GetPromptVersionType$inboundSchema,
|
|
1594
|
-
function: z.lazy(() => GetPromptVersionFunction$inboundSchema),
|
|
1595
|
-
});
|
|
1596
|
-
/** @internal */
|
|
1597
|
-
export type GetPromptVersionToolCalls$Outbound = {
|
|
1598
|
-
id?: string | undefined;
|
|
1599
|
-
index?: number | undefined;
|
|
1600
|
-
type: string;
|
|
1601
|
-
function: GetPromptVersionFunction$Outbound;
|
|
1602
|
-
};
|
|
1603
|
-
|
|
1604
|
-
/** @internal */
|
|
1605
|
-
export const GetPromptVersionToolCalls$outboundSchema: z.ZodType<
|
|
1606
|
-
GetPromptVersionToolCalls$Outbound,
|
|
1607
|
-
z.ZodTypeDef,
|
|
1608
|
-
GetPromptVersionToolCalls
|
|
1609
|
-
> = z.object({
|
|
1610
|
-
id: z.string().optional(),
|
|
1611
|
-
index: z.number().optional(),
|
|
1612
|
-
type: GetPromptVersionType$outboundSchema,
|
|
1613
|
-
function: z.lazy(() => GetPromptVersionFunction$outboundSchema),
|
|
1614
|
-
});
|
|
1615
|
-
|
|
1616
|
-
export function getPromptVersionToolCallsToJSON(
|
|
1617
|
-
getPromptVersionToolCalls: GetPromptVersionToolCalls,
|
|
1618
|
-
): string {
|
|
1619
|
-
return JSON.stringify(
|
|
1620
|
-
GetPromptVersionToolCalls$outboundSchema.parse(getPromptVersionToolCalls),
|
|
1621
|
-
);
|
|
1622
|
-
}
|
|
1623
|
-
export function getPromptVersionToolCallsFromJSON(
|
|
1624
|
-
jsonString: string,
|
|
1625
|
-
): SafeParseResult<GetPromptVersionToolCalls, SDKValidationError> {
|
|
1626
|
-
return safeParse(
|
|
1627
|
-
jsonString,
|
|
1628
|
-
(x) => GetPromptVersionToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
1629
|
-
`Failed to parse 'GetPromptVersionToolCalls' from JSON`,
|
|
1630
|
-
);
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
/** @internal */
|
|
1634
|
-
export const GetPromptVersionMessages$inboundSchema: z.ZodType<
|
|
1635
|
-
GetPromptVersionMessages,
|
|
1636
|
-
z.ZodTypeDef,
|
|
1637
|
-
unknown
|
|
1638
|
-
> = z.object({
|
|
1639
|
-
role: GetPromptVersionRole$inboundSchema,
|
|
1640
|
-
content: z.nullable(
|
|
1641
|
-
z.union([
|
|
1642
|
-
z.string(),
|
|
1643
|
-
z.array(
|
|
1644
|
-
z.union([
|
|
1645
|
-
z.lazy(() => GetPromptVersion21$inboundSchema),
|
|
1646
|
-
z.lazy(() => GetPromptVersion22$inboundSchema),
|
|
1647
|
-
z.lazy(() => GetPromptVersion23$inboundSchema),
|
|
1648
|
-
]),
|
|
1649
|
-
),
|
|
1650
|
-
]),
|
|
1651
|
-
),
|
|
1652
|
-
tool_calls: z.array(z.lazy(() => GetPromptVersionToolCalls$inboundSchema))
|
|
1653
|
-
.optional(),
|
|
1654
|
-
tool_call_id: z.string().optional(),
|
|
1655
|
-
}).transform((v) => {
|
|
1656
|
-
return remap$(v, {
|
|
1657
|
-
"tool_calls": "toolCalls",
|
|
1658
|
-
"tool_call_id": "toolCallId",
|
|
1659
|
-
});
|
|
1660
|
-
});
|
|
1661
|
-
/** @internal */
|
|
1662
|
-
export type GetPromptVersionMessages$Outbound = {
|
|
1663
|
-
role: string;
|
|
1664
|
-
content:
|
|
1665
|
-
| string
|
|
1666
|
-
| Array<
|
|
1667
|
-
| GetPromptVersion21$Outbound
|
|
1668
|
-
| GetPromptVersion22$Outbound
|
|
1669
|
-
| GetPromptVersion23$Outbound
|
|
1670
|
-
>
|
|
1671
|
-
| null;
|
|
1672
|
-
tool_calls?: Array<GetPromptVersionToolCalls$Outbound> | undefined;
|
|
1673
|
-
tool_call_id?: string | undefined;
|
|
1674
|
-
};
|
|
1675
|
-
|
|
1676
|
-
/** @internal */
|
|
1677
|
-
export const GetPromptVersionMessages$outboundSchema: z.ZodType<
|
|
1678
|
-
GetPromptVersionMessages$Outbound,
|
|
1679
|
-
z.ZodTypeDef,
|
|
1680
|
-
GetPromptVersionMessages
|
|
1681
|
-
> = z.object({
|
|
1682
|
-
role: GetPromptVersionRole$outboundSchema,
|
|
1683
|
-
content: z.nullable(
|
|
1684
|
-
z.union([
|
|
1685
|
-
z.string(),
|
|
1686
|
-
z.array(
|
|
1687
|
-
z.union([
|
|
1688
|
-
z.lazy(() => GetPromptVersion21$outboundSchema),
|
|
1689
|
-
z.lazy(() => GetPromptVersion22$outboundSchema),
|
|
1690
|
-
z.lazy(() => GetPromptVersion23$outboundSchema),
|
|
1691
|
-
]),
|
|
1692
|
-
),
|
|
1693
|
-
]),
|
|
1694
|
-
),
|
|
1695
|
-
toolCalls: z.array(z.lazy(() => GetPromptVersionToolCalls$outboundSchema))
|
|
1696
|
-
.optional(),
|
|
1697
|
-
toolCallId: z.string().optional(),
|
|
1698
|
-
}).transform((v) => {
|
|
1699
|
-
return remap$(v, {
|
|
1700
|
-
toolCalls: "tool_calls",
|
|
1701
|
-
toolCallId: "tool_call_id",
|
|
1702
|
-
});
|
|
1703
|
-
});
|
|
1704
|
-
|
|
1705
|
-
export function getPromptVersionMessagesToJSON(
|
|
1706
|
-
getPromptVersionMessages: GetPromptVersionMessages,
|
|
1707
|
-
): string {
|
|
1708
|
-
return JSON.stringify(
|
|
1709
|
-
GetPromptVersionMessages$outboundSchema.parse(getPromptVersionMessages),
|
|
1710
|
-
);
|
|
1711
|
-
}
|
|
1712
|
-
export function getPromptVersionMessagesFromJSON(
|
|
1713
|
-
jsonString: string,
|
|
1714
|
-
): SafeParseResult<GetPromptVersionMessages, SDKValidationError> {
|
|
1715
|
-
return safeParse(
|
|
1716
|
-
jsonString,
|
|
1717
|
-
(x) => GetPromptVersionMessages$inboundSchema.parse(JSON.parse(x)),
|
|
1718
|
-
`Failed to parse 'GetPromptVersionMessages' from JSON`,
|
|
1719
|
-
);
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
/** @internal */
|
|
1723
|
-
export const GetPromptVersionPromptConfig$inboundSchema: z.ZodType<
|
|
1724
|
-
GetPromptVersionPromptConfig,
|
|
1725
|
-
z.ZodTypeDef,
|
|
1726
|
-
unknown
|
|
1727
|
-
> = z.object({
|
|
1728
|
-
stream: z.boolean().optional(),
|
|
1729
|
-
model: z.string().optional(),
|
|
1730
|
-
model_db_id: z.nullable(z.string()).optional(),
|
|
1731
|
-
model_type: z.nullable(GetPromptVersionModelType$inboundSchema).optional(),
|
|
1732
|
-
model_parameters: z.lazy(() => GetPromptVersionModelParameters$inboundSchema)
|
|
1733
|
-
.optional(),
|
|
1734
|
-
provider: GetPromptVersionProvider$inboundSchema.optional(),
|
|
1735
|
-
integration_id: z.nullable(z.string()).optional(),
|
|
1736
|
-
version: z.string().optional(),
|
|
1737
|
-
messages: z.array(z.lazy(() => GetPromptVersionMessages$inboundSchema)),
|
|
1738
|
-
}).transform((v) => {
|
|
1739
|
-
return remap$(v, {
|
|
1740
|
-
"model_db_id": "modelDbId",
|
|
1741
|
-
"model_type": "modelType",
|
|
1742
|
-
"model_parameters": "modelParameters",
|
|
1743
|
-
"integration_id": "integrationId",
|
|
1744
|
-
});
|
|
1745
|
-
});
|
|
1746
|
-
/** @internal */
|
|
1747
|
-
export type GetPromptVersionPromptConfig$Outbound = {
|
|
1748
|
-
stream?: boolean | undefined;
|
|
1749
|
-
model?: string | undefined;
|
|
1750
|
-
model_db_id?: string | null | undefined;
|
|
1751
|
-
model_type?: string | null | undefined;
|
|
1752
|
-
model_parameters?: GetPromptVersionModelParameters$Outbound | undefined;
|
|
1753
|
-
provider?: string | undefined;
|
|
1754
|
-
integration_id?: string | null | undefined;
|
|
1755
|
-
version?: string | undefined;
|
|
1756
|
-
messages: Array<GetPromptVersionMessages$Outbound>;
|
|
1757
|
-
};
|
|
1758
|
-
|
|
1759
|
-
/** @internal */
|
|
1760
|
-
export const GetPromptVersionPromptConfig$outboundSchema: z.ZodType<
|
|
1761
|
-
GetPromptVersionPromptConfig$Outbound,
|
|
1762
|
-
z.ZodTypeDef,
|
|
1763
|
-
GetPromptVersionPromptConfig
|
|
1764
|
-
> = z.object({
|
|
1765
|
-
stream: z.boolean().optional(),
|
|
1766
|
-
model: z.string().optional(),
|
|
1767
|
-
modelDbId: z.nullable(z.string()).optional(),
|
|
1768
|
-
modelType: z.nullable(GetPromptVersionModelType$outboundSchema).optional(),
|
|
1769
|
-
modelParameters: z.lazy(() => GetPromptVersionModelParameters$outboundSchema)
|
|
1770
|
-
.optional(),
|
|
1771
|
-
provider: GetPromptVersionProvider$outboundSchema.optional(),
|
|
1772
|
-
integrationId: z.nullable(z.string()).optional(),
|
|
1773
|
-
version: z.string().optional(),
|
|
1774
|
-
messages: z.array(z.lazy(() => GetPromptVersionMessages$outboundSchema)),
|
|
1775
|
-
}).transform((v) => {
|
|
1776
|
-
return remap$(v, {
|
|
1777
|
-
modelDbId: "model_db_id",
|
|
1778
|
-
modelType: "model_type",
|
|
1779
|
-
modelParameters: "model_parameters",
|
|
1780
|
-
integrationId: "integration_id",
|
|
1781
|
-
});
|
|
1782
|
-
});
|
|
1783
|
-
|
|
1784
|
-
export function getPromptVersionPromptConfigToJSON(
|
|
1785
|
-
getPromptVersionPromptConfig: GetPromptVersionPromptConfig,
|
|
1786
|
-
): string {
|
|
1787
|
-
return JSON.stringify(
|
|
1788
|
-
GetPromptVersionPromptConfig$outboundSchema.parse(
|
|
1789
|
-
getPromptVersionPromptConfig,
|
|
1790
|
-
),
|
|
1791
|
-
);
|
|
1792
|
-
}
|
|
1793
|
-
export function getPromptVersionPromptConfigFromJSON(
|
|
1794
|
-
jsonString: string,
|
|
1795
|
-
): SafeParseResult<GetPromptVersionPromptConfig, SDKValidationError> {
|
|
1796
|
-
return safeParse(
|
|
1797
|
-
jsonString,
|
|
1798
|
-
(x) => GetPromptVersionPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
1799
|
-
`Failed to parse 'GetPromptVersionPromptConfig' from JSON`,
|
|
1800
|
-
);
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
/** @internal */
|
|
1804
|
-
export const GetPromptVersionUseCases$inboundSchema: z.ZodNativeEnum<
|
|
1805
|
-
typeof GetPromptVersionUseCases
|
|
1806
|
-
> = z.nativeEnum(GetPromptVersionUseCases);
|
|
1807
|
-
/** @internal */
|
|
1808
|
-
export const GetPromptVersionUseCases$outboundSchema: z.ZodNativeEnum<
|
|
1809
|
-
typeof GetPromptVersionUseCases
|
|
1810
|
-
> = GetPromptVersionUseCases$inboundSchema;
|
|
1811
|
-
|
|
1812
|
-
/** @internal */
|
|
1813
|
-
export const GetPromptVersionLanguage$inboundSchema: z.ZodNativeEnum<
|
|
1814
|
-
typeof GetPromptVersionLanguage
|
|
1815
|
-
> = z.nativeEnum(GetPromptVersionLanguage);
|
|
1816
|
-
/** @internal */
|
|
1817
|
-
export const GetPromptVersionLanguage$outboundSchema: z.ZodNativeEnum<
|
|
1818
|
-
typeof GetPromptVersionLanguage
|
|
1819
|
-
> = GetPromptVersionLanguage$inboundSchema;
|
|
1820
|
-
|
|
1821
|
-
/** @internal */
|
|
1822
|
-
export const GetPromptVersionMetadata$inboundSchema: z.ZodType<
|
|
1823
|
-
GetPromptVersionMetadata,
|
|
1824
|
-
z.ZodTypeDef,
|
|
1825
|
-
unknown
|
|
1826
|
-
> = z.object({
|
|
1827
|
-
use_cases: z.array(GetPromptVersionUseCases$inboundSchema).optional(),
|
|
1828
|
-
language: z.nullable(GetPromptVersionLanguage$inboundSchema).optional(),
|
|
1829
|
-
}).transform((v) => {
|
|
1830
|
-
return remap$(v, {
|
|
1831
|
-
"use_cases": "useCases",
|
|
1832
|
-
});
|
|
1833
|
-
});
|
|
1834
|
-
/** @internal */
|
|
1835
|
-
export type GetPromptVersionMetadata$Outbound = {
|
|
1836
|
-
use_cases?: Array<string> | undefined;
|
|
1837
|
-
language?: string | null | undefined;
|
|
1838
|
-
};
|
|
1839
|
-
|
|
1840
|
-
/** @internal */
|
|
1841
|
-
export const GetPromptVersionMetadata$outboundSchema: z.ZodType<
|
|
1842
|
-
GetPromptVersionMetadata$Outbound,
|
|
1843
|
-
z.ZodTypeDef,
|
|
1844
|
-
GetPromptVersionMetadata
|
|
1845
|
-
> = z.object({
|
|
1846
|
-
useCases: z.array(GetPromptVersionUseCases$outboundSchema).optional(),
|
|
1847
|
-
language: z.nullable(GetPromptVersionLanguage$outboundSchema).optional(),
|
|
1848
|
-
}).transform((v) => {
|
|
1849
|
-
return remap$(v, {
|
|
1850
|
-
useCases: "use_cases",
|
|
1851
|
-
});
|
|
1852
|
-
});
|
|
1853
|
-
|
|
1854
|
-
export function getPromptVersionMetadataToJSON(
|
|
1855
|
-
getPromptVersionMetadata: GetPromptVersionMetadata,
|
|
1856
|
-
): string {
|
|
1857
|
-
return JSON.stringify(
|
|
1858
|
-
GetPromptVersionMetadata$outboundSchema.parse(getPromptVersionMetadata),
|
|
1859
|
-
);
|
|
1860
|
-
}
|
|
1861
|
-
export function getPromptVersionMetadataFromJSON(
|
|
1862
|
-
jsonString: string,
|
|
1863
|
-
): SafeParseResult<GetPromptVersionMetadata, SDKValidationError> {
|
|
1864
|
-
return safeParse(
|
|
1865
|
-
jsonString,
|
|
1866
|
-
(x) => GetPromptVersionMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
1867
|
-
`Failed to parse 'GetPromptVersionMetadata' from JSON`,
|
|
1868
|
-
);
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1871
|
-
/** @internal */
|
|
1872
|
-
export const GetPromptVersionResponseBody$inboundSchema: z.ZodType<
|
|
1873
|
-
GetPromptVersionResponseBody,
|
|
1874
|
-
z.ZodTypeDef,
|
|
1875
|
-
unknown
|
|
1876
|
-
> = z.object({
|
|
1877
|
-
_id: z.string(),
|
|
1878
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
1879
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
1880
|
-
description: z.nullable(z.string()).optional(),
|
|
1881
|
-
prompt_config: z.lazy(() => GetPromptVersionPromptConfig$inboundSchema),
|
|
1882
|
-
metadata: z.lazy(() => GetPromptVersionMetadata$inboundSchema).optional(),
|
|
1883
|
-
timestamp: z.string(),
|
|
1884
|
-
}).transform((v) => {
|
|
1885
|
-
return remap$(v, {
|
|
1886
|
-
"_id": "id",
|
|
1887
|
-
"created_by_id": "createdById",
|
|
1888
|
-
"updated_by_id": "updatedById",
|
|
1889
|
-
"prompt_config": "promptConfig",
|
|
1890
|
-
});
|
|
1891
|
-
});
|
|
1892
|
-
/** @internal */
|
|
1893
|
-
export type GetPromptVersionResponseBody$Outbound = {
|
|
1894
|
-
_id: string;
|
|
1895
|
-
created_by_id?: string | null | undefined;
|
|
1896
|
-
updated_by_id?: string | null | undefined;
|
|
1897
|
-
description?: string | null | undefined;
|
|
1898
|
-
prompt_config: GetPromptVersionPromptConfig$Outbound;
|
|
1899
|
-
metadata?: GetPromptVersionMetadata$Outbound | undefined;
|
|
1900
|
-
timestamp: string;
|
|
1901
|
-
};
|
|
1902
|
-
|
|
1903
|
-
/** @internal */
|
|
1904
|
-
export const GetPromptVersionResponseBody$outboundSchema: z.ZodType<
|
|
1905
|
-
GetPromptVersionResponseBody$Outbound,
|
|
1906
|
-
z.ZodTypeDef,
|
|
1907
|
-
GetPromptVersionResponseBody
|
|
1908
|
-
> = z.object({
|
|
1909
|
-
id: z.string(),
|
|
1910
|
-
createdById: z.nullable(z.string()).optional(),
|
|
1911
|
-
updatedById: z.nullable(z.string()).optional(),
|
|
1912
|
-
description: z.nullable(z.string()).optional(),
|
|
1913
|
-
promptConfig: z.lazy(() => GetPromptVersionPromptConfig$outboundSchema),
|
|
1914
|
-
metadata: z.lazy(() => GetPromptVersionMetadata$outboundSchema).optional(),
|
|
1915
|
-
timestamp: z.string(),
|
|
1916
|
-
}).transform((v) => {
|
|
1917
|
-
return remap$(v, {
|
|
1918
|
-
id: "_id",
|
|
1919
|
-
createdById: "created_by_id",
|
|
1920
|
-
updatedById: "updated_by_id",
|
|
1921
|
-
promptConfig: "prompt_config",
|
|
1922
|
-
});
|
|
1923
|
-
});
|
|
1924
|
-
|
|
1925
|
-
export function getPromptVersionResponseBodyToJSON(
|
|
1926
|
-
getPromptVersionResponseBody: GetPromptVersionResponseBody,
|
|
1927
|
-
): string {
|
|
1928
|
-
return JSON.stringify(
|
|
1929
|
-
GetPromptVersionResponseBody$outboundSchema.parse(
|
|
1930
|
-
getPromptVersionResponseBody,
|
|
1931
|
-
),
|
|
1932
|
-
);
|
|
1933
|
-
}
|
|
1934
|
-
export function getPromptVersionResponseBodyFromJSON(
|
|
1935
|
-
jsonString: string,
|
|
1936
|
-
): SafeParseResult<GetPromptVersionResponseBody, SDKValidationError> {
|
|
1937
|
-
return safeParse(
|
|
1938
|
-
jsonString,
|
|
1939
|
-
(x) => GetPromptVersionResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
1940
|
-
`Failed to parse 'GetPromptVersionResponseBody' from JSON`,
|
|
1941
|
-
);
|
|
1942
|
-
}
|