@odla-ai/chapter 0.45.0 → 0.47.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 +22 -2
- package/dist/{copy-context-CIxmneHI.d.ts → copy-context-20WFI5TI.d.ts} +17 -4
- package/dist/index.cjs +212 -58
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +104 -10
- package/dist/index.d.ts +104 -10
- package/dist/index.js +212 -58
- 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 +363 -60
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.d.cts +17 -4
- package/dist/worker/index.d.ts +17 -4
- package/dist/worker/index.js +363 -60
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
package/dist/worker/index.d.cts
CHANGED
|
@@ -228,6 +228,10 @@ interface ChapterNetworkTarget {
|
|
|
228
228
|
/** Allow package-owned desired admission decisions for existing leader CRM
|
|
229
229
|
* people to be delivered to this target. Omitted means default deny. */
|
|
230
230
|
admissionGrants?: boolean;
|
|
231
|
+
/** Allow this leader to request a PII-free commercial parity snapshot from
|
|
232
|
+
* this follower. The follower must independently enable the same reader;
|
|
233
|
+
* omitted means no application or Stripe identifier digest crosses. */
|
|
234
|
+
commercialParity?: boolean;
|
|
231
235
|
}
|
|
232
236
|
/** One signed peer allowed to browse a privacy-bounded projection of this
|
|
233
237
|
* site's CRM. The follower owns this allowlist; a leader target declaration
|
|
@@ -252,6 +256,9 @@ interface ChapterNetworkReader {
|
|
|
252
256
|
/** Accept signed desired admission decisions from this reader. Independent
|
|
253
257
|
* of record browsing; an admission-only reader may omit `fields`. */
|
|
254
258
|
admissionGrants?: boolean;
|
|
259
|
+
/** Disclose a bounded, PII-free commercial parity snapshot to this signed
|
|
260
|
+
* reader. Identifiers leave only as edge-keyed, domain-separated HMACs. */
|
|
261
|
+
commercialParity?: boolean;
|
|
255
262
|
}
|
|
256
263
|
/** Leader/follower network configuration. A follower needs no code config to
|
|
257
264
|
* receive pushed records. It must explicitly declare `readers` before any peer
|
|
@@ -297,6 +304,7 @@ interface ResolvedNetworkTarget {
|
|
|
297
304
|
editableFields: Record<string, readonly string[]>;
|
|
298
305
|
stageTransitions: readonly string[];
|
|
299
306
|
admissionGrants?: boolean;
|
|
307
|
+
commercialParity?: boolean;
|
|
300
308
|
}
|
|
301
309
|
/** A validated follower-owned record projection for one signed reader. */
|
|
302
310
|
interface ResolvedNetworkReader {
|
|
@@ -306,6 +314,7 @@ interface ResolvedNetworkReader {
|
|
|
306
314
|
editableFields: Record<string, readonly string[]>;
|
|
307
315
|
stageTransitions: readonly string[];
|
|
308
316
|
admissionGrants?: boolean;
|
|
317
|
+
commercialParity?: boolean;
|
|
309
318
|
}
|
|
310
319
|
/** Fully-resolved leader network configuration. */
|
|
311
320
|
interface ResolvedNetwork {
|
|
@@ -505,7 +514,7 @@ interface ChapterScheduling {
|
|
|
505
514
|
*
|
|
506
515
|
* - `"claim"` reads a role ladder from a JWT claim (the member-site model:
|
|
507
516
|
* `provisional → member → admin`). Admin is the last (highest) rung; the
|
|
508
|
-
*
|
|
517
|
+
* Studio-managed super-admin tier sits above it.
|
|
509
518
|
* - `"table"` gates on the deny-all `admins` allowlist (the hub model):
|
|
510
519
|
* a binary "email is an admin or isn't", set only in odla Studio.
|
|
511
520
|
*
|
|
@@ -517,10 +526,13 @@ interface ChapterAuth {
|
|
|
517
526
|
/** Role ladder low→high, for `source: "claim"`. The last entry is admin.
|
|
518
527
|
* Default `["provisional", "member", "admin"]`. */
|
|
519
528
|
ladder?: readonly string[];
|
|
520
|
-
/**
|
|
521
|
-
* create/modify admins
|
|
522
|
-
* odla Studio. Default: `true` for `"claim"`, `false` for `"table"`. */
|
|
529
|
+
/** Enable the Studio-managed super-admin tier — the only tier that may
|
|
530
|
+
* create/modify admins. Default: `true` for `"claim"`, `false` for `"table"`. */
|
|
523
531
|
superAdmins?: boolean;
|
|
532
|
+
/** Authority behind the super-admin tier. `"table"` preserves the legacy
|
|
533
|
+
* app allowlist; `"odla"` reads protected `$users.role`. Default `"table"`
|
|
534
|
+
* for backward compatibility. */
|
|
535
|
+
superAdminSource?: "table" | "odla";
|
|
524
536
|
}
|
|
525
537
|
/** The fully-resolved auth policy (defaults applied) carried on the {@link Chapter}. */
|
|
526
538
|
interface ResolvedAuth {
|
|
@@ -530,6 +542,7 @@ interface ResolvedAuth {
|
|
|
530
542
|
/** The highest ladder rung (last entry) — the "admin" gate. */
|
|
531
543
|
adminRole: string;
|
|
532
544
|
superAdmins: boolean;
|
|
545
|
+
superAdminSource: "none" | "table" | "odla";
|
|
533
546
|
}
|
|
534
547
|
/** The application status pipeline. Which statuses exist, and the subsets a site
|
|
535
548
|
* allows a call to be booked from / an application approved from. Defaults to
|
package/dist/worker/index.d.ts
CHANGED
|
@@ -228,6 +228,10 @@ interface ChapterNetworkTarget {
|
|
|
228
228
|
/** Allow package-owned desired admission decisions for existing leader CRM
|
|
229
229
|
* people to be delivered to this target. Omitted means default deny. */
|
|
230
230
|
admissionGrants?: boolean;
|
|
231
|
+
/** Allow this leader to request a PII-free commercial parity snapshot from
|
|
232
|
+
* this follower. The follower must independently enable the same reader;
|
|
233
|
+
* omitted means no application or Stripe identifier digest crosses. */
|
|
234
|
+
commercialParity?: boolean;
|
|
231
235
|
}
|
|
232
236
|
/** One signed peer allowed to browse a privacy-bounded projection of this
|
|
233
237
|
* site's CRM. The follower owns this allowlist; a leader target declaration
|
|
@@ -252,6 +256,9 @@ interface ChapterNetworkReader {
|
|
|
252
256
|
/** Accept signed desired admission decisions from this reader. Independent
|
|
253
257
|
* of record browsing; an admission-only reader may omit `fields`. */
|
|
254
258
|
admissionGrants?: boolean;
|
|
259
|
+
/** Disclose a bounded, PII-free commercial parity snapshot to this signed
|
|
260
|
+
* reader. Identifiers leave only as edge-keyed, domain-separated HMACs. */
|
|
261
|
+
commercialParity?: boolean;
|
|
255
262
|
}
|
|
256
263
|
/** Leader/follower network configuration. A follower needs no code config to
|
|
257
264
|
* receive pushed records. It must explicitly declare `readers` before any peer
|
|
@@ -297,6 +304,7 @@ interface ResolvedNetworkTarget {
|
|
|
297
304
|
editableFields: Record<string, readonly string[]>;
|
|
298
305
|
stageTransitions: readonly string[];
|
|
299
306
|
admissionGrants?: boolean;
|
|
307
|
+
commercialParity?: boolean;
|
|
300
308
|
}
|
|
301
309
|
/** A validated follower-owned record projection for one signed reader. */
|
|
302
310
|
interface ResolvedNetworkReader {
|
|
@@ -306,6 +314,7 @@ interface ResolvedNetworkReader {
|
|
|
306
314
|
editableFields: Record<string, readonly string[]>;
|
|
307
315
|
stageTransitions: readonly string[];
|
|
308
316
|
admissionGrants?: boolean;
|
|
317
|
+
commercialParity?: boolean;
|
|
309
318
|
}
|
|
310
319
|
/** Fully-resolved leader network configuration. */
|
|
311
320
|
interface ResolvedNetwork {
|
|
@@ -505,7 +514,7 @@ interface ChapterScheduling {
|
|
|
505
514
|
*
|
|
506
515
|
* - `"claim"` reads a role ladder from a JWT claim (the member-site model:
|
|
507
516
|
* `provisional → member → admin`). Admin is the last (highest) rung; the
|
|
508
|
-
*
|
|
517
|
+
* Studio-managed super-admin tier sits above it.
|
|
509
518
|
* - `"table"` gates on the deny-all `admins` allowlist (the hub model):
|
|
510
519
|
* a binary "email is an admin or isn't", set only in odla Studio.
|
|
511
520
|
*
|
|
@@ -517,10 +526,13 @@ interface ChapterAuth {
|
|
|
517
526
|
/** Role ladder low→high, for `source: "claim"`. The last entry is admin.
|
|
518
527
|
* Default `["provisional", "member", "admin"]`. */
|
|
519
528
|
ladder?: readonly string[];
|
|
520
|
-
/**
|
|
521
|
-
* create/modify admins
|
|
522
|
-
* odla Studio. Default: `true` for `"claim"`, `false` for `"table"`. */
|
|
529
|
+
/** Enable the Studio-managed super-admin tier — the only tier that may
|
|
530
|
+
* create/modify admins. Default: `true` for `"claim"`, `false` for `"table"`. */
|
|
523
531
|
superAdmins?: boolean;
|
|
532
|
+
/** Authority behind the super-admin tier. `"table"` preserves the legacy
|
|
533
|
+
* app allowlist; `"odla"` reads protected `$users.role`. Default `"table"`
|
|
534
|
+
* for backward compatibility. */
|
|
535
|
+
superAdminSource?: "table" | "odla";
|
|
524
536
|
}
|
|
525
537
|
/** The fully-resolved auth policy (defaults applied) carried on the {@link Chapter}. */
|
|
526
538
|
interface ResolvedAuth {
|
|
@@ -530,6 +542,7 @@ interface ResolvedAuth {
|
|
|
530
542
|
/** The highest ladder rung (last entry) — the "admin" gate. */
|
|
531
543
|
adminRole: string;
|
|
532
544
|
superAdmins: boolean;
|
|
545
|
+
superAdminSource: "none" | "table" | "odla";
|
|
533
546
|
}
|
|
534
547
|
/** The application status pipeline. Which statuses exist, and the subsets a site
|
|
535
548
|
* allows a call to be booked from / an application approved from. Defaults to
|