@openrouter/sdk 0.0.1-beta.10 → 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 (206) 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/chatSend.d.ts +7 -0
  21. package/esm/funcs/chatSend.js +1 -7
  22. package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +1 -1
  23. package/esm/funcs/creditsCreateCoinbaseCharge.js +15 -5
  24. package/esm/funcs/creditsGetCredits.d.ts +1 -1
  25. package/esm/funcs/creditsGetCredits.js +2 -2
  26. package/esm/funcs/endpointsList.d.ts +1 -1
  27. package/esm/funcs/endpointsList.js +2 -2
  28. package/esm/funcs/endpointsListZdrEndpoints.d.ts +2 -1
  29. package/esm/funcs/endpointsListZdrEndpoints.js +6 -2
  30. package/esm/funcs/generationsGetGeneration.d.ts +1 -1
  31. package/esm/funcs/generationsGetGeneration.js +13 -2
  32. package/esm/funcs/modelsCount.d.ts +3 -2
  33. package/esm/funcs/modelsCount.js +7 -3
  34. package/esm/funcs/modelsList.d.ts +2 -1
  35. package/esm/funcs/modelsList.js +6 -2
  36. package/esm/funcs/modelsListForUser.d.ts +3 -1
  37. package/esm/funcs/modelsListForUser.js +7 -3
  38. package/esm/funcs/parametersGetParameters.d.ts +1 -1
  39. package/esm/funcs/parametersGetParameters.js +2 -2
  40. package/esm/funcs/providersList.d.ts +1 -1
  41. package/esm/funcs/providersList.js +1 -1
  42. package/esm/lib/config.d.ts +3 -3
  43. package/esm/lib/config.js +3 -3
  44. package/esm/models/badgatewayresponseerrordata.d.ts +40 -0
  45. package/esm/models/badgatewayresponseerrordata.js +35 -0
  46. package/esm/models/badrequestresponseerrordata.d.ts +40 -0
  47. package/esm/models/badrequestresponseerrordata.js +35 -0
  48. package/esm/models/chatgenerationparams.d.ts +2 -2
  49. package/esm/models/chatgenerationparams.js +2 -2
  50. package/esm/models/chatmessagecontentitemaudio.d.ts +10 -10
  51. package/esm/models/chatmessagecontentitemaudio.js +14 -14
  52. package/esm/models/chatstreamingresponsechunk.d.ts +15 -15
  53. package/esm/models/chatstreamingresponsechunk.js +15 -15
  54. package/esm/models/completioncreateparams.d.ts +2 -2
  55. package/esm/models/completioncreateparams.js +2 -2
  56. package/esm/models/createchargerequest.d.ts +31 -2
  57. package/esm/models/createchargerequest.js +47 -2
  58. package/esm/models/defaultparameters.d.ts +36 -0
  59. package/esm/models/defaultparameters.js +46 -0
  60. package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +40 -0
  61. package/esm/models/edgenetworktimeoutresponseerrordata.js +35 -0
  62. package/esm/models/endpointstatus.d.ts +26 -0
  63. package/esm/models/endpointstatus.js +36 -0
  64. package/esm/models/errors/badgatewayresponseerror.d.ts +52 -0
  65. package/esm/models/errors/badgatewayresponseerror.js +63 -0
  66. package/esm/models/errors/badrequestresponseerror.d.ts +52 -0
  67. package/esm/models/errors/badrequestresponseerror.js +63 -0
  68. package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +52 -0
  69. package/esm/models/errors/edgenetworktimeoutresponseerror.js +63 -0
  70. package/esm/models/errors/forbiddenresponseerror.d.ts +52 -0
  71. package/esm/models/errors/forbiddenresponseerror.js +63 -0
  72. package/esm/models/errors/index.d.ts +14 -2
  73. package/esm/models/errors/index.js +14 -2
  74. package/esm/models/errors/internalserverresponseerror.d.ts +52 -0
  75. package/esm/models/errors/internalserverresponseerror.js +63 -0
  76. package/esm/models/errors/notfoundresponseerror.d.ts +52 -0
  77. package/esm/models/errors/{errorresponse.js → notfoundresponseerror.js} +16 -17
  78. package/esm/models/errors/payloadtoolargeresponseerror.d.ts +52 -0
  79. package/esm/models/errors/payloadtoolargeresponseerror.js +63 -0
  80. package/esm/models/errors/paymentrequiredresponseerror.d.ts +52 -0
  81. package/esm/models/errors/paymentrequiredresponseerror.js +63 -0
  82. package/esm/models/errors/provideroverloadedresponseerror.d.ts +52 -0
  83. package/esm/models/errors/provideroverloadedresponseerror.js +63 -0
  84. package/esm/models/errors/requesttimeoutresponseerror.d.ts +52 -0
  85. package/esm/models/errors/requesttimeoutresponseerror.js +63 -0
  86. package/esm/models/errors/serviceunavailableresponseerror.d.ts +52 -0
  87. package/esm/models/errors/serviceunavailableresponseerror.js +63 -0
  88. package/esm/models/errors/toomanyrequestsresponseerror.d.ts +52 -0
  89. package/esm/models/errors/toomanyrequestsresponseerror.js +63 -0
  90. package/esm/models/errors/unauthorizedresponseerror.d.ts +52 -0
  91. package/esm/models/errors/unauthorizedresponseerror.js +63 -0
  92. package/esm/models/errors/unprocessableentityresponseerror.d.ts +52 -0
  93. package/esm/models/errors/unprocessableentityresponseerror.js +63 -0
  94. package/esm/models/forbiddenresponseerrordata.d.ts +40 -0
  95. package/esm/models/forbiddenresponseerrordata.js +35 -0
  96. package/esm/models/index.d.ts +37 -1
  97. package/esm/models/index.js +37 -1
  98. package/esm/models/inputmodality.d.ts +24 -0
  99. package/esm/models/inputmodality.js +34 -0
  100. package/esm/models/instructtype.d.ts +48 -0
  101. package/esm/models/instructtype.js +55 -0
  102. package/esm/models/internalserverresponseerrordata.d.ts +40 -0
  103. package/esm/models/internalserverresponseerrordata.js +35 -0
  104. package/esm/models/listendpointsresponse.d.ts +126 -2
  105. package/esm/models/listendpointsresponse.js +115 -2
  106. package/esm/models/model.d.ts +101 -0
  107. package/esm/models/model.js +82 -0
  108. package/esm/models/modelarchitecture.d.ts +104 -0
  109. package/esm/models/modelarchitecture.js +107 -0
  110. package/esm/models/modelgroup.d.ts +45 -0
  111. package/esm/models/modelgroup.js +53 -0
  112. package/esm/models/modelscountresponse.d.ts +40 -2
  113. package/esm/models/modelscountresponse.js +31 -2
  114. package/esm/models/modelslistresponse.d.ts +10 -2
  115. package/esm/models/modelslistresponse.js +7 -2
  116. package/esm/models/notfoundresponseerrordata.d.ts +40 -0
  117. package/esm/models/notfoundresponseerrordata.js +35 -0
  118. package/esm/models/openairesponsesincludable.d.ts +25 -0
  119. package/esm/models/openairesponsesincludable.js +35 -0
  120. package/esm/models/openairesponsesinputunion.d.ts +78 -78
  121. package/esm/models/openairesponsesinputunion.js +124 -126
  122. package/esm/models/openresponseseasyinputmessage.d.ts +246 -0
  123. package/esm/models/openresponseseasyinputmessage.js +283 -0
  124. package/esm/models/openresponsesfunctioncalloutput.d.ts +64 -0
  125. package/esm/models/openresponsesfunctioncalloutput.js +67 -0
  126. package/esm/models/openresponsesfunctiontoolcall.d.ts +66 -0
  127. package/esm/models/openresponsesfunctiontoolcall.js +69 -0
  128. package/esm/models/openresponsesinput.d.ts +60 -0
  129. package/esm/models/openresponsesinput.js +113 -0
  130. package/esm/models/openresponsesinputmessageitem.d.ts +193 -0
  131. package/esm/models/openresponsesinputmessageitem.js +210 -0
  132. package/esm/models/openresponsesnonstreamingresponse.d.ts +13 -13
  133. package/esm/models/openresponsesnonstreamingresponse.js +13 -13
  134. package/esm/models/openresponsesreasoning.d.ts +179 -0
  135. package/esm/models/openresponsesreasoning.js +194 -0
  136. package/esm/models/openresponsesreasoningconfig.d.ts +40 -0
  137. package/esm/models/openresponsesreasoningconfig.js +48 -0
  138. package/esm/models/openresponsesrequest.d.ts +736 -2
  139. package/esm/models/openresponsesrequest.js +789 -2
  140. package/esm/models/openresponsesresponsetext.d.ts +59 -0
  141. package/esm/models/openresponsesresponsetext.js +64 -0
  142. package/esm/models/operations/createapialpharesponses.d.ts +3 -3
  143. package/esm/models/operations/createapialpharesponses.js +0 -2
  144. package/esm/models/operations/getmodels.d.ts +2 -2
  145. package/esm/models/operations/getmodels.js +2 -10
  146. package/esm/models/operations/index.d.ts +0 -1
  147. package/esm/models/operations/index.js +0 -1
  148. package/esm/models/operations/listendpointszdr.d.ts +3 -24
  149. package/esm/models/operations/listendpointszdr.js +2 -29
  150. package/esm/models/operations/listmodelsuser.d.ts +0 -22
  151. package/esm/models/operations/listmodelsuser.js +0 -28
  152. package/esm/models/operations/listproviders.d.ts +0 -36
  153. package/esm/models/operations/listproviders.js +0 -28
  154. package/esm/models/outputmodality.d.ts +23 -0
  155. package/esm/models/outputmodality.js +33 -0
  156. package/esm/models/parameter.d.ts +43 -0
  157. package/esm/models/parameter.js +54 -0
  158. package/esm/models/payloadtoolargeresponseerrordata.d.ts +40 -0
  159. package/esm/models/payloadtoolargeresponseerrordata.js +35 -0
  160. package/esm/models/paymentrequiredresponseerrordata.d.ts +40 -0
  161. package/esm/models/paymentrequiredresponseerrordata.js +35 -0
  162. package/esm/models/perrequestlimits.d.ts +40 -0
  163. package/esm/models/perrequestlimits.js +44 -0
  164. package/esm/models/providername.d.ts +106 -0
  165. package/esm/models/providername.js +116 -0
  166. package/esm/models/provideroverloadedresponseerrordata.d.ts +40 -0
  167. package/esm/models/provideroverloadedresponseerrordata.js +35 -0
  168. package/esm/models/publicendpoint.d.ts +140 -2
  169. package/esm/models/publicendpoint.js +156 -2
  170. package/esm/models/publicpricing.d.ts +87 -0
  171. package/esm/models/publicpricing.js +73 -0
  172. package/esm/models/quantization.d.ts +29 -0
  173. package/esm/models/quantization.js +39 -0
  174. package/esm/models/requesttimeoutresponseerrordata.d.ts +40 -0
  175. package/esm/models/requesttimeoutresponseerrordata.js +35 -0
  176. package/esm/models/responseserrorfield.d.ts +10 -10
  177. package/esm/models/responseserrorfield.js +14 -14
  178. package/esm/models/responsetextconfig.d.ts +10 -10
  179. package/esm/models/responsetextconfig.js +14 -15
  180. package/esm/models/serviceunavailableresponseerrordata.d.ts +40 -0
  181. package/esm/models/serviceunavailableresponseerrordata.js +35 -0
  182. package/esm/models/toomanyrequestsresponseerrordata.d.ts +40 -0
  183. package/esm/models/toomanyrequestsresponseerrordata.js +35 -0
  184. package/esm/models/topproviderinfo.d.ts +45 -0
  185. package/esm/models/topproviderinfo.js +48 -0
  186. package/esm/models/unauthorizedresponseerrordata.d.ts +40 -0
  187. package/esm/models/unauthorizedresponseerrordata.js +35 -0
  188. package/esm/models/unprocessableentityresponseerrordata.d.ts +40 -0
  189. package/esm/models/unprocessableentityresponseerrordata.js +35 -0
  190. package/esm/react-query/modelsCount.d.ts +2 -2
  191. package/esm/react-query/modelsListForUser.d.ts +2 -1
  192. package/esm/sdk/chat.d.ts +7 -0
  193. package/esm/sdk/chat.js +0 -6
  194. package/esm/sdk/models.d.ts +3 -2
  195. package/esm/sdk/responses.d.ts +7 -0
  196. package/esm/sdk/responses.js +0 -6
  197. package/jsr.json +1 -1
  198. package/package.json +1 -1
  199. package/vitest.config.ts +11 -0
  200. package/esm/models/errorresponse.d.ts +0 -155
  201. package/esm/models/errorresponse.js +0 -167
  202. package/esm/models/errors/errorresponse.d.ts +0 -46
  203. package/esm/models/errors/listproviders.d.ts +0 -49
  204. package/esm/models/errors/listproviders.js +0 -51
  205. package/esm/models/operations/listmodelscount.d.ts +0 -26
  206. package/esm/models/operations/listmodelscount.js +0 -34
@@ -0,0 +1,283 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import { ResponseInputFile$inboundSchema, ResponseInputFile$outboundSchema, } from "./responseinputfile.js";
7
+ import { ResponseInputImage$inboundSchema, ResponseInputImage$outboundSchema, } from "./responseinputimage.js";
8
+ import { ResponseInputText$inboundSchema, ResponseInputText$outboundSchema, } from "./responseinputtext.js";
9
+ export const OpenResponsesEasyInputMessageType = {
10
+ Message: "message",
11
+ };
12
+ export const OpenResponsesEasyInputMessageRoleDeveloper = {
13
+ Developer: "developer",
14
+ };
15
+ export const OpenResponsesEasyInputMessageRoleAssistant = {
16
+ Assistant: "assistant",
17
+ };
18
+ export const OpenResponsesEasyInputMessageRoleSystem = {
19
+ System: "system",
20
+ };
21
+ export const OpenResponsesEasyInputMessageRoleUser = {
22
+ User: "user",
23
+ };
24
+ /** @internal */
25
+ export const OpenResponsesEasyInputMessageType$inboundSchema = z.enum(OpenResponsesEasyInputMessageType);
26
+ /** @internal */
27
+ export const OpenResponsesEasyInputMessageType$outboundSchema = OpenResponsesEasyInputMessageType$inboundSchema;
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export var OpenResponsesEasyInputMessageType$;
33
+ (function (OpenResponsesEasyInputMessageType$) {
34
+ /** @deprecated use `OpenResponsesEasyInputMessageType$inboundSchema` instead. */
35
+ OpenResponsesEasyInputMessageType$.inboundSchema = OpenResponsesEasyInputMessageType$inboundSchema;
36
+ /** @deprecated use `OpenResponsesEasyInputMessageType$outboundSchema` instead. */
37
+ OpenResponsesEasyInputMessageType$.outboundSchema = OpenResponsesEasyInputMessageType$outboundSchema;
38
+ })(OpenResponsesEasyInputMessageType$ || (OpenResponsesEasyInputMessageType$ = {}));
39
+ /** @internal */
40
+ export const OpenResponsesEasyInputMessageRoleDeveloper$inboundSchema = z.enum(OpenResponsesEasyInputMessageRoleDeveloper);
41
+ /** @internal */
42
+ export const OpenResponsesEasyInputMessageRoleDeveloper$outboundSchema = OpenResponsesEasyInputMessageRoleDeveloper$inboundSchema;
43
+ /**
44
+ * @internal
45
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
+ */
47
+ export var OpenResponsesEasyInputMessageRoleDeveloper$;
48
+ (function (OpenResponsesEasyInputMessageRoleDeveloper$) {
49
+ /** @deprecated use `OpenResponsesEasyInputMessageRoleDeveloper$inboundSchema` instead. */
50
+ OpenResponsesEasyInputMessageRoleDeveloper$.inboundSchema = OpenResponsesEasyInputMessageRoleDeveloper$inboundSchema;
51
+ /** @deprecated use `OpenResponsesEasyInputMessageRoleDeveloper$outboundSchema` instead. */
52
+ OpenResponsesEasyInputMessageRoleDeveloper$.outboundSchema = OpenResponsesEasyInputMessageRoleDeveloper$outboundSchema;
53
+ })(OpenResponsesEasyInputMessageRoleDeveloper$ || (OpenResponsesEasyInputMessageRoleDeveloper$ = {}));
54
+ /** @internal */
55
+ export const OpenResponsesEasyInputMessageRoleAssistant$inboundSchema = z.enum(OpenResponsesEasyInputMessageRoleAssistant);
56
+ /** @internal */
57
+ export const OpenResponsesEasyInputMessageRoleAssistant$outboundSchema = OpenResponsesEasyInputMessageRoleAssistant$inboundSchema;
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ export var OpenResponsesEasyInputMessageRoleAssistant$;
63
+ (function (OpenResponsesEasyInputMessageRoleAssistant$) {
64
+ /** @deprecated use `OpenResponsesEasyInputMessageRoleAssistant$inboundSchema` instead. */
65
+ OpenResponsesEasyInputMessageRoleAssistant$.inboundSchema = OpenResponsesEasyInputMessageRoleAssistant$inboundSchema;
66
+ /** @deprecated use `OpenResponsesEasyInputMessageRoleAssistant$outboundSchema` instead. */
67
+ OpenResponsesEasyInputMessageRoleAssistant$.outboundSchema = OpenResponsesEasyInputMessageRoleAssistant$outboundSchema;
68
+ })(OpenResponsesEasyInputMessageRoleAssistant$ || (OpenResponsesEasyInputMessageRoleAssistant$ = {}));
69
+ /** @internal */
70
+ export const OpenResponsesEasyInputMessageRoleSystem$inboundSchema = z.enum(OpenResponsesEasyInputMessageRoleSystem);
71
+ /** @internal */
72
+ export const OpenResponsesEasyInputMessageRoleSystem$outboundSchema = OpenResponsesEasyInputMessageRoleSystem$inboundSchema;
73
+ /**
74
+ * @internal
75
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
+ */
77
+ export var OpenResponsesEasyInputMessageRoleSystem$;
78
+ (function (OpenResponsesEasyInputMessageRoleSystem$) {
79
+ /** @deprecated use `OpenResponsesEasyInputMessageRoleSystem$inboundSchema` instead. */
80
+ OpenResponsesEasyInputMessageRoleSystem$.inboundSchema = OpenResponsesEasyInputMessageRoleSystem$inboundSchema;
81
+ /** @deprecated use `OpenResponsesEasyInputMessageRoleSystem$outboundSchema` instead. */
82
+ OpenResponsesEasyInputMessageRoleSystem$.outboundSchema = OpenResponsesEasyInputMessageRoleSystem$outboundSchema;
83
+ })(OpenResponsesEasyInputMessageRoleSystem$ || (OpenResponsesEasyInputMessageRoleSystem$ = {}));
84
+ /** @internal */
85
+ export const OpenResponsesEasyInputMessageRoleUser$inboundSchema = z.enum(OpenResponsesEasyInputMessageRoleUser);
86
+ /** @internal */
87
+ export const OpenResponsesEasyInputMessageRoleUser$outboundSchema = OpenResponsesEasyInputMessageRoleUser$inboundSchema;
88
+ /**
89
+ * @internal
90
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
91
+ */
92
+ export var OpenResponsesEasyInputMessageRoleUser$;
93
+ (function (OpenResponsesEasyInputMessageRoleUser$) {
94
+ /** @deprecated use `OpenResponsesEasyInputMessageRoleUser$inboundSchema` instead. */
95
+ OpenResponsesEasyInputMessageRoleUser$.inboundSchema = OpenResponsesEasyInputMessageRoleUser$inboundSchema;
96
+ /** @deprecated use `OpenResponsesEasyInputMessageRoleUser$outboundSchema` instead. */
97
+ OpenResponsesEasyInputMessageRoleUser$.outboundSchema = OpenResponsesEasyInputMessageRoleUser$outboundSchema;
98
+ })(OpenResponsesEasyInputMessageRoleUser$ || (OpenResponsesEasyInputMessageRoleUser$ = {}));
99
+ /** @internal */
100
+ export const OpenResponsesEasyInputMessageRoleUnion$inboundSchema = z.union([
101
+ OpenResponsesEasyInputMessageRoleUser$inboundSchema,
102
+ OpenResponsesEasyInputMessageRoleSystem$inboundSchema,
103
+ OpenResponsesEasyInputMessageRoleAssistant$inboundSchema,
104
+ OpenResponsesEasyInputMessageRoleDeveloper$inboundSchema,
105
+ ]);
106
+ /** @internal */
107
+ export const OpenResponsesEasyInputMessageRoleUnion$outboundSchema = z.union([
108
+ OpenResponsesEasyInputMessageRoleUser$outboundSchema,
109
+ OpenResponsesEasyInputMessageRoleSystem$outboundSchema,
110
+ OpenResponsesEasyInputMessageRoleAssistant$outboundSchema,
111
+ OpenResponsesEasyInputMessageRoleDeveloper$outboundSchema,
112
+ ]);
113
+ /**
114
+ * @internal
115
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
116
+ */
117
+ export var OpenResponsesEasyInputMessageRoleUnion$;
118
+ (function (OpenResponsesEasyInputMessageRoleUnion$) {
119
+ /** @deprecated use `OpenResponsesEasyInputMessageRoleUnion$inboundSchema` instead. */
120
+ OpenResponsesEasyInputMessageRoleUnion$.inboundSchema = OpenResponsesEasyInputMessageRoleUnion$inboundSchema;
121
+ /** @deprecated use `OpenResponsesEasyInputMessageRoleUnion$outboundSchema` instead. */
122
+ OpenResponsesEasyInputMessageRoleUnion$.outboundSchema = OpenResponsesEasyInputMessageRoleUnion$outboundSchema;
123
+ })(OpenResponsesEasyInputMessageRoleUnion$ || (OpenResponsesEasyInputMessageRoleUnion$ = {}));
124
+ export function openResponsesEasyInputMessageRoleUnionToJSON(openResponsesEasyInputMessageRoleUnion) {
125
+ return JSON.stringify(OpenResponsesEasyInputMessageRoleUnion$outboundSchema.parse(openResponsesEasyInputMessageRoleUnion));
126
+ }
127
+ export function openResponsesEasyInputMessageRoleUnionFromJSON(jsonString) {
128
+ return safeParse(jsonString, (x) => OpenResponsesEasyInputMessageRoleUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesEasyInputMessageRoleUnion' from JSON`);
129
+ }
130
+ /** @internal */
131
+ export const OpenResponsesEasyInputMessageContent1$inboundSchema = z.union([
132
+ ResponseInputText$inboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
133
+ type: v.type,
134
+ }))),
135
+ ResponseInputImage$inboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
136
+ type: v.type,
137
+ }))),
138
+ ResponseInputFile$inboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
139
+ type: v.type,
140
+ }))),
141
+ ]);
142
+ /** @internal */
143
+ export const OpenResponsesEasyInputMessageContent1$outboundSchema = z.union([
144
+ ResponseInputText$outboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
145
+ type: v.type,
146
+ }))),
147
+ ResponseInputImage$outboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
148
+ type: v.type,
149
+ }))),
150
+ ResponseInputFile$outboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
151
+ type: v.type,
152
+ }))),
153
+ ]);
154
+ /**
155
+ * @internal
156
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
157
+ */
158
+ export var OpenResponsesEasyInputMessageContent1$;
159
+ (function (OpenResponsesEasyInputMessageContent1$) {
160
+ /** @deprecated use `OpenResponsesEasyInputMessageContent1$inboundSchema` instead. */
161
+ OpenResponsesEasyInputMessageContent1$.inboundSchema = OpenResponsesEasyInputMessageContent1$inboundSchema;
162
+ /** @deprecated use `OpenResponsesEasyInputMessageContent1$outboundSchema` instead. */
163
+ OpenResponsesEasyInputMessageContent1$.outboundSchema = OpenResponsesEasyInputMessageContent1$outboundSchema;
164
+ })(OpenResponsesEasyInputMessageContent1$ || (OpenResponsesEasyInputMessageContent1$ = {}));
165
+ export function openResponsesEasyInputMessageContent1ToJSON(openResponsesEasyInputMessageContent1) {
166
+ return JSON.stringify(OpenResponsesEasyInputMessageContent1$outboundSchema.parse(openResponsesEasyInputMessageContent1));
167
+ }
168
+ export function openResponsesEasyInputMessageContent1FromJSON(jsonString) {
169
+ return safeParse(jsonString, (x) => OpenResponsesEasyInputMessageContent1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesEasyInputMessageContent1' from JSON`);
170
+ }
171
+ /** @internal */
172
+ export const OpenResponsesEasyInputMessageContent2$inboundSchema = z.union([
173
+ z.array(z.union([
174
+ ResponseInputText$inboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
175
+ type: v.type,
176
+ }))),
177
+ ResponseInputImage$inboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
178
+ type: v.type,
179
+ }))),
180
+ ResponseInputFile$inboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
181
+ type: v.type,
182
+ }))),
183
+ ])),
184
+ z.string(),
185
+ ]);
186
+ /** @internal */
187
+ export const OpenResponsesEasyInputMessageContent2$outboundSchema = z.union([
188
+ z.array(z.union([
189
+ ResponseInputText$outboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
190
+ type: v.type,
191
+ }))),
192
+ ResponseInputImage$outboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
193
+ type: v.type,
194
+ }))),
195
+ ResponseInputFile$outboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
196
+ type: v.type,
197
+ }))),
198
+ ])),
199
+ z.string(),
200
+ ]);
201
+ /**
202
+ * @internal
203
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
204
+ */
205
+ export var OpenResponsesEasyInputMessageContent2$;
206
+ (function (OpenResponsesEasyInputMessageContent2$) {
207
+ /** @deprecated use `OpenResponsesEasyInputMessageContent2$inboundSchema` instead. */
208
+ OpenResponsesEasyInputMessageContent2$.inboundSchema = OpenResponsesEasyInputMessageContent2$inboundSchema;
209
+ /** @deprecated use `OpenResponsesEasyInputMessageContent2$outboundSchema` instead. */
210
+ OpenResponsesEasyInputMessageContent2$.outboundSchema = OpenResponsesEasyInputMessageContent2$outboundSchema;
211
+ })(OpenResponsesEasyInputMessageContent2$ || (OpenResponsesEasyInputMessageContent2$ = {}));
212
+ export function openResponsesEasyInputMessageContent2ToJSON(openResponsesEasyInputMessageContent2) {
213
+ return JSON.stringify(OpenResponsesEasyInputMessageContent2$outboundSchema.parse(openResponsesEasyInputMessageContent2));
214
+ }
215
+ export function openResponsesEasyInputMessageContent2FromJSON(jsonString) {
216
+ return safeParse(jsonString, (x) => OpenResponsesEasyInputMessageContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesEasyInputMessageContent2' from JSON`);
217
+ }
218
+ /** @internal */
219
+ export const OpenResponsesEasyInputMessage$inboundSchema = z.object({
220
+ type: OpenResponsesEasyInputMessageType$inboundSchema.optional(),
221
+ role: z.union([
222
+ OpenResponsesEasyInputMessageRoleUser$inboundSchema,
223
+ OpenResponsesEasyInputMessageRoleSystem$inboundSchema,
224
+ OpenResponsesEasyInputMessageRoleAssistant$inboundSchema,
225
+ OpenResponsesEasyInputMessageRoleDeveloper$inboundSchema,
226
+ ]),
227
+ content: z.union([
228
+ z.array(z.union([
229
+ ResponseInputText$inboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
230
+ type: v.type,
231
+ }))),
232
+ ResponseInputImage$inboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
233
+ type: v.type,
234
+ }))),
235
+ ResponseInputFile$inboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
236
+ type: v.type,
237
+ }))),
238
+ ])),
239
+ z.string(),
240
+ ]),
241
+ });
242
+ /** @internal */
243
+ export const OpenResponsesEasyInputMessage$outboundSchema = z.object({
244
+ type: OpenResponsesEasyInputMessageType$outboundSchema.optional(),
245
+ role: z.union([
246
+ OpenResponsesEasyInputMessageRoleUser$outboundSchema,
247
+ OpenResponsesEasyInputMessageRoleSystem$outboundSchema,
248
+ OpenResponsesEasyInputMessageRoleAssistant$outboundSchema,
249
+ OpenResponsesEasyInputMessageRoleDeveloper$outboundSchema,
250
+ ]),
251
+ content: z.union([
252
+ z.array(z.union([
253
+ ResponseInputText$outboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
254
+ type: v.type,
255
+ }))),
256
+ ResponseInputImage$outboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
257
+ type: v.type,
258
+ }))),
259
+ ResponseInputFile$outboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
260
+ type: v.type,
261
+ }))),
262
+ ])),
263
+ z.string(),
264
+ ]),
265
+ });
266
+ /**
267
+ * @internal
268
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
269
+ */
270
+ export var OpenResponsesEasyInputMessage$;
271
+ (function (OpenResponsesEasyInputMessage$) {
272
+ /** @deprecated use `OpenResponsesEasyInputMessage$inboundSchema` instead. */
273
+ OpenResponsesEasyInputMessage$.inboundSchema = OpenResponsesEasyInputMessage$inboundSchema;
274
+ /** @deprecated use `OpenResponsesEasyInputMessage$outboundSchema` instead. */
275
+ OpenResponsesEasyInputMessage$.outboundSchema = OpenResponsesEasyInputMessage$outboundSchema;
276
+ })(OpenResponsesEasyInputMessage$ || (OpenResponsesEasyInputMessage$ = {}));
277
+ export function openResponsesEasyInputMessageToJSON(openResponsesEasyInputMessage) {
278
+ return JSON.stringify(OpenResponsesEasyInputMessage$outboundSchema.parse(openResponsesEasyInputMessage));
279
+ }
280
+ export function openResponsesEasyInputMessageFromJSON(jsonString) {
281
+ return safeParse(jsonString, (x) => OpenResponsesEasyInputMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesEasyInputMessage' from JSON`);
282
+ }
283
+ //# sourceMappingURL=openresponseseasyinputmessage.js.map
@@ -0,0 +1,64 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ import { ToolCallStatus } from "./toolcallstatus.js";
6
+ export declare const OpenResponsesFunctionCallOutputType: {
7
+ readonly FunctionCallOutput: "function_call_output";
8
+ };
9
+ export type OpenResponsesFunctionCallOutputType = ClosedEnum<typeof OpenResponsesFunctionCallOutputType>;
10
+ /**
11
+ * The output from a function call execution
12
+ */
13
+ export type OpenResponsesFunctionCallOutput = {
14
+ type: OpenResponsesFunctionCallOutputType;
15
+ id: string;
16
+ callId: string;
17
+ output: string;
18
+ status?: ToolCallStatus | undefined;
19
+ };
20
+ /** @internal */
21
+ export declare const OpenResponsesFunctionCallOutputType$inboundSchema: z.ZodEnum<typeof OpenResponsesFunctionCallOutputType>;
22
+ /** @internal */
23
+ export declare const OpenResponsesFunctionCallOutputType$outboundSchema: z.ZodEnum<typeof OpenResponsesFunctionCallOutputType>;
24
+ /**
25
+ * @internal
26
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
+ */
28
+ export declare namespace OpenResponsesFunctionCallOutputType$ {
29
+ /** @deprecated use `OpenResponsesFunctionCallOutputType$inboundSchema` instead. */
30
+ const inboundSchema: z.ZodEnum<{
31
+ readonly FunctionCallOutput: "function_call_output";
32
+ }>;
33
+ /** @deprecated use `OpenResponsesFunctionCallOutputType$outboundSchema` instead. */
34
+ const outboundSchema: z.ZodEnum<{
35
+ readonly FunctionCallOutput: "function_call_output";
36
+ }>;
37
+ }
38
+ /** @internal */
39
+ export declare const OpenResponsesFunctionCallOutput$inboundSchema: z.ZodType<OpenResponsesFunctionCallOutput, unknown>;
40
+ /** @internal */
41
+ export type OpenResponsesFunctionCallOutput$Outbound = {
42
+ type: string;
43
+ id: string;
44
+ call_id: string;
45
+ output: string;
46
+ status?: string | undefined;
47
+ };
48
+ /** @internal */
49
+ export declare const OpenResponsesFunctionCallOutput$outboundSchema: z.ZodType<OpenResponsesFunctionCallOutput$Outbound, OpenResponsesFunctionCallOutput>;
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export declare namespace OpenResponsesFunctionCallOutput$ {
55
+ /** @deprecated use `OpenResponsesFunctionCallOutput$inboundSchema` instead. */
56
+ const inboundSchema: z.ZodType<OpenResponsesFunctionCallOutput, unknown, z.core.$ZodTypeInternals<OpenResponsesFunctionCallOutput, unknown>>;
57
+ /** @deprecated use `OpenResponsesFunctionCallOutput$outboundSchema` instead. */
58
+ const outboundSchema: z.ZodType<OpenResponsesFunctionCallOutput$Outbound, OpenResponsesFunctionCallOutput, z.core.$ZodTypeInternals<OpenResponsesFunctionCallOutput$Outbound, OpenResponsesFunctionCallOutput>>;
59
+ /** @deprecated use `OpenResponsesFunctionCallOutput$Outbound` instead. */
60
+ type Outbound = OpenResponsesFunctionCallOutput$Outbound;
61
+ }
62
+ export declare function openResponsesFunctionCallOutputToJSON(openResponsesFunctionCallOutput: OpenResponsesFunctionCallOutput): string;
63
+ export declare function openResponsesFunctionCallOutputFromJSON(jsonString: string): SafeParseResult<OpenResponsesFunctionCallOutput, SDKValidationError>;
64
+ //# sourceMappingURL=openresponsesfunctioncalloutput.d.ts.map
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
8
+ export const OpenResponsesFunctionCallOutputType = {
9
+ FunctionCallOutput: "function_call_output",
10
+ };
11
+ /** @internal */
12
+ export const OpenResponsesFunctionCallOutputType$inboundSchema = z.enum(OpenResponsesFunctionCallOutputType);
13
+ /** @internal */
14
+ export const OpenResponsesFunctionCallOutputType$outboundSchema = OpenResponsesFunctionCallOutputType$inboundSchema;
15
+ /**
16
+ * @internal
17
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
18
+ */
19
+ export var OpenResponsesFunctionCallOutputType$;
20
+ (function (OpenResponsesFunctionCallOutputType$) {
21
+ /** @deprecated use `OpenResponsesFunctionCallOutputType$inboundSchema` instead. */
22
+ OpenResponsesFunctionCallOutputType$.inboundSchema = OpenResponsesFunctionCallOutputType$inboundSchema;
23
+ /** @deprecated use `OpenResponsesFunctionCallOutputType$outboundSchema` instead. */
24
+ OpenResponsesFunctionCallOutputType$.outboundSchema = OpenResponsesFunctionCallOutputType$outboundSchema;
25
+ })(OpenResponsesFunctionCallOutputType$ || (OpenResponsesFunctionCallOutputType$ = {}));
26
+ /** @internal */
27
+ export const OpenResponsesFunctionCallOutput$inboundSchema = z.object({
28
+ type: OpenResponsesFunctionCallOutputType$inboundSchema,
29
+ id: z.string(),
30
+ call_id: z.string(),
31
+ output: z.string(),
32
+ status: ToolCallStatus$inboundSchema.optional(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ "call_id": "callId",
36
+ });
37
+ });
38
+ /** @internal */
39
+ export const OpenResponsesFunctionCallOutput$outboundSchema = z.object({
40
+ type: OpenResponsesFunctionCallOutputType$outboundSchema,
41
+ id: z.string(),
42
+ callId: z.string(),
43
+ output: z.string(),
44
+ status: ToolCallStatus$outboundSchema.optional(),
45
+ }).transform((v) => {
46
+ return remap$(v, {
47
+ callId: "call_id",
48
+ });
49
+ });
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export var OpenResponsesFunctionCallOutput$;
55
+ (function (OpenResponsesFunctionCallOutput$) {
56
+ /** @deprecated use `OpenResponsesFunctionCallOutput$inboundSchema` instead. */
57
+ OpenResponsesFunctionCallOutput$.inboundSchema = OpenResponsesFunctionCallOutput$inboundSchema;
58
+ /** @deprecated use `OpenResponsesFunctionCallOutput$outboundSchema` instead. */
59
+ OpenResponsesFunctionCallOutput$.outboundSchema = OpenResponsesFunctionCallOutput$outboundSchema;
60
+ })(OpenResponsesFunctionCallOutput$ || (OpenResponsesFunctionCallOutput$ = {}));
61
+ export function openResponsesFunctionCallOutputToJSON(openResponsesFunctionCallOutput) {
62
+ return JSON.stringify(OpenResponsesFunctionCallOutput$outboundSchema.parse(openResponsesFunctionCallOutput));
63
+ }
64
+ export function openResponsesFunctionCallOutputFromJSON(jsonString) {
65
+ return safeParse(jsonString, (x) => OpenResponsesFunctionCallOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesFunctionCallOutput' from JSON`);
66
+ }
67
+ //# sourceMappingURL=openresponsesfunctioncalloutput.js.map
@@ -0,0 +1,66 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
+ import { ToolCallStatus } from "./toolcallstatus.js";
6
+ export declare const OpenResponsesFunctionToolCallType: {
7
+ readonly FunctionCall: "function_call";
8
+ };
9
+ export type OpenResponsesFunctionToolCallType = ClosedEnum<typeof OpenResponsesFunctionToolCallType>;
10
+ /**
11
+ * A function call initiated by the model
12
+ */
13
+ export type OpenResponsesFunctionToolCall = {
14
+ type: OpenResponsesFunctionToolCallType;
15
+ callId: string;
16
+ name: string;
17
+ arguments: string;
18
+ id: string;
19
+ status?: ToolCallStatus | undefined;
20
+ };
21
+ /** @internal */
22
+ export declare const OpenResponsesFunctionToolCallType$inboundSchema: z.ZodEnum<typeof OpenResponsesFunctionToolCallType>;
23
+ /** @internal */
24
+ export declare const OpenResponsesFunctionToolCallType$outboundSchema: z.ZodEnum<typeof OpenResponsesFunctionToolCallType>;
25
+ /**
26
+ * @internal
27
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
28
+ */
29
+ export declare namespace OpenResponsesFunctionToolCallType$ {
30
+ /** @deprecated use `OpenResponsesFunctionToolCallType$inboundSchema` instead. */
31
+ const inboundSchema: z.ZodEnum<{
32
+ readonly FunctionCall: "function_call";
33
+ }>;
34
+ /** @deprecated use `OpenResponsesFunctionToolCallType$outboundSchema` instead. */
35
+ const outboundSchema: z.ZodEnum<{
36
+ readonly FunctionCall: "function_call";
37
+ }>;
38
+ }
39
+ /** @internal */
40
+ export declare const OpenResponsesFunctionToolCall$inboundSchema: z.ZodType<OpenResponsesFunctionToolCall, unknown>;
41
+ /** @internal */
42
+ export type OpenResponsesFunctionToolCall$Outbound = {
43
+ type: string;
44
+ call_id: string;
45
+ name: string;
46
+ arguments: string;
47
+ id: string;
48
+ status?: string | undefined;
49
+ };
50
+ /** @internal */
51
+ export declare const OpenResponsesFunctionToolCall$outboundSchema: z.ZodType<OpenResponsesFunctionToolCall$Outbound, OpenResponsesFunctionToolCall>;
52
+ /**
53
+ * @internal
54
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
+ */
56
+ export declare namespace OpenResponsesFunctionToolCall$ {
57
+ /** @deprecated use `OpenResponsesFunctionToolCall$inboundSchema` instead. */
58
+ const inboundSchema: z.ZodType<OpenResponsesFunctionToolCall, unknown, z.core.$ZodTypeInternals<OpenResponsesFunctionToolCall, unknown>>;
59
+ /** @deprecated use `OpenResponsesFunctionToolCall$outboundSchema` instead. */
60
+ const outboundSchema: z.ZodType<OpenResponsesFunctionToolCall$Outbound, OpenResponsesFunctionToolCall, z.core.$ZodTypeInternals<OpenResponsesFunctionToolCall$Outbound, OpenResponsesFunctionToolCall>>;
61
+ /** @deprecated use `OpenResponsesFunctionToolCall$Outbound` instead. */
62
+ type Outbound = OpenResponsesFunctionToolCall$Outbound;
63
+ }
64
+ export declare function openResponsesFunctionToolCallToJSON(openResponsesFunctionToolCall: OpenResponsesFunctionToolCall): string;
65
+ export declare function openResponsesFunctionToolCallFromJSON(jsonString: string): SafeParseResult<OpenResponsesFunctionToolCall, SDKValidationError>;
66
+ //# sourceMappingURL=openresponsesfunctiontoolcall.d.ts.map
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
8
+ export const OpenResponsesFunctionToolCallType = {
9
+ FunctionCall: "function_call",
10
+ };
11
+ /** @internal */
12
+ export const OpenResponsesFunctionToolCallType$inboundSchema = z.enum(OpenResponsesFunctionToolCallType);
13
+ /** @internal */
14
+ export const OpenResponsesFunctionToolCallType$outboundSchema = OpenResponsesFunctionToolCallType$inboundSchema;
15
+ /**
16
+ * @internal
17
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
18
+ */
19
+ export var OpenResponsesFunctionToolCallType$;
20
+ (function (OpenResponsesFunctionToolCallType$) {
21
+ /** @deprecated use `OpenResponsesFunctionToolCallType$inboundSchema` instead. */
22
+ OpenResponsesFunctionToolCallType$.inboundSchema = OpenResponsesFunctionToolCallType$inboundSchema;
23
+ /** @deprecated use `OpenResponsesFunctionToolCallType$outboundSchema` instead. */
24
+ OpenResponsesFunctionToolCallType$.outboundSchema = OpenResponsesFunctionToolCallType$outboundSchema;
25
+ })(OpenResponsesFunctionToolCallType$ || (OpenResponsesFunctionToolCallType$ = {}));
26
+ /** @internal */
27
+ export const OpenResponsesFunctionToolCall$inboundSchema = z.object({
28
+ type: OpenResponsesFunctionToolCallType$inboundSchema,
29
+ call_id: z.string(),
30
+ name: z.string(),
31
+ arguments: z.string(),
32
+ id: z.string(),
33
+ status: ToolCallStatus$inboundSchema.optional(),
34
+ }).transform((v) => {
35
+ return remap$(v, {
36
+ "call_id": "callId",
37
+ });
38
+ });
39
+ /** @internal */
40
+ export const OpenResponsesFunctionToolCall$outboundSchema = z.object({
41
+ type: OpenResponsesFunctionToolCallType$outboundSchema,
42
+ callId: z.string(),
43
+ name: z.string(),
44
+ arguments: z.string(),
45
+ id: z.string(),
46
+ status: ToolCallStatus$outboundSchema.optional(),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ callId: "call_id",
50
+ });
51
+ });
52
+ /**
53
+ * @internal
54
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
+ */
56
+ export var OpenResponsesFunctionToolCall$;
57
+ (function (OpenResponsesFunctionToolCall$) {
58
+ /** @deprecated use `OpenResponsesFunctionToolCall$inboundSchema` instead. */
59
+ OpenResponsesFunctionToolCall$.inboundSchema = OpenResponsesFunctionToolCall$inboundSchema;
60
+ /** @deprecated use `OpenResponsesFunctionToolCall$outboundSchema` instead. */
61
+ OpenResponsesFunctionToolCall$.outboundSchema = OpenResponsesFunctionToolCall$outboundSchema;
62
+ })(OpenResponsesFunctionToolCall$ || (OpenResponsesFunctionToolCall$ = {}));
63
+ export function openResponsesFunctionToolCallToJSON(openResponsesFunctionToolCall) {
64
+ return JSON.stringify(OpenResponsesFunctionToolCall$outboundSchema.parse(openResponsesFunctionToolCall));
65
+ }
66
+ export function openResponsesFunctionToolCallFromJSON(jsonString) {
67
+ return safeParse(jsonString, (x) => OpenResponsesFunctionToolCall$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesFunctionToolCall' from JSON`);
68
+ }
69
+ //# sourceMappingURL=openresponsesfunctiontoolcall.js.map
@@ -0,0 +1,60 @@
1
+ import * as z from "zod/v4";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ import { OpenResponsesEasyInputMessage, OpenResponsesEasyInputMessage$Outbound } from "./openresponseseasyinputmessage.js";
5
+ import { OpenResponsesFunctionCallOutput, OpenResponsesFunctionCallOutput$Outbound } from "./openresponsesfunctioncalloutput.js";
6
+ import { OpenResponsesFunctionToolCall, OpenResponsesFunctionToolCall$Outbound } from "./openresponsesfunctiontoolcall.js";
7
+ import { OpenResponsesInputMessageItem, OpenResponsesInputMessageItem$Outbound } from "./openresponsesinputmessageitem.js";
8
+ import { OpenResponsesReasoning, OpenResponsesReasoning$Outbound } from "./openresponsesreasoning.js";
9
+ import { ResponsesImageGenerationCall, ResponsesImageGenerationCall$Outbound } from "./responsesimagegenerationcall.js";
10
+ import { ResponsesOutputItemFileSearchCall, ResponsesOutputItemFileSearchCall$Outbound } from "./responsesoutputitemfilesearchcall.js";
11
+ import { ResponsesOutputItemFunctionCall, ResponsesOutputItemFunctionCall$Outbound } from "./responsesoutputitemfunctioncall.js";
12
+ import { ResponsesOutputItemReasoning, ResponsesOutputItemReasoning$Outbound } from "./responsesoutputitemreasoning.js";
13
+ import { ResponsesOutputMessage, ResponsesOutputMessage$Outbound } from "./responsesoutputmessage.js";
14
+ import { ResponsesWebSearchCallOutput, ResponsesWebSearchCallOutput$Outbound } from "./responseswebsearchcalloutput.js";
15
+ export type OpenResponsesInput1 = OpenResponsesFunctionToolCall | OpenResponsesFunctionCallOutput | ResponsesOutputMessage | ResponsesOutputItemFunctionCall | ResponsesOutputItemFileSearchCall | ResponsesImageGenerationCall | OpenResponsesReasoning | ResponsesWebSearchCallOutput | OpenResponsesEasyInputMessage | OpenResponsesInputMessageItem | ResponsesOutputItemReasoning;
16
+ /**
17
+ * Input for a response request - can be a string or array of items
18
+ */
19
+ export type OpenResponsesInput = string | Array<OpenResponsesFunctionToolCall | OpenResponsesFunctionCallOutput | ResponsesOutputMessage | ResponsesOutputItemFunctionCall | ResponsesOutputItemFileSearchCall | ResponsesImageGenerationCall | OpenResponsesReasoning | ResponsesWebSearchCallOutput | OpenResponsesEasyInputMessage | OpenResponsesInputMessageItem | ResponsesOutputItemReasoning>;
20
+ /** @internal */
21
+ export declare const OpenResponsesInput1$inboundSchema: z.ZodType<OpenResponsesInput1, unknown>;
22
+ /** @internal */
23
+ export type OpenResponsesInput1$Outbound = OpenResponsesFunctionToolCall$Outbound | OpenResponsesFunctionCallOutput$Outbound | ResponsesOutputMessage$Outbound | ResponsesOutputItemFunctionCall$Outbound | ResponsesOutputItemFileSearchCall$Outbound | ResponsesImageGenerationCall$Outbound | OpenResponsesReasoning$Outbound | ResponsesWebSearchCallOutput$Outbound | OpenResponsesEasyInputMessage$Outbound | OpenResponsesInputMessageItem$Outbound | ResponsesOutputItemReasoning$Outbound;
24
+ /** @internal */
25
+ export declare const OpenResponsesInput1$outboundSchema: z.ZodType<OpenResponsesInput1$Outbound, OpenResponsesInput1>;
26
+ /**
27
+ * @internal
28
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
+ */
30
+ export declare namespace OpenResponsesInput1$ {
31
+ /** @deprecated use `OpenResponsesInput1$inboundSchema` instead. */
32
+ const inboundSchema: z.ZodType<OpenResponsesInput1, unknown, z.core.$ZodTypeInternals<OpenResponsesInput1, unknown>>;
33
+ /** @deprecated use `OpenResponsesInput1$outboundSchema` instead. */
34
+ const outboundSchema: z.ZodType<OpenResponsesInput1$Outbound, OpenResponsesInput1, z.core.$ZodTypeInternals<OpenResponsesInput1$Outbound, OpenResponsesInput1>>;
35
+ /** @deprecated use `OpenResponsesInput1$Outbound` instead. */
36
+ type Outbound = OpenResponsesInput1$Outbound;
37
+ }
38
+ export declare function openResponsesInput1ToJSON(openResponsesInput1: OpenResponsesInput1): string;
39
+ export declare function openResponsesInput1FromJSON(jsonString: string): SafeParseResult<OpenResponsesInput1, SDKValidationError>;
40
+ /** @internal */
41
+ export declare const OpenResponsesInput$inboundSchema: z.ZodType<OpenResponsesInput, unknown>;
42
+ /** @internal */
43
+ export type OpenResponsesInput$Outbound = string | Array<OpenResponsesFunctionToolCall$Outbound | OpenResponsesFunctionCallOutput$Outbound | ResponsesOutputMessage$Outbound | ResponsesOutputItemFunctionCall$Outbound | ResponsesOutputItemFileSearchCall$Outbound | ResponsesImageGenerationCall$Outbound | OpenResponsesReasoning$Outbound | ResponsesWebSearchCallOutput$Outbound | OpenResponsesEasyInputMessage$Outbound | OpenResponsesInputMessageItem$Outbound | ResponsesOutputItemReasoning$Outbound>;
44
+ /** @internal */
45
+ export declare const OpenResponsesInput$outboundSchema: z.ZodType<OpenResponsesInput$Outbound, OpenResponsesInput>;
46
+ /**
47
+ * @internal
48
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
+ */
50
+ export declare namespace OpenResponsesInput$ {
51
+ /** @deprecated use `OpenResponsesInput$inboundSchema` instead. */
52
+ const inboundSchema: z.ZodType<OpenResponsesInput, unknown, z.core.$ZodTypeInternals<OpenResponsesInput, unknown>>;
53
+ /** @deprecated use `OpenResponsesInput$outboundSchema` instead. */
54
+ const outboundSchema: z.ZodType<OpenResponsesInput$Outbound, OpenResponsesInput, z.core.$ZodTypeInternals<OpenResponsesInput$Outbound, OpenResponsesInput>>;
55
+ /** @deprecated use `OpenResponsesInput$Outbound` instead. */
56
+ type Outbound = OpenResponsesInput$Outbound;
57
+ }
58
+ export declare function openResponsesInputToJSON(openResponsesInput: OpenResponsesInput): string;
59
+ export declare function openResponsesInputFromJSON(jsonString: string): SafeParseResult<OpenResponsesInput, SDKValidationError>;
60
+ //# sourceMappingURL=openresponsesinput.d.ts.map