@fjall/generator 2.23.1 → 2.24.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/.minified CHANGED
@@ -1 +1 @@
1
- 139 files minified at 2026-07-02T12:17:55.593Z
1
+ 141 files minified at 2026-07-05T07:50:57.469Z
@@ -14,6 +14,7 @@ export declare const ResourceSnapshotSchema: z.ZodObject<{
14
14
  "vpc-peer": "vpc-peer";
15
15
  "vpc-peer-accepter": "vpc-peer-accepter";
16
16
  "cross-plan-connection": "cross-plan-connection";
17
+ organisation: "organisation";
17
18
  }>;
18
19
  name: z.ZodString;
19
20
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -32,6 +33,7 @@ export declare const DriftStateSchema: z.ZodObject<{
32
33
  "vpc-peer": "vpc-peer";
33
34
  "vpc-peer-accepter": "vpc-peer-accepter";
34
35
  "cross-plan-connection": "cross-plan-connection";
36
+ organisation: "organisation";
35
37
  }>;
36
38
  name: z.ZodString;
37
39
  }, z.core.$strict>;
@@ -23,9 +23,10 @@ export interface ImportInfo {
23
23
  export type InsertionStatementType = StatementType | "import" | "app-init" | "tags";
24
24
  /**
25
25
  * Returns the byte offset at which a new statement of `newType` should
26
- * be inserted. Mirrors legacy `findInsertionPositionByType` verbatim.
26
+ * be inserted. Ports legacy `findInsertionPositionByType`, extended
27
+ * with the `organisation` kind.
27
28
  *
28
- * Algorithm (unchanged from the legacy port):
29
+ * Algorithm:
29
30
  * 1. Look up `newType`'s index in the canonical order.
30
31
  * 2. Walk `existingImports` and `existingResources` in document order.
31
32
  * Track the last entry whose type index is <= the target index.
@@ -1 +1 @@
1
- const o=["import","app-init","tags","database","storage","messaging","compute","network","vpc-peer","vpc-peer-accepter","cross-plan-connection","cdn","pattern"];function d(c,i,p,r){const t=o.indexOf(p);if(t===-1)return r;let e;const a=o.indexOf("import");for(const n of c)a<=t&&(e=n.endPos);for(const n of i){const s=o.indexOf(n.type);s!==-1&&s<=t&&(e=n.endPos)}return e??r}export{d as findInsertionPosition};
1
+ const e={import:0,"app-init":1,tags:2,organisation:3,database:4,storage:5,messaging:6,compute:7,network:8,"vpc-peer":9,"vpc-peer-accepter":10,"cross-plan-connection":11,cdn:12,pattern:13};function p(r,s,i,a){const o=e[i];let n;const c=e.import;for(const t of r)c<=o&&(n=t.endPos);for(const t of s)e[t.type]<=o&&(n=t.endPos);return n??a}export{p as findInsertionPosition};
@@ -38,8 +38,18 @@ declare const FACTORY_IDENTIFIERS: {
38
38
  readonly "vpc-peer": "VpcPeerFactory";
39
39
  readonly "vpc-peer-accepter": "VpcPeerAccepterFactory";
40
40
  readonly "cross-plan-connection": "CrossPlanConnectionFactory";
41
+ readonly organisation: "OrganisationFactory";
41
42
  };
42
43
  export type FactoryIdentifier = (typeof FACTORY_IDENTIFIERS)[StatementType];
43
44
  export declare const STATEMENT_REGISTRY: Record<StatementType, StatementTypeEntry>;
45
+ /**
46
+ * Statement types as registered, derived from the registry keys. The
47
+ * registry's `Record<StatementType, StatementTypeEntry>` annotation
48
+ * above is the compile-time exhaustiveness guard — it lives in compiled
49
+ * `src/` (test globs are excluded from `tsc`), so a missing or extra
50
+ * key fails the typecheck at the declaration. Runtime consumers needing
51
+ * the key set derive it from here rather than re-listing the literals.
52
+ */
53
+ export declare const REGISTERED_STATEMENT_TYPES: ReadonlyArray<StatementType>;
44
54
  export declare function findTypeByIdentifier(identifier: string): StatementType | undefined;
45
55
  export {};
@@ -1 +1 @@
1
- import{z as c}from"zod";import{CDNResourcePlanSchema as i,ComputeResourcePlanSchema as u,CrossPlanConnectionResourcePlanSchema as g,DatabaseResourcePlanSchema as l,NetworkResourcePlanSchema as h,NextJSPatternConfigSchema as d,PayloadPatternConfigSchema as y,S3ResourcePlanSchema as S,SQSResourcePlanSchema as F,VpcPeerAccepterResourcePlanSchema as P,VpcPeerResourcePlanSchema as f}from"../schemas/index.js";import{failure as C}from"../types/Result.js";const r={database:"DatabaseFactory",storage:"StorageFactory",compute:"ComputeFactory",messaging:"MessagingFactory",cdn:"CdnFactory",network:"NetworkFactory",pattern:"PatternFactory","vpc-peer":"VpcPeerFactory","vpc-peer-accepter":"VpcPeerAccepterFactory","cross-plan-connection":"CrossPlanConnectionFactory"};function a(e){const{name:t,...o}=e.shape;return c.object(o).partial().strict()}const b=a(l),R=a(S),v=(()=>{const{name:e,...t}=u.shape;return c.object(t).partial().strict()})(),E=a(F),w=a(i),k=a(h),T=(()=>{const{name:e,type:t,...o}=y.shape,{name:D,type:V,...m}=d.shape;return c.object({...o,...m}).partial().strict()})(),_=a(f),x=a(P),N=a(g);function s(e,t){return C({kind:"SemanticQueryError",reason:`StatementTypeEntry.${e} for ${t} is not wired; existing types dispatch through the shared locator/generator.`})}function j(e){return{factoryIdentifier:e,findByShape:()=>s("locator.findByShape",e),validateContext:()=>s("locator.validateContext",e)}}function A(e){return{build:()=>{const t=s("generator.build",e);throw new Error(t.success?"unreachable":t.error.reason)}}}function n(e,t){return{factoryIdentifier:e,locator:j(e),generator:A(e),schemaFragment:t}}const p={database:n(r.database,b),storage:n(r.storage,R),compute:n(r.compute,v),messaging:n(r.messaging,E),cdn:n(r.cdn,w),network:n(r.network,k),pattern:n(r.pattern,T),"vpc-peer":n(r["vpc-peer"],_),"vpc-peer-accepter":n(r["vpc-peer-accepter"],x),"cross-plan-connection":n(r["cross-plan-connection"],N)};function I(e){const t=Object.keys(p);for(const o of t)if(p[o].factoryIdentifier===e)return o}export{p as STATEMENT_REGISTRY,I as findTypeByIdentifier};
1
+ import{z as c}from"zod";import{CDNResourcePlanSchema as m,ComputeResourcePlanSchema as g,CrossPlanConnectionResourcePlanSchema as u,DatabaseResourcePlanSchema as l,NetworkResourcePlanSchema as S,NextJSPatternConfigSchema as h,OrganisationResourcePlanSchema as y,PayloadPatternConfigSchema as F,S3ResourcePlanSchema as P,SQSResourcePlanSchema as d,VpcPeerAccepterResourcePlanSchema as f,VpcPeerResourcePlanSchema as E}from"../schemas/index.js";import{failure as R}from"../types/Result.js";const n={database:"DatabaseFactory",storage:"StorageFactory",compute:"ComputeFactory",messaging:"MessagingFactory",cdn:"CdnFactory",network:"NetworkFactory",pattern:"PatternFactory","vpc-peer":"VpcPeerFactory","vpc-peer-accepter":"VpcPeerAccepterFactory","cross-plan-connection":"CrossPlanConnectionFactory",organisation:"OrganisationFactory"};function a(e){const{name:t,...o}=e.shape;return c.object(o).partial().strict()}const b=a(l),C=a(P),T=(()=>{const{name:e,...t}=g.shape;return c.object(t).partial().strict()})(),v=a(d),_=a(m),k=a(S),w=(()=>{const{name:e,type:t,...o}=F.shape,{name:V,type:B,...i}=h.shape;return c.object({...o,...i}).partial().strict()})(),x=a(E),N=a(f),j=a(u),A=a(y);function s(e,t){return R({kind:"SemanticQueryError",reason:`StatementTypeEntry.${e} for ${t} is not wired; existing types dispatch through the shared locator/generator.`})}function O(e){return{factoryIdentifier:e,findByShape:()=>s("locator.findByShape",e),validateContext:()=>s("locator.validateContext",e)}}function D(e){return{build:()=>{const t=s("generator.build",e);throw new Error(t.success?"unreachable":t.error.reason)}}}function r(e,t){return{factoryIdentifier:e,locator:O(e),generator:D(e),schemaFragment:t}}const p={database:r(n.database,b),storage:r(n.storage,C),compute:r(n.compute,T),messaging:r(n.messaging,v),cdn:r(n.cdn,_),network:r(n.network,k),pattern:r(n.pattern,w),"vpc-peer":r(n["vpc-peer"],x),"vpc-peer-accepter":r(n["vpc-peer-accepter"],N),"cross-plan-connection":r(n["cross-plan-connection"],j),organisation:r(n.organisation,A)},Y=Object.keys(p);function Q(e){const t=Object.keys(p);for(const o of t)if(p[o].factoryIdentifier===e)return o}export{Y as REGISTERED_STATEMENT_TYPES,p as STATEMENT_REGISTRY,Q as findTypeByIdentifier};
@@ -22,6 +22,7 @@ export declare const StatementTypeSchema: z.ZodEnum<{
22
22
  "vpc-peer": "vpc-peer";
23
23
  "vpc-peer-accepter": "vpc-peer-accepter";
24
24
  "cross-plan-connection": "cross-plan-connection";
25
+ organisation: "organisation";
25
26
  }>;
26
27
  export type StatementType = z.infer<typeof StatementTypeSchema>;
27
28
  export declare const ResourceNameSchema: z.ZodString;
@@ -38,6 +39,7 @@ export declare const AddOptionsSchema: z.ZodObject<{
38
39
  "vpc-peer": "vpc-peer";
39
40
  "vpc-peer-accepter": "vpc-peer-accepter";
40
41
  "cross-plan-connection": "cross-plan-connection";
42
+ organisation: "organisation";
41
43
  }>;
42
44
  name: z.ZodString;
43
45
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -61,6 +63,7 @@ export declare const RemoveOptionsSchema: z.ZodObject<{
61
63
  "vpc-peer": "vpc-peer";
62
64
  "vpc-peer-accepter": "vpc-peer-accepter";
63
65
  "cross-plan-connection": "cross-plan-connection";
66
+ organisation: "organisation";
64
67
  }>;
65
68
  name: z.ZodString;
66
69
  filePath: z.ZodOptional<z.ZodString>;
@@ -80,6 +83,7 @@ export declare const ModifyOptionsSchema: z.ZodObject<{
80
83
  "vpc-peer": "vpc-peer";
81
84
  "vpc-peer-accepter": "vpc-peer-accepter";
82
85
  "cross-plan-connection": "cross-plan-connection";
86
+ organisation: "organisation";
83
87
  }>;
84
88
  name: z.ZodString;
85
89
  properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -114,6 +118,7 @@ export declare const ResourceListingEntrySchema: z.ZodObject<{
114
118
  "vpc-peer": "vpc-peer";
115
119
  "vpc-peer-accepter": "vpc-peer-accepter";
116
120
  "cross-plan-connection": "cross-plan-connection";
121
+ organisation: "organisation";
117
122
  }>;
118
123
  name: z.ZodString;
119
124
  filePath: z.ZodString;
@@ -135,6 +140,7 @@ export declare const ResourceListingSchema: z.ZodObject<{
135
140
  "vpc-peer": "vpc-peer";
136
141
  "vpc-peer-accepter": "vpc-peer-accepter";
137
142
  "cross-plan-connection": "cross-plan-connection";
143
+ organisation: "organisation";
138
144
  }>;
139
145
  name: z.ZodString;
140
146
  filePath: z.ZodString;
@@ -1 +1 @@
1
- import{z as t}from"zod";import{VALIDATION_MESSAGES as i,VALIDATION_PATTERNS as c}from"../validation/patterns.js";const o=t.object({force:t.boolean().optional(),resolutionMap:t.record(t.string(),t.unknown()).optional()}).strict(),e=t.enum(["database","storage","compute","messaging","cdn","network","pattern","vpc-peer","vpc-peer-accepter","cross-plan-connection"]),n=t.string().regex(c.PASCAL_CASE,i.PASCAL_CASE),r=t.record(t.string(),t.unknown()),g=t.object({type:e,name:n,properties:r,filePath:t.string().optional(),driftPolicy:o.optional(),branch:t.string().optional()}).strict(),h=t.object({type:e,name:n,filePath:t.string().optional(),force:t.boolean().optional(),branch:t.string().optional()}).strict(),b=t.object({type:e,name:n,properties:r,filePath:t.string().optional(),driftPolicy:o.optional(),branch:t.string().optional()}).strict(),a=t.object({line:t.number().int().positive(),column:t.number().int().positive(),context:t.string()}).strict(),s=t.object({added:t.number().int().nonnegative(),removed:t.number().int().nonnegative()}).strict(),p=t.object({type:e,name:t.string(),filePath:t.string(),start:t.number().int().nonnegative(),length:t.number().int().nonnegative()}).strict(),S=t.object({filePath:t.string(),resources:t.array(p)}).strict(),u=t.object({content:t.string(),linesChanged:s,references:t.array(a).optional(),warnings:t.array(t.string()).optional()}).strict(),d=t.object({property:t.string(),base:t.unknown().optional(),theirs:t.unknown(),ours:t.unknown(),verdict:t.enum(["clean","no-op","compatible","conflict"])}).strict();export{g as AddOptionsSchema,u as CodemodSuccessSchema,o as DriftPolicySchema,s as LinesChangedSchema,b as ModifyOptionsSchema,d as PropertyDeltaSchema,a as ReferenceLocationSchema,h as RemoveOptionsSchema,p as ResourceListingEntrySchema,S as ResourceListingSchema,n as ResourceNameSchema,e as StatementTypeSchema};
1
+ import{z as t}from"zod";import{VALIDATION_MESSAGES as i,VALIDATION_PATTERNS as c}from"../validation/patterns.js";const o=t.object({force:t.boolean().optional(),resolutionMap:t.record(t.string(),t.unknown()).optional()}).strict(),e=t.enum(["database","storage","compute","messaging","cdn","network","pattern","vpc-peer","vpc-peer-accepter","cross-plan-connection","organisation"]),n=t.string().regex(c.PASCAL_CASE,i.PASCAL_CASE),r=t.record(t.string(),t.unknown()),g=t.object({type:e,name:n,properties:r,filePath:t.string().optional(),driftPolicy:o.optional(),branch:t.string().optional()}).strict(),h=t.object({type:e,name:n,filePath:t.string().optional(),force:t.boolean().optional(),branch:t.string().optional()}).strict(),b=t.object({type:e,name:n,properties:r,filePath:t.string().optional(),driftPolicy:o.optional(),branch:t.string().optional()}).strict(),a=t.object({line:t.number().int().positive(),column:t.number().int().positive(),context:t.string()}).strict(),s=t.object({added:t.number().int().nonnegative(),removed:t.number().int().nonnegative()}).strict(),p=t.object({type:e,name:t.string(),filePath:t.string(),start:t.number().int().nonnegative(),length:t.number().int().nonnegative()}).strict(),S=t.object({filePath:t.string(),resources:t.array(p)}).strict(),u=t.object({content:t.string(),linesChanged:s,references:t.array(a).optional(),warnings:t.array(t.string()).optional()}).strict(),d=t.object({property:t.string(),base:t.unknown().optional(),theirs:t.unknown(),ours:t.unknown(),verdict:t.enum(["clean","no-op","compatible","conflict"])}).strict();export{g as AddOptionsSchema,u as CodemodSuccessSchema,o as DriftPolicySchema,s as LinesChangedSchema,b as ModifyOptionsSchema,d as PropertyDeltaSchema,a as ReferenceLocationSchema,h as RemoveOptionsSchema,p as ResourceListingEntrySchema,S as ResourceListingSchema,n as ResourceNameSchema,e as StatementTypeSchema};
@@ -1,3 +1,4 @@
1
1
  export * from "./resourceSchemas.js";
2
2
  export * from "./constants.js";
3
+ export * from "./securityBoundary.js";
3
4
  export { type AmiHardwareType, getArchitectureForInstanceType, validateArchitectureMatch, isArchitectureCompatible, } from "./instanceTypeArchitecture.js";
@@ -1 +1 @@
1
- export*from"./resourceSchemas.js";export*from"./constants.js";import{getArchitectureForInstanceType as o,validateArchitectureMatch as i,isArchitectureCompatible as a}from"./instanceTypeArchitecture.js";export{o as getArchitectureForInstanceType,a as isArchitectureCompatible,i as validateArchitectureMatch};
1
+ export*from"./resourceSchemas.js";export*from"./constants.js";export*from"./securityBoundary.js";import{getArchitectureForInstanceType as i,validateArchitectureMatch as p,isArchitectureCompatible as a}from"./instanceTypeArchitecture.js";export{i as getArchitectureForInstanceType,a as isArchitectureCompatible,p as validateArchitectureMatch};
@@ -0,0 +1,292 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Canonical Identity Centre source-mode vocabulary. Single source of
4
+ * truth — the Zod schemas below and the components-infrastructure
5
+ * construct/validator all derive from this tuple, so a source added
6
+ * here flows to every consumer without a second edit.
7
+ */
8
+ export declare const IDENTITY_CENTRE_SOURCES: readonly ["fjall-managed", "external", "external-manual"];
9
+ export declare const IdentityCentreSourceSchema: z.ZodEnum<{
10
+ external: "external";
11
+ "fjall-managed": "fjall-managed";
12
+ "external-manual": "external-manual";
13
+ }>;
14
+ export type IdentityCentreSource = z.infer<typeof IdentityCentreSourceSchema>;
15
+ /**
16
+ * Names of the built-in permission sets the Organisation construct creates
17
+ * unless `defaultPermissionSets: false`. The definitions (policy ARNs,
18
+ * descriptions) live in the construct's `DEFAULT_PERMISSION_SETS`, which is
19
+ * typed against this tuple so the two cannot drift.
20
+ */
21
+ export declare const DEFAULT_PERMISSION_SET_NAMES: readonly ["AdministratorAccess", "ReadOnlyAccess", "Billing"];
22
+ export type DefaultPermissionSetName = (typeof DEFAULT_PERMISSION_SET_NAMES)[number];
23
+ export declare const IdentityCentreUserSpecSchema: z.ZodObject<{
24
+ givenName: z.ZodString;
25
+ familyName: z.ZodString;
26
+ displayName: z.ZodOptional<z.ZodString>;
27
+ expires: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strict>;
29
+ export type IdentityCentreUserSpec = z.infer<typeof IdentityCentreUserSpecSchema>;
30
+ export declare const CustomerManagedPolicyRefSchema: z.ZodObject<{
31
+ name: z.ZodString;
32
+ path: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strict>;
34
+ export type CustomerManagedPolicyRef = z.infer<typeof CustomerManagedPolicyRefSchema>;
35
+ export declare const PermissionsBoundarySpecSchema: z.ZodUnion<readonly [z.ZodObject<{
36
+ managedPolicyArn: z.ZodString;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ customerManagedPolicy: z.ZodObject<{
39
+ name: z.ZodString;
40
+ path: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$strict>;
42
+ }, z.core.$strict>]>;
43
+ export type PermissionsBoundarySpec = z.infer<typeof PermissionsBoundarySpecSchema>;
44
+ export declare const IdentityCentrePermissionSetSpecSchema: z.ZodObject<{
45
+ managedPolicies: z.ZodOptional<z.ZodArray<z.ZodString>>;
46
+ inlinePolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
47
+ customerManagedPolicies: z.ZodOptional<z.ZodArray<z.ZodObject<{
48
+ name: z.ZodString;
49
+ path: z.ZodOptional<z.ZodString>;
50
+ }, z.core.$strict>>>;
51
+ permissionsBoundary: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
52
+ managedPolicyArn: z.ZodString;
53
+ }, z.core.$strict>, z.ZodObject<{
54
+ customerManagedPolicy: z.ZodObject<{
55
+ name: z.ZodString;
56
+ path: z.ZodOptional<z.ZodString>;
57
+ }, z.core.$strict>;
58
+ }, z.core.$strict>]>>;
59
+ sessionDuration: z.ZodOptional<z.ZodString>;
60
+ description: z.ZodOptional<z.ZodString>;
61
+ accounts: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"all">]>>;
62
+ includeManagementAccount: z.ZodOptional<z.ZodBoolean>;
63
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
+ }, z.core.$strict>;
65
+ export type IdentityCentrePermissionSetSpec = z.infer<typeof IdentityCentrePermissionSetSpecSchema>;
66
+ export declare const IdentityCentreGroupSpecSchema: z.ZodObject<{
67
+ description: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strict>;
69
+ export type IdentityCentreGroupSpec = z.infer<typeof IdentityCentreGroupSpecSchema>;
70
+ /**
71
+ * Discriminated on `source`. The "external" variant omits `users` entirely
72
+ * (mirroring the construct's `users?: never`) — `.strict()` rejects a `users`
73
+ * key on that variant at the write gate. Each variant's discriminator
74
+ * literal is `satisfies`-pinned to {@link IdentityCentreSource} so a
75
+ * literal outside the canonical tuple fails `tsc`.
76
+ */
77
+ export declare const IdentityCentreConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
78
+ source: z.ZodLiteral<"fjall-managed">;
79
+ users: z.ZodRecord<z.ZodString, z.ZodObject<{
80
+ givenName: z.ZodString;
81
+ familyName: z.ZodString;
82
+ displayName: z.ZodOptional<z.ZodString>;
83
+ expires: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strict>>;
85
+ groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
86
+ description: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strict>>>;
88
+ permissionSets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
89
+ managedPolicies: z.ZodOptional<z.ZodArray<z.ZodString>>;
90
+ inlinePolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
91
+ customerManagedPolicies: z.ZodOptional<z.ZodArray<z.ZodObject<{
92
+ name: z.ZodString;
93
+ path: z.ZodOptional<z.ZodString>;
94
+ }, z.core.$strict>>>;
95
+ permissionsBoundary: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
96
+ managedPolicyArn: z.ZodString;
97
+ }, z.core.$strict>, z.ZodObject<{
98
+ customerManagedPolicy: z.ZodObject<{
99
+ name: z.ZodString;
100
+ path: z.ZodOptional<z.ZodString>;
101
+ }, z.core.$strict>;
102
+ }, z.core.$strict>]>>;
103
+ sessionDuration: z.ZodOptional<z.ZodString>;
104
+ description: z.ZodOptional<z.ZodString>;
105
+ accounts: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"all">]>>;
106
+ includeManagementAccount: z.ZodOptional<z.ZodBoolean>;
107
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
108
+ }, z.core.$strict>>>;
109
+ memberships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
110
+ resolutionVersion: z.ZodOptional<z.ZodNumber>;
111
+ defaultPermissionSets: z.ZodOptional<z.ZodBoolean>;
112
+ }, z.core.$strict>, z.ZodObject<{
113
+ source: z.ZodLiteral<"external">;
114
+ groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
115
+ description: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strict>>>;
117
+ permissionSets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
118
+ managedPolicies: z.ZodOptional<z.ZodArray<z.ZodString>>;
119
+ inlinePolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
120
+ customerManagedPolicies: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
+ name: z.ZodString;
122
+ path: z.ZodOptional<z.ZodString>;
123
+ }, z.core.$strict>>>;
124
+ permissionsBoundary: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
125
+ managedPolicyArn: z.ZodString;
126
+ }, z.core.$strict>, z.ZodObject<{
127
+ customerManagedPolicy: z.ZodObject<{
128
+ name: z.ZodString;
129
+ path: z.ZodOptional<z.ZodString>;
130
+ }, z.core.$strict>;
131
+ }, z.core.$strict>]>>;
132
+ sessionDuration: z.ZodOptional<z.ZodString>;
133
+ description: z.ZodOptional<z.ZodString>;
134
+ accounts: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"all">]>>;
135
+ includeManagementAccount: z.ZodOptional<z.ZodBoolean>;
136
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
+ }, z.core.$strict>>>;
138
+ memberships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
139
+ resolutionVersion: z.ZodOptional<z.ZodNumber>;
140
+ defaultPermissionSets: z.ZodOptional<z.ZodBoolean>;
141
+ }, z.core.$strict>, z.ZodObject<{
142
+ source: z.ZodLiteral<"external-manual">;
143
+ users: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
144
+ givenName: z.ZodString;
145
+ familyName: z.ZodString;
146
+ displayName: z.ZodOptional<z.ZodString>;
147
+ expires: z.ZodOptional<z.ZodString>;
148
+ }, z.core.$strict>>>;
149
+ groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
150
+ description: z.ZodOptional<z.ZodString>;
151
+ }, z.core.$strict>>>;
152
+ permissionSets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
153
+ managedPolicies: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
+ inlinePolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
155
+ customerManagedPolicies: z.ZodOptional<z.ZodArray<z.ZodObject<{
156
+ name: z.ZodString;
157
+ path: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strict>>>;
159
+ permissionsBoundary: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
160
+ managedPolicyArn: z.ZodString;
161
+ }, z.core.$strict>, z.ZodObject<{
162
+ customerManagedPolicy: z.ZodObject<{
163
+ name: z.ZodString;
164
+ path: z.ZodOptional<z.ZodString>;
165
+ }, z.core.$strict>;
166
+ }, z.core.$strict>]>>;
167
+ sessionDuration: z.ZodOptional<z.ZodString>;
168
+ description: z.ZodOptional<z.ZodString>;
169
+ accounts: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"all">]>>;
170
+ includeManagementAccount: z.ZodOptional<z.ZodBoolean>;
171
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
172
+ }, z.core.$strict>>>;
173
+ memberships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
174
+ resolutionVersion: z.ZodOptional<z.ZodNumber>;
175
+ defaultPermissionSets: z.ZodOptional<z.ZodBoolean>;
176
+ }, z.core.$strict>], "source">;
177
+ export type IdentityCentreConfig = z.infer<typeof IdentityCentreConfigSchema>;
178
+ /**
179
+ * Engine-side plan for `OrganisationFactory.build("Name", {...})` statements.
180
+ * `accounts` stays opaque: the scaffold passes the `ACCOUNTS` identifier,
181
+ * which the snapshot layer already represents as `{ kind: "expression" }`.
182
+ */
183
+ export declare const OrganisationResourcePlanSchema: z.ZodObject<{
184
+ name: z.ZodString;
185
+ type: z.ZodOptional<z.ZodLiteral<"organisation">>;
186
+ organisationName: z.ZodOptional<z.ZodString>;
187
+ orgEmail: z.ZodOptional<z.ZodString>;
188
+ accounts: z.ZodOptional<z.ZodUnknown>;
189
+ accountIds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
190
+ identityCentre: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
191
+ source: z.ZodLiteral<"fjall-managed">;
192
+ users: z.ZodRecord<z.ZodString, z.ZodObject<{
193
+ givenName: z.ZodString;
194
+ familyName: z.ZodString;
195
+ displayName: z.ZodOptional<z.ZodString>;
196
+ expires: z.ZodOptional<z.ZodString>;
197
+ }, z.core.$strict>>;
198
+ groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
199
+ description: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strict>>>;
201
+ permissionSets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
202
+ managedPolicies: z.ZodOptional<z.ZodArray<z.ZodString>>;
203
+ inlinePolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
204
+ customerManagedPolicies: z.ZodOptional<z.ZodArray<z.ZodObject<{
205
+ name: z.ZodString;
206
+ path: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strict>>>;
208
+ permissionsBoundary: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
209
+ managedPolicyArn: z.ZodString;
210
+ }, z.core.$strict>, z.ZodObject<{
211
+ customerManagedPolicy: z.ZodObject<{
212
+ name: z.ZodString;
213
+ path: z.ZodOptional<z.ZodString>;
214
+ }, z.core.$strict>;
215
+ }, z.core.$strict>]>>;
216
+ sessionDuration: z.ZodOptional<z.ZodString>;
217
+ description: z.ZodOptional<z.ZodString>;
218
+ accounts: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"all">]>>;
219
+ includeManagementAccount: z.ZodOptional<z.ZodBoolean>;
220
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
221
+ }, z.core.$strict>>>;
222
+ memberships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
223
+ resolutionVersion: z.ZodOptional<z.ZodNumber>;
224
+ defaultPermissionSets: z.ZodOptional<z.ZodBoolean>;
225
+ }, z.core.$strict>, z.ZodObject<{
226
+ source: z.ZodLiteral<"external">;
227
+ groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
228
+ description: z.ZodOptional<z.ZodString>;
229
+ }, z.core.$strict>>>;
230
+ permissionSets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
231
+ managedPolicies: z.ZodOptional<z.ZodArray<z.ZodString>>;
232
+ inlinePolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
233
+ customerManagedPolicies: z.ZodOptional<z.ZodArray<z.ZodObject<{
234
+ name: z.ZodString;
235
+ path: z.ZodOptional<z.ZodString>;
236
+ }, z.core.$strict>>>;
237
+ permissionsBoundary: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
238
+ managedPolicyArn: z.ZodString;
239
+ }, z.core.$strict>, z.ZodObject<{
240
+ customerManagedPolicy: z.ZodObject<{
241
+ name: z.ZodString;
242
+ path: z.ZodOptional<z.ZodString>;
243
+ }, z.core.$strict>;
244
+ }, z.core.$strict>]>>;
245
+ sessionDuration: z.ZodOptional<z.ZodString>;
246
+ description: z.ZodOptional<z.ZodString>;
247
+ accounts: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"all">]>>;
248
+ includeManagementAccount: z.ZodOptional<z.ZodBoolean>;
249
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
250
+ }, z.core.$strict>>>;
251
+ memberships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
252
+ resolutionVersion: z.ZodOptional<z.ZodNumber>;
253
+ defaultPermissionSets: z.ZodOptional<z.ZodBoolean>;
254
+ }, z.core.$strict>, z.ZodObject<{
255
+ source: z.ZodLiteral<"external-manual">;
256
+ users: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
257
+ givenName: z.ZodString;
258
+ familyName: z.ZodString;
259
+ displayName: z.ZodOptional<z.ZodString>;
260
+ expires: z.ZodOptional<z.ZodString>;
261
+ }, z.core.$strict>>>;
262
+ groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
263
+ description: z.ZodOptional<z.ZodString>;
264
+ }, z.core.$strict>>>;
265
+ permissionSets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
266
+ managedPolicies: z.ZodOptional<z.ZodArray<z.ZodString>>;
267
+ inlinePolicy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
268
+ customerManagedPolicies: z.ZodOptional<z.ZodArray<z.ZodObject<{
269
+ name: z.ZodString;
270
+ path: z.ZodOptional<z.ZodString>;
271
+ }, z.core.$strict>>>;
272
+ permissionsBoundary: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
273
+ managedPolicyArn: z.ZodString;
274
+ }, z.core.$strict>, z.ZodObject<{
275
+ customerManagedPolicy: z.ZodObject<{
276
+ name: z.ZodString;
277
+ path: z.ZodOptional<z.ZodString>;
278
+ }, z.core.$strict>;
279
+ }, z.core.$strict>]>>;
280
+ sessionDuration: z.ZodOptional<z.ZodString>;
281
+ description: z.ZodOptional<z.ZodString>;
282
+ accounts: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodLiteral<"all">]>>;
283
+ includeManagementAccount: z.ZodOptional<z.ZodBoolean>;
284
+ groups: z.ZodOptional<z.ZodArray<z.ZodString>>;
285
+ }, z.core.$strict>>>;
286
+ memberships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
287
+ resolutionVersion: z.ZodOptional<z.ZodNumber>;
288
+ defaultPermissionSets: z.ZodOptional<z.ZodBoolean>;
289
+ }, z.core.$strict>], "source">, z.ZodLiteral<false>]>>;
290
+ allowedRegions: z.ZodOptional<z.ZodArray<z.ZodString>>;
291
+ }, z.core.$strict>;
292
+ export type OrganisationResourcePlan = z.infer<typeof OrganisationResourcePlanSchema>;
@@ -0,0 +1 @@
1
+ import{z as n}from"zod";import{VALIDATION_PATTERNS as r,VALIDATION_MESSAGES as a}from"../validation/patterns.js";import{ResourceNameSchema as s}from"./baseSchemas.js";const c=["fjall-managed","external","external-manual"],y=n.enum(c),x=["AdministratorAccess","ReadOnlyAccess","Billing"],e=n.object({givenName:n.string().min(1),familyName:n.string().min(1),displayName:n.string().min(1).optional(),expires:n.string().min(1).optional()}).strict(),i=n.object({name:n.string().min(1),path:n.string().min(1).optional()}).strict(),l=n.union([n.object({managedPolicyArn:n.string().min(1)}).strict(),n.object({customerManagedPolicy:i}).strict()]),m=n.object({managedPolicies:n.array(n.string().min(1)).optional(),inlinePolicy:n.record(n.string(),n.unknown()).optional(),customerManagedPolicies:n.array(i).optional(),permissionsBoundary:l.optional(),sessionDuration:n.string().min(1).optional(),description:n.string().optional(),accounts:n.union([n.array(n.string().min(1)),n.literal("all")]).optional(),includeManagementAccount:n.boolean().optional(),groups:n.array(n.string().min(1)).optional()}).strict(),p=n.object({description:n.string().optional()}).strict(),t=n.string().regex(r.EMAIL,a.EMAIL),o={groups:n.record(n.string(),p).optional(),permissionSets:n.record(n.string(),m).optional(),memberships:n.record(n.string(),n.array(t)).optional(),resolutionVersion:n.number().int().min(1).optional(),defaultPermissionSets:n.boolean().optional()},g=n.discriminatedUnion("source",[n.object({...o,source:n.literal("fjall-managed"),users:n.record(t,e)}).strict(),n.object({...o,source:n.literal("external")}).strict(),n.object({...o,source:n.literal("external-manual"),users:n.record(t,e).optional()}).strict()]),I=n.object({name:s,type:n.literal("organisation").optional(),organisationName:n.string().min(1).optional(),orgEmail:t.optional(),accounts:n.unknown().optional(),accountIds:n.record(n.string(),n.string()).optional(),identityCentre:n.union([g,n.literal(!1)]).optional(),allowedRegions:n.array(n.string().min(1)).optional()}).strict();export{i as CustomerManagedPolicyRefSchema,x as DEFAULT_PERMISSION_SET_NAMES,c as IDENTITY_CENTRE_SOURCES,g as IdentityCentreConfigSchema,p as IdentityCentreGroupSpecSchema,m as IdentityCentrePermissionSetSpecSchema,y as IdentityCentreSourceSchema,e as IdentityCentreUserSpecSchema,I as OrganisationResourcePlanSchema,l as PermissionsBoundarySpecSchema};
@@ -13,6 +13,7 @@
13
13
  * computeSchemas.ts — EC2, Lambda, ECS, container, service configs
14
14
  * patternSchemas.ts — Payload/NextJS pattern configs, tier schemas
15
15
  * applicationSchemas.ts — ApplicationResourcePlan, ApplicationGenerator
16
+ * organisationSchemas.ts — Organisation resource plan, identityCentre union
16
17
  *
17
18
  * All exports are re-exported here so existing consumers continue to work
18
19
  * without any import path changes.
@@ -27,3 +28,4 @@ export * from "./computeSchemas.js";
27
28
  export * from "./patternSchemas.js";
28
29
  export * from "./applicationSchemas.js";
29
30
  export * from "./alarmSchemas.js";
31
+ export * from "./organisationSchemas.js";
@@ -1 +1 @@
1
- export*from"./baseSchemas.js";export*from"./databaseSchemas.js";export*from"./networkSchemas.js";export*from"./storageSchemas.js";export*from"./messagingSchemas.js";export*from"./cdnSchemas.js";export*from"./computeSchemas.js";export*from"./patternSchemas.js";export*from"./applicationSchemas.js";export*from"./alarmSchemas.js";
1
+ export*from"./baseSchemas.js";export*from"./databaseSchemas.js";export*from"./networkSchemas.js";export*from"./storageSchemas.js";export*from"./messagingSchemas.js";export*from"./cdnSchemas.js";export*from"./computeSchemas.js";export*from"./patternSchemas.js";export*from"./applicationSchemas.js";export*from"./alarmSchemas.js";export*from"./organisationSchemas.js";
@@ -0,0 +1,100 @@
1
+ import { type GovernancePreset } from "./constants.js";
2
+ /**
3
+ * The Fjall deploy-role permissions-boundary ceiling, keyed by governance tier.
4
+ *
5
+ * A permissions boundary is the HARD CAP on the two admin surfaces Fjall deploys
6
+ * run under — the `FjallDeploy${orgId}` OIDC role and the CDK bootstrap
7
+ * `cfn-exec-role`. Unlike a per-deploy STS session policy (Phase D), a boundary
8
+ * DOES apply to an assumed role, so it cannot be bypassed by CDK's role hand-off.
9
+ * See aiDocs research 2026-07-05-phase-d-session-policy-assume-role-bypass.md.
10
+ *
11
+ * This module is the single source of truth for the boundary NAME derivation
12
+ * and per-tier STATEMENT CONTENT. It lives in `@fjall/generator` (not
13
+ * `@fjall/util`) because it keys on `GovernancePreset`, which lives here — and
14
+ * `@fjall/util` cannot import it without a circular dependency. Consumers:
15
+ * `@fjall/components-infrastructure` (creates the policy in `oidcConnector.ts`),
16
+ * `@fjall/deploy-core` (passes the name to `cdk bootstrap`), `@fjall/cli`
17
+ * (resolves the tier). The Quick-Create YAML twin mirrors the content by hand,
18
+ * kept in lockstep by `oidcConnectorTemplate.test.ts` (presence parity + a
19
+ * statement-content deep-compare against the hardened tier of this SSoT).
20
+ *
21
+ * NOT related to `PermissionsBoundarySpec` in organisationSchemas.ts — that is a
22
+ * REFERENCE to an existing policy for Identity Centre permission sets; this
23
+ * defines boundary CONTENT for the deploy role.
24
+ */
25
+ /**
26
+ * A single IAM policy statement in AWS JSON shape — the exact form
27
+ * `iam.PolicyStatement.fromJson` consumes. Kept as plain data so the pure
28
+ * generator carries no CDK dependency: the CDK construct maps these to
29
+ * `iam.PolicyStatement`, and the hand-authored Quick-Create YAML mirrors them.
30
+ */
31
+ export interface BoundaryStatement {
32
+ Sid?: string;
33
+ Effect: "Allow" | "Deny";
34
+ Action?: string | string[];
35
+ NotAction?: string | string[];
36
+ Resource?: string | string[];
37
+ NotResource?: string | string[];
38
+ Condition?: Record<string, Record<string, string | string[]>>;
39
+ }
40
+ /**
41
+ * The customer-managed permissions-boundary policy name for an org's deploy
42
+ * surface. Org-id-suffixed to match the deploy role (`FjallDeploy${orgId}`),
43
+ * giving per-connection isolation and sidestepping the cross-org
44
+ * `EntityAlreadyExistsException` collision a shared tier-named policy would hit
45
+ * (the same class the account-global OIDC provider solves with adopt-if-exists).
46
+ *
47
+ * COUPLED VALUE — three sites MUST derive this name identically, or
48
+ * `cdk bootstrap --custom-permissions-boundary` looks up a policy that does not
49
+ * exist and fails: (1) the CDK construct that CREATES the policy
50
+ * (`config/aws/oidcConnector.ts`), (2) the Quick-Create YAML twin
51
+ * (`oidc-connector.yaml`, `!Sub "FjallDeployBoundary${FjallOrgId}"` — mirrors
52
+ * this by hand, parity-linted), and (3) the bootstrap flag
53
+ * (`CdkService.runCdkBootstrap` → `CdkOptions.permissionsBoundary`).
54
+ */
55
+ export declare function deployBoundaryName(fjallOrgId: string): string;
56
+ /**
57
+ * Tier → boundary statement list. `Record<GovernancePreset, …>` so a new tier
58
+ * landing in `GOVERNANCE_PRESETS` lights up a missing-key `error TS2741` here —
59
+ * the exhaustiveness guard fires structurally.
60
+ *
61
+ * LIVE-TUNING CANDIDATES (deliberately NOT in v1 — each is emitted by a real
62
+ * CloudFormation deploy/destroy/bootstrap UPDATE path, or collides with a
63
+ * deferred feature, so it needs live redeploy validation and/or resource
64
+ * scoping before it can be denied. Each carries the completeness-review verdict
65
+ * (adversarial content review, aiDocs 2026-07-05-phase-e-deploy-boundary):
66
+ * • `iam:AttachRolePolicy` of `AdministratorAccess` — breaks bootstrap's
67
+ * creation of the cfn-exec-role (which carries AdministratorAccess).
68
+ * • `iam:PutRolePermissionsBoundary` [companion to FjallDenyBoundarySelfEscape]
69
+ * — the SECOND self-escape (replace own boundary with a permissive one).
70
+ * Emitted by re-bootstrap boundary UPDATE and by the deferred E3b path
71
+ * (cdk.json permissionsBoundary on app roles → CFN UPDATE of an existing
72
+ * role's boundary). Deny only once E3b resource-scopes it (allow when
73
+ * setting the Fjall boundary / exempt CDK-created role paths); hardened.
74
+ * • Boundary-policy self-protection (deny `iam:CreatePolicyVersion` /
75
+ * `iam:SetDefaultPolicyVersion` on the FjallDeployBoundary policy itself)
76
+ * — blocks the role republishing a permissive version of its own ceiling;
77
+ * requires out-of-band admin to re-tune, so land with the live loop.
78
+ * • `kms:PutKeyPolicy` — CFN emits it on key-policy/grant UPDATE (e.g.
79
+ * `key.grantDecrypt(newPrincipal)` on redeploy); denying outright breaks a
80
+ * legitimate app redeploy. Needs a live cycle or resource scoping.
81
+ * • `kms:ScheduleKeyDeletion` — `cdk destroy` of a DESTROY-policy CMK emits
82
+ * it (kms.ts pendingWindow); safe to deny ONLY if hardened commits to
83
+ * RETAIN-only keys (matches the org SCP, which exempts the automation role).
84
+ * • `backup:DeleteBackupVault` / `DeleteRecoveryPoint` (foundation) +
85
+ * `Put/DeleteBackupVaultLockConfiguration` (hardened) — no construct emits
86
+ * them TODAY (vaults are RETAIN-forced), but the safety is coupled to that
87
+ * RETAIN invariant and to the adopt-mode re-lock CFN surface; validate in a
88
+ * DR-enabled redeploy before denying.
89
+ * • `guardduty:DisassociateFromMasterAccount` / `StopMonitoringMembers`
90
+ * (compliance) — never emitted (the org CR only calls
91
+ * UpdateOrganizationConfiguration), but they fire only in a platform/org
92
+ * account; validate in a platform hardened cycle.
93
+ *
94
+ * NEVER DENY (completeness review verified these are LOAD-BEARING — the org
95
+ * security-services deploy CALLS them with AutoEnableOrganizationMembers:'ALL',
96
+ * so denying breaks a legitimate platform-org deploy):
97
+ * • `securityhub:UpdateOrganizationConfiguration`
98
+ * • `guardduty:UpdateOrganizationConfiguration`
99
+ */
100
+ export declare const SECURITY_TIER_TO_BOUNDARY: Record<GovernancePreset, BoundaryStatement[]>;
@@ -0,0 +1 @@
1
+ function t(c){return`FjallDeployBoundary${c}`}const e={Sid:"FjallInheritAdministratorAccess",Effect:"Allow",Action:"*",Resource:"*"},n=[{Sid:"FjallDenyOrgAndAccountEscape",Effect:"Deny",Action:["organizations:LeaveOrganization","account:CloseAccount"],Resource:"*"},{Sid:"FjallDenyDisableAuditLogging",Effect:"Deny",Action:["cloudtrail:StopLogging"],Resource:"*"},{Sid:"FjallDenyBoundarySelfEscape",Effect:"Deny",Action:["iam:DeleteRolePermissionsBoundary"],Resource:"*"},{Sid:"FjallDenyDisableKmsKey",Effect:"Deny",Action:["kms:DisableKey"],Resource:"*"}],o=[...n,{Sid:"FjallDenyStandingHumanCredentials",Effect:"Deny",Action:["iam:CreateUser","iam:CreateLoginProfile","iam:CreateAccessKey","iam:CreateAccountAlias"],Resource:"*"},{Sid:"FjallDenyDisableConfigRecorder",Effect:"Deny",Action:["config:StopConfigurationRecorder"],Resource:"*"}],i=[...o,{Sid:"FjallDenyAccountPasswordPolicyTamper",Effect:"Deny",Action:["iam:UpdateAccountPasswordPolicy","iam:DeleteAccountPasswordPolicy"],Resource:"*"},{Sid:"FjallDenyDisableDefaultEbsEncryption",Effect:"Deny",Action:["ec2:DisableEbsEncryptionByDefault"],Resource:"*"}],a={foundation:[e,...n],compliance:[e,...o],hardened:[e,...i]};export{a as SECURITY_TIER_TO_BOUNDARY,t as deployBoundaryName};
@@ -27,8 +27,6 @@ export declare const VALIDATION_MESSAGES: Readonly<{
27
27
  readonly NAME: "Name is required";
28
28
  readonly USERNAME: "Username is required";
29
29
  readonly CONTAINER_NAME: "Container name is required";
30
- readonly FIRST_NAME: "First name is required";
31
- readonly LAST_NAME: "Last name is required";
32
30
  readonly GROUP: "Group is required";
33
31
  readonly PATTERN_NAME: "Pattern name is required";
34
32
  readonly ROUTING_PATH: "Routing path is required";
@@ -1 +1 @@
1
- import{SECRET_NAME_ERROR as e,SSM_COMPONENT_ERROR as t}from"@fjall/util";const n=Object.freeze({IDENTIFIER:"Must start with a letter, contain only letters, numbers, and hyphens",NEW_APP_NAME:"Must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens",IDENTIFIER_MIN_LENGTH:"Must be at least 2 characters",IDENTIFIER_NO_TRAILING_HYPHEN:"Must not end with a hyphen",IDENTIFIER_NO_CONSECUTIVE_HYPHENS:"Must not contain consecutive hyphens",RESOURCE_NAME:"Must start with a letter and contain only letters and numbers (PascalCase recommended)",ECS_SERVICE_NAME:"Service name must start with a letter and contain only letters, numbers, and hyphens",BUCKET_NAME:"Bucket name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens",DATABASE_NAME:"Database name must start with a letter and contain only letters, numbers, and underscores",RESOURCE_TYPE:"Resource type must be in format 'category' or 'category:type'",SSM_PATH:"SSM path must start with / and contain valid namespace segments (e.g., /myapp/ApiCluster/service)",SECRET_NAME:e,SSM_COMPONENT:t,EMAIL:"Please enter a valid email address",DOMAIN:"Please enter a valid domain (e.g., cms.example.com)",DOCKER_IMAGE:"Invalid Docker image name format",REQUIRED:{APP_NAME:"Application name is required",RESOURCE_NAME:"Resource name is required",BUCKET_NAME:"Bucket name is required",SERVICE_NAME:"Service name is required",NETWORK_NAME:"Network name is required",DATABASE_NAME:"Database name is required",ORGANISATION_NAME:"Organisation name is required",EMAIL:"Email is required",NAME:"Name is required",USERNAME:"Username is required",CONTAINER_NAME:"Container name is required",FIRST_NAME:"First name is required",LAST_NAME:"Last name is required",GROUP:"Group is required",PATTERN_NAME:"Pattern name is required",ROUTING_PATH:"Routing path is required",RESOURCE_REFERENCE:"Resource reference is required",RESOURCE_TYPE:"Resource type is required",VARIANT:"Variant is required",SUBTYPE:"Subtype is required",DEPLOY_TARGET:"Deploy target is required",DESTROY_TARGET:"Destroy target is required"},MAX_LENGTH:{APP_NAME:"Application name must be 50 characters or less",RESOURCE_NAME:"Resource name must be 63 characters or less",BUCKET_NAME:"Bucket name must be 63 characters or less",SERVICE_NAME:"Service name must be 255 characters or less",NETWORK_NAME:"Network name must be 50 characters or less",DATABASE_NAME:"Database name must be 63 characters or less",ORGANISATION_NAME:"Organisation name must be 50 characters or less"},PORT:{INTEGER:"Port must be an integer",MIN:"Port must be at least 1",MAX:"Port cannot exceed 65535"},USERNAME:{MAX_LENGTH:"Username cannot exceed 63 characters"},LAMBDA:{MEMORY:{INTEGER:"Lambda memory must be an integer",MIN:"Memory must be at least 128 MB",MAX:"Memory cannot exceed 10240 MB",MULTIPLE:"Memory must be 128 MB or a multiple of 64 MB"},TIMEOUT:{INTEGER:"Timeout must be an integer",MIN:"Timeout must be at least 1 second",MAX:"Timeout cannot exceed 900 seconds"},RUNTIME:"Lambda runtime must contain only letters, digits, dots, underscores, or dashes (e.g. 'NODEJS_20_X' or 'nodejs20.x')"},ENV_VAR_NAME:"Environment variable names must start with a letter or underscore and contain only letters, digits, and underscores",PRIORITY:{INTEGER:"Priority must be an integer",MIN:"Priority must be at least 1",MAX:"Priority cannot exceed 50000"},CAPACITY:{MIN:{INTEGER:"Minimum capacity must be an integer",MIN_0:"Minimum capacity must be at least 0",MIN_1:"Minimum capacity must be at least 1",MAX:"Minimum capacity cannot exceed 100"},MAX:{INTEGER:"Maximum capacity must be an integer",MIN_0:"Maximum capacity must be at least 0",MIN_1:"Maximum capacity must be at least 1",MAX:"Maximum capacity cannot exceed 100"},DESIRED:{INTEGER:"Desired count must be an integer",MIN:"Desired count must be at least 0",MAX:"Desired count cannot exceed 100"},WARM_POOL_REQUIRED:"minCapacity 0 requires a warmPool \u2014 without it, new tasks wait 60-90s for a cold instance launch",WARM_POOL:{MIN_SIZE:{INTEGER:"Warm pool minSize must be an integer",MIN:"Warm pool minSize must be at least 0",MAX:"Warm pool minSize cannot exceed 100"},MIN_SIZE_EXCEEDS_MAX_CAPACITY:"warmPool.minSize cannot exceed maxCapacity \u2014 the warm pool cannot hold more instances than the ASG allows"}},MEMORY_LIMIT:{INTEGER:"Memory limit must be an integer",MIN_512:"Memory limit must be at least 512 MiB",MIN_128:"Memory limit must be at least 128 MiB",MAX:"Memory limit cannot exceed 30720 MiB"},DATABASE:{PORT:{INTEGER:"Database port must be an integer",MIN:"Database port must be at least 1024",MAX:"Database port cannot exceed 65535"},NAME:{REQUIRED:"Database name is required",MAX_LENGTH:"Database name must be 63 characters or less"}},BACKUP_RETENTION:{INTEGER:"Backup retention must be an integer",MIN:"Backup retention must be at least 1 day",MAX:"Backup retention cannot exceed 35 days"},SQS:{VISIBILITY_TIMEOUT:{INTEGER:"Visibility timeout must be an integer",MIN:"Visibility timeout must be at least 0 seconds",MAX:"Visibility timeout cannot exceed 43200 seconds (12 hours)"},RETENTION_PERIOD:{INTEGER:"Retention period must be an integer",MIN:"Retention period must be at least 60 seconds",MAX:"Retention period cannot exceed 1209600 seconds (14 days)"}},READER:{COUNT:{INTEGER:"Reader count must be an integer",MIN:"Reader count must be at least 0",MAX:"Reader count cannot exceed 15"}},IDENTIFIER_SUFFIX:{REQUIRED:"Identifier suffix is required when specified",MAX_LENGTH:"Identifier suffix cannot exceed 50 characters"},ROTATION:{INTEGER:"Rotation days must be an integer",MIN:"Rotation interval must be at least 1 day",MAX:"Rotation interval cannot exceed 365 days"},MAX_CONNECTIONS:{INTEGER:"Max connections must be an integer",MIN:"Max connections must be at least 1",MAX:"Max connections cannot exceed 100"},MONITORING_INTERVAL:{INTEGER:"Monitoring interval must be an integer",MIN:"Monitoring interval must be at least 0",MAX:"Monitoring interval cannot exceed 60 seconds",VALUES:"Monitoring interval must be 0, 1, 5, 10, 15, 30, or 60 seconds"},RETENTION_DAYS:{INTEGER:"Retention days must be an integer",MIN:"Retention days must be at least 1",MAX:"Retention days cannot exceed 365"},BATCH_SIZE:{INTEGER:"Batch size must be an integer",MIN:"Batch size must be at least 1",MAX:"Batch size cannot exceed 10000"},SERVICE:{UNIQUE_WITHIN_CLUSTER:"Service names must be unique within a cluster",MIN_REQUIRED:"At least one service is required",ROUTING_REQUIRED:"Multiple services with ports require routing config (path or host)"},PROXY_CONFIG:{MAX_IDLE_CONNECTIONS:{INTEGER:"Max idle connections must be an integer",MIN:"Max idle connections must be at least 0",MAX:"Max idle connections cannot exceed 100"},BORROW_TIMEOUT:{INTEGER:"Connection borrow timeout must be an integer",MIN:"Connection borrow timeout must be at least 1 second",MAX:"Connection borrow timeout cannot exceed 3600 seconds"}},MAX_AZS:{INTEGER:"Max AZs must be an integer",MIN:"Max AZs must be at least 1",MAX:"Max AZs cannot exceed 3"},BATCHING_WINDOW:{INTEGER:"Max batching window must be an integer",MIN:"Max batching window must be at least 0",MAX:"Max batching window cannot exceed 300 seconds"},HEALTH_CHECK:{INTERVAL:{INTEGER:"Health check interval must be an integer",MIN:"Health check interval must be at least 5 seconds",MAX:"Health check interval cannot exceed 300 seconds"},TIMEOUT:{INTEGER:"Health check timeout must be an integer",MIN:"Health check timeout must be at least 2 seconds",MAX:"Health check timeout cannot exceed 60 seconds"},RETRIES:{INTEGER:"Health check retries must be an integer",MIN:"Health check retries must be at least 1",MAX:"Health check retries cannot exceed 10"},START_PERIOD:{INTEGER:"Health check start period must be an integer",MIN:"Health check start period must be at least 0 seconds",MAX:"Health check start period cannot exceed 300 seconds"}},EPHEMERAL_STORAGE:{INTEGER:"Ephemeral storage size must be an integer",MIN:"Ephemeral storage size must be at least 512 MB",MAX:"Ephemeral storage size cannot exceed 10240 MB"},MAX_MESSAGE_SIZE:{INTEGER:"Max message size must be an integer",MIN:"Max message size must be at least 1024 bytes",MAX:"Max message size cannot exceed 262144 bytes (256 KB)"},CAPACITY_CONSTRAINT:{MIN_LTE_MAX:"minCapacity must be less than or equal to maxCapacity"},DIRECT_ACCESS:{NO_DOMAIN:"directAccess cannot be used with domain (no ALB for HTTPS)",NO_LOAD_BALANCER:"directAccess cannot be used with loadBalancer (mutually exclusive)"},GLOBAL_AURORA:{PRIMARY_REGION_REQUIRED:"primaryRegion is required for GlobalAurora databases"},NAT_GATEWAY:{INTEGER:"NAT gateway count must be an integer",MIN:"NAT gateway count must be at least 0",MAX:"NAT gateway count cannot exceed 3"},CIDR_MASK:{INTEGER:"CIDR mask must be an integer",MIN:"CIDR mask must be at least 16",MAX:"CIDR mask cannot exceed 28"},CPU:{INTEGER:"CPU must be an integer",MIN:"CPU must be at least 256 units",MAX:"CPU cannot exceed 4096 units"},KMS:{KEY_REQUIRED:"KMS key ARN is required when using KMS encryption"},READER_INSTANCES:{MAX:"Cannot have more than 15 reader instances",COUNT_OR_INSTANCES:"Cannot specify both 'count' and 'instances' - use one or the other"},GENERATOR_CAPACITY:{MIN:{MIN:"Minimum capacity must be at least 1",MAX:"Minimum capacity cannot exceed 1000"},MAX:{MIN:"Maximum capacity must be at least 1",MAX:"Maximum capacity cannot exceed 1000"}},INSTANCE_TYPE:"Unknown instance type. Common types include: t4g.micro, t4g.small, m5.large",ARCHITECTURE_MISMATCH:"Architecture mismatch between instance type and AMI",ALLOCATED_STORAGE:{INTEGER:"Allocated storage must be an integer",MIN:"Allocated storage must be at least 20 GB",MAX:"Allocated storage cannot exceed 65536 GB"},DLQ:{MAX_RECEIVE_COUNT:{INTEGER:"Max receive count must be an integer",MIN:"Max receive count must be at least 1",MAX:"Max receive count cannot exceed 1000"}},ALARM:{PERCENTAGE:{MIN:"Threshold must be at least 1%",MAX:"Threshold must be at most 100%"},FREE_STORAGE_GIB:{MIN:"Free storage threshold must be at least 1 GiB"}},REGION:"Invalid AWS region",PASCAL_CASE:"Resource name must start with an uppercase letter and contain only alphanumerics (PascalCase).",IMAGE_DOCKER_MUTEX:"image and docker are mutually exclusive",AWS_ACCOUNT_ID:"AWS account id must be exactly 12 digits (no hyphens)",VPC_ID:"VPC id must look like vpc-abc12345",ROLE_ARN:"Role ARN must have the form arn:aws:iam::<account-id>:role/<name>",CIDR:"CIDR must be in dotted-quad/prefix-length form (e.g. 10.0.0.0/16)",VPC_PEER:{MIN_REQUESTER_ACCOUNTS:"At least one requester account id is required",REGION_REQUIRED:"Peer region is required when specified",ROUTE_TABLE_ID_REQUIRED:"Route table id must not be empty"},SCHEDULE_EXPRESSION:"Schedule expression must be 'rate(N minute|minutes|hour|hours|day|days)' with N>=1, or 'cron(<6-field AWS expression>)'"});export{n as VALIDATION_MESSAGES};
1
+ import{SECRET_NAME_ERROR as e,SSM_COMPONENT_ERROR as t}from"@fjall/util";const n=Object.freeze({IDENTIFIER:"Must start with a letter, contain only letters, numbers, and hyphens",NEW_APP_NAME:"Must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens",IDENTIFIER_MIN_LENGTH:"Must be at least 2 characters",IDENTIFIER_NO_TRAILING_HYPHEN:"Must not end with a hyphen",IDENTIFIER_NO_CONSECUTIVE_HYPHENS:"Must not contain consecutive hyphens",RESOURCE_NAME:"Must start with a letter and contain only letters and numbers (PascalCase recommended)",ECS_SERVICE_NAME:"Service name must start with a letter and contain only letters, numbers, and hyphens",BUCKET_NAME:"Bucket name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens",DATABASE_NAME:"Database name must start with a letter and contain only letters, numbers, and underscores",RESOURCE_TYPE:"Resource type must be in format 'category' or 'category:type'",SSM_PATH:"SSM path must start with / and contain valid namespace segments (e.g., /myapp/ApiCluster/service)",SECRET_NAME:e,SSM_COMPONENT:t,EMAIL:"Please enter a valid email address",DOMAIN:"Please enter a valid domain (e.g., cms.example.com)",DOCKER_IMAGE:"Invalid Docker image name format",REQUIRED:{APP_NAME:"Application name is required",RESOURCE_NAME:"Resource name is required",BUCKET_NAME:"Bucket name is required",SERVICE_NAME:"Service name is required",NETWORK_NAME:"Network name is required",DATABASE_NAME:"Database name is required",ORGANISATION_NAME:"Organisation name is required",EMAIL:"Email is required",NAME:"Name is required",USERNAME:"Username is required",CONTAINER_NAME:"Container name is required",GROUP:"Group is required",PATTERN_NAME:"Pattern name is required",ROUTING_PATH:"Routing path is required",RESOURCE_REFERENCE:"Resource reference is required",RESOURCE_TYPE:"Resource type is required",VARIANT:"Variant is required",SUBTYPE:"Subtype is required",DEPLOY_TARGET:"Deploy target is required",DESTROY_TARGET:"Destroy target is required"},MAX_LENGTH:{APP_NAME:"Application name must be 50 characters or less",RESOURCE_NAME:"Resource name must be 63 characters or less",BUCKET_NAME:"Bucket name must be 63 characters or less",SERVICE_NAME:"Service name must be 255 characters or less",NETWORK_NAME:"Network name must be 50 characters or less",DATABASE_NAME:"Database name must be 63 characters or less",ORGANISATION_NAME:"Organisation name must be 50 characters or less"},PORT:{INTEGER:"Port must be an integer",MIN:"Port must be at least 1",MAX:"Port cannot exceed 65535"},USERNAME:{MAX_LENGTH:"Username cannot exceed 63 characters"},LAMBDA:{MEMORY:{INTEGER:"Lambda memory must be an integer",MIN:"Memory must be at least 128 MB",MAX:"Memory cannot exceed 10240 MB",MULTIPLE:"Memory must be 128 MB or a multiple of 64 MB"},TIMEOUT:{INTEGER:"Timeout must be an integer",MIN:"Timeout must be at least 1 second",MAX:"Timeout cannot exceed 900 seconds"},RUNTIME:"Lambda runtime must contain only letters, digits, dots, underscores, or dashes (e.g. 'NODEJS_20_X' or 'nodejs20.x')"},ENV_VAR_NAME:"Environment variable names must start with a letter or underscore and contain only letters, digits, and underscores",PRIORITY:{INTEGER:"Priority must be an integer",MIN:"Priority must be at least 1",MAX:"Priority cannot exceed 50000"},CAPACITY:{MIN:{INTEGER:"Minimum capacity must be an integer",MIN_0:"Minimum capacity must be at least 0",MIN_1:"Minimum capacity must be at least 1",MAX:"Minimum capacity cannot exceed 100"},MAX:{INTEGER:"Maximum capacity must be an integer",MIN_0:"Maximum capacity must be at least 0",MIN_1:"Maximum capacity must be at least 1",MAX:"Maximum capacity cannot exceed 100"},DESIRED:{INTEGER:"Desired count must be an integer",MIN:"Desired count must be at least 0",MAX:"Desired count cannot exceed 100"},WARM_POOL_REQUIRED:"minCapacity 0 requires a warmPool \u2014 without it, new tasks wait 60-90s for a cold instance launch",WARM_POOL:{MIN_SIZE:{INTEGER:"Warm pool minSize must be an integer",MIN:"Warm pool minSize must be at least 0",MAX:"Warm pool minSize cannot exceed 100"},MIN_SIZE_EXCEEDS_MAX_CAPACITY:"warmPool.minSize cannot exceed maxCapacity \u2014 the warm pool cannot hold more instances than the ASG allows"}},MEMORY_LIMIT:{INTEGER:"Memory limit must be an integer",MIN_512:"Memory limit must be at least 512 MiB",MIN_128:"Memory limit must be at least 128 MiB",MAX:"Memory limit cannot exceed 30720 MiB"},DATABASE:{PORT:{INTEGER:"Database port must be an integer",MIN:"Database port must be at least 1024",MAX:"Database port cannot exceed 65535"},NAME:{REQUIRED:"Database name is required",MAX_LENGTH:"Database name must be 63 characters or less"}},BACKUP_RETENTION:{INTEGER:"Backup retention must be an integer",MIN:"Backup retention must be at least 1 day",MAX:"Backup retention cannot exceed 35 days"},SQS:{VISIBILITY_TIMEOUT:{INTEGER:"Visibility timeout must be an integer",MIN:"Visibility timeout must be at least 0 seconds",MAX:"Visibility timeout cannot exceed 43200 seconds (12 hours)"},RETENTION_PERIOD:{INTEGER:"Retention period must be an integer",MIN:"Retention period must be at least 60 seconds",MAX:"Retention period cannot exceed 1209600 seconds (14 days)"}},READER:{COUNT:{INTEGER:"Reader count must be an integer",MIN:"Reader count must be at least 0",MAX:"Reader count cannot exceed 15"}},IDENTIFIER_SUFFIX:{REQUIRED:"Identifier suffix is required when specified",MAX_LENGTH:"Identifier suffix cannot exceed 50 characters"},ROTATION:{INTEGER:"Rotation days must be an integer",MIN:"Rotation interval must be at least 1 day",MAX:"Rotation interval cannot exceed 365 days"},MAX_CONNECTIONS:{INTEGER:"Max connections must be an integer",MIN:"Max connections must be at least 1",MAX:"Max connections cannot exceed 100"},MONITORING_INTERVAL:{INTEGER:"Monitoring interval must be an integer",MIN:"Monitoring interval must be at least 0",MAX:"Monitoring interval cannot exceed 60 seconds",VALUES:"Monitoring interval must be 0, 1, 5, 10, 15, 30, or 60 seconds"},RETENTION_DAYS:{INTEGER:"Retention days must be an integer",MIN:"Retention days must be at least 1",MAX:"Retention days cannot exceed 365"},BATCH_SIZE:{INTEGER:"Batch size must be an integer",MIN:"Batch size must be at least 1",MAX:"Batch size cannot exceed 10000"},SERVICE:{UNIQUE_WITHIN_CLUSTER:"Service names must be unique within a cluster",MIN_REQUIRED:"At least one service is required",ROUTING_REQUIRED:"Multiple services with ports require routing config (path or host)"},PROXY_CONFIG:{MAX_IDLE_CONNECTIONS:{INTEGER:"Max idle connections must be an integer",MIN:"Max idle connections must be at least 0",MAX:"Max idle connections cannot exceed 100"},BORROW_TIMEOUT:{INTEGER:"Connection borrow timeout must be an integer",MIN:"Connection borrow timeout must be at least 1 second",MAX:"Connection borrow timeout cannot exceed 3600 seconds"}},MAX_AZS:{INTEGER:"Max AZs must be an integer",MIN:"Max AZs must be at least 1",MAX:"Max AZs cannot exceed 3"},BATCHING_WINDOW:{INTEGER:"Max batching window must be an integer",MIN:"Max batching window must be at least 0",MAX:"Max batching window cannot exceed 300 seconds"},HEALTH_CHECK:{INTERVAL:{INTEGER:"Health check interval must be an integer",MIN:"Health check interval must be at least 5 seconds",MAX:"Health check interval cannot exceed 300 seconds"},TIMEOUT:{INTEGER:"Health check timeout must be an integer",MIN:"Health check timeout must be at least 2 seconds",MAX:"Health check timeout cannot exceed 60 seconds"},RETRIES:{INTEGER:"Health check retries must be an integer",MIN:"Health check retries must be at least 1",MAX:"Health check retries cannot exceed 10"},START_PERIOD:{INTEGER:"Health check start period must be an integer",MIN:"Health check start period must be at least 0 seconds",MAX:"Health check start period cannot exceed 300 seconds"}},EPHEMERAL_STORAGE:{INTEGER:"Ephemeral storage size must be an integer",MIN:"Ephemeral storage size must be at least 512 MB",MAX:"Ephemeral storage size cannot exceed 10240 MB"},MAX_MESSAGE_SIZE:{INTEGER:"Max message size must be an integer",MIN:"Max message size must be at least 1024 bytes",MAX:"Max message size cannot exceed 262144 bytes (256 KB)"},CAPACITY_CONSTRAINT:{MIN_LTE_MAX:"minCapacity must be less than or equal to maxCapacity"},DIRECT_ACCESS:{NO_DOMAIN:"directAccess cannot be used with domain (no ALB for HTTPS)",NO_LOAD_BALANCER:"directAccess cannot be used with loadBalancer (mutually exclusive)"},GLOBAL_AURORA:{PRIMARY_REGION_REQUIRED:"primaryRegion is required for GlobalAurora databases"},NAT_GATEWAY:{INTEGER:"NAT gateway count must be an integer",MIN:"NAT gateway count must be at least 0",MAX:"NAT gateway count cannot exceed 3"},CIDR_MASK:{INTEGER:"CIDR mask must be an integer",MIN:"CIDR mask must be at least 16",MAX:"CIDR mask cannot exceed 28"},CPU:{INTEGER:"CPU must be an integer",MIN:"CPU must be at least 256 units",MAX:"CPU cannot exceed 4096 units"},KMS:{KEY_REQUIRED:"KMS key ARN is required when using KMS encryption"},READER_INSTANCES:{MAX:"Cannot have more than 15 reader instances",COUNT_OR_INSTANCES:"Cannot specify both 'count' and 'instances' - use one or the other"},GENERATOR_CAPACITY:{MIN:{MIN:"Minimum capacity must be at least 1",MAX:"Minimum capacity cannot exceed 1000"},MAX:{MIN:"Maximum capacity must be at least 1",MAX:"Maximum capacity cannot exceed 1000"}},INSTANCE_TYPE:"Unknown instance type. Common types include: t4g.micro, t4g.small, m5.large",ARCHITECTURE_MISMATCH:"Architecture mismatch between instance type and AMI",ALLOCATED_STORAGE:{INTEGER:"Allocated storage must be an integer",MIN:"Allocated storage must be at least 20 GB",MAX:"Allocated storage cannot exceed 65536 GB"},DLQ:{MAX_RECEIVE_COUNT:{INTEGER:"Max receive count must be an integer",MIN:"Max receive count must be at least 1",MAX:"Max receive count cannot exceed 1000"}},ALARM:{PERCENTAGE:{MIN:"Threshold must be at least 1%",MAX:"Threshold must be at most 100%"},FREE_STORAGE_GIB:{MIN:"Free storage threshold must be at least 1 GiB"}},REGION:"Invalid AWS region",PASCAL_CASE:"Resource name must start with an uppercase letter and contain only alphanumerics (PascalCase).",IMAGE_DOCKER_MUTEX:"image and docker are mutually exclusive",AWS_ACCOUNT_ID:"AWS account id must be exactly 12 digits (no hyphens)",VPC_ID:"VPC id must look like vpc-abc12345",ROLE_ARN:"Role ARN must have the form arn:aws:iam::<account-id>:role/<name>",CIDR:"CIDR must be in dotted-quad/prefix-length form (e.g. 10.0.0.0/16)",VPC_PEER:{MIN_REQUESTER_ACCOUNTS:"At least one requester account id is required",REGION_REQUIRED:"Peer region is required when specified",ROUTE_TABLE_ID_REQUIRED:"Route table id must not be empty"},SCHEDULE_EXPRESSION:"Schedule expression must be 'rate(N minute|minutes|hour|hours|day|days)' with N>=1, or 'cron(<6-field AWS expression>)'"});export{n as VALIDATION_MESSAGES};
@@ -1 +1 @@
1
- export declare const GENERATOR_VERSION = "2.23.0";
1
+ export declare const GENERATOR_VERSION = "2.23.1";
@@ -1 +1 @@
1
- const E="2.23.0";export{E as GENERATOR_VERSION};
1
+ const E="2.23.1";export{E as GENERATOR_VERSION};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fjall/generator",
3
- "version": "2.23.1",
3
+ "version": "2.24.0",
4
4
  "description": "Pure infrastructure generation logic for Fjall",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "license": "SEE LICENSE IN LICENSE",
49
49
  "dependencies": {
50
- "@fjall/util": "^2.23.1",
50
+ "@fjall/util": "^2.24.0",
51
51
  "ast-types": "^0.16.1",
52
52
  "recast": "^0.23.11",
53
53
  "ts-morph": "^28.0.0",
@@ -63,5 +63,5 @@
63
63
  "typescript-eslint": "^8.59.1",
64
64
  "vitest": "^4.1.5"
65
65
  },
66
- "gitHead": "749133c6c5cfe24a09a401869f2193c7d177a324"
66
+ "gitHead": "616d7af846f0eebfa3409f5f47c98fbee836bad9"
67
67
  }