@oxy.so/contracts 4.7.0 → 4.8.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/index.js +9 -1
- package/dist/cjs/inference/catalogue.js +5 -2
- package/dist/cjs/inference/request.js +33 -1
- package/dist/cjs/inference/scopedExecution.js +87 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/inference/catalogue.js +3 -0
- package/dist/esm/inference/request.js +32 -0
- package/dist/esm/inference/scopedExecution.js +83 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/inference/aliaModelRelease.d.ts +86 -86
- package/dist/types/inference/catalogue.d.ts +326 -136
- package/dist/types/inference/modelDocumentation.d.ts +234 -234
- package/dist/types/inference/realtime.d.ts +798 -798
- package/dist/types/inference/request.d.ts +2697 -424
- package/dist/types/inference/routingPolicy.d.ts +16 -16
- package/dist/types/inference/scopedExecution.d.ts +202 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -112,3 +112,7 @@ export * from './email/messages';
|
|
|
112
112
|
export * from './stickers';
|
|
113
113
|
export { decisionEffortSchema, decisionQuestionSchema, decisionInputSchema, decisionRequestSchema, decisionAnswerSchema, decisionResultSchema, decisionSuccessSchema, decisionFailureSchema, decisionInputBudget, decisionFitsGateway, decisionAnswersMatch, } from './inference/decisions';
|
|
114
114
|
export type { DecisionQuestion, DecisionInput, DecisionRequest, DecisionAnswer, DecisionFailure, DecisionResult, DecisionSuccess, } from './inference/decisions';
|
|
115
|
+
export { SCOPED_EXECUTION_CONTRACT_VERSION, SCOPED_REQUEST_ENVELOPE_VERSION, scopedExecutionAudienceSchema, scopedExecutionSchema, canonicalScopedExecutionJson } from './inference/scopedExecution';
|
|
116
|
+
export type { ScopedExecutionAudience, ScopedExecution } from './inference/scopedExecution';
|
|
117
|
+
export { scopedInferenceRequestSchema } from './inference/request';
|
|
118
|
+
export type { ScopedInferenceRequest } from './inference/request';
|
|
@@ -139,17 +139,17 @@ export declare const aliaReleaseSignatureSchema: z.ZodObject<{
|
|
|
139
139
|
signature: z.ZodString;
|
|
140
140
|
signedAt: z.ZodString;
|
|
141
141
|
}, "strict", z.ZodTypeAny, {
|
|
142
|
-
signature: string;
|
|
143
|
-
signedAt: string;
|
|
144
142
|
keyId: string;
|
|
145
143
|
algorithm: "ed25519";
|
|
146
144
|
canonicalization: "jcs";
|
|
147
|
-
}, {
|
|
148
145
|
signature: string;
|
|
149
146
|
signedAt: string;
|
|
147
|
+
}, {
|
|
150
148
|
keyId: string;
|
|
151
149
|
algorithm: "ed25519";
|
|
152
150
|
canonicalization: "jcs";
|
|
151
|
+
signature: string;
|
|
152
|
+
signedAt: string;
|
|
153
153
|
}>;
|
|
154
154
|
/**
|
|
155
155
|
* A signed release of an `alia/*` model revision.
|
|
@@ -188,15 +188,15 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
188
188
|
evaluatedAt: z.ZodOptional<z.ZodString>;
|
|
189
189
|
reportUrl: z.ZodOptional<z.ZodString>;
|
|
190
190
|
}, "strict", z.ZodTypeAny, {
|
|
191
|
-
score: string;
|
|
192
191
|
suite: string;
|
|
193
192
|
metric: string;
|
|
193
|
+
score: string;
|
|
194
194
|
evaluatedAt?: string | undefined;
|
|
195
195
|
reportUrl?: string | undefined;
|
|
196
196
|
}, {
|
|
197
|
-
score: string;
|
|
198
197
|
suite: string;
|
|
199
198
|
metric: string;
|
|
199
|
+
score: string;
|
|
200
200
|
evaluatedAt?: string | undefined;
|
|
201
201
|
reportUrl?: string | undefined;
|
|
202
202
|
}>, "many">>;
|
|
@@ -218,15 +218,15 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
218
218
|
}>>;
|
|
219
219
|
}, "strip", z.ZodTypeAny, {
|
|
220
220
|
schemaVersion: 1;
|
|
221
|
-
revision: string;
|
|
222
221
|
modelId: string;
|
|
223
222
|
revisionId: string;
|
|
223
|
+
revision: string;
|
|
224
224
|
reference: string;
|
|
225
225
|
releasedAt: string;
|
|
226
226
|
evaluations: {
|
|
227
|
-
score: string;
|
|
228
227
|
suite: string;
|
|
229
228
|
metric: string;
|
|
229
|
+
score: string;
|
|
230
230
|
evaluatedAt?: string | undefined;
|
|
231
231
|
reportUrl?: string | undefined;
|
|
232
232
|
}[];
|
|
@@ -241,18 +241,18 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
241
241
|
} | undefined;
|
|
242
242
|
}, {
|
|
243
243
|
schemaVersion: 1;
|
|
244
|
-
revision: string;
|
|
245
244
|
modelId: string;
|
|
246
245
|
revisionId: string;
|
|
246
|
+
revision: string;
|
|
247
247
|
reference: string;
|
|
248
248
|
releasedAt: string;
|
|
249
249
|
retiredAt?: string | undefined;
|
|
250
250
|
artifactDigest?: string | undefined;
|
|
251
251
|
modelCardUrl?: string | undefined;
|
|
252
252
|
evaluations?: {
|
|
253
|
-
score: string;
|
|
254
253
|
suite: string;
|
|
255
254
|
metric: string;
|
|
255
|
+
score: string;
|
|
256
256
|
evaluatedAt?: string | undefined;
|
|
257
257
|
reportUrl?: string | undefined;
|
|
258
258
|
}[] | undefined;
|
|
@@ -264,15 +264,15 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
264
264
|
} | undefined;
|
|
265
265
|
}>, {
|
|
266
266
|
schemaVersion: 1;
|
|
267
|
-
revision: string;
|
|
268
267
|
modelId: string;
|
|
269
268
|
revisionId: string;
|
|
269
|
+
revision: string;
|
|
270
270
|
reference: string;
|
|
271
271
|
releasedAt: string;
|
|
272
272
|
evaluations: {
|
|
273
|
-
score: string;
|
|
274
273
|
suite: string;
|
|
275
274
|
metric: string;
|
|
275
|
+
score: string;
|
|
276
276
|
evaluatedAt?: string | undefined;
|
|
277
277
|
reportUrl?: string | undefined;
|
|
278
278
|
}[];
|
|
@@ -287,18 +287,18 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
287
287
|
} | undefined;
|
|
288
288
|
}, {
|
|
289
289
|
schemaVersion: 1;
|
|
290
|
-
revision: string;
|
|
291
290
|
modelId: string;
|
|
292
291
|
revisionId: string;
|
|
292
|
+
revision: string;
|
|
293
293
|
reference: string;
|
|
294
294
|
releasedAt: string;
|
|
295
295
|
retiredAt?: string | undefined;
|
|
296
296
|
artifactDigest?: string | undefined;
|
|
297
297
|
modelCardUrl?: string | undefined;
|
|
298
298
|
evaluations?: {
|
|
299
|
-
score: string;
|
|
300
299
|
suite: string;
|
|
301
300
|
metric: string;
|
|
301
|
+
score: string;
|
|
302
302
|
evaluatedAt?: string | undefined;
|
|
303
303
|
reportUrl?: string | undefined;
|
|
304
304
|
}[] | undefined;
|
|
@@ -331,15 +331,15 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
331
331
|
requiresAttribution: z.ZodBoolean;
|
|
332
332
|
acceptableUsePolicyUrl: z.ZodOptional<z.ZodString>;
|
|
333
333
|
}, "strict", z.ZodTypeAny, {
|
|
334
|
-
displayName: string;
|
|
335
334
|
licenseId: string;
|
|
335
|
+
displayName: string;
|
|
336
336
|
commercialUseAllowed: boolean;
|
|
337
337
|
requiresAttribution: boolean;
|
|
338
338
|
url?: string | undefined;
|
|
339
339
|
acceptableUsePolicyUrl?: string | undefined;
|
|
340
340
|
}, {
|
|
341
|
-
displayName: string;
|
|
342
341
|
licenseId: string;
|
|
342
|
+
displayName: string;
|
|
343
343
|
commercialUseAllowed: boolean;
|
|
344
344
|
requiresAttribution: boolean;
|
|
345
345
|
url?: string | undefined;
|
|
@@ -375,32 +375,44 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
375
375
|
signature: z.ZodString;
|
|
376
376
|
signedAt: z.ZodString;
|
|
377
377
|
}, "strict", z.ZodTypeAny, {
|
|
378
|
-
signature: string;
|
|
379
|
-
signedAt: string;
|
|
380
378
|
keyId: string;
|
|
381
379
|
algorithm: "ed25519";
|
|
382
380
|
canonicalization: "jcs";
|
|
383
|
-
}, {
|
|
384
381
|
signature: string;
|
|
385
382
|
signedAt: string;
|
|
383
|
+
}, {
|
|
386
384
|
keyId: string;
|
|
387
385
|
algorithm: "ed25519";
|
|
388
386
|
canonicalization: "jcs";
|
|
387
|
+
signature: string;
|
|
388
|
+
signedAt: string;
|
|
389
389
|
}>, "many">;
|
|
390
390
|
}, "strict", z.ZodTypeAny, {
|
|
391
391
|
schemaVersion: 1;
|
|
392
|
-
|
|
392
|
+
license: {
|
|
393
|
+
licenseId: string;
|
|
394
|
+
displayName: string;
|
|
395
|
+
commercialUseAllowed: boolean;
|
|
396
|
+
requiresAttribution: boolean;
|
|
397
|
+
url?: string | undefined;
|
|
398
|
+
acceptableUsePolicyUrl?: string | undefined;
|
|
399
|
+
};
|
|
400
|
+
provenance: {
|
|
401
|
+
releaseKind: "first_party_original" | "first_party_derived" | "open_weight" | "third_party_hosted";
|
|
402
|
+
baseModelId?: string | undefined;
|
|
403
|
+
trainingOrganization?: string | undefined;
|
|
404
|
+
};
|
|
393
405
|
revision: {
|
|
394
406
|
schemaVersion: 1;
|
|
395
|
-
revision: string;
|
|
396
407
|
modelId: string;
|
|
397
408
|
revisionId: string;
|
|
409
|
+
revision: string;
|
|
398
410
|
reference: string;
|
|
399
411
|
releasedAt: string;
|
|
400
412
|
evaluations: {
|
|
401
|
-
score: string;
|
|
402
413
|
suite: string;
|
|
403
414
|
metric: string;
|
|
415
|
+
score: string;
|
|
404
416
|
evaluatedAt?: string | undefined;
|
|
405
417
|
reportUrl?: string | undefined;
|
|
406
418
|
}[];
|
|
@@ -414,16 +426,26 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
414
426
|
safetyCardUrl?: string | undefined;
|
|
415
427
|
} | undefined;
|
|
416
428
|
};
|
|
429
|
+
releaseId: string;
|
|
430
|
+
issuedAt: string;
|
|
431
|
+
artifacts: {
|
|
432
|
+
path: string;
|
|
433
|
+
digest: string;
|
|
434
|
+
sizeBytes: number;
|
|
435
|
+
mediaType?: string | undefined;
|
|
436
|
+
}[];
|
|
417
437
|
signatures: {
|
|
418
|
-
signature: string;
|
|
419
|
-
signedAt: string;
|
|
420
438
|
keyId: string;
|
|
421
439
|
algorithm: "ed25519";
|
|
422
440
|
canonicalization: "jcs";
|
|
441
|
+
signature: string;
|
|
442
|
+
signedAt: string;
|
|
423
443
|
}[];
|
|
444
|
+
}, {
|
|
445
|
+
schemaVersion: 1;
|
|
424
446
|
license: {
|
|
425
|
-
displayName: string;
|
|
426
447
|
licenseId: string;
|
|
448
|
+
displayName: string;
|
|
427
449
|
commercialUseAllowed: boolean;
|
|
428
450
|
requiresAttribution: boolean;
|
|
429
451
|
url?: string | undefined;
|
|
@@ -434,30 +456,20 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
434
456
|
baseModelId?: string | undefined;
|
|
435
457
|
trainingOrganization?: string | undefined;
|
|
436
458
|
};
|
|
437
|
-
releaseId: string;
|
|
438
|
-
artifacts: {
|
|
439
|
-
path: string;
|
|
440
|
-
digest: string;
|
|
441
|
-
sizeBytes: number;
|
|
442
|
-
mediaType?: string | undefined;
|
|
443
|
-
}[];
|
|
444
|
-
}, {
|
|
445
|
-
schemaVersion: 1;
|
|
446
|
-
issuedAt: string;
|
|
447
459
|
revision: {
|
|
448
460
|
schemaVersion: 1;
|
|
449
|
-
revision: string;
|
|
450
461
|
modelId: string;
|
|
451
462
|
revisionId: string;
|
|
463
|
+
revision: string;
|
|
452
464
|
reference: string;
|
|
453
465
|
releasedAt: string;
|
|
454
466
|
retiredAt?: string | undefined;
|
|
455
467
|
artifactDigest?: string | undefined;
|
|
456
468
|
modelCardUrl?: string | undefined;
|
|
457
469
|
evaluations?: {
|
|
458
|
-
score: string;
|
|
459
470
|
suite: string;
|
|
460
471
|
metric: string;
|
|
472
|
+
score: string;
|
|
461
473
|
evaluatedAt?: string | undefined;
|
|
462
474
|
reportUrl?: string | undefined;
|
|
463
475
|
}[] | undefined;
|
|
@@ -468,16 +480,26 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
468
480
|
knownLimitations?: string[] | undefined;
|
|
469
481
|
} | undefined;
|
|
470
482
|
};
|
|
483
|
+
releaseId: string;
|
|
484
|
+
issuedAt: string;
|
|
485
|
+
artifacts: {
|
|
486
|
+
path: string;
|
|
487
|
+
digest: string;
|
|
488
|
+
sizeBytes: number;
|
|
489
|
+
mediaType?: string | undefined;
|
|
490
|
+
}[];
|
|
471
491
|
signatures: {
|
|
472
|
-
signature: string;
|
|
473
|
-
signedAt: string;
|
|
474
492
|
keyId: string;
|
|
475
493
|
algorithm: "ed25519";
|
|
476
494
|
canonicalization: "jcs";
|
|
495
|
+
signature: string;
|
|
496
|
+
signedAt: string;
|
|
477
497
|
}[];
|
|
498
|
+
}>, {
|
|
499
|
+
schemaVersion: 1;
|
|
478
500
|
license: {
|
|
479
|
-
displayName: string;
|
|
480
501
|
licenseId: string;
|
|
502
|
+
displayName: string;
|
|
481
503
|
commercialUseAllowed: boolean;
|
|
482
504
|
requiresAttribution: boolean;
|
|
483
505
|
url?: string | undefined;
|
|
@@ -488,27 +510,17 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
488
510
|
baseModelId?: string | undefined;
|
|
489
511
|
trainingOrganization?: string | undefined;
|
|
490
512
|
};
|
|
491
|
-
releaseId: string;
|
|
492
|
-
artifacts: {
|
|
493
|
-
path: string;
|
|
494
|
-
digest: string;
|
|
495
|
-
sizeBytes: number;
|
|
496
|
-
mediaType?: string | undefined;
|
|
497
|
-
}[];
|
|
498
|
-
}>, {
|
|
499
|
-
schemaVersion: 1;
|
|
500
|
-
issuedAt: string;
|
|
501
513
|
revision: {
|
|
502
514
|
schemaVersion: 1;
|
|
503
|
-
revision: string;
|
|
504
515
|
modelId: string;
|
|
505
516
|
revisionId: string;
|
|
517
|
+
revision: string;
|
|
506
518
|
reference: string;
|
|
507
519
|
releasedAt: string;
|
|
508
520
|
evaluations: {
|
|
509
|
-
score: string;
|
|
510
521
|
suite: string;
|
|
511
522
|
metric: string;
|
|
523
|
+
score: string;
|
|
512
524
|
evaluatedAt?: string | undefined;
|
|
513
525
|
reportUrl?: string | undefined;
|
|
514
526
|
}[];
|
|
@@ -522,16 +534,26 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
522
534
|
safetyCardUrl?: string | undefined;
|
|
523
535
|
} | undefined;
|
|
524
536
|
};
|
|
537
|
+
releaseId: string;
|
|
538
|
+
issuedAt: string;
|
|
539
|
+
artifacts: {
|
|
540
|
+
path: string;
|
|
541
|
+
digest: string;
|
|
542
|
+
sizeBytes: number;
|
|
543
|
+
mediaType?: string | undefined;
|
|
544
|
+
}[];
|
|
525
545
|
signatures: {
|
|
526
|
-
signature: string;
|
|
527
|
-
signedAt: string;
|
|
528
546
|
keyId: string;
|
|
529
547
|
algorithm: "ed25519";
|
|
530
548
|
canonicalization: "jcs";
|
|
549
|
+
signature: string;
|
|
550
|
+
signedAt: string;
|
|
531
551
|
}[];
|
|
552
|
+
}, {
|
|
553
|
+
schemaVersion: 1;
|
|
532
554
|
license: {
|
|
533
|
-
displayName: string;
|
|
534
555
|
licenseId: string;
|
|
556
|
+
displayName: string;
|
|
535
557
|
commercialUseAllowed: boolean;
|
|
536
558
|
requiresAttribution: boolean;
|
|
537
559
|
url?: string | undefined;
|
|
@@ -542,30 +564,20 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
542
564
|
baseModelId?: string | undefined;
|
|
543
565
|
trainingOrganization?: string | undefined;
|
|
544
566
|
};
|
|
545
|
-
releaseId: string;
|
|
546
|
-
artifacts: {
|
|
547
|
-
path: string;
|
|
548
|
-
digest: string;
|
|
549
|
-
sizeBytes: number;
|
|
550
|
-
mediaType?: string | undefined;
|
|
551
|
-
}[];
|
|
552
|
-
}, {
|
|
553
|
-
schemaVersion: 1;
|
|
554
|
-
issuedAt: string;
|
|
555
567
|
revision: {
|
|
556
568
|
schemaVersion: 1;
|
|
557
|
-
revision: string;
|
|
558
569
|
modelId: string;
|
|
559
570
|
revisionId: string;
|
|
571
|
+
revision: string;
|
|
560
572
|
reference: string;
|
|
561
573
|
releasedAt: string;
|
|
562
574
|
retiredAt?: string | undefined;
|
|
563
575
|
artifactDigest?: string | undefined;
|
|
564
576
|
modelCardUrl?: string | undefined;
|
|
565
577
|
evaluations?: {
|
|
566
|
-
score: string;
|
|
567
578
|
suite: string;
|
|
568
579
|
metric: string;
|
|
580
|
+
score: string;
|
|
569
581
|
evaluatedAt?: string | undefined;
|
|
570
582
|
reportUrl?: string | undefined;
|
|
571
583
|
}[] | undefined;
|
|
@@ -576,33 +588,21 @@ export declare const aliaModelReleaseManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
576
588
|
knownLimitations?: string[] | undefined;
|
|
577
589
|
} | undefined;
|
|
578
590
|
};
|
|
579
|
-
signatures: {
|
|
580
|
-
signature: string;
|
|
581
|
-
signedAt: string;
|
|
582
|
-
keyId: string;
|
|
583
|
-
algorithm: "ed25519";
|
|
584
|
-
canonicalization: "jcs";
|
|
585
|
-
}[];
|
|
586
|
-
license: {
|
|
587
|
-
displayName: string;
|
|
588
|
-
licenseId: string;
|
|
589
|
-
commercialUseAllowed: boolean;
|
|
590
|
-
requiresAttribution: boolean;
|
|
591
|
-
url?: string | undefined;
|
|
592
|
-
acceptableUsePolicyUrl?: string | undefined;
|
|
593
|
-
};
|
|
594
|
-
provenance: {
|
|
595
|
-
releaseKind: "first_party_original" | "first_party_derived" | "open_weight" | "third_party_hosted";
|
|
596
|
-
baseModelId?: string | undefined;
|
|
597
|
-
trainingOrganization?: string | undefined;
|
|
598
|
-
};
|
|
599
591
|
releaseId: string;
|
|
592
|
+
issuedAt: string;
|
|
600
593
|
artifacts: {
|
|
601
594
|
path: string;
|
|
602
595
|
digest: string;
|
|
603
596
|
sizeBytes: number;
|
|
604
597
|
mediaType?: string | undefined;
|
|
605
598
|
}[];
|
|
599
|
+
signatures: {
|
|
600
|
+
keyId: string;
|
|
601
|
+
algorithm: "ed25519";
|
|
602
|
+
canonicalization: "jcs";
|
|
603
|
+
signature: string;
|
|
604
|
+
signedAt: string;
|
|
605
|
+
}[];
|
|
606
606
|
}>;
|
|
607
607
|
export type AliaReleaseArtifact = z.infer<typeof aliaReleaseArtifactSchema>;
|
|
608
608
|
export type AliaReleaseSignature = z.infer<typeof aliaReleaseSignatureSchema>;
|