@substrat-run/contracts 0.6.0 → 0.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.
@@ -8,6 +8,15 @@ export declare const adminAction: z.ZodEnum<{
8
8
  removeMember: "removeMember";
9
9
  createOrg: "createOrg";
10
10
  registerIdentityPool: "registerIdentityPool";
11
+ registerVertical: "registerVertical";
12
+ publishVersion: "publishVersion";
13
+ admitVersion: "admitVersion";
14
+ rejectVersion: "rejectVersion";
15
+ bindScopeVersion: "bindScopeVersion";
16
+ promoteVersion: "promoteVersion";
17
+ bindHostname: "bindHostname";
18
+ setHostnameStatus: "setHostnameStatus";
19
+ pruneAccessLog: "pruneAccessLog";
11
20
  createTenant: "createTenant";
12
21
  setTenantStatus: "setTenantStatus";
13
22
  provisionScope: "provisionScope";
@@ -87,6 +96,29 @@ export declare const resolvedIdentity: z.ZodObject<{
87
96
  scopeId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ScopeId", "out">>;
88
97
  }, z.core.$strip>;
89
98
  export type ResolvedIdentity = z.infer<typeof resolvedIdentity>;
99
+ /**
100
+ * One staff READ of the directory (K-24). Separate from `adminLogEntry` because a
101
+ * mutation is permanent evidence and a read is operational history — one table would
102
+ * force one retention policy on both.
103
+ *
104
+ * `resultCount` is what separates navigation from an incident: "called listScopes"
105
+ * against "enumerated 4,000 tenants".
106
+ *
107
+ * `drainedAt` marks a row shipped to Tier 2. Only drained rows may be pruned —
108
+ * expiring on age alone would destroy evidence while calling itself retention.
109
+ */
110
+ export declare const accessLogEntry: z.ZodObject<{
111
+ id: z.ZodString;
112
+ actor: z.core.$ZodBranded<z.ZodString, "PlatformActorId", "out">;
113
+ method: z.ZodString;
114
+ tenantId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "TenantId", "out">>;
115
+ scopeId: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ScopeId", "out">>;
116
+ params: z.ZodNullable<z.ZodString>;
117
+ resultCount: z.ZodNumber;
118
+ drainedAt: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "Instant", "out">>;
119
+ at: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
120
+ }, z.core.$strip>;
121
+ export type AccessLogEntry = z.infer<typeof accessLogEntry>;
90
122
  /**
91
123
  * One principal's membership of one org, as the directory holds it (K-21).
92
124
  *
@@ -125,6 +157,15 @@ export declare const adminLogEntry: z.ZodObject<{
125
157
  removeMember: "removeMember";
126
158
  createOrg: "createOrg";
127
159
  registerIdentityPool: "registerIdentityPool";
160
+ registerVertical: "registerVertical";
161
+ publishVersion: "publishVersion";
162
+ admitVersion: "admitVersion";
163
+ rejectVersion: "rejectVersion";
164
+ bindScopeVersion: "bindScopeVersion";
165
+ promoteVersion: "promoteVersion";
166
+ bindHostname: "bindHostname";
167
+ setHostnameStatus: "setHostnameStatus";
168
+ pruneAccessLog: "pruneAccessLog";
128
169
  createTenant: "createTenant";
129
170
  setTenantStatus: "setTenantStatus";
130
171
  provisionScope: "provisionScope";
@@ -1 +1 @@
1
- {"version":3,"file":"control-plane.d.ts","sourceRoot":"","sources":["../src/control-plane.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;EAmBtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;;;;;iBAMvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY;;;EAAsC,CAAC;AAChE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;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,YAAY,CAAC,CAAC;AAExD;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;iBAUzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa;;;;iBAIxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -14,7 +14,16 @@ export const adminAction = z.enum([
14
14
  'addMember',
15
15
  'removeMember', // K-21 — tombstones the membership tuple, never deletes it
16
16
  'createOrg', // K-22 — orgs are a real record, not a free-form string
17
- 'registerIdentityPool', // K-23 — a provider declares its topology before it may link
17
+ 'registerIdentityPool',
18
+ 'registerVertical', // #31 — the vertical + version registry
19
+ 'publishVersion',
20
+ 'admitVersion',
21
+ 'rejectVersion',
22
+ 'bindScopeVersion',
23
+ 'promoteVersion',
24
+ 'bindHostname', // K-26 — the hostname map
25
+ 'setHostnameStatus', // #31 step 2 — where the two human checkpoints fire
26
+ 'pruneAccessLog', // K-24 — deleting drained access rows is itself a mutation // K-23 — a provider declares its topology before it may link
18
27
  'createTenant', // §4.1
19
28
  'setTenantStatus', // §4.1 — before/after carry the transitioned status
20
29
  'provisionScope', // §4.2 — the first scope-lifecycle transition (→ active)
@@ -87,6 +96,28 @@ export const resolvedIdentity = z.object({
87
96
  principal: principalId,
88
97
  scopeId: scopeId.nullable(),
89
98
  });
99
+ /**
100
+ * One staff READ of the directory (K-24). Separate from `adminLogEntry` because a
101
+ * mutation is permanent evidence and a read is operational history — one table would
102
+ * force one retention policy on both.
103
+ *
104
+ * `resultCount` is what separates navigation from an incident: "called listScopes"
105
+ * against "enumerated 4,000 tenants".
106
+ *
107
+ * `drainedAt` marks a row shipped to Tier 2. Only drained rows may be pruned —
108
+ * expiring on age alone would destroy evidence while calling itself retention.
109
+ */
110
+ export const accessLogEntry = z.object({
111
+ id: z.string().min(1),
112
+ actor: platformActorId,
113
+ method: z.string().min(1),
114
+ tenantId: tenantId.nullable(),
115
+ scopeId: scopeId.nullable(),
116
+ params: z.string().nullable(),
117
+ resultCount: z.number().int().nonnegative(),
118
+ drainedAt: instant.nullable(),
119
+ at: instant,
120
+ });
90
121
  /**
91
122
  * One principal's membership of one org, as the directory holds it (K-21).
92
123
  *
@@ -1 +1 @@
1
- {"version":3,"file":"control-plane.js","sourceRoot":"","sources":["../src/control-plane.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,OAAO,EACP,OAAO,EACP,KAAK,EACL,eAAe,EACf,WAAW,EACX,OAAO,EACP,QAAQ,GACT,MAAM,UAAU,CAAC;AAElB,gFAAgF;AAChF,+EAA+E;AAC/E,iFAAiF;AACjF,4CAA4C;AAE5C,2EAA2E;AAC3E,4EAA4E;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC;IAChC,YAAY;IACZ,YAAY;IACZ,OAAO;IACP,YAAY;IACZ,WAAW;IACX,cAAc,EAAE,2DAA2D;IAC3E,WAAW,EAAE,wDAAwD;IACrE,sBAAsB,EAAE,6DAA6D;IACrF,cAAc,EAAE,OAAO;IACvB,iBAAiB,EAAE,oDAAoD;IACvE,gBAAgB,EAAE,yDAAyD;IAC3E,cAAc,EAAE,OAAO;IACvB,gBAAgB,EAAE,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;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,oDAAoD;IAC3E,KAAK,EAAE,eAAe;IACtB,MAAM,EAAE,WAAW;IACnB,oFAAoF;IACpF,mFAAmF;IACnF,mDAAmD;IACnD,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,OAAO,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,6DAA6D;IAC7F,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,sBAAsB;IACrD;;;;;;;;;;;;;OAaG;IACH,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE;IAC5B,EAAE,EAAE,OAAO;CACZ,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -18,6 +18,8 @@
18
18
  */
19
19
  export { z } from 'zod';
20
20
  export * from './ids.js';
21
+ export * from './registry.js';
22
+ export * from './routing.js';
21
23
  export * from './tenancy.js';
22
24
  export * from './control-plane.js';
23
25
  export * from './permission.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -18,6 +18,8 @@
18
18
  */
19
19
  export { z } from 'zod';
20
20
  export * from './ids.js';
21
+ export * from './registry.js';
22
+ export * from './routing.js';
21
23
  export * from './tenancy.js';
22
24
  export * from './control-plane.js';
23
25
  export * from './permission.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
package/dist/manifest.js CHANGED
@@ -55,8 +55,8 @@ export const moduleManifest = z.object({
55
55
  // Keyed on operations, never on engine transitions: the kernel sees
56
56
  // operations, and must not learn engine internals (star topology). Policy
57
57
  // that is CONDITIONAL on vertical data (e.g. "only montage orders need an
58
- // egenkontroll") stays vertical-composed glue inside the operation — see
59
- // demos/fsm. Guards live here so that adding or DROPPING a compliance gate
58
+ // self-inspection") stays vertical-composed glue inside the operation — see
59
+ // demos/callout. Guards live here so that adding or DROPPING a compliance gate
60
60
  // lands in the reviewable manifest diff.
61
61
  //
62
62
  // Optional: every pre-milestone-C manifest still parses unchanged (D-28,
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,0EAA0E;AAC1E,wEAAwE;AAExE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,MAAM,EAAE;KACR,KAAK,CAAC,sDAAsD,CAAC,CAAC;AAEjE,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,aAAa;IAClB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,qDAAqD;CACtF,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,SAAS;IACf,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAA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,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAAC;aACrG,QAAQ,EAAE;QACb,cAAc,EAAE,CAAC;aACd,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC,CAAC;aACtG,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC"}
@@ -0,0 +1,133 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The vertical + version registry (#31 step 1; D-33's milestone one).
4
+ *
5
+ * Today a scope carries a nullable `vertical` STRING — a label nothing validates and
6
+ * nothing can be pinned to. That is enough to say "this scope runs Callout" and not
7
+ * enough to say *which Callout*, which is what dev/staging/prod and preview
8
+ * deployments are: the same vertical at different versions.
9
+ *
10
+ * The registry makes a version a real record with digests, so promotion can compare
11
+ * two of them, and an admission status, so **push is not live**.
12
+ */
13
+ /** Where a vertical came from. `builtin` is one we ship; the others are a customer's. */
14
+ export declare const verticalSource: z.ZodEnum<{
15
+ builtin: "builtin";
16
+ git: "git";
17
+ cli: "cli";
18
+ }>;
19
+ export type VerticalSource = z.infer<typeof verticalSource>;
20
+ export declare const vertical: z.ZodObject<{
21
+ slug: z.ZodString;
22
+ name: z.ZodString;
23
+ source: z.ZodEnum<{
24
+ builtin: "builtin";
25
+ git: "git";
26
+ cli: "cli";
27
+ }>;
28
+ createdAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
29
+ }, z.core.$strip>;
30
+ export type Vertical = z.infer<typeof vertical>;
31
+ export declare const registerVerticalInput: z.ZodObject<{
32
+ slug: z.ZodString;
33
+ source: z.ZodEnum<{
34
+ builtin: "builtin";
35
+ git: "git";
36
+ cli: "cli";
37
+ }>;
38
+ name: z.ZodString;
39
+ }, z.core.$strip>;
40
+ export type RegisterVerticalInput = z.infer<typeof registerVerticalInput>;
41
+ /**
42
+ * Whether a version may be bound to a scope.
43
+ *
44
+ * `pending` is what a push produces. The admission gates — boundary-lint, the
45
+ * migration diff and the permission diff — decide the rest, and binding a scope is a
46
+ * separate, reviewable step. That separation is the whole point: it is what stops a
47
+ * push being a deploy, and it puts the two human checkpoints where the blast radius
48
+ * is (promotion) rather than where the typing is (merge).
49
+ */
50
+ export declare const admissionStatus: z.ZodEnum<{
51
+ pending: "pending";
52
+ admitted: "admitted";
53
+ rejected: "rejected";
54
+ }>;
55
+ export type AdmissionStatus = z.infer<typeof admissionStatus>;
56
+ /**
57
+ * One published version of a vertical.
58
+ *
59
+ * The three digests are what make promotion answerable. "Has the permission surface
60
+ * changed between the version in prod and the one I am promoting?" is a string
61
+ * comparison here, where today it is a person remembering to look — and per §4 of the
62
+ * plan, a checkpoint that can be skipped is not a checkpoint.
63
+ */
64
+ export declare const verticalVersion: z.ZodObject<{
65
+ id: z.ZodString;
66
+ verticalSlug: z.ZodString;
67
+ version: z.ZodString;
68
+ manifestDigest: z.ZodString;
69
+ permissionDigest: z.ZodString;
70
+ migrationDigest: z.ZodString;
71
+ deploymentRef: z.ZodNullable<z.ZodString>;
72
+ admission: z.ZodEnum<{
73
+ pending: "pending";
74
+ admitted: "admitted";
75
+ rejected: "rejected";
76
+ }>;
77
+ admissionNote: z.ZodNullable<z.ZodString>;
78
+ createdAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
79
+ }, z.core.$strip>;
80
+ export type VerticalVersion = z.infer<typeof verticalVersion>;
81
+ export declare const publishVersionInput: z.ZodObject<{
82
+ id: z.ZodString;
83
+ verticalSlug: z.ZodString;
84
+ version: z.ZodString;
85
+ manifestDigest: z.ZodString;
86
+ permissionDigest: z.ZodString;
87
+ migrationDigest: z.ZodString;
88
+ deploymentRef: z.ZodNullable<z.ZodString>;
89
+ }, z.core.$strip>;
90
+ export type PublishVersionInput = z.infer<typeof publishVersionInput>;
91
+ /**
92
+ * Where a version is promoted to (#31 step 2).
93
+ *
94
+ * A channel is a named pointer per vertical. Promotion moves it. Dev, staging and
95
+ * prod are therefore the same vertical at different versions, which is the sentence
96
+ * the registry existed to make sayable.
97
+ */
98
+ export declare const channelName: z.ZodEnum<{
99
+ dev: "dev";
100
+ staging: "staging";
101
+ prod: "prod";
102
+ }>;
103
+ export type ChannelName = z.infer<typeof channelName>;
104
+ export declare const verticalChannel: z.ZodObject<{
105
+ verticalSlug: z.ZodString;
106
+ channel: z.ZodEnum<{
107
+ dev: "dev";
108
+ staging: "staging";
109
+ prod: "prod";
110
+ }>;
111
+ versionId: z.ZodString;
112
+ updatedAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
113
+ }, z.core.$strip>;
114
+ export type VerticalChannel = z.infer<typeof verticalChannel>;
115
+ /**
116
+ * What a promoter must acknowledge, per §4's two human checkpoints.
117
+ *
118
+ * Today the migration and permission diffs are a MERGE-time convention: CI renders
119
+ * them and a human is expected to read them, but nothing connects that reading to
120
+ * the moment the change reaches anyone. Promotion is that moment — the blast radius
121
+ * is here, not at the merge.
122
+ *
123
+ * So promotion refuses when a digest differs and the corresponding flag is unset,
124
+ * naming both digests in the error. The flag is one deliberate act rather than a
125
+ * gate that can be passed by not noticing, and the acknowledgement lands in the
126
+ * admin log — which turns "someone reviewed it" from a claim into evidence.
127
+ */
128
+ export declare const promotionAcknowledgement: z.ZodObject<{
129
+ permissionChange: z.ZodOptional<z.ZodBoolean>;
130
+ migrationChange: z.ZodOptional<z.ZodBoolean>;
131
+ }, z.core.$strip>;
132
+ export type PromotionAcknowledgement = z.infer<typeof promotionAcknowledgement>;
133
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,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CAAC;AAE9D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,95 @@
1
+ import { z } from 'zod';
2
+ import { instant, slug } from './ids.js';
3
+ /**
4
+ * The vertical + version registry (#31 step 1; D-33's milestone one).
5
+ *
6
+ * Today a scope carries a nullable `vertical` STRING — a label nothing validates and
7
+ * nothing can be pinned to. That is enough to say "this scope runs Callout" and not
8
+ * enough to say *which Callout*, which is what dev/staging/prod and preview
9
+ * deployments are: the same vertical at different versions.
10
+ *
11
+ * The registry makes a version a real record with digests, so promotion can compare
12
+ * two of them, and an admission status, so **push is not live**.
13
+ */
14
+ /** Where a vertical came from. `builtin` is one we ship; the others are a customer's. */
15
+ export const verticalSource = z.enum(['builtin', 'git', 'cli']);
16
+ export const vertical = z.object({
17
+ slug, // stable, human-readable, and what a scope row denormalizes for display
18
+ name: z.string().min(1),
19
+ source: verticalSource,
20
+ createdAt: instant,
21
+ });
22
+ export const registerVerticalInput = vertical.pick({ slug: true, name: true, source: true });
23
+ /**
24
+ * Whether a version may be bound to a scope.
25
+ *
26
+ * `pending` is what a push produces. The admission gates — boundary-lint, the
27
+ * migration diff and the permission diff — decide the rest, and binding a scope is a
28
+ * separate, reviewable step. That separation is the whole point: it is what stops a
29
+ * push being a deploy, and it puts the two human checkpoints where the blast radius
30
+ * is (promotion) rather than where the typing is (merge).
31
+ */
32
+ export const admissionStatus = z.enum(['pending', 'admitted', 'rejected']);
33
+ /**
34
+ * One published version of a vertical.
35
+ *
36
+ * The three digests are what make promotion answerable. "Has the permission surface
37
+ * changed between the version in prod and the one I am promoting?" is a string
38
+ * comparison here, where today it is a person remembering to look — and per §4 of the
39
+ * plan, a checkpoint that can be skipped is not a checkpoint.
40
+ */
41
+ export const verticalVersion = z.object({
42
+ id: z.string().min(1), // ULID
43
+ verticalSlug: slug,
44
+ version: z.string().min(1), // the builder's label — semver, a git sha, whatever they push
45
+ manifestDigest: z.string().min(1),
46
+ permissionDigest: z.string().min(1),
47
+ migrationDigest: z.string().min(1),
48
+ /** How to reach the deployment that serves it. Null until something is deployed. */
49
+ deploymentRef: z.string().min(1).nullable(),
50
+ admission: admissionStatus,
51
+ /** Why it was rejected, when it was. Null otherwise. */
52
+ admissionNote: z.string().nullable(),
53
+ createdAt: instant,
54
+ });
55
+ export const publishVersionInput = verticalVersion.pick({
56
+ id: true,
57
+ verticalSlug: true,
58
+ version: true,
59
+ manifestDigest: true,
60
+ permissionDigest: true,
61
+ migrationDigest: true,
62
+ deploymentRef: true,
63
+ });
64
+ /**
65
+ * Where a version is promoted to (#31 step 2).
66
+ *
67
+ * A channel is a named pointer per vertical. Promotion moves it. Dev, staging and
68
+ * prod are therefore the same vertical at different versions, which is the sentence
69
+ * the registry existed to make sayable.
70
+ */
71
+ export const channelName = z.enum(['dev', 'staging', 'prod']);
72
+ export const verticalChannel = z.object({
73
+ verticalSlug: slug,
74
+ channel: channelName,
75
+ versionId: z.string().min(1),
76
+ updatedAt: instant,
77
+ });
78
+ /**
79
+ * What a promoter must acknowledge, per §4's two human checkpoints.
80
+ *
81
+ * Today the migration and permission diffs are a MERGE-time convention: CI renders
82
+ * them and a human is expected to read them, but nothing connects that reading to
83
+ * the moment the change reaches anyone. Promotion is that moment — the blast radius
84
+ * is here, not at the merge.
85
+ *
86
+ * So promotion refuses when a digest differs and the corresponding flag is unset,
87
+ * naming both digests in the error. The flag is one deliberate act rather than a
88
+ * gate that can be passed by not noticing, and the acknowledgement lands in the
89
+ * admin log — which turns "someone reviewed it" from a claim into evidence.
90
+ */
91
+ export const promotionAcknowledgement = z.object({
92
+ permissionChange: z.boolean().optional(),
93
+ migrationChange: z.boolean().optional(),
94
+ });
95
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"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+ * §4.2 provisions a scope; nothing gave it a URL. This is the directory data a
6
+ * single environment-wide router resolves against — `hostname → (tenant, scope,
7
+ * vertical, surface, region)` — before dispatching to the vertical's worker.
8
+ */
9
+ /**
10
+ * Which app answers on this hostname.
11
+ *
12
+ * §5.5 originally specified one hostname per scope, which is already wrong: the
13
+ * shop fronts a storefront AND a back office from ONE scope, and RallyPoint a
14
+ * player app and a manager console. Same data, different audience and chrome — the
15
+ * split is deliberate and never a second source of truth.
16
+ *
17
+ * Vertical vocabulary, deliberately: the kernel never branches on it, exactly as it
18
+ * never branches on `scope.kind`. It is carried so the router knows where to send
19
+ * the request, and the vertical decides what that name means.
20
+ */
21
+ export declare const surfaceName: z.ZodString;
22
+ /**
23
+ * Where the hostname's traffic may be processed.
24
+ *
25
+ * The DO jurisdiction (K-7) pins storage and execution and is fixed at provisioning.
26
+ * This is the OTHER half: Regional Services pins TLS termination and processing.
27
+ *
28
+ * **This column records the region; it does not cause it** (K-30). TLS terminates
29
+ * before any of our code runs, so nothing read from here can move it — the region is
30
+ * enforced by a wildcard Regional Hostnames config per jurisdiction
31
+ * (`*.eu.substrat.run`), and default hostnames carry the jurisdiction in the name.
32
+ * What this column is for is letting the router detect a CONTRADICTION between the
33
+ * edge configuration and the directory, and refuse the request.
34
+ *
35
+ * Which is also why it should be derived from the scope's jurisdiction rather than
36
+ * accepted as an independent input: two values that must agree, supplied separately,
37
+ * eventually disagree — and this is the one an EU claim rests on. `bindHostname` does
38
+ * not enforce that yet.
39
+ *
40
+ * Null means unconstrained. Widening beyond `eu` is additive; Cloudflare also offers
41
+ * `us` and `fedramp`, and `us` is needed as soon as a second jurisdiction ships.
42
+ */
43
+ export declare const hostnameRegion: z.ZodNullable<z.ZodEnum<{
44
+ eu: "eu";
45
+ }>>;
46
+ export type HostnameRegion = z.infer<typeof hostnameRegion>;
47
+ /**
48
+ * Where a hostname is in its provisioning lifecycle (§4.2).
49
+ *
50
+ * Custom domains ride Cloudflare for SaaS, so a hostname is not a string somebody
51
+ * sets — it is DNS validation and certificate issuance, which take time and can
52
+ * fail. Treating it as a column would make "the domain does not work yet" and "the
53
+ * domain is broken" the same state.
54
+ *
55
+ * `pending` — recorded, nothing asked of Cloudflare yet
56
+ * `verifying` — DNS validation and cert issuance in flight
57
+ * `active` — serving
58
+ * `failed` — validation or issuance failed; `note` says why
59
+ */
60
+ export declare const hostnameStatus: z.ZodEnum<{
61
+ pending: "pending";
62
+ verifying: "verifying";
63
+ active: "active";
64
+ failed: "failed";
65
+ }>;
66
+ export type HostnameStatus = z.infer<typeof hostnameStatus>;
67
+ /**
68
+ * A hostname, normalized to lower case.
69
+ *
70
+ * DNS is case-insensitive, so `ACME.example.com` and `acme.example.com` are the same
71
+ * name — and if the map stored them as two rows, the global-uniqueness check would
72
+ * let two different scopes each hold "the same" hostname, and a request would resolve
73
+ * to whichever casing it happened to arrive in. Normalizing in the schema means both
74
+ * adapters inherit it rather than each remembering to.
75
+ *
76
+ * 253 is the maximum length of a fully-qualified domain name.
77
+ */
78
+ export declare const hostname: z.ZodString;
79
+ export declare const hostnameBinding: z.ZodObject<{
80
+ hostname: z.ZodString;
81
+ tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
82
+ scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
83
+ verticalSlug: z.ZodNullable<z.ZodString>;
84
+ surface: z.ZodString;
85
+ region: z.ZodNullable<z.ZodEnum<{
86
+ eu: "eu";
87
+ }>>;
88
+ status: z.ZodEnum<{
89
+ pending: "pending";
90
+ verifying: "verifying";
91
+ active: "active";
92
+ failed: "failed";
93
+ }>;
94
+ statusNote: z.ZodNullable<z.ZodString>;
95
+ canonical: z.ZodBoolean;
96
+ createdAt: z.core.$ZodBranded<z.ZodString, "Instant", "out">;
97
+ }, z.core.$strip>;
98
+ export type HostnameBinding = z.infer<typeof hostnameBinding>;
99
+ export declare const bindHostnameInput: z.ZodObject<{
100
+ tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
101
+ scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
102
+ hostname: z.ZodString;
103
+ surface: z.ZodString;
104
+ region: z.ZodNullable<z.ZodEnum<{
105
+ eu: "eu";
106
+ }>>;
107
+ canonical: z.ZodBoolean;
108
+ }, z.core.$strip>;
109
+ export type BindHostnameInput = z.infer<typeof bindHostnameInput>;
110
+ /**
111
+ * What the router needs to dispatch. Deliberately smaller than the full binding: a
112
+ * per-request hot path should read what it uses and nothing else.
113
+ */
114
+ export declare const routeTarget: z.ZodObject<{
115
+ tenantId: z.core.$ZodBranded<z.ZodString, "TenantId", "out">;
116
+ scopeId: z.core.$ZodBranded<z.ZodString, "ScopeId", "out">;
117
+ verticalSlug: z.ZodNullable<z.ZodString>;
118
+ surface: z.ZodString;
119
+ region: z.ZodNullable<z.ZodEnum<{
120
+ eu: "eu";
121
+ }>>;
122
+ }, z.core.$strip>;
123
+ export type RouteTarget = z.infer<typeof routeTarget>;
124
+ //# sourceMappingURL=routing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../src/routing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,aAA4B,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc;;GAA4B,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc;;;;;EAAuD,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,aAA2C,CAAC;AAEjE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;iBAiB1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,iBAAiB;;;;;;;;;iBAO5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;iBAMtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -0,0 +1,108 @@
1
+ import { z } from 'zod';
2
+ import { instant, scopeId, slug, tenantId } from './ids.js';
3
+ /**
4
+ * The hostname map (K-26; control-plane.md §4.7).
5
+ *
6
+ * §4.2 provisions a scope; nothing gave it a URL. This is the directory data a
7
+ * single environment-wide router resolves against — `hostname → (tenant, scope,
8
+ * vertical, surface, region)` — before dispatching to the vertical's worker.
9
+ */
10
+ /**
11
+ * Which app answers on this hostname.
12
+ *
13
+ * §5.5 originally specified one hostname per scope, which is already wrong: the
14
+ * shop fronts a storefront AND a back office from ONE scope, and RallyPoint a
15
+ * player app and a manager console. Same data, different audience and chrome — the
16
+ * split is deliberate and never a second source of truth.
17
+ *
18
+ * Vertical vocabulary, deliberately: the kernel never branches on it, exactly as it
19
+ * never branches on `scope.kind`. It is carried so the router knows where to send
20
+ * the request, and the vertical decides what that name means.
21
+ */
22
+ export const surfaceName = z.string().min(1).max(32);
23
+ /**
24
+ * Where the hostname's traffic may be processed.
25
+ *
26
+ * The DO jurisdiction (K-7) pins storage and execution and is fixed at provisioning.
27
+ * This is the OTHER half: Regional Services pins TLS termination and processing.
28
+ *
29
+ * **This column records the region; it does not cause it** (K-30). TLS terminates
30
+ * before any of our code runs, so nothing read from here can move it — the region is
31
+ * enforced by a wildcard Regional Hostnames config per jurisdiction
32
+ * (`*.eu.substrat.run`), and default hostnames carry the jurisdiction in the name.
33
+ * What this column is for is letting the router detect a CONTRADICTION between the
34
+ * edge configuration and the directory, and refuse the request.
35
+ *
36
+ * Which is also why it should be derived from the scope's jurisdiction rather than
37
+ * accepted as an independent input: two values that must agree, supplied separately,
38
+ * eventually disagree — and this is the one an EU claim rests on. `bindHostname` does
39
+ * not enforce that yet.
40
+ *
41
+ * Null means unconstrained. Widening beyond `eu` is additive; Cloudflare also offers
42
+ * `us` and `fedramp`, and `us` is needed as soon as a second jurisdiction ships.
43
+ */
44
+ export const hostnameRegion = z.enum(['eu']).nullable();
45
+ /**
46
+ * Where a hostname is in its provisioning lifecycle (§4.2).
47
+ *
48
+ * Custom domains ride Cloudflare for SaaS, so a hostname is not a string somebody
49
+ * sets — it is DNS validation and certificate issuance, which take time and can
50
+ * fail. Treating it as a column would make "the domain does not work yet" and "the
51
+ * domain is broken" the same state.
52
+ *
53
+ * `pending` — recorded, nothing asked of Cloudflare yet
54
+ * `verifying` — DNS validation and cert issuance in flight
55
+ * `active` — serving
56
+ * `failed` — validation or issuance failed; `note` says why
57
+ */
58
+ export const hostnameStatus = z.enum(['pending', 'verifying', 'active', 'failed']);
59
+ /**
60
+ * A hostname, normalized to lower case.
61
+ *
62
+ * DNS is case-insensitive, so `ACME.example.com` and `acme.example.com` are the same
63
+ * name — and if the map stored them as two rows, the global-uniqueness check would
64
+ * let two different scopes each hold "the same" hostname, and a request would resolve
65
+ * to whichever casing it happened to arrive in. Normalizing in the schema means both
66
+ * adapters inherit it rather than each remembering to.
67
+ *
68
+ * 253 is the maximum length of a fully-qualified domain name.
69
+ */
70
+ export const hostname = z.string().min(1).max(253).toLowerCase();
71
+ export const hostnameBinding = z.object({
72
+ hostname,
73
+ tenantId,
74
+ scopeId,
75
+ /** Denormalized from the scope, so the router resolves in one read. */
76
+ verticalSlug: slug.nullable(),
77
+ surface: surfaceName,
78
+ region: hostnameRegion,
79
+ status: hostnameStatus,
80
+ /** Why it failed, when it did. Null otherwise. */
81
+ statusNote: z.string().nullable(),
82
+ /**
83
+ * The one hostname a surface redirects to and issues certs for. Exactly one per
84
+ * (scope, surface) may hold it — the rest are aliases.
85
+ */
86
+ canonical: z.boolean(),
87
+ createdAt: instant,
88
+ });
89
+ export const bindHostnameInput = hostnameBinding.pick({
90
+ hostname: true,
91
+ tenantId: true,
92
+ scopeId: true,
93
+ surface: true,
94
+ region: true,
95
+ canonical: true,
96
+ });
97
+ /**
98
+ * What the router needs to dispatch. Deliberately smaller than the full binding: a
99
+ * per-request hot path should read what it uses and nothing else.
100
+ */
101
+ export const routeTarget = z.object({
102
+ tenantId,
103
+ scopeId,
104
+ verticalSlug: slug.nullable(),
105
+ surface: surfaceName,
106
+ region: hostnameRegion,
107
+ });
108
+ //# sourceMappingURL=routing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routing.js","sourceRoot":"","sources":["../src/routing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE5D;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAGxD;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGnF;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;AAEjE,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,uEAAuE;IACvE,YAAY,EAAE,IAAI,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,cAAc;IACtB,kDAAkD;IAClD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC;;;OAGG;IACH,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,SAAS,EAAE,OAAO;CACnB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,IAAI,CAAC;IACpD,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,QAAQ;IACR,OAAO;IACP,YAAY,EAAE,IAAI,CAAC,QAAQ,EAAE;IAC7B,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,cAAc;CACvB,CAAC,CAAC"}
package/dist/tenancy.d.ts CHANGED
@@ -117,6 +117,7 @@ export declare const scope: z.ZodObject<{
117
117
  eu: "eu";
118
118
  }>>;
119
119
  vertical: z.ZodNullable<z.ZodString>;
120
+ verticalVersionId: z.ZodNullable<z.ZodString>;
120
121
  schemaVersion: z.ZodString;
121
122
  migrationFailure: z.ZodNullable<z.ZodObject<{
122
123
  version: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"tenancy.d.ts","sourceRoot":"","sources":["../src/tenancy.ts"],"names":[],"mappings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,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,gBAAgB;;;;;kBAOhB,CAAC;AACd,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgChB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC"}
package/dist/tenancy.js CHANGED
@@ -88,6 +88,15 @@ export const scope = z.object({
88
88
  // audit log's `vertical` target real for scope-lifecycle actions, and what
89
89
  // console item 1 means by "which vertical each scope runs".
90
90
  vertical: z.string().min(1).nullable(),
91
+ /**
92
+ * The registered version this scope runs (#31). Null for a scope provisioned
93
+ * before the registry, or bound to a vertical we ship but have not versioned.
94
+ *
95
+ * Kept ALONGSIDE `vertical` rather than replacing it: the slug is what the audit
96
+ * log's target and the console's filters read, and a denormalized label that
97
+ * survives a version being superseded is worth more than one join.
98
+ */
99
+ verticalVersionId: z.string().min(1).nullable(),
91
100
  // The scope's migration state: the count of applied (module, version) pairs,
92
101
  // as a string. Written host-side after migrations apply — never caller-supplied.
93
102
  // '0' means "provisioned, nothing applied yet". Comparing it against the host's
@@ -1 +1 @@
1
- {"version":3,"file":"tenancy.js","sourceRoot":"","sources":["../src/tenancy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEnE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;AAGxE,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM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CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC/C,6EAA6E;IAC7E,iFAAiF;IACjF,gFAAgF;IAChF,+EAA+E;IAC/E,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,gBAAgB;IAChB,SAAS,EAAE,OAAO;CACnB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@substrat-run/contracts",
3
- "version": "0.6.0",
3
+ "version": "0.8.0",
4
4
  "description": "Substrat kernel contract schemas — Zod is the source of truth (master plan D-22); OAS/JSON Schema are emitted artifacts",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {