@odla-ai/chapter 0.38.1 → 0.39.1

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.
@@ -114,6 +114,28 @@ interface ResolvedMemberContent {
114
114
  } | null;
115
115
  }
116
116
 
117
+ /** Optional private Builder Library shared across Built Not Found and Chapters. */
118
+ interface ChapterBuilderLibrary {
119
+ /** Keep local admin authoring enabled. Defaults to true. */
120
+ localAuthoring?: boolean;
121
+ /** Signed sources this app accepts. Hub sources are Chapters; Chapter sources are Built Not Found. */
122
+ sources?: readonly {
123
+ sourceId: string;
124
+ /** Vault key holding the dedicated Builder Library edge secret. */
125
+ secretName?: string;
126
+ }[];
127
+ }
128
+ interface ResolvedBuilderLibrarySource {
129
+ sourceId: string;
130
+ secretName: string;
131
+ }
132
+ /** Validated Builder Library settings carried on a resolved Chapter. */
133
+ interface ResolvedBuilderLibrary {
134
+ enabled: true;
135
+ localAuthoring: boolean;
136
+ sources: readonly ResolvedBuilderLibrarySource[];
137
+ }
138
+
117
139
  /** Scalar kinds accepted by the Chapter schema adapter. */
118
140
  type AttrType = "string" | "number" | "boolean" | "json";
119
141
  /** One odla-db attribute: its type and index/uniqueness/optionality flags. */
@@ -488,6 +510,8 @@ interface ChapterConfig {
488
510
  signupControl?: ChapterSignupControl;
489
511
  /** Authenticated parent + chapter member pages with server-enforced tier access. */
490
512
  memberContent?: ChapterMemberContent;
513
+ /** Private docs, Brand asset references, and links for authorized site-building agents. */
514
+ builderLibrary?: ChapterBuilderLibrary;
491
515
  /** Enable a public, host-rendered formation application workflow. */
492
516
  formation?: LeaderFormationConfig;
493
517
  thesis?: unknown;
@@ -586,6 +610,8 @@ interface Chapter {
586
610
  signupControl: ResolvedSignupControl | null;
587
611
  /** Null unless the standard authenticated member-content surface is enabled. */
588
612
  memberContent: ResolvedMemberContent | null;
613
+ /** Null unless the private scoped Builder Library is enabled. */
614
+ builderLibrary: ResolvedBuilderLibrary | null;
589
615
  /** Resolved public formation intake contract (disabled when omitted). */
590
616
  formation: ResolvedLeaderFormation;
591
617
  /** Resolved CRM engine (from `defineCrm`). */