@orq-ai/node 3.10.19 → 3.11.0-rc.10

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.
Files changed (492) hide show
  1. package/bin/mcp-server.js +105 -108
  2. package/bin/mcp-server.js.map +31 -31
  3. package/docs/sdks/contacts/README.md +1 -1
  4. package/examples/package-lock.json +5 -6
  5. package/funcs/contactsCreate.d.ts +1 -1
  6. package/funcs/contactsCreate.js +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/lib/config.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/mcp-server.js.map +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/mcp-server/server.js.map +1 -1
  15. package/mcp-server/tools/contactsCreate.js +1 -1
  16. package/mcp-server/tools/contactsCreate.js.map +1 -1
  17. package/models/operations/createcontact.js +2 -2
  18. package/models/operations/createdataset.js +2 -2
  19. package/models/operations/createdatasetitem.js +2 -2
  20. package/models/operations/createdatasource.js +2 -2
  21. package/models/operations/createeval.js +16 -16
  22. package/models/operations/fileget.js +2 -2
  23. package/models/operations/filelist.js +2 -2
  24. package/models/operations/fileupload.js +2 -2
  25. package/models/operations/getevals.js +28 -28
  26. package/models/operations/listcontacts.js +2 -2
  27. package/models/operations/listdatasetdatapoints.js +2 -2
  28. package/models/operations/listdatasets.js +2 -2
  29. package/models/operations/listdatasources.js +2 -2
  30. package/models/operations/retrievecontact.js +2 -2
  31. package/models/operations/retrievedatapoint.js +2 -2
  32. package/models/operations/retrievedataset.js +2 -2
  33. package/models/operations/retrievedatasource.js +2 -2
  34. package/models/operations/updatecontact.js +2 -2
  35. package/models/operations/updatedatapoint.js +2 -2
  36. package/models/operations/updatedataset.js +2 -2
  37. package/models/operations/updatedatasource.js +2 -2
  38. package/models/operations/updateeval.js +16 -16
  39. package/package.json +4 -4
  40. package/sdk/contacts.d.ts +1 -1
  41. package/sdk/contacts.js +1 -1
  42. package/src/funcs/contactsCreate.ts +1 -1
  43. package/src/lib/config.ts +2 -2
  44. package/src/mcp-server/mcp-server.ts +1 -1
  45. package/src/mcp-server/server.ts +1 -1
  46. package/src/mcp-server/tools/contactsCreate.ts +1 -1
  47. package/src/models/operations/createcontact.ts +2 -2
  48. package/src/models/operations/createdataset.ts +2 -2
  49. package/src/models/operations/createdatasetitem.ts +2 -2
  50. package/src/models/operations/createdatasource.ts +2 -2
  51. package/src/models/operations/createeval.ts +16 -16
  52. package/src/models/operations/fileget.ts +2 -2
  53. package/src/models/operations/filelist.ts +2 -2
  54. package/src/models/operations/fileupload.ts +2 -2
  55. package/src/models/operations/getevals.ts +28 -28
  56. package/src/models/operations/listcontacts.ts +2 -2
  57. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  58. package/src/models/operations/listdatasets.ts +2 -2
  59. package/src/models/operations/listdatasources.ts +2 -2
  60. package/src/models/operations/retrievecontact.ts +2 -2
  61. package/src/models/operations/retrievedatapoint.ts +2 -2
  62. package/src/models/operations/retrievedataset.ts +2 -2
  63. package/src/models/operations/retrievedatasource.ts +2 -2
  64. package/src/models/operations/updatecontact.ts +2 -2
  65. package/src/models/operations/updatedatapoint.ts +2 -2
  66. package/src/models/operations/updatedataset.ts +2 -2
  67. package/src/models/operations/updatedatasource.ts +2 -2
  68. package/src/models/operations/updateeval.ts +16 -16
  69. package/src/sdk/contacts.ts +1 -1
  70. package/packages/orq-rc/FUNCTIONS.md +0 -103
  71. package/packages/orq-rc/README.md +0 -960
  72. package/packages/orq-rc/RUNTIMES.md +0 -48
  73. package/packages/orq-rc/docs/sdks/chunking/README.md +0 -95
  74. package/packages/orq-rc/docs/sdks/contacts/README.md +0 -450
  75. package/packages/orq-rc/docs/sdks/datasets/README.md +0 -836
  76. package/packages/orq-rc/docs/sdks/deployments/README.md +0 -314
  77. package/packages/orq-rc/docs/sdks/evals/README.md +0 -3077
  78. package/packages/orq-rc/docs/sdks/feedback/README.md +0 -89
  79. package/packages/orq-rc/docs/sdks/files/README.md +0 -301
  80. package/packages/orq-rc/docs/sdks/knowledge/README.md +0 -1243
  81. package/packages/orq-rc/docs/sdks/metrics/README.md +0 -83
  82. package/packages/orq-rc/docs/sdks/models/README.md +0 -76
  83. package/packages/orq-rc/docs/sdks/orq/README.md +0 -10
  84. package/packages/orq-rc/docs/sdks/prompts/README.md +0 -557
  85. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +0 -77
  86. package/packages/orq-rc/examples/README.md +0 -31
  87. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  88. package/packages/orq-rc/examples/package-lock.json +0 -627
  89. package/packages/orq-rc/examples/package.json +0 -18
  90. package/packages/orq-rc/jsr.json +0 -28
  91. package/packages/orq-rc/package-lock.json +0 -3071
  92. package/packages/orq-rc/package.json +0 -43
  93. package/packages/orq-rc/src/core.ts +0 -13
  94. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  95. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -165
  96. package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -176
  97. package/packages/orq-rc/src/funcs/contactsList.ts +0 -169
  98. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -175
  99. package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -176
  100. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  101. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  102. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -168
  103. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  104. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  105. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  106. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  107. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  108. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  109. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  110. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  111. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  112. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  113. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  114. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  115. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -183
  116. package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +0 -175
  117. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  118. package/packages/orq-rc/src/funcs/evalsBertScore.ts +0 -175
  119. package/packages/orq-rc/src/funcs/evalsBleuScore.ts +0 -175
  120. package/packages/orq-rc/src/funcs/evalsBotDetection.ts +0 -175
  121. package/packages/orq-rc/src/funcs/evalsContains.ts +0 -175
  122. package/packages/orq-rc/src/funcs/evalsContainsAll.ts +0 -175
  123. package/packages/orq-rc/src/funcs/evalsContainsAny.ts +0 -175
  124. package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +0 -175
  125. package/packages/orq-rc/src/funcs/evalsContainsNone.ts +0 -175
  126. package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +0 -175
  127. package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +0 -177
  128. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  129. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  130. package/packages/orq-rc/src/funcs/evalsEndsWith.ts +0 -175
  131. package/packages/orq-rc/src/funcs/evalsExactMatch.ts +0 -175
  132. package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +0 -183
  133. package/packages/orq-rc/src/funcs/evalsGrammar.ts +0 -173
  134. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -177
  135. package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +0 -175
  136. package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +0 -177
  137. package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +0 -175
  138. package/packages/orq-rc/src/funcs/evalsLocalization.ts +0 -175
  139. package/packages/orq-rc/src/funcs/evalsPii.ts +0 -173
  140. package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +0 -175
  141. package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +0 -174
  142. package/packages/orq-rc/src/funcs/evalsRagasContextEntitiesRecall.ts +0 -183
  143. package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +0 -180
  144. package/packages/orq-rc/src/funcs/evalsRagasContextRecall.ts +0 -177
  145. package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +0 -174
  146. package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +0 -177
  147. package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +0 -174
  148. package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +0 -177
  149. package/packages/orq-rc/src/funcs/evalsRagasNoiseSensitivity.ts +0 -180
  150. package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +0 -183
  151. package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +0 -177
  152. package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +0 -183
  153. package/packages/orq-rc/src/funcs/evalsSummarization.ts +0 -175
  154. package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +0 -175
  155. package/packages/orq-rc/src/funcs/evalsTranslation.ts +0 -175
  156. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  157. package/packages/orq-rc/src/funcs/evalsValidJson.ts +0 -175
  158. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  159. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -187
  160. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  161. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  162. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  163. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  164. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  165. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  166. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  167. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  168. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  169. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  170. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  171. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  172. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  173. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  174. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  175. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  176. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  177. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  178. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  179. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  180. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  181. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -164
  182. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  183. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  184. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  185. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  186. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  187. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  188. package/packages/orq-rc/src/hooks/global.ts +0 -44
  189. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  190. package/packages/orq-rc/src/hooks/index.ts +0 -6
  191. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  192. package/packages/orq-rc/src/hooks/types.ts +0 -112
  193. package/packages/orq-rc/src/index.ts +0 -9
  194. package/packages/orq-rc/src/lib/base64.ts +0 -37
  195. package/packages/orq-rc/src/lib/config.ts +0 -74
  196. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  197. package/packages/orq-rc/src/lib/encodings.ts +0 -483
  198. package/packages/orq-rc/src/lib/env.ts +0 -73
  199. package/packages/orq-rc/src/lib/event-streams.ts +0 -137
  200. package/packages/orq-rc/src/lib/files.ts +0 -82
  201. package/packages/orq-rc/src/lib/http.ts +0 -323
  202. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  203. package/packages/orq-rc/src/lib/logger.ts +0 -9
  204. package/packages/orq-rc/src/lib/matchers.ts +0 -345
  205. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  206. package/packages/orq-rc/src/lib/retries.ts +0 -218
  207. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  208. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  209. package/packages/orq-rc/src/lib/security.ts +0 -261
  210. package/packages/orq-rc/src/lib/url.ts +0 -33
  211. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +0 -112
  212. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +0 -136
  213. package/packages/orq-rc/src/mcp-server/cli.ts +0 -13
  214. package/packages/orq-rc/src/mcp-server/console-logger.ts +0 -71
  215. package/packages/orq-rc/src/mcp-server/extensions.ts +0 -17
  216. package/packages/orq-rc/src/mcp-server/mcp-server.ts +0 -26
  217. package/packages/orq-rc/src/mcp-server/prompts.ts +0 -117
  218. package/packages/orq-rc/src/mcp-server/resources.ts +0 -172
  219. package/packages/orq-rc/src/mcp-server/scopes.ts +0 -7
  220. package/packages/orq-rc/src/mcp-server/server.ts +0 -251
  221. package/packages/orq-rc/src/mcp-server/shared.ts +0 -75
  222. package/packages/orq-rc/src/mcp-server/tools/chunkingParse.ts +0 -37
  223. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +0 -37
  224. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +0 -35
  225. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +0 -37
  226. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +0 -37
  227. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +0 -37
  228. package/packages/orq-rc/src/mcp-server/tools/datasetsClear.ts +0 -35
  229. package/packages/orq-rc/src/mcp-server/tools/datasetsCreate.ts +0 -37
  230. package/packages/orq-rc/src/mcp-server/tools/datasetsCreateDatapoint.ts +0 -37
  231. package/packages/orq-rc/src/mcp-server/tools/datasetsDelete.ts +0 -35
  232. package/packages/orq-rc/src/mcp-server/tools/datasetsDeleteDatapoint.ts +0 -35
  233. package/packages/orq-rc/src/mcp-server/tools/datasetsList.ts +0 -37
  234. package/packages/orq-rc/src/mcp-server/tools/datasetsListDatapoints.ts +0 -37
  235. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieve.ts +0 -37
  236. package/packages/orq-rc/src/mcp-server/tools/datasetsRetrieveDatapoint.ts +0 -37
  237. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdate.ts +0 -37
  238. package/packages/orq-rc/src/mcp-server/tools/datasetsUpdateDatapoint.ts +0 -35
  239. package/packages/orq-rc/src/mcp-server/tools/deploymentsGetConfig.ts +0 -37
  240. package/packages/orq-rc/src/mcp-server/tools/deploymentsInvoke.ts +0 -37
  241. package/packages/orq-rc/src/mcp-server/tools/deploymentsList.ts +0 -37
  242. package/packages/orq-rc/src/mcp-server/tools/deploymentsMetricsCreate.ts +0 -37
  243. package/packages/orq-rc/src/mcp-server/tools/deploymentsStream.ts +0 -37
  244. package/packages/orq-rc/src/mcp-server/tools/evalsAgeAppropriate.ts +0 -35
  245. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +0 -35
  246. package/packages/orq-rc/src/mcp-server/tools/evalsBertScore.ts +0 -35
  247. package/packages/orq-rc/src/mcp-server/tools/evalsBleuScore.ts +0 -35
  248. package/packages/orq-rc/src/mcp-server/tools/evalsBotDetection.ts +0 -35
  249. package/packages/orq-rc/src/mcp-server/tools/evalsContains.ts +0 -35
  250. package/packages/orq-rc/src/mcp-server/tools/evalsContainsAll.ts +0 -35
  251. package/packages/orq-rc/src/mcp-server/tools/evalsContainsAny.ts +0 -35
  252. package/packages/orq-rc/src/mcp-server/tools/evalsContainsEmail.ts +0 -35
  253. package/packages/orq-rc/src/mcp-server/tools/evalsContainsNone.ts +0 -35
  254. package/packages/orq-rc/src/mcp-server/tools/evalsContainsUrl.ts +0 -35
  255. package/packages/orq-rc/src/mcp-server/tools/evalsContainsValidLink.ts +0 -36
  256. package/packages/orq-rc/src/mcp-server/tools/evalsCreate.ts +0 -35
  257. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +0 -33
  258. package/packages/orq-rc/src/mcp-server/tools/evalsEndsWith.ts +0 -35
  259. package/packages/orq-rc/src/mcp-server/tools/evalsExactMatch.ts +0 -35
  260. package/packages/orq-rc/src/mcp-server/tools/evalsFactCheckingKnowledgeBase.ts +0 -37
  261. package/packages/orq-rc/src/mcp-server/tools/evalsGrammar.ts +0 -35
  262. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +0 -35
  263. package/packages/orq-rc/src/mcp-server/tools/evalsLengthBetween.ts +0 -35
  264. package/packages/orq-rc/src/mcp-server/tools/evalsLengthGreaterThan.ts +0 -36
  265. package/packages/orq-rc/src/mcp-server/tools/evalsLengthLessThan.ts +0 -35
  266. package/packages/orq-rc/src/mcp-server/tools/evalsLocalization.ts +0 -35
  267. package/packages/orq-rc/src/mcp-server/tools/evalsPii.ts +0 -35
  268. package/packages/orq-rc/src/mcp-server/tools/evalsRagasCoherence.ts +0 -35
  269. package/packages/orq-rc/src/mcp-server/tools/evalsRagasConciseness.ts +0 -35
  270. package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextEntitiesRecall.ts +0 -37
  271. package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextPrecision.ts +0 -36
  272. package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextRecall.ts +0 -36
  273. package/packages/orq-rc/src/mcp-server/tools/evalsRagasCorrectness.ts +0 -35
  274. package/packages/orq-rc/src/mcp-server/tools/evalsRagasFaithfulness.ts +0 -36
  275. package/packages/orq-rc/src/mcp-server/tools/evalsRagasHarmfulness.ts +0 -35
  276. package/packages/orq-rc/src/mcp-server/tools/evalsRagasMaliciousness.ts +0 -36
  277. package/packages/orq-rc/src/mcp-server/tools/evalsRagasNoiseSensitivity.ts +0 -36
  278. package/packages/orq-rc/src/mcp-server/tools/evalsRagasResponseRelevancy.ts +0 -36
  279. package/packages/orq-rc/src/mcp-server/tools/evalsRagasSummarization.ts +0 -36
  280. package/packages/orq-rc/src/mcp-server/tools/evalsSentimentClassification.ts +0 -36
  281. package/packages/orq-rc/src/mcp-server/tools/evalsSummarization.ts +0 -35
  282. package/packages/orq-rc/src/mcp-server/tools/evalsToneOfVoice.ts +0 -35
  283. package/packages/orq-rc/src/mcp-server/tools/evalsTranslation.ts +0 -35
  284. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +0 -35
  285. package/packages/orq-rc/src/mcp-server/tools/evalsValidJson.ts +0 -35
  286. package/packages/orq-rc/src/mcp-server/tools/feedbackCreate.ts +0 -37
  287. package/packages/orq-rc/src/mcp-server/tools/filesCreate.ts +0 -37
  288. package/packages/orq-rc/src/mcp-server/tools/filesDelete.ts +0 -33
  289. package/packages/orq-rc/src/mcp-server/tools/filesGet.ts +0 -37
  290. package/packages/orq-rc/src/mcp-server/tools/filesList.ts +0 -37
  291. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreate.ts +0 -35
  292. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateChunks.ts +0 -35
  293. package/packages/orq-rc/src/mcp-server/tools/knowledgeCreateDatasource.ts +0 -35
  294. package/packages/orq-rc/src/mcp-server/tools/knowledgeDelete.ts +0 -35
  295. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteChunk.ts +0 -33
  296. package/packages/orq-rc/src/mcp-server/tools/knowledgeDeleteDatasource.ts +0 -35
  297. package/packages/orq-rc/src/mcp-server/tools/knowledgeList.ts +0 -37
  298. package/packages/orq-rc/src/mcp-server/tools/knowledgeListChunks.ts +0 -35
  299. package/packages/orq-rc/src/mcp-server/tools/knowledgeListDatasources.ts +0 -35
  300. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieve.ts +0 -37
  301. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveChunk.ts +0 -35
  302. package/packages/orq-rc/src/mcp-server/tools/knowledgeRetrieveDatasource.ts +0 -35
  303. package/packages/orq-rc/src/mcp-server/tools/knowledgeSearch.ts +0 -37
  304. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdate.ts +0 -35
  305. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateChunk.ts +0 -35
  306. package/packages/orq-rc/src/mcp-server/tools/knowledgeUpdateDatasource.ts +0 -35
  307. package/packages/orq-rc/src/mcp-server/tools/modelsList.ts +0 -30
  308. package/packages/orq-rc/src/mcp-server/tools/promptsCreate.ts +0 -35
  309. package/packages/orq-rc/src/mcp-server/tools/promptsDelete.ts +0 -33
  310. package/packages/orq-rc/src/mcp-server/tools/promptsGetVersion.ts +0 -37
  311. package/packages/orq-rc/src/mcp-server/tools/promptsList.ts +0 -37
  312. package/packages/orq-rc/src/mcp-server/tools/promptsListVersions.ts +0 -37
  313. package/packages/orq-rc/src/mcp-server/tools/promptsRetrieve.ts +0 -37
  314. package/packages/orq-rc/src/mcp-server/tools/promptsUpdate.ts +0 -35
  315. package/packages/orq-rc/src/mcp-server/tools/remoteconfigsRetrieve.ts +0 -36
  316. package/packages/orq-rc/src/mcp-server/tools.ts +0 -129
  317. package/packages/orq-rc/src/models/components/deployments.ts +0 -7246
  318. package/packages/orq-rc/src/models/components/index.ts +0 -6
  319. package/packages/orq-rc/src/models/components/security.ts +0 -71
  320. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  321. package/packages/orq-rc/src/models/errors/createeval.ts +0 -80
  322. package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -91
  323. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -80
  324. package/packages/orq-rc/src/models/errors/evalsageappropriate.ts +0 -156
  325. package/packages/orq-rc/src/models/errors/evalsbertscore.ts +0 -154
  326. package/packages/orq-rc/src/models/errors/evalsbleuscore.ts +0 -154
  327. package/packages/orq-rc/src/models/errors/evalsbotdetection.ts +0 -155
  328. package/packages/orq-rc/src/models/errors/evalscontains.ts +0 -154
  329. package/packages/orq-rc/src/models/errors/evalscontainsall.ts +0 -155
  330. package/packages/orq-rc/src/models/errors/evalscontainsany.ts +0 -155
  331. package/packages/orq-rc/src/models/errors/evalscontainsemail.ts +0 -156
  332. package/packages/orq-rc/src/models/errors/evalscontainsnone.ts +0 -155
  333. package/packages/orq-rc/src/models/errors/evalscontainsurl.ts +0 -155
  334. package/packages/orq-rc/src/models/errors/evalscontainsvalidlink.ts +0 -157
  335. package/packages/orq-rc/src/models/errors/evalsendswith.ts +0 -154
  336. package/packages/orq-rc/src/models/errors/evalsexactmatch.ts +0 -154
  337. package/packages/orq-rc/src/models/errors/evalsfactcheckingknowledgebase.ts +0 -160
  338. package/packages/orq-rc/src/models/errors/evalsgrammar.ts +0 -154
  339. package/packages/orq-rc/src/models/errors/evalslengthbetween.ts +0 -156
  340. package/packages/orq-rc/src/models/errors/evalslengthgreaterthan.ts +0 -157
  341. package/packages/orq-rc/src/models/errors/evalslengthlessthan.ts +0 -156
  342. package/packages/orq-rc/src/models/errors/evalslocalization.ts +0 -155
  343. package/packages/orq-rc/src/models/errors/evalspii.ts +0 -154
  344. package/packages/orq-rc/src/models/errors/evalsragascoherence.ts +0 -156
  345. package/packages/orq-rc/src/models/errors/evalsragasconciseness.ts +0 -157
  346. package/packages/orq-rc/src/models/errors/evalsragascontextentitiesrecall.ts +0 -163
  347. package/packages/orq-rc/src/models/errors/evalsragascontextprecision.ts +0 -160
  348. package/packages/orq-rc/src/models/errors/evalsragascontextrecall.ts +0 -158
  349. package/packages/orq-rc/src/models/errors/evalsragascorrectness.ts +0 -157
  350. package/packages/orq-rc/src/models/errors/evalsragasfaithfulness.ts +0 -157
  351. package/packages/orq-rc/src/models/errors/evalsragasharmfulness.ts +0 -157
  352. package/packages/orq-rc/src/models/errors/evalsragasmaliciousness.ts +0 -158
  353. package/packages/orq-rc/src/models/errors/evalsragasnoisesensitivity.ts +0 -160
  354. package/packages/orq-rc/src/models/errors/evalsragasresponserelevancy.ts +0 -160
  355. package/packages/orq-rc/src/models/errors/evalsragassummarization.ts +0 -158
  356. package/packages/orq-rc/src/models/errors/evalssentimentclassification.ts +0 -160
  357. package/packages/orq-rc/src/models/errors/evalssummarization.ts +0 -156
  358. package/packages/orq-rc/src/models/errors/evalstoneofvoice.ts +0 -155
  359. package/packages/orq-rc/src/models/errors/evalstranslation.ts +0 -155
  360. package/packages/orq-rc/src/models/errors/evalsvalidjson.ts +0 -154
  361. package/packages/orq-rc/src/models/errors/getevals.ts +0 -80
  362. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -80
  363. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -90
  364. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  365. package/packages/orq-rc/src/models/errors/index.ts +0 -56
  366. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -154
  367. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  368. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  369. package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -91
  370. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  371. package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -83
  372. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -80
  373. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -80
  374. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -75
  375. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -438
  376. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -267
  377. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -296
  378. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -5205
  379. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -852
  380. package/packages/orq-rc/src/models/operations/createeval.ts +0 -3830
  381. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -286
  382. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
  383. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -4373
  384. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -96
  385. package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -69
  386. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -81
  387. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -75
  388. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -87
  389. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -66
  390. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -78
  391. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -69
  392. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -5439
  393. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -9480
  394. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -1258
  395. package/packages/orq-rc/src/models/operations/deployments.ts +0 -2467
  396. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -9449
  397. package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +0 -253
  398. package/packages/orq-rc/src/models/operations/evalsbertscore.ts +0 -197
  399. package/packages/orq-rc/src/models/operations/evalsbleuscore.ts +0 -131
  400. package/packages/orq-rc/src/models/operations/evalsbotdetection.ts +0 -249
  401. package/packages/orq-rc/src/models/operations/evalscontains.ts +0 -250
  402. package/packages/orq-rc/src/models/operations/evalscontainsall.ts +0 -248
  403. package/packages/orq-rc/src/models/operations/evalscontainsany.ts +0 -254
  404. package/packages/orq-rc/src/models/operations/evalscontainsemail.ts +0 -181
  405. package/packages/orq-rc/src/models/operations/evalscontainsnone.ts +0 -254
  406. package/packages/orq-rc/src/models/operations/evalscontainsurl.ts +0 -181
  407. package/packages/orq-rc/src/models/operations/evalscontainsvalidlink.ts +0 -186
  408. package/packages/orq-rc/src/models/operations/evalsendswith.ts +0 -250
  409. package/packages/orq-rc/src/models/operations/evalsexactmatch.ts +0 -183
  410. package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +0 -299
  411. package/packages/orq-rc/src/models/operations/evalsgrammar.ts +0 -243
  412. package/packages/orq-rc/src/models/operations/evalslengthbetween.ts +0 -268
  413. package/packages/orq-rc/src/models/operations/evalslengthgreaterthan.ts +0 -266
  414. package/packages/orq-rc/src/models/operations/evalslengthlessthan.ts +0 -259
  415. package/packages/orq-rc/src/models/operations/evalslocalization.ts +0 -253
  416. package/packages/orq-rc/src/models/operations/evalspii.ts +0 -243
  417. package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +0 -152
  418. package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +0 -153
  419. package/packages/orq-rc/src/models/operations/evalsragascontextentitiesrecall.ts +0 -164
  420. package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +0 -166
  421. package/packages/orq-rc/src/models/operations/evalsragascontextrecall.ts +0 -164
  422. package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +0 -153
  423. package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +0 -155
  424. package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +0 -146
  425. package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +0 -157
  426. package/packages/orq-rc/src/models/operations/evalsragasnoisesensitivity.ts +0 -166
  427. package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +0 -165
  428. package/packages/orq-rc/src/models/operations/evalsragassummarization.ts +0 -150
  429. package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +0 -285
  430. package/packages/orq-rc/src/models/operations/evalssummarization.ts +0 -253
  431. package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +0 -251
  432. package/packages/orq-rc/src/models/operations/evalstranslation.ts +0 -251
  433. package/packages/orq-rc/src/models/operations/evalsvalidjson.ts +0 -177
  434. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -78
  435. package/packages/orq-rc/src/models/operations/fileget.ts +0 -223
  436. package/packages/orq-rc/src/models/operations/filelist.ts +0 -337
  437. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -327
  438. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -2437
  439. package/packages/orq-rc/src/models/operations/getevals.ts +0 -7290
  440. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -315
  441. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -537
  442. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -2298
  443. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -2305
  444. package/packages/orq-rc/src/models/operations/index.ts +0 -98
  445. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -2520
  446. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -494
  447. package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -490
  448. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -2784
  449. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -406
  450. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -447
  451. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -663
  452. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -273
  453. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -2438
  454. package/packages/orq-rc/src/models/operations/parse.ts +0 -1610
  455. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -190
  456. package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -210
  457. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2586
  458. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -288
  459. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -273
  460. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -3409
  461. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -448
  462. package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -325
  463. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -5155
  464. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -393
  465. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -345
  466. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -4131
  467. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -980
  468. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -4514
  469. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  470. package/packages/orq-rc/src/sdk/contacts.ts +0 -99
  471. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  472. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  473. package/packages/orq-rc/src/sdk/evals.ts +0 -639
  474. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  475. package/packages/orq-rc/src/sdk/files.ts +0 -78
  476. package/packages/orq-rc/src/sdk/index.ts +0 -5
  477. package/packages/orq-rc/src/sdk/knowledge.ts +0 -264
  478. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  479. package/packages/orq-rc/src/sdk/models.ts +0 -25
  480. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  481. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  482. package/packages/orq-rc/src/sdk/sdk.ts +0 -73
  483. package/packages/orq-rc/src/types/async.ts +0 -68
  484. package/packages/orq-rc/src/types/blobs.ts +0 -31
  485. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  486. package/packages/orq-rc/src/types/enums.ts +0 -16
  487. package/packages/orq-rc/src/types/fp.ts +0 -50
  488. package/packages/orq-rc/src/types/index.ts +0 -11
  489. package/packages/orq-rc/src/types/operations.ts +0 -105
  490. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  491. package/packages/orq-rc/src/types/streams.ts +0 -21
  492. package/packages/orq-rc/tsconfig.json +0 -41
@@ -1,4514 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
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
- /**
13
- * Only supported on `image` models.
14
- */
15
- export const UpdatePromptFormat = {
16
- Url: "url",
17
- B64Json: "b64_json",
18
- Text: "text",
19
- JsonObject: "json_object",
20
- } as const;
21
- /**
22
- * Only supported on `image` models.
23
- */
24
- export type UpdatePromptFormat = ClosedEnum<typeof UpdatePromptFormat>;
25
-
26
- export const UpdatePromptResponseFormatPromptsRequestType = {
27
- Text: "text",
28
- } as const;
29
- export type UpdatePromptResponseFormatPromptsRequestType = ClosedEnum<
30
- typeof UpdatePromptResponseFormatPromptsRequestType
31
- >;
32
-
33
- export type UpdatePromptResponseFormat3 = {
34
- type: UpdatePromptResponseFormatPromptsRequestType;
35
- };
36
-
37
- export const UpdatePromptResponseFormatPromptsType = {
38
- JsonObject: "json_object",
39
- } as const;
40
- export type UpdatePromptResponseFormatPromptsType = ClosedEnum<
41
- typeof UpdatePromptResponseFormatPromptsType
42
- >;
43
-
44
- export type UpdatePromptResponseFormat2 = {
45
- type: UpdatePromptResponseFormatPromptsType;
46
- };
47
-
48
- export const UpdatePromptResponseFormatType = {
49
- JsonSchema: "json_schema",
50
- } as const;
51
- export type UpdatePromptResponseFormatType = ClosedEnum<
52
- typeof UpdatePromptResponseFormatType
53
- >;
54
-
55
- export type ResponseFormatJsonSchema = {
56
- name: string;
57
- strict?: boolean | undefined;
58
- schema: { [k: string]: any };
59
- };
60
-
61
- export type UpdatePromptResponseFormat1 = {
62
- type: UpdatePromptResponseFormatType;
63
- jsonSchema: ResponseFormatJsonSchema;
64
- };
65
-
66
- /**
67
- * An object specifying the format that the model must output.
68
- *
69
- * @remarks
70
- *
71
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
72
- *
73
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
74
- *
75
- * 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.
76
- */
77
- export type UpdatePromptResponseFormat =
78
- | UpdatePromptResponseFormat1
79
- | UpdatePromptResponseFormat2
80
- | UpdatePromptResponseFormat3;
81
-
82
- /**
83
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
84
- */
85
- export const UpdatePromptPhotoRealVersion = {
86
- V1: "v1",
87
- V2: "v2",
88
- } as const;
89
- /**
90
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
91
- */
92
- export type UpdatePromptPhotoRealVersion = ClosedEnum<
93
- typeof UpdatePromptPhotoRealVersion
94
- >;
95
-
96
- /**
97
- * The format to return the embeddings
98
- */
99
- export const UpdatePromptEncodingFormat = {
100
- Float: "float",
101
- Base64: "base64",
102
- } as const;
103
- /**
104
- * The format to return the embeddings
105
- */
106
- export type UpdatePromptEncodingFormat = ClosedEnum<
107
- typeof UpdatePromptEncodingFormat
108
- >;
109
-
110
- /**
111
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
112
- */
113
- export const UpdatePromptReasoningEffort = {
114
- Disable: "disable",
115
- Low: "low",
116
- Medium: "medium",
117
- High: "high",
118
- } as const;
119
- /**
120
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
121
- */
122
- export type UpdatePromptReasoningEffort = ClosedEnum<
123
- typeof UpdatePromptReasoningEffort
124
- >;
125
-
126
- /**
127
- * Controls the verbosity of the model output.
128
- */
129
- export const UpdatePromptVerbosity = {
130
- Low: "low",
131
- Medium: "medium",
132
- High: "high",
133
- } as const;
134
- /**
135
- * Controls the verbosity of the model output.
136
- */
137
- export type UpdatePromptVerbosity = ClosedEnum<typeof UpdatePromptVerbosity>;
138
-
139
- /**
140
- * Model Parameters: Not all parameters apply to every model
141
- */
142
- export type UpdatePromptModelParameters = {
143
- /**
144
- * Only supported on `chat` and `completion` models.
145
- */
146
- temperature?: number | undefined;
147
- /**
148
- * Only supported on `chat` and `completion` models.
149
- */
150
- maxTokens?: number | undefined;
151
- /**
152
- * Only supported on `chat` and `completion` models.
153
- */
154
- topK?: number | undefined;
155
- /**
156
- * Only supported on `chat` and `completion` models.
157
- */
158
- topP?: number | undefined;
159
- /**
160
- * Only supported on `chat` and `completion` models.
161
- */
162
- frequencyPenalty?: number | undefined;
163
- /**
164
- * Only supported on `chat` and `completion` models.
165
- */
166
- presencePenalty?: number | undefined;
167
- /**
168
- * Only supported on `image` models.
169
- */
170
- numImages?: number | undefined;
171
- /**
172
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
173
- */
174
- seed?: number | undefined;
175
- /**
176
- * Only supported on `image` models.
177
- */
178
- format?: UpdatePromptFormat | undefined;
179
- /**
180
- * Only supported on `image` models.
181
- */
182
- dimensions?: string | undefined;
183
- /**
184
- * Only supported on `image` models.
185
- */
186
- quality?: string | undefined;
187
- /**
188
- * Only supported on `image` models.
189
- */
190
- style?: string | undefined;
191
- /**
192
- * An object specifying the format that the model must output.
193
- *
194
- * @remarks
195
- *
196
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
197
- *
198
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
199
- *
200
- * 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.
201
- */
202
- responseFormat?:
203
- | UpdatePromptResponseFormat1
204
- | UpdatePromptResponseFormat2
205
- | UpdatePromptResponseFormat3
206
- | null
207
- | undefined;
208
- /**
209
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
210
- */
211
- photoRealVersion?: UpdatePromptPhotoRealVersion | undefined;
212
- /**
213
- * The format to return the embeddings
214
- */
215
- encodingFormat?: UpdatePromptEncodingFormat | undefined;
216
- /**
217
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
218
- */
219
- reasoningEffort?: UpdatePromptReasoningEffort | undefined;
220
- /**
221
- * 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`
222
- */
223
- budgetTokens?: number | undefined;
224
- /**
225
- * Controls the verbosity of the model output.
226
- */
227
- verbosity?: UpdatePromptVerbosity | undefined;
228
- };
229
-
230
- export const UpdatePromptProvider = {
231
- Cohere: "cohere",
232
- Openai: "openai",
233
- Anthropic: "anthropic",
234
- Huggingface: "huggingface",
235
- Replicate: "replicate",
236
- Google: "google",
237
- GoogleAi: "google-ai",
238
- Azure: "azure",
239
- Aws: "aws",
240
- Anyscale: "anyscale",
241
- Perplexity: "perplexity",
242
- Groq: "groq",
243
- Fal: "fal",
244
- Leonardoai: "leonardoai",
245
- Nvidia: "nvidia",
246
- Jina: "jina",
247
- Togetherai: "togetherai",
248
- Elevenlabs: "elevenlabs",
249
- Litellm: "litellm",
250
- Openailike: "openailike",
251
- Cerebras: "cerebras",
252
- } as const;
253
- export type UpdatePromptProvider = ClosedEnum<typeof UpdatePromptProvider>;
254
-
255
- /**
256
- * The role of the prompt message
257
- */
258
- export const UpdatePromptRole = {
259
- System: "system",
260
- Assistant: "assistant",
261
- User: "user",
262
- Exception: "exception",
263
- Tool: "tool",
264
- Prompt: "prompt",
265
- Correction: "correction",
266
- ExpectedOutput: "expected_output",
267
- } as const;
268
- /**
269
- * The role of the prompt message
270
- */
271
- export type UpdatePromptRole = ClosedEnum<typeof UpdatePromptRole>;
272
-
273
- /**
274
- * The type of the content part. Always `file`.
275
- */
276
- export const UpdatePrompt2PromptsRequestType = {
277
- File: "file",
278
- } as const;
279
- /**
280
- * The type of the content part. Always `file`.
281
- */
282
- export type UpdatePrompt2PromptsRequestType = ClosedEnum<
283
- typeof UpdatePrompt2PromptsRequestType
284
- >;
285
-
286
- export type UpdatePrompt2File = {
287
- /**
288
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
289
- */
290
- fileData: string;
291
- /**
292
- * The name of the file, used when passing the file to the model as a string.
293
- */
294
- filename?: string | undefined;
295
- };
296
-
297
- export type UpdatePrompt23 = {
298
- /**
299
- * The type of the content part. Always `file`.
300
- */
301
- type: UpdatePrompt2PromptsRequestType;
302
- file: UpdatePrompt2File;
303
- };
304
-
305
- export const UpdatePrompt2PromptsType = {
306
- ImageUrl: "image_url",
307
- } as const;
308
- export type UpdatePrompt2PromptsType = ClosedEnum<
309
- typeof UpdatePrompt2PromptsType
310
- >;
311
-
312
- export type UpdatePrompt2ImageUrl = {
313
- /**
314
- * Either a URL of the image or the base64 encoded data URI.
315
- */
316
- url: string;
317
- /**
318
- * Specifies the detail level of the image. Currently only supported with OpenAI models
319
- */
320
- detail?: string | undefined;
321
- };
322
-
323
- /**
324
- * The image part of the prompt message. Only supported with vision models.
325
- */
326
- export type UpdatePrompt22 = {
327
- type: UpdatePrompt2PromptsType;
328
- imageUrl: UpdatePrompt2ImageUrl;
329
- };
330
-
331
- export const UpdatePrompt2Type = {
332
- Text: "text",
333
- } as const;
334
- export type UpdatePrompt2Type = ClosedEnum<typeof UpdatePrompt2Type>;
335
-
336
- /**
337
- * Text content part of a prompt message
338
- */
339
- export type UpdatePrompt21 = {
340
- type: UpdatePrompt2Type;
341
- text: string;
342
- };
343
-
344
- export type UpdatePromptContent2 =
345
- | UpdatePrompt21
346
- | UpdatePrompt22
347
- | UpdatePrompt23;
348
-
349
- /**
350
- * 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.
351
- */
352
- export type UpdatePromptContent =
353
- | string
354
- | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>;
355
-
356
- export const UpdatePromptType = {
357
- Function: "function",
358
- } as const;
359
- export type UpdatePromptType = ClosedEnum<typeof UpdatePromptType>;
360
-
361
- export type UpdatePromptFunction = {
362
- name: string;
363
- /**
364
- * JSON string arguments for the functions
365
- */
366
- arguments: string;
367
- };
368
-
369
- export type UpdatePromptToolCalls = {
370
- id?: string | undefined;
371
- index?: number | undefined;
372
- type: UpdatePromptType;
373
- function: UpdatePromptFunction;
374
- };
375
-
376
- export type UpdatePromptMessages = {
377
- /**
378
- * The role of the prompt message
379
- */
380
- role: UpdatePromptRole;
381
- /**
382
- * 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.
383
- */
384
- content: string | Array<UpdatePrompt21 | UpdatePrompt22 | UpdatePrompt23>;
385
- toolCalls?: Array<UpdatePromptToolCalls> | undefined;
386
- toolCallId?: string | undefined;
387
- };
388
-
389
- export type UpdatePromptPromptConfig = {
390
- stream?: boolean | undefined;
391
- model?: string | undefined;
392
- /**
393
- * Model Parameters: Not all parameters apply to every model
394
- */
395
- modelParameters?: UpdatePromptModelParameters | undefined;
396
- provider?: UpdatePromptProvider | undefined;
397
- version?: string | undefined;
398
- messages: Array<UpdatePromptMessages>;
399
- modelDbId?: string | null | undefined;
400
- modelType?: string | null | undefined;
401
- };
402
-
403
- export const UpdatePromptUseCases = {
404
- AgentsSimulations: "Agents simulations",
405
- Agents: "Agents",
406
- APIInteraction: "API interaction",
407
- AutonomousAgents: "Autonomous Agents",
408
- Chatbots: "Chatbots",
409
- Classification: "Classification",
410
- CodeUnderstanding: "Code understanding",
411
- CodeWriting: "Code writing",
412
- Conversation: "Conversation",
413
- DocumentsQA: "Documents QA",
414
- Evaluation: "Evaluation",
415
- Extraction: "Extraction",
416
- MultiModal: "Multi-modal",
417
- SelfChecking: "Self-checking",
418
- SentimentAnalysis: "Sentiment analysis",
419
- Sql: "SQL",
420
- Summarization: "Summarization",
421
- Tagging: "Tagging",
422
- TranslationDocument: "Translation (document)",
423
- TranslationSentences: "Translation (sentences)",
424
- } as const;
425
- export type UpdatePromptUseCases = ClosedEnum<typeof UpdatePromptUseCases>;
426
-
427
- /**
428
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
429
- */
430
- export const UpdatePromptLanguage = {
431
- Chinese: "Chinese",
432
- Dutch: "Dutch",
433
- English: "English",
434
- French: "French",
435
- German: "German",
436
- Russian: "Russian",
437
- Spanish: "Spanish",
438
- } as const;
439
- /**
440
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
441
- */
442
- export type UpdatePromptLanguage = ClosedEnum<typeof UpdatePromptLanguage>;
443
-
444
- export type UpdatePromptMetadata = {
445
- /**
446
- * 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
447
- */
448
- useCases?: Array<UpdatePromptUseCases> | undefined;
449
- /**
450
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
451
- */
452
- language?: UpdatePromptLanguage | null | undefined;
453
- };
454
-
455
- export type UpdatePromptRequestBody = {
456
- owner?: string | undefined;
457
- domainId?: string | undefined;
458
- created?: string | undefined;
459
- updated?: string | undefined;
460
- createdById?: string | null | undefined;
461
- updatedById?: string | null | undefined;
462
- /**
463
- * The prompt’s name, meant to be displayable in the UI.
464
- */
465
- displayName?: string | undefined;
466
- /**
467
- * 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
468
- */
469
- description?: string | null | undefined;
470
- promptConfig?: UpdatePromptPromptConfig | undefined;
471
- metadata?: UpdatePromptMetadata | undefined;
472
- /**
473
- * The path where the entity is stored in the project structure. The first element of the path always represents the project name. Any subsequent path element after the project will be created as a folder in the project if it does not exists.
474
- */
475
- path?: string | undefined;
476
- };
477
-
478
- export type UpdatePromptRequest = {
479
- /**
480
- * Unique identifier of the prompt
481
- */
482
- id: string;
483
- requestBody?: UpdatePromptRequestBody | undefined;
484
- };
485
-
486
- export const UpdatePromptPromptsType = {
487
- Prompt: "prompt",
488
- } as const;
489
- export type UpdatePromptPromptsType = ClosedEnum<
490
- typeof UpdatePromptPromptsType
491
- >;
492
-
493
- /**
494
- * The modality of the model
495
- */
496
- export const UpdatePromptModelType = {
497
- Chat: "chat",
498
- Completion: "completion",
499
- Embedding: "embedding",
500
- Vision: "vision",
501
- Image: "image",
502
- Tts: "tts",
503
- Stt: "stt",
504
- Rerank: "rerank",
505
- Moderations: "moderations",
506
- } as const;
507
- /**
508
- * The modality of the model
509
- */
510
- export type UpdatePromptModelType = ClosedEnum<typeof UpdatePromptModelType>;
511
-
512
- /**
513
- * Only supported on `image` models.
514
- */
515
- export const UpdatePromptPromptsFormat = {
516
- Url: "url",
517
- B64Json: "b64_json",
518
- Text: "text",
519
- JsonObject: "json_object",
520
- } as const;
521
- /**
522
- * Only supported on `image` models.
523
- */
524
- export type UpdatePromptPromptsFormat = ClosedEnum<
525
- typeof UpdatePromptPromptsFormat
526
- >;
527
-
528
- export const UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType = {
529
- Text: "text",
530
- } as const;
531
- export type UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType =
532
- ClosedEnum<
533
- typeof UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType
534
- >;
535
-
536
- export type UpdatePromptResponseFormatPrompts3 = {
537
- type: UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType;
538
- };
539
-
540
- export const UpdatePromptResponseFormatPromptsResponse200Type = {
541
- JsonObject: "json_object",
542
- } as const;
543
- export type UpdatePromptResponseFormatPromptsResponse200Type = ClosedEnum<
544
- typeof UpdatePromptResponseFormatPromptsResponse200Type
545
- >;
546
-
547
- export type UpdatePromptResponseFormatPrompts2 = {
548
- type: UpdatePromptResponseFormatPromptsResponse200Type;
549
- };
550
-
551
- export const UpdatePromptResponseFormatPromptsResponseType = {
552
- JsonSchema: "json_schema",
553
- } as const;
554
- export type UpdatePromptResponseFormatPromptsResponseType = ClosedEnum<
555
- typeof UpdatePromptResponseFormatPromptsResponseType
556
- >;
557
-
558
- export type UpdatePromptResponseFormatJsonSchema = {
559
- name: string;
560
- strict?: boolean | undefined;
561
- schema: { [k: string]: any };
562
- };
563
-
564
- export type UpdatePromptResponseFormatPrompts1 = {
565
- type: UpdatePromptResponseFormatPromptsResponseType;
566
- jsonSchema: UpdatePromptResponseFormatJsonSchema;
567
- };
568
-
569
- /**
570
- * An object specifying the format that the model must output.
571
- *
572
- * @remarks
573
- *
574
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
575
- *
576
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
577
- *
578
- * 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.
579
- */
580
- export type UpdatePromptPromptsResponseFormat =
581
- | UpdatePromptResponseFormatPrompts1
582
- | UpdatePromptResponseFormatPrompts2
583
- | UpdatePromptResponseFormatPrompts3;
584
-
585
- /**
586
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
587
- */
588
- export const UpdatePromptPromptsPhotoRealVersion = {
589
- V1: "v1",
590
- V2: "v2",
591
- } as const;
592
- /**
593
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
594
- */
595
- export type UpdatePromptPromptsPhotoRealVersion = ClosedEnum<
596
- typeof UpdatePromptPromptsPhotoRealVersion
597
- >;
598
-
599
- /**
600
- * The format to return the embeddings
601
- */
602
- export const UpdatePromptPromptsEncodingFormat = {
603
- Float: "float",
604
- Base64: "base64",
605
- } as const;
606
- /**
607
- * The format to return the embeddings
608
- */
609
- export type UpdatePromptPromptsEncodingFormat = ClosedEnum<
610
- typeof UpdatePromptPromptsEncodingFormat
611
- >;
612
-
613
- /**
614
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
615
- */
616
- export const UpdatePromptPromptsReasoningEffort = {
617
- Disable: "disable",
618
- Low: "low",
619
- Medium: "medium",
620
- High: "high",
621
- } as const;
622
- /**
623
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
624
- */
625
- export type UpdatePromptPromptsReasoningEffort = ClosedEnum<
626
- typeof UpdatePromptPromptsReasoningEffort
627
- >;
628
-
629
- /**
630
- * Controls the verbosity of the model output.
631
- */
632
- export const UpdatePromptPromptsVerbosity = {
633
- Low: "low",
634
- Medium: "medium",
635
- High: "high",
636
- } as const;
637
- /**
638
- * Controls the verbosity of the model output.
639
- */
640
- export type UpdatePromptPromptsVerbosity = ClosedEnum<
641
- typeof UpdatePromptPromptsVerbosity
642
- >;
643
-
644
- /**
645
- * Model Parameters: Not all parameters apply to every model
646
- */
647
- export type UpdatePromptPromptsModelParameters = {
648
- /**
649
- * Only supported on `chat` and `completion` models.
650
- */
651
- temperature?: number | undefined;
652
- /**
653
- * Only supported on `chat` and `completion` models.
654
- */
655
- maxTokens?: number | undefined;
656
- /**
657
- * Only supported on `chat` and `completion` models.
658
- */
659
- topK?: number | undefined;
660
- /**
661
- * Only supported on `chat` and `completion` models.
662
- */
663
- topP?: number | undefined;
664
- /**
665
- * Only supported on `chat` and `completion` models.
666
- */
667
- frequencyPenalty?: number | undefined;
668
- /**
669
- * Only supported on `chat` and `completion` models.
670
- */
671
- presencePenalty?: number | undefined;
672
- /**
673
- * Only supported on `image` models.
674
- */
675
- numImages?: number | undefined;
676
- /**
677
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
678
- */
679
- seed?: number | undefined;
680
- /**
681
- * Only supported on `image` models.
682
- */
683
- format?: UpdatePromptPromptsFormat | undefined;
684
- /**
685
- * Only supported on `image` models.
686
- */
687
- dimensions?: string | undefined;
688
- /**
689
- * Only supported on `image` models.
690
- */
691
- quality?: string | undefined;
692
- /**
693
- * Only supported on `image` models.
694
- */
695
- style?: string | undefined;
696
- /**
697
- * An object specifying the format that the model must output.
698
- *
699
- * @remarks
700
- *
701
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
702
- *
703
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
704
- *
705
- * 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.
706
- */
707
- responseFormat?:
708
- | UpdatePromptResponseFormatPrompts1
709
- | UpdatePromptResponseFormatPrompts2
710
- | UpdatePromptResponseFormatPrompts3
711
- | null
712
- | undefined;
713
- /**
714
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
715
- */
716
- photoRealVersion?: UpdatePromptPromptsPhotoRealVersion | undefined;
717
- /**
718
- * The format to return the embeddings
719
- */
720
- encodingFormat?: UpdatePromptPromptsEncodingFormat | undefined;
721
- /**
722
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
723
- */
724
- reasoningEffort?: UpdatePromptPromptsReasoningEffort | undefined;
725
- /**
726
- * 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`
727
- */
728
- budgetTokens?: number | undefined;
729
- /**
730
- * Controls the verbosity of the model output.
731
- */
732
- verbosity?: UpdatePromptPromptsVerbosity | undefined;
733
- };
734
-
735
- export const UpdatePromptPromptsProvider = {
736
- Cohere: "cohere",
737
- Openai: "openai",
738
- Anthropic: "anthropic",
739
- Huggingface: "huggingface",
740
- Replicate: "replicate",
741
- Google: "google",
742
- GoogleAi: "google-ai",
743
- Azure: "azure",
744
- Aws: "aws",
745
- Anyscale: "anyscale",
746
- Perplexity: "perplexity",
747
- Groq: "groq",
748
- Fal: "fal",
749
- Leonardoai: "leonardoai",
750
- Nvidia: "nvidia",
751
- Jina: "jina",
752
- Togetherai: "togetherai",
753
- Elevenlabs: "elevenlabs",
754
- Litellm: "litellm",
755
- Openailike: "openailike",
756
- Cerebras: "cerebras",
757
- } as const;
758
- export type UpdatePromptPromptsProvider = ClosedEnum<
759
- typeof UpdatePromptPromptsProvider
760
- >;
761
-
762
- /**
763
- * The role of the prompt message
764
- */
765
- export const UpdatePromptPromptsRole = {
766
- System: "system",
767
- Assistant: "assistant",
768
- User: "user",
769
- Exception: "exception",
770
- Tool: "tool",
771
- Prompt: "prompt",
772
- Correction: "correction",
773
- ExpectedOutput: "expected_output",
774
- } as const;
775
- /**
776
- * The role of the prompt message
777
- */
778
- export type UpdatePromptPromptsRole = ClosedEnum<
779
- typeof UpdatePromptPromptsRole
780
- >;
781
-
782
- /**
783
- * The type of the content part. Always `file`.
784
- */
785
- export const UpdatePrompt2PromptsResponse200ApplicationJSONType = {
786
- File: "file",
787
- } as const;
788
- /**
789
- * The type of the content part. Always `file`.
790
- */
791
- export type UpdatePrompt2PromptsResponse200ApplicationJSONType = ClosedEnum<
792
- typeof UpdatePrompt2PromptsResponse200ApplicationJSONType
793
- >;
794
-
795
- export type UpdatePrompt2PromptsFile = {
796
- /**
797
- * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
798
- */
799
- fileData: string;
800
- /**
801
- * The name of the file, used when passing the file to the model as a string.
802
- */
803
- filename?: string | undefined;
804
- };
805
-
806
- export type UpdatePrompt2Prompts3 = {
807
- /**
808
- * The type of the content part. Always `file`.
809
- */
810
- type: UpdatePrompt2PromptsResponse200ApplicationJSONType;
811
- file: UpdatePrompt2PromptsFile;
812
- };
813
-
814
- export const UpdatePrompt2PromptsResponse200Type = {
815
- ImageUrl: "image_url",
816
- } as const;
817
- export type UpdatePrompt2PromptsResponse200Type = ClosedEnum<
818
- typeof UpdatePrompt2PromptsResponse200Type
819
- >;
820
-
821
- export type UpdatePrompt2PromptsImageUrl = {
822
- /**
823
- * The orq.ai id of the image
824
- */
825
- id?: string | undefined;
826
- /**
827
- * Either a URL of the image or the base64 encoded data URI.
828
- */
829
- url: string;
830
- /**
831
- * Specifies the detail level of the image. Currently only supported with OpenAI models
832
- */
833
- detail?: string | undefined;
834
- };
835
-
836
- /**
837
- * The image part of the prompt message. Only supported with vision models.
838
- */
839
- export type UpdatePrompt2Prompts2 = {
840
- type: UpdatePrompt2PromptsResponse200Type;
841
- imageUrl: UpdatePrompt2PromptsImageUrl;
842
- };
843
-
844
- export const UpdatePrompt2PromptsResponseType = {
845
- Text: "text",
846
- } as const;
847
- export type UpdatePrompt2PromptsResponseType = ClosedEnum<
848
- typeof UpdatePrompt2PromptsResponseType
849
- >;
850
-
851
- /**
852
- * Text content part of a prompt message
853
- */
854
- export type UpdatePrompt2Prompts1 = {
855
- type: UpdatePrompt2PromptsResponseType;
856
- text: string;
857
- };
858
-
859
- export type UpdatePromptContentPrompts2 =
860
- | UpdatePrompt2Prompts1
861
- | UpdatePrompt2Prompts2
862
- | UpdatePrompt2Prompts3;
863
-
864
- /**
865
- * 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.
866
- */
867
- export type UpdatePromptPromptsContent =
868
- | string
869
- | Array<
870
- UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2 | UpdatePrompt2Prompts3
871
- >;
872
-
873
- export const UpdatePromptPromptsResponseType = {
874
- Function: "function",
875
- } as const;
876
- export type UpdatePromptPromptsResponseType = ClosedEnum<
877
- typeof UpdatePromptPromptsResponseType
878
- >;
879
-
880
- export type UpdatePromptPromptsFunction = {
881
- name: string;
882
- /**
883
- * JSON string arguments for the functions
884
- */
885
- arguments: string;
886
- };
887
-
888
- export type UpdatePromptPromptsToolCalls = {
889
- id?: string | undefined;
890
- index?: number | undefined;
891
- type: UpdatePromptPromptsResponseType;
892
- function: UpdatePromptPromptsFunction;
893
- };
894
-
895
- export type UpdatePromptPromptsMessages = {
896
- /**
897
- * The role of the prompt message
898
- */
899
- role: UpdatePromptPromptsRole;
900
- /**
901
- * 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.
902
- */
903
- content:
904
- | string
905
- | Array<
906
- UpdatePrompt2Prompts1 | UpdatePrompt2Prompts2 | UpdatePrompt2Prompts3
907
- >;
908
- toolCalls?: Array<UpdatePromptPromptsToolCalls> | undefined;
909
- toolCallId?: string | undefined;
910
- };
911
-
912
- /**
913
- * A list of messages compatible with the openAI schema
914
- */
915
- export type UpdatePromptPromptsPromptConfig = {
916
- stream?: boolean | undefined;
917
- model?: string | undefined;
918
- /**
919
- * The id of the resource
920
- */
921
- modelDbId?: string | null | undefined;
922
- /**
923
- * The modality of the model
924
- */
925
- modelType?: UpdatePromptModelType | null | undefined;
926
- /**
927
- * Model Parameters: Not all parameters apply to every model
928
- */
929
- modelParameters?: UpdatePromptPromptsModelParameters | undefined;
930
- provider?: UpdatePromptPromptsProvider | undefined;
931
- /**
932
- * The id of the resource
933
- */
934
- integrationId?: string | null | undefined;
935
- version?: string | undefined;
936
- messages: Array<UpdatePromptPromptsMessages>;
937
- };
938
-
939
- export const UpdatePromptPromptsUseCases = {
940
- AgentsSimulations: "Agents simulations",
941
- Agents: "Agents",
942
- APIInteraction: "API interaction",
943
- AutonomousAgents: "Autonomous Agents",
944
- Chatbots: "Chatbots",
945
- Classification: "Classification",
946
- CodeUnderstanding: "Code understanding",
947
- CodeWriting: "Code writing",
948
- Conversation: "Conversation",
949
- DocumentsQA: "Documents QA",
950
- Evaluation: "Evaluation",
951
- Extraction: "Extraction",
952
- MultiModal: "Multi-modal",
953
- SelfChecking: "Self-checking",
954
- SentimentAnalysis: "Sentiment analysis",
955
- Sql: "SQL",
956
- Summarization: "Summarization",
957
- Tagging: "Tagging",
958
- TranslationDocument: "Translation (document)",
959
- TranslationSentences: "Translation (sentences)",
960
- } as const;
961
- export type UpdatePromptPromptsUseCases = ClosedEnum<
962
- typeof UpdatePromptPromptsUseCases
963
- >;
964
-
965
- /**
966
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
967
- */
968
- export const UpdatePromptPromptsLanguage = {
969
- Chinese: "Chinese",
970
- Dutch: "Dutch",
971
- English: "English",
972
- French: "French",
973
- German: "German",
974
- Russian: "Russian",
975
- Spanish: "Spanish",
976
- } as const;
977
- /**
978
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
979
- */
980
- export type UpdatePromptPromptsLanguage = ClosedEnum<
981
- typeof UpdatePromptPromptsLanguage
982
- >;
983
-
984
- export type UpdatePromptPromptsMetadata = {
985
- /**
986
- * 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
987
- */
988
- useCases?: Array<UpdatePromptPromptsUseCases> | undefined;
989
- /**
990
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
991
- */
992
- language?: UpdatePromptPromptsLanguage | null | undefined;
993
- };
994
-
995
- /**
996
- * Prompt updated.
997
- */
998
- export type UpdatePromptResponseBody = {
999
- id: string;
1000
- type: UpdatePromptPromptsType;
1001
- owner: string;
1002
- domainId: string;
1003
- created: string;
1004
- updated: string;
1005
- createdById?: string | null | undefined;
1006
- updatedById?: string | null | undefined;
1007
- /**
1008
- * The prompt’s name, meant to be displayable in the UI.
1009
- */
1010
- displayName: string;
1011
- /**
1012
- * 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
1013
- */
1014
- description?: string | null | undefined;
1015
- /**
1016
- * A list of messages compatible with the openAI schema
1017
- */
1018
- promptConfig: UpdatePromptPromptsPromptConfig;
1019
- metadata?: UpdatePromptPromptsMetadata | undefined;
1020
- };
1021
-
1022
- /** @internal */
1023
- export const UpdatePromptFormat$inboundSchema: z.ZodNativeEnum<
1024
- typeof UpdatePromptFormat
1025
- > = z.nativeEnum(UpdatePromptFormat);
1026
-
1027
- /** @internal */
1028
- export const UpdatePromptFormat$outboundSchema: z.ZodNativeEnum<
1029
- typeof UpdatePromptFormat
1030
- > = UpdatePromptFormat$inboundSchema;
1031
-
1032
- /**
1033
- * @internal
1034
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1035
- */
1036
- export namespace UpdatePromptFormat$ {
1037
- /** @deprecated use `UpdatePromptFormat$inboundSchema` instead. */
1038
- export const inboundSchema = UpdatePromptFormat$inboundSchema;
1039
- /** @deprecated use `UpdatePromptFormat$outboundSchema` instead. */
1040
- export const outboundSchema = UpdatePromptFormat$outboundSchema;
1041
- }
1042
-
1043
- /** @internal */
1044
- export const UpdatePromptResponseFormatPromptsRequestType$inboundSchema:
1045
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsRequestType> = z
1046
- .nativeEnum(UpdatePromptResponseFormatPromptsRequestType);
1047
-
1048
- /** @internal */
1049
- export const UpdatePromptResponseFormatPromptsRequestType$outboundSchema:
1050
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsRequestType> =
1051
- UpdatePromptResponseFormatPromptsRequestType$inboundSchema;
1052
-
1053
- /**
1054
- * @internal
1055
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1056
- */
1057
- export namespace UpdatePromptResponseFormatPromptsRequestType$ {
1058
- /** @deprecated use `UpdatePromptResponseFormatPromptsRequestType$inboundSchema` instead. */
1059
- export const inboundSchema =
1060
- UpdatePromptResponseFormatPromptsRequestType$inboundSchema;
1061
- /** @deprecated use `UpdatePromptResponseFormatPromptsRequestType$outboundSchema` instead. */
1062
- export const outboundSchema =
1063
- UpdatePromptResponseFormatPromptsRequestType$outboundSchema;
1064
- }
1065
-
1066
- /** @internal */
1067
- export const UpdatePromptResponseFormat3$inboundSchema: z.ZodType<
1068
- UpdatePromptResponseFormat3,
1069
- z.ZodTypeDef,
1070
- unknown
1071
- > = z.object({
1072
- type: UpdatePromptResponseFormatPromptsRequestType$inboundSchema,
1073
- });
1074
-
1075
- /** @internal */
1076
- export type UpdatePromptResponseFormat3$Outbound = {
1077
- type: string;
1078
- };
1079
-
1080
- /** @internal */
1081
- export const UpdatePromptResponseFormat3$outboundSchema: z.ZodType<
1082
- UpdatePromptResponseFormat3$Outbound,
1083
- z.ZodTypeDef,
1084
- UpdatePromptResponseFormat3
1085
- > = z.object({
1086
- type: UpdatePromptResponseFormatPromptsRequestType$outboundSchema,
1087
- });
1088
-
1089
- /**
1090
- * @internal
1091
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1092
- */
1093
- export namespace UpdatePromptResponseFormat3$ {
1094
- /** @deprecated use `UpdatePromptResponseFormat3$inboundSchema` instead. */
1095
- export const inboundSchema = UpdatePromptResponseFormat3$inboundSchema;
1096
- /** @deprecated use `UpdatePromptResponseFormat3$outboundSchema` instead. */
1097
- export const outboundSchema = UpdatePromptResponseFormat3$outboundSchema;
1098
- /** @deprecated use `UpdatePromptResponseFormat3$Outbound` instead. */
1099
- export type Outbound = UpdatePromptResponseFormat3$Outbound;
1100
- }
1101
-
1102
- export function updatePromptResponseFormat3ToJSON(
1103
- updatePromptResponseFormat3: UpdatePromptResponseFormat3,
1104
- ): string {
1105
- return JSON.stringify(
1106
- UpdatePromptResponseFormat3$outboundSchema.parse(
1107
- updatePromptResponseFormat3,
1108
- ),
1109
- );
1110
- }
1111
-
1112
- export function updatePromptResponseFormat3FromJSON(
1113
- jsonString: string,
1114
- ): SafeParseResult<UpdatePromptResponseFormat3, SDKValidationError> {
1115
- return safeParse(
1116
- jsonString,
1117
- (x) => UpdatePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)),
1118
- `Failed to parse 'UpdatePromptResponseFormat3' from JSON`,
1119
- );
1120
- }
1121
-
1122
- /** @internal */
1123
- export const UpdatePromptResponseFormatPromptsType$inboundSchema:
1124
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> = z.nativeEnum(
1125
- UpdatePromptResponseFormatPromptsType,
1126
- );
1127
-
1128
- /** @internal */
1129
- export const UpdatePromptResponseFormatPromptsType$outboundSchema:
1130
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsType> =
1131
- UpdatePromptResponseFormatPromptsType$inboundSchema;
1132
-
1133
- /**
1134
- * @internal
1135
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1136
- */
1137
- export namespace UpdatePromptResponseFormatPromptsType$ {
1138
- /** @deprecated use `UpdatePromptResponseFormatPromptsType$inboundSchema` instead. */
1139
- export const inboundSchema =
1140
- UpdatePromptResponseFormatPromptsType$inboundSchema;
1141
- /** @deprecated use `UpdatePromptResponseFormatPromptsType$outboundSchema` instead. */
1142
- export const outboundSchema =
1143
- UpdatePromptResponseFormatPromptsType$outboundSchema;
1144
- }
1145
-
1146
- /** @internal */
1147
- export const UpdatePromptResponseFormat2$inboundSchema: z.ZodType<
1148
- UpdatePromptResponseFormat2,
1149
- z.ZodTypeDef,
1150
- unknown
1151
- > = z.object({
1152
- type: UpdatePromptResponseFormatPromptsType$inboundSchema,
1153
- });
1154
-
1155
- /** @internal */
1156
- export type UpdatePromptResponseFormat2$Outbound = {
1157
- type: string;
1158
- };
1159
-
1160
- /** @internal */
1161
- export const UpdatePromptResponseFormat2$outboundSchema: z.ZodType<
1162
- UpdatePromptResponseFormat2$Outbound,
1163
- z.ZodTypeDef,
1164
- UpdatePromptResponseFormat2
1165
- > = z.object({
1166
- type: UpdatePromptResponseFormatPromptsType$outboundSchema,
1167
- });
1168
-
1169
- /**
1170
- * @internal
1171
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1172
- */
1173
- export namespace UpdatePromptResponseFormat2$ {
1174
- /** @deprecated use `UpdatePromptResponseFormat2$inboundSchema` instead. */
1175
- export const inboundSchema = UpdatePromptResponseFormat2$inboundSchema;
1176
- /** @deprecated use `UpdatePromptResponseFormat2$outboundSchema` instead. */
1177
- export const outboundSchema = UpdatePromptResponseFormat2$outboundSchema;
1178
- /** @deprecated use `UpdatePromptResponseFormat2$Outbound` instead. */
1179
- export type Outbound = UpdatePromptResponseFormat2$Outbound;
1180
- }
1181
-
1182
- export function updatePromptResponseFormat2ToJSON(
1183
- updatePromptResponseFormat2: UpdatePromptResponseFormat2,
1184
- ): string {
1185
- return JSON.stringify(
1186
- UpdatePromptResponseFormat2$outboundSchema.parse(
1187
- updatePromptResponseFormat2,
1188
- ),
1189
- );
1190
- }
1191
-
1192
- export function updatePromptResponseFormat2FromJSON(
1193
- jsonString: string,
1194
- ): SafeParseResult<UpdatePromptResponseFormat2, SDKValidationError> {
1195
- return safeParse(
1196
- jsonString,
1197
- (x) => UpdatePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1198
- `Failed to parse 'UpdatePromptResponseFormat2' from JSON`,
1199
- );
1200
- }
1201
-
1202
- /** @internal */
1203
- export const UpdatePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<
1204
- typeof UpdatePromptResponseFormatType
1205
- > = z.nativeEnum(UpdatePromptResponseFormatType);
1206
-
1207
- /** @internal */
1208
- export const UpdatePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<
1209
- typeof UpdatePromptResponseFormatType
1210
- > = UpdatePromptResponseFormatType$inboundSchema;
1211
-
1212
- /**
1213
- * @internal
1214
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1215
- */
1216
- export namespace UpdatePromptResponseFormatType$ {
1217
- /** @deprecated use `UpdatePromptResponseFormatType$inboundSchema` instead. */
1218
- export const inboundSchema = UpdatePromptResponseFormatType$inboundSchema;
1219
- /** @deprecated use `UpdatePromptResponseFormatType$outboundSchema` instead. */
1220
- export const outboundSchema = UpdatePromptResponseFormatType$outboundSchema;
1221
- }
1222
-
1223
- /** @internal */
1224
- export const ResponseFormatJsonSchema$inboundSchema: z.ZodType<
1225
- ResponseFormatJsonSchema,
1226
- z.ZodTypeDef,
1227
- unknown
1228
- > = z.object({
1229
- name: z.string(),
1230
- strict: z.boolean().optional(),
1231
- schema: z.record(z.any()),
1232
- });
1233
-
1234
- /** @internal */
1235
- export type ResponseFormatJsonSchema$Outbound = {
1236
- name: string;
1237
- strict?: boolean | undefined;
1238
- schema: { [k: string]: any };
1239
- };
1240
-
1241
- /** @internal */
1242
- export const ResponseFormatJsonSchema$outboundSchema: z.ZodType<
1243
- ResponseFormatJsonSchema$Outbound,
1244
- z.ZodTypeDef,
1245
- ResponseFormatJsonSchema
1246
- > = z.object({
1247
- name: z.string(),
1248
- strict: z.boolean().optional(),
1249
- schema: z.record(z.any()),
1250
- });
1251
-
1252
- /**
1253
- * @internal
1254
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1255
- */
1256
- export namespace ResponseFormatJsonSchema$ {
1257
- /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
1258
- export const inboundSchema = ResponseFormatJsonSchema$inboundSchema;
1259
- /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
1260
- export const outboundSchema = ResponseFormatJsonSchema$outboundSchema;
1261
- /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
1262
- export type Outbound = ResponseFormatJsonSchema$Outbound;
1263
- }
1264
-
1265
- export function responseFormatJsonSchemaToJSON(
1266
- responseFormatJsonSchema: ResponseFormatJsonSchema,
1267
- ): string {
1268
- return JSON.stringify(
1269
- ResponseFormatJsonSchema$outboundSchema.parse(responseFormatJsonSchema),
1270
- );
1271
- }
1272
-
1273
- export function responseFormatJsonSchemaFromJSON(
1274
- jsonString: string,
1275
- ): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError> {
1276
- return safeParse(
1277
- jsonString,
1278
- (x) => ResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
1279
- `Failed to parse 'ResponseFormatJsonSchema' from JSON`,
1280
- );
1281
- }
1282
-
1283
- /** @internal */
1284
- export const UpdatePromptResponseFormat1$inboundSchema: z.ZodType<
1285
- UpdatePromptResponseFormat1,
1286
- z.ZodTypeDef,
1287
- unknown
1288
- > = z.object({
1289
- type: UpdatePromptResponseFormatType$inboundSchema,
1290
- json_schema: z.lazy(() => ResponseFormatJsonSchema$inboundSchema),
1291
- }).transform((v) => {
1292
- return remap$(v, {
1293
- "json_schema": "jsonSchema",
1294
- });
1295
- });
1296
-
1297
- /** @internal */
1298
- export type UpdatePromptResponseFormat1$Outbound = {
1299
- type: string;
1300
- json_schema: ResponseFormatJsonSchema$Outbound;
1301
- };
1302
-
1303
- /** @internal */
1304
- export const UpdatePromptResponseFormat1$outboundSchema: z.ZodType<
1305
- UpdatePromptResponseFormat1$Outbound,
1306
- z.ZodTypeDef,
1307
- UpdatePromptResponseFormat1
1308
- > = z.object({
1309
- type: UpdatePromptResponseFormatType$outboundSchema,
1310
- jsonSchema: z.lazy(() => ResponseFormatJsonSchema$outboundSchema),
1311
- }).transform((v) => {
1312
- return remap$(v, {
1313
- jsonSchema: "json_schema",
1314
- });
1315
- });
1316
-
1317
- /**
1318
- * @internal
1319
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1320
- */
1321
- export namespace UpdatePromptResponseFormat1$ {
1322
- /** @deprecated use `UpdatePromptResponseFormat1$inboundSchema` instead. */
1323
- export const inboundSchema = UpdatePromptResponseFormat1$inboundSchema;
1324
- /** @deprecated use `UpdatePromptResponseFormat1$outboundSchema` instead. */
1325
- export const outboundSchema = UpdatePromptResponseFormat1$outboundSchema;
1326
- /** @deprecated use `UpdatePromptResponseFormat1$Outbound` instead. */
1327
- export type Outbound = UpdatePromptResponseFormat1$Outbound;
1328
- }
1329
-
1330
- export function updatePromptResponseFormat1ToJSON(
1331
- updatePromptResponseFormat1: UpdatePromptResponseFormat1,
1332
- ): string {
1333
- return JSON.stringify(
1334
- UpdatePromptResponseFormat1$outboundSchema.parse(
1335
- updatePromptResponseFormat1,
1336
- ),
1337
- );
1338
- }
1339
-
1340
- export function updatePromptResponseFormat1FromJSON(
1341
- jsonString: string,
1342
- ): SafeParseResult<UpdatePromptResponseFormat1, SDKValidationError> {
1343
- return safeParse(
1344
- jsonString,
1345
- (x) => UpdatePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1346
- `Failed to parse 'UpdatePromptResponseFormat1' from JSON`,
1347
- );
1348
- }
1349
-
1350
- /** @internal */
1351
- export const UpdatePromptResponseFormat$inboundSchema: z.ZodType<
1352
- UpdatePromptResponseFormat,
1353
- z.ZodTypeDef,
1354
- unknown
1355
- > = z.union([
1356
- z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1357
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1358
- z.lazy(() => UpdatePromptResponseFormat3$inboundSchema),
1359
- ]);
1360
-
1361
- /** @internal */
1362
- export type UpdatePromptResponseFormat$Outbound =
1363
- | UpdatePromptResponseFormat1$Outbound
1364
- | UpdatePromptResponseFormat2$Outbound
1365
- | UpdatePromptResponseFormat3$Outbound;
1366
-
1367
- /** @internal */
1368
- export const UpdatePromptResponseFormat$outboundSchema: z.ZodType<
1369
- UpdatePromptResponseFormat$Outbound,
1370
- z.ZodTypeDef,
1371
- UpdatePromptResponseFormat
1372
- > = z.union([
1373
- z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1374
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1375
- z.lazy(() => UpdatePromptResponseFormat3$outboundSchema),
1376
- ]);
1377
-
1378
- /**
1379
- * @internal
1380
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1381
- */
1382
- export namespace UpdatePromptResponseFormat$ {
1383
- /** @deprecated use `UpdatePromptResponseFormat$inboundSchema` instead. */
1384
- export const inboundSchema = UpdatePromptResponseFormat$inboundSchema;
1385
- /** @deprecated use `UpdatePromptResponseFormat$outboundSchema` instead. */
1386
- export const outboundSchema = UpdatePromptResponseFormat$outboundSchema;
1387
- /** @deprecated use `UpdatePromptResponseFormat$Outbound` instead. */
1388
- export type Outbound = UpdatePromptResponseFormat$Outbound;
1389
- }
1390
-
1391
- export function updatePromptResponseFormatToJSON(
1392
- updatePromptResponseFormat: UpdatePromptResponseFormat,
1393
- ): string {
1394
- return JSON.stringify(
1395
- UpdatePromptResponseFormat$outboundSchema.parse(updatePromptResponseFormat),
1396
- );
1397
- }
1398
-
1399
- export function updatePromptResponseFormatFromJSON(
1400
- jsonString: string,
1401
- ): SafeParseResult<UpdatePromptResponseFormat, SDKValidationError> {
1402
- return safeParse(
1403
- jsonString,
1404
- (x) => UpdatePromptResponseFormat$inboundSchema.parse(JSON.parse(x)),
1405
- `Failed to parse 'UpdatePromptResponseFormat' from JSON`,
1406
- );
1407
- }
1408
-
1409
- /** @internal */
1410
- export const UpdatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
1411
- typeof UpdatePromptPhotoRealVersion
1412
- > = z.nativeEnum(UpdatePromptPhotoRealVersion);
1413
-
1414
- /** @internal */
1415
- export const UpdatePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
1416
- typeof UpdatePromptPhotoRealVersion
1417
- > = UpdatePromptPhotoRealVersion$inboundSchema;
1418
-
1419
- /**
1420
- * @internal
1421
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1422
- */
1423
- export namespace UpdatePromptPhotoRealVersion$ {
1424
- /** @deprecated use `UpdatePromptPhotoRealVersion$inboundSchema` instead. */
1425
- export const inboundSchema = UpdatePromptPhotoRealVersion$inboundSchema;
1426
- /** @deprecated use `UpdatePromptPhotoRealVersion$outboundSchema` instead. */
1427
- export const outboundSchema = UpdatePromptPhotoRealVersion$outboundSchema;
1428
- }
1429
-
1430
- /** @internal */
1431
- export const UpdatePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<
1432
- typeof UpdatePromptEncodingFormat
1433
- > = z.nativeEnum(UpdatePromptEncodingFormat);
1434
-
1435
- /** @internal */
1436
- export const UpdatePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<
1437
- typeof UpdatePromptEncodingFormat
1438
- > = UpdatePromptEncodingFormat$inboundSchema;
1439
-
1440
- /**
1441
- * @internal
1442
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1443
- */
1444
- export namespace UpdatePromptEncodingFormat$ {
1445
- /** @deprecated use `UpdatePromptEncodingFormat$inboundSchema` instead. */
1446
- export const inboundSchema = UpdatePromptEncodingFormat$inboundSchema;
1447
- /** @deprecated use `UpdatePromptEncodingFormat$outboundSchema` instead. */
1448
- export const outboundSchema = UpdatePromptEncodingFormat$outboundSchema;
1449
- }
1450
-
1451
- /** @internal */
1452
- export const UpdatePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<
1453
- typeof UpdatePromptReasoningEffort
1454
- > = z.nativeEnum(UpdatePromptReasoningEffort);
1455
-
1456
- /** @internal */
1457
- export const UpdatePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<
1458
- typeof UpdatePromptReasoningEffort
1459
- > = UpdatePromptReasoningEffort$inboundSchema;
1460
-
1461
- /**
1462
- * @internal
1463
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1464
- */
1465
- export namespace UpdatePromptReasoningEffort$ {
1466
- /** @deprecated use `UpdatePromptReasoningEffort$inboundSchema` instead. */
1467
- export const inboundSchema = UpdatePromptReasoningEffort$inboundSchema;
1468
- /** @deprecated use `UpdatePromptReasoningEffort$outboundSchema` instead. */
1469
- export const outboundSchema = UpdatePromptReasoningEffort$outboundSchema;
1470
- }
1471
-
1472
- /** @internal */
1473
- export const UpdatePromptVerbosity$inboundSchema: z.ZodNativeEnum<
1474
- typeof UpdatePromptVerbosity
1475
- > = z.nativeEnum(UpdatePromptVerbosity);
1476
-
1477
- /** @internal */
1478
- export const UpdatePromptVerbosity$outboundSchema: z.ZodNativeEnum<
1479
- typeof UpdatePromptVerbosity
1480
- > = UpdatePromptVerbosity$inboundSchema;
1481
-
1482
- /**
1483
- * @internal
1484
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1485
- */
1486
- export namespace UpdatePromptVerbosity$ {
1487
- /** @deprecated use `UpdatePromptVerbosity$inboundSchema` instead. */
1488
- export const inboundSchema = UpdatePromptVerbosity$inboundSchema;
1489
- /** @deprecated use `UpdatePromptVerbosity$outboundSchema` instead. */
1490
- export const outboundSchema = UpdatePromptVerbosity$outboundSchema;
1491
- }
1492
-
1493
- /** @internal */
1494
- export const UpdatePromptModelParameters$inboundSchema: z.ZodType<
1495
- UpdatePromptModelParameters,
1496
- z.ZodTypeDef,
1497
- unknown
1498
- > = z.object({
1499
- temperature: z.number().optional(),
1500
- maxTokens: z.number().optional(),
1501
- topK: z.number().optional(),
1502
- topP: z.number().optional(),
1503
- frequencyPenalty: z.number().optional(),
1504
- presencePenalty: z.number().optional(),
1505
- numImages: z.number().optional(),
1506
- seed: z.number().optional(),
1507
- format: UpdatePromptFormat$inboundSchema.optional(),
1508
- dimensions: z.string().optional(),
1509
- quality: z.string().optional(),
1510
- style: z.string().optional(),
1511
- responseFormat: z.nullable(
1512
- z.union([
1513
- z.lazy(() => UpdatePromptResponseFormat1$inboundSchema),
1514
- z.lazy(() => UpdatePromptResponseFormat2$inboundSchema),
1515
- z.lazy(() => UpdatePromptResponseFormat3$inboundSchema),
1516
- ]),
1517
- ).optional(),
1518
- photoRealVersion: UpdatePromptPhotoRealVersion$inboundSchema.optional(),
1519
- encoding_format: UpdatePromptEncodingFormat$inboundSchema.optional(),
1520
- reasoningEffort: UpdatePromptReasoningEffort$inboundSchema.optional(),
1521
- budgetTokens: z.number().optional(),
1522
- verbosity: UpdatePromptVerbosity$inboundSchema.optional(),
1523
- }).transform((v) => {
1524
- return remap$(v, {
1525
- "encoding_format": "encodingFormat",
1526
- });
1527
- });
1528
-
1529
- /** @internal */
1530
- export type UpdatePromptModelParameters$Outbound = {
1531
- temperature?: number | undefined;
1532
- maxTokens?: number | undefined;
1533
- topK?: number | undefined;
1534
- topP?: number | undefined;
1535
- frequencyPenalty?: number | undefined;
1536
- presencePenalty?: number | undefined;
1537
- numImages?: number | undefined;
1538
- seed?: number | undefined;
1539
- format?: string | undefined;
1540
- dimensions?: string | undefined;
1541
- quality?: string | undefined;
1542
- style?: string | undefined;
1543
- responseFormat?:
1544
- | UpdatePromptResponseFormat1$Outbound
1545
- | UpdatePromptResponseFormat2$Outbound
1546
- | UpdatePromptResponseFormat3$Outbound
1547
- | null
1548
- | undefined;
1549
- photoRealVersion?: string | undefined;
1550
- encoding_format?: string | undefined;
1551
- reasoningEffort?: string | undefined;
1552
- budgetTokens?: number | undefined;
1553
- verbosity?: string | undefined;
1554
- };
1555
-
1556
- /** @internal */
1557
- export const UpdatePromptModelParameters$outboundSchema: z.ZodType<
1558
- UpdatePromptModelParameters$Outbound,
1559
- z.ZodTypeDef,
1560
- UpdatePromptModelParameters
1561
- > = z.object({
1562
- temperature: z.number().optional(),
1563
- maxTokens: z.number().optional(),
1564
- topK: z.number().optional(),
1565
- topP: z.number().optional(),
1566
- frequencyPenalty: z.number().optional(),
1567
- presencePenalty: z.number().optional(),
1568
- numImages: z.number().optional(),
1569
- seed: z.number().optional(),
1570
- format: UpdatePromptFormat$outboundSchema.optional(),
1571
- dimensions: z.string().optional(),
1572
- quality: z.string().optional(),
1573
- style: z.string().optional(),
1574
- responseFormat: z.nullable(
1575
- z.union([
1576
- z.lazy(() => UpdatePromptResponseFormat1$outboundSchema),
1577
- z.lazy(() => UpdatePromptResponseFormat2$outboundSchema),
1578
- z.lazy(() => UpdatePromptResponseFormat3$outboundSchema),
1579
- ]),
1580
- ).optional(),
1581
- photoRealVersion: UpdatePromptPhotoRealVersion$outboundSchema.optional(),
1582
- encodingFormat: UpdatePromptEncodingFormat$outboundSchema.optional(),
1583
- reasoningEffort: UpdatePromptReasoningEffort$outboundSchema.optional(),
1584
- budgetTokens: z.number().optional(),
1585
- verbosity: UpdatePromptVerbosity$outboundSchema.optional(),
1586
- }).transform((v) => {
1587
- return remap$(v, {
1588
- encodingFormat: "encoding_format",
1589
- });
1590
- });
1591
-
1592
- /**
1593
- * @internal
1594
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1595
- */
1596
- export namespace UpdatePromptModelParameters$ {
1597
- /** @deprecated use `UpdatePromptModelParameters$inboundSchema` instead. */
1598
- export const inboundSchema = UpdatePromptModelParameters$inboundSchema;
1599
- /** @deprecated use `UpdatePromptModelParameters$outboundSchema` instead. */
1600
- export const outboundSchema = UpdatePromptModelParameters$outboundSchema;
1601
- /** @deprecated use `UpdatePromptModelParameters$Outbound` instead. */
1602
- export type Outbound = UpdatePromptModelParameters$Outbound;
1603
- }
1604
-
1605
- export function updatePromptModelParametersToJSON(
1606
- updatePromptModelParameters: UpdatePromptModelParameters,
1607
- ): string {
1608
- return JSON.stringify(
1609
- UpdatePromptModelParameters$outboundSchema.parse(
1610
- updatePromptModelParameters,
1611
- ),
1612
- );
1613
- }
1614
-
1615
- export function updatePromptModelParametersFromJSON(
1616
- jsonString: string,
1617
- ): SafeParseResult<UpdatePromptModelParameters, SDKValidationError> {
1618
- return safeParse(
1619
- jsonString,
1620
- (x) => UpdatePromptModelParameters$inboundSchema.parse(JSON.parse(x)),
1621
- `Failed to parse 'UpdatePromptModelParameters' from JSON`,
1622
- );
1623
- }
1624
-
1625
- /** @internal */
1626
- export const UpdatePromptProvider$inboundSchema: z.ZodNativeEnum<
1627
- typeof UpdatePromptProvider
1628
- > = z.nativeEnum(UpdatePromptProvider);
1629
-
1630
- /** @internal */
1631
- export const UpdatePromptProvider$outboundSchema: z.ZodNativeEnum<
1632
- typeof UpdatePromptProvider
1633
- > = UpdatePromptProvider$inboundSchema;
1634
-
1635
- /**
1636
- * @internal
1637
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1638
- */
1639
- export namespace UpdatePromptProvider$ {
1640
- /** @deprecated use `UpdatePromptProvider$inboundSchema` instead. */
1641
- export const inboundSchema = UpdatePromptProvider$inboundSchema;
1642
- /** @deprecated use `UpdatePromptProvider$outboundSchema` instead. */
1643
- export const outboundSchema = UpdatePromptProvider$outboundSchema;
1644
- }
1645
-
1646
- /** @internal */
1647
- export const UpdatePromptRole$inboundSchema: z.ZodNativeEnum<
1648
- typeof UpdatePromptRole
1649
- > = z.nativeEnum(UpdatePromptRole);
1650
-
1651
- /** @internal */
1652
- export const UpdatePromptRole$outboundSchema: z.ZodNativeEnum<
1653
- typeof UpdatePromptRole
1654
- > = UpdatePromptRole$inboundSchema;
1655
-
1656
- /**
1657
- * @internal
1658
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1659
- */
1660
- export namespace UpdatePromptRole$ {
1661
- /** @deprecated use `UpdatePromptRole$inboundSchema` instead. */
1662
- export const inboundSchema = UpdatePromptRole$inboundSchema;
1663
- /** @deprecated use `UpdatePromptRole$outboundSchema` instead. */
1664
- export const outboundSchema = UpdatePromptRole$outboundSchema;
1665
- }
1666
-
1667
- /** @internal */
1668
- export const UpdatePrompt2PromptsRequestType$inboundSchema: z.ZodNativeEnum<
1669
- typeof UpdatePrompt2PromptsRequestType
1670
- > = z.nativeEnum(UpdatePrompt2PromptsRequestType);
1671
-
1672
- /** @internal */
1673
- export const UpdatePrompt2PromptsRequestType$outboundSchema: z.ZodNativeEnum<
1674
- typeof UpdatePrompt2PromptsRequestType
1675
- > = UpdatePrompt2PromptsRequestType$inboundSchema;
1676
-
1677
- /**
1678
- * @internal
1679
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1680
- */
1681
- export namespace UpdatePrompt2PromptsRequestType$ {
1682
- /** @deprecated use `UpdatePrompt2PromptsRequestType$inboundSchema` instead. */
1683
- export const inboundSchema = UpdatePrompt2PromptsRequestType$inboundSchema;
1684
- /** @deprecated use `UpdatePrompt2PromptsRequestType$outboundSchema` instead. */
1685
- export const outboundSchema = UpdatePrompt2PromptsRequestType$outboundSchema;
1686
- }
1687
-
1688
- /** @internal */
1689
- export const UpdatePrompt2File$inboundSchema: z.ZodType<
1690
- UpdatePrompt2File,
1691
- z.ZodTypeDef,
1692
- unknown
1693
- > = z.object({
1694
- file_data: z.string(),
1695
- filename: z.string().optional(),
1696
- }).transform((v) => {
1697
- return remap$(v, {
1698
- "file_data": "fileData",
1699
- });
1700
- });
1701
-
1702
- /** @internal */
1703
- export type UpdatePrompt2File$Outbound = {
1704
- file_data: string;
1705
- filename?: string | undefined;
1706
- };
1707
-
1708
- /** @internal */
1709
- export const UpdatePrompt2File$outboundSchema: z.ZodType<
1710
- UpdatePrompt2File$Outbound,
1711
- z.ZodTypeDef,
1712
- UpdatePrompt2File
1713
- > = z.object({
1714
- fileData: z.string(),
1715
- filename: z.string().optional(),
1716
- }).transform((v) => {
1717
- return remap$(v, {
1718
- fileData: "file_data",
1719
- });
1720
- });
1721
-
1722
- /**
1723
- * @internal
1724
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1725
- */
1726
- export namespace UpdatePrompt2File$ {
1727
- /** @deprecated use `UpdatePrompt2File$inboundSchema` instead. */
1728
- export const inboundSchema = UpdatePrompt2File$inboundSchema;
1729
- /** @deprecated use `UpdatePrompt2File$outboundSchema` instead. */
1730
- export const outboundSchema = UpdatePrompt2File$outboundSchema;
1731
- /** @deprecated use `UpdatePrompt2File$Outbound` instead. */
1732
- export type Outbound = UpdatePrompt2File$Outbound;
1733
- }
1734
-
1735
- export function updatePrompt2FileToJSON(
1736
- updatePrompt2File: UpdatePrompt2File,
1737
- ): string {
1738
- return JSON.stringify(
1739
- UpdatePrompt2File$outboundSchema.parse(updatePrompt2File),
1740
- );
1741
- }
1742
-
1743
- export function updatePrompt2FileFromJSON(
1744
- jsonString: string,
1745
- ): SafeParseResult<UpdatePrompt2File, SDKValidationError> {
1746
- return safeParse(
1747
- jsonString,
1748
- (x) => UpdatePrompt2File$inboundSchema.parse(JSON.parse(x)),
1749
- `Failed to parse 'UpdatePrompt2File' from JSON`,
1750
- );
1751
- }
1752
-
1753
- /** @internal */
1754
- export const UpdatePrompt23$inboundSchema: z.ZodType<
1755
- UpdatePrompt23,
1756
- z.ZodTypeDef,
1757
- unknown
1758
- > = z.object({
1759
- type: UpdatePrompt2PromptsRequestType$inboundSchema,
1760
- file: z.lazy(() => UpdatePrompt2File$inboundSchema),
1761
- });
1762
-
1763
- /** @internal */
1764
- export type UpdatePrompt23$Outbound = {
1765
- type: string;
1766
- file: UpdatePrompt2File$Outbound;
1767
- };
1768
-
1769
- /** @internal */
1770
- export const UpdatePrompt23$outboundSchema: z.ZodType<
1771
- UpdatePrompt23$Outbound,
1772
- z.ZodTypeDef,
1773
- UpdatePrompt23
1774
- > = z.object({
1775
- type: UpdatePrompt2PromptsRequestType$outboundSchema,
1776
- file: z.lazy(() => UpdatePrompt2File$outboundSchema),
1777
- });
1778
-
1779
- /**
1780
- * @internal
1781
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1782
- */
1783
- export namespace UpdatePrompt23$ {
1784
- /** @deprecated use `UpdatePrompt23$inboundSchema` instead. */
1785
- export const inboundSchema = UpdatePrompt23$inboundSchema;
1786
- /** @deprecated use `UpdatePrompt23$outboundSchema` instead. */
1787
- export const outboundSchema = UpdatePrompt23$outboundSchema;
1788
- /** @deprecated use `UpdatePrompt23$Outbound` instead. */
1789
- export type Outbound = UpdatePrompt23$Outbound;
1790
- }
1791
-
1792
- export function updatePrompt23ToJSON(updatePrompt23: UpdatePrompt23): string {
1793
- return JSON.stringify(UpdatePrompt23$outboundSchema.parse(updatePrompt23));
1794
- }
1795
-
1796
- export function updatePrompt23FromJSON(
1797
- jsonString: string,
1798
- ): SafeParseResult<UpdatePrompt23, SDKValidationError> {
1799
- return safeParse(
1800
- jsonString,
1801
- (x) => UpdatePrompt23$inboundSchema.parse(JSON.parse(x)),
1802
- `Failed to parse 'UpdatePrompt23' from JSON`,
1803
- );
1804
- }
1805
-
1806
- /** @internal */
1807
- export const UpdatePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<
1808
- typeof UpdatePrompt2PromptsType
1809
- > = z.nativeEnum(UpdatePrompt2PromptsType);
1810
-
1811
- /** @internal */
1812
- export const UpdatePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<
1813
- typeof UpdatePrompt2PromptsType
1814
- > = UpdatePrompt2PromptsType$inboundSchema;
1815
-
1816
- /**
1817
- * @internal
1818
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1819
- */
1820
- export namespace UpdatePrompt2PromptsType$ {
1821
- /** @deprecated use `UpdatePrompt2PromptsType$inboundSchema` instead. */
1822
- export const inboundSchema = UpdatePrompt2PromptsType$inboundSchema;
1823
- /** @deprecated use `UpdatePrompt2PromptsType$outboundSchema` instead. */
1824
- export const outboundSchema = UpdatePrompt2PromptsType$outboundSchema;
1825
- }
1826
-
1827
- /** @internal */
1828
- export const UpdatePrompt2ImageUrl$inboundSchema: z.ZodType<
1829
- UpdatePrompt2ImageUrl,
1830
- z.ZodTypeDef,
1831
- unknown
1832
- > = z.object({
1833
- url: z.string(),
1834
- detail: z.string().optional(),
1835
- });
1836
-
1837
- /** @internal */
1838
- export type UpdatePrompt2ImageUrl$Outbound = {
1839
- url: string;
1840
- detail?: string | undefined;
1841
- };
1842
-
1843
- /** @internal */
1844
- export const UpdatePrompt2ImageUrl$outboundSchema: z.ZodType<
1845
- UpdatePrompt2ImageUrl$Outbound,
1846
- z.ZodTypeDef,
1847
- UpdatePrompt2ImageUrl
1848
- > = z.object({
1849
- url: z.string(),
1850
- detail: z.string().optional(),
1851
- });
1852
-
1853
- /**
1854
- * @internal
1855
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1856
- */
1857
- export namespace UpdatePrompt2ImageUrl$ {
1858
- /** @deprecated use `UpdatePrompt2ImageUrl$inboundSchema` instead. */
1859
- export const inboundSchema = UpdatePrompt2ImageUrl$inboundSchema;
1860
- /** @deprecated use `UpdatePrompt2ImageUrl$outboundSchema` instead. */
1861
- export const outboundSchema = UpdatePrompt2ImageUrl$outboundSchema;
1862
- /** @deprecated use `UpdatePrompt2ImageUrl$Outbound` instead. */
1863
- export type Outbound = UpdatePrompt2ImageUrl$Outbound;
1864
- }
1865
-
1866
- export function updatePrompt2ImageUrlToJSON(
1867
- updatePrompt2ImageUrl: UpdatePrompt2ImageUrl,
1868
- ): string {
1869
- return JSON.stringify(
1870
- UpdatePrompt2ImageUrl$outboundSchema.parse(updatePrompt2ImageUrl),
1871
- );
1872
- }
1873
-
1874
- export function updatePrompt2ImageUrlFromJSON(
1875
- jsonString: string,
1876
- ): SafeParseResult<UpdatePrompt2ImageUrl, SDKValidationError> {
1877
- return safeParse(
1878
- jsonString,
1879
- (x) => UpdatePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1880
- `Failed to parse 'UpdatePrompt2ImageUrl' from JSON`,
1881
- );
1882
- }
1883
-
1884
- /** @internal */
1885
- export const UpdatePrompt22$inboundSchema: z.ZodType<
1886
- UpdatePrompt22,
1887
- z.ZodTypeDef,
1888
- unknown
1889
- > = z.object({
1890
- type: UpdatePrompt2PromptsType$inboundSchema,
1891
- image_url: z.lazy(() => UpdatePrompt2ImageUrl$inboundSchema),
1892
- }).transform((v) => {
1893
- return remap$(v, {
1894
- "image_url": "imageUrl",
1895
- });
1896
- });
1897
-
1898
- /** @internal */
1899
- export type UpdatePrompt22$Outbound = {
1900
- type: string;
1901
- image_url: UpdatePrompt2ImageUrl$Outbound;
1902
- };
1903
-
1904
- /** @internal */
1905
- export const UpdatePrompt22$outboundSchema: z.ZodType<
1906
- UpdatePrompt22$Outbound,
1907
- z.ZodTypeDef,
1908
- UpdatePrompt22
1909
- > = z.object({
1910
- type: UpdatePrompt2PromptsType$outboundSchema,
1911
- imageUrl: z.lazy(() => UpdatePrompt2ImageUrl$outboundSchema),
1912
- }).transform((v) => {
1913
- return remap$(v, {
1914
- imageUrl: "image_url",
1915
- });
1916
- });
1917
-
1918
- /**
1919
- * @internal
1920
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1921
- */
1922
- export namespace UpdatePrompt22$ {
1923
- /** @deprecated use `UpdatePrompt22$inboundSchema` instead. */
1924
- export const inboundSchema = UpdatePrompt22$inboundSchema;
1925
- /** @deprecated use `UpdatePrompt22$outboundSchema` instead. */
1926
- export const outboundSchema = UpdatePrompt22$outboundSchema;
1927
- /** @deprecated use `UpdatePrompt22$Outbound` instead. */
1928
- export type Outbound = UpdatePrompt22$Outbound;
1929
- }
1930
-
1931
- export function updatePrompt22ToJSON(updatePrompt22: UpdatePrompt22): string {
1932
- return JSON.stringify(UpdatePrompt22$outboundSchema.parse(updatePrompt22));
1933
- }
1934
-
1935
- export function updatePrompt22FromJSON(
1936
- jsonString: string,
1937
- ): SafeParseResult<UpdatePrompt22, SDKValidationError> {
1938
- return safeParse(
1939
- jsonString,
1940
- (x) => UpdatePrompt22$inboundSchema.parse(JSON.parse(x)),
1941
- `Failed to parse 'UpdatePrompt22' from JSON`,
1942
- );
1943
- }
1944
-
1945
- /** @internal */
1946
- export const UpdatePrompt2Type$inboundSchema: z.ZodNativeEnum<
1947
- typeof UpdatePrompt2Type
1948
- > = z.nativeEnum(UpdatePrompt2Type);
1949
-
1950
- /** @internal */
1951
- export const UpdatePrompt2Type$outboundSchema: z.ZodNativeEnum<
1952
- typeof UpdatePrompt2Type
1953
- > = UpdatePrompt2Type$inboundSchema;
1954
-
1955
- /**
1956
- * @internal
1957
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1958
- */
1959
- export namespace UpdatePrompt2Type$ {
1960
- /** @deprecated use `UpdatePrompt2Type$inboundSchema` instead. */
1961
- export const inboundSchema = UpdatePrompt2Type$inboundSchema;
1962
- /** @deprecated use `UpdatePrompt2Type$outboundSchema` instead. */
1963
- export const outboundSchema = UpdatePrompt2Type$outboundSchema;
1964
- }
1965
-
1966
- /** @internal */
1967
- export const UpdatePrompt21$inboundSchema: z.ZodType<
1968
- UpdatePrompt21,
1969
- z.ZodTypeDef,
1970
- unknown
1971
- > = z.object({
1972
- type: UpdatePrompt2Type$inboundSchema,
1973
- text: z.string(),
1974
- });
1975
-
1976
- /** @internal */
1977
- export type UpdatePrompt21$Outbound = {
1978
- type: string;
1979
- text: string;
1980
- };
1981
-
1982
- /** @internal */
1983
- export const UpdatePrompt21$outboundSchema: z.ZodType<
1984
- UpdatePrompt21$Outbound,
1985
- z.ZodTypeDef,
1986
- UpdatePrompt21
1987
- > = z.object({
1988
- type: UpdatePrompt2Type$outboundSchema,
1989
- text: z.string(),
1990
- });
1991
-
1992
- /**
1993
- * @internal
1994
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1995
- */
1996
- export namespace UpdatePrompt21$ {
1997
- /** @deprecated use `UpdatePrompt21$inboundSchema` instead. */
1998
- export const inboundSchema = UpdatePrompt21$inboundSchema;
1999
- /** @deprecated use `UpdatePrompt21$outboundSchema` instead. */
2000
- export const outboundSchema = UpdatePrompt21$outboundSchema;
2001
- /** @deprecated use `UpdatePrompt21$Outbound` instead. */
2002
- export type Outbound = UpdatePrompt21$Outbound;
2003
- }
2004
-
2005
- export function updatePrompt21ToJSON(updatePrompt21: UpdatePrompt21): string {
2006
- return JSON.stringify(UpdatePrompt21$outboundSchema.parse(updatePrompt21));
2007
- }
2008
-
2009
- export function updatePrompt21FromJSON(
2010
- jsonString: string,
2011
- ): SafeParseResult<UpdatePrompt21, SDKValidationError> {
2012
- return safeParse(
2013
- jsonString,
2014
- (x) => UpdatePrompt21$inboundSchema.parse(JSON.parse(x)),
2015
- `Failed to parse 'UpdatePrompt21' from JSON`,
2016
- );
2017
- }
2018
-
2019
- /** @internal */
2020
- export const UpdatePromptContent2$inboundSchema: z.ZodType<
2021
- UpdatePromptContent2,
2022
- z.ZodTypeDef,
2023
- unknown
2024
- > = z.union([
2025
- z.lazy(() => UpdatePrompt21$inboundSchema),
2026
- z.lazy(() => UpdatePrompt22$inboundSchema),
2027
- z.lazy(() => UpdatePrompt23$inboundSchema),
2028
- ]);
2029
-
2030
- /** @internal */
2031
- export type UpdatePromptContent2$Outbound =
2032
- | UpdatePrompt21$Outbound
2033
- | UpdatePrompt22$Outbound
2034
- | UpdatePrompt23$Outbound;
2035
-
2036
- /** @internal */
2037
- export const UpdatePromptContent2$outboundSchema: z.ZodType<
2038
- UpdatePromptContent2$Outbound,
2039
- z.ZodTypeDef,
2040
- UpdatePromptContent2
2041
- > = z.union([
2042
- z.lazy(() => UpdatePrompt21$outboundSchema),
2043
- z.lazy(() => UpdatePrompt22$outboundSchema),
2044
- z.lazy(() => UpdatePrompt23$outboundSchema),
2045
- ]);
2046
-
2047
- /**
2048
- * @internal
2049
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2050
- */
2051
- export namespace UpdatePromptContent2$ {
2052
- /** @deprecated use `UpdatePromptContent2$inboundSchema` instead. */
2053
- export const inboundSchema = UpdatePromptContent2$inboundSchema;
2054
- /** @deprecated use `UpdatePromptContent2$outboundSchema` instead. */
2055
- export const outboundSchema = UpdatePromptContent2$outboundSchema;
2056
- /** @deprecated use `UpdatePromptContent2$Outbound` instead. */
2057
- export type Outbound = UpdatePromptContent2$Outbound;
2058
- }
2059
-
2060
- export function updatePromptContent2ToJSON(
2061
- updatePromptContent2: UpdatePromptContent2,
2062
- ): string {
2063
- return JSON.stringify(
2064
- UpdatePromptContent2$outboundSchema.parse(updatePromptContent2),
2065
- );
2066
- }
2067
-
2068
- export function updatePromptContent2FromJSON(
2069
- jsonString: string,
2070
- ): SafeParseResult<UpdatePromptContent2, SDKValidationError> {
2071
- return safeParse(
2072
- jsonString,
2073
- (x) => UpdatePromptContent2$inboundSchema.parse(JSON.parse(x)),
2074
- `Failed to parse 'UpdatePromptContent2' from JSON`,
2075
- );
2076
- }
2077
-
2078
- /** @internal */
2079
- export const UpdatePromptContent$inboundSchema: z.ZodType<
2080
- UpdatePromptContent,
2081
- z.ZodTypeDef,
2082
- unknown
2083
- > = z.union([
2084
- z.string(),
2085
- z.array(z.union([
2086
- z.lazy(() => UpdatePrompt21$inboundSchema),
2087
- z.lazy(() => UpdatePrompt22$inboundSchema),
2088
- z.lazy(() => UpdatePrompt23$inboundSchema),
2089
- ])),
2090
- ]);
2091
-
2092
- /** @internal */
2093
- export type UpdatePromptContent$Outbound =
2094
- | string
2095
- | Array<
2096
- UpdatePrompt21$Outbound | UpdatePrompt22$Outbound | UpdatePrompt23$Outbound
2097
- >;
2098
-
2099
- /** @internal */
2100
- export const UpdatePromptContent$outboundSchema: z.ZodType<
2101
- UpdatePromptContent$Outbound,
2102
- z.ZodTypeDef,
2103
- UpdatePromptContent
2104
- > = z.union([
2105
- z.string(),
2106
- z.array(z.union([
2107
- z.lazy(() => UpdatePrompt21$outboundSchema),
2108
- z.lazy(() => UpdatePrompt22$outboundSchema),
2109
- z.lazy(() => UpdatePrompt23$outboundSchema),
2110
- ])),
2111
- ]);
2112
-
2113
- /**
2114
- * @internal
2115
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2116
- */
2117
- export namespace UpdatePromptContent$ {
2118
- /** @deprecated use `UpdatePromptContent$inboundSchema` instead. */
2119
- export const inboundSchema = UpdatePromptContent$inboundSchema;
2120
- /** @deprecated use `UpdatePromptContent$outboundSchema` instead. */
2121
- export const outboundSchema = UpdatePromptContent$outboundSchema;
2122
- /** @deprecated use `UpdatePromptContent$Outbound` instead. */
2123
- export type Outbound = UpdatePromptContent$Outbound;
2124
- }
2125
-
2126
- export function updatePromptContentToJSON(
2127
- updatePromptContent: UpdatePromptContent,
2128
- ): string {
2129
- return JSON.stringify(
2130
- UpdatePromptContent$outboundSchema.parse(updatePromptContent),
2131
- );
2132
- }
2133
-
2134
- export function updatePromptContentFromJSON(
2135
- jsonString: string,
2136
- ): SafeParseResult<UpdatePromptContent, SDKValidationError> {
2137
- return safeParse(
2138
- jsonString,
2139
- (x) => UpdatePromptContent$inboundSchema.parse(JSON.parse(x)),
2140
- `Failed to parse 'UpdatePromptContent' from JSON`,
2141
- );
2142
- }
2143
-
2144
- /** @internal */
2145
- export const UpdatePromptType$inboundSchema: z.ZodNativeEnum<
2146
- typeof UpdatePromptType
2147
- > = z.nativeEnum(UpdatePromptType);
2148
-
2149
- /** @internal */
2150
- export const UpdatePromptType$outboundSchema: z.ZodNativeEnum<
2151
- typeof UpdatePromptType
2152
- > = UpdatePromptType$inboundSchema;
2153
-
2154
- /**
2155
- * @internal
2156
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2157
- */
2158
- export namespace UpdatePromptType$ {
2159
- /** @deprecated use `UpdatePromptType$inboundSchema` instead. */
2160
- export const inboundSchema = UpdatePromptType$inboundSchema;
2161
- /** @deprecated use `UpdatePromptType$outboundSchema` instead. */
2162
- export const outboundSchema = UpdatePromptType$outboundSchema;
2163
- }
2164
-
2165
- /** @internal */
2166
- export const UpdatePromptFunction$inboundSchema: z.ZodType<
2167
- UpdatePromptFunction,
2168
- z.ZodTypeDef,
2169
- unknown
2170
- > = z.object({
2171
- name: z.string(),
2172
- arguments: z.string(),
2173
- });
2174
-
2175
- /** @internal */
2176
- export type UpdatePromptFunction$Outbound = {
2177
- name: string;
2178
- arguments: string;
2179
- };
2180
-
2181
- /** @internal */
2182
- export const UpdatePromptFunction$outboundSchema: z.ZodType<
2183
- UpdatePromptFunction$Outbound,
2184
- z.ZodTypeDef,
2185
- UpdatePromptFunction
2186
- > = z.object({
2187
- name: z.string(),
2188
- arguments: z.string(),
2189
- });
2190
-
2191
- /**
2192
- * @internal
2193
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2194
- */
2195
- export namespace UpdatePromptFunction$ {
2196
- /** @deprecated use `UpdatePromptFunction$inboundSchema` instead. */
2197
- export const inboundSchema = UpdatePromptFunction$inboundSchema;
2198
- /** @deprecated use `UpdatePromptFunction$outboundSchema` instead. */
2199
- export const outboundSchema = UpdatePromptFunction$outboundSchema;
2200
- /** @deprecated use `UpdatePromptFunction$Outbound` instead. */
2201
- export type Outbound = UpdatePromptFunction$Outbound;
2202
- }
2203
-
2204
- export function updatePromptFunctionToJSON(
2205
- updatePromptFunction: UpdatePromptFunction,
2206
- ): string {
2207
- return JSON.stringify(
2208
- UpdatePromptFunction$outboundSchema.parse(updatePromptFunction),
2209
- );
2210
- }
2211
-
2212
- export function updatePromptFunctionFromJSON(
2213
- jsonString: string,
2214
- ): SafeParseResult<UpdatePromptFunction, SDKValidationError> {
2215
- return safeParse(
2216
- jsonString,
2217
- (x) => UpdatePromptFunction$inboundSchema.parse(JSON.parse(x)),
2218
- `Failed to parse 'UpdatePromptFunction' from JSON`,
2219
- );
2220
- }
2221
-
2222
- /** @internal */
2223
- export const UpdatePromptToolCalls$inboundSchema: z.ZodType<
2224
- UpdatePromptToolCalls,
2225
- z.ZodTypeDef,
2226
- unknown
2227
- > = z.object({
2228
- id: z.string().optional(),
2229
- index: z.number().optional(),
2230
- type: UpdatePromptType$inboundSchema,
2231
- function: z.lazy(() => UpdatePromptFunction$inboundSchema),
2232
- });
2233
-
2234
- /** @internal */
2235
- export type UpdatePromptToolCalls$Outbound = {
2236
- id?: string | undefined;
2237
- index?: number | undefined;
2238
- type: string;
2239
- function: UpdatePromptFunction$Outbound;
2240
- };
2241
-
2242
- /** @internal */
2243
- export const UpdatePromptToolCalls$outboundSchema: z.ZodType<
2244
- UpdatePromptToolCalls$Outbound,
2245
- z.ZodTypeDef,
2246
- UpdatePromptToolCalls
2247
- > = z.object({
2248
- id: z.string().optional(),
2249
- index: z.number().optional(),
2250
- type: UpdatePromptType$outboundSchema,
2251
- function: z.lazy(() => UpdatePromptFunction$outboundSchema),
2252
- });
2253
-
2254
- /**
2255
- * @internal
2256
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2257
- */
2258
- export namespace UpdatePromptToolCalls$ {
2259
- /** @deprecated use `UpdatePromptToolCalls$inboundSchema` instead. */
2260
- export const inboundSchema = UpdatePromptToolCalls$inboundSchema;
2261
- /** @deprecated use `UpdatePromptToolCalls$outboundSchema` instead. */
2262
- export const outboundSchema = UpdatePromptToolCalls$outboundSchema;
2263
- /** @deprecated use `UpdatePromptToolCalls$Outbound` instead. */
2264
- export type Outbound = UpdatePromptToolCalls$Outbound;
2265
- }
2266
-
2267
- export function updatePromptToolCallsToJSON(
2268
- updatePromptToolCalls: UpdatePromptToolCalls,
2269
- ): string {
2270
- return JSON.stringify(
2271
- UpdatePromptToolCalls$outboundSchema.parse(updatePromptToolCalls),
2272
- );
2273
- }
2274
-
2275
- export function updatePromptToolCallsFromJSON(
2276
- jsonString: string,
2277
- ): SafeParseResult<UpdatePromptToolCalls, SDKValidationError> {
2278
- return safeParse(
2279
- jsonString,
2280
- (x) => UpdatePromptToolCalls$inboundSchema.parse(JSON.parse(x)),
2281
- `Failed to parse 'UpdatePromptToolCalls' from JSON`,
2282
- );
2283
- }
2284
-
2285
- /** @internal */
2286
- export const UpdatePromptMessages$inboundSchema: z.ZodType<
2287
- UpdatePromptMessages,
2288
- z.ZodTypeDef,
2289
- unknown
2290
- > = z.object({
2291
- role: UpdatePromptRole$inboundSchema,
2292
- content: z.union([
2293
- z.string(),
2294
- z.array(z.union([
2295
- z.lazy(() => UpdatePrompt21$inboundSchema),
2296
- z.lazy(() => UpdatePrompt22$inboundSchema),
2297
- z.lazy(() => UpdatePrompt23$inboundSchema),
2298
- ])),
2299
- ]),
2300
- tool_calls: z.array(z.lazy(() => UpdatePromptToolCalls$inboundSchema))
2301
- .optional(),
2302
- tool_call_id: z.string().optional(),
2303
- }).transform((v) => {
2304
- return remap$(v, {
2305
- "tool_calls": "toolCalls",
2306
- "tool_call_id": "toolCallId",
2307
- });
2308
- });
2309
-
2310
- /** @internal */
2311
- export type UpdatePromptMessages$Outbound = {
2312
- role: string;
2313
- content:
2314
- | string
2315
- | Array<
2316
- | UpdatePrompt21$Outbound
2317
- | UpdatePrompt22$Outbound
2318
- | UpdatePrompt23$Outbound
2319
- >;
2320
- tool_calls?: Array<UpdatePromptToolCalls$Outbound> | undefined;
2321
- tool_call_id?: string | undefined;
2322
- };
2323
-
2324
- /** @internal */
2325
- export const UpdatePromptMessages$outboundSchema: z.ZodType<
2326
- UpdatePromptMessages$Outbound,
2327
- z.ZodTypeDef,
2328
- UpdatePromptMessages
2329
- > = z.object({
2330
- role: UpdatePromptRole$outboundSchema,
2331
- content: z.union([
2332
- z.string(),
2333
- z.array(z.union([
2334
- z.lazy(() => UpdatePrompt21$outboundSchema),
2335
- z.lazy(() => UpdatePrompt22$outboundSchema),
2336
- z.lazy(() => UpdatePrompt23$outboundSchema),
2337
- ])),
2338
- ]),
2339
- toolCalls: z.array(z.lazy(() => UpdatePromptToolCalls$outboundSchema))
2340
- .optional(),
2341
- toolCallId: z.string().optional(),
2342
- }).transform((v) => {
2343
- return remap$(v, {
2344
- toolCalls: "tool_calls",
2345
- toolCallId: "tool_call_id",
2346
- });
2347
- });
2348
-
2349
- /**
2350
- * @internal
2351
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2352
- */
2353
- export namespace UpdatePromptMessages$ {
2354
- /** @deprecated use `UpdatePromptMessages$inboundSchema` instead. */
2355
- export const inboundSchema = UpdatePromptMessages$inboundSchema;
2356
- /** @deprecated use `UpdatePromptMessages$outboundSchema` instead. */
2357
- export const outboundSchema = UpdatePromptMessages$outboundSchema;
2358
- /** @deprecated use `UpdatePromptMessages$Outbound` instead. */
2359
- export type Outbound = UpdatePromptMessages$Outbound;
2360
- }
2361
-
2362
- export function updatePromptMessagesToJSON(
2363
- updatePromptMessages: UpdatePromptMessages,
2364
- ): string {
2365
- return JSON.stringify(
2366
- UpdatePromptMessages$outboundSchema.parse(updatePromptMessages),
2367
- );
2368
- }
2369
-
2370
- export function updatePromptMessagesFromJSON(
2371
- jsonString: string,
2372
- ): SafeParseResult<UpdatePromptMessages, SDKValidationError> {
2373
- return safeParse(
2374
- jsonString,
2375
- (x) => UpdatePromptMessages$inboundSchema.parse(JSON.parse(x)),
2376
- `Failed to parse 'UpdatePromptMessages' from JSON`,
2377
- );
2378
- }
2379
-
2380
- /** @internal */
2381
- export const UpdatePromptPromptConfig$inboundSchema: z.ZodType<
2382
- UpdatePromptPromptConfig,
2383
- z.ZodTypeDef,
2384
- unknown
2385
- > = z.object({
2386
- stream: z.boolean().optional(),
2387
- model: z.string().optional(),
2388
- model_parameters: z.lazy(() => UpdatePromptModelParameters$inboundSchema)
2389
- .optional(),
2390
- provider: UpdatePromptProvider$inboundSchema.optional(),
2391
- version: z.string().optional(),
2392
- messages: z.array(z.lazy(() => UpdatePromptMessages$inboundSchema)),
2393
- model_db_id: z.nullable(z.string()).optional(),
2394
- model_type: z.nullable(z.string()).optional(),
2395
- }).transform((v) => {
2396
- return remap$(v, {
2397
- "model_parameters": "modelParameters",
2398
- "model_db_id": "modelDbId",
2399
- "model_type": "modelType",
2400
- });
2401
- });
2402
-
2403
- /** @internal */
2404
- export type UpdatePromptPromptConfig$Outbound = {
2405
- stream?: boolean | undefined;
2406
- model?: string | undefined;
2407
- model_parameters?: UpdatePromptModelParameters$Outbound | undefined;
2408
- provider?: string | undefined;
2409
- version?: string | undefined;
2410
- messages: Array<UpdatePromptMessages$Outbound>;
2411
- model_db_id?: string | null | undefined;
2412
- model_type?: string | null | undefined;
2413
- };
2414
-
2415
- /** @internal */
2416
- export const UpdatePromptPromptConfig$outboundSchema: z.ZodType<
2417
- UpdatePromptPromptConfig$Outbound,
2418
- z.ZodTypeDef,
2419
- UpdatePromptPromptConfig
2420
- > = z.object({
2421
- stream: z.boolean().optional(),
2422
- model: z.string().optional(),
2423
- modelParameters: z.lazy(() => UpdatePromptModelParameters$outboundSchema)
2424
- .optional(),
2425
- provider: UpdatePromptProvider$outboundSchema.optional(),
2426
- version: z.string().optional(),
2427
- messages: z.array(z.lazy(() => UpdatePromptMessages$outboundSchema)),
2428
- modelDbId: z.nullable(z.string()).optional(),
2429
- modelType: z.nullable(z.string()).optional(),
2430
- }).transform((v) => {
2431
- return remap$(v, {
2432
- modelParameters: "model_parameters",
2433
- modelDbId: "model_db_id",
2434
- modelType: "model_type",
2435
- });
2436
- });
2437
-
2438
- /**
2439
- * @internal
2440
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2441
- */
2442
- export namespace UpdatePromptPromptConfig$ {
2443
- /** @deprecated use `UpdatePromptPromptConfig$inboundSchema` instead. */
2444
- export const inboundSchema = UpdatePromptPromptConfig$inboundSchema;
2445
- /** @deprecated use `UpdatePromptPromptConfig$outboundSchema` instead. */
2446
- export const outboundSchema = UpdatePromptPromptConfig$outboundSchema;
2447
- /** @deprecated use `UpdatePromptPromptConfig$Outbound` instead. */
2448
- export type Outbound = UpdatePromptPromptConfig$Outbound;
2449
- }
2450
-
2451
- export function updatePromptPromptConfigToJSON(
2452
- updatePromptPromptConfig: UpdatePromptPromptConfig,
2453
- ): string {
2454
- return JSON.stringify(
2455
- UpdatePromptPromptConfig$outboundSchema.parse(updatePromptPromptConfig),
2456
- );
2457
- }
2458
-
2459
- export function updatePromptPromptConfigFromJSON(
2460
- jsonString: string,
2461
- ): SafeParseResult<UpdatePromptPromptConfig, SDKValidationError> {
2462
- return safeParse(
2463
- jsonString,
2464
- (x) => UpdatePromptPromptConfig$inboundSchema.parse(JSON.parse(x)),
2465
- `Failed to parse 'UpdatePromptPromptConfig' from JSON`,
2466
- );
2467
- }
2468
-
2469
- /** @internal */
2470
- export const UpdatePromptUseCases$inboundSchema: z.ZodNativeEnum<
2471
- typeof UpdatePromptUseCases
2472
- > = z.nativeEnum(UpdatePromptUseCases);
2473
-
2474
- /** @internal */
2475
- export const UpdatePromptUseCases$outboundSchema: z.ZodNativeEnum<
2476
- typeof UpdatePromptUseCases
2477
- > = UpdatePromptUseCases$inboundSchema;
2478
-
2479
- /**
2480
- * @internal
2481
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2482
- */
2483
- export namespace UpdatePromptUseCases$ {
2484
- /** @deprecated use `UpdatePromptUseCases$inboundSchema` instead. */
2485
- export const inboundSchema = UpdatePromptUseCases$inboundSchema;
2486
- /** @deprecated use `UpdatePromptUseCases$outboundSchema` instead. */
2487
- export const outboundSchema = UpdatePromptUseCases$outboundSchema;
2488
- }
2489
-
2490
- /** @internal */
2491
- export const UpdatePromptLanguage$inboundSchema: z.ZodNativeEnum<
2492
- typeof UpdatePromptLanguage
2493
- > = z.nativeEnum(UpdatePromptLanguage);
2494
-
2495
- /** @internal */
2496
- export const UpdatePromptLanguage$outboundSchema: z.ZodNativeEnum<
2497
- typeof UpdatePromptLanguage
2498
- > = UpdatePromptLanguage$inboundSchema;
2499
-
2500
- /**
2501
- * @internal
2502
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2503
- */
2504
- export namespace UpdatePromptLanguage$ {
2505
- /** @deprecated use `UpdatePromptLanguage$inboundSchema` instead. */
2506
- export const inboundSchema = UpdatePromptLanguage$inboundSchema;
2507
- /** @deprecated use `UpdatePromptLanguage$outboundSchema` instead. */
2508
- export const outboundSchema = UpdatePromptLanguage$outboundSchema;
2509
- }
2510
-
2511
- /** @internal */
2512
- export const UpdatePromptMetadata$inboundSchema: z.ZodType<
2513
- UpdatePromptMetadata,
2514
- z.ZodTypeDef,
2515
- unknown
2516
- > = z.object({
2517
- use_cases: z.array(UpdatePromptUseCases$inboundSchema).optional(),
2518
- language: z.nullable(UpdatePromptLanguage$inboundSchema).optional(),
2519
- }).transform((v) => {
2520
- return remap$(v, {
2521
- "use_cases": "useCases",
2522
- });
2523
- });
2524
-
2525
- /** @internal */
2526
- export type UpdatePromptMetadata$Outbound = {
2527
- use_cases?: Array<string> | undefined;
2528
- language?: string | null | undefined;
2529
- };
2530
-
2531
- /** @internal */
2532
- export const UpdatePromptMetadata$outboundSchema: z.ZodType<
2533
- UpdatePromptMetadata$Outbound,
2534
- z.ZodTypeDef,
2535
- UpdatePromptMetadata
2536
- > = z.object({
2537
- useCases: z.array(UpdatePromptUseCases$outboundSchema).optional(),
2538
- language: z.nullable(UpdatePromptLanguage$outboundSchema).optional(),
2539
- }).transform((v) => {
2540
- return remap$(v, {
2541
- useCases: "use_cases",
2542
- });
2543
- });
2544
-
2545
- /**
2546
- * @internal
2547
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2548
- */
2549
- export namespace UpdatePromptMetadata$ {
2550
- /** @deprecated use `UpdatePromptMetadata$inboundSchema` instead. */
2551
- export const inboundSchema = UpdatePromptMetadata$inboundSchema;
2552
- /** @deprecated use `UpdatePromptMetadata$outboundSchema` instead. */
2553
- export const outboundSchema = UpdatePromptMetadata$outboundSchema;
2554
- /** @deprecated use `UpdatePromptMetadata$Outbound` instead. */
2555
- export type Outbound = UpdatePromptMetadata$Outbound;
2556
- }
2557
-
2558
- export function updatePromptMetadataToJSON(
2559
- updatePromptMetadata: UpdatePromptMetadata,
2560
- ): string {
2561
- return JSON.stringify(
2562
- UpdatePromptMetadata$outboundSchema.parse(updatePromptMetadata),
2563
- );
2564
- }
2565
-
2566
- export function updatePromptMetadataFromJSON(
2567
- jsonString: string,
2568
- ): SafeParseResult<UpdatePromptMetadata, SDKValidationError> {
2569
- return safeParse(
2570
- jsonString,
2571
- (x) => UpdatePromptMetadata$inboundSchema.parse(JSON.parse(x)),
2572
- `Failed to parse 'UpdatePromptMetadata' from JSON`,
2573
- );
2574
- }
2575
-
2576
- /** @internal */
2577
- export const UpdatePromptRequestBody$inboundSchema: z.ZodType<
2578
- UpdatePromptRequestBody,
2579
- z.ZodTypeDef,
2580
- unknown
2581
- > = z.object({
2582
- owner: z.string().optional(),
2583
- domain_id: z.string().optional(),
2584
- created: z.string().optional(),
2585
- updated: z.string().optional(),
2586
- created_by_id: z.nullable(z.string()).optional(),
2587
- updated_by_id: z.nullable(z.string()).optional(),
2588
- display_name: z.string().optional(),
2589
- description: z.nullable(z.string()).optional(),
2590
- prompt_config: z.lazy(() => UpdatePromptPromptConfig$inboundSchema)
2591
- .optional(),
2592
- metadata: z.lazy(() => UpdatePromptMetadata$inboundSchema).optional(),
2593
- path: z.string().optional(),
2594
- }).transform((v) => {
2595
- return remap$(v, {
2596
- "domain_id": "domainId",
2597
- "created_by_id": "createdById",
2598
- "updated_by_id": "updatedById",
2599
- "display_name": "displayName",
2600
- "prompt_config": "promptConfig",
2601
- });
2602
- });
2603
-
2604
- /** @internal */
2605
- export type UpdatePromptRequestBody$Outbound = {
2606
- owner?: string | undefined;
2607
- domain_id?: string | undefined;
2608
- created?: string | undefined;
2609
- updated?: string | undefined;
2610
- created_by_id?: string | null | undefined;
2611
- updated_by_id?: string | null | undefined;
2612
- display_name?: string | undefined;
2613
- description?: string | null | undefined;
2614
- prompt_config?: UpdatePromptPromptConfig$Outbound | undefined;
2615
- metadata?: UpdatePromptMetadata$Outbound | undefined;
2616
- path?: string | undefined;
2617
- };
2618
-
2619
- /** @internal */
2620
- export const UpdatePromptRequestBody$outboundSchema: z.ZodType<
2621
- UpdatePromptRequestBody$Outbound,
2622
- z.ZodTypeDef,
2623
- UpdatePromptRequestBody
2624
- > = z.object({
2625
- owner: z.string().optional(),
2626
- domainId: z.string().optional(),
2627
- created: z.string().optional(),
2628
- updated: z.string().optional(),
2629
- createdById: z.nullable(z.string()).optional(),
2630
- updatedById: z.nullable(z.string()).optional(),
2631
- displayName: z.string().optional(),
2632
- description: z.nullable(z.string()).optional(),
2633
- promptConfig: z.lazy(() => UpdatePromptPromptConfig$outboundSchema)
2634
- .optional(),
2635
- metadata: z.lazy(() => UpdatePromptMetadata$outboundSchema).optional(),
2636
- path: z.string().optional(),
2637
- }).transform((v) => {
2638
- return remap$(v, {
2639
- domainId: "domain_id",
2640
- createdById: "created_by_id",
2641
- updatedById: "updated_by_id",
2642
- displayName: "display_name",
2643
- promptConfig: "prompt_config",
2644
- });
2645
- });
2646
-
2647
- /**
2648
- * @internal
2649
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2650
- */
2651
- export namespace UpdatePromptRequestBody$ {
2652
- /** @deprecated use `UpdatePromptRequestBody$inboundSchema` instead. */
2653
- export const inboundSchema = UpdatePromptRequestBody$inboundSchema;
2654
- /** @deprecated use `UpdatePromptRequestBody$outboundSchema` instead. */
2655
- export const outboundSchema = UpdatePromptRequestBody$outboundSchema;
2656
- /** @deprecated use `UpdatePromptRequestBody$Outbound` instead. */
2657
- export type Outbound = UpdatePromptRequestBody$Outbound;
2658
- }
2659
-
2660
- export function updatePromptRequestBodyToJSON(
2661
- updatePromptRequestBody: UpdatePromptRequestBody,
2662
- ): string {
2663
- return JSON.stringify(
2664
- UpdatePromptRequestBody$outboundSchema.parse(updatePromptRequestBody),
2665
- );
2666
- }
2667
-
2668
- export function updatePromptRequestBodyFromJSON(
2669
- jsonString: string,
2670
- ): SafeParseResult<UpdatePromptRequestBody, SDKValidationError> {
2671
- return safeParse(
2672
- jsonString,
2673
- (x) => UpdatePromptRequestBody$inboundSchema.parse(JSON.parse(x)),
2674
- `Failed to parse 'UpdatePromptRequestBody' from JSON`,
2675
- );
2676
- }
2677
-
2678
- /** @internal */
2679
- export const UpdatePromptRequest$inboundSchema: z.ZodType<
2680
- UpdatePromptRequest,
2681
- z.ZodTypeDef,
2682
- unknown
2683
- > = z.object({
2684
- id: z.string(),
2685
- RequestBody: z.lazy(() => UpdatePromptRequestBody$inboundSchema).optional(),
2686
- }).transform((v) => {
2687
- return remap$(v, {
2688
- "RequestBody": "requestBody",
2689
- });
2690
- });
2691
-
2692
- /** @internal */
2693
- export type UpdatePromptRequest$Outbound = {
2694
- id: string;
2695
- RequestBody?: UpdatePromptRequestBody$Outbound | undefined;
2696
- };
2697
-
2698
- /** @internal */
2699
- export const UpdatePromptRequest$outboundSchema: z.ZodType<
2700
- UpdatePromptRequest$Outbound,
2701
- z.ZodTypeDef,
2702
- UpdatePromptRequest
2703
- > = z.object({
2704
- id: z.string(),
2705
- requestBody: z.lazy(() => UpdatePromptRequestBody$outboundSchema).optional(),
2706
- }).transform((v) => {
2707
- return remap$(v, {
2708
- requestBody: "RequestBody",
2709
- });
2710
- });
2711
-
2712
- /**
2713
- * @internal
2714
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2715
- */
2716
- export namespace UpdatePromptRequest$ {
2717
- /** @deprecated use `UpdatePromptRequest$inboundSchema` instead. */
2718
- export const inboundSchema = UpdatePromptRequest$inboundSchema;
2719
- /** @deprecated use `UpdatePromptRequest$outboundSchema` instead. */
2720
- export const outboundSchema = UpdatePromptRequest$outboundSchema;
2721
- /** @deprecated use `UpdatePromptRequest$Outbound` instead. */
2722
- export type Outbound = UpdatePromptRequest$Outbound;
2723
- }
2724
-
2725
- export function updatePromptRequestToJSON(
2726
- updatePromptRequest: UpdatePromptRequest,
2727
- ): string {
2728
- return JSON.stringify(
2729
- UpdatePromptRequest$outboundSchema.parse(updatePromptRequest),
2730
- );
2731
- }
2732
-
2733
- export function updatePromptRequestFromJSON(
2734
- jsonString: string,
2735
- ): SafeParseResult<UpdatePromptRequest, SDKValidationError> {
2736
- return safeParse(
2737
- jsonString,
2738
- (x) => UpdatePromptRequest$inboundSchema.parse(JSON.parse(x)),
2739
- `Failed to parse 'UpdatePromptRequest' from JSON`,
2740
- );
2741
- }
2742
-
2743
- /** @internal */
2744
- export const UpdatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
2745
- typeof UpdatePromptPromptsType
2746
- > = z.nativeEnum(UpdatePromptPromptsType);
2747
-
2748
- /** @internal */
2749
- export const UpdatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
2750
- typeof UpdatePromptPromptsType
2751
- > = UpdatePromptPromptsType$inboundSchema;
2752
-
2753
- /**
2754
- * @internal
2755
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2756
- */
2757
- export namespace UpdatePromptPromptsType$ {
2758
- /** @deprecated use `UpdatePromptPromptsType$inboundSchema` instead. */
2759
- export const inboundSchema = UpdatePromptPromptsType$inboundSchema;
2760
- /** @deprecated use `UpdatePromptPromptsType$outboundSchema` instead. */
2761
- export const outboundSchema = UpdatePromptPromptsType$outboundSchema;
2762
- }
2763
-
2764
- /** @internal */
2765
- export const UpdatePromptModelType$inboundSchema: z.ZodNativeEnum<
2766
- typeof UpdatePromptModelType
2767
- > = z.nativeEnum(UpdatePromptModelType);
2768
-
2769
- /** @internal */
2770
- export const UpdatePromptModelType$outboundSchema: z.ZodNativeEnum<
2771
- typeof UpdatePromptModelType
2772
- > = UpdatePromptModelType$inboundSchema;
2773
-
2774
- /**
2775
- * @internal
2776
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2777
- */
2778
- export namespace UpdatePromptModelType$ {
2779
- /** @deprecated use `UpdatePromptModelType$inboundSchema` instead. */
2780
- export const inboundSchema = UpdatePromptModelType$inboundSchema;
2781
- /** @deprecated use `UpdatePromptModelType$outboundSchema` instead. */
2782
- export const outboundSchema = UpdatePromptModelType$outboundSchema;
2783
- }
2784
-
2785
- /** @internal */
2786
- export const UpdatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
2787
- typeof UpdatePromptPromptsFormat
2788
- > = z.nativeEnum(UpdatePromptPromptsFormat);
2789
-
2790
- /** @internal */
2791
- export const UpdatePromptPromptsFormat$outboundSchema: z.ZodNativeEnum<
2792
- typeof UpdatePromptPromptsFormat
2793
- > = UpdatePromptPromptsFormat$inboundSchema;
2794
-
2795
- /**
2796
- * @internal
2797
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2798
- */
2799
- export namespace UpdatePromptPromptsFormat$ {
2800
- /** @deprecated use `UpdatePromptPromptsFormat$inboundSchema` instead. */
2801
- export const inboundSchema = UpdatePromptPromptsFormat$inboundSchema;
2802
- /** @deprecated use `UpdatePromptPromptsFormat$outboundSchema` instead. */
2803
- export const outboundSchema = UpdatePromptPromptsFormat$outboundSchema;
2804
- }
2805
-
2806
- /** @internal */
2807
- export const UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema:
2808
- z.ZodNativeEnum<
2809
- typeof UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType
2810
- > = z.nativeEnum(
2811
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType,
2812
- );
2813
-
2814
- /** @internal */
2815
- export const UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema:
2816
- z.ZodNativeEnum<
2817
- typeof UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType
2818
- > =
2819
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
2820
-
2821
- /**
2822
- * @internal
2823
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2824
- */
2825
- export namespace UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$ {
2826
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema` instead. */
2827
- export const inboundSchema =
2828
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
2829
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema` instead. */
2830
- export const outboundSchema =
2831
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema;
2832
- }
2833
-
2834
- /** @internal */
2835
- export const UpdatePromptResponseFormatPrompts3$inboundSchema: z.ZodType<
2836
- UpdatePromptResponseFormatPrompts3,
2837
- z.ZodTypeDef,
2838
- unknown
2839
- > = z.object({
2840
- type:
2841
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
2842
- });
2843
-
2844
- /** @internal */
2845
- export type UpdatePromptResponseFormatPrompts3$Outbound = {
2846
- type: string;
2847
- };
2848
-
2849
- /** @internal */
2850
- export const UpdatePromptResponseFormatPrompts3$outboundSchema: z.ZodType<
2851
- UpdatePromptResponseFormatPrompts3$Outbound,
2852
- z.ZodTypeDef,
2853
- UpdatePromptResponseFormatPrompts3
2854
- > = z.object({
2855
- type:
2856
- UpdatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
2857
- });
2858
-
2859
- /**
2860
- * @internal
2861
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2862
- */
2863
- export namespace UpdatePromptResponseFormatPrompts3$ {
2864
- /** @deprecated use `UpdatePromptResponseFormatPrompts3$inboundSchema` instead. */
2865
- export const inboundSchema = UpdatePromptResponseFormatPrompts3$inboundSchema;
2866
- /** @deprecated use `UpdatePromptResponseFormatPrompts3$outboundSchema` instead. */
2867
- export const outboundSchema =
2868
- UpdatePromptResponseFormatPrompts3$outboundSchema;
2869
- /** @deprecated use `UpdatePromptResponseFormatPrompts3$Outbound` instead. */
2870
- export type Outbound = UpdatePromptResponseFormatPrompts3$Outbound;
2871
- }
2872
-
2873
- export function updatePromptResponseFormatPrompts3ToJSON(
2874
- updatePromptResponseFormatPrompts3: UpdatePromptResponseFormatPrompts3,
2875
- ): string {
2876
- return JSON.stringify(
2877
- UpdatePromptResponseFormatPrompts3$outboundSchema.parse(
2878
- updatePromptResponseFormatPrompts3,
2879
- ),
2880
- );
2881
- }
2882
-
2883
- export function updatePromptResponseFormatPrompts3FromJSON(
2884
- jsonString: string,
2885
- ): SafeParseResult<UpdatePromptResponseFormatPrompts3, SDKValidationError> {
2886
- return safeParse(
2887
- jsonString,
2888
- (x) =>
2889
- UpdatePromptResponseFormatPrompts3$inboundSchema.parse(JSON.parse(x)),
2890
- `Failed to parse 'UpdatePromptResponseFormatPrompts3' from JSON`,
2891
- );
2892
- }
2893
-
2894
- /** @internal */
2895
- export const UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema:
2896
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> = z
2897
- .nativeEnum(UpdatePromptResponseFormatPromptsResponse200Type);
2898
-
2899
- /** @internal */
2900
- export const UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema:
2901
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponse200Type> =
2902
- UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2903
-
2904
- /**
2905
- * @internal
2906
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2907
- */
2908
- export namespace UpdatePromptResponseFormatPromptsResponse200Type$ {
2909
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema` instead. */
2910
- export const inboundSchema =
2911
- UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema;
2912
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema` instead. */
2913
- export const outboundSchema =
2914
- UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema;
2915
- }
2916
-
2917
- /** @internal */
2918
- export const UpdatePromptResponseFormatPrompts2$inboundSchema: z.ZodType<
2919
- UpdatePromptResponseFormatPrompts2,
2920
- z.ZodTypeDef,
2921
- unknown
2922
- > = z.object({
2923
- type: UpdatePromptResponseFormatPromptsResponse200Type$inboundSchema,
2924
- });
2925
-
2926
- /** @internal */
2927
- export type UpdatePromptResponseFormatPrompts2$Outbound = {
2928
- type: string;
2929
- };
2930
-
2931
- /** @internal */
2932
- export const UpdatePromptResponseFormatPrompts2$outboundSchema: z.ZodType<
2933
- UpdatePromptResponseFormatPrompts2$Outbound,
2934
- z.ZodTypeDef,
2935
- UpdatePromptResponseFormatPrompts2
2936
- > = z.object({
2937
- type: UpdatePromptResponseFormatPromptsResponse200Type$outboundSchema,
2938
- });
2939
-
2940
- /**
2941
- * @internal
2942
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2943
- */
2944
- export namespace UpdatePromptResponseFormatPrompts2$ {
2945
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$inboundSchema` instead. */
2946
- export const inboundSchema = UpdatePromptResponseFormatPrompts2$inboundSchema;
2947
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$outboundSchema` instead. */
2948
- export const outboundSchema =
2949
- UpdatePromptResponseFormatPrompts2$outboundSchema;
2950
- /** @deprecated use `UpdatePromptResponseFormatPrompts2$Outbound` instead. */
2951
- export type Outbound = UpdatePromptResponseFormatPrompts2$Outbound;
2952
- }
2953
-
2954
- export function updatePromptResponseFormatPrompts2ToJSON(
2955
- updatePromptResponseFormatPrompts2: UpdatePromptResponseFormatPrompts2,
2956
- ): string {
2957
- return JSON.stringify(
2958
- UpdatePromptResponseFormatPrompts2$outboundSchema.parse(
2959
- updatePromptResponseFormatPrompts2,
2960
- ),
2961
- );
2962
- }
2963
-
2964
- export function updatePromptResponseFormatPrompts2FromJSON(
2965
- jsonString: string,
2966
- ): SafeParseResult<UpdatePromptResponseFormatPrompts2, SDKValidationError> {
2967
- return safeParse(
2968
- jsonString,
2969
- (x) =>
2970
- UpdatePromptResponseFormatPrompts2$inboundSchema.parse(JSON.parse(x)),
2971
- `Failed to parse 'UpdatePromptResponseFormatPrompts2' from JSON`,
2972
- );
2973
- }
2974
-
2975
- /** @internal */
2976
- export const UpdatePromptResponseFormatPromptsResponseType$inboundSchema:
2977
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> = z
2978
- .nativeEnum(UpdatePromptResponseFormatPromptsResponseType);
2979
-
2980
- /** @internal */
2981
- export const UpdatePromptResponseFormatPromptsResponseType$outboundSchema:
2982
- z.ZodNativeEnum<typeof UpdatePromptResponseFormatPromptsResponseType> =
2983
- UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2984
-
2985
- /**
2986
- * @internal
2987
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2988
- */
2989
- export namespace UpdatePromptResponseFormatPromptsResponseType$ {
2990
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$inboundSchema` instead. */
2991
- export const inboundSchema =
2992
- UpdatePromptResponseFormatPromptsResponseType$inboundSchema;
2993
- /** @deprecated use `UpdatePromptResponseFormatPromptsResponseType$outboundSchema` instead. */
2994
- export const outboundSchema =
2995
- UpdatePromptResponseFormatPromptsResponseType$outboundSchema;
2996
- }
2997
-
2998
- /** @internal */
2999
- export const UpdatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
3000
- UpdatePromptResponseFormatJsonSchema,
3001
- z.ZodTypeDef,
3002
- unknown
3003
- > = z.object({
3004
- name: z.string(),
3005
- strict: z.boolean().optional(),
3006
- schema: z.record(z.any()),
3007
- });
3008
-
3009
- /** @internal */
3010
- export type UpdatePromptResponseFormatJsonSchema$Outbound = {
3011
- name: string;
3012
- strict?: boolean | undefined;
3013
- schema: { [k: string]: any };
3014
- };
3015
-
3016
- /** @internal */
3017
- export const UpdatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
3018
- UpdatePromptResponseFormatJsonSchema$Outbound,
3019
- z.ZodTypeDef,
3020
- UpdatePromptResponseFormatJsonSchema
3021
- > = z.object({
3022
- name: z.string(),
3023
- strict: z.boolean().optional(),
3024
- schema: z.record(z.any()),
3025
- });
3026
-
3027
- /**
3028
- * @internal
3029
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3030
- */
3031
- export namespace UpdatePromptResponseFormatJsonSchema$ {
3032
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$inboundSchema` instead. */
3033
- export const inboundSchema =
3034
- UpdatePromptResponseFormatJsonSchema$inboundSchema;
3035
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$outboundSchema` instead. */
3036
- export const outboundSchema =
3037
- UpdatePromptResponseFormatJsonSchema$outboundSchema;
3038
- /** @deprecated use `UpdatePromptResponseFormatJsonSchema$Outbound` instead. */
3039
- export type Outbound = UpdatePromptResponseFormatJsonSchema$Outbound;
3040
- }
3041
-
3042
- export function updatePromptResponseFormatJsonSchemaToJSON(
3043
- updatePromptResponseFormatJsonSchema: UpdatePromptResponseFormatJsonSchema,
3044
- ): string {
3045
- return JSON.stringify(
3046
- UpdatePromptResponseFormatJsonSchema$outboundSchema.parse(
3047
- updatePromptResponseFormatJsonSchema,
3048
- ),
3049
- );
3050
- }
3051
-
3052
- export function updatePromptResponseFormatJsonSchemaFromJSON(
3053
- jsonString: string,
3054
- ): SafeParseResult<UpdatePromptResponseFormatJsonSchema, SDKValidationError> {
3055
- return safeParse(
3056
- jsonString,
3057
- (x) =>
3058
- UpdatePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
3059
- `Failed to parse 'UpdatePromptResponseFormatJsonSchema' from JSON`,
3060
- );
3061
- }
3062
-
3063
- /** @internal */
3064
- export const UpdatePromptResponseFormatPrompts1$inboundSchema: z.ZodType<
3065
- UpdatePromptResponseFormatPrompts1,
3066
- z.ZodTypeDef,
3067
- unknown
3068
- > = z.object({
3069
- type: UpdatePromptResponseFormatPromptsResponseType$inboundSchema,
3070
- json_schema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$inboundSchema),
3071
- }).transform((v) => {
3072
- return remap$(v, {
3073
- "json_schema": "jsonSchema",
3074
- });
3075
- });
3076
-
3077
- /** @internal */
3078
- export type UpdatePromptResponseFormatPrompts1$Outbound = {
3079
- type: string;
3080
- json_schema: UpdatePromptResponseFormatJsonSchema$Outbound;
3081
- };
3082
-
3083
- /** @internal */
3084
- export const UpdatePromptResponseFormatPrompts1$outboundSchema: z.ZodType<
3085
- UpdatePromptResponseFormatPrompts1$Outbound,
3086
- z.ZodTypeDef,
3087
- UpdatePromptResponseFormatPrompts1
3088
- > = z.object({
3089
- type: UpdatePromptResponseFormatPromptsResponseType$outboundSchema,
3090
- jsonSchema: z.lazy(() => UpdatePromptResponseFormatJsonSchema$outboundSchema),
3091
- }).transform((v) => {
3092
- return remap$(v, {
3093
- jsonSchema: "json_schema",
3094
- });
3095
- });
3096
-
3097
- /**
3098
- * @internal
3099
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3100
- */
3101
- export namespace UpdatePromptResponseFormatPrompts1$ {
3102
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$inboundSchema` instead. */
3103
- export const inboundSchema = UpdatePromptResponseFormatPrompts1$inboundSchema;
3104
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$outboundSchema` instead. */
3105
- export const outboundSchema =
3106
- UpdatePromptResponseFormatPrompts1$outboundSchema;
3107
- /** @deprecated use `UpdatePromptResponseFormatPrompts1$Outbound` instead. */
3108
- export type Outbound = UpdatePromptResponseFormatPrompts1$Outbound;
3109
- }
3110
-
3111
- export function updatePromptResponseFormatPrompts1ToJSON(
3112
- updatePromptResponseFormatPrompts1: UpdatePromptResponseFormatPrompts1,
3113
- ): string {
3114
- return JSON.stringify(
3115
- UpdatePromptResponseFormatPrompts1$outboundSchema.parse(
3116
- updatePromptResponseFormatPrompts1,
3117
- ),
3118
- );
3119
- }
3120
-
3121
- export function updatePromptResponseFormatPrompts1FromJSON(
3122
- jsonString: string,
3123
- ): SafeParseResult<UpdatePromptResponseFormatPrompts1, SDKValidationError> {
3124
- return safeParse(
3125
- jsonString,
3126
- (x) =>
3127
- UpdatePromptResponseFormatPrompts1$inboundSchema.parse(JSON.parse(x)),
3128
- `Failed to parse 'UpdatePromptResponseFormatPrompts1' from JSON`,
3129
- );
3130
- }
3131
-
3132
- /** @internal */
3133
- export const UpdatePromptPromptsResponseFormat$inboundSchema: z.ZodType<
3134
- UpdatePromptPromptsResponseFormat,
3135
- z.ZodTypeDef,
3136
- unknown
3137
- > = z.union([
3138
- z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
3139
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
3140
- z.lazy(() => UpdatePromptResponseFormatPrompts3$inboundSchema),
3141
- ]);
3142
-
3143
- /** @internal */
3144
- export type UpdatePromptPromptsResponseFormat$Outbound =
3145
- | UpdatePromptResponseFormatPrompts1$Outbound
3146
- | UpdatePromptResponseFormatPrompts2$Outbound
3147
- | UpdatePromptResponseFormatPrompts3$Outbound;
3148
-
3149
- /** @internal */
3150
- export const UpdatePromptPromptsResponseFormat$outboundSchema: z.ZodType<
3151
- UpdatePromptPromptsResponseFormat$Outbound,
3152
- z.ZodTypeDef,
3153
- UpdatePromptPromptsResponseFormat
3154
- > = z.union([
3155
- z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
3156
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
3157
- z.lazy(() => UpdatePromptResponseFormatPrompts3$outboundSchema),
3158
- ]);
3159
-
3160
- /**
3161
- * @internal
3162
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3163
- */
3164
- export namespace UpdatePromptPromptsResponseFormat$ {
3165
- /** @deprecated use `UpdatePromptPromptsResponseFormat$inboundSchema` instead. */
3166
- export const inboundSchema = UpdatePromptPromptsResponseFormat$inboundSchema;
3167
- /** @deprecated use `UpdatePromptPromptsResponseFormat$outboundSchema` instead. */
3168
- export const outboundSchema =
3169
- UpdatePromptPromptsResponseFormat$outboundSchema;
3170
- /** @deprecated use `UpdatePromptPromptsResponseFormat$Outbound` instead. */
3171
- export type Outbound = UpdatePromptPromptsResponseFormat$Outbound;
3172
- }
3173
-
3174
- export function updatePromptPromptsResponseFormatToJSON(
3175
- updatePromptPromptsResponseFormat: UpdatePromptPromptsResponseFormat,
3176
- ): string {
3177
- return JSON.stringify(
3178
- UpdatePromptPromptsResponseFormat$outboundSchema.parse(
3179
- updatePromptPromptsResponseFormat,
3180
- ),
3181
- );
3182
- }
3183
-
3184
- export function updatePromptPromptsResponseFormatFromJSON(
3185
- jsonString: string,
3186
- ): SafeParseResult<UpdatePromptPromptsResponseFormat, SDKValidationError> {
3187
- return safeParse(
3188
- jsonString,
3189
- (x) => UpdatePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
3190
- `Failed to parse 'UpdatePromptPromptsResponseFormat' from JSON`,
3191
- );
3192
- }
3193
-
3194
- /** @internal */
3195
- export const UpdatePromptPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
3196
- typeof UpdatePromptPromptsPhotoRealVersion
3197
- > = z.nativeEnum(UpdatePromptPromptsPhotoRealVersion);
3198
-
3199
- /** @internal */
3200
- export const UpdatePromptPromptsPhotoRealVersion$outboundSchema:
3201
- z.ZodNativeEnum<typeof UpdatePromptPromptsPhotoRealVersion> =
3202
- UpdatePromptPromptsPhotoRealVersion$inboundSchema;
3203
-
3204
- /**
3205
- * @internal
3206
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3207
- */
3208
- export namespace UpdatePromptPromptsPhotoRealVersion$ {
3209
- /** @deprecated use `UpdatePromptPromptsPhotoRealVersion$inboundSchema` instead. */
3210
- export const inboundSchema =
3211
- UpdatePromptPromptsPhotoRealVersion$inboundSchema;
3212
- /** @deprecated use `UpdatePromptPromptsPhotoRealVersion$outboundSchema` instead. */
3213
- export const outboundSchema =
3214
- UpdatePromptPromptsPhotoRealVersion$outboundSchema;
3215
- }
3216
-
3217
- /** @internal */
3218
- export const UpdatePromptPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
3219
- typeof UpdatePromptPromptsEncodingFormat
3220
- > = z.nativeEnum(UpdatePromptPromptsEncodingFormat);
3221
-
3222
- /** @internal */
3223
- export const UpdatePromptPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
3224
- typeof UpdatePromptPromptsEncodingFormat
3225
- > = UpdatePromptPromptsEncodingFormat$inboundSchema;
3226
-
3227
- /**
3228
- * @internal
3229
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3230
- */
3231
- export namespace UpdatePromptPromptsEncodingFormat$ {
3232
- /** @deprecated use `UpdatePromptPromptsEncodingFormat$inboundSchema` instead. */
3233
- export const inboundSchema = UpdatePromptPromptsEncodingFormat$inboundSchema;
3234
- /** @deprecated use `UpdatePromptPromptsEncodingFormat$outboundSchema` instead. */
3235
- export const outboundSchema =
3236
- UpdatePromptPromptsEncodingFormat$outboundSchema;
3237
- }
3238
-
3239
- /** @internal */
3240
- export const UpdatePromptPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
3241
- typeof UpdatePromptPromptsReasoningEffort
3242
- > = z.nativeEnum(UpdatePromptPromptsReasoningEffort);
3243
-
3244
- /** @internal */
3245
- export const UpdatePromptPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
3246
- typeof UpdatePromptPromptsReasoningEffort
3247
- > = UpdatePromptPromptsReasoningEffort$inboundSchema;
3248
-
3249
- /**
3250
- * @internal
3251
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3252
- */
3253
- export namespace UpdatePromptPromptsReasoningEffort$ {
3254
- /** @deprecated use `UpdatePromptPromptsReasoningEffort$inboundSchema` instead. */
3255
- export const inboundSchema = UpdatePromptPromptsReasoningEffort$inboundSchema;
3256
- /** @deprecated use `UpdatePromptPromptsReasoningEffort$outboundSchema` instead. */
3257
- export const outboundSchema =
3258
- UpdatePromptPromptsReasoningEffort$outboundSchema;
3259
- }
3260
-
3261
- /** @internal */
3262
- export const UpdatePromptPromptsVerbosity$inboundSchema: z.ZodNativeEnum<
3263
- typeof UpdatePromptPromptsVerbosity
3264
- > = z.nativeEnum(UpdatePromptPromptsVerbosity);
3265
-
3266
- /** @internal */
3267
- export const UpdatePromptPromptsVerbosity$outboundSchema: z.ZodNativeEnum<
3268
- typeof UpdatePromptPromptsVerbosity
3269
- > = UpdatePromptPromptsVerbosity$inboundSchema;
3270
-
3271
- /**
3272
- * @internal
3273
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3274
- */
3275
- export namespace UpdatePromptPromptsVerbosity$ {
3276
- /** @deprecated use `UpdatePromptPromptsVerbosity$inboundSchema` instead. */
3277
- export const inboundSchema = UpdatePromptPromptsVerbosity$inboundSchema;
3278
- /** @deprecated use `UpdatePromptPromptsVerbosity$outboundSchema` instead. */
3279
- export const outboundSchema = UpdatePromptPromptsVerbosity$outboundSchema;
3280
- }
3281
-
3282
- /** @internal */
3283
- export const UpdatePromptPromptsModelParameters$inboundSchema: z.ZodType<
3284
- UpdatePromptPromptsModelParameters,
3285
- z.ZodTypeDef,
3286
- unknown
3287
- > = z.object({
3288
- temperature: z.number().optional(),
3289
- maxTokens: z.number().optional(),
3290
- topK: z.number().optional(),
3291
- topP: z.number().optional(),
3292
- frequencyPenalty: z.number().optional(),
3293
- presencePenalty: z.number().optional(),
3294
- numImages: z.number().optional(),
3295
- seed: z.number().optional(),
3296
- format: UpdatePromptPromptsFormat$inboundSchema.optional(),
3297
- dimensions: z.string().optional(),
3298
- quality: z.string().optional(),
3299
- style: z.string().optional(),
3300
- responseFormat: z.nullable(
3301
- z.union([
3302
- z.lazy(() => UpdatePromptResponseFormatPrompts1$inboundSchema),
3303
- z.lazy(() => UpdatePromptResponseFormatPrompts2$inboundSchema),
3304
- z.lazy(() => UpdatePromptResponseFormatPrompts3$inboundSchema),
3305
- ]),
3306
- ).optional(),
3307
- photoRealVersion: UpdatePromptPromptsPhotoRealVersion$inboundSchema
3308
- .optional(),
3309
- encoding_format: UpdatePromptPromptsEncodingFormat$inboundSchema.optional(),
3310
- reasoningEffort: UpdatePromptPromptsReasoningEffort$inboundSchema.optional(),
3311
- budgetTokens: z.number().optional(),
3312
- verbosity: UpdatePromptPromptsVerbosity$inboundSchema.optional(),
3313
- }).transform((v) => {
3314
- return remap$(v, {
3315
- "encoding_format": "encodingFormat",
3316
- });
3317
- });
3318
-
3319
- /** @internal */
3320
- export type UpdatePromptPromptsModelParameters$Outbound = {
3321
- temperature?: number | undefined;
3322
- maxTokens?: number | undefined;
3323
- topK?: number | undefined;
3324
- topP?: number | undefined;
3325
- frequencyPenalty?: number | undefined;
3326
- presencePenalty?: number | undefined;
3327
- numImages?: number | undefined;
3328
- seed?: number | undefined;
3329
- format?: string | undefined;
3330
- dimensions?: string | undefined;
3331
- quality?: string | undefined;
3332
- style?: string | undefined;
3333
- responseFormat?:
3334
- | UpdatePromptResponseFormatPrompts1$Outbound
3335
- | UpdatePromptResponseFormatPrompts2$Outbound
3336
- | UpdatePromptResponseFormatPrompts3$Outbound
3337
- | null
3338
- | undefined;
3339
- photoRealVersion?: string | undefined;
3340
- encoding_format?: string | undefined;
3341
- reasoningEffort?: string | undefined;
3342
- budgetTokens?: number | undefined;
3343
- verbosity?: string | undefined;
3344
- };
3345
-
3346
- /** @internal */
3347
- export const UpdatePromptPromptsModelParameters$outboundSchema: z.ZodType<
3348
- UpdatePromptPromptsModelParameters$Outbound,
3349
- z.ZodTypeDef,
3350
- UpdatePromptPromptsModelParameters
3351
- > = z.object({
3352
- temperature: z.number().optional(),
3353
- maxTokens: z.number().optional(),
3354
- topK: z.number().optional(),
3355
- topP: z.number().optional(),
3356
- frequencyPenalty: z.number().optional(),
3357
- presencePenalty: z.number().optional(),
3358
- numImages: z.number().optional(),
3359
- seed: z.number().optional(),
3360
- format: UpdatePromptPromptsFormat$outboundSchema.optional(),
3361
- dimensions: z.string().optional(),
3362
- quality: z.string().optional(),
3363
- style: z.string().optional(),
3364
- responseFormat: z.nullable(
3365
- z.union([
3366
- z.lazy(() => UpdatePromptResponseFormatPrompts1$outboundSchema),
3367
- z.lazy(() => UpdatePromptResponseFormatPrompts2$outboundSchema),
3368
- z.lazy(() => UpdatePromptResponseFormatPrompts3$outboundSchema),
3369
- ]),
3370
- ).optional(),
3371
- photoRealVersion: UpdatePromptPromptsPhotoRealVersion$outboundSchema
3372
- .optional(),
3373
- encodingFormat: UpdatePromptPromptsEncodingFormat$outboundSchema.optional(),
3374
- reasoningEffort: UpdatePromptPromptsReasoningEffort$outboundSchema.optional(),
3375
- budgetTokens: z.number().optional(),
3376
- verbosity: UpdatePromptPromptsVerbosity$outboundSchema.optional(),
3377
- }).transform((v) => {
3378
- return remap$(v, {
3379
- encodingFormat: "encoding_format",
3380
- });
3381
- });
3382
-
3383
- /**
3384
- * @internal
3385
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3386
- */
3387
- export namespace UpdatePromptPromptsModelParameters$ {
3388
- /** @deprecated use `UpdatePromptPromptsModelParameters$inboundSchema` instead. */
3389
- export const inboundSchema = UpdatePromptPromptsModelParameters$inboundSchema;
3390
- /** @deprecated use `UpdatePromptPromptsModelParameters$outboundSchema` instead. */
3391
- export const outboundSchema =
3392
- UpdatePromptPromptsModelParameters$outboundSchema;
3393
- /** @deprecated use `UpdatePromptPromptsModelParameters$Outbound` instead. */
3394
- export type Outbound = UpdatePromptPromptsModelParameters$Outbound;
3395
- }
3396
-
3397
- export function updatePromptPromptsModelParametersToJSON(
3398
- updatePromptPromptsModelParameters: UpdatePromptPromptsModelParameters,
3399
- ): string {
3400
- return JSON.stringify(
3401
- UpdatePromptPromptsModelParameters$outboundSchema.parse(
3402
- updatePromptPromptsModelParameters,
3403
- ),
3404
- );
3405
- }
3406
-
3407
- export function updatePromptPromptsModelParametersFromJSON(
3408
- jsonString: string,
3409
- ): SafeParseResult<UpdatePromptPromptsModelParameters, SDKValidationError> {
3410
- return safeParse(
3411
- jsonString,
3412
- (x) =>
3413
- UpdatePromptPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
3414
- `Failed to parse 'UpdatePromptPromptsModelParameters' from JSON`,
3415
- );
3416
- }
3417
-
3418
- /** @internal */
3419
- export const UpdatePromptPromptsProvider$inboundSchema: z.ZodNativeEnum<
3420
- typeof UpdatePromptPromptsProvider
3421
- > = z.nativeEnum(UpdatePromptPromptsProvider);
3422
-
3423
- /** @internal */
3424
- export const UpdatePromptPromptsProvider$outboundSchema: z.ZodNativeEnum<
3425
- typeof UpdatePromptPromptsProvider
3426
- > = UpdatePromptPromptsProvider$inboundSchema;
3427
-
3428
- /**
3429
- * @internal
3430
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3431
- */
3432
- export namespace UpdatePromptPromptsProvider$ {
3433
- /** @deprecated use `UpdatePromptPromptsProvider$inboundSchema` instead. */
3434
- export const inboundSchema = UpdatePromptPromptsProvider$inboundSchema;
3435
- /** @deprecated use `UpdatePromptPromptsProvider$outboundSchema` instead. */
3436
- export const outboundSchema = UpdatePromptPromptsProvider$outboundSchema;
3437
- }
3438
-
3439
- /** @internal */
3440
- export const UpdatePromptPromptsRole$inboundSchema: z.ZodNativeEnum<
3441
- typeof UpdatePromptPromptsRole
3442
- > = z.nativeEnum(UpdatePromptPromptsRole);
3443
-
3444
- /** @internal */
3445
- export const UpdatePromptPromptsRole$outboundSchema: z.ZodNativeEnum<
3446
- typeof UpdatePromptPromptsRole
3447
- > = UpdatePromptPromptsRole$inboundSchema;
3448
-
3449
- /**
3450
- * @internal
3451
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3452
- */
3453
- export namespace UpdatePromptPromptsRole$ {
3454
- /** @deprecated use `UpdatePromptPromptsRole$inboundSchema` instead. */
3455
- export const inboundSchema = UpdatePromptPromptsRole$inboundSchema;
3456
- /** @deprecated use `UpdatePromptPromptsRole$outboundSchema` instead. */
3457
- export const outboundSchema = UpdatePromptPromptsRole$outboundSchema;
3458
- }
3459
-
3460
- /** @internal */
3461
- export const UpdatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema:
3462
- z.ZodNativeEnum<typeof UpdatePrompt2PromptsResponse200ApplicationJSONType> = z
3463
- .nativeEnum(UpdatePrompt2PromptsResponse200ApplicationJSONType);
3464
-
3465
- /** @internal */
3466
- export const UpdatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema:
3467
- z.ZodNativeEnum<typeof UpdatePrompt2PromptsResponse200ApplicationJSONType> =
3468
- UpdatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema;
3469
-
3470
- /**
3471
- * @internal
3472
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3473
- */
3474
- export namespace UpdatePrompt2PromptsResponse200ApplicationJSONType$ {
3475
- /** @deprecated use `UpdatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema` instead. */
3476
- export const inboundSchema =
3477
- UpdatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema;
3478
- /** @deprecated use `UpdatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema` instead. */
3479
- export const outboundSchema =
3480
- UpdatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema;
3481
- }
3482
-
3483
- /** @internal */
3484
- export const UpdatePrompt2PromptsFile$inboundSchema: z.ZodType<
3485
- UpdatePrompt2PromptsFile,
3486
- z.ZodTypeDef,
3487
- unknown
3488
- > = z.object({
3489
- file_data: z.string(),
3490
- filename: z.string().optional(),
3491
- }).transform((v) => {
3492
- return remap$(v, {
3493
- "file_data": "fileData",
3494
- });
3495
- });
3496
-
3497
- /** @internal */
3498
- export type UpdatePrompt2PromptsFile$Outbound = {
3499
- file_data: string;
3500
- filename?: string | undefined;
3501
- };
3502
-
3503
- /** @internal */
3504
- export const UpdatePrompt2PromptsFile$outboundSchema: z.ZodType<
3505
- UpdatePrompt2PromptsFile$Outbound,
3506
- z.ZodTypeDef,
3507
- UpdatePrompt2PromptsFile
3508
- > = z.object({
3509
- fileData: z.string(),
3510
- filename: z.string().optional(),
3511
- }).transform((v) => {
3512
- return remap$(v, {
3513
- fileData: "file_data",
3514
- });
3515
- });
3516
-
3517
- /**
3518
- * @internal
3519
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3520
- */
3521
- export namespace UpdatePrompt2PromptsFile$ {
3522
- /** @deprecated use `UpdatePrompt2PromptsFile$inboundSchema` instead. */
3523
- export const inboundSchema = UpdatePrompt2PromptsFile$inboundSchema;
3524
- /** @deprecated use `UpdatePrompt2PromptsFile$outboundSchema` instead. */
3525
- export const outboundSchema = UpdatePrompt2PromptsFile$outboundSchema;
3526
- /** @deprecated use `UpdatePrompt2PromptsFile$Outbound` instead. */
3527
- export type Outbound = UpdatePrompt2PromptsFile$Outbound;
3528
- }
3529
-
3530
- export function updatePrompt2PromptsFileToJSON(
3531
- updatePrompt2PromptsFile: UpdatePrompt2PromptsFile,
3532
- ): string {
3533
- return JSON.stringify(
3534
- UpdatePrompt2PromptsFile$outboundSchema.parse(updatePrompt2PromptsFile),
3535
- );
3536
- }
3537
-
3538
- export function updatePrompt2PromptsFileFromJSON(
3539
- jsonString: string,
3540
- ): SafeParseResult<UpdatePrompt2PromptsFile, SDKValidationError> {
3541
- return safeParse(
3542
- jsonString,
3543
- (x) => UpdatePrompt2PromptsFile$inboundSchema.parse(JSON.parse(x)),
3544
- `Failed to parse 'UpdatePrompt2PromptsFile' from JSON`,
3545
- );
3546
- }
3547
-
3548
- /** @internal */
3549
- export const UpdatePrompt2Prompts3$inboundSchema: z.ZodType<
3550
- UpdatePrompt2Prompts3,
3551
- z.ZodTypeDef,
3552
- unknown
3553
- > = z.object({
3554
- type: UpdatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema,
3555
- file: z.lazy(() => UpdatePrompt2PromptsFile$inboundSchema),
3556
- });
3557
-
3558
- /** @internal */
3559
- export type UpdatePrompt2Prompts3$Outbound = {
3560
- type: string;
3561
- file: UpdatePrompt2PromptsFile$Outbound;
3562
- };
3563
-
3564
- /** @internal */
3565
- export const UpdatePrompt2Prompts3$outboundSchema: z.ZodType<
3566
- UpdatePrompt2Prompts3$Outbound,
3567
- z.ZodTypeDef,
3568
- UpdatePrompt2Prompts3
3569
- > = z.object({
3570
- type: UpdatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema,
3571
- file: z.lazy(() => UpdatePrompt2PromptsFile$outboundSchema),
3572
- });
3573
-
3574
- /**
3575
- * @internal
3576
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3577
- */
3578
- export namespace UpdatePrompt2Prompts3$ {
3579
- /** @deprecated use `UpdatePrompt2Prompts3$inboundSchema` instead. */
3580
- export const inboundSchema = UpdatePrompt2Prompts3$inboundSchema;
3581
- /** @deprecated use `UpdatePrompt2Prompts3$outboundSchema` instead. */
3582
- export const outboundSchema = UpdatePrompt2Prompts3$outboundSchema;
3583
- /** @deprecated use `UpdatePrompt2Prompts3$Outbound` instead. */
3584
- export type Outbound = UpdatePrompt2Prompts3$Outbound;
3585
- }
3586
-
3587
- export function updatePrompt2Prompts3ToJSON(
3588
- updatePrompt2Prompts3: UpdatePrompt2Prompts3,
3589
- ): string {
3590
- return JSON.stringify(
3591
- UpdatePrompt2Prompts3$outboundSchema.parse(updatePrompt2Prompts3),
3592
- );
3593
- }
3594
-
3595
- export function updatePrompt2Prompts3FromJSON(
3596
- jsonString: string,
3597
- ): SafeParseResult<UpdatePrompt2Prompts3, SDKValidationError> {
3598
- return safeParse(
3599
- jsonString,
3600
- (x) => UpdatePrompt2Prompts3$inboundSchema.parse(JSON.parse(x)),
3601
- `Failed to parse 'UpdatePrompt2Prompts3' from JSON`,
3602
- );
3603
- }
3604
-
3605
- /** @internal */
3606
- export const UpdatePrompt2PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
3607
- typeof UpdatePrompt2PromptsResponse200Type
3608
- > = z.nativeEnum(UpdatePrompt2PromptsResponse200Type);
3609
-
3610
- /** @internal */
3611
- export const UpdatePrompt2PromptsResponse200Type$outboundSchema:
3612
- z.ZodNativeEnum<typeof UpdatePrompt2PromptsResponse200Type> =
3613
- UpdatePrompt2PromptsResponse200Type$inboundSchema;
3614
-
3615
- /**
3616
- * @internal
3617
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3618
- */
3619
- export namespace UpdatePrompt2PromptsResponse200Type$ {
3620
- /** @deprecated use `UpdatePrompt2PromptsResponse200Type$inboundSchema` instead. */
3621
- export const inboundSchema =
3622
- UpdatePrompt2PromptsResponse200Type$inboundSchema;
3623
- /** @deprecated use `UpdatePrompt2PromptsResponse200Type$outboundSchema` instead. */
3624
- export const outboundSchema =
3625
- UpdatePrompt2PromptsResponse200Type$outboundSchema;
3626
- }
3627
-
3628
- /** @internal */
3629
- export const UpdatePrompt2PromptsImageUrl$inboundSchema: z.ZodType<
3630
- UpdatePrompt2PromptsImageUrl,
3631
- z.ZodTypeDef,
3632
- unknown
3633
- > = z.object({
3634
- id: z.string().optional(),
3635
- url: z.string(),
3636
- detail: z.string().optional(),
3637
- });
3638
-
3639
- /** @internal */
3640
- export type UpdatePrompt2PromptsImageUrl$Outbound = {
3641
- id?: string | undefined;
3642
- url: string;
3643
- detail?: string | undefined;
3644
- };
3645
-
3646
- /** @internal */
3647
- export const UpdatePrompt2PromptsImageUrl$outboundSchema: z.ZodType<
3648
- UpdatePrompt2PromptsImageUrl$Outbound,
3649
- z.ZodTypeDef,
3650
- UpdatePrompt2PromptsImageUrl
3651
- > = z.object({
3652
- id: z.string().optional(),
3653
- url: z.string(),
3654
- detail: z.string().optional(),
3655
- });
3656
-
3657
- /**
3658
- * @internal
3659
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3660
- */
3661
- export namespace UpdatePrompt2PromptsImageUrl$ {
3662
- /** @deprecated use `UpdatePrompt2PromptsImageUrl$inboundSchema` instead. */
3663
- export const inboundSchema = UpdatePrompt2PromptsImageUrl$inboundSchema;
3664
- /** @deprecated use `UpdatePrompt2PromptsImageUrl$outboundSchema` instead. */
3665
- export const outboundSchema = UpdatePrompt2PromptsImageUrl$outboundSchema;
3666
- /** @deprecated use `UpdatePrompt2PromptsImageUrl$Outbound` instead. */
3667
- export type Outbound = UpdatePrompt2PromptsImageUrl$Outbound;
3668
- }
3669
-
3670
- export function updatePrompt2PromptsImageUrlToJSON(
3671
- updatePrompt2PromptsImageUrl: UpdatePrompt2PromptsImageUrl,
3672
- ): string {
3673
- return JSON.stringify(
3674
- UpdatePrompt2PromptsImageUrl$outboundSchema.parse(
3675
- updatePrompt2PromptsImageUrl,
3676
- ),
3677
- );
3678
- }
3679
-
3680
- export function updatePrompt2PromptsImageUrlFromJSON(
3681
- jsonString: string,
3682
- ): SafeParseResult<UpdatePrompt2PromptsImageUrl, SDKValidationError> {
3683
- return safeParse(
3684
- jsonString,
3685
- (x) => UpdatePrompt2PromptsImageUrl$inboundSchema.parse(JSON.parse(x)),
3686
- `Failed to parse 'UpdatePrompt2PromptsImageUrl' from JSON`,
3687
- );
3688
- }
3689
-
3690
- /** @internal */
3691
- export const UpdatePrompt2Prompts2$inboundSchema: z.ZodType<
3692
- UpdatePrompt2Prompts2,
3693
- z.ZodTypeDef,
3694
- unknown
3695
- > = z.object({
3696
- type: UpdatePrompt2PromptsResponse200Type$inboundSchema,
3697
- image_url: z.lazy(() => UpdatePrompt2PromptsImageUrl$inboundSchema),
3698
- }).transform((v) => {
3699
- return remap$(v, {
3700
- "image_url": "imageUrl",
3701
- });
3702
- });
3703
-
3704
- /** @internal */
3705
- export type UpdatePrompt2Prompts2$Outbound = {
3706
- type: string;
3707
- image_url: UpdatePrompt2PromptsImageUrl$Outbound;
3708
- };
3709
-
3710
- /** @internal */
3711
- export const UpdatePrompt2Prompts2$outboundSchema: z.ZodType<
3712
- UpdatePrompt2Prompts2$Outbound,
3713
- z.ZodTypeDef,
3714
- UpdatePrompt2Prompts2
3715
- > = z.object({
3716
- type: UpdatePrompt2PromptsResponse200Type$outboundSchema,
3717
- imageUrl: z.lazy(() => UpdatePrompt2PromptsImageUrl$outboundSchema),
3718
- }).transform((v) => {
3719
- return remap$(v, {
3720
- imageUrl: "image_url",
3721
- });
3722
- });
3723
-
3724
- /**
3725
- * @internal
3726
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3727
- */
3728
- export namespace UpdatePrompt2Prompts2$ {
3729
- /** @deprecated use `UpdatePrompt2Prompts2$inboundSchema` instead. */
3730
- export const inboundSchema = UpdatePrompt2Prompts2$inboundSchema;
3731
- /** @deprecated use `UpdatePrompt2Prompts2$outboundSchema` instead. */
3732
- export const outboundSchema = UpdatePrompt2Prompts2$outboundSchema;
3733
- /** @deprecated use `UpdatePrompt2Prompts2$Outbound` instead. */
3734
- export type Outbound = UpdatePrompt2Prompts2$Outbound;
3735
- }
3736
-
3737
- export function updatePrompt2Prompts2ToJSON(
3738
- updatePrompt2Prompts2: UpdatePrompt2Prompts2,
3739
- ): string {
3740
- return JSON.stringify(
3741
- UpdatePrompt2Prompts2$outboundSchema.parse(updatePrompt2Prompts2),
3742
- );
3743
- }
3744
-
3745
- export function updatePrompt2Prompts2FromJSON(
3746
- jsonString: string,
3747
- ): SafeParseResult<UpdatePrompt2Prompts2, SDKValidationError> {
3748
- return safeParse(
3749
- jsonString,
3750
- (x) => UpdatePrompt2Prompts2$inboundSchema.parse(JSON.parse(x)),
3751
- `Failed to parse 'UpdatePrompt2Prompts2' from JSON`,
3752
- );
3753
- }
3754
-
3755
- /** @internal */
3756
- export const UpdatePrompt2PromptsResponseType$inboundSchema: z.ZodNativeEnum<
3757
- typeof UpdatePrompt2PromptsResponseType
3758
- > = z.nativeEnum(UpdatePrompt2PromptsResponseType);
3759
-
3760
- /** @internal */
3761
- export const UpdatePrompt2PromptsResponseType$outboundSchema: z.ZodNativeEnum<
3762
- typeof UpdatePrompt2PromptsResponseType
3763
- > = UpdatePrompt2PromptsResponseType$inboundSchema;
3764
-
3765
- /**
3766
- * @internal
3767
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3768
- */
3769
- export namespace UpdatePrompt2PromptsResponseType$ {
3770
- /** @deprecated use `UpdatePrompt2PromptsResponseType$inboundSchema` instead. */
3771
- export const inboundSchema = UpdatePrompt2PromptsResponseType$inboundSchema;
3772
- /** @deprecated use `UpdatePrompt2PromptsResponseType$outboundSchema` instead. */
3773
- export const outboundSchema = UpdatePrompt2PromptsResponseType$outboundSchema;
3774
- }
3775
-
3776
- /** @internal */
3777
- export const UpdatePrompt2Prompts1$inboundSchema: z.ZodType<
3778
- UpdatePrompt2Prompts1,
3779
- z.ZodTypeDef,
3780
- unknown
3781
- > = z.object({
3782
- type: UpdatePrompt2PromptsResponseType$inboundSchema,
3783
- text: z.string(),
3784
- });
3785
-
3786
- /** @internal */
3787
- export type UpdatePrompt2Prompts1$Outbound = {
3788
- type: string;
3789
- text: string;
3790
- };
3791
-
3792
- /** @internal */
3793
- export const UpdatePrompt2Prompts1$outboundSchema: z.ZodType<
3794
- UpdatePrompt2Prompts1$Outbound,
3795
- z.ZodTypeDef,
3796
- UpdatePrompt2Prompts1
3797
- > = z.object({
3798
- type: UpdatePrompt2PromptsResponseType$outboundSchema,
3799
- text: z.string(),
3800
- });
3801
-
3802
- /**
3803
- * @internal
3804
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3805
- */
3806
- export namespace UpdatePrompt2Prompts1$ {
3807
- /** @deprecated use `UpdatePrompt2Prompts1$inboundSchema` instead. */
3808
- export const inboundSchema = UpdatePrompt2Prompts1$inboundSchema;
3809
- /** @deprecated use `UpdatePrompt2Prompts1$outboundSchema` instead. */
3810
- export const outboundSchema = UpdatePrompt2Prompts1$outboundSchema;
3811
- /** @deprecated use `UpdatePrompt2Prompts1$Outbound` instead. */
3812
- export type Outbound = UpdatePrompt2Prompts1$Outbound;
3813
- }
3814
-
3815
- export function updatePrompt2Prompts1ToJSON(
3816
- updatePrompt2Prompts1: UpdatePrompt2Prompts1,
3817
- ): string {
3818
- return JSON.stringify(
3819
- UpdatePrompt2Prompts1$outboundSchema.parse(updatePrompt2Prompts1),
3820
- );
3821
- }
3822
-
3823
- export function updatePrompt2Prompts1FromJSON(
3824
- jsonString: string,
3825
- ): SafeParseResult<UpdatePrompt2Prompts1, SDKValidationError> {
3826
- return safeParse(
3827
- jsonString,
3828
- (x) => UpdatePrompt2Prompts1$inboundSchema.parse(JSON.parse(x)),
3829
- `Failed to parse 'UpdatePrompt2Prompts1' from JSON`,
3830
- );
3831
- }
3832
-
3833
- /** @internal */
3834
- export const UpdatePromptContentPrompts2$inboundSchema: z.ZodType<
3835
- UpdatePromptContentPrompts2,
3836
- z.ZodTypeDef,
3837
- unknown
3838
- > = z.union([
3839
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
3840
- z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
3841
- z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
3842
- ]);
3843
-
3844
- /** @internal */
3845
- export type UpdatePromptContentPrompts2$Outbound =
3846
- | UpdatePrompt2Prompts1$Outbound
3847
- | UpdatePrompt2Prompts2$Outbound
3848
- | UpdatePrompt2Prompts3$Outbound;
3849
-
3850
- /** @internal */
3851
- export const UpdatePromptContentPrompts2$outboundSchema: z.ZodType<
3852
- UpdatePromptContentPrompts2$Outbound,
3853
- z.ZodTypeDef,
3854
- UpdatePromptContentPrompts2
3855
- > = z.union([
3856
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
3857
- z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
3858
- z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
3859
- ]);
3860
-
3861
- /**
3862
- * @internal
3863
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3864
- */
3865
- export namespace UpdatePromptContentPrompts2$ {
3866
- /** @deprecated use `UpdatePromptContentPrompts2$inboundSchema` instead. */
3867
- export const inboundSchema = UpdatePromptContentPrompts2$inboundSchema;
3868
- /** @deprecated use `UpdatePromptContentPrompts2$outboundSchema` instead. */
3869
- export const outboundSchema = UpdatePromptContentPrompts2$outboundSchema;
3870
- /** @deprecated use `UpdatePromptContentPrompts2$Outbound` instead. */
3871
- export type Outbound = UpdatePromptContentPrompts2$Outbound;
3872
- }
3873
-
3874
- export function updatePromptContentPrompts2ToJSON(
3875
- updatePromptContentPrompts2: UpdatePromptContentPrompts2,
3876
- ): string {
3877
- return JSON.stringify(
3878
- UpdatePromptContentPrompts2$outboundSchema.parse(
3879
- updatePromptContentPrompts2,
3880
- ),
3881
- );
3882
- }
3883
-
3884
- export function updatePromptContentPrompts2FromJSON(
3885
- jsonString: string,
3886
- ): SafeParseResult<UpdatePromptContentPrompts2, SDKValidationError> {
3887
- return safeParse(
3888
- jsonString,
3889
- (x) => UpdatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
3890
- `Failed to parse 'UpdatePromptContentPrompts2' from JSON`,
3891
- );
3892
- }
3893
-
3894
- /** @internal */
3895
- export const UpdatePromptPromptsContent$inboundSchema: z.ZodType<
3896
- UpdatePromptPromptsContent,
3897
- z.ZodTypeDef,
3898
- unknown
3899
- > = z.union([
3900
- z.string(),
3901
- z.array(z.union([
3902
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
3903
- z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
3904
- z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
3905
- ])),
3906
- ]);
3907
-
3908
- /** @internal */
3909
- export type UpdatePromptPromptsContent$Outbound =
3910
- | string
3911
- | Array<
3912
- | UpdatePrompt2Prompts1$Outbound
3913
- | UpdatePrompt2Prompts2$Outbound
3914
- | UpdatePrompt2Prompts3$Outbound
3915
- >;
3916
-
3917
- /** @internal */
3918
- export const UpdatePromptPromptsContent$outboundSchema: z.ZodType<
3919
- UpdatePromptPromptsContent$Outbound,
3920
- z.ZodTypeDef,
3921
- UpdatePromptPromptsContent
3922
- > = z.union([
3923
- z.string(),
3924
- z.array(z.union([
3925
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
3926
- z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
3927
- z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
3928
- ])),
3929
- ]);
3930
-
3931
- /**
3932
- * @internal
3933
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3934
- */
3935
- export namespace UpdatePromptPromptsContent$ {
3936
- /** @deprecated use `UpdatePromptPromptsContent$inboundSchema` instead. */
3937
- export const inboundSchema = UpdatePromptPromptsContent$inboundSchema;
3938
- /** @deprecated use `UpdatePromptPromptsContent$outboundSchema` instead. */
3939
- export const outboundSchema = UpdatePromptPromptsContent$outboundSchema;
3940
- /** @deprecated use `UpdatePromptPromptsContent$Outbound` instead. */
3941
- export type Outbound = UpdatePromptPromptsContent$Outbound;
3942
- }
3943
-
3944
- export function updatePromptPromptsContentToJSON(
3945
- updatePromptPromptsContent: UpdatePromptPromptsContent,
3946
- ): string {
3947
- return JSON.stringify(
3948
- UpdatePromptPromptsContent$outboundSchema.parse(updatePromptPromptsContent),
3949
- );
3950
- }
3951
-
3952
- export function updatePromptPromptsContentFromJSON(
3953
- jsonString: string,
3954
- ): SafeParseResult<UpdatePromptPromptsContent, SDKValidationError> {
3955
- return safeParse(
3956
- jsonString,
3957
- (x) => UpdatePromptPromptsContent$inboundSchema.parse(JSON.parse(x)),
3958
- `Failed to parse 'UpdatePromptPromptsContent' from JSON`,
3959
- );
3960
- }
3961
-
3962
- /** @internal */
3963
- export const UpdatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
3964
- typeof UpdatePromptPromptsResponseType
3965
- > = z.nativeEnum(UpdatePromptPromptsResponseType);
3966
-
3967
- /** @internal */
3968
- export const UpdatePromptPromptsResponseType$outboundSchema: z.ZodNativeEnum<
3969
- typeof UpdatePromptPromptsResponseType
3970
- > = UpdatePromptPromptsResponseType$inboundSchema;
3971
-
3972
- /**
3973
- * @internal
3974
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3975
- */
3976
- export namespace UpdatePromptPromptsResponseType$ {
3977
- /** @deprecated use `UpdatePromptPromptsResponseType$inboundSchema` instead. */
3978
- export const inboundSchema = UpdatePromptPromptsResponseType$inboundSchema;
3979
- /** @deprecated use `UpdatePromptPromptsResponseType$outboundSchema` instead. */
3980
- export const outboundSchema = UpdatePromptPromptsResponseType$outboundSchema;
3981
- }
3982
-
3983
- /** @internal */
3984
- export const UpdatePromptPromptsFunction$inboundSchema: z.ZodType<
3985
- UpdatePromptPromptsFunction,
3986
- z.ZodTypeDef,
3987
- unknown
3988
- > = z.object({
3989
- name: z.string(),
3990
- arguments: z.string(),
3991
- });
3992
-
3993
- /** @internal */
3994
- export type UpdatePromptPromptsFunction$Outbound = {
3995
- name: string;
3996
- arguments: string;
3997
- };
3998
-
3999
- /** @internal */
4000
- export const UpdatePromptPromptsFunction$outboundSchema: z.ZodType<
4001
- UpdatePromptPromptsFunction$Outbound,
4002
- z.ZodTypeDef,
4003
- UpdatePromptPromptsFunction
4004
- > = z.object({
4005
- name: z.string(),
4006
- arguments: z.string(),
4007
- });
4008
-
4009
- /**
4010
- * @internal
4011
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4012
- */
4013
- export namespace UpdatePromptPromptsFunction$ {
4014
- /** @deprecated use `UpdatePromptPromptsFunction$inboundSchema` instead. */
4015
- export const inboundSchema = UpdatePromptPromptsFunction$inboundSchema;
4016
- /** @deprecated use `UpdatePromptPromptsFunction$outboundSchema` instead. */
4017
- export const outboundSchema = UpdatePromptPromptsFunction$outboundSchema;
4018
- /** @deprecated use `UpdatePromptPromptsFunction$Outbound` instead. */
4019
- export type Outbound = UpdatePromptPromptsFunction$Outbound;
4020
- }
4021
-
4022
- export function updatePromptPromptsFunctionToJSON(
4023
- updatePromptPromptsFunction: UpdatePromptPromptsFunction,
4024
- ): string {
4025
- return JSON.stringify(
4026
- UpdatePromptPromptsFunction$outboundSchema.parse(
4027
- updatePromptPromptsFunction,
4028
- ),
4029
- );
4030
- }
4031
-
4032
- export function updatePromptPromptsFunctionFromJSON(
4033
- jsonString: string,
4034
- ): SafeParseResult<UpdatePromptPromptsFunction, SDKValidationError> {
4035
- return safeParse(
4036
- jsonString,
4037
- (x) => UpdatePromptPromptsFunction$inboundSchema.parse(JSON.parse(x)),
4038
- `Failed to parse 'UpdatePromptPromptsFunction' from JSON`,
4039
- );
4040
- }
4041
-
4042
- /** @internal */
4043
- export const UpdatePromptPromptsToolCalls$inboundSchema: z.ZodType<
4044
- UpdatePromptPromptsToolCalls,
4045
- z.ZodTypeDef,
4046
- unknown
4047
- > = z.object({
4048
- id: z.string().optional(),
4049
- index: z.number().optional(),
4050
- type: UpdatePromptPromptsResponseType$inboundSchema,
4051
- function: z.lazy(() => UpdatePromptPromptsFunction$inboundSchema),
4052
- });
4053
-
4054
- /** @internal */
4055
- export type UpdatePromptPromptsToolCalls$Outbound = {
4056
- id?: string | undefined;
4057
- index?: number | undefined;
4058
- type: string;
4059
- function: UpdatePromptPromptsFunction$Outbound;
4060
- };
4061
-
4062
- /** @internal */
4063
- export const UpdatePromptPromptsToolCalls$outboundSchema: z.ZodType<
4064
- UpdatePromptPromptsToolCalls$Outbound,
4065
- z.ZodTypeDef,
4066
- UpdatePromptPromptsToolCalls
4067
- > = z.object({
4068
- id: z.string().optional(),
4069
- index: z.number().optional(),
4070
- type: UpdatePromptPromptsResponseType$outboundSchema,
4071
- function: z.lazy(() => UpdatePromptPromptsFunction$outboundSchema),
4072
- });
4073
-
4074
- /**
4075
- * @internal
4076
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4077
- */
4078
- export namespace UpdatePromptPromptsToolCalls$ {
4079
- /** @deprecated use `UpdatePromptPromptsToolCalls$inboundSchema` instead. */
4080
- export const inboundSchema = UpdatePromptPromptsToolCalls$inboundSchema;
4081
- /** @deprecated use `UpdatePromptPromptsToolCalls$outboundSchema` instead. */
4082
- export const outboundSchema = UpdatePromptPromptsToolCalls$outboundSchema;
4083
- /** @deprecated use `UpdatePromptPromptsToolCalls$Outbound` instead. */
4084
- export type Outbound = UpdatePromptPromptsToolCalls$Outbound;
4085
- }
4086
-
4087
- export function updatePromptPromptsToolCallsToJSON(
4088
- updatePromptPromptsToolCalls: UpdatePromptPromptsToolCalls,
4089
- ): string {
4090
- return JSON.stringify(
4091
- UpdatePromptPromptsToolCalls$outboundSchema.parse(
4092
- updatePromptPromptsToolCalls,
4093
- ),
4094
- );
4095
- }
4096
-
4097
- export function updatePromptPromptsToolCallsFromJSON(
4098
- jsonString: string,
4099
- ): SafeParseResult<UpdatePromptPromptsToolCalls, SDKValidationError> {
4100
- return safeParse(
4101
- jsonString,
4102
- (x) => UpdatePromptPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
4103
- `Failed to parse 'UpdatePromptPromptsToolCalls' from JSON`,
4104
- );
4105
- }
4106
-
4107
- /** @internal */
4108
- export const UpdatePromptPromptsMessages$inboundSchema: z.ZodType<
4109
- UpdatePromptPromptsMessages,
4110
- z.ZodTypeDef,
4111
- unknown
4112
- > = z.object({
4113
- role: UpdatePromptPromptsRole$inboundSchema,
4114
- content: z.union([
4115
- z.string(),
4116
- z.array(z.union([
4117
- z.lazy(() => UpdatePrompt2Prompts1$inboundSchema),
4118
- z.lazy(() => UpdatePrompt2Prompts2$inboundSchema),
4119
- z.lazy(() => UpdatePrompt2Prompts3$inboundSchema),
4120
- ])),
4121
- ]),
4122
- tool_calls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$inboundSchema))
4123
- .optional(),
4124
- tool_call_id: z.string().optional(),
4125
- }).transform((v) => {
4126
- return remap$(v, {
4127
- "tool_calls": "toolCalls",
4128
- "tool_call_id": "toolCallId",
4129
- });
4130
- });
4131
-
4132
- /** @internal */
4133
- export type UpdatePromptPromptsMessages$Outbound = {
4134
- role: string;
4135
- content:
4136
- | string
4137
- | Array<
4138
- | UpdatePrompt2Prompts1$Outbound
4139
- | UpdatePrompt2Prompts2$Outbound
4140
- | UpdatePrompt2Prompts3$Outbound
4141
- >;
4142
- tool_calls?: Array<UpdatePromptPromptsToolCalls$Outbound> | undefined;
4143
- tool_call_id?: string | undefined;
4144
- };
4145
-
4146
- /** @internal */
4147
- export const UpdatePromptPromptsMessages$outboundSchema: z.ZodType<
4148
- UpdatePromptPromptsMessages$Outbound,
4149
- z.ZodTypeDef,
4150
- UpdatePromptPromptsMessages
4151
- > = z.object({
4152
- role: UpdatePromptPromptsRole$outboundSchema,
4153
- content: z.union([
4154
- z.string(),
4155
- z.array(z.union([
4156
- z.lazy(() => UpdatePrompt2Prompts1$outboundSchema),
4157
- z.lazy(() => UpdatePrompt2Prompts2$outboundSchema),
4158
- z.lazy(() => UpdatePrompt2Prompts3$outboundSchema),
4159
- ])),
4160
- ]),
4161
- toolCalls: z.array(z.lazy(() => UpdatePromptPromptsToolCalls$outboundSchema))
4162
- .optional(),
4163
- toolCallId: z.string().optional(),
4164
- }).transform((v) => {
4165
- return remap$(v, {
4166
- toolCalls: "tool_calls",
4167
- toolCallId: "tool_call_id",
4168
- });
4169
- });
4170
-
4171
- /**
4172
- * @internal
4173
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4174
- */
4175
- export namespace UpdatePromptPromptsMessages$ {
4176
- /** @deprecated use `UpdatePromptPromptsMessages$inboundSchema` instead. */
4177
- export const inboundSchema = UpdatePromptPromptsMessages$inboundSchema;
4178
- /** @deprecated use `UpdatePromptPromptsMessages$outboundSchema` instead. */
4179
- export const outboundSchema = UpdatePromptPromptsMessages$outboundSchema;
4180
- /** @deprecated use `UpdatePromptPromptsMessages$Outbound` instead. */
4181
- export type Outbound = UpdatePromptPromptsMessages$Outbound;
4182
- }
4183
-
4184
- export function updatePromptPromptsMessagesToJSON(
4185
- updatePromptPromptsMessages: UpdatePromptPromptsMessages,
4186
- ): string {
4187
- return JSON.stringify(
4188
- UpdatePromptPromptsMessages$outboundSchema.parse(
4189
- updatePromptPromptsMessages,
4190
- ),
4191
- );
4192
- }
4193
-
4194
- export function updatePromptPromptsMessagesFromJSON(
4195
- jsonString: string,
4196
- ): SafeParseResult<UpdatePromptPromptsMessages, SDKValidationError> {
4197
- return safeParse(
4198
- jsonString,
4199
- (x) => UpdatePromptPromptsMessages$inboundSchema.parse(JSON.parse(x)),
4200
- `Failed to parse 'UpdatePromptPromptsMessages' from JSON`,
4201
- );
4202
- }
4203
-
4204
- /** @internal */
4205
- export const UpdatePromptPromptsPromptConfig$inboundSchema: z.ZodType<
4206
- UpdatePromptPromptsPromptConfig,
4207
- z.ZodTypeDef,
4208
- unknown
4209
- > = z.object({
4210
- stream: z.boolean().optional(),
4211
- model: z.string().optional(),
4212
- model_db_id: z.nullable(z.string()).optional(),
4213
- model_type: z.nullable(UpdatePromptModelType$inboundSchema).optional(),
4214
- model_parameters: z.lazy(() =>
4215
- UpdatePromptPromptsModelParameters$inboundSchema
4216
- ).optional(),
4217
- provider: UpdatePromptPromptsProvider$inboundSchema.optional(),
4218
- integration_id: z.nullable(z.string()).optional(),
4219
- version: z.string().optional(),
4220
- messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$inboundSchema)),
4221
- }).transform((v) => {
4222
- return remap$(v, {
4223
- "model_db_id": "modelDbId",
4224
- "model_type": "modelType",
4225
- "model_parameters": "modelParameters",
4226
- "integration_id": "integrationId",
4227
- });
4228
- });
4229
-
4230
- /** @internal */
4231
- export type UpdatePromptPromptsPromptConfig$Outbound = {
4232
- stream?: boolean | undefined;
4233
- model?: string | undefined;
4234
- model_db_id?: string | null | undefined;
4235
- model_type?: string | null | undefined;
4236
- model_parameters?: UpdatePromptPromptsModelParameters$Outbound | undefined;
4237
- provider?: string | undefined;
4238
- integration_id?: string | null | undefined;
4239
- version?: string | undefined;
4240
- messages: Array<UpdatePromptPromptsMessages$Outbound>;
4241
- };
4242
-
4243
- /** @internal */
4244
- export const UpdatePromptPromptsPromptConfig$outboundSchema: z.ZodType<
4245
- UpdatePromptPromptsPromptConfig$Outbound,
4246
- z.ZodTypeDef,
4247
- UpdatePromptPromptsPromptConfig
4248
- > = z.object({
4249
- stream: z.boolean().optional(),
4250
- model: z.string().optional(),
4251
- modelDbId: z.nullable(z.string()).optional(),
4252
- modelType: z.nullable(UpdatePromptModelType$outboundSchema).optional(),
4253
- modelParameters: z.lazy(() =>
4254
- UpdatePromptPromptsModelParameters$outboundSchema
4255
- ).optional(),
4256
- provider: UpdatePromptPromptsProvider$outboundSchema.optional(),
4257
- integrationId: z.nullable(z.string()).optional(),
4258
- version: z.string().optional(),
4259
- messages: z.array(z.lazy(() => UpdatePromptPromptsMessages$outboundSchema)),
4260
- }).transform((v) => {
4261
- return remap$(v, {
4262
- modelDbId: "model_db_id",
4263
- modelType: "model_type",
4264
- modelParameters: "model_parameters",
4265
- integrationId: "integration_id",
4266
- });
4267
- });
4268
-
4269
- /**
4270
- * @internal
4271
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4272
- */
4273
- export namespace UpdatePromptPromptsPromptConfig$ {
4274
- /** @deprecated use `UpdatePromptPromptsPromptConfig$inboundSchema` instead. */
4275
- export const inboundSchema = UpdatePromptPromptsPromptConfig$inboundSchema;
4276
- /** @deprecated use `UpdatePromptPromptsPromptConfig$outboundSchema` instead. */
4277
- export const outboundSchema = UpdatePromptPromptsPromptConfig$outboundSchema;
4278
- /** @deprecated use `UpdatePromptPromptsPromptConfig$Outbound` instead. */
4279
- export type Outbound = UpdatePromptPromptsPromptConfig$Outbound;
4280
- }
4281
-
4282
- export function updatePromptPromptsPromptConfigToJSON(
4283
- updatePromptPromptsPromptConfig: UpdatePromptPromptsPromptConfig,
4284
- ): string {
4285
- return JSON.stringify(
4286
- UpdatePromptPromptsPromptConfig$outboundSchema.parse(
4287
- updatePromptPromptsPromptConfig,
4288
- ),
4289
- );
4290
- }
4291
-
4292
- export function updatePromptPromptsPromptConfigFromJSON(
4293
- jsonString: string,
4294
- ): SafeParseResult<UpdatePromptPromptsPromptConfig, SDKValidationError> {
4295
- return safeParse(
4296
- jsonString,
4297
- (x) => UpdatePromptPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
4298
- `Failed to parse 'UpdatePromptPromptsPromptConfig' from JSON`,
4299
- );
4300
- }
4301
-
4302
- /** @internal */
4303
- export const UpdatePromptPromptsUseCases$inboundSchema: z.ZodNativeEnum<
4304
- typeof UpdatePromptPromptsUseCases
4305
- > = z.nativeEnum(UpdatePromptPromptsUseCases);
4306
-
4307
- /** @internal */
4308
- export const UpdatePromptPromptsUseCases$outboundSchema: z.ZodNativeEnum<
4309
- typeof UpdatePromptPromptsUseCases
4310
- > = UpdatePromptPromptsUseCases$inboundSchema;
4311
-
4312
- /**
4313
- * @internal
4314
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4315
- */
4316
- export namespace UpdatePromptPromptsUseCases$ {
4317
- /** @deprecated use `UpdatePromptPromptsUseCases$inboundSchema` instead. */
4318
- export const inboundSchema = UpdatePromptPromptsUseCases$inboundSchema;
4319
- /** @deprecated use `UpdatePromptPromptsUseCases$outboundSchema` instead. */
4320
- export const outboundSchema = UpdatePromptPromptsUseCases$outboundSchema;
4321
- }
4322
-
4323
- /** @internal */
4324
- export const UpdatePromptPromptsLanguage$inboundSchema: z.ZodNativeEnum<
4325
- typeof UpdatePromptPromptsLanguage
4326
- > = z.nativeEnum(UpdatePromptPromptsLanguage);
4327
-
4328
- /** @internal */
4329
- export const UpdatePromptPromptsLanguage$outboundSchema: z.ZodNativeEnum<
4330
- typeof UpdatePromptPromptsLanguage
4331
- > = UpdatePromptPromptsLanguage$inboundSchema;
4332
-
4333
- /**
4334
- * @internal
4335
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4336
- */
4337
- export namespace UpdatePromptPromptsLanguage$ {
4338
- /** @deprecated use `UpdatePromptPromptsLanguage$inboundSchema` instead. */
4339
- export const inboundSchema = UpdatePromptPromptsLanguage$inboundSchema;
4340
- /** @deprecated use `UpdatePromptPromptsLanguage$outboundSchema` instead. */
4341
- export const outboundSchema = UpdatePromptPromptsLanguage$outboundSchema;
4342
- }
4343
-
4344
- /** @internal */
4345
- export const UpdatePromptPromptsMetadata$inboundSchema: z.ZodType<
4346
- UpdatePromptPromptsMetadata,
4347
- z.ZodTypeDef,
4348
- unknown
4349
- > = z.object({
4350
- use_cases: z.array(UpdatePromptPromptsUseCases$inboundSchema).optional(),
4351
- language: z.nullable(UpdatePromptPromptsLanguage$inboundSchema).optional(),
4352
- }).transform((v) => {
4353
- return remap$(v, {
4354
- "use_cases": "useCases",
4355
- });
4356
- });
4357
-
4358
- /** @internal */
4359
- export type UpdatePromptPromptsMetadata$Outbound = {
4360
- use_cases?: Array<string> | undefined;
4361
- language?: string | null | undefined;
4362
- };
4363
-
4364
- /** @internal */
4365
- export const UpdatePromptPromptsMetadata$outboundSchema: z.ZodType<
4366
- UpdatePromptPromptsMetadata$Outbound,
4367
- z.ZodTypeDef,
4368
- UpdatePromptPromptsMetadata
4369
- > = z.object({
4370
- useCases: z.array(UpdatePromptPromptsUseCases$outboundSchema).optional(),
4371
- language: z.nullable(UpdatePromptPromptsLanguage$outboundSchema).optional(),
4372
- }).transform((v) => {
4373
- return remap$(v, {
4374
- useCases: "use_cases",
4375
- });
4376
- });
4377
-
4378
- /**
4379
- * @internal
4380
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4381
- */
4382
- export namespace UpdatePromptPromptsMetadata$ {
4383
- /** @deprecated use `UpdatePromptPromptsMetadata$inboundSchema` instead. */
4384
- export const inboundSchema = UpdatePromptPromptsMetadata$inboundSchema;
4385
- /** @deprecated use `UpdatePromptPromptsMetadata$outboundSchema` instead. */
4386
- export const outboundSchema = UpdatePromptPromptsMetadata$outboundSchema;
4387
- /** @deprecated use `UpdatePromptPromptsMetadata$Outbound` instead. */
4388
- export type Outbound = UpdatePromptPromptsMetadata$Outbound;
4389
- }
4390
-
4391
- export function updatePromptPromptsMetadataToJSON(
4392
- updatePromptPromptsMetadata: UpdatePromptPromptsMetadata,
4393
- ): string {
4394
- return JSON.stringify(
4395
- UpdatePromptPromptsMetadata$outboundSchema.parse(
4396
- updatePromptPromptsMetadata,
4397
- ),
4398
- );
4399
- }
4400
-
4401
- export function updatePromptPromptsMetadataFromJSON(
4402
- jsonString: string,
4403
- ): SafeParseResult<UpdatePromptPromptsMetadata, SDKValidationError> {
4404
- return safeParse(
4405
- jsonString,
4406
- (x) => UpdatePromptPromptsMetadata$inboundSchema.parse(JSON.parse(x)),
4407
- `Failed to parse 'UpdatePromptPromptsMetadata' from JSON`,
4408
- );
4409
- }
4410
-
4411
- /** @internal */
4412
- export const UpdatePromptResponseBody$inboundSchema: z.ZodType<
4413
- UpdatePromptResponseBody,
4414
- z.ZodTypeDef,
4415
- unknown
4416
- > = z.object({
4417
- _id: z.string(),
4418
- type: UpdatePromptPromptsType$inboundSchema,
4419
- owner: z.string(),
4420
- domain_id: z.string(),
4421
- created: z.string(),
4422
- updated: z.string(),
4423
- created_by_id: z.nullable(z.string()).optional(),
4424
- updated_by_id: z.nullable(z.string()).optional(),
4425
- display_name: z.string(),
4426
- description: z.nullable(z.string()).optional(),
4427
- prompt_config: z.lazy(() => UpdatePromptPromptsPromptConfig$inboundSchema),
4428
- metadata: z.lazy(() => UpdatePromptPromptsMetadata$inboundSchema).optional(),
4429
- }).transform((v) => {
4430
- return remap$(v, {
4431
- "_id": "id",
4432
- "domain_id": "domainId",
4433
- "created_by_id": "createdById",
4434
- "updated_by_id": "updatedById",
4435
- "display_name": "displayName",
4436
- "prompt_config": "promptConfig",
4437
- });
4438
- });
4439
-
4440
- /** @internal */
4441
- export type UpdatePromptResponseBody$Outbound = {
4442
- _id: string;
4443
- type: string;
4444
- owner: string;
4445
- domain_id: string;
4446
- created: string;
4447
- updated: string;
4448
- created_by_id?: string | null | undefined;
4449
- updated_by_id?: string | null | undefined;
4450
- display_name: string;
4451
- description?: string | null | undefined;
4452
- prompt_config: UpdatePromptPromptsPromptConfig$Outbound;
4453
- metadata?: UpdatePromptPromptsMetadata$Outbound | undefined;
4454
- };
4455
-
4456
- /** @internal */
4457
- export const UpdatePromptResponseBody$outboundSchema: z.ZodType<
4458
- UpdatePromptResponseBody$Outbound,
4459
- z.ZodTypeDef,
4460
- UpdatePromptResponseBody
4461
- > = z.object({
4462
- id: z.string(),
4463
- type: UpdatePromptPromptsType$outboundSchema,
4464
- owner: z.string(),
4465
- domainId: z.string(),
4466
- created: z.string(),
4467
- updated: z.string(),
4468
- createdById: z.nullable(z.string()).optional(),
4469
- updatedById: z.nullable(z.string()).optional(),
4470
- displayName: z.string(),
4471
- description: z.nullable(z.string()).optional(),
4472
- promptConfig: z.lazy(() => UpdatePromptPromptsPromptConfig$outboundSchema),
4473
- metadata: z.lazy(() => UpdatePromptPromptsMetadata$outboundSchema).optional(),
4474
- }).transform((v) => {
4475
- return remap$(v, {
4476
- id: "_id",
4477
- domainId: "domain_id",
4478
- createdById: "created_by_id",
4479
- updatedById: "updated_by_id",
4480
- displayName: "display_name",
4481
- promptConfig: "prompt_config",
4482
- });
4483
- });
4484
-
4485
- /**
4486
- * @internal
4487
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4488
- */
4489
- export namespace UpdatePromptResponseBody$ {
4490
- /** @deprecated use `UpdatePromptResponseBody$inboundSchema` instead. */
4491
- export const inboundSchema = UpdatePromptResponseBody$inboundSchema;
4492
- /** @deprecated use `UpdatePromptResponseBody$outboundSchema` instead. */
4493
- export const outboundSchema = UpdatePromptResponseBody$outboundSchema;
4494
- /** @deprecated use `UpdatePromptResponseBody$Outbound` instead. */
4495
- export type Outbound = UpdatePromptResponseBody$Outbound;
4496
- }
4497
-
4498
- export function updatePromptResponseBodyToJSON(
4499
- updatePromptResponseBody: UpdatePromptResponseBody,
4500
- ): string {
4501
- return JSON.stringify(
4502
- UpdatePromptResponseBody$outboundSchema.parse(updatePromptResponseBody),
4503
- );
4504
- }
4505
-
4506
- export function updatePromptResponseBodyFromJSON(
4507
- jsonString: string,
4508
- ): SafeParseResult<UpdatePromptResponseBody, SDKValidationError> {
4509
- return safeParse(
4510
- jsonString,
4511
- (x) => UpdatePromptResponseBody$inboundSchema.parse(JSON.parse(x)),
4512
- `Failed to parse 'UpdatePromptResponseBody' from JSON`,
4513
- );
4514
- }