@orq-ai/node 1.31.1 → 1.31.11

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 (161) hide show
  1. package/README.md +17 -45
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/lib/config.js.map +1 -1
  5. package/models/errors/index.d.ts +0 -1
  6. package/models/errors/index.d.ts.map +1 -1
  7. package/models/errors/index.js +0 -1
  8. package/models/errors/index.js.map +1 -1
  9. package/models/operations/bulkfileupload.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/deploymentgetconfig.d.ts +96 -96
  12. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  13. package/models/operations/deploymentgetconfig.js +135 -136
  14. package/models/operations/deploymentgetconfig.js.map +1 -1
  15. package/models/operations/deploymentinvoke.d.ts +49 -46
  16. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  17. package/models/operations/deploymentinvoke.js +63 -61
  18. package/models/operations/deploymentinvoke.js.map +1 -1
  19. package/models/operations/deployments.d.ts +53 -53
  20. package/models/operations/deployments.d.ts.map +1 -1
  21. package/models/operations/deployments.js +67 -66
  22. package/models/operations/deployments.js.map +1 -1
  23. package/models/operations/fileupload.js +2 -2
  24. package/models/operations/index.d.ts +0 -9
  25. package/models/operations/index.d.ts.map +1 -1
  26. package/models/operations/index.js +0 -9
  27. package/models/operations/index.js.map +1 -1
  28. package/package.json +1 -1
  29. package/sdk/sdk.d.ts +0 -6
  30. package/sdk/sdk.d.ts.map +1 -1
  31. package/sdk/sdk.js +0 -10
  32. package/sdk/sdk.js.map +1 -1
  33. package/src/lib/config.ts +3 -3
  34. package/src/models/errors/index.ts +0 -1
  35. package/src/models/operations/bulkfileupload.ts +2 -2
  36. package/src/models/operations/createcontact.ts +2 -2
  37. package/src/models/operations/deploymentgetconfig.ts +188 -255
  38. package/src/models/operations/deploymentinvoke.ts +81 -95
  39. package/src/models/operations/deployments.ts +88 -101
  40. package/src/models/operations/fileupload.ts +2 -2
  41. package/src/models/operations/index.ts +0 -9
  42. package/src/sdk/sdk.ts +0 -12
  43. package/docs/sdks/prompt/README.md +0 -6
  44. package/docs/sdks/prompts/README.md +0 -533
  45. package/docs/sdks/snippets/README.md +0 -84
  46. package/docs/sdks/templates/README.md +0 -80
  47. package/funcs/promptSnippetsFindOne.d.ts +0 -12
  48. package/funcs/promptSnippetsFindOne.d.ts.map +0 -1
  49. package/funcs/promptSnippetsFindOne.js +0 -107
  50. package/funcs/promptSnippetsFindOne.js.map +0 -1
  51. package/funcs/promptTemplatesGetAll.d.ts +0 -12
  52. package/funcs/promptTemplatesGetAll.d.ts.map +0 -1
  53. package/funcs/promptTemplatesGetAll.js +0 -107
  54. package/funcs/promptTemplatesGetAll.js.map +0 -1
  55. package/funcs/promptsCreate.d.ts +0 -12
  56. package/funcs/promptsCreate.d.ts.map +0 -1
  57. package/funcs/promptsCreate.js +0 -104
  58. package/funcs/promptsCreate.js.map +0 -1
  59. package/funcs/promptsCreateVersion.d.ts +0 -12
  60. package/funcs/promptsCreateVersion.d.ts.map +0 -1
  61. package/funcs/promptsCreateVersion.js +0 -108
  62. package/funcs/promptsCreateVersion.js.map +0 -1
  63. package/funcs/promptsDelete.d.ts +0 -12
  64. package/funcs/promptsDelete.d.ts.map +0 -1
  65. package/funcs/promptsDelete.js +0 -108
  66. package/funcs/promptsDelete.js.map +0 -1
  67. package/funcs/promptsDuplicate.d.ts +0 -12
  68. package/funcs/promptsDuplicate.d.ts.map +0 -1
  69. package/funcs/promptsDuplicate.js +0 -108
  70. package/funcs/promptsDuplicate.js.map +0 -1
  71. package/funcs/promptsGetAll.d.ts +0 -12
  72. package/funcs/promptsGetAll.d.ts.map +0 -1
  73. package/funcs/promptsGetAll.js +0 -107
  74. package/funcs/promptsGetAll.js.map +0 -1
  75. package/funcs/promptsGetOne.d.ts +0 -12
  76. package/funcs/promptsGetOne.d.ts.map +0 -1
  77. package/funcs/promptsGetOne.js +0 -108
  78. package/funcs/promptsGetOne.js.map +0 -1
  79. package/funcs/promptsUpdate.d.ts +0 -13
  80. package/funcs/promptsUpdate.d.ts.map +0 -1
  81. package/funcs/promptsUpdate.js +0 -112
  82. package/funcs/promptsUpdate.js.map +0 -1
  83. package/models/errors/updateprompt.d.ts +0 -36
  84. package/models/errors/updateprompt.d.ts.map +0 -1
  85. package/models/errors/updateprompt.js +0 -79
  86. package/models/errors/updateprompt.js.map +0 -1
  87. package/models/operations/createprompt.d.ts +0 -2035
  88. package/models/operations/createprompt.d.ts.map +0 -1
  89. package/models/operations/createprompt.js +0 -1853
  90. package/models/operations/createprompt.js.map +0 -1
  91. package/models/operations/createpromptversion.d.ts +0 -2001
  92. package/models/operations/createpromptversion.d.ts.map +0 -1
  93. package/models/operations/createpromptversion.js +0 -1848
  94. package/models/operations/createpromptversion.js.map +0 -1
  95. package/models/operations/deleteprompt.d.ts +0 -32
  96. package/models/operations/deleteprompt.d.ts.map +0 -1
  97. package/models/operations/deleteprompt.js +0 -69
  98. package/models/operations/deleteprompt.js.map +0 -1
  99. package/models/operations/duplicateprompt.d.ts +0 -32
  100. package/models/operations/duplicateprompt.d.ts.map +0 -1
  101. package/models/operations/duplicateprompt.js +0 -69
  102. package/models/operations/duplicateprompt.js.map +0 -1
  103. package/models/operations/findonepromptsnippet.d.ts +0 -6278
  104. package/models/operations/findonepromptsnippet.d.ts.map +0 -1
  105. package/models/operations/findonepromptsnippet.js +0 -5891
  106. package/models/operations/findonepromptsnippet.js.map +0 -1
  107. package/models/operations/getallprompts.d.ts +0 -6613
  108. package/models/operations/getallprompts.d.ts.map +0 -1
  109. package/models/operations/getallprompts.js +0 -6161
  110. package/models/operations/getallprompts.js.map +0 -1
  111. package/models/operations/getallprompttemplates.d.ts +0 -6607
  112. package/models/operations/getallprompttemplates.d.ts.map +0 -1
  113. package/models/operations/getallprompttemplates.js +0 -6225
  114. package/models/operations/getallprompttemplates.js.map +0 -1
  115. package/models/operations/getoneprompt.d.ts +0 -32
  116. package/models/operations/getoneprompt.d.ts.map +0 -1
  117. package/models/operations/getoneprompt.js +0 -69
  118. package/models/operations/getoneprompt.js.map +0 -1
  119. package/models/operations/updateprompt.d.ts +0 -7251
  120. package/models/operations/updateprompt.d.ts.map +0 -1
  121. package/models/operations/updateprompt.js +0 -6678
  122. package/models/operations/updateprompt.js.map +0 -1
  123. package/sdk/prompt.d.ts +0 -10
  124. package/sdk/prompt.d.ts.map +0 -1
  125. package/sdk/prompt.js +0 -21
  126. package/sdk/prompt.js.map +0 -1
  127. package/sdk/prompts.d.ts +0 -33
  128. package/sdk/prompts.d.ts.map +0 -1
  129. package/sdk/prompts.js +0 -61
  130. package/sdk/prompts.js.map +0 -1
  131. package/sdk/snippets.d.ts +0 -9
  132. package/sdk/snippets.d.ts.map +0 -1
  133. package/sdk/snippets.js +0 -19
  134. package/sdk/snippets.js.map +0 -1
  135. package/sdk/templates.d.ts +0 -9
  136. package/sdk/templates.d.ts.map +0 -1
  137. package/sdk/templates.js +0 -19
  138. package/sdk/templates.js.map +0 -1
  139. package/src/funcs/promptSnippetsFindOne.ts +0 -127
  140. package/src/funcs/promptTemplatesGetAll.ts +0 -129
  141. package/src/funcs/promptsCreate.ts +0 -123
  142. package/src/funcs/promptsCreateVersion.ts +0 -128
  143. package/src/funcs/promptsDelete.ts +0 -127
  144. package/src/funcs/promptsDuplicate.ts +0 -127
  145. package/src/funcs/promptsGetAll.ts +0 -127
  146. package/src/funcs/promptsGetOne.ts +0 -127
  147. package/src/funcs/promptsUpdate.ts +0 -135
  148. package/src/models/errors/updateprompt.ts +0 -71
  149. package/src/models/operations/createprompt.ts +0 -3455
  150. package/src/models/operations/createpromptversion.ts +0 -3697
  151. package/src/models/operations/deleteprompt.ts +0 -69
  152. package/src/models/operations/duplicateprompt.ts +0 -69
  153. package/src/models/operations/findonepromptsnippet.ts +0 -13629
  154. package/src/models/operations/getallprompts.ts +0 -13390
  155. package/src/models/operations/getallprompttemplates.ts +0 -13690
  156. package/src/models/operations/getoneprompt.ts +0 -69
  157. package/src/models/operations/updateprompt.ts +0 -14407
  158. package/src/sdk/prompt.ts +0 -19
  159. package/src/sdk/prompts.ts +0 -114
  160. package/src/sdk/snippets.ts +0 -24
  161. package/src/sdk/templates.ts +0 -24
@@ -1,2001 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- /**
6
- * The type of the model
7
- */
8
- export declare const CreatePromptVersionModelType: {
9
- readonly Chat: "chat";
10
- readonly Completion: "completion";
11
- readonly Embedding: "embedding";
12
- readonly Vision: "vision";
13
- readonly Image: "image";
14
- readonly Tts: "tts";
15
- readonly Stt: "stt";
16
- readonly Rerank: "rerank";
17
- readonly Moderations: "moderations";
18
- };
19
- /**
20
- * The type of the model
21
- */
22
- export type CreatePromptVersionModelType = ClosedEnum<typeof CreatePromptVersionModelType>;
23
- /**
24
- * Only supported on `image` models.
25
- */
26
- export declare const CreatePromptVersionFormat: {
27
- readonly Url: "url";
28
- readonly B64Json: "b64_json";
29
- readonly Text: "text";
30
- readonly JsonObject: "json_object";
31
- };
32
- /**
33
- * Only supported on `image` models.
34
- */
35
- export type CreatePromptVersionFormat = ClosedEnum<typeof CreatePromptVersionFormat>;
36
- /**
37
- * Only supported on `image` models.
38
- */
39
- export declare const CreatePromptVersionQuality: {
40
- readonly Standard: "standard";
41
- readonly Hd: "hd";
42
- };
43
- /**
44
- * Only supported on `image` models.
45
- */
46
- export type CreatePromptVersionQuality = ClosedEnum<typeof CreatePromptVersionQuality>;
47
- export declare const CreatePromptVersionResponseFormatPromptsType: {
48
- readonly JsonObject: "json_object";
49
- };
50
- export type CreatePromptVersionResponseFormatPromptsType = ClosedEnum<typeof CreatePromptVersionResponseFormatPromptsType>;
51
- export type CreatePromptVersionResponseFormat2 = {
52
- type: CreatePromptVersionResponseFormatPromptsType;
53
- };
54
- export declare const CreatePromptVersionResponseFormatType: {
55
- readonly JsonSchema: "json_schema";
56
- };
57
- export type CreatePromptVersionResponseFormatType = ClosedEnum<typeof CreatePromptVersionResponseFormatType>;
58
- export type ResponseFormatJsonSchema = {
59
- name: string;
60
- strict: boolean;
61
- schema: {
62
- [k: string]: any;
63
- };
64
- };
65
- export type CreatePromptVersionResponseFormat1 = {
66
- type: CreatePromptVersionResponseFormatType;
67
- jsonSchema: ResponseFormatJsonSchema;
68
- };
69
- /**
70
- * An object specifying the format that the model must output.
71
- *
72
- * @remarks
73
- *
74
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
75
- *
76
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
77
- *
78
- * 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.
79
- */
80
- export type CreatePromptVersionResponseFormat = CreatePromptVersionResponseFormat2 | CreatePromptVersionResponseFormat1;
81
- /**
82
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
83
- */
84
- export declare const CreatePromptVersionPhotoRealVersion: {
85
- readonly V1: "v1";
86
- readonly V2: "v2";
87
- };
88
- /**
89
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
90
- */
91
- export type CreatePromptVersionPhotoRealVersion = ClosedEnum<typeof CreatePromptVersionPhotoRealVersion>;
92
- /**
93
- * The format to return the embeddings
94
- */
95
- export declare const CreatePromptVersionEncodingFormat: {
96
- readonly Float: "float";
97
- readonly Base64: "base64";
98
- };
99
- /**
100
- * The format to return the embeddings
101
- */
102
- export type CreatePromptVersionEncodingFormat = ClosedEnum<typeof CreatePromptVersionEncodingFormat>;
103
- /**
104
- * Model Parameters: Not all parameters apply to every model
105
- */
106
- export type CreatePromptVersionModelParameters = {
107
- /**
108
- * Only supported on `chat` and `completion` models.
109
- */
110
- temperature?: number | undefined;
111
- /**
112
- * Only supported on `chat` and `completion` models.
113
- */
114
- maxTokens?: number | undefined;
115
- /**
116
- * Only supported on `chat` and `completion` models.
117
- */
118
- topK?: number | undefined;
119
- /**
120
- * Only supported on `chat` and `completion` models.
121
- */
122
- topP?: number | undefined;
123
- /**
124
- * Only supported on `chat` and `completion` models.
125
- */
126
- frequencyPenalty?: number | undefined;
127
- /**
128
- * Only supported on `chat` and `completion` models.
129
- */
130
- presencePenalty?: number | undefined;
131
- /**
132
- * Only supported on `image` models.
133
- */
134
- numImages?: number | undefined;
135
- /**
136
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
137
- */
138
- seed?: number | undefined;
139
- /**
140
- * Only supported on `image` models.
141
- */
142
- format?: CreatePromptVersionFormat | undefined;
143
- /**
144
- * Only supported on `image` models.
145
- */
146
- dimensions?: string | undefined;
147
- /**
148
- * Only supported on `image` models.
149
- */
150
- quality?: CreatePromptVersionQuality | undefined;
151
- /**
152
- * Only supported on `image` models.
153
- */
154
- style?: string | undefined;
155
- /**
156
- * An object specifying the format that the model must output.
157
- *
158
- * @remarks
159
- *
160
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
161
- *
162
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
163
- *
164
- * 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.
165
- */
166
- responseFormat?: CreatePromptVersionResponseFormat2 | CreatePromptVersionResponseFormat1 | null | undefined;
167
- /**
168
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
169
- */
170
- photoRealVersion?: CreatePromptVersionPhotoRealVersion | undefined;
171
- /**
172
- * The format to return the embeddings
173
- */
174
- encodingFormat?: CreatePromptVersionEncodingFormat | undefined;
175
- };
176
- export declare const CreatePromptVersionProvider: {
177
- readonly Cohere: "cohere";
178
- readonly Openai: "openai";
179
- readonly Anthropic: "anthropic";
180
- readonly Huggingface: "huggingface";
181
- readonly Replicate: "replicate";
182
- readonly Google: "google";
183
- readonly GoogleAi: "google-ai";
184
- readonly Azure: "azure";
185
- readonly Aws: "aws";
186
- readonly Anyscale: "anyscale";
187
- readonly Perplexity: "perplexity";
188
- readonly Groq: "groq";
189
- readonly Fal: "fal";
190
- readonly Leonardoai: "leonardoai";
191
- readonly Nvidia: "nvidia";
192
- readonly Jina: "jina";
193
- };
194
- export type CreatePromptVersionProvider = ClosedEnum<typeof CreatePromptVersionProvider>;
195
- /**
196
- * The role of the prompt message
197
- */
198
- export declare const CreatePromptVersionRole: {
199
- readonly System: "system";
200
- readonly Assistant: "assistant";
201
- readonly User: "user";
202
- readonly Exception: "exception";
203
- readonly Tool: "tool";
204
- readonly Prompt: "prompt";
205
- readonly Correction: "correction";
206
- readonly ExpectedOutput: "expected_output";
207
- };
208
- /**
209
- * The role of the prompt message
210
- */
211
- export type CreatePromptVersionRole = ClosedEnum<typeof CreatePromptVersionRole>;
212
- export declare const CreatePromptVersion2PromptsType: {
213
- readonly ImageUrl: "image_url";
214
- };
215
- export type CreatePromptVersion2PromptsType = ClosedEnum<typeof CreatePromptVersion2PromptsType>;
216
- export type CreatePromptVersion2ImageUrl = {
217
- /**
218
- * Either a URL of the image or the base64 encoded data URI.
219
- */
220
- url: string;
221
- /**
222
- * Specifies the detail level of the image. Currently only supported with OpenAI models
223
- */
224
- detail?: string | undefined;
225
- };
226
- /**
227
- * The image part of the prompt message. Only supported with vision models.
228
- */
229
- export type CreatePromptVersion22 = {
230
- type: CreatePromptVersion2PromptsType;
231
- imageUrl: CreatePromptVersion2ImageUrl;
232
- };
233
- export declare const CreatePromptVersion2Type: {
234
- readonly Text: "text";
235
- };
236
- export type CreatePromptVersion2Type = ClosedEnum<typeof CreatePromptVersion2Type>;
237
- /**
238
- * Text content part of a prompt message
239
- */
240
- export type CreatePromptVersion21 = {
241
- type: CreatePromptVersion2Type;
242
- text: string;
243
- };
244
- export type CreatePromptVersionContent2 = CreatePromptVersion21 | CreatePromptVersion22;
245
- /**
246
- * 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.
247
- */
248
- export type CreatePromptVersionContent = string | Array<CreatePromptVersion21 | CreatePromptVersion22>;
249
- export declare const CreatePromptVersionType: {
250
- readonly Function: "function";
251
- };
252
- export type CreatePromptVersionType = ClosedEnum<typeof CreatePromptVersionType>;
253
- export type CreatePromptVersionFunction = {
254
- name: string;
255
- /**
256
- * JSON string arguments for the functions
257
- */
258
- arguments: string;
259
- };
260
- export type CreatePromptVersionToolCalls = {
261
- id?: string | undefined;
262
- index?: number | undefined;
263
- type: CreatePromptVersionType;
264
- function: CreatePromptVersionFunction;
265
- };
266
- export type CreatePromptVersionMessages = {
267
- /**
268
- * The role of the prompt message
269
- */
270
- role: CreatePromptVersionRole;
271
- /**
272
- * 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.
273
- */
274
- content: string | Array<CreatePromptVersion21 | CreatePromptVersion22>;
275
- toolCalls?: Array<CreatePromptVersionToolCalls> | undefined;
276
- };
277
- export type CreatePromptVersionPromptConfig = {
278
- stream?: boolean | undefined;
279
- model?: string | undefined;
280
- /**
281
- * The type of the model
282
- */
283
- modelType?: CreatePromptVersionModelType | undefined;
284
- /**
285
- * Model Parameters: Not all parameters apply to every model
286
- */
287
- modelParameters?: CreatePromptVersionModelParameters | undefined;
288
- provider?: CreatePromptVersionProvider | undefined;
289
- version?: string | undefined;
290
- messages: Array<CreatePromptVersionMessages>;
291
- };
292
- export type CreatePromptVersionMetadata = {
293
- useCases?: Array<string> | undefined;
294
- language?: string | undefined;
295
- };
296
- export type CreatePromptVersionRequestBody = {
297
- displayName: string;
298
- description?: string | null | undefined;
299
- promptConfig: CreatePromptVersionPromptConfig;
300
- metadata: CreatePromptVersionMetadata;
301
- commit: string;
302
- timestamp: string;
303
- };
304
- export type CreatePromptVersionRequest = {
305
- /**
306
- * Prompt ID
307
- */
308
- id: string;
309
- requestBody?: CreatePromptVersionRequestBody | undefined;
310
- };
311
- /**
312
- * The type of the model
313
- */
314
- export declare const CreatePromptVersionPromptsModelType: {
315
- readonly Chat: "chat";
316
- readonly Completion: "completion";
317
- readonly Embedding: "embedding";
318
- readonly Vision: "vision";
319
- readonly Image: "image";
320
- readonly Tts: "tts";
321
- readonly Stt: "stt";
322
- readonly Rerank: "rerank";
323
- readonly Moderations: "moderations";
324
- };
325
- /**
326
- * The type of the model
327
- */
328
- export type CreatePromptVersionPromptsModelType = ClosedEnum<typeof CreatePromptVersionPromptsModelType>;
329
- /**
330
- * Only supported on `image` models.
331
- */
332
- export declare const CreatePromptVersionPromptsFormat: {
333
- readonly Url: "url";
334
- readonly B64Json: "b64_json";
335
- readonly Text: "text";
336
- readonly JsonObject: "json_object";
337
- };
338
- /**
339
- * Only supported on `image` models.
340
- */
341
- export type CreatePromptVersionPromptsFormat = ClosedEnum<typeof CreatePromptVersionPromptsFormat>;
342
- /**
343
- * Only supported on `image` models.
344
- */
345
- export declare const CreatePromptVersionPromptsQuality: {
346
- readonly Standard: "standard";
347
- readonly Hd: "hd";
348
- };
349
- /**
350
- * Only supported on `image` models.
351
- */
352
- export type CreatePromptVersionPromptsQuality = ClosedEnum<typeof CreatePromptVersionPromptsQuality>;
353
- export declare const CreatePromptVersionResponseFormatPromptsResponse200Type: {
354
- readonly JsonObject: "json_object";
355
- };
356
- export type CreatePromptVersionResponseFormatPromptsResponse200Type = ClosedEnum<typeof CreatePromptVersionResponseFormatPromptsResponse200Type>;
357
- export type CreatePromptVersionResponseFormatPrompts2 = {
358
- type: CreatePromptVersionResponseFormatPromptsResponse200Type;
359
- };
360
- export declare const CreatePromptVersionResponseFormatPromptsResponseType: {
361
- readonly JsonSchema: "json_schema";
362
- };
363
- export type CreatePromptVersionResponseFormatPromptsResponseType = ClosedEnum<typeof CreatePromptVersionResponseFormatPromptsResponseType>;
364
- export type CreatePromptVersionResponseFormatJsonSchema = {
365
- name: string;
366
- strict: boolean;
367
- schema: {
368
- [k: string]: any;
369
- };
370
- };
371
- export type CreatePromptVersionResponseFormatPrompts1 = {
372
- type: CreatePromptVersionResponseFormatPromptsResponseType;
373
- jsonSchema: CreatePromptVersionResponseFormatJsonSchema;
374
- };
375
- /**
376
- * An object specifying the format that the model must output.
377
- *
378
- * @remarks
379
- *
380
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
381
- *
382
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
383
- *
384
- * 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.
385
- */
386
- export type CreatePromptVersionPromptsResponseFormat = CreatePromptVersionResponseFormatPrompts2 | CreatePromptVersionResponseFormatPrompts1;
387
- /**
388
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
389
- */
390
- export declare const CreatePromptVersionPromptsPhotoRealVersion: {
391
- readonly V1: "v1";
392
- readonly V2: "v2";
393
- };
394
- /**
395
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
396
- */
397
- export type CreatePromptVersionPromptsPhotoRealVersion = ClosedEnum<typeof CreatePromptVersionPromptsPhotoRealVersion>;
398
- /**
399
- * The format to return the embeddings
400
- */
401
- export declare const CreatePromptVersionPromptsEncodingFormat: {
402
- readonly Float: "float";
403
- readonly Base64: "base64";
404
- };
405
- /**
406
- * The format to return the embeddings
407
- */
408
- export type CreatePromptVersionPromptsEncodingFormat = ClosedEnum<typeof CreatePromptVersionPromptsEncodingFormat>;
409
- /**
410
- * Model Parameters: Not all parameters apply to every model
411
- */
412
- export type CreatePromptVersionPromptsModelParameters = {
413
- /**
414
- * Only supported on `chat` and `completion` models.
415
- */
416
- temperature?: number | undefined;
417
- /**
418
- * Only supported on `chat` and `completion` models.
419
- */
420
- maxTokens?: number | undefined;
421
- /**
422
- * Only supported on `chat` and `completion` models.
423
- */
424
- topK?: number | undefined;
425
- /**
426
- * Only supported on `chat` and `completion` models.
427
- */
428
- topP?: number | undefined;
429
- /**
430
- * Only supported on `chat` and `completion` models.
431
- */
432
- frequencyPenalty?: number | undefined;
433
- /**
434
- * Only supported on `chat` and `completion` models.
435
- */
436
- presencePenalty?: number | undefined;
437
- /**
438
- * Only supported on `image` models.
439
- */
440
- numImages?: number | undefined;
441
- /**
442
- * Best effort deterministic seed for the model. Currently only OpenAI models support these
443
- */
444
- seed?: number | undefined;
445
- /**
446
- * Only supported on `image` models.
447
- */
448
- format?: CreatePromptVersionPromptsFormat | undefined;
449
- /**
450
- * Only supported on `image` models.
451
- */
452
- dimensions?: string | undefined;
453
- /**
454
- * Only supported on `image` models.
455
- */
456
- quality?: CreatePromptVersionPromptsQuality | undefined;
457
- /**
458
- * Only supported on `image` models.
459
- */
460
- style?: string | undefined;
461
- /**
462
- * An object specifying the format that the model must output.
463
- *
464
- * @remarks
465
- *
466
- * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
467
- *
468
- * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
469
- *
470
- * 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.
471
- */
472
- responseFormat?: CreatePromptVersionResponseFormatPrompts2 | CreatePromptVersionResponseFormatPrompts1 | null | undefined;
473
- /**
474
- * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
475
- */
476
- photoRealVersion?: CreatePromptVersionPromptsPhotoRealVersion | undefined;
477
- /**
478
- * The format to return the embeddings
479
- */
480
- encodingFormat?: CreatePromptVersionPromptsEncodingFormat | undefined;
481
- };
482
- export declare const CreatePromptVersionPromptsProvider: {
483
- readonly Cohere: "cohere";
484
- readonly Openai: "openai";
485
- readonly Anthropic: "anthropic";
486
- readonly Huggingface: "huggingface";
487
- readonly Replicate: "replicate";
488
- readonly Google: "google";
489
- readonly GoogleAi: "google-ai";
490
- readonly Azure: "azure";
491
- readonly Aws: "aws";
492
- readonly Anyscale: "anyscale";
493
- readonly Perplexity: "perplexity";
494
- readonly Groq: "groq";
495
- readonly Fal: "fal";
496
- readonly Leonardoai: "leonardoai";
497
- readonly Nvidia: "nvidia";
498
- readonly Jina: "jina";
499
- };
500
- export type CreatePromptVersionPromptsProvider = ClosedEnum<typeof CreatePromptVersionPromptsProvider>;
501
- /**
502
- * The role of the prompt message
503
- */
504
- export declare const CreatePromptVersionPromptsRole: {
505
- readonly System: "system";
506
- readonly Assistant: "assistant";
507
- readonly User: "user";
508
- readonly Exception: "exception";
509
- readonly Tool: "tool";
510
- readonly Prompt: "prompt";
511
- readonly Correction: "correction";
512
- readonly ExpectedOutput: "expected_output";
513
- };
514
- /**
515
- * The role of the prompt message
516
- */
517
- export type CreatePromptVersionPromptsRole = ClosedEnum<typeof CreatePromptVersionPromptsRole>;
518
- export declare const CreatePromptVersion2PromptsResponse200Type: {
519
- readonly ImageUrl: "image_url";
520
- };
521
- export type CreatePromptVersion2PromptsResponse200Type = ClosedEnum<typeof CreatePromptVersion2PromptsResponse200Type>;
522
- export type CreatePromptVersion2PromptsImageUrl = {
523
- /**
524
- * The orq.ai id of the image
525
- */
526
- id?: string | undefined;
527
- /**
528
- * Either a URL of the image or the base64 encoded data URI.
529
- */
530
- url: string;
531
- /**
532
- * Specifies the detail level of the image. Currently only supported with OpenAI models
533
- */
534
- detail?: string | undefined;
535
- };
536
- /**
537
- * The image part of the prompt message. Only supported with vision models.
538
- */
539
- export type CreatePromptVersion2Prompts2 = {
540
- type: CreatePromptVersion2PromptsResponse200Type;
541
- imageUrl: CreatePromptVersion2PromptsImageUrl;
542
- };
543
- export declare const CreatePromptVersion2PromptsResponseType: {
544
- readonly Text: "text";
545
- };
546
- export type CreatePromptVersion2PromptsResponseType = ClosedEnum<typeof CreatePromptVersion2PromptsResponseType>;
547
- /**
548
- * Text content part of a prompt message
549
- */
550
- export type CreatePromptVersion2Prompts1 = {
551
- type: CreatePromptVersion2PromptsResponseType;
552
- text: string;
553
- };
554
- export type CreatePromptVersionContentPrompts2 = CreatePromptVersion2Prompts1 | CreatePromptVersion2Prompts2;
555
- /**
556
- * 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.
557
- */
558
- export type CreatePromptVersionPromptsContent = string | Array<CreatePromptVersion2Prompts1 | CreatePromptVersion2Prompts2>;
559
- export declare const CreatePromptVersionPromptsType: {
560
- readonly Function: "function";
561
- };
562
- export type CreatePromptVersionPromptsType = ClosedEnum<typeof CreatePromptVersionPromptsType>;
563
- export type CreatePromptVersionPromptsFunction = {
564
- name: string;
565
- /**
566
- * JSON string arguments for the functions
567
- */
568
- arguments: string;
569
- };
570
- export type CreatePromptVersionPromptsToolCalls = {
571
- id?: string | undefined;
572
- index?: number | undefined;
573
- type: CreatePromptVersionPromptsType;
574
- function: CreatePromptVersionPromptsFunction;
575
- };
576
- export type CreatePromptVersionPromptsMessages = {
577
- /**
578
- * The role of the prompt message
579
- */
580
- role: CreatePromptVersionPromptsRole;
581
- /**
582
- * 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.
583
- */
584
- content: string | Array<CreatePromptVersion2Prompts1 | CreatePromptVersion2Prompts2>;
585
- toolCalls?: Array<CreatePromptVersionPromptsToolCalls> | undefined;
586
- };
587
- export type CreatePromptVersionPromptsPromptConfig = {
588
- stream?: boolean | undefined;
589
- model?: string | undefined;
590
- /**
591
- * The id of the resource
592
- */
593
- modelDbId?: string | undefined;
594
- /**
595
- * The type of the model
596
- */
597
- modelType?: CreatePromptVersionPromptsModelType | undefined;
598
- /**
599
- * Model Parameters: Not all parameters apply to every model
600
- */
601
- modelParameters?: CreatePromptVersionPromptsModelParameters | undefined;
602
- provider?: CreatePromptVersionPromptsProvider | undefined;
603
- /**
604
- * The id of the resource
605
- */
606
- integrationId?: string | null | undefined;
607
- version?: string | undefined;
608
- messages: Array<CreatePromptVersionPromptsMessages>;
609
- };
610
- export type CreatePromptVersionPromptsMetadata = {
611
- useCases?: Array<string> | undefined;
612
- language?: string | undefined;
613
- };
614
- /**
615
- * Prompt version created.
616
- */
617
- export type CreatePromptVersionResponseBody = {
618
- id: string;
619
- displayName: string;
620
- description?: string | null | undefined;
621
- promptConfig: CreatePromptVersionPromptsPromptConfig;
622
- metadata: CreatePromptVersionPromptsMetadata;
623
- commit: string;
624
- timestamp: string;
625
- };
626
- /** @internal */
627
- export declare const CreatePromptVersionModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionModelType>;
628
- /** @internal */
629
- export declare const CreatePromptVersionModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionModelType>;
630
- /**
631
- * @internal
632
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
633
- */
634
- export declare namespace CreatePromptVersionModelType$ {
635
- /** @deprecated use `CreatePromptVersionModelType$inboundSchema` instead. */
636
- const inboundSchema: z.ZodNativeEnum<{
637
- readonly Chat: "chat";
638
- readonly Completion: "completion";
639
- readonly Embedding: "embedding";
640
- readonly Vision: "vision";
641
- readonly Image: "image";
642
- readonly Tts: "tts";
643
- readonly Stt: "stt";
644
- readonly Rerank: "rerank";
645
- readonly Moderations: "moderations";
646
- }>;
647
- /** @deprecated use `CreatePromptVersionModelType$outboundSchema` instead. */
648
- const outboundSchema: z.ZodNativeEnum<{
649
- readonly Chat: "chat";
650
- readonly Completion: "completion";
651
- readonly Embedding: "embedding";
652
- readonly Vision: "vision";
653
- readonly Image: "image";
654
- readonly Tts: "tts";
655
- readonly Stt: "stt";
656
- readonly Rerank: "rerank";
657
- readonly Moderations: "moderations";
658
- }>;
659
- }
660
- /** @internal */
661
- export declare const CreatePromptVersionFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionFormat>;
662
- /** @internal */
663
- export declare const CreatePromptVersionFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionFormat>;
664
- /**
665
- * @internal
666
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
667
- */
668
- export declare namespace CreatePromptVersionFormat$ {
669
- /** @deprecated use `CreatePromptVersionFormat$inboundSchema` instead. */
670
- const inboundSchema: z.ZodNativeEnum<{
671
- readonly Url: "url";
672
- readonly B64Json: "b64_json";
673
- readonly Text: "text";
674
- readonly JsonObject: "json_object";
675
- }>;
676
- /** @deprecated use `CreatePromptVersionFormat$outboundSchema` instead. */
677
- const outboundSchema: z.ZodNativeEnum<{
678
- readonly Url: "url";
679
- readonly B64Json: "b64_json";
680
- readonly Text: "text";
681
- readonly JsonObject: "json_object";
682
- }>;
683
- }
684
- /** @internal */
685
- export declare const CreatePromptVersionQuality$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionQuality>;
686
- /** @internal */
687
- export declare const CreatePromptVersionQuality$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionQuality>;
688
- /**
689
- * @internal
690
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
691
- */
692
- export declare namespace CreatePromptVersionQuality$ {
693
- /** @deprecated use `CreatePromptVersionQuality$inboundSchema` instead. */
694
- const inboundSchema: z.ZodNativeEnum<{
695
- readonly Standard: "standard";
696
- readonly Hd: "hd";
697
- }>;
698
- /** @deprecated use `CreatePromptVersionQuality$outboundSchema` instead. */
699
- const outboundSchema: z.ZodNativeEnum<{
700
- readonly Standard: "standard";
701
- readonly Hd: "hd";
702
- }>;
703
- }
704
- /** @internal */
705
- export declare const CreatePromptVersionResponseFormatPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsType>;
706
- /** @internal */
707
- export declare const CreatePromptVersionResponseFormatPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsType>;
708
- /**
709
- * @internal
710
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
711
- */
712
- export declare namespace CreatePromptVersionResponseFormatPromptsType$ {
713
- /** @deprecated use `CreatePromptVersionResponseFormatPromptsType$inboundSchema` instead. */
714
- const inboundSchema: z.ZodNativeEnum<{
715
- readonly JsonObject: "json_object";
716
- }>;
717
- /** @deprecated use `CreatePromptVersionResponseFormatPromptsType$outboundSchema` instead. */
718
- const outboundSchema: z.ZodNativeEnum<{
719
- readonly JsonObject: "json_object";
720
- }>;
721
- }
722
- /** @internal */
723
- export declare const CreatePromptVersionResponseFormat2$inboundSchema: z.ZodType<CreatePromptVersionResponseFormat2, z.ZodTypeDef, unknown>;
724
- /** @internal */
725
- export type CreatePromptVersionResponseFormat2$Outbound = {
726
- type: string;
727
- };
728
- /** @internal */
729
- export declare const CreatePromptVersionResponseFormat2$outboundSchema: z.ZodType<CreatePromptVersionResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat2>;
730
- /**
731
- * @internal
732
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
733
- */
734
- export declare namespace CreatePromptVersionResponseFormat2$ {
735
- /** @deprecated use `CreatePromptVersionResponseFormat2$inboundSchema` instead. */
736
- const inboundSchema: z.ZodType<CreatePromptVersionResponseFormat2, z.ZodTypeDef, unknown>;
737
- /** @deprecated use `CreatePromptVersionResponseFormat2$outboundSchema` instead. */
738
- const outboundSchema: z.ZodType<CreatePromptVersionResponseFormat2$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat2>;
739
- /** @deprecated use `CreatePromptVersionResponseFormat2$Outbound` instead. */
740
- type Outbound = CreatePromptVersionResponseFormat2$Outbound;
741
- }
742
- export declare function createPromptVersionResponseFormat2ToJSON(createPromptVersionResponseFormat2: CreatePromptVersionResponseFormat2): string;
743
- export declare function createPromptVersionResponseFormat2FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormat2, SDKValidationError>;
744
- /** @internal */
745
- export declare const CreatePromptVersionResponseFormatType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatType>;
746
- /** @internal */
747
- export declare const CreatePromptVersionResponseFormatType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatType>;
748
- /**
749
- * @internal
750
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
751
- */
752
- export declare namespace CreatePromptVersionResponseFormatType$ {
753
- /** @deprecated use `CreatePromptVersionResponseFormatType$inboundSchema` instead. */
754
- const inboundSchema: z.ZodNativeEnum<{
755
- readonly JsonSchema: "json_schema";
756
- }>;
757
- /** @deprecated use `CreatePromptVersionResponseFormatType$outboundSchema` instead. */
758
- const outboundSchema: z.ZodNativeEnum<{
759
- readonly JsonSchema: "json_schema";
760
- }>;
761
- }
762
- /** @internal */
763
- export declare const ResponseFormatJsonSchema$inboundSchema: z.ZodType<ResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
764
- /** @internal */
765
- export type ResponseFormatJsonSchema$Outbound = {
766
- name: string;
767
- strict: boolean;
768
- schema: {
769
- [k: string]: any;
770
- };
771
- };
772
- /** @internal */
773
- export declare const ResponseFormatJsonSchema$outboundSchema: z.ZodType<ResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ResponseFormatJsonSchema>;
774
- /**
775
- * @internal
776
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
777
- */
778
- export declare namespace ResponseFormatJsonSchema$ {
779
- /** @deprecated use `ResponseFormatJsonSchema$inboundSchema` instead. */
780
- const inboundSchema: z.ZodType<ResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
781
- /** @deprecated use `ResponseFormatJsonSchema$outboundSchema` instead. */
782
- const outboundSchema: z.ZodType<ResponseFormatJsonSchema$Outbound, z.ZodTypeDef, ResponseFormatJsonSchema>;
783
- /** @deprecated use `ResponseFormatJsonSchema$Outbound` instead. */
784
- type Outbound = ResponseFormatJsonSchema$Outbound;
785
- }
786
- export declare function responseFormatJsonSchemaToJSON(responseFormatJsonSchema: ResponseFormatJsonSchema): string;
787
- export declare function responseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<ResponseFormatJsonSchema, SDKValidationError>;
788
- /** @internal */
789
- export declare const CreatePromptVersionResponseFormat1$inboundSchema: z.ZodType<CreatePromptVersionResponseFormat1, z.ZodTypeDef, unknown>;
790
- /** @internal */
791
- export type CreatePromptVersionResponseFormat1$Outbound = {
792
- type: string;
793
- json_schema: ResponseFormatJsonSchema$Outbound;
794
- };
795
- /** @internal */
796
- export declare const CreatePromptVersionResponseFormat1$outboundSchema: z.ZodType<CreatePromptVersionResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat1>;
797
- /**
798
- * @internal
799
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
800
- */
801
- export declare namespace CreatePromptVersionResponseFormat1$ {
802
- /** @deprecated use `CreatePromptVersionResponseFormat1$inboundSchema` instead. */
803
- const inboundSchema: z.ZodType<CreatePromptVersionResponseFormat1, z.ZodTypeDef, unknown>;
804
- /** @deprecated use `CreatePromptVersionResponseFormat1$outboundSchema` instead. */
805
- const outboundSchema: z.ZodType<CreatePromptVersionResponseFormat1$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat1>;
806
- /** @deprecated use `CreatePromptVersionResponseFormat1$Outbound` instead. */
807
- type Outbound = CreatePromptVersionResponseFormat1$Outbound;
808
- }
809
- export declare function createPromptVersionResponseFormat1ToJSON(createPromptVersionResponseFormat1: CreatePromptVersionResponseFormat1): string;
810
- export declare function createPromptVersionResponseFormat1FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormat1, SDKValidationError>;
811
- /** @internal */
812
- export declare const CreatePromptVersionResponseFormat$inboundSchema: z.ZodType<CreatePromptVersionResponseFormat, z.ZodTypeDef, unknown>;
813
- /** @internal */
814
- export type CreatePromptVersionResponseFormat$Outbound = CreatePromptVersionResponseFormat2$Outbound | CreatePromptVersionResponseFormat1$Outbound;
815
- /** @internal */
816
- export declare const CreatePromptVersionResponseFormat$outboundSchema: z.ZodType<CreatePromptVersionResponseFormat$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat>;
817
- /**
818
- * @internal
819
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
820
- */
821
- export declare namespace CreatePromptVersionResponseFormat$ {
822
- /** @deprecated use `CreatePromptVersionResponseFormat$inboundSchema` instead. */
823
- const inboundSchema: z.ZodType<CreatePromptVersionResponseFormat, z.ZodTypeDef, unknown>;
824
- /** @deprecated use `CreatePromptVersionResponseFormat$outboundSchema` instead. */
825
- const outboundSchema: z.ZodType<CreatePromptVersionResponseFormat$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormat>;
826
- /** @deprecated use `CreatePromptVersionResponseFormat$Outbound` instead. */
827
- type Outbound = CreatePromptVersionResponseFormat$Outbound;
828
- }
829
- export declare function createPromptVersionResponseFormatToJSON(createPromptVersionResponseFormat: CreatePromptVersionResponseFormat): string;
830
- export declare function createPromptVersionResponseFormatFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormat, SDKValidationError>;
831
- /** @internal */
832
- export declare const CreatePromptVersionPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPhotoRealVersion>;
833
- /** @internal */
834
- export declare const CreatePromptVersionPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPhotoRealVersion>;
835
- /**
836
- * @internal
837
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
838
- */
839
- export declare namespace CreatePromptVersionPhotoRealVersion$ {
840
- /** @deprecated use `CreatePromptVersionPhotoRealVersion$inboundSchema` instead. */
841
- const inboundSchema: z.ZodNativeEnum<{
842
- readonly V1: "v1";
843
- readonly V2: "v2";
844
- }>;
845
- /** @deprecated use `CreatePromptVersionPhotoRealVersion$outboundSchema` instead. */
846
- const outboundSchema: z.ZodNativeEnum<{
847
- readonly V1: "v1";
848
- readonly V2: "v2";
849
- }>;
850
- }
851
- /** @internal */
852
- export declare const CreatePromptVersionEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionEncodingFormat>;
853
- /** @internal */
854
- export declare const CreatePromptVersionEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionEncodingFormat>;
855
- /**
856
- * @internal
857
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
858
- */
859
- export declare namespace CreatePromptVersionEncodingFormat$ {
860
- /** @deprecated use `CreatePromptVersionEncodingFormat$inboundSchema` instead. */
861
- const inboundSchema: z.ZodNativeEnum<{
862
- readonly Float: "float";
863
- readonly Base64: "base64";
864
- }>;
865
- /** @deprecated use `CreatePromptVersionEncodingFormat$outboundSchema` instead. */
866
- const outboundSchema: z.ZodNativeEnum<{
867
- readonly Float: "float";
868
- readonly Base64: "base64";
869
- }>;
870
- }
871
- /** @internal */
872
- export declare const CreatePromptVersionModelParameters$inboundSchema: z.ZodType<CreatePromptVersionModelParameters, z.ZodTypeDef, unknown>;
873
- /** @internal */
874
- export type CreatePromptVersionModelParameters$Outbound = {
875
- temperature?: number | undefined;
876
- maxTokens?: number | undefined;
877
- topK?: number | undefined;
878
- topP?: number | undefined;
879
- frequencyPenalty?: number | undefined;
880
- presencePenalty?: number | undefined;
881
- numImages?: number | undefined;
882
- seed?: number | undefined;
883
- format?: string | undefined;
884
- dimensions?: string | undefined;
885
- quality?: string | undefined;
886
- style?: string | undefined;
887
- responseFormat?: CreatePromptVersionResponseFormat2$Outbound | CreatePromptVersionResponseFormat1$Outbound | null | undefined;
888
- photoRealVersion?: string | undefined;
889
- encoding_format?: string | undefined;
890
- };
891
- /** @internal */
892
- export declare const CreatePromptVersionModelParameters$outboundSchema: z.ZodType<CreatePromptVersionModelParameters$Outbound, z.ZodTypeDef, CreatePromptVersionModelParameters>;
893
- /**
894
- * @internal
895
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
896
- */
897
- export declare namespace CreatePromptVersionModelParameters$ {
898
- /** @deprecated use `CreatePromptVersionModelParameters$inboundSchema` instead. */
899
- const inboundSchema: z.ZodType<CreatePromptVersionModelParameters, z.ZodTypeDef, unknown>;
900
- /** @deprecated use `CreatePromptVersionModelParameters$outboundSchema` instead. */
901
- const outboundSchema: z.ZodType<CreatePromptVersionModelParameters$Outbound, z.ZodTypeDef, CreatePromptVersionModelParameters>;
902
- /** @deprecated use `CreatePromptVersionModelParameters$Outbound` instead. */
903
- type Outbound = CreatePromptVersionModelParameters$Outbound;
904
- }
905
- export declare function createPromptVersionModelParametersToJSON(createPromptVersionModelParameters: CreatePromptVersionModelParameters): string;
906
- export declare function createPromptVersionModelParametersFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionModelParameters, SDKValidationError>;
907
- /** @internal */
908
- export declare const CreatePromptVersionProvider$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionProvider>;
909
- /** @internal */
910
- export declare const CreatePromptVersionProvider$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionProvider>;
911
- /**
912
- * @internal
913
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
914
- */
915
- export declare namespace CreatePromptVersionProvider$ {
916
- /** @deprecated use `CreatePromptVersionProvider$inboundSchema` instead. */
917
- const inboundSchema: z.ZodNativeEnum<{
918
- readonly Cohere: "cohere";
919
- readonly Openai: "openai";
920
- readonly Anthropic: "anthropic";
921
- readonly Huggingface: "huggingface";
922
- readonly Replicate: "replicate";
923
- readonly Google: "google";
924
- readonly GoogleAi: "google-ai";
925
- readonly Azure: "azure";
926
- readonly Aws: "aws";
927
- readonly Anyscale: "anyscale";
928
- readonly Perplexity: "perplexity";
929
- readonly Groq: "groq";
930
- readonly Fal: "fal";
931
- readonly Leonardoai: "leonardoai";
932
- readonly Nvidia: "nvidia";
933
- readonly Jina: "jina";
934
- }>;
935
- /** @deprecated use `CreatePromptVersionProvider$outboundSchema` instead. */
936
- const outboundSchema: z.ZodNativeEnum<{
937
- readonly Cohere: "cohere";
938
- readonly Openai: "openai";
939
- readonly Anthropic: "anthropic";
940
- readonly Huggingface: "huggingface";
941
- readonly Replicate: "replicate";
942
- readonly Google: "google";
943
- readonly GoogleAi: "google-ai";
944
- readonly Azure: "azure";
945
- readonly Aws: "aws";
946
- readonly Anyscale: "anyscale";
947
- readonly Perplexity: "perplexity";
948
- readonly Groq: "groq";
949
- readonly Fal: "fal";
950
- readonly Leonardoai: "leonardoai";
951
- readonly Nvidia: "nvidia";
952
- readonly Jina: "jina";
953
- }>;
954
- }
955
- /** @internal */
956
- export declare const CreatePromptVersionRole$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionRole>;
957
- /** @internal */
958
- export declare const CreatePromptVersionRole$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionRole>;
959
- /**
960
- * @internal
961
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
962
- */
963
- export declare namespace CreatePromptVersionRole$ {
964
- /** @deprecated use `CreatePromptVersionRole$inboundSchema` instead. */
965
- const inboundSchema: z.ZodNativeEnum<{
966
- readonly System: "system";
967
- readonly Assistant: "assistant";
968
- readonly User: "user";
969
- readonly Exception: "exception";
970
- readonly Tool: "tool";
971
- readonly Prompt: "prompt";
972
- readonly Correction: "correction";
973
- readonly ExpectedOutput: "expected_output";
974
- }>;
975
- /** @deprecated use `CreatePromptVersionRole$outboundSchema` instead. */
976
- const outboundSchema: z.ZodNativeEnum<{
977
- readonly System: "system";
978
- readonly Assistant: "assistant";
979
- readonly User: "user";
980
- readonly Exception: "exception";
981
- readonly Tool: "tool";
982
- readonly Prompt: "prompt";
983
- readonly Correction: "correction";
984
- readonly ExpectedOutput: "expected_output";
985
- }>;
986
- }
987
- /** @internal */
988
- export declare const CreatePromptVersion2PromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsType>;
989
- /** @internal */
990
- export declare const CreatePromptVersion2PromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsType>;
991
- /**
992
- * @internal
993
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
994
- */
995
- export declare namespace CreatePromptVersion2PromptsType$ {
996
- /** @deprecated use `CreatePromptVersion2PromptsType$inboundSchema` instead. */
997
- const inboundSchema: z.ZodNativeEnum<{
998
- readonly ImageUrl: "image_url";
999
- }>;
1000
- /** @deprecated use `CreatePromptVersion2PromptsType$outboundSchema` instead. */
1001
- const outboundSchema: z.ZodNativeEnum<{
1002
- readonly ImageUrl: "image_url";
1003
- }>;
1004
- }
1005
- /** @internal */
1006
- export declare const CreatePromptVersion2ImageUrl$inboundSchema: z.ZodType<CreatePromptVersion2ImageUrl, z.ZodTypeDef, unknown>;
1007
- /** @internal */
1008
- export type CreatePromptVersion2ImageUrl$Outbound = {
1009
- url: string;
1010
- detail?: string | undefined;
1011
- };
1012
- /** @internal */
1013
- export declare const CreatePromptVersion2ImageUrl$outboundSchema: z.ZodType<CreatePromptVersion2ImageUrl$Outbound, z.ZodTypeDef, CreatePromptVersion2ImageUrl>;
1014
- /**
1015
- * @internal
1016
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1017
- */
1018
- export declare namespace CreatePromptVersion2ImageUrl$ {
1019
- /** @deprecated use `CreatePromptVersion2ImageUrl$inboundSchema` instead. */
1020
- const inboundSchema: z.ZodType<CreatePromptVersion2ImageUrl, z.ZodTypeDef, unknown>;
1021
- /** @deprecated use `CreatePromptVersion2ImageUrl$outboundSchema` instead. */
1022
- const outboundSchema: z.ZodType<CreatePromptVersion2ImageUrl$Outbound, z.ZodTypeDef, CreatePromptVersion2ImageUrl>;
1023
- /** @deprecated use `CreatePromptVersion2ImageUrl$Outbound` instead. */
1024
- type Outbound = CreatePromptVersion2ImageUrl$Outbound;
1025
- }
1026
- export declare function createPromptVersion2ImageUrlToJSON(createPromptVersion2ImageUrl: CreatePromptVersion2ImageUrl): string;
1027
- export declare function createPromptVersion2ImageUrlFromJSON(jsonString: string): SafeParseResult<CreatePromptVersion2ImageUrl, SDKValidationError>;
1028
- /** @internal */
1029
- export declare const CreatePromptVersion22$inboundSchema: z.ZodType<CreatePromptVersion22, z.ZodTypeDef, unknown>;
1030
- /** @internal */
1031
- export type CreatePromptVersion22$Outbound = {
1032
- type: string;
1033
- image_url: CreatePromptVersion2ImageUrl$Outbound;
1034
- };
1035
- /** @internal */
1036
- export declare const CreatePromptVersion22$outboundSchema: z.ZodType<CreatePromptVersion22$Outbound, z.ZodTypeDef, CreatePromptVersion22>;
1037
- /**
1038
- * @internal
1039
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1040
- */
1041
- export declare namespace CreatePromptVersion22$ {
1042
- /** @deprecated use `CreatePromptVersion22$inboundSchema` instead. */
1043
- const inboundSchema: z.ZodType<CreatePromptVersion22, z.ZodTypeDef, unknown>;
1044
- /** @deprecated use `CreatePromptVersion22$outboundSchema` instead. */
1045
- const outboundSchema: z.ZodType<CreatePromptVersion22$Outbound, z.ZodTypeDef, CreatePromptVersion22>;
1046
- /** @deprecated use `CreatePromptVersion22$Outbound` instead. */
1047
- type Outbound = CreatePromptVersion22$Outbound;
1048
- }
1049
- export declare function createPromptVersion22ToJSON(createPromptVersion22: CreatePromptVersion22): string;
1050
- export declare function createPromptVersion22FromJSON(jsonString: string): SafeParseResult<CreatePromptVersion22, SDKValidationError>;
1051
- /** @internal */
1052
- export declare const CreatePromptVersion2Type$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2Type>;
1053
- /** @internal */
1054
- export declare const CreatePromptVersion2Type$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2Type>;
1055
- /**
1056
- * @internal
1057
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1058
- */
1059
- export declare namespace CreatePromptVersion2Type$ {
1060
- /** @deprecated use `CreatePromptVersion2Type$inboundSchema` instead. */
1061
- const inboundSchema: z.ZodNativeEnum<{
1062
- readonly Text: "text";
1063
- }>;
1064
- /** @deprecated use `CreatePromptVersion2Type$outboundSchema` instead. */
1065
- const outboundSchema: z.ZodNativeEnum<{
1066
- readonly Text: "text";
1067
- }>;
1068
- }
1069
- /** @internal */
1070
- export declare const CreatePromptVersion21$inboundSchema: z.ZodType<CreatePromptVersion21, z.ZodTypeDef, unknown>;
1071
- /** @internal */
1072
- export type CreatePromptVersion21$Outbound = {
1073
- type: string;
1074
- text: string;
1075
- };
1076
- /** @internal */
1077
- export declare const CreatePromptVersion21$outboundSchema: z.ZodType<CreatePromptVersion21$Outbound, z.ZodTypeDef, CreatePromptVersion21>;
1078
- /**
1079
- * @internal
1080
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1081
- */
1082
- export declare namespace CreatePromptVersion21$ {
1083
- /** @deprecated use `CreatePromptVersion21$inboundSchema` instead. */
1084
- const inboundSchema: z.ZodType<CreatePromptVersion21, z.ZodTypeDef, unknown>;
1085
- /** @deprecated use `CreatePromptVersion21$outboundSchema` instead. */
1086
- const outboundSchema: z.ZodType<CreatePromptVersion21$Outbound, z.ZodTypeDef, CreatePromptVersion21>;
1087
- /** @deprecated use `CreatePromptVersion21$Outbound` instead. */
1088
- type Outbound = CreatePromptVersion21$Outbound;
1089
- }
1090
- export declare function createPromptVersion21ToJSON(createPromptVersion21: CreatePromptVersion21): string;
1091
- export declare function createPromptVersion21FromJSON(jsonString: string): SafeParseResult<CreatePromptVersion21, SDKValidationError>;
1092
- /** @internal */
1093
- export declare const CreatePromptVersionContent2$inboundSchema: z.ZodType<CreatePromptVersionContent2, z.ZodTypeDef, unknown>;
1094
- /** @internal */
1095
- export type CreatePromptVersionContent2$Outbound = CreatePromptVersion21$Outbound | CreatePromptVersion22$Outbound;
1096
- /** @internal */
1097
- export declare const CreatePromptVersionContent2$outboundSchema: z.ZodType<CreatePromptVersionContent2$Outbound, z.ZodTypeDef, CreatePromptVersionContent2>;
1098
- /**
1099
- * @internal
1100
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1101
- */
1102
- export declare namespace CreatePromptVersionContent2$ {
1103
- /** @deprecated use `CreatePromptVersionContent2$inboundSchema` instead. */
1104
- const inboundSchema: z.ZodType<CreatePromptVersionContent2, z.ZodTypeDef, unknown>;
1105
- /** @deprecated use `CreatePromptVersionContent2$outboundSchema` instead. */
1106
- const outboundSchema: z.ZodType<CreatePromptVersionContent2$Outbound, z.ZodTypeDef, CreatePromptVersionContent2>;
1107
- /** @deprecated use `CreatePromptVersionContent2$Outbound` instead. */
1108
- type Outbound = CreatePromptVersionContent2$Outbound;
1109
- }
1110
- export declare function createPromptVersionContent2ToJSON(createPromptVersionContent2: CreatePromptVersionContent2): string;
1111
- export declare function createPromptVersionContent2FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionContent2, SDKValidationError>;
1112
- /** @internal */
1113
- export declare const CreatePromptVersionContent$inboundSchema: z.ZodType<CreatePromptVersionContent, z.ZodTypeDef, unknown>;
1114
- /** @internal */
1115
- export type CreatePromptVersionContent$Outbound = string | Array<CreatePromptVersion21$Outbound | CreatePromptVersion22$Outbound>;
1116
- /** @internal */
1117
- export declare const CreatePromptVersionContent$outboundSchema: z.ZodType<CreatePromptVersionContent$Outbound, z.ZodTypeDef, CreatePromptVersionContent>;
1118
- /**
1119
- * @internal
1120
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1121
- */
1122
- export declare namespace CreatePromptVersionContent$ {
1123
- /** @deprecated use `CreatePromptVersionContent$inboundSchema` instead. */
1124
- const inboundSchema: z.ZodType<CreatePromptVersionContent, z.ZodTypeDef, unknown>;
1125
- /** @deprecated use `CreatePromptVersionContent$outboundSchema` instead. */
1126
- const outboundSchema: z.ZodType<CreatePromptVersionContent$Outbound, z.ZodTypeDef, CreatePromptVersionContent>;
1127
- /** @deprecated use `CreatePromptVersionContent$Outbound` instead. */
1128
- type Outbound = CreatePromptVersionContent$Outbound;
1129
- }
1130
- export declare function createPromptVersionContentToJSON(createPromptVersionContent: CreatePromptVersionContent): string;
1131
- export declare function createPromptVersionContentFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionContent, SDKValidationError>;
1132
- /** @internal */
1133
- export declare const CreatePromptVersionType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionType>;
1134
- /** @internal */
1135
- export declare const CreatePromptVersionType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionType>;
1136
- /**
1137
- * @internal
1138
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1139
- */
1140
- export declare namespace CreatePromptVersionType$ {
1141
- /** @deprecated use `CreatePromptVersionType$inboundSchema` instead. */
1142
- const inboundSchema: z.ZodNativeEnum<{
1143
- readonly Function: "function";
1144
- }>;
1145
- /** @deprecated use `CreatePromptVersionType$outboundSchema` instead. */
1146
- const outboundSchema: z.ZodNativeEnum<{
1147
- readonly Function: "function";
1148
- }>;
1149
- }
1150
- /** @internal */
1151
- export declare const CreatePromptVersionFunction$inboundSchema: z.ZodType<CreatePromptVersionFunction, z.ZodTypeDef, unknown>;
1152
- /** @internal */
1153
- export type CreatePromptVersionFunction$Outbound = {
1154
- name: string;
1155
- arguments: string;
1156
- };
1157
- /** @internal */
1158
- export declare const CreatePromptVersionFunction$outboundSchema: z.ZodType<CreatePromptVersionFunction$Outbound, z.ZodTypeDef, CreatePromptVersionFunction>;
1159
- /**
1160
- * @internal
1161
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1162
- */
1163
- export declare namespace CreatePromptVersionFunction$ {
1164
- /** @deprecated use `CreatePromptVersionFunction$inboundSchema` instead. */
1165
- const inboundSchema: z.ZodType<CreatePromptVersionFunction, z.ZodTypeDef, unknown>;
1166
- /** @deprecated use `CreatePromptVersionFunction$outboundSchema` instead. */
1167
- const outboundSchema: z.ZodType<CreatePromptVersionFunction$Outbound, z.ZodTypeDef, CreatePromptVersionFunction>;
1168
- /** @deprecated use `CreatePromptVersionFunction$Outbound` instead. */
1169
- type Outbound = CreatePromptVersionFunction$Outbound;
1170
- }
1171
- export declare function createPromptVersionFunctionToJSON(createPromptVersionFunction: CreatePromptVersionFunction): string;
1172
- export declare function createPromptVersionFunctionFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionFunction, SDKValidationError>;
1173
- /** @internal */
1174
- export declare const CreatePromptVersionToolCalls$inboundSchema: z.ZodType<CreatePromptVersionToolCalls, z.ZodTypeDef, unknown>;
1175
- /** @internal */
1176
- export type CreatePromptVersionToolCalls$Outbound = {
1177
- id?: string | undefined;
1178
- index?: number | undefined;
1179
- type: string;
1180
- function: CreatePromptVersionFunction$Outbound;
1181
- };
1182
- /** @internal */
1183
- export declare const CreatePromptVersionToolCalls$outboundSchema: z.ZodType<CreatePromptVersionToolCalls$Outbound, z.ZodTypeDef, CreatePromptVersionToolCalls>;
1184
- /**
1185
- * @internal
1186
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1187
- */
1188
- export declare namespace CreatePromptVersionToolCalls$ {
1189
- /** @deprecated use `CreatePromptVersionToolCalls$inboundSchema` instead. */
1190
- const inboundSchema: z.ZodType<CreatePromptVersionToolCalls, z.ZodTypeDef, unknown>;
1191
- /** @deprecated use `CreatePromptVersionToolCalls$outboundSchema` instead. */
1192
- const outboundSchema: z.ZodType<CreatePromptVersionToolCalls$Outbound, z.ZodTypeDef, CreatePromptVersionToolCalls>;
1193
- /** @deprecated use `CreatePromptVersionToolCalls$Outbound` instead. */
1194
- type Outbound = CreatePromptVersionToolCalls$Outbound;
1195
- }
1196
- export declare function createPromptVersionToolCallsToJSON(createPromptVersionToolCalls: CreatePromptVersionToolCalls): string;
1197
- export declare function createPromptVersionToolCallsFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionToolCalls, SDKValidationError>;
1198
- /** @internal */
1199
- export declare const CreatePromptVersionMessages$inboundSchema: z.ZodType<CreatePromptVersionMessages, z.ZodTypeDef, unknown>;
1200
- /** @internal */
1201
- export type CreatePromptVersionMessages$Outbound = {
1202
- role: string;
1203
- content: string | Array<CreatePromptVersion21$Outbound | CreatePromptVersion22$Outbound>;
1204
- tool_calls?: Array<CreatePromptVersionToolCalls$Outbound> | undefined;
1205
- };
1206
- /** @internal */
1207
- export declare const CreatePromptVersionMessages$outboundSchema: z.ZodType<CreatePromptVersionMessages$Outbound, z.ZodTypeDef, CreatePromptVersionMessages>;
1208
- /**
1209
- * @internal
1210
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1211
- */
1212
- export declare namespace CreatePromptVersionMessages$ {
1213
- /** @deprecated use `CreatePromptVersionMessages$inboundSchema` instead. */
1214
- const inboundSchema: z.ZodType<CreatePromptVersionMessages, z.ZodTypeDef, unknown>;
1215
- /** @deprecated use `CreatePromptVersionMessages$outboundSchema` instead. */
1216
- const outboundSchema: z.ZodType<CreatePromptVersionMessages$Outbound, z.ZodTypeDef, CreatePromptVersionMessages>;
1217
- /** @deprecated use `CreatePromptVersionMessages$Outbound` instead. */
1218
- type Outbound = CreatePromptVersionMessages$Outbound;
1219
- }
1220
- export declare function createPromptVersionMessagesToJSON(createPromptVersionMessages: CreatePromptVersionMessages): string;
1221
- export declare function createPromptVersionMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionMessages, SDKValidationError>;
1222
- /** @internal */
1223
- export declare const CreatePromptVersionPromptConfig$inboundSchema: z.ZodType<CreatePromptVersionPromptConfig, z.ZodTypeDef, unknown>;
1224
- /** @internal */
1225
- export type CreatePromptVersionPromptConfig$Outbound = {
1226
- stream?: boolean | undefined;
1227
- model?: string | undefined;
1228
- model_type?: string | undefined;
1229
- model_parameters?: CreatePromptVersionModelParameters$Outbound | undefined;
1230
- provider?: string | undefined;
1231
- version?: string | undefined;
1232
- messages: Array<CreatePromptVersionMessages$Outbound>;
1233
- };
1234
- /** @internal */
1235
- export declare const CreatePromptVersionPromptConfig$outboundSchema: z.ZodType<CreatePromptVersionPromptConfig$Outbound, z.ZodTypeDef, CreatePromptVersionPromptConfig>;
1236
- /**
1237
- * @internal
1238
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1239
- */
1240
- export declare namespace CreatePromptVersionPromptConfig$ {
1241
- /** @deprecated use `CreatePromptVersionPromptConfig$inboundSchema` instead. */
1242
- const inboundSchema: z.ZodType<CreatePromptVersionPromptConfig, z.ZodTypeDef, unknown>;
1243
- /** @deprecated use `CreatePromptVersionPromptConfig$outboundSchema` instead. */
1244
- const outboundSchema: z.ZodType<CreatePromptVersionPromptConfig$Outbound, z.ZodTypeDef, CreatePromptVersionPromptConfig>;
1245
- /** @deprecated use `CreatePromptVersionPromptConfig$Outbound` instead. */
1246
- type Outbound = CreatePromptVersionPromptConfig$Outbound;
1247
- }
1248
- export declare function createPromptVersionPromptConfigToJSON(createPromptVersionPromptConfig: CreatePromptVersionPromptConfig): string;
1249
- export declare function createPromptVersionPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptConfig, SDKValidationError>;
1250
- /** @internal */
1251
- export declare const CreatePromptVersionMetadata$inboundSchema: z.ZodType<CreatePromptVersionMetadata, z.ZodTypeDef, unknown>;
1252
- /** @internal */
1253
- export type CreatePromptVersionMetadata$Outbound = {
1254
- use_cases?: Array<string> | undefined;
1255
- language?: string | undefined;
1256
- };
1257
- /** @internal */
1258
- export declare const CreatePromptVersionMetadata$outboundSchema: z.ZodType<CreatePromptVersionMetadata$Outbound, z.ZodTypeDef, CreatePromptVersionMetadata>;
1259
- /**
1260
- * @internal
1261
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1262
- */
1263
- export declare namespace CreatePromptVersionMetadata$ {
1264
- /** @deprecated use `CreatePromptVersionMetadata$inboundSchema` instead. */
1265
- const inboundSchema: z.ZodType<CreatePromptVersionMetadata, z.ZodTypeDef, unknown>;
1266
- /** @deprecated use `CreatePromptVersionMetadata$outboundSchema` instead. */
1267
- const outboundSchema: z.ZodType<CreatePromptVersionMetadata$Outbound, z.ZodTypeDef, CreatePromptVersionMetadata>;
1268
- /** @deprecated use `CreatePromptVersionMetadata$Outbound` instead. */
1269
- type Outbound = CreatePromptVersionMetadata$Outbound;
1270
- }
1271
- export declare function createPromptVersionMetadataToJSON(createPromptVersionMetadata: CreatePromptVersionMetadata): string;
1272
- export declare function createPromptVersionMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionMetadata, SDKValidationError>;
1273
- /** @internal */
1274
- export declare const CreatePromptVersionRequestBody$inboundSchema: z.ZodType<CreatePromptVersionRequestBody, z.ZodTypeDef, unknown>;
1275
- /** @internal */
1276
- export type CreatePromptVersionRequestBody$Outbound = {
1277
- display_name: string;
1278
- description?: string | null | undefined;
1279
- prompt_config: CreatePromptVersionPromptConfig$Outbound;
1280
- metadata: CreatePromptVersionMetadata$Outbound;
1281
- commit: string;
1282
- timestamp: string;
1283
- };
1284
- /** @internal */
1285
- export declare const CreatePromptVersionRequestBody$outboundSchema: z.ZodType<CreatePromptVersionRequestBody$Outbound, z.ZodTypeDef, CreatePromptVersionRequestBody>;
1286
- /**
1287
- * @internal
1288
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1289
- */
1290
- export declare namespace CreatePromptVersionRequestBody$ {
1291
- /** @deprecated use `CreatePromptVersionRequestBody$inboundSchema` instead. */
1292
- const inboundSchema: z.ZodType<CreatePromptVersionRequestBody, z.ZodTypeDef, unknown>;
1293
- /** @deprecated use `CreatePromptVersionRequestBody$outboundSchema` instead. */
1294
- const outboundSchema: z.ZodType<CreatePromptVersionRequestBody$Outbound, z.ZodTypeDef, CreatePromptVersionRequestBody>;
1295
- /** @deprecated use `CreatePromptVersionRequestBody$Outbound` instead. */
1296
- type Outbound = CreatePromptVersionRequestBody$Outbound;
1297
- }
1298
- export declare function createPromptVersionRequestBodyToJSON(createPromptVersionRequestBody: CreatePromptVersionRequestBody): string;
1299
- export declare function createPromptVersionRequestBodyFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionRequestBody, SDKValidationError>;
1300
- /** @internal */
1301
- export declare const CreatePromptVersionRequest$inboundSchema: z.ZodType<CreatePromptVersionRequest, z.ZodTypeDef, unknown>;
1302
- /** @internal */
1303
- export type CreatePromptVersionRequest$Outbound = {
1304
- id: string;
1305
- RequestBody?: CreatePromptVersionRequestBody$Outbound | undefined;
1306
- };
1307
- /** @internal */
1308
- export declare const CreatePromptVersionRequest$outboundSchema: z.ZodType<CreatePromptVersionRequest$Outbound, z.ZodTypeDef, CreatePromptVersionRequest>;
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 declare namespace CreatePromptVersionRequest$ {
1314
- /** @deprecated use `CreatePromptVersionRequest$inboundSchema` instead. */
1315
- const inboundSchema: z.ZodType<CreatePromptVersionRequest, z.ZodTypeDef, unknown>;
1316
- /** @deprecated use `CreatePromptVersionRequest$outboundSchema` instead. */
1317
- const outboundSchema: z.ZodType<CreatePromptVersionRequest$Outbound, z.ZodTypeDef, CreatePromptVersionRequest>;
1318
- /** @deprecated use `CreatePromptVersionRequest$Outbound` instead. */
1319
- type Outbound = CreatePromptVersionRequest$Outbound;
1320
- }
1321
- export declare function createPromptVersionRequestToJSON(createPromptVersionRequest: CreatePromptVersionRequest): string;
1322
- export declare function createPromptVersionRequestFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionRequest, SDKValidationError>;
1323
- /** @internal */
1324
- export declare const CreatePromptVersionPromptsModelType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsModelType>;
1325
- /** @internal */
1326
- export declare const CreatePromptVersionPromptsModelType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsModelType>;
1327
- /**
1328
- * @internal
1329
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1330
- */
1331
- export declare namespace CreatePromptVersionPromptsModelType$ {
1332
- /** @deprecated use `CreatePromptVersionPromptsModelType$inboundSchema` instead. */
1333
- const inboundSchema: z.ZodNativeEnum<{
1334
- readonly Chat: "chat";
1335
- readonly Completion: "completion";
1336
- readonly Embedding: "embedding";
1337
- readonly Vision: "vision";
1338
- readonly Image: "image";
1339
- readonly Tts: "tts";
1340
- readonly Stt: "stt";
1341
- readonly Rerank: "rerank";
1342
- readonly Moderations: "moderations";
1343
- }>;
1344
- /** @deprecated use `CreatePromptVersionPromptsModelType$outboundSchema` instead. */
1345
- const outboundSchema: z.ZodNativeEnum<{
1346
- readonly Chat: "chat";
1347
- readonly Completion: "completion";
1348
- readonly Embedding: "embedding";
1349
- readonly Vision: "vision";
1350
- readonly Image: "image";
1351
- readonly Tts: "tts";
1352
- readonly Stt: "stt";
1353
- readonly Rerank: "rerank";
1354
- readonly Moderations: "moderations";
1355
- }>;
1356
- }
1357
- /** @internal */
1358
- export declare const CreatePromptVersionPromptsFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsFormat>;
1359
- /** @internal */
1360
- export declare const CreatePromptVersionPromptsFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsFormat>;
1361
- /**
1362
- * @internal
1363
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1364
- */
1365
- export declare namespace CreatePromptVersionPromptsFormat$ {
1366
- /** @deprecated use `CreatePromptVersionPromptsFormat$inboundSchema` instead. */
1367
- const inboundSchema: z.ZodNativeEnum<{
1368
- readonly Url: "url";
1369
- readonly B64Json: "b64_json";
1370
- readonly Text: "text";
1371
- readonly JsonObject: "json_object";
1372
- }>;
1373
- /** @deprecated use `CreatePromptVersionPromptsFormat$outboundSchema` instead. */
1374
- const outboundSchema: z.ZodNativeEnum<{
1375
- readonly Url: "url";
1376
- readonly B64Json: "b64_json";
1377
- readonly Text: "text";
1378
- readonly JsonObject: "json_object";
1379
- }>;
1380
- }
1381
- /** @internal */
1382
- export declare const CreatePromptVersionPromptsQuality$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsQuality>;
1383
- /** @internal */
1384
- export declare const CreatePromptVersionPromptsQuality$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsQuality>;
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 declare namespace CreatePromptVersionPromptsQuality$ {
1390
- /** @deprecated use `CreatePromptVersionPromptsQuality$inboundSchema` instead. */
1391
- const inboundSchema: z.ZodNativeEnum<{
1392
- readonly Standard: "standard";
1393
- readonly Hd: "hd";
1394
- }>;
1395
- /** @deprecated use `CreatePromptVersionPromptsQuality$outboundSchema` instead. */
1396
- const outboundSchema: z.ZodNativeEnum<{
1397
- readonly Standard: "standard";
1398
- readonly Hd: "hd";
1399
- }>;
1400
- }
1401
- /** @internal */
1402
- export declare const CreatePromptVersionResponseFormatPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsResponse200Type>;
1403
- /** @internal */
1404
- export declare const CreatePromptVersionResponseFormatPromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsResponse200Type>;
1405
- /**
1406
- * @internal
1407
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1408
- */
1409
- export declare namespace CreatePromptVersionResponseFormatPromptsResponse200Type$ {
1410
- /** @deprecated use `CreatePromptVersionResponseFormatPromptsResponse200Type$inboundSchema` instead. */
1411
- const inboundSchema: z.ZodNativeEnum<{
1412
- readonly JsonObject: "json_object";
1413
- }>;
1414
- /** @deprecated use `CreatePromptVersionResponseFormatPromptsResponse200Type$outboundSchema` instead. */
1415
- const outboundSchema: z.ZodNativeEnum<{
1416
- readonly JsonObject: "json_object";
1417
- }>;
1418
- }
1419
- /** @internal */
1420
- export declare const CreatePromptVersionResponseFormatPrompts2$inboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts2, z.ZodTypeDef, unknown>;
1421
- /** @internal */
1422
- export type CreatePromptVersionResponseFormatPrompts2$Outbound = {
1423
- type: string;
1424
- };
1425
- /** @internal */
1426
- export declare const CreatePromptVersionResponseFormatPrompts2$outboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts2$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatPrompts2>;
1427
- /**
1428
- * @internal
1429
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1430
- */
1431
- export declare namespace CreatePromptVersionResponseFormatPrompts2$ {
1432
- /** @deprecated use `CreatePromptVersionResponseFormatPrompts2$inboundSchema` instead. */
1433
- const inboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts2, z.ZodTypeDef, unknown>;
1434
- /** @deprecated use `CreatePromptVersionResponseFormatPrompts2$outboundSchema` instead. */
1435
- const outboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts2$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatPrompts2>;
1436
- /** @deprecated use `CreatePromptVersionResponseFormatPrompts2$Outbound` instead. */
1437
- type Outbound = CreatePromptVersionResponseFormatPrompts2$Outbound;
1438
- }
1439
- export declare function createPromptVersionResponseFormatPrompts2ToJSON(createPromptVersionResponseFormatPrompts2: CreatePromptVersionResponseFormatPrompts2): string;
1440
- export declare function createPromptVersionResponseFormatPrompts2FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormatPrompts2, SDKValidationError>;
1441
- /** @internal */
1442
- export declare const CreatePromptVersionResponseFormatPromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsResponseType>;
1443
- /** @internal */
1444
- export declare const CreatePromptVersionResponseFormatPromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionResponseFormatPromptsResponseType>;
1445
- /**
1446
- * @internal
1447
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1448
- */
1449
- export declare namespace CreatePromptVersionResponseFormatPromptsResponseType$ {
1450
- /** @deprecated use `CreatePromptVersionResponseFormatPromptsResponseType$inboundSchema` instead. */
1451
- const inboundSchema: z.ZodNativeEnum<{
1452
- readonly JsonSchema: "json_schema";
1453
- }>;
1454
- /** @deprecated use `CreatePromptVersionResponseFormatPromptsResponseType$outboundSchema` instead. */
1455
- const outboundSchema: z.ZodNativeEnum<{
1456
- readonly JsonSchema: "json_schema";
1457
- }>;
1458
- }
1459
- /** @internal */
1460
- export declare const CreatePromptVersionResponseFormatJsonSchema$inboundSchema: z.ZodType<CreatePromptVersionResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
1461
- /** @internal */
1462
- export type CreatePromptVersionResponseFormatJsonSchema$Outbound = {
1463
- name: string;
1464
- strict: boolean;
1465
- schema: {
1466
- [k: string]: any;
1467
- };
1468
- };
1469
- /** @internal */
1470
- export declare const CreatePromptVersionResponseFormatJsonSchema$outboundSchema: z.ZodType<CreatePromptVersionResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatJsonSchema>;
1471
- /**
1472
- * @internal
1473
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1474
- */
1475
- export declare namespace CreatePromptVersionResponseFormatJsonSchema$ {
1476
- /** @deprecated use `CreatePromptVersionResponseFormatJsonSchema$inboundSchema` instead. */
1477
- const inboundSchema: z.ZodType<CreatePromptVersionResponseFormatJsonSchema, z.ZodTypeDef, unknown>;
1478
- /** @deprecated use `CreatePromptVersionResponseFormatJsonSchema$outboundSchema` instead. */
1479
- const outboundSchema: z.ZodType<CreatePromptVersionResponseFormatJsonSchema$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatJsonSchema>;
1480
- /** @deprecated use `CreatePromptVersionResponseFormatJsonSchema$Outbound` instead. */
1481
- type Outbound = CreatePromptVersionResponseFormatJsonSchema$Outbound;
1482
- }
1483
- export declare function createPromptVersionResponseFormatJsonSchemaToJSON(createPromptVersionResponseFormatJsonSchema: CreatePromptVersionResponseFormatJsonSchema): string;
1484
- export declare function createPromptVersionResponseFormatJsonSchemaFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormatJsonSchema, SDKValidationError>;
1485
- /** @internal */
1486
- export declare const CreatePromptVersionResponseFormatPrompts1$inboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts1, z.ZodTypeDef, unknown>;
1487
- /** @internal */
1488
- export type CreatePromptVersionResponseFormatPrompts1$Outbound = {
1489
- type: string;
1490
- json_schema: CreatePromptVersionResponseFormatJsonSchema$Outbound;
1491
- };
1492
- /** @internal */
1493
- export declare const CreatePromptVersionResponseFormatPrompts1$outboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts1$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatPrompts1>;
1494
- /**
1495
- * @internal
1496
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1497
- */
1498
- export declare namespace CreatePromptVersionResponseFormatPrompts1$ {
1499
- /** @deprecated use `CreatePromptVersionResponseFormatPrompts1$inboundSchema` instead. */
1500
- const inboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts1, z.ZodTypeDef, unknown>;
1501
- /** @deprecated use `CreatePromptVersionResponseFormatPrompts1$outboundSchema` instead. */
1502
- const outboundSchema: z.ZodType<CreatePromptVersionResponseFormatPrompts1$Outbound, z.ZodTypeDef, CreatePromptVersionResponseFormatPrompts1>;
1503
- /** @deprecated use `CreatePromptVersionResponseFormatPrompts1$Outbound` instead. */
1504
- type Outbound = CreatePromptVersionResponseFormatPrompts1$Outbound;
1505
- }
1506
- export declare function createPromptVersionResponseFormatPrompts1ToJSON(createPromptVersionResponseFormatPrompts1: CreatePromptVersionResponseFormatPrompts1): string;
1507
- export declare function createPromptVersionResponseFormatPrompts1FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseFormatPrompts1, SDKValidationError>;
1508
- /** @internal */
1509
- export declare const CreatePromptVersionPromptsResponseFormat$inboundSchema: z.ZodType<CreatePromptVersionPromptsResponseFormat, z.ZodTypeDef, unknown>;
1510
- /** @internal */
1511
- export type CreatePromptVersionPromptsResponseFormat$Outbound = CreatePromptVersionResponseFormatPrompts2$Outbound | CreatePromptVersionResponseFormatPrompts1$Outbound;
1512
- /** @internal */
1513
- export declare const CreatePromptVersionPromptsResponseFormat$outboundSchema: z.ZodType<CreatePromptVersionPromptsResponseFormat$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsResponseFormat>;
1514
- /**
1515
- * @internal
1516
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1517
- */
1518
- export declare namespace CreatePromptVersionPromptsResponseFormat$ {
1519
- /** @deprecated use `CreatePromptVersionPromptsResponseFormat$inboundSchema` instead. */
1520
- const inboundSchema: z.ZodType<CreatePromptVersionPromptsResponseFormat, z.ZodTypeDef, unknown>;
1521
- /** @deprecated use `CreatePromptVersionPromptsResponseFormat$outboundSchema` instead. */
1522
- const outboundSchema: z.ZodType<CreatePromptVersionPromptsResponseFormat$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsResponseFormat>;
1523
- /** @deprecated use `CreatePromptVersionPromptsResponseFormat$Outbound` instead. */
1524
- type Outbound = CreatePromptVersionPromptsResponseFormat$Outbound;
1525
- }
1526
- export declare function createPromptVersionPromptsResponseFormatToJSON(createPromptVersionPromptsResponseFormat: CreatePromptVersionPromptsResponseFormat): string;
1527
- export declare function createPromptVersionPromptsResponseFormatFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsResponseFormat, SDKValidationError>;
1528
- /** @internal */
1529
- export declare const CreatePromptVersionPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsPhotoRealVersion>;
1530
- /** @internal */
1531
- export declare const CreatePromptVersionPromptsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsPhotoRealVersion>;
1532
- /**
1533
- * @internal
1534
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1535
- */
1536
- export declare namespace CreatePromptVersionPromptsPhotoRealVersion$ {
1537
- /** @deprecated use `CreatePromptVersionPromptsPhotoRealVersion$inboundSchema` instead. */
1538
- const inboundSchema: z.ZodNativeEnum<{
1539
- readonly V1: "v1";
1540
- readonly V2: "v2";
1541
- }>;
1542
- /** @deprecated use `CreatePromptVersionPromptsPhotoRealVersion$outboundSchema` instead. */
1543
- const outboundSchema: z.ZodNativeEnum<{
1544
- readonly V1: "v1";
1545
- readonly V2: "v2";
1546
- }>;
1547
- }
1548
- /** @internal */
1549
- export declare const CreatePromptVersionPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsEncodingFormat>;
1550
- /** @internal */
1551
- export declare const CreatePromptVersionPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsEncodingFormat>;
1552
- /**
1553
- * @internal
1554
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1555
- */
1556
- export declare namespace CreatePromptVersionPromptsEncodingFormat$ {
1557
- /** @deprecated use `CreatePromptVersionPromptsEncodingFormat$inboundSchema` instead. */
1558
- const inboundSchema: z.ZodNativeEnum<{
1559
- readonly Float: "float";
1560
- readonly Base64: "base64";
1561
- }>;
1562
- /** @deprecated use `CreatePromptVersionPromptsEncodingFormat$outboundSchema` instead. */
1563
- const outboundSchema: z.ZodNativeEnum<{
1564
- readonly Float: "float";
1565
- readonly Base64: "base64";
1566
- }>;
1567
- }
1568
- /** @internal */
1569
- export declare const CreatePromptVersionPromptsModelParameters$inboundSchema: z.ZodType<CreatePromptVersionPromptsModelParameters, z.ZodTypeDef, unknown>;
1570
- /** @internal */
1571
- export type CreatePromptVersionPromptsModelParameters$Outbound = {
1572
- temperature?: number | undefined;
1573
- maxTokens?: number | undefined;
1574
- topK?: number | undefined;
1575
- topP?: number | undefined;
1576
- frequencyPenalty?: number | undefined;
1577
- presencePenalty?: number | undefined;
1578
- numImages?: number | undefined;
1579
- seed?: number | undefined;
1580
- format?: string | undefined;
1581
- dimensions?: string | undefined;
1582
- quality?: string | undefined;
1583
- style?: string | undefined;
1584
- responseFormat?: CreatePromptVersionResponseFormatPrompts2$Outbound | CreatePromptVersionResponseFormatPrompts1$Outbound | null | undefined;
1585
- photoRealVersion?: string | undefined;
1586
- encoding_format?: string | undefined;
1587
- };
1588
- /** @internal */
1589
- export declare const CreatePromptVersionPromptsModelParameters$outboundSchema: z.ZodType<CreatePromptVersionPromptsModelParameters$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsModelParameters>;
1590
- /**
1591
- * @internal
1592
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1593
- */
1594
- export declare namespace CreatePromptVersionPromptsModelParameters$ {
1595
- /** @deprecated use `CreatePromptVersionPromptsModelParameters$inboundSchema` instead. */
1596
- const inboundSchema: z.ZodType<CreatePromptVersionPromptsModelParameters, z.ZodTypeDef, unknown>;
1597
- /** @deprecated use `CreatePromptVersionPromptsModelParameters$outboundSchema` instead. */
1598
- const outboundSchema: z.ZodType<CreatePromptVersionPromptsModelParameters$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsModelParameters>;
1599
- /** @deprecated use `CreatePromptVersionPromptsModelParameters$Outbound` instead. */
1600
- type Outbound = CreatePromptVersionPromptsModelParameters$Outbound;
1601
- }
1602
- export declare function createPromptVersionPromptsModelParametersToJSON(createPromptVersionPromptsModelParameters: CreatePromptVersionPromptsModelParameters): string;
1603
- export declare function createPromptVersionPromptsModelParametersFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsModelParameters, SDKValidationError>;
1604
- /** @internal */
1605
- export declare const CreatePromptVersionPromptsProvider$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsProvider>;
1606
- /** @internal */
1607
- export declare const CreatePromptVersionPromptsProvider$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsProvider>;
1608
- /**
1609
- * @internal
1610
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1611
- */
1612
- export declare namespace CreatePromptVersionPromptsProvider$ {
1613
- /** @deprecated use `CreatePromptVersionPromptsProvider$inboundSchema` instead. */
1614
- const inboundSchema: z.ZodNativeEnum<{
1615
- readonly Cohere: "cohere";
1616
- readonly Openai: "openai";
1617
- readonly Anthropic: "anthropic";
1618
- readonly Huggingface: "huggingface";
1619
- readonly Replicate: "replicate";
1620
- readonly Google: "google";
1621
- readonly GoogleAi: "google-ai";
1622
- readonly Azure: "azure";
1623
- readonly Aws: "aws";
1624
- readonly Anyscale: "anyscale";
1625
- readonly Perplexity: "perplexity";
1626
- readonly Groq: "groq";
1627
- readonly Fal: "fal";
1628
- readonly Leonardoai: "leonardoai";
1629
- readonly Nvidia: "nvidia";
1630
- readonly Jina: "jina";
1631
- }>;
1632
- /** @deprecated use `CreatePromptVersionPromptsProvider$outboundSchema` instead. */
1633
- const outboundSchema: z.ZodNativeEnum<{
1634
- readonly Cohere: "cohere";
1635
- readonly Openai: "openai";
1636
- readonly Anthropic: "anthropic";
1637
- readonly Huggingface: "huggingface";
1638
- readonly Replicate: "replicate";
1639
- readonly Google: "google";
1640
- readonly GoogleAi: "google-ai";
1641
- readonly Azure: "azure";
1642
- readonly Aws: "aws";
1643
- readonly Anyscale: "anyscale";
1644
- readonly Perplexity: "perplexity";
1645
- readonly Groq: "groq";
1646
- readonly Fal: "fal";
1647
- readonly Leonardoai: "leonardoai";
1648
- readonly Nvidia: "nvidia";
1649
- readonly Jina: "jina";
1650
- }>;
1651
- }
1652
- /** @internal */
1653
- export declare const CreatePromptVersionPromptsRole$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsRole>;
1654
- /** @internal */
1655
- export declare const CreatePromptVersionPromptsRole$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsRole>;
1656
- /**
1657
- * @internal
1658
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1659
- */
1660
- export declare namespace CreatePromptVersionPromptsRole$ {
1661
- /** @deprecated use `CreatePromptVersionPromptsRole$inboundSchema` instead. */
1662
- const inboundSchema: z.ZodNativeEnum<{
1663
- readonly System: "system";
1664
- readonly Assistant: "assistant";
1665
- readonly User: "user";
1666
- readonly Exception: "exception";
1667
- readonly Tool: "tool";
1668
- readonly Prompt: "prompt";
1669
- readonly Correction: "correction";
1670
- readonly ExpectedOutput: "expected_output";
1671
- }>;
1672
- /** @deprecated use `CreatePromptVersionPromptsRole$outboundSchema` instead. */
1673
- const outboundSchema: z.ZodNativeEnum<{
1674
- readonly System: "system";
1675
- readonly Assistant: "assistant";
1676
- readonly User: "user";
1677
- readonly Exception: "exception";
1678
- readonly Tool: "tool";
1679
- readonly Prompt: "prompt";
1680
- readonly Correction: "correction";
1681
- readonly ExpectedOutput: "expected_output";
1682
- }>;
1683
- }
1684
- /** @internal */
1685
- export declare const CreatePromptVersion2PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsResponse200Type>;
1686
- /** @internal */
1687
- export declare const CreatePromptVersion2PromptsResponse200Type$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsResponse200Type>;
1688
- /**
1689
- * @internal
1690
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1691
- */
1692
- export declare namespace CreatePromptVersion2PromptsResponse200Type$ {
1693
- /** @deprecated use `CreatePromptVersion2PromptsResponse200Type$inboundSchema` instead. */
1694
- const inboundSchema: z.ZodNativeEnum<{
1695
- readonly ImageUrl: "image_url";
1696
- }>;
1697
- /** @deprecated use `CreatePromptVersion2PromptsResponse200Type$outboundSchema` instead. */
1698
- const outboundSchema: z.ZodNativeEnum<{
1699
- readonly ImageUrl: "image_url";
1700
- }>;
1701
- }
1702
- /** @internal */
1703
- export declare const CreatePromptVersion2PromptsImageUrl$inboundSchema: z.ZodType<CreatePromptVersion2PromptsImageUrl, z.ZodTypeDef, unknown>;
1704
- /** @internal */
1705
- export type CreatePromptVersion2PromptsImageUrl$Outbound = {
1706
- id?: string | undefined;
1707
- url: string;
1708
- detail?: string | undefined;
1709
- };
1710
- /** @internal */
1711
- export declare const CreatePromptVersion2PromptsImageUrl$outboundSchema: z.ZodType<CreatePromptVersion2PromptsImageUrl$Outbound, z.ZodTypeDef, CreatePromptVersion2PromptsImageUrl>;
1712
- /**
1713
- * @internal
1714
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1715
- */
1716
- export declare namespace CreatePromptVersion2PromptsImageUrl$ {
1717
- /** @deprecated use `CreatePromptVersion2PromptsImageUrl$inboundSchema` instead. */
1718
- const inboundSchema: z.ZodType<CreatePromptVersion2PromptsImageUrl, z.ZodTypeDef, unknown>;
1719
- /** @deprecated use `CreatePromptVersion2PromptsImageUrl$outboundSchema` instead. */
1720
- const outboundSchema: z.ZodType<CreatePromptVersion2PromptsImageUrl$Outbound, z.ZodTypeDef, CreatePromptVersion2PromptsImageUrl>;
1721
- /** @deprecated use `CreatePromptVersion2PromptsImageUrl$Outbound` instead. */
1722
- type Outbound = CreatePromptVersion2PromptsImageUrl$Outbound;
1723
- }
1724
- export declare function createPromptVersion2PromptsImageUrlToJSON(createPromptVersion2PromptsImageUrl: CreatePromptVersion2PromptsImageUrl): string;
1725
- export declare function createPromptVersion2PromptsImageUrlFromJSON(jsonString: string): SafeParseResult<CreatePromptVersion2PromptsImageUrl, SDKValidationError>;
1726
- /** @internal */
1727
- export declare const CreatePromptVersion2Prompts2$inboundSchema: z.ZodType<CreatePromptVersion2Prompts2, z.ZodTypeDef, unknown>;
1728
- /** @internal */
1729
- export type CreatePromptVersion2Prompts2$Outbound = {
1730
- type: string;
1731
- image_url: CreatePromptVersion2PromptsImageUrl$Outbound;
1732
- };
1733
- /** @internal */
1734
- export declare const CreatePromptVersion2Prompts2$outboundSchema: z.ZodType<CreatePromptVersion2Prompts2$Outbound, z.ZodTypeDef, CreatePromptVersion2Prompts2>;
1735
- /**
1736
- * @internal
1737
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1738
- */
1739
- export declare namespace CreatePromptVersion2Prompts2$ {
1740
- /** @deprecated use `CreatePromptVersion2Prompts2$inboundSchema` instead. */
1741
- const inboundSchema: z.ZodType<CreatePromptVersion2Prompts2, z.ZodTypeDef, unknown>;
1742
- /** @deprecated use `CreatePromptVersion2Prompts2$outboundSchema` instead. */
1743
- const outboundSchema: z.ZodType<CreatePromptVersion2Prompts2$Outbound, z.ZodTypeDef, CreatePromptVersion2Prompts2>;
1744
- /** @deprecated use `CreatePromptVersion2Prompts2$Outbound` instead. */
1745
- type Outbound = CreatePromptVersion2Prompts2$Outbound;
1746
- }
1747
- export declare function createPromptVersion2Prompts2ToJSON(createPromptVersion2Prompts2: CreatePromptVersion2Prompts2): string;
1748
- export declare function createPromptVersion2Prompts2FromJSON(jsonString: string): SafeParseResult<CreatePromptVersion2Prompts2, SDKValidationError>;
1749
- /** @internal */
1750
- export declare const CreatePromptVersion2PromptsResponseType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsResponseType>;
1751
- /** @internal */
1752
- export declare const CreatePromptVersion2PromptsResponseType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersion2PromptsResponseType>;
1753
- /**
1754
- * @internal
1755
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1756
- */
1757
- export declare namespace CreatePromptVersion2PromptsResponseType$ {
1758
- /** @deprecated use `CreatePromptVersion2PromptsResponseType$inboundSchema` instead. */
1759
- const inboundSchema: z.ZodNativeEnum<{
1760
- readonly Text: "text";
1761
- }>;
1762
- /** @deprecated use `CreatePromptVersion2PromptsResponseType$outboundSchema` instead. */
1763
- const outboundSchema: z.ZodNativeEnum<{
1764
- readonly Text: "text";
1765
- }>;
1766
- }
1767
- /** @internal */
1768
- export declare const CreatePromptVersion2Prompts1$inboundSchema: z.ZodType<CreatePromptVersion2Prompts1, z.ZodTypeDef, unknown>;
1769
- /** @internal */
1770
- export type CreatePromptVersion2Prompts1$Outbound = {
1771
- type: string;
1772
- text: string;
1773
- };
1774
- /** @internal */
1775
- export declare const CreatePromptVersion2Prompts1$outboundSchema: z.ZodType<CreatePromptVersion2Prompts1$Outbound, z.ZodTypeDef, CreatePromptVersion2Prompts1>;
1776
- /**
1777
- * @internal
1778
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1779
- */
1780
- export declare namespace CreatePromptVersion2Prompts1$ {
1781
- /** @deprecated use `CreatePromptVersion2Prompts1$inboundSchema` instead. */
1782
- const inboundSchema: z.ZodType<CreatePromptVersion2Prompts1, z.ZodTypeDef, unknown>;
1783
- /** @deprecated use `CreatePromptVersion2Prompts1$outboundSchema` instead. */
1784
- const outboundSchema: z.ZodType<CreatePromptVersion2Prompts1$Outbound, z.ZodTypeDef, CreatePromptVersion2Prompts1>;
1785
- /** @deprecated use `CreatePromptVersion2Prompts1$Outbound` instead. */
1786
- type Outbound = CreatePromptVersion2Prompts1$Outbound;
1787
- }
1788
- export declare function createPromptVersion2Prompts1ToJSON(createPromptVersion2Prompts1: CreatePromptVersion2Prompts1): string;
1789
- export declare function createPromptVersion2Prompts1FromJSON(jsonString: string): SafeParseResult<CreatePromptVersion2Prompts1, SDKValidationError>;
1790
- /** @internal */
1791
- export declare const CreatePromptVersionContentPrompts2$inboundSchema: z.ZodType<CreatePromptVersionContentPrompts2, z.ZodTypeDef, unknown>;
1792
- /** @internal */
1793
- export type CreatePromptVersionContentPrompts2$Outbound = CreatePromptVersion2Prompts1$Outbound | CreatePromptVersion2Prompts2$Outbound;
1794
- /** @internal */
1795
- export declare const CreatePromptVersionContentPrompts2$outboundSchema: z.ZodType<CreatePromptVersionContentPrompts2$Outbound, z.ZodTypeDef, CreatePromptVersionContentPrompts2>;
1796
- /**
1797
- * @internal
1798
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1799
- */
1800
- export declare namespace CreatePromptVersionContentPrompts2$ {
1801
- /** @deprecated use `CreatePromptVersionContentPrompts2$inboundSchema` instead. */
1802
- const inboundSchema: z.ZodType<CreatePromptVersionContentPrompts2, z.ZodTypeDef, unknown>;
1803
- /** @deprecated use `CreatePromptVersionContentPrompts2$outboundSchema` instead. */
1804
- const outboundSchema: z.ZodType<CreatePromptVersionContentPrompts2$Outbound, z.ZodTypeDef, CreatePromptVersionContentPrompts2>;
1805
- /** @deprecated use `CreatePromptVersionContentPrompts2$Outbound` instead. */
1806
- type Outbound = CreatePromptVersionContentPrompts2$Outbound;
1807
- }
1808
- export declare function createPromptVersionContentPrompts2ToJSON(createPromptVersionContentPrompts2: CreatePromptVersionContentPrompts2): string;
1809
- export declare function createPromptVersionContentPrompts2FromJSON(jsonString: string): SafeParseResult<CreatePromptVersionContentPrompts2, SDKValidationError>;
1810
- /** @internal */
1811
- export declare const CreatePromptVersionPromptsContent$inboundSchema: z.ZodType<CreatePromptVersionPromptsContent, z.ZodTypeDef, unknown>;
1812
- /** @internal */
1813
- export type CreatePromptVersionPromptsContent$Outbound = string | Array<CreatePromptVersion2Prompts1$Outbound | CreatePromptVersion2Prompts2$Outbound>;
1814
- /** @internal */
1815
- export declare const CreatePromptVersionPromptsContent$outboundSchema: z.ZodType<CreatePromptVersionPromptsContent$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsContent>;
1816
- /**
1817
- * @internal
1818
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1819
- */
1820
- export declare namespace CreatePromptVersionPromptsContent$ {
1821
- /** @deprecated use `CreatePromptVersionPromptsContent$inboundSchema` instead. */
1822
- const inboundSchema: z.ZodType<CreatePromptVersionPromptsContent, z.ZodTypeDef, unknown>;
1823
- /** @deprecated use `CreatePromptVersionPromptsContent$outboundSchema` instead. */
1824
- const outboundSchema: z.ZodType<CreatePromptVersionPromptsContent$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsContent>;
1825
- /** @deprecated use `CreatePromptVersionPromptsContent$Outbound` instead. */
1826
- type Outbound = CreatePromptVersionPromptsContent$Outbound;
1827
- }
1828
- export declare function createPromptVersionPromptsContentToJSON(createPromptVersionPromptsContent: CreatePromptVersionPromptsContent): string;
1829
- export declare function createPromptVersionPromptsContentFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsContent, SDKValidationError>;
1830
- /** @internal */
1831
- export declare const CreatePromptVersionPromptsType$inboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsType>;
1832
- /** @internal */
1833
- export declare const CreatePromptVersionPromptsType$outboundSchema: z.ZodNativeEnum<typeof CreatePromptVersionPromptsType>;
1834
- /**
1835
- * @internal
1836
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1837
- */
1838
- export declare namespace CreatePromptVersionPromptsType$ {
1839
- /** @deprecated use `CreatePromptVersionPromptsType$inboundSchema` instead. */
1840
- const inboundSchema: z.ZodNativeEnum<{
1841
- readonly Function: "function";
1842
- }>;
1843
- /** @deprecated use `CreatePromptVersionPromptsType$outboundSchema` instead. */
1844
- const outboundSchema: z.ZodNativeEnum<{
1845
- readonly Function: "function";
1846
- }>;
1847
- }
1848
- /** @internal */
1849
- export declare const CreatePromptVersionPromptsFunction$inboundSchema: z.ZodType<CreatePromptVersionPromptsFunction, z.ZodTypeDef, unknown>;
1850
- /** @internal */
1851
- export type CreatePromptVersionPromptsFunction$Outbound = {
1852
- name: string;
1853
- arguments: string;
1854
- };
1855
- /** @internal */
1856
- export declare const CreatePromptVersionPromptsFunction$outboundSchema: z.ZodType<CreatePromptVersionPromptsFunction$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsFunction>;
1857
- /**
1858
- * @internal
1859
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1860
- */
1861
- export declare namespace CreatePromptVersionPromptsFunction$ {
1862
- /** @deprecated use `CreatePromptVersionPromptsFunction$inboundSchema` instead. */
1863
- const inboundSchema: z.ZodType<CreatePromptVersionPromptsFunction, z.ZodTypeDef, unknown>;
1864
- /** @deprecated use `CreatePromptVersionPromptsFunction$outboundSchema` instead. */
1865
- const outboundSchema: z.ZodType<CreatePromptVersionPromptsFunction$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsFunction>;
1866
- /** @deprecated use `CreatePromptVersionPromptsFunction$Outbound` instead. */
1867
- type Outbound = CreatePromptVersionPromptsFunction$Outbound;
1868
- }
1869
- export declare function createPromptVersionPromptsFunctionToJSON(createPromptVersionPromptsFunction: CreatePromptVersionPromptsFunction): string;
1870
- export declare function createPromptVersionPromptsFunctionFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsFunction, SDKValidationError>;
1871
- /** @internal */
1872
- export declare const CreatePromptVersionPromptsToolCalls$inboundSchema: z.ZodType<CreatePromptVersionPromptsToolCalls, z.ZodTypeDef, unknown>;
1873
- /** @internal */
1874
- export type CreatePromptVersionPromptsToolCalls$Outbound = {
1875
- id?: string | undefined;
1876
- index?: number | undefined;
1877
- type: string;
1878
- function: CreatePromptVersionPromptsFunction$Outbound;
1879
- };
1880
- /** @internal */
1881
- export declare const CreatePromptVersionPromptsToolCalls$outboundSchema: z.ZodType<CreatePromptVersionPromptsToolCalls$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsToolCalls>;
1882
- /**
1883
- * @internal
1884
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1885
- */
1886
- export declare namespace CreatePromptVersionPromptsToolCalls$ {
1887
- /** @deprecated use `CreatePromptVersionPromptsToolCalls$inboundSchema` instead. */
1888
- const inboundSchema: z.ZodType<CreatePromptVersionPromptsToolCalls, z.ZodTypeDef, unknown>;
1889
- /** @deprecated use `CreatePromptVersionPromptsToolCalls$outboundSchema` instead. */
1890
- const outboundSchema: z.ZodType<CreatePromptVersionPromptsToolCalls$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsToolCalls>;
1891
- /** @deprecated use `CreatePromptVersionPromptsToolCalls$Outbound` instead. */
1892
- type Outbound = CreatePromptVersionPromptsToolCalls$Outbound;
1893
- }
1894
- export declare function createPromptVersionPromptsToolCallsToJSON(createPromptVersionPromptsToolCalls: CreatePromptVersionPromptsToolCalls): string;
1895
- export declare function createPromptVersionPromptsToolCallsFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsToolCalls, SDKValidationError>;
1896
- /** @internal */
1897
- export declare const CreatePromptVersionPromptsMessages$inboundSchema: z.ZodType<CreatePromptVersionPromptsMessages, z.ZodTypeDef, unknown>;
1898
- /** @internal */
1899
- export type CreatePromptVersionPromptsMessages$Outbound = {
1900
- role: string;
1901
- content: string | Array<CreatePromptVersion2Prompts1$Outbound | CreatePromptVersion2Prompts2$Outbound>;
1902
- tool_calls?: Array<CreatePromptVersionPromptsToolCalls$Outbound> | undefined;
1903
- };
1904
- /** @internal */
1905
- export declare const CreatePromptVersionPromptsMessages$outboundSchema: z.ZodType<CreatePromptVersionPromptsMessages$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsMessages>;
1906
- /**
1907
- * @internal
1908
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1909
- */
1910
- export declare namespace CreatePromptVersionPromptsMessages$ {
1911
- /** @deprecated use `CreatePromptVersionPromptsMessages$inboundSchema` instead. */
1912
- const inboundSchema: z.ZodType<CreatePromptVersionPromptsMessages, z.ZodTypeDef, unknown>;
1913
- /** @deprecated use `CreatePromptVersionPromptsMessages$outboundSchema` instead. */
1914
- const outboundSchema: z.ZodType<CreatePromptVersionPromptsMessages$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsMessages>;
1915
- /** @deprecated use `CreatePromptVersionPromptsMessages$Outbound` instead. */
1916
- type Outbound = CreatePromptVersionPromptsMessages$Outbound;
1917
- }
1918
- export declare function createPromptVersionPromptsMessagesToJSON(createPromptVersionPromptsMessages: CreatePromptVersionPromptsMessages): string;
1919
- export declare function createPromptVersionPromptsMessagesFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsMessages, SDKValidationError>;
1920
- /** @internal */
1921
- export declare const CreatePromptVersionPromptsPromptConfig$inboundSchema: z.ZodType<CreatePromptVersionPromptsPromptConfig, z.ZodTypeDef, unknown>;
1922
- /** @internal */
1923
- export type CreatePromptVersionPromptsPromptConfig$Outbound = {
1924
- stream?: boolean | undefined;
1925
- model?: string | undefined;
1926
- model_db_id?: string | undefined;
1927
- model_type?: string | undefined;
1928
- model_parameters?: CreatePromptVersionPromptsModelParameters$Outbound | undefined;
1929
- provider?: string | undefined;
1930
- integration_id?: string | null | undefined;
1931
- version?: string | undefined;
1932
- messages: Array<CreatePromptVersionPromptsMessages$Outbound>;
1933
- };
1934
- /** @internal */
1935
- export declare const CreatePromptVersionPromptsPromptConfig$outboundSchema: z.ZodType<CreatePromptVersionPromptsPromptConfig$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsPromptConfig>;
1936
- /**
1937
- * @internal
1938
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1939
- */
1940
- export declare namespace CreatePromptVersionPromptsPromptConfig$ {
1941
- /** @deprecated use `CreatePromptVersionPromptsPromptConfig$inboundSchema` instead. */
1942
- const inboundSchema: z.ZodType<CreatePromptVersionPromptsPromptConfig, z.ZodTypeDef, unknown>;
1943
- /** @deprecated use `CreatePromptVersionPromptsPromptConfig$outboundSchema` instead. */
1944
- const outboundSchema: z.ZodType<CreatePromptVersionPromptsPromptConfig$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsPromptConfig>;
1945
- /** @deprecated use `CreatePromptVersionPromptsPromptConfig$Outbound` instead. */
1946
- type Outbound = CreatePromptVersionPromptsPromptConfig$Outbound;
1947
- }
1948
- export declare function createPromptVersionPromptsPromptConfigToJSON(createPromptVersionPromptsPromptConfig: CreatePromptVersionPromptsPromptConfig): string;
1949
- export declare function createPromptVersionPromptsPromptConfigFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsPromptConfig, SDKValidationError>;
1950
- /** @internal */
1951
- export declare const CreatePromptVersionPromptsMetadata$inboundSchema: z.ZodType<CreatePromptVersionPromptsMetadata, z.ZodTypeDef, unknown>;
1952
- /** @internal */
1953
- export type CreatePromptVersionPromptsMetadata$Outbound = {
1954
- use_cases?: Array<string> | undefined;
1955
- language?: string | undefined;
1956
- };
1957
- /** @internal */
1958
- export declare const CreatePromptVersionPromptsMetadata$outboundSchema: z.ZodType<CreatePromptVersionPromptsMetadata$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsMetadata>;
1959
- /**
1960
- * @internal
1961
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1962
- */
1963
- export declare namespace CreatePromptVersionPromptsMetadata$ {
1964
- /** @deprecated use `CreatePromptVersionPromptsMetadata$inboundSchema` instead. */
1965
- const inboundSchema: z.ZodType<CreatePromptVersionPromptsMetadata, z.ZodTypeDef, unknown>;
1966
- /** @deprecated use `CreatePromptVersionPromptsMetadata$outboundSchema` instead. */
1967
- const outboundSchema: z.ZodType<CreatePromptVersionPromptsMetadata$Outbound, z.ZodTypeDef, CreatePromptVersionPromptsMetadata>;
1968
- /** @deprecated use `CreatePromptVersionPromptsMetadata$Outbound` instead. */
1969
- type Outbound = CreatePromptVersionPromptsMetadata$Outbound;
1970
- }
1971
- export declare function createPromptVersionPromptsMetadataToJSON(createPromptVersionPromptsMetadata: CreatePromptVersionPromptsMetadata): string;
1972
- export declare function createPromptVersionPromptsMetadataFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionPromptsMetadata, SDKValidationError>;
1973
- /** @internal */
1974
- export declare const CreatePromptVersionResponseBody$inboundSchema: z.ZodType<CreatePromptVersionResponseBody, z.ZodTypeDef, unknown>;
1975
- /** @internal */
1976
- export type CreatePromptVersionResponseBody$Outbound = {
1977
- _id: string;
1978
- display_name: string;
1979
- description?: string | null | undefined;
1980
- prompt_config: CreatePromptVersionPromptsPromptConfig$Outbound;
1981
- metadata: CreatePromptVersionPromptsMetadata$Outbound;
1982
- commit: string;
1983
- timestamp: string;
1984
- };
1985
- /** @internal */
1986
- export declare const CreatePromptVersionResponseBody$outboundSchema: z.ZodType<CreatePromptVersionResponseBody$Outbound, z.ZodTypeDef, CreatePromptVersionResponseBody>;
1987
- /**
1988
- * @internal
1989
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1990
- */
1991
- export declare namespace CreatePromptVersionResponseBody$ {
1992
- /** @deprecated use `CreatePromptVersionResponseBody$inboundSchema` instead. */
1993
- const inboundSchema: z.ZodType<CreatePromptVersionResponseBody, z.ZodTypeDef, unknown>;
1994
- /** @deprecated use `CreatePromptVersionResponseBody$outboundSchema` instead. */
1995
- const outboundSchema: z.ZodType<CreatePromptVersionResponseBody$Outbound, z.ZodTypeDef, CreatePromptVersionResponseBody>;
1996
- /** @deprecated use `CreatePromptVersionResponseBody$Outbound` instead. */
1997
- type Outbound = CreatePromptVersionResponseBody$Outbound;
1998
- }
1999
- export declare function createPromptVersionResponseBodyToJSON(createPromptVersionResponseBody: CreatePromptVersionResponseBody): string;
2000
- export declare function createPromptVersionResponseBodyFromJSON(jsonString: string): SafeParseResult<CreatePromptVersionResponseBody, SDKValidationError>;
2001
- //# sourceMappingURL=createpromptversion.d.ts.map