@orq-ai/node 3.3.1 → 3.4.0-rc.0

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