@oxy.so/contracts 4.6.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.
Files changed (34) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/agency.js +49 -0
  3. package/dist/cjs/capabilityInvocation.js +173 -0
  4. package/dist/cjs/index.js +28 -1
  5. package/dist/cjs/inference/catalogue.js +11 -4
  6. package/dist/cjs/inference/decisions.js +245 -0
  7. package/dist/cjs/inference/request.js +46 -1
  8. package/dist/cjs/inference/scopedExecution.js +87 -0
  9. package/dist/cjs/inference/version.js +1 -1
  10. package/dist/esm/.tsbuildinfo +1 -1
  11. package/dist/esm/agency.js +49 -0
  12. package/dist/esm/capabilityInvocation.js +165 -0
  13. package/dist/esm/index.js +4 -0
  14. package/dist/esm/inference/catalogue.js +9 -2
  15. package/dist/esm/inference/decisions.js +239 -0
  16. package/dist/esm/inference/request.js +45 -0
  17. package/dist/esm/inference/scopedExecution.js +83 -0
  18. package/dist/esm/inference/version.js +1 -1
  19. package/dist/types/.tsbuildinfo +1 -1
  20. package/dist/types/agency.d.ts +6 -6
  21. package/dist/types/capabilityInvocation.d.ts +80 -0
  22. package/dist/types/index.d.ts +8 -0
  23. package/dist/types/inference/aliaModelRelease.d.ts +86 -86
  24. package/dist/types/inference/catalogue.d.ts +335 -142
  25. package/dist/types/inference/decisions.d.ts +1833 -0
  26. package/dist/types/inference/modelDocumentation.d.ts +236 -236
  27. package/dist/types/inference/realtime.d.ts +842 -842
  28. package/dist/types/inference/request.d.ts +3186 -419
  29. package/dist/types/inference/routingPolicy.d.ts +16 -16
  30. package/dist/types/inference/scopedExecution.d.ts +202 -0
  31. package/dist/types/inference/streamEvents.d.ts +8 -8
  32. package/dist/types/inference/usage.d.ts +4 -4
  33. package/dist/types/inference/version.d.ts +1 -1
  34. package/package.json +1 -1
@@ -858,8 +858,8 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
858
858
  }>, "many">>;
859
859
  autonomy: z.ZodEnum<["read_only", "draft", "execute_on_request", "autonomous"]>;
860
860
  }, "strict", z.ZodTypeAny, {
861
- ownerAccountId: string;
862
861
  tool: string;
862
+ ownerAccountId: string;
863
863
  actor: {
864
864
  type: "alia";
865
865
  ownerAccountId: string;
@@ -904,8 +904,8 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
904
904
  stepId?: string | undefined;
905
905
  grantId?: string | undefined;
906
906
  }, {
907
- ownerAccountId: string;
908
907
  tool: string;
908
+ ownerAccountId: string;
909
909
  actor: {
910
910
  type: "alia";
911
911
  ownerAccountId: string;
@@ -950,8 +950,8 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
950
950
  stepId?: string | undefined;
951
951
  grantId?: string | undefined;
952
952
  }>, {
953
- ownerAccountId: string;
954
953
  tool: string;
954
+ ownerAccountId: string;
955
955
  actor: {
956
956
  type: "alia";
957
957
  ownerAccountId: string;
@@ -996,8 +996,8 @@ export declare const capabilityTicketClaimsSchema: z.ZodEffects<z.ZodObject<{
996
996
  stepId?: string | undefined;
997
997
  grantId?: string | undefined;
998
998
  }, {
999
- ownerAccountId: string;
1000
999
  tool: string;
1000
+ ownerAccountId: string;
1001
1001
  actor: {
1002
1002
  type: "alia";
1003
1003
  ownerAccountId: string;
@@ -1180,9 +1180,9 @@ export declare const auditEventSchema: z.ZodObject<{
1180
1180
  capabilityTicketId?: string | undefined;
1181
1181
  }>;
1182
1182
  }, "strict", z.ZodTypeAny, {
1183
+ tool: string;
1183
1184
  appId: string;
1184
1185
  effectiveAccountId: string;
1185
- tool: string;
1186
1186
  resource: {
1187
1187
  appId: string;
1188
1188
  effectiveAccountId: string;
@@ -1227,9 +1227,9 @@ export declare const auditEventSchema: z.ZodObject<{
1227
1227
  capabilityTicketId?: string | undefined;
1228
1228
  };
1229
1229
  }, {
1230
+ tool: string;
1230
1231
  appId: string;
1231
1232
  effectiveAccountId: string;
1232
- tool: string;
1233
1233
  resource: {
1234
1234
  appId: string;
1235
1235
  effectiveAccountId: string;
@@ -0,0 +1,80 @@
1
+ /**
2
+ * How a catalog tool call travels over HTTP, in both directions.
3
+ *
4
+ * A capability catalog names each tool's `invocation` as a method plus a path
5
+ * template (`/email/messages/{emailId}`). Two parties have to agree on what
6
+ * that means: the coordinator that BUILDS the request from the model's
7
+ * arguments (Alia), and the app that MATCHES an incoming request back to the
8
+ * one tool its ticket was signed for (the Inbox capability middleware). Each
9
+ * used to carry its own copy of the rules, and the matcher walked the tool list
10
+ * in array order, so a literal segment (`/messages/unread`) and a parameter
11
+ * (`/messages/{id}`) in the same position resolved to whichever tool happened to
12
+ * be declared first. Both halves live here now, next to the catalog schema that
13
+ * refuses a catalog whose templates could ever match the same request — so a
14
+ * match is unique by construction, not by ordering.
15
+ */
16
+ /** The part of a catalog tool this module needs. */
17
+ export interface CatalogInvocationTemplate {
18
+ readonly method: string;
19
+ readonly path: string;
20
+ }
21
+ interface InvocationCarrier {
22
+ readonly name: string;
23
+ readonly invocation: CatalogInvocationTemplate;
24
+ }
25
+ /** The `{name}` placeholders of a path template, in order. */
26
+ export declare function catalogInvocationPathParameters(path: string): string[];
27
+ /**
28
+ * Whether one concrete request could match BOTH templates.
29
+ *
30
+ * Same method, same number of segments, and at every position either the same
31
+ * literal or a parameter on at least one side. `/messages/{id}` and
32
+ * `/messages/unread` overlap (the request `/messages/unread` fits both);
33
+ * `/messages/{id}` and `/messages/{id}/thread` do not.
34
+ */
35
+ export declare function catalogInvocationsOverlap(left: CatalogInvocationTemplate, right: CatalogInvocationTemplate): boolean;
36
+ /**
37
+ * Whether two templates name the same ADDRESS: same method, and at every
38
+ * position the same literal or a parameter on both sides — parameter names do
39
+ * not matter (`/messages/{id}` and `/messages/{emailId}` are one address;
40
+ * `/messages/{id}` and `/messages/bundled` are not, though they overlap).
41
+ * Used to say which documented REST operation shares its address with a tool.
42
+ */
43
+ export declare function catalogInvocationTemplatesEquivalent(left: CatalogInvocationTemplate, right: CatalogInvocationTemplate): boolean;
44
+ /** Every pair of tools whose invocations overlap — empty for a valid catalog. */
45
+ export declare function findOverlappingCatalogInvocations<T extends InvocationCarrier>(tools: readonly T[]): Array<readonly [T, T]>;
46
+ export interface CatalogInvocationMatch<T> {
47
+ readonly tool: T;
48
+ /** Decoded path parameters, keyed by their template names. */
49
+ readonly params: Record<string, string>;
50
+ }
51
+ /**
52
+ * The ONE tool whose invocation matches `method` + `path` (the full app-local
53
+ * path, e.g. `/email/messages/abc`), or null.
54
+ *
55
+ * Every tool is tried, not the first hit, so the answer cannot depend on the
56
+ * order the catalog lists its tools in. A second hit means the catalog should
57
+ * never have validated — `appCapabilityCatalogSchema` refuses overlapping
58
+ * templates — so it throws rather than guessing which tool the ticket meant.
59
+ */
60
+ export declare function matchCatalogInvocation<T extends InvocationCarrier>(tools: readonly T[], method: string, path: string): CatalogInvocationMatch<T> | null;
61
+ export interface ResolvedCatalogInvocation {
62
+ readonly method: string;
63
+ readonly url: URL;
64
+ /** JSON body for non-GET invocations; GET arguments travel in the query. */
65
+ readonly body?: Record<string, unknown>;
66
+ }
67
+ /**
68
+ * Build the HTTP request for a tool call from the model's arguments.
69
+ *
70
+ * Path parameters are substituted (and removed from the remaining arguments);
71
+ * GET sends the rest as query parameters, everything else as a JSON body. A GET
72
+ * argument that is not a scalar is refused instead of being stringified into
73
+ * `[object Object]` — the catalog schema only lets GET tools declare scalar
74
+ * inputs, so reaching that branch means the arguments did not come from the
75
+ * tool's own schema. The resolved URL must stay on `internalBaseUrl`'s origin.
76
+ */
77
+ export declare function resolveCatalogInvocation(catalog: {
78
+ readonly internalBaseUrl: string;
79
+ }, tool: InvocationCarrier, args: Readonly<Record<string, unknown>>): ResolvedCatalogInvocation;
80
+ export {};
@@ -98,6 +98,8 @@ export { PRODUCT_PLAN_STATUSES, productPlanStatusSchema, LIVE_PRODUCT_PLAN_STATU
98
98
  export type { ProductPlanStatus, PlanAllowance, ProductPlan, PayAsYouGoEntitlement, CostCenterStatus, CostCenter, CostCenterSpend, ProductEntitlement, } from './inference/entitlement';
99
99
  export { AUTONOMY_LEVELS, CAPABILITY_PACKAGES, autonomyLevelSchema, capabilityPackageSchema, actorRefSchema, resourceRefSchema, toolGrantOverrideSchema, grantLimitSchema, capabilityCatalogBindingSchema, executionAuthorizationRefSchema, capabilityCoordinatorSchema, delegationGrantSchema, automationTriggerSchema, automationActorSelectionSchema, automationDataFlowSchema, automationDefinitionSchema, capabilityTicketClaimsSchema, policyDecisionSchema, auditResultSchema, auditEventSchema, catalogToolSchema, catalogEventSchema, appCapabilityCatalogSchema, catalogRegistrationSchema, normalizedAppEventSchema, } from './agency';
100
100
  export type { AutonomyLevel, CapabilityPackage, ActorRef, ResourceRef, ToolGrantOverride, GrantLimit, CapabilityCatalogBinding, ExecutionAuthorizationRef, CapabilityCoordinator, DelegationGrant, AutomationTrigger, AutomationActorSelection, AutomationDefinition, CapabilityTicketClaims, PolicyDecision, AuditEvent, CatalogTool, CatalogEvent, AppCapabilityCatalog, CatalogRegistration, NormalizedAppEvent, } from './agency';
101
+ export { catalogInvocationPathParameters, catalogInvocationsOverlap, catalogInvocationTemplatesEquivalent, findOverlappingCatalogInvocations, matchCatalogInvocation, resolveCatalogInvocation, } from './capabilityInvocation';
102
+ export type { CatalogInvocationMatch, CatalogInvocationTemplate, ResolvedCatalogInvocation, } from './capabilityInvocation';
101
103
  export { emailContextAddressSchema, emailContextMailboxSchema, emailContextMessageSchema, emailAgentContextSchema, } from './emailAgentContext';
102
104
  export type { EmailContextAddress, EmailContextMailbox, EmailContextMessage, EmailAgentContext, } from './emailAgentContext';
103
105
  export { inboxComposeRequestSchema, inboxDailyBriefRequestSchema, inboxNaturalSearchRequestSchema, inboxMessageInferenceParamsSchema, inboxInferenceTextResponseSchema, inboxNaturalSearchResponseSchema, inboxSmartRepliesResponseSchema, inboxThreadSummaryResponseSchema, inboxInferenceStreamEventSchema, } from './inference/inbox';
@@ -108,3 +110,9 @@ export * from './federationInstanceFetch';
108
110
  export * from './notifications';
109
111
  export * from './email/messages';
110
112
  export * from './stickers';
113
+ export { decisionEffortSchema, decisionQuestionSchema, decisionInputSchema, decisionRequestSchema, decisionAnswerSchema, decisionResultSchema, decisionSuccessSchema, decisionFailureSchema, decisionInputBudget, decisionFitsGateway, decisionAnswersMatch, } from './inference/decisions';
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
- issuedAt: string;
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>;