@oxy.so/contracts 5.7.0 → 6.0.0

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 (227) hide show
  1. package/dist/cjs/accountAccess.js +6 -5
  2. package/dist/cjs/accountEmail.js +13 -5
  3. package/dist/cjs/accountGraph.js +10 -9
  4. package/dist/cjs/accountName.js +3 -2
  5. package/dist/cjs/agency.js +91 -34
  6. package/dist/cjs/agentKeys.js +21 -17
  7. package/dist/cjs/appAssertions.js +14 -13
  8. package/dist/cjs/applicationRoles.js +19 -12
  9. package/dist/cjs/civic.js +10 -9
  10. package/dist/cjs/client/check.js +61 -53
  11. package/dist/cjs/client/consoleOnboarding.js +24 -0
  12. package/dist/cjs/client/index.js +7 -3
  13. package/dist/cjs/client/safety.js +9 -1
  14. package/dist/cjs/consoleOnboarding.js +56 -0
  15. package/dist/cjs/contentClaims.js +23 -14
  16. package/dist/cjs/deviceDirectory.js +11 -9
  17. package/dist/cjs/deviceSession.js +27 -25
  18. package/dist/cjs/email/messages.js +20 -18
  19. package/dist/cjs/emailAgentContext.js +11 -9
  20. package/dist/cjs/externalIdentity.js +15 -11
  21. package/dist/cjs/federationInstanceFetch.js +12 -7
  22. package/dist/cjs/identity.js +19 -17
  23. package/dist/cjs/identityLink.js +6 -4
  24. package/dist/cjs/identityProof.js +6 -4
  25. package/dist/cjs/inboxPush.js +5 -4
  26. package/dist/cjs/index.js +16 -6
  27. package/dist/cjs/inference/accountBilling.js +35 -33
  28. package/dist/cjs/inference/aliaModelRelease.js +9 -7
  29. package/dist/cjs/inference/attribution.js +14 -12
  30. package/dist/cjs/inference/catalogue.js +35 -29
  31. package/dist/cjs/inference/economics.js +24 -19
  32. package/dist/cjs/inference/embeddings.js +9 -7
  33. package/dist/cjs/inference/entitlement.js +17 -15
  34. package/dist/cjs/inference/errors.js +15 -8
  35. package/dist/cjs/inference/identifiers.js +33 -21
  36. package/dist/cjs/inference/inbox.js +37 -35
  37. package/dist/cjs/inference/modelDocumentation.js +16 -14
  38. package/dist/cjs/inference/money.js +5 -4
  39. package/dist/cjs/inference/priceVersion.js +10 -5
  40. package/dist/cjs/inference/providerConnection.js +21 -14
  41. package/dist/cjs/inference/realtime.js +88 -47
  42. package/dist/cjs/inference/request.js +27 -25
  43. package/dist/cjs/inference/routingPolicy.js +12 -10
  44. package/dist/cjs/inference/streamEvents.js +22 -16
  45. package/dist/cjs/inference/usage.js +32 -15
  46. package/dist/cjs/keyRecovery.js +8 -6
  47. package/dist/cjs/keyRotation.js +5 -4
  48. package/dist/cjs/linkedAccounts.js +22 -18
  49. package/dist/cjs/moderationReputation.js +29 -27
  50. package/dist/cjs/notifications.js +25 -9
  51. package/dist/cjs/numberChecks.js +45 -0
  52. package/dist/cjs/oauth.js +14 -12
  53. package/dist/cjs/organizations.js +23 -21
  54. package/dist/cjs/products/access.js +10 -8
  55. package/dist/cjs/products/billing.js +10 -8
  56. package/dist/cjs/products/checkout.js +22 -10
  57. package/dist/cjs/products/plans.js +15 -10
  58. package/dist/cjs/protocol.js +6 -5
  59. package/dist/cjs/recommendations.js +27 -19
  60. package/dist/cjs/reputation.js +15 -13
  61. package/dist/cjs/safety.js +46 -29
  62. package/dist/cjs/serviceToken.js +81 -2
  63. package/dist/cjs/sessionRevocation.js +8 -6
  64. package/dist/cjs/signIn.js +42 -24
  65. package/dist/cjs/stickers.js +19 -15
  66. package/dist/cjs/stringChecks.js +70 -0
  67. package/dist/cjs/transparency.js +14 -12
  68. package/dist/cjs/updates.js +24 -22
  69. package/dist/cjs/userInvalidation.js +7 -5
  70. package/dist/cjs/userResponse.js +8 -7
  71. package/dist/cjs/username.js +7 -6
  72. package/dist/esm/accountAccess.js +4 -3
  73. package/dist/esm/accountEmail.js +13 -5
  74. package/dist/esm/accountGraph.js +8 -7
  75. package/dist/esm/accountName.js +3 -2
  76. package/dist/esm/agency.js +90 -33
  77. package/dist/esm/agentKeys.js +21 -17
  78. package/dist/esm/appAssertions.js +11 -10
  79. package/dist/esm/applicationRoles.js +16 -9
  80. package/dist/esm/civic.js +8 -7
  81. package/dist/esm/client/check.js +61 -53
  82. package/dist/esm/client/consoleOnboarding.js +21 -0
  83. package/dist/esm/client/index.js +2 -1
  84. package/dist/esm/client/safety.js +8 -0
  85. package/dist/esm/consoleOnboarding.js +51 -0
  86. package/dist/esm/contentClaims.js +23 -14
  87. package/dist/esm/deviceDirectory.js +11 -9
  88. package/dist/esm/deviceSession.js +27 -25
  89. package/dist/esm/email/messages.js +18 -16
  90. package/dist/esm/emailAgentContext.js +11 -9
  91. package/dist/esm/externalIdentity.js +15 -11
  92. package/dist/esm/federationInstanceFetch.js +10 -5
  93. package/dist/esm/identity.js +17 -15
  94. package/dist/esm/identityLink.js +6 -4
  95. package/dist/esm/identityProof.js +6 -4
  96. package/dist/esm/inboxPush.js +3 -2
  97. package/dist/esm/index.js +5 -2
  98. package/dist/esm/inference/accountBilling.js +33 -31
  99. package/dist/esm/inference/aliaModelRelease.js +7 -5
  100. package/dist/esm/inference/attribution.js +14 -12
  101. package/dist/esm/inference/catalogue.js +33 -27
  102. package/dist/esm/inference/economics.js +22 -17
  103. package/dist/esm/inference/embeddings.js +9 -7
  104. package/dist/esm/inference/entitlement.js +15 -13
  105. package/dist/esm/inference/errors.js +13 -6
  106. package/dist/esm/inference/identifiers.js +31 -19
  107. package/dist/esm/inference/inbox.js +37 -35
  108. package/dist/esm/inference/modelDocumentation.js +14 -12
  109. package/dist/esm/inference/money.js +3 -2
  110. package/dist/esm/inference/priceVersion.js +8 -3
  111. package/dist/esm/inference/providerConnection.js +19 -12
  112. package/dist/esm/inference/realtime.js +85 -44
  113. package/dist/esm/inference/request.js +25 -23
  114. package/dist/esm/inference/routingPolicy.js +9 -7
  115. package/dist/esm/inference/streamEvents.js +20 -14
  116. package/dist/esm/inference/usage.js +30 -13
  117. package/dist/esm/keyRecovery.js +8 -6
  118. package/dist/esm/keyRotation.js +5 -4
  119. package/dist/esm/linkedAccounts.js +20 -16
  120. package/dist/esm/moderationReputation.js +27 -25
  121. package/dist/esm/notifications.js +23 -7
  122. package/dist/esm/numberChecks.js +41 -0
  123. package/dist/esm/oauth.js +14 -12
  124. package/dist/esm/organizations.js +23 -21
  125. package/dist/esm/products/access.js +10 -8
  126. package/dist/esm/products/billing.js +10 -8
  127. package/dist/esm/products/checkout.js +22 -10
  128. package/dist/esm/products/plans.js +15 -10
  129. package/dist/esm/protocol.js +4 -3
  130. package/dist/esm/recommendations.js +25 -17
  131. package/dist/esm/reputation.js +13 -11
  132. package/dist/esm/safety.js +45 -29
  133. package/dist/esm/serviceToken.js +80 -1
  134. package/dist/esm/sessionRevocation.js +6 -4
  135. package/dist/esm/signIn.js +42 -24
  136. package/dist/esm/stickers.js +17 -13
  137. package/dist/esm/stringChecks.js +63 -0
  138. package/dist/esm/transparency.js +14 -12
  139. package/dist/esm/updates.js +22 -20
  140. package/dist/esm/userInvalidation.js +4 -2
  141. package/dist/esm/userResponse.js +4 -3
  142. package/dist/esm/username.js +3 -2
  143. package/dist/types/accountAccess.d.ts +29 -70
  144. package/dist/types/accountEmail.d.ts +2 -14
  145. package/dist/types/accountGraph.d.ts +179 -171
  146. package/dist/types/accountName.d.ts +1 -1
  147. package/dist/types/accountSubject.d.ts +20 -93
  148. package/dist/types/agency.d.ts +528 -2924
  149. package/dist/types/agentKeys.d.ts +48 -421
  150. package/dist/types/appAssertions.d.ts +56 -210
  151. package/dist/types/applicationRoles.d.ts +30 -276
  152. package/dist/types/avatarCharacter.d.ts +1 -1
  153. package/dist/types/civic.d.ts +1 -13
  154. package/dist/types/client/agentKeys.d.ts +18 -18
  155. package/dist/types/client/appAssertions.d.ts +3 -3
  156. package/dist/types/client/check.d.ts +13 -13
  157. package/dist/types/client/consoleOnboarding.d.ts +16 -0
  158. package/dist/types/client/deviceDirectory.d.ts +51 -51
  159. package/dist/types/client/deviceSession.d.ts +14 -14
  160. package/dist/types/client/index.d.ts +2 -1
  161. package/dist/types/client/organizations.d.ts +25 -25
  162. package/dist/types/client/products.d.ts +33 -33
  163. package/dist/types/client/recommendations.d.ts +2 -2
  164. package/dist/types/client/safety.d.ts +53 -45
  165. package/dist/types/client/sessionStatus.d.ts +4 -4
  166. package/dist/types/client/signIn.d.ts +1 -1
  167. package/dist/types/commonsSignIn.d.ts +4 -1
  168. package/dist/types/consoleOnboarding.d.ts +57 -0
  169. package/dist/types/contentClaims.d.ts +24 -180
  170. package/dist/types/deviceDirectory.d.ts +109 -1040
  171. package/dist/types/deviceSession.d.ts +36 -298
  172. package/dist/types/email/messages.d.ts +212 -1793
  173. package/dist/types/emailAgentContext.d.ts +10 -194
  174. package/dist/types/externalIdentity.d.ts +121 -615
  175. package/dist/types/federationInstanceFetch.d.ts +3 -32
  176. package/dist/types/identity.d.ts +15 -92
  177. package/dist/types/identityLink.d.ts +6 -84
  178. package/dist/types/identityProof.d.ts +5 -17
  179. package/dist/types/inboxPush.d.ts +1 -9
  180. package/dist/types/index.d.ts +6 -3
  181. package/dist/types/inference/accountBilling.d.ts +151 -488
  182. package/dist/types/inference/aliaModelRelease.d.ts +42 -439
  183. package/dist/types/inference/attribution.d.ts +75 -104
  184. package/dist/types/inference/catalogue.d.ts +417 -1599
  185. package/dist/types/inference/economics.d.ts +69 -276
  186. package/dist/types/inference/embeddings.d.ts +110 -406
  187. package/dist/types/inference/entitlement.d.ts +80 -335
  188. package/dist/types/inference/errors.d.ts +90 -102
  189. package/dist/types/inference/identifiers.d.ts +12 -4
  190. package/dist/types/inference/inbox.d.ts +105 -420
  191. package/dist/types/inference/modelDocumentation.d.ts +201 -1390
  192. package/dist/types/inference/money.d.ts +65 -32
  193. package/dist/types/inference/priceVersion.d.ts +53 -120
  194. package/dist/types/inference/providerConnection.d.ts +253 -710
  195. package/dist/types/inference/realtime.d.ts +954 -6825
  196. package/dist/types/inference/request.d.ts +300 -2572
  197. package/dist/types/inference/routingPolicy.d.ts +95 -503
  198. package/dist/types/inference/streamEvents.d.ts +253 -721
  199. package/dist/types/inference/usage.d.ts +317 -950
  200. package/dist/types/keyRecovery.d.ts +3 -51
  201. package/dist/types/keyRotation.d.ts +3 -38
  202. package/dist/types/linkedAccounts.d.ts +50 -236
  203. package/dist/types/moderationReputation.d.ts +81 -14
  204. package/dist/types/notifications.d.ts +19 -51
  205. package/dist/types/numberChecks.d.ts +9 -0
  206. package/dist/types/oauth.d.ts +101 -809
  207. package/dist/types/organizations.d.ts +268 -921
  208. package/dist/types/oxyRecordTypes.d.ts +11 -1
  209. package/dist/types/products/access.d.ts +125 -775
  210. package/dist/types/products/billing.d.ts +67 -503
  211. package/dist/types/products/checkout.d.ts +16 -69
  212. package/dist/types/products/plans.d.ts +33 -366
  213. package/dist/types/recommendations.d.ts +76 -389
  214. package/dist/types/reputation.d.ts +37 -5
  215. package/dist/types/safety.d.ts +410 -2050
  216. package/dist/types/serviceToken.d.ts +247 -7
  217. package/dist/types/sessionRevocation.d.ts +2 -17
  218. package/dist/types/sessionStatus.d.ts +27 -115
  219. package/dist/types/signIn.d.ts +53 -553
  220. package/dist/types/stickers.d.ts +67 -819
  221. package/dist/types/stringChecks.d.ts +16 -0
  222. package/dist/types/transparency.d.ts +14 -302
  223. package/dist/types/updates.d.ts +60 -316
  224. package/dist/types/userInvalidation.d.ts +4 -13
  225. package/dist/types/userResponse.d.ts +302 -2400
  226. package/dist/types/username.d.ts +3 -3
  227. package/package.json +3 -4
@@ -31,28 +31,14 @@ import { z } from "zod";
31
31
  * with the request. Both are transient: neither is persisted by default, and
32
32
  * neither appears in a receipt, a log line or a telemetry event.
33
33
  */
34
- export declare const inferenceContentSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
34
+ export declare const inferenceContentSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
35
35
  kind: z.ZodLiteral<"url">;
36
36
  url: z.ZodString;
37
- }, "strict", z.ZodTypeAny, {
38
- kind: "url";
39
- url: string;
40
- }, {
41
- kind: "url";
42
- url: string;
43
- }>, z.ZodObject<{
37
+ }, z.core.$strict>, z.ZodObject<{
44
38
  kind: z.ZodLiteral<"inline">;
45
39
  mediaType: z.ZodString;
46
40
  data: z.ZodString;
47
- }, "strict", z.ZodTypeAny, {
48
- kind: "inline";
49
- data: string;
50
- mediaType: string;
51
- }, {
52
- kind: "inline";
53
- data: string;
54
- mediaType: string;
55
- }>]>;
41
+ }, z.core.$strict>], "kind">;
56
42
  /**
57
43
  * One part of a message's content. A message is always a list of parts.
58
44
  *
@@ -85,164 +71,49 @@ export declare const inferenceContentSourceSchema: z.ZodDiscriminatedUnion<"kind
85
71
  * no words from the answer, while an OpenAI-compatible `refusal` does. A required
86
72
  * field would force the first provider to invent a sentence.
87
73
  */
88
- export declare const inferenceContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
74
+ export declare const inferenceContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
89
75
  type: z.ZodLiteral<"text">;
90
76
  text: z.ZodString;
91
- }, "strict", z.ZodTypeAny, {
92
- type: "text";
93
- text: string;
94
- }, {
95
- type: "text";
96
- text: string;
97
- }>, z.ZodObject<{
77
+ }, z.core.$strict>, z.ZodObject<{
98
78
  type: z.ZodLiteral<"image">;
99
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
79
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
100
80
  kind: z.ZodLiteral<"url">;
101
81
  url: z.ZodString;
102
- }, "strict", z.ZodTypeAny, {
103
- kind: "url";
104
- url: string;
105
- }, {
106
- kind: "url";
107
- url: string;
108
- }>, z.ZodObject<{
82
+ }, z.core.$strict>, z.ZodObject<{
109
83
  kind: z.ZodLiteral<"inline">;
110
84
  mediaType: z.ZodString;
111
85
  data: z.ZodString;
112
- }, "strict", z.ZodTypeAny, {
113
- kind: "inline";
114
- data: string;
115
- mediaType: string;
116
- }, {
117
- kind: "inline";
118
- data: string;
119
- mediaType: string;
120
- }>]>;
121
- /** Provider-independent hint; providers that ignore it are unaffected. */
122
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
123
- }, "strict", z.ZodTypeAny, {
124
- type: "image";
125
- source: {
126
- kind: "url";
127
- url: string;
128
- } | {
129
- kind: "inline";
130
- data: string;
131
- mediaType: string;
132
- };
133
- detail?: "low" | "high" | "auto" | undefined;
134
- }, {
135
- type: "image";
136
- source: {
137
- kind: "url";
138
- url: string;
139
- } | {
140
- kind: "inline";
141
- data: string;
142
- mediaType: string;
143
- };
144
- detail?: "low" | "high" | "auto" | undefined;
145
- }>, z.ZodObject<{
86
+ }, z.core.$strict>], "kind">;
87
+ detail: z.ZodOptional<z.ZodEnum<{
88
+ low: "low";
89
+ high: "high";
90
+ auto: "auto";
91
+ }>>;
92
+ }, z.core.$strict>, z.ZodObject<{
146
93
  type: z.ZodLiteral<"audio">;
147
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
94
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
148
95
  kind: z.ZodLiteral<"url">;
149
96
  url: z.ZodString;
150
- }, "strict", z.ZodTypeAny, {
151
- kind: "url";
152
- url: string;
153
- }, {
154
- kind: "url";
155
- url: string;
156
- }>, z.ZodObject<{
97
+ }, z.core.$strict>, z.ZodObject<{
157
98
  kind: z.ZodLiteral<"inline">;
158
99
  mediaType: z.ZodString;
159
100
  data: z.ZodString;
160
- }, "strict", z.ZodTypeAny, {
161
- kind: "inline";
162
- data: string;
163
- mediaType: string;
164
- }, {
165
- kind: "inline";
166
- data: string;
167
- mediaType: string;
168
- }>]>;
169
- }, "strict", z.ZodTypeAny, {
170
- type: "audio";
171
- source: {
172
- kind: "url";
173
- url: string;
174
- } | {
175
- kind: "inline";
176
- data: string;
177
- mediaType: string;
178
- };
179
- }, {
180
- type: "audio";
181
- source: {
182
- kind: "url";
183
- url: string;
184
- } | {
185
- kind: "inline";
186
- data: string;
187
- mediaType: string;
188
- };
189
- }>, z.ZodObject<{
101
+ }, z.core.$strict>], "kind">;
102
+ }, z.core.$strict>, z.ZodObject<{
190
103
  type: z.ZodLiteral<"file">;
191
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
104
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
192
105
  kind: z.ZodLiteral<"url">;
193
106
  url: z.ZodString;
194
- }, "strict", z.ZodTypeAny, {
195
- kind: "url";
196
- url: string;
197
- }, {
198
- kind: "url";
199
- url: string;
200
- }>, z.ZodObject<{
107
+ }, z.core.$strict>, z.ZodObject<{
201
108
  kind: z.ZodLiteral<"inline">;
202
109
  mediaType: z.ZodString;
203
110
  data: z.ZodString;
204
- }, "strict", z.ZodTypeAny, {
205
- kind: "inline";
206
- data: string;
207
- mediaType: string;
208
- }, {
209
- kind: "inline";
210
- data: string;
211
- mediaType: string;
212
- }>]>;
111
+ }, z.core.$strict>], "kind">;
213
112
  filename: z.ZodOptional<z.ZodString>;
214
- }, "strict", z.ZodTypeAny, {
215
- type: "file";
216
- source: {
217
- kind: "url";
218
- url: string;
219
- } | {
220
- kind: "inline";
221
- data: string;
222
- mediaType: string;
223
- };
224
- filename?: string | undefined;
225
- }, {
226
- type: "file";
227
- source: {
228
- kind: "url";
229
- url: string;
230
- } | {
231
- kind: "inline";
232
- data: string;
233
- mediaType: string;
234
- };
235
- filename?: string | undefined;
236
- }>, z.ZodObject<{
113
+ }, z.core.$strict>, z.ZodObject<{
237
114
  type: z.ZodLiteral<"refusal">;
238
115
  text: z.ZodString;
239
- }, "strict", z.ZodTypeAny, {
240
- type: "refusal";
241
- text: string;
242
- }, {
243
- type: "refusal";
244
- text: string;
245
- }>]>;
116
+ }, z.core.$strict>], "type">;
246
117
  /**
247
118
  * A tool call an assistant made, in the normalized form.
248
119
  *
@@ -254,16 +125,14 @@ export declare const inferenceToolCallSchema: z.ZodObject<{
254
125
  id: z.ZodString;
255
126
  name: z.ZodString;
256
127
  arguments: z.ZodString;
257
- }, "strict", z.ZodTypeAny, {
258
- name: string;
259
- id: string;
260
- arguments: string;
261
- }, {
262
- name: string;
263
- id: string;
264
- arguments: string;
128
+ }, z.core.$strict>;
129
+ export declare const inferenceMessageRoleSchema: z.ZodEnum<{
130
+ system: "system";
131
+ tool: "tool";
132
+ user: "user";
133
+ developer: "developer";
134
+ assistant: "assistant";
265
135
  }>;
266
- export declare const inferenceMessageRoleSchema: z.ZodEnum<["system", "developer", "user", "assistant", "tool"]>;
267
136
  /**
268
137
  * One normalized message.
269
138
  *
@@ -272,377 +141,65 @@ export declare const inferenceMessageRoleSchema: z.ZodEnum<["system", "developer
272
141
  * dialects; the refinement is what stops `toolCallId` from riding on a user
273
142
  * message, where every provider would silently ignore it.
274
143
  */
275
- export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
276
- role: z.ZodEnum<["system", "developer", "user", "assistant", "tool"]>;
277
- content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
144
+ export declare const inferenceMessageSchema: z.ZodObject<{
145
+ role: z.ZodEnum<{
146
+ system: "system";
147
+ tool: "tool";
148
+ user: "user";
149
+ developer: "developer";
150
+ assistant: "assistant";
151
+ }>;
152
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
278
153
  type: z.ZodLiteral<"text">;
279
154
  text: z.ZodString;
280
- }, "strict", z.ZodTypeAny, {
281
- type: "text";
282
- text: string;
283
- }, {
284
- type: "text";
285
- text: string;
286
- }>, z.ZodObject<{
155
+ }, z.core.$strict>, z.ZodObject<{
287
156
  type: z.ZodLiteral<"image">;
288
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
157
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
289
158
  kind: z.ZodLiteral<"url">;
290
159
  url: z.ZodString;
291
- }, "strict", z.ZodTypeAny, {
292
- kind: "url";
293
- url: string;
294
- }, {
295
- kind: "url";
296
- url: string;
297
- }>, z.ZodObject<{
160
+ }, z.core.$strict>, z.ZodObject<{
298
161
  kind: z.ZodLiteral<"inline">;
299
162
  mediaType: z.ZodString;
300
163
  data: z.ZodString;
301
- }, "strict", z.ZodTypeAny, {
302
- kind: "inline";
303
- data: string;
304
- mediaType: string;
305
- }, {
306
- kind: "inline";
307
- data: string;
308
- mediaType: string;
309
- }>]>;
310
- /** Provider-independent hint; providers that ignore it are unaffected. */
311
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
312
- }, "strict", z.ZodTypeAny, {
313
- type: "image";
314
- source: {
315
- kind: "url";
316
- url: string;
317
- } | {
318
- kind: "inline";
319
- data: string;
320
- mediaType: string;
321
- };
322
- detail?: "low" | "high" | "auto" | undefined;
323
- }, {
324
- type: "image";
325
- source: {
326
- kind: "url";
327
- url: string;
328
- } | {
329
- kind: "inline";
330
- data: string;
331
- mediaType: string;
332
- };
333
- detail?: "low" | "high" | "auto" | undefined;
334
- }>, z.ZodObject<{
164
+ }, z.core.$strict>], "kind">;
165
+ detail: z.ZodOptional<z.ZodEnum<{
166
+ low: "low";
167
+ high: "high";
168
+ auto: "auto";
169
+ }>>;
170
+ }, z.core.$strict>, z.ZodObject<{
335
171
  type: z.ZodLiteral<"audio">;
336
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
172
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
337
173
  kind: z.ZodLiteral<"url">;
338
174
  url: z.ZodString;
339
- }, "strict", z.ZodTypeAny, {
340
- kind: "url";
341
- url: string;
342
- }, {
343
- kind: "url";
344
- url: string;
345
- }>, z.ZodObject<{
175
+ }, z.core.$strict>, z.ZodObject<{
346
176
  kind: z.ZodLiteral<"inline">;
347
177
  mediaType: z.ZodString;
348
178
  data: z.ZodString;
349
- }, "strict", z.ZodTypeAny, {
350
- kind: "inline";
351
- data: string;
352
- mediaType: string;
353
- }, {
354
- kind: "inline";
355
- data: string;
356
- mediaType: string;
357
- }>]>;
358
- }, "strict", z.ZodTypeAny, {
359
- type: "audio";
360
- source: {
361
- kind: "url";
362
- url: string;
363
- } | {
364
- kind: "inline";
365
- data: string;
366
- mediaType: string;
367
- };
368
- }, {
369
- type: "audio";
370
- source: {
371
- kind: "url";
372
- url: string;
373
- } | {
374
- kind: "inline";
375
- data: string;
376
- mediaType: string;
377
- };
378
- }>, z.ZodObject<{
179
+ }, z.core.$strict>], "kind">;
180
+ }, z.core.$strict>, z.ZodObject<{
379
181
  type: z.ZodLiteral<"file">;
380
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
182
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
381
183
  kind: z.ZodLiteral<"url">;
382
184
  url: z.ZodString;
383
- }, "strict", z.ZodTypeAny, {
384
- kind: "url";
385
- url: string;
386
- }, {
387
- kind: "url";
388
- url: string;
389
- }>, z.ZodObject<{
185
+ }, z.core.$strict>, z.ZodObject<{
390
186
  kind: z.ZodLiteral<"inline">;
391
187
  mediaType: z.ZodString;
392
188
  data: z.ZodString;
393
- }, "strict", z.ZodTypeAny, {
394
- kind: "inline";
395
- data: string;
396
- mediaType: string;
397
- }, {
398
- kind: "inline";
399
- data: string;
400
- mediaType: string;
401
- }>]>;
189
+ }, z.core.$strict>], "kind">;
402
190
  filename: z.ZodOptional<z.ZodString>;
403
- }, "strict", z.ZodTypeAny, {
404
- type: "file";
405
- source: {
406
- kind: "url";
407
- url: string;
408
- } | {
409
- kind: "inline";
410
- data: string;
411
- mediaType: string;
412
- };
413
- filename?: string | undefined;
414
- }, {
415
- type: "file";
416
- source: {
417
- kind: "url";
418
- url: string;
419
- } | {
420
- kind: "inline";
421
- data: string;
422
- mediaType: string;
423
- };
424
- filename?: string | undefined;
425
- }>, z.ZodObject<{
191
+ }, z.core.$strict>, z.ZodObject<{
426
192
  type: z.ZodLiteral<"refusal">;
427
193
  text: z.ZodString;
428
- }, "strict", z.ZodTypeAny, {
429
- type: "refusal";
430
- text: string;
431
- }, {
432
- type: "refusal";
433
- text: string;
434
- }>]>, "many">;
435
- /** Participant name, where the dialect supports naming participants. */
194
+ }, z.core.$strict>], "type">>;
436
195
  name: z.ZodOptional<z.ZodString>;
437
- /** The tool call this message answers. Required on, and only on, `tool`. */
438
196
  toolCallId: z.ZodOptional<z.ZodString>;
439
- /** Tool calls the assistant made. Only on `assistant`. */
440
197
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
441
198
  id: z.ZodString;
442
199
  name: z.ZodString;
443
200
  arguments: z.ZodString;
444
- }, "strict", z.ZodTypeAny, {
445
- name: string;
446
- id: string;
447
- arguments: string;
448
- }, {
449
- name: string;
450
- id: string;
451
- arguments: string;
452
- }>, "many">>;
453
- }, "strict", z.ZodTypeAny, {
454
- role: "system" | "tool" | "user" | "developer" | "assistant";
455
- content: ({
456
- type: "text";
457
- text: string;
458
- } | {
459
- type: "image";
460
- source: {
461
- kind: "url";
462
- url: string;
463
- } | {
464
- kind: "inline";
465
- data: string;
466
- mediaType: string;
467
- };
468
- detail?: "low" | "high" | "auto" | undefined;
469
- } | {
470
- type: "audio";
471
- source: {
472
- kind: "url";
473
- url: string;
474
- } | {
475
- kind: "inline";
476
- data: string;
477
- mediaType: string;
478
- };
479
- } | {
480
- type: "file";
481
- source: {
482
- kind: "url";
483
- url: string;
484
- } | {
485
- kind: "inline";
486
- data: string;
487
- mediaType: string;
488
- };
489
- filename?: string | undefined;
490
- } | {
491
- type: "refusal";
492
- text: string;
493
- })[];
494
- name?: string | undefined;
495
- toolCallId?: string | undefined;
496
- toolCalls?: {
497
- name: string;
498
- id: string;
499
- arguments: string;
500
- }[] | undefined;
501
- }, {
502
- role: "system" | "tool" | "user" | "developer" | "assistant";
503
- content: ({
504
- type: "text";
505
- text: string;
506
- } | {
507
- type: "image";
508
- source: {
509
- kind: "url";
510
- url: string;
511
- } | {
512
- kind: "inline";
513
- data: string;
514
- mediaType: string;
515
- };
516
- detail?: "low" | "high" | "auto" | undefined;
517
- } | {
518
- type: "audio";
519
- source: {
520
- kind: "url";
521
- url: string;
522
- } | {
523
- kind: "inline";
524
- data: string;
525
- mediaType: string;
526
- };
527
- } | {
528
- type: "file";
529
- source: {
530
- kind: "url";
531
- url: string;
532
- } | {
533
- kind: "inline";
534
- data: string;
535
- mediaType: string;
536
- };
537
- filename?: string | undefined;
538
- } | {
539
- type: "refusal";
540
- text: string;
541
- })[];
542
- name?: string | undefined;
543
- toolCallId?: string | undefined;
544
- toolCalls?: {
545
- name: string;
546
- id: string;
547
- arguments: string;
548
- }[] | undefined;
549
- }>, {
550
- role: "system" | "tool" | "user" | "developer" | "assistant";
551
- content: ({
552
- type: "text";
553
- text: string;
554
- } | {
555
- type: "image";
556
- source: {
557
- kind: "url";
558
- url: string;
559
- } | {
560
- kind: "inline";
561
- data: string;
562
- mediaType: string;
563
- };
564
- detail?: "low" | "high" | "auto" | undefined;
565
- } | {
566
- type: "audio";
567
- source: {
568
- kind: "url";
569
- url: string;
570
- } | {
571
- kind: "inline";
572
- data: string;
573
- mediaType: string;
574
- };
575
- } | {
576
- type: "file";
577
- source: {
578
- kind: "url";
579
- url: string;
580
- } | {
581
- kind: "inline";
582
- data: string;
583
- mediaType: string;
584
- };
585
- filename?: string | undefined;
586
- } | {
587
- type: "refusal";
588
- text: string;
589
- })[];
590
- name?: string | undefined;
591
- toolCallId?: string | undefined;
592
- toolCalls?: {
593
- name: string;
594
- id: string;
595
- arguments: string;
596
- }[] | undefined;
597
- }, {
598
- role: "system" | "tool" | "user" | "developer" | "assistant";
599
- content: ({
600
- type: "text";
601
- text: string;
602
- } | {
603
- type: "image";
604
- source: {
605
- kind: "url";
606
- url: string;
607
- } | {
608
- kind: "inline";
609
- data: string;
610
- mediaType: string;
611
- };
612
- detail?: "low" | "high" | "auto" | undefined;
613
- } | {
614
- type: "audio";
615
- source: {
616
- kind: "url";
617
- url: string;
618
- } | {
619
- kind: "inline";
620
- data: string;
621
- mediaType: string;
622
- };
623
- } | {
624
- type: "file";
625
- source: {
626
- kind: "url";
627
- url: string;
628
- } | {
629
- kind: "inline";
630
- data: string;
631
- mediaType: string;
632
- };
633
- filename?: string | undefined;
634
- } | {
635
- type: "refusal";
636
- text: string;
637
- })[];
638
- name?: string | undefined;
639
- toolCallId?: string | undefined;
640
- toolCalls?: {
641
- name: string;
642
- id: string;
643
- arguments: string;
644
- }[] | undefined;
645
- }>;
201
+ }, z.core.$strict>>>;
202
+ }, z.core.$strict>;
646
203
  /**
647
204
  * The request's input.
648
205
  *
@@ -651,500 +208,74 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
651
208
  * pretending the latter is a one-message conversation loses the batch boundary
652
209
  * that both metering and provider translation depend on.
653
210
  */
654
- export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.ZodObject<{
211
+ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
655
212
  format: z.ZodLiteral<"messages">;
656
- messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
657
- role: z.ZodEnum<["system", "developer", "user", "assistant", "tool"]>;
658
- content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
213
+ messages: z.ZodArray<z.ZodObject<{
214
+ role: z.ZodEnum<{
215
+ system: "system";
216
+ tool: "tool";
217
+ user: "user";
218
+ developer: "developer";
219
+ assistant: "assistant";
220
+ }>;
221
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
659
222
  type: z.ZodLiteral<"text">;
660
223
  text: z.ZodString;
661
- }, "strict", z.ZodTypeAny, {
662
- type: "text";
663
- text: string;
664
- }, {
665
- type: "text";
666
- text: string;
667
- }>, z.ZodObject<{
224
+ }, z.core.$strict>, z.ZodObject<{
668
225
  type: z.ZodLiteral<"image">;
669
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
226
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
670
227
  kind: z.ZodLiteral<"url">;
671
228
  url: z.ZodString;
672
- }, "strict", z.ZodTypeAny, {
673
- kind: "url";
674
- url: string;
675
- }, {
676
- kind: "url";
677
- url: string;
678
- }>, z.ZodObject<{
229
+ }, z.core.$strict>, z.ZodObject<{
679
230
  kind: z.ZodLiteral<"inline">;
680
231
  mediaType: z.ZodString;
681
232
  data: z.ZodString;
682
- }, "strict", z.ZodTypeAny, {
683
- kind: "inline";
684
- data: string;
685
- mediaType: string;
686
- }, {
687
- kind: "inline";
688
- data: string;
689
- mediaType: string;
690
- }>]>;
691
- /** Provider-independent hint; providers that ignore it are unaffected. */
692
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
693
- }, "strict", z.ZodTypeAny, {
694
- type: "image";
695
- source: {
696
- kind: "url";
697
- url: string;
698
- } | {
699
- kind: "inline";
700
- data: string;
701
- mediaType: string;
702
- };
703
- detail?: "low" | "high" | "auto" | undefined;
704
- }, {
705
- type: "image";
706
- source: {
707
- kind: "url";
708
- url: string;
709
- } | {
710
- kind: "inline";
711
- data: string;
712
- mediaType: string;
713
- };
714
- detail?: "low" | "high" | "auto" | undefined;
715
- }>, z.ZodObject<{
233
+ }, z.core.$strict>], "kind">;
234
+ detail: z.ZodOptional<z.ZodEnum<{
235
+ low: "low";
236
+ high: "high";
237
+ auto: "auto";
238
+ }>>;
239
+ }, z.core.$strict>, z.ZodObject<{
716
240
  type: z.ZodLiteral<"audio">;
717
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
241
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
718
242
  kind: z.ZodLiteral<"url">;
719
243
  url: z.ZodString;
720
- }, "strict", z.ZodTypeAny, {
721
- kind: "url";
722
- url: string;
723
- }, {
724
- kind: "url";
725
- url: string;
726
- }>, z.ZodObject<{
244
+ }, z.core.$strict>, z.ZodObject<{
727
245
  kind: z.ZodLiteral<"inline">;
728
246
  mediaType: z.ZodString;
729
247
  data: z.ZodString;
730
- }, "strict", z.ZodTypeAny, {
731
- kind: "inline";
732
- data: string;
733
- mediaType: string;
734
- }, {
735
- kind: "inline";
736
- data: string;
737
- mediaType: string;
738
- }>]>;
739
- }, "strict", z.ZodTypeAny, {
740
- type: "audio";
741
- source: {
742
- kind: "url";
743
- url: string;
744
- } | {
745
- kind: "inline";
746
- data: string;
747
- mediaType: string;
748
- };
749
- }, {
750
- type: "audio";
751
- source: {
752
- kind: "url";
753
- url: string;
754
- } | {
755
- kind: "inline";
756
- data: string;
757
- mediaType: string;
758
- };
759
- }>, z.ZodObject<{
248
+ }, z.core.$strict>], "kind">;
249
+ }, z.core.$strict>, z.ZodObject<{
760
250
  type: z.ZodLiteral<"file">;
761
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
251
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
762
252
  kind: z.ZodLiteral<"url">;
763
253
  url: z.ZodString;
764
- }, "strict", z.ZodTypeAny, {
765
- kind: "url";
766
- url: string;
767
- }, {
768
- kind: "url";
769
- url: string;
770
- }>, z.ZodObject<{
254
+ }, z.core.$strict>, z.ZodObject<{
771
255
  kind: z.ZodLiteral<"inline">;
772
256
  mediaType: z.ZodString;
773
257
  data: z.ZodString;
774
- }, "strict", z.ZodTypeAny, {
775
- kind: "inline";
776
- data: string;
777
- mediaType: string;
778
- }, {
779
- kind: "inline";
780
- data: string;
781
- mediaType: string;
782
- }>]>;
258
+ }, z.core.$strict>], "kind">;
783
259
  filename: z.ZodOptional<z.ZodString>;
784
- }, "strict", z.ZodTypeAny, {
785
- type: "file";
786
- source: {
787
- kind: "url";
788
- url: string;
789
- } | {
790
- kind: "inline";
791
- data: string;
792
- mediaType: string;
793
- };
794
- filename?: string | undefined;
795
- }, {
796
- type: "file";
797
- source: {
798
- kind: "url";
799
- url: string;
800
- } | {
801
- kind: "inline";
802
- data: string;
803
- mediaType: string;
804
- };
805
- filename?: string | undefined;
806
- }>, z.ZodObject<{
260
+ }, z.core.$strict>, z.ZodObject<{
807
261
  type: z.ZodLiteral<"refusal">;
808
262
  text: z.ZodString;
809
- }, "strict", z.ZodTypeAny, {
810
- type: "refusal";
811
- text: string;
812
- }, {
813
- type: "refusal";
814
- text: string;
815
- }>]>, "many">;
816
- /** Participant name, where the dialect supports naming participants. */
263
+ }, z.core.$strict>], "type">>;
817
264
  name: z.ZodOptional<z.ZodString>;
818
- /** The tool call this message answers. Required on, and only on, `tool`. */
819
265
  toolCallId: z.ZodOptional<z.ZodString>;
820
- /** Tool calls the assistant made. Only on `assistant`. */
821
266
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
822
267
  id: z.ZodString;
823
268
  name: z.ZodString;
824
269
  arguments: z.ZodString;
825
- }, "strict", z.ZodTypeAny, {
826
- name: string;
827
- id: string;
828
- arguments: string;
829
- }, {
830
- name: string;
831
- id: string;
832
- arguments: string;
833
- }>, "many">>;
834
- }, "strict", z.ZodTypeAny, {
835
- role: "system" | "tool" | "user" | "developer" | "assistant";
836
- content: ({
837
- type: "text";
838
- text: string;
839
- } | {
840
- type: "image";
841
- source: {
842
- kind: "url";
843
- url: string;
844
- } | {
845
- kind: "inline";
846
- data: string;
847
- mediaType: string;
848
- };
849
- detail?: "low" | "high" | "auto" | undefined;
850
- } | {
851
- type: "audio";
852
- source: {
853
- kind: "url";
854
- url: string;
855
- } | {
856
- kind: "inline";
857
- data: string;
858
- mediaType: string;
859
- };
860
- } | {
861
- type: "file";
862
- source: {
863
- kind: "url";
864
- url: string;
865
- } | {
866
- kind: "inline";
867
- data: string;
868
- mediaType: string;
869
- };
870
- filename?: string | undefined;
871
- } | {
872
- type: "refusal";
873
- text: string;
874
- })[];
875
- name?: string | undefined;
876
- toolCallId?: string | undefined;
877
- toolCalls?: {
878
- name: string;
879
- id: string;
880
- arguments: string;
881
- }[] | undefined;
882
- }, {
883
- role: "system" | "tool" | "user" | "developer" | "assistant";
884
- content: ({
885
- type: "text";
886
- text: string;
887
- } | {
888
- type: "image";
889
- source: {
890
- kind: "url";
891
- url: string;
892
- } | {
893
- kind: "inline";
894
- data: string;
895
- mediaType: string;
896
- };
897
- detail?: "low" | "high" | "auto" | undefined;
898
- } | {
899
- type: "audio";
900
- source: {
901
- kind: "url";
902
- url: string;
903
- } | {
904
- kind: "inline";
905
- data: string;
906
- mediaType: string;
907
- };
908
- } | {
909
- type: "file";
910
- source: {
911
- kind: "url";
912
- url: string;
913
- } | {
914
- kind: "inline";
915
- data: string;
916
- mediaType: string;
917
- };
918
- filename?: string | undefined;
919
- } | {
920
- type: "refusal";
921
- text: string;
922
- })[];
923
- name?: string | undefined;
924
- toolCallId?: string | undefined;
925
- toolCalls?: {
926
- name: string;
927
- id: string;
928
- arguments: string;
929
- }[] | undefined;
930
- }>, {
931
- role: "system" | "tool" | "user" | "developer" | "assistant";
932
- content: ({
933
- type: "text";
934
- text: string;
935
- } | {
936
- type: "image";
937
- source: {
938
- kind: "url";
939
- url: string;
940
- } | {
941
- kind: "inline";
942
- data: string;
943
- mediaType: string;
944
- };
945
- detail?: "low" | "high" | "auto" | undefined;
946
- } | {
947
- type: "audio";
948
- source: {
949
- kind: "url";
950
- url: string;
951
- } | {
952
- kind: "inline";
953
- data: string;
954
- mediaType: string;
955
- };
956
- } | {
957
- type: "file";
958
- source: {
959
- kind: "url";
960
- url: string;
961
- } | {
962
- kind: "inline";
963
- data: string;
964
- mediaType: string;
965
- };
966
- filename?: string | undefined;
967
- } | {
968
- type: "refusal";
969
- text: string;
970
- })[];
971
- name?: string | undefined;
972
- toolCallId?: string | undefined;
973
- toolCalls?: {
974
- name: string;
975
- id: string;
976
- arguments: string;
977
- }[] | undefined;
978
- }, {
979
- role: "system" | "tool" | "user" | "developer" | "assistant";
980
- content: ({
981
- type: "text";
982
- text: string;
983
- } | {
984
- type: "image";
985
- source: {
986
- kind: "url";
987
- url: string;
988
- } | {
989
- kind: "inline";
990
- data: string;
991
- mediaType: string;
992
- };
993
- detail?: "low" | "high" | "auto" | undefined;
994
- } | {
995
- type: "audio";
996
- source: {
997
- kind: "url";
998
- url: string;
999
- } | {
1000
- kind: "inline";
1001
- data: string;
1002
- mediaType: string;
1003
- };
1004
- } | {
1005
- type: "file";
1006
- source: {
1007
- kind: "url";
1008
- url: string;
1009
- } | {
1010
- kind: "inline";
1011
- data: string;
1012
- mediaType: string;
1013
- };
1014
- filename?: string | undefined;
1015
- } | {
1016
- type: "refusal";
1017
- text: string;
1018
- })[];
1019
- name?: string | undefined;
1020
- toolCallId?: string | undefined;
1021
- toolCalls?: {
1022
- name: string;
1023
- id: string;
1024
- arguments: string;
1025
- }[] | undefined;
1026
- }>, "many">;
1027
- }, "strict", z.ZodTypeAny, {
1028
- format: "messages";
1029
- messages: {
1030
- role: "system" | "tool" | "user" | "developer" | "assistant";
1031
- content: ({
1032
- type: "text";
1033
- text: string;
1034
- } | {
1035
- type: "image";
1036
- source: {
1037
- kind: "url";
1038
- url: string;
1039
- } | {
1040
- kind: "inline";
1041
- data: string;
1042
- mediaType: string;
1043
- };
1044
- detail?: "low" | "high" | "auto" | undefined;
1045
- } | {
1046
- type: "audio";
1047
- source: {
1048
- kind: "url";
1049
- url: string;
1050
- } | {
1051
- kind: "inline";
1052
- data: string;
1053
- mediaType: string;
1054
- };
1055
- } | {
1056
- type: "file";
1057
- source: {
1058
- kind: "url";
1059
- url: string;
1060
- } | {
1061
- kind: "inline";
1062
- data: string;
1063
- mediaType: string;
1064
- };
1065
- filename?: string | undefined;
1066
- } | {
1067
- type: "refusal";
1068
- text: string;
1069
- })[];
1070
- name?: string | undefined;
1071
- toolCallId?: string | undefined;
1072
- toolCalls?: {
1073
- name: string;
1074
- id: string;
1075
- arguments: string;
1076
- }[] | undefined;
1077
- }[];
1078
- }, {
1079
- format: "messages";
1080
- messages: {
1081
- role: "system" | "tool" | "user" | "developer" | "assistant";
1082
- content: ({
1083
- type: "text";
1084
- text: string;
1085
- } | {
1086
- type: "image";
1087
- source: {
1088
- kind: "url";
1089
- url: string;
1090
- } | {
1091
- kind: "inline";
1092
- data: string;
1093
- mediaType: string;
1094
- };
1095
- detail?: "low" | "high" | "auto" | undefined;
1096
- } | {
1097
- type: "audio";
1098
- source: {
1099
- kind: "url";
1100
- url: string;
1101
- } | {
1102
- kind: "inline";
1103
- data: string;
1104
- mediaType: string;
1105
- };
1106
- } | {
1107
- type: "file";
1108
- source: {
1109
- kind: "url";
1110
- url: string;
1111
- } | {
1112
- kind: "inline";
1113
- data: string;
1114
- mediaType: string;
1115
- };
1116
- filename?: string | undefined;
1117
- } | {
1118
- type: "refusal";
1119
- text: string;
1120
- })[];
1121
- name?: string | undefined;
1122
- toolCallId?: string | undefined;
1123
- toolCalls?: {
1124
- name: string;
1125
- id: string;
1126
- arguments: string;
1127
- }[] | undefined;
1128
- }[];
1129
- }>, z.ZodObject<{
270
+ }, z.core.$strict>>>;
271
+ }, z.core.$strict>>;
272
+ }, z.core.$strict>, z.ZodObject<{
1130
273
  format: z.ZodLiteral<"text">;
1131
274
  text: z.ZodString;
1132
- }, "strict", z.ZodTypeAny, {
1133
- text: string;
1134
- format: "text";
1135
- }, {
1136
- text: string;
1137
- format: "text";
1138
- }>, z.ZodObject<{
275
+ }, z.core.$strict>, z.ZodObject<{
1139
276
  format: z.ZodLiteral<"text_batch">;
1140
- texts: z.ZodArray<z.ZodString, "many">;
1141
- }, "strict", z.ZodTypeAny, {
1142
- format: "text_batch";
1143
- texts: string[];
1144
- }, {
1145
- format: "text_batch";
1146
- texts: string[];
1147
- }>]>;
277
+ texts: z.ZodArray<z.ZodString>;
278
+ }, z.core.$strict>], "format">;
1148
279
  /** Sampling parameters, all optional: absent means the route's own default. */
1149
280
  export declare const samplingParametersSchema: z.ZodObject<{
1150
281
  temperature: z.ZodOptional<z.ZodNumber>;
@@ -1152,26 +283,9 @@ export declare const samplingParametersSchema: z.ZodObject<{
1152
283
  topK: z.ZodOptional<z.ZodNumber>;
1153
284
  frequencyPenalty: z.ZodOptional<z.ZodNumber>;
1154
285
  presencePenalty: z.ZodOptional<z.ZodNumber>;
1155
- /** A seed makes a request reproducible on providers that honour one. */
1156
286
  seed: z.ZodOptional<z.ZodNumber>;
1157
- stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1158
- }, "strict", z.ZodTypeAny, {
1159
- seed?: number | undefined;
1160
- temperature?: number | undefined;
1161
- topP?: number | undefined;
1162
- topK?: number | undefined;
1163
- frequencyPenalty?: number | undefined;
1164
- presencePenalty?: number | undefined;
1165
- stopSequences?: string[] | undefined;
1166
- }, {
1167
- seed?: number | undefined;
1168
- temperature?: number | undefined;
1169
- topP?: number | undefined;
1170
- topK?: number | undefined;
1171
- frequencyPenalty?: number | undefined;
1172
- presencePenalty?: number | undefined;
1173
- stopSequences?: string[] | undefined;
1174
- }>;
287
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
288
+ }, z.core.$strict>;
1175
289
  /**
1176
290
  * A tool the model may call. `parameters` is a JSON Schema document, carried
1177
291
  * as an opaque object: validating the customer's JSON Schema against a meta
@@ -1182,61 +296,28 @@ export declare const toolDefinitionSchema: z.ZodObject<{
1182
296
  name: z.ZodString;
1183
297
  description: z.ZodOptional<z.ZodString>;
1184
298
  parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1185
- /** Ask the provider to enforce the schema, where it supports enforcement. */
1186
299
  strict: z.ZodOptional<z.ZodBoolean>;
1187
- }, "strict", z.ZodTypeAny, {
1188
- type: "function";
1189
- name: string;
1190
- parameters: Record<string, unknown>;
1191
- strict?: boolean | undefined;
1192
- description?: string | undefined;
1193
- }, {
1194
- type: "function";
1195
- name: string;
1196
- parameters: Record<string, unknown>;
1197
- strict?: boolean | undefined;
1198
- description?: string | undefined;
1199
- }>;
300
+ }, z.core.$strict>;
1200
301
  /** Whether, and which, tool the model must call. */
1201
- export declare const toolChoiceSchema: z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
302
+ export declare const toolChoiceSchema: z.ZodUnion<readonly [z.ZodEnum<{
303
+ none: "none";
304
+ required: "required";
305
+ auto: "auto";
306
+ }>, z.ZodObject<{
1202
307
  type: z.ZodLiteral<"function">;
1203
308
  name: z.ZodString;
1204
- }, "strict", z.ZodTypeAny, {
1205
- type: "function";
1206
- name: string;
1207
- }, {
1208
- type: "function";
1209
- name: string;
1210
- }>]>;
309
+ }, z.core.$strict>]>;
1211
310
  /** Structured-output request: free text, any JSON object, or a named schema. */
1212
- export declare const responseFormatSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
311
+ export declare const responseFormatSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1213
312
  type: z.ZodLiteral<"text">;
1214
- }, "strict", z.ZodTypeAny, {
1215
- type: "text";
1216
- }, {
1217
- type: "text";
1218
- }>, z.ZodObject<{
313
+ }, z.core.$strict>, z.ZodObject<{
1219
314
  type: z.ZodLiteral<"json_object">;
1220
- }, "strict", z.ZodTypeAny, {
1221
- type: "json_object";
1222
- }, {
1223
- type: "json_object";
1224
- }>, z.ZodObject<{
315
+ }, z.core.$strict>, z.ZodObject<{
1225
316
  type: z.ZodLiteral<"json_schema">;
1226
317
  name: z.ZodString;
1227
318
  schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1228
319
  strict: z.ZodBoolean;
1229
- }, "strict", z.ZodTypeAny, {
1230
- type: "json_schema";
1231
- strict: boolean;
1232
- schema: Record<string, unknown>;
1233
- name: string;
1234
- }, {
1235
- type: "json_schema";
1236
- strict: boolean;
1237
- schema: Record<string, unknown>;
1238
- name: string;
1239
- }>]>;
320
+ }, z.core.$strict>], "type">;
1240
321
  /**
1241
322
  * The caller's reasoning control. Strict, like every leaf: a provider-specific
1242
323
  * knob (`budget_tokens`, `summary`) is refused rather than silently dropped.
@@ -1245,12 +326,12 @@ export declare const responseFormatSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
1245
326
  * in its catalogue `reasoningEfforts`; Kaana translates it per provider.
1246
327
  */
1247
328
  export declare const inferenceReasoningSchema: z.ZodObject<{
1248
- effort: z.ZodEnum<["low", "medium", "high"]>;
1249
- }, "strict", z.ZodTypeAny, {
1250
- effort: "low" | "medium" | "high";
1251
- }, {
1252
- effort: "low" | "medium" | "high";
1253
- }>;
329
+ effort: z.ZodEnum<{
330
+ low: "low";
331
+ medium: "medium";
332
+ high: "high";
333
+ }>;
334
+ }, z.core.$strict>;
1254
335
  /**
1255
336
  * What the edge records about the CALL, as opposed to its content.
1256
337
  *
@@ -1265,41 +346,35 @@ export declare const inferenceReasoningSchema: z.ZodObject<{
1265
346
  * anything the customer would not want to read back to themselves.
1266
347
  */
1267
348
  export declare const clientRequestMetadataSchema: z.ZodObject<{
1268
- /** The public dialect the customer called. The response is rendered in it. */
1269
- apiFormat: z.ZodEnum<["responses", "chat_completions", "embeddings", "decisions", "images_generations", "audio_transcriptions", "audio_speech", "rerank", "batches"]>;
1270
- /** The public path, e.g. `/v1/responses`. */
349
+ apiFormat: z.ZodEnum<{
350
+ embeddings: "embeddings";
351
+ decisions: "decisions";
352
+ responses: "responses";
353
+ chat_completions: "chat_completions";
354
+ images_generations: "images_generations";
355
+ audio_transcriptions: "audio_transcriptions";
356
+ audio_speech: "audio_speech";
357
+ rerank: "rerank";
358
+ batches: "batches";
359
+ }>;
1271
360
  endpoint: z.ZodString;
1272
- /** The customer's own correlation id, when they sent one. */
1273
361
  clientRequestId: z.ZodOptional<z.ZodString>;
1274
362
  receivedAt: z.ZodString;
1275
363
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1276
- }, "strict", z.ZodTypeAny, {
1277
- receivedAt: string;
1278
- apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
1279
- endpoint: string;
1280
- clientRequestId?: string | undefined;
1281
- labels?: Record<string, string> | undefined;
1282
- }, {
1283
- receivedAt: string;
1284
- apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
1285
- endpoint: string;
1286
- clientRequestId?: string | undefined;
1287
- labels?: Record<string, string> | undefined;
1288
- }>;
364
+ }, z.core.$strict>;
1289
365
  /** Parameters for text-to-speech, preserved in the signed request. */
1290
366
  export declare const inferenceSpeechParametersSchema: z.ZodObject<{
1291
367
  voice: z.ZodString;
1292
- responseFormat: z.ZodEnum<["mp3", "opus", "aac", "flac", "wav", "pcm"]>;
368
+ responseFormat: z.ZodEnum<{
369
+ mp3: "mp3";
370
+ opus: "opus";
371
+ aac: "aac";
372
+ flac: "flac";
373
+ wav: "wav";
374
+ pcm: "pcm";
375
+ }>;
1293
376
  speed: z.ZodOptional<z.ZodNumber>;
1294
- }, "strict", z.ZodTypeAny, {
1295
- voice: string;
1296
- responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
1297
- speed?: number | undefined;
1298
- }, {
1299
- voice: string;
1300
- responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
1301
- speed?: number | undefined;
1302
- }>;
377
+ }, z.core.$strict>;
1303
378
  export type InferenceSpeechParameters = z.infer<typeof inferenceSpeechParametersSchema>;
1304
379
  /**
1305
380
  * Spoken output from a CONVERSATIONAL model (contract set 3.2.0) — an audio chat
@@ -1316,14 +391,14 @@ export type InferenceSpeechParameters = z.infer<typeof inferenceSpeechParameters
1316
391
  */
1317
392
  export declare const inferenceAudioOutputParametersSchema: z.ZodObject<{
1318
393
  voice: z.ZodString;
1319
- format: z.ZodEnum<["wav", "mp3", "flac", "opus", "pcm"]>;
1320
- }, "strict", z.ZodTypeAny, {
1321
- format: "mp3" | "opus" | "flac" | "wav" | "pcm";
1322
- voice: string;
1323
- }, {
1324
- format: "mp3" | "opus" | "flac" | "wav" | "pcm";
1325
- voice: string;
1326
- }>;
394
+ format: z.ZodEnum<{
395
+ mp3: "mp3";
396
+ opus: "opus";
397
+ flac: "flac";
398
+ wav: "wav";
399
+ pcm: "pcm";
400
+ }>;
401
+ }, z.core.$strict>;
1327
402
  export type InferenceAudioOutputParameters = z.infer<typeof inferenceAudioOutputParametersSchema>;
1328
403
  /**
1329
404
  * The canonical internal request Oxy forwards to the data plane.
@@ -1333,583 +408,129 @@ export type InferenceAudioOutputParameters = z.infer<typeof inferenceAudioOutput
1333
408
  * must not silently substitute a model reads that discriminant rather than
1334
409
  * inferring intent from a string.
1335
410
  */
1336
- export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1337
- /** See `version.ts`: this is the Oxy→data-plane request envelope. */
411
+ export declare const inferenceRequestSchema: z.ZodObject<{
1338
412
  schemaVersion: z.ZodLiteral<2>;
1339
413
  attribution: z.ZodObject<{
1340
- principal: z.ZodObject<{
414
+ principal: z.ZodDiscriminatedUnion<[z.ZodObject<{
415
+ authority: z.ZodLiteral<"first_party">;
1341
416
  billing: z.ZodObject<{
1342
- accountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
1343
- }, "strict", z.ZodTypeAny, {
1344
- accountId: string & z.BRAND<"OxyAccountId">;
1345
- }, {
1346
- accountId: string;
417
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
418
+ }, z.core.$strict>;
419
+ applicationId: z.ZodString;
420
+ credentialId: z.ZodString;
421
+ environment: z.ZodEnum<{
422
+ development: "development";
423
+ staging: "staging";
424
+ production: "production";
1347
425
  }>;
426
+ }, z.core.$strict>, z.ZodObject<{
427
+ authority: z.ZodOptional<z.ZodLiteral<"external">>;
428
+ inferenceScopes: z.ZodArray<z.ZodEnum<{
429
+ "inference:invoke": "inference:invoke";
430
+ "inference:models:read": "inference:models:read";
431
+ "inference:usage:read": "inference:usage:read";
432
+ "inference:routing:read": "inference:routing:read";
433
+ "inference:routing:write": "inference:routing:write";
434
+ "inference:providers:read": "inference:providers:read";
435
+ "inference:providers:write": "inference:providers:write";
436
+ }>>;
437
+ billing: z.ZodObject<{
438
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
439
+ }, z.core.$strict>;
1348
440
  applicationId: z.ZodString;
1349
441
  credentialId: z.ZodString;
1350
- environment: z.ZodEnum<["development", "staging", "production"]>;
1351
- inferenceScopes: z.ZodArray<z.ZodEnum<["inference:invoke", "inference:models:read", "inference:usage:read", "inference:routing:read", "inference:routing:write", "inference:providers:read", "inference:providers:write"]>, "many">;
1352
- }, "strip", z.ZodTypeAny, {
1353
- environment: "development" | "staging" | "production";
1354
- applicationId: string;
1355
- credentialId: string;
1356
- billing: {
1357
- accountId: string & z.BRAND<"OxyAccountId">;
1358
- };
1359
- inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
1360
- }, {
1361
- environment: "development" | "staging" | "production";
1362
- applicationId: string;
1363
- credentialId: string;
1364
- billing: {
1365
- accountId: string;
1366
- };
1367
- inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
1368
- }>;
1369
- userId: z.ZodOptional<z.ZodBranded<z.ZodString, "DelegatedUserId">>;
442
+ environment: z.ZodEnum<{
443
+ development: "development";
444
+ staging: "staging";
445
+ production: "production";
446
+ }>;
447
+ }, z.core.$strict>], "authority">;
448
+ userId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "DelegatedUserId", "out">>;
1370
449
  requestId: z.ZodString;
1371
450
  generationId: z.ZodOptional<z.ZodString>;
1372
- }, "strip", z.ZodTypeAny, {
1373
- requestId: string;
1374
- principal: {
1375
- environment: "development" | "staging" | "production";
1376
- applicationId: string;
1377
- credentialId: string;
1378
- billing: {
1379
- accountId: string & z.BRAND<"OxyAccountId">;
1380
- };
1381
- inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
1382
- };
1383
- userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
1384
- generationId?: string | undefined;
1385
- }, {
1386
- requestId: string;
1387
- principal: {
1388
- environment: "development" | "staging" | "production";
1389
- applicationId: string;
1390
- credentialId: string;
1391
- billing: {
1392
- accountId: string;
1393
- };
1394
- inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
1395
- };
1396
- userId?: string | undefined;
1397
- generationId?: string | undefined;
1398
- }>;
1399
- target: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
451
+ }, z.core.$strip>;
452
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1400
453
  kind: z.ZodLiteral<"model">;
1401
454
  modelReference: z.ZodString;
1402
- }, "strict", z.ZodTypeAny, {
1403
- kind: "model";
1404
- modelReference: string;
1405
- }, {
1406
- kind: "model";
1407
- modelReference: string;
1408
- }>, z.ZodObject<{
455
+ }, z.core.$strict>, z.ZodObject<{
1409
456
  kind: z.ZodLiteral<"routing_profile_id">;
1410
457
  routingProfileId: z.ZodString;
1411
- }, "strict", z.ZodTypeAny, {
1412
- kind: "routing_profile_id";
1413
- routingProfileId: string;
1414
- }, {
1415
- kind: "routing_profile_id";
1416
- routingProfileId: string;
1417
- }>]>;
1418
- modality: z.ZodEnum<["text", "image", "audio", "video", "embedding"]>;
1419
- input: z.ZodDiscriminatedUnion<"format", [z.ZodObject<{
458
+ }, z.core.$strict>], "kind">;
459
+ modality: z.ZodEnum<{
460
+ image: "image";
461
+ embedding: "embedding";
462
+ text: "text";
463
+ audio: "audio";
464
+ video: "video";
465
+ }>;
466
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
1420
467
  format: z.ZodLiteral<"messages">;
1421
- messages: z.ZodArray<z.ZodEffects<z.ZodObject<{
1422
- role: z.ZodEnum<["system", "developer", "user", "assistant", "tool"]>;
1423
- content: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
468
+ messages: z.ZodArray<z.ZodObject<{
469
+ role: z.ZodEnum<{
470
+ system: "system";
471
+ tool: "tool";
472
+ user: "user";
473
+ developer: "developer";
474
+ assistant: "assistant";
475
+ }>;
476
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1424
477
  type: z.ZodLiteral<"text">;
1425
478
  text: z.ZodString;
1426
- }, "strict", z.ZodTypeAny, {
1427
- type: "text";
1428
- text: string;
1429
- }, {
1430
- type: "text";
1431
- text: string;
1432
- }>, z.ZodObject<{
479
+ }, z.core.$strict>, z.ZodObject<{
1433
480
  type: z.ZodLiteral<"image">;
1434
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
481
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1435
482
  kind: z.ZodLiteral<"url">;
1436
483
  url: z.ZodString;
1437
- }, "strict", z.ZodTypeAny, {
1438
- kind: "url";
1439
- url: string;
1440
- }, {
1441
- kind: "url";
1442
- url: string;
1443
- }>, z.ZodObject<{
484
+ }, z.core.$strict>, z.ZodObject<{
1444
485
  kind: z.ZodLiteral<"inline">;
1445
486
  mediaType: z.ZodString;
1446
487
  data: z.ZodString;
1447
- }, "strict", z.ZodTypeAny, {
1448
- kind: "inline";
1449
- data: string;
1450
- mediaType: string;
1451
- }, {
1452
- kind: "inline";
1453
- data: string;
1454
- mediaType: string;
1455
- }>]>;
1456
- /** Provider-independent hint; providers that ignore it are unaffected. */
1457
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
1458
- }, "strict", z.ZodTypeAny, {
1459
- type: "image";
1460
- source: {
1461
- kind: "url";
1462
- url: string;
1463
- } | {
1464
- kind: "inline";
1465
- data: string;
1466
- mediaType: string;
1467
- };
1468
- detail?: "low" | "high" | "auto" | undefined;
1469
- }, {
1470
- type: "image";
1471
- source: {
1472
- kind: "url";
1473
- url: string;
1474
- } | {
1475
- kind: "inline";
1476
- data: string;
1477
- mediaType: string;
1478
- };
1479
- detail?: "low" | "high" | "auto" | undefined;
1480
- }>, z.ZodObject<{
488
+ }, z.core.$strict>], "kind">;
489
+ detail: z.ZodOptional<z.ZodEnum<{
490
+ low: "low";
491
+ high: "high";
492
+ auto: "auto";
493
+ }>>;
494
+ }, z.core.$strict>, z.ZodObject<{
1481
495
  type: z.ZodLiteral<"audio">;
1482
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
496
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1483
497
  kind: z.ZodLiteral<"url">;
1484
498
  url: z.ZodString;
1485
- }, "strict", z.ZodTypeAny, {
1486
- kind: "url";
1487
- url: string;
1488
- }, {
1489
- kind: "url";
1490
- url: string;
1491
- }>, z.ZodObject<{
499
+ }, z.core.$strict>, z.ZodObject<{
1492
500
  kind: z.ZodLiteral<"inline">;
1493
501
  mediaType: z.ZodString;
1494
502
  data: z.ZodString;
1495
- }, "strict", z.ZodTypeAny, {
1496
- kind: "inline";
1497
- data: string;
1498
- mediaType: string;
1499
- }, {
1500
- kind: "inline";
1501
- data: string;
1502
- mediaType: string;
1503
- }>]>;
1504
- }, "strict", z.ZodTypeAny, {
1505
- type: "audio";
1506
- source: {
1507
- kind: "url";
1508
- url: string;
1509
- } | {
1510
- kind: "inline";
1511
- data: string;
1512
- mediaType: string;
1513
- };
1514
- }, {
1515
- type: "audio";
1516
- source: {
1517
- kind: "url";
1518
- url: string;
1519
- } | {
1520
- kind: "inline";
1521
- data: string;
1522
- mediaType: string;
1523
- };
1524
- }>, z.ZodObject<{
503
+ }, z.core.$strict>], "kind">;
504
+ }, z.core.$strict>, z.ZodObject<{
1525
505
  type: z.ZodLiteral<"file">;
1526
- source: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
506
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1527
507
  kind: z.ZodLiteral<"url">;
1528
508
  url: z.ZodString;
1529
- }, "strict", z.ZodTypeAny, {
1530
- kind: "url";
1531
- url: string;
1532
- }, {
1533
- kind: "url";
1534
- url: string;
1535
- }>, z.ZodObject<{
509
+ }, z.core.$strict>, z.ZodObject<{
1536
510
  kind: z.ZodLiteral<"inline">;
1537
511
  mediaType: z.ZodString;
1538
512
  data: z.ZodString;
1539
- }, "strict", z.ZodTypeAny, {
1540
- kind: "inline";
1541
- data: string;
1542
- mediaType: string;
1543
- }, {
1544
- kind: "inline";
1545
- data: string;
1546
- mediaType: string;
1547
- }>]>;
513
+ }, z.core.$strict>], "kind">;
1548
514
  filename: z.ZodOptional<z.ZodString>;
1549
- }, "strict", z.ZodTypeAny, {
1550
- type: "file";
1551
- source: {
1552
- kind: "url";
1553
- url: string;
1554
- } | {
1555
- kind: "inline";
1556
- data: string;
1557
- mediaType: string;
1558
- };
1559
- filename?: string | undefined;
1560
- }, {
1561
- type: "file";
1562
- source: {
1563
- kind: "url";
1564
- url: string;
1565
- } | {
1566
- kind: "inline";
1567
- data: string;
1568
- mediaType: string;
1569
- };
1570
- filename?: string | undefined;
1571
- }>, z.ZodObject<{
515
+ }, z.core.$strict>, z.ZodObject<{
1572
516
  type: z.ZodLiteral<"refusal">;
1573
517
  text: z.ZodString;
1574
- }, "strict", z.ZodTypeAny, {
1575
- type: "refusal";
1576
- text: string;
1577
- }, {
1578
- type: "refusal";
1579
- text: string;
1580
- }>]>, "many">;
1581
- /** Participant name, where the dialect supports naming participants. */
518
+ }, z.core.$strict>], "type">>;
1582
519
  name: z.ZodOptional<z.ZodString>;
1583
- /** The tool call this message answers. Required on, and only on, `tool`. */
1584
520
  toolCallId: z.ZodOptional<z.ZodString>;
1585
- /** Tool calls the assistant made. Only on `assistant`. */
1586
521
  toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1587
522
  id: z.ZodString;
1588
523
  name: z.ZodString;
1589
524
  arguments: z.ZodString;
1590
- }, "strict", z.ZodTypeAny, {
1591
- name: string;
1592
- id: string;
1593
- arguments: string;
1594
- }, {
1595
- name: string;
1596
- id: string;
1597
- arguments: string;
1598
- }>, "many">>;
1599
- }, "strict", z.ZodTypeAny, {
1600
- role: "system" | "tool" | "user" | "developer" | "assistant";
1601
- content: ({
1602
- type: "text";
1603
- text: string;
1604
- } | {
1605
- type: "image";
1606
- source: {
1607
- kind: "url";
1608
- url: string;
1609
- } | {
1610
- kind: "inline";
1611
- data: string;
1612
- mediaType: string;
1613
- };
1614
- detail?: "low" | "high" | "auto" | undefined;
1615
- } | {
1616
- type: "audio";
1617
- source: {
1618
- kind: "url";
1619
- url: string;
1620
- } | {
1621
- kind: "inline";
1622
- data: string;
1623
- mediaType: string;
1624
- };
1625
- } | {
1626
- type: "file";
1627
- source: {
1628
- kind: "url";
1629
- url: string;
1630
- } | {
1631
- kind: "inline";
1632
- data: string;
1633
- mediaType: string;
1634
- };
1635
- filename?: string | undefined;
1636
- } | {
1637
- type: "refusal";
1638
- text: string;
1639
- })[];
1640
- name?: string | undefined;
1641
- toolCallId?: string | undefined;
1642
- toolCalls?: {
1643
- name: string;
1644
- id: string;
1645
- arguments: string;
1646
- }[] | undefined;
1647
- }, {
1648
- role: "system" | "tool" | "user" | "developer" | "assistant";
1649
- content: ({
1650
- type: "text";
1651
- text: string;
1652
- } | {
1653
- type: "image";
1654
- source: {
1655
- kind: "url";
1656
- url: string;
1657
- } | {
1658
- kind: "inline";
1659
- data: string;
1660
- mediaType: string;
1661
- };
1662
- detail?: "low" | "high" | "auto" | undefined;
1663
- } | {
1664
- type: "audio";
1665
- source: {
1666
- kind: "url";
1667
- url: string;
1668
- } | {
1669
- kind: "inline";
1670
- data: string;
1671
- mediaType: string;
1672
- };
1673
- } | {
1674
- type: "file";
1675
- source: {
1676
- kind: "url";
1677
- url: string;
1678
- } | {
1679
- kind: "inline";
1680
- data: string;
1681
- mediaType: string;
1682
- };
1683
- filename?: string | undefined;
1684
- } | {
1685
- type: "refusal";
1686
- text: string;
1687
- })[];
1688
- name?: string | undefined;
1689
- toolCallId?: string | undefined;
1690
- toolCalls?: {
1691
- name: string;
1692
- id: string;
1693
- arguments: string;
1694
- }[] | undefined;
1695
- }>, {
1696
- role: "system" | "tool" | "user" | "developer" | "assistant";
1697
- content: ({
1698
- type: "text";
1699
- text: string;
1700
- } | {
1701
- type: "image";
1702
- source: {
1703
- kind: "url";
1704
- url: string;
1705
- } | {
1706
- kind: "inline";
1707
- data: string;
1708
- mediaType: string;
1709
- };
1710
- detail?: "low" | "high" | "auto" | undefined;
1711
- } | {
1712
- type: "audio";
1713
- source: {
1714
- kind: "url";
1715
- url: string;
1716
- } | {
1717
- kind: "inline";
1718
- data: string;
1719
- mediaType: string;
1720
- };
1721
- } | {
1722
- type: "file";
1723
- source: {
1724
- kind: "url";
1725
- url: string;
1726
- } | {
1727
- kind: "inline";
1728
- data: string;
1729
- mediaType: string;
1730
- };
1731
- filename?: string | undefined;
1732
- } | {
1733
- type: "refusal";
1734
- text: string;
1735
- })[];
1736
- name?: string | undefined;
1737
- toolCallId?: string | undefined;
1738
- toolCalls?: {
1739
- name: string;
1740
- id: string;
1741
- arguments: string;
1742
- }[] | undefined;
1743
- }, {
1744
- role: "system" | "tool" | "user" | "developer" | "assistant";
1745
- content: ({
1746
- type: "text";
1747
- text: string;
1748
- } | {
1749
- type: "image";
1750
- source: {
1751
- kind: "url";
1752
- url: string;
1753
- } | {
1754
- kind: "inline";
1755
- data: string;
1756
- mediaType: string;
1757
- };
1758
- detail?: "low" | "high" | "auto" | undefined;
1759
- } | {
1760
- type: "audio";
1761
- source: {
1762
- kind: "url";
1763
- url: string;
1764
- } | {
1765
- kind: "inline";
1766
- data: string;
1767
- mediaType: string;
1768
- };
1769
- } | {
1770
- type: "file";
1771
- source: {
1772
- kind: "url";
1773
- url: string;
1774
- } | {
1775
- kind: "inline";
1776
- data: string;
1777
- mediaType: string;
1778
- };
1779
- filename?: string | undefined;
1780
- } | {
1781
- type: "refusal";
1782
- text: string;
1783
- })[];
1784
- name?: string | undefined;
1785
- toolCallId?: string | undefined;
1786
- toolCalls?: {
1787
- name: string;
1788
- id: string;
1789
- arguments: string;
1790
- }[] | undefined;
1791
- }>, "many">;
1792
- }, "strict", z.ZodTypeAny, {
1793
- format: "messages";
1794
- messages: {
1795
- role: "system" | "tool" | "user" | "developer" | "assistant";
1796
- content: ({
1797
- type: "text";
1798
- text: string;
1799
- } | {
1800
- type: "image";
1801
- source: {
1802
- kind: "url";
1803
- url: string;
1804
- } | {
1805
- kind: "inline";
1806
- data: string;
1807
- mediaType: string;
1808
- };
1809
- detail?: "low" | "high" | "auto" | undefined;
1810
- } | {
1811
- type: "audio";
1812
- source: {
1813
- kind: "url";
1814
- url: string;
1815
- } | {
1816
- kind: "inline";
1817
- data: string;
1818
- mediaType: string;
1819
- };
1820
- } | {
1821
- type: "file";
1822
- source: {
1823
- kind: "url";
1824
- url: string;
1825
- } | {
1826
- kind: "inline";
1827
- data: string;
1828
- mediaType: string;
1829
- };
1830
- filename?: string | undefined;
1831
- } | {
1832
- type: "refusal";
1833
- text: string;
1834
- })[];
1835
- name?: string | undefined;
1836
- toolCallId?: string | undefined;
1837
- toolCalls?: {
1838
- name: string;
1839
- id: string;
1840
- arguments: string;
1841
- }[] | undefined;
1842
- }[];
1843
- }, {
1844
- format: "messages";
1845
- messages: {
1846
- role: "system" | "tool" | "user" | "developer" | "assistant";
1847
- content: ({
1848
- type: "text";
1849
- text: string;
1850
- } | {
1851
- type: "image";
1852
- source: {
1853
- kind: "url";
1854
- url: string;
1855
- } | {
1856
- kind: "inline";
1857
- data: string;
1858
- mediaType: string;
1859
- };
1860
- detail?: "low" | "high" | "auto" | undefined;
1861
- } | {
1862
- type: "audio";
1863
- source: {
1864
- kind: "url";
1865
- url: string;
1866
- } | {
1867
- kind: "inline";
1868
- data: string;
1869
- mediaType: string;
1870
- };
1871
- } | {
1872
- type: "file";
1873
- source: {
1874
- kind: "url";
1875
- url: string;
1876
- } | {
1877
- kind: "inline";
1878
- data: string;
1879
- mediaType: string;
1880
- };
1881
- filename?: string | undefined;
1882
- } | {
1883
- type: "refusal";
1884
- text: string;
1885
- })[];
1886
- name?: string | undefined;
1887
- toolCallId?: string | undefined;
1888
- toolCalls?: {
1889
- name: string;
1890
- id: string;
1891
- arguments: string;
1892
- }[] | undefined;
1893
- }[];
1894
- }>, z.ZodObject<{
525
+ }, z.core.$strict>>>;
526
+ }, z.core.$strict>>;
527
+ }, z.core.$strict>, z.ZodObject<{
1895
528
  format: z.ZodLiteral<"text">;
1896
529
  text: z.ZodString;
1897
- }, "strict", z.ZodTypeAny, {
1898
- text: string;
1899
- format: "text";
1900
- }, {
1901
- text: string;
1902
- format: "text";
1903
- }>, z.ZodObject<{
530
+ }, z.core.$strict>, z.ZodObject<{
1904
531
  format: z.ZodLiteral<"text_batch">;
1905
- texts: z.ZodArray<z.ZodString, "many">;
1906
- }, "strict", z.ZodTypeAny, {
1907
- format: "text_batch";
1908
- texts: string[];
1909
- }, {
1910
- format: "text_batch";
1911
- texts: string[];
1912
- }>]>;
532
+ texts: z.ZodArray<z.ZodString>;
533
+ }, z.core.$strict>], "format">;
1913
534
  stream: z.ZodBoolean;
1914
535
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1915
536
  sampling: z.ZodObject<{
@@ -1918,1025 +539,132 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
1918
539
  topK: z.ZodOptional<z.ZodNumber>;
1919
540
  frequencyPenalty: z.ZodOptional<z.ZodNumber>;
1920
541
  presencePenalty: z.ZodOptional<z.ZodNumber>;
1921
- /** A seed makes a request reproducible on providers that honour one. */
1922
542
  seed: z.ZodOptional<z.ZodNumber>;
1923
- stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1924
- }, "strict", z.ZodTypeAny, {
1925
- seed?: number | undefined;
1926
- temperature?: number | undefined;
1927
- topP?: number | undefined;
1928
- topK?: number | undefined;
1929
- frequencyPenalty?: number | undefined;
1930
- presencePenalty?: number | undefined;
1931
- stopSequences?: string[] | undefined;
1932
- }, {
1933
- seed?: number | undefined;
1934
- temperature?: number | undefined;
1935
- topP?: number | undefined;
1936
- topK?: number | undefined;
1937
- frequencyPenalty?: number | undefined;
1938
- presencePenalty?: number | undefined;
1939
- stopSequences?: string[] | undefined;
1940
- }>;
1941
- /** Absent means the route's own default reasoning behaviour. */
543
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
544
+ }, z.core.$strict>;
1942
545
  reasoning: z.ZodOptional<z.ZodObject<{
1943
- effort: z.ZodEnum<["low", "medium", "high"]>;
1944
- }, "strict", z.ZodTypeAny, {
1945
- effort: "low" | "medium" | "high";
1946
- }, {
1947
- effort: "low" | "medium" | "high";
1948
- }>>;
546
+ effort: z.ZodEnum<{
547
+ low: "low";
548
+ medium: "medium";
549
+ high: "high";
550
+ }>;
551
+ }, z.core.$strict>>;
1949
552
  speech: z.ZodOptional<z.ZodObject<{
1950
553
  voice: z.ZodString;
1951
- responseFormat: z.ZodEnum<["mp3", "opus", "aac", "flac", "wav", "pcm"]>;
554
+ responseFormat: z.ZodEnum<{
555
+ mp3: "mp3";
556
+ opus: "opus";
557
+ aac: "aac";
558
+ flac: "flac";
559
+ wav: "wav";
560
+ pcm: "pcm";
561
+ }>;
1952
562
  speed: z.ZodOptional<z.ZodNumber>;
1953
- }, "strict", z.ZodTypeAny, {
1954
- voice: string;
1955
- responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
1956
- speed?: number | undefined;
1957
- }, {
1958
- voice: string;
1959
- responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
1960
- speed?: number | undefined;
1961
- }>>;
1962
- /** Spoken output from a conversational model. Contract set 3.2.0. */
563
+ }, z.core.$strict>>;
1963
564
  audioOutput: z.ZodOptional<z.ZodObject<{
1964
565
  voice: z.ZodString;
1965
- format: z.ZodEnum<["wav", "mp3", "flac", "opus", "pcm"]>;
1966
- }, "strict", z.ZodTypeAny, {
1967
- format: "mp3" | "opus" | "flac" | "wav" | "pcm";
1968
- voice: string;
1969
- }, {
1970
- format: "mp3" | "opus" | "flac" | "wav" | "pcm";
1971
- voice: string;
1972
- }>>;
566
+ format: z.ZodEnum<{
567
+ mp3: "mp3";
568
+ opus: "opus";
569
+ flac: "flac";
570
+ wav: "wav";
571
+ pcm: "pcm";
572
+ }>;
573
+ }, z.core.$strict>>;
1973
574
  tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
1974
575
  type: z.ZodLiteral<"function">;
1975
576
  name: z.ZodString;
1976
577
  description: z.ZodOptional<z.ZodString>;
1977
578
  parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1978
- /** Ask the provider to enforce the schema, where it supports enforcement. */
1979
579
  strict: z.ZodOptional<z.ZodBoolean>;
1980
- }, "strict", z.ZodTypeAny, {
1981
- type: "function";
1982
- name: string;
1983
- parameters: Record<string, unknown>;
1984
- strict?: boolean | undefined;
1985
- description?: string | undefined;
1986
- }, {
1987
- type: "function";
1988
- name: string;
1989
- parameters: Record<string, unknown>;
1990
- strict?: boolean | undefined;
1991
- description?: string | undefined;
1992
- }>, "many">>;
1993
- toolChoice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
580
+ }, z.core.$strict>>>;
581
+ toolChoice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
582
+ none: "none";
583
+ required: "required";
584
+ auto: "auto";
585
+ }>, z.ZodObject<{
1994
586
  type: z.ZodLiteral<"function">;
1995
587
  name: z.ZodString;
1996
- }, "strict", z.ZodTypeAny, {
1997
- type: "function";
1998
- name: string;
1999
- }, {
2000
- type: "function";
2001
- name: string;
2002
- }>]>>;
2003
- responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
588
+ }, z.core.$strict>]>>;
589
+ responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2004
590
  type: z.ZodLiteral<"text">;
2005
- }, "strict", z.ZodTypeAny, {
2006
- type: "text";
2007
- }, {
2008
- type: "text";
2009
- }>, z.ZodObject<{
591
+ }, z.core.$strict>, z.ZodObject<{
2010
592
  type: z.ZodLiteral<"json_object">;
2011
- }, "strict", z.ZodTypeAny, {
2012
- type: "json_object";
2013
- }, {
2014
- type: "json_object";
2015
- }>, z.ZodObject<{
593
+ }, z.core.$strict>, z.ZodObject<{
2016
594
  type: z.ZodLiteral<"json_schema">;
2017
595
  name: z.ZodString;
2018
596
  schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2019
597
  strict: z.ZodBoolean;
2020
- }, "strict", z.ZodTypeAny, {
2021
- type: "json_schema";
2022
- strict: boolean;
2023
- schema: Record<string, unknown>;
2024
- name: string;
2025
- }, {
2026
- type: "json_schema";
2027
- strict: boolean;
2028
- schema: Record<string, unknown>;
2029
- name: string;
2030
- }>]>>;
598
+ }, z.core.$strict>], "type">>;
2031
599
  client: z.ZodObject<{
2032
- /** The public dialect the customer called. The response is rendered in it. */
2033
- apiFormat: z.ZodEnum<["responses", "chat_completions", "embeddings", "decisions", "images_generations", "audio_transcriptions", "audio_speech", "rerank", "batches"]>;
2034
- /** The public path, e.g. `/v1/responses`. */
600
+ apiFormat: z.ZodEnum<{
601
+ embeddings: "embeddings";
602
+ decisions: "decisions";
603
+ responses: "responses";
604
+ chat_completions: "chat_completions";
605
+ images_generations: "images_generations";
606
+ audio_transcriptions: "audio_transcriptions";
607
+ audio_speech: "audio_speech";
608
+ rerank: "rerank";
609
+ batches: "batches";
610
+ }>;
2035
611
  endpoint: z.ZodString;
2036
- /** The customer's own correlation id, when they sent one. */
2037
612
  clientRequestId: z.ZodOptional<z.ZodString>;
2038
613
  receivedAt: z.ZodString;
2039
614
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2040
- }, "strict", z.ZodTypeAny, {
2041
- receivedAt: string;
2042
- apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2043
- endpoint: string;
2044
- clientRequestId?: string | undefined;
2045
- labels?: Record<string, string> | undefined;
2046
- }, {
2047
- receivedAt: string;
2048
- apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2049
- endpoint: string;
2050
- clientRequestId?: string | undefined;
2051
- labels?: Record<string, string> | undefined;
2052
- }>;
2053
- /** Present when the operation is safe to deduplicate on retry. */
615
+ }, z.core.$strict>;
2054
616
  idempotencyKey: z.ZodOptional<z.ZodString>;
2055
- /** The exact policy revision this request is served under. */
2056
617
  routingPolicy: z.ZodObject<{
2057
618
  routingPolicyId: z.ZodString;
2058
619
  policyVersion: z.ZodNumber;
2059
- }, "strict", z.ZodTypeAny, {
2060
- routingPolicyId: string;
2061
- policyVersion: number;
2062
- }, {
2063
- routingPolicyId: string;
2064
- policyVersion: number;
2065
- }>;
2066
- /**
2067
- * The routes the control plane has already authorized for this request, in
2068
- * PREFERENCE ORDER. The first entry is the primary route Oxy resolved; the
2069
- * data plane fails over by taking the next one.
2070
- *
2071
- * This is what closes the gap ADR 0010's amendment left open. That amendment
2072
- * assigns the data plane "failover within the destinations the policy
2073
- * authorized" — and the envelope named no destinations, so a data plane could
2074
- * only fail over by re-deriving the customer's policy from values it does not
2075
- * have. Enumerating the survivors instead means a route switch outside the
2076
- * policy is impossible BY CONSTRUCTION rather than by two enforcement engines
2077
- * agreeing in two languages.
2078
- *
2079
- * **Absent means no failover is authorized, never "choose freely."** It is
2080
- * the state every envelope built before this field existed is in, and the
2081
- * behaviour a data plane that reads no list must already have: resolve the
2082
- * `target` and serve it or fail. Permission is granted by an ENTRY, so its
2083
- * absence can only ever narrow, and there is no reading of an absent list
2084
- * that widens what may be served.
2085
- *
2086
- * An EMPTY list is refused rather than treated as that state. `[]` would say
2087
- * "no route is authorized at all", which contradicts an envelope that was
2088
- * built to be served, and it is exactly the "permission granted, destination
2089
- * unnamed" shape `authorizedRouteSchema` exists to make unrepresentable.
2090
- *
2091
- * No price rides here. Oxy sized the hold against the most expensive route
2092
- * the policy permits (`usageReservationRequestSchema.ceilingPriceVersionId`),
2093
- * and every entry is one that policy permitted, so no failover among them can
2094
- * exceed it. A per-route price would also be a second authority for ranking,
2095
- * beside the order this list already carries.
2096
- */
2097
- authorizedRoutes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"substitution", [z.ZodObject<{
620
+ }, z.core.$strict>;
621
+ authorizedRoutes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2098
622
  deploymentId: z.ZodString;
2099
623
  modelReference: z.ZodString;
2100
624
  provider: z.ZodString;
2101
- regions: z.ZodArray<z.ZodString, "many">;
2102
- maxFundingTier: z.ZodOptional<z.ZodEnum<["free", "credit", "paid"]>>;
625
+ regions: z.ZodArray<z.ZodString>;
626
+ maxFundingTier: z.ZodOptional<z.ZodEnum<{
627
+ free: "free";
628
+ credit: "credit";
629
+ paid: "paid";
630
+ }>>;
2103
631
  customerProviderCredential: z.ZodOptional<z.ZodObject<{
2104
632
  credentialHandle: z.ZodString;
2105
633
  credentialRevision: z.ZodNumber;
2106
- ownerAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
634
+ ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
2107
635
  connectionId: z.ZodString;
2108
- environment: z.ZodEnum<["development", "staging", "production"]>;
2109
- }, "strict", z.ZodTypeAny, {
2110
- environment: "development" | "staging" | "production";
2111
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
2112
- connectionId: string;
2113
- credentialHandle: string;
2114
- credentialRevision: number;
2115
- }, {
2116
- environment: "development" | "staging" | "production";
2117
- ownerAccountId: string;
2118
- connectionId: string;
2119
- credentialHandle: string;
2120
- credentialRevision: number;
2121
- }>>;
636
+ environment: z.ZodEnum<{
637
+ development: "development";
638
+ staging: "staging";
639
+ production: "production";
640
+ }>;
641
+ }, z.core.$strict>>;
2122
642
  substitution: z.ZodLiteral<"same_model">;
2123
- }, "strict", z.ZodTypeAny, {
2124
- provider: string;
2125
- modelReference: string;
2126
- regions: string[];
2127
- deploymentId: string;
2128
- substitution: "same_model";
2129
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2130
- customerProviderCredential?: {
2131
- environment: "development" | "staging" | "production";
2132
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
2133
- connectionId: string;
2134
- credentialHandle: string;
2135
- credentialRevision: number;
2136
- } | undefined;
2137
- }, {
2138
- provider: string;
2139
- modelReference: string;
2140
- regions: string[];
2141
- deploymentId: string;
2142
- substitution: "same_model";
2143
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2144
- customerProviderCredential?: {
2145
- environment: "development" | "staging" | "production";
2146
- ownerAccountId: string;
2147
- connectionId: string;
2148
- credentialHandle: string;
2149
- credentialRevision: number;
2150
- } | undefined;
2151
- }>, z.ZodObject<{
643
+ }, z.core.$strict>, z.ZodObject<{
2152
644
  authorizedByPolicy: z.ZodLiteral<true>;
2153
645
  deploymentId: z.ZodString;
2154
646
  modelReference: z.ZodString;
2155
647
  provider: z.ZodString;
2156
- regions: z.ZodArray<z.ZodString, "many">;
2157
- maxFundingTier: z.ZodOptional<z.ZodEnum<["free", "credit", "paid"]>>;
648
+ regions: z.ZodArray<z.ZodString>;
649
+ maxFundingTier: z.ZodOptional<z.ZodEnum<{
650
+ free: "free";
651
+ credit: "credit";
652
+ paid: "paid";
653
+ }>>;
2158
654
  customerProviderCredential: z.ZodOptional<z.ZodObject<{
2159
655
  credentialHandle: z.ZodString;
2160
656
  credentialRevision: z.ZodNumber;
2161
- ownerAccountId: z.ZodBranded<z.ZodString, "OxyAccountId">;
657
+ ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
2162
658
  connectionId: z.ZodString;
2163
- environment: z.ZodEnum<["development", "staging", "production"]>;
2164
- }, "strict", z.ZodTypeAny, {
2165
- environment: "development" | "staging" | "production";
2166
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
2167
- connectionId: string;
2168
- credentialHandle: string;
2169
- credentialRevision: number;
2170
- }, {
2171
- environment: "development" | "staging" | "production";
2172
- ownerAccountId: string;
2173
- connectionId: string;
2174
- credentialHandle: string;
2175
- credentialRevision: number;
2176
- }>>;
659
+ environment: z.ZodEnum<{
660
+ development: "development";
661
+ staging: "staging";
662
+ production: "production";
663
+ }>;
664
+ }, z.core.$strict>>;
2177
665
  substitution: z.ZodLiteral<"cross_model">;
2178
- }, "strict", z.ZodTypeAny, {
2179
- provider: string;
2180
- modelReference: string;
2181
- regions: string[];
2182
- deploymentId: string;
2183
- substitution: "cross_model";
2184
- authorizedByPolicy: true;
2185
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2186
- customerProviderCredential?: {
2187
- environment: "development" | "staging" | "production";
2188
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
2189
- connectionId: string;
2190
- credentialHandle: string;
2191
- credentialRevision: number;
2192
- } | undefined;
2193
- }, {
2194
- provider: string;
2195
- modelReference: string;
2196
- regions: string[];
2197
- deploymentId: string;
2198
- substitution: "cross_model";
2199
- authorizedByPolicy: true;
2200
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2201
- customerProviderCredential?: {
2202
- environment: "development" | "staging" | "production";
2203
- ownerAccountId: string;
2204
- connectionId: string;
2205
- credentialHandle: string;
2206
- credentialRevision: number;
2207
- } | undefined;
2208
- }>]>, {
2209
- provider: string;
2210
- modelReference: string;
2211
- regions: string[];
2212
- deploymentId: string;
2213
- substitution: "same_model";
2214
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2215
- customerProviderCredential?: {
2216
- environment: "development" | "staging" | "production";
2217
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
2218
- connectionId: string;
2219
- credentialHandle: string;
2220
- credentialRevision: number;
2221
- } | undefined;
2222
- } | {
2223
- provider: string;
2224
- modelReference: string;
2225
- regions: string[];
2226
- deploymentId: string;
2227
- substitution: "cross_model";
2228
- authorizedByPolicy: true;
2229
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2230
- customerProviderCredential?: {
2231
- environment: "development" | "staging" | "production";
2232
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
2233
- connectionId: string;
2234
- credentialHandle: string;
2235
- credentialRevision: number;
2236
- } | undefined;
2237
- }, {
2238
- provider: string;
2239
- modelReference: string;
2240
- regions: string[];
2241
- deploymentId: string;
2242
- substitution: "same_model";
2243
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2244
- customerProviderCredential?: {
2245
- environment: "development" | "staging" | "production";
2246
- ownerAccountId: string;
2247
- connectionId: string;
2248
- credentialHandle: string;
2249
- credentialRevision: number;
2250
- } | undefined;
2251
- } | {
2252
- provider: string;
2253
- modelReference: string;
2254
- regions: string[];
2255
- deploymentId: string;
2256
- substitution: "cross_model";
2257
- authorizedByPolicy: true;
2258
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2259
- customerProviderCredential?: {
2260
- environment: "development" | "staging" | "production";
2261
- ownerAccountId: string;
2262
- connectionId: string;
2263
- credentialHandle: string;
2264
- credentialRevision: number;
2265
- } | undefined;
2266
- }>, "many">>;
2267
- }, "strip", z.ZodTypeAny, {
2268
- schemaVersion: 2;
2269
- tools: {
2270
- type: "function";
2271
- name: string;
2272
- parameters: Record<string, unknown>;
2273
- strict?: boolean | undefined;
2274
- description?: string | undefined;
2275
- }[];
2276
- attribution: {
2277
- requestId: string;
2278
- principal: {
2279
- environment: "development" | "staging" | "production";
2280
- applicationId: string;
2281
- credentialId: string;
2282
- billing: {
2283
- accountId: string & z.BRAND<"OxyAccountId">;
2284
- };
2285
- inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
2286
- };
2287
- userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
2288
- generationId?: string | undefined;
2289
- };
2290
- client: {
2291
- receivedAt: string;
2292
- apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2293
- endpoint: string;
2294
- clientRequestId?: string | undefined;
2295
- labels?: Record<string, string> | undefined;
2296
- };
2297
- target: {
2298
- kind: "model";
2299
- modelReference: string;
2300
- } | {
2301
- kind: "routing_profile_id";
2302
- routingProfileId: string;
2303
- };
2304
- modality: "image" | "embedding" | "text" | "audio" | "video";
2305
- input: {
2306
- format: "messages";
2307
- messages: {
2308
- role: "system" | "tool" | "user" | "developer" | "assistant";
2309
- content: ({
2310
- type: "text";
2311
- text: string;
2312
- } | {
2313
- type: "image";
2314
- source: {
2315
- kind: "url";
2316
- url: string;
2317
- } | {
2318
- kind: "inline";
2319
- data: string;
2320
- mediaType: string;
2321
- };
2322
- detail?: "low" | "high" | "auto" | undefined;
2323
- } | {
2324
- type: "audio";
2325
- source: {
2326
- kind: "url";
2327
- url: string;
2328
- } | {
2329
- kind: "inline";
2330
- data: string;
2331
- mediaType: string;
2332
- };
2333
- } | {
2334
- type: "file";
2335
- source: {
2336
- kind: "url";
2337
- url: string;
2338
- } | {
2339
- kind: "inline";
2340
- data: string;
2341
- mediaType: string;
2342
- };
2343
- filename?: string | undefined;
2344
- } | {
2345
- type: "refusal";
2346
- text: string;
2347
- })[];
2348
- name?: string | undefined;
2349
- toolCallId?: string | undefined;
2350
- toolCalls?: {
2351
- name: string;
2352
- id: string;
2353
- arguments: string;
2354
- }[] | undefined;
2355
- }[];
2356
- } | {
2357
- text: string;
2358
- format: "text";
2359
- } | {
2360
- format: "text_batch";
2361
- texts: string[];
2362
- };
2363
- stream: boolean;
2364
- sampling: {
2365
- seed?: number | undefined;
2366
- temperature?: number | undefined;
2367
- topP?: number | undefined;
2368
- topK?: number | undefined;
2369
- frequencyPenalty?: number | undefined;
2370
- presencePenalty?: number | undefined;
2371
- stopSequences?: string[] | undefined;
2372
- };
2373
- routingPolicy: {
2374
- routingPolicyId: string;
2375
- policyVersion: number;
2376
- };
2377
- idempotencyKey?: string | undefined;
2378
- reasoning?: {
2379
- effort: "low" | "medium" | "high";
2380
- } | undefined;
2381
- maxOutputTokens?: number | undefined;
2382
- responseFormat?: {
2383
- type: "text";
2384
- } | {
2385
- type: "json_object";
2386
- } | {
2387
- type: "json_schema";
2388
- strict: boolean;
2389
- schema: Record<string, unknown>;
2390
- name: string;
2391
- } | undefined;
2392
- speech?: {
2393
- voice: string;
2394
- responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
2395
- speed?: number | undefined;
2396
- } | undefined;
2397
- audioOutput?: {
2398
- format: "mp3" | "opus" | "flac" | "wav" | "pcm";
2399
- voice: string;
2400
- } | undefined;
2401
- toolChoice?: "none" | "required" | "auto" | {
2402
- type: "function";
2403
- name: string;
2404
- } | undefined;
2405
- authorizedRoutes?: ({
2406
- provider: string;
2407
- modelReference: string;
2408
- regions: string[];
2409
- deploymentId: string;
2410
- substitution: "same_model";
2411
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2412
- customerProviderCredential?: {
2413
- environment: "development" | "staging" | "production";
2414
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
2415
- connectionId: string;
2416
- credentialHandle: string;
2417
- credentialRevision: number;
2418
- } | undefined;
2419
- } | {
2420
- provider: string;
2421
- modelReference: string;
2422
- regions: string[];
2423
- deploymentId: string;
2424
- substitution: "cross_model";
2425
- authorizedByPolicy: true;
2426
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2427
- customerProviderCredential?: {
2428
- environment: "development" | "staging" | "production";
2429
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
2430
- connectionId: string;
2431
- credentialHandle: string;
2432
- credentialRevision: number;
2433
- } | undefined;
2434
- })[] | undefined;
2435
- }, {
2436
- schemaVersion: 2;
2437
- attribution: {
2438
- requestId: string;
2439
- principal: {
2440
- environment: "development" | "staging" | "production";
2441
- applicationId: string;
2442
- credentialId: string;
2443
- billing: {
2444
- accountId: string;
2445
- };
2446
- inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
2447
- };
2448
- userId?: string | undefined;
2449
- generationId?: string | undefined;
2450
- };
2451
- client: {
2452
- receivedAt: string;
2453
- apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2454
- endpoint: string;
2455
- clientRequestId?: string | undefined;
2456
- labels?: Record<string, string> | undefined;
2457
- };
2458
- target: {
2459
- kind: "model";
2460
- modelReference: string;
2461
- } | {
2462
- kind: "routing_profile_id";
2463
- routingProfileId: string;
2464
- };
2465
- modality: "image" | "embedding" | "text" | "audio" | "video";
2466
- input: {
2467
- format: "messages";
2468
- messages: {
2469
- role: "system" | "tool" | "user" | "developer" | "assistant";
2470
- content: ({
2471
- type: "text";
2472
- text: string;
2473
- } | {
2474
- type: "image";
2475
- source: {
2476
- kind: "url";
2477
- url: string;
2478
- } | {
2479
- kind: "inline";
2480
- data: string;
2481
- mediaType: string;
2482
- };
2483
- detail?: "low" | "high" | "auto" | undefined;
2484
- } | {
2485
- type: "audio";
2486
- source: {
2487
- kind: "url";
2488
- url: string;
2489
- } | {
2490
- kind: "inline";
2491
- data: string;
2492
- mediaType: string;
2493
- };
2494
- } | {
2495
- type: "file";
2496
- source: {
2497
- kind: "url";
2498
- url: string;
2499
- } | {
2500
- kind: "inline";
2501
- data: string;
2502
- mediaType: string;
2503
- };
2504
- filename?: string | undefined;
2505
- } | {
2506
- type: "refusal";
2507
- text: string;
2508
- })[];
2509
- name?: string | undefined;
2510
- toolCallId?: string | undefined;
2511
- toolCalls?: {
2512
- name: string;
2513
- id: string;
2514
- arguments: string;
2515
- }[] | undefined;
2516
- }[];
2517
- } | {
2518
- text: string;
2519
- format: "text";
2520
- } | {
2521
- format: "text_batch";
2522
- texts: string[];
2523
- };
2524
- stream: boolean;
2525
- sampling: {
2526
- seed?: number | undefined;
2527
- temperature?: number | undefined;
2528
- topP?: number | undefined;
2529
- topK?: number | undefined;
2530
- frequencyPenalty?: number | undefined;
2531
- presencePenalty?: number | undefined;
2532
- stopSequences?: string[] | undefined;
2533
- };
2534
- routingPolicy: {
2535
- routingPolicyId: string;
2536
- policyVersion: number;
2537
- };
2538
- tools?: {
2539
- type: "function";
2540
- name: string;
2541
- parameters: Record<string, unknown>;
2542
- strict?: boolean | undefined;
2543
- description?: string | undefined;
2544
- }[] | undefined;
2545
- idempotencyKey?: string | undefined;
2546
- reasoning?: {
2547
- effort: "low" | "medium" | "high";
2548
- } | undefined;
2549
- maxOutputTokens?: number | undefined;
2550
- responseFormat?: {
2551
- type: "text";
2552
- } | {
2553
- type: "json_object";
2554
- } | {
2555
- type: "json_schema";
2556
- strict: boolean;
2557
- schema: Record<string, unknown>;
2558
- name: string;
2559
- } | undefined;
2560
- speech?: {
2561
- voice: string;
2562
- responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
2563
- speed?: number | undefined;
2564
- } | undefined;
2565
- audioOutput?: {
2566
- format: "mp3" | "opus" | "flac" | "wav" | "pcm";
2567
- voice: string;
2568
- } | undefined;
2569
- toolChoice?: "none" | "required" | "auto" | {
2570
- type: "function";
2571
- name: string;
2572
- } | undefined;
2573
- authorizedRoutes?: ({
2574
- provider: string;
2575
- modelReference: string;
2576
- regions: string[];
2577
- deploymentId: string;
2578
- substitution: "same_model";
2579
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2580
- customerProviderCredential?: {
2581
- environment: "development" | "staging" | "production";
2582
- ownerAccountId: string;
2583
- connectionId: string;
2584
- credentialHandle: string;
2585
- credentialRevision: number;
2586
- } | undefined;
2587
- } | {
2588
- provider: string;
2589
- modelReference: string;
2590
- regions: string[];
2591
- deploymentId: string;
2592
- substitution: "cross_model";
2593
- authorizedByPolicy: true;
2594
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2595
- customerProviderCredential?: {
2596
- environment: "development" | "staging" | "production";
2597
- ownerAccountId: string;
2598
- connectionId: string;
2599
- credentialHandle: string;
2600
- credentialRevision: number;
2601
- } | undefined;
2602
- })[] | undefined;
2603
- }>, {
2604
- schemaVersion: 2;
2605
- tools: {
2606
- type: "function";
2607
- name: string;
2608
- parameters: Record<string, unknown>;
2609
- strict?: boolean | undefined;
2610
- description?: string | undefined;
2611
- }[];
2612
- attribution: {
2613
- requestId: string;
2614
- principal: {
2615
- environment: "development" | "staging" | "production";
2616
- applicationId: string;
2617
- credentialId: string;
2618
- billing: {
2619
- accountId: string & z.BRAND<"OxyAccountId">;
2620
- };
2621
- inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
2622
- };
2623
- userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
2624
- generationId?: string | undefined;
2625
- };
2626
- client: {
2627
- receivedAt: string;
2628
- apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2629
- endpoint: string;
2630
- clientRequestId?: string | undefined;
2631
- labels?: Record<string, string> | undefined;
2632
- };
2633
- target: {
2634
- kind: "model";
2635
- modelReference: string;
2636
- } | {
2637
- kind: "routing_profile_id";
2638
- routingProfileId: string;
2639
- };
2640
- modality: "image" | "embedding" | "text" | "audio" | "video";
2641
- input: {
2642
- format: "messages";
2643
- messages: {
2644
- role: "system" | "tool" | "user" | "developer" | "assistant";
2645
- content: ({
2646
- type: "text";
2647
- text: string;
2648
- } | {
2649
- type: "image";
2650
- source: {
2651
- kind: "url";
2652
- url: string;
2653
- } | {
2654
- kind: "inline";
2655
- data: string;
2656
- mediaType: string;
2657
- };
2658
- detail?: "low" | "high" | "auto" | undefined;
2659
- } | {
2660
- type: "audio";
2661
- source: {
2662
- kind: "url";
2663
- url: string;
2664
- } | {
2665
- kind: "inline";
2666
- data: string;
2667
- mediaType: string;
2668
- };
2669
- } | {
2670
- type: "file";
2671
- source: {
2672
- kind: "url";
2673
- url: string;
2674
- } | {
2675
- kind: "inline";
2676
- data: string;
2677
- mediaType: string;
2678
- };
2679
- filename?: string | undefined;
2680
- } | {
2681
- type: "refusal";
2682
- text: string;
2683
- })[];
2684
- name?: string | undefined;
2685
- toolCallId?: string | undefined;
2686
- toolCalls?: {
2687
- name: string;
2688
- id: string;
2689
- arguments: string;
2690
- }[] | undefined;
2691
- }[];
2692
- } | {
2693
- text: string;
2694
- format: "text";
2695
- } | {
2696
- format: "text_batch";
2697
- texts: string[];
2698
- };
2699
- stream: boolean;
2700
- sampling: {
2701
- seed?: number | undefined;
2702
- temperature?: number | undefined;
2703
- topP?: number | undefined;
2704
- topK?: number | undefined;
2705
- frequencyPenalty?: number | undefined;
2706
- presencePenalty?: number | undefined;
2707
- stopSequences?: string[] | undefined;
2708
- };
2709
- routingPolicy: {
2710
- routingPolicyId: string;
2711
- policyVersion: number;
2712
- };
2713
- idempotencyKey?: string | undefined;
2714
- reasoning?: {
2715
- effort: "low" | "medium" | "high";
2716
- } | undefined;
2717
- maxOutputTokens?: number | undefined;
2718
- responseFormat?: {
2719
- type: "text";
2720
- } | {
2721
- type: "json_object";
2722
- } | {
2723
- type: "json_schema";
2724
- strict: boolean;
2725
- schema: Record<string, unknown>;
2726
- name: string;
2727
- } | undefined;
2728
- speech?: {
2729
- voice: string;
2730
- responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
2731
- speed?: number | undefined;
2732
- } | undefined;
2733
- audioOutput?: {
2734
- format: "mp3" | "opus" | "flac" | "wav" | "pcm";
2735
- voice: string;
2736
- } | undefined;
2737
- toolChoice?: "none" | "required" | "auto" | {
2738
- type: "function";
2739
- name: string;
2740
- } | undefined;
2741
- authorizedRoutes?: ({
2742
- provider: string;
2743
- modelReference: string;
2744
- regions: string[];
2745
- deploymentId: string;
2746
- substitution: "same_model";
2747
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2748
- customerProviderCredential?: {
2749
- environment: "development" | "staging" | "production";
2750
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
2751
- connectionId: string;
2752
- credentialHandle: string;
2753
- credentialRevision: number;
2754
- } | undefined;
2755
- } | {
2756
- provider: string;
2757
- modelReference: string;
2758
- regions: string[];
2759
- deploymentId: string;
2760
- substitution: "cross_model";
2761
- authorizedByPolicy: true;
2762
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2763
- customerProviderCredential?: {
2764
- environment: "development" | "staging" | "production";
2765
- ownerAccountId: string & z.BRAND<"OxyAccountId">;
2766
- connectionId: string;
2767
- credentialHandle: string;
2768
- credentialRevision: number;
2769
- } | undefined;
2770
- })[] | undefined;
2771
- }, {
2772
- schemaVersion: 2;
2773
- attribution: {
2774
- requestId: string;
2775
- principal: {
2776
- environment: "development" | "staging" | "production";
2777
- applicationId: string;
2778
- credentialId: string;
2779
- billing: {
2780
- accountId: string;
2781
- };
2782
- inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
2783
- };
2784
- userId?: string | undefined;
2785
- generationId?: string | undefined;
2786
- };
2787
- client: {
2788
- receivedAt: string;
2789
- apiFormat: "embeddings" | "decisions" | "responses" | "chat_completions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
2790
- endpoint: string;
2791
- clientRequestId?: string | undefined;
2792
- labels?: Record<string, string> | undefined;
2793
- };
2794
- target: {
2795
- kind: "model";
2796
- modelReference: string;
2797
- } | {
2798
- kind: "routing_profile_id";
2799
- routingProfileId: string;
2800
- };
2801
- modality: "image" | "embedding" | "text" | "audio" | "video";
2802
- input: {
2803
- format: "messages";
2804
- messages: {
2805
- role: "system" | "tool" | "user" | "developer" | "assistant";
2806
- content: ({
2807
- type: "text";
2808
- text: string;
2809
- } | {
2810
- type: "image";
2811
- source: {
2812
- kind: "url";
2813
- url: string;
2814
- } | {
2815
- kind: "inline";
2816
- data: string;
2817
- mediaType: string;
2818
- };
2819
- detail?: "low" | "high" | "auto" | undefined;
2820
- } | {
2821
- type: "audio";
2822
- source: {
2823
- kind: "url";
2824
- url: string;
2825
- } | {
2826
- kind: "inline";
2827
- data: string;
2828
- mediaType: string;
2829
- };
2830
- } | {
2831
- type: "file";
2832
- source: {
2833
- kind: "url";
2834
- url: string;
2835
- } | {
2836
- kind: "inline";
2837
- data: string;
2838
- mediaType: string;
2839
- };
2840
- filename?: string | undefined;
2841
- } | {
2842
- type: "refusal";
2843
- text: string;
2844
- })[];
2845
- name?: string | undefined;
2846
- toolCallId?: string | undefined;
2847
- toolCalls?: {
2848
- name: string;
2849
- id: string;
2850
- arguments: string;
2851
- }[] | undefined;
2852
- }[];
2853
- } | {
2854
- text: string;
2855
- format: "text";
2856
- } | {
2857
- format: "text_batch";
2858
- texts: string[];
2859
- };
2860
- stream: boolean;
2861
- sampling: {
2862
- seed?: number | undefined;
2863
- temperature?: number | undefined;
2864
- topP?: number | undefined;
2865
- topK?: number | undefined;
2866
- frequencyPenalty?: number | undefined;
2867
- presencePenalty?: number | undefined;
2868
- stopSequences?: string[] | undefined;
2869
- };
2870
- routingPolicy: {
2871
- routingPolicyId: string;
2872
- policyVersion: number;
2873
- };
2874
- tools?: {
2875
- type: "function";
2876
- name: string;
2877
- parameters: Record<string, unknown>;
2878
- strict?: boolean | undefined;
2879
- description?: string | undefined;
2880
- }[] | undefined;
2881
- idempotencyKey?: string | undefined;
2882
- reasoning?: {
2883
- effort: "low" | "medium" | "high";
2884
- } | undefined;
2885
- maxOutputTokens?: number | undefined;
2886
- responseFormat?: {
2887
- type: "text";
2888
- } | {
2889
- type: "json_object";
2890
- } | {
2891
- type: "json_schema";
2892
- strict: boolean;
2893
- schema: Record<string, unknown>;
2894
- name: string;
2895
- } | undefined;
2896
- speech?: {
2897
- voice: string;
2898
- responseFormat: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm";
2899
- speed?: number | undefined;
2900
- } | undefined;
2901
- audioOutput?: {
2902
- format: "mp3" | "opus" | "flac" | "wav" | "pcm";
2903
- voice: string;
2904
- } | undefined;
2905
- toolChoice?: "none" | "required" | "auto" | {
2906
- type: "function";
2907
- name: string;
2908
- } | undefined;
2909
- authorizedRoutes?: ({
2910
- provider: string;
2911
- modelReference: string;
2912
- regions: string[];
2913
- deploymentId: string;
2914
- substitution: "same_model";
2915
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2916
- customerProviderCredential?: {
2917
- environment: "development" | "staging" | "production";
2918
- ownerAccountId: string;
2919
- connectionId: string;
2920
- credentialHandle: string;
2921
- credentialRevision: number;
2922
- } | undefined;
2923
- } | {
2924
- provider: string;
2925
- modelReference: string;
2926
- regions: string[];
2927
- deploymentId: string;
2928
- substitution: "cross_model";
2929
- authorizedByPolicy: true;
2930
- maxFundingTier?: "free" | "credit" | "paid" | undefined;
2931
- customerProviderCredential?: {
2932
- environment: "development" | "staging" | "production";
2933
- ownerAccountId: string;
2934
- connectionId: string;
2935
- credentialHandle: string;
2936
- credentialRevision: number;
2937
- } | undefined;
2938
- })[] | undefined;
2939
- }>;
666
+ }, z.core.$strict>], "substitution">>>;
667
+ }, z.core.$strip>;
2940
668
  export type InferenceContentSource = z.infer<typeof inferenceContentSourceSchema>;
2941
669
  export type InferenceContentPart = z.infer<typeof inferenceContentPartSchema>;
2942
670
  export type InferenceToolCall = z.infer<typeof inferenceToolCallSchema>;