@orq-ai/node 4.17.13 → 4.17.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createtool.js +4 -4
  7. package/models/operations/getalltools.js +4 -4
  8. package/models/operations/getv2humanevalsets.js +2 -2
  9. package/models/operations/getv2humanevalsetsid.js +2 -2
  10. package/models/operations/listdeploymentversions.js +1 -1
  11. package/models/operations/patchv2humanevalsetsid.js +2 -2
  12. package/models/operations/postv2humanevalsets.js +2 -2
  13. package/models/operations/retrievetool.js +4 -4
  14. package/models/operations/runagent.js +1 -1
  15. package/models/operations/streamrunagent.js +1 -1
  16. package/models/operations/updatetool.js +4 -4
  17. package/package.json +5 -5
  18. package/packages/orq-rc/src/lib/config.ts +3 -3
  19. package/packages/orq-rc/src/models/components/budgetscope.ts +2 -2
  20. package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +2 -2
  21. package/packages/orq-rc/src/models/components/budgetusage.ts +1 -4
  22. package/packages/orq-rc/src/models/components/classifypromptcacheoptions.ts +76 -0
  23. package/packages/orq-rc/src/models/components/createmcpgatewayrequest.ts +11 -0
  24. package/packages/orq-rc/src/models/components/index.ts +2 -27
  25. package/packages/orq-rc/src/models/components/mcpauthconfig.ts +67 -10
  26. package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +57 -8
  27. package/packages/orq-rc/src/models/components/mcpgateway.ts +15 -0
  28. package/packages/orq-rc/src/models/components/mcpoauthconfig.ts +19 -1
  29. package/packages/orq-rc/src/models/components/mcpoauthconfigoutput.ts +17 -1
  30. package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
  31. package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +13 -8
  32. package/packages/orq-rc/src/models/components/providerbudgetscope.ts +2 -2
  33. package/packages/orq-rc/src/models/components/querylogsresponse.ts +1 -1
  34. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  35. package/packages/orq-rc/src/models/components/spansummary.ts +29 -5
  36. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +32 -0
  37. package/packages/orq-rc/src/models/components/thinkingconfigbetweentoolsschema.ts +104 -0
  38. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +27 -0
  39. package/packages/orq-rc/src/models/components/thinkingparam.ts +7 -6
  40. package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +11 -0
  41. package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
  42. package/packages/orq-rc/src/models/operations/createagentrequest.ts +26 -6
  43. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +8 -2
  44. package/packages/orq-rc/src/models/operations/createclassify.ts +25 -11
  45. package/packages/orq-rc/src/models/operations/createcompletion.ts +8 -2
  46. package/packages/orq-rc/src/models/operations/createdecisions.ts +25 -11
  47. package/packages/orq-rc/src/models/operations/createprompt.ts +13 -3
  48. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  49. package/packages/orq-rc/src/models/operations/getallprompts.ts +5 -1
  50. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  51. package/packages/orq-rc/src/models/operations/getoneprompt.ts +5 -1
  52. package/packages/orq-rc/src/models/operations/getpromptversion.ts +5 -1
  53. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  55. package/packages/orq-rc/src/models/operations/index.ts +0 -10
  56. package/packages/orq-rc/src/models/operations/listagents.ts +10 -2
  57. package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +1 -1
  58. package/packages/orq-rc/src/models/operations/listpromptversions.ts +5 -1
  59. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  61. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +10 -2
  62. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  63. package/packages/orq-rc/src/models/operations/runagent.ts +17 -5
  64. package/packages/orq-rc/src/models/operations/streamrunagent.ts +17 -5
  65. package/packages/orq-rc/src/models/operations/updateagent.ts +26 -6
  66. package/packages/orq-rc/src/models/operations/updateprompt.ts +13 -3
  67. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  68. package/packages/orq-rc/src/sdk/sdk.ts +0 -6
  69. package/src/lib/config.ts +3 -3
  70. package/src/models/components/reasoningpart.ts +1 -1
  71. package/src/models/operations/createtool.ts +4 -4
  72. package/src/models/operations/getalltools.ts +4 -4
  73. package/src/models/operations/getv2humanevalsets.ts +2 -2
  74. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  75. package/src/models/operations/listdeploymentversions.ts +1 -1
  76. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  77. package/src/models/operations/postv2humanevalsets.ts +2 -2
  78. package/src/models/operations/retrievetool.ts +4 -4
  79. package/src/models/operations/runagent.ts +1 -1
  80. package/src/models/operations/streamrunagent.ts +1 -1
  81. package/src/models/operations/updatetool.ts +4 -4
  82. package/packages/orq-rc/src/funcs/wikisCreate.ts +0 -165
  83. package/packages/orq-rc/src/funcs/wikisDelete.ts +0 -171
  84. package/packages/orq-rc/src/funcs/wikisGet.ts +0 -171
  85. package/packages/orq-rc/src/funcs/wikisGetPage.ts +0 -177
  86. package/packages/orq-rc/src/funcs/wikisGetTree.ts +0 -171
  87. package/packages/orq-rc/src/funcs/wikisInspectRepository.ts +0 -166
  88. package/packages/orq-rc/src/funcs/wikisList.ts +0 -176
  89. package/packages/orq-rc/src/funcs/wikisListRuns.ts +0 -176
  90. package/packages/orq-rc/src/funcs/wikisRefresh.ts +0 -174
  91. package/packages/orq-rc/src/funcs/wikisSearch.ts +0 -177
  92. package/packages/orq-rc/src/funcs/wikisUpdate.ts +0 -172
  93. package/packages/orq-rc/src/funcs/wikisUpdatePage.ts +0 -174
  94. package/packages/orq-rc/src/models/components/createwikirequest.ts +0 -67
  95. package/packages/orq-rc/src/models/components/createwikiresponse.ts +0 -32
  96. package/packages/orq-rc/src/models/components/deletewikiresponse.ts +0 -27
  97. package/packages/orq-rc/src/models/components/getwikipageresponse.ts +0 -32
  98. package/packages/orq-rc/src/models/components/getwikiresponse.ts +0 -32
  99. package/packages/orq-rc/src/models/components/getwikitreeresponse.ts +0 -32
  100. package/packages/orq-rc/src/models/components/inspectrepositorywikirequest.ts +0 -45
  101. package/packages/orq-rc/src/models/components/inspectrepositorywikiresponse.ts +0 -38
  102. package/packages/orq-rc/src/models/components/listwikirunsresponse.ts +0 -32
  103. package/packages/orq-rc/src/models/components/listwikisresponse.ts +0 -39
  104. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfig.ts +0 -72
  105. package/packages/orq-rc/src/models/components/mcpenterpriseauthconfigoutput.ts +0 -62
  106. package/packages/orq-rc/src/models/components/refreshwikirequest.ts +0 -31
  107. package/packages/orq-rc/src/models/components/refreshwikiresponse.ts +0 -32
  108. package/packages/orq-rc/src/models/components/searchwikiresponse.ts +0 -32
  109. package/packages/orq-rc/src/models/components/updatewikipagerequest.ts +0 -42
  110. package/packages/orq-rc/src/models/components/updatewikipageresponse.ts +0 -32
  111. package/packages/orq-rc/src/models/components/updatewikirequest.ts +0 -48
  112. package/packages/orq-rc/src/models/components/updatewikiresponse.ts +0 -32
  113. package/packages/orq-rc/src/models/components/wiki.ts +0 -91
  114. package/packages/orq-rc/src/models/components/wikipage.ts +0 -58
  115. package/packages/orq-rc/src/models/components/wikirepository.ts +0 -72
  116. package/packages/orq-rc/src/models/components/wikirun.ts +0 -71
  117. package/packages/orq-rc/src/models/components/wikirunstats.ts +0 -44
  118. package/packages/orq-rc/src/models/components/wikisearchhit.ts +0 -45
  119. package/packages/orq-rc/src/models/components/wikisettings.ts +0 -76
  120. package/packages/orq-rc/src/models/components/wikitreepage.ts +0 -47
  121. package/packages/orq-rc/src/models/operations/deletewiki.ts +0 -36
  122. package/packages/orq-rc/src/models/operations/getwiki.ts +0 -32
  123. package/packages/orq-rc/src/models/operations/getwikipage.ts +0 -43
  124. package/packages/orq-rc/src/models/operations/getwikitree.ts +0 -36
  125. package/packages/orq-rc/src/models/operations/listwikiruns.ts +0 -39
  126. package/packages/orq-rc/src/models/operations/listwikis.ts +0 -54
  127. package/packages/orq-rc/src/models/operations/refreshwiki.ts +0 -41
  128. package/packages/orq-rc/src/models/operations/searchwiki.ts +0 -42
  129. package/packages/orq-rc/src/models/operations/updatewiki.ts +0 -41
  130. package/packages/orq-rc/src/models/operations/updatewikipage.ts +0 -41
  131. package/packages/orq-rc/src/sdk/wikis.ts +0 -154
@@ -0,0 +1,104 @@
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 { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ /**
13
+ * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
14
+ */
15
+ export const ThinkingConfigBetweenToolsSchemaDisplay = {
16
+ Summarized: "summarized",
17
+ Omitted: "omitted",
18
+ Updates: "updates",
19
+ } as const;
20
+ /**
21
+ * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
22
+ */
23
+ export type ThinkingConfigBetweenToolsSchemaDisplay = ClosedEnum<
24
+ typeof ThinkingConfigBetweenToolsSchemaDisplay
25
+ >;
26
+
27
+ /**
28
+ * Enables progress updates between tool calls on Sonnet 5.5.
29
+ */
30
+ export type ThinkingConfigBetweenToolsSchema = {
31
+ /**
32
+ * Returns Sonnet 5.5 progress updates between tool calls without extended thinking.
33
+ */
34
+ type: "between_tools";
35
+ budgetTokens?: number | undefined;
36
+ /**
37
+ * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
38
+ */
39
+ display?: ThinkingConfigBetweenToolsSchemaDisplay | undefined;
40
+ };
41
+
42
+ /** @internal */
43
+ export const ThinkingConfigBetweenToolsSchemaDisplay$inboundSchema:
44
+ z.ZodNativeEnum<typeof ThinkingConfigBetweenToolsSchemaDisplay> = z
45
+ .nativeEnum(ThinkingConfigBetweenToolsSchemaDisplay);
46
+ /** @internal */
47
+ export const ThinkingConfigBetweenToolsSchemaDisplay$outboundSchema:
48
+ z.ZodNativeEnum<typeof ThinkingConfigBetweenToolsSchemaDisplay> =
49
+ ThinkingConfigBetweenToolsSchemaDisplay$inboundSchema;
50
+
51
+ /** @internal */
52
+ export const ThinkingConfigBetweenToolsSchema$inboundSchema: z.ZodType<
53
+ ThinkingConfigBetweenToolsSchema,
54
+ z.ZodTypeDef,
55
+ unknown
56
+ > = z.object({
57
+ type: z.literal("between_tools"),
58
+ budget_tokens: z.number().optional(),
59
+ display: ThinkingConfigBetweenToolsSchemaDisplay$inboundSchema.optional(),
60
+ }).transform((v) => {
61
+ return remap$(v, {
62
+ "budget_tokens": "budgetTokens",
63
+ });
64
+ });
65
+ /** @internal */
66
+ export type ThinkingConfigBetweenToolsSchema$Outbound = {
67
+ type: "between_tools";
68
+ budget_tokens?: number | undefined;
69
+ display?: string | undefined;
70
+ };
71
+
72
+ /** @internal */
73
+ export const ThinkingConfigBetweenToolsSchema$outboundSchema: z.ZodType<
74
+ ThinkingConfigBetweenToolsSchema$Outbound,
75
+ z.ZodTypeDef,
76
+ ThinkingConfigBetweenToolsSchema
77
+ > = z.object({
78
+ type: z.literal("between_tools"),
79
+ budgetTokens: z.number().optional(),
80
+ display: ThinkingConfigBetweenToolsSchemaDisplay$outboundSchema.optional(),
81
+ }).transform((v) => {
82
+ return remap$(v, {
83
+ budgetTokens: "budget_tokens",
84
+ });
85
+ });
86
+
87
+ export function thinkingConfigBetweenToolsSchemaToJSON(
88
+ thinkingConfigBetweenToolsSchema: ThinkingConfigBetweenToolsSchema,
89
+ ): string {
90
+ return JSON.stringify(
91
+ ThinkingConfigBetweenToolsSchema$outboundSchema.parse(
92
+ thinkingConfigBetweenToolsSchema,
93
+ ),
94
+ );
95
+ }
96
+ export function thinkingConfigBetweenToolsSchemaFromJSON(
97
+ jsonString: string,
98
+ ): SafeParseResult<ThinkingConfigBetweenToolsSchema, SDKValidationError> {
99
+ return safeParse(
100
+ jsonString,
101
+ (x) => ThinkingConfigBetweenToolsSchema$inboundSchema.parse(JSON.parse(x)),
102
+ `Failed to parse 'ThinkingConfigBetweenToolsSchema' from JSON`,
103
+ );
104
+ }
@@ -23,6 +23,19 @@ export const ThinkingLevel = {
23
23
  */
24
24
  export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
25
25
 
26
+ /**
27
+ * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
28
+ */
29
+ export const Display = {
30
+ Summarized: "summarized",
31
+ Omitted: "omitted",
32
+ Updates: "updates",
33
+ } as const;
34
+ /**
35
+ * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
36
+ */
37
+ export type Display = ClosedEnum<typeof Display>;
38
+
26
39
  /**
27
40
  * Enables the thinking mode capability
28
41
  */
@@ -39,6 +52,10 @@ export type ThinkingConfigEnabledSchema = {
39
52
  * The level of reasoning the model should use. This setting is supported only by `gemini-3` models. If budget_tokens is specified and `thinking_level` is available, `budget_tokens` will be ignored.
40
53
  */
41
54
  thinkingLevel?: ThinkingLevel | undefined;
55
+ /**
56
+ * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
57
+ */
58
+ display?: Display | undefined;
42
59
  };
43
60
 
44
61
  /** @internal */
@@ -50,6 +67,13 @@ export const ThinkingLevel$outboundSchema: z.ZodNativeEnum<
50
67
  typeof ThinkingLevel
51
68
  > = ThinkingLevel$inboundSchema;
52
69
 
70
+ /** @internal */
71
+ export const Display$inboundSchema: z.ZodNativeEnum<typeof Display> = z
72
+ .nativeEnum(Display);
73
+ /** @internal */
74
+ export const Display$outboundSchema: z.ZodNativeEnum<typeof Display> =
75
+ Display$inboundSchema;
76
+
53
77
  /** @internal */
54
78
  export const ThinkingConfigEnabledSchema$inboundSchema: z.ZodType<
55
79
  ThinkingConfigEnabledSchema,
@@ -59,6 +83,7 @@ export const ThinkingConfigEnabledSchema$inboundSchema: z.ZodType<
59
83
  type: z.literal("enabled"),
60
84
  budget_tokens: z.number(),
61
85
  thinking_level: ThinkingLevel$inboundSchema.optional(),
86
+ display: Display$inboundSchema.optional(),
62
87
  }).transform((v) => {
63
88
  return remap$(v, {
64
89
  "budget_tokens": "budgetTokens",
@@ -70,6 +95,7 @@ export type ThinkingConfigEnabledSchema$Outbound = {
70
95
  type: "enabled";
71
96
  budget_tokens: number;
72
97
  thinking_level?: string | undefined;
98
+ display?: string | undefined;
73
99
  };
74
100
 
75
101
  /** @internal */
@@ -81,6 +107,7 @@ export const ThinkingConfigEnabledSchema$outboundSchema: z.ZodType<
81
107
  type: z.literal("enabled"),
82
108
  budgetTokens: z.number(),
83
109
  thinkingLevel: ThinkingLevel$outboundSchema.optional(),
110
+ display: Display$outboundSchema.optional(),
84
111
  }).transform((v) => {
85
112
  return remap$(v, {
86
113
  budgetTokens: "budget_tokens",
@@ -9,7 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  /**
10
10
  * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
11
11
  */
12
- export const Display = {
12
+ export const ThinkingParamDisplay = {
13
13
  Summarized: "summarized",
14
14
  Omitted: "omitted",
15
15
  Updates: "updates",
@@ -17,7 +17,7 @@ export const Display = {
17
17
  /**
18
18
  * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
19
19
  */
20
- export type Display = ClosedEnum<typeof Display>;
20
+ export type ThinkingParamDisplay = ClosedEnum<typeof ThinkingParamDisplay>;
21
21
 
22
22
  /**
23
23
  * The level of thinking to use for the model. Only supported by Google AI.
@@ -57,7 +57,7 @@ export type ThinkingParam = {
57
57
  /**
58
58
  * Controls how Anthropic thinking content appears in the response. Use updates for progress summaries on supported models.
59
59
  */
60
- display?: Display | undefined;
60
+ display?: ThinkingParamDisplay | undefined;
61
61
  /**
62
62
  * The level of thinking to use for the model. Only supported by Google AI.
63
63
  */
@@ -69,8 +69,9 @@ export type ThinkingParam = {
69
69
  };
70
70
 
71
71
  /** @internal */
72
- export const Display$outboundSchema: z.ZodNativeEnum<typeof Display> = z
73
- .nativeEnum(Display);
72
+ export const ThinkingParamDisplay$outboundSchema: z.ZodNativeEnum<
73
+ typeof ThinkingParamDisplay
74
+ > = z.nativeEnum(ThinkingParamDisplay);
74
75
 
75
76
  /** @internal */
76
77
  export const ThinkingParamThinkingLevel$outboundSchema: z.ZodNativeEnum<
@@ -97,7 +98,7 @@ export const ThinkingParam$outboundSchema: z.ZodType<
97
98
  ThinkingParam
98
99
  > = z.object({
99
100
  budgetTokens: z.nullable(z.number().int()),
100
- display: Display$outboundSchema.optional(),
101
+ display: ThinkingParamDisplay$outboundSchema.optional(),
101
102
  thinkingLevel: ThinkingParamThinkingLevel$outboundSchema.optional(),
102
103
  type: z.nullable(ThinkingParamType$outboundSchema),
103
104
  }).transform((v) => {
@@ -4,6 +4,11 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
+ import {
8
+ GuardrailRuleGuardrail,
9
+ GuardrailRuleGuardrail$Outbound,
10
+ GuardrailRuleGuardrail$outboundSchema,
11
+ } from "./guardrailruleguardrail.js";
7
12
  import {
8
13
  McpGatewayMode,
9
14
  McpGatewayMode$outboundSchema,
@@ -88,6 +93,10 @@ export type UpdateMcpGatewayRequest = {
88
93
  * Empty restores the default ORQ documentation website.
89
94
  */
90
95
  websiteUrl?: string | undefined;
96
+ /**
97
+ * Guardrails run on the arguments and result of every tool call this gateway serves.
98
+ */
99
+ guardrails?: Array<GuardrailRuleGuardrail> | undefined;
91
100
  };
92
101
 
93
102
  /** @internal */
@@ -106,6 +115,7 @@ export type UpdateMcpGatewayRequest$Outbound = {
106
115
  icons?: Array<McpIcon$Outbound> | undefined;
107
116
  replace_icons?: boolean | undefined;
108
117
  website_url?: string | undefined;
118
+ guardrails?: Array<GuardrailRuleGuardrail$Outbound> | undefined;
109
119
  };
110
120
 
111
121
  /** @internal */
@@ -128,6 +138,7 @@ export const UpdateMcpGatewayRequest$outboundSchema: z.ZodType<
128
138
  icons: z.array(McpIcon$outboundSchema).optional(),
129
139
  replaceIcons: z.boolean().optional(),
130
140
  websiteUrl: z.string().optional(),
141
+ guardrails: z.array(GuardrailRuleGuardrail$outboundSchema).optional(),
131
142
  }).transform((v) => {
132
143
  return remap$(v, {
133
144
  displayName: "display_name",
@@ -26,6 +26,7 @@ export type UpdateWorkspaceRequest = {
26
26
  enforceEnabledModels?: boolean | undefined;
27
27
  chatKit?: ChatKitResources | undefined;
28
28
  tracingEnabled?: boolean | undefined;
29
+ retentionPeriod?: number | undefined;
29
30
  };
30
31
 
31
32
  /** @internal */
@@ -58,6 +59,7 @@ export type UpdateWorkspaceRequest$Outbound = {
58
59
  enforce_enabled_models?: boolean | undefined;
59
60
  chat_kit?: ChatKitResources$Outbound | undefined;
60
61
  tracing_enabled?: boolean | undefined;
62
+ retention_period?: number | undefined;
61
63
  };
62
64
 
63
65
  /** @internal */
@@ -75,6 +77,7 @@ export const UpdateWorkspaceRequest$outboundSchema: z.ZodType<
75
77
  enforceEnabledModels: z.boolean().optional(),
76
78
  chatKit: ChatKitResources$outboundSchema.optional(),
77
79
  tracingEnabled: z.boolean().optional(),
80
+ retentionPeriod: z.number().int().optional(),
78
81
  }).transform((v) => {
79
82
  return remap$(v, {
80
83
  displayName: "display_name",
@@ -82,6 +85,7 @@ export const UpdateWorkspaceRequest$outboundSchema: z.ZodType<
82
85
  enforceEnabledModels: "enforce_enabled_models",
83
86
  chatKit: "chat_kit",
84
87
  tracingEnabled: "tracing_enabled",
88
+ retentionPeriod: "retention_period",
85
89
  });
86
90
  });
87
91
 
@@ -106,7 +106,8 @@ export type Stop = string | Array<string>;
106
106
  export type Thinking =
107
107
  | components.ThinkingConfigDisabledSchema
108
108
  | components.ThinkingConfigEnabledSchema
109
- | components.ThinkingConfigAdaptiveSchema;
109
+ | components.ThinkingConfigAdaptiveSchema
110
+ | components.ThinkingConfigBetweenToolsSchema;
110
111
 
111
112
  /**
112
113
  * The type of the tool. Currently, only function is supported.
@@ -373,6 +374,7 @@ export type ParametersT = {
373
374
  | components.ThinkingConfigDisabledSchema
374
375
  | components.ThinkingConfigEnabledSchema
375
376
  | components.ThinkingConfigAdaptiveSchema
377
+ | components.ThinkingConfigBetweenToolsSchema
376
378
  | undefined;
377
379
  /**
378
380
  * 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.
@@ -582,7 +584,8 @@ export type FallbackModelConfigurationStop = string | Array<string>;
582
584
  export type FallbackModelConfigurationThinking =
583
585
  | components.ThinkingConfigDisabledSchema
584
586
  | components.ThinkingConfigEnabledSchema
585
- | components.ThinkingConfigAdaptiveSchema;
587
+ | components.ThinkingConfigAdaptiveSchema
588
+ | components.ThinkingConfigBetweenToolsSchema;
586
589
 
587
590
  /**
588
591
  * The type of the tool. Currently, only function is supported.
@@ -870,6 +873,7 @@ export type FallbackModelConfigurationParameters = {
870
873
  | components.ThinkingConfigDisabledSchema
871
874
  | components.ThinkingConfigEnabledSchema
872
875
  | components.ThinkingConfigAdaptiveSchema
876
+ | components.ThinkingConfigBetweenToolsSchema
873
877
  | undefined;
874
878
  /**
875
879
  * 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.
@@ -1531,7 +1535,8 @@ export type CreateAgentRequestStop = string | Array<string>;
1531
1535
  export type CreateAgentRequestThinking =
1532
1536
  | components.ThinkingConfigDisabledSchema
1533
1537
  | components.ThinkingConfigEnabledSchema
1534
- | components.ThinkingConfigAdaptiveSchema;
1538
+ | components.ThinkingConfigAdaptiveSchema
1539
+ | components.ThinkingConfigBetweenToolsSchema;
1535
1540
 
1536
1541
  /**
1537
1542
  * The type of the tool. Currently, only function is supported.
@@ -1820,6 +1825,7 @@ export type CreateAgentRequestParameters = {
1820
1825
  | components.ThinkingConfigDisabledSchema
1821
1826
  | components.ThinkingConfigEnabledSchema
1822
1827
  | components.ThinkingConfigAdaptiveSchema
1828
+ | components.ThinkingConfigBetweenToolsSchema
1823
1829
  | undefined;
1824
1830
  /**
1825
1831
  * 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.
@@ -2013,7 +2019,8 @@ export type CreateAgentRequestFallbackModelConfigurationStop =
2013
2019
  export type CreateAgentRequestFallbackModelConfigurationThinking =
2014
2020
  | components.ThinkingConfigDisabledSchema
2015
2021
  | components.ThinkingConfigEnabledSchema
2016
- | components.ThinkingConfigAdaptiveSchema;
2022
+ | components.ThinkingConfigAdaptiveSchema
2023
+ | components.ThinkingConfigBetweenToolsSchema;
2017
2024
 
2018
2025
  /**
2019
2026
  * The type of the tool. Currently, only function is supported.
@@ -2308,6 +2315,7 @@ export type CreateAgentRequestFallbackModelConfigurationParameters = {
2308
2315
  | components.ThinkingConfigDisabledSchema
2309
2316
  | components.ThinkingConfigEnabledSchema
2310
2317
  | components.ThinkingConfigAdaptiveSchema
2318
+ | components.ThinkingConfigBetweenToolsSchema
2311
2319
  | undefined;
2312
2320
  /**
2313
2321
  * 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.
@@ -2651,7 +2659,8 @@ export function stopToJSON(stop: Stop): string {
2651
2659
  export type Thinking$Outbound =
2652
2660
  | components.ThinkingConfigDisabledSchema$Outbound
2653
2661
  | components.ThinkingConfigEnabledSchema$Outbound
2654
- | components.ThinkingConfigAdaptiveSchema$Outbound;
2662
+ | components.ThinkingConfigAdaptiveSchema$Outbound
2663
+ | components.ThinkingConfigBetweenToolsSchema$Outbound;
2655
2664
 
2656
2665
  /** @internal */
2657
2666
  export const Thinking$outboundSchema: z.ZodType<
@@ -2662,6 +2671,7 @@ export const Thinking$outboundSchema: z.ZodType<
2662
2671
  components.ThinkingConfigDisabledSchema$outboundSchema,
2663
2672
  components.ThinkingConfigEnabledSchema$outboundSchema,
2664
2673
  components.ThinkingConfigAdaptiveSchema$outboundSchema,
2674
+ components.ThinkingConfigBetweenToolsSchema$outboundSchema,
2665
2675
  ]);
2666
2676
 
2667
2677
  export function thinkingToJSON(thinking: Thinking): string {
@@ -2987,6 +2997,7 @@ export type ParametersT$Outbound = {
2987
2997
  | components.ThinkingConfigDisabledSchema$Outbound
2988
2998
  | components.ThinkingConfigEnabledSchema$Outbound
2989
2999
  | components.ThinkingConfigAdaptiveSchema$Outbound
3000
+ | components.ThinkingConfigBetweenToolsSchema$Outbound
2990
3001
  | undefined;
2991
3002
  temperature?: number | null | undefined;
2992
3003
  top_p?: number | null | undefined;
@@ -3035,6 +3046,7 @@ export const ParametersT$outboundSchema: z.ZodType<
3035
3046
  components.ThinkingConfigDisabledSchema$outboundSchema,
3036
3047
  components.ThinkingConfigEnabledSchema$outboundSchema,
3037
3048
  components.ThinkingConfigAdaptiveSchema$outboundSchema,
3049
+ components.ThinkingConfigBetweenToolsSchema$outboundSchema,
3038
3050
  ]).optional(),
3039
3051
  temperature: z.nullable(z.number()).optional(),
3040
3052
  topP: z.nullable(z.number()).optional(),
@@ -3321,7 +3333,8 @@ export function fallbackModelConfigurationStopToJSON(
3321
3333
  export type FallbackModelConfigurationThinking$Outbound =
3322
3334
  | components.ThinkingConfigDisabledSchema$Outbound
3323
3335
  | components.ThinkingConfigEnabledSchema$Outbound
3324
- | components.ThinkingConfigAdaptiveSchema$Outbound;
3336
+ | components.ThinkingConfigAdaptiveSchema$Outbound
3337
+ | components.ThinkingConfigBetweenToolsSchema$Outbound;
3325
3338
 
3326
3339
  /** @internal */
3327
3340
  export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
@@ -3332,6 +3345,7 @@ export const FallbackModelConfigurationThinking$outboundSchema: z.ZodType<
3332
3345
  components.ThinkingConfigDisabledSchema$outboundSchema,
3333
3346
  components.ThinkingConfigEnabledSchema$outboundSchema,
3334
3347
  components.ThinkingConfigAdaptiveSchema$outboundSchema,
3348
+ components.ThinkingConfigBetweenToolsSchema$outboundSchema,
3335
3349
  ]);
3336
3350
 
3337
3351
  export function fallbackModelConfigurationThinkingToJSON(
@@ -3742,6 +3756,7 @@ export type FallbackModelConfigurationParameters$Outbound = {
3742
3756
  | components.ThinkingConfigDisabledSchema$Outbound
3743
3757
  | components.ThinkingConfigEnabledSchema$Outbound
3744
3758
  | components.ThinkingConfigAdaptiveSchema$Outbound
3759
+ | components.ThinkingConfigBetweenToolsSchema$Outbound
3745
3760
  | undefined;
3746
3761
  temperature?: number | null | undefined;
3747
3762
  top_p?: number | null | undefined;
@@ -3791,6 +3806,7 @@ export const FallbackModelConfigurationParameters$outboundSchema: z.ZodType<
3791
3806
  components.ThinkingConfigDisabledSchema$outboundSchema,
3792
3807
  components.ThinkingConfigEnabledSchema$outboundSchema,
3793
3808
  components.ThinkingConfigAdaptiveSchema$outboundSchema,
3809
+ components.ThinkingConfigBetweenToolsSchema$outboundSchema,
3794
3810
  ]).optional(),
3795
3811
  temperature: z.nullable(z.number()).optional(),
3796
3812
  topP: z.nullable(z.number()).optional(),
@@ -4617,6 +4633,7 @@ export const CreateAgentRequestThinking$inboundSchema: z.ZodType<
4617
4633
  components.ThinkingConfigDisabledSchema$inboundSchema,
4618
4634
  components.ThinkingConfigEnabledSchema$inboundSchema,
4619
4635
  components.ThinkingConfigAdaptiveSchema$inboundSchema,
4636
+ components.ThinkingConfigBetweenToolsSchema$inboundSchema,
4620
4637
  ]);
4621
4638
 
4622
4639
  export function createAgentRequestThinkingFromJSON(
@@ -4981,6 +4998,7 @@ export const CreateAgentRequestParameters$inboundSchema: z.ZodType<
4981
4998
  components.ThinkingConfigDisabledSchema$inboundSchema,
4982
4999
  components.ThinkingConfigEnabledSchema$inboundSchema,
4983
5000
  components.ThinkingConfigAdaptiveSchema$inboundSchema,
5001
+ components.ThinkingConfigBetweenToolsSchema$inboundSchema,
4984
5002
  ]).optional(),
4985
5003
  temperature: z.nullable(z.number()).optional(),
4986
5004
  top_p: z.nullable(z.number()).optional(),
@@ -5248,6 +5266,7 @@ export const CreateAgentRequestFallbackModelConfigurationThinking$inboundSchema:
5248
5266
  components.ThinkingConfigDisabledSchema$inboundSchema,
5249
5267
  components.ThinkingConfigEnabledSchema$inboundSchema,
5250
5268
  components.ThinkingConfigAdaptiveSchema$inboundSchema,
5269
+ components.ThinkingConfigBetweenToolsSchema$inboundSchema,
5251
5270
  ]);
5252
5271
 
5253
5272
  export function createAgentRequestFallbackModelConfigurationThinkingFromJSON(
@@ -5706,6 +5725,7 @@ export const CreateAgentRequestFallbackModelConfigurationParameters$inboundSchem
5706
5725
  components.ThinkingConfigDisabledSchema$inboundSchema,
5707
5726
  components.ThinkingConfigEnabledSchema$inboundSchema,
5708
5727
  components.ThinkingConfigAdaptiveSchema$inboundSchema,
5728
+ components.ThinkingConfigBetweenToolsSchema$inboundSchema,
5709
5729
  ]).optional(),
5710
5730
  temperature: z.nullable(z.number()).optional(),
5711
5731
  top_p: z.nullable(z.number()).optional(),
@@ -548,7 +548,8 @@ export type CreateChatCompletionStreamOptions = {
548
548
  export type CreateChatCompletionThinking =
549
549
  | components.ThinkingConfigDisabledSchema
550
550
  | components.ThinkingConfigEnabledSchema
551
- | components.ThinkingConfigAdaptiveSchema;
551
+ | components.ThinkingConfigAdaptiveSchema
552
+ | components.ThinkingConfigBetweenToolsSchema;
552
553
 
553
554
  /**
554
555
  * The type of the tool. Currently, only function is supported.
@@ -1560,6 +1561,7 @@ export type CreateChatCompletionRequestBody = {
1560
1561
  | components.ThinkingConfigDisabledSchema
1561
1562
  | components.ThinkingConfigEnabledSchema
1562
1563
  | components.ThinkingConfigAdaptiveSchema
1564
+ | components.ThinkingConfigBetweenToolsSchema
1563
1565
  | undefined;
1564
1566
  /**
1565
1567
  * 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.
@@ -3266,7 +3268,8 @@ export function createChatCompletionStreamOptionsToJSON(
3266
3268
  export type CreateChatCompletionThinking$Outbound =
3267
3269
  | components.ThinkingConfigDisabledSchema$Outbound
3268
3270
  | components.ThinkingConfigEnabledSchema$Outbound
3269
- | components.ThinkingConfigAdaptiveSchema$Outbound;
3271
+ | components.ThinkingConfigAdaptiveSchema$Outbound
3272
+ | components.ThinkingConfigBetweenToolsSchema$Outbound;
3270
3273
 
3271
3274
  /** @internal */
3272
3275
  export const CreateChatCompletionThinking$outboundSchema: z.ZodType<
@@ -3277,6 +3280,7 @@ export const CreateChatCompletionThinking$outboundSchema: z.ZodType<
3277
3280
  components.ThinkingConfigDisabledSchema$outboundSchema,
3278
3281
  components.ThinkingConfigEnabledSchema$outboundSchema,
3279
3282
  components.ThinkingConfigAdaptiveSchema$outboundSchema,
3283
+ components.ThinkingConfigBetweenToolsSchema$outboundSchema,
3280
3284
  ]);
3281
3285
 
3282
3286
  export function createChatCompletionThinkingToJSON(
@@ -5416,6 +5420,7 @@ export type CreateChatCompletionRequestBody$Outbound = {
5416
5420
  | components.ThinkingConfigDisabledSchema$Outbound
5417
5421
  | components.ThinkingConfigEnabledSchema$Outbound
5418
5422
  | components.ThinkingConfigAdaptiveSchema$Outbound
5423
+ | components.ThinkingConfigBetweenToolsSchema$Outbound
5419
5424
  | undefined;
5420
5425
  temperature?: number | null | undefined;
5421
5426
  top_p?: number | null | undefined;
@@ -5491,6 +5496,7 @@ export const CreateChatCompletionRequestBody$outboundSchema: z.ZodType<
5491
5496
  components.ThinkingConfigDisabledSchema$outboundSchema,
5492
5497
  components.ThinkingConfigEnabledSchema$outboundSchema,
5493
5498
  components.ThinkingConfigAdaptiveSchema$outboundSchema,
5499
+ components.ThinkingConfigBetweenToolsSchema$outboundSchema,
5494
5500
  ]).optional(),
5495
5501
  temperature: z.nullable(z.number()).optional(),
5496
5502
  topP: z.nullable(z.number()).optional(),
@@ -10,7 +10,7 @@ import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
12
  /**
13
- * The evaluation prompt for this question. A string, an object or an array.
13
+ * The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
14
14
  */
15
15
  export type CreateClassifyQuestionsRouterClassifyInstructions = string | {
16
16
  [k: string]: any;
@@ -21,14 +21,14 @@ export type CreateClassifyQuestionsRouterClassifyInstructions = string | {
21
21
  */
22
22
  export type BoxQuestion = {
23
23
  /**
24
- * The evaluation prompt for this question. A string, an object or an array.
24
+ * The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
25
25
  */
26
26
  instructions: string | { [k: string]: any } | Array<any>;
27
27
  type: "box";
28
28
  };
29
29
 
30
30
  /**
31
- * The evaluation prompt for this question. A string, an object or an array.
31
+ * The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
32
32
  */
33
33
  export type CreateClassifyQuestionsInstructions =
34
34
  | string
@@ -44,7 +44,7 @@ export type ScoreQuestion = {
44
44
  */
45
45
  criteria: Array<any>;
46
46
  /**
47
- * The evaluation prompt for this question. A string, an object or an array.
47
+ * The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
48
48
  */
49
49
  instructions: string | { [k: string]: any } | Array<any>;
50
50
  type: "score";
@@ -56,7 +56,7 @@ export type ScoreQuestion = {
56
56
  export type QuestionsCriteria = string | { [k: string]: any } | Array<any>;
57
57
 
58
58
  /**
59
- * The evaluation prompt for this question. A string, an object or an array.
59
+ * The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
60
60
  */
61
61
  export type QuestionsInstructions = string | { [k: string]: any } | Array<any>;
62
62
 
@@ -69,7 +69,7 @@ export type ChoiceQuestion = {
69
69
  */
70
70
  criteria: { [k: string]: string | { [k: string]: any } | Array<any> | null };
71
71
  /**
72
- * The evaluation prompt for this question. A string, an object or an array.
72
+ * The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
73
73
  */
74
74
  instructions: string | { [k: string]: any } | Array<any>;
75
75
  type: "choice";
@@ -100,7 +100,7 @@ export type Criteria = {
100
100
  };
101
101
 
102
102
  /**
103
- * The evaluation prompt for this question. A string, an object or an array.
103
+ * The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
104
104
  */
105
105
  export type Instructions = string | { [k: string]: any } | Array<any>;
106
106
 
@@ -113,7 +113,7 @@ export type NoulQuestion = {
113
113
  */
114
114
  criteria?: Criteria | undefined;
115
115
  /**
116
- * The evaluation prompt for this question. A string, an object or an array.
116
+ * The evaluation prompt for this question. A string, an object or an array. Native OpenAI also accepts arrays of input_text, input_image and input_json parts. Question parts cannot contain prompt cache breakpoints.
117
117
  */
118
118
  instructions: string | { [k: string]: any } | Array<any>;
119
119
  type: "noul";
@@ -126,7 +126,7 @@ export type Questions =
126
126
  | BoxQuestion;
127
127
 
128
128
  /**
129
- * The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
129
+ * The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. Native OpenAI accepts messages and function/custom-tool history. User messages support input_text, input_image and input_json; images can use inline base64 data URLs or public HTTP(S) URLs. At most 128 images across state and question instructions. Shared text/image parts support explicit prompt_cache_breakpoint markers. File IDs, audio, item references and bare content parts are unsupported. Other objects and arrays are serialized as text.
130
130
  */
131
131
  export type State = string | { [k: string]: any } | Array<any>;
132
132
 
@@ -158,14 +158,19 @@ export type CreateClassifyRequestBody = {
158
158
  */
159
159
  name?: string | undefined;
160
160
  /**
161
- * Typed questions keyed by an identifier of your choice. Each answer is returned under the same key.
161
+ * Native OpenAI only. Partitions reuse of shared input across requests.
162
+ */
163
+ promptCacheKey?: string | undefined;
164
+ promptCacheOptions?: components.ClassifyPromptCacheOptions | undefined;
165
+ /**
166
+ * Typed questions keyed by an identifier of your choice. Each answer is returned under the same key. Native OpenAI accepts 1 to 400 questions.
162
167
  */
163
168
  questions: {
164
169
  [k: string]: NoulQuestion | ChoiceQuestion | ScoreQuestion | BoxQuestion;
165
170
  };
166
171
  retry?: components.ClassifyRetryConfig | undefined;
167
172
  /**
168
- * The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. For OpenAI GPT-6 Luna, strings are passed as text and objects or ordinary JSON arrays are serialized as text. User-message arrays accept string content or input_text/input_image parts. Images must be inline base64 data URLs, with at most 128 images across the request. Remote image URLs, file IDs, audio, non-user roles, bare content parts and tool items are rejected.
173
+ * The content to evaluate. A string, an object or an array. For TypeSafe models, reference images declared in assets by writing their reference string. Native OpenAI accepts messages and function/custom-tool history. User messages support input_text, input_image and input_json; images can use inline base64 data URLs or public HTTP(S) URLs. At most 128 images across state and question instructions. Shared text/image parts support explicit prompt_cache_breakpoint markers. File IDs, audio, item references and bare content parts are unsupported. Other objects and arrays are serialized as text.
169
174
  */
170
175
  state: string | { [k: string]: any } | Array<any>;
171
176
  timeout?: components.ClassifyTimeoutConfig | undefined;
@@ -470,6 +475,10 @@ export type CreateClassifyRequestBody$Outbound = {
470
475
  metadata?: { [k: string]: string } | undefined;
471
476
  model: string;
472
477
  name?: string | undefined;
478
+ prompt_cache_key?: string | undefined;
479
+ prompt_cache_options?:
480
+ | components.ClassifyPromptCacheOptions$Outbound
481
+ | undefined;
473
482
  questions: {
474
483
  [k: string]:
475
484
  | NoulQuestion$Outbound
@@ -497,6 +506,9 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
497
506
  metadata: z.record(z.string()).optional(),
498
507
  model: z.string(),
499
508
  name: z.string().optional(),
509
+ promptCacheKey: z.string().optional(),
510
+ promptCacheOptions: components.ClassifyPromptCacheOptions$outboundSchema
511
+ .optional(),
500
512
  questions: z.record(
501
513
  z.union([
502
514
  z.lazy(() => NoulQuestion$outboundSchema),
@@ -511,6 +523,8 @@ export const CreateClassifyRequestBody$outboundSchema: z.ZodType<
511
523
  }).transform((v) => {
512
524
  return remap$(v, {
513
525
  fallbackOnCodes: "fallback_on_codes",
526
+ promptCacheKey: "prompt_cache_key",
527
+ promptCacheOptions: "prompt_cache_options",
514
528
  });
515
529
  });
516
530