founder-schema 0.20.0 → 0.22.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.
@@ -198,6 +198,7 @@ export declare const memberDetailSchema: z.ZodObject<{
198
198
  coupon: "coupon";
199
199
  paid: "paid";
200
200
  granted: "granted";
201
+ early_bird: "early_bird";
201
202
  }>;
202
203
  since: z.ZodISODateTime;
203
204
  foundingNumber: z.ZodNullable<z.ZodNumber>;
@@ -1 +1 @@
1
- {"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../../../src/domains/members/members.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,iFAAiF;AACjF,eAAO,MAAM,oBAAoB,kCAAmC,CAAC;AACrE,eAAO,MAAM,kBAAkB;;;EAA+B,CAAC;AAC/D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,sCAAsC;AACtC,eAAO,MAAM,kBAAkB;;iBAAyC,CAAC;AACzE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAKrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEnF;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;iBAQ9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,yBAAyB;;;;;;;;;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G,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEnF;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;iBAQ9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;iBAAuC,CAAC;AAC9E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,6BAA6B;AAC7B,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAK3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,qCAAqC;AACrC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiD7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,sFAAsF;AACtF,eAAO,MAAM,uBAAuB;;iBAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -31,13 +31,17 @@ import { z } from 'zod';
31
31
  * coupon another free-membership coupon
32
32
  * paid Rs 99, captured
33
33
  * granted staff gave it (a partner, a press account), with a reason on record
34
+ * early_bird free for life, because the account was created before
35
+ * `EARLY_BIRD_UNTIL` (0.21.0, the user's launch offer of 2026-11-14:
36
+ * everyone who joins before Tue 17 Nov 2026, 12:00 IST)
34
37
  */
35
- export declare const MEMBERSHIP_KIND_VALUES: readonly ["founding", "coupon", "paid", "granted"];
38
+ export declare const MEMBERSHIP_KIND_VALUES: readonly ["founding", "coupon", "paid", "granted", "early_bird"];
36
39
  export declare const membershipKindSchema: z.ZodEnum<{
37
40
  founding: "founding";
38
41
  coupon: "coupon";
39
42
  paid: "paid";
40
43
  granted: "granted";
44
+ early_bird: "early_bird";
41
45
  }>;
42
46
  export type MembershipKind = z.infer<typeof membershipKindSchema>;
43
47
  /**
@@ -131,6 +135,22 @@ export declare function upgradePrice(convertedMs: number, now: Date): number;
131
135
  * No code gives a founding place any more.
132
136
  */
133
137
  export declare const FOUNDING_PLACES = 100;
138
+ /**
139
+ * THE EARLY-BIRD OFFER (0.21.0; the user, 2026-11-14): everyone whose Founder
140
+ * Circle account was CREATED before this instant gets the membership free, for
141
+ * life, with no code and no limit on how many. After it, the membership costs
142
+ * `MEMBERSHIP_PRICE_PAISE` as before.
143
+ *
144
+ * Tue 17 Nov 2026, 12:00 IST. The ONE place it is written: the server grants
145
+ * from it (`isEarlyBird`), and the web's landing, pricing, membership screen,
146
+ * Terms and llms.txt word the offer from it and stop offering it at this
147
+ * instant. Moving it is a schema release, like a price.
148
+ */
149
+ export declare const EARLY_BIRD_UNTIL = "2026-11-17T06:30:00.000Z";
150
+ /** Whether an account created at `createdAt` gets the early-bird membership. */
151
+ export declare function isEarlyBird(createdAt: Date | string | number): boolean;
152
+ /** Whether the offer is still open at `now`: what the pages show. */
153
+ export declare function earlyBirdOpen(now?: Date | number): boolean;
134
154
  export declare const planOfferSchema: z.ZodObject<{
135
155
  tier: z.ZodEnum<{
136
156
  premium: "premium";
@@ -181,6 +201,7 @@ export declare const membershipSchema: z.ZodObject<{
181
201
  coupon: "coupon";
182
202
  paid: "paid";
183
203
  granted: "granted";
204
+ early_bird: "early_bird";
184
205
  }>;
185
206
  since: z.ZodISODateTime;
186
207
  foundingNumber: z.ZodNullable<z.ZodNumber>;
@@ -210,6 +231,7 @@ export declare const meMembershipSchema: z.ZodObject<{
210
231
  coupon: "coupon";
211
232
  paid: "paid";
212
233
  granted: "granted";
234
+ early_bird: "early_bird";
213
235
  }>;
214
236
  since: z.ZodISODateTime;
215
237
  foundingNumber: z.ZodNullable<z.ZodNumber>;
@@ -1 +1 @@
1
- {"version":3,"file":"membership.d.ts","sourceRoot":"","sources":["../../../src/domains/membership/membership.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,oDAAqD,CAAC;AACzF,eAAO,MAAM,oBAAoB;;;;;EAAiC,CAAC;AACnE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,8BAA+B,CAAC;AACrE,eAAO,MAAM,sBAAsB;;;EAAmC,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,4BAA4B,qDAAsD,CAAC;AAChG,eAAO,MAAM,yBAAyB;;;;EAAuC,CAAC;AAC9E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,yFAAyF;AACzF,eAAO,MAAM,gBAAgB,kCAAmC,CAAC;AACjE,eAAO,MAAM,cAAc;;;EAA2B,CAAC;AACvD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,yDAAyD;AACzD,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAA+B,CAAC;AAE9F,mFAAmF;AACnF,eAAO,MAAM,kBAAkB,4BAA6B,CAAC;AAC7D,eAAO,MAAM,gBAAgB;;;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AM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAI5D,eAAO,MAAM,gBAAgB;;;;;;;;;;iBAK3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,qFAAqF;AACrF,eAAO,MAAM,eAAe;;;;;;;iBAI1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,qFAAqF;AACrF,eAAO,MAAM,yBAAyB,kCAAmC,CAAC;AAC1E,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiC7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -34,8 +34,17 @@ import { billingDetailsSchema } from '../billing/gst.js';
34
34
  * coupon another free-membership coupon
35
35
  * paid Rs 99, captured
36
36
  * granted staff gave it (a partner, a press account), with a reason on record
37
+ * early_bird free for life, because the account was created before
38
+ * `EARLY_BIRD_UNTIL` (0.21.0, the user's launch offer of 2026-11-14:
39
+ * everyone who joins before Tue 17 Nov 2026, 12:00 IST)
37
40
  */
38
- export const MEMBERSHIP_KIND_VALUES = ['founding', 'coupon', 'paid', 'granted'];
41
+ export const MEMBERSHIP_KIND_VALUES = [
42
+ 'founding',
43
+ 'coupon',
44
+ 'paid',
45
+ 'granted',
46
+ 'early_bird',
47
+ ];
39
48
  export const membershipKindSchema = z.enum(MEMBERSHIP_KIND_VALUES);
40
49
  /**
41
50
  * A stored membership's state (0.20.0: memberships are their own rows, so
@@ -152,6 +161,28 @@ export function upgradePrice(convertedMs, now) {
152
161
  * No code gives a founding place any more.
153
162
  */
154
163
  export const FOUNDING_PLACES = 100;
164
+ /**
165
+ * THE EARLY-BIRD OFFER (0.21.0; the user, 2026-11-14): everyone whose Founder
166
+ * Circle account was CREATED before this instant gets the membership free, for
167
+ * life, with no code and no limit on how many. After it, the membership costs
168
+ * `MEMBERSHIP_PRICE_PAISE` as before.
169
+ *
170
+ * Tue 17 Nov 2026, 12:00 IST. The ONE place it is written: the server grants
171
+ * from it (`isEarlyBird`), and the web's landing, pricing, membership screen,
172
+ * Terms and llms.txt word the offer from it and stop offering it at this
173
+ * instant. Moving it is a schema release, like a price.
174
+ */
175
+ export const EARLY_BIRD_UNTIL = '2026-11-17T06:30:00.000Z';
176
+ const EARLY_BIRD_UNTIL_MS = Date.parse(EARLY_BIRD_UNTIL);
177
+ /** Whether an account created at `createdAt` gets the early-bird membership. */
178
+ export function isEarlyBird(createdAt) {
179
+ const at = createdAt instanceof Date ? createdAt.getTime() : new Date(createdAt).getTime();
180
+ return Number.isFinite(at) && at < EARLY_BIRD_UNTIL_MS;
181
+ }
182
+ /** Whether the offer is still open at `now`: what the pages show. */
183
+ export function earlyBirdOpen(now = Date.now()) {
184
+ return (now instanceof Date ? now.getTime() : now) < EARLY_BIRD_UNTIL_MS;
185
+ }
155
186
  // ─── GET /plans ──────────────────────────────────────────────────────────────
156
187
  export const planOfferSchema = z.object({
157
188
  tier: planTierSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"membership.js","sourceRoot":"","sources":["../../../src/domains/membership/membership.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mB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":["/**\n * founder-schema: membership and plans, as a member holds them (0.12.0)\n *\n * GET /api/v1/plans planCatalogSchema (anyone: prices and what each includes)\n * GET /api/v1/me/membership meMembershipSchema (signed in: what I hold, what I have used)\n *\n * THE USER'S RULING (2026-10-11): looking is free; taking part needs a\n * MEMBERSHIP, Rs 99 once, for life (the first 100 free with a coupon). On top,\n * two PLANS: Premium (5 live products, 15 new people a month to message) and\n * Business (unlimited products, 50 new people). Prices and plan contents come\n * from the server, so a change needs no client release.\n *\n * A PLAN IS TIME, PREPAID, IN TWO BLOCKS: Business time first, then Premium\n * time. Buying more APPENDS; buying Premium while on Business waits its turn;\n * buying Business while on Premium is an upgrade that turns the Premium time\n * left into Business for the difference (`domains/billing`). `blocks` says it\n * as it stands, from now on.\n *\n * Money is integer PAISE everywhere in this package: never a float of rupees.\n *\n * @module founder-schema/domains/membership\n */\n\nimport { z } from 'zod';\nimport { standingSchema } from '../../access/standing.js';\nimport { DAY_MS, INDIA_UTC_OFFSET_MS } from '../../core/limits.js';\nimport { billingDetailsSchema } from '../billing/gst.js';\n\n/**\n * How someone came to hold a membership. ⚠ Stored: append only.\n *\n * founding free for life, numbered \"Founding member #N\": one of the first\n * `FOUNDING_PLACES` people to join the launch WAITLIST (0.14.0,\n * the user's rule of 2026-10-16). Before that, the founding\n * coupon (`FIRST100`), which no longer exists on main.\n * coupon another free-membership coupon\n * paid Rs 99, captured\n * granted staff gave it (a partner, a press account), with a reason on record\n */\nexport const MEMBERSHIP_KIND_VALUES = ['founding', 'coupon', 'paid', 'granted'] as const;\nexport const membershipKindSchema = z.enum(MEMBERSHIP_KIND_VALUES);\nexport type MembershipKind = z.infer<typeof membershipKindSchema>;\n\n/**\n * A stored membership's state (0.20.0: memberships are their own rows, so\n * none is ever erased). `active` is held now, at most one per member; `ended`\n * is history: a refunded payment, a staff revoke, or the account's deletion,\n * said by `MEMBERSHIP_END_REASON_VALUES`.\n */\nexport const MEMBERSHIP_STATUS_VALUES = ['active', 'ended'] as const;\nexport const membershipStatusSchema = z.enum(MEMBERSHIP_STATUS_VALUES);\nexport type MembershipStatus = z.infer<typeof membershipStatusSchema>;\n\nexport const MEMBERSHIP_END_REASON_VALUES = ['refunded', 'revoked', 'account_deleted'] as const;\nexport const membershipEndReasonSchema = z.enum(MEMBERSHIP_END_REASON_VALUES);\nexport type MembershipEndReason = z.infer<typeof membershipEndReasonSchema>;\n\n/** ⚠ Stored: append only. Highest last is NOT implied: compare with `PLAN_TIER_RANK`. */\nexport const PLAN_TIER_VALUES = ['premium', 'business'] as const;\nexport const planTierSchema = z.enum(PLAN_TIER_VALUES);\nexport type PlanTier = z.infer<typeof planTierSchema>;\n\n/** Which tier outranks which: Business above Premium. */\nexport const PLAN_TIER_RANK: Readonly<Record<PlanTier, number>> = { premium: 1, business: 2 };\n\n/** One payment buys a calendar month or a calendar year. ⚠ Stored: append only. */\nexport const PLAN_PERIOD_VALUES = ['month', 'year'] as const;\nexport const planPeriodSchema = z.enum(PLAN_PERIOD_VALUES);\nexport type PlanPeriod = z.infer<typeof planPeriodSchema>;\n\n/** Integer paise, never negative. Rs 399 is 39900. */\nexport const paiseSchema = z.number().int().nonnegative();\nexport type Paise = z.infer<typeof paiseSchema>;\n\n/**\n * What a standing or a plan allows that is COUNTED (the ability says whether;\n * these say how many).\n *\n * productsLive products live at once; null is unlimited (the server\n * still holds a safety ceiling, `PRODUCTS_LIVE_SAFETY_MAX`)\n * newPeoplePerMonth conversations a month with people you do not know\n */\nexport const planLimitsSchema = z.object({\n productsLive: z.number().int().nonnegative().nullable(),\n newPeoplePerMonth: z.number().int().nonnegative(),\n});\nexport type PlanLimits = z.infer<typeof planLimitsSchema>;\n\n// ─── The price list ──────────────────────────────────────────────────────────\n//\n// THE ONE PLACE a price or a plan's limit is written (0.12.0). The backend\n// prices and counts from these (`modules/plans/catalog.ts`), `GET /plans`\n// serves them, and the web's Terms of Service are written FROM them, so the\n// Terms can never state a price the server does not charge. A change here is\n// a schema release, then the backend, then the web. Integer PAISE, GST\n// included. hary's India-first prices (the user: \"you decide, India first\").\n\n/** The membership: once, for life. */\nexport const MEMBERSHIP_PRICE_PAISE = 9_900;\n\n/** What a member with no plan may: 1 live product, no conversations with people they do not know. */\nexport const MEMBER_LIMIT_VALUES: PlanLimits = { productsLive: 1, newPeoplePerMonth: 0 };\n\n/** Each plan's name, prices and limits. Exhaustive by type. */\nexport const PLAN_SPECS: Readonly<\n Record<\n PlanTier,\n { name: string; prices: Readonly<Record<PlanPeriod, number>>; limits: PlanLimits }\n >\n> = {\n premium: {\n name: 'Premium',\n prices: { month: 39_900, year: 399_900 },\n limits: { productsLive: 5, newPeoplePerMonth: 15 },\n },\n business: {\n name: 'Business',\n prices: { month: 99_900, year: 999_900 },\n limits: { productsLive: null, newPeoplePerMonth: 50 },\n },\n};\n\n// ─── Plan time on India's calendar, and an upgrade's price (0.18.0) ──────────\n//\n// Moved here from the backend's plan timeline so the price a member is charged\n// and the rule the Terms of Service state are ONE function: the Terms said\n// \"Rs 20 a day for the rest\" for a week after the server stopped charging it\n// (2026-10-13).\n\n/**\n * A calendar month or year later on India's calendar (`count` of them), the\n * day clamped to the month's last: 31 January plus a month is 28 or 29\n * February. India has one offset all year, so its calendar is UTC's, shifted.\n */\nexport function addPlanPeriod(from: Date, period: PlanPeriod, count = 1): Date {\n const months = period === 'year' ? 12 * count : count;\n const local = new Date(from.getTime() + INDIA_UTC_OFFSET_MS);\n const m = local.getUTCMonth() + months;\n const targetYear = local.getUTCFullYear() + Math.floor(m / 12);\n const targetMonth = ((m % 12) + 12) % 12;\n const lastDay = new Date(Date.UTC(targetYear, targetMonth + 1, 0)).getUTCDate();\n const shifted = Date.UTC(\n targetYear,\n targetMonth,\n Math.min(local.getUTCDate(), lastDay),\n local.getUTCHours(),\n local.getUTCMinutes(),\n local.getUTCSeconds(),\n local.getUTCMilliseconds(),\n );\n return new Date(shifted - INDIA_UTC_OFFSET_MS);\n}\n\n/** What an upgrade costs for each whole calendar year of Premium left: the yearly difference. */\nexport const UPGRADE_PER_YEAR = PLAN_SPECS.business.prices.year - PLAN_SPECS.premium.prices.year;\n/** ...for each whole calendar month after the years: the monthly difference (a 31-day month and February alike). */\nexport const UPGRADE_PER_MONTH = PLAN_SPECS.business.prices.month - PLAN_SPECS.premium.prices.month;\n/** The days left over are charged as this many to a month. */\nexport const UPGRADE_DAYS_PER_MONTH = 30;\n/** ...so each day left over costs this, never more than `UPGRADE_PER_MONTH` for them all. */\nexport const UPGRADE_PER_DAY = UPGRADE_PER_MONTH / UPGRADE_DAYS_PER_MONTH;\n\n/**\n * What an upgrade of `convertedMs` of Premium, from `now`, costs in paise (the\n * user: \"ask for the rest of the money, the difference\"). Each whole calendar\n * year left costs `UPGRADE_PER_YEAR`; each whole calendar month after that,\n * `UPGRADE_PER_MONTH`; the days left over `UPGRADE_PER_DAY` each, but never\n * more than one month's. The part below a year never costs more than a year's.\n * A part day counts as a day; rounded up to the rupee.\n */\nexport function upgradePrice(convertedMs: number, now: Date): number {\n const end = now.getTime() + Math.max(convertedMs, 1);\n let years = 0;\n while (addPlanPeriod(now, 'year', years + 1).getTime() <= end) years += 1;\n const afterYears = addPlanPeriod(now, 'year', years);\n let months = 0;\n while (addPlanPeriod(afterYears, 'month', months + 1).getTime() <= end) months += 1;\n const restDays = Math.ceil((end - addPlanPeriod(afterYears, 'month', months).getTime()) / DAY_MS);\n const belowAYear =\n months * UPGRADE_PER_MONTH + Math.min(restDays * UPGRADE_PER_DAY, UPGRADE_PER_MONTH);\n const paise = years * UPGRADE_PER_YEAR + Math.min(belowAYear, UPGRADE_PER_YEAR);\n return Math.ceil(paise / 100) * 100;\n}\n\n/**\n * Free founding memberships (0.14.0): the first 100 people to join the launch\n * waitlist get their membership free, numbered #1 to #100 by their place\n * (the user, 2026-10-16). Everyone else pays `MEMBERSHIP_PRICE_PAISE` once.\n * No code gives a founding place any more.\n */\nexport const FOUNDING_PLACES = 100;\n\n// ─── GET /plans ──────────────────────────────────────────────────────────────\n\nexport const planOfferSchema = z.object({\n tier: planTierSchema,\n /** \"Premium\", \"Business\": the server's word, so a rename needs no client release. */\n name: z.string(),\n /** GST included. */\n prices: z.object({ month: paiseSchema, year: paiseSchema }),\n limits: planLimitsSchema,\n});\nexport type PlanOffer = z.infer<typeof planOfferSchema>;\n\nexport const planCatalogSchema = z.object({\n currency: z.literal('INR'),\n membership: z.object({\n /** Once, for life, GST included. */\n price: paiseSchema,\n limits: planLimitsSchema,\n }),\n /** Lowest first. */\n plans: z.array(planOfferSchema),\n /** Every purchase is refunded in full within this many days of paying. */\n refundWindowDays: z.number().int().positive(),\n /**\n * Whether a payment can be taken here now. False when the gateway is not\n * configured: a free coupon still works, a paid purchase answers\n * `PAYMENTS_UNAVAILABLE`.\n */\n paymentsEnabled: z.boolean(),\n});\nexport type PlanCatalog = z.infer<typeof planCatalogSchema>;\n\n// ─── GET /me/membership ──────────────────────────────────────────────────────\n\nexport const membershipSchema = z.object({\n kind: membershipKindSchema,\n since: z.iso.datetime(),\n /** \"Founding member #N\": set only for `founding`. */\n foundingNumber: z.number().int().positive().nullable(),\n});\nexport type Membership = z.infer<typeof membershipSchema>;\n\n/** A stretch of one tier. Blocks never overlap and follow each other with no gap. */\nexport const planBlockSchema = z.object({\n tier: planTierSchema,\n startsAt: z.iso.datetime(),\n endsAt: z.iso.datetime(),\n});\nexport type PlanBlock = z.infer<typeof planBlockSchema>;\n\n/** Why someone takes part: their membership, or a staff role (staff are members). */\nexport const TAKES_PART_THROUGH_VALUES = ['membership', 'staff'] as const;\nexport type TakesPartThrough = (typeof TAKES_PART_THROUGH_VALUES)[number];\n\nexport const meMembershipSchema = z.object({\n standing: standingSchema,\n /** Null for a viewer, and for staff who hold none (they take part through their role). */\n membership: membershipSchema.nullable(),\n /** Why they take part: their membership, or a staff role (staff are members). Null for a viewer. */\n through: z.enum(TAKES_PART_THROUGH_VALUES).nullable(),\n plan: z.object({\n /** The tier in force now; null with no plan. */\n tier: planTierSchema.nullable(),\n /** From now on, Business first, then Premium. Empty with no plan. */\n blocks: z.array(planBlockSchema),\n }),\n limits: planLimitsSchema,\n products: z.object({\n /** Products they own that are live now. */\n live: z.number().int().nonnegative(),\n /** Products they own, paused ones included. */\n owned: z.number().int().nonnegative(),\n /**\n * What adding another counts against (0.13.0): live ones and the ones\n * they paused themselves, not those a plan's end paused. \"Add a product\"\n * stops when this reaches `limits.productsLive`: pausing never makes room.\n */\n counted: z.number().int().nonnegative(),\n }),\n messages: z.object({\n /** New people they started a conversation with this month (India time). */\n used: z.number().int().nonnegative(),\n /** When this month's count starts again. */\n resetsAt: z.iso.datetime(),\n }),\n /** The billing details they last used, to prefill the next checkout; null before the first. */\n billing: billingDetailsSchema.nullable(),\n});\nexport type MeMembership = z.infer<typeof meMembershipSchema>;\n"]}
1
+ {"version":3,"file":"membership.js","sourceRoot":"","sources":["../../../src/domains/membership/membership.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,UAAU;IACV,QAAQ;IACR,MAAM;IACN,SAAS;IACT,YAAY;CACJ,CAAC;AACX,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAGnE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC;AACrE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;AAGvE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAA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,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACpC,4CAA4C;QAC5C,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;KAC3B,CAAC;IACF,+FAA+F;IAC/F,OAAO,EAAE,oBAAoB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC","sourcesContent":["/**\n * founder-schema: membership and plans, as a member holds them (0.12.0)\n *\n * GET /api/v1/plans planCatalogSchema (anyone: prices and what each includes)\n * GET /api/v1/me/membership meMembershipSchema (signed in: what I hold, what I have used)\n *\n * THE USER'S RULING (2026-10-11): looking is free; taking part needs a\n * MEMBERSHIP, Rs 99 once, for life (the first 100 free with a coupon). On top,\n * two PLANS: Premium (5 live products, 15 new people a month to message) and\n * Business (unlimited products, 50 new people). Prices and plan contents come\n * from the server, so a change needs no client release.\n *\n * A PLAN IS TIME, PREPAID, IN TWO BLOCKS: Business time first, then Premium\n * time. Buying more APPENDS; buying Premium while on Business waits its turn;\n * buying Business while on Premium is an upgrade that turns the Premium time\n * left into Business for the difference (`domains/billing`). `blocks` says it\n * as it stands, from now on.\n *\n * Money is integer PAISE everywhere in this package: never a float of rupees.\n *\n * @module founder-schema/domains/membership\n */\n\nimport { z } from 'zod';\nimport { standingSchema } from '../../access/standing.js';\nimport { DAY_MS, INDIA_UTC_OFFSET_MS } from '../../core/limits.js';\nimport { billingDetailsSchema } from '../billing/gst.js';\n\n/**\n * How someone came to hold a membership. ⚠ Stored: append only.\n *\n * founding free for life, numbered \"Founding member #N\": one of the first\n * `FOUNDING_PLACES` people to join the launch WAITLIST (0.14.0,\n * the user's rule of 2026-10-16). Before that, the founding\n * coupon (`FIRST100`), which no longer exists on main.\n * coupon another free-membership coupon\n * paid Rs 99, captured\n * granted staff gave it (a partner, a press account), with a reason on record\n * early_bird free for life, because the account was created before\n * `EARLY_BIRD_UNTIL` (0.21.0, the user's launch offer of 2026-11-14:\n * everyone who joins before Tue 17 Nov 2026, 12:00 IST)\n */\nexport const MEMBERSHIP_KIND_VALUES = [\n 'founding',\n 'coupon',\n 'paid',\n 'granted',\n 'early_bird',\n] as const;\nexport const membershipKindSchema = z.enum(MEMBERSHIP_KIND_VALUES);\nexport type MembershipKind = z.infer<typeof membershipKindSchema>;\n\n/**\n * A stored membership's state (0.20.0: memberships are their own rows, so\n * none is ever erased). `active` is held now, at most one per member; `ended`\n * is history: a refunded payment, a staff revoke, or the account's deletion,\n * said by `MEMBERSHIP_END_REASON_VALUES`.\n */\nexport const MEMBERSHIP_STATUS_VALUES = ['active', 'ended'] as const;\nexport const membershipStatusSchema = z.enum(MEMBERSHIP_STATUS_VALUES);\nexport type MembershipStatus = z.infer<typeof membershipStatusSchema>;\n\nexport const MEMBERSHIP_END_REASON_VALUES = ['refunded', 'revoked', 'account_deleted'] as const;\nexport const membershipEndReasonSchema = z.enum(MEMBERSHIP_END_REASON_VALUES);\nexport type MembershipEndReason = z.infer<typeof membershipEndReasonSchema>;\n\n/** ⚠ Stored: append only. Highest last is NOT implied: compare with `PLAN_TIER_RANK`. */\nexport const PLAN_TIER_VALUES = ['premium', 'business'] as const;\nexport const planTierSchema = z.enum(PLAN_TIER_VALUES);\nexport type PlanTier = z.infer<typeof planTierSchema>;\n\n/** Which tier outranks which: Business above Premium. */\nexport const PLAN_TIER_RANK: Readonly<Record<PlanTier, number>> = { premium: 1, business: 2 };\n\n/** One payment buys a calendar month or a calendar year. ⚠ Stored: append only. */\nexport const PLAN_PERIOD_VALUES = ['month', 'year'] as const;\nexport const planPeriodSchema = z.enum(PLAN_PERIOD_VALUES);\nexport type PlanPeriod = z.infer<typeof planPeriodSchema>;\n\n/** Integer paise, never negative. Rs 399 is 39900. */\nexport const paiseSchema = z.number().int().nonnegative();\nexport type Paise = z.infer<typeof paiseSchema>;\n\n/**\n * What a standing or a plan allows that is COUNTED (the ability says whether;\n * these say how many).\n *\n * productsLive products live at once; null is unlimited (the server\n * still holds a safety ceiling, `PRODUCTS_LIVE_SAFETY_MAX`)\n * newPeoplePerMonth conversations a month with people you do not know\n */\nexport const planLimitsSchema = z.object({\n productsLive: z.number().int().nonnegative().nullable(),\n newPeoplePerMonth: z.number().int().nonnegative(),\n});\nexport type PlanLimits = z.infer<typeof planLimitsSchema>;\n\n// ─── The price list ──────────────────────────────────────────────────────────\n//\n// THE ONE PLACE a price or a plan's limit is written (0.12.0). The backend\n// prices and counts from these (`modules/plans/catalog.ts`), `GET /plans`\n// serves them, and the web's Terms of Service are written FROM them, so the\n// Terms can never state a price the server does not charge. A change here is\n// a schema release, then the backend, then the web. Integer PAISE, GST\n// included. hary's India-first prices (the user: \"you decide, India first\").\n\n/** The membership: once, for life. */\nexport const MEMBERSHIP_PRICE_PAISE = 9_900;\n\n/** What a member with no plan may: 1 live product, no conversations with people they do not know. */\nexport const MEMBER_LIMIT_VALUES: PlanLimits = { productsLive: 1, newPeoplePerMonth: 0 };\n\n/** Each plan's name, prices and limits. Exhaustive by type. */\nexport const PLAN_SPECS: Readonly<\n Record<\n PlanTier,\n { name: string; prices: Readonly<Record<PlanPeriod, number>>; limits: PlanLimits }\n >\n> = {\n premium: {\n name: 'Premium',\n prices: { month: 39_900, year: 399_900 },\n limits: { productsLive: 5, newPeoplePerMonth: 15 },\n },\n business: {\n name: 'Business',\n prices: { month: 99_900, year: 999_900 },\n limits: { productsLive: null, newPeoplePerMonth: 50 },\n },\n};\n\n// ─── Plan time on India's calendar, and an upgrade's price (0.18.0) ──────────\n//\n// Moved here from the backend's plan timeline so the price a member is charged\n// and the rule the Terms of Service state are ONE function: the Terms said\n// \"Rs 20 a day for the rest\" for a week after the server stopped charging it\n// (2026-10-13).\n\n/**\n * A calendar month or year later on India's calendar (`count` of them), the\n * day clamped to the month's last: 31 January plus a month is 28 or 29\n * February. India has one offset all year, so its calendar is UTC's, shifted.\n */\nexport function addPlanPeriod(from: Date, period: PlanPeriod, count = 1): Date {\n const months = period === 'year' ? 12 * count : count;\n const local = new Date(from.getTime() + INDIA_UTC_OFFSET_MS);\n const m = local.getUTCMonth() + months;\n const targetYear = local.getUTCFullYear() + Math.floor(m / 12);\n const targetMonth = ((m % 12) + 12) % 12;\n const lastDay = new Date(Date.UTC(targetYear, targetMonth + 1, 0)).getUTCDate();\n const shifted = Date.UTC(\n targetYear,\n targetMonth,\n Math.min(local.getUTCDate(), lastDay),\n local.getUTCHours(),\n local.getUTCMinutes(),\n local.getUTCSeconds(),\n local.getUTCMilliseconds(),\n );\n return new Date(shifted - INDIA_UTC_OFFSET_MS);\n}\n\n/** What an upgrade costs for each whole calendar year of Premium left: the yearly difference. */\nexport const UPGRADE_PER_YEAR = PLAN_SPECS.business.prices.year - PLAN_SPECS.premium.prices.year;\n/** ...for each whole calendar month after the years: the monthly difference (a 31-day month and February alike). */\nexport const UPGRADE_PER_MONTH = PLAN_SPECS.business.prices.month - PLAN_SPECS.premium.prices.month;\n/** The days left over are charged as this many to a month. */\nexport const UPGRADE_DAYS_PER_MONTH = 30;\n/** ...so each day left over costs this, never more than `UPGRADE_PER_MONTH` for them all. */\nexport const UPGRADE_PER_DAY = UPGRADE_PER_MONTH / UPGRADE_DAYS_PER_MONTH;\n\n/**\n * What an upgrade of `convertedMs` of Premium, from `now`, costs in paise (the\n * user: \"ask for the rest of the money, the difference\"). Each whole calendar\n * year left costs `UPGRADE_PER_YEAR`; each whole calendar month after that,\n * `UPGRADE_PER_MONTH`; the days left over `UPGRADE_PER_DAY` each, but never\n * more than one month's. The part below a year never costs more than a year's.\n * A part day counts as a day; rounded up to the rupee.\n */\nexport function upgradePrice(convertedMs: number, now: Date): number {\n const end = now.getTime() + Math.max(convertedMs, 1);\n let years = 0;\n while (addPlanPeriod(now, 'year', years + 1).getTime() <= end) years += 1;\n const afterYears = addPlanPeriod(now, 'year', years);\n let months = 0;\n while (addPlanPeriod(afterYears, 'month', months + 1).getTime() <= end) months += 1;\n const restDays = Math.ceil((end - addPlanPeriod(afterYears, 'month', months).getTime()) / DAY_MS);\n const belowAYear =\n months * UPGRADE_PER_MONTH + Math.min(restDays * UPGRADE_PER_DAY, UPGRADE_PER_MONTH);\n const paise = years * UPGRADE_PER_YEAR + Math.min(belowAYear, UPGRADE_PER_YEAR);\n return Math.ceil(paise / 100) * 100;\n}\n\n/**\n * Free founding memberships (0.14.0): the first 100 people to join the launch\n * waitlist get their membership free, numbered #1 to #100 by their place\n * (the user, 2026-10-16). Everyone else pays `MEMBERSHIP_PRICE_PAISE` once.\n * No code gives a founding place any more.\n */\nexport const FOUNDING_PLACES = 100;\n\n/**\n * THE EARLY-BIRD OFFER (0.21.0; the user, 2026-11-14): everyone whose Founder\n * Circle account was CREATED before this instant gets the membership free, for\n * life, with no code and no limit on how many. After it, the membership costs\n * `MEMBERSHIP_PRICE_PAISE` as before.\n *\n * Tue 17 Nov 2026, 12:00 IST. The ONE place it is written: the server grants\n * from it (`isEarlyBird`), and the web's landing, pricing, membership screen,\n * Terms and llms.txt word the offer from it and stop offering it at this\n * instant. Moving it is a schema release, like a price.\n */\nexport const EARLY_BIRD_UNTIL = '2026-11-17T06:30:00.000Z';\n\nconst EARLY_BIRD_UNTIL_MS = Date.parse(EARLY_BIRD_UNTIL);\n\n/** Whether an account created at `createdAt` gets the early-bird membership. */\nexport function isEarlyBird(createdAt: Date | string | number): boolean {\n const at = createdAt instanceof Date ? createdAt.getTime() : new Date(createdAt).getTime();\n return Number.isFinite(at) && at < EARLY_BIRD_UNTIL_MS;\n}\n\n/** Whether the offer is still open at `now`: what the pages show. */\nexport function earlyBirdOpen(now: Date | number = Date.now()): boolean {\n return (now instanceof Date ? now.getTime() : now) < EARLY_BIRD_UNTIL_MS;\n}\n\n// ─── GET /plans ──────────────────────────────────────────────────────────────\n\nexport const planOfferSchema = z.object({\n tier: planTierSchema,\n /** \"Premium\", \"Business\": the server's word, so a rename needs no client release. */\n name: z.string(),\n /** GST included. */\n prices: z.object({ month: paiseSchema, year: paiseSchema }),\n limits: planLimitsSchema,\n});\nexport type PlanOffer = z.infer<typeof planOfferSchema>;\n\nexport const planCatalogSchema = z.object({\n currency: z.literal('INR'),\n membership: z.object({\n /** Once, for life, GST included. */\n price: paiseSchema,\n limits: planLimitsSchema,\n }),\n /** Lowest first. */\n plans: z.array(planOfferSchema),\n /** Every purchase is refunded in full within this many days of paying. */\n refundWindowDays: z.number().int().positive(),\n /**\n * Whether a payment can be taken here now. False when the gateway is not\n * configured: a free coupon still works, a paid purchase answers\n * `PAYMENTS_UNAVAILABLE`.\n */\n paymentsEnabled: z.boolean(),\n});\nexport type PlanCatalog = z.infer<typeof planCatalogSchema>;\n\n// ─── GET /me/membership ──────────────────────────────────────────────────────\n\nexport const membershipSchema = z.object({\n kind: membershipKindSchema,\n since: z.iso.datetime(),\n /** \"Founding member #N\": set only for `founding`. */\n foundingNumber: z.number().int().positive().nullable(),\n});\nexport type Membership = z.infer<typeof membershipSchema>;\n\n/** A stretch of one tier. Blocks never overlap and follow each other with no gap. */\nexport const planBlockSchema = z.object({\n tier: planTierSchema,\n startsAt: z.iso.datetime(),\n endsAt: z.iso.datetime(),\n});\nexport type PlanBlock = z.infer<typeof planBlockSchema>;\n\n/** Why someone takes part: their membership, or a staff role (staff are members). */\nexport const TAKES_PART_THROUGH_VALUES = ['membership', 'staff'] as const;\nexport type TakesPartThrough = (typeof TAKES_PART_THROUGH_VALUES)[number];\n\nexport const meMembershipSchema = z.object({\n standing: standingSchema,\n /** Null for a viewer, and for staff who hold none (they take part through their role). */\n membership: membershipSchema.nullable(),\n /** Why they take part: their membership, or a staff role (staff are members). Null for a viewer. */\n through: z.enum(TAKES_PART_THROUGH_VALUES).nullable(),\n plan: z.object({\n /** The tier in force now; null with no plan. */\n tier: planTierSchema.nullable(),\n /** From now on, Business first, then Premium. Empty with no plan. */\n blocks: z.array(planBlockSchema),\n }),\n limits: planLimitsSchema,\n products: z.object({\n /** Products they own that are live now. */\n live: z.number().int().nonnegative(),\n /** Products they own, paused ones included. */\n owned: z.number().int().nonnegative(),\n /**\n * What adding another counts against (0.13.0): live ones and the ones\n * they paused themselves, not those a plan's end paused. \"Add a product\"\n * stops when this reaches `limits.productsLive`: pausing never makes room.\n */\n counted: z.number().int().nonnegative(),\n }),\n messages: z.object({\n /** New people they started a conversation with this month (India time). */\n used: z.number().int().nonnegative(),\n /** When this month's count starts again. */\n resetsAt: z.iso.datetime(),\n }),\n /** The billing details they last used, to prefill the next checkout; null before the first. */\n billing: billingDetailsSchema.nullable(),\n});\nexport type MeMembership = z.infer<typeof meMembershipSchema>;\n"]}
@@ -51,12 +51,16 @@ import { z } from 'zod';
51
51
  * plan_ending your plan ends in 7 days, then in 1 day (0.12.0, always delivered)
52
52
  * plan_ended your plan ended; `paused` products were paused (0.12.0, always delivered)
53
53
  * payment_refunded staff refunded one of your payments (0.12.0, always delivered)
54
+ * chat_message someone messaged you while you were not in that chat (always
55
+ * delivered; the browser's permission is the off switch). One
56
+ * row per conversation: more messages merge into it, and opening
57
+ * the chat marks it read. No message text is stored on it.
54
58
  *
55
59
  * The three 0.8.0 kinds merge per target like the others. A reaction counts
56
60
  * once: changing it to another type is not a new event, and taking it back
57
61
  * does not take the event back.
58
62
  */
59
- export declare const NOTIFICATION_KIND_VALUES: readonly ["comment_on_post", "reply_to_comment", "product_invite", "product_invite_accepted", "product_review", "review_reply", "feedback_helpful", "tester_confirmed", "post_reaction", "comment_reaction", "repost", "community_join_request", "community_request_approved", "community_invite", "community_announcement", "community_suggestion_decided", "plan_ending", "plan_ended", "payment_refunded"];
63
+ export declare const NOTIFICATION_KIND_VALUES: readonly ["comment_on_post", "reply_to_comment", "product_invite", "product_invite_accepted", "product_review", "review_reply", "feedback_helpful", "tester_confirmed", "post_reaction", "comment_reaction", "repost", "community_join_request", "community_request_approved", "community_invite", "community_announcement", "community_suggestion_decided", "plan_ending", "plan_ended", "payment_refunded", "chat_message"];
60
64
  export declare const notificationKindSchema: z.ZodEnum<{
61
65
  feedback_helpful: "feedback_helpful";
62
66
  tester_confirmed: "tester_confirmed";
@@ -77,6 +81,7 @@ export declare const notificationKindSchema: z.ZodEnum<{
77
81
  plan_ending: "plan_ending";
78
82
  plan_ended: "plan_ended";
79
83
  payment_refunded: "payment_refunded";
84
+ chat_message: "chat_message";
80
85
  }>;
81
86
  export type NotificationKind = z.infer<typeof notificationKindSchema>;
82
87
  /** The switches a member has, each covering one or more kinds. */
@@ -106,6 +111,7 @@ export declare const NOTIFICATION_PREFERENCE_OF: {
106
111
  readonly plan_ending: null;
107
112
  readonly plan_ended: null;
108
113
  readonly payment_refunded: null;
114
+ readonly chat_message: null;
109
115
  };
110
116
  /**
111
117
  * One row of the bell. Which of the optional targets are present depends on
@@ -130,6 +136,7 @@ export declare const NOTIFICATION_PREFERENCE_OF: {
130
136
  * plan_ending plan (the tier, and when it ends)
131
137
  * plan_ended plan (the tier that ended), paused (how many products)
132
138
  * payment_refunded payment
139
+ * chat_message conversationId (the chat to open)
133
140
  *
134
141
  * Any row about something inside a community also carries `community`
135
142
  * (0.9.0), whatever its kind. When the recipient leaves the community, is
@@ -161,6 +168,7 @@ export declare const notificationSchema: z.ZodObject<{
161
168
  plan_ending: "plan_ending";
162
169
  plan_ended: "plan_ended";
163
170
  payment_refunded: "payment_refunded";
171
+ chat_message: "chat_message";
164
172
  }>;
165
173
  actor: z.ZodNullable<z.ZodObject<{
166
174
  userId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -221,6 +229,7 @@ export declare const notificationSchema: z.ZodObject<{
221
229
  id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
222
230
  title: z.ZodString;
223
231
  }, z.core.$strip>>;
232
+ conversationId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
224
233
  role: z.ZodOptional<z.ZodEnum<{
225
234
  team: "team";
226
235
  cofounder: "cofounder";
@@ -263,6 +272,7 @@ export declare const notificationPageSchema: z.ZodObject<{
263
272
  plan_ending: "plan_ending";
264
273
  plan_ended: "plan_ended";
265
274
  payment_refunded: "payment_refunded";
275
+ chat_message: "chat_message";
266
276
  }>;
267
277
  actor: z.ZodNullable<z.ZodObject<{
268
278
  userId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -323,6 +333,7 @@ export declare const notificationPageSchema: z.ZodObject<{
323
333
  id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
324
334
  title: z.ZodString;
325
335
  }, z.core.$strip>>;
336
+ conversationId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
326
337
  role: z.ZodOptional<z.ZodEnum<{
327
338
  team: "team";
328
339
  cofounder: "cofounder";
@@ -344,6 +355,15 @@ export declare const notificationPageSchema: z.ZodObject<{
344
355
  nextCursor: z.ZodNullable<z.ZodString>;
345
356
  }, z.core.$strip>;
346
357
  export type NotificationPage = z.infer<typeof notificationPageSchema>;
358
+ /**
359
+ * A row by its group key, the caller's own: what a tapped push opens
360
+ * (`PUT /notifications/by-key/:groupKey/read`). One push goes to many members
361
+ * with one link; the key is the same for each of them and names no one.
362
+ */
363
+ export declare const notificationKeyParamsSchema: z.ZodObject<{
364
+ groupKey: z.ZodString;
365
+ }, z.core.$strip>;
366
+ export type NotificationKeyParams = z.infer<typeof notificationKeyParamsSchema>;
347
367
  /** The badge. */
348
368
  export declare const notificationUnreadCountSchema: z.ZodObject<{
349
369
  unread: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/domains/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,+YAoB3B,CAAC;AACX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;EAAmC,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,kE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,CAAC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,iBAAiB;AACjB,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,wBAAwB;;iBAA+C,CAAC;AACrF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,+CAA+C;AAC/C,eAAO,MAAM,6BAA6B;;;;;;;;iBAWxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,kFAAkF;AAClF,eAAO,MAAM,uCAAuC;;;;;;;;iBAQlD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC"}
@@ -59,6 +59,10 @@ import { memberBylineSchema } from '../profile/founder-profile.js';
59
59
  * plan_ending your plan ends in 7 days, then in 1 day (0.12.0, always delivered)
60
60
  * plan_ended your plan ended; `paused` products were paused (0.12.0, always delivered)
61
61
  * payment_refunded staff refunded one of your payments (0.12.0, always delivered)
62
+ * chat_message someone messaged you while you were not in that chat (always
63
+ * delivered; the browser's permission is the off switch). One
64
+ * row per conversation: more messages merge into it, and opening
65
+ * the chat marks it read. No message text is stored on it.
62
66
  *
63
67
  * The three 0.8.0 kinds merge per target like the others. A reaction counts
64
68
  * once: changing it to another type is not a new event, and taking it back
@@ -84,6 +88,7 @@ export const NOTIFICATION_KIND_VALUES = [
84
88
  'plan_ending',
85
89
  'plan_ended',
86
90
  'payment_refunded',
91
+ 'chat_message',
87
92
  ];
88
93
  export const notificationKindSchema = z.enum(NOTIFICATION_KIND_VALUES);
89
94
  /** The switches a member has, each covering one or more kinds. */
@@ -120,6 +125,7 @@ export const NOTIFICATION_PREFERENCE_OF = {
120
125
  plan_ending: null,
121
126
  plan_ended: null,
122
127
  payment_refunded: null,
128
+ chat_message: null,
123
129
  };
124
130
  /**
125
131
  * One row of the bell. Which of the optional targets are present depends on
@@ -144,6 +150,7 @@ export const NOTIFICATION_PREFERENCE_OF = {
144
150
  * plan_ending plan (the tier, and when it ends)
145
151
  * plan_ended plan (the tier that ended), paused (how many products)
146
152
  * payment_refunded payment
153
+ * chat_message conversationId (the chat to open)
147
154
  *
148
155
  * Any row about something inside a community also carries `community`
149
156
  * (0.9.0), whatever its kind. When the recipient leaves the community, is
@@ -194,6 +201,8 @@ export const notificationSchema = z.object({
194
201
  paused: z.number().int().nonnegative().optional(),
195
202
  /** For `payment_refunded` (0.12.0): which purchase, by its title. */
196
203
  payment: z.object({ id: objectIdSchema, title: z.string() }).optional(),
204
+ /** For `chat_message`: the conversation, so the row opens that chat. */
205
+ conversationId: objectIdSchema.optional(),
197
206
  /** For `product_invite`: the role offered. */
198
207
  role: productInvitableRoleSchema.optional(),
199
208
  /** For the reaction kinds: the latest reaction, as it is now (0.8.0). */
@@ -212,6 +221,14 @@ export const notificationSchema = z.object({
212
221
  createdAt: z.iso.datetime(),
213
222
  });
214
223
  export const notificationPageSchema = paginatedSchema(notificationSchema);
224
+ /**
225
+ * A row by its group key, the caller's own: what a tapped push opens
226
+ * (`PUT /notifications/by-key/:groupKey/read`). One push goes to many members
227
+ * with one link; the key is the same for each of them and names no one.
228
+ */
229
+ export const notificationKeyParamsSchema = z.object({
230
+ groupKey: z.string().min(1).max(120),
231
+ });
215
232
  /** The badge. */
216
233
  export const notificationUnreadCountSchema = z.object({
217
234
  unread: z.number().int().nonnegative(),
@@ -1 +1 @@
1
- {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/domains/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;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Founder Circle Schema Review\"):\n *\n * - ONE ROW PER RECIPIENT, written when the event happens.\n * - REPEATS MERGE: a second comment on your post updates the same row\n * (\"2 new comments, latest from Asha\"), it never adds one. `count` is how\n * many events it holds and `actor` the latest. A member repeating the same\n * act (reacting, taking it back, reacting again) does not ring it again.\n * - THE ACTOR IS LOOKED UP WHEN READ, never copied in: a renamed member shows\n * their new name, and a deleted one shows as null (\"A former member\").\n * - PREFERENCES ARE CHECKED before writing (Jansathi stores them and never\n * reads them). A team invitation is always delivered: it needs an answer.\n * - KEPT `NOTIFICATION_RETENTION_DAYS`, then deleted.\n * - Nobody is notified of their own action.\n *\n * In-app only. Push stays chat's (async-service) until a channel is designed:\n * a client polls the unread count (on focus, and every minute while visible).\n *\n * Routes (all signed in):\n * GET /api/v1/notifications paginationQuerySchema -> notificationPageSchema\n * GET /api/v1/notifications/unread-count -> notificationUnreadCountSchema\n * POST /api/v1/notifications/read mark every one read -> notificationUnreadCountSchema\n * PUT /api/v1/notifications/:notificationId/read -> notificationSchema\n * GET /api/v1/notifications/preferences -> notificationPreferencesSchema\n * PUT /api/v1/notifications/preferences updateNotificationPreferencesBodySchema -> notificationPreferencesSchema\n *\n * @module founder-schema/domains/notifications\n */\n\nimport { z } from 'zod';\nimport { objectIdSchema } from '../../core/common.js';\nimport { NOTIFICATION_EXCERPT_MAX } from '../../core/limits.js';\nimport { paginatedSchema } from '../../core/responses.js';\nimport {\n communityChipSchema,\n communitySuggestionDecisionSchema,\n} from '../communities/communities.js';\nimport { contentKindSchema, reactionTypeSchema } from '../feed/feed.js';\nimport { planTierSchema } from '../membership/membership.js';\nimport { productChipSchema, productInvitableRoleSchema } from '../products/products.js';\nimport { memberBylineSchema } from '../profile/founder-profile.js';\n\n/**\n * What happened. ⚠ Stored per row: append only.\n *\n * comment_on_post someone commented on your post or poll\n * reply_to_comment someone replied to your comment\n * product_invite a team invited you (always delivered)\n * product_invite_accepted someone accepted your team's invitation\n * product_review someone reviewed a product you are on the team of\n * review_reply a product's team answered your review\n * feedback_helpful a team marked your feedback as having helped\n * tester_confirmed a team confirmed you tested their product\n * post_reaction someone reacted to your post or poll (0.8.0)\n * comment_reaction someone reacted to your comment (0.8.0)\n * repost someone reposted your post or poll (0.8.0)\n * community_join_request someone asked to join a community you moderate (0.9.0)\n * community_request_approved your request to join was approved (always delivered)\n * community_invite a community invited you (always delivered)\n * community_announcement a community you are in pinned an announcement for everyone\n * community_suggestion_decided your community suggestion was approved or declined (always delivered)\n * plan_ending your plan ends in 7 days, then in 1 day (0.12.0, always delivered)\n * plan_ended your plan ended; `paused` products were paused (0.12.0, always delivered)\n * payment_refunded staff refunded one of your payments (0.12.0, always delivered)\n *\n * The three 0.8.0 kinds merge per target like the others. A reaction counts\n * once: changing it to another type is not a new event, and taking it back\n * does not take the event back.\n */\nexport const NOTIFICATION_KIND_VALUES = [\n 'comment_on_post',\n 'reply_to_comment',\n 'product_invite',\n 'product_invite_accepted',\n 'product_review',\n 'review_reply',\n 'feedback_helpful',\n 'tester_confirmed',\n 'post_reaction',\n 'comment_reaction',\n 'repost',\n 'community_join_request',\n 'community_request_approved',\n 'community_invite',\n 'community_announcement',\n 'community_suggestion_decided',\n 'plan_ending',\n 'plan_ended',\n 'payment_refunded',\n] as const;\nexport const notificationKindSchema = z.enum(NOTIFICATION_KIND_VALUES);\nexport type NotificationKind = z.infer<typeof notificationKindSchema>;\n\n/** The switches a member has, each covering one or more kinds. */\nexport const NOTIFICATION_PREFERENCE_VALUES = [\n 'comments',\n 'replies',\n 'productActivity',\n 'recognition',\n 'reactions',\n 'reposts',\n 'communities',\n] as const;\nexport type NotificationPreference = (typeof NOTIFICATION_PREFERENCE_VALUES)[number];\n\n/**\n * Which switch silences which kind. Null: always delivered. Exhaustive by\n * type, so a kind added without a decision here does not compile.\n */\nexport const NOTIFICATION_PREFERENCE_OF = {\n comment_on_post: 'comments',\n reply_to_comment: 'replies',\n product_invite: null,\n product_invite_accepted: 'productActivity',\n product_review: 'productActivity',\n review_reply: 'productActivity',\n feedback_helpful: 'recognition',\n tester_confirmed: 'recognition',\n post_reaction: 'reactions',\n comment_reaction: 'reactions',\n repost: 'reposts',\n community_join_request: 'communities',\n community_request_approved: null,\n community_invite: null,\n community_announcement: 'communities',\n community_suggestion_decided: null,\n plan_ending: null,\n plan_ended: null,\n payment_refunded: null,\n} as const satisfies Record<NotificationKind, NotificationPreference | null>;\n\n/**\n * One row of the bell. Which of the optional targets are present depends on\n * `kind`:\n *\n * comment_on_post content, commentId\n * reply_to_comment content, commentId (the reply)\n * product_invite product, role\n * product_invite_accepted product\n * product_review product, reviewId\n * review_reply product, reviewId\n * feedback_helpful product, content, commentId\n * tester_confirmed product\n * post_reaction content, reaction\n * comment_reaction content, commentId, reaction, excerpt (your comment)\n * repost content (yours, the one reposted), repostId (the latest repost, to read their words)\n * community_join_request community\n * community_request_approved community\n * community_invite community\n * community_announcement community, content (the pinned post or poll)\n * community_suggestion_decided suggestion, community (once approved)\n * plan_ending plan (the tier, and when it ends)\n * plan_ended plan (the tier that ended), paused (how many products)\n * payment_refunded payment\n *\n * Any row about something inside a community also carries `community`\n * (0.9.0), whatever its kind. When the recipient leaves the community, is\n * removed or is banned, its rows about that community lose their content,\n * comment, excerpt and repost: what they could read there, they no longer can.\n *\n * A target that no longer exists (a deleted post, product or review) is\n * absent rather than pointing at a 404; the row still says what happened.\n */\nexport const notificationSchema = z.object({\n id: objectIdSchema,\n kind: notificationKindSchema,\n /** The latest person to do it, live; null for a deleted account. */\n actor: memberBylineSchema.nullable(),\n /**\n * How many EVENTS this row merges, at least 1: three comments by one person\n * are 3. Word it as events (\"3 new comments, latest from Asha\"), never as\n * people (\"Asha and 2 others\"), which this count does not know.\n */\n count: z.number().int().positive(),\n content: z.object({ kind: contentKindSchema, id: objectIdSchema }).optional(),\n commentId: objectIdSchema.optional(),\n product: productChipSchema.optional(),\n reviewId: objectIdSchema.optional(),\n /**\n * For `repost` (0.8.0): the latest repost itself, so the row opens the\n * reposter's words above your post. Gone once that repost is.\n */\n repostId: objectIdSchema.optional(),\n /**\n * The community the row is about, or that its content is in (0.9.0). Absent\n * once that community is deleted, or the recipient may no longer see it.\n */\n community: communityChipSchema.optional(),\n /** For `community_suggestion_decided` (0.9.0): which suggestion, and how it went. */\n suggestion: z\n .object({\n id: objectIdSchema,\n name: z.string(),\n status: communitySuggestionDecisionSchema,\n /** Why it was declined. */\n reason: z.string().optional(),\n })\n .optional(),\n /** For `plan_ending` and `plan_ended` (0.12.0): which tier, and when it ends or ended. */\n plan: z.object({ tier: planTierSchema, endsAt: z.iso.datetime() }).optional(),\n /** For `plan_ended` (0.12.0): products paused because the plan's live places went. */\n paused: z.number().int().nonnegative().optional(),\n /** For `payment_refunded` (0.12.0): which purchase, by its title. */\n payment: z.object({ id: objectIdSchema, title: z.string() }).optional(),\n /** For `product_invite`: the role offered. */\n role: productInvitableRoleSchema.optional(),\n /** For the reaction kinds: the latest reaction, as it is now (0.8.0). */\n reaction: reactionTypeSchema.optional(),\n /**\n * The first words of what was written, for the comment and review kinds\n * (the latest one, on a merged row), cut to `NOTIFICATION_EXCERPT_MAX`. Gone\n * when that comment or review is deleted or hidden, and when its writer's\n * account is.\n */\n excerpt: z.string().max(NOTIFICATION_EXCERPT_MAX).optional(),\n /** Null until opened (or until \"mark all read\"). A merged repeat makes it unread again. */\n readAt: z.iso.datetime().nullable(),\n /** When it last happened: the list's order. */\n lastAt: z.iso.datetime(),\n createdAt: z.iso.datetime(),\n});\nexport type Notification = z.infer<typeof notificationSchema>;\n\nexport const notificationPageSchema = paginatedSchema(notificationSchema);\nexport type NotificationPage = z.infer<typeof notificationPageSchema>;\n\n/** The badge. */\nexport const notificationUnreadCountSchema = z.object({\n unread: z.number().int().nonnegative(),\n});\nexport type NotificationUnreadCount = z.infer<typeof notificationUnreadCountSchema>;\n\nexport const notificationParamsSchema = z.object({ notificationId: objectIdSchema });\nexport type NotificationParams = z.infer<typeof notificationParamsSchema>;\n\n/** Every switch, as stored (on by default). */\nexport const notificationPreferencesSchema = z.object({\n comments: z.boolean(),\n replies: z.boolean(),\n productActivity: z.boolean(),\n recognition: z.boolean(),\n /** Reactions to your posts, polls and comments (0.8.0). */\n reactions: z.boolean(),\n /** Reposts of your posts and polls (0.8.0). */\n reposts: z.boolean(),\n /** Announcements in your communities, and join requests to communities you moderate (0.9.0). */\n communities: z.boolean(),\n});\nexport type NotificationPreferences = z.infer<typeof notificationPreferencesSchema>;\n\n/** Only the switches that changed; no defaults (a patch states what was sent). */\nexport const updateNotificationPreferencesBodySchema = z.object({\n comments: z.boolean().optional(),\n replies: z.boolean().optional(),\n productActivity: z.boolean().optional(),\n recognition: z.boolean().optional(),\n reactions: z.boolean().optional(),\n reposts: z.boolean().optional(),\n communities: z.boolean().optional(),\n});\nexport type UpdateNotificationPreferencesBody = z.infer<\n typeof updateNotificationPreferencesBodySchema\n>;\n"]}
1
+ {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/domains/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,mBAAmB,EACnB,iCAAiC,GAClC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CA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OAAO,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE;IAC5B,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;IACxB,2DAA2D;IAC3D,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,+CAA+C;IAC/C,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,gGAAgG;IAChG,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;CACzB,CAAC,CAAC;AAGH,kFAAkF;AAClF,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC","sourcesContent":["/**\n * founder-schema — Notifications: the bell\n *\n * The design the user approved on 2026-10-05 (\"Founder Circle Schema Review\"):\n *\n * - ONE ROW PER RECIPIENT, written when the event happens.\n * - REPEATS MERGE: a second comment on your post updates the same row\n * (\"2 new comments, latest from Asha\"), it never adds one. `count` is how\n * many events it holds and `actor` the latest. A member repeating the same\n * act (reacting, taking it back, reacting again) does not ring it again.\n * - THE ACTOR IS LOOKED UP WHEN READ, never copied in: a renamed member shows\n * their new name, and a deleted one shows as null (\"A former member\").\n * - PREFERENCES ARE CHECKED before writing (Jansathi stores them and never\n * reads them). A team invitation is always delivered: it needs an answer.\n * - KEPT `NOTIFICATION_RETENTION_DAYS`, then deleted.\n * - Nobody is notified of their own action.\n *\n * In-app only. Push stays chat's (async-service) until a channel is designed:\n * a client polls the unread count (on focus, and every minute while visible).\n *\n * Routes (all signed in):\n * GET /api/v1/notifications paginationQuerySchema -> notificationPageSchema\n * GET /api/v1/notifications/unread-count -> notificationUnreadCountSchema\n * POST /api/v1/notifications/read mark every one read -> notificationUnreadCountSchema\n * PUT /api/v1/notifications/:notificationId/read -> notificationSchema\n * GET /api/v1/notifications/preferences -> notificationPreferencesSchema\n * PUT /api/v1/notifications/preferences updateNotificationPreferencesBodySchema -> notificationPreferencesSchema\n *\n * @module founder-schema/domains/notifications\n */\n\nimport { z } from 'zod';\nimport { objectIdSchema } from '../../core/common.js';\nimport { NOTIFICATION_EXCERPT_MAX } from '../../core/limits.js';\nimport { paginatedSchema } from '../../core/responses.js';\nimport {\n communityChipSchema,\n communitySuggestionDecisionSchema,\n} from '../communities/communities.js';\nimport { contentKindSchema, reactionTypeSchema } from '../feed/feed.js';\nimport { planTierSchema } from '../membership/membership.js';\nimport { productChipSchema, productInvitableRoleSchema } from '../products/products.js';\nimport { memberBylineSchema } from '../profile/founder-profile.js';\n\n/**\n * What happened. ⚠ Stored per row: append only.\n *\n * comment_on_post someone commented on your post or poll\n * reply_to_comment someone replied to your comment\n * product_invite a team invited you (always delivered)\n * product_invite_accepted someone accepted your team's invitation\n * product_review someone reviewed a product you are on the team of\n * review_reply a product's team answered your review\n * feedback_helpful a team marked your feedback as having helped\n * tester_confirmed a team confirmed you tested their product\n * post_reaction someone reacted to your post or poll (0.8.0)\n * comment_reaction someone reacted to your comment (0.8.0)\n * repost someone reposted your post or poll (0.8.0)\n * community_join_request someone asked to join a community you moderate (0.9.0)\n * community_request_approved your request to join was approved (always delivered)\n * community_invite a community invited you (always delivered)\n * community_announcement a community you are in pinned an announcement for everyone\n * community_suggestion_decided your community suggestion was approved or declined (always delivered)\n * plan_ending your plan ends in 7 days, then in 1 day (0.12.0, always delivered)\n * plan_ended your plan ended; `paused` products were paused (0.12.0, always delivered)\n * payment_refunded staff refunded one of your payments (0.12.0, always delivered)\n * chat_message someone messaged you while you were not in that chat (always\n * delivered; the browser's permission is the off switch). One\n * row per conversation: more messages merge into it, and opening\n * the chat marks it read. No message text is stored on it.\n *\n * The three 0.8.0 kinds merge per target like the others. A reaction counts\n * once: changing it to another type is not a new event, and taking it back\n * does not take the event back.\n */\nexport const NOTIFICATION_KIND_VALUES = [\n 'comment_on_post',\n 'reply_to_comment',\n 'product_invite',\n 'product_invite_accepted',\n 'product_review',\n 'review_reply',\n 'feedback_helpful',\n 'tester_confirmed',\n 'post_reaction',\n 'comment_reaction',\n 'repost',\n 'community_join_request',\n 'community_request_approved',\n 'community_invite',\n 'community_announcement',\n 'community_suggestion_decided',\n 'plan_ending',\n 'plan_ended',\n 'payment_refunded',\n 'chat_message',\n] as const;\nexport const notificationKindSchema = z.enum(NOTIFICATION_KIND_VALUES);\nexport type NotificationKind = z.infer<typeof notificationKindSchema>;\n\n/** The switches a member has, each covering one or more kinds. */\nexport const NOTIFICATION_PREFERENCE_VALUES = [\n 'comments',\n 'replies',\n 'productActivity',\n 'recognition',\n 'reactions',\n 'reposts',\n 'communities',\n] as const;\nexport type NotificationPreference = (typeof NOTIFICATION_PREFERENCE_VALUES)[number];\n\n/**\n * Which switch silences which kind. Null: always delivered. Exhaustive by\n * type, so a kind added without a decision here does not compile.\n */\nexport const NOTIFICATION_PREFERENCE_OF = {\n comment_on_post: 'comments',\n reply_to_comment: 'replies',\n product_invite: null,\n product_invite_accepted: 'productActivity',\n product_review: 'productActivity',\n review_reply: 'productActivity',\n feedback_helpful: 'recognition',\n tester_confirmed: 'recognition',\n post_reaction: 'reactions',\n comment_reaction: 'reactions',\n repost: 'reposts',\n community_join_request: 'communities',\n community_request_approved: null,\n community_invite: null,\n community_announcement: 'communities',\n community_suggestion_decided: null,\n plan_ending: null,\n plan_ended: null,\n payment_refunded: null,\n chat_message: null,\n} as const satisfies Record<NotificationKind, NotificationPreference | null>;\n\n/**\n * One row of the bell. Which of the optional targets are present depends on\n * `kind`:\n *\n * comment_on_post content, commentId\n * reply_to_comment content, commentId (the reply)\n * product_invite product, role\n * product_invite_accepted product\n * product_review product, reviewId\n * review_reply product, reviewId\n * feedback_helpful product, content, commentId\n * tester_confirmed product\n * post_reaction content, reaction\n * comment_reaction content, commentId, reaction, excerpt (your comment)\n * repost content (yours, the one reposted), repostId (the latest repost, to read their words)\n * community_join_request community\n * community_request_approved community\n * community_invite community\n * community_announcement community, content (the pinned post or poll)\n * community_suggestion_decided suggestion, community (once approved)\n * plan_ending plan (the tier, and when it ends)\n * plan_ended plan (the tier that ended), paused (how many products)\n * payment_refunded payment\n * chat_message conversationId (the chat to open)\n *\n * Any row about something inside a community also carries `community`\n * (0.9.0), whatever its kind. When the recipient leaves the community, is\n * removed or is banned, its rows about that community lose their content,\n * comment, excerpt and repost: what they could read there, they no longer can.\n *\n * A target that no longer exists (a deleted post, product or review) is\n * absent rather than pointing at a 404; the row still says what happened.\n */\nexport const notificationSchema = z.object({\n id: objectIdSchema,\n kind: notificationKindSchema,\n /** The latest person to do it, live; null for a deleted account. */\n actor: memberBylineSchema.nullable(),\n /**\n * How many EVENTS this row merges, at least 1: three comments by one person\n * are 3. Word it as events (\"3 new comments, latest from Asha\"), never as\n * people (\"Asha and 2 others\"), which this count does not know.\n */\n count: z.number().int().positive(),\n content: z.object({ kind: contentKindSchema, id: objectIdSchema }).optional(),\n commentId: objectIdSchema.optional(),\n product: productChipSchema.optional(),\n reviewId: objectIdSchema.optional(),\n /**\n * For `repost` (0.8.0): the latest repost itself, so the row opens the\n * reposter's words above your post. Gone once that repost is.\n */\n repostId: objectIdSchema.optional(),\n /**\n * The community the row is about, or that its content is in (0.9.0). Absent\n * once that community is deleted, or the recipient may no longer see it.\n */\n community: communityChipSchema.optional(),\n /** For `community_suggestion_decided` (0.9.0): which suggestion, and how it went. */\n suggestion: z\n .object({\n id: objectIdSchema,\n name: z.string(),\n status: communitySuggestionDecisionSchema,\n /** Why it was declined. */\n reason: z.string().optional(),\n })\n .optional(),\n /** For `plan_ending` and `plan_ended` (0.12.0): which tier, and when it ends or ended. */\n plan: z.object({ tier: planTierSchema, endsAt: z.iso.datetime() }).optional(),\n /** For `plan_ended` (0.12.0): products paused because the plan's live places went. */\n paused: z.number().int().nonnegative().optional(),\n /** For `payment_refunded` (0.12.0): which purchase, by its title. */\n payment: z.object({ id: objectIdSchema, title: z.string() }).optional(),\n /** For `chat_message`: the conversation, so the row opens that chat. */\n conversationId: objectIdSchema.optional(),\n /** For `product_invite`: the role offered. */\n role: productInvitableRoleSchema.optional(),\n /** For the reaction kinds: the latest reaction, as it is now (0.8.0). */\n reaction: reactionTypeSchema.optional(),\n /**\n * The first words of what was written, for the comment and review kinds\n * (the latest one, on a merged row), cut to `NOTIFICATION_EXCERPT_MAX`. Gone\n * when that comment or review is deleted or hidden, and when its writer's\n * account is.\n */\n excerpt: z.string().max(NOTIFICATION_EXCERPT_MAX).optional(),\n /** Null until opened (or until \"mark all read\"). A merged repeat makes it unread again. */\n readAt: z.iso.datetime().nullable(),\n /** When it last happened: the list's order. */\n lastAt: z.iso.datetime(),\n createdAt: z.iso.datetime(),\n});\nexport type Notification = z.infer<typeof notificationSchema>;\n\nexport const notificationPageSchema = paginatedSchema(notificationSchema);\nexport type NotificationPage = z.infer<typeof notificationPageSchema>;\n\n/**\n * A row by its group key, the caller's own: what a tapped push opens\n * (`PUT /notifications/by-key/:groupKey/read`). One push goes to many members\n * with one link; the key is the same for each of them and names no one.\n */\nexport const notificationKeyParamsSchema = z.object({\n groupKey: z.string().min(1).max(120),\n});\nexport type NotificationKeyParams = z.infer<typeof notificationKeyParamsSchema>;\n\n/** The badge. */\nexport const notificationUnreadCountSchema = z.object({\n unread: z.number().int().nonnegative(),\n});\nexport type NotificationUnreadCount = z.infer<typeof notificationUnreadCountSchema>;\n\nexport const notificationParamsSchema = z.object({ notificationId: objectIdSchema });\nexport type NotificationParams = z.infer<typeof notificationParamsSchema>;\n\n/** Every switch, as stored (on by default). */\nexport const notificationPreferencesSchema = z.object({\n comments: z.boolean(),\n replies: z.boolean(),\n productActivity: z.boolean(),\n recognition: z.boolean(),\n /** Reactions to your posts, polls and comments (0.8.0). */\n reactions: z.boolean(),\n /** Reposts of your posts and polls (0.8.0). */\n reposts: z.boolean(),\n /** Announcements in your communities, and join requests to communities you moderate (0.9.0). */\n communities: z.boolean(),\n});\nexport type NotificationPreferences = z.infer<typeof notificationPreferencesSchema>;\n\n/** Only the switches that changed; no defaults (a patch states what was sent). */\nexport const updateNotificationPreferencesBodySchema = z.object({\n comments: z.boolean().optional(),\n replies: z.boolean().optional(),\n productActivity: z.boolean().optional(),\n recognition: z.boolean().optional(),\n reactions: z.boolean().optional(),\n reposts: z.boolean().optional(),\n communities: z.boolean().optional(),\n});\nexport type UpdateNotificationPreferencesBody = z.infer<\n typeof updateNotificationPreferencesBodySchema\n>;\n"]}
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Web push: a member's browser asks to be told
3
+ * =============================================
4
+ * The wire shapes of Founder Circle's push endpoints (`/api/v1/push/...`).
5
+ * The backend forwards them to the shared async-service, which holds the
6
+ * VAPID keys and the subscriptions; Founder Circle stores none of it.
7
+ *
8
+ * GET /push/public-key the VAPID public key the browser subscribes with
9
+ * POST /push/subscriptions store this browser's subscription for the member
10
+ * GET /push/subscriptions/status whether the member has any device subscribed
11
+ * DELETE /push/subscriptions/current turn push off for THIS sign-in session only
12
+ * (what sign-out does; never someone else's)
13
+ *
14
+ * What a push says is decided by the backend per notification kind: the
15
+ * actor's name and one fixed sentence, never anything a member wrote (hary's
16
+ * ruling 2026-11-16: a push shows on a locked screen).
17
+ */
18
+ import { z } from 'zod';
19
+ /** A device label a member might see in a device list ("Chrome on Android"). */
20
+ export declare const PUSH_DEVICE_LABEL_MAX = 100;
21
+ /**
22
+ * `PushSubscription.toJSON()` from the browser, as the web sends it. The
23
+ * endpoint is the push service's URL (always https); the two keys encrypt the
24
+ * payload for that browser only.
25
+ */
26
+ export declare const pushSubscribeBodySchema: z.ZodObject<{
27
+ endpoint: z.ZodURL;
28
+ keys: z.ZodObject<{
29
+ p256dh: z.ZodString;
30
+ auth: z.ZodString;
31
+ }, z.core.$strip>;
32
+ deviceLabel: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ export type PushSubscribeBody = z.infer<typeof pushSubscribeBodySchema>;
35
+ export declare const pushPublicKeySchema: z.ZodObject<{
36
+ publicKey: z.ZodString;
37
+ }, z.core.$strip>;
38
+ export type PushPublicKey = z.infer<typeof pushPublicKeySchema>;
39
+ export declare const pushStatusSchema: z.ZodObject<{
40
+ subscribed: z.ZodBoolean;
41
+ }, z.core.$strip>;
42
+ export type PushStatus = z.infer<typeof pushStatusSchema>;
43
+ /** The answer to subscribing and to turning push off for this session. */
44
+ export declare const pushSubscriptionResultSchema: z.ZodObject<{
45
+ subscribed: z.ZodBoolean;
46
+ removed: z.ZodOptional<z.ZodNumber>;
47
+ }, z.core.$strip>;
48
+ export type PushSubscriptionResult = z.infer<typeof pushSubscriptionResultSchema>;
49
+ //# sourceMappingURL=push.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../../src/domains/notifications/push.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gFAAgF;AAChF,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;iBAUlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,mBAAmB;;iBAA6C,CAAC;AAC9E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,gBAAgB;;iBAG3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,0EAA0E;AAC1E,eAAO,MAAM,4BAA4B;;;iBAIvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Web push: a member's browser asks to be told
3
+ * =============================================
4
+ * The wire shapes of Founder Circle's push endpoints (`/api/v1/push/...`).
5
+ * The backend forwards them to the shared async-service, which holds the
6
+ * VAPID keys and the subscriptions; Founder Circle stores none of it.
7
+ *
8
+ * GET /push/public-key the VAPID public key the browser subscribes with
9
+ * POST /push/subscriptions store this browser's subscription for the member
10
+ * GET /push/subscriptions/status whether the member has any device subscribed
11
+ * DELETE /push/subscriptions/current turn push off for THIS sign-in session only
12
+ * (what sign-out does; never someone else's)
13
+ *
14
+ * What a push says is decided by the backend per notification kind: the
15
+ * actor's name and one fixed sentence, never anything a member wrote (hary's
16
+ * ruling 2026-11-16: a push shows on a locked screen).
17
+ */
18
+ import { z } from 'zod';
19
+ /** A device label a member might see in a device list ("Chrome on Android"). */
20
+ export const PUSH_DEVICE_LABEL_MAX = 100;
21
+ /**
22
+ * `PushSubscription.toJSON()` from the browser, as the web sends it. The
23
+ * endpoint is the push service's URL (always https); the two keys encrypt the
24
+ * payload for that browser only.
25
+ */
26
+ export const pushSubscribeBodySchema = z.object({
27
+ endpoint: z
28
+ .url()
29
+ .max(2048)
30
+ .refine((u) => u.startsWith('https://'), 'A push endpoint is always https'),
31
+ keys: z.object({
32
+ p256dh: z.string().min(1).max(200),
33
+ auth: z.string().min(1).max(100),
34
+ }),
35
+ deviceLabel: z.string().trim().max(PUSH_DEVICE_LABEL_MAX).optional(),
36
+ });
37
+ export const pushPublicKeySchema = z.object({ publicKey: z.string().min(1) });
38
+ export const pushStatusSchema = z.object({
39
+ /** True when at least one of the member's devices will receive pushes. */
40
+ subscribed: z.boolean(),
41
+ });
42
+ /** The answer to subscribing and to turning push off for this session. */
43
+ export const pushSubscriptionResultSchema = z.object({
44
+ subscribed: z.boolean(),
45
+ /** How many subscriptions turning off removed (this session's devices). */
46
+ removed: z.number().int().nonnegative().optional(),
47
+ });
48
+ //# sourceMappingURL=push.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"push.js","sourceRoot":"","sources":["../../../src/domains/notifications/push.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,gFAAgF;AAChF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAEzC;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,CAAC;SACR,GAAG,EAAE;SACL,GAAG,CAAC,IAAI,CAAC;SACT,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,iCAAiC,CAAC;IAC7E,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;KACjC,CAAC;IACF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE;CACrE,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAG9E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,0EAA0E;IAC1E,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC;AAGH,0EAA0E;AAC1E,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,2EAA2E;IAC3E,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC","sourcesContent":["/**\n * Web push: a member's browser asks to be told\n * =============================================\n * The wire shapes of Founder Circle's push endpoints (`/api/v1/push/...`).\n * The backend forwards them to the shared async-service, which holds the\n * VAPID keys and the subscriptions; Founder Circle stores none of it.\n *\n * GET /push/public-key the VAPID public key the browser subscribes with\n * POST /push/subscriptions store this browser's subscription for the member\n * GET /push/subscriptions/status whether the member has any device subscribed\n * DELETE /push/subscriptions/current turn push off for THIS sign-in session only\n * (what sign-out does; never someone else's)\n *\n * What a push says is decided by the backend per notification kind: the\n * actor's name and one fixed sentence, never anything a member wrote (hary's\n * ruling 2026-11-16: a push shows on a locked screen).\n */\n\nimport { z } from 'zod';\n\n/** A device label a member might see in a device list (\"Chrome on Android\"). */\nexport const PUSH_DEVICE_LABEL_MAX = 100;\n\n/**\n * `PushSubscription.toJSON()` from the browser, as the web sends it. The\n * endpoint is the push service's URL (always https); the two keys encrypt the\n * payload for that browser only.\n */\nexport const pushSubscribeBodySchema = z.object({\n endpoint: z\n .url()\n .max(2048)\n .refine((u) => u.startsWith('https://'), 'A push endpoint is always https'),\n keys: z.object({\n p256dh: z.string().min(1).max(200),\n auth: z.string().min(1).max(100),\n }),\n deviceLabel: z.string().trim().max(PUSH_DEVICE_LABEL_MAX).optional(),\n});\nexport type PushSubscribeBody = z.infer<typeof pushSubscribeBodySchema>;\n\nexport const pushPublicKeySchema = z.object({ publicKey: z.string().min(1) });\nexport type PushPublicKey = z.infer<typeof pushPublicKeySchema>;\n\nexport const pushStatusSchema = z.object({\n /** True when at least one of the member's devices will receive pushes. */\n subscribed: z.boolean(),\n});\nexport type PushStatus = z.infer<typeof pushStatusSchema>;\n\n/** The answer to subscribing and to turning push off for this session. */\nexport const pushSubscriptionResultSchema = z.object({\n subscribed: z.boolean(),\n /** How many subscriptions turning off removed (this session's devices). */\n removed: z.number().int().nonnegative().optional(),\n});\nexport type PushSubscriptionResult = z.infer<typeof pushSubscriptionResultSchema>;\n"]}
package/dist/index.d.ts CHANGED
@@ -33,9 +33,10 @@ export { AREA_TYPE_VALUES, type AreaList, type AreaOption, type AreaPage, type A
33
33
  export { CITY_ALIASES, canonicalCityName, canonicalIndiaLocation, findIndiaState, INDIA, INDIA_DIALING_CODE, INDIA_STATE_NAMES, INDIA_STATES, type IndiaState, type IndiaStateName, listedCityName, publicCityOf, STATE_ALIASES, townName, } from './domains/location/india.js';
34
34
  export { MEDIA_ATTACHMENT_KIND_VALUES, MEDIA_PURPOSE_VALUES, MEDIA_SIZES, MEDIA_STATUS_VALUES, MEDIA_UPLOAD_CONTENT_TYPES, MEDIA_VARIANTS_MAX, type MediaAttachmentKind, type MediaImage, type MediaPurpose, type MediaStatus, type MediaUploadContentType, type MediaVariant, mediaAttachmentKindSchema, mediaImageSchema, mediaPurposeSchema, mediaStatusSchema, mediaUploadContentTypeSchema, mediaVariantSchema, type UploadedMedia, uploadedMediaSchema, } from './domains/media/media.js';
35
35
  export { MEMBER_STATUS_VALUES, type MemberDetail, type MemberDirectoryPage, type MemberDirectoryQuery, type MemberDirectoryQueryInput, type MemberParams, type MemberStatus, type MemberSummary, memberDetailSchema, memberDirectoryPageSchema, memberDirectoryQuerySchema, memberParamsSchema, memberStatusSchema, memberSummarySchema, type SuspendMemberBody, type Suspension, suspendMemberBodySchema, suspensionSchema, } from './domains/members/members.js';
36
- export { addPlanPeriod, FOUNDING_PLACES, MEMBER_LIMIT_VALUES, MEMBERSHIP_END_REASON_VALUES, MEMBERSHIP_KIND_VALUES, MEMBERSHIP_PRICE_PAISE, MEMBERSHIP_STATUS_VALUES, type MeMembership, type Membership, type MembershipEndReason, type MembershipKind, type MembershipStatus, meMembershipSchema, membershipEndReasonSchema, membershipKindSchema, membershipSchema, membershipStatusSchema, type Paise, PLAN_PERIOD_VALUES, PLAN_SPECS, PLAN_TIER_RANK, PLAN_TIER_VALUES, type PlanBlock, type PlanCatalog, type PlanLimits, type PlanOffer, type PlanPeriod, type PlanTier, paiseSchema, planBlockSchema, planCatalogSchema, planLimitsSchema, planOfferSchema, planPeriodSchema, planTierSchema, TAKES_PART_THROUGH_VALUES, type TakesPartThrough, UPGRADE_DAYS_PER_MONTH, UPGRADE_PER_DAY, UPGRADE_PER_MONTH, UPGRADE_PER_YEAR, upgradePrice, } from './domains/membership/membership.js';
36
+ export { addPlanPeriod, EARLY_BIRD_UNTIL, earlyBirdOpen, FOUNDING_PLACES, isEarlyBird, MEMBER_LIMIT_VALUES, MEMBERSHIP_END_REASON_VALUES, MEMBERSHIP_KIND_VALUES, MEMBERSHIP_PRICE_PAISE, MEMBERSHIP_STATUS_VALUES, type MeMembership, type Membership, type MembershipEndReason, type MembershipKind, type MembershipStatus, meMembershipSchema, membershipEndReasonSchema, membershipKindSchema, membershipSchema, membershipStatusSchema, type Paise, PLAN_PERIOD_VALUES, PLAN_SPECS, PLAN_TIER_RANK, PLAN_TIER_VALUES, type PlanBlock, type PlanCatalog, type PlanLimits, type PlanOffer, type PlanPeriod, type PlanTier, paiseSchema, planBlockSchema, planCatalogSchema, planLimitsSchema, planOfferSchema, planPeriodSchema, planTierSchema, TAKES_PART_THROUGH_VALUES, type TakesPartThrough, UPGRADE_DAYS_PER_MONTH, UPGRADE_PER_DAY, UPGRADE_PER_MONTH, UPGRADE_PER_YEAR, upgradePrice, } from './domains/membership/membership.js';
37
37
  export { MODERATION_ACTION_VALUES, MODERATION_ACTIONS_BY_TARGET_KIND, MODERATION_CONTEXT_KIND_VALUES, MODERATION_STATE_VALUES, type ModerationAction, type ModerationContentQuery, type ModerationContentQueryInput, type ModerationContextKind, type ModerationDecisionBody, type ModerationItem, type ModerationPage, type ModerationState, type ModerationTargetParams, moderationActionSchema, moderationContentQuerySchema, moderationContextKindSchema, moderationDecisionBodySchema, moderationItemSchema, moderationPageSchema, moderationStateSchema, moderationTargetParamsSchema, } from './domains/moderation/moderation.js';
38
- export { NOTIFICATION_KIND_VALUES, NOTIFICATION_PREFERENCE_OF, NOTIFICATION_PREFERENCE_VALUES, type Notification, type NotificationKind, type NotificationPage, type NotificationParams, type NotificationPreference, type NotificationPreferences, type NotificationUnreadCount, notificationKindSchema, notificationPageSchema, notificationParamsSchema, notificationPreferencesSchema, notificationSchema, notificationUnreadCountSchema, type UpdateNotificationPreferencesBody, updateNotificationPreferencesBodySchema, } from './domains/notifications/notifications.js';
38
+ export { NOTIFICATION_KIND_VALUES, NOTIFICATION_PREFERENCE_OF, NOTIFICATION_PREFERENCE_VALUES, type Notification, type NotificationKeyParams, type NotificationKind, type NotificationPage, type NotificationParams, type NotificationPreference, type NotificationPreferences, type NotificationUnreadCount, notificationKeyParamsSchema, notificationKindSchema, notificationPageSchema, notificationParamsSchema, notificationPreferencesSchema, notificationSchema, notificationUnreadCountSchema, type UpdateNotificationPreferencesBody, updateNotificationPreferencesBodySchema, } from './domains/notifications/notifications.js';
39
+ export { PUSH_DEVICE_LABEL_MAX, type PushPublicKey, type PushStatus, type PushSubscribeBody, type PushSubscriptionResult, pushPublicKeySchema, pushStatusSchema, pushSubscribeBodySchema, pushSubscriptionResultSchema, } from './domains/notifications/push.js';
39
40
  export { ageInYears, BUSINESS_TYPE_VALUES, type BusinessType, businessTypeSchema, type CompleteOnboardingBody, type CompleteOnboardingBodyInput, type CompleteOnboardingResponse, type ContactLinks, completeOnboardingBodySchema, completeOnboardingResponseSchema, contactLinksSchema, DATE_INPUT_MAX, type DateOfBirth, dateOfBirthBounds, dateOfBirthSchema, dateToIsoDate, EMPTY_ONBOARDING_VENTURE, FOUNDER_ONBOARDING_STEPS, GOAL_CATEGORIES, GOAL_CATEGORY_KEYS, type GoalCategory, type GoalCategoryKey, GUIDELINES_VERSION, GUIDELINES_VERSION_MAX, guidelinesVersionSchema, INTERESTS_MAX, INTERESTS_MIN, type IsoDate, interestsSchema, isoDateSchema, isoDateToDate, isRealIsoDate, isUnderAgeDateOfBirth, LEGAL_STRUCTURE_VALUES, type LegalStructure, legalStructureSchema, MAX_AGE_YEARS, MIN_AGE_YEARS, ONBOARDING_DRAFT_KEYS, ONBOARDING_STEP_FIELDS, ONBOARDING_STEP_KEYS, ONBOARDING_STEP_SCHEMAS, ONBOARDING_TOTAL_STEPS, type OnboardingDraft, type OnboardingDraftKey, type OnboardingField, type OnboardingForm, type OnboardingProgressUpdate, type OnboardingStatus, type OnboardingStepBody, type OnboardingStepConfig, type OnboardingStepKey, onboardingDraftKeySchema, onboardingDraftSchema, onboardingFormSchema, onboardingProgressUpdateSchema, onboardingStatusSchema, PHONE_INPUT_MAX, readOnboardingDraft, TEAM_SIZE_DIGITS_MAX, TOPIC_CATEGORIES, TOPIC_CATEGORY_KEYS, TOPIC_VALUES, type Topic, type TopicCategory, type TopicCategoryKey, teamSizeDigits, todayInIndia, topicSchema, } from './domains/onboarding/onboarding.js';
40
41
  export { type CompleteOnboardingBodyCandidate, completeOnboardingBodyFrom, emptyOnboardingForm, foundedYearDigits, locationStarted, onboardingDraftForStep, ventureBodyFrom, ventureStarted, } from './domains/onboarding/onboarding-answers.js';
41
42
  export { formerPerson, initialsOf, type Person, personSchema } from './domains/people/person.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACL,KAAK,cAAc,EACnB,oBAAoB,EACpB,KAAK,gBAA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B,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACL,KAAK,cAAc,EACnB,oBAAoB,EACpB,KAAK,gBAAgB,EACrB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,KAAK,UAAU,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EACb,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,WAAW,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,KAAK,YAAY,EACjB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,KAAK,IAAI,EACT,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,oBAAoB,EACpB,KAAK,YAAY,EACjB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,KAAK,QAAQ,EACb,cAAc,GACf,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,oBAAoB,EACpB,QAAQ,EACR,sBAAsB,EACtB,KAAK,eAAe,EACpB,cAAc,EACd,aAAa,EACb,KAAK,MAAM,EACX,WAAW,EACX,KAAK,IAAI,EACT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AACtC,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,+BAA+B,EAC/B,mCAAmC,EACnC,wBAAwB,EACxB,4BAA4B,EAC5B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,KAAK,UAAU,EACf,gBAAgB,EAChB,uBAAuB,EACvB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC"}
package/dist/index.js CHANGED
@@ -53,10 +53,11 @@ export { CITY_ALIASES, canonicalCityName, canonicalIndiaLocation, findIndiaState
53
53
  export { MEDIA_ATTACHMENT_KIND_VALUES, MEDIA_PURPOSE_VALUES, MEDIA_SIZES, MEDIA_STATUS_VALUES, MEDIA_UPLOAD_CONTENT_TYPES, MEDIA_VARIANTS_MAX, mediaAttachmentKindSchema, mediaImageSchema, mediaPurposeSchema, mediaStatusSchema, mediaUploadContentTypeSchema, mediaVariantSchema, uploadedMediaSchema, } from './domains/media/media.js';
54
54
  export { MEMBER_STATUS_VALUES, memberDetailSchema, memberDirectoryPageSchema, memberDirectoryQuerySchema, memberParamsSchema, memberStatusSchema, memberSummarySchema, suspendMemberBodySchema, suspensionSchema, } from './domains/members/members.js';
55
55
  // ─── Membership and plans, as a member holds them (0.12.0) ──────────────────
56
- export { addPlanPeriod, FOUNDING_PLACES, MEMBER_LIMIT_VALUES, MEMBERSHIP_END_REASON_VALUES, MEMBERSHIP_KIND_VALUES, MEMBERSHIP_PRICE_PAISE, MEMBERSHIP_STATUS_VALUES, meMembershipSchema, membershipEndReasonSchema, membershipKindSchema, membershipSchema, membershipStatusSchema, PLAN_PERIOD_VALUES, PLAN_SPECS, PLAN_TIER_RANK, PLAN_TIER_VALUES, paiseSchema, planBlockSchema, planCatalogSchema, planLimitsSchema, planOfferSchema, planPeriodSchema, planTierSchema, TAKES_PART_THROUGH_VALUES, UPGRADE_DAYS_PER_MONTH, UPGRADE_PER_DAY, UPGRADE_PER_MONTH, UPGRADE_PER_YEAR, upgradePrice, } from './domains/membership/membership.js';
56
+ export { addPlanPeriod, EARLY_BIRD_UNTIL, earlyBirdOpen, FOUNDING_PLACES, isEarlyBird, MEMBER_LIMIT_VALUES, MEMBERSHIP_END_REASON_VALUES, MEMBERSHIP_KIND_VALUES, MEMBERSHIP_PRICE_PAISE, MEMBERSHIP_STATUS_VALUES, meMembershipSchema, membershipEndReasonSchema, membershipKindSchema, membershipSchema, membershipStatusSchema, PLAN_PERIOD_VALUES, PLAN_SPECS, PLAN_TIER_RANK, PLAN_TIER_VALUES, paiseSchema, planBlockSchema, planCatalogSchema, planLimitsSchema, planOfferSchema, planPeriodSchema, planTierSchema, TAKES_PART_THROUGH_VALUES, UPGRADE_DAYS_PER_MONTH, UPGRADE_PER_DAY, UPGRADE_PER_MONTH, UPGRADE_PER_YEAR, upgradePrice, } from './domains/membership/membership.js';
57
57
  export { MODERATION_ACTION_VALUES, MODERATION_ACTIONS_BY_TARGET_KIND, MODERATION_CONTEXT_KIND_VALUES, MODERATION_STATE_VALUES, moderationActionSchema, moderationContentQuerySchema, moderationContextKindSchema, moderationDecisionBodySchema, moderationItemSchema, moderationPageSchema, moderationStateSchema, moderationTargetParamsSchema, } from './domains/moderation/moderation.js';
58
58
  // ─── Notifications: the bell ─────────────────────────────────────────────────
59
- export { NOTIFICATION_KIND_VALUES, NOTIFICATION_PREFERENCE_OF, NOTIFICATION_PREFERENCE_VALUES, notificationKindSchema, notificationPageSchema, notificationParamsSchema, notificationPreferencesSchema, notificationSchema, notificationUnreadCountSchema, updateNotificationPreferencesBodySchema, } from './domains/notifications/notifications.js';
59
+ export { NOTIFICATION_KIND_VALUES, NOTIFICATION_PREFERENCE_OF, NOTIFICATION_PREFERENCE_VALUES, notificationKeyParamsSchema, notificationKindSchema, notificationPageSchema, notificationParamsSchema, notificationPreferencesSchema, notificationSchema, notificationUnreadCountSchema, updateNotificationPreferencesBodySchema, } from './domains/notifications/notifications.js';
60
+ export { PUSH_DEVICE_LABEL_MAX, pushPublicKeySchema, pushStatusSchema, pushSubscribeBodySchema, pushSubscriptionResultSchema, } from './domains/notifications/push.js';
60
61
  // ─── Onboarding ──────────────────────────────────────────────────────────────
61
62
  export { ageInYears, BUSINESS_TYPE_VALUES, businessTypeSchema, completeOnboardingBodySchema, completeOnboardingResponseSchema, contactLinksSchema, DATE_INPUT_MAX, dateOfBirthBounds, dateOfBirthSchema, dateToIsoDate, EMPTY_ONBOARDING_VENTURE, FOUNDER_ONBOARDING_STEPS, GOAL_CATEGORIES, GOAL_CATEGORY_KEYS, GUIDELINES_VERSION, GUIDELINES_VERSION_MAX, guidelinesVersionSchema, INTERESTS_MAX, INTERESTS_MIN, interestsSchema, isoDateSchema, isoDateToDate, isRealIsoDate, isUnderAgeDateOfBirth, LEGAL_STRUCTURE_VALUES, legalStructureSchema, MAX_AGE_YEARS, MIN_AGE_YEARS, ONBOARDING_DRAFT_KEYS, ONBOARDING_STEP_FIELDS, ONBOARDING_STEP_KEYS, ONBOARDING_STEP_SCHEMAS, ONBOARDING_TOTAL_STEPS, onboardingDraftKeySchema, onboardingDraftSchema, onboardingFormSchema, onboardingProgressUpdateSchema, onboardingStatusSchema, PHONE_INPUT_MAX, readOnboardingDraft, TEAM_SIZE_DIGITS_MAX, TOPIC_CATEGORIES, TOPIC_CATEGORY_KEYS, TOPIC_VALUES, teamSizeDigits, todayInIndia, topicSchema, } from './domains/onboarding/onboarding.js';
62
63
  export { completeOnboardingBodyFrom, emptyOnboardingForm, foundedYearDigits, locationStarted, onboardingDraftForStep, ventureBodyFrom, ventureStarted, } from './domains/onboarding/onboarding-answers.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAC/E,OAAO,EAEL,oBAAoB,EAEpB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EAGV,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EAEjB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EAIb,YAAY,EAEZ,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EAId,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,WAAW,EACX,oBAAoB,EAEpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EAEX,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,oBAAoB,EAEpB,cAAc,EACd,kBAAkB,EAClB,eAAe,EAEf,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,gFAAgF;AAChF,OAAO,EACL,oBAAoB,EACpB,QAAQ,EACR,sBAAsB,EAEtB,cAAc,EACd,aAAa,EAEb,WAAW,EAEX,YAAY,EACZ,cAAc,EACd,UAAU,EACV,WAAW,EAEX,cAAc,EACd,aAAa,EACb,eAAe,EAEf,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,cAAc,EAEd,cAAc,EACd,qBAAqB,EAGrB,YAAY,EAEZ,qBAAqB,EACrB,WAAW,E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ACL,oBAAoB,EACpB,sBAAsB,EAKtB,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC;AACtC,+EAA+E;AAC/E,OAAO,EAEL,gBAAgB,EAChB,uBAAuB,EAIvB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC","sourcesContent":["/**\n * founder-schema — Shared Zod schemas for Founder Circle\n *\n * The single source of truth consumed by founder-circle-backend, the web\n * client and the app client: every request, every response, every limit,\n * every error code. Publishing rule (TEAM.md 5a): the version only ever moves\n * on `dev`, never on a feat branch.\n *\n * @module founder-schema\n */\n\n// ─── Access: roles, permissions (CASL), the MPIN and the active role ────────\nexport {\n type ChangeMpinBody,\n changeMpinBodySchema,\n type MeAccessResponse,\n MPIN_LENGTH,\n MPIN_LOCK_MS,\n MPIN_MAX_ATTEMPTS,\n meAccessResponseSchema,\n mpinSchema,\n type SetMpinBody,\n type SwitchRoleBody,\n setMpinBodySchema,\n switchRoleBodySchema,\n} from './access/access.js';\nexport {\n CAPABILITY_GRANTED_BY,\n CAPABILITY_VALUES,\n type Capability,\n canGrantCapability,\n capabilitySchema,\n} from './access/capabilities.js';\nexport {\n ACTION_VALUES,\n type Action,\n type AppAbility,\n type AppRawRule,\n isAppRawRule,\n type PackedRules,\n packedRuleSchema,\n packedRulesSchema,\n SUBJECT_VALUES,\n type Subject,\n type SubjectFields,\n type SubjectInstance,\n subjectSchema,\n} from './access/permissions.js';\nexport {\n ACTIVE_ROLE_TTL_MS,\n canGrantRole,\n isPlatformRole,\n MEMBER_ROLE,\n PLATFORM_ROLE_VALUES,\n type PlatformRole,\n platformRoleSchema,\n ROLE_GRANTED_BY,\n ROLE_VALUES,\n type Role,\n roleSchema,\n} from './access/roles.js';\nexport {\n ACCESS_REASON_VALUES,\n type AccessReason,\n accessReasonOf,\n accessReasonSchema,\n STANDING_VALUES,\n type Standing,\n standingSchema,\n} from './access/standing.js';\n// ─── Common helpers and enums ────────────────────────────────────────────────\nexport {\n chosenUsernameSchema,\n eachOnce,\n emptyStringToUndefined,\n type FounderLocation,\n fullNameSchema,\n GENDER_VALUES,\n type Gender,\n GOAL_VALUES,\n type Goal,\n genderSchema,\n goalListSchema,\n goalSchema,\n graphemesOf,\n type HttpUrl,\n httpUrlOnHosts,\n httpUrlSchema,\n INDUSTRY_VALUES,\n type Industry,\n industrySchema,\n isReservedUsername,\n isUrlOnHost,\n joinFullName,\n locationSchema,\n multiValueQuery,\n nameFromSignIn,\n normalizeLinkUrl,\n normalizePhone,\n type ObjectIdString,\n objectIdSchema,\n optionalTrimmedString,\n type PaginationQuery,\n type PaginationQueryInput,\n PHONE_DIGITS,\n type Phone,\n paginationQuerySchema,\n phoneSchema,\n queryInt,\n RESERVED_USERNAMES,\n requiredGoalListSchema,\n type SafeUrl,\n SKILL_VALUES,\n type Skill,\n STARTUP_STAGE_VALUES,\n type StartupStage,\n safeUrlSchema,\n skillListSchema,\n skillSchema,\n splitFullName,\n startupStageSchema,\n tidyFullName,\n USERNAME_MAX,\n USERNAME_MIN,\n type Username,\n usernameSchema,\n YOUTUBE_HOSTS,\n youtubeVideoId,\n} from './core/common.js';\n// ─── Soft delete (0.20.0) ────────────────────────────────────────────────────\nexport { DELETED_REASON_VALUES, type DeletedReason, deletedReasonSchema } from './core/deletion.js';\n// ─── Error codes ─────────────────────────────────────────────────────────────\nexport {\n API_ERROR_CODE,\n API_ERROR_CODE_VALUES,\n type ApiErrorCode,\n apiErrorCodeSchema,\n} from './core/errors.js';\n// ─── Limits: every length, size and count, by name ──────────────────────────\nexport {\n ABOUT_MAX,\n AREA_NAME_MAX,\n AREA_SEARCH_MAX,\n BILLING_ADDRESS_MAX,\n BILLING_ADDRESS_MIN,\n BILLING_NAME_MAX,\n BILLING_NAME_MIN,\n BILLING_REASON_MAX,\n BILLING_REASON_MIN,\n CHAT_PARTICIPANTS_MAX,\n CITY_MAX,\n COMMUNITY_BAN_REASON_MAX,\n COMMUNITY_DECLINE_REASON_MAX,\n COMMUNITY_DECLINE_REASON_MIN,\n COMMUNITY_DESCRIPTION_MAX,\n COMMUNITY_NAME_MAX,\n COMMUNITY_NAME_MIN,\n COMMUNITY_RULE_MAX,\n COMMUNITY_RULES_MAX,\n COMMUNITY_SUGGESTION_WHY_MAX,\n CONTRIBUTION_LEADERBOARD_SIZE,\n CONTRIBUTION_PAIR_POINTS_MAX,\n CONTRIBUTION_PAIR_WINDOW_DAYS,\n CONTRIBUTION_RECENT_DAYS,\n COUNTRY_MAX,\n COUPON_CODE_MAX,\n COUPON_CODE_MIN,\n COUPON_LABEL_MAX,\n COUPON_LABEL_MIN,\n COUPON_PERCENT_MAX,\n COUPON_PERCENT_MIN,\n COUPON_USES_MAX,\n CURSOR_MAX,\n DASHBOARD_RECENT_DAYS,\n DAY_MS,\n DISCOVER_FILTER_VALUES_MAX,\n DISCOVER_TEXT_MAX,\n DISPLAY_NAME_MAX,\n ERASURE_RETENTION_DAYS,\n FOUNDED_YEAR_MIN,\n GEO_ACCURACY_MAX_M,\n GEO_PRECISE_ACCURACY_M,\n GEO_SYNC_ACCURACY_MAX_M,\n GOALS_MIN,\n GSTIN_LENGTH,\n HEADLINE_MAX,\n INDIA_TIME_ZONE,\n INDIA_UTC_OFFSET_MS,\n INVOICE_NUMBER_MAX,\n LINK_URL_MAX,\n LOCALITY_PAGE_SIZE,\n LOCALITY_SKIP_MAX,\n LOCATION_HISTORY_MAX,\n LOCATION_HISTORY_MAX_DAYS,\n MEDIA_ALT_MAX,\n MEDIA_MAX_INPUT_PIXELS,\n MEDIA_PENDING_MAX,\n MEDIA_PLACEHOLDER_MAX,\n MEDIA_UNATTACHED_TTL_HOURS,\n MEMBER_SEARCH_MAX,\n MODERATION_EXCERPT_MAX,\n MODERATION_NOTE_MAX,\n NOTIFICATION_EXCERPT_MAX,\n NOTIFICATION_RETENTION_DAYS,\n ONBOARDING_DRAFT_RETENTION_DAYS,\n ORDER_TTL_MINUTES,\n PAGE_SIZE_DEFAULT,\n PAGE_SIZE_MAX,\n PLAN_AHEAD_MAX_YEARS,\n PLAN_REMINDER_DAYS,\n PRODUCT_ASK_OPEN_DAYS,\n PRODUCT_CAPTION_MAX,\n PRODUCT_DESCRIPTION_MAX,\n PRODUCT_NAME_MAX,\n PRODUCT_SCREENSHOTS_MAX,\n PRODUCT_TAGLINE_MAX,\n PRODUCT_TEAM_SHOWN,\n PRODUCTS_LIVE_SAFETY_MAX,\n RATING_MAX,\n RATING_MIN,\n RAZORPAY_EVENT_RETENTION_DAYS,\n RAZORPAY_ID_MAX,\n RAZORPAY_SIGNATURE_MAX,\n REFUND_WINDOW_DAYS,\n REPORT_NOTE_MAX,\n REVIEW_AVERAGE_MIN_COUNT,\n REVIEW_HELPFUL_POINTS_MAX,\n REVIEW_REPLY_MAX,\n REVIEW_TEXT_MAX,\n REVIEW_TEXT_MIN,\n refundWindowEndsAt,\n SAVED_REPLIES_MAX,\n SAVED_REPLY_BODY_MAX,\n SAVED_REPLY_TITLE_MAX,\n SKILLS_MAX,\n STATE_MAX,\n SUSPENSION_REASON_MAX,\n SUSPENSION_REASON_MIN,\n TEAM_SIZE_MAX,\n TEAM_SIZE_MIN,\n TICKET_MESSAGE_MAX,\n TICKET_MESSAGES_MAX,\n TICKET_SUBJECT_MAX,\n TICKET_SUBJECT_MIN,\n UPLOAD_MAX_BYTES,\n VENTURE_NAME_MAX,\n VENTURE_TAGLINE_MAX,\n} from './core/limits.js';\n// ─── Money as people read it (0.18.0) ────────────────────────────────────────\nexport { keptPaise, refundLeftPaise, rupees } from './core/money.js';\n// ─── Response envelopes ──────────────────────────────────────────────────────\nexport {\n type ApiError,\n type ApiErrorDetails,\n apiErrorDetailsSchema,\n apiErrorSchema,\n type ErrorResponse,\n errorResponseSchema,\n type IdResponse,\n idResponseSchema,\n paginatedSchema,\n type QueryArgs,\n successResponseSchema,\n} from './core/responses.js';\n// ─── Validation: message keys and the wire shape of a failure ───────────────\nexport {\n REQUEST_PART_VALUES,\n type RequestPart,\n requestPartSchema,\n toValidationIssues,\n VALIDATION_MESSAGE,\n type ValidationIssue,\n type ValidationMessageKey,\n validationIssueSchema,\n} from './core/validation.js';\n// ─── Account ─────────────────────────────────────────────────────────────────\nexport {\n type DeleteAccountResponse,\n deleteAccountResponseSchema,\n} from './domains/account/account.js';\nexport {\n AUDIT_ACTION_VALUES,\n type AuditAction,\n type AuditActor,\n type AuditEntry,\n type AuditPage,\n auditActionSchema,\n auditActorSchema,\n auditEntrySchema,\n auditPageSchema,\n} from './domains/audit/audit.js';\n// ─── Billing: buying, paying, invoices, refunds, coupons (0.12.0) ───────────\nexport {\n type AppliedCoupon,\n appliedCouponSchema,\n type BillingDetails,\n billingDetailsSchema,\n COUPON_KIND_VALUES,\n COUPON_TARGET_VALUES,\n type ConfirmOrderBody,\n type Coupon,\n type CouponBenefit,\n type CouponKind,\n type CouponList,\n type CouponParams,\n type CouponTarget,\n type CreateCouponBody,\n type CreateOrderBody,\n type CreateOrderResponse,\n type CreditNote,\n confirmOrderBodySchema,\n couponBenefitSchema,\n couponCodeSchema,\n couponListSchema,\n couponParamsSchema,\n couponSchema,\n couponTargetSchema,\n createCouponBodySchema,\n createOrderBodySchema,\n createOrderResponseSchema,\n creditNoteSchema,\n GRANT_FAILURE_VALUES,\n type GrantFailure,\n GST_RATE_PERCENT,\n GST_STATE_CODE_VALUES,\n GST_STATES,\n type GstStateCode,\n grantFailureSchema,\n gstinChecksumValid,\n gstinSchema,\n gstStateCodeSchema,\n gstStateName,\n INVOICE_KIND_VALUES,\n type Invoice,\n type InvoiceKind,\n type InvoiceParty,\n invoiceKindSchema,\n invoicePartySchema,\n invoiceSchema,\n ORDER_STATUS_VALUES,\n type OrderParams,\n type OrderState,\n type OrderStatus,\n orderParamsSchema,\n orderStateSchema,\n orderStatusSchema,\n type Payer,\n type PaymentDetail,\n type PaymentPage,\n type PaymentSummary,\n type PlanEffect,\n PURCHASE_KIND_VALUES,\n type PurchaseItem,\n type PurchaseKind,\n payerSchema,\n paymentDetailSchema,\n paymentPageSchema,\n paymentSummarySchema,\n planEffectSchema,\n purchaseItemSchema,\n type Quote,\n type QuoteBody,\n quoteBodySchema,\n quoteSchema,\n type RefundPaymentBody,\n refundPaymentBodySchema,\n type SetMembershipBody,\n type StaffPaymentDetail,\n type StaffPaymentPage,\n type StaffPaymentSummary,\n type StaffPaymentsQuery,\n type StaffPaymentsQueryInput,\n setMembershipBodySchema,\n staffPaymentDetailSchema,\n staffPaymentPageSchema,\n staffPaymentSummarySchema,\n staffPaymentsQuerySchema,\n type TaxSplit,\n taxSplitSchema,\n type UpdateCouponBody,\n updateCouponBodySchema,\n} from './domains/billing/billing.js';\n// ─── Chat ────────────────────────────────────────────────────────────────────\nexport {\n CHAT_OPENED_VIA_VALUES,\n CHAT_PRODUCT_ID,\n CHAT_REACH_VALUES,\n CHAT_SOCKET_REAUTH_SECONDS,\n CHAT_TOKEN_REFRESH_MARGIN_SECONDS,\n type ChatAuthToken,\n type ChatConfig,\n type ChatOpenedVia,\n type ChatParticipant,\n type ChatParticipantsBody,\n type ChatParticipantsResponse,\n type ChatProductId,\n type ChatReach,\n type ChatReachKind,\n type ChatReachParams,\n chatAuthTokenSchema,\n chatConfigSchema,\n chatOpenedViaSchema,\n chatParticipantSchema,\n chatParticipantsBodySchema,\n chatParticipantsResponseSchema,\n chatProductIdSchema,\n chatReachKindSchema,\n chatReachParamsSchema,\n chatReachSchema,\n DIRECT_CONTACT_STATUS_VALUES,\n type DirectContactStatus,\n directContactStatusSchema,\n MESSAGE_FROM_VALUES,\n type MessageFrom,\n type MessagingSettings,\n messageFromSchema,\n messagingSettingsSchema,\n type OpenChatBody,\n type OpenChatResponse,\n openChatBodySchema,\n openChatResponseSchema,\n} from './domains/chat/chat.js';\n// ─── Communities: official spaces, their members and suggestions (0.9.0) ────\nexport {\n type BanCommunityMemberBody,\n banCommunityMemberBodySchema,\n COMMUNITY_ANNOUNCE_INTERVAL_MS,\n COMMUNITY_MEMBER_STATUS_VALUES,\n COMMUNITY_PINS_MAX,\n COMMUNITY_ROLE_VALUES,\n COMMUNITY_STATUS_VALUES,\n COMMUNITY_SUGGESTION_DECISION_VALUES,\n COMMUNITY_SUGGESTION_STATUS_VALUES,\n COMMUNITY_SUGGESTIONS_OPEN_MAX,\n COMMUNITY_TOPICS_MAX,\n COMMUNITY_VISIBILITY_RANK,\n COMMUNITY_VISIBILITY_VALUES,\n type Community,\n type CommunityBan,\n type CommunityBanPage,\n type CommunityCard,\n type CommunityCardPage,\n type CommunityCardViewer,\n type CommunityChip,\n type CommunityCommentParams,\n type CommunityContentParams,\n type CommunityDiscoverQuery,\n type CommunityDiscoverQueryInput,\n type CommunityInvite,\n type CommunityInvites,\n type CommunityMember,\n type CommunityMemberPage,\n type CommunityMemberParams,\n type CommunityMemberStatus,\n type CommunityMembersQuery,\n type CommunityMembersQueryInput,\n type CommunityParams,\n type CommunityPendingInvite,\n type CommunityPendingInvitePage,\n type CommunityRequest,\n type CommunityRequestPage,\n type CommunityRole,\n type CommunityStatus,\n type CommunitySuggestion,\n type CommunitySuggestionDecision,\n type CommunitySuggestionPage,\n type CommunitySuggestionParams,\n type CommunitySuggestionStatus,\n type CommunitySuggestionsQuery,\n type CommunitySuggestionsQueryInput,\n type CommunityViewer,\n type CommunityVisibility,\n type CreateCommunityBody,\n type CreateCommunitySuggestionBody,\n communityBanPageSchema,\n communityBanSchema,\n communityCardPageSchema,\n communityCardSchema,\n communityCardViewerSchema,\n communityChangeExposes,\n communityChipSchema,\n communityCommentParamsSchema,\n communityContentParamsSchema,\n communityDiscoverQuerySchema,\n communityInviteSchema,\n communityInvitesSchema,\n communityMemberPageSchema,\n communityMemberParamsSchema,\n communityMemberSchema,\n communityMemberStatusSchema,\n communityMembersQuerySchema,\n communityParamsSchema,\n communityPendingInvitePageSchema,\n communityPendingInviteSchema,\n communityRequestPageSchema,\n communityRequestSchema,\n communityRoleSchema,\n communitySchema,\n communityStatusSchema,\n communitySuggestionDecisionSchema,\n communitySuggestionPageSchema,\n communitySuggestionParamsSchema,\n communitySuggestionSchema,\n communitySuggestionStatusSchema,\n communitySuggestionsQuerySchema,\n communityTypeChangeAllowed,\n communityViewerSchema,\n communityVisibilitySchema,\n createCommunityBodySchema,\n createCommunitySuggestionBodySchema,\n type DeclineCommunitySuggestionBody,\n declineCommunitySuggestionBodySchema,\n type InviteCommunityMemberBody,\n inviteCommunityMemberBodySchema,\n type PinCommunityContentBody,\n pinCommunityContentBodySchema,\n type SetCommunityIconBody,\n type SetCommunityMemberRoleBody,\n type SetCommunityStatusBody,\n type SetCommunityVisibilityBody,\n setCommunityIconBodySchema,\n setCommunityMemberRoleBodySchema,\n setCommunityStatusBodySchema,\n setCommunityVisibilityBodySchema,\n type UpdateCommunityBody,\n updateCommunityBodySchema,\n} from './domains/communities/communities.js';\n// ─── Contribution: the help a member gives, recognised ───────────────────────\nexport {\n CONTRIBUTION_AWARDED_KIND_VALUES,\n CONTRIBUTION_KIND_VALUES,\n CONTRIBUTION_PERIOD_VALUES,\n CONTRIBUTION_POINTS,\n CONTRIBUTION_SOURCE_VALUES,\n type ContributionEntry,\n type ContributionKind,\n type ContributionLeaderboard,\n type ContributionLeaderboardQuery,\n type ContributionLeaderEntry,\n type ContributionPage,\n type ContributionPeriod,\n type ContributionSource,\n type ContributionYou,\n contributionEntrySchema,\n contributionKindSchema,\n contributionLeaderboardQuerySchema,\n contributionLeaderboardSchema,\n contributionLeaderEntrySchema,\n contributionPageSchema,\n contributionPeriodSchema,\n contributionSourceSchema,\n contributionYouSchema,\n} from './domains/contributions/contributions.js';\n// ─── Staff: overview, members, moderation, support, the team, the audit log ─\nexport { type Dashboard, dashboardSchema } from './domains/dashboard/dashboard.js';\n// ─── Discover ────────────────────────────────────────────────────────────────\nexport {\n type DiscoverFacets,\n type DiscoverPage,\n type DiscoverQuery,\n type DiscoverQueryInput,\n discoverFacetsSchema,\n discoverPageSchema,\n discoverQuerySchema,\n} from './domains/discover/discover.js';\n// ─── Feed: post, poll, comment, reaction ─────────────────────────────────────\nexport {\n type AttachedMedia,\n type AuthorParams,\n attachedMediaSchema,\n authorParamsSchema,\n type CastVoteBody,\n type CastVoteResponse,\n COMMENT_MAX_BODY_CHARS,\n CONTENT_KIND_VALUES,\n CONTENT_MEDIA_KIND_VALUES,\n type CommentHelpfulResponse,\n type CommentPage,\n type CommentParams,\n type CommentsQuery,\n type CommentsQueryInput,\n type ContentKind,\n type ContentMediaKind,\n type ContentParams,\n type ContentTargetParams,\n type ContentViewerState,\n type CreateCommentBody,\n type CreatePollBody,\n type CreatePostBody,\n type CreateReportBody,\n type CreateReportResponse,\n type CreateRepostBody,\n castVoteBodySchema,\n castVoteResponseSchema,\n commentHelpfulResponseSchema,\n commentPageSchema,\n commentParamsSchema,\n commentsQuerySchema,\n contentKindSchema,\n contentMediaKindSchema,\n contentParamsSchema,\n contentTargetParamsSchema,\n contentViewerStateSchema,\n createCommentBodySchema,\n createPollBodySchema,\n createPostBodySchema,\n createReportBodySchema,\n createReportResponseSchema,\n createRepostBodySchema,\n EDIT_WINDOW_MS,\n ENGAGEMENT_TARGET_KIND_VALUES,\n type EngagementTargetKind,\n type EngagementTargetParams,\n engagementTargetKindSchema,\n engagementTargetParamsSchema,\n FEED_SORT_VALUES,\n type FeedAuthor,\n type FeedComment,\n type FeedImage,\n type FeedItem,\n type FeedItemParams,\n type FeedMedia,\n type FeedPage,\n type FeedPoll,\n type FeedPost,\n type FeedQuery,\n type FeedQueryInput,\n type FeedSort,\n feedAuthorSchema,\n feedCommentSchema,\n feedImageSchema,\n feedItemParamsSchema,\n feedItemSchema,\n feedMediaSchema,\n feedPageSchema,\n feedPollSchema,\n feedPostSchema,\n feedQuerySchema,\n feedSortSchema,\n MAX_TOPICS,\n type PickableReaction,\n type PinnedItems,\n POLL_MAX_DURATION_MS,\n POLL_MAX_OPTIONS,\n POLL_MIN_DURATION_MS,\n POLL_MIN_OPTIONS,\n POLL_OPTION_MAX_CHARS,\n POLL_QUESTION_MAX_CHARS,\n POST_MAX_BODY_CHARS,\n POST_MAX_MEDIA,\n type PollOption,\n type PollParams,\n type ProductFeedbackItem,\n type ProductFeedbackPage,\n pickableReactionSchema,\n pinnedItemsSchema,\n pollOptionSchema,\n pollParamsSchema,\n postHasContent,\n productFeedbackItemSchema,\n productFeedbackPageSchema,\n REACTION_PICKER_VALUES,\n REACTION_TYPE_VALUES,\n REPORT_REASON_VALUES,\n REPORT_STATUS_VALUES,\n REPORT_TARGET_KIND_VALUES,\n type ReactionCounts,\n type ReactionsQuery,\n type ReactionsQueryInput,\n type ReactionType,\n type Reactor,\n type ReactorPage,\n type ReportReason,\n type ReportStatus,\n type ReportTargetKind,\n type RepostedSource,\n reactionCountsSchema,\n reactionsQuerySchema,\n reactionTypeSchema,\n reactorPageSchema,\n reactorSchema,\n reportReasonSchema,\n reportTargetKindSchema,\n repostedSourceSchema,\n type SetReactionBody,\n type SetReactionResponse,\n setReactionBodySchema,\n setReactionResponseSchema,\n type ToggleBookmarkResponse,\n toggleBookmarkResponseSchema,\n type UpdateCommentBody,\n type UpdatePostBody,\n updateCommentBodySchema,\n updatePostBodySchema,\n type ViewerState,\n viewerStateSchema,\n} from './domains/feed/feed.js';\n// ─── Location: the area tree, the declared location, the GPS axis (0.19.0) ──\nexport {\n AREA_TYPE_VALUES,\n type AreaList,\n type AreaOption,\n type AreaPage,\n type AreaType,\n areaListSchema,\n areaOptionSchema,\n areaPageSchema,\n areaTypeSchema,\n areaWords,\n type ClearLocationHistoryResult,\n clearLocationHistoryResultSchema,\n type DistrictsQuery,\n districtsQuerySchema,\n type GeolocationFix,\n type GeolocationSyncResult,\n geolocationFixSchema,\n geolocationSyncResultSchema,\n LOCALITY_AREA_TYPES,\n LOCALITY_TYPE_LABEL,\n LOCATION_HISTORY_KIND_VALUES,\n type LocalitiesQuery,\n type LocalitiesQueryInput,\n type LocalityAreaType,\n type LocationHistoryKind,\n type LocationPick,\n type LocationSettings,\n localitiesQuerySchema,\n locationHistoryKindSchema,\n locationPickSchema,\n locationSettingsSchema,\n type Place,\n pickOfPlace,\n placeSchema,\n placeWords,\n type UpdateLocationSettingsBody,\n URBAN_BODY_TYPE_VALUES,\n updateLocationSettingsBodySchema,\n} from './domains/location/areas.js';\n// ─── Location: India's states and cities (0.17.0) ───────────────────────────\nexport {\n CITY_ALIASES,\n canonicalCityName,\n canonicalIndiaLocation,\n findIndiaState,\n INDIA,\n INDIA_DIALING_CODE,\n INDIA_STATE_NAMES,\n INDIA_STATES,\n type IndiaState,\n type IndiaStateName,\n listedCityName,\n publicCityOf,\n STATE_ALIASES,\n townName,\n} from './domains/location/india.js';\n// ─── Media: what an uploaded image becomes ──────────────────────────────────\nexport {\n MEDIA_ATTACHMENT_KIND_VALUES,\n MEDIA_PURPOSE_VALUES,\n MEDIA_SIZES,\n MEDIA_STATUS_VALUES,\n MEDIA_UPLOAD_CONTENT_TYPES,\n MEDIA_VARIANTS_MAX,\n type MediaAttachmentKind,\n type MediaImage,\n type MediaPurpose,\n type MediaStatus,\n type MediaUploadContentType,\n type MediaVariant,\n mediaAttachmentKindSchema,\n mediaImageSchema,\n mediaPurposeSchema,\n mediaStatusSchema,\n mediaUploadContentTypeSchema,\n mediaVariantSchema,\n type UploadedMedia,\n uploadedMediaSchema,\n} from './domains/media/media.js';\nexport {\n MEMBER_STATUS_VALUES,\n type MemberDetail,\n type MemberDirectoryPage,\n type MemberDirectoryQuery,\n type MemberDirectoryQueryInput,\n type MemberParams,\n type MemberStatus,\n type MemberSummary,\n memberDetailSchema,\n memberDirectoryPageSchema,\n memberDirectoryQuerySchema,\n memberParamsSchema,\n memberStatusSchema,\n memberSummarySchema,\n type SuspendMemberBody,\n type Suspension,\n suspendMemberBodySchema,\n suspensionSchema,\n} from './domains/members/members.js';\n// ─── Membership and plans, as a member holds them (0.12.0) ──────────────────\nexport {\n addPlanPeriod,\n FOUNDING_PLACES,\n MEMBER_LIMIT_VALUES,\n MEMBERSHIP_END_REASON_VALUES,\n MEMBERSHIP_KIND_VALUES,\n MEMBERSHIP_PRICE_PAISE,\n MEMBERSHIP_STATUS_VALUES,\n type MeMembership,\n type Membership,\n type MembershipEndReason,\n type MembershipKind,\n type MembershipStatus,\n meMembershipSchema,\n membershipEndReasonSchema,\n membershipKindSchema,\n membershipSchema,\n membershipStatusSchema,\n type Paise,\n PLAN_PERIOD_VALUES,\n PLAN_SPECS,\n PLAN_TIER_RANK,\n PLAN_TIER_VALUES,\n type PlanBlock,\n type PlanCatalog,\n type PlanLimits,\n type PlanOffer,\n type PlanPeriod,\n type PlanTier,\n paiseSchema,\n planBlockSchema,\n planCatalogSchema,\n planLimitsSchema,\n planOfferSchema,\n planPeriodSchema,\n planTierSchema,\n TAKES_PART_THROUGH_VALUES,\n type TakesPartThrough,\n UPGRADE_DAYS_PER_MONTH,\n UPGRADE_PER_DAY,\n UPGRADE_PER_MONTH,\n UPGRADE_PER_YEAR,\n upgradePrice,\n} from './domains/membership/membership.js';\nexport {\n MODERATION_ACTION_VALUES,\n MODERATION_ACTIONS_BY_TARGET_KIND,\n MODERATION_CONTEXT_KIND_VALUES,\n MODERATION_STATE_VALUES,\n type ModerationAction,\n type ModerationContentQuery,\n type ModerationContentQueryInput,\n type ModerationContextKind,\n type ModerationDecisionBody,\n type ModerationItem,\n type ModerationPage,\n type ModerationState,\n type ModerationTargetParams,\n moderationActionSchema,\n moderationContentQuerySchema,\n moderationContextKindSchema,\n moderationDecisionBodySchema,\n moderationItemSchema,\n moderationPageSchema,\n moderationStateSchema,\n moderationTargetParamsSchema,\n} from './domains/moderation/moderation.js';\n// ─── Notifications: the bell ─────────────────────────────────────────────────\nexport {\n NOTIFICATION_KIND_VALUES,\n NOTIFICATION_PREFERENCE_OF,\n NOTIFICATION_PREFERENCE_VALUES,\n type Notification,\n type NotificationKind,\n type NotificationPage,\n type NotificationParams,\n type NotificationPreference,\n type NotificationPreferences,\n type NotificationUnreadCount,\n notificationKindSchema,\n notificationPageSchema,\n notificationParamsSchema,\n notificationPreferencesSchema,\n notificationSchema,\n notificationUnreadCountSchema,\n type UpdateNotificationPreferencesBody,\n updateNotificationPreferencesBodySchema,\n} from './domains/notifications/notifications.js';\n// ─── Onboarding ──────────────────────────────────────────────────────────────\nexport {\n ageInYears,\n BUSINESS_TYPE_VALUES,\n type BusinessType,\n businessTypeSchema,\n type CompleteOnboardingBody,\n type CompleteOnboardingBodyInput,\n type CompleteOnboardingResponse,\n type ContactLinks,\n completeOnboardingBodySchema,\n completeOnboardingResponseSchema,\n contactLinksSchema,\n DATE_INPUT_MAX,\n type DateOfBirth,\n dateOfBirthBounds,\n dateOfBirthSchema,\n dateToIsoDate,\n EMPTY_ONBOARDING_VENTURE,\n FOUNDER_ONBOARDING_STEPS,\n GOAL_CATEGORIES,\n GOAL_CATEGORY_KEYS,\n type GoalCategory,\n type GoalCategoryKey,\n GUIDELINES_VERSION,\n GUIDELINES_VERSION_MAX,\n guidelinesVersionSchema,\n INTERESTS_MAX,\n INTERESTS_MIN,\n type IsoDate,\n interestsSchema,\n isoDateSchema,\n isoDateToDate,\n isRealIsoDate,\n isUnderAgeDateOfBirth,\n LEGAL_STRUCTURE_VALUES,\n type LegalStructure,\n legalStructureSchema,\n MAX_AGE_YEARS,\n MIN_AGE_YEARS,\n ONBOARDING_DRAFT_KEYS,\n ONBOARDING_STEP_FIELDS,\n ONBOARDING_STEP_KEYS,\n ONBOARDING_STEP_SCHEMAS,\n ONBOARDING_TOTAL_STEPS,\n type OnboardingDraft,\n type OnboardingDraftKey,\n type OnboardingField,\n type OnboardingForm,\n type OnboardingProgressUpdate,\n type OnboardingStatus,\n type OnboardingStepBody,\n type OnboardingStepConfig,\n type OnboardingStepKey,\n onboardingDraftKeySchema,\n onboardingDraftSchema,\n onboardingFormSchema,\n onboardingProgressUpdateSchema,\n onboardingStatusSchema,\n PHONE_INPUT_MAX,\n readOnboardingDraft,\n TEAM_SIZE_DIGITS_MAX,\n TOPIC_CATEGORIES,\n TOPIC_CATEGORY_KEYS,\n TOPIC_VALUES,\n type Topic,\n type TopicCategory,\n type TopicCategoryKey,\n teamSizeDigits,\n todayInIndia,\n topicSchema,\n} from './domains/onboarding/onboarding.js';\nexport {\n type CompleteOnboardingBodyCandidate,\n completeOnboardingBodyFrom,\n emptyOnboardingForm,\n foundedYearDigits,\n locationStarted,\n onboardingDraftForStep,\n ventureBodyFrom,\n ventureStarted,\n} from './domains/onboarding/onboarding-answers.js';\n// ─── A person, on every surface (0.20.0) ────────────────────────────────────\nexport { formerPerson, initialsOf, type Person, personSchema } from './domains/people/person.js';\n// ─── Products: what founders build, and the help around it ───────────────────\nexport {\n type CreateProductBody,\n createProductBodySchema,\n type InviteProductMemberBody,\n inviteProductMemberBodySchema,\n type MyProducts,\n missingForListing,\n myProductsSchema,\n PRODUCT_ASK_VALUES,\n PRODUCT_INVITABLE_ROLE_VALUES,\n PRODUCT_LINK_KEYS,\n PRODUCT_LISTING_REQUIREMENT_VALUES,\n PRODUCT_MEMBER_STATUS_VALUES,\n PRODUCT_PAUSED_BY_VALUES,\n PRODUCT_PLATFORM_VALUES,\n PRODUCT_SORT_VALUES,\n PRODUCT_STAGE_VALUES,\n PRODUCT_STATUS_VALUES,\n PRODUCT_TEAM_ROLE_VALUES,\n PRODUCT_TOPICS_MAX,\n PRODUCT_VISIBILITY_VALUES,\n type Product,\n type ProductAsk,\n type ProductCard,\n type ProductCardPage,\n type ProductChip,\n type ProductDiscoverQuery,\n type ProductDiscoverQueryInput,\n type ProductFacets,\n type ProductFeedbackQuery,\n type ProductFeedbackQueryInput,\n type ProductInvitableRole,\n type ProductInvite,\n type ProductInvites,\n type ProductLinkKey,\n type ProductLinks,\n type ProductListingRequirement,\n type ProductMemberParams,\n type ProductMemberStatus,\n type ProductParams,\n type ProductPausedBy,\n type ProductPendingInvite,\n type ProductPendingInvitePage,\n type ProductPlatform,\n type ProductRating,\n type ProductScreenshot,\n type ProductScreenshotInput,\n type ProductSort,\n type ProductStage,\n type ProductStatus,\n type ProductsByMemberParams,\n type ProductTeamMember,\n type ProductTeamPage,\n type ProductTeamRole,\n type ProductTester,\n type ProductTesterPage,\n type ProductUpvoteResponse,\n type ProductViewer,\n type ProductVisibility,\n productAskSchema,\n productCardPageSchema,\n productCardSchema,\n productCardViewerSchema,\n productChipSchema,\n productDiscoverQuerySchema,\n productFacetsSchema,\n productFeedbackQuerySchema,\n productInvitableRoleSchema,\n productInviteSchema,\n productInvitesSchema,\n productIsOnDiscover,\n productLinksReadSchema,\n productLinksSchema,\n productListingRequirementSchema,\n productMemberParamsSchema,\n productMemberStatusSchema,\n productParamsSchema,\n productPausedBySchema,\n productPendingInvitePageSchema,\n productPendingInviteSchema,\n productPlatformSchema,\n productRatingSchema,\n productSchema,\n productScreenshotInputSchema,\n productScreenshotSchema,\n productSortSchema,\n productStageSchema,\n productStatusSchema,\n productsByMemberParamsSchema,\n productTeamMemberSchema,\n productTeamPageSchema,\n productTeamRoleSchema,\n productTesterPageSchema,\n productTesterSchema,\n productUpvoteResponseSchema,\n productVideoUrlSchema,\n productViewerSchema,\n productVisibilitySchema,\n type SetProductLiveBody,\n type SetProductLogoBody,\n type SetProductMemberRoleBody,\n type SetProductScreenshotsBody,\n type SetProductStatusBody,\n type SetProductVisibilityBody,\n setProductLiveBodySchema,\n setProductLogoBodySchema,\n setProductMemberRoleBodySchema,\n setProductScreenshotsBodySchema,\n setProductStatusBodySchema,\n setProductVisibilityBodySchema,\n type TransferProductBody,\n transferProductBodySchema,\n type UpdateProductBody,\n updateProductBodySchema,\n} from './domains/products/products.js';\n// ─── Founder profile ─────────────────────────────────────────────────────────\nexport {\n CONTACT_VISIBILITY_AUDIENCE,\n CONTACT_VISIBILITY_FIELDS,\n type ContactVisibility,\n type ContactVisibilityField,\n type ContributionSummary,\n changesDiscoverCard,\n contactVisibilitySchema,\n contributionSummarySchema,\n FOUNDER_CARD_EDIT_FIELDS,\n FOUNDER_CARD_FIELDS,\n FOUNDER_LINK_KEYS,\n type FounderCard,\n type FounderCardField,\n type FounderLinkKey,\n type FounderLinks,\n type FounderProfile,\n founderCardSchema,\n founderLinksSchema,\n founderProfileSchema,\n type MemberByline,\n type MemberHandleParams,\n type MemberProfile,\n type MyPersonalDetails,\n memberBylineSchema,\n memberHandleParamsSchema,\n memberProfileSchema,\n myPersonalDetailsSchema,\n PROFILE_AUDIENCE_VALUES,\n type ProfileAudience,\n type PublicBirthday,\n publicBirthdaySchema,\n type SetAvatarBody,\n setAvatarBodySchema,\n type UpdateFounderProfileBody,\n type UpdateMyPersonalDetailsBody,\n type UpdatePhotoSettingsBody,\n type UpdateUsernameBody,\n USERNAME_UNAVAILABLE_REASON_VALUES,\n type UsernameAvailability,\n type UsernameAvailabilityQuery,\n type UsernameUnavailableReason,\n updateFounderProfileBodySchema,\n updateMyPersonalDetailsBodySchema,\n updatePhotoSettingsBodySchema,\n updateUsernameBodySchema,\n usernameAvailabilityQuerySchema,\n usernameAvailabilitySchema,\n VENTURE_KEYS,\n VENTURE_OPTIONAL_KEYS,\n type Venture,\n type VentureKey,\n ventureSchema,\n} from './domains/profile/founder-profile.js';\n// ─── The member's own private answers (0.16.0) ───────────────────────────────\nexport {\n type MyBusiness,\n type MyInterests,\n type MyVenture,\n myBusinessSchema,\n myInterestsSchema,\n myVentureSchema,\n type PutMyBusinessBody,\n type PutMyInterestsBody,\n putMyBusinessBodySchema,\n putMyInterestsBodySchema,\n} from './domains/profile/my-profile.js';\n// ─── Reviews: stars and words on a product ───────────────────────────────────\nexport {\n type CreateReviewBody,\n createReviewBodySchema,\n type ProductReview,\n productReviewSchema,\n REVIEW_SORT_VALUES,\n type ReviewHelpfulResponse,\n type ReviewPage,\n type ReviewParams,\n type ReviewRating,\n type ReviewReply,\n type ReviewReplyBody,\n type ReviewSort,\n type ReviewsQuery,\n type ReviewsQueryInput,\n type ReviewViewer,\n reviewHelpfulResponseSchema,\n reviewPageSchema,\n reviewParamsSchema,\n reviewRatingSchema,\n reviewReplyBodySchema,\n reviewReplySchema,\n reviewSortSchema,\n reviewsQuerySchema,\n reviewViewerSchema,\n type UpdateReviewBody,\n updateReviewBodySchema,\n} from './domains/reviews/reviews.js';\nexport {\n type CreateTicketBody,\n createTicketBodySchema,\n REFUND_ASK_CATEGORY,\n type ReplyTicketBody,\n replyTicketBodySchema,\n type SavedReply,\n type SavedReplyBody,\n type SavedReplyList,\n type SavedReplyParams,\n savedReplyBodySchema,\n savedReplyListSchema,\n savedReplyParamsSchema,\n savedReplySchema,\n TICKET_ASSIGNEE_FILTER_VALUES,\n TICKET_CATEGORY_VALUES,\n TICKET_CHANGE_VALUES,\n TICKET_SCOPE_VALUES,\n TICKET_SIDE_VALUES,\n TICKET_STATUS_VALUES,\n type TicketAssigneeFilter,\n type TicketCategory,\n type TicketChange,\n type TicketDetail,\n type TicketListQuery,\n type TicketListQueryInput,\n type TicketMessage,\n type TicketPage,\n type TicketParams,\n type TicketScope,\n type TicketSide,\n type TicketStatus,\n type TicketSummary,\n ticketAssigneeFilterSchema,\n ticketCategorySchema,\n ticketDetailSchema,\n ticketListQuerySchema,\n ticketMessageSchema,\n ticketPageSchema,\n ticketParamsSchema,\n ticketScopeSchema,\n ticketSideSchema,\n ticketStatusSchema,\n ticketSummarySchema,\n} from './domains/support/support.js';\nexport {\n type SetMemberCapabilitiesBody,\n type SetMemberCapabilitiesResponse,\n type SetMemberRolesBody,\n type SetMemberRolesResponse,\n setMemberCapabilitiesBodySchema,\n setMemberCapabilitiesResponseSchema,\n setMemberRolesBodySchema,\n setMemberRolesResponseSchema,\n type TeamMember,\n type TeamMemberParams,\n type TeamPage,\n teamMemberParamsSchema,\n teamMemberSchema,\n teamPageSchema,\n} from './domains/team/team.js';\n// ─── Uploads: asking for a slot, completing it, discarding it ───────────────\nexport {\n UPLOAD_CONTENT_TYPES,\n UPLOAD_FILE_EXTENSIONS,\n type UploadFileExtension,\n type UploadParams,\n type UploadPresignBody,\n type UploadPresignResponse,\n uploadParamsSchema,\n uploadPresignBodySchema,\n uploadPresignResponseSchema,\n} from './domains/uploads/uploads.js';\n// ─── Waitlist: joining before the launch, and your place on it (0.15.0) ─────\nexport {\n type MyWaitlist,\n myWaitlistSchema,\n WAITLIST_REFUSAL_VALUES,\n type WaitlistPlace,\n type WaitlistRefusal,\n type WaitlistStatus,\n waitlistPlaceSchema,\n waitlistRefusalSchema,\n waitlistStatusSchema,\n} from './domains/waitlist/waitlist.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,+EAA+E;AAC/E,OAAO,EAEL,oBAAoB,EAEpB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EAGV,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EAEjB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EAIb,YAAY,EAEZ,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EAId,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,WAAW,EACX,oBAAoB,EAEpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EAEX,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,oBAAoB,EAEpB,cAAc,EACd,kBAAkB,EAClB,eAAe,EAEf,cAAc,GACf,MAAM,sBAAsB,CAAC;AAC9B,gFAAgF;AAChF,OAAO,EACL,oBAAoB,EACpB,QAAQ,EACR,sBAAsB,EAEtB,cAAc,EACd,aAAa,EAEb,WAAW,EAEX,YAAY,EACZ,cAAc,EACd,UAAU,EACV,WAAW,EAEX,cAAc,EACd,aAAa,EACb,eAAe,EAEf,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,cAAc,EAEd,cAAc,EACd,qBAAqB,EAGr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AAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAKL,+BAA+B,EAC/B,mCAAmC,EACnC,wBAAwB,EACxB,4BAA4B,EAI5B,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,+EAA+E;AAC/E,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EAKtB,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC;AACtC,+EAA+E;AAC/E,OAAO,EAEL,gBAAgB,EAChB,uBAAuB,EAIvB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC","sourcesContent":["/**\n * founder-schema — Shared Zod schemas for Founder Circle\n *\n * The single source of truth consumed by founder-circle-backend, the web\n * client and the app client: every request, every response, every limit,\n * every error code. Publishing rule (TEAM.md 5a): the version only ever moves\n * on `dev`, never on a feat branch.\n *\n * @module founder-schema\n */\n\n// ─── Access: roles, permissions (CASL), the MPIN and the active role ────────\nexport {\n type ChangeMpinBody,\n changeMpinBodySchema,\n type MeAccessResponse,\n MPIN_LENGTH,\n MPIN_LOCK_MS,\n MPIN_MAX_ATTEMPTS,\n meAccessResponseSchema,\n mpinSchema,\n type SetMpinBody,\n type SwitchRoleBody,\n setMpinBodySchema,\n switchRoleBodySchema,\n} from './access/access.js';\nexport {\n CAPABILITY_GRANTED_BY,\n CAPABILITY_VALUES,\n type Capability,\n canGrantCapability,\n capabilitySchema,\n} from './access/capabilities.js';\nexport {\n ACTION_VALUES,\n type Action,\n type AppAbility,\n type AppRawRule,\n isAppRawRule,\n type PackedRules,\n packedRuleSchema,\n packedRulesSchema,\n SUBJECT_VALUES,\n type Subject,\n type SubjectFields,\n type SubjectInstance,\n subjectSchema,\n} from './access/permissions.js';\nexport {\n ACTIVE_ROLE_TTL_MS,\n canGrantRole,\n isPlatformRole,\n MEMBER_ROLE,\n PLATFORM_ROLE_VALUES,\n type PlatformRole,\n platformRoleSchema,\n ROLE_GRANTED_BY,\n ROLE_VALUES,\n type Role,\n roleSchema,\n} from './access/roles.js';\nexport {\n ACCESS_REASON_VALUES,\n type AccessReason,\n accessReasonOf,\n accessReasonSchema,\n STANDING_VALUES,\n type Standing,\n standingSchema,\n} from './access/standing.js';\n// ─── Common helpers and enums ────────────────────────────────────────────────\nexport {\n chosenUsernameSchema,\n eachOnce,\n emptyStringToUndefined,\n type FounderLocation,\n fullNameSchema,\n GENDER_VALUES,\n type Gender,\n GOAL_VALUES,\n type Goal,\n genderSchema,\n goalListSchema,\n goalSchema,\n graphemesOf,\n type HttpUrl,\n httpUrlOnHosts,\n httpUrlSchema,\n INDUSTRY_VALUES,\n type Industry,\n industrySchema,\n isReservedUsername,\n isUrlOnHost,\n joinFullName,\n locationSchema,\n multiValueQuery,\n nameFromSignIn,\n normalizeLinkUrl,\n normalizePhone,\n type ObjectIdString,\n objectIdSchema,\n optionalTrimmedString,\n type PaginationQuery,\n type PaginationQueryInput,\n PHONE_DIGITS,\n type Phone,\n paginationQuerySchema,\n phoneSchema,\n queryInt,\n RESERVED_USERNAMES,\n requiredGoalListSchema,\n type SafeUrl,\n SKILL_VALUES,\n type Skill,\n STARTUP_STAGE_VALUES,\n type StartupStage,\n safeUrlSchema,\n skillListSchema,\n skillSchema,\n splitFullName,\n startupStageSchema,\n tidyFullName,\n USERNAME_MAX,\n USERNAME_MIN,\n type Username,\n usernameSchema,\n YOUTUBE_HOSTS,\n youtubeVideoId,\n} from './core/common.js';\n// ─── Soft delete (0.20.0) ────────────────────────────────────────────────────\nexport { DELETED_REASON_VALUES, type DeletedReason, deletedReasonSchema } from './core/deletion.js';\n// ─── Error codes ─────────────────────────────────────────────────────────────\nexport {\n API_ERROR_CODE,\n API_ERROR_CODE_VALUES,\n type ApiErrorCode,\n apiErrorCodeSchema,\n} from './core/errors.js';\n// ─── Limits: every length, size and count, by name ──────────────────────────\nexport {\n ABOUT_MAX,\n AREA_NAME_MAX,\n AREA_SEARCH_MAX,\n BILLING_ADDRESS_MAX,\n BILLING_ADDRESS_MIN,\n BILLING_NAME_MAX,\n BILLING_NAME_MIN,\n BILLING_REASON_MAX,\n BILLING_REASON_MIN,\n CHAT_PARTICIPANTS_MAX,\n CITY_MAX,\n COMMUNITY_BAN_REASON_MAX,\n COMMUNITY_DECLINE_REASON_MAX,\n COMMUNITY_DECLINE_REASON_MIN,\n COMMUNITY_DESCRIPTION_MAX,\n COMMUNITY_NAME_MAX,\n COMMUNITY_NAME_MIN,\n COMMUNITY_RULE_MAX,\n COMMUNITY_RULES_MAX,\n COMMUNITY_SUGGESTION_WHY_MAX,\n CONTRIBUTION_LEADERBOARD_SIZE,\n CONTRIBUTION_PAIR_POINTS_MAX,\n CONTRIBUTION_PAIR_WINDOW_DAYS,\n CONTRIBUTION_RECENT_DAYS,\n COUNTRY_MAX,\n COUPON_CODE_MAX,\n COUPON_CODE_MIN,\n COUPON_LABEL_MAX,\n COUPON_LABEL_MIN,\n COUPON_PERCENT_MAX,\n COUPON_PERCENT_MIN,\n COUPON_USES_MAX,\n CURSOR_MAX,\n DASHBOARD_RECENT_DAYS,\n DAY_MS,\n DISCOVER_FILTER_VALUES_MAX,\n DISCOVER_TEXT_MAX,\n DISPLAY_NAME_MAX,\n ERASURE_RETENTION_DAYS,\n FOUNDED_YEAR_MIN,\n GEO_ACCURACY_MAX_M,\n GEO_PRECISE_ACCURACY_M,\n GEO_SYNC_ACCURACY_MAX_M,\n GOALS_MIN,\n GSTIN_LENGTH,\n HEADLINE_MAX,\n INDIA_TIME_ZONE,\n INDIA_UTC_OFFSET_MS,\n INVOICE_NUMBER_MAX,\n LINK_URL_MAX,\n LOCALITY_PAGE_SIZE,\n LOCALITY_SKIP_MAX,\n LOCATION_HISTORY_MAX,\n LOCATION_HISTORY_MAX_DAYS,\n MEDIA_ALT_MAX,\n MEDIA_MAX_INPUT_PIXELS,\n MEDIA_PENDING_MAX,\n MEDIA_PLACEHOLDER_MAX,\n MEDIA_UNATTACHED_TTL_HOURS,\n MEMBER_SEARCH_MAX,\n MODERATION_EXCERPT_MAX,\n MODERATION_NOTE_MAX,\n NOTIFICATION_EXCERPT_MAX,\n NOTIFICATION_RETENTION_DAYS,\n ONBOARDING_DRAFT_RETENTION_DAYS,\n ORDER_TTL_MINUTES,\n PAGE_SIZE_DEFAULT,\n PAGE_SIZE_MAX,\n PLAN_AHEAD_MAX_YEARS,\n PLAN_REMINDER_DAYS,\n PRODUCT_ASK_OPEN_DAYS,\n PRODUCT_CAPTION_MAX,\n PRODUCT_DESCRIPTION_MAX,\n PRODUCT_NAME_MAX,\n PRODUCT_SCREENSHOTS_MAX,\n PRODUCT_TAGLINE_MAX,\n PRODUCT_TEAM_SHOWN,\n PRODUCTS_LIVE_SAFETY_MAX,\n RATING_MAX,\n RATING_MIN,\n RAZORPAY_EVENT_RETENTION_DAYS,\n RAZORPAY_ID_MAX,\n RAZORPAY_SIGNATURE_MAX,\n REFUND_WINDOW_DAYS,\n REPORT_NOTE_MAX,\n REVIEW_AVERAGE_MIN_COUNT,\n REVIEW_HELPFUL_POINTS_MAX,\n REVIEW_REPLY_MAX,\n REVIEW_TEXT_MAX,\n REVIEW_TEXT_MIN,\n refundWindowEndsAt,\n SAVED_REPLIES_MAX,\n SAVED_REPLY_BODY_MAX,\n SAVED_REPLY_TITLE_MAX,\n SKILLS_MAX,\n STATE_MAX,\n SUSPENSION_REASON_MAX,\n SUSPENSION_REASON_MIN,\n TEAM_SIZE_MAX,\n TEAM_SIZE_MIN,\n TICKET_MESSAGE_MAX,\n TICKET_MESSAGES_MAX,\n TICKET_SUBJECT_MAX,\n TICKET_SUBJECT_MIN,\n UPLOAD_MAX_BYTES,\n VENTURE_NAME_MAX,\n VENTURE_TAGLINE_MAX,\n} from './core/limits.js';\n// ─── Money as people read it (0.18.0) ────────────────────────────────────────\nexport { keptPaise, refundLeftPaise, rupees } from './core/money.js';\n// ─── Response envelopes ──────────────────────────────────────────────────────\nexport {\n type ApiError,\n type ApiErrorDetails,\n apiErrorDetailsSchema,\n apiErrorSchema,\n type ErrorResponse,\n errorResponseSchema,\n type IdResponse,\n idResponseSchema,\n paginatedSchema,\n type QueryArgs,\n successResponseSchema,\n} from './core/responses.js';\n// ─── Validation: message keys and the wire shape of a failure ───────────────\nexport {\n REQUEST_PART_VALUES,\n type RequestPart,\n requestPartSchema,\n toValidationIssues,\n VALIDATION_MESSAGE,\n type ValidationIssue,\n type ValidationMessageKey,\n validationIssueSchema,\n} from './core/validation.js';\n// ─── Account ─────────────────────────────────────────────────────────────────\nexport {\n type DeleteAccountResponse,\n deleteAccountResponseSchema,\n} from './domains/account/account.js';\nexport {\n AUDIT_ACTION_VALUES,\n type AuditAction,\n type AuditActor,\n type AuditEntry,\n type AuditPage,\n auditActionSchema,\n auditActorSchema,\n auditEntrySchema,\n auditPageSchema,\n} from './domains/audit/audit.js';\n// ─── Billing: buying, paying, invoices, refunds, coupons (0.12.0) ───────────\nexport {\n type AppliedCoupon,\n appliedCouponSchema,\n type BillingDetails,\n billingDetailsSchema,\n COUPON_KIND_VALUES,\n COUPON_TARGET_VALUES,\n type ConfirmOrderBody,\n type Coupon,\n type CouponBenefit,\n type CouponKind,\n type CouponList,\n type CouponParams,\n type CouponTarget,\n type CreateCouponBody,\n type CreateOrderBody,\n type CreateOrderResponse,\n type CreditNote,\n confirmOrderBodySchema,\n couponBenefitSchema,\n couponCodeSchema,\n couponListSchema,\n couponParamsSchema,\n couponSchema,\n couponTargetSchema,\n createCouponBodySchema,\n createOrderBodySchema,\n createOrderResponseSchema,\n creditNoteSchema,\n GRANT_FAILURE_VALUES,\n type GrantFailure,\n GST_RATE_PERCENT,\n GST_STATE_CODE_VALUES,\n GST_STATES,\n type GstStateCode,\n grantFailureSchema,\n gstinChecksumValid,\n gstinSchema,\n gstStateCodeSchema,\n gstStateName,\n INVOICE_KIND_VALUES,\n type Invoice,\n type InvoiceKind,\n type InvoiceParty,\n invoiceKindSchema,\n invoicePartySchema,\n invoiceSchema,\n ORDER_STATUS_VALUES,\n type OrderParams,\n type OrderState,\n type OrderStatus,\n orderParamsSchema,\n orderStateSchema,\n orderStatusSchema,\n type Payer,\n type PaymentDetail,\n type PaymentPage,\n type PaymentSummary,\n type PlanEffect,\n PURCHASE_KIND_VALUES,\n type PurchaseItem,\n type PurchaseKind,\n payerSchema,\n paymentDetailSchema,\n paymentPageSchema,\n paymentSummarySchema,\n planEffectSchema,\n purchaseItemSchema,\n type Quote,\n type QuoteBody,\n quoteBodySchema,\n quoteSchema,\n type RefundPaymentBody,\n refundPaymentBodySchema,\n type SetMembershipBody,\n type StaffPaymentDetail,\n type StaffPaymentPage,\n type StaffPaymentSummary,\n type StaffPaymentsQuery,\n type StaffPaymentsQueryInput,\n setMembershipBodySchema,\n staffPaymentDetailSchema,\n staffPaymentPageSchema,\n staffPaymentSummarySchema,\n staffPaymentsQuerySchema,\n type TaxSplit,\n taxSplitSchema,\n type UpdateCouponBody,\n updateCouponBodySchema,\n} from './domains/billing/billing.js';\n// ─── Chat ────────────────────────────────────────────────────────────────────\nexport {\n CHAT_OPENED_VIA_VALUES,\n CHAT_PRODUCT_ID,\n CHAT_REACH_VALUES,\n CHAT_SOCKET_REAUTH_SECONDS,\n CHAT_TOKEN_REFRESH_MARGIN_SECONDS,\n type ChatAuthToken,\n type ChatConfig,\n type ChatOpenedVia,\n type ChatParticipant,\n type ChatParticipantsBody,\n type ChatParticipantsResponse,\n type ChatProductId,\n type ChatReach,\n type ChatReachKind,\n type ChatReachParams,\n chatAuthTokenSchema,\n chatConfigSchema,\n chatOpenedViaSchema,\n chatParticipantSchema,\n chatParticipantsBodySchema,\n chatParticipantsResponseSchema,\n chatProductIdSchema,\n chatReachKindSchema,\n chatReachParamsSchema,\n chatReachSchema,\n DIRECT_CONTACT_STATUS_VALUES,\n type DirectContactStatus,\n directContactStatusSchema,\n MESSAGE_FROM_VALUES,\n type MessageFrom,\n type MessagingSettings,\n messageFromSchema,\n messagingSettingsSchema,\n type OpenChatBody,\n type OpenChatResponse,\n openChatBodySchema,\n openChatResponseSchema,\n} from './domains/chat/chat.js';\n// ─── Communities: official spaces, their members and suggestions (0.9.0) ────\nexport {\n type BanCommunityMemberBody,\n banCommunityMemberBodySchema,\n COMMUNITY_ANNOUNCE_INTERVAL_MS,\n COMMUNITY_MEMBER_STATUS_VALUES,\n COMMUNITY_PINS_MAX,\n COMMUNITY_ROLE_VALUES,\n COMMUNITY_STATUS_VALUES,\n COMMUNITY_SUGGESTION_DECISION_VALUES,\n COMMUNITY_SUGGESTION_STATUS_VALUES,\n COMMUNITY_SUGGESTIONS_OPEN_MAX,\n COMMUNITY_TOPICS_MAX,\n COMMUNITY_VISIBILITY_RANK,\n COMMUNITY_VISIBILITY_VALUES,\n type Community,\n type CommunityBan,\n type CommunityBanPage,\n type CommunityCard,\n type CommunityCardPage,\n type CommunityCardViewer,\n type CommunityChip,\n type CommunityCommentParams,\n type CommunityContentParams,\n type CommunityDiscoverQuery,\n type CommunityDiscoverQueryInput,\n type CommunityInvite,\n type CommunityInvites,\n type CommunityMember,\n type CommunityMemberPage,\n type CommunityMemberParams,\n type CommunityMemberStatus,\n type CommunityMembersQuery,\n type CommunityMembersQueryInput,\n type CommunityParams,\n type CommunityPendingInvite,\n type CommunityPendingInvitePage,\n type CommunityRequest,\n type CommunityRequestPage,\n type CommunityRole,\n type CommunityStatus,\n type CommunitySuggestion,\n type CommunitySuggestionDecision,\n type CommunitySuggestionPage,\n type CommunitySuggestionParams,\n type CommunitySuggestionStatus,\n type CommunitySuggestionsQuery,\n type CommunitySuggestionsQueryInput,\n type CommunityViewer,\n type CommunityVisibility,\n type CreateCommunityBody,\n type CreateCommunitySuggestionBody,\n communityBanPageSchema,\n communityBanSchema,\n communityCardPageSchema,\n communityCardSchema,\n communityCardViewerSchema,\n communityChangeExposes,\n communityChipSchema,\n communityCommentParamsSchema,\n communityContentParamsSchema,\n communityDiscoverQuerySchema,\n communityInviteSchema,\n communityInvitesSchema,\n communityMemberPageSchema,\n communityMemberParamsSchema,\n communityMemberSchema,\n communityMemberStatusSchema,\n communityMembersQuerySchema,\n communityParamsSchema,\n communityPendingInvitePageSchema,\n communityPendingInviteSchema,\n communityRequestPageSchema,\n communityRequestSchema,\n communityRoleSchema,\n communitySchema,\n communityStatusSchema,\n communitySuggestionDecisionSchema,\n communitySuggestionPageSchema,\n communitySuggestionParamsSchema,\n communitySuggestionSchema,\n communitySuggestionStatusSchema,\n communitySuggestionsQuerySchema,\n communityTypeChangeAllowed,\n communityViewerSchema,\n communityVisibilitySchema,\n createCommunityBodySchema,\n createCommunitySuggestionBodySchema,\n type DeclineCommunitySuggestionBody,\n declineCommunitySuggestionBodySchema,\n type InviteCommunityMemberBody,\n inviteCommunityMemberBodySchema,\n type PinCommunityContentBody,\n pinCommunityContentBodySchema,\n type SetCommunityIconBody,\n type SetCommunityMemberRoleBody,\n type SetCommunityStatusBody,\n type SetCommunityVisibilityBody,\n setCommunityIconBodySchema,\n setCommunityMemberRoleBodySchema,\n setCommunityStatusBodySchema,\n setCommunityVisibilityBodySchema,\n type UpdateCommunityBody,\n updateCommunityBodySchema,\n} from './domains/communities/communities.js';\n// ─── Contribution: the help a member gives, recognised ───────────────────────\nexport {\n CONTRIBUTION_AWARDED_KIND_VALUES,\n CONTRIBUTION_KIND_VALUES,\n CONTRIBUTION_PERIOD_VALUES,\n CONTRIBUTION_POINTS,\n CONTRIBUTION_SOURCE_VALUES,\n type ContributionEntry,\n type ContributionKind,\n type ContributionLeaderboard,\n type ContributionLeaderboardQuery,\n type ContributionLeaderEntry,\n type ContributionPage,\n type ContributionPeriod,\n type ContributionSource,\n type ContributionYou,\n contributionEntrySchema,\n contributionKindSchema,\n contributionLeaderboardQuerySchema,\n contributionLeaderboardSchema,\n contributionLeaderEntrySchema,\n contributionPageSchema,\n contributionPeriodSchema,\n contributionSourceSchema,\n contributionYouSchema,\n} from './domains/contributions/contributions.js';\n// ─── Staff: overview, members, moderation, support, the team, the audit log ─\nexport { type Dashboard, dashboardSchema } from './domains/dashboard/dashboard.js';\n// ─── Discover ────────────────────────────────────────────────────────────────\nexport {\n type DiscoverFacets,\n type DiscoverPage,\n type DiscoverQuery,\n type DiscoverQueryInput,\n discoverFacetsSchema,\n discoverPageSchema,\n discoverQuerySchema,\n} from './domains/discover/discover.js';\n// ─── Feed: post, poll, comment, reaction ─────────────────────────────────────\nexport {\n type AttachedMedia,\n type AuthorParams,\n attachedMediaSchema,\n authorParamsSchema,\n type CastVoteBody,\n type CastVoteResponse,\n COMMENT_MAX_BODY_CHARS,\n CONTENT_KIND_VALUES,\n CONTENT_MEDIA_KIND_VALUES,\n type CommentHelpfulResponse,\n type CommentPage,\n type CommentParams,\n type CommentsQuery,\n type CommentsQueryInput,\n type ContentKind,\n type ContentMediaKind,\n type ContentParams,\n type ContentTargetParams,\n type ContentViewerState,\n type CreateCommentBody,\n type CreatePollBody,\n type CreatePostBody,\n type CreateReportBody,\n type CreateReportResponse,\n type CreateRepostBody,\n castVoteBodySchema,\n castVoteResponseSchema,\n commentHelpfulResponseSchema,\n commentPageSchema,\n commentParamsSchema,\n commentsQuerySchema,\n contentKindSchema,\n contentMediaKindSchema,\n contentParamsSchema,\n contentTargetParamsSchema,\n contentViewerStateSchema,\n createCommentBodySchema,\n createPollBodySchema,\n createPostBodySchema,\n createReportBodySchema,\n createReportResponseSchema,\n createRepostBodySchema,\n EDIT_WINDOW_MS,\n ENGAGEMENT_TARGET_KIND_VALUES,\n type EngagementTargetKind,\n type EngagementTargetParams,\n engagementTargetKindSchema,\n engagementTargetParamsSchema,\n FEED_SORT_VALUES,\n type FeedAuthor,\n type FeedComment,\n type FeedImage,\n type FeedItem,\n type FeedItemParams,\n type FeedMedia,\n type FeedPage,\n type FeedPoll,\n type FeedPost,\n type FeedQuery,\n type FeedQueryInput,\n type FeedSort,\n feedAuthorSchema,\n feedCommentSchema,\n feedImageSchema,\n feedItemParamsSchema,\n feedItemSchema,\n feedMediaSchema,\n feedPageSchema,\n feedPollSchema,\n feedPostSchema,\n feedQuerySchema,\n feedSortSchema,\n MAX_TOPICS,\n type PickableReaction,\n type PinnedItems,\n POLL_MAX_DURATION_MS,\n POLL_MAX_OPTIONS,\n POLL_MIN_DURATION_MS,\n POLL_MIN_OPTIONS,\n POLL_OPTION_MAX_CHARS,\n POLL_QUESTION_MAX_CHARS,\n POST_MAX_BODY_CHARS,\n POST_MAX_MEDIA,\n type PollOption,\n type PollParams,\n type ProductFeedbackItem,\n type ProductFeedbackPage,\n pickableReactionSchema,\n pinnedItemsSchema,\n pollOptionSchema,\n pollParamsSchema,\n postHasContent,\n productFeedbackItemSchema,\n productFeedbackPageSchema,\n REACTION_PICKER_VALUES,\n REACTION_TYPE_VALUES,\n REPORT_REASON_VALUES,\n REPORT_STATUS_VALUES,\n REPORT_TARGET_KIND_VALUES,\n type ReactionCounts,\n type ReactionsQuery,\n type ReactionsQueryInput,\n type ReactionType,\n type Reactor,\n type ReactorPage,\n type ReportReason,\n type ReportStatus,\n type ReportTargetKind,\n type RepostedSource,\n reactionCountsSchema,\n reactionsQuerySchema,\n reactionTypeSchema,\n reactorPageSchema,\n reactorSchema,\n reportReasonSchema,\n reportTargetKindSchema,\n repostedSourceSchema,\n type SetReactionBody,\n type SetReactionResponse,\n setReactionBodySchema,\n setReactionResponseSchema,\n type ToggleBookmarkResponse,\n toggleBookmarkResponseSchema,\n type UpdateCommentBody,\n type UpdatePostBody,\n updateCommentBodySchema,\n updatePostBodySchema,\n type ViewerState,\n viewerStateSchema,\n} from './domains/feed/feed.js';\n// ─── Location: the area tree, the declared location, the GPS axis (0.19.0) ──\nexport {\n AREA_TYPE_VALUES,\n type AreaList,\n type AreaOption,\n type AreaPage,\n type AreaType,\n areaListSchema,\n areaOptionSchema,\n areaPageSchema,\n areaTypeSchema,\n areaWords,\n type ClearLocationHistoryResult,\n clearLocationHistoryResultSchema,\n type DistrictsQuery,\n districtsQuerySchema,\n type GeolocationFix,\n type GeolocationSyncResult,\n geolocationFixSchema,\n geolocationSyncResultSchema,\n LOCALITY_AREA_TYPES,\n LOCALITY_TYPE_LABEL,\n LOCATION_HISTORY_KIND_VALUES,\n type LocalitiesQuery,\n type LocalitiesQueryInput,\n type LocalityAreaType,\n type LocationHistoryKind,\n type LocationPick,\n type LocationSettings,\n localitiesQuerySchema,\n locationHistoryKindSchema,\n locationPickSchema,\n locationSettingsSchema,\n type Place,\n pickOfPlace,\n placeSchema,\n placeWords,\n type UpdateLocationSettingsBody,\n URBAN_BODY_TYPE_VALUES,\n updateLocationSettingsBodySchema,\n} from './domains/location/areas.js';\n// ─── Location: India's states and cities (0.17.0) ───────────────────────────\nexport {\n CITY_ALIASES,\n canonicalCityName,\n canonicalIndiaLocation,\n findIndiaState,\n INDIA,\n INDIA_DIALING_CODE,\n INDIA_STATE_NAMES,\n INDIA_STATES,\n type IndiaState,\n type IndiaStateName,\n listedCityName,\n publicCityOf,\n STATE_ALIASES,\n townName,\n} from './domains/location/india.js';\n// ─── Media: what an uploaded image becomes ──────────────────────────────────\nexport {\n MEDIA_ATTACHMENT_KIND_VALUES,\n MEDIA_PURPOSE_VALUES,\n MEDIA_SIZES,\n MEDIA_STATUS_VALUES,\n MEDIA_UPLOAD_CONTENT_TYPES,\n MEDIA_VARIANTS_MAX,\n type MediaAttachmentKind,\n type MediaImage,\n type MediaPurpose,\n type MediaStatus,\n type MediaUploadContentType,\n type MediaVariant,\n mediaAttachmentKindSchema,\n mediaImageSchema,\n mediaPurposeSchema,\n mediaStatusSchema,\n mediaUploadContentTypeSchema,\n mediaVariantSchema,\n type UploadedMedia,\n uploadedMediaSchema,\n} from './domains/media/media.js';\nexport {\n MEMBER_STATUS_VALUES,\n type MemberDetail,\n type MemberDirectoryPage,\n type MemberDirectoryQuery,\n type MemberDirectoryQueryInput,\n type MemberParams,\n type MemberStatus,\n type MemberSummary,\n memberDetailSchema,\n memberDirectoryPageSchema,\n memberDirectoryQuerySchema,\n memberParamsSchema,\n memberStatusSchema,\n memberSummarySchema,\n type SuspendMemberBody,\n type Suspension,\n suspendMemberBodySchema,\n suspensionSchema,\n} from './domains/members/members.js';\n// ─── Membership and plans, as a member holds them (0.12.0) ──────────────────\nexport {\n addPlanPeriod,\n EARLY_BIRD_UNTIL,\n earlyBirdOpen,\n FOUNDING_PLACES,\n isEarlyBird,\n MEMBER_LIMIT_VALUES,\n MEMBERSHIP_END_REASON_VALUES,\n MEMBERSHIP_KIND_VALUES,\n MEMBERSHIP_PRICE_PAISE,\n MEMBERSHIP_STATUS_VALUES,\n type MeMembership,\n type Membership,\n type MembershipEndReason,\n type MembershipKind,\n type MembershipStatus,\n meMembershipSchema,\n membershipEndReasonSchema,\n membershipKindSchema,\n membershipSchema,\n membershipStatusSchema,\n type Paise,\n PLAN_PERIOD_VALUES,\n PLAN_SPECS,\n PLAN_TIER_RANK,\n PLAN_TIER_VALUES,\n type PlanBlock,\n type PlanCatalog,\n type PlanLimits,\n type PlanOffer,\n type PlanPeriod,\n type PlanTier,\n paiseSchema,\n planBlockSchema,\n planCatalogSchema,\n planLimitsSchema,\n planOfferSchema,\n planPeriodSchema,\n planTierSchema,\n TAKES_PART_THROUGH_VALUES,\n type TakesPartThrough,\n UPGRADE_DAYS_PER_MONTH,\n UPGRADE_PER_DAY,\n UPGRADE_PER_MONTH,\n UPGRADE_PER_YEAR,\n upgradePrice,\n} from './domains/membership/membership.js';\nexport {\n MODERATION_ACTION_VALUES,\n MODERATION_ACTIONS_BY_TARGET_KIND,\n MODERATION_CONTEXT_KIND_VALUES,\n MODERATION_STATE_VALUES,\n type ModerationAction,\n type ModerationContentQuery,\n type ModerationContentQueryInput,\n type ModerationContextKind,\n type ModerationDecisionBody,\n type ModerationItem,\n type ModerationPage,\n type ModerationState,\n type ModerationTargetParams,\n moderationActionSchema,\n moderationContentQuerySchema,\n moderationContextKindSchema,\n moderationDecisionBodySchema,\n moderationItemSchema,\n moderationPageSchema,\n moderationStateSchema,\n moderationTargetParamsSchema,\n} from './domains/moderation/moderation.js';\n// ─── Notifications: the bell ─────────────────────────────────────────────────\nexport {\n NOTIFICATION_KIND_VALUES,\n NOTIFICATION_PREFERENCE_OF,\n NOTIFICATION_PREFERENCE_VALUES,\n type Notification,\n type NotificationKeyParams,\n type NotificationKind,\n type NotificationPage,\n type NotificationParams,\n type NotificationPreference,\n type NotificationPreferences,\n type NotificationUnreadCount,\n notificationKeyParamsSchema,\n notificationKindSchema,\n notificationPageSchema,\n notificationParamsSchema,\n notificationPreferencesSchema,\n notificationSchema,\n notificationUnreadCountSchema,\n type UpdateNotificationPreferencesBody,\n updateNotificationPreferencesBodySchema,\n} from './domains/notifications/notifications.js';\nexport {\n PUSH_DEVICE_LABEL_MAX,\n type PushPublicKey,\n type PushStatus,\n type PushSubscribeBody,\n type PushSubscriptionResult,\n pushPublicKeySchema,\n pushStatusSchema,\n pushSubscribeBodySchema,\n pushSubscriptionResultSchema,\n} from './domains/notifications/push.js';\n// ─── Onboarding ──────────────────────────────────────────────────────────────\nexport {\n ageInYears,\n BUSINESS_TYPE_VALUES,\n type BusinessType,\n businessTypeSchema,\n type CompleteOnboardingBody,\n type CompleteOnboardingBodyInput,\n type CompleteOnboardingResponse,\n type ContactLinks,\n completeOnboardingBodySchema,\n completeOnboardingResponseSchema,\n contactLinksSchema,\n DATE_INPUT_MAX,\n type DateOfBirth,\n dateOfBirthBounds,\n dateOfBirthSchema,\n dateToIsoDate,\n EMPTY_ONBOARDING_VENTURE,\n FOUNDER_ONBOARDING_STEPS,\n GOAL_CATEGORIES,\n GOAL_CATEGORY_KEYS,\n type GoalCategory,\n type GoalCategoryKey,\n GUIDELINES_VERSION,\n GUIDELINES_VERSION_MAX,\n guidelinesVersionSchema,\n INTERESTS_MAX,\n INTERESTS_MIN,\n type IsoDate,\n interestsSchema,\n isoDateSchema,\n isoDateToDate,\n isRealIsoDate,\n isUnderAgeDateOfBirth,\n LEGAL_STRUCTURE_VALUES,\n type LegalStructure,\n legalStructureSchema,\n MAX_AGE_YEARS,\n MIN_AGE_YEARS,\n ONBOARDING_DRAFT_KEYS,\n ONBOARDING_STEP_FIELDS,\n ONBOARDING_STEP_KEYS,\n ONBOARDING_STEP_SCHEMAS,\n ONBOARDING_TOTAL_STEPS,\n type OnboardingDraft,\n type OnboardingDraftKey,\n type OnboardingField,\n type OnboardingForm,\n type OnboardingProgressUpdate,\n type OnboardingStatus,\n type OnboardingStepBody,\n type OnboardingStepConfig,\n type OnboardingStepKey,\n onboardingDraftKeySchema,\n onboardingDraftSchema,\n onboardingFormSchema,\n onboardingProgressUpdateSchema,\n onboardingStatusSchema,\n PHONE_INPUT_MAX,\n readOnboardingDraft,\n TEAM_SIZE_DIGITS_MAX,\n TOPIC_CATEGORIES,\n TOPIC_CATEGORY_KEYS,\n TOPIC_VALUES,\n type Topic,\n type TopicCategory,\n type TopicCategoryKey,\n teamSizeDigits,\n todayInIndia,\n topicSchema,\n} from './domains/onboarding/onboarding.js';\nexport {\n type CompleteOnboardingBodyCandidate,\n completeOnboardingBodyFrom,\n emptyOnboardingForm,\n foundedYearDigits,\n locationStarted,\n onboardingDraftForStep,\n ventureBodyFrom,\n ventureStarted,\n} from './domains/onboarding/onboarding-answers.js';\n// ─── A person, on every surface (0.20.0) ────────────────────────────────────\nexport { formerPerson, initialsOf, type Person, personSchema } from './domains/people/person.js';\n// ─── Products: what founders build, and the help around it ───────────────────\nexport {\n type CreateProductBody,\n createProductBodySchema,\n type InviteProductMemberBody,\n inviteProductMemberBodySchema,\n type MyProducts,\n missingForListing,\n myProductsSchema,\n PRODUCT_ASK_VALUES,\n PRODUCT_INVITABLE_ROLE_VALUES,\n PRODUCT_LINK_KEYS,\n PRODUCT_LISTING_REQUIREMENT_VALUES,\n PRODUCT_MEMBER_STATUS_VALUES,\n PRODUCT_PAUSED_BY_VALUES,\n PRODUCT_PLATFORM_VALUES,\n PRODUCT_SORT_VALUES,\n PRODUCT_STAGE_VALUES,\n PRODUCT_STATUS_VALUES,\n PRODUCT_TEAM_ROLE_VALUES,\n PRODUCT_TOPICS_MAX,\n PRODUCT_VISIBILITY_VALUES,\n type Product,\n type ProductAsk,\n type ProductCard,\n type ProductCardPage,\n type ProductChip,\n type ProductDiscoverQuery,\n type ProductDiscoverQueryInput,\n type ProductFacets,\n type ProductFeedbackQuery,\n type ProductFeedbackQueryInput,\n type ProductInvitableRole,\n type ProductInvite,\n type ProductInvites,\n type ProductLinkKey,\n type ProductLinks,\n type ProductListingRequirement,\n type ProductMemberParams,\n type ProductMemberStatus,\n type ProductParams,\n type ProductPausedBy,\n type ProductPendingInvite,\n type ProductPendingInvitePage,\n type ProductPlatform,\n type ProductRating,\n type ProductScreenshot,\n type ProductScreenshotInput,\n type ProductSort,\n type ProductStage,\n type ProductStatus,\n type ProductsByMemberParams,\n type ProductTeamMember,\n type ProductTeamPage,\n type ProductTeamRole,\n type ProductTester,\n type ProductTesterPage,\n type ProductUpvoteResponse,\n type ProductViewer,\n type ProductVisibility,\n productAskSchema,\n productCardPageSchema,\n productCardSchema,\n productCardViewerSchema,\n productChipSchema,\n productDiscoverQuerySchema,\n productFacetsSchema,\n productFeedbackQuerySchema,\n productInvitableRoleSchema,\n productInviteSchema,\n productInvitesSchema,\n productIsOnDiscover,\n productLinksReadSchema,\n productLinksSchema,\n productListingRequirementSchema,\n productMemberParamsSchema,\n productMemberStatusSchema,\n productParamsSchema,\n productPausedBySchema,\n productPendingInvitePageSchema,\n productPendingInviteSchema,\n productPlatformSchema,\n productRatingSchema,\n productSchema,\n productScreenshotInputSchema,\n productScreenshotSchema,\n productSortSchema,\n productStageSchema,\n productStatusSchema,\n productsByMemberParamsSchema,\n productTeamMemberSchema,\n productTeamPageSchema,\n productTeamRoleSchema,\n productTesterPageSchema,\n productTesterSchema,\n productUpvoteResponseSchema,\n productVideoUrlSchema,\n productViewerSchema,\n productVisibilitySchema,\n type SetProductLiveBody,\n type SetProductLogoBody,\n type SetProductMemberRoleBody,\n type SetProductScreenshotsBody,\n type SetProductStatusBody,\n type SetProductVisibilityBody,\n setProductLiveBodySchema,\n setProductLogoBodySchema,\n setProductMemberRoleBodySchema,\n setProductScreenshotsBodySchema,\n setProductStatusBodySchema,\n setProductVisibilityBodySchema,\n type TransferProductBody,\n transferProductBodySchema,\n type UpdateProductBody,\n updateProductBodySchema,\n} from './domains/products/products.js';\n// ─── Founder profile ─────────────────────────────────────────────────────────\nexport {\n CONTACT_VISIBILITY_AUDIENCE,\n CONTACT_VISIBILITY_FIELDS,\n type ContactVisibility,\n type ContactVisibilityField,\n type ContributionSummary,\n changesDiscoverCard,\n contactVisibilitySchema,\n contributionSummarySchema,\n FOUNDER_CARD_EDIT_FIELDS,\n FOUNDER_CARD_FIELDS,\n FOUNDER_LINK_KEYS,\n type FounderCard,\n type FounderCardField,\n type FounderLinkKey,\n type FounderLinks,\n type FounderProfile,\n founderCardSchema,\n founderLinksSchema,\n founderProfileSchema,\n type MemberByline,\n type MemberHandleParams,\n type MemberProfile,\n type MyPersonalDetails,\n memberBylineSchema,\n memberHandleParamsSchema,\n memberProfileSchema,\n myPersonalDetailsSchema,\n PROFILE_AUDIENCE_VALUES,\n type ProfileAudience,\n type PublicBirthday,\n publicBirthdaySchema,\n type SetAvatarBody,\n setAvatarBodySchema,\n type UpdateFounderProfileBody,\n type UpdateMyPersonalDetailsBody,\n type UpdatePhotoSettingsBody,\n type UpdateUsernameBody,\n USERNAME_UNAVAILABLE_REASON_VALUES,\n type UsernameAvailability,\n type UsernameAvailabilityQuery,\n type UsernameUnavailableReason,\n updateFounderProfileBodySchema,\n updateMyPersonalDetailsBodySchema,\n updatePhotoSettingsBodySchema,\n updateUsernameBodySchema,\n usernameAvailabilityQuerySchema,\n usernameAvailabilitySchema,\n VENTURE_KEYS,\n VENTURE_OPTIONAL_KEYS,\n type Venture,\n type VentureKey,\n ventureSchema,\n} from './domains/profile/founder-profile.js';\n// ─── The member's own private answers (0.16.0) ───────────────────────────────\nexport {\n type MyBusiness,\n type MyInterests,\n type MyVenture,\n myBusinessSchema,\n myInterestsSchema,\n myVentureSchema,\n type PutMyBusinessBody,\n type PutMyInterestsBody,\n putMyBusinessBodySchema,\n putMyInterestsBodySchema,\n} from './domains/profile/my-profile.js';\n// ─── Reviews: stars and words on a product ───────────────────────────────────\nexport {\n type CreateReviewBody,\n createReviewBodySchema,\n type ProductReview,\n productReviewSchema,\n REVIEW_SORT_VALUES,\n type ReviewHelpfulResponse,\n type ReviewPage,\n type ReviewParams,\n type ReviewRating,\n type ReviewReply,\n type ReviewReplyBody,\n type ReviewSort,\n type ReviewsQuery,\n type ReviewsQueryInput,\n type ReviewViewer,\n reviewHelpfulResponseSchema,\n reviewPageSchema,\n reviewParamsSchema,\n reviewRatingSchema,\n reviewReplyBodySchema,\n reviewReplySchema,\n reviewSortSchema,\n reviewsQuerySchema,\n reviewViewerSchema,\n type UpdateReviewBody,\n updateReviewBodySchema,\n} from './domains/reviews/reviews.js';\nexport {\n type CreateTicketBody,\n createTicketBodySchema,\n REFUND_ASK_CATEGORY,\n type ReplyTicketBody,\n replyTicketBodySchema,\n type SavedReply,\n type SavedReplyBody,\n type SavedReplyList,\n type SavedReplyParams,\n savedReplyBodySchema,\n savedReplyListSchema,\n savedReplyParamsSchema,\n savedReplySchema,\n TICKET_ASSIGNEE_FILTER_VALUES,\n TICKET_CATEGORY_VALUES,\n TICKET_CHANGE_VALUES,\n TICKET_SCOPE_VALUES,\n TICKET_SIDE_VALUES,\n TICKET_STATUS_VALUES,\n type TicketAssigneeFilter,\n type TicketCategory,\n type TicketChange,\n type TicketDetail,\n type TicketListQuery,\n type TicketListQueryInput,\n type TicketMessage,\n type TicketPage,\n type TicketParams,\n type TicketScope,\n type TicketSide,\n type TicketStatus,\n type TicketSummary,\n ticketAssigneeFilterSchema,\n ticketCategorySchema,\n ticketDetailSchema,\n ticketListQuerySchema,\n ticketMessageSchema,\n ticketPageSchema,\n ticketParamsSchema,\n ticketScopeSchema,\n ticketSideSchema,\n ticketStatusSchema,\n ticketSummarySchema,\n} from './domains/support/support.js';\nexport {\n type SetMemberCapabilitiesBody,\n type SetMemberCapabilitiesResponse,\n type SetMemberRolesBody,\n type SetMemberRolesResponse,\n setMemberCapabilitiesBodySchema,\n setMemberCapabilitiesResponseSchema,\n setMemberRolesBodySchema,\n setMemberRolesResponseSchema,\n type TeamMember,\n type TeamMemberParams,\n type TeamPage,\n teamMemberParamsSchema,\n teamMemberSchema,\n teamPageSchema,\n} from './domains/team/team.js';\n// ─── Uploads: asking for a slot, completing it, discarding it ───────────────\nexport {\n UPLOAD_CONTENT_TYPES,\n UPLOAD_FILE_EXTENSIONS,\n type UploadFileExtension,\n type UploadParams,\n type UploadPresignBody,\n type UploadPresignResponse,\n uploadParamsSchema,\n uploadPresignBodySchema,\n uploadPresignResponseSchema,\n} from './domains/uploads/uploads.js';\n// ─── Waitlist: joining before the launch, and your place on it (0.15.0) ─────\nexport {\n type MyWaitlist,\n myWaitlistSchema,\n WAITLIST_REFUSAL_VALUES,\n type WaitlistPlace,\n type WaitlistRefusal,\n type WaitlistStatus,\n waitlistPlaceSchema,\n waitlistRefusalSchema,\n waitlistStatusSchema,\n} from './domains/waitlist/waitlist.js';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "founder-schema",
3
- "version": "0.20.0",
3
+ "version": "0.22.0",
4
4
  "description": "Shared Zod schemas for Founder Circle — single source of truth for API contracts, validation, and TypeScript types (backend + web client + app client).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",