@orq-ai/node 4.5.21 → 4.5.23

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 (146) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/index.d.ts +1 -0
  5. package/models/components/index.d.ts.map +1 -1
  6. package/models/components/index.js +1 -0
  7. package/models/components/index.js.map +1 -1
  8. package/models/components/reasoningpart.js +1 -1
  9. package/models/components/thinkingconfigadaptiveschema.d.ts +23 -0
  10. package/models/components/thinkingconfigadaptiveschema.d.ts.map +1 -0
  11. package/models/components/thinkingconfigadaptiveschema.js +58 -0
  12. package/models/components/thinkingconfigadaptiveschema.js.map +1 -0
  13. package/models/operations/createagentrequest.d.ts +12 -12
  14. package/models/operations/createagentrequest.d.ts.map +1 -1
  15. package/models/operations/createagentrequest.js +8 -0
  16. package/models/operations/createagentrequest.js.map +1 -1
  17. package/models/operations/createchatcompletion.d.ts +4 -4
  18. package/models/operations/createchatcompletion.d.ts.map +1 -1
  19. package/models/operations/createchatcompletion.js +2 -0
  20. package/models/operations/createchatcompletion.js.map +1 -1
  21. package/models/operations/createcompletion.d.ts +14 -0
  22. package/models/operations/createcompletion.d.ts.map +1 -1
  23. package/models/operations/createcompletion.js +18 -2
  24. package/models/operations/createcompletion.js.map +1 -1
  25. package/models/operations/createcontact.js +1 -1
  26. package/models/operations/createdataset.js +1 -1
  27. package/models/operations/createdatasetitem.js +4 -4
  28. package/models/operations/createdatasource.js +1 -1
  29. package/models/operations/createeval.js +16 -16
  30. package/models/operations/createidentity.js +1 -1
  31. package/models/operations/createprompt.d.ts +6 -6
  32. package/models/operations/createprompt.d.ts.map +1 -1
  33. package/models/operations/createprompt.js +4 -0
  34. package/models/operations/createprompt.js.map +1 -1
  35. package/models/operations/createresponse.d.ts +15 -0
  36. package/models/operations/createresponse.d.ts.map +1 -1
  37. package/models/operations/createresponse.js +19 -3
  38. package/models/operations/createresponse.js.map +1 -1
  39. package/models/operations/createtool.js +6 -6
  40. package/models/operations/fileget.js +1 -1
  41. package/models/operations/filelist.js +1 -1
  42. package/models/operations/fileupload.js +1 -1
  43. package/models/operations/getallprompts.d.ts +2 -2
  44. package/models/operations/getallprompts.d.ts.map +1 -1
  45. package/models/operations/getallprompts.js +2 -0
  46. package/models/operations/getallprompts.js.map +1 -1
  47. package/models/operations/getalltools.js +6 -6
  48. package/models/operations/getevals.js +16 -16
  49. package/models/operations/getoneprompt.d.ts +2 -2
  50. package/models/operations/getoneprompt.d.ts.map +1 -1
  51. package/models/operations/getoneprompt.js +2 -0
  52. package/models/operations/getoneprompt.js.map +1 -1
  53. package/models/operations/getpromptversion.d.ts +2 -2
  54. package/models/operations/getpromptversion.d.ts.map +1 -1
  55. package/models/operations/getpromptversion.js +2 -0
  56. package/models/operations/getpromptversion.js.map +1 -1
  57. package/models/operations/listagents.d.ts +4 -4
  58. package/models/operations/listagents.d.ts.map +1 -1
  59. package/models/operations/listagents.js +4 -0
  60. package/models/operations/listagents.js.map +1 -1
  61. package/models/operations/listdatasetdatapoints.js +4 -4
  62. package/models/operations/listdatasets.js +1 -1
  63. package/models/operations/listdatasources.js +1 -1
  64. package/models/operations/listidentities.js +1 -1
  65. package/models/operations/listpromptversions.d.ts +2 -2
  66. package/models/operations/listpromptversions.d.ts.map +1 -1
  67. package/models/operations/listpromptversions.js +2 -0
  68. package/models/operations/listpromptversions.js.map +1 -1
  69. package/models/operations/retrieveagentrequest.d.ts +4 -4
  70. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  71. package/models/operations/retrieveagentrequest.js +4 -0
  72. package/models/operations/retrieveagentrequest.js.map +1 -1
  73. package/models/operations/retrievedatapoint.js +4 -4
  74. package/models/operations/retrievedataset.js +1 -1
  75. package/models/operations/retrievedatasource.js +1 -1
  76. package/models/operations/retrieveidentity.js +1 -1
  77. package/models/operations/retrievetool.js +6 -6
  78. package/models/operations/runagent.d.ts +8 -8
  79. package/models/operations/runagent.d.ts.map +1 -1
  80. package/models/operations/runagent.js +5 -1
  81. package/models/operations/runagent.js.map +1 -1
  82. package/models/operations/streamrunagent.d.ts +8 -8
  83. package/models/operations/streamrunagent.d.ts.map +1 -1
  84. package/models/operations/streamrunagent.js +5 -1
  85. package/models/operations/streamrunagent.js.map +1 -1
  86. package/models/operations/updateagent.d.ts +12 -12
  87. package/models/operations/updateagent.d.ts.map +1 -1
  88. package/models/operations/updateagent.js +8 -0
  89. package/models/operations/updateagent.js.map +1 -1
  90. package/models/operations/updatedatapoint.js +4 -4
  91. package/models/operations/updatedataset.js +1 -1
  92. package/models/operations/updatedatasource.js +1 -1
  93. package/models/operations/updateeval.js +16 -16
  94. package/models/operations/updateidentity.js +1 -1
  95. package/models/operations/updateprompt.d.ts +6 -6
  96. package/models/operations/updateprompt.d.ts.map +1 -1
  97. package/models/operations/updateprompt.js +4 -0
  98. package/models/operations/updateprompt.js.map +1 -1
  99. package/models/operations/updatetool.js +7 -7
  100. package/package.json +1 -1
  101. package/src/lib/config.ts +3 -3
  102. package/src/models/components/index.ts +1 -0
  103. package/src/models/components/reasoningpart.ts +1 -1
  104. package/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  105. package/src/models/operations/createagentrequest.ts +26 -6
  106. package/src/models/operations/createchatcompletion.ts +8 -2
  107. package/src/models/operations/createcompletion.ts +55 -0
  108. package/src/models/operations/createcontact.ts +1 -1
  109. package/src/models/operations/createdataset.ts +1 -1
  110. package/src/models/operations/createdatasetitem.ts +4 -4
  111. package/src/models/operations/createdatasource.ts +1 -1
  112. package/src/models/operations/createeval.ts +16 -16
  113. package/src/models/operations/createidentity.ts +1 -1
  114. package/src/models/operations/createprompt.ts +13 -3
  115. package/src/models/operations/createresponse.ts +56 -0
  116. package/src/models/operations/createtool.ts +6 -6
  117. package/src/models/operations/fileget.ts +1 -1
  118. package/src/models/operations/filelist.ts +1 -1
  119. package/src/models/operations/fileupload.ts +1 -1
  120. package/src/models/operations/getallprompts.ts +5 -1
  121. package/src/models/operations/getalltools.ts +6 -6
  122. package/src/models/operations/getevals.ts +16 -16
  123. package/src/models/operations/getoneprompt.ts +5 -1
  124. package/src/models/operations/getpromptversion.ts +5 -1
  125. package/src/models/operations/listagents.ts +10 -2
  126. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  127. package/src/models/operations/listdatasets.ts +1 -1
  128. package/src/models/operations/listdatasources.ts +1 -1
  129. package/src/models/operations/listidentities.ts +1 -1
  130. package/src/models/operations/listpromptversions.ts +5 -1
  131. package/src/models/operations/retrieveagentrequest.ts +10 -2
  132. package/src/models/operations/retrievedatapoint.ts +4 -4
  133. package/src/models/operations/retrievedataset.ts +1 -1
  134. package/src/models/operations/retrievedatasource.ts +1 -1
  135. package/src/models/operations/retrieveidentity.ts +1 -1
  136. package/src/models/operations/retrievetool.ts +6 -6
  137. package/src/models/operations/runagent.ts +17 -5
  138. package/src/models/operations/streamrunagent.ts +17 -5
  139. package/src/models/operations/updateagent.ts +26 -6
  140. package/src/models/operations/updatedatapoint.ts +4 -4
  141. package/src/models/operations/updatedataset.ts +1 -1
  142. package/src/models/operations/updatedatasource.ts +1 -1
  143. package/src/models/operations/updateeval.ts +16 -16
  144. package/src/models/operations/updateidentity.ts +1 -1
  145. package/src/models/operations/updateprompt.ts +13 -3
  146. package/src/models/operations/updatetool.ts +7 -7
@@ -371,7 +371,7 @@ function updateToolRequestBodyToolsSchemaToJSON(updateToolRequestBodyToolsSchema
371
371
  }
372
372
  /** @internal */
373
373
  exports.RequestBodyTools$outboundSchema = z.object({
374
- id: z.string().default("01KKV5DJQVV05NK2YTNF78AM4C"),
374
+ id: z.string().default("01KKY6T8ADVCQPB9QG92YB8JDJ"),
375
375
  name: z.string(),
376
376
  description: z.string().optional(),
377
377
  schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
@@ -666,7 +666,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
666
666
  }
667
667
  /** @internal */
668
668
  exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
669
- _id: z.string().default("tool_01KKV5DJQNCFZ2KNSCK79DQYAR"),
669
+ _id: z.string().default("tool_01KKY6T8A81T7BS84TFR3J1QM3"),
670
670
  path: z.string(),
671
671
  key: z.string(),
672
672
  display_name: z.string().optional(),
@@ -721,7 +721,7 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
721
721
  }
722
722
  /** @internal */
723
723
  exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
724
- id: z.string().default("01KKV5DJQMSDHNV5957R67V3CV"),
724
+ id: z.string().default("01KKY6T8A7ES4Z9VGJN7GVFW9A"),
725
725
  name: z.string(),
726
726
  description: z.string().optional(),
727
727
  schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
@@ -749,7 +749,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
749
749
  }
750
750
  /** @internal */
751
751
  exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
752
- _id: z.string().default("tool_01KKV5DJQBMY632TYKWG8SWE3P"),
752
+ _id: z.string().default("tool_01KKY6T8A6MSSGDX1Y3SRPDDSD"),
753
753
  path: z.string(),
754
754
  key: z.string(),
755
755
  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_01KKV5DJQ9T5CDR81XD8KC556K"),
841
+ _id: z.string().default("tool_01KKY6T89XJ8X5882N6ZVM0CVA"),
842
842
  path: z.string(),
843
843
  key: z.string(),
844
844
  display_name: z.string().optional(),
@@ -890,7 +890,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
890
890
  }
891
891
  /** @internal */
892
892
  exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
893
- _id: z.string().default("tool_01KKV5DJQ8H6JEHZ4A14PTRZFG"),
893
+ _id: z.string().default("tool_01KKY6T89WKF4FBKX1CDYS9519"),
894
894
  path: z.string(),
895
895
  key: z.string(),
896
896
  display_name: z.string().optional(),
@@ -946,7 +946,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
946
946
  }
947
947
  /** @internal */
948
948
  exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
949
- _id: z.string().default("tool_01KKV5DJQ62SFS6TND5YJ3EQKF"),
949
+ _id: z.string().default("tool_01KKY6T89T1FPR6P3JWJM9290X"),
950
950
  path: z.string(),
951
951
  key: z.string(),
952
952
  display_name: z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orq-ai/node",
3
- "version": "4.5.21",
3
+ "version": "4.5.23",
4
4
  "author": "Orq",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
package/src/lib/config.ts CHANGED
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
68
68
  export const SDK_METADATA = {
69
69
  language: "typescript",
70
70
  openapiDocVersion: "2.0",
71
- sdkVersion: "4.5.21",
72
- genVersion: "2.865.2",
73
- userAgent: "speakeasy-sdk/typescript 4.5.21 2.865.2 2.0 @orq-ai/node",
71
+ sdkVersion: "4.5.23",
72
+ genVersion: "2.866.0",
73
+ userAgent: "speakeasy-sdk/typescript 4.5.23 2.866.0 2.0 @orq-ai/node",
74
74
  } as const;
@@ -44,6 +44,7 @@ export * from "./security.js";
44
44
  export * from "./telemetry.js";
45
45
  export * from "./textcontentpartschema.js";
46
46
  export * from "./textpart.js";
47
+ export * from "./thinkingconfigadaptiveschema.js";
47
48
  export * from "./thinkingconfigdisabledschema.js";
48
49
  export * from "./thinkingconfigenabledschema.js";
49
50
  export * from "./timeoutstreamingevent.js";
@@ -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_01kkv5dj8zznq0186kwcb0wve2"),
43
+ _id: z.string().default("reasoning_01kky6t7wsn8k2q1btyaany3a1"),
44
44
  metadata: z.record(z.any()).optional(),
45
45
  kind: z.literal("reasoning"),
46
46
  reasoning: z.string(),
@@ -0,0 +1,59 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * Enables adaptive thinking mode where the model dynamically determines thinking depth
12
+ */
13
+ export type ThinkingConfigAdaptiveSchema = {
14
+ /**
15
+ * Lets the model dynamically determine when and how much to use extended thinking based on the complexity of each request. Supported on Claude Opus 4.6 and Sonnet 4.6.
16
+ */
17
+ type: "adaptive";
18
+ };
19
+
20
+ /** @internal */
21
+ export const ThinkingConfigAdaptiveSchema$inboundSchema: z.ZodType<
22
+ ThinkingConfigAdaptiveSchema,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ type: z.literal("adaptive"),
27
+ });
28
+ /** @internal */
29
+ export type ThinkingConfigAdaptiveSchema$Outbound = {
30
+ type: "adaptive";
31
+ };
32
+
33
+ /** @internal */
34
+ export const ThinkingConfigAdaptiveSchema$outboundSchema: z.ZodType<
35
+ ThinkingConfigAdaptiveSchema$Outbound,
36
+ z.ZodTypeDef,
37
+ ThinkingConfigAdaptiveSchema
38
+ > = z.object({
39
+ type: z.literal("adaptive"),
40
+ });
41
+
42
+ export function thinkingConfigAdaptiveSchemaToJSON(
43
+ thinkingConfigAdaptiveSchema: ThinkingConfigAdaptiveSchema,
44
+ ): string {
45
+ return JSON.stringify(
46
+ ThinkingConfigAdaptiveSchema$outboundSchema.parse(
47
+ thinkingConfigAdaptiveSchema,
48
+ ),
49
+ );
50
+ }
51
+ export function thinkingConfigAdaptiveSchemaFromJSON(
52
+ jsonString: string,
53
+ ): SafeParseResult<ThinkingConfigAdaptiveSchema, SDKValidationError> {
54
+ return safeParse(
55
+ jsonString,
56
+ (x) => ThinkingConfigAdaptiveSchema$inboundSchema.parse(JSON.parse(x)),
57
+ `Failed to parse 'ThinkingConfigAdaptiveSchema' from JSON`,
58
+ );
59
+ }
@@ -103,7 +103,8 @@ export type Stop = string | Array<string>;
103
103
 
104
104
  export type Thinking =
105
105
  | components.ThinkingConfigDisabledSchema
106
- | components.ThinkingConfigEnabledSchema;
106
+ | components.ThinkingConfigEnabledSchema
107
+ | components.ThinkingConfigAdaptiveSchema;
107
108
 
108
109
  /**
109
110
  * The type of the tool. Currently, only function is supported.
@@ -303,6 +304,7 @@ export type ParametersT = {
303
304
  thinking?:
304
305
  | components.ThinkingConfigDisabledSchema
305
306
  | components.ThinkingConfigEnabledSchema
307
+ | components.ThinkingConfigAdaptiveSchema
306
308
  | undefined;
307
309
  /**
308
310
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
@@ -487,7 +489,8 @@ export type FallbackModelConfigurationStop = string | Array<string>;
487
489
 
488
490
  export type FallbackModelConfigurationThinking =
489
491
  | components.ThinkingConfigDisabledSchema
490
- | components.ThinkingConfigEnabledSchema;
492
+ | components.ThinkingConfigEnabledSchema
493
+ | components.ThinkingConfigAdaptiveSchema;
491
494
 
492
495
  /**
493
496
  * The type of the tool. Currently, only function is supported.
@@ -706,6 +709,7 @@ export type FallbackModelConfigurationParameters = {
706
709
  thinking?:
707
710
  | components.ThinkingConfigDisabledSchema
708
711
  | components.ThinkingConfigEnabledSchema
712
+ | components.ThinkingConfigAdaptiveSchema
709
713
  | undefined;
710
714
  /**
711
715
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
@@ -1755,7 +1759,8 @@ export type CreateAgentRequestStop = string | Array<string>;
1755
1759
 
1756
1760
  export type CreateAgentRequestThinking =
1757
1761
  | components.ThinkingConfigDisabledSchema
1758
- | components.ThinkingConfigEnabledSchema;
1762
+ | components.ThinkingConfigEnabledSchema
1763
+ | components.ThinkingConfigAdaptiveSchema;
1759
1764
 
1760
1765
  /**
1761
1766
  * The type of the tool. Currently, only function is supported.
@@ -1977,6 +1982,7 @@ export type CreateAgentRequestParameters = {
1977
1982
  thinking?:
1978
1983
  | components.ThinkingConfigDisabledSchema
1979
1984
  | components.ThinkingConfigEnabledSchema
1985
+ | components.ThinkingConfigAdaptiveSchema
1980
1986
  | undefined;
1981
1987
  /**
1982
1988
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
@@ -2145,7 +2151,8 @@ export type CreateAgentRequestFallbackModelConfigurationStop =
2145
2151
 
2146
2152
  export type CreateAgentRequestFallbackModelConfigurationThinking =
2147
2153
  | components.ThinkingConfigDisabledSchema
2148
- | components.ThinkingConfigEnabledSchema;
2154
+ | components.ThinkingConfigEnabledSchema
2155
+ | components.ThinkingConfigAdaptiveSchema;
2149
2156
 
2150
2157
  /**
2151
2158
  * The type of the tool. Currently, only function is supported.
@@ -2370,6 +2377,7 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
2370
2377
  thinking?:
2371
2378
  | components.ThinkingConfigDisabledSchema
2372
2379
  | components.ThinkingConfigEnabledSchema
2380
+ | components.ThinkingConfigAdaptiveSchema
2373
2381
  | undefined;
2374
2382
  /**
2375
2383
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
@@ -2713,7 +2721,8 @@ export function stopToJSON(stop: Stop): string {
2713
2721
  /** @internal */
2714
2722
  export type Thinking$Outbound =
2715
2723
  | components.ThinkingConfigDisabledSchema$Outbound
2716
- | components.ThinkingConfigEnabledSchema$Outbound;
2724
+ | components.ThinkingConfigEnabledSchema$Outbound
2725
+ | components.ThinkingConfigAdaptiveSchema$Outbound;
2717
2726
 
2718
2727
  /** @internal */
2719
2728
  export const Thinking$outboundSchema: z.ZodType<
@@ -2723,6 +2732,7 @@ export const Thinking$outboundSchema: z.ZodType<
2723
2732
  > = z.union([
2724
2733
  components.ThinkingConfigDisabledSchema$outboundSchema,
2725
2734
  components.ThinkingConfigEnabledSchema$outboundSchema,
2735
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
2726
2736
  ]);
2727
2737
 
2728
2738
  export function thinkingToJSON(thinking: Thinking): string {
@@ -2988,6 +2998,7 @@ export type ParametersT$Outbound = {
2988
2998
  thinking?:
2989
2999
  | components.ThinkingConfigDisabledSchema$Outbound
2990
3000
  | components.ThinkingConfigEnabledSchema$Outbound
3001
+ | components.ThinkingConfigAdaptiveSchema$Outbound
2991
3002
  | undefined;
2992
3003
  temperature?: number | null | undefined;
2993
3004
  top_p?: number | null | undefined;
@@ -3025,6 +3036,7 @@ export const ParametersT$outboundSchema: z.ZodType<
3025
3036
  thinking: z.union([
3026
3037
  components.ThinkingConfigDisabledSchema$outboundSchema,
3027
3038
  components.ThinkingConfigEnabledSchema$outboundSchema,
3039
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
3028
3040
  ]).optional(),
3029
3041
  temperature: z.nullable(z.number()).optional(),
3030
3042
  topP: z.nullable(z.number()).optional(),
@@ -3294,7 +3306,8 @@ export function fallbackModelConfigurationStopToJSON(
3294
3306
  /** @internal */
3295
3307
  export type FallbackModelConfigurationThinking$Outbound =
3296
3308
  | components.ThinkingConfigDisabledSchema$Outbound
3297
- | components.ThinkingConfigEnabledSchema$Outbound;
3309
+ | components.ThinkingConfigEnabledSchema$Outbound
3310
+ | components.ThinkingConfigAdaptiveSchema$Outbound;
3298
3311
 
3299
3312
  /** @internal */
3300
3313
  export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
@@ -3304,6 +3317,7 @@ export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
3304
3317
  > = z.union([
3305
3318
  components.ThinkingConfigDisabledSchema$outboundSchema,
3306
3319
  components.ThinkingConfigEnabledSchema$outboundSchema,
3320
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
3307
3321
  ]);
3308
3322
 
3309
3323
  export function fallbackModelConfigurationThinkingToJSON(
@@ -3647,6 +3661,7 @@ export type FallbackModelConfigurationParameters$Outbound = {
3647
3661
  thinking?:
3648
3662
  | components.ThinkingConfigDisabledSchema$Outbound
3649
3663
  | components.ThinkingConfigEnabledSchema$Outbound
3664
+ | components.ThinkingConfigAdaptiveSchema$Outbound
3650
3665
  | undefined;
3651
3666
  temperature?: number | null | undefined;
3652
3667
  top_p?: number | null | undefined;
@@ -3685,6 +3700,7 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
3685
3700
  thinking: z.union([
3686
3701
  components.ThinkingConfigDisabledSchema$outboundSchema,
3687
3702
  components.ThinkingConfigEnabledSchema$outboundSchema,
3703
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
3688
3704
  ]).optional(),
3689
3705
  temperature: z.nullable(z.number()).optional(),
3690
3706
  topP: z.nullable(z.number()).optional(),
@@ -5153,6 +5169,7 @@ export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
5153
5169
  > = z.union([
5154
5170
  components.ThinkingConfigDisabledSchema$inboundSchema,
5155
5171
  components.ThinkingConfigEnabledSchema$inboundSchema,
5172
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
5156
5173
  ]);
5157
5174
 
5158
5175
  export function createAgentRequestThinkingFromJSON(
@@ -5462,6 +5479,7 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
5462
5479
  thinking: z.union([
5463
5480
  components.ThinkingConfigDisabledSchema$inboundSchema,
5464
5481
  components.ThinkingConfigEnabledSchema$inboundSchema,
5482
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
5465
5483
  ]).optional(),
5466
5484
  temperature: z.nullable(z.number()).optional(),
5467
5485
  top_p: z.nullable(z.number()).optional(),
@@ -5712,6 +5730,7 @@ export const CreateAgentRequestFallbackModelConfigurationThinking$inboundSchema:
5712
5730
  > = z.union([
5713
5731
  components.ThinkingConfigDisabledSchema$inboundSchema,
5714
5732
  components.ThinkingConfigEnabledSchema$inboundSchema,
5733
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
5715
5734
  ]);
5716
5735
 
5717
5736
  export function createAgentRequestFallbackModelConfigurationThinkingFromJSON(
@@ -6096,6 +6115,7 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
6096
6115
  thinking: z.union([
6097
6116
  components.ThinkingConfigDisabledSchema$inboundSchema,
6098
6117
  components.ThinkingConfigEnabledSchema$inboundSchema,
6118
+ components.ThinkingConfigAdaptiveSchema$inboundSchema,
6099
6119
  ]).optional(),
6100
6120
  temperature: z.nullable(z.number()).optional(),
6101
6121
  top_p: z.nullable(z.number()).optional(),
@@ -523,7 +523,8 @@ export type CreateChatCompletionStreamOptions = {
523
523
 
524
524
  export type CreateChatCompletionThinking =
525
525
  | components.ThinkingConfigDisabledSchema
526
- | components.ThinkingConfigEnabledSchema;
526
+ | components.ThinkingConfigEnabledSchema
527
+ | components.ThinkingConfigAdaptiveSchema;
527
528
 
528
529
  /**
529
530
  * The type of the tool. Currently, only function is supported.
@@ -1497,6 +1498,7 @@ export type CreateChatCompletionRequestBody = {
1497
1498
  thinking?:
1498
1499
  | components.ThinkingConfigDisabledSchema
1499
1500
  | components.ThinkingConfigEnabledSchema
1501
+ | components.ThinkingConfigAdaptiveSchema
1500
1502
  | undefined;
1501
1503
  /**
1502
1504
  * What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
@@ -3080,7 +3082,8 @@ export function createChatCompletionStreamOptionsToJSON(
3080
3082
  /** @internal */
3081
3083
  export type CreateChatCompletionThinking$Outbound =
3082
3084
  | components.ThinkingConfigDisabledSchema$Outbound
3083
- | components.ThinkingConfigEnabledSchema$Outbound;
3085
+ | components.ThinkingConfigEnabledSchema$Outbound
3086
+ | components.ThinkingConfigAdaptiveSchema$Outbound;
3084
3087
 
3085
3088
  /** @internal */
3086
3089
  export const CreateChatCompletionThinking$outboundSchema: z.ZodType<
@@ -3090,6 +3093,7 @@ export const CreateChatCompletionThinking$outboundSchema: z.ZodType<
3090
3093
  > = z.union([
3091
3094
  components.ThinkingConfigDisabledSchema$outboundSchema,
3092
3095
  components.ThinkingConfigEnabledSchema$outboundSchema,
3096
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
3093
3097
  ]);
3094
3098
 
3095
3099
  export function createChatCompletionThinkingToJSON(
@@ -5302,6 +5306,7 @@ export type CreateChatCompletionRequestBody$Outbound = {
5302
5306
  thinking?:
5303
5307
  | components.ThinkingConfigDisabledSchema$Outbound
5304
5308
  | components.ThinkingConfigEnabledSchema$Outbound
5309
+ | components.ThinkingConfigAdaptiveSchema$Outbound
5305
5310
  | undefined;
5306
5311
  temperature?: number | null | undefined;
5307
5312
  top_p?: number | null | undefined;
@@ -5366,6 +5371,7 @@ export const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<
5366
5371
  thinking: z.union([
5367
5372
  components.ThinkingConfigDisabledSchema$outboundSchema,
5368
5373
  components.ThinkingConfigEnabledSchema$outboundSchema,
5374
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
5369
5375
  ]).optional(),
5370
5376
  temperature: z.nullable(z.number()).optional(),
5371
5377
  topP: z.nullable(z.number()).optional(),
@@ -91,6 +91,14 @@ export type CreateCompletionTimeout = {
91
91
  callTimeout: number;
92
92
  };
93
93
 
94
+ /**
95
+ * Configuration for the thinking mode capability. Set type to `adaptive` for models that support adaptive thinking (e.g. Claude Opus 4.6, Sonnet 4.6), or `enabled` with `budget_tokens` for manual control.
96
+ */
97
+ export type CreateCompletionThinking =
98
+ | components.ThinkingConfigDisabledSchema
99
+ | components.ThinkingConfigEnabledSchema
100
+ | components.ThinkingConfigAdaptiveSchema;
101
+
94
102
  /**
95
103
  * Retry configuration for the request
96
104
  */
@@ -771,6 +779,15 @@ export type CreateCompletionRequestBody = {
771
779
  * Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
772
780
  */
773
781
  timeout?: CreateCompletionTimeout | undefined;
782
+ /**
783
+ * Configuration for the thinking mode capability. Set type to `adaptive` for models that support adaptive thinking (e.g. Claude Opus 4.6, Sonnet 4.6), or `enabled` with `budget_tokens` for manual control.
784
+ */
785
+ thinking?:
786
+ | components.ThinkingConfigDisabledSchema
787
+ | components.ThinkingConfigEnabledSchema
788
+ | components.ThinkingConfigAdaptiveSchema
789
+ | null
790
+ | undefined;
774
791
  /**
775
792
  * Leverage Orq's intelligent routing capabilities to enhance your AI application with enterprise-grade reliability and observability. Orq provides automatic request management including retries on failures, model fallbacks for high availability, identity-level analytics tracking, conversation threading, and dynamic prompt templating with variable substitution.
776
793
  *
@@ -1212,6 +1229,31 @@ export function createCompletionTimeoutToJSON(
1212
1229
  );
1213
1230
  }
1214
1231
 
1232
+ /** @internal */
1233
+ export type CreateCompletionThinking$Outbound =
1234
+ | components.ThinkingConfigDisabledSchema$Outbound
1235
+ | components.ThinkingConfigEnabledSchema$Outbound
1236
+ | components.ThinkingConfigAdaptiveSchema$Outbound;
1237
+
1238
+ /** @internal */
1239
+ export const CreateCompletionThinking$outboundSchema: z.ZodType<
1240
+ CreateCompletionThinking$Outbound,
1241
+ z.ZodTypeDef,
1242
+ CreateCompletionThinking
1243
+ > = z.union([
1244
+ components.ThinkingConfigDisabledSchema$outboundSchema,
1245
+ components.ThinkingConfigEnabledSchema$outboundSchema,
1246
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
1247
+ ]);
1248
+
1249
+ export function createCompletionThinkingToJSON(
1250
+ createCompletionThinking: CreateCompletionThinking,
1251
+ ): string {
1252
+ return JSON.stringify(
1253
+ CreateCompletionThinking$outboundSchema.parse(createCompletionThinking),
1254
+ );
1255
+ }
1256
+
1215
1257
  /** @internal */
1216
1258
  export type CreateCompletionRouterCompletionsRetry$Outbound = {
1217
1259
  count: number;
@@ -2935,6 +2977,12 @@ export type CreateCompletionRequestBody$Outbound = {
2935
2977
  cache?: CreateCompletionCache$Outbound | undefined;
2936
2978
  load_balancer?: CreateCompletionLoadBalancer1$Outbound | undefined;
2937
2979
  timeout?: CreateCompletionTimeout$Outbound | undefined;
2980
+ thinking?:
2981
+ | components.ThinkingConfigDisabledSchema$Outbound
2982
+ | components.ThinkingConfigEnabledSchema$Outbound
2983
+ | components.ThinkingConfigAdaptiveSchema$Outbound
2984
+ | null
2985
+ | undefined;
2938
2986
  orq?: CreateCompletionOrq$Outbound | undefined;
2939
2987
  stream: boolean;
2940
2988
  };
@@ -2965,6 +3013,13 @@ export const CreateCompletionRequestBody$outboundSchema: z.ZodType<
2965
3013
  loadBalancer: z.lazy(() => CreateCompletionLoadBalancer1$outboundSchema)
2966
3014
  .optional(),
2967
3015
  timeout: z.lazy(() => CreateCompletionTimeout$outboundSchema).optional(),
3016
+ thinking: z.nullable(
3017
+ z.union([
3018
+ components.ThinkingConfigDisabledSchema$outboundSchema,
3019
+ components.ThinkingConfigEnabledSchema$outboundSchema,
3020
+ components.ThinkingConfigAdaptiveSchema$outboundSchema,
3021
+ ]),
3022
+ ).optional(),
2968
3023
  orq: z.lazy(() => CreateCompletionOrq$outboundSchema).optional(),
2969
3024
  stream: z.boolean().default(false),
2970
3025
  }).transform((v) => {
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
134
134
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
135
135
  .optional(),
136
136
  updated: z.string().datetime({ offset: true }).default(
137
- "2026-03-16T11:09:52.160Z",
137
+ "2026-03-17T15:32:01.371Z",
138
138
  ).transform(v => new Date(v)),
139
139
  }).transform((v) => {
140
140
  return remap$(v, {
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
138
138
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
139
139
  .optional(),
140
140
  updated: z.string().datetime({ offset: true }).default(
141
- "2026-03-16T11:09:52.160Z",
141
+ "2026-03-17T15:32:01.371Z",
142
142
  ).transform(v => new Date(v)),
143
143
  }).transform((v) => {
144
144
  return remap$(v, {
@@ -2353,7 +2353,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
2353
2353
  ),
2354
2354
  reviewed_by_id: z.string(),
2355
2355
  reviewed_at: z.string().datetime({ offset: true }).default(
2356
- "2026-03-16T11:10:09.343Z",
2356
+ "2026-03-17T15:32:16.500Z",
2357
2357
  ).transform(v => new Date(v)),
2358
2358
  type: z.literal("string_array"),
2359
2359
  values: z.array(z.string()),
@@ -2398,7 +2398,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
2398
2398
  source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
2399
2399
  reviewed_by_id: z.string(),
2400
2400
  reviewed_at: z.string().datetime({ offset: true }).default(
2401
- "2026-03-16T11:10:09.343Z",
2401
+ "2026-03-17T15:32:16.500Z",
2402
2402
  ).transform(v => new Date(v)),
2403
2403
  type: z.literal("number"),
2404
2404
  value: z.number(),
@@ -2443,7 +2443,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
2443
2443
  source: EvaluationsSource$inboundSchema.default("orq"),
2444
2444
  reviewed_by_id: z.string(),
2445
2445
  reviewed_at: z.string().datetime({ offset: true }).default(
2446
- "2026-03-16T11:10:09.342Z",
2446
+ "2026-03-17T15:32:16.500Z",
2447
2447
  ).transform(v => new Date(v)),
2448
2448
  type: z.literal("string"),
2449
2449
  value: z.string(),
@@ -2526,7 +2526,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
2526
2526
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2527
2527
  .optional(),
2528
2528
  updated: z.string().datetime({ offset: true }).default(
2529
- "2026-03-16T11:09:52.160Z",
2529
+ "2026-03-17T15:32:01.371Z",
2530
2530
  ).transform(v => new Date(v)),
2531
2531
  }).transform((v) => {
2532
2532
  return remap$(v, {
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
403
403
  z.ZodTypeDef,
404
404
  unknown
405
405
  > = z.object({
406
- _id: z.string().default("01KKV5DJVR27QF819ST56F0MJV"),
406
+ _id: z.string().default("01KKY6T8DRYXJCMAYTMWM2A0F3"),
407
407
  display_name: z.string(),
408
408
  description: z.string().optional(),
409
409
  status: CreateDatasourceStatus$inboundSchema,
@@ -2245,8 +2245,8 @@ export const Typescript$inboundSchema: z.ZodType<
2245
2245
  > = z.object({
2246
2246
  _id: z.string(),
2247
2247
  description: z.string(),
2248
- created: z.string().default("2026-03-16T11:09:53.514Z"),
2249
- updated: z.string().default("2026-03-16T11:09:53.514Z"),
2248
+ created: z.string().default("2026-03-17T15:32:02.643Z"),
2249
+ updated: z.string().default("2026-03-17T15:32:02.643Z"),
2250
2250
  guardrail_config: z.union([
2251
2251
  z.lazy(() =>
2252
2252
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
@@ -2394,8 +2394,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
2394
2394
  .object({
2395
2395
  _id: z.string(),
2396
2396
  description: z.string(),
2397
- created: z.string().default("2026-03-16T11:09:53.514Z"),
2398
- updated: z.string().default("2026-03-16T11:09:53.514Z"),
2397
+ created: z.string().default("2026-03-17T15:32:02.643Z"),
2398
+ updated: z.string().default("2026-03-17T15:32:02.643Z"),
2399
2399
  guardrail_config: z.union([
2400
2400
  z.lazy(() =>
2401
2401
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
@@ -3178,8 +3178,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
3178
3178
  > = z.object({
3179
3179
  _id: z.string(),
3180
3180
  description: z.string(),
3181
- created: z.string().default("2026-03-16T11:09:53.514Z"),
3182
- updated: z.string().default("2026-03-16T11:09:53.514Z"),
3181
+ created: z.string().default("2026-03-17T15:32:02.643Z"),
3182
+ updated: z.string().default("2026-03-17T15:32:02.643Z"),
3183
3183
  guardrail_config: z.union([
3184
3184
  z.lazy(() =>
3185
3185
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
@@ -3357,8 +3357,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
3357
3357
  > = z.object({
3358
3358
  _id: z.string(),
3359
3359
  description: z.string(),
3360
- created: z.string().default("2026-03-16T11:09:53.514Z"),
3361
- updated: z.string().default("2026-03-16T11:09:53.514Z"),
3360
+ created: z.string().default("2026-03-17T15:32:02.643Z"),
3361
+ updated: z.string().default("2026-03-17T15:32:02.643Z"),
3362
3362
  guardrail_config: z.union([
3363
3363
  z.lazy(() =>
3364
3364
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
@@ -3498,8 +3498,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
3498
3498
  > = z.object({
3499
3499
  _id: z.string(),
3500
3500
  description: z.string(),
3501
- created: z.string().default("2026-03-16T11:09:53.514Z"),
3502
- updated: z.string().default("2026-03-16T11:09:53.514Z"),
3501
+ created: z.string().default("2026-03-17T15:32:02.643Z"),
3502
+ updated: z.string().default("2026-03-17T15:32:02.643Z"),
3503
3503
  guardrail_config: z.union([
3504
3504
  z.lazy(() =>
3505
3505
  CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
@@ -3634,8 +3634,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
3634
3634
  > = z.object({
3635
3635
  _id: z.string(),
3636
3636
  description: z.string(),
3637
- created: z.string().default("2026-03-16T11:09:53.514Z"),
3638
- updated: z.string().default("2026-03-16T11:09:53.514Z"),
3637
+ created: z.string().default("2026-03-17T15:32:02.643Z"),
3638
+ updated: z.string().default("2026-03-17T15:32:02.643Z"),
3639
3639
  guardrail_config: z.union([
3640
3640
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
3641
3641
  z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
@@ -3944,8 +3944,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
3944
3944
  > = z.object({
3945
3945
  _id: z.string(),
3946
3946
  description: z.string(),
3947
- created: z.string().default("2026-03-16T11:09:53.514Z"),
3948
- updated: z.string().default("2026-03-16T11:09:53.514Z"),
3947
+ created: z.string().default("2026-03-17T15:32:02.643Z"),
3948
+ updated: z.string().default("2026-03-17T15:32:02.643Z"),
3949
3949
  guardrail_config: z.union([
3950
3950
  z.lazy(() =>
3951
3951
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
@@ -4088,8 +4088,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
4088
4088
  > = z.object({
4089
4089
  _id: z.string(),
4090
4090
  description: z.string(),
4091
- created: z.string().default("2026-03-16T11:09:53.514Z"),
4092
- updated: z.string().default("2026-03-16T11:09:53.514Z"),
4091
+ created: z.string().default("2026-03-17T15:32:02.643Z"),
4092
+ updated: z.string().default("2026-03-17T15:32:02.643Z"),
4093
4093
  guardrail_config: z.union([
4094
4094
  z.lazy(() =>
4095
4095
  CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
139
139
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
140
140
  .optional(),
141
141
  updated: z.string().datetime({ offset: true }).default(
142
- "2026-03-16T11:09:52.160Z",
142
+ "2026-03-17T15:32:01.371Z",
143
143
  ).transform(v => new Date(v)),
144
144
  }).transform((v) => {
145
145
  return remap$(v, {