@empressaio/atom-contract 1.7.0 → 1.9.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.
Files changed (79) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/README.md +39 -0
  3. package/dist/actor-record.d.ts +208 -0
  4. package/dist/actor-record.d.ts.map +1 -0
  5. package/dist/actor-record.js +98 -0
  6. package/dist/actor-record.js.map +1 -0
  7. package/dist/conformance/common.d.ts +11 -0
  8. package/dist/conformance/common.d.ts.map +1 -1
  9. package/dist/conformance/common.js +9 -0
  10. package/dist/conformance/common.js.map +1 -1
  11. package/dist/conformance/index.d.ts +1 -1
  12. package/dist/conformance/index.d.ts.map +1 -1
  13. package/dist/conformance/index.js +1 -1
  14. package/dist/conformance/index.js.map +1 -1
  15. package/dist/encumbrances/administrative-rule.d.ts +2 -2
  16. package/dist/encumbrances/restriction-clause.d.ts +2 -2
  17. package/dist/encumbrances/restriction-corpus.d.ts +2 -2
  18. package/dist/index.d.ts +5 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +3 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/obligation.d.ts +54 -6
  23. package/dist/obligation.d.ts.map +1 -1
  24. package/dist/obligation.js +14 -0
  25. package/dist/obligation.js.map +1 -1
  26. package/dist/og/common.d.ts +2 -2
  27. package/dist/og/mineral-lease.d.ts +6 -6
  28. package/dist/og/ownership-interest.d.ts +8 -8
  29. package/dist/og/pad.d.ts +6 -6
  30. package/dist/og/production-timeseries.d.ts +4 -4
  31. package/dist/og/rrc-lease.d.ts +4 -4
  32. package/dist/og/well.d.ts +4 -4
  33. package/dist/og/zone.d.ts +2 -2
  34. package/dist/property/buildable-envelope.d.ts +464 -0
  35. package/dist/property/buildable-envelope.d.ts.map +1 -0
  36. package/dist/property/buildable-envelope.js +63 -0
  37. package/dist/property/buildable-envelope.js.map +1 -0
  38. package/dist/property/common.d.ts +513 -0
  39. package/dist/property/common.d.ts.map +1 -0
  40. package/dist/property/common.js +66 -0
  41. package/dist/property/common.js.map +1 -0
  42. package/dist/property/fixtures.d.ts +102 -0
  43. package/dist/property/fixtures.d.ts.map +1 -0
  44. package/dist/property/fixtures.js +299 -0
  45. package/dist/property/fixtures.js.map +1 -0
  46. package/dist/property/index.d.ts +23 -0
  47. package/dist/property/index.d.ts.map +1 -0
  48. package/dist/property/index.js +19 -0
  49. package/dist/property/index.js.map +1 -0
  50. package/dist/property/setback-rule.d.ts +887 -0
  51. package/dist/property/setback-rule.d.ts.map +1 -0
  52. package/dist/property/setback-rule.js +53 -0
  53. package/dist/property/setback-rule.js.map +1 -0
  54. package/dist/property/zoning-fact.d.ts +538 -0
  55. package/dist/property/zoning-fact.d.ts.map +1 -0
  56. package/dist/property/zoning-fact.js +48 -0
  57. package/dist/property/zoning-fact.js.map +1 -0
  58. package/dist/read-contract/index.d.ts +1 -0
  59. package/dist/read-contract/index.d.ts.map +1 -1
  60. package/dist/read-contract/index.js +1 -0
  61. package/dist/read-contract/index.js.map +1 -1
  62. package/dist/read-contract/reasoning-axes.d.ts +475 -0
  63. package/dist/read-contract/reasoning-axes.d.ts.map +1 -0
  64. package/dist/read-contract/reasoning-axes.js +75 -0
  65. package/dist/read-contract/reasoning-axes.js.map +1 -0
  66. package/dist/reasoning/fixtures.d.ts +63 -0
  67. package/dist/reasoning/fixtures.d.ts.map +1 -0
  68. package/dist/reasoning/fixtures.js +127 -0
  69. package/dist/reasoning/fixtures.js.map +1 -0
  70. package/dist/reasoning/index.d.ts +9 -0
  71. package/dist/reasoning/index.d.ts.map +1 -0
  72. package/dist/reasoning/index.js +9 -0
  73. package/dist/reasoning/index.js.map +1 -0
  74. package/dist/reasoning-chain.d.ts +177 -0
  75. package/dist/reasoning-chain.d.ts.map +1 -0
  76. package/dist/reasoning-chain.js +63 -0
  77. package/dist/reasoning-chain.js.map +1 -0
  78. package/dist/workspace/property-workspace.d.ts +6 -6
  79. package/package.json +9 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,109 @@
2
2
 
3
3
  All notable changes to `@empressaio/atom-contract` (formerly `@hauska/atom-contract`) are documented here.
4
4
 
5
+ ## [1.9.0] - 2026-07-23
6
+
7
+ Additive minor — property reasoning atom kinds (master WDLL 3.2–3.6).
8
+ Consumers on `^1.8.0` stay green until they import `./property`.
9
+
10
+ ### Added
11
+
12
+ - **`./property` subpath** — three data-tier atom kinds for the parcel
13
+ reasoning chain:
14
+ - **`zoning-fact`** — observed {@link ReasoningChain}; district value OR
15
+ honest-absence (`absence: { kind: "no-zoning-stamp", reason }`);
16
+ explicit `accessPolicy` (default `public-free`); `sourceCitation` +
17
+ `extractedAt`; optional {@link ReasoningReadContract} asserted snapshot
18
+ at write (calibrated axis resolves at READ via overlay — I-E).
19
+ - **`setback-rule`** — observed rule scalars (`front`/`side`/`rear`);
20
+ typed `sourceCodeAtomRef: AtomInputRef` (role `rule`|`fact`, NOT bare
21
+ string); optional `fieldProvenance` map consuming setback JSON
22
+ `atom_did` + per-field confidence; `matchBasis: exact|prefix|fallback`
23
+ with honest-absence required on fallback; ICC royalties via separate
24
+ {@link ObligationAtomInstance} rows (no SourceAttribution type).
25
+ - **`buildable-envelope`** — derived {@link ReasoningChain} with
26
+ `derivationMethod: "buildable-envelope-inset-v1"`; `inputAtomRefs` to
27
+ zoning-fact + setback-rule + geometry/front-edge reference-fields;
28
+ {@link PropertyConsequence} `not-applicable` for envelope; no
29
+ `labeling x district` multiply field.
30
+ - Central-TX conformance fixtures with named parcel ids (`48209:156346`,
31
+ `48029:410119`, `48091:123456`, etc.).
32
+ - Negative fixtures: bare-string setback citation fails; derived without
33
+ `inputAtomRefs` fails.
34
+ - `PROPERTY_CONFORMANCE_TARGET_VERSION = "1.9.0"` in `./conformance`.
35
+
36
+ ### Explicitly NOT in 1.9.0
37
+
38
+ - Standalone `SourceAttribution` module or parallel source-obligation type.
39
+ - Gate inbound-meter runtime wiring (Phase 1d).
40
+ - StoragePort / spine atom write path (Phase 3.1).
41
+
42
+ ### Consumer migration notes
43
+
44
+ - Pin `@empressaio/atom-contract@^1.9.0` when adopting property atom kinds.
45
+ - Import from `@empressaio/atom-contract/property` (re-exports 1.8.0
46
+ primitives: ReasoningChain, AtomInputRef, PropertyConsequence,
47
+ ReasoningReadContract, ActorRecord, ObligationAtomInstance).
48
+ - **Calibrated confidence at READ:** instance snapshots MAY carry placeholder
49
+ `calibratedConfidence` with `provenance: "asserted"` at write time; at READ
50
+ the calibrated axis resolves through the calibration overlay (migration 0037),
51
+ not a frozen multiply.
52
+
53
+ ## [1.8.0] - 2026-07-23
54
+
55
+ Additive minor — reasoning-chain primitive, property consequence axes,
56
+ ADR-015 `actor-record`, and license royalty obligation types. Consumers on
57
+ `^1.7.0` stay green until they import the new exports. `./og`, `./encumbrances`,
58
+ `./temporal`, and existing `ThreeAxisConfidence.consequence` requiredness are
59
+ unchanged.
60
+
61
+ ### Added
62
+
63
+ - **Core reasoning-chain primitive** (`src/reasoning-chain.ts`, `./reasoning` subpath):
64
+ - `AtomInputRef` with roles `fact` | `rule` | `derived` | `reference-field`.
65
+ - Discriminated `ReasoningChain`: `observed` | `derived` (requires
66
+ `derivationMethod` + `inputAtomRefs` min length 1).
67
+ - Zod schemas with refine mirroring O&G production-timeseries derived idiom.
68
+ - Typed `inputAtomRefs` express the `derives-from` semantic edge at the
69
+ contract level; O&G `derivesFromStreamDid` unchanged.
70
+ - **Property reasoning read-contract axes** (`src/read-contract/reasoning-axes.ts`):
71
+ - `PropertyConsequence`: honest `property-risk` stratum OR explicit
72
+ `not-applicable` — never stuffed ASCE7/IBC values.
73
+ - `ReasoningThreeAxisConfidence` + `ReasoningReadContract` for property /
74
+ envelope emitters; life-safety surfaces keep `ReadContract` +
75
+ `ThreeAxisConfidence`.
76
+ - **ADR-015 `actor-record`** (`src/actor-record.ts`):
77
+ - `ActorRecordAtomInstance` — typed target for `ObligationAtomInstance.owedToActorDid`.
78
+ - `ActorLicensingTerms` on `tenantKind: "licensed-source"` organizations.
79
+ - `ICC_ACTOR_RECORD_FIXTURE` (`did:hauska:actor:org:icc`).
80
+ - **Additive `ObligationType` variants** for licensed-source royalties:
81
+ - `license-reference-royalty` (inbound per-reference meter, I-K).
82
+ - `license-revenue-share` (outbound sale cut).
83
+ - Zod refine: license types require non-empty `owedToActorDid`; O&G types
84
+ unchanged (optional).
85
+ - `ICC_LICENSE_REFERENCE_OBLIGATION_FIXTURE` reuses shipped
86
+ `ObligationAtomInstance` shape with `graceTerms: "pending-rate"`.
87
+ - `REASONING_CONFORMANCE_TARGET_VERSION = "1.8.0"` in `./conformance`
88
+ (distinct from `ATOM_CONFORMANCE_TARGET_VERSION` at `1.5.0`).
89
+
90
+ ### Explicitly NOT in 1.8.0
91
+
92
+ - Property fact/rule/derived **kinds** (Phase 1b, after StoragePort).
93
+ - Standalone `SourceAttribution` module or parallel source-obligation type.
94
+ - Gate inbound-meter runtime wiring (Phase 1d).
95
+
96
+ ### Consumer migration notes
97
+
98
+ - Pin `@empressaio/atom-contract@^1.8.0` when adopting reasoning-chain or
99
+ actor-record surfaces.
100
+ - Import reasoning primitives from the main barrel or `@empressaio/atom-contract/reasoning`.
101
+ - Property Phase 1b emitters should use `ReasoningReadContract`; ICC /
102
+ life-safety code-risk surfaces keep `ReadContract`.
103
+ - ICC inbound royalties: mint `ObligationAtomInstance` with
104
+ `obligationType: "license-reference-royalty"` and `owedToActorDid` pointing
105
+ at the licensed-source `actor-record`; rates read from
106
+ `actor-record.sourceLicensing`.
107
+
5
108
  ## [1.7.0] - 2026-07-06
6
109
 
7
110
  O&G ontology module (ADR-025) and package rename to Empressa branding. Additive
package/README.md CHANGED
@@ -276,6 +276,45 @@ import {
276
276
  } from "@empressaio/atom-contract/og";
277
277
  ```
278
278
 
279
+ ## Property reasoning atom kinds (master WDLL 3.2–3.6)
280
+
281
+ Parcel buildable-answer chain atoms ship on the `./property` subpath
282
+ (v1.9.0): `zoning-fact`, `setback-rule`, `buildable-envelope`. All three
283
+ are data-tier (`atomTier: "data"`) and default to `public-free`
284
+ accessPolicy when undeclared on the registration.
285
+
286
+ **Calibrated confidence at READ (I-E):** instances MAY carry a
287
+ `ReasoningReadContract` asserted snapshot at write time, including a
288
+ placeholder `calibratedConfidence` with `provenance: "asserted"`. At READ,
289
+ the calibrated axis resolves through the calibration overlay — it is NOT
290
+ composed-and-frozen on the instance. Do not add a `labeling x district`
291
+ multiply field.
292
+
293
+ ```ts
294
+ import {
295
+ ZONING_FACT_SCHEMA,
296
+ SETBACK_RULE_SCHEMA,
297
+ BUILDABLE_ENVELOPE_SCHEMA,
298
+ HAYS_ZONING_FACT_FIXTURE,
299
+ BEXAR_NULL_ZONING_FACT_FIXTURE,
300
+ HAYS_BUILDABLE_ENVELOPE_FIXTURE,
301
+ type ZoningFactAtomInstance,
302
+ type SetbackRuleAtomInstance,
303
+ type BuildableEnvelopeAtomInstance,
304
+ } from "@empressaio/atom-contract/property";
305
+ ```
306
+
307
+ | `entityType` | `reasoningKind` | Key fields |
308
+ |---|---|---|
309
+ | `zoning-fact` | `observed` | `district` OR `absence.no-zoning-stamp` |
310
+ | `setback-rule` | `observed` | `front`/`side`/`rear`, typed `sourceCodeAtomRef`, `matchBasis` |
311
+ | `buildable-envelope` | `derived` | `buildable-envelope-inset-v1`, input refs to fact + rule + geometry |
312
+
313
+ ICC royalties on code citations accrue via core `ObligationAtomInstance`
314
+ rows — no standalone `SourceAttribution` type.
315
+
316
+ ### Encumbrance render modes
317
+
279
318
  | `entityType` | Purpose | Recommended render modes |
280
319
  |---|---|---|
281
320
  | `recorded-instrument` | Parent instrument; wet PDF via `sourceDocumentCid` | `card`, `compact`, `expanded` |
@@ -0,0 +1,208 @@
1
+ /**
2
+ * Actor-record atom type per ADR-015.
3
+ *
4
+ * Typed target for {@link ObligationAtomInstance.owedToActorDid}. Licensing
5
+ * commercial terms live on licensed-source organizations — NOT as a parallel
6
+ * obligation or SourceAttribution type.
7
+ */
8
+ import { z } from "zod";
9
+ import type { AccessPolicy } from "./registration.js";
10
+ export type ActorType = "person" | "agent" | "organization";
11
+ export declare const ACTOR_TYPES: ReadonlyArray<ActorType>;
12
+ export type ActorTrustLevel = "verified-human" | "verified-org" | "known-agent" | "unverified";
13
+ export declare const ACTOR_TRUST_LEVELS: ReadonlyArray<ActorTrustLevel>;
14
+ export type OrganizationTenantKind = "city" | "firm" | "enterprise-customer" | "internal" | "public" | "licensed-source";
15
+ export declare const ORGANIZATION_TENANT_KINDS: ReadonlyArray<OrganizationTenantKind>;
16
+ /**
17
+ * Commercial terms for a licensed-source organization.
18
+ * NOT an obligation record — rates the meter reads when minting
19
+ * ObligationAtomInstance rows owed to this actor.
20
+ */
21
+ export interface ActorLicensingTerms {
22
+ perReferenceRateMinor?: number;
23
+ currency?: string;
24
+ revShareBps?: number;
25
+ licenseRef: string;
26
+ meterFreeTier: boolean;
27
+ purgeOnWindDown: boolean;
28
+ derivedOk: boolean;
29
+ }
30
+ export interface ActorRecordAtomInstance {
31
+ entityType: "actor-record";
32
+ /** DID — this is what ObligationAtomInstance.owedToActorDid holds. */
33
+ actorId: string;
34
+ actorType: ActorType;
35
+ displayName: string;
36
+ trustLevel: ActorTrustLevel;
37
+ accessPolicy: AccessPolicy;
38
+ agentVersion?: string;
39
+ producerSurface?: string;
40
+ principalActor?: string;
41
+ tenantKind?: OrganizationTenantKind;
42
+ jurisdictionalScope?: string;
43
+ /** Required when tenantKind === "licensed-source". */
44
+ sourceLicensing?: ActorLicensingTerms;
45
+ sourceCitation?: string;
46
+ extractedAt?: string;
47
+ }
48
+ export declare const ACTOR_LICENSING_TERMS_SCHEMA: z.ZodReadonly<z.ZodObject<{
49
+ perReferenceRateMinor: z.ZodOptional<z.ZodNumber>;
50
+ currency: z.ZodOptional<z.ZodString>;
51
+ revShareBps: z.ZodOptional<z.ZodNumber>;
52
+ licenseRef: z.ZodString;
53
+ meterFreeTier: z.ZodBoolean;
54
+ purgeOnWindDown: z.ZodBoolean;
55
+ derivedOk: z.ZodBoolean;
56
+ }, "strip", z.ZodTypeAny, {
57
+ licenseRef: string;
58
+ meterFreeTier: boolean;
59
+ purgeOnWindDown: boolean;
60
+ derivedOk: boolean;
61
+ perReferenceRateMinor?: number | undefined;
62
+ currency?: string | undefined;
63
+ revShareBps?: number | undefined;
64
+ }, {
65
+ licenseRef: string;
66
+ meterFreeTier: boolean;
67
+ purgeOnWindDown: boolean;
68
+ derivedOk: boolean;
69
+ perReferenceRateMinor?: number | undefined;
70
+ currency?: string | undefined;
71
+ revShareBps?: number | undefined;
72
+ }>>;
73
+ export declare const ACTOR_RECORD_SCHEMA: z.ZodEffects<z.ZodObject<{
74
+ entityType: z.ZodLiteral<"actor-record">;
75
+ actorId: z.ZodString;
76
+ actorType: z.ZodEnum<[ActorType, ...ActorType[]]>;
77
+ displayName: z.ZodString;
78
+ trustLevel: z.ZodEnum<[ActorTrustLevel, ...ActorTrustLevel[]]>;
79
+ accessPolicy: z.ZodEnum<["public-free", "public-paid", "platform-internal", "tenant-private", "tenant-shared"]>;
80
+ agentVersion: z.ZodOptional<z.ZodString>;
81
+ producerSurface: z.ZodOptional<z.ZodString>;
82
+ principalActor: z.ZodOptional<z.ZodString>;
83
+ tenantKind: z.ZodOptional<z.ZodEnum<[OrganizationTenantKind, ...OrganizationTenantKind[]]>>;
84
+ jurisdictionalScope: z.ZodOptional<z.ZodString>;
85
+ sourceLicensing: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
86
+ perReferenceRateMinor: z.ZodOptional<z.ZodNumber>;
87
+ currency: z.ZodOptional<z.ZodString>;
88
+ revShareBps: z.ZodOptional<z.ZodNumber>;
89
+ licenseRef: z.ZodString;
90
+ meterFreeTier: z.ZodBoolean;
91
+ purgeOnWindDown: z.ZodBoolean;
92
+ derivedOk: z.ZodBoolean;
93
+ }, "strip", z.ZodTypeAny, {
94
+ licenseRef: string;
95
+ meterFreeTier: boolean;
96
+ purgeOnWindDown: boolean;
97
+ derivedOk: boolean;
98
+ perReferenceRateMinor?: number | undefined;
99
+ currency?: string | undefined;
100
+ revShareBps?: number | undefined;
101
+ }, {
102
+ licenseRef: string;
103
+ meterFreeTier: boolean;
104
+ purgeOnWindDown: boolean;
105
+ derivedOk: boolean;
106
+ perReferenceRateMinor?: number | undefined;
107
+ currency?: string | undefined;
108
+ revShareBps?: number | undefined;
109
+ }>>>;
110
+ sourceCitation: z.ZodOptional<z.ZodString>;
111
+ extractedAt: z.ZodOptional<z.ZodString>;
112
+ }, "strip", z.ZodTypeAny, {
113
+ accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
114
+ entityType: "actor-record";
115
+ actorId: string;
116
+ actorType: ActorType;
117
+ displayName: string;
118
+ trustLevel: ActorTrustLevel;
119
+ agentVersion?: string | undefined;
120
+ producerSurface?: string | undefined;
121
+ principalActor?: string | undefined;
122
+ tenantKind?: OrganizationTenantKind | undefined;
123
+ jurisdictionalScope?: string | undefined;
124
+ sourceLicensing?: Readonly<{
125
+ licenseRef: string;
126
+ meterFreeTier: boolean;
127
+ purgeOnWindDown: boolean;
128
+ derivedOk: boolean;
129
+ perReferenceRateMinor?: number | undefined;
130
+ currency?: string | undefined;
131
+ revShareBps?: number | undefined;
132
+ }> | undefined;
133
+ sourceCitation?: string | undefined;
134
+ extractedAt?: string | undefined;
135
+ }, {
136
+ accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
137
+ entityType: "actor-record";
138
+ actorId: string;
139
+ actorType: ActorType;
140
+ displayName: string;
141
+ trustLevel: ActorTrustLevel;
142
+ agentVersion?: string | undefined;
143
+ producerSurface?: string | undefined;
144
+ principalActor?: string | undefined;
145
+ tenantKind?: OrganizationTenantKind | undefined;
146
+ jurisdictionalScope?: string | undefined;
147
+ sourceLicensing?: Readonly<{
148
+ licenseRef: string;
149
+ meterFreeTier: boolean;
150
+ purgeOnWindDown: boolean;
151
+ derivedOk: boolean;
152
+ perReferenceRateMinor?: number | undefined;
153
+ currency?: string | undefined;
154
+ revShareBps?: number | undefined;
155
+ }> | undefined;
156
+ sourceCitation?: string | undefined;
157
+ extractedAt?: string | undefined;
158
+ }>, {
159
+ accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
160
+ entityType: "actor-record";
161
+ actorId: string;
162
+ actorType: ActorType;
163
+ displayName: string;
164
+ trustLevel: ActorTrustLevel;
165
+ agentVersion?: string | undefined;
166
+ producerSurface?: string | undefined;
167
+ principalActor?: string | undefined;
168
+ tenantKind?: OrganizationTenantKind | undefined;
169
+ jurisdictionalScope?: string | undefined;
170
+ sourceLicensing?: Readonly<{
171
+ licenseRef: string;
172
+ meterFreeTier: boolean;
173
+ purgeOnWindDown: boolean;
174
+ derivedOk: boolean;
175
+ perReferenceRateMinor?: number | undefined;
176
+ currency?: string | undefined;
177
+ revShareBps?: number | undefined;
178
+ }> | undefined;
179
+ sourceCitation?: string | undefined;
180
+ extractedAt?: string | undefined;
181
+ }, {
182
+ accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
183
+ entityType: "actor-record";
184
+ actorId: string;
185
+ actorType: ActorType;
186
+ displayName: string;
187
+ trustLevel: ActorTrustLevel;
188
+ agentVersion?: string | undefined;
189
+ producerSurface?: string | undefined;
190
+ principalActor?: string | undefined;
191
+ tenantKind?: OrganizationTenantKind | undefined;
192
+ jurisdictionalScope?: string | undefined;
193
+ sourceLicensing?: Readonly<{
194
+ licenseRef: string;
195
+ meterFreeTier: boolean;
196
+ purgeOnWindDown: boolean;
197
+ derivedOk: boolean;
198
+ perReferenceRateMinor?: number | undefined;
199
+ currency?: string | undefined;
200
+ revShareBps?: number | undefined;
201
+ }> | undefined;
202
+ sourceCitation?: string | undefined;
203
+ extractedAt?: string | undefined;
204
+ }>;
205
+ export declare function createActorRecord(input: z.input<typeof ACTOR_RECORD_SCHEMA>): ActorRecordAtomInstance;
206
+ /** ICC Code Connect POC test account per Gate B §5.7. */
207
+ export declare const ICC_ACTOR_RECORD_FIXTURE: ActorRecordAtomInstance;
208
+ //# sourceMappingURL=actor-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-record.d.ts","sourceRoot":"","sources":["../src/actor-record.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,cAAc,CAAC;AAE5D,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,SAAS,CAAuC,CAAC;AAEzF,MAAM,MAAM,eAAe,GACvB,gBAAgB,GAChB,cAAc,GACd,aAAa,GACb,YAAY,CAAC;AAEjB,eAAO,MAAM,kBAAkB,EAAE,aAAa,CAAC,eAAe,CAK7D,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAC9B,MAAM,GACN,MAAM,GACN,qBAAqB,GACrB,UAAU,GACV,QAAQ,GACR,iBAAiB,CAAC;AAEtB,eAAO,MAAM,yBAAyB,EAAE,aAAa,CAAC,sBAAsB,CAO3E,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,cAAc,CAAC;IAC3B,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAC5B,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sDAAsD;IACtD,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;GAU5B,CAAC;AAEd,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6C5B,CAAC;AAEL,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,GACzC,uBAAuB,CAEzB;AAED,yDAAyD;AACzD,eAAO,MAAM,wBAAwB,EAAE,uBActC,CAAC"}
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Actor-record atom type per ADR-015.
3
+ *
4
+ * Typed target for {@link ObligationAtomInstance.owedToActorDid}. Licensing
5
+ * commercial terms live on licensed-source organizations — NOT as a parallel
6
+ * obligation or SourceAttribution type.
7
+ */
8
+ import { z } from "zod";
9
+ import { ACCESS_POLICY_SCHEMA } from "./conformance/common.js";
10
+ export const ACTOR_TYPES = ["person", "agent", "organization"];
11
+ export const ACTOR_TRUST_LEVELS = [
12
+ "verified-human",
13
+ "verified-org",
14
+ "known-agent",
15
+ "unverified",
16
+ ];
17
+ export const ORGANIZATION_TENANT_KINDS = [
18
+ "city",
19
+ "firm",
20
+ "enterprise-customer",
21
+ "internal",
22
+ "public",
23
+ "licensed-source",
24
+ ];
25
+ export const ACTOR_LICENSING_TERMS_SCHEMA = z
26
+ .object({
27
+ perReferenceRateMinor: z.number().int().nonnegative().optional(),
28
+ currency: z.string().min(1).optional(),
29
+ revShareBps: z.number().int().min(0).max(10000).optional(),
30
+ licenseRef: z.string().min(1),
31
+ meterFreeTier: z.boolean(),
32
+ purgeOnWindDown: z.boolean(),
33
+ derivedOk: z.boolean(),
34
+ })
35
+ .readonly();
36
+ export const ACTOR_RECORD_SCHEMA = z
37
+ .object({
38
+ entityType: z.literal("actor-record"),
39
+ actorId: z.string().min(1),
40
+ actorType: z.enum(ACTOR_TYPES),
41
+ displayName: z.string().min(1),
42
+ trustLevel: z.enum(ACTOR_TRUST_LEVELS),
43
+ accessPolicy: ACCESS_POLICY_SCHEMA,
44
+ agentVersion: z.string().min(1).optional(),
45
+ producerSurface: z.string().min(1).optional(),
46
+ principalActor: z.string().min(1).optional(),
47
+ tenantKind: z
48
+ .enum(ORGANIZATION_TENANT_KINDS)
49
+ .optional(),
50
+ jurisdictionalScope: z.string().min(1).optional(),
51
+ sourceLicensing: ACTOR_LICENSING_TERMS_SCHEMA.optional(),
52
+ sourceCitation: z.string().min(1).optional(),
53
+ extractedAt: z.string().min(1).optional(),
54
+ })
55
+ .superRefine((data, ctx) => {
56
+ if (data.tenantKind !== "licensed-source") {
57
+ return;
58
+ }
59
+ if (data.sourceLicensing === undefined) {
60
+ ctx.addIssue({
61
+ code: z.ZodIssueCode.custom,
62
+ message: "licensed-source actors require sourceLicensing",
63
+ path: ["sourceLicensing"],
64
+ });
65
+ return;
66
+ }
67
+ const licensing = data.sourceLicensing;
68
+ const requiredFields = ["licenseRef", "meterFreeTier", "purgeOnWindDown", "derivedOk"];
69
+ for (const field of requiredFields) {
70
+ if (licensing[field] === undefined) {
71
+ ctx.addIssue({
72
+ code: z.ZodIssueCode.custom,
73
+ message: `licensed-source sourceLicensing requires ${field}`,
74
+ path: ["sourceLicensing", field],
75
+ });
76
+ }
77
+ }
78
+ });
79
+ export function createActorRecord(input) {
80
+ return ACTOR_RECORD_SCHEMA.parse(input);
81
+ }
82
+ /** ICC Code Connect POC test account per Gate B §5.7. */
83
+ export const ICC_ACTOR_RECORD_FIXTURE = {
84
+ entityType: "actor-record",
85
+ actorId: "did:hauska:actor:org:icc",
86
+ actorType: "organization",
87
+ displayName: "International Code Council",
88
+ trustLevel: "verified-org",
89
+ tenantKind: "licensed-source",
90
+ accessPolicy: "platform-internal",
91
+ sourceLicensing: {
92
+ licenseRef: "icc-code-connect-poc",
93
+ meterFreeTier: true,
94
+ purgeOnWindDown: true,
95
+ derivedOk: false,
96
+ },
97
+ };
98
+ //# sourceMappingURL=actor-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actor-record.js","sourceRoot":"","sources":["../src/actor-record.ts"],"names":[],"mappings":"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"}
@@ -13,6 +13,17 @@ import type { AccessPolicy } from "../registration.js";
13
13
  */
14
14
  export declare const ATOM_CONFORMANCE_TARGET_VERSION: "1.5.0";
15
15
  export type AtomConformanceTargetVersion = typeof ATOM_CONFORMANCE_TARGET_VERSION;
16
+ /**
17
+ * Pin reasoning-chain / actor-record adopters to this semver.
18
+ * Distinct from {@link ATOM_CONFORMANCE_TARGET_VERSION} until a unified bump.
19
+ */
20
+ export declare const REASONING_CONFORMANCE_TARGET_VERSION: "1.8.0";
21
+ export type ReasoningConformanceTargetVersion = typeof REASONING_CONFORMANCE_TARGET_VERSION;
22
+ /**
23
+ * Pin property atom kind adopters to this semver (master WDLL 3.2–3.6).
24
+ */
25
+ export declare const PROPERTY_CONFORMANCE_TARGET_VERSION: "1.9.0";
26
+ export type PropertyConformanceTargetVersion = typeof PROPERTY_CONFORMANCE_TARGET_VERSION;
16
27
  /** Data-level atoms carry signed history; app-level workflow containers skip it. */
17
28
  export type AtomTier = "data" | "app";
18
29
  export declare const ATOM_TIER_VALUES: ReadonlyArray<AtomTier>;
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/conformance/common.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAG,OAAgB,CAAC;AAEhE,MAAM,MAAM,4BAA4B,GACtC,OAAO,+BAA+B,CAAC;AAEzC,oFAAoF;AACpF,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;AAEtC,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,QAAQ,CAAmB,CAAC;AAEzE,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,YAAY,CAM5D,CAAC;AAEF,eAAO,MAAM,oBAAoB,mGAM/B,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/conformance/common.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAG,OAAgB,CAAC;AAEhE,MAAM,MAAM,4BAA4B,GACtC,OAAO,+BAA+B,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,oCAAoC,EAAG,OAAgB,CAAC;AAErE,MAAM,MAAM,iCAAiC,GAC3C,OAAO,oCAAoC,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAG,OAAgB,CAAC;AAEpE,MAAM,MAAM,gCAAgC,GAC1C,OAAO,mCAAmC,CAAC;AAE7C,oFAAoF;AACpF,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;AAEtC,eAAO,MAAM,gBAAgB,EAAE,aAAa,CAAC,QAAQ,CAAmB,CAAC;AAEzE,eAAO,MAAM,oBAAoB,EAAE,aAAa,CAAC,YAAY,CAM5D,CAAC;AAEF,eAAO,MAAM,oBAAoB,mGAM/B,CAAC"}
@@ -11,6 +11,15 @@ import { z } from "zod";
11
11
  * conformance target or downloadable-atom export shape.
12
12
  */
13
13
  export const ATOM_CONFORMANCE_TARGET_VERSION = "1.5.0";
14
+ /**
15
+ * Pin reasoning-chain / actor-record adopters to this semver.
16
+ * Distinct from {@link ATOM_CONFORMANCE_TARGET_VERSION} until a unified bump.
17
+ */
18
+ export const REASONING_CONFORMANCE_TARGET_VERSION = "1.8.0";
19
+ /**
20
+ * Pin property atom kind adopters to this semver (master WDLL 3.2–3.6).
21
+ */
22
+ export const PROPERTY_CONFORMANCE_TARGET_VERSION = "1.9.0";
14
23
  export const ATOM_TIER_VALUES = ["data", "app"];
15
24
  export const ACCESS_POLICY_VALUES = [
16
25
  "public-free",
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/conformance/common.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,OAAgB,CAAC;AAQhE,MAAM,CAAC,MAAM,gBAAgB,GAA4B,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,oBAAoB,GAAgC;IAC/D,aAAa;IACb,aAAa;IACb,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IACzC,aAAa;IACb,aAAa;IACb,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;CAChB,CAAC,CAAC"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/conformance/common.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,OAAgB,CAAC;AAKhE;;;GAGG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,OAAgB,CAAC;AAKrE;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,OAAgB,CAAC;AAQpE,MAAM,CAAC,MAAM,gBAAgB,GAA4B,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,oBAAoB,GAAgC;IAC/D,aAAa;IACb,aAAa;IACb,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC;IACzC,aAAa;IACb,aAAa;IACb,mBAAmB;IACnB,gBAAgB;IAChB,eAAe;CAChB,CAAC,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * Import from `@empressaio/atom-contract/conformance`. Validates read-contract,
5
5
  * accessPolicy, and signed-history for data-level atoms.
6
6
  */
7
- export { ATOM_CONFORMANCE_TARGET_VERSION, ACCESS_POLICY_VALUES, ACCESS_POLICY_SCHEMA, ATOM_TIER_VALUES, type AtomConformanceTargetVersion, type AtomTier, } from "./common.js";
7
+ export { ATOM_CONFORMANCE_TARGET_VERSION, REASONING_CONFORMANCE_TARGET_VERSION, PROPERTY_CONFORMANCE_TARGET_VERSION, ACCESS_POLICY_VALUES, ACCESS_POLICY_SCHEMA, ATOM_TIER_VALUES, type AtomConformanceTargetVersion, type ReasoningConformanceTargetVersion, type PropertyConformanceTargetVersion, type AtomTier, } from "./common.js";
8
8
  export { verifyEventChain, type VerifyChainError, type VerifyChainErrorKind, type VerifyChainResult, } from "./verify-chain.js";
9
9
  export { validateAtomConformance, type AtomConformanceError, type AtomConformanceErrorCode, type AtomConformanceTarget, type AtomConformanceValidationResult, type ValidateAtomConformanceInput, } from "./validate.js";
10
10
  export { buildValidSignedEventChain, SAMPLE_APP_CONFORMANCE_TARGET, SAMPLE_DATA_CONFORMANCE_EVENTS, SAMPLE_DATA_CONFORMANCE_TARGET, } from "./fixtures.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conformance/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,QAAQ,GACd,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,GAClC,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conformance/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,mCAAmC,EACnC,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACrC,KAAK,QAAQ,GACd,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,GACvB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,uBAAuB,EACvB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,GAClC,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,eAAe,CAAC"}
@@ -4,7 +4,7 @@
4
4
  * Import from `@empressaio/atom-contract/conformance`. Validates read-contract,
5
5
  * accessPolicy, and signed-history for data-level atoms.
6
6
  */
7
- export { ATOM_CONFORMANCE_TARGET_VERSION, ACCESS_POLICY_VALUES, ACCESS_POLICY_SCHEMA, ATOM_TIER_VALUES, } from "./common.js";
7
+ export { ATOM_CONFORMANCE_TARGET_VERSION, REASONING_CONFORMANCE_TARGET_VERSION, PROPERTY_CONFORMANCE_TARGET_VERSION, ACCESS_POLICY_VALUES, ACCESS_POLICY_SCHEMA, ATOM_TIER_VALUES, } from "./common.js";
8
8
  export { verifyEventChain, } from "./verify-chain.js";
9
9
  export { validateAtomConformance, } from "./validate.js";
10
10
  export { buildValidSignedEventChain, SAMPLE_APP_CONFORMANCE_TARGET, SAMPLE_DATA_CONFORMANCE_EVENTS, SAMPLE_DATA_CONFORMANCE_TARGET, } from "./fixtures.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/conformance/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,GAGjB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,gBAAgB,GAIjB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,uBAAuB,GAMxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/conformance/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,mCAAmC,EACnC,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,GAKjB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,gBAAgB,GAIjB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,uBAAuB,GAMxB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,EAC7B,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,eAAe,CAAC"}
@@ -73,13 +73,13 @@ export declare const ADMINISTRATIVE_RULE_SCHEMA: z.ZodObject<{
73
73
  }, "strip", z.ZodTypeAny, {
74
74
  accessPolicy: "tenant-private" | "tenant-shared";
75
75
  entityType: "administrative-rule";
76
+ sourceCitation: string;
76
77
  confidence: Readonly<{
77
78
  estimate: number;
78
79
  n: number;
79
80
  intervalWidth: number;
80
81
  provenance: "asserted" | "backtest" | "seed" | "live";
81
82
  }>;
82
- sourceCitation: string;
83
83
  clauseDid: string;
84
84
  clausePath: string;
85
85
  bodyText: string;
@@ -100,13 +100,13 @@ export declare const ADMINISTRATIVE_RULE_SCHEMA: z.ZodObject<{
100
100
  }, {
101
101
  accessPolicy: "tenant-private" | "tenant-shared";
102
102
  entityType: "administrative-rule";
103
+ sourceCitation: string;
103
104
  confidence: Readonly<{
104
105
  estimate: number;
105
106
  n: number;
106
107
  intervalWidth: number;
107
108
  provenance: "asserted" | "backtest" | "seed" | "live";
108
109
  }>;
109
- sourceCitation: string;
110
110
  clauseDid: string;
111
111
  clausePath: string;
112
112
  bodyText: string;
@@ -67,13 +67,13 @@ export declare const RESTRICTION_CLAUSE_SCHEMA: z.ZodObject<{
67
67
  }, "strip", z.ZodTypeAny, {
68
68
  accessPolicy: "tenant-private" | "tenant-shared";
69
69
  entityType: "restriction-clause";
70
+ sourceCitation: string;
70
71
  confidence: Readonly<{
71
72
  estimate: number;
72
73
  n: number;
73
74
  intervalWidth: number;
74
75
  provenance: "asserted" | "backtest" | "seed" | "live";
75
76
  }>;
76
- sourceCitation: string;
77
77
  clauseDid: string;
78
78
  parentInstrumentCid: string;
79
79
  clausePath: string;
@@ -93,13 +93,13 @@ export declare const RESTRICTION_CLAUSE_SCHEMA: z.ZodObject<{
93
93
  }, {
94
94
  accessPolicy: "tenant-private" | "tenant-shared";
95
95
  entityType: "restriction-clause";
96
+ sourceCitation: string;
96
97
  confidence: Readonly<{
97
98
  estimate: number;
98
99
  n: number;
99
100
  intervalWidth: number;
100
101
  provenance: "asserted" | "backtest" | "seed" | "live";
101
102
  }>;
102
- sourceCitation: string;
103
103
  clauseDid: string;
104
104
  parentInstrumentCid: string;
105
105
  clausePath: string;
@@ -23,8 +23,8 @@ export declare const RESTRICTION_CORPUS_SCHEMA: z.ZodObject<{
23
23
  }, "strip", z.ZodTypeAny, {
24
24
  accessPolicy: "tenant-private" | "tenant-shared";
25
25
  entityType: "restriction-corpus";
26
- corpusDid: string;
27
26
  displayName: string;
27
+ corpusDid: string;
28
28
  subdivisionName: string;
29
29
  instrumentCids: string[];
30
30
  platId?: string | undefined;
@@ -33,8 +33,8 @@ export declare const RESTRICTION_CORPUS_SCHEMA: z.ZodObject<{
33
33
  }, {
34
34
  accessPolicy: "tenant-private" | "tenant-shared";
35
35
  entityType: "restriction-corpus";
36
- corpusDid: string;
37
36
  displayName: string;
37
+ corpusDid: string;
38
38
  subdivisionName: string;
39
39
  instrumentCids: string[];
40
40
  platId?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -25,5 +25,9 @@ export { wrapForStorage, unwrapFromStorage } from "./vda.js";
25
25
  export type { AtomRegistry, ResolveResult, ValidateResult, DanglingCompositionRef, AtomPromptDescription, } from "./registry.js";
26
26
  export { createAtomRegistry, AtomNotRegisteredError } from "./registry.js";
27
27
  export type { ObligationAtomInstance, ObligationType, ObligationStatus, } from "./obligation.js";
28
- export { OBLIGATION_SCHEMA, OBLIGATION_TYPES, OBLIGATION_STATUSES, } from "./obligation.js";
28
+ export { OBLIGATION_SCHEMA, OBLIGATION_TYPES, OBLIGATION_STATUSES, LICENSE_OBLIGATION_TYPES, } from "./obligation.js";
29
+ export type { AtomInputRef, AtomInputRefRole, ReasoningChain, } from "./reasoning-chain.js";
30
+ export { ATOM_INPUT_REF_ROLES, ATOM_INPUT_REF_SCHEMA, REASONING_CHAIN_SCHEMA, REASONING_CHAIN_OBSERVED_SCHEMA, REASONING_CHAIN_DERIVED_SCHEMA, createReasoningChain, validateReasoningChain, } from "./reasoning-chain.js";
31
+ export type { ActorRecordAtomInstance, ActorLicensingTerms, ActorType, ActorTrustLevel, OrganizationTenantKind, } from "./actor-record.js";
32
+ export { ACTOR_RECORD_SCHEMA, ACTOR_LICENSING_TERMS_SCHEMA, ACTOR_TYPES, ACTOR_TRUST_LEVELS, ORGANIZATION_TENANT_KINDS, ICC_ACTOR_RECORD_FIXTURE, createActorRecord, } from "./actor-record.js";
29
33
  //# sourceMappingURL=index.d.ts.map