@orq-ai/node 4.7.0-rc.22 → 4.7.0-rc.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +2 -1
  2. package/funcs/identitiesRetrieve.d.ts +1 -1
  3. package/funcs/identitiesRetrieve.d.ts.map +1 -1
  4. package/funcs/identitiesRetrieve.js +6 -2
  5. package/funcs/identitiesRetrieve.js.map +1 -1
  6. package/jsr.json +1 -1
  7. package/lib/config.d.ts +2 -2
  8. package/lib/config.js +2 -2
  9. package/models/components/reasoningpart.js +1 -1
  10. package/models/errors/retrieveidentity.d.ts +27 -0
  11. package/models/errors/retrieveidentity.d.ts.map +1 -1
  12. package/models/errors/retrieveidentity.js +30 -1
  13. package/models/errors/retrieveidentity.js.map +1 -1
  14. package/models/operations/createcontact.js +1 -1
  15. package/models/operations/createdataset.js +1 -1
  16. package/models/operations/createdatasetitem.js +4 -4
  17. package/models/operations/createdatasource.js +1 -1
  18. package/models/operations/createeval.js +16 -16
  19. package/models/operations/createidentity.js +1 -1
  20. package/models/operations/createtool.js +6 -6
  21. package/models/operations/getalltools.js +6 -6
  22. package/models/operations/getevals.js +16 -16
  23. package/models/operations/getv2humanevals.js +6 -6
  24. package/models/operations/getv2humanevalsets.js +2 -2
  25. package/models/operations/getv2humanevalsetsid.js +2 -2
  26. package/models/operations/getv2humanevalsid.js +6 -6
  27. package/models/operations/listdatasetdatapoints.js +4 -4
  28. package/models/operations/listdatasets.js +1 -1
  29. package/models/operations/listdatasources.js +1 -1
  30. package/models/operations/listidentities.js +1 -1
  31. package/models/operations/patchv2humanevalsetsid.js +2 -2
  32. package/models/operations/patchv2humanevalsid.js +12 -12
  33. package/models/operations/postv2agentsa2a.d.ts +4 -4
  34. package/models/operations/postv2agentsa2a.d.ts.map +1 -1
  35. package/models/operations/postv2agentsa2a.js +6 -6
  36. package/models/operations/postv2agentsa2a.js.map +1 -1
  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.d.ts +27 -0
  44. package/models/operations/retrieveidentity.d.ts.map +1 -1
  45. package/models/operations/retrieveidentity.js +26 -2
  46. package/models/operations/retrieveidentity.js.map +1 -1
  47. package/models/operations/retrievetool.js +6 -6
  48. package/models/operations/runagent.js +1 -1
  49. package/models/operations/streamrunagent.js +1 -1
  50. package/models/operations/updatedatapoint.js +4 -4
  51. package/models/operations/updatedataset.js +1 -1
  52. package/models/operations/updatedatasource.js +1 -1
  53. package/models/operations/updateeval.js +16 -16
  54. package/models/operations/updateidentity.js +1 -1
  55. package/models/operations/updatetool.js +7 -7
  56. package/package.json +1 -1
  57. package/src/funcs/identitiesRetrieve.ts +11 -2
  58. package/src/lib/config.ts +2 -2
  59. package/src/models/components/reasoningpart.ts +1 -1
  60. package/src/models/errors/retrieveidentity.ts +56 -0
  61. package/src/models/operations/createcontact.ts +1 -1
  62. package/src/models/operations/createdataset.ts +1 -1
  63. package/src/models/operations/createdatasetitem.ts +4 -4
  64. package/src/models/operations/createdatasource.ts +1 -1
  65. package/src/models/operations/createeval.ts +16 -16
  66. package/src/models/operations/createidentity.ts +1 -1
  67. package/src/models/operations/createtool.ts +6 -6
  68. package/src/models/operations/getalltools.ts +6 -6
  69. package/src/models/operations/getevals.ts +16 -16
  70. package/src/models/operations/getv2humanevals.ts +6 -6
  71. package/src/models/operations/getv2humanevalsets.ts +2 -2
  72. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  73. package/src/models/operations/getv2humanevalsid.ts +6 -6
  74. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  75. package/src/models/operations/listdatasets.ts +1 -1
  76. package/src/models/operations/listdatasources.ts +1 -1
  77. package/src/models/operations/listidentities.ts +1 -1
  78. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  79. package/src/models/operations/patchv2humanevalsid.ts +12 -12
  80. package/src/models/operations/postv2agentsa2a.ts +17 -14
  81. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  82. package/src/models/operations/postv2humanevals.ts +12 -12
  83. package/src/models/operations/postv2humanevalsets.ts +2 -2
  84. package/src/models/operations/retrievedatapoint.ts +4 -4
  85. package/src/models/operations/retrievedataset.ts +1 -1
  86. package/src/models/operations/retrievedatasource.ts +1 -1
  87. package/src/models/operations/retrieveidentity.ts +58 -1
  88. package/src/models/operations/retrievetool.ts +6 -6
  89. package/src/models/operations/runagent.ts +1 -1
  90. package/src/models/operations/streamrunagent.ts +1 -1
  91. package/src/models/operations/updatedatapoint.ts +4 -4
  92. package/src/models/operations/updatedataset.ts +1 -1
  93. package/src/models/operations/updatedatasource.ts +1 -1
  94. package/src/models/operations/updateeval.ts +16 -16
  95. package/src/models/operations/updateidentity.ts +1 -1
  96. package/src/models/operations/updatetool.ts +7 -7
@@ -614,7 +614,7 @@ export type Six$Outbound = {
614
614
  export const Six$outboundSchema: z.ZodType<Six$Outbound, z.ZodTypeDef, Six> = z
615
615
  .object({
616
616
  type: z.literal("text"),
617
- key: z.string().default("orq_01kmmwcwwf"),
617
+ key: z.string().default("orq_01kmpye8b8"),
618
618
  displayName: z.string(),
619
619
  description: z.string(),
620
620
  createdById: z.string().optional(),
@@ -692,7 +692,7 @@ export const RequestBody5$outboundSchema: z.ZodType<
692
692
  options: z.array(
693
693
  z.lazy(() => PatchV2HumanEvalsIdRequestBodyOptionsInput$outboundSchema),
694
694
  ),
695
- key: z.string().default("orq_01kmmwcwwe"),
695
+ key: z.string().default("orq_01kmpye8b6"),
696
696
  displayName: z.string(),
697
697
  description: z.string(),
698
698
  createdById: z.string().optional(),
@@ -768,7 +768,7 @@ export const PatchV2HumanEvalsIdRequestBody4$outboundSchema: z.ZodType<
768
768
  options: z.array(
769
769
  z.lazy(() => PatchV2HumanEvalsIdRequestBodyOptions$outboundSchema),
770
770
  ),
771
- key: z.string().default("orq_01kmmwcwwc"),
771
+ key: z.string().default("orq_01kmpye8b2"),
772
772
  displayName: z.string(),
773
773
  description: z.string(),
774
774
  createdById: z.string().optional(),
@@ -837,7 +837,7 @@ export const PatchV2HumanEvalsIdRequestBody3$outboundSchema: z.ZodType<
837
837
  > = z.object({
838
838
  type: z.literal("range"),
839
839
  config: z.lazy(() => RequestBodyConfig$outboundSchema),
840
- key: z.string().default("orq_01kmmwcwwa"),
840
+ key: z.string().default("orq_01kmpye8b0"),
841
841
  displayName: z.string(),
842
842
  description: z.string(),
843
843
  createdById: z.string().optional(),
@@ -880,7 +880,7 @@ export const PatchV2HumanEvalsIdRequestBody2$outboundSchema: z.ZodType<
880
880
  PatchV2HumanEvalsIdRequestBody2
881
881
  > = z.object({
882
882
  type: z.literal("correction"),
883
- key: z.string().default("orq_01kmmwcww9"),
883
+ key: z.string().default("orq_01kmpye8at"),
884
884
  displayName: z.string(),
885
885
  description: z.string(),
886
886
  createdById: z.string().optional(),
@@ -923,7 +923,7 @@ export const PatchV2HumanEvalsIdRequestBody1$outboundSchema: z.ZodType<
923
923
  PatchV2HumanEvalsIdRequestBody1
924
924
  > = z.object({
925
925
  type: z.literal("boolean"),
926
- key: z.string().default("orq_01kmmwcww8"),
926
+ key: z.string().default("orq_01kmpye8as"),
927
927
  displayName: z.string(),
928
928
  description: z.string(),
929
929
  createdById: z.string().optional(),
@@ -1031,7 +1031,7 @@ export const PatchV2HumanEvalsIdResponseBody6$inboundSchema: z.ZodType<
1031
1031
  > = z.object({
1032
1032
  type: z.literal("text"),
1033
1033
  id: z.string(),
1034
- key: z.string().default("orq_01kmmwcww6"),
1034
+ key: z.string().default("orq_01kmpye8aq"),
1035
1035
  display_name: z.string(),
1036
1036
  description: z.string(),
1037
1037
  domain_id: z.string().optional(),
@@ -1106,7 +1106,7 @@ export const PatchV2HumanEvalsIdResponseBody5$inboundSchema: z.ZodType<
1106
1106
  z.lazy(() => PatchV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema),
1107
1107
  ),
1108
1108
  id: z.string(),
1109
- key: z.string().default("orq_01kmmwcww4"),
1109
+ key: z.string().default("orq_01kmpye8ap"),
1110
1110
  display_name: z.string(),
1111
1111
  description: z.string(),
1112
1112
  domain_id: z.string().optional(),
@@ -1175,7 +1175,7 @@ export const PatchV2HumanEvalsIdResponseBody4$inboundSchema: z.ZodType<
1175
1175
  z.lazy(() => PatchV2HumanEvalsIdResponseBodyOptions$inboundSchema),
1176
1176
  ),
1177
1177
  id: z.string(),
1178
- key: z.string().default("orq_01kmmwcww2"),
1178
+ key: z.string().default("orq_01kmpye8am"),
1179
1179
  display_name: z.string(),
1180
1180
  description: z.string(),
1181
1181
  domain_id: z.string().optional(),
@@ -1234,7 +1234,7 @@ export const PatchV2HumanEvalsIdResponseBody3$inboundSchema: z.ZodType<
1234
1234
  type: z.literal("range"),
1235
1235
  config: z.lazy(() => PatchV2HumanEvalsIdResponseBodyConfig$inboundSchema),
1236
1236
  id: z.string(),
1237
- key: z.string().default("orq_01kmmwcww0"),
1237
+ key: z.string().default("orq_01kmpye8ah"),
1238
1238
  display_name: z.string(),
1239
1239
  description: z.string(),
1240
1240
  domain_id: z.string().optional(),
@@ -1271,7 +1271,7 @@ export const PatchV2HumanEvalsIdResponseBody2$inboundSchema: z.ZodType<
1271
1271
  > = z.object({
1272
1272
  type: z.literal("correction"),
1273
1273
  id: z.string(),
1274
- key: z.string().default("orq_01kmmwcwvz"),
1274
+ key: z.string().default("orq_01kmpye8ag"),
1275
1275
  display_name: z.string(),
1276
1276
  description: z.string(),
1277
1277
  domain_id: z.string().optional(),
@@ -1308,7 +1308,7 @@ export const PatchV2HumanEvalsIdResponseBody1$inboundSchema: z.ZodType<
1308
1308
  > = z.object({
1309
1309
  type: z.literal("boolean"),
1310
1310
  id: z.string(),
1311
- key: z.string().default("orq_01kmmwcwvx"),
1311
+ key: z.string().default("orq_01kmpye8ae"),
1312
1312
  display_name: z.string(),
1313
1313
  description: z.string(),
1314
1314
  domain_id: z.string().optional(),
@@ -54,7 +54,7 @@ export const PostV2AgentsA2aType = {
54
54
  } as const;
55
55
  export type PostV2AgentsA2aType = ClosedEnum<typeof PostV2AgentsA2aType>;
56
56
 
57
- export type Metrics = {
57
+ export type PostV2AgentsA2aMetrics = {
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: Metrics;
86
+ metrics: PostV2AgentsA2aMetrics;
87
87
  memoryStores: Array<string>;
88
88
  teamOfAgents: Array<any>;
89
89
  created?: string | undefined;
@@ -157,22 +157,25 @@ export const PostV2AgentsA2aType$inboundSchema: z.ZodNativeEnum<
157
157
  > = z.nativeEnum(PostV2AgentsA2aType);
158
158
 
159
159
  /** @internal */
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
- });
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",
167
169
  });
170
+ });
168
171
 
169
- export function metricsFromJSON(
172
+ export function postV2AgentsA2aMetricsFromJSON(
170
173
  jsonString: string,
171
- ): SafeParseResult<Metrics, SDKValidationError> {
174
+ ): SafeParseResult<PostV2AgentsA2aMetrics, SDKValidationError> {
172
175
  return safeParse(
173
176
  jsonString,
174
- (x) => Metrics$inboundSchema.parse(JSON.parse(x)),
175
- `Failed to parse 'Metrics' from JSON`,
177
+ (x) => PostV2AgentsA2aMetrics$inboundSchema.parse(JSON.parse(x)),
178
+ `Failed to parse 'PostV2AgentsA2aMetrics' from JSON`,
176
179
  );
177
180
  }
178
181
 
@@ -221,7 +224,7 @@ export const PostV2AgentsA2aResponseBody$inboundSchema: z.ZodType<
221
224
  status: z.string(),
222
225
  version_hash: z.string().optional(),
223
226
  path: z.string(),
224
- metrics: z.lazy(() => Metrics$inboundSchema),
227
+ metrics: z.lazy(() => PostV2AgentsA2aMetrics$inboundSchema),
225
228
  memory_stores: z.array(z.string()),
226
229
  team_of_agents: z.array(z.any()),
227
230
  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-26T10:52:44.736Z"))
176
+ reviewedAt: z.date().default(() => new Date("2026-03-27T06:06:55.256Z"))
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-26T10:52:44.735Z"))
228
+ reviewedAt: z.date().default(() => new Date("2026-03-27T06:06:55.255Z"))
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-26T10:52:44.735Z"))
278
+ reviewedAt: z.date().default(() => new Date("2026-03-27T06:06:55.248Z"))
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_01kmmwcwvw"),
551
+ key: z.string().default("orq_01kmpye8ad"),
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_01kmmwcwvv"),
614
+ key: z.string().default("orq_01kmpye8ac"),
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_01kmmwcwvs"),
675
+ key: z.string().default("orq_01kmpye8aa"),
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_01kmmwcwvq"),
728
+ key: z.string().default("orq_01kmpye8a8"),
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_01kmmwcwvp"),
765
+ key: z.string().default("orq_01kmpye89z"),
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_01kmmwcwvn"),
802
+ key: z.string().default("orq_01kmpye89y"),
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_01kmmwcwvm"),
864
+ key: z.string().default("orq_01kmpye89x"),
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_01kmmwcwvj"),
939
+ key: z.string().default("orq_01kmpye89t"),
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_01kmmwcwvg"),
1009
+ key: z.string().default("orq_01kmpye89r"),
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_01kmmwcwvb"),
1068
+ key: z.string().default("orq_01kmpye89p"),
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_01kmmwcwv7"),
1105
+ key: z.string().default("orq_01kmpye89m"),
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_01kmmwcwv5"),
1142
+ key: z.string().default("orq_01kmpye89k"),
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-26T10:52:27.533Z",
274
+ "2026-03-27T06:06:37.886Z",
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-26T10:52:27.533Z",
319
+ "2026-03-27T06:06:37.886Z",
320
320
  ).transform(v => new Date(v)),
321
321
  filter_type: z.literal("span_type"),
322
322
  filter_values: z.array(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-26T10:52:44.575Z",
1210
+ "2026-03-27T06:06:55.099Z",
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-26T10:52:44.574Z",
1258
+ "2026-03-27T06:06:55.099Z",
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-26T10:52:44.574Z",
1303
+ "2026-03-27T06:06:55.098Z",
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-26T10:52:27.533Z",
1380
+ "2026-03-27T06:06:37.886Z",
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-26T10:52:27.533Z",
129
+ "2026-03-27T06:06:37.886Z",
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("01KMMWCWK3Z43ZXJ79M3J2QHYK"),
121
+ _id: z.string().default("01KMPYE81RGCFZJ8A5JMH2R08Q"),
122
122
  display_name: z.string(),
123
123
  description: z.string().optional(),
124
124
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -13,6 +13,29 @@ 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;
16
39
  };
17
40
 
18
41
  /**
@@ -55,11 +78,13 @@ export type RetrieveIdentityResponseBody = {
55
78
  * The date and time the resource was last updated
56
79
  */
57
80
  updated: Date;
81
+ metrics?: Metrics | null | undefined;
58
82
  };
59
83
 
60
84
  /** @internal */
61
85
  export type RetrieveIdentityRequest$Outbound = {
62
86
  id: string;
87
+ include_metrics: boolean | null;
63
88
  };
64
89
 
65
90
  /** @internal */
@@ -69,6 +94,11 @@ export const RetrieveIdentityRequest$outboundSchema: z.ZodType<
69
94
  RetrieveIdentityRequest
70
95
  > = z.object({
71
96
  id: z.string(),
97
+ includeMetrics: z.nullable(z.boolean().default(false)),
98
+ }).transform((v) => {
99
+ return remap$(v, {
100
+ includeMetrics: "include_metrics",
101
+ });
72
102
  });
73
103
 
74
104
  export function retrieveIdentityRequestToJSON(
@@ -79,6 +109,32 @@ export function retrieveIdentityRequestToJSON(
79
109
  );
80
110
  }
81
111
 
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
+
82
138
  /** @internal */
83
139
  export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
84
140
  RetrieveIdentityResponseBody,
@@ -95,8 +151,9 @@ export const RetrieveIdentityResponseBody$inboundSchema: z.ZodType<
95
151
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
96
152
  .optional(),
97
153
  updated: z.string().datetime({ offset: true }).default(
98
- "2026-03-26T10:52:27.533Z",
154
+ "2026-03-27T06:06:37.886Z",
99
155
  ).transform(v => new Date(v)),
156
+ metrics: z.nullable(z.lazy(() => Metrics$inboundSchema)).optional(),
100
157
  }).transform((v) => {
101
158
  return remap$(v, {
102
159
  "_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_01KMMWCWG0886TZKCVVNFSDVJC"),
757
+ _id: z.string().default("tool_01KMPYE7YR155TZ94C01EY8489"),
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("01KMMWCWFZAPY1S5HKPHKE18MA"),
865
+ id: z.string().default("01KMPYE7YQV79W4HJZCHPPNFE8"),
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_01KMMWCWFY98XZCXJ471JY0ZVT"),
921
+ _id: z.string().default("tool_01KMPYE7YPXCHF6SSASXP0M9P5"),
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_01KMMWCWFW20JYDNACC8W842T0"),
1114
+ _id: z.string().default("tool_01KMPYE7YMDW7MXNTMA8V89Y82"),
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_01KMMWCWFVF82ZVQMAGHT4GVVA"),
1212
+ _id: z.string().default("tool_01KMPYE7YKM263ESH72CNVCNS6"),
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_01KMMWCWFS4HKZ6JHWF67J3VXE"),
1320
+ _id: z.string().default("tool_01KMPYE7YJRTKCJJ6JKVZJYG3X"),
1321
1321
  path: z.string(),
1322
1322
  key: z.string(),
1323
1323
  display_name: z.string().optional(),
@@ -3628,7 +3628,7 @@ export const Tools$outboundSchema: z.ZodType<
3628
3628
  z.ZodTypeDef,
3629
3629
  Tools
3630
3630
  > = z.object({
3631
- id: z.string().default("01KMMWCW3HXMMVAFQHXQS50NY0"),
3631
+ id: z.string().default("01KMPYE7HVBTAZ69EXYGEC8RF3"),
3632
3632
  name: z.string(),
3633
3633
  description: z.string().optional(),
3634
3634
  schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
@@ -3675,7 +3675,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
3675
3675
  z.ZodTypeDef,
3676
3676
  AgentToolInputRunTools
3677
3677
  > = z.object({
3678
- id: z.string().default("01KMMWCW55XM8MWN3YAEK0AEX7"),
3678
+ id: z.string().default("01KMPYE7KEZM3JRGRJJKQXQ40J"),
3679
3679
  name: z.string(),
3680
3680
  description: z.string().optional(),
3681
3681
  schema: z.lazy(() =>
@@ -2358,7 +2358,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
2358
2358
  .default("orq"),
2359
2359
  reviewed_by_id: z.string(),
2360
2360
  reviewed_at: z.string().datetime({ offset: true }).default(
2361
- "2026-03-26T10:52:44.606Z",
2361
+ "2026-03-27T06:06:55.130Z",
2362
2362
  ).transform(v => new Date(v)),
2363
2363
  type: z.literal("string_array"),
2364
2364
  values: z.array(z.string()),
@@ -2404,7 +2404,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
2404
2404
  source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
2405
2405
  reviewed_by_id: z.string(),
2406
2406
  reviewed_at: z.string().datetime({ offset: true }).default(
2407
- "2026-03-26T10:52:44.606Z",
2407
+ "2026-03-27T06:06:55.130Z",
2408
2408
  ).transform(v => new Date(v)),
2409
2409
  type: z.literal("number"),
2410
2410
  value: z.number(),
@@ -2449,7 +2449,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
2449
2449
  source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
2450
2450
  reviewed_by_id: z.string(),
2451
2451
  reviewed_at: z.string().datetime({ offset: true }).default(
2452
- "2026-03-26T10:52:44.605Z",
2452
+ "2026-03-27T06:06:55.129Z",
2453
2453
  ).transform(v => new Date(v)),
2454
2454
  type: z.literal("string"),
2455
2455
  value: z.string(),
@@ -2530,7 +2530,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
2530
2530
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2531
2531
  .optional(),
2532
2532
  updated: z.string().datetime({ offset: true }).default(
2533
- "2026-03-26T10:52:27.533Z",
2533
+ "2026-03-27T06:06:37.886Z",
2534
2534
  ).transform(v => new Date(v)),
2535
2535
  }).transform((v) => {
2536
2536
  return remap$(v, {
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
182
182
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
183
183
  .optional(),
184
184
  updated: z.string().datetime({ offset: true }).default(
185
- "2026-03-26T10:52:27.533Z",
185
+ "2026-03-27T06:06:37.886Z",
186
186
  ).transform(v => new Date(v)),
187
187
  }).transform((v) => {
188
188
  return remap$(v, {
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
152
152
  z.ZodTypeDef,
153
153
  unknown
154
154
  > = z.object({
155
- _id: z.string().default("01KMMWCWK615EKN1NPBQTMKR80"),
155
+ _id: z.string().default("01KMPYE81VHCMQA2NWWBJ5JC87"),
156
156
  display_name: z.string(),
157
157
  description: z.string().optional(),
158
158
  status: UpdateDatasourceStatus$inboundSchema,