@tbox.cn/app-module-shopping-guide 0.2.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.
Files changed (47) hide show
  1. package/LICENSE +21 -0
  2. package/dist/chunk-AGBLC6XI.js +1294 -0
  3. package/dist/chunk-U4WDS5PQ.js +173 -0
  4. package/dist/client/index.d.ts +25 -0
  5. package/dist/client/index.js +6 -0
  6. package/dist/index.d.ts +8 -0
  7. package/dist/index.js +22 -0
  8. package/dist/server/index.d.ts +4098 -0
  9. package/dist/server/index.js +18 -0
  10. package/package.json +62 -0
  11. package/skills/shopping-guide/SKILL.md +36 -0
  12. package/skills/shopping-guide/references/comparison-format.md +5 -0
  13. package/skills/shopping-guide/references/faq-answers.md +5 -0
  14. package/skills/shopping-guide/references/floor-directory.md +4 -0
  15. package/skills/shopping-guide/references/intent-patterns.md +5 -0
  16. package/skills/shopping-guide/references/location-format.md +5 -0
  17. package/skills/shopping-guide/references/policy-lookup.md +5 -0
  18. package/skills/shopping-guide/references/product-search-tips.md +6 -0
  19. package/skills/shopping-guide/references/recommendation-style.md +5 -0
  20. package/src/client/cards/index.tsx +267 -0
  21. package/src/client/index.ts +39 -0
  22. package/src/index.ts +6 -0
  23. package/src/server/cards/category-list/meta.ts +19 -0
  24. package/src/server/cards/customer-service-faq/meta.ts +18 -0
  25. package/src/server/cards/human-guide-list/meta.ts +19 -0
  26. package/src/server/cards/index.ts +43 -0
  27. package/src/server/cards/location-handoff/meta.ts +20 -0
  28. package/src/server/cards/mall-directory/meta.ts +27 -0
  29. package/src/server/cards/merchant-detail/meta.ts +27 -0
  30. package/src/server/cards/merchant-list/meta.ts +31 -0
  31. package/src/server/cards/nearby-mall-list/meta.ts +17 -0
  32. package/src/server/cards/product-comparison/meta.ts +29 -0
  33. package/src/server/cards/product-detail/meta.ts +29 -0
  34. package/src/server/cards/product-list/meta.ts +32 -0
  35. package/src/server/domain/value-objects.ts +49 -0
  36. package/src/server/index.ts +180 -0
  37. package/src/server/integrations/joycity/adapter.ts +226 -0
  38. package/src/server/integrations/joycity/auth-strategy.ts +38 -0
  39. package/src/server/integrations/joycity/gateway.ts +128 -0
  40. package/src/server/ports/index.ts +151 -0
  41. package/src/server/ports/local-adapters.ts +90 -0
  42. package/src/server/projections/index.ts +253 -0
  43. package/src/server/tools/index.ts +407 -0
  44. package/tbox.component.json +48 -0
  45. package/tests/shopping-guide.test.ts +290 -0
  46. package/tsconfig.json +8 -0
  47. package/tsup.config.ts +29 -0
@@ -0,0 +1,4098 @@
1
+ import * as _mastra_core_tools from '@mastra/core/tools';
2
+ import * as _tbox_cn_app_sdk_server from '@tbox.cn/app-sdk/server';
3
+ import { ServerContext, ProviderAuthStrategy, PreToolDef } from '@tbox.cn/app-sdk/server';
4
+ import * as _tbox_cn_app_contracts from '@tbox.cn/app-contracts';
5
+ import * as zod from 'zod';
6
+ import { CatalogQueryPort, MerchantDirectoryQueryPort, CommercialCategoryQueryPort, MallDirectoryQueryPort, AssistanceQueryPort, NavigationPort } from '@tbox.cn/app-contracts-mall';
7
+
8
+ /** 11 卡 meta map(key 约定 = cardType) */
9
+ declare const shoppingGuideCards: {
10
+ readonly 'product-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
11
+ context: zod.ZodEnum<["recommendation", "search", "similar", "history"]>;
12
+ summary: zod.ZodOptional<zod.ZodString>;
13
+ items: zod.ZodArray<zod.ZodObject<{
14
+ productId: zod.ZodString;
15
+ name: zod.ZodString;
16
+ imageUrl: zod.ZodOptional<zod.ZodString>;
17
+ brand: zod.ZodOptional<zod.ZodString>;
18
+ categoryPath: zod.ZodArray<zod.ZodString, "many">;
19
+ price: zod.ZodObject<{
20
+ sale: zod.ZodOptional<zod.ZodObject<{
21
+ currency: zod.ZodLiteral<"CNY">;
22
+ amountMinor: zod.ZodNumber;
23
+ display: zod.ZodString;
24
+ }, "strip", zod.ZodTypeAny, {
25
+ display: string;
26
+ currency: "CNY";
27
+ amountMinor: number;
28
+ }, {
29
+ display: string;
30
+ currency: "CNY";
31
+ amountMinor: number;
32
+ }>>;
33
+ original: zod.ZodOptional<zod.ZodObject<{
34
+ currency: zod.ZodLiteral<"CNY">;
35
+ amountMinor: zod.ZodNumber;
36
+ display: zod.ZodString;
37
+ }, "strip", zod.ZodTypeAny, {
38
+ display: string;
39
+ currency: "CNY";
40
+ amountMinor: number;
41
+ }, {
42
+ display: string;
43
+ currency: "CNY";
44
+ amountMinor: number;
45
+ }>>;
46
+ promotion: zod.ZodOptional<zod.ZodObject<{
47
+ currency: zod.ZodLiteral<"CNY">;
48
+ amountMinor: zod.ZodNumber;
49
+ display: zod.ZodString;
50
+ }, "strip", zod.ZodTypeAny, {
51
+ display: string;
52
+ currency: "CNY";
53
+ amountMinor: number;
54
+ }, {
55
+ display: string;
56
+ currency: "CNY";
57
+ amountMinor: number;
58
+ }>>;
59
+ }, "strip", zod.ZodTypeAny, {
60
+ sale?: {
61
+ display: string;
62
+ currency: "CNY";
63
+ amountMinor: number;
64
+ } | undefined;
65
+ original?: {
66
+ display: string;
67
+ currency: "CNY";
68
+ amountMinor: number;
69
+ } | undefined;
70
+ promotion?: {
71
+ display: string;
72
+ currency: "CNY";
73
+ amountMinor: number;
74
+ } | undefined;
75
+ }, {
76
+ sale?: {
77
+ display: string;
78
+ currency: "CNY";
79
+ amountMinor: number;
80
+ } | undefined;
81
+ original?: {
82
+ display: string;
83
+ currency: "CNY";
84
+ amountMinor: number;
85
+ } | undefined;
86
+ promotion?: {
87
+ display: string;
88
+ currency: "CNY";
89
+ amountMinor: number;
90
+ } | undefined;
91
+ }>;
92
+ availability: zod.ZodObject<{
93
+ status: zod.ZodEnum<["in_stock", "out_of_stock", "limited", "unknown"]>;
94
+ label: zod.ZodString;
95
+ marketable: zod.ZodBoolean;
96
+ observedAt: zod.ZodString;
97
+ }, "strip", zod.ZodTypeAny, {
98
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
99
+ label: string;
100
+ observedAt: string;
101
+ marketable: boolean;
102
+ }, {
103
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
104
+ label: string;
105
+ observedAt: string;
106
+ marketable: boolean;
107
+ }>;
108
+ merchant: zod.ZodObject<{
109
+ merchantId: zod.ZodString;
110
+ name: zod.ZodString;
111
+ location: zod.ZodOptional<zod.ZodObject<{
112
+ buildingName: zod.ZodOptional<zod.ZodString>;
113
+ floorName: zod.ZodOptional<zod.ZodString>;
114
+ unitName: zod.ZodOptional<zod.ZodString>;
115
+ displayText: zod.ZodString;
116
+ poiId: zod.ZodOptional<zod.ZodString>;
117
+ }, "strip", zod.ZodTypeAny, {
118
+ displayText: string;
119
+ buildingName?: string | undefined;
120
+ floorName?: string | undefined;
121
+ unitName?: string | undefined;
122
+ poiId?: string | undefined;
123
+ }, {
124
+ displayText: string;
125
+ buildingName?: string | undefined;
126
+ floorName?: string | undefined;
127
+ unitName?: string | undefined;
128
+ poiId?: string | undefined;
129
+ }>>;
130
+ }, "strip", zod.ZodTypeAny, {
131
+ name: string;
132
+ merchantId: string;
133
+ location?: {
134
+ displayText: string;
135
+ buildingName?: string | undefined;
136
+ floorName?: string | undefined;
137
+ unitName?: string | undefined;
138
+ poiId?: string | undefined;
139
+ } | undefined;
140
+ }, {
141
+ name: string;
142
+ merchantId: string;
143
+ location?: {
144
+ displayText: string;
145
+ buildingName?: string | undefined;
146
+ floorName?: string | undefined;
147
+ unitName?: string | undefined;
148
+ poiId?: string | undefined;
149
+ } | undefined;
150
+ }>;
151
+ badges: zod.ZodArray<zod.ZodString, "many">;
152
+ reasons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
153
+ code: zod.ZodString;
154
+ label: zod.ZodString;
155
+ }, "strip", zod.ZodTypeAny, {
156
+ code: string;
157
+ label: string;
158
+ }, {
159
+ code: string;
160
+ label: string;
161
+ }>, "many">>;
162
+ evidence: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
163
+ code: zod.ZodString;
164
+ label: zod.ZodString;
165
+ value: zod.ZodOptional<zod.ZodString>;
166
+ observedAt: zod.ZodString;
167
+ expiresAt: zod.ZodOptional<zod.ZodString>;
168
+ sourceKind: zod.ZodEnum<["catalog", "merchant", "mall", "policy"]>;
169
+ }, "strip", zod.ZodTypeAny, {
170
+ code: string;
171
+ label: string;
172
+ observedAt: string;
173
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
174
+ value?: string | undefined;
175
+ expiresAt?: string | undefined;
176
+ }, {
177
+ code: string;
178
+ label: string;
179
+ observedAt: string;
180
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
181
+ value?: string | undefined;
182
+ expiresAt?: string | undefined;
183
+ }>, "many">>;
184
+ caveats: zod.ZodArray<zod.ZodString, "many">;
185
+ itemActions: zod.ZodArray<zod.ZodObject<{
186
+ actionId: zod.ZodString;
187
+ label: zod.ZodString;
188
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
189
+ }, "strip", zod.ZodTypeAny, {
190
+ actionId: string;
191
+ label: string;
192
+ input?: Record<string, unknown> | undefined;
193
+ }, {
194
+ actionId: string;
195
+ label: string;
196
+ input?: Record<string, unknown> | undefined;
197
+ }>, "many">;
198
+ }, "strip", zod.ZodTypeAny, {
199
+ name: string;
200
+ merchant: {
201
+ name: string;
202
+ merchantId: string;
203
+ location?: {
204
+ displayText: string;
205
+ buildingName?: string | undefined;
206
+ floorName?: string | undefined;
207
+ unitName?: string | undefined;
208
+ poiId?: string | undefined;
209
+ } | undefined;
210
+ };
211
+ productId: string;
212
+ categoryPath: string[];
213
+ price: {
214
+ sale?: {
215
+ display: string;
216
+ currency: "CNY";
217
+ amountMinor: number;
218
+ } | undefined;
219
+ original?: {
220
+ display: string;
221
+ currency: "CNY";
222
+ amountMinor: number;
223
+ } | undefined;
224
+ promotion?: {
225
+ display: string;
226
+ currency: "CNY";
227
+ amountMinor: number;
228
+ } | undefined;
229
+ };
230
+ availability: {
231
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
232
+ label: string;
233
+ observedAt: string;
234
+ marketable: boolean;
235
+ };
236
+ badges: string[];
237
+ caveats: string[];
238
+ itemActions: {
239
+ actionId: string;
240
+ label: string;
241
+ input?: Record<string, unknown> | undefined;
242
+ }[];
243
+ brand?: string | undefined;
244
+ imageUrl?: string | undefined;
245
+ reasons?: {
246
+ code: string;
247
+ label: string;
248
+ }[] | undefined;
249
+ evidence?: {
250
+ code: string;
251
+ label: string;
252
+ observedAt: string;
253
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
254
+ value?: string | undefined;
255
+ expiresAt?: string | undefined;
256
+ }[] | undefined;
257
+ }, {
258
+ name: string;
259
+ merchant: {
260
+ name: string;
261
+ merchantId: string;
262
+ location?: {
263
+ displayText: string;
264
+ buildingName?: string | undefined;
265
+ floorName?: string | undefined;
266
+ unitName?: string | undefined;
267
+ poiId?: string | undefined;
268
+ } | undefined;
269
+ };
270
+ productId: string;
271
+ categoryPath: string[];
272
+ price: {
273
+ sale?: {
274
+ display: string;
275
+ currency: "CNY";
276
+ amountMinor: number;
277
+ } | undefined;
278
+ original?: {
279
+ display: string;
280
+ currency: "CNY";
281
+ amountMinor: number;
282
+ } | undefined;
283
+ promotion?: {
284
+ display: string;
285
+ currency: "CNY";
286
+ amountMinor: number;
287
+ } | undefined;
288
+ };
289
+ availability: {
290
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
291
+ label: string;
292
+ observedAt: string;
293
+ marketable: boolean;
294
+ };
295
+ badges: string[];
296
+ caveats: string[];
297
+ itemActions: {
298
+ actionId: string;
299
+ label: string;
300
+ input?: Record<string, unknown> | undefined;
301
+ }[];
302
+ brand?: string | undefined;
303
+ imageUrl?: string | undefined;
304
+ reasons?: {
305
+ code: string;
306
+ label: string;
307
+ }[] | undefined;
308
+ evidence?: {
309
+ code: string;
310
+ label: string;
311
+ observedAt: string;
312
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
313
+ value?: string | undefined;
314
+ expiresAt?: string | undefined;
315
+ }[] | undefined;
316
+ }>, "many">;
317
+ noResultsReason: zod.ZodOptional<zod.ZodString>;
318
+ pageInfo: zod.ZodOptional<zod.ZodObject<{
319
+ page: zod.ZodNumber;
320
+ pageSize: zod.ZodNumber;
321
+ total: zod.ZodNumber;
322
+ hasMore: zod.ZodBoolean;
323
+ }, "strip", zod.ZodTypeAny, {
324
+ pageSize: number;
325
+ page: number;
326
+ total: number;
327
+ hasMore: boolean;
328
+ }, {
329
+ pageSize: number;
330
+ page: number;
331
+ total: number;
332
+ hasMore: boolean;
333
+ }>>;
334
+ refinements: zod.ZodArray<zod.ZodObject<{
335
+ label: zod.ZodString;
336
+ queryText: zod.ZodString;
337
+ }, "strip", zod.ZodTypeAny, {
338
+ label: string;
339
+ queryText: string;
340
+ }, {
341
+ label: string;
342
+ queryText: string;
343
+ }>, "many">;
344
+ }, "strip", zod.ZodTypeAny, {
345
+ context: "search" | "history" | "recommendation" | "similar";
346
+ items: {
347
+ name: string;
348
+ merchant: {
349
+ name: string;
350
+ merchantId: string;
351
+ location?: {
352
+ displayText: string;
353
+ buildingName?: string | undefined;
354
+ floorName?: string | undefined;
355
+ unitName?: string | undefined;
356
+ poiId?: string | undefined;
357
+ } | undefined;
358
+ };
359
+ productId: string;
360
+ categoryPath: string[];
361
+ price: {
362
+ sale?: {
363
+ display: string;
364
+ currency: "CNY";
365
+ amountMinor: number;
366
+ } | undefined;
367
+ original?: {
368
+ display: string;
369
+ currency: "CNY";
370
+ amountMinor: number;
371
+ } | undefined;
372
+ promotion?: {
373
+ display: string;
374
+ currency: "CNY";
375
+ amountMinor: number;
376
+ } | undefined;
377
+ };
378
+ availability: {
379
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
380
+ label: string;
381
+ observedAt: string;
382
+ marketable: boolean;
383
+ };
384
+ badges: string[];
385
+ caveats: string[];
386
+ itemActions: {
387
+ actionId: string;
388
+ label: string;
389
+ input?: Record<string, unknown> | undefined;
390
+ }[];
391
+ brand?: string | undefined;
392
+ imageUrl?: string | undefined;
393
+ reasons?: {
394
+ code: string;
395
+ label: string;
396
+ }[] | undefined;
397
+ evidence?: {
398
+ code: string;
399
+ label: string;
400
+ observedAt: string;
401
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
402
+ value?: string | undefined;
403
+ expiresAt?: string | undefined;
404
+ }[] | undefined;
405
+ }[];
406
+ refinements: {
407
+ label: string;
408
+ queryText: string;
409
+ }[];
410
+ summary?: string | undefined;
411
+ noResultsReason?: string | undefined;
412
+ pageInfo?: {
413
+ pageSize: number;
414
+ page: number;
415
+ total: number;
416
+ hasMore: boolean;
417
+ } | undefined;
418
+ }, {
419
+ context: "search" | "history" | "recommendation" | "similar";
420
+ items: {
421
+ name: string;
422
+ merchant: {
423
+ name: string;
424
+ merchantId: string;
425
+ location?: {
426
+ displayText: string;
427
+ buildingName?: string | undefined;
428
+ floorName?: string | undefined;
429
+ unitName?: string | undefined;
430
+ poiId?: string | undefined;
431
+ } | undefined;
432
+ };
433
+ productId: string;
434
+ categoryPath: string[];
435
+ price: {
436
+ sale?: {
437
+ display: string;
438
+ currency: "CNY";
439
+ amountMinor: number;
440
+ } | undefined;
441
+ original?: {
442
+ display: string;
443
+ currency: "CNY";
444
+ amountMinor: number;
445
+ } | undefined;
446
+ promotion?: {
447
+ display: string;
448
+ currency: "CNY";
449
+ amountMinor: number;
450
+ } | undefined;
451
+ };
452
+ availability: {
453
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
454
+ label: string;
455
+ observedAt: string;
456
+ marketable: boolean;
457
+ };
458
+ badges: string[];
459
+ caveats: string[];
460
+ itemActions: {
461
+ actionId: string;
462
+ label: string;
463
+ input?: Record<string, unknown> | undefined;
464
+ }[];
465
+ brand?: string | undefined;
466
+ imageUrl?: string | undefined;
467
+ reasons?: {
468
+ code: string;
469
+ label: string;
470
+ }[] | undefined;
471
+ evidence?: {
472
+ code: string;
473
+ label: string;
474
+ observedAt: string;
475
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
476
+ value?: string | undefined;
477
+ expiresAt?: string | undefined;
478
+ }[] | undefined;
479
+ }[];
480
+ refinements: {
481
+ label: string;
482
+ queryText: string;
483
+ }[];
484
+ summary?: string | undefined;
485
+ noResultsReason?: string | undefined;
486
+ pageInfo?: {
487
+ pageSize: number;
488
+ page: number;
489
+ total: number;
490
+ hasMore: boolean;
491
+ } | undefined;
492
+ }>>;
493
+ readonly 'product-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
494
+ productId: zod.ZodString;
495
+ name: zod.ZodString;
496
+ description: zod.ZodOptional<zod.ZodString>;
497
+ imageUrls: zod.ZodArray<zod.ZodString, "many">;
498
+ brand: zod.ZodOptional<zod.ZodString>;
499
+ categoryPath: zod.ZodArray<zod.ZodString, "many">;
500
+ price: zod.ZodObject<{
501
+ sale: zod.ZodOptional<zod.ZodObject<{
502
+ currency: zod.ZodLiteral<"CNY">;
503
+ amountMinor: zod.ZodNumber;
504
+ display: zod.ZodString;
505
+ }, "strip", zod.ZodTypeAny, {
506
+ display: string;
507
+ currency: "CNY";
508
+ amountMinor: number;
509
+ }, {
510
+ display: string;
511
+ currency: "CNY";
512
+ amountMinor: number;
513
+ }>>;
514
+ original: zod.ZodOptional<zod.ZodObject<{
515
+ currency: zod.ZodLiteral<"CNY">;
516
+ amountMinor: zod.ZodNumber;
517
+ display: zod.ZodString;
518
+ }, "strip", zod.ZodTypeAny, {
519
+ display: string;
520
+ currency: "CNY";
521
+ amountMinor: number;
522
+ }, {
523
+ display: string;
524
+ currency: "CNY";
525
+ amountMinor: number;
526
+ }>>;
527
+ promotion: zod.ZodOptional<zod.ZodObject<{
528
+ currency: zod.ZodLiteral<"CNY">;
529
+ amountMinor: zod.ZodNumber;
530
+ display: zod.ZodString;
531
+ }, "strip", zod.ZodTypeAny, {
532
+ display: string;
533
+ currency: "CNY";
534
+ amountMinor: number;
535
+ }, {
536
+ display: string;
537
+ currency: "CNY";
538
+ amountMinor: number;
539
+ }>>;
540
+ }, "strip", zod.ZodTypeAny, {
541
+ sale?: {
542
+ display: string;
543
+ currency: "CNY";
544
+ amountMinor: number;
545
+ } | undefined;
546
+ original?: {
547
+ display: string;
548
+ currency: "CNY";
549
+ amountMinor: number;
550
+ } | undefined;
551
+ promotion?: {
552
+ display: string;
553
+ currency: "CNY";
554
+ amountMinor: number;
555
+ } | undefined;
556
+ }, {
557
+ sale?: {
558
+ display: string;
559
+ currency: "CNY";
560
+ amountMinor: number;
561
+ } | undefined;
562
+ original?: {
563
+ display: string;
564
+ currency: "CNY";
565
+ amountMinor: number;
566
+ } | undefined;
567
+ promotion?: {
568
+ display: string;
569
+ currency: "CNY";
570
+ amountMinor: number;
571
+ } | undefined;
572
+ }>;
573
+ availability: zod.ZodObject<{
574
+ status: zod.ZodEnum<["in_stock", "out_of_stock", "limited", "unknown"]>;
575
+ label: zod.ZodString;
576
+ marketable: zod.ZodBoolean;
577
+ observedAt: zod.ZodString;
578
+ }, "strip", zod.ZodTypeAny, {
579
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
580
+ label: string;
581
+ observedAt: string;
582
+ marketable: boolean;
583
+ }, {
584
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
585
+ label: string;
586
+ observedAt: string;
587
+ marketable: boolean;
588
+ }>;
589
+ merchant: zod.ZodObject<{
590
+ merchantId: zod.ZodString;
591
+ name: zod.ZodString;
592
+ location: zod.ZodOptional<zod.ZodObject<{
593
+ buildingName: zod.ZodOptional<zod.ZodString>;
594
+ floorName: zod.ZodOptional<zod.ZodString>;
595
+ unitName: zod.ZodOptional<zod.ZodString>;
596
+ displayText: zod.ZodString;
597
+ poiId: zod.ZodOptional<zod.ZodString>;
598
+ }, "strip", zod.ZodTypeAny, {
599
+ displayText: string;
600
+ buildingName?: string | undefined;
601
+ floorName?: string | undefined;
602
+ unitName?: string | undefined;
603
+ poiId?: string | undefined;
604
+ }, {
605
+ displayText: string;
606
+ buildingName?: string | undefined;
607
+ floorName?: string | undefined;
608
+ unitName?: string | undefined;
609
+ poiId?: string | undefined;
610
+ }>>;
611
+ }, "strip", zod.ZodTypeAny, {
612
+ name: string;
613
+ merchantId: string;
614
+ location?: {
615
+ displayText: string;
616
+ buildingName?: string | undefined;
617
+ floorName?: string | undefined;
618
+ unitName?: string | undefined;
619
+ poiId?: string | undefined;
620
+ } | undefined;
621
+ }, {
622
+ name: string;
623
+ merchantId: string;
624
+ location?: {
625
+ displayText: string;
626
+ buildingName?: string | undefined;
627
+ floorName?: string | undefined;
628
+ unitName?: string | undefined;
629
+ poiId?: string | undefined;
630
+ } | undefined;
631
+ }>;
632
+ attributes: zod.ZodArray<zod.ZodObject<{
633
+ name: zod.ZodString;
634
+ value: zod.ZodString;
635
+ }, "strip", zod.ZodTypeAny, {
636
+ value: string;
637
+ name: string;
638
+ }, {
639
+ value: string;
640
+ name: string;
641
+ }>, "many">;
642
+ promotionFacts: zod.ZodArray<zod.ZodString, "many">;
643
+ evidence: zod.ZodArray<zod.ZodObject<{
644
+ code: zod.ZodString;
645
+ label: zod.ZodString;
646
+ value: zod.ZodOptional<zod.ZodString>;
647
+ observedAt: zod.ZodString;
648
+ expiresAt: zod.ZodOptional<zod.ZodString>;
649
+ sourceKind: zod.ZodEnum<["catalog", "merchant", "mall", "policy"]>;
650
+ }, "strip", zod.ZodTypeAny, {
651
+ code: string;
652
+ label: string;
653
+ observedAt: string;
654
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
655
+ value?: string | undefined;
656
+ expiresAt?: string | undefined;
657
+ }, {
658
+ code: string;
659
+ label: string;
660
+ observedAt: string;
661
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
662
+ value?: string | undefined;
663
+ expiresAt?: string | undefined;
664
+ }>, "many">;
665
+ humanGuideAvailable: zod.ZodBoolean;
666
+ itemActions: zod.ZodArray<zod.ZodObject<{
667
+ actionId: zod.ZodString;
668
+ label: zod.ZodString;
669
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
670
+ }, "strip", zod.ZodTypeAny, {
671
+ actionId: string;
672
+ label: string;
673
+ input?: Record<string, unknown> | undefined;
674
+ }, {
675
+ actionId: string;
676
+ label: string;
677
+ input?: Record<string, unknown> | undefined;
678
+ }>, "many">;
679
+ }, "strip", zod.ZodTypeAny, {
680
+ name: string;
681
+ attributes: {
682
+ value: string;
683
+ name: string;
684
+ }[];
685
+ merchant: {
686
+ name: string;
687
+ merchantId: string;
688
+ location?: {
689
+ displayText: string;
690
+ buildingName?: string | undefined;
691
+ floorName?: string | undefined;
692
+ unitName?: string | undefined;
693
+ poiId?: string | undefined;
694
+ } | undefined;
695
+ };
696
+ productId: string;
697
+ categoryPath: string[];
698
+ price: {
699
+ sale?: {
700
+ display: string;
701
+ currency: "CNY";
702
+ amountMinor: number;
703
+ } | undefined;
704
+ original?: {
705
+ display: string;
706
+ currency: "CNY";
707
+ amountMinor: number;
708
+ } | undefined;
709
+ promotion?: {
710
+ display: string;
711
+ currency: "CNY";
712
+ amountMinor: number;
713
+ } | undefined;
714
+ };
715
+ availability: {
716
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
717
+ label: string;
718
+ observedAt: string;
719
+ marketable: boolean;
720
+ };
721
+ evidence: {
722
+ code: string;
723
+ label: string;
724
+ observedAt: string;
725
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
726
+ value?: string | undefined;
727
+ expiresAt?: string | undefined;
728
+ }[];
729
+ itemActions: {
730
+ actionId: string;
731
+ label: string;
732
+ input?: Record<string, unknown> | undefined;
733
+ }[];
734
+ promotionFacts: string[];
735
+ imageUrls: string[];
736
+ humanGuideAvailable: boolean;
737
+ description?: string | undefined;
738
+ brand?: string | undefined;
739
+ }, {
740
+ name: string;
741
+ attributes: {
742
+ value: string;
743
+ name: string;
744
+ }[];
745
+ merchant: {
746
+ name: string;
747
+ merchantId: string;
748
+ location?: {
749
+ displayText: string;
750
+ buildingName?: string | undefined;
751
+ floorName?: string | undefined;
752
+ unitName?: string | undefined;
753
+ poiId?: string | undefined;
754
+ } | undefined;
755
+ };
756
+ productId: string;
757
+ categoryPath: string[];
758
+ price: {
759
+ sale?: {
760
+ display: string;
761
+ currency: "CNY";
762
+ amountMinor: number;
763
+ } | undefined;
764
+ original?: {
765
+ display: string;
766
+ currency: "CNY";
767
+ amountMinor: number;
768
+ } | undefined;
769
+ promotion?: {
770
+ display: string;
771
+ currency: "CNY";
772
+ amountMinor: number;
773
+ } | undefined;
774
+ };
775
+ availability: {
776
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
777
+ label: string;
778
+ observedAt: string;
779
+ marketable: boolean;
780
+ };
781
+ evidence: {
782
+ code: string;
783
+ label: string;
784
+ observedAt: string;
785
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
786
+ value?: string | undefined;
787
+ expiresAt?: string | undefined;
788
+ }[];
789
+ itemActions: {
790
+ actionId: string;
791
+ label: string;
792
+ input?: Record<string, unknown> | undefined;
793
+ }[];
794
+ promotionFacts: string[];
795
+ imageUrls: string[];
796
+ humanGuideAvailable: boolean;
797
+ description?: string | undefined;
798
+ brand?: string | undefined;
799
+ }>>;
800
+ readonly 'merchant-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
801
+ context: zod.ZodEnum<["recommendation", "search"]>;
802
+ summary: zod.ZodOptional<zod.ZodString>;
803
+ items: zod.ZodArray<zod.ZodObject<{
804
+ merchantId: zod.ZodString;
805
+ name: zod.ZodString;
806
+ logoUrl: zod.ZodOptional<zod.ZodString>;
807
+ coverUrl: zod.ZodOptional<zod.ZodString>;
808
+ brand: zod.ZodOptional<zod.ZodString>;
809
+ businessCategories: zod.ZodArray<zod.ZodString, "many">;
810
+ location: zod.ZodObject<{
811
+ buildingName: zod.ZodOptional<zod.ZodString>;
812
+ floorName: zod.ZodOptional<zod.ZodString>;
813
+ unitName: zod.ZodOptional<zod.ZodString>;
814
+ displayText: zod.ZodString;
815
+ poiId: zod.ZodOptional<zod.ZodString>;
816
+ }, "strip", zod.ZodTypeAny, {
817
+ displayText: string;
818
+ buildingName?: string | undefined;
819
+ floorName?: string | undefined;
820
+ unitName?: string | undefined;
821
+ poiId?: string | undefined;
822
+ }, {
823
+ displayText: string;
824
+ buildingName?: string | undefined;
825
+ floorName?: string | undefined;
826
+ unitName?: string | undefined;
827
+ poiId?: string | undefined;
828
+ }>;
829
+ status: zod.ZodObject<{
830
+ code: zod.ZodEnum<["enabled", "disabled", "unknown"]>;
831
+ label: zod.ZodString;
832
+ observedAt: zod.ZodString;
833
+ }, "strip", zod.ZodTypeAny, {
834
+ code: "unknown" | "enabled" | "disabled";
835
+ label: string;
836
+ observedAt: string;
837
+ }, {
838
+ code: "unknown" | "enabled" | "disabled";
839
+ label: string;
840
+ observedAt: string;
841
+ }>;
842
+ services: zod.ZodArray<zod.ZodString, "many">;
843
+ promotionFacts: zod.ZodArray<zod.ZodString, "many">;
844
+ reasons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
845
+ code: zod.ZodString;
846
+ label: zod.ZodString;
847
+ }, "strip", zod.ZodTypeAny, {
848
+ code: string;
849
+ label: string;
850
+ }, {
851
+ code: string;
852
+ label: string;
853
+ }>, "many">>;
854
+ evidence: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
855
+ code: zod.ZodString;
856
+ label: zod.ZodString;
857
+ value: zod.ZodOptional<zod.ZodString>;
858
+ observedAt: zod.ZodString;
859
+ expiresAt: zod.ZodOptional<zod.ZodString>;
860
+ sourceKind: zod.ZodEnum<["catalog", "merchant", "mall", "policy"]>;
861
+ }, "strip", zod.ZodTypeAny, {
862
+ code: string;
863
+ label: string;
864
+ observedAt: string;
865
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
866
+ value?: string | undefined;
867
+ expiresAt?: string | undefined;
868
+ }, {
869
+ code: string;
870
+ label: string;
871
+ observedAt: string;
872
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
873
+ value?: string | undefined;
874
+ expiresAt?: string | undefined;
875
+ }>, "many">>;
876
+ itemActions: zod.ZodArray<zod.ZodObject<{
877
+ actionId: zod.ZodString;
878
+ label: zod.ZodString;
879
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
880
+ }, "strip", zod.ZodTypeAny, {
881
+ actionId: string;
882
+ label: string;
883
+ input?: Record<string, unknown> | undefined;
884
+ }, {
885
+ actionId: string;
886
+ label: string;
887
+ input?: Record<string, unknown> | undefined;
888
+ }>, "many">;
889
+ }, "strip", zod.ZodTypeAny, {
890
+ status: {
891
+ code: "unknown" | "enabled" | "disabled";
892
+ label: string;
893
+ observedAt: string;
894
+ };
895
+ name: string;
896
+ merchantId: string;
897
+ location: {
898
+ displayText: string;
899
+ buildingName?: string | undefined;
900
+ floorName?: string | undefined;
901
+ unitName?: string | undefined;
902
+ poiId?: string | undefined;
903
+ };
904
+ itemActions: {
905
+ actionId: string;
906
+ label: string;
907
+ input?: Record<string, unknown> | undefined;
908
+ }[];
909
+ businessCategories: string[];
910
+ services: string[];
911
+ promotionFacts: string[];
912
+ brand?: string | undefined;
913
+ reasons?: {
914
+ code: string;
915
+ label: string;
916
+ }[] | undefined;
917
+ evidence?: {
918
+ code: string;
919
+ label: string;
920
+ observedAt: string;
921
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
922
+ value?: string | undefined;
923
+ expiresAt?: string | undefined;
924
+ }[] | undefined;
925
+ logoUrl?: string | undefined;
926
+ coverUrl?: string | undefined;
927
+ }, {
928
+ status: {
929
+ code: "unknown" | "enabled" | "disabled";
930
+ label: string;
931
+ observedAt: string;
932
+ };
933
+ name: string;
934
+ merchantId: string;
935
+ location: {
936
+ displayText: string;
937
+ buildingName?: string | undefined;
938
+ floorName?: string | undefined;
939
+ unitName?: string | undefined;
940
+ poiId?: string | undefined;
941
+ };
942
+ itemActions: {
943
+ actionId: string;
944
+ label: string;
945
+ input?: Record<string, unknown> | undefined;
946
+ }[];
947
+ businessCategories: string[];
948
+ services: string[];
949
+ promotionFacts: string[];
950
+ brand?: string | undefined;
951
+ reasons?: {
952
+ code: string;
953
+ label: string;
954
+ }[] | undefined;
955
+ evidence?: {
956
+ code: string;
957
+ label: string;
958
+ observedAt: string;
959
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
960
+ value?: string | undefined;
961
+ expiresAt?: string | undefined;
962
+ }[] | undefined;
963
+ logoUrl?: string | undefined;
964
+ coverUrl?: string | undefined;
965
+ }>, "many">;
966
+ noResultsReason: zod.ZodOptional<zod.ZodString>;
967
+ pageInfo: zod.ZodOptional<zod.ZodObject<{
968
+ page: zod.ZodNumber;
969
+ pageSize: zod.ZodNumber;
970
+ total: zod.ZodNumber;
971
+ hasMore: zod.ZodBoolean;
972
+ }, "strip", zod.ZodTypeAny, {
973
+ pageSize: number;
974
+ page: number;
975
+ total: number;
976
+ hasMore: boolean;
977
+ }, {
978
+ pageSize: number;
979
+ page: number;
980
+ total: number;
981
+ hasMore: boolean;
982
+ }>>;
983
+ refinements: zod.ZodArray<zod.ZodObject<{
984
+ label: zod.ZodString;
985
+ queryText: zod.ZodString;
986
+ }, "strip", zod.ZodTypeAny, {
987
+ label: string;
988
+ queryText: string;
989
+ }, {
990
+ label: string;
991
+ queryText: string;
992
+ }>, "many">;
993
+ }, "strip", zod.ZodTypeAny, {
994
+ context: "search" | "recommendation";
995
+ items: {
996
+ status: {
997
+ code: "unknown" | "enabled" | "disabled";
998
+ label: string;
999
+ observedAt: string;
1000
+ };
1001
+ name: string;
1002
+ merchantId: string;
1003
+ location: {
1004
+ displayText: string;
1005
+ buildingName?: string | undefined;
1006
+ floorName?: string | undefined;
1007
+ unitName?: string | undefined;
1008
+ poiId?: string | undefined;
1009
+ };
1010
+ itemActions: {
1011
+ actionId: string;
1012
+ label: string;
1013
+ input?: Record<string, unknown> | undefined;
1014
+ }[];
1015
+ businessCategories: string[];
1016
+ services: string[];
1017
+ promotionFacts: string[];
1018
+ brand?: string | undefined;
1019
+ reasons?: {
1020
+ code: string;
1021
+ label: string;
1022
+ }[] | undefined;
1023
+ evidence?: {
1024
+ code: string;
1025
+ label: string;
1026
+ observedAt: string;
1027
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
1028
+ value?: string | undefined;
1029
+ expiresAt?: string | undefined;
1030
+ }[] | undefined;
1031
+ logoUrl?: string | undefined;
1032
+ coverUrl?: string | undefined;
1033
+ }[];
1034
+ refinements: {
1035
+ label: string;
1036
+ queryText: string;
1037
+ }[];
1038
+ summary?: string | undefined;
1039
+ noResultsReason?: string | undefined;
1040
+ pageInfo?: {
1041
+ pageSize: number;
1042
+ page: number;
1043
+ total: number;
1044
+ hasMore: boolean;
1045
+ } | undefined;
1046
+ }, {
1047
+ context: "search" | "recommendation";
1048
+ items: {
1049
+ status: {
1050
+ code: "unknown" | "enabled" | "disabled";
1051
+ label: string;
1052
+ observedAt: string;
1053
+ };
1054
+ name: string;
1055
+ merchantId: string;
1056
+ location: {
1057
+ displayText: string;
1058
+ buildingName?: string | undefined;
1059
+ floorName?: string | undefined;
1060
+ unitName?: string | undefined;
1061
+ poiId?: string | undefined;
1062
+ };
1063
+ itemActions: {
1064
+ actionId: string;
1065
+ label: string;
1066
+ input?: Record<string, unknown> | undefined;
1067
+ }[];
1068
+ businessCategories: string[];
1069
+ services: string[];
1070
+ promotionFacts: string[];
1071
+ brand?: string | undefined;
1072
+ reasons?: {
1073
+ code: string;
1074
+ label: string;
1075
+ }[] | undefined;
1076
+ evidence?: {
1077
+ code: string;
1078
+ label: string;
1079
+ observedAt: string;
1080
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
1081
+ value?: string | undefined;
1082
+ expiresAt?: string | undefined;
1083
+ }[] | undefined;
1084
+ logoUrl?: string | undefined;
1085
+ coverUrl?: string | undefined;
1086
+ }[];
1087
+ refinements: {
1088
+ label: string;
1089
+ queryText: string;
1090
+ }[];
1091
+ summary?: string | undefined;
1092
+ noResultsReason?: string | undefined;
1093
+ pageInfo?: {
1094
+ pageSize: number;
1095
+ page: number;
1096
+ total: number;
1097
+ hasMore: boolean;
1098
+ } | undefined;
1099
+ }>>;
1100
+ readonly 'merchant-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1101
+ merchantId: zod.ZodString;
1102
+ name: zod.ZodString;
1103
+ logoUrl: zod.ZodOptional<zod.ZodString>;
1104
+ coverUrls: zod.ZodArray<zod.ZodString, "many">;
1105
+ brand: zod.ZodOptional<zod.ZodString>;
1106
+ businessCategories: zod.ZodArray<zod.ZodString, "many">;
1107
+ location: zod.ZodObject<{
1108
+ buildingName: zod.ZodOptional<zod.ZodString>;
1109
+ floorName: zod.ZodOptional<zod.ZodString>;
1110
+ unitName: zod.ZodOptional<zod.ZodString>;
1111
+ displayText: zod.ZodString;
1112
+ poiId: zod.ZodOptional<zod.ZodString>;
1113
+ }, "strip", zod.ZodTypeAny, {
1114
+ displayText: string;
1115
+ buildingName?: string | undefined;
1116
+ floorName?: string | undefined;
1117
+ unitName?: string | undefined;
1118
+ poiId?: string | undefined;
1119
+ }, {
1120
+ displayText: string;
1121
+ buildingName?: string | undefined;
1122
+ floorName?: string | undefined;
1123
+ unitName?: string | undefined;
1124
+ poiId?: string | undefined;
1125
+ }>;
1126
+ status: zod.ZodObject<{
1127
+ code: zod.ZodEnum<["enabled", "disabled", "unknown"]>;
1128
+ label: zod.ZodString;
1129
+ observedAt: zod.ZodString;
1130
+ }, "strip", zod.ZodTypeAny, {
1131
+ code: "unknown" | "enabled" | "disabled";
1132
+ label: string;
1133
+ observedAt: string;
1134
+ }, {
1135
+ code: "unknown" | "enabled" | "disabled";
1136
+ label: string;
1137
+ observedAt: string;
1138
+ }>;
1139
+ description: zod.ZodOptional<zod.ZodString>;
1140
+ contactInfo: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1141
+ channel: zod.ZodString;
1142
+ value: zod.ZodString;
1143
+ }, "strip", zod.ZodTypeAny, {
1144
+ value: string;
1145
+ channel: string;
1146
+ }, {
1147
+ value: string;
1148
+ channel: string;
1149
+ }>, "many">>;
1150
+ services: zod.ZodArray<zod.ZodString, "many">;
1151
+ promotionFacts: zod.ZodArray<zod.ZodString, "many">;
1152
+ evidence: zod.ZodArray<zod.ZodObject<{
1153
+ code: zod.ZodString;
1154
+ label: zod.ZodString;
1155
+ value: zod.ZodOptional<zod.ZodString>;
1156
+ observedAt: zod.ZodString;
1157
+ expiresAt: zod.ZodOptional<zod.ZodString>;
1158
+ sourceKind: zod.ZodEnum<["catalog", "merchant", "mall", "policy"]>;
1159
+ }, "strip", zod.ZodTypeAny, {
1160
+ code: string;
1161
+ label: string;
1162
+ observedAt: string;
1163
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
1164
+ value?: string | undefined;
1165
+ expiresAt?: string | undefined;
1166
+ }, {
1167
+ code: string;
1168
+ label: string;
1169
+ observedAt: string;
1170
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
1171
+ value?: string | undefined;
1172
+ expiresAt?: string | undefined;
1173
+ }>, "many">;
1174
+ itemActions: zod.ZodArray<zod.ZodObject<{
1175
+ actionId: zod.ZodString;
1176
+ label: zod.ZodString;
1177
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
1178
+ }, "strip", zod.ZodTypeAny, {
1179
+ actionId: string;
1180
+ label: string;
1181
+ input?: Record<string, unknown> | undefined;
1182
+ }, {
1183
+ actionId: string;
1184
+ label: string;
1185
+ input?: Record<string, unknown> | undefined;
1186
+ }>, "many">;
1187
+ }, "strip", zod.ZodTypeAny, {
1188
+ status: {
1189
+ code: "unknown" | "enabled" | "disabled";
1190
+ label: string;
1191
+ observedAt: string;
1192
+ };
1193
+ name: string;
1194
+ merchantId: string;
1195
+ location: {
1196
+ displayText: string;
1197
+ buildingName?: string | undefined;
1198
+ floorName?: string | undefined;
1199
+ unitName?: string | undefined;
1200
+ poiId?: string | undefined;
1201
+ };
1202
+ evidence: {
1203
+ code: string;
1204
+ label: string;
1205
+ observedAt: string;
1206
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
1207
+ value?: string | undefined;
1208
+ expiresAt?: string | undefined;
1209
+ }[];
1210
+ itemActions: {
1211
+ actionId: string;
1212
+ label: string;
1213
+ input?: Record<string, unknown> | undefined;
1214
+ }[];
1215
+ businessCategories: string[];
1216
+ services: string[];
1217
+ promotionFacts: string[];
1218
+ coverUrls: string[];
1219
+ description?: string | undefined;
1220
+ brand?: string | undefined;
1221
+ logoUrl?: string | undefined;
1222
+ contactInfo?: {
1223
+ value: string;
1224
+ channel: string;
1225
+ }[] | undefined;
1226
+ }, {
1227
+ status: {
1228
+ code: "unknown" | "enabled" | "disabled";
1229
+ label: string;
1230
+ observedAt: string;
1231
+ };
1232
+ name: string;
1233
+ merchantId: string;
1234
+ location: {
1235
+ displayText: string;
1236
+ buildingName?: string | undefined;
1237
+ floorName?: string | undefined;
1238
+ unitName?: string | undefined;
1239
+ poiId?: string | undefined;
1240
+ };
1241
+ evidence: {
1242
+ code: string;
1243
+ label: string;
1244
+ observedAt: string;
1245
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
1246
+ value?: string | undefined;
1247
+ expiresAt?: string | undefined;
1248
+ }[];
1249
+ itemActions: {
1250
+ actionId: string;
1251
+ label: string;
1252
+ input?: Record<string, unknown> | undefined;
1253
+ }[];
1254
+ businessCategories: string[];
1255
+ services: string[];
1256
+ promotionFacts: string[];
1257
+ coverUrls: string[];
1258
+ description?: string | undefined;
1259
+ brand?: string | undefined;
1260
+ logoUrl?: string | undefined;
1261
+ contactInfo?: {
1262
+ value: string;
1263
+ channel: string;
1264
+ }[] | undefined;
1265
+ }>>;
1266
+ readonly 'category-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1267
+ categories: zod.ZodArray<zod.ZodObject<{
1268
+ code: zod.ZodString;
1269
+ name: zod.ZodString;
1270
+ description: zod.ZodOptional<zod.ZodString>;
1271
+ merchantCount: zod.ZodNumber;
1272
+ subCategories: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1273
+ code: zod.ZodString;
1274
+ name: zod.ZodString;
1275
+ merchantCount: zod.ZodNumber;
1276
+ }, "strip", zod.ZodTypeAny, {
1277
+ code: string;
1278
+ name: string;
1279
+ merchantCount: number;
1280
+ }, {
1281
+ code: string;
1282
+ name: string;
1283
+ merchantCount: number;
1284
+ }>, "many">>;
1285
+ }, "strip", zod.ZodTypeAny, {
1286
+ code: string;
1287
+ name: string;
1288
+ merchantCount: number;
1289
+ description?: string | undefined;
1290
+ subCategories?: {
1291
+ code: string;
1292
+ name: string;
1293
+ merchantCount: number;
1294
+ }[] | undefined;
1295
+ }, {
1296
+ code: string;
1297
+ name: string;
1298
+ merchantCount: number;
1299
+ description?: string | undefined;
1300
+ subCategories?: {
1301
+ code: string;
1302
+ name: string;
1303
+ merchantCount: number;
1304
+ }[] | undefined;
1305
+ }>, "many">;
1306
+ observedAt: zod.ZodString;
1307
+ }, "strip", zod.ZodTypeAny, {
1308
+ observedAt: string;
1309
+ categories: {
1310
+ code: string;
1311
+ name: string;
1312
+ merchantCount: number;
1313
+ description?: string | undefined;
1314
+ subCategories?: {
1315
+ code: string;
1316
+ name: string;
1317
+ merchantCount: number;
1318
+ }[] | undefined;
1319
+ }[];
1320
+ }, {
1321
+ observedAt: string;
1322
+ categories: {
1323
+ code: string;
1324
+ name: string;
1325
+ merchantCount: number;
1326
+ description?: string | undefined;
1327
+ subCategories?: {
1328
+ code: string;
1329
+ name: string;
1330
+ merchantCount: number;
1331
+ }[] | undefined;
1332
+ }[];
1333
+ }>>;
1334
+ readonly 'product-comparison': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1335
+ products: zod.ZodArray<zod.ZodObject<{
1336
+ productId: zod.ZodString;
1337
+ name: zod.ZodString;
1338
+ imageUrl: zod.ZodOptional<zod.ZodString>;
1339
+ brand: zod.ZodOptional<zod.ZodString>;
1340
+ price: zod.ZodObject<{
1341
+ sale: zod.ZodOptional<zod.ZodObject<{
1342
+ currency: zod.ZodLiteral<"CNY">;
1343
+ amountMinor: zod.ZodNumber;
1344
+ display: zod.ZodString;
1345
+ }, "strip", zod.ZodTypeAny, {
1346
+ display: string;
1347
+ currency: "CNY";
1348
+ amountMinor: number;
1349
+ }, {
1350
+ display: string;
1351
+ currency: "CNY";
1352
+ amountMinor: number;
1353
+ }>>;
1354
+ original: zod.ZodOptional<zod.ZodObject<{
1355
+ currency: zod.ZodLiteral<"CNY">;
1356
+ amountMinor: zod.ZodNumber;
1357
+ display: zod.ZodString;
1358
+ }, "strip", zod.ZodTypeAny, {
1359
+ display: string;
1360
+ currency: "CNY";
1361
+ amountMinor: number;
1362
+ }, {
1363
+ display: string;
1364
+ currency: "CNY";
1365
+ amountMinor: number;
1366
+ }>>;
1367
+ promotion: zod.ZodOptional<zod.ZodObject<{
1368
+ currency: zod.ZodLiteral<"CNY">;
1369
+ amountMinor: zod.ZodNumber;
1370
+ display: zod.ZodString;
1371
+ }, "strip", zod.ZodTypeAny, {
1372
+ display: string;
1373
+ currency: "CNY";
1374
+ amountMinor: number;
1375
+ }, {
1376
+ display: string;
1377
+ currency: "CNY";
1378
+ amountMinor: number;
1379
+ }>>;
1380
+ }, "strip", zod.ZodTypeAny, {
1381
+ sale?: {
1382
+ display: string;
1383
+ currency: "CNY";
1384
+ amountMinor: number;
1385
+ } | undefined;
1386
+ original?: {
1387
+ display: string;
1388
+ currency: "CNY";
1389
+ amountMinor: number;
1390
+ } | undefined;
1391
+ promotion?: {
1392
+ display: string;
1393
+ currency: "CNY";
1394
+ amountMinor: number;
1395
+ } | undefined;
1396
+ }, {
1397
+ sale?: {
1398
+ display: string;
1399
+ currency: "CNY";
1400
+ amountMinor: number;
1401
+ } | undefined;
1402
+ original?: {
1403
+ display: string;
1404
+ currency: "CNY";
1405
+ amountMinor: number;
1406
+ } | undefined;
1407
+ promotion?: {
1408
+ display: string;
1409
+ currency: "CNY";
1410
+ amountMinor: number;
1411
+ } | undefined;
1412
+ }>;
1413
+ availability: zod.ZodObject<{
1414
+ status: zod.ZodEnum<["in_stock", "out_of_stock", "limited", "unknown"]>;
1415
+ label: zod.ZodString;
1416
+ marketable: zod.ZodBoolean;
1417
+ observedAt: zod.ZodString;
1418
+ }, "strip", zod.ZodTypeAny, {
1419
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
1420
+ label: string;
1421
+ observedAt: string;
1422
+ marketable: boolean;
1423
+ }, {
1424
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
1425
+ label: string;
1426
+ observedAt: string;
1427
+ marketable: boolean;
1428
+ }>;
1429
+ merchant: zod.ZodObject<{
1430
+ merchantId: zod.ZodString;
1431
+ name: zod.ZodString;
1432
+ }, "strip", zod.ZodTypeAny, {
1433
+ name: string;
1434
+ merchantId: string;
1435
+ }, {
1436
+ name: string;
1437
+ merchantId: string;
1438
+ }>;
1439
+ attributes: zod.ZodArray<zod.ZodObject<{
1440
+ name: zod.ZodString;
1441
+ value: zod.ZodString;
1442
+ }, "strip", zod.ZodTypeAny, {
1443
+ value: string;
1444
+ name: string;
1445
+ }, {
1446
+ value: string;
1447
+ name: string;
1448
+ }>, "many">;
1449
+ caveats: zod.ZodArray<zod.ZodString, "many">;
1450
+ }, "strip", zod.ZodTypeAny, {
1451
+ name: string;
1452
+ attributes: {
1453
+ value: string;
1454
+ name: string;
1455
+ }[];
1456
+ merchant: {
1457
+ name: string;
1458
+ merchantId: string;
1459
+ };
1460
+ productId: string;
1461
+ price: {
1462
+ sale?: {
1463
+ display: string;
1464
+ currency: "CNY";
1465
+ amountMinor: number;
1466
+ } | undefined;
1467
+ original?: {
1468
+ display: string;
1469
+ currency: "CNY";
1470
+ amountMinor: number;
1471
+ } | undefined;
1472
+ promotion?: {
1473
+ display: string;
1474
+ currency: "CNY";
1475
+ amountMinor: number;
1476
+ } | undefined;
1477
+ };
1478
+ availability: {
1479
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
1480
+ label: string;
1481
+ observedAt: string;
1482
+ marketable: boolean;
1483
+ };
1484
+ caveats: string[];
1485
+ brand?: string | undefined;
1486
+ imageUrl?: string | undefined;
1487
+ }, {
1488
+ name: string;
1489
+ attributes: {
1490
+ value: string;
1491
+ name: string;
1492
+ }[];
1493
+ merchant: {
1494
+ name: string;
1495
+ merchantId: string;
1496
+ };
1497
+ productId: string;
1498
+ price: {
1499
+ sale?: {
1500
+ display: string;
1501
+ currency: "CNY";
1502
+ amountMinor: number;
1503
+ } | undefined;
1504
+ original?: {
1505
+ display: string;
1506
+ currency: "CNY";
1507
+ amountMinor: number;
1508
+ } | undefined;
1509
+ promotion?: {
1510
+ display: string;
1511
+ currency: "CNY";
1512
+ amountMinor: number;
1513
+ } | undefined;
1514
+ };
1515
+ availability: {
1516
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
1517
+ label: string;
1518
+ observedAt: string;
1519
+ marketable: boolean;
1520
+ };
1521
+ caveats: string[];
1522
+ brand?: string | undefined;
1523
+ imageUrl?: string | undefined;
1524
+ }>, "many">;
1525
+ observedAt: zod.ZodString;
1526
+ }, "strip", zod.ZodTypeAny, {
1527
+ observedAt: string;
1528
+ products: {
1529
+ name: string;
1530
+ attributes: {
1531
+ value: string;
1532
+ name: string;
1533
+ }[];
1534
+ merchant: {
1535
+ name: string;
1536
+ merchantId: string;
1537
+ };
1538
+ productId: string;
1539
+ price: {
1540
+ sale?: {
1541
+ display: string;
1542
+ currency: "CNY";
1543
+ amountMinor: number;
1544
+ } | undefined;
1545
+ original?: {
1546
+ display: string;
1547
+ currency: "CNY";
1548
+ amountMinor: number;
1549
+ } | undefined;
1550
+ promotion?: {
1551
+ display: string;
1552
+ currency: "CNY";
1553
+ amountMinor: number;
1554
+ } | undefined;
1555
+ };
1556
+ availability: {
1557
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
1558
+ label: string;
1559
+ observedAt: string;
1560
+ marketable: boolean;
1561
+ };
1562
+ caveats: string[];
1563
+ brand?: string | undefined;
1564
+ imageUrl?: string | undefined;
1565
+ }[];
1566
+ }, {
1567
+ observedAt: string;
1568
+ products: {
1569
+ name: string;
1570
+ attributes: {
1571
+ value: string;
1572
+ name: string;
1573
+ }[];
1574
+ merchant: {
1575
+ name: string;
1576
+ merchantId: string;
1577
+ };
1578
+ productId: string;
1579
+ price: {
1580
+ sale?: {
1581
+ display: string;
1582
+ currency: "CNY";
1583
+ amountMinor: number;
1584
+ } | undefined;
1585
+ original?: {
1586
+ display: string;
1587
+ currency: "CNY";
1588
+ amountMinor: number;
1589
+ } | undefined;
1590
+ promotion?: {
1591
+ display: string;
1592
+ currency: "CNY";
1593
+ amountMinor: number;
1594
+ } | undefined;
1595
+ };
1596
+ availability: {
1597
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
1598
+ label: string;
1599
+ observedAt: string;
1600
+ marketable: boolean;
1601
+ };
1602
+ caveats: string[];
1603
+ brand?: string | undefined;
1604
+ imageUrl?: string | undefined;
1605
+ }[];
1606
+ }>>;
1607
+ readonly 'mall-directory': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1608
+ mallId: zod.ZodString;
1609
+ mallName: zod.ZodString;
1610
+ buildings: zod.ZodArray<zod.ZodObject<{
1611
+ buildingCode: zod.ZodString;
1612
+ buildingName: zod.ZodString;
1613
+ floors: zod.ZodArray<zod.ZodObject<{
1614
+ floorCode: zod.ZodString;
1615
+ floorName: zod.ZodString;
1616
+ businessCategories: zod.ZodArray<zod.ZodString, "many">;
1617
+ merchantCount: zod.ZodNumber;
1618
+ }, "strip", zod.ZodTypeAny, {
1619
+ floorName: string;
1620
+ businessCategories: string[];
1621
+ merchantCount: number;
1622
+ floorCode: string;
1623
+ }, {
1624
+ floorName: string;
1625
+ businessCategories: string[];
1626
+ merchantCount: number;
1627
+ floorCode: string;
1628
+ }>, "many">;
1629
+ }, "strip", zod.ZodTypeAny, {
1630
+ buildingName: string;
1631
+ buildingCode: string;
1632
+ floors: {
1633
+ floorName: string;
1634
+ businessCategories: string[];
1635
+ merchantCount: number;
1636
+ floorCode: string;
1637
+ }[];
1638
+ }, {
1639
+ buildingName: string;
1640
+ buildingCode: string;
1641
+ floors: {
1642
+ floorName: string;
1643
+ businessCategories: string[];
1644
+ merchantCount: number;
1645
+ floorCode: string;
1646
+ }[];
1647
+ }>, "many">;
1648
+ observedAt: zod.ZodString;
1649
+ }, "strip", zod.ZodTypeAny, {
1650
+ mallId: string;
1651
+ observedAt: string;
1652
+ mallName: string;
1653
+ buildings: {
1654
+ buildingName: string;
1655
+ buildingCode: string;
1656
+ floors: {
1657
+ floorName: string;
1658
+ businessCategories: string[];
1659
+ merchantCount: number;
1660
+ floorCode: string;
1661
+ }[];
1662
+ }[];
1663
+ }, {
1664
+ mallId: string;
1665
+ observedAt: string;
1666
+ mallName: string;
1667
+ buildings: {
1668
+ buildingName: string;
1669
+ buildingCode: string;
1670
+ floors: {
1671
+ floorName: string;
1672
+ businessCategories: string[];
1673
+ merchantCount: number;
1674
+ floorCode: string;
1675
+ }[];
1676
+ }[];
1677
+ }>>;
1678
+ readonly 'nearby-mall-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1679
+ query: zod.ZodOptional<zod.ZodString>;
1680
+ malls: zod.ZodArray<zod.ZodObject<{
1681
+ mallId: zod.ZodString;
1682
+ name: zod.ZodString;
1683
+ address: zod.ZodString;
1684
+ distanceKm: zod.ZodOptional<zod.ZodNumber>;
1685
+ status: zod.ZodObject<{
1686
+ code: zod.ZodEnum<["open", "closed", "unknown"]>;
1687
+ label: zod.ZodString;
1688
+ }, "strip", zod.ZodTypeAny, {
1689
+ code: "unknown" | "open" | "closed";
1690
+ label: string;
1691
+ }, {
1692
+ code: "unknown" | "open" | "closed";
1693
+ label: string;
1694
+ }>;
1695
+ itemActions: zod.ZodArray<zod.ZodObject<{
1696
+ actionId: zod.ZodString;
1697
+ label: zod.ZodString;
1698
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
1699
+ }, "strip", zod.ZodTypeAny, {
1700
+ actionId: string;
1701
+ label: string;
1702
+ input?: Record<string, unknown> | undefined;
1703
+ }, {
1704
+ actionId: string;
1705
+ label: string;
1706
+ input?: Record<string, unknown> | undefined;
1707
+ }>, "many">;
1708
+ }, "strip", zod.ZodTypeAny, {
1709
+ status: {
1710
+ code: "unknown" | "open" | "closed";
1711
+ label: string;
1712
+ };
1713
+ name: string;
1714
+ mallId: string;
1715
+ itemActions: {
1716
+ actionId: string;
1717
+ label: string;
1718
+ input?: Record<string, unknown> | undefined;
1719
+ }[];
1720
+ address: string;
1721
+ distanceKm?: number | undefined;
1722
+ }, {
1723
+ status: {
1724
+ code: "unknown" | "open" | "closed";
1725
+ label: string;
1726
+ };
1727
+ name: string;
1728
+ mallId: string;
1729
+ itemActions: {
1730
+ actionId: string;
1731
+ label: string;
1732
+ input?: Record<string, unknown> | undefined;
1733
+ }[];
1734
+ address: string;
1735
+ distanceKm?: number | undefined;
1736
+ }>, "many">;
1737
+ }, "strip", zod.ZodTypeAny, {
1738
+ malls: {
1739
+ status: {
1740
+ code: "unknown" | "open" | "closed";
1741
+ label: string;
1742
+ };
1743
+ name: string;
1744
+ mallId: string;
1745
+ itemActions: {
1746
+ actionId: string;
1747
+ label: string;
1748
+ input?: Record<string, unknown> | undefined;
1749
+ }[];
1750
+ address: string;
1751
+ distanceKm?: number | undefined;
1752
+ }[];
1753
+ query?: string | undefined;
1754
+ }, {
1755
+ malls: {
1756
+ status: {
1757
+ code: "unknown" | "open" | "closed";
1758
+ label: string;
1759
+ };
1760
+ name: string;
1761
+ mallId: string;
1762
+ itemActions: {
1763
+ actionId: string;
1764
+ label: string;
1765
+ input?: Record<string, unknown> | undefined;
1766
+ }[];
1767
+ address: string;
1768
+ distanceKm?: number | undefined;
1769
+ }[];
1770
+ query?: string | undefined;
1771
+ }>>;
1772
+ readonly 'customer-service-faq': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1773
+ query: zod.ZodString;
1774
+ faqs: zod.ZodArray<zod.ZodObject<{
1775
+ question: zod.ZodString;
1776
+ answer: zod.ZodString;
1777
+ category: zod.ZodOptional<zod.ZodString>;
1778
+ relevanceScore: zod.ZodNumber;
1779
+ }, "strip", zod.ZodTypeAny, {
1780
+ question: string;
1781
+ answer: string;
1782
+ relevanceScore: number;
1783
+ category?: string | undefined;
1784
+ }, {
1785
+ question: string;
1786
+ answer: string;
1787
+ relevanceScore: number;
1788
+ category?: string | undefined;
1789
+ }>, "many">;
1790
+ noResultsReason: zod.ZodOptional<zod.ZodString>;
1791
+ }, "strip", zod.ZodTypeAny, {
1792
+ query: string;
1793
+ faqs: {
1794
+ question: string;
1795
+ answer: string;
1796
+ relevanceScore: number;
1797
+ category?: string | undefined;
1798
+ }[];
1799
+ noResultsReason?: string | undefined;
1800
+ }, {
1801
+ query: string;
1802
+ faqs: {
1803
+ question: string;
1804
+ answer: string;
1805
+ relevanceScore: number;
1806
+ category?: string | undefined;
1807
+ }[];
1808
+ noResultsReason?: string | undefined;
1809
+ }>>;
1810
+ readonly 'human-guide-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1811
+ merchantId: zod.ZodString;
1812
+ merchantName: zod.ZodString;
1813
+ guides: zod.ZodArray<zod.ZodObject<{
1814
+ guideId: zod.ZodString;
1815
+ name: zod.ZodString;
1816
+ title: zod.ZodOptional<zod.ZodString>;
1817
+ avatarUrl: zod.ZodOptional<zod.ZodString>;
1818
+ contactInfo: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1819
+ channel: zod.ZodString;
1820
+ value: zod.ZodString;
1821
+ }, "strip", zod.ZodTypeAny, {
1822
+ value: string;
1823
+ channel: string;
1824
+ }, {
1825
+ value: string;
1826
+ channel: string;
1827
+ }>, "many">>;
1828
+ available: zod.ZodBoolean;
1829
+ itemActions: zod.ZodArray<zod.ZodObject<{
1830
+ actionId: zod.ZodString;
1831
+ label: zod.ZodString;
1832
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
1833
+ }, "strip", zod.ZodTypeAny, {
1834
+ actionId: string;
1835
+ label: string;
1836
+ input?: Record<string, unknown> | undefined;
1837
+ }, {
1838
+ actionId: string;
1839
+ label: string;
1840
+ input?: Record<string, unknown> | undefined;
1841
+ }>, "many">;
1842
+ }, "strip", zod.ZodTypeAny, {
1843
+ name: string;
1844
+ itemActions: {
1845
+ actionId: string;
1846
+ label: string;
1847
+ input?: Record<string, unknown> | undefined;
1848
+ }[];
1849
+ guideId: string;
1850
+ available: boolean;
1851
+ avatarUrl?: string | undefined;
1852
+ contactInfo?: {
1853
+ value: string;
1854
+ channel: string;
1855
+ }[] | undefined;
1856
+ title?: string | undefined;
1857
+ }, {
1858
+ name: string;
1859
+ itemActions: {
1860
+ actionId: string;
1861
+ label: string;
1862
+ input?: Record<string, unknown> | undefined;
1863
+ }[];
1864
+ guideId: string;
1865
+ available: boolean;
1866
+ avatarUrl?: string | undefined;
1867
+ contactInfo?: {
1868
+ value: string;
1869
+ channel: string;
1870
+ }[] | undefined;
1871
+ title?: string | undefined;
1872
+ }>, "many">;
1873
+ }, "strip", zod.ZodTypeAny, {
1874
+ merchantId: string;
1875
+ merchantName: string;
1876
+ guides: {
1877
+ name: string;
1878
+ itemActions: {
1879
+ actionId: string;
1880
+ label: string;
1881
+ input?: Record<string, unknown> | undefined;
1882
+ }[];
1883
+ guideId: string;
1884
+ available: boolean;
1885
+ avatarUrl?: string | undefined;
1886
+ contactInfo?: {
1887
+ value: string;
1888
+ channel: string;
1889
+ }[] | undefined;
1890
+ title?: string | undefined;
1891
+ }[];
1892
+ }, {
1893
+ merchantId: string;
1894
+ merchantName: string;
1895
+ guides: {
1896
+ name: string;
1897
+ itemActions: {
1898
+ actionId: string;
1899
+ label: string;
1900
+ input?: Record<string, unknown> | undefined;
1901
+ }[];
1902
+ guideId: string;
1903
+ available: boolean;
1904
+ avatarUrl?: string | undefined;
1905
+ contactInfo?: {
1906
+ value: string;
1907
+ channel: string;
1908
+ }[] | undefined;
1909
+ title?: string | undefined;
1910
+ }[];
1911
+ }>>;
1912
+ readonly 'location-handoff': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1913
+ merchantId: zod.ZodString;
1914
+ merchantName: zod.ZodString;
1915
+ location: zod.ZodObject<{
1916
+ buildingName: zod.ZodOptional<zod.ZodString>;
1917
+ floorName: zod.ZodOptional<zod.ZodString>;
1918
+ unitName: zod.ZodOptional<zod.ZodString>;
1919
+ displayText: zod.ZodString;
1920
+ poiId: zod.ZodOptional<zod.ZodString>;
1921
+ }, "strip", zod.ZodTypeAny, {
1922
+ displayText: string;
1923
+ buildingName?: string | undefined;
1924
+ floorName?: string | undefined;
1925
+ unitName?: string | undefined;
1926
+ poiId?: string | undefined;
1927
+ }, {
1928
+ displayText: string;
1929
+ buildingName?: string | undefined;
1930
+ floorName?: string | undefined;
1931
+ unitName?: string | undefined;
1932
+ poiId?: string | undefined;
1933
+ }>;
1934
+ mapUrl: zod.ZodOptional<zod.ZodString>;
1935
+ navigation: zod.ZodOptional<zod.ZodObject<{
1936
+ provider: zod.ZodEnum<["amap", "builtin"]>;
1937
+ launchParams: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
1938
+ }, "strip", zod.ZodTypeAny, {
1939
+ provider: "amap" | "builtin";
1940
+ launchParams?: Record<string, string> | undefined;
1941
+ }, {
1942
+ provider: "amap" | "builtin";
1943
+ launchParams?: Record<string, string> | undefined;
1944
+ }>>;
1945
+ itemActions: zod.ZodArray<zod.ZodObject<{
1946
+ actionId: zod.ZodString;
1947
+ label: zod.ZodString;
1948
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
1949
+ }, "strip", zod.ZodTypeAny, {
1950
+ actionId: string;
1951
+ label: string;
1952
+ input?: Record<string, unknown> | undefined;
1953
+ }, {
1954
+ actionId: string;
1955
+ label: string;
1956
+ input?: Record<string, unknown> | undefined;
1957
+ }>, "many">;
1958
+ }, "strip", zod.ZodTypeAny, {
1959
+ merchantId: string;
1960
+ location: {
1961
+ displayText: string;
1962
+ buildingName?: string | undefined;
1963
+ floorName?: string | undefined;
1964
+ unitName?: string | undefined;
1965
+ poiId?: string | undefined;
1966
+ };
1967
+ itemActions: {
1968
+ actionId: string;
1969
+ label: string;
1970
+ input?: Record<string, unknown> | undefined;
1971
+ }[];
1972
+ merchantName: string;
1973
+ mapUrl?: string | undefined;
1974
+ navigation?: {
1975
+ provider: "amap" | "builtin";
1976
+ launchParams?: Record<string, string> | undefined;
1977
+ } | undefined;
1978
+ }, {
1979
+ merchantId: string;
1980
+ location: {
1981
+ displayText: string;
1982
+ buildingName?: string | undefined;
1983
+ floorName?: string | undefined;
1984
+ unitName?: string | undefined;
1985
+ poiId?: string | undefined;
1986
+ };
1987
+ itemActions: {
1988
+ actionId: string;
1989
+ label: string;
1990
+ input?: Record<string, unknown> | undefined;
1991
+ }[];
1992
+ merchantName: string;
1993
+ mapUrl?: string | undefined;
1994
+ navigation?: {
1995
+ provider: "amap" | "builtin";
1996
+ launchParams?: Record<string, string> | undefined;
1997
+ } | undefined;
1998
+ }>>;
1999
+ };
2000
+
2001
+ type ShoppingGuideToolIds = 'recommend' | 'search-products' | 'product-facets' | 'get-product' | 'compare-products' | 'search-merchants' | 'get-merchant' | 'mall-directory' | 'get-location' | 'list-human-guides' | 'list-browsing-history' | 'list-nearby-malls' | 'list-categories' | 'search-knowledge' | 'customer-service-faq';
2002
+ declare function createShoppingGuideTools(opts: {
2003
+ /** 注册期绑定的 ServerContext 读取器(模块顶层单例持有;execute 内获取) */
2004
+ getCtx: () => ServerContext;
2005
+ }): {
2006
+ readonly recommend: _mastra_core_tools.Tool<{
2007
+ query: string;
2008
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "recommend", unknown>;
2009
+ readonly searchProducts: _mastra_core_tools.Tool<{
2010
+ keywords: string[];
2011
+ pageSize?: string | undefined;
2012
+ page?: string | undefined;
2013
+ minPriceMinor?: string | undefined;
2014
+ maxPriceMinor?: string | undefined;
2015
+ categoryCode?: string | undefined;
2016
+ brandCode?: string | undefined;
2017
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "search-products", unknown>;
2018
+ readonly productFacets: _mastra_core_tools.Tool<{
2019
+ minPriceMinor?: string | undefined;
2020
+ maxPriceMinor?: string | undefined;
2021
+ keyword?: string | undefined;
2022
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "product-facets", unknown>;
2023
+ readonly getProduct: _mastra_core_tools.Tool<{
2024
+ productId: string;
2025
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "get-product", unknown>;
2026
+ readonly compareProducts: _mastra_core_tools.Tool<{
2027
+ productIds: string[];
2028
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "compare-products", unknown>;
2029
+ readonly searchMerchants: _mastra_core_tools.Tool<{
2030
+ keywords: string[];
2031
+ pageSize?: string | undefined;
2032
+ page?: string | undefined;
2033
+ buildingCode?: string | undefined;
2034
+ floorCode?: string | undefined;
2035
+ businessCategory?: string | undefined;
2036
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "search-merchants", unknown>;
2037
+ readonly getMerchant: _mastra_core_tools.Tool<{
2038
+ merchantId: string;
2039
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "get-merchant", unknown>;
2040
+ readonly mallDirectory: _mastra_core_tools.Tool<{}, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "mall-directory", unknown>;
2041
+ readonly getLocation: _mastra_core_tools.Tool<{
2042
+ merchantId: string;
2043
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "get-location", unknown>;
2044
+ readonly listHumanGuides: _mastra_core_tools.Tool<{
2045
+ merchantId: string;
2046
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "list-human-guides", unknown>;
2047
+ readonly listBrowsingHistory: _mastra_core_tools.Tool<{
2048
+ pageSize?: string | undefined;
2049
+ page?: string | undefined;
2050
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "list-browsing-history", unknown>;
2051
+ readonly listNearbyMalls: _mastra_core_tools.Tool<{
2052
+ query?: string | undefined;
2053
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "list-nearby-malls", unknown>;
2054
+ readonly listCategories: _mastra_core_tools.Tool<{}, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "list-categories", unknown>;
2055
+ readonly searchKnowledge: _mastra_core_tools.Tool<{
2056
+ query: string;
2057
+ topK?: string | undefined;
2058
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "search-knowledge", unknown>;
2059
+ readonly customerServiceFaq: _mastra_core_tools.Tool<{
2060
+ query: string;
2061
+ topK?: string | undefined;
2062
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "customer-service-faq", unknown>;
2063
+ };
2064
+ type ShoppingGuideTools = ReturnType<typeof createShoppingGuideTools>;
2065
+
2066
+ /**
2067
+ * 导购 Port 聚合(011 S7):joycity adapter + 本地 adapter 组合。
2068
+ * 模块内工具经 resolveShoppingPorts(ctx) 解析;服务实例模块包顶层单例。
2069
+ */
2070
+
2071
+ declare const SHOPPING_GUIDE_PROVIDER_TEMPLATE_ID = "joycity-commercial@1";
2072
+ interface ShoppingGuidePorts {
2073
+ catalog: CatalogQueryPort;
2074
+ merchant: MerchantDirectoryQueryPort;
2075
+ category: CommercialCategoryQueryPort;
2076
+ directory: MallDirectoryQueryPort;
2077
+ assistance: AssistanceQueryPort;
2078
+ navigation: NavigationPort;
2079
+ }
2080
+ /**
2081
+ * 解析导购 Port 集合(运行期调用;register 只注册不解析——铁律)。
2082
+ * - providers 注入(模板装配):走 ctx.providers.resolve(SDK 缓存 transport);
2083
+ * - 未装配 providers(模块单测/本地演示):本地知识库 + 空数据 adapter。
2084
+ */
2085
+ declare function resolveShoppingGuidePorts(ctx: ServerContext): Promise<ShoppingGuidePorts>;
2086
+
2087
+ declare const joycityCSignedAuthStrategy: ProviderAuthStrategy;
2088
+ declare function computeJoyCityCSign(publicKey: string, timestamp: string, bodyJson: string, privateKey: string): string;
2089
+
2090
+ declare const serverModule: {
2091
+ declaration: {
2092
+ componentId: string;
2093
+ features: string[];
2094
+ };
2095
+ cards: {
2096
+ 'product-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
2097
+ context: zod.ZodEnum<["recommendation", "search", "similar", "history"]>;
2098
+ summary: zod.ZodOptional<zod.ZodString>;
2099
+ items: zod.ZodArray<zod.ZodObject<{
2100
+ productId: zod.ZodString;
2101
+ name: zod.ZodString;
2102
+ imageUrl: zod.ZodOptional<zod.ZodString>;
2103
+ brand: zod.ZodOptional<zod.ZodString>;
2104
+ categoryPath: zod.ZodArray<zod.ZodString, "many">;
2105
+ price: zod.ZodObject<{
2106
+ sale: zod.ZodOptional<zod.ZodObject<{
2107
+ currency: zod.ZodLiteral<"CNY">;
2108
+ amountMinor: zod.ZodNumber;
2109
+ display: zod.ZodString;
2110
+ }, "strip", zod.ZodTypeAny, {
2111
+ display: string;
2112
+ currency: "CNY";
2113
+ amountMinor: number;
2114
+ }, {
2115
+ display: string;
2116
+ currency: "CNY";
2117
+ amountMinor: number;
2118
+ }>>;
2119
+ original: zod.ZodOptional<zod.ZodObject<{
2120
+ currency: zod.ZodLiteral<"CNY">;
2121
+ amountMinor: zod.ZodNumber;
2122
+ display: zod.ZodString;
2123
+ }, "strip", zod.ZodTypeAny, {
2124
+ display: string;
2125
+ currency: "CNY";
2126
+ amountMinor: number;
2127
+ }, {
2128
+ display: string;
2129
+ currency: "CNY";
2130
+ amountMinor: number;
2131
+ }>>;
2132
+ promotion: zod.ZodOptional<zod.ZodObject<{
2133
+ currency: zod.ZodLiteral<"CNY">;
2134
+ amountMinor: zod.ZodNumber;
2135
+ display: zod.ZodString;
2136
+ }, "strip", zod.ZodTypeAny, {
2137
+ display: string;
2138
+ currency: "CNY";
2139
+ amountMinor: number;
2140
+ }, {
2141
+ display: string;
2142
+ currency: "CNY";
2143
+ amountMinor: number;
2144
+ }>>;
2145
+ }, "strip", zod.ZodTypeAny, {
2146
+ sale?: {
2147
+ display: string;
2148
+ currency: "CNY";
2149
+ amountMinor: number;
2150
+ } | undefined;
2151
+ original?: {
2152
+ display: string;
2153
+ currency: "CNY";
2154
+ amountMinor: number;
2155
+ } | undefined;
2156
+ promotion?: {
2157
+ display: string;
2158
+ currency: "CNY";
2159
+ amountMinor: number;
2160
+ } | undefined;
2161
+ }, {
2162
+ sale?: {
2163
+ display: string;
2164
+ currency: "CNY";
2165
+ amountMinor: number;
2166
+ } | undefined;
2167
+ original?: {
2168
+ display: string;
2169
+ currency: "CNY";
2170
+ amountMinor: number;
2171
+ } | undefined;
2172
+ promotion?: {
2173
+ display: string;
2174
+ currency: "CNY";
2175
+ amountMinor: number;
2176
+ } | undefined;
2177
+ }>;
2178
+ availability: zod.ZodObject<{
2179
+ status: zod.ZodEnum<["in_stock", "out_of_stock", "limited", "unknown"]>;
2180
+ label: zod.ZodString;
2181
+ marketable: zod.ZodBoolean;
2182
+ observedAt: zod.ZodString;
2183
+ }, "strip", zod.ZodTypeAny, {
2184
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
2185
+ label: string;
2186
+ observedAt: string;
2187
+ marketable: boolean;
2188
+ }, {
2189
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
2190
+ label: string;
2191
+ observedAt: string;
2192
+ marketable: boolean;
2193
+ }>;
2194
+ merchant: zod.ZodObject<{
2195
+ merchantId: zod.ZodString;
2196
+ name: zod.ZodString;
2197
+ location: zod.ZodOptional<zod.ZodObject<{
2198
+ buildingName: zod.ZodOptional<zod.ZodString>;
2199
+ floorName: zod.ZodOptional<zod.ZodString>;
2200
+ unitName: zod.ZodOptional<zod.ZodString>;
2201
+ displayText: zod.ZodString;
2202
+ poiId: zod.ZodOptional<zod.ZodString>;
2203
+ }, "strip", zod.ZodTypeAny, {
2204
+ displayText: string;
2205
+ buildingName?: string | undefined;
2206
+ floorName?: string | undefined;
2207
+ unitName?: string | undefined;
2208
+ poiId?: string | undefined;
2209
+ }, {
2210
+ displayText: string;
2211
+ buildingName?: string | undefined;
2212
+ floorName?: string | undefined;
2213
+ unitName?: string | undefined;
2214
+ poiId?: string | undefined;
2215
+ }>>;
2216
+ }, "strip", zod.ZodTypeAny, {
2217
+ name: string;
2218
+ merchantId: string;
2219
+ location?: {
2220
+ displayText: string;
2221
+ buildingName?: string | undefined;
2222
+ floorName?: string | undefined;
2223
+ unitName?: string | undefined;
2224
+ poiId?: string | undefined;
2225
+ } | undefined;
2226
+ }, {
2227
+ name: string;
2228
+ merchantId: string;
2229
+ location?: {
2230
+ displayText: string;
2231
+ buildingName?: string | undefined;
2232
+ floorName?: string | undefined;
2233
+ unitName?: string | undefined;
2234
+ poiId?: string | undefined;
2235
+ } | undefined;
2236
+ }>;
2237
+ badges: zod.ZodArray<zod.ZodString, "many">;
2238
+ reasons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2239
+ code: zod.ZodString;
2240
+ label: zod.ZodString;
2241
+ }, "strip", zod.ZodTypeAny, {
2242
+ code: string;
2243
+ label: string;
2244
+ }, {
2245
+ code: string;
2246
+ label: string;
2247
+ }>, "many">>;
2248
+ evidence: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2249
+ code: zod.ZodString;
2250
+ label: zod.ZodString;
2251
+ value: zod.ZodOptional<zod.ZodString>;
2252
+ observedAt: zod.ZodString;
2253
+ expiresAt: zod.ZodOptional<zod.ZodString>;
2254
+ sourceKind: zod.ZodEnum<["catalog", "merchant", "mall", "policy"]>;
2255
+ }, "strip", zod.ZodTypeAny, {
2256
+ code: string;
2257
+ label: string;
2258
+ observedAt: string;
2259
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2260
+ value?: string | undefined;
2261
+ expiresAt?: string | undefined;
2262
+ }, {
2263
+ code: string;
2264
+ label: string;
2265
+ observedAt: string;
2266
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2267
+ value?: string | undefined;
2268
+ expiresAt?: string | undefined;
2269
+ }>, "many">>;
2270
+ caveats: zod.ZodArray<zod.ZodString, "many">;
2271
+ itemActions: zod.ZodArray<zod.ZodObject<{
2272
+ actionId: zod.ZodString;
2273
+ label: zod.ZodString;
2274
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2275
+ }, "strip", zod.ZodTypeAny, {
2276
+ actionId: string;
2277
+ label: string;
2278
+ input?: Record<string, unknown> | undefined;
2279
+ }, {
2280
+ actionId: string;
2281
+ label: string;
2282
+ input?: Record<string, unknown> | undefined;
2283
+ }>, "many">;
2284
+ }, "strip", zod.ZodTypeAny, {
2285
+ name: string;
2286
+ merchant: {
2287
+ name: string;
2288
+ merchantId: string;
2289
+ location?: {
2290
+ displayText: string;
2291
+ buildingName?: string | undefined;
2292
+ floorName?: string | undefined;
2293
+ unitName?: string | undefined;
2294
+ poiId?: string | undefined;
2295
+ } | undefined;
2296
+ };
2297
+ productId: string;
2298
+ categoryPath: string[];
2299
+ price: {
2300
+ sale?: {
2301
+ display: string;
2302
+ currency: "CNY";
2303
+ amountMinor: number;
2304
+ } | undefined;
2305
+ original?: {
2306
+ display: string;
2307
+ currency: "CNY";
2308
+ amountMinor: number;
2309
+ } | undefined;
2310
+ promotion?: {
2311
+ display: string;
2312
+ currency: "CNY";
2313
+ amountMinor: number;
2314
+ } | undefined;
2315
+ };
2316
+ availability: {
2317
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
2318
+ label: string;
2319
+ observedAt: string;
2320
+ marketable: boolean;
2321
+ };
2322
+ badges: string[];
2323
+ caveats: string[];
2324
+ itemActions: {
2325
+ actionId: string;
2326
+ label: string;
2327
+ input?: Record<string, unknown> | undefined;
2328
+ }[];
2329
+ brand?: string | undefined;
2330
+ imageUrl?: string | undefined;
2331
+ reasons?: {
2332
+ code: string;
2333
+ label: string;
2334
+ }[] | undefined;
2335
+ evidence?: {
2336
+ code: string;
2337
+ label: string;
2338
+ observedAt: string;
2339
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2340
+ value?: string | undefined;
2341
+ expiresAt?: string | undefined;
2342
+ }[] | undefined;
2343
+ }, {
2344
+ name: string;
2345
+ merchant: {
2346
+ name: string;
2347
+ merchantId: string;
2348
+ location?: {
2349
+ displayText: string;
2350
+ buildingName?: string | undefined;
2351
+ floorName?: string | undefined;
2352
+ unitName?: string | undefined;
2353
+ poiId?: string | undefined;
2354
+ } | undefined;
2355
+ };
2356
+ productId: string;
2357
+ categoryPath: string[];
2358
+ price: {
2359
+ sale?: {
2360
+ display: string;
2361
+ currency: "CNY";
2362
+ amountMinor: number;
2363
+ } | undefined;
2364
+ original?: {
2365
+ display: string;
2366
+ currency: "CNY";
2367
+ amountMinor: number;
2368
+ } | undefined;
2369
+ promotion?: {
2370
+ display: string;
2371
+ currency: "CNY";
2372
+ amountMinor: number;
2373
+ } | undefined;
2374
+ };
2375
+ availability: {
2376
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
2377
+ label: string;
2378
+ observedAt: string;
2379
+ marketable: boolean;
2380
+ };
2381
+ badges: string[];
2382
+ caveats: string[];
2383
+ itemActions: {
2384
+ actionId: string;
2385
+ label: string;
2386
+ input?: Record<string, unknown> | undefined;
2387
+ }[];
2388
+ brand?: string | undefined;
2389
+ imageUrl?: string | undefined;
2390
+ reasons?: {
2391
+ code: string;
2392
+ label: string;
2393
+ }[] | undefined;
2394
+ evidence?: {
2395
+ code: string;
2396
+ label: string;
2397
+ observedAt: string;
2398
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2399
+ value?: string | undefined;
2400
+ expiresAt?: string | undefined;
2401
+ }[] | undefined;
2402
+ }>, "many">;
2403
+ noResultsReason: zod.ZodOptional<zod.ZodString>;
2404
+ pageInfo: zod.ZodOptional<zod.ZodObject<{
2405
+ page: zod.ZodNumber;
2406
+ pageSize: zod.ZodNumber;
2407
+ total: zod.ZodNumber;
2408
+ hasMore: zod.ZodBoolean;
2409
+ }, "strip", zod.ZodTypeAny, {
2410
+ pageSize: number;
2411
+ page: number;
2412
+ total: number;
2413
+ hasMore: boolean;
2414
+ }, {
2415
+ pageSize: number;
2416
+ page: number;
2417
+ total: number;
2418
+ hasMore: boolean;
2419
+ }>>;
2420
+ refinements: zod.ZodArray<zod.ZodObject<{
2421
+ label: zod.ZodString;
2422
+ queryText: zod.ZodString;
2423
+ }, "strip", zod.ZodTypeAny, {
2424
+ label: string;
2425
+ queryText: string;
2426
+ }, {
2427
+ label: string;
2428
+ queryText: string;
2429
+ }>, "many">;
2430
+ }, "strip", zod.ZodTypeAny, {
2431
+ context: "search" | "history" | "recommendation" | "similar";
2432
+ items: {
2433
+ name: string;
2434
+ merchant: {
2435
+ name: string;
2436
+ merchantId: string;
2437
+ location?: {
2438
+ displayText: string;
2439
+ buildingName?: string | undefined;
2440
+ floorName?: string | undefined;
2441
+ unitName?: string | undefined;
2442
+ poiId?: string | undefined;
2443
+ } | undefined;
2444
+ };
2445
+ productId: string;
2446
+ categoryPath: string[];
2447
+ price: {
2448
+ sale?: {
2449
+ display: string;
2450
+ currency: "CNY";
2451
+ amountMinor: number;
2452
+ } | undefined;
2453
+ original?: {
2454
+ display: string;
2455
+ currency: "CNY";
2456
+ amountMinor: number;
2457
+ } | undefined;
2458
+ promotion?: {
2459
+ display: string;
2460
+ currency: "CNY";
2461
+ amountMinor: number;
2462
+ } | undefined;
2463
+ };
2464
+ availability: {
2465
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
2466
+ label: string;
2467
+ observedAt: string;
2468
+ marketable: boolean;
2469
+ };
2470
+ badges: string[];
2471
+ caveats: string[];
2472
+ itemActions: {
2473
+ actionId: string;
2474
+ label: string;
2475
+ input?: Record<string, unknown> | undefined;
2476
+ }[];
2477
+ brand?: string | undefined;
2478
+ imageUrl?: string | undefined;
2479
+ reasons?: {
2480
+ code: string;
2481
+ label: string;
2482
+ }[] | undefined;
2483
+ evidence?: {
2484
+ code: string;
2485
+ label: string;
2486
+ observedAt: string;
2487
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2488
+ value?: string | undefined;
2489
+ expiresAt?: string | undefined;
2490
+ }[] | undefined;
2491
+ }[];
2492
+ refinements: {
2493
+ label: string;
2494
+ queryText: string;
2495
+ }[];
2496
+ summary?: string | undefined;
2497
+ noResultsReason?: string | undefined;
2498
+ pageInfo?: {
2499
+ pageSize: number;
2500
+ page: number;
2501
+ total: number;
2502
+ hasMore: boolean;
2503
+ } | undefined;
2504
+ }, {
2505
+ context: "search" | "history" | "recommendation" | "similar";
2506
+ items: {
2507
+ name: string;
2508
+ merchant: {
2509
+ name: string;
2510
+ merchantId: string;
2511
+ location?: {
2512
+ displayText: string;
2513
+ buildingName?: string | undefined;
2514
+ floorName?: string | undefined;
2515
+ unitName?: string | undefined;
2516
+ poiId?: string | undefined;
2517
+ } | undefined;
2518
+ };
2519
+ productId: string;
2520
+ categoryPath: string[];
2521
+ price: {
2522
+ sale?: {
2523
+ display: string;
2524
+ currency: "CNY";
2525
+ amountMinor: number;
2526
+ } | undefined;
2527
+ original?: {
2528
+ display: string;
2529
+ currency: "CNY";
2530
+ amountMinor: number;
2531
+ } | undefined;
2532
+ promotion?: {
2533
+ display: string;
2534
+ currency: "CNY";
2535
+ amountMinor: number;
2536
+ } | undefined;
2537
+ };
2538
+ availability: {
2539
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
2540
+ label: string;
2541
+ observedAt: string;
2542
+ marketable: boolean;
2543
+ };
2544
+ badges: string[];
2545
+ caveats: string[];
2546
+ itemActions: {
2547
+ actionId: string;
2548
+ label: string;
2549
+ input?: Record<string, unknown> | undefined;
2550
+ }[];
2551
+ brand?: string | undefined;
2552
+ imageUrl?: string | undefined;
2553
+ reasons?: {
2554
+ code: string;
2555
+ label: string;
2556
+ }[] | undefined;
2557
+ evidence?: {
2558
+ code: string;
2559
+ label: string;
2560
+ observedAt: string;
2561
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2562
+ value?: string | undefined;
2563
+ expiresAt?: string | undefined;
2564
+ }[] | undefined;
2565
+ }[];
2566
+ refinements: {
2567
+ label: string;
2568
+ queryText: string;
2569
+ }[];
2570
+ summary?: string | undefined;
2571
+ noResultsReason?: string | undefined;
2572
+ pageInfo?: {
2573
+ pageSize: number;
2574
+ page: number;
2575
+ total: number;
2576
+ hasMore: boolean;
2577
+ } | undefined;
2578
+ }>>;
2579
+ 'product-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
2580
+ productId: zod.ZodString;
2581
+ name: zod.ZodString;
2582
+ description: zod.ZodOptional<zod.ZodString>;
2583
+ imageUrls: zod.ZodArray<zod.ZodString, "many">;
2584
+ brand: zod.ZodOptional<zod.ZodString>;
2585
+ categoryPath: zod.ZodArray<zod.ZodString, "many">;
2586
+ price: zod.ZodObject<{
2587
+ sale: zod.ZodOptional<zod.ZodObject<{
2588
+ currency: zod.ZodLiteral<"CNY">;
2589
+ amountMinor: zod.ZodNumber;
2590
+ display: zod.ZodString;
2591
+ }, "strip", zod.ZodTypeAny, {
2592
+ display: string;
2593
+ currency: "CNY";
2594
+ amountMinor: number;
2595
+ }, {
2596
+ display: string;
2597
+ currency: "CNY";
2598
+ amountMinor: number;
2599
+ }>>;
2600
+ original: zod.ZodOptional<zod.ZodObject<{
2601
+ currency: zod.ZodLiteral<"CNY">;
2602
+ amountMinor: zod.ZodNumber;
2603
+ display: zod.ZodString;
2604
+ }, "strip", zod.ZodTypeAny, {
2605
+ display: string;
2606
+ currency: "CNY";
2607
+ amountMinor: number;
2608
+ }, {
2609
+ display: string;
2610
+ currency: "CNY";
2611
+ amountMinor: number;
2612
+ }>>;
2613
+ promotion: zod.ZodOptional<zod.ZodObject<{
2614
+ currency: zod.ZodLiteral<"CNY">;
2615
+ amountMinor: zod.ZodNumber;
2616
+ display: zod.ZodString;
2617
+ }, "strip", zod.ZodTypeAny, {
2618
+ display: string;
2619
+ currency: "CNY";
2620
+ amountMinor: number;
2621
+ }, {
2622
+ display: string;
2623
+ currency: "CNY";
2624
+ amountMinor: number;
2625
+ }>>;
2626
+ }, "strip", zod.ZodTypeAny, {
2627
+ sale?: {
2628
+ display: string;
2629
+ currency: "CNY";
2630
+ amountMinor: number;
2631
+ } | undefined;
2632
+ original?: {
2633
+ display: string;
2634
+ currency: "CNY";
2635
+ amountMinor: number;
2636
+ } | undefined;
2637
+ promotion?: {
2638
+ display: string;
2639
+ currency: "CNY";
2640
+ amountMinor: number;
2641
+ } | undefined;
2642
+ }, {
2643
+ sale?: {
2644
+ display: string;
2645
+ currency: "CNY";
2646
+ amountMinor: number;
2647
+ } | undefined;
2648
+ original?: {
2649
+ display: string;
2650
+ currency: "CNY";
2651
+ amountMinor: number;
2652
+ } | undefined;
2653
+ promotion?: {
2654
+ display: string;
2655
+ currency: "CNY";
2656
+ amountMinor: number;
2657
+ } | undefined;
2658
+ }>;
2659
+ availability: zod.ZodObject<{
2660
+ status: zod.ZodEnum<["in_stock", "out_of_stock", "limited", "unknown"]>;
2661
+ label: zod.ZodString;
2662
+ marketable: zod.ZodBoolean;
2663
+ observedAt: zod.ZodString;
2664
+ }, "strip", zod.ZodTypeAny, {
2665
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
2666
+ label: string;
2667
+ observedAt: string;
2668
+ marketable: boolean;
2669
+ }, {
2670
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
2671
+ label: string;
2672
+ observedAt: string;
2673
+ marketable: boolean;
2674
+ }>;
2675
+ merchant: zod.ZodObject<{
2676
+ merchantId: zod.ZodString;
2677
+ name: zod.ZodString;
2678
+ location: zod.ZodOptional<zod.ZodObject<{
2679
+ buildingName: zod.ZodOptional<zod.ZodString>;
2680
+ floorName: zod.ZodOptional<zod.ZodString>;
2681
+ unitName: zod.ZodOptional<zod.ZodString>;
2682
+ displayText: zod.ZodString;
2683
+ poiId: zod.ZodOptional<zod.ZodString>;
2684
+ }, "strip", zod.ZodTypeAny, {
2685
+ displayText: string;
2686
+ buildingName?: string | undefined;
2687
+ floorName?: string | undefined;
2688
+ unitName?: string | undefined;
2689
+ poiId?: string | undefined;
2690
+ }, {
2691
+ displayText: string;
2692
+ buildingName?: string | undefined;
2693
+ floorName?: string | undefined;
2694
+ unitName?: string | undefined;
2695
+ poiId?: string | undefined;
2696
+ }>>;
2697
+ }, "strip", zod.ZodTypeAny, {
2698
+ name: string;
2699
+ merchantId: string;
2700
+ location?: {
2701
+ displayText: string;
2702
+ buildingName?: string | undefined;
2703
+ floorName?: string | undefined;
2704
+ unitName?: string | undefined;
2705
+ poiId?: string | undefined;
2706
+ } | undefined;
2707
+ }, {
2708
+ name: string;
2709
+ merchantId: string;
2710
+ location?: {
2711
+ displayText: string;
2712
+ buildingName?: string | undefined;
2713
+ floorName?: string | undefined;
2714
+ unitName?: string | undefined;
2715
+ poiId?: string | undefined;
2716
+ } | undefined;
2717
+ }>;
2718
+ attributes: zod.ZodArray<zod.ZodObject<{
2719
+ name: zod.ZodString;
2720
+ value: zod.ZodString;
2721
+ }, "strip", zod.ZodTypeAny, {
2722
+ value: string;
2723
+ name: string;
2724
+ }, {
2725
+ value: string;
2726
+ name: string;
2727
+ }>, "many">;
2728
+ promotionFacts: zod.ZodArray<zod.ZodString, "many">;
2729
+ evidence: zod.ZodArray<zod.ZodObject<{
2730
+ code: zod.ZodString;
2731
+ label: zod.ZodString;
2732
+ value: zod.ZodOptional<zod.ZodString>;
2733
+ observedAt: zod.ZodString;
2734
+ expiresAt: zod.ZodOptional<zod.ZodString>;
2735
+ sourceKind: zod.ZodEnum<["catalog", "merchant", "mall", "policy"]>;
2736
+ }, "strip", zod.ZodTypeAny, {
2737
+ code: string;
2738
+ label: string;
2739
+ observedAt: string;
2740
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2741
+ value?: string | undefined;
2742
+ expiresAt?: string | undefined;
2743
+ }, {
2744
+ code: string;
2745
+ label: string;
2746
+ observedAt: string;
2747
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2748
+ value?: string | undefined;
2749
+ expiresAt?: string | undefined;
2750
+ }>, "many">;
2751
+ humanGuideAvailable: zod.ZodBoolean;
2752
+ itemActions: zod.ZodArray<zod.ZodObject<{
2753
+ actionId: zod.ZodString;
2754
+ label: zod.ZodString;
2755
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2756
+ }, "strip", zod.ZodTypeAny, {
2757
+ actionId: string;
2758
+ label: string;
2759
+ input?: Record<string, unknown> | undefined;
2760
+ }, {
2761
+ actionId: string;
2762
+ label: string;
2763
+ input?: Record<string, unknown> | undefined;
2764
+ }>, "many">;
2765
+ }, "strip", zod.ZodTypeAny, {
2766
+ name: string;
2767
+ attributes: {
2768
+ value: string;
2769
+ name: string;
2770
+ }[];
2771
+ merchant: {
2772
+ name: string;
2773
+ merchantId: string;
2774
+ location?: {
2775
+ displayText: string;
2776
+ buildingName?: string | undefined;
2777
+ floorName?: string | undefined;
2778
+ unitName?: string | undefined;
2779
+ poiId?: string | undefined;
2780
+ } | undefined;
2781
+ };
2782
+ productId: string;
2783
+ categoryPath: string[];
2784
+ price: {
2785
+ sale?: {
2786
+ display: string;
2787
+ currency: "CNY";
2788
+ amountMinor: number;
2789
+ } | undefined;
2790
+ original?: {
2791
+ display: string;
2792
+ currency: "CNY";
2793
+ amountMinor: number;
2794
+ } | undefined;
2795
+ promotion?: {
2796
+ display: string;
2797
+ currency: "CNY";
2798
+ amountMinor: number;
2799
+ } | undefined;
2800
+ };
2801
+ availability: {
2802
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
2803
+ label: string;
2804
+ observedAt: string;
2805
+ marketable: boolean;
2806
+ };
2807
+ evidence: {
2808
+ code: string;
2809
+ label: string;
2810
+ observedAt: string;
2811
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2812
+ value?: string | undefined;
2813
+ expiresAt?: string | undefined;
2814
+ }[];
2815
+ itemActions: {
2816
+ actionId: string;
2817
+ label: string;
2818
+ input?: Record<string, unknown> | undefined;
2819
+ }[];
2820
+ promotionFacts: string[];
2821
+ imageUrls: string[];
2822
+ humanGuideAvailable: boolean;
2823
+ description?: string | undefined;
2824
+ brand?: string | undefined;
2825
+ }, {
2826
+ name: string;
2827
+ attributes: {
2828
+ value: string;
2829
+ name: string;
2830
+ }[];
2831
+ merchant: {
2832
+ name: string;
2833
+ merchantId: string;
2834
+ location?: {
2835
+ displayText: string;
2836
+ buildingName?: string | undefined;
2837
+ floorName?: string | undefined;
2838
+ unitName?: string | undefined;
2839
+ poiId?: string | undefined;
2840
+ } | undefined;
2841
+ };
2842
+ productId: string;
2843
+ categoryPath: string[];
2844
+ price: {
2845
+ sale?: {
2846
+ display: string;
2847
+ currency: "CNY";
2848
+ amountMinor: number;
2849
+ } | undefined;
2850
+ original?: {
2851
+ display: string;
2852
+ currency: "CNY";
2853
+ amountMinor: number;
2854
+ } | undefined;
2855
+ promotion?: {
2856
+ display: string;
2857
+ currency: "CNY";
2858
+ amountMinor: number;
2859
+ } | undefined;
2860
+ };
2861
+ availability: {
2862
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
2863
+ label: string;
2864
+ observedAt: string;
2865
+ marketable: boolean;
2866
+ };
2867
+ evidence: {
2868
+ code: string;
2869
+ label: string;
2870
+ observedAt: string;
2871
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2872
+ value?: string | undefined;
2873
+ expiresAt?: string | undefined;
2874
+ }[];
2875
+ itemActions: {
2876
+ actionId: string;
2877
+ label: string;
2878
+ input?: Record<string, unknown> | undefined;
2879
+ }[];
2880
+ promotionFacts: string[];
2881
+ imageUrls: string[];
2882
+ humanGuideAvailable: boolean;
2883
+ description?: string | undefined;
2884
+ brand?: string | undefined;
2885
+ }>>;
2886
+ 'merchant-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
2887
+ context: zod.ZodEnum<["recommendation", "search"]>;
2888
+ summary: zod.ZodOptional<zod.ZodString>;
2889
+ items: zod.ZodArray<zod.ZodObject<{
2890
+ merchantId: zod.ZodString;
2891
+ name: zod.ZodString;
2892
+ logoUrl: zod.ZodOptional<zod.ZodString>;
2893
+ coverUrl: zod.ZodOptional<zod.ZodString>;
2894
+ brand: zod.ZodOptional<zod.ZodString>;
2895
+ businessCategories: zod.ZodArray<zod.ZodString, "many">;
2896
+ location: zod.ZodObject<{
2897
+ buildingName: zod.ZodOptional<zod.ZodString>;
2898
+ floorName: zod.ZodOptional<zod.ZodString>;
2899
+ unitName: zod.ZodOptional<zod.ZodString>;
2900
+ displayText: zod.ZodString;
2901
+ poiId: zod.ZodOptional<zod.ZodString>;
2902
+ }, "strip", zod.ZodTypeAny, {
2903
+ displayText: string;
2904
+ buildingName?: string | undefined;
2905
+ floorName?: string | undefined;
2906
+ unitName?: string | undefined;
2907
+ poiId?: string | undefined;
2908
+ }, {
2909
+ displayText: string;
2910
+ buildingName?: string | undefined;
2911
+ floorName?: string | undefined;
2912
+ unitName?: string | undefined;
2913
+ poiId?: string | undefined;
2914
+ }>;
2915
+ status: zod.ZodObject<{
2916
+ code: zod.ZodEnum<["enabled", "disabled", "unknown"]>;
2917
+ label: zod.ZodString;
2918
+ observedAt: zod.ZodString;
2919
+ }, "strip", zod.ZodTypeAny, {
2920
+ code: "unknown" | "enabled" | "disabled";
2921
+ label: string;
2922
+ observedAt: string;
2923
+ }, {
2924
+ code: "unknown" | "enabled" | "disabled";
2925
+ label: string;
2926
+ observedAt: string;
2927
+ }>;
2928
+ services: zod.ZodArray<zod.ZodString, "many">;
2929
+ promotionFacts: zod.ZodArray<zod.ZodString, "many">;
2930
+ reasons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2931
+ code: zod.ZodString;
2932
+ label: zod.ZodString;
2933
+ }, "strip", zod.ZodTypeAny, {
2934
+ code: string;
2935
+ label: string;
2936
+ }, {
2937
+ code: string;
2938
+ label: string;
2939
+ }>, "many">>;
2940
+ evidence: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2941
+ code: zod.ZodString;
2942
+ label: zod.ZodString;
2943
+ value: zod.ZodOptional<zod.ZodString>;
2944
+ observedAt: zod.ZodString;
2945
+ expiresAt: zod.ZodOptional<zod.ZodString>;
2946
+ sourceKind: zod.ZodEnum<["catalog", "merchant", "mall", "policy"]>;
2947
+ }, "strip", zod.ZodTypeAny, {
2948
+ code: string;
2949
+ label: string;
2950
+ observedAt: string;
2951
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2952
+ value?: string | undefined;
2953
+ expiresAt?: string | undefined;
2954
+ }, {
2955
+ code: string;
2956
+ label: string;
2957
+ observedAt: string;
2958
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
2959
+ value?: string | undefined;
2960
+ expiresAt?: string | undefined;
2961
+ }>, "many">>;
2962
+ itemActions: zod.ZodArray<zod.ZodObject<{
2963
+ actionId: zod.ZodString;
2964
+ label: zod.ZodString;
2965
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2966
+ }, "strip", zod.ZodTypeAny, {
2967
+ actionId: string;
2968
+ label: string;
2969
+ input?: Record<string, unknown> | undefined;
2970
+ }, {
2971
+ actionId: string;
2972
+ label: string;
2973
+ input?: Record<string, unknown> | undefined;
2974
+ }>, "many">;
2975
+ }, "strip", zod.ZodTypeAny, {
2976
+ status: {
2977
+ code: "unknown" | "enabled" | "disabled";
2978
+ label: string;
2979
+ observedAt: string;
2980
+ };
2981
+ name: string;
2982
+ merchantId: string;
2983
+ location: {
2984
+ displayText: string;
2985
+ buildingName?: string | undefined;
2986
+ floorName?: string | undefined;
2987
+ unitName?: string | undefined;
2988
+ poiId?: string | undefined;
2989
+ };
2990
+ itemActions: {
2991
+ actionId: string;
2992
+ label: string;
2993
+ input?: Record<string, unknown> | undefined;
2994
+ }[];
2995
+ businessCategories: string[];
2996
+ services: string[];
2997
+ promotionFacts: string[];
2998
+ brand?: string | undefined;
2999
+ reasons?: {
3000
+ code: string;
3001
+ label: string;
3002
+ }[] | undefined;
3003
+ evidence?: {
3004
+ code: string;
3005
+ label: string;
3006
+ observedAt: string;
3007
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
3008
+ value?: string | undefined;
3009
+ expiresAt?: string | undefined;
3010
+ }[] | undefined;
3011
+ logoUrl?: string | undefined;
3012
+ coverUrl?: string | undefined;
3013
+ }, {
3014
+ status: {
3015
+ code: "unknown" | "enabled" | "disabled";
3016
+ label: string;
3017
+ observedAt: string;
3018
+ };
3019
+ name: string;
3020
+ merchantId: string;
3021
+ location: {
3022
+ displayText: string;
3023
+ buildingName?: string | undefined;
3024
+ floorName?: string | undefined;
3025
+ unitName?: string | undefined;
3026
+ poiId?: string | undefined;
3027
+ };
3028
+ itemActions: {
3029
+ actionId: string;
3030
+ label: string;
3031
+ input?: Record<string, unknown> | undefined;
3032
+ }[];
3033
+ businessCategories: string[];
3034
+ services: string[];
3035
+ promotionFacts: string[];
3036
+ brand?: string | undefined;
3037
+ reasons?: {
3038
+ code: string;
3039
+ label: string;
3040
+ }[] | undefined;
3041
+ evidence?: {
3042
+ code: string;
3043
+ label: string;
3044
+ observedAt: string;
3045
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
3046
+ value?: string | undefined;
3047
+ expiresAt?: string | undefined;
3048
+ }[] | undefined;
3049
+ logoUrl?: string | undefined;
3050
+ coverUrl?: string | undefined;
3051
+ }>, "many">;
3052
+ noResultsReason: zod.ZodOptional<zod.ZodString>;
3053
+ pageInfo: zod.ZodOptional<zod.ZodObject<{
3054
+ page: zod.ZodNumber;
3055
+ pageSize: zod.ZodNumber;
3056
+ total: zod.ZodNumber;
3057
+ hasMore: zod.ZodBoolean;
3058
+ }, "strip", zod.ZodTypeAny, {
3059
+ pageSize: number;
3060
+ page: number;
3061
+ total: number;
3062
+ hasMore: boolean;
3063
+ }, {
3064
+ pageSize: number;
3065
+ page: number;
3066
+ total: number;
3067
+ hasMore: boolean;
3068
+ }>>;
3069
+ refinements: zod.ZodArray<zod.ZodObject<{
3070
+ label: zod.ZodString;
3071
+ queryText: zod.ZodString;
3072
+ }, "strip", zod.ZodTypeAny, {
3073
+ label: string;
3074
+ queryText: string;
3075
+ }, {
3076
+ label: string;
3077
+ queryText: string;
3078
+ }>, "many">;
3079
+ }, "strip", zod.ZodTypeAny, {
3080
+ context: "search" | "recommendation";
3081
+ items: {
3082
+ status: {
3083
+ code: "unknown" | "enabled" | "disabled";
3084
+ label: string;
3085
+ observedAt: string;
3086
+ };
3087
+ name: string;
3088
+ merchantId: string;
3089
+ location: {
3090
+ displayText: string;
3091
+ buildingName?: string | undefined;
3092
+ floorName?: string | undefined;
3093
+ unitName?: string | undefined;
3094
+ poiId?: string | undefined;
3095
+ };
3096
+ itemActions: {
3097
+ actionId: string;
3098
+ label: string;
3099
+ input?: Record<string, unknown> | undefined;
3100
+ }[];
3101
+ businessCategories: string[];
3102
+ services: string[];
3103
+ promotionFacts: string[];
3104
+ brand?: string | undefined;
3105
+ reasons?: {
3106
+ code: string;
3107
+ label: string;
3108
+ }[] | undefined;
3109
+ evidence?: {
3110
+ code: string;
3111
+ label: string;
3112
+ observedAt: string;
3113
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
3114
+ value?: string | undefined;
3115
+ expiresAt?: string | undefined;
3116
+ }[] | undefined;
3117
+ logoUrl?: string | undefined;
3118
+ coverUrl?: string | undefined;
3119
+ }[];
3120
+ refinements: {
3121
+ label: string;
3122
+ queryText: string;
3123
+ }[];
3124
+ summary?: string | undefined;
3125
+ noResultsReason?: string | undefined;
3126
+ pageInfo?: {
3127
+ pageSize: number;
3128
+ page: number;
3129
+ total: number;
3130
+ hasMore: boolean;
3131
+ } | undefined;
3132
+ }, {
3133
+ context: "search" | "recommendation";
3134
+ items: {
3135
+ status: {
3136
+ code: "unknown" | "enabled" | "disabled";
3137
+ label: string;
3138
+ observedAt: string;
3139
+ };
3140
+ name: string;
3141
+ merchantId: string;
3142
+ location: {
3143
+ displayText: string;
3144
+ buildingName?: string | undefined;
3145
+ floorName?: string | undefined;
3146
+ unitName?: string | undefined;
3147
+ poiId?: string | undefined;
3148
+ };
3149
+ itemActions: {
3150
+ actionId: string;
3151
+ label: string;
3152
+ input?: Record<string, unknown> | undefined;
3153
+ }[];
3154
+ businessCategories: string[];
3155
+ services: string[];
3156
+ promotionFacts: string[];
3157
+ brand?: string | undefined;
3158
+ reasons?: {
3159
+ code: string;
3160
+ label: string;
3161
+ }[] | undefined;
3162
+ evidence?: {
3163
+ code: string;
3164
+ label: string;
3165
+ observedAt: string;
3166
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
3167
+ value?: string | undefined;
3168
+ expiresAt?: string | undefined;
3169
+ }[] | undefined;
3170
+ logoUrl?: string | undefined;
3171
+ coverUrl?: string | undefined;
3172
+ }[];
3173
+ refinements: {
3174
+ label: string;
3175
+ queryText: string;
3176
+ }[];
3177
+ summary?: string | undefined;
3178
+ noResultsReason?: string | undefined;
3179
+ pageInfo?: {
3180
+ pageSize: number;
3181
+ page: number;
3182
+ total: number;
3183
+ hasMore: boolean;
3184
+ } | undefined;
3185
+ }>>;
3186
+ 'merchant-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3187
+ merchantId: zod.ZodString;
3188
+ name: zod.ZodString;
3189
+ logoUrl: zod.ZodOptional<zod.ZodString>;
3190
+ coverUrls: zod.ZodArray<zod.ZodString, "many">;
3191
+ brand: zod.ZodOptional<zod.ZodString>;
3192
+ businessCategories: zod.ZodArray<zod.ZodString, "many">;
3193
+ location: zod.ZodObject<{
3194
+ buildingName: zod.ZodOptional<zod.ZodString>;
3195
+ floorName: zod.ZodOptional<zod.ZodString>;
3196
+ unitName: zod.ZodOptional<zod.ZodString>;
3197
+ displayText: zod.ZodString;
3198
+ poiId: zod.ZodOptional<zod.ZodString>;
3199
+ }, "strip", zod.ZodTypeAny, {
3200
+ displayText: string;
3201
+ buildingName?: string | undefined;
3202
+ floorName?: string | undefined;
3203
+ unitName?: string | undefined;
3204
+ poiId?: string | undefined;
3205
+ }, {
3206
+ displayText: string;
3207
+ buildingName?: string | undefined;
3208
+ floorName?: string | undefined;
3209
+ unitName?: string | undefined;
3210
+ poiId?: string | undefined;
3211
+ }>;
3212
+ status: zod.ZodObject<{
3213
+ code: zod.ZodEnum<["enabled", "disabled", "unknown"]>;
3214
+ label: zod.ZodString;
3215
+ observedAt: zod.ZodString;
3216
+ }, "strip", zod.ZodTypeAny, {
3217
+ code: "unknown" | "enabled" | "disabled";
3218
+ label: string;
3219
+ observedAt: string;
3220
+ }, {
3221
+ code: "unknown" | "enabled" | "disabled";
3222
+ label: string;
3223
+ observedAt: string;
3224
+ }>;
3225
+ description: zod.ZodOptional<zod.ZodString>;
3226
+ contactInfo: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3227
+ channel: zod.ZodString;
3228
+ value: zod.ZodString;
3229
+ }, "strip", zod.ZodTypeAny, {
3230
+ value: string;
3231
+ channel: string;
3232
+ }, {
3233
+ value: string;
3234
+ channel: string;
3235
+ }>, "many">>;
3236
+ services: zod.ZodArray<zod.ZodString, "many">;
3237
+ promotionFacts: zod.ZodArray<zod.ZodString, "many">;
3238
+ evidence: zod.ZodArray<zod.ZodObject<{
3239
+ code: zod.ZodString;
3240
+ label: zod.ZodString;
3241
+ value: zod.ZodOptional<zod.ZodString>;
3242
+ observedAt: zod.ZodString;
3243
+ expiresAt: zod.ZodOptional<zod.ZodString>;
3244
+ sourceKind: zod.ZodEnum<["catalog", "merchant", "mall", "policy"]>;
3245
+ }, "strip", zod.ZodTypeAny, {
3246
+ code: string;
3247
+ label: string;
3248
+ observedAt: string;
3249
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
3250
+ value?: string | undefined;
3251
+ expiresAt?: string | undefined;
3252
+ }, {
3253
+ code: string;
3254
+ label: string;
3255
+ observedAt: string;
3256
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
3257
+ value?: string | undefined;
3258
+ expiresAt?: string | undefined;
3259
+ }>, "many">;
3260
+ itemActions: zod.ZodArray<zod.ZodObject<{
3261
+ actionId: zod.ZodString;
3262
+ label: zod.ZodString;
3263
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
3264
+ }, "strip", zod.ZodTypeAny, {
3265
+ actionId: string;
3266
+ label: string;
3267
+ input?: Record<string, unknown> | undefined;
3268
+ }, {
3269
+ actionId: string;
3270
+ label: string;
3271
+ input?: Record<string, unknown> | undefined;
3272
+ }>, "many">;
3273
+ }, "strip", zod.ZodTypeAny, {
3274
+ status: {
3275
+ code: "unknown" | "enabled" | "disabled";
3276
+ label: string;
3277
+ observedAt: string;
3278
+ };
3279
+ name: string;
3280
+ merchantId: string;
3281
+ location: {
3282
+ displayText: string;
3283
+ buildingName?: string | undefined;
3284
+ floorName?: string | undefined;
3285
+ unitName?: string | undefined;
3286
+ poiId?: string | undefined;
3287
+ };
3288
+ evidence: {
3289
+ code: string;
3290
+ label: string;
3291
+ observedAt: string;
3292
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
3293
+ value?: string | undefined;
3294
+ expiresAt?: string | undefined;
3295
+ }[];
3296
+ itemActions: {
3297
+ actionId: string;
3298
+ label: string;
3299
+ input?: Record<string, unknown> | undefined;
3300
+ }[];
3301
+ businessCategories: string[];
3302
+ services: string[];
3303
+ promotionFacts: string[];
3304
+ coverUrls: string[];
3305
+ description?: string | undefined;
3306
+ brand?: string | undefined;
3307
+ logoUrl?: string | undefined;
3308
+ contactInfo?: {
3309
+ value: string;
3310
+ channel: string;
3311
+ }[] | undefined;
3312
+ }, {
3313
+ status: {
3314
+ code: "unknown" | "enabled" | "disabled";
3315
+ label: string;
3316
+ observedAt: string;
3317
+ };
3318
+ name: string;
3319
+ merchantId: string;
3320
+ location: {
3321
+ displayText: string;
3322
+ buildingName?: string | undefined;
3323
+ floorName?: string | undefined;
3324
+ unitName?: string | undefined;
3325
+ poiId?: string | undefined;
3326
+ };
3327
+ evidence: {
3328
+ code: string;
3329
+ label: string;
3330
+ observedAt: string;
3331
+ sourceKind: "mall" | "catalog" | "merchant" | "policy";
3332
+ value?: string | undefined;
3333
+ expiresAt?: string | undefined;
3334
+ }[];
3335
+ itemActions: {
3336
+ actionId: string;
3337
+ label: string;
3338
+ input?: Record<string, unknown> | undefined;
3339
+ }[];
3340
+ businessCategories: string[];
3341
+ services: string[];
3342
+ promotionFacts: string[];
3343
+ coverUrls: string[];
3344
+ description?: string | undefined;
3345
+ brand?: string | undefined;
3346
+ logoUrl?: string | undefined;
3347
+ contactInfo?: {
3348
+ value: string;
3349
+ channel: string;
3350
+ }[] | undefined;
3351
+ }>>;
3352
+ 'category-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3353
+ categories: zod.ZodArray<zod.ZodObject<{
3354
+ code: zod.ZodString;
3355
+ name: zod.ZodString;
3356
+ description: zod.ZodOptional<zod.ZodString>;
3357
+ merchantCount: zod.ZodNumber;
3358
+ subCategories: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3359
+ code: zod.ZodString;
3360
+ name: zod.ZodString;
3361
+ merchantCount: zod.ZodNumber;
3362
+ }, "strip", zod.ZodTypeAny, {
3363
+ code: string;
3364
+ name: string;
3365
+ merchantCount: number;
3366
+ }, {
3367
+ code: string;
3368
+ name: string;
3369
+ merchantCount: number;
3370
+ }>, "many">>;
3371
+ }, "strip", zod.ZodTypeAny, {
3372
+ code: string;
3373
+ name: string;
3374
+ merchantCount: number;
3375
+ description?: string | undefined;
3376
+ subCategories?: {
3377
+ code: string;
3378
+ name: string;
3379
+ merchantCount: number;
3380
+ }[] | undefined;
3381
+ }, {
3382
+ code: string;
3383
+ name: string;
3384
+ merchantCount: number;
3385
+ description?: string | undefined;
3386
+ subCategories?: {
3387
+ code: string;
3388
+ name: string;
3389
+ merchantCount: number;
3390
+ }[] | undefined;
3391
+ }>, "many">;
3392
+ observedAt: zod.ZodString;
3393
+ }, "strip", zod.ZodTypeAny, {
3394
+ observedAt: string;
3395
+ categories: {
3396
+ code: string;
3397
+ name: string;
3398
+ merchantCount: number;
3399
+ description?: string | undefined;
3400
+ subCategories?: {
3401
+ code: string;
3402
+ name: string;
3403
+ merchantCount: number;
3404
+ }[] | undefined;
3405
+ }[];
3406
+ }, {
3407
+ observedAt: string;
3408
+ categories: {
3409
+ code: string;
3410
+ name: string;
3411
+ merchantCount: number;
3412
+ description?: string | undefined;
3413
+ subCategories?: {
3414
+ code: string;
3415
+ name: string;
3416
+ merchantCount: number;
3417
+ }[] | undefined;
3418
+ }[];
3419
+ }>>;
3420
+ 'product-comparison': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3421
+ products: zod.ZodArray<zod.ZodObject<{
3422
+ productId: zod.ZodString;
3423
+ name: zod.ZodString;
3424
+ imageUrl: zod.ZodOptional<zod.ZodString>;
3425
+ brand: zod.ZodOptional<zod.ZodString>;
3426
+ price: zod.ZodObject<{
3427
+ sale: zod.ZodOptional<zod.ZodObject<{
3428
+ currency: zod.ZodLiteral<"CNY">;
3429
+ amountMinor: zod.ZodNumber;
3430
+ display: zod.ZodString;
3431
+ }, "strip", zod.ZodTypeAny, {
3432
+ display: string;
3433
+ currency: "CNY";
3434
+ amountMinor: number;
3435
+ }, {
3436
+ display: string;
3437
+ currency: "CNY";
3438
+ amountMinor: number;
3439
+ }>>;
3440
+ original: zod.ZodOptional<zod.ZodObject<{
3441
+ currency: zod.ZodLiteral<"CNY">;
3442
+ amountMinor: zod.ZodNumber;
3443
+ display: zod.ZodString;
3444
+ }, "strip", zod.ZodTypeAny, {
3445
+ display: string;
3446
+ currency: "CNY";
3447
+ amountMinor: number;
3448
+ }, {
3449
+ display: string;
3450
+ currency: "CNY";
3451
+ amountMinor: number;
3452
+ }>>;
3453
+ promotion: zod.ZodOptional<zod.ZodObject<{
3454
+ currency: zod.ZodLiteral<"CNY">;
3455
+ amountMinor: zod.ZodNumber;
3456
+ display: zod.ZodString;
3457
+ }, "strip", zod.ZodTypeAny, {
3458
+ display: string;
3459
+ currency: "CNY";
3460
+ amountMinor: number;
3461
+ }, {
3462
+ display: string;
3463
+ currency: "CNY";
3464
+ amountMinor: number;
3465
+ }>>;
3466
+ }, "strip", zod.ZodTypeAny, {
3467
+ sale?: {
3468
+ display: string;
3469
+ currency: "CNY";
3470
+ amountMinor: number;
3471
+ } | undefined;
3472
+ original?: {
3473
+ display: string;
3474
+ currency: "CNY";
3475
+ amountMinor: number;
3476
+ } | undefined;
3477
+ promotion?: {
3478
+ display: string;
3479
+ currency: "CNY";
3480
+ amountMinor: number;
3481
+ } | undefined;
3482
+ }, {
3483
+ sale?: {
3484
+ display: string;
3485
+ currency: "CNY";
3486
+ amountMinor: number;
3487
+ } | undefined;
3488
+ original?: {
3489
+ display: string;
3490
+ currency: "CNY";
3491
+ amountMinor: number;
3492
+ } | undefined;
3493
+ promotion?: {
3494
+ display: string;
3495
+ currency: "CNY";
3496
+ amountMinor: number;
3497
+ } | undefined;
3498
+ }>;
3499
+ availability: zod.ZodObject<{
3500
+ status: zod.ZodEnum<["in_stock", "out_of_stock", "limited", "unknown"]>;
3501
+ label: zod.ZodString;
3502
+ marketable: zod.ZodBoolean;
3503
+ observedAt: zod.ZodString;
3504
+ }, "strip", zod.ZodTypeAny, {
3505
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
3506
+ label: string;
3507
+ observedAt: string;
3508
+ marketable: boolean;
3509
+ }, {
3510
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
3511
+ label: string;
3512
+ observedAt: string;
3513
+ marketable: boolean;
3514
+ }>;
3515
+ merchant: zod.ZodObject<{
3516
+ merchantId: zod.ZodString;
3517
+ name: zod.ZodString;
3518
+ }, "strip", zod.ZodTypeAny, {
3519
+ name: string;
3520
+ merchantId: string;
3521
+ }, {
3522
+ name: string;
3523
+ merchantId: string;
3524
+ }>;
3525
+ attributes: zod.ZodArray<zod.ZodObject<{
3526
+ name: zod.ZodString;
3527
+ value: zod.ZodString;
3528
+ }, "strip", zod.ZodTypeAny, {
3529
+ value: string;
3530
+ name: string;
3531
+ }, {
3532
+ value: string;
3533
+ name: string;
3534
+ }>, "many">;
3535
+ caveats: zod.ZodArray<zod.ZodString, "many">;
3536
+ }, "strip", zod.ZodTypeAny, {
3537
+ name: string;
3538
+ attributes: {
3539
+ value: string;
3540
+ name: string;
3541
+ }[];
3542
+ merchant: {
3543
+ name: string;
3544
+ merchantId: string;
3545
+ };
3546
+ productId: string;
3547
+ price: {
3548
+ sale?: {
3549
+ display: string;
3550
+ currency: "CNY";
3551
+ amountMinor: number;
3552
+ } | undefined;
3553
+ original?: {
3554
+ display: string;
3555
+ currency: "CNY";
3556
+ amountMinor: number;
3557
+ } | undefined;
3558
+ promotion?: {
3559
+ display: string;
3560
+ currency: "CNY";
3561
+ amountMinor: number;
3562
+ } | undefined;
3563
+ };
3564
+ availability: {
3565
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
3566
+ label: string;
3567
+ observedAt: string;
3568
+ marketable: boolean;
3569
+ };
3570
+ caveats: string[];
3571
+ brand?: string | undefined;
3572
+ imageUrl?: string | undefined;
3573
+ }, {
3574
+ name: string;
3575
+ attributes: {
3576
+ value: string;
3577
+ name: string;
3578
+ }[];
3579
+ merchant: {
3580
+ name: string;
3581
+ merchantId: string;
3582
+ };
3583
+ productId: string;
3584
+ price: {
3585
+ sale?: {
3586
+ display: string;
3587
+ currency: "CNY";
3588
+ amountMinor: number;
3589
+ } | undefined;
3590
+ original?: {
3591
+ display: string;
3592
+ currency: "CNY";
3593
+ amountMinor: number;
3594
+ } | undefined;
3595
+ promotion?: {
3596
+ display: string;
3597
+ currency: "CNY";
3598
+ amountMinor: number;
3599
+ } | undefined;
3600
+ };
3601
+ availability: {
3602
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
3603
+ label: string;
3604
+ observedAt: string;
3605
+ marketable: boolean;
3606
+ };
3607
+ caveats: string[];
3608
+ brand?: string | undefined;
3609
+ imageUrl?: string | undefined;
3610
+ }>, "many">;
3611
+ observedAt: zod.ZodString;
3612
+ }, "strip", zod.ZodTypeAny, {
3613
+ observedAt: string;
3614
+ products: {
3615
+ name: string;
3616
+ attributes: {
3617
+ value: string;
3618
+ name: string;
3619
+ }[];
3620
+ merchant: {
3621
+ name: string;
3622
+ merchantId: string;
3623
+ };
3624
+ productId: string;
3625
+ price: {
3626
+ sale?: {
3627
+ display: string;
3628
+ currency: "CNY";
3629
+ amountMinor: number;
3630
+ } | undefined;
3631
+ original?: {
3632
+ display: string;
3633
+ currency: "CNY";
3634
+ amountMinor: number;
3635
+ } | undefined;
3636
+ promotion?: {
3637
+ display: string;
3638
+ currency: "CNY";
3639
+ amountMinor: number;
3640
+ } | undefined;
3641
+ };
3642
+ availability: {
3643
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
3644
+ label: string;
3645
+ observedAt: string;
3646
+ marketable: boolean;
3647
+ };
3648
+ caveats: string[];
3649
+ brand?: string | undefined;
3650
+ imageUrl?: string | undefined;
3651
+ }[];
3652
+ }, {
3653
+ observedAt: string;
3654
+ products: {
3655
+ name: string;
3656
+ attributes: {
3657
+ value: string;
3658
+ name: string;
3659
+ }[];
3660
+ merchant: {
3661
+ name: string;
3662
+ merchantId: string;
3663
+ };
3664
+ productId: string;
3665
+ price: {
3666
+ sale?: {
3667
+ display: string;
3668
+ currency: "CNY";
3669
+ amountMinor: number;
3670
+ } | undefined;
3671
+ original?: {
3672
+ display: string;
3673
+ currency: "CNY";
3674
+ amountMinor: number;
3675
+ } | undefined;
3676
+ promotion?: {
3677
+ display: string;
3678
+ currency: "CNY";
3679
+ amountMinor: number;
3680
+ } | undefined;
3681
+ };
3682
+ availability: {
3683
+ status: "unknown" | "in_stock" | "out_of_stock" | "limited";
3684
+ label: string;
3685
+ observedAt: string;
3686
+ marketable: boolean;
3687
+ };
3688
+ caveats: string[];
3689
+ brand?: string | undefined;
3690
+ imageUrl?: string | undefined;
3691
+ }[];
3692
+ }>>;
3693
+ 'mall-directory': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3694
+ mallId: zod.ZodString;
3695
+ mallName: zod.ZodString;
3696
+ buildings: zod.ZodArray<zod.ZodObject<{
3697
+ buildingCode: zod.ZodString;
3698
+ buildingName: zod.ZodString;
3699
+ floors: zod.ZodArray<zod.ZodObject<{
3700
+ floorCode: zod.ZodString;
3701
+ floorName: zod.ZodString;
3702
+ businessCategories: zod.ZodArray<zod.ZodString, "many">;
3703
+ merchantCount: zod.ZodNumber;
3704
+ }, "strip", zod.ZodTypeAny, {
3705
+ floorName: string;
3706
+ businessCategories: string[];
3707
+ merchantCount: number;
3708
+ floorCode: string;
3709
+ }, {
3710
+ floorName: string;
3711
+ businessCategories: string[];
3712
+ merchantCount: number;
3713
+ floorCode: string;
3714
+ }>, "many">;
3715
+ }, "strip", zod.ZodTypeAny, {
3716
+ buildingName: string;
3717
+ buildingCode: string;
3718
+ floors: {
3719
+ floorName: string;
3720
+ businessCategories: string[];
3721
+ merchantCount: number;
3722
+ floorCode: string;
3723
+ }[];
3724
+ }, {
3725
+ buildingName: string;
3726
+ buildingCode: string;
3727
+ floors: {
3728
+ floorName: string;
3729
+ businessCategories: string[];
3730
+ merchantCount: number;
3731
+ floorCode: string;
3732
+ }[];
3733
+ }>, "many">;
3734
+ observedAt: zod.ZodString;
3735
+ }, "strip", zod.ZodTypeAny, {
3736
+ mallId: string;
3737
+ observedAt: string;
3738
+ mallName: string;
3739
+ buildings: {
3740
+ buildingName: string;
3741
+ buildingCode: string;
3742
+ floors: {
3743
+ floorName: string;
3744
+ businessCategories: string[];
3745
+ merchantCount: number;
3746
+ floorCode: string;
3747
+ }[];
3748
+ }[];
3749
+ }, {
3750
+ mallId: string;
3751
+ observedAt: string;
3752
+ mallName: string;
3753
+ buildings: {
3754
+ buildingName: string;
3755
+ buildingCode: string;
3756
+ floors: {
3757
+ floorName: string;
3758
+ businessCategories: string[];
3759
+ merchantCount: number;
3760
+ floorCode: string;
3761
+ }[];
3762
+ }[];
3763
+ }>>;
3764
+ 'nearby-mall-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3765
+ query: zod.ZodOptional<zod.ZodString>;
3766
+ malls: zod.ZodArray<zod.ZodObject<{
3767
+ mallId: zod.ZodString;
3768
+ name: zod.ZodString;
3769
+ address: zod.ZodString;
3770
+ distanceKm: zod.ZodOptional<zod.ZodNumber>;
3771
+ status: zod.ZodObject<{
3772
+ code: zod.ZodEnum<["open", "closed", "unknown"]>;
3773
+ label: zod.ZodString;
3774
+ }, "strip", zod.ZodTypeAny, {
3775
+ code: "unknown" | "open" | "closed";
3776
+ label: string;
3777
+ }, {
3778
+ code: "unknown" | "open" | "closed";
3779
+ label: string;
3780
+ }>;
3781
+ itemActions: zod.ZodArray<zod.ZodObject<{
3782
+ actionId: zod.ZodString;
3783
+ label: zod.ZodString;
3784
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
3785
+ }, "strip", zod.ZodTypeAny, {
3786
+ actionId: string;
3787
+ label: string;
3788
+ input?: Record<string, unknown> | undefined;
3789
+ }, {
3790
+ actionId: string;
3791
+ label: string;
3792
+ input?: Record<string, unknown> | undefined;
3793
+ }>, "many">;
3794
+ }, "strip", zod.ZodTypeAny, {
3795
+ status: {
3796
+ code: "unknown" | "open" | "closed";
3797
+ label: string;
3798
+ };
3799
+ name: string;
3800
+ mallId: string;
3801
+ itemActions: {
3802
+ actionId: string;
3803
+ label: string;
3804
+ input?: Record<string, unknown> | undefined;
3805
+ }[];
3806
+ address: string;
3807
+ distanceKm?: number | undefined;
3808
+ }, {
3809
+ status: {
3810
+ code: "unknown" | "open" | "closed";
3811
+ label: string;
3812
+ };
3813
+ name: string;
3814
+ mallId: string;
3815
+ itemActions: {
3816
+ actionId: string;
3817
+ label: string;
3818
+ input?: Record<string, unknown> | undefined;
3819
+ }[];
3820
+ address: string;
3821
+ distanceKm?: number | undefined;
3822
+ }>, "many">;
3823
+ }, "strip", zod.ZodTypeAny, {
3824
+ malls: {
3825
+ status: {
3826
+ code: "unknown" | "open" | "closed";
3827
+ label: string;
3828
+ };
3829
+ name: string;
3830
+ mallId: string;
3831
+ itemActions: {
3832
+ actionId: string;
3833
+ label: string;
3834
+ input?: Record<string, unknown> | undefined;
3835
+ }[];
3836
+ address: string;
3837
+ distanceKm?: number | undefined;
3838
+ }[];
3839
+ query?: string | undefined;
3840
+ }, {
3841
+ malls: {
3842
+ status: {
3843
+ code: "unknown" | "open" | "closed";
3844
+ label: string;
3845
+ };
3846
+ name: string;
3847
+ mallId: string;
3848
+ itemActions: {
3849
+ actionId: string;
3850
+ label: string;
3851
+ input?: Record<string, unknown> | undefined;
3852
+ }[];
3853
+ address: string;
3854
+ distanceKm?: number | undefined;
3855
+ }[];
3856
+ query?: string | undefined;
3857
+ }>>;
3858
+ 'customer-service-faq': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3859
+ query: zod.ZodString;
3860
+ faqs: zod.ZodArray<zod.ZodObject<{
3861
+ question: zod.ZodString;
3862
+ answer: zod.ZodString;
3863
+ category: zod.ZodOptional<zod.ZodString>;
3864
+ relevanceScore: zod.ZodNumber;
3865
+ }, "strip", zod.ZodTypeAny, {
3866
+ question: string;
3867
+ answer: string;
3868
+ relevanceScore: number;
3869
+ category?: string | undefined;
3870
+ }, {
3871
+ question: string;
3872
+ answer: string;
3873
+ relevanceScore: number;
3874
+ category?: string | undefined;
3875
+ }>, "many">;
3876
+ noResultsReason: zod.ZodOptional<zod.ZodString>;
3877
+ }, "strip", zod.ZodTypeAny, {
3878
+ query: string;
3879
+ faqs: {
3880
+ question: string;
3881
+ answer: string;
3882
+ relevanceScore: number;
3883
+ category?: string | undefined;
3884
+ }[];
3885
+ noResultsReason?: string | undefined;
3886
+ }, {
3887
+ query: string;
3888
+ faqs: {
3889
+ question: string;
3890
+ answer: string;
3891
+ relevanceScore: number;
3892
+ category?: string | undefined;
3893
+ }[];
3894
+ noResultsReason?: string | undefined;
3895
+ }>>;
3896
+ 'human-guide-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3897
+ merchantId: zod.ZodString;
3898
+ merchantName: zod.ZodString;
3899
+ guides: zod.ZodArray<zod.ZodObject<{
3900
+ guideId: zod.ZodString;
3901
+ name: zod.ZodString;
3902
+ title: zod.ZodOptional<zod.ZodString>;
3903
+ avatarUrl: zod.ZodOptional<zod.ZodString>;
3904
+ contactInfo: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3905
+ channel: zod.ZodString;
3906
+ value: zod.ZodString;
3907
+ }, "strip", zod.ZodTypeAny, {
3908
+ value: string;
3909
+ channel: string;
3910
+ }, {
3911
+ value: string;
3912
+ channel: string;
3913
+ }>, "many">>;
3914
+ available: zod.ZodBoolean;
3915
+ itemActions: zod.ZodArray<zod.ZodObject<{
3916
+ actionId: zod.ZodString;
3917
+ label: zod.ZodString;
3918
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
3919
+ }, "strip", zod.ZodTypeAny, {
3920
+ actionId: string;
3921
+ label: string;
3922
+ input?: Record<string, unknown> | undefined;
3923
+ }, {
3924
+ actionId: string;
3925
+ label: string;
3926
+ input?: Record<string, unknown> | undefined;
3927
+ }>, "many">;
3928
+ }, "strip", zod.ZodTypeAny, {
3929
+ name: string;
3930
+ itemActions: {
3931
+ actionId: string;
3932
+ label: string;
3933
+ input?: Record<string, unknown> | undefined;
3934
+ }[];
3935
+ guideId: string;
3936
+ available: boolean;
3937
+ avatarUrl?: string | undefined;
3938
+ contactInfo?: {
3939
+ value: string;
3940
+ channel: string;
3941
+ }[] | undefined;
3942
+ title?: string | undefined;
3943
+ }, {
3944
+ name: string;
3945
+ itemActions: {
3946
+ actionId: string;
3947
+ label: string;
3948
+ input?: Record<string, unknown> | undefined;
3949
+ }[];
3950
+ guideId: string;
3951
+ available: boolean;
3952
+ avatarUrl?: string | undefined;
3953
+ contactInfo?: {
3954
+ value: string;
3955
+ channel: string;
3956
+ }[] | undefined;
3957
+ title?: string | undefined;
3958
+ }>, "many">;
3959
+ }, "strip", zod.ZodTypeAny, {
3960
+ merchantId: string;
3961
+ merchantName: string;
3962
+ guides: {
3963
+ name: string;
3964
+ itemActions: {
3965
+ actionId: string;
3966
+ label: string;
3967
+ input?: Record<string, unknown> | undefined;
3968
+ }[];
3969
+ guideId: string;
3970
+ available: boolean;
3971
+ avatarUrl?: string | undefined;
3972
+ contactInfo?: {
3973
+ value: string;
3974
+ channel: string;
3975
+ }[] | undefined;
3976
+ title?: string | undefined;
3977
+ }[];
3978
+ }, {
3979
+ merchantId: string;
3980
+ merchantName: string;
3981
+ guides: {
3982
+ name: string;
3983
+ itemActions: {
3984
+ actionId: string;
3985
+ label: string;
3986
+ input?: Record<string, unknown> | undefined;
3987
+ }[];
3988
+ guideId: string;
3989
+ available: boolean;
3990
+ avatarUrl?: string | undefined;
3991
+ contactInfo?: {
3992
+ value: string;
3993
+ channel: string;
3994
+ }[] | undefined;
3995
+ title?: string | undefined;
3996
+ }[];
3997
+ }>>;
3998
+ 'location-handoff': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3999
+ merchantId: zod.ZodString;
4000
+ merchantName: zod.ZodString;
4001
+ location: zod.ZodObject<{
4002
+ buildingName: zod.ZodOptional<zod.ZodString>;
4003
+ floorName: zod.ZodOptional<zod.ZodString>;
4004
+ unitName: zod.ZodOptional<zod.ZodString>;
4005
+ displayText: zod.ZodString;
4006
+ poiId: zod.ZodOptional<zod.ZodString>;
4007
+ }, "strip", zod.ZodTypeAny, {
4008
+ displayText: string;
4009
+ buildingName?: string | undefined;
4010
+ floorName?: string | undefined;
4011
+ unitName?: string | undefined;
4012
+ poiId?: string | undefined;
4013
+ }, {
4014
+ displayText: string;
4015
+ buildingName?: string | undefined;
4016
+ floorName?: string | undefined;
4017
+ unitName?: string | undefined;
4018
+ poiId?: string | undefined;
4019
+ }>;
4020
+ mapUrl: zod.ZodOptional<zod.ZodString>;
4021
+ navigation: zod.ZodOptional<zod.ZodObject<{
4022
+ provider: zod.ZodEnum<["amap", "builtin"]>;
4023
+ launchParams: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
4024
+ }, "strip", zod.ZodTypeAny, {
4025
+ provider: "amap" | "builtin";
4026
+ launchParams?: Record<string, string> | undefined;
4027
+ }, {
4028
+ provider: "amap" | "builtin";
4029
+ launchParams?: Record<string, string> | undefined;
4030
+ }>>;
4031
+ itemActions: zod.ZodArray<zod.ZodObject<{
4032
+ actionId: zod.ZodString;
4033
+ label: zod.ZodString;
4034
+ input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
4035
+ }, "strip", zod.ZodTypeAny, {
4036
+ actionId: string;
4037
+ label: string;
4038
+ input?: Record<string, unknown> | undefined;
4039
+ }, {
4040
+ actionId: string;
4041
+ label: string;
4042
+ input?: Record<string, unknown> | undefined;
4043
+ }>, "many">;
4044
+ }, "strip", zod.ZodTypeAny, {
4045
+ merchantId: string;
4046
+ location: {
4047
+ displayText: string;
4048
+ buildingName?: string | undefined;
4049
+ floorName?: string | undefined;
4050
+ unitName?: string | undefined;
4051
+ poiId?: string | undefined;
4052
+ };
4053
+ itemActions: {
4054
+ actionId: string;
4055
+ label: string;
4056
+ input?: Record<string, unknown> | undefined;
4057
+ }[];
4058
+ merchantName: string;
4059
+ mapUrl?: string | undefined;
4060
+ navigation?: {
4061
+ provider: "amap" | "builtin";
4062
+ launchParams?: Record<string, string> | undefined;
4063
+ } | undefined;
4064
+ }, {
4065
+ merchantId: string;
4066
+ location: {
4067
+ displayText: string;
4068
+ buildingName?: string | undefined;
4069
+ floorName?: string | undefined;
4070
+ unitName?: string | undefined;
4071
+ poiId?: string | undefined;
4072
+ };
4073
+ itemActions: {
4074
+ actionId: string;
4075
+ label: string;
4076
+ input?: Record<string, unknown> | undefined;
4077
+ }[];
4078
+ merchantName: string;
4079
+ mapUrl?: string | undefined;
4080
+ navigation?: {
4081
+ provider: "amap" | "builtin";
4082
+ launchParams?: Record<string, string> | undefined;
4083
+ } | undefined;
4084
+ }>>;
4085
+ };
4086
+ skills: {
4087
+ [k: string]: _tbox_cn_app_sdk_server.LocalSkill;
4088
+ };
4089
+ preTools: {
4090
+ 'customer-service-faq': PreToolDef<_mastra_core_tools.Tool<{
4091
+ query: string;
4092
+ topK?: string | undefined;
4093
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "customer-service-faq", unknown>>;
4094
+ };
4095
+ register(ctx: ServerContext): void;
4096
+ };
4097
+
4098
+ export { SHOPPING_GUIDE_PROVIDER_TEMPLATE_ID, type ShoppingGuideToolIds, type ShoppingGuideTools, computeJoyCityCSign, createShoppingGuideTools, joycityCSignedAuthStrategy, resolveShoppingGuidePorts, serverModule, shoppingGuideCards };