@maverickcer/env-cap 0.3.1 → 0.5.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/README.md +37 -17
- package/dist/.dts/build/change-model.d.ts +1 -0
- package/dist/.dts/build/change-model.d.ts.map +1 -1
- package/dist/.dts/build/check-artifacts.d.ts.map +1 -1
- package/dist/.dts/build/compatibility.d.ts +8 -1
- package/dist/.dts/build/compatibility.d.ts.map +1 -1
- package/dist/.dts/build/contract-model.d.ts +1 -0
- package/dist/.dts/build/contract-model.d.ts.map +1 -1
- package/dist/.dts/build/dependency-model.d.ts +2 -0
- package/dist/.dts/build/dependency-model.d.ts.map +1 -1
- package/dist/.dts/build/discover.d.ts.map +1 -1
- package/dist/.dts/build/docs.d.ts.map +1 -1
- package/dist/.dts/build/env-example.d.ts.map +1 -1
- package/dist/.dts/build/exclusive-group.d.ts.map +1 -1
- package/dist/.dts/build/finding-model.d.ts +1 -0
- package/dist/.dts/build/finding-model.d.ts.map +1 -1
- package/dist/.dts/build/generate-documentation.d.ts +2 -2
- package/dist/.dts/build/generate-documentation.d.ts.map +1 -1
- package/dist/.dts/build/generate-env-artifacts.d.ts +2 -2
- package/dist/.dts/build/generate-env-artifacts.d.ts.map +1 -1
- package/dist/.dts/build/generate-evidence.d.ts +2 -2
- package/dist/.dts/build/generate-evidence.d.ts.map +1 -1
- package/dist/.dts/build/generate-manifest.d.ts +2 -2
- package/dist/.dts/build/generate-usage.d.ts +2 -2
- package/dist/.dts/build/generate-usage.d.ts.map +1 -1
- package/dist/.dts/build/glob.d.ts.map +1 -1
- package/dist/.dts/build/governance-fields.d.ts +1 -1
- package/dist/.dts/build/index.d.ts +17 -19
- package/dist/.dts/build/index.d.ts.map +1 -1
- package/dist/.dts/build/lifecycle-model.d.ts +112 -2
- package/dist/.dts/build/lifecycle-model.d.ts.map +1 -1
- package/dist/.dts/build/link.d.ts +10 -2
- package/dist/.dts/build/link.d.ts.map +1 -1
- package/dist/.dts/build/live-expirations.d.ts.map +1 -1
- package/dist/.dts/build/manifest.d.ts.map +1 -1
- package/dist/.dts/build/ownership-model.d.ts +2 -0
- package/dist/.dts/build/ownership-model.d.ts.map +1 -1
- package/dist/.dts/build/parse.d.ts +10 -2
- package/dist/.dts/build/parse.d.ts.map +1 -1
- package/dist/.dts/build/resolution/resolve-package-schema.d.ts.map +1 -1
- package/dist/.dts/build/resolution/resolve-tsconfig-paths.d.ts +1 -1
- package/dist/.dts/build/resolution/resolve-tsconfig-paths.d.ts.map +1 -1
- package/dist/.dts/build/sarif.d.ts.map +1 -1
- package/dist/.dts/build/source-position.d.ts +2 -2
- package/dist/.dts/build/types.d.ts +3 -0
- package/dist/.dts/build/types.d.ts.map +1 -1
- package/dist/.dts/eslint-plugin/glob.d.ts.map +1 -1
- package/dist/.dts/evidence/define-projection.d.ts +1 -0
- package/dist/.dts/evidence/define-projection.d.ts.map +1 -1
- package/dist/.dts/helpers/validators.d.ts.map +1 -1
- package/dist/.dts/runtime/document.d.ts +41 -2
- package/dist/.dts/runtime/document.d.ts.map +1 -1
- package/dist/.dts/runtime/index.d.ts +1 -1
- package/dist/.dts/runtime/index.d.ts.map +1 -1
- package/dist/.dts/runtime/validate.d.ts.map +1 -1
- package/dist/build-4SFAWO5Y.js +5148 -0
- package/dist/build-4SFAWO5Y.js.map +1 -0
- package/dist/build.cjs +5022 -6
- package/dist/build.cjs.map +1 -1
- package/dist/build.js +5020 -7
- package/dist/build.js.map +1 -1
- package/dist/chunk-BV5OERR3.js +11 -0
- package/dist/chunk-BV5OERR3.js.map +1 -0
- package/dist/cli/index.js +584 -51
- package/dist/cli/index.js.map +1 -1
- package/dist/eslint-plugin/index.cjs +701 -1
- package/dist/eslint-plugin/index.cjs.map +1 -1
- package/dist/eslint-plugin/index.js +701 -1
- package/dist/eslint-plugin/index.js.map +1 -1
- package/dist/evidence.cjs +59 -1
- package/dist/evidence.cjs.map +1 -1
- package/dist/evidence.js +59 -1
- package/dist/evidence.js.map +1 -1
- package/dist/helpers.cjs +379 -1
- package/dist/helpers.cjs.map +1 -1
- package/dist/helpers.js +379 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.cjs +249 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +249 -2
- package/dist/index.js.map +1 -1
- package/dist/node.cjs +27 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.js +27 -1
- package/dist/node.js.map +1 -1
- package/package.json +15 -11
- package/schemas/contract-model.schema.json +2 -1
- package/schemas/env-cap-report.schema.json +57 -14
|
@@ -7,9 +7,26 @@ import type { DiscoveredContract } from "./link.js";
|
|
|
7
7
|
* (already a good precedent -- real, exported, reused across `renderDocs()`
|
|
8
8
|
* and `generate-documentation.ts`) into a canonical, versioned shape
|
|
9
9
|
* alongside the new deprecation/rename fields. See ADR 0029.
|
|
10
|
+
*
|
|
11
|
+
* As of schema version 3, this also carries NIST SP 800-53 IA-5 rotation
|
|
12
|
+
* data (`authenticatorType`/`rotationPeriod`/`lastRotatedAt`/
|
|
13
|
+
* `rotationTriggerEvents`) and a computed `rotationStatus` per variable --
|
|
14
|
+
* see `computeRotationStatus()` below for the compliance-status judgment
|
|
15
|
+
* call, and the `rotation-log` example generator (peer to `generate-docs/`)
|
|
16
|
+
* for the first real consumer.
|
|
10
17
|
*/
|
|
11
18
|
/** Bump only when a reader could misinterpret the new shape -- same discipline every other canonical model's `schemaVersion` follows. */
|
|
12
|
-
export declare const LIFECYCLE_MODEL_SCHEMA_VERSION =
|
|
19
|
+
export declare const LIFECYCLE_MODEL_SCHEMA_VERSION = 3;
|
|
20
|
+
/**
|
|
21
|
+
* One variable's computed NIST SP 800-53 IA-5 rotation-compliance status --
|
|
22
|
+
* see `computeRotationStatus()` for exactly how it's derived. Always present
|
|
23
|
+
* on a `LifecycleModelVariable` (never `undefined`) since a variable with
|
|
24
|
+
* literally nothing lifecycle-relevant set never reaches this model at all
|
|
25
|
+
* (`hasLifecycleData()` below) -- `"undeclared"` is itself the honest value
|
|
26
|
+
* for "reached this model for some other lifecycle reason (e.g. `deprecated`)
|
|
27
|
+
* but declares none of the four rotation-specific fields."
|
|
28
|
+
*/
|
|
29
|
+
export type RotationComplianceStatus = "compliant" | "overdue" | "expired" | "undeclared";
|
|
13
30
|
/**
|
|
14
31
|
* One variable's lifecycle data (expiry, deprecation, rename correlation).
|
|
15
32
|
*
|
|
@@ -26,7 +43,18 @@ export interface LifecycleModelVariable {
|
|
|
26
43
|
readonly renamedFrom: string | undefined;
|
|
27
44
|
/** Descriptive retention policy (e.g. "delete after 90 days") -- a policy statement, never computed or parsed, deliberately independent of `expiresAt`'s actual temporal constraint. See ADR 0035. */
|
|
28
45
|
readonly retention: string | undefined;
|
|
46
|
+
/** See {@link runtime.VariableDocs.authenticatorType}. */
|
|
47
|
+
readonly authenticatorType: string | undefined;
|
|
48
|
+
/** See {@link runtime.VariableDocs.rotationPeriod}. */
|
|
49
|
+
readonly rotationPeriod: string | undefined;
|
|
50
|
+
/** See {@link runtime.VariableDocs.lastRotatedAt}. */
|
|
51
|
+
readonly lastRotatedAt: string | undefined;
|
|
52
|
+
/** See {@link runtime.VariableDocs.rotationTriggerEvents}. */
|
|
53
|
+
readonly rotationTriggerEvents: readonly string[] | undefined;
|
|
54
|
+
/** Computed, not stored -- see {@link RotationComplianceStatus} and `computeRotationStatus()`. */
|
|
55
|
+
readonly rotationStatus: RotationComplianceStatus;
|
|
29
56
|
}
|
|
57
|
+
/** One contract's own lifecycle data plus every variable of its that has at least one lifecycle field set. See {@link LifecycleModelVariable} for the per-variable shape. */
|
|
30
58
|
export interface LifecycleModelContract {
|
|
31
59
|
/** Root-relative, POSIX-separated -- matches `ContractModelContract.file`. */
|
|
32
60
|
readonly file: string;
|
|
@@ -37,9 +65,10 @@ export interface LifecycleModelContract {
|
|
|
37
65
|
readonly deprecatedReason: string | undefined;
|
|
38
66
|
/** See {@link LifecycleModelVariable.retention}. */
|
|
39
67
|
readonly retention: string | undefined;
|
|
40
|
-
/** Only variables with at least one lifecycle field set (`expiresAt`, `refreshInstructions`, `deprecated`, `removeBy`, `renamedFrom`, `retention`) -- same "only what's relevant" scope `renderLifecycleReport()` already uses for its rows. */
|
|
68
|
+
/** Only variables with at least one lifecycle field set (`expiresAt`, `refreshInstructions`, `deprecated`, `removeBy`, `renamedFrom`, `retention`, `authenticatorType`, `rotationPeriod`, `lastRotatedAt`, `rotationTriggerEvents`) -- same "only what's relevant" scope `renderLifecycleReport()` already uses for its rows. */
|
|
41
69
|
readonly variables: readonly LifecycleModelVariable[];
|
|
42
70
|
}
|
|
71
|
+
/** The versioned, JSON-serializable root of the Lifecycle Model -- see this module's own doc comment for the full picture. */
|
|
43
72
|
export interface LifecycleModel {
|
|
44
73
|
readonly schemaVersion: typeof LIFECYCLE_MODEL_SCHEMA_VERSION;
|
|
45
74
|
/** Only contracts with at least one lifecycle-relevant field set, at the contract level or on at least one variable. */
|
|
@@ -55,6 +84,87 @@ export interface LifecycleModel {
|
|
|
55
84
|
*/
|
|
56
85
|
readonly expiring: readonly ExpiringEntry[];
|
|
57
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Parses `rotationPeriod` (e.g. "90 days", "P90D", "6 months") into a whole number of days, or
|
|
89
|
+
* `undefined` when it isn't in either recognized grammar.
|
|
90
|
+
*
|
|
91
|
+
* @remarks
|
|
92
|
+
* `rotationPeriod` is documented (`runtime/document.ts`) as an organization-defined string much
|
|
93
|
+
* like `retention` -- but unlike `retention`, which is *never* parsed (a pure policy statement),
|
|
94
|
+
* `computeRotationStatus()` genuinely needs a numeric due date to compare against `now`. This
|
|
95
|
+
* function is the one place that tension is resolved: it recognizes two small, common, unambiguous
|
|
96
|
+
* grammars (a plain "<n> <unit>" -- singular/plural/abbreviated, case-insensitive, with or without
|
|
97
|
+
* a space, e.g. "90 days"/"90day"/"12weeks" -- and ISO 8601's calendar-duration form, date
|
|
98
|
+
* components only (`PnYnMnD`, no `T`/time-of-day component since a rotation period is never
|
|
99
|
+
* meaningfully finer than a day; bare `"P"` is not a duration) rather than attempting to parse
|
|
100
|
+
* arbitrary prose ("quarterly", "every other release", ...) -- an org whose policy string doesn't
|
|
101
|
+
* fit either grammar still has it stored and rendered verbatim everywhere else, it just can't feed
|
|
102
|
+
* a computed due date, and `computeRotationStatus()` fails closed (`"overdue"`) rather than
|
|
103
|
+
* guessing at one. Month/year are calendar approximations (30/365 days) -- acceptable for a
|
|
104
|
+
* rotation-compliance signal, not precise enough for anything billing/calendar-accurate.
|
|
105
|
+
*
|
|
106
|
+
* A computed total of zero days (e.g. "0 days", "P0D", "P0Y0M0D" -- the digit grammar can't
|
|
107
|
+
* produce a *negative* total, but zero is reachable) is treated the same as an unparseable
|
|
108
|
+
* string, not a real duration: it returns `undefined` rather than `0`, so `computeRotationStatus()`
|
|
109
|
+
* falls into its own "declared but unverifiable" fail-closed path (`"overdue"`) instead of computing
|
|
110
|
+
* a degenerate due date equal to `lastRotatedAt` itself -- a nonsensical "rotate every zero days"
|
|
111
|
+
* policy should read as un-computable, not silently produce a technically-correct-but-meaningless
|
|
112
|
+
* due date.
|
|
113
|
+
*
|
|
114
|
+
* Both patterns are inlined at their `.exec()` call site, deliberately not hoisted to a
|
|
115
|
+
* module-level `const` -- same precedent as `source-position.ts`'s `parsePositionCitation()`: a
|
|
116
|
+
* module-level regex literal is a load-time-only ("static") mutation target, which Stryker's own
|
|
117
|
+
* `perTest` coverage analysis can't attribute to a specific covering test (see this package's own
|
|
118
|
+
* `stryker.config.mjs`), while an inline literal is re-evaluated -- and so mutation-tested -- on
|
|
119
|
+
* every call.
|
|
120
|
+
*/
|
|
121
|
+
export declare function parseRotationPeriodDays(value: string): number | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* Computes one variable's NIST SP 800-53 IA-5 rotation-compliance status from its lifecycle facts,
|
|
124
|
+
* relative to `now`.
|
|
125
|
+
*
|
|
126
|
+
* @remarks
|
|
127
|
+
* **The judgment call this function makes** (IA-5's main statement itself only says "change or
|
|
128
|
+
* refresh authenticators [by an organization-defined period] or when [organization-defined events]
|
|
129
|
+
* occur" -- it doesn't define how a *pre-existing* `expiresAt` and a *new* `rotationPeriod`/
|
|
130
|
+
* `lastRotatedAt` pair should interact when both are declared on the same variable):
|
|
131
|
+
*
|
|
132
|
+
* - No rotation field declared at all (`hasRotationData()` false) -> `"undeclared"`. Not an error --
|
|
133
|
+
* most variables aren't authenticators, and saying nothing about rotation is the common, correct
|
|
134
|
+
* case, not a violation to report.
|
|
135
|
+
* - `expiresAt` is treated as authoritative and checked first, independent of everything else: if
|
|
136
|
+
* it's a valid date already in the past, the status is `"expired"`, full stop. Rationale: `expiresAt`
|
|
137
|
+
* is a pre-existing, often externally-imposed hard deadline (an API key's own issuer-enforced
|
|
138
|
+
* expiry, a certificate's NotAfter) -- once that date passes, the value has *literally* stopped
|
|
139
|
+
* being valid, which is categorically worse than merely being overdue for an internal policy
|
|
140
|
+
* rotation, and no internal rotation record can retroactively un-expire it.
|
|
141
|
+
* - Otherwise, if `rotationPeriod` is declared, it's checked against `lastRotatedAt`: both present,
|
|
142
|
+
* both parseable (see `parseRotationPeriodDays()`), *and* `lastRotatedAt` no later than `now` ->
|
|
143
|
+
* compute `lastRotatedAt + rotationPeriod` and compare to `now` (`"overdue"` if that due date has
|
|
144
|
+
* passed, else `"compliant"`). Any other case with `rotationPeriod` declared -- `lastRotatedAt`
|
|
145
|
+
* missing, either value not statically parseable, or `lastRotatedAt` itself in the future (a
|
|
146
|
+
* rotation can't have happened yet, so trusting it would let a bad timestamp manufacture false
|
|
147
|
+
* compliance) -- fails closed to `"overdue"`: IA-5 asks for evidence a rotation actually happened
|
|
148
|
+
* on schedule, and a declared obligation that can't be shown to have been met is reported as
|
|
149
|
+
* non-compliant rather than silently passed as compliant.
|
|
150
|
+
* - Otherwise (rotation metadata declared -- `authenticatorType` and/or `lastRotatedAt` and/or
|
|
151
|
+
* `rotationTriggerEvents` -- but no `rotationPeriod` and no past-due `expiresAt`) -> `"compliant"`:
|
|
152
|
+
* nothing here states a time-based obligation this variable could be failing to meet.
|
|
153
|
+
*
|
|
154
|
+
* `rotationTriggerEvents` (the event-based trigger) deliberately never changes the returned status
|
|
155
|
+
* by itself: env-cap has no way to observe whether a listed event (a suspected compromise, a
|
|
156
|
+
* personnel change, ...) actually occurred, so treating its mere presence as either compliant or
|
|
157
|
+
* overdue would be fabricating a signal. It's presence-only evidence that the event-based half of
|
|
158
|
+
* IA-5's two-trigger model was at least *declared* -- a generator can and should still surface it,
|
|
159
|
+
* just never fold it into this computed status.
|
|
160
|
+
*/
|
|
161
|
+
export declare function computeRotationStatus(variable: {
|
|
162
|
+
readonly expiresAt: string | undefined;
|
|
163
|
+
readonly authenticatorType: string | undefined;
|
|
164
|
+
readonly rotationPeriod: string | undefined;
|
|
165
|
+
readonly lastRotatedAt: string | undefined;
|
|
166
|
+
readonly rotationTriggerEvents: readonly string[] | undefined;
|
|
167
|
+
}, now: Date): RotationComplianceStatus;
|
|
58
168
|
/**
|
|
59
169
|
* Projects every discovered contract with at least one lifecycle-relevant
|
|
60
170
|
* field set into the Lifecycle Model's versioned, JSON-serializable shape,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle-model.d.ts","sourceRoot":"","sources":["../../../src/build/lifecycle-model.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAsB,MAAM,WAAW,CAAA;AAEvE
|
|
1
|
+
{"version":3,"file":"lifecycle-model.d.ts","sourceRoot":"","sources":["../../../src/build/lifecycle-model.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAsB,MAAM,WAAW,CAAA;AAEvE;;;;;;;;;;;;;;GAcG;AAEH,yIAAyI;AACzI,eAAO,MAAM,8BAA8B,IAAI,CAAA;AAE/C;;;;;;;;GAQG;AACH,MAAM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 +6,7 @@ import type { SourcePosition } from "./source-position.js";
|
|
|
6
6
|
/** One schema variable, merged with its linked `documentEnv()` documentation (if any). */
|
|
7
7
|
/**
|
|
8
8
|
* One schema variable merged with its linked `documentEnv()` documentation. Its
|
|
9
|
-
* governance fields (`owner` .. `metadata`) are
|
|
9
|
+
* governance fields (`owner` .. `metadata`) are `EnvGovernanceFields` --
|
|
10
10
|
* each an individual-variable override of the contract's own value, from the
|
|
11
11
|
* linked `documentEnv()` call's matching `variables` entry, or `undefined`.
|
|
12
12
|
*/
|
|
@@ -16,6 +16,14 @@ export interface DiscoveredVariable extends DiscoveredSchemaVariable, EnvGoverna
|
|
|
16
16
|
/** From the linked `documentEnv()` call's matching `variables` entry, if any. */
|
|
17
17
|
readonly refreshInstructions: string | undefined;
|
|
18
18
|
/** From the linked `documentEnv()` call's matching `variables` entry, if any. */
|
|
19
|
+
readonly authenticatorType: string | undefined;
|
|
20
|
+
/** From the linked `documentEnv()` call's matching `variables` entry, if any. */
|
|
21
|
+
readonly rotationPeriod: string | undefined;
|
|
22
|
+
/** From the linked `documentEnv()` call's matching `variables` entry, if any. */
|
|
23
|
+
readonly lastRotatedAt: string | undefined;
|
|
24
|
+
/** From the linked `documentEnv()` call's matching `variables` entry, if any. */
|
|
25
|
+
readonly rotationTriggerEvents: readonly string[] | undefined;
|
|
26
|
+
/** From the linked `documentEnv()` call's matching `variables` entry, if any. */
|
|
19
27
|
readonly setupInstructions: string | undefined;
|
|
20
28
|
/** From the linked `documentEnv()` call's matching `variables` entry, if any. */
|
|
21
29
|
readonly required: boolean | undefined;
|
|
@@ -32,7 +40,7 @@ export interface DiscoveredVariable extends DiscoveredSchemaVariable, EnvGoverna
|
|
|
32
40
|
/** Whether this specific key had a matching entry in the linked `documentEnv()` call, if any. */
|
|
33
41
|
readonly documented: boolean;
|
|
34
42
|
}
|
|
35
|
-
/** One `createEnv()` contract, merged with its linked `documentEnv()` documentation (if any). Its governance fields (`owner` .. `metadata`) are
|
|
43
|
+
/** One `createEnv()` contract, merged with its linked `documentEnv()` documentation (if any). Its governance fields (`owner` .. `metadata`) are `EnvGovernanceFields` -- contract-level defaults that individual variables may override. */
|
|
36
44
|
export interface DiscoveredContract extends EnvGovernanceFields {
|
|
37
45
|
/** Absolute path of the file declaring the `createEnv()` call. */
|
|
38
46
|
readonly file: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/build/link.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAG1B,YAAY,EAEb,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAGjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,0FAA0F;AAC1F;;;;;GAKG;AACH,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB,EAAE,mBAAmB;IACvF,iFAAiF;IACjF,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IACxC,iFAAiF;IACjF,QAAQ,CAAC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAA;IAChD,iFAAiF;IACjF,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9C,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAA;IACtC,iFAAiF;IACjF,QAAQ,CAAC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAA;IACxC,iFAAiF;IACjF,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7C,iFAAiF;IACjF,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IACrC,+KAA+K;IA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AAO,GAAG,SAAS,CAAA;CAAE,GACxD,OAAO,GAAG,SAAS,CAErB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-expirations.d.ts","sourceRoot":"","sources":["../../../src/build/live-expirations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAsB,MAAM,WAAW,CAAA;AAEvE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,aAAa,EAAE,SAAS,MAAM,EAAE,KAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;AAE9C;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,kBAAkB,EAAE,GAAG,MAAM,EAAE,CAMvF;
|
|
1
|
+
{"version":3,"file":"live-expirations.d.ts","sourceRoot":"","sources":["../../../src/build/live-expirations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAsB,MAAM,WAAW,CAAA;AAEvE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,aAAa,EAAE,SAAS,MAAM,EAAE,KAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAA;AAE9C;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,SAAS,kBAAkB,EAAE,GAAG,MAAM,EAAE,CAMvF;AA0BD;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,SAAS,kBAAkB,EAAE,EACxC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAC1C,SAAS,kBAAkB,EAAE,CAM/B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,0BAA0B,CAC9C,SAAS,EAAE,SAAS,kBAAkB,EAAE,EACxC,mBAAmB,EAAE,mBAAmB,GAAG,SAAS,GACnD,OAAO,CAAC,SAAS,kBAAkB,EAAE,CAAC,CAIxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../src/build/manifest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAEnD;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,SAAS,kBAAkB,EAAE,GACvC,SAAS,MAAM,EAAE,CASnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,SAAS,kBAAkB,EAAE,EACxC,UAAU,EAAE,MAAM,GACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../src/build/manifest.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAEnD;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,SAAS,kBAAkB,EAAE,GACvC,SAAS,MAAM,EAAE,CASnB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,SAAS,kBAAkB,EAAE,EACxC,UAAU,EAAE,MAAM,GACjB,MAAM,CA2HR"}
|
|
@@ -25,6 +25,7 @@ export interface OwnershipModelVariable {
|
|
|
25
25
|
/** The variable's own `owner`, falling back to the contract's -- see `effectiveOwner()`. */
|
|
26
26
|
readonly owner: string | undefined;
|
|
27
27
|
}
|
|
28
|
+
/** One contract's own default owner plus every variable's effective owner. See {@link OwnershipModelVariable} for the per-variable shape. */
|
|
28
29
|
export interface OwnershipModelContract {
|
|
29
30
|
/** Root-relative, POSIX-separated -- matches `ContractModelContract.file`. */
|
|
30
31
|
readonly file: string;
|
|
@@ -40,6 +41,7 @@ export type OwnershipModelContractRef = ContractRef;
|
|
|
40
41
|
export interface OwnershipModelVariableRef extends ContractRef {
|
|
41
42
|
readonly key: string;
|
|
42
43
|
}
|
|
44
|
+
/** The versioned, JSON-serializable root of the Ownership Model -- see this module's own doc comment for the full picture. */
|
|
43
45
|
export interface OwnershipModel {
|
|
44
46
|
readonly schemaVersion: typeof OWNERSHIP_MODEL_SCHEMA_VERSION;
|
|
45
47
|
readonly contracts: readonly OwnershipModelContract[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ownership-model.d.ts","sourceRoot":"","sources":["../../../src/build/ownership-model.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAE1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAEnD;;;;;;;;;;;;GAYG;AAEH,yIAAyI;AACzI,eAAO,MAAM,8BAA8B,IAAI,CAAA;AAE/C;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,4FAA4F;IAC5F,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC;AAED,MAAM,WAAW,sBAAsB;IACrC,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,4IAA4I;IAC5I,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,SAAS,EAAE,SAAS,sBAAsB,EAAE,CAAA;CACtD;AAED,2LAA2L;AAC3L,MAAM,MAAM,yBAAyB,GAAG,WAAW,CAAA;AAEnD,8GAA8G;AAC9G,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,cAAc;IAC7B,QAA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WAAW,yBAA0B,SAAQ,WAAW;IAC5D,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CACrB;AAED,8HAA8H;AAC9H,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,aAAa,EAAE,OAAO,8BAA8B,CAAA;IAC7D,QAAQ,CAAC,SAAS,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACrD,iDAAiD;IACjD,QAAQ,CAAC,gBAAgB,EAAE,SAAS,yBAAyB,EAAE,CAAA;IAC/D,2GAA2G;IAC3G,QAAQ,CAAC,gBAAgB,EAAE,SAAS,yBAAyB,EAAE,CAAA;CAChE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,SAAS,kBAAkB,EAAE,EACxC,IAAI,EAAE,MAAM,GACX,cAAc,CAmChB"}
|
|
@@ -136,7 +136,7 @@ export interface DiscoveredSchemaVariable {
|
|
|
136
136
|
* @param warnings - Mutated in place: one entry is pushed per skipped (non-static, invalid-key, or non-literal) property.
|
|
137
137
|
*/
|
|
138
138
|
export declare function extractSchemaVariables(schemaLiteral: ts.ObjectLiteralExpression, filePath: string, contextLabel: string, warnings: ParseWarning[], sourceFile: ts.SourceFile): DiscoveredSchemaVariable[];
|
|
139
|
-
/** One variable's statically-extracted `documentEnv()` documentation, as declared in that call's `variables` entry for this key -- governance fields (`owner` .. `metadata`) are
|
|
139
|
+
/** One variable's statically-extracted `documentEnv()` documentation, as declared in that call's `variables` entry for this key -- governance fields (`owner` .. `metadata`) are `EnvGovernanceFields`, resolved from static literals. */
|
|
140
140
|
export interface DiscoveredVariableDocs extends EnvGovernanceFields {
|
|
141
141
|
/** The environment variable name this documentation applies to. */
|
|
142
142
|
readonly key: string;
|
|
@@ -144,6 +144,14 @@ export interface DiscoveredVariableDocs extends EnvGovernanceFields {
|
|
|
144
144
|
readonly description: string | undefined;
|
|
145
145
|
/** Statically-resolved `refreshInstructions`, if set to a string literal. */
|
|
146
146
|
readonly refreshInstructions: string | undefined;
|
|
147
|
+
/** Statically-resolved `authenticatorType`, if set to a string literal. */
|
|
148
|
+
readonly authenticatorType: string | undefined;
|
|
149
|
+
/** Statically-resolved `rotationPeriod`, if set to a string literal. */
|
|
150
|
+
readonly rotationPeriod: string | undefined;
|
|
151
|
+
/** Statically-resolved `lastRotatedAt`, if set to a string literal. */
|
|
152
|
+
readonly lastRotatedAt: string | undefined;
|
|
153
|
+
/** Statically-resolved `rotationTriggerEvents`, if set to an array of string literals. */
|
|
154
|
+
readonly rotationTriggerEvents: readonly string[] | undefined;
|
|
147
155
|
/** Statically-resolved `setupInstructions`, if set to a string literal. */
|
|
148
156
|
readonly setupInstructions: string | undefined;
|
|
149
157
|
/** Statically-resolved `required`, if set to a boolean literal. */
|
|
@@ -165,7 +173,7 @@ export interface DiscoveredVariableEvidence {
|
|
|
165
173
|
readonly dynamicAccess: readonly string[] | undefined;
|
|
166
174
|
}
|
|
167
175
|
/** A contract's statically-extracted `documentEnv()` documentation. */
|
|
168
|
-
/** The `documentEnv()` contract-level documentation, resolved from static literals at the parse stage. Its governance fields (`owner` .. `metadata`) are
|
|
176
|
+
/** The `documentEnv()` contract-level documentation, resolved from static literals at the parse stage. Its governance fields (`owner` .. `metadata`) are `EnvGovernanceFields`. */
|
|
169
177
|
export interface DiscoveredContractDocs extends EnvGovernanceFields {
|
|
170
178
|
/** Statically-resolved `name`, if set to a string literal. */
|
|
171
179
|
readonly name: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/build/parse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAGjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAiB1D,2IAA2I;AAC3I,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,QAAQ,CAAC,IAAI,EAAE,MAAM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pB,QAAQ,EAAE,YAAY,EAAE,GACvB,sBAAsB,CAwLxB;AA8LD,kRAAkR;AAClR,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,SAAS,GACpC,MAAM,GAAG,SAAS,CASpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-package-schema.d.ts","sourceRoot":"","sources":["../../../../src/build/resolution/resolve-package-schema.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAuBlD;;;iEAGiE;AACjE,eAAO,MAAM,6BAA6B,UAAY,CAAA;AAItD,KAAK,4BAA4B,GAC7B,mBAAmB,GACnB,wBAAwB,GACxB,eAAe,GACf,mBAAmB,GACnB,iBAAiB,GACjB,gBAAgB,CAAA;AAEpB;8EAC8E;AAC9E,MAAM,WAAW,aAAa;IAC5B,+DAA+D;IAC/D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,0EAA0E;IAC1E,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,yEAAyE;IACzE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,MAAM,6BAA6B,GACrC;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAA;CAAE,GACrD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,4BAA4B,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"resolve-package-schema.d.ts","sourceRoot":"","sources":["../../../../src/build/resolution/resolve-package-schema.ts"],"names":[],"mappings":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AAK,EAAE,SAAS,mBAAmB,EAAE,CAAA;IAC9C,8FAA8F;IAC9F,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IACpD,QAAQ,CAAC,QAAQ,EAAE,SAAS,YAAY,EAAE,CAAA;CAC3C;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAC9C,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAC,EAC1D,EAAE,EAAE,eAAe,GAClB,OAAO,CAAC,qBAAqB,CAAC,CAkChC;AAED;;;;;;;;;;;;;;GAcG;AAUH,wBAAsB,yBAAyB,CAC7C,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,YAAY,EAAE,SAAS,MAAM,EAAE,EAC/B,EAAE,EAAE,eAAe,GAClB,OAAO,CAAC,MAAM,EAAE,CAAC,CAuBnB;AAGD;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,SAAS,MAAM,EAAE,EAClC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAC,EAC1D,EAAE,EAAE,eAAe,GAClB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CA4B7B"}
|
|
@@ -2,7 +2,7 @@ import ts from "typescript";
|
|
|
2
2
|
import type { ParseWarning } from "../parse.js";
|
|
3
3
|
import type { BuildFileSystem } from "../types.js";
|
|
4
4
|
/**
|
|
5
|
-
* TypeScript path-alias resolution (ADR 0023
|
|
5
|
+
* TypeScript path-alias resolution (ADR 0023).
|
|
6
6
|
*
|
|
7
7
|
* Resolves a bare import specifier (`"@/lib/env.schema.js"`) against a project's own
|
|
8
8
|
* `tsconfig.json` `compilerOptions.paths`/`baseUrl`, so a schema or consumer reached only
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-tsconfig-paths.d.ts","sourceRoot":"","sources":["../../../../src/build/resolution/resolve-tsconfig-paths.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD;;;;;;;;;;;;;;;;;GAiBG;AAEH,4IAA4I;AAC5I,MAAM,WAAW,uBAAuB;IACtC,6GAA6G;IAC7G,QAAQ,CAAC,eAAe,EAAE,EAAE,CAAC,eAAe,CAAA;IAC5C,gFAAgF;IAChF,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;OAOG;IACH,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;CACtD;AAED,sGAAsG;AACtG,wBAAgB,0BAA0B,IAAI,oBAAoB,CAEjE;AAcD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,UAAU,EAAE,uBAAuB,GAAG,SAAS,CAAA;IACxD,QAAQ,CAAC,OAAO,EAAE,YAAY,GAAG,SAAS,CAAA;CAC3C;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,EAC1C,EAAE,EAAE,eAAe,GAClB,OAAO,CAAC,uBAAuB,CAAC,
|
|
1
|
+
{"version":3,"file":"resolve-tsconfig-paths.d.ts","sourceRoot":"","sources":["../../../../src/build/resolution/resolve-tsconfig-paths.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAA;AAC3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,C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S;oBAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;iBAAE,EAAE,CAAA;aACnD,CAAA;SACF,CAAA;QACD,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAA;KACzC,EAAE,CAAA;CACJ;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,YAAY,GAAG,QAAQ,CAgClE"}
|
|
@@ -26,7 +26,7 @@ export declare function positionOf(sourceFile: ts.SourceFile, node: ts.Node): {
|
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* Parses a developer-supplied `"<relative-path>:<line>:<column>"` citation
|
|
29
|
-
* (a {@link runtime.
|
|
29
|
+
* (a {@link runtime.VariableEvidenceDocs.dynamicAccess} entry) into a
|
|
30
30
|
* {@link SourcePosition}. Splits on the *last* two colons so a path
|
|
31
31
|
* containing colons of its own (rare, but not impossible) still parses --
|
|
32
32
|
* only the trailing `:<line>:<column>` is treated as position syntax.
|
|
@@ -36,7 +36,7 @@ export declare function positionOf(sourceFile: ts.SourceFile, node: ts.Node): {
|
|
|
36
36
|
*/
|
|
37
37
|
export declare function parsePositionCitation(citation: string): SourcePosition | undefined;
|
|
38
38
|
/**
|
|
39
|
-
* One developer-declared {@link runtime.
|
|
39
|
+
* One developer-declared {@link runtime.VariableEvidenceDocs.dynamicAccess} citation's
|
|
40
40
|
* current acknowledgment state -- a claim, never an observation. Kept fully
|
|
41
41
|
* separate from `VariableAccessStatus` (which stays exactly 3-valued and
|
|
42
42
|
* purely AST-derived) so a developer's assertion can never make env-cap
|
|
@@ -41,11 +41,14 @@ export interface BuildFileSystem {
|
|
|
41
41
|
/** One directory entry from {@link BuildFileSystem.readdir} -- the subset of Node's `Dirent` `src/build/**` reads. */
|
|
42
42
|
export interface BuildDirent {
|
|
43
43
|
readonly name: string;
|
|
44
|
+
/** Same contract as Node's `Dirent.isDirectory()`. */
|
|
44
45
|
readonly isDirectory: () => boolean;
|
|
46
|
+
/** Same contract as Node's `Dirent.isFile()`. */
|
|
45
47
|
readonly isFile: () => boolean;
|
|
46
48
|
}
|
|
47
49
|
/** A path's stat info from {@link BuildFileSystem.stat} -- the subset of Node's `Stats` `src/build/**` reads. */
|
|
48
50
|
export interface BuildStats {
|
|
51
|
+
/** Same contract as Node's `Stats.isFile()`. */
|
|
49
52
|
readonly isFile: () => boolean;
|
|
50
53
|
/** Size in bytes -- read by the package-schema resolver to enforce a size ceiling. */
|
|
51
54
|
readonly size: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/build/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,eAAe;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IACtE,mGAAmG;IACnG,QAAQ,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACnF,iFAAiF;IACjF,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACtF,4DAA4D;IAC5D,QAAQ,CAAC,OAAO,EAAE,CAChB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE;QAAE,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAA;KAAE,KACtC,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CAAA;IACpC,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;IACpD,mEAAm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C,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;IACpD,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CACrD;AAED,sHAAsH;AACtH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,sDAAsD;IACtD,QAAQ,CAAC,WAAW,EAAE,MAAM,OAAO,CAAA;IACnC,iDAAiD;IACjD,QAAQ,CAAC,MAAM,EAAE,MAAM,OAAO,CAAA;CAC/B;AAED,iHAAiH;AACjH,MAAM,WAAW,UAAU;IACzB,gDAAgD;IAChD,QAAQ,CAAC,MAAM,EAAE,MAAM,OAAO,CAAA;IAC9B,sFAAsF;IACtF,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../../src/eslint-plugin/glob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../../src/eslint-plugin/glob.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAwEpD"}
|
|
@@ -23,6 +23,7 @@ export interface EvidenceProjectionResult<T extends Record<string, unknown>> {
|
|
|
23
23
|
*/
|
|
24
24
|
export interface EvidenceProjection<T extends Record<string, unknown>> {
|
|
25
25
|
(evidence: EvidenceModel): T;
|
|
26
|
+
/** Same computation as calling the projection directly, plus which `EvidenceModel` field paths fed each output key -- see {@link EvidenceProjectionResult}. */
|
|
26
27
|
project(evidence: EvidenceModel): EvidenceProjectionResult<T>;
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-projection.d.ts","sourceRoot":"","sources":["../../../src/evidence/define-projection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,KAAK,CAAC,CAAA;AAEjE,6FAA6F;AAC7F,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACxE,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACjD,CAAA;AAED,mHAAmH;AACnH,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzE,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAA;IACjB,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,CAAA;CAC/D;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACnE,CAAC,QAAQ,EAAE,aAAa,GAAG,CAAC,CAAA;IAC5B,OAAO,CAAC,QAAQ,EAAE,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAA;CAC9D;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxE,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAClC,kBAAkB,CAAC,CAAC,CAAC,CAkBvB;AAED;;;;;;;;;;GAUG;AACH,wBA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MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAEhF;AAED,yFAAyF;AACzF,wBAAgB,QAAQ,CAAC,gBAAgB,UAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,CAYrE;AAED,yEAAyE;AACzE,wBAAgB,WAAW,IAAI,SAAS,CAAC,MAAM,CAAC,CAE/C;AAED,qDAAqD;AACrD,wBAAgB,MAAM,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,EAAE,CAAC,CAG1C;AAED,sDAAsD;AACtD,wBAAgB,GAAG,IAAI,SAAS,CAAC,MAAM,CAAC,CASvC;AAED,mGAAmG;AACnG,wBAAgB,IAAI,CAAC,QAAQ,GAAE,SAAS,MAAM,EAA6B,GAAG,SAAS,CAAC,MAAM,CAAC,CAgC9F;AAED,kFAAkF;AAClF,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAE7D"}
|
|
@@ -8,7 +8,7 @@ import type { EnvSchema } from "./types.js";
|
|
|
8
8
|
* `owner`/..., specifically so that different epistemic status is visible in
|
|
9
9
|
* the shape itself and not only in a doc comment. See ADR 0037.
|
|
10
10
|
*/
|
|
11
|
-
interface VariableEvidenceDocs {
|
|
11
|
+
export interface VariableEvidenceDocs {
|
|
12
12
|
/**
|
|
13
13
|
* Citation(s) of where this variable is actually read dynamically --
|
|
14
14
|
* somewhere env-cap's own static AST scan can't see (a shell script, a
|
|
@@ -52,6 +52,46 @@ export interface VariableDocs {
|
|
|
52
52
|
expiresAt?: string;
|
|
53
53
|
/** How to get a new value before/when it expires (e.g. "Rotate in the Stripe dashboard, then redeploy."). */
|
|
54
54
|
refreshInstructions?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The kind of authenticator/secret this variable holds (e.g. "api-key", "oauth-client-secret",
|
|
57
|
+
* "database-password", "tls-certificate") -- feeds the NIST SP 800-53 IA-5 rotation-compliance
|
|
58
|
+
* report's "authenticator type" column (IA-5's main statement requires an organization-defined
|
|
59
|
+
* rotation period "by authenticator type," so this is what a generator groups/labels by).
|
|
60
|
+
*
|
|
61
|
+
* @remarks
|
|
62
|
+
* Deliberately an open `string`, not a closed union -- same "open vocabulary" pattern as
|
|
63
|
+
* {@link sensitivity}: an org's own authenticator taxonomy is its own, and IA-5 itself never
|
|
64
|
+
* names a fixed set of types either.
|
|
65
|
+
*/
|
|
66
|
+
authenticatorType?: string;
|
|
67
|
+
/**
|
|
68
|
+
* How often this variable's value must be rotated, in organization-defined terms (e.g. "90
|
|
69
|
+
* days", "P90D", "6 months") -- IA-5's own "organization-defined time period" per authenticator
|
|
70
|
+
* type (the time-based half of IA-5's two-trigger rotation model). Paired with
|
|
71
|
+
* {@link lastRotatedAt} so a generator can compute whether rotation is actually current, rather
|
|
72
|
+
* than only recording that a period was declared; see `lifecycle-model.ts`'s
|
|
73
|
+
* `computeRotationStatus()` for exactly how the two combine with {@link expiresAt}.
|
|
74
|
+
*/
|
|
75
|
+
rotationPeriod?: string;
|
|
76
|
+
/**
|
|
77
|
+
* ISO date string -- the last time this variable's value was actually rotated. Paired with
|
|
78
|
+
* {@link rotationPeriod} to compute rotation compliance. Independent of {@link expiresAt}, which
|
|
79
|
+
* states when the *current* value stops being valid, not when it was last changed -- a value can
|
|
80
|
+
* be freshly rotated and still have a near-term `expiresAt` (a short-lived token), or long overdue
|
|
81
|
+
* for rotation while its `expiresAt` (if any) is still comfortably in the future.
|
|
82
|
+
*/
|
|
83
|
+
lastRotatedAt?: string;
|
|
84
|
+
/**
|
|
85
|
+
* IA-5's event-based rotation triggers that apply to this variable (e.g. "suspected compromise",
|
|
86
|
+
* "personnel change", "system update") -- the event-based half of IA-5's two-trigger rotation
|
|
87
|
+
* model. Structured and additive alongside the existing free-text {@link refreshInstructions}
|
|
88
|
+
* rather than replacing it: this is a list a generator can render as its own column,
|
|
89
|
+
* `refreshInstructions` stays prose ("how to actually rotate it"). Presence-only -- env-cap has
|
|
90
|
+
* no way to observe whether a listed event actually occurred, so declaring this never by itself
|
|
91
|
+
* changes a computed rotation-compliance status (see `lifecycle-model.ts`); it only makes the
|
|
92
|
+
* event-based trigger's existence visible in generated output.
|
|
93
|
+
*/
|
|
94
|
+
rotationTriggerEvents?: readonly string[];
|
|
55
95
|
/**
|
|
56
96
|
* Explicit, actionable instructions for obtaining this variable's value the *first* time --
|
|
57
97
|
* where `refreshInstructions` is "how to rotate it once you already have one," this is "how to
|
|
@@ -177,5 +217,4 @@ export interface ContractDocs<S extends EnvSchema = EnvSchema> {
|
|
|
177
217
|
* string key in `docs.variables`, same as before this generic existed.
|
|
178
218
|
*/
|
|
179
219
|
export declare function documentEnv<S extends EnvSchema>(schema: S, docs: ContractDocs<S>): void;
|
|
180
|
-
export {};
|
|
181
220
|
//# sourceMappingURL=document.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/runtime/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C;;;;;;;;GAQG;AACH,
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../../src/runtime/document.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C;;;;;;;;GAQG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;;;;;OAaG;IACH,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,4HAA4H;IAC5H,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kJAAkJ;IAClJ,SAAS,CAAC,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;IACjB,sLAAsL;IACtL,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,+MAA+M;IAC/M,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,0FAA0F;IAC1F,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,+KAA+K;IAC/K,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,uHAAuH;IACvH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iHAAiH;IACjH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,+GAA+G;IAC/G,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gGAAgG;IAChG,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,oGAAoG;IACpG,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sGAAsG;IACtG,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACjC,gHAAgH;IAChH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,qIAAqI;IACrI,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE;QAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,YAAY;KAAE,CAAA;CACvD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAWH,wBAAgB,WAAW,CAAC,CAAC,SAAS,SAAS,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,CAYvF"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
export type { CreateEnvOptions, DefaultValue, EnvContract, EnvDefinition, EnvSchema, InferEnvValue, Processor, RawEnv, validateEnvOptions, validateEnvResult, Validator, } from "./types.js";
|
|
16
16
|
export { createEnv } from "./create.js";
|
|
17
17
|
export { documentEnv } from "./document.js";
|
|
18
|
-
export type { ContractDocs, VariableDocs } from "./document.js";
|
|
18
|
+
export type { ContractDocs, VariableDocs, VariableEvidenceDocs } from "./document.js";
|
|
19
19
|
export { EnvNotReadyError, EnvValidationError } from "./errors.js";
|
|
20
20
|
export type { VariableFailure } from "./errors.js";
|
|
21
21
|
export { isEnvContract } from "./registry.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,SAAS,EACT,aAAa,EACb,SAAS,EACT,MAAM,EACN,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,GACV,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,YAAY,EACV,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,aAAa,EACb,SAAS,EACT,aAAa,EACb,SAAS,EACT,MAAM,EACN,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,GACV,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AACrF,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAClE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/runtime/validate.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEvE;;;;;;;;;;GAUG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/runtime/validate.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEvE;;;;;;;;;;GAUG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAgDzF"}
|