@orq-ai/node 4.12.8 → 4.12.10

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 (130) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/lib/config.js.map +1 -1
  5. package/models/components/evaluatorresponsefunction.js +2 -2
  6. package/models/components/evaluatorresponsehttp.js +2 -2
  7. package/models/components/evaluatorresponsejsonschema.js +2 -2
  8. package/models/components/evaluatorresponsellm.js +2 -2
  9. package/models/components/evaluatorresponsepython.js +2 -2
  10. package/models/components/evaluatorresponseragas.js +2 -2
  11. package/models/components/evaluatorresponsetypescript.js +2 -2
  12. package/models/components/reasoningpart.js +1 -1
  13. package/models/operations/createdataset.js +1 -1
  14. package/models/operations/createdatasetitem.js +5 -5
  15. package/models/operations/createdatasource.js +1 -1
  16. package/models/operations/createtool.js +6 -6
  17. package/models/operations/getalltools.js +6 -6
  18. package/models/operations/getv2humanevalsets.js +2 -2
  19. package/models/operations/getv2humanevalsetsid.js +2 -2
  20. package/models/operations/listdatasetdatapoints.js +5 -5
  21. package/models/operations/listdatasets.js +1 -1
  22. package/models/operations/listdatasources.js +1 -1
  23. package/models/operations/patchv2humanevalsetsid.js +2 -2
  24. package/models/operations/postv2feedbackevaluation.js +4 -4
  25. package/models/operations/postv2humanevalsets.js +2 -2
  26. package/models/operations/retrievedatapoint.js +5 -5
  27. package/models/operations/retrievedataset.js +1 -1
  28. package/models/operations/retrievedatasource.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/updatedatapoint.js +5 -5
  33. package/models/operations/updatedataset.js +1 -1
  34. package/models/operations/updatedatasource.js +1 -1
  35. package/models/operations/updatetool.js +7 -7
  36. package/package.json +5 -5
  37. package/packages/orq-rc/src/lib/config.ts +2 -2
  38. package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +2 -2
  39. package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +2 -2
  40. package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  41. package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +2 -2
  42. package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +2 -2
  43. package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +2 -2
  44. package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +2 -2
  45. package/packages/orq-rc/src/models/components/index.ts +2 -1
  46. package/packages/orq-rc/src/models/components/plugin.ts +7 -0
  47. package/packages/orq-rc/src/models/components/publicplugin.ts +111 -0
  48. package/packages/orq-rc/src/models/components/reasoning.ts +1 -0
  49. package/packages/orq-rc/src/models/components/reasoningparam.ts +1 -0
  50. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  51. package/packages/orq-rc/src/models/components/responsehealingplugin.ts +77 -0
  52. package/packages/orq-rc/src/models/operations/createagentrequest.ts +30 -10
  53. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +9 -3
  54. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  55. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +5 -5
  56. package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
  57. package/packages/orq-rc/src/models/operations/createprompt.ts +19 -8
  58. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +5 -9
  59. package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
  60. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +2 -0
  61. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +2 -0
  62. package/packages/orq-rc/src/models/operations/deployments.ts +4 -0
  63. package/packages/orq-rc/src/models/operations/deploymentstream.ts +2 -0
  64. package/packages/orq-rc/src/models/operations/getallprompts.ts +10 -5
  65. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  66. package/packages/orq-rc/src/models/operations/getoneprompt.ts +10 -5
  67. package/packages/orq-rc/src/models/operations/getpromptversion.ts +10 -5
  68. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  70. package/packages/orq-rc/src/models/operations/invokeeval.ts +66 -0
  71. package/packages/orq-rc/src/models/operations/listagents.ts +12 -4
  72. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
  73. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  74. package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
  75. package/packages/orq-rc/src/models/operations/listpromptversions.ts +10 -5
  76. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  78. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +12 -4
  80. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +5 -5
  81. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  82. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
  83. package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
  84. package/packages/orq-rc/src/models/operations/runagent.ts +19 -7
  85. package/packages/orq-rc/src/models/operations/streamrunagent.ts +19 -7
  86. package/packages/orq-rc/src/models/operations/updateagent.ts +30 -10
  87. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
  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/updateprompt.ts +19 -8
  91. package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
  92. package/packages/orq-rc/src/sdk/feedback.ts +2 -2
  93. package/sdk/feedback.d.ts +4 -1
  94. package/sdk/feedback.d.ts.map +1 -1
  95. package/sdk/feedback.js +4 -1
  96. package/sdk/feedback.js.map +1 -1
  97. package/src/lib/config.ts +2 -2
  98. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  99. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  100. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  101. package/src/models/components/evaluatorresponsellm.ts +2 -2
  102. package/src/models/components/evaluatorresponsepython.ts +2 -2
  103. package/src/models/components/evaluatorresponseragas.ts +2 -2
  104. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  105. package/src/models/components/reasoningpart.ts +1 -1
  106. package/src/models/operations/createdataset.ts +1 -1
  107. package/src/models/operations/createdatasetitem.ts +5 -5
  108. package/src/models/operations/createdatasource.ts +1 -1
  109. package/src/models/operations/createtool.ts +6 -6
  110. package/src/models/operations/getalltools.ts +6 -6
  111. package/src/models/operations/getv2humanevalsets.ts +2 -2
  112. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  113. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  114. package/src/models/operations/listdatasets.ts +1 -1
  115. package/src/models/operations/listdatasources.ts +1 -1
  116. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  117. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  118. package/src/models/operations/postv2humanevalsets.ts +2 -2
  119. package/src/models/operations/retrievedatapoint.ts +5 -5
  120. package/src/models/operations/retrievedataset.ts +1 -1
  121. package/src/models/operations/retrievedatasource.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/updatedatapoint.ts +5 -5
  126. package/src/models/operations/updatedataset.ts +1 -1
  127. package/src/models/operations/updatedatasource.ts +1 -1
  128. package/src/models/operations/updatetool.ts +7 -7
  129. package/src/sdk/feedback.ts +4 -1
  130. package/packages/orq-rc/src/models/components/publicpiiredactionplugin.ts +0 -127
@@ -770,7 +770,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
770
770
  z.ZodTypeDef,
771
771
  unknown
772
772
  > = z.object({
773
- _id: z.string().default("tool_01KYHFSEGBY8BJCX37CZHE98QM"),
773
+ _id: z.string().default("tool_01KYPP1H1KFR7T4H65DQA31G1W"),
774
774
  path: z.string(),
775
775
  key: z.string(),
776
776
  display_name: z.string().optional(),
@@ -867,7 +867,7 @@ export const DataTools$inboundSchema: z.ZodType<
867
867
  z.ZodTypeDef,
868
868
  unknown
869
869
  > = z.object({
870
- id: z.string().default("01KYHFSEG969GFFZMW0HT9YWQY"),
870
+ id: z.string().default("01KYPP1H1JRW6615ZKDWY2PSH5"),
871
871
  name: z.string(),
872
872
  description: z.string().optional(),
873
873
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -920,7 +920,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
920
920
  z.ZodTypeDef,
921
921
  unknown
922
922
  > = z.object({
923
- _id: z.string().default("tool_01KYHFSEG7W0ZS8JNZNA1AX1MH"),
923
+ _id: z.string().default("tool_01KYPP1H1H2Z51HVM4JES008WT"),
924
924
  path: z.string(),
925
925
  key: z.string(),
926
926
  display_name: z.string().optional(),
@@ -1105,7 +1105,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
1105
1105
  z.ZodTypeDef,
1106
1106
  unknown
1107
1107
  > = z.object({
1108
- _id: z.string().default("tool_01KYHFSEG46V5YMGA60F58MMFE"),
1108
+ _id: z.string().default("tool_01KYPP1H1FCY4W1JV8P8RJ4FZ0"),
1109
1109
  path: z.string(),
1110
1110
  key: z.string(),
1111
1111
  display_name: z.string().optional(),
@@ -1198,7 +1198,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1198
1198
  z.ZodTypeDef,
1199
1199
  unknown
1200
1200
  > = z.object({
1201
- _id: z.string().default("tool_01KYHFSEG28RJV7Z4V11K6B7QD"),
1201
+ _id: z.string().default("tool_01KYPP1H1EYDK40MNA07XS3266"),
1202
1202
  path: z.string(),
1203
1203
  key: z.string(),
1204
1204
  display_name: z.string().optional(),
@@ -1296,7 +1296,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
1296
1296
  z.ZodTypeDef,
1297
1297
  unknown
1298
1298
  > = z.object({
1299
- _id: z.string().default("tool_01KYHFSEG0ZJS0FNWQPETWVA8V"),
1299
+ _id: z.string().default("tool_01KYPP1H1BNFDYY8SBFZSKT9S6"),
1300
1300
  path: z.string(),
1301
1301
  key: z.string(),
1302
1302
  display_name: z.string().optional(),
@@ -250,6 +250,8 @@ export const GetOnePromptPromptsReasoningEffort = {
250
250
  Low: "low",
251
251
  Medium: "medium",
252
252
  High: "high",
253
+ Xhigh: "xhigh",
254
+ Max: "max",
253
255
  } as const;
254
256
  /**
255
257
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
@@ -425,6 +427,8 @@ export const GetOnePromptProvider = {
425
427
  Poolside: "poolside",
426
428
  Tencent: "tencent",
427
429
  Nebius: "nebius",
430
+ Fireworks: "fireworks",
431
+ Baseten: "baseten",
428
432
  Reson8: "reson8",
429
433
  Slack: "slack",
430
434
  Orq: "orq",
@@ -566,9 +570,6 @@ export type GetOnePromptMessages = {
566
570
  export type GetOnePromptPromptConfig = {
567
571
  stream?: boolean | undefined;
568
572
  model?: string | null | undefined;
569
- /**
570
- * The id of the resource
571
- */
572
573
  modelDbId?: string | null | undefined;
573
574
  /**
574
575
  * The modality of the model
@@ -834,7 +835,8 @@ export type GetOnePromptGuardrails = {
834
835
  export type GetOnePromptPlugins =
835
836
  | components.PIIRedactionPluginEn
836
837
  | components.PIIRedactionPluginNl
837
- | components.PIIRedactionPluginAuto;
838
+ | components.PIIRedactionPluginAuto
839
+ | components.ResponseHealingPlugin;
838
840
 
839
841
  export type GetOnePromptFallbacks = {
840
842
  /**
@@ -1417,13 +1419,14 @@ export type GetOnePromptPromptField = {
1417
1419
  */
1418
1420
  guardrails?: Array<GetOnePromptGuardrails> | undefined;
1419
1421
  /**
1420
- * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
1422
+ * Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
1421
1423
  */
1422
1424
  plugins?:
1423
1425
  | Array<
1424
1426
  | components.PIIRedactionPluginEn
1425
1427
  | components.PIIRedactionPluginNl
1426
1428
  | components.PIIRedactionPluginAuto
1429
+ | components.ResponseHealingPlugin
1427
1430
  >
1428
1431
  | undefined;
1429
1432
  /**
@@ -2490,6 +2493,7 @@ export const GetOnePromptPlugins$inboundSchema: z.ZodType<
2490
2493
  components.PIIRedactionPluginEn$inboundSchema,
2491
2494
  components.PIIRedactionPluginNl$inboundSchema,
2492
2495
  components.PIIRedactionPluginAuto$inboundSchema,
2496
+ components.ResponseHealingPlugin$inboundSchema,
2493
2497
  ]);
2494
2498
 
2495
2499
  export function getOnePromptPluginsFromJSON(
@@ -3222,6 +3226,7 @@ export const GetOnePromptPromptField$inboundSchema: z.ZodType<
3222
3226
  components.PIIRedactionPluginEn$inboundSchema,
3223
3227
  components.PIIRedactionPluginNl$inboundSchema,
3224
3228
  components.PIIRedactionPluginAuto$inboundSchema,
3229
+ components.ResponseHealingPlugin$inboundSchema,
3225
3230
  ]),
3226
3231
  ).optional(),
3227
3232
  fallbacks: z.array(z.lazy(() => GetOnePromptFallbacks$inboundSchema))
@@ -254,6 +254,8 @@ export const GetPromptVersionPromptsReasoningEffort = {
254
254
  Low: "low",
255
255
  Medium: "medium",
256
256
  High: "high",
257
+ Xhigh: "xhigh",
258
+ Max: "max",
257
259
  } as const;
258
260
  /**
259
261
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
@@ -431,6 +433,8 @@ export const GetPromptVersionProvider = {
431
433
  Poolside: "poolside",
432
434
  Tencent: "tencent",
433
435
  Nebius: "nebius",
436
+ Fireworks: "fireworks",
437
+ Baseten: "baseten",
434
438
  Reson8: "reson8",
435
439
  Slack: "slack",
436
440
  Orq: "orq",
@@ -574,9 +578,6 @@ export type GetPromptVersionMessages = {
574
578
  export type GetPromptVersionPromptConfig = {
575
579
  stream?: boolean | undefined;
576
580
  model?: string | null | undefined;
577
- /**
578
- * The id of the resource
579
- */
580
581
  modelDbId?: string | null | undefined;
581
582
  /**
582
583
  * The modality of the model
@@ -846,7 +847,8 @@ export type GetPromptVersionGuardrails = {
846
847
  export type GetPromptVersionPlugins =
847
848
  | components.PIIRedactionPluginEn
848
849
  | components.PIIRedactionPluginNl
849
- | components.PIIRedactionPluginAuto;
850
+ | components.PIIRedactionPluginAuto
851
+ | components.ResponseHealingPlugin;
850
852
 
851
853
  export type GetPromptVersionFallbacks = {
852
854
  /**
@@ -1430,13 +1432,14 @@ export type GetPromptVersionPromptField = {
1430
1432
  */
1431
1433
  guardrails?: Array<GetPromptVersionGuardrails> | undefined;
1432
1434
  /**
1433
- * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
1435
+ * Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
1434
1436
  */
1435
1437
  plugins?:
1436
1438
  | Array<
1437
1439
  | components.PIIRedactionPluginEn
1438
1440
  | components.PIIRedactionPluginNl
1439
1441
  | components.PIIRedactionPluginAuto
1442
+ | components.ResponseHealingPlugin
1440
1443
  >
1441
1444
  | undefined;
1442
1445
  /**
@@ -2519,6 +2522,7 @@ export const GetPromptVersionPlugins$inboundSchema: z.ZodType<
2519
2522
  components.PIIRedactionPluginEn$inboundSchema,
2520
2523
  components.PIIRedactionPluginNl$inboundSchema,
2521
2524
  components.PIIRedactionPluginAuto$inboundSchema,
2525
+ components.ResponseHealingPlugin$inboundSchema,
2522
2526
  ]);
2523
2527
 
2524
2528
  export function getPromptVersionPluginsFromJSON(
@@ -3278,6 +3282,7 @@ export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
3278
3282
  components.PIIRedactionPluginEn$inboundSchema,
3279
3283
  components.PIIRedactionPluginNl$inboundSchema,
3280
3284
  components.PIIRedactionPluginAuto$inboundSchema,
3285
+ components.ResponseHealingPlugin$inboundSchema,
3281
3286
  ]),
3282
3287
  ).optional(),
3283
3288
  fallbacks: z.array(z.lazy(() => GetPromptVersionFallbacks$inboundSchema))
@@ -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-07-27T09:51:21.838Z",
143
+ "2026-07-29T10:16:52.982Z",
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-07-27T09:51:21.838Z",
188
+ "2026-07-29T10:16:52.982Z",
189
189
  ).transform(v => new Date(v)),
190
190
  filter_type: z.literal("span_type"),
191
191
  filter_values: z.array(z.string()),
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
141
141
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
142
142
  .optional(),
143
143
  updated: z.string().datetime({ offset: true }).default(
144
- "2026-07-27T09:51:21.838Z",
144
+ "2026-07-29T10:16:52.982Z",
145
145
  ).transform(v => new Date(v)),
146
146
  filter_type: z.literal("name"),
147
147
  filter_value: z.string(),
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
186
186
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
187
187
  .optional(),
188
188
  updated: z.string().datetime({ offset: true }).default(
189
- "2026-07-27T09:51:21.838Z",
189
+ "2026-07-29T10:16:52.982Z",
190
190
  ).transform(v => new Date(v)),
191
191
  filter_type: z.literal("span_type"),
192
192
  filter_values: z.array(z.string()),
@@ -160,6 +160,8 @@ export type InvokeEvalRequest = {
160
160
  export type Structured = {
161
161
  type: "structured";
162
162
  value: { [k: string]: any };
163
+ traceId?: string | undefined;
164
+ spanId?: string | undefined;
163
165
  };
164
166
 
165
167
  export type InvokeEvalResponseBodyEvalsResponse200ApplicationJson8Value =
@@ -174,6 +176,8 @@ export type InvokeEvalResponseBodyEvalsResponseValue = {
174
176
  export type ResponseBodyHTTP = {
175
177
  type: "http_eval";
176
178
  value?: InvokeEvalResponseBodyEvalsResponseValue | null | undefined;
179
+ traceId?: string | undefined;
180
+ spanId?: string | undefined;
177
181
  };
178
182
 
179
183
  export type InvokeEvalResponseBodyEvalsResponse200ApplicationJSONValue =
@@ -237,6 +241,8 @@ export type InvokeEvalResponseBodyValue = {
237
241
  export type BERTScore = {
238
242
  type: "bert_score";
239
243
  value: InvokeEvalResponseBodyValue;
244
+ traceId?: string | undefined;
245
+ spanId?: string | undefined;
240
246
  };
241
247
 
242
248
  export type Rouge1 = {
@@ -266,11 +272,15 @@ export type ResponseBodyValue = {
266
272
  export type RougeN = {
267
273
  type: "rouge_n";
268
274
  value: ResponseBodyValue;
275
+ traceId?: string | undefined;
276
+ spanId?: string | undefined;
269
277
  };
270
278
 
271
279
  export type StringArray = {
272
280
  type: "string_array";
273
281
  values: Array<string | null>;
282
+ traceId?: string | undefined;
283
+ spanId?: string | undefined;
274
284
  };
275
285
 
276
286
  export type InvokeEvalResponseBodyEvalsResponse200Value =
@@ -281,6 +291,8 @@ export type InvokeEvalResponseBodyEvalsResponse200Value =
281
291
  export type Boolean = {
282
292
  type: "boolean";
283
293
  value: boolean | string | number | null;
294
+ traceId?: string | undefined;
295
+ spanId?: string | undefined;
284
296
  };
285
297
 
286
298
  export const FormatOptionsStyle = {
@@ -309,12 +321,16 @@ export type NumberT = {
309
321
  originalValue?: number | null | undefined;
310
322
  value: number | null;
311
323
  formatOptions?: FormatOptions2 | FormatOptions1 | undefined;
324
+ traceId?: string | undefined;
325
+ spanId?: string | undefined;
312
326
  };
313
327
 
314
328
  export type String = {
315
329
  type: "string";
316
330
  originalValue?: string | null | undefined;
317
331
  value?: string | null | undefined;
332
+ traceId?: string | undefined;
333
+ spanId?: string | undefined;
318
334
  };
319
335
 
320
336
  /**
@@ -635,6 +651,13 @@ export const Structured$inboundSchema: z.ZodType<
635
651
  > = z.object({
636
652
  type: z.literal("structured"),
637
653
  value: z.record(z.any()),
654
+ trace_id: z.string().optional(),
655
+ span_id: z.string().optional(),
656
+ }).transform((v) => {
657
+ return remap$(v, {
658
+ "trace_id": "traceId",
659
+ "span_id": "spanId",
660
+ });
638
661
  });
639
662
 
640
663
  export function structuredFromJSON(
@@ -706,6 +729,13 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
706
729
  value: z.nullable(
707
730
  z.lazy(() => InvokeEvalResponseBodyEvalsResponseValue$inboundSchema),
708
731
  ).optional(),
732
+ trace_id: z.string().optional(),
733
+ span_id: z.string().optional(),
734
+ }).transform((v) => {
735
+ return remap$(v, {
736
+ "trace_id": "traceId",
737
+ "span_id": "spanId",
738
+ });
709
739
  });
710
740
 
711
741
  export function responseBodyHTTPFromJSON(
@@ -937,6 +967,13 @@ export const BERTScore$inboundSchema: z.ZodType<
937
967
  > = z.object({
938
968
  type: z.literal("bert_score"),
939
969
  value: z.lazy(() => InvokeEvalResponseBodyValue$inboundSchema),
970
+ trace_id: z.string().optional(),
971
+ span_id: z.string().optional(),
972
+ }).transform((v) => {
973
+ return remap$(v, {
974
+ "trace_id": "traceId",
975
+ "span_id": "spanId",
976
+ });
940
977
  });
941
978
 
942
979
  export function bertScoreFromJSON(
@@ -1035,6 +1072,13 @@ export const RougeN$inboundSchema: z.ZodType<RougeN, z.ZodTypeDef, unknown> = z
1035
1072
  .object({
1036
1073
  type: z.literal("rouge_n"),
1037
1074
  value: z.lazy(() => ResponseBodyValue$inboundSchema),
1075
+ trace_id: z.string().optional(),
1076
+ span_id: z.string().optional(),
1077
+ }).transform((v) => {
1078
+ return remap$(v, {
1079
+ "trace_id": "traceId",
1080
+ "span_id": "spanId",
1081
+ });
1038
1082
  });
1039
1083
 
1040
1084
  export function rougeNFromJSON(
@@ -1055,6 +1099,13 @@ export const StringArray$inboundSchema: z.ZodType<
1055
1099
  > = z.object({
1056
1100
  type: z.literal("string_array"),
1057
1101
  values: z.array(z.nullable(z.string())),
1102
+ trace_id: z.string().optional(),
1103
+ span_id: z.string().optional(),
1104
+ }).transform((v) => {
1105
+ return remap$(v, {
1106
+ "trace_id": "traceId",
1107
+ "span_id": "spanId",
1108
+ });
1058
1109
  });
1059
1110
 
1060
1111
  export function stringArrayFromJSON(
@@ -1096,6 +1147,13 @@ export const Boolean$inboundSchema: z.ZodType<Boolean, z.ZodTypeDef, unknown> =
1096
1147
  z.object({
1097
1148
  type: z.literal("boolean"),
1098
1149
  value: z.nullable(z.union([z.boolean(), z.string(), z.number()])),
1150
+ trace_id: z.string().optional(),
1151
+ span_id: z.string().optional(),
1152
+ }).transform((v) => {
1153
+ return remap$(v, {
1154
+ "trace_id": "traceId",
1155
+ "span_id": "spanId",
1156
+ });
1099
1157
  });
1100
1158
 
1101
1159
  export function booleanFromJSON(
@@ -1190,10 +1248,14 @@ export const NumberT$inboundSchema: z.ZodType<NumberT, z.ZodTypeDef, unknown> =
1190
1248
  z.lazy(() => FormatOptions2$inboundSchema),
1191
1249
  z.lazy(() => FormatOptions1$inboundSchema),
1192
1250
  ]).optional(),
1251
+ trace_id: z.string().optional(),
1252
+ span_id: z.string().optional(),
1193
1253
  }).transform((v) => {
1194
1254
  return remap$(v, {
1195
1255
  "original_value": "originalValue",
1196
1256
  "format_options": "formatOptions",
1257
+ "trace_id": "traceId",
1258
+ "span_id": "spanId",
1197
1259
  });
1198
1260
  });
1199
1261
 
@@ -1213,9 +1275,13 @@ export const String$inboundSchema: z.ZodType<String, z.ZodTypeDef, unknown> = z
1213
1275
  type: z.literal("string"),
1214
1276
  original_value: z.nullable(z.string()).optional(),
1215
1277
  value: z.nullable(z.string()).optional(),
1278
+ trace_id: z.string().optional(),
1279
+ span_id: z.string().optional(),
1216
1280
  }).transform((v) => {
1217
1281
  return remap$(v, {
1218
1282
  "original_value": "originalValue",
1283
+ "trace_id": "traceId",
1284
+ "span_id": "spanId",
1219
1285
  });
1220
1286
  });
1221
1287
 
@@ -446,7 +446,8 @@ export type ListAgentsAgentsGuardrails = {
446
446
  export type ListAgentsPlugins =
447
447
  | components.PIIRedactionPluginEn
448
448
  | components.PIIRedactionPluginNl
449
- | components.PIIRedactionPluginAuto;
449
+ | components.PIIRedactionPluginAuto
450
+ | components.ResponseHealingPlugin;
450
451
 
451
452
  export type ListAgentsFallbacks = {
452
453
  /**
@@ -664,13 +665,14 @@ export type ListAgentsParameters = {
664
665
  */
665
666
  guardrails?: Array<ListAgentsAgentsGuardrails> | undefined;
666
667
  /**
667
- * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
668
+ * Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
668
669
  */
669
670
  plugins?:
670
671
  | Array<
671
672
  | components.PIIRedactionPluginEn
672
673
  | components.PIIRedactionPluginNl
673
674
  | components.PIIRedactionPluginAuto
675
+ | components.ResponseHealingPlugin
674
676
  >
675
677
  | undefined;
676
678
  /**
@@ -909,7 +911,8 @@ export type ListAgentsFallbackModelConfigurationGuardrails = {
909
911
  export type ListAgentsFallbackModelConfigurationPlugins =
910
912
  | components.PIIRedactionPluginEn
911
913
  | components.PIIRedactionPluginNl
912
- | components.PIIRedactionPluginAuto;
914
+ | components.PIIRedactionPluginAuto
915
+ | components.ResponseHealingPlugin;
913
916
 
914
917
  export type ListAgentsFallbackModelConfigurationFallbacks = {
915
918
  /**
@@ -1142,13 +1145,14 @@ export type ListAgentsFallbackModelConfigurationParameters = {
1142
1145
  | Array<ListAgentsFallbackModelConfigurationGuardrails>
1143
1146
  | undefined;
1144
1147
  /**
1145
- * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
1148
+ * Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
1146
1149
  */
1147
1150
  plugins?:
1148
1151
  | Array<
1149
1152
  | components.PIIRedactionPluginEn
1150
1153
  | components.PIIRedactionPluginNl
1151
1154
  | components.PIIRedactionPluginAuto
1155
+ | components.ResponseHealingPlugin
1152
1156
  >
1153
1157
  | undefined;
1154
1158
  /**
@@ -1896,6 +1900,7 @@ export const ListAgentsPlugins$inboundSchema: z.ZodType<
1896
1900
  components.PIIRedactionPluginEn$inboundSchema,
1897
1901
  components.PIIRedactionPluginNl$inboundSchema,
1898
1902
  components.PIIRedactionPluginAuto$inboundSchema,
1903
+ components.ResponseHealingPlugin$inboundSchema,
1899
1904
  ]);
1900
1905
 
1901
1906
  export function listAgentsPluginsFromJSON(
@@ -2109,6 +2114,7 @@ export const ListAgentsParameters$inboundSchema: z.ZodType<
2109
2114
  components.PIIRedactionPluginEn$inboundSchema,
2110
2115
  components.PIIRedactionPluginNl$inboundSchema,
2111
2116
  components.PIIRedactionPluginAuto$inboundSchema,
2117
+ components.ResponseHealingPlugin$inboundSchema,
2112
2118
  ]),
2113
2119
  ).optional(),
2114
2120
  fallbacks: z.array(z.lazy(() => ListAgentsFallbacks$inboundSchema))
@@ -2514,6 +2520,7 @@ export const ListAgentsFallbackModelConfigurationPlugins$inboundSchema:
2514
2520
  components.PIIRedactionPluginEn$inboundSchema,
2515
2521
  components.PIIRedactionPluginNl$inboundSchema,
2516
2522
  components.PIIRedactionPluginAuto$inboundSchema,
2523
+ components.ResponseHealingPlugin$inboundSchema,
2517
2524
  ]);
2518
2525
 
2519
2526
  export function listAgentsFallbackModelConfigurationPluginsFromJSON(
@@ -2779,6 +2786,7 @@ export const ListAgentsFallbackModelConfigurationParameters$inboundSchema:
2779
2786
  components.PIIRedactionPluginEn$inboundSchema,
2780
2787
  components.PIIRedactionPluginNl$inboundSchema,
2781
2788
  components.PIIRedactionPluginAuto$inboundSchema,
2789
+ components.ResponseHealingPlugin$inboundSchema,
2782
2790
  ]),
2783
2791
  ).optional(),
2784
2792
  fallbacks: z.array(
@@ -1647,7 +1647,7 @@ export const ListDatasetDatapointsEvaluations4$inboundSchema: z.ZodType<
1647
1647
  explanation: z.string().optional(),
1648
1648
  reviewed_by_id: z.string(),
1649
1649
  reviewed_at: z.string().datetime({ offset: true }).default(
1650
- "2026-07-27T09:51:39.837Z",
1650
+ "2026-07-29T10:17:08.103Z",
1651
1651
  ).transform(v => new Date(v)),
1652
1652
  type: z.literal("string_array"),
1653
1653
  values: z.array(z.string()),
@@ -1743,7 +1743,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
1743
1743
  explanation: z.string().optional(),
1744
1744
  reviewed_by_id: z.string(),
1745
1745
  reviewed_at: z.string().datetime({ offset: true }).default(
1746
- "2026-07-27T09:51:39.836Z",
1746
+ "2026-07-29T10:17:08.102Z",
1747
1747
  ).transform(v => new Date(v)),
1748
1748
  type: z.literal("boolean"),
1749
1749
  value: z.boolean(),
@@ -1847,7 +1847,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
1847
1847
  explanation: z.string().optional(),
1848
1848
  reviewed_by_id: z.string(),
1849
1849
  reviewed_at: z.string().datetime({ offset: true }).default(
1850
- "2026-07-27T09:51:39.834Z",
1850
+ "2026-07-29T10:17:08.101Z",
1851
1851
  ).transform(v => new Date(v)),
1852
1852
  type: z.literal("number"),
1853
1853
  value: z.number(),
@@ -1953,7 +1953,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
1953
1953
  explanation: z.string().optional(),
1954
1954
  reviewed_by_id: z.string(),
1955
1955
  reviewed_at: z.string().datetime({ offset: true }).default(
1956
- "2026-07-27T09:51:39.833Z",
1956
+ "2026-07-29T10:17:08.101Z",
1957
1957
  ).transform(v => new Date(v)),
1958
1958
  type: z.literal("string"),
1959
1959
  value: z.string(),
@@ -2036,7 +2036,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
2036
2036
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2037
2037
  .optional(),
2038
2038
  updated: z.string().datetime({ offset: true }).default(
2039
- "2026-07-27T09:51:21.838Z",
2039
+ "2026-07-29T10:16:52.982Z",
2040
2040
  ).transform(v => new Date(v)),
2041
2041
  }).transform((v) => {
2042
2042
  return remap$(v, {
@@ -169,7 +169,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
169
169
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
170
170
  .optional(),
171
171
  updated: z.string().datetime({ offset: true }).default(
172
- "2026-07-27T09:51:21.838Z",
172
+ "2026-07-29T10:16:52.982Z",
173
173
  ).transform(v => new Date(v)),
174
174
  }).transform((v) => {
175
175
  return remap$(v, {
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
278
278
  z.ZodTypeDef,
279
279
  unknown
280
280
  > = z.object({
281
- _id: z.string().default("01KYHFSEPSKYP213MWTWA6C08P"),
281
+ _id: z.string().default("01KYPP1H6BZHZP0GFV5GYSRFDT"),
282
282
  display_name: z.string(),
283
283
  description: z.nullable(z.string()).optional(),
284
284
  status: ListDatasourcesStatus$inboundSchema,
@@ -268,6 +268,8 @@ export const ListPromptVersionsPromptsReasoningEffort = {
268
268
  Low: "low",
269
269
  Medium: "medium",
270
270
  High: "high",
271
+ Xhigh: "xhigh",
272
+ Max: "max",
271
273
  } as const;
272
274
  /**
273
275
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
@@ -445,6 +447,8 @@ export const ListPromptVersionsProvider = {
445
447
  Poolside: "poolside",
446
448
  Tencent: "tencent",
447
449
  Nebius: "nebius",
450
+ Fireworks: "fireworks",
451
+ Baseten: "baseten",
448
452
  Reson8: "reson8",
449
453
  Slack: "slack",
450
454
  Orq: "orq",
@@ -588,9 +592,6 @@ export type ListPromptVersionsMessages = {
588
592
  export type ListPromptVersionsPromptConfig = {
589
593
  stream?: boolean | undefined;
590
594
  model?: string | null | undefined;
591
- /**
592
- * The id of the resource
593
- */
594
595
  modelDbId?: string | null | undefined;
595
596
  /**
596
597
  * The modality of the model
@@ -862,7 +863,8 @@ export type ListPromptVersionsGuardrails = {
862
863
  export type ListPromptVersionsPlugins =
863
864
  | components.PIIRedactionPluginEn
864
865
  | components.PIIRedactionPluginNl
865
- | components.PIIRedactionPluginAuto;
866
+ | components.PIIRedactionPluginAuto
867
+ | components.ResponseHealingPlugin;
866
868
 
867
869
  export type ListPromptVersionsFallbacks = {
868
870
  /**
@@ -1445,13 +1447,14 @@ export type ListPromptVersionsPromptField = {
1445
1447
  */
1446
1448
  guardrails?: Array<ListPromptVersionsGuardrails> | undefined;
1447
1449
  /**
1448
- * Request-scoped transforms applied to the text exchanged with the model. Currently supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response.
1450
+ * Request-scoped transforms applied to the text exchanged with the model. Supports `pii_redaction`, which replaces PII with placeholders before the provider sees it and restores the original values in the response, and `response_healing`, which repairs malformed JSON in non-streaming output.
1449
1451
  */
1450
1452
  plugins?:
1451
1453
  | Array<
1452
1454
  | components.PIIRedactionPluginEn
1453
1455
  | components.PIIRedactionPluginNl
1454
1456
  | components.PIIRedactionPluginAuto
1457
+ | components.ResponseHealingPlugin
1455
1458
  >
1456
1459
  | undefined;
1457
1460
  /**
@@ -2552,6 +2555,7 @@ export const ListPromptVersionsPlugins$inboundSchema: z.ZodType<
2552
2555
  components.PIIRedactionPluginEn$inboundSchema,
2553
2556
  components.PIIRedactionPluginNl$inboundSchema,
2554
2557
  components.PIIRedactionPluginAuto$inboundSchema,
2558
+ components.ResponseHealingPlugin$inboundSchema,
2555
2559
  ]);
2556
2560
 
2557
2561
  export function listPromptVersionsPluginsFromJSON(
@@ -3328,6 +3332,7 @@ export const ListPromptVersionsPromptField$inboundSchema: z.ZodType<
3328
3332
  components.PIIRedactionPluginEn$inboundSchema,
3329
3333
  components.PIIRedactionPluginNl$inboundSchema,
3330
3334
  components.PIIRedactionPluginAuto$inboundSchema,
3335
+ components.ResponseHealingPlugin$inboundSchema,
3331
3336
  ]),
3332
3337
  ).optional(),
3333
3338
  fallbacks: z.array(z.lazy(() => ListPromptVersionsFallbacks$inboundSchema))
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
318
318
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
319
319
  .optional(),
320
320
  updated: z.string().datetime({ offset: true }).default(
321
- "2026-07-27T09:51:21.838Z",
321
+ "2026-07-29T10:16:52.982Z",
322
322
  ).transform(v => new Date(v)),
323
323
  filter_type: z.literal("name"),
324
324
  filter_value: z.string(),
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
364
364
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
365
365
  .optional(),
366
366
  updated: z.string().datetime({ offset: true }).default(
367
- "2026-07-27T09:51:21.838Z",
367
+ "2026-07-29T10:16:52.982Z",
368
368
  ).transform(v => new Date(v)),
369
369
  filter_type: z.literal("span_type"),
370
370
  filter_values: z.array(z.string()),
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
245
245
  PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
246
246
  .default("orq"),
247
247
  explanation: z.string().optional(),
248
- reviewedAt: z.date().default(() => new Date("2026-07-27T09:51:40.034Z"))
248
+ reviewedAt: z.date().default(() => new Date("2026-07-29T10:17:08.264Z"))
249
249
  .transform(v => v.toISOString()),
250
250
  type: z.literal("string_array"),
251
251
  values: z.array(z.string()),
@@ -299,7 +299,7 @@ export const RequestBody3$outboundSchema: z.ZodType<
299
299
  source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
300
300
  .default("orq"),
301
301
  explanation: z.string().optional(),
302
- reviewedAt: z.date().default(() => new Date("2026-07-27T09:51:40.033Z"))
302
+ reviewedAt: z.date().default(() => new Date("2026-07-29T10:17:08.263Z"))
303
303
  .transform(v => v.toISOString()),
304
304
  type: z.literal("boolean"),
305
305
  value: z.boolean(),
@@ -353,7 +353,7 @@ export const PostV2FeedbackEvaluationRequestBody2$outboundSchema: z.ZodType<
353
353
  "orq",
354
354
  ),
355
355
  explanation: z.string().optional(),
356
- reviewedAt: z.date().default(() => new Date("2026-07-27T09:51:40.032Z"))
356
+ reviewedAt: z.date().default(() => new Date("2026-07-29T10:17:08.263Z"))
357
357
  .transform(v => v.toISOString()),
358
358
  type: z.literal("number"),
359
359
  value: z.number(),
@@ -411,7 +411,7 @@ export const PostV2FeedbackEvaluationRequestBody1$outboundSchema: z.ZodType<
411
411
  humanReviewId: z.string().optional(),
412
412
  source: RequestBodySource$outboundSchema.default("orq"),
413
413
  explanation: z.string().optional(),
414
- reviewedAt: z.date().default(() => new Date("2026-07-27T09:51:40.031Z"))
414
+ reviewedAt: z.date().default(() => new Date("2026-07-29T10:17:08.262Z"))
415
415
  .transform(v => v.toISOString()),
416
416
  type: z.literal("string"),
417
417
  value: z.string(),