@orq-ai/node 4.10.14 → 4.10.16

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 (166) hide show
  1. package/README.md +40 -36
  2. package/funcs/guardrailRulesList.js +4 -0
  3. package/funcs/guardrailRulesList.js.map +1 -1
  4. package/funcs/guardrailRulesListUsedGuardrails.d.ts +17 -0
  5. package/funcs/guardrailRulesListUsedGuardrails.d.ts.map +1 -0
  6. package/funcs/guardrailRulesListUsedGuardrails.js +105 -0
  7. package/funcs/guardrailRulesListUsedGuardrails.js.map +1 -0
  8. package/funcs/routingRulesList.js +3 -0
  9. package/funcs/routingRulesList.js.map +1 -1
  10. package/funcs/routingRulesListUsedModels.d.ts +17 -0
  11. package/funcs/routingRulesListUsedModels.d.ts.map +1 -0
  12. package/funcs/routingRulesListUsedModels.js +105 -0
  13. package/funcs/routingRulesListUsedModels.js.map +1 -0
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +3 -3
  16. package/lib/config.js +3 -3
  17. package/lib/sdks.d.ts.map +1 -1
  18. package/lib/sdks.js +37 -12
  19. package/lib/sdks.js.map +1 -1
  20. package/models/components/reasoningpart.js +1 -1
  21. package/models/operations/createdataset.js +1 -1
  22. package/models/operations/createdatasetitem.js +4 -4
  23. package/models/operations/createdatasource.js +1 -1
  24. package/models/operations/createeval.js +16 -16
  25. package/models/operations/createtool.d.ts +10 -10
  26. package/models/operations/createtool.d.ts.map +1 -1
  27. package/models/operations/createtool.js +16 -16
  28. package/models/operations/createtool.js.map +1 -1
  29. package/models/operations/getalltools.d.ts +10 -10
  30. package/models/operations/getalltools.d.ts.map +1 -1
  31. package/models/operations/getalltools.js +16 -16
  32. package/models/operations/getalltools.js.map +1 -1
  33. package/models/operations/getevals.js +16 -16
  34. package/models/operations/getv2humanevalsets.js +2 -2
  35. package/models/operations/getv2humanevalsetsid.js +2 -2
  36. package/models/operations/guardrailrulelist.d.ts +35 -0
  37. package/models/operations/guardrailrulelist.d.ts.map +1 -1
  38. package/models/operations/guardrailrulelist.js +18 -1
  39. package/models/operations/guardrailrulelist.js.map +1 -1
  40. package/models/operations/guardrailrulelistusedguardrails.d.ts +14 -0
  41. package/models/operations/guardrailrulelistusedguardrails.d.ts.map +1 -0
  42. package/models/operations/guardrailrulelistusedguardrails.js +56 -0
  43. package/models/operations/guardrailrulelistusedguardrails.js.map +1 -0
  44. package/models/operations/index.d.ts +2 -0
  45. package/models/operations/index.d.ts.map +1 -1
  46. package/models/operations/index.js +2 -0
  47. package/models/operations/index.js.map +1 -1
  48. package/models/operations/listdatasetdatapoints.js +4 -4
  49. package/models/operations/listdatasets.js +1 -1
  50. package/models/operations/listdatasources.js +1 -1
  51. package/models/operations/listknowledgebases.d.ts +3 -0
  52. package/models/operations/listknowledgebases.d.ts.map +1 -1
  53. package/models/operations/listknowledgebases.js +1 -1
  54. package/models/operations/listknowledgebases.js.map +1 -1
  55. package/models/operations/patchv2humanevalsetsid.js +2 -2
  56. package/models/operations/postv2feedbackevaluation.js +3 -3
  57. package/models/operations/postv2humanevalsets.js +2 -2
  58. package/models/operations/retrievedatapoint.js +4 -4
  59. package/models/operations/retrievedataset.js +1 -1
  60. package/models/operations/retrievedatasource.js +1 -1
  61. package/models/operations/retrievetool.d.ts +10 -10
  62. package/models/operations/retrievetool.d.ts.map +1 -1
  63. package/models/operations/retrievetool.js +16 -16
  64. package/models/operations/retrievetool.js.map +1 -1
  65. package/models/operations/routingrulelist.d.ts +15 -0
  66. package/models/operations/routingrulelist.d.ts.map +1 -1
  67. package/models/operations/routingrulelist.js +3 -0
  68. package/models/operations/routingrulelist.js.map +1 -1
  69. package/models/operations/routingrulelistusedmodels.d.ts +14 -0
  70. package/models/operations/routingrulelistusedmodels.d.ts.map +1 -0
  71. package/models/operations/routingrulelistusedmodels.js +51 -0
  72. package/models/operations/routingrulelistusedmodels.js.map +1 -0
  73. package/models/operations/runagent.js +1 -1
  74. package/models/operations/streamrunagent.js +1 -1
  75. package/models/operations/updatedatapoint.js +4 -4
  76. package/models/operations/updatedataset.js +1 -1
  77. package/models/operations/updatedatasource.js +1 -1
  78. package/models/operations/updateeval.js +16 -16
  79. package/models/operations/updatetool.d.ts +10 -10
  80. package/models/operations/updatetool.d.ts.map +1 -1
  81. package/models/operations/updatetool.js +17 -17
  82. package/models/operations/updatetool.js.map +1 -1
  83. package/package.json +7 -7
  84. package/packages/orq-rc/src/funcs/datasetsList.ts +2 -0
  85. package/packages/orq-rc/src/lib/config.ts +3 -3
  86. package/packages/orq-rc/src/lib/sdks.ts +41 -13
  87. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  89. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  90. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  91. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  92. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  93. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  94. package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
  95. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  96. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  98. package/packages/orq-rc/src/models/operations/listdatasets.ts +14 -1
  99. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  100. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
  102. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  104. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  105. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  106. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  107. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  108. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  109. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  110. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  111. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  112. package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
  113. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  114. package/packages/orq-rc/src/sdk/feedback.ts +2 -2
  115. package/sdk/feedback.d.ts +2 -2
  116. package/sdk/feedback.js +2 -2
  117. package/sdk/guardrailrules.d.ts +7 -0
  118. package/sdk/guardrailrules.d.ts.map +1 -1
  119. package/sdk/guardrailrules.js +10 -0
  120. package/sdk/guardrailrules.js.map +1 -1
  121. package/sdk/routingrules.d.ts +7 -0
  122. package/sdk/routingrules.d.ts.map +1 -1
  123. package/sdk/routingrules.js +10 -0
  124. package/sdk/routingrules.js.map +1 -1
  125. package/src/funcs/guardrailRulesList.ts +4 -0
  126. package/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
  127. package/src/funcs/routingRulesList.ts +3 -0
  128. package/src/funcs/routingRulesListUsedModels.ts +144 -0
  129. package/src/lib/config.ts +3 -3
  130. package/src/lib/sdks.ts +41 -13
  131. package/src/models/components/reasoningpart.ts +1 -1
  132. package/src/models/operations/createdataset.ts +1 -1
  133. package/src/models/operations/createdatasetitem.ts +4 -4
  134. package/src/models/operations/createdatasource.ts +1 -1
  135. package/src/models/operations/createeval.ts +16 -16
  136. package/src/models/operations/createtool.ts +26 -26
  137. package/src/models/operations/getalltools.ts +26 -26
  138. package/src/models/operations/getevals.ts +16 -16
  139. package/src/models/operations/getv2humanevalsets.ts +2 -2
  140. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  141. package/src/models/operations/guardrailrulelist.ts +44 -0
  142. package/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
  143. package/src/models/operations/index.ts +2 -0
  144. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  145. package/src/models/operations/listdatasets.ts +1 -1
  146. package/src/models/operations/listdatasources.ts +1 -1
  147. package/src/models/operations/listknowledgebases.ts +4 -1
  148. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  149. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  150. package/src/models/operations/postv2humanevalsets.ts +2 -2
  151. package/src/models/operations/retrievedatapoint.ts +4 -4
  152. package/src/models/operations/retrievedataset.ts +1 -1
  153. package/src/models/operations/retrievedatasource.ts +1 -1
  154. package/src/models/operations/retrievetool.ts +26 -26
  155. package/src/models/operations/routingrulelist.ts +18 -0
  156. package/src/models/operations/routingrulelistusedmodels.ts +37 -0
  157. package/src/models/operations/runagent.ts +1 -1
  158. package/src/models/operations/streamrunagent.ts +1 -1
  159. package/src/models/operations/updatedatapoint.ts +4 -4
  160. package/src/models/operations/updatedataset.ts +1 -1
  161. package/src/models/operations/updatedatasource.ts +1 -1
  162. package/src/models/operations/updateeval.ts +16 -16
  163. package/src/models/operations/updatetool.ts +27 -27
  164. package/src/sdk/feedback.ts +2 -2
  165. package/src/sdk/guardrailrules.ts +16 -0
  166. package/src/sdk/routingrules.ts +16 -0
package/src/lib/sdks.ts CHANGED
@@ -133,27 +133,55 @@ export class ClientSDK {
133
133
  if (path) {
134
134
  baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
135
135
  reqURL = new URL(path, baseURL);
136
+ if (!reqURL.search && baseURL.search) {
137
+ reqURL.search = baseURL.search;
138
+ }
136
139
  } else {
137
140
  reqURL = baseURL;
138
141
  }
139
142
  reqURL.hash = "";
140
143
 
141
- let finalQuery = query || "";
142
-
143
- const secQuery: string[] = [];
144
- for (const [k, v] of Object.entries(security?.queryParams || {})) {
145
- const q = encodeForm(k, v, { charEncoding: "percent" });
146
- if (typeof q !== "undefined") {
147
- secQuery.push(q);
144
+ // Appends already-encoded query pairs to a query string, replacing any
145
+ // existing pairs with the same key so later sources take precedence.
146
+ const mergeQuery = (current: string, additions: string): string => {
147
+ if (!additions) {
148
+ return current;
148
149
  }
149
- }
150
- if (secQuery.length) {
151
- finalQuery += `&${secQuery.join("&")}`;
152
- }
150
+ const additionKeys = new Set(
151
+ additions
152
+ .split("&")
153
+ .filter((pair) => pair !== "")
154
+ .map((pair) => pair.split("=")[0] ?? ""),
155
+ );
156
+ const kept = current.split("&").filter((pair) => {
157
+ return pair !== "" && !additionKeys.has(pair.split("=")[0] ?? "");
158
+ });
159
+ return [...kept, additions].join("&");
160
+ };
161
+
162
+ const encodeQueryRecord = (record: Record<string, unknown>): string => {
163
+ return Object.entries(record)
164
+ .map(([k, v]) => {
165
+ if (v == null) {
166
+ return undefined;
167
+ }
168
+ const value = v;
169
+ return encodeForm(k, value, {
170
+ explode: Array.isArray(value),
171
+ charEncoding: "percent",
172
+ });
173
+ })
174
+ .filter((pair): pair is string => typeof pair !== "undefined")
175
+ .join("&");
176
+ };
177
+
178
+ const finalQuery = [
179
+ query || "",
180
+ encodeQueryRecord(security?.queryParams || {}),
181
+ ].reduce(mergeQuery, reqURL.search.slice(1));
153
182
 
154
183
  if (finalQuery) {
155
- const q = finalQuery.startsWith("&") ? finalQuery.slice(1) : finalQuery;
156
- reqURL.search = `?${q}`;
184
+ reqURL.search = `?${finalQuery}`;
157
185
  }
158
186
 
159
187
  const headers = new Headers(opHeaders);
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  unknown
42
42
  > = z.object({
43
- _id: z.string().default("reasoning_01ktrkvcrj102vfh68aw4x4q5m"),
43
+ _id: z.string().default("reasoning_01ktv2hx7rh8k5k6537x3hd098"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
140
  updated: z.string().datetime({ offset: true }).default(
141
- "2026-06-10T11:14:12.452Z",
141
+ "2026-06-11T10:09:31.179Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2355
2355
  ),
2356
2356
  reviewed_by_id: z.string(),
2357
2357
  reviewed_at: z.string().datetime({ offset: true }).default(
2358
- "2026-06-10T11:14:31.889Z",
2358
+ "2026-06-11T10:09:58.629Z",
2359
2359
  ).transform(v => new Date(v)),
2360
2360
  type: z.literal("string_array"),
2361
2361
  values: z.array(z.string()),
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2400
2400
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2401
2401
  reviewed_by_id: z.string(),
2402
2402
  reviewed_at: z.string().datetime({ offset: true }).default(
2403
- "2026-06-10T11:14:31.888Z",
2403
+ "2026-06-11T10:09:58.628Z",
2404
2404
  ).transform(v => new Date(v)),
2405
2405
  type: z.literal("number"),
2406
2406
  value: z.number(),
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2446
2446
  source: EvaluationsSource$inboundSchema.default("orq"),
2447
2447
  reviewed_by_id: z.string(),
2448
2448
  reviewed_at: z.string().datetime({ offset: true }).default(
2449
- "2026-06-10T11:14:31.888Z",
2449
+ "2026-06-11T10:09:58.628Z",
2450
2450
  ).transform(v => new Date(v)),
2451
2451
  type: z.literal("string"),
2452
2452
  value: z.string(),
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2529
2529
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2530
2530
  .optional(),
2531
2531
  updated: z.string().datetime({ offset: true }).default(
2532
- "2026-06-10T11:14:12.452Z",
2532
+ "2026-06-11T10:09:31.179Z",
2533
2533
  ).transform(v => new Date(v)),
2534
2534
  }).transform((v) => {
2535
2535
  return remap$(v, {
@@ -409,7 +409,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
409
409
  z.ZodTypeDef,
410
410
  unknown
411
411
  > = z.object({
412
- _id: z.string().default("01KTRKVD892ZVGMZWYWRCA7EWW"),
412
+ _id: z.string().default("01KTV2HXRTTN40FP1QGE84QQ8C"),
413
413
  display_name: z.string(),
414
414
  description: z.nullable(z.string()).optional(),
415
415
  status: CreateDatasourceStatus$inboundSchema,
@@ -2193,8 +2193,8 @@ export const Typescript$inboundSchema: z.ZodType<
2193
2193
  > = z.object({
2194
2194
  _id: z.string(),
2195
2195
  description: z.string(),
2196
- created: z.string().default("2026-06-10T11:14:14.119Z"),
2197
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
2196
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
2197
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
2198
2198
  updated_by_id: z.nullable(z.string()).optional(),
2199
2199
  guardrail_config: z.nullable(
2200
2200
  z.union([
@@ -2384,8 +2384,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2384
2384
  .object({
2385
2385
  _id: z.string(),
2386
2386
  description: z.string(),
2387
- created: z.string().default("2026-06-10T11:14:14.119Z"),
2388
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
2387
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
2388
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
2389
2389
  updated_by_id: z.nullable(z.string()).optional(),
2390
2390
  guardrail_config: z.nullable(
2391
2391
  z.union([
@@ -3210,8 +3210,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3210
3210
  > = z.object({
3211
3211
  _id: z.string(),
3212
3212
  description: z.string(),
3213
- created: z.string().default("2026-06-10T11:14:14.119Z"),
3214
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
3213
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
3214
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
3215
3215
  updated_by_id: z.nullable(z.string()).optional(),
3216
3216
  guardrail_config: z.nullable(
3217
3217
  z.union([
@@ -3430,8 +3430,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
3430
3430
  > = z.object({
3431
3431
  _id: z.string(),
3432
3432
  description: z.string(),
3433
- created: z.string().default("2026-06-10T11:14:14.119Z"),
3434
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
3433
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
3434
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
3435
3435
  updated_by_id: z.nullable(z.string()).optional(),
3436
3436
  guardrail_config: z.nullable(
3437
3437
  z.union([
@@ -3612,8 +3612,8 @@ export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
3612
3612
  > = z.object({
3613
3613
  _id: z.string(),
3614
3614
  description: z.string(),
3615
- created: z.string().default("2026-06-10T11:14:14.119Z"),
3616
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
3615
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
3616
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
3617
3617
  updated_by_id: z.nullable(z.string()).optional(),
3618
3618
  guardrail_config: z.nullable(
3619
3619
  z.union([
@@ -3772,8 +3772,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
3772
3772
  .object({
3773
3773
  _id: z.string(),
3774
3774
  description: z.string(),
3775
- created: z.string().default("2026-06-10T11:14:14.119Z"),
3776
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
3775
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
3776
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
3777
3777
  updated_by_id: z.nullable(z.string()).optional(),
3778
3778
  guardrail_config: z.nullable(
3779
3779
  z.union([
@@ -4143,8 +4143,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
4143
4143
  > = z.object({
4144
4144
  _id: z.string(),
4145
4145
  description: z.string(),
4146
- created: z.string().default("2026-06-10T11:14:14.119Z"),
4147
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
4146
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
4147
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
4148
4148
  updated_by_id: z.nullable(z.string()).optional(),
4149
4149
  guardrail_config: z.nullable(
4150
4150
  z.union([
@@ -4363,8 +4363,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4363
4363
  > = z.object({
4364
4364
  _id: z.string(),
4365
4365
  description: z.string(),
4366
- created: z.string().default("2026-06-10T11:14:14.119Z"),
4367
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
4366
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
4367
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
4368
4368
  updated_by_id: z.nullable(z.string()).optional(),
4369
4369
  guardrail_config: z.nullable(
4370
4370
  z.union([
@@ -630,11 +630,11 @@ export type ResponseBodyCodeExecutionTool = {
630
630
  /**
631
631
  * The id of the user that created the tool
632
632
  */
633
- createdById?: string | undefined;
633
+ createdById?: string | null | undefined;
634
634
  /**
635
635
  * The id of the user that last updated the tool
636
636
  */
637
- updatedById?: string | undefined;
637
+ updatedById?: string | null | undefined;
638
638
  projectId: string;
639
639
  workspaceId: string;
640
640
  created: string;
@@ -754,11 +754,11 @@ export type ResponseBodyMCPTool = {
754
754
  /**
755
755
  * The id of the user that created the tool
756
756
  */
757
- createdById?: string | undefined;
757
+ createdById?: string | null | undefined;
758
758
  /**
759
759
  * The id of the user that last updated the tool
760
760
  */
761
- updatedById?: string | undefined;
761
+ updatedById?: string | null | undefined;
762
762
  projectId: string;
763
763
  workspaceId: string;
764
764
  created: string;
@@ -911,11 +911,11 @@ export type ResponseBodyHTTPTool = {
911
911
  /**
912
912
  * The id of the user that created the tool
913
913
  */
914
- createdById?: string | undefined;
914
+ createdById?: string | null | undefined;
915
915
  /**
916
916
  * The id of the user that last updated the tool
917
917
  */
918
- updatedById?: string | undefined;
918
+ updatedById?: string | null | undefined;
919
919
  projectId: string;
920
920
  workspaceId: string;
921
921
  created: string;
@@ -1012,11 +1012,11 @@ export type ResponseBodyJSONSchemaTool = {
1012
1012
  /**
1013
1013
  * The id of the user that created the tool
1014
1014
  */
1015
- createdById?: string | undefined;
1015
+ createdById?: string | null | undefined;
1016
1016
  /**
1017
1017
  * The id of the user that last updated the tool
1018
1018
  */
1019
- updatedById?: string | undefined;
1019
+ updatedById?: string | null | undefined;
1020
1020
  projectId: string;
1021
1021
  workspaceId: string;
1022
1022
  created: string;
@@ -1123,11 +1123,11 @@ export type ResponseBodyFunctionTool = {
1123
1123
  /**
1124
1124
  * The id of the user that created the tool
1125
1125
  */
1126
- createdById?: string | undefined;
1126
+ createdById?: string | null | undefined;
1127
1127
  /**
1128
1128
  * The id of the user that last updated the tool
1129
1129
  */
1130
- updatedById?: string | undefined;
1130
+ updatedById?: string | null | undefined;
1131
1131
  projectId: string;
1132
1132
  workspaceId: string;
1133
1133
  created: string;
@@ -1898,13 +1898,13 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
1898
1898
  z.ZodTypeDef,
1899
1899
  unknown
1900
1900
  > = z.object({
1901
- _id: z.string().default("tool_01KTRKVD44ACJM2SPVE83FT0VX"),
1901
+ _id: z.string().default("tool_01KTV2HXKGN4HEKQH413T5JZR6"),
1902
1902
  path: z.string(),
1903
1903
  key: z.string(),
1904
1904
  display_name: z.string().optional(),
1905
1905
  description: z.string(),
1906
- created_by_id: z.string().optional(),
1907
- updated_by_id: z.string().optional(),
1906
+ created_by_id: z.nullable(z.string()).optional(),
1907
+ updated_by_id: z.nullable(z.string()).optional(),
1908
1908
  project_id: z.string(),
1909
1909
  workspace_id: z.string(),
1910
1910
  created: z.string(),
@@ -1995,7 +1995,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
1995
1995
  z.ZodTypeDef,
1996
1996
  unknown
1997
1997
  > = z.object({
1998
- id: z.string().default("01KTRKVD43NPFWA0N2CDM67AXR"),
1998
+ id: z.string().default("01KTV2HXKFXRV9CZRZRYAMW2M8"),
1999
1999
  name: z.string(),
2000
2000
  description: z.string().optional(),
2001
2001
  schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
@@ -2051,13 +2051,13 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
2051
2051
  z.ZodTypeDef,
2052
2052
  unknown
2053
2053
  > = z.object({
2054
- _id: z.string().default("tool_01KTRKVD41CKDJM284GY8YATV2"),
2054
+ _id: z.string().default("tool_01KTV2HXKDMMHHFZ7540RT36K0"),
2055
2055
  path: z.string(),
2056
2056
  key: z.string(),
2057
2057
  display_name: z.string().optional(),
2058
2058
  description: z.string(),
2059
- created_by_id: z.string().optional(),
2060
- updated_by_id: z.string().optional(),
2059
+ created_by_id: z.nullable(z.string()).optional(),
2060
+ updated_by_id: z.nullable(z.string()).optional(),
2061
2061
  project_id: z.string(),
2062
2062
  workspace_id: z.string(),
2063
2063
  created: z.string(),
@@ -2237,13 +2237,13 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
2237
2237
  z.ZodTypeDef,
2238
2238
  unknown
2239
2239
  > = z.object({
2240
- _id: z.string().default("tool_01KTRKVD3ZHXZCQWKXQANJCCSS"),
2240
+ _id: z.string().default("tool_01KTV2HXKA75P5N09EM2QCZ0K4"),
2241
2241
  path: z.string(),
2242
2242
  key: z.string(),
2243
2243
  display_name: z.string().optional(),
2244
2244
  description: z.string(),
2245
- created_by_id: z.string().optional(),
2246
- updated_by_id: z.string().optional(),
2245
+ created_by_id: z.nullable(z.string()).optional(),
2246
+ updated_by_id: z.nullable(z.string()).optional(),
2247
2247
  project_id: z.string(),
2248
2248
  workspace_id: z.string(),
2249
2249
  created: z.string(),
@@ -2330,13 +2330,13 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2330
2330
  z.ZodTypeDef,
2331
2331
  unknown
2332
2332
  > = z.object({
2333
- _id: z.string().default("tool_01KTRKVD3Y27SK3VTT2RW513WV"),
2333
+ _id: z.string().default("tool_01KTV2HXK7J0HJHGWK6E5D5PVF"),
2334
2334
  path: z.string(),
2335
2335
  key: z.string(),
2336
2336
  display_name: z.string().optional(),
2337
2337
  description: z.string(),
2338
- created_by_id: z.string().optional(),
2339
- updated_by_id: z.string().optional(),
2338
+ created_by_id: z.nullable(z.string()).optional(),
2339
+ updated_by_id: z.nullable(z.string()).optional(),
2340
2340
  project_id: z.string(),
2341
2341
  workspace_id: z.string(),
2342
2342
  created: z.string(),
@@ -2431,13 +2431,13 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
2431
2431
  z.ZodTypeDef,
2432
2432
  unknown
2433
2433
  > = z.object({
2434
- _id: z.string().default("tool_01KTRKVD3WYGTY4CD79WV0M6QK"),
2434
+ _id: z.string().default("tool_01KTV2HXK54ESGPEMBYXPNYTC7"),
2435
2435
  path: z.string(),
2436
2436
  key: z.string(),
2437
2437
  display_name: z.string().optional(),
2438
2438
  description: z.string(),
2439
- created_by_id: z.string().optional(),
2440
- updated_by_id: z.string().optional(),
2439
+ created_by_id: z.nullable(z.string()).optional(),
2440
+ updated_by_id: z.nullable(z.string()).optional(),
2441
2441
  project_id: z.string(),
2442
2442
  workspace_id: z.string(),
2443
2443
  created: z.string(),
@@ -128,11 +128,11 @@ export type DataCodeExecutionTool = {
128
128
  /**
129
129
  * The id of the user that created the tool
130
130
  */
131
- createdById?: string | undefined;
131
+ createdById?: string | null | undefined;
132
132
  /**
133
133
  * The id of the user that last updated the tool
134
134
  */
135
- updatedById?: string | undefined;
135
+ updatedById?: string | null | undefined;
136
136
  projectId: string;
137
137
  workspaceId: string;
138
138
  created: string;
@@ -252,11 +252,11 @@ export type DataMCPTool = {
252
252
  /**
253
253
  * The id of the user that created the tool
254
254
  */
255
- createdById?: string | undefined;
255
+ createdById?: string | null | undefined;
256
256
  /**
257
257
  * The id of the user that last updated the tool
258
258
  */
259
- updatedById?: string | undefined;
259
+ updatedById?: string | null | undefined;
260
260
  projectId: string;
261
261
  workspaceId: string;
262
262
  created: string;
@@ -409,11 +409,11 @@ export type DataHTTPTool = {
409
409
  /**
410
410
  * The id of the user that created the tool
411
411
  */
412
- createdById?: string | undefined;
412
+ createdById?: string | null | undefined;
413
413
  /**
414
414
  * The id of the user that last updated the tool
415
415
  */
416
- updatedById?: string | undefined;
416
+ updatedById?: string | null | undefined;
417
417
  projectId: string;
418
418
  workspaceId: string;
419
419
  created: string;
@@ -508,11 +508,11 @@ export type DataJSONSchemaTool = {
508
508
  /**
509
509
  * The id of the user that created the tool
510
510
  */
511
- createdById?: string | undefined;
511
+ createdById?: string | null | undefined;
512
512
  /**
513
513
  * The id of the user that last updated the tool
514
514
  */
515
- updatedById?: string | undefined;
515
+ updatedById?: string | null | undefined;
516
516
  projectId: string;
517
517
  workspaceId: string;
518
518
  created: string;
@@ -621,11 +621,11 @@ export type DataFunctionTool = {
621
621
  /**
622
622
  * The id of the user that created the tool
623
623
  */
624
- createdById?: string | undefined;
624
+ createdById?: string | null | undefined;
625
625
  /**
626
626
  * The id of the user that last updated the tool
627
627
  */
628
- updatedById?: string | undefined;
628
+ updatedById?: string | null | undefined;
629
629
  projectId: string;
630
630
  workspaceId: string;
631
631
  created: string;
@@ -767,13 +767,13 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
767
767
  z.ZodTypeDef,
768
768
  unknown
769
769
  > = z.object({
770
- _id: z.string().default("tool_01KTRKVD3E8RRP0VHKJDJD9A0T"),
770
+ _id: z.string().default("tool_01KTV2HXJM4YBYA3JN8Q0V1118"),
771
771
  path: z.string(),
772
772
  key: z.string(),
773
773
  display_name: z.string().optional(),
774
774
  description: z.string(),
775
- created_by_id: z.string().optional(),
776
- updated_by_id: z.string().optional(),
775
+ created_by_id: z.nullable(z.string()).optional(),
776
+ updated_by_id: z.nullable(z.string()).optional(),
777
777
  project_id: z.string(),
778
778
  workspace_id: z.string(),
779
779
  created: z.string(),
@@ -864,7 +864,7 @@ export const DataTools$inboundSchema: z.ZodType<
864
864
  z.ZodTypeDef,
865
865
  unknown
866
866
  > = z.object({
867
- id: z.string().default("01KTRKVD3CZH9BGHZBJ3J03MPX"),
867
+ id: z.string().default("01KTV2HXJJNSXK2M09NM871HQT"),
868
868
  name: z.string(),
869
869
  description: z.string().optional(),
870
870
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -917,13 +917,13 @@ export const DataMCPTool$inboundSchema: z.ZodType<
917
917
  z.ZodTypeDef,
918
918
  unknown
919
919
  > = z.object({
920
- _id: z.string().default("tool_01KTRKVD3BHZ0JRN1GD75ZPXQB"),
920
+ _id: z.string().default("tool_01KTV2HXJHRPCTMMQ2RYSF782A"),
921
921
  path: z.string(),
922
922
  key: z.string(),
923
923
  display_name: z.string().optional(),
924
924
  description: z.string(),
925
- created_by_id: z.string().optional(),
926
- updated_by_id: z.string().optional(),
925
+ created_by_id: z.nullable(z.string()).optional(),
926
+ updated_by_id: z.nullable(z.string()).optional(),
927
927
  project_id: z.string(),
928
928
  workspace_id: z.string(),
929
929
  created: z.string(),
@@ -1102,13 +1102,13 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1102
1102
  z.ZodTypeDef,
1103
1103
  unknown
1104
1104
  > = z.object({
1105
- _id: z.string().default("tool_01KTRKVD38VMKA7KZNENTAA834"),
1105
+ _id: z.string().default("tool_01KTV2HXJE954ZD1H4DPE5QT9T"),
1106
1106
  path: z.string(),
1107
1107
  key: z.string(),
1108
1108
  display_name: z.string().optional(),
1109
1109
  description: z.string(),
1110
- created_by_id: z.string().optional(),
1111
- updated_by_id: z.string().optional(),
1110
+ created_by_id: z.nullable(z.string()).optional(),
1111
+ updated_by_id: z.nullable(z.string()).optional(),
1112
1112
  project_id: z.string(),
1113
1113
  workspace_id: z.string(),
1114
1114
  created: z.string(),
@@ -1195,13 +1195,13 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1195
1195
  z.ZodTypeDef,
1196
1196
  unknown
1197
1197
  > = z.object({
1198
- _id: z.string().default("tool_01KTRKVD3538F6RZ37BTEXVHWK"),
1198
+ _id: z.string().default("tool_01KTV2HXJC2H7NDQTV5AFBBQQN"),
1199
1199
  path: z.string(),
1200
1200
  key: z.string(),
1201
1201
  display_name: z.string().optional(),
1202
1202
  description: z.string(),
1203
- created_by_id: z.string().optional(),
1204
- updated_by_id: z.string().optional(),
1203
+ created_by_id: z.nullable(z.string()).optional(),
1204
+ updated_by_id: z.nullable(z.string()).optional(),
1205
1205
  project_id: z.string(),
1206
1206
  workspace_id: z.string(),
1207
1207
  created: z.string(),
@@ -1297,13 +1297,13 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1297
1297
  z.ZodTypeDef,
1298
1298
  unknown
1299
1299
  > = z.object({
1300
- _id: z.string().default("tool_01KTRKVD33PVYVWGW21GMCT1PW"),
1300
+ _id: z.string().default("tool_01KTV2HXJAZVM4CNXTMHG5NGWE"),
1301
1301
  path: z.string(),
1302
1302
  key: z.string(),
1303
1303
  display_name: z.string().optional(),
1304
1304
  description: z.string(),
1305
- created_by_id: z.string().optional(),
1306
- updated_by_id: z.string().optional(),
1305
+ created_by_id: z.nullable(z.string()).optional(),
1306
+ updated_by_id: z.nullable(z.string()).optional(),
1307
1307
  project_id: z.string(),
1308
1308
  workspace_id: z.string(),
1309
1309
  created: z.string(),
@@ -1070,8 +1070,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
1070
1070
  > = z.object({
1071
1071
  _id: z.string(),
1072
1072
  description: z.string(),
1073
- created: z.string().default("2026-06-10T11:14:14.119Z"),
1074
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
1073
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
1074
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
1075
1075
  updated_by_id: z.nullable(z.string()).optional(),
1076
1076
  guardrail_config: z.nullable(
1077
1077
  z.union([
@@ -1252,8 +1252,8 @@ export const DataRagas$inboundSchema: z.ZodType<
1252
1252
  > = z.object({
1253
1253
  _id: z.string(),
1254
1254
  description: z.string(),
1255
- created: z.string().default("2026-06-10T11:14:14.119Z"),
1256
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
1255
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
1256
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
1257
1257
  updated_by_id: z.nullable(z.string()).optional(),
1258
1258
  guardrail_config: z.nullable(
1259
1259
  z.union([
@@ -2084,8 +2084,8 @@ export const DataFunction$inboundSchema: z.ZodType<
2084
2084
  > = z.object({
2085
2085
  _id: z.string(),
2086
2086
  description: z.string(),
2087
- created: z.string().default("2026-06-10T11:14:14.119Z"),
2088
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
2087
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
2088
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
2089
2089
  updated_by_id: z.nullable(z.string()).optional(),
2090
2090
  guardrail_config: z.nullable(
2091
2091
  z.union([
@@ -2268,8 +2268,8 @@ export const DataPython$inboundSchema: z.ZodType<
2268
2268
  > = z.object({
2269
2269
  _id: z.string(),
2270
2270
  description: z.string(),
2271
- created: z.string().default("2026-06-10T11:14:14.119Z"),
2272
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
2271
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
2272
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
2273
2273
  updated_by_id: z.nullable(z.string()).optional(),
2274
2274
  guardrail_config: z.nullable(
2275
2275
  z.union([
@@ -2448,8 +2448,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
2448
2448
  > = z.object({
2449
2449
  _id: z.string(),
2450
2450
  description: z.string(),
2451
- created: z.string().default("2026-06-10T11:14:14.119Z"),
2452
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
2451
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
2452
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
2453
2453
  updated_by_id: z.nullable(z.string()).optional(),
2454
2454
  guardrail_config: z.nullable(
2455
2455
  z.union([
@@ -2640,8 +2640,8 @@ export const DataJSON$inboundSchema: z.ZodType<
2640
2640
  > = z.object({
2641
2641
  _id: z.string(),
2642
2642
  description: z.string(),
2643
- created: z.string().default("2026-06-10T11:14:14.119Z"),
2644
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
2643
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
2644
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
2645
2645
  updated_by_id: z.nullable(z.string()).optional(),
2646
2646
  guardrail_config: z.nullable(
2647
2647
  z.union([
@@ -3008,8 +3008,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
3008
3008
  > = z.object({
3009
3009
  _id: z.string(),
3010
3010
  description: z.string(),
3011
- created: z.string().default("2026-06-10T11:14:14.119Z"),
3012
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
3011
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
3012
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
3013
3013
  updated_by_id: z.nullable(z.string()).optional(),
3014
3014
  guardrail_config: z.nullable(
3015
3015
  z.union([
@@ -3221,8 +3221,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
3221
3221
  > = z.object({
3222
3222
  _id: z.string(),
3223
3223
  description: z.string(),
3224
- created: z.string().default("2026-06-10T11:14:14.119Z"),
3225
- updated: z.string().default("2026-06-10T11:14:14.119Z"),
3224
+ created: z.string().default("2026-06-11T10:09:33.308Z"),
3225
+ updated: z.string().default("2026-06-11T10:09:33.308Z"),
3226
3226
  updated_by_id: z.nullable(z.string()).optional(),
3227
3227
  guardrail_config: z.nullable(
3228
3228
  z.union([
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
140
140
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
141
141
  .optional(),
142
142
  updated: z.string().datetime({ offset: true }).default(
143
- "2026-06-10T11:14:12.452Z",
143
+ "2026-06-11T10:09:31.179Z",
144
144
  ).transform(v => new Date(v)),
145
145
  filter_type: z.literal("name"),
146
146
  filter_value: z.string(),
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
185
185
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
186
186
  .optional(),
187
187
  updated: z.string().datetime({ offset: true }).default(
188
- "2026-06-10T11:14:12.452Z",
188
+ "2026-06-11T10:09:31.179Z",
189
189
  ).transform(v => new Date(v)),
190
190
  filter_type: z.literal("span_type"),
191
191
  filter_values: z.array(z.string()),