@odla-ai/chapter 0.43.2 → 0.45.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.
@@ -133,6 +133,39 @@ interface ResolvedBuilderLibrary {
133
133
  sources: readonly ResolvedBuilderLibrarySource[];
134
134
  }
135
135
 
136
+ /** Opt-in network-scoped Person registry. Shadow mode never gates Chapter work. */
137
+ interface ChapterNetworkPersonRegistry {
138
+ mode: "shadow";
139
+ /** Chapter ids that may be attached to imported source rows. Defaults to the
140
+ * hub's configured network target ids. */
141
+ chapterIds?: readonly string[];
142
+ }
143
+ /** Validated network Person registry settings carried by a resolved Chapter. */
144
+ interface ResolvedNetworkPersonRegistry {
145
+ mode: "shadow";
146
+ chapterIds: readonly string[];
147
+ }
148
+
149
+ /** One exact Stripe event partition accepted by the network commercial shadow. */
150
+ interface NetworkCommercialSource {
151
+ appId: string;
152
+ chapterId: string;
153
+ environment: string;
154
+ dataEnvironment: string;
155
+ runtime: string;
156
+ stripeMode: "test" | "live";
157
+ }
158
+ /** Opt-in, read-only projection of a shared Stripe account. */
159
+ interface ChapterNetworkCommercialReadModel {
160
+ mode: "shadow";
161
+ sources: readonly NetworkCommercialSource[];
162
+ }
163
+ /** Validated settings carried by a resolved hub. */
164
+ interface ResolvedNetworkCommercialReadModel {
165
+ mode: "shadow";
166
+ sources: readonly NetworkCommercialSource[];
167
+ }
168
+
136
169
  /** Scalar kinds accepted by the Chapter schema adapter. */
137
170
  type AttrType = "string" | "number" | "boolean" | "json";
138
171
  /** One odla-db attribute: its type and index/uniqueness/optionality flags. */
@@ -594,6 +627,11 @@ interface ChapterConfig {
594
627
  memberContent?: ChapterMemberContent;
595
628
  /** Private docs, Brand asset references, and links for authorized site-building agents. */
596
629
  builderLibrary?: ChapterBuilderLibrary;
630
+ /** Network-scoped canonical Person registry. Shadow mode is additive only:
631
+ * Chapter workflows and access continue to read their existing authority. */
632
+ networkPersonRegistry?: ChapterNetworkPersonRegistry;
633
+ /** Read-only, rebuildable commercial projection from a shared Stripe account. */
634
+ networkCommercialReadModel?: ChapterNetworkCommercialReadModel;
597
635
  /** Enable a public, host-rendered formation application workflow. */
598
636
  formation?: LeaderFormationConfig;
599
637
  thesis?: unknown;
@@ -694,6 +732,10 @@ interface Chapter {
694
732
  memberContent: ResolvedMemberContent | null;
695
733
  /** Null unless the private scoped Builder Library is enabled. */
696
734
  builderLibrary: ResolvedBuilderLibrary | null;
735
+ /** Null unless this hub explicitly enables the shadow Person registry. */
736
+ networkPersonRegistry: ResolvedNetworkPersonRegistry | null;
737
+ /** Null unless this hub explicitly enables the commercial shadow. */
738
+ networkCommercialReadModel: ResolvedNetworkCommercialReadModel | null;
697
739
  /** Resolved public formation intake contract (disabled when omitted). */
698
740
  formation: ResolvedLeaderFormation;
699
741
  /** Resolved CRM engine (from `defineCrm`). */
@@ -133,6 +133,39 @@ interface ResolvedBuilderLibrary {
133
133
  sources: readonly ResolvedBuilderLibrarySource[];
134
134
  }
135
135
 
136
+ /** Opt-in network-scoped Person registry. Shadow mode never gates Chapter work. */
137
+ interface ChapterNetworkPersonRegistry {
138
+ mode: "shadow";
139
+ /** Chapter ids that may be attached to imported source rows. Defaults to the
140
+ * hub's configured network target ids. */
141
+ chapterIds?: readonly string[];
142
+ }
143
+ /** Validated network Person registry settings carried by a resolved Chapter. */
144
+ interface ResolvedNetworkPersonRegistry {
145
+ mode: "shadow";
146
+ chapterIds: readonly string[];
147
+ }
148
+
149
+ /** One exact Stripe event partition accepted by the network commercial shadow. */
150
+ interface NetworkCommercialSource {
151
+ appId: string;
152
+ chapterId: string;
153
+ environment: string;
154
+ dataEnvironment: string;
155
+ runtime: string;
156
+ stripeMode: "test" | "live";
157
+ }
158
+ /** Opt-in, read-only projection of a shared Stripe account. */
159
+ interface ChapterNetworkCommercialReadModel {
160
+ mode: "shadow";
161
+ sources: readonly NetworkCommercialSource[];
162
+ }
163
+ /** Validated settings carried by a resolved hub. */
164
+ interface ResolvedNetworkCommercialReadModel {
165
+ mode: "shadow";
166
+ sources: readonly NetworkCommercialSource[];
167
+ }
168
+
136
169
  /** Scalar kinds accepted by the Chapter schema adapter. */
137
170
  type AttrType = "string" | "number" | "boolean" | "json";
138
171
  /** One odla-db attribute: its type and index/uniqueness/optionality flags. */
@@ -594,6 +627,11 @@ interface ChapterConfig {
594
627
  memberContent?: ChapterMemberContent;
595
628
  /** Private docs, Brand asset references, and links for authorized site-building agents. */
596
629
  builderLibrary?: ChapterBuilderLibrary;
630
+ /** Network-scoped canonical Person registry. Shadow mode is additive only:
631
+ * Chapter workflows and access continue to read their existing authority. */
632
+ networkPersonRegistry?: ChapterNetworkPersonRegistry;
633
+ /** Read-only, rebuildable commercial projection from a shared Stripe account. */
634
+ networkCommercialReadModel?: ChapterNetworkCommercialReadModel;
597
635
  /** Enable a public, host-rendered formation application workflow. */
598
636
  formation?: LeaderFormationConfig;
599
637
  thesis?: unknown;
@@ -694,6 +732,10 @@ interface Chapter {
694
732
  memberContent: ResolvedMemberContent | null;
695
733
  /** Null unless the private scoped Builder Library is enabled. */
696
734
  builderLibrary: ResolvedBuilderLibrary | null;
735
+ /** Null unless this hub explicitly enables the shadow Person registry. */
736
+ networkPersonRegistry: ResolvedNetworkPersonRegistry | null;
737
+ /** Null unless this hub explicitly enables the commercial shadow. */
738
+ networkCommercialReadModel: ResolvedNetworkCommercialReadModel | null;
697
739
  /** Resolved public formation intake contract (disabled when omitted). */
698
740
  formation: ResolvedLeaderFormation;
699
741
  /** Resolved CRM engine (from `defineCrm`). */