@orq-ai/node 3.1.6 → 3.2.0-rc.3

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