@odla-ai/chapter 0.44.0 → 0.46.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 +59 -0
- package/dist/{copy-context-B4SCy6vx.d.ts → copy-context-GaxckY3T.d.ts} +33 -0
- package/dist/index.cjs +842 -285
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +221 -3
- package/dist/index.d.ts +221 -3
- package/dist/index.js +842 -285
- 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 +1215 -318
- package/dist/worker/index.cjs.map +1 -1
- package/dist/worker/index.d.cts +33 -0
- package/dist/worker/index.d.ts +33 -0
- package/dist/worker/index.js +1215 -318
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CrmConfig, Crm, FieldConditions, TypeDef, FieldType, TypeSummary, CrmRecord } from '@odla-ai/crm';
|
|
2
|
-
import { StripeRequestResult } from '@odla-ai/stripe';
|
|
2
|
+
import { StripeClient, StripeRequestResult } from '@odla-ai/stripe';
|
|
3
3
|
export { stripeForm, verifyStripeSignature } from '@odla-ai/stripe';
|
|
4
4
|
import { PromotionAdapterResult } from '@odla-ai/promotion';
|
|
5
5
|
|
|
@@ -236,6 +236,26 @@ interface ResolvedNetworkPersonRegistry {
|
|
|
236
236
|
chapterIds: readonly string[];
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
/** One exact Stripe event partition accepted by the network commercial shadow. */
|
|
240
|
+
interface NetworkCommercialSource {
|
|
241
|
+
appId: string;
|
|
242
|
+
chapterId: string;
|
|
243
|
+
environment: string;
|
|
244
|
+
dataEnvironment: string;
|
|
245
|
+
runtime: string;
|
|
246
|
+
stripeMode: "test" | "live";
|
|
247
|
+
}
|
|
248
|
+
/** Opt-in, read-only projection of a shared Stripe account. */
|
|
249
|
+
interface ChapterNetworkCommercialReadModel {
|
|
250
|
+
mode: "shadow";
|
|
251
|
+
sources: readonly NetworkCommercialSource[];
|
|
252
|
+
}
|
|
253
|
+
/** Validated settings carried by a resolved hub. */
|
|
254
|
+
interface ResolvedNetworkCommercialReadModel {
|
|
255
|
+
mode: "shadow";
|
|
256
|
+
sources: readonly NetworkCommercialSource[];
|
|
257
|
+
}
|
|
258
|
+
|
|
239
259
|
/** Scalar kinds accepted by the Chapter schema adapter. */
|
|
240
260
|
type AttrType = "string" | "number" | "boolean" | "json";
|
|
241
261
|
/** One odla-db attribute: its type and index/uniqueness/optionality flags. */
|
|
@@ -298,6 +318,10 @@ interface ChapterNetworkTarget {
|
|
|
298
318
|
/** Allow package-owned desired admission decisions for existing leader CRM
|
|
299
319
|
* people to be delivered to this target. Omitted means default deny. */
|
|
300
320
|
admissionGrants?: boolean;
|
|
321
|
+
/** Allow this leader to request a PII-free commercial parity snapshot from
|
|
322
|
+
* this follower. The follower must independently enable the same reader;
|
|
323
|
+
* omitted means no application or Stripe identifier digest crosses. */
|
|
324
|
+
commercialParity?: boolean;
|
|
301
325
|
}
|
|
302
326
|
/** One signed peer allowed to browse a privacy-bounded projection of this
|
|
303
327
|
* site's CRM. The follower owns this allowlist; a leader target declaration
|
|
@@ -322,6 +346,9 @@ interface ChapterNetworkReader {
|
|
|
322
346
|
/** Accept signed desired admission decisions from this reader. Independent
|
|
323
347
|
* of record browsing; an admission-only reader may omit `fields`. */
|
|
324
348
|
admissionGrants?: boolean;
|
|
349
|
+
/** Disclose a bounded, PII-free commercial parity snapshot to this signed
|
|
350
|
+
* reader. Identifiers leave only as edge-keyed, domain-separated HMACs. */
|
|
351
|
+
commercialParity?: boolean;
|
|
325
352
|
}
|
|
326
353
|
/** Leader/follower network configuration. A follower needs no code config to
|
|
327
354
|
* receive pushed records. It must explicitly declare `readers` before any peer
|
|
@@ -367,6 +394,7 @@ interface ResolvedNetworkTarget {
|
|
|
367
394
|
editableFields: Record<string, readonly string[]>;
|
|
368
395
|
stageTransitions: readonly string[];
|
|
369
396
|
admissionGrants?: boolean;
|
|
397
|
+
commercialParity?: boolean;
|
|
370
398
|
}
|
|
371
399
|
/** A validated follower-owned record projection for one signed reader. */
|
|
372
400
|
interface ResolvedNetworkReader {
|
|
@@ -376,6 +404,7 @@ interface ResolvedNetworkReader {
|
|
|
376
404
|
editableFields: Record<string, readonly string[]>;
|
|
377
405
|
stageTransitions: readonly string[];
|
|
378
406
|
admissionGrants?: boolean;
|
|
407
|
+
commercialParity?: boolean;
|
|
379
408
|
}
|
|
380
409
|
/** Fully-resolved leader network configuration. */
|
|
381
410
|
interface ResolvedNetwork {
|
|
@@ -700,6 +729,8 @@ interface ChapterConfig {
|
|
|
700
729
|
/** Network-scoped canonical Person registry. Shadow mode is additive only:
|
|
701
730
|
* Chapter workflows and access continue to read their existing authority. */
|
|
702
731
|
networkPersonRegistry?: ChapterNetworkPersonRegistry;
|
|
732
|
+
/** Read-only, rebuildable commercial projection from a shared Stripe account. */
|
|
733
|
+
networkCommercialReadModel?: ChapterNetworkCommercialReadModel;
|
|
703
734
|
/** Enable a public, host-rendered formation application workflow. */
|
|
704
735
|
formation?: LeaderFormationConfig;
|
|
705
736
|
thesis?: unknown;
|
|
@@ -802,6 +833,8 @@ interface Chapter {
|
|
|
802
833
|
builderLibrary: ResolvedBuilderLibrary | null;
|
|
803
834
|
/** Null unless this hub explicitly enables the shadow Person registry. */
|
|
804
835
|
networkPersonRegistry: ResolvedNetworkPersonRegistry | null;
|
|
836
|
+
/** Null unless this hub explicitly enables the commercial shadow. */
|
|
837
|
+
networkCommercialReadModel: ResolvedNetworkCommercialReadModel | null;
|
|
805
838
|
/** Resolved public formation intake contract (disabled when omitted). */
|
|
806
839
|
formation: ResolvedLeaderFormation;
|
|
807
840
|
/** Resolved CRM engine (from `defineCrm`). */
|
|
@@ -847,6 +880,191 @@ declare function resolveBuilderLibrary(mode: ChapterMode, input: ChapterBuilderL
|
|
|
847
880
|
/** Validate the opt-in, hub-only shadow Person registry. */
|
|
848
881
|
declare function resolveNetworkPersonRegistry(mode: ChapterMode, input: ChapterNetworkPersonRegistry | undefined, targetIds: readonly string[]): ResolvedNetworkPersonRegistry | null;
|
|
849
882
|
|
|
883
|
+
/** Stable, PII-free identity for one accepted Stripe partition. */
|
|
884
|
+
declare function networkCommercialSourceKey(source: NetworkCommercialSource): string;
|
|
885
|
+
/** Validate the opt-in hub-only commercial shadow. */
|
|
886
|
+
declare function resolveNetworkCommercialReadModel(mode: ChapterMode, input: ChapterNetworkCommercialReadModel | undefined, targetIds: readonly string[]): ResolvedNetworkCommercialReadModel | null;
|
|
887
|
+
|
|
888
|
+
/** Stripe metadata fields used to bind one fact to an exact configured source. */
|
|
889
|
+
interface CommercialIdentity {
|
|
890
|
+
appId?: string;
|
|
891
|
+
chapterId?: string;
|
|
892
|
+
environment?: string;
|
|
893
|
+
dataEnvironment?: string;
|
|
894
|
+
runtime?: string;
|
|
895
|
+
}
|
|
896
|
+
/** Provider object categories materialized by the network commercial shadow. */
|
|
897
|
+
type CommercialObjectKind = "customer" | "subscription" | "invoice" | "refund";
|
|
898
|
+
/** One verified, allowlisted, PII-free Stripe event fact retained for replay. */
|
|
899
|
+
interface NetworkCommercialFact {
|
|
900
|
+
eventId: string;
|
|
901
|
+
digest: string;
|
|
902
|
+
eventType: string;
|
|
903
|
+
eventCreated: number;
|
|
904
|
+
livemode: boolean;
|
|
905
|
+
objectKind: CommercialObjectKind | "ignored";
|
|
906
|
+
objectId: string;
|
|
907
|
+
identity: CommercialIdentity;
|
|
908
|
+
applicationId?: string;
|
|
909
|
+
personId?: string;
|
|
910
|
+
membershipId?: string;
|
|
911
|
+
customerId?: string;
|
|
912
|
+
subscriptionId?: string;
|
|
913
|
+
invoiceId?: string;
|
|
914
|
+
chargeId?: string;
|
|
915
|
+
paymentIntentId?: string;
|
|
916
|
+
priceId?: string;
|
|
917
|
+
quantity?: number;
|
|
918
|
+
status?: string;
|
|
919
|
+
currency?: string;
|
|
920
|
+
amountCents?: number;
|
|
921
|
+
amountPaidCents?: number;
|
|
922
|
+
amountRemainingCents?: number;
|
|
923
|
+
currentPeriodStart?: number;
|
|
924
|
+
currentPeriodEnd?: number;
|
|
925
|
+
cancelAtPeriodEnd?: boolean;
|
|
926
|
+
}
|
|
927
|
+
/** Current provider object state with the exact network source that owns it. */
|
|
928
|
+
interface NetworkCommercialProjectedRow extends NetworkCommercialFact {
|
|
929
|
+
sourceKey: string;
|
|
930
|
+
}
|
|
931
|
+
/** Reviewable reason that a verified fact was not safely incorporated. */
|
|
932
|
+
interface NetworkCommercialException {
|
|
933
|
+
eventId: string;
|
|
934
|
+
kind: "collision" | "unsupported" | "unmatched_partition" | "ambiguous_partition" | "wrong_partition" | "charge_refund_without_refund_object";
|
|
935
|
+
sourceKey?: string;
|
|
936
|
+
detail: {
|
|
937
|
+
eventType: string;
|
|
938
|
+
objectId: string;
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
/** Complete deterministic view rebuilt from the append-only commercial event log. */
|
|
942
|
+
interface NetworkCommercialProjection {
|
|
943
|
+
customers: NetworkCommercialProjectedRow[];
|
|
944
|
+
subscriptions: NetworkCommercialProjectedRow[];
|
|
945
|
+
invoices: NetworkCommercialProjectedRow[];
|
|
946
|
+
refunds: NetworkCommercialProjectedRow[];
|
|
947
|
+
exceptions: NetworkCommercialException[];
|
|
948
|
+
totals: Array<{
|
|
949
|
+
sourceKey: string;
|
|
950
|
+
currency: string;
|
|
951
|
+
paidCents: number;
|
|
952
|
+
refundedCents: number;
|
|
953
|
+
netCents: number;
|
|
954
|
+
}>;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
type Raw = Record<string, unknown>;
|
|
958
|
+
interface StripeObjectSnapshot {
|
|
959
|
+
objects: Raw[];
|
|
960
|
+
complete: boolean;
|
|
961
|
+
}
|
|
962
|
+
interface StripeCommercialReconciliation {
|
|
963
|
+
ok: boolean;
|
|
964
|
+
complete: boolean;
|
|
965
|
+
ignoredObjects: number;
|
|
966
|
+
exceptions: Array<{
|
|
967
|
+
kind: "missing_from_stripe" | "missing_from_shadow" | "object_mismatch" | "totals_mismatch" | "stripe_snapshot_truncated";
|
|
968
|
+
sourceKey?: string;
|
|
969
|
+
objectKind?: string;
|
|
970
|
+
providerId?: string;
|
|
971
|
+
detail: Record<string, unknown>;
|
|
972
|
+
}>;
|
|
973
|
+
stripeTotals: NetworkCommercialProjection["totals"];
|
|
974
|
+
}
|
|
975
|
+
/** Read a bounded current-object snapshot through the typed Stripe client. */
|
|
976
|
+
declare function listStripeObjects(client: StripeClient, path: string, params?: Record<string, unknown>, maxPages?: number): Promise<StripeObjectSnapshot>;
|
|
977
|
+
/** Compare the event shadow with an independent current-object Stripe read. */
|
|
978
|
+
declare function reconcileStripeSnapshot(shadow: NetworkCommercialProjection, snapshots: {
|
|
979
|
+
customers: StripeObjectSnapshot;
|
|
980
|
+
subscriptions: StripeObjectSnapshot;
|
|
981
|
+
invoices: StripeObjectSnapshot;
|
|
982
|
+
refunds: StripeObjectSnapshot;
|
|
983
|
+
}, sources: readonly NetworkCommercialSource[]): StripeCommercialReconciliation;
|
|
984
|
+
|
|
985
|
+
/** Reduce a verified Stripe event to a bounded, PII-free fact. */
|
|
986
|
+
declare function normalizeNetworkCommercialStripeEvent(input: unknown, digest: string): NetworkCommercialFact;
|
|
987
|
+
/** Deterministically rebuild the network commercial projection from its event log. */
|
|
988
|
+
declare function projectNetworkCommercialEvents(input: readonly NetworkCommercialFact[], sources: readonly NetworkCommercialSource[]): NetworkCommercialProjection;
|
|
989
|
+
|
|
990
|
+
type Row = Record<string, unknown>;
|
|
991
|
+
/** Exact chapter/runtime partition that binds every parity digest. */
|
|
992
|
+
interface CommercialParityPartition {
|
|
993
|
+
appId: string;
|
|
994
|
+
chapterId: string;
|
|
995
|
+
environment: string;
|
|
996
|
+
dataEnvironment: string;
|
|
997
|
+
runtime: string;
|
|
998
|
+
}
|
|
999
|
+
/** PII-free chapter membership identity and lifecycle disclosure. */
|
|
1000
|
+
interface ChapterCommercialParityRecord {
|
|
1001
|
+
applicationDigest: string;
|
|
1002
|
+
customerDigest: string | null;
|
|
1003
|
+
subscriptionDigest: string | null;
|
|
1004
|
+
status: string | null;
|
|
1005
|
+
canceled: boolean;
|
|
1006
|
+
}
|
|
1007
|
+
/** Bounded, signed-response payload produced by an opted-in chapter. */
|
|
1008
|
+
interface ChapterCommercialParitySnapshot {
|
|
1009
|
+
version: 1;
|
|
1010
|
+
site: {
|
|
1011
|
+
id: string;
|
|
1012
|
+
};
|
|
1013
|
+
partition: CommercialParityPartition;
|
|
1014
|
+
generatedAt: number;
|
|
1015
|
+
complete: boolean;
|
|
1016
|
+
truncated: boolean;
|
|
1017
|
+
counts: {
|
|
1018
|
+
scanned: number;
|
|
1019
|
+
eligible: number;
|
|
1020
|
+
returned: number;
|
|
1021
|
+
};
|
|
1022
|
+
records: ChapterCommercialParityRecord[];
|
|
1023
|
+
}
|
|
1024
|
+
/** Reconciliation exception categories that never expose raw identifiers. */
|
|
1025
|
+
type CommercialParityExceptionKind = "chapter_only" | "shadow_only" | "cancellation_mismatch" | "chapter_truncated" | "count_mismatch";
|
|
1026
|
+
/** One privacy-preserving mismatch between a chapter and its Stripe shadow. */
|
|
1027
|
+
interface CommercialParityException {
|
|
1028
|
+
kind: CommercialParityExceptionKind;
|
|
1029
|
+
applicationDigest?: string;
|
|
1030
|
+
detail: Record<string, string | number | boolean | null>;
|
|
1031
|
+
}
|
|
1032
|
+
/** Read-only result of comparing one chapter snapshot with one exact shadow partition. */
|
|
1033
|
+
interface CommercialParityResult {
|
|
1034
|
+
ok: boolean;
|
|
1035
|
+
complete: boolean;
|
|
1036
|
+
counts: {
|
|
1037
|
+
chapter: number;
|
|
1038
|
+
shadow: number;
|
|
1039
|
+
matched: number;
|
|
1040
|
+
};
|
|
1041
|
+
records: Array<ChapterCommercialParityRecord & {
|
|
1042
|
+
stripeStatus: string | null;
|
|
1043
|
+
stripeCanceled: boolean;
|
|
1044
|
+
}>;
|
|
1045
|
+
exceptions: CommercialParityException[];
|
|
1046
|
+
}
|
|
1047
|
+
/** Edge-keyed, domain-separated digest. Raw identifiers never enter a response. */
|
|
1048
|
+
declare function commercialParityDigest(secret: string, partition: CommercialParityPartition, kind: "application" | "customer" | "subscription", value: string): Promise<string>;
|
|
1049
|
+
/** Build the bounded disclosure from already-bounded local application rows. */
|
|
1050
|
+
declare function buildChapterCommercialParitySnapshot(input: {
|
|
1051
|
+
rows: readonly Row[];
|
|
1052
|
+
secret: string;
|
|
1053
|
+
partition: CommercialParityPartition;
|
|
1054
|
+
siteId: string;
|
|
1055
|
+
scanned: number;
|
|
1056
|
+
scanTruncated: boolean;
|
|
1057
|
+
maxRecords?: number;
|
|
1058
|
+
now?: number;
|
|
1059
|
+
}): Promise<ChapterCommercialParitySnapshot>;
|
|
1060
|
+
/** Compare one follower disclosure to the matching Stripe shadow partition. */
|
|
1061
|
+
declare function reconcileCommercialParitySnapshot(input: {
|
|
1062
|
+
projection: NetworkCommercialProjection;
|
|
1063
|
+
source: NetworkCommercialSource;
|
|
1064
|
+
snapshot: ChapterCommercialParitySnapshot;
|
|
1065
|
+
secret: string;
|
|
1066
|
+
}): Promise<CommercialParityResult>;
|
|
1067
|
+
|
|
850
1068
|
/** Options for {@link leaderCrmConfig}. */
|
|
851
1069
|
interface LeaderCrmOptions {
|
|
852
1070
|
/** Existing host CRM config to preserve. Defaults to Chapter's people +
|
|
@@ -986,7 +1204,7 @@ declare function createChapterIntegration(chapter: Chapter, options?: ChapterInt
|
|
|
986
1204
|
* chapter therefore emits the reference namespace set — `applications`,
|
|
987
1205
|
* `groups`, `meetings`, `emailLog`, `stripeEventReceipts`, `superAdmins` — with
|
|
988
1206
|
* no `admins` table. */
|
|
989
|
-
declare function chapterDb(mode: ChapterMode, auth: ResolvedAuth, includeNetworkNotes?: boolean, application?: ResolvedApplication, includeSignupControl?: boolean, includeMemberContent?: boolean, includeBuilderLibrary?: boolean, includeLeaderAdmissions?: boolean, includeNetworkPersonRegistry?: boolean): {
|
|
1207
|
+
declare function chapterDb(mode: ChapterMode, auth: ResolvedAuth, includeNetworkNotes?: boolean, application?: ResolvedApplication, includeSignupControl?: boolean, includeMemberContent?: boolean, includeBuilderLibrary?: boolean, includeLeaderAdmissions?: boolean, includeNetworkPersonRegistry?: boolean, includeNetworkCommercialReadModel?: boolean): {
|
|
990
1208
|
schema: DbSchema;
|
|
991
1209
|
rules: DbRules;
|
|
992
1210
|
};
|
|
@@ -3139,4 +3357,4 @@ declare const SILVER_SALT_P0_FIXTURE: {
|
|
|
3139
3357
|
};
|
|
3140
3358
|
};
|
|
3141
3359
|
|
|
3142
|
-
export { ADMISSION_GRANTS_PATH, ADMISSION_GRANTS_SCHEMA_VERSION, type AccountModel, type AdminNotificationTrigger, type AdmissionDecision, type AdmissionGrantDocument, type AdmissionGrantEnvelope, type AdmissionGrantInput, type AdmissionGrantReceipt, type AdmissionGrantRejection, type AdmissionGrantRevisionRow, type AdmissionGrantRow, type AdmissionGrantValidation, type Applicant, type ApplicationBookingPatch, type ApplicationRecord, type ApplicationSummary, type Attr, type AttrType, BUILDER_LIBRARY_ADMIN_PATH, BUILDER_LIBRARY_CONTROL_PATH, BUILDER_LIBRARY_MANIFEST_PATH, BUILDER_LIBRARY_PROMOTE_PATH, BUILDER_LIBRARY_SCHEMA_VERSION, type BuilderLibraryBrandAssetRef, type BuilderLibraryDocument, type BuilderLibraryEnvelope, type BuilderLibraryManifest, type BuilderLibraryPromotionProvenance, type BuilderLibraryReceipt, type BuilderLibraryResource, type BuilderLibraryResourceKind, type BuilderLibraryResourceProvenance, type BuilderLibraryResourceStatus, type BuilderLibraryScope, type BuilderLibrarySource, type BuilderLibrarySourceType, type BuilderLibraryTarget, type BuilderLibraryValidationOptions, type BuilderLibraryValidationResult, type BuilderLibraryViewer, type BuyerGiftClaim, CHAPTER_FLOW_FIELDS_SCHEMA_VERSION, CHAPTER_PROMOTION_ADAPTER, type Chapter, type ChapterApplication, type ChapterAuth, type ChapterBrand, type ChapterBuilderLibrary, type ChapterConfig, type ChapterCopy, type ChapterCopyInput, type ChapterDb, type ChapterEmailIdentity, type ChapterEmails, type ChapterFieldFlow, type ChapterFlowField, type ChapterFlowFieldContract, type ChapterIntegrationDescriptor, type ChapterIntegrationOptions, type ChapterMemberContent, type ChapterMode, type ChapterNetwork, type ChapterNetworkReader, type ChapterNetworkTarget, type ChapterOperations, type ChapterPipeline, type ChapterPolicy, type ChapterPrices, type ChapterPromotionInput, type ChapterRunbookHints, type ChapterScheduling, type ChapterSends, type ChapterSignupControl, type ChapterTier, type ChapterTierConfig, type ClerkInviteInput, type ClerkMetadataInput, type ClerkResult, type ClerkUserInput, type ClerkUserRecord, type CompiledChapterBrandTokens, DEFAULT_CHAPTER_COPY, DEFAULT_SHARE_FIELDS, type DashboardMetricData, type DashboardMetricSeries, type DbOp, type DbRules, type DbSchema, type DeliveryDecision, type EffectiveMemberContent, type EffectiveMemberContentPage, type EmailGroup, type EmailTemplate, type EmailTemplateRow, type Entity, type ExistingMeeting, GIFT_OFFER_CATALOG_VERSION, type GiftOffer, type GiftOfferCatalog, type GiftOfferTarget, type GiftOfferValidation, type GuardResult, type IntegrationDescriptor, type IntegrationProvision, type IntegrationSecret, type IntegrationSetting, type IntegrationSync, JOURNEY_ENDINGS, JOURNEY_STAGES, type JoinConfigGroup, type JoinConfigTier, type JoinContinuation, type JourneyEnding, type JourneyStage, type LeaderCrmOptions, type LeaderFormationConfig, type LiveEvent, MAX_GIFT_OFFERS, MEMBERSHIP_PAGE_RENDERER, MEMBER_CONTENT_CONTROL_PATH, MEMBER_CONTENT_PATH, MEMBER_CONTENT_SCHEMA_VERSION, MEMBER_SELF_EDITABLE_FIELDS, MEMBER_SELF_READABLE_FIELDS, MEMBER_SYSTEM_AUTHORITY_MATRIX, MEMBER_SYSTEM_CONTRACT_VERSION, MEMBER_SYSTEM_RECOVERY_OBJECTIVES, type MailSender, type MeetingForReconcile, type MeetingRecord, type MeetingReschedulePatch, type MemberApplication, type MemberAuthorityValidation, type MemberContentDocument, type MemberContentEnvelope, type MemberContentPage, type MemberContentPageProjection, type MemberContentProjection, type MemberContentReceipt, type MemberContentRejection, type MemberContentSource, type MemberContentSourceType, type MemberContentTarget, type MemberContentTierAuthority, type MemberContentValidationOptions, type MemberContentValidationResult, type MemberContentViewer, type MemberFieldAuthority, type MemberFieldSelfAccess, type MemberFieldSensitivity, type MemberPageAudience, type MemberPageNavigation, type MemberPageUpsell, type MemberPageUpsellOffer, type MemberPageUpsellOverride, type MemberSession, type MemberStripeDisposition, type MemberStripeIdentity, type MemberStripeTarget, type MemberSystemAvailability, type MemberSystemAvailabilityInput, type MemberSystemEventReceiptInput, type MemberSystemEventReplayPlan, type MemberSystemMigrationPlan, type MemberSystemMigrationRow, type MemberSystemProjection, type MemberSystemRecoveryObjectives, type MemberSystemRollbackPlan, type MemberSystemScope, type MemberSystemWriteDisposition, type MemberSystemWriteIntent, type MemberSystemWriter, type MembershipPageDocument, type MembershipPageValidationOptions, type MembershipPageValidationResult, type MembershipTierAuthority, type MembershipTierCallout, type MembershipTierCapacity, type MembershipTierMarkdownResult, type MembershipTierPresentation, type MembershipTierVariant, type NetworkEditableField, type NetworkRecord, type NetworkRecordEdit, type NetworkRecordMutation, type NetworkRecordMutationResult, type NetworkRecordNote, type NetworkRecordPage, type NetworkRollup, type NetworkRollupTarget, type NetworkSharedNote, type NetworkSnapshot, type NetworkStageTransition, type NetworkTargetTransportStatus, type NewMeetingRow, type NotifyDeps, type NotifyInput, type NotifyResult, type PaymentsGroup, type ProjectionDeps, type PublicGiftOffer, REQUIRED_NOTICE_KINDS, type ReconcileDecision, type RequiredNoticeKind, type ResolvedApplication, type ResolvedAuth, type ResolvedBuilderLibrary, type ResolvedLeaderFormation, type ResolvedMemberContent, type ResolvedMemberPageUpsell, type ResolvedNetwork, type ResolvedNetworkReader, type ResolvedNetworkTarget, type ResolvedOperations, type ResolvedPipeline, type ResolvedScheduling, type ResolvedSends, type ResolvedSignupControl, type RoleChangeContext, type Rule, SCHEDULING_DEFAULTS, SIGNUP_CONTROL_PATH, SIGNUP_CONTROL_SCHEMA_VERSION, SIGNUP_CONTROL_THEME_MARKER, SIGNUP_CONTROL_THEME_STYLE_ID, SILVER_SALT_P0_FIXTURE, type SchedulingErrors, type SecretMode, type SecretStore, type SessionUser, type SharedBusiness, type SharedPerson, type SharedRecord, type SharedRecordV1, type SharedRecordV2, type SignupControlApplication, type SignupControlDocument, type SignupControlEnvelope, type SignupControlPolicy, type SignupControlReceipt, type SignupControlRejection, type SignupControlTheme, type SignupControlThemeHead, type SignupControlThemeMetadata, type SignupControlThemeOptions, type SignupControlThemeRevision, type SignupControlThemeStyleTarget, type SignupControlTier, type SignupControlValidation, type StripeEvent, type StripeResult, type SubmitResult, type TierGroup, type TierGroupRow, type WebhookEvent, applicantProfile, applicationBookingUpdate, applicationFlowFields, applicationSummary, applyMembershipTierMarkdown, backfillCrm, bookingDecision, brandTokens, bucketSeries, buildBuilderLibraryManifest, buildGroupSeed, buildTierSeeds, builderLibraryDigest, canApprove, canBook, canChangeRole, canTransition, canViewBuilderLibraryResource, canceledPatch, canonicalBuilderLibrary, canonicalMemberContent, canonicalSignupControl, chapterBrandFromTokens, chapterDb, chapterFlowFieldContract, clampArray, classifyMemberStripeEvent, classifyMemberSystemWrite, clerkGetUser, clerkGetUserByEmail, clerkIntegration, clerkInviteRequest, clerkListUsers, clerkSetRole, clerkUserRequest, composeMemberContent, createAdmissionGrantEnvelope, createBuilderLibraryEnvelope, createChapterIntegration, createClerkInvitation, createClerkUser, createMemberContentEnvelope, createSignupControlEnvelope, dashboardMetricData, defaultCrm, defineChapter, emailGroupFrom, endForSlot, exportChapterPromotion, findAdmissionGrant, findApplicationRef, findGiftOffer, findTier, firstPaymentPatch, formatChapterCopy, formationFields, formationFlowFields, getVaultSecret, giftOfferActive, hasDisclaimerAck, hydrateSignupControlTheme, injectSignupControlThemeHead, introIdempotencyKey, isAdminRole, isAlreadySent, isReconcilable, isSlotAvailable, isValidEmail, joinConfig, joinConfigTiers, leaderCrmConfig, loadLatestAdmissionRevision, loadOfferableTiers, loadTiers, materializeAdmissionGrants, meetingCreateRow, meetingRescheduleUpdate, memberApplication, memberContentDigest, memberContentDocument, memberSession, memberSystemAvailability, memberSystemRollbackPlan, membershipPageDocument, membershipTierPresentationFromMarkdown, networkSourceTag, normalizeAdmissionEmail, normalizeChapterEmail, normalizeSharedRecord, normalizeWebhookEvent, offerableTiers, paymentsReady, personInputFromApp, planDelivery, planMemberSystemEventReplay, planMemberSystemMigration, projectApplicant, projectBuilderLibraryDelivery, projectMemberContent, projectMemberSelf, projectSharedRecord, promoteBuilderLibraryResource, publicGiftOffers, reconcileMeetings, refundedPatch, render, renderSignupControlThemeHead, renderSummary, renderTemplateBody, renewalPatch, resolveApplication, resolveAuth, resolveBuilderLibrary, resolveChapterCopy, resolveJoinContinuation, resolveLeaderFormation, resolveMemberContent, resolveNetworkPersonRegistry, resolvePipeline, resolveScheduling, resolveSignupControl, resolveTiers, roleFromClaim, sendTemplated, sharedPersonInput, sharedRecordFromCrm, signupControlDigest, slotWindow, stageIndex, stripeCall, subAnnualCents, submitApplication, subscriptionIdempotencyKey, syncApplicationToCrm, tierIsFree, tierPayable, updateClerkUserMetadata, updateClerkUserMetadataByEmail, validateAdmissionGrantDocument, validateBuilderLibraryDocument, validateGiftOfferCatalog, validateMemberContentDocument, validateMemberSystemAuthority, validateMembershipPageDocument, validateScheduling, validateSignupControlDocument, webhookMutationId };
|
|
3360
|
+
export { ADMISSION_GRANTS_PATH, ADMISSION_GRANTS_SCHEMA_VERSION, type AccountModel, type AdminNotificationTrigger, type AdmissionDecision, type AdmissionGrantDocument, type AdmissionGrantEnvelope, type AdmissionGrantInput, type AdmissionGrantReceipt, type AdmissionGrantRejection, type AdmissionGrantRevisionRow, type AdmissionGrantRow, type AdmissionGrantValidation, type Applicant, type ApplicationBookingPatch, type ApplicationRecord, type ApplicationSummary, type Attr, type AttrType, BUILDER_LIBRARY_ADMIN_PATH, BUILDER_LIBRARY_CONTROL_PATH, BUILDER_LIBRARY_MANIFEST_PATH, BUILDER_LIBRARY_PROMOTE_PATH, BUILDER_LIBRARY_SCHEMA_VERSION, type BuilderLibraryBrandAssetRef, type BuilderLibraryDocument, type BuilderLibraryEnvelope, type BuilderLibraryManifest, type BuilderLibraryPromotionProvenance, type BuilderLibraryReceipt, type BuilderLibraryResource, type BuilderLibraryResourceKind, type BuilderLibraryResourceProvenance, type BuilderLibraryResourceStatus, type BuilderLibraryScope, type BuilderLibrarySource, type BuilderLibrarySourceType, type BuilderLibraryTarget, type BuilderLibraryValidationOptions, type BuilderLibraryValidationResult, type BuilderLibraryViewer, type BuyerGiftClaim, CHAPTER_FLOW_FIELDS_SCHEMA_VERSION, CHAPTER_PROMOTION_ADAPTER, type Chapter, type ChapterApplication, type ChapterAuth, type ChapterBrand, type ChapterBuilderLibrary, type ChapterCommercialParityRecord, type ChapterCommercialParitySnapshot, type ChapterConfig, type ChapterCopy, type ChapterCopyInput, type ChapterDb, type ChapterEmailIdentity, type ChapterEmails, type ChapterFieldFlow, type ChapterFlowField, type ChapterFlowFieldContract, type ChapterIntegrationDescriptor, type ChapterIntegrationOptions, type ChapterMemberContent, type ChapterMode, type ChapterNetwork, type ChapterNetworkReader, type ChapterNetworkTarget, type ChapterOperations, type ChapterPipeline, type ChapterPolicy, type ChapterPrices, type ChapterPromotionInput, type ChapterRunbookHints, type ChapterScheduling, type ChapterSends, type ChapterSignupControl, type ChapterTier, type ChapterTierConfig, type ClerkInviteInput, type ClerkMetadataInput, type ClerkResult, type ClerkUserInput, type ClerkUserRecord, type CommercialIdentity, type CommercialObjectKind, type CommercialParityException, type CommercialParityExceptionKind, type CommercialParityPartition, type CommercialParityResult, type CompiledChapterBrandTokens, DEFAULT_CHAPTER_COPY, DEFAULT_SHARE_FIELDS, type DashboardMetricData, type DashboardMetricSeries, type DbOp, type DbRules, type DbSchema, type DeliveryDecision, type EffectiveMemberContent, type EffectiveMemberContentPage, type EmailGroup, type EmailTemplate, type EmailTemplateRow, type Entity, type ExistingMeeting, GIFT_OFFER_CATALOG_VERSION, type GiftOffer, type GiftOfferCatalog, type GiftOfferTarget, type GiftOfferValidation, type GuardResult, type IntegrationDescriptor, type IntegrationProvision, type IntegrationSecret, type IntegrationSetting, type IntegrationSync, JOURNEY_ENDINGS, JOURNEY_STAGES, type JoinConfigGroup, type JoinConfigTier, type JoinContinuation, type JourneyEnding, type JourneyStage, type LeaderCrmOptions, type LeaderFormationConfig, type LiveEvent, MAX_GIFT_OFFERS, MEMBERSHIP_PAGE_RENDERER, MEMBER_CONTENT_CONTROL_PATH, MEMBER_CONTENT_PATH, MEMBER_CONTENT_SCHEMA_VERSION, MEMBER_SELF_EDITABLE_FIELDS, MEMBER_SELF_READABLE_FIELDS, MEMBER_SYSTEM_AUTHORITY_MATRIX, MEMBER_SYSTEM_CONTRACT_VERSION, MEMBER_SYSTEM_RECOVERY_OBJECTIVES, type MailSender, type MeetingForReconcile, type MeetingRecord, type MeetingReschedulePatch, type MemberApplication, type MemberAuthorityValidation, type MemberContentDocument, type MemberContentEnvelope, type MemberContentPage, type MemberContentPageProjection, type MemberContentProjection, type MemberContentReceipt, type MemberContentRejection, type MemberContentSource, type MemberContentSourceType, type MemberContentTarget, type MemberContentTierAuthority, type MemberContentValidationOptions, type MemberContentValidationResult, type MemberContentViewer, type MemberFieldAuthority, type MemberFieldSelfAccess, type MemberFieldSensitivity, type MemberPageAudience, type MemberPageNavigation, type MemberPageUpsell, type MemberPageUpsellOffer, type MemberPageUpsellOverride, type MemberSession, type MemberStripeDisposition, type MemberStripeIdentity, type MemberStripeTarget, type MemberSystemAvailability, type MemberSystemAvailabilityInput, type MemberSystemEventReceiptInput, type MemberSystemEventReplayPlan, type MemberSystemMigrationPlan, type MemberSystemMigrationRow, type MemberSystemProjection, type MemberSystemRecoveryObjectives, type MemberSystemRollbackPlan, type MemberSystemScope, type MemberSystemWriteDisposition, type MemberSystemWriteIntent, type MemberSystemWriter, type MembershipPageDocument, type MembershipPageValidationOptions, type MembershipPageValidationResult, type MembershipTierAuthority, type MembershipTierCallout, type MembershipTierCapacity, type MembershipTierMarkdownResult, type MembershipTierPresentation, type MembershipTierVariant, type NetworkCommercialException, type NetworkCommercialFact, type NetworkCommercialProjectedRow, type NetworkCommercialProjection, type NetworkEditableField, type NetworkRecord, type NetworkRecordEdit, type NetworkRecordMutation, type NetworkRecordMutationResult, type NetworkRecordNote, type NetworkRecordPage, type NetworkRollup, type NetworkRollupTarget, type NetworkSharedNote, type NetworkSnapshot, type NetworkStageTransition, type NetworkTargetTransportStatus, type NewMeetingRow, type NotifyDeps, type NotifyInput, type NotifyResult, type PaymentsGroup, type ProjectionDeps, type PublicGiftOffer, REQUIRED_NOTICE_KINDS, type ReconcileDecision, type RequiredNoticeKind, type ResolvedApplication, type ResolvedAuth, type ResolvedBuilderLibrary, type ResolvedLeaderFormation, type ResolvedMemberContent, type ResolvedMemberPageUpsell, type ResolvedNetwork, type ResolvedNetworkReader, type ResolvedNetworkTarget, type ResolvedOperations, type ResolvedPipeline, type ResolvedScheduling, type ResolvedSends, type ResolvedSignupControl, type RoleChangeContext, type Rule, SCHEDULING_DEFAULTS, SIGNUP_CONTROL_PATH, SIGNUP_CONTROL_SCHEMA_VERSION, SIGNUP_CONTROL_THEME_MARKER, SIGNUP_CONTROL_THEME_STYLE_ID, SILVER_SALT_P0_FIXTURE, type SchedulingErrors, type SecretMode, type SecretStore, type SessionUser, type SharedBusiness, type SharedPerson, type SharedRecord, type SharedRecordV1, type SharedRecordV2, type SignupControlApplication, type SignupControlDocument, type SignupControlEnvelope, type SignupControlPolicy, type SignupControlReceipt, type SignupControlRejection, type SignupControlTheme, type SignupControlThemeHead, type SignupControlThemeMetadata, type SignupControlThemeOptions, type SignupControlThemeRevision, type SignupControlThemeStyleTarget, type SignupControlTier, type SignupControlValidation, type StripeEvent, type StripeResult, type SubmitResult, type TierGroup, type TierGroupRow, type WebhookEvent, applicantProfile, applicationBookingUpdate, applicationFlowFields, applicationSummary, applyMembershipTierMarkdown, backfillCrm, bookingDecision, brandTokens, bucketSeries, buildBuilderLibraryManifest, buildChapterCommercialParitySnapshot, buildGroupSeed, buildTierSeeds, builderLibraryDigest, canApprove, canBook, canChangeRole, canTransition, canViewBuilderLibraryResource, canceledPatch, canonicalBuilderLibrary, canonicalMemberContent, canonicalSignupControl, chapterBrandFromTokens, chapterDb, chapterFlowFieldContract, clampArray, classifyMemberStripeEvent, classifyMemberSystemWrite, clerkGetUser, clerkGetUserByEmail, clerkIntegration, clerkInviteRequest, clerkListUsers, clerkSetRole, clerkUserRequest, commercialParityDigest, composeMemberContent, createAdmissionGrantEnvelope, createBuilderLibraryEnvelope, createChapterIntegration, createClerkInvitation, createClerkUser, createMemberContentEnvelope, createSignupControlEnvelope, dashboardMetricData, defaultCrm, defineChapter, emailGroupFrom, endForSlot, exportChapterPromotion, findAdmissionGrant, findApplicationRef, findGiftOffer, findTier, firstPaymentPatch, formatChapterCopy, formationFields, formationFlowFields, getVaultSecret, giftOfferActive, hasDisclaimerAck, hydrateSignupControlTheme, injectSignupControlThemeHead, introIdempotencyKey, isAdminRole, isAlreadySent, isReconcilable, isSlotAvailable, isValidEmail, joinConfig, joinConfigTiers, leaderCrmConfig, listStripeObjects, loadLatestAdmissionRevision, loadOfferableTiers, loadTiers, materializeAdmissionGrants, meetingCreateRow, meetingRescheduleUpdate, memberApplication, memberContentDigest, memberContentDocument, memberSession, memberSystemAvailability, memberSystemRollbackPlan, membershipPageDocument, membershipTierPresentationFromMarkdown, networkCommercialSourceKey, networkSourceTag, normalizeAdmissionEmail, normalizeChapterEmail, normalizeNetworkCommercialStripeEvent, normalizeSharedRecord, normalizeWebhookEvent, offerableTiers, paymentsReady, personInputFromApp, planDelivery, planMemberSystemEventReplay, planMemberSystemMigration, projectApplicant, projectBuilderLibraryDelivery, projectMemberContent, projectMemberSelf, projectNetworkCommercialEvents, projectSharedRecord, promoteBuilderLibraryResource, publicGiftOffers, reconcileCommercialParitySnapshot, reconcileMeetings, reconcileStripeSnapshot, refundedPatch, render, renderSignupControlThemeHead, renderSummary, renderTemplateBody, renewalPatch, resolveApplication, resolveAuth, resolveBuilderLibrary, resolveChapterCopy, resolveJoinContinuation, resolveLeaderFormation, resolveMemberContent, resolveNetworkCommercialReadModel, resolveNetworkPersonRegistry, resolvePipeline, resolveScheduling, resolveSignupControl, resolveTiers, roleFromClaim, sendTemplated, sharedPersonInput, sharedRecordFromCrm, signupControlDigest, slotWindow, stageIndex, stripeCall, subAnnualCents, submitApplication, subscriptionIdempotencyKey, syncApplicationToCrm, tierIsFree, tierPayable, updateClerkUserMetadata, updateClerkUserMetadataByEmail, validateAdmissionGrantDocument, validateBuilderLibraryDocument, validateGiftOfferCatalog, validateMemberContentDocument, validateMemberSystemAuthority, validateMembershipPageDocument, validateScheduling, validateSignupControlDocument, webhookMutationId };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CrmConfig, Crm, FieldConditions, TypeDef, FieldType, TypeSummary, CrmRecord } from '@odla-ai/crm';
|
|
2
|
-
import { StripeRequestResult } from '@odla-ai/stripe';
|
|
2
|
+
import { StripeClient, StripeRequestResult } from '@odla-ai/stripe';
|
|
3
3
|
export { stripeForm, verifyStripeSignature } from '@odla-ai/stripe';
|
|
4
4
|
import { PromotionAdapterResult } from '@odla-ai/promotion';
|
|
5
5
|
|
|
@@ -236,6 +236,26 @@ interface ResolvedNetworkPersonRegistry {
|
|
|
236
236
|
chapterIds: readonly string[];
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
+
/** One exact Stripe event partition accepted by the network commercial shadow. */
|
|
240
|
+
interface NetworkCommercialSource {
|
|
241
|
+
appId: string;
|
|
242
|
+
chapterId: string;
|
|
243
|
+
environment: string;
|
|
244
|
+
dataEnvironment: string;
|
|
245
|
+
runtime: string;
|
|
246
|
+
stripeMode: "test" | "live";
|
|
247
|
+
}
|
|
248
|
+
/** Opt-in, read-only projection of a shared Stripe account. */
|
|
249
|
+
interface ChapterNetworkCommercialReadModel {
|
|
250
|
+
mode: "shadow";
|
|
251
|
+
sources: readonly NetworkCommercialSource[];
|
|
252
|
+
}
|
|
253
|
+
/** Validated settings carried by a resolved hub. */
|
|
254
|
+
interface ResolvedNetworkCommercialReadModel {
|
|
255
|
+
mode: "shadow";
|
|
256
|
+
sources: readonly NetworkCommercialSource[];
|
|
257
|
+
}
|
|
258
|
+
|
|
239
259
|
/** Scalar kinds accepted by the Chapter schema adapter. */
|
|
240
260
|
type AttrType = "string" | "number" | "boolean" | "json";
|
|
241
261
|
/** One odla-db attribute: its type and index/uniqueness/optionality flags. */
|
|
@@ -298,6 +318,10 @@ interface ChapterNetworkTarget {
|
|
|
298
318
|
/** Allow package-owned desired admission decisions for existing leader CRM
|
|
299
319
|
* people to be delivered to this target. Omitted means default deny. */
|
|
300
320
|
admissionGrants?: boolean;
|
|
321
|
+
/** Allow this leader to request a PII-free commercial parity snapshot from
|
|
322
|
+
* this follower. The follower must independently enable the same reader;
|
|
323
|
+
* omitted means no application or Stripe identifier digest crosses. */
|
|
324
|
+
commercialParity?: boolean;
|
|
301
325
|
}
|
|
302
326
|
/** One signed peer allowed to browse a privacy-bounded projection of this
|
|
303
327
|
* site's CRM. The follower owns this allowlist; a leader target declaration
|
|
@@ -322,6 +346,9 @@ interface ChapterNetworkReader {
|
|
|
322
346
|
/** Accept signed desired admission decisions from this reader. Independent
|
|
323
347
|
* of record browsing; an admission-only reader may omit `fields`. */
|
|
324
348
|
admissionGrants?: boolean;
|
|
349
|
+
/** Disclose a bounded, PII-free commercial parity snapshot to this signed
|
|
350
|
+
* reader. Identifiers leave only as edge-keyed, domain-separated HMACs. */
|
|
351
|
+
commercialParity?: boolean;
|
|
325
352
|
}
|
|
326
353
|
/** Leader/follower network configuration. A follower needs no code config to
|
|
327
354
|
* receive pushed records. It must explicitly declare `readers` before any peer
|
|
@@ -367,6 +394,7 @@ interface ResolvedNetworkTarget {
|
|
|
367
394
|
editableFields: Record<string, readonly string[]>;
|
|
368
395
|
stageTransitions: readonly string[];
|
|
369
396
|
admissionGrants?: boolean;
|
|
397
|
+
commercialParity?: boolean;
|
|
370
398
|
}
|
|
371
399
|
/** A validated follower-owned record projection for one signed reader. */
|
|
372
400
|
interface ResolvedNetworkReader {
|
|
@@ -376,6 +404,7 @@ interface ResolvedNetworkReader {
|
|
|
376
404
|
editableFields: Record<string, readonly string[]>;
|
|
377
405
|
stageTransitions: readonly string[];
|
|
378
406
|
admissionGrants?: boolean;
|
|
407
|
+
commercialParity?: boolean;
|
|
379
408
|
}
|
|
380
409
|
/** Fully-resolved leader network configuration. */
|
|
381
410
|
interface ResolvedNetwork {
|
|
@@ -700,6 +729,8 @@ interface ChapterConfig {
|
|
|
700
729
|
/** Network-scoped canonical Person registry. Shadow mode is additive only:
|
|
701
730
|
* Chapter workflows and access continue to read their existing authority. */
|
|
702
731
|
networkPersonRegistry?: ChapterNetworkPersonRegistry;
|
|
732
|
+
/** Read-only, rebuildable commercial projection from a shared Stripe account. */
|
|
733
|
+
networkCommercialReadModel?: ChapterNetworkCommercialReadModel;
|
|
703
734
|
/** Enable a public, host-rendered formation application workflow. */
|
|
704
735
|
formation?: LeaderFormationConfig;
|
|
705
736
|
thesis?: unknown;
|
|
@@ -802,6 +833,8 @@ interface Chapter {
|
|
|
802
833
|
builderLibrary: ResolvedBuilderLibrary | null;
|
|
803
834
|
/** Null unless this hub explicitly enables the shadow Person registry. */
|
|
804
835
|
networkPersonRegistry: ResolvedNetworkPersonRegistry | null;
|
|
836
|
+
/** Null unless this hub explicitly enables the commercial shadow. */
|
|
837
|
+
networkCommercialReadModel: ResolvedNetworkCommercialReadModel | null;
|
|
805
838
|
/** Resolved public formation intake contract (disabled when omitted). */
|
|
806
839
|
formation: ResolvedLeaderFormation;
|
|
807
840
|
/** Resolved CRM engine (from `defineCrm`). */
|
|
@@ -847,6 +880,191 @@ declare function resolveBuilderLibrary(mode: ChapterMode, input: ChapterBuilderL
|
|
|
847
880
|
/** Validate the opt-in, hub-only shadow Person registry. */
|
|
848
881
|
declare function resolveNetworkPersonRegistry(mode: ChapterMode, input: ChapterNetworkPersonRegistry | undefined, targetIds: readonly string[]): ResolvedNetworkPersonRegistry | null;
|
|
849
882
|
|
|
883
|
+
/** Stable, PII-free identity for one accepted Stripe partition. */
|
|
884
|
+
declare function networkCommercialSourceKey(source: NetworkCommercialSource): string;
|
|
885
|
+
/** Validate the opt-in hub-only commercial shadow. */
|
|
886
|
+
declare function resolveNetworkCommercialReadModel(mode: ChapterMode, input: ChapterNetworkCommercialReadModel | undefined, targetIds: readonly string[]): ResolvedNetworkCommercialReadModel | null;
|
|
887
|
+
|
|
888
|
+
/** Stripe metadata fields used to bind one fact to an exact configured source. */
|
|
889
|
+
interface CommercialIdentity {
|
|
890
|
+
appId?: string;
|
|
891
|
+
chapterId?: string;
|
|
892
|
+
environment?: string;
|
|
893
|
+
dataEnvironment?: string;
|
|
894
|
+
runtime?: string;
|
|
895
|
+
}
|
|
896
|
+
/** Provider object categories materialized by the network commercial shadow. */
|
|
897
|
+
type CommercialObjectKind = "customer" | "subscription" | "invoice" | "refund";
|
|
898
|
+
/** One verified, allowlisted, PII-free Stripe event fact retained for replay. */
|
|
899
|
+
interface NetworkCommercialFact {
|
|
900
|
+
eventId: string;
|
|
901
|
+
digest: string;
|
|
902
|
+
eventType: string;
|
|
903
|
+
eventCreated: number;
|
|
904
|
+
livemode: boolean;
|
|
905
|
+
objectKind: CommercialObjectKind | "ignored";
|
|
906
|
+
objectId: string;
|
|
907
|
+
identity: CommercialIdentity;
|
|
908
|
+
applicationId?: string;
|
|
909
|
+
personId?: string;
|
|
910
|
+
membershipId?: string;
|
|
911
|
+
customerId?: string;
|
|
912
|
+
subscriptionId?: string;
|
|
913
|
+
invoiceId?: string;
|
|
914
|
+
chargeId?: string;
|
|
915
|
+
paymentIntentId?: string;
|
|
916
|
+
priceId?: string;
|
|
917
|
+
quantity?: number;
|
|
918
|
+
status?: string;
|
|
919
|
+
currency?: string;
|
|
920
|
+
amountCents?: number;
|
|
921
|
+
amountPaidCents?: number;
|
|
922
|
+
amountRemainingCents?: number;
|
|
923
|
+
currentPeriodStart?: number;
|
|
924
|
+
currentPeriodEnd?: number;
|
|
925
|
+
cancelAtPeriodEnd?: boolean;
|
|
926
|
+
}
|
|
927
|
+
/** Current provider object state with the exact network source that owns it. */
|
|
928
|
+
interface NetworkCommercialProjectedRow extends NetworkCommercialFact {
|
|
929
|
+
sourceKey: string;
|
|
930
|
+
}
|
|
931
|
+
/** Reviewable reason that a verified fact was not safely incorporated. */
|
|
932
|
+
interface NetworkCommercialException {
|
|
933
|
+
eventId: string;
|
|
934
|
+
kind: "collision" | "unsupported" | "unmatched_partition" | "ambiguous_partition" | "wrong_partition" | "charge_refund_without_refund_object";
|
|
935
|
+
sourceKey?: string;
|
|
936
|
+
detail: {
|
|
937
|
+
eventType: string;
|
|
938
|
+
objectId: string;
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
/** Complete deterministic view rebuilt from the append-only commercial event log. */
|
|
942
|
+
interface NetworkCommercialProjection {
|
|
943
|
+
customers: NetworkCommercialProjectedRow[];
|
|
944
|
+
subscriptions: NetworkCommercialProjectedRow[];
|
|
945
|
+
invoices: NetworkCommercialProjectedRow[];
|
|
946
|
+
refunds: NetworkCommercialProjectedRow[];
|
|
947
|
+
exceptions: NetworkCommercialException[];
|
|
948
|
+
totals: Array<{
|
|
949
|
+
sourceKey: string;
|
|
950
|
+
currency: string;
|
|
951
|
+
paidCents: number;
|
|
952
|
+
refundedCents: number;
|
|
953
|
+
netCents: number;
|
|
954
|
+
}>;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
type Raw = Record<string, unknown>;
|
|
958
|
+
interface StripeObjectSnapshot {
|
|
959
|
+
objects: Raw[];
|
|
960
|
+
complete: boolean;
|
|
961
|
+
}
|
|
962
|
+
interface StripeCommercialReconciliation {
|
|
963
|
+
ok: boolean;
|
|
964
|
+
complete: boolean;
|
|
965
|
+
ignoredObjects: number;
|
|
966
|
+
exceptions: Array<{
|
|
967
|
+
kind: "missing_from_stripe" | "missing_from_shadow" | "object_mismatch" | "totals_mismatch" | "stripe_snapshot_truncated";
|
|
968
|
+
sourceKey?: string;
|
|
969
|
+
objectKind?: string;
|
|
970
|
+
providerId?: string;
|
|
971
|
+
detail: Record<string, unknown>;
|
|
972
|
+
}>;
|
|
973
|
+
stripeTotals: NetworkCommercialProjection["totals"];
|
|
974
|
+
}
|
|
975
|
+
/** Read a bounded current-object snapshot through the typed Stripe client. */
|
|
976
|
+
declare function listStripeObjects(client: StripeClient, path: string, params?: Record<string, unknown>, maxPages?: number): Promise<StripeObjectSnapshot>;
|
|
977
|
+
/** Compare the event shadow with an independent current-object Stripe read. */
|
|
978
|
+
declare function reconcileStripeSnapshot(shadow: NetworkCommercialProjection, snapshots: {
|
|
979
|
+
customers: StripeObjectSnapshot;
|
|
980
|
+
subscriptions: StripeObjectSnapshot;
|
|
981
|
+
invoices: StripeObjectSnapshot;
|
|
982
|
+
refunds: StripeObjectSnapshot;
|
|
983
|
+
}, sources: readonly NetworkCommercialSource[]): StripeCommercialReconciliation;
|
|
984
|
+
|
|
985
|
+
/** Reduce a verified Stripe event to a bounded, PII-free fact. */
|
|
986
|
+
declare function normalizeNetworkCommercialStripeEvent(input: unknown, digest: string): NetworkCommercialFact;
|
|
987
|
+
/** Deterministically rebuild the network commercial projection from its event log. */
|
|
988
|
+
declare function projectNetworkCommercialEvents(input: readonly NetworkCommercialFact[], sources: readonly NetworkCommercialSource[]): NetworkCommercialProjection;
|
|
989
|
+
|
|
990
|
+
type Row = Record<string, unknown>;
|
|
991
|
+
/** Exact chapter/runtime partition that binds every parity digest. */
|
|
992
|
+
interface CommercialParityPartition {
|
|
993
|
+
appId: string;
|
|
994
|
+
chapterId: string;
|
|
995
|
+
environment: string;
|
|
996
|
+
dataEnvironment: string;
|
|
997
|
+
runtime: string;
|
|
998
|
+
}
|
|
999
|
+
/** PII-free chapter membership identity and lifecycle disclosure. */
|
|
1000
|
+
interface ChapterCommercialParityRecord {
|
|
1001
|
+
applicationDigest: string;
|
|
1002
|
+
customerDigest: string | null;
|
|
1003
|
+
subscriptionDigest: string | null;
|
|
1004
|
+
status: string | null;
|
|
1005
|
+
canceled: boolean;
|
|
1006
|
+
}
|
|
1007
|
+
/** Bounded, signed-response payload produced by an opted-in chapter. */
|
|
1008
|
+
interface ChapterCommercialParitySnapshot {
|
|
1009
|
+
version: 1;
|
|
1010
|
+
site: {
|
|
1011
|
+
id: string;
|
|
1012
|
+
};
|
|
1013
|
+
partition: CommercialParityPartition;
|
|
1014
|
+
generatedAt: number;
|
|
1015
|
+
complete: boolean;
|
|
1016
|
+
truncated: boolean;
|
|
1017
|
+
counts: {
|
|
1018
|
+
scanned: number;
|
|
1019
|
+
eligible: number;
|
|
1020
|
+
returned: number;
|
|
1021
|
+
};
|
|
1022
|
+
records: ChapterCommercialParityRecord[];
|
|
1023
|
+
}
|
|
1024
|
+
/** Reconciliation exception categories that never expose raw identifiers. */
|
|
1025
|
+
type CommercialParityExceptionKind = "chapter_only" | "shadow_only" | "cancellation_mismatch" | "chapter_truncated" | "count_mismatch";
|
|
1026
|
+
/** One privacy-preserving mismatch between a chapter and its Stripe shadow. */
|
|
1027
|
+
interface CommercialParityException {
|
|
1028
|
+
kind: CommercialParityExceptionKind;
|
|
1029
|
+
applicationDigest?: string;
|
|
1030
|
+
detail: Record<string, string | number | boolean | null>;
|
|
1031
|
+
}
|
|
1032
|
+
/** Read-only result of comparing one chapter snapshot with one exact shadow partition. */
|
|
1033
|
+
interface CommercialParityResult {
|
|
1034
|
+
ok: boolean;
|
|
1035
|
+
complete: boolean;
|
|
1036
|
+
counts: {
|
|
1037
|
+
chapter: number;
|
|
1038
|
+
shadow: number;
|
|
1039
|
+
matched: number;
|
|
1040
|
+
};
|
|
1041
|
+
records: Array<ChapterCommercialParityRecord & {
|
|
1042
|
+
stripeStatus: string | null;
|
|
1043
|
+
stripeCanceled: boolean;
|
|
1044
|
+
}>;
|
|
1045
|
+
exceptions: CommercialParityException[];
|
|
1046
|
+
}
|
|
1047
|
+
/** Edge-keyed, domain-separated digest. Raw identifiers never enter a response. */
|
|
1048
|
+
declare function commercialParityDigest(secret: string, partition: CommercialParityPartition, kind: "application" | "customer" | "subscription", value: string): Promise<string>;
|
|
1049
|
+
/** Build the bounded disclosure from already-bounded local application rows. */
|
|
1050
|
+
declare function buildChapterCommercialParitySnapshot(input: {
|
|
1051
|
+
rows: readonly Row[];
|
|
1052
|
+
secret: string;
|
|
1053
|
+
partition: CommercialParityPartition;
|
|
1054
|
+
siteId: string;
|
|
1055
|
+
scanned: number;
|
|
1056
|
+
scanTruncated: boolean;
|
|
1057
|
+
maxRecords?: number;
|
|
1058
|
+
now?: number;
|
|
1059
|
+
}): Promise<ChapterCommercialParitySnapshot>;
|
|
1060
|
+
/** Compare one follower disclosure to the matching Stripe shadow partition. */
|
|
1061
|
+
declare function reconcileCommercialParitySnapshot(input: {
|
|
1062
|
+
projection: NetworkCommercialProjection;
|
|
1063
|
+
source: NetworkCommercialSource;
|
|
1064
|
+
snapshot: ChapterCommercialParitySnapshot;
|
|
1065
|
+
secret: string;
|
|
1066
|
+
}): Promise<CommercialParityResult>;
|
|
1067
|
+
|
|
850
1068
|
/** Options for {@link leaderCrmConfig}. */
|
|
851
1069
|
interface LeaderCrmOptions {
|
|
852
1070
|
/** Existing host CRM config to preserve. Defaults to Chapter's people +
|
|
@@ -986,7 +1204,7 @@ declare function createChapterIntegration(chapter: Chapter, options?: ChapterInt
|
|
|
986
1204
|
* chapter therefore emits the reference namespace set — `applications`,
|
|
987
1205
|
* `groups`, `meetings`, `emailLog`, `stripeEventReceipts`, `superAdmins` — with
|
|
988
1206
|
* no `admins` table. */
|
|
989
|
-
declare function chapterDb(mode: ChapterMode, auth: ResolvedAuth, includeNetworkNotes?: boolean, application?: ResolvedApplication, includeSignupControl?: boolean, includeMemberContent?: boolean, includeBuilderLibrary?: boolean, includeLeaderAdmissions?: boolean, includeNetworkPersonRegistry?: boolean): {
|
|
1207
|
+
declare function chapterDb(mode: ChapterMode, auth: ResolvedAuth, includeNetworkNotes?: boolean, application?: ResolvedApplication, includeSignupControl?: boolean, includeMemberContent?: boolean, includeBuilderLibrary?: boolean, includeLeaderAdmissions?: boolean, includeNetworkPersonRegistry?: boolean, includeNetworkCommercialReadModel?: boolean): {
|
|
990
1208
|
schema: DbSchema;
|
|
991
1209
|
rules: DbRules;
|
|
992
1210
|
};
|
|
@@ -3139,4 +3357,4 @@ declare const SILVER_SALT_P0_FIXTURE: {
|
|
|
3139
3357
|
};
|
|
3140
3358
|
};
|
|
3141
3359
|
|
|
3142
|
-
export { ADMISSION_GRANTS_PATH, ADMISSION_GRANTS_SCHEMA_VERSION, type AccountModel, type AdminNotificationTrigger, type AdmissionDecision, type AdmissionGrantDocument, type AdmissionGrantEnvelope, type AdmissionGrantInput, type AdmissionGrantReceipt, type AdmissionGrantRejection, type AdmissionGrantRevisionRow, type AdmissionGrantRow, type AdmissionGrantValidation, type Applicant, type ApplicationBookingPatch, type ApplicationRecord, type ApplicationSummary, type Attr, type AttrType, BUILDER_LIBRARY_ADMIN_PATH, BUILDER_LIBRARY_CONTROL_PATH, BUILDER_LIBRARY_MANIFEST_PATH, BUILDER_LIBRARY_PROMOTE_PATH, BUILDER_LIBRARY_SCHEMA_VERSION, type BuilderLibraryBrandAssetRef, type BuilderLibraryDocument, type BuilderLibraryEnvelope, type BuilderLibraryManifest, type BuilderLibraryPromotionProvenance, type BuilderLibraryReceipt, type BuilderLibraryResource, type BuilderLibraryResourceKind, type BuilderLibraryResourceProvenance, type BuilderLibraryResourceStatus, type BuilderLibraryScope, type BuilderLibrarySource, type BuilderLibrarySourceType, type BuilderLibraryTarget, type BuilderLibraryValidationOptions, type BuilderLibraryValidationResult, type BuilderLibraryViewer, type BuyerGiftClaim, CHAPTER_FLOW_FIELDS_SCHEMA_VERSION, CHAPTER_PROMOTION_ADAPTER, type Chapter, type ChapterApplication, type ChapterAuth, type ChapterBrand, type ChapterBuilderLibrary, type ChapterConfig, type ChapterCopy, type ChapterCopyInput, type ChapterDb, type ChapterEmailIdentity, type ChapterEmails, type ChapterFieldFlow, type ChapterFlowField, type ChapterFlowFieldContract, type ChapterIntegrationDescriptor, type ChapterIntegrationOptions, type ChapterMemberContent, type ChapterMode, type ChapterNetwork, type ChapterNetworkReader, type ChapterNetworkTarget, type ChapterOperations, type ChapterPipeline, type ChapterPolicy, type ChapterPrices, type ChapterPromotionInput, type ChapterRunbookHints, type ChapterScheduling, type ChapterSends, type ChapterSignupControl, type ChapterTier, type ChapterTierConfig, type ClerkInviteInput, type ClerkMetadataInput, type ClerkResult, type ClerkUserInput, type ClerkUserRecord, type CompiledChapterBrandTokens, DEFAULT_CHAPTER_COPY, DEFAULT_SHARE_FIELDS, type DashboardMetricData, type DashboardMetricSeries, type DbOp, type DbRules, type DbSchema, type DeliveryDecision, type EffectiveMemberContent, type EffectiveMemberContentPage, type EmailGroup, type EmailTemplate, type EmailTemplateRow, type Entity, type ExistingMeeting, GIFT_OFFER_CATALOG_VERSION, type GiftOffer, type GiftOfferCatalog, type GiftOfferTarget, type GiftOfferValidation, type GuardResult, type IntegrationDescriptor, type IntegrationProvision, type IntegrationSecret, type IntegrationSetting, type IntegrationSync, JOURNEY_ENDINGS, JOURNEY_STAGES, type JoinConfigGroup, type JoinConfigTier, type JoinContinuation, type JourneyEnding, type JourneyStage, type LeaderCrmOptions, type LeaderFormationConfig, type LiveEvent, MAX_GIFT_OFFERS, MEMBERSHIP_PAGE_RENDERER, MEMBER_CONTENT_CONTROL_PATH, MEMBER_CONTENT_PATH, MEMBER_CONTENT_SCHEMA_VERSION, MEMBER_SELF_EDITABLE_FIELDS, MEMBER_SELF_READABLE_FIELDS, MEMBER_SYSTEM_AUTHORITY_MATRIX, MEMBER_SYSTEM_CONTRACT_VERSION, MEMBER_SYSTEM_RECOVERY_OBJECTIVES, type MailSender, type MeetingForReconcile, type MeetingRecord, type MeetingReschedulePatch, type MemberApplication, type MemberAuthorityValidation, type MemberContentDocument, type MemberContentEnvelope, type MemberContentPage, type MemberContentPageProjection, type MemberContentProjection, type MemberContentReceipt, type MemberContentRejection, type MemberContentSource, type MemberContentSourceType, type MemberContentTarget, type MemberContentTierAuthority, type MemberContentValidationOptions, type MemberContentValidationResult, type MemberContentViewer, type MemberFieldAuthority, type MemberFieldSelfAccess, type MemberFieldSensitivity, type MemberPageAudience, type MemberPageNavigation, type MemberPageUpsell, type MemberPageUpsellOffer, type MemberPageUpsellOverride, type MemberSession, type MemberStripeDisposition, type MemberStripeIdentity, type MemberStripeTarget, type MemberSystemAvailability, type MemberSystemAvailabilityInput, type MemberSystemEventReceiptInput, type MemberSystemEventReplayPlan, type MemberSystemMigrationPlan, type MemberSystemMigrationRow, type MemberSystemProjection, type MemberSystemRecoveryObjectives, type MemberSystemRollbackPlan, type MemberSystemScope, type MemberSystemWriteDisposition, type MemberSystemWriteIntent, type MemberSystemWriter, type MembershipPageDocument, type MembershipPageValidationOptions, type MembershipPageValidationResult, type MembershipTierAuthority, type MembershipTierCallout, type MembershipTierCapacity, type MembershipTierMarkdownResult, type MembershipTierPresentation, type MembershipTierVariant, type NetworkEditableField, type NetworkRecord, type NetworkRecordEdit, type NetworkRecordMutation, type NetworkRecordMutationResult, type NetworkRecordNote, type NetworkRecordPage, type NetworkRollup, type NetworkRollupTarget, type NetworkSharedNote, type NetworkSnapshot, type NetworkStageTransition, type NetworkTargetTransportStatus, type NewMeetingRow, type NotifyDeps, type NotifyInput, type NotifyResult, type PaymentsGroup, type ProjectionDeps, type PublicGiftOffer, REQUIRED_NOTICE_KINDS, type ReconcileDecision, type RequiredNoticeKind, type ResolvedApplication, type ResolvedAuth, type ResolvedBuilderLibrary, type ResolvedLeaderFormation, type ResolvedMemberContent, type ResolvedMemberPageUpsell, type ResolvedNetwork, type ResolvedNetworkReader, type ResolvedNetworkTarget, type ResolvedOperations, type ResolvedPipeline, type ResolvedScheduling, type ResolvedSends, type ResolvedSignupControl, type RoleChangeContext, type Rule, SCHEDULING_DEFAULTS, SIGNUP_CONTROL_PATH, SIGNUP_CONTROL_SCHEMA_VERSION, SIGNUP_CONTROL_THEME_MARKER, SIGNUP_CONTROL_THEME_STYLE_ID, SILVER_SALT_P0_FIXTURE, type SchedulingErrors, type SecretMode, type SecretStore, type SessionUser, type SharedBusiness, type SharedPerson, type SharedRecord, type SharedRecordV1, type SharedRecordV2, type SignupControlApplication, type SignupControlDocument, type SignupControlEnvelope, type SignupControlPolicy, type SignupControlReceipt, type SignupControlRejection, type SignupControlTheme, type SignupControlThemeHead, type SignupControlThemeMetadata, type SignupControlThemeOptions, type SignupControlThemeRevision, type SignupControlThemeStyleTarget, type SignupControlTier, type SignupControlValidation, type StripeEvent, type StripeResult, type SubmitResult, type TierGroup, type TierGroupRow, type WebhookEvent, applicantProfile, applicationBookingUpdate, applicationFlowFields, applicationSummary, applyMembershipTierMarkdown, backfillCrm, bookingDecision, brandTokens, bucketSeries, buildBuilderLibraryManifest, buildGroupSeed, buildTierSeeds, builderLibraryDigest, canApprove, canBook, canChangeRole, canTransition, canViewBuilderLibraryResource, canceledPatch, canonicalBuilderLibrary, canonicalMemberContent, canonicalSignupControl, chapterBrandFromTokens, chapterDb, chapterFlowFieldContract, clampArray, classifyMemberStripeEvent, classifyMemberSystemWrite, clerkGetUser, clerkGetUserByEmail, clerkIntegration, clerkInviteRequest, clerkListUsers, clerkSetRole, clerkUserRequest, composeMemberContent, createAdmissionGrantEnvelope, createBuilderLibraryEnvelope, createChapterIntegration, createClerkInvitation, createClerkUser, createMemberContentEnvelope, createSignupControlEnvelope, dashboardMetricData, defaultCrm, defineChapter, emailGroupFrom, endForSlot, exportChapterPromotion, findAdmissionGrant, findApplicationRef, findGiftOffer, findTier, firstPaymentPatch, formatChapterCopy, formationFields, formationFlowFields, getVaultSecret, giftOfferActive, hasDisclaimerAck, hydrateSignupControlTheme, injectSignupControlThemeHead, introIdempotencyKey, isAdminRole, isAlreadySent, isReconcilable, isSlotAvailable, isValidEmail, joinConfig, joinConfigTiers, leaderCrmConfig, loadLatestAdmissionRevision, loadOfferableTiers, loadTiers, materializeAdmissionGrants, meetingCreateRow, meetingRescheduleUpdate, memberApplication, memberContentDigest, memberContentDocument, memberSession, memberSystemAvailability, memberSystemRollbackPlan, membershipPageDocument, membershipTierPresentationFromMarkdown, networkSourceTag, normalizeAdmissionEmail, normalizeChapterEmail, normalizeSharedRecord, normalizeWebhookEvent, offerableTiers, paymentsReady, personInputFromApp, planDelivery, planMemberSystemEventReplay, planMemberSystemMigration, projectApplicant, projectBuilderLibraryDelivery, projectMemberContent, projectMemberSelf, projectSharedRecord, promoteBuilderLibraryResource, publicGiftOffers, reconcileMeetings, refundedPatch, render, renderSignupControlThemeHead, renderSummary, renderTemplateBody, renewalPatch, resolveApplication, resolveAuth, resolveBuilderLibrary, resolveChapterCopy, resolveJoinContinuation, resolveLeaderFormation, resolveMemberContent, resolveNetworkPersonRegistry, resolvePipeline, resolveScheduling, resolveSignupControl, resolveTiers, roleFromClaim, sendTemplated, sharedPersonInput, sharedRecordFromCrm, signupControlDigest, slotWindow, stageIndex, stripeCall, subAnnualCents, submitApplication, subscriptionIdempotencyKey, syncApplicationToCrm, tierIsFree, tierPayable, updateClerkUserMetadata, updateClerkUserMetadataByEmail, validateAdmissionGrantDocument, validateBuilderLibraryDocument, validateGiftOfferCatalog, validateMemberContentDocument, validateMemberSystemAuthority, validateMembershipPageDocument, validateScheduling, validateSignupControlDocument, webhookMutationId };
|
|
3360
|
+
export { ADMISSION_GRANTS_PATH, ADMISSION_GRANTS_SCHEMA_VERSION, type AccountModel, type AdminNotificationTrigger, type AdmissionDecision, type AdmissionGrantDocument, type AdmissionGrantEnvelope, type AdmissionGrantInput, type AdmissionGrantReceipt, type AdmissionGrantRejection, type AdmissionGrantRevisionRow, type AdmissionGrantRow, type AdmissionGrantValidation, type Applicant, type ApplicationBookingPatch, type ApplicationRecord, type ApplicationSummary, type Attr, type AttrType, BUILDER_LIBRARY_ADMIN_PATH, BUILDER_LIBRARY_CONTROL_PATH, BUILDER_LIBRARY_MANIFEST_PATH, BUILDER_LIBRARY_PROMOTE_PATH, BUILDER_LIBRARY_SCHEMA_VERSION, type BuilderLibraryBrandAssetRef, type BuilderLibraryDocument, type BuilderLibraryEnvelope, type BuilderLibraryManifest, type BuilderLibraryPromotionProvenance, type BuilderLibraryReceipt, type BuilderLibraryResource, type BuilderLibraryResourceKind, type BuilderLibraryResourceProvenance, type BuilderLibraryResourceStatus, type BuilderLibraryScope, type BuilderLibrarySource, type BuilderLibrarySourceType, type BuilderLibraryTarget, type BuilderLibraryValidationOptions, type BuilderLibraryValidationResult, type BuilderLibraryViewer, type BuyerGiftClaim, CHAPTER_FLOW_FIELDS_SCHEMA_VERSION, CHAPTER_PROMOTION_ADAPTER, type Chapter, type ChapterApplication, type ChapterAuth, type ChapterBrand, type ChapterBuilderLibrary, type ChapterCommercialParityRecord, type ChapterCommercialParitySnapshot, type ChapterConfig, type ChapterCopy, type ChapterCopyInput, type ChapterDb, type ChapterEmailIdentity, type ChapterEmails, type ChapterFieldFlow, type ChapterFlowField, type ChapterFlowFieldContract, type ChapterIntegrationDescriptor, type ChapterIntegrationOptions, type ChapterMemberContent, type ChapterMode, type ChapterNetwork, type ChapterNetworkReader, type ChapterNetworkTarget, type ChapterOperations, type ChapterPipeline, type ChapterPolicy, type ChapterPrices, type ChapterPromotionInput, type ChapterRunbookHints, type ChapterScheduling, type ChapterSends, type ChapterSignupControl, type ChapterTier, type ChapterTierConfig, type ClerkInviteInput, type ClerkMetadataInput, type ClerkResult, type ClerkUserInput, type ClerkUserRecord, type CommercialIdentity, type CommercialObjectKind, type CommercialParityException, type CommercialParityExceptionKind, type CommercialParityPartition, type CommercialParityResult, type CompiledChapterBrandTokens, DEFAULT_CHAPTER_COPY, DEFAULT_SHARE_FIELDS, type DashboardMetricData, type DashboardMetricSeries, type DbOp, type DbRules, type DbSchema, type DeliveryDecision, type EffectiveMemberContent, type EffectiveMemberContentPage, type EmailGroup, type EmailTemplate, type EmailTemplateRow, type Entity, type ExistingMeeting, GIFT_OFFER_CATALOG_VERSION, type GiftOffer, type GiftOfferCatalog, type GiftOfferTarget, type GiftOfferValidation, type GuardResult, type IntegrationDescriptor, type IntegrationProvision, type IntegrationSecret, type IntegrationSetting, type IntegrationSync, JOURNEY_ENDINGS, JOURNEY_STAGES, type JoinConfigGroup, type JoinConfigTier, type JoinContinuation, type JourneyEnding, type JourneyStage, type LeaderCrmOptions, type LeaderFormationConfig, type LiveEvent, MAX_GIFT_OFFERS, MEMBERSHIP_PAGE_RENDERER, MEMBER_CONTENT_CONTROL_PATH, MEMBER_CONTENT_PATH, MEMBER_CONTENT_SCHEMA_VERSION, MEMBER_SELF_EDITABLE_FIELDS, MEMBER_SELF_READABLE_FIELDS, MEMBER_SYSTEM_AUTHORITY_MATRIX, MEMBER_SYSTEM_CONTRACT_VERSION, MEMBER_SYSTEM_RECOVERY_OBJECTIVES, type MailSender, type MeetingForReconcile, type MeetingRecord, type MeetingReschedulePatch, type MemberApplication, type MemberAuthorityValidation, type MemberContentDocument, type MemberContentEnvelope, type MemberContentPage, type MemberContentPageProjection, type MemberContentProjection, type MemberContentReceipt, type MemberContentRejection, type MemberContentSource, type MemberContentSourceType, type MemberContentTarget, type MemberContentTierAuthority, type MemberContentValidationOptions, type MemberContentValidationResult, type MemberContentViewer, type MemberFieldAuthority, type MemberFieldSelfAccess, type MemberFieldSensitivity, type MemberPageAudience, type MemberPageNavigation, type MemberPageUpsell, type MemberPageUpsellOffer, type MemberPageUpsellOverride, type MemberSession, type MemberStripeDisposition, type MemberStripeIdentity, type MemberStripeTarget, type MemberSystemAvailability, type MemberSystemAvailabilityInput, type MemberSystemEventReceiptInput, type MemberSystemEventReplayPlan, type MemberSystemMigrationPlan, type MemberSystemMigrationRow, type MemberSystemProjection, type MemberSystemRecoveryObjectives, type MemberSystemRollbackPlan, type MemberSystemScope, type MemberSystemWriteDisposition, type MemberSystemWriteIntent, type MemberSystemWriter, type MembershipPageDocument, type MembershipPageValidationOptions, type MembershipPageValidationResult, type MembershipTierAuthority, type MembershipTierCallout, type MembershipTierCapacity, type MembershipTierMarkdownResult, type MembershipTierPresentation, type MembershipTierVariant, type NetworkCommercialException, type NetworkCommercialFact, type NetworkCommercialProjectedRow, type NetworkCommercialProjection, type NetworkEditableField, type NetworkRecord, type NetworkRecordEdit, type NetworkRecordMutation, type NetworkRecordMutationResult, type NetworkRecordNote, type NetworkRecordPage, type NetworkRollup, type NetworkRollupTarget, type NetworkSharedNote, type NetworkSnapshot, type NetworkStageTransition, type NetworkTargetTransportStatus, type NewMeetingRow, type NotifyDeps, type NotifyInput, type NotifyResult, type PaymentsGroup, type ProjectionDeps, type PublicGiftOffer, REQUIRED_NOTICE_KINDS, type ReconcileDecision, type RequiredNoticeKind, type ResolvedApplication, type ResolvedAuth, type ResolvedBuilderLibrary, type ResolvedLeaderFormation, type ResolvedMemberContent, type ResolvedMemberPageUpsell, type ResolvedNetwork, type ResolvedNetworkReader, type ResolvedNetworkTarget, type ResolvedOperations, type ResolvedPipeline, type ResolvedScheduling, type ResolvedSends, type ResolvedSignupControl, type RoleChangeContext, type Rule, SCHEDULING_DEFAULTS, SIGNUP_CONTROL_PATH, SIGNUP_CONTROL_SCHEMA_VERSION, SIGNUP_CONTROL_THEME_MARKER, SIGNUP_CONTROL_THEME_STYLE_ID, SILVER_SALT_P0_FIXTURE, type SchedulingErrors, type SecretMode, type SecretStore, type SessionUser, type SharedBusiness, type SharedPerson, type SharedRecord, type SharedRecordV1, type SharedRecordV2, type SignupControlApplication, type SignupControlDocument, type SignupControlEnvelope, type SignupControlPolicy, type SignupControlReceipt, type SignupControlRejection, type SignupControlTheme, type SignupControlThemeHead, type SignupControlThemeMetadata, type SignupControlThemeOptions, type SignupControlThemeRevision, type SignupControlThemeStyleTarget, type SignupControlTier, type SignupControlValidation, type StripeEvent, type StripeResult, type SubmitResult, type TierGroup, type TierGroupRow, type WebhookEvent, applicantProfile, applicationBookingUpdate, applicationFlowFields, applicationSummary, applyMembershipTierMarkdown, backfillCrm, bookingDecision, brandTokens, bucketSeries, buildBuilderLibraryManifest, buildChapterCommercialParitySnapshot, buildGroupSeed, buildTierSeeds, builderLibraryDigest, canApprove, canBook, canChangeRole, canTransition, canViewBuilderLibraryResource, canceledPatch, canonicalBuilderLibrary, canonicalMemberContent, canonicalSignupControl, chapterBrandFromTokens, chapterDb, chapterFlowFieldContract, clampArray, classifyMemberStripeEvent, classifyMemberSystemWrite, clerkGetUser, clerkGetUserByEmail, clerkIntegration, clerkInviteRequest, clerkListUsers, clerkSetRole, clerkUserRequest, commercialParityDigest, composeMemberContent, createAdmissionGrantEnvelope, createBuilderLibraryEnvelope, createChapterIntegration, createClerkInvitation, createClerkUser, createMemberContentEnvelope, createSignupControlEnvelope, dashboardMetricData, defaultCrm, defineChapter, emailGroupFrom, endForSlot, exportChapterPromotion, findAdmissionGrant, findApplicationRef, findGiftOffer, findTier, firstPaymentPatch, formatChapterCopy, formationFields, formationFlowFields, getVaultSecret, giftOfferActive, hasDisclaimerAck, hydrateSignupControlTheme, injectSignupControlThemeHead, introIdempotencyKey, isAdminRole, isAlreadySent, isReconcilable, isSlotAvailable, isValidEmail, joinConfig, joinConfigTiers, leaderCrmConfig, listStripeObjects, loadLatestAdmissionRevision, loadOfferableTiers, loadTiers, materializeAdmissionGrants, meetingCreateRow, meetingRescheduleUpdate, memberApplication, memberContentDigest, memberContentDocument, memberSession, memberSystemAvailability, memberSystemRollbackPlan, membershipPageDocument, membershipTierPresentationFromMarkdown, networkCommercialSourceKey, networkSourceTag, normalizeAdmissionEmail, normalizeChapterEmail, normalizeNetworkCommercialStripeEvent, normalizeSharedRecord, normalizeWebhookEvent, offerableTiers, paymentsReady, personInputFromApp, planDelivery, planMemberSystemEventReplay, planMemberSystemMigration, projectApplicant, projectBuilderLibraryDelivery, projectMemberContent, projectMemberSelf, projectNetworkCommercialEvents, projectSharedRecord, promoteBuilderLibraryResource, publicGiftOffers, reconcileCommercialParitySnapshot, reconcileMeetings, reconcileStripeSnapshot, refundedPatch, render, renderSignupControlThemeHead, renderSummary, renderTemplateBody, renewalPatch, resolveApplication, resolveAuth, resolveBuilderLibrary, resolveChapterCopy, resolveJoinContinuation, resolveLeaderFormation, resolveMemberContent, resolveNetworkCommercialReadModel, resolveNetworkPersonRegistry, resolvePipeline, resolveScheduling, resolveSignupControl, resolveTiers, roleFromClaim, sendTemplated, sharedPersonInput, sharedRecordFromCrm, signupControlDigest, slotWindow, stageIndex, stripeCall, subAnnualCents, submitApplication, subscriptionIdempotencyKey, syncApplicationToCrm, tierIsFree, tierPayable, updateClerkUserMetadata, updateClerkUserMetadataByEmail, validateAdmissionGrantDocument, validateBuilderLibraryDocument, validateGiftOfferCatalog, validateMemberContentDocument, validateMemberSystemAuthority, validateMembershipPageDocument, validateScheduling, validateSignupControlDocument, webhookMutationId };
|