founder-schema 0.31.0 → 0.33.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 (79) hide show
  1. package/dist/access/permissions.d.ts +21 -2
  2. package/dist/access/permissions.d.ts.map +1 -1
  3. package/dist/access/permissions.js +6 -0
  4. package/dist/access/permissions.js.map +1 -1
  5. package/dist/core/errors.d.ts +3 -1
  6. package/dist/core/errors.d.ts.map +1 -1
  7. package/dist/core/errors.js +6 -0
  8. package/dist/core/errors.js.map +1 -1
  9. package/dist/core/responses.d.ts +2 -0
  10. package/dist/core/responses.d.ts.map +1 -1
  11. package/dist/domains/audit/audit.d.ts +28 -0
  12. package/dist/domains/audit/audit.d.ts.map +1 -1
  13. package/dist/domains/billing/billing.d.ts +16 -0
  14. package/dist/domains/billing/billing.d.ts.map +1 -1
  15. package/dist/domains/billing/billing.js +14 -7
  16. package/dist/domains/billing/billing.js.map +1 -1
  17. package/dist/domains/blocks/blocks.d.ts +8 -0
  18. package/dist/domains/blocks/blocks.d.ts.map +1 -1
  19. package/dist/domains/chat/chat.d.ts +8 -0
  20. package/dist/domains/chat/chat.d.ts.map +1 -1
  21. package/dist/domains/communities/communities.d.ts +76 -0
  22. package/dist/domains/communities/communities.d.ts.map +1 -1
  23. package/dist/domains/contributions/contributions.d.ts +16 -0
  24. package/dist/domains/contributions/contributions.d.ts.map +1 -1
  25. package/dist/domains/discover/discover.d.ts +4 -0
  26. package/dist/domains/discover/discover.d.ts.map +1 -1
  27. package/dist/domains/feed/feed.d.ts +88 -0
  28. package/dist/domains/feed/feed.d.ts.map +1 -1
  29. package/dist/domains/feed/mentions.d.ts +4 -0
  30. package/dist/domains/feed/mentions.d.ts.map +1 -1
  31. package/dist/domains/follows/follows.d.ts +8 -0
  32. package/dist/domains/follows/follows.d.ts.map +1 -1
  33. package/dist/domains/follows/follows.js +7 -0
  34. package/dist/domains/follows/follows.js.map +1 -1
  35. package/dist/domains/insights/insights.d.ts +210 -0
  36. package/dist/domains/insights/insights.d.ts.map +1 -0
  37. package/dist/domains/insights/insights.js +154 -0
  38. package/dist/domains/insights/insights.js.map +1 -0
  39. package/dist/domains/members/members.d.ts +20 -0
  40. package/dist/domains/members/members.d.ts.map +1 -1
  41. package/dist/domains/membership/membership.d.ts +103 -1
  42. package/dist/domains/membership/membership.d.ts.map +1 -1
  43. package/dist/domains/membership/membership.js +67 -1
  44. package/dist/domains/membership/membership.js.map +1 -1
  45. package/dist/domains/moderation/moderation.d.ts +8 -0
  46. package/dist/domains/moderation/moderation.d.ts.map +1 -1
  47. package/dist/domains/notifications/notifications.d.ts +56 -3
  48. package/dist/domains/notifications/notifications.d.ts.map +1 -1
  49. package/dist/domains/notifications/notifications.js +40 -4
  50. package/dist/domains/notifications/notifications.js.map +1 -1
  51. package/dist/domains/people/person.d.ts +15 -0
  52. package/dist/domains/people/person.d.ts.map +1 -1
  53. package/dist/domains/people/person.js +23 -1
  54. package/dist/domains/people/person.js.map +1 -1
  55. package/dist/domains/products/product-comments.d.ts +8 -0
  56. package/dist/domains/products/product-comments.d.ts.map +1 -1
  57. package/dist/domains/products/product-featured.d.ts +266 -0
  58. package/dist/domains/products/product-featured.d.ts.map +1 -0
  59. package/dist/domains/products/product-featured.js +72 -0
  60. package/dist/domains/products/product-featured.js.map +1 -0
  61. package/dist/domains/products/products.d.ts +60 -0
  62. package/dist/domains/products/products.d.ts.map +1 -1
  63. package/dist/domains/products/products.js +6 -0
  64. package/dist/domains/products/products.js.map +1 -1
  65. package/dist/domains/profile/founder-profile.d.ts +8 -0
  66. package/dist/domains/profile/founder-profile.d.ts.map +1 -1
  67. package/dist/domains/profile/founder-profile.js +7 -1
  68. package/dist/domains/profile/founder-profile.js.map +1 -1
  69. package/dist/domains/reviews/reviews.d.ts +20 -0
  70. package/dist/domains/reviews/reviews.d.ts.map +1 -1
  71. package/dist/domains/support/support.d.ts +45 -5
  72. package/dist/domains/support/support.d.ts.map +1 -1
  73. package/dist/domains/team/team.d.ts +8 -0
  74. package/dist/domains/team/team.d.ts.map +1 -1
  75. package/dist/index.d.ts +5 -3
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.js +6 -3
  78. package/dist/index.js.map +1 -1
  79. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"person.js","sourceRoot":"","sources":["../../../src/domains/people/person.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEnF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,MAAM,EAAE,cAAc;IACtB,+EAA+E;IAC/E,QAAQ,EAAE,cAAc,CAAC,QAAQ,EAAE;IACnC,6DAA6D;IAC7D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,iCAAiC;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB;;;OAGG;IACH,SAAS,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;CACpB,CAAC,CAAC;AAGH,qFAAqF;AACrF,MAAM,UAAU,YAAY,CAAC,MAAc;IACzC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AACnG,CAAC;AAED,MAAM,aAAa,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAE3E;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,MAA8C;IACvE,IAAI,MAAM,CAAC,MAAM;QAAE,OAAO,EAAE,CAAC;IAC7B,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACrE,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAClC,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5C,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAClF,OAAO,GAAG,KAAK,GAAG,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;AACzC,CAAC","sourcesContent":["/**\n * A person, as every surface shows them (0.20.0)\n * ==============================================\n *\n * ONE shape for everyone another member or staff member sees: a post's author,\n * a commenter, a reviewer, a product's team, a community's members, a\n * notification's actor, the leaderboard, a chat participant, a staff list, a\n * support ticket, the audit log, a payer. Until 0.19.0 there were seven\n * variants: some carried no picture, some no handle (so no link to the member\n * page), and the id was `userId` here and `id` there.\n *\n * LIVE: joined at read time from the person's account (`users`), never frozen\n * onto someone else's row, so a new name or photo shows everywhere at once and\n * nothing personal is left in other people's rows after an account is deleted.\n * The audit log is the one exception: an entry is a record, and it keeps the\n * name the actor had when they acted (`auditActorSchema` says so).\n *\n * THE NAME (the user, 2026-10-22): `displayName` is the first name and the last\n * name joined, worked out by the server, never typed as a separate value.\n * `firstName` is there for a greeting (\"Hi Asha\") and two-letter initials.\n *\n * THE PICTURE: the member's uploaded photo at its small size, else their\n * sign-in provider's picture (unless they turned that off), else `null`. One\n * rule on the server; a client never chooses between pictures itself.\n *\n * `former`: the account was deleted. The server then sends no name, handle or\n * picture (`displayName` and `firstName` empty, `username` and `avatarUrl`\n * null) and the client words it (\"Former member\") and shows a neutral icon,\n * never a letter. A schema that makes a person `.nullable()` uses `null` for\n * NO PERSON AT ALL (the system did it); a deleted account is never `null`.\n *\n * @module domains/people/person\n */\n\nimport { z } from 'zod';\nimport { graphemesOf, objectIdSchema, usernameSchema } from '../../core/common.js';\n\nexport const personSchema = z.object({\n userId: objectIdSchema,\n /** Null for a former member, and for someone who never finished onboarding. */\n username: usernameSchema.nullable(),\n /** First and last name joined. Empty for a former member. */\n displayName: z.string(),\n /** Empty for a former member. */\n firstName: z.string(),\n /**\n * Server-set, from our upload path or the sign-in provider, never member-typed:\n * a plain URL check (see `founderProfileSchema.avatarUrl`).\n */\n avatarUrl: z.url().nullable(),\n former: z.boolean(),\n});\nexport type Person = z.infer<typeof personSchema>;\n\n/** The person a deleted account becomes on every surface: an id and nothing else. */\nexport function formerPerson(userId: string): Person {\n return { userId, username: null, displayName: '', firstName: '', avatarUrl: null, former: true };\n}\n\nconst firstGrapheme = (word: string): string => graphemesOf(word)[0] ?? '';\n\n/**\n * The letters an avatar falls back to (0.20.0): the first letter of the first\n * name and of the last word, upper-cased (\"Asha Rao Kulkarni\" is \"AK\"); one\n * letter for a one-word name; empty for a former member or a blank name, which\n * a client shows as a neutral icon instead. Whole letters only: an emoji or a\n * combined character is never split.\n */\nexport function initialsOf(person: Pick<Person, 'displayName' | 'former'>): string {\n if (person.former) return '';\n const words = person.displayName.trim().split(/\\s+/).filter(Boolean);\n if (words.length === 0) return '';\n const first = firstGrapheme(words[0] ?? '');\n const last = words.length > 1 ? firstGrapheme(words[words.length - 1] ?? '') : '';\n return `${first}${last}`.toUpperCase();\n}\n"]}
1
+ {"version":3,"file":"person.js","sourceRoot":"","sources":["../../../src/domains/people/person.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc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C,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACrE,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAClC,MAAM,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC5C,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAClF,OAAO,GAAG,KAAK,GAAG,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;AACzC,CAAC","sourcesContent":["/**\n * A person, as every surface shows them (0.20.0)\n * ==============================================\n *\n * ONE shape for everyone another member or staff member sees: a post's author,\n * a commenter, a reviewer, a product's team, a community's members, a\n * notification's actor, the leaderboard, a chat participant, a staff list, a\n * support ticket, the audit log, a payer. Until 0.19.0 there were seven\n * variants: some carried no picture, some no handle (so no link to the member\n * page), and the id was `userId` here and `id` there.\n *\n * LIVE: joined at read time from the person's account (`users`), never frozen\n * onto someone else's row, so a new name or photo shows everywhere at once and\n * nothing personal is left in other people's rows after an account is deleted.\n * The audit log is the one exception: an entry is a record, and it keeps the\n * name the actor had when they acted (`auditActorSchema` says so).\n *\n * THE NAME (the user, 2026-10-22): `displayName` is the first name and the last\n * name joined, worked out by the server, never typed as a separate value.\n * `firstName` is there for a greeting (\"Hi Asha\") and two-letter initials.\n *\n * THE PICTURE: the member's uploaded photo at its small size, else their\n * sign-in provider's picture (unless they turned that off), else `null`. One\n * rule on the server; a client never chooses between pictures itself.\n *\n * `former`: the account was deleted. The server then sends no name, handle or\n * picture (`displayName` and `firstName` empty, `username` and `avatarUrl`\n * null) and the client words it (\"Former member\") and shows a neutral icon,\n * never a letter. A schema that makes a person `.nullable()` uses `null` for\n * NO PERSON AT ALL (the system did it); a deleted account is never `null`.\n *\n * @module domains/people/person\n */\n\nimport { z } from 'zod';\nimport { graphemesOf, objectIdSchema, usernameSchema } from '../../core/common.js';\n\n/**\n * A plan badge's tier (0.32.0). Written here rather than imported from the\n * membership domain, which imports more than a person needs; a test pins the\n * two lists equal.\n */\nexport const PLAN_BADGE_VALUES = ['premium', 'business'] as const;\nexport const planBadgeSchema = z.enum(PLAN_BADGE_VALUES);\nexport type PlanBadge = z.infer<typeof planBadgeSchema>;\n\nexport const personSchema = z.object({\n userId: objectIdSchema,\n /** Null for a former member, and for someone who never finished onboarding. */\n username: usernameSchema.nullable(),\n /** First and last name joined. Empty for a former member. */\n displayName: z.string(),\n /** Empty for a former member. */\n firstName: z.string(),\n /**\n * Server-set, from our upload path or the sign-in provider, never member-typed:\n * a plain URL check (see `founderProfileSchema.avatarUrl`).\n */\n avatarUrl: z.url().nullable(),\n former: z.boolean(),\n /**\n * The plan they BOUGHT, shown as a badge (0.32.0): never the top plan every\n * member holds free while payments are off, never staff's access, and null\n * once it ends, when they turned the badge off, or for a former member.\n * Defaults to null when an older server leaves it out.\n */\n planBadge: planBadgeSchema.nullable().default(null),\n});\nexport type Person = z.infer<typeof personSchema>;\n\n/** The person a deleted account becomes on every surface: an id and nothing else. */\nexport function formerPerson(userId: string): Person {\n return {\n userId,\n username: null,\n displayName: '',\n firstName: '',\n avatarUrl: null,\n former: true,\n planBadge: null,\n };\n}\n\nconst firstGrapheme = (word: string): string => graphemesOf(word)[0] ?? '';\n\n/**\n * The letters an avatar falls back to (0.20.0): the first letter of the first\n * name and of the last word, upper-cased (\"Asha Rao Kulkarni\" is \"AK\"); one\n * letter for a one-word name; empty for a former member or a blank name, which\n * a client shows as a neutral icon instead. Whole letters only: an emoji or a\n * combined character is never split.\n */\nexport function initialsOf(person: Pick<Person, 'displayName' | 'former'>): string {\n if (person.former) return '';\n const words = person.displayName.trim().split(/\\s+/).filter(Boolean);\n if (words.length === 0) return '';\n const first = firstGrapheme(words[0] ?? '');\n const last = words.length > 1 ? firstGrapheme(words[words.length - 1] ?? '') : '';\n return `${first}${last}`.toUpperCase();\n}\n"]}
@@ -43,6 +43,10 @@ export declare const productCommentSchema: z.ZodObject<{
43
43
  firstName: z.ZodString;
44
44
  avatarUrl: z.ZodNullable<z.ZodURL>;
45
45
  former: z.ZodBoolean;
46
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
47
+ premium: "premium";
48
+ business: "business";
49
+ }>>>;
46
50
  headline: z.ZodOptional<z.ZodString>;
47
51
  }, z.core.$strip>;
48
52
  text: z.ZodString;
@@ -79,6 +83,10 @@ export declare const productCommentPageSchema: z.ZodObject<{
79
83
  firstName: z.ZodString;
80
84
  avatarUrl: z.ZodNullable<z.ZodURL>;
81
85
  former: z.ZodBoolean;
86
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
87
+ premium: "premium";
88
+ business: "business";
89
+ }>>>;
82
90
  headline: z.ZodOptional<z.ZodString>;
83
91
  }, z.core.$strip>;
84
92
  text: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"product-comments.d.ts","sourceRoot":"","sources":["../../../src/domains/products/product-comments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,uGAAuG;AACvG,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsB/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAwC,CAAC;AAC9E,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;iBAAsB,CAAC;AAC9D,MAAM,M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BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEnF,eAAO,MAAM,8BAA8B;;;iBAA0B,CAAC;AACtE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,oFAAoF;AACpF,eAAO,MAAM,8BAA8B;;iBAA0B,CAAC;AACtE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,4FAA4F;AAC5F,eAAO,MAAM,gCAAgC;;;;;;;iBAI3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,266 @@
1
+ /**
2
+ * Featured products (0.32.0, plans v1; founder-circle-backend
3
+ * docs/plans-v1-features.md, the user 2026-11-28)
4
+ * ======================================================
5
+ *
6
+ * GET /api/v1/discover/products/featured -> featuredProductsSchema (the "Featured" row)
7
+ * GET /api/v1/products/:productId/featured -> featureStateSchema (its managers)
8
+ * PUT /api/v1/products/:productId/featured -> featureStateSchema (feature it now)
9
+ * DELETE /api/v1/products/:productId/featured -> featureStateSchema (stop it now)
10
+ *
11
+ * WHO: the product's managers (`feature` on a Product, `{ managerIds: me }`),
12
+ * on the OWNER's plan (`planFeaturesSchema.featured`):
13
+ *
14
+ * monthly_run (Premium) one run of `runDays` days a calendar month, India
15
+ * time, on one product; it does not carry over
16
+ * always (Business) one product at a time, no end of its own; featuring
17
+ * another moves it
18
+ * none refused: `PLAN_REQUIRED` (a viewer: `MEMBERSHIP_REQUIRED`)
19
+ *
20
+ * A run ends at the earlier of its own end and the owner's plan end (with the
21
+ * renewal grace): when the plan ends, so does the feature, with no job. Only a
22
+ * live, visible product may be featured; pausing or hiding it ends the feature.
23
+ * Refusals that are not about the plan: `FEATURE_NOT_AVAILABLE` (the month's
24
+ * run is used, or the product is not live), with the reason in the message.
25
+ *
26
+ * SHOWN: Discover > Products' "Featured" row, at most `FEATURED_ROW_MAX`, in a
27
+ * daily rotation (a stable shuffle by the day), labelled "Featured" on every
28
+ * card. It never reorders the ordinary list.
29
+ *
30
+ * @module domains/products/product-featured
31
+ */
32
+ import { z } from 'zod';
33
+ /** The most products the "Featured" row shows at once. */
34
+ export declare const FEATURED_ROW_MAX = 10;
35
+ /** A product's feature, while it runs. */
36
+ export declare const productFeatureSchema: z.ZodObject<{
37
+ since: z.ZodISODateTime;
38
+ until: z.ZodISODateTime;
39
+ }, z.core.$strip>;
40
+ export type ProductFeature = z.infer<typeof productFeatureSchema>;
41
+ /** The product page's manage menu: what is running, and what the owner's plan allows. */
42
+ export declare const featureStateSchema: z.ZodObject<{
43
+ featured: z.ZodNullable<z.ZodObject<{
44
+ since: z.ZodISODateTime;
45
+ until: z.ZodISODateTime;
46
+ }, z.core.$strip>>;
47
+ allowance: z.ZodObject<{
48
+ kind: z.ZodEnum<{
49
+ none: "none";
50
+ monthly_run: "monthly_run";
51
+ always: "always";
52
+ }>;
53
+ runDays: z.ZodNumber;
54
+ usedThisMonth: z.ZodBoolean;
55
+ nextRunAt: z.ZodNullable<z.ZodISODateTime>;
56
+ otherFeaturedProductId: z.ZodNullable<z.ZodString>;
57
+ }, z.core.$strip>;
58
+ viewer: z.ZodObject<{
59
+ canFeature: z.ZodBoolean;
60
+ canStop: z.ZodBoolean;
61
+ }, z.core.$strip>;
62
+ }, z.core.$strip>;
63
+ export type FeatureState = z.infer<typeof featureStateSchema>;
64
+ /** The "Featured" row: product cards, each carrying `featured`. */
65
+ export declare const featuredProductsSchema: z.ZodObject<{
66
+ items: z.ZodArray<z.ZodObject<{
67
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
68
+ slug: z.ZodString;
69
+ name: z.ZodString;
70
+ tagline: z.ZodOptional<z.ZodString>;
71
+ logo: z.ZodOptional<z.ZodObject<{
72
+ id: z.ZodString;
73
+ url: z.ZodURL;
74
+ width: z.ZodNumber;
75
+ height: z.ZodNumber;
76
+ variants: z.ZodArray<z.ZodObject<{
77
+ width: z.ZodNumber;
78
+ height: z.ZodNumber;
79
+ url: z.ZodURL;
80
+ }, z.core.$strip>>;
81
+ placeholder: z.ZodOptional<z.ZodString>;
82
+ }, z.core.$strip>>;
83
+ cover: z.ZodOptional<z.ZodObject<{
84
+ id: z.ZodString;
85
+ url: z.ZodURL;
86
+ width: z.ZodNumber;
87
+ height: z.ZodNumber;
88
+ variants: z.ZodArray<z.ZodObject<{
89
+ width: z.ZodNumber;
90
+ height: z.ZodNumber;
91
+ url: z.ZodURL;
92
+ }, z.core.$strip>>;
93
+ placeholder: z.ZodOptional<z.ZodString>;
94
+ }, z.core.$strip>>;
95
+ description: z.ZodOptional<z.ZodString>;
96
+ topics: z.ZodOptional<z.ZodArray<z.ZodEnum<{
97
+ ai_ml: "ai_ml";
98
+ b2b_saas: "b2b_saas";
99
+ d2c: "d2c";
100
+ deeptech: "deeptech";
101
+ robotics: "robotics";
102
+ growth: "growth";
103
+ sales: "sales";
104
+ marketing: "marketing";
105
+ supply_chain: "supply_chain";
106
+ fundraising: "fundraising";
107
+ mentoring: "mentoring";
108
+ leadership: "leadership";
109
+ networking: "networking";
110
+ public_speaking: "public_speaking";
111
+ teaching: "teaching";
112
+ hiring_talent: "hiring_talent";
113
+ personal_branding: "personal_branding";
114
+ career_transition: "career_transition";
115
+ remote_work: "remote_work";
116
+ blockchain: "blockchain";
117
+ crypto_web3: "crypto_web3";
118
+ data_science: "data_science";
119
+ cybersecurity: "cybersecurity";
120
+ game_dev: "game_dev";
121
+ ux_design: "ux_design";
122
+ app_development: "app_development";
123
+ open_source: "open_source";
124
+ electronics: "electronics";
125
+ space_exploration: "space_exploration";
126
+ green_tech: "green_tech";
127
+ no_code: "no_code";
128
+ entrepreneurship: "entrepreneurship";
129
+ investing: "investing";
130
+ stock_trading: "stock_trading";
131
+ personal_finance: "personal_finance";
132
+ consulting: "consulting";
133
+ ecommerce: "ecommerce";
134
+ retail: "retail";
135
+ real_estate: "real_estate";
136
+ product_management: "product_management";
137
+ meditation: "meditation";
138
+ journaling: "journaling";
139
+ self_improvement: "self_improvement";
140
+ productivity: "productivity";
141
+ reading: "reading";
142
+ online_courses: "online_courses";
143
+ philosophy: "philosophy";
144
+ psychology: "psychology";
145
+ therapy: "therapy";
146
+ sleep_optimization: "sleep_optimization";
147
+ gym: "gym";
148
+ yoga: "yoga";
149
+ photography: "photography";
150
+ writing: "writing";
151
+ graphic_design: "graphic_design";
152
+ filmmaking: "filmmaking";
153
+ digital_art: "digital_art";
154
+ content_creation: "content_creation";
155
+ blogging: "blogging";
156
+ vlogging: "vlogging";
157
+ podcasts: "podcasts";
158
+ animation: "animation";
159
+ music_production: "music_production";
160
+ volunteering: "volunteering";
161
+ ngo_work: "ngo_work";
162
+ environmental: "environmental";
163
+ women_empowerment: "women_empowerment";
164
+ community_service: "community_service";
165
+ social_enterprise: "social_enterprise";
166
+ education_access: "education_access";
167
+ }>>>;
168
+ screenshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
169
+ id: z.ZodString;
170
+ url: z.ZodURL;
171
+ width: z.ZodNumber;
172
+ height: z.ZodNumber;
173
+ variants: z.ZodArray<z.ZodObject<{
174
+ width: z.ZodNumber;
175
+ height: z.ZodNumber;
176
+ url: z.ZodURL;
177
+ }, z.core.$strip>>;
178
+ placeholder: z.ZodOptional<z.ZodString>;
179
+ caption: z.ZodOptional<z.ZodString>;
180
+ }, z.core.$strip>>>;
181
+ links: z.ZodOptional<z.ZodObject<{
182
+ website: z.ZodOptional<z.ZodURL>;
183
+ appStore: z.ZodOptional<z.ZodURL>;
184
+ playStore: z.ZodOptional<z.ZodURL>;
185
+ github: z.ZodOptional<z.ZodURL>;
186
+ }, z.core.$strip>>;
187
+ videoUrl: z.ZodOptional<z.ZodURL>;
188
+ industry: z.ZodEnum<{
189
+ agritech: "agritech";
190
+ ai_ml: "ai_ml";
191
+ b2b_saas: "b2b_saas";
192
+ consumer: "consumer";
193
+ climate: "climate";
194
+ d2c: "d2c";
195
+ deeptech: "deeptech";
196
+ edtech: "edtech";
197
+ fintech: "fintech";
198
+ gaming: "gaming";
199
+ healthtech: "healthtech";
200
+ logistics: "logistics";
201
+ manufacturing: "manufacturing";
202
+ marketplace: "marketplace";
203
+ media: "media";
204
+ mobility: "mobility";
205
+ proptech: "proptech";
206
+ robotics: "robotics";
207
+ services: "services";
208
+ space: "space";
209
+ other: "other";
210
+ }>;
211
+ stage: z.ZodEnum<{
212
+ idea: "idea";
213
+ live: "live";
214
+ building: "building";
215
+ beta: "beta";
216
+ }>;
217
+ platforms: z.ZodArray<z.ZodEnum<{
218
+ api: "api";
219
+ other: "other";
220
+ web: "web";
221
+ ios: "ios";
222
+ android: "android";
223
+ desktop: "desktop";
224
+ browser_extension: "browser_extension";
225
+ hardware: "hardware";
226
+ }>>;
227
+ visibility: z.ZodEnum<{
228
+ unlisted: "unlisted";
229
+ listed: "listed";
230
+ }>;
231
+ status: z.ZodEnum<{
232
+ active: "active";
233
+ archived: "archived";
234
+ }>;
235
+ rating: z.ZodObject<{
236
+ count: z.ZodNumber;
237
+ average: z.ZodNullable<z.ZodNumber>;
238
+ }, z.core.$strip>;
239
+ upvoteCount: z.ZodNumber;
240
+ commentCount: z.ZodOptional<z.ZodNumber>;
241
+ featured: z.ZodDefault<z.ZodNullable<z.ZodObject<{
242
+ since: z.ZodISODateTime;
243
+ until: z.ZodISODateTime;
244
+ }, z.core.$strip>>>;
245
+ openAsks: z.ZodArray<z.ZodEnum<{
246
+ feedback: "feedback";
247
+ testers: "testers";
248
+ launch: "launch";
249
+ ideas: "ideas";
250
+ }>>;
251
+ hiddenByStaff: z.ZodOptional<z.ZodBoolean>;
252
+ paused: z.ZodOptional<z.ZodBoolean>;
253
+ viewer: z.ZodOptional<z.ZodObject<{
254
+ upvoted: z.ZodBoolean;
255
+ canUpvote: z.ZodBoolean;
256
+ role: z.ZodNullable<z.ZodEnum<{
257
+ team: "team";
258
+ owner: "owner";
259
+ cofounder: "cofounder";
260
+ }>>;
261
+ canRepresent: z.ZodOptional<z.ZodBoolean>;
262
+ }, z.core.$strip>>;
263
+ }, z.core.$strip>>;
264
+ }, z.core.$strip>;
265
+ export type FeaturedProducts = z.infer<typeof featuredProductsSchema>;
266
+ //# sourceMappingURL=product-featured.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-featured.d.ts","sourceRoot":"","sources":["../../../src/domains/products/product-featured.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,0DAA0D;AAC1D,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,0CAA0C;AAC1C,eAAO,MAAM,oBAAoB;;;iBAI/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,yFAAyF;AACzF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;iBAuB7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,mEAAmE;AACnE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Featured products (0.32.0, plans v1; founder-circle-backend
3
+ * docs/plans-v1-features.md, the user 2026-11-28)
4
+ * ======================================================
5
+ *
6
+ * GET /api/v1/discover/products/featured -> featuredProductsSchema (the "Featured" row)
7
+ * GET /api/v1/products/:productId/featured -> featureStateSchema (its managers)
8
+ * PUT /api/v1/products/:productId/featured -> featureStateSchema (feature it now)
9
+ * DELETE /api/v1/products/:productId/featured -> featureStateSchema (stop it now)
10
+ *
11
+ * WHO: the product's managers (`feature` on a Product, `{ managerIds: me }`),
12
+ * on the OWNER's plan (`planFeaturesSchema.featured`):
13
+ *
14
+ * monthly_run (Premium) one run of `runDays` days a calendar month, India
15
+ * time, on one product; it does not carry over
16
+ * always (Business) one product at a time, no end of its own; featuring
17
+ * another moves it
18
+ * none refused: `PLAN_REQUIRED` (a viewer: `MEMBERSHIP_REQUIRED`)
19
+ *
20
+ * A run ends at the earlier of its own end and the owner's plan end (with the
21
+ * renewal grace): when the plan ends, so does the feature, with no job. Only a
22
+ * live, visible product may be featured; pausing or hiding it ends the feature.
23
+ * Refusals that are not about the plan: `FEATURE_NOT_AVAILABLE` (the month's
24
+ * run is used, or the product is not live), with the reason in the message.
25
+ *
26
+ * SHOWN: Discover > Products' "Featured" row, at most `FEATURED_ROW_MAX`, in a
27
+ * daily rotation (a stable shuffle by the day), labelled "Featured" on every
28
+ * card. It never reorders the ordinary list.
29
+ *
30
+ * @module domains/products/product-featured
31
+ */
32
+ import { z } from 'zod';
33
+ import { featuredKindSchema } from '../membership/membership.js';
34
+ import { productCardSchema } from './products.js';
35
+ /** The most products the "Featured" row shows at once. */
36
+ export const FEATURED_ROW_MAX = 10;
37
+ /** A product's feature, while it runs. */
38
+ export const productFeatureSchema = z.object({
39
+ since: z.iso.datetime(),
40
+ /** When it ends: the run's end, or the owner's plan end, whichever comes first. */
41
+ until: z.iso.datetime(),
42
+ });
43
+ /** The product page's manage menu: what is running, and what the owner's plan allows. */
44
+ export const featureStateSchema = z.object({
45
+ featured: productFeatureSchema.nullable(),
46
+ allowance: z.object({
47
+ kind: featuredKindSchema,
48
+ /** For `monthly_run`: the run's length in days. */
49
+ runDays: z.number().int().nonnegative(),
50
+ /** For `monthly_run`: this calendar month's run is used (by this or another product). */
51
+ usedThisMonth: z.boolean(),
52
+ /** When the next month's run becomes available (India time), for `monthly_run`. */
53
+ nextRunAt: z.iso.datetime().nullable(),
54
+ /**
55
+ * Another of the owner's products featured now, if any (both kinds: one
56
+ * featured product per owner at any moment), so the screen can say "another
57
+ * of your products is featured until X".
58
+ */
59
+ otherFeaturedProductId: z.string().nullable(),
60
+ }),
61
+ viewer: z.object({
62
+ /** May feature it now (managers, on a plan that allows it, the run not used, the product live). */
63
+ canFeature: z.boolean(),
64
+ /** May stop it (managers, while it runs). */
65
+ canStop: z.boolean(),
66
+ }),
67
+ });
68
+ /** The "Featured" row: product cards, each carrying `featured`. */
69
+ export const featuredProductsSchema = z.object({
70
+ items: z.array(productCardSchema).max(FEATURED_ROW_MAX),
71
+ });
72
+ //# sourceMappingURL=product-featured.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-featured.js","sourceRoot":"","sources":["../../../src/domains/products/product-featured.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,0DAA0D;AAC1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAEnC,0CAA0C;AAC1C,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;IACvB,mFAAmF;IACnF,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;CACxB,CAAC,CAAC;AAGH,yFAAyF;AACzF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,QAAQ,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,kBAAkB;QACxB,mDAAmD;QACnD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACvC,yFAAyF;QACzF,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE;QAC1B,mFAAmF;QACnF,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtC;;;;WAIG;QACH,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9C,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,mGAAmG;QACnG,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;QACvB,6CAA6C;QAC7C,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;KACrB,CAAC;CACH,CAAC,CAAC;AAGH,mEAAmE;AACnE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,GAAG,CAAC,gBAAgB,CAAC;CACxD,CAAC,CAAC","sourcesContent":["/**\n * Featured products (0.32.0, plans v1; founder-circle-backend\n * docs/plans-v1-features.md, the user 2026-11-28)\n * ======================================================\n *\n * GET /api/v1/discover/products/featured -> featuredProductsSchema (the \"Featured\" row)\n * GET /api/v1/products/:productId/featured -> featureStateSchema (its managers)\n * PUT /api/v1/products/:productId/featured -> featureStateSchema (feature it now)\n * DELETE /api/v1/products/:productId/featured -> featureStateSchema (stop it now)\n *\n * WHO: the product's managers (`feature` on a Product, `{ managerIds: me }`),\n * on the OWNER's plan (`planFeaturesSchema.featured`):\n *\n * monthly_run (Premium) one run of `runDays` days a calendar month, India\n * time, on one product; it does not carry over\n * always (Business) one product at a time, no end of its own; featuring\n * another moves it\n * none refused: `PLAN_REQUIRED` (a viewer: `MEMBERSHIP_REQUIRED`)\n *\n * A run ends at the earlier of its own end and the owner's plan end (with the\n * renewal grace): when the plan ends, so does the feature, with no job. Only a\n * live, visible product may be featured; pausing or hiding it ends the feature.\n * Refusals that are not about the plan: `FEATURE_NOT_AVAILABLE` (the month's\n * run is used, or the product is not live), with the reason in the message.\n *\n * SHOWN: Discover > Products' \"Featured\" row, at most `FEATURED_ROW_MAX`, in a\n * daily rotation (a stable shuffle by the day), labelled \"Featured\" on every\n * card. It never reorders the ordinary list.\n *\n * @module domains/products/product-featured\n */\n\nimport { z } from 'zod';\nimport { featuredKindSchema } from '../membership/membership.js';\nimport { productCardSchema } from './products.js';\n\n/** The most products the \"Featured\" row shows at once. */\nexport const FEATURED_ROW_MAX = 10;\n\n/** A product's feature, while it runs. */\nexport const productFeatureSchema = z.object({\n since: z.iso.datetime(),\n /** When it ends: the run's end, or the owner's plan end, whichever comes first. */\n until: z.iso.datetime(),\n});\nexport type ProductFeature = z.infer<typeof productFeatureSchema>;\n\n/** The product page's manage menu: what is running, and what the owner's plan allows. */\nexport const featureStateSchema = z.object({\n featured: productFeatureSchema.nullable(),\n allowance: z.object({\n kind: featuredKindSchema,\n /** For `monthly_run`: the run's length in days. */\n runDays: z.number().int().nonnegative(),\n /** For `monthly_run`: this calendar month's run is used (by this or another product). */\n usedThisMonth: z.boolean(),\n /** When the next month's run becomes available (India time), for `monthly_run`. */\n nextRunAt: z.iso.datetime().nullable(),\n /**\n * Another of the owner's products featured now, if any (both kinds: one\n * featured product per owner at any moment), so the screen can say \"another\n * of your products is featured until X\".\n */\n otherFeaturedProductId: z.string().nullable(),\n }),\n viewer: z.object({\n /** May feature it now (managers, on a plan that allows it, the run not used, the product live). */\n canFeature: z.boolean(),\n /** May stop it (managers, while it runs). */\n canStop: z.boolean(),\n }),\n});\nexport type FeatureState = z.infer<typeof featureStateSchema>;\n\n/** The \"Featured\" row: product cards, each carrying `featured`. */\nexport const featuredProductsSchema = z.object({\n items: z.array(productCardSchema).max(FEATURED_ROW_MAX),\n});\nexport type FeaturedProducts = z.infer<typeof featuredProductsSchema>;\n"]}
@@ -456,6 +456,10 @@ export declare const productCardSchema: z.ZodObject<{
456
456
  }, z.core.$strip>;
457
457
  upvoteCount: z.ZodNumber;
458
458
  commentCount: z.ZodOptional<z.ZodNumber>;
459
+ featured: z.ZodDefault<z.ZodNullable<z.ZodObject<{
460
+ since: z.ZodISODateTime;
461
+ until: z.ZodISODateTime;
462
+ }, z.core.$strip>>>;
459
463
  openAsks: z.ZodArray<z.ZodEnum<{
460
464
  feedback: "feedback";
461
465
  testers: "testers";
@@ -504,6 +508,10 @@ export declare const productTeamMemberSchema: z.ZodObject<{
504
508
  firstName: z.ZodString;
505
509
  avatarUrl: z.ZodNullable<z.ZodURL>;
506
510
  former: z.ZodBoolean;
511
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
512
+ premium: "premium";
513
+ business: "business";
514
+ }>>>;
507
515
  headline: z.ZodOptional<z.ZodString>;
508
516
  role: z.ZodEnum<{
509
517
  team: "team";
@@ -625,6 +633,10 @@ export declare const productSchema: z.ZodObject<{
625
633
  }, z.core.$strip>;
626
634
  upvoteCount: z.ZodNumber;
627
635
  commentCount: z.ZodOptional<z.ZodNumber>;
636
+ featured: z.ZodDefault<z.ZodNullable<z.ZodObject<{
637
+ since: z.ZodISODateTime;
638
+ until: z.ZodISODateTime;
639
+ }, z.core.$strip>>>;
628
640
  openAsks: z.ZodArray<z.ZodEnum<{
629
641
  feedback: "feedback";
630
642
  testers: "testers";
@@ -736,6 +748,10 @@ export declare const productSchema: z.ZodObject<{
736
748
  firstName: z.ZodString;
737
749
  avatarUrl: z.ZodNullable<z.ZodURL>;
738
750
  former: z.ZodBoolean;
751
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
752
+ premium: "premium";
753
+ business: "business";
754
+ }>>>;
739
755
  headline: z.ZodOptional<z.ZodString>;
740
756
  role: z.ZodEnum<{
741
757
  team: "team";
@@ -793,6 +809,10 @@ export declare const productPendingInviteSchema: z.ZodObject<{
793
809
  firstName: z.ZodString;
794
810
  avatarUrl: z.ZodNullable<z.ZodURL>;
795
811
  former: z.ZodBoolean;
812
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
813
+ premium: "premium";
814
+ business: "business";
815
+ }>>>;
796
816
  headline: z.ZodOptional<z.ZodString>;
797
817
  }, z.core.$strip>;
798
818
  role: z.ZodEnum<{
@@ -806,6 +826,10 @@ export declare const productPendingInviteSchema: z.ZodObject<{
806
826
  firstName: z.ZodString;
807
827
  avatarUrl: z.ZodNullable<z.ZodURL>;
808
828
  former: z.ZodBoolean;
829
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
830
+ premium: "premium";
831
+ business: "business";
832
+ }>>>;
809
833
  headline: z.ZodOptional<z.ZodString>;
810
834
  }, z.core.$strip>>;
811
835
  invitedAt: z.ZodISODateTime;
@@ -831,6 +855,10 @@ export declare const productInviteSchema: z.ZodObject<{
831
855
  firstName: z.ZodString;
832
856
  avatarUrl: z.ZodNullable<z.ZodURL>;
833
857
  former: z.ZodBoolean;
858
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
859
+ premium: "premium";
860
+ business: "business";
861
+ }>>>;
834
862
  headline: z.ZodOptional<z.ZodString>;
835
863
  }, z.core.$strip>>;
836
864
  invitedAt: z.ZodISODateTime;
@@ -857,6 +885,10 @@ export declare const productInvitesSchema: z.ZodObject<{
857
885
  firstName: z.ZodString;
858
886
  avatarUrl: z.ZodNullable<z.ZodURL>;
859
887
  former: z.ZodBoolean;
888
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
889
+ premium: "premium";
890
+ business: "business";
891
+ }>>>;
860
892
  headline: z.ZodOptional<z.ZodString>;
861
893
  }, z.core.$strip>>;
862
894
  invitedAt: z.ZodISODateTime;
@@ -1045,6 +1077,10 @@ export declare const myProductsSchema: z.ZodObject<{
1045
1077
  }, z.core.$strip>;
1046
1078
  upvoteCount: z.ZodNumber;
1047
1079
  commentCount: z.ZodOptional<z.ZodNumber>;
1080
+ featured: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1081
+ since: z.ZodISODateTime;
1082
+ until: z.ZodISODateTime;
1083
+ }, z.core.$strip>>>;
1048
1084
  openAsks: z.ZodArray<z.ZodEnum<{
1049
1085
  feedback: "feedback";
1050
1086
  testers: "testers";
@@ -1075,6 +1111,10 @@ export declare const productTesterSchema: z.ZodObject<{
1075
1111
  firstName: z.ZodString;
1076
1112
  avatarUrl: z.ZodNullable<z.ZodURL>;
1077
1113
  former: z.ZodBoolean;
1114
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1115
+ premium: "premium";
1116
+ business: "business";
1117
+ }>>>;
1078
1118
  headline: z.ZodOptional<z.ZodString>;
1079
1119
  }, z.core.$strip>;
1080
1120
  confirmedAt: z.ZodISODateTime;
@@ -1256,6 +1296,10 @@ export declare const productCardPageSchema: z.ZodObject<{
1256
1296
  }, z.core.$strip>;
1257
1297
  upvoteCount: z.ZodNumber;
1258
1298
  commentCount: z.ZodOptional<z.ZodNumber>;
1299
+ featured: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1300
+ since: z.ZodISODateTime;
1301
+ until: z.ZodISODateTime;
1302
+ }, z.core.$strip>>>;
1259
1303
  openAsks: z.ZodArray<z.ZodEnum<{
1260
1304
  feedback: "feedback";
1261
1305
  testers: "testers";
@@ -1286,6 +1330,10 @@ export declare const productTeamPageSchema: z.ZodObject<{
1286
1330
  firstName: z.ZodString;
1287
1331
  avatarUrl: z.ZodNullable<z.ZodURL>;
1288
1332
  former: z.ZodBoolean;
1333
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1334
+ premium: "premium";
1335
+ business: "business";
1336
+ }>>>;
1289
1337
  headline: z.ZodOptional<z.ZodString>;
1290
1338
  role: z.ZodEnum<{
1291
1339
  team: "team";
@@ -1306,6 +1354,10 @@ export declare const productTesterPageSchema: z.ZodObject<{
1306
1354
  firstName: z.ZodString;
1307
1355
  avatarUrl: z.ZodNullable<z.ZodURL>;
1308
1356
  former: z.ZodBoolean;
1357
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1358
+ premium: "premium";
1359
+ business: "business";
1360
+ }>>>;
1309
1361
  headline: z.ZodOptional<z.ZodString>;
1310
1362
  }, z.core.$strip>;
1311
1363
  confirmedAt: z.ZodISODateTime;
@@ -1323,6 +1375,10 @@ export declare const productPendingInvitePageSchema: z.ZodObject<{
1323
1375
  firstName: z.ZodString;
1324
1376
  avatarUrl: z.ZodNullable<z.ZodURL>;
1325
1377
  former: z.ZodBoolean;
1378
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1379
+ premium: "premium";
1380
+ business: "business";
1381
+ }>>>;
1326
1382
  headline: z.ZodOptional<z.ZodString>;
1327
1383
  }, z.core.$strip>;
1328
1384
  role: z.ZodEnum<{
@@ -1336,6 +1392,10 @@ export declare const productPendingInvitePageSchema: z.ZodObject<{
1336
1392
  firstName: z.ZodString;
1337
1393
  avatarUrl: z.ZodNullable<z.ZodURL>;
1338
1394
  former: z.ZodBoolean;
1395
+ planBadge: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
1396
+ premium: "premium";
1397
+ business: "business";
1398
+ }>>>;
1339
1399
  headline: z.ZodOptional<z.ZodString>;
1340
1400
  }, z.core.$strip>>;
1341
1401
  invitedAt: z.ZodISODateTime;
@@ -1 +1 @@
1
- {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../../src/domains/products/products.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK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;;;;iBAGxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF;;;;GAIG;AACH,eAAO,MAAM,8BAA8B;;;;;iBAAiD,CAAC;AAC7F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;iBAAuC,CAAC;AAC9E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -279,6 +279,12 @@ export const productCardSchema = z.object({
279
279
  * Optional: a card from before reads as 0.
280
280
  */
281
281
  commentCount: z.number().int().nonnegative().optional(),
282
+ /**
283
+ * Featured in Discover's "Featured" row while this runs (0.32.0,
284
+ * `product-featured.ts`); null when it is not. A card says "Featured" only
285
+ * while it is set. Defaults to null when an older server leaves it out.
286
+ */
287
+ featured: z.object({ since: z.iso.datetime(), until: z.iso.datetime() }).nullable().default(null),
282
288
  openAsks: z.array(productAskSchema),
283
289
  /**
284
290
  * Staff hid it (0.7.0). Only ever on a card its team or staff can see (in