@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
@@ -862,7 +862,7 @@ exports.UpdateDatapointEvaluations4$inboundSchema = z.object({
862
862
  parent_annotation_id: z.string().optional(),
863
863
  explanation: z.string().optional(),
864
864
  reviewed_by_id: z.string(),
865
- reviewed_at: z.string().datetime({ offset: true }).default("2026-07-27T22:10:05.644Z").transform(v => new Date(v)),
865
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-07-29T13:09:53.894Z").transform(v => new Date(v)),
866
866
  type: z.literal("string_array"),
867
867
  values: z.array(z.string()),
868
868
  }).transform((v) => {
@@ -913,7 +913,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
913
913
  parent_annotation_id: z.string().optional(),
914
914
  explanation: z.string().optional(),
915
915
  reviewed_by_id: z.string(),
916
- reviewed_at: z.string().datetime({ offset: true }).default("2026-07-27T22:10:05.643Z").transform(v => new Date(v)),
916
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-07-29T13:09:53.893Z").transform(v => new Date(v)),
917
917
  type: z.literal("boolean"),
918
918
  value: z.boolean(),
919
919
  }).transform((v) => {
@@ -964,7 +964,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
964
964
  parent_annotation_id: z.string().optional(),
965
965
  explanation: z.string().optional(),
966
966
  reviewed_by_id: z.string(),
967
- reviewed_at: z.string().datetime({ offset: true }).default("2026-07-27T22:10:05.641Z").transform(v => new Date(v)),
967
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-07-29T13:09:53.891Z").transform(v => new Date(v)),
968
968
  type: z.literal("number"),
969
969
  value: z.number(),
970
970
  }).transform((v) => {
@@ -1014,7 +1014,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
1014
1014
  parent_annotation_id: z.string().optional(),
1015
1015
  explanation: z.string().optional(),
1016
1016
  reviewed_by_id: z.string(),
1017
- reviewed_at: z.string().datetime({ offset: true }).default("2026-07-27T22:10:05.640Z").transform(v => new Date(v)),
1017
+ reviewed_at: z.string().datetime({ offset: true }).default("2026-07-29T13:09:53.890Z").transform(v => new Date(v)),
1018
1018
  type: z.literal("string"),
1019
1019
  value: z.string(),
1020
1020
  }).transform((v) => {
@@ -1065,7 +1065,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
1065
1065
  updated_by_id: z.nullable(z.string()).optional(),
1066
1066
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
1067
1067
  .optional(),
1068
- updated: z.string().datetime({ offset: true }).default("2026-07-27T22:09:40.926Z").transform(v => new Date(v)),
1068
+ updated: z.string().datetime({ offset: true }).default("2026-07-29T13:09:17.857Z").transform(v => new Date(v)),
1069
1069
  }).transform((v) => {
1070
1070
  return (0, primitives_js_1.remap)(v, {
1071
1071
  "_id": "id",
@@ -95,7 +95,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
95
95
  updated_by_id: z.nullable(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-07-27T22:09:40.926Z").transform(v => new Date(v)),
98
+ updated: z.string().datetime({ offset: true }).default("2026-07-29T13:09:17.857Z").transform(v => new Date(v)),
99
99
  }).transform((v) => {
100
100
  return (0, primitives_js_1.remap)(v, {
101
101
  "_id": "id",
@@ -102,7 +102,7 @@ function updateDatasourceMetadataFromJSON(jsonString) {
102
102
  }
103
103
  /** @internal */
104
104
  exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
105
- _id: z.string().default("01KYJT1J0W2GAP1TWHCR3SDYW5"),
105
+ _id: z.string().default("01KYPZXVXX8C2WGNGY3EEKQTQV"),
106
106
  display_name: z.string(),
107
107
  description: z.nullable(z.string()).optional(),
108
108
  status: exports.UpdateDatasourceStatus$inboundSchema,
@@ -371,7 +371,7 @@ function updateToolRequestBodyToolsSchemaToJSON(updateToolRequestBodyToolsSchema
371
371
  }
372
372
  /** @internal */
373
373
  exports.RequestBodyTools$outboundSchema = z.object({
374
- id: z.string().default("01KYJT1HV10JJ3ZRZ0W42RD5T7"),
374
+ id: z.string().default("01KYPZXVR43N3BDEFWAKYKS57K"),
375
375
  name: z.string(),
376
376
  description: z.string().optional(),
377
377
  schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -667,7 +667,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
667
667
  }
668
668
  /** @internal */
669
669
  exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
670
- _id: z.string().default("tool_01KYJT1HTNXPEHG5B1HPXYD99K"),
670
+ _id: z.string().default("tool_01KYPZXVQQDNG2ADESHB89VYRN"),
671
671
  path: z.string(),
672
672
  key: z.string(),
673
673
  display_name: z.string().optional(),
@@ -720,7 +720,7 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
720
720
  }
721
721
  /** @internal */
722
722
  exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
723
- id: z.string().default("01KYJT1HTK26D7QNS8FQ6PEJCS"),
723
+ id: z.string().default("01KYPZXVQPE4F8TZ720HCGMDM9"),
724
724
  name: z.string(),
725
725
  description: z.string().optional(),
726
726
  schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
@@ -750,7 +750,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
750
750
  }
751
751
  /** @internal */
752
752
  exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
753
- _id: z.string().default("tool_01KYJT1HTH4RZJ6T0P7FQ3G6BZ"),
753
+ _id: z.string().default("tool_01KYPZXVQM7A5DTGCJGB8T7QQK"),
754
754
  path: z.string(),
755
755
  key: z.string(),
756
756
  display_name: z.string().optional(),
@@ -838,7 +838,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
838
838
  }
839
839
  /** @internal */
840
840
  exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
841
- _id: z.string().default("tool_01KYJT1HTDCECX4S3EZ1V0S40N"),
841
+ _id: z.string().default("tool_01KYPZXVQGDMBV0EYWCE7A7Y3M"),
842
842
  path: z.string(),
843
843
  key: z.string(),
844
844
  display_name: z.string().optional(),
@@ -888,7 +888,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
888
888
  }
889
889
  /** @internal */
890
890
  exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
891
- _id: z.string().default("tool_01KYJT1HTB0WQTVC80JS03EHVX"),
891
+ _id: z.string().default("tool_01KYPZXVQDZVEC9R8YKJ2QTQXP"),
892
892
  path: z.string(),
893
893
  key: z.string(),
894
894
  display_name: z.string().optional(),
@@ -942,7 +942,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
942
942
  }
943
943
  /** @internal */
944
944
  exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
945
- _id: z.string().default("tool_01KYJT1HT9M8VPB0XM8A45PXFQ"),
945
+ _id: z.string().default("tool_01KYPZXVQAVKWXKDWB4ZKCWP9R"),
946
946
  path: z.string(),
947
947
  key: z.string(),
948
948
  display_name: z.string().optional(),
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.12.8",
3
+ "version": "4.12.10",
4
4
  "author": "Orq",
5
5
  "exports": {
6
6
  ".": {
7
+ "import": "./index.js",
7
8
  "require": "./index.js",
8
- "types": "./index.d.ts",
9
- "import": "./index.js"
9
+ "types": "./index.d.ts"
10
10
  },
11
11
  "./*": "./*",
12
12
  "./langchain": {
13
+ "import": "./langchain/index.mjs",
13
14
  "require": "./langchain/index.js",
14
- "types": "./langchain/index.d.mts",
15
- "import": "./langchain/index.mjs"
15
+ "types": "./langchain/index.d.mts"
16
16
  }
17
17
  },
18
18
  "main": "./index.js",
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
  export const SDK_METADATA = {
59
59
  language: "typescript",
60
60
  openapiDocVersion: "2.0",
61
- sdkVersion: "4.13.0-rc.7",
61
+ sdkVersion: "4.13.0-rc.14",
62
62
  genVersion: "2.924.0",
63
- userAgent: "speakeasy-sdk/typescript 4.13.0-rc.7 2.924.0 2.0 @orq-ai/node",
63
+ userAgent: "speakeasy-sdk/typescript 4.13.0-rc.14 2.924.0 2.0 @orq-ai/node",
64
64
  } as const;
@@ -856,8 +856,8 @@ export const EvaluatorResponseFunction$inboundSchema: z.ZodType<
856
856
  > = z.object({
857
857
  _id: z.string(),
858
858
  description: z.string(),
859
- created: z.string().default("2026-07-27T09:51:24.480Z"),
860
- updated: z.string().default("2026-07-27T09:51:24.480Z"),
859
+ created: z.string().default("2026-07-29T10:16:55.110Z"),
860
+ updated: z.string().default("2026-07-29T10:16:55.110Z"),
861
861
  updated_by_id: z.nullable(z.string()).optional(),
862
862
  guardrail_config: z.any().optional(),
863
863
  type: z.literal("function_eval"),
@@ -42,8 +42,8 @@ export const EvaluatorResponseHttp$inboundSchema: z.ZodType<
42
42
  > = z.object({
43
43
  _id: z.string(),
44
44
  description: z.string(),
45
- created: z.string().default("2026-07-27T09:51:24.480Z"),
46
- updated: z.string().default("2026-07-27T09:51:24.480Z"),
45
+ created: z.string().default("2026-07-29T10:16:55.110Z"),
46
+ updated: z.string().default("2026-07-29T10:16:55.110Z"),
47
47
  updated_by_id: z.nullable(z.string()).optional(),
48
48
  guardrail_config: z.any().optional(),
49
49
  type: z.literal("http_eval"),
@@ -28,8 +28,8 @@ export const EvaluatorResponseJsonSchema$inboundSchema: z.ZodType<
28
28
  > = z.object({
29
29
  _id: z.string(),
30
30
  description: z.string(),
31
- created: z.string().default("2026-07-27T09:51:24.480Z"),
32
- updated: z.string().default("2026-07-27T09:51:24.480Z"),
31
+ created: z.string().default("2026-07-29T10:16:55.110Z"),
32
+ updated: z.string().default("2026-07-29T10:16:55.110Z"),
33
33
  updated_by_id: z.nullable(z.string()).optional(),
34
34
  guardrail_config: z.any().optional(),
35
35
  type: z.literal("json_schema"),
@@ -267,8 +267,8 @@ export const EvaluatorResponseLlm$inboundSchema: z.ZodType<
267
267
  > = z.object({
268
268
  _id: z.string(),
269
269
  description: z.string(),
270
- created: z.string().default("2026-07-27T09:51:24.480Z"),
271
- updated: z.string().default("2026-07-27T09:51:24.480Z"),
270
+ created: z.string().default("2026-07-29T10:16:55.110Z"),
271
+ updated: z.string().default("2026-07-29T10:16:55.110Z"),
272
272
  updated_by_id: z.nullable(z.string()).optional(),
273
273
  guardrail_config: z.any().optional(),
274
274
  type: z.literal("llm_eval"),
@@ -28,8 +28,8 @@ export const EvaluatorResponsePython$inboundSchema: z.ZodType<
28
28
  > = z.object({
29
29
  _id: z.string(),
30
30
  description: z.string(),
31
- created: z.string().default("2026-07-27T09:51:24.480Z"),
32
- updated: z.string().default("2026-07-27T09:51:24.480Z"),
31
+ created: z.string().default("2026-07-29T10:16:55.110Z"),
32
+ updated: z.string().default("2026-07-29T10:16:55.110Z"),
33
33
  updated_by_id: z.nullable(z.string()).optional(),
34
34
  guardrail_config: z.any().optional(),
35
35
  code: z.string(),
@@ -50,8 +50,8 @@ export const EvaluatorResponseRagas$inboundSchema: z.ZodType<
50
50
  > = z.object({
51
51
  _id: z.string(),
52
52
  description: z.string(),
53
- created: z.string().default("2026-07-27T09:51:24.480Z"),
54
- updated: z.string().default("2026-07-27T09:51:24.480Z"),
53
+ created: z.string().default("2026-07-29T10:16:55.110Z"),
54
+ updated: z.string().default("2026-07-29T10:16:55.110Z"),
55
55
  updated_by_id: z.nullable(z.string()).optional(),
56
56
  guardrail_config: z.any().optional(),
57
57
  type: z.literal("ragas"),
@@ -28,8 +28,8 @@ export const EvaluatorResponseTypescript$inboundSchema: z.ZodType<
28
28
  > = z.object({
29
29
  _id: z.string(),
30
30
  description: z.string(),
31
- created: z.string().default("2026-07-27T09:51:24.480Z"),
32
- updated: z.string().default("2026-07-27T09:51:24.480Z"),
31
+ created: z.string().default("2026-07-29T10:16:55.110Z"),
32
+ updated: z.string().default("2026-07-29T10:16:55.110Z"),
33
33
  updated_by_id: z.nullable(z.string()).optional(),
34
34
  guardrail_config: z.any().optional(),
35
35
  code: z.string(),
@@ -299,7 +299,7 @@ export * from "./publicembeddingdata.js";
299
299
  export * from "./publicembeddingusage.js";
300
300
  export * from "./publicidentity.js";
301
301
  export * from "./publicmodelentry.js";
302
- export * from "./publicpiiredactionplugin.js";
302
+ export * from "./publicplugin.js";
303
303
  export * from "./publicresponseresource.js";
304
304
  export * from "./publicschedule.js";
305
305
  export * from "./publicscheduleerrordetail.js";
@@ -354,6 +354,7 @@ export * from "./responsefilesearchcallinprogressstreamevent.js";
354
354
  export * from "./responsefilesearchcallsearchingstreamevent.js";
355
355
  export * from "./responsefunctioncallargumentsdeltastreamevent.js";
356
356
  export * from "./responsefunctioncallargumentsdonestreamevent.js";
357
+ export * from "./responsehealingplugin.js";
357
358
  export * from "./responseidentity.js";
358
359
  export * from "./responseimagegenerationcallcompletedstreamevent.js";
359
360
  export * from "./responseimagegenerationcallgeneratingstreamevent.js";
@@ -11,18 +11,25 @@ import {
11
11
  PIIRedactionPlugin,
12
12
  PIIRedactionPlugin$inboundSchema,
13
13
  } from "./piiredactionplugin.js";
14
+ import {
15
+ ResponseHealingPlugin,
16
+ ResponseHealingPlugin$inboundSchema,
17
+ } from "./responsehealingplugin.js";
14
18
 
15
19
  export type Plugin = {
16
20
  ofPIIRedaction: PIIRedactionPlugin;
21
+ ofResponseHealing: ResponseHealingPlugin;
17
22
  };
18
23
 
19
24
  /** @internal */
20
25
  export const Plugin$inboundSchema: z.ZodType<Plugin, z.ZodTypeDef, unknown> = z
21
26
  .object({
22
27
  OfPIIRedaction: PIIRedactionPlugin$inboundSchema,
28
+ OfResponseHealing: ResponseHealingPlugin$inboundSchema,
23
29
  }).transform((v) => {
24
30
  return remap$(v, {
25
31
  "OfPIIRedaction": "ofPIIRedaction",
32
+ "OfResponseHealing": "ofResponseHealing",
26
33
  });
27
34
  });
28
35
 
@@ -0,0 +1,111 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+
9
+ /**
10
+ * Plugin discriminator. pii_redaction replaces PII with placeholders before the provider sees it and restores the original values in the response. response_healing repairs malformed JSON in non-streaming model output.
11
+ */
12
+ export const PublicPluginId = {
13
+ PiiRedaction: "pii_redaction",
14
+ ResponseHealing: "response_healing",
15
+ } as const;
16
+ /**
17
+ * Plugin discriminator. pii_redaction replaces PII with placeholders before the provider sees it and restores the original values in the response. response_healing repairs malformed JSON in non-streaming model output.
18
+ */
19
+ export type PublicPluginId = ClosedEnum<typeof PublicPluginId>;
20
+
21
+ /**
22
+ * pii_redaction only. Detector language. Defaults to en.
23
+ */
24
+ export const PublicPluginLanguage = {
25
+ En: "en",
26
+ Nl: "nl",
27
+ } as const;
28
+ /**
29
+ * pii_redaction only. Detector language. Defaults to en.
30
+ */
31
+ export type PublicPluginLanguage = ClosedEnum<typeof PublicPluginLanguage>;
32
+
33
+ /**
34
+ * pii_redaction only. Behavior when redaction is unavailable. block (default) fails the request; passthrough sends the original text.
35
+ */
36
+ export const PublicPluginOnFailure = {
37
+ Block: "block",
38
+ Passthrough: "passthrough",
39
+ } as const;
40
+ /**
41
+ * pii_redaction only. Behavior when redaction is unavailable. block (default) fails the request; passthrough sends the original text.
42
+ */
43
+ export type PublicPluginOnFailure = ClosedEnum<typeof PublicPluginOnFailure>;
44
+
45
+ export type PublicPlugin = {
46
+ /**
47
+ * pii_redaction only. Entity types to redact (e.g. EMAIL_ADDRESS, BSN). Omit to redact every type detected for the language.
48
+ */
49
+ entities?: Array<string> | null | undefined;
50
+ /**
51
+ * Plugin discriminator. pii_redaction replaces PII with placeholders before the provider sees it and restores the original values in the response. response_healing repairs malformed JSON in non-streaming model output.
52
+ */
53
+ id: PublicPluginId;
54
+ /**
55
+ * pii_redaction only. Detector language. Defaults to en.
56
+ */
57
+ language?: PublicPluginLanguage | undefined;
58
+ /**
59
+ * pii_redaction only. Behavior when redaction is unavailable. block (default) fails the request; passthrough sends the original text.
60
+ */
61
+ onFailure?: PublicPluginOnFailure | undefined;
62
+ /**
63
+ * pii_redaction only. Detector confidence cutoff in [0,1].
64
+ */
65
+ threshold?: number | undefined;
66
+ };
67
+
68
+ /** @internal */
69
+ export const PublicPluginId$outboundSchema: z.ZodNativeEnum<
70
+ typeof PublicPluginId
71
+ > = z.nativeEnum(PublicPluginId);
72
+
73
+ /** @internal */
74
+ export const PublicPluginLanguage$outboundSchema: z.ZodNativeEnum<
75
+ typeof PublicPluginLanguage
76
+ > = z.nativeEnum(PublicPluginLanguage);
77
+
78
+ /** @internal */
79
+ export const PublicPluginOnFailure$outboundSchema: z.ZodNativeEnum<
80
+ typeof PublicPluginOnFailure
81
+ > = z.nativeEnum(PublicPluginOnFailure);
82
+
83
+ /** @internal */
84
+ export type PublicPlugin$Outbound = {
85
+ entities?: Array<string> | null | undefined;
86
+ id: string;
87
+ language?: string | undefined;
88
+ on_failure?: string | undefined;
89
+ threshold?: number | undefined;
90
+ };
91
+
92
+ /** @internal */
93
+ export const PublicPlugin$outboundSchema: z.ZodType<
94
+ PublicPlugin$Outbound,
95
+ z.ZodTypeDef,
96
+ PublicPlugin
97
+ > = z.object({
98
+ entities: z.nullable(z.array(z.string())).optional(),
99
+ id: PublicPluginId$outboundSchema,
100
+ language: PublicPluginLanguage$outboundSchema.optional(),
101
+ onFailure: PublicPluginOnFailure$outboundSchema.optional(),
102
+ threshold: z.number().optional(),
103
+ }).transform((v) => {
104
+ return remap$(v, {
105
+ onFailure: "on_failure",
106
+ });
107
+ });
108
+
109
+ export function publicPluginToJSON(publicPlugin: PublicPlugin): string {
110
+ return JSON.stringify(PublicPlugin$outboundSchema.parse(publicPlugin));
111
+ }
@@ -18,6 +18,7 @@ export const ReasoningEffort = {
18
18
  Medium: "medium",
19
19
  High: "high",
20
20
  Xhigh: "xhigh",
21
+ Max: "max",
21
22
  } as const;
22
23
  /**
23
24
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
@@ -15,6 +15,7 @@ export const Effort = {
15
15
  Medium: "medium",
16
16
  High: "high",
17
17
  Xhigh: "xhigh",
18
+ Max: "max",
18
19
  } as const;
19
20
  /**
20
21
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
@@ -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_01kyhfse52v0pd8q7v1dy0qw13"),
43
+ _id: z.string().default("reasoning_01kypp1gqbs22j2v51kds4j22n"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -0,0 +1,77 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Plugin discriminator. Must be `response_healing`.
13
+ */
14
+ export const ResponseHealingPluginId = {
15
+ ResponseHealing: "response_healing",
16
+ } as const;
17
+ /**
18
+ * Plugin discriminator. Must be `response_healing`.
19
+ */
20
+ export type ResponseHealingPluginId = ClosedEnum<
21
+ typeof ResponseHealingPluginId
22
+ >;
23
+
24
+ export type ResponseHealingPlugin = {
25
+ /**
26
+ * Plugin discriminator. Must be `response_healing`.
27
+ */
28
+ id: ResponseHealingPluginId;
29
+ };
30
+
31
+ /** @internal */
32
+ export const ResponseHealingPluginId$inboundSchema: z.ZodNativeEnum<
33
+ typeof ResponseHealingPluginId
34
+ > = z.nativeEnum(ResponseHealingPluginId);
35
+ /** @internal */
36
+ export const ResponseHealingPluginId$outboundSchema: z.ZodNativeEnum<
37
+ typeof ResponseHealingPluginId
38
+ > = ResponseHealingPluginId$inboundSchema;
39
+
40
+ /** @internal */
41
+ export const ResponseHealingPlugin$inboundSchema: z.ZodType<
42
+ ResponseHealingPlugin,
43
+ z.ZodTypeDef,
44
+ unknown
45
+ > = z.object({
46
+ id: ResponseHealingPluginId$inboundSchema,
47
+ });
48
+ /** @internal */
49
+ export type ResponseHealingPlugin$Outbound = {
50
+ id: string;
51
+ };
52
+
53
+ /** @internal */
54
+ export const ResponseHealingPlugin$outboundSchema: z.ZodType<
55
+ ResponseHealingPlugin$Outbound,
56
+ z.ZodTypeDef,
57
+ ResponseHealingPlugin
58
+ > = z.object({
59
+ id: ResponseHealingPluginId$outboundSchema,
60
+ });
61
+
62
+ export function responseHealingPluginToJSON(
63
+ responseHealingPlugin: ResponseHealingPlugin,
64
+ ): string {
65
+ return JSON.stringify(
66
+ ResponseHealingPlugin$outboundSchema.parse(responseHealingPlugin),
67
+ );
68
+ }
69
+ export function responseHealingPluginFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<ResponseHealingPlugin, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => ResponseHealingPlugin$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'ResponseHealingPlugin' from JSON`,
76
+ );
77
+ }