@orq-ai/node 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/README.md +34 -34
  2. package/docs/sdks/deployments/README.md +9 -86
  3. package/docs/sdks/files/README.md +174 -2
  4. package/docs/sdks/orq/README.md +1 -1
  5. package/docs/sdks/prompt/README.md +6 -0
  6. package/docs/sdks/prompts/README.md +128 -135
  7. package/docs/sdks/snippets/README.md +84 -0
  8. package/docs/sdks/templates/README.md +80 -0
  9. package/funcs/{deploymentsList.d.ts → deploymentsAll.d.ts} +2 -2
  10. package/funcs/deploymentsAll.d.ts.map +1 -0
  11. package/funcs/{deploymentsList.js → deploymentsAll.js} +4 -5
  12. package/funcs/deploymentsAll.js.map +1 -0
  13. package/funcs/deploymentsInvoke.d.ts +7 -1
  14. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  15. package/funcs/deploymentsInvoke.js +11 -10
  16. package/funcs/deploymentsInvoke.js.map +1 -1
  17. package/funcs/filesBulkUpload.d.ts +15 -0
  18. package/funcs/filesBulkUpload.d.ts.map +1 -0
  19. package/funcs/{promptsList.js → filesBulkUpload.js} +15 -18
  20. package/funcs/filesBulkUpload.js.map +1 -0
  21. package/funcs/{promptSnippetsDelete.d.ts → filesUpdate.d.ts} +3 -3
  22. package/funcs/filesUpdate.d.ts.map +1 -0
  23. package/funcs/{promptSnippetsGetByKey.js → filesUpdate.js} +13 -12
  24. package/funcs/filesUpdate.js.map +1 -0
  25. package/funcs/{promptSnippetsList.d.ts → promptSnippetsFindOne.d.ts} +3 -3
  26. package/funcs/promptSnippetsFindOne.d.ts.map +1 -0
  27. package/funcs/{promptSnippetsGet.js → promptSnippetsFindOne.js} +6 -6
  28. package/funcs/promptSnippetsFindOne.js.map +1 -0
  29. package/funcs/{promptSnippetsCreate.d.ts → promptTemplatesGetAll.d.ts} +3 -3
  30. package/funcs/promptTemplatesGetAll.d.ts.map +1 -0
  31. package/funcs/{promptSnippetsList.js → promptTemplatesGetAll.js} +13 -13
  32. package/funcs/promptTemplatesGetAll.js.map +1 -0
  33. package/funcs/promptsCreate.d.ts +1 -1
  34. package/funcs/promptsCreate.js +2 -2
  35. package/funcs/promptsCreate.js.map +1 -1
  36. package/funcs/{promptsRetrieve.d.ts → promptsCreateVersion.d.ts} +3 -6
  37. package/funcs/{promptSnippetsDelete.d.ts.map → promptsCreateVersion.d.ts.map} +1 -1
  38. package/funcs/promptsCreateVersion.js +110 -0
  39. package/funcs/promptsCreateVersion.js.map +1 -0
  40. package/funcs/promptsDelete.js +1 -1
  41. package/funcs/promptsDelete.js.map +1 -1
  42. package/funcs/{promptSnippetsGet.d.ts → promptsDuplicate.d.ts} +3 -3
  43. package/funcs/promptsDuplicate.d.ts.map +1 -0
  44. package/funcs/{promptSnippetsDelete.js → promptsDuplicate.js} +8 -8
  45. package/funcs/promptsDuplicate.js.map +1 -0
  46. package/funcs/promptsGetAll.d.ts +12 -0
  47. package/funcs/promptsGetAll.d.ts.map +1 -0
  48. package/funcs/{promptSnippetsCreate.js → promptsGetAll.js} +8 -8
  49. package/funcs/promptsGetAll.js.map +1 -0
  50. package/funcs/promptsGetOne.d.ts +12 -0
  51. package/funcs/promptsGetOne.d.ts.map +1 -0
  52. package/funcs/{promptsRetrieve.js → promptsGetOne.js} +8 -10
  53. package/funcs/promptsGetOne.js.map +1 -0
  54. package/funcs/promptsUpdate.js +1 -1
  55. package/funcs/promptsUpdate.js.map +1 -1
  56. package/jsr.json +1 -1
  57. package/lib/config.d.ts +2 -10
  58. package/lib/config.d.ts.map +1 -1
  59. package/lib/config.js +2 -2
  60. package/lib/config.js.map +1 -1
  61. package/lib/env.d.ts +0 -13
  62. package/lib/env.d.ts.map +1 -1
  63. package/lib/env.js +0 -17
  64. package/lib/env.js.map +1 -1
  65. package/lib/sdks.js +1 -1
  66. package/lib/sdks.js.map +1 -1
  67. package/models/components/deployments.d.ts +5 -0
  68. package/models/components/deployments.d.ts.map +1 -1
  69. package/models/components/deployments.js +2 -0
  70. package/models/components/deployments.js.map +1 -1
  71. package/models/errors/index.d.ts +0 -2
  72. package/models/errors/index.d.ts.map +1 -1
  73. package/models/errors/index.js +0 -2
  74. package/models/errors/index.js.map +1 -1
  75. package/models/operations/bulkfileupload.d.ts +173 -0
  76. package/models/operations/bulkfileupload.d.ts.map +1 -0
  77. package/models/operations/bulkfileupload.js +210 -0
  78. package/models/operations/bulkfileupload.js.map +1 -0
  79. package/models/operations/createcontact.js +2 -2
  80. package/models/operations/createprompt.d.ts +381 -702
  81. package/models/operations/createprompt.d.ts.map +1 -1
  82. package/models/operations/createprompt.js +481 -641
  83. package/models/operations/createprompt.js.map +1 -1
  84. package/models/operations/createpromptversion.d.ts +2003 -0
  85. package/models/operations/createpromptversion.d.ts.map +1 -0
  86. package/models/operations/createpromptversion.js +1852 -0
  87. package/models/operations/createpromptversion.js.map +1 -0
  88. package/models/operations/deleteprompt.d.ts +1 -1
  89. package/models/operations/deploymentgetconfig.d.ts +0 -39
  90. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  91. package/models/operations/deploymentgetconfig.js +4 -29
  92. package/models/operations/deploymentgetconfig.js.map +1 -1
  93. package/models/operations/deploymentinvoke.d.ts +683 -23
  94. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  95. package/models/operations/deploymentinvoke.js +614 -23
  96. package/models/operations/deploymentinvoke.js.map +1 -1
  97. package/models/operations/deployments.d.ts +8 -54
  98. package/models/operations/deployments.d.ts.map +1 -1
  99. package/models/operations/deployments.js +13 -44
  100. package/models/operations/deployments.js.map +1 -1
  101. package/models/operations/duplicateprompt.d.ts +32 -0
  102. package/models/operations/duplicateprompt.d.ts.map +1 -0
  103. package/models/operations/{deletepromptsnippet.js → duplicateprompt.js} +17 -17
  104. package/models/operations/duplicateprompt.js.map +1 -0
  105. package/models/operations/fileget.js +2 -2
  106. package/models/operations/filelist.d.ts +5 -1
  107. package/models/operations/filelist.d.ts.map +1 -1
  108. package/models/operations/filelist.js +12 -4
  109. package/models/operations/filelist.js.map +1 -1
  110. package/models/operations/fileupdate.d.ts +143 -0
  111. package/models/operations/fileupdate.d.ts.map +1 -0
  112. package/models/operations/fileupdate.js +193 -0
  113. package/models/operations/fileupdate.js.map +1 -0
  114. package/models/operations/fileupload.js +2 -2
  115. package/models/operations/findonepromptsnippet.d.ts +4768 -938
  116. package/models/operations/findonepromptsnippet.d.ts.map +1 -1
  117. package/models/operations/findonepromptsnippet.js +4751 -984
  118. package/models/operations/findonepromptsnippet.js.map +1 -1
  119. package/models/operations/getallprompts.d.ts +9926 -546
  120. package/models/operations/getallprompts.d.ts.map +1 -1
  121. package/models/operations/getallprompts.js +8805 -557
  122. package/models/operations/getallprompts.js.map +1 -1
  123. package/models/operations/getallprompttemplates.d.ts +6607 -0
  124. package/models/operations/getallprompttemplates.d.ts.map +1 -0
  125. package/models/operations/getallprompttemplates.js +6225 -0
  126. package/models/operations/getallprompttemplates.js.map +1 -0
  127. package/models/operations/getoneprompt.d.ts +1 -1203
  128. package/models/operations/getoneprompt.d.ts.map +1 -1
  129. package/models/operations/getoneprompt.js +1 -1011
  130. package/models/operations/getoneprompt.js.map +1 -1
  131. package/models/operations/index.d.ts +5 -8
  132. package/models/operations/index.d.ts.map +1 -1
  133. package/models/operations/index.js +5 -8
  134. package/models/operations/index.js.map +1 -1
  135. package/models/operations/updateprompt.d.ts +5979 -1121
  136. package/models/operations/updateprompt.d.ts.map +1 -1
  137. package/models/operations/updateprompt.js +5729 -1119
  138. package/models/operations/updateprompt.js.map +1 -1
  139. package/package.json +1 -1
  140. package/sdk/deployments.d.ts +6 -10
  141. package/sdk/deployments.d.ts.map +1 -1
  142. package/sdk/deployments.js +6 -14
  143. package/sdk/deployments.js.map +1 -1
  144. package/sdk/files.d.ts +11 -0
  145. package/sdk/files.d.ts.map +1 -1
  146. package/sdk/files.js +17 -0
  147. package/sdk/files.js.map +1 -1
  148. package/sdk/prompt.d.ts +10 -0
  149. package/sdk/prompt.d.ts.map +1 -0
  150. package/sdk/prompt.js +19 -0
  151. package/sdk/prompt.js.map +1 -0
  152. package/sdk/prompts.d.ts +14 -26
  153. package/sdk/prompts.d.ts.map +1 -1
  154. package/sdk/prompts.js +25 -37
  155. package/sdk/prompts.js.map +1 -1
  156. package/sdk/sdk.d.ts +3 -3
  157. package/sdk/sdk.d.ts.map +1 -1
  158. package/sdk/sdk.js +3 -3
  159. package/sdk/sdk.js.map +1 -1
  160. package/sdk/snippets.d.ts +9 -0
  161. package/sdk/snippets.d.ts.map +1 -0
  162. package/sdk/snippets.js +19 -0
  163. package/sdk/snippets.js.map +1 -0
  164. package/sdk/templates.d.ts +9 -0
  165. package/sdk/templates.d.ts.map +1 -0
  166. package/sdk/templates.js +19 -0
  167. package/sdk/templates.js.map +1 -0
  168. package/src/funcs/{deploymentsList.ts → deploymentsAll.ts} +2 -3
  169. package/src/funcs/deploymentsInvoke.ts +16 -21
  170. package/src/funcs/filesBulkUpload.ts +129 -0
  171. package/src/funcs/{promptSnippetsGetByKey.ts → filesUpdate.ts} +16 -18
  172. package/src/funcs/{promptSnippetsGet.ts → promptSnippetsFindOne.ts} +4 -4
  173. package/src/funcs/{promptSnippetsList.ts → promptTemplatesGetAll.ts} +16 -16
  174. package/src/funcs/promptsCreate.ts +2 -2
  175. package/src/funcs/promptsCreateVersion.ts +131 -0
  176. package/src/funcs/promptsDelete.ts +1 -1
  177. package/src/funcs/{promptSnippetsDelete.ts → promptsDuplicate.ts} +7 -8
  178. package/src/funcs/{promptSnippetsCreate.ts → promptsGetAll.ts} +9 -9
  179. package/src/funcs/{promptsRetrieve.ts → promptsGetOne.ts} +8 -10
  180. package/src/funcs/promptsUpdate.ts +1 -1
  181. package/src/lib/config.ts +2 -12
  182. package/src/lib/env.ts +0 -32
  183. package/src/lib/sdks.ts +2 -2
  184. package/src/models/components/deployments.ts +7 -0
  185. package/src/models/errors/index.ts +0 -2
  186. package/src/models/operations/bulkfileupload.ts +315 -0
  187. package/src/models/operations/createcontact.ts +2 -2
  188. package/src/models/operations/createprompt.ts +690 -1048
  189. package/src/models/operations/createpromptversion.ts +3703 -0
  190. package/src/models/operations/deleteprompt.ts +1 -1
  191. package/src/models/operations/deploymentgetconfig.ts +0 -44
  192. package/src/models/operations/deploymentinvoke.ts +1415 -174
  193. package/src/models/operations/deployments.ts +18 -68
  194. package/src/models/operations/duplicateprompt.ts +69 -0
  195. package/src/models/operations/fileget.ts +2 -2
  196. package/src/models/operations/filelist.ts +17 -5
  197. package/src/models/operations/fileupdate.ts +298 -0
  198. package/src/models/operations/fileupload.ts +2 -2
  199. package/src/models/operations/findonepromptsnippet.ts +11104 -1818
  200. package/src/models/operations/getallprompts.ts +17860 -1336
  201. package/src/models/operations/getallprompttemplates.ts +13690 -0
  202. package/src/models/operations/getoneprompt.ts +1 -1914
  203. package/src/models/operations/index.ts +5 -8
  204. package/src/models/operations/updateprompt.ts +12561 -2071
  205. package/src/sdk/deployments.ts +11 -25
  206. package/src/sdk/files.ts +33 -0
  207. package/src/sdk/prompt.ts +19 -0
  208. package/src/sdk/prompts.ts +39 -51
  209. package/src/sdk/sdk.ts +4 -4
  210. package/src/sdk/snippets.ts +24 -0
  211. package/src/sdk/templates.ts +24 -0
  212. package/docs/sdks/promptsnippets/README.md +0 -488
  213. package/funcs/deploymentsList.d.ts.map +0 -1
  214. package/funcs/deploymentsList.js.map +0 -1
  215. package/funcs/deploymentsStream.d.ts +0 -16
  216. package/funcs/deploymentsStream.d.ts.map +0 -1
  217. package/funcs/deploymentsStream.js +0 -125
  218. package/funcs/deploymentsStream.js.map +0 -1
  219. package/funcs/promptSnippetsCreate.d.ts.map +0 -1
  220. package/funcs/promptSnippetsCreate.js.map +0 -1
  221. package/funcs/promptSnippetsDelete.js.map +0 -1
  222. package/funcs/promptSnippetsGet.d.ts.map +0 -1
  223. package/funcs/promptSnippetsGet.js.map +0 -1
  224. package/funcs/promptSnippetsGetByKey.d.ts +0 -12
  225. package/funcs/promptSnippetsGetByKey.d.ts.map +0 -1
  226. package/funcs/promptSnippetsGetByKey.js.map +0 -1
  227. package/funcs/promptSnippetsList.d.ts.map +0 -1
  228. package/funcs/promptSnippetsList.js.map +0 -1
  229. package/funcs/promptSnippetsUpdate.d.ts +0 -13
  230. package/funcs/promptSnippetsUpdate.d.ts.map +0 -1
  231. package/funcs/promptSnippetsUpdate.js +0 -114
  232. package/funcs/promptSnippetsUpdate.js.map +0 -1
  233. package/funcs/promptsGetVersion.d.ts +0 -16
  234. package/funcs/promptsGetVersion.d.ts.map +0 -1
  235. package/funcs/promptsGetVersion.js +0 -120
  236. package/funcs/promptsGetVersion.js.map +0 -1
  237. package/funcs/promptsList.d.ts +0 -15
  238. package/funcs/promptsList.d.ts.map +0 -1
  239. package/funcs/promptsList.js.map +0 -1
  240. package/funcs/promptsListVersions.d.ts +0 -15
  241. package/funcs/promptsListVersions.d.ts.map +0 -1
  242. package/funcs/promptsListVersions.js +0 -118
  243. package/funcs/promptsListVersions.js.map +0 -1
  244. package/funcs/promptsRetrieve.d.ts.map +0 -1
  245. package/funcs/promptsRetrieve.js.map +0 -1
  246. package/models/errors/getpromptversion.d.ts +0 -36
  247. package/models/errors/getpromptversion.d.ts.map +0 -1
  248. package/models/errors/getpromptversion.js +0 -79
  249. package/models/errors/getpromptversion.js.map +0 -1
  250. package/models/errors/updatepromptsnippet.d.ts +0 -36
  251. package/models/errors/updatepromptsnippet.d.ts.map +0 -1
  252. package/models/errors/updatepromptsnippet.js +0 -79
  253. package/models/errors/updatepromptsnippet.js.map +0 -1
  254. package/models/operations/createpromptsnippet.d.ts +0 -3567
  255. package/models/operations/createpromptsnippet.d.ts.map +0 -1
  256. package/models/operations/createpromptsnippet.js +0 -3056
  257. package/models/operations/createpromptsnippet.js.map +0 -1
  258. package/models/operations/deletepromptsnippet.d.ts +0 -32
  259. package/models/operations/deletepromptsnippet.d.ts.map +0 -1
  260. package/models/operations/deletepromptsnippet.js.map +0 -1
  261. package/models/operations/deploymentstream.d.ts +0 -1622
  262. package/models/operations/deploymentstream.d.ts.map +0 -1
  263. package/models/operations/deploymentstream.js +0 -1571
  264. package/models/operations/deploymentstream.js.map +0 -1
  265. package/models/operations/findonebykeypromptsnippet.d.ts +0 -2448
  266. package/models/operations/findonebykeypromptsnippet.d.ts.map +0 -1
  267. package/models/operations/findonebykeypromptsnippet.js +0 -2133
  268. package/models/operations/findonebykeypromptsnippet.js.map +0 -1
  269. package/models/operations/getallpromptsnippets.d.ts +0 -2512
  270. package/models/operations/getallpromptsnippets.d.ts.map +0 -1
  271. package/models/operations/getallpromptsnippets.js +0 -2195
  272. package/models/operations/getallpromptsnippets.js.map +0 -1
  273. package/models/operations/getpromptversion.d.ts +0 -1228
  274. package/models/operations/getpromptversion.d.ts.map +0 -1
  275. package/models/operations/getpromptversion.js +0 -1080
  276. package/models/operations/getpromptversion.js.map +0 -1
  277. package/models/operations/listpromptversions.d.ts +0 -1286
  278. package/models/operations/listpromptversions.d.ts.map +0 -1
  279. package/models/operations/listpromptversions.js +0 -1142
  280. package/models/operations/listpromptversions.js.map +0 -1
  281. package/models/operations/updatepromptsnippet.d.ts +0 -3595
  282. package/models/operations/updatepromptsnippet.d.ts.map +0 -1
  283. package/models/operations/updatepromptsnippet.js +0 -3116
  284. package/models/operations/updatepromptsnippet.js.map +0 -1
  285. package/sdk/promptsnippets.d.ts +0 -29
  286. package/sdk/promptsnippets.d.ts.map +0 -1
  287. package/sdk/promptsnippets.js +0 -54
  288. package/sdk/promptsnippets.js.map +0 -1
  289. package/src/funcs/deploymentsStream.ts +0 -150
  290. package/src/funcs/promptSnippetsUpdate.ts +0 -139
  291. package/src/funcs/promptsGetVersion.ts +0 -146
  292. package/src/funcs/promptsList.ts +0 -133
  293. package/src/funcs/promptsListVersions.ts +0 -139
  294. package/src/models/errors/getpromptversion.ts +0 -71
  295. package/src/models/errors/updatepromptsnippet.ts +0 -71
  296. package/src/models/operations/createpromptsnippet.ts +0 -6239
  297. package/src/models/operations/deletepromptsnippet.ts +0 -69
  298. package/src/models/operations/deploymentstream.ts +0 -3062
  299. package/src/models/operations/findonebykeypromptsnippet.ts +0 -4483
  300. package/src/models/operations/getallpromptsnippets.ts +0 -4472
  301. package/src/models/operations/getpromptversion.ts +0 -2012
  302. package/src/models/operations/listpromptversions.ts +0 -2146
  303. package/src/models/operations/updatepromptsnippet.ts +0 -6544
  304. package/src/sdk/promptsnippets.ts +0 -99
@@ -1,408 +1,12 @@
1
1
  import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../../types/fp.js";
4
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
4
  export type GetOnePromptRequest = {
6
5
  /**
7
- * Unique identifier of the prompt
6
+ * Prompt ID
8
7
  */
9
8
  id: string;
10
9
  };
11
- export declare const GetOnePromptType: {
12
- readonly Prompt: "prompt";
13
- };
14
- export type GetOnePromptType = ClosedEnum<typeof GetOnePromptType>;
15
- /**
16
- * The type of the model
17
- */
18
- export declare const GetOnePromptModelType: {
19
- readonly Chat: "chat";
20
- readonly Completion: "completion";
21
- readonly Embedding: "embedding";
22
- readonly Vision: "vision";
23
- readonly Image: "image";
24
- readonly Tts: "tts";
25
- readonly Stt: "stt";
26
- readonly Rerank: "rerank";
27
- readonly Moderations: "moderations";
28
- };
29
- /**
30
- * The type of the model
31
- */
32
- export type GetOnePromptModelType = ClosedEnum<typeof GetOnePromptModelType>;
33
- /**
34
- * Only supported on `image` models.
35
- */
36
- export declare const GetOnePromptFormat: {
37
- readonly Url: "url";
38
- readonly B64Json: "b64_json";
39
- readonly Text: "text";
40
- readonly JsonObject: "json_object";
41
- };
42
- /**
43
- * Only supported on `image` models.
44
- */
45
- export type GetOnePromptFormat = ClosedEnum<typeof GetOnePromptFormat>;
46
- /**
47
- * Only supported on `image` models.
48
- */
49
- export declare const GetOnePromptQuality: {
50
- readonly Standard: "standard";
51
- readonly Hd: "hd";
52
- };
53
- /**
54
- * Only supported on `image` models.
55
- */
56
- export type GetOnePromptQuality = ClosedEnum<typeof GetOnePromptQuality>;
57
- export declare const GetOnePromptResponseFormatPromptsType: {
58
- readonly JsonObject: "json_object";
59
- };
60
- export type GetOnePromptResponseFormatPromptsType = ClosedEnum<typeof GetOnePromptResponseFormatPromptsType>;
61
- export type GetOnePromptResponseFormat2 = {
62
- type: GetOnePromptResponseFormatPromptsType;
63
- };
64
- export declare const GetOnePromptResponseFormatType: {
65
- readonly JsonSchema: "json_schema";
66
- };
67
- export type GetOnePromptResponseFormatType = ClosedEnum<typeof GetOnePromptResponseFormatType>;
68
- export type GetOnePromptResponseFormatJsonSchema = {
69
- name: string;
70
- strict: boolean;
71
- schema: {
72
- [k: string]: any;
73
- };
74
- };
75
- export type GetOnePromptResponseFormat1 = {
76
- type: GetOnePromptResponseFormatType;
77
- jsonSchema: GetOnePromptResponseFormatJsonSchema;
78
- };
79
- /**
80
- * An object specifying the format that the model must output.
81
- *
82
- * @remarks
83
- *
84
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
85
- *
86
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
87
- *
88
- * 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.
89
- */
90
- export type GetOnePromptResponseFormat = GetOnePromptResponseFormat2 | GetOnePromptResponseFormat1;
91
- /**
92
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
93
- */
94
- export declare const GetOnePromptPhotoRealVersion: {
95
- readonly V1: "v1";
96
- readonly V2: "v2";
97
- };
98
- /**
99
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
100
- */
101
- export type GetOnePromptPhotoRealVersion = ClosedEnum<typeof GetOnePromptPhotoRealVersion>;
102
- /**
103
- * The format to return the embeddings
104
- */
105
- export declare const GetOnePromptEncodingFormat: {
106
- readonly Float: "float";
107
- readonly Base64: "base64";
108
- };
109
- /**
110
- * The format to return the embeddings
111
- */
112
- export type GetOnePromptEncodingFormat = ClosedEnum<typeof GetOnePromptEncodingFormat>;
113
- /**
114
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
115
- */
116
- export declare const GetOnePromptReasoningEffort: {
117
- readonly Low: "low";
118
- readonly Medium: "medium";
119
- readonly High: "high";
120
- };
121
- /**
122
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
123
- */
124
- export type GetOnePromptReasoningEffort = ClosedEnum<typeof GetOnePromptReasoningEffort>;
125
- /**
126
- * Model Parameters: Not all parameters apply to every model
127
- */
128
- export type GetOnePromptModelParameters = {
129
- /**
130
- * Only supported on `chat` and `completion` models.
131
- */
132
- temperature?: number | undefined;
133
- /**
134
- * Only supported on `chat` and `completion` models.
135
- */
136
- maxTokens?: number | undefined;
137
- /**
138
- * Only supported on `chat` and `completion` models.
139
- */
140
- topK?: number | undefined;
141
- /**
142
- * Only supported on `chat` and `completion` models.
143
- */
144
- topP?: number | undefined;
145
- /**
146
- * Only supported on `chat` and `completion` models.
147
- */
148
- frequencyPenalty?: number | undefined;
149
- /**
150
- * Only supported on `chat` and `completion` models.
151
- */
152
- presencePenalty?: number | undefined;
153
- /**
154
- * Only supported on `image` models.
155
- */
156
- numImages?: number | undefined;
157
- /**
158
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
159
- */
160
- seed?: number | undefined;
161
- /**
162
- * Only supported on `image` models.
163
- */
164
- format?: GetOnePromptFormat | undefined;
165
- /**
166
- * Only supported on `image` models.
167
- */
168
- dimensions?: string | undefined;
169
- /**
170
- * Only supported on `image` models.
171
- */
172
- quality?: GetOnePromptQuality | undefined;
173
- /**
174
- * Only supported on `image` models.
175
- */
176
- style?: string | undefined;
177
- /**
178
- * An object specifying the format that the model must output.
179
- *
180
- * @remarks
181
- *
182
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
183
- *
184
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
185
- *
186
- * 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.
187
- */
188
- responseFormat?: GetOnePromptResponseFormat2 | GetOnePromptResponseFormat1 | null | undefined;
189
- /**
190
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
191
- */
192
- photoRealVersion?: GetOnePromptPhotoRealVersion | undefined;
193
- /**
194
- * The format to return the embeddings
195
- */
196
- encodingFormat?: GetOnePromptEncodingFormat | undefined;
197
- /**
198
- * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
199
- */
200
- reasoningEffort?: GetOnePromptReasoningEffort | undefined;
201
- };
202
- export declare const GetOnePromptProvider: {
203
- readonly Cohere: "cohere";
204
- readonly Openai: "openai";
205
- readonly Anthropic: "anthropic";
206
- readonly Huggingface: "huggingface";
207
- readonly Replicate: "replicate";
208
- readonly Google: "google";
209
- readonly GoogleAi: "google-ai";
210
- readonly Azure: "azure";
211
- readonly Aws: "aws";
212
- readonly Anyscale: "anyscale";
213
- readonly Perplexity: "perplexity";
214
- readonly Groq: "groq";
215
- readonly Fal: "fal";
216
- readonly Leonardoai: "leonardoai";
217
- readonly Nvidia: "nvidia";
218
- readonly Jina: "jina";
219
- readonly Togetherai: "togetherai";
220
- readonly Elevenlabs: "elevenlabs";
221
- };
222
- export type GetOnePromptProvider = ClosedEnum<typeof GetOnePromptProvider>;
223
- /**
224
- * The role of the prompt message
225
- */
226
- export declare const GetOnePromptRole: {
227
- readonly System: "system";
228
- readonly Assistant: "assistant";
229
- readonly User: "user";
230
- readonly Exception: "exception";
231
- readonly Tool: "tool";
232
- readonly Prompt: "prompt";
233
- readonly Correction: "correction";
234
- readonly ExpectedOutput: "expected_output";
235
- };
236
- /**
237
- * The role of the prompt message
238
- */
239
- export type GetOnePromptRole = ClosedEnum<typeof GetOnePromptRole>;
240
- export declare const GetOnePrompt2PromptsType: {
241
- readonly ImageUrl: "image_url";
242
- };
243
- export type GetOnePrompt2PromptsType = ClosedEnum<typeof GetOnePrompt2PromptsType>;
244
- export type GetOnePrompt2ImageUrl = {
245
- /**
246
- * The orq.ai id of the image
247
- */
248
- id?: string | undefined;
249
- /**
250
- * Either a URL of the image or the base64 encoded data URI.
251
- */
252
- url: string;
253
- /**
254
- * Specifies the detail level of the image. Currently only supported with OpenAI models
255
- */
256
- detail?: string | undefined;
257
- };
258
- /**
259
- * The image part of the prompt message. Only supported with vision models.
260
- */
261
- export type GetOnePrompt22 = {
262
- type: GetOnePrompt2PromptsType;
263
- imageUrl: GetOnePrompt2ImageUrl;
264
- };
265
- export declare const GetOnePrompt2Type: {
266
- readonly Text: "text";
267
- };
268
- export type GetOnePrompt2Type = ClosedEnum<typeof GetOnePrompt2Type>;
269
- /**
270
- * Text content part of a prompt message
271
- */
272
- export type GetOnePrompt21 = {
273
- type: GetOnePrompt2Type;
274
- text: string;
275
- };
276
- export type GetOnePromptContent2 = GetOnePrompt21 | GetOnePrompt22;
277
- /**
278
- * 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.
279
- */
280
- export type GetOnePromptContent = string | Array<GetOnePrompt21 | GetOnePrompt22>;
281
- export declare const GetOnePromptPromptsType: {
282
- readonly Function: "function";
283
- };
284
- export type GetOnePromptPromptsType = ClosedEnum<typeof GetOnePromptPromptsType>;
285
- export type GetOnePromptFunction = {
286
- name: string;
287
- /**
288
- * JSON string arguments for the functions
289
- */
290
- arguments: string;
291
- };
292
- export type GetOnePromptToolCalls = {
293
- id?: string | undefined;
294
- index?: number | undefined;
295
- type: GetOnePromptPromptsType;
296
- function: GetOnePromptFunction;
297
- };
298
- export type GetOnePromptMessages = {
299
- /**
300
- * The role of the prompt message
301
- */
302
- role: GetOnePromptRole;
303
- /**
304
- * 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.
305
- */
306
- content: string | Array<GetOnePrompt21 | GetOnePrompt22>;
307
- toolCalls?: Array<GetOnePromptToolCalls> | undefined;
308
- };
309
- /**
310
- * A list of messages compatible with the openAI schema
311
- */
312
- export type GetOnePromptPromptConfig = {
313
- stream?: boolean | undefined;
314
- model?: string | undefined;
315
- /**
316
- * The id of the resource
317
- */
318
- modelDbId?: string | undefined;
319
- /**
320
- * The type of the model
321
- */
322
- modelType?: GetOnePromptModelType | undefined;
323
- /**
324
- * Model Parameters: Not all parameters apply to every model
325
- */
326
- modelParameters?: GetOnePromptModelParameters | undefined;
327
- provider?: GetOnePromptProvider | undefined;
328
- /**
329
- * The id of the resource
330
- */
331
- integrationId?: string | null | undefined;
332
- version?: string | undefined;
333
- messages: Array<GetOnePromptMessages>;
334
- };
335
- export declare const GetOnePromptUseCases: {
336
- readonly Agents: "Agents";
337
- readonly AgentsSimulations: "Agents simulations";
338
- readonly APIInteraction: "API interaction";
339
- readonly AutonomousAgents: "Autonomous Agents";
340
- readonly Chatbots: "Chatbots";
341
- readonly Classification: "Classification";
342
- readonly CodeUnderstanding: "Code understanding";
343
- readonly CodeWriting: "Code writing";
344
- readonly DocumentsQA: "Documents QA";
345
- readonly Conversation: "Conversation";
346
- readonly Extraction: "Extraction";
347
- readonly MultiModal: "Multi-modal";
348
- readonly SelfChecking: "Self-checking";
349
- readonly Sql: "SQL";
350
- readonly Summarization: "Summarization";
351
- readonly Tagging: "Tagging";
352
- };
353
- export type GetOnePromptUseCases = ClosedEnum<typeof GetOnePromptUseCases>;
354
- /**
355
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
356
- */
357
- export declare const GetOnePromptLanguage: {
358
- readonly Chinese: "Chinese";
359
- readonly Dutch: "Dutch";
360
- readonly English: "English";
361
- readonly French: "French";
362
- readonly German: "German";
363
- readonly Russian: "Russian";
364
- readonly Spanish: "Spanish";
365
- };
366
- /**
367
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
368
- */
369
- export type GetOnePromptLanguage = ClosedEnum<typeof GetOnePromptLanguage>;
370
- export type GetOnePromptMetadata = {
371
- /**
372
- * 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
373
- */
374
- useCases?: Array<GetOnePromptUseCases> | undefined;
375
- /**
376
- * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
377
- */
378
- language?: GetOnePromptLanguage | undefined;
379
- };
380
- /**
381
- * Prompt retrieved.
382
- */
383
- export type GetOnePromptResponseBody = {
384
- id: string;
385
- type: GetOnePromptType;
386
- owner: string;
387
- domainId: string;
388
- created: string;
389
- updated: string;
390
- createdById?: string | undefined;
391
- updatedById?: string | undefined;
392
- /**
393
- * The prompt’s name, meant to be displayable in the UI.
394
- */
395
- displayName: string;
396
- /**
397
- * 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
398
- */
399
- description?: string | null | undefined;
400
- /**
401
- * A list of messages compatible with the openAI schema
402
- */
403
- promptConfig: GetOnePromptPromptConfig;
404
- metadata?: GetOnePromptMetadata | undefined;
405
- };
406
10
  /** @internal */
407
11
  export declare const GetOnePromptRequest$inboundSchema: z.ZodType<GetOnePromptRequest, z.ZodTypeDef, unknown>;
408
12
  /** @internal */
@@ -425,810 +29,4 @@ export declare namespace GetOnePromptRequest$ {
425
29
  }
426
30
  export declare function getOnePromptRequestToJSON(getOnePromptRequest: GetOnePromptRequest): string;
427
31
  export declare function getOnePromptRequestFromJSON(jsonString: string): SafeParseResult<GetOnePromptRequest, SDKValidationError>;
428
- /** @internal */
429
- export declare const GetOnePromptType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptType>;
430
- /** @internal */
431
- export declare const GetOnePromptType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptType>;
432
- /**
433
- * @internal
434
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
435
- */
436
- export declare namespace GetOnePromptType$ {
437
- /** @deprecated use `GetOnePromptType$inboundSchema` instead. */
438
- const inboundSchema: z.ZodNativeEnum<{
439
- readonly Prompt: "prompt";
440
- }>;
441
- /** @deprecated use `GetOnePromptType$outboundSchema` instead. */
442
- const outboundSchema: z.ZodNativeEnum<{
443
- readonly Prompt: "prompt";
444
- }>;
445
- }
446
- /** @internal */
447
- export declare const GetOnePromptModelType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptModelType>;
448
- /** @internal */
449
- export declare const GetOnePromptModelType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptModelType>;
450
- /**
451
- * @internal
452
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
453
- */
454
- export declare namespace GetOnePromptModelType$ {
455
- /** @deprecated use `GetOnePromptModelType$inboundSchema` instead. */
456
- const inboundSchema: z.ZodNativeEnum<{
457
- readonly Chat: "chat";
458
- readonly Completion: "completion";
459
- readonly Embedding: "embedding";
460
- readonly Vision: "vision";
461
- readonly Image: "image";
462
- readonly Tts: "tts";
463
- readonly Stt: "stt";
464
- readonly Rerank: "rerank";
465
- readonly Moderations: "moderations";
466
- }>;
467
- /** @deprecated use `GetOnePromptModelType$outboundSchema` instead. */
468
- const outboundSchema: z.ZodNativeEnum<{
469
- readonly Chat: "chat";
470
- readonly Completion: "completion";
471
- readonly Embedding: "embedding";
472
- readonly Vision: "vision";
473
- readonly Image: "image";
474
- readonly Tts: "tts";
475
- readonly Stt: "stt";
476
- readonly Rerank: "rerank";
477
- readonly Moderations: "moderations";
478
- }>;
479
- }
480
- /** @internal */
481
- export declare const GetOnePromptFormat$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptFormat>;
482
- /** @internal */
483
- export declare const GetOnePromptFormat$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptFormat>;
484
- /**
485
- * @internal
486
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
487
- */
488
- export declare namespace GetOnePromptFormat$ {
489
- /** @deprecated use `GetOnePromptFormat$inboundSchema` instead. */
490
- const inboundSchema: z.ZodNativeEnum<{
491
- readonly Url: "url";
492
- readonly B64Json: "b64_json";
493
- readonly Text: "text";
494
- readonly JsonObject: "json_object";
495
- }>;
496
- /** @deprecated use `GetOnePromptFormat$outboundSchema` instead. */
497
- const outboundSchema: z.ZodNativeEnum<{
498
- readonly Url: "url";
499
- readonly B64Json: "b64_json";
500
- readonly Text: "text";
501
- readonly JsonObject: "json_object";
502
- }>;
503
- }
504
- /** @internal */
505
- export declare const GetOnePromptQuality$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptQuality>;
506
- /** @internal */
507
- export declare const GetOnePromptQuality$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptQuality>;
508
- /**
509
- * @internal
510
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
511
- */
512
- export declare namespace GetOnePromptQuality$ {
513
- /** @deprecated use `GetOnePromptQuality$inboundSchema` instead. */
514
- const inboundSchema: z.ZodNativeEnum<{
515
- readonly Standard: "standard";
516
- readonly Hd: "hd";
517
- }>;
518
- /** @deprecated use `GetOnePromptQuality$outboundSchema` instead. */
519
- const outboundSchema: z.ZodNativeEnum<{
520
- readonly Standard: "standard";
521
- readonly Hd: "hd";
522
- }>;
523
- }
524
- /** @internal */
525
- export declare const GetOnePromptResponseFormatPromptsType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType>;
526
- /** @internal */
527
- export declare const GetOnePromptResponseFormatPromptsType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatPromptsType>;
528
- /**
529
- * @internal
530
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
531
- */
532
- export declare namespace GetOnePromptResponseFormatPromptsType$ {
533
- /** @deprecated use `GetOnePromptResponseFormatPromptsType$inboundSchema` instead. */
534
- const inboundSchema: z.ZodNativeEnum<{
535
- readonly JsonObject: "json_object";
536
- }>;
537
- /** @deprecated use `GetOnePromptResponseFormatPromptsType$outboundSchema` instead. */
538
- const outboundSchema: z.ZodNativeEnum<{
539
- readonly JsonObject: "json_object";
540
- }>;
541
- }
542
- /** @internal */
543
- export declare const GetOnePromptResponseFormat2$inboundSchema: z.ZodType<GetOnePromptResponseFormat2, z.ZodTypeDef, unknown>;
544
- /** @internal */
545
- export type GetOnePromptResponseFormat2$Outbound = {
546
- type: string;
547
- };
548
- /** @internal */
549
- export declare const GetOnePromptResponseFormat2$outboundSchema: z.ZodType<GetOnePromptResponseFormat2$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat2>;
550
- /**
551
- * @internal
552
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
553
- */
554
- export declare namespace GetOnePromptResponseFormat2$ {
555
- /** @deprecated use `GetOnePromptResponseFormat2$inboundSchema` instead. */
556
- const inboundSchema: z.ZodType<GetOnePromptResponseFormat2, z.ZodTypeDef, unknown>;
557
- /** @deprecated use `GetOnePromptResponseFormat2$outboundSchema` instead. */
558
- const outboundSchema: z.ZodType<GetOnePromptResponseFormat2$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat2>;
559
- /** @deprecated use `GetOnePromptResponseFormat2$Outbound` instead. */
560
- type Outbound = GetOnePromptResponseFormat2$Outbound;
561
- }
562
- export declare function getOnePromptResponseFormat2ToJSON(getOnePromptResponseFormat2: GetOnePromptResponseFormat2): string;
563
- export declare function getOnePromptResponseFormat2FromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormat2, SDKValidationError>;
564
- /** @internal */
565
- export declare const GetOnePromptResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatType>;
566
- /** @internal */
567
- export declare const GetOnePromptResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptResponseFormatType>;
568
- /**
569
- * @internal
570
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
571
- */
572
- export declare namespace GetOnePromptResponseFormatType$ {
573
- /** @deprecated use `GetOnePromptResponseFormatType$inboundSchema` instead. */
574
- const inboundSchema: z.ZodNativeEnum<{
575
- readonly JsonSchema: "json_schema";
576
- }>;
577
- /** @deprecated use `GetOnePromptResponseFormatType$outboundSchema` instead. */
578
- const outboundSchema: z.ZodNativeEnum<{
579
- readonly JsonSchema: "json_schema";
580
- }>;
581
- }
582
- /** @internal */
583
- export declare const GetOnePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<GetOnePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
584
- /** @internal */
585
- export type GetOnePromptResponseFormatJsonSchema$Outbound = {
586
- name: string;
587
- strict: boolean;
588
- schema: {
589
- [k: string]: any;
590
- };
591
- };
592
- /** @internal */
593
- export declare const GetOnePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<GetOnePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, GetOnePromptResponseFormatJsonSchema>;
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 declare namespace GetOnePromptResponseFormatJsonSchema$ {
599
- /** @deprecated use `GetOnePromptResponseFormatJsonSchema$inboundSchema` instead. */
600
- const inboundSchema: z.ZodType<GetOnePromptResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
601
- /** @deprecated use `GetOnePromptResponseFormatJsonSchema$outboundSchema` instead. */
602
- const outboundSchema: z.ZodType<GetOnePromptResponseFormatJsonSchema$Outbound, z.ZodTypeDef, GetOnePromptResponseFormatJsonSchema>;
603
- /** @deprecated use `GetOnePromptResponseFormatJsonSchema$Outbound` instead. */
604
- type Outbound = GetOnePromptResponseFormatJsonSchema$Outbound;
605
- }
606
- export declare function getOnePromptResponseFormatJsonSchemaToJSON(getOnePromptResponseFormatJsonSchema: GetOnePromptResponseFormatJsonSchema): string;
607
- export declare function getOnePromptResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormatJsonSchema, SDKValidationError>;
608
- /** @internal */
609
- export declare const GetOnePromptResponseFormat1$inboundSchema: z.ZodType<GetOnePromptResponseFormat1, z.ZodTypeDef, unknown>;
610
- /** @internal */
611
- export type GetOnePromptResponseFormat1$Outbound = {
612
- type: string;
613
- json_schema: GetOnePromptResponseFormatJsonSchema$Outbound;
614
- };
615
- /** @internal */
616
- export declare const GetOnePromptResponseFormat1$outboundSchema: z.ZodType<GetOnePromptResponseFormat1$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat1>;
617
- /**
618
- * @internal
619
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
620
- */
621
- export declare namespace GetOnePromptResponseFormat1$ {
622
- /** @deprecated use `GetOnePromptResponseFormat1$inboundSchema` instead. */
623
- const inboundSchema: z.ZodType<GetOnePromptResponseFormat1, z.ZodTypeDef, unknown>;
624
- /** @deprecated use `GetOnePromptResponseFormat1$outboundSchema` instead. */
625
- const outboundSchema: z.ZodType<GetOnePromptResponseFormat1$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat1>;
626
- /** @deprecated use `GetOnePromptResponseFormat1$Outbound` instead. */
627
- type Outbound = GetOnePromptResponseFormat1$Outbound;
628
- }
629
- export declare function getOnePromptResponseFormat1ToJSON(getOnePromptResponseFormat1: GetOnePromptResponseFormat1): string;
630
- export declare function getOnePromptResponseFormat1FromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormat1, SDKValidationError>;
631
- /** @internal */
632
- export declare const GetOnePromptResponseFormat$inboundSchema: z.ZodType<GetOnePromptResponseFormat, z.ZodTypeDef, unknown>;
633
- /** @internal */
634
- export type GetOnePromptResponseFormat$Outbound = GetOnePromptResponseFormat2$Outbound | GetOnePromptResponseFormat1$Outbound;
635
- /** @internal */
636
- export declare const GetOnePromptResponseFormat$outboundSchema: z.ZodType<GetOnePromptResponseFormat$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat>;
637
- /**
638
- * @internal
639
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
640
- */
641
- export declare namespace GetOnePromptResponseFormat$ {
642
- /** @deprecated use `GetOnePromptResponseFormat$inboundSchema` instead. */
643
- const inboundSchema: z.ZodType<GetOnePromptResponseFormat, z.ZodTypeDef, unknown>;
644
- /** @deprecated use `GetOnePromptResponseFormat$outboundSchema` instead. */
645
- const outboundSchema: z.ZodType<GetOnePromptResponseFormat$Outbound, z.ZodTypeDef, GetOnePromptResponseFormat>;
646
- /** @deprecated use `GetOnePromptResponseFormat$Outbound` instead. */
647
- type Outbound = GetOnePromptResponseFormat$Outbound;
648
- }
649
- export declare function getOnePromptResponseFormatToJSON(getOnePromptResponseFormat: GetOnePromptResponseFormat): string;
650
- export declare function getOnePromptResponseFormatFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseFormat, SDKValidationError>;
651
- /** @internal */
652
- export declare const GetOnePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptPhotoRealVersion>;
653
- /** @internal */
654
- export declare const GetOnePromptPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptPhotoRealVersion>;
655
- /**
656
- * @internal
657
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
658
- */
659
- export declare namespace GetOnePromptPhotoRealVersion$ {
660
- /** @deprecated use `GetOnePromptPhotoRealVersion$inboundSchema` instead. */
661
- const inboundSchema: z.ZodNativeEnum<{
662
- readonly V1: "v1";
663
- readonly V2: "v2";
664
- }>;
665
- /** @deprecated use `GetOnePromptPhotoRealVersion$outboundSchema` instead. */
666
- const outboundSchema: z.ZodNativeEnum<{
667
- readonly V1: "v1";
668
- readonly V2: "v2";
669
- }>;
670
- }
671
- /** @internal */
672
- export declare const GetOnePromptEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptEncodingFormat>;
673
- /** @internal */
674
- export declare const GetOnePromptEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptEncodingFormat>;
675
- /**
676
- * @internal
677
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
678
- */
679
- export declare namespace GetOnePromptEncodingFormat$ {
680
- /** @deprecated use `GetOnePromptEncodingFormat$inboundSchema` instead. */
681
- const inboundSchema: z.ZodNativeEnum<{
682
- readonly Float: "float";
683
- readonly Base64: "base64";
684
- }>;
685
- /** @deprecated use `GetOnePromptEncodingFormat$outboundSchema` instead. */
686
- const outboundSchema: z.ZodNativeEnum<{
687
- readonly Float: "float";
688
- readonly Base64: "base64";
689
- }>;
690
- }
691
- /** @internal */
692
- export declare const GetOnePromptReasoningEffort$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptReasoningEffort>;
693
- /** @internal */
694
- export declare const GetOnePromptReasoningEffort$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptReasoningEffort>;
695
- /**
696
- * @internal
697
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
698
- */
699
- export declare namespace GetOnePromptReasoningEffort$ {
700
- /** @deprecated use `GetOnePromptReasoningEffort$inboundSchema` instead. */
701
- const inboundSchema: z.ZodNativeEnum<{
702
- readonly Low: "low";
703
- readonly Medium: "medium";
704
- readonly High: "high";
705
- }>;
706
- /** @deprecated use `GetOnePromptReasoningEffort$outboundSchema` instead. */
707
- const outboundSchema: z.ZodNativeEnum<{
708
- readonly Low: "low";
709
- readonly Medium: "medium";
710
- readonly High: "high";
711
- }>;
712
- }
713
- /** @internal */
714
- export declare const GetOnePromptModelParameters$inboundSchema: z.ZodType<GetOnePromptModelParameters, z.ZodTypeDef, unknown>;
715
- /** @internal */
716
- export type GetOnePromptModelParameters$Outbound = {
717
- temperature?: number | undefined;
718
- maxTokens?: number | undefined;
719
- topK?: number | undefined;
720
- topP?: number | undefined;
721
- frequencyPenalty?: number | undefined;
722
- presencePenalty?: number | undefined;
723
- numImages?: number | undefined;
724
- seed?: number | undefined;
725
- format?: string | undefined;
726
- dimensions?: string | undefined;
727
- quality?: string | undefined;
728
- style?: string | undefined;
729
- responseFormat?: GetOnePromptResponseFormat2$Outbound | GetOnePromptResponseFormat1$Outbound | null | undefined;
730
- photoRealVersion?: string | undefined;
731
- encoding_format?: string | undefined;
732
- reasoningEffort?: string | undefined;
733
- };
734
- /** @internal */
735
- export declare const GetOnePromptModelParameters$outboundSchema: z.ZodType<GetOnePromptModelParameters$Outbound, z.ZodTypeDef, GetOnePromptModelParameters>;
736
- /**
737
- * @internal
738
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
739
- */
740
- export declare namespace GetOnePromptModelParameters$ {
741
- /** @deprecated use `GetOnePromptModelParameters$inboundSchema` instead. */
742
- const inboundSchema: z.ZodType<GetOnePromptModelParameters, z.ZodTypeDef, unknown>;
743
- /** @deprecated use `GetOnePromptModelParameters$outboundSchema` instead. */
744
- const outboundSchema: z.ZodType<GetOnePromptModelParameters$Outbound, z.ZodTypeDef, GetOnePromptModelParameters>;
745
- /** @deprecated use `GetOnePromptModelParameters$Outbound` instead. */
746
- type Outbound = GetOnePromptModelParameters$Outbound;
747
- }
748
- export declare function getOnePromptModelParametersToJSON(getOnePromptModelParameters: GetOnePromptModelParameters): string;
749
- export declare function getOnePromptModelParametersFromJSON(jsonString: string): SafeParseResult<GetOnePromptModelParameters, SDKValidationError>;
750
- /** @internal */
751
- export declare const GetOnePromptProvider$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptProvider>;
752
- /** @internal */
753
- export declare const GetOnePromptProvider$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptProvider>;
754
- /**
755
- * @internal
756
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
757
- */
758
- export declare namespace GetOnePromptProvider$ {
759
- /** @deprecated use `GetOnePromptProvider$inboundSchema` instead. */
760
- const inboundSchema: z.ZodNativeEnum<{
761
- readonly Cohere: "cohere";
762
- readonly Openai: "openai";
763
- readonly Anthropic: "anthropic";
764
- readonly Huggingface: "huggingface";
765
- readonly Replicate: "replicate";
766
- readonly Google: "google";
767
- readonly GoogleAi: "google-ai";
768
- readonly Azure: "azure";
769
- readonly Aws: "aws";
770
- readonly Anyscale: "anyscale";
771
- readonly Perplexity: "perplexity";
772
- readonly Groq: "groq";
773
- readonly Fal: "fal";
774
- readonly Leonardoai: "leonardoai";
775
- readonly Nvidia: "nvidia";
776
- readonly Jina: "jina";
777
- readonly Togetherai: "togetherai";
778
- readonly Elevenlabs: "elevenlabs";
779
- }>;
780
- /** @deprecated use `GetOnePromptProvider$outboundSchema` instead. */
781
- const outboundSchema: z.ZodNativeEnum<{
782
- readonly Cohere: "cohere";
783
- readonly Openai: "openai";
784
- readonly Anthropic: "anthropic";
785
- readonly Huggingface: "huggingface";
786
- readonly Replicate: "replicate";
787
- readonly Google: "google";
788
- readonly GoogleAi: "google-ai";
789
- readonly Azure: "azure";
790
- readonly Aws: "aws";
791
- readonly Anyscale: "anyscale";
792
- readonly Perplexity: "perplexity";
793
- readonly Groq: "groq";
794
- readonly Fal: "fal";
795
- readonly Leonardoai: "leonardoai";
796
- readonly Nvidia: "nvidia";
797
- readonly Jina: "jina";
798
- readonly Togetherai: "togetherai";
799
- readonly Elevenlabs: "elevenlabs";
800
- }>;
801
- }
802
- /** @internal */
803
- export declare const GetOnePromptRole$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptRole>;
804
- /** @internal */
805
- export declare const GetOnePromptRole$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptRole>;
806
- /**
807
- * @internal
808
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
809
- */
810
- export declare namespace GetOnePromptRole$ {
811
- /** @deprecated use `GetOnePromptRole$inboundSchema` instead. */
812
- const inboundSchema: z.ZodNativeEnum<{
813
- readonly System: "system";
814
- readonly Assistant: "assistant";
815
- readonly User: "user";
816
- readonly Exception: "exception";
817
- readonly Tool: "tool";
818
- readonly Prompt: "prompt";
819
- readonly Correction: "correction";
820
- readonly ExpectedOutput: "expected_output";
821
- }>;
822
- /** @deprecated use `GetOnePromptRole$outboundSchema` instead. */
823
- const outboundSchema: z.ZodNativeEnum<{
824
- readonly System: "system";
825
- readonly Assistant: "assistant";
826
- readonly User: "user";
827
- readonly Exception: "exception";
828
- readonly Tool: "tool";
829
- readonly Prompt: "prompt";
830
- readonly Correction: "correction";
831
- readonly ExpectedOutput: "expected_output";
832
- }>;
833
- }
834
- /** @internal */
835
- export declare const GetOnePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2PromptsType>;
836
- /** @internal */
837
- export declare const GetOnePrompt2PromptsType$outboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2PromptsType>;
838
- /**
839
- * @internal
840
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
841
- */
842
- export declare namespace GetOnePrompt2PromptsType$ {
843
- /** @deprecated use `GetOnePrompt2PromptsType$inboundSchema` instead. */
844
- const inboundSchema: z.ZodNativeEnum<{
845
- readonly ImageUrl: "image_url";
846
- }>;
847
- /** @deprecated use `GetOnePrompt2PromptsType$outboundSchema` instead. */
848
- const outboundSchema: z.ZodNativeEnum<{
849
- readonly ImageUrl: "image_url";
850
- }>;
851
- }
852
- /** @internal */
853
- export declare const GetOnePrompt2ImageUrl$inboundSchema: z.ZodType<GetOnePrompt2ImageUrl, z.ZodTypeDef, unknown>;
854
- /** @internal */
855
- export type GetOnePrompt2ImageUrl$Outbound = {
856
- id?: string | undefined;
857
- url: string;
858
- detail?: string | undefined;
859
- };
860
- /** @internal */
861
- export declare const GetOnePrompt2ImageUrl$outboundSchema: z.ZodType<GetOnePrompt2ImageUrl$Outbound, z.ZodTypeDef, GetOnePrompt2ImageUrl>;
862
- /**
863
- * @internal
864
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
865
- */
866
- export declare namespace GetOnePrompt2ImageUrl$ {
867
- /** @deprecated use `GetOnePrompt2ImageUrl$inboundSchema` instead. */
868
- const inboundSchema: z.ZodType<GetOnePrompt2ImageUrl, z.ZodTypeDef, unknown>;
869
- /** @deprecated use `GetOnePrompt2ImageUrl$outboundSchema` instead. */
870
- const outboundSchema: z.ZodType<GetOnePrompt2ImageUrl$Outbound, z.ZodTypeDef, GetOnePrompt2ImageUrl>;
871
- /** @deprecated use `GetOnePrompt2ImageUrl$Outbound` instead. */
872
- type Outbound = GetOnePrompt2ImageUrl$Outbound;
873
- }
874
- export declare function getOnePrompt2ImageUrlToJSON(getOnePrompt2ImageUrl: GetOnePrompt2ImageUrl): string;
875
- export declare function getOnePrompt2ImageUrlFromJSON(jsonString: string): SafeParseResult<GetOnePrompt2ImageUrl, SDKValidationError>;
876
- /** @internal */
877
- export declare const GetOnePrompt22$inboundSchema: z.ZodType<GetOnePrompt22, z.ZodTypeDef, unknown>;
878
- /** @internal */
879
- export type GetOnePrompt22$Outbound = {
880
- type: string;
881
- image_url: GetOnePrompt2ImageUrl$Outbound;
882
- };
883
- /** @internal */
884
- export declare const GetOnePrompt22$outboundSchema: z.ZodType<GetOnePrompt22$Outbound, z.ZodTypeDef, GetOnePrompt22>;
885
- /**
886
- * @internal
887
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
888
- */
889
- export declare namespace GetOnePrompt22$ {
890
- /** @deprecated use `GetOnePrompt22$inboundSchema` instead. */
891
- const inboundSchema: z.ZodType<GetOnePrompt22, z.ZodTypeDef, unknown>;
892
- /** @deprecated use `GetOnePrompt22$outboundSchema` instead. */
893
- const outboundSchema: z.ZodType<GetOnePrompt22$Outbound, z.ZodTypeDef, GetOnePrompt22>;
894
- /** @deprecated use `GetOnePrompt22$Outbound` instead. */
895
- type Outbound = GetOnePrompt22$Outbound;
896
- }
897
- export declare function getOnePrompt22ToJSON(getOnePrompt22: GetOnePrompt22): string;
898
- export declare function getOnePrompt22FromJSON(jsonString: string): SafeParseResult<GetOnePrompt22, SDKValidationError>;
899
- /** @internal */
900
- export declare const GetOnePrompt2Type$inboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2Type>;
901
- /** @internal */
902
- export declare const GetOnePrompt2Type$outboundSchema: z.ZodNativeEnum<typeof GetOnePrompt2Type>;
903
- /**
904
- * @internal
905
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
906
- */
907
- export declare namespace GetOnePrompt2Type$ {
908
- /** @deprecated use `GetOnePrompt2Type$inboundSchema` instead. */
909
- const inboundSchema: z.ZodNativeEnum<{
910
- readonly Text: "text";
911
- }>;
912
- /** @deprecated use `GetOnePrompt2Type$outboundSchema` instead. */
913
- const outboundSchema: z.ZodNativeEnum<{
914
- readonly Text: "text";
915
- }>;
916
- }
917
- /** @internal */
918
- export declare const GetOnePrompt21$inboundSchema: z.ZodType<GetOnePrompt21, z.ZodTypeDef, unknown>;
919
- /** @internal */
920
- export type GetOnePrompt21$Outbound = {
921
- type: string;
922
- text: string;
923
- };
924
- /** @internal */
925
- export declare const GetOnePrompt21$outboundSchema: z.ZodType<GetOnePrompt21$Outbound, z.ZodTypeDef, GetOnePrompt21>;
926
- /**
927
- * @internal
928
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
929
- */
930
- export declare namespace GetOnePrompt21$ {
931
- /** @deprecated use `GetOnePrompt21$inboundSchema` instead. */
932
- const inboundSchema: z.ZodType<GetOnePrompt21, z.ZodTypeDef, unknown>;
933
- /** @deprecated use `GetOnePrompt21$outboundSchema` instead. */
934
- const outboundSchema: z.ZodType<GetOnePrompt21$Outbound, z.ZodTypeDef, GetOnePrompt21>;
935
- /** @deprecated use `GetOnePrompt21$Outbound` instead. */
936
- type Outbound = GetOnePrompt21$Outbound;
937
- }
938
- export declare function getOnePrompt21ToJSON(getOnePrompt21: GetOnePrompt21): string;
939
- export declare function getOnePrompt21FromJSON(jsonString: string): SafeParseResult<GetOnePrompt21, SDKValidationError>;
940
- /** @internal */
941
- export declare const GetOnePromptContent2$inboundSchema: z.ZodType<GetOnePromptContent2, z.ZodTypeDef, unknown>;
942
- /** @internal */
943
- export type GetOnePromptContent2$Outbound = GetOnePrompt21$Outbound | GetOnePrompt22$Outbound;
944
- /** @internal */
945
- export declare const GetOnePromptContent2$outboundSchema: z.ZodType<GetOnePromptContent2$Outbound, z.ZodTypeDef, GetOnePromptContent2>;
946
- /**
947
- * @internal
948
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
949
- */
950
- export declare namespace GetOnePromptContent2$ {
951
- /** @deprecated use `GetOnePromptContent2$inboundSchema` instead. */
952
- const inboundSchema: z.ZodType<GetOnePromptContent2, z.ZodTypeDef, unknown>;
953
- /** @deprecated use `GetOnePromptContent2$outboundSchema` instead. */
954
- const outboundSchema: z.ZodType<GetOnePromptContent2$Outbound, z.ZodTypeDef, GetOnePromptContent2>;
955
- /** @deprecated use `GetOnePromptContent2$Outbound` instead. */
956
- type Outbound = GetOnePromptContent2$Outbound;
957
- }
958
- export declare function getOnePromptContent2ToJSON(getOnePromptContent2: GetOnePromptContent2): string;
959
- export declare function getOnePromptContent2FromJSON(jsonString: string): SafeParseResult<GetOnePromptContent2, SDKValidationError>;
960
- /** @internal */
961
- export declare const GetOnePromptContent$inboundSchema: z.ZodType<GetOnePromptContent, z.ZodTypeDef, unknown>;
962
- /** @internal */
963
- export type GetOnePromptContent$Outbound = string | Array<GetOnePrompt21$Outbound | GetOnePrompt22$Outbound>;
964
- /** @internal */
965
- export declare const GetOnePromptContent$outboundSchema: z.ZodType<GetOnePromptContent$Outbound, z.ZodTypeDef, GetOnePromptContent>;
966
- /**
967
- * @internal
968
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
969
- */
970
- export declare namespace GetOnePromptContent$ {
971
- /** @deprecated use `GetOnePromptContent$inboundSchema` instead. */
972
- const inboundSchema: z.ZodType<GetOnePromptContent, z.ZodTypeDef, unknown>;
973
- /** @deprecated use `GetOnePromptContent$outboundSchema` instead. */
974
- const outboundSchema: z.ZodType<GetOnePromptContent$Outbound, z.ZodTypeDef, GetOnePromptContent>;
975
- /** @deprecated use `GetOnePromptContent$Outbound` instead. */
976
- type Outbound = GetOnePromptContent$Outbound;
977
- }
978
- export declare function getOnePromptContentToJSON(getOnePromptContent: GetOnePromptContent): string;
979
- export declare function getOnePromptContentFromJSON(jsonString: string): SafeParseResult<GetOnePromptContent, SDKValidationError>;
980
- /** @internal */
981
- export declare const GetOnePromptPromptsType$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptPromptsType>;
982
- /** @internal */
983
- export declare const GetOnePromptPromptsType$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptPromptsType>;
984
- /**
985
- * @internal
986
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
987
- */
988
- export declare namespace GetOnePromptPromptsType$ {
989
- /** @deprecated use `GetOnePromptPromptsType$inboundSchema` instead. */
990
- const inboundSchema: z.ZodNativeEnum<{
991
- readonly Function: "function";
992
- }>;
993
- /** @deprecated use `GetOnePromptPromptsType$outboundSchema` instead. */
994
- const outboundSchema: z.ZodNativeEnum<{
995
- readonly Function: "function";
996
- }>;
997
- }
998
- /** @internal */
999
- export declare const GetOnePromptFunction$inboundSchema: z.ZodType<GetOnePromptFunction, z.ZodTypeDef, unknown>;
1000
- /** @internal */
1001
- export type GetOnePromptFunction$Outbound = {
1002
- name: string;
1003
- arguments: string;
1004
- };
1005
- /** @internal */
1006
- export declare const GetOnePromptFunction$outboundSchema: z.ZodType<GetOnePromptFunction$Outbound, z.ZodTypeDef, GetOnePromptFunction>;
1007
- /**
1008
- * @internal
1009
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1010
- */
1011
- export declare namespace GetOnePromptFunction$ {
1012
- /** @deprecated use `GetOnePromptFunction$inboundSchema` instead. */
1013
- const inboundSchema: z.ZodType<GetOnePromptFunction, z.ZodTypeDef, unknown>;
1014
- /** @deprecated use `GetOnePromptFunction$outboundSchema` instead. */
1015
- const outboundSchema: z.ZodType<GetOnePromptFunction$Outbound, z.ZodTypeDef, GetOnePromptFunction>;
1016
- /** @deprecated use `GetOnePromptFunction$Outbound` instead. */
1017
- type Outbound = GetOnePromptFunction$Outbound;
1018
- }
1019
- export declare function getOnePromptFunctionToJSON(getOnePromptFunction: GetOnePromptFunction): string;
1020
- export declare function getOnePromptFunctionFromJSON(jsonString: string): SafeParseResult<GetOnePromptFunction, SDKValidationError>;
1021
- /** @internal */
1022
- export declare const GetOnePromptToolCalls$inboundSchema: z.ZodType<GetOnePromptToolCalls, z.ZodTypeDef, unknown>;
1023
- /** @internal */
1024
- export type GetOnePromptToolCalls$Outbound = {
1025
- id?: string | undefined;
1026
- index?: number | undefined;
1027
- type: string;
1028
- function: GetOnePromptFunction$Outbound;
1029
- };
1030
- /** @internal */
1031
- export declare const GetOnePromptToolCalls$outboundSchema: z.ZodType<GetOnePromptToolCalls$Outbound, z.ZodTypeDef, GetOnePromptToolCalls>;
1032
- /**
1033
- * @internal
1034
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1035
- */
1036
- export declare namespace GetOnePromptToolCalls$ {
1037
- /** @deprecated use `GetOnePromptToolCalls$inboundSchema` instead. */
1038
- const inboundSchema: z.ZodType<GetOnePromptToolCalls, z.ZodTypeDef, unknown>;
1039
- /** @deprecated use `GetOnePromptToolCalls$outboundSchema` instead. */
1040
- const outboundSchema: z.ZodType<GetOnePromptToolCalls$Outbound, z.ZodTypeDef, GetOnePromptToolCalls>;
1041
- /** @deprecated use `GetOnePromptToolCalls$Outbound` instead. */
1042
- type Outbound = GetOnePromptToolCalls$Outbound;
1043
- }
1044
- export declare function getOnePromptToolCallsToJSON(getOnePromptToolCalls: GetOnePromptToolCalls): string;
1045
- export declare function getOnePromptToolCallsFromJSON(jsonString: string): SafeParseResult<GetOnePromptToolCalls, SDKValidationError>;
1046
- /** @internal */
1047
- export declare const GetOnePromptMessages$inboundSchema: z.ZodType<GetOnePromptMessages, z.ZodTypeDef, unknown>;
1048
- /** @internal */
1049
- export type GetOnePromptMessages$Outbound = {
1050
- role: string;
1051
- content: string | Array<GetOnePrompt21$Outbound | GetOnePrompt22$Outbound>;
1052
- tool_calls?: Array<GetOnePromptToolCalls$Outbound> | undefined;
1053
- };
1054
- /** @internal */
1055
- export declare const GetOnePromptMessages$outboundSchema: z.ZodType<GetOnePromptMessages$Outbound, z.ZodTypeDef, GetOnePromptMessages>;
1056
- /**
1057
- * @internal
1058
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1059
- */
1060
- export declare namespace GetOnePromptMessages$ {
1061
- /** @deprecated use `GetOnePromptMessages$inboundSchema` instead. */
1062
- const inboundSchema: z.ZodType<GetOnePromptMessages, z.ZodTypeDef, unknown>;
1063
- /** @deprecated use `GetOnePromptMessages$outboundSchema` instead. */
1064
- const outboundSchema: z.ZodType<GetOnePromptMessages$Outbound, z.ZodTypeDef, GetOnePromptMessages>;
1065
- /** @deprecated use `GetOnePromptMessages$Outbound` instead. */
1066
- type Outbound = GetOnePromptMessages$Outbound;
1067
- }
1068
- export declare function getOnePromptMessagesToJSON(getOnePromptMessages: GetOnePromptMessages): string;
1069
- export declare function getOnePromptMessagesFromJSON(jsonString: string): SafeParseResult<GetOnePromptMessages, SDKValidationError>;
1070
- /** @internal */
1071
- export declare const GetOnePromptPromptConfig$inboundSchema: z.ZodType<GetOnePromptPromptConfig, z.ZodTypeDef, unknown>;
1072
- /** @internal */
1073
- export type GetOnePromptPromptConfig$Outbound = {
1074
- stream?: boolean | undefined;
1075
- model?: string | undefined;
1076
- model_db_id?: string | undefined;
1077
- model_type?: string | undefined;
1078
- model_parameters?: GetOnePromptModelParameters$Outbound | undefined;
1079
- provider?: string | undefined;
1080
- integration_id?: string | null | undefined;
1081
- version?: string | undefined;
1082
- messages: Array<GetOnePromptMessages$Outbound>;
1083
- };
1084
- /** @internal */
1085
- export declare const GetOnePromptPromptConfig$outboundSchema: z.ZodType<GetOnePromptPromptConfig$Outbound, z.ZodTypeDef, GetOnePromptPromptConfig>;
1086
- /**
1087
- * @internal
1088
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1089
- */
1090
- export declare namespace GetOnePromptPromptConfig$ {
1091
- /** @deprecated use `GetOnePromptPromptConfig$inboundSchema` instead. */
1092
- const inboundSchema: z.ZodType<GetOnePromptPromptConfig, z.ZodTypeDef, unknown>;
1093
- /** @deprecated use `GetOnePromptPromptConfig$outboundSchema` instead. */
1094
- const outboundSchema: z.ZodType<GetOnePromptPromptConfig$Outbound, z.ZodTypeDef, GetOnePromptPromptConfig>;
1095
- /** @deprecated use `GetOnePromptPromptConfig$Outbound` instead. */
1096
- type Outbound = GetOnePromptPromptConfig$Outbound;
1097
- }
1098
- export declare function getOnePromptPromptConfigToJSON(getOnePromptPromptConfig: GetOnePromptPromptConfig): string;
1099
- export declare function getOnePromptPromptConfigFromJSON(jsonString: string): SafeParseResult<GetOnePromptPromptConfig, SDKValidationError>;
1100
- /** @internal */
1101
- export declare const GetOnePromptUseCases$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptUseCases>;
1102
- /** @internal */
1103
- export declare const GetOnePromptUseCases$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptUseCases>;
1104
- /**
1105
- * @internal
1106
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1107
- */
1108
- export declare namespace GetOnePromptUseCases$ {
1109
- /** @deprecated use `GetOnePromptUseCases$inboundSchema` instead. */
1110
- const inboundSchema: z.ZodNativeEnum<{
1111
- readonly Agents: "Agents";
1112
- readonly AgentsSimulations: "Agents simulations";
1113
- readonly APIInteraction: "API interaction";
1114
- readonly AutonomousAgents: "Autonomous Agents";
1115
- readonly Chatbots: "Chatbots";
1116
- readonly Classification: "Classification";
1117
- readonly CodeUnderstanding: "Code understanding";
1118
- readonly CodeWriting: "Code writing";
1119
- readonly DocumentsQA: "Documents QA";
1120
- readonly Conversation: "Conversation";
1121
- readonly Extraction: "Extraction";
1122
- readonly MultiModal: "Multi-modal";
1123
- readonly SelfChecking: "Self-checking";
1124
- readonly Sql: "SQL";
1125
- readonly Summarization: "Summarization";
1126
- readonly Tagging: "Tagging";
1127
- }>;
1128
- /** @deprecated use `GetOnePromptUseCases$outboundSchema` instead. */
1129
- const outboundSchema: z.ZodNativeEnum<{
1130
- readonly Agents: "Agents";
1131
- readonly AgentsSimulations: "Agents simulations";
1132
- readonly APIInteraction: "API interaction";
1133
- readonly AutonomousAgents: "Autonomous Agents";
1134
- readonly Chatbots: "Chatbots";
1135
- readonly Classification: "Classification";
1136
- readonly CodeUnderstanding: "Code understanding";
1137
- readonly CodeWriting: "Code writing";
1138
- readonly DocumentsQA: "Documents QA";
1139
- readonly Conversation: "Conversation";
1140
- readonly Extraction: "Extraction";
1141
- readonly MultiModal: "Multi-modal";
1142
- readonly SelfChecking: "Self-checking";
1143
- readonly Sql: "SQL";
1144
- readonly Summarization: "Summarization";
1145
- readonly Tagging: "Tagging";
1146
- }>;
1147
- }
1148
- /** @internal */
1149
- export declare const GetOnePromptLanguage$inboundSchema: z.ZodNativeEnum<typeof GetOnePromptLanguage>;
1150
- /** @internal */
1151
- export declare const GetOnePromptLanguage$outboundSchema: z.ZodNativeEnum<typeof GetOnePromptLanguage>;
1152
- /**
1153
- * @internal
1154
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1155
- */
1156
- export declare namespace GetOnePromptLanguage$ {
1157
- /** @deprecated use `GetOnePromptLanguage$inboundSchema` instead. */
1158
- const inboundSchema: z.ZodNativeEnum<{
1159
- readonly Chinese: "Chinese";
1160
- readonly Dutch: "Dutch";
1161
- readonly English: "English";
1162
- readonly French: "French";
1163
- readonly German: "German";
1164
- readonly Russian: "Russian";
1165
- readonly Spanish: "Spanish";
1166
- }>;
1167
- /** @deprecated use `GetOnePromptLanguage$outboundSchema` instead. */
1168
- const outboundSchema: z.ZodNativeEnum<{
1169
- readonly Chinese: "Chinese";
1170
- readonly Dutch: "Dutch";
1171
- readonly English: "English";
1172
- readonly French: "French";
1173
- readonly German: "German";
1174
- readonly Russian: "Russian";
1175
- readonly Spanish: "Spanish";
1176
- }>;
1177
- }
1178
- /** @internal */
1179
- export declare const GetOnePromptMetadata$inboundSchema: z.ZodType<GetOnePromptMetadata, z.ZodTypeDef, unknown>;
1180
- /** @internal */
1181
- export type GetOnePromptMetadata$Outbound = {
1182
- use_cases?: Array<string> | undefined;
1183
- language?: string | undefined;
1184
- };
1185
- /** @internal */
1186
- export declare const GetOnePromptMetadata$outboundSchema: z.ZodType<GetOnePromptMetadata$Outbound, z.ZodTypeDef, GetOnePromptMetadata>;
1187
- /**
1188
- * @internal
1189
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1190
- */
1191
- export declare namespace GetOnePromptMetadata$ {
1192
- /** @deprecated use `GetOnePromptMetadata$inboundSchema` instead. */
1193
- const inboundSchema: z.ZodType<GetOnePromptMetadata, z.ZodTypeDef, unknown>;
1194
- /** @deprecated use `GetOnePromptMetadata$outboundSchema` instead. */
1195
- const outboundSchema: z.ZodType<GetOnePromptMetadata$Outbound, z.ZodTypeDef, GetOnePromptMetadata>;
1196
- /** @deprecated use `GetOnePromptMetadata$Outbound` instead. */
1197
- type Outbound = GetOnePromptMetadata$Outbound;
1198
- }
1199
- export declare function getOnePromptMetadataToJSON(getOnePromptMetadata: GetOnePromptMetadata): string;
1200
- export declare function getOnePromptMetadataFromJSON(jsonString: string): SafeParseResult<GetOnePromptMetadata, SDKValidationError>;
1201
- /** @internal */
1202
- export declare const GetOnePromptResponseBody$inboundSchema: z.ZodType<GetOnePromptResponseBody, z.ZodTypeDef, unknown>;
1203
- /** @internal */
1204
- export type GetOnePromptResponseBody$Outbound = {
1205
- _id: string;
1206
- type: string;
1207
- owner: string;
1208
- domain_id: string;
1209
- created: string;
1210
- updated: string;
1211
- created_by_id?: string | undefined;
1212
- updated_by_id?: string | undefined;
1213
- display_name: string;
1214
- description?: string | null | undefined;
1215
- prompt_config: GetOnePromptPromptConfig$Outbound;
1216
- metadata?: GetOnePromptMetadata$Outbound | undefined;
1217
- };
1218
- /** @internal */
1219
- export declare const GetOnePromptResponseBody$outboundSchema: z.ZodType<GetOnePromptResponseBody$Outbound, z.ZodTypeDef, GetOnePromptResponseBody>;
1220
- /**
1221
- * @internal
1222
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1223
- */
1224
- export declare namespace GetOnePromptResponseBody$ {
1225
- /** @deprecated use `GetOnePromptResponseBody$inboundSchema` instead. */
1226
- const inboundSchema: z.ZodType<GetOnePromptResponseBody, z.ZodTypeDef, unknown>;
1227
- /** @deprecated use `GetOnePromptResponseBody$outboundSchema` instead. */
1228
- const outboundSchema: z.ZodType<GetOnePromptResponseBody$Outbound, z.ZodTypeDef, GetOnePromptResponseBody>;
1229
- /** @deprecated use `GetOnePromptResponseBody$Outbound` instead. */
1230
- type Outbound = GetOnePromptResponseBody$Outbound;
1231
- }
1232
- export declare function getOnePromptResponseBodyToJSON(getOnePromptResponseBody: GetOnePromptResponseBody): string;
1233
- export declare function getOnePromptResponseBodyFromJSON(jsonString: string): SafeParseResult<GetOnePromptResponseBody, SDKValidationError>;
1234
32
  //# sourceMappingURL=getoneprompt.d.ts.map