@orq-ai/node 3.2.0-rc.33 → 3.2.0-rc.35

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 (42) hide show
  1. package/bin/mcp-server.js +76 -43
  2. package/bin/mcp-server.js.map +19 -19
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  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/deploymentcreatemetric.d.ts +82 -10
  13. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  14. package/models/operations/deploymentcreatemetric.js +79 -19
  15. package/models/operations/deploymentcreatemetric.js.map +1 -1
  16. package/models/operations/fileget.js +2 -2
  17. package/models/operations/filelist.js +2 -2
  18. package/models/operations/fileupload.js +2 -2
  19. package/models/operations/listdatasetdatapoints.js +2 -2
  20. package/models/operations/listdatasets.js +2 -2
  21. package/models/operations/retrievedatapoint.js +2 -2
  22. package/models/operations/retrievedataset.js +2 -2
  23. package/models/operations/updatedatapoint.js +2 -2
  24. package/models/operations/updatedataset.js +2 -2
  25. package/package.json +1 -1
  26. package/src/lib/config.ts +2 -2
  27. package/src/mcp-server/mcp-server.ts +1 -1
  28. package/src/mcp-server/server.ts +1 -1
  29. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  30. package/src/models/operations/createcontact.ts +2 -2
  31. package/src/models/operations/createdataset.ts +2 -2
  32. package/src/models/operations/createdatasetitem.ts +2 -2
  33. package/src/models/operations/deploymentcreatemetric.ts +122 -22
  34. package/src/models/operations/fileget.ts +2 -2
  35. package/src/models/operations/filelist.ts +2 -2
  36. package/src/models/operations/fileupload.ts +2 -2
  37. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  38. package/src/models/operations/listdatasets.ts +2 -2
  39. package/src/models/operations/retrievedatapoint.ts +2 -2
  40. package/src/models/operations/retrievedataset.ts +2 -2
  41. package/src/models/operations/updatedatapoint.ts +2 -2
  42. package/src/models/operations/updatedataset.ts +2 -2
@@ -168,7 +168,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
168
168
  version: z.string().optional(),
169
169
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
170
170
  .optional(),
171
- updated: z.string().datetime({ offset: true }).default("2025-03-10T11:10:33.958Z").transform(v => new Date(v)),
171
+ updated: z.string().datetime({ offset: true }).default("2025-03-10T14:17:45.434Z").transform(v => new Date(v)),
172
172
  }).transform((v) => {
173
173
  return (0, primitives_js_1.remap)(v, {
174
174
  "_id": "id",
@@ -192,7 +192,7 @@ exports.UpdateDatasetResponseBody$outboundSchema = z.object({
192
192
  parentId: z.string().optional(),
193
193
  version: z.string().optional(),
194
194
  created: z.date().transform(v => v.toISOString()).optional(),
195
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
195
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
196
196
  .transform(v => v.toISOString()),
197
197
  }).transform((v) => {
198
198
  return (0, primitives_js_1.remap)(v, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "3.2.0-rc.33",
3
+ "version": "3.2.0-rc.35",
4
4
  "author": "Orq",
5
5
  "bin": {
6
6
  "mcp": "bin/mcp-server.js"
package/src/lib/config.ts CHANGED
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
64
64
  export const SDK_METADATA = {
65
65
  language: "typescript",
66
66
  openapiDocVersion: "2.0",
67
- sdkVersion: "3.2.0-rc.33",
67
+ sdkVersion: "3.2.0-rc.35",
68
68
  genVersion: "2.545.4",
69
- userAgent: "speakeasy-sdk/typescript 3.2.0-rc.33 2.545.4 2.0 @orq-ai/node",
69
+ userAgent: "speakeasy-sdk/typescript 3.2.0-rc.35 2.545.4 2.0 @orq-ai/node",
70
70
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "3.2.0-rc.33",
22
+ currentVersion: "3.2.0-rc.35",
23
23
  },
24
24
  });
25
25
 
@@ -55,7 +55,7 @@ export function createMCPServer(deps: {
55
55
  }) {
56
56
  const server = new McpServer({
57
57
  name: "Orq",
58
- version: "3.2.0-rc.33",
58
+ version: "3.2.0-rc.35",
59
59
  });
60
60
 
61
61
  const client = new OrqCore({
@@ -1731,7 +1731,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
1731
1731
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1732
1732
  .optional(),
1733
1733
  updated: z.string().datetime({ offset: true }).default(
1734
- "2025-03-10T11:10:33.958Z",
1734
+ "2025-03-10T14:17:45.434Z",
1735
1735
  ).transform(v => new Date(v)),
1736
1736
  }).transform((v) => {
1737
1737
  return remap$(v, {
@@ -1775,7 +1775,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
1775
1775
  createdById: z.string().optional(),
1776
1776
  updatedById: z.string().optional(),
1777
1777
  created: z.date().transform(v => v.toISOString()).optional(),
1778
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
1778
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
1779
1779
  .transform(v => v.toISOString()),
1780
1780
  }).transform((v) => {
1781
1781
  return remap$(v, {
@@ -177,7 +177,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
177
177
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
178
178
  .optional(),
179
179
  updated: z.string().datetime({ offset: true }).default(
180
- "2025-03-10T11:10:33.958Z",
180
+ "2025-03-10T14:17:45.434Z",
181
181
  ).transform(v => new Date(v)),
182
182
  }).transform((v) => {
183
183
  return remap$(v, {
@@ -214,7 +214,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
214
214
  tags: z.array(z.string()).optional(),
215
215
  metadata: z.record(z.any()).optional(),
216
216
  created: z.date().transform(v => v.toISOString()).optional(),
217
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
217
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
218
218
  .transform(v => v.toISOString()),
219
219
  }).transform((v) => {
220
220
  return remap$(v, {
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
211
211
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
212
212
  .optional(),
213
213
  updated: z.string().datetime({ offset: true }).default(
214
- "2025-03-10T11:10:33.958Z",
214
+ "2025-03-10T14:17:45.434Z",
215
215
  ).transform(v => new Date(v)),
216
216
  }).transform((v) => {
217
217
  return remap$(v, {
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
251
251
  updatedById: z.string().optional(),
252
252
  metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
253
253
  created: z.date().transform(v => v.toISOString()).optional(),
254
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
254
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
255
255
  .transform(v => v.toISOString()),
256
256
  }).transform((v) => {
257
257
  return remap$(v, {
@@ -1649,7 +1649,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
1649
1649
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1650
1650
  .optional(),
1651
1651
  updated: z.string().datetime({ offset: true }).default(
1652
- "2025-03-10T11:10:33.958Z",
1652
+ "2025-03-10T14:17:45.434Z",
1653
1653
  ).transform(v => new Date(v)),
1654
1654
  }).transform((v) => {
1655
1655
  return remap$(v, {
@@ -1693,7 +1693,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
1693
1693
  createdById: z.string().optional(),
1694
1694
  updatedById: z.string().optional(),
1695
1695
  created: z.date().transform(v => v.toISOString()).optional(),
1696
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
1696
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
1697
1697
  .transform(v => v.toISOString()),
1698
1698
  }).transform((v) => {
1699
1699
  return remap$(v, {
@@ -435,6 +435,12 @@ export type DeploymentCreateMetricMessages =
435
435
  | DeploymentCreateMetricMessagesToolMessage
436
436
  | DeploymentCreateMetricMessagesAssistantMessage;
437
437
 
438
+ export const DeploymentCreateMetricMessageDeploymentsMetricsRequestType = {
439
+ Image: "image",
440
+ } as const;
441
+ export type DeploymentCreateMetricMessageDeploymentsMetricsRequestType =
442
+ ClosedEnum<typeof DeploymentCreateMetricMessageDeploymentsMetricsRequestType>;
443
+
438
444
  /**
439
445
  * The role of the prompt message
440
446
  */
@@ -456,6 +462,7 @@ export type DeploymentCreateMetricMessageDeploymentsMetricsRole = ClosedEnum<
456
462
  >;
457
463
 
458
464
  export type Message3 = {
465
+ type: DeploymentCreateMetricMessageDeploymentsMetricsRequestType;
459
466
  /**
460
467
  * The role of the prompt message
461
468
  */
@@ -463,6 +470,13 @@ export type Message3 = {
463
470
  url: string;
464
471
  };
465
472
 
473
+ export const DeploymentCreateMetricMessageDeploymentsMetricsType = {
474
+ Content: "content",
475
+ } as const;
476
+ export type DeploymentCreateMetricMessageDeploymentsMetricsType = ClosedEnum<
477
+ typeof DeploymentCreateMetricMessageDeploymentsMetricsType
478
+ >;
479
+
466
480
  /**
467
481
  * The role of the prompt message
468
482
  */
@@ -484,6 +498,7 @@ export type DeploymentCreateMetricMessageRole = ClosedEnum<
484
498
  >;
485
499
 
486
500
  export type Message2 = {
501
+ type: DeploymentCreateMetricMessageDeploymentsMetricsType;
487
502
  /**
488
503
  * The role of the prompt message
489
504
  */
@@ -491,6 +506,11 @@ export type Message2 = {
491
506
  content: string | null;
492
507
  };
493
508
 
509
+ export const MessageType = {
510
+ ToolCalls: "tool_calls",
511
+ } as const;
512
+ export type MessageType = ClosedEnum<typeof MessageType>;
513
+
494
514
  /**
495
515
  * The role of the prompt message
496
516
  */
@@ -509,10 +529,12 @@ export const MessageRole = {
509
529
  */
510
530
  export type MessageRole = ClosedEnum<typeof MessageRole>;
511
531
 
512
- export const MessageType = {
532
+ export const DeploymentCreateMetricMessageType = {
513
533
  Function: "function",
514
534
  } as const;
515
- export type MessageType = ClosedEnum<typeof MessageType>;
535
+ export type DeploymentCreateMetricMessageType = ClosedEnum<
536
+ typeof DeploymentCreateMetricMessageType
537
+ >;
516
538
 
517
539
  export type MessageFunction = {
518
540
  name: string;
@@ -525,11 +547,12 @@ export type MessageFunction = {
525
547
  export type MessageToolCalls = {
526
548
  id?: string | undefined;
527
549
  index?: number | undefined;
528
- type: MessageType;
550
+ type: DeploymentCreateMetricMessageType;
529
551
  function: MessageFunction;
530
552
  };
531
553
 
532
554
  export type Message1 = {
555
+ type: MessageType;
533
556
  /**
534
557
  * The role of the prompt message
535
558
  */
@@ -542,7 +565,7 @@ export type Message = Message2 | Message3 | Message1;
542
565
 
543
566
  export type Choices = {
544
567
  index: number;
545
- message?: Message2 | Message3 | Message1 | undefined;
568
+ message: Message2 | Message3 | Message1;
546
569
  finishReason?: string | null | undefined;
547
570
  };
548
571
 
@@ -2542,6 +2565,31 @@ export function deploymentCreateMetricMessagesFromJSON(
2542
2565
  );
2543
2566
  }
2544
2567
 
2568
+ /** @internal */
2569
+ export const DeploymentCreateMetricMessageDeploymentsMetricsRequestType$inboundSchema:
2570
+ z.ZodNativeEnum<
2571
+ typeof DeploymentCreateMetricMessageDeploymentsMetricsRequestType
2572
+ > = z.nativeEnum(DeploymentCreateMetricMessageDeploymentsMetricsRequestType);
2573
+
2574
+ /** @internal */
2575
+ export const DeploymentCreateMetricMessageDeploymentsMetricsRequestType$outboundSchema:
2576
+ z.ZodNativeEnum<
2577
+ typeof DeploymentCreateMetricMessageDeploymentsMetricsRequestType
2578
+ > = DeploymentCreateMetricMessageDeploymentsMetricsRequestType$inboundSchema;
2579
+
2580
+ /**
2581
+ * @internal
2582
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2583
+ */
2584
+ export namespace DeploymentCreateMetricMessageDeploymentsMetricsRequestType$ {
2585
+ /** @deprecated use `DeploymentCreateMetricMessageDeploymentsMetricsRequestType$inboundSchema` instead. */
2586
+ export const inboundSchema =
2587
+ DeploymentCreateMetricMessageDeploymentsMetricsRequestType$inboundSchema;
2588
+ /** @deprecated use `DeploymentCreateMetricMessageDeploymentsMetricsRequestType$outboundSchema` instead. */
2589
+ export const outboundSchema =
2590
+ DeploymentCreateMetricMessageDeploymentsMetricsRequestType$outboundSchema;
2591
+ }
2592
+
2545
2593
  /** @internal */
2546
2594
  export const DeploymentCreateMetricMessageDeploymentsMetricsRole$inboundSchema:
2547
2595
  z.ZodNativeEnum<typeof DeploymentCreateMetricMessageDeploymentsMetricsRole> =
@@ -2571,12 +2619,15 @@ export const Message3$inboundSchema: z.ZodType<
2571
2619
  z.ZodTypeDef,
2572
2620
  unknown
2573
2621
  > = z.object({
2622
+ type:
2623
+ DeploymentCreateMetricMessageDeploymentsMetricsRequestType$inboundSchema,
2574
2624
  role: DeploymentCreateMetricMessageDeploymentsMetricsRole$inboundSchema,
2575
2625
  url: z.string(),
2576
2626
  });
2577
2627
 
2578
2628
  /** @internal */
2579
2629
  export type Message3$Outbound = {
2630
+ type: string;
2580
2631
  role: string;
2581
2632
  url: string;
2582
2633
  };
@@ -2587,6 +2638,8 @@ export const Message3$outboundSchema: z.ZodType<
2587
2638
  z.ZodTypeDef,
2588
2639
  Message3
2589
2640
  > = z.object({
2641
+ type:
2642
+ DeploymentCreateMetricMessageDeploymentsMetricsRequestType$outboundSchema,
2590
2643
  role: DeploymentCreateMetricMessageDeploymentsMetricsRole$outboundSchema,
2591
2644
  url: z.string(),
2592
2645
  });
@@ -2618,6 +2671,29 @@ export function message3FromJSON(
2618
2671
  );
2619
2672
  }
2620
2673
 
2674
+ /** @internal */
2675
+ export const DeploymentCreateMetricMessageDeploymentsMetricsType$inboundSchema:
2676
+ z.ZodNativeEnum<typeof DeploymentCreateMetricMessageDeploymentsMetricsType> =
2677
+ z.nativeEnum(DeploymentCreateMetricMessageDeploymentsMetricsType);
2678
+
2679
+ /** @internal */
2680
+ export const DeploymentCreateMetricMessageDeploymentsMetricsType$outboundSchema:
2681
+ z.ZodNativeEnum<typeof DeploymentCreateMetricMessageDeploymentsMetricsType> =
2682
+ DeploymentCreateMetricMessageDeploymentsMetricsType$inboundSchema;
2683
+
2684
+ /**
2685
+ * @internal
2686
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2687
+ */
2688
+ export namespace DeploymentCreateMetricMessageDeploymentsMetricsType$ {
2689
+ /** @deprecated use `DeploymentCreateMetricMessageDeploymentsMetricsType$inboundSchema` instead. */
2690
+ export const inboundSchema =
2691
+ DeploymentCreateMetricMessageDeploymentsMetricsType$inboundSchema;
2692
+ /** @deprecated use `DeploymentCreateMetricMessageDeploymentsMetricsType$outboundSchema` instead. */
2693
+ export const outboundSchema =
2694
+ DeploymentCreateMetricMessageDeploymentsMetricsType$outboundSchema;
2695
+ }
2696
+
2621
2697
  /** @internal */
2622
2698
  export const DeploymentCreateMetricMessageRole$inboundSchema: z.ZodNativeEnum<
2623
2699
  typeof DeploymentCreateMetricMessageRole
@@ -2646,12 +2722,14 @@ export const Message2$inboundSchema: z.ZodType<
2646
2722
  z.ZodTypeDef,
2647
2723
  unknown
2648
2724
  > = z.object({
2725
+ type: DeploymentCreateMetricMessageDeploymentsMetricsType$inboundSchema,
2649
2726
  role: DeploymentCreateMetricMessageRole$inboundSchema,
2650
2727
  content: z.nullable(z.string()),
2651
2728
  });
2652
2729
 
2653
2730
  /** @internal */
2654
2731
  export type Message2$Outbound = {
2732
+ type: string;
2655
2733
  role: string;
2656
2734
  content: string | null;
2657
2735
  };
@@ -2662,6 +2740,7 @@ export const Message2$outboundSchema: z.ZodType<
2662
2740
  z.ZodTypeDef,
2663
2741
  Message2
2664
2742
  > = z.object({
2743
+ type: DeploymentCreateMetricMessageDeploymentsMetricsType$outboundSchema,
2665
2744
  role: DeploymentCreateMetricMessageRole$outboundSchema,
2666
2745
  content: z.nullable(z.string()),
2667
2746
  });
@@ -2693,6 +2772,25 @@ export function message2FromJSON(
2693
2772
  );
2694
2773
  }
2695
2774
 
2775
+ /** @internal */
2776
+ export const MessageType$inboundSchema: z.ZodNativeEnum<typeof MessageType> = z
2777
+ .nativeEnum(MessageType);
2778
+
2779
+ /** @internal */
2780
+ export const MessageType$outboundSchema: z.ZodNativeEnum<typeof MessageType> =
2781
+ MessageType$inboundSchema;
2782
+
2783
+ /**
2784
+ * @internal
2785
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2786
+ */
2787
+ export namespace MessageType$ {
2788
+ /** @deprecated use `MessageType$inboundSchema` instead. */
2789
+ export const inboundSchema = MessageType$inboundSchema;
2790
+ /** @deprecated use `MessageType$outboundSchema` instead. */
2791
+ export const outboundSchema = MessageType$outboundSchema;
2792
+ }
2793
+
2696
2794
  /** @internal */
2697
2795
  export const MessageRole$inboundSchema: z.ZodNativeEnum<typeof MessageRole> = z
2698
2796
  .nativeEnum(MessageRole);
@@ -2713,22 +2811,25 @@ export namespace MessageRole$ {
2713
2811
  }
2714
2812
 
2715
2813
  /** @internal */
2716
- export const MessageType$inboundSchema: z.ZodNativeEnum<typeof MessageType> = z
2717
- .nativeEnum(MessageType);
2814
+ export const DeploymentCreateMetricMessageType$inboundSchema: z.ZodNativeEnum<
2815
+ typeof DeploymentCreateMetricMessageType
2816
+ > = z.nativeEnum(DeploymentCreateMetricMessageType);
2718
2817
 
2719
2818
  /** @internal */
2720
- export const MessageType$outboundSchema: z.ZodNativeEnum<typeof MessageType> =
2721
- MessageType$inboundSchema;
2819
+ export const DeploymentCreateMetricMessageType$outboundSchema: z.ZodNativeEnum<
2820
+ typeof DeploymentCreateMetricMessageType
2821
+ > = DeploymentCreateMetricMessageType$inboundSchema;
2722
2822
 
2723
2823
  /**
2724
2824
  * @internal
2725
2825
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2726
2826
  */
2727
- export namespace MessageType$ {
2728
- /** @deprecated use `MessageType$inboundSchema` instead. */
2729
- export const inboundSchema = MessageType$inboundSchema;
2730
- /** @deprecated use `MessageType$outboundSchema` instead. */
2731
- export const outboundSchema = MessageType$outboundSchema;
2827
+ export namespace DeploymentCreateMetricMessageType$ {
2828
+ /** @deprecated use `DeploymentCreateMetricMessageType$inboundSchema` instead. */
2829
+ export const inboundSchema = DeploymentCreateMetricMessageType$inboundSchema;
2830
+ /** @deprecated use `DeploymentCreateMetricMessageType$outboundSchema` instead. */
2831
+ export const outboundSchema =
2832
+ DeploymentCreateMetricMessageType$outboundSchema;
2732
2833
  }
2733
2834
 
2734
2835
  /** @internal */
@@ -2794,7 +2895,7 @@ export const MessageToolCalls$inboundSchema: z.ZodType<
2794
2895
  > = z.object({
2795
2896
  id: z.string().optional(),
2796
2897
  index: z.number().optional(),
2797
- type: MessageType$inboundSchema,
2898
+ type: DeploymentCreateMetricMessageType$inboundSchema,
2798
2899
  function: z.lazy(() => MessageFunction$inboundSchema),
2799
2900
  });
2800
2901
 
@@ -2814,7 +2915,7 @@ export const MessageToolCalls$outboundSchema: z.ZodType<
2814
2915
  > = z.object({
2815
2916
  id: z.string().optional(),
2816
2917
  index: z.number().optional(),
2817
- type: MessageType$outboundSchema,
2918
+ type: DeploymentCreateMetricMessageType$outboundSchema,
2818
2919
  function: z.lazy(() => MessageFunction$outboundSchema),
2819
2920
  });
2820
2921
 
@@ -2855,6 +2956,7 @@ export const Message1$inboundSchema: z.ZodType<
2855
2956
  z.ZodTypeDef,
2856
2957
  unknown
2857
2958
  > = z.object({
2959
+ type: MessageType$inboundSchema,
2858
2960
  role: MessageRole$inboundSchema,
2859
2961
  content: z.nullable(z.string()).optional(),
2860
2962
  tool_calls: z.array(z.lazy(() => MessageToolCalls$inboundSchema)),
@@ -2866,6 +2968,7 @@ export const Message1$inboundSchema: z.ZodType<
2866
2968
 
2867
2969
  /** @internal */
2868
2970
  export type Message1$Outbound = {
2971
+ type: string;
2869
2972
  role: string;
2870
2973
  content?: string | null | undefined;
2871
2974
  tool_calls: Array<MessageToolCalls$Outbound>;
@@ -2877,6 +2980,7 @@ export const Message1$outboundSchema: z.ZodType<
2877
2980
  z.ZodTypeDef,
2878
2981
  Message1
2879
2982
  > = z.object({
2983
+ type: MessageType$outboundSchema,
2880
2984
  role: MessageRole$outboundSchema,
2881
2985
  content: z.nullable(z.string()).optional(),
2882
2986
  toolCalls: z.array(z.lazy(() => MessageToolCalls$outboundSchema)),
@@ -2973,7 +3077,7 @@ export const Choices$inboundSchema: z.ZodType<Choices, z.ZodTypeDef, unknown> =
2973
3077
  z.lazy(() => Message2$inboundSchema),
2974
3078
  z.lazy(() => Message3$inboundSchema),
2975
3079
  z.lazy(() => Message1$inboundSchema),
2976
- ]).optional(),
3080
+ ]),
2977
3081
  finish_reason: z.nullable(z.string()).optional(),
2978
3082
  }).transform((v) => {
2979
3083
  return remap$(v, {
@@ -2984,11 +3088,7 @@ export const Choices$inboundSchema: z.ZodType<Choices, z.ZodTypeDef, unknown> =
2984
3088
  /** @internal */
2985
3089
  export type Choices$Outbound = {
2986
3090
  index: number;
2987
- message?:
2988
- | Message2$Outbound
2989
- | Message3$Outbound
2990
- | Message1$Outbound
2991
- | undefined;
3091
+ message: Message2$Outbound | Message3$Outbound | Message1$Outbound;
2992
3092
  finish_reason?: string | null | undefined;
2993
3093
  };
2994
3094
 
@@ -3003,7 +3103,7 @@ export const Choices$outboundSchema: z.ZodType<
3003
3103
  z.lazy(() => Message2$outboundSchema),
3004
3104
  z.lazy(() => Message3$outboundSchema),
3005
3105
  z.lazy(() => Message1$outboundSchema),
3006
- ]).optional(),
3106
+ ]),
3007
3107
  finishReason: z.nullable(z.string()).optional(),
3008
3108
  }).transform((v) => {
3009
3109
  return remap$(v, {
@@ -146,7 +146,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
146
146
  file_name: z.string(),
147
147
  workspace_id: z.string(),
148
148
  created: z.string().datetime({ offset: true }).default(
149
- "2025-03-10T11:10:35.067Z",
149
+ "2025-03-10T14:17:46.578Z",
150
150
  ).transform(v => new Date(v)),
151
151
  }).transform((v) => {
152
152
  return remap$(v, {
@@ -180,7 +180,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
180
180
  bytes: z.number(),
181
181
  fileName: z.string(),
182
182
  workspaceId: z.string(),
183
- created: z.date().default(() => new Date("2025-03-10T11:10:35.067Z"))
183
+ created: z.date().default(() => new Date("2025-03-10T14:17:46.578Z"))
184
184
  .transform(v => v.toISOString()),
185
185
  }).transform((v) => {
186
186
  return remap$(v, {
@@ -236,7 +236,7 @@ export const FileListData$inboundSchema: z.ZodType<
236
236
  file_name: z.string(),
237
237
  workspace_id: z.string(),
238
238
  created: z.string().datetime({ offset: true }).default(
239
- "2025-03-10T11:10:35.067Z",
239
+ "2025-03-10T14:17:46.578Z",
240
240
  ).transform(v => new Date(v)),
241
241
  }).transform((v) => {
242
242
  return remap$(v, {
@@ -270,7 +270,7 @@ export const FileListData$outboundSchema: z.ZodType<
270
270
  bytes: z.number(),
271
271
  fileName: z.string(),
272
272
  workspaceId: z.string(),
273
- created: z.date().default(() => new Date("2025-03-10T11:10:35.067Z"))
273
+ created: z.date().default(() => new Date("2025-03-10T14:17:46.578Z"))
274
274
  .transform(v => v.toISOString()),
275
275
  }).transform((v) => {
276
276
  return remap$(v, {
@@ -247,7 +247,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
247
247
  file_name: z.string(),
248
248
  workspace_id: z.string(),
249
249
  created: z.string().datetime({ offset: true }).default(
250
- "2025-03-10T11:10:35.067Z",
250
+ "2025-03-10T14:17:46.578Z",
251
251
  ).transform(v => new Date(v)),
252
252
  }).transform((v) => {
253
253
  return remap$(v, {
@@ -281,7 +281,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
281
281
  bytes: z.number(),
282
282
  fileName: z.string(),
283
283
  workspaceId: z.string(),
284
- created: z.date().default(() => new Date("2025-03-10T11:10:35.067Z"))
284
+ created: z.date().default(() => new Date("2025-03-10T14:17:46.578Z"))
285
285
  .transform(v => v.toISOString()),
286
286
  }).transform((v) => {
287
287
  return remap$(v, {
@@ -956,7 +956,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
956
956
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
957
957
  .optional(),
958
958
  updated: z.string().datetime({ offset: true }).default(
959
- "2025-03-10T11:10:33.958Z",
959
+ "2025-03-10T14:17:45.434Z",
960
960
  ).transform(v => new Date(v)),
961
961
  }).transform((v) => {
962
962
  return remap$(v, {
@@ -999,7 +999,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
999
999
  createdById: z.string().optional(),
1000
1000
  updatedById: z.string().optional(),
1001
1001
  created: z.date().transform(v => v.toISOString()).optional(),
1002
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
1002
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
1003
1003
  .transform(v => v.toISOString()),
1004
1004
  }).transform((v) => {
1005
1005
  return remap$(v, {
@@ -295,7 +295,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
295
295
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
296
296
  .optional(),
297
297
  updated: z.string().datetime({ offset: true }).default(
298
- "2025-03-10T11:10:33.958Z",
298
+ "2025-03-10T14:17:45.434Z",
299
299
  ).transform(v => new Date(v)),
300
300
  }).transform((v) => {
301
301
  return remap$(v, {
@@ -335,7 +335,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
335
335
  updatedById: z.string().optional(),
336
336
  metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
337
337
  created: z.date().transform(v => v.toISOString()).optional(),
338
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
338
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
339
339
  .transform(v => v.toISOString()),
340
340
  }).transform((v) => {
341
341
  return remap$(v, {
@@ -834,7 +834,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
834
834
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
835
835
  .optional(),
836
836
  updated: z.string().datetime({ offset: true }).default(
837
- "2025-03-10T11:10:33.958Z",
837
+ "2025-03-10T14:17:45.434Z",
838
838
  ).transform(v => new Date(v)),
839
839
  }).transform((v) => {
840
840
  return remap$(v, {
@@ -877,7 +877,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
877
877
  createdById: z.string().optional(),
878
878
  updatedById: z.string().optional(),
879
879
  created: z.date().transform(v => v.toISOString()).optional(),
880
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
880
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
881
881
  .transform(v => v.toISOString()),
882
882
  }).transform((v) => {
883
883
  return remap$(v, {
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
201
201
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
202
202
  .optional(),
203
203
  updated: z.string().datetime({ offset: true }).default(
204
- "2025-03-10T11:10:33.958Z",
204
+ "2025-03-10T14:17:45.434Z",
205
205
  ).transform(v => new Date(v)),
206
206
  }).transform((v) => {
207
207
  return remap$(v, {
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
241
241
  updatedById: z.string().optional(),
242
242
  metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
243
243
  created: z.date().transform(v => v.toISOString()).optional(),
244
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
244
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
245
245
  .transform(v => v.toISOString()),
246
246
  }).transform((v) => {
247
247
  return remap$(v, {
@@ -1638,7 +1638,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
1638
1638
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1639
1639
  .optional(),
1640
1640
  updated: z.string().datetime({ offset: true }).default(
1641
- "2025-03-10T11:10:33.958Z",
1641
+ "2025-03-10T14:17:45.434Z",
1642
1642
  ).transform(v => new Date(v)),
1643
1643
  }).transform((v) => {
1644
1644
  return remap$(v, {
@@ -1682,7 +1682,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
1682
1682
  createdById: z.string().optional(),
1683
1683
  updatedById: z.string().optional(),
1684
1684
  created: z.date().transform(v => v.toISOString()).optional(),
1685
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
1685
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
1686
1686
  .transform(v => v.toISOString()),
1687
1687
  }).transform((v) => {
1688
1688
  return remap$(v, {
@@ -283,7 +283,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
283
283
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
284
284
  .optional(),
285
285
  updated: z.string().datetime({ offset: true }).default(
286
- "2025-03-10T11:10:33.958Z",
286
+ "2025-03-10T14:17:45.434Z",
287
287
  ).transform(v => new Date(v)),
288
288
  }).transform((v) => {
289
289
  return remap$(v, {
@@ -328,7 +328,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
328
328
  parentId: z.string().optional(),
329
329
  version: z.string().optional(),
330
330
  created: z.date().transform(v => v.toISOString()).optional(),
331
- updated: z.date().default(() => new Date("2025-03-10T11:10:33.958Z"))
331
+ updated: z.date().default(() => new Date("2025-03-10T14:17:45.434Z"))
332
332
  .transform(v => v.toISOString()),
333
333
  }).transform((v) => {
334
334
  return remap$(v, {