@kaana.ai/contracts 0.0.0-stage → 4.3.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 (79) hide show
  1. package/LICENSE +673 -0
  2. package/NOTICE +21 -0
  3. package/dist/index.d.ts +29 -0
  4. package/dist/index.js +29 -0
  5. package/dist/internal/attribution.d.ts +116 -0
  6. package/dist/internal/attribution.js +82 -0
  7. package/dist/internal/canonical.d.ts +31 -0
  8. package/dist/internal/canonical.js +57 -0
  9. package/dist/internal/catalogue.d.ts +1030 -0
  10. package/dist/internal/catalogue.js +349 -0
  11. package/dist/internal/credentialControl.d.ts +329 -0
  12. package/dist/internal/credentialControl.js +256 -0
  13. package/dist/internal/decisions.d.ts +245 -0
  14. package/dist/internal/decisions.js +69 -0
  15. package/dist/internal/economics.d.ts +27 -0
  16. package/dist/internal/economics.js +26 -0
  17. package/dist/internal/embeddings.d.ts +164 -0
  18. package/dist/internal/embeddings.js +59 -0
  19. package/dist/internal/errors.d.ts +185 -0
  20. package/dist/internal/errors.js +211 -0
  21. package/dist/internal/grant.d.ts +696 -0
  22. package/dist/internal/grant.js +437 -0
  23. package/dist/internal/identifiers.d.ts +63 -0
  24. package/dist/internal/identifiers.js +65 -0
  25. package/dist/internal/privateAutoExecution.d.ts +158 -0
  26. package/dist/internal/privateAutoExecution.js +188 -0
  27. package/dist/internal/realtime.d.ts +1005 -0
  28. package/dist/internal/realtime.js +187 -0
  29. package/dist/internal/request.d.ts +1079 -0
  30. package/dist/internal/request.js +404 -0
  31. package/dist/internal/routing.d.ts +90 -0
  32. package/dist/internal/routing.js +139 -0
  33. package/dist/internal/scopedExecution.d.ts +74 -0
  34. package/dist/internal/scopedExecution.js +61 -0
  35. package/dist/internal/settlement.d.ts +205 -0
  36. package/dist/internal/settlement.js +71 -0
  37. package/dist/internal/streamEvents.d.ts +422 -0
  38. package/dist/internal/streamEvents.js +171 -0
  39. package/dist/internal/usage.d.ts +127 -0
  40. package/dist/internal/usage.js +109 -0
  41. package/dist/internal.d.ts +30 -0
  42. package/dist/internal.js +30 -0
  43. package/dist/public/audio.d.ts +347 -0
  44. package/dist/public/audio.js +236 -0
  45. package/dist/public/audioFormats.d.ts +64 -0
  46. package/dist/public/audioFormats.js +60 -0
  47. package/dist/public/catalogue.d.ts +914 -0
  48. package/dist/public/catalogue.js +516 -0
  49. package/dist/public/chatCompletions.d.ts +381 -0
  50. package/dist/public/chatCompletions.js +321 -0
  51. package/dist/public/decisions.d.ts +182 -0
  52. package/dist/public/decisions.js +257 -0
  53. package/dist/public/embeddings.d.ts +34 -0
  54. package/dist/public/embeddings.js +66 -0
  55. package/dist/public/errors.d.ts +195 -0
  56. package/dist/public/errors.js +274 -0
  57. package/dist/public/generations.d.ts +330 -0
  58. package/dist/public/generations.js +121 -0
  59. package/dist/public/identifiers.d.ts +139 -0
  60. package/dist/public/identifiers.js +160 -0
  61. package/dist/public/images.d.ts +36 -0
  62. package/dist/public/images.js +36 -0
  63. package/dist/public/messages.d.ts +297 -0
  64. package/dist/public/messages.js +251 -0
  65. package/dist/public/money.d.ts +308 -0
  66. package/dist/public/money.js +237 -0
  67. package/dist/public/policy.d.ts +19 -0
  68. package/dist/public/policy.js +20 -0
  69. package/dist/public/realtime.d.ts +2006 -0
  70. package/dist/public/realtime.js +797 -0
  71. package/dist/public/responses.d.ts +253 -0
  72. package/dist/public/responses.js +95 -0
  73. package/dist/public/streamEvents.d.ts +372 -0
  74. package/dist/public/streamEvents.js +157 -0
  75. package/dist/public/version.d.ts +177 -0
  76. package/dist/public/version.js +177 -0
  77. package/openapi.json +6967 -0
  78. package/package.json +44 -4
  79. package/README.md +0 -3
@@ -0,0 +1,1079 @@
1
+ /**
2
+ * The signed Oxy→Kaana request envelope (versions 1–4).
3
+ *
4
+ * Moved from `@oxy.so/contracts` 4.12.0 (`src/inference/request.ts`) by Kaana ADR 0002.
5
+ */
6
+ import { z } from 'zod';
7
+ /**
8
+ * The request's input.
9
+ *
10
+ * Three formats, because the modalities genuinely differ: a chat request is a
11
+ * conversation, an embedding request is a string or a batch of strings, and
12
+ * pretending the latter is a one-message conversation loses the batch boundary
13
+ * that both metering and provider translation depend on.
14
+ */
15
+ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
16
+ format: z.ZodLiteral<"decisions">;
17
+ decisions: z.ZodObject<{
18
+ state: z.ZodString;
19
+ instructions: z.ZodOptional<z.ZodString>;
20
+ questions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
21
+ kind: z.ZodLiteral<"choice">;
22
+ options: z.ZodArray<z.ZodString>;
23
+ id: z.ZodString;
24
+ question: z.ZodString;
25
+ criteria: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ kind: z.ZodLiteral<"score">;
28
+ levels: z.ZodArray<z.ZodString>;
29
+ id: z.ZodString;
30
+ question: z.ZodString;
31
+ criteria: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strict>, z.ZodObject<{
33
+ kind: z.ZodLiteral<"noul">;
34
+ id: z.ZodString;
35
+ question: z.ZodString;
36
+ criteria: z.ZodOptional<z.ZodString>;
37
+ }, z.core.$strict>], "kind">>;
38
+ effort: z.ZodOptional<z.ZodEnum<{
39
+ low: "low";
40
+ medium: "medium";
41
+ high: "high";
42
+ instant: "instant";
43
+ xhigh: "xhigh";
44
+ }>>;
45
+ }, z.core.$strict>;
46
+ }, z.core.$strict>, z.ZodObject<{
47
+ format: z.ZodLiteral<"messages">;
48
+ messages: z.ZodArray<z.ZodObject<{
49
+ role: z.ZodEnum<{
50
+ user: "user";
51
+ system: "system";
52
+ developer: "developer";
53
+ assistant: "assistant";
54
+ tool: "tool";
55
+ }>;
56
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
57
+ type: z.ZodLiteral<"text">;
58
+ text: z.ZodString;
59
+ }, z.core.$strict>, z.ZodObject<{
60
+ type: z.ZodLiteral<"image">;
61
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
62
+ kind: z.ZodLiteral<"url">;
63
+ url: z.ZodString;
64
+ }, z.core.$strict>, z.ZodObject<{
65
+ kind: z.ZodLiteral<"inline">;
66
+ mediaType: z.ZodString;
67
+ data: z.ZodString;
68
+ }, z.core.$strict>], "kind">;
69
+ detail: z.ZodOptional<z.ZodEnum<{
70
+ low: "low";
71
+ high: "high";
72
+ auto: "auto";
73
+ }>>;
74
+ }, z.core.$strict>, z.ZodObject<{
75
+ type: z.ZodLiteral<"audio">;
76
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
77
+ kind: z.ZodLiteral<"url">;
78
+ url: z.ZodString;
79
+ }, z.core.$strict>, z.ZodObject<{
80
+ kind: z.ZodLiteral<"inline">;
81
+ mediaType: z.ZodString;
82
+ data: z.ZodString;
83
+ }, z.core.$strict>], "kind">;
84
+ }, z.core.$strict>, z.ZodObject<{
85
+ type: z.ZodLiteral<"file">;
86
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
87
+ kind: z.ZodLiteral<"url">;
88
+ url: z.ZodString;
89
+ }, z.core.$strict>, z.ZodObject<{
90
+ kind: z.ZodLiteral<"inline">;
91
+ mediaType: z.ZodString;
92
+ data: z.ZodString;
93
+ }, z.core.$strict>], "kind">;
94
+ filename: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strict>, z.ZodObject<{
96
+ type: z.ZodLiteral<"refusal">;
97
+ text: z.ZodString;
98
+ }, z.core.$strict>], "type">>;
99
+ name: z.ZodOptional<z.ZodString>;
100
+ toolCallId: z.ZodOptional<z.ZodString>;
101
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
102
+ id: z.ZodString;
103
+ name: z.ZodString;
104
+ arguments: z.ZodString;
105
+ }, z.core.$strict>>>;
106
+ }, z.core.$strict>>;
107
+ }, z.core.$strict>, z.ZodObject<{
108
+ format: z.ZodLiteral<"text">;
109
+ text: z.ZodString;
110
+ }, z.core.$strict>, z.ZodObject<{
111
+ format: z.ZodLiteral<"text_batch">;
112
+ texts: z.ZodArray<z.ZodString>;
113
+ }, z.core.$strict>], "format">;
114
+ /**
115
+ * What the edge records about the CALL, as opposed to its content.
116
+ *
117
+ * `.strict()` is a privacy control, not tidiness. Oxy never persists a user IP
118
+ * — raw, hashed or geo-derived — and this object is the natural place somebody
119
+ * would add one "for security". Strict means a producer that attaches `ip`,
120
+ * `country`, `userAgent` or `forwardedFor` fails the parse instead of quietly
121
+ * shipping it into the data plane and the telemetry stream behind it.
122
+ *
123
+ * `labels` is customer-supplied cost-attribution metadata (a team name, a
124
+ * feature flag). It is echoed on the receipt, so it must never be used for
125
+ * anything the customer would not want to read back to themselves.
126
+ */
127
+ export declare const clientRequestMetadataSchema: z.ZodObject<{
128
+ apiFormat: z.ZodEnum<{
129
+ embeddings: "embeddings";
130
+ decisions: "decisions";
131
+ responses: "responses";
132
+ chat_completions: "chat_completions";
133
+ images_generations: "images_generations";
134
+ audio_transcriptions: "audio_transcriptions";
135
+ audio_speech: "audio_speech";
136
+ rerank: "rerank";
137
+ batches: "batches";
138
+ }>;
139
+ endpoint: z.ZodString;
140
+ clientRequestId: z.ZodOptional<z.ZodString>;
141
+ receivedAt: z.ZodString;
142
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
143
+ }, z.core.$strict>;
144
+ export declare const inferenceRequestSchema: z.ZodObject<{
145
+ schemaVersion: z.ZodLiteral<2>;
146
+ scopedExecution: z.ZodOptional<z.ZodObject<{
147
+ permitId: z.ZodString;
148
+ idempotencyKey: z.ZodString;
149
+ fixtureSha256: z.ZodString;
150
+ expiresAt: z.ZodString;
151
+ principal: z.ZodObject<{
152
+ accountId: z.ZodString;
153
+ applicationId: z.ZodString;
154
+ credentialId: z.ZodString;
155
+ environment: z.ZodEnum<{
156
+ development: "development";
157
+ staging: "staging";
158
+ production: "production";
159
+ }>;
160
+ }, z.core.$strict>;
161
+ policy: z.ZodObject<{
162
+ routingPolicyId: z.ZodString;
163
+ policyVersion: z.ZodNumber;
164
+ }, z.core.$strict>;
165
+ deploymentId: z.ZodString;
166
+ provider: z.ZodString;
167
+ keyId: z.ZodString;
168
+ modelReference: z.ZodString;
169
+ upstreamModelId: z.ZodString;
170
+ priceVersionId: z.ZodString;
171
+ providerRateCardVersionId: z.ZodString;
172
+ providerSourceVersion: z.ZodString;
173
+ maxCostUsd: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
174
+ requestId: z.ZodString;
175
+ snapshotId: z.ZodString;
176
+ catalogueEvidenceHash: z.ZodString;
177
+ }, z.core.$strict>>;
178
+ attribution: z.ZodObject<{
179
+ principal: z.ZodObject<{
180
+ billing: z.ZodObject<{
181
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
182
+ }, z.core.$strict>;
183
+ applicationId: z.ZodString;
184
+ credentialId: z.ZodString;
185
+ environment: z.ZodEnum<{
186
+ development: "development";
187
+ staging: "staging";
188
+ production: "production";
189
+ }>;
190
+ inferenceScopes: z.ZodArray<z.ZodEnum<{
191
+ "inference:invoke": "inference:invoke";
192
+ "inference:models:read": "inference:models:read";
193
+ "inference:usage:read": "inference:usage:read";
194
+ "inference:routing:read": "inference:routing:read";
195
+ "inference:routing:write": "inference:routing:write";
196
+ "inference:providers:read": "inference:providers:read";
197
+ "inference:providers:write": "inference:providers:write";
198
+ }>>;
199
+ }, z.core.$strip>;
200
+ userId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "DelegatedUserId", "out">>;
201
+ requestId: z.ZodString;
202
+ generationId: z.ZodOptional<z.ZodString>;
203
+ }, z.core.$strip>;
204
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
205
+ kind: z.ZodLiteral<"model">;
206
+ modelReference: z.ZodString;
207
+ }, z.core.$strict>, z.ZodObject<{
208
+ kind: z.ZodLiteral<"routing_profile_id">;
209
+ routingProfileId: z.ZodString;
210
+ }, z.core.$strict>], "kind">;
211
+ modality: z.ZodEnum<{
212
+ text: "text";
213
+ audio: "audio";
214
+ image: "image";
215
+ video: "video";
216
+ embedding: "embedding";
217
+ }>;
218
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
219
+ format: z.ZodLiteral<"decisions">;
220
+ decisions: z.ZodObject<{
221
+ state: z.ZodString;
222
+ instructions: z.ZodOptional<z.ZodString>;
223
+ questions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
224
+ kind: z.ZodLiteral<"choice">;
225
+ options: z.ZodArray<z.ZodString>;
226
+ id: z.ZodString;
227
+ question: z.ZodString;
228
+ criteria: z.ZodOptional<z.ZodString>;
229
+ }, z.core.$strict>, z.ZodObject<{
230
+ kind: z.ZodLiteral<"score">;
231
+ levels: z.ZodArray<z.ZodString>;
232
+ id: z.ZodString;
233
+ question: z.ZodString;
234
+ criteria: z.ZodOptional<z.ZodString>;
235
+ }, z.core.$strict>, z.ZodObject<{
236
+ kind: z.ZodLiteral<"noul">;
237
+ id: z.ZodString;
238
+ question: z.ZodString;
239
+ criteria: z.ZodOptional<z.ZodString>;
240
+ }, z.core.$strict>], "kind">>;
241
+ effort: z.ZodOptional<z.ZodEnum<{
242
+ low: "low";
243
+ medium: "medium";
244
+ high: "high";
245
+ instant: "instant";
246
+ xhigh: "xhigh";
247
+ }>>;
248
+ }, z.core.$strict>;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ format: z.ZodLiteral<"messages">;
251
+ messages: z.ZodArray<z.ZodObject<{
252
+ role: z.ZodEnum<{
253
+ user: "user";
254
+ system: "system";
255
+ developer: "developer";
256
+ assistant: "assistant";
257
+ tool: "tool";
258
+ }>;
259
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
260
+ type: z.ZodLiteral<"text">;
261
+ text: z.ZodString;
262
+ }, z.core.$strict>, z.ZodObject<{
263
+ type: z.ZodLiteral<"image">;
264
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
265
+ kind: z.ZodLiteral<"url">;
266
+ url: z.ZodString;
267
+ }, z.core.$strict>, z.ZodObject<{
268
+ kind: z.ZodLiteral<"inline">;
269
+ mediaType: z.ZodString;
270
+ data: z.ZodString;
271
+ }, z.core.$strict>], "kind">;
272
+ detail: z.ZodOptional<z.ZodEnum<{
273
+ low: "low";
274
+ high: "high";
275
+ auto: "auto";
276
+ }>>;
277
+ }, z.core.$strict>, z.ZodObject<{
278
+ type: z.ZodLiteral<"audio">;
279
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
280
+ kind: z.ZodLiteral<"url">;
281
+ url: z.ZodString;
282
+ }, z.core.$strict>, z.ZodObject<{
283
+ kind: z.ZodLiteral<"inline">;
284
+ mediaType: z.ZodString;
285
+ data: z.ZodString;
286
+ }, z.core.$strict>], "kind">;
287
+ }, z.core.$strict>, z.ZodObject<{
288
+ type: z.ZodLiteral<"file">;
289
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
290
+ kind: z.ZodLiteral<"url">;
291
+ url: z.ZodString;
292
+ }, z.core.$strict>, z.ZodObject<{
293
+ kind: z.ZodLiteral<"inline">;
294
+ mediaType: z.ZodString;
295
+ data: z.ZodString;
296
+ }, z.core.$strict>], "kind">;
297
+ filename: z.ZodOptional<z.ZodString>;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ type: z.ZodLiteral<"refusal">;
300
+ text: z.ZodString;
301
+ }, z.core.$strict>], "type">>;
302
+ name: z.ZodOptional<z.ZodString>;
303
+ toolCallId: z.ZodOptional<z.ZodString>;
304
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
305
+ id: z.ZodString;
306
+ name: z.ZodString;
307
+ arguments: z.ZodString;
308
+ }, z.core.$strict>>>;
309
+ }, z.core.$strict>>;
310
+ }, z.core.$strict>, z.ZodObject<{
311
+ format: z.ZodLiteral<"text">;
312
+ text: z.ZodString;
313
+ }, z.core.$strict>, z.ZodObject<{
314
+ format: z.ZodLiteral<"text_batch">;
315
+ texts: z.ZodArray<z.ZodString>;
316
+ }, z.core.$strict>], "format">;
317
+ stream: z.ZodBoolean;
318
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
319
+ sampling: z.ZodObject<{
320
+ temperature: z.ZodOptional<z.ZodNumber>;
321
+ topP: z.ZodOptional<z.ZodNumber>;
322
+ topK: z.ZodOptional<z.ZodNumber>;
323
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
324
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
325
+ seed: z.ZodOptional<z.ZodNumber>;
326
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
327
+ }, z.core.$strict>;
328
+ reasoning: z.ZodOptional<z.ZodObject<{
329
+ effort: z.ZodEnum<{
330
+ low: "low";
331
+ medium: "medium";
332
+ high: "high";
333
+ }>;
334
+ }, z.core.$strict>>;
335
+ speech: z.ZodOptional<z.ZodObject<{
336
+ voice: z.ZodString;
337
+ responseFormat: z.ZodEnum<{
338
+ mp3: "mp3";
339
+ opus: "opus";
340
+ aac: "aac";
341
+ flac: "flac";
342
+ wav: "wav";
343
+ pcm: "pcm";
344
+ }>;
345
+ speed: z.ZodOptional<z.ZodNumber>;
346
+ }, z.core.$strict>>;
347
+ audioOutput: z.ZodOptional<z.ZodObject<{
348
+ voice: z.ZodString;
349
+ format: z.ZodEnum<{
350
+ mp3: "mp3";
351
+ opus: "opus";
352
+ flac: "flac";
353
+ wav: "wav";
354
+ pcm: "pcm";
355
+ }>;
356
+ }, z.core.$strict>>;
357
+ tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
358
+ type: z.ZodLiteral<"function">;
359
+ name: z.ZodString;
360
+ description: z.ZodOptional<z.ZodString>;
361
+ parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
362
+ strict: z.ZodOptional<z.ZodBoolean>;
363
+ }, z.core.$strict>>>;
364
+ toolChoice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
365
+ auto: "auto";
366
+ none: "none";
367
+ required: "required";
368
+ }>, z.ZodObject<{
369
+ type: z.ZodLiteral<"function">;
370
+ name: z.ZodString;
371
+ }, z.core.$strict>]>>;
372
+ responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
373
+ type: z.ZodLiteral<"text">;
374
+ }, z.core.$strict>, z.ZodObject<{
375
+ type: z.ZodLiteral<"json_object">;
376
+ }, z.core.$strict>, z.ZodObject<{
377
+ type: z.ZodLiteral<"json_schema">;
378
+ name: z.ZodString;
379
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
380
+ strict: z.ZodBoolean;
381
+ }, z.core.$strict>], "type">>;
382
+ client: z.ZodObject<{
383
+ apiFormat: z.ZodEnum<{
384
+ embeddings: "embeddings";
385
+ decisions: "decisions";
386
+ responses: "responses";
387
+ chat_completions: "chat_completions";
388
+ images_generations: "images_generations";
389
+ audio_transcriptions: "audio_transcriptions";
390
+ audio_speech: "audio_speech";
391
+ rerank: "rerank";
392
+ batches: "batches";
393
+ }>;
394
+ endpoint: z.ZodString;
395
+ clientRequestId: z.ZodOptional<z.ZodString>;
396
+ receivedAt: z.ZodString;
397
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
398
+ }, z.core.$strict>;
399
+ idempotencyKey: z.ZodOptional<z.ZodString>;
400
+ routingPolicy: z.ZodObject<{
401
+ routingPolicyId: z.ZodString;
402
+ policyVersion: z.ZodNumber;
403
+ }, z.core.$strict>;
404
+ authorizedRoutes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
405
+ deploymentId: z.ZodString;
406
+ modelReference: z.ZodString;
407
+ provider: z.ZodString;
408
+ regions: z.ZodArray<z.ZodString>;
409
+ maxFundingTier: z.ZodOptional<z.ZodEnum<{
410
+ free: "free";
411
+ credit: "credit";
412
+ paid: "paid";
413
+ }>>;
414
+ customerProviderCredential: z.ZodOptional<z.ZodObject<{
415
+ credentialHandle: z.ZodString;
416
+ credentialRevision: z.ZodNumber;
417
+ ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
418
+ connectionId: z.ZodString;
419
+ environment: z.ZodEnum<{
420
+ development: "development";
421
+ staging: "staging";
422
+ production: "production";
423
+ }>;
424
+ }, z.core.$strict>>;
425
+ substitution: z.ZodLiteral<"same_model">;
426
+ }, z.core.$strict>, z.ZodObject<{
427
+ authorizedByPolicy: z.ZodLiteral<true>;
428
+ deploymentId: z.ZodString;
429
+ modelReference: z.ZodString;
430
+ provider: z.ZodString;
431
+ regions: z.ZodArray<z.ZodString>;
432
+ maxFundingTier: z.ZodOptional<z.ZodEnum<{
433
+ free: "free";
434
+ credit: "credit";
435
+ paid: "paid";
436
+ }>>;
437
+ customerProviderCredential: z.ZodOptional<z.ZodObject<{
438
+ credentialHandle: z.ZodString;
439
+ credentialRevision: z.ZodNumber;
440
+ ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
441
+ connectionId: z.ZodString;
442
+ environment: z.ZodEnum<{
443
+ development: "development";
444
+ staging: "staging";
445
+ production: "production";
446
+ }>;
447
+ }, z.core.$strict>>;
448
+ substitution: z.ZodLiteral<"cross_model">;
449
+ }, z.core.$strict>], "substitution">>>;
450
+ }, z.core.$strip>;
451
+ /** Explicit restrictive generation: old v2 receivers reject this version whole. */
452
+ export declare const scopedInferenceRequestSchema: z.ZodObject<{
453
+ attribution: z.ZodObject<{
454
+ principal: z.ZodObject<{
455
+ billing: z.ZodObject<{
456
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
457
+ }, z.core.$strict>;
458
+ applicationId: z.ZodString;
459
+ credentialId: z.ZodString;
460
+ environment: z.ZodEnum<{
461
+ development: "development";
462
+ staging: "staging";
463
+ production: "production";
464
+ }>;
465
+ inferenceScopes: z.ZodArray<z.ZodEnum<{
466
+ "inference:invoke": "inference:invoke";
467
+ "inference:models:read": "inference:models:read";
468
+ "inference:usage:read": "inference:usage:read";
469
+ "inference:routing:read": "inference:routing:read";
470
+ "inference:routing:write": "inference:routing:write";
471
+ "inference:providers:read": "inference:providers:read";
472
+ "inference:providers:write": "inference:providers:write";
473
+ }>>;
474
+ }, z.core.$strip>;
475
+ userId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "DelegatedUserId", "out">>;
476
+ requestId: z.ZodString;
477
+ generationId: z.ZodOptional<z.ZodString>;
478
+ }, z.core.$strip>;
479
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
480
+ kind: z.ZodLiteral<"model">;
481
+ modelReference: z.ZodString;
482
+ }, z.core.$strict>, z.ZodObject<{
483
+ kind: z.ZodLiteral<"routing_profile_id">;
484
+ routingProfileId: z.ZodString;
485
+ }, z.core.$strict>], "kind">;
486
+ modality: z.ZodEnum<{
487
+ text: "text";
488
+ audio: "audio";
489
+ image: "image";
490
+ video: "video";
491
+ embedding: "embedding";
492
+ }>;
493
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
494
+ format: z.ZodLiteral<"decisions">;
495
+ decisions: z.ZodObject<{
496
+ state: z.ZodString;
497
+ instructions: z.ZodOptional<z.ZodString>;
498
+ questions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
499
+ kind: z.ZodLiteral<"choice">;
500
+ options: z.ZodArray<z.ZodString>;
501
+ id: z.ZodString;
502
+ question: z.ZodString;
503
+ criteria: z.ZodOptional<z.ZodString>;
504
+ }, z.core.$strict>, z.ZodObject<{
505
+ kind: z.ZodLiteral<"score">;
506
+ levels: z.ZodArray<z.ZodString>;
507
+ id: z.ZodString;
508
+ question: z.ZodString;
509
+ criteria: z.ZodOptional<z.ZodString>;
510
+ }, z.core.$strict>, z.ZodObject<{
511
+ kind: z.ZodLiteral<"noul">;
512
+ id: z.ZodString;
513
+ question: z.ZodString;
514
+ criteria: z.ZodOptional<z.ZodString>;
515
+ }, z.core.$strict>], "kind">>;
516
+ effort: z.ZodOptional<z.ZodEnum<{
517
+ low: "low";
518
+ medium: "medium";
519
+ high: "high";
520
+ instant: "instant";
521
+ xhigh: "xhigh";
522
+ }>>;
523
+ }, z.core.$strict>;
524
+ }, z.core.$strict>, z.ZodObject<{
525
+ format: z.ZodLiteral<"messages">;
526
+ messages: z.ZodArray<z.ZodObject<{
527
+ role: z.ZodEnum<{
528
+ user: "user";
529
+ system: "system";
530
+ developer: "developer";
531
+ assistant: "assistant";
532
+ tool: "tool";
533
+ }>;
534
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
535
+ type: z.ZodLiteral<"text">;
536
+ text: z.ZodString;
537
+ }, z.core.$strict>, z.ZodObject<{
538
+ type: z.ZodLiteral<"image">;
539
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
540
+ kind: z.ZodLiteral<"url">;
541
+ url: z.ZodString;
542
+ }, z.core.$strict>, z.ZodObject<{
543
+ kind: z.ZodLiteral<"inline">;
544
+ mediaType: z.ZodString;
545
+ data: z.ZodString;
546
+ }, z.core.$strict>], "kind">;
547
+ detail: z.ZodOptional<z.ZodEnum<{
548
+ low: "low";
549
+ high: "high";
550
+ auto: "auto";
551
+ }>>;
552
+ }, z.core.$strict>, z.ZodObject<{
553
+ type: z.ZodLiteral<"audio">;
554
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
555
+ kind: z.ZodLiteral<"url">;
556
+ url: z.ZodString;
557
+ }, z.core.$strict>, z.ZodObject<{
558
+ kind: z.ZodLiteral<"inline">;
559
+ mediaType: z.ZodString;
560
+ data: z.ZodString;
561
+ }, z.core.$strict>], "kind">;
562
+ }, z.core.$strict>, z.ZodObject<{
563
+ type: z.ZodLiteral<"file">;
564
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
565
+ kind: z.ZodLiteral<"url">;
566
+ url: z.ZodString;
567
+ }, z.core.$strict>, z.ZodObject<{
568
+ kind: z.ZodLiteral<"inline">;
569
+ mediaType: z.ZodString;
570
+ data: z.ZodString;
571
+ }, z.core.$strict>], "kind">;
572
+ filename: z.ZodOptional<z.ZodString>;
573
+ }, z.core.$strict>, z.ZodObject<{
574
+ type: z.ZodLiteral<"refusal">;
575
+ text: z.ZodString;
576
+ }, z.core.$strict>], "type">>;
577
+ name: z.ZodOptional<z.ZodString>;
578
+ toolCallId: z.ZodOptional<z.ZodString>;
579
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
580
+ id: z.ZodString;
581
+ name: z.ZodString;
582
+ arguments: z.ZodString;
583
+ }, z.core.$strict>>>;
584
+ }, z.core.$strict>>;
585
+ }, z.core.$strict>, z.ZodObject<{
586
+ format: z.ZodLiteral<"text">;
587
+ text: z.ZodString;
588
+ }, z.core.$strict>, z.ZodObject<{
589
+ format: z.ZodLiteral<"text_batch">;
590
+ texts: z.ZodArray<z.ZodString>;
591
+ }, z.core.$strict>], "format">;
592
+ stream: z.ZodBoolean;
593
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
594
+ sampling: z.ZodObject<{
595
+ temperature: z.ZodOptional<z.ZodNumber>;
596
+ topP: z.ZodOptional<z.ZodNumber>;
597
+ topK: z.ZodOptional<z.ZodNumber>;
598
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
599
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
600
+ seed: z.ZodOptional<z.ZodNumber>;
601
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
602
+ }, z.core.$strict>;
603
+ reasoning: z.ZodOptional<z.ZodObject<{
604
+ effort: z.ZodEnum<{
605
+ low: "low";
606
+ medium: "medium";
607
+ high: "high";
608
+ }>;
609
+ }, z.core.$strict>>;
610
+ speech: z.ZodOptional<z.ZodObject<{
611
+ voice: z.ZodString;
612
+ responseFormat: z.ZodEnum<{
613
+ mp3: "mp3";
614
+ opus: "opus";
615
+ aac: "aac";
616
+ flac: "flac";
617
+ wav: "wav";
618
+ pcm: "pcm";
619
+ }>;
620
+ speed: z.ZodOptional<z.ZodNumber>;
621
+ }, z.core.$strict>>;
622
+ audioOutput: z.ZodOptional<z.ZodObject<{
623
+ voice: z.ZodString;
624
+ format: z.ZodEnum<{
625
+ mp3: "mp3";
626
+ opus: "opus";
627
+ flac: "flac";
628
+ wav: "wav";
629
+ pcm: "pcm";
630
+ }>;
631
+ }, z.core.$strict>>;
632
+ tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
633
+ type: z.ZodLiteral<"function">;
634
+ name: z.ZodString;
635
+ description: z.ZodOptional<z.ZodString>;
636
+ parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
637
+ strict: z.ZodOptional<z.ZodBoolean>;
638
+ }, z.core.$strict>>>;
639
+ toolChoice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
640
+ auto: "auto";
641
+ none: "none";
642
+ required: "required";
643
+ }>, z.ZodObject<{
644
+ type: z.ZodLiteral<"function">;
645
+ name: z.ZodString;
646
+ }, z.core.$strict>]>>;
647
+ responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
648
+ type: z.ZodLiteral<"text">;
649
+ }, z.core.$strict>, z.ZodObject<{
650
+ type: z.ZodLiteral<"json_object">;
651
+ }, z.core.$strict>, z.ZodObject<{
652
+ type: z.ZodLiteral<"json_schema">;
653
+ name: z.ZodString;
654
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
655
+ strict: z.ZodBoolean;
656
+ }, z.core.$strict>], "type">>;
657
+ client: z.ZodObject<{
658
+ apiFormat: z.ZodEnum<{
659
+ embeddings: "embeddings";
660
+ decisions: "decisions";
661
+ responses: "responses";
662
+ chat_completions: "chat_completions";
663
+ images_generations: "images_generations";
664
+ audio_transcriptions: "audio_transcriptions";
665
+ audio_speech: "audio_speech";
666
+ rerank: "rerank";
667
+ batches: "batches";
668
+ }>;
669
+ endpoint: z.ZodString;
670
+ clientRequestId: z.ZodOptional<z.ZodString>;
671
+ receivedAt: z.ZodString;
672
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
673
+ }, z.core.$strict>;
674
+ idempotencyKey: z.ZodOptional<z.ZodString>;
675
+ routingPolicy: z.ZodObject<{
676
+ routingPolicyId: z.ZodString;
677
+ policyVersion: z.ZodNumber;
678
+ }, z.core.$strict>;
679
+ authorizedRoutes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
680
+ deploymentId: z.ZodString;
681
+ modelReference: z.ZodString;
682
+ provider: z.ZodString;
683
+ regions: z.ZodArray<z.ZodString>;
684
+ maxFundingTier: z.ZodOptional<z.ZodEnum<{
685
+ free: "free";
686
+ credit: "credit";
687
+ paid: "paid";
688
+ }>>;
689
+ customerProviderCredential: z.ZodOptional<z.ZodObject<{
690
+ credentialHandle: z.ZodString;
691
+ credentialRevision: z.ZodNumber;
692
+ ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
693
+ connectionId: z.ZodString;
694
+ environment: z.ZodEnum<{
695
+ development: "development";
696
+ staging: "staging";
697
+ production: "production";
698
+ }>;
699
+ }, z.core.$strict>>;
700
+ substitution: z.ZodLiteral<"same_model">;
701
+ }, z.core.$strict>, z.ZodObject<{
702
+ authorizedByPolicy: z.ZodLiteral<true>;
703
+ deploymentId: z.ZodString;
704
+ modelReference: z.ZodString;
705
+ provider: z.ZodString;
706
+ regions: z.ZodArray<z.ZodString>;
707
+ maxFundingTier: z.ZodOptional<z.ZodEnum<{
708
+ free: "free";
709
+ credit: "credit";
710
+ paid: "paid";
711
+ }>>;
712
+ customerProviderCredential: z.ZodOptional<z.ZodObject<{
713
+ credentialHandle: z.ZodString;
714
+ credentialRevision: z.ZodNumber;
715
+ ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
716
+ connectionId: z.ZodString;
717
+ environment: z.ZodEnum<{
718
+ development: "development";
719
+ staging: "staging";
720
+ production: "production";
721
+ }>;
722
+ }, z.core.$strict>>;
723
+ substitution: z.ZodLiteral<"cross_model">;
724
+ }, z.core.$strict>], "substitution">>>;
725
+ schemaVersion: z.ZodLiteral<3>;
726
+ scopedExecution: z.ZodObject<{
727
+ permitId: z.ZodString;
728
+ idempotencyKey: z.ZodString;
729
+ fixtureSha256: z.ZodString;
730
+ expiresAt: z.ZodString;
731
+ principal: z.ZodObject<{
732
+ accountId: z.ZodString;
733
+ applicationId: z.ZodString;
734
+ credentialId: z.ZodString;
735
+ environment: z.ZodEnum<{
736
+ development: "development";
737
+ staging: "staging";
738
+ production: "production";
739
+ }>;
740
+ }, z.core.$strict>;
741
+ policy: z.ZodObject<{
742
+ routingPolicyId: z.ZodString;
743
+ policyVersion: z.ZodNumber;
744
+ }, z.core.$strict>;
745
+ deploymentId: z.ZodString;
746
+ provider: z.ZodString;
747
+ keyId: z.ZodString;
748
+ modelReference: z.ZodString;
749
+ upstreamModelId: z.ZodString;
750
+ priceVersionId: z.ZodString;
751
+ providerRateCardVersionId: z.ZodString;
752
+ providerSourceVersion: z.ZodString;
753
+ maxCostUsd: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
754
+ requestId: z.ZodString;
755
+ snapshotId: z.ZodString;
756
+ catalogueEvidenceHash: z.ZodString;
757
+ }, z.core.$strict>;
758
+ }, z.core.$strip>;
759
+ /** Private repeated Auto is independently negotiated, never a v3 fixture renewal. */
760
+ export declare const privateAutoInferenceRequestSchema: z.ZodObject<{
761
+ input: z.ZodDiscriminatedUnion<[z.ZodObject<{
762
+ format: z.ZodLiteral<"decisions">;
763
+ decisions: z.ZodObject<{
764
+ state: z.ZodString;
765
+ instructions: z.ZodOptional<z.ZodString>;
766
+ questions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
767
+ kind: z.ZodLiteral<"choice">;
768
+ options: z.ZodArray<z.ZodString>;
769
+ id: z.ZodString;
770
+ question: z.ZodString;
771
+ criteria: z.ZodOptional<z.ZodString>;
772
+ }, z.core.$strict>, z.ZodObject<{
773
+ kind: z.ZodLiteral<"score">;
774
+ levels: z.ZodArray<z.ZodString>;
775
+ id: z.ZodString;
776
+ question: z.ZodString;
777
+ criteria: z.ZodOptional<z.ZodString>;
778
+ }, z.core.$strict>, z.ZodObject<{
779
+ kind: z.ZodLiteral<"noul">;
780
+ id: z.ZodString;
781
+ question: z.ZodString;
782
+ criteria: z.ZodOptional<z.ZodString>;
783
+ }, z.core.$strict>], "kind">>;
784
+ effort: z.ZodOptional<z.ZodEnum<{
785
+ low: "low";
786
+ medium: "medium";
787
+ high: "high";
788
+ instant: "instant";
789
+ xhigh: "xhigh";
790
+ }>>;
791
+ }, z.core.$strict>;
792
+ }, z.core.$strict>, z.ZodObject<{
793
+ format: z.ZodLiteral<"messages">;
794
+ messages: z.ZodArray<z.ZodObject<{
795
+ role: z.ZodEnum<{
796
+ user: "user";
797
+ system: "system";
798
+ developer: "developer";
799
+ assistant: "assistant";
800
+ tool: "tool";
801
+ }>;
802
+ content: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
803
+ type: z.ZodLiteral<"text">;
804
+ text: z.ZodString;
805
+ }, z.core.$strict>, z.ZodObject<{
806
+ type: z.ZodLiteral<"image">;
807
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
808
+ kind: z.ZodLiteral<"url">;
809
+ url: z.ZodString;
810
+ }, z.core.$strict>, z.ZodObject<{
811
+ kind: z.ZodLiteral<"inline">;
812
+ mediaType: z.ZodString;
813
+ data: z.ZodString;
814
+ }, z.core.$strict>], "kind">;
815
+ detail: z.ZodOptional<z.ZodEnum<{
816
+ low: "low";
817
+ high: "high";
818
+ auto: "auto";
819
+ }>>;
820
+ }, z.core.$strict>, z.ZodObject<{
821
+ type: z.ZodLiteral<"audio">;
822
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
823
+ kind: z.ZodLiteral<"url">;
824
+ url: z.ZodString;
825
+ }, z.core.$strict>, z.ZodObject<{
826
+ kind: z.ZodLiteral<"inline">;
827
+ mediaType: z.ZodString;
828
+ data: z.ZodString;
829
+ }, z.core.$strict>], "kind">;
830
+ }, z.core.$strict>, z.ZodObject<{
831
+ type: z.ZodLiteral<"file">;
832
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
833
+ kind: z.ZodLiteral<"url">;
834
+ url: z.ZodString;
835
+ }, z.core.$strict>, z.ZodObject<{
836
+ kind: z.ZodLiteral<"inline">;
837
+ mediaType: z.ZodString;
838
+ data: z.ZodString;
839
+ }, z.core.$strict>], "kind">;
840
+ filename: z.ZodOptional<z.ZodString>;
841
+ }, z.core.$strict>, z.ZodObject<{
842
+ type: z.ZodLiteral<"refusal">;
843
+ text: z.ZodString;
844
+ }, z.core.$strict>], "type">>;
845
+ name: z.ZodOptional<z.ZodString>;
846
+ toolCallId: z.ZodOptional<z.ZodString>;
847
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
848
+ id: z.ZodString;
849
+ name: z.ZodString;
850
+ arguments: z.ZodString;
851
+ }, z.core.$strict>>>;
852
+ }, z.core.$strict>>;
853
+ }, z.core.$strict>, z.ZodObject<{
854
+ format: z.ZodLiteral<"text">;
855
+ text: z.ZodString;
856
+ }, z.core.$strict>, z.ZodObject<{
857
+ format: z.ZodLiteral<"text_batch">;
858
+ texts: z.ZodArray<z.ZodString>;
859
+ }, z.core.$strict>], "format">;
860
+ reasoning: z.ZodOptional<z.ZodObject<{
861
+ effort: z.ZodEnum<{
862
+ low: "low";
863
+ medium: "medium";
864
+ high: "high";
865
+ }>;
866
+ }, z.core.$strict>>;
867
+ tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
868
+ type: z.ZodLiteral<"function">;
869
+ name: z.ZodString;
870
+ description: z.ZodOptional<z.ZodString>;
871
+ parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
872
+ strict: z.ZodOptional<z.ZodBoolean>;
873
+ }, z.core.$strict>>>;
874
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
875
+ stream: z.ZodBoolean;
876
+ responseFormat: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
877
+ type: z.ZodLiteral<"text">;
878
+ }, z.core.$strict>, z.ZodObject<{
879
+ type: z.ZodLiteral<"json_object">;
880
+ }, z.core.$strict>, z.ZodObject<{
881
+ type: z.ZodLiteral<"json_schema">;
882
+ name: z.ZodString;
883
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
884
+ strict: z.ZodBoolean;
885
+ }, z.core.$strict>], "type">>;
886
+ toolChoice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
887
+ auto: "auto";
888
+ none: "none";
889
+ required: "required";
890
+ }>, z.ZodObject<{
891
+ type: z.ZodLiteral<"function">;
892
+ name: z.ZodString;
893
+ }, z.core.$strict>]>>;
894
+ routingPolicy: z.ZodObject<{
895
+ routingPolicyId: z.ZodString;
896
+ policyVersion: z.ZodNumber;
897
+ }, z.core.$strict>;
898
+ idempotencyKey: z.ZodOptional<z.ZodString>;
899
+ attribution: z.ZodObject<{
900
+ principal: z.ZodObject<{
901
+ billing: z.ZodObject<{
902
+ accountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
903
+ }, z.core.$strict>;
904
+ applicationId: z.ZodString;
905
+ credentialId: z.ZodString;
906
+ environment: z.ZodEnum<{
907
+ development: "development";
908
+ staging: "staging";
909
+ production: "production";
910
+ }>;
911
+ inferenceScopes: z.ZodArray<z.ZodEnum<{
912
+ "inference:invoke": "inference:invoke";
913
+ "inference:models:read": "inference:models:read";
914
+ "inference:usage:read": "inference:usage:read";
915
+ "inference:routing:read": "inference:routing:read";
916
+ "inference:routing:write": "inference:routing:write";
917
+ "inference:providers:read": "inference:providers:read";
918
+ "inference:providers:write": "inference:providers:write";
919
+ }>>;
920
+ }, z.core.$strip>;
921
+ userId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "DelegatedUserId", "out">>;
922
+ requestId: z.ZodString;
923
+ generationId: z.ZodOptional<z.ZodString>;
924
+ }, z.core.$strip>;
925
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
926
+ kind: z.ZodLiteral<"model">;
927
+ modelReference: z.ZodString;
928
+ }, z.core.$strict>, z.ZodObject<{
929
+ kind: z.ZodLiteral<"routing_profile_id">;
930
+ routingProfileId: z.ZodString;
931
+ }, z.core.$strict>], "kind">;
932
+ client: z.ZodObject<{
933
+ apiFormat: z.ZodEnum<{
934
+ embeddings: "embeddings";
935
+ decisions: "decisions";
936
+ responses: "responses";
937
+ chat_completions: "chat_completions";
938
+ images_generations: "images_generations";
939
+ audio_transcriptions: "audio_transcriptions";
940
+ audio_speech: "audio_speech";
941
+ rerank: "rerank";
942
+ batches: "batches";
943
+ }>;
944
+ endpoint: z.ZodString;
945
+ clientRequestId: z.ZodOptional<z.ZodString>;
946
+ receivedAt: z.ZodString;
947
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
948
+ }, z.core.$strict>;
949
+ authorizedRoutes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
950
+ deploymentId: z.ZodString;
951
+ modelReference: z.ZodString;
952
+ provider: z.ZodString;
953
+ regions: z.ZodArray<z.ZodString>;
954
+ maxFundingTier: z.ZodOptional<z.ZodEnum<{
955
+ free: "free";
956
+ credit: "credit";
957
+ paid: "paid";
958
+ }>>;
959
+ customerProviderCredential: z.ZodOptional<z.ZodObject<{
960
+ credentialHandle: z.ZodString;
961
+ credentialRevision: z.ZodNumber;
962
+ ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
963
+ connectionId: z.ZodString;
964
+ environment: z.ZodEnum<{
965
+ development: "development";
966
+ staging: "staging";
967
+ production: "production";
968
+ }>;
969
+ }, z.core.$strict>>;
970
+ substitution: z.ZodLiteral<"same_model">;
971
+ }, z.core.$strict>, z.ZodObject<{
972
+ authorizedByPolicy: z.ZodLiteral<true>;
973
+ deploymentId: z.ZodString;
974
+ modelReference: z.ZodString;
975
+ provider: z.ZodString;
976
+ regions: z.ZodArray<z.ZodString>;
977
+ maxFundingTier: z.ZodOptional<z.ZodEnum<{
978
+ free: "free";
979
+ credit: "credit";
980
+ paid: "paid";
981
+ }>>;
982
+ customerProviderCredential: z.ZodOptional<z.ZodObject<{
983
+ credentialHandle: z.ZodString;
984
+ credentialRevision: z.ZodNumber;
985
+ ownerAccountId: z.core.$ZodBranded<z.ZodString, "OxyAccountId", "out">;
986
+ connectionId: z.ZodString;
987
+ environment: z.ZodEnum<{
988
+ development: "development";
989
+ staging: "staging";
990
+ production: "production";
991
+ }>;
992
+ }, z.core.$strict>>;
993
+ substitution: z.ZodLiteral<"cross_model">;
994
+ }, z.core.$strict>], "substitution">>>;
995
+ modality: z.ZodEnum<{
996
+ text: "text";
997
+ audio: "audio";
998
+ image: "image";
999
+ video: "video";
1000
+ embedding: "embedding";
1001
+ }>;
1002
+ sampling: z.ZodObject<{
1003
+ temperature: z.ZodOptional<z.ZodNumber>;
1004
+ topP: z.ZodOptional<z.ZodNumber>;
1005
+ topK: z.ZodOptional<z.ZodNumber>;
1006
+ frequencyPenalty: z.ZodOptional<z.ZodNumber>;
1007
+ presencePenalty: z.ZodOptional<z.ZodNumber>;
1008
+ seed: z.ZodOptional<z.ZodNumber>;
1009
+ stopSequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
1010
+ }, z.core.$strict>;
1011
+ speech: z.ZodOptional<z.ZodObject<{
1012
+ voice: z.ZodString;
1013
+ responseFormat: z.ZodEnum<{
1014
+ mp3: "mp3";
1015
+ opus: "opus";
1016
+ aac: "aac";
1017
+ flac: "flac";
1018
+ wav: "wav";
1019
+ pcm: "pcm";
1020
+ }>;
1021
+ speed: z.ZodOptional<z.ZodNumber>;
1022
+ }, z.core.$strict>>;
1023
+ audioOutput: z.ZodOptional<z.ZodObject<{
1024
+ voice: z.ZodString;
1025
+ format: z.ZodEnum<{
1026
+ mp3: "mp3";
1027
+ opus: "opus";
1028
+ flac: "flac";
1029
+ wav: "wav";
1030
+ pcm: "pcm";
1031
+ }>;
1032
+ }, z.core.$strict>>;
1033
+ schemaVersion: z.ZodLiteral<4>;
1034
+ privateAutoExecution: z.ZodObject<{
1035
+ contractVersion: z.ZodLiteral<"3.7.0">;
1036
+ purpose: z.ZodLiteral<"private_auto_classifier">;
1037
+ classifierVersion: z.ZodLiteral<"jev-auto-v1">;
1038
+ approvalId: z.ZodString;
1039
+ approvalVersion: z.ZodNumber;
1040
+ approvalSha256: z.ZodString;
1041
+ parentMeteredUsageId: z.ZodGUID;
1042
+ parentRequestId: z.ZodString;
1043
+ operationId: z.ZodString;
1044
+ requestId: z.ZodString;
1045
+ inputSha256: z.ZodString;
1046
+ expiresAt: z.ZodString;
1047
+ runtimeExpiresAt: z.ZodString;
1048
+ principal: z.ZodObject<{
1049
+ accountId: z.ZodString;
1050
+ applicationId: z.ZodString;
1051
+ credentialId: z.ZodString;
1052
+ environment: z.ZodLiteral<"production">;
1053
+ lane: z.ZodLiteral<"service_token">;
1054
+ }, z.core.$strict>;
1055
+ policy: z.ZodObject<{
1056
+ routingPolicyId: z.ZodString;
1057
+ policyVersion: z.ZodNumber;
1058
+ }, z.core.$strict>;
1059
+ economicPolicyVersion: z.ZodString;
1060
+ economicRelationshipId: z.ZodString;
1061
+ deploymentId: z.ZodString;
1062
+ provider: z.ZodString;
1063
+ keyId: z.ZodString;
1064
+ modelReference: z.ZodString;
1065
+ upstreamModelId: z.ZodString;
1066
+ regions: z.ZodArray<z.ZodString>;
1067
+ priceVersionId: z.ZodString;
1068
+ providerRateCardVersionId: z.ZodString;
1069
+ providerSourceVersion: z.ZodString;
1070
+ maxCostUsd: z.core.$ZodBranded<z.ZodString, "ExactDecimal", "out">;
1071
+ snapshotId: z.ZodString;
1072
+ catalogueEvidenceHash: z.ZodString;
1073
+ }, z.core.$strict>;
1074
+ }, z.core.$strict>;
1075
+ export type ScopedInferenceRequest = z.infer<typeof scopedInferenceRequestSchema>;
1076
+ export type PrivateAutoInferenceRequest = z.infer<typeof privateAutoInferenceRequestSchema>;
1077
+ export type InferenceInput = z.infer<typeof inferenceInputSchema>;
1078
+ export type ClientRequestMetadata = z.infer<typeof clientRequestMetadataSchema>;
1079
+ export type InferenceRequest = z.infer<typeof inferenceRequestSchema>;