@cloudhal/core-contracts 0.9.0 → 0.10.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.
@@ -7561,6 +7561,216 @@ export declare const ReleaseStatementSchema: {
7561
7561
  };
7562
7562
  };
7563
7563
  };
7564
+ export declare const ReleaseKeysSchema: {
7565
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
7566
+ readonly $id: "https://cloudhal.dev/schemas/v1/release-keys.schema.json";
7567
+ readonly title: "ReleaseKeys";
7568
+ readonly description: "cloudhal.release-keys@1 (RFC-0046 §9): the root-signed list of Cloudhal's release and yank keys, published as keys.json at https://cloudhal.dev/.well-known/cloudhal/keys.json next to keys.json.sig (a raw 64-byte Ed25519 signature by the offline root over the exact bytes). A consumer uses it only to reduce trust in the keys it pins: revoke, mark retiring, narrow a validity window; it never adds a key. Canonical bytes as for the release statement.";
7569
+ readonly type: "object";
7570
+ readonly additionalProperties: false;
7571
+ readonly required: readonly ["schemaVersion", "format", "issuedAt", "expires", "signing", "keys"];
7572
+ readonly properties: {
7573
+ readonly schemaVersion: {
7574
+ readonly $ref: "#/$defs/SchemaVersion";
7575
+ };
7576
+ readonly format: {
7577
+ readonly type: "string";
7578
+ readonly enum: readonly ["cloudhal.release-keys@1"];
7579
+ };
7580
+ readonly issuedAt: {
7581
+ readonly $ref: "#/$defs/Timestamp";
7582
+ };
7583
+ readonly expires: {
7584
+ readonly description: "At most 13 months after issuedAt; a consumer refuses an expired list.";
7585
+ readonly $ref: "#/$defs/Timestamp";
7586
+ };
7587
+ readonly signing: {
7588
+ readonly type: "object";
7589
+ readonly additionalProperties: false;
7590
+ readonly required: readonly ["keyId", "algorithm", "signature"];
7591
+ readonly properties: {
7592
+ readonly keyId: {
7593
+ readonly description: "The root key that signed this list.";
7594
+ readonly $ref: "#/$defs/KeyId";
7595
+ };
7596
+ readonly algorithm: {
7597
+ readonly type: "string";
7598
+ readonly enum: readonly ["Ed25519"];
7599
+ };
7600
+ readonly signature: {
7601
+ readonly type: "string";
7602
+ readonly enum: readonly ["keys.json.sig"];
7603
+ };
7604
+ };
7605
+ };
7606
+ readonly keys: {
7607
+ readonly type: "array";
7608
+ readonly maxItems: 64;
7609
+ readonly items: {
7610
+ readonly $ref: "#/$defs/ListedKey";
7611
+ };
7612
+ };
7613
+ };
7614
+ readonly $defs: {
7615
+ readonly KeyId: {
7616
+ readonly type: "string";
7617
+ readonly pattern: "^[a-z0-9][a-z0-9-]{2,63}$";
7618
+ };
7619
+ readonly ListedKey: {
7620
+ readonly type: "object";
7621
+ readonly additionalProperties: false;
7622
+ readonly required: readonly ["keyId", "publicKey", "role", "notBefore", "notAfter", "status"];
7623
+ readonly properties: {
7624
+ readonly keyId: {
7625
+ readonly $ref: "#/$defs/KeyId";
7626
+ };
7627
+ readonly publicKey: {
7628
+ readonly description: "The raw 32-byte Ed25519 public key, base64.";
7629
+ readonly type: "string";
7630
+ readonly pattern: "^[A-Za-z0-9+/]{43}=$";
7631
+ };
7632
+ readonly role: {
7633
+ readonly type: "string";
7634
+ readonly enum: readonly ["release", "yank"];
7635
+ };
7636
+ readonly notBefore: {
7637
+ readonly $ref: "#/$defs/Timestamp";
7638
+ };
7639
+ readonly notAfter: {
7640
+ readonly $ref: "#/$defs/Timestamp";
7641
+ };
7642
+ readonly status: {
7643
+ readonly type: "string";
7644
+ readonly enum: readonly ["active", "retiring", "revoked"];
7645
+ };
7646
+ };
7647
+ };
7648
+ readonly SchemaVersion: {
7649
+ readonly type: "integer";
7650
+ readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
7651
+ readonly enum: readonly [1];
7652
+ };
7653
+ readonly Timestamp: {
7654
+ readonly type: "string";
7655
+ readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
7656
+ readonly format: "date-time";
7657
+ };
7658
+ };
7659
+ };
7660
+ export declare const ReleaseYankListSchema: {
7661
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
7662
+ readonly $id: "https://cloudhal.dev/schemas/v1/release-yank-list.schema.json";
7663
+ readonly title: "ReleaseYankList";
7664
+ readonly description: "cloudhal.release-yank-list@1 (RFC-0046 §9): the yank list, published as yanked.json at https://cloudhal.dev/.well-known/cloudhal/yanked.json next to yanked.json.sig (a raw 64-byte Ed25519 signature by a yank-role key from keys.json over the exact bytes). It only reduces trust: versions no consumer may install, and release key ids every consumer must refuse. Re-signed weekly; it expires 30 days after issuedAt, and a stale list blocks new installs only.";
7665
+ readonly type: "object";
7666
+ readonly additionalProperties: false;
7667
+ readonly required: readonly ["schemaVersion", "format", "serial", "issuedAt", "expires", "signing", "versions", "revokedKeys"];
7668
+ readonly properties: {
7669
+ readonly schemaVersion: {
7670
+ readonly $ref: "#/$defs/SchemaVersion";
7671
+ };
7672
+ readonly format: {
7673
+ readonly type: "string";
7674
+ readonly enum: readonly ["cloudhal.release-yank-list@1"];
7675
+ };
7676
+ readonly serial: {
7677
+ readonly description: "Increases by one at every signing. A consumer that keeps state refuses a serial lower than the last one it saw (a rollback to an older, validly signed list).";
7678
+ readonly type: "integer";
7679
+ readonly minimum: 1;
7680
+ readonly maximum: 9007199254740991;
7681
+ };
7682
+ readonly issuedAt: {
7683
+ readonly $ref: "#/$defs/Timestamp";
7684
+ };
7685
+ readonly expires: {
7686
+ readonly description: "Exactly 30 days after issuedAt.";
7687
+ readonly $ref: "#/$defs/Timestamp";
7688
+ };
7689
+ readonly signing: {
7690
+ readonly type: "object";
7691
+ readonly additionalProperties: false;
7692
+ readonly required: readonly ["keyId", "algorithm", "signature"];
7693
+ readonly properties: {
7694
+ readonly keyId: {
7695
+ readonly description: "The yank-role key that signed this list.";
7696
+ readonly $ref: "#/$defs/KeyId";
7697
+ };
7698
+ readonly algorithm: {
7699
+ readonly type: "string";
7700
+ readonly enum: readonly ["Ed25519"];
7701
+ };
7702
+ readonly signature: {
7703
+ readonly type: "string";
7704
+ readonly enum: readonly ["yanked.json.sig"];
7705
+ };
7706
+ };
7707
+ };
7708
+ readonly versions: {
7709
+ readonly type: "array";
7710
+ readonly maxItems: 1000;
7711
+ readonly items: {
7712
+ readonly type: "object";
7713
+ readonly additionalProperties: false;
7714
+ readonly required: readonly ["version", "yankedAt", "reason"];
7715
+ readonly properties: {
7716
+ readonly version: {
7717
+ readonly $ref: "#/$defs/CloudhalVersion";
7718
+ };
7719
+ readonly yankedAt: {
7720
+ readonly $ref: "#/$defs/Timestamp";
7721
+ };
7722
+ readonly reason: {
7723
+ readonly type: "string";
7724
+ readonly minLength: 1;
7725
+ readonly maxLength: 500;
7726
+ };
7727
+ };
7728
+ };
7729
+ };
7730
+ readonly revokedKeys: {
7731
+ readonly type: "array";
7732
+ readonly maxItems: 64;
7733
+ readonly items: {
7734
+ readonly type: "object";
7735
+ readonly additionalProperties: false;
7736
+ readonly required: readonly ["keyId", "revokedAt", "reason"];
7737
+ readonly properties: {
7738
+ readonly keyId: {
7739
+ readonly $ref: "#/$defs/KeyId";
7740
+ };
7741
+ readonly revokedAt: {
7742
+ readonly $ref: "#/$defs/Timestamp";
7743
+ };
7744
+ readonly reason: {
7745
+ readonly type: "string";
7746
+ readonly minLength: 1;
7747
+ readonly maxLength: 500;
7748
+ };
7749
+ };
7750
+ };
7751
+ };
7752
+ };
7753
+ readonly $defs: {
7754
+ readonly CloudhalVersion: {
7755
+ readonly type: "string";
7756
+ readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$";
7757
+ };
7758
+ readonly KeyId: {
7759
+ readonly type: "string";
7760
+ readonly pattern: "^[a-z0-9][a-z0-9-]{2,63}$";
7761
+ };
7762
+ readonly SchemaVersion: {
7763
+ readonly type: "integer";
7764
+ readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
7765
+ readonly enum: readonly [1];
7766
+ };
7767
+ readonly Timestamp: {
7768
+ readonly type: "string";
7769
+ readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
7770
+ readonly format: "date-time";
7771
+ };
7772
+ };
7773
+ };
7564
7774
  export declare const schemas: {
7565
7775
  readonly project: {
7566
7776
  readonly $schema: "https://json-schema.org/draft/2020-12/schema";
@@ -15121,4 +15331,214 @@ export declare const schemas: {
15121
15331
  };
15122
15332
  };
15123
15333
  };
15334
+ readonly "release-keys": {
15335
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
15336
+ readonly $id: "https://cloudhal.dev/schemas/v1/release-keys.schema.json";
15337
+ readonly title: "ReleaseKeys";
15338
+ readonly description: "cloudhal.release-keys@1 (RFC-0046 §9): the root-signed list of Cloudhal's release and yank keys, published as keys.json at https://cloudhal.dev/.well-known/cloudhal/keys.json next to keys.json.sig (a raw 64-byte Ed25519 signature by the offline root over the exact bytes). A consumer uses it only to reduce trust in the keys it pins: revoke, mark retiring, narrow a validity window; it never adds a key. Canonical bytes as for the release statement.";
15339
+ readonly type: "object";
15340
+ readonly additionalProperties: false;
15341
+ readonly required: readonly ["schemaVersion", "format", "issuedAt", "expires", "signing", "keys"];
15342
+ readonly properties: {
15343
+ readonly schemaVersion: {
15344
+ readonly $ref: "#/$defs/SchemaVersion";
15345
+ };
15346
+ readonly format: {
15347
+ readonly type: "string";
15348
+ readonly enum: readonly ["cloudhal.release-keys@1"];
15349
+ };
15350
+ readonly issuedAt: {
15351
+ readonly $ref: "#/$defs/Timestamp";
15352
+ };
15353
+ readonly expires: {
15354
+ readonly description: "At most 13 months after issuedAt; a consumer refuses an expired list.";
15355
+ readonly $ref: "#/$defs/Timestamp";
15356
+ };
15357
+ readonly signing: {
15358
+ readonly type: "object";
15359
+ readonly additionalProperties: false;
15360
+ readonly required: readonly ["keyId", "algorithm", "signature"];
15361
+ readonly properties: {
15362
+ readonly keyId: {
15363
+ readonly description: "The root key that signed this list.";
15364
+ readonly $ref: "#/$defs/KeyId";
15365
+ };
15366
+ readonly algorithm: {
15367
+ readonly type: "string";
15368
+ readonly enum: readonly ["Ed25519"];
15369
+ };
15370
+ readonly signature: {
15371
+ readonly type: "string";
15372
+ readonly enum: readonly ["keys.json.sig"];
15373
+ };
15374
+ };
15375
+ };
15376
+ readonly keys: {
15377
+ readonly type: "array";
15378
+ readonly maxItems: 64;
15379
+ readonly items: {
15380
+ readonly $ref: "#/$defs/ListedKey";
15381
+ };
15382
+ };
15383
+ };
15384
+ readonly $defs: {
15385
+ readonly KeyId: {
15386
+ readonly type: "string";
15387
+ readonly pattern: "^[a-z0-9][a-z0-9-]{2,63}$";
15388
+ };
15389
+ readonly ListedKey: {
15390
+ readonly type: "object";
15391
+ readonly additionalProperties: false;
15392
+ readonly required: readonly ["keyId", "publicKey", "role", "notBefore", "notAfter", "status"];
15393
+ readonly properties: {
15394
+ readonly keyId: {
15395
+ readonly $ref: "#/$defs/KeyId";
15396
+ };
15397
+ readonly publicKey: {
15398
+ readonly description: "The raw 32-byte Ed25519 public key, base64.";
15399
+ readonly type: "string";
15400
+ readonly pattern: "^[A-Za-z0-9+/]{43}=$";
15401
+ };
15402
+ readonly role: {
15403
+ readonly type: "string";
15404
+ readonly enum: readonly ["release", "yank"];
15405
+ };
15406
+ readonly notBefore: {
15407
+ readonly $ref: "#/$defs/Timestamp";
15408
+ };
15409
+ readonly notAfter: {
15410
+ readonly $ref: "#/$defs/Timestamp";
15411
+ };
15412
+ readonly status: {
15413
+ readonly type: "string";
15414
+ readonly enum: readonly ["active", "retiring", "revoked"];
15415
+ };
15416
+ };
15417
+ };
15418
+ readonly SchemaVersion: {
15419
+ readonly type: "integer";
15420
+ readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
15421
+ readonly enum: readonly [1];
15422
+ };
15423
+ readonly Timestamp: {
15424
+ readonly type: "string";
15425
+ readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
15426
+ readonly format: "date-time";
15427
+ };
15428
+ };
15429
+ };
15430
+ readonly "release-yank-list": {
15431
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
15432
+ readonly $id: "https://cloudhal.dev/schemas/v1/release-yank-list.schema.json";
15433
+ readonly title: "ReleaseYankList";
15434
+ readonly description: "cloudhal.release-yank-list@1 (RFC-0046 §9): the yank list, published as yanked.json at https://cloudhal.dev/.well-known/cloudhal/yanked.json next to yanked.json.sig (a raw 64-byte Ed25519 signature by a yank-role key from keys.json over the exact bytes). It only reduces trust: versions no consumer may install, and release key ids every consumer must refuse. Re-signed weekly; it expires 30 days after issuedAt, and a stale list blocks new installs only.";
15435
+ readonly type: "object";
15436
+ readonly additionalProperties: false;
15437
+ readonly required: readonly ["schemaVersion", "format", "serial", "issuedAt", "expires", "signing", "versions", "revokedKeys"];
15438
+ readonly properties: {
15439
+ readonly schemaVersion: {
15440
+ readonly $ref: "#/$defs/SchemaVersion";
15441
+ };
15442
+ readonly format: {
15443
+ readonly type: "string";
15444
+ readonly enum: readonly ["cloudhal.release-yank-list@1"];
15445
+ };
15446
+ readonly serial: {
15447
+ readonly description: "Increases by one at every signing. A consumer that keeps state refuses a serial lower than the last one it saw (a rollback to an older, validly signed list).";
15448
+ readonly type: "integer";
15449
+ readonly minimum: 1;
15450
+ readonly maximum: 9007199254740991;
15451
+ };
15452
+ readonly issuedAt: {
15453
+ readonly $ref: "#/$defs/Timestamp";
15454
+ };
15455
+ readonly expires: {
15456
+ readonly description: "Exactly 30 days after issuedAt.";
15457
+ readonly $ref: "#/$defs/Timestamp";
15458
+ };
15459
+ readonly signing: {
15460
+ readonly type: "object";
15461
+ readonly additionalProperties: false;
15462
+ readonly required: readonly ["keyId", "algorithm", "signature"];
15463
+ readonly properties: {
15464
+ readonly keyId: {
15465
+ readonly description: "The yank-role key that signed this list.";
15466
+ readonly $ref: "#/$defs/KeyId";
15467
+ };
15468
+ readonly algorithm: {
15469
+ readonly type: "string";
15470
+ readonly enum: readonly ["Ed25519"];
15471
+ };
15472
+ readonly signature: {
15473
+ readonly type: "string";
15474
+ readonly enum: readonly ["yanked.json.sig"];
15475
+ };
15476
+ };
15477
+ };
15478
+ readonly versions: {
15479
+ readonly type: "array";
15480
+ readonly maxItems: 1000;
15481
+ readonly items: {
15482
+ readonly type: "object";
15483
+ readonly additionalProperties: false;
15484
+ readonly required: readonly ["version", "yankedAt", "reason"];
15485
+ readonly properties: {
15486
+ readonly version: {
15487
+ readonly $ref: "#/$defs/CloudhalVersion";
15488
+ };
15489
+ readonly yankedAt: {
15490
+ readonly $ref: "#/$defs/Timestamp";
15491
+ };
15492
+ readonly reason: {
15493
+ readonly type: "string";
15494
+ readonly minLength: 1;
15495
+ readonly maxLength: 500;
15496
+ };
15497
+ };
15498
+ };
15499
+ };
15500
+ readonly revokedKeys: {
15501
+ readonly type: "array";
15502
+ readonly maxItems: 64;
15503
+ readonly items: {
15504
+ readonly type: "object";
15505
+ readonly additionalProperties: false;
15506
+ readonly required: readonly ["keyId", "revokedAt", "reason"];
15507
+ readonly properties: {
15508
+ readonly keyId: {
15509
+ readonly $ref: "#/$defs/KeyId";
15510
+ };
15511
+ readonly revokedAt: {
15512
+ readonly $ref: "#/$defs/Timestamp";
15513
+ };
15514
+ readonly reason: {
15515
+ readonly type: "string";
15516
+ readonly minLength: 1;
15517
+ readonly maxLength: 500;
15518
+ };
15519
+ };
15520
+ };
15521
+ };
15522
+ };
15523
+ readonly $defs: {
15524
+ readonly CloudhalVersion: {
15525
+ readonly type: "string";
15526
+ readonly pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?$";
15527
+ };
15528
+ readonly KeyId: {
15529
+ readonly type: "string";
15530
+ readonly pattern: "^[a-z0-9][a-z0-9-]{2,63}$";
15531
+ };
15532
+ readonly SchemaVersion: {
15533
+ readonly type: "integer";
15534
+ readonly description: "Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.";
15535
+ readonly enum: readonly [1];
15536
+ };
15537
+ readonly Timestamp: {
15538
+ readonly type: "string";
15539
+ readonly description: "RFC 3339 / ISO 8601 instant in UTC.";
15540
+ readonly format: "date-time";
15541
+ };
15542
+ };
15543
+ };
15124
15544
  };