@orq-ai/node 4.9.0-rc.12 → 4.9.0-rc.13

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 (76) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/lib/config.js.map +1 -1
  6. package/models/components/reasoningpart.js +1 -1
  7. package/models/operations/createcontact.js +1 -1
  8. package/models/operations/createdataset.js +1 -1
  9. package/models/operations/createdatasetitem.js +4 -4
  10. package/models/operations/createdatasource.js +1 -1
  11. package/models/operations/createeval.js +16 -16
  12. package/models/operations/createidentity.js +1 -1
  13. package/models/operations/createtool.js +6 -6
  14. package/models/operations/getalltools.js +6 -6
  15. package/models/operations/getevals.js +16 -16
  16. package/models/operations/getv2humanevalsets.js +2 -2
  17. package/models/operations/getv2humanevalsetsid.js +2 -2
  18. package/models/operations/listdatasetdatapoints.js +4 -4
  19. package/models/operations/listdatasets.js +1 -1
  20. package/models/operations/listdatasources.js +1 -1
  21. package/models/operations/listidentities.js +1 -1
  22. package/models/operations/patchv2humanevalsetsid.js +2 -2
  23. package/models/operations/postv2feedbackevaluation.js +3 -3
  24. package/models/operations/postv2humanevalsets.js +2 -2
  25. package/models/operations/retrievedatapoint.js +4 -4
  26. package/models/operations/retrievedataset.js +1 -1
  27. package/models/operations/retrievedatasource.js +1 -1
  28. package/models/operations/retrieveidentity.js +1 -1
  29. package/models/operations/retrievetool.js +6 -6
  30. package/models/operations/runagent.js +1 -1
  31. package/models/operations/streamrunagent.js +1 -1
  32. package/models/operations/updateagent.d.ts +4 -25
  33. package/models/operations/updateagent.d.ts.map +1 -1
  34. package/models/operations/updateagent.js +5 -7
  35. package/models/operations/updateagent.js.map +1 -1
  36. package/models/operations/updatedatapoint.js +4 -4
  37. package/models/operations/updatedataset.js +1 -1
  38. package/models/operations/updatedatasource.js +1 -1
  39. package/models/operations/updateeval.js +16 -16
  40. package/models/operations/updateidentity.js +1 -1
  41. package/models/operations/updatetool.js +7 -7
  42. package/package.json +7 -7
  43. package/src/lib/config.ts +3 -3
  44. package/src/models/components/reasoningpart.ts +1 -1
  45. package/src/models/operations/createcontact.ts +1 -1
  46. package/src/models/operations/createdataset.ts +1 -1
  47. package/src/models/operations/createdatasetitem.ts +4 -4
  48. package/src/models/operations/createdatasource.ts +1 -1
  49. package/src/models/operations/createeval.ts +16 -16
  50. package/src/models/operations/createidentity.ts +1 -1
  51. package/src/models/operations/createtool.ts +6 -6
  52. package/src/models/operations/getalltools.ts +6 -6
  53. package/src/models/operations/getevals.ts +16 -16
  54. package/src/models/operations/getv2humanevalsets.ts +2 -2
  55. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  56. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  57. package/src/models/operations/listdatasets.ts +1 -1
  58. package/src/models/operations/listdatasources.ts +1 -1
  59. package/src/models/operations/listidentities.ts +1 -1
  60. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  61. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  62. package/src/models/operations/postv2humanevalsets.ts +2 -2
  63. package/src/models/operations/retrievedatapoint.ts +4 -4
  64. package/src/models/operations/retrievedataset.ts +1 -1
  65. package/src/models/operations/retrievedatasource.ts +1 -1
  66. package/src/models/operations/retrieveidentity.ts +1 -1
  67. package/src/models/operations/retrievetool.ts +6 -6
  68. package/src/models/operations/runagent.ts +1 -1
  69. package/src/models/operations/streamrunagent.ts +1 -1
  70. package/src/models/operations/updateagent.ts +9 -31
  71. package/src/models/operations/updatedatapoint.ts +4 -4
  72. package/src/models/operations/updatedataset.ts +1 -1
  73. package/src/models/operations/updatedatasource.ts +1 -1
  74. package/src/models/operations/updateeval.ts +16 -16
  75. package/src/models/operations/updateidentity.ts +1 -1
  76. package/src/models/operations/updatetool.ts +7 -7
@@ -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("01KQEYGKHDDBX7MKXBVQ84QG12"),
3678
+ id: z.string().default("01KQFFVBBB00FYZKCW3NMSG642"),
3679
3679
  name: z.string(),
3680
3680
  description: z.string().optional(),
3681
3681
  schema: z.lazy(() =>
@@ -831,17 +831,11 @@ export type UpdateAgentFallbackModelConfiguration =
831
831
  | UpdateAgentFallbackModelConfiguration2
832
832
  | string;
833
833
 
834
- /**
835
- * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
836
- */
837
834
  export const UpdateAgentToolApprovalRequired = {
838
835
  All: "all",
839
836
  RespectTool: "respect_tool",
840
837
  None: "none",
841
838
  } as const;
842
- /**
843
- * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
844
- */
845
839
  export type UpdateAgentToolApprovalRequired = ClosedEnum<
846
840
  typeof UpdateAgentToolApprovalRequired
847
841
  >;
@@ -1351,25 +1345,10 @@ export type UpdateAgentGuardrails = {
1351
1345
  };
1352
1346
 
1353
1347
  export type UpdateAgentSettings = {
1354
- /**
1355
- * Maximum iterations(llm calls) before the agent will stop executing.
1356
- */
1357
1348
  maxIterations?: number | undefined;
1358
- /**
1359
- * Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned.
1360
- */
1361
1349
  maxExecutionTime?: number | undefined;
1362
- /**
1363
- * Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses
1364
- */
1365
1350
  maxCost?: number | undefined;
1366
- /**
1367
- * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1368
- */
1369
1351
  toolApprovalRequired?: UpdateAgentToolApprovalRequired | undefined;
1370
- /**
1371
- * Tools available to the agent. Built-in tools only need a type, while custom tools (http, code, function) must reference pre-created tools by key or id.
1372
- */
1373
1352
  tools?:
1374
1353
  | Array<
1375
1354
  | AgentToolInputCRUDGoogleSearchTool
@@ -4918,10 +4897,10 @@ export function updateAgentGuardrailsToJSON(
4918
4897
 
4919
4898
  /** @internal */
4920
4899
  export type UpdateAgentSettings$Outbound = {
4921
- max_iterations: number;
4922
- max_execution_time: number;
4923
- max_cost: number;
4924
- tool_approval_required: string;
4900
+ max_iterations?: number | undefined;
4901
+ max_execution_time?: number | undefined;
4902
+ max_cost?: number | undefined;
4903
+ tool_approval_required?: string | undefined;
4925
4904
  tools?:
4926
4905
  | Array<
4927
4906
  | AgentToolInputCRUDGoogleSearchTool$Outbound
@@ -4953,12 +4932,11 @@ export const UpdateAgentSettings$outboundSchema: z.ZodType<
4953
4932
  z.ZodTypeDef,
4954
4933
  UpdateAgentSettings
4955
4934
  > = z.object({
4956
- maxIterations: z.number().int().default(100),
4957
- maxExecutionTime: z.number().int().default(600),
4958
- maxCost: z.number().default(0),
4959
- toolApprovalRequired: UpdateAgentToolApprovalRequired$outboundSchema.default(
4960
- "respect_tool",
4961
- ),
4935
+ maxIterations: z.number().int().optional(),
4936
+ maxExecutionTime: z.number().int().optional(),
4937
+ maxCost: z.number().optional(),
4938
+ toolApprovalRequired: UpdateAgentToolApprovalRequired$outboundSchema
4939
+ .optional(),
4962
4940
  tools: z.array(
4963
4941
  z.union([
4964
4942
  z.lazy(() => AgentToolInputCRUDGoogleSearchTool$outboundSchema),
@@ -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-04-30T10:21:23.323Z",
2361
+ "2026-04-30T15:24:20.954Z",
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-04-30T10:21:23.320Z",
2407
+ "2026-04-30T15:24:20.949Z",
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-04-30T10:21:23.319Z",
2452
+ "2026-04-30T15:24:20.943Z",
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-04-30T10:21:07.562Z",
2533
+ "2026-04-30T15:24:06.216Z",
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-04-30T10:21:07.562Z",
185
+ "2026-04-30T15:24:06.216Z",
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("01KQEYGM5FHZBRS5PH7TDVKMKH"),
155
+ _id: z.string().default("01KQFFVBT6JVP8P3BEWX47K6CY"),
156
156
  display_name: z.string(),
157
157
  description: z.string().optional(),
158
158
  status: UpdateDatasourceStatus$inboundSchema,
@@ -1541,8 +1541,8 @@ export const ResponseBodyTypescript$inboundSchema: z.ZodType<
1541
1541
  > = z.object({
1542
1542
  _id: z.string(),
1543
1543
  description: z.string(),
1544
- created: z.string().default("2026-04-30T10:21:09.763Z"),
1545
- updated: z.string().default("2026-04-30T10:21:09.763Z"),
1544
+ created: z.string().default("2026-04-30T15:24:08.361Z"),
1545
+ updated: z.string().default("2026-04-30T15:24:08.361Z"),
1546
1546
  guardrail_config: z.nullable(
1547
1547
  z.union([
1548
1548
  z.lazy(() =>
@@ -1735,8 +1735,8 @@ export const ResponseBodyRagas$inboundSchema: z.ZodType<
1735
1735
  > = z.object({
1736
1736
  _id: z.string(),
1737
1737
  description: z.string(),
1738
- created: z.string().default("2026-04-30T10:21:09.763Z"),
1739
- updated: z.string().default("2026-04-30T10:21:09.763Z"),
1738
+ created: z.string().default("2026-04-30T15:24:08.361Z"),
1739
+ updated: z.string().default("2026-04-30T15:24:08.361Z"),
1740
1740
  guardrail_config: z.nullable(
1741
1741
  z.union([
1742
1742
  z.lazy(() =>
@@ -2592,8 +2592,8 @@ export const ResponseBodyFunction$inboundSchema: z.ZodType<
2592
2592
  > = z.object({
2593
2593
  _id: z.string(),
2594
2594
  description: z.string(),
2595
- created: z.string().default("2026-04-30T10:21:09.763Z"),
2596
- updated: z.string().default("2026-04-30T10:21:09.763Z"),
2595
+ created: z.string().default("2026-04-30T15:24:08.361Z"),
2596
+ updated: z.string().default("2026-04-30T15:24:08.361Z"),
2597
2597
  guardrail_config: z.nullable(
2598
2598
  z.union([
2599
2599
  z.lazy(() =>
@@ -2809,8 +2809,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
2809
2809
  > = z.object({
2810
2810
  _id: z.string(),
2811
2811
  description: z.string(),
2812
- created: z.string().default("2026-04-30T10:21:09.763Z"),
2813
- updated: z.string().default("2026-04-30T10:21:09.763Z"),
2812
+ created: z.string().default("2026-04-30T15:24:08.361Z"),
2813
+ updated: z.string().default("2026-04-30T15:24:08.361Z"),
2814
2814
  guardrail_config: z.nullable(
2815
2815
  z.union([
2816
2816
  z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
@@ -2976,8 +2976,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
2976
2976
  > = z.object({
2977
2977
  _id: z.string(),
2978
2978
  description: z.string(),
2979
- created: z.string().default("2026-04-30T10:21:09.763Z"),
2980
- updated: z.string().default("2026-04-30T10:21:09.763Z"),
2979
+ created: z.string().default("2026-04-30T15:24:08.361Z"),
2980
+ updated: z.string().default("2026-04-30T15:24:08.361Z"),
2981
2981
  guardrail_config: z.nullable(
2982
2982
  z.union([
2983
2983
  z.lazy(() => UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
@@ -3128,8 +3128,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
3128
3128
  > = z.object({
3129
3129
  _id: z.string(),
3130
3130
  description: z.string(),
3131
- created: z.string().default("2026-04-30T10:21:09.763Z"),
3132
- updated: z.string().default("2026-04-30T10:21:09.763Z"),
3131
+ created: z.string().default("2026-04-30T15:24:08.361Z"),
3132
+ updated: z.string().default("2026-04-30T15:24:08.361Z"),
3133
3133
  guardrail_config: z.nullable(
3134
3134
  z.union([
3135
3135
  z.lazy(() => UpdateEvalGuardrailConfigBoolean$inboundSchema),
@@ -3489,8 +3489,8 @@ export const UpdateEvalLlm2$inboundSchema: z.ZodType<
3489
3489
  > = z.object({
3490
3490
  _id: z.string(),
3491
3491
  description: z.string(),
3492
- created: z.string().default("2026-04-30T10:21:09.763Z"),
3493
- updated: z.string().default("2026-04-30T10:21:09.763Z"),
3492
+ created: z.string().default("2026-04-30T15:24:08.361Z"),
3493
+ updated: z.string().default("2026-04-30T15:24:08.361Z"),
3494
3494
  guardrail_config: z.nullable(
3495
3495
  z.union([
3496
3496
  z.lazy(() =>
@@ -3698,8 +3698,8 @@ export const UpdateEvalLlm1$inboundSchema: z.ZodType<
3698
3698
  > = z.object({
3699
3699
  _id: z.string(),
3700
3700
  description: z.string(),
3701
- created: z.string().default("2026-04-30T10:21:09.763Z"),
3702
- updated: z.string().default("2026-04-30T10:21:09.763Z"),
3701
+ created: z.string().default("2026-04-30T15:24:08.361Z"),
3702
+ updated: z.string().default("2026-04-30T15:24:08.361Z"),
3703
3703
  guardrail_config: z.nullable(
3704
3704
  z.union([
3705
3705
  z.lazy(() =>
@@ -167,7 +167,7 @@ export const UpdateIdentityResponseBody$inboundSchema: z.ZodType<
167
167
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
168
168
  .optional(),
169
169
  updated: z.string().datetime({ offset: true }).default(
170
- "2026-04-30T10:21:07.562Z",
170
+ "2026-04-30T15:24:06.216Z",
171
171
  ).transform(v => new Date(v)),
172
172
  }).transform((v) => {
173
173
  return remap$(v, {
@@ -1472,7 +1472,7 @@ export const RequestBodyTools$outboundSchema: z.ZodType<
1472
1472
  z.ZodTypeDef,
1473
1473
  RequestBodyTools
1474
1474
  > = z.object({
1475
- id: z.string().default("01KQEYGKV1ACPE74RD1ZCK1DKA"),
1475
+ id: z.string().default("01KQFFVBP4NAXMTTV7NGFB15V2"),
1476
1476
  name: z.string(),
1477
1477
  description: z.string().optional(),
1478
1478
  schema: z.lazy(() => UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -2193,7 +2193,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
2193
2193
  z.ZodTypeDef,
2194
2194
  unknown
2195
2195
  > = z.object({
2196
- _id: z.string().default("tool_01KQEYGKTK7KVHRDWTEHYF7302"),
2196
+ _id: z.string().default("tool_01KQFFVBNYVS1RN6458XGE7527"),
2197
2197
  path: z.string(),
2198
2198
  key: z.string(),
2199
2199
  display_name: z.string().optional(),
@@ -2296,7 +2296,7 @@ export const UpdateToolResponseBodyTools$inboundSchema: z.ZodType<
2296
2296
  z.ZodTypeDef,
2297
2297
  unknown
2298
2298
  > = z.object({
2299
- id: z.string().default("01KQEYGKTJ6YSHJ3PKMFDVAT7V"),
2299
+ id: z.string().default("01KQFFVBNXAYKY8Q90XBCPR55P"),
2300
2300
  name: z.string(),
2301
2301
  description: z.string().optional(),
2302
2302
  schema: z.lazy(() => UpdateToolResponseBodyToolsSchema$inboundSchema),
@@ -2354,7 +2354,7 @@ export const UpdateToolResponseBodyMCPTool$inboundSchema: z.ZodType<
2354
2354
  z.ZodTypeDef,
2355
2355
  unknown
2356
2356
  > = z.object({
2357
- _id: z.string().default("tool_01KQEYGKTH8VNVXPPJ5FXW2GFW"),
2357
+ _id: z.string().default("tool_01KQFFVBNVSYZ9KMEDK68C74B9"),
2358
2358
  path: z.string(),
2359
2359
  key: z.string(),
2360
2360
  display_name: z.string().optional(),
@@ -2543,7 +2543,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
2543
2543
  z.ZodTypeDef,
2544
2544
  unknown
2545
2545
  > = z.object({
2546
- _id: z.string().default("tool_01KQEYGKTFXCE1210JSXJ2NW06"),
2546
+ _id: z.string().default("tool_01KQFFVBNSNMJRMGHXTEH0PWDS"),
2547
2547
  path: z.string(),
2548
2548
  key: z.string(),
2549
2549
  display_name: z.string().optional(),
@@ -2638,7 +2638,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
2638
2638
  z.ZodTypeDef,
2639
2639
  unknown
2640
2640
  > = z.object({
2641
- _id: z.string().default("tool_01KQEYGKTE536T0CJ815Y0RBE0"),
2641
+ _id: z.string().default("tool_01KQFFVBNR8CBAACZKMKZMCAEY"),
2642
2642
  path: z.string(),
2643
2643
  key: z.string(),
2644
2644
  display_name: z.string().optional(),
@@ -2741,7 +2741,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
2741
2741
  z.ZodTypeDef,
2742
2742
  unknown
2743
2743
  > = z.object({
2744
- _id: z.string().default("tool_01KQEYGKTD0T1G090D8RG4BW30"),
2744
+ _id: z.string().default("tool_01KQFFVBNPJ1JJCN5P5GTX085N"),
2745
2745
  path: z.string(),
2746
2746
  key: z.string(),
2747
2747
  display_name: z.string().optional(),