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