@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.
- package/README.md +41 -0
- package/dist/{copy-context-B4SCy6vx.d.ts → copy-context-CIxmneHI.d.ts} +24 -0
- package/dist/index.cjs +687 -279
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +134 -3
- package/dist/index.d.ts +134 -3
- package/dist/index.js +687 -279
- package/dist/index.js.map +1 -1
- package/dist/ui/admin/index.d.ts +2 -2
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/member/index.d.ts +2 -2
- package/dist/worker/index.cjs +903 -305
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.d.cts +24 -0
- package/dist/worker/index.d.ts +24 -0
- package/dist/worker/index.js +903 -305
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
package/dist/worker/index.d.cts
CHANGED
|
@@ -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`). */
|
package/dist/worker/index.d.ts
CHANGED
|
@@ -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`). */
|