@orq-ai/node 4.6.7 → 4.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/lib/config.js.map +1 -1
  5. package/lib/security.d.ts +1 -1
  6. package/lib/security.d.ts.map +1 -1
  7. package/lib/security.js +19 -8
  8. package/lib/security.js.map +1 -1
  9. package/models/components/reasoningpart.js +1 -1
  10. package/models/operations/createcontact.js +1 -1
  11. package/models/operations/createdataset.js +1 -1
  12. package/models/operations/createdatasetitem.js +4 -4
  13. package/models/operations/createdatasource.js +1 -1
  14. package/models/operations/createeval.js +16 -16
  15. package/models/operations/createidentity.js +1 -1
  16. package/models/operations/createimageedit.js +1 -1
  17. package/models/operations/createimageedit.js.map +1 -1
  18. package/models/operations/createimagevariation.js +1 -1
  19. package/models/operations/createimagevariation.js.map +1 -1
  20. package/models/operations/createresponse.d.ts +95 -20
  21. package/models/operations/createresponse.d.ts.map +1 -1
  22. package/models/operations/createresponse.js +69 -20
  23. package/models/operations/createresponse.js.map +1 -1
  24. package/models/operations/createtool.js +6 -6
  25. package/models/operations/getalltools.js +6 -6
  26. package/models/operations/getevals.js +16 -16
  27. package/models/operations/getv2humanevals.js +6 -6
  28. package/models/operations/getv2humanevalsets.js +2 -2
  29. package/models/operations/getv2humanevalsetsid.js +2 -2
  30. package/models/operations/getv2humanevalsid.js +6 -6
  31. package/models/operations/listdatasetdatapoints.js +4 -4
  32. package/models/operations/listdatasets.js +1 -1
  33. package/models/operations/listdatasources.js +1 -1
  34. package/models/operations/listidentities.js +1 -1
  35. package/models/operations/patchv2humanevalsetsid.js +2 -2
  36. package/models/operations/patchv2humanevalsid.js +12 -12
  37. package/models/operations/postv2feedbackevaluation.js +3 -3
  38. package/models/operations/postv2humanevals.js +12 -12
  39. package/models/operations/postv2humanevalsets.js +2 -2
  40. package/models/operations/retrievedatapoint.js +4 -4
  41. package/models/operations/retrievedataset.js +1 -1
  42. package/models/operations/retrievedatasource.js +1 -1
  43. package/models/operations/retrieveidentity.js +1 -1
  44. package/models/operations/retrievetool.js +6 -6
  45. package/models/operations/runagent.js +1 -1
  46. package/models/operations/streamrunagent.js +1 -1
  47. package/models/operations/updatedatapoint.js +4 -4
  48. package/models/operations/updatedataset.js +1 -1
  49. package/models/operations/updatedatasource.js +1 -1
  50. package/models/operations/updateeval.js +16 -16
  51. package/models/operations/updateidentity.js +1 -1
  52. package/models/operations/updatetool.js +7 -7
  53. package/package.json +1 -1
  54. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +2 -11
  55. package/packages/orq-rc/src/lib/config.ts +3 -3
  56. package/packages/orq-rc/src/lib/security.ts +14 -2
  57. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  58. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -56
  59. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -30
  60. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -26
  61. package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
  62. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  63. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  64. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  65. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  66. package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
  67. package/packages/orq-rc/src/models/operations/createimage.ts +0 -6
  68. package/packages/orq-rc/src/models/operations/createimageedit.ts +1 -1
  69. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1 -1
  70. package/packages/orq-rc/src/models/operations/createresponse.ts +180 -40
  71. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  72. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  73. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  74. package/packages/orq-rc/src/models/operations/getv2humanevals.ts +6 -6
  75. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/getv2humanevalsid.ts +6 -6
  78. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -24
  79. package/packages/orq-rc/src/models/operations/listagents.ts +0 -14
  80. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  81. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  82. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  83. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  84. package/packages/orq-rc/src/models/operations/parse.ts +0 -7
  85. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/patchv2humanevalsid.ts +12 -12
  87. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +14 -17
  88. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  89. package/packages/orq-rc/src/models/operations/postv2humanevals.ts +12 -12
  90. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -16
  92. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  93. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  94. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  95. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -58
  96. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  97. package/packages/orq-rc/src/models/operations/runagent.ts +1 -25
  98. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -24
  99. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -25
  100. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -31
  101. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  102. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  103. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  104. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  105. package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
  106. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  107. package/src/lib/config.ts +3 -3
  108. package/src/lib/security.ts +14 -2
  109. package/src/models/components/reasoningpart.ts +1 -1
  110. package/src/models/operations/createcontact.ts +1 -1
  111. package/src/models/operations/createdataset.ts +1 -1
  112. package/src/models/operations/createdatasetitem.ts +4 -4
  113. package/src/models/operations/createdatasource.ts +1 -1
  114. package/src/models/operations/createeval.ts +16 -16
  115. package/src/models/operations/createidentity.ts +1 -1
  116. package/src/models/operations/createimageedit.ts +1 -1
  117. package/src/models/operations/createimagevariation.ts +1 -1
  118. package/src/models/operations/createresponse.ts +180 -40
  119. package/src/models/operations/createtool.ts +6 -6
  120. package/src/models/operations/getalltools.ts +6 -6
  121. package/src/models/operations/getevals.ts +16 -16
  122. package/src/models/operations/getv2humanevals.ts +6 -6
  123. package/src/models/operations/getv2humanevalsets.ts +2 -2
  124. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  125. package/src/models/operations/getv2humanevalsid.ts +6 -6
  126. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  127. package/src/models/operations/listdatasets.ts +1 -1
  128. package/src/models/operations/listdatasources.ts +1 -1
  129. package/src/models/operations/listidentities.ts +1 -1
  130. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  131. package/src/models/operations/patchv2humanevalsid.ts +12 -12
  132. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  133. package/src/models/operations/postv2humanevals.ts +12 -12
  134. package/src/models/operations/postv2humanevalsets.ts +2 -2
  135. package/src/models/operations/retrievedatapoint.ts +4 -4
  136. package/src/models/operations/retrievedataset.ts +1 -1
  137. package/src/models/operations/retrievedatasource.ts +1 -1
  138. package/src/models/operations/retrieveidentity.ts +1 -1
  139. package/src/models/operations/retrievetool.ts +6 -6
  140. package/src/models/operations/runagent.ts +1 -1
  141. package/src/models/operations/streamrunagent.ts +1 -1
  142. package/src/models/operations/updatedatapoint.ts +4 -4
  143. package/src/models/operations/updatedataset.ts +1 -1
  144. package/src/models/operations/updatedatasource.ts +1 -1
  145. package/src/models/operations/updateeval.ts +16 -16
  146. package/src/models/operations/updateidentity.ts +1 -1
  147. package/src/models/operations/updatetool.ts +7 -7
@@ -54,7 +54,7 @@ export const PostV2AgentsA2aType = {
54
54
  } as const;
55
55
  export type PostV2AgentsA2aType = ClosedEnum<typeof PostV2AgentsA2aType>;
56
56
 
57
- export type PostV2AgentsA2aMetrics = {
57
+ export type Metrics = {
58
58
  totalCost: number;
59
59
  };
60
60
 
@@ -83,7 +83,7 @@ export type PostV2AgentsA2aResponseBody = {
83
83
  status: string;
84
84
  versionHash?: string | undefined;
85
85
  path: string;
86
- metrics: PostV2AgentsA2aMetrics;
86
+ metrics: Metrics;
87
87
  memoryStores: Array<string>;
88
88
  teamOfAgents: Array<any>;
89
89
  created?: string | undefined;
@@ -157,25 +157,22 @@ export const PostV2AgentsA2aType$inboundSchema: z.ZodNativeEnum<
157
157
  > = z.nativeEnum(PostV2AgentsA2aType);
158
158
 
159
159
  /** @internal */
160
- export const PostV2AgentsA2aMetrics$inboundSchema: z.ZodType<
161
- PostV2AgentsA2aMetrics,
162
- z.ZodTypeDef,
163
- unknown
164
- > = z.object({
165
- total_cost: z.number(),
166
- }).transform((v) => {
167
- return remap$(v, {
168
- "total_cost": "totalCost",
160
+ export const Metrics$inboundSchema: z.ZodType<Metrics, z.ZodTypeDef, unknown> =
161
+ z.object({
162
+ total_cost: z.number(),
163
+ }).transform((v) => {
164
+ return remap$(v, {
165
+ "total_cost": "totalCost",
166
+ });
169
167
  });
170
- });
171
168
 
172
- export function postV2AgentsA2aMetricsFromJSON(
169
+ export function metricsFromJSON(
173
170
  jsonString: string,
174
- ): SafeParseResult<PostV2AgentsA2aMetrics, SDKValidationError> {
171
+ ): SafeParseResult<Metrics, SDKValidationError> {
175
172
  return safeParse(
176
173
  jsonString,
177
- (x) => PostV2AgentsA2aMetrics$inboundSchema.parse(JSON.parse(x)),
178
- `Failed to parse 'PostV2AgentsA2aMetrics' from JSON`,
174
+ (x) => Metrics$inboundSchema.parse(JSON.parse(x)),
175
+ `Failed to parse 'Metrics' from JSON`,
179
176
  );
180
177
  }
181
178
 
@@ -224,7 +221,7 @@ export const PostV2AgentsA2aResponseBody$inboundSchema: z.ZodType<
224
221
  status: z.string(),
225
222
  version_hash: z.string().optional(),
226
223
  path: z.string(),
227
- metrics: z.lazy(() => PostV2AgentsA2aMetrics$inboundSchema),
224
+ metrics: z.lazy(() => Metrics$inboundSchema),
228
225
  memory_stores: z.array(z.string()),
229
226
  team_of_agents: z.array(z.any()),
230
227
  created: z.string().optional(),
@@ -173,7 +173,7 @@ export const RequestBody3$outboundSchema: z.ZodType<
173
173
  humanReviewId: z.string(),
174
174
  source: PostV2FeedbackEvaluationRequestBodyRequestSource$outboundSchema
175
175
  .default("orq"),
176
- reviewedAt: z.date().default(() => new Date("2026-03-28T09:40:36.204Z"))
176
+ reviewedAt: z.date().default(() => new Date("2026-04-01T06:57:40.463Z"))
177
177
  .transform(v => v.toISOString()),
178
178
  type: z.literal("string_array"),
179
179
  values: z.array(z.string()),
@@ -225,7 +225,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
225
225
  source: PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default(
226
226
  "orq",
227
227
  ),
228
- reviewedAt: z.date().default(() => new Date("2026-03-28T09:40:36.203Z"))
228
+ reviewedAt: z.date().default(() => new Date("2026-04-01T06:57:40.454Z"))
229
229
  .transform(v => v.toISOString()),
230
230
  type: z.literal("number"),
231
231
  value: z.number(),
@@ -275,7 +275,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
275
275
  evaluationType: EvaluationType$outboundSchema,
276
276
  humanReviewId: z.string(),
277
277
  source: RequestBodySource$outboundSchema.default("orq"),
278
- reviewedAt: z.date().default(() => new Date("2026-03-28T09:40:36.202Z"))
278
+ reviewedAt: z.date().default(() => new Date("2026-04-01T06:57:40.454Z"))
279
279
  .transform(v => v.toISOString()),
280
280
  type: z.literal("string"),
281
281
  value: z.string(),
@@ -548,7 +548,7 @@ export const RequestBody6$outboundSchema: z.ZodType<
548
548
  RequestBody6
549
549
  > = z.object({
550
550
  type: z.literal("text"),
551
- key: z.string().default("orq_01kmsx27sc"),
551
+ key: z.string().default("orq_01kn3xas59"),
552
552
  displayName: z.string(),
553
553
  description: z.string(),
554
554
  projectId: z.string().optional(),
@@ -611,7 +611,7 @@ export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
611
611
  z.object({
612
612
  type: z.literal("single_select"),
613
613
  options: z.array(z.lazy(() => RequestBodyOptions$outboundSchema)),
614
- key: z.string().default("orq_01kmsx27sb"),
614
+ key: z.string().default("orq_01kn3xas58"),
615
615
  displayName: z.string(),
616
616
  description: z.string(),
617
617
  projectId: z.string().optional(),
@@ -672,7 +672,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
672
672
  > = z.object({
673
673
  type: z.literal("multi_select"),
674
674
  options: z.array(z.lazy(() => Options$outboundSchema)),
675
- key: z.string().default("orq_01kmsx27s9"),
675
+ key: z.string().default("orq_01kn3xas56"),
676
676
  displayName: z.string(),
677
677
  description: z.string(),
678
678
  projectId: z.string().optional(),
@@ -725,7 +725,7 @@ export const PostV2HumanEvalsRequestBody3$outboundSchema: z.ZodType<
725
725
  > = z.object({
726
726
  type: z.literal("range"),
727
727
  config: z.lazy(() => Config$outboundSchema),
728
- key: z.string().default("orq_01kmsx27s7"),
728
+ key: z.string().default("orq_01kn3xas54"),
729
729
  displayName: z.string(),
730
730
  description: z.string(),
731
731
  projectId: z.string().optional(),
@@ -762,7 +762,7 @@ export const PostV2HumanEvalsRequestBody2$outboundSchema: z.ZodType<
762
762
  PostV2HumanEvalsRequestBody2
763
763
  > = z.object({
764
764
  type: z.literal("correction"),
765
- key: z.string().default("orq_01kmsx27ry"),
765
+ key: z.string().default("orq_01kn3xas4r"),
766
766
  displayName: z.string(),
767
767
  description: z.string(),
768
768
  projectId: z.string().optional(),
@@ -799,7 +799,7 @@ export const PostV2HumanEvalsRequestBody1$outboundSchema: z.ZodType<
799
799
  PostV2HumanEvalsRequestBody1
800
800
  > = z.object({
801
801
  type: z.literal("boolean"),
802
- key: z.string().default("orq_01kmsx27rx"),
802
+ key: z.string().default("orq_01kn3xas4p"),
803
803
  displayName: z.string(),
804
804
  description: z.string(),
805
805
  projectId: z.string().optional(),
@@ -861,7 +861,7 @@ export const PostV2HumanEvalsResponseBody6$inboundSchema: z.ZodType<
861
861
  > = z.object({
862
862
  type: z.literal("text"),
863
863
  id: z.string(),
864
- key: z.string().default("orq_01kmsx27rv"),
864
+ key: z.string().default("orq_01kn3xas4n"),
865
865
  display_name: z.string(),
866
866
  description: z.string(),
867
867
  domain_id: z.string().optional(),
@@ -936,7 +936,7 @@ export const PostV2HumanEvalsResponseBody5$inboundSchema: z.ZodType<
936
936
  z.lazy(() => PostV2HumanEvalsResponseBodyResponseOptions$inboundSchema),
937
937
  ),
938
938
  id: z.string(),
939
- key: z.string().default("orq_01kmsx27rt"),
939
+ key: z.string().default("orq_01kn3xas4k"),
940
940
  display_name: z.string(),
941
941
  description: z.string(),
942
942
  domain_id: z.string().optional(),
@@ -1006,7 +1006,7 @@ export const PostV2HumanEvalsResponseBody4$inboundSchema: z.ZodType<
1006
1006
  z.lazy(() => PostV2HumanEvalsResponseBodyOptions$inboundSchema),
1007
1007
  ),
1008
1008
  id: z.string(),
1009
- key: z.string().default("orq_01kmsx27rr"),
1009
+ key: z.string().default("orq_01kn3xas4h"),
1010
1010
  display_name: z.string(),
1011
1011
  description: z.string(),
1012
1012
  domain_id: z.string().optional(),
@@ -1065,7 +1065,7 @@ export const PostV2HumanEvalsResponseBody3$inboundSchema: z.ZodType<
1065
1065
  type: z.literal("range"),
1066
1066
  config: z.lazy(() => PostV2HumanEvalsResponseBodyConfig$inboundSchema),
1067
1067
  id: z.string(),
1068
- key: z.string().default("orq_01kmsx27rp"),
1068
+ key: z.string().default("orq_01kn3xas4e"),
1069
1069
  display_name: z.string(),
1070
1070
  description: z.string(),
1071
1071
  domain_id: z.string().optional(),
@@ -1102,7 +1102,7 @@ export const PostV2HumanEvalsResponseBody2$inboundSchema: z.ZodType<
1102
1102
  > = z.object({
1103
1103
  type: z.literal("correction"),
1104
1104
  id: z.string(),
1105
- key: z.string().default("orq_01kmsx27rm"),
1105
+ key: z.string().default("orq_01kn3xas4c"),
1106
1106
  display_name: z.string(),
1107
1107
  description: z.string(),
1108
1108
  domain_id: z.string().optional(),
@@ -1139,7 +1139,7 @@ export const PostV2HumanEvalsResponseBody1$inboundSchema: z.ZodType<
1139
1139
  > = z.object({
1140
1140
  type: z.literal("boolean"),
1141
1141
  id: z.string(),
1142
- key: z.string().default("orq_01kmsx27rk"),
1142
+ key: z.string().default("orq_01kn3xas4b"),
1143
1143
  display_name: z.string(),
1144
1144
  description: z.string(),
1145
1145
  domain_id: z.string().optional(),
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
271
271
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
272
272
  .optional(),
273
273
  updated: z.string().datetime({ offset: true }).default(
274
- "2026-03-28T09:40:18.790Z",
274
+ "2026-04-01T06:57:21.910Z",
275
275
  ).transform(v => new Date(v)),
276
276
  filter_type: z.literal("name"),
277
277
  filter_value: z.string(),
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
316
316
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
317
317
  .optional(),
318
318
  updated: z.string().datetime({ offset: true }).default(
319
- "2026-03-28T09:40:18.790Z",
319
+ "2026-04-01T06:57:21.910Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(z.string()),
@@ -64,15 +64,6 @@ export type RetrieveAgentRequestSource = ClosedEnum<
64
64
  typeof RetrieveAgentRequestSource
65
65
  >;
66
66
 
67
- export const RetrieveAgentRequestEngine = {
68
- Text: "text",
69
- Jinja: "jinja",
70
- Mustache: "mustache",
71
- } as const;
72
- export type RetrieveAgentRequestEngine = ClosedEnum<
73
- typeof RetrieveAgentRequestEngine
74
- >;
75
-
76
67
  /**
77
68
  * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
78
69
  */
@@ -1147,7 +1138,6 @@ export type RetrieveAgentRequestResponseBody = {
1147
1138
  */
1148
1139
  knowledgeBases?: Array<RetrieveAgentRequestKnowledgeBases> | undefined;
1149
1140
  source?: RetrieveAgentRequestSource | undefined;
1150
- engine: RetrieveAgentRequestEngine;
1151
1141
  /**
1152
1142
  * Agent type: internal (Orquesta-managed) or a2a (external A2A-compliant)
1153
1143
  */
@@ -1269,11 +1259,6 @@ export const RetrieveAgentRequestSource$inboundSchema: z.ZodNativeEnum<
1269
1259
  typeof RetrieveAgentRequestSource
1270
1260
  > = z.nativeEnum(RetrieveAgentRequestSource);
1271
1261
 
1272
- /** @internal */
1273
- export const RetrieveAgentRequestEngine$inboundSchema: z.ZodNativeEnum<
1274
- typeof RetrieveAgentRequestEngine
1275
- > = z.nativeEnum(RetrieveAgentRequestEngine);
1276
-
1277
1262
  /** @internal */
1278
1263
  export const RetrieveAgentRequestType$inboundSchema: z.ZodNativeEnum<
1279
1264
  typeof RetrieveAgentRequestType
@@ -2807,7 +2792,6 @@ export const RetrieveAgentRequestResponseBody$inboundSchema: z.ZodType<
2807
2792
  z.lazy(() => RetrieveAgentRequestKnowledgeBases$inboundSchema),
2808
2793
  ).optional(),
2809
2794
  source: RetrieveAgentRequestSource$inboundSchema.optional(),
2810
- engine: RetrieveAgentRequestEngine$inboundSchema.default("text"),
2811
2795
  type: RetrieveAgentRequestType$inboundSchema.default("internal"),
2812
2796
  role: z.string(),
2813
2797
  description: z.string(),
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
1207
1207
  .default("orq"),
1208
1208
  reviewed_by_id: z.string(),
1209
1209
  reviewed_at: z.string().datetime({ offset: true }).default(
1210
- "2026-03-28T09:40:36.036Z",
1210
+ "2026-04-01T06:57:40.294Z",
1211
1211
  ).transform(v => new Date(v)),
1212
1212
  type: z.literal("string_array"),
1213
1213
  values: z.array(z.string()),
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
1255
1255
  ),
1256
1256
  reviewed_by_id: z.string(),
1257
1257
  reviewed_at: z.string().datetime({ offset: true }).default(
1258
- "2026-03-28T09:40:36.035Z",
1258
+ "2026-04-01T06:57:40.293Z",
1259
1259
  ).transform(v => new Date(v)),
1260
1260
  type: z.literal("number"),
1261
1261
  value: z.number(),
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
1300
1300
  source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
1301
1301
  reviewed_by_id: z.string(),
1302
1302
  reviewed_at: z.string().datetime({ offset: true }).default(
1303
- "2026-03-28T09:40:36.034Z",
1303
+ "2026-04-01T06:57:40.293Z",
1304
1304
  ).transform(v => new Date(v)),
1305
1305
  type: z.literal("string"),
1306
1306
  value: z.string(),
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
1377
1377
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1378
1378
  .optional(),
1379
1379
  updated: z.string().datetime({ offset: true }).default(
1380
- "2026-03-28T09:40:18.790Z",
1380
+ "2026-04-01T06:57:21.910Z",
1381
1381
  ).transform(v => new Date(v)),
1382
1382
  }).transform((v) => {
1383
1383
  return remap$(v, {
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
126
126
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
127
127
  .optional(),
128
128
  updated: z.string().datetime({ offset: true }).default(
129
- "2026-03-28T09:40:18.790Z",
129
+ "2026-04-01T06:57:21.910Z",
130
130
  ).transform(v => new Date(v)),
131
131
  }).transform((v) => {
132
132
  return remap$(v, {
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
118
118
  z.ZodTypeDef,
119
119
  unknown
120
120
  > = z.object({
121
- _id: z.string().default("01KMSX27G0TVFR8P9XGXHRNC1C"),
121
+ _id: z.string().default("01KN3XARW0QWDQ37WKBAMP3YHC"),
122
122
  display_name: z.string(),
123
123
  description: z.string().optional(),
124
124
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -13,29 +13,6 @@ export type RetrieveIdentityRequest = {
13
13
  * Unique identity id or external id
14
14
  */
15
15
  id: string;
16
- /**
17
- * Include usage metrics of the last 30 days for the identity.
18
- */
19
- includeMetrics?: boolean | null | undefined;
20
- };
21
-
22
- export type Metrics = {
23
- /**
24
- * Total cost in dollars of the last 30 days
25
- */
26
- totalCost: number;
27
- /**
28
- * Total tokens of the last 30 days
29
- */
30
- totalTokens: number;
31
- /**
32
- * Total requests of the last 30 days
33
- */
34
- totalRequests: number;
35
- /**
36
- * Error rate of the last 30 days as a ratio (0–1)
37
- */
38
- errorRate: number;
39
16
  };
40
17
 
41
18
  /**
@@ -78,13 +55,11 @@ export type RetrieveIdentityResponseBody = {
78
55
  * The date and time the resource was last updated
79
56
  */
80
57
  updated: Date;
81
- metrics?: Metrics | null | undefined;
82
58
  };
83
59
 
84
60
  /** @internal */
85
61
  export type RetrieveIdentityRequest$Outbound = {
86
62
  id: string;
87
- include_metrics: boolean | null;
88
63
  };
89
64
 
90
65
  /** @internal */
@@ -94,11 +69,6 @@ export const RetrieveIdentityRequest$outboundSchema: z.ZodType<
94
69
  RetrieveIdentityRequest
95
70
  > = z.object({
96
71
  id: z.string(),
97
- includeMetrics: z.nullable(z.boolean().default(false)),
98
- }).transform((v) => {
99
- return remap$(v, {
100
- includeMetrics: "include_metrics",
101
- });
102
72
  });
103
73
 
104
74
  export function retrieveIdentityRequestToJSON(
@@ -109,32 +79,6 @@ export function retrieveIdentityRequestToJSON(
109
79
  );
110
80
  }
111
81
 
112
- /** @internal */
113
- export const Metrics$inboundSchema: z.ZodType<Metrics, z.ZodTypeDef, unknown> =
114
- z.object({
115
- total_cost: z.number(),
116
- total_tokens: z.number(),
117
- total_requests: z.number(),
118
- error_rate: z.number(),
119
- }).transform((v) => {
120
- return remap$(v, {
121
- "total_cost": "totalCost",
122
- "total_tokens": "totalTokens",
123
- "total_requests": "totalRequests",
124
- "error_rate": "errorRate",
125
- });
126
- });
127
-
128
- export function metricsFromJSON(
129
- jsonString: string,
130
- ): SafeParseResult<Metrics, SDKValidationError> {
131
- return safeParse(
132
- jsonString,
133
- (x) => Metrics$inboundSchema.parse(JSON.parse(x)),
134
- `Failed to parse 'Metrics' from JSON`,
135
- );
136
- }
137
-
138
82
  /** @internal */
139
83
  export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
140
84
  RetrieveIdentityResponseBody,
@@ -151,9 +95,8 @@ export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
151
95
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
152
96
  .optional(),
153
97
  updated: z.string().datetime({ offset: true }).default(
154
- "2026-03-28T09:40:18.790Z",
98
+ "2026-04-01T06:57:21.910Z",
155
99
  ).transform(v => new Date(v)),
156
- metrics: z.nullable(z.lazy(() => Metrics$inboundSchema)).optional(),
157
100
  }).transform((v) => {
158
101
  return remap$(v, {
159
102
  "_id": "id",
@@ -754,7 +754,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
754
754
  z.ZodTypeDef,
755
755
  unknown
756
756
  > = z.object({
757
- _id: z.string().default("tool_01KMSX27D0MF4VEWRVXYR3KX91"),
757
+ _id: z.string().default("tool_01KN3XARRWBH5EZMBZ8GMNMART"),
758
758
  path: z.string(),
759
759
  key: z.string(),
760
760
  display_name: z.string().optional(),
@@ -862,7 +862,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
862
862
  z.ZodTypeDef,
863
863
  unknown
864
864
  > = z.object({
865
- id: z.string().default("01KMSX27D06WSN09GGVWPXCZ0T"),
865
+ id: z.string().default("01KN3XARRVCW8B9C7Z1QQQA03C"),
866
866
  name: z.string(),
867
867
  description: z.string().optional(),
868
868
  schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
@@ -918,7 +918,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
918
918
  z.ZodTypeDef,
919
919
  unknown
920
920
  > = z.object({
921
- _id: z.string().default("tool_01KMSX27CZ5QB3YJ4Z6NF5Y227"),
921
+ _id: z.string().default("tool_01KN3XARRTCH1K29R9D4VNFZEY"),
922
922
  path: z.string(),
923
923
  key: z.string(),
924
924
  display_name: z.string().optional(),
@@ -1111,7 +1111,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
1111
1111
  z.ZodTypeDef,
1112
1112
  unknown
1113
1113
  > = z.object({
1114
- _id: z.string().default("tool_01KMSX27CX53E579WKRC43DYXN"),
1114
+ _id: z.string().default("tool_01KN3XARRRG448X5TTJY41HYXM"),
1115
1115
  path: z.string(),
1116
1116
  key: z.string(),
1117
1117
  display_name: z.string().optional(),
@@ -1209,7 +1209,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
1209
1209
  z.ZodTypeDef,
1210
1210
  unknown
1211
1211
  > = z.object({
1212
- _id: z.string().default("tool_01KMSX27CVDJMHA8XE2YBN5TQ8"),
1212
+ _id: z.string().default("tool_01KN3XARRQY89ZJ033R0B5J40R"),
1213
1213
  path: z.string(),
1214
1214
  key: z.string(),
1215
1215
  display_name: z.string().optional(),
@@ -1317,7 +1317,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
1317
1317
  z.ZodTypeDef,
1318
1318
  unknown
1319
1319
  > = z.object({
1320
- _id: z.string().default("tool_01KMSX27CTDZ0AAH4M24ZK7FWT"),
1320
+ _id: z.string().default("tool_01KN3XARRN7FYHR3EDNGMMY9Z7"),
1321
1321
  path: z.string(),
1322
1322
  key: z.string(),
1323
1323
  display_name: z.string().optional(),
@@ -1643,19 +1643,6 @@ export type RunAgentSettings = {
1643
1643
  guardrails?: Array<RunAgentGuardrails> | undefined;
1644
1644
  };
1645
1645
 
1646
- /**
1647
- * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1648
- */
1649
- export const RunAgentEngine = {
1650
- Text: "text",
1651
- Jinja: "jinja",
1652
- Mustache: "mustache",
1653
- } as const;
1654
- /**
1655
- * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1656
- */
1657
- export type RunAgentEngine = ClosedEnum<typeof RunAgentEngine>;
1658
-
1659
1646
  export type RunAgentRequestBody = {
1660
1647
  /**
1661
1648
  * A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
@@ -1744,10 +1731,6 @@ export type RunAgentRequestBody = {
1744
1731
  * Optional metadata for the agent run as key-value pairs that will be included in traces
1745
1732
  */
1746
1733
  metadata?: { [k: string]: any } | undefined;
1747
- /**
1748
- * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1749
- */
1750
- engine?: RunAgentEngine | undefined;
1751
1734
  };
1752
1735
 
1753
1736
  /**
@@ -3628,7 +3611,7 @@ export const Tools$outboundSchema: z.ZodType<
3628
3611
  z.ZodTypeDef,
3629
3612
  Tools
3630
3613
  > = z.object({
3631
- id: z.string().default("01KMSX270CY4JB8A1WTKZ9T61Q"),
3614
+ id: z.string().default("01KN3XARBNRNPWM3J08JQKJKGF"),
3632
3615
  name: z.string(),
3633
3616
  description: z.string().optional(),
3634
3617
  schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
@@ -4755,11 +4738,6 @@ export function runAgentSettingsToJSON(
4755
4738
  );
4756
4739
  }
4757
4740
 
4758
- /** @internal */
4759
- export const RunAgentEngine$outboundSchema: z.ZodNativeEnum<
4760
- typeof RunAgentEngine
4761
- > = z.nativeEnum(RunAgentEngine);
4762
-
4763
4741
  /** @internal */
4764
4742
  export type RunAgentRequestBody$Outbound = {
4765
4743
  key: string;
@@ -4784,7 +4762,6 @@ export type RunAgentRequestBody$Outbound = {
4784
4762
  team_of_agents?: Array<RunAgentTeamOfAgents$Outbound> | undefined;
4785
4763
  settings: RunAgentSettings$Outbound;
4786
4764
  metadata?: { [k: string]: any } | undefined;
4787
- engine: string;
4788
4765
  };
4789
4766
 
4790
4767
  /** @internal */
@@ -4823,7 +4800,6 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
4823
4800
  .optional(),
4824
4801
  settings: z.lazy(() => RunAgentSettings$outboundSchema),
4825
4802
  metadata: z.record(z.any()).optional(),
4826
- engine: RunAgentEngine$outboundSchema.default("text"),
4827
4803
  }).transform((v) => {
4828
4804
  return remap$(v, {
4829
4805
  taskId: "task_id",
@@ -161,19 +161,6 @@ export type StreamAgentMemory = {
161
161
  entityId: string;
162
162
  };
163
163
 
164
- /**
165
- * Override template engine for this invocation. If not provided, uses the agent default.
166
- */
167
- export const StreamAgentEngine = {
168
- Text: "text",
169
- Jinja: "jinja",
170
- Mustache: "mustache",
171
- } as const;
172
- /**
173
- * Override template engine for this invocation. If not provided, uses the agent default.
174
- */
175
- export type StreamAgentEngine = ClosedEnum<typeof StreamAgentEngine>;
176
-
177
164
  /**
178
165
  * Configuration options for the agent invocation
179
166
  */
@@ -219,10 +206,6 @@ export type StreamAgentRequestBody = {
219
206
  * Optional metadata for the agent invocation as key-value pairs that will be included in traces
220
207
  */
221
208
  metadata?: { [k: string]: any } | undefined;
222
- /**
223
- * Override template engine for this invocation. If not provided, uses the agent default.
224
- */
225
- engine?: StreamAgentEngine | undefined;
226
209
  /**
227
210
  * Configuration options for the agent invocation
228
211
  */
@@ -507,11 +490,6 @@ export function streamAgentMemoryToJSON(
507
490
  );
508
491
  }
509
492
 
510
- /** @internal */
511
- export const StreamAgentEngine$outboundSchema: z.ZodNativeEnum<
512
- typeof StreamAgentEngine
513
- > = z.nativeEnum(StreamAgentEngine);
514
-
515
493
  /** @internal */
516
494
  export type StreamAgentConfiguration$Outbound = {
517
495
  blocking: boolean;
@@ -544,7 +522,6 @@ export type StreamAgentRequestBody$Outbound = {
544
522
  thread?: StreamAgentThread$Outbound | undefined;
545
523
  memory?: StreamAgentMemory$Outbound | undefined;
546
524
  metadata?: { [k: string]: any } | undefined;
547
- engine?: string | undefined;
548
525
  configuration?: StreamAgentConfiguration$Outbound | undefined;
549
526
  stream_timeout_seconds?: number | undefined;
550
527
  };
@@ -563,7 +540,6 @@ export const StreamAgentRequestBody$outboundSchema: z.ZodType<
563
540
  thread: z.lazy(() => StreamAgentThread$outboundSchema).optional(),
564
541
  memory: z.lazy(() => StreamAgentMemory$outboundSchema).optional(),
565
542
  metadata: z.record(z.any()).optional(),
566
- engine: StreamAgentEngine$outboundSchema.optional(),
567
543
  configuration: z.lazy(() => StreamAgentConfiguration$outboundSchema)
568
544
  .optional(),
569
545
  streamTimeoutSeconds: z.number().optional(),
@@ -1680,19 +1680,6 @@ export type StreamRunAgentSettings = {
1680
1680
  guardrails?: Array<StreamRunAgentGuardrails> | undefined;
1681
1681
  };
1682
1682
 
1683
- /**
1684
- * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1685
- */
1686
- export const StreamRunAgentEngine = {
1687
- Text: "text",
1688
- Jinja: "jinja",
1689
- Mustache: "mustache",
1690
- } as const;
1691
- /**
1692
- * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1693
- */
1694
- export type StreamRunAgentEngine = ClosedEnum<typeof StreamRunAgentEngine>;
1695
-
1696
1683
  export type StreamRunAgentRequestBody = {
1697
1684
  /**
1698
1685
  * A unique identifier for the agent. This key must be unique within the same workspace and cannot be reused. When executing the agent, this key determines if the agent already exists. If the agent version differs, a new version is created at the end of the execution, except for the task. All agent parameters are evaluated to decide if a new version is needed.
@@ -1781,10 +1768,6 @@ export type StreamRunAgentRequestBody = {
1781
1768
  * Optional metadata for the agent run as key-value pairs that will be included in traces
1782
1769
  */
1783
1770
  metadata?: { [k: string]: any } | undefined;
1784
- /**
1785
- * Template engine for variable interpolation. Text uses {{variable}} syntax, Jinja supports loops/conditionals/filters, Mustache uses {{#section}} syntax.
1786
- */
1787
- engine?: StreamRunAgentEngine | undefined;
1788
1771
  /**
1789
1772
  * Stream timeout in seconds (1-3600). Default: 1800 (30 minutes)
1790
1773
  */
@@ -3675,7 +3658,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
3675
3658
  z.ZodTypeDef,
3676
3659
  AgentToolInputRunTools
3677
3660
  > = z.object({
3678
- id: z.string().default("01KMSX272CGA3PEWJZS10FN8MK"),
3661
+ id: z.string().default("01KN3XARDN7A8434EDD4BM2D0J"),
3679
3662
  name: z.string(),
3680
3663
  description: z.string().optional(),
3681
3664
  schema: z.lazy(() =>
@@ -4951,11 +4934,6 @@ export function streamRunAgentSettingsToJSON(
4951
4934
  );
4952
4935
  }
4953
4936
 
4954
- /** @internal */
4955
- export const StreamRunAgentEngine$outboundSchema: z.ZodNativeEnum<
4956
- typeof StreamRunAgentEngine
4957
- > = z.nativeEnum(StreamRunAgentEngine);
4958
-
4959
4937
  /** @internal */
4960
4938
  export type StreamRunAgentRequestBody$Outbound = {
4961
4939
  key: string;
@@ -4980,7 +4958,6 @@ export type StreamRunAgentRequestBody$Outbound = {
4980
4958
  team_of_agents?: Array<StreamRunAgentTeamOfAgents$Outbound> | undefined;
4981
4959
  settings: StreamRunAgentSettings$Outbound;
4982
4960
  metadata?: { [k: string]: any } | undefined;
4983
- engine: string;
4984
4961
  stream_timeout_seconds?: number | undefined;
4985
4962
  };
4986
4963
 
@@ -5021,7 +4998,6 @@ export const StreamRunAgentRequestBody$outboundSchema: z.ZodType<
5021
4998
  .optional(),
5022
4999
  settings: z.lazy(() => StreamRunAgentSettings$outboundSchema),
5023
5000
  metadata: z.record(z.any()).optional(),
5024
- engine: StreamRunAgentEngine$outboundSchema.default("text"),
5025
5001
  streamTimeoutSeconds: z.number().optional(),
5026
5002
  }).transform((v) => {
5027
5003
  return remap$(v, {