@orq-ai/node 4.16.4 → 4.16.6

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 (59) 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/models/components/reasoningpart.js +1 -1
  5. package/models/operations/createtool.js +4 -4
  6. package/models/operations/getalltools.js +4 -4
  7. package/models/operations/getv2humanevalsets.js +2 -2
  8. package/models/operations/getv2humanevalsetsid.js +2 -2
  9. package/models/operations/patchv2humanevalsetsid.js +2 -2
  10. package/models/operations/postv2feedbackevaluation.js +4 -4
  11. package/models/operations/postv2humanevalsets.js +2 -2
  12. package/models/operations/retrievetool.js +4 -4
  13. package/models/operations/runagent.js +1 -1
  14. package/models/operations/streamrunagent.js +1 -1
  15. package/models/operations/updatetool.js +4 -4
  16. package/package.json +1 -1
  17. package/packages/orq-rc/src/funcs/smartRoutersUpdate.ts +1 -1
  18. package/packages/orq-rc/src/lib/config.ts +2 -2
  19. package/packages/orq-rc/src/models/components/autorouterconfig.ts +18 -0
  20. package/packages/orq-rc/src/models/components/createsmartrouterrequest.ts +13 -0
  21. package/packages/orq-rc/src/models/components/index.ts +2 -0
  22. package/packages/orq-rc/src/models/components/modelfusion.ts +1 -1
  23. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  24. package/packages/orq-rc/src/models/components/sessionaffinityconfig.ts +70 -0
  25. package/packages/orq-rc/src/models/components/smartrouter.ts +7 -0
  26. package/packages/orq-rc/src/models/components/smartroutersessionaffinity.ts +70 -0
  27. package/packages/orq-rc/src/models/components/updatesmartrouterrequest.ts +13 -0
  28. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  29. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  30. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  31. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  32. package/packages/orq-rc/src/models/operations/modelcreate.ts +4 -0
  33. package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +4 -0
  34. package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +4 -0
  35. package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +4 -0
  36. package/packages/orq-rc/src/models/operations/modelupdate.ts +4 -0
  37. package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +4 -0
  38. package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +4 -0
  39. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  40. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  41. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  42. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  43. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  44. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  45. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  46. package/packages/orq-rc/src/sdk/smartrouters.ts +1 -1
  47. package/src/lib/config.ts +2 -2
  48. package/src/models/components/reasoningpart.ts +1 -1
  49. package/src/models/operations/createtool.ts +4 -4
  50. package/src/models/operations/getalltools.ts +4 -4
  51. package/src/models/operations/getv2humanevalsets.ts +2 -2
  52. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  53. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  54. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  55. package/src/models/operations/postv2humanevalsets.ts +2 -2
  56. package/src/models/operations/retrievetool.ts +4 -4
  57. package/src/models/operations/runagent.ts +1 -1
  58. package/src/models/operations/streamrunagent.ts +1 -1
  59. package/src/models/operations/updatetool.ts +4 -4
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@orq-ai/node",
5
- "version": "4.16.4",
5
+ "version": "4.16.6",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/config.d.ts CHANGED
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "2.0";
34
- readonly sdkVersion: "4.16.4";
34
+ readonly sdkVersion: "4.16.6";
35
35
  readonly genVersion: "2.948.4";
36
- readonly userAgent: "speakeasy-sdk/typescript 4.16.4 2.948.4 2.0 @orq-ai/node";
36
+ readonly userAgent: "speakeasy-sdk/typescript 4.16.6 2.948.4 2.0 @orq-ai/node";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
package/lib/config.js CHANGED
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
28
28
  exports.SDK_METADATA = {
29
29
  language: "typescript",
30
30
  openapiDocVersion: "2.0",
31
- sdkVersion: "4.16.4",
31
+ sdkVersion: "4.16.6",
32
32
  genVersion: "2.948.4",
33
- userAgent: "speakeasy-sdk/typescript 4.16.4 2.948.4 2.0 @orq-ai/node",
33
+ userAgent: "speakeasy-sdk/typescript 4.16.6 2.948.4 2.0 @orq-ai/node",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -43,7 +43,7 @@ const primitives_js_1 = require("../../lib/primitives.js");
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
44
  /** @internal */
45
45
  exports.ReasoningPart$inboundSchema = z.object({
46
- _id: z.string().default("reasoning_01m4tkn0f8y5t0rhcv57fe95x6"),
46
+ _id: z.string().default("reasoning_01m4v6s1w9kjtjacknxvxhqv2v"),
47
47
  metadata: z.record(z.any()).optional(),
48
48
  kind: z.literal("reasoning"),
49
49
  reasoning: z.string(),
@@ -472,7 +472,7 @@ function responseBodyCodeToolFromJSON(jsonString) {
472
472
  }
473
473
  /** @internal */
474
474
  exports.ResponseBodyCodeExecutionTool$inboundSchema = z.object({
475
- _id: z.string().default("tool_01M4TKN0JGMCSY5T58G6T2KQAR"),
475
+ _id: z.string().default("tool_01M4V6S20YFDZA1TY15HDVHJBQ"),
476
476
  path: z.string(),
477
477
  key: z.string(),
478
478
  display_name: z.string().optional(),
@@ -562,7 +562,7 @@ function responseBodyHttpFromJSON(jsonString) {
562
562
  }
563
563
  /** @internal */
564
564
  exports.ResponseBodyHTTPTool$inboundSchema = z.object({
565
- _id: z.string().default("tool_01M4TKN0JF79HVCPC1BZVA7JTH"),
565
+ _id: z.string().default("tool_01M4V6S20XYWAMCMTHC5HJ1TS3"),
566
566
  path: z.string(),
567
567
  key: z.string(),
568
568
  display_name: z.string().optional(),
@@ -612,7 +612,7 @@ function responseBodyJsonSchemaFromJSON(jsonString) {
612
612
  }
613
613
  /** @internal */
614
614
  exports.ResponseBodyJSONSchemaTool$inboundSchema = z.object({
615
- _id: z.string().default("tool_01M4TKN0JFSZB1QHGYBT19HJKD"),
615
+ _id: z.string().default("tool_01M4V6S20W52NCEBT43Y593WQN"),
616
616
  path: z.string(),
617
617
  key: z.string(),
618
618
  display_name: z.string().optional(),
@@ -665,7 +665,7 @@ function responseBodyFunctionFromJSON(jsonString) {
665
665
  }
666
666
  /** @internal */
667
667
  exports.ResponseBodyFunctionTool$inboundSchema = z.object({
668
- _id: z.string().default("tool_01M4TKN0JEV9C4DSRFTPDYV6ZG"),
668
+ _id: z.string().default("tool_01M4V6S20VV4PB9QTC6JF8HS05"),
669
669
  path: z.string(),
670
670
  key: z.string(),
671
671
  display_name: z.string().optional(),
@@ -172,7 +172,7 @@ function dataCodeToolFromJSON(jsonString) {
172
172
  }
173
173
  /** @internal */
174
174
  exports.DataCodeExecutionTool$inboundSchema = z.object({
175
- _id: z.string().default("tool_01M4TKN0JBNEMHEW049RH5AAFV"),
175
+ _id: z.string().default("tool_01M4V6S20QMZ385TH17M5J0CP5"),
176
176
  path: z.string(),
177
177
  key: z.string(),
178
178
  display_name: z.string().optional(),
@@ -261,7 +261,7 @@ function dataHttpFromJSON(jsonString) {
261
261
  }
262
262
  /** @internal */
263
263
  exports.DataHTTPTool$inboundSchema = z.object({
264
- _id: z.string().default("tool_01M4TKN0JA9HDHRMXETMYNCX6E"),
264
+ _id: z.string().default("tool_01M4V6S20PFYABM4C7F0YQSZ66"),
265
265
  path: z.string(),
266
266
  key: z.string(),
267
267
  display_name: z.string().optional(),
@@ -311,7 +311,7 @@ function dataJsonSchemaFromJSON(jsonString) {
311
311
  }
312
312
  /** @internal */
313
313
  exports.DataJSONSchemaTool$inboundSchema = z.object({
314
- _id: z.string().default("tool_01M4TKN0JADK03QW3FVNNAN8T1"),
314
+ _id: z.string().default("tool_01M4V6S20NPXWKK82EECX6HYR5"),
315
315
  path: z.string(),
316
316
  key: z.string(),
317
317
  display_name: z.string().optional(),
@@ -366,7 +366,7 @@ function dataFunctionFromJSON(jsonString) {
366
366
  }
367
367
  /** @internal */
368
368
  exports.DataFunctionTool$inboundSchema = z.object({
369
- _id: z.string().default("tool_01M4TKN0J9G0DTBFCQ64F57J7D"),
369
+ _id: z.string().default("tool_01M4V6S20MR6PD7CV9MGV2KQFC"),
370
370
  path: z.string(),
371
371
  key: z.string(),
372
372
  display_name: z.string().optional(),
@@ -67,7 +67,7 @@ exports.GetV2HumanEvalSetsResponseBody2$inboundSchema = z.object({
67
67
  updated_by_id: z.string().optional(),
68
68
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
69
69
  .optional(),
70
- updated: z.string().datetime({ offset: true }).default("2026-10-13T12:26:22.912Z").transform(v => new Date(v)),
70
+ updated: z.string().datetime({ offset: true }).default("2026-10-13T18:00:36.063Z").transform(v => new Date(v)),
71
71
  filter_type: z.literal("name"),
72
72
  filter_value: z.string(),
73
73
  }).transform((v) => {
@@ -98,7 +98,7 @@ exports.GetV2HumanEvalSetsResponseBody1$inboundSchema = z.object({
98
98
  updated_by_id: z.string().optional(),
99
99
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
100
100
  .optional(),
101
- updated: z.string().datetime({ offset: true }).default("2026-10-13T12:26:22.912Z").transform(v => new Date(v)),
101
+ updated: z.string().datetime({ offset: true }).default("2026-10-13T18:00:36.063Z").transform(v => new Date(v)),
102
102
  filter_type: z.literal("span_type"),
103
103
  filter_values: z.array(z.string()),
104
104
  }).transform((v) => {
@@ -63,7 +63,7 @@ exports.GetV2HumanEvalSetsIdResponseBody2$inboundSchema = z.object({
63
63
  updated_by_id: z.string().optional(),
64
64
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
65
65
  .optional(),
66
- updated: z.string().datetime({ offset: true }).default("2026-10-13T12:26:22.912Z").transform(v => new Date(v)),
66
+ updated: z.string().datetime({ offset: true }).default("2026-10-13T18:00:36.063Z").transform(v => new Date(v)),
67
67
  filter_type: z.literal("name"),
68
68
  filter_value: z.string(),
69
69
  }).transform((v) => {
@@ -94,7 +94,7 @@ exports.GetV2HumanEvalSetsIdResponseBody1$inboundSchema = z.object({
94
94
  updated_by_id: z.string().optional(),
95
95
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
96
96
  .optional(),
97
- updated: z.string().datetime({ offset: true }).default("2026-10-13T12:26:22.912Z").transform(v => new Date(v)),
97
+ updated: z.string().datetime({ offset: true }).default("2026-10-13T18:00:36.063Z").transform(v => new Date(v)),
98
98
  filter_type: z.literal("span_type"),
99
99
  filter_values: z.array(z.string()),
100
100
  }).transform((v) => {
@@ -122,7 +122,7 @@ exports.PatchV2HumanEvalSetsIdResponseBody2$inboundSchema = z.object({
122
122
  updated_by_id: z.string().optional(),
123
123
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
124
124
  .optional(),
125
- updated: z.string().datetime({ offset: true }).default("2026-10-13T12:26:22.912Z").transform(v => new Date(v)),
125
+ updated: z.string().datetime({ offset: true }).default("2026-10-13T18:00:36.063Z").transform(v => new Date(v)),
126
126
  filter_type: z.literal("name"),
127
127
  filter_value: z.string(),
128
128
  }).transform((v) => {
@@ -153,7 +153,7 @@ exports.PatchV2HumanEvalSetsIdResponseBody1$inboundSchema = z.object({
153
153
  updated_by_id: z.string().optional(),
154
154
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
155
155
  .optional(),
156
- updated: z.string().datetime({ offset: true }).default("2026-10-13T12:26:22.912Z").transform(v => new Date(v)),
156
+ updated: z.string().datetime({ offset: true }).default("2026-10-13T18:00:36.063Z").transform(v => new Date(v)),
157
157
  filter_type: z.literal("span_type"),
158
158
  filter_values: z.array(z.string()),
159
159
  }).transform((v) => {
@@ -96,7 +96,7 @@ exports.RequestBody4$outboundSchema = z.object({
96
96
  source: exports.PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
97
97
  .default("orq"),
98
98
  explanation: z.string().optional(),
99
- reviewedAt: z.date().default(() => new Date("2026-10-13T12:26:29.371Z"))
99
+ reviewedAt: z.date().default(() => new Date("2026-10-13T18:00:44.898Z"))
100
100
  .transform(v => v.toISOString()),
101
101
  type: z.literal("string_array"),
102
102
  values: z.array(z.string()),
@@ -126,7 +126,7 @@ exports.Three$outboundSchema = z.object({
126
126
  source: exports.PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
127
127
  .default("orq"),
128
128
  explanation: z.string().optional(),
129
- reviewedAt: z.date().default(() => new Date("2026-10-13T12:26:29.371Z"))
129
+ reviewedAt: z.date().default(() => new Date("2026-10-13T18:00:44.897Z"))
130
130
  .transform(v => v.toISOString()),
131
131
  type: z.literal("boolean"),
132
132
  value: z.boolean(),
@@ -154,7 +154,7 @@ exports.RequestBody2$outboundSchema = z.object({
154
154
  humanReviewId: z.string().optional(),
155
155
  source: exports.PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default("orq"),
156
156
  explanation: z.string().optional(),
157
- reviewedAt: z.date().default(() => new Date("2026-10-13T12:26:29.371Z"))
157
+ reviewedAt: z.date().default(() => new Date("2026-10-13T18:00:44.897Z"))
158
158
  .transform(v => v.toISOString()),
159
159
  type: z.literal("number"),
160
160
  value: z.number(),
@@ -181,7 +181,7 @@ exports.RequestBody1$outboundSchema = z.object({
181
181
  humanReviewId: z.string().optional(),
182
182
  source: exports.RequestBodySource$outboundSchema.default("orq"),
183
183
  explanation: z.string().optional(),
184
- reviewedAt: z.date().default(() => new Date("2026-10-13T12:26:29.370Z"))
184
+ reviewedAt: z.date().default(() => new Date("2026-10-13T18:00:44.896Z"))
185
185
  .transform(v => v.toISOString()),
186
186
  type: z.literal("string"),
187
187
  value: z.string(),
@@ -106,7 +106,7 @@ exports.PostV2HumanEvalSetsResponseBody2$inboundSchema = z.object({
106
106
  updated_by_id: z.string().optional(),
107
107
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
108
108
  .optional(),
109
- updated: z.string().datetime({ offset: true }).default("2026-10-13T12:26:22.912Z").transform(v => new Date(v)),
109
+ updated: z.string().datetime({ offset: true }).default("2026-10-13T18:00:36.063Z").transform(v => new Date(v)),
110
110
  filter_type: z.literal("name"),
111
111
  filter_value: z.string(),
112
112
  }).transform((v) => {
@@ -137,7 +137,7 @@ exports.PostV2HumanEvalSetsResponseBody1$inboundSchema = z.object({
137
137
  updated_by_id: z.string().optional(),
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
- updated: z.string().datetime({ offset: true }).default("2026-10-13T12:26:22.912Z").transform(v => new Date(v)),
140
+ updated: z.string().datetime({ offset: true }).default("2026-10-13T18:00:36.063Z").transform(v => new Date(v)),
141
141
  filter_type: z.literal("span_type"),
142
142
  filter_values: z.array(z.string()),
143
143
  }).transform((v) => {
@@ -164,7 +164,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
164
164
  }
165
165
  /** @internal */
166
166
  exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
167
- _id: z.string().default("tool_01M4TKN0JV762KD21GYDSH7NRQ"),
167
+ _id: z.string().default("tool_01M4V6S21F8ZP63GJC4JN2A2X9"),
168
168
  path: z.string(),
169
169
  key: z.string(),
170
170
  display_name: z.string().optional(),
@@ -253,7 +253,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
253
253
  }
254
254
  /** @internal */
255
255
  exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
256
- _id: z.string().default("tool_01M4TKN0JV4NKJFMKXDZTF1VF4"),
256
+ _id: z.string().default("tool_01M4V6S21E8Q5NP30J2STKTF90"),
257
257
  path: z.string(),
258
258
  key: z.string(),
259
259
  display_name: z.string().optional(),
@@ -303,7 +303,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
303
303
  }
304
304
  /** @internal */
305
305
  exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
306
- _id: z.string().default("tool_01M4TKN0JT1JPVKDACAA2B3479"),
306
+ _id: z.string().default("tool_01M4V6S21DX3Z2M3DRAR8V21Y7"),
307
307
  path: z.string(),
308
308
  key: z.string(),
309
309
  display_name: z.string().optional(),
@@ -357,7 +357,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
357
357
  }
358
358
  /** @internal */
359
359
  exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
360
- _id: z.string().default("tool_01M4TKN0JTJQVCYE585QXJGSWE"),
360
+ _id: z.string().default("tool_01M4V6S21BRP4XH7PMCN1J6021"),
361
361
  path: z.string(),
362
362
  key: z.string(),
363
363
  display_name: z.string().optional(),
@@ -1098,7 +1098,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
1098
1098
  }
1099
1099
  /** @internal */
1100
1100
  exports.Tools$outboundSchema = z.object({
1101
- id: z.string().default("01M4TKN0GK2C97B4250NS74ME3"),
1101
+ id: z.string().default("01M4V6S1Y50AB294PEF9F1HTJH"),
1102
1102
  name: z.string(),
1103
1103
  description: z.string().optional(),
1104
1104
  schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
@@ -1064,7 +1064,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
1064
1064
  }
1065
1065
  /** @internal */
1066
1066
  exports.AgentToolInputRunTools$outboundSchema = z.object({
1067
- id: z.string().default("01M4TKN0H4V59DW97A0KPEJ7X2"),
1067
+ id: z.string().default("01M4V6S1YXC35HEXEN6SRCAB19"),
1068
1068
  name: z.string(),
1069
1069
  description: z.string().optional(),
1070
1070
  schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
@@ -536,7 +536,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
536
536
  }
537
537
  /** @internal */
538
538
  exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
539
- _id: z.string().default("tool_01M4TKN0JMG55P6ZHQJN452DVZ"),
539
+ _id: z.string().default("tool_01M4V6S213PRE8964ABA55QN3X"),
540
540
  path: z.string(),
541
541
  key: z.string(),
542
542
  display_name: z.string().optional(),
@@ -625,7 +625,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
625
625
  }
626
626
  /** @internal */
627
627
  exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
628
- _id: z.string().default("tool_01M4TKN0JK8VFN2W2A9V05M3WK"),
628
+ _id: z.string().default("tool_01M4V6S212H5ZEFEKNAM0CTVAS"),
629
629
  path: z.string(),
630
630
  key: z.string(),
631
631
  display_name: z.string().optional(),
@@ -675,7 +675,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
675
675
  }
676
676
  /** @internal */
677
677
  exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
678
- _id: z.string().default("tool_01M4TKN0JJ5G3KDSPMAYZ036AS"),
678
+ _id: z.string().default("tool_01M4V6S212T14PHM02CS7SNM39"),
679
679
  path: z.string(),
680
680
  key: z.string(),
681
681
  display_name: z.string().optional(),
@@ -729,7 +729,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
729
729
  }
730
730
  /** @internal */
731
731
  exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
732
- _id: z.string().default("tool_01M4TKN0JJ7YNJK5G9A750V1N2"),
732
+ _id: z.string().default("tool_01M4V6S211VGYM39350RKSC918"),
733
733
  path: z.string(),
734
734
  key: z.string(),
735
735
  display_name: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.16.4",
3
+ "version": "4.16.6",
4
4
  "author": "Orq",
5
5
  "exports": {
6
6
  ".": {
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Update a Smart Router
31
31
  *
32
32
  * @remarks
33
- * Updates the model pool, routing profile, or both. Omitted fields retain their current values. The router key and model reference cannot be changed.
33
+ * Updates the model pool, routing profile, session affinity, or any combination. Omitted fields retain their current values. The router key and model reference cannot be changed.
34
34
  */
35
35
  export function smartRoutersUpdate(
36
36
  client: OrqCore,
@@ -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.17.0-rc.17",
61
+ sdkVersion: "4.17.0-rc.20",
62
62
  genVersion: "2.948.4",
63
- userAgent: "speakeasy-sdk/typescript 4.17.0-rc.17 2.948.4 2.0 @orq-ai/node",
63
+ userAgent: "speakeasy-sdk/typescript 4.17.0-rc.20 2.948.4 2.0 @orq-ai/node",
64
64
  } as const;
@@ -13,12 +13,20 @@ import {
13
13
  AutoRouterV2Config$Outbound,
14
14
  AutoRouterV2Config$outboundSchema,
15
15
  } from "./autorouterv2config.js";
16
+ import {
17
+ SessionAffinityConfig,
18
+ SessionAffinityConfig$inboundSchema,
19
+ SessionAffinityConfig$Outbound,
20
+ SessionAffinityConfig$outboundSchema,
21
+ } from "./sessionaffinityconfig.js";
16
22
 
17
23
  export type AutoRouterConfig = {
24
+ benchmarkModel?: string | undefined;
18
25
  economicalModel?: string | undefined;
19
26
  id?: string | undefined;
20
27
  models?: Array<string> | null | undefined;
21
28
  profile?: string | undefined;
29
+ sessionAffinity?: SessionAffinityConfig | undefined;
22
30
  strongModel?: string | undefined;
23
31
  v2?: AutoRouterV2Config | undefined;
24
32
  version?: string | undefined;
@@ -30,25 +38,31 @@ export const AutoRouterConfig$inboundSchema: z.ZodType<
30
38
  z.ZodTypeDef,
31
39
  unknown
32
40
  > = z.object({
41
+ benchmark_model: z.string().optional(),
33
42
  economical_model: z.string().optional(),
34
43
  id: z.string().optional(),
35
44
  models: z.nullable(z.array(z.string())).optional(),
36
45
  profile: z.string().optional(),
46
+ session_affinity: SessionAffinityConfig$inboundSchema.optional(),
37
47
  strong_model: z.string().optional(),
38
48
  v2: AutoRouterV2Config$inboundSchema.optional(),
39
49
  version: z.string().optional(),
40
50
  }).transform((v) => {
41
51
  return remap$(v, {
52
+ "benchmark_model": "benchmarkModel",
42
53
  "economical_model": "economicalModel",
54
+ "session_affinity": "sessionAffinity",
43
55
  "strong_model": "strongModel",
44
56
  });
45
57
  });
46
58
  /** @internal */
47
59
  export type AutoRouterConfig$Outbound = {
60
+ benchmark_model?: string | undefined;
48
61
  economical_model?: string | undefined;
49
62
  id?: string | undefined;
50
63
  models?: Array<string> | null | undefined;
51
64
  profile?: string | undefined;
65
+ session_affinity?: SessionAffinityConfig$Outbound | undefined;
52
66
  strong_model?: string | undefined;
53
67
  v2?: AutoRouterV2Config$Outbound | undefined;
54
68
  version?: string | undefined;
@@ -60,16 +74,20 @@ export const AutoRouterConfig$outboundSchema: z.ZodType<
60
74
  z.ZodTypeDef,
61
75
  AutoRouterConfig
62
76
  > = z.object({
77
+ benchmarkModel: z.string().optional(),
63
78
  economicalModel: z.string().optional(),
64
79
  id: z.string().optional(),
65
80
  models: z.nullable(z.array(z.string())).optional(),
66
81
  profile: z.string().optional(),
82
+ sessionAffinity: SessionAffinityConfig$outboundSchema.optional(),
67
83
  strongModel: z.string().optional(),
68
84
  v2: AutoRouterV2Config$outboundSchema.optional(),
69
85
  version: z.string().optional(),
70
86
  }).transform((v) => {
71
87
  return remap$(v, {
88
+ benchmarkModel: "benchmark_model",
72
89
  economicalModel: "economical_model",
90
+ sessionAffinity: "session_affinity",
73
91
  strongModel: "strong_model",
74
92
  });
75
93
  });
@@ -3,10 +3,16 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
6
7
  import {
7
8
  SmartRouterProfile,
8
9
  SmartRouterProfile$outboundSchema,
9
10
  } from "./smartrouterprofile.js";
11
+ import {
12
+ SmartRouterSessionAffinity,
13
+ SmartRouterSessionAffinity$Outbound,
14
+ SmartRouterSessionAffinity$outboundSchema,
15
+ } from "./smartroutersessionaffinity.js";
10
16
 
11
17
  export type CreateSmartRouterRequest = {
12
18
  /**
@@ -18,6 +24,7 @@ export type CreateSmartRouterRequest = {
18
24
  */
19
25
  models: Array<string>;
20
26
  profile: SmartRouterProfile;
27
+ sessionAffinity?: SmartRouterSessionAffinity | undefined;
21
28
  };
22
29
 
23
30
  /** @internal */
@@ -25,6 +32,7 @@ export type CreateSmartRouterRequest$Outbound = {
25
32
  key: string;
26
33
  models: Array<string>;
27
34
  profile: string;
35
+ session_affinity?: SmartRouterSessionAffinity$Outbound | undefined;
28
36
  };
29
37
 
30
38
  /** @internal */
@@ -36,6 +44,11 @@ export const CreateSmartRouterRequest$outboundSchema: z.ZodType<
36
44
  key: z.string(),
37
45
  models: z.array(z.string()),
38
46
  profile: SmartRouterProfile$outboundSchema,
47
+ sessionAffinity: SmartRouterSessionAffinity$outboundSchema.optional(),
48
+ }).transform((v) => {
49
+ return remap$(v, {
50
+ sessionAffinity: "session_affinity",
51
+ });
39
52
  });
40
53
 
41
54
  export function createSmartRouterRequestToJSON(
@@ -591,6 +591,7 @@ export * from "./searchwikiresponse.js";
591
591
  export * from "./security.js";
592
592
  export * from "./securityconfig.js";
593
593
  export * from "./servertoolusedetails.js";
594
+ export * from "./sessionaffinityconfig.js";
594
595
  export * from "./sessioninterval.js";
595
596
  export * from "./setmodelfusionenabledrequest.js";
596
597
  export * from "./setmodelfusionenabledresponse.js";
@@ -603,6 +604,7 @@ export * from "./singleprojectscope.js";
603
604
  export * from "./skill.js";
604
605
  export * from "./smartrouter.js";
605
606
  export * from "./smartrouterprofile.js";
607
+ export * from "./smartroutersessionaffinity.js";
606
608
  export * from "./spandetail.js";
607
609
  export * from "./spansummary.js";
608
610
  export * from "./statfilesystemfileresponse.js";
@@ -44,7 +44,7 @@ export type ModelFusion = {
44
44
  */
45
45
  orchestratorModel?: string | undefined;
46
46
  /**
47
- * Whether the Fusion-managed ORQ web tools are available to panel and judge phases.
47
+ * Whether panel and judge phases get the provider-native web search tool. Models without native web search run without it.
48
48
  */
49
49
  webTools: boolean;
50
50
  /**
@@ -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_01m4tganvhk0nn3p44far25wg3"),
43
+ _id: z.string().default("reasoning_01m4tyms540333ksja09gb5nkn"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -0,0 +1,70 @@
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 { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type SessionAffinityConfig = {
12
+ /**
13
+ * Whether later turns of a thread stay on the model chosen for its first turn. Only requests that carry a thread id take part. Off by default.
14
+ */
15
+ enabled: boolean;
16
+ /**
17
+ * Sliding idle window in seconds. A thread that stays quiet longer than this is routed afresh on its next turn. Between 60 and 3600. Defaults to 600 when omitted.
18
+ */
19
+ ttlSeconds?: number | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const SessionAffinityConfig$inboundSchema: z.ZodType<
24
+ SessionAffinityConfig,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ enabled: z.boolean(),
29
+ ttl_seconds: z.number().int().optional(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "ttl_seconds": "ttlSeconds",
33
+ });
34
+ });
35
+ /** @internal */
36
+ export type SessionAffinityConfig$Outbound = {
37
+ enabled: boolean;
38
+ ttl_seconds?: number | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const SessionAffinityConfig$outboundSchema: z.ZodType<
43
+ SessionAffinityConfig$Outbound,
44
+ z.ZodTypeDef,
45
+ SessionAffinityConfig
46
+ > = z.object({
47
+ enabled: z.boolean(),
48
+ ttlSeconds: z.number().int().optional(),
49
+ }).transform((v) => {
50
+ return remap$(v, {
51
+ ttlSeconds: "ttl_seconds",
52
+ });
53
+ });
54
+
55
+ export function sessionAffinityConfigToJSON(
56
+ sessionAffinityConfig: SessionAffinityConfig,
57
+ ): string {
58
+ return JSON.stringify(
59
+ SessionAffinityConfig$outboundSchema.parse(sessionAffinityConfig),
60
+ );
61
+ }
62
+ export function sessionAffinityConfigFromJSON(
63
+ jsonString: string,
64
+ ): SafeParseResult<SessionAffinityConfig, SDKValidationError> {
65
+ return safeParse(
66
+ jsonString,
67
+ (x) => SessionAffinityConfig$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'SessionAffinityConfig' from JSON`,
69
+ );
70
+ }
@@ -11,6 +11,10 @@ import {
11
11
  SmartRouterProfile,
12
12
  SmartRouterProfile$inboundSchema,
13
13
  } from "./smartrouterprofile.js";
14
+ import {
15
+ SmartRouterSessionAffinity,
16
+ SmartRouterSessionAffinity$inboundSchema,
17
+ } from "./smartroutersessionaffinity.js";
14
18
 
15
19
  export type SmartRouter = {
16
20
  /**
@@ -42,6 +46,7 @@ export type SmartRouter = {
42
46
  * Date and time when the Smart Router was last updated.
43
47
  */
44
48
  updatedAt: Date;
49
+ sessionAffinity?: SmartRouterSessionAffinity | undefined;
45
50
  };
46
51
 
47
52
  /** @internal */
@@ -58,12 +63,14 @@ export const SmartRouter$inboundSchema: z.ZodType<
58
63
  enabled: z.boolean(),
59
64
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
60
65
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
66
+ session_affinity: SmartRouterSessionAffinity$inboundSchema.optional(),
61
67
  }).transform((v) => {
62
68
  return remap$(v, {
63
69
  "smart_router_id": "smartRouterId",
64
70
  "model_ref": "modelRef",
65
71
  "created_at": "createdAt",
66
72
  "updated_at": "updatedAt",
73
+ "session_affinity": "sessionAffinity",
67
74
  });
68
75
  });
69
76