@odla-ai/chapter 0.25.6 → 0.26.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/dist/index.d.ts CHANGED
@@ -1,4 +1,10 @@
1
- import { CrmConfig, Crm, CrmRecord } from '@odla-ai/crm';
1
+ import { CrmConfig, Crm, FieldDef, TypeSummary, CrmRecord } from '@odla-ai/crm';
2
+
3
+ type TextFields$1<Key extends string> = {
4
+ [Field in Key]: string;
5
+ };
6
+ /** User-visible language for sharing, delivery state, and leader rollups. */
7
+ type AdminNetworkCopy = TextFields$1<"title" | "allowlistDescription" | "sharing" | "shareWith" | "shared" | "shareFailed" | "deliveryFailed" | "loadingRollup" | "loadRollupFailed" | "overview" | "configuredFollowers" | "reachableFollowers" | "recordsAcrossFollowers" | "noFollowers" | "followers" | "available" | "unavailable" | "recordTotals" | "noRecordTotals">;
2
8
 
3
9
  /** Complete default language resolved beneath partial Chapter copy overrides. */
4
10
  declare const DEFAULT_CHAPTER_COPY: ChapterCopy;
@@ -10,12 +16,7 @@ declare function formatChapterCopy(template: string, values: Readonly<Record<str
10
16
  type TextFields<Key extends string> = {
11
17
  [Field in Key]: string;
12
18
  };
13
- /**
14
- * Complete user-visible language owned by Chapter's packaged surfaces.
15
- *
16
- * Copy is serializable text; use render slots when presentation needs markup and
17
- * `formatChapterCopy()` for typed placeholders.
18
- */
19
+ /** Complete serializable language for Chapter surfaces; use render slots for markup and `formatChapterCopy()` for placeholders. */
19
20
  interface ChapterCopy {
20
21
  common: TextFields<"loading" | "saved" | "unknown">;
21
22
  join: {
@@ -41,7 +42,7 @@ interface ChapterCopy {
41
42
  admin: {
42
43
  auth: TextFields<"checking" | "notAuthorized" | "accountNotAuthorized" | "thisAccount" | "signOut" | "loading" | "signInNotConfigured" | "missingPublishableKey" | "noWorkspaces" | "signInTagline">;
43
44
  shell: TextFields<"adminRole" | "adminConsole" | "adminName" | "navigationLabel">;
44
- workspaces: TextFields<"dashboard" | "overview" | "billing" | "people" | "settings" | "calendar" | "email" | "dashboardViewsLabel" | "settingsViewsLabel" | "collectionsLabel">;
45
+ workspaces: TextFields<"dashboard" | "overview" | "billing" | "people" | "portfolio" | "settings" | "calendar" | "email" | "chapters" | "formations" | "dealFlow" | "dashboardViewsLabel" | "settingsViewsLabel" | "collectionsLabel" | "portfolioViewsLabel">;
45
46
  dashboard: TextFields<"loading" | "loadFailed" | "upcomingCalls" | "callsNeedAttention" | "noUpcomingCalls" | "drift" | "open" | "meet" | "applications" | "newMembers" | "newMembersUnavailable" | "revenueAdded" | "revenue" | "revenueUnavailable" | "pipeline" | "pipelineLabel" | "thisWeek" | "noChange" | "activeMemberships" | "annualRunRate" | "testMode">;
46
47
  billing: TextFields<"loading" | "loadFailed" | "notConfigured" | "active" | "annualized" | "renewingSoon" | "pastDue" | "subscriptions" | "testMode" | "truncated" | "name" | "email" | "application" | "subscription" | "cancelling" | "amount" | "renews">;
47
48
  availability: TextFields<"loading" | "loadFailed" | "saved" | "title" | "days" | "startHour" | "endHour" | "slotMinutes" | "minNoticeHours" | "windowDays" | "timezone" | "summaryTemplate" | "save"> & {
@@ -49,7 +50,7 @@ interface ChapterCopy {
49
50
  };
50
51
  email: TextFields<"loading" | "loadFailed" | "saved" | "sent" | "testFailed" | "delivery" | "notificationAddress" | "replyTo" | "debugInbox" | "debugInboxHint" | "sendTest" | "enabled" | "subject" | "body" | "save" | "sendLog" | "sentColumn" | "templateColumn" | "statusColumn" | "toColumn" | "failed" | "redirected" | "delivered">;
51
52
  meetings: TextFields<"loading" | "loadFailed" | "cancelConfirm" | "newStartPrompt" | "parseFailed" | "agenda" | "empty" | "unknown" | "drift" | "meet" | "reschedule" | "cancel">;
52
- network: TextFields<"title" | "allowlistDescription" | "sharing" | "shareWith" | "shared" | "shareFailed" | "deliveryFailed">;
53
+ network: AdminNetworkCopy;
53
54
  records: TextFields<"workflowMissing" | "comms" | "commsHistory" | "scheduling" | "billing" | "notes" | "access" | "sharing" | "lifecycle" | "role" | "superAdminHint" | "noAccount" | "approve" | "refund" | "approved" | "refunded" | "roleSet" | "messageSent" | "messageNotSent" | "loadingTemplates" | "template" | "chooseTemplate" | "sending" | "send" | "noMessages" | "message" | "newStartPrompt" | "parseFailed" | "cancelConfirm" | "callCancelled" | "callRescheduled" | "noApplication" | "loadingMeetings" | "noMeetings" | "joinMeeting" | "openCalendar" | "reschedule" | "cancel">;
54
55
  };
55
56
  }
@@ -59,6 +60,66 @@ type DeepPartial<T> = T extends readonly (infer Item)[] ? readonly Item[] : T ex
59
60
  /** Recursively partial copy overrides accepted by `defineChapter({ copy })`. */
60
61
  type ChapterCopyInput = DeepPartial<ChapterCopy>;
61
62
 
63
+ /** One follower site a leader can push CRM records to. The secret VALUE never
64
+ * lives in config: `secretName` names the leader tenant's vaulted copy of the
65
+ * follower's `network_share_secret`. */
66
+ interface ChapterNetworkTarget {
67
+ /** Stable lowercase slug used by the UI, audit tags, and default secret name. */
68
+ id: string;
69
+ /** Human-facing site name. Defaults to `id`. */
70
+ name?: string;
71
+ /** Absolute follower origin, e.g. `https://chapter.example.com`. */
72
+ url: string;
73
+ /** Leader-vault key holding this follower's share secret. Defaults to
74
+ * `network_share_<id-with-underscores>`. */
75
+ secretName?: string;
76
+ /** Per-record-type field allowlist. If present, omitted types cannot be sent
77
+ * to this target. Without it, package-safe person/company defaults apply. */
78
+ fields?: Record<string, readonly string[]>;
79
+ }
80
+ /** Leader/follower network configuration. Followers need no code config to
81
+ * receive records; they only vault `network_share_secret`. */
82
+ interface ChapterNetwork {
83
+ targets?: readonly ChapterNetworkTarget[];
84
+ }
85
+ /** Public chapter-formation intake backed by one CRM record type. The host owns
86
+ * the branded form; Chapter owns the bounded, idempotent write contract. */
87
+ interface LeaderFormationConfig {
88
+ /** CRM type receiving submissions. Default `"chapter_application"`. */
89
+ type?: string;
90
+ /** Public fields that must be non-empty strings. */
91
+ required?: readonly string[];
92
+ /** Additional public fields accepted by the route. */
93
+ optional?: readonly string[];
94
+ maxLen?: Record<string, number>;
95
+ /** Per-string cap when `maxLen` has no field override. Default 4000. */
96
+ defaultMaxLen?: number;
97
+ /** Maximum JSON request size in characters. Default 32768. */
98
+ bodyCap?: number;
99
+ }
100
+ /** Fully resolved formation intake policy. */
101
+ interface ResolvedLeaderFormation {
102
+ enabled: boolean;
103
+ type: string;
104
+ required: readonly string[];
105
+ optional: readonly string[];
106
+ maxLen: Record<string, number>;
107
+ defaultMaxLen: number;
108
+ bodyCap: number;
109
+ }
110
+ /** A validated network target carried on the resolved chapter engine. */
111
+ interface ResolvedNetworkTarget {
112
+ id: string;
113
+ name: string;
114
+ url: string;
115
+ secretName: string;
116
+ fields?: Record<string, readonly string[]>;
117
+ }
118
+ /** Fully-resolved leader network configuration. */
119
+ interface ResolvedNetwork {
120
+ targets: readonly ResolvedNetworkTarget[];
121
+ }
122
+
62
123
  /** Which feature profile a site runs. `chapter` is the full public member site
63
124
  * (join, Stripe membership, booking, member area, admin, CRM); `hub` is
64
125
  * admin-only and CRM-focused (a directory/registry over the same CRM). */
@@ -186,40 +247,6 @@ interface ChapterBrand {
186
247
  }>>;
187
248
  logos?: string;
188
249
  }
189
- /** One follower site a leader can push CRM records to. The secret VALUE never
190
- * lives in config: `secretName` names the leader tenant's vaulted copy of the
191
- * follower's `network_share_secret`. */
192
- interface ChapterNetworkTarget {
193
- /** Stable lowercase slug used by the UI, audit tags, and default secret name. */
194
- id: string;
195
- /** Human-facing site name. Defaults to `id`. */
196
- name?: string;
197
- /** Absolute follower origin, e.g. `https://chapter.example.com`. */
198
- url: string;
199
- /** Leader-vault key holding this follower's share secret. Defaults to
200
- * `network_share_<id-with-underscores>`. */
201
- secretName?: string;
202
- /** Per-record-type field allowlist. If present, omitted types cannot be sent
203
- * to this target. Without it, package-safe person/company defaults apply. */
204
- fields?: Record<string, readonly string[]>;
205
- }
206
- /** Leader/follower network configuration. Followers need no code config to
207
- * receive records; they only vault `network_share_secret`. */
208
- interface ChapterNetwork {
209
- targets?: readonly ChapterNetworkTarget[];
210
- }
211
- /** A validated network target carried on the resolved chapter engine. */
212
- interface ResolvedNetworkTarget {
213
- id: string;
214
- name: string;
215
- url: string;
216
- secretName: string;
217
- fields?: Record<string, readonly string[]>;
218
- }
219
- /** Fully-resolved leader network configuration. */
220
- interface ResolvedNetwork {
221
- targets: readonly ResolvedNetworkTarget[];
222
- }
223
250
  /** Membership pricing for the group row (chapter mode). */
224
251
  interface ChapterPrices {
225
252
  standardCents: number;
@@ -376,6 +403,8 @@ interface ChapterConfig {
376
403
  /** Leader → follower delivery targets. Secret values stay in the leader
377
404
  * tenant vault; see {@link ChapterNetworkTarget}. */
378
405
  network?: ChapterNetwork;
406
+ /** Enable a public, host-rendered formation application workflow. */
407
+ formation?: LeaderFormationConfig;
379
408
  thesis?: unknown;
380
409
  /** Required in `chapter` mode. */
381
410
  prices?: ChapterPrices;
@@ -466,6 +495,8 @@ interface Chapter {
466
495
  copy: ChapterCopy;
467
496
  /** Validated follower targets for leader-driven record pushes. */
468
497
  network: ResolvedNetwork;
498
+ /** Resolved public formation intake contract (disabled when omitted). */
499
+ formation: ResolvedLeaderFormation;
469
500
  /** Resolved CRM engine (from `defineCrm`). */
470
501
  crm: Crm;
471
502
  /** Resolved auth policy (source, claim, ladder, super-admin tier). */
@@ -496,6 +527,30 @@ interface Chapter {
496
527
  */
497
528
  declare function defineChapter(config: ChapterConfig): Chapter;
498
529
 
530
+ /** Options for {@link leaderCrmConfig}. */
531
+ interface LeaderCrmOptions {
532
+ /** Existing host CRM config to preserve. Defaults to Chapter's people +
533
+ * businesses graph for hub mode. */
534
+ base?: CrmConfig;
535
+ }
536
+ /**
537
+ * Add generic chapter-formation, portfolio, and deal-flow records to an
538
+ * existing CRM. Collisions fail through `composeCrmConfigs`, so this preset
539
+ * never silently replaces a host's people pipeline or templates.
540
+ */
541
+ declare function leaderCrmConfig(options?: LeaderCrmOptions): CrmConfig;
542
+
543
+ /** Resolve and validate the public chapter-formation intake contract. */
544
+ declare function resolveLeaderFormation(input: LeaderFormationConfig | undefined, crm: Crm): ResolvedLeaderFormation;
545
+ /** Public, presentational field metadata for a host-owned intake form. */
546
+ declare function formationFields(crm: Crm, formation: ResolvedLeaderFormation): Array<{
547
+ id: string;
548
+ label: string;
549
+ type: FieldDef["type"];
550
+ required: boolean;
551
+ options?: readonly string[];
552
+ }>;
553
+
499
554
  /** Options for {@link createChapterIntegration}. */
500
555
  interface ChapterIntegrationOptions {
501
556
  /** CRM route mount point. Default "/api/crm". */
@@ -935,7 +990,7 @@ interface JoinConfigGroup {
935
990
  declare function joinConfig(group: JoinConfigGroup, paymentsReady: boolean): Record<string, unknown>;
936
991
 
937
992
  /** The contact data the hub shares for a prospect. `hubRecordId` is the stable
938
- * idempotency key (the hub's crm_record id). */
993
+ * idempotency key (the hub's crm_record id). */
939
994
  interface SharedPerson {
940
995
  email: string;
941
996
  name?: string;
@@ -958,39 +1013,96 @@ interface SharedBusiness {
958
1013
  }
959
1014
  /** Versioned generic wire shape. `input` is validated against the follower's
960
1015
  * own CRM type before any write, so a leader cannot smuggle undeclared fields. */
961
- interface SharedRecord {
1016
+ interface SharedRecordV1 {
962
1017
  version: 1;
963
1018
  type: string;
964
1019
  hubRecordId: string;
965
1020
  input: Record<string, unknown>;
966
1021
  }
967
- /** Safe defaults when a target does not declare an explicit field allowlist. */
968
- declare const DEFAULT_SHARE_FIELDS: Readonly<Record<string, readonly string[]>>;
969
- /** Map a shared prospect to a crm `person` input (only the fields the default
970
- * person type accepts). Name falls back to first+last, then the email. */
971
- declare function sharedPersonInput(person: SharedPerson): Record<string, unknown>;
972
- /** Deps for the projection — the resolved CRM engine, the structural db, and
973
- * injected clock/id (deterministic in tests). */
1022
+ /** Current wire envelope. `source.siteId` prevents records from two leaders
1023
+ * with the same local id from colliding in a follower CRM. */
1024
+ interface SharedRecordV2 {
1025
+ version: 2;
1026
+ source: {
1027
+ siteId: string;
1028
+ recordId: string;
1029
+ };
1030
+ type: string;
1031
+ input: Record<string, unknown>;
1032
+ }
1033
+ /** Accepted generic share envelopes. Version 1 remains readable for migration. */
1034
+ type SharedRecord = SharedRecordV1 | SharedRecordV2;
1035
+ /** Privacy-bounded follower status returned to an authenticated leader. */
1036
+ interface NetworkSnapshot {
1037
+ version: 1;
1038
+ site: {
1039
+ id: string;
1040
+ name: string;
1041
+ mode: string;
1042
+ };
1043
+ generatedAt: number;
1044
+ types: TypeSummary[];
1045
+ }
1046
+ /** One configured target's latest live result in a leader rollup. */
1047
+ interface NetworkRollupTarget {
1048
+ id: string;
1049
+ name: string;
1050
+ url: string;
1051
+ available: boolean;
1052
+ generatedAt?: number;
1053
+ types?: TypeSummary[];
1054
+ error?: string;
1055
+ }
1056
+ /** Cross-target totals returned to the local leader admin. */
1057
+ interface NetworkRollup {
1058
+ configured: number;
1059
+ available: number;
1060
+ totalRecords: number;
1061
+ types: Array<{
1062
+ type: string;
1063
+ total: number;
1064
+ stages: Record<string, number>;
1065
+ }>;
1066
+ targets: NetworkRollupTarget[];
1067
+ }
1068
+ interface NormalizedSharedRecord {
1069
+ version: 1 | 2;
1070
+ sourceId: string;
1071
+ sourceRecordId: string;
1072
+ type: string;
1073
+ input: Record<string, unknown>;
1074
+ }
1075
+ /** Dependencies for applying a shared projection. */
974
1076
  interface ProjectionDeps {
975
1077
  crm: Crm;
976
1078
  db: ChapterDb;
977
1079
  now: () => number;
978
1080
  newId: () => string;
979
1081
  }
980
- /** CRM provenance tag used as the durable leader-id local-record mapping. */
981
- declare function networkSourceTag(type: string, hubRecordId: string): string;
1082
+ /** Safe defaults when a target does not declare an explicit field allowlist. */
1083
+ declare const DEFAULT_SHARE_FIELDS: Readonly<Record<string, readonly string[]>>;
1084
+
1085
+ /** Map a shared prospect to a crm `person` input (only the fields the default
1086
+ * person type accepts). Name falls back to first+last, then the email. */
1087
+ declare function sharedPersonInput(person: SharedPerson): Record<string, unknown>;
1088
+ /** Backward-compatible display tag retained while structured origin rows are
1089
+ * the durable leader-id → local-record mapping. */
1090
+ declare function networkSourceTag(type: string, hubRecordId: string, sourceId?: string): string;
982
1091
  /** Normalize the backwards-compatible person/business shapes into the versioned
983
1092
  * generic record envelope the receiver writes. */
984
- declare function normalizeSharedRecord(record: SharedPerson | SharedBusiness | SharedRecord): SharedRecord;
1093
+ declare function normalizeSharedRecord(record: SharedPerson | SharedBusiness | SharedRecord, fallbackSourceId?: string): NormalizedSharedRecord;
985
1094
  /** Build the allowlisted payload sent from one leader CRM record to a target.
986
1095
  * A target with an explicit `fields` map only accepts the types it lists. */
987
- declare function sharedRecordFromCrm(crm: Crm, record: CrmRecord, target: ResolvedNetworkTarget): SharedRecord;
1096
+ declare function sharedRecordFromCrm(crm: Crm, record: CrmRecord, target: ResolvedNetworkTarget, sourceId?: string): SharedRecord;
988
1097
  /**
989
1098
  * Upsert a leader-shared CRM record into this follower. Accepts the original
990
1099
  * person wire shape plus the versioned generic shape. Re-shares resolve through
991
1100
  * a durable provenance tag; people/businesses also converge by natural key.
992
1101
  */
993
- declare function projectSharedRecord(deps: ProjectionDeps, shared: SharedPerson | SharedBusiness | SharedRecord): Promise<{
1102
+ declare function projectSharedRecord(deps: ProjectionDeps, shared: SharedPerson | SharedBusiness | SharedRecord, options?: {
1103
+ sourceId?: string;
1104
+ sourceUrl?: string;
1105
+ }): Promise<{
994
1106
  recordId: string;
995
1107
  }>;
996
1108
  /** An arriving applicant, as far as the CRM projection cares. `extra` carries the
@@ -1519,4 +1631,4 @@ type ApplicationBookingPatch = {
1519
1631
  * already there (never backward). */
1520
1632
  declare function applicationBookingUpdate(currentStatus: string, startAt: number, htmlLink?: string | null): ApplicationBookingPatch;
1521
1633
 
1522
- export { type AccountModel, type AdminNotificationTrigger, type Applicant, type ApplicationBookingPatch, type ApplicationRecord, type ApplicationSummary, type Attr, type AttrType, type Chapter, type ChapterApplication, type ChapterAuth, type ChapterBrand, type ChapterConfig, type ChapterCopy, type ChapterCopyInput, type ChapterDb, type ChapterEmails, type ChapterIntegrationDescriptor, type ChapterIntegrationOptions, type ChapterMode, type ChapterNetwork, type ChapterNetworkTarget, type ChapterOperations, type ChapterPipeline, type ChapterPolicy, type ChapterPrices, type ChapterRunbookHints, type ChapterScheduling, type ChapterSends, 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 EmailGroup, type EmailTemplate, type EmailTemplateRow, type Entity, type ExistingMeeting, type GuardResult, type IntegrationDescriptor, type IntegrationProvision, type IntegrationSecret, type IntegrationSetting, type IntegrationSync, type JoinConfigGroup, type LiveEvent, type MailSender, type MeetingForReconcile, type MeetingRecord, type MeetingReschedulePatch, type MemberApplication, type MemberSession, type NewMeetingRow, type NotifyDeps, type NotifyInput, type NotifyResult, type PaymentsGroup, type ProjectionDeps, type ReconcileDecision, type ResolvedApplication, type ResolvedAuth, type ResolvedNetwork, type ResolvedNetworkTarget, type ResolvedOperations, type ResolvedPipeline, type ResolvedScheduling, type ResolvedSends, type RoleChangeContext, type Rule, SCHEDULING_DEFAULTS, type SchedulingErrors, type SecretMode, type SecretStore, type SessionUser, type SharedBusiness, type SharedPerson, type SharedRecord, type StripeEvent, type StripeResult, type SubmitResult, type WebhookEvent, applicantProfile, applicationBookingUpdate, applicationSummary, backfillCrm, bookingDecision, brandTokens, bucketSeries, buildGroupSeed, canApprove, canBook, canChangeRole, canTransition, canceledPatch, chapterBrandFromTokens, chapterDb, clampArray, clerkGetUser, clerkGetUserByEmail, clerkIntegration, clerkInviteRequest, clerkListUsers, clerkSetRole, clerkUserRequest, createChapterIntegration, createClerkInvitation, createClerkUser, dashboardMetricData, defaultCrm, defineChapter, emailGroupFrom, endForSlot, findApplicationRef, firstPaymentPatch, formatChapterCopy, getVaultSecret, hasDisclaimerAck, introIdempotencyKey, isAdminRole, isAlreadySent, isReconcilable, isSlotAvailable, isValidEmail, joinConfig, meetingCreateRow, meetingRescheduleUpdate, memberApplication, memberSession, networkSourceTag, normalizeSharedRecord, normalizeWebhookEvent, paymentsReady, personInputFromApp, planDelivery, projectApplicant, projectSharedRecord, reconcileMeetings, refundedPatch, render, renderSummary, renderTemplateBody, renewalPatch, resolveApplication, resolveAuth, resolveChapterCopy, resolvePipeline, resolveScheduling, roleFromClaim, sendTemplated, sharedPersonInput, sharedRecordFromCrm, slotWindow, stageIndex, stripeCall, stripeForm, subAnnualCents, submitApplication, subscriptionIdempotencyKey, syncApplicationToCrm, updateClerkUserMetadata, updateClerkUserMetadataByEmail, validateScheduling, verifyStripeSignature, webhookMutationId };
1634
+ export { type AccountModel, type AdminNotificationTrigger, type Applicant, type ApplicationBookingPatch, type ApplicationRecord, type ApplicationSummary, type Attr, type AttrType, type Chapter, type ChapterApplication, type ChapterAuth, type ChapterBrand, type ChapterConfig, type ChapterCopy, type ChapterCopyInput, type ChapterDb, type ChapterEmails, type ChapterIntegrationDescriptor, type ChapterIntegrationOptions, type ChapterMode, type ChapterNetwork, type ChapterNetworkTarget, type ChapterOperations, type ChapterPipeline, type ChapterPolicy, type ChapterPrices, type ChapterRunbookHints, type ChapterScheduling, type ChapterSends, 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 EmailGroup, type EmailTemplate, type EmailTemplateRow, type Entity, type ExistingMeeting, type GuardResult, type IntegrationDescriptor, type IntegrationProvision, type IntegrationSecret, type IntegrationSetting, type IntegrationSync, type JoinConfigGroup, type LeaderCrmOptions, type LeaderFormationConfig, type LiveEvent, type MailSender, type MeetingForReconcile, type MeetingRecord, type MeetingReschedulePatch, type MemberApplication, type MemberSession, type NetworkRollup, type NetworkRollupTarget, type NetworkSnapshot, type NewMeetingRow, type NotifyDeps, type NotifyInput, type NotifyResult, type PaymentsGroup, type ProjectionDeps, type ReconcileDecision, type ResolvedApplication, type ResolvedAuth, type ResolvedLeaderFormation, type ResolvedNetwork, type ResolvedNetworkTarget, type ResolvedOperations, type ResolvedPipeline, type ResolvedScheduling, type ResolvedSends, type RoleChangeContext, type Rule, SCHEDULING_DEFAULTS, type SchedulingErrors, type SecretMode, type SecretStore, type SessionUser, type SharedBusiness, type SharedPerson, type SharedRecord, type SharedRecordV1, type SharedRecordV2, type StripeEvent, type StripeResult, type SubmitResult, type WebhookEvent, applicantProfile, applicationBookingUpdate, applicationSummary, backfillCrm, bookingDecision, brandTokens, bucketSeries, buildGroupSeed, canApprove, canBook, canChangeRole, canTransition, canceledPatch, chapterBrandFromTokens, chapterDb, clampArray, clerkGetUser, clerkGetUserByEmail, clerkIntegration, clerkInviteRequest, clerkListUsers, clerkSetRole, clerkUserRequest, createChapterIntegration, createClerkInvitation, createClerkUser, dashboardMetricData, defaultCrm, defineChapter, emailGroupFrom, endForSlot, findApplicationRef, firstPaymentPatch, formatChapterCopy, formationFields, getVaultSecret, hasDisclaimerAck, introIdempotencyKey, isAdminRole, isAlreadySent, isReconcilable, isSlotAvailable, isValidEmail, joinConfig, leaderCrmConfig, meetingCreateRow, meetingRescheduleUpdate, memberApplication, memberSession, networkSourceTag, normalizeSharedRecord, normalizeWebhookEvent, paymentsReady, personInputFromApp, planDelivery, projectApplicant, projectSharedRecord, reconcileMeetings, refundedPatch, render, renderSummary, renderTemplateBody, renewalPatch, resolveApplication, resolveAuth, resolveChapterCopy, resolveLeaderFormation, resolvePipeline, resolveScheduling, roleFromClaim, sendTemplated, sharedPersonInput, sharedRecordFromCrm, slotWindow, stageIndex, stripeCall, stripeForm, subAnnualCents, submitApplication, subscriptionIdempotencyKey, syncApplicationToCrm, updateClerkUserMetadata, updateClerkUserMetadataByEmail, validateScheduling, verifyStripeSignature, webhookMutationId };