@orq-ai/node 4.0.16 → 4.0.20

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 (132) hide show
  1. package/bin/mcp-server.js +213 -213
  2. package/bin/mcp-server.js.map +36 -36
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +8 -8
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +28 -28
  15. package/models/operations/createtool.js +12 -12
  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/getalltools.js +12 -12
  20. package/models/operations/getbudget.js +2 -2
  21. package/models/operations/getevals.js +28 -28
  22. package/models/operations/listbudgets.js +2 -2
  23. package/models/operations/listcontacts.js +2 -2
  24. package/models/operations/listdatasetdatapoints.js +8 -8
  25. package/models/operations/listdatasets.js +2 -2
  26. package/models/operations/listdatasources.js +2 -2
  27. package/models/operations/retrievecontact.js +2 -2
  28. package/models/operations/retrievedatapoint.js +8 -8
  29. package/models/operations/retrievedataset.js +2 -2
  30. package/models/operations/retrievedatasource.js +2 -2
  31. package/models/operations/retrievetool.js +12 -12
  32. package/models/operations/runagent.js +2 -2
  33. package/models/operations/streamrunagent.js +2 -2
  34. package/models/operations/updatebudget.js +2 -2
  35. package/models/operations/updatecontact.js +2 -2
  36. package/models/operations/updatedatapoint.js +8 -8
  37. package/models/operations/updatedataset.js +2 -2
  38. package/models/operations/updatedatasource.js +2 -2
  39. package/models/operations/updateeval.js +28 -28
  40. package/models/operations/updatetool.js +14 -14
  41. package/package.json +1 -1
  42. package/packages/orq-rc/README.md +22 -18
  43. package/packages/orq-rc/docs/sdks/evals/README.md +103 -1
  44. package/packages/orq-rc/examples/package-lock.json +1 -1
  45. package/packages/orq-rc/jsr.json +1 -1
  46. package/packages/orq-rc/package-lock.json +2 -2
  47. package/packages/orq-rc/package.json +1 -1
  48. package/packages/orq-rc/src/funcs/evalsInvoke.ts +177 -0
  49. package/packages/orq-rc/src/lib/config.ts +2 -2
  50. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  51. package/packages/orq-rc/src/mcp-server/server.ts +3 -1
  52. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +35 -0
  53. package/packages/orq-rc/src/models/errors/index.ts +1 -0
  54. package/packages/orq-rc/src/models/errors/invokeeval.ts +128 -0
  55. package/packages/orq-rc/src/models/operations/createagentrequest.ts +3 -0
  56. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  57. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  60. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  62. package/packages/orq-rc/src/models/operations/createtool.ts +12 -12
  63. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +877 -685
  64. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +35 -35
  65. package/packages/orq-rc/src/models/operations/deployments.ts +36 -36
  66. package/packages/orq-rc/src/models/operations/deploymentstream.ts +55 -38
  67. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  70. package/packages/orq-rc/src/models/operations/getalltools.ts +12 -12
  71. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  73. package/packages/orq-rc/src/models/operations/index.ts +1 -0
  74. package/packages/orq-rc/src/models/operations/invokeeval.ts +2062 -0
  75. package/packages/orq-rc/src/models/operations/listagents.ts +3 -0
  76. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  79. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3 -0
  82. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  84. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  85. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/retrievetool.ts +12 -12
  87. package/packages/orq-rc/src/models/operations/runagent.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/streamrunagent.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/updateagent.ts +3 -0
  90. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  93. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  96. package/packages/orq-rc/src/models/operations/updatetool.ts +14 -14
  97. package/packages/orq-rc/src/sdk/evals.ts +15 -0
  98. package/src/lib/config.ts +2 -2
  99. package/src/mcp-server/mcp-server.ts +1 -1
  100. package/src/mcp-server/server.ts +1 -1
  101. package/src/models/operations/createbudget.ts +2 -2
  102. package/src/models/operations/createcontact.ts +2 -2
  103. package/src/models/operations/createdataset.ts +2 -2
  104. package/src/models/operations/createdatasetitem.ts +8 -8
  105. package/src/models/operations/createdatasource.ts +2 -2
  106. package/src/models/operations/createeval.ts +28 -28
  107. package/src/models/operations/createtool.ts +12 -12
  108. package/src/models/operations/fileget.ts +2 -2
  109. package/src/models/operations/filelist.ts +2 -2
  110. package/src/models/operations/fileupload.ts +2 -2
  111. package/src/models/operations/getalltools.ts +12 -12
  112. package/src/models/operations/getbudget.ts +2 -2
  113. package/src/models/operations/getevals.ts +28 -28
  114. package/src/models/operations/listbudgets.ts +2 -2
  115. package/src/models/operations/listcontacts.ts +2 -2
  116. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  117. package/src/models/operations/listdatasets.ts +2 -2
  118. package/src/models/operations/listdatasources.ts +2 -2
  119. package/src/models/operations/retrievecontact.ts +2 -2
  120. package/src/models/operations/retrievedatapoint.ts +8 -8
  121. package/src/models/operations/retrievedataset.ts +2 -2
  122. package/src/models/operations/retrievedatasource.ts +2 -2
  123. package/src/models/operations/retrievetool.ts +12 -12
  124. package/src/models/operations/runagent.ts +2 -2
  125. package/src/models/operations/streamrunagent.ts +2 -2
  126. package/src/models/operations/updatebudget.ts +2 -2
  127. package/src/models/operations/updatecontact.ts +2 -2
  128. package/src/models/operations/updatedatapoint.ts +8 -8
  129. package/src/models/operations/updatedataset.ts +2 -2
  130. package/src/models/operations/updatedatasource.ts +2 -2
  131. package/src/models/operations/updateeval.ts +28 -28
  132. package/src/models/operations/updatetool.ts +14 -14
@@ -107,7 +107,7 @@ export type DeploymentInvokeMessageDeploymentsType = ClosedEnum<
107
107
  /**
108
108
  * The role of the prompt message
109
109
  */
110
- export const DeploymentInvokeMessageRole = {
110
+ export const DeploymentInvokeMessageDeploymentsRole = {
111
111
  System: "system",
112
112
  Assistant: "assistant",
113
113
  User: "user",
@@ -120,8 +120,8 @@ export const DeploymentInvokeMessageRole = {
120
120
  /**
121
121
  * The role of the prompt message
122
122
  */
123
- export type DeploymentInvokeMessageRole = ClosedEnum<
124
- typeof DeploymentInvokeMessageRole
123
+ export type DeploymentInvokeMessageDeploymentsRole = ClosedEnum<
124
+ typeof DeploymentInvokeMessageDeploymentsRole
125
125
  >;
126
126
 
127
127
  export type Message3 = {
@@ -129,7 +129,7 @@ export type Message3 = {
129
129
  /**
130
130
  * The role of the prompt message
131
131
  */
132
- role: DeploymentInvokeMessageRole;
132
+ role: DeploymentInvokeMessageDeploymentsRole;
133
133
  url: string;
134
134
  };
135
135
 
@@ -143,7 +143,7 @@ export type DeploymentInvokeMessageType = ClosedEnum<
143
143
  /**
144
144
  * The role of the prompt message
145
145
  */
146
- export const MessageRole = {
146
+ export const DeploymentInvokeMessageRole = {
147
147
  System: "system",
148
148
  Assistant: "assistant",
149
149
  User: "user",
@@ -156,14 +156,16 @@ export const MessageRole = {
156
156
  /**
157
157
  * The role of the prompt message
158
158
  */
159
- export type MessageRole = ClosedEnum<typeof MessageRole>;
159
+ export type DeploymentInvokeMessageRole = ClosedEnum<
160
+ typeof DeploymentInvokeMessageRole
161
+ >;
160
162
 
161
163
  export type Message2 = {
162
164
  type: DeploymentInvokeMessageType;
163
165
  /**
164
166
  * The role of the prompt message
165
167
  */
166
- role: MessageRole;
168
+ role: DeploymentInvokeMessageRole;
167
169
  content: string | null;
168
170
  /**
169
171
  * Internal thought process of the model
@@ -187,7 +189,7 @@ export type MessageType = ClosedEnum<typeof MessageType>;
187
189
  /**
188
190
  * The role of the prompt message
189
191
  */
190
- export const DeploymentInvokeMessageDeploymentsRole = {
192
+ export const MessageRole = {
191
193
  System: "system",
192
194
  Assistant: "assistant",
193
195
  User: "user",
@@ -200,9 +202,7 @@ export const DeploymentInvokeMessageDeploymentsRole = {
200
202
  /**
201
203
  * The role of the prompt message
202
204
  */
203
- export type DeploymentInvokeMessageDeploymentsRole = ClosedEnum<
204
- typeof DeploymentInvokeMessageDeploymentsRole
205
- >;
205
+ export type MessageRole = ClosedEnum<typeof MessageRole>;
206
206
 
207
207
  export const DeploymentInvokeMessageDeploymentsResponseType = {
208
208
  Function: "function",
@@ -231,7 +231,7 @@ export type Message1 = {
231
231
  /**
232
232
  * The role of the prompt message
233
233
  */
234
- role: DeploymentInvokeMessageDeploymentsRole;
234
+ role: MessageRole;
235
235
  content?: string | null | undefined;
236
236
  toolCalls: Array<MessageToolCalls>;
237
237
  /**
@@ -486,13 +486,14 @@ export const DeploymentInvokeMessageDeploymentsType$outboundSchema:
486
486
  DeploymentInvokeMessageDeploymentsType$inboundSchema;
487
487
 
488
488
  /** @internal */
489
- export const DeploymentInvokeMessageRole$inboundSchema: z.ZodNativeEnum<
490
- typeof DeploymentInvokeMessageRole
491
- > = z.nativeEnum(DeploymentInvokeMessageRole);
489
+ export const DeploymentInvokeMessageDeploymentsRole$inboundSchema:
490
+ z.ZodNativeEnum<typeof DeploymentInvokeMessageDeploymentsRole> = z.nativeEnum(
491
+ DeploymentInvokeMessageDeploymentsRole,
492
+ );
492
493
  /** @internal */
493
- export const DeploymentInvokeMessageRole$outboundSchema: z.ZodNativeEnum<
494
- typeof DeploymentInvokeMessageRole
495
- > = DeploymentInvokeMessageRole$inboundSchema;
494
+ export const DeploymentInvokeMessageDeploymentsRole$outboundSchema:
495
+ z.ZodNativeEnum<typeof DeploymentInvokeMessageDeploymentsRole> =
496
+ DeploymentInvokeMessageDeploymentsRole$inboundSchema;
496
497
 
497
498
  /** @internal */
498
499
  export const Message3$inboundSchema: z.ZodType<
@@ -501,7 +502,7 @@ export const Message3$inboundSchema: z.ZodType<
501
502
  unknown
502
503
  > = z.object({
503
504
  type: DeploymentInvokeMessageDeploymentsType$inboundSchema,
504
- role: DeploymentInvokeMessageRole$inboundSchema,
505
+ role: DeploymentInvokeMessageDeploymentsRole$inboundSchema,
505
506
  url: z.string(),
506
507
  });
507
508
  /** @internal */
@@ -518,7 +519,7 @@ export const Message3$outboundSchema: z.ZodType<
518
519
  Message3
519
520
  > = z.object({
520
521
  type: DeploymentInvokeMessageDeploymentsType$outboundSchema,
521
- role: DeploymentInvokeMessageRole$outboundSchema,
522
+ role: DeploymentInvokeMessageDeploymentsRole$outboundSchema,
522
523
  url: z.string(),
523
524
  });
524
525
 
@@ -545,11 +546,13 @@ export const DeploymentInvokeMessageType$outboundSchema: z.ZodNativeEnum<
545
546
  > = DeploymentInvokeMessageType$inboundSchema;
546
547
 
547
548
  /** @internal */
548
- export const MessageRole$inboundSchema: z.ZodNativeEnum<typeof MessageRole> = z
549
- .nativeEnum(MessageRole);
549
+ export const DeploymentInvokeMessageRole$inboundSchema: z.ZodNativeEnum<
550
+ typeof DeploymentInvokeMessageRole
551
+ > = z.nativeEnum(DeploymentInvokeMessageRole);
550
552
  /** @internal */
551
- export const MessageRole$outboundSchema: z.ZodNativeEnum<typeof MessageRole> =
552
- MessageRole$inboundSchema;
553
+ export const DeploymentInvokeMessageRole$outboundSchema: z.ZodNativeEnum<
554
+ typeof DeploymentInvokeMessageRole
555
+ > = DeploymentInvokeMessageRole$inboundSchema;
553
556
 
554
557
  /** @internal */
555
558
  export const Message2$inboundSchema: z.ZodType<
@@ -558,7 +561,7 @@ export const Message2$inboundSchema: z.ZodType<
558
561
  unknown
559
562
  > = z.object({
560
563
  type: DeploymentInvokeMessageType$inboundSchema,
561
- role: MessageRole$inboundSchema,
564
+ role: DeploymentInvokeMessageRole$inboundSchema,
562
565
  content: z.nullable(z.string()),
563
566
  reasoning: z.string().optional(),
564
567
  reasoning_signature: z.string().optional(),
@@ -586,7 +589,7 @@ export const Message2$outboundSchema: z.ZodType<
586
589
  Message2
587
590
  > = z.object({
588
591
  type: DeploymentInvokeMessageType$outboundSchema,
589
- role: MessageRole$outboundSchema,
592
+ role: DeploymentInvokeMessageRole$outboundSchema,
590
593
  content: z.nullable(z.string()),
591
594
  reasoning: z.string().optional(),
592
595
  reasoningSignature: z.string().optional(),
@@ -619,14 +622,11 @@ export const MessageType$outboundSchema: z.ZodNativeEnum<typeof MessageType> =
619
622
  MessageType$inboundSchema;
620
623
 
621
624
  /** @internal */
622
- export const DeploymentInvokeMessageDeploymentsRole$inboundSchema:
623
- z.ZodNativeEnum<typeof DeploymentInvokeMessageDeploymentsRole> = z.nativeEnum(
624
- DeploymentInvokeMessageDeploymentsRole,
625
- );
625
+ export const MessageRole$inboundSchema: z.ZodNativeEnum<typeof MessageRole> = z
626
+ .nativeEnum(MessageRole);
626
627
  /** @internal */
627
- export const DeploymentInvokeMessageDeploymentsRole$outboundSchema:
628
- z.ZodNativeEnum<typeof DeploymentInvokeMessageDeploymentsRole> =
629
- DeploymentInvokeMessageDeploymentsRole$inboundSchema;
628
+ export const MessageRole$outboundSchema: z.ZodNativeEnum<typeof MessageRole> =
629
+ MessageRole$inboundSchema;
630
630
 
631
631
  /** @internal */
632
632
  export const DeploymentInvokeMessageDeploymentsResponseType$inboundSchema:
@@ -732,7 +732,7 @@ export const Message1$inboundSchema: z.ZodType<
732
732
  unknown
733
733
  > = z.object({
734
734
  type: MessageType$inboundSchema,
735
- role: DeploymentInvokeMessageDeploymentsRole$inboundSchema,
735
+ role: MessageRole$inboundSchema,
736
736
  content: z.nullable(z.string()).optional(),
737
737
  tool_calls: z.array(z.lazy(() => MessageToolCalls$inboundSchema)),
738
738
  reasoning: z.string().optional(),
@@ -763,7 +763,7 @@ export const Message1$outboundSchema: z.ZodType<
763
763
  Message1
764
764
  > = z.object({
765
765
  type: MessageType$outboundSchema,
766
- role: DeploymentInvokeMessageDeploymentsRole$outboundSchema,
766
+ role: MessageRole$outboundSchema,
767
767
  content: z.nullable(z.string()).optional(),
768
768
  toolCalls: z.array(z.lazy(() => MessageToolCalls$outboundSchema)),
769
769
  reasoning: z.string().optional(),
@@ -433,14 +433,14 @@ export type DeploymentsRole = ClosedEnum<typeof DeploymentsRole>;
433
433
  /**
434
434
  * The type of the content part. Always `file`.
435
435
  */
436
- export const Deployments2DeploymentsType = {
436
+ export const Deployments2DeploymentsResponseType = {
437
437
  File: "file",
438
438
  } as const;
439
439
  /**
440
440
  * The type of the content part. Always `file`.
441
441
  */
442
- export type Deployments2DeploymentsType = ClosedEnum<
443
- typeof Deployments2DeploymentsType
442
+ export type Deployments2DeploymentsResponseType = ClosedEnum<
443
+ typeof Deployments2DeploymentsResponseType
444
444
  >;
445
445
 
446
446
  export type Deployments2File = {
@@ -466,14 +466,16 @@ export type Deployments23 = {
466
466
  /**
467
467
  * The type of the content part. Always `file`.
468
468
  */
469
- type: Deployments2DeploymentsType;
469
+ type: Deployments2DeploymentsResponseType;
470
470
  file: Deployments2File;
471
471
  };
472
472
 
473
- export const Deployments2Type = {
473
+ export const Deployments2DeploymentsType = {
474
474
  ImageUrl: "image_url",
475
475
  } as const;
476
- export type Deployments2Type = ClosedEnum<typeof Deployments2Type>;
476
+ export type Deployments2DeploymentsType = ClosedEnum<
477
+ typeof Deployments2DeploymentsType
478
+ >;
477
479
 
478
480
  export type Deployments2ImageUrl = {
479
481
  /**
@@ -494,22 +496,20 @@ export type Deployments2ImageUrl = {
494
496
  * The image part of the prompt message. Only supported with vision models.
495
497
  */
496
498
  export type Deployments22 = {
497
- type: Deployments2Type;
499
+ type: Deployments2DeploymentsType;
498
500
  imageUrl: Deployments2ImageUrl;
499
501
  };
500
502
 
501
- export const Deployments2DeploymentsResponseType = {
503
+ export const Deployments2Type = {
502
504
  Text: "text",
503
505
  } as const;
504
- export type Deployments2DeploymentsResponseType = ClosedEnum<
505
- typeof Deployments2DeploymentsResponseType
506
- >;
506
+ export type Deployments2Type = ClosedEnum<typeof Deployments2Type>;
507
507
 
508
508
  /**
509
509
  * Text content part of a prompt message
510
510
  */
511
511
  export type Deployments21 = {
512
- type: Deployments2DeploymentsResponseType;
512
+ type: Deployments2Type;
513
513
  text: string;
514
514
  };
515
515
 
@@ -1343,13 +1343,13 @@ export const DeploymentsRole$outboundSchema: z.ZodNativeEnum<
1343
1343
  > = DeploymentsRole$inboundSchema;
1344
1344
 
1345
1345
  /** @internal */
1346
- export const Deployments2DeploymentsType$inboundSchema: z.ZodNativeEnum<
1347
- typeof Deployments2DeploymentsType
1348
- > = z.nativeEnum(Deployments2DeploymentsType);
1346
+ export const Deployments2DeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
1347
+ typeof Deployments2DeploymentsResponseType
1348
+ > = z.nativeEnum(Deployments2DeploymentsResponseType);
1349
1349
  /** @internal */
1350
- export const Deployments2DeploymentsType$outboundSchema: z.ZodNativeEnum<
1351
- typeof Deployments2DeploymentsType
1352
- > = Deployments2DeploymentsType$inboundSchema;
1350
+ export const Deployments2DeploymentsResponseType$outboundSchema:
1351
+ z.ZodNativeEnum<typeof Deployments2DeploymentsResponseType> =
1352
+ Deployments2DeploymentsResponseType$inboundSchema;
1353
1353
 
1354
1354
  /** @internal */
1355
1355
  export const Deployments2File$inboundSchema: z.ZodType<
@@ -1413,7 +1413,7 @@ export const Deployments23$inboundSchema: z.ZodType<
1413
1413
  z.ZodTypeDef,
1414
1414
  unknown
1415
1415
  > = z.object({
1416
- type: Deployments2DeploymentsType$inboundSchema,
1416
+ type: Deployments2DeploymentsResponseType$inboundSchema,
1417
1417
  file: z.lazy(() => Deployments2File$inboundSchema),
1418
1418
  });
1419
1419
  /** @internal */
@@ -1428,7 +1428,7 @@ export const Deployments23$outboundSchema: z.ZodType<
1428
1428
  z.ZodTypeDef,
1429
1429
  Deployments23
1430
1430
  > = z.object({
1431
- type: Deployments2DeploymentsType$outboundSchema,
1431
+ type: Deployments2DeploymentsResponseType$outboundSchema,
1432
1432
  file: z.lazy(() => Deployments2File$outboundSchema),
1433
1433
  });
1434
1434
 
@@ -1446,13 +1446,13 @@ export function deployments23FromJSON(
1446
1446
  }
1447
1447
 
1448
1448
  /** @internal */
1449
- export const Deployments2Type$inboundSchema: z.ZodNativeEnum<
1450
- typeof Deployments2Type
1451
- > = z.nativeEnum(Deployments2Type);
1449
+ export const Deployments2DeploymentsType$inboundSchema: z.ZodNativeEnum<
1450
+ typeof Deployments2DeploymentsType
1451
+ > = z.nativeEnum(Deployments2DeploymentsType);
1452
1452
  /** @internal */
1453
- export const Deployments2Type$outboundSchema: z.ZodNativeEnum<
1454
- typeof Deployments2Type
1455
- > = Deployments2Type$inboundSchema;
1453
+ export const Deployments2DeploymentsType$outboundSchema: z.ZodNativeEnum<
1454
+ typeof Deployments2DeploymentsType
1455
+ > = Deployments2DeploymentsType$inboundSchema;
1456
1456
 
1457
1457
  /** @internal */
1458
1458
  export const Deployments2ImageUrl$inboundSchema: z.ZodType<
@@ -1505,7 +1505,7 @@ export const Deployments22$inboundSchema: z.ZodType<
1505
1505
  z.ZodTypeDef,
1506
1506
  unknown
1507
1507
  > = z.object({
1508
- type: Deployments2Type$inboundSchema,
1508
+ type: Deployments2DeploymentsType$inboundSchema,
1509
1509
  image_url: z.lazy(() => Deployments2ImageUrl$inboundSchema),
1510
1510
  }).transform((v) => {
1511
1511
  return remap$(v, {
@@ -1524,7 +1524,7 @@ export const Deployments22$outboundSchema: z.ZodType<
1524
1524
  z.ZodTypeDef,
1525
1525
  Deployments22
1526
1526
  > = z.object({
1527
- type: Deployments2Type$outboundSchema,
1527
+ type: Deployments2DeploymentsType$outboundSchema,
1528
1528
  imageUrl: z.lazy(() => Deployments2ImageUrl$outboundSchema),
1529
1529
  }).transform((v) => {
1530
1530
  return remap$(v, {
@@ -1546,13 +1546,13 @@ export function deployments22FromJSON(
1546
1546
  }
1547
1547
 
1548
1548
  /** @internal */
1549
- export const Deployments2DeploymentsResponseType$inboundSchema: z.ZodNativeEnum<
1550
- typeof Deployments2DeploymentsResponseType
1551
- > = z.nativeEnum(Deployments2DeploymentsResponseType);
1549
+ export const Deployments2Type$inboundSchema: z.ZodNativeEnum<
1550
+ typeof Deployments2Type
1551
+ > = z.nativeEnum(Deployments2Type);
1552
1552
  /** @internal */
1553
- export const Deployments2DeploymentsResponseType$outboundSchema:
1554
- z.ZodNativeEnum<typeof Deployments2DeploymentsResponseType> =
1555
- Deployments2DeploymentsResponseType$inboundSchema;
1553
+ export const Deployments2Type$outboundSchema: z.ZodNativeEnum<
1554
+ typeof Deployments2Type
1555
+ > = Deployments2Type$inboundSchema;
1556
1556
 
1557
1557
  /** @internal */
1558
1558
  export const Deployments21$inboundSchema: z.ZodType<
@@ -1560,7 +1560,7 @@ export const Deployments21$inboundSchema: z.ZodType<
1560
1560
  z.ZodTypeDef,
1561
1561
  unknown
1562
1562
  > = z.object({
1563
- type: Deployments2DeploymentsResponseType$inboundSchema,
1563
+ type: Deployments2Type$inboundSchema,
1564
1564
  text: z.string(),
1565
1565
  });
1566
1566
  /** @internal */
@@ -1575,7 +1575,7 @@ export const Deployments21$outboundSchema: z.ZodType<
1575
1575
  z.ZodTypeDef,
1576
1576
  Deployments21
1577
1577
  > = z.object({
1578
- type: Deployments2DeploymentsResponseType$outboundSchema,
1578
+ type: Deployments2Type$outboundSchema,
1579
1579
  text: z.string(),
1580
1580
  });
1581
1581
 
@@ -202,7 +202,7 @@ export type DeploymentStreamPrefixMessagesType = ClosedEnum<
202
202
  typeof DeploymentStreamPrefixMessagesType
203
203
  >;
204
204
 
205
- export type PrefixMessagesFunction = {
205
+ export type DeploymentStreamPrefixMessagesFunction = {
206
206
  /**
207
207
  * The name of the function to call.
208
208
  */
@@ -213,7 +213,7 @@ export type PrefixMessagesFunction = {
213
213
  arguments?: string | undefined;
214
214
  };
215
215
 
216
- export type PrefixMessagesToolCalls = {
216
+ export type DeploymentStreamPrefixMessagesToolCalls = {
217
217
  /**
218
218
  * The ID of the tool call.
219
219
  */
@@ -222,7 +222,7 @@ export type PrefixMessagesToolCalls = {
222
222
  * The type of the tool. Currently, only `function` is supported.
223
223
  */
224
224
  type: DeploymentStreamPrefixMessagesType;
225
- function: PrefixMessagesFunction;
225
+ function: DeploymentStreamPrefixMessagesFunction;
226
226
  };
227
227
 
228
228
  export type PrefixMessagesAssistantMessage = {
@@ -255,7 +255,7 @@ export type PrefixMessagesAssistantMessage = {
255
255
  /**
256
256
  * The tool calls generated by the model, such as function calls.
257
257
  */
258
- toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
258
+ toolCalls?: Array<DeploymentStreamPrefixMessagesToolCalls> | undefined;
259
259
  /**
260
260
  * Internal thought process of the model
261
261
  */
@@ -2534,8 +2534,8 @@ export const DeploymentStreamPrefixMessagesType$outboundSchema: z.ZodNativeEnum<
2534
2534
  > = DeploymentStreamPrefixMessagesType$inboundSchema;
2535
2535
 
2536
2536
  /** @internal */
2537
- export const PrefixMessagesFunction$inboundSchema: z.ZodType<
2538
- PrefixMessagesFunction,
2537
+ export const DeploymentStreamPrefixMessagesFunction$inboundSchema: z.ZodType<
2538
+ DeploymentStreamPrefixMessagesFunction,
2539
2539
  z.ZodTypeDef,
2540
2540
  unknown
2541
2541
  > = z.object({
@@ -2543,80 +2543,93 @@ export const PrefixMessagesFunction$inboundSchema: z.ZodType<
2543
2543
  arguments: z.string().optional(),
2544
2544
  });
2545
2545
  /** @internal */
2546
- export type PrefixMessagesFunction$Outbound = {
2546
+ export type DeploymentStreamPrefixMessagesFunction$Outbound = {
2547
2547
  name?: string | undefined;
2548
2548
  arguments?: string | undefined;
2549
2549
  };
2550
2550
 
2551
2551
  /** @internal */
2552
- export const PrefixMessagesFunction$outboundSchema: z.ZodType<
2553
- PrefixMessagesFunction$Outbound,
2552
+ export const DeploymentStreamPrefixMessagesFunction$outboundSchema: z.ZodType<
2553
+ DeploymentStreamPrefixMessagesFunction$Outbound,
2554
2554
  z.ZodTypeDef,
2555
- PrefixMessagesFunction
2555
+ DeploymentStreamPrefixMessagesFunction
2556
2556
  > = z.object({
2557
2557
  name: z.string().optional(),
2558
2558
  arguments: z.string().optional(),
2559
2559
  });
2560
2560
 
2561
- export function prefixMessagesFunctionToJSON(
2562
- prefixMessagesFunction: PrefixMessagesFunction,
2561
+ export function deploymentStreamPrefixMessagesFunctionToJSON(
2562
+ deploymentStreamPrefixMessagesFunction:
2563
+ DeploymentStreamPrefixMessagesFunction,
2563
2564
  ): string {
2564
2565
  return JSON.stringify(
2565
- PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
2566
+ DeploymentStreamPrefixMessagesFunction$outboundSchema.parse(
2567
+ deploymentStreamPrefixMessagesFunction,
2568
+ ),
2566
2569
  );
2567
2570
  }
2568
- export function prefixMessagesFunctionFromJSON(
2571
+ export function deploymentStreamPrefixMessagesFunctionFromJSON(
2569
2572
  jsonString: string,
2570
- ): SafeParseResult<PrefixMessagesFunction, SDKValidationError> {
2573
+ ): SafeParseResult<DeploymentStreamPrefixMessagesFunction, SDKValidationError> {
2571
2574
  return safeParse(
2572
2575
  jsonString,
2573
- (x) => PrefixMessagesFunction$inboundSchema.parse(JSON.parse(x)),
2574
- `Failed to parse 'PrefixMessagesFunction' from JSON`,
2576
+ (x) =>
2577
+ DeploymentStreamPrefixMessagesFunction$inboundSchema.parse(JSON.parse(x)),
2578
+ `Failed to parse 'DeploymentStreamPrefixMessagesFunction' from JSON`,
2575
2579
  );
2576
2580
  }
2577
2581
 
2578
2582
  /** @internal */
2579
- export const PrefixMessagesToolCalls$inboundSchema: z.ZodType<
2580
- PrefixMessagesToolCalls,
2583
+ export const DeploymentStreamPrefixMessagesToolCalls$inboundSchema: z.ZodType<
2584
+ DeploymentStreamPrefixMessagesToolCalls,
2581
2585
  z.ZodTypeDef,
2582
2586
  unknown
2583
2587
  > = z.object({
2584
2588
  id: z.string(),
2585
2589
  type: DeploymentStreamPrefixMessagesType$inboundSchema,
2586
- function: z.lazy(() => PrefixMessagesFunction$inboundSchema),
2590
+ function: z.lazy(() => DeploymentStreamPrefixMessagesFunction$inboundSchema),
2587
2591
  });
2588
2592
  /** @internal */
2589
- export type PrefixMessagesToolCalls$Outbound = {
2593
+ export type DeploymentStreamPrefixMessagesToolCalls$Outbound = {
2590
2594
  id: string;
2591
2595
  type: string;
2592
- function: PrefixMessagesFunction$Outbound;
2596
+ function: DeploymentStreamPrefixMessagesFunction$Outbound;
2593
2597
  };
2594
2598
 
2595
2599
  /** @internal */
2596
- export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
2597
- PrefixMessagesToolCalls$Outbound,
2600
+ export const DeploymentStreamPrefixMessagesToolCalls$outboundSchema: z.ZodType<
2601
+ DeploymentStreamPrefixMessagesToolCalls$Outbound,
2598
2602
  z.ZodTypeDef,
2599
- PrefixMessagesToolCalls
2603
+ DeploymentStreamPrefixMessagesToolCalls
2600
2604
  > = z.object({
2601
2605
  id: z.string(),
2602
2606
  type: DeploymentStreamPrefixMessagesType$outboundSchema,
2603
- function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
2607
+ function: z.lazy(() => DeploymentStreamPrefixMessagesFunction$outboundSchema),
2604
2608
  });
2605
2609
 
2606
- export function prefixMessagesToolCallsToJSON(
2607
- prefixMessagesToolCalls: PrefixMessagesToolCalls,
2610
+ export function deploymentStreamPrefixMessagesToolCallsToJSON(
2611
+ deploymentStreamPrefixMessagesToolCalls:
2612
+ DeploymentStreamPrefixMessagesToolCalls,
2608
2613
  ): string {
2609
2614
  return JSON.stringify(
2610
- PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
2615
+ DeploymentStreamPrefixMessagesToolCalls$outboundSchema.parse(
2616
+ deploymentStreamPrefixMessagesToolCalls,
2617
+ ),
2611
2618
  );
2612
2619
  }
2613
- export function prefixMessagesToolCallsFromJSON(
2620
+ export function deploymentStreamPrefixMessagesToolCallsFromJSON(
2614
2621
  jsonString: string,
2615
- ): SafeParseResult<PrefixMessagesToolCalls, SDKValidationError> {
2622
+ ): SafeParseResult<
2623
+ DeploymentStreamPrefixMessagesToolCalls,
2624
+ SDKValidationError
2625
+ > {
2616
2626
  return safeParse(
2617
2627
  jsonString,
2618
- (x) => PrefixMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
2619
- `Failed to parse 'PrefixMessagesToolCalls' from JSON`,
2628
+ (x) =>
2629
+ DeploymentStreamPrefixMessagesToolCalls$inboundSchema.parse(
2630
+ JSON.parse(x),
2631
+ ),
2632
+ `Failed to parse 'DeploymentStreamPrefixMessagesToolCalls' from JSON`,
2620
2633
  );
2621
2634
  }
2622
2635
 
@@ -2642,8 +2655,9 @@ export const PrefixMessagesAssistantMessage$inboundSchema: z.ZodType<
2642
2655
  DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema,
2643
2656
  name: z.string().optional(),
2644
2657
  audio: z.nullable(z.lazy(() => PrefixMessagesAudio$inboundSchema)).optional(),
2645
- tool_calls: z.array(z.lazy(() => PrefixMessagesToolCalls$inboundSchema))
2646
- .optional(),
2658
+ tool_calls: z.array(
2659
+ z.lazy(() => DeploymentStreamPrefixMessagesToolCalls$inboundSchema),
2660
+ ).optional(),
2647
2661
  reasoning: z.string().optional(),
2648
2662
  reasoning_signature: z.string().optional(),
2649
2663
  redacted_reasoning: z.string().optional(),
@@ -2668,7 +2682,9 @@ export type PrefixMessagesAssistantMessage$Outbound = {
2668
2682
  role: string;
2669
2683
  name?: string | undefined;
2670
2684
  audio?: PrefixMessagesAudio$Outbound | null | undefined;
2671
- tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
2685
+ tool_calls?:
2686
+ | Array<DeploymentStreamPrefixMessagesToolCalls$Outbound>
2687
+ | undefined;
2672
2688
  reasoning?: string | undefined;
2673
2689
  reasoning_signature?: string | undefined;
2674
2690
  redacted_reasoning?: string | undefined;
@@ -2697,8 +2713,9 @@ export const PrefixMessagesAssistantMessage$outboundSchema: z.ZodType<
2697
2713
  name: z.string().optional(),
2698
2714
  audio: z.nullable(z.lazy(() => PrefixMessagesAudio$outboundSchema))
2699
2715
  .optional(),
2700
- toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
2701
- .optional(),
2716
+ toolCalls: z.array(
2717
+ z.lazy(() => DeploymentStreamPrefixMessagesToolCalls$outboundSchema),
2718
+ ).optional(),
2702
2719
  reasoning: z.string().optional(),
2703
2720
  reasoningSignature: z.string().optional(),
2704
2721
  redactedReasoning: z.string().optional(),
@@ -119,7 +119,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
119
119
  file_name: z.string(),
120
120
  workspace_id: z.string(),
121
121
  created: z.string().datetime({ offset: true }).default(
122
- "2025-11-25T16:34:43.072Z",
122
+ "2025-11-27T09:45:51.496Z",
123
123
  ).transform(v => new Date(v)),
124
124
  }).transform((v) => {
125
125
  return remap$(v, {
@@ -152,7 +152,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
152
152
  bytes: z.number(),
153
153
  fileName: z.string(),
154
154
  workspaceId: z.string(),
155
- created: z.date().default(() => new Date("2025-11-25T16:34:43.072Z"))
155
+ created: z.date().default(() => new Date("2025-11-27T09:45:51.496Z"))
156
156
  .transform(v => v.toISOString()),
157
157
  }).transform((v) => {
158
158
  return remap$(v, {
@@ -157,7 +157,7 @@ export const FileListData$inboundSchema: z.ZodType<
157
157
  file_name: z.string(),
158
158
  workspace_id: z.string(),
159
159
  created: z.string().datetime({ offset: true }).default(
160
- "2025-11-25T16:34:43.072Z",
160
+ "2025-11-27T09:45:51.496Z",
161
161
  ).transform(v => new Date(v)),
162
162
  }).transform((v) => {
163
163
  return remap$(v, {
@@ -190,7 +190,7 @@ export const FileListData$outboundSchema: z.ZodType<
190
190
  bytes: z.number(),
191
191
  fileName: z.string(),
192
192
  workspaceId: z.string(),
193
- created: z.date().default(() => new Date("2025-11-25T16:34:43.072Z"))
193
+ created: z.date().default(() => new Date("2025-11-27T09:45:51.496Z"))
194
194
  .transform(v => v.toISOString()),
195
195
  }).transform((v) => {
196
196
  return remap$(v, {
@@ -196,7 +196,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
196
196
  file_name: z.string(),
197
197
  workspace_id: z.string(),
198
198
  created: z.string().datetime({ offset: true }).default(
199
- "2025-11-25T16:34:43.072Z",
199
+ "2025-11-27T09:45:51.496Z",
200
200
  ).transform(v => new Date(v)),
201
201
  }).transform((v) => {
202
202
  return remap$(v, {
@@ -229,7 +229,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
229
229
  bytes: z.number(),
230
230
  fileName: z.string(),
231
231
  workspaceId: z.string(),
232
- created: z.date().default(() => new Date("2025-11-25T16:34:43.072Z"))
232
+ created: z.date().default(() => new Date("2025-11-27T09:45:51.496Z"))
233
233
  .transform(v => v.toISOString()),
234
234
  }).transform((v) => {
235
235
  return remap$(v, {