@empressaio/atom-contract 1.7.0 → 1.8.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 (54) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/dist/actor-record.d.ts +208 -0
  3. package/dist/actor-record.d.ts.map +1 -0
  4. package/dist/actor-record.js +98 -0
  5. package/dist/actor-record.js.map +1 -0
  6. package/dist/conformance/common.d.ts +6 -0
  7. package/dist/conformance/common.d.ts.map +1 -1
  8. package/dist/conformance/common.js +5 -0
  9. package/dist/conformance/common.js.map +1 -1
  10. package/dist/conformance/index.d.ts +1 -1
  11. package/dist/conformance/index.d.ts.map +1 -1
  12. package/dist/conformance/index.js +1 -1
  13. package/dist/conformance/index.js.map +1 -1
  14. package/dist/encumbrances/administrative-rule.d.ts +2 -2
  15. package/dist/encumbrances/restriction-clause.d.ts +2 -2
  16. package/dist/encumbrances/restriction-corpus.d.ts +2 -2
  17. package/dist/index.d.ts +5 -1
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +3 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/obligation.d.ts +54 -6
  22. package/dist/obligation.d.ts.map +1 -1
  23. package/dist/obligation.js +14 -0
  24. package/dist/obligation.js.map +1 -1
  25. package/dist/og/common.d.ts +2 -2
  26. package/dist/og/mineral-lease.d.ts +6 -6
  27. package/dist/og/ownership-interest.d.ts +8 -8
  28. package/dist/og/pad.d.ts +6 -6
  29. package/dist/og/production-timeseries.d.ts +4 -4
  30. package/dist/og/rrc-lease.d.ts +4 -4
  31. package/dist/og/well.d.ts +4 -4
  32. package/dist/og/zone.d.ts +2 -2
  33. package/dist/read-contract/index.d.ts +1 -0
  34. package/dist/read-contract/index.d.ts.map +1 -1
  35. package/dist/read-contract/index.js +1 -0
  36. package/dist/read-contract/index.js.map +1 -1
  37. package/dist/read-contract/reasoning-axes.d.ts +475 -0
  38. package/dist/read-contract/reasoning-axes.d.ts.map +1 -0
  39. package/dist/read-contract/reasoning-axes.js +75 -0
  40. package/dist/read-contract/reasoning-axes.js.map +1 -0
  41. package/dist/reasoning/fixtures.d.ts +63 -0
  42. package/dist/reasoning/fixtures.d.ts.map +1 -0
  43. package/dist/reasoning/fixtures.js +127 -0
  44. package/dist/reasoning/fixtures.js.map +1 -0
  45. package/dist/reasoning/index.d.ts +9 -0
  46. package/dist/reasoning/index.d.ts.map +1 -0
  47. package/dist/reasoning/index.js +9 -0
  48. package/dist/reasoning/index.js.map +1 -0
  49. package/dist/reasoning-chain.d.ts +177 -0
  50. package/dist/reasoning-chain.d.ts.map +1 -0
  51. package/dist/reasoning-chain.js +63 -0
  52. package/dist/reasoning-chain.js.map +1 -0
  53. package/dist/workspace/property-workspace.d.ts +6 -6
  54. package/package.json +5 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,61 @@
2
2
 
3
3
  All notable changes to `@empressaio/atom-contract` (formerly `@hauska/atom-contract`) are documented here.
4
4
 
5
+ ## [1.8.0] - 2026-07-23
6
+
7
+ Additive minor — reasoning-chain primitive, property consequence axes,
8
+ ADR-015 `actor-record`, and license royalty obligation types. Consumers on
9
+ `^1.7.0` stay green until they import the new exports. `./og`, `./encumbrances`,
10
+ `./temporal`, and existing `ThreeAxisConfidence.consequence` requiredness are
11
+ unchanged.
12
+
13
+ ### Added
14
+
15
+ - **Core reasoning-chain primitive** (`src/reasoning-chain.ts`, `./reasoning` subpath):
16
+ - `AtomInputRef` with roles `fact` | `rule` | `derived` | `reference-field`.
17
+ - Discriminated `ReasoningChain`: `observed` | `derived` (requires
18
+ `derivationMethod` + `inputAtomRefs` min length 1).
19
+ - Zod schemas with refine mirroring O&G production-timeseries derived idiom.
20
+ - Typed `inputAtomRefs` express the `derives-from` semantic edge at the
21
+ contract level; O&G `derivesFromStreamDid` unchanged.
22
+ - **Property reasoning read-contract axes** (`src/read-contract/reasoning-axes.ts`):
23
+ - `PropertyConsequence`: honest `property-risk` stratum OR explicit
24
+ `not-applicable` — never stuffed ASCE7/IBC values.
25
+ - `ReasoningThreeAxisConfidence` + `ReasoningReadContract` for property /
26
+ envelope emitters; life-safety surfaces keep `ReadContract` +
27
+ `ThreeAxisConfidence`.
28
+ - **ADR-015 `actor-record`** (`src/actor-record.ts`):
29
+ - `ActorRecordAtomInstance` — typed target for `ObligationAtomInstance.owedToActorDid`.
30
+ - `ActorLicensingTerms` on `tenantKind: "licensed-source"` organizations.
31
+ - `ICC_ACTOR_RECORD_FIXTURE` (`did:hauska:actor:org:icc`).
32
+ - **Additive `ObligationType` variants** for licensed-source royalties:
33
+ - `license-reference-royalty` (inbound per-reference meter, I-K).
34
+ - `license-revenue-share` (outbound sale cut).
35
+ - Zod refine: license types require non-empty `owedToActorDid`; O&G types
36
+ unchanged (optional).
37
+ - `ICC_LICENSE_REFERENCE_OBLIGATION_FIXTURE` reuses shipped
38
+ `ObligationAtomInstance` shape with `graceTerms: "pending-rate"`.
39
+ - `REASONING_CONFORMANCE_TARGET_VERSION = "1.8.0"` in `./conformance`
40
+ (distinct from `ATOM_CONFORMANCE_TARGET_VERSION` at `1.5.0`).
41
+
42
+ ### Explicitly NOT in 1.8.0
43
+
44
+ - Property fact/rule/derived **kinds** (Phase 1b, after StoragePort).
45
+ - Standalone `SourceAttribution` module or parallel source-obligation type.
46
+ - Gate inbound-meter runtime wiring (Phase 1d).
47
+
48
+ ### Consumer migration notes
49
+
50
+ - Pin `@empressaio/atom-contract@^1.8.0` when adopting reasoning-chain or
51
+ actor-record surfaces.
52
+ - Import reasoning primitives from the main barrel or `@empressaio/atom-contract/reasoning`.
53
+ - Property Phase 1b emitters should use `ReasoningReadContract`; ICC /
54
+ life-safety code-risk surfaces keep `ReadContract`.
55
+ - ICC inbound royalties: mint `ObligationAtomInstance` with
56
+ `obligationType: "license-reference-royalty"` and `owedToActorDid` pointing
57
+ at the licensed-source `actor-record`; rates read from
58
+ `actor-record.sourceLicensing`.
59
+
5
60
  ## [1.7.0] - 2026-07-06
6
61
 
7
62
  O&G ontology module (ADR-025) and package rename to Empressa branding. Additive
@@ -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":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAI/D,MAAM,CAAC,MAAM,WAAW,GAA6B,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;AAQzF,MAAM,CAAC,MAAM,kBAAkB,GAAmC;IAChE,gBAAgB;IAChB,cAAc;IACd,aAAa;IACb,YAAY;CACb,CAAC;AAUF,MAAM,CAAC,MAAM,yBAAyB,GAA0C;IAC9E,MAAM;IACN,MAAM;IACN,qBAAqB;IACrB,UAAU;IACV,QAAQ;IACR,iBAAiB;CAClB,CAAC;AAoCF,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC;KAC1C,MAAM,CAAC;IACN,qBAAqB,EAAE,CAA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AACH,CAAC,CAAC,CAAC;AAEL,MAAM,UAAU,iBAAiB,CAC/B,KAA0C;IAE1C,OAAO,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAA4B,CAAC;AACrE,CAAC;AAED,yDAAyD;AACzD,MAAM,CAAC,MAAM,wBAAwB,GAA4B;IAC/D,UAAU,EAAE,cAAc;IAC1B,OAAO,EAAE,0BAA0B;IACnC,SAAS,EAAE,cAAc;IACzB,WAAW,EAAE,4BAA4B;IACzC,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,iBAAiB;IAC7B,YAAY,EAAE,mBAAmB;IACjC,eAAe,EAAE;QACf,UAAU,EAAE,sBAAsB;QAClC,aAAa,EAAE,IAAI;QACnB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,KAAK;KACjB;CACF,CAAC"}
@@ -13,6 +13,12 @@ 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;
16
22
  /** Data-level atoms carry signed history; app-level workflow containers skip it. */
17
23
  export type AtomTier = "data" | "app";
18
24
  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,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,11 @@ 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";
14
19
  export const ATOM_TIER_VALUES = ["data", "app"];
15
20
  export const ACCESS_POLICY_VALUES = [
16
21
  "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;AAQrE,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, ACCESS_POLICY_VALUES, ACCESS_POLICY_SCHEMA, ATOM_TIER_VALUES, type AtomConformanceTargetVersion, type ReasoningConformanceTargetVersion, 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,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,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, 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,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,GAIjB,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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,YAAY,EACV,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,cAAc,EACd,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE3E,YAAY,EACV,sBAAsB,EACtB,cAAc,EACd,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,+BAA+B,EAC/B,8BAA8B,EAC9B,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,uBAAuB,EACvB,mBAAmB,EACnB,SAAS,EACT,eAAe,EACf,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,WAAW,EACX,kBAAkB,EAClB,yBAAyB,EACzB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,mBAAmB,CAAC"}
package/dist/index.js CHANGED
@@ -16,5 +16,7 @@ export { INLINE_ATOM_REGEX, parseInlineReferences, serializeInlineReference, } f
16
16
  export { PostgresEventAnchoringService } from "./history.js";
17
17
  export { wrapForStorage, unwrapFromStorage } from "./vda.js";
18
18
  export { createAtomRegistry, AtomNotRegisteredError } from "./registry.js";
19
- export { OBLIGATION_SCHEMA, OBLIGATION_TYPES, OBLIGATION_STATUSES, } from "./obligation.js";
19
+ export { OBLIGATION_SCHEMA, OBLIGATION_TYPES, OBLIGATION_STATUSES, LICENSE_OBLIGATION_TYPES, } from "./obligation.js";
20
+ 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";
21
+ 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";
20
22
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAcH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAS1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAOlD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EACL,cAAc,EACd,WAAW,GACZ,MAAM,aAAa,CAAC;AAOrB,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAU/B,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAS7D,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAO3E,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAcH,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAS1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAOlD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,OAAO,EACL,cAAc,EACd,WAAW,GACZ,MAAM,aAAa,CAAC;AAOrB,OA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