@orq-ai/node 3.9.4 → 3.10.0-rc.2

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