@orq-ai/node 3.1.0-rc.41 → 3.1.0-rc.43

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 (49) hide show
  1. package/README.md +2 -0
  2. package/docs/sdks/promptsnippets/README.md +73 -0
  3. package/funcs/promptSnippetsList.d.ts +12 -0
  4. package/funcs/promptSnippetsList.d.ts.map +1 -0
  5. package/funcs/promptSnippetsList.js +113 -0
  6. package/funcs/promptSnippetsList.js.map +1 -0
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createprompt.js +2 -2
  12. package/models/operations/createpromptsnippet.js +2 -2
  13. package/models/operations/fileget.js +2 -2
  14. package/models/operations/filelist.js +2 -2
  15. package/models/operations/fileupload.js +2 -2
  16. package/models/operations/findonebykeypromptsnippet.js +2 -2
  17. package/models/operations/findonepromptsnippet.js +2 -2
  18. package/models/operations/getallprompts.js +2 -2
  19. package/models/operations/getallpromptsnippets.d.ts +2537 -0
  20. package/models/operations/getallpromptsnippets.d.ts.map +1 -0
  21. package/models/operations/getallpromptsnippets.js +2222 -0
  22. package/models/operations/getallpromptsnippets.js.map +1 -0
  23. package/models/operations/index.d.ts +1 -0
  24. package/models/operations/index.d.ts.map +1 -1
  25. package/models/operations/index.js +1 -0
  26. package/models/operations/index.js.map +1 -1
  27. package/models/operations/updateprompt.js +2 -2
  28. package/models/operations/updatepromptsnippet.js +2 -2
  29. package/package.json +1 -1
  30. package/sdk/promptsnippets.d.ts +4 -0
  31. package/sdk/promptsnippets.d.ts.map +1 -1
  32. package/sdk/promptsnippets.js +7 -0
  33. package/sdk/promptsnippets.js.map +1 -1
  34. package/src/funcs/promptSnippetsList.ts +136 -0
  35. package/src/lib/config.ts +2 -2
  36. package/src/models/operations/createcontact.ts +2 -2
  37. package/src/models/operations/createprompt.ts +2 -2
  38. package/src/models/operations/createpromptsnippet.ts +2 -2
  39. package/src/models/operations/fileget.ts +2 -2
  40. package/src/models/operations/filelist.ts +2 -2
  41. package/src/models/operations/fileupload.ts +2 -2
  42. package/src/models/operations/findonebykeypromptsnippet.ts +2 -2
  43. package/src/models/operations/findonepromptsnippet.ts +2 -2
  44. package/src/models/operations/getallprompts.ts +2 -2
  45. package/src/models/operations/getallpromptsnippets.ts +4532 -0
  46. package/src/models/operations/index.ts +1 -0
  47. package/src/models/operations/updateprompt.ts +2 -2
  48. package/src/models/operations/updatepromptsnippet.ts +2 -2
  49. package/src/sdk/promptsnippets.ts +15 -0
@@ -0,0 +1,4532 @@
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 GetAllPromptSnippetsGlobals = {
13
+ contactId?: string | undefined;
14
+ };
15
+
16
+ export type GetAllPromptSnippetsRequest = {
17
+ /**
18
+ * A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
19
+ */
20
+ limit?: number | undefined;
21
+ /**
22
+ * 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.
23
+ */
24
+ startingAfter?: string | undefined;
25
+ /**
26
+ * 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.
27
+ */
28
+ endingBefore?: string | undefined;
29
+ };
30
+
31
+ export const GetAllPromptSnippetsObject = {
32
+ List: "list",
33
+ } as const;
34
+ export type GetAllPromptSnippetsObject = ClosedEnum<
35
+ typeof GetAllPromptSnippetsObject
36
+ >;
37
+
38
+ export const GetAllPromptSnippetsOwner2 = {
39
+ Vendor: "vendor",
40
+ } as const;
41
+ export type GetAllPromptSnippetsOwner2 = ClosedEnum<
42
+ typeof GetAllPromptSnippetsOwner2
43
+ >;
44
+
45
+ export type GetAllPromptSnippetsOwner = string | GetAllPromptSnippetsOwner2;
46
+
47
+ /**
48
+ * The type of the model
49
+ */
50
+ export const GetAllPromptSnippetsModelType = {
51
+ Chat: "chat",
52
+ Completion: "completion",
53
+ Embedding: "embedding",
54
+ Vision: "vision",
55
+ Image: "image",
56
+ Tts: "tts",
57
+ Stt: "stt",
58
+ Rerank: "rerank",
59
+ Moderations: "moderations",
60
+ } as const;
61
+ /**
62
+ * The type of the model
63
+ */
64
+ export type GetAllPromptSnippetsModelType = ClosedEnum<
65
+ typeof GetAllPromptSnippetsModelType
66
+ >;
67
+
68
+ /**
69
+ * Only supported on `image` models.
70
+ */
71
+ export const GetAllPromptSnippetsFormat = {
72
+ Url: "url",
73
+ B64Json: "b64_json",
74
+ Text: "text",
75
+ JsonObject: "json_object",
76
+ } as const;
77
+ /**
78
+ * Only supported on `image` models.
79
+ */
80
+ export type GetAllPromptSnippetsFormat = ClosedEnum<
81
+ typeof GetAllPromptSnippetsFormat
82
+ >;
83
+
84
+ /**
85
+ * Only supported on `image` models.
86
+ */
87
+ export const GetAllPromptSnippetsQuality = {
88
+ Standard: "standard",
89
+ Hd: "hd",
90
+ } as const;
91
+ /**
92
+ * Only supported on `image` models.
93
+ */
94
+ export type GetAllPromptSnippetsQuality = ClosedEnum<
95
+ typeof GetAllPromptSnippetsQuality
96
+ >;
97
+
98
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsType = {
99
+ JsonObject: "json_object",
100
+ } as const;
101
+ export type GetAllPromptSnippetsResponseFormatPromptSnippetsType = ClosedEnum<
102
+ typeof GetAllPromptSnippetsResponseFormatPromptSnippetsType
103
+ >;
104
+
105
+ export type GetAllPromptSnippetsResponseFormat2 = {
106
+ type: GetAllPromptSnippetsResponseFormatPromptSnippetsType;
107
+ };
108
+
109
+ export const GetAllPromptSnippetsResponseFormatType = {
110
+ JsonSchema: "json_schema",
111
+ } as const;
112
+ export type GetAllPromptSnippetsResponseFormatType = ClosedEnum<
113
+ typeof GetAllPromptSnippetsResponseFormatType
114
+ >;
115
+
116
+ export type GetAllPromptSnippetsResponseFormatJsonSchema = {
117
+ name: string;
118
+ strict: boolean;
119
+ schema: { [k: string]: any };
120
+ };
121
+
122
+ export type GetAllPromptSnippetsResponseFormat1 = {
123
+ type: GetAllPromptSnippetsResponseFormatType;
124
+ jsonSchema: GetAllPromptSnippetsResponseFormatJsonSchema;
125
+ };
126
+
127
+ /**
128
+ * An object specifying the format that the model must output.
129
+ *
130
+ * @remarks
131
+ *
132
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
133
+ *
134
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
135
+ *
136
+ * 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.
137
+ */
138
+ export type GetAllPromptSnippetsResponseFormat =
139
+ | GetAllPromptSnippetsResponseFormat2
140
+ | GetAllPromptSnippetsResponseFormat1;
141
+
142
+ /**
143
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
144
+ */
145
+ export const GetAllPromptSnippetsPhotoRealVersion = {
146
+ V1: "v1",
147
+ V2: "v2",
148
+ } as const;
149
+ /**
150
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
151
+ */
152
+ export type GetAllPromptSnippetsPhotoRealVersion = ClosedEnum<
153
+ typeof GetAllPromptSnippetsPhotoRealVersion
154
+ >;
155
+
156
+ /**
157
+ * The format to return the embeddings
158
+ */
159
+ export const GetAllPromptSnippetsEncodingFormat = {
160
+ Float: "float",
161
+ Base64: "base64",
162
+ } as const;
163
+ /**
164
+ * The format to return the embeddings
165
+ */
166
+ export type GetAllPromptSnippetsEncodingFormat = ClosedEnum<
167
+ typeof GetAllPromptSnippetsEncodingFormat
168
+ >;
169
+
170
+ /**
171
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
172
+ */
173
+ export const GetAllPromptSnippetsReasoningEffort = {
174
+ Low: "low",
175
+ Medium: "medium",
176
+ High: "high",
177
+ } as const;
178
+ /**
179
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
180
+ */
181
+ export type GetAllPromptSnippetsReasoningEffort = ClosedEnum<
182
+ typeof GetAllPromptSnippetsReasoningEffort
183
+ >;
184
+
185
+ /**
186
+ * Model Parameters: Not all parameters apply to every model
187
+ */
188
+ export type GetAllPromptSnippetsModelParameters = {
189
+ /**
190
+ * Only supported on `chat` and `completion` models.
191
+ */
192
+ temperature?: number | undefined;
193
+ /**
194
+ * Only supported on `chat` and `completion` models.
195
+ */
196
+ maxTokens?: number | undefined;
197
+ /**
198
+ * Only supported on `chat` and `completion` models.
199
+ */
200
+ topK?: number | undefined;
201
+ /**
202
+ * Only supported on `chat` and `completion` models.
203
+ */
204
+ topP?: number | undefined;
205
+ /**
206
+ * Only supported on `chat` and `completion` models.
207
+ */
208
+ frequencyPenalty?: number | undefined;
209
+ /**
210
+ * Only supported on `chat` and `completion` models.
211
+ */
212
+ presencePenalty?: number | undefined;
213
+ /**
214
+ * Only supported on `image` models.
215
+ */
216
+ numImages?: number | undefined;
217
+ /**
218
+ * Best effort deterministic seed for the model. Currently only OpenAI models support these
219
+ */
220
+ seed?: number | undefined;
221
+ /**
222
+ * Only supported on `image` models.
223
+ */
224
+ format?: GetAllPromptSnippetsFormat | undefined;
225
+ /**
226
+ * Only supported on `image` models.
227
+ */
228
+ dimensions?: string | undefined;
229
+ /**
230
+ * Only supported on `image` models.
231
+ */
232
+ quality?: GetAllPromptSnippetsQuality | undefined;
233
+ /**
234
+ * Only supported on `image` models.
235
+ */
236
+ style?: string | undefined;
237
+ /**
238
+ * An object specifying the format that the model must output.
239
+ *
240
+ * @remarks
241
+ *
242
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
243
+ *
244
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
245
+ *
246
+ * 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.
247
+ */
248
+ responseFormat?:
249
+ | GetAllPromptSnippetsResponseFormat2
250
+ | GetAllPromptSnippetsResponseFormat1
251
+ | null
252
+ | undefined;
253
+ /**
254
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
255
+ */
256
+ photoRealVersion?: GetAllPromptSnippetsPhotoRealVersion | undefined;
257
+ /**
258
+ * The format to return the embeddings
259
+ */
260
+ encodingFormat?: GetAllPromptSnippetsEncodingFormat | undefined;
261
+ /**
262
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
263
+ */
264
+ reasoningEffort?: GetAllPromptSnippetsReasoningEffort | undefined;
265
+ };
266
+
267
+ export const GetAllPromptSnippetsProvider = {
268
+ Cohere: "cohere",
269
+ Openai: "openai",
270
+ Anthropic: "anthropic",
271
+ Huggingface: "huggingface",
272
+ Replicate: "replicate",
273
+ Google: "google",
274
+ GoogleAi: "google-ai",
275
+ Azure: "azure",
276
+ Aws: "aws",
277
+ Anyscale: "anyscale",
278
+ Perplexity: "perplexity",
279
+ Groq: "groq",
280
+ Fal: "fal",
281
+ Leonardoai: "leonardoai",
282
+ Nvidia: "nvidia",
283
+ Jina: "jina",
284
+ Togetherai: "togetherai",
285
+ Elevenlabs: "elevenlabs",
286
+ } as const;
287
+ export type GetAllPromptSnippetsProvider = ClosedEnum<
288
+ typeof GetAllPromptSnippetsProvider
289
+ >;
290
+
291
+ /**
292
+ * The role of the prompt message
293
+ */
294
+ export const GetAllPromptSnippetsRole = {
295
+ System: "system",
296
+ Assistant: "assistant",
297
+ User: "user",
298
+ Exception: "exception",
299
+ Tool: "tool",
300
+ Prompt: "prompt",
301
+ Correction: "correction",
302
+ ExpectedOutput: "expected_output",
303
+ } as const;
304
+ /**
305
+ * The role of the prompt message
306
+ */
307
+ export type GetAllPromptSnippetsRole = ClosedEnum<
308
+ typeof GetAllPromptSnippetsRole
309
+ >;
310
+
311
+ export const GetAllPromptSnippets2PromptSnippetsType = {
312
+ ImageUrl: "image_url",
313
+ } as const;
314
+ export type GetAllPromptSnippets2PromptSnippetsType = ClosedEnum<
315
+ typeof GetAllPromptSnippets2PromptSnippetsType
316
+ >;
317
+
318
+ export type GetAllPromptSnippets2ImageUrl = {
319
+ /**
320
+ * The orq.ai id of the image
321
+ */
322
+ id?: string | undefined;
323
+ /**
324
+ * Either a URL of the image or the base64 encoded data URI.
325
+ */
326
+ url: string;
327
+ /**
328
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
329
+ */
330
+ detail?: string | undefined;
331
+ };
332
+
333
+ /**
334
+ * The image part of the prompt message. Only supported with vision models.
335
+ */
336
+ export type GetAllPromptSnippets22 = {
337
+ type: GetAllPromptSnippets2PromptSnippetsType;
338
+ imageUrl: GetAllPromptSnippets2ImageUrl;
339
+ };
340
+
341
+ export const GetAllPromptSnippets2Type = {
342
+ Text: "text",
343
+ } as const;
344
+ export type GetAllPromptSnippets2Type = ClosedEnum<
345
+ typeof GetAllPromptSnippets2Type
346
+ >;
347
+
348
+ /**
349
+ * Text content part of a prompt message
350
+ */
351
+ export type GetAllPromptSnippets21 = {
352
+ type: GetAllPromptSnippets2Type;
353
+ text: string;
354
+ };
355
+
356
+ export type GetAllPromptSnippetsContent2 =
357
+ | GetAllPromptSnippets21
358
+ | GetAllPromptSnippets22;
359
+
360
+ /**
361
+ * 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.
362
+ */
363
+ export type GetAllPromptSnippetsContent =
364
+ | string
365
+ | Array<GetAllPromptSnippets21 | GetAllPromptSnippets22>;
366
+
367
+ export const GetAllPromptSnippetsPromptSnippetsType = {
368
+ Function: "function",
369
+ } as const;
370
+ export type GetAllPromptSnippetsPromptSnippetsType = ClosedEnum<
371
+ typeof GetAllPromptSnippetsPromptSnippetsType
372
+ >;
373
+
374
+ export type GetAllPromptSnippetsFunction = {
375
+ name: string;
376
+ /**
377
+ * JSON string arguments for the functions
378
+ */
379
+ arguments: string;
380
+ };
381
+
382
+ export type GetAllPromptSnippetsToolCalls = {
383
+ id?: string | undefined;
384
+ index?: number | undefined;
385
+ type: GetAllPromptSnippetsPromptSnippetsType;
386
+ function: GetAllPromptSnippetsFunction;
387
+ };
388
+
389
+ export type GetAllPromptSnippetsMessages = {
390
+ /**
391
+ * The role of the prompt message
392
+ */
393
+ role: GetAllPromptSnippetsRole;
394
+ /**
395
+ * 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.
396
+ */
397
+ content: string | Array<GetAllPromptSnippets21 | GetAllPromptSnippets22>;
398
+ toolCalls?: Array<GetAllPromptSnippetsToolCalls> | undefined;
399
+ };
400
+
401
+ /**
402
+ * A list of messages compatible with the openAI schema
403
+ */
404
+ export type GetAllPromptSnippetsPromptConfig = {
405
+ stream?: boolean | undefined;
406
+ model?: string | undefined;
407
+ /**
408
+ * The id of the resource
409
+ */
410
+ modelDbId?: string | undefined;
411
+ /**
412
+ * The type of the model
413
+ */
414
+ modelType?: GetAllPromptSnippetsModelType | undefined;
415
+ /**
416
+ * Model Parameters: Not all parameters apply to every model
417
+ */
418
+ modelParameters?: GetAllPromptSnippetsModelParameters | undefined;
419
+ provider?: GetAllPromptSnippetsProvider | undefined;
420
+ /**
421
+ * The id of the resource
422
+ */
423
+ integrationId?: string | null | undefined;
424
+ version?: string | undefined;
425
+ messages: Array<GetAllPromptSnippetsMessages>;
426
+ };
427
+
428
+ export const GetAllPromptSnippetsUseCases = {
429
+ Agents: "Agents",
430
+ AgentsSimulations: "Agents simulations",
431
+ APIInteraction: "API interaction",
432
+ AutonomousAgents: "Autonomous Agents",
433
+ Chatbots: "Chatbots",
434
+ Classification: "Classification",
435
+ CodeUnderstanding: "Code understanding",
436
+ CodeWriting: "Code writing",
437
+ DocumentsQA: "Documents QA",
438
+ Conversation: "Conversation",
439
+ Extraction: "Extraction",
440
+ MultiModal: "Multi-modal",
441
+ SelfChecking: "Self-checking",
442
+ Sql: "SQL",
443
+ Summarization: "Summarization",
444
+ Tagging: "Tagging",
445
+ } as const;
446
+ export type GetAllPromptSnippetsUseCases = ClosedEnum<
447
+ typeof GetAllPromptSnippetsUseCases
448
+ >;
449
+
450
+ /**
451
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
452
+ */
453
+ export const GetAllPromptSnippetsLanguage = {
454
+ Chinese: "Chinese",
455
+ Dutch: "Dutch",
456
+ English: "English",
457
+ French: "French",
458
+ German: "German",
459
+ Russian: "Russian",
460
+ Spanish: "Spanish",
461
+ } as const;
462
+ /**
463
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
464
+ */
465
+ export type GetAllPromptSnippetsLanguage = ClosedEnum<
466
+ typeof GetAllPromptSnippetsLanguage
467
+ >;
468
+
469
+ export type GetAllPromptSnippetsMetadata = {
470
+ /**
471
+ * 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
472
+ */
473
+ useCases?: Array<GetAllPromptSnippetsUseCases> | undefined;
474
+ /**
475
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
476
+ */
477
+ language?: GetAllPromptSnippetsLanguage | undefined;
478
+ };
479
+
480
+ export const GetAllPromptSnippetsType = {
481
+ Snippet: "snippet",
482
+ } as const;
483
+ export type GetAllPromptSnippetsType = ClosedEnum<
484
+ typeof GetAllPromptSnippetsType
485
+ >;
486
+
487
+ /**
488
+ * The type of the model
489
+ */
490
+ export const GetAllPromptSnippetsPromptSnippetsModelType = {
491
+ Chat: "chat",
492
+ Completion: "completion",
493
+ Embedding: "embedding",
494
+ Vision: "vision",
495
+ Image: "image",
496
+ Tts: "tts",
497
+ Stt: "stt",
498
+ Rerank: "rerank",
499
+ Moderations: "moderations",
500
+ } as const;
501
+ /**
502
+ * The type of the model
503
+ */
504
+ export type GetAllPromptSnippetsPromptSnippetsModelType = ClosedEnum<
505
+ typeof GetAllPromptSnippetsPromptSnippetsModelType
506
+ >;
507
+
508
+ /**
509
+ * Only supported on `image` models.
510
+ */
511
+ export const GetAllPromptSnippetsPromptSnippetsFormat = {
512
+ Url: "url",
513
+ B64Json: "b64_json",
514
+ Text: "text",
515
+ JsonObject: "json_object",
516
+ } as const;
517
+ /**
518
+ * Only supported on `image` models.
519
+ */
520
+ export type GetAllPromptSnippetsPromptSnippetsFormat = ClosedEnum<
521
+ typeof GetAllPromptSnippetsPromptSnippetsFormat
522
+ >;
523
+
524
+ /**
525
+ * Only supported on `image` models.
526
+ */
527
+ export const GetAllPromptSnippetsPromptSnippetsQuality = {
528
+ Standard: "standard",
529
+ Hd: "hd",
530
+ } as const;
531
+ /**
532
+ * Only supported on `image` models.
533
+ */
534
+ export type GetAllPromptSnippetsPromptSnippetsQuality = ClosedEnum<
535
+ typeof GetAllPromptSnippetsPromptSnippetsQuality
536
+ >;
537
+
538
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type = {
539
+ JsonObject: "json_object",
540
+ } as const;
541
+ export type GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type =
542
+ ClosedEnum<
543
+ typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type
544
+ >;
545
+
546
+ export type GetAllPromptSnippetsResponseFormatPromptSnippets2 = {
547
+ type: GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type;
548
+ };
549
+
550
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType = {
551
+ JsonSchema: "json_schema",
552
+ } as const;
553
+ export type GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType =
554
+ ClosedEnum<
555
+ typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType
556
+ >;
557
+
558
+ export type GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema = {
559
+ name: string;
560
+ strict: boolean;
561
+ schema: { [k: string]: any };
562
+ };
563
+
564
+ export type GetAllPromptSnippetsResponseFormatPromptSnippets1 = {
565
+ type: GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType;
566
+ jsonSchema: GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema;
567
+ };
568
+
569
+ /**
570
+ * An object specifying the format that the model must output.
571
+ *
572
+ * @remarks
573
+ *
574
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
575
+ *
576
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
577
+ *
578
+ * 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.
579
+ */
580
+ export type GetAllPromptSnippetsPromptSnippetsResponseFormat =
581
+ | GetAllPromptSnippetsResponseFormatPromptSnippets2
582
+ | GetAllPromptSnippetsResponseFormatPromptSnippets1;
583
+
584
+ /**
585
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
586
+ */
587
+ export const GetAllPromptSnippetsPromptSnippetsPhotoRealVersion = {
588
+ V1: "v1",
589
+ V2: "v2",
590
+ } as const;
591
+ /**
592
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
593
+ */
594
+ export type GetAllPromptSnippetsPromptSnippetsPhotoRealVersion = ClosedEnum<
595
+ typeof GetAllPromptSnippetsPromptSnippetsPhotoRealVersion
596
+ >;
597
+
598
+ /**
599
+ * The format to return the embeddings
600
+ */
601
+ export const GetAllPromptSnippetsPromptSnippetsEncodingFormat = {
602
+ Float: "float",
603
+ Base64: "base64",
604
+ } as const;
605
+ /**
606
+ * The format to return the embeddings
607
+ */
608
+ export type GetAllPromptSnippetsPromptSnippetsEncodingFormat = ClosedEnum<
609
+ typeof GetAllPromptSnippetsPromptSnippetsEncodingFormat
610
+ >;
611
+
612
+ /**
613
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
614
+ */
615
+ export const GetAllPromptSnippetsPromptSnippetsReasoningEffort = {
616
+ Low: "low",
617
+ Medium: "medium",
618
+ High: "high",
619
+ } as const;
620
+ /**
621
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
622
+ */
623
+ export type GetAllPromptSnippetsPromptSnippetsReasoningEffort = ClosedEnum<
624
+ typeof GetAllPromptSnippetsPromptSnippetsReasoningEffort
625
+ >;
626
+
627
+ /**
628
+ * Model Parameters: Not all parameters apply to every model
629
+ */
630
+ export type GetAllPromptSnippetsPromptSnippetsModelParameters = {
631
+ /**
632
+ * Only supported on `chat` and `completion` models.
633
+ */
634
+ temperature?: number | undefined;
635
+ /**
636
+ * Only supported on `chat` and `completion` models.
637
+ */
638
+ maxTokens?: number | undefined;
639
+ /**
640
+ * Only supported on `chat` and `completion` models.
641
+ */
642
+ topK?: number | undefined;
643
+ /**
644
+ * Only supported on `chat` and `completion` models.
645
+ */
646
+ topP?: number | undefined;
647
+ /**
648
+ * Only supported on `chat` and `completion` models.
649
+ */
650
+ frequencyPenalty?: number | undefined;
651
+ /**
652
+ * Only supported on `chat` and `completion` models.
653
+ */
654
+ presencePenalty?: number | undefined;
655
+ /**
656
+ * Only supported on `image` models.
657
+ */
658
+ numImages?: number | undefined;
659
+ /**
660
+ * Best effort deterministic seed for the model. Currently only OpenAI models support these
661
+ */
662
+ seed?: number | undefined;
663
+ /**
664
+ * Only supported on `image` models.
665
+ */
666
+ format?: GetAllPromptSnippetsPromptSnippetsFormat | undefined;
667
+ /**
668
+ * Only supported on `image` models.
669
+ */
670
+ dimensions?: string | undefined;
671
+ /**
672
+ * Only supported on `image` models.
673
+ */
674
+ quality?: GetAllPromptSnippetsPromptSnippetsQuality | undefined;
675
+ /**
676
+ * Only supported on `image` models.
677
+ */
678
+ style?: string | undefined;
679
+ /**
680
+ * An object specifying the format that the model must output.
681
+ *
682
+ * @remarks
683
+ *
684
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
685
+ *
686
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
687
+ *
688
+ * 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.
689
+ */
690
+ responseFormat?:
691
+ | GetAllPromptSnippetsResponseFormatPromptSnippets2
692
+ | GetAllPromptSnippetsResponseFormatPromptSnippets1
693
+ | null
694
+ | undefined;
695
+ /**
696
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
697
+ */
698
+ photoRealVersion?:
699
+ | GetAllPromptSnippetsPromptSnippetsPhotoRealVersion
700
+ | undefined;
701
+ /**
702
+ * The format to return the embeddings
703
+ */
704
+ encodingFormat?: GetAllPromptSnippetsPromptSnippetsEncodingFormat | undefined;
705
+ /**
706
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
707
+ */
708
+ reasoningEffort?:
709
+ | GetAllPromptSnippetsPromptSnippetsReasoningEffort
710
+ | undefined;
711
+ };
712
+
713
+ export const GetAllPromptSnippetsPromptSnippetsProvider = {
714
+ Cohere: "cohere",
715
+ Openai: "openai",
716
+ Anthropic: "anthropic",
717
+ Huggingface: "huggingface",
718
+ Replicate: "replicate",
719
+ Google: "google",
720
+ GoogleAi: "google-ai",
721
+ Azure: "azure",
722
+ Aws: "aws",
723
+ Anyscale: "anyscale",
724
+ Perplexity: "perplexity",
725
+ Groq: "groq",
726
+ Fal: "fal",
727
+ Leonardoai: "leonardoai",
728
+ Nvidia: "nvidia",
729
+ Jina: "jina",
730
+ Togetherai: "togetherai",
731
+ Elevenlabs: "elevenlabs",
732
+ } as const;
733
+ export type GetAllPromptSnippetsPromptSnippetsProvider = ClosedEnum<
734
+ typeof GetAllPromptSnippetsPromptSnippetsProvider
735
+ >;
736
+
737
+ /**
738
+ * The role of the prompt message
739
+ */
740
+ export const GetAllPromptSnippetsPromptSnippetsRole = {
741
+ System: "system",
742
+ Assistant: "assistant",
743
+ User: "user",
744
+ Exception: "exception",
745
+ Tool: "tool",
746
+ Prompt: "prompt",
747
+ Correction: "correction",
748
+ ExpectedOutput: "expected_output",
749
+ } as const;
750
+ /**
751
+ * The role of the prompt message
752
+ */
753
+ export type GetAllPromptSnippetsPromptSnippetsRole = ClosedEnum<
754
+ typeof GetAllPromptSnippetsPromptSnippetsRole
755
+ >;
756
+
757
+ export const GetAllPromptSnippets2PromptSnippetsResponse200Type = {
758
+ ImageUrl: "image_url",
759
+ } as const;
760
+ export type GetAllPromptSnippets2PromptSnippetsResponse200Type = ClosedEnum<
761
+ typeof GetAllPromptSnippets2PromptSnippetsResponse200Type
762
+ >;
763
+
764
+ export type GetAllPromptSnippets2PromptSnippetsImageUrl = {
765
+ /**
766
+ * The orq.ai id of the image
767
+ */
768
+ id?: string | undefined;
769
+ /**
770
+ * Either a URL of the image or the base64 encoded data URI.
771
+ */
772
+ url: string;
773
+ /**
774
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
775
+ */
776
+ detail?: string | undefined;
777
+ };
778
+
779
+ /**
780
+ * The image part of the prompt message. Only supported with vision models.
781
+ */
782
+ export type GetAllPromptSnippets2PromptSnippets2 = {
783
+ type: GetAllPromptSnippets2PromptSnippetsResponse200Type;
784
+ imageUrl: GetAllPromptSnippets2PromptSnippetsImageUrl;
785
+ };
786
+
787
+ export const GetAllPromptSnippets2PromptSnippetsResponseType = {
788
+ Text: "text",
789
+ } as const;
790
+ export type GetAllPromptSnippets2PromptSnippetsResponseType = ClosedEnum<
791
+ typeof GetAllPromptSnippets2PromptSnippetsResponseType
792
+ >;
793
+
794
+ /**
795
+ * Text content part of a prompt message
796
+ */
797
+ export type GetAllPromptSnippets2PromptSnippets1 = {
798
+ type: GetAllPromptSnippets2PromptSnippetsResponseType;
799
+ text: string;
800
+ };
801
+
802
+ export type GetAllPromptSnippetsContentPromptSnippets2 =
803
+ | GetAllPromptSnippets2PromptSnippets1
804
+ | GetAllPromptSnippets2PromptSnippets2;
805
+
806
+ /**
807
+ * 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.
808
+ */
809
+ export type GetAllPromptSnippetsPromptSnippetsContent =
810
+ | string
811
+ | Array<
812
+ GetAllPromptSnippets2PromptSnippets1 | GetAllPromptSnippets2PromptSnippets2
813
+ >;
814
+
815
+ export const GetAllPromptSnippetsPromptSnippetsResponseType = {
816
+ Function: "function",
817
+ } as const;
818
+ export type GetAllPromptSnippetsPromptSnippetsResponseType = ClosedEnum<
819
+ typeof GetAllPromptSnippetsPromptSnippetsResponseType
820
+ >;
821
+
822
+ export type GetAllPromptSnippetsPromptSnippetsFunction = {
823
+ name: string;
824
+ /**
825
+ * JSON string arguments for the functions
826
+ */
827
+ arguments: string;
828
+ };
829
+
830
+ export type GetAllPromptSnippetsPromptSnippetsToolCalls = {
831
+ id?: string | undefined;
832
+ index?: number | undefined;
833
+ type: GetAllPromptSnippetsPromptSnippetsResponseType;
834
+ function: GetAllPromptSnippetsPromptSnippetsFunction;
835
+ };
836
+
837
+ export type GetAllPromptSnippetsPromptSnippetsMessages = {
838
+ /**
839
+ * The role of the prompt message
840
+ */
841
+ role: GetAllPromptSnippetsPromptSnippetsRole;
842
+ /**
843
+ * 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.
844
+ */
845
+ content:
846
+ | string
847
+ | Array<
848
+ | GetAllPromptSnippets2PromptSnippets1
849
+ | GetAllPromptSnippets2PromptSnippets2
850
+ >;
851
+ toolCalls?: Array<GetAllPromptSnippetsPromptSnippetsToolCalls> | undefined;
852
+ };
853
+
854
+ /**
855
+ * A list of messages compatible with the openAI schema
856
+ */
857
+ export type GetAllPromptSnippetsPromptSnippetsPromptConfig = {
858
+ stream?: boolean | undefined;
859
+ model?: string | undefined;
860
+ /**
861
+ * The id of the resource
862
+ */
863
+ modelDbId?: string | undefined;
864
+ /**
865
+ * The type of the model
866
+ */
867
+ modelType?: GetAllPromptSnippetsPromptSnippetsModelType | undefined;
868
+ /**
869
+ * Model Parameters: Not all parameters apply to every model
870
+ */
871
+ modelParameters?:
872
+ | GetAllPromptSnippetsPromptSnippetsModelParameters
873
+ | undefined;
874
+ provider?: GetAllPromptSnippetsPromptSnippetsProvider | undefined;
875
+ /**
876
+ * The id of the resource
877
+ */
878
+ integrationId?: string | null | undefined;
879
+ version?: string | undefined;
880
+ messages: Array<GetAllPromptSnippetsPromptSnippetsMessages>;
881
+ };
882
+
883
+ export const GetAllPromptSnippetsPromptSnippetsUseCases = {
884
+ Agents: "Agents",
885
+ AgentsSimulations: "Agents simulations",
886
+ APIInteraction: "API interaction",
887
+ AutonomousAgents: "Autonomous Agents",
888
+ Chatbots: "Chatbots",
889
+ Classification: "Classification",
890
+ CodeUnderstanding: "Code understanding",
891
+ CodeWriting: "Code writing",
892
+ DocumentsQA: "Documents QA",
893
+ Conversation: "Conversation",
894
+ Extraction: "Extraction",
895
+ MultiModal: "Multi-modal",
896
+ SelfChecking: "Self-checking",
897
+ Sql: "SQL",
898
+ Summarization: "Summarization",
899
+ Tagging: "Tagging",
900
+ } as const;
901
+ export type GetAllPromptSnippetsPromptSnippetsUseCases = ClosedEnum<
902
+ typeof GetAllPromptSnippetsPromptSnippetsUseCases
903
+ >;
904
+
905
+ /**
906
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
907
+ */
908
+ export const GetAllPromptSnippetsPromptSnippetsLanguage = {
909
+ Chinese: "Chinese",
910
+ Dutch: "Dutch",
911
+ English: "English",
912
+ French: "French",
913
+ German: "German",
914
+ Russian: "Russian",
915
+ Spanish: "Spanish",
916
+ } as const;
917
+ /**
918
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
919
+ */
920
+ export type GetAllPromptSnippetsPromptSnippetsLanguage = ClosedEnum<
921
+ typeof GetAllPromptSnippetsPromptSnippetsLanguage
922
+ >;
923
+
924
+ export type GetAllPromptSnippetsPromptSnippetsMetadata = {
925
+ /**
926
+ * 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
927
+ */
928
+ useCases?: Array<GetAllPromptSnippetsPromptSnippetsUseCases> | undefined;
929
+ /**
930
+ * The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
931
+ */
932
+ language?: GetAllPromptSnippetsPromptSnippetsLanguage | undefined;
933
+ };
934
+
935
+ /**
936
+ * Prompt version model returned from the API
937
+ */
938
+ export type GetAllPromptSnippetsVersions = {
939
+ id: string;
940
+ /**
941
+ * The prompt snippet’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
942
+ */
943
+ description?: string | null | undefined;
944
+ /**
945
+ * A list of messages compatible with the openAI schema
946
+ */
947
+ promptConfig: GetAllPromptSnippetsPromptSnippetsPromptConfig;
948
+ metadata: GetAllPromptSnippetsPromptSnippetsMetadata;
949
+ createdById: string;
950
+ updatedById: string;
951
+ timestamp: string;
952
+ };
953
+
954
+ /**
955
+ * Prompt snippet model returned from the API
956
+ */
957
+ export type GetAllPromptSnippetsData = {
958
+ id: string;
959
+ owner: string | GetAllPromptSnippetsOwner2;
960
+ domainId: string;
961
+ key: string;
962
+ /**
963
+ * The prompt snippet’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
964
+ */
965
+ description?: string | null | undefined;
966
+ /**
967
+ * A list of messages compatible with the openAI schema
968
+ */
969
+ promptConfig: GetAllPromptSnippetsPromptConfig;
970
+ metadata: GetAllPromptSnippetsMetadata;
971
+ createdById: string;
972
+ updatedById: string;
973
+ /**
974
+ * The date and time the resource was created
975
+ */
976
+ created?: Date | undefined;
977
+ /**
978
+ * The date and time the resource was last updated
979
+ */
980
+ updated?: Date | undefined;
981
+ type: GetAllPromptSnippetsType;
982
+ versions: Array<GetAllPromptSnippetsVersions>;
983
+ };
984
+
985
+ /**
986
+ * Prompt snippets retrieved.
987
+ */
988
+ export type GetAllPromptSnippetsResponseBody = {
989
+ object: GetAllPromptSnippetsObject;
990
+ data: Array<GetAllPromptSnippetsData>;
991
+ hasMore: boolean;
992
+ };
993
+
994
+ /** @internal */
995
+ export const GetAllPromptSnippetsGlobals$inboundSchema: z.ZodType<
996
+ GetAllPromptSnippetsGlobals,
997
+ z.ZodTypeDef,
998
+ unknown
999
+ > = z.object({
1000
+ contactId: z.string().optional(),
1001
+ });
1002
+
1003
+ /** @internal */
1004
+ export type GetAllPromptSnippetsGlobals$Outbound = {
1005
+ contactId?: string | undefined;
1006
+ };
1007
+
1008
+ /** @internal */
1009
+ export const GetAllPromptSnippetsGlobals$outboundSchema: z.ZodType<
1010
+ GetAllPromptSnippetsGlobals$Outbound,
1011
+ z.ZodTypeDef,
1012
+ GetAllPromptSnippetsGlobals
1013
+ > = z.object({
1014
+ contactId: z.string().optional(),
1015
+ });
1016
+
1017
+ /**
1018
+ * @internal
1019
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1020
+ */
1021
+ export namespace GetAllPromptSnippetsGlobals$ {
1022
+ /** @deprecated use `GetAllPromptSnippetsGlobals$inboundSchema` instead. */
1023
+ export const inboundSchema = GetAllPromptSnippetsGlobals$inboundSchema;
1024
+ /** @deprecated use `GetAllPromptSnippetsGlobals$outboundSchema` instead. */
1025
+ export const outboundSchema = GetAllPromptSnippetsGlobals$outboundSchema;
1026
+ /** @deprecated use `GetAllPromptSnippetsGlobals$Outbound` instead. */
1027
+ export type Outbound = GetAllPromptSnippetsGlobals$Outbound;
1028
+ }
1029
+
1030
+ export function getAllPromptSnippetsGlobalsToJSON(
1031
+ getAllPromptSnippetsGlobals: GetAllPromptSnippetsGlobals,
1032
+ ): string {
1033
+ return JSON.stringify(
1034
+ GetAllPromptSnippetsGlobals$outboundSchema.parse(
1035
+ getAllPromptSnippetsGlobals,
1036
+ ),
1037
+ );
1038
+ }
1039
+
1040
+ export function getAllPromptSnippetsGlobalsFromJSON(
1041
+ jsonString: string,
1042
+ ): SafeParseResult<GetAllPromptSnippetsGlobals, SDKValidationError> {
1043
+ return safeParse(
1044
+ jsonString,
1045
+ (x) => GetAllPromptSnippetsGlobals$inboundSchema.parse(JSON.parse(x)),
1046
+ `Failed to parse 'GetAllPromptSnippetsGlobals' from JSON`,
1047
+ );
1048
+ }
1049
+
1050
+ /** @internal */
1051
+ export const GetAllPromptSnippetsRequest$inboundSchema: z.ZodType<
1052
+ GetAllPromptSnippetsRequest,
1053
+ z.ZodTypeDef,
1054
+ unknown
1055
+ > = z.object({
1056
+ limit: z.number().default(10),
1057
+ starting_after: z.string().optional(),
1058
+ ending_before: z.string().optional(),
1059
+ }).transform((v) => {
1060
+ return remap$(v, {
1061
+ "starting_after": "startingAfter",
1062
+ "ending_before": "endingBefore",
1063
+ });
1064
+ });
1065
+
1066
+ /** @internal */
1067
+ export type GetAllPromptSnippetsRequest$Outbound = {
1068
+ limit: number;
1069
+ starting_after?: string | undefined;
1070
+ ending_before?: string | undefined;
1071
+ };
1072
+
1073
+ /** @internal */
1074
+ export const GetAllPromptSnippetsRequest$outboundSchema: z.ZodType<
1075
+ GetAllPromptSnippetsRequest$Outbound,
1076
+ z.ZodTypeDef,
1077
+ GetAllPromptSnippetsRequest
1078
+ > = z.object({
1079
+ limit: z.number().default(10),
1080
+ startingAfter: z.string().optional(),
1081
+ endingBefore: z.string().optional(),
1082
+ }).transform((v) => {
1083
+ return remap$(v, {
1084
+ startingAfter: "starting_after",
1085
+ endingBefore: "ending_before",
1086
+ });
1087
+ });
1088
+
1089
+ /**
1090
+ * @internal
1091
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1092
+ */
1093
+ export namespace GetAllPromptSnippetsRequest$ {
1094
+ /** @deprecated use `GetAllPromptSnippetsRequest$inboundSchema` instead. */
1095
+ export const inboundSchema = GetAllPromptSnippetsRequest$inboundSchema;
1096
+ /** @deprecated use `GetAllPromptSnippetsRequest$outboundSchema` instead. */
1097
+ export const outboundSchema = GetAllPromptSnippetsRequest$outboundSchema;
1098
+ /** @deprecated use `GetAllPromptSnippetsRequest$Outbound` instead. */
1099
+ export type Outbound = GetAllPromptSnippetsRequest$Outbound;
1100
+ }
1101
+
1102
+ export function getAllPromptSnippetsRequestToJSON(
1103
+ getAllPromptSnippetsRequest: GetAllPromptSnippetsRequest,
1104
+ ): string {
1105
+ return JSON.stringify(
1106
+ GetAllPromptSnippetsRequest$outboundSchema.parse(
1107
+ getAllPromptSnippetsRequest,
1108
+ ),
1109
+ );
1110
+ }
1111
+
1112
+ export function getAllPromptSnippetsRequestFromJSON(
1113
+ jsonString: string,
1114
+ ): SafeParseResult<GetAllPromptSnippetsRequest, SDKValidationError> {
1115
+ return safeParse(
1116
+ jsonString,
1117
+ (x) => GetAllPromptSnippetsRequest$inboundSchema.parse(JSON.parse(x)),
1118
+ `Failed to parse 'GetAllPromptSnippetsRequest' from JSON`,
1119
+ );
1120
+ }
1121
+
1122
+ /** @internal */
1123
+ export const GetAllPromptSnippetsObject$inboundSchema: z.ZodNativeEnum<
1124
+ typeof GetAllPromptSnippetsObject
1125
+ > = z.nativeEnum(GetAllPromptSnippetsObject);
1126
+
1127
+ /** @internal */
1128
+ export const GetAllPromptSnippetsObject$outboundSchema: z.ZodNativeEnum<
1129
+ typeof GetAllPromptSnippetsObject
1130
+ > = GetAllPromptSnippetsObject$inboundSchema;
1131
+
1132
+ /**
1133
+ * @internal
1134
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1135
+ */
1136
+ export namespace GetAllPromptSnippetsObject$ {
1137
+ /** @deprecated use `GetAllPromptSnippetsObject$inboundSchema` instead. */
1138
+ export const inboundSchema = GetAllPromptSnippetsObject$inboundSchema;
1139
+ /** @deprecated use `GetAllPromptSnippetsObject$outboundSchema` instead. */
1140
+ export const outboundSchema = GetAllPromptSnippetsObject$outboundSchema;
1141
+ }
1142
+
1143
+ /** @internal */
1144
+ export const GetAllPromptSnippetsOwner2$inboundSchema: z.ZodNativeEnum<
1145
+ typeof GetAllPromptSnippetsOwner2
1146
+ > = z.nativeEnum(GetAllPromptSnippetsOwner2);
1147
+
1148
+ /** @internal */
1149
+ export const GetAllPromptSnippetsOwner2$outboundSchema: z.ZodNativeEnum<
1150
+ typeof GetAllPromptSnippetsOwner2
1151
+ > = GetAllPromptSnippetsOwner2$inboundSchema;
1152
+
1153
+ /**
1154
+ * @internal
1155
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1156
+ */
1157
+ export namespace GetAllPromptSnippetsOwner2$ {
1158
+ /** @deprecated use `GetAllPromptSnippetsOwner2$inboundSchema` instead. */
1159
+ export const inboundSchema = GetAllPromptSnippetsOwner2$inboundSchema;
1160
+ /** @deprecated use `GetAllPromptSnippetsOwner2$outboundSchema` instead. */
1161
+ export const outboundSchema = GetAllPromptSnippetsOwner2$outboundSchema;
1162
+ }
1163
+
1164
+ /** @internal */
1165
+ export const GetAllPromptSnippetsOwner$inboundSchema: z.ZodType<
1166
+ GetAllPromptSnippetsOwner,
1167
+ z.ZodTypeDef,
1168
+ unknown
1169
+ > = z.union([z.string(), GetAllPromptSnippetsOwner2$inboundSchema]);
1170
+
1171
+ /** @internal */
1172
+ export type GetAllPromptSnippetsOwner$Outbound = string | string;
1173
+
1174
+ /** @internal */
1175
+ export const GetAllPromptSnippetsOwner$outboundSchema: z.ZodType<
1176
+ GetAllPromptSnippetsOwner$Outbound,
1177
+ z.ZodTypeDef,
1178
+ GetAllPromptSnippetsOwner
1179
+ > = z.union([z.string(), GetAllPromptSnippetsOwner2$outboundSchema]);
1180
+
1181
+ /**
1182
+ * @internal
1183
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1184
+ */
1185
+ export namespace GetAllPromptSnippetsOwner$ {
1186
+ /** @deprecated use `GetAllPromptSnippetsOwner$inboundSchema` instead. */
1187
+ export const inboundSchema = GetAllPromptSnippetsOwner$inboundSchema;
1188
+ /** @deprecated use `GetAllPromptSnippetsOwner$outboundSchema` instead. */
1189
+ export const outboundSchema = GetAllPromptSnippetsOwner$outboundSchema;
1190
+ /** @deprecated use `GetAllPromptSnippetsOwner$Outbound` instead. */
1191
+ export type Outbound = GetAllPromptSnippetsOwner$Outbound;
1192
+ }
1193
+
1194
+ export function getAllPromptSnippetsOwnerToJSON(
1195
+ getAllPromptSnippetsOwner: GetAllPromptSnippetsOwner,
1196
+ ): string {
1197
+ return JSON.stringify(
1198
+ GetAllPromptSnippetsOwner$outboundSchema.parse(getAllPromptSnippetsOwner),
1199
+ );
1200
+ }
1201
+
1202
+ export function getAllPromptSnippetsOwnerFromJSON(
1203
+ jsonString: string,
1204
+ ): SafeParseResult<GetAllPromptSnippetsOwner, SDKValidationError> {
1205
+ return safeParse(
1206
+ jsonString,
1207
+ (x) => GetAllPromptSnippetsOwner$inboundSchema.parse(JSON.parse(x)),
1208
+ `Failed to parse 'GetAllPromptSnippetsOwner' from JSON`,
1209
+ );
1210
+ }
1211
+
1212
+ /** @internal */
1213
+ export const GetAllPromptSnippetsModelType$inboundSchema: z.ZodNativeEnum<
1214
+ typeof GetAllPromptSnippetsModelType
1215
+ > = z.nativeEnum(GetAllPromptSnippetsModelType);
1216
+
1217
+ /** @internal */
1218
+ export const GetAllPromptSnippetsModelType$outboundSchema: z.ZodNativeEnum<
1219
+ typeof GetAllPromptSnippetsModelType
1220
+ > = GetAllPromptSnippetsModelType$inboundSchema;
1221
+
1222
+ /**
1223
+ * @internal
1224
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1225
+ */
1226
+ export namespace GetAllPromptSnippetsModelType$ {
1227
+ /** @deprecated use `GetAllPromptSnippetsModelType$inboundSchema` instead. */
1228
+ export const inboundSchema = GetAllPromptSnippetsModelType$inboundSchema;
1229
+ /** @deprecated use `GetAllPromptSnippetsModelType$outboundSchema` instead. */
1230
+ export const outboundSchema = GetAllPromptSnippetsModelType$outboundSchema;
1231
+ }
1232
+
1233
+ /** @internal */
1234
+ export const GetAllPromptSnippetsFormat$inboundSchema: z.ZodNativeEnum<
1235
+ typeof GetAllPromptSnippetsFormat
1236
+ > = z.nativeEnum(GetAllPromptSnippetsFormat);
1237
+
1238
+ /** @internal */
1239
+ export const GetAllPromptSnippetsFormat$outboundSchema: z.ZodNativeEnum<
1240
+ typeof GetAllPromptSnippetsFormat
1241
+ > = GetAllPromptSnippetsFormat$inboundSchema;
1242
+
1243
+ /**
1244
+ * @internal
1245
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1246
+ */
1247
+ export namespace GetAllPromptSnippetsFormat$ {
1248
+ /** @deprecated use `GetAllPromptSnippetsFormat$inboundSchema` instead. */
1249
+ export const inboundSchema = GetAllPromptSnippetsFormat$inboundSchema;
1250
+ /** @deprecated use `GetAllPromptSnippetsFormat$outboundSchema` instead. */
1251
+ export const outboundSchema = GetAllPromptSnippetsFormat$outboundSchema;
1252
+ }
1253
+
1254
+ /** @internal */
1255
+ export const GetAllPromptSnippetsQuality$inboundSchema: z.ZodNativeEnum<
1256
+ typeof GetAllPromptSnippetsQuality
1257
+ > = z.nativeEnum(GetAllPromptSnippetsQuality);
1258
+
1259
+ /** @internal */
1260
+ export const GetAllPromptSnippetsQuality$outboundSchema: z.ZodNativeEnum<
1261
+ typeof GetAllPromptSnippetsQuality
1262
+ > = GetAllPromptSnippetsQuality$inboundSchema;
1263
+
1264
+ /**
1265
+ * @internal
1266
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1267
+ */
1268
+ export namespace GetAllPromptSnippetsQuality$ {
1269
+ /** @deprecated use `GetAllPromptSnippetsQuality$inboundSchema` instead. */
1270
+ export const inboundSchema = GetAllPromptSnippetsQuality$inboundSchema;
1271
+ /** @deprecated use `GetAllPromptSnippetsQuality$outboundSchema` instead. */
1272
+ export const outboundSchema = GetAllPromptSnippetsQuality$outboundSchema;
1273
+ }
1274
+
1275
+ /** @internal */
1276
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsType$inboundSchema:
1277
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsResponseFormatPromptSnippetsType> =
1278
+ z.nativeEnum(GetAllPromptSnippetsResponseFormatPromptSnippetsType);
1279
+
1280
+ /** @internal */
1281
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsType$outboundSchema:
1282
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsResponseFormatPromptSnippetsType> =
1283
+ GetAllPromptSnippetsResponseFormatPromptSnippetsType$inboundSchema;
1284
+
1285
+ /**
1286
+ * @internal
1287
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1288
+ */
1289
+ export namespace GetAllPromptSnippetsResponseFormatPromptSnippetsType$ {
1290
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsType$inboundSchema` instead. */
1291
+ export const inboundSchema =
1292
+ GetAllPromptSnippetsResponseFormatPromptSnippetsType$inboundSchema;
1293
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsType$outboundSchema` instead. */
1294
+ export const outboundSchema =
1295
+ GetAllPromptSnippetsResponseFormatPromptSnippetsType$outboundSchema;
1296
+ }
1297
+
1298
+ /** @internal */
1299
+ export const GetAllPromptSnippetsResponseFormat2$inboundSchema: z.ZodType<
1300
+ GetAllPromptSnippetsResponseFormat2,
1301
+ z.ZodTypeDef,
1302
+ unknown
1303
+ > = z.object({
1304
+ type: GetAllPromptSnippetsResponseFormatPromptSnippetsType$inboundSchema,
1305
+ });
1306
+
1307
+ /** @internal */
1308
+ export type GetAllPromptSnippetsResponseFormat2$Outbound = {
1309
+ type: string;
1310
+ };
1311
+
1312
+ /** @internal */
1313
+ export const GetAllPromptSnippetsResponseFormat2$outboundSchema: z.ZodType<
1314
+ GetAllPromptSnippetsResponseFormat2$Outbound,
1315
+ z.ZodTypeDef,
1316
+ GetAllPromptSnippetsResponseFormat2
1317
+ > = z.object({
1318
+ type: GetAllPromptSnippetsResponseFormatPromptSnippetsType$outboundSchema,
1319
+ });
1320
+
1321
+ /**
1322
+ * @internal
1323
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1324
+ */
1325
+ export namespace GetAllPromptSnippetsResponseFormat2$ {
1326
+ /** @deprecated use `GetAllPromptSnippetsResponseFormat2$inboundSchema` instead. */
1327
+ export const inboundSchema =
1328
+ GetAllPromptSnippetsResponseFormat2$inboundSchema;
1329
+ /** @deprecated use `GetAllPromptSnippetsResponseFormat2$outboundSchema` instead. */
1330
+ export const outboundSchema =
1331
+ GetAllPromptSnippetsResponseFormat2$outboundSchema;
1332
+ /** @deprecated use `GetAllPromptSnippetsResponseFormat2$Outbound` instead. */
1333
+ export type Outbound = GetAllPromptSnippetsResponseFormat2$Outbound;
1334
+ }
1335
+
1336
+ export function getAllPromptSnippetsResponseFormat2ToJSON(
1337
+ getAllPromptSnippetsResponseFormat2: GetAllPromptSnippetsResponseFormat2,
1338
+ ): string {
1339
+ return JSON.stringify(
1340
+ GetAllPromptSnippetsResponseFormat2$outboundSchema.parse(
1341
+ getAllPromptSnippetsResponseFormat2,
1342
+ ),
1343
+ );
1344
+ }
1345
+
1346
+ export function getAllPromptSnippetsResponseFormat2FromJSON(
1347
+ jsonString: string,
1348
+ ): SafeParseResult<GetAllPromptSnippetsResponseFormat2, SDKValidationError> {
1349
+ return safeParse(
1350
+ jsonString,
1351
+ (x) =>
1352
+ GetAllPromptSnippetsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
1353
+ `Failed to parse 'GetAllPromptSnippetsResponseFormat2' from JSON`,
1354
+ );
1355
+ }
1356
+
1357
+ /** @internal */
1358
+ export const GetAllPromptSnippetsResponseFormatType$inboundSchema:
1359
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsResponseFormatType> = z.nativeEnum(
1360
+ GetAllPromptSnippetsResponseFormatType,
1361
+ );
1362
+
1363
+ /** @internal */
1364
+ export const GetAllPromptSnippetsResponseFormatType$outboundSchema:
1365
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsResponseFormatType> =
1366
+ GetAllPromptSnippetsResponseFormatType$inboundSchema;
1367
+
1368
+ /**
1369
+ * @internal
1370
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1371
+ */
1372
+ export namespace GetAllPromptSnippetsResponseFormatType$ {
1373
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatType$inboundSchema` instead. */
1374
+ export const inboundSchema =
1375
+ GetAllPromptSnippetsResponseFormatType$inboundSchema;
1376
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatType$outboundSchema` instead. */
1377
+ export const outboundSchema =
1378
+ GetAllPromptSnippetsResponseFormatType$outboundSchema;
1379
+ }
1380
+
1381
+ /** @internal */
1382
+ export const GetAllPromptSnippetsResponseFormatJsonSchema$inboundSchema:
1383
+ z.ZodType<
1384
+ GetAllPromptSnippetsResponseFormatJsonSchema,
1385
+ z.ZodTypeDef,
1386
+ unknown
1387
+ > = z.object({
1388
+ name: z.string(),
1389
+ strict: z.boolean(),
1390
+ schema: z.record(z.any()),
1391
+ });
1392
+
1393
+ /** @internal */
1394
+ export type GetAllPromptSnippetsResponseFormatJsonSchema$Outbound = {
1395
+ name: string;
1396
+ strict: boolean;
1397
+ schema: { [k: string]: any };
1398
+ };
1399
+
1400
+ /** @internal */
1401
+ export const GetAllPromptSnippetsResponseFormatJsonSchema$outboundSchema:
1402
+ z.ZodType<
1403
+ GetAllPromptSnippetsResponseFormatJsonSchema$Outbound,
1404
+ z.ZodTypeDef,
1405
+ GetAllPromptSnippetsResponseFormatJsonSchema
1406
+ > = z.object({
1407
+ name: z.string(),
1408
+ strict: z.boolean(),
1409
+ schema: z.record(z.any()),
1410
+ });
1411
+
1412
+ /**
1413
+ * @internal
1414
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1415
+ */
1416
+ export namespace GetAllPromptSnippetsResponseFormatJsonSchema$ {
1417
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatJsonSchema$inboundSchema` instead. */
1418
+ export const inboundSchema =
1419
+ GetAllPromptSnippetsResponseFormatJsonSchema$inboundSchema;
1420
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatJsonSchema$outboundSchema` instead. */
1421
+ export const outboundSchema =
1422
+ GetAllPromptSnippetsResponseFormatJsonSchema$outboundSchema;
1423
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatJsonSchema$Outbound` instead. */
1424
+ export type Outbound = GetAllPromptSnippetsResponseFormatJsonSchema$Outbound;
1425
+ }
1426
+
1427
+ export function getAllPromptSnippetsResponseFormatJsonSchemaToJSON(
1428
+ getAllPromptSnippetsResponseFormatJsonSchema:
1429
+ GetAllPromptSnippetsResponseFormatJsonSchema,
1430
+ ): string {
1431
+ return JSON.stringify(
1432
+ GetAllPromptSnippetsResponseFormatJsonSchema$outboundSchema.parse(
1433
+ getAllPromptSnippetsResponseFormatJsonSchema,
1434
+ ),
1435
+ );
1436
+ }
1437
+
1438
+ export function getAllPromptSnippetsResponseFormatJsonSchemaFromJSON(
1439
+ jsonString: string,
1440
+ ): SafeParseResult<
1441
+ GetAllPromptSnippetsResponseFormatJsonSchema,
1442
+ SDKValidationError
1443
+ > {
1444
+ return safeParse(
1445
+ jsonString,
1446
+ (x) =>
1447
+ GetAllPromptSnippetsResponseFormatJsonSchema$inboundSchema.parse(
1448
+ JSON.parse(x),
1449
+ ),
1450
+ `Failed to parse 'GetAllPromptSnippetsResponseFormatJsonSchema' from JSON`,
1451
+ );
1452
+ }
1453
+
1454
+ /** @internal */
1455
+ export const GetAllPromptSnippetsResponseFormat1$inboundSchema: z.ZodType<
1456
+ GetAllPromptSnippetsResponseFormat1,
1457
+ z.ZodTypeDef,
1458
+ unknown
1459
+ > = z.object({
1460
+ type: GetAllPromptSnippetsResponseFormatType$inboundSchema,
1461
+ json_schema: z.lazy(() =>
1462
+ GetAllPromptSnippetsResponseFormatJsonSchema$inboundSchema
1463
+ ),
1464
+ }).transform((v) => {
1465
+ return remap$(v, {
1466
+ "json_schema": "jsonSchema",
1467
+ });
1468
+ });
1469
+
1470
+ /** @internal */
1471
+ export type GetAllPromptSnippetsResponseFormat1$Outbound = {
1472
+ type: string;
1473
+ json_schema: GetAllPromptSnippetsResponseFormatJsonSchema$Outbound;
1474
+ };
1475
+
1476
+ /** @internal */
1477
+ export const GetAllPromptSnippetsResponseFormat1$outboundSchema: z.ZodType<
1478
+ GetAllPromptSnippetsResponseFormat1$Outbound,
1479
+ z.ZodTypeDef,
1480
+ GetAllPromptSnippetsResponseFormat1
1481
+ > = z.object({
1482
+ type: GetAllPromptSnippetsResponseFormatType$outboundSchema,
1483
+ jsonSchema: z.lazy(() =>
1484
+ GetAllPromptSnippetsResponseFormatJsonSchema$outboundSchema
1485
+ ),
1486
+ }).transform((v) => {
1487
+ return remap$(v, {
1488
+ jsonSchema: "json_schema",
1489
+ });
1490
+ });
1491
+
1492
+ /**
1493
+ * @internal
1494
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1495
+ */
1496
+ export namespace GetAllPromptSnippetsResponseFormat1$ {
1497
+ /** @deprecated use `GetAllPromptSnippetsResponseFormat1$inboundSchema` instead. */
1498
+ export const inboundSchema =
1499
+ GetAllPromptSnippetsResponseFormat1$inboundSchema;
1500
+ /** @deprecated use `GetAllPromptSnippetsResponseFormat1$outboundSchema` instead. */
1501
+ export const outboundSchema =
1502
+ GetAllPromptSnippetsResponseFormat1$outboundSchema;
1503
+ /** @deprecated use `GetAllPromptSnippetsResponseFormat1$Outbound` instead. */
1504
+ export type Outbound = GetAllPromptSnippetsResponseFormat1$Outbound;
1505
+ }
1506
+
1507
+ export function getAllPromptSnippetsResponseFormat1ToJSON(
1508
+ getAllPromptSnippetsResponseFormat1: GetAllPromptSnippetsResponseFormat1,
1509
+ ): string {
1510
+ return JSON.stringify(
1511
+ GetAllPromptSnippetsResponseFormat1$outboundSchema.parse(
1512
+ getAllPromptSnippetsResponseFormat1,
1513
+ ),
1514
+ );
1515
+ }
1516
+
1517
+ export function getAllPromptSnippetsResponseFormat1FromJSON(
1518
+ jsonString: string,
1519
+ ): SafeParseResult<GetAllPromptSnippetsResponseFormat1, SDKValidationError> {
1520
+ return safeParse(
1521
+ jsonString,
1522
+ (x) =>
1523
+ GetAllPromptSnippetsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
1524
+ `Failed to parse 'GetAllPromptSnippetsResponseFormat1' from JSON`,
1525
+ );
1526
+ }
1527
+
1528
+ /** @internal */
1529
+ export const GetAllPromptSnippetsResponseFormat$inboundSchema: z.ZodType<
1530
+ GetAllPromptSnippetsResponseFormat,
1531
+ z.ZodTypeDef,
1532
+ unknown
1533
+ > = z.union([
1534
+ z.lazy(() => GetAllPromptSnippetsResponseFormat2$inboundSchema),
1535
+ z.lazy(() => GetAllPromptSnippetsResponseFormat1$inboundSchema),
1536
+ ]);
1537
+
1538
+ /** @internal */
1539
+ export type GetAllPromptSnippetsResponseFormat$Outbound =
1540
+ | GetAllPromptSnippetsResponseFormat2$Outbound
1541
+ | GetAllPromptSnippetsResponseFormat1$Outbound;
1542
+
1543
+ /** @internal */
1544
+ export const GetAllPromptSnippetsResponseFormat$outboundSchema: z.ZodType<
1545
+ GetAllPromptSnippetsResponseFormat$Outbound,
1546
+ z.ZodTypeDef,
1547
+ GetAllPromptSnippetsResponseFormat
1548
+ > = z.union([
1549
+ z.lazy(() => GetAllPromptSnippetsResponseFormat2$outboundSchema),
1550
+ z.lazy(() => GetAllPromptSnippetsResponseFormat1$outboundSchema),
1551
+ ]);
1552
+
1553
+ /**
1554
+ * @internal
1555
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1556
+ */
1557
+ export namespace GetAllPromptSnippetsResponseFormat$ {
1558
+ /** @deprecated use `GetAllPromptSnippetsResponseFormat$inboundSchema` instead. */
1559
+ export const inboundSchema = GetAllPromptSnippetsResponseFormat$inboundSchema;
1560
+ /** @deprecated use `GetAllPromptSnippetsResponseFormat$outboundSchema` instead. */
1561
+ export const outboundSchema =
1562
+ GetAllPromptSnippetsResponseFormat$outboundSchema;
1563
+ /** @deprecated use `GetAllPromptSnippetsResponseFormat$Outbound` instead. */
1564
+ export type Outbound = GetAllPromptSnippetsResponseFormat$Outbound;
1565
+ }
1566
+
1567
+ export function getAllPromptSnippetsResponseFormatToJSON(
1568
+ getAllPromptSnippetsResponseFormat: GetAllPromptSnippetsResponseFormat,
1569
+ ): string {
1570
+ return JSON.stringify(
1571
+ GetAllPromptSnippetsResponseFormat$outboundSchema.parse(
1572
+ getAllPromptSnippetsResponseFormat,
1573
+ ),
1574
+ );
1575
+ }
1576
+
1577
+ export function getAllPromptSnippetsResponseFormatFromJSON(
1578
+ jsonString: string,
1579
+ ): SafeParseResult<GetAllPromptSnippetsResponseFormat, SDKValidationError> {
1580
+ return safeParse(
1581
+ jsonString,
1582
+ (x) =>
1583
+ GetAllPromptSnippetsResponseFormat$inboundSchema.parse(JSON.parse(x)),
1584
+ `Failed to parse 'GetAllPromptSnippetsResponseFormat' from JSON`,
1585
+ );
1586
+ }
1587
+
1588
+ /** @internal */
1589
+ export const GetAllPromptSnippetsPhotoRealVersion$inboundSchema:
1590
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPhotoRealVersion> = z.nativeEnum(
1591
+ GetAllPromptSnippetsPhotoRealVersion,
1592
+ );
1593
+
1594
+ /** @internal */
1595
+ export const GetAllPromptSnippetsPhotoRealVersion$outboundSchema:
1596
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPhotoRealVersion> =
1597
+ GetAllPromptSnippetsPhotoRealVersion$inboundSchema;
1598
+
1599
+ /**
1600
+ * @internal
1601
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1602
+ */
1603
+ export namespace GetAllPromptSnippetsPhotoRealVersion$ {
1604
+ /** @deprecated use `GetAllPromptSnippetsPhotoRealVersion$inboundSchema` instead. */
1605
+ export const inboundSchema =
1606
+ GetAllPromptSnippetsPhotoRealVersion$inboundSchema;
1607
+ /** @deprecated use `GetAllPromptSnippetsPhotoRealVersion$outboundSchema` instead. */
1608
+ export const outboundSchema =
1609
+ GetAllPromptSnippetsPhotoRealVersion$outboundSchema;
1610
+ }
1611
+
1612
+ /** @internal */
1613
+ export const GetAllPromptSnippetsEncodingFormat$inboundSchema: z.ZodNativeEnum<
1614
+ typeof GetAllPromptSnippetsEncodingFormat
1615
+ > = z.nativeEnum(GetAllPromptSnippetsEncodingFormat);
1616
+
1617
+ /** @internal */
1618
+ export const GetAllPromptSnippetsEncodingFormat$outboundSchema: z.ZodNativeEnum<
1619
+ typeof GetAllPromptSnippetsEncodingFormat
1620
+ > = GetAllPromptSnippetsEncodingFormat$inboundSchema;
1621
+
1622
+ /**
1623
+ * @internal
1624
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1625
+ */
1626
+ export namespace GetAllPromptSnippetsEncodingFormat$ {
1627
+ /** @deprecated use `GetAllPromptSnippetsEncodingFormat$inboundSchema` instead. */
1628
+ export const inboundSchema = GetAllPromptSnippetsEncodingFormat$inboundSchema;
1629
+ /** @deprecated use `GetAllPromptSnippetsEncodingFormat$outboundSchema` instead. */
1630
+ export const outboundSchema =
1631
+ GetAllPromptSnippetsEncodingFormat$outboundSchema;
1632
+ }
1633
+
1634
+ /** @internal */
1635
+ export const GetAllPromptSnippetsReasoningEffort$inboundSchema: z.ZodNativeEnum<
1636
+ typeof GetAllPromptSnippetsReasoningEffort
1637
+ > = z.nativeEnum(GetAllPromptSnippetsReasoningEffort);
1638
+
1639
+ /** @internal */
1640
+ export const GetAllPromptSnippetsReasoningEffort$outboundSchema:
1641
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsReasoningEffort> =
1642
+ GetAllPromptSnippetsReasoningEffort$inboundSchema;
1643
+
1644
+ /**
1645
+ * @internal
1646
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1647
+ */
1648
+ export namespace GetAllPromptSnippetsReasoningEffort$ {
1649
+ /** @deprecated use `GetAllPromptSnippetsReasoningEffort$inboundSchema` instead. */
1650
+ export const inboundSchema =
1651
+ GetAllPromptSnippetsReasoningEffort$inboundSchema;
1652
+ /** @deprecated use `GetAllPromptSnippetsReasoningEffort$outboundSchema` instead. */
1653
+ export const outboundSchema =
1654
+ GetAllPromptSnippetsReasoningEffort$outboundSchema;
1655
+ }
1656
+
1657
+ /** @internal */
1658
+ export const GetAllPromptSnippetsModelParameters$inboundSchema: z.ZodType<
1659
+ GetAllPromptSnippetsModelParameters,
1660
+ z.ZodTypeDef,
1661
+ unknown
1662
+ > = z.object({
1663
+ temperature: z.number().optional(),
1664
+ maxTokens: z.number().optional(),
1665
+ topK: z.number().optional(),
1666
+ topP: z.number().optional(),
1667
+ frequencyPenalty: z.number().optional(),
1668
+ presencePenalty: z.number().optional(),
1669
+ numImages: z.number().optional(),
1670
+ seed: z.number().optional(),
1671
+ format: GetAllPromptSnippetsFormat$inboundSchema.optional(),
1672
+ dimensions: z.string().optional(),
1673
+ quality: GetAllPromptSnippetsQuality$inboundSchema.optional(),
1674
+ style: z.string().optional(),
1675
+ responseFormat: z.nullable(
1676
+ z.union([
1677
+ z.lazy(() => GetAllPromptSnippetsResponseFormat2$inboundSchema),
1678
+ z.lazy(() => GetAllPromptSnippetsResponseFormat1$inboundSchema),
1679
+ ]),
1680
+ ).optional(),
1681
+ photoRealVersion: GetAllPromptSnippetsPhotoRealVersion$inboundSchema
1682
+ .optional(),
1683
+ encoding_format: GetAllPromptSnippetsEncodingFormat$inboundSchema.optional(),
1684
+ reasoningEffort: GetAllPromptSnippetsReasoningEffort$inboundSchema.optional(),
1685
+ }).transform((v) => {
1686
+ return remap$(v, {
1687
+ "encoding_format": "encodingFormat",
1688
+ });
1689
+ });
1690
+
1691
+ /** @internal */
1692
+ export type GetAllPromptSnippetsModelParameters$Outbound = {
1693
+ temperature?: number | undefined;
1694
+ maxTokens?: number | undefined;
1695
+ topK?: number | undefined;
1696
+ topP?: number | undefined;
1697
+ frequencyPenalty?: number | undefined;
1698
+ presencePenalty?: number | undefined;
1699
+ numImages?: number | undefined;
1700
+ seed?: number | undefined;
1701
+ format?: string | undefined;
1702
+ dimensions?: string | undefined;
1703
+ quality?: string | undefined;
1704
+ style?: string | undefined;
1705
+ responseFormat?:
1706
+ | GetAllPromptSnippetsResponseFormat2$Outbound
1707
+ | GetAllPromptSnippetsResponseFormat1$Outbound
1708
+ | null
1709
+ | undefined;
1710
+ photoRealVersion?: string | undefined;
1711
+ encoding_format?: string | undefined;
1712
+ reasoningEffort?: string | undefined;
1713
+ };
1714
+
1715
+ /** @internal */
1716
+ export const GetAllPromptSnippetsModelParameters$outboundSchema: z.ZodType<
1717
+ GetAllPromptSnippetsModelParameters$Outbound,
1718
+ z.ZodTypeDef,
1719
+ GetAllPromptSnippetsModelParameters
1720
+ > = z.object({
1721
+ temperature: z.number().optional(),
1722
+ maxTokens: z.number().optional(),
1723
+ topK: z.number().optional(),
1724
+ topP: z.number().optional(),
1725
+ frequencyPenalty: z.number().optional(),
1726
+ presencePenalty: z.number().optional(),
1727
+ numImages: z.number().optional(),
1728
+ seed: z.number().optional(),
1729
+ format: GetAllPromptSnippetsFormat$outboundSchema.optional(),
1730
+ dimensions: z.string().optional(),
1731
+ quality: GetAllPromptSnippetsQuality$outboundSchema.optional(),
1732
+ style: z.string().optional(),
1733
+ responseFormat: z.nullable(
1734
+ z.union([
1735
+ z.lazy(() => GetAllPromptSnippetsResponseFormat2$outboundSchema),
1736
+ z.lazy(() => GetAllPromptSnippetsResponseFormat1$outboundSchema),
1737
+ ]),
1738
+ ).optional(),
1739
+ photoRealVersion: GetAllPromptSnippetsPhotoRealVersion$outboundSchema
1740
+ .optional(),
1741
+ encodingFormat: GetAllPromptSnippetsEncodingFormat$outboundSchema.optional(),
1742
+ reasoningEffort: GetAllPromptSnippetsReasoningEffort$outboundSchema
1743
+ .optional(),
1744
+ }).transform((v) => {
1745
+ return remap$(v, {
1746
+ encodingFormat: "encoding_format",
1747
+ });
1748
+ });
1749
+
1750
+ /**
1751
+ * @internal
1752
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1753
+ */
1754
+ export namespace GetAllPromptSnippetsModelParameters$ {
1755
+ /** @deprecated use `GetAllPromptSnippetsModelParameters$inboundSchema` instead. */
1756
+ export const inboundSchema =
1757
+ GetAllPromptSnippetsModelParameters$inboundSchema;
1758
+ /** @deprecated use `GetAllPromptSnippetsModelParameters$outboundSchema` instead. */
1759
+ export const outboundSchema =
1760
+ GetAllPromptSnippetsModelParameters$outboundSchema;
1761
+ /** @deprecated use `GetAllPromptSnippetsModelParameters$Outbound` instead. */
1762
+ export type Outbound = GetAllPromptSnippetsModelParameters$Outbound;
1763
+ }
1764
+
1765
+ export function getAllPromptSnippetsModelParametersToJSON(
1766
+ getAllPromptSnippetsModelParameters: GetAllPromptSnippetsModelParameters,
1767
+ ): string {
1768
+ return JSON.stringify(
1769
+ GetAllPromptSnippetsModelParameters$outboundSchema.parse(
1770
+ getAllPromptSnippetsModelParameters,
1771
+ ),
1772
+ );
1773
+ }
1774
+
1775
+ export function getAllPromptSnippetsModelParametersFromJSON(
1776
+ jsonString: string,
1777
+ ): SafeParseResult<GetAllPromptSnippetsModelParameters, SDKValidationError> {
1778
+ return safeParse(
1779
+ jsonString,
1780
+ (x) =>
1781
+ GetAllPromptSnippetsModelParameters$inboundSchema.parse(JSON.parse(x)),
1782
+ `Failed to parse 'GetAllPromptSnippetsModelParameters' from JSON`,
1783
+ );
1784
+ }
1785
+
1786
+ /** @internal */
1787
+ export const GetAllPromptSnippetsProvider$inboundSchema: z.ZodNativeEnum<
1788
+ typeof GetAllPromptSnippetsProvider
1789
+ > = z.nativeEnum(GetAllPromptSnippetsProvider);
1790
+
1791
+ /** @internal */
1792
+ export const GetAllPromptSnippetsProvider$outboundSchema: z.ZodNativeEnum<
1793
+ typeof GetAllPromptSnippetsProvider
1794
+ > = GetAllPromptSnippetsProvider$inboundSchema;
1795
+
1796
+ /**
1797
+ * @internal
1798
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1799
+ */
1800
+ export namespace GetAllPromptSnippetsProvider$ {
1801
+ /** @deprecated use `GetAllPromptSnippetsProvider$inboundSchema` instead. */
1802
+ export const inboundSchema = GetAllPromptSnippetsProvider$inboundSchema;
1803
+ /** @deprecated use `GetAllPromptSnippetsProvider$outboundSchema` instead. */
1804
+ export const outboundSchema = GetAllPromptSnippetsProvider$outboundSchema;
1805
+ }
1806
+
1807
+ /** @internal */
1808
+ export const GetAllPromptSnippetsRole$inboundSchema: z.ZodNativeEnum<
1809
+ typeof GetAllPromptSnippetsRole
1810
+ > = z.nativeEnum(GetAllPromptSnippetsRole);
1811
+
1812
+ /** @internal */
1813
+ export const GetAllPromptSnippetsRole$outboundSchema: z.ZodNativeEnum<
1814
+ typeof GetAllPromptSnippetsRole
1815
+ > = GetAllPromptSnippetsRole$inboundSchema;
1816
+
1817
+ /**
1818
+ * @internal
1819
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1820
+ */
1821
+ export namespace GetAllPromptSnippetsRole$ {
1822
+ /** @deprecated use `GetAllPromptSnippetsRole$inboundSchema` instead. */
1823
+ export const inboundSchema = GetAllPromptSnippetsRole$inboundSchema;
1824
+ /** @deprecated use `GetAllPromptSnippetsRole$outboundSchema` instead. */
1825
+ export const outboundSchema = GetAllPromptSnippetsRole$outboundSchema;
1826
+ }
1827
+
1828
+ /** @internal */
1829
+ export const GetAllPromptSnippets2PromptSnippetsType$inboundSchema:
1830
+ z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsType> = z
1831
+ .nativeEnum(GetAllPromptSnippets2PromptSnippetsType);
1832
+
1833
+ /** @internal */
1834
+ export const GetAllPromptSnippets2PromptSnippetsType$outboundSchema:
1835
+ z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsType> =
1836
+ GetAllPromptSnippets2PromptSnippetsType$inboundSchema;
1837
+
1838
+ /**
1839
+ * @internal
1840
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1841
+ */
1842
+ export namespace GetAllPromptSnippets2PromptSnippetsType$ {
1843
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippetsType$inboundSchema` instead. */
1844
+ export const inboundSchema =
1845
+ GetAllPromptSnippets2PromptSnippetsType$inboundSchema;
1846
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippetsType$outboundSchema` instead. */
1847
+ export const outboundSchema =
1848
+ GetAllPromptSnippets2PromptSnippetsType$outboundSchema;
1849
+ }
1850
+
1851
+ /** @internal */
1852
+ export const GetAllPromptSnippets2ImageUrl$inboundSchema: z.ZodType<
1853
+ GetAllPromptSnippets2ImageUrl,
1854
+ z.ZodTypeDef,
1855
+ unknown
1856
+ > = z.object({
1857
+ id: z.string().optional(),
1858
+ url: z.string(),
1859
+ detail: z.string().optional(),
1860
+ });
1861
+
1862
+ /** @internal */
1863
+ export type GetAllPromptSnippets2ImageUrl$Outbound = {
1864
+ id?: string | undefined;
1865
+ url: string;
1866
+ detail?: string | undefined;
1867
+ };
1868
+
1869
+ /** @internal */
1870
+ export const GetAllPromptSnippets2ImageUrl$outboundSchema: z.ZodType<
1871
+ GetAllPromptSnippets2ImageUrl$Outbound,
1872
+ z.ZodTypeDef,
1873
+ GetAllPromptSnippets2ImageUrl
1874
+ > = z.object({
1875
+ id: z.string().optional(),
1876
+ url: z.string(),
1877
+ detail: z.string().optional(),
1878
+ });
1879
+
1880
+ /**
1881
+ * @internal
1882
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1883
+ */
1884
+ export namespace GetAllPromptSnippets2ImageUrl$ {
1885
+ /** @deprecated use `GetAllPromptSnippets2ImageUrl$inboundSchema` instead. */
1886
+ export const inboundSchema = GetAllPromptSnippets2ImageUrl$inboundSchema;
1887
+ /** @deprecated use `GetAllPromptSnippets2ImageUrl$outboundSchema` instead. */
1888
+ export const outboundSchema = GetAllPromptSnippets2ImageUrl$outboundSchema;
1889
+ /** @deprecated use `GetAllPromptSnippets2ImageUrl$Outbound` instead. */
1890
+ export type Outbound = GetAllPromptSnippets2ImageUrl$Outbound;
1891
+ }
1892
+
1893
+ export function getAllPromptSnippets2ImageUrlToJSON(
1894
+ getAllPromptSnippets2ImageUrl: GetAllPromptSnippets2ImageUrl,
1895
+ ): string {
1896
+ return JSON.stringify(
1897
+ GetAllPromptSnippets2ImageUrl$outboundSchema.parse(
1898
+ getAllPromptSnippets2ImageUrl,
1899
+ ),
1900
+ );
1901
+ }
1902
+
1903
+ export function getAllPromptSnippets2ImageUrlFromJSON(
1904
+ jsonString: string,
1905
+ ): SafeParseResult<GetAllPromptSnippets2ImageUrl, SDKValidationError> {
1906
+ return safeParse(
1907
+ jsonString,
1908
+ (x) => GetAllPromptSnippets2ImageUrl$inboundSchema.parse(JSON.parse(x)),
1909
+ `Failed to parse 'GetAllPromptSnippets2ImageUrl' from JSON`,
1910
+ );
1911
+ }
1912
+
1913
+ /** @internal */
1914
+ export const GetAllPromptSnippets22$inboundSchema: z.ZodType<
1915
+ GetAllPromptSnippets22,
1916
+ z.ZodTypeDef,
1917
+ unknown
1918
+ > = z.object({
1919
+ type: GetAllPromptSnippets2PromptSnippetsType$inboundSchema,
1920
+ image_url: z.lazy(() => GetAllPromptSnippets2ImageUrl$inboundSchema),
1921
+ }).transform((v) => {
1922
+ return remap$(v, {
1923
+ "image_url": "imageUrl",
1924
+ });
1925
+ });
1926
+
1927
+ /** @internal */
1928
+ export type GetAllPromptSnippets22$Outbound = {
1929
+ type: string;
1930
+ image_url: GetAllPromptSnippets2ImageUrl$Outbound;
1931
+ };
1932
+
1933
+ /** @internal */
1934
+ export const GetAllPromptSnippets22$outboundSchema: z.ZodType<
1935
+ GetAllPromptSnippets22$Outbound,
1936
+ z.ZodTypeDef,
1937
+ GetAllPromptSnippets22
1938
+ > = z.object({
1939
+ type: GetAllPromptSnippets2PromptSnippetsType$outboundSchema,
1940
+ imageUrl: z.lazy(() => GetAllPromptSnippets2ImageUrl$outboundSchema),
1941
+ }).transform((v) => {
1942
+ return remap$(v, {
1943
+ imageUrl: "image_url",
1944
+ });
1945
+ });
1946
+
1947
+ /**
1948
+ * @internal
1949
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1950
+ */
1951
+ export namespace GetAllPromptSnippets22$ {
1952
+ /** @deprecated use `GetAllPromptSnippets22$inboundSchema` instead. */
1953
+ export const inboundSchema = GetAllPromptSnippets22$inboundSchema;
1954
+ /** @deprecated use `GetAllPromptSnippets22$outboundSchema` instead. */
1955
+ export const outboundSchema = GetAllPromptSnippets22$outboundSchema;
1956
+ /** @deprecated use `GetAllPromptSnippets22$Outbound` instead. */
1957
+ export type Outbound = GetAllPromptSnippets22$Outbound;
1958
+ }
1959
+
1960
+ export function getAllPromptSnippets22ToJSON(
1961
+ getAllPromptSnippets22: GetAllPromptSnippets22,
1962
+ ): string {
1963
+ return JSON.stringify(
1964
+ GetAllPromptSnippets22$outboundSchema.parse(getAllPromptSnippets22),
1965
+ );
1966
+ }
1967
+
1968
+ export function getAllPromptSnippets22FromJSON(
1969
+ jsonString: string,
1970
+ ): SafeParseResult<GetAllPromptSnippets22, SDKValidationError> {
1971
+ return safeParse(
1972
+ jsonString,
1973
+ (x) => GetAllPromptSnippets22$inboundSchema.parse(JSON.parse(x)),
1974
+ `Failed to parse 'GetAllPromptSnippets22' from JSON`,
1975
+ );
1976
+ }
1977
+
1978
+ /** @internal */
1979
+ export const GetAllPromptSnippets2Type$inboundSchema: z.ZodNativeEnum<
1980
+ typeof GetAllPromptSnippets2Type
1981
+ > = z.nativeEnum(GetAllPromptSnippets2Type);
1982
+
1983
+ /** @internal */
1984
+ export const GetAllPromptSnippets2Type$outboundSchema: z.ZodNativeEnum<
1985
+ typeof GetAllPromptSnippets2Type
1986
+ > = GetAllPromptSnippets2Type$inboundSchema;
1987
+
1988
+ /**
1989
+ * @internal
1990
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1991
+ */
1992
+ export namespace GetAllPromptSnippets2Type$ {
1993
+ /** @deprecated use `GetAllPromptSnippets2Type$inboundSchema` instead. */
1994
+ export const inboundSchema = GetAllPromptSnippets2Type$inboundSchema;
1995
+ /** @deprecated use `GetAllPromptSnippets2Type$outboundSchema` instead. */
1996
+ export const outboundSchema = GetAllPromptSnippets2Type$outboundSchema;
1997
+ }
1998
+
1999
+ /** @internal */
2000
+ export const GetAllPromptSnippets21$inboundSchema: z.ZodType<
2001
+ GetAllPromptSnippets21,
2002
+ z.ZodTypeDef,
2003
+ unknown
2004
+ > = z.object({
2005
+ type: GetAllPromptSnippets2Type$inboundSchema,
2006
+ text: z.string(),
2007
+ });
2008
+
2009
+ /** @internal */
2010
+ export type GetAllPromptSnippets21$Outbound = {
2011
+ type: string;
2012
+ text: string;
2013
+ };
2014
+
2015
+ /** @internal */
2016
+ export const GetAllPromptSnippets21$outboundSchema: z.ZodType<
2017
+ GetAllPromptSnippets21$Outbound,
2018
+ z.ZodTypeDef,
2019
+ GetAllPromptSnippets21
2020
+ > = z.object({
2021
+ type: GetAllPromptSnippets2Type$outboundSchema,
2022
+ text: z.string(),
2023
+ });
2024
+
2025
+ /**
2026
+ * @internal
2027
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2028
+ */
2029
+ export namespace GetAllPromptSnippets21$ {
2030
+ /** @deprecated use `GetAllPromptSnippets21$inboundSchema` instead. */
2031
+ export const inboundSchema = GetAllPromptSnippets21$inboundSchema;
2032
+ /** @deprecated use `GetAllPromptSnippets21$outboundSchema` instead. */
2033
+ export const outboundSchema = GetAllPromptSnippets21$outboundSchema;
2034
+ /** @deprecated use `GetAllPromptSnippets21$Outbound` instead. */
2035
+ export type Outbound = GetAllPromptSnippets21$Outbound;
2036
+ }
2037
+
2038
+ export function getAllPromptSnippets21ToJSON(
2039
+ getAllPromptSnippets21: GetAllPromptSnippets21,
2040
+ ): string {
2041
+ return JSON.stringify(
2042
+ GetAllPromptSnippets21$outboundSchema.parse(getAllPromptSnippets21),
2043
+ );
2044
+ }
2045
+
2046
+ export function getAllPromptSnippets21FromJSON(
2047
+ jsonString: string,
2048
+ ): SafeParseResult<GetAllPromptSnippets21, SDKValidationError> {
2049
+ return safeParse(
2050
+ jsonString,
2051
+ (x) => GetAllPromptSnippets21$inboundSchema.parse(JSON.parse(x)),
2052
+ `Failed to parse 'GetAllPromptSnippets21' from JSON`,
2053
+ );
2054
+ }
2055
+
2056
+ /** @internal */
2057
+ export const GetAllPromptSnippetsContent2$inboundSchema: z.ZodType<
2058
+ GetAllPromptSnippetsContent2,
2059
+ z.ZodTypeDef,
2060
+ unknown
2061
+ > = z.union([
2062
+ z.lazy(() => GetAllPromptSnippets21$inboundSchema),
2063
+ z.lazy(() => GetAllPromptSnippets22$inboundSchema),
2064
+ ]);
2065
+
2066
+ /** @internal */
2067
+ export type GetAllPromptSnippetsContent2$Outbound =
2068
+ | GetAllPromptSnippets21$Outbound
2069
+ | GetAllPromptSnippets22$Outbound;
2070
+
2071
+ /** @internal */
2072
+ export const GetAllPromptSnippetsContent2$outboundSchema: z.ZodType<
2073
+ GetAllPromptSnippetsContent2$Outbound,
2074
+ z.ZodTypeDef,
2075
+ GetAllPromptSnippetsContent2
2076
+ > = z.union([
2077
+ z.lazy(() => GetAllPromptSnippets21$outboundSchema),
2078
+ z.lazy(() => GetAllPromptSnippets22$outboundSchema),
2079
+ ]);
2080
+
2081
+ /**
2082
+ * @internal
2083
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2084
+ */
2085
+ export namespace GetAllPromptSnippetsContent2$ {
2086
+ /** @deprecated use `GetAllPromptSnippetsContent2$inboundSchema` instead. */
2087
+ export const inboundSchema = GetAllPromptSnippetsContent2$inboundSchema;
2088
+ /** @deprecated use `GetAllPromptSnippetsContent2$outboundSchema` instead. */
2089
+ export const outboundSchema = GetAllPromptSnippetsContent2$outboundSchema;
2090
+ /** @deprecated use `GetAllPromptSnippetsContent2$Outbound` instead. */
2091
+ export type Outbound = GetAllPromptSnippetsContent2$Outbound;
2092
+ }
2093
+
2094
+ export function getAllPromptSnippetsContent2ToJSON(
2095
+ getAllPromptSnippetsContent2: GetAllPromptSnippetsContent2,
2096
+ ): string {
2097
+ return JSON.stringify(
2098
+ GetAllPromptSnippetsContent2$outboundSchema.parse(
2099
+ getAllPromptSnippetsContent2,
2100
+ ),
2101
+ );
2102
+ }
2103
+
2104
+ export function getAllPromptSnippetsContent2FromJSON(
2105
+ jsonString: string,
2106
+ ): SafeParseResult<GetAllPromptSnippetsContent2, SDKValidationError> {
2107
+ return safeParse(
2108
+ jsonString,
2109
+ (x) => GetAllPromptSnippetsContent2$inboundSchema.parse(JSON.parse(x)),
2110
+ `Failed to parse 'GetAllPromptSnippetsContent2' from JSON`,
2111
+ );
2112
+ }
2113
+
2114
+ /** @internal */
2115
+ export const GetAllPromptSnippetsContent$inboundSchema: z.ZodType<
2116
+ GetAllPromptSnippetsContent,
2117
+ z.ZodTypeDef,
2118
+ unknown
2119
+ > = z.union([
2120
+ z.string(),
2121
+ z.array(z.union([
2122
+ z.lazy(() => GetAllPromptSnippets21$inboundSchema),
2123
+ z.lazy(() => GetAllPromptSnippets22$inboundSchema),
2124
+ ])),
2125
+ ]);
2126
+
2127
+ /** @internal */
2128
+ export type GetAllPromptSnippetsContent$Outbound =
2129
+ | string
2130
+ | Array<GetAllPromptSnippets21$Outbound | GetAllPromptSnippets22$Outbound>;
2131
+
2132
+ /** @internal */
2133
+ export const GetAllPromptSnippetsContent$outboundSchema: z.ZodType<
2134
+ GetAllPromptSnippetsContent$Outbound,
2135
+ z.ZodTypeDef,
2136
+ GetAllPromptSnippetsContent
2137
+ > = z.union([
2138
+ z.string(),
2139
+ z.array(z.union([
2140
+ z.lazy(() => GetAllPromptSnippets21$outboundSchema),
2141
+ z.lazy(() => GetAllPromptSnippets22$outboundSchema),
2142
+ ])),
2143
+ ]);
2144
+
2145
+ /**
2146
+ * @internal
2147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2148
+ */
2149
+ export namespace GetAllPromptSnippetsContent$ {
2150
+ /** @deprecated use `GetAllPromptSnippetsContent$inboundSchema` instead. */
2151
+ export const inboundSchema = GetAllPromptSnippetsContent$inboundSchema;
2152
+ /** @deprecated use `GetAllPromptSnippetsContent$outboundSchema` instead. */
2153
+ export const outboundSchema = GetAllPromptSnippetsContent$outboundSchema;
2154
+ /** @deprecated use `GetAllPromptSnippetsContent$Outbound` instead. */
2155
+ export type Outbound = GetAllPromptSnippetsContent$Outbound;
2156
+ }
2157
+
2158
+ export function getAllPromptSnippetsContentToJSON(
2159
+ getAllPromptSnippetsContent: GetAllPromptSnippetsContent,
2160
+ ): string {
2161
+ return JSON.stringify(
2162
+ GetAllPromptSnippetsContent$outboundSchema.parse(
2163
+ getAllPromptSnippetsContent,
2164
+ ),
2165
+ );
2166
+ }
2167
+
2168
+ export function getAllPromptSnippetsContentFromJSON(
2169
+ jsonString: string,
2170
+ ): SafeParseResult<GetAllPromptSnippetsContent, SDKValidationError> {
2171
+ return safeParse(
2172
+ jsonString,
2173
+ (x) => GetAllPromptSnippetsContent$inboundSchema.parse(JSON.parse(x)),
2174
+ `Failed to parse 'GetAllPromptSnippetsContent' from JSON`,
2175
+ );
2176
+ }
2177
+
2178
+ /** @internal */
2179
+ export const GetAllPromptSnippetsPromptSnippetsType$inboundSchema:
2180
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsType> = z.nativeEnum(
2181
+ GetAllPromptSnippetsPromptSnippetsType,
2182
+ );
2183
+
2184
+ /** @internal */
2185
+ export const GetAllPromptSnippetsPromptSnippetsType$outboundSchema:
2186
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsType> =
2187
+ GetAllPromptSnippetsPromptSnippetsType$inboundSchema;
2188
+
2189
+ /**
2190
+ * @internal
2191
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2192
+ */
2193
+ export namespace GetAllPromptSnippetsPromptSnippetsType$ {
2194
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsType$inboundSchema` instead. */
2195
+ export const inboundSchema =
2196
+ GetAllPromptSnippetsPromptSnippetsType$inboundSchema;
2197
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsType$outboundSchema` instead. */
2198
+ export const outboundSchema =
2199
+ GetAllPromptSnippetsPromptSnippetsType$outboundSchema;
2200
+ }
2201
+
2202
+ /** @internal */
2203
+ export const GetAllPromptSnippetsFunction$inboundSchema: z.ZodType<
2204
+ GetAllPromptSnippetsFunction,
2205
+ z.ZodTypeDef,
2206
+ unknown
2207
+ > = z.object({
2208
+ name: z.string(),
2209
+ arguments: z.string(),
2210
+ });
2211
+
2212
+ /** @internal */
2213
+ export type GetAllPromptSnippetsFunction$Outbound = {
2214
+ name: string;
2215
+ arguments: string;
2216
+ };
2217
+
2218
+ /** @internal */
2219
+ export const GetAllPromptSnippetsFunction$outboundSchema: z.ZodType<
2220
+ GetAllPromptSnippetsFunction$Outbound,
2221
+ z.ZodTypeDef,
2222
+ GetAllPromptSnippetsFunction
2223
+ > = z.object({
2224
+ name: z.string(),
2225
+ arguments: z.string(),
2226
+ });
2227
+
2228
+ /**
2229
+ * @internal
2230
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2231
+ */
2232
+ export namespace GetAllPromptSnippetsFunction$ {
2233
+ /** @deprecated use `GetAllPromptSnippetsFunction$inboundSchema` instead. */
2234
+ export const inboundSchema = GetAllPromptSnippetsFunction$inboundSchema;
2235
+ /** @deprecated use `GetAllPromptSnippetsFunction$outboundSchema` instead. */
2236
+ export const outboundSchema = GetAllPromptSnippetsFunction$outboundSchema;
2237
+ /** @deprecated use `GetAllPromptSnippetsFunction$Outbound` instead. */
2238
+ export type Outbound = GetAllPromptSnippetsFunction$Outbound;
2239
+ }
2240
+
2241
+ export function getAllPromptSnippetsFunctionToJSON(
2242
+ getAllPromptSnippetsFunction: GetAllPromptSnippetsFunction,
2243
+ ): string {
2244
+ return JSON.stringify(
2245
+ GetAllPromptSnippetsFunction$outboundSchema.parse(
2246
+ getAllPromptSnippetsFunction,
2247
+ ),
2248
+ );
2249
+ }
2250
+
2251
+ export function getAllPromptSnippetsFunctionFromJSON(
2252
+ jsonString: string,
2253
+ ): SafeParseResult<GetAllPromptSnippetsFunction, SDKValidationError> {
2254
+ return safeParse(
2255
+ jsonString,
2256
+ (x) => GetAllPromptSnippetsFunction$inboundSchema.parse(JSON.parse(x)),
2257
+ `Failed to parse 'GetAllPromptSnippetsFunction' from JSON`,
2258
+ );
2259
+ }
2260
+
2261
+ /** @internal */
2262
+ export const GetAllPromptSnippetsToolCalls$inboundSchema: z.ZodType<
2263
+ GetAllPromptSnippetsToolCalls,
2264
+ z.ZodTypeDef,
2265
+ unknown
2266
+ > = z.object({
2267
+ id: z.string().optional(),
2268
+ index: z.number().optional(),
2269
+ type: GetAllPromptSnippetsPromptSnippetsType$inboundSchema,
2270
+ function: z.lazy(() => GetAllPromptSnippetsFunction$inboundSchema),
2271
+ });
2272
+
2273
+ /** @internal */
2274
+ export type GetAllPromptSnippetsToolCalls$Outbound = {
2275
+ id?: string | undefined;
2276
+ index?: number | undefined;
2277
+ type: string;
2278
+ function: GetAllPromptSnippetsFunction$Outbound;
2279
+ };
2280
+
2281
+ /** @internal */
2282
+ export const GetAllPromptSnippetsToolCalls$outboundSchema: z.ZodType<
2283
+ GetAllPromptSnippetsToolCalls$Outbound,
2284
+ z.ZodTypeDef,
2285
+ GetAllPromptSnippetsToolCalls
2286
+ > = z.object({
2287
+ id: z.string().optional(),
2288
+ index: z.number().optional(),
2289
+ type: GetAllPromptSnippetsPromptSnippetsType$outboundSchema,
2290
+ function: z.lazy(() => GetAllPromptSnippetsFunction$outboundSchema),
2291
+ });
2292
+
2293
+ /**
2294
+ * @internal
2295
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2296
+ */
2297
+ export namespace GetAllPromptSnippetsToolCalls$ {
2298
+ /** @deprecated use `GetAllPromptSnippetsToolCalls$inboundSchema` instead. */
2299
+ export const inboundSchema = GetAllPromptSnippetsToolCalls$inboundSchema;
2300
+ /** @deprecated use `GetAllPromptSnippetsToolCalls$outboundSchema` instead. */
2301
+ export const outboundSchema = GetAllPromptSnippetsToolCalls$outboundSchema;
2302
+ /** @deprecated use `GetAllPromptSnippetsToolCalls$Outbound` instead. */
2303
+ export type Outbound = GetAllPromptSnippetsToolCalls$Outbound;
2304
+ }
2305
+
2306
+ export function getAllPromptSnippetsToolCallsToJSON(
2307
+ getAllPromptSnippetsToolCalls: GetAllPromptSnippetsToolCalls,
2308
+ ): string {
2309
+ return JSON.stringify(
2310
+ GetAllPromptSnippetsToolCalls$outboundSchema.parse(
2311
+ getAllPromptSnippetsToolCalls,
2312
+ ),
2313
+ );
2314
+ }
2315
+
2316
+ export function getAllPromptSnippetsToolCallsFromJSON(
2317
+ jsonString: string,
2318
+ ): SafeParseResult<GetAllPromptSnippetsToolCalls, SDKValidationError> {
2319
+ return safeParse(
2320
+ jsonString,
2321
+ (x) => GetAllPromptSnippetsToolCalls$inboundSchema.parse(JSON.parse(x)),
2322
+ `Failed to parse 'GetAllPromptSnippetsToolCalls' from JSON`,
2323
+ );
2324
+ }
2325
+
2326
+ /** @internal */
2327
+ export const GetAllPromptSnippetsMessages$inboundSchema: z.ZodType<
2328
+ GetAllPromptSnippetsMessages,
2329
+ z.ZodTypeDef,
2330
+ unknown
2331
+ > = z.object({
2332
+ role: GetAllPromptSnippetsRole$inboundSchema,
2333
+ content: z.union([
2334
+ z.string(),
2335
+ z.array(z.union([
2336
+ z.lazy(() => GetAllPromptSnippets21$inboundSchema),
2337
+ z.lazy(() => GetAllPromptSnippets22$inboundSchema),
2338
+ ])),
2339
+ ]),
2340
+ tool_calls: z.array(z.lazy(() => GetAllPromptSnippetsToolCalls$inboundSchema))
2341
+ .optional(),
2342
+ }).transform((v) => {
2343
+ return remap$(v, {
2344
+ "tool_calls": "toolCalls",
2345
+ });
2346
+ });
2347
+
2348
+ /** @internal */
2349
+ export type GetAllPromptSnippetsMessages$Outbound = {
2350
+ role: string;
2351
+ content:
2352
+ | string
2353
+ | Array<GetAllPromptSnippets21$Outbound | GetAllPromptSnippets22$Outbound>;
2354
+ tool_calls?: Array<GetAllPromptSnippetsToolCalls$Outbound> | undefined;
2355
+ };
2356
+
2357
+ /** @internal */
2358
+ export const GetAllPromptSnippetsMessages$outboundSchema: z.ZodType<
2359
+ GetAllPromptSnippetsMessages$Outbound,
2360
+ z.ZodTypeDef,
2361
+ GetAllPromptSnippetsMessages
2362
+ > = z.object({
2363
+ role: GetAllPromptSnippetsRole$outboundSchema,
2364
+ content: z.union([
2365
+ z.string(),
2366
+ z.array(z.union([
2367
+ z.lazy(() => GetAllPromptSnippets21$outboundSchema),
2368
+ z.lazy(() => GetAllPromptSnippets22$outboundSchema),
2369
+ ])),
2370
+ ]),
2371
+ toolCalls: z.array(z.lazy(() => GetAllPromptSnippetsToolCalls$outboundSchema))
2372
+ .optional(),
2373
+ }).transform((v) => {
2374
+ return remap$(v, {
2375
+ toolCalls: "tool_calls",
2376
+ });
2377
+ });
2378
+
2379
+ /**
2380
+ * @internal
2381
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2382
+ */
2383
+ export namespace GetAllPromptSnippetsMessages$ {
2384
+ /** @deprecated use `GetAllPromptSnippetsMessages$inboundSchema` instead. */
2385
+ export const inboundSchema = GetAllPromptSnippetsMessages$inboundSchema;
2386
+ /** @deprecated use `GetAllPromptSnippetsMessages$outboundSchema` instead. */
2387
+ export const outboundSchema = GetAllPromptSnippetsMessages$outboundSchema;
2388
+ /** @deprecated use `GetAllPromptSnippetsMessages$Outbound` instead. */
2389
+ export type Outbound = GetAllPromptSnippetsMessages$Outbound;
2390
+ }
2391
+
2392
+ export function getAllPromptSnippetsMessagesToJSON(
2393
+ getAllPromptSnippetsMessages: GetAllPromptSnippetsMessages,
2394
+ ): string {
2395
+ return JSON.stringify(
2396
+ GetAllPromptSnippetsMessages$outboundSchema.parse(
2397
+ getAllPromptSnippetsMessages,
2398
+ ),
2399
+ );
2400
+ }
2401
+
2402
+ export function getAllPromptSnippetsMessagesFromJSON(
2403
+ jsonString: string,
2404
+ ): SafeParseResult<GetAllPromptSnippetsMessages, SDKValidationError> {
2405
+ return safeParse(
2406
+ jsonString,
2407
+ (x) => GetAllPromptSnippetsMessages$inboundSchema.parse(JSON.parse(x)),
2408
+ `Failed to parse 'GetAllPromptSnippetsMessages' from JSON`,
2409
+ );
2410
+ }
2411
+
2412
+ /** @internal */
2413
+ export const GetAllPromptSnippetsPromptConfig$inboundSchema: z.ZodType<
2414
+ GetAllPromptSnippetsPromptConfig,
2415
+ z.ZodTypeDef,
2416
+ unknown
2417
+ > = z.object({
2418
+ stream: z.boolean().optional(),
2419
+ model: z.string().optional(),
2420
+ model_db_id: z.string().optional(),
2421
+ model_type: GetAllPromptSnippetsModelType$inboundSchema.optional(),
2422
+ model_parameters: z.lazy(() =>
2423
+ GetAllPromptSnippetsModelParameters$inboundSchema
2424
+ ).optional(),
2425
+ provider: GetAllPromptSnippetsProvider$inboundSchema.optional(),
2426
+ integration_id: z.nullable(z.string()).optional(),
2427
+ version: z.string().optional(),
2428
+ messages: z.array(z.lazy(() => GetAllPromptSnippetsMessages$inboundSchema)),
2429
+ }).transform((v) => {
2430
+ return remap$(v, {
2431
+ "model_db_id": "modelDbId",
2432
+ "model_type": "modelType",
2433
+ "model_parameters": "modelParameters",
2434
+ "integration_id": "integrationId",
2435
+ });
2436
+ });
2437
+
2438
+ /** @internal */
2439
+ export type GetAllPromptSnippetsPromptConfig$Outbound = {
2440
+ stream?: boolean | undefined;
2441
+ model?: string | undefined;
2442
+ model_db_id?: string | undefined;
2443
+ model_type?: string | undefined;
2444
+ model_parameters?: GetAllPromptSnippetsModelParameters$Outbound | undefined;
2445
+ provider?: string | undefined;
2446
+ integration_id?: string | null | undefined;
2447
+ version?: string | undefined;
2448
+ messages: Array<GetAllPromptSnippetsMessages$Outbound>;
2449
+ };
2450
+
2451
+ /** @internal */
2452
+ export const GetAllPromptSnippetsPromptConfig$outboundSchema: z.ZodType<
2453
+ GetAllPromptSnippetsPromptConfig$Outbound,
2454
+ z.ZodTypeDef,
2455
+ GetAllPromptSnippetsPromptConfig
2456
+ > = z.object({
2457
+ stream: z.boolean().optional(),
2458
+ model: z.string().optional(),
2459
+ modelDbId: z.string().optional(),
2460
+ modelType: GetAllPromptSnippetsModelType$outboundSchema.optional(),
2461
+ modelParameters: z.lazy(() =>
2462
+ GetAllPromptSnippetsModelParameters$outboundSchema
2463
+ ).optional(),
2464
+ provider: GetAllPromptSnippetsProvider$outboundSchema.optional(),
2465
+ integrationId: z.nullable(z.string()).optional(),
2466
+ version: z.string().optional(),
2467
+ messages: z.array(z.lazy(() => GetAllPromptSnippetsMessages$outboundSchema)),
2468
+ }).transform((v) => {
2469
+ return remap$(v, {
2470
+ modelDbId: "model_db_id",
2471
+ modelType: "model_type",
2472
+ modelParameters: "model_parameters",
2473
+ integrationId: "integration_id",
2474
+ });
2475
+ });
2476
+
2477
+ /**
2478
+ * @internal
2479
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2480
+ */
2481
+ export namespace GetAllPromptSnippetsPromptConfig$ {
2482
+ /** @deprecated use `GetAllPromptSnippetsPromptConfig$inboundSchema` instead. */
2483
+ export const inboundSchema = GetAllPromptSnippetsPromptConfig$inboundSchema;
2484
+ /** @deprecated use `GetAllPromptSnippetsPromptConfig$outboundSchema` instead. */
2485
+ export const outboundSchema = GetAllPromptSnippetsPromptConfig$outboundSchema;
2486
+ /** @deprecated use `GetAllPromptSnippetsPromptConfig$Outbound` instead. */
2487
+ export type Outbound = GetAllPromptSnippetsPromptConfig$Outbound;
2488
+ }
2489
+
2490
+ export function getAllPromptSnippetsPromptConfigToJSON(
2491
+ getAllPromptSnippetsPromptConfig: GetAllPromptSnippetsPromptConfig,
2492
+ ): string {
2493
+ return JSON.stringify(
2494
+ GetAllPromptSnippetsPromptConfig$outboundSchema.parse(
2495
+ getAllPromptSnippetsPromptConfig,
2496
+ ),
2497
+ );
2498
+ }
2499
+
2500
+ export function getAllPromptSnippetsPromptConfigFromJSON(
2501
+ jsonString: string,
2502
+ ): SafeParseResult<GetAllPromptSnippetsPromptConfig, SDKValidationError> {
2503
+ return safeParse(
2504
+ jsonString,
2505
+ (x) => GetAllPromptSnippetsPromptConfig$inboundSchema.parse(JSON.parse(x)),
2506
+ `Failed to parse 'GetAllPromptSnippetsPromptConfig' from JSON`,
2507
+ );
2508
+ }
2509
+
2510
+ /** @internal */
2511
+ export const GetAllPromptSnippetsUseCases$inboundSchema: z.ZodNativeEnum<
2512
+ typeof GetAllPromptSnippetsUseCases
2513
+ > = z.nativeEnum(GetAllPromptSnippetsUseCases);
2514
+
2515
+ /** @internal */
2516
+ export const GetAllPromptSnippetsUseCases$outboundSchema: z.ZodNativeEnum<
2517
+ typeof GetAllPromptSnippetsUseCases
2518
+ > = GetAllPromptSnippetsUseCases$inboundSchema;
2519
+
2520
+ /**
2521
+ * @internal
2522
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2523
+ */
2524
+ export namespace GetAllPromptSnippetsUseCases$ {
2525
+ /** @deprecated use `GetAllPromptSnippetsUseCases$inboundSchema` instead. */
2526
+ export const inboundSchema = GetAllPromptSnippetsUseCases$inboundSchema;
2527
+ /** @deprecated use `GetAllPromptSnippetsUseCases$outboundSchema` instead. */
2528
+ export const outboundSchema = GetAllPromptSnippetsUseCases$outboundSchema;
2529
+ }
2530
+
2531
+ /** @internal */
2532
+ export const GetAllPromptSnippetsLanguage$inboundSchema: z.ZodNativeEnum<
2533
+ typeof GetAllPromptSnippetsLanguage
2534
+ > = z.nativeEnum(GetAllPromptSnippetsLanguage);
2535
+
2536
+ /** @internal */
2537
+ export const GetAllPromptSnippetsLanguage$outboundSchema: z.ZodNativeEnum<
2538
+ typeof GetAllPromptSnippetsLanguage
2539
+ > = GetAllPromptSnippetsLanguage$inboundSchema;
2540
+
2541
+ /**
2542
+ * @internal
2543
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2544
+ */
2545
+ export namespace GetAllPromptSnippetsLanguage$ {
2546
+ /** @deprecated use `GetAllPromptSnippetsLanguage$inboundSchema` instead. */
2547
+ export const inboundSchema = GetAllPromptSnippetsLanguage$inboundSchema;
2548
+ /** @deprecated use `GetAllPromptSnippetsLanguage$outboundSchema` instead. */
2549
+ export const outboundSchema = GetAllPromptSnippetsLanguage$outboundSchema;
2550
+ }
2551
+
2552
+ /** @internal */
2553
+ export const GetAllPromptSnippetsMetadata$inboundSchema: z.ZodType<
2554
+ GetAllPromptSnippetsMetadata,
2555
+ z.ZodTypeDef,
2556
+ unknown
2557
+ > = z.object({
2558
+ use_cases: z.array(GetAllPromptSnippetsUseCases$inboundSchema).optional(),
2559
+ language: GetAllPromptSnippetsLanguage$inboundSchema.optional(),
2560
+ }).transform((v) => {
2561
+ return remap$(v, {
2562
+ "use_cases": "useCases",
2563
+ });
2564
+ });
2565
+
2566
+ /** @internal */
2567
+ export type GetAllPromptSnippetsMetadata$Outbound = {
2568
+ use_cases?: Array<string> | undefined;
2569
+ language?: string | undefined;
2570
+ };
2571
+
2572
+ /** @internal */
2573
+ export const GetAllPromptSnippetsMetadata$outboundSchema: z.ZodType<
2574
+ GetAllPromptSnippetsMetadata$Outbound,
2575
+ z.ZodTypeDef,
2576
+ GetAllPromptSnippetsMetadata
2577
+ > = z.object({
2578
+ useCases: z.array(GetAllPromptSnippetsUseCases$outboundSchema).optional(),
2579
+ language: GetAllPromptSnippetsLanguage$outboundSchema.optional(),
2580
+ }).transform((v) => {
2581
+ return remap$(v, {
2582
+ useCases: "use_cases",
2583
+ });
2584
+ });
2585
+
2586
+ /**
2587
+ * @internal
2588
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2589
+ */
2590
+ export namespace GetAllPromptSnippetsMetadata$ {
2591
+ /** @deprecated use `GetAllPromptSnippetsMetadata$inboundSchema` instead. */
2592
+ export const inboundSchema = GetAllPromptSnippetsMetadata$inboundSchema;
2593
+ /** @deprecated use `GetAllPromptSnippetsMetadata$outboundSchema` instead. */
2594
+ export const outboundSchema = GetAllPromptSnippetsMetadata$outboundSchema;
2595
+ /** @deprecated use `GetAllPromptSnippetsMetadata$Outbound` instead. */
2596
+ export type Outbound = GetAllPromptSnippetsMetadata$Outbound;
2597
+ }
2598
+
2599
+ export function getAllPromptSnippetsMetadataToJSON(
2600
+ getAllPromptSnippetsMetadata: GetAllPromptSnippetsMetadata,
2601
+ ): string {
2602
+ return JSON.stringify(
2603
+ GetAllPromptSnippetsMetadata$outboundSchema.parse(
2604
+ getAllPromptSnippetsMetadata,
2605
+ ),
2606
+ );
2607
+ }
2608
+
2609
+ export function getAllPromptSnippetsMetadataFromJSON(
2610
+ jsonString: string,
2611
+ ): SafeParseResult<GetAllPromptSnippetsMetadata, SDKValidationError> {
2612
+ return safeParse(
2613
+ jsonString,
2614
+ (x) => GetAllPromptSnippetsMetadata$inboundSchema.parse(JSON.parse(x)),
2615
+ `Failed to parse 'GetAllPromptSnippetsMetadata' from JSON`,
2616
+ );
2617
+ }
2618
+
2619
+ /** @internal */
2620
+ export const GetAllPromptSnippetsType$inboundSchema: z.ZodNativeEnum<
2621
+ typeof GetAllPromptSnippetsType
2622
+ > = z.nativeEnum(GetAllPromptSnippetsType);
2623
+
2624
+ /** @internal */
2625
+ export const GetAllPromptSnippetsType$outboundSchema: z.ZodNativeEnum<
2626
+ typeof GetAllPromptSnippetsType
2627
+ > = GetAllPromptSnippetsType$inboundSchema;
2628
+
2629
+ /**
2630
+ * @internal
2631
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2632
+ */
2633
+ export namespace GetAllPromptSnippetsType$ {
2634
+ /** @deprecated use `GetAllPromptSnippetsType$inboundSchema` instead. */
2635
+ export const inboundSchema = GetAllPromptSnippetsType$inboundSchema;
2636
+ /** @deprecated use `GetAllPromptSnippetsType$outboundSchema` instead. */
2637
+ export const outboundSchema = GetAllPromptSnippetsType$outboundSchema;
2638
+ }
2639
+
2640
+ /** @internal */
2641
+ export const GetAllPromptSnippetsPromptSnippetsModelType$inboundSchema:
2642
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsModelType> = z
2643
+ .nativeEnum(GetAllPromptSnippetsPromptSnippetsModelType);
2644
+
2645
+ /** @internal */
2646
+ export const GetAllPromptSnippetsPromptSnippetsModelType$outboundSchema:
2647
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsModelType> =
2648
+ GetAllPromptSnippetsPromptSnippetsModelType$inboundSchema;
2649
+
2650
+ /**
2651
+ * @internal
2652
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2653
+ */
2654
+ export namespace GetAllPromptSnippetsPromptSnippetsModelType$ {
2655
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsModelType$inboundSchema` instead. */
2656
+ export const inboundSchema =
2657
+ GetAllPromptSnippetsPromptSnippetsModelType$inboundSchema;
2658
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsModelType$outboundSchema` instead. */
2659
+ export const outboundSchema =
2660
+ GetAllPromptSnippetsPromptSnippetsModelType$outboundSchema;
2661
+ }
2662
+
2663
+ /** @internal */
2664
+ export const GetAllPromptSnippetsPromptSnippetsFormat$inboundSchema:
2665
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsFormat> = z
2666
+ .nativeEnum(GetAllPromptSnippetsPromptSnippetsFormat);
2667
+
2668
+ /** @internal */
2669
+ export const GetAllPromptSnippetsPromptSnippetsFormat$outboundSchema:
2670
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsFormat> =
2671
+ GetAllPromptSnippetsPromptSnippetsFormat$inboundSchema;
2672
+
2673
+ /**
2674
+ * @internal
2675
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2676
+ */
2677
+ export namespace GetAllPromptSnippetsPromptSnippetsFormat$ {
2678
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsFormat$inboundSchema` instead. */
2679
+ export const inboundSchema =
2680
+ GetAllPromptSnippetsPromptSnippetsFormat$inboundSchema;
2681
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsFormat$outboundSchema` instead. */
2682
+ export const outboundSchema =
2683
+ GetAllPromptSnippetsPromptSnippetsFormat$outboundSchema;
2684
+ }
2685
+
2686
+ /** @internal */
2687
+ export const GetAllPromptSnippetsPromptSnippetsQuality$inboundSchema:
2688
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsQuality> = z
2689
+ .nativeEnum(GetAllPromptSnippetsPromptSnippetsQuality);
2690
+
2691
+ /** @internal */
2692
+ export const GetAllPromptSnippetsPromptSnippetsQuality$outboundSchema:
2693
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsQuality> =
2694
+ GetAllPromptSnippetsPromptSnippetsQuality$inboundSchema;
2695
+
2696
+ /**
2697
+ * @internal
2698
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2699
+ */
2700
+ export namespace GetAllPromptSnippetsPromptSnippetsQuality$ {
2701
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsQuality$inboundSchema` instead. */
2702
+ export const inboundSchema =
2703
+ GetAllPromptSnippetsPromptSnippetsQuality$inboundSchema;
2704
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsQuality$outboundSchema` instead. */
2705
+ export const outboundSchema =
2706
+ GetAllPromptSnippetsPromptSnippetsQuality$outboundSchema;
2707
+ }
2708
+
2709
+ /** @internal */
2710
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$inboundSchema:
2711
+ z.ZodNativeEnum<
2712
+ typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type
2713
+ > = z.nativeEnum(
2714
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type,
2715
+ );
2716
+
2717
+ /** @internal */
2718
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$outboundSchema:
2719
+ z.ZodNativeEnum<
2720
+ typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type
2721
+ > =
2722
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$inboundSchema;
2723
+
2724
+ /**
2725
+ * @internal
2726
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2727
+ */
2728
+ export namespace GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$ {
2729
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$inboundSchema` instead. */
2730
+ export const inboundSchema =
2731
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$inboundSchema;
2732
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$outboundSchema` instead. */
2733
+ export const outboundSchema =
2734
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$outboundSchema;
2735
+ }
2736
+
2737
+ /** @internal */
2738
+ export const GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema:
2739
+ z.ZodType<
2740
+ GetAllPromptSnippetsResponseFormatPromptSnippets2,
2741
+ z.ZodTypeDef,
2742
+ unknown
2743
+ > = z.object({
2744
+ type:
2745
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$inboundSchema,
2746
+ });
2747
+
2748
+ /** @internal */
2749
+ export type GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound = {
2750
+ type: string;
2751
+ };
2752
+
2753
+ /** @internal */
2754
+ export const GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema:
2755
+ z.ZodType<
2756
+ GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound,
2757
+ z.ZodTypeDef,
2758
+ GetAllPromptSnippetsResponseFormatPromptSnippets2
2759
+ > = z.object({
2760
+ type:
2761
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponse200Type$outboundSchema,
2762
+ });
2763
+
2764
+ /**
2765
+ * @internal
2766
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2767
+ */
2768
+ export namespace GetAllPromptSnippetsResponseFormatPromptSnippets2$ {
2769
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema` instead. */
2770
+ export const inboundSchema =
2771
+ GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema;
2772
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema` instead. */
2773
+ export const outboundSchema =
2774
+ GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema;
2775
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound` instead. */
2776
+ export type Outbound =
2777
+ GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound;
2778
+ }
2779
+
2780
+ export function getAllPromptSnippetsResponseFormatPromptSnippets2ToJSON(
2781
+ getAllPromptSnippetsResponseFormatPromptSnippets2:
2782
+ GetAllPromptSnippetsResponseFormatPromptSnippets2,
2783
+ ): string {
2784
+ return JSON.stringify(
2785
+ GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema.parse(
2786
+ getAllPromptSnippetsResponseFormatPromptSnippets2,
2787
+ ),
2788
+ );
2789
+ }
2790
+
2791
+ export function getAllPromptSnippetsResponseFormatPromptSnippets2FromJSON(
2792
+ jsonString: string,
2793
+ ): SafeParseResult<
2794
+ GetAllPromptSnippetsResponseFormatPromptSnippets2,
2795
+ SDKValidationError
2796
+ > {
2797
+ return safeParse(
2798
+ jsonString,
2799
+ (x) =>
2800
+ GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema.parse(
2801
+ JSON.parse(x),
2802
+ ),
2803
+ `Failed to parse 'GetAllPromptSnippetsResponseFormatPromptSnippets2' from JSON`,
2804
+ );
2805
+ }
2806
+
2807
+ /** @internal */
2808
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$inboundSchema:
2809
+ z.ZodNativeEnum<
2810
+ typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType
2811
+ > = z.nativeEnum(
2812
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType,
2813
+ );
2814
+
2815
+ /** @internal */
2816
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$outboundSchema:
2817
+ z.ZodNativeEnum<
2818
+ typeof GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType
2819
+ > =
2820
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$inboundSchema;
2821
+
2822
+ /**
2823
+ * @internal
2824
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2825
+ */
2826
+ export namespace GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$ {
2827
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$inboundSchema` instead. */
2828
+ export const inboundSchema =
2829
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$inboundSchema;
2830
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$outboundSchema` instead. */
2831
+ export const outboundSchema =
2832
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$outboundSchema;
2833
+ }
2834
+
2835
+ /** @internal */
2836
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$inboundSchema:
2837
+ z.ZodType<
2838
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema,
2839
+ z.ZodTypeDef,
2840
+ unknown
2841
+ > = z.object({
2842
+ name: z.string(),
2843
+ strict: z.boolean(),
2844
+ schema: z.record(z.any()),
2845
+ });
2846
+
2847
+ /** @internal */
2848
+ export type GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$Outbound =
2849
+ {
2850
+ name: string;
2851
+ strict: boolean;
2852
+ schema: { [k: string]: any };
2853
+ };
2854
+
2855
+ /** @internal */
2856
+ export const GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$outboundSchema:
2857
+ z.ZodType<
2858
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$Outbound,
2859
+ z.ZodTypeDef,
2860
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema
2861
+ > = z.object({
2862
+ name: z.string(),
2863
+ strict: z.boolean(),
2864
+ schema: z.record(z.any()),
2865
+ });
2866
+
2867
+ /**
2868
+ * @internal
2869
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2870
+ */
2871
+ export namespace GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$ {
2872
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$inboundSchema` instead. */
2873
+ export const inboundSchema =
2874
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$inboundSchema;
2875
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$outboundSchema` instead. */
2876
+ export const outboundSchema =
2877
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$outboundSchema;
2878
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$Outbound` instead. */
2879
+ export type Outbound =
2880
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$Outbound;
2881
+ }
2882
+
2883
+ export function getAllPromptSnippetsResponseFormatPromptSnippetsJsonSchemaToJSON(
2884
+ getAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema:
2885
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema,
2886
+ ): string {
2887
+ return JSON.stringify(
2888
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$outboundSchema
2889
+ .parse(getAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema),
2890
+ );
2891
+ }
2892
+
2893
+ export function getAllPromptSnippetsResponseFormatPromptSnippetsJsonSchemaFromJSON(
2894
+ jsonString: string,
2895
+ ): SafeParseResult<
2896
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema,
2897
+ SDKValidationError
2898
+ > {
2899
+ return safeParse(
2900
+ jsonString,
2901
+ (x) =>
2902
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$inboundSchema
2903
+ .parse(JSON.parse(x)),
2904
+ `Failed to parse 'GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema' from JSON`,
2905
+ );
2906
+ }
2907
+
2908
+ /** @internal */
2909
+ export const GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema:
2910
+ z.ZodType<
2911
+ GetAllPromptSnippetsResponseFormatPromptSnippets1,
2912
+ z.ZodTypeDef,
2913
+ unknown
2914
+ > = z.object({
2915
+ type:
2916
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$inboundSchema,
2917
+ json_schema: z.lazy(() =>
2918
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$inboundSchema
2919
+ ),
2920
+ }).transform((v) => {
2921
+ return remap$(v, {
2922
+ "json_schema": "jsonSchema",
2923
+ });
2924
+ });
2925
+
2926
+ /** @internal */
2927
+ export type GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound = {
2928
+ type: string;
2929
+ json_schema:
2930
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$Outbound;
2931
+ };
2932
+
2933
+ /** @internal */
2934
+ export const GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema:
2935
+ z.ZodType<
2936
+ GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound,
2937
+ z.ZodTypeDef,
2938
+ GetAllPromptSnippetsResponseFormatPromptSnippets1
2939
+ > = z.object({
2940
+ type:
2941
+ GetAllPromptSnippetsResponseFormatPromptSnippetsResponseType$outboundSchema,
2942
+ jsonSchema: z.lazy(() =>
2943
+ GetAllPromptSnippetsResponseFormatPromptSnippetsJsonSchema$outboundSchema
2944
+ ),
2945
+ }).transform((v) => {
2946
+ return remap$(v, {
2947
+ jsonSchema: "json_schema",
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 GetAllPromptSnippetsResponseFormatPromptSnippets1$ {
2956
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema` instead. */
2957
+ export const inboundSchema =
2958
+ GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema;
2959
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema` instead. */
2960
+ export const outboundSchema =
2961
+ GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema;
2962
+ /** @deprecated use `GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound` instead. */
2963
+ export type Outbound =
2964
+ GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound;
2965
+ }
2966
+
2967
+ export function getAllPromptSnippetsResponseFormatPromptSnippets1ToJSON(
2968
+ getAllPromptSnippetsResponseFormatPromptSnippets1:
2969
+ GetAllPromptSnippetsResponseFormatPromptSnippets1,
2970
+ ): string {
2971
+ return JSON.stringify(
2972
+ GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema.parse(
2973
+ getAllPromptSnippetsResponseFormatPromptSnippets1,
2974
+ ),
2975
+ );
2976
+ }
2977
+
2978
+ export function getAllPromptSnippetsResponseFormatPromptSnippets1FromJSON(
2979
+ jsonString: string,
2980
+ ): SafeParseResult<
2981
+ GetAllPromptSnippetsResponseFormatPromptSnippets1,
2982
+ SDKValidationError
2983
+ > {
2984
+ return safeParse(
2985
+ jsonString,
2986
+ (x) =>
2987
+ GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema.parse(
2988
+ JSON.parse(x),
2989
+ ),
2990
+ `Failed to parse 'GetAllPromptSnippetsResponseFormatPromptSnippets1' from JSON`,
2991
+ );
2992
+ }
2993
+
2994
+ /** @internal */
2995
+ export const GetAllPromptSnippetsPromptSnippetsResponseFormat$inboundSchema:
2996
+ z.ZodType<
2997
+ GetAllPromptSnippetsPromptSnippetsResponseFormat,
2998
+ z.ZodTypeDef,
2999
+ unknown
3000
+ > = z.union([
3001
+ z.lazy(() =>
3002
+ GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema
3003
+ ),
3004
+ z.lazy(() =>
3005
+ GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema
3006
+ ),
3007
+ ]);
3008
+
3009
+ /** @internal */
3010
+ export type GetAllPromptSnippetsPromptSnippetsResponseFormat$Outbound =
3011
+ | GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound
3012
+ | GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound;
3013
+
3014
+ /** @internal */
3015
+ export const GetAllPromptSnippetsPromptSnippetsResponseFormat$outboundSchema:
3016
+ z.ZodType<
3017
+ GetAllPromptSnippetsPromptSnippetsResponseFormat$Outbound,
3018
+ z.ZodTypeDef,
3019
+ GetAllPromptSnippetsPromptSnippetsResponseFormat
3020
+ > = z.union([
3021
+ z.lazy(() =>
3022
+ GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema
3023
+ ),
3024
+ z.lazy(() =>
3025
+ GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema
3026
+ ),
3027
+ ]);
3028
+
3029
+ /**
3030
+ * @internal
3031
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3032
+ */
3033
+ export namespace GetAllPromptSnippetsPromptSnippetsResponseFormat$ {
3034
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsResponseFormat$inboundSchema` instead. */
3035
+ export const inboundSchema =
3036
+ GetAllPromptSnippetsPromptSnippetsResponseFormat$inboundSchema;
3037
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsResponseFormat$outboundSchema` instead. */
3038
+ export const outboundSchema =
3039
+ GetAllPromptSnippetsPromptSnippetsResponseFormat$outboundSchema;
3040
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsResponseFormat$Outbound` instead. */
3041
+ export type Outbound =
3042
+ GetAllPromptSnippetsPromptSnippetsResponseFormat$Outbound;
3043
+ }
3044
+
3045
+ export function getAllPromptSnippetsPromptSnippetsResponseFormatToJSON(
3046
+ getAllPromptSnippetsPromptSnippetsResponseFormat:
3047
+ GetAllPromptSnippetsPromptSnippetsResponseFormat,
3048
+ ): string {
3049
+ return JSON.stringify(
3050
+ GetAllPromptSnippetsPromptSnippetsResponseFormat$outboundSchema.parse(
3051
+ getAllPromptSnippetsPromptSnippetsResponseFormat,
3052
+ ),
3053
+ );
3054
+ }
3055
+
3056
+ export function getAllPromptSnippetsPromptSnippetsResponseFormatFromJSON(
3057
+ jsonString: string,
3058
+ ): SafeParseResult<
3059
+ GetAllPromptSnippetsPromptSnippetsResponseFormat,
3060
+ SDKValidationError
3061
+ > {
3062
+ return safeParse(
3063
+ jsonString,
3064
+ (x) =>
3065
+ GetAllPromptSnippetsPromptSnippetsResponseFormat$inboundSchema.parse(
3066
+ JSON.parse(x),
3067
+ ),
3068
+ `Failed to parse 'GetAllPromptSnippetsPromptSnippetsResponseFormat' from JSON`,
3069
+ );
3070
+ }
3071
+
3072
+ /** @internal */
3073
+ export const GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$inboundSchema:
3074
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsPhotoRealVersion> = z
3075
+ .nativeEnum(GetAllPromptSnippetsPromptSnippetsPhotoRealVersion);
3076
+
3077
+ /** @internal */
3078
+ export const GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$outboundSchema:
3079
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsPhotoRealVersion> =
3080
+ GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$inboundSchema;
3081
+
3082
+ /**
3083
+ * @internal
3084
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3085
+ */
3086
+ export namespace GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$ {
3087
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$inboundSchema` instead. */
3088
+ export const inboundSchema =
3089
+ GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$inboundSchema;
3090
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$outboundSchema` instead. */
3091
+ export const outboundSchema =
3092
+ GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$outboundSchema;
3093
+ }
3094
+
3095
+ /** @internal */
3096
+ export const GetAllPromptSnippetsPromptSnippetsEncodingFormat$inboundSchema:
3097
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsEncodingFormat> = z
3098
+ .nativeEnum(GetAllPromptSnippetsPromptSnippetsEncodingFormat);
3099
+
3100
+ /** @internal */
3101
+ export const GetAllPromptSnippetsPromptSnippetsEncodingFormat$outboundSchema:
3102
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsEncodingFormat> =
3103
+ GetAllPromptSnippetsPromptSnippetsEncodingFormat$inboundSchema;
3104
+
3105
+ /**
3106
+ * @internal
3107
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3108
+ */
3109
+ export namespace GetAllPromptSnippetsPromptSnippetsEncodingFormat$ {
3110
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsEncodingFormat$inboundSchema` instead. */
3111
+ export const inboundSchema =
3112
+ GetAllPromptSnippetsPromptSnippetsEncodingFormat$inboundSchema;
3113
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsEncodingFormat$outboundSchema` instead. */
3114
+ export const outboundSchema =
3115
+ GetAllPromptSnippetsPromptSnippetsEncodingFormat$outboundSchema;
3116
+ }
3117
+
3118
+ /** @internal */
3119
+ export const GetAllPromptSnippetsPromptSnippetsReasoningEffort$inboundSchema:
3120
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsReasoningEffort> = z
3121
+ .nativeEnum(GetAllPromptSnippetsPromptSnippetsReasoningEffort);
3122
+
3123
+ /** @internal */
3124
+ export const GetAllPromptSnippetsPromptSnippetsReasoningEffort$outboundSchema:
3125
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsReasoningEffort> =
3126
+ GetAllPromptSnippetsPromptSnippetsReasoningEffort$inboundSchema;
3127
+
3128
+ /**
3129
+ * @internal
3130
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3131
+ */
3132
+ export namespace GetAllPromptSnippetsPromptSnippetsReasoningEffort$ {
3133
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsReasoningEffort$inboundSchema` instead. */
3134
+ export const inboundSchema =
3135
+ GetAllPromptSnippetsPromptSnippetsReasoningEffort$inboundSchema;
3136
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsReasoningEffort$outboundSchema` instead. */
3137
+ export const outboundSchema =
3138
+ GetAllPromptSnippetsPromptSnippetsReasoningEffort$outboundSchema;
3139
+ }
3140
+
3141
+ /** @internal */
3142
+ export const GetAllPromptSnippetsPromptSnippetsModelParameters$inboundSchema:
3143
+ z.ZodType<
3144
+ GetAllPromptSnippetsPromptSnippetsModelParameters,
3145
+ z.ZodTypeDef,
3146
+ unknown
3147
+ > = z.object({
3148
+ temperature: z.number().optional(),
3149
+ maxTokens: z.number().optional(),
3150
+ topK: z.number().optional(),
3151
+ topP: z.number().optional(),
3152
+ frequencyPenalty: z.number().optional(),
3153
+ presencePenalty: z.number().optional(),
3154
+ numImages: z.number().optional(),
3155
+ seed: z.number().optional(),
3156
+ format: GetAllPromptSnippetsPromptSnippetsFormat$inboundSchema.optional(),
3157
+ dimensions: z.string().optional(),
3158
+ quality: GetAllPromptSnippetsPromptSnippetsQuality$inboundSchema.optional(),
3159
+ style: z.string().optional(),
3160
+ responseFormat: z.nullable(
3161
+ z.union([
3162
+ z.lazy(() =>
3163
+ GetAllPromptSnippetsResponseFormatPromptSnippets2$inboundSchema
3164
+ ),
3165
+ z.lazy(() =>
3166
+ GetAllPromptSnippetsResponseFormatPromptSnippets1$inboundSchema
3167
+ ),
3168
+ ]),
3169
+ ).optional(),
3170
+ photoRealVersion:
3171
+ GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$inboundSchema
3172
+ .optional(),
3173
+ encoding_format:
3174
+ GetAllPromptSnippetsPromptSnippetsEncodingFormat$inboundSchema.optional(),
3175
+ reasoningEffort:
3176
+ GetAllPromptSnippetsPromptSnippetsReasoningEffort$inboundSchema
3177
+ .optional(),
3178
+ }).transform((v) => {
3179
+ return remap$(v, {
3180
+ "encoding_format": "encodingFormat",
3181
+ });
3182
+ });
3183
+
3184
+ /** @internal */
3185
+ export type GetAllPromptSnippetsPromptSnippetsModelParameters$Outbound = {
3186
+ temperature?: number | undefined;
3187
+ maxTokens?: number | undefined;
3188
+ topK?: number | undefined;
3189
+ topP?: number | undefined;
3190
+ frequencyPenalty?: number | undefined;
3191
+ presencePenalty?: number | undefined;
3192
+ numImages?: number | undefined;
3193
+ seed?: number | undefined;
3194
+ format?: string | undefined;
3195
+ dimensions?: string | undefined;
3196
+ quality?: string | undefined;
3197
+ style?: string | undefined;
3198
+ responseFormat?:
3199
+ | GetAllPromptSnippetsResponseFormatPromptSnippets2$Outbound
3200
+ | GetAllPromptSnippetsResponseFormatPromptSnippets1$Outbound
3201
+ | null
3202
+ | undefined;
3203
+ photoRealVersion?: string | undefined;
3204
+ encoding_format?: string | undefined;
3205
+ reasoningEffort?: string | undefined;
3206
+ };
3207
+
3208
+ /** @internal */
3209
+ export const GetAllPromptSnippetsPromptSnippetsModelParameters$outboundSchema:
3210
+ z.ZodType<
3211
+ GetAllPromptSnippetsPromptSnippetsModelParameters$Outbound,
3212
+ z.ZodTypeDef,
3213
+ GetAllPromptSnippetsPromptSnippetsModelParameters
3214
+ > = z.object({
3215
+ temperature: z.number().optional(),
3216
+ maxTokens: z.number().optional(),
3217
+ topK: z.number().optional(),
3218
+ topP: z.number().optional(),
3219
+ frequencyPenalty: z.number().optional(),
3220
+ presencePenalty: z.number().optional(),
3221
+ numImages: z.number().optional(),
3222
+ seed: z.number().optional(),
3223
+ format: GetAllPromptSnippetsPromptSnippetsFormat$outboundSchema.optional(),
3224
+ dimensions: z.string().optional(),
3225
+ quality: GetAllPromptSnippetsPromptSnippetsQuality$outboundSchema
3226
+ .optional(),
3227
+ style: z.string().optional(),
3228
+ responseFormat: z.nullable(
3229
+ z.union([
3230
+ z.lazy(() =>
3231
+ GetAllPromptSnippetsResponseFormatPromptSnippets2$outboundSchema
3232
+ ),
3233
+ z.lazy(() =>
3234
+ GetAllPromptSnippetsResponseFormatPromptSnippets1$outboundSchema
3235
+ ),
3236
+ ]),
3237
+ ).optional(),
3238
+ photoRealVersion:
3239
+ GetAllPromptSnippetsPromptSnippetsPhotoRealVersion$outboundSchema
3240
+ .optional(),
3241
+ encodingFormat:
3242
+ GetAllPromptSnippetsPromptSnippetsEncodingFormat$outboundSchema
3243
+ .optional(),
3244
+ reasoningEffort:
3245
+ GetAllPromptSnippetsPromptSnippetsReasoningEffort$outboundSchema
3246
+ .optional(),
3247
+ }).transform((v) => {
3248
+ return remap$(v, {
3249
+ encodingFormat: "encoding_format",
3250
+ });
3251
+ });
3252
+
3253
+ /**
3254
+ * @internal
3255
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3256
+ */
3257
+ export namespace GetAllPromptSnippetsPromptSnippetsModelParameters$ {
3258
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsModelParameters$inboundSchema` instead. */
3259
+ export const inboundSchema =
3260
+ GetAllPromptSnippetsPromptSnippetsModelParameters$inboundSchema;
3261
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsModelParameters$outboundSchema` instead. */
3262
+ export const outboundSchema =
3263
+ GetAllPromptSnippetsPromptSnippetsModelParameters$outboundSchema;
3264
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsModelParameters$Outbound` instead. */
3265
+ export type Outbound =
3266
+ GetAllPromptSnippetsPromptSnippetsModelParameters$Outbound;
3267
+ }
3268
+
3269
+ export function getAllPromptSnippetsPromptSnippetsModelParametersToJSON(
3270
+ getAllPromptSnippetsPromptSnippetsModelParameters:
3271
+ GetAllPromptSnippetsPromptSnippetsModelParameters,
3272
+ ): string {
3273
+ return JSON.stringify(
3274
+ GetAllPromptSnippetsPromptSnippetsModelParameters$outboundSchema.parse(
3275
+ getAllPromptSnippetsPromptSnippetsModelParameters,
3276
+ ),
3277
+ );
3278
+ }
3279
+
3280
+ export function getAllPromptSnippetsPromptSnippetsModelParametersFromJSON(
3281
+ jsonString: string,
3282
+ ): SafeParseResult<
3283
+ GetAllPromptSnippetsPromptSnippetsModelParameters,
3284
+ SDKValidationError
3285
+ > {
3286
+ return safeParse(
3287
+ jsonString,
3288
+ (x) =>
3289
+ GetAllPromptSnippetsPromptSnippetsModelParameters$inboundSchema.parse(
3290
+ JSON.parse(x),
3291
+ ),
3292
+ `Failed to parse 'GetAllPromptSnippetsPromptSnippetsModelParameters' from JSON`,
3293
+ );
3294
+ }
3295
+
3296
+ /** @internal */
3297
+ export const GetAllPromptSnippetsPromptSnippetsProvider$inboundSchema:
3298
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsProvider> = z
3299
+ .nativeEnum(GetAllPromptSnippetsPromptSnippetsProvider);
3300
+
3301
+ /** @internal */
3302
+ export const GetAllPromptSnippetsPromptSnippetsProvider$outboundSchema:
3303
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsProvider> =
3304
+ GetAllPromptSnippetsPromptSnippetsProvider$inboundSchema;
3305
+
3306
+ /**
3307
+ * @internal
3308
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3309
+ */
3310
+ export namespace GetAllPromptSnippetsPromptSnippetsProvider$ {
3311
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsProvider$inboundSchema` instead. */
3312
+ export const inboundSchema =
3313
+ GetAllPromptSnippetsPromptSnippetsProvider$inboundSchema;
3314
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsProvider$outboundSchema` instead. */
3315
+ export const outboundSchema =
3316
+ GetAllPromptSnippetsPromptSnippetsProvider$outboundSchema;
3317
+ }
3318
+
3319
+ /** @internal */
3320
+ export const GetAllPromptSnippetsPromptSnippetsRole$inboundSchema:
3321
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsRole> = z.nativeEnum(
3322
+ GetAllPromptSnippetsPromptSnippetsRole,
3323
+ );
3324
+
3325
+ /** @internal */
3326
+ export const GetAllPromptSnippetsPromptSnippetsRole$outboundSchema:
3327
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsRole> =
3328
+ GetAllPromptSnippetsPromptSnippetsRole$inboundSchema;
3329
+
3330
+ /**
3331
+ * @internal
3332
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3333
+ */
3334
+ export namespace GetAllPromptSnippetsPromptSnippetsRole$ {
3335
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsRole$inboundSchema` instead. */
3336
+ export const inboundSchema =
3337
+ GetAllPromptSnippetsPromptSnippetsRole$inboundSchema;
3338
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsRole$outboundSchema` instead. */
3339
+ export const outboundSchema =
3340
+ GetAllPromptSnippetsPromptSnippetsRole$outboundSchema;
3341
+ }
3342
+
3343
+ /** @internal */
3344
+ export const GetAllPromptSnippets2PromptSnippetsResponse200Type$inboundSchema:
3345
+ z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsResponse200Type> = z
3346
+ .nativeEnum(GetAllPromptSnippets2PromptSnippetsResponse200Type);
3347
+
3348
+ /** @internal */
3349
+ export const GetAllPromptSnippets2PromptSnippetsResponse200Type$outboundSchema:
3350
+ z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsResponse200Type> =
3351
+ GetAllPromptSnippets2PromptSnippetsResponse200Type$inboundSchema;
3352
+
3353
+ /**
3354
+ * @internal
3355
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3356
+ */
3357
+ export namespace GetAllPromptSnippets2PromptSnippetsResponse200Type$ {
3358
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippetsResponse200Type$inboundSchema` instead. */
3359
+ export const inboundSchema =
3360
+ GetAllPromptSnippets2PromptSnippetsResponse200Type$inboundSchema;
3361
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippetsResponse200Type$outboundSchema` instead. */
3362
+ export const outboundSchema =
3363
+ GetAllPromptSnippets2PromptSnippetsResponse200Type$outboundSchema;
3364
+ }
3365
+
3366
+ /** @internal */
3367
+ export const GetAllPromptSnippets2PromptSnippetsImageUrl$inboundSchema:
3368
+ z.ZodType<
3369
+ GetAllPromptSnippets2PromptSnippetsImageUrl,
3370
+ z.ZodTypeDef,
3371
+ unknown
3372
+ > = z.object({
3373
+ id: z.string().optional(),
3374
+ url: z.string(),
3375
+ detail: z.string().optional(),
3376
+ });
3377
+
3378
+ /** @internal */
3379
+ export type GetAllPromptSnippets2PromptSnippetsImageUrl$Outbound = {
3380
+ id?: string | undefined;
3381
+ url: string;
3382
+ detail?: string | undefined;
3383
+ };
3384
+
3385
+ /** @internal */
3386
+ export const GetAllPromptSnippets2PromptSnippetsImageUrl$outboundSchema:
3387
+ z.ZodType<
3388
+ GetAllPromptSnippets2PromptSnippetsImageUrl$Outbound,
3389
+ z.ZodTypeDef,
3390
+ GetAllPromptSnippets2PromptSnippetsImageUrl
3391
+ > = z.object({
3392
+ id: z.string().optional(),
3393
+ url: z.string(),
3394
+ detail: z.string().optional(),
3395
+ });
3396
+
3397
+ /**
3398
+ * @internal
3399
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3400
+ */
3401
+ export namespace GetAllPromptSnippets2PromptSnippetsImageUrl$ {
3402
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippetsImageUrl$inboundSchema` instead. */
3403
+ export const inboundSchema =
3404
+ GetAllPromptSnippets2PromptSnippetsImageUrl$inboundSchema;
3405
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippetsImageUrl$outboundSchema` instead. */
3406
+ export const outboundSchema =
3407
+ GetAllPromptSnippets2PromptSnippetsImageUrl$outboundSchema;
3408
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippetsImageUrl$Outbound` instead. */
3409
+ export type Outbound = GetAllPromptSnippets2PromptSnippetsImageUrl$Outbound;
3410
+ }
3411
+
3412
+ export function getAllPromptSnippets2PromptSnippetsImageUrlToJSON(
3413
+ getAllPromptSnippets2PromptSnippetsImageUrl:
3414
+ GetAllPromptSnippets2PromptSnippetsImageUrl,
3415
+ ): string {
3416
+ return JSON.stringify(
3417
+ GetAllPromptSnippets2PromptSnippetsImageUrl$outboundSchema.parse(
3418
+ getAllPromptSnippets2PromptSnippetsImageUrl,
3419
+ ),
3420
+ );
3421
+ }
3422
+
3423
+ export function getAllPromptSnippets2PromptSnippetsImageUrlFromJSON(
3424
+ jsonString: string,
3425
+ ): SafeParseResult<
3426
+ GetAllPromptSnippets2PromptSnippetsImageUrl,
3427
+ SDKValidationError
3428
+ > {
3429
+ return safeParse(
3430
+ jsonString,
3431
+ (x) =>
3432
+ GetAllPromptSnippets2PromptSnippetsImageUrl$inboundSchema.parse(
3433
+ JSON.parse(x),
3434
+ ),
3435
+ `Failed to parse 'GetAllPromptSnippets2PromptSnippetsImageUrl' from JSON`,
3436
+ );
3437
+ }
3438
+
3439
+ /** @internal */
3440
+ export const GetAllPromptSnippets2PromptSnippets2$inboundSchema: z.ZodType<
3441
+ GetAllPromptSnippets2PromptSnippets2,
3442
+ z.ZodTypeDef,
3443
+ unknown
3444
+ > = z.object({
3445
+ type: GetAllPromptSnippets2PromptSnippetsResponse200Type$inboundSchema,
3446
+ image_url: z.lazy(() =>
3447
+ GetAllPromptSnippets2PromptSnippetsImageUrl$inboundSchema
3448
+ ),
3449
+ }).transform((v) => {
3450
+ return remap$(v, {
3451
+ "image_url": "imageUrl",
3452
+ });
3453
+ });
3454
+
3455
+ /** @internal */
3456
+ export type GetAllPromptSnippets2PromptSnippets2$Outbound = {
3457
+ type: string;
3458
+ image_url: GetAllPromptSnippets2PromptSnippetsImageUrl$Outbound;
3459
+ };
3460
+
3461
+ /** @internal */
3462
+ export const GetAllPromptSnippets2PromptSnippets2$outboundSchema: z.ZodType<
3463
+ GetAllPromptSnippets2PromptSnippets2$Outbound,
3464
+ z.ZodTypeDef,
3465
+ GetAllPromptSnippets2PromptSnippets2
3466
+ > = z.object({
3467
+ type: GetAllPromptSnippets2PromptSnippetsResponse200Type$outboundSchema,
3468
+ imageUrl: z.lazy(() =>
3469
+ GetAllPromptSnippets2PromptSnippetsImageUrl$outboundSchema
3470
+ ),
3471
+ }).transform((v) => {
3472
+ return remap$(v, {
3473
+ imageUrl: "image_url",
3474
+ });
3475
+ });
3476
+
3477
+ /**
3478
+ * @internal
3479
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3480
+ */
3481
+ export namespace GetAllPromptSnippets2PromptSnippets2$ {
3482
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippets2$inboundSchema` instead. */
3483
+ export const inboundSchema =
3484
+ GetAllPromptSnippets2PromptSnippets2$inboundSchema;
3485
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippets2$outboundSchema` instead. */
3486
+ export const outboundSchema =
3487
+ GetAllPromptSnippets2PromptSnippets2$outboundSchema;
3488
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippets2$Outbound` instead. */
3489
+ export type Outbound = GetAllPromptSnippets2PromptSnippets2$Outbound;
3490
+ }
3491
+
3492
+ export function getAllPromptSnippets2PromptSnippets2ToJSON(
3493
+ getAllPromptSnippets2PromptSnippets2: GetAllPromptSnippets2PromptSnippets2,
3494
+ ): string {
3495
+ return JSON.stringify(
3496
+ GetAllPromptSnippets2PromptSnippets2$outboundSchema.parse(
3497
+ getAllPromptSnippets2PromptSnippets2,
3498
+ ),
3499
+ );
3500
+ }
3501
+
3502
+ export function getAllPromptSnippets2PromptSnippets2FromJSON(
3503
+ jsonString: string,
3504
+ ): SafeParseResult<GetAllPromptSnippets2PromptSnippets2, SDKValidationError> {
3505
+ return safeParse(
3506
+ jsonString,
3507
+ (x) =>
3508
+ GetAllPromptSnippets2PromptSnippets2$inboundSchema.parse(JSON.parse(x)),
3509
+ `Failed to parse 'GetAllPromptSnippets2PromptSnippets2' from JSON`,
3510
+ );
3511
+ }
3512
+
3513
+ /** @internal */
3514
+ export const GetAllPromptSnippets2PromptSnippetsResponseType$inboundSchema:
3515
+ z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsResponseType> = z
3516
+ .nativeEnum(GetAllPromptSnippets2PromptSnippetsResponseType);
3517
+
3518
+ /** @internal */
3519
+ export const GetAllPromptSnippets2PromptSnippetsResponseType$outboundSchema:
3520
+ z.ZodNativeEnum<typeof GetAllPromptSnippets2PromptSnippetsResponseType> =
3521
+ GetAllPromptSnippets2PromptSnippetsResponseType$inboundSchema;
3522
+
3523
+ /**
3524
+ * @internal
3525
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3526
+ */
3527
+ export namespace GetAllPromptSnippets2PromptSnippetsResponseType$ {
3528
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippetsResponseType$inboundSchema` instead. */
3529
+ export const inboundSchema =
3530
+ GetAllPromptSnippets2PromptSnippetsResponseType$inboundSchema;
3531
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippetsResponseType$outboundSchema` instead. */
3532
+ export const outboundSchema =
3533
+ GetAllPromptSnippets2PromptSnippetsResponseType$outboundSchema;
3534
+ }
3535
+
3536
+ /** @internal */
3537
+ export const GetAllPromptSnippets2PromptSnippets1$inboundSchema: z.ZodType<
3538
+ GetAllPromptSnippets2PromptSnippets1,
3539
+ z.ZodTypeDef,
3540
+ unknown
3541
+ > = z.object({
3542
+ type: GetAllPromptSnippets2PromptSnippetsResponseType$inboundSchema,
3543
+ text: z.string(),
3544
+ });
3545
+
3546
+ /** @internal */
3547
+ export type GetAllPromptSnippets2PromptSnippets1$Outbound = {
3548
+ type: string;
3549
+ text: string;
3550
+ };
3551
+
3552
+ /** @internal */
3553
+ export const GetAllPromptSnippets2PromptSnippets1$outboundSchema: z.ZodType<
3554
+ GetAllPromptSnippets2PromptSnippets1$Outbound,
3555
+ z.ZodTypeDef,
3556
+ GetAllPromptSnippets2PromptSnippets1
3557
+ > = z.object({
3558
+ type: GetAllPromptSnippets2PromptSnippetsResponseType$outboundSchema,
3559
+ text: z.string(),
3560
+ });
3561
+
3562
+ /**
3563
+ * @internal
3564
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3565
+ */
3566
+ export namespace GetAllPromptSnippets2PromptSnippets1$ {
3567
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippets1$inboundSchema` instead. */
3568
+ export const inboundSchema =
3569
+ GetAllPromptSnippets2PromptSnippets1$inboundSchema;
3570
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippets1$outboundSchema` instead. */
3571
+ export const outboundSchema =
3572
+ GetAllPromptSnippets2PromptSnippets1$outboundSchema;
3573
+ /** @deprecated use `GetAllPromptSnippets2PromptSnippets1$Outbound` instead. */
3574
+ export type Outbound = GetAllPromptSnippets2PromptSnippets1$Outbound;
3575
+ }
3576
+
3577
+ export function getAllPromptSnippets2PromptSnippets1ToJSON(
3578
+ getAllPromptSnippets2PromptSnippets1: GetAllPromptSnippets2PromptSnippets1,
3579
+ ): string {
3580
+ return JSON.stringify(
3581
+ GetAllPromptSnippets2PromptSnippets1$outboundSchema.parse(
3582
+ getAllPromptSnippets2PromptSnippets1,
3583
+ ),
3584
+ );
3585
+ }
3586
+
3587
+ export function getAllPromptSnippets2PromptSnippets1FromJSON(
3588
+ jsonString: string,
3589
+ ): SafeParseResult<GetAllPromptSnippets2PromptSnippets1, SDKValidationError> {
3590
+ return safeParse(
3591
+ jsonString,
3592
+ (x) =>
3593
+ GetAllPromptSnippets2PromptSnippets1$inboundSchema.parse(JSON.parse(x)),
3594
+ `Failed to parse 'GetAllPromptSnippets2PromptSnippets1' from JSON`,
3595
+ );
3596
+ }
3597
+
3598
+ /** @internal */
3599
+ export const GetAllPromptSnippetsContentPromptSnippets2$inboundSchema:
3600
+ z.ZodType<GetAllPromptSnippetsContentPromptSnippets2, z.ZodTypeDef, unknown> =
3601
+ z.union([
3602
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets1$inboundSchema),
3603
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets2$inboundSchema),
3604
+ ]);
3605
+
3606
+ /** @internal */
3607
+ export type GetAllPromptSnippetsContentPromptSnippets2$Outbound =
3608
+ | GetAllPromptSnippets2PromptSnippets1$Outbound
3609
+ | GetAllPromptSnippets2PromptSnippets2$Outbound;
3610
+
3611
+ /** @internal */
3612
+ export const GetAllPromptSnippetsContentPromptSnippets2$outboundSchema:
3613
+ z.ZodType<
3614
+ GetAllPromptSnippetsContentPromptSnippets2$Outbound,
3615
+ z.ZodTypeDef,
3616
+ GetAllPromptSnippetsContentPromptSnippets2
3617
+ > = z.union([
3618
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets1$outboundSchema),
3619
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets2$outboundSchema),
3620
+ ]);
3621
+
3622
+ /**
3623
+ * @internal
3624
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3625
+ */
3626
+ export namespace GetAllPromptSnippetsContentPromptSnippets2$ {
3627
+ /** @deprecated use `GetAllPromptSnippetsContentPromptSnippets2$inboundSchema` instead. */
3628
+ export const inboundSchema =
3629
+ GetAllPromptSnippetsContentPromptSnippets2$inboundSchema;
3630
+ /** @deprecated use `GetAllPromptSnippetsContentPromptSnippets2$outboundSchema` instead. */
3631
+ export const outboundSchema =
3632
+ GetAllPromptSnippetsContentPromptSnippets2$outboundSchema;
3633
+ /** @deprecated use `GetAllPromptSnippetsContentPromptSnippets2$Outbound` instead. */
3634
+ export type Outbound = GetAllPromptSnippetsContentPromptSnippets2$Outbound;
3635
+ }
3636
+
3637
+ export function getAllPromptSnippetsContentPromptSnippets2ToJSON(
3638
+ getAllPromptSnippetsContentPromptSnippets2:
3639
+ GetAllPromptSnippetsContentPromptSnippets2,
3640
+ ): string {
3641
+ return JSON.stringify(
3642
+ GetAllPromptSnippetsContentPromptSnippets2$outboundSchema.parse(
3643
+ getAllPromptSnippetsContentPromptSnippets2,
3644
+ ),
3645
+ );
3646
+ }
3647
+
3648
+ export function getAllPromptSnippetsContentPromptSnippets2FromJSON(
3649
+ jsonString: string,
3650
+ ): SafeParseResult<
3651
+ GetAllPromptSnippetsContentPromptSnippets2,
3652
+ SDKValidationError
3653
+ > {
3654
+ return safeParse(
3655
+ jsonString,
3656
+ (x) =>
3657
+ GetAllPromptSnippetsContentPromptSnippets2$inboundSchema.parse(
3658
+ JSON.parse(x),
3659
+ ),
3660
+ `Failed to parse 'GetAllPromptSnippetsContentPromptSnippets2' from JSON`,
3661
+ );
3662
+ }
3663
+
3664
+ /** @internal */
3665
+ export const GetAllPromptSnippetsPromptSnippetsContent$inboundSchema: z.ZodType<
3666
+ GetAllPromptSnippetsPromptSnippetsContent,
3667
+ z.ZodTypeDef,
3668
+ unknown
3669
+ > = z.union([
3670
+ z.string(),
3671
+ z.array(z.union([
3672
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets1$inboundSchema),
3673
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets2$inboundSchema),
3674
+ ])),
3675
+ ]);
3676
+
3677
+ /** @internal */
3678
+ export type GetAllPromptSnippetsPromptSnippetsContent$Outbound =
3679
+ | string
3680
+ | Array<
3681
+ | GetAllPromptSnippets2PromptSnippets1$Outbound
3682
+ | GetAllPromptSnippets2PromptSnippets2$Outbound
3683
+ >;
3684
+
3685
+ /** @internal */
3686
+ export const GetAllPromptSnippetsPromptSnippetsContent$outboundSchema:
3687
+ z.ZodType<
3688
+ GetAllPromptSnippetsPromptSnippetsContent$Outbound,
3689
+ z.ZodTypeDef,
3690
+ GetAllPromptSnippetsPromptSnippetsContent
3691
+ > = z.union([
3692
+ z.string(),
3693
+ z.array(z.union([
3694
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets1$outboundSchema),
3695
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets2$outboundSchema),
3696
+ ])),
3697
+ ]);
3698
+
3699
+ /**
3700
+ * @internal
3701
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3702
+ */
3703
+ export namespace GetAllPromptSnippetsPromptSnippetsContent$ {
3704
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsContent$inboundSchema` instead. */
3705
+ export const inboundSchema =
3706
+ GetAllPromptSnippetsPromptSnippetsContent$inboundSchema;
3707
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsContent$outboundSchema` instead. */
3708
+ export const outboundSchema =
3709
+ GetAllPromptSnippetsPromptSnippetsContent$outboundSchema;
3710
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsContent$Outbound` instead. */
3711
+ export type Outbound = GetAllPromptSnippetsPromptSnippetsContent$Outbound;
3712
+ }
3713
+
3714
+ export function getAllPromptSnippetsPromptSnippetsContentToJSON(
3715
+ getAllPromptSnippetsPromptSnippetsContent:
3716
+ GetAllPromptSnippetsPromptSnippetsContent,
3717
+ ): string {
3718
+ return JSON.stringify(
3719
+ GetAllPromptSnippetsPromptSnippetsContent$outboundSchema.parse(
3720
+ getAllPromptSnippetsPromptSnippetsContent,
3721
+ ),
3722
+ );
3723
+ }
3724
+
3725
+ export function getAllPromptSnippetsPromptSnippetsContentFromJSON(
3726
+ jsonString: string,
3727
+ ): SafeParseResult<
3728
+ GetAllPromptSnippetsPromptSnippetsContent,
3729
+ SDKValidationError
3730
+ > {
3731
+ return safeParse(
3732
+ jsonString,
3733
+ (x) =>
3734
+ GetAllPromptSnippetsPromptSnippetsContent$inboundSchema.parse(
3735
+ JSON.parse(x),
3736
+ ),
3737
+ `Failed to parse 'GetAllPromptSnippetsPromptSnippetsContent' from JSON`,
3738
+ );
3739
+ }
3740
+
3741
+ /** @internal */
3742
+ export const GetAllPromptSnippetsPromptSnippetsResponseType$inboundSchema:
3743
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsResponseType> = z
3744
+ .nativeEnum(GetAllPromptSnippetsPromptSnippetsResponseType);
3745
+
3746
+ /** @internal */
3747
+ export const GetAllPromptSnippetsPromptSnippetsResponseType$outboundSchema:
3748
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsResponseType> =
3749
+ GetAllPromptSnippetsPromptSnippetsResponseType$inboundSchema;
3750
+
3751
+ /**
3752
+ * @internal
3753
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3754
+ */
3755
+ export namespace GetAllPromptSnippetsPromptSnippetsResponseType$ {
3756
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsResponseType$inboundSchema` instead. */
3757
+ export const inboundSchema =
3758
+ GetAllPromptSnippetsPromptSnippetsResponseType$inboundSchema;
3759
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsResponseType$outboundSchema` instead. */
3760
+ export const outboundSchema =
3761
+ GetAllPromptSnippetsPromptSnippetsResponseType$outboundSchema;
3762
+ }
3763
+
3764
+ /** @internal */
3765
+ export const GetAllPromptSnippetsPromptSnippetsFunction$inboundSchema:
3766
+ z.ZodType<GetAllPromptSnippetsPromptSnippetsFunction, z.ZodTypeDef, unknown> =
3767
+ z.object({
3768
+ name: z.string(),
3769
+ arguments: z.string(),
3770
+ });
3771
+
3772
+ /** @internal */
3773
+ export type GetAllPromptSnippetsPromptSnippetsFunction$Outbound = {
3774
+ name: string;
3775
+ arguments: string;
3776
+ };
3777
+
3778
+ /** @internal */
3779
+ export const GetAllPromptSnippetsPromptSnippetsFunction$outboundSchema:
3780
+ z.ZodType<
3781
+ GetAllPromptSnippetsPromptSnippetsFunction$Outbound,
3782
+ z.ZodTypeDef,
3783
+ GetAllPromptSnippetsPromptSnippetsFunction
3784
+ > = z.object({
3785
+ name: z.string(),
3786
+ arguments: z.string(),
3787
+ });
3788
+
3789
+ /**
3790
+ * @internal
3791
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3792
+ */
3793
+ export namespace GetAllPromptSnippetsPromptSnippetsFunction$ {
3794
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsFunction$inboundSchema` instead. */
3795
+ export const inboundSchema =
3796
+ GetAllPromptSnippetsPromptSnippetsFunction$inboundSchema;
3797
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsFunction$outboundSchema` instead. */
3798
+ export const outboundSchema =
3799
+ GetAllPromptSnippetsPromptSnippetsFunction$outboundSchema;
3800
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsFunction$Outbound` instead. */
3801
+ export type Outbound = GetAllPromptSnippetsPromptSnippetsFunction$Outbound;
3802
+ }
3803
+
3804
+ export function getAllPromptSnippetsPromptSnippetsFunctionToJSON(
3805
+ getAllPromptSnippetsPromptSnippetsFunction:
3806
+ GetAllPromptSnippetsPromptSnippetsFunction,
3807
+ ): string {
3808
+ return JSON.stringify(
3809
+ GetAllPromptSnippetsPromptSnippetsFunction$outboundSchema.parse(
3810
+ getAllPromptSnippetsPromptSnippetsFunction,
3811
+ ),
3812
+ );
3813
+ }
3814
+
3815
+ export function getAllPromptSnippetsPromptSnippetsFunctionFromJSON(
3816
+ jsonString: string,
3817
+ ): SafeParseResult<
3818
+ GetAllPromptSnippetsPromptSnippetsFunction,
3819
+ SDKValidationError
3820
+ > {
3821
+ return safeParse(
3822
+ jsonString,
3823
+ (x) =>
3824
+ GetAllPromptSnippetsPromptSnippetsFunction$inboundSchema.parse(
3825
+ JSON.parse(x),
3826
+ ),
3827
+ `Failed to parse 'GetAllPromptSnippetsPromptSnippetsFunction' from JSON`,
3828
+ );
3829
+ }
3830
+
3831
+ /** @internal */
3832
+ export const GetAllPromptSnippetsPromptSnippetsToolCalls$inboundSchema:
3833
+ z.ZodType<
3834
+ GetAllPromptSnippetsPromptSnippetsToolCalls,
3835
+ z.ZodTypeDef,
3836
+ unknown
3837
+ > = z.object({
3838
+ id: z.string().optional(),
3839
+ index: z.number().optional(),
3840
+ type: GetAllPromptSnippetsPromptSnippetsResponseType$inboundSchema,
3841
+ function: z.lazy(() =>
3842
+ GetAllPromptSnippetsPromptSnippetsFunction$inboundSchema
3843
+ ),
3844
+ });
3845
+
3846
+ /** @internal */
3847
+ export type GetAllPromptSnippetsPromptSnippetsToolCalls$Outbound = {
3848
+ id?: string | undefined;
3849
+ index?: number | undefined;
3850
+ type: string;
3851
+ function: GetAllPromptSnippetsPromptSnippetsFunction$Outbound;
3852
+ };
3853
+
3854
+ /** @internal */
3855
+ export const GetAllPromptSnippetsPromptSnippetsToolCalls$outboundSchema:
3856
+ z.ZodType<
3857
+ GetAllPromptSnippetsPromptSnippetsToolCalls$Outbound,
3858
+ z.ZodTypeDef,
3859
+ GetAllPromptSnippetsPromptSnippetsToolCalls
3860
+ > = z.object({
3861
+ id: z.string().optional(),
3862
+ index: z.number().optional(),
3863
+ type: GetAllPromptSnippetsPromptSnippetsResponseType$outboundSchema,
3864
+ function: z.lazy(() =>
3865
+ GetAllPromptSnippetsPromptSnippetsFunction$outboundSchema
3866
+ ),
3867
+ });
3868
+
3869
+ /**
3870
+ * @internal
3871
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3872
+ */
3873
+ export namespace GetAllPromptSnippetsPromptSnippetsToolCalls$ {
3874
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsToolCalls$inboundSchema` instead. */
3875
+ export const inboundSchema =
3876
+ GetAllPromptSnippetsPromptSnippetsToolCalls$inboundSchema;
3877
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsToolCalls$outboundSchema` instead. */
3878
+ export const outboundSchema =
3879
+ GetAllPromptSnippetsPromptSnippetsToolCalls$outboundSchema;
3880
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsToolCalls$Outbound` instead. */
3881
+ export type Outbound = GetAllPromptSnippetsPromptSnippetsToolCalls$Outbound;
3882
+ }
3883
+
3884
+ export function getAllPromptSnippetsPromptSnippetsToolCallsToJSON(
3885
+ getAllPromptSnippetsPromptSnippetsToolCalls:
3886
+ GetAllPromptSnippetsPromptSnippetsToolCalls,
3887
+ ): string {
3888
+ return JSON.stringify(
3889
+ GetAllPromptSnippetsPromptSnippetsToolCalls$outboundSchema.parse(
3890
+ getAllPromptSnippetsPromptSnippetsToolCalls,
3891
+ ),
3892
+ );
3893
+ }
3894
+
3895
+ export function getAllPromptSnippetsPromptSnippetsToolCallsFromJSON(
3896
+ jsonString: string,
3897
+ ): SafeParseResult<
3898
+ GetAllPromptSnippetsPromptSnippetsToolCalls,
3899
+ SDKValidationError
3900
+ > {
3901
+ return safeParse(
3902
+ jsonString,
3903
+ (x) =>
3904
+ GetAllPromptSnippetsPromptSnippetsToolCalls$inboundSchema.parse(
3905
+ JSON.parse(x),
3906
+ ),
3907
+ `Failed to parse 'GetAllPromptSnippetsPromptSnippetsToolCalls' from JSON`,
3908
+ );
3909
+ }
3910
+
3911
+ /** @internal */
3912
+ export const GetAllPromptSnippetsPromptSnippetsMessages$inboundSchema:
3913
+ z.ZodType<GetAllPromptSnippetsPromptSnippetsMessages, z.ZodTypeDef, unknown> =
3914
+ z.object({
3915
+ role: GetAllPromptSnippetsPromptSnippetsRole$inboundSchema,
3916
+ content: z.union([
3917
+ z.string(),
3918
+ z.array(z.union([
3919
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets1$inboundSchema),
3920
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets2$inboundSchema),
3921
+ ])),
3922
+ ]),
3923
+ tool_calls: z.array(
3924
+ z.lazy(() => GetAllPromptSnippetsPromptSnippetsToolCalls$inboundSchema),
3925
+ ).optional(),
3926
+ }).transform((v) => {
3927
+ return remap$(v, {
3928
+ "tool_calls": "toolCalls",
3929
+ });
3930
+ });
3931
+
3932
+ /** @internal */
3933
+ export type GetAllPromptSnippetsPromptSnippetsMessages$Outbound = {
3934
+ role: string;
3935
+ content:
3936
+ | string
3937
+ | Array<
3938
+ | GetAllPromptSnippets2PromptSnippets1$Outbound
3939
+ | GetAllPromptSnippets2PromptSnippets2$Outbound
3940
+ >;
3941
+ tool_calls?:
3942
+ | Array<GetAllPromptSnippetsPromptSnippetsToolCalls$Outbound>
3943
+ | undefined;
3944
+ };
3945
+
3946
+ /** @internal */
3947
+ export const GetAllPromptSnippetsPromptSnippetsMessages$outboundSchema:
3948
+ z.ZodType<
3949
+ GetAllPromptSnippetsPromptSnippetsMessages$Outbound,
3950
+ z.ZodTypeDef,
3951
+ GetAllPromptSnippetsPromptSnippetsMessages
3952
+ > = z.object({
3953
+ role: GetAllPromptSnippetsPromptSnippetsRole$outboundSchema,
3954
+ content: z.union([
3955
+ z.string(),
3956
+ z.array(z.union([
3957
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets1$outboundSchema),
3958
+ z.lazy(() => GetAllPromptSnippets2PromptSnippets2$outboundSchema),
3959
+ ])),
3960
+ ]),
3961
+ toolCalls: z.array(
3962
+ z.lazy(() => GetAllPromptSnippetsPromptSnippetsToolCalls$outboundSchema),
3963
+ ).optional(),
3964
+ }).transform((v) => {
3965
+ return remap$(v, {
3966
+ toolCalls: "tool_calls",
3967
+ });
3968
+ });
3969
+
3970
+ /**
3971
+ * @internal
3972
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3973
+ */
3974
+ export namespace GetAllPromptSnippetsPromptSnippetsMessages$ {
3975
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsMessages$inboundSchema` instead. */
3976
+ export const inboundSchema =
3977
+ GetAllPromptSnippetsPromptSnippetsMessages$inboundSchema;
3978
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsMessages$outboundSchema` instead. */
3979
+ export const outboundSchema =
3980
+ GetAllPromptSnippetsPromptSnippetsMessages$outboundSchema;
3981
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsMessages$Outbound` instead. */
3982
+ export type Outbound = GetAllPromptSnippetsPromptSnippetsMessages$Outbound;
3983
+ }
3984
+
3985
+ export function getAllPromptSnippetsPromptSnippetsMessagesToJSON(
3986
+ getAllPromptSnippetsPromptSnippetsMessages:
3987
+ GetAllPromptSnippetsPromptSnippetsMessages,
3988
+ ): string {
3989
+ return JSON.stringify(
3990
+ GetAllPromptSnippetsPromptSnippetsMessages$outboundSchema.parse(
3991
+ getAllPromptSnippetsPromptSnippetsMessages,
3992
+ ),
3993
+ );
3994
+ }
3995
+
3996
+ export function getAllPromptSnippetsPromptSnippetsMessagesFromJSON(
3997
+ jsonString: string,
3998
+ ): SafeParseResult<
3999
+ GetAllPromptSnippetsPromptSnippetsMessages,
4000
+ SDKValidationError
4001
+ > {
4002
+ return safeParse(
4003
+ jsonString,
4004
+ (x) =>
4005
+ GetAllPromptSnippetsPromptSnippetsMessages$inboundSchema.parse(
4006
+ JSON.parse(x),
4007
+ ),
4008
+ `Failed to parse 'GetAllPromptSnippetsPromptSnippetsMessages' from JSON`,
4009
+ );
4010
+ }
4011
+
4012
+ /** @internal */
4013
+ export const GetAllPromptSnippetsPromptSnippetsPromptConfig$inboundSchema:
4014
+ z.ZodType<
4015
+ GetAllPromptSnippetsPromptSnippetsPromptConfig,
4016
+ z.ZodTypeDef,
4017
+ unknown
4018
+ > = z.object({
4019
+ stream: z.boolean().optional(),
4020
+ model: z.string().optional(),
4021
+ model_db_id: z.string().optional(),
4022
+ model_type: GetAllPromptSnippetsPromptSnippetsModelType$inboundSchema
4023
+ .optional(),
4024
+ model_parameters: z.lazy(() =>
4025
+ GetAllPromptSnippetsPromptSnippetsModelParameters$inboundSchema
4026
+ ).optional(),
4027
+ provider: GetAllPromptSnippetsPromptSnippetsProvider$inboundSchema
4028
+ .optional(),
4029
+ integration_id: z.nullable(z.string()).optional(),
4030
+ version: z.string().optional(),
4031
+ messages: z.array(
4032
+ z.lazy(() => GetAllPromptSnippetsPromptSnippetsMessages$inboundSchema),
4033
+ ),
4034
+ }).transform((v) => {
4035
+ return remap$(v, {
4036
+ "model_db_id": "modelDbId",
4037
+ "model_type": "modelType",
4038
+ "model_parameters": "modelParameters",
4039
+ "integration_id": "integrationId",
4040
+ });
4041
+ });
4042
+
4043
+ /** @internal */
4044
+ export type GetAllPromptSnippetsPromptSnippetsPromptConfig$Outbound = {
4045
+ stream?: boolean | undefined;
4046
+ model?: string | undefined;
4047
+ model_db_id?: string | undefined;
4048
+ model_type?: string | undefined;
4049
+ model_parameters?:
4050
+ | GetAllPromptSnippetsPromptSnippetsModelParameters$Outbound
4051
+ | undefined;
4052
+ provider?: string | undefined;
4053
+ integration_id?: string | null | undefined;
4054
+ version?: string | undefined;
4055
+ messages: Array<GetAllPromptSnippetsPromptSnippetsMessages$Outbound>;
4056
+ };
4057
+
4058
+ /** @internal */
4059
+ export const GetAllPromptSnippetsPromptSnippetsPromptConfig$outboundSchema:
4060
+ z.ZodType<
4061
+ GetAllPromptSnippetsPromptSnippetsPromptConfig$Outbound,
4062
+ z.ZodTypeDef,
4063
+ GetAllPromptSnippetsPromptSnippetsPromptConfig
4064
+ > = z.object({
4065
+ stream: z.boolean().optional(),
4066
+ model: z.string().optional(),
4067
+ modelDbId: z.string().optional(),
4068
+ modelType: GetAllPromptSnippetsPromptSnippetsModelType$outboundSchema
4069
+ .optional(),
4070
+ modelParameters: z.lazy(() =>
4071
+ GetAllPromptSnippetsPromptSnippetsModelParameters$outboundSchema
4072
+ ).optional(),
4073
+ provider: GetAllPromptSnippetsPromptSnippetsProvider$outboundSchema
4074
+ .optional(),
4075
+ integrationId: z.nullable(z.string()).optional(),
4076
+ version: z.string().optional(),
4077
+ messages: z.array(
4078
+ z.lazy(() => GetAllPromptSnippetsPromptSnippetsMessages$outboundSchema),
4079
+ ),
4080
+ }).transform((v) => {
4081
+ return remap$(v, {
4082
+ modelDbId: "model_db_id",
4083
+ modelType: "model_type",
4084
+ modelParameters: "model_parameters",
4085
+ integrationId: "integration_id",
4086
+ });
4087
+ });
4088
+
4089
+ /**
4090
+ * @internal
4091
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4092
+ */
4093
+ export namespace GetAllPromptSnippetsPromptSnippetsPromptConfig$ {
4094
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsPromptConfig$inboundSchema` instead. */
4095
+ export const inboundSchema =
4096
+ GetAllPromptSnippetsPromptSnippetsPromptConfig$inboundSchema;
4097
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsPromptConfig$outboundSchema` instead. */
4098
+ export const outboundSchema =
4099
+ GetAllPromptSnippetsPromptSnippetsPromptConfig$outboundSchema;
4100
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsPromptConfig$Outbound` instead. */
4101
+ export type Outbound =
4102
+ GetAllPromptSnippetsPromptSnippetsPromptConfig$Outbound;
4103
+ }
4104
+
4105
+ export function getAllPromptSnippetsPromptSnippetsPromptConfigToJSON(
4106
+ getAllPromptSnippetsPromptSnippetsPromptConfig:
4107
+ GetAllPromptSnippetsPromptSnippetsPromptConfig,
4108
+ ): string {
4109
+ return JSON.stringify(
4110
+ GetAllPromptSnippetsPromptSnippetsPromptConfig$outboundSchema.parse(
4111
+ getAllPromptSnippetsPromptSnippetsPromptConfig,
4112
+ ),
4113
+ );
4114
+ }
4115
+
4116
+ export function getAllPromptSnippetsPromptSnippetsPromptConfigFromJSON(
4117
+ jsonString: string,
4118
+ ): SafeParseResult<
4119
+ GetAllPromptSnippetsPromptSnippetsPromptConfig,
4120
+ SDKValidationError
4121
+ > {
4122
+ return safeParse(
4123
+ jsonString,
4124
+ (x) =>
4125
+ GetAllPromptSnippetsPromptSnippetsPromptConfig$inboundSchema.parse(
4126
+ JSON.parse(x),
4127
+ ),
4128
+ `Failed to parse 'GetAllPromptSnippetsPromptSnippetsPromptConfig' from JSON`,
4129
+ );
4130
+ }
4131
+
4132
+ /** @internal */
4133
+ export const GetAllPromptSnippetsPromptSnippetsUseCases$inboundSchema:
4134
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsUseCases> = z
4135
+ .nativeEnum(GetAllPromptSnippetsPromptSnippetsUseCases);
4136
+
4137
+ /** @internal */
4138
+ export const GetAllPromptSnippetsPromptSnippetsUseCases$outboundSchema:
4139
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsUseCases> =
4140
+ GetAllPromptSnippetsPromptSnippetsUseCases$inboundSchema;
4141
+
4142
+ /**
4143
+ * @internal
4144
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4145
+ */
4146
+ export namespace GetAllPromptSnippetsPromptSnippetsUseCases$ {
4147
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsUseCases$inboundSchema` instead. */
4148
+ export const inboundSchema =
4149
+ GetAllPromptSnippetsPromptSnippetsUseCases$inboundSchema;
4150
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsUseCases$outboundSchema` instead. */
4151
+ export const outboundSchema =
4152
+ GetAllPromptSnippetsPromptSnippetsUseCases$outboundSchema;
4153
+ }
4154
+
4155
+ /** @internal */
4156
+ export const GetAllPromptSnippetsPromptSnippetsLanguage$inboundSchema:
4157
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsLanguage> = z
4158
+ .nativeEnum(GetAllPromptSnippetsPromptSnippetsLanguage);
4159
+
4160
+ /** @internal */
4161
+ export const GetAllPromptSnippetsPromptSnippetsLanguage$outboundSchema:
4162
+ z.ZodNativeEnum<typeof GetAllPromptSnippetsPromptSnippetsLanguage> =
4163
+ GetAllPromptSnippetsPromptSnippetsLanguage$inboundSchema;
4164
+
4165
+ /**
4166
+ * @internal
4167
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4168
+ */
4169
+ export namespace GetAllPromptSnippetsPromptSnippetsLanguage$ {
4170
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsLanguage$inboundSchema` instead. */
4171
+ export const inboundSchema =
4172
+ GetAllPromptSnippetsPromptSnippetsLanguage$inboundSchema;
4173
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsLanguage$outboundSchema` instead. */
4174
+ export const outboundSchema =
4175
+ GetAllPromptSnippetsPromptSnippetsLanguage$outboundSchema;
4176
+ }
4177
+
4178
+ /** @internal */
4179
+ export const GetAllPromptSnippetsPromptSnippetsMetadata$inboundSchema:
4180
+ z.ZodType<GetAllPromptSnippetsPromptSnippetsMetadata, z.ZodTypeDef, unknown> =
4181
+ z.object({
4182
+ use_cases: z.array(
4183
+ GetAllPromptSnippetsPromptSnippetsUseCases$inboundSchema,
4184
+ ).optional(),
4185
+ language: GetAllPromptSnippetsPromptSnippetsLanguage$inboundSchema
4186
+ .optional(),
4187
+ }).transform((v) => {
4188
+ return remap$(v, {
4189
+ "use_cases": "useCases",
4190
+ });
4191
+ });
4192
+
4193
+ /** @internal */
4194
+ export type GetAllPromptSnippetsPromptSnippetsMetadata$Outbound = {
4195
+ use_cases?: Array<string> | undefined;
4196
+ language?: string | undefined;
4197
+ };
4198
+
4199
+ /** @internal */
4200
+ export const GetAllPromptSnippetsPromptSnippetsMetadata$outboundSchema:
4201
+ z.ZodType<
4202
+ GetAllPromptSnippetsPromptSnippetsMetadata$Outbound,
4203
+ z.ZodTypeDef,
4204
+ GetAllPromptSnippetsPromptSnippetsMetadata
4205
+ > = z.object({
4206
+ useCases: z.array(GetAllPromptSnippetsPromptSnippetsUseCases$outboundSchema)
4207
+ .optional(),
4208
+ language: GetAllPromptSnippetsPromptSnippetsLanguage$outboundSchema
4209
+ .optional(),
4210
+ }).transform((v) => {
4211
+ return remap$(v, {
4212
+ useCases: "use_cases",
4213
+ });
4214
+ });
4215
+
4216
+ /**
4217
+ * @internal
4218
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4219
+ */
4220
+ export namespace GetAllPromptSnippetsPromptSnippetsMetadata$ {
4221
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsMetadata$inboundSchema` instead. */
4222
+ export const inboundSchema =
4223
+ GetAllPromptSnippetsPromptSnippetsMetadata$inboundSchema;
4224
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsMetadata$outboundSchema` instead. */
4225
+ export const outboundSchema =
4226
+ GetAllPromptSnippetsPromptSnippetsMetadata$outboundSchema;
4227
+ /** @deprecated use `GetAllPromptSnippetsPromptSnippetsMetadata$Outbound` instead. */
4228
+ export type Outbound = GetAllPromptSnippetsPromptSnippetsMetadata$Outbound;
4229
+ }
4230
+
4231
+ export function getAllPromptSnippetsPromptSnippetsMetadataToJSON(
4232
+ getAllPromptSnippetsPromptSnippetsMetadata:
4233
+ GetAllPromptSnippetsPromptSnippetsMetadata,
4234
+ ): string {
4235
+ return JSON.stringify(
4236
+ GetAllPromptSnippetsPromptSnippetsMetadata$outboundSchema.parse(
4237
+ getAllPromptSnippetsPromptSnippetsMetadata,
4238
+ ),
4239
+ );
4240
+ }
4241
+
4242
+ export function getAllPromptSnippetsPromptSnippetsMetadataFromJSON(
4243
+ jsonString: string,
4244
+ ): SafeParseResult<
4245
+ GetAllPromptSnippetsPromptSnippetsMetadata,
4246
+ SDKValidationError
4247
+ > {
4248
+ return safeParse(
4249
+ jsonString,
4250
+ (x) =>
4251
+ GetAllPromptSnippetsPromptSnippetsMetadata$inboundSchema.parse(
4252
+ JSON.parse(x),
4253
+ ),
4254
+ `Failed to parse 'GetAllPromptSnippetsPromptSnippetsMetadata' from JSON`,
4255
+ );
4256
+ }
4257
+
4258
+ /** @internal */
4259
+ export const GetAllPromptSnippetsVersions$inboundSchema: z.ZodType<
4260
+ GetAllPromptSnippetsVersions,
4261
+ z.ZodTypeDef,
4262
+ unknown
4263
+ > = z.object({
4264
+ _id: z.string(),
4265
+ description: z.nullable(z.string()).optional(),
4266
+ prompt_config: z.lazy(() =>
4267
+ GetAllPromptSnippetsPromptSnippetsPromptConfig$inboundSchema
4268
+ ),
4269
+ metadata: z.lazy(() =>
4270
+ GetAllPromptSnippetsPromptSnippetsMetadata$inboundSchema
4271
+ ),
4272
+ created_by_id: z.string(),
4273
+ updated_by_id: z.string(),
4274
+ timestamp: z.string(),
4275
+ }).transform((v) => {
4276
+ return remap$(v, {
4277
+ "_id": "id",
4278
+ "prompt_config": "promptConfig",
4279
+ "created_by_id": "createdById",
4280
+ "updated_by_id": "updatedById",
4281
+ });
4282
+ });
4283
+
4284
+ /** @internal */
4285
+ export type GetAllPromptSnippetsVersions$Outbound = {
4286
+ _id: string;
4287
+ description?: string | null | undefined;
4288
+ prompt_config: GetAllPromptSnippetsPromptSnippetsPromptConfig$Outbound;
4289
+ metadata: GetAllPromptSnippetsPromptSnippetsMetadata$Outbound;
4290
+ created_by_id: string;
4291
+ updated_by_id: string;
4292
+ timestamp: string;
4293
+ };
4294
+
4295
+ /** @internal */
4296
+ export const GetAllPromptSnippetsVersions$outboundSchema: z.ZodType<
4297
+ GetAllPromptSnippetsVersions$Outbound,
4298
+ z.ZodTypeDef,
4299
+ GetAllPromptSnippetsVersions
4300
+ > = z.object({
4301
+ id: z.string(),
4302
+ description: z.nullable(z.string()).optional(),
4303
+ promptConfig: z.lazy(() =>
4304
+ GetAllPromptSnippetsPromptSnippetsPromptConfig$outboundSchema
4305
+ ),
4306
+ metadata: z.lazy(() =>
4307
+ GetAllPromptSnippetsPromptSnippetsMetadata$outboundSchema
4308
+ ),
4309
+ createdById: z.string(),
4310
+ updatedById: z.string(),
4311
+ timestamp: z.string(),
4312
+ }).transform((v) => {
4313
+ return remap$(v, {
4314
+ id: "_id",
4315
+ promptConfig: "prompt_config",
4316
+ createdById: "created_by_id",
4317
+ updatedById: "updated_by_id",
4318
+ });
4319
+ });
4320
+
4321
+ /**
4322
+ * @internal
4323
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4324
+ */
4325
+ export namespace GetAllPromptSnippetsVersions$ {
4326
+ /** @deprecated use `GetAllPromptSnippetsVersions$inboundSchema` instead. */
4327
+ export const inboundSchema = GetAllPromptSnippetsVersions$inboundSchema;
4328
+ /** @deprecated use `GetAllPromptSnippetsVersions$outboundSchema` instead. */
4329
+ export const outboundSchema = GetAllPromptSnippetsVersions$outboundSchema;
4330
+ /** @deprecated use `GetAllPromptSnippetsVersions$Outbound` instead. */
4331
+ export type Outbound = GetAllPromptSnippetsVersions$Outbound;
4332
+ }
4333
+
4334
+ export function getAllPromptSnippetsVersionsToJSON(
4335
+ getAllPromptSnippetsVersions: GetAllPromptSnippetsVersions,
4336
+ ): string {
4337
+ return JSON.stringify(
4338
+ GetAllPromptSnippetsVersions$outboundSchema.parse(
4339
+ getAllPromptSnippetsVersions,
4340
+ ),
4341
+ );
4342
+ }
4343
+
4344
+ export function getAllPromptSnippetsVersionsFromJSON(
4345
+ jsonString: string,
4346
+ ): SafeParseResult<GetAllPromptSnippetsVersions, SDKValidationError> {
4347
+ return safeParse(
4348
+ jsonString,
4349
+ (x) => GetAllPromptSnippetsVersions$inboundSchema.parse(JSON.parse(x)),
4350
+ `Failed to parse 'GetAllPromptSnippetsVersions' from JSON`,
4351
+ );
4352
+ }
4353
+
4354
+ /** @internal */
4355
+ export const GetAllPromptSnippetsData$inboundSchema: z.ZodType<
4356
+ GetAllPromptSnippetsData,
4357
+ z.ZodTypeDef,
4358
+ unknown
4359
+ > = z.object({
4360
+ _id: z.string(),
4361
+ owner: z.union([z.string(), GetAllPromptSnippetsOwner2$inboundSchema]),
4362
+ domain_id: z.string(),
4363
+ key: z.string(),
4364
+ description: z.nullable(z.string()).optional(),
4365
+ prompt_config: z.lazy(() => GetAllPromptSnippetsPromptConfig$inboundSchema),
4366
+ metadata: z.lazy(() => GetAllPromptSnippetsMetadata$inboundSchema),
4367
+ created_by_id: z.string(),
4368
+ updated_by_id: z.string(),
4369
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v))
4370
+ .optional(),
4371
+ updated: z.string().datetime({ offset: true }).default(
4372
+ "2025-02-06T15:43:55.428Z",
4373
+ ).transform(v => new Date(v)),
4374
+ type: GetAllPromptSnippetsType$inboundSchema,
4375
+ versions: z.array(z.lazy(() => GetAllPromptSnippetsVersions$inboundSchema)),
4376
+ }).transform((v) => {
4377
+ return remap$(v, {
4378
+ "_id": "id",
4379
+ "domain_id": "domainId",
4380
+ "prompt_config": "promptConfig",
4381
+ "created_by_id": "createdById",
4382
+ "updated_by_id": "updatedById",
4383
+ });
4384
+ });
4385
+
4386
+ /** @internal */
4387
+ export type GetAllPromptSnippetsData$Outbound = {
4388
+ _id: string;
4389
+ owner: string | string;
4390
+ domain_id: string;
4391
+ key: string;
4392
+ description?: string | null | undefined;
4393
+ prompt_config: GetAllPromptSnippetsPromptConfig$Outbound;
4394
+ metadata: GetAllPromptSnippetsMetadata$Outbound;
4395
+ created_by_id: string;
4396
+ updated_by_id: string;
4397
+ created?: string | undefined;
4398
+ updated: string;
4399
+ type: string;
4400
+ versions: Array<GetAllPromptSnippetsVersions$Outbound>;
4401
+ };
4402
+
4403
+ /** @internal */
4404
+ export const GetAllPromptSnippetsData$outboundSchema: z.ZodType<
4405
+ GetAllPromptSnippetsData$Outbound,
4406
+ z.ZodTypeDef,
4407
+ GetAllPromptSnippetsData
4408
+ > = z.object({
4409
+ id: z.string(),
4410
+ owner: z.union([z.string(), GetAllPromptSnippetsOwner2$outboundSchema]),
4411
+ domainId: z.string(),
4412
+ key: z.string(),
4413
+ description: z.nullable(z.string()).optional(),
4414
+ promptConfig: z.lazy(() => GetAllPromptSnippetsPromptConfig$outboundSchema),
4415
+ metadata: z.lazy(() => GetAllPromptSnippetsMetadata$outboundSchema),
4416
+ createdById: z.string(),
4417
+ updatedById: z.string(),
4418
+ created: z.date().transform(v => v.toISOString()).optional(),
4419
+ updated: z.date().default(() => new Date("2025-02-06T15:43:55.428Z"))
4420
+ .transform(v => v.toISOString()),
4421
+ type: GetAllPromptSnippetsType$outboundSchema,
4422
+ versions: z.array(z.lazy(() => GetAllPromptSnippetsVersions$outboundSchema)),
4423
+ }).transform((v) => {
4424
+ return remap$(v, {
4425
+ id: "_id",
4426
+ domainId: "domain_id",
4427
+ promptConfig: "prompt_config",
4428
+ createdById: "created_by_id",
4429
+ updatedById: "updated_by_id",
4430
+ });
4431
+ });
4432
+
4433
+ /**
4434
+ * @internal
4435
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4436
+ */
4437
+ export namespace GetAllPromptSnippetsData$ {
4438
+ /** @deprecated use `GetAllPromptSnippetsData$inboundSchema` instead. */
4439
+ export const inboundSchema = GetAllPromptSnippetsData$inboundSchema;
4440
+ /** @deprecated use `GetAllPromptSnippetsData$outboundSchema` instead. */
4441
+ export const outboundSchema = GetAllPromptSnippetsData$outboundSchema;
4442
+ /** @deprecated use `GetAllPromptSnippetsData$Outbound` instead. */
4443
+ export type Outbound = GetAllPromptSnippetsData$Outbound;
4444
+ }
4445
+
4446
+ export function getAllPromptSnippetsDataToJSON(
4447
+ getAllPromptSnippetsData: GetAllPromptSnippetsData,
4448
+ ): string {
4449
+ return JSON.stringify(
4450
+ GetAllPromptSnippetsData$outboundSchema.parse(getAllPromptSnippetsData),
4451
+ );
4452
+ }
4453
+
4454
+ export function getAllPromptSnippetsDataFromJSON(
4455
+ jsonString: string,
4456
+ ): SafeParseResult<GetAllPromptSnippetsData, SDKValidationError> {
4457
+ return safeParse(
4458
+ jsonString,
4459
+ (x) => GetAllPromptSnippetsData$inboundSchema.parse(JSON.parse(x)),
4460
+ `Failed to parse 'GetAllPromptSnippetsData' from JSON`,
4461
+ );
4462
+ }
4463
+
4464
+ /** @internal */
4465
+ export const GetAllPromptSnippetsResponseBody$inboundSchema: z.ZodType<
4466
+ GetAllPromptSnippetsResponseBody,
4467
+ z.ZodTypeDef,
4468
+ unknown
4469
+ > = z.object({
4470
+ object: GetAllPromptSnippetsObject$inboundSchema,
4471
+ data: z.array(z.lazy(() => GetAllPromptSnippetsData$inboundSchema)),
4472
+ has_more: z.boolean(),
4473
+ }).transform((v) => {
4474
+ return remap$(v, {
4475
+ "has_more": "hasMore",
4476
+ });
4477
+ });
4478
+
4479
+ /** @internal */
4480
+ export type GetAllPromptSnippetsResponseBody$Outbound = {
4481
+ object: string;
4482
+ data: Array<GetAllPromptSnippetsData$Outbound>;
4483
+ has_more: boolean;
4484
+ };
4485
+
4486
+ /** @internal */
4487
+ export const GetAllPromptSnippetsResponseBody$outboundSchema: z.ZodType<
4488
+ GetAllPromptSnippetsResponseBody$Outbound,
4489
+ z.ZodTypeDef,
4490
+ GetAllPromptSnippetsResponseBody
4491
+ > = z.object({
4492
+ object: GetAllPromptSnippetsObject$outboundSchema,
4493
+ data: z.array(z.lazy(() => GetAllPromptSnippetsData$outboundSchema)),
4494
+ hasMore: z.boolean(),
4495
+ }).transform((v) => {
4496
+ return remap$(v, {
4497
+ hasMore: "has_more",
4498
+ });
4499
+ });
4500
+
4501
+ /**
4502
+ * @internal
4503
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
4504
+ */
4505
+ export namespace GetAllPromptSnippetsResponseBody$ {
4506
+ /** @deprecated use `GetAllPromptSnippetsResponseBody$inboundSchema` instead. */
4507
+ export const inboundSchema = GetAllPromptSnippetsResponseBody$inboundSchema;
4508
+ /** @deprecated use `GetAllPromptSnippetsResponseBody$outboundSchema` instead. */
4509
+ export const outboundSchema = GetAllPromptSnippetsResponseBody$outboundSchema;
4510
+ /** @deprecated use `GetAllPromptSnippetsResponseBody$Outbound` instead. */
4511
+ export type Outbound = GetAllPromptSnippetsResponseBody$Outbound;
4512
+ }
4513
+
4514
+ export function getAllPromptSnippetsResponseBodyToJSON(
4515
+ getAllPromptSnippetsResponseBody: GetAllPromptSnippetsResponseBody,
4516
+ ): string {
4517
+ return JSON.stringify(
4518
+ GetAllPromptSnippetsResponseBody$outboundSchema.parse(
4519
+ getAllPromptSnippetsResponseBody,
4520
+ ),
4521
+ );
4522
+ }
4523
+
4524
+ export function getAllPromptSnippetsResponseBodyFromJSON(
4525
+ jsonString: string,
4526
+ ): SafeParseResult<GetAllPromptSnippetsResponseBody, SDKValidationError> {
4527
+ return safeParse(
4528
+ jsonString,
4529
+ (x) => GetAllPromptSnippetsResponseBody$inboundSchema.parse(JSON.parse(x)),
4530
+ `Failed to parse 'GetAllPromptSnippetsResponseBody' from JSON`,
4531
+ );
4532
+ }