@orq-ai/node 3.1.7 → 3.2.0-rc.4

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