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