@empressaio/atom-contract 1.7.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 +360 -0
- package/README.md +379 -0
- package/dist/composition.d.ts +112 -0
- package/dist/composition.d.ts.map +1 -0
- package/dist/composition.js +80 -0
- package/dist/composition.js.map +1 -0
- package/dist/conformance/common.d.ts +21 -0
- package/dist/conformance/common.d.ts.map +1 -0
- package/dist/conformance/common.js +29 -0
- package/dist/conformance/common.js.map +1 -0
- package/dist/conformance/fixtures.d.ts +13 -0
- package/dist/conformance/fixtures.d.ts.map +1 -0
- package/dist/conformance/fixtures.js +63 -0
- package/dist/conformance/fixtures.js.map +1 -0
- package/dist/conformance/index.d.ts +11 -0
- package/dist/conformance/index.d.ts.map +1 -0
- package/dist/conformance/index.js +11 -0
- package/dist/conformance/index.js.map +1 -0
- package/dist/conformance/validate.d.ts +49 -0
- package/dist/conformance/validate.d.ts.map +1 -0
- package/dist/conformance/validate.js +138 -0
- package/dist/conformance/validate.js.map +1 -0
- package/dist/conformance/verify-chain.d.ts +25 -0
- package/dist/conformance/verify-chain.d.ts.map +1 -0
- package/dist/conformance/verify-chain.js +76 -0
- package/dist/conformance/verify-chain.js.map +1 -0
- package/dist/context.d.ts +134 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +110 -0
- package/dist/context.js.map +1 -0
- package/dist/encumbrances/administrative-rule.d.ts +128 -0
- package/dist/encumbrances/administrative-rule.d.ts.map +1 -0
- package/dist/encumbrances/administrative-rule.js +18 -0
- package/dist/encumbrances/administrative-rule.js.map +1 -0
- package/dist/encumbrances/common.d.ts +153 -0
- package/dist/encumbrances/common.d.ts.map +1 -0
- package/dist/encumbrances/common.js +124 -0
- package/dist/encumbrances/common.js.map +1 -0
- package/dist/encumbrances/constraint-resolution.d.ts +169 -0
- package/dist/encumbrances/constraint-resolution.d.ts.map +1 -0
- package/dist/encumbrances/constraint-resolution.js +41 -0
- package/dist/encumbrances/constraint-resolution.js.map +1 -0
- package/dist/encumbrances/fixtures.d.ts +16 -0
- package/dist/encumbrances/fixtures.d.ts.map +1 -0
- package/dist/encumbrances/fixtures.js +107 -0
- package/dist/encumbrances/fixtures.js.map +1 -0
- package/dist/encumbrances/index.d.ts +15 -0
- package/dist/encumbrances/index.d.ts.map +1 -0
- package/dist/encumbrances/index.js +15 -0
- package/dist/encumbrances/index.js.map +1 -0
- package/dist/encumbrances/recorded-instrument.d.ts +131 -0
- package/dist/encumbrances/recorded-instrument.d.ts.map +1 -0
- package/dist/encumbrances/recorded-instrument.js +19 -0
- package/dist/encumbrances/recorded-instrument.js.map +1 -0
- package/dist/encumbrances/restriction-clause.d.ts +120 -0
- package/dist/encumbrances/restriction-clause.d.ts.map +1 -0
- package/dist/encumbrances/restriction-clause.js +17 -0
- package/dist/encumbrances/restriction-clause.js.map +1 -0
- package/dist/encumbrances/restriction-corpus.d.ts +44 -0
- package/dist/encumbrances/restriction-corpus.d.ts.map +1 -0
- package/dist/encumbrances/restriction-corpus.js +14 -0
- package/dist/encumbrances/restriction-corpus.js.map +1 -0
- package/dist/export/downloadable-atom.d.ts +133 -0
- package/dist/export/downloadable-atom.d.ts.map +1 -0
- package/dist/export/downloadable-atom.js +115 -0
- package/dist/export/downloadable-atom.js.map +1 -0
- package/dist/export/index.d.ts +6 -0
- package/dist/export/index.d.ts.map +1 -0
- package/dist/export/index.js +6 -0
- package/dist/export/index.js.map +1 -0
- package/dist/history.d.ts +124 -0
- package/dist/history.d.ts.map +1 -0
- package/dist/history.js +170 -0
- package/dist/history.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/inline-reference.d.ts +60 -0
- package/dist/inline-reference.d.ts.map +1 -0
- package/dist/inline-reference.js +73 -0
- package/dist/inline-reference.js.map +1 -0
- package/dist/obligation.d.ts +131 -0
- package/dist/obligation.d.ts.map +1 -0
- package/dist/obligation.js +55 -0
- package/dist/obligation.js.map +1 -0
- package/dist/og/common.d.ts +253 -0
- package/dist/og/common.d.ts.map +1 -0
- package/dist/og/common.js +195 -0
- package/dist/og/common.js.map +1 -0
- package/dist/og/completion.d.ts +70 -0
- package/dist/og/completion.d.ts.map +1 -0
- package/dist/og/completion.js +22 -0
- package/dist/og/completion.js.map +1 -0
- package/dist/og/equipment-state.d.ts +55 -0
- package/dist/og/equipment-state.d.ts.map +1 -0
- package/dist/og/equipment-state.js +25 -0
- package/dist/og/equipment-state.js.map +1 -0
- package/dist/og/fixtures.d.ts +40 -0
- package/dist/og/fixtures.d.ts.map +1 -0
- package/dist/og/fixtures.js +255 -0
- package/dist/og/fixtures.js.map +1 -0
- package/dist/og/index.d.ts +23 -0
- package/dist/og/index.d.ts.map +1 -0
- package/dist/og/index.js +23 -0
- package/dist/og/index.js.map +1 -0
- package/dist/og/mineral-lease.d.ts +150 -0
- package/dist/og/mineral-lease.d.ts.map +1 -0
- package/dist/og/mineral-lease.js +24 -0
- package/dist/og/mineral-lease.js.map +1 -0
- package/dist/og/ownership-interest.d.ts +163 -0
- package/dist/og/ownership-interest.d.ts.map +1 -0
- package/dist/og/ownership-interest.js +36 -0
- package/dist/og/ownership-interest.js.map +1 -0
- package/dist/og/pad.d.ts +101 -0
- package/dist/og/pad.d.ts.map +1 -0
- package/dist/og/pad.js +19 -0
- package/dist/og/pad.js.map +1 -0
- package/dist/og/production-timeseries.d.ts +154 -0
- package/dist/og/production-timeseries.d.ts.map +1 -0
- package/dist/og/production-timeseries.js +37 -0
- package/dist/og/production-timeseries.js.map +1 -0
- package/dist/og/revenue-allocation-unit.d.ts +762 -0
- package/dist/og/revenue-allocation-unit.d.ts.map +1 -0
- package/dist/og/revenue-allocation-unit.js +105 -0
- package/dist/og/revenue-allocation-unit.js.map +1 -0
- package/dist/og/rrc-lease.d.ts +124 -0
- package/dist/og/rrc-lease.d.ts.map +1 -0
- package/dist/og/rrc-lease.js +29 -0
- package/dist/og/rrc-lease.js.map +1 -0
- package/dist/og/tract.d.ts +88 -0
- package/dist/og/tract.d.ts.map +1 -0
- package/dist/og/tract.js +30 -0
- package/dist/og/tract.js.map +1 -0
- package/dist/og/well.d.ts +201 -0
- package/dist/og/well.d.ts.map +1 -0
- package/dist/og/well.js +40 -0
- package/dist/og/well.js.map +1 -0
- package/dist/og/wellbore.d.ts +61 -0
- package/dist/og/wellbore.d.ts.map +1 -0
- package/dist/og/wellbore.js +25 -0
- package/dist/og/wellbore.js.map +1 -0
- package/dist/og/zone.d.ts +45 -0
- package/dist/og/zone.d.ts.map +1 -0
- package/dist/og/zone.js +16 -0
- package/dist/og/zone.js.map +1 -0
- package/dist/read-contract/common.d.ts +74 -0
- package/dist/read-contract/common.d.ts.map +1 -0
- package/dist/read-contract/common.js +54 -0
- package/dist/read-contract/common.js.map +1 -0
- package/dist/read-contract/consequence.d.ts +99 -0
- package/dist/read-contract/consequence.d.ts.map +1 -0
- package/dist/read-contract/consequence.js +46 -0
- package/dist/read-contract/consequence.js.map +1 -0
- package/dist/read-contract/fixtures.d.ts +8 -0
- package/dist/read-contract/fixtures.d.ts.map +1 -0
- package/dist/read-contract/fixtures.js +44 -0
- package/dist/read-contract/fixtures.js.map +1 -0
- package/dist/read-contract/index.d.ts +14 -0
- package/dist/read-contract/index.d.ts.map +1 -0
- package/dist/read-contract/index.js +14 -0
- package/dist/read-contract/index.js.map +1 -0
- package/dist/read-contract/model-attribution.d.ts +85 -0
- package/dist/read-contract/model-attribution.d.ts.map +1 -0
- package/dist/read-contract/model-attribution.js +30 -0
- package/dist/read-contract/model-attribution.js.map +1 -0
- package/dist/read-contract/read-contract.d.ts +455 -0
- package/dist/read-contract/read-contract.d.ts.map +1 -0
- package/dist/read-contract/read-contract.js +46 -0
- package/dist/read-contract/read-contract.js.map +1 -0
- package/dist/registration.d.ts +192 -0
- package/dist/registration.d.ts.map +1 -0
- package/dist/registration.js +15 -0
- package/dist/registration.js.map +1 -0
- package/dist/registry.d.ts +128 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +122 -0
- package/dist/registry.js.map +1 -0
- package/dist/render.d.ts +30 -0
- package/dist/render.d.ts.map +1 -0
- package/dist/render.js +44 -0
- package/dist/render.js.map +1 -0
- package/dist/scope.d.ts +46 -0
- package/dist/scope.d.ts.map +1 -0
- package/dist/scope.js +17 -0
- package/dist/scope.js.map +1 -0
- package/dist/temporal/anticipatory-atom.d.ts +123 -0
- package/dist/temporal/anticipatory-atom.d.ts.map +1 -0
- package/dist/temporal/anticipatory-atom.js +124 -0
- package/dist/temporal/anticipatory-atom.js.map +1 -0
- package/dist/temporal/common.d.ts +47 -0
- package/dist/temporal/common.d.ts.map +1 -0
- package/dist/temporal/common.js +100 -0
- package/dist/temporal/common.js.map +1 -0
- package/dist/temporal/fixtures.d.ts +7 -0
- package/dist/temporal/fixtures.d.ts.map +1 -0
- package/dist/temporal/fixtures.js +21 -0
- package/dist/temporal/fixtures.js.map +1 -0
- package/dist/temporal/index.d.ts +13 -0
- package/dist/temporal/index.d.ts.map +1 -0
- package/dist/temporal/index.js +13 -0
- package/dist/temporal/index.js.map +1 -0
- package/dist/temporal/interval-query.d.ts +42 -0
- package/dist/temporal/interval-query.d.ts.map +1 -0
- package/dist/temporal/interval-query.js +49 -0
- package/dist/temporal/interval-query.js.map +1 -0
- package/dist/temporal/node-id.d.ts +112 -0
- package/dist/temporal/node-id.d.ts.map +1 -0
- package/dist/temporal/node-id.js +208 -0
- package/dist/temporal/node-id.js.map +1 -0
- package/dist/temporal/would-affect-edge.d.ts +66 -0
- package/dist/temporal/would-affect-edge.d.ts.map +1 -0
- package/dist/temporal/would-affect-edge.js +113 -0
- package/dist/temporal/would-affect-edge.js.map +1 -0
- package/dist/testing/index.d.ts +98 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +225 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/vda.d.ts +46 -0
- package/dist/vda.d.ts.map +1 -0
- package/dist/vda.js +42 -0
- package/dist/vda.js.map +1 -0
- package/dist/workspace/brief-run.d.ts +104 -0
- package/dist/workspace/brief-run.d.ts.map +1 -0
- package/dist/workspace/brief-run.js +32 -0
- package/dist/workspace/brief-run.js.map +1 -0
- package/dist/workspace/common.d.ts +42 -0
- package/dist/workspace/common.d.ts.map +1 -0
- package/dist/workspace/common.js +26 -0
- package/dist/workspace/common.js.map +1 -0
- package/dist/workspace/fixtures.d.ts +10 -0
- package/dist/workspace/fixtures.d.ts.map +1 -0
- package/dist/workspace/fixtures.js +93 -0
- package/dist/workspace/fixtures.js.map +1 -0
- package/dist/workspace/index.d.ts +13 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +13 -0
- package/dist/workspace/index.js.map +1 -0
- package/dist/workspace/property-workspace.d.ts +148 -0
- package/dist/workspace/property-workspace.d.ts.map +1 -0
- package/dist/workspace/property-workspace.js +21 -0
- package/dist/workspace/property-workspace.js.map +1 -0
- package/dist/workspace/workspace-attachment.d.ts +99 -0
- package/dist/workspace/workspace-attachment.d.ts.map +1 -0
- package/dist/workspace/workspace-attachment.js +35 -0
- package/dist/workspace/workspace-attachment.js.map +1 -0
- package/dist/workspace/workspace-share-edge.d.ts +115 -0
- package/dist/workspace/workspace-share-edge.d.ts.map +1 -0
- package/dist/workspace/workspace-share-edge.js +22 -0
- package/dist/workspace/workspace-share-edge.js.map +1 -0
- package/package.json +107 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type WidthedConfidence } from "../read-contract/common.js";
|
|
3
|
+
import { type LegalWeight } from "./common.js";
|
|
4
|
+
/** Basis atom cited in a resolved rule entry (ADR-021). */
|
|
5
|
+
export type ResolutionBasis = "code-section" | "code-amendment" | "constraint-overlay" | "restriction-clause" | "administrative-rule";
|
|
6
|
+
export declare const RESOLUTION_BASES: ReadonlyArray<ResolutionBasis>;
|
|
7
|
+
export type ConflictStatus = "unresolved" | "resolved";
|
|
8
|
+
export declare const CONFLICT_STATUSES: ReadonlyArray<ConflictStatus>;
|
|
9
|
+
export interface ResolvedRuleEntry {
|
|
10
|
+
basis: ResolutionBasis;
|
|
11
|
+
basisCid: string;
|
|
12
|
+
ruleSummary: string;
|
|
13
|
+
precedenceRank: number;
|
|
14
|
+
confidence: WidthedConfidence;
|
|
15
|
+
legalWeight: LegalWeight;
|
|
16
|
+
precedenceReason: string;
|
|
17
|
+
evaluatedAt: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ConstraintConflictEntry {
|
|
20
|
+
topic: string;
|
|
21
|
+
competingBasisCids: ReadonlyArray<string>;
|
|
22
|
+
status: ConflictStatus;
|
|
23
|
+
resolutionNote?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ConstraintResolutionAtomInstance {
|
|
26
|
+
entityType: "constraint-resolution";
|
|
27
|
+
/** Stable id for this resolution run (ADR-011 pattern). */
|
|
28
|
+
resolutionDid: string;
|
|
29
|
+
parcelDid: string;
|
|
30
|
+
resolvedAt: string;
|
|
31
|
+
rules: ReadonlyArray<ResolvedRuleEntry>;
|
|
32
|
+
conflicts: ReadonlyArray<ConstraintConflictEntry>;
|
|
33
|
+
procedureExecutionCid?: string;
|
|
34
|
+
accessPolicy?: "tenant-private" | "tenant-shared";
|
|
35
|
+
}
|
|
36
|
+
export declare const CONSTRAINT_RESOLUTION_SCHEMA: z.ZodObject<{
|
|
37
|
+
entityType: z.ZodLiteral<"constraint-resolution">;
|
|
38
|
+
resolutionDid: z.ZodString;
|
|
39
|
+
parcelDid: z.ZodString;
|
|
40
|
+
resolvedAt: z.ZodString;
|
|
41
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
42
|
+
basis: z.ZodEnum<[ResolutionBasis, ...ResolutionBasis[]]>;
|
|
43
|
+
basisCid: z.ZodString;
|
|
44
|
+
ruleSummary: z.ZodString;
|
|
45
|
+
precedenceRank: z.ZodNumber;
|
|
46
|
+
confidence: z.ZodReadonly<z.ZodObject<{
|
|
47
|
+
readonly estimate: z.ZodNumber;
|
|
48
|
+
readonly n: z.ZodNumber;
|
|
49
|
+
readonly intervalWidth: z.ZodNumber;
|
|
50
|
+
readonly provenance: z.ZodEnum<["asserted", "backtest", "seed", "live"]>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
estimate: number;
|
|
53
|
+
n: number;
|
|
54
|
+
intervalWidth: number;
|
|
55
|
+
provenance: "asserted" | "backtest" | "seed" | "live";
|
|
56
|
+
}, {
|
|
57
|
+
estimate: number;
|
|
58
|
+
n: number;
|
|
59
|
+
intervalWidth: number;
|
|
60
|
+
provenance: "asserted" | "backtest" | "seed" | "live";
|
|
61
|
+
}>>;
|
|
62
|
+
legalWeight: z.ZodEnum<["recorded", "advisory"]>;
|
|
63
|
+
precedenceReason: z.ZodString;
|
|
64
|
+
evaluatedAt: z.ZodString;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
confidence: Readonly<{
|
|
67
|
+
estimate: number;
|
|
68
|
+
n: number;
|
|
69
|
+
intervalWidth: number;
|
|
70
|
+
provenance: "asserted" | "backtest" | "seed" | "live";
|
|
71
|
+
}>;
|
|
72
|
+
legalWeight: "recorded" | "advisory";
|
|
73
|
+
evaluatedAt: string;
|
|
74
|
+
basis: ResolutionBasis;
|
|
75
|
+
basisCid: string;
|
|
76
|
+
ruleSummary: string;
|
|
77
|
+
precedenceRank: number;
|
|
78
|
+
precedenceReason: string;
|
|
79
|
+
}, {
|
|
80
|
+
confidence: Readonly<{
|
|
81
|
+
estimate: number;
|
|
82
|
+
n: number;
|
|
83
|
+
intervalWidth: number;
|
|
84
|
+
provenance: "asserted" | "backtest" | "seed" | "live";
|
|
85
|
+
}>;
|
|
86
|
+
legalWeight: "recorded" | "advisory";
|
|
87
|
+
evaluatedAt: string;
|
|
88
|
+
basis: ResolutionBasis;
|
|
89
|
+
basisCid: string;
|
|
90
|
+
ruleSummary: string;
|
|
91
|
+
precedenceRank: number;
|
|
92
|
+
precedenceReason: string;
|
|
93
|
+
}>, "many">;
|
|
94
|
+
conflicts: z.ZodArray<z.ZodObject<{
|
|
95
|
+
topic: z.ZodString;
|
|
96
|
+
competingBasisCids: z.ZodArray<z.ZodString, "many">;
|
|
97
|
+
status: z.ZodEnum<[ConflictStatus, ...ConflictStatus[]]>;
|
|
98
|
+
resolutionNote: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
status: ConflictStatus;
|
|
101
|
+
topic: string;
|
|
102
|
+
competingBasisCids: string[];
|
|
103
|
+
resolutionNote?: string | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
status: ConflictStatus;
|
|
106
|
+
topic: string;
|
|
107
|
+
competingBasisCids: string[];
|
|
108
|
+
resolutionNote?: string | undefined;
|
|
109
|
+
}>, "many">;
|
|
110
|
+
procedureExecutionCid: z.ZodOptional<z.ZodString>;
|
|
111
|
+
accessPolicy: z.ZodOptional<z.ZodEnum<["tenant-private", "tenant-shared"]>>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
entityType: "constraint-resolution";
|
|
114
|
+
resolutionDid: string;
|
|
115
|
+
parcelDid: string;
|
|
116
|
+
resolvedAt: string;
|
|
117
|
+
rules: {
|
|
118
|
+
confidence: Readonly<{
|
|
119
|
+
estimate: number;
|
|
120
|
+
n: number;
|
|
121
|
+
intervalWidth: number;
|
|
122
|
+
provenance: "asserted" | "backtest" | "seed" | "live";
|
|
123
|
+
}>;
|
|
124
|
+
legalWeight: "recorded" | "advisory";
|
|
125
|
+
evaluatedAt: string;
|
|
126
|
+
basis: ResolutionBasis;
|
|
127
|
+
basisCid: string;
|
|
128
|
+
ruleSummary: string;
|
|
129
|
+
precedenceRank: number;
|
|
130
|
+
precedenceReason: string;
|
|
131
|
+
}[];
|
|
132
|
+
conflicts: {
|
|
133
|
+
status: ConflictStatus;
|
|
134
|
+
topic: string;
|
|
135
|
+
competingBasisCids: string[];
|
|
136
|
+
resolutionNote?: string | undefined;
|
|
137
|
+
}[];
|
|
138
|
+
accessPolicy?: "tenant-private" | "tenant-shared" | undefined;
|
|
139
|
+
procedureExecutionCid?: string | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
entityType: "constraint-resolution";
|
|
142
|
+
resolutionDid: string;
|
|
143
|
+
parcelDid: string;
|
|
144
|
+
resolvedAt: string;
|
|
145
|
+
rules: {
|
|
146
|
+
confidence: Readonly<{
|
|
147
|
+
estimate: number;
|
|
148
|
+
n: number;
|
|
149
|
+
intervalWidth: number;
|
|
150
|
+
provenance: "asserted" | "backtest" | "seed" | "live";
|
|
151
|
+
}>;
|
|
152
|
+
legalWeight: "recorded" | "advisory";
|
|
153
|
+
evaluatedAt: string;
|
|
154
|
+
basis: ResolutionBasis;
|
|
155
|
+
basisCid: string;
|
|
156
|
+
ruleSummary: string;
|
|
157
|
+
precedenceRank: number;
|
|
158
|
+
precedenceReason: string;
|
|
159
|
+
}[];
|
|
160
|
+
conflicts: {
|
|
161
|
+
status: ConflictStatus;
|
|
162
|
+
topic: string;
|
|
163
|
+
competingBasisCids: string[];
|
|
164
|
+
resolutionNote?: string | undefined;
|
|
165
|
+
}[];
|
|
166
|
+
accessPolicy?: "tenant-private" | "tenant-shared" | undefined;
|
|
167
|
+
procedureExecutionCid?: string | undefined;
|
|
168
|
+
}>;
|
|
169
|
+
//# sourceMappingURL=constraint-resolution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constraint-resolution.d.ts","sourceRoot":"","sources":["../../src/encumbrances/constraint-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAoC,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAEjF,2DAA2D;AAC3D,MAAM,MAAM,eAAe,GACvB,cAAc,GACd,gBAAgB,GAChB,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,CAAC;AAE1B,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,eAAe,CAM3D,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,UAAU,CAAC;AAEvD,eAAO,MAAM,iBAAiB,EAAE,aAAa,CAAC,cAAc,CAG3D,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,WAAW,EAAE,WAAW,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC1C,MAAM,EAAE,cAAc,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,gCAAgC;IAC/C,UAAU,EAAE,uBAAuB,CAAC;IACpC,2DAA2D;IAC3D,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACxC,SAAS,EAAE,aAAa,CAAC,uBAAuB,CAAC,CAAC;IAClD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,gBAAgB,GAAG,eAAe,CAAC;CACnD;AAsBD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASvC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { WIDTHED_CONFIDENCE_SCHEMA, } from "../read-contract/common.js";
|
|
3
|
+
import { ENCUMBRANCE_ACCESS_POLICY_SCHEMA } from "./common.js";
|
|
4
|
+
export const RESOLUTION_BASES = [
|
|
5
|
+
"code-section",
|
|
6
|
+
"code-amendment",
|
|
7
|
+
"constraint-overlay",
|
|
8
|
+
"restriction-clause",
|
|
9
|
+
"administrative-rule",
|
|
10
|
+
];
|
|
11
|
+
export const CONFLICT_STATUSES = [
|
|
12
|
+
"unresolved",
|
|
13
|
+
"resolved",
|
|
14
|
+
];
|
|
15
|
+
const RESOLVED_RULE_SCHEMA = z.object({
|
|
16
|
+
basis: z.enum(RESOLUTION_BASES),
|
|
17
|
+
basisCid: z.string().min(1),
|
|
18
|
+
ruleSummary: z.string().min(1),
|
|
19
|
+
precedenceRank: z.number().int(),
|
|
20
|
+
confidence: WIDTHED_CONFIDENCE_SCHEMA,
|
|
21
|
+
legalWeight: z.enum(["recorded", "advisory"]),
|
|
22
|
+
precedenceReason: z.string().min(1),
|
|
23
|
+
evaluatedAt: z.string().min(1),
|
|
24
|
+
});
|
|
25
|
+
const CONFLICT_SCHEMA = z.object({
|
|
26
|
+
topic: z.string().min(1),
|
|
27
|
+
competingBasisCids: z.array(z.string().min(1)).min(1),
|
|
28
|
+
status: z.enum(CONFLICT_STATUSES),
|
|
29
|
+
resolutionNote: z.string().min(1).optional(),
|
|
30
|
+
});
|
|
31
|
+
export const CONSTRAINT_RESOLUTION_SCHEMA = z.object({
|
|
32
|
+
entityType: z.literal("constraint-resolution"),
|
|
33
|
+
resolutionDid: z.string().min(1),
|
|
34
|
+
parcelDid: z.string().min(1),
|
|
35
|
+
resolvedAt: z.string().min(1),
|
|
36
|
+
rules: z.array(RESOLVED_RULE_SCHEMA),
|
|
37
|
+
conflicts: z.array(CONFLICT_SCHEMA),
|
|
38
|
+
procedureExecutionCid: z.string().min(1).optional(),
|
|
39
|
+
accessPolicy: ENCUMBRANCE_ACCESS_POLICY_SCHEMA.optional(),
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=constraint-resolution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constraint-resolution.js","sourceRoot":"","sources":["../../src/encumbrances/constraint-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,yBAAyB,GAE1B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,gCAAgC,EAAoB,MAAM,aAAa,CAAC;AAUjF,MAAM,CAAC,MAAM,gBAAgB,GAAmC;IAC9D,cAAc;IACd,gBAAgB;IAChB,oBAAoB;IACpB,oBAAoB;IACpB,qBAAqB;CACtB,CAAC;AAIF,MAAM,CAAC,MAAM,iBAAiB,GAAkC;IAC9D,YAAY;IACZ,UAAU;CACX,CAAC;AAgCF,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,CAAC,CAAC,IAAI,CACX,gBAA2D,CAC5D;IACD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAChC,UAAU,EAAE,yBAAyB;IACrC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC7C,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,iBAA0D,CAAC;IAC1E,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;IAC9C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;IACpC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;IACnC,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACnD,YAAY,EAAE,gCAAgC,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sample encumbrance payloads for contract tests and consumer scaffolding.
|
|
3
|
+
* Phase 1 R4 upload (Cortex) should validate against these shapes.
|
|
4
|
+
*/
|
|
5
|
+
import type { AdministrativeRuleAtomInstance } from "./administrative-rule.js";
|
|
6
|
+
import type { ConstraintResolutionAtomInstance } from "./constraint-resolution.js";
|
|
7
|
+
import type { RecordedInstrumentAtomInstance } from "./recorded-instrument.js";
|
|
8
|
+
import type { RestrictionClauseAtomInstance } from "./restriction-clause.js";
|
|
9
|
+
import type { RestrictionCorpusAtomInstance } from "./restriction-corpus.js";
|
|
10
|
+
export declare const SAMPLE_RECORDED_INSTRUMENT: RecordedInstrumentAtomInstance;
|
|
11
|
+
export declare const SAMPLE_UPLOAD_ONLY_INSTRUMENT: RecordedInstrumentAtomInstance;
|
|
12
|
+
export declare const SAMPLE_RESTRICTION_CLAUSE: RestrictionClauseAtomInstance;
|
|
13
|
+
export declare const SAMPLE_RESTRICTION_CORPUS: RestrictionCorpusAtomInstance;
|
|
14
|
+
export declare const SAMPLE_ADMINISTRATIVE_RULE: AdministrativeRuleAtomInstance;
|
|
15
|
+
export declare const SAMPLE_CONSTRAINT_RESOLUTION: ConstraintResolutionAtomInstance;
|
|
16
|
+
//# sourceMappingURL=fixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../src/encumbrances/fixtures.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAE/E,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAC;AAE7E,eAAO,MAAM,0BAA0B,EAAE,8BAqBxC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,8BAU3C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,6BAgBvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,6BAUvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,8BAWxC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,gCA+B1C,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sample encumbrance payloads for contract tests and consumer scaffolding.
|
|
3
|
+
* Phase 1 R4 upload (Cortex) should validate against these shapes.
|
|
4
|
+
*/
|
|
5
|
+
import { createEncumbranceQualityConfidence } from "./common.js";
|
|
6
|
+
export const SAMPLE_RECORDED_INSTRUMENT = {
|
|
7
|
+
entityType: "recorded-instrument",
|
|
8
|
+
instrumentDid: "did:hauska:instrument:bastrop-lot-12-ccr-2019",
|
|
9
|
+
instrumentType: "cc-r-declaration",
|
|
10
|
+
recording: {
|
|
11
|
+
county: "Bastrop",
|
|
12
|
+
state: "TX",
|
|
13
|
+
instrumentNumber: "2019-001234",
|
|
14
|
+
recordedAt: "2019-03-15T00:00:00Z",
|
|
15
|
+
},
|
|
16
|
+
issuerActorDid: "did:hauska:actor:hoa-oak-hollow",
|
|
17
|
+
sourceDocumentCid: "bafySampleInstrumentPdf",
|
|
18
|
+
appliesTo: {
|
|
19
|
+
platId: "plat-oak-hollow-phase-2",
|
|
20
|
+
parcelDids: ["did:hauska:parcel:bastrop-lot-12"],
|
|
21
|
+
},
|
|
22
|
+
accessPolicy: "tenant-private",
|
|
23
|
+
legalWeight: "recorded",
|
|
24
|
+
verificationStatus: "machine",
|
|
25
|
+
extractedAt: "2026-05-26T12:00:00Z",
|
|
26
|
+
sourceAdapter: "R4",
|
|
27
|
+
};
|
|
28
|
+
export const SAMPLE_UPLOAD_ONLY_INSTRUMENT = {
|
|
29
|
+
...SAMPLE_RECORDED_INSTRUMENT,
|
|
30
|
+
instrumentDid: "did:hauska:instrument:engagement-upload-deed-001",
|
|
31
|
+
instrumentType: "deed-restriction",
|
|
32
|
+
recording: null,
|
|
33
|
+
sourceAdapter: "R4",
|
|
34
|
+
appliesTo: {
|
|
35
|
+
parcelDids: ["did:hauska:parcel:cedar-hill-lot-7"],
|
|
36
|
+
legalDescription: "Lot 7, Block C, Cedar Hill Estates",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export const SAMPLE_RESTRICTION_CLAUSE = {
|
|
40
|
+
entityType: "restriction-clause",
|
|
41
|
+
clauseDid: "did:hauska:clause:oak-hollow-height-7-4-2",
|
|
42
|
+
parentInstrumentCid: "bafySampleInstrumentPdf",
|
|
43
|
+
clausePath: "Article VII § 4.2",
|
|
44
|
+
bodyText: "No structure shall exceed thirty-five (35) feet in height above finished grade.",
|
|
45
|
+
structuredFields: { maxHeightFt: 35 },
|
|
46
|
+
confidence: createEncumbranceQualityConfidence(0.92),
|
|
47
|
+
extractedBy: "encumbrance-extract-v1",
|
|
48
|
+
accessPolicy: "tenant-private",
|
|
49
|
+
legalWeight: "recorded",
|
|
50
|
+
sourceCitation: "CC&R Oak Hollow Phase 2, p. 14",
|
|
51
|
+
evaluatedAt: "2026-05-26T12:05:00Z",
|
|
52
|
+
reasoningSummary: "Height cap extracted from Article VII; matches plat elevation note.",
|
|
53
|
+
};
|
|
54
|
+
export const SAMPLE_RESTRICTION_CORPUS = {
|
|
55
|
+
entityType: "restriction-corpus",
|
|
56
|
+
corpusDid: "did:hauska:corpus:oak-hollow-phase-2",
|
|
57
|
+
displayName: "Oak Hollow Phase 2 CC&Rs",
|
|
58
|
+
platId: "plat-oak-hollow-phase-2",
|
|
59
|
+
subdivisionName: "Oak Hollow Phase 2",
|
|
60
|
+
instrumentCids: ["bafySampleInstrumentPdf", "bafyPlatRestrictionsPdf"],
|
|
61
|
+
coverageParcelCount: 142,
|
|
62
|
+
lastRefreshedAt: "2026-05-26T12:00:00Z",
|
|
63
|
+
accessPolicy: "tenant-shared",
|
|
64
|
+
};
|
|
65
|
+
export const SAMPLE_ADMINISTRATIVE_RULE = {
|
|
66
|
+
entityType: "administrative-rule",
|
|
67
|
+
clauseDid: "did:hauska:rule:oak-hollow-fence-guideline",
|
|
68
|
+
clausePath: "Design Guidelines § 3.1",
|
|
69
|
+
bodyText: "Front-yard fences shall use wrought iron or masonry only.",
|
|
70
|
+
confidence: createEncumbranceQualityConfidence(0.88),
|
|
71
|
+
extractedBy: "encumbrance-extract-v1",
|
|
72
|
+
accessPolicy: "tenant-private",
|
|
73
|
+
legalWeight: "advisory",
|
|
74
|
+
sourceCitation: "HOA design guidelines packet, p. 8",
|
|
75
|
+
evaluatedAt: "2026-05-26T12:10:00Z",
|
|
76
|
+
};
|
|
77
|
+
export const SAMPLE_CONSTRAINT_RESOLUTION = {
|
|
78
|
+
entityType: "constraint-resolution",
|
|
79
|
+
resolutionDid: "did:hauska:resolution:bastrop-lot-12-2026-05-26",
|
|
80
|
+
parcelDid: "did:hauska:parcel:bastrop-lot-12",
|
|
81
|
+
resolvedAt: "2026-05-26T12:15:00Z",
|
|
82
|
+
rules: [
|
|
83
|
+
{
|
|
84
|
+
basis: "code-section",
|
|
85
|
+
basisCid: "bafyZoningSetbackSection",
|
|
86
|
+
ruleSummary: "Front setback 25 ft minimum (zoning).",
|
|
87
|
+
precedenceRank: 1,
|
|
88
|
+
confidence: createEncumbranceQualityConfidence(0.99),
|
|
89
|
+
legalWeight: "recorded",
|
|
90
|
+
precedenceReason: "Adopted municipal code sets the public minimum; private covenant may be stricter.",
|
|
91
|
+
evaluatedAt: "2026-05-26T12:15:00Z",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
basis: "restriction-clause",
|
|
95
|
+
basisCid: "bafyClauseHeightLimit",
|
|
96
|
+
ruleSummary: "Maximum structure height 35 ft (CC&R).",
|
|
97
|
+
precedenceRank: 2,
|
|
98
|
+
confidence: createEncumbranceQualityConfidence(0.92),
|
|
99
|
+
legalWeight: "recorded",
|
|
100
|
+
precedenceReason: "Recorded covenant is stricter than zoning height allowance on the same topic.",
|
|
101
|
+
evaluatedAt: "2026-05-26T12:15:00Z",
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
conflicts: [],
|
|
105
|
+
accessPolicy: "tenant-private",
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../src/encumbrances/fixtures.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ADR-020 / ADR-021 encumbrance atom type definitions.
|
|
3
|
+
*
|
|
4
|
+
* Import from `@empressaio/atom-contract/encumbrances`. Engine registry
|
|
5
|
+
* bindings and ingest producers register against these schemas in
|
|
6
|
+
* `hauska-engine/packages/atoms/` (cc-agent-E follow-on).
|
|
7
|
+
*/
|
|
8
|
+
export * from "./common.js";
|
|
9
|
+
export * from "./recorded-instrument.js";
|
|
10
|
+
export * from "./restriction-clause.js";
|
|
11
|
+
export * from "./restriction-corpus.js";
|
|
12
|
+
export * from "./administrative-rule.js";
|
|
13
|
+
export * from "./constraint-resolution.js";
|
|
14
|
+
export * from "./fixtures.js";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/encumbrances/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ADR-020 / ADR-021 encumbrance atom type definitions.
|
|
3
|
+
*
|
|
4
|
+
* Import from `@empressaio/atom-contract/encumbrances`. Engine registry
|
|
5
|
+
* bindings and ingest producers register against these schemas in
|
|
6
|
+
* `hauska-engine/packages/atoms/` (cc-agent-E follow-on).
|
|
7
|
+
*/
|
|
8
|
+
export * from "./common.js";
|
|
9
|
+
export * from "./recorded-instrument.js";
|
|
10
|
+
export * from "./restriction-clause.js";
|
|
11
|
+
export * from "./restriction-corpus.js";
|
|
12
|
+
export * from "./administrative-rule.js";
|
|
13
|
+
export * from "./constraint-resolution.js";
|
|
14
|
+
export * from "./fixtures.js";
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/encumbrances/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type AppliesTo, type EncumbranceAccessPolicy, type EncumbranceSourceAdapter, type InstrumentType, type RecordingInfo, type VerificationStatus } from "./common.js";
|
|
3
|
+
export interface RecordedInstrumentAtomInstance {
|
|
4
|
+
entityType: "recorded-instrument";
|
|
5
|
+
/** Per ADR-011. */
|
|
6
|
+
instrumentDid: string;
|
|
7
|
+
instrumentType: InstrumentType;
|
|
8
|
+
/** Null when source is upload-only (R4/R5). */
|
|
9
|
+
recording: RecordingInfo | null;
|
|
10
|
+
issuerActorDid: string;
|
|
11
|
+
sourceDocumentCid: string;
|
|
12
|
+
appliesTo: AppliesTo;
|
|
13
|
+
accessPolicy: EncumbranceAccessPolicy;
|
|
14
|
+
/** Fixed for this type. */
|
|
15
|
+
legalWeight: "recorded";
|
|
16
|
+
verificationStatus: VerificationStatus;
|
|
17
|
+
extractedAt: string;
|
|
18
|
+
sourceAdapter: EncumbranceSourceAdapter;
|
|
19
|
+
supersedesInstrumentDid?: string;
|
|
20
|
+
amendedByInstrumentDid?: ReadonlyArray<string>;
|
|
21
|
+
}
|
|
22
|
+
export declare const RECORDED_INSTRUMENT_SCHEMA: z.ZodObject<{
|
|
23
|
+
entityType: z.ZodLiteral<"recorded-instrument">;
|
|
24
|
+
instrumentDid: z.ZodString;
|
|
25
|
+
instrumentType: z.ZodEnum<[InstrumentType, ...InstrumentType[]]>;
|
|
26
|
+
recording: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
county: z.ZodString;
|
|
28
|
+
state: z.ZodString;
|
|
29
|
+
book: z.ZodOptional<z.ZodString>;
|
|
30
|
+
page: z.ZodOptional<z.ZodString>;
|
|
31
|
+
instrumentNumber: z.ZodOptional<z.ZodString>;
|
|
32
|
+
recordedAt: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
county: string;
|
|
35
|
+
state: string;
|
|
36
|
+
recordedAt?: string | undefined;
|
|
37
|
+
book?: string | undefined;
|
|
38
|
+
page?: string | undefined;
|
|
39
|
+
instrumentNumber?: string | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
county: string;
|
|
42
|
+
state: string;
|
|
43
|
+
recordedAt?: string | undefined;
|
|
44
|
+
book?: string | undefined;
|
|
45
|
+
page?: string | undefined;
|
|
46
|
+
instrumentNumber?: string | undefined;
|
|
47
|
+
}>>;
|
|
48
|
+
issuerActorDid: z.ZodString;
|
|
49
|
+
sourceDocumentCid: z.ZodString;
|
|
50
|
+
appliesTo: z.ZodEffects<z.ZodObject<{
|
|
51
|
+
parcelDids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
52
|
+
platId: z.ZodOptional<z.ZodString>;
|
|
53
|
+
legalDescription: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
parcelDids?: string[] | undefined;
|
|
56
|
+
platId?: string | undefined;
|
|
57
|
+
legalDescription?: string | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
parcelDids?: string[] | undefined;
|
|
60
|
+
platId?: string | undefined;
|
|
61
|
+
legalDescription?: string | undefined;
|
|
62
|
+
}>, {
|
|
63
|
+
parcelDids?: string[] | undefined;
|
|
64
|
+
platId?: string | undefined;
|
|
65
|
+
legalDescription?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
parcelDids?: string[] | undefined;
|
|
68
|
+
platId?: string | undefined;
|
|
69
|
+
legalDescription?: string | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
accessPolicy: z.ZodEnum<["tenant-private", "tenant-shared"]>;
|
|
72
|
+
legalWeight: z.ZodLiteral<"recorded">;
|
|
73
|
+
verificationStatus: z.ZodEnum<[VerificationStatus, ...VerificationStatus[]]>;
|
|
74
|
+
extractedAt: z.ZodString;
|
|
75
|
+
sourceAdapter: z.ZodEnum<[EncumbranceSourceAdapter, ...EncumbranceSourceAdapter[]]>;
|
|
76
|
+
supersedesInstrumentDid: z.ZodOptional<z.ZodString>;
|
|
77
|
+
amendedByInstrumentDid: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
accessPolicy: "tenant-private" | "tenant-shared";
|
|
80
|
+
entityType: "recorded-instrument";
|
|
81
|
+
extractedAt: string;
|
|
82
|
+
sourceDocumentCid: string;
|
|
83
|
+
legalWeight: "recorded";
|
|
84
|
+
instrumentDid: string;
|
|
85
|
+
instrumentType: InstrumentType;
|
|
86
|
+
recording: {
|
|
87
|
+
county: string;
|
|
88
|
+
state: string;
|
|
89
|
+
recordedAt?: string | undefined;
|
|
90
|
+
book?: string | undefined;
|
|
91
|
+
page?: string | undefined;
|
|
92
|
+
instrumentNumber?: string | undefined;
|
|
93
|
+
} | null;
|
|
94
|
+
issuerActorDid: string;
|
|
95
|
+
appliesTo: {
|
|
96
|
+
parcelDids?: string[] | undefined;
|
|
97
|
+
platId?: string | undefined;
|
|
98
|
+
legalDescription?: string | undefined;
|
|
99
|
+
};
|
|
100
|
+
verificationStatus: VerificationStatus;
|
|
101
|
+
sourceAdapter: EncumbranceSourceAdapter;
|
|
102
|
+
supersedesInstrumentDid?: string | undefined;
|
|
103
|
+
amendedByInstrumentDid?: string[] | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
accessPolicy: "tenant-private" | "tenant-shared";
|
|
106
|
+
entityType: "recorded-instrument";
|
|
107
|
+
extractedAt: string;
|
|
108
|
+
sourceDocumentCid: string;
|
|
109
|
+
legalWeight: "recorded";
|
|
110
|
+
instrumentDid: string;
|
|
111
|
+
instrumentType: InstrumentType;
|
|
112
|
+
recording: {
|
|
113
|
+
county: string;
|
|
114
|
+
state: string;
|
|
115
|
+
recordedAt?: string | undefined;
|
|
116
|
+
book?: string | undefined;
|
|
117
|
+
page?: string | undefined;
|
|
118
|
+
instrumentNumber?: string | undefined;
|
|
119
|
+
} | null;
|
|
120
|
+
issuerActorDid: string;
|
|
121
|
+
appliesTo: {
|
|
122
|
+
parcelDids?: string[] | undefined;
|
|
123
|
+
platId?: string | undefined;
|
|
124
|
+
legalDescription?: string | undefined;
|
|
125
|
+
};
|
|
126
|
+
verificationStatus: VerificationStatus;
|
|
127
|
+
sourceAdapter: EncumbranceSourceAdapter;
|
|
128
|
+
supersedesInstrumentDid?: string | undefined;
|
|
129
|
+
amendedByInstrumentDid?: string[] | undefined;
|
|
130
|
+
}>;
|
|
131
|
+
//# sourceMappingURL=recorded-instrument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recorded-instrument.d.ts","sourceRoot":"","sources":["../../src/encumbrances/recorded-instrument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACxB,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,8BAA8B;IAC7C,UAAU,EAAE,qBAAqB,CAAC;IAClC,mBAAmB;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,cAAc,CAAC;IAC/B,+CAA+C;IAC/C,SAAS,EAAE,aAAa,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,EAAE,uBAAuB,CAAC;IACtC,2BAA2B;IAC3B,WAAW,EAAE,UAAU,CAAC;IACxB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,wBAAwB,CAAC;IACxC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,sBAAsB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAChD;AAED,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBrC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { APPLIES_TO_SCHEMA, ENCUMBRANCE_ACCESS_POLICY_SCHEMA, ENCUMBRANCE_SOURCE_ADAPTERS, INSTRUMENT_TYPES, RECORDING_SCHEMA, VERIFICATION_STATUSES, } from "./common.js";
|
|
3
|
+
export const RECORDED_INSTRUMENT_SCHEMA = z.object({
|
|
4
|
+
entityType: z.literal("recorded-instrument"),
|
|
5
|
+
instrumentDid: z.string().min(1),
|
|
6
|
+
instrumentType: z.enum(INSTRUMENT_TYPES),
|
|
7
|
+
recording: RECORDING_SCHEMA.nullable(),
|
|
8
|
+
issuerActorDid: z.string().min(1),
|
|
9
|
+
sourceDocumentCid: z.string().min(1),
|
|
10
|
+
appliesTo: APPLIES_TO_SCHEMA,
|
|
11
|
+
accessPolicy: ENCUMBRANCE_ACCESS_POLICY_SCHEMA,
|
|
12
|
+
legalWeight: z.literal("recorded"),
|
|
13
|
+
verificationStatus: z.enum(VERIFICATION_STATUSES),
|
|
14
|
+
extractedAt: z.string().min(1),
|
|
15
|
+
sourceAdapter: z.enum(ENCUMBRANCE_SOURCE_ADAPTERS),
|
|
16
|
+
supersedesInstrumentDid: z.string().min(1).optional(),
|
|
17
|
+
amendedByInstrumentDid: z.array(z.string().min(1)).optional(),
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=recorded-instrument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recorded-instrument.js","sourceRoot":"","sources":["../../src/encumbrances/recorded-instrument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,iBAAiB,EACjB,gCAAgC,EAChC,2BAA2B,EAC3B,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,GAOtB,MAAM,aAAa,CAAC;AAsBrB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;IAC5C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAyD,CAAC;IACjF,SAAS,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACtC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACpC,SAAS,EAAE,iBAAiB;IAC5B,YAAY,EAAE,gCAAgC;IAC9C,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAClC,kBAAkB,EAAE,CAAC,CAAC,IAAI,CACxB,qBAAsE,CACvE;IACD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,aAAa,EAAE,CAAC,CAAC,IAAI,CACnB,2BAGC,CACF;IACD,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrD,sBAAsB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAC"}
|