@openrouter/sdk 0.0.1-beta.11 → 0.0.1-beta.12

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 (197) hide show
  1. package/FUNCTIONS.md +110 -1
  2. package/REACT_QUERY.md +110 -1
  3. package/README.md +682 -14
  4. package/esm/funcs/analyticsGetUserActivity.d.ts +1 -1
  5. package/esm/funcs/analyticsGetUserActivity.js +2 -2
  6. package/esm/funcs/apiKeysCreate.d.ts +1 -1
  7. package/esm/funcs/apiKeysCreate.js +2 -2
  8. package/esm/funcs/apiKeysDelete.d.ts +1 -1
  9. package/esm/funcs/apiKeysDelete.js +2 -2
  10. package/esm/funcs/apiKeysGet.d.ts +1 -1
  11. package/esm/funcs/apiKeysGet.js +2 -2
  12. package/esm/funcs/apiKeysGetCurrentKeyMetadata.d.ts +1 -1
  13. package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -2
  14. package/esm/funcs/apiKeysList.d.ts +1 -1
  15. package/esm/funcs/apiKeysList.js +2 -2
  16. package/esm/funcs/apiKeysUpdate.d.ts +1 -1
  17. package/esm/funcs/apiKeysUpdate.js +2 -2
  18. package/esm/funcs/betaResponsesSend.d.ts +9 -1
  19. package/esm/funcs/betaResponsesSend.js +36 -12
  20. package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +1 -1
  21. package/esm/funcs/creditsCreateCoinbaseCharge.js +15 -5
  22. package/esm/funcs/creditsGetCredits.d.ts +1 -1
  23. package/esm/funcs/creditsGetCredits.js +2 -2
  24. package/esm/funcs/endpointsList.d.ts +1 -1
  25. package/esm/funcs/endpointsList.js +2 -2
  26. package/esm/funcs/endpointsListZdrEndpoints.d.ts +2 -1
  27. package/esm/funcs/endpointsListZdrEndpoints.js +6 -2
  28. package/esm/funcs/generationsGetGeneration.d.ts +1 -1
  29. package/esm/funcs/generationsGetGeneration.js +13 -2
  30. package/esm/funcs/modelsCount.d.ts +3 -2
  31. package/esm/funcs/modelsCount.js +7 -3
  32. package/esm/funcs/modelsList.d.ts +2 -1
  33. package/esm/funcs/modelsList.js +6 -2
  34. package/esm/funcs/modelsListForUser.d.ts +3 -1
  35. package/esm/funcs/modelsListForUser.js +7 -3
  36. package/esm/funcs/parametersGetParameters.d.ts +1 -1
  37. package/esm/funcs/parametersGetParameters.js +2 -2
  38. package/esm/funcs/providersList.d.ts +1 -1
  39. package/esm/funcs/providersList.js +1 -1
  40. package/esm/lib/config.d.ts +2 -2
  41. package/esm/lib/config.js +2 -2
  42. package/esm/models/badgatewayresponseerrordata.d.ts +40 -0
  43. package/esm/models/badgatewayresponseerrordata.js +35 -0
  44. package/esm/models/badrequestresponseerrordata.d.ts +40 -0
  45. package/esm/models/badrequestresponseerrordata.js +35 -0
  46. package/esm/models/chatmessagecontentitemaudio.d.ts +10 -10
  47. package/esm/models/chatmessagecontentitemaudio.js +14 -14
  48. package/esm/models/chatstreamingresponsechunk.d.ts +15 -15
  49. package/esm/models/chatstreamingresponsechunk.js +15 -15
  50. package/esm/models/createchargerequest.d.ts +31 -2
  51. package/esm/models/createchargerequest.js +47 -2
  52. package/esm/models/defaultparameters.d.ts +36 -0
  53. package/esm/models/defaultparameters.js +46 -0
  54. package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +40 -0
  55. package/esm/models/edgenetworktimeoutresponseerrordata.js +35 -0
  56. package/esm/models/endpointstatus.d.ts +26 -0
  57. package/esm/models/endpointstatus.js +36 -0
  58. package/esm/models/errors/badgatewayresponseerror.d.ts +52 -0
  59. package/esm/models/errors/badgatewayresponseerror.js +63 -0
  60. package/esm/models/errors/badrequestresponseerror.d.ts +52 -0
  61. package/esm/models/errors/badrequestresponseerror.js +63 -0
  62. package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +52 -0
  63. package/esm/models/errors/edgenetworktimeoutresponseerror.js +63 -0
  64. package/esm/models/errors/forbiddenresponseerror.d.ts +52 -0
  65. package/esm/models/errors/forbiddenresponseerror.js +63 -0
  66. package/esm/models/errors/index.d.ts +14 -2
  67. package/esm/models/errors/index.js +14 -2
  68. package/esm/models/errors/internalserverresponseerror.d.ts +52 -0
  69. package/esm/models/errors/internalserverresponseerror.js +63 -0
  70. package/esm/models/errors/notfoundresponseerror.d.ts +52 -0
  71. package/esm/models/errors/{errorresponse.js → notfoundresponseerror.js} +16 -17
  72. package/esm/models/errors/payloadtoolargeresponseerror.d.ts +52 -0
  73. package/esm/models/errors/payloadtoolargeresponseerror.js +63 -0
  74. package/esm/models/errors/paymentrequiredresponseerror.d.ts +52 -0
  75. package/esm/models/errors/paymentrequiredresponseerror.js +63 -0
  76. package/esm/models/errors/provideroverloadedresponseerror.d.ts +52 -0
  77. package/esm/models/errors/provideroverloadedresponseerror.js +63 -0
  78. package/esm/models/errors/requesttimeoutresponseerror.d.ts +52 -0
  79. package/esm/models/errors/requesttimeoutresponseerror.js +63 -0
  80. package/esm/models/errors/serviceunavailableresponseerror.d.ts +52 -0
  81. package/esm/models/errors/serviceunavailableresponseerror.js +63 -0
  82. package/esm/models/errors/toomanyrequestsresponseerror.d.ts +52 -0
  83. package/esm/models/errors/toomanyrequestsresponseerror.js +63 -0
  84. package/esm/models/errors/unauthorizedresponseerror.d.ts +52 -0
  85. package/esm/models/errors/unauthorizedresponseerror.js +63 -0
  86. package/esm/models/errors/unprocessableentityresponseerror.d.ts +52 -0
  87. package/esm/models/errors/unprocessableentityresponseerror.js +63 -0
  88. package/esm/models/forbiddenresponseerrordata.d.ts +40 -0
  89. package/esm/models/forbiddenresponseerrordata.js +35 -0
  90. package/esm/models/index.d.ts +37 -1
  91. package/esm/models/index.js +37 -1
  92. package/esm/models/inputmodality.d.ts +24 -0
  93. package/esm/models/inputmodality.js +34 -0
  94. package/esm/models/instructtype.d.ts +48 -0
  95. package/esm/models/instructtype.js +55 -0
  96. package/esm/models/internalserverresponseerrordata.d.ts +40 -0
  97. package/esm/models/internalserverresponseerrordata.js +35 -0
  98. package/esm/models/listendpointsresponse.d.ts +126 -2
  99. package/esm/models/listendpointsresponse.js +115 -2
  100. package/esm/models/model.d.ts +101 -0
  101. package/esm/models/model.js +82 -0
  102. package/esm/models/modelarchitecture.d.ts +104 -0
  103. package/esm/models/modelarchitecture.js +107 -0
  104. package/esm/models/modelgroup.d.ts +45 -0
  105. package/esm/models/modelgroup.js +53 -0
  106. package/esm/models/modelscountresponse.d.ts +40 -2
  107. package/esm/models/modelscountresponse.js +31 -2
  108. package/esm/models/modelslistresponse.d.ts +10 -2
  109. package/esm/models/modelslistresponse.js +7 -2
  110. package/esm/models/notfoundresponseerrordata.d.ts +40 -0
  111. package/esm/models/notfoundresponseerrordata.js +35 -0
  112. package/esm/models/openairesponsesincludable.d.ts +25 -0
  113. package/esm/models/openairesponsesincludable.js +35 -0
  114. package/esm/models/openairesponsesinputunion.d.ts +78 -78
  115. package/esm/models/openairesponsesinputunion.js +124 -126
  116. package/esm/models/openresponseseasyinputmessage.d.ts +246 -0
  117. package/esm/models/openresponseseasyinputmessage.js +283 -0
  118. package/esm/models/openresponsesfunctioncalloutput.d.ts +64 -0
  119. package/esm/models/openresponsesfunctioncalloutput.js +67 -0
  120. package/esm/models/openresponsesfunctiontoolcall.d.ts +66 -0
  121. package/esm/models/openresponsesfunctiontoolcall.js +69 -0
  122. package/esm/models/openresponsesinput.d.ts +60 -0
  123. package/esm/models/openresponsesinput.js +113 -0
  124. package/esm/models/openresponsesinputmessageitem.d.ts +193 -0
  125. package/esm/models/openresponsesinputmessageitem.js +210 -0
  126. package/esm/models/openresponsesnonstreamingresponse.d.ts +13 -13
  127. package/esm/models/openresponsesnonstreamingresponse.js +13 -13
  128. package/esm/models/openresponsesreasoning.d.ts +179 -0
  129. package/esm/models/openresponsesreasoning.js +194 -0
  130. package/esm/models/openresponsesreasoningconfig.d.ts +40 -0
  131. package/esm/models/openresponsesreasoningconfig.js +48 -0
  132. package/esm/models/openresponsesrequest.d.ts +736 -2
  133. package/esm/models/openresponsesrequest.js +789 -2
  134. package/esm/models/openresponsesresponsetext.d.ts +59 -0
  135. package/esm/models/openresponsesresponsetext.js +64 -0
  136. package/esm/models/operations/createapialpharesponses.d.ts +3 -3
  137. package/esm/models/operations/createapialpharesponses.js +0 -2
  138. package/esm/models/operations/getmodels.d.ts +2 -2
  139. package/esm/models/operations/getmodels.js +2 -10
  140. package/esm/models/operations/index.d.ts +0 -1
  141. package/esm/models/operations/index.js +0 -1
  142. package/esm/models/operations/listendpointszdr.d.ts +3 -24
  143. package/esm/models/operations/listendpointszdr.js +2 -29
  144. package/esm/models/operations/listmodelsuser.d.ts +0 -22
  145. package/esm/models/operations/listmodelsuser.js +0 -28
  146. package/esm/models/operations/listproviders.d.ts +0 -36
  147. package/esm/models/operations/listproviders.js +0 -28
  148. package/esm/models/outputmodality.d.ts +23 -0
  149. package/esm/models/outputmodality.js +33 -0
  150. package/esm/models/parameter.d.ts +43 -0
  151. package/esm/models/parameter.js +54 -0
  152. package/esm/models/payloadtoolargeresponseerrordata.d.ts +40 -0
  153. package/esm/models/payloadtoolargeresponseerrordata.js +35 -0
  154. package/esm/models/paymentrequiredresponseerrordata.d.ts +40 -0
  155. package/esm/models/paymentrequiredresponseerrordata.js +35 -0
  156. package/esm/models/perrequestlimits.d.ts +40 -0
  157. package/esm/models/perrequestlimits.js +44 -0
  158. package/esm/models/providername.d.ts +106 -0
  159. package/esm/models/providername.js +116 -0
  160. package/esm/models/provideroverloadedresponseerrordata.d.ts +40 -0
  161. package/esm/models/provideroverloadedresponseerrordata.js +35 -0
  162. package/esm/models/publicendpoint.d.ts +140 -2
  163. package/esm/models/publicendpoint.js +156 -2
  164. package/esm/models/publicpricing.d.ts +87 -0
  165. package/esm/models/publicpricing.js +73 -0
  166. package/esm/models/quantization.d.ts +29 -0
  167. package/esm/models/quantization.js +39 -0
  168. package/esm/models/requesttimeoutresponseerrordata.d.ts +40 -0
  169. package/esm/models/requesttimeoutresponseerrordata.js +35 -0
  170. package/esm/models/responseserrorfield.d.ts +10 -10
  171. package/esm/models/responseserrorfield.js +14 -14
  172. package/esm/models/responsetextconfig.d.ts +10 -10
  173. package/esm/models/responsetextconfig.js +14 -15
  174. package/esm/models/serviceunavailableresponseerrordata.d.ts +40 -0
  175. package/esm/models/serviceunavailableresponseerrordata.js +35 -0
  176. package/esm/models/toomanyrequestsresponseerrordata.d.ts +40 -0
  177. package/esm/models/toomanyrequestsresponseerrordata.js +35 -0
  178. package/esm/models/topproviderinfo.d.ts +45 -0
  179. package/esm/models/topproviderinfo.js +48 -0
  180. package/esm/models/unauthorizedresponseerrordata.d.ts +40 -0
  181. package/esm/models/unauthorizedresponseerrordata.js +35 -0
  182. package/esm/models/unprocessableentityresponseerrordata.d.ts +40 -0
  183. package/esm/models/unprocessableentityresponseerrordata.js +35 -0
  184. package/esm/react-query/modelsCount.d.ts +2 -2
  185. package/esm/react-query/modelsListForUser.d.ts +2 -1
  186. package/esm/sdk/models.d.ts +3 -2
  187. package/esm/sdk/responses.d.ts +7 -0
  188. package/esm/sdk/responses.js +0 -6
  189. package/jsr.json +1 -1
  190. package/package.json +1 -1
  191. package/esm/models/errorresponse.d.ts +0 -155
  192. package/esm/models/errorresponse.js +0 -167
  193. package/esm/models/errors/errorresponse.d.ts +0 -46
  194. package/esm/models/errors/listproviders.d.ts +0 -49
  195. package/esm/models/errors/listproviders.js +0 -51
  196. package/esm/models/operations/listmodelscount.d.ts +0 -26
  197. package/esm/models/operations/listmodelscount.js +0 -34
@@ -1,14 +1,748 @@
1
1
  import * as z from "zod/v4";
2
+ import { ClosedEnum, OpenEnum } from "../types/enums.js";
2
3
  import { Result as SafeParseResult } from "../types/fp.js";
3
4
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ import { OpenAIResponsesIncludable } from "./openairesponsesincludable.js";
6
+ import { OpenAIResponsesPrompt, OpenAIResponsesPrompt$Outbound } from "./openairesponsesprompt.js";
7
+ import { OpenAIResponsesToolChoiceUnion, OpenAIResponsesToolChoiceUnion$Outbound } from "./openairesponsestoolchoiceunion.js";
8
+ import { OpenResponsesInput, OpenResponsesInput$Outbound } from "./openresponsesinput.js";
9
+ import { OpenResponsesReasoningConfig, OpenResponsesReasoningConfig$Outbound } from "./openresponsesreasoningconfig.js";
10
+ import { OpenResponsesResponseText, OpenResponsesResponseText$Outbound } from "./openresponsesresponsetext.js";
11
+ import { OpenResponsesWebSearch20250826Tool, OpenResponsesWebSearch20250826Tool$Outbound } from "./openresponseswebsearch20250826tool.js";
12
+ import { OpenResponsesWebSearchPreview20250311Tool, OpenResponsesWebSearchPreview20250311Tool$Outbound } from "./openresponseswebsearchpreview20250311tool.js";
13
+ import { OpenResponsesWebSearchPreviewTool, OpenResponsesWebSearchPreviewTool$Outbound } from "./openresponseswebsearchpreviewtool.js";
14
+ import { OpenResponsesWebSearchTool, OpenResponsesWebSearchTool$Outbound } from "./openresponseswebsearchtool.js";
15
+ import { ProviderName } from "./providername.js";
16
+ import { Quantization } from "./quantization.js";
17
+ export declare const OpenResponsesRequestType: {
18
+ readonly Function: "function";
19
+ };
20
+ export type OpenResponsesRequestType = ClosedEnum<typeof OpenResponsesRequestType>;
21
+ /**
22
+ * Function tool definition
23
+ */
24
+ export type OpenResponsesRequestToolFunction = {
25
+ type: OpenResponsesRequestType;
26
+ name: string;
27
+ description?: string | null | undefined;
28
+ strict?: boolean | null | undefined;
29
+ parameters: {
30
+ [k: string]: any | null;
31
+ } | null;
32
+ };
33
+ export type OpenResponsesRequestToolUnion = OpenResponsesRequestToolFunction | OpenResponsesWebSearchPreviewTool | OpenResponsesWebSearchPreview20250311Tool | OpenResponsesWebSearchTool | OpenResponsesWebSearch20250826Tool;
34
+ export declare const ServiceTier: {
35
+ readonly Auto: "auto";
36
+ readonly Default: "default";
37
+ readonly Flex: "flex";
38
+ readonly Priority: "priority";
39
+ readonly Scale: "scale";
40
+ };
41
+ export type ServiceTier = OpenEnum<typeof ServiceTier>;
42
+ export declare const Truncation: {
43
+ readonly Auto: "auto";
44
+ readonly Disabled: "disabled";
45
+ };
46
+ export type Truncation = OpenEnum<typeof Truncation>;
47
+ /**
48
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
49
+ *
50
+ * @remarks
51
+ * - allow: (default) allow providers which store user data non-transiently and may train on it
52
+ * - deny: use only providers which do not collect user data.
53
+ */
54
+ export declare const DataCollection: {
55
+ readonly Deny: "deny";
56
+ readonly Allow: "allow";
57
+ };
58
+ /**
59
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
60
+ *
61
+ * @remarks
62
+ * - allow: (default) allow providers which store user data non-transiently and may train on it
63
+ * - deny: use only providers which do not collect user data.
64
+ */
65
+ export type DataCollection = OpenEnum<typeof DataCollection>;
66
+ export type Order = ProviderName | string;
67
+ export type Only = ProviderName | string;
68
+ export type Ignore = ProviderName | string;
69
+ /**
70
+ * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
71
+ */
72
+ export declare const Sort: {
73
+ readonly Price: "price";
74
+ readonly Throughput: "throughput";
75
+ readonly Latency: "latency";
76
+ };
77
+ /**
78
+ * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
79
+ */
80
+ export type Sort = OpenEnum<typeof Sort>;
81
+ /**
82
+ * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
83
+ */
84
+ export type MaxPrice = {
85
+ /**
86
+ * A value in string or number format that is a large number
87
+ */
88
+ prompt?: any | undefined;
89
+ /**
90
+ * A value in string or number format that is a large number
91
+ */
92
+ completion?: any | undefined;
93
+ /**
94
+ * A value in string or number format that is a large number
95
+ */
96
+ image?: any | undefined;
97
+ /**
98
+ * A value in string or number format that is a large number
99
+ */
100
+ audio?: any | undefined;
101
+ /**
102
+ * A value in string or number format that is a large number
103
+ */
104
+ request?: any | undefined;
105
+ };
106
+ export type Experimental = {};
107
+ /**
108
+ * When multiple model providers are available, optionally indicate your routing preference.
109
+ */
110
+ export type Provider = {
111
+ /**
112
+ * Whether to allow backup providers to serve requests
113
+ *
114
+ * @remarks
115
+ * - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.
116
+ * - false: use only the primary/custom provider, and return the upstream error if it's unavailable.
117
+ */
118
+ allowFallbacks?: boolean | null | undefined;
119
+ /**
120
+ * Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest.
121
+ */
122
+ requireParameters?: boolean | null | undefined;
123
+ /**
124
+ * Data collection setting. If no available model provider meets the requirement, your request will return an error.
125
+ *
126
+ * @remarks
127
+ * - allow: (default) allow providers which store user data non-transiently and may train on it
128
+ * - deny: use only providers which do not collect user data.
129
+ */
130
+ dataCollection?: DataCollection | null | undefined;
131
+ /**
132
+ * Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.
133
+ */
134
+ zdr?: boolean | null | undefined;
135
+ /**
136
+ * An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.
137
+ */
138
+ order?: Array<ProviderName | string> | null | undefined;
139
+ /**
140
+ * List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.
141
+ */
142
+ only?: Array<ProviderName | string> | null | undefined;
143
+ /**
144
+ * List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.
145
+ */
146
+ ignore?: Array<ProviderName | string> | null | undefined;
147
+ /**
148
+ * A list of quantization levels to filter the provider by.
149
+ */
150
+ quantizations?: Array<Quantization> | null | undefined;
151
+ /**
152
+ * The sorting strategy to use for this request, if "order" is not specified. When set, no load balancing is performed.
153
+ */
154
+ sort?: Sort | null | undefined;
155
+ /**
156
+ * The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.
157
+ */
158
+ maxPrice?: MaxPrice | undefined;
159
+ experimental?: Experimental | null | undefined;
160
+ };
161
+ export declare const IdFileParser: {
162
+ readonly FileParser: "file-parser";
163
+ };
164
+ export type IdFileParser = ClosedEnum<typeof IdFileParser>;
165
+ export declare const PdfEngine: {
166
+ readonly MistralOcr: "mistral-ocr";
167
+ readonly PdfText: "pdf-text";
168
+ readonly Native: "native";
169
+ };
170
+ export type PdfEngine = OpenEnum<typeof PdfEngine>;
171
+ export type Pdf = {
172
+ engine?: PdfEngine | undefined;
173
+ };
174
+ export type PluginFileParser = {
175
+ id: IdFileParser;
176
+ maxFiles?: number | undefined;
177
+ pdf?: Pdf | undefined;
178
+ };
179
+ export declare const IdWeb: {
180
+ readonly Web: "web";
181
+ };
182
+ export type IdWeb = ClosedEnum<typeof IdWeb>;
183
+ export declare const Engine: {
184
+ readonly Native: "native";
185
+ readonly Exa: "exa";
186
+ };
187
+ export type Engine = OpenEnum<typeof Engine>;
188
+ export type PluginWeb = {
189
+ id: IdWeb;
190
+ maxResults?: number | undefined;
191
+ searchPrompt?: string | undefined;
192
+ engine?: Engine | undefined;
193
+ };
194
+ export declare const IdModeration: {
195
+ readonly Moderation: "moderation";
196
+ };
197
+ export type IdModeration = ClosedEnum<typeof IdModeration>;
198
+ export type PluginModeration = {
199
+ id: IdModeration;
200
+ };
201
+ export type Plugin = PluginModeration | PluginWeb | PluginFileParser;
4
202
  /**
5
203
  * Request schema for Responses endpoint
6
204
  */
7
- export type OpenResponsesRequest = {};
205
+ export type OpenResponsesRequest = {
206
+ /**
207
+ * Input for a response request - can be a string or array of items
208
+ */
209
+ input?: OpenResponsesInput | undefined;
210
+ instructions?: string | null | undefined;
211
+ /**
212
+ * Metadata key-value pairs for the request. Keys must be ≤64 characters and cannot contain brackets. Values must be ≤512 characters. Maximum 16 pairs allowed.
213
+ */
214
+ metadata?: {
215
+ [k: string]: string;
216
+ } | null | undefined;
217
+ tools?: Array<OpenResponsesRequestToolFunction | OpenResponsesWebSearchPreviewTool | OpenResponsesWebSearchPreview20250311Tool | OpenResponsesWebSearchTool | OpenResponsesWebSearch20250826Tool> | undefined;
218
+ toolChoice?: OpenAIResponsesToolChoiceUnion | undefined;
219
+ parallelToolCalls?: boolean | null | undefined;
220
+ model?: string | undefined;
221
+ models?: Array<string> | undefined;
222
+ /**
223
+ * Text output configuration including format and verbosity
224
+ */
225
+ text?: OpenResponsesResponseText | undefined;
226
+ /**
227
+ * Configuration for reasoning mode in the response
228
+ */
229
+ reasoning?: OpenResponsesReasoningConfig | null | undefined;
230
+ maxOutputTokens?: number | null | undefined;
231
+ temperature?: number | null | undefined;
232
+ topP?: number | null | undefined;
233
+ topK?: number | undefined;
234
+ promptCacheKey?: string | null | undefined;
235
+ previousResponseId?: string | null | undefined;
236
+ prompt?: OpenAIResponsesPrompt | null | undefined;
237
+ include?: Array<OpenAIResponsesIncludable> | null | undefined;
238
+ background?: boolean | null | undefined;
239
+ safetyIdentifier?: string | null | undefined;
240
+ store?: boolean | null | undefined;
241
+ serviceTier?: ServiceTier | null | undefined;
242
+ truncation?: Truncation | null | undefined;
243
+ stream?: boolean | undefined;
244
+ /**
245
+ * When multiple model providers are available, optionally indicate your routing preference.
246
+ */
247
+ provider?: Provider | null | undefined;
248
+ /**
249
+ * Plugins you want to enable for this request, including their settings.
250
+ */
251
+ plugins?: Array<PluginModeration | PluginWeb | PluginFileParser> | undefined;
252
+ /**
253
+ * A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 128 characters.
254
+ */
255
+ user?: string | undefined;
256
+ };
257
+ /** @internal */
258
+ export declare const OpenResponsesRequestType$inboundSchema: z.ZodEnum<typeof OpenResponsesRequestType>;
259
+ /** @internal */
260
+ export declare const OpenResponsesRequestType$outboundSchema: z.ZodEnum<typeof OpenResponsesRequestType>;
261
+ /**
262
+ * @internal
263
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
264
+ */
265
+ export declare namespace OpenResponsesRequestType$ {
266
+ /** @deprecated use `OpenResponsesRequestType$inboundSchema` instead. */
267
+ const inboundSchema: z.ZodEnum<{
268
+ readonly Function: "function";
269
+ }>;
270
+ /** @deprecated use `OpenResponsesRequestType$outboundSchema` instead. */
271
+ const outboundSchema: z.ZodEnum<{
272
+ readonly Function: "function";
273
+ }>;
274
+ }
275
+ /** @internal */
276
+ export declare const OpenResponsesRequestToolFunction$inboundSchema: z.ZodType<OpenResponsesRequestToolFunction, unknown>;
277
+ /** @internal */
278
+ export type OpenResponsesRequestToolFunction$Outbound = {
279
+ type: string;
280
+ name: string;
281
+ description?: string | null | undefined;
282
+ strict?: boolean | null | undefined;
283
+ parameters: {
284
+ [k: string]: any | null;
285
+ } | null;
286
+ };
287
+ /** @internal */
288
+ export declare const OpenResponsesRequestToolFunction$outboundSchema: z.ZodType<OpenResponsesRequestToolFunction$Outbound, OpenResponsesRequestToolFunction>;
289
+ /**
290
+ * @internal
291
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
292
+ */
293
+ export declare namespace OpenResponsesRequestToolFunction$ {
294
+ /** @deprecated use `OpenResponsesRequestToolFunction$inboundSchema` instead. */
295
+ const inboundSchema: z.ZodType<OpenResponsesRequestToolFunction, unknown, z.core.$ZodTypeInternals<OpenResponsesRequestToolFunction, unknown>>;
296
+ /** @deprecated use `OpenResponsesRequestToolFunction$outboundSchema` instead. */
297
+ const outboundSchema: z.ZodType<OpenResponsesRequestToolFunction$Outbound, OpenResponsesRequestToolFunction, z.core.$ZodTypeInternals<OpenResponsesRequestToolFunction$Outbound, OpenResponsesRequestToolFunction>>;
298
+ /** @deprecated use `OpenResponsesRequestToolFunction$Outbound` instead. */
299
+ type Outbound = OpenResponsesRequestToolFunction$Outbound;
300
+ }
301
+ export declare function openResponsesRequestToolFunctionToJSON(openResponsesRequestToolFunction: OpenResponsesRequestToolFunction): string;
302
+ export declare function openResponsesRequestToolFunctionFromJSON(jsonString: string): SafeParseResult<OpenResponsesRequestToolFunction, SDKValidationError>;
303
+ /** @internal */
304
+ export declare const OpenResponsesRequestToolUnion$inboundSchema: z.ZodType<OpenResponsesRequestToolUnion, unknown>;
305
+ /** @internal */
306
+ export type OpenResponsesRequestToolUnion$Outbound = OpenResponsesRequestToolFunction$Outbound | OpenResponsesWebSearchPreviewTool$Outbound | OpenResponsesWebSearchPreview20250311Tool$Outbound | OpenResponsesWebSearchTool$Outbound | OpenResponsesWebSearch20250826Tool$Outbound;
307
+ /** @internal */
308
+ export declare const OpenResponsesRequestToolUnion$outboundSchema: z.ZodType<OpenResponsesRequestToolUnion$Outbound, OpenResponsesRequestToolUnion>;
309
+ /**
310
+ * @internal
311
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
312
+ */
313
+ export declare namespace OpenResponsesRequestToolUnion$ {
314
+ /** @deprecated use `OpenResponsesRequestToolUnion$inboundSchema` instead. */
315
+ const inboundSchema: z.ZodType<OpenResponsesRequestToolUnion, unknown, z.core.$ZodTypeInternals<OpenResponsesRequestToolUnion, unknown>>;
316
+ /** @deprecated use `OpenResponsesRequestToolUnion$outboundSchema` instead. */
317
+ const outboundSchema: z.ZodType<OpenResponsesRequestToolUnion$Outbound, OpenResponsesRequestToolUnion, z.core.$ZodTypeInternals<OpenResponsesRequestToolUnion$Outbound, OpenResponsesRequestToolUnion>>;
318
+ /** @deprecated use `OpenResponsesRequestToolUnion$Outbound` instead. */
319
+ type Outbound = OpenResponsesRequestToolUnion$Outbound;
320
+ }
321
+ export declare function openResponsesRequestToolUnionToJSON(openResponsesRequestToolUnion: OpenResponsesRequestToolUnion): string;
322
+ export declare function openResponsesRequestToolUnionFromJSON(jsonString: string): SafeParseResult<OpenResponsesRequestToolUnion, SDKValidationError>;
323
+ /** @internal */
324
+ export declare const ServiceTier$inboundSchema: z.ZodType<ServiceTier, unknown>;
325
+ /** @internal */
326
+ export declare const ServiceTier$outboundSchema: z.ZodType<ServiceTier, ServiceTier>;
327
+ /**
328
+ * @internal
329
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
330
+ */
331
+ export declare namespace ServiceTier$ {
332
+ /** @deprecated use `ServiceTier$inboundSchema` instead. */
333
+ const inboundSchema: z.ZodType<ServiceTier, unknown, z.core.$ZodTypeInternals<ServiceTier, unknown>>;
334
+ /** @deprecated use `ServiceTier$outboundSchema` instead. */
335
+ const outboundSchema: z.ZodType<ServiceTier, ServiceTier, z.core.$ZodTypeInternals<ServiceTier, ServiceTier>>;
336
+ }
337
+ /** @internal */
338
+ export declare const Truncation$inboundSchema: z.ZodType<Truncation, unknown>;
339
+ /** @internal */
340
+ export declare const Truncation$outboundSchema: z.ZodType<Truncation, Truncation>;
341
+ /**
342
+ * @internal
343
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
344
+ */
345
+ export declare namespace Truncation$ {
346
+ /** @deprecated use `Truncation$inboundSchema` instead. */
347
+ const inboundSchema: z.ZodType<Truncation, unknown, z.core.$ZodTypeInternals<Truncation, unknown>>;
348
+ /** @deprecated use `Truncation$outboundSchema` instead. */
349
+ const outboundSchema: z.ZodType<Truncation, Truncation, z.core.$ZodTypeInternals<Truncation, Truncation>>;
350
+ }
351
+ /** @internal */
352
+ export declare const DataCollection$inboundSchema: z.ZodType<DataCollection, unknown>;
353
+ /** @internal */
354
+ export declare const DataCollection$outboundSchema: z.ZodType<DataCollection, DataCollection>;
355
+ /**
356
+ * @internal
357
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
358
+ */
359
+ export declare namespace DataCollection$ {
360
+ /** @deprecated use `DataCollection$inboundSchema` instead. */
361
+ const inboundSchema: z.ZodType<DataCollection, unknown, z.core.$ZodTypeInternals<DataCollection, unknown>>;
362
+ /** @deprecated use `DataCollection$outboundSchema` instead. */
363
+ const outboundSchema: z.ZodType<DataCollection, DataCollection, z.core.$ZodTypeInternals<DataCollection, DataCollection>>;
364
+ }
365
+ /** @internal */
366
+ export declare const Order$inboundSchema: z.ZodType<Order, unknown>;
367
+ /** @internal */
368
+ export type Order$Outbound = string | string;
369
+ /** @internal */
370
+ export declare const Order$outboundSchema: z.ZodType<Order$Outbound, Order>;
371
+ /**
372
+ * @internal
373
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
374
+ */
375
+ export declare namespace Order$ {
376
+ /** @deprecated use `Order$inboundSchema` instead. */
377
+ const inboundSchema: z.ZodType<Order, unknown, z.core.$ZodTypeInternals<Order, unknown>>;
378
+ /** @deprecated use `Order$outboundSchema` instead. */
379
+ const outboundSchema: z.ZodType<string, Order, z.core.$ZodTypeInternals<string, Order>>;
380
+ /** @deprecated use `Order$Outbound` instead. */
381
+ type Outbound = Order$Outbound;
382
+ }
383
+ export declare function orderToJSON(order: Order): string;
384
+ export declare function orderFromJSON(jsonString: string): SafeParseResult<Order, SDKValidationError>;
385
+ /** @internal */
386
+ export declare const Only$inboundSchema: z.ZodType<Only, unknown>;
387
+ /** @internal */
388
+ export type Only$Outbound = string | string;
389
+ /** @internal */
390
+ export declare const Only$outboundSchema: z.ZodType<Only$Outbound, Only>;
391
+ /**
392
+ * @internal
393
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
394
+ */
395
+ export declare namespace Only$ {
396
+ /** @deprecated use `Only$inboundSchema` instead. */
397
+ const inboundSchema: z.ZodType<Only, unknown, z.core.$ZodTypeInternals<Only, unknown>>;
398
+ /** @deprecated use `Only$outboundSchema` instead. */
399
+ const outboundSchema: z.ZodType<string, Only, z.core.$ZodTypeInternals<string, Only>>;
400
+ /** @deprecated use `Only$Outbound` instead. */
401
+ type Outbound = Only$Outbound;
402
+ }
403
+ export declare function onlyToJSON(only: Only): string;
404
+ export declare function onlyFromJSON(jsonString: string): SafeParseResult<Only, SDKValidationError>;
405
+ /** @internal */
406
+ export declare const Ignore$inboundSchema: z.ZodType<Ignore, unknown>;
407
+ /** @internal */
408
+ export type Ignore$Outbound = string | string;
409
+ /** @internal */
410
+ export declare const Ignore$outboundSchema: z.ZodType<Ignore$Outbound, Ignore>;
411
+ /**
412
+ * @internal
413
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
414
+ */
415
+ export declare namespace Ignore$ {
416
+ /** @deprecated use `Ignore$inboundSchema` instead. */
417
+ const inboundSchema: z.ZodType<Ignore, unknown, z.core.$ZodTypeInternals<Ignore, unknown>>;
418
+ /** @deprecated use `Ignore$outboundSchema` instead. */
419
+ const outboundSchema: z.ZodType<string, Ignore, z.core.$ZodTypeInternals<string, Ignore>>;
420
+ /** @deprecated use `Ignore$Outbound` instead. */
421
+ type Outbound = Ignore$Outbound;
422
+ }
423
+ export declare function ignoreToJSON(ignore: Ignore): string;
424
+ export declare function ignoreFromJSON(jsonString: string): SafeParseResult<Ignore, SDKValidationError>;
425
+ /** @internal */
426
+ export declare const Sort$inboundSchema: z.ZodType<Sort, unknown>;
427
+ /** @internal */
428
+ export declare const Sort$outboundSchema: z.ZodType<Sort, Sort>;
429
+ /**
430
+ * @internal
431
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
432
+ */
433
+ export declare namespace Sort$ {
434
+ /** @deprecated use `Sort$inboundSchema` instead. */
435
+ const inboundSchema: z.ZodType<Sort, unknown, z.core.$ZodTypeInternals<Sort, unknown>>;
436
+ /** @deprecated use `Sort$outboundSchema` instead. */
437
+ const outboundSchema: z.ZodType<Sort, Sort, z.core.$ZodTypeInternals<Sort, Sort>>;
438
+ }
439
+ /** @internal */
440
+ export declare const MaxPrice$inboundSchema: z.ZodType<MaxPrice, unknown>;
441
+ /** @internal */
442
+ export type MaxPrice$Outbound = {
443
+ prompt?: any | undefined;
444
+ completion?: any | undefined;
445
+ image?: any | undefined;
446
+ audio?: any | undefined;
447
+ request?: any | undefined;
448
+ };
449
+ /** @internal */
450
+ export declare const MaxPrice$outboundSchema: z.ZodType<MaxPrice$Outbound, MaxPrice>;
451
+ /**
452
+ * @internal
453
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
454
+ */
455
+ export declare namespace MaxPrice$ {
456
+ /** @deprecated use `MaxPrice$inboundSchema` instead. */
457
+ const inboundSchema: z.ZodType<MaxPrice, unknown, z.core.$ZodTypeInternals<MaxPrice, unknown>>;
458
+ /** @deprecated use `MaxPrice$outboundSchema` instead. */
459
+ const outboundSchema: z.ZodType<MaxPrice$Outbound, MaxPrice, z.core.$ZodTypeInternals<MaxPrice$Outbound, MaxPrice>>;
460
+ /** @deprecated use `MaxPrice$Outbound` instead. */
461
+ type Outbound = MaxPrice$Outbound;
462
+ }
463
+ export declare function maxPriceToJSON(maxPrice: MaxPrice): string;
464
+ export declare function maxPriceFromJSON(jsonString: string): SafeParseResult<MaxPrice, SDKValidationError>;
465
+ /** @internal */
466
+ export declare const Experimental$inboundSchema: z.ZodType<Experimental, unknown>;
467
+ /** @internal */
468
+ export type Experimental$Outbound = {};
469
+ /** @internal */
470
+ export declare const Experimental$outboundSchema: z.ZodType<Experimental$Outbound, Experimental>;
471
+ /**
472
+ * @internal
473
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
474
+ */
475
+ export declare namespace Experimental$ {
476
+ /** @deprecated use `Experimental$inboundSchema` instead. */
477
+ const inboundSchema: z.ZodType<Experimental, unknown, z.core.$ZodTypeInternals<Experimental, unknown>>;
478
+ /** @deprecated use `Experimental$outboundSchema` instead. */
479
+ const outboundSchema: z.ZodType<Experimental$Outbound, Experimental, z.core.$ZodTypeInternals<Experimental$Outbound, Experimental>>;
480
+ /** @deprecated use `Experimental$Outbound` instead. */
481
+ type Outbound = Experimental$Outbound;
482
+ }
483
+ export declare function experimentalToJSON(experimental: Experimental): string;
484
+ export declare function experimentalFromJSON(jsonString: string): SafeParseResult<Experimental, SDKValidationError>;
485
+ /** @internal */
486
+ export declare const Provider$inboundSchema: z.ZodType<Provider, unknown>;
487
+ /** @internal */
488
+ export type Provider$Outbound = {
489
+ allow_fallbacks?: boolean | null | undefined;
490
+ require_parameters?: boolean | null | undefined;
491
+ data_collection?: string | null | undefined;
492
+ zdr?: boolean | null | undefined;
493
+ order?: Array<string | string> | null | undefined;
494
+ only?: Array<string | string> | null | undefined;
495
+ ignore?: Array<string | string> | null | undefined;
496
+ quantizations?: Array<string> | null | undefined;
497
+ sort?: string | null | undefined;
498
+ max_price?: MaxPrice$Outbound | undefined;
499
+ experimental?: Experimental$Outbound | null | undefined;
500
+ };
501
+ /** @internal */
502
+ export declare const Provider$outboundSchema: z.ZodType<Provider$Outbound, Provider>;
503
+ /**
504
+ * @internal
505
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
506
+ */
507
+ export declare namespace Provider$ {
508
+ /** @deprecated use `Provider$inboundSchema` instead. */
509
+ const inboundSchema: z.ZodType<Provider, unknown, z.core.$ZodTypeInternals<Provider, unknown>>;
510
+ /** @deprecated use `Provider$outboundSchema` instead. */
511
+ const outboundSchema: z.ZodType<Provider$Outbound, Provider, z.core.$ZodTypeInternals<Provider$Outbound, Provider>>;
512
+ /** @deprecated use `Provider$Outbound` instead. */
513
+ type Outbound = Provider$Outbound;
514
+ }
515
+ export declare function providerToJSON(provider: Provider): string;
516
+ export declare function providerFromJSON(jsonString: string): SafeParseResult<Provider, SDKValidationError>;
517
+ /** @internal */
518
+ export declare const IdFileParser$inboundSchema: z.ZodEnum<typeof IdFileParser>;
519
+ /** @internal */
520
+ export declare const IdFileParser$outboundSchema: z.ZodEnum<typeof IdFileParser>;
521
+ /**
522
+ * @internal
523
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
524
+ */
525
+ export declare namespace IdFileParser$ {
526
+ /** @deprecated use `IdFileParser$inboundSchema` instead. */
527
+ const inboundSchema: z.ZodEnum<{
528
+ readonly FileParser: "file-parser";
529
+ }>;
530
+ /** @deprecated use `IdFileParser$outboundSchema` instead. */
531
+ const outboundSchema: z.ZodEnum<{
532
+ readonly FileParser: "file-parser";
533
+ }>;
534
+ }
535
+ /** @internal */
536
+ export declare const PdfEngine$inboundSchema: z.ZodType<PdfEngine, unknown>;
537
+ /** @internal */
538
+ export declare const PdfEngine$outboundSchema: z.ZodType<PdfEngine, PdfEngine>;
539
+ /**
540
+ * @internal
541
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
542
+ */
543
+ export declare namespace PdfEngine$ {
544
+ /** @deprecated use `PdfEngine$inboundSchema` instead. */
545
+ const inboundSchema: z.ZodType<PdfEngine, unknown, z.core.$ZodTypeInternals<PdfEngine, unknown>>;
546
+ /** @deprecated use `PdfEngine$outboundSchema` instead. */
547
+ const outboundSchema: z.ZodType<PdfEngine, PdfEngine, z.core.$ZodTypeInternals<PdfEngine, PdfEngine>>;
548
+ }
549
+ /** @internal */
550
+ export declare const Pdf$inboundSchema: z.ZodType<Pdf, unknown>;
551
+ /** @internal */
552
+ export type Pdf$Outbound = {
553
+ engine?: string | undefined;
554
+ };
555
+ /** @internal */
556
+ export declare const Pdf$outboundSchema: z.ZodType<Pdf$Outbound, Pdf>;
557
+ /**
558
+ * @internal
559
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
560
+ */
561
+ export declare namespace Pdf$ {
562
+ /** @deprecated use `Pdf$inboundSchema` instead. */
563
+ const inboundSchema: z.ZodType<Pdf, unknown, z.core.$ZodTypeInternals<Pdf, unknown>>;
564
+ /** @deprecated use `Pdf$outboundSchema` instead. */
565
+ const outboundSchema: z.ZodType<Pdf$Outbound, Pdf, z.core.$ZodTypeInternals<Pdf$Outbound, Pdf>>;
566
+ /** @deprecated use `Pdf$Outbound` instead. */
567
+ type Outbound = Pdf$Outbound;
568
+ }
569
+ export declare function pdfToJSON(pdf: Pdf): string;
570
+ export declare function pdfFromJSON(jsonString: string): SafeParseResult<Pdf, SDKValidationError>;
571
+ /** @internal */
572
+ export declare const PluginFileParser$inboundSchema: z.ZodType<PluginFileParser, unknown>;
573
+ /** @internal */
574
+ export type PluginFileParser$Outbound = {
575
+ id: string;
576
+ max_files?: number | undefined;
577
+ pdf?: Pdf$Outbound | undefined;
578
+ };
579
+ /** @internal */
580
+ export declare const PluginFileParser$outboundSchema: z.ZodType<PluginFileParser$Outbound, PluginFileParser>;
581
+ /**
582
+ * @internal
583
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
584
+ */
585
+ export declare namespace PluginFileParser$ {
586
+ /** @deprecated use `PluginFileParser$inboundSchema` instead. */
587
+ const inboundSchema: z.ZodType<PluginFileParser, unknown, z.core.$ZodTypeInternals<PluginFileParser, unknown>>;
588
+ /** @deprecated use `PluginFileParser$outboundSchema` instead. */
589
+ const outboundSchema: z.ZodType<PluginFileParser$Outbound, PluginFileParser, z.core.$ZodTypeInternals<PluginFileParser$Outbound, PluginFileParser>>;
590
+ /** @deprecated use `PluginFileParser$Outbound` instead. */
591
+ type Outbound = PluginFileParser$Outbound;
592
+ }
593
+ export declare function pluginFileParserToJSON(pluginFileParser: PluginFileParser): string;
594
+ export declare function pluginFileParserFromJSON(jsonString: string): SafeParseResult<PluginFileParser, SDKValidationError>;
595
+ /** @internal */
596
+ export declare const IdWeb$inboundSchema: z.ZodEnum<typeof IdWeb>;
597
+ /** @internal */
598
+ export declare const IdWeb$outboundSchema: z.ZodEnum<typeof IdWeb>;
599
+ /**
600
+ * @internal
601
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
602
+ */
603
+ export declare namespace IdWeb$ {
604
+ /** @deprecated use `IdWeb$inboundSchema` instead. */
605
+ const inboundSchema: z.ZodEnum<{
606
+ readonly Web: "web";
607
+ }>;
608
+ /** @deprecated use `IdWeb$outboundSchema` instead. */
609
+ const outboundSchema: z.ZodEnum<{
610
+ readonly Web: "web";
611
+ }>;
612
+ }
613
+ /** @internal */
614
+ export declare const Engine$inboundSchema: z.ZodType<Engine, unknown>;
615
+ /** @internal */
616
+ export declare const Engine$outboundSchema: z.ZodType<Engine, Engine>;
617
+ /**
618
+ * @internal
619
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
620
+ */
621
+ export declare namespace Engine$ {
622
+ /** @deprecated use `Engine$inboundSchema` instead. */
623
+ const inboundSchema: z.ZodType<Engine, unknown, z.core.$ZodTypeInternals<Engine, unknown>>;
624
+ /** @deprecated use `Engine$outboundSchema` instead. */
625
+ const outboundSchema: z.ZodType<Engine, Engine, z.core.$ZodTypeInternals<Engine, Engine>>;
626
+ }
627
+ /** @internal */
628
+ export declare const PluginWeb$inboundSchema: z.ZodType<PluginWeb, unknown>;
629
+ /** @internal */
630
+ export type PluginWeb$Outbound = {
631
+ id: string;
632
+ max_results?: number | undefined;
633
+ search_prompt?: string | undefined;
634
+ engine?: string | undefined;
635
+ };
636
+ /** @internal */
637
+ export declare const PluginWeb$outboundSchema: z.ZodType<PluginWeb$Outbound, PluginWeb>;
638
+ /**
639
+ * @internal
640
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
641
+ */
642
+ export declare namespace PluginWeb$ {
643
+ /** @deprecated use `PluginWeb$inboundSchema` instead. */
644
+ const inboundSchema: z.ZodType<PluginWeb, unknown, z.core.$ZodTypeInternals<PluginWeb, unknown>>;
645
+ /** @deprecated use `PluginWeb$outboundSchema` instead. */
646
+ const outboundSchema: z.ZodType<PluginWeb$Outbound, PluginWeb, z.core.$ZodTypeInternals<PluginWeb$Outbound, PluginWeb>>;
647
+ /** @deprecated use `PluginWeb$Outbound` instead. */
648
+ type Outbound = PluginWeb$Outbound;
649
+ }
650
+ export declare function pluginWebToJSON(pluginWeb: PluginWeb): string;
651
+ export declare function pluginWebFromJSON(jsonString: string): SafeParseResult<PluginWeb, SDKValidationError>;
652
+ /** @internal */
653
+ export declare const IdModeration$inboundSchema: z.ZodEnum<typeof IdModeration>;
654
+ /** @internal */
655
+ export declare const IdModeration$outboundSchema: z.ZodEnum<typeof IdModeration>;
656
+ /**
657
+ * @internal
658
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
659
+ */
660
+ export declare namespace IdModeration$ {
661
+ /** @deprecated use `IdModeration$inboundSchema` instead. */
662
+ const inboundSchema: z.ZodEnum<{
663
+ readonly Moderation: "moderation";
664
+ }>;
665
+ /** @deprecated use `IdModeration$outboundSchema` instead. */
666
+ const outboundSchema: z.ZodEnum<{
667
+ readonly Moderation: "moderation";
668
+ }>;
669
+ }
670
+ /** @internal */
671
+ export declare const PluginModeration$inboundSchema: z.ZodType<PluginModeration, unknown>;
672
+ /** @internal */
673
+ export type PluginModeration$Outbound = {
674
+ id: string;
675
+ };
676
+ /** @internal */
677
+ export declare const PluginModeration$outboundSchema: z.ZodType<PluginModeration$Outbound, PluginModeration>;
678
+ /**
679
+ * @internal
680
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
681
+ */
682
+ export declare namespace PluginModeration$ {
683
+ /** @deprecated use `PluginModeration$inboundSchema` instead. */
684
+ const inboundSchema: z.ZodType<PluginModeration, unknown, z.core.$ZodTypeInternals<PluginModeration, unknown>>;
685
+ /** @deprecated use `PluginModeration$outboundSchema` instead. */
686
+ const outboundSchema: z.ZodType<PluginModeration$Outbound, PluginModeration, z.core.$ZodTypeInternals<PluginModeration$Outbound, PluginModeration>>;
687
+ /** @deprecated use `PluginModeration$Outbound` instead. */
688
+ type Outbound = PluginModeration$Outbound;
689
+ }
690
+ export declare function pluginModerationToJSON(pluginModeration: PluginModeration): string;
691
+ export declare function pluginModerationFromJSON(jsonString: string): SafeParseResult<PluginModeration, SDKValidationError>;
692
+ /** @internal */
693
+ export declare const Plugin$inboundSchema: z.ZodType<Plugin, unknown>;
694
+ /** @internal */
695
+ export type Plugin$Outbound = PluginModeration$Outbound | PluginWeb$Outbound | PluginFileParser$Outbound;
696
+ /** @internal */
697
+ export declare const Plugin$outboundSchema: z.ZodType<Plugin$Outbound, Plugin>;
698
+ /**
699
+ * @internal
700
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
701
+ */
702
+ export declare namespace Plugin$ {
703
+ /** @deprecated use `Plugin$inboundSchema` instead. */
704
+ const inboundSchema: z.ZodType<Plugin, unknown, z.core.$ZodTypeInternals<Plugin, unknown>>;
705
+ /** @deprecated use `Plugin$outboundSchema` instead. */
706
+ const outboundSchema: z.ZodType<Plugin$Outbound, Plugin, z.core.$ZodTypeInternals<Plugin$Outbound, Plugin>>;
707
+ /** @deprecated use `Plugin$Outbound` instead. */
708
+ type Outbound = Plugin$Outbound;
709
+ }
710
+ export declare function pluginToJSON(plugin: Plugin): string;
711
+ export declare function pluginFromJSON(jsonString: string): SafeParseResult<Plugin, SDKValidationError>;
8
712
  /** @internal */
9
713
  export declare const OpenResponsesRequest$inboundSchema: z.ZodType<OpenResponsesRequest, unknown>;
10
714
  /** @internal */
11
- export type OpenResponsesRequest$Outbound = {};
715
+ export type OpenResponsesRequest$Outbound = {
716
+ input?: OpenResponsesInput$Outbound | undefined;
717
+ instructions?: string | null | undefined;
718
+ metadata?: {
719
+ [k: string]: string;
720
+ } | null | undefined;
721
+ tools?: Array<OpenResponsesRequestToolFunction$Outbound | OpenResponsesWebSearchPreviewTool$Outbound | OpenResponsesWebSearchPreview20250311Tool$Outbound | OpenResponsesWebSearchTool$Outbound | OpenResponsesWebSearch20250826Tool$Outbound> | undefined;
722
+ tool_choice?: OpenAIResponsesToolChoiceUnion$Outbound | undefined;
723
+ parallel_tool_calls?: boolean | null | undefined;
724
+ model?: string | undefined;
725
+ models?: Array<string> | undefined;
726
+ text?: OpenResponsesResponseText$Outbound | undefined;
727
+ reasoning?: OpenResponsesReasoningConfig$Outbound | null | undefined;
728
+ max_output_tokens?: number | null | undefined;
729
+ temperature?: number | null | undefined;
730
+ top_p?: number | null | undefined;
731
+ top_k?: number | undefined;
732
+ prompt_cache_key?: string | null | undefined;
733
+ previous_response_id?: string | null | undefined;
734
+ prompt?: OpenAIResponsesPrompt$Outbound | null | undefined;
735
+ include?: Array<string> | null | undefined;
736
+ background?: boolean | null | undefined;
737
+ safety_identifier?: string | null | undefined;
738
+ store?: boolean | null | undefined;
739
+ service_tier?: string | null | undefined;
740
+ truncation?: string | null | undefined;
741
+ stream: boolean;
742
+ provider?: Provider$Outbound | null | undefined;
743
+ plugins?: Array<PluginModeration$Outbound | PluginWeb$Outbound | PluginFileParser$Outbound> | undefined;
744
+ user?: string | undefined;
745
+ };
12
746
  /** @internal */
13
747
  export declare const OpenResponsesRequest$outboundSchema: z.ZodType<OpenResponsesRequest$Outbound, OpenResponsesRequest>;
14
748
  /**