@orq-ai/node 4.2.16 → 4.2.18

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 (131) hide show
  1. package/examples/package-lock.json +1 -1
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/models/components/conversationresponse.js +1 -1
  6. package/models/components/conversationwithmessagesresponse.js +1 -1
  7. package/models/components/partdoneevent.js +1 -1
  8. package/models/components/reasoningpart.js +1 -1
  9. package/models/operations/createcontact.js +1 -1
  10. package/models/operations/createconversation.js +1 -1
  11. package/models/operations/createconversationresponse.js +2 -2
  12. package/models/operations/createdataset.js +1 -1
  13. package/models/operations/createdatasetitem.js +4 -4
  14. package/models/operations/createdatasource.js +1 -1
  15. package/models/operations/createeval.js +14 -14
  16. package/models/operations/createidentity.js +1 -1
  17. package/models/operations/createtool.js +6 -6
  18. package/models/operations/fileget.js +1 -1
  19. package/models/operations/filelist.js +1 -1
  20. package/models/operations/fileupload.js +1 -1
  21. package/models/operations/generateconversationname.js +1 -1
  22. package/models/operations/getalltools.js +6 -6
  23. package/models/operations/getevals.js +14 -14
  24. package/models/operations/listdatasetdatapoints.js +4 -4
  25. package/models/operations/listdatasets.js +1 -1
  26. package/models/operations/listdatasources.js +1 -1
  27. package/models/operations/listidentities.js +1 -1
  28. package/models/operations/retrievedatapoint.js +4 -4
  29. package/models/operations/retrievedataset.js +1 -1
  30. package/models/operations/retrievedatasource.js +1 -1
  31. package/models/operations/retrieveidentity.js +1 -1
  32. package/models/operations/retrievetool.js +6 -6
  33. package/models/operations/runagent.js +1 -1
  34. package/models/operations/streamrunagent.js +1 -1
  35. package/models/operations/updateconversation.js +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 +14 -14
  40. package/models/operations/updateidentity.js +1 -1
  41. package/models/operations/updatetool.js +7 -7
  42. package/package.json +1 -1
  43. package/packages/orq-rc/examples/package-lock.json +1 -1
  44. package/packages/orq-rc/jsr.json +1 -1
  45. package/packages/orq-rc/package-lock.json +2 -2
  46. package/packages/orq-rc/package.json +1 -1
  47. package/packages/orq-rc/src/funcs/evalsInvoke.ts +7 -3
  48. package/packages/orq-rc/src/lib/config.ts +2 -2
  49. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +6 -0
  50. package/packages/orq-rc/src/models/components/conversationresponse.ts +1 -1
  51. package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +1 -1
  52. package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
  53. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  54. package/packages/orq-rc/src/models/errors/invokeeval.ts +48 -3
  55. package/packages/orq-rc/src/models/operations/createagentrequest.ts +13 -0
  56. package/packages/orq-rc/src/models/operations/createcontact.ts +1 -1
  57. package/packages/orq-rc/src/models/operations/createconversation.ts +1 -1
  58. package/packages/orq-rc/src/models/operations/createconversationresponse.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  60. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
  61. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  62. package/packages/orq-rc/src/models/operations/createeval.ts +14 -14
  63. package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
  64. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  65. package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
  66. package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
  67. package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
  68. package/packages/orq-rc/src/models/operations/generateconversationname.ts +1 -1
  69. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  70. package/packages/orq-rc/src/models/operations/getevals.ts +14 -14
  71. package/packages/orq-rc/src/models/operations/invokeeval.ts +6 -0
  72. package/packages/orq-rc/src/models/operations/listagents.ts +6 -0
  73. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
  74. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  75. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  76. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  77. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +6 -0
  78. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
  79. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  80. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  81. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
  82. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  83. package/packages/orq-rc/src/models/operations/runagent.ts +8 -1
  84. package/packages/orq-rc/src/models/operations/streamrunagent.ts +8 -1
  85. package/packages/orq-rc/src/models/operations/updateagent.ts +13 -0
  86. package/packages/orq-rc/src/models/operations/updateconversation.ts +1 -1
  87. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
  88. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  89. package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
  90. package/packages/orq-rc/src/models/operations/updateeval.ts +14 -14
  91. package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
  92. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +3 -3
  93. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  94. package/src/lib/config.ts +2 -2
  95. package/src/models/components/conversationresponse.ts +1 -1
  96. package/src/models/components/conversationwithmessagesresponse.ts +1 -1
  97. package/src/models/components/partdoneevent.ts +1 -1
  98. package/src/models/components/reasoningpart.ts +1 -1
  99. package/src/models/operations/createcontact.ts +1 -1
  100. package/src/models/operations/createconversation.ts +1 -1
  101. package/src/models/operations/createconversationresponse.ts +2 -2
  102. package/src/models/operations/createdataset.ts +1 -1
  103. package/src/models/operations/createdatasetitem.ts +4 -4
  104. package/src/models/operations/createdatasource.ts +1 -1
  105. package/src/models/operations/createeval.ts +14 -14
  106. package/src/models/operations/createidentity.ts +1 -1
  107. package/src/models/operations/createtool.ts +6 -6
  108. package/src/models/operations/fileget.ts +1 -1
  109. package/src/models/operations/filelist.ts +1 -1
  110. package/src/models/operations/fileupload.ts +1 -1
  111. package/src/models/operations/generateconversationname.ts +1 -1
  112. package/src/models/operations/getalltools.ts +6 -6
  113. package/src/models/operations/getevals.ts +14 -14
  114. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  115. package/src/models/operations/listdatasets.ts +1 -1
  116. package/src/models/operations/listdatasources.ts +1 -1
  117. package/src/models/operations/listidentities.ts +1 -1
  118. package/src/models/operations/retrievedatapoint.ts +4 -4
  119. package/src/models/operations/retrievedataset.ts +1 -1
  120. package/src/models/operations/retrievedatasource.ts +1 -1
  121. package/src/models/operations/retrieveidentity.ts +1 -1
  122. package/src/models/operations/retrievetool.ts +6 -6
  123. package/src/models/operations/runagent.ts +1 -1
  124. package/src/models/operations/streamrunagent.ts +1 -1
  125. package/src/models/operations/updateconversation.ts +1 -1
  126. package/src/models/operations/updatedatapoint.ts +4 -4
  127. package/src/models/operations/updatedataset.ts +1 -1
  128. package/src/models/operations/updatedatasource.ts +1 -1
  129. package/src/models/operations/updateeval.ts +14 -14
  130. package/src/models/operations/updateidentity.ts +1 -1
  131. package/src/models/operations/updatetool.ts +7 -7
@@ -60,7 +60,7 @@ exports.RetrieveIdentityResponseBody$inboundSchema = z.object({
60
60
  metadata: z.record(z.any()).optional(),
61
61
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
62
62
  .optional(),
63
- updated: z.string().datetime({ offset: true }).default("2026-01-28T17:32:27.237Z").transform(v => new Date(v)),
63
+ updated: z.string().datetime({ offset: true }).default("2026-02-03T08:49:51.414Z").transform(v => new Date(v)),
64
64
  }).transform((v) => {
65
65
  return (0, primitives_js_1.remap)(v, {
66
66
  "_id": "id",
@@ -187,7 +187,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
187
187
  }
188
188
  /** @internal */
189
189
  exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
190
- _id: z.string().default("tool_01KG2TM71Q2NSFSR450RPS8B4B"),
190
+ _id: z.string().default("tool_01KGHB3KR9G5EQ42AZB6KTKSHS"),
191
191
  path: z.string(),
192
192
  key: z.string(),
193
193
  display_name: z.string().optional(),
@@ -242,7 +242,7 @@ function retrieveToolResponseBodyToolsSchemaFromJSON(jsonString) {
242
242
  }
243
243
  /** @internal */
244
244
  exports.RetrieveToolResponseBodyTools$inboundSchema = z.object({
245
- id: z.string().default("01KG2TM71PH1GDDEK423XBM71E"),
245
+ id: z.string().default("01KGHB3KR82P2V9PQZEKB96A4X"),
246
246
  name: z.string(),
247
247
  description: z.string().optional(),
248
248
  schema: z.lazy(() => exports.RetrieveToolResponseBodyToolsSchema$inboundSchema),
@@ -270,7 +270,7 @@ function retrieveToolResponseBodyMcpFromJSON(jsonString) {
270
270
  }
271
271
  /** @internal */
272
272
  exports.RetrieveToolResponseBodyMCPTool$inboundSchema = z.object({
273
- _id: z.string().default("tool_01KG2TM71MM4AFRTTQD9ZWM2KP"),
273
+ _id: z.string().default("tool_01KGHB3KR73JK5XRPE4GNB9PAQ"),
274
274
  path: z.string(),
275
275
  key: z.string(),
276
276
  display_name: z.string().optional(),
@@ -359,7 +359,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
359
359
  }
360
360
  /** @internal */
361
361
  exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
362
- _id: z.string().default("tool_01KG2TM71JMNA040PHZ9KAHT2H"),
362
+ _id: z.string().default("tool_01KGHB3KR42HY30F0MM451YHSR"),
363
363
  path: z.string(),
364
364
  key: z.string(),
365
365
  display_name: z.string().optional(),
@@ -411,7 +411,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
411
411
  }
412
412
  /** @internal */
413
413
  exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
414
- _id: z.string().default("tool_01KG2TM71F4YGD24HPTTX80CDE"),
414
+ _id: z.string().default("tool_01KGHB3KR20EDJEC3PSYJ3JZEG"),
415
415
  path: z.string(),
416
416
  key: z.string(),
417
417
  display_name: z.string().optional(),
@@ -467,7 +467,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
467
467
  }
468
468
  /** @internal */
469
469
  exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
470
- _id: z.string().default("tool_01KG2TM71DV29B3RDZ1N7FCMW4"),
470
+ _id: z.string().default("tool_01KGHB3KR0B8C6CC1RRJV2E5V2"),
471
471
  path: z.string(),
472
472
  key: z.string(),
473
473
  display_name: z.string().optional(),
@@ -1125,7 +1125,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
1125
1125
  }
1126
1126
  /** @internal */
1127
1127
  exports.Tools$outboundSchema = z.object({
1128
- id: z.string().default("01KG2TM6DBDDYB1125S1YMDXTP"),
1128
+ id: z.string().default("01KGHB3K8T3S6WTZYNKZNKKQXK"),
1129
1129
  name: z.string(),
1130
1130
  description: z.string().optional(),
1131
1131
  schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
@@ -1088,7 +1088,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
1088
1088
  }
1089
1089
  /** @internal */
1090
1090
  exports.AgentToolInputRunTools$outboundSchema = z.object({
1091
- id: z.string().default("01KG2TM6GP2MM99Y9A0PXPTKR6"),
1091
+ id: z.string().default("01KGHB3KB85QFXB78NW6E2MH34"),
1092
1092
  name: z.string(),
1093
1093
  description: z.string().optional(),
1094
1094
  schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
@@ -93,7 +93,7 @@ function updateConversationConversationsMetadataFromJSON(jsonString) {
93
93
  }
94
94
  /** @internal */
95
95
  exports.UpdateConversationResponseBody$inboundSchema = z.object({
96
- _id: z.string().default("conv_01kg2tm6jwfpsqmcjt66v22jdg"),
96
+ _id: z.string().default("conv_01kghb3kd1d2kmcybgbc3jsnxr"),
97
97
  kind: exports.UpdateConversationKind$inboundSchema,
98
98
  displayName: z.string(),
99
99
  createdAt: z.number(),
@@ -745,7 +745,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
745
745
  source: exports.UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema
746
746
  .default("orq"),
747
747
  reviewed_by_id: z.string(),
748
- reviewed_at: z.string().datetime({ offset: true }).default("2026-01-28T17:32:40.674Z").transform(v => new Date(v)),
748
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-02-03T08:50:04.423Z").transform(v => new Date(v)),
749
749
  type: z.literal("string_array"),
750
750
  values: z.array(z.string()),
751
751
  }).transform((v) => {
@@ -772,7 +772,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
772
772
  human_review_id: z.string(),
773
773
  source: exports.UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
774
774
  reviewed_by_id: z.string(),
775
- reviewed_at: z.string().datetime({ offset: true }).default("2026-01-28T17:32:40.674Z").transform(v => new Date(v)),
775
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-02-03T08:50:04.422Z").transform(v => new Date(v)),
776
776
  type: z.literal("number"),
777
777
  value: z.number(),
778
778
  }).transform((v) => {
@@ -798,7 +798,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
798
798
  human_review_id: z.string(),
799
799
  source: exports.UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
800
800
  reviewed_by_id: z.string(),
801
- reviewed_at: z.string().datetime({ offset: true }).default("2026-01-28T17:32:40.673Z").transform(v => new Date(v)),
801
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-02-03T08:50:04.422Z").transform(v => new Date(v)),
802
802
  type: z.literal("string"),
803
803
  value: z.string(),
804
804
  }).transform((v) => {
@@ -845,7 +845,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
845
845
  updated_by_id: z.string().optional(),
846
846
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
847
847
  .optional(),
848
- updated: z.string().datetime({ offset: true }).default("2026-01-28T17:32:27.237Z").transform(v => new Date(v)),
848
+ updated: z.string().datetime({ offset: true }).default("2026-02-03T08:49:51.414Z").transform(v => new Date(v)),
849
849
  }).transform((v) => {
850
850
  return (0, primitives_js_1.remap)(v, {
851
851
  "_id": "id",
@@ -95,7 +95,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
95
95
  updated_by_id: z.string().optional(),
96
96
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
97
97
  .optional(),
98
- updated: z.string().datetime({ offset: true }).default("2026-01-28T17:32:27.237Z").transform(v => new Date(v)),
98
+ updated: z.string().datetime({ offset: true }).default("2026-02-03T08:49:51.414Z").transform(v => new Date(v)),
99
99
  }).transform((v) => {
100
100
  return (0, primitives_js_1.remap)(v, {
101
101
  "_id": "id",
@@ -80,7 +80,7 @@ function updateDatasourceRequestToJSON(updateDatasourceRequest) {
80
80
  exports.UpdateDatasourceStatus$inboundSchema = z.nativeEnum(exports.UpdateDatasourceStatus);
81
81
  /** @internal */
82
82
  exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
83
- _id: z.string().default("01KG2TM75WT6F35FJVC96T76M0"),
83
+ _id: z.string().default("01KGHB3KVREV75VR7W36H903SE"),
84
84
  display_name: z.string(),
85
85
  description: z.string().optional(),
86
86
  status: exports.UpdateDatasourceStatus$inboundSchema,
@@ -590,8 +590,8 @@ function updateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfigFr
590
590
  exports.ResponseBodyTypescript$inboundSchema = z.object({
591
591
  _id: z.string(),
592
592
  description: z.string(),
593
- created: z.string().default("2026-01-28T17:32:28.916Z"),
594
- updated: z.string().default("2026-01-28T17:32:28.916Z"),
593
+ created: z.string().default("2026-02-03T08:49:53.022Z"),
594
+ updated: z.string().default("2026-02-03T08:49:53.022Z"),
595
595
  guardrail_config: z.union([
596
596
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema),
597
597
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Number$inboundSchema),
@@ -656,8 +656,8 @@ exports.ResponseBodyRagasMetric$inboundSchema = z.nativeEnum(exports.ResponseBod
656
656
  exports.ResponseBodyRagas$inboundSchema = z.object({
657
657
  _id: z.string(),
658
658
  description: z.string(),
659
- created: z.string().default("2026-01-28T17:32:28.916Z"),
660
- updated: z.string().default("2026-01-28T17:32:28.916Z"),
659
+ created: z.string().default("2026-02-03T08:49:53.022Z"),
660
+ updated: z.string().default("2026-02-03T08:49:53.022Z"),
661
661
  guardrail_config: z.union([
662
662
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema),
663
663
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Number$inboundSchema),
@@ -996,8 +996,8 @@ function responseBodyFunctionParamsFromJSON(jsonString) {
996
996
  exports.ResponseBodyFunction$inboundSchema = z.object({
997
997
  _id: z.string(),
998
998
  description: z.string(),
999
- created: z.string().default("2026-01-28T17:32:28.916Z"),
1000
- updated: z.string().default("2026-01-28T17:32:28.916Z"),
999
+ created: z.string().default("2026-02-03T08:49:53.022Z"),
1000
+ updated: z.string().default("2026-02-03T08:49:53.022Z"),
1001
1001
  guardrail_config: z.union([
1002
1002
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Boolean$inboundSchema),
1003
1003
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody5Number$inboundSchema),
@@ -1093,8 +1093,8 @@ function updateEvalResponseBodyEvalsResponse200GuardrailConfigFromJSON(jsonStrin
1093
1093
  exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
1094
1094
  _id: z.string(),
1095
1095
  description: z.string(),
1096
- created: z.string().default("2026-01-28T17:32:28.916Z"),
1097
- updated: z.string().default("2026-01-28T17:32:28.916Z"),
1096
+ created: z.string().default("2026-02-03T08:49:53.022Z"),
1097
+ updated: z.string().default("2026-02-03T08:49:53.022Z"),
1098
1098
  guardrail_config: z.union([
1099
1099
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
1100
1100
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema),
@@ -1158,8 +1158,8 @@ exports.UpdateEvalResponseBodyMethod$inboundSchema = z.nativeEnum(exports.Update
1158
1158
  exports.UpdateEvalResponseBodyHTTP$inboundSchema = z.object({
1159
1159
  _id: z.string(),
1160
1160
  description: z.string(),
1161
- created: z.string().default("2026-01-28T17:32:28.916Z"),
1162
- updated: z.string().default("2026-01-28T17:32:28.916Z"),
1161
+ created: z.string().default("2026-02-03T08:49:53.022Z"),
1162
+ updated: z.string().default("2026-02-03T08:49:53.022Z"),
1163
1163
  guardrail_config: z.union([
1164
1164
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
1165
1165
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema),
@@ -1223,8 +1223,8 @@ function updateEvalResponseBodyEvalsGuardrailConfigFromJSON(jsonString) {
1223
1223
  exports.UpdateEvalResponseBodyJSON$inboundSchema = z.object({
1224
1224
  _id: z.string(),
1225
1225
  description: z.string(),
1226
- created: z.string().default("2026-01-28T17:32:28.916Z"),
1227
- updated: z.string().default("2026-01-28T17:32:28.916Z"),
1226
+ created: z.string().default("2026-02-03T08:49:53.022Z"),
1227
+ updated: z.string().default("2026-02-03T08:49:53.022Z"),
1228
1228
  guardrail_config: z.union([
1229
1229
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
1230
1230
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
@@ -1285,8 +1285,8 @@ function updateEvalResponseBodyGuardrailConfigFromJSON(jsonString) {
1285
1285
  exports.UpdateEvalResponseBodyLLM$inboundSchema = z.object({
1286
1286
  _id: z.string(),
1287
1287
  description: z.string(),
1288
- created: z.string().default("2026-01-28T17:32:28.916Z"),
1289
- updated: z.string().default("2026-01-28T17:32:28.916Z"),
1288
+ created: z.string().default("2026-02-03T08:49:53.022Z"),
1289
+ updated: z.string().default("2026-02-03T08:49:53.022Z"),
1290
1290
  guardrail_config: z.union([
1291
1291
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
1292
1292
  z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
@@ -83,7 +83,7 @@ exports.UpdateIdentityResponseBody$inboundSchema = z.object({
83
83
  metadata: z.record(z.any()).optional(),
84
84
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
85
85
  .optional(),
86
- updated: z.string().datetime({ offset: true }).default("2026-01-28T17:32:27.237Z").transform(v => new Date(v)),
86
+ updated: z.string().datetime({ offset: true }).default("2026-02-03T08:49:51.414Z").transform(v => new Date(v)),
87
87
  }).transform((v) => {
88
88
  return (0, primitives_js_1.remap)(v, {
89
89
  "_id": "id",
@@ -339,7 +339,7 @@ function updateToolRequestBodyToolsSchemaToJSON(updateToolRequestBodyToolsSchema
339
339
  }
340
340
  /** @internal */
341
341
  exports.RequestBodyTools$outboundSchema = z.object({
342
- id: z.string().default("01KG2TM711FZC82P968F1TY44J"),
342
+ id: z.string().default("01KGHB3KQMDKXWX7MWH3A0EVS1"),
343
343
  name: z.string(),
344
344
  description: z.string().optional(),
345
345
  schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -612,7 +612,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
612
612
  }
613
613
  /** @internal */
614
614
  exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
615
- _id: z.string().default("tool_01KG2TM70TJV56EQGN48M9XH0R"),
615
+ _id: z.string().default("tool_01KGHB3KQFNHKWAA9J684KK9C4"),
616
616
  path: z.string(),
617
617
  key: z.string(),
618
618
  display_name: z.string().optional(),
@@ -667,7 +667,7 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
667
667
  }
668
668
  /** @internal */
669
669
  exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
670
- id: z.string().default("01KG2TM70SAV7J8PD4T7F214HW"),
670
+ id: z.string().default("01KGHB3KQE3YSWX1KQPS157P96"),
671
671
  name: z.string(),
672
672
  description: z.string().optional(),
673
673
  schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
@@ -695,7 +695,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
695
695
  }
696
696
  /** @internal */
697
697
  exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
698
- _id: z.string().default("tool_01KG2TM70QZVS6X8CR5GHQQV22"),
698
+ _id: z.string().default("tool_01KGHB3KQD010Q98392TW18JXJ"),
699
699
  path: z.string(),
700
700
  key: z.string(),
701
701
  display_name: z.string().optional(),
@@ -784,7 +784,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
784
784
  }
785
785
  /** @internal */
786
786
  exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
787
- _id: z.string().default("tool_01KG2TM70MWTHJFBBT8AAF12J7"),
787
+ _id: z.string().default("tool_01KGHB3KQB4D1V95WMQD3EHWES"),
788
788
  path: z.string(),
789
789
  key: z.string(),
790
790
  display_name: z.string().optional(),
@@ -836,7 +836,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
836
836
  }
837
837
  /** @internal */
838
838
  exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
839
- _id: z.string().default("tool_01KG2TM70JS68NW2VVY44DEQR1"),
839
+ _id: z.string().default("tool_01KGHB3KQAD9PMFW79S43EHCBC"),
840
840
  path: z.string(),
841
841
  key: z.string(),
842
842
  display_name: z.string().optional(),
@@ -892,7 +892,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
892
892
  }
893
893
  /** @internal */
894
894
  exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
895
- _id: z.string().default("tool_01KG2TM70GS8GA083HE9YH8YWG"),
895
+ _id: z.string().default("tool_01KGHB3KQ91FTJZTZGHNM1DRSD"),
896
896
  path: z.string(),
897
897
  key: z.string(),
898
898
  display_name: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.2.16",
3
+ "version": "4.2.18",
4
4
  "author": "Orq",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@orq-ai/node",
21
- "version": "4.3.0-rc.7",
21
+ "version": "4.3.0-rc.19",
22
22
  "dependencies": {
23
23
  "zod": "^3.25.0 || ^4.0.0"
24
24
  },
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@orq-ai/node",
5
- "version": "4.3.0-rc.7",
5
+ "version": "4.3.0-rc.19",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.3.0-rc.7",
3
+ "version": "4.3.0-rc.19",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@orq-ai/node",
9
- "version": "4.3.0-rc.7",
9
+ "version": "4.3.0-rc.19",
10
10
  "dependencies": {
11
11
  "zod": "^3.25.0 || ^4.0.0"
12
12
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.3.0-rc.7",
3
+ "version": "4.3.0-rc.19",
4
4
  "author": "Orq",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -37,6 +37,7 @@ export function evalsInvoke(
37
37
  operations.InvokeEvalResponseBody,
38
38
  | errors.InvokeEvalResponseBody
39
39
  | errors.InvokeEvalEvalsResponseBody
40
+ | errors.InvokeEvalEvalsResponseResponseBody
40
41
  | OrqError
41
42
  | ResponseValidationError
42
43
  | ConnectionError
@@ -64,6 +65,7 @@ async function $do(
64
65
  operations.InvokeEvalResponseBody,
65
66
  | errors.InvokeEvalResponseBody
66
67
  | errors.InvokeEvalEvalsResponseBody
68
+ | errors.InvokeEvalEvalsResponseResponseBody
67
69
  | OrqError
68
70
  | ResponseValidationError
69
71
  | ConnectionError
@@ -137,7 +139,7 @@ async function $do(
137
139
 
138
140
  const doResult = await client._do(req, {
139
141
  context,
140
- errorCodes: ["404", "4XX", "500", "5XX"],
142
+ errorCodes: ["400", "404", "4XX", "500", "5XX"],
141
143
  retryConfig: context.retryConfig,
142
144
  retryCodes: context.retryCodes,
143
145
  });
@@ -154,6 +156,7 @@ async function $do(
154
156
  operations.InvokeEvalResponseBody,
155
157
  | errors.InvokeEvalResponseBody
156
158
  | errors.InvokeEvalEvalsResponseBody
159
+ | errors.InvokeEvalEvalsResponseResponseBody
157
160
  | OrqError
158
161
  | ResponseValidationError
159
162
  | ConnectionError
@@ -164,8 +167,9 @@ async function $do(
164
167
  | SDKValidationError
165
168
  >(
166
169
  M.json(200, operations.InvokeEvalResponseBody$inboundSchema),
167
- M.jsonErr(404, errors.InvokeEvalResponseBody$inboundSchema),
168
- M.jsonErr(500, errors.InvokeEvalEvalsResponseBody$inboundSchema),
170
+ M.jsonErr(400, errors.InvokeEvalResponseBody$inboundSchema),
171
+ M.jsonErr(404, errors.InvokeEvalEvalsResponseBody$inboundSchema),
172
+ M.jsonErr(500, errors.InvokeEvalEvalsResponseResponseBody$inboundSchema),
169
173
  M.fail("4XX"),
170
174
  M.fail("5XX"),
171
175
  )(response, req, { extraFields: responseFields });
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "2.0",
71
- sdkVersion: "4.3.0-rc.7",
71
+ sdkVersion: "4.3.0-rc.19",
72
72
  genVersion: "2.801.2",
73
- userAgent: "speakeasy-sdk/typescript 4.3.0-rc.7 2.801.2 2.0 @orq-ai/node",
73
+ userAgent: "speakeasy-sdk/typescript 4.3.0-rc.19 2.801.2 2.0 @orq-ai/node",
74
74
  } as const;
@@ -174,6 +174,10 @@ export type Settings = {
174
174
  * 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.
175
175
  */
176
176
  maxExecutionTime: number;
177
+ /**
178
+ * 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
179
+ */
180
+ maxCost: number;
177
181
  /**
178
182
  * 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.
179
183
  */
@@ -407,6 +411,7 @@ export const Settings$inboundSchema: z.ZodType<
407
411
  > = z.object({
408
412
  max_iterations: z.number().int().default(100),
409
413
  max_execution_time: z.number().int().default(600),
414
+ max_cost: z.number().default(0),
410
415
  tool_approval_required: ToolApprovalRequired$inboundSchema.default(
411
416
  "respect_tool",
412
417
  ),
@@ -417,6 +422,7 @@ export const Settings$inboundSchema: z.ZodType<
417
422
  return remap$(v, {
418
423
  "max_iterations": "maxIterations",
419
424
  "max_execution_time": "maxExecutionTime",
425
+ "max_cost": "maxCost",
420
426
  "tool_approval_required": "toolApprovalRequired",
421
427
  });
422
428
  });
@@ -107,7 +107,7 @@ export const ConversationResponse$inboundSchema: z.ZodType<
107
107
  z.ZodTypeDef,
108
108
  unknown
109
109
  > = z.object({
110
- _id: z.string().default("conv_01kg2rzqcvarcetgpxdke1mnfe"),
110
+ _id: z.string().default("conv_01kgha06pn0pdxay4ttncvn2rb"),
111
111
  kind: ConversationResponseKind$inboundSchema,
112
112
  displayName: z.string(),
113
113
  createdAt: z.number(),
@@ -122,7 +122,7 @@ export const ConversationWithMessagesResponse$inboundSchema: z.ZodType<
122
122
  z.ZodTypeDef,
123
123
  unknown
124
124
  > = z.object({
125
- _id: z.string().default("conv_01kg2rzqd2zp2khc3k3hexrtgd"),
125
+ _id: z.string().default("conv_01kgha06pvq3bf99wwqa61q7dq"),
126
126
  kind: ConversationWithMessagesResponseKind$inboundSchema,
127
127
  displayName: z.string(),
128
128
  createdAt: z.number(),
@@ -76,7 +76,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
76
76
  z.ZodTypeDef,
77
77
  unknown
78
78
  > = z.object({
79
- _id: z.string().default("reasoning_01kg2rzq2dydmjdrwpfgrfzpy3"),
79
+ _id: z.string().default("reasoning_01kgha06cjrbq0hbbkf1s05wz6"),
80
80
  metadata: z.record(z.any()).optional(),
81
81
  kind: PartKind$inboundSchema,
82
82
  reasoning: z.string(),
@@ -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_01kg2rzq28jhdcq5xenm8wxjpp"),
43
+ _id: z.string().default("reasoning_01kgha06c9ccqh70nyrkw72qv1"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -8,13 +8,39 @@ import { OrqError } from "./orqerror.js";
8
8
  /**
9
9
  * Error running the evaluator
10
10
  */
11
- export type InvokeEvalEvalsResponseBodyData = {
11
+ export type InvokeEvalEvalsResponseResponseBodyData = {
12
12
  message: string;
13
13
  };
14
14
 
15
15
  /**
16
16
  * Error running the evaluator
17
17
  */
18
+ export class InvokeEvalEvalsResponseResponseBody extends OrqError {
19
+ /** The original data that was passed to this error instance. */
20
+ data$: InvokeEvalEvalsResponseResponseBodyData;
21
+
22
+ constructor(
23
+ err: InvokeEvalEvalsResponseResponseBodyData,
24
+ httpMeta: { response: Response; request: Request; body: string },
25
+ ) {
26
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
27
+ super(message, httpMeta);
28
+ this.data$ = err;
29
+
30
+ this.name = "InvokeEvalEvalsResponseResponseBody";
31
+ }
32
+ }
33
+
34
+ /**
35
+ * Workspace ID is not found on the request
36
+ */
37
+ export type InvokeEvalEvalsResponseBodyData = {
38
+ message: string;
39
+ };
40
+
41
+ /**
42
+ * Workspace ID is not found on the request
43
+ */
18
44
  export class InvokeEvalEvalsResponseBody extends OrqError {
19
45
  /** The original data that was passed to this error instance. */
20
46
  data$: InvokeEvalEvalsResponseBodyData;
@@ -32,14 +58,14 @@ export class InvokeEvalEvalsResponseBody extends OrqError {
32
58
  }
33
59
 
34
60
  /**
35
- * Workspace ID is not found on the request
61
+ * Bad request
36
62
  */
37
63
  export type InvokeEvalResponseBodyData = {
38
64
  message: string;
39
65
  };
40
66
 
41
67
  /**
42
- * Workspace ID is not found on the request
68
+ * Bad request
43
69
  */
44
70
  export class InvokeEvalResponseBody extends OrqError {
45
71
  /** The original data that was passed to this error instance. */
@@ -57,6 +83,25 @@ export class InvokeEvalResponseBody extends OrqError {
57
83
  }
58
84
  }
59
85
 
86
+ /** @internal */
87
+ export const InvokeEvalEvalsResponseResponseBody$inboundSchema: z.ZodType<
88
+ InvokeEvalEvalsResponseResponseBody,
89
+ z.ZodTypeDef,
90
+ unknown
91
+ > = z.object({
92
+ message: z.string(),
93
+ request$: z.instanceof(Request),
94
+ response$: z.instanceof(Response),
95
+ body$: z.string(),
96
+ })
97
+ .transform((v) => {
98
+ return new InvokeEvalEvalsResponseResponseBody(v, {
99
+ request: v.request$,
100
+ response: v.response$,
101
+ body: v.body$,
102
+ });
103
+ });
104
+
60
105
  /** @internal */
61
106
  export const InvokeEvalEvalsResponseBody$inboundSchema: z.ZodType<
62
107
  InvokeEvalEvalsResponseBody,
@@ -1502,6 +1502,10 @@ export type Settings = {
1502
1502
  * 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.
1503
1503
  */
1504
1504
  maxExecutionTime?: number | undefined;
1505
+ /**
1506
+ * 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
1507
+ */
1508
+ maxCost?: number | undefined;
1505
1509
  /**
1506
1510
  * 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.
1507
1511
  */
@@ -1765,6 +1769,10 @@ export type CreateAgentRequestSettings = {
1765
1769
  * 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.
1766
1770
  */
1767
1771
  maxExecutionTime: number;
1772
+ /**
1773
+ * 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
1774
+ */
1775
+ maxCost: number;
1768
1776
  /**
1769
1777
  * 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.
1770
1778
  */
@@ -5065,6 +5073,7 @@ export function createAgentRequestGuardrailsToJSON(
5065
5073
  export type Settings$Outbound = {
5066
5074
  max_iterations: number;
5067
5075
  max_execution_time: number;
5076
+ max_cost: number;
5068
5077
  tool_approval_required: string;
5069
5078
  tools?:
5070
5079
  | Array<
@@ -5098,6 +5107,7 @@ export const Settings$outboundSchema: z.ZodType<
5098
5107
  > = z.object({
5099
5108
  maxIterations: z.number().int().default(100),
5100
5109
  maxExecutionTime: z.number().int().default(600),
5110
+ maxCost: z.number().default(0),
5101
5111
  toolApprovalRequired: ToolApprovalRequired$outboundSchema.default(
5102
5112
  "respect_tool",
5103
5113
  ),
@@ -5128,6 +5138,7 @@ export const Settings$outboundSchema: z.ZodType<
5128
5138
  return remap$(v, {
5129
5139
  maxIterations: "max_iterations",
5130
5140
  maxExecutionTime: "max_execution_time",
5141
+ maxCost: "max_cost",
5131
5142
  toolApprovalRequired: "tool_approval_required",
5132
5143
  });
5133
5144
  });
@@ -5391,6 +5402,7 @@ export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
5391
5402
  > = z.object({
5392
5403
  max_iterations: z.number().int().default(100),
5393
5404
  max_execution_time: z.number().int().default(600),
5405
+ max_cost: z.number().default(0),
5394
5406
  tool_approval_required: CreateAgentRequestToolApprovalRequired$inboundSchema
5395
5407
  .default("respect_tool"),
5396
5408
  tools: z.array(z.lazy(() => CreateAgentRequestTools$inboundSchema))
@@ -5404,6 +5416,7 @@ export const CreateAgentRequestSettings$inboundSchema: z.ZodType<
5404
5416
  return remap$(v, {
5405
5417
  "max_iterations": "maxIterations",
5406
5418
  "max_execution_time": "maxExecutionTime",
5419
+ "max_cost": "maxCost",
5407
5420
  "tool_approval_required": "toolApprovalRequired",
5408
5421
  });
5409
5422
  });
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
134
134
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
135
135
  .optional(),
136
136
  updated: z.string().datetime({ offset: true }).default(
137
- "2026-01-28T17:03:47.548Z",
137
+ "2026-02-03T08:30:30.445Z",
138
138
  ).transform(v => new Date(v)),
139
139
  }).transform((v) => {
140
140
  return remap$(v, {
@@ -201,7 +201,7 @@ export const CreateConversationResponseBody$inboundSchema: z.ZodType<
201
201
  z.ZodTypeDef,
202
202
  unknown
203
203
  > = z.object({
204
- _id: z.string().default("conv_01kg2rzqcyf57h97scq9r9f02f"),
204
+ _id: z.string().default("conv_01kgha06pqg25rjv54gsvx26ty"),
205
205
  kind: CreateConversationKind$inboundSchema,
206
206
  displayName: z.string(),
207
207
  createdAt: z.number(),