@tbox.cn/app-contracts-mall 0.14.0 → 0.17.1

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.
@@ -0,0 +1,98 @@
1
+ /**
2
+ * 活动玩法域卡片数据契约(task-02 服务端出卡)。
3
+ * 单一稳定 CardType `activity-play`,mode 区分列表/详情传输形态——视觉由前端渲染器
4
+ * 按 mode 组织,传输层不拆分多卡型(与 promotion 域 9 卡型形态区分)。
5
+ * 条目复用 activityPlayActivitySchema(含 B 端 enabled 剥离——卡data 不带配置字段)。
6
+ * 信封字段(卡片 ID/时间戳/历史标记/版本)由 SDK 生成,不在本契约。
7
+ */
8
+ import { z } from 'zod';
9
+ /** 卡片数据(工具出卡 / 前端渲染双层共用契约面) */
10
+ export declare const activityPlayCardDataSchema: z.ZodEffects<z.ZodObject<{
11
+ /** 商圈标识:来自当前执行上下文 scope,非模型输入或硬编码值 */
12
+ mallId: z.ZodString;
13
+ /** 传输形态:list(列表,可空,≤50 项)/ detail(详情,恰好 1 项,可携 disabled) */
14
+ mode: z.ZodEnum<["list", "detail"]>;
15
+ /** 活动条目(契约单源 ActivityPlayActivity;不带 enabled 配置字段)——list 可空 ≤50 项 */
16
+ items: z.ZodArray<z.ZodObject<{
17
+ activityRef: z.ZodString;
18
+ title: z.ZodString;
19
+ description: z.ZodOptional<z.ZodString>;
20
+ imageUrl: z.ZodOptional<z.ZodString>;
21
+ startsAt: z.ZodOptional<z.ZodString>;
22
+ endsAt: z.ZodOptional<z.ZodString>;
23
+ status: z.ZodEnum<["not_started", "active", "ended", "disabled"]>;
24
+ loginRequired: z.ZodBoolean;
25
+ }, "strict", z.ZodTypeAny, {
26
+ status: "not_started" | "active" | "ended" | "disabled";
27
+ activityRef: string;
28
+ title: string;
29
+ loginRequired: boolean;
30
+ description?: string | undefined;
31
+ imageUrl?: string | undefined;
32
+ startsAt?: string | undefined;
33
+ endsAt?: string | undefined;
34
+ }, {
35
+ status: "not_started" | "active" | "ended" | "disabled";
36
+ activityRef: string;
37
+ title: string;
38
+ loginRequired: boolean;
39
+ description?: string | undefined;
40
+ imageUrl?: string | undefined;
41
+ startsAt?: string | undefined;
42
+ endsAt?: string | undefined;
43
+ }>, "many">;
44
+ }, "strip", z.ZodTypeAny, {
45
+ mallId: string;
46
+ items: {
47
+ status: "not_started" | "active" | "ended" | "disabled";
48
+ activityRef: string;
49
+ title: string;
50
+ loginRequired: boolean;
51
+ description?: string | undefined;
52
+ imageUrl?: string | undefined;
53
+ startsAt?: string | undefined;
54
+ endsAt?: string | undefined;
55
+ }[];
56
+ mode: "detail" | "list";
57
+ }, {
58
+ mallId: string;
59
+ items: {
60
+ status: "not_started" | "active" | "ended" | "disabled";
61
+ activityRef: string;
62
+ title: string;
63
+ loginRequired: boolean;
64
+ description?: string | undefined;
65
+ imageUrl?: string | undefined;
66
+ startsAt?: string | undefined;
67
+ endsAt?: string | undefined;
68
+ }[];
69
+ mode: "detail" | "list";
70
+ }>, {
71
+ mallId: string;
72
+ items: {
73
+ status: "not_started" | "active" | "ended" | "disabled";
74
+ activityRef: string;
75
+ title: string;
76
+ loginRequired: boolean;
77
+ description?: string | undefined;
78
+ imageUrl?: string | undefined;
79
+ startsAt?: string | undefined;
80
+ endsAt?: string | undefined;
81
+ }[];
82
+ mode: "detail" | "list";
83
+ }, {
84
+ mallId: string;
85
+ items: {
86
+ status: "not_started" | "active" | "ended" | "disabled";
87
+ activityRef: string;
88
+ title: string;
89
+ loginRequired: boolean;
90
+ description?: string | undefined;
91
+ imageUrl?: string | undefined;
92
+ startsAt?: string | undefined;
93
+ endsAt?: string | undefined;
94
+ }[];
95
+ mode: "detail" | "list";
96
+ }>;
97
+ /** 卡片数据类型(zod 推断;客户端渲染器与工具出卡共用类型面) */
98
+ export type ActivityPlayCardData = z.infer<typeof activityPlayCardDataSchema>;
@@ -107,8 +107,8 @@ export declare const promotionBumpInActivityCardDataSchema: z.ZodObject<{
107
107
  description?: string | undefined;
108
108
  }>, "many">>;
109
109
  }, "strip", z.ZodTypeAny, {
110
- title: string;
111
110
  activityRef: string;
111
+ title: string;
112
112
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
113
113
  vouchers: {
114
114
  merchantName: string;
@@ -139,8 +139,8 @@ export declare const promotionBumpInActivityCardDataSchema: z.ZodObject<{
139
139
  description?: string | undefined;
140
140
  }[] | undefined;
141
141
  }, {
142
- title: string;
143
142
  activityRef: string;
143
+ title: string;
144
144
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
145
145
  vouchers: {
146
146
  merchantName: string;
@@ -236,8 +236,8 @@ export declare const alipayActivityCardDataSchemas: {
236
236
  description?: string | undefined;
237
237
  }>, "many">>;
238
238
  }, "strip", z.ZodTypeAny, {
239
- title: string;
240
239
  activityRef: string;
240
+ title: string;
241
241
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
242
242
  vouchers: {
243
243
  merchantName: string;
@@ -268,8 +268,8 @@ export declare const alipayActivityCardDataSchemas: {
268
268
  description?: string | undefined;
269
269
  }[] | undefined;
270
270
  }, {
271
- title: string;
272
271
  activityRef: string;
272
+ title: string;
273
273
  actStatus: "NOT_START" | "INIT" | "PROCESSING" | "FINISH" | "RECEIVED";
274
274
  vouchers: {
275
275
  merchantName: string;
@@ -0,0 +1,215 @@
1
+ /**
2
+ * 活动玩法域模型(TIER1):活动目录查询 DTO + 状态计算 + 字段级运行时校验单源。
3
+ * 与旧营销活动(promotion.domain)语义独立:activityRef 是本系统本商圈内的稳定引用,
4
+ * 不承诺远端活动 ID、报名名额、场次或深链。
5
+ *
6
+ * 字段校验单源(验收返修 2026-11-13):`activityPlayDirectoryEntrySchema`(供给方配置条目,
7
+ * enabled 缺省 true)与 `activityPlayActivitySchema`(HTTP 活动对象,status 服务端计算)共享
8
+ * 同一组字段 schema——provider 校验/HTTP 输出/表单引导三面不漂移(日期日历真值与
9
+ * HTTPS URL 有效性由 zod 内建校验承载,非正则形状检查)。
10
+ */
11
+ import { z } from 'zod';
12
+ /** 活动开放状态(服务端按本地时间与启用标记计算;不表示参与资格) */
13
+ export type ActivityPlayStatus = 'not_started' | 'active' | 'ended' | 'disabled';
14
+ /** 活动对象(列表/详情同形;status 由服务端计算) */
15
+ export interface ActivityPlayActivity {
16
+ /** 本系统本商圈内的稳定活动引用(商圈内唯一;不等同远端活动 ID) */
17
+ readonly activityRef: string;
18
+ readonly title: string;
19
+ /** 展示说明,按普通文本处理 */
20
+ readonly description?: string;
21
+ /** HTTPS 封面地址 */
22
+ readonly imageUrl?: string;
23
+ /** 含时区的 ISO 时间;缺省表示该方向没有本地时间限制 */
24
+ readonly startsAt?: string;
25
+ readonly endsAt?: string;
26
+ readonly status: ActivityPlayStatus;
27
+ /** 是否要求先取得本系统登录态(描述字段;判定归入口任务) */
28
+ readonly loginRequired: boolean;
29
+ }
30
+ /** 列表结果(本期为有限本地目录,无远端分页协议;列表被截断不等同没有更多活动) */
31
+ export interface ActivityPlayPage {
32
+ readonly items: readonly ActivityPlayActivity[];
33
+ }
34
+ /** 活动引用:非空、≤128、仅字母数字与 _ . : -(商圈内唯一性由目录侧判定) */
35
+ export declare const activityPlayRefSchema: z.ZodString;
36
+ /** 活动名称:非空、≤64 */
37
+ export declare const activityPlayTitleSchema: z.ZodString;
38
+ /** 说明:普通文本,≤500 */
39
+ export declare const activityPlayDescriptionSchema: z.ZodString;
40
+ /** 时间:含时区偏移的 ISO 形态,且为真实日历时刻(拒 2027-02-30 类滚日值——zod 校验真实日历时刻) */
41
+ export declare const activityPlayTimeSchema: z.ZodString;
42
+ /** 封面图:有效 URL 且恒 HTTPS(拒 https://? 等残缺形态) */
43
+ export declare const activityPlayImageUrlSchema: z.ZodString;
44
+ /** 目录登记条目(供给方配置条目真源:enabled 为 B 端字段缺省 true;status 不在此层) */
45
+ export declare const activityPlayDirectoryEntrySchema: z.ZodObject<{
46
+ activityRef: z.ZodString;
47
+ title: z.ZodString;
48
+ description: z.ZodOptional<z.ZodString>;
49
+ imageUrl: z.ZodOptional<z.ZodString>;
50
+ startsAt: z.ZodOptional<z.ZodString>;
51
+ endsAt: z.ZodOptional<z.ZodString>;
52
+ enabled: z.ZodDefault<z.ZodBoolean>;
53
+ loginRequired: z.ZodDefault<z.ZodBoolean>;
54
+ }, "strict", z.ZodTypeAny, {
55
+ enabled: boolean;
56
+ activityRef: string;
57
+ title: string;
58
+ loginRequired: boolean;
59
+ description?: string | undefined;
60
+ imageUrl?: string | undefined;
61
+ startsAt?: string | undefined;
62
+ endsAt?: string | undefined;
63
+ }, {
64
+ activityRef: string;
65
+ title: string;
66
+ description?: string | undefined;
67
+ enabled?: boolean | undefined;
68
+ imageUrl?: string | undefined;
69
+ startsAt?: string | undefined;
70
+ endsAt?: string | undefined;
71
+ loginRequired?: boolean | undefined;
72
+ }>;
73
+ /** 目录登记条目类型(zod 推断——enabled/loginRequired 经 default 落定后恒在场) */
74
+ export type ActivityPlayDirectoryEntry = z.infer<typeof activityPlayDirectoryEntrySchema>;
75
+ /** HTTP 活动对象 schema(= 目录条目换装 status;strict 拒未知键) */
76
+ export declare const activityPlayActivitySchema: z.ZodObject<{
77
+ activityRef: z.ZodString;
78
+ title: z.ZodString;
79
+ description: z.ZodOptional<z.ZodString>;
80
+ imageUrl: z.ZodOptional<z.ZodString>;
81
+ startsAt: z.ZodOptional<z.ZodString>;
82
+ endsAt: z.ZodOptional<z.ZodString>;
83
+ status: z.ZodEnum<["not_started", "active", "ended", "disabled"]>;
84
+ loginRequired: z.ZodBoolean;
85
+ }, "strict", z.ZodTypeAny, {
86
+ status: "not_started" | "active" | "ended" | "disabled";
87
+ activityRef: string;
88
+ title: string;
89
+ loginRequired: boolean;
90
+ description?: string | undefined;
91
+ imageUrl?: string | undefined;
92
+ startsAt?: string | undefined;
93
+ endsAt?: string | undefined;
94
+ }, {
95
+ status: "not_started" | "active" | "ended" | "disabled";
96
+ activityRef: string;
97
+ title: string;
98
+ loginRequired: boolean;
99
+ description?: string | undefined;
100
+ imageUrl?: string | undefined;
101
+ startsAt?: string | undefined;
102
+ endsAt?: string | undefined;
103
+ }>;
104
+ /**
105
+ * 状态计算单源(列表/详情/后续入口统一复用):
106
+ * - enabled 非真 → disabled(优先于时间);
107
+ * - 时间语义(服务端绝对时间判定):startsAt ≤ now < endsAt 为 active;
108
+ * now < startsAt 为 not_started;now ≥ endsAt 为 ended(开始包含、结束不包含);
109
+ * - 单侧缺省 = 该方向无本地时间限制(缺 startsAt 恒不落 not_started;缺 endsAt 恒不落 ended);
110
+ * - 时间串不可解析 → 抛错(config/供给校验前置拦截;此处 fail-visible 不静默降级)。
111
+ */
112
+ export declare function activityPlayStatusOf(input: {
113
+ enabled: boolean;
114
+ startsAt?: string;
115
+ endsAt?: string;
116
+ /** 服务端时间(缺省取当前);测试注入固定时刻 */
117
+ now?: Date;
118
+ }): ActivityPlayStatus;
119
+ /** 插件目标形态:一期唯一 kind——宿主 app.json 声明的别名 + 插件公开页面(不提前建通用导航框架) */
120
+ export declare const ACTIVITY_PLAY_TARGET_KIND: "miniapp-plugin";
121
+ /**
122
+ * 单段别名约束(pluginAlias/page 共用)——本项目工程约束(非支付宝平台限额):
123
+ * 非空、≤64、首字符字母数字、仅 A-Za-z0-9 . _ -;拒整条 URL、协议头(://)、路径分隔符、
124
+ * 路径穿越(.. 需被字符集排除)与控制字符。
125
+ */
126
+ export declare const ACTIVITY_PLAY_ALIAS_MAX = 64;
127
+ export declare const ACTIVITY_PLAY_SEGMENT_RE: RegExp;
128
+ /** params 容量约束(本项目工程上限): ≤32 项、键 ≤64、单值 ≤256、序列化总长 ≤4096 */
129
+ export declare const ACTIVITY_PLAY_PARAMS_MAX_ENTRIES = 32;
130
+ export declare const ACTIVITY_PLAY_PARAMS_KEY_MAX = 64;
131
+ export declare const ACTIVITY_PLAY_PARAMS_VALUE_MAX = 256;
132
+ export declare const ACTIVITY_PLAY_PARAMS_SERIALIZE_MAX = 4096;
133
+ /**
134
+ * 身份/凭证保留键(大小写与 -/_ 分隔归一后比对——配置侧登记即拒;本限制是对
135
+ * 「显式键名」的黑名单,不构成对任意字符串值的自动保密识别;只应登记静态公开路由参数)。
136
+ */
137
+ export declare const ACTIVITY_PLAY_PARAMS_RESERVED_KEYS: readonly ["userid", "openid", "memberid", "token", "authcode", "accesstoken", "refreshtoken", "jwt", "ticket", "sessionid"];
138
+ /** pluginAlias:宿主 app.json 引用别名(单段,非 URL/路径) */
139
+ export declare const activityPlayPluginAliasSchema: z.ZodString;
140
+ /** page:插件导出的公开页面别名(单段,同上则) */
141
+ export declare const activityPlayTargetPageSchema: z.ZodString;
142
+ /** 结构化插件目标(params 缺席归一为空对象;显式 null 拒绝) */
143
+ export declare const activityPlayTargetSchema: z.ZodObject<{
144
+ kind: z.ZodLiteral<"miniapp-plugin">;
145
+ pluginAlias: z.ZodString;
146
+ page: z.ZodString;
147
+ params: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, Record<string, string>, Record<string, string> | undefined>, Record<string, string>, Record<string, string> | undefined>, Record<string, string>, Record<string, string> | undefined>;
148
+ }, "strict", z.ZodTypeAny, {
149
+ params: Record<string, string>;
150
+ kind: "miniapp-plugin";
151
+ pluginAlias: string;
152
+ page: string;
153
+ }, {
154
+ kind: "miniapp-plugin";
155
+ pluginAlias: string;
156
+ page: string;
157
+ params?: Record<string, string> | undefined;
158
+ }>;
159
+ /** 结构化插件目标类型(前端消费面;URL 由前端/宿主按桥接交接构造,后端不生成跳转 URL) */
160
+ export type ActivityPlayTarget = z.infer<typeof activityPlayTargetSchema>;
161
+ /** 入口协议版本(一期 '1'——协议演进靠冻结+迁移,不做数值升级) */
162
+ export declare const ACTIVITY_PLAY_ENTRY_PROTOCOL_VERSION: "1";
163
+ /** 入口准备结果(HTTP data 面:协议版本 + 活动引用 + 结构化目标——零身份/凭据字段) */
164
+ export declare const activityPlayEntrySchema: z.ZodObject<{
165
+ protocolVersion: z.ZodLiteral<"1">;
166
+ activityRef: z.ZodString;
167
+ target: z.ZodObject<{
168
+ kind: z.ZodLiteral<"miniapp-plugin">;
169
+ pluginAlias: z.ZodString;
170
+ page: z.ZodString;
171
+ params: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, Record<string, string>, Record<string, string> | undefined>, Record<string, string>, Record<string, string> | undefined>, Record<string, string>, Record<string, string> | undefined>;
172
+ }, "strict", z.ZodTypeAny, {
173
+ params: Record<string, string>;
174
+ kind: "miniapp-plugin";
175
+ pluginAlias: string;
176
+ page: string;
177
+ }, {
178
+ kind: "miniapp-plugin";
179
+ pluginAlias: string;
180
+ page: string;
181
+ params?: Record<string, string> | undefined;
182
+ }>;
183
+ }, "strict", z.ZodTypeAny, {
184
+ activityRef: string;
185
+ protocolVersion: "1";
186
+ target: {
187
+ params: Record<string, string>;
188
+ kind: "miniapp-plugin";
189
+ pluginAlias: string;
190
+ page: string;
191
+ };
192
+ }, {
193
+ activityRef: string;
194
+ protocolVersion: "1";
195
+ target: {
196
+ kind: "miniapp-plugin";
197
+ pluginAlias: string;
198
+ page: string;
199
+ params?: Record<string, string> | undefined;
200
+ };
201
+ }>;
202
+ /** 入口准备结果类型 */
203
+ export type ActivityPlayEntry = z.infer<typeof activityPlayEntrySchema>;
204
+ /**
205
+ * 入口侧目录条目视图(两槽一致性对照锚):同一供给下,入口条目随附该供给目录中
206
+ * 同引用的活动登记属性——消费方(module-activity-play)用它经查询槽读出的活动对象
207
+ * 做内容级一致性比对,比对失败即 ENTRY_UNAVAILABLE(不能用 A 目录的检查放行 B 目录
208
+ * 的入口)。比对包含 status(瞬态临界下最多误拒一次,重试即恢复——fail-closed 取向)。
209
+ */
210
+ export interface ActivityPlayEntryRecord {
211
+ /** 供给侧同 ref 条目的活动属性(含 status——与查询侧输出的字段集完全同构) */
212
+ readonly activity: ActivityPlayActivity;
213
+ /** 结构化插件目标 */
214
+ readonly target: ActivityPlayTarget;
215
+ }
package/dist/index.d.ts CHANGED
@@ -12,10 +12,12 @@ export * from './domain/offer';
12
12
  export * from './domain/entitlement';
13
13
  export * from './domain/activity';
14
14
  export * from './domain/operation';
15
+ export * from './domain/activity-play';
15
16
  export * from './services/member';
16
17
  export * from './services/parking';
17
18
  export * from './services/promotion';
18
19
  export * from './services/mall-info';
20
+ export * from './services/activity-play';
19
21
  export * from './events';
20
22
  export * from './scope';
21
23
  export * from './query-context';
@@ -31,4 +33,5 @@ export * from './services/customer-service';
31
33
  export * from './member/cards';
32
34
  export * from './promotion/cards';
33
35
  export * from './parking/cards';
36
+ export * from './activity-play/cards';
34
37
  export * from './alipay-activity/cards';
@@ -113,13 +113,13 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
113
113
  }, "strip", z.ZodTypeAny, {
114
114
  kind: "toast" | "miniapp" | "dialog";
115
115
  url?: string | undefined;
116
- text?: string | undefined;
117
116
  title?: string | undefined;
117
+ text?: string | undefined;
118
118
  }, {
119
119
  kind: "toast" | "miniapp" | "dialog";
120
120
  url?: string | undefined;
121
- text?: string | undefined;
122
121
  title?: string | undefined;
122
+ text?: string | undefined;
123
123
  }>>;
124
124
  }, "strip", z.ZodTypeAny, {
125
125
  name: string;
@@ -129,8 +129,8 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
129
129
  action?: {
130
130
  kind: "toast" | "miniapp" | "dialog";
131
131
  url?: string | undefined;
132
- text?: string | undefined;
133
132
  title?: string | undefined;
133
+ text?: string | undefined;
134
134
  } | undefined;
135
135
  }, {
136
136
  name: string;
@@ -140,8 +140,8 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
140
140
  action?: {
141
141
  kind: "toast" | "miniapp" | "dialog";
142
142
  url?: string | undefined;
143
- text?: string | undefined;
144
143
  title?: string | undefined;
144
+ text?: string | undefined;
145
145
  } | undefined;
146
146
  }>, "many">>;
147
147
  /** 入会后偏好引导;首批固定三项,保留数组形态便于后续扩展。 */
@@ -184,8 +184,8 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
184
184
  action?: {
185
185
  kind: "toast" | "miniapp" | "dialog";
186
186
  url?: string | undefined;
187
- text?: string | undefined;
188
187
  title?: string | undefined;
188
+ text?: string | undefined;
189
189
  } | undefined;
190
190
  }[] | undefined;
191
191
  preferencePrompts?: {
@@ -221,8 +221,8 @@ export declare const memberCardSummaryCardDataSchema: z.ZodObject<{
221
221
  action?: {
222
222
  kind: "toast" | "miniapp" | "dialog";
223
223
  url?: string | undefined;
224
- text?: string | undefined;
225
224
  title?: string | undefined;
225
+ text?: string | undefined;
226
226
  } | undefined;
227
227
  }[] | undefined;
228
228
  preferencePrompts?: {
@@ -327,14 +327,14 @@ export declare const memberEnrollmentFormCardDataSchema: z.ZodObject<{
327
327
  required: z.ZodBoolean;
328
328
  url: z.ZodOptional<z.ZodString>;
329
329
  }, "strip", z.ZodTypeAny, {
330
- required: boolean;
331
330
  title: string;
331
+ required: boolean;
332
332
  consentId: string;
333
333
  version: string;
334
334
  url?: string | undefined;
335
335
  }, {
336
- required: boolean;
337
336
  title: string;
337
+ required: boolean;
338
338
  consentId: string;
339
339
  version: string;
340
340
  url?: string | undefined;
@@ -367,8 +367,8 @@ export declare const memberEnrollmentFormCardDataSchema: z.ZodObject<{
367
367
  placeholder?: string | undefined;
368
368
  }[];
369
369
  consents: {
370
- required: boolean;
371
370
  title: string;
371
+ required: boolean;
372
372
  consentId: string;
373
373
  version: string;
374
374
  url?: string | undefined;
@@ -393,8 +393,8 @@ export declare const memberEnrollmentFormCardDataSchema: z.ZodObject<{
393
393
  placeholder?: string | undefined;
394
394
  }[];
395
395
  consents: {
396
- required: boolean;
397
396
  title: string;
397
+ required: boolean;
398
398
  consentId: string;
399
399
  version: string;
400
400
  url?: string | undefined;
@@ -448,16 +448,16 @@ export declare const memberEnrollmentCtaCardDataSchema: z.ZodObject<{
448
448
  userId: string;
449
449
  authState: "authenticated";
450
450
  state: "not_enrolled" | "closed";
451
- enrollUrl?: string | undefined;
452
451
  title?: string | undefined;
452
+ enrollUrl?: string | undefined;
453
453
  subtitle?: string | undefined;
454
454
  perks?: string[] | undefined;
455
455
  }, {
456
456
  userId: string;
457
457
  authState: "authenticated";
458
458
  state: "not_enrolled" | "closed";
459
- enrollUrl?: string | undefined;
460
459
  title?: string | undefined;
460
+ enrollUrl?: string | undefined;
461
461
  subtitle?: string | undefined;
462
462
  perks?: string[] | undefined;
463
463
  }>;
@@ -479,11 +479,11 @@ export declare const memberLoginCtaCardDataSchema: z.ZodObject<{
479
479
  loginUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
480
480
  title: z.ZodOptional<z.ZodString>;
481
481
  }, "strip", z.ZodTypeAny, {
482
- loginUrl?: string | undefined;
483
482
  title?: string | undefined;
484
- }, {
485
483
  loginUrl?: string | undefined;
484
+ }, {
486
485
  title?: string | undefined;
486
+ loginUrl?: string | undefined;
487
487
  }>;
488
488
  export type MemberLoginCtaCardData = z.infer<typeof memberLoginCtaCardDataSchema>;
489
489
  /** 7 卡 schema map(cardType → dataSchema;券面 0.4.0 净删——promotion 承接) */
@@ -584,13 +584,13 @@ export declare const memberCardDataSchemas: {
584
584
  }, "strip", z.ZodTypeAny, {
585
585
  kind: "toast" | "miniapp" | "dialog";
586
586
  url?: string | undefined;
587
- text?: string | undefined;
588
587
  title?: string | undefined;
588
+ text?: string | undefined;
589
589
  }, {
590
590
  kind: "toast" | "miniapp" | "dialog";
591
591
  url?: string | undefined;
592
- text?: string | undefined;
593
592
  title?: string | undefined;
593
+ text?: string | undefined;
594
594
  }>>;
595
595
  }, "strip", z.ZodTypeAny, {
596
596
  name: string;
@@ -600,8 +600,8 @@ export declare const memberCardDataSchemas: {
600
600
  action?: {
601
601
  kind: "toast" | "miniapp" | "dialog";
602
602
  url?: string | undefined;
603
- text?: string | undefined;
604
603
  title?: string | undefined;
604
+ text?: string | undefined;
605
605
  } | undefined;
606
606
  }, {
607
607
  name: string;
@@ -611,8 +611,8 @@ export declare const memberCardDataSchemas: {
611
611
  action?: {
612
612
  kind: "toast" | "miniapp" | "dialog";
613
613
  url?: string | undefined;
614
- text?: string | undefined;
615
614
  title?: string | undefined;
615
+ text?: string | undefined;
616
616
  } | undefined;
617
617
  }>, "many">>;
618
618
  /** 入会后偏好引导;首批固定三项,保留数组形态便于后续扩展。 */
@@ -655,8 +655,8 @@ export declare const memberCardDataSchemas: {
655
655
  action?: {
656
656
  kind: "toast" | "miniapp" | "dialog";
657
657
  url?: string | undefined;
658
- text?: string | undefined;
659
658
  title?: string | undefined;
659
+ text?: string | undefined;
660
660
  } | undefined;
661
661
  }[] | undefined;
662
662
  preferencePrompts?: {
@@ -692,8 +692,8 @@ export declare const memberCardDataSchemas: {
692
692
  action?: {
693
693
  kind: "toast" | "miniapp" | "dialog";
694
694
  url?: string | undefined;
695
- text?: string | undefined;
696
695
  title?: string | undefined;
696
+ text?: string | undefined;
697
697
  } | undefined;
698
698
  }[] | undefined;
699
699
  preferencePrompts?: {
@@ -792,14 +792,14 @@ export declare const memberCardDataSchemas: {
792
792
  required: z.ZodBoolean;
793
793
  url: z.ZodOptional<z.ZodString>;
794
794
  }, "strip", z.ZodTypeAny, {
795
- required: boolean;
796
795
  title: string;
796
+ required: boolean;
797
797
  consentId: string;
798
798
  version: string;
799
799
  url?: string | undefined;
800
800
  }, {
801
- required: boolean;
802
801
  title: string;
802
+ required: boolean;
803
803
  consentId: string;
804
804
  version: string;
805
805
  url?: string | undefined;
@@ -832,8 +832,8 @@ export declare const memberCardDataSchemas: {
832
832
  placeholder?: string | undefined;
833
833
  }[];
834
834
  consents: {
835
- required: boolean;
836
835
  title: string;
836
+ required: boolean;
837
837
  consentId: string;
838
838
  version: string;
839
839
  url?: string | undefined;
@@ -858,8 +858,8 @@ export declare const memberCardDataSchemas: {
858
858
  placeholder?: string | undefined;
859
859
  }[];
860
860
  consents: {
861
- required: boolean;
862
861
  title: string;
862
+ required: boolean;
863
863
  consentId: string;
864
864
  version: string;
865
865
  url?: string | undefined;
@@ -909,16 +909,16 @@ export declare const memberCardDataSchemas: {
909
909
  userId: string;
910
910
  authState: "authenticated";
911
911
  state: "not_enrolled" | "closed";
912
- enrollUrl?: string | undefined;
913
912
  title?: string | undefined;
913
+ enrollUrl?: string | undefined;
914
914
  subtitle?: string | undefined;
915
915
  perks?: string[] | undefined;
916
916
  }, {
917
917
  userId: string;
918
918
  authState: "authenticated";
919
919
  state: "not_enrolled" | "closed";
920
- enrollUrl?: string | undefined;
921
920
  title?: string | undefined;
921
+ enrollUrl?: string | undefined;
922
922
  subtitle?: string | undefined;
923
923
  perks?: string[] | undefined;
924
924
  }>;
@@ -930,11 +930,11 @@ export declare const memberCardDataSchemas: {
930
930
  loginUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
931
931
  title: z.ZodOptional<z.ZodString>;
932
932
  }, "strip", z.ZodTypeAny, {
933
- loginUrl?: string | undefined;
934
933
  title?: string | undefined;
935
- }, {
936
934
  loginUrl?: string | undefined;
935
+ }, {
937
936
  title?: string | undefined;
937
+ loginUrl?: string | undefined;
938
938
  }>;
939
939
  };
940
940
  export type MemberCardType = keyof typeof memberCardDataSchemas;