@odla-ai/chapter 0.44.0 → 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.
@@ -146,6 +146,26 @@ interface ResolvedNetworkPersonRegistry {
146
146
  chapterIds: readonly string[];
147
147
  }
148
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
+
149
169
  /** Scalar kinds accepted by the Chapter schema adapter. */
150
170
  type AttrType = "string" | "number" | "boolean" | "json";
151
171
  /** One odla-db attribute: its type and index/uniqueness/optionality flags. */
@@ -610,6 +630,8 @@ interface ChapterConfig {
610
630
  /** Network-scoped canonical Person registry. Shadow mode is additive only:
611
631
  * Chapter workflows and access continue to read their existing authority. */
612
632
  networkPersonRegistry?: ChapterNetworkPersonRegistry;
633
+ /** Read-only, rebuildable commercial projection from a shared Stripe account. */
634
+ networkCommercialReadModel?: ChapterNetworkCommercialReadModel;
613
635
  /** Enable a public, host-rendered formation application workflow. */
614
636
  formation?: LeaderFormationConfig;
615
637
  thesis?: unknown;
@@ -712,6 +734,8 @@ interface Chapter {
712
734
  builderLibrary: ResolvedBuilderLibrary | null;
713
735
  /** Null unless this hub explicitly enables the shadow Person registry. */
714
736
  networkPersonRegistry: ResolvedNetworkPersonRegistry | null;
737
+ /** Null unless this hub explicitly enables the commercial shadow. */
738
+ networkCommercialReadModel: ResolvedNetworkCommercialReadModel | null;
715
739
  /** Resolved public formation intake contract (disabled when omitted). */
716
740
  formation: ResolvedLeaderFormation;
717
741
  /** Resolved CRM engine (from `defineCrm`). */
@@ -146,6 +146,26 @@ interface ResolvedNetworkPersonRegistry {
146
146
  chapterIds: readonly string[];
147
147
  }
148
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
+
149
169
  /** Scalar kinds accepted by the Chapter schema adapter. */
150
170
  type AttrType = "string" | "number" | "boolean" | "json";
151
171
  /** One odla-db attribute: its type and index/uniqueness/optionality flags. */
@@ -610,6 +630,8 @@ interface ChapterConfig {
610
630
  /** Network-scoped canonical Person registry. Shadow mode is additive only:
611
631
  * Chapter workflows and access continue to read their existing authority. */
612
632
  networkPersonRegistry?: ChapterNetworkPersonRegistry;
633
+ /** Read-only, rebuildable commercial projection from a shared Stripe account. */
634
+ networkCommercialReadModel?: ChapterNetworkCommercialReadModel;
613
635
  /** Enable a public, host-rendered formation application workflow. */
614
636
  formation?: LeaderFormationConfig;
615
637
  thesis?: unknown;
@@ -712,6 +734,8 @@ interface Chapter {
712
734
  builderLibrary: ResolvedBuilderLibrary | null;
713
735
  /** Null unless this hub explicitly enables the shadow Person registry. */
714
736
  networkPersonRegistry: ResolvedNetworkPersonRegistry | null;
737
+ /** Null unless this hub explicitly enables the commercial shadow. */
738
+ networkCommercialReadModel: ResolvedNetworkCommercialReadModel | null;
715
739
  /** Resolved public formation intake contract (disabled when omitted). */
716
740
  formation: ResolvedLeaderFormation;
717
741
  /** Resolved CRM engine (from `defineCrm`). */