@records-fhir/validation-types 0.1.14 → 0.2.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/CHANGELOG.md +22 -0
- package/README.md +1 -1
- package/dist/validation/effective-quality-policy.d.ts +8 -0
- package/dist/validation/effective-quality-policy.d.ts.map +1 -1
- package/dist/validation/external-quality-source.d.ts +25 -108
- package/dist/validation/external-quality-source.d.ts.map +1 -1
- package/dist/validation/finding-verification.d.ts +32 -244
- package/dist/validation/finding-verification.d.ts.map +1 -1
- package/dist/validation/quality-advisory-rule.d.ts +45 -219
- package/dist/validation/quality-advisory-rule.d.ts.map +1 -1
- package/dist/validation/quality-assessment-basis.d.ts +133 -0
- package/dist/validation/quality-assessment-basis.d.ts.map +1 -0
- package/dist/validation/quality-assessment-basis.js +55 -0
- package/dist/validation/quality-assessment-basis.js.map +1 -0
- package/dist/validation/quality-assessment-counts.d.ts +40 -0
- package/dist/validation/quality-assessment-counts.d.ts.map +1 -0
- package/dist/validation/quality-assessment-counts.js +57 -0
- package/dist/validation/quality-assessment-counts.js.map +1 -0
- package/dist/validation/quality-assessment-record.d.ts +193 -0
- package/dist/validation/quality-assessment-record.d.ts.map +1 -0
- package/dist/validation/quality-assessment-record.js +41 -0
- package/dist/validation/quality-assessment-record.js.map +1 -0
- package/dist/validation/quality-assessment.d.ts +7 -1
- package/dist/validation/quality-assessment.d.ts.map +1 -1
- package/dist/validation/quality-assessment.js +3 -1
- package/dist/validation/quality-assessment.js.map +1 -1
- package/dist/validation/quality-policy-layer.d.ts +265 -257
- package/dist/validation/quality-policy-layer.d.ts.map +1 -1
- package/dist/validation/quality-policy-layer.js +7 -0
- package/dist/validation/quality-policy-layer.js.map +1 -1
- package/dist/validation/quality-rule-pack-draft.d.ts +262 -1233
- package/dist/validation/quality-rule-pack-draft.d.ts.map +1 -1
- package/dist/validation/quality-rule-pack-draft.js +6 -1
- package/dist/validation/quality-rule-pack-draft.js.map +1 -1
- package/dist/validation/quality-rule-pack.d.ts +506 -1858
- package/dist/validation/quality-rule-pack.d.ts.map +1 -1
- package/dist/validation/quality-rule-pack.js +10 -8
- package/dist/validation/quality-rule-pack.js.map +1 -1
- package/dist/validation/quality-rule-schema-foundations.d.ts +1 -9
- package/dist/validation/quality-rule-schema-foundations.d.ts.map +1 -1
- package/dist/validation/quality-threshold.d.ts +14 -20
- package/dist/validation/quality-threshold.d.ts.map +1 -1
- package/dist/validation/settings-core-schema.d.ts +140 -355
- package/dist/validation/settings-core-schema.d.ts.map +1 -1
- package/dist/validation/settings-core-schema.js +5 -0
- package/dist/validation/settings-core-schema.js.map +1 -1
- package/dist/validation/settings-schema.d.ts +836 -4161
- package/dist/validation/settings-schema.d.ts.map +1 -1
- package/dist/validation/settings-schema.js +40 -4
- package/dist/validation/settings-schema.js.map +1 -1
- package/dist/validation/settings-terminology-schema.d.ts +80 -323
- package/dist/validation/settings-terminology-schema.d.ts.map +1 -1
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,28 @@ captures changes that affect type-package consumers directly.
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [0.2.0] — 2026-11-14
|
|
15
|
+
|
|
16
|
+
Released with `@records-fhir/validator` 0.10.1.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Add optional, bounded `packageDownload.serverBindings` for exact SHA-256-pinned
|
|
21
|
+
profile package contexts on one server. Workspace defaults and unbound servers
|
|
22
|
+
retain their existing package selection.
|
|
23
|
+
|
|
24
|
+
- Add explicit DQA assessment contracts through the dedicated
|
|
25
|
+
`validation/quality-assessment` entry point. New V2 program manifests require
|
|
26
|
+
a declared observation, predicate or threshold basis. Metric outcomes now
|
|
27
|
+
include `observation`; consumers with exhaustive outcome handling must update.
|
|
28
|
+
Historical manifests and evidence retain their legacy interpretation. New
|
|
29
|
+
metadata-only records separate assessment coverage and pre-advisory impact.
|
|
30
|
+
|
|
31
|
+
- Breaking schema-library boundary: runtime schemas now use the patched Zod
|
|
32
|
+
4.6.7 API. Consumers composing these schemas must use Zod 4. Sparse settings
|
|
33
|
+
updates, atomic replacement lists and terminology health defaults retain
|
|
34
|
+
their existing wire semantics.
|
|
35
|
+
|
|
14
36
|
## [0.1.14] — 2026-10-11
|
|
15
37
|
|
|
16
38
|
### Added
|
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ import type { ValidationIssue, ValidationSettings } from '@records-fhir/validati
|
|
|
35
35
|
Subpath imports are exported for stable type boundaries, for example:
|
|
36
36
|
|
|
37
37
|
```ts
|
|
38
|
-
import type { ValidationSettings } from '@records-fhir/validation-types/validation
|
|
38
|
+
import type { ValidationSettings } from '@records-fhir/validation-types/validation/settings';
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
## Development
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { QualityAdvisoryRuleDefinition, QualityComparisonClass, QualityRuleDefinition, QualityRuleOverride, QualityRuleSeverity } from './quality-rule-pack.js';
|
|
2
|
+
import type { QualityAssessmentBasis } from './quality-assessment-basis.js';
|
|
2
3
|
export interface EffectiveQualityRule {
|
|
3
4
|
packId: string;
|
|
4
5
|
packVersion: string;
|
|
@@ -6,6 +7,13 @@ export interface EffectiveQualityRule {
|
|
|
6
7
|
enabled: boolean;
|
|
7
8
|
effectiveSeverity: QualityRuleSeverity;
|
|
8
9
|
effectiveThreshold?: QualityRuleOverride['threshold'];
|
|
10
|
+
effectiveAssessment?: QualityAssessmentBasis;
|
|
11
|
+
assessmentProvenance?: {
|
|
12
|
+
basisOrigin: 'program' | 'policy';
|
|
13
|
+
severityOrigin: 'records-default' | 'program' | 'policy';
|
|
14
|
+
upstreamSeverity: 'not-provided';
|
|
15
|
+
populationFingerprint: `sha256:${string}`;
|
|
16
|
+
};
|
|
9
17
|
waiver?: QualityRuleOverride['waiver'];
|
|
10
18
|
}
|
|
11
19
|
export interface EffectiveQualityAdvisoryRule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effective-quality-policy.d.ts","sourceRoot":"","sources":["../../src/validation/effective-quality-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"effective-quality-policy.d.ts","sourceRoot":"","sources":["../../src/validation/effective-quality-policy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,iBAAiB,EAAE,mBAAmB,CAAC;IACvC,kBAAkB,CAAC,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACtD,mBAAmB,CAAC,EAAE,sBAAsB,CAAC;IAC7C,oBAAoB,CAAC,EAAE;QACrB,WAAW,EAAE,SAAS,GAAG,QAAQ,CAAC;QAClC,cAAc,EAAE,iBAAiB,GAAG,SAAS,GAAG,QAAQ,CAAC;QACzD,gBAAgB,EAAE,cAAc,CAAC;QACjC,qBAAqB,EAAE,UAAU,MAAM,EAAE,CAAC;KAC3C,CAAC;IACF,MAAM,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,sBAAsB,CAAC;IACxC,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,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AC,CAAC;IACH,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,UAAU,EAAE,4BAA4B,EAAE,CAAC;IAC3C,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACjD,gGAAgG;IAChG,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAC3C,aAAa,EAAE,oCAAoC,EAAE,CAAC;IACtD,sBAAsB,EAAE,KAAK,CAAC;QAC5B,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,SAAS,GAAG,SAAS,CAAC;QAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,gFAAgF;QAChF,UAAU,CAAC,EAAE,oCAAoC,CAAC;KACnD,CAAC,CAAC;CACJ"}
|
|
@@ -4,132 +4,49 @@ export declare const EXTERNAL_QUALITY_LICENSE_STATUSES: readonly ['verified', 'p
|
|
|
4
4
|
export declare const externalQualitySourceSchema: z.ZodObject<{
|
|
5
5
|
schemaVersion: z.ZodLiteral<1>;
|
|
6
6
|
id: z.ZodString;
|
|
7
|
-
providerType: z.ZodEnum<
|
|
7
|
+
providerType: z.ZodEnum<{
|
|
8
|
+
git: "git";
|
|
9
|
+
}>;
|
|
8
10
|
providerName: z.ZodString;
|
|
9
|
-
repositoryUrl: z.
|
|
11
|
+
repositoryUrl: z.ZodString;
|
|
10
12
|
sourceSubpath: z.ZodString;
|
|
11
13
|
trackingRef: z.ZodString;
|
|
12
|
-
state: z.ZodEnum<
|
|
14
|
+
state: z.ZodEnum<{
|
|
15
|
+
"blocked-license": "blocked-license";
|
|
16
|
+
"blocked-parse": "blocked-parse";
|
|
17
|
+
checking: "checking";
|
|
18
|
+
ready: "ready";
|
|
19
|
+
unreachable: "unreachable";
|
|
20
|
+
"up-to-date": "up-to-date";
|
|
21
|
+
"update-available": "update-available";
|
|
22
|
+
}>;
|
|
13
23
|
statusDetail: z.ZodString;
|
|
14
24
|
resolvedCommitSha: z.ZodString;
|
|
15
25
|
sourceContentHash: z.ZodString;
|
|
16
26
|
adapter: z.ZodObject<{
|
|
17
27
|
id: z.ZodString;
|
|
18
28
|
version: z.ZodString;
|
|
19
|
-
},
|
|
20
|
-
id: string;
|
|
21
|
-
version: string;
|
|
22
|
-
}, {
|
|
23
|
-
id: string;
|
|
24
|
-
version: string;
|
|
25
|
-
}>;
|
|
29
|
+
}, z.core.$strict>;
|
|
26
30
|
license: z.ZodObject<{
|
|
27
|
-
status: z.ZodEnum<
|
|
28
|
-
|
|
31
|
+
status: z.ZodEnum<{
|
|
32
|
+
incompatible: "incompatible";
|
|
33
|
+
missing: "missing";
|
|
34
|
+
"permission-recorded": "permission-recorded";
|
|
35
|
+
verified: "verified";
|
|
36
|
+
}>;
|
|
37
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
29
38
|
detail: z.ZodOptional<z.ZodString>;
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
reference?: string | undefined;
|
|
33
|
-
detail?: string | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
status: "incompatible" | "missing" | "permission-recorded" | "verified";
|
|
36
|
-
reference?: string | undefined;
|
|
37
|
-
detail?: string | undefined;
|
|
38
|
-
}>;
|
|
39
|
-
inventory: z.ZodEffects<z.ZodObject<{
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
inventory: z.ZodObject<{
|
|
40
41
|
activeChecks: z.ZodNumber;
|
|
41
42
|
modules: z.ZodNumber;
|
|
42
43
|
native: z.ZodNumber;
|
|
43
44
|
external: z.ZodNumber;
|
|
44
45
|
catalogOnly: z.ZodNumber;
|
|
45
|
-
},
|
|
46
|
-
activeChecks: number;
|
|
47
|
-
modules: number;
|
|
48
|
-
native: number;
|
|
49
|
-
external: number;
|
|
50
|
-
catalogOnly: number;
|
|
51
|
-
}, {
|
|
52
|
-
activeChecks: number;
|
|
53
|
-
modules: number;
|
|
54
|
-
native: number;
|
|
55
|
-
external: number;
|
|
56
|
-
catalogOnly: number;
|
|
57
|
-
}>, {
|
|
58
|
-
activeChecks: number;
|
|
59
|
-
modules: number;
|
|
60
|
-
native: number;
|
|
61
|
-
external: number;
|
|
62
|
-
catalogOnly: number;
|
|
63
|
-
}, {
|
|
64
|
-
activeChecks: number;
|
|
65
|
-
modules: number;
|
|
66
|
-
native: number;
|
|
67
|
-
external: number;
|
|
68
|
-
catalogOnly: number;
|
|
69
|
-
}>;
|
|
46
|
+
}, z.core.$strict>;
|
|
70
47
|
lastCheckedAt: z.ZodString;
|
|
71
48
|
lastSuccessfulImportAt: z.ZodNullable<z.ZodString>;
|
|
72
|
-
},
|
|
73
|
-
schemaVersion: 1;
|
|
74
|
-
id: string;
|
|
75
|
-
providerType: "git";
|
|
76
|
-
providerName: string;
|
|
77
|
-
repositoryUrl: string;
|
|
78
|
-
sourceSubpath: string;
|
|
79
|
-
trackingRef: string;
|
|
80
|
-
state: "blocked-license" | "blocked-parse" | "checking" | "ready" | "unreachable" | "up-to-date" | "update-available";
|
|
81
|
-
statusDetail: string;
|
|
82
|
-
resolvedCommitSha: string;
|
|
83
|
-
sourceContentHash: string;
|
|
84
|
-
adapter: {
|
|
85
|
-
id: string;
|
|
86
|
-
version: string;
|
|
87
|
-
};
|
|
88
|
-
license: {
|
|
89
|
-
status: "incompatible" | "missing" | "permission-recorded" | "verified";
|
|
90
|
-
reference?: string | undefined;
|
|
91
|
-
detail?: string | undefined;
|
|
92
|
-
};
|
|
93
|
-
inventory: {
|
|
94
|
-
activeChecks: number;
|
|
95
|
-
modules: number;
|
|
96
|
-
native: number;
|
|
97
|
-
external: number;
|
|
98
|
-
catalogOnly: number;
|
|
99
|
-
};
|
|
100
|
-
lastCheckedAt: string;
|
|
101
|
-
lastSuccessfulImportAt: string | null;
|
|
102
|
-
}, {
|
|
103
|
-
schemaVersion: 1;
|
|
104
|
-
id: string;
|
|
105
|
-
providerType: "git";
|
|
106
|
-
providerName: string;
|
|
107
|
-
repositoryUrl: string;
|
|
108
|
-
sourceSubpath: string;
|
|
109
|
-
trackingRef: string;
|
|
110
|
-
state: "blocked-license" | "blocked-parse" | "checking" | "ready" | "unreachable" | "up-to-date" | "update-available";
|
|
111
|
-
statusDetail: string;
|
|
112
|
-
resolvedCommitSha: string;
|
|
113
|
-
sourceContentHash: string;
|
|
114
|
-
adapter: {
|
|
115
|
-
id: string;
|
|
116
|
-
version: string;
|
|
117
|
-
};
|
|
118
|
-
license: {
|
|
119
|
-
status: "incompatible" | "missing" | "permission-recorded" | "verified";
|
|
120
|
-
reference?: string | undefined;
|
|
121
|
-
detail?: string | undefined;
|
|
122
|
-
};
|
|
123
|
-
inventory: {
|
|
124
|
-
activeChecks: number;
|
|
125
|
-
modules: number;
|
|
126
|
-
native: number;
|
|
127
|
-
external: number;
|
|
128
|
-
catalogOnly: number;
|
|
129
|
-
};
|
|
130
|
-
lastCheckedAt: string;
|
|
131
|
-
lastSuccessfulImportAt: string | null;
|
|
132
|
-
}>;
|
|
49
|
+
}, z.core.$strict>;
|
|
133
50
|
export type ExternalQualitySource = z.infer<typeof externalQualitySourceSchema>;
|
|
134
51
|
export type ExternalQualitySourceState = typeof EXTERNAL_QUALITY_SOURCE_STATES[number];
|
|
135
52
|
export type ExternalQualityLicenseStatus = typeof EXTERNAL_QUALITY_LICENSE_STATUSES[number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-quality-source.d.ts","sourceRoot":"","sources":["../../src/validation/external-quality-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,8BAA8B,YACzC,OAAO,EACP,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,aAAa,CACL,CAAC;AAEX,eAAO,MAAM,iCAAiC,YAC5C,UAAU,EACV,qBAAqB,EACrB,SAAS,EACT,cAAc,CACN,CAAC;AAcX,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"external-quality-source.d.ts","sourceRoot":"","sources":["../../src/validation/external-quality-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,8BAA8B,YACzC,OAAO,EACP,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,aAAa,CACL,CAAC;AAEX,eAAO,MAAM,iCAAiC,YAC5C,UAAU,EACV,qBAAqB,EACrB,SAAS,EACT,cAAc,CACN,CAAC;AAcX,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuC7B,CAAC;AAEZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAAG,OAAO,8BAA8B,CAAC,MAAM,CAAC,CAAC;AACvF,MAAM,MAAM,4BAA4B,GAAG,OAAO,iCAAiC,CAAC,MAAM,CAAC,CAAC;AAE5F,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,CAEhF"}
|
|
@@ -1,281 +1,69 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const findingIdentitySchema: z.ZodDiscriminatedUnion<
|
|
2
|
+
export declare const findingIdentitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
3
|
kind: z.ZodLiteral<"logical">;
|
|
4
4
|
signature: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
kind: "logical";
|
|
7
|
-
signature: string;
|
|
8
|
-
}, {
|
|
9
|
-
kind: "logical";
|
|
10
|
-
signature: string;
|
|
11
|
-
}>, z.ZodObject<{
|
|
5
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
12
6
|
kind: z.ZodLiteral<"data-quality">;
|
|
13
7
|
signature: z.ZodString;
|
|
14
|
-
},
|
|
15
|
-
kind: "data-quality";
|
|
16
|
-
signature: string;
|
|
17
|
-
}, {
|
|
18
|
-
kind: "data-quality";
|
|
19
|
-
signature: string;
|
|
20
|
-
}>]>;
|
|
8
|
+
}, z.core.$strict>], "kind">;
|
|
21
9
|
export type FindingIdentity = z.infer<typeof findingIdentitySchema>;
|
|
22
|
-
export declare const verifyFindingsRequestSchema: z.
|
|
10
|
+
export declare const verifyFindingsRequestSchema: z.ZodObject<{
|
|
23
11
|
sourceRunId: z.ZodNumber;
|
|
24
12
|
verificationRunId: z.ZodNumber;
|
|
25
|
-
findings: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
13
|
+
findings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
26
14
|
kind: z.ZodLiteral<"logical">;
|
|
27
15
|
signature: z.ZodString;
|
|
28
|
-
},
|
|
29
|
-
kind: "logical";
|
|
30
|
-
signature: string;
|
|
31
|
-
}, {
|
|
32
|
-
kind: "logical";
|
|
33
|
-
signature: string;
|
|
34
|
-
}>, z.ZodObject<{
|
|
16
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
35
17
|
kind: z.ZodLiteral<"data-quality">;
|
|
36
18
|
signature: z.ZodString;
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
signature: string;
|
|
40
|
-
}, {
|
|
41
|
-
kind: "data-quality";
|
|
42
|
-
signature: string;
|
|
43
|
-
}>]>, "many">;
|
|
44
|
-
}, "strict", z.ZodTypeAny, {
|
|
45
|
-
sourceRunId: number;
|
|
46
|
-
verificationRunId: number;
|
|
47
|
-
findings: ({
|
|
48
|
-
kind: "logical";
|
|
49
|
-
signature: string;
|
|
50
|
-
} | {
|
|
51
|
-
kind: "data-quality";
|
|
52
|
-
signature: string;
|
|
53
|
-
})[];
|
|
54
|
-
}, {
|
|
55
|
-
sourceRunId: number;
|
|
56
|
-
verificationRunId: number;
|
|
57
|
-
findings: ({
|
|
58
|
-
kind: "logical";
|
|
59
|
-
signature: string;
|
|
60
|
-
} | {
|
|
61
|
-
kind: "data-quality";
|
|
62
|
-
signature: string;
|
|
63
|
-
})[];
|
|
64
|
-
}>, {
|
|
65
|
-
sourceRunId: number;
|
|
66
|
-
verificationRunId: number;
|
|
67
|
-
findings: ({
|
|
68
|
-
kind: "logical";
|
|
69
|
-
signature: string;
|
|
70
|
-
} | {
|
|
71
|
-
kind: "data-quality";
|
|
72
|
-
signature: string;
|
|
73
|
-
})[];
|
|
74
|
-
}, {
|
|
75
|
-
sourceRunId: number;
|
|
76
|
-
verificationRunId: number;
|
|
77
|
-
findings: ({
|
|
78
|
-
kind: "logical";
|
|
79
|
-
signature: string;
|
|
80
|
-
} | {
|
|
81
|
-
kind: "data-quality";
|
|
82
|
-
signature: string;
|
|
83
|
-
})[];
|
|
84
|
-
}>;
|
|
19
|
+
}, z.core.$strict>], "kind">>;
|
|
20
|
+
}, z.core.$strict>;
|
|
85
21
|
export type VerifyFindingsRequest = z.infer<typeof verifyFindingsRequestSchema>;
|
|
86
|
-
export declare const findingVerificationStatusSchema: z.ZodEnum<
|
|
22
|
+
export declare const findingVerificationStatusSchema: z.ZodEnum<{
|
|
23
|
+
inconclusive: "inconclusive";
|
|
24
|
+
not_comparable: "not_comparable";
|
|
25
|
+
persists: "persists";
|
|
26
|
+
resolved: "resolved";
|
|
27
|
+
}>;
|
|
87
28
|
export type FindingVerificationStatus = z.infer<typeof findingVerificationStatusSchema>;
|
|
88
29
|
export declare const verifyFindingsResultSchema: z.ZodObject<{
|
|
89
30
|
sourceRunId: z.ZodNumber;
|
|
90
31
|
verificationRunId: z.ZodNumber;
|
|
91
32
|
validatorChanged: z.ZodNullable<z.ZodBoolean>;
|
|
92
33
|
findings: z.ZodArray<z.ZodObject<{
|
|
93
|
-
identity: z.ZodDiscriminatedUnion<
|
|
34
|
+
identity: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
94
35
|
kind: z.ZodLiteral<"logical">;
|
|
95
36
|
signature: z.ZodString;
|
|
96
|
-
},
|
|
97
|
-
kind: "logical";
|
|
98
|
-
signature: string;
|
|
99
|
-
}, {
|
|
100
|
-
kind: "logical";
|
|
101
|
-
signature: string;
|
|
102
|
-
}>, z.ZodObject<{
|
|
37
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
103
38
|
kind: z.ZodLiteral<"data-quality">;
|
|
104
39
|
signature: z.ZodString;
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
status: z.ZodEnum<["resolved", "persists", "not_comparable", "inconclusive"]>;
|
|
40
|
+
}, z.core.$strict>], "kind">;
|
|
41
|
+
status: z.ZodEnum<{
|
|
42
|
+
inconclusive: "inconclusive";
|
|
43
|
+
not_comparable: "not_comparable";
|
|
44
|
+
persists: "persists";
|
|
45
|
+
resolved: "resolved";
|
|
46
|
+
}>;
|
|
113
47
|
reason: z.ZodString;
|
|
114
48
|
sourceOccurrences: z.ZodNullable<z.ZodNumber>;
|
|
115
49
|
remainingOccurrences: z.ZodNullable<z.ZodNumber>;
|
|
116
50
|
qualityRulePassed: z.ZodNullable<z.ZodBoolean>;
|
|
117
|
-
},
|
|
118
|
-
|
|
119
|
-
kind: "logical";
|
|
120
|
-
signature: string;
|
|
121
|
-
} | {
|
|
122
|
-
kind: "data-quality";
|
|
123
|
-
signature: string;
|
|
124
|
-
};
|
|
125
|
-
status: "inconclusive" | "not_comparable" | "persists" | "resolved";
|
|
126
|
-
reason: string;
|
|
127
|
-
sourceOccurrences: number | null;
|
|
128
|
-
remainingOccurrences: number | null;
|
|
129
|
-
qualityRulePassed: boolean | null;
|
|
130
|
-
}, {
|
|
131
|
-
identity: {
|
|
132
|
-
kind: "logical";
|
|
133
|
-
signature: string;
|
|
134
|
-
} | {
|
|
135
|
-
kind: "data-quality";
|
|
136
|
-
signature: string;
|
|
137
|
-
};
|
|
138
|
-
status: "inconclusive" | "not_comparable" | "persists" | "resolved";
|
|
139
|
-
reason: string;
|
|
140
|
-
sourceOccurrences: number | null;
|
|
141
|
-
remainingOccurrences: number | null;
|
|
142
|
-
qualityRulePassed: boolean | null;
|
|
143
|
-
}>, "many">;
|
|
144
|
-
}, "strict", z.ZodTypeAny, {
|
|
145
|
-
sourceRunId: number;
|
|
146
|
-
verificationRunId: number;
|
|
147
|
-
validatorChanged: boolean | null;
|
|
148
|
-
findings: {
|
|
149
|
-
identity: {
|
|
150
|
-
kind: "logical";
|
|
151
|
-
signature: string;
|
|
152
|
-
} | {
|
|
153
|
-
kind: "data-quality";
|
|
154
|
-
signature: string;
|
|
155
|
-
};
|
|
156
|
-
status: "inconclusive" | "not_comparable" | "persists" | "resolved";
|
|
157
|
-
reason: string;
|
|
158
|
-
sourceOccurrences: number | null;
|
|
159
|
-
remainingOccurrences: number | null;
|
|
160
|
-
qualityRulePassed: boolean | null;
|
|
161
|
-
}[];
|
|
162
|
-
}, {
|
|
163
|
-
sourceRunId: number;
|
|
164
|
-
verificationRunId: number;
|
|
165
|
-
validatorChanged: boolean | null;
|
|
166
|
-
findings: {
|
|
167
|
-
identity: {
|
|
168
|
-
kind: "logical";
|
|
169
|
-
signature: string;
|
|
170
|
-
} | {
|
|
171
|
-
kind: "data-quality";
|
|
172
|
-
signature: string;
|
|
173
|
-
};
|
|
174
|
-
status: "inconclusive" | "not_comparable" | "persists" | "resolved";
|
|
175
|
-
reason: string;
|
|
176
|
-
sourceOccurrences: number | null;
|
|
177
|
-
remainingOccurrences: number | null;
|
|
178
|
-
qualityRulePassed: boolean | null;
|
|
179
|
-
}[];
|
|
180
|
-
}>;
|
|
51
|
+
}, z.core.$strict>>;
|
|
52
|
+
}, z.core.$strict>;
|
|
181
53
|
export type VerifyFindingsResult = z.infer<typeof verifyFindingsResultSchema>;
|
|
182
|
-
export declare const githubFindingManifestSchema: z.
|
|
54
|
+
export declare const githubFindingManifestSchema: z.ZodObject<{
|
|
183
55
|
schemaVersion: z.ZodLiteral<1>;
|
|
184
56
|
issues: z.ZodArray<z.ZodObject<{
|
|
185
|
-
url: z.
|
|
57
|
+
url: z.ZodString;
|
|
186
58
|
sourceRunId: z.ZodNumber;
|
|
187
|
-
findings: z.ZodArray<z.ZodDiscriminatedUnion<
|
|
59
|
+
findings: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
188
60
|
kind: z.ZodLiteral<"logical">;
|
|
189
61
|
signature: z.ZodString;
|
|
190
|
-
},
|
|
191
|
-
kind: "logical";
|
|
192
|
-
signature: string;
|
|
193
|
-
}, {
|
|
194
|
-
kind: "logical";
|
|
195
|
-
signature: string;
|
|
196
|
-
}>, z.ZodObject<{
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
197
63
|
kind: z.ZodLiteral<"data-quality">;
|
|
198
64
|
signature: z.ZodString;
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}, {
|
|
203
|
-
kind: "data-quality";
|
|
204
|
-
signature: string;
|
|
205
|
-
}>]>, "many">;
|
|
206
|
-
}, "strict", z.ZodTypeAny, {
|
|
207
|
-
url: string;
|
|
208
|
-
sourceRunId: number;
|
|
209
|
-
findings: ({
|
|
210
|
-
kind: "logical";
|
|
211
|
-
signature: string;
|
|
212
|
-
} | {
|
|
213
|
-
kind: "data-quality";
|
|
214
|
-
signature: string;
|
|
215
|
-
})[];
|
|
216
|
-
}, {
|
|
217
|
-
url: string;
|
|
218
|
-
sourceRunId: number;
|
|
219
|
-
findings: ({
|
|
220
|
-
kind: "logical";
|
|
221
|
-
signature: string;
|
|
222
|
-
} | {
|
|
223
|
-
kind: "data-quality";
|
|
224
|
-
signature: string;
|
|
225
|
-
})[];
|
|
226
|
-
}>, "many">;
|
|
227
|
-
}, "strict", z.ZodTypeAny, {
|
|
228
|
-
schemaVersion: 1;
|
|
229
|
-
issues: {
|
|
230
|
-
url: string;
|
|
231
|
-
sourceRunId: number;
|
|
232
|
-
findings: ({
|
|
233
|
-
kind: "logical";
|
|
234
|
-
signature: string;
|
|
235
|
-
} | {
|
|
236
|
-
kind: "data-quality";
|
|
237
|
-
signature: string;
|
|
238
|
-
})[];
|
|
239
|
-
}[];
|
|
240
|
-
}, {
|
|
241
|
-
schemaVersion: 1;
|
|
242
|
-
issues: {
|
|
243
|
-
url: string;
|
|
244
|
-
sourceRunId: number;
|
|
245
|
-
findings: ({
|
|
246
|
-
kind: "logical";
|
|
247
|
-
signature: string;
|
|
248
|
-
} | {
|
|
249
|
-
kind: "data-quality";
|
|
250
|
-
signature: string;
|
|
251
|
-
})[];
|
|
252
|
-
}[];
|
|
253
|
-
}>, {
|
|
254
|
-
schemaVersion: 1;
|
|
255
|
-
issues: {
|
|
256
|
-
url: string;
|
|
257
|
-
sourceRunId: number;
|
|
258
|
-
findings: ({
|
|
259
|
-
kind: "logical";
|
|
260
|
-
signature: string;
|
|
261
|
-
} | {
|
|
262
|
-
kind: "data-quality";
|
|
263
|
-
signature: string;
|
|
264
|
-
})[];
|
|
265
|
-
}[];
|
|
266
|
-
}, {
|
|
267
|
-
schemaVersion: 1;
|
|
268
|
-
issues: {
|
|
269
|
-
url: string;
|
|
270
|
-
sourceRunId: number;
|
|
271
|
-
findings: ({
|
|
272
|
-
kind: "logical";
|
|
273
|
-
signature: string;
|
|
274
|
-
} | {
|
|
275
|
-
kind: "data-quality";
|
|
276
|
-
signature: string;
|
|
277
|
-
})[];
|
|
278
|
-
}[];
|
|
279
|
-
}>;
|
|
65
|
+
}, z.core.$strict>], "kind">>;
|
|
66
|
+
}, z.core.$strict>>;
|
|
67
|
+
}, z.core.$strict>;
|
|
280
68
|
export type GitHubFindingManifest = z.infer<typeof githubFindingManifestSchema>;
|
|
281
69
|
//# sourceMappingURL=finding-verification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finding-verification.d.ts","sourceRoot":"","sources":["../../src/validation/finding-verification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"finding-verification.d.ts","sourceRoot":"","sources":["../../src/validation/finding-verification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;4BAGhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;;;;;kBAQtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,+BAA+B;;;;;EAAqE,CAAC;AAClH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;kBAY5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAQ9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;kBAkBtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|