founder-schema 0.30.0 → 0.31.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.
Files changed (35) hide show
  1. package/dist/core/errors.d.ts +5 -1
  2. package/dist/core/errors.d.ts.map +1 -1
  3. package/dist/core/errors.js +13 -0
  4. package/dist/core/errors.js.map +1 -1
  5. package/dist/core/limits.d.ts +17 -0
  6. package/dist/core/limits.d.ts.map +1 -1
  7. package/dist/core/limits.js +17 -0
  8. package/dist/core/limits.js.map +1 -1
  9. package/dist/core/responses.d.ts +4 -0
  10. package/dist/core/responses.d.ts.map +1 -1
  11. package/dist/domains/billing/billing.d.ts +373 -11
  12. package/dist/domains/billing/billing.d.ts.map +1 -1
  13. package/dist/domains/billing/billing.js +168 -2
  14. package/dist/domains/billing/billing.js.map +1 -1
  15. package/dist/domains/billing/emails.d.ts +171 -0
  16. package/dist/domains/billing/emails.d.ts.map +1 -0
  17. package/dist/domains/billing/emails.js +121 -0
  18. package/dist/domains/billing/emails.js.map +1 -0
  19. package/dist/domains/billing/payment-method.d.ts +63 -0
  20. package/dist/domains/billing/payment-method.d.ts.map +1 -0
  21. package/dist/domains/billing/payment-method.js +57 -0
  22. package/dist/domains/billing/payment-method.js.map +1 -0
  23. package/dist/domains/membership/membership.d.ts +127 -0
  24. package/dist/domains/membership/membership.d.ts.map +1 -1
  25. package/dist/domains/membership/membership.js +87 -0
  26. package/dist/domains/membership/membership.js.map +1 -1
  27. package/dist/domains/notifications/notifications.d.ts +38 -1
  28. package/dist/domains/notifications/notifications.d.ts.map +1 -1
  29. package/dist/domains/notifications/notifications.js +33 -2
  30. package/dist/domains/notifications/notifications.js.map +1 -1
  31. package/dist/index.d.ts +5 -3
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +5 -3
  34. package/dist/index.js.map +1 -1
  35. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"membership.js","sourceRoot":"","sources":["../../../src/domains/membership/membership.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AC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,QAAQ,EAAE,cAAc;IACxB,0FAA0F;IAC1F,UAAU,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACvC,oGAAoG;IACpG,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,QAAQ,EAAE;IACrD,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;QACb,gDAAgD;QAChD,IAAI,EAAE,cAAc,CAAC,QAAQ,EAAE;QAC/B,qEAAqE;QACrE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;KACjC,CAAC;IACF,MAAM,EAAE,gBAAgB;IACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,2CAA2C;QAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACpC,+CAA+C;QAC/C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACrC;;;;WAIG;QACH,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;KACxC,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,2EAA2E;QAC3E,IAAI,EAAE,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), or while\n * payments were not live yet: before the catalog's `paymentsLiveAt`,\n * or with none set (the user, 2026-11-19: whoever joins while\n * payments are \"coming soon\" keeps the membership free for life)\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 *\n * The server grants the same free membership to an account created while\n * payments are not live (before the catalog's `paymentsLiveAt`, or with none\n * set; the user, 2026-11-19). That rule is the server's: `isEarlyBird` here\n * answers for this instant alone.\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 payments are LIVE here now: the server's `PAYMENTS_LIVE_AT` is set\n * and has passed, and its gateway is configured. While false, plans and\n * payments are \"coming soon\": a client shows no price, plan, pay button or\n * code box, and every quote and order (a free code's too) answers\n * `PAYMENTS_UNAVAILABLE` (the user, 2026-11-19).\n */\n paymentsEnabled: z.boolean(),\n /**\n * The instant payments go (or went) live, or null while none is set. Every\n * account CREATED before it, or while it is null, holds the membership free\n * for life (kind `early_bird`), so the Terms state it as a date. Defaults to\n * null when an older server leaves it out, so a client can ship first.\n */\n paymentsLiveAt: z.iso.datetime().nullable().default(null),\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,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;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,GAA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GAAG,EAAE,CAAC,WAAW,EAAE;KACxC,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,2EAA2E;QAC3E,IAAI,EAAE,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;IACxC;;;;OAIG;IACH,WAAW,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CACxD,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 { objectIdSchema } from '../../core/common.js';\nimport { DAY_MS, INDIA_UTC_OFFSET_MS } from '../../core/limits.js';\nimport { billingDetailsSchema } from '../billing/gst.js';\nimport { paymentMethodSnapshotSchema } from '../billing/payment-method.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), or while\n * payments were not live yet: before the catalog's `paymentsLiveAt`,\n * or with none set (the user, 2026-11-19: whoever joins while\n * payments are \"coming soon\" keeps the membership free for life)\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 *\n * The server grants the same free membership to an account created while\n * payments are not live (before the catalog's `paymentsLiveAt`, or with none\n * set; the user, 2026-11-19). That rule is the server's: `isEarlyBird` here\n * answers for this instant alone.\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 payments are LIVE here now: the server's `PAYMENTS_LIVE_AT` is set\n * and has passed, and its gateway is configured. While false, plans and\n * payments are \"coming soon\": a client shows no price, plan, pay button or\n * code box, and every quote and order (a free code's too) answers\n * `PAYMENTS_UNAVAILABLE` (the user, 2026-11-19).\n */\n paymentsEnabled: z.boolean(),\n /**\n * The instant payments go (or went) live, or null while none is set. Every\n * account CREATED before it, or while it is null, holds the membership free\n * for life (kind `early_bird`), so the Terms state it as a date. Defaults to\n * null when an older server leaves it out, so a client can ship first.\n */\n paymentsLiveAt: z.iso.datetime().nullable().default(null),\n /**\n * Whether a plan may renew AUTOMATICALLY here (0.31.0, payments v2). The\n * server's two keys: its `SUBSCRIPTIONS_ENABLED` is set AND its gateway plans\n * resolve, and payments are live. While false a client offers no\n * \"Renew automatically\" switch: every plan is prepaid. Defaults to false\n * when an older server leaves it out.\n */\n autoRenewEnabled: z.boolean().default(false),\n});\nexport type PlanCatalog = z.infer<typeof planCatalogSchema>;\n\n// ─── Auto-renewal (0.31.0, payments v2) ──────────────────────────────────────\n//\n// The user, 2026-11-25: plans RENEW AUTOMATICALLY BY DEFAULT, and the member can\n// turn it off (founder-circle-backend docs/payments-v2-plan.md, section 3a). An\n// auto-renewal is a Razorpay subscription for one tier and period: each charge\n// it makes is an ORDER that buys one period, appended to the blocks exactly as\n// a manual purchase is (same invoice, same 7-day refund). It adds time only\n// when a charge lands, so a failed charge takes nothing away: the plan ends\n// when its time runs out, as a prepaid one does.\n\n/**\n * Where an auto-renewal stands: Razorpay's subscription states, as it names\n * them. ⚠ Stored: append only.\n *\n * created made, waiting for the member to authorise it at Checkout\n * authenticated authorised; its first charge is on a later date (it starts\n * when the time already held ends)\n * active charging each period\n * pending a charge failed; Razorpay is retrying (T+1 to T+3 days)\n * halted every retry failed: no more charges (auto-renew is off)\n * cancelled turned off (at the end of the period, or at once after a\n * refund), or replaced\n * completed its cycles ran out\n * expired never authorised in time\n * paused paused at the gateway (Founder Circle never pauses one)\n */\nexport const AUTO_RENEWAL_STATUS_VALUES = [\n 'created',\n 'authenticated',\n 'active',\n 'pending',\n 'halted',\n 'cancelled',\n 'completed',\n 'expired',\n 'paused',\n] as const;\nexport const autoRenewalStatusSchema = z.enum(AUTO_RENEWAL_STATUS_VALUES);\nexport type AutoRenewalStatus = z.infer<typeof autoRenewalStatusSchema>;\n\n/** The statuses in which an auto-renewal will still charge (or is about to). */\nexport const AUTO_RENEWAL_RUNNING_VALUES = [\n 'authenticated',\n 'active',\n 'pending',\n] as const satisfies readonly AutoRenewalStatus[];\n\n/**\n * A member's auto-renewal, as `GET /me/membership` shows it: at most one, the\n * running one (null when none runs).\n */\nexport const autoRenewalSchema = z.object({\n id: objectIdSchema,\n status: autoRenewalStatusSchema,\n tier: planTierSchema,\n period: planPeriodSchema,\n /** What each charge takes, GST included: the price it was started at, kept. */\n amount: paiseSchema,\n /** When the next charge is due; null when none will come (turned off, halted). */\n nextChargeAt: z.iso.datetime().nullable(),\n /** Turned off: no more charges; the time already paid stays until it ends. */\n cancelAtCycleEnd: z.boolean(),\n /** How it pays, as last charged or authorised; null before the gateway says. */\n method: paymentMethodSnapshotSchema.nullable(),\n /** A failed charge (`pending`) can be fixed by updating the method. */\n canUpdateMethod: z.boolean(),\n /**\n * In the renewal grace (`RENEWAL_GRACE_DAYS`): the time held has ended and\n * the charge is awaited, so the tier stays in force until this instant.\n * Null outside it. A client says \"your renewal is being processed; your\n * plan stays active until <date>\" (or, with `status: 'pending'`, that the\n * charge failed and is being retried).\n */\n graceUntil: z.iso.datetime().nullable().default(null),\n});\nexport type AutoRenewal = z.infer<typeof autoRenewalSchema>;\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 /**\n * The auto-renewal that runs (0.31.0): authorised, charging, or retrying a\n * failed charge. Null when none does. Defaults to null when an older server\n * leaves it out.\n */\n autoRenewal: autoRenewalSchema.nullable().default(null),\n});\nexport type MeMembership = z.infer<typeof meMembershipSchema>;\n"]}
@@ -69,12 +69,21 @@ import { z } from 'zod';
69
69
  * item like a reaction; a NEW up vote only (a down vote, a flip
70
70
  * and a clear are silent); in the bell, never a push.
71
71
  * comment_upvote someone up voted your comment (2026-11-23), as above.
72
+ * renewal_done your auto-renewal charged and your plan runs on (0.31.0,
73
+ * always delivered, no push: the receipt email says it too)
74
+ * renewal_failed your auto-renewal's charge did not go through; the gateway
75
+ * retries for 3 days (0.31.0, always delivered, with a push)
76
+ * auto_renew_stopped your auto-renewal stopped: every retry failed, or it was
77
+ * ended with a refund or the membership (0.31.0, always
78
+ * delivered, with a push). Not for turning it off yourself.
79
+ * plan_renews_soon a YEARLY auto-renewal charges in 7 days (0.31.0, always
80
+ * delivered). Monthly ones rely on the bank's pre-debit notice.
72
81
  *
73
82
  * The three 0.8.0 kinds merge per target like the others. A reaction counts
74
83
  * once: changing it to another type is not a new event, and taking it back
75
84
  * does not take the event back.
76
85
  */
77
- 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", "free_plans_ended", "new_follower", "followed_member_posted", "mention", "post_upvote", "comment_upvote", "product_comment", "product_comment_reply"];
86
+ 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", "free_plans_ended", "new_follower", "followed_member_posted", "mention", "post_upvote", "comment_upvote", "product_comment", "product_comment_reply", "renewal_done", "renewal_failed", "auto_renew_stopped", "plan_renews_soon"];
78
87
  export declare const notificationKindSchema: z.ZodEnum<{
79
88
  product_comment: "product_comment";
80
89
  feedback_helpful: "feedback_helpful";
@@ -104,6 +113,10 @@ export declare const notificationKindSchema: z.ZodEnum<{
104
113
  post_upvote: "post_upvote";
105
114
  comment_upvote: "comment_upvote";
106
115
  product_comment_reply: "product_comment_reply";
116
+ renewal_done: "renewal_done";
117
+ renewal_failed: "renewal_failed";
118
+ auto_renew_stopped: "auto_renew_stopped";
119
+ plan_renews_soon: "plan_renews_soon";
107
120
  }>;
108
121
  export type NotificationKind = z.infer<typeof notificationKindSchema>;
109
122
  /** The switches a member has, each covering one or more kinds. */
@@ -142,6 +155,10 @@ export declare const NOTIFICATION_PREFERENCE_OF: {
142
155
  readonly comment_upvote: "upvotes";
143
156
  readonly product_comment: "comments";
144
157
  readonly product_comment_reply: "replies";
158
+ readonly renewal_done: null;
159
+ readonly renewal_failed: null;
160
+ readonly auto_renew_stopped: null;
161
+ readonly plan_renews_soon: null;
145
162
  };
146
163
  /**
147
164
  * One row of the bell. Which of the optional targets are present depends on
@@ -176,6 +193,10 @@ export declare const NOTIFICATION_PREFERENCE_OF: {
176
193
  * comment_upvote content, commentId, excerpt (your comment)
177
194
  * product_comment product, commentId, excerpt (to the product's owner)
178
195
  * product_comment_reply product, commentId (the reply), excerpt
196
+ * renewal_done plan (the tier, and its NEW end), payment (the charge)
197
+ * renewal_failed plan (the tier, and when its time runs out), renewal (amount, due date)
198
+ * auto_renew_stopped plan (the tier, and when its time runs out)
199
+ * plan_renews_soon plan (the tier, and when its time runs out), renewal (amount, charge date)
179
200
  *
180
201
  * Any row about something inside a community also carries `community`
181
202
  * (0.9.0), whatever its kind. When the recipient leaves the community, is
@@ -216,6 +237,10 @@ export declare const notificationSchema: z.ZodObject<{
216
237
  post_upvote: "post_upvote";
217
238
  comment_upvote: "comment_upvote";
218
239
  product_comment_reply: "product_comment_reply";
240
+ renewal_done: "renewal_done";
241
+ renewal_failed: "renewal_failed";
242
+ auto_renew_stopped: "auto_renew_stopped";
243
+ plan_renews_soon: "plan_renews_soon";
219
244
  }>;
220
245
  actor: z.ZodNullable<z.ZodObject<{
221
246
  userId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -271,6 +296,10 @@ export declare const notificationSchema: z.ZodObject<{
271
296
  }>;
272
297
  endsAt: z.ZodISODateTime;
273
298
  }, z.core.$strip>>;
299
+ renewal: z.ZodOptional<z.ZodObject<{
300
+ amount: z.ZodNumber;
301
+ at: z.ZodISODateTime;
302
+ }, z.core.$strip>>;
274
303
  paused: z.ZodOptional<z.ZodNumber>;
275
304
  payment: z.ZodOptional<z.ZodObject<{
276
305
  id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -328,6 +357,10 @@ export declare const notificationPageSchema: z.ZodObject<{
328
357
  post_upvote: "post_upvote";
329
358
  comment_upvote: "comment_upvote";
330
359
  product_comment_reply: "product_comment_reply";
360
+ renewal_done: "renewal_done";
361
+ renewal_failed: "renewal_failed";
362
+ auto_renew_stopped: "auto_renew_stopped";
363
+ plan_renews_soon: "plan_renews_soon";
331
364
  }>;
332
365
  actor: z.ZodNullable<z.ZodObject<{
333
366
  userId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -383,6 +416,10 @@ export declare const notificationPageSchema: z.ZodObject<{
383
416
  }>;
384
417
  endsAt: z.ZodISODateTime;
385
418
  }, z.core.$strip>>;
419
+ renewal: z.ZodOptional<z.ZodObject<{
420
+ amount: z.ZodNumber;
421
+ at: z.ZodISODateTime;
422
+ }, z.core.$strip>>;
386
423
  paused: z.ZodOptional<z.ZodNumber>;
387
424
  payment: z.ZodOptional<z.ZodObject<{
388
425
  id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,eAAO,MAAM,wBAAwB,qjBA8B3B,CAAC;AACX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmC,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,kEAAkE;AAClE,eAAO,MAAM,8BAA8B,gKAYjC,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BqC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8D7B,CAA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,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;;;;;;;;;;;;iBAmBxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,kFAAkF;AAClF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;iBAYlD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC"}
@@ -34,7 +34,7 @@ import { NOTIFICATION_EXCERPT_MAX } from '../../core/limits.js';
34
34
  import { paginatedSchema } from '../../core/responses.js';
35
35
  import { communityChipSchema, communitySuggestionDecisionSchema, } from '../communities/communities.js';
36
36
  import { contentKindSchema, reactionTypeSchema } from '../feed/feed.js';
37
- import { planTierSchema } from '../membership/membership.js';
37
+ import { paiseSchema, planTierSchema } from '../membership/membership.js';
38
38
  import { productChipSchema, productInvitableRoleSchema } from '../products/products.js';
39
39
  import { memberBylineSchema } from '../profile/founder-profile.js';
40
40
  /**
@@ -77,6 +77,15 @@ import { memberBylineSchema } from '../profile/founder-profile.js';
77
77
  * item like a reaction; a NEW up vote only (a down vote, a flip
78
78
  * and a clear are silent); in the bell, never a push.
79
79
  * comment_upvote someone up voted your comment (2026-11-23), as above.
80
+ * renewal_done your auto-renewal charged and your plan runs on (0.31.0,
81
+ * always delivered, no push: the receipt email says it too)
82
+ * renewal_failed your auto-renewal's charge did not go through; the gateway
83
+ * retries for 3 days (0.31.0, always delivered, with a push)
84
+ * auto_renew_stopped your auto-renewal stopped: every retry failed, or it was
85
+ * ended with a refund or the membership (0.31.0, always
86
+ * delivered, with a push). Not for turning it off yourself.
87
+ * plan_renews_soon a YEARLY auto-renewal charges in 7 days (0.31.0, always
88
+ * delivered). Monthly ones rely on the bank's pre-debit notice.
80
89
  *
81
90
  * The three 0.8.0 kinds merge per target like the others. A reaction counts
82
91
  * once: changing it to another type is not a new event, and taking it back
@@ -112,6 +121,11 @@ export const NOTIFICATION_KIND_VALUES = [
112
121
  // Comments ON a product (2026-11-24): to its owner, and to a comment's writer for a reply.
113
122
  'product_comment',
114
123
  'product_comment_reply',
124
+ // Auto-renewal (0.31.0, payments v2).
125
+ 'renewal_done',
126
+ 'renewal_failed',
127
+ 'auto_renew_stopped',
128
+ 'plan_renews_soon',
115
129
  ];
116
130
  export const notificationKindSchema = z.enum(NOTIFICATION_KIND_VALUES);
117
131
  /** The switches a member has, each covering one or more kinds. */
@@ -161,6 +175,10 @@ export const NOTIFICATION_PREFERENCE_OF = {
161
175
  comment_upvote: 'upvotes',
162
176
  product_comment: 'comments',
163
177
  product_comment_reply: 'replies',
178
+ renewal_done: null,
179
+ renewal_failed: null,
180
+ auto_renew_stopped: null,
181
+ plan_renews_soon: null,
164
182
  };
165
183
  /**
166
184
  * One row of the bell. Which of the optional targets are present depends on
@@ -195,6 +213,10 @@ export const NOTIFICATION_PREFERENCE_OF = {
195
213
  * comment_upvote content, commentId, excerpt (your comment)
196
214
  * product_comment product, commentId, excerpt (to the product's owner)
197
215
  * product_comment_reply product, commentId (the reply), excerpt
216
+ * renewal_done plan (the tier, and its NEW end), payment (the charge)
217
+ * renewal_failed plan (the tier, and when its time runs out), renewal (amount, due date)
218
+ * auto_renew_stopped plan (the tier, and when its time runs out)
219
+ * plan_renews_soon plan (the tier, and when its time runs out), renewal (amount, charge date)
198
220
  *
199
221
  * Any row about something inside a community also carries `community`
200
222
  * (0.9.0), whatever its kind. When the recipient leaves the community, is
@@ -239,8 +261,17 @@ export const notificationSchema = z.object({
239
261
  reason: z.string().optional(),
240
262
  })
241
263
  .optional(),
242
- /** For `plan_ending` and `plan_ended` (0.12.0): which tier, and when it ends or ended. */
264
+ /**
265
+ * For `plan_ending` and `plan_ended` (0.12.0), and the auto-renewal kinds
266
+ * (0.31.0): which tier, and when it ends or ended.
267
+ */
243
268
  plan: z.object({ tier: planTierSchema, endsAt: z.iso.datetime() }).optional(),
269
+ /**
270
+ * For `plan_renews_soon` and `renewal_failed` (0.31.0): what the
271
+ * auto-renewal charges, and when (the charge that is coming, or the one
272
+ * that failed).
273
+ */
274
+ renewal: z.object({ amount: paiseSchema, at: z.iso.datetime() }).optional(),
244
275
  /**
245
276
  * For `plan_ended` (0.12.0) and `free_plans_ended` (0.24.0): products paused
246
277
  * because the live places went. Nothing is deleted; the owner picks which stay live.
@@ -1 +1 @@
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM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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;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,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 * free_plans_ended payments went live, so the top plan every member held free\n * while they were off ended; `paused` products were paused\n * (0.24.0, always delivered; only to owners it paused any for)\n * new_follower someone started following you (2026-11-20). Rings once while\n * unread; an unfollow takes the unread row back.\n * followed_member_posted someone you follow shared a new post or poll you can read\n * (2026-11-20). One row per post; never its text.\n * mention someone @mentioned you in a post, a poll's question or a\n * comment (2026-11-23). One row per post or poll: mentions in\n * it and in its comments merge. Never for naming yourself.\n * post_upvote someone up voted your post or poll (2026-11-23). Merged per\n * item like a reaction; a NEW up vote only (a down vote, a flip\n * and a clear are silent); in the bell, never a push.\n * comment_upvote someone up voted your comment (2026-11-23), as above.\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 'free_plans_ended',\n 'new_follower',\n 'followed_member_posted',\n 'mention',\n 'post_upvote',\n 'comment_upvote',\n // Comments ON a product (2026-11-24): to its owner, and to a comment's writer for a reply.\n 'product_comment',\n 'product_comment_reply',\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 'followers',\n 'followedPosts',\n 'mentions',\n 'upvotes',\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 free_plans_ended: null,\n new_follower: 'followers',\n followed_member_posted: 'followedPosts',\n mention: 'mentions',\n post_upvote: 'upvotes',\n comment_upvote: 'upvotes',\n product_comment: 'comments',\n product_comment_reply: 'replies',\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 * free_plans_ended paused (how many products)\n * new_follower (the actor alone: who followed you)\n * followed_member_posted content (their new post or poll), community (when it is in one)\n * mention content (where), commentId (when it was in a comment), excerpt;\n * or, in a comment ON a product, product + commentId (no content)\n * post_upvote content\n * comment_upvote content, commentId, excerpt (your comment)\n * product_comment product, commentId, excerpt (to the product's owner)\n * product_comment_reply product, commentId (the reply), excerpt\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 /**\n * For `plan_ended` (0.12.0) and `free_plans_ended` (0.24.0): products paused\n * because the live places went. Nothing is deleted; the owner picks which stay live.\n */\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 /** Someone started following you (2026-11-20). */\n followers: z.boolean(),\n /** Someone you follow shared a new post or poll (2026-11-20). */\n followedPosts: z.boolean(),\n /** Someone @mentioned you (2026-11-23). On for an answer from before the switch. */\n mentions: z.boolean().default(true),\n /** Up votes on your posts, polls and comments (2026-11-23). */\n upvotes: 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 followers: z.boolean().optional(),\n followedPosts: z.boolean().optional(),\n mentions: z.boolean().optional(),\n upvotes: 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,WAAW,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,iBAAiB;IACjB,kBAAkB;IAClB,gBAAgB;IAChB,yBAAyB;IACzB,gBAAgB;IAChB,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,eAAe;IACf,kBAAkB;IAClB,QAAQ;IAC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AC,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;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,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 { paiseSchema, 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 * free_plans_ended payments went live, so the top plan every member held free\n * while they were off ended; `paused` products were paused\n * (0.24.0, always delivered; only to owners it paused any for)\n * new_follower someone started following you (2026-11-20). Rings once while\n * unread; an unfollow takes the unread row back.\n * followed_member_posted someone you follow shared a new post or poll you can read\n * (2026-11-20). One row per post; never its text.\n * mention someone @mentioned you in a post, a poll's question or a\n * comment (2026-11-23). One row per post or poll: mentions in\n * it and in its comments merge. Never for naming yourself.\n * post_upvote someone up voted your post or poll (2026-11-23). Merged per\n * item like a reaction; a NEW up vote only (a down vote, a flip\n * and a clear are silent); in the bell, never a push.\n * comment_upvote someone up voted your comment (2026-11-23), as above.\n * renewal_done your auto-renewal charged and your plan runs on (0.31.0,\n * always delivered, no push: the receipt email says it too)\n * renewal_failed your auto-renewal's charge did not go through; the gateway\n * retries for 3 days (0.31.0, always delivered, with a push)\n * auto_renew_stopped your auto-renewal stopped: every retry failed, or it was\n * ended with a refund or the membership (0.31.0, always\n * delivered, with a push). Not for turning it off yourself.\n * plan_renews_soon a YEARLY auto-renewal charges in 7 days (0.31.0, always\n * delivered). Monthly ones rely on the bank's pre-debit notice.\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 'free_plans_ended',\n 'new_follower',\n 'followed_member_posted',\n 'mention',\n 'post_upvote',\n 'comment_upvote',\n // Comments ON a product (2026-11-24): to its owner, and to a comment's writer for a reply.\n 'product_comment',\n 'product_comment_reply',\n // Auto-renewal (0.31.0, payments v2).\n 'renewal_done',\n 'renewal_failed',\n 'auto_renew_stopped',\n 'plan_renews_soon',\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 'followers',\n 'followedPosts',\n 'mentions',\n 'upvotes',\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 free_plans_ended: null,\n new_follower: 'followers',\n followed_member_posted: 'followedPosts',\n mention: 'mentions',\n post_upvote: 'upvotes',\n comment_upvote: 'upvotes',\n product_comment: 'comments',\n product_comment_reply: 'replies',\n renewal_done: null,\n renewal_failed: null,\n auto_renew_stopped: null,\n plan_renews_soon: 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 * free_plans_ended paused (how many products)\n * new_follower (the actor alone: who followed you)\n * followed_member_posted content (their new post or poll), community (when it is in one)\n * mention content (where), commentId (when it was in a comment), excerpt;\n * or, in a comment ON a product, product + commentId (no content)\n * post_upvote content\n * comment_upvote content, commentId, excerpt (your comment)\n * product_comment product, commentId, excerpt (to the product's owner)\n * product_comment_reply product, commentId (the reply), excerpt\n * renewal_done plan (the tier, and its NEW end), payment (the charge)\n * renewal_failed plan (the tier, and when its time runs out), renewal (amount, due date)\n * auto_renew_stopped plan (the tier, and when its time runs out)\n * plan_renews_soon plan (the tier, and when its time runs out), renewal (amount, charge date)\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 /**\n * For `plan_ending` and `plan_ended` (0.12.0), and the auto-renewal kinds\n * (0.31.0): which tier, and when it ends or ended.\n */\n plan: z.object({ tier: planTierSchema, endsAt: z.iso.datetime() }).optional(),\n /**\n * For `plan_renews_soon` and `renewal_failed` (0.31.0): what the\n * auto-renewal charges, and when (the charge that is coming, or the one\n * that failed).\n */\n renewal: z.object({ amount: paiseSchema, at: z.iso.datetime() }).optional(),\n /**\n * For `plan_ended` (0.12.0) and `free_plans_ended` (0.24.0): products paused\n * because the live places went. Nothing is deleted; the owner picks which stay live.\n */\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 /** Someone started following you (2026-11-20). */\n followers: z.boolean(),\n /** Someone you follow shared a new post or poll (2026-11-20). */\n followedPosts: z.boolean(),\n /** Someone @mentioned you (2026-11-23). On for an answer from before the switch. */\n mentions: z.boolean().default(true),\n /** Up votes on your posts, polls and comments (2026-11-23). */\n upvotes: 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 followers: z.boolean().optional(),\n followedPosts: z.boolean().optional(),\n mentions: z.boolean().optional(),\n upvotes: z.boolean().optional(),\n});\nexport type UpdateNotificationPreferencesBody = z.infer<\n typeof updateNotificationPreferencesBodySchema\n>;\n"]}
package/dist/index.d.ts CHANGED
@@ -16,13 +16,15 @@ export { ACCESS_REASON_VALUES, type AccessReason, accessReasonOf, accessReasonSc
16
16
  export { chosenUsernameSchema, eachOnce, emptyStringToUndefined, type FounderLocation, fullNameSchema, GENDER_VALUES, type Gender, GOAL_VALUES, type Goal, genderSchema, goalListSchema, goalSchema, graphemesOf, type HttpUrl, httpUrlOnHosts, httpUrlSchema, INDUSTRY_VALUES, type Industry, industrySchema, isReservedUsername, isUrlOnHost, joinFullName, locationSchema, multiValueQuery, nameFromSignIn, normalizeLinkUrl, normalizePhone, type ObjectIdString, objectIdSchema, optionalTrimmedString, type PaginationQuery, type PaginationQueryInput, PHONE_DIGITS, type Phone, paginationQuerySchema, phoneSchema, queryInt, RESERVED_USERNAMES, requiredGoalListSchema, type SafeUrl, SKILL_VALUES, type Skill, STARTUP_STAGE_VALUES, type StartupStage, safeUrlSchema, skillListSchema, skillSchema, splitFullName, startupStageSchema, tidyFullName, USERNAME_MAX, USERNAME_MIN, type Username, usernameSchema, YOUTUBE_HOSTS, youtubeVideoId, } from './core/common.js';
17
17
  export { DELETED_REASON_VALUES, type DeletedReason, deletedReasonSchema } from './core/deletion.js';
18
18
  export { API_ERROR_CODE, API_ERROR_CODE_VALUES, type ApiErrorCode, apiErrorCodeSchema, } from './core/errors.js';
19
- export { ABOUT_MAX, AREA_NAME_MAX, AREA_SEARCH_MAX, AUTO_HIDE_REPORTS, BILLING_ADDRESS_MAX, BILLING_ADDRESS_MIN, BILLING_NAME_MAX, BILLING_NAME_MIN, BILLING_REASON_MAX, BILLING_REASON_MIN, CHAT_PARTICIPANTS_MAX, CITY_MAX, COMMUNITY_BAN_REASON_MAX, COMMUNITY_DECLINE_REASON_MAX, COMMUNITY_DECLINE_REASON_MIN, COMMUNITY_DESCRIPTION_MAX, COMMUNITY_NAME_MAX, COMMUNITY_NAME_MIN, COMMUNITY_RULE_MAX, COMMUNITY_RULES_MAX, COMMUNITY_SUGGESTION_WHY_MAX, CONTRIBUTION_LEADERBOARD_SIZE, CONTRIBUTION_PAIR_POINTS_MAX, CONTRIBUTION_PAIR_WINDOW_DAYS, CONTRIBUTION_RECENT_DAYS, COUNTRY_MAX, COUPON_CODE_MAX, COUPON_CODE_MIN, COUPON_LABEL_MAX, COUPON_LABEL_MIN, COUPON_PERCENT_MAX, COUPON_PERCENT_MIN, COUPON_USES_MAX, CURSOR_MAX, DASHBOARD_RECENT_DAYS, DAY_MS, DISCOVER_FILTER_VALUES_MAX, DISCOVER_TEXT_MAX, DISPLAY_NAME_MAX, ERASURE_RETENTION_DAYS, FOUNDED_YEAR_MIN, GEO_ACCURACY_MAX_M, GEO_PRECISE_ACCURACY_M, GEO_SYNC_ACCURACY_MAX_M, GOALS_MIN, GSTIN_LENGTH, HEADLINE_MAX, INDIA_TIME_ZONE, INDIA_UTC_OFFSET_MS, INVOICE_NUMBER_MAX, LINK_URL_MAX, LOCALITY_PAGE_SIZE, LOCALITY_SKIP_MAX, LOCATION_HISTORY_MAX, LOCATION_HISTORY_MAX_DAYS, MEDIA_ALT_MAX, MEDIA_MAX_INPUT_PIXELS, MEDIA_PENDING_MAX, MEDIA_PLACEHOLDER_MAX, MEDIA_UNATTACHED_TTL_HOURS, MEMBER_SEARCH_MAX, MODERATION_EXCERPT_MAX, MODERATION_NOTE_MAX, NOTIFICATION_EXCERPT_MAX, NOTIFICATION_RETENTION_DAYS, ONBOARDING_DRAFT_RETENTION_DAYS, ORDER_TTL_MINUTES, PAGE_SIZE_DEFAULT, PAGE_SIZE_MAX, PLAN_AHEAD_MAX_YEARS, PLAN_REMINDER_DAYS, PRODUCT_ASK_OPEN_DAYS, PRODUCT_CAPTION_MAX, PRODUCT_DESCRIPTION_MAX, PRODUCT_NAME_MAX, PRODUCT_SCREENSHOTS_MAX, PRODUCT_TAGLINE_MAX, PRODUCT_TEAM_SHOWN, PRODUCTS_LIVE_SAFETY_MAX, RATING_MAX, RATING_MIN, RAZORPAY_EVENT_RETENTION_DAYS, RAZORPAY_ID_MAX, RAZORPAY_SIGNATURE_MAX, REFUND_WINDOW_DAYS, REPORT_NOTE_MAX, REVIEW_AVERAGE_MIN_COUNT, REVIEW_HELPFUL_POINTS_MAX, REVIEW_REPLY_MAX, REVIEW_TEXT_MAX, REVIEW_TEXT_MIN, refundWindowEndsAt, SAVED_REPLIES_MAX, SAVED_REPLY_BODY_MAX, SAVED_REPLY_TITLE_MAX, SKILLS_MAX, STATE_MAX, SUSPENSION_REASON_MAX, SUSPENSION_REASON_MIN, TEAM_SIZE_MAX, TEAM_SIZE_MIN, TICKET_MESSAGE_MAX, TICKET_MESSAGES_MAX, TICKET_SUBJECT_MAX, TICKET_SUBJECT_MIN, UPLOAD_MAX_BYTES, VENTURE_NAME_MAX, VENTURE_TAGLINE_MAX, } from './core/limits.js';
19
+ export { ABOUT_MAX, AREA_NAME_MAX, AREA_SEARCH_MAX, AUTO_HIDE_REPORTS, AUTO_RENEW_REMINDER_DAYS, BILLING_ADDRESS_MAX, BILLING_ADDRESS_MIN, BILLING_NAME_MAX, BILLING_NAME_MIN, BILLING_REASON_MAX, BILLING_REASON_MIN, CHAT_PARTICIPANTS_MAX, CITY_MAX, COMMUNITY_BAN_REASON_MAX, COMMUNITY_DECLINE_REASON_MAX, COMMUNITY_DECLINE_REASON_MIN, COMMUNITY_DESCRIPTION_MAX, COMMUNITY_NAME_MAX, COMMUNITY_NAME_MIN, COMMUNITY_RULE_MAX, COMMUNITY_RULES_MAX, COMMUNITY_SUGGESTION_WHY_MAX, CONTRIBUTION_LEADERBOARD_SIZE, CONTRIBUTION_PAIR_POINTS_MAX, CONTRIBUTION_PAIR_WINDOW_DAYS, CONTRIBUTION_RECENT_DAYS, COUNTRY_MAX, COUPON_CODE_MAX, COUPON_CODE_MIN, COUPON_LABEL_MAX, COUPON_LABEL_MIN, COUPON_PERCENT_MAX, COUPON_PERCENT_MIN, COUPON_USES_MAX, CURSOR_MAX, DASHBOARD_RECENT_DAYS, DAY_MS, DISCOVER_FILTER_VALUES_MAX, DISCOVER_TEXT_MAX, DISPLAY_NAME_MAX, ERASURE_RETENTION_DAYS, FOUNDED_YEAR_MIN, GEO_ACCURACY_MAX_M, GEO_PRECISE_ACCURACY_M, GEO_SYNC_ACCURACY_MAX_M, GOALS_MIN, GSTIN_LENGTH, HEADLINE_MAX, INDIA_TIME_ZONE, INDIA_UTC_OFFSET_MS, INVOICE_NUMBER_MAX, LINK_URL_MAX, LOCALITY_PAGE_SIZE, LOCALITY_SKIP_MAX, LOCATION_HISTORY_MAX, LOCATION_HISTORY_MAX_DAYS, MEDIA_ALT_MAX, MEDIA_MAX_INPUT_PIXELS, MEDIA_PENDING_MAX, MEDIA_PLACEHOLDER_MAX, MEDIA_UNATTACHED_TTL_HOURS, MEMBER_SEARCH_MAX, MODERATION_EXCERPT_MAX, MODERATION_NOTE_MAX, NOTIFICATION_EXCERPT_MAX, NOTIFICATION_RETENTION_DAYS, ONBOARDING_DRAFT_RETENTION_DAYS, ORDER_TTL_MINUTES, PAGE_SIZE_DEFAULT, PAGE_SIZE_MAX, PLAN_AHEAD_MAX_YEARS, PLAN_REMINDER_DAYS, PRODUCT_ASK_OPEN_DAYS, PRODUCT_CAPTION_MAX, PRODUCT_DESCRIPTION_MAX, PRODUCT_NAME_MAX, PRODUCT_SCREENSHOTS_MAX, PRODUCT_TAGLINE_MAX, PRODUCT_TEAM_SHOWN, PRODUCTS_LIVE_SAFETY_MAX, RATING_MAX, RATING_MIN, RAZORPAY_EVENT_RETENTION_DAYS, RAZORPAY_ID_MAX, RAZORPAY_SIGNATURE_MAX, REFUND_WINDOW_DAYS, RENEWAL_GRACE_DAYS, REPORT_NOTE_MAX, REVIEW_AVERAGE_MIN_COUNT, REVIEW_HELPFUL_POINTS_MAX, REVIEW_REPLY_MAX, REVIEW_TEXT_MAX, REVIEW_TEXT_MIN, refundWindowEndsAt, SAVED_REPLIES_MAX, SAVED_REPLY_BODY_MAX, SAVED_REPLY_TITLE_MAX, SKILLS_MAX, STATE_MAX, SUSPENSION_REASON_MAX, SUSPENSION_REASON_MIN, TEAM_SIZE_MAX, TEAM_SIZE_MIN, TICKET_MESSAGE_MAX, TICKET_MESSAGES_MAX, TICKET_SUBJECT_MAX, TICKET_SUBJECT_MIN, UPLOAD_MAX_BYTES, VENTURE_NAME_MAX, VENTURE_TAGLINE_MAX, } from './core/limits.js';
20
20
  export { keptPaise, refundLeftPaise, rupees } from './core/money.js';
21
21
  export { type ApiError, type ApiErrorDetails, apiErrorDetailsSchema, apiErrorSchema, type ErrorResponse, errorResponseSchema, type IdResponse, idResponseSchema, paginatedSchema, type QueryArgs, successResponseSchema, } from './core/responses.js';
22
22
  export { REQUEST_PART_VALUES, type RequestPart, requestPartSchema, toValidationIssues, VALIDATION_MESSAGE, type ValidationIssue, type ValidationMessageKey, validationIssueSchema, } from './core/validation.js';
23
23
  export { type DeleteAccountResponse, deleteAccountResponseSchema, } from './domains/account/account.js';
24
24
  export { AUDIT_ACTION_VALUES, type AuditAction, type AuditActor, type AuditEntry, type AuditPage, auditActionSchema, auditActorSchema, auditEntrySchema, auditPageSchema, } from './domains/audit/audit.js';
25
- export { type AppliedCoupon, appliedCouponSchema, type BillingDetails, billingDetailsSchema, COUPON_KIND_VALUES, COUPON_TARGET_VALUES, type ConfirmOrderBody, type Coupon, type CouponBenefit, type CouponKind, type CouponList, type CouponParams, type CouponTarget, type CreateCouponBody, type CreateOrderBody, type CreateOrderResponse, type CreditNote, confirmOrderBodySchema, couponBenefitSchema, couponCodeSchema, couponListSchema, couponParamsSchema, couponSchema, couponTargetSchema, createCouponBodySchema, createOrderBodySchema, createOrderResponseSchema, creditNoteSchema, GRANT_FAILURE_VALUES, type GrantFailure, GST_RATE_PERCENT, GST_STATE_CODE_VALUES, GST_STATES, type GstStateCode, grantFailureSchema, gstinChecksumValid, gstinSchema, gstStateCodeSchema, gstStateName, INVOICE_KIND_VALUES, type Invoice, type InvoiceKind, type InvoiceParty, invoiceKindSchema, invoicePartySchema, invoiceSchema, ORDER_STATUS_VALUES, type OrderParams, type OrderState, type OrderStatus, orderParamsSchema, orderStateSchema, orderStatusSchema, type Payer, type PaymentDetail, type PaymentPage, type PaymentSummary, type PlanEffect, PURCHASE_KIND_VALUES, type PurchaseItem, type PurchaseKind, payerSchema, paymentDetailSchema, paymentPageSchema, paymentSummarySchema, planEffectSchema, purchaseItemSchema, type Quote, type QuoteBody, quoteBodySchema, quoteSchema, type RefundPaymentBody, refundPaymentBodySchema, type SetMembershipBody, type StaffPaymentDetail, type StaffPaymentPage, type StaffPaymentSummary, type StaffPaymentsQuery, type StaffPaymentsQueryInput, setMembershipBodySchema, staffPaymentDetailSchema, staffPaymentPageSchema, staffPaymentSummarySchema, staffPaymentsQuerySchema, type TaxSplit, taxSplitSchema, type UpdateCouponBody, updateCouponBodySchema, } from './domains/billing/billing.js';
25
+ export { type AppliedCoupon, type AutoRenewalParams, type AutoRenewalState, type AutoRenewTerms, appliedCouponSchema, autoRenewalParamsSchema, autoRenewalStateSchema, autoRenewTermsSchema, type BillingDetails, billingDetailsSchema, COUPON_KIND_VALUES, COUPON_TARGET_VALUES, type ConfirmAutoRenewalBody, type ConfirmOrderBody, type Coupon, type CouponBenefit, type CouponKind, type CouponList, type CouponParams, type CouponTarget, type CreateCouponBody, type CreateOrderBody, type CreateOrderResponse, type CreditNote, confirmAutoRenewalBodySchema, confirmOrderBodySchema, couponBenefitSchema, couponCodeSchema, couponListSchema, couponParamsSchema, couponSchema, couponTargetSchema, createCouponBodySchema, createOrderBodySchema, createOrderResponseSchema, creditNoteSchema, GRANT_FAILURE_VALUES, type GrantFailure, GST_RATE_PERCENT, GST_STATE_CODE_VALUES, GST_STATES, type GstStateCode, grantFailureSchema, gstinChecksumValid, gstinSchema, gstStateCodeSchema, gstStateName, INVOICE_KIND_VALUES, type Invoice, type InvoiceKind, type InvoiceParty, invoiceKindSchema, invoicePartySchema, invoiceSchema, ORDER_SOURCE_VALUES, ORDER_STATUS_VALUES, type OrderParams, type OrderSource, type OrderState, type OrderStatus, orderParamsSchema, orderSourceSchema, orderStateSchema, orderStatusSchema, type Payer, type PaymentDetail, type PaymentMethodUpdate, type PaymentPage, type PaymentSummary, type PlanEffect, PURCHASE_KIND_VALUES, type PurchaseItem, type PurchaseKind, payerSchema, paymentDetailSchema, paymentMethodUpdateSchema, paymentPageSchema, paymentSummarySchema, planEffectSchema, purchaseItemSchema, type Quote, type QuoteBody, quoteBodySchema, quoteSchema, type RefundPaymentBody, refundPaymentBodySchema, type SetMembershipBody, type StaffPaymentDetail, type StaffPaymentPage, type StaffPaymentSummary, type StaffPaymentsQuery, type StaffPaymentsQueryInput, type StartAutoRenewalBody, setMembershipBodySchema, staffPaymentDetailSchema, staffPaymentPageSchema, staffPaymentSummarySchema, staffPaymentsQuerySchema, startAutoRenewalBodySchema, type TaxSplit, taxSplitSchema, type UpdateCouponBody, updateCouponBodySchema, } from './domains/billing/billing.js';
26
+ export { AUTO_RENEW_STOP_REASON_VALUES, type AutoRenewStopReason, autoRenewStopReasonSchema, FC_EMAIL_DATA_SCHEMAS, FC_EMAIL_TEMPLATE_VALUES, type FcEmailData, type FcEmailTemplate, fcAutoRenewStoppedEmailSchema, fcPaymentReceivedEmailSchema, fcPlanEndsSoonEmailSchema, fcPlanRenewsSoonEmailSchema, fcRefundProcessedEmailSchema, fcRenewalDoneEmailSchema, fcRenewalFailedEmailSchema, } from './domains/billing/emails.js';
27
+ export { PAYMENT_METHOD_TEXT_MAX, PAYMENT_METHOD_VALUES, type PaymentMethod, type PaymentMethodSnapshot, paymentMethodSchema, paymentMethodSnapshotSchema, } from './domains/billing/payment-method.js';
26
28
  export { BLOCKS_MAX, type BlockAnswer, type BlockedMember, type BlockedPage, type BlockTargetParams, blockAnswerSchema, blockedMemberSchema, blockedPageSchema, blockTargetParamsSchema, } from './domains/blocks/blocks.js';
27
29
  export { CHAT_OPENED_VIA_VALUES, CHAT_PRODUCT_ID, CHAT_REACH_VALUES, CHAT_SOCKET_REAUTH_SECONDS, CHAT_TOKEN_REFRESH_MARGIN_SECONDS, type ChatAuthToken, type ChatConfig, type ChatOpenedVia, type ChatParticipant, type ChatParticipantsBody, type ChatParticipantsResponse, type ChatProductId, type ChatReach, type ChatReachKind, type ChatReachParams, chatAuthTokenSchema, chatConfigSchema, chatOpenedViaSchema, chatParticipantSchema, chatParticipantsBodySchema, chatParticipantsResponseSchema, chatProductIdSchema, chatReachKindSchema, chatReachParamsSchema, chatReachSchema, DIRECT_CONTACT_STATUS_VALUES, type DirectContactStatus, directContactStatusSchema, MESSAGE_FROM_VALUES, type MessageFrom, type MessagingSettings, messageFromSchema, messagingSettingsSchema, type OpenChatBody, type OpenChatResponse, openChatBodySchema, openChatResponseSchema, } from './domains/chat/chat.js';
28
30
  export { type BanCommunityMemberBody, banCommunityMemberBodySchema, COMMUNITY_ANNOUNCE_INTERVAL_MS, COMMUNITY_MEMBER_STATUS_VALUES, COMMUNITY_PINS_MAX, COMMUNITY_ROLE_VALUES, COMMUNITY_STATUS_VALUES, COMMUNITY_SUGGESTION_DECISION_VALUES, COMMUNITY_SUGGESTION_STATUS_VALUES, COMMUNITY_SUGGESTIONS_OPEN_MAX, COMMUNITY_TOPICS_MAX, COMMUNITY_VISIBILITY_RANK, COMMUNITY_VISIBILITY_VALUES, type Community, type CommunityBan, type CommunityBanPage, type CommunityCard, type CommunityCardPage, type CommunityCardViewer, type CommunityChip, type CommunityCommentParams, type CommunityContentParams, type CommunityDiscoverQuery, type CommunityDiscoverQueryInput, type CommunityInvite, type CommunityInvites, type CommunityMember, type CommunityMemberPage, type CommunityMemberParams, type CommunityMemberStatus, type CommunityMembersQuery, type CommunityMembersQueryInput, type CommunityParams, type CommunityPendingInvite, type CommunityPendingInvitePage, type CommunityRequest, type CommunityRequestPage, type CommunityRole, type CommunityStatus, type CommunitySuggestion, type CommunitySuggestionDecision, type CommunitySuggestionPage, type CommunitySuggestionParams, type CommunitySuggestionStatus, type CommunitySuggestionsQuery, type CommunitySuggestionsQueryInput, type CommunityViewer, type CommunityVisibility, type CreateCommunityBody, type CreateCommunitySuggestionBody, communityBanPageSchema, communityBanSchema, communityCardPageSchema, communityCardSchema, communityCardViewerSchema, communityChangeExposes, communityChipSchema, communityCommentParamsSchema, communityContentParamsSchema, communityDiscoverQuerySchema, communityInviteSchema, communityInvitesSchema, communityMemberPageSchema, communityMemberParamsSchema, communityMemberSchema, communityMemberStatusSchema, communityMembersQuerySchema, communityParamsSchema, communityPendingInvitePageSchema, communityPendingInviteSchema, communityRequestPageSchema, communityRequestSchema, communityRoleSchema, communitySchema, communityStatusSchema, communitySuggestionDecisionSchema, communitySuggestionPageSchema, communitySuggestionParamsSchema, communitySuggestionSchema, communitySuggestionStatusSchema, communitySuggestionsQuerySchema, communityTypeChangeAllowed, communityViewerSchema, communityVisibilitySchema, createCommunityBodySchema, createCommunitySuggestionBodySchema, type DeclineCommunitySuggestionBody, declineCommunitySuggestionBodySchema, type InviteCommunityMemberBody, inviteCommunityMemberBodySchema, type PinCommunityContentBody, pinCommunityContentBodySchema, type SetCommunityIconBody, type SetCommunityMemberRoleBody, type SetCommunityStatusBody, type SetCommunityVisibilityBody, setCommunityIconBodySchema, setCommunityMemberRoleBodySchema, setCommunityStatusBodySchema, setCommunityVisibilityBodySchema, type UpdateCommunityBody, updateCommunityBodySchema, } from './domains/communities/communities.js';
@@ -36,7 +38,7 @@ export { AREA_TYPE_VALUES, type AreaList, type AreaOption, type AreaPage, type A
36
38
  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';
37
39
  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';
38
40
  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';
39
- 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';
41
+ export { AUTO_RENEWAL_RUNNING_VALUES, AUTO_RENEWAL_STATUS_VALUES, type AutoRenewal, type AutoRenewalStatus, addPlanPeriod, autoRenewalSchema, autoRenewalStatusSchema, 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';
40
42
  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';
41
43
  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';
42
44
  export { PUSH_DEVICE_LABEL_MAX, type PushPublicKey, type PushStatus, type PushSubscribeBody, type PushSubscriptionResult, pushPublicKeySchema, pushStatusSchema, pushSubscribeBodySchema, pushSubscriptionResultSchema, } from './domains/notifications/push.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,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,YAAY,EACZ,c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BAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;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"}
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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