@cloudhal/core-contracts 0.8.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.
@@ -0,0 +1,56 @@
1
+ /**
2
+ * GENERATED FILE — DO NOT EDIT.
3
+ * Source: packages/core-contracts/schemas/*.schema.json (run `pnpm gen`)
4
+ */
5
+ /**
6
+ * Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.
7
+ *
8
+ * This interface was referenced by `ReleaseStatement`'s JSON-Schema
9
+ * via the `definition` "SchemaVersion".
10
+ */
11
+ export type SchemaVersion = 1;
12
+ /**
13
+ * This interface was referenced by `ReleaseStatement`'s JSON-Schema
14
+ * via the `definition` "CloudhalVersion".
15
+ */
16
+ export type CloudhalVersion = string;
17
+ /**
18
+ * RFC 3339 / ISO 8601 instant in UTC.
19
+ *
20
+ * This interface was referenced by `ReleaseStatement`'s JSON-Schema
21
+ * via the `definition` "Timestamp".
22
+ */
23
+ export type Timestamp = string;
24
+ /**
25
+ * This interface was referenced by `ReleaseStatement`'s JSON-Schema
26
+ * via the `definition` "Sha256Hex".
27
+ */
28
+ export type Sha256Hex = string;
29
+ /**
30
+ * cloudhal.release-statement@1 (RFC-0046): the small canonical document a Cloudhal release signs, published as the release asset release-statement.json next to release-statement.sig (a raw 64-byte Ed25519 signature over the exact bytes, at most 4096 of them). It names the version, channel, commit and key id and pins the SHA-256 and size of manifest.json and of the tarball, so a remote deployer verifies one small file and then checks every other asset by digest. Canonical bytes: keys sorted recursively, 2-space indent, a trailing newline; a consumer verifies the bytes it downloaded and never re-serialises them. Portable on purpose: it references common only for SchemaVersion and Timestamp.
31
+ */
32
+ export interface ReleaseStatement {
33
+ schemaVersion: SchemaVersion;
34
+ format: "cloudhal.release-statement@1";
35
+ version: CloudhalVersion;
36
+ channel: "stable" | "next";
37
+ securityRelease: boolean;
38
+ commit: string;
39
+ createdAt: Timestamp;
40
+ signing: {
41
+ keyId: string;
42
+ algorithm: "Ed25519";
43
+ signature: "release-statement.sig";
44
+ };
45
+ manifest: StatementAsset;
46
+ tarball: StatementAsset;
47
+ }
48
+ /**
49
+ * This interface was referenced by `ReleaseStatement`'s JSON-Schema
50
+ * via the `definition` "StatementAsset".
51
+ */
52
+ export interface StatementAsset {
53
+ name: string;
54
+ sha256: Sha256Hex;
55
+ bytes: number;
56
+ }
@@ -0,0 +1,60 @@
1
+ /* eslint-disable */
2
+ /* biome-ignore-all lint: generated */
3
+ /**
4
+ * GENERATED FILE — DO NOT EDIT.
5
+ * Source: packages/core-contracts/schemas/*.schema.json (run `pnpm gen`)
6
+ */
7
+
8
+ /**
9
+ * Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.
10
+ *
11
+ * This interface was referenced by `ReleaseStatement`'s JSON-Schema
12
+ * via the `definition` "SchemaVersion".
13
+ */
14
+
15
+ /**
16
+ * This interface was referenced by `ReleaseStatement`'s JSON-Schema
17
+ * via the `definition` "CloudhalVersion".
18
+ */
19
+
20
+ /**
21
+ * RFC 3339 / ISO 8601 instant in UTC.
22
+ *
23
+ * This interface was referenced by `ReleaseStatement`'s JSON-Schema
24
+ * via the `definition` "Timestamp".
25
+ */
26
+
27
+ /**
28
+ * This interface was referenced by `ReleaseStatement`'s JSON-Schema
29
+ * via the `definition` "Sha256Hex".
30
+ */
31
+
32
+
33
+ /**
34
+ * cloudhal.release-statement@1 (RFC-0046): the small canonical document a Cloudhal release signs, published as the release asset release-statement.json next to release-statement.sig (a raw 64-byte Ed25519 signature over the exact bytes, at most 4096 of them). It names the version, channel, commit and key id and pins the SHA-256 and size of manifest.json and of the tarball, so a remote deployer verifies one small file and then checks every other asset by digest. Canonical bytes: keys sorted recursively, 2-space indent, a trailing newline; a consumer verifies the bytes it downloaded and never re-serialises them. Portable on purpose: it references common only for SchemaVersion and Timestamp.
35
+ */
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+ /**
53
+ * This interface was referenced by `ReleaseStatement`'s JSON-Schema
54
+ * via the `definition` "StatementAsset".
55
+ */
56
+
57
+
58
+
59
+
60
+
@@ -0,0 +1,68 @@
1
+ /**
2
+ * GENERATED FILE — DO NOT EDIT.
3
+ * Source: packages/core-contracts/schemas/*.schema.json (run `pnpm gen`)
4
+ */
5
+ /**
6
+ * Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.
7
+ *
8
+ * This interface was referenced by `ReleaseYankList`'s JSON-Schema
9
+ * via the `definition` "SchemaVersion".
10
+ */
11
+ export type SchemaVersion = 1;
12
+ /**
13
+ * RFC 3339 / ISO 8601 instant in UTC.
14
+ *
15
+ * This interface was referenced by `ReleaseYankList`'s JSON-Schema
16
+ * via the `definition` "Timestamp".
17
+ */
18
+ export type Timestamp = string;
19
+ /**
20
+ * This interface was referenced by `ReleaseYankList`'s JSON-Schema
21
+ * via the `definition` "CloudhalVersion".
22
+ */
23
+ export type CloudhalVersion = string;
24
+ /**
25
+ * This interface was referenced by `ReleaseYankList`'s JSON-Schema
26
+ * via the `definition` "KeyId".
27
+ */
28
+ export type KeyId = string;
29
+ /**
30
+ * 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.
31
+ */
32
+ export interface ReleaseYankList {
33
+ schemaVersion: SchemaVersion;
34
+ format: "cloudhal.release-yank-list@1";
35
+ /**
36
+ * 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).
37
+ */
38
+ serial: number;
39
+ issuedAt: Timestamp;
40
+ /**
41
+ * RFC 3339 / ISO 8601 instant in UTC.
42
+ */
43
+ expires: string;
44
+ signing: {
45
+ /**
46
+ * The yank-role key that signed this list.
47
+ */
48
+ keyId: string;
49
+ algorithm: "Ed25519";
50
+ signature: "yanked.json.sig";
51
+ };
52
+ /**
53
+ * @maxItems 1000
54
+ */
55
+ versions: {
56
+ version: CloudhalVersion;
57
+ yankedAt: Timestamp;
58
+ reason: string;
59
+ }[];
60
+ /**
61
+ * @maxItems 64
62
+ */
63
+ revokedKeys: {
64
+ keyId: KeyId;
65
+ revokedAt: Timestamp;
66
+ reason: string;
67
+ }[];
68
+ }
@@ -0,0 +1,72 @@
1
+ /* eslint-disable */
2
+ /* biome-ignore-all lint: generated */
3
+ /**
4
+ * GENERATED FILE — DO NOT EDIT.
5
+ * Source: packages/core-contracts/schemas/*.schema.json (run `pnpm gen`)
6
+ */
7
+
8
+ /**
9
+ * Version of this contract. Readers reject unknown versions; migrations move documents forward one version at a time.
10
+ *
11
+ * This interface was referenced by `ReleaseYankList`'s JSON-Schema
12
+ * via the `definition` "SchemaVersion".
13
+ */
14
+
15
+ /**
16
+ * RFC 3339 / ISO 8601 instant in UTC.
17
+ *
18
+ * This interface was referenced by `ReleaseYankList`'s JSON-Schema
19
+ * via the `definition` "Timestamp".
20
+ */
21
+
22
+ /**
23
+ * This interface was referenced by `ReleaseYankList`'s JSON-Schema
24
+ * via the `definition` "CloudhalVersion".
25
+ */
26
+
27
+ /**
28
+ * This interface was referenced by `ReleaseYankList`'s JSON-Schema
29
+ * via the `definition` "KeyId".
30
+ */
31
+
32
+
33
+ /**
34
+ * 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.
35
+ */
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+