@oxy.so/contracts 4.8.0 → 4.9.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.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/accountGraph.js +13 -5
- package/dist/cjs/accountSubject.js +189 -0
- package/dist/cjs/agency.js +56 -4
- package/dist/cjs/agentKeys.js +67 -0
- package/dist/cjs/capabilityBindings.js +72 -0
- package/dist/cjs/index.js +60 -13
- package/dist/cjs/inference/economics.js +135 -0
- package/dist/cjs/products/access.js +60 -0
- package/dist/cjs/products/billing.js +32 -0
- package/dist/cjs/signIn.js +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountGraph.js +13 -5
- package/dist/esm/accountSubject.js +182 -0
- package/dist/esm/agency.js +55 -3
- package/dist/esm/agentKeys.js +63 -0
- package/dist/esm/capabilityBindings.js +67 -0
- package/dist/esm/index.js +10 -1
- package/dist/esm/inference/economics.js +132 -0
- package/dist/esm/products/access.js +57 -0
- package/dist/esm/products/billing.js +29 -0
- package/dist/esm/signIn.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountGraph.d.ts +23 -8
- package/dist/types/accountSubject.d.ts +210 -0
- package/dist/types/agency.d.ts +956 -190
- package/dist/types/agentKeys.d.ts +525 -0
- package/dist/types/capabilityBindings.d.ts +6 -0
- package/dist/types/deviceDirectory.d.ts +50 -50
- package/dist/types/deviceSession.d.ts +14 -14
- package/dist/types/externalIdentity.d.ts +4 -4
- package/dist/types/identity.d.ts +2 -2
- package/dist/types/index.d.ts +12 -2
- package/dist/types/inference/accountBilling.d.ts +30 -30
- package/dist/types/inference/aliaModelRelease.d.ts +83 -83
- package/dist/types/inference/catalogue.d.ts +180 -180
- package/dist/types/inference/economics.d.ts +376 -0
- package/dist/types/inference/entitlement.d.ts +47 -47
- package/dist/types/inference/inbox.d.ts +12 -12
- package/dist/types/inference/modelDocumentation.d.ts +231 -231
- package/dist/types/inference/priceVersion.d.ts +4 -4
- package/dist/types/inference/providerConnection.d.ts +38 -38
- package/dist/types/inference/realtime.d.ts +802 -802
- package/dist/types/inference/request.d.ts +844 -844
- package/dist/types/inference/routingPolicy.d.ts +4 -4
- package/dist/types/inference/scopedExecution.d.ts +38 -38
- package/dist/types/inference/streamEvents.d.ts +4 -4
- package/dist/types/inference/usage.d.ts +12 -12
- package/dist/types/keyRotation.d.ts +2 -2
- package/dist/types/notifications.d.ts +4 -4
- package/dist/types/oauth.d.ts +30 -30
- package/dist/types/products/access.d.ts +487 -0
- package/dist/types/products/billing.d.ts +563 -0
- package/dist/types/recommendations.d.ts +2 -2
- package/dist/types/sessionStatus.d.ts +10 -10
- package/dist/types/signIn.d.ts +6 -6
- package/dist/types/transparency.d.ts +2 -2
- package/package.json +1 -1
|
@@ -35,23 +35,23 @@ export declare const inferenceContentSourceSchema: z.ZodDiscriminatedUnion<"kind
|
|
|
35
35
|
kind: z.ZodLiteral<"url">;
|
|
36
36
|
url: z.ZodString;
|
|
37
37
|
}, "strict", z.ZodTypeAny, {
|
|
38
|
-
url: string;
|
|
39
38
|
kind: "url";
|
|
40
|
-
}, {
|
|
41
39
|
url: string;
|
|
40
|
+
}, {
|
|
42
41
|
kind: "url";
|
|
42
|
+
url: string;
|
|
43
43
|
}>, z.ZodObject<{
|
|
44
44
|
kind: z.ZodLiteral<"inline">;
|
|
45
45
|
mediaType: z.ZodString;
|
|
46
46
|
data: z.ZodString;
|
|
47
47
|
}, "strict", z.ZodTypeAny, {
|
|
48
48
|
kind: "inline";
|
|
49
|
-
mediaType: string;
|
|
50
49
|
data: string;
|
|
50
|
+
mediaType: string;
|
|
51
51
|
}, {
|
|
52
52
|
kind: "inline";
|
|
53
|
-
mediaType: string;
|
|
54
53
|
data: string;
|
|
54
|
+
mediaType: string;
|
|
55
55
|
}>]>;
|
|
56
56
|
/**
|
|
57
57
|
* One part of a message's content. A message is always a list of parts.
|
|
@@ -100,46 +100,46 @@ export declare const inferenceContentPartSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
100
100
|
kind: z.ZodLiteral<"url">;
|
|
101
101
|
url: z.ZodString;
|
|
102
102
|
}, "strict", z.ZodTypeAny, {
|
|
103
|
-
url: string;
|
|
104
103
|
kind: "url";
|
|
105
|
-
}, {
|
|
106
104
|
url: string;
|
|
105
|
+
}, {
|
|
107
106
|
kind: "url";
|
|
107
|
+
url: string;
|
|
108
108
|
}>, z.ZodObject<{
|
|
109
109
|
kind: z.ZodLiteral<"inline">;
|
|
110
110
|
mediaType: z.ZodString;
|
|
111
111
|
data: z.ZodString;
|
|
112
112
|
}, "strict", z.ZodTypeAny, {
|
|
113
113
|
kind: "inline";
|
|
114
|
-
mediaType: string;
|
|
115
114
|
data: string;
|
|
115
|
+
mediaType: string;
|
|
116
116
|
}, {
|
|
117
117
|
kind: "inline";
|
|
118
|
-
mediaType: string;
|
|
119
118
|
data: string;
|
|
119
|
+
mediaType: string;
|
|
120
120
|
}>]>;
|
|
121
121
|
/** Provider-independent hint; providers that ignore it are unaffected. */
|
|
122
122
|
detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
|
|
123
123
|
}, "strict", z.ZodTypeAny, {
|
|
124
124
|
type: "image";
|
|
125
125
|
source: {
|
|
126
|
-
url: string;
|
|
127
126
|
kind: "url";
|
|
127
|
+
url: string;
|
|
128
128
|
} | {
|
|
129
129
|
kind: "inline";
|
|
130
|
-
mediaType: string;
|
|
131
130
|
data: string;
|
|
131
|
+
mediaType: string;
|
|
132
132
|
};
|
|
133
133
|
detail?: "low" | "high" | "auto" | undefined;
|
|
134
134
|
}, {
|
|
135
135
|
type: "image";
|
|
136
136
|
source: {
|
|
137
|
-
url: string;
|
|
138
137
|
kind: "url";
|
|
138
|
+
url: string;
|
|
139
139
|
} | {
|
|
140
140
|
kind: "inline";
|
|
141
|
-
mediaType: string;
|
|
142
141
|
data: string;
|
|
142
|
+
mediaType: string;
|
|
143
143
|
};
|
|
144
144
|
detail?: "low" | "high" | "auto" | undefined;
|
|
145
145
|
}>, z.ZodObject<{
|
|
@@ -148,43 +148,43 @@ export declare const inferenceContentPartSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
148
148
|
kind: z.ZodLiteral<"url">;
|
|
149
149
|
url: z.ZodString;
|
|
150
150
|
}, "strict", z.ZodTypeAny, {
|
|
151
|
-
url: string;
|
|
152
151
|
kind: "url";
|
|
153
|
-
}, {
|
|
154
152
|
url: string;
|
|
153
|
+
}, {
|
|
155
154
|
kind: "url";
|
|
155
|
+
url: string;
|
|
156
156
|
}>, z.ZodObject<{
|
|
157
157
|
kind: z.ZodLiteral<"inline">;
|
|
158
158
|
mediaType: z.ZodString;
|
|
159
159
|
data: z.ZodString;
|
|
160
160
|
}, "strict", z.ZodTypeAny, {
|
|
161
161
|
kind: "inline";
|
|
162
|
-
mediaType: string;
|
|
163
162
|
data: string;
|
|
163
|
+
mediaType: string;
|
|
164
164
|
}, {
|
|
165
165
|
kind: "inline";
|
|
166
|
-
mediaType: string;
|
|
167
166
|
data: string;
|
|
167
|
+
mediaType: string;
|
|
168
168
|
}>]>;
|
|
169
169
|
}, "strict", z.ZodTypeAny, {
|
|
170
170
|
type: "audio";
|
|
171
171
|
source: {
|
|
172
|
-
url: string;
|
|
173
172
|
kind: "url";
|
|
173
|
+
url: string;
|
|
174
174
|
} | {
|
|
175
175
|
kind: "inline";
|
|
176
|
-
mediaType: string;
|
|
177
176
|
data: string;
|
|
177
|
+
mediaType: string;
|
|
178
178
|
};
|
|
179
179
|
}, {
|
|
180
180
|
type: "audio";
|
|
181
181
|
source: {
|
|
182
|
-
url: string;
|
|
183
182
|
kind: "url";
|
|
183
|
+
url: string;
|
|
184
184
|
} | {
|
|
185
185
|
kind: "inline";
|
|
186
|
-
mediaType: string;
|
|
187
186
|
data: string;
|
|
187
|
+
mediaType: string;
|
|
188
188
|
};
|
|
189
189
|
}>, z.ZodObject<{
|
|
190
190
|
type: z.ZodLiteral<"file">;
|
|
@@ -192,45 +192,45 @@ export declare const inferenceContentPartSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
192
192
|
kind: z.ZodLiteral<"url">;
|
|
193
193
|
url: z.ZodString;
|
|
194
194
|
}, "strict", z.ZodTypeAny, {
|
|
195
|
-
url: string;
|
|
196
195
|
kind: "url";
|
|
197
|
-
}, {
|
|
198
196
|
url: string;
|
|
197
|
+
}, {
|
|
199
198
|
kind: "url";
|
|
199
|
+
url: string;
|
|
200
200
|
}>, z.ZodObject<{
|
|
201
201
|
kind: z.ZodLiteral<"inline">;
|
|
202
202
|
mediaType: z.ZodString;
|
|
203
203
|
data: z.ZodString;
|
|
204
204
|
}, "strict", z.ZodTypeAny, {
|
|
205
205
|
kind: "inline";
|
|
206
|
-
mediaType: string;
|
|
207
206
|
data: string;
|
|
207
|
+
mediaType: string;
|
|
208
208
|
}, {
|
|
209
209
|
kind: "inline";
|
|
210
|
-
mediaType: string;
|
|
211
210
|
data: string;
|
|
211
|
+
mediaType: string;
|
|
212
212
|
}>]>;
|
|
213
213
|
filename: z.ZodOptional<z.ZodString>;
|
|
214
214
|
}, "strict", z.ZodTypeAny, {
|
|
215
215
|
type: "file";
|
|
216
216
|
source: {
|
|
217
|
-
url: string;
|
|
218
217
|
kind: "url";
|
|
218
|
+
url: string;
|
|
219
219
|
} | {
|
|
220
220
|
kind: "inline";
|
|
221
|
-
mediaType: string;
|
|
222
221
|
data: string;
|
|
222
|
+
mediaType: string;
|
|
223
223
|
};
|
|
224
224
|
filename?: string | undefined;
|
|
225
225
|
}, {
|
|
226
226
|
type: "file";
|
|
227
227
|
source: {
|
|
228
|
-
url: string;
|
|
229
228
|
kind: "url";
|
|
229
|
+
url: string;
|
|
230
230
|
} | {
|
|
231
231
|
kind: "inline";
|
|
232
|
-
mediaType: string;
|
|
233
232
|
data: string;
|
|
233
|
+
mediaType: string;
|
|
234
234
|
};
|
|
235
235
|
filename?: string | undefined;
|
|
236
236
|
}>, z.ZodObject<{
|
|
@@ -255,12 +255,12 @@ export declare const inferenceToolCallSchema: z.ZodObject<{
|
|
|
255
255
|
name: z.ZodString;
|
|
256
256
|
arguments: z.ZodString;
|
|
257
257
|
}, "strict", z.ZodTypeAny, {
|
|
258
|
-
id: string;
|
|
259
258
|
name: string;
|
|
259
|
+
id: string;
|
|
260
260
|
arguments: string;
|
|
261
261
|
}, {
|
|
262
|
-
id: string;
|
|
263
262
|
name: string;
|
|
263
|
+
id: string;
|
|
264
264
|
arguments: string;
|
|
265
265
|
}>;
|
|
266
266
|
export declare const inferenceMessageRoleSchema: z.ZodEnum<["system", "developer", "user", "assistant", "tool"]>;
|
|
@@ -289,46 +289,46 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
289
289
|
kind: z.ZodLiteral<"url">;
|
|
290
290
|
url: z.ZodString;
|
|
291
291
|
}, "strict", z.ZodTypeAny, {
|
|
292
|
-
url: string;
|
|
293
292
|
kind: "url";
|
|
294
|
-
}, {
|
|
295
293
|
url: string;
|
|
294
|
+
}, {
|
|
296
295
|
kind: "url";
|
|
296
|
+
url: string;
|
|
297
297
|
}>, z.ZodObject<{
|
|
298
298
|
kind: z.ZodLiteral<"inline">;
|
|
299
299
|
mediaType: z.ZodString;
|
|
300
300
|
data: z.ZodString;
|
|
301
301
|
}, "strict", z.ZodTypeAny, {
|
|
302
302
|
kind: "inline";
|
|
303
|
-
mediaType: string;
|
|
304
303
|
data: string;
|
|
304
|
+
mediaType: string;
|
|
305
305
|
}, {
|
|
306
306
|
kind: "inline";
|
|
307
|
-
mediaType: string;
|
|
308
307
|
data: string;
|
|
308
|
+
mediaType: string;
|
|
309
309
|
}>]>;
|
|
310
310
|
/** Provider-independent hint; providers that ignore it are unaffected. */
|
|
311
311
|
detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
|
|
312
312
|
}, "strict", z.ZodTypeAny, {
|
|
313
313
|
type: "image";
|
|
314
314
|
source: {
|
|
315
|
-
url: string;
|
|
316
315
|
kind: "url";
|
|
316
|
+
url: string;
|
|
317
317
|
} | {
|
|
318
318
|
kind: "inline";
|
|
319
|
-
mediaType: string;
|
|
320
319
|
data: string;
|
|
320
|
+
mediaType: string;
|
|
321
321
|
};
|
|
322
322
|
detail?: "low" | "high" | "auto" | undefined;
|
|
323
323
|
}, {
|
|
324
324
|
type: "image";
|
|
325
325
|
source: {
|
|
326
|
-
url: string;
|
|
327
326
|
kind: "url";
|
|
327
|
+
url: string;
|
|
328
328
|
} | {
|
|
329
329
|
kind: "inline";
|
|
330
|
-
mediaType: string;
|
|
331
330
|
data: string;
|
|
331
|
+
mediaType: string;
|
|
332
332
|
};
|
|
333
333
|
detail?: "low" | "high" | "auto" | undefined;
|
|
334
334
|
}>, z.ZodObject<{
|
|
@@ -337,43 +337,43 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
337
337
|
kind: z.ZodLiteral<"url">;
|
|
338
338
|
url: z.ZodString;
|
|
339
339
|
}, "strict", z.ZodTypeAny, {
|
|
340
|
-
url: string;
|
|
341
340
|
kind: "url";
|
|
342
|
-
}, {
|
|
343
341
|
url: string;
|
|
342
|
+
}, {
|
|
344
343
|
kind: "url";
|
|
344
|
+
url: string;
|
|
345
345
|
}>, z.ZodObject<{
|
|
346
346
|
kind: z.ZodLiteral<"inline">;
|
|
347
347
|
mediaType: z.ZodString;
|
|
348
348
|
data: z.ZodString;
|
|
349
349
|
}, "strict", z.ZodTypeAny, {
|
|
350
350
|
kind: "inline";
|
|
351
|
-
mediaType: string;
|
|
352
351
|
data: string;
|
|
352
|
+
mediaType: string;
|
|
353
353
|
}, {
|
|
354
354
|
kind: "inline";
|
|
355
|
-
mediaType: string;
|
|
356
355
|
data: string;
|
|
356
|
+
mediaType: string;
|
|
357
357
|
}>]>;
|
|
358
358
|
}, "strict", z.ZodTypeAny, {
|
|
359
359
|
type: "audio";
|
|
360
360
|
source: {
|
|
361
|
-
url: string;
|
|
362
361
|
kind: "url";
|
|
362
|
+
url: string;
|
|
363
363
|
} | {
|
|
364
364
|
kind: "inline";
|
|
365
|
-
mediaType: string;
|
|
366
365
|
data: string;
|
|
366
|
+
mediaType: string;
|
|
367
367
|
};
|
|
368
368
|
}, {
|
|
369
369
|
type: "audio";
|
|
370
370
|
source: {
|
|
371
|
-
url: string;
|
|
372
371
|
kind: "url";
|
|
372
|
+
url: string;
|
|
373
373
|
} | {
|
|
374
374
|
kind: "inline";
|
|
375
|
-
mediaType: string;
|
|
376
375
|
data: string;
|
|
376
|
+
mediaType: string;
|
|
377
377
|
};
|
|
378
378
|
}>, z.ZodObject<{
|
|
379
379
|
type: z.ZodLiteral<"file">;
|
|
@@ -381,45 +381,45 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
381
381
|
kind: z.ZodLiteral<"url">;
|
|
382
382
|
url: z.ZodString;
|
|
383
383
|
}, "strict", z.ZodTypeAny, {
|
|
384
|
-
url: string;
|
|
385
384
|
kind: "url";
|
|
386
|
-
}, {
|
|
387
385
|
url: string;
|
|
386
|
+
}, {
|
|
388
387
|
kind: "url";
|
|
388
|
+
url: string;
|
|
389
389
|
}>, z.ZodObject<{
|
|
390
390
|
kind: z.ZodLiteral<"inline">;
|
|
391
391
|
mediaType: z.ZodString;
|
|
392
392
|
data: z.ZodString;
|
|
393
393
|
}, "strict", z.ZodTypeAny, {
|
|
394
394
|
kind: "inline";
|
|
395
|
-
mediaType: string;
|
|
396
395
|
data: string;
|
|
396
|
+
mediaType: string;
|
|
397
397
|
}, {
|
|
398
398
|
kind: "inline";
|
|
399
|
-
mediaType: string;
|
|
400
399
|
data: string;
|
|
400
|
+
mediaType: string;
|
|
401
401
|
}>]>;
|
|
402
402
|
filename: z.ZodOptional<z.ZodString>;
|
|
403
403
|
}, "strict", z.ZodTypeAny, {
|
|
404
404
|
type: "file";
|
|
405
405
|
source: {
|
|
406
|
-
url: string;
|
|
407
406
|
kind: "url";
|
|
407
|
+
url: string;
|
|
408
408
|
} | {
|
|
409
409
|
kind: "inline";
|
|
410
|
-
mediaType: string;
|
|
411
410
|
data: string;
|
|
411
|
+
mediaType: string;
|
|
412
412
|
};
|
|
413
413
|
filename?: string | undefined;
|
|
414
414
|
}, {
|
|
415
415
|
type: "file";
|
|
416
416
|
source: {
|
|
417
|
-
url: string;
|
|
418
417
|
kind: "url";
|
|
418
|
+
url: string;
|
|
419
419
|
} | {
|
|
420
420
|
kind: "inline";
|
|
421
|
-
mediaType: string;
|
|
422
421
|
data: string;
|
|
422
|
+
mediaType: string;
|
|
423
423
|
};
|
|
424
424
|
filename?: string | undefined;
|
|
425
425
|
}>, z.ZodObject<{
|
|
@@ -442,204 +442,204 @@ export declare const inferenceMessageSchema: z.ZodEffects<z.ZodObject<{
|
|
|
442
442
|
name: z.ZodString;
|
|
443
443
|
arguments: z.ZodString;
|
|
444
444
|
}, "strict", z.ZodTypeAny, {
|
|
445
|
-
id: string;
|
|
446
445
|
name: string;
|
|
446
|
+
id: string;
|
|
447
447
|
arguments: string;
|
|
448
448
|
}, {
|
|
449
|
-
id: string;
|
|
450
449
|
name: string;
|
|
450
|
+
id: string;
|
|
451
451
|
arguments: string;
|
|
452
452
|
}>, "many">>;
|
|
453
453
|
}, "strict", z.ZodTypeAny, {
|
|
454
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
455
454
|
content: ({
|
|
456
455
|
type: "text";
|
|
457
456
|
text: string;
|
|
458
457
|
} | {
|
|
459
458
|
type: "image";
|
|
460
459
|
source: {
|
|
461
|
-
url: string;
|
|
462
460
|
kind: "url";
|
|
461
|
+
url: string;
|
|
463
462
|
} | {
|
|
464
463
|
kind: "inline";
|
|
465
|
-
mediaType: string;
|
|
466
464
|
data: string;
|
|
465
|
+
mediaType: string;
|
|
467
466
|
};
|
|
468
467
|
detail?: "low" | "high" | "auto" | undefined;
|
|
469
468
|
} | {
|
|
470
469
|
type: "audio";
|
|
471
470
|
source: {
|
|
472
|
-
url: string;
|
|
473
471
|
kind: "url";
|
|
472
|
+
url: string;
|
|
474
473
|
} | {
|
|
475
474
|
kind: "inline";
|
|
476
|
-
mediaType: string;
|
|
477
475
|
data: string;
|
|
476
|
+
mediaType: string;
|
|
478
477
|
};
|
|
479
478
|
} | {
|
|
480
479
|
type: "file";
|
|
481
480
|
source: {
|
|
482
|
-
url: string;
|
|
483
481
|
kind: "url";
|
|
482
|
+
url: string;
|
|
484
483
|
} | {
|
|
485
484
|
kind: "inline";
|
|
486
|
-
mediaType: string;
|
|
487
485
|
data: string;
|
|
486
|
+
mediaType: string;
|
|
488
487
|
};
|
|
489
488
|
filename?: string | undefined;
|
|
490
489
|
} | {
|
|
491
490
|
type: "refusal";
|
|
492
491
|
text: string;
|
|
493
492
|
})[];
|
|
493
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
494
494
|
name?: string | undefined;
|
|
495
495
|
toolCallId?: string | undefined;
|
|
496
496
|
toolCalls?: {
|
|
497
|
-
id: string;
|
|
498
497
|
name: string;
|
|
498
|
+
id: string;
|
|
499
499
|
arguments: string;
|
|
500
500
|
}[] | undefined;
|
|
501
501
|
}, {
|
|
502
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
503
502
|
content: ({
|
|
504
503
|
type: "text";
|
|
505
504
|
text: string;
|
|
506
505
|
} | {
|
|
507
506
|
type: "image";
|
|
508
507
|
source: {
|
|
509
|
-
url: string;
|
|
510
508
|
kind: "url";
|
|
509
|
+
url: string;
|
|
511
510
|
} | {
|
|
512
511
|
kind: "inline";
|
|
513
|
-
mediaType: string;
|
|
514
512
|
data: string;
|
|
513
|
+
mediaType: string;
|
|
515
514
|
};
|
|
516
515
|
detail?: "low" | "high" | "auto" | undefined;
|
|
517
516
|
} | {
|
|
518
517
|
type: "audio";
|
|
519
518
|
source: {
|
|
520
|
-
url: string;
|
|
521
519
|
kind: "url";
|
|
520
|
+
url: string;
|
|
522
521
|
} | {
|
|
523
522
|
kind: "inline";
|
|
524
|
-
mediaType: string;
|
|
525
523
|
data: string;
|
|
524
|
+
mediaType: string;
|
|
526
525
|
};
|
|
527
526
|
} | {
|
|
528
527
|
type: "file";
|
|
529
528
|
source: {
|
|
530
|
-
url: string;
|
|
531
529
|
kind: "url";
|
|
530
|
+
url: string;
|
|
532
531
|
} | {
|
|
533
532
|
kind: "inline";
|
|
534
|
-
mediaType: string;
|
|
535
533
|
data: string;
|
|
534
|
+
mediaType: string;
|
|
536
535
|
};
|
|
537
536
|
filename?: string | undefined;
|
|
538
537
|
} | {
|
|
539
538
|
type: "refusal";
|
|
540
539
|
text: string;
|
|
541
540
|
})[];
|
|
541
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
542
542
|
name?: string | undefined;
|
|
543
543
|
toolCallId?: string | undefined;
|
|
544
544
|
toolCalls?: {
|
|
545
|
-
id: string;
|
|
546
545
|
name: string;
|
|
546
|
+
id: string;
|
|
547
547
|
arguments: string;
|
|
548
548
|
}[] | undefined;
|
|
549
549
|
}>, {
|
|
550
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
551
550
|
content: ({
|
|
552
551
|
type: "text";
|
|
553
552
|
text: string;
|
|
554
553
|
} | {
|
|
555
554
|
type: "image";
|
|
556
555
|
source: {
|
|
557
|
-
url: string;
|
|
558
556
|
kind: "url";
|
|
557
|
+
url: string;
|
|
559
558
|
} | {
|
|
560
559
|
kind: "inline";
|
|
561
|
-
mediaType: string;
|
|
562
560
|
data: string;
|
|
561
|
+
mediaType: string;
|
|
563
562
|
};
|
|
564
563
|
detail?: "low" | "high" | "auto" | undefined;
|
|
565
564
|
} | {
|
|
566
565
|
type: "audio";
|
|
567
566
|
source: {
|
|
568
|
-
url: string;
|
|
569
567
|
kind: "url";
|
|
568
|
+
url: string;
|
|
570
569
|
} | {
|
|
571
570
|
kind: "inline";
|
|
572
|
-
mediaType: string;
|
|
573
571
|
data: string;
|
|
572
|
+
mediaType: string;
|
|
574
573
|
};
|
|
575
574
|
} | {
|
|
576
575
|
type: "file";
|
|
577
576
|
source: {
|
|
578
|
-
url: string;
|
|
579
577
|
kind: "url";
|
|
578
|
+
url: string;
|
|
580
579
|
} | {
|
|
581
580
|
kind: "inline";
|
|
582
|
-
mediaType: string;
|
|
583
581
|
data: string;
|
|
582
|
+
mediaType: string;
|
|
584
583
|
};
|
|
585
584
|
filename?: string | undefined;
|
|
586
585
|
} | {
|
|
587
586
|
type: "refusal";
|
|
588
587
|
text: string;
|
|
589
588
|
})[];
|
|
589
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
590
590
|
name?: string | undefined;
|
|
591
591
|
toolCallId?: string | undefined;
|
|
592
592
|
toolCalls?: {
|
|
593
|
-
id: string;
|
|
594
593
|
name: string;
|
|
594
|
+
id: string;
|
|
595
595
|
arguments: string;
|
|
596
596
|
}[] | undefined;
|
|
597
597
|
}, {
|
|
598
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
599
598
|
content: ({
|
|
600
599
|
type: "text";
|
|
601
600
|
text: string;
|
|
602
601
|
} | {
|
|
603
602
|
type: "image";
|
|
604
603
|
source: {
|
|
605
|
-
url: string;
|
|
606
604
|
kind: "url";
|
|
605
|
+
url: string;
|
|
607
606
|
} | {
|
|
608
607
|
kind: "inline";
|
|
609
|
-
mediaType: string;
|
|
610
608
|
data: string;
|
|
609
|
+
mediaType: string;
|
|
611
610
|
};
|
|
612
611
|
detail?: "low" | "high" | "auto" | undefined;
|
|
613
612
|
} | {
|
|
614
613
|
type: "audio";
|
|
615
614
|
source: {
|
|
616
|
-
url: string;
|
|
617
615
|
kind: "url";
|
|
616
|
+
url: string;
|
|
618
617
|
} | {
|
|
619
618
|
kind: "inline";
|
|
620
|
-
mediaType: string;
|
|
621
619
|
data: string;
|
|
620
|
+
mediaType: string;
|
|
622
621
|
};
|
|
623
622
|
} | {
|
|
624
623
|
type: "file";
|
|
625
624
|
source: {
|
|
626
|
-
url: string;
|
|
627
625
|
kind: "url";
|
|
626
|
+
url: string;
|
|
628
627
|
} | {
|
|
629
628
|
kind: "inline";
|
|
630
|
-
mediaType: string;
|
|
631
629
|
data: string;
|
|
630
|
+
mediaType: string;
|
|
632
631
|
};
|
|
633
632
|
filename?: string | undefined;
|
|
634
633
|
} | {
|
|
635
634
|
type: "refusal";
|
|
636
635
|
text: string;
|
|
637
636
|
})[];
|
|
637
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
638
638
|
name?: string | undefined;
|
|
639
639
|
toolCallId?: string | undefined;
|
|
640
640
|
toolCalls?: {
|
|
641
|
-
id: string;
|
|
642
641
|
name: string;
|
|
642
|
+
id: string;
|
|
643
643
|
arguments: string;
|
|
644
644
|
}[] | undefined;
|
|
645
645
|
}>;
|
|
@@ -867,46 +867,46 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
|
|
|
867
867
|
kind: z.ZodLiteral<"url">;
|
|
868
868
|
url: z.ZodString;
|
|
869
869
|
}, "strict", z.ZodTypeAny, {
|
|
870
|
-
url: string;
|
|
871
870
|
kind: "url";
|
|
872
|
-
}, {
|
|
873
871
|
url: string;
|
|
872
|
+
}, {
|
|
874
873
|
kind: "url";
|
|
874
|
+
url: string;
|
|
875
875
|
}>, z.ZodObject<{
|
|
876
876
|
kind: z.ZodLiteral<"inline">;
|
|
877
877
|
mediaType: z.ZodString;
|
|
878
878
|
data: z.ZodString;
|
|
879
879
|
}, "strict", z.ZodTypeAny, {
|
|
880
880
|
kind: "inline";
|
|
881
|
-
mediaType: string;
|
|
882
881
|
data: string;
|
|
882
|
+
mediaType: string;
|
|
883
883
|
}, {
|
|
884
884
|
kind: "inline";
|
|
885
|
-
mediaType: string;
|
|
886
885
|
data: string;
|
|
886
|
+
mediaType: string;
|
|
887
887
|
}>]>;
|
|
888
888
|
/** Provider-independent hint; providers that ignore it are unaffected. */
|
|
889
889
|
detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
|
|
890
890
|
}, "strict", z.ZodTypeAny, {
|
|
891
891
|
type: "image";
|
|
892
892
|
source: {
|
|
893
|
-
url: string;
|
|
894
893
|
kind: "url";
|
|
894
|
+
url: string;
|
|
895
895
|
} | {
|
|
896
896
|
kind: "inline";
|
|
897
|
-
mediaType: string;
|
|
898
897
|
data: string;
|
|
898
|
+
mediaType: string;
|
|
899
899
|
};
|
|
900
900
|
detail?: "low" | "high" | "auto" | undefined;
|
|
901
901
|
}, {
|
|
902
902
|
type: "image";
|
|
903
903
|
source: {
|
|
904
|
-
url: string;
|
|
905
904
|
kind: "url";
|
|
905
|
+
url: string;
|
|
906
906
|
} | {
|
|
907
907
|
kind: "inline";
|
|
908
|
-
mediaType: string;
|
|
909
908
|
data: string;
|
|
909
|
+
mediaType: string;
|
|
910
910
|
};
|
|
911
911
|
detail?: "low" | "high" | "auto" | undefined;
|
|
912
912
|
}>, z.ZodObject<{
|
|
@@ -915,43 +915,43 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
|
|
|
915
915
|
kind: z.ZodLiteral<"url">;
|
|
916
916
|
url: z.ZodString;
|
|
917
917
|
}, "strict", z.ZodTypeAny, {
|
|
918
|
-
url: string;
|
|
919
918
|
kind: "url";
|
|
920
|
-
}, {
|
|
921
919
|
url: string;
|
|
920
|
+
}, {
|
|
922
921
|
kind: "url";
|
|
922
|
+
url: string;
|
|
923
923
|
}>, z.ZodObject<{
|
|
924
924
|
kind: z.ZodLiteral<"inline">;
|
|
925
925
|
mediaType: z.ZodString;
|
|
926
926
|
data: z.ZodString;
|
|
927
927
|
}, "strict", z.ZodTypeAny, {
|
|
928
928
|
kind: "inline";
|
|
929
|
-
mediaType: string;
|
|
930
929
|
data: string;
|
|
930
|
+
mediaType: string;
|
|
931
931
|
}, {
|
|
932
932
|
kind: "inline";
|
|
933
|
-
mediaType: string;
|
|
934
933
|
data: string;
|
|
934
|
+
mediaType: string;
|
|
935
935
|
}>]>;
|
|
936
936
|
}, "strict", z.ZodTypeAny, {
|
|
937
937
|
type: "audio";
|
|
938
938
|
source: {
|
|
939
|
-
url: string;
|
|
940
939
|
kind: "url";
|
|
940
|
+
url: string;
|
|
941
941
|
} | {
|
|
942
942
|
kind: "inline";
|
|
943
|
-
mediaType: string;
|
|
944
943
|
data: string;
|
|
944
|
+
mediaType: string;
|
|
945
945
|
};
|
|
946
946
|
}, {
|
|
947
947
|
type: "audio";
|
|
948
948
|
source: {
|
|
949
|
-
url: string;
|
|
950
949
|
kind: "url";
|
|
950
|
+
url: string;
|
|
951
951
|
} | {
|
|
952
952
|
kind: "inline";
|
|
953
|
-
mediaType: string;
|
|
954
953
|
data: string;
|
|
954
|
+
mediaType: string;
|
|
955
955
|
};
|
|
956
956
|
}>, z.ZodObject<{
|
|
957
957
|
type: z.ZodLiteral<"file">;
|
|
@@ -959,45 +959,45 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
|
|
|
959
959
|
kind: z.ZodLiteral<"url">;
|
|
960
960
|
url: z.ZodString;
|
|
961
961
|
}, "strict", z.ZodTypeAny, {
|
|
962
|
-
url: string;
|
|
963
962
|
kind: "url";
|
|
964
|
-
}, {
|
|
965
963
|
url: string;
|
|
964
|
+
}, {
|
|
966
965
|
kind: "url";
|
|
966
|
+
url: string;
|
|
967
967
|
}>, z.ZodObject<{
|
|
968
968
|
kind: z.ZodLiteral<"inline">;
|
|
969
969
|
mediaType: z.ZodString;
|
|
970
970
|
data: z.ZodString;
|
|
971
971
|
}, "strict", z.ZodTypeAny, {
|
|
972
972
|
kind: "inline";
|
|
973
|
-
mediaType: string;
|
|
974
973
|
data: string;
|
|
974
|
+
mediaType: string;
|
|
975
975
|
}, {
|
|
976
976
|
kind: "inline";
|
|
977
|
-
mediaType: string;
|
|
978
977
|
data: string;
|
|
978
|
+
mediaType: string;
|
|
979
979
|
}>]>;
|
|
980
980
|
filename: z.ZodOptional<z.ZodString>;
|
|
981
981
|
}, "strict", z.ZodTypeAny, {
|
|
982
982
|
type: "file";
|
|
983
983
|
source: {
|
|
984
|
-
url: string;
|
|
985
984
|
kind: "url";
|
|
985
|
+
url: string;
|
|
986
986
|
} | {
|
|
987
987
|
kind: "inline";
|
|
988
|
-
mediaType: string;
|
|
989
988
|
data: string;
|
|
989
|
+
mediaType: string;
|
|
990
990
|
};
|
|
991
991
|
filename?: string | undefined;
|
|
992
992
|
}, {
|
|
993
993
|
type: "file";
|
|
994
994
|
source: {
|
|
995
|
-
url: string;
|
|
996
995
|
kind: "url";
|
|
996
|
+
url: string;
|
|
997
997
|
} | {
|
|
998
998
|
kind: "inline";
|
|
999
|
-
mediaType: string;
|
|
1000
999
|
data: string;
|
|
1000
|
+
mediaType: string;
|
|
1001
1001
|
};
|
|
1002
1002
|
filename?: string | undefined;
|
|
1003
1003
|
}>, z.ZodObject<{
|
|
@@ -1020,306 +1020,306 @@ export declare const inferenceInputSchema: z.ZodDiscriminatedUnion<"format", [z.
|
|
|
1020
1020
|
name: z.ZodString;
|
|
1021
1021
|
arguments: z.ZodString;
|
|
1022
1022
|
}, "strict", z.ZodTypeAny, {
|
|
1023
|
-
id: string;
|
|
1024
1023
|
name: string;
|
|
1024
|
+
id: string;
|
|
1025
1025
|
arguments: string;
|
|
1026
1026
|
}, {
|
|
1027
|
-
id: string;
|
|
1028
1027
|
name: string;
|
|
1028
|
+
id: string;
|
|
1029
1029
|
arguments: string;
|
|
1030
1030
|
}>, "many">>;
|
|
1031
1031
|
}, "strict", z.ZodTypeAny, {
|
|
1032
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
1033
1032
|
content: ({
|
|
1034
1033
|
type: "text";
|
|
1035
1034
|
text: string;
|
|
1036
1035
|
} | {
|
|
1037
1036
|
type: "image";
|
|
1038
1037
|
source: {
|
|
1039
|
-
url: string;
|
|
1040
1038
|
kind: "url";
|
|
1039
|
+
url: string;
|
|
1041
1040
|
} | {
|
|
1042
1041
|
kind: "inline";
|
|
1043
|
-
mediaType: string;
|
|
1044
1042
|
data: string;
|
|
1043
|
+
mediaType: string;
|
|
1045
1044
|
};
|
|
1046
1045
|
detail?: "low" | "high" | "auto" | undefined;
|
|
1047
1046
|
} | {
|
|
1048
1047
|
type: "audio";
|
|
1049
1048
|
source: {
|
|
1050
|
-
url: string;
|
|
1051
1049
|
kind: "url";
|
|
1050
|
+
url: string;
|
|
1052
1051
|
} | {
|
|
1053
1052
|
kind: "inline";
|
|
1054
|
-
mediaType: string;
|
|
1055
1053
|
data: string;
|
|
1054
|
+
mediaType: string;
|
|
1056
1055
|
};
|
|
1057
1056
|
} | {
|
|
1058
1057
|
type: "file";
|
|
1059
1058
|
source: {
|
|
1060
|
-
url: string;
|
|
1061
1059
|
kind: "url";
|
|
1060
|
+
url: string;
|
|
1062
1061
|
} | {
|
|
1063
1062
|
kind: "inline";
|
|
1064
|
-
mediaType: string;
|
|
1065
1063
|
data: string;
|
|
1064
|
+
mediaType: string;
|
|
1066
1065
|
};
|
|
1067
1066
|
filename?: string | undefined;
|
|
1068
1067
|
} | {
|
|
1069
1068
|
type: "refusal";
|
|
1070
1069
|
text: string;
|
|
1071
1070
|
})[];
|
|
1071
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1072
1072
|
name?: string | undefined;
|
|
1073
1073
|
toolCallId?: string | undefined;
|
|
1074
1074
|
toolCalls?: {
|
|
1075
|
-
id: string;
|
|
1076
1075
|
name: string;
|
|
1076
|
+
id: string;
|
|
1077
1077
|
arguments: string;
|
|
1078
1078
|
}[] | undefined;
|
|
1079
1079
|
}, {
|
|
1080
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
1081
1080
|
content: ({
|
|
1082
1081
|
type: "text";
|
|
1083
1082
|
text: string;
|
|
1084
1083
|
} | {
|
|
1085
1084
|
type: "image";
|
|
1086
1085
|
source: {
|
|
1087
|
-
url: string;
|
|
1088
1086
|
kind: "url";
|
|
1087
|
+
url: string;
|
|
1089
1088
|
} | {
|
|
1090
1089
|
kind: "inline";
|
|
1091
|
-
mediaType: string;
|
|
1092
1090
|
data: string;
|
|
1091
|
+
mediaType: string;
|
|
1093
1092
|
};
|
|
1094
1093
|
detail?: "low" | "high" | "auto" | undefined;
|
|
1095
1094
|
} | {
|
|
1096
1095
|
type: "audio";
|
|
1097
1096
|
source: {
|
|
1098
|
-
url: string;
|
|
1099
1097
|
kind: "url";
|
|
1098
|
+
url: string;
|
|
1100
1099
|
} | {
|
|
1101
1100
|
kind: "inline";
|
|
1102
|
-
mediaType: string;
|
|
1103
1101
|
data: string;
|
|
1102
|
+
mediaType: string;
|
|
1104
1103
|
};
|
|
1105
1104
|
} | {
|
|
1106
1105
|
type: "file";
|
|
1107
1106
|
source: {
|
|
1108
|
-
url: string;
|
|
1109
1107
|
kind: "url";
|
|
1108
|
+
url: string;
|
|
1110
1109
|
} | {
|
|
1111
1110
|
kind: "inline";
|
|
1112
|
-
mediaType: string;
|
|
1113
1111
|
data: string;
|
|
1112
|
+
mediaType: string;
|
|
1114
1113
|
};
|
|
1115
1114
|
filename?: string | undefined;
|
|
1116
1115
|
} | {
|
|
1117
1116
|
type: "refusal";
|
|
1118
1117
|
text: string;
|
|
1119
1118
|
})[];
|
|
1119
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1120
1120
|
name?: string | undefined;
|
|
1121
1121
|
toolCallId?: string | undefined;
|
|
1122
1122
|
toolCalls?: {
|
|
1123
|
-
id: string;
|
|
1124
1123
|
name: string;
|
|
1124
|
+
id: string;
|
|
1125
1125
|
arguments: string;
|
|
1126
1126
|
}[] | undefined;
|
|
1127
1127
|
}>, {
|
|
1128
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
1129
1128
|
content: ({
|
|
1130
1129
|
type: "text";
|
|
1131
1130
|
text: string;
|
|
1132
1131
|
} | {
|
|
1133
1132
|
type: "image";
|
|
1134
1133
|
source: {
|
|
1135
|
-
url: string;
|
|
1136
1134
|
kind: "url";
|
|
1135
|
+
url: string;
|
|
1137
1136
|
} | {
|
|
1138
1137
|
kind: "inline";
|
|
1139
|
-
mediaType: string;
|
|
1140
1138
|
data: string;
|
|
1139
|
+
mediaType: string;
|
|
1141
1140
|
};
|
|
1142
1141
|
detail?: "low" | "high" | "auto" | undefined;
|
|
1143
1142
|
} | {
|
|
1144
1143
|
type: "audio";
|
|
1145
1144
|
source: {
|
|
1146
|
-
url: string;
|
|
1147
1145
|
kind: "url";
|
|
1146
|
+
url: string;
|
|
1148
1147
|
} | {
|
|
1149
1148
|
kind: "inline";
|
|
1150
|
-
mediaType: string;
|
|
1151
1149
|
data: string;
|
|
1150
|
+
mediaType: string;
|
|
1152
1151
|
};
|
|
1153
1152
|
} | {
|
|
1154
1153
|
type: "file";
|
|
1155
1154
|
source: {
|
|
1156
|
-
url: string;
|
|
1157
1155
|
kind: "url";
|
|
1156
|
+
url: string;
|
|
1158
1157
|
} | {
|
|
1159
1158
|
kind: "inline";
|
|
1160
|
-
mediaType: string;
|
|
1161
1159
|
data: string;
|
|
1160
|
+
mediaType: string;
|
|
1162
1161
|
};
|
|
1163
1162
|
filename?: string | undefined;
|
|
1164
1163
|
} | {
|
|
1165
1164
|
type: "refusal";
|
|
1166
1165
|
text: string;
|
|
1167
1166
|
})[];
|
|
1167
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1168
1168
|
name?: string | undefined;
|
|
1169
1169
|
toolCallId?: string | undefined;
|
|
1170
1170
|
toolCalls?: {
|
|
1171
|
-
id: string;
|
|
1172
1171
|
name: string;
|
|
1172
|
+
id: string;
|
|
1173
1173
|
arguments: string;
|
|
1174
1174
|
}[] | undefined;
|
|
1175
1175
|
}, {
|
|
1176
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
1177
1176
|
content: ({
|
|
1178
1177
|
type: "text";
|
|
1179
1178
|
text: string;
|
|
1180
1179
|
} | {
|
|
1181
1180
|
type: "image";
|
|
1182
1181
|
source: {
|
|
1183
|
-
url: string;
|
|
1184
1182
|
kind: "url";
|
|
1183
|
+
url: string;
|
|
1185
1184
|
} | {
|
|
1186
1185
|
kind: "inline";
|
|
1187
|
-
mediaType: string;
|
|
1188
1186
|
data: string;
|
|
1187
|
+
mediaType: string;
|
|
1189
1188
|
};
|
|
1190
1189
|
detail?: "low" | "high" | "auto" | undefined;
|
|
1191
1190
|
} | {
|
|
1192
1191
|
type: "audio";
|
|
1193
1192
|
source: {
|
|
1194
|
-
url: string;
|
|
1195
1193
|
kind: "url";
|
|
1194
|
+
url: string;
|
|
1196
1195
|
} | {
|
|
1197
1196
|
kind: "inline";
|
|
1198
|
-
mediaType: string;
|
|
1199
1197
|
data: string;
|
|
1198
|
+
mediaType: string;
|
|
1200
1199
|
};
|
|
1201
1200
|
} | {
|
|
1202
1201
|
type: "file";
|
|
1203
1202
|
source: {
|
|
1204
|
-
url: string;
|
|
1205
1203
|
kind: "url";
|
|
1204
|
+
url: string;
|
|
1206
1205
|
} | {
|
|
1207
1206
|
kind: "inline";
|
|
1208
|
-
mediaType: string;
|
|
1209
1207
|
data: string;
|
|
1208
|
+
mediaType: string;
|
|
1210
1209
|
};
|
|
1211
1210
|
filename?: string | undefined;
|
|
1212
1211
|
} | {
|
|
1213
1212
|
type: "refusal";
|
|
1214
1213
|
text: string;
|
|
1215
1214
|
})[];
|
|
1215
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1216
1216
|
name?: string | undefined;
|
|
1217
1217
|
toolCallId?: string | undefined;
|
|
1218
1218
|
toolCalls?: {
|
|
1219
|
-
id: string;
|
|
1220
1219
|
name: string;
|
|
1220
|
+
id: string;
|
|
1221
1221
|
arguments: string;
|
|
1222
1222
|
}[] | undefined;
|
|
1223
1223
|
}>, "many">;
|
|
1224
1224
|
}, "strict", z.ZodTypeAny, {
|
|
1225
1225
|
format: "messages";
|
|
1226
1226
|
messages: {
|
|
1227
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
1228
1227
|
content: ({
|
|
1229
1228
|
type: "text";
|
|
1230
1229
|
text: string;
|
|
1231
1230
|
} | {
|
|
1232
1231
|
type: "image";
|
|
1233
1232
|
source: {
|
|
1234
|
-
url: string;
|
|
1235
1233
|
kind: "url";
|
|
1234
|
+
url: string;
|
|
1236
1235
|
} | {
|
|
1237
1236
|
kind: "inline";
|
|
1238
|
-
mediaType: string;
|
|
1239
1237
|
data: string;
|
|
1238
|
+
mediaType: string;
|
|
1240
1239
|
};
|
|
1241
1240
|
detail?: "low" | "high" | "auto" | undefined;
|
|
1242
1241
|
} | {
|
|
1243
1242
|
type: "audio";
|
|
1244
1243
|
source: {
|
|
1245
|
-
url: string;
|
|
1246
1244
|
kind: "url";
|
|
1245
|
+
url: string;
|
|
1247
1246
|
} | {
|
|
1248
1247
|
kind: "inline";
|
|
1249
|
-
mediaType: string;
|
|
1250
1248
|
data: string;
|
|
1249
|
+
mediaType: string;
|
|
1251
1250
|
};
|
|
1252
1251
|
} | {
|
|
1253
1252
|
type: "file";
|
|
1254
1253
|
source: {
|
|
1255
|
-
url: string;
|
|
1256
1254
|
kind: "url";
|
|
1255
|
+
url: string;
|
|
1257
1256
|
} | {
|
|
1258
1257
|
kind: "inline";
|
|
1259
|
-
mediaType: string;
|
|
1260
1258
|
data: string;
|
|
1259
|
+
mediaType: string;
|
|
1261
1260
|
};
|
|
1262
1261
|
filename?: string | undefined;
|
|
1263
1262
|
} | {
|
|
1264
1263
|
type: "refusal";
|
|
1265
1264
|
text: string;
|
|
1266
1265
|
})[];
|
|
1266
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1267
1267
|
name?: string | undefined;
|
|
1268
1268
|
toolCallId?: string | undefined;
|
|
1269
1269
|
toolCalls?: {
|
|
1270
|
-
id: string;
|
|
1271
1270
|
name: string;
|
|
1271
|
+
id: string;
|
|
1272
1272
|
arguments: string;
|
|
1273
1273
|
}[] | undefined;
|
|
1274
1274
|
}[];
|
|
1275
1275
|
}, {
|
|
1276
1276
|
format: "messages";
|
|
1277
1277
|
messages: {
|
|
1278
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
1279
1278
|
content: ({
|
|
1280
1279
|
type: "text";
|
|
1281
1280
|
text: string;
|
|
1282
1281
|
} | {
|
|
1283
1282
|
type: "image";
|
|
1284
1283
|
source: {
|
|
1285
|
-
url: string;
|
|
1286
1284
|
kind: "url";
|
|
1285
|
+
url: string;
|
|
1287
1286
|
} | {
|
|
1288
1287
|
kind: "inline";
|
|
1289
|
-
mediaType: string;
|
|
1290
1288
|
data: string;
|
|
1289
|
+
mediaType: string;
|
|
1291
1290
|
};
|
|
1292
1291
|
detail?: "low" | "high" | "auto" | undefined;
|
|
1293
1292
|
} | {
|
|
1294
1293
|
type: "audio";
|
|
1295
1294
|
source: {
|
|
1296
|
-
url: string;
|
|
1297
1295
|
kind: "url";
|
|
1296
|
+
url: string;
|
|
1298
1297
|
} | {
|
|
1299
1298
|
kind: "inline";
|
|
1300
|
-
mediaType: string;
|
|
1301
1299
|
data: string;
|
|
1300
|
+
mediaType: string;
|
|
1302
1301
|
};
|
|
1303
1302
|
} | {
|
|
1304
1303
|
type: "file";
|
|
1305
1304
|
source: {
|
|
1306
|
-
url: string;
|
|
1307
1305
|
kind: "url";
|
|
1306
|
+
url: string;
|
|
1308
1307
|
} | {
|
|
1309
1308
|
kind: "inline";
|
|
1310
|
-
mediaType: string;
|
|
1311
1309
|
data: string;
|
|
1310
|
+
mediaType: string;
|
|
1312
1311
|
};
|
|
1313
1312
|
filename?: string | undefined;
|
|
1314
1313
|
} | {
|
|
1315
1314
|
type: "refusal";
|
|
1316
1315
|
text: string;
|
|
1317
1316
|
})[];
|
|
1317
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
1318
1318
|
name?: string | undefined;
|
|
1319
1319
|
toolCallId?: string | undefined;
|
|
1320
1320
|
toolCalls?: {
|
|
1321
|
-
id: string;
|
|
1322
1321
|
name: string;
|
|
1322
|
+
id: string;
|
|
1323
1323
|
arguments: string;
|
|
1324
1324
|
}[] | undefined;
|
|
1325
1325
|
}[];
|
|
@@ -1353,20 +1353,20 @@ export declare const samplingParametersSchema: z.ZodObject<{
|
|
|
1353
1353
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
1354
1354
|
stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1355
1355
|
}, "strict", z.ZodTypeAny, {
|
|
1356
|
+
seed?: number | undefined;
|
|
1356
1357
|
temperature?: number | undefined;
|
|
1357
1358
|
topP?: number | undefined;
|
|
1358
1359
|
topK?: number | undefined;
|
|
1359
1360
|
frequencyPenalty?: number | undefined;
|
|
1360
1361
|
presencePenalty?: number | undefined;
|
|
1361
|
-
seed?: number | undefined;
|
|
1362
1362
|
stopSequences?: string[] | undefined;
|
|
1363
1363
|
}, {
|
|
1364
|
+
seed?: number | undefined;
|
|
1364
1365
|
temperature?: number | undefined;
|
|
1365
1366
|
topP?: number | undefined;
|
|
1366
1367
|
topK?: number | undefined;
|
|
1367
1368
|
frequencyPenalty?: number | undefined;
|
|
1368
1369
|
presencePenalty?: number | undefined;
|
|
1369
|
-
seed?: number | undefined;
|
|
1370
1370
|
stopSequences?: string[] | undefined;
|
|
1371
1371
|
}>;
|
|
1372
1372
|
/**
|
|
@@ -1426,13 +1426,13 @@ export declare const responseFormatSchema: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1426
1426
|
}, "strict", z.ZodTypeAny, {
|
|
1427
1427
|
type: "json_schema";
|
|
1428
1428
|
strict: boolean;
|
|
1429
|
-
name: string;
|
|
1430
1429
|
schema: Record<string, unknown>;
|
|
1430
|
+
name: string;
|
|
1431
1431
|
}, {
|
|
1432
1432
|
type: "json_schema";
|
|
1433
1433
|
strict: boolean;
|
|
1434
|
-
name: string;
|
|
1435
1434
|
schema: Record<string, unknown>;
|
|
1435
|
+
name: string;
|
|
1436
1436
|
}>]>;
|
|
1437
1437
|
/**
|
|
1438
1438
|
* The caller's reasoning control. Strict, like every leaf: a provider-specific
|
|
@@ -1471,15 +1471,15 @@ export declare const clientRequestMetadataSchema: z.ZodObject<{
|
|
|
1471
1471
|
receivedAt: z.ZodString;
|
|
1472
1472
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1473
1473
|
}, "strict", z.ZodTypeAny, {
|
|
1474
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
1475
|
-
endpoint: string;
|
|
1476
1474
|
receivedAt: string;
|
|
1475
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
1476
|
+
endpoint: string;
|
|
1477
1477
|
clientRequestId?: string | undefined;
|
|
1478
1478
|
labels?: Record<string, string> | undefined;
|
|
1479
1479
|
}, {
|
|
1480
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
1481
|
-
endpoint: string;
|
|
1482
1480
|
receivedAt: string;
|
|
1481
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
1482
|
+
endpoint: string;
|
|
1483
1483
|
clientRequestId?: string | undefined;
|
|
1484
1484
|
labels?: Record<string, string> | undefined;
|
|
1485
1485
|
}>;
|
|
@@ -1545,15 +1545,15 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1545
1545
|
credentialId: z.ZodString;
|
|
1546
1546
|
environment: z.ZodEnum<["development", "staging", "production"]>;
|
|
1547
1547
|
}, "strict", z.ZodTypeAny, {
|
|
1548
|
+
environment: "development" | "staging" | "production";
|
|
1548
1549
|
accountId: string;
|
|
1549
1550
|
applicationId: string;
|
|
1550
1551
|
credentialId: string;
|
|
1551
|
-
environment: "development" | "staging" | "production";
|
|
1552
1552
|
}, {
|
|
1553
|
+
environment: "development" | "staging" | "production";
|
|
1553
1554
|
accountId: string;
|
|
1554
1555
|
applicationId: string;
|
|
1555
1556
|
credentialId: string;
|
|
1556
|
-
environment: "development" | "staging" | "production";
|
|
1557
1557
|
}>;
|
|
1558
1558
|
policy: z.ZodObject<{
|
|
1559
1559
|
routingPolicyId: z.ZodString;
|
|
@@ -1579,57 +1579,57 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1579
1579
|
snapshotId: z.ZodString;
|
|
1580
1580
|
catalogueEvidenceHash: z.ZodString;
|
|
1581
1581
|
}, "strict", z.ZodTypeAny, {
|
|
1582
|
-
permitId: string;
|
|
1583
|
-
idempotencyKey: string;
|
|
1584
|
-
fixtureSha256: string;
|
|
1585
1582
|
expiresAt: string;
|
|
1583
|
+
requestId: string;
|
|
1584
|
+
keyId: string;
|
|
1585
|
+
idempotencyKey: string;
|
|
1586
1586
|
principal: {
|
|
1587
|
+
environment: "development" | "staging" | "production";
|
|
1587
1588
|
accountId: string;
|
|
1588
1589
|
applicationId: string;
|
|
1589
1590
|
credentialId: string;
|
|
1590
|
-
environment: "development" | "staging" | "production";
|
|
1591
1591
|
};
|
|
1592
|
+
provider: string;
|
|
1593
|
+
priceVersionId: string;
|
|
1594
|
+
modelReference: string;
|
|
1595
|
+
permitId: string;
|
|
1596
|
+
fixtureSha256: string;
|
|
1592
1597
|
policy: {
|
|
1593
1598
|
routingPolicyId: string;
|
|
1594
1599
|
policyVersion: number;
|
|
1595
1600
|
};
|
|
1596
1601
|
deploymentId: string;
|
|
1597
|
-
provider: string;
|
|
1598
|
-
keyId: string;
|
|
1599
|
-
modelReference: string;
|
|
1600
1602
|
upstreamModelId: string;
|
|
1601
|
-
priceVersionId: string;
|
|
1602
1603
|
providerRateCardVersionId: string;
|
|
1603
1604
|
providerSourceVersion: string;
|
|
1604
1605
|
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
1605
|
-
requestId: string;
|
|
1606
1606
|
snapshotId: string;
|
|
1607
1607
|
catalogueEvidenceHash: string;
|
|
1608
1608
|
}, {
|
|
1609
|
-
permitId: string;
|
|
1610
|
-
idempotencyKey: string;
|
|
1611
|
-
fixtureSha256: string;
|
|
1612
1609
|
expiresAt: string;
|
|
1610
|
+
requestId: string;
|
|
1611
|
+
keyId: string;
|
|
1612
|
+
idempotencyKey: string;
|
|
1613
1613
|
principal: {
|
|
1614
|
+
environment: "development" | "staging" | "production";
|
|
1614
1615
|
accountId: string;
|
|
1615
1616
|
applicationId: string;
|
|
1616
1617
|
credentialId: string;
|
|
1617
|
-
environment: "development" | "staging" | "production";
|
|
1618
1618
|
};
|
|
1619
|
+
provider: string;
|
|
1620
|
+
priceVersionId: string;
|
|
1621
|
+
modelReference: string;
|
|
1622
|
+
permitId: string;
|
|
1623
|
+
fixtureSha256: string;
|
|
1619
1624
|
policy: {
|
|
1620
1625
|
routingPolicyId: string;
|
|
1621
1626
|
policyVersion: number;
|
|
1622
1627
|
};
|
|
1623
1628
|
deploymentId: string;
|
|
1624
|
-
provider: string;
|
|
1625
|
-
keyId: string;
|
|
1626
|
-
modelReference: string;
|
|
1627
1629
|
upstreamModelId: string;
|
|
1628
|
-
priceVersionId: string;
|
|
1629
1630
|
providerRateCardVersionId: string;
|
|
1630
1631
|
providerSourceVersion: string;
|
|
1631
1632
|
maxCostUsd: string;
|
|
1632
|
-
requestId: string;
|
|
1633
1633
|
snapshotId: string;
|
|
1634
1634
|
catalogueEvidenceHash: string;
|
|
1635
1635
|
}>>;
|
|
@@ -1647,17 +1647,17 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1647
1647
|
environment: z.ZodEnum<["development", "staging", "production"]>;
|
|
1648
1648
|
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">;
|
|
1649
1649
|
}, "strip", z.ZodTypeAny, {
|
|
1650
|
+
environment: "development" | "staging" | "production";
|
|
1650
1651
|
applicationId: string;
|
|
1651
1652
|
credentialId: string;
|
|
1652
|
-
environment: "development" | "staging" | "production";
|
|
1653
1653
|
billing: {
|
|
1654
1654
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
1655
1655
|
};
|
|
1656
1656
|
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
1657
1657
|
}, {
|
|
1658
|
+
environment: "development" | "staging" | "production";
|
|
1658
1659
|
applicationId: string;
|
|
1659
1660
|
credentialId: string;
|
|
1660
|
-
environment: "development" | "staging" | "production";
|
|
1661
1661
|
billing: {
|
|
1662
1662
|
accountId: string;
|
|
1663
1663
|
};
|
|
@@ -1667,29 +1667,29 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1667
1667
|
requestId: z.ZodString;
|
|
1668
1668
|
generationId: z.ZodOptional<z.ZodString>;
|
|
1669
1669
|
}, "strip", z.ZodTypeAny, {
|
|
1670
|
+
requestId: string;
|
|
1670
1671
|
principal: {
|
|
1672
|
+
environment: "development" | "staging" | "production";
|
|
1671
1673
|
applicationId: string;
|
|
1672
1674
|
credentialId: string;
|
|
1673
|
-
environment: "development" | "staging" | "production";
|
|
1674
1675
|
billing: {
|
|
1675
1676
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
1676
1677
|
};
|
|
1677
1678
|
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
1678
1679
|
};
|
|
1679
|
-
requestId: string;
|
|
1680
1680
|
userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
|
|
1681
1681
|
generationId?: string | undefined;
|
|
1682
1682
|
}, {
|
|
1683
|
+
requestId: string;
|
|
1683
1684
|
principal: {
|
|
1685
|
+
environment: "development" | "staging" | "production";
|
|
1684
1686
|
applicationId: string;
|
|
1685
1687
|
credentialId: string;
|
|
1686
|
-
environment: "development" | "staging" | "production";
|
|
1687
1688
|
billing: {
|
|
1688
1689
|
accountId: string;
|
|
1689
1690
|
};
|
|
1690
1691
|
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
1691
1692
|
};
|
|
1692
|
-
requestId: string;
|
|
1693
1693
|
userId?: string | undefined;
|
|
1694
1694
|
generationId?: string | undefined;
|
|
1695
1695
|
}>;
|
|
@@ -1697,11 +1697,11 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1697
1697
|
kind: z.ZodLiteral<"model">;
|
|
1698
1698
|
modelReference: z.ZodString;
|
|
1699
1699
|
}, "strict", z.ZodTypeAny, {
|
|
1700
|
-
modelReference: string;
|
|
1701
1700
|
kind: "model";
|
|
1702
|
-
}, {
|
|
1703
1701
|
modelReference: string;
|
|
1702
|
+
}, {
|
|
1704
1703
|
kind: "model";
|
|
1704
|
+
modelReference: string;
|
|
1705
1705
|
}>, z.ZodObject<{
|
|
1706
1706
|
kind: z.ZodLiteral<"routing_profile_id">;
|
|
1707
1707
|
routingProfileId: z.ZodString;
|
|
@@ -1929,46 +1929,46 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1929
1929
|
kind: z.ZodLiteral<"url">;
|
|
1930
1930
|
url: z.ZodString;
|
|
1931
1931
|
}, "strict", z.ZodTypeAny, {
|
|
1932
|
-
url: string;
|
|
1933
1932
|
kind: "url";
|
|
1934
|
-
}, {
|
|
1935
1933
|
url: string;
|
|
1934
|
+
}, {
|
|
1936
1935
|
kind: "url";
|
|
1936
|
+
url: string;
|
|
1937
1937
|
}>, z.ZodObject<{
|
|
1938
1938
|
kind: z.ZodLiteral<"inline">;
|
|
1939
1939
|
mediaType: z.ZodString;
|
|
1940
1940
|
data: z.ZodString;
|
|
1941
1941
|
}, "strict", z.ZodTypeAny, {
|
|
1942
1942
|
kind: "inline";
|
|
1943
|
-
mediaType: string;
|
|
1944
1943
|
data: string;
|
|
1944
|
+
mediaType: string;
|
|
1945
1945
|
}, {
|
|
1946
1946
|
kind: "inline";
|
|
1947
|
-
mediaType: string;
|
|
1948
1947
|
data: string;
|
|
1948
|
+
mediaType: string;
|
|
1949
1949
|
}>]>;
|
|
1950
1950
|
/** Provider-independent hint; providers that ignore it are unaffected. */
|
|
1951
1951
|
detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
|
|
1952
1952
|
}, "strict", z.ZodTypeAny, {
|
|
1953
1953
|
type: "image";
|
|
1954
1954
|
source: {
|
|
1955
|
-
url: string;
|
|
1956
1955
|
kind: "url";
|
|
1956
|
+
url: string;
|
|
1957
1957
|
} | {
|
|
1958
1958
|
kind: "inline";
|
|
1959
|
-
mediaType: string;
|
|
1960
1959
|
data: string;
|
|
1960
|
+
mediaType: string;
|
|
1961
1961
|
};
|
|
1962
1962
|
detail?: "low" | "high" | "auto" | undefined;
|
|
1963
1963
|
}, {
|
|
1964
1964
|
type: "image";
|
|
1965
1965
|
source: {
|
|
1966
|
-
url: string;
|
|
1967
1966
|
kind: "url";
|
|
1967
|
+
url: string;
|
|
1968
1968
|
} | {
|
|
1969
1969
|
kind: "inline";
|
|
1970
|
-
mediaType: string;
|
|
1971
1970
|
data: string;
|
|
1971
|
+
mediaType: string;
|
|
1972
1972
|
};
|
|
1973
1973
|
detail?: "low" | "high" | "auto" | undefined;
|
|
1974
1974
|
}>, z.ZodObject<{
|
|
@@ -1977,43 +1977,43 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1977
1977
|
kind: z.ZodLiteral<"url">;
|
|
1978
1978
|
url: z.ZodString;
|
|
1979
1979
|
}, "strict", z.ZodTypeAny, {
|
|
1980
|
-
url: string;
|
|
1981
1980
|
kind: "url";
|
|
1982
|
-
}, {
|
|
1983
1981
|
url: string;
|
|
1982
|
+
}, {
|
|
1984
1983
|
kind: "url";
|
|
1984
|
+
url: string;
|
|
1985
1985
|
}>, z.ZodObject<{
|
|
1986
1986
|
kind: z.ZodLiteral<"inline">;
|
|
1987
1987
|
mediaType: z.ZodString;
|
|
1988
1988
|
data: z.ZodString;
|
|
1989
1989
|
}, "strict", z.ZodTypeAny, {
|
|
1990
1990
|
kind: "inline";
|
|
1991
|
-
mediaType: string;
|
|
1992
1991
|
data: string;
|
|
1992
|
+
mediaType: string;
|
|
1993
1993
|
}, {
|
|
1994
1994
|
kind: "inline";
|
|
1995
|
-
mediaType: string;
|
|
1996
1995
|
data: string;
|
|
1996
|
+
mediaType: string;
|
|
1997
1997
|
}>]>;
|
|
1998
1998
|
}, "strict", z.ZodTypeAny, {
|
|
1999
1999
|
type: "audio";
|
|
2000
2000
|
source: {
|
|
2001
|
-
url: string;
|
|
2002
2001
|
kind: "url";
|
|
2002
|
+
url: string;
|
|
2003
2003
|
} | {
|
|
2004
2004
|
kind: "inline";
|
|
2005
|
-
mediaType: string;
|
|
2006
2005
|
data: string;
|
|
2006
|
+
mediaType: string;
|
|
2007
2007
|
};
|
|
2008
2008
|
}, {
|
|
2009
2009
|
type: "audio";
|
|
2010
2010
|
source: {
|
|
2011
|
-
url: string;
|
|
2012
2011
|
kind: "url";
|
|
2012
|
+
url: string;
|
|
2013
2013
|
} | {
|
|
2014
2014
|
kind: "inline";
|
|
2015
|
-
mediaType: string;
|
|
2016
2015
|
data: string;
|
|
2016
|
+
mediaType: string;
|
|
2017
2017
|
};
|
|
2018
2018
|
}>, z.ZodObject<{
|
|
2019
2019
|
type: z.ZodLiteral<"file">;
|
|
@@ -2021,45 +2021,45 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2021
2021
|
kind: z.ZodLiteral<"url">;
|
|
2022
2022
|
url: z.ZodString;
|
|
2023
2023
|
}, "strict", z.ZodTypeAny, {
|
|
2024
|
-
url: string;
|
|
2025
2024
|
kind: "url";
|
|
2026
|
-
}, {
|
|
2027
2025
|
url: string;
|
|
2026
|
+
}, {
|
|
2028
2027
|
kind: "url";
|
|
2028
|
+
url: string;
|
|
2029
2029
|
}>, z.ZodObject<{
|
|
2030
2030
|
kind: z.ZodLiteral<"inline">;
|
|
2031
2031
|
mediaType: z.ZodString;
|
|
2032
2032
|
data: z.ZodString;
|
|
2033
2033
|
}, "strict", z.ZodTypeAny, {
|
|
2034
2034
|
kind: "inline";
|
|
2035
|
-
mediaType: string;
|
|
2036
2035
|
data: string;
|
|
2036
|
+
mediaType: string;
|
|
2037
2037
|
}, {
|
|
2038
2038
|
kind: "inline";
|
|
2039
|
-
mediaType: string;
|
|
2040
2039
|
data: string;
|
|
2040
|
+
mediaType: string;
|
|
2041
2041
|
}>]>;
|
|
2042
2042
|
filename: z.ZodOptional<z.ZodString>;
|
|
2043
2043
|
}, "strict", z.ZodTypeAny, {
|
|
2044
2044
|
type: "file";
|
|
2045
2045
|
source: {
|
|
2046
|
-
url: string;
|
|
2047
2046
|
kind: "url";
|
|
2047
|
+
url: string;
|
|
2048
2048
|
} | {
|
|
2049
2049
|
kind: "inline";
|
|
2050
|
-
mediaType: string;
|
|
2051
2050
|
data: string;
|
|
2051
|
+
mediaType: string;
|
|
2052
2052
|
};
|
|
2053
2053
|
filename?: string | undefined;
|
|
2054
2054
|
}, {
|
|
2055
2055
|
type: "file";
|
|
2056
2056
|
source: {
|
|
2057
|
-
url: string;
|
|
2058
2057
|
kind: "url";
|
|
2058
|
+
url: string;
|
|
2059
2059
|
} | {
|
|
2060
2060
|
kind: "inline";
|
|
2061
|
-
mediaType: string;
|
|
2062
2061
|
data: string;
|
|
2062
|
+
mediaType: string;
|
|
2063
2063
|
};
|
|
2064
2064
|
filename?: string | undefined;
|
|
2065
2065
|
}>, z.ZodObject<{
|
|
@@ -2082,306 +2082,306 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2082
2082
|
name: z.ZodString;
|
|
2083
2083
|
arguments: z.ZodString;
|
|
2084
2084
|
}, "strict", z.ZodTypeAny, {
|
|
2085
|
-
id: string;
|
|
2086
2085
|
name: string;
|
|
2086
|
+
id: string;
|
|
2087
2087
|
arguments: string;
|
|
2088
2088
|
}, {
|
|
2089
|
-
id: string;
|
|
2090
2089
|
name: string;
|
|
2090
|
+
id: string;
|
|
2091
2091
|
arguments: string;
|
|
2092
2092
|
}>, "many">>;
|
|
2093
2093
|
}, "strict", z.ZodTypeAny, {
|
|
2094
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
2095
2094
|
content: ({
|
|
2096
2095
|
type: "text";
|
|
2097
2096
|
text: string;
|
|
2098
2097
|
} | {
|
|
2099
2098
|
type: "image";
|
|
2100
2099
|
source: {
|
|
2101
|
-
url: string;
|
|
2102
2100
|
kind: "url";
|
|
2101
|
+
url: string;
|
|
2103
2102
|
} | {
|
|
2104
2103
|
kind: "inline";
|
|
2105
|
-
mediaType: string;
|
|
2106
2104
|
data: string;
|
|
2105
|
+
mediaType: string;
|
|
2107
2106
|
};
|
|
2108
2107
|
detail?: "low" | "high" | "auto" | undefined;
|
|
2109
2108
|
} | {
|
|
2110
2109
|
type: "audio";
|
|
2111
2110
|
source: {
|
|
2112
|
-
url: string;
|
|
2113
2111
|
kind: "url";
|
|
2112
|
+
url: string;
|
|
2114
2113
|
} | {
|
|
2115
2114
|
kind: "inline";
|
|
2116
|
-
mediaType: string;
|
|
2117
2115
|
data: string;
|
|
2116
|
+
mediaType: string;
|
|
2118
2117
|
};
|
|
2119
2118
|
} | {
|
|
2120
2119
|
type: "file";
|
|
2121
2120
|
source: {
|
|
2122
|
-
url: string;
|
|
2123
2121
|
kind: "url";
|
|
2122
|
+
url: string;
|
|
2124
2123
|
} | {
|
|
2125
2124
|
kind: "inline";
|
|
2126
|
-
mediaType: string;
|
|
2127
2125
|
data: string;
|
|
2126
|
+
mediaType: string;
|
|
2128
2127
|
};
|
|
2129
2128
|
filename?: string | undefined;
|
|
2130
2129
|
} | {
|
|
2131
2130
|
type: "refusal";
|
|
2132
2131
|
text: string;
|
|
2133
2132
|
})[];
|
|
2133
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2134
2134
|
name?: string | undefined;
|
|
2135
2135
|
toolCallId?: string | undefined;
|
|
2136
2136
|
toolCalls?: {
|
|
2137
|
-
id: string;
|
|
2138
2137
|
name: string;
|
|
2138
|
+
id: string;
|
|
2139
2139
|
arguments: string;
|
|
2140
2140
|
}[] | undefined;
|
|
2141
2141
|
}, {
|
|
2142
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
2143
2142
|
content: ({
|
|
2144
2143
|
type: "text";
|
|
2145
2144
|
text: string;
|
|
2146
2145
|
} | {
|
|
2147
2146
|
type: "image";
|
|
2148
2147
|
source: {
|
|
2149
|
-
url: string;
|
|
2150
2148
|
kind: "url";
|
|
2149
|
+
url: string;
|
|
2151
2150
|
} | {
|
|
2152
2151
|
kind: "inline";
|
|
2153
|
-
mediaType: string;
|
|
2154
2152
|
data: string;
|
|
2153
|
+
mediaType: string;
|
|
2155
2154
|
};
|
|
2156
2155
|
detail?: "low" | "high" | "auto" | undefined;
|
|
2157
2156
|
} | {
|
|
2158
2157
|
type: "audio";
|
|
2159
2158
|
source: {
|
|
2160
|
-
url: string;
|
|
2161
2159
|
kind: "url";
|
|
2160
|
+
url: string;
|
|
2162
2161
|
} | {
|
|
2163
2162
|
kind: "inline";
|
|
2164
|
-
mediaType: string;
|
|
2165
2163
|
data: string;
|
|
2164
|
+
mediaType: string;
|
|
2166
2165
|
};
|
|
2167
2166
|
} | {
|
|
2168
2167
|
type: "file";
|
|
2169
2168
|
source: {
|
|
2170
|
-
url: string;
|
|
2171
2169
|
kind: "url";
|
|
2170
|
+
url: string;
|
|
2172
2171
|
} | {
|
|
2173
2172
|
kind: "inline";
|
|
2174
|
-
mediaType: string;
|
|
2175
2173
|
data: string;
|
|
2174
|
+
mediaType: string;
|
|
2176
2175
|
};
|
|
2177
2176
|
filename?: string | undefined;
|
|
2178
2177
|
} | {
|
|
2179
2178
|
type: "refusal";
|
|
2180
2179
|
text: string;
|
|
2181
2180
|
})[];
|
|
2181
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2182
2182
|
name?: string | undefined;
|
|
2183
2183
|
toolCallId?: string | undefined;
|
|
2184
2184
|
toolCalls?: {
|
|
2185
|
-
id: string;
|
|
2186
2185
|
name: string;
|
|
2186
|
+
id: string;
|
|
2187
2187
|
arguments: string;
|
|
2188
2188
|
}[] | undefined;
|
|
2189
2189
|
}>, {
|
|
2190
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
2191
2190
|
content: ({
|
|
2192
2191
|
type: "text";
|
|
2193
2192
|
text: string;
|
|
2194
2193
|
} | {
|
|
2195
2194
|
type: "image";
|
|
2196
2195
|
source: {
|
|
2197
|
-
url: string;
|
|
2198
2196
|
kind: "url";
|
|
2197
|
+
url: string;
|
|
2199
2198
|
} | {
|
|
2200
2199
|
kind: "inline";
|
|
2201
|
-
mediaType: string;
|
|
2202
2200
|
data: string;
|
|
2201
|
+
mediaType: string;
|
|
2203
2202
|
};
|
|
2204
2203
|
detail?: "low" | "high" | "auto" | undefined;
|
|
2205
2204
|
} | {
|
|
2206
2205
|
type: "audio";
|
|
2207
2206
|
source: {
|
|
2208
|
-
url: string;
|
|
2209
2207
|
kind: "url";
|
|
2208
|
+
url: string;
|
|
2210
2209
|
} | {
|
|
2211
2210
|
kind: "inline";
|
|
2212
|
-
mediaType: string;
|
|
2213
2211
|
data: string;
|
|
2212
|
+
mediaType: string;
|
|
2214
2213
|
};
|
|
2215
2214
|
} | {
|
|
2216
2215
|
type: "file";
|
|
2217
2216
|
source: {
|
|
2218
|
-
url: string;
|
|
2219
2217
|
kind: "url";
|
|
2218
|
+
url: string;
|
|
2220
2219
|
} | {
|
|
2221
2220
|
kind: "inline";
|
|
2222
|
-
mediaType: string;
|
|
2223
2221
|
data: string;
|
|
2222
|
+
mediaType: string;
|
|
2224
2223
|
};
|
|
2225
2224
|
filename?: string | undefined;
|
|
2226
2225
|
} | {
|
|
2227
2226
|
type: "refusal";
|
|
2228
2227
|
text: string;
|
|
2229
2228
|
})[];
|
|
2229
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2230
2230
|
name?: string | undefined;
|
|
2231
2231
|
toolCallId?: string | undefined;
|
|
2232
2232
|
toolCalls?: {
|
|
2233
|
-
id: string;
|
|
2234
2233
|
name: string;
|
|
2234
|
+
id: string;
|
|
2235
2235
|
arguments: string;
|
|
2236
2236
|
}[] | undefined;
|
|
2237
2237
|
}, {
|
|
2238
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
2239
2238
|
content: ({
|
|
2240
2239
|
type: "text";
|
|
2241
2240
|
text: string;
|
|
2242
2241
|
} | {
|
|
2243
2242
|
type: "image";
|
|
2244
2243
|
source: {
|
|
2245
|
-
url: string;
|
|
2246
2244
|
kind: "url";
|
|
2245
|
+
url: string;
|
|
2247
2246
|
} | {
|
|
2248
2247
|
kind: "inline";
|
|
2249
|
-
mediaType: string;
|
|
2250
2248
|
data: string;
|
|
2249
|
+
mediaType: string;
|
|
2251
2250
|
};
|
|
2252
2251
|
detail?: "low" | "high" | "auto" | undefined;
|
|
2253
2252
|
} | {
|
|
2254
2253
|
type: "audio";
|
|
2255
2254
|
source: {
|
|
2256
|
-
url: string;
|
|
2257
2255
|
kind: "url";
|
|
2256
|
+
url: string;
|
|
2258
2257
|
} | {
|
|
2259
2258
|
kind: "inline";
|
|
2260
|
-
mediaType: string;
|
|
2261
2259
|
data: string;
|
|
2260
|
+
mediaType: string;
|
|
2262
2261
|
};
|
|
2263
2262
|
} | {
|
|
2264
2263
|
type: "file";
|
|
2265
2264
|
source: {
|
|
2266
|
-
url: string;
|
|
2267
2265
|
kind: "url";
|
|
2266
|
+
url: string;
|
|
2268
2267
|
} | {
|
|
2269
2268
|
kind: "inline";
|
|
2270
|
-
mediaType: string;
|
|
2271
2269
|
data: string;
|
|
2270
|
+
mediaType: string;
|
|
2272
2271
|
};
|
|
2273
2272
|
filename?: string | undefined;
|
|
2274
2273
|
} | {
|
|
2275
2274
|
type: "refusal";
|
|
2276
2275
|
text: string;
|
|
2277
2276
|
})[];
|
|
2277
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2278
2278
|
name?: string | undefined;
|
|
2279
2279
|
toolCallId?: string | undefined;
|
|
2280
2280
|
toolCalls?: {
|
|
2281
|
-
id: string;
|
|
2282
2281
|
name: string;
|
|
2282
|
+
id: string;
|
|
2283
2283
|
arguments: string;
|
|
2284
2284
|
}[] | undefined;
|
|
2285
2285
|
}>, "many">;
|
|
2286
2286
|
}, "strict", z.ZodTypeAny, {
|
|
2287
2287
|
format: "messages";
|
|
2288
2288
|
messages: {
|
|
2289
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
2290
2289
|
content: ({
|
|
2291
2290
|
type: "text";
|
|
2292
2291
|
text: string;
|
|
2293
2292
|
} | {
|
|
2294
2293
|
type: "image";
|
|
2295
2294
|
source: {
|
|
2296
|
-
url: string;
|
|
2297
2295
|
kind: "url";
|
|
2296
|
+
url: string;
|
|
2298
2297
|
} | {
|
|
2299
2298
|
kind: "inline";
|
|
2300
|
-
mediaType: string;
|
|
2301
2299
|
data: string;
|
|
2300
|
+
mediaType: string;
|
|
2302
2301
|
};
|
|
2303
2302
|
detail?: "low" | "high" | "auto" | undefined;
|
|
2304
2303
|
} | {
|
|
2305
2304
|
type: "audio";
|
|
2306
2305
|
source: {
|
|
2307
|
-
url: string;
|
|
2308
2306
|
kind: "url";
|
|
2307
|
+
url: string;
|
|
2309
2308
|
} | {
|
|
2310
2309
|
kind: "inline";
|
|
2311
|
-
mediaType: string;
|
|
2312
2310
|
data: string;
|
|
2311
|
+
mediaType: string;
|
|
2313
2312
|
};
|
|
2314
2313
|
} | {
|
|
2315
2314
|
type: "file";
|
|
2316
2315
|
source: {
|
|
2317
|
-
url: string;
|
|
2318
2316
|
kind: "url";
|
|
2317
|
+
url: string;
|
|
2319
2318
|
} | {
|
|
2320
2319
|
kind: "inline";
|
|
2321
|
-
mediaType: string;
|
|
2322
2320
|
data: string;
|
|
2321
|
+
mediaType: string;
|
|
2323
2322
|
};
|
|
2324
2323
|
filename?: string | undefined;
|
|
2325
2324
|
} | {
|
|
2326
2325
|
type: "refusal";
|
|
2327
2326
|
text: string;
|
|
2328
2327
|
})[];
|
|
2328
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2329
2329
|
name?: string | undefined;
|
|
2330
2330
|
toolCallId?: string | undefined;
|
|
2331
2331
|
toolCalls?: {
|
|
2332
|
-
id: string;
|
|
2333
2332
|
name: string;
|
|
2333
|
+
id: string;
|
|
2334
2334
|
arguments: string;
|
|
2335
2335
|
}[] | undefined;
|
|
2336
2336
|
}[];
|
|
2337
2337
|
}, {
|
|
2338
2338
|
format: "messages";
|
|
2339
2339
|
messages: {
|
|
2340
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
2341
2340
|
content: ({
|
|
2342
2341
|
type: "text";
|
|
2343
2342
|
text: string;
|
|
2344
2343
|
} | {
|
|
2345
2344
|
type: "image";
|
|
2346
2345
|
source: {
|
|
2347
|
-
url: string;
|
|
2348
2346
|
kind: "url";
|
|
2347
|
+
url: string;
|
|
2349
2348
|
} | {
|
|
2350
2349
|
kind: "inline";
|
|
2351
|
-
mediaType: string;
|
|
2352
2350
|
data: string;
|
|
2351
|
+
mediaType: string;
|
|
2353
2352
|
};
|
|
2354
2353
|
detail?: "low" | "high" | "auto" | undefined;
|
|
2355
2354
|
} | {
|
|
2356
2355
|
type: "audio";
|
|
2357
2356
|
source: {
|
|
2358
|
-
url: string;
|
|
2359
2357
|
kind: "url";
|
|
2358
|
+
url: string;
|
|
2360
2359
|
} | {
|
|
2361
2360
|
kind: "inline";
|
|
2362
|
-
mediaType: string;
|
|
2363
2361
|
data: string;
|
|
2362
|
+
mediaType: string;
|
|
2364
2363
|
};
|
|
2365
2364
|
} | {
|
|
2366
2365
|
type: "file";
|
|
2367
2366
|
source: {
|
|
2368
|
-
url: string;
|
|
2369
2367
|
kind: "url";
|
|
2368
|
+
url: string;
|
|
2370
2369
|
} | {
|
|
2371
2370
|
kind: "inline";
|
|
2372
|
-
mediaType: string;
|
|
2373
2371
|
data: string;
|
|
2372
|
+
mediaType: string;
|
|
2374
2373
|
};
|
|
2375
2374
|
filename?: string | undefined;
|
|
2376
2375
|
} | {
|
|
2377
2376
|
type: "refusal";
|
|
2378
2377
|
text: string;
|
|
2379
2378
|
})[];
|
|
2379
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2380
2380
|
name?: string | undefined;
|
|
2381
2381
|
toolCallId?: string | undefined;
|
|
2382
2382
|
toolCalls?: {
|
|
2383
|
-
id: string;
|
|
2384
2383
|
name: string;
|
|
2384
|
+
id: string;
|
|
2385
2385
|
arguments: string;
|
|
2386
2386
|
}[] | undefined;
|
|
2387
2387
|
}[];
|
|
@@ -2416,20 +2416,20 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2416
2416
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
2417
2417
|
stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2418
2418
|
}, "strict", z.ZodTypeAny, {
|
|
2419
|
+
seed?: number | undefined;
|
|
2419
2420
|
temperature?: number | undefined;
|
|
2420
2421
|
topP?: number | undefined;
|
|
2421
2422
|
topK?: number | undefined;
|
|
2422
2423
|
frequencyPenalty?: number | undefined;
|
|
2423
2424
|
presencePenalty?: number | undefined;
|
|
2424
|
-
seed?: number | undefined;
|
|
2425
2425
|
stopSequences?: string[] | undefined;
|
|
2426
2426
|
}, {
|
|
2427
|
+
seed?: number | undefined;
|
|
2427
2428
|
temperature?: number | undefined;
|
|
2428
2429
|
topP?: number | undefined;
|
|
2429
2430
|
topK?: number | undefined;
|
|
2430
2431
|
frequencyPenalty?: number | undefined;
|
|
2431
2432
|
presencePenalty?: number | undefined;
|
|
2432
|
-
seed?: number | undefined;
|
|
2433
2433
|
stopSequences?: string[] | undefined;
|
|
2434
2434
|
}>;
|
|
2435
2435
|
/** Absent means the route's own default reasoning behaviour. */
|
|
@@ -2514,13 +2514,13 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2514
2514
|
}, "strict", z.ZodTypeAny, {
|
|
2515
2515
|
type: "json_schema";
|
|
2516
2516
|
strict: boolean;
|
|
2517
|
-
name: string;
|
|
2518
2517
|
schema: Record<string, unknown>;
|
|
2518
|
+
name: string;
|
|
2519
2519
|
}, {
|
|
2520
2520
|
type: "json_schema";
|
|
2521
2521
|
strict: boolean;
|
|
2522
|
-
name: string;
|
|
2523
2522
|
schema: Record<string, unknown>;
|
|
2523
|
+
name: string;
|
|
2524
2524
|
}>]>>;
|
|
2525
2525
|
client: z.ZodObject<{
|
|
2526
2526
|
/** The public dialect the customer called. The response is rendered in it. */
|
|
@@ -2532,15 +2532,15 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2532
2532
|
receivedAt: z.ZodString;
|
|
2533
2533
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2534
2534
|
}, "strict", z.ZodTypeAny, {
|
|
2535
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2536
|
-
endpoint: string;
|
|
2537
2535
|
receivedAt: string;
|
|
2536
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2537
|
+
endpoint: string;
|
|
2538
2538
|
clientRequestId?: string | undefined;
|
|
2539
2539
|
labels?: Record<string, string> | undefined;
|
|
2540
2540
|
}, {
|
|
2541
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2542
|
-
endpoint: string;
|
|
2543
2541
|
receivedAt: string;
|
|
2542
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2543
|
+
endpoint: string;
|
|
2544
2544
|
clientRequestId?: string | undefined;
|
|
2545
2545
|
labels?: Record<string, string> | undefined;
|
|
2546
2546
|
}>;
|
|
@@ -2601,43 +2601,43 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2601
2601
|
environment: z.ZodEnum<["development", "staging", "production"]>;
|
|
2602
2602
|
}, "strict", z.ZodTypeAny, {
|
|
2603
2603
|
environment: "development" | "staging" | "production";
|
|
2604
|
-
credentialHandle: string;
|
|
2605
|
-
credentialRevision: number;
|
|
2606
2604
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
2607
2605
|
connectionId: string;
|
|
2608
|
-
}, {
|
|
2609
|
-
environment: "development" | "staging" | "production";
|
|
2610
2606
|
credentialHandle: string;
|
|
2611
2607
|
credentialRevision: number;
|
|
2608
|
+
}, {
|
|
2609
|
+
environment: "development" | "staging" | "production";
|
|
2612
2610
|
ownerAccountId: string;
|
|
2613
2611
|
connectionId: string;
|
|
2612
|
+
credentialHandle: string;
|
|
2613
|
+
credentialRevision: number;
|
|
2614
2614
|
}>>;
|
|
2615
2615
|
substitution: z.ZodLiteral<"same_model">;
|
|
2616
2616
|
}, "strict", z.ZodTypeAny, {
|
|
2617
|
-
deploymentId: string;
|
|
2618
2617
|
provider: string;
|
|
2619
2618
|
modelReference: string;
|
|
2619
|
+
deploymentId: string;
|
|
2620
2620
|
regions: string[];
|
|
2621
2621
|
substitution: "same_model";
|
|
2622
2622
|
customerProviderCredential?: {
|
|
2623
2623
|
environment: "development" | "staging" | "production";
|
|
2624
|
-
credentialHandle: string;
|
|
2625
|
-
credentialRevision: number;
|
|
2626
2624
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
2627
2625
|
connectionId: string;
|
|
2626
|
+
credentialHandle: string;
|
|
2627
|
+
credentialRevision: number;
|
|
2628
2628
|
} | undefined;
|
|
2629
2629
|
}, {
|
|
2630
|
-
deploymentId: string;
|
|
2631
2630
|
provider: string;
|
|
2632
2631
|
modelReference: string;
|
|
2632
|
+
deploymentId: string;
|
|
2633
2633
|
regions: string[];
|
|
2634
2634
|
substitution: "same_model";
|
|
2635
2635
|
customerProviderCredential?: {
|
|
2636
2636
|
environment: "development" | "staging" | "production";
|
|
2637
|
-
credentialHandle: string;
|
|
2638
|
-
credentialRevision: number;
|
|
2639
2637
|
ownerAccountId: string;
|
|
2640
2638
|
connectionId: string;
|
|
2639
|
+
credentialHandle: string;
|
|
2640
|
+
credentialRevision: number;
|
|
2641
2641
|
} | undefined;
|
|
2642
2642
|
}>, z.ZodObject<{
|
|
2643
2643
|
authorizedByPolicy: z.ZodLiteral<true>;
|
|
@@ -2653,102 +2653,103 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2653
2653
|
environment: z.ZodEnum<["development", "staging", "production"]>;
|
|
2654
2654
|
}, "strict", z.ZodTypeAny, {
|
|
2655
2655
|
environment: "development" | "staging" | "production";
|
|
2656
|
-
credentialHandle: string;
|
|
2657
|
-
credentialRevision: number;
|
|
2658
2656
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
2659
2657
|
connectionId: string;
|
|
2660
|
-
}, {
|
|
2661
|
-
environment: "development" | "staging" | "production";
|
|
2662
2658
|
credentialHandle: string;
|
|
2663
2659
|
credentialRevision: number;
|
|
2660
|
+
}, {
|
|
2661
|
+
environment: "development" | "staging" | "production";
|
|
2664
2662
|
ownerAccountId: string;
|
|
2665
2663
|
connectionId: string;
|
|
2664
|
+
credentialHandle: string;
|
|
2665
|
+
credentialRevision: number;
|
|
2666
2666
|
}>>;
|
|
2667
2667
|
substitution: z.ZodLiteral<"cross_model">;
|
|
2668
2668
|
}, "strict", z.ZodTypeAny, {
|
|
2669
|
-
deploymentId: string;
|
|
2670
2669
|
provider: string;
|
|
2671
2670
|
modelReference: string;
|
|
2671
|
+
deploymentId: string;
|
|
2672
2672
|
regions: string[];
|
|
2673
2673
|
substitution: "cross_model";
|
|
2674
2674
|
authorizedByPolicy: true;
|
|
2675
2675
|
customerProviderCredential?: {
|
|
2676
2676
|
environment: "development" | "staging" | "production";
|
|
2677
|
-
credentialHandle: string;
|
|
2678
|
-
credentialRevision: number;
|
|
2679
2677
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
2680
2678
|
connectionId: string;
|
|
2679
|
+
credentialHandle: string;
|
|
2680
|
+
credentialRevision: number;
|
|
2681
2681
|
} | undefined;
|
|
2682
2682
|
}, {
|
|
2683
|
-
deploymentId: string;
|
|
2684
2683
|
provider: string;
|
|
2685
2684
|
modelReference: string;
|
|
2685
|
+
deploymentId: string;
|
|
2686
2686
|
regions: string[];
|
|
2687
2687
|
substitution: "cross_model";
|
|
2688
2688
|
authorizedByPolicy: true;
|
|
2689
2689
|
customerProviderCredential?: {
|
|
2690
2690
|
environment: "development" | "staging" | "production";
|
|
2691
|
-
credentialHandle: string;
|
|
2692
|
-
credentialRevision: number;
|
|
2693
2691
|
ownerAccountId: string;
|
|
2694
2692
|
connectionId: string;
|
|
2693
|
+
credentialHandle: string;
|
|
2694
|
+
credentialRevision: number;
|
|
2695
2695
|
} | undefined;
|
|
2696
2696
|
}>]>, {
|
|
2697
|
-
deploymentId: string;
|
|
2698
2697
|
provider: string;
|
|
2699
2698
|
modelReference: string;
|
|
2699
|
+
deploymentId: string;
|
|
2700
2700
|
regions: string[];
|
|
2701
2701
|
substitution: "same_model";
|
|
2702
2702
|
customerProviderCredential?: {
|
|
2703
2703
|
environment: "development" | "staging" | "production";
|
|
2704
|
-
credentialHandle: string;
|
|
2705
|
-
credentialRevision: number;
|
|
2706
2704
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
2707
2705
|
connectionId: string;
|
|
2706
|
+
credentialHandle: string;
|
|
2707
|
+
credentialRevision: number;
|
|
2708
2708
|
} | undefined;
|
|
2709
2709
|
} | {
|
|
2710
|
-
deploymentId: string;
|
|
2711
2710
|
provider: string;
|
|
2712
2711
|
modelReference: string;
|
|
2712
|
+
deploymentId: string;
|
|
2713
2713
|
regions: string[];
|
|
2714
2714
|
substitution: "cross_model";
|
|
2715
2715
|
authorizedByPolicy: true;
|
|
2716
2716
|
customerProviderCredential?: {
|
|
2717
2717
|
environment: "development" | "staging" | "production";
|
|
2718
|
-
credentialHandle: string;
|
|
2719
|
-
credentialRevision: number;
|
|
2720
2718
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
2721
2719
|
connectionId: string;
|
|
2720
|
+
credentialHandle: string;
|
|
2721
|
+
credentialRevision: number;
|
|
2722
2722
|
} | undefined;
|
|
2723
2723
|
}, {
|
|
2724
|
-
deploymentId: string;
|
|
2725
2724
|
provider: string;
|
|
2726
2725
|
modelReference: string;
|
|
2726
|
+
deploymentId: string;
|
|
2727
2727
|
regions: string[];
|
|
2728
2728
|
substitution: "same_model";
|
|
2729
2729
|
customerProviderCredential?: {
|
|
2730
2730
|
environment: "development" | "staging" | "production";
|
|
2731
|
-
credentialHandle: string;
|
|
2732
|
-
credentialRevision: number;
|
|
2733
2731
|
ownerAccountId: string;
|
|
2734
2732
|
connectionId: string;
|
|
2733
|
+
credentialHandle: string;
|
|
2734
|
+
credentialRevision: number;
|
|
2735
2735
|
} | undefined;
|
|
2736
2736
|
} | {
|
|
2737
|
-
deploymentId: string;
|
|
2738
2737
|
provider: string;
|
|
2739
2738
|
modelReference: string;
|
|
2739
|
+
deploymentId: string;
|
|
2740
2740
|
regions: string[];
|
|
2741
2741
|
substitution: "cross_model";
|
|
2742
2742
|
authorizedByPolicy: true;
|
|
2743
2743
|
customerProviderCredential?: {
|
|
2744
2744
|
environment: "development" | "staging" | "production";
|
|
2745
|
-
credentialHandle: string;
|
|
2746
|
-
credentialRevision: number;
|
|
2747
2745
|
ownerAccountId: string;
|
|
2748
2746
|
connectionId: string;
|
|
2747
|
+
credentialHandle: string;
|
|
2748
|
+
credentialRevision: number;
|
|
2749
2749
|
} | undefined;
|
|
2750
2750
|
}>, "many">>;
|
|
2751
2751
|
}, "strip", z.ZodTypeAny, {
|
|
2752
|
+
schemaVersion: 2;
|
|
2752
2753
|
tools: {
|
|
2753
2754
|
type: "function";
|
|
2754
2755
|
name: string;
|
|
@@ -2756,29 +2757,39 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2756
2757
|
strict?: boolean | undefined;
|
|
2757
2758
|
description?: string | undefined;
|
|
2758
2759
|
}[];
|
|
2759
|
-
schemaVersion: 2;
|
|
2760
2760
|
attribution: {
|
|
2761
|
+
requestId: string;
|
|
2761
2762
|
principal: {
|
|
2763
|
+
environment: "development" | "staging" | "production";
|
|
2762
2764
|
applicationId: string;
|
|
2763
2765
|
credentialId: string;
|
|
2764
|
-
environment: "development" | "staging" | "production";
|
|
2765
2766
|
billing: {
|
|
2766
2767
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
2767
2768
|
};
|
|
2768
2769
|
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
2769
2770
|
};
|
|
2770
|
-
requestId: string;
|
|
2771
2771
|
userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
|
|
2772
2772
|
generationId?: string | undefined;
|
|
2773
2773
|
};
|
|
2774
|
+
client: {
|
|
2775
|
+
receivedAt: string;
|
|
2776
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2777
|
+
endpoint: string;
|
|
2778
|
+
clientRequestId?: string | undefined;
|
|
2779
|
+
labels?: Record<string, string> | undefined;
|
|
2780
|
+
};
|
|
2781
|
+
routingPolicy: {
|
|
2782
|
+
routingPolicyId: string;
|
|
2783
|
+
policyVersion: number;
|
|
2784
|
+
};
|
|
2774
2785
|
target: {
|
|
2775
|
-
modelReference: string;
|
|
2776
2786
|
kind: "model";
|
|
2787
|
+
modelReference: string;
|
|
2777
2788
|
} | {
|
|
2778
2789
|
kind: "routing_profile_id";
|
|
2779
2790
|
routingProfileId: string;
|
|
2780
2791
|
};
|
|
2781
|
-
modality: "
|
|
2792
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
2782
2793
|
input: {
|
|
2783
2794
|
decisions: {
|
|
2784
2795
|
state: string;
|
|
@@ -2807,51 +2818,51 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2807
2818
|
} | {
|
|
2808
2819
|
format: "messages";
|
|
2809
2820
|
messages: {
|
|
2810
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
2811
2821
|
content: ({
|
|
2812
2822
|
type: "text";
|
|
2813
2823
|
text: string;
|
|
2814
2824
|
} | {
|
|
2815
2825
|
type: "image";
|
|
2816
2826
|
source: {
|
|
2817
|
-
url: string;
|
|
2818
2827
|
kind: "url";
|
|
2828
|
+
url: string;
|
|
2819
2829
|
} | {
|
|
2820
2830
|
kind: "inline";
|
|
2821
|
-
mediaType: string;
|
|
2822
2831
|
data: string;
|
|
2832
|
+
mediaType: string;
|
|
2823
2833
|
};
|
|
2824
2834
|
detail?: "low" | "high" | "auto" | undefined;
|
|
2825
2835
|
} | {
|
|
2826
2836
|
type: "audio";
|
|
2827
2837
|
source: {
|
|
2828
|
-
url: string;
|
|
2829
2838
|
kind: "url";
|
|
2839
|
+
url: string;
|
|
2830
2840
|
} | {
|
|
2831
2841
|
kind: "inline";
|
|
2832
|
-
mediaType: string;
|
|
2833
2842
|
data: string;
|
|
2843
|
+
mediaType: string;
|
|
2834
2844
|
};
|
|
2835
2845
|
} | {
|
|
2836
2846
|
type: "file";
|
|
2837
2847
|
source: {
|
|
2838
|
-
url: string;
|
|
2839
2848
|
kind: "url";
|
|
2849
|
+
url: string;
|
|
2840
2850
|
} | {
|
|
2841
2851
|
kind: "inline";
|
|
2842
|
-
mediaType: string;
|
|
2843
2852
|
data: string;
|
|
2853
|
+
mediaType: string;
|
|
2844
2854
|
};
|
|
2845
2855
|
filename?: string | undefined;
|
|
2846
2856
|
} | {
|
|
2847
2857
|
type: "refusal";
|
|
2848
2858
|
text: string;
|
|
2849
2859
|
})[];
|
|
2860
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
2850
2861
|
name?: string | undefined;
|
|
2851
2862
|
toolCallId?: string | undefined;
|
|
2852
2863
|
toolCalls?: {
|
|
2853
|
-
id: string;
|
|
2854
2864
|
name: string;
|
|
2865
|
+
id: string;
|
|
2855
2866
|
arguments: string;
|
|
2856
2867
|
}[] | undefined;
|
|
2857
2868
|
}[];
|
|
@@ -2864,55 +2875,44 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2864
2875
|
};
|
|
2865
2876
|
stream: boolean;
|
|
2866
2877
|
sampling: {
|
|
2878
|
+
seed?: number | undefined;
|
|
2867
2879
|
temperature?: number | undefined;
|
|
2868
2880
|
topP?: number | undefined;
|
|
2869
2881
|
topK?: number | undefined;
|
|
2870
2882
|
frequencyPenalty?: number | undefined;
|
|
2871
2883
|
presencePenalty?: number | undefined;
|
|
2872
|
-
seed?: number | undefined;
|
|
2873
2884
|
stopSequences?: string[] | undefined;
|
|
2874
2885
|
};
|
|
2875
|
-
client: {
|
|
2876
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2877
|
-
endpoint: string;
|
|
2878
|
-
receivedAt: string;
|
|
2879
|
-
clientRequestId?: string | undefined;
|
|
2880
|
-
labels?: Record<string, string> | undefined;
|
|
2881
|
-
};
|
|
2882
|
-
routingPolicy: {
|
|
2883
|
-
routingPolicyId: string;
|
|
2884
|
-
policyVersion: number;
|
|
2885
|
-
};
|
|
2886
2886
|
idempotencyKey?: string | undefined;
|
|
2887
2887
|
reasoning?: {
|
|
2888
2888
|
effort: "low" | "medium" | "high";
|
|
2889
2889
|
} | undefined;
|
|
2890
2890
|
maxOutputTokens?: number | undefined;
|
|
2891
2891
|
scopedExecution?: {
|
|
2892
|
-
permitId: string;
|
|
2893
|
-
idempotencyKey: string;
|
|
2894
|
-
fixtureSha256: string;
|
|
2895
2892
|
expiresAt: string;
|
|
2893
|
+
requestId: string;
|
|
2894
|
+
keyId: string;
|
|
2895
|
+
idempotencyKey: string;
|
|
2896
2896
|
principal: {
|
|
2897
|
+
environment: "development" | "staging" | "production";
|
|
2897
2898
|
accountId: string;
|
|
2898
2899
|
applicationId: string;
|
|
2899
2900
|
credentialId: string;
|
|
2900
|
-
environment: "development" | "staging" | "production";
|
|
2901
2901
|
};
|
|
2902
|
+
provider: string;
|
|
2903
|
+
priceVersionId: string;
|
|
2904
|
+
modelReference: string;
|
|
2905
|
+
permitId: string;
|
|
2906
|
+
fixtureSha256: string;
|
|
2902
2907
|
policy: {
|
|
2903
2908
|
routingPolicyId: string;
|
|
2904
2909
|
policyVersion: number;
|
|
2905
2910
|
};
|
|
2906
2911
|
deploymentId: string;
|
|
2907
|
-
provider: string;
|
|
2908
|
-
keyId: string;
|
|
2909
|
-
modelReference: string;
|
|
2910
2912
|
upstreamModelId: string;
|
|
2911
|
-
priceVersionId: string;
|
|
2912
2913
|
providerRateCardVersionId: string;
|
|
2913
2914
|
providerSourceVersion: string;
|
|
2914
2915
|
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
2915
|
-
requestId: string;
|
|
2916
2916
|
snapshotId: string;
|
|
2917
2917
|
catalogueEvidenceHash: string;
|
|
2918
2918
|
} | undefined;
|
|
@@ -2923,8 +2923,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2923
2923
|
} | {
|
|
2924
2924
|
type: "json_schema";
|
|
2925
2925
|
strict: boolean;
|
|
2926
|
-
name: string;
|
|
2927
2926
|
schema: Record<string, unknown>;
|
|
2927
|
+
name: string;
|
|
2928
2928
|
} | undefined;
|
|
2929
2929
|
speech?: {
|
|
2930
2930
|
voice: string;
|
|
@@ -2935,62 +2935,73 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2935
2935
|
format: "mp3" | "opus" | "flac" | "wav" | "pcm";
|
|
2936
2936
|
voice: string;
|
|
2937
2937
|
} | undefined;
|
|
2938
|
-
toolChoice?: "
|
|
2938
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
2939
2939
|
type: "function";
|
|
2940
2940
|
name: string;
|
|
2941
2941
|
} | undefined;
|
|
2942
2942
|
authorizedRoutes?: ({
|
|
2943
|
-
deploymentId: string;
|
|
2944
2943
|
provider: string;
|
|
2945
2944
|
modelReference: string;
|
|
2945
|
+
deploymentId: string;
|
|
2946
2946
|
regions: string[];
|
|
2947
2947
|
substitution: "same_model";
|
|
2948
2948
|
customerProviderCredential?: {
|
|
2949
2949
|
environment: "development" | "staging" | "production";
|
|
2950
|
-
credentialHandle: string;
|
|
2951
|
-
credentialRevision: number;
|
|
2952
2950
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
2953
2951
|
connectionId: string;
|
|
2952
|
+
credentialHandle: string;
|
|
2953
|
+
credentialRevision: number;
|
|
2954
2954
|
} | undefined;
|
|
2955
2955
|
} | {
|
|
2956
|
-
deploymentId: string;
|
|
2957
2956
|
provider: string;
|
|
2958
2957
|
modelReference: string;
|
|
2958
|
+
deploymentId: string;
|
|
2959
2959
|
regions: string[];
|
|
2960
2960
|
substitution: "cross_model";
|
|
2961
2961
|
authorizedByPolicy: true;
|
|
2962
2962
|
customerProviderCredential?: {
|
|
2963
2963
|
environment: "development" | "staging" | "production";
|
|
2964
|
-
credentialHandle: string;
|
|
2965
|
-
credentialRevision: number;
|
|
2966
2964
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
2967
2965
|
connectionId: string;
|
|
2966
|
+
credentialHandle: string;
|
|
2967
|
+
credentialRevision: number;
|
|
2968
2968
|
} | undefined;
|
|
2969
2969
|
})[] | undefined;
|
|
2970
2970
|
}, {
|
|
2971
2971
|
schemaVersion: 2;
|
|
2972
2972
|
attribution: {
|
|
2973
|
+
requestId: string;
|
|
2973
2974
|
principal: {
|
|
2975
|
+
environment: "development" | "staging" | "production";
|
|
2974
2976
|
applicationId: string;
|
|
2975
2977
|
credentialId: string;
|
|
2976
|
-
environment: "development" | "staging" | "production";
|
|
2977
2978
|
billing: {
|
|
2978
2979
|
accountId: string;
|
|
2979
2980
|
};
|
|
2980
2981
|
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
2981
2982
|
};
|
|
2982
|
-
requestId: string;
|
|
2983
2983
|
userId?: string | undefined;
|
|
2984
2984
|
generationId?: string | undefined;
|
|
2985
2985
|
};
|
|
2986
|
+
client: {
|
|
2987
|
+
receivedAt: string;
|
|
2988
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
2989
|
+
endpoint: string;
|
|
2990
|
+
clientRequestId?: string | undefined;
|
|
2991
|
+
labels?: Record<string, string> | undefined;
|
|
2992
|
+
};
|
|
2993
|
+
routingPolicy: {
|
|
2994
|
+
routingPolicyId: string;
|
|
2995
|
+
policyVersion: number;
|
|
2996
|
+
};
|
|
2986
2997
|
target: {
|
|
2987
|
-
modelReference: string;
|
|
2988
2998
|
kind: "model";
|
|
2999
|
+
modelReference: string;
|
|
2989
3000
|
} | {
|
|
2990
3001
|
kind: "routing_profile_id";
|
|
2991
3002
|
routingProfileId: string;
|
|
2992
3003
|
};
|
|
2993
|
-
modality: "
|
|
3004
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
2994
3005
|
input: {
|
|
2995
3006
|
decisions: {
|
|
2996
3007
|
state: string;
|
|
@@ -3019,51 +3030,51 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3019
3030
|
} | {
|
|
3020
3031
|
format: "messages";
|
|
3021
3032
|
messages: {
|
|
3022
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
3023
3033
|
content: ({
|
|
3024
3034
|
type: "text";
|
|
3025
3035
|
text: string;
|
|
3026
3036
|
} | {
|
|
3027
3037
|
type: "image";
|
|
3028
3038
|
source: {
|
|
3029
|
-
url: string;
|
|
3030
3039
|
kind: "url";
|
|
3040
|
+
url: string;
|
|
3031
3041
|
} | {
|
|
3032
3042
|
kind: "inline";
|
|
3033
|
-
mediaType: string;
|
|
3034
3043
|
data: string;
|
|
3044
|
+
mediaType: string;
|
|
3035
3045
|
};
|
|
3036
3046
|
detail?: "low" | "high" | "auto" | undefined;
|
|
3037
3047
|
} | {
|
|
3038
3048
|
type: "audio";
|
|
3039
3049
|
source: {
|
|
3040
|
-
url: string;
|
|
3041
3050
|
kind: "url";
|
|
3051
|
+
url: string;
|
|
3042
3052
|
} | {
|
|
3043
3053
|
kind: "inline";
|
|
3044
|
-
mediaType: string;
|
|
3045
3054
|
data: string;
|
|
3055
|
+
mediaType: string;
|
|
3046
3056
|
};
|
|
3047
3057
|
} | {
|
|
3048
3058
|
type: "file";
|
|
3049
3059
|
source: {
|
|
3050
|
-
url: string;
|
|
3051
3060
|
kind: "url";
|
|
3061
|
+
url: string;
|
|
3052
3062
|
} | {
|
|
3053
3063
|
kind: "inline";
|
|
3054
|
-
mediaType: string;
|
|
3055
3064
|
data: string;
|
|
3065
|
+
mediaType: string;
|
|
3056
3066
|
};
|
|
3057
3067
|
filename?: string | undefined;
|
|
3058
3068
|
} | {
|
|
3059
3069
|
type: "refusal";
|
|
3060
3070
|
text: string;
|
|
3061
3071
|
})[];
|
|
3072
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
3062
3073
|
name?: string | undefined;
|
|
3063
3074
|
toolCallId?: string | undefined;
|
|
3064
3075
|
toolCalls?: {
|
|
3065
|
-
id: string;
|
|
3066
3076
|
name: string;
|
|
3077
|
+
id: string;
|
|
3067
3078
|
arguments: string;
|
|
3068
3079
|
}[] | undefined;
|
|
3069
3080
|
}[];
|
|
@@ -3076,26 +3087,14 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3076
3087
|
};
|
|
3077
3088
|
stream: boolean;
|
|
3078
3089
|
sampling: {
|
|
3090
|
+
seed?: number | undefined;
|
|
3079
3091
|
temperature?: number | undefined;
|
|
3080
3092
|
topP?: number | undefined;
|
|
3081
3093
|
topK?: number | undefined;
|
|
3082
3094
|
frequencyPenalty?: number | undefined;
|
|
3083
3095
|
presencePenalty?: number | undefined;
|
|
3084
|
-
seed?: number | undefined;
|
|
3085
3096
|
stopSequences?: string[] | undefined;
|
|
3086
3097
|
};
|
|
3087
|
-
client: {
|
|
3088
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
3089
|
-
endpoint: string;
|
|
3090
|
-
receivedAt: string;
|
|
3091
|
-
clientRequestId?: string | undefined;
|
|
3092
|
-
labels?: Record<string, string> | undefined;
|
|
3093
|
-
};
|
|
3094
|
-
routingPolicy: {
|
|
3095
|
-
routingPolicyId: string;
|
|
3096
|
-
policyVersion: number;
|
|
3097
|
-
};
|
|
3098
|
-
idempotencyKey?: string | undefined;
|
|
3099
3098
|
tools?: {
|
|
3100
3099
|
type: "function";
|
|
3101
3100
|
name: string;
|
|
@@ -3103,35 +3102,36 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3103
3102
|
strict?: boolean | undefined;
|
|
3104
3103
|
description?: string | undefined;
|
|
3105
3104
|
}[] | undefined;
|
|
3105
|
+
idempotencyKey?: string | undefined;
|
|
3106
3106
|
reasoning?: {
|
|
3107
3107
|
effort: "low" | "medium" | "high";
|
|
3108
3108
|
} | undefined;
|
|
3109
3109
|
maxOutputTokens?: number | undefined;
|
|
3110
3110
|
scopedExecution?: {
|
|
3111
|
-
permitId: string;
|
|
3112
|
-
idempotencyKey: string;
|
|
3113
|
-
fixtureSha256: string;
|
|
3114
3111
|
expiresAt: string;
|
|
3112
|
+
requestId: string;
|
|
3113
|
+
keyId: string;
|
|
3114
|
+
idempotencyKey: string;
|
|
3115
3115
|
principal: {
|
|
3116
|
+
environment: "development" | "staging" | "production";
|
|
3116
3117
|
accountId: string;
|
|
3117
3118
|
applicationId: string;
|
|
3118
3119
|
credentialId: string;
|
|
3119
|
-
environment: "development" | "staging" | "production";
|
|
3120
3120
|
};
|
|
3121
|
+
provider: string;
|
|
3122
|
+
priceVersionId: string;
|
|
3123
|
+
modelReference: string;
|
|
3124
|
+
permitId: string;
|
|
3125
|
+
fixtureSha256: string;
|
|
3121
3126
|
policy: {
|
|
3122
3127
|
routingPolicyId: string;
|
|
3123
3128
|
policyVersion: number;
|
|
3124
3129
|
};
|
|
3125
3130
|
deploymentId: string;
|
|
3126
|
-
provider: string;
|
|
3127
|
-
keyId: string;
|
|
3128
|
-
modelReference: string;
|
|
3129
3131
|
upstreamModelId: string;
|
|
3130
|
-
priceVersionId: string;
|
|
3131
3132
|
providerRateCardVersionId: string;
|
|
3132
3133
|
providerSourceVersion: string;
|
|
3133
3134
|
maxCostUsd: string;
|
|
3134
|
-
requestId: string;
|
|
3135
3135
|
snapshotId: string;
|
|
3136
3136
|
catalogueEvidenceHash: string;
|
|
3137
3137
|
} | undefined;
|
|
@@ -3142,8 +3142,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3142
3142
|
} | {
|
|
3143
3143
|
type: "json_schema";
|
|
3144
3144
|
strict: boolean;
|
|
3145
|
-
name: string;
|
|
3146
3145
|
schema: Record<string, unknown>;
|
|
3146
|
+
name: string;
|
|
3147
3147
|
} | undefined;
|
|
3148
3148
|
speech?: {
|
|
3149
3149
|
voice: string;
|
|
@@ -3154,39 +3154,40 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3154
3154
|
format: "mp3" | "opus" | "flac" | "wav" | "pcm";
|
|
3155
3155
|
voice: string;
|
|
3156
3156
|
} | undefined;
|
|
3157
|
-
toolChoice?: "
|
|
3157
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
3158
3158
|
type: "function";
|
|
3159
3159
|
name: string;
|
|
3160
3160
|
} | undefined;
|
|
3161
3161
|
authorizedRoutes?: ({
|
|
3162
|
-
deploymentId: string;
|
|
3163
3162
|
provider: string;
|
|
3164
3163
|
modelReference: string;
|
|
3164
|
+
deploymentId: string;
|
|
3165
3165
|
regions: string[];
|
|
3166
3166
|
substitution: "same_model";
|
|
3167
3167
|
customerProviderCredential?: {
|
|
3168
3168
|
environment: "development" | "staging" | "production";
|
|
3169
|
-
credentialHandle: string;
|
|
3170
|
-
credentialRevision: number;
|
|
3171
3169
|
ownerAccountId: string;
|
|
3172
3170
|
connectionId: string;
|
|
3171
|
+
credentialHandle: string;
|
|
3172
|
+
credentialRevision: number;
|
|
3173
3173
|
} | undefined;
|
|
3174
3174
|
} | {
|
|
3175
|
-
deploymentId: string;
|
|
3176
3175
|
provider: string;
|
|
3177
3176
|
modelReference: string;
|
|
3177
|
+
deploymentId: string;
|
|
3178
3178
|
regions: string[];
|
|
3179
3179
|
substitution: "cross_model";
|
|
3180
3180
|
authorizedByPolicy: true;
|
|
3181
3181
|
customerProviderCredential?: {
|
|
3182
3182
|
environment: "development" | "staging" | "production";
|
|
3183
|
-
credentialHandle: string;
|
|
3184
|
-
credentialRevision: number;
|
|
3185
3183
|
ownerAccountId: string;
|
|
3186
3184
|
connectionId: string;
|
|
3185
|
+
credentialHandle: string;
|
|
3186
|
+
credentialRevision: number;
|
|
3187
3187
|
} | undefined;
|
|
3188
3188
|
})[] | undefined;
|
|
3189
3189
|
}>, {
|
|
3190
|
+
schemaVersion: 2;
|
|
3190
3191
|
tools: {
|
|
3191
3192
|
type: "function";
|
|
3192
3193
|
name: string;
|
|
@@ -3194,29 +3195,39 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3194
3195
|
strict?: boolean | undefined;
|
|
3195
3196
|
description?: string | undefined;
|
|
3196
3197
|
}[];
|
|
3197
|
-
schemaVersion: 2;
|
|
3198
3198
|
attribution: {
|
|
3199
|
+
requestId: string;
|
|
3199
3200
|
principal: {
|
|
3201
|
+
environment: "development" | "staging" | "production";
|
|
3200
3202
|
applicationId: string;
|
|
3201
3203
|
credentialId: string;
|
|
3202
|
-
environment: "development" | "staging" | "production";
|
|
3203
3204
|
billing: {
|
|
3204
3205
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
3205
3206
|
};
|
|
3206
3207
|
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
3207
3208
|
};
|
|
3208
|
-
requestId: string;
|
|
3209
3209
|
userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
|
|
3210
3210
|
generationId?: string | undefined;
|
|
3211
3211
|
};
|
|
3212
|
+
client: {
|
|
3213
|
+
receivedAt: string;
|
|
3214
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
3215
|
+
endpoint: string;
|
|
3216
|
+
clientRequestId?: string | undefined;
|
|
3217
|
+
labels?: Record<string, string> | undefined;
|
|
3218
|
+
};
|
|
3219
|
+
routingPolicy: {
|
|
3220
|
+
routingPolicyId: string;
|
|
3221
|
+
policyVersion: number;
|
|
3222
|
+
};
|
|
3212
3223
|
target: {
|
|
3213
|
-
modelReference: string;
|
|
3214
3224
|
kind: "model";
|
|
3225
|
+
modelReference: string;
|
|
3215
3226
|
} | {
|
|
3216
3227
|
kind: "routing_profile_id";
|
|
3217
3228
|
routingProfileId: string;
|
|
3218
3229
|
};
|
|
3219
|
-
modality: "
|
|
3230
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
3220
3231
|
input: {
|
|
3221
3232
|
decisions: {
|
|
3222
3233
|
state: string;
|
|
@@ -3245,51 +3256,51 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3245
3256
|
} | {
|
|
3246
3257
|
format: "messages";
|
|
3247
3258
|
messages: {
|
|
3248
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
3249
3259
|
content: ({
|
|
3250
3260
|
type: "text";
|
|
3251
3261
|
text: string;
|
|
3252
3262
|
} | {
|
|
3253
3263
|
type: "image";
|
|
3254
3264
|
source: {
|
|
3255
|
-
url: string;
|
|
3256
3265
|
kind: "url";
|
|
3266
|
+
url: string;
|
|
3257
3267
|
} | {
|
|
3258
3268
|
kind: "inline";
|
|
3259
|
-
mediaType: string;
|
|
3260
3269
|
data: string;
|
|
3270
|
+
mediaType: string;
|
|
3261
3271
|
};
|
|
3262
3272
|
detail?: "low" | "high" | "auto" | undefined;
|
|
3263
3273
|
} | {
|
|
3264
3274
|
type: "audio";
|
|
3265
3275
|
source: {
|
|
3266
|
-
url: string;
|
|
3267
3276
|
kind: "url";
|
|
3277
|
+
url: string;
|
|
3268
3278
|
} | {
|
|
3269
3279
|
kind: "inline";
|
|
3270
|
-
mediaType: string;
|
|
3271
3280
|
data: string;
|
|
3281
|
+
mediaType: string;
|
|
3272
3282
|
};
|
|
3273
3283
|
} | {
|
|
3274
3284
|
type: "file";
|
|
3275
3285
|
source: {
|
|
3276
|
-
url: string;
|
|
3277
3286
|
kind: "url";
|
|
3287
|
+
url: string;
|
|
3278
3288
|
} | {
|
|
3279
3289
|
kind: "inline";
|
|
3280
|
-
mediaType: string;
|
|
3281
3290
|
data: string;
|
|
3291
|
+
mediaType: string;
|
|
3282
3292
|
};
|
|
3283
3293
|
filename?: string | undefined;
|
|
3284
3294
|
} | {
|
|
3285
3295
|
type: "refusal";
|
|
3286
3296
|
text: string;
|
|
3287
3297
|
})[];
|
|
3298
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
3288
3299
|
name?: string | undefined;
|
|
3289
3300
|
toolCallId?: string | undefined;
|
|
3290
3301
|
toolCalls?: {
|
|
3291
|
-
id: string;
|
|
3292
3302
|
name: string;
|
|
3303
|
+
id: string;
|
|
3293
3304
|
arguments: string;
|
|
3294
3305
|
}[] | undefined;
|
|
3295
3306
|
}[];
|
|
@@ -3302,55 +3313,44 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3302
3313
|
};
|
|
3303
3314
|
stream: boolean;
|
|
3304
3315
|
sampling: {
|
|
3316
|
+
seed?: number | undefined;
|
|
3305
3317
|
temperature?: number | undefined;
|
|
3306
3318
|
topP?: number | undefined;
|
|
3307
3319
|
topK?: number | undefined;
|
|
3308
3320
|
frequencyPenalty?: number | undefined;
|
|
3309
3321
|
presencePenalty?: number | undefined;
|
|
3310
|
-
seed?: number | undefined;
|
|
3311
3322
|
stopSequences?: string[] | undefined;
|
|
3312
3323
|
};
|
|
3313
|
-
client: {
|
|
3314
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
3315
|
-
endpoint: string;
|
|
3316
|
-
receivedAt: string;
|
|
3317
|
-
clientRequestId?: string | undefined;
|
|
3318
|
-
labels?: Record<string, string> | undefined;
|
|
3319
|
-
};
|
|
3320
|
-
routingPolicy: {
|
|
3321
|
-
routingPolicyId: string;
|
|
3322
|
-
policyVersion: number;
|
|
3323
|
-
};
|
|
3324
3324
|
idempotencyKey?: string | undefined;
|
|
3325
3325
|
reasoning?: {
|
|
3326
3326
|
effort: "low" | "medium" | "high";
|
|
3327
3327
|
} | undefined;
|
|
3328
3328
|
maxOutputTokens?: number | undefined;
|
|
3329
3329
|
scopedExecution?: {
|
|
3330
|
-
permitId: string;
|
|
3331
|
-
idempotencyKey: string;
|
|
3332
|
-
fixtureSha256: string;
|
|
3333
3330
|
expiresAt: string;
|
|
3331
|
+
requestId: string;
|
|
3332
|
+
keyId: string;
|
|
3333
|
+
idempotencyKey: string;
|
|
3334
3334
|
principal: {
|
|
3335
|
+
environment: "development" | "staging" | "production";
|
|
3335
3336
|
accountId: string;
|
|
3336
3337
|
applicationId: string;
|
|
3337
3338
|
credentialId: string;
|
|
3338
|
-
environment: "development" | "staging" | "production";
|
|
3339
3339
|
};
|
|
3340
|
+
provider: string;
|
|
3341
|
+
priceVersionId: string;
|
|
3342
|
+
modelReference: string;
|
|
3343
|
+
permitId: string;
|
|
3344
|
+
fixtureSha256: string;
|
|
3340
3345
|
policy: {
|
|
3341
3346
|
routingPolicyId: string;
|
|
3342
3347
|
policyVersion: number;
|
|
3343
3348
|
};
|
|
3344
3349
|
deploymentId: string;
|
|
3345
|
-
provider: string;
|
|
3346
|
-
keyId: string;
|
|
3347
|
-
modelReference: string;
|
|
3348
3350
|
upstreamModelId: string;
|
|
3349
|
-
priceVersionId: string;
|
|
3350
3351
|
providerRateCardVersionId: string;
|
|
3351
3352
|
providerSourceVersion: string;
|
|
3352
3353
|
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
3353
|
-
requestId: string;
|
|
3354
3354
|
snapshotId: string;
|
|
3355
3355
|
catalogueEvidenceHash: string;
|
|
3356
3356
|
} | undefined;
|
|
@@ -3361,8 +3361,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3361
3361
|
} | {
|
|
3362
3362
|
type: "json_schema";
|
|
3363
3363
|
strict: boolean;
|
|
3364
|
-
name: string;
|
|
3365
3364
|
schema: Record<string, unknown>;
|
|
3365
|
+
name: string;
|
|
3366
3366
|
} | undefined;
|
|
3367
3367
|
speech?: {
|
|
3368
3368
|
voice: string;
|
|
@@ -3373,62 +3373,73 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3373
3373
|
format: "mp3" | "opus" | "flac" | "wav" | "pcm";
|
|
3374
3374
|
voice: string;
|
|
3375
3375
|
} | undefined;
|
|
3376
|
-
toolChoice?: "
|
|
3376
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
3377
3377
|
type: "function";
|
|
3378
3378
|
name: string;
|
|
3379
3379
|
} | undefined;
|
|
3380
3380
|
authorizedRoutes?: ({
|
|
3381
|
-
deploymentId: string;
|
|
3382
3381
|
provider: string;
|
|
3383
3382
|
modelReference: string;
|
|
3383
|
+
deploymentId: string;
|
|
3384
3384
|
regions: string[];
|
|
3385
3385
|
substitution: "same_model";
|
|
3386
3386
|
customerProviderCredential?: {
|
|
3387
3387
|
environment: "development" | "staging" | "production";
|
|
3388
|
-
credentialHandle: string;
|
|
3389
|
-
credentialRevision: number;
|
|
3390
3388
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
3391
3389
|
connectionId: string;
|
|
3390
|
+
credentialHandle: string;
|
|
3391
|
+
credentialRevision: number;
|
|
3392
3392
|
} | undefined;
|
|
3393
3393
|
} | {
|
|
3394
|
-
deploymentId: string;
|
|
3395
3394
|
provider: string;
|
|
3396
3395
|
modelReference: string;
|
|
3396
|
+
deploymentId: string;
|
|
3397
3397
|
regions: string[];
|
|
3398
3398
|
substitution: "cross_model";
|
|
3399
3399
|
authorizedByPolicy: true;
|
|
3400
3400
|
customerProviderCredential?: {
|
|
3401
3401
|
environment: "development" | "staging" | "production";
|
|
3402
|
-
credentialHandle: string;
|
|
3403
|
-
credentialRevision: number;
|
|
3404
3402
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
3405
3403
|
connectionId: string;
|
|
3404
|
+
credentialHandle: string;
|
|
3405
|
+
credentialRevision: number;
|
|
3406
3406
|
} | undefined;
|
|
3407
3407
|
})[] | undefined;
|
|
3408
3408
|
}, {
|
|
3409
3409
|
schemaVersion: 2;
|
|
3410
3410
|
attribution: {
|
|
3411
|
+
requestId: string;
|
|
3411
3412
|
principal: {
|
|
3413
|
+
environment: "development" | "staging" | "production";
|
|
3412
3414
|
applicationId: string;
|
|
3413
3415
|
credentialId: string;
|
|
3414
|
-
environment: "development" | "staging" | "production";
|
|
3415
3416
|
billing: {
|
|
3416
3417
|
accountId: string;
|
|
3417
3418
|
};
|
|
3418
3419
|
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
3419
3420
|
};
|
|
3420
|
-
requestId: string;
|
|
3421
3421
|
userId?: string | undefined;
|
|
3422
3422
|
generationId?: string | undefined;
|
|
3423
3423
|
};
|
|
3424
|
+
client: {
|
|
3425
|
+
receivedAt: string;
|
|
3426
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
3427
|
+
endpoint: string;
|
|
3428
|
+
clientRequestId?: string | undefined;
|
|
3429
|
+
labels?: Record<string, string> | undefined;
|
|
3430
|
+
};
|
|
3431
|
+
routingPolicy: {
|
|
3432
|
+
routingPolicyId: string;
|
|
3433
|
+
policyVersion: number;
|
|
3434
|
+
};
|
|
3424
3435
|
target: {
|
|
3425
|
-
modelReference: string;
|
|
3426
3436
|
kind: "model";
|
|
3437
|
+
modelReference: string;
|
|
3427
3438
|
} | {
|
|
3428
3439
|
kind: "routing_profile_id";
|
|
3429
3440
|
routingProfileId: string;
|
|
3430
3441
|
};
|
|
3431
|
-
modality: "
|
|
3442
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
3432
3443
|
input: {
|
|
3433
3444
|
decisions: {
|
|
3434
3445
|
state: string;
|
|
@@ -3457,51 +3468,51 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3457
3468
|
} | {
|
|
3458
3469
|
format: "messages";
|
|
3459
3470
|
messages: {
|
|
3460
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
3461
3471
|
content: ({
|
|
3462
3472
|
type: "text";
|
|
3463
3473
|
text: string;
|
|
3464
3474
|
} | {
|
|
3465
3475
|
type: "image";
|
|
3466
3476
|
source: {
|
|
3467
|
-
url: string;
|
|
3468
3477
|
kind: "url";
|
|
3478
|
+
url: string;
|
|
3469
3479
|
} | {
|
|
3470
3480
|
kind: "inline";
|
|
3471
|
-
mediaType: string;
|
|
3472
3481
|
data: string;
|
|
3482
|
+
mediaType: string;
|
|
3473
3483
|
};
|
|
3474
3484
|
detail?: "low" | "high" | "auto" | undefined;
|
|
3475
3485
|
} | {
|
|
3476
3486
|
type: "audio";
|
|
3477
3487
|
source: {
|
|
3478
|
-
url: string;
|
|
3479
3488
|
kind: "url";
|
|
3489
|
+
url: string;
|
|
3480
3490
|
} | {
|
|
3481
3491
|
kind: "inline";
|
|
3482
|
-
mediaType: string;
|
|
3483
3492
|
data: string;
|
|
3493
|
+
mediaType: string;
|
|
3484
3494
|
};
|
|
3485
3495
|
} | {
|
|
3486
3496
|
type: "file";
|
|
3487
3497
|
source: {
|
|
3488
|
-
url: string;
|
|
3489
3498
|
kind: "url";
|
|
3499
|
+
url: string;
|
|
3490
3500
|
} | {
|
|
3491
3501
|
kind: "inline";
|
|
3492
|
-
mediaType: string;
|
|
3493
3502
|
data: string;
|
|
3503
|
+
mediaType: string;
|
|
3494
3504
|
};
|
|
3495
3505
|
filename?: string | undefined;
|
|
3496
3506
|
} | {
|
|
3497
3507
|
type: "refusal";
|
|
3498
3508
|
text: string;
|
|
3499
3509
|
})[];
|
|
3510
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
3500
3511
|
name?: string | undefined;
|
|
3501
3512
|
toolCallId?: string | undefined;
|
|
3502
3513
|
toolCalls?: {
|
|
3503
|
-
id: string;
|
|
3504
3514
|
name: string;
|
|
3515
|
+
id: string;
|
|
3505
3516
|
arguments: string;
|
|
3506
3517
|
}[] | undefined;
|
|
3507
3518
|
}[];
|
|
@@ -3514,26 +3525,14 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3514
3525
|
};
|
|
3515
3526
|
stream: boolean;
|
|
3516
3527
|
sampling: {
|
|
3528
|
+
seed?: number | undefined;
|
|
3517
3529
|
temperature?: number | undefined;
|
|
3518
3530
|
topP?: number | undefined;
|
|
3519
3531
|
topK?: number | undefined;
|
|
3520
3532
|
frequencyPenalty?: number | undefined;
|
|
3521
3533
|
presencePenalty?: number | undefined;
|
|
3522
|
-
seed?: number | undefined;
|
|
3523
3534
|
stopSequences?: string[] | undefined;
|
|
3524
3535
|
};
|
|
3525
|
-
client: {
|
|
3526
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
3527
|
-
endpoint: string;
|
|
3528
|
-
receivedAt: string;
|
|
3529
|
-
clientRequestId?: string | undefined;
|
|
3530
|
-
labels?: Record<string, string> | undefined;
|
|
3531
|
-
};
|
|
3532
|
-
routingPolicy: {
|
|
3533
|
-
routingPolicyId: string;
|
|
3534
|
-
policyVersion: number;
|
|
3535
|
-
};
|
|
3536
|
-
idempotencyKey?: string | undefined;
|
|
3537
3536
|
tools?: {
|
|
3538
3537
|
type: "function";
|
|
3539
3538
|
name: string;
|
|
@@ -3541,35 +3540,36 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3541
3540
|
strict?: boolean | undefined;
|
|
3542
3541
|
description?: string | undefined;
|
|
3543
3542
|
}[] | undefined;
|
|
3543
|
+
idempotencyKey?: string | undefined;
|
|
3544
3544
|
reasoning?: {
|
|
3545
3545
|
effort: "low" | "medium" | "high";
|
|
3546
3546
|
} | undefined;
|
|
3547
3547
|
maxOutputTokens?: number | undefined;
|
|
3548
3548
|
scopedExecution?: {
|
|
3549
|
-
permitId: string;
|
|
3550
|
-
idempotencyKey: string;
|
|
3551
|
-
fixtureSha256: string;
|
|
3552
3549
|
expiresAt: string;
|
|
3550
|
+
requestId: string;
|
|
3551
|
+
keyId: string;
|
|
3552
|
+
idempotencyKey: string;
|
|
3553
3553
|
principal: {
|
|
3554
|
+
environment: "development" | "staging" | "production";
|
|
3554
3555
|
accountId: string;
|
|
3555
3556
|
applicationId: string;
|
|
3556
3557
|
credentialId: string;
|
|
3557
|
-
environment: "development" | "staging" | "production";
|
|
3558
3558
|
};
|
|
3559
|
+
provider: string;
|
|
3560
|
+
priceVersionId: string;
|
|
3561
|
+
modelReference: string;
|
|
3562
|
+
permitId: string;
|
|
3563
|
+
fixtureSha256: string;
|
|
3559
3564
|
policy: {
|
|
3560
3565
|
routingPolicyId: string;
|
|
3561
3566
|
policyVersion: number;
|
|
3562
3567
|
};
|
|
3563
3568
|
deploymentId: string;
|
|
3564
|
-
provider: string;
|
|
3565
|
-
keyId: string;
|
|
3566
|
-
modelReference: string;
|
|
3567
3569
|
upstreamModelId: string;
|
|
3568
|
-
priceVersionId: string;
|
|
3569
3570
|
providerRateCardVersionId: string;
|
|
3570
3571
|
providerSourceVersion: string;
|
|
3571
3572
|
maxCostUsd: string;
|
|
3572
|
-
requestId: string;
|
|
3573
3573
|
snapshotId: string;
|
|
3574
3574
|
catalogueEvidenceHash: string;
|
|
3575
3575
|
} | undefined;
|
|
@@ -3580,8 +3580,8 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3580
3580
|
} | {
|
|
3581
3581
|
type: "json_schema";
|
|
3582
3582
|
strict: boolean;
|
|
3583
|
-
name: string;
|
|
3584
3583
|
schema: Record<string, unknown>;
|
|
3584
|
+
name: string;
|
|
3585
3585
|
} | undefined;
|
|
3586
3586
|
speech?: {
|
|
3587
3587
|
voice: string;
|
|
@@ -3592,36 +3592,36 @@ export declare const inferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3592
3592
|
format: "mp3" | "opus" | "flac" | "wav" | "pcm";
|
|
3593
3593
|
voice: string;
|
|
3594
3594
|
} | undefined;
|
|
3595
|
-
toolChoice?: "
|
|
3595
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
3596
3596
|
type: "function";
|
|
3597
3597
|
name: string;
|
|
3598
3598
|
} | undefined;
|
|
3599
3599
|
authorizedRoutes?: ({
|
|
3600
|
-
deploymentId: string;
|
|
3601
3600
|
provider: string;
|
|
3602
3601
|
modelReference: string;
|
|
3602
|
+
deploymentId: string;
|
|
3603
3603
|
regions: string[];
|
|
3604
3604
|
substitution: "same_model";
|
|
3605
3605
|
customerProviderCredential?: {
|
|
3606
3606
|
environment: "development" | "staging" | "production";
|
|
3607
|
-
credentialHandle: string;
|
|
3608
|
-
credentialRevision: number;
|
|
3609
3607
|
ownerAccountId: string;
|
|
3610
3608
|
connectionId: string;
|
|
3609
|
+
credentialHandle: string;
|
|
3610
|
+
credentialRevision: number;
|
|
3611
3611
|
} | undefined;
|
|
3612
3612
|
} | {
|
|
3613
|
-
deploymentId: string;
|
|
3614
3613
|
provider: string;
|
|
3615
3614
|
modelReference: string;
|
|
3615
|
+
deploymentId: string;
|
|
3616
3616
|
regions: string[];
|
|
3617
3617
|
substitution: "cross_model";
|
|
3618
3618
|
authorizedByPolicy: true;
|
|
3619
3619
|
customerProviderCredential?: {
|
|
3620
3620
|
environment: "development" | "staging" | "production";
|
|
3621
|
-
credentialHandle: string;
|
|
3622
|
-
credentialRevision: number;
|
|
3623
3621
|
ownerAccountId: string;
|
|
3624
3622
|
connectionId: string;
|
|
3623
|
+
credentialHandle: string;
|
|
3624
|
+
credentialRevision: number;
|
|
3625
3625
|
} | undefined;
|
|
3626
3626
|
})[] | undefined;
|
|
3627
3627
|
}>;
|
|
@@ -3641,17 +3641,17 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3641
3641
|
environment: z.ZodEnum<["development", "staging", "production"]>;
|
|
3642
3642
|
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">;
|
|
3643
3643
|
}, "strip", z.ZodTypeAny, {
|
|
3644
|
+
environment: "development" | "staging" | "production";
|
|
3644
3645
|
applicationId: string;
|
|
3645
3646
|
credentialId: string;
|
|
3646
|
-
environment: "development" | "staging" | "production";
|
|
3647
3647
|
billing: {
|
|
3648
3648
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
3649
3649
|
};
|
|
3650
3650
|
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
3651
3651
|
}, {
|
|
3652
|
+
environment: "development" | "staging" | "production";
|
|
3652
3653
|
applicationId: string;
|
|
3653
3654
|
credentialId: string;
|
|
3654
|
-
environment: "development" | "staging" | "production";
|
|
3655
3655
|
billing: {
|
|
3656
3656
|
accountId: string;
|
|
3657
3657
|
};
|
|
@@ -3661,29 +3661,29 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3661
3661
|
requestId: z.ZodString;
|
|
3662
3662
|
generationId: z.ZodOptional<z.ZodString>;
|
|
3663
3663
|
}, "strip", z.ZodTypeAny, {
|
|
3664
|
+
requestId: string;
|
|
3664
3665
|
principal: {
|
|
3666
|
+
environment: "development" | "staging" | "production";
|
|
3665
3667
|
applicationId: string;
|
|
3666
3668
|
credentialId: string;
|
|
3667
|
-
environment: "development" | "staging" | "production";
|
|
3668
3669
|
billing: {
|
|
3669
3670
|
accountId: string & z.BRAND<"OxyAccountId">;
|
|
3670
3671
|
};
|
|
3671
3672
|
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
3672
3673
|
};
|
|
3673
|
-
requestId: string;
|
|
3674
3674
|
userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
|
|
3675
3675
|
generationId?: string | undefined;
|
|
3676
3676
|
}, {
|
|
3677
|
+
requestId: string;
|
|
3677
3678
|
principal: {
|
|
3679
|
+
environment: "development" | "staging" | "production";
|
|
3678
3680
|
applicationId: string;
|
|
3679
3681
|
credentialId: string;
|
|
3680
|
-
environment: "development" | "staging" | "production";
|
|
3681
3682
|
billing: {
|
|
3682
3683
|
accountId: string;
|
|
3683
3684
|
};
|
|
3684
3685
|
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
3685
3686
|
};
|
|
3686
|
-
requestId: string;
|
|
3687
3687
|
userId?: string | undefined;
|
|
3688
3688
|
generationId?: string | undefined;
|
|
3689
3689
|
}>;
|
|
@@ -3691,11 +3691,11 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3691
3691
|
kind: z.ZodLiteral<"model">;
|
|
3692
3692
|
modelReference: z.ZodString;
|
|
3693
3693
|
}, "strict", z.ZodTypeAny, {
|
|
3694
|
-
modelReference: string;
|
|
3695
3694
|
kind: "model";
|
|
3696
|
-
}, {
|
|
3697
3695
|
modelReference: string;
|
|
3696
|
+
}, {
|
|
3698
3697
|
kind: "model";
|
|
3698
|
+
modelReference: string;
|
|
3699
3699
|
}>, z.ZodObject<{
|
|
3700
3700
|
kind: z.ZodLiteral<"routing_profile_id">;
|
|
3701
3701
|
routingProfileId: z.ZodString;
|
|
@@ -3923,46 +3923,46 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3923
3923
|
kind: z.ZodLiteral<"url">;
|
|
3924
3924
|
url: z.ZodString;
|
|
3925
3925
|
}, "strict", z.ZodTypeAny, {
|
|
3926
|
-
url: string;
|
|
3927
3926
|
kind: "url";
|
|
3928
|
-
}, {
|
|
3929
3927
|
url: string;
|
|
3928
|
+
}, {
|
|
3930
3929
|
kind: "url";
|
|
3930
|
+
url: string;
|
|
3931
3931
|
}>, z.ZodObject<{
|
|
3932
3932
|
kind: z.ZodLiteral<"inline">;
|
|
3933
3933
|
mediaType: z.ZodString;
|
|
3934
3934
|
data: z.ZodString;
|
|
3935
3935
|
}, "strict", z.ZodTypeAny, {
|
|
3936
3936
|
kind: "inline";
|
|
3937
|
-
mediaType: string;
|
|
3938
3937
|
data: string;
|
|
3938
|
+
mediaType: string;
|
|
3939
3939
|
}, {
|
|
3940
3940
|
kind: "inline";
|
|
3941
|
-
mediaType: string;
|
|
3942
3941
|
data: string;
|
|
3942
|
+
mediaType: string;
|
|
3943
3943
|
}>]>;
|
|
3944
3944
|
/** Provider-independent hint; providers that ignore it are unaffected. */
|
|
3945
3945
|
detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
|
|
3946
3946
|
}, "strict", z.ZodTypeAny, {
|
|
3947
3947
|
type: "image";
|
|
3948
3948
|
source: {
|
|
3949
|
-
url: string;
|
|
3950
3949
|
kind: "url";
|
|
3950
|
+
url: string;
|
|
3951
3951
|
} | {
|
|
3952
3952
|
kind: "inline";
|
|
3953
|
-
mediaType: string;
|
|
3954
3953
|
data: string;
|
|
3954
|
+
mediaType: string;
|
|
3955
3955
|
};
|
|
3956
3956
|
detail?: "low" | "high" | "auto" | undefined;
|
|
3957
3957
|
}, {
|
|
3958
3958
|
type: "image";
|
|
3959
3959
|
source: {
|
|
3960
|
-
url: string;
|
|
3961
3960
|
kind: "url";
|
|
3961
|
+
url: string;
|
|
3962
3962
|
} | {
|
|
3963
3963
|
kind: "inline";
|
|
3964
|
-
mediaType: string;
|
|
3965
3964
|
data: string;
|
|
3965
|
+
mediaType: string;
|
|
3966
3966
|
};
|
|
3967
3967
|
detail?: "low" | "high" | "auto" | undefined;
|
|
3968
3968
|
}>, z.ZodObject<{
|
|
@@ -3971,43 +3971,43 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3971
3971
|
kind: z.ZodLiteral<"url">;
|
|
3972
3972
|
url: z.ZodString;
|
|
3973
3973
|
}, "strict", z.ZodTypeAny, {
|
|
3974
|
-
url: string;
|
|
3975
3974
|
kind: "url";
|
|
3976
|
-
}, {
|
|
3977
3975
|
url: string;
|
|
3976
|
+
}, {
|
|
3978
3977
|
kind: "url";
|
|
3978
|
+
url: string;
|
|
3979
3979
|
}>, z.ZodObject<{
|
|
3980
3980
|
kind: z.ZodLiteral<"inline">;
|
|
3981
3981
|
mediaType: z.ZodString;
|
|
3982
3982
|
data: z.ZodString;
|
|
3983
3983
|
}, "strict", z.ZodTypeAny, {
|
|
3984
3984
|
kind: "inline";
|
|
3985
|
-
mediaType: string;
|
|
3986
3985
|
data: string;
|
|
3986
|
+
mediaType: string;
|
|
3987
3987
|
}, {
|
|
3988
3988
|
kind: "inline";
|
|
3989
|
-
mediaType: string;
|
|
3990
3989
|
data: string;
|
|
3990
|
+
mediaType: string;
|
|
3991
3991
|
}>]>;
|
|
3992
3992
|
}, "strict", z.ZodTypeAny, {
|
|
3993
3993
|
type: "audio";
|
|
3994
3994
|
source: {
|
|
3995
|
-
url: string;
|
|
3996
3995
|
kind: "url";
|
|
3996
|
+
url: string;
|
|
3997
3997
|
} | {
|
|
3998
3998
|
kind: "inline";
|
|
3999
|
-
mediaType: string;
|
|
4000
3999
|
data: string;
|
|
4000
|
+
mediaType: string;
|
|
4001
4001
|
};
|
|
4002
4002
|
}, {
|
|
4003
4003
|
type: "audio";
|
|
4004
4004
|
source: {
|
|
4005
|
-
url: string;
|
|
4006
4005
|
kind: "url";
|
|
4006
|
+
url: string;
|
|
4007
4007
|
} | {
|
|
4008
4008
|
kind: "inline";
|
|
4009
|
-
mediaType: string;
|
|
4010
4009
|
data: string;
|
|
4010
|
+
mediaType: string;
|
|
4011
4011
|
};
|
|
4012
4012
|
}>, z.ZodObject<{
|
|
4013
4013
|
type: z.ZodLiteral<"file">;
|
|
@@ -4015,45 +4015,45 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4015
4015
|
kind: z.ZodLiteral<"url">;
|
|
4016
4016
|
url: z.ZodString;
|
|
4017
4017
|
}, "strict", z.ZodTypeAny, {
|
|
4018
|
-
url: string;
|
|
4019
4018
|
kind: "url";
|
|
4020
|
-
}, {
|
|
4021
4019
|
url: string;
|
|
4020
|
+
}, {
|
|
4022
4021
|
kind: "url";
|
|
4022
|
+
url: string;
|
|
4023
4023
|
}>, z.ZodObject<{
|
|
4024
4024
|
kind: z.ZodLiteral<"inline">;
|
|
4025
4025
|
mediaType: z.ZodString;
|
|
4026
4026
|
data: z.ZodString;
|
|
4027
4027
|
}, "strict", z.ZodTypeAny, {
|
|
4028
4028
|
kind: "inline";
|
|
4029
|
-
mediaType: string;
|
|
4030
4029
|
data: string;
|
|
4030
|
+
mediaType: string;
|
|
4031
4031
|
}, {
|
|
4032
4032
|
kind: "inline";
|
|
4033
|
-
mediaType: string;
|
|
4034
4033
|
data: string;
|
|
4034
|
+
mediaType: string;
|
|
4035
4035
|
}>]>;
|
|
4036
4036
|
filename: z.ZodOptional<z.ZodString>;
|
|
4037
4037
|
}, "strict", z.ZodTypeAny, {
|
|
4038
4038
|
type: "file";
|
|
4039
4039
|
source: {
|
|
4040
|
-
url: string;
|
|
4041
4040
|
kind: "url";
|
|
4041
|
+
url: string;
|
|
4042
4042
|
} | {
|
|
4043
4043
|
kind: "inline";
|
|
4044
|
-
mediaType: string;
|
|
4045
4044
|
data: string;
|
|
4045
|
+
mediaType: string;
|
|
4046
4046
|
};
|
|
4047
4047
|
filename?: string | undefined;
|
|
4048
4048
|
}, {
|
|
4049
4049
|
type: "file";
|
|
4050
4050
|
source: {
|
|
4051
|
-
url: string;
|
|
4052
4051
|
kind: "url";
|
|
4052
|
+
url: string;
|
|
4053
4053
|
} | {
|
|
4054
4054
|
kind: "inline";
|
|
4055
|
-
mediaType: string;
|
|
4056
4055
|
data: string;
|
|
4056
|
+
mediaType: string;
|
|
4057
4057
|
};
|
|
4058
4058
|
filename?: string | undefined;
|
|
4059
4059
|
}>, z.ZodObject<{
|
|
@@ -4076,306 +4076,306 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4076
4076
|
name: z.ZodString;
|
|
4077
4077
|
arguments: z.ZodString;
|
|
4078
4078
|
}, "strict", z.ZodTypeAny, {
|
|
4079
|
-
id: string;
|
|
4080
4079
|
name: string;
|
|
4080
|
+
id: string;
|
|
4081
4081
|
arguments: string;
|
|
4082
4082
|
}, {
|
|
4083
|
-
id: string;
|
|
4084
4083
|
name: string;
|
|
4084
|
+
id: string;
|
|
4085
4085
|
arguments: string;
|
|
4086
4086
|
}>, "many">>;
|
|
4087
4087
|
}, "strict", z.ZodTypeAny, {
|
|
4088
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
4089
4088
|
content: ({
|
|
4090
4089
|
type: "text";
|
|
4091
4090
|
text: string;
|
|
4092
4091
|
} | {
|
|
4093
4092
|
type: "image";
|
|
4094
4093
|
source: {
|
|
4095
|
-
url: string;
|
|
4096
4094
|
kind: "url";
|
|
4095
|
+
url: string;
|
|
4097
4096
|
} | {
|
|
4098
4097
|
kind: "inline";
|
|
4099
|
-
mediaType: string;
|
|
4100
4098
|
data: string;
|
|
4099
|
+
mediaType: string;
|
|
4101
4100
|
};
|
|
4102
4101
|
detail?: "low" | "high" | "auto" | undefined;
|
|
4103
4102
|
} | {
|
|
4104
4103
|
type: "audio";
|
|
4105
4104
|
source: {
|
|
4106
|
-
url: string;
|
|
4107
4105
|
kind: "url";
|
|
4106
|
+
url: string;
|
|
4108
4107
|
} | {
|
|
4109
4108
|
kind: "inline";
|
|
4110
|
-
mediaType: string;
|
|
4111
4109
|
data: string;
|
|
4110
|
+
mediaType: string;
|
|
4112
4111
|
};
|
|
4113
4112
|
} | {
|
|
4114
4113
|
type: "file";
|
|
4115
4114
|
source: {
|
|
4116
|
-
url: string;
|
|
4117
4115
|
kind: "url";
|
|
4116
|
+
url: string;
|
|
4118
4117
|
} | {
|
|
4119
4118
|
kind: "inline";
|
|
4120
|
-
mediaType: string;
|
|
4121
4119
|
data: string;
|
|
4120
|
+
mediaType: string;
|
|
4122
4121
|
};
|
|
4123
4122
|
filename?: string | undefined;
|
|
4124
4123
|
} | {
|
|
4125
4124
|
type: "refusal";
|
|
4126
4125
|
text: string;
|
|
4127
4126
|
})[];
|
|
4127
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
4128
4128
|
name?: string | undefined;
|
|
4129
4129
|
toolCallId?: string | undefined;
|
|
4130
4130
|
toolCalls?: {
|
|
4131
|
-
id: string;
|
|
4132
4131
|
name: string;
|
|
4132
|
+
id: string;
|
|
4133
4133
|
arguments: string;
|
|
4134
4134
|
}[] | undefined;
|
|
4135
4135
|
}, {
|
|
4136
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
4137
4136
|
content: ({
|
|
4138
4137
|
type: "text";
|
|
4139
4138
|
text: string;
|
|
4140
4139
|
} | {
|
|
4141
4140
|
type: "image";
|
|
4142
4141
|
source: {
|
|
4143
|
-
url: string;
|
|
4144
4142
|
kind: "url";
|
|
4143
|
+
url: string;
|
|
4145
4144
|
} | {
|
|
4146
4145
|
kind: "inline";
|
|
4147
|
-
mediaType: string;
|
|
4148
4146
|
data: string;
|
|
4147
|
+
mediaType: string;
|
|
4149
4148
|
};
|
|
4150
4149
|
detail?: "low" | "high" | "auto" | undefined;
|
|
4151
4150
|
} | {
|
|
4152
4151
|
type: "audio";
|
|
4153
4152
|
source: {
|
|
4154
|
-
url: string;
|
|
4155
4153
|
kind: "url";
|
|
4154
|
+
url: string;
|
|
4156
4155
|
} | {
|
|
4157
4156
|
kind: "inline";
|
|
4158
|
-
mediaType: string;
|
|
4159
4157
|
data: string;
|
|
4158
|
+
mediaType: string;
|
|
4160
4159
|
};
|
|
4161
4160
|
} | {
|
|
4162
4161
|
type: "file";
|
|
4163
4162
|
source: {
|
|
4164
|
-
url: string;
|
|
4165
4163
|
kind: "url";
|
|
4164
|
+
url: string;
|
|
4166
4165
|
} | {
|
|
4167
4166
|
kind: "inline";
|
|
4168
|
-
mediaType: string;
|
|
4169
4167
|
data: string;
|
|
4168
|
+
mediaType: string;
|
|
4170
4169
|
};
|
|
4171
4170
|
filename?: string | undefined;
|
|
4172
4171
|
} | {
|
|
4173
4172
|
type: "refusal";
|
|
4174
4173
|
text: string;
|
|
4175
4174
|
})[];
|
|
4175
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
4176
4176
|
name?: string | undefined;
|
|
4177
4177
|
toolCallId?: string | undefined;
|
|
4178
4178
|
toolCalls?: {
|
|
4179
|
-
id: string;
|
|
4180
4179
|
name: string;
|
|
4180
|
+
id: string;
|
|
4181
4181
|
arguments: string;
|
|
4182
4182
|
}[] | undefined;
|
|
4183
4183
|
}>, {
|
|
4184
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
4185
4184
|
content: ({
|
|
4186
4185
|
type: "text";
|
|
4187
4186
|
text: string;
|
|
4188
4187
|
} | {
|
|
4189
4188
|
type: "image";
|
|
4190
4189
|
source: {
|
|
4191
|
-
url: string;
|
|
4192
4190
|
kind: "url";
|
|
4191
|
+
url: string;
|
|
4193
4192
|
} | {
|
|
4194
4193
|
kind: "inline";
|
|
4195
|
-
mediaType: string;
|
|
4196
4194
|
data: string;
|
|
4195
|
+
mediaType: string;
|
|
4197
4196
|
};
|
|
4198
4197
|
detail?: "low" | "high" | "auto" | undefined;
|
|
4199
4198
|
} | {
|
|
4200
4199
|
type: "audio";
|
|
4201
4200
|
source: {
|
|
4202
|
-
url: string;
|
|
4203
4201
|
kind: "url";
|
|
4202
|
+
url: string;
|
|
4204
4203
|
} | {
|
|
4205
4204
|
kind: "inline";
|
|
4206
|
-
mediaType: string;
|
|
4207
4205
|
data: string;
|
|
4206
|
+
mediaType: string;
|
|
4208
4207
|
};
|
|
4209
4208
|
} | {
|
|
4210
4209
|
type: "file";
|
|
4211
4210
|
source: {
|
|
4212
|
-
url: string;
|
|
4213
4211
|
kind: "url";
|
|
4212
|
+
url: string;
|
|
4214
4213
|
} | {
|
|
4215
4214
|
kind: "inline";
|
|
4216
|
-
mediaType: string;
|
|
4217
4215
|
data: string;
|
|
4216
|
+
mediaType: string;
|
|
4218
4217
|
};
|
|
4219
4218
|
filename?: string | undefined;
|
|
4220
4219
|
} | {
|
|
4221
4220
|
type: "refusal";
|
|
4222
4221
|
text: string;
|
|
4223
4222
|
})[];
|
|
4223
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
4224
4224
|
name?: string | undefined;
|
|
4225
4225
|
toolCallId?: string | undefined;
|
|
4226
4226
|
toolCalls?: {
|
|
4227
|
-
id: string;
|
|
4228
4227
|
name: string;
|
|
4228
|
+
id: string;
|
|
4229
4229
|
arguments: string;
|
|
4230
4230
|
}[] | undefined;
|
|
4231
4231
|
}, {
|
|
4232
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
4233
4232
|
content: ({
|
|
4234
4233
|
type: "text";
|
|
4235
4234
|
text: string;
|
|
4236
4235
|
} | {
|
|
4237
4236
|
type: "image";
|
|
4238
4237
|
source: {
|
|
4239
|
-
url: string;
|
|
4240
4238
|
kind: "url";
|
|
4239
|
+
url: string;
|
|
4241
4240
|
} | {
|
|
4242
4241
|
kind: "inline";
|
|
4243
|
-
mediaType: string;
|
|
4244
4242
|
data: string;
|
|
4243
|
+
mediaType: string;
|
|
4245
4244
|
};
|
|
4246
4245
|
detail?: "low" | "high" | "auto" | undefined;
|
|
4247
4246
|
} | {
|
|
4248
4247
|
type: "audio";
|
|
4249
4248
|
source: {
|
|
4250
|
-
url: string;
|
|
4251
4249
|
kind: "url";
|
|
4250
|
+
url: string;
|
|
4252
4251
|
} | {
|
|
4253
4252
|
kind: "inline";
|
|
4254
|
-
mediaType: string;
|
|
4255
4253
|
data: string;
|
|
4254
|
+
mediaType: string;
|
|
4256
4255
|
};
|
|
4257
4256
|
} | {
|
|
4258
4257
|
type: "file";
|
|
4259
4258
|
source: {
|
|
4260
|
-
url: string;
|
|
4261
4259
|
kind: "url";
|
|
4260
|
+
url: string;
|
|
4262
4261
|
} | {
|
|
4263
4262
|
kind: "inline";
|
|
4264
|
-
mediaType: string;
|
|
4265
4263
|
data: string;
|
|
4264
|
+
mediaType: string;
|
|
4266
4265
|
};
|
|
4267
4266
|
filename?: string | undefined;
|
|
4268
4267
|
} | {
|
|
4269
4268
|
type: "refusal";
|
|
4270
4269
|
text: string;
|
|
4271
4270
|
})[];
|
|
4271
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
4272
4272
|
name?: string | undefined;
|
|
4273
4273
|
toolCallId?: string | undefined;
|
|
4274
4274
|
toolCalls?: {
|
|
4275
|
-
id: string;
|
|
4276
4275
|
name: string;
|
|
4276
|
+
id: string;
|
|
4277
4277
|
arguments: string;
|
|
4278
4278
|
}[] | undefined;
|
|
4279
4279
|
}>, "many">;
|
|
4280
4280
|
}, "strict", z.ZodTypeAny, {
|
|
4281
4281
|
format: "messages";
|
|
4282
4282
|
messages: {
|
|
4283
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
4284
4283
|
content: ({
|
|
4285
4284
|
type: "text";
|
|
4286
4285
|
text: string;
|
|
4287
4286
|
} | {
|
|
4288
4287
|
type: "image";
|
|
4289
4288
|
source: {
|
|
4290
|
-
url: string;
|
|
4291
4289
|
kind: "url";
|
|
4290
|
+
url: string;
|
|
4292
4291
|
} | {
|
|
4293
4292
|
kind: "inline";
|
|
4294
|
-
mediaType: string;
|
|
4295
4293
|
data: string;
|
|
4294
|
+
mediaType: string;
|
|
4296
4295
|
};
|
|
4297
4296
|
detail?: "low" | "high" | "auto" | undefined;
|
|
4298
4297
|
} | {
|
|
4299
4298
|
type: "audio";
|
|
4300
4299
|
source: {
|
|
4301
|
-
url: string;
|
|
4302
4300
|
kind: "url";
|
|
4301
|
+
url: string;
|
|
4303
4302
|
} | {
|
|
4304
4303
|
kind: "inline";
|
|
4305
|
-
mediaType: string;
|
|
4306
4304
|
data: string;
|
|
4305
|
+
mediaType: string;
|
|
4307
4306
|
};
|
|
4308
4307
|
} | {
|
|
4309
4308
|
type: "file";
|
|
4310
4309
|
source: {
|
|
4311
|
-
url: string;
|
|
4312
4310
|
kind: "url";
|
|
4311
|
+
url: string;
|
|
4313
4312
|
} | {
|
|
4314
4313
|
kind: "inline";
|
|
4315
|
-
mediaType: string;
|
|
4316
4314
|
data: string;
|
|
4315
|
+
mediaType: string;
|
|
4317
4316
|
};
|
|
4318
4317
|
filename?: string | undefined;
|
|
4319
4318
|
} | {
|
|
4320
4319
|
type: "refusal";
|
|
4321
4320
|
text: string;
|
|
4322
4321
|
})[];
|
|
4322
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
4323
4323
|
name?: string | undefined;
|
|
4324
4324
|
toolCallId?: string | undefined;
|
|
4325
4325
|
toolCalls?: {
|
|
4326
|
-
id: string;
|
|
4327
4326
|
name: string;
|
|
4327
|
+
id: string;
|
|
4328
4328
|
arguments: string;
|
|
4329
4329
|
}[] | undefined;
|
|
4330
4330
|
}[];
|
|
4331
4331
|
}, {
|
|
4332
4332
|
format: "messages";
|
|
4333
4333
|
messages: {
|
|
4334
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
4335
4334
|
content: ({
|
|
4336
4335
|
type: "text";
|
|
4337
4336
|
text: string;
|
|
4338
4337
|
} | {
|
|
4339
4338
|
type: "image";
|
|
4340
4339
|
source: {
|
|
4341
|
-
url: string;
|
|
4342
4340
|
kind: "url";
|
|
4341
|
+
url: string;
|
|
4343
4342
|
} | {
|
|
4344
4343
|
kind: "inline";
|
|
4345
|
-
mediaType: string;
|
|
4346
4344
|
data: string;
|
|
4345
|
+
mediaType: string;
|
|
4347
4346
|
};
|
|
4348
4347
|
detail?: "low" | "high" | "auto" | undefined;
|
|
4349
4348
|
} | {
|
|
4350
4349
|
type: "audio";
|
|
4351
4350
|
source: {
|
|
4352
|
-
url: string;
|
|
4353
4351
|
kind: "url";
|
|
4352
|
+
url: string;
|
|
4354
4353
|
} | {
|
|
4355
4354
|
kind: "inline";
|
|
4356
|
-
mediaType: string;
|
|
4357
4355
|
data: string;
|
|
4356
|
+
mediaType: string;
|
|
4358
4357
|
};
|
|
4359
4358
|
} | {
|
|
4360
4359
|
type: "file";
|
|
4361
4360
|
source: {
|
|
4362
|
-
url: string;
|
|
4363
4361
|
kind: "url";
|
|
4362
|
+
url: string;
|
|
4364
4363
|
} | {
|
|
4365
4364
|
kind: "inline";
|
|
4366
|
-
mediaType: string;
|
|
4367
4365
|
data: string;
|
|
4366
|
+
mediaType: string;
|
|
4368
4367
|
};
|
|
4369
4368
|
filename?: string | undefined;
|
|
4370
4369
|
} | {
|
|
4371
4370
|
type: "refusal";
|
|
4372
4371
|
text: string;
|
|
4373
4372
|
})[];
|
|
4373
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
4374
4374
|
name?: string | undefined;
|
|
4375
4375
|
toolCallId?: string | undefined;
|
|
4376
4376
|
toolCalls?: {
|
|
4377
|
-
id: string;
|
|
4378
4377
|
name: string;
|
|
4378
|
+
id: string;
|
|
4379
4379
|
arguments: string;
|
|
4380
4380
|
}[] | undefined;
|
|
4381
4381
|
}[];
|
|
@@ -4410,20 +4410,20 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4410
4410
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
4411
4411
|
stopSequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4412
4412
|
}, "strict", z.ZodTypeAny, {
|
|
4413
|
+
seed?: number | undefined;
|
|
4413
4414
|
temperature?: number | undefined;
|
|
4414
4415
|
topP?: number | undefined;
|
|
4415
4416
|
topK?: number | undefined;
|
|
4416
4417
|
frequencyPenalty?: number | undefined;
|
|
4417
4418
|
presencePenalty?: number | undefined;
|
|
4418
|
-
seed?: number | undefined;
|
|
4419
4419
|
stopSequences?: string[] | undefined;
|
|
4420
4420
|
}, {
|
|
4421
|
+
seed?: number | undefined;
|
|
4421
4422
|
temperature?: number | undefined;
|
|
4422
4423
|
topP?: number | undefined;
|
|
4423
4424
|
topK?: number | undefined;
|
|
4424
4425
|
frequencyPenalty?: number | undefined;
|
|
4425
4426
|
presencePenalty?: number | undefined;
|
|
4426
|
-
seed?: number | undefined;
|
|
4427
4427
|
stopSequences?: string[] | undefined;
|
|
4428
4428
|
}>;
|
|
4429
4429
|
reasoning: z.ZodOptional<z.ZodObject<{
|
|
@@ -4506,13 +4506,13 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4506
4506
|
}, "strict", z.ZodTypeAny, {
|
|
4507
4507
|
type: "json_schema";
|
|
4508
4508
|
strict: boolean;
|
|
4509
|
-
name: string;
|
|
4510
4509
|
schema: Record<string, unknown>;
|
|
4510
|
+
name: string;
|
|
4511
4511
|
}, {
|
|
4512
4512
|
type: "json_schema";
|
|
4513
4513
|
strict: boolean;
|
|
4514
|
-
name: string;
|
|
4515
4514
|
schema: Record<string, unknown>;
|
|
4515
|
+
name: string;
|
|
4516
4516
|
}>]>>;
|
|
4517
4517
|
client: z.ZodObject<{
|
|
4518
4518
|
/** The public dialect the customer called. The response is rendered in it. */
|
|
@@ -4524,15 +4524,15 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4524
4524
|
receivedAt: z.ZodString;
|
|
4525
4525
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4526
4526
|
}, "strict", z.ZodTypeAny, {
|
|
4527
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
4528
|
-
endpoint: string;
|
|
4529
4527
|
receivedAt: string;
|
|
4528
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
4529
|
+
endpoint: string;
|
|
4530
4530
|
clientRequestId?: string | undefined;
|
|
4531
4531
|
labels?: Record<string, string> | undefined;
|
|
4532
4532
|
}, {
|
|
4533
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
4534
|
-
endpoint: string;
|
|
4535
4533
|
receivedAt: string;
|
|
4534
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
4535
|
+
endpoint: string;
|
|
4536
4536
|
clientRequestId?: string | undefined;
|
|
4537
4537
|
labels?: Record<string, string> | undefined;
|
|
4538
4538
|
}>;
|
|
@@ -4560,43 +4560,43 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4560
4560
|
environment: z.ZodEnum<["development", "staging", "production"]>;
|
|
4561
4561
|
}, "strict", z.ZodTypeAny, {
|
|
4562
4562
|
environment: "development" | "staging" | "production";
|
|
4563
|
-
credentialHandle: string;
|
|
4564
|
-
credentialRevision: number;
|
|
4565
4563
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
4566
4564
|
connectionId: string;
|
|
4567
|
-
}, {
|
|
4568
|
-
environment: "development" | "staging" | "production";
|
|
4569
4565
|
credentialHandle: string;
|
|
4570
4566
|
credentialRevision: number;
|
|
4567
|
+
}, {
|
|
4568
|
+
environment: "development" | "staging" | "production";
|
|
4571
4569
|
ownerAccountId: string;
|
|
4572
4570
|
connectionId: string;
|
|
4571
|
+
credentialHandle: string;
|
|
4572
|
+
credentialRevision: number;
|
|
4573
4573
|
}>>;
|
|
4574
4574
|
substitution: z.ZodLiteral<"same_model">;
|
|
4575
4575
|
}, "strict", z.ZodTypeAny, {
|
|
4576
|
-
deploymentId: string;
|
|
4577
4576
|
provider: string;
|
|
4578
4577
|
modelReference: string;
|
|
4578
|
+
deploymentId: string;
|
|
4579
4579
|
regions: string[];
|
|
4580
4580
|
substitution: "same_model";
|
|
4581
4581
|
customerProviderCredential?: {
|
|
4582
4582
|
environment: "development" | "staging" | "production";
|
|
4583
|
-
credentialHandle: string;
|
|
4584
|
-
credentialRevision: number;
|
|
4585
4583
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
4586
4584
|
connectionId: string;
|
|
4585
|
+
credentialHandle: string;
|
|
4586
|
+
credentialRevision: number;
|
|
4587
4587
|
} | undefined;
|
|
4588
4588
|
}, {
|
|
4589
|
-
deploymentId: string;
|
|
4590
4589
|
provider: string;
|
|
4591
4590
|
modelReference: string;
|
|
4591
|
+
deploymentId: string;
|
|
4592
4592
|
regions: string[];
|
|
4593
4593
|
substitution: "same_model";
|
|
4594
4594
|
customerProviderCredential?: {
|
|
4595
4595
|
environment: "development" | "staging" | "production";
|
|
4596
|
-
credentialHandle: string;
|
|
4597
|
-
credentialRevision: number;
|
|
4598
4596
|
ownerAccountId: string;
|
|
4599
4597
|
connectionId: string;
|
|
4598
|
+
credentialHandle: string;
|
|
4599
|
+
credentialRevision: number;
|
|
4600
4600
|
} | undefined;
|
|
4601
4601
|
}>, z.ZodObject<{
|
|
4602
4602
|
authorizedByPolicy: z.ZodLiteral<true>;
|
|
@@ -4612,99 +4612,99 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4612
4612
|
environment: z.ZodEnum<["development", "staging", "production"]>;
|
|
4613
4613
|
}, "strict", z.ZodTypeAny, {
|
|
4614
4614
|
environment: "development" | "staging" | "production";
|
|
4615
|
-
credentialHandle: string;
|
|
4616
|
-
credentialRevision: number;
|
|
4617
4615
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
4618
4616
|
connectionId: string;
|
|
4619
|
-
}, {
|
|
4620
|
-
environment: "development" | "staging" | "production";
|
|
4621
4617
|
credentialHandle: string;
|
|
4622
4618
|
credentialRevision: number;
|
|
4619
|
+
}, {
|
|
4620
|
+
environment: "development" | "staging" | "production";
|
|
4623
4621
|
ownerAccountId: string;
|
|
4624
4622
|
connectionId: string;
|
|
4623
|
+
credentialHandle: string;
|
|
4624
|
+
credentialRevision: number;
|
|
4625
4625
|
}>>;
|
|
4626
4626
|
substitution: z.ZodLiteral<"cross_model">;
|
|
4627
4627
|
}, "strict", z.ZodTypeAny, {
|
|
4628
|
-
deploymentId: string;
|
|
4629
4628
|
provider: string;
|
|
4630
4629
|
modelReference: string;
|
|
4630
|
+
deploymentId: string;
|
|
4631
4631
|
regions: string[];
|
|
4632
4632
|
substitution: "cross_model";
|
|
4633
4633
|
authorizedByPolicy: true;
|
|
4634
4634
|
customerProviderCredential?: {
|
|
4635
4635
|
environment: "development" | "staging" | "production";
|
|
4636
|
-
credentialHandle: string;
|
|
4637
|
-
credentialRevision: number;
|
|
4638
4636
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
4639
4637
|
connectionId: string;
|
|
4638
|
+
credentialHandle: string;
|
|
4639
|
+
credentialRevision: number;
|
|
4640
4640
|
} | undefined;
|
|
4641
4641
|
}, {
|
|
4642
|
-
deploymentId: string;
|
|
4643
4642
|
provider: string;
|
|
4644
4643
|
modelReference: string;
|
|
4644
|
+
deploymentId: string;
|
|
4645
4645
|
regions: string[];
|
|
4646
4646
|
substitution: "cross_model";
|
|
4647
4647
|
authorizedByPolicy: true;
|
|
4648
4648
|
customerProviderCredential?: {
|
|
4649
4649
|
environment: "development" | "staging" | "production";
|
|
4650
|
-
credentialHandle: string;
|
|
4651
|
-
credentialRevision: number;
|
|
4652
4650
|
ownerAccountId: string;
|
|
4653
4651
|
connectionId: string;
|
|
4652
|
+
credentialHandle: string;
|
|
4653
|
+
credentialRevision: number;
|
|
4654
4654
|
} | undefined;
|
|
4655
4655
|
}>]>, {
|
|
4656
|
-
deploymentId: string;
|
|
4657
4656
|
provider: string;
|
|
4658
4657
|
modelReference: string;
|
|
4658
|
+
deploymentId: string;
|
|
4659
4659
|
regions: string[];
|
|
4660
4660
|
substitution: "same_model";
|
|
4661
4661
|
customerProviderCredential?: {
|
|
4662
4662
|
environment: "development" | "staging" | "production";
|
|
4663
|
-
credentialHandle: string;
|
|
4664
|
-
credentialRevision: number;
|
|
4665
4663
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
4666
4664
|
connectionId: string;
|
|
4665
|
+
credentialHandle: string;
|
|
4666
|
+
credentialRevision: number;
|
|
4667
4667
|
} | undefined;
|
|
4668
4668
|
} | {
|
|
4669
|
-
deploymentId: string;
|
|
4670
4669
|
provider: string;
|
|
4671
4670
|
modelReference: string;
|
|
4671
|
+
deploymentId: string;
|
|
4672
4672
|
regions: string[];
|
|
4673
4673
|
substitution: "cross_model";
|
|
4674
4674
|
authorizedByPolicy: true;
|
|
4675
4675
|
customerProviderCredential?: {
|
|
4676
4676
|
environment: "development" | "staging" | "production";
|
|
4677
|
-
credentialHandle: string;
|
|
4678
|
-
credentialRevision: number;
|
|
4679
4677
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
4680
4678
|
connectionId: string;
|
|
4679
|
+
credentialHandle: string;
|
|
4680
|
+
credentialRevision: number;
|
|
4681
4681
|
} | undefined;
|
|
4682
4682
|
}, {
|
|
4683
|
-
deploymentId: string;
|
|
4684
4683
|
provider: string;
|
|
4685
4684
|
modelReference: string;
|
|
4685
|
+
deploymentId: string;
|
|
4686
4686
|
regions: string[];
|
|
4687
4687
|
substitution: "same_model";
|
|
4688
4688
|
customerProviderCredential?: {
|
|
4689
4689
|
environment: "development" | "staging" | "production";
|
|
4690
|
-
credentialHandle: string;
|
|
4691
|
-
credentialRevision: number;
|
|
4692
4690
|
ownerAccountId: string;
|
|
4693
4691
|
connectionId: string;
|
|
4692
|
+
credentialHandle: string;
|
|
4693
|
+
credentialRevision: number;
|
|
4694
4694
|
} | undefined;
|
|
4695
4695
|
} | {
|
|
4696
|
-
deploymentId: string;
|
|
4697
4696
|
provider: string;
|
|
4698
4697
|
modelReference: string;
|
|
4698
|
+
deploymentId: string;
|
|
4699
4699
|
regions: string[];
|
|
4700
4700
|
substitution: "cross_model";
|
|
4701
4701
|
authorizedByPolicy: true;
|
|
4702
4702
|
customerProviderCredential?: {
|
|
4703
4703
|
environment: "development" | "staging" | "production";
|
|
4704
|
-
credentialHandle: string;
|
|
4705
|
-
credentialRevision: number;
|
|
4706
4704
|
ownerAccountId: string;
|
|
4707
4705
|
connectionId: string;
|
|
4706
|
+
credentialHandle: string;
|
|
4707
|
+
credentialRevision: number;
|
|
4708
4708
|
} | undefined;
|
|
4709
4709
|
}>, "many">>;
|
|
4710
4710
|
} & {
|
|
@@ -4720,15 +4720,15 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4720
4720
|
credentialId: z.ZodString;
|
|
4721
4721
|
environment: z.ZodEnum<["development", "staging", "production"]>;
|
|
4722
4722
|
}, "strict", z.ZodTypeAny, {
|
|
4723
|
+
environment: "development" | "staging" | "production";
|
|
4723
4724
|
accountId: string;
|
|
4724
4725
|
applicationId: string;
|
|
4725
4726
|
credentialId: string;
|
|
4726
|
-
environment: "development" | "staging" | "production";
|
|
4727
4727
|
}, {
|
|
4728
|
+
environment: "development" | "staging" | "production";
|
|
4728
4729
|
accountId: string;
|
|
4729
4730
|
applicationId: string;
|
|
4730
4731
|
credentialId: string;
|
|
4731
|
-
environment: "development" | "staging" | "production";
|
|
4732
4732
|
}>;
|
|
4733
4733
|
policy: z.ZodObject<{
|
|
4734
4734
|
routingPolicyId: z.ZodString;
|
|
@@ -4754,61 +4754,62 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4754
4754
|
snapshotId: z.ZodString;
|
|
4755
4755
|
catalogueEvidenceHash: z.ZodString;
|
|
4756
4756
|
}, "strict", z.ZodTypeAny, {
|
|
4757
|
-
permitId: string;
|
|
4758
|
-
idempotencyKey: string;
|
|
4759
|
-
fixtureSha256: string;
|
|
4760
4757
|
expiresAt: string;
|
|
4758
|
+
requestId: string;
|
|
4759
|
+
keyId: string;
|
|
4760
|
+
idempotencyKey: string;
|
|
4761
4761
|
principal: {
|
|
4762
|
+
environment: "development" | "staging" | "production";
|
|
4762
4763
|
accountId: string;
|
|
4763
4764
|
applicationId: string;
|
|
4764
4765
|
credentialId: string;
|
|
4765
|
-
environment: "development" | "staging" | "production";
|
|
4766
4766
|
};
|
|
4767
|
+
provider: string;
|
|
4768
|
+
priceVersionId: string;
|
|
4769
|
+
modelReference: string;
|
|
4770
|
+
permitId: string;
|
|
4771
|
+
fixtureSha256: string;
|
|
4767
4772
|
policy: {
|
|
4768
4773
|
routingPolicyId: string;
|
|
4769
4774
|
policyVersion: number;
|
|
4770
4775
|
};
|
|
4771
4776
|
deploymentId: string;
|
|
4772
|
-
provider: string;
|
|
4773
|
-
keyId: string;
|
|
4774
|
-
modelReference: string;
|
|
4775
4777
|
upstreamModelId: string;
|
|
4776
|
-
priceVersionId: string;
|
|
4777
4778
|
providerRateCardVersionId: string;
|
|
4778
4779
|
providerSourceVersion: string;
|
|
4779
4780
|
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
4780
|
-
requestId: string;
|
|
4781
4781
|
snapshotId: string;
|
|
4782
4782
|
catalogueEvidenceHash: string;
|
|
4783
4783
|
}, {
|
|
4784
|
-
permitId: string;
|
|
4785
|
-
idempotencyKey: string;
|
|
4786
|
-
fixtureSha256: string;
|
|
4787
4784
|
expiresAt: string;
|
|
4785
|
+
requestId: string;
|
|
4786
|
+
keyId: string;
|
|
4787
|
+
idempotencyKey: string;
|
|
4788
4788
|
principal: {
|
|
4789
|
+
environment: "development" | "staging" | "production";
|
|
4789
4790
|
accountId: string;
|
|
4790
4791
|
applicationId: string;
|
|
4791
4792
|
credentialId: string;
|
|
4792
|
-
environment: "development" | "staging" | "production";
|
|
4793
4793
|
};
|
|
4794
|
+
provider: string;
|
|
4795
|
+
priceVersionId: string;
|
|
4796
|
+
modelReference: string;
|
|
4797
|
+
permitId: string;
|
|
4798
|
+
fixtureSha256: string;
|
|
4794
4799
|
policy: {
|
|
4795
4800
|
routingPolicyId: string;
|
|
4796
4801
|
policyVersion: number;
|
|
4797
4802
|
};
|
|
4798
4803
|
deploymentId: string;
|
|
4799
|
-
provider: string;
|
|
4800
|
-
keyId: string;
|
|
4801
|
-
modelReference: string;
|
|
4802
4804
|
upstreamModelId: string;
|
|
4803
|
-
priceVersionId: string;
|
|
4804
4805
|
providerRateCardVersionId: string;
|
|
4805
4806
|
providerSourceVersion: string;
|
|
4806
4807
|
maxCostUsd: string;
|
|
4807
|
-
requestId: string;
|
|
4808
4808
|
snapshotId: string;
|
|
4809
4809
|
catalogueEvidenceHash: string;
|
|
4810
4810
|
}>;
|
|
4811
4811
|
}, "strip", z.ZodTypeAny, {
|
|
4812
|
+
schemaVersion: 3;
|
|
4812
4813
|
tools: {
|
|
4813
4814
|
type: "function";
|
|
4814
4815
|
name: string;
|
|
@@ -4816,57 +4817,67 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4816
4817
|
strict?: boolean | undefined;
|
|
4817
4818
|
description?: string | undefined;
|
|
4818
4819
|
}[];
|
|
4819
|
-
|
|
4820
|
+
attribution: {
|
|
4821
|
+
requestId: string;
|
|
4822
|
+
principal: {
|
|
4823
|
+
environment: "development" | "staging" | "production";
|
|
4824
|
+
applicationId: string;
|
|
4825
|
+
credentialId: string;
|
|
4826
|
+
billing: {
|
|
4827
|
+
accountId: string & z.BRAND<"OxyAccountId">;
|
|
4828
|
+
};
|
|
4829
|
+
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
4830
|
+
};
|
|
4831
|
+
userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
|
|
4832
|
+
generationId?: string | undefined;
|
|
4833
|
+
};
|
|
4834
|
+
client: {
|
|
4835
|
+
receivedAt: string;
|
|
4836
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
4837
|
+
endpoint: string;
|
|
4838
|
+
clientRequestId?: string | undefined;
|
|
4839
|
+
labels?: Record<string, string> | undefined;
|
|
4840
|
+
};
|
|
4820
4841
|
scopedExecution: {
|
|
4821
|
-
permitId: string;
|
|
4822
|
-
idempotencyKey: string;
|
|
4823
|
-
fixtureSha256: string;
|
|
4824
4842
|
expiresAt: string;
|
|
4843
|
+
requestId: string;
|
|
4844
|
+
keyId: string;
|
|
4845
|
+
idempotencyKey: string;
|
|
4825
4846
|
principal: {
|
|
4847
|
+
environment: "development" | "staging" | "production";
|
|
4826
4848
|
accountId: string;
|
|
4827
4849
|
applicationId: string;
|
|
4828
4850
|
credentialId: string;
|
|
4829
|
-
environment: "development" | "staging" | "production";
|
|
4830
4851
|
};
|
|
4852
|
+
provider: string;
|
|
4853
|
+
priceVersionId: string;
|
|
4854
|
+
modelReference: string;
|
|
4855
|
+
permitId: string;
|
|
4856
|
+
fixtureSha256: string;
|
|
4831
4857
|
policy: {
|
|
4832
4858
|
routingPolicyId: string;
|
|
4833
4859
|
policyVersion: number;
|
|
4834
4860
|
};
|
|
4835
4861
|
deploymentId: string;
|
|
4836
|
-
provider: string;
|
|
4837
|
-
keyId: string;
|
|
4838
|
-
modelReference: string;
|
|
4839
4862
|
upstreamModelId: string;
|
|
4840
|
-
priceVersionId: string;
|
|
4841
4863
|
providerRateCardVersionId: string;
|
|
4842
4864
|
providerSourceVersion: string;
|
|
4843
4865
|
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
4844
|
-
requestId: string;
|
|
4845
4866
|
snapshotId: string;
|
|
4846
4867
|
catalogueEvidenceHash: string;
|
|
4847
4868
|
};
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
credentialId: string;
|
|
4852
|
-
environment: "development" | "staging" | "production";
|
|
4853
|
-
billing: {
|
|
4854
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
4855
|
-
};
|
|
4856
|
-
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
4857
|
-
};
|
|
4858
|
-
requestId: string;
|
|
4859
|
-
userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
|
|
4860
|
-
generationId?: string | undefined;
|
|
4869
|
+
routingPolicy: {
|
|
4870
|
+
routingPolicyId: string;
|
|
4871
|
+
policyVersion: number;
|
|
4861
4872
|
};
|
|
4862
4873
|
target: {
|
|
4863
|
-
modelReference: string;
|
|
4864
4874
|
kind: "model";
|
|
4875
|
+
modelReference: string;
|
|
4865
4876
|
} | {
|
|
4866
4877
|
kind: "routing_profile_id";
|
|
4867
4878
|
routingProfileId: string;
|
|
4868
4879
|
};
|
|
4869
|
-
modality: "
|
|
4880
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
4870
4881
|
input: {
|
|
4871
4882
|
decisions: {
|
|
4872
4883
|
state: string;
|
|
@@ -4895,51 +4906,51 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4895
4906
|
} | {
|
|
4896
4907
|
format: "messages";
|
|
4897
4908
|
messages: {
|
|
4898
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
4899
4909
|
content: ({
|
|
4900
4910
|
type: "text";
|
|
4901
4911
|
text: string;
|
|
4902
4912
|
} | {
|
|
4903
4913
|
type: "image";
|
|
4904
4914
|
source: {
|
|
4905
|
-
url: string;
|
|
4906
4915
|
kind: "url";
|
|
4916
|
+
url: string;
|
|
4907
4917
|
} | {
|
|
4908
4918
|
kind: "inline";
|
|
4909
|
-
mediaType: string;
|
|
4910
4919
|
data: string;
|
|
4920
|
+
mediaType: string;
|
|
4911
4921
|
};
|
|
4912
4922
|
detail?: "low" | "high" | "auto" | undefined;
|
|
4913
4923
|
} | {
|
|
4914
4924
|
type: "audio";
|
|
4915
4925
|
source: {
|
|
4916
|
-
url: string;
|
|
4917
4926
|
kind: "url";
|
|
4927
|
+
url: string;
|
|
4918
4928
|
} | {
|
|
4919
4929
|
kind: "inline";
|
|
4920
|
-
mediaType: string;
|
|
4921
4930
|
data: string;
|
|
4931
|
+
mediaType: string;
|
|
4922
4932
|
};
|
|
4923
4933
|
} | {
|
|
4924
4934
|
type: "file";
|
|
4925
4935
|
source: {
|
|
4926
|
-
url: string;
|
|
4927
4936
|
kind: "url";
|
|
4937
|
+
url: string;
|
|
4928
4938
|
} | {
|
|
4929
4939
|
kind: "inline";
|
|
4930
|
-
mediaType: string;
|
|
4931
4940
|
data: string;
|
|
4941
|
+
mediaType: string;
|
|
4932
4942
|
};
|
|
4933
4943
|
filename?: string | undefined;
|
|
4934
4944
|
} | {
|
|
4935
4945
|
type: "refusal";
|
|
4936
4946
|
text: string;
|
|
4937
4947
|
})[];
|
|
4948
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
4938
4949
|
name?: string | undefined;
|
|
4939
4950
|
toolCallId?: string | undefined;
|
|
4940
4951
|
toolCalls?: {
|
|
4941
|
-
id: string;
|
|
4942
4952
|
name: string;
|
|
4953
|
+
id: string;
|
|
4943
4954
|
arguments: string;
|
|
4944
4955
|
}[] | undefined;
|
|
4945
4956
|
}[];
|
|
@@ -4952,25 +4963,14 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4952
4963
|
};
|
|
4953
4964
|
stream: boolean;
|
|
4954
4965
|
sampling: {
|
|
4966
|
+
seed?: number | undefined;
|
|
4955
4967
|
temperature?: number | undefined;
|
|
4956
4968
|
topP?: number | undefined;
|
|
4957
4969
|
topK?: number | undefined;
|
|
4958
4970
|
frequencyPenalty?: number | undefined;
|
|
4959
4971
|
presencePenalty?: number | undefined;
|
|
4960
|
-
seed?: number | undefined;
|
|
4961
4972
|
stopSequences?: string[] | undefined;
|
|
4962
4973
|
};
|
|
4963
|
-
client: {
|
|
4964
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
4965
|
-
endpoint: string;
|
|
4966
|
-
receivedAt: string;
|
|
4967
|
-
clientRequestId?: string | undefined;
|
|
4968
|
-
labels?: Record<string, string> | undefined;
|
|
4969
|
-
};
|
|
4970
|
-
routingPolicy: {
|
|
4971
|
-
routingPolicyId: string;
|
|
4972
|
-
policyVersion: number;
|
|
4973
|
-
};
|
|
4974
4974
|
idempotencyKey?: string | undefined;
|
|
4975
4975
|
reasoning?: {
|
|
4976
4976
|
effort: "low" | "medium" | "high";
|
|
@@ -4983,8 +4983,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4983
4983
|
} | {
|
|
4984
4984
|
type: "json_schema";
|
|
4985
4985
|
strict: boolean;
|
|
4986
|
-
name: string;
|
|
4987
4986
|
schema: Record<string, unknown>;
|
|
4987
|
+
name: string;
|
|
4988
4988
|
} | undefined;
|
|
4989
4989
|
speech?: {
|
|
4990
4990
|
voice: string;
|
|
@@ -4995,90 +4995,101 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4995
4995
|
format: "mp3" | "opus" | "flac" | "wav" | "pcm";
|
|
4996
4996
|
voice: string;
|
|
4997
4997
|
} | undefined;
|
|
4998
|
-
toolChoice?: "
|
|
4998
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
4999
4999
|
type: "function";
|
|
5000
5000
|
name: string;
|
|
5001
5001
|
} | undefined;
|
|
5002
5002
|
authorizedRoutes?: ({
|
|
5003
|
-
deploymentId: string;
|
|
5004
5003
|
provider: string;
|
|
5005
5004
|
modelReference: string;
|
|
5005
|
+
deploymentId: string;
|
|
5006
5006
|
regions: string[];
|
|
5007
5007
|
substitution: "same_model";
|
|
5008
5008
|
customerProviderCredential?: {
|
|
5009
5009
|
environment: "development" | "staging" | "production";
|
|
5010
|
-
credentialHandle: string;
|
|
5011
|
-
credentialRevision: number;
|
|
5012
5010
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
5013
5011
|
connectionId: string;
|
|
5012
|
+
credentialHandle: string;
|
|
5013
|
+
credentialRevision: number;
|
|
5014
5014
|
} | undefined;
|
|
5015
5015
|
} | {
|
|
5016
|
-
deploymentId: string;
|
|
5017
5016
|
provider: string;
|
|
5018
5017
|
modelReference: string;
|
|
5018
|
+
deploymentId: string;
|
|
5019
5019
|
regions: string[];
|
|
5020
5020
|
substitution: "cross_model";
|
|
5021
5021
|
authorizedByPolicy: true;
|
|
5022
5022
|
customerProviderCredential?: {
|
|
5023
5023
|
environment: "development" | "staging" | "production";
|
|
5024
|
-
credentialHandle: string;
|
|
5025
|
-
credentialRevision: number;
|
|
5026
5024
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
5027
5025
|
connectionId: string;
|
|
5026
|
+
credentialHandle: string;
|
|
5027
|
+
credentialRevision: number;
|
|
5028
5028
|
} | undefined;
|
|
5029
5029
|
})[] | undefined;
|
|
5030
5030
|
}, {
|
|
5031
5031
|
schemaVersion: 3;
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
idempotencyKey: string;
|
|
5035
|
-
fixtureSha256: string;
|
|
5036
|
-
expiresAt: string;
|
|
5032
|
+
attribution: {
|
|
5033
|
+
requestId: string;
|
|
5037
5034
|
principal: {
|
|
5038
|
-
|
|
5035
|
+
environment: "development" | "staging" | "production";
|
|
5039
5036
|
applicationId: string;
|
|
5040
5037
|
credentialId: string;
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
policyVersion: number;
|
|
5038
|
+
billing: {
|
|
5039
|
+
accountId: string;
|
|
5040
|
+
};
|
|
5041
|
+
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
5046
5042
|
};
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
keyId: string;
|
|
5050
|
-
modelReference: string;
|
|
5051
|
-
upstreamModelId: string;
|
|
5052
|
-
priceVersionId: string;
|
|
5053
|
-
providerRateCardVersionId: string;
|
|
5054
|
-
providerSourceVersion: string;
|
|
5055
|
-
maxCostUsd: string;
|
|
5056
|
-
requestId: string;
|
|
5057
|
-
snapshotId: string;
|
|
5058
|
-
catalogueEvidenceHash: string;
|
|
5043
|
+
userId?: string | undefined;
|
|
5044
|
+
generationId?: string | undefined;
|
|
5059
5045
|
};
|
|
5060
|
-
|
|
5046
|
+
client: {
|
|
5047
|
+
receivedAt: string;
|
|
5048
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
5049
|
+
endpoint: string;
|
|
5050
|
+
clientRequestId?: string | undefined;
|
|
5051
|
+
labels?: Record<string, string> | undefined;
|
|
5052
|
+
};
|
|
5053
|
+
scopedExecution: {
|
|
5054
|
+
expiresAt: string;
|
|
5055
|
+
requestId: string;
|
|
5056
|
+
keyId: string;
|
|
5057
|
+
idempotencyKey: string;
|
|
5061
5058
|
principal: {
|
|
5059
|
+
environment: "development" | "staging" | "production";
|
|
5060
|
+
accountId: string;
|
|
5062
5061
|
applicationId: string;
|
|
5063
5062
|
credentialId: string;
|
|
5064
|
-
environment: "development" | "staging" | "production";
|
|
5065
|
-
billing: {
|
|
5066
|
-
accountId: string;
|
|
5067
|
-
};
|
|
5068
|
-
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
5069
5063
|
};
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5064
|
+
provider: string;
|
|
5065
|
+
priceVersionId: string;
|
|
5066
|
+
modelReference: string;
|
|
5067
|
+
permitId: string;
|
|
5068
|
+
fixtureSha256: string;
|
|
5069
|
+
policy: {
|
|
5070
|
+
routingPolicyId: string;
|
|
5071
|
+
policyVersion: number;
|
|
5072
|
+
};
|
|
5073
|
+
deploymentId: string;
|
|
5074
|
+
upstreamModelId: string;
|
|
5075
|
+
providerRateCardVersionId: string;
|
|
5076
|
+
providerSourceVersion: string;
|
|
5077
|
+
maxCostUsd: string;
|
|
5078
|
+
snapshotId: string;
|
|
5079
|
+
catalogueEvidenceHash: string;
|
|
5080
|
+
};
|
|
5081
|
+
routingPolicy: {
|
|
5082
|
+
routingPolicyId: string;
|
|
5083
|
+
policyVersion: number;
|
|
5073
5084
|
};
|
|
5074
5085
|
target: {
|
|
5075
|
-
modelReference: string;
|
|
5076
5086
|
kind: "model";
|
|
5087
|
+
modelReference: string;
|
|
5077
5088
|
} | {
|
|
5078
5089
|
kind: "routing_profile_id";
|
|
5079
5090
|
routingProfileId: string;
|
|
5080
5091
|
};
|
|
5081
|
-
modality: "
|
|
5092
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
5082
5093
|
input: {
|
|
5083
5094
|
decisions: {
|
|
5084
5095
|
state: string;
|
|
@@ -5107,51 +5118,51 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5107
5118
|
} | {
|
|
5108
5119
|
format: "messages";
|
|
5109
5120
|
messages: {
|
|
5110
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
5111
5121
|
content: ({
|
|
5112
5122
|
type: "text";
|
|
5113
5123
|
text: string;
|
|
5114
5124
|
} | {
|
|
5115
5125
|
type: "image";
|
|
5116
5126
|
source: {
|
|
5117
|
-
url: string;
|
|
5118
5127
|
kind: "url";
|
|
5128
|
+
url: string;
|
|
5119
5129
|
} | {
|
|
5120
5130
|
kind: "inline";
|
|
5121
|
-
mediaType: string;
|
|
5122
5131
|
data: string;
|
|
5132
|
+
mediaType: string;
|
|
5123
5133
|
};
|
|
5124
5134
|
detail?: "low" | "high" | "auto" | undefined;
|
|
5125
5135
|
} | {
|
|
5126
5136
|
type: "audio";
|
|
5127
5137
|
source: {
|
|
5128
|
-
url: string;
|
|
5129
5138
|
kind: "url";
|
|
5139
|
+
url: string;
|
|
5130
5140
|
} | {
|
|
5131
5141
|
kind: "inline";
|
|
5132
|
-
mediaType: string;
|
|
5133
5142
|
data: string;
|
|
5143
|
+
mediaType: string;
|
|
5134
5144
|
};
|
|
5135
5145
|
} | {
|
|
5136
5146
|
type: "file";
|
|
5137
5147
|
source: {
|
|
5138
|
-
url: string;
|
|
5139
5148
|
kind: "url";
|
|
5149
|
+
url: string;
|
|
5140
5150
|
} | {
|
|
5141
5151
|
kind: "inline";
|
|
5142
|
-
mediaType: string;
|
|
5143
5152
|
data: string;
|
|
5153
|
+
mediaType: string;
|
|
5144
5154
|
};
|
|
5145
5155
|
filename?: string | undefined;
|
|
5146
5156
|
} | {
|
|
5147
5157
|
type: "refusal";
|
|
5148
5158
|
text: string;
|
|
5149
5159
|
})[];
|
|
5160
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
5150
5161
|
name?: string | undefined;
|
|
5151
5162
|
toolCallId?: string | undefined;
|
|
5152
5163
|
toolCalls?: {
|
|
5153
|
-
id: string;
|
|
5154
5164
|
name: string;
|
|
5165
|
+
id: string;
|
|
5155
5166
|
arguments: string;
|
|
5156
5167
|
}[] | undefined;
|
|
5157
5168
|
}[];
|
|
@@ -5164,26 +5175,14 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5164
5175
|
};
|
|
5165
5176
|
stream: boolean;
|
|
5166
5177
|
sampling: {
|
|
5178
|
+
seed?: number | undefined;
|
|
5167
5179
|
temperature?: number | undefined;
|
|
5168
5180
|
topP?: number | undefined;
|
|
5169
5181
|
topK?: number | undefined;
|
|
5170
5182
|
frequencyPenalty?: number | undefined;
|
|
5171
5183
|
presencePenalty?: number | undefined;
|
|
5172
|
-
seed?: number | undefined;
|
|
5173
5184
|
stopSequences?: string[] | undefined;
|
|
5174
5185
|
};
|
|
5175
|
-
client: {
|
|
5176
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
5177
|
-
endpoint: string;
|
|
5178
|
-
receivedAt: string;
|
|
5179
|
-
clientRequestId?: string | undefined;
|
|
5180
|
-
labels?: Record<string, string> | undefined;
|
|
5181
|
-
};
|
|
5182
|
-
routingPolicy: {
|
|
5183
|
-
routingPolicyId: string;
|
|
5184
|
-
policyVersion: number;
|
|
5185
|
-
};
|
|
5186
|
-
idempotencyKey?: string | undefined;
|
|
5187
5186
|
tools?: {
|
|
5188
5187
|
type: "function";
|
|
5189
5188
|
name: string;
|
|
@@ -5191,6 +5190,7 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5191
5190
|
strict?: boolean | undefined;
|
|
5192
5191
|
description?: string | undefined;
|
|
5193
5192
|
}[] | undefined;
|
|
5193
|
+
idempotencyKey?: string | undefined;
|
|
5194
5194
|
reasoning?: {
|
|
5195
5195
|
effort: "low" | "medium" | "high";
|
|
5196
5196
|
} | undefined;
|
|
@@ -5202,8 +5202,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5202
5202
|
} | {
|
|
5203
5203
|
type: "json_schema";
|
|
5204
5204
|
strict: boolean;
|
|
5205
|
-
name: string;
|
|
5206
5205
|
schema: Record<string, unknown>;
|
|
5206
|
+
name: string;
|
|
5207
5207
|
} | undefined;
|
|
5208
5208
|
speech?: {
|
|
5209
5209
|
voice: string;
|
|
@@ -5214,39 +5214,40 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5214
5214
|
format: "mp3" | "opus" | "flac" | "wav" | "pcm";
|
|
5215
5215
|
voice: string;
|
|
5216
5216
|
} | undefined;
|
|
5217
|
-
toolChoice?: "
|
|
5217
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
5218
5218
|
type: "function";
|
|
5219
5219
|
name: string;
|
|
5220
5220
|
} | undefined;
|
|
5221
5221
|
authorizedRoutes?: ({
|
|
5222
|
-
deploymentId: string;
|
|
5223
5222
|
provider: string;
|
|
5224
5223
|
modelReference: string;
|
|
5224
|
+
deploymentId: string;
|
|
5225
5225
|
regions: string[];
|
|
5226
5226
|
substitution: "same_model";
|
|
5227
5227
|
customerProviderCredential?: {
|
|
5228
5228
|
environment: "development" | "staging" | "production";
|
|
5229
|
-
credentialHandle: string;
|
|
5230
|
-
credentialRevision: number;
|
|
5231
5229
|
ownerAccountId: string;
|
|
5232
5230
|
connectionId: string;
|
|
5231
|
+
credentialHandle: string;
|
|
5232
|
+
credentialRevision: number;
|
|
5233
5233
|
} | undefined;
|
|
5234
5234
|
} | {
|
|
5235
|
-
deploymentId: string;
|
|
5236
5235
|
provider: string;
|
|
5237
5236
|
modelReference: string;
|
|
5237
|
+
deploymentId: string;
|
|
5238
5238
|
regions: string[];
|
|
5239
5239
|
substitution: "cross_model";
|
|
5240
5240
|
authorizedByPolicy: true;
|
|
5241
5241
|
customerProviderCredential?: {
|
|
5242
5242
|
environment: "development" | "staging" | "production";
|
|
5243
|
-
credentialHandle: string;
|
|
5244
|
-
credentialRevision: number;
|
|
5245
5243
|
ownerAccountId: string;
|
|
5246
5244
|
connectionId: string;
|
|
5245
|
+
credentialHandle: string;
|
|
5246
|
+
credentialRevision: number;
|
|
5247
5247
|
} | undefined;
|
|
5248
5248
|
})[] | undefined;
|
|
5249
5249
|
}>, {
|
|
5250
|
+
schemaVersion: 3;
|
|
5250
5251
|
tools: {
|
|
5251
5252
|
type: "function";
|
|
5252
5253
|
name: string;
|
|
@@ -5254,57 +5255,67 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5254
5255
|
strict?: boolean | undefined;
|
|
5255
5256
|
description?: string | undefined;
|
|
5256
5257
|
}[];
|
|
5257
|
-
|
|
5258
|
+
attribution: {
|
|
5259
|
+
requestId: string;
|
|
5260
|
+
principal: {
|
|
5261
|
+
environment: "development" | "staging" | "production";
|
|
5262
|
+
applicationId: string;
|
|
5263
|
+
credentialId: string;
|
|
5264
|
+
billing: {
|
|
5265
|
+
accountId: string & z.BRAND<"OxyAccountId">;
|
|
5266
|
+
};
|
|
5267
|
+
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
5268
|
+
};
|
|
5269
|
+
userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
|
|
5270
|
+
generationId?: string | undefined;
|
|
5271
|
+
};
|
|
5272
|
+
client: {
|
|
5273
|
+
receivedAt: string;
|
|
5274
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
5275
|
+
endpoint: string;
|
|
5276
|
+
clientRequestId?: string | undefined;
|
|
5277
|
+
labels?: Record<string, string> | undefined;
|
|
5278
|
+
};
|
|
5258
5279
|
scopedExecution: {
|
|
5259
|
-
permitId: string;
|
|
5260
|
-
idempotencyKey: string;
|
|
5261
|
-
fixtureSha256: string;
|
|
5262
5280
|
expiresAt: string;
|
|
5281
|
+
requestId: string;
|
|
5282
|
+
keyId: string;
|
|
5283
|
+
idempotencyKey: string;
|
|
5263
5284
|
principal: {
|
|
5285
|
+
environment: "development" | "staging" | "production";
|
|
5264
5286
|
accountId: string;
|
|
5265
5287
|
applicationId: string;
|
|
5266
5288
|
credentialId: string;
|
|
5267
|
-
environment: "development" | "staging" | "production";
|
|
5268
5289
|
};
|
|
5290
|
+
provider: string;
|
|
5291
|
+
priceVersionId: string;
|
|
5292
|
+
modelReference: string;
|
|
5293
|
+
permitId: string;
|
|
5294
|
+
fixtureSha256: string;
|
|
5269
5295
|
policy: {
|
|
5270
5296
|
routingPolicyId: string;
|
|
5271
5297
|
policyVersion: number;
|
|
5272
5298
|
};
|
|
5273
5299
|
deploymentId: string;
|
|
5274
|
-
provider: string;
|
|
5275
|
-
keyId: string;
|
|
5276
|
-
modelReference: string;
|
|
5277
5300
|
upstreamModelId: string;
|
|
5278
|
-
priceVersionId: string;
|
|
5279
5301
|
providerRateCardVersionId: string;
|
|
5280
5302
|
providerSourceVersion: string;
|
|
5281
5303
|
maxCostUsd: string & z.BRAND<"ExactDecimal">;
|
|
5282
|
-
requestId: string;
|
|
5283
5304
|
snapshotId: string;
|
|
5284
5305
|
catalogueEvidenceHash: string;
|
|
5285
5306
|
};
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
credentialId: string;
|
|
5290
|
-
environment: "development" | "staging" | "production";
|
|
5291
|
-
billing: {
|
|
5292
|
-
accountId: string & z.BRAND<"OxyAccountId">;
|
|
5293
|
-
};
|
|
5294
|
-
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
5295
|
-
};
|
|
5296
|
-
requestId: string;
|
|
5297
|
-
userId?: (string & z.BRAND<"DelegatedUserId">) | undefined;
|
|
5298
|
-
generationId?: string | undefined;
|
|
5307
|
+
routingPolicy: {
|
|
5308
|
+
routingPolicyId: string;
|
|
5309
|
+
policyVersion: number;
|
|
5299
5310
|
};
|
|
5300
5311
|
target: {
|
|
5301
|
-
modelReference: string;
|
|
5302
5312
|
kind: "model";
|
|
5313
|
+
modelReference: string;
|
|
5303
5314
|
} | {
|
|
5304
5315
|
kind: "routing_profile_id";
|
|
5305
5316
|
routingProfileId: string;
|
|
5306
5317
|
};
|
|
5307
|
-
modality: "
|
|
5318
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
5308
5319
|
input: {
|
|
5309
5320
|
decisions: {
|
|
5310
5321
|
state: string;
|
|
@@ -5333,51 +5344,51 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5333
5344
|
} | {
|
|
5334
5345
|
format: "messages";
|
|
5335
5346
|
messages: {
|
|
5336
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
5337
5347
|
content: ({
|
|
5338
5348
|
type: "text";
|
|
5339
5349
|
text: string;
|
|
5340
5350
|
} | {
|
|
5341
5351
|
type: "image";
|
|
5342
5352
|
source: {
|
|
5343
|
-
url: string;
|
|
5344
5353
|
kind: "url";
|
|
5354
|
+
url: string;
|
|
5345
5355
|
} | {
|
|
5346
5356
|
kind: "inline";
|
|
5347
|
-
mediaType: string;
|
|
5348
5357
|
data: string;
|
|
5358
|
+
mediaType: string;
|
|
5349
5359
|
};
|
|
5350
5360
|
detail?: "low" | "high" | "auto" | undefined;
|
|
5351
5361
|
} | {
|
|
5352
5362
|
type: "audio";
|
|
5353
5363
|
source: {
|
|
5354
|
-
url: string;
|
|
5355
5364
|
kind: "url";
|
|
5365
|
+
url: string;
|
|
5356
5366
|
} | {
|
|
5357
5367
|
kind: "inline";
|
|
5358
|
-
mediaType: string;
|
|
5359
5368
|
data: string;
|
|
5369
|
+
mediaType: string;
|
|
5360
5370
|
};
|
|
5361
5371
|
} | {
|
|
5362
5372
|
type: "file";
|
|
5363
5373
|
source: {
|
|
5364
|
-
url: string;
|
|
5365
5374
|
kind: "url";
|
|
5375
|
+
url: string;
|
|
5366
5376
|
} | {
|
|
5367
5377
|
kind: "inline";
|
|
5368
|
-
mediaType: string;
|
|
5369
5378
|
data: string;
|
|
5379
|
+
mediaType: string;
|
|
5370
5380
|
};
|
|
5371
5381
|
filename?: string | undefined;
|
|
5372
5382
|
} | {
|
|
5373
5383
|
type: "refusal";
|
|
5374
5384
|
text: string;
|
|
5375
5385
|
})[];
|
|
5386
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
5376
5387
|
name?: string | undefined;
|
|
5377
5388
|
toolCallId?: string | undefined;
|
|
5378
5389
|
toolCalls?: {
|
|
5379
|
-
id: string;
|
|
5380
5390
|
name: string;
|
|
5391
|
+
id: string;
|
|
5381
5392
|
arguments: string;
|
|
5382
5393
|
}[] | undefined;
|
|
5383
5394
|
}[];
|
|
@@ -5390,25 +5401,14 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5390
5401
|
};
|
|
5391
5402
|
stream: boolean;
|
|
5392
5403
|
sampling: {
|
|
5404
|
+
seed?: number | undefined;
|
|
5393
5405
|
temperature?: number | undefined;
|
|
5394
5406
|
topP?: number | undefined;
|
|
5395
5407
|
topK?: number | undefined;
|
|
5396
5408
|
frequencyPenalty?: number | undefined;
|
|
5397
5409
|
presencePenalty?: number | undefined;
|
|
5398
|
-
seed?: number | undefined;
|
|
5399
5410
|
stopSequences?: string[] | undefined;
|
|
5400
5411
|
};
|
|
5401
|
-
client: {
|
|
5402
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
5403
|
-
endpoint: string;
|
|
5404
|
-
receivedAt: string;
|
|
5405
|
-
clientRequestId?: string | undefined;
|
|
5406
|
-
labels?: Record<string, string> | undefined;
|
|
5407
|
-
};
|
|
5408
|
-
routingPolicy: {
|
|
5409
|
-
routingPolicyId: string;
|
|
5410
|
-
policyVersion: number;
|
|
5411
|
-
};
|
|
5412
5412
|
idempotencyKey?: string | undefined;
|
|
5413
5413
|
reasoning?: {
|
|
5414
5414
|
effort: "low" | "medium" | "high";
|
|
@@ -5421,8 +5421,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5421
5421
|
} | {
|
|
5422
5422
|
type: "json_schema";
|
|
5423
5423
|
strict: boolean;
|
|
5424
|
-
name: string;
|
|
5425
5424
|
schema: Record<string, unknown>;
|
|
5425
|
+
name: string;
|
|
5426
5426
|
} | undefined;
|
|
5427
5427
|
speech?: {
|
|
5428
5428
|
voice: string;
|
|
@@ -5433,90 +5433,101 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5433
5433
|
format: "mp3" | "opus" | "flac" | "wav" | "pcm";
|
|
5434
5434
|
voice: string;
|
|
5435
5435
|
} | undefined;
|
|
5436
|
-
toolChoice?: "
|
|
5436
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
5437
5437
|
type: "function";
|
|
5438
5438
|
name: string;
|
|
5439
5439
|
} | undefined;
|
|
5440
5440
|
authorizedRoutes?: ({
|
|
5441
|
-
deploymentId: string;
|
|
5442
5441
|
provider: string;
|
|
5443
5442
|
modelReference: string;
|
|
5443
|
+
deploymentId: string;
|
|
5444
5444
|
regions: string[];
|
|
5445
5445
|
substitution: "same_model";
|
|
5446
5446
|
customerProviderCredential?: {
|
|
5447
5447
|
environment: "development" | "staging" | "production";
|
|
5448
|
-
credentialHandle: string;
|
|
5449
|
-
credentialRevision: number;
|
|
5450
5448
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
5451
5449
|
connectionId: string;
|
|
5450
|
+
credentialHandle: string;
|
|
5451
|
+
credentialRevision: number;
|
|
5452
5452
|
} | undefined;
|
|
5453
5453
|
} | {
|
|
5454
|
-
deploymentId: string;
|
|
5455
5454
|
provider: string;
|
|
5456
5455
|
modelReference: string;
|
|
5456
|
+
deploymentId: string;
|
|
5457
5457
|
regions: string[];
|
|
5458
5458
|
substitution: "cross_model";
|
|
5459
5459
|
authorizedByPolicy: true;
|
|
5460
5460
|
customerProviderCredential?: {
|
|
5461
5461
|
environment: "development" | "staging" | "production";
|
|
5462
|
-
credentialHandle: string;
|
|
5463
|
-
credentialRevision: number;
|
|
5464
5462
|
ownerAccountId: string & z.BRAND<"OxyAccountId">;
|
|
5465
5463
|
connectionId: string;
|
|
5464
|
+
credentialHandle: string;
|
|
5465
|
+
credentialRevision: number;
|
|
5466
5466
|
} | undefined;
|
|
5467
5467
|
})[] | undefined;
|
|
5468
5468
|
}, {
|
|
5469
5469
|
schemaVersion: 3;
|
|
5470
|
+
attribution: {
|
|
5471
|
+
requestId: string;
|
|
5472
|
+
principal: {
|
|
5473
|
+
environment: "development" | "staging" | "production";
|
|
5474
|
+
applicationId: string;
|
|
5475
|
+
credentialId: string;
|
|
5476
|
+
billing: {
|
|
5477
|
+
accountId: string;
|
|
5478
|
+
};
|
|
5479
|
+
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
5480
|
+
};
|
|
5481
|
+
userId?: string | undefined;
|
|
5482
|
+
generationId?: string | undefined;
|
|
5483
|
+
};
|
|
5484
|
+
client: {
|
|
5485
|
+
receivedAt: string;
|
|
5486
|
+
apiFormat: "embeddings" | "responses" | "chat_completions" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
5487
|
+
endpoint: string;
|
|
5488
|
+
clientRequestId?: string | undefined;
|
|
5489
|
+
labels?: Record<string, string> | undefined;
|
|
5490
|
+
};
|
|
5470
5491
|
scopedExecution: {
|
|
5471
|
-
permitId: string;
|
|
5472
|
-
idempotencyKey: string;
|
|
5473
|
-
fixtureSha256: string;
|
|
5474
5492
|
expiresAt: string;
|
|
5493
|
+
requestId: string;
|
|
5494
|
+
keyId: string;
|
|
5495
|
+
idempotencyKey: string;
|
|
5475
5496
|
principal: {
|
|
5497
|
+
environment: "development" | "staging" | "production";
|
|
5476
5498
|
accountId: string;
|
|
5477
5499
|
applicationId: string;
|
|
5478
5500
|
credentialId: string;
|
|
5479
|
-
environment: "development" | "staging" | "production";
|
|
5480
5501
|
};
|
|
5502
|
+
provider: string;
|
|
5503
|
+
priceVersionId: string;
|
|
5504
|
+
modelReference: string;
|
|
5505
|
+
permitId: string;
|
|
5506
|
+
fixtureSha256: string;
|
|
5481
5507
|
policy: {
|
|
5482
5508
|
routingPolicyId: string;
|
|
5483
5509
|
policyVersion: number;
|
|
5484
5510
|
};
|
|
5485
5511
|
deploymentId: string;
|
|
5486
|
-
provider: string;
|
|
5487
|
-
keyId: string;
|
|
5488
|
-
modelReference: string;
|
|
5489
5512
|
upstreamModelId: string;
|
|
5490
|
-
priceVersionId: string;
|
|
5491
5513
|
providerRateCardVersionId: string;
|
|
5492
5514
|
providerSourceVersion: string;
|
|
5493
5515
|
maxCostUsd: string;
|
|
5494
|
-
requestId: string;
|
|
5495
5516
|
snapshotId: string;
|
|
5496
5517
|
catalogueEvidenceHash: string;
|
|
5497
5518
|
};
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
credentialId: string;
|
|
5502
|
-
environment: "development" | "staging" | "production";
|
|
5503
|
-
billing: {
|
|
5504
|
-
accountId: string;
|
|
5505
|
-
};
|
|
5506
|
-
inferenceScopes: ("inference:invoke" | "inference:models:read" | "inference:usage:read" | "inference:routing:read" | "inference:routing:write" | "inference:providers:read" | "inference:providers:write")[];
|
|
5507
|
-
};
|
|
5508
|
-
requestId: string;
|
|
5509
|
-
userId?: string | undefined;
|
|
5510
|
-
generationId?: string | undefined;
|
|
5519
|
+
routingPolicy: {
|
|
5520
|
+
routingPolicyId: string;
|
|
5521
|
+
policyVersion: number;
|
|
5511
5522
|
};
|
|
5512
5523
|
target: {
|
|
5513
|
-
modelReference: string;
|
|
5514
5524
|
kind: "model";
|
|
5525
|
+
modelReference: string;
|
|
5515
5526
|
} | {
|
|
5516
5527
|
kind: "routing_profile_id";
|
|
5517
5528
|
routingProfileId: string;
|
|
5518
5529
|
};
|
|
5519
|
-
modality: "
|
|
5530
|
+
modality: "image" | "embedding" | "text" | "audio" | "video";
|
|
5520
5531
|
input: {
|
|
5521
5532
|
decisions: {
|
|
5522
5533
|
state: string;
|
|
@@ -5545,51 +5556,51 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5545
5556
|
} | {
|
|
5546
5557
|
format: "messages";
|
|
5547
5558
|
messages: {
|
|
5548
|
-
role: "system" | "developer" | "user" | "assistant" | "tool";
|
|
5549
5559
|
content: ({
|
|
5550
5560
|
type: "text";
|
|
5551
5561
|
text: string;
|
|
5552
5562
|
} | {
|
|
5553
5563
|
type: "image";
|
|
5554
5564
|
source: {
|
|
5555
|
-
url: string;
|
|
5556
5565
|
kind: "url";
|
|
5566
|
+
url: string;
|
|
5557
5567
|
} | {
|
|
5558
5568
|
kind: "inline";
|
|
5559
|
-
mediaType: string;
|
|
5560
5569
|
data: string;
|
|
5570
|
+
mediaType: string;
|
|
5561
5571
|
};
|
|
5562
5572
|
detail?: "low" | "high" | "auto" | undefined;
|
|
5563
5573
|
} | {
|
|
5564
5574
|
type: "audio";
|
|
5565
5575
|
source: {
|
|
5566
|
-
url: string;
|
|
5567
5576
|
kind: "url";
|
|
5577
|
+
url: string;
|
|
5568
5578
|
} | {
|
|
5569
5579
|
kind: "inline";
|
|
5570
|
-
mediaType: string;
|
|
5571
5580
|
data: string;
|
|
5581
|
+
mediaType: string;
|
|
5572
5582
|
};
|
|
5573
5583
|
} | {
|
|
5574
5584
|
type: "file";
|
|
5575
5585
|
source: {
|
|
5576
|
-
url: string;
|
|
5577
5586
|
kind: "url";
|
|
5587
|
+
url: string;
|
|
5578
5588
|
} | {
|
|
5579
5589
|
kind: "inline";
|
|
5580
|
-
mediaType: string;
|
|
5581
5590
|
data: string;
|
|
5591
|
+
mediaType: string;
|
|
5582
5592
|
};
|
|
5583
5593
|
filename?: string | undefined;
|
|
5584
5594
|
} | {
|
|
5585
5595
|
type: "refusal";
|
|
5586
5596
|
text: string;
|
|
5587
5597
|
})[];
|
|
5598
|
+
role: "system" | "tool" | "user" | "developer" | "assistant";
|
|
5588
5599
|
name?: string | undefined;
|
|
5589
5600
|
toolCallId?: string | undefined;
|
|
5590
5601
|
toolCalls?: {
|
|
5591
|
-
id: string;
|
|
5592
5602
|
name: string;
|
|
5603
|
+
id: string;
|
|
5593
5604
|
arguments: string;
|
|
5594
5605
|
}[] | undefined;
|
|
5595
5606
|
}[];
|
|
@@ -5602,26 +5613,14 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5602
5613
|
};
|
|
5603
5614
|
stream: boolean;
|
|
5604
5615
|
sampling: {
|
|
5616
|
+
seed?: number | undefined;
|
|
5605
5617
|
temperature?: number | undefined;
|
|
5606
5618
|
topP?: number | undefined;
|
|
5607
5619
|
topK?: number | undefined;
|
|
5608
5620
|
frequencyPenalty?: number | undefined;
|
|
5609
5621
|
presencePenalty?: number | undefined;
|
|
5610
|
-
seed?: number | undefined;
|
|
5611
5622
|
stopSequences?: string[] | undefined;
|
|
5612
5623
|
};
|
|
5613
|
-
client: {
|
|
5614
|
-
apiFormat: "responses" | "chat_completions" | "embeddings" | "decisions" | "images_generations" | "audio_transcriptions" | "audio_speech" | "rerank" | "batches";
|
|
5615
|
-
endpoint: string;
|
|
5616
|
-
receivedAt: string;
|
|
5617
|
-
clientRequestId?: string | undefined;
|
|
5618
|
-
labels?: Record<string, string> | undefined;
|
|
5619
|
-
};
|
|
5620
|
-
routingPolicy: {
|
|
5621
|
-
routingPolicyId: string;
|
|
5622
|
-
policyVersion: number;
|
|
5623
|
-
};
|
|
5624
|
-
idempotencyKey?: string | undefined;
|
|
5625
5624
|
tools?: {
|
|
5626
5625
|
type: "function";
|
|
5627
5626
|
name: string;
|
|
@@ -5629,6 +5628,7 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5629
5628
|
strict?: boolean | undefined;
|
|
5630
5629
|
description?: string | undefined;
|
|
5631
5630
|
}[] | undefined;
|
|
5631
|
+
idempotencyKey?: string | undefined;
|
|
5632
5632
|
reasoning?: {
|
|
5633
5633
|
effort: "low" | "medium" | "high";
|
|
5634
5634
|
} | undefined;
|
|
@@ -5640,8 +5640,8 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5640
5640
|
} | {
|
|
5641
5641
|
type: "json_schema";
|
|
5642
5642
|
strict: boolean;
|
|
5643
|
-
name: string;
|
|
5644
5643
|
schema: Record<string, unknown>;
|
|
5644
|
+
name: string;
|
|
5645
5645
|
} | undefined;
|
|
5646
5646
|
speech?: {
|
|
5647
5647
|
voice: string;
|
|
@@ -5652,36 +5652,36 @@ export declare const scopedInferenceRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5652
5652
|
format: "mp3" | "opus" | "flac" | "wav" | "pcm";
|
|
5653
5653
|
voice: string;
|
|
5654
5654
|
} | undefined;
|
|
5655
|
-
toolChoice?: "
|
|
5655
|
+
toolChoice?: "none" | "required" | "auto" | {
|
|
5656
5656
|
type: "function";
|
|
5657
5657
|
name: string;
|
|
5658
5658
|
} | undefined;
|
|
5659
5659
|
authorizedRoutes?: ({
|
|
5660
|
-
deploymentId: string;
|
|
5661
5660
|
provider: string;
|
|
5662
5661
|
modelReference: string;
|
|
5662
|
+
deploymentId: string;
|
|
5663
5663
|
regions: string[];
|
|
5664
5664
|
substitution: "same_model";
|
|
5665
5665
|
customerProviderCredential?: {
|
|
5666
5666
|
environment: "development" | "staging" | "production";
|
|
5667
|
-
credentialHandle: string;
|
|
5668
|
-
credentialRevision: number;
|
|
5669
5667
|
ownerAccountId: string;
|
|
5670
5668
|
connectionId: string;
|
|
5669
|
+
credentialHandle: string;
|
|
5670
|
+
credentialRevision: number;
|
|
5671
5671
|
} | undefined;
|
|
5672
5672
|
} | {
|
|
5673
|
-
deploymentId: string;
|
|
5674
5673
|
provider: string;
|
|
5675
5674
|
modelReference: string;
|
|
5675
|
+
deploymentId: string;
|
|
5676
5676
|
regions: string[];
|
|
5677
5677
|
substitution: "cross_model";
|
|
5678
5678
|
authorizedByPolicy: true;
|
|
5679
5679
|
customerProviderCredential?: {
|
|
5680
5680
|
environment: "development" | "staging" | "production";
|
|
5681
|
-
credentialHandle: string;
|
|
5682
|
-
credentialRevision: number;
|
|
5683
5681
|
ownerAccountId: string;
|
|
5684
5682
|
connectionId: string;
|
|
5683
|
+
credentialHandle: string;
|
|
5684
|
+
credentialRevision: number;
|
|
5685
5685
|
} | undefined;
|
|
5686
5686
|
})[] | undefined;
|
|
5687
5687
|
}>;
|