@orq-ai/node 3.5.22 → 3.5.23

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 (79) hide show
  1. package/bin/mcp-server.js +40 -40
  2. package/bin/mcp-server.js.map +21 -21
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/mcp-server/mcp-server.js +1 -1
  7. package/mcp-server/server.js +1 -1
  8. package/models/operations/bulkcreatedatapoints.js +2 -2
  9. package/models/operations/createcontact.js +2 -2
  10. package/models/operations/createdataset.js +2 -2
  11. package/models/operations/createdatasetitem.js +2 -2
  12. package/models/operations/createdatasource.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/listdatasetdatapoints.js +2 -2
  17. package/models/operations/listdatasets.js +2 -2
  18. package/models/operations/listdatasources.js +2 -2
  19. package/models/operations/retrievedatapoint.js +2 -2
  20. package/models/operations/retrievedataset.js +2 -2
  21. package/models/operations/retrievedatasource.js +2 -2
  22. package/models/operations/updatedatapoint.js +2 -2
  23. package/models/operations/updatedataset.js +2 -2
  24. package/models/operations/updatedatasource.js +2 -2
  25. package/package.json +1 -1
  26. package/packages/orq-rc/jsr.json +1 -1
  27. package/packages/orq-rc/package-lock.json +6 -6
  28. package/packages/orq-rc/package.json +2 -2
  29. package/packages/orq-rc/src/lib/config.ts +3 -3
  30. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  31. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  32. package/packages/orq-rc/src/models/components/deployments.ts +1217 -1677
  33. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +416 -12
  34. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  35. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  36. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +410 -13
  37. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  38. package/packages/orq-rc/src/models/operations/createprompt.ts +400 -12
  39. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1413 -1729
  40. package/packages/orq-rc/src/models/operations/deployments.ts +211 -23
  41. package/packages/orq-rc/src/models/operations/deploymentstream.ts +1314 -1761
  42. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  43. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  44. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  45. package/packages/orq-rc/src/models/operations/getallprompts.ts +200 -6
  46. package/packages/orq-rc/src/models/operations/getoneprompt.ts +195 -6
  47. package/packages/orq-rc/src/models/operations/getpromptversion.ts +204 -6
  48. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +207 -8
  49. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  50. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/listpromptversions.ts +202 -6
  52. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +204 -8
  53. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1334 -1750
  56. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +412 -14
  57. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/updateprompt.ts +400 -12
  60. package/src/lib/config.ts +3 -3
  61. package/src/mcp-server/mcp-server.ts +1 -1
  62. package/src/mcp-server/server.ts +1 -1
  63. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  64. package/src/models/operations/createcontact.ts +2 -2
  65. package/src/models/operations/createdataset.ts +2 -2
  66. package/src/models/operations/createdatasetitem.ts +2 -2
  67. package/src/models/operations/createdatasource.ts +2 -2
  68. package/src/models/operations/fileget.ts +2 -2
  69. package/src/models/operations/filelist.ts +2 -2
  70. package/src/models/operations/fileupload.ts +2 -2
  71. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  72. package/src/models/operations/listdatasets.ts +2 -2
  73. package/src/models/operations/listdatasources.ts +2 -2
  74. package/src/models/operations/retrievedatapoint.ts +2 -2
  75. package/src/models/operations/retrievedataset.ts +2 -2
  76. package/src/models/operations/retrievedatasource.ts +2 -2
  77. package/src/models/operations/updatedatapoint.ts +2 -2
  78. package/src/models/operations/updatedataset.ts +2 -2
  79. package/src/models/operations/updatedatasource.ts +2 -2
@@ -241,6 +241,38 @@ export const CreatePromptRole = {
241
241
  */
242
242
  export type CreatePromptRole = ClosedEnum<typeof CreatePromptRole>;
243
243
 
244
+ /**
245
+ * The type of the content part. Always `file`.
246
+ */
247
+ export const CreatePrompt2PromptsRequestType = {
248
+ File: "file",
249
+ } as const;
250
+ /**
251
+ * The type of the content part. Always `file`.
252
+ */
253
+ export type CreatePrompt2PromptsRequestType = ClosedEnum<
254
+ typeof CreatePrompt2PromptsRequestType
255
+ >;
256
+
257
+ export type CreatePrompt2File = {
258
+ /**
259
+ * The base64 encoded file data, used when passing the file to the model as a string.
260
+ */
261
+ fileData: string;
262
+ /**
263
+ * The name of the file, used when passing the file to the model as a string.
264
+ */
265
+ filename?: string | undefined;
266
+ };
267
+
268
+ export type CreatePrompt23 = {
269
+ /**
270
+ * The type of the content part. Always `file`.
271
+ */
272
+ type: CreatePrompt2PromptsRequestType;
273
+ file: CreatePrompt2File;
274
+ };
275
+
244
276
  export const CreatePrompt2PromptsType = {
245
277
  ImageUrl: "image_url",
246
278
  } as const;
@@ -280,14 +312,17 @@ export type CreatePrompt21 = {
280
312
  text: string;
281
313
  };
282
314
 
283
- export type CreatePromptContent2 = CreatePrompt21 | CreatePrompt22;
315
+ export type CreatePromptContent2 =
316
+ | CreatePrompt21
317
+ | CreatePrompt22
318
+ | CreatePrompt23;
284
319
 
285
320
  /**
286
321
  * 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.
287
322
  */
288
323
  export type CreatePromptContent =
289
324
  | string
290
- | Array<CreatePrompt21 | CreatePrompt22>;
325
+ | Array<CreatePrompt21 | CreatePrompt22 | CreatePrompt23>;
291
326
 
292
327
  export const CreatePromptType = {
293
328
  Function: "function",
@@ -317,7 +352,7 @@ export type CreatePromptMessages = {
317
352
  /**
318
353
  * 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.
319
354
  */
320
- content: string | Array<CreatePrompt21 | CreatePrompt22>;
355
+ content: string | Array<CreatePrompt21 | CreatePrompt22 | CreatePrompt23>;
321
356
  toolCalls?: Array<CreatePromptToolCalls> | undefined;
322
357
  toolCallId?: string | undefined;
323
358
  };
@@ -670,6 +705,38 @@ export type CreatePromptPromptsRole = ClosedEnum<
670
705
  typeof CreatePromptPromptsRole
671
706
  >;
672
707
 
708
+ /**
709
+ * The type of the content part. Always `file`.
710
+ */
711
+ export const CreatePrompt2PromptsResponse200ApplicationJSONType = {
712
+ File: "file",
713
+ } as const;
714
+ /**
715
+ * The type of the content part. Always `file`.
716
+ */
717
+ export type CreatePrompt2PromptsResponse200ApplicationJSONType = ClosedEnum<
718
+ typeof CreatePrompt2PromptsResponse200ApplicationJSONType
719
+ >;
720
+
721
+ export type CreatePrompt2PromptsFile = {
722
+ /**
723
+ * The base64 encoded file data, used when passing the file to the model as a string.
724
+ */
725
+ fileData: string;
726
+ /**
727
+ * The name of the file, used when passing the file to the model as a string.
728
+ */
729
+ filename?: string | undefined;
730
+ };
731
+
732
+ export type CreatePrompt2Prompts3 = {
733
+ /**
734
+ * The type of the content part. Always `file`.
735
+ */
736
+ type: CreatePrompt2PromptsResponse200ApplicationJSONType;
737
+ file: CreatePrompt2PromptsFile;
738
+ };
739
+
673
740
  export const CreatePrompt2PromptsResponse200Type = {
674
741
  ImageUrl: "image_url",
675
742
  } as const;
@@ -717,14 +784,17 @@ export type CreatePrompt2Prompts1 = {
717
784
 
718
785
  export type CreatePromptContentPrompts2 =
719
786
  | CreatePrompt2Prompts1
720
- | CreatePrompt2Prompts2;
787
+ | CreatePrompt2Prompts2
788
+ | CreatePrompt2Prompts3;
721
789
 
722
790
  /**
723
791
  * 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.
724
792
  */
725
793
  export type CreatePromptPromptsContent =
726
794
  | string
727
- | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
795
+ | Array<
796
+ CreatePrompt2Prompts1 | CreatePrompt2Prompts2 | CreatePrompt2Prompts3
797
+ >;
728
798
 
729
799
  export const CreatePromptPromptsResponseType = {
730
800
  Function: "function",
@@ -756,7 +826,11 @@ export type CreatePromptPromptsMessages = {
756
826
  /**
757
827
  * 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.
758
828
  */
759
- content: string | Array<CreatePrompt2Prompts1 | CreatePrompt2Prompts2>;
829
+ content:
830
+ | string
831
+ | Array<
832
+ CreatePrompt2Prompts1 | CreatePrompt2Prompts2 | CreatePrompt2Prompts3
833
+ >;
760
834
  toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
761
835
  toolCallId?: string | undefined;
762
836
  };
@@ -1397,6 +1471,145 @@ export namespace CreatePromptRole$ {
1397
1471
  export const outboundSchema = CreatePromptRole$outboundSchema;
1398
1472
  }
1399
1473
 
1474
+ /** @internal */
1475
+ export const CreatePrompt2PromptsRequestType$inboundSchema: z.ZodNativeEnum<
1476
+ typeof CreatePrompt2PromptsRequestType
1477
+ > = z.nativeEnum(CreatePrompt2PromptsRequestType);
1478
+
1479
+ /** @internal */
1480
+ export const CreatePrompt2PromptsRequestType$outboundSchema: z.ZodNativeEnum<
1481
+ typeof CreatePrompt2PromptsRequestType
1482
+ > = CreatePrompt2PromptsRequestType$inboundSchema;
1483
+
1484
+ /**
1485
+ * @internal
1486
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1487
+ */
1488
+ export namespace CreatePrompt2PromptsRequestType$ {
1489
+ /** @deprecated use `CreatePrompt2PromptsRequestType$inboundSchema` instead. */
1490
+ export const inboundSchema = CreatePrompt2PromptsRequestType$inboundSchema;
1491
+ /** @deprecated use `CreatePrompt2PromptsRequestType$outboundSchema` instead. */
1492
+ export const outboundSchema = CreatePrompt2PromptsRequestType$outboundSchema;
1493
+ }
1494
+
1495
+ /** @internal */
1496
+ export const CreatePrompt2File$inboundSchema: z.ZodType<
1497
+ CreatePrompt2File,
1498
+ z.ZodTypeDef,
1499
+ unknown
1500
+ > = z.object({
1501
+ file_data: z.string(),
1502
+ filename: z.string().optional(),
1503
+ }).transform((v) => {
1504
+ return remap$(v, {
1505
+ "file_data": "fileData",
1506
+ });
1507
+ });
1508
+
1509
+ /** @internal */
1510
+ export type CreatePrompt2File$Outbound = {
1511
+ file_data: string;
1512
+ filename?: string | undefined;
1513
+ };
1514
+
1515
+ /** @internal */
1516
+ export const CreatePrompt2File$outboundSchema: z.ZodType<
1517
+ CreatePrompt2File$Outbound,
1518
+ z.ZodTypeDef,
1519
+ CreatePrompt2File
1520
+ > = z.object({
1521
+ fileData: z.string(),
1522
+ filename: z.string().optional(),
1523
+ }).transform((v) => {
1524
+ return remap$(v, {
1525
+ fileData: "file_data",
1526
+ });
1527
+ });
1528
+
1529
+ /**
1530
+ * @internal
1531
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1532
+ */
1533
+ export namespace CreatePrompt2File$ {
1534
+ /** @deprecated use `CreatePrompt2File$inboundSchema` instead. */
1535
+ export const inboundSchema = CreatePrompt2File$inboundSchema;
1536
+ /** @deprecated use `CreatePrompt2File$outboundSchema` instead. */
1537
+ export const outboundSchema = CreatePrompt2File$outboundSchema;
1538
+ /** @deprecated use `CreatePrompt2File$Outbound` instead. */
1539
+ export type Outbound = CreatePrompt2File$Outbound;
1540
+ }
1541
+
1542
+ export function createPrompt2FileToJSON(
1543
+ createPrompt2File: CreatePrompt2File,
1544
+ ): string {
1545
+ return JSON.stringify(
1546
+ CreatePrompt2File$outboundSchema.parse(createPrompt2File),
1547
+ );
1548
+ }
1549
+
1550
+ export function createPrompt2FileFromJSON(
1551
+ jsonString: string,
1552
+ ): SafeParseResult<CreatePrompt2File, SDKValidationError> {
1553
+ return safeParse(
1554
+ jsonString,
1555
+ (x) => CreatePrompt2File$inboundSchema.parse(JSON.parse(x)),
1556
+ `Failed to parse 'CreatePrompt2File' from JSON`,
1557
+ );
1558
+ }
1559
+
1560
+ /** @internal */
1561
+ export const CreatePrompt23$inboundSchema: z.ZodType<
1562
+ CreatePrompt23,
1563
+ z.ZodTypeDef,
1564
+ unknown
1565
+ > = z.object({
1566
+ type: CreatePrompt2PromptsRequestType$inboundSchema,
1567
+ file: z.lazy(() => CreatePrompt2File$inboundSchema),
1568
+ });
1569
+
1570
+ /** @internal */
1571
+ export type CreatePrompt23$Outbound = {
1572
+ type: string;
1573
+ file: CreatePrompt2File$Outbound;
1574
+ };
1575
+
1576
+ /** @internal */
1577
+ export const CreatePrompt23$outboundSchema: z.ZodType<
1578
+ CreatePrompt23$Outbound,
1579
+ z.ZodTypeDef,
1580
+ CreatePrompt23
1581
+ > = z.object({
1582
+ type: CreatePrompt2PromptsRequestType$outboundSchema,
1583
+ file: z.lazy(() => CreatePrompt2File$outboundSchema),
1584
+ });
1585
+
1586
+ /**
1587
+ * @internal
1588
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1589
+ */
1590
+ export namespace CreatePrompt23$ {
1591
+ /** @deprecated use `CreatePrompt23$inboundSchema` instead. */
1592
+ export const inboundSchema = CreatePrompt23$inboundSchema;
1593
+ /** @deprecated use `CreatePrompt23$outboundSchema` instead. */
1594
+ export const outboundSchema = CreatePrompt23$outboundSchema;
1595
+ /** @deprecated use `CreatePrompt23$Outbound` instead. */
1596
+ export type Outbound = CreatePrompt23$Outbound;
1597
+ }
1598
+
1599
+ export function createPrompt23ToJSON(createPrompt23: CreatePrompt23): string {
1600
+ return JSON.stringify(CreatePrompt23$outboundSchema.parse(createPrompt23));
1601
+ }
1602
+
1603
+ export function createPrompt23FromJSON(
1604
+ jsonString: string,
1605
+ ): SafeParseResult<CreatePrompt23, SDKValidationError> {
1606
+ return safeParse(
1607
+ jsonString,
1608
+ (x) => CreatePrompt23$inboundSchema.parse(JSON.parse(x)),
1609
+ `Failed to parse 'CreatePrompt23' from JSON`,
1610
+ );
1611
+ }
1612
+
1400
1613
  /** @internal */
1401
1614
  export const CreatePrompt2PromptsType$inboundSchema: z.ZodNativeEnum<
1402
1615
  typeof CreatePrompt2PromptsType
@@ -1618,12 +1831,14 @@ export const CreatePromptContent2$inboundSchema: z.ZodType<
1618
1831
  > = z.union([
1619
1832
  z.lazy(() => CreatePrompt21$inboundSchema),
1620
1833
  z.lazy(() => CreatePrompt22$inboundSchema),
1834
+ z.lazy(() => CreatePrompt23$inboundSchema),
1621
1835
  ]);
1622
1836
 
1623
1837
  /** @internal */
1624
1838
  export type CreatePromptContent2$Outbound =
1625
1839
  | CreatePrompt21$Outbound
1626
- | CreatePrompt22$Outbound;
1840
+ | CreatePrompt22$Outbound
1841
+ | CreatePrompt23$Outbound;
1627
1842
 
1628
1843
  /** @internal */
1629
1844
  export const CreatePromptContent2$outboundSchema: z.ZodType<
@@ -1633,6 +1848,7 @@ export const CreatePromptContent2$outboundSchema: z.ZodType<
1633
1848
  > = z.union([
1634
1849
  z.lazy(() => CreatePrompt21$outboundSchema),
1635
1850
  z.lazy(() => CreatePrompt22$outboundSchema),
1851
+ z.lazy(() => CreatePrompt23$outboundSchema),
1636
1852
  ]);
1637
1853
 
1638
1854
  /**
@@ -1676,13 +1892,16 @@ export const CreatePromptContent$inboundSchema: z.ZodType<
1676
1892
  z.array(z.union([
1677
1893
  z.lazy(() => CreatePrompt21$inboundSchema),
1678
1894
  z.lazy(() => CreatePrompt22$inboundSchema),
1895
+ z.lazy(() => CreatePrompt23$inboundSchema),
1679
1896
  ])),
1680
1897
  ]);
1681
1898
 
1682
1899
  /** @internal */
1683
1900
  export type CreatePromptContent$Outbound =
1684
1901
  | string
1685
- | Array<CreatePrompt21$Outbound | CreatePrompt22$Outbound>;
1902
+ | Array<
1903
+ CreatePrompt21$Outbound | CreatePrompt22$Outbound | CreatePrompt23$Outbound
1904
+ >;
1686
1905
 
1687
1906
  /** @internal */
1688
1907
  export const CreatePromptContent$outboundSchema: z.ZodType<
@@ -1694,6 +1913,7 @@ export const CreatePromptContent$outboundSchema: z.ZodType<
1694
1913
  z.array(z.union([
1695
1914
  z.lazy(() => CreatePrompt21$outboundSchema),
1696
1915
  z.lazy(() => CreatePrompt22$outboundSchema),
1916
+ z.lazy(() => CreatePrompt23$outboundSchema),
1697
1917
  ])),
1698
1918
  ]);
1699
1919
 
@@ -1881,6 +2101,7 @@ export const CreatePromptMessages$inboundSchema: z.ZodType<
1881
2101
  z.array(z.union([
1882
2102
  z.lazy(() => CreatePrompt21$inboundSchema),
1883
2103
  z.lazy(() => CreatePrompt22$inboundSchema),
2104
+ z.lazy(() => CreatePrompt23$inboundSchema),
1884
2105
  ])),
1885
2106
  ]),
1886
2107
  tool_calls: z.array(z.lazy(() => CreatePromptToolCalls$inboundSchema))
@@ -1896,7 +2117,13 @@ export const CreatePromptMessages$inboundSchema: z.ZodType<
1896
2117
  /** @internal */
1897
2118
  export type CreatePromptMessages$Outbound = {
1898
2119
  role: string;
1899
- content: string | Array<CreatePrompt21$Outbound | CreatePrompt22$Outbound>;
2120
+ content:
2121
+ | string
2122
+ | Array<
2123
+ | CreatePrompt21$Outbound
2124
+ | CreatePrompt22$Outbound
2125
+ | CreatePrompt23$Outbound
2126
+ >;
1900
2127
  tool_calls?: Array<CreatePromptToolCalls$Outbound> | undefined;
1901
2128
  tool_call_id?: string | undefined;
1902
2129
  };
@@ -1913,6 +2140,7 @@ export const CreatePromptMessages$outboundSchema: z.ZodType<
1913
2140
  z.array(z.union([
1914
2141
  z.lazy(() => CreatePrompt21$outboundSchema),
1915
2142
  z.lazy(() => CreatePrompt22$outboundSchema),
2143
+ z.lazy(() => CreatePrompt23$outboundSchema),
1916
2144
  ])),
1917
2145
  ]),
1918
2146
  toolCalls: z.array(z.lazy(() => CreatePromptToolCalls$outboundSchema))
@@ -2798,6 +3026,151 @@ export namespace CreatePromptPromptsRole$ {
2798
3026
  export const outboundSchema = CreatePromptPromptsRole$outboundSchema;
2799
3027
  }
2800
3028
 
3029
+ /** @internal */
3030
+ export const CreatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema:
3031
+ z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200ApplicationJSONType> = z
3032
+ .nativeEnum(CreatePrompt2PromptsResponse200ApplicationJSONType);
3033
+
3034
+ /** @internal */
3035
+ export const CreatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema:
3036
+ z.ZodNativeEnum<typeof CreatePrompt2PromptsResponse200ApplicationJSONType> =
3037
+ CreatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema;
3038
+
3039
+ /**
3040
+ * @internal
3041
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3042
+ */
3043
+ export namespace CreatePrompt2PromptsResponse200ApplicationJSONType$ {
3044
+ /** @deprecated use `CreatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema` instead. */
3045
+ export const inboundSchema =
3046
+ CreatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema;
3047
+ /** @deprecated use `CreatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema` instead. */
3048
+ export const outboundSchema =
3049
+ CreatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema;
3050
+ }
3051
+
3052
+ /** @internal */
3053
+ export const CreatePrompt2PromptsFile$inboundSchema: z.ZodType<
3054
+ CreatePrompt2PromptsFile,
3055
+ z.ZodTypeDef,
3056
+ unknown
3057
+ > = z.object({
3058
+ file_data: z.string(),
3059
+ filename: z.string().optional(),
3060
+ }).transform((v) => {
3061
+ return remap$(v, {
3062
+ "file_data": "fileData",
3063
+ });
3064
+ });
3065
+
3066
+ /** @internal */
3067
+ export type CreatePrompt2PromptsFile$Outbound = {
3068
+ file_data: string;
3069
+ filename?: string | undefined;
3070
+ };
3071
+
3072
+ /** @internal */
3073
+ export const CreatePrompt2PromptsFile$outboundSchema: z.ZodType<
3074
+ CreatePrompt2PromptsFile$Outbound,
3075
+ z.ZodTypeDef,
3076
+ CreatePrompt2PromptsFile
3077
+ > = z.object({
3078
+ fileData: z.string(),
3079
+ filename: z.string().optional(),
3080
+ }).transform((v) => {
3081
+ return remap$(v, {
3082
+ fileData: "file_data",
3083
+ });
3084
+ });
3085
+
3086
+ /**
3087
+ * @internal
3088
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3089
+ */
3090
+ export namespace CreatePrompt2PromptsFile$ {
3091
+ /** @deprecated use `CreatePrompt2PromptsFile$inboundSchema` instead. */
3092
+ export const inboundSchema = CreatePrompt2PromptsFile$inboundSchema;
3093
+ /** @deprecated use `CreatePrompt2PromptsFile$outboundSchema` instead. */
3094
+ export const outboundSchema = CreatePrompt2PromptsFile$outboundSchema;
3095
+ /** @deprecated use `CreatePrompt2PromptsFile$Outbound` instead. */
3096
+ export type Outbound = CreatePrompt2PromptsFile$Outbound;
3097
+ }
3098
+
3099
+ export function createPrompt2PromptsFileToJSON(
3100
+ createPrompt2PromptsFile: CreatePrompt2PromptsFile,
3101
+ ): string {
3102
+ return JSON.stringify(
3103
+ CreatePrompt2PromptsFile$outboundSchema.parse(createPrompt2PromptsFile),
3104
+ );
3105
+ }
3106
+
3107
+ export function createPrompt2PromptsFileFromJSON(
3108
+ jsonString: string,
3109
+ ): SafeParseResult<CreatePrompt2PromptsFile, SDKValidationError> {
3110
+ return safeParse(
3111
+ jsonString,
3112
+ (x) => CreatePrompt2PromptsFile$inboundSchema.parse(JSON.parse(x)),
3113
+ `Failed to parse 'CreatePrompt2PromptsFile' from JSON`,
3114
+ );
3115
+ }
3116
+
3117
+ /** @internal */
3118
+ export const CreatePrompt2Prompts3$inboundSchema: z.ZodType<
3119
+ CreatePrompt2Prompts3,
3120
+ z.ZodTypeDef,
3121
+ unknown
3122
+ > = z.object({
3123
+ type: CreatePrompt2PromptsResponse200ApplicationJSONType$inboundSchema,
3124
+ file: z.lazy(() => CreatePrompt2PromptsFile$inboundSchema),
3125
+ });
3126
+
3127
+ /** @internal */
3128
+ export type CreatePrompt2Prompts3$Outbound = {
3129
+ type: string;
3130
+ file: CreatePrompt2PromptsFile$Outbound;
3131
+ };
3132
+
3133
+ /** @internal */
3134
+ export const CreatePrompt2Prompts3$outboundSchema: z.ZodType<
3135
+ CreatePrompt2Prompts3$Outbound,
3136
+ z.ZodTypeDef,
3137
+ CreatePrompt2Prompts3
3138
+ > = z.object({
3139
+ type: CreatePrompt2PromptsResponse200ApplicationJSONType$outboundSchema,
3140
+ file: z.lazy(() => CreatePrompt2PromptsFile$outboundSchema),
3141
+ });
3142
+
3143
+ /**
3144
+ * @internal
3145
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3146
+ */
3147
+ export namespace CreatePrompt2Prompts3$ {
3148
+ /** @deprecated use `CreatePrompt2Prompts3$inboundSchema` instead. */
3149
+ export const inboundSchema = CreatePrompt2Prompts3$inboundSchema;
3150
+ /** @deprecated use `CreatePrompt2Prompts3$outboundSchema` instead. */
3151
+ export const outboundSchema = CreatePrompt2Prompts3$outboundSchema;
3152
+ /** @deprecated use `CreatePrompt2Prompts3$Outbound` instead. */
3153
+ export type Outbound = CreatePrompt2Prompts3$Outbound;
3154
+ }
3155
+
3156
+ export function createPrompt2Prompts3ToJSON(
3157
+ createPrompt2Prompts3: CreatePrompt2Prompts3,
3158
+ ): string {
3159
+ return JSON.stringify(
3160
+ CreatePrompt2Prompts3$outboundSchema.parse(createPrompt2Prompts3),
3161
+ );
3162
+ }
3163
+
3164
+ export function createPrompt2Prompts3FromJSON(
3165
+ jsonString: string,
3166
+ ): SafeParseResult<CreatePrompt2Prompts3, SDKValidationError> {
3167
+ return safeParse(
3168
+ jsonString,
3169
+ (x) => CreatePrompt2Prompts3$inboundSchema.parse(JSON.parse(x)),
3170
+ `Failed to parse 'CreatePrompt2Prompts3' from JSON`,
3171
+ );
3172
+ }
3173
+
2801
3174
  /** @internal */
2802
3175
  export const CreatePrompt2PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
2803
3176
  typeof CreatePrompt2PromptsResponse200Type
@@ -3034,12 +3407,14 @@ export const CreatePromptContentPrompts2$inboundSchema: z.ZodType<
3034
3407
  > = z.union([
3035
3408
  z.lazy(() => CreatePrompt2Prompts1$inboundSchema),
3036
3409
  z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
3410
+ z.lazy(() => CreatePrompt2Prompts3$inboundSchema),
3037
3411
  ]);
3038
3412
 
3039
3413
  /** @internal */
3040
3414
  export type CreatePromptContentPrompts2$Outbound =
3041
3415
  | CreatePrompt2Prompts1$Outbound
3042
- | CreatePrompt2Prompts2$Outbound;
3416
+ | CreatePrompt2Prompts2$Outbound
3417
+ | CreatePrompt2Prompts3$Outbound;
3043
3418
 
3044
3419
  /** @internal */
3045
3420
  export const CreatePromptContentPrompts2$outboundSchema: z.ZodType<
@@ -3049,6 +3424,7 @@ export const CreatePromptContentPrompts2$outboundSchema: z.ZodType<
3049
3424
  > = z.union([
3050
3425
  z.lazy(() => CreatePrompt2Prompts1$outboundSchema),
3051
3426
  z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
3427
+ z.lazy(() => CreatePrompt2Prompts3$outboundSchema),
3052
3428
  ]);
3053
3429
 
3054
3430
  /**
@@ -3094,13 +3470,18 @@ export const CreatePromptPromptsContent$inboundSchema: z.ZodType<
3094
3470
  z.array(z.union([
3095
3471
  z.lazy(() => CreatePrompt2Prompts1$inboundSchema),
3096
3472
  z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
3473
+ z.lazy(() => CreatePrompt2Prompts3$inboundSchema),
3097
3474
  ])),
3098
3475
  ]);
3099
3476
 
3100
3477
  /** @internal */
3101
3478
  export type CreatePromptPromptsContent$Outbound =
3102
3479
  | string
3103
- | Array<CreatePrompt2Prompts1$Outbound | CreatePrompt2Prompts2$Outbound>;
3480
+ | Array<
3481
+ | CreatePrompt2Prompts1$Outbound
3482
+ | CreatePrompt2Prompts2$Outbound
3483
+ | CreatePrompt2Prompts3$Outbound
3484
+ >;
3104
3485
 
3105
3486
  /** @internal */
3106
3487
  export const CreatePromptPromptsContent$outboundSchema: z.ZodType<
@@ -3112,6 +3493,7 @@ export const CreatePromptPromptsContent$outboundSchema: z.ZodType<
3112
3493
  z.array(z.union([
3113
3494
  z.lazy(() => CreatePrompt2Prompts1$outboundSchema),
3114
3495
  z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
3496
+ z.lazy(() => CreatePrompt2Prompts3$outboundSchema),
3115
3497
  ])),
3116
3498
  ]);
3117
3499
 
@@ -3303,6 +3685,7 @@ export const CreatePromptPromptsMessages$inboundSchema: z.ZodType<
3303
3685
  z.array(z.union([
3304
3686
  z.lazy(() => CreatePrompt2Prompts1$inboundSchema),
3305
3687
  z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
3688
+ z.lazy(() => CreatePrompt2Prompts3$inboundSchema),
3306
3689
  ])),
3307
3690
  ]),
3308
3691
  tool_calls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$inboundSchema))
@@ -3320,7 +3703,11 @@ export type CreatePromptPromptsMessages$Outbound = {
3320
3703
  role: string;
3321
3704
  content:
3322
3705
  | string
3323
- | Array<CreatePrompt2Prompts1$Outbound | CreatePrompt2Prompts2$Outbound>;
3706
+ | Array<
3707
+ | CreatePrompt2Prompts1$Outbound
3708
+ | CreatePrompt2Prompts2$Outbound
3709
+ | CreatePrompt2Prompts3$Outbound
3710
+ >;
3324
3711
  tool_calls?: Array<CreatePromptPromptsToolCalls$Outbound> | undefined;
3325
3712
  tool_call_id?: string | undefined;
3326
3713
  };
@@ -3337,6 +3724,7 @@ export const CreatePromptPromptsMessages$outboundSchema: z.ZodType<
3337
3724
  z.array(z.union([
3338
3725
  z.lazy(() => CreatePrompt2Prompts1$outboundSchema),
3339
3726
  z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
3727
+ z.lazy(() => CreatePrompt2Prompts3$outboundSchema),
3340
3728
  ])),
3341
3729
  ]),
3342
3730
  toolCalls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$outboundSchema))