@tbox.cn/app-module-shopping-guide 0.2.1 → 0.8.2

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 (89) hide show
  1. package/AGENTS.md +16 -0
  2. package/README.md +96 -0
  3. package/dist/chunk-AYQZO2FV.js +1496 -0
  4. package/dist/chunk-QDTU2FRN.js +1682 -0
  5. package/dist/client/index.d.ts +3 -3
  6. package/dist/client/index.js +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +2 -8
  9. package/dist/server/index.d.ts +2512 -608
  10. package/dist/server/index.js +1 -7
  11. package/dist/shop-guide-header-art-pea-v2-OME4MKBW.jpg +0 -0
  12. package/dist/shopping-guide-OQ2SSHXL.css +2593 -0
  13. package/package.json +25 -16
  14. package/skills/shopping-guide/SKILL.md +127 -24
  15. package/src/client/assets/shop-guide-header-art-pea-v2.jpg +0 -0
  16. package/src/client/assets/shop-guide-header-art.png +0 -0
  17. package/src/client/assets.d.ts +10 -0
  18. package/src/client/cards/category-list/index.tsx +113 -0
  19. package/src/client/cards/human-guide-list/index.tsx +72 -0
  20. package/src/client/cards/index.ts +14 -0
  21. package/src/client/cards/location-handoff/index.tsx +52 -0
  22. package/src/client/cards/mall-directory/index.tsx +77 -0
  23. package/src/client/cards/nearby-mall-list/index.tsx +40 -0
  24. package/src/client/cards/product-comparison/index.tsx +100 -0
  25. package/src/client/cards/product-detail/index.tsx +97 -0
  26. package/src/client/cards/product-list/index.tsx +223 -0
  27. package/src/client/cards/recommend-merchants/index.tsx +147 -0
  28. package/src/client/cards/shop-detail/index.tsx +133 -0
  29. package/src/client/cards/shop-list/index.tsx +216 -0
  30. package/src/client/cards/view.ts +147 -0
  31. package/src/client/categories.ts +38 -0
  32. package/src/client/components/ImageWithFallback.tsx +34 -0
  33. package/src/client/components/MerchantRow.tsx +78 -0
  34. package/src/client/components/ShopDetailSheet.tsx +383 -0
  35. package/src/client/components/ShopGuideHeader.tsx +24 -0
  36. package/src/client/components/ShopGuideSectionLabel.tsx +10 -0
  37. package/src/client/components/ShopListSheet.tsx +293 -0
  38. package/src/client/index.ts +8 -6
  39. package/src/client/styles/shopping-guide.css +2593 -0
  40. package/src/client/types/css.d.ts +2 -0
  41. package/src/server/cards/category-list/meta.ts +0 -2
  42. package/src/server/cards/human-guide-list/meta.ts +0 -2
  43. package/src/server/cards/index.ts +10 -10
  44. package/src/server/cards/location-handoff/meta.ts +0 -2
  45. package/src/server/cards/mall-directory/meta.ts +0 -2
  46. package/src/server/cards/nearby-mall-list/meta.ts +1 -3
  47. package/src/server/cards/product-comparison/meta.ts +0 -2
  48. package/src/server/cards/product-detail/meta.ts +0 -2
  49. package/src/server/cards/product-list/meta.ts +0 -2
  50. package/src/server/cards/recommend-merchants/meta.ts +37 -0
  51. package/src/server/cards/recommend-merchants/samples.ts +189 -0
  52. package/src/server/cards/{merchant-detail → shop-detail}/meta.ts +6 -6
  53. package/src/server/cards/shop-detail/samples.ts +72 -0
  54. package/src/server/cards/{merchant-list → shop-list}/meta.ts +9 -9
  55. package/src/server/cards/shop-list/samples.ts +154 -0
  56. package/src/server/domain/value-objects.ts +1 -2
  57. package/src/server/handler.ts +63 -0
  58. package/src/server/index.ts +161 -101
  59. package/src/server/ports/index.ts +120 -91
  60. package/src/server/ports/local-adapters.ts +5 -55
  61. package/src/server/projections/index.ts +159 -41
  62. package/src/server/tools/index.ts +590 -315
  63. package/tbox.module.json +137 -0
  64. package/tests/cards-render.test.tsx +830 -0
  65. package/tests/floor-pretool.test.ts +275 -0
  66. package/tests/handler.test.ts +259 -0
  67. package/tests/merchant-list-limit.test.ts +53 -0
  68. package/tests/ports-resolve.test.ts +112 -0
  69. package/tests/samples.test.ts +71 -0
  70. package/tests/shopping-guide.test.ts +402 -234
  71. package/tests/skill.test.ts +86 -0
  72. package/tests/view.test.ts +42 -0
  73. package/tsup.config.ts +9 -1
  74. package/dist/chunk-AGBLC6XI.js +0 -1294
  75. package/dist/chunk-U4WDS5PQ.js +0 -173
  76. package/skills/shopping-guide/references/comparison-format.md +0 -5
  77. package/skills/shopping-guide/references/faq-answers.md +0 -5
  78. package/skills/shopping-guide/references/floor-directory.md +0 -4
  79. package/skills/shopping-guide/references/intent-patterns.md +0 -5
  80. package/skills/shopping-guide/references/location-format.md +0 -5
  81. package/skills/shopping-guide/references/policy-lookup.md +0 -5
  82. package/skills/shopping-guide/references/product-search-tips.md +0 -6
  83. package/skills/shopping-guide/references/recommendation-style.md +0 -5
  84. package/src/client/cards/index.tsx +0 -267
  85. package/src/server/cards/customer-service-faq/meta.ts +0 -18
  86. package/src/server/integrations/joycity/adapter.ts +0 -226
  87. package/src/server/integrations/joycity/auth-strategy.ts +0 -38
  88. package/src/server/integrations/joycity/gateway.ts +0 -128
  89. package/tbox.component.json +0 -48
@@ -1,9 +1,10 @@
1
1
  import * as _mastra_core_tools from '@mastra/core/tools';
2
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';
3
+ import { ServerContext, PreToolDef } from '@tbox.cn/app-sdk/server';
4
4
  import * as _tbox_cn_app_contracts from '@tbox.cn/app-contracts';
5
+ import { RequestContext } from '@tbox.cn/app-contracts';
5
6
  import * as zod from 'zod';
6
- import { CatalogQueryPort, MerchantDirectoryQueryPort, CommercialCategoryQueryPort, MallDirectoryQueryPort, AssistanceQueryPort, NavigationPort } from '@tbox.cn/app-contracts-mall';
7
+ import { CatalogQueryPort, ShopDirectoryQueryPort, CommercialCategoryQueryPort, MallDirectoryQueryPort, NavigationPort } from '@tbox.cn/app-contracts-mall';
7
8
 
8
9
  /** 11 卡 meta map(key 约定 = cardType) */
9
10
  declare const shoppingGuideCards: {
@@ -170,31 +171,46 @@ declare const shoppingGuideCards: {
170
171
  code: string;
171
172
  label: string;
172
173
  observedAt: string;
173
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
174
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
174
175
  value?: string | undefined;
175
176
  expiresAt?: string | undefined;
176
177
  }, {
177
178
  code: string;
178
179
  label: string;
179
180
  observedAt: string;
180
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
181
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
181
182
  value?: string | undefined;
182
183
  expiresAt?: string | undefined;
183
184
  }>, "many">>;
184
185
  caveats: zod.ZodArray<zod.ZodString, "many">;
185
- itemActions: zod.ZodArray<zod.ZodObject<{
186
- actionId: zod.ZodString;
186
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
187
+ kind: zod.ZodLiteral<"send">;
187
188
  label: zod.ZodString;
188
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
189
+ value: zod.ZodOptional<zod.ZodString>;
190
+ visibleValue: zod.ZodOptional<zod.ZodString>;
189
191
  }, "strip", zod.ZodTypeAny, {
190
- actionId: string;
192
+ kind: "send";
191
193
  label: string;
192
- input?: Record<string, unknown> | undefined;
194
+ value?: string | undefined;
195
+ visibleValue?: string | undefined;
193
196
  }, {
194
- actionId: string;
197
+ kind: "send";
195
198
  label: string;
196
- input?: Record<string, unknown> | undefined;
197
- }>, "many">;
199
+ value?: string | undefined;
200
+ visibleValue?: string | undefined;
201
+ }>, zod.ZodObject<{
202
+ kind: zod.ZodLiteral<"link">;
203
+ label: zod.ZodString;
204
+ url: zod.ZodString;
205
+ }, "strip", zod.ZodTypeAny, {
206
+ url: string;
207
+ kind: "link";
208
+ label: string;
209
+ }, {
210
+ url: string;
211
+ kind: "link";
212
+ label: string;
213
+ }>]>, "many">;
198
214
  }, "strip", zod.ZodTypeAny, {
199
215
  name: string;
200
216
  merchant: {
@@ -235,11 +251,16 @@ declare const shoppingGuideCards: {
235
251
  };
236
252
  badges: string[];
237
253
  caveats: string[];
238
- itemActions: {
239
- actionId: string;
254
+ itemActions: ({
255
+ kind: "send";
240
256
  label: string;
241
- input?: Record<string, unknown> | undefined;
242
- }[];
257
+ value?: string | undefined;
258
+ visibleValue?: string | undefined;
259
+ } | {
260
+ url: string;
261
+ kind: "link";
262
+ label: string;
263
+ })[];
243
264
  brand?: string | undefined;
244
265
  imageUrl?: string | undefined;
245
266
  reasons?: {
@@ -250,7 +271,7 @@ declare const shoppingGuideCards: {
250
271
  code: string;
251
272
  label: string;
252
273
  observedAt: string;
253
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
274
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
254
275
  value?: string | undefined;
255
276
  expiresAt?: string | undefined;
256
277
  }[] | undefined;
@@ -294,11 +315,16 @@ declare const shoppingGuideCards: {
294
315
  };
295
316
  badges: string[];
296
317
  caveats: string[];
297
- itemActions: {
298
- actionId: string;
318
+ itemActions: ({
319
+ kind: "send";
299
320
  label: string;
300
- input?: Record<string, unknown> | undefined;
301
- }[];
321
+ value?: string | undefined;
322
+ visibleValue?: string | undefined;
323
+ } | {
324
+ url: string;
325
+ kind: "link";
326
+ label: string;
327
+ })[];
302
328
  brand?: string | undefined;
303
329
  imageUrl?: string | undefined;
304
330
  reasons?: {
@@ -309,7 +335,7 @@ declare const shoppingGuideCards: {
309
335
  code: string;
310
336
  label: string;
311
337
  observedAt: string;
312
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
338
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
313
339
  value?: string | undefined;
314
340
  expiresAt?: string | undefined;
315
341
  }[] | undefined;
@@ -321,14 +347,14 @@ declare const shoppingGuideCards: {
321
347
  total: zod.ZodNumber;
322
348
  hasMore: zod.ZodBoolean;
323
349
  }, "strip", zod.ZodTypeAny, {
350
+ total: number;
324
351
  pageSize: number;
325
352
  page: number;
326
- total: number;
327
353
  hasMore: boolean;
328
354
  }, {
355
+ total: number;
329
356
  pageSize: number;
330
357
  page: number;
331
- total: number;
332
358
  hasMore: boolean;
333
359
  }>>;
334
360
  refinements: zod.ZodArray<zod.ZodObject<{
@@ -383,11 +409,16 @@ declare const shoppingGuideCards: {
383
409
  };
384
410
  badges: string[];
385
411
  caveats: string[];
386
- itemActions: {
387
- actionId: string;
412
+ itemActions: ({
413
+ kind: "send";
388
414
  label: string;
389
- input?: Record<string, unknown> | undefined;
390
- }[];
415
+ value?: string | undefined;
416
+ visibleValue?: string | undefined;
417
+ } | {
418
+ url: string;
419
+ kind: "link";
420
+ label: string;
421
+ })[];
391
422
  brand?: string | undefined;
392
423
  imageUrl?: string | undefined;
393
424
  reasons?: {
@@ -398,7 +429,7 @@ declare const shoppingGuideCards: {
398
429
  code: string;
399
430
  label: string;
400
431
  observedAt: string;
401
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
432
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
402
433
  value?: string | undefined;
403
434
  expiresAt?: string | undefined;
404
435
  }[] | undefined;
@@ -410,9 +441,9 @@ declare const shoppingGuideCards: {
410
441
  summary?: string | undefined;
411
442
  noResultsReason?: string | undefined;
412
443
  pageInfo?: {
444
+ total: number;
413
445
  pageSize: number;
414
446
  page: number;
415
- total: number;
416
447
  hasMore: boolean;
417
448
  } | undefined;
418
449
  }, {
@@ -457,11 +488,16 @@ declare const shoppingGuideCards: {
457
488
  };
458
489
  badges: string[];
459
490
  caveats: string[];
460
- itemActions: {
461
- actionId: string;
491
+ itemActions: ({
492
+ kind: "send";
462
493
  label: string;
463
- input?: Record<string, unknown> | undefined;
464
- }[];
494
+ value?: string | undefined;
495
+ visibleValue?: string | undefined;
496
+ } | {
497
+ url: string;
498
+ kind: "link";
499
+ label: string;
500
+ })[];
465
501
  brand?: string | undefined;
466
502
  imageUrl?: string | undefined;
467
503
  reasons?: {
@@ -472,7 +508,7 @@ declare const shoppingGuideCards: {
472
508
  code: string;
473
509
  label: string;
474
510
  observedAt: string;
475
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
511
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
476
512
  value?: string | undefined;
477
513
  expiresAt?: string | undefined;
478
514
  }[] | undefined;
@@ -484,9 +520,9 @@ declare const shoppingGuideCards: {
484
520
  summary?: string | undefined;
485
521
  noResultsReason?: string | undefined;
486
522
  pageInfo?: {
523
+ total: number;
487
524
  pageSize: number;
488
525
  page: number;
489
- total: number;
490
526
  hasMore: boolean;
491
527
  } | undefined;
492
528
  }>>;
@@ -651,31 +687,46 @@ declare const shoppingGuideCards: {
651
687
  code: string;
652
688
  label: string;
653
689
  observedAt: string;
654
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
690
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
655
691
  value?: string | undefined;
656
692
  expiresAt?: string | undefined;
657
693
  }, {
658
694
  code: string;
659
695
  label: string;
660
696
  observedAt: string;
661
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
697
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
662
698
  value?: string | undefined;
663
699
  expiresAt?: string | undefined;
664
700
  }>, "many">;
665
701
  humanGuideAvailable: zod.ZodBoolean;
666
- itemActions: zod.ZodArray<zod.ZodObject<{
667
- actionId: zod.ZodString;
702
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
703
+ kind: zod.ZodLiteral<"send">;
668
704
  label: zod.ZodString;
669
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
705
+ value: zod.ZodOptional<zod.ZodString>;
706
+ visibleValue: zod.ZodOptional<zod.ZodString>;
670
707
  }, "strip", zod.ZodTypeAny, {
671
- actionId: string;
708
+ kind: "send";
672
709
  label: string;
673
- input?: Record<string, unknown> | undefined;
710
+ value?: string | undefined;
711
+ visibleValue?: string | undefined;
674
712
  }, {
675
- actionId: string;
713
+ kind: "send";
676
714
  label: string;
677
- input?: Record<string, unknown> | undefined;
678
- }>, "many">;
715
+ value?: string | undefined;
716
+ visibleValue?: string | undefined;
717
+ }>, zod.ZodObject<{
718
+ kind: zod.ZodLiteral<"link">;
719
+ label: zod.ZodString;
720
+ url: zod.ZodString;
721
+ }, "strip", zod.ZodTypeAny, {
722
+ url: string;
723
+ kind: "link";
724
+ label: string;
725
+ }, {
726
+ url: string;
727
+ kind: "link";
728
+ label: string;
729
+ }>]>, "many">;
679
730
  }, "strip", zod.ZodTypeAny, {
680
731
  name: string;
681
732
  attributes: {
@@ -722,15 +773,20 @@ declare const shoppingGuideCards: {
722
773
  code: string;
723
774
  label: string;
724
775
  observedAt: string;
725
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
776
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
726
777
  value?: string | undefined;
727
778
  expiresAt?: string | undefined;
728
779
  }[];
729
- itemActions: {
730
- actionId: string;
780
+ itemActions: ({
781
+ kind: "send";
731
782
  label: string;
732
- input?: Record<string, unknown> | undefined;
733
- }[];
783
+ value?: string | undefined;
784
+ visibleValue?: string | undefined;
785
+ } | {
786
+ url: string;
787
+ kind: "link";
788
+ label: string;
789
+ })[];
734
790
  promotionFacts: string[];
735
791
  imageUrls: string[];
736
792
  humanGuideAvailable: boolean;
@@ -782,24 +838,41 @@ declare const shoppingGuideCards: {
782
838
  code: string;
783
839
  label: string;
784
840
  observedAt: string;
785
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
841
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
786
842
  value?: string | undefined;
787
843
  expiresAt?: string | undefined;
788
844
  }[];
789
- itemActions: {
790
- actionId: string;
845
+ itemActions: ({
846
+ kind: "send";
791
847
  label: string;
792
- input?: Record<string, unknown> | undefined;
793
- }[];
848
+ value?: string | undefined;
849
+ visibleValue?: string | undefined;
850
+ } | {
851
+ url: string;
852
+ kind: "link";
853
+ label: string;
854
+ })[];
794
855
  promotionFacts: string[];
795
856
  imageUrls: string[];
796
857
  humanGuideAvailable: boolean;
797
858
  description?: string | undefined;
798
859
  brand?: string | undefined;
799
860
  }>>;
800
- readonly 'merchant-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
861
+ readonly 'shop-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
801
862
  context: zod.ZodEnum<["recommendation", "search"]>;
863
+ mallId: zod.ZodOptional<zod.ZodString>;
864
+ miniAppId: zod.ZodOptional<zod.ZodString>;
802
865
  summary: zod.ZodOptional<zod.ZodString>;
866
+ categoryTabs: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
867
+ code: zod.ZodString;
868
+ name: zod.ZodString;
869
+ }, "strip", zod.ZodTypeAny, {
870
+ code: string;
871
+ name: string;
872
+ }, {
873
+ code: string;
874
+ name: string;
875
+ }>, "many">>;
803
876
  items: zod.ZodArray<zod.ZodObject<{
804
877
  merchantId: zod.ZodString;
805
878
  name: zod.ZodString;
@@ -831,14 +904,24 @@ declare const shoppingGuideCards: {
831
904
  label: zod.ZodString;
832
905
  observedAt: zod.ZodString;
833
906
  }, "strip", zod.ZodTypeAny, {
834
- code: "unknown" | "enabled" | "disabled";
907
+ code: "enabled" | "unknown" | "disabled";
835
908
  label: string;
836
909
  observedAt: string;
837
910
  }, {
838
- code: "unknown" | "enabled" | "disabled";
911
+ code: "enabled" | "unknown" | "disabled";
839
912
  label: string;
840
913
  observedAt: string;
841
914
  }>;
915
+ contactInfo: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
916
+ channel: zod.ZodString;
917
+ value: zod.ZodString;
918
+ }, "strip", zod.ZodTypeAny, {
919
+ value: string;
920
+ channel: string;
921
+ }, {
922
+ value: string;
923
+ channel: string;
924
+ }>, "many">>;
842
925
  services: zod.ZodArray<zod.ZodString, "many">;
843
926
  promotionFacts: zod.ZodArray<zod.ZodString, "many">;
844
927
  reasons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -862,37 +945,90 @@ declare const shoppingGuideCards: {
862
945
  code: string;
863
946
  label: string;
864
947
  observedAt: string;
865
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
948
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
866
949
  value?: string | undefined;
867
950
  expiresAt?: string | undefined;
868
951
  }, {
869
952
  code: string;
870
953
  label: string;
871
954
  observedAt: string;
872
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
955
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
873
956
  value?: string | undefined;
874
957
  expiresAt?: string | undefined;
875
958
  }>, "many">>;
876
- itemActions: zod.ZodArray<zod.ZodObject<{
877
- actionId: zod.ZodString;
959
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
960
+ kind: zod.ZodLiteral<"send">;
961
+ label: zod.ZodString;
962
+ value: zod.ZodOptional<zod.ZodString>;
963
+ visibleValue: zod.ZodOptional<zod.ZodString>;
964
+ }, "strip", zod.ZodTypeAny, {
965
+ kind: "send";
966
+ label: string;
967
+ value?: string | undefined;
968
+ visibleValue?: string | undefined;
969
+ }, {
970
+ kind: "send";
971
+ label: string;
972
+ value?: string | undefined;
973
+ visibleValue?: string | undefined;
974
+ }>, zod.ZodObject<{
975
+ kind: zod.ZodLiteral<"link">;
878
976
  label: zod.ZodString;
879
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
977
+ url: zod.ZodString;
880
978
  }, "strip", zod.ZodTypeAny, {
881
- actionId: string;
979
+ url: string;
980
+ kind: "link";
882
981
  label: string;
883
- input?: Record<string, unknown> | undefined;
884
982
  }, {
885
- actionId: string;
983
+ url: string;
984
+ kind: "link";
886
985
  label: string;
887
- input?: Record<string, unknown> | undefined;
888
- }>, "many">;
986
+ }>]>, "many">;
987
+ coupons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
988
+ name: zod.ZodString;
989
+ imageUrl: zod.ZodOptional<zod.ZodString>;
990
+ description: zod.ZodOptional<zod.ZodString>;
991
+ faceValue: zod.ZodOptional<zod.ZodNumber>;
992
+ salePrice: zod.ZodOptional<zod.ZodNumber>;
993
+ applicableCategories: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
994
+ validHours: zod.ZodOptional<zod.ZodNumber>;
995
+ usageTimeText: zod.ZodOptional<zod.ZodString>;
996
+ purchaseUrl: zod.ZodOptional<zod.ZodString>;
997
+ freeCouponClaimMode: zod.ZodOptional<zod.ZodEnum<["DIRECT", "REDIRECT"]>>;
998
+ offerRef: zod.ZodOptional<zod.ZodString>;
999
+ }, "strip", zod.ZodTypeAny, {
1000
+ name: string;
1001
+ description?: string | undefined;
1002
+ imageUrl?: string | undefined;
1003
+ faceValue?: number | undefined;
1004
+ salePrice?: number | undefined;
1005
+ applicableCategories?: string[] | undefined;
1006
+ validHours?: number | undefined;
1007
+ usageTimeText?: string | undefined;
1008
+ purchaseUrl?: string | undefined;
1009
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
1010
+ offerRef?: string | undefined;
1011
+ }, {
1012
+ name: string;
1013
+ description?: string | undefined;
1014
+ imageUrl?: string | undefined;
1015
+ faceValue?: number | undefined;
1016
+ salePrice?: number | undefined;
1017
+ applicableCategories?: string[] | undefined;
1018
+ validHours?: number | undefined;
1019
+ usageTimeText?: string | undefined;
1020
+ purchaseUrl?: string | undefined;
1021
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
1022
+ offerRef?: string | undefined;
1023
+ }>, "many">>;
889
1024
  }, "strip", zod.ZodTypeAny, {
890
1025
  status: {
891
- code: "unknown" | "enabled" | "disabled";
1026
+ code: "enabled" | "unknown" | "disabled";
892
1027
  label: string;
893
1028
  observedAt: string;
894
1029
  };
895
1030
  name: string;
1031
+ services: string[];
896
1032
  merchantId: string;
897
1033
  location: {
898
1034
  displayText: string;
@@ -901,13 +1037,17 @@ declare const shoppingGuideCards: {
901
1037
  unitName?: string | undefined;
902
1038
  poiId?: string | undefined;
903
1039
  };
904
- itemActions: {
905
- actionId: string;
1040
+ itemActions: ({
1041
+ kind: "send";
906
1042
  label: string;
907
- input?: Record<string, unknown> | undefined;
908
- }[];
1043
+ value?: string | undefined;
1044
+ visibleValue?: string | undefined;
1045
+ } | {
1046
+ url: string;
1047
+ kind: "link";
1048
+ label: string;
1049
+ })[];
909
1050
  businessCategories: string[];
910
- services: string[];
911
1051
  promotionFacts: string[];
912
1052
  brand?: string | undefined;
913
1053
  reasons?: {
@@ -918,19 +1058,37 @@ declare const shoppingGuideCards: {
918
1058
  code: string;
919
1059
  label: string;
920
1060
  observedAt: string;
921
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
1061
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
922
1062
  value?: string | undefined;
923
1063
  expiresAt?: string | undefined;
924
1064
  }[] | undefined;
925
1065
  logoUrl?: string | undefined;
926
1066
  coverUrl?: string | undefined;
1067
+ contactInfo?: {
1068
+ value: string;
1069
+ channel: string;
1070
+ }[] | undefined;
1071
+ coupons?: {
1072
+ name: string;
1073
+ description?: string | undefined;
1074
+ imageUrl?: string | undefined;
1075
+ faceValue?: number | undefined;
1076
+ salePrice?: number | undefined;
1077
+ applicableCategories?: string[] | undefined;
1078
+ validHours?: number | undefined;
1079
+ usageTimeText?: string | undefined;
1080
+ purchaseUrl?: string | undefined;
1081
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
1082
+ offerRef?: string | undefined;
1083
+ }[] | undefined;
927
1084
  }, {
928
1085
  status: {
929
- code: "unknown" | "enabled" | "disabled";
1086
+ code: "enabled" | "unknown" | "disabled";
930
1087
  label: string;
931
1088
  observedAt: string;
932
1089
  };
933
1090
  name: string;
1091
+ services: string[];
934
1092
  merchantId: string;
935
1093
  location: {
936
1094
  displayText: string;
@@ -939,13 +1097,17 @@ declare const shoppingGuideCards: {
939
1097
  unitName?: string | undefined;
940
1098
  poiId?: string | undefined;
941
1099
  };
942
- itemActions: {
943
- actionId: string;
1100
+ itemActions: ({
1101
+ kind: "send";
944
1102
  label: string;
945
- input?: Record<string, unknown> | undefined;
946
- }[];
1103
+ value?: string | undefined;
1104
+ visibleValue?: string | undefined;
1105
+ } | {
1106
+ url: string;
1107
+ kind: "link";
1108
+ label: string;
1109
+ })[];
947
1110
  businessCategories: string[];
948
- services: string[];
949
1111
  promotionFacts: string[];
950
1112
  brand?: string | undefined;
951
1113
  reasons?: {
@@ -956,12 +1118,29 @@ declare const shoppingGuideCards: {
956
1118
  code: string;
957
1119
  label: string;
958
1120
  observedAt: string;
959
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
1121
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
960
1122
  value?: string | undefined;
961
1123
  expiresAt?: string | undefined;
962
1124
  }[] | undefined;
963
1125
  logoUrl?: string | undefined;
964
1126
  coverUrl?: string | undefined;
1127
+ contactInfo?: {
1128
+ value: string;
1129
+ channel: string;
1130
+ }[] | undefined;
1131
+ coupons?: {
1132
+ name: string;
1133
+ description?: string | undefined;
1134
+ imageUrl?: string | undefined;
1135
+ faceValue?: number | undefined;
1136
+ salePrice?: number | undefined;
1137
+ applicableCategories?: string[] | undefined;
1138
+ validHours?: number | undefined;
1139
+ usageTimeText?: string | undefined;
1140
+ purchaseUrl?: string | undefined;
1141
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
1142
+ offerRef?: string | undefined;
1143
+ }[] | undefined;
965
1144
  }>, "many">;
966
1145
  noResultsReason: zod.ZodOptional<zod.ZodString>;
967
1146
  pageInfo: zod.ZodOptional<zod.ZodObject<{
@@ -970,14 +1149,14 @@ declare const shoppingGuideCards: {
970
1149
  total: zod.ZodNumber;
971
1150
  hasMore: zod.ZodBoolean;
972
1151
  }, "strip", zod.ZodTypeAny, {
1152
+ total: number;
973
1153
  pageSize: number;
974
1154
  page: number;
975
- total: number;
976
1155
  hasMore: boolean;
977
1156
  }, {
1157
+ total: number;
978
1158
  pageSize: number;
979
1159
  page: number;
980
- total: number;
981
1160
  hasMore: boolean;
982
1161
  }>>;
983
1162
  refinements: zod.ZodArray<zod.ZodObject<{
@@ -994,11 +1173,12 @@ declare const shoppingGuideCards: {
994
1173
  context: "search" | "recommendation";
995
1174
  items: {
996
1175
  status: {
997
- code: "unknown" | "enabled" | "disabled";
1176
+ code: "enabled" | "unknown" | "disabled";
998
1177
  label: string;
999
1178
  observedAt: string;
1000
1179
  };
1001
1180
  name: string;
1181
+ services: string[];
1002
1182
  merchantId: string;
1003
1183
  location: {
1004
1184
  displayText: string;
@@ -1007,13 +1187,17 @@ declare const shoppingGuideCards: {
1007
1187
  unitName?: string | undefined;
1008
1188
  poiId?: string | undefined;
1009
1189
  };
1010
- itemActions: {
1011
- actionId: string;
1190
+ itemActions: ({
1191
+ kind: "send";
1012
1192
  label: string;
1013
- input?: Record<string, unknown> | undefined;
1014
- }[];
1193
+ value?: string | undefined;
1194
+ visibleValue?: string | undefined;
1195
+ } | {
1196
+ url: string;
1197
+ kind: "link";
1198
+ label: string;
1199
+ })[];
1015
1200
  businessCategories: string[];
1016
- services: string[];
1017
1201
  promotionFacts: string[];
1018
1202
  brand?: string | undefined;
1019
1203
  reasons?: {
@@ -1024,34 +1208,58 @@ declare const shoppingGuideCards: {
1024
1208
  code: string;
1025
1209
  label: string;
1026
1210
  observedAt: string;
1027
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
1211
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
1028
1212
  value?: string | undefined;
1029
1213
  expiresAt?: string | undefined;
1030
1214
  }[] | undefined;
1031
1215
  logoUrl?: string | undefined;
1032
1216
  coverUrl?: string | undefined;
1217
+ contactInfo?: {
1218
+ value: string;
1219
+ channel: string;
1220
+ }[] | undefined;
1221
+ coupons?: {
1222
+ name: string;
1223
+ description?: string | undefined;
1224
+ imageUrl?: string | undefined;
1225
+ faceValue?: number | undefined;
1226
+ salePrice?: number | undefined;
1227
+ applicableCategories?: string[] | undefined;
1228
+ validHours?: number | undefined;
1229
+ usageTimeText?: string | undefined;
1230
+ purchaseUrl?: string | undefined;
1231
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
1232
+ offerRef?: string | undefined;
1233
+ }[] | undefined;
1033
1234
  }[];
1034
1235
  refinements: {
1035
1236
  label: string;
1036
1237
  queryText: string;
1037
1238
  }[];
1038
1239
  summary?: string | undefined;
1240
+ miniAppId?: string | undefined;
1241
+ mallId?: string | undefined;
1039
1242
  noResultsReason?: string | undefined;
1040
1243
  pageInfo?: {
1244
+ total: number;
1041
1245
  pageSize: number;
1042
1246
  page: number;
1043
- total: number;
1044
1247
  hasMore: boolean;
1045
1248
  } | undefined;
1249
+ categoryTabs?: {
1250
+ code: string;
1251
+ name: string;
1252
+ }[] | undefined;
1046
1253
  }, {
1047
1254
  context: "search" | "recommendation";
1048
1255
  items: {
1049
1256
  status: {
1050
- code: "unknown" | "enabled" | "disabled";
1257
+ code: "enabled" | "unknown" | "disabled";
1051
1258
  label: string;
1052
1259
  observedAt: string;
1053
1260
  };
1054
1261
  name: string;
1262
+ services: string[];
1055
1263
  merchantId: string;
1056
1264
  location: {
1057
1265
  displayText: string;
@@ -1060,13 +1268,17 @@ declare const shoppingGuideCards: {
1060
1268
  unitName?: string | undefined;
1061
1269
  poiId?: string | undefined;
1062
1270
  };
1063
- itemActions: {
1064
- actionId: string;
1271
+ itemActions: ({
1272
+ kind: "send";
1065
1273
  label: string;
1066
- input?: Record<string, unknown> | undefined;
1067
- }[];
1274
+ value?: string | undefined;
1275
+ visibleValue?: string | undefined;
1276
+ } | {
1277
+ url: string;
1278
+ kind: "link";
1279
+ label: string;
1280
+ })[];
1068
1281
  businessCategories: string[];
1069
- services: string[];
1070
1282
  promotionFacts: string[];
1071
1283
  brand?: string | undefined;
1072
1284
  reasons?: {
@@ -1077,29 +1289,54 @@ declare const shoppingGuideCards: {
1077
1289
  code: string;
1078
1290
  label: string;
1079
1291
  observedAt: string;
1080
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
1292
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
1081
1293
  value?: string | undefined;
1082
1294
  expiresAt?: string | undefined;
1083
1295
  }[] | undefined;
1084
1296
  logoUrl?: string | undefined;
1085
1297
  coverUrl?: string | undefined;
1298
+ contactInfo?: {
1299
+ value: string;
1300
+ channel: string;
1301
+ }[] | undefined;
1302
+ coupons?: {
1303
+ name: string;
1304
+ description?: string | undefined;
1305
+ imageUrl?: string | undefined;
1306
+ faceValue?: number | undefined;
1307
+ salePrice?: number | undefined;
1308
+ applicableCategories?: string[] | undefined;
1309
+ validHours?: number | undefined;
1310
+ usageTimeText?: string | undefined;
1311
+ purchaseUrl?: string | undefined;
1312
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
1313
+ offerRef?: string | undefined;
1314
+ }[] | undefined;
1086
1315
  }[];
1087
1316
  refinements: {
1088
1317
  label: string;
1089
1318
  queryText: string;
1090
1319
  }[];
1091
1320
  summary?: string | undefined;
1321
+ miniAppId?: string | undefined;
1322
+ mallId?: string | undefined;
1092
1323
  noResultsReason?: string | undefined;
1093
1324
  pageInfo?: {
1325
+ total: number;
1094
1326
  pageSize: number;
1095
1327
  page: number;
1096
- total: number;
1097
1328
  hasMore: boolean;
1098
1329
  } | undefined;
1330
+ categoryTabs?: {
1331
+ code: string;
1332
+ name: string;
1333
+ }[] | undefined;
1099
1334
  }>>;
1100
- readonly 'merchant-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1335
+ readonly 'shop-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1101
1336
  merchantId: zod.ZodString;
1102
1337
  name: zod.ZodString;
1338
+ mallId: zod.ZodOptional<zod.ZodString>;
1339
+ miniAppId: zod.ZodOptional<zod.ZodString>;
1103
1340
  logoUrl: zod.ZodOptional<zod.ZodString>;
1104
1341
  coverUrls: zod.ZodArray<zod.ZodString, "many">;
1105
1342
  brand: zod.ZodOptional<zod.ZodString>;
@@ -1128,11 +1365,11 @@ declare const shoppingGuideCards: {
1128
1365
  label: zod.ZodString;
1129
1366
  observedAt: zod.ZodString;
1130
1367
  }, "strip", zod.ZodTypeAny, {
1131
- code: "unknown" | "enabled" | "disabled";
1368
+ code: "enabled" | "unknown" | "disabled";
1132
1369
  label: string;
1133
1370
  observedAt: string;
1134
1371
  }, {
1135
- code: "unknown" | "enabled" | "disabled";
1372
+ code: "enabled" | "unknown" | "disabled";
1136
1373
  label: string;
1137
1374
  observedAt: string;
1138
1375
  }>;
@@ -1149,6 +1386,43 @@ declare const shoppingGuideCards: {
1149
1386
  }>, "many">>;
1150
1387
  services: zod.ZodArray<zod.ZodString, "many">;
1151
1388
  promotionFacts: zod.ZodArray<zod.ZodString, "many">;
1389
+ coupons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1390
+ name: zod.ZodString;
1391
+ imageUrl: zod.ZodOptional<zod.ZodString>;
1392
+ description: zod.ZodOptional<zod.ZodString>;
1393
+ faceValue: zod.ZodOptional<zod.ZodNumber>;
1394
+ salePrice: zod.ZodOptional<zod.ZodNumber>;
1395
+ applicableCategories: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1396
+ validHours: zod.ZodOptional<zod.ZodNumber>;
1397
+ usageTimeText: zod.ZodOptional<zod.ZodString>;
1398
+ purchaseUrl: zod.ZodOptional<zod.ZodString>;
1399
+ freeCouponClaimMode: zod.ZodOptional<zod.ZodEnum<["DIRECT", "REDIRECT"]>>;
1400
+ offerRef: zod.ZodOptional<zod.ZodString>;
1401
+ }, "strip", zod.ZodTypeAny, {
1402
+ name: string;
1403
+ description?: string | undefined;
1404
+ imageUrl?: string | undefined;
1405
+ faceValue?: number | undefined;
1406
+ salePrice?: number | undefined;
1407
+ applicableCategories?: string[] | undefined;
1408
+ validHours?: number | undefined;
1409
+ usageTimeText?: string | undefined;
1410
+ purchaseUrl?: string | undefined;
1411
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
1412
+ offerRef?: string | undefined;
1413
+ }, {
1414
+ name: string;
1415
+ description?: string | undefined;
1416
+ imageUrl?: string | undefined;
1417
+ faceValue?: number | undefined;
1418
+ salePrice?: number | undefined;
1419
+ applicableCategories?: string[] | undefined;
1420
+ validHours?: number | undefined;
1421
+ usageTimeText?: string | undefined;
1422
+ purchaseUrl?: string | undefined;
1423
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
1424
+ offerRef?: string | undefined;
1425
+ }>, "many">>;
1152
1426
  evidence: zod.ZodArray<zod.ZodObject<{
1153
1427
  code: zod.ZodString;
1154
1428
  label: zod.ZodString;
@@ -1160,37 +1434,53 @@ declare const shoppingGuideCards: {
1160
1434
  code: string;
1161
1435
  label: string;
1162
1436
  observedAt: string;
1163
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
1437
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
1164
1438
  value?: string | undefined;
1165
1439
  expiresAt?: string | undefined;
1166
1440
  }, {
1167
1441
  code: string;
1168
1442
  label: string;
1169
1443
  observedAt: string;
1170
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
1444
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
1171
1445
  value?: string | undefined;
1172
1446
  expiresAt?: string | undefined;
1173
1447
  }>, "many">;
1174
- itemActions: zod.ZodArray<zod.ZodObject<{
1175
- actionId: zod.ZodString;
1448
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
1449
+ kind: zod.ZodLiteral<"send">;
1176
1450
  label: zod.ZodString;
1177
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
1451
+ value: zod.ZodOptional<zod.ZodString>;
1452
+ visibleValue: zod.ZodOptional<zod.ZodString>;
1178
1453
  }, "strip", zod.ZodTypeAny, {
1179
- actionId: string;
1454
+ kind: "send";
1180
1455
  label: string;
1181
- input?: Record<string, unknown> | undefined;
1456
+ value?: string | undefined;
1457
+ visibleValue?: string | undefined;
1182
1458
  }, {
1183
- actionId: string;
1459
+ kind: "send";
1184
1460
  label: string;
1185
- input?: Record<string, unknown> | undefined;
1186
- }>, "many">;
1461
+ value?: string | undefined;
1462
+ visibleValue?: string | undefined;
1463
+ }>, zod.ZodObject<{
1464
+ kind: zod.ZodLiteral<"link">;
1465
+ label: zod.ZodString;
1466
+ url: zod.ZodString;
1467
+ }, "strip", zod.ZodTypeAny, {
1468
+ url: string;
1469
+ kind: "link";
1470
+ label: string;
1471
+ }, {
1472
+ url: string;
1473
+ kind: "link";
1474
+ label: string;
1475
+ }>]>, "many">;
1187
1476
  }, "strip", zod.ZodTypeAny, {
1188
1477
  status: {
1189
- code: "unknown" | "enabled" | "disabled";
1478
+ code: "enabled" | "unknown" | "disabled";
1190
1479
  label: string;
1191
1480
  observedAt: string;
1192
1481
  };
1193
1482
  name: string;
1483
+ services: string[];
1194
1484
  merchantId: string;
1195
1485
  location: {
1196
1486
  displayText: string;
@@ -1203,33 +1493,53 @@ declare const shoppingGuideCards: {
1203
1493
  code: string;
1204
1494
  label: string;
1205
1495
  observedAt: string;
1206
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
1496
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
1207
1497
  value?: string | undefined;
1208
1498
  expiresAt?: string | undefined;
1209
1499
  }[];
1210
- itemActions: {
1211
- actionId: string;
1500
+ itemActions: ({
1501
+ kind: "send";
1212
1502
  label: string;
1213
- input?: Record<string, unknown> | undefined;
1214
- }[];
1503
+ value?: string | undefined;
1504
+ visibleValue?: string | undefined;
1505
+ } | {
1506
+ url: string;
1507
+ kind: "link";
1508
+ label: string;
1509
+ })[];
1215
1510
  businessCategories: string[];
1216
- services: string[];
1217
1511
  promotionFacts: string[];
1218
1512
  coverUrls: string[];
1219
1513
  description?: string | undefined;
1220
1514
  brand?: string | undefined;
1515
+ miniAppId?: string | undefined;
1516
+ mallId?: string | undefined;
1221
1517
  logoUrl?: string | undefined;
1222
1518
  contactInfo?: {
1223
1519
  value: string;
1224
1520
  channel: string;
1225
1521
  }[] | undefined;
1522
+ coupons?: {
1523
+ name: string;
1524
+ description?: string | undefined;
1525
+ imageUrl?: string | undefined;
1526
+ faceValue?: number | undefined;
1527
+ salePrice?: number | undefined;
1528
+ applicableCategories?: string[] | undefined;
1529
+ validHours?: number | undefined;
1530
+ usageTimeText?: string | undefined;
1531
+ purchaseUrl?: string | undefined;
1532
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
1533
+ offerRef?: string | undefined;
1534
+ }[] | undefined;
1226
1535
  }, {
1227
1536
  status: {
1228
- code: "unknown" | "enabled" | "disabled";
1537
+ code: "enabled" | "unknown" | "disabled";
1229
1538
  label: string;
1230
1539
  observedAt: string;
1231
1540
  };
1232
1541
  name: string;
1542
+ services: string[];
1233
1543
  merchantId: string;
1234
1544
  location: {
1235
1545
  displayText: string;
@@ -1242,32 +1552,52 @@ declare const shoppingGuideCards: {
1242
1552
  code: string;
1243
1553
  label: string;
1244
1554
  observedAt: string;
1245
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
1555
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
1246
1556
  value?: string | undefined;
1247
1557
  expiresAt?: string | undefined;
1248
1558
  }[];
1249
- itemActions: {
1250
- actionId: string;
1559
+ itemActions: ({
1560
+ kind: "send";
1251
1561
  label: string;
1252
- input?: Record<string, unknown> | undefined;
1253
- }[];
1562
+ value?: string | undefined;
1563
+ visibleValue?: string | undefined;
1564
+ } | {
1565
+ url: string;
1566
+ kind: "link";
1567
+ label: string;
1568
+ })[];
1254
1569
  businessCategories: string[];
1255
- services: string[];
1256
1570
  promotionFacts: string[];
1257
1571
  coverUrls: string[];
1258
1572
  description?: string | undefined;
1259
1573
  brand?: string | undefined;
1574
+ miniAppId?: string | undefined;
1575
+ mallId?: string | undefined;
1260
1576
  logoUrl?: string | undefined;
1261
1577
  contactInfo?: {
1262
1578
  value: string;
1263
1579
  channel: string;
1264
1580
  }[] | undefined;
1581
+ coupons?: {
1582
+ name: string;
1583
+ description?: string | undefined;
1584
+ imageUrl?: string | undefined;
1585
+ faceValue?: number | undefined;
1586
+ salePrice?: number | undefined;
1587
+ applicableCategories?: string[] | undefined;
1588
+ validHours?: number | undefined;
1589
+ usageTimeText?: string | undefined;
1590
+ purchaseUrl?: string | undefined;
1591
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
1592
+ offerRef?: string | undefined;
1593
+ }[] | undefined;
1265
1594
  }>>;
1266
1595
  readonly 'category-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1267
1596
  categories: zod.ZodArray<zod.ZodObject<{
1268
1597
  code: zod.ZodString;
1269
1598
  name: zod.ZodString;
1270
1599
  description: zod.ZodOptional<zod.ZodString>;
1600
+ iconUrl: zod.ZodOptional<zod.ZodString>;
1271
1601
  merchantCount: zod.ZodNumber;
1272
1602
  subCategories: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1273
1603
  code: zod.ZodString;
@@ -1282,11 +1612,50 @@ declare const shoppingGuideCards: {
1282
1612
  name: string;
1283
1613
  merchantCount: number;
1284
1614
  }>, "many">>;
1615
+ itemActions: zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
1616
+ kind: zod.ZodLiteral<"send">;
1617
+ label: zod.ZodString;
1618
+ value: zod.ZodOptional<zod.ZodString>;
1619
+ visibleValue: zod.ZodOptional<zod.ZodString>;
1620
+ }, "strip", zod.ZodTypeAny, {
1621
+ kind: "send";
1622
+ label: string;
1623
+ value?: string | undefined;
1624
+ visibleValue?: string | undefined;
1625
+ }, {
1626
+ kind: "send";
1627
+ label: string;
1628
+ value?: string | undefined;
1629
+ visibleValue?: string | undefined;
1630
+ }>, zod.ZodObject<{
1631
+ kind: zod.ZodLiteral<"link">;
1632
+ label: zod.ZodString;
1633
+ url: zod.ZodString;
1634
+ }, "strip", zod.ZodTypeAny, {
1635
+ url: string;
1636
+ kind: "link";
1637
+ label: string;
1638
+ }, {
1639
+ url: string;
1640
+ kind: "link";
1641
+ label: string;
1642
+ }>]>, "many">>;
1285
1643
  }, "strip", zod.ZodTypeAny, {
1286
1644
  code: string;
1287
1645
  name: string;
1288
1646
  merchantCount: number;
1289
1647
  description?: string | undefined;
1648
+ itemActions?: ({
1649
+ kind: "send";
1650
+ label: string;
1651
+ value?: string | undefined;
1652
+ visibleValue?: string | undefined;
1653
+ } | {
1654
+ url: string;
1655
+ kind: "link";
1656
+ label: string;
1657
+ })[] | undefined;
1658
+ iconUrl?: string | undefined;
1290
1659
  subCategories?: {
1291
1660
  code: string;
1292
1661
  name: string;
@@ -1297,51 +1666,230 @@ declare const shoppingGuideCards: {
1297
1666
  name: string;
1298
1667
  merchantCount: number;
1299
1668
  description?: string | undefined;
1669
+ itemActions?: ({
1670
+ kind: "send";
1671
+ label: string;
1672
+ value?: string | undefined;
1673
+ visibleValue?: string | undefined;
1674
+ } | {
1675
+ url: string;
1676
+ kind: "link";
1677
+ label: string;
1678
+ })[] | undefined;
1679
+ iconUrl?: string | undefined;
1300
1680
  subCategories?: {
1301
1681
  code: string;
1302
1682
  name: string;
1303
1683
  merchantCount: number;
1304
1684
  }[] | undefined;
1305
1685
  }>, "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;
1686
+ buildings: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
1687
+ buildingCode: zod.ZodString;
1688
+ buildingName: zod.ZodString;
1689
+ floors: zod.ZodArray<zod.ZodObject<{
1690
+ floorCode: zod.ZodString;
1691
+ floorName: zod.ZodString;
1692
+ businessCategories: zod.ZodArray<zod.ZodString, "many">;
1693
+ merchantCount: zod.ZodNumber;
1694
+ itemActions: zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
1695
+ kind: zod.ZodLiteral<"send">;
1696
+ label: zod.ZodString;
1697
+ value: zod.ZodOptional<zod.ZodString>;
1698
+ visibleValue: zod.ZodOptional<zod.ZodString>;
1699
+ }, "strip", zod.ZodTypeAny, {
1700
+ kind: "send";
1701
+ label: string;
1702
+ value?: string | undefined;
1703
+ visibleValue?: string | undefined;
1704
+ }, {
1705
+ kind: "send";
1706
+ label: string;
1707
+ value?: string | undefined;
1708
+ visibleValue?: string | undefined;
1709
+ }>, zod.ZodObject<{
1710
+ kind: zod.ZodLiteral<"link">;
1711
+ label: zod.ZodString;
1712
+ url: zod.ZodString;
1713
+ }, "strip", zod.ZodTypeAny, {
1714
+ url: string;
1715
+ kind: "link";
1716
+ label: string;
1717
+ }, {
1718
+ url: string;
1719
+ kind: "link";
1720
+ label: string;
1721
+ }>]>, "many">>;
1722
+ }, "strip", zod.ZodTypeAny, {
1723
+ floorName: string;
1724
+ businessCategories: string[];
1725
+ merchantCount: number;
1726
+ floorCode: string;
1727
+ itemActions?: ({
1728
+ kind: "send";
1729
+ label: string;
1730
+ value?: string | undefined;
1731
+ visibleValue?: string | undefined;
1732
+ } | {
1733
+ url: string;
1734
+ kind: "link";
1735
+ label: string;
1736
+ })[] | undefined;
1737
+ }, {
1738
+ floorName: string;
1739
+ businessCategories: string[];
1740
+ merchantCount: number;
1741
+ floorCode: string;
1742
+ itemActions?: ({
1743
+ kind: "send";
1744
+ label: string;
1745
+ value?: string | undefined;
1746
+ visibleValue?: string | undefined;
1747
+ } | {
1748
+ url: string;
1749
+ kind: "link";
1750
+ label: string;
1751
+ })[] | undefined;
1752
+ }>, "many">;
1753
+ }, "strip", zod.ZodTypeAny, {
1754
+ buildingName: string;
1755
+ buildingCode: string;
1756
+ floors: {
1757
+ floorName: string;
1758
+ businessCategories: string[];
1759
+ merchantCount: number;
1760
+ floorCode: string;
1761
+ itemActions?: ({
1762
+ kind: "send";
1763
+ label: string;
1764
+ value?: string | undefined;
1765
+ visibleValue?: string | undefined;
1766
+ } | {
1767
+ url: string;
1768
+ kind: "link";
1769
+ label: string;
1770
+ })[] | undefined;
1771
+ }[];
1772
+ }, {
1773
+ buildingName: string;
1774
+ buildingCode: string;
1775
+ floors: {
1776
+ floorName: string;
1777
+ businessCategories: string[];
1778
+ merchantCount: number;
1779
+ floorCode: string;
1780
+ itemActions?: ({
1781
+ kind: "send";
1782
+ label: string;
1783
+ value?: string | undefined;
1784
+ visibleValue?: string | undefined;
1785
+ } | {
1786
+ url: string;
1787
+ kind: "link";
1788
+ label: string;
1789
+ })[] | undefined;
1790
+ }[];
1791
+ }>, "many">>;
1792
+ observedAt: zod.ZodString;
1793
+ }, "strip", zod.ZodTypeAny, {
1794
+ observedAt: string;
1795
+ categories: {
1796
+ code: string;
1797
+ name: string;
1798
+ merchantCount: number;
1799
+ description?: string | undefined;
1800
+ itemActions?: ({
1801
+ kind: "send";
1802
+ label: string;
1803
+ value?: string | undefined;
1804
+ visibleValue?: string | undefined;
1805
+ } | {
1806
+ url: string;
1807
+ kind: "link";
1808
+ label: string;
1809
+ })[] | undefined;
1810
+ iconUrl?: string | undefined;
1811
+ subCategories?: {
1812
+ code: string;
1813
+ name: string;
1814
+ merchantCount: number;
1815
+ }[] | undefined;
1816
+ }[];
1817
+ buildings?: {
1818
+ buildingName: string;
1819
+ buildingCode: string;
1820
+ floors: {
1821
+ floorName: string;
1822
+ businessCategories: string[];
1823
+ merchantCount: number;
1824
+ floorCode: string;
1825
+ itemActions?: ({
1826
+ kind: "send";
1827
+ label: string;
1828
+ value?: string | undefined;
1829
+ visibleValue?: string | undefined;
1830
+ } | {
1831
+ url: string;
1832
+ kind: "link";
1833
+ label: string;
1834
+ })[] | undefined;
1835
+ }[];
1836
+ }[] | undefined;
1837
+ }, {
1838
+ observedAt: string;
1839
+ categories: {
1840
+ code: string;
1841
+ name: string;
1842
+ merchantCount: number;
1843
+ description?: string | undefined;
1844
+ itemActions?: ({
1845
+ kind: "send";
1846
+ label: string;
1847
+ value?: string | undefined;
1848
+ visibleValue?: string | undefined;
1849
+ } | {
1850
+ url: string;
1851
+ kind: "link";
1852
+ label: string;
1853
+ })[] | undefined;
1854
+ iconUrl?: string | undefined;
1855
+ subCategories?: {
1856
+ code: string;
1857
+ name: string;
1858
+ merchantCount: number;
1859
+ }[] | undefined;
1860
+ }[];
1861
+ buildings?: {
1862
+ buildingName: string;
1863
+ buildingCode: string;
1864
+ floors: {
1865
+ floorName: string;
1866
+ businessCategories: string[];
1867
+ merchantCount: number;
1868
+ floorCode: string;
1869
+ itemActions?: ({
1870
+ kind: "send";
1871
+ label: string;
1872
+ value?: string | undefined;
1873
+ visibleValue?: string | undefined;
1874
+ } | {
1875
+ url: string;
1876
+ kind: "link";
1877
+ label: string;
1878
+ })[] | undefined;
1879
+ }[];
1880
+ }[] | undefined;
1881
+ }>>;
1882
+ readonly 'product-comparison': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1883
+ products: zod.ZodArray<zod.ZodObject<{
1884
+ productId: zod.ZodString;
1885
+ name: zod.ZodString;
1886
+ imageUrl: zod.ZodOptional<zod.ZodString>;
1887
+ brand: zod.ZodOptional<zod.ZodString>;
1888
+ price: zod.ZodObject<{
1889
+ sale: zod.ZodOptional<zod.ZodObject<{
1890
+ currency: zod.ZodLiteral<"CNY">;
1891
+ amountMinor: zod.ZodNumber;
1892
+ display: zod.ZodString;
1345
1893
  }, "strip", zod.ZodTypeAny, {
1346
1894
  display: string;
1347
1895
  currency: "CNY";
@@ -1522,6 +2070,7 @@ declare const shoppingGuideCards: {
1522
2070
  brand?: string | undefined;
1523
2071
  imageUrl?: string | undefined;
1524
2072
  }>, "many">;
2073
+ refreshRequiredAt: zod.ZodOptional<zod.ZodString>;
1525
2074
  observedAt: zod.ZodString;
1526
2075
  }, "strip", zod.ZodTypeAny, {
1527
2076
  observedAt: string;
@@ -1563,6 +2112,7 @@ declare const shoppingGuideCards: {
1563
2112
  brand?: string | undefined;
1564
2113
  imageUrl?: string | undefined;
1565
2114
  }[];
2115
+ refreshRequiredAt?: string | undefined;
1566
2116
  }, {
1567
2117
  observedAt: string;
1568
2118
  products: {
@@ -1603,6 +2153,7 @@ declare const shoppingGuideCards: {
1603
2153
  brand?: string | undefined;
1604
2154
  imageUrl?: string | undefined;
1605
2155
  }[];
2156
+ refreshRequiredAt?: string | undefined;
1606
2157
  }>>;
1607
2158
  readonly 'mall-directory': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1608
2159
  mallId: zod.ZodString;
@@ -1615,16 +2166,64 @@ declare const shoppingGuideCards: {
1615
2166
  floorName: zod.ZodString;
1616
2167
  businessCategories: zod.ZodArray<zod.ZodString, "many">;
1617
2168
  merchantCount: zod.ZodNumber;
2169
+ itemActions: zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
2170
+ kind: zod.ZodLiteral<"send">;
2171
+ label: zod.ZodString;
2172
+ value: zod.ZodOptional<zod.ZodString>;
2173
+ visibleValue: zod.ZodOptional<zod.ZodString>;
2174
+ }, "strip", zod.ZodTypeAny, {
2175
+ kind: "send";
2176
+ label: string;
2177
+ value?: string | undefined;
2178
+ visibleValue?: string | undefined;
2179
+ }, {
2180
+ kind: "send";
2181
+ label: string;
2182
+ value?: string | undefined;
2183
+ visibleValue?: string | undefined;
2184
+ }>, zod.ZodObject<{
2185
+ kind: zod.ZodLiteral<"link">;
2186
+ label: zod.ZodString;
2187
+ url: zod.ZodString;
2188
+ }, "strip", zod.ZodTypeAny, {
2189
+ url: string;
2190
+ kind: "link";
2191
+ label: string;
2192
+ }, {
2193
+ url: string;
2194
+ kind: "link";
2195
+ label: string;
2196
+ }>]>, "many">>;
1618
2197
  }, "strip", zod.ZodTypeAny, {
1619
2198
  floorName: string;
1620
2199
  businessCategories: string[];
1621
2200
  merchantCount: number;
1622
2201
  floorCode: string;
2202
+ itemActions?: ({
2203
+ kind: "send";
2204
+ label: string;
2205
+ value?: string | undefined;
2206
+ visibleValue?: string | undefined;
2207
+ } | {
2208
+ url: string;
2209
+ kind: "link";
2210
+ label: string;
2211
+ })[] | undefined;
1623
2212
  }, {
1624
2213
  floorName: string;
1625
2214
  businessCategories: string[];
1626
2215
  merchantCount: number;
1627
2216
  floorCode: string;
2217
+ itemActions?: ({
2218
+ kind: "send";
2219
+ label: string;
2220
+ value?: string | undefined;
2221
+ visibleValue?: string | undefined;
2222
+ } | {
2223
+ url: string;
2224
+ kind: "link";
2225
+ label: string;
2226
+ })[] | undefined;
1628
2227
  }>, "many">;
1629
2228
  }, "strip", zod.ZodTypeAny, {
1630
2229
  buildingName: string;
@@ -1634,6 +2233,16 @@ declare const shoppingGuideCards: {
1634
2233
  businessCategories: string[];
1635
2234
  merchantCount: number;
1636
2235
  floorCode: string;
2236
+ itemActions?: ({
2237
+ kind: "send";
2238
+ label: string;
2239
+ value?: string | undefined;
2240
+ visibleValue?: string | undefined;
2241
+ } | {
2242
+ url: string;
2243
+ kind: "link";
2244
+ label: string;
2245
+ })[] | undefined;
1637
2246
  }[];
1638
2247
  }, {
1639
2248
  buildingName: string;
@@ -1643,13 +2252,22 @@ declare const shoppingGuideCards: {
1643
2252
  businessCategories: string[];
1644
2253
  merchantCount: number;
1645
2254
  floorCode: string;
2255
+ itemActions?: ({
2256
+ kind: "send";
2257
+ label: string;
2258
+ value?: string | undefined;
2259
+ visibleValue?: string | undefined;
2260
+ } | {
2261
+ url: string;
2262
+ kind: "link";
2263
+ label: string;
2264
+ })[] | undefined;
1646
2265
  }[];
1647
2266
  }>, "many">;
1648
2267
  observedAt: zod.ZodString;
1649
2268
  }, "strip", zod.ZodTypeAny, {
1650
2269
  mallId: string;
1651
2270
  observedAt: string;
1652
- mallName: string;
1653
2271
  buildings: {
1654
2272
  buildingName: string;
1655
2273
  buildingCode: string;
@@ -1658,12 +2276,22 @@ declare const shoppingGuideCards: {
1658
2276
  businessCategories: string[];
1659
2277
  merchantCount: number;
1660
2278
  floorCode: string;
2279
+ itemActions?: ({
2280
+ kind: "send";
2281
+ label: string;
2282
+ value?: string | undefined;
2283
+ visibleValue?: string | undefined;
2284
+ } | {
2285
+ url: string;
2286
+ kind: "link";
2287
+ label: string;
2288
+ })[] | undefined;
1661
2289
  }[];
1662
2290
  }[];
2291
+ mallName: string;
1663
2292
  }, {
1664
2293
  mallId: string;
1665
2294
  observedAt: string;
1666
- mallName: string;
1667
2295
  buildings: {
1668
2296
  buildingName: string;
1669
2297
  buildingCode: string;
@@ -1672,8 +2300,19 @@ declare const shoppingGuideCards: {
1672
2300
  businessCategories: string[];
1673
2301
  merchantCount: number;
1674
2302
  floorCode: string;
2303
+ itemActions?: ({
2304
+ kind: "send";
2305
+ label: string;
2306
+ value?: string | undefined;
2307
+ visibleValue?: string | undefined;
2308
+ } | {
2309
+ url: string;
2310
+ kind: "link";
2311
+ label: string;
2312
+ })[] | undefined;
1675
2313
  }[];
1676
2314
  }[];
2315
+ mallName: string;
1677
2316
  }>>;
1678
2317
  readonly 'nearby-mall-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1679
2318
  query: zod.ZodOptional<zod.ZodString>;
@@ -1692,19 +2331,34 @@ declare const shoppingGuideCards: {
1692
2331
  code: "unknown" | "open" | "closed";
1693
2332
  label: string;
1694
2333
  }>;
1695
- itemActions: zod.ZodArray<zod.ZodObject<{
1696
- actionId: zod.ZodString;
2334
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
2335
+ kind: zod.ZodLiteral<"send">;
1697
2336
  label: zod.ZodString;
1698
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2337
+ value: zod.ZodOptional<zod.ZodString>;
2338
+ visibleValue: zod.ZodOptional<zod.ZodString>;
1699
2339
  }, "strip", zod.ZodTypeAny, {
1700
- actionId: string;
2340
+ kind: "send";
1701
2341
  label: string;
1702
- input?: Record<string, unknown> | undefined;
2342
+ value?: string | undefined;
2343
+ visibleValue?: string | undefined;
1703
2344
  }, {
1704
- actionId: string;
2345
+ kind: "send";
1705
2346
  label: string;
1706
- input?: Record<string, unknown> | undefined;
1707
- }>, "many">;
2347
+ value?: string | undefined;
2348
+ visibleValue?: string | undefined;
2349
+ }>, zod.ZodObject<{
2350
+ kind: zod.ZodLiteral<"link">;
2351
+ label: zod.ZodString;
2352
+ url: zod.ZodString;
2353
+ }, "strip", zod.ZodTypeAny, {
2354
+ url: string;
2355
+ kind: "link";
2356
+ label: string;
2357
+ }, {
2358
+ url: string;
2359
+ kind: "link";
2360
+ label: string;
2361
+ }>]>, "many">;
1708
2362
  }, "strip", zod.ZodTypeAny, {
1709
2363
  status: {
1710
2364
  code: "unknown" | "open" | "closed";
@@ -1712,11 +2366,16 @@ declare const shoppingGuideCards: {
1712
2366
  };
1713
2367
  name: string;
1714
2368
  mallId: string;
1715
- itemActions: {
1716
- actionId: string;
2369
+ itemActions: ({
2370
+ kind: "send";
1717
2371
  label: string;
1718
- input?: Record<string, unknown> | undefined;
1719
- }[];
2372
+ value?: string | undefined;
2373
+ visibleValue?: string | undefined;
2374
+ } | {
2375
+ url: string;
2376
+ kind: "link";
2377
+ label: string;
2378
+ })[];
1720
2379
  address: string;
1721
2380
  distanceKm?: number | undefined;
1722
2381
  }, {
@@ -1726,11 +2385,16 @@ declare const shoppingGuideCards: {
1726
2385
  };
1727
2386
  name: string;
1728
2387
  mallId: string;
1729
- itemActions: {
1730
- actionId: string;
2388
+ itemActions: ({
2389
+ kind: "send";
1731
2390
  label: string;
1732
- input?: Record<string, unknown> | undefined;
1733
- }[];
2391
+ value?: string | undefined;
2392
+ visibleValue?: string | undefined;
2393
+ } | {
2394
+ url: string;
2395
+ kind: "link";
2396
+ label: string;
2397
+ })[];
1734
2398
  address: string;
1735
2399
  distanceKm?: number | undefined;
1736
2400
  }>, "many">;
@@ -1742,11 +2406,16 @@ declare const shoppingGuideCards: {
1742
2406
  };
1743
2407
  name: string;
1744
2408
  mallId: string;
1745
- itemActions: {
1746
- actionId: string;
2409
+ itemActions: ({
2410
+ kind: "send";
1747
2411
  label: string;
1748
- input?: Record<string, unknown> | undefined;
1749
- }[];
2412
+ value?: string | undefined;
2413
+ visibleValue?: string | undefined;
2414
+ } | {
2415
+ url: string;
2416
+ kind: "link";
2417
+ label: string;
2418
+ })[];
1750
2419
  address: string;
1751
2420
  distanceKm?: number | undefined;
1752
2421
  }[];
@@ -1759,54 +2428,21 @@ declare const shoppingGuideCards: {
1759
2428
  };
1760
2429
  name: string;
1761
2430
  mallId: string;
1762
- itemActions: {
1763
- actionId: string;
2431
+ itemActions: ({
2432
+ kind: "send";
1764
2433
  label: string;
1765
- input?: Record<string, unknown> | undefined;
1766
- }[];
2434
+ value?: string | undefined;
2435
+ visibleValue?: string | undefined;
2436
+ } | {
2437
+ url: string;
2438
+ kind: "link";
2439
+ label: string;
2440
+ })[];
1767
2441
  address: string;
1768
2442
  distanceKm?: number | undefined;
1769
2443
  }[];
1770
2444
  query?: string | undefined;
1771
2445
  }>>;
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
2446
  readonly 'human-guide-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
1811
2447
  merchantId: zod.ZodString;
1812
2448
  merchantName: zod.ZodString;
@@ -1826,87 +2462,122 @@ declare const shoppingGuideCards: {
1826
2462
  channel: string;
1827
2463
  }>, "many">>;
1828
2464
  available: zod.ZodBoolean;
1829
- itemActions: zod.ZodArray<zod.ZodObject<{
1830
- actionId: zod.ZodString;
2465
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
2466
+ kind: zod.ZodLiteral<"send">;
1831
2467
  label: zod.ZodString;
1832
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2468
+ value: zod.ZodOptional<zod.ZodString>;
2469
+ visibleValue: zod.ZodOptional<zod.ZodString>;
1833
2470
  }, "strip", zod.ZodTypeAny, {
1834
- actionId: string;
2471
+ kind: "send";
1835
2472
  label: string;
1836
- input?: Record<string, unknown> | undefined;
2473
+ value?: string | undefined;
2474
+ visibleValue?: string | undefined;
1837
2475
  }, {
1838
- actionId: string;
2476
+ kind: "send";
1839
2477
  label: string;
1840
- input?: Record<string, unknown> | undefined;
1841
- }>, "many">;
2478
+ value?: string | undefined;
2479
+ visibleValue?: string | undefined;
2480
+ }>, zod.ZodObject<{
2481
+ kind: zod.ZodLiteral<"link">;
2482
+ label: zod.ZodString;
2483
+ url: zod.ZodString;
2484
+ }, "strip", zod.ZodTypeAny, {
2485
+ url: string;
2486
+ kind: "link";
2487
+ label: string;
2488
+ }, {
2489
+ url: string;
2490
+ kind: "link";
2491
+ label: string;
2492
+ }>]>, "many">;
1842
2493
  }, "strip", zod.ZodTypeAny, {
1843
2494
  name: string;
1844
- itemActions: {
1845
- actionId: string;
2495
+ available: boolean;
2496
+ itemActions: ({
2497
+ kind: "send";
1846
2498
  label: string;
1847
- input?: Record<string, unknown> | undefined;
1848
- }[];
2499
+ value?: string | undefined;
2500
+ visibleValue?: string | undefined;
2501
+ } | {
2502
+ url: string;
2503
+ kind: "link";
2504
+ label: string;
2505
+ })[];
1849
2506
  guideId: string;
1850
- available: boolean;
2507
+ title?: string | undefined;
1851
2508
  avatarUrl?: string | undefined;
1852
2509
  contactInfo?: {
1853
2510
  value: string;
1854
2511
  channel: string;
1855
2512
  }[] | undefined;
1856
- title?: string | undefined;
1857
2513
  }, {
1858
2514
  name: string;
1859
- itemActions: {
1860
- actionId: string;
2515
+ available: boolean;
2516
+ itemActions: ({
2517
+ kind: "send";
1861
2518
  label: string;
1862
- input?: Record<string, unknown> | undefined;
1863
- }[];
2519
+ value?: string | undefined;
2520
+ visibleValue?: string | undefined;
2521
+ } | {
2522
+ url: string;
2523
+ kind: "link";
2524
+ label: string;
2525
+ })[];
1864
2526
  guideId: string;
1865
- available: boolean;
2527
+ title?: string | undefined;
1866
2528
  avatarUrl?: string | undefined;
1867
2529
  contactInfo?: {
1868
2530
  value: string;
1869
2531
  channel: string;
1870
2532
  }[] | undefined;
1871
- title?: string | undefined;
1872
2533
  }>, "many">;
1873
2534
  }, "strip", zod.ZodTypeAny, {
1874
2535
  merchantId: string;
1875
2536
  merchantName: string;
1876
2537
  guides: {
1877
2538
  name: string;
1878
- itemActions: {
1879
- actionId: string;
2539
+ available: boolean;
2540
+ itemActions: ({
2541
+ kind: "send";
1880
2542
  label: string;
1881
- input?: Record<string, unknown> | undefined;
1882
- }[];
2543
+ value?: string | undefined;
2544
+ visibleValue?: string | undefined;
2545
+ } | {
2546
+ url: string;
2547
+ kind: "link";
2548
+ label: string;
2549
+ })[];
1883
2550
  guideId: string;
1884
- available: boolean;
2551
+ title?: string | undefined;
1885
2552
  avatarUrl?: string | undefined;
1886
2553
  contactInfo?: {
1887
2554
  value: string;
1888
2555
  channel: string;
1889
2556
  }[] | undefined;
1890
- title?: string | undefined;
1891
2557
  }[];
1892
2558
  }, {
1893
2559
  merchantId: string;
1894
2560
  merchantName: string;
1895
2561
  guides: {
1896
2562
  name: string;
1897
- itemActions: {
1898
- actionId: string;
2563
+ available: boolean;
2564
+ itemActions: ({
2565
+ kind: "send";
1899
2566
  label: string;
1900
- input?: Record<string, unknown> | undefined;
1901
- }[];
2567
+ value?: string | undefined;
2568
+ visibleValue?: string | undefined;
2569
+ } | {
2570
+ url: string;
2571
+ kind: "link";
2572
+ label: string;
2573
+ })[];
1902
2574
  guideId: string;
1903
- available: boolean;
2575
+ title?: string | undefined;
1904
2576
  avatarUrl?: string | undefined;
1905
2577
  contactInfo?: {
1906
2578
  value: string;
1907
2579
  channel: string;
1908
2580
  }[] | undefined;
1909
- title?: string | undefined;
1910
2581
  }[];
1911
2582
  }>>;
1912
2583
  readonly 'location-handoff': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
@@ -1936,25 +2607,40 @@ declare const shoppingGuideCards: {
1936
2607
  provider: zod.ZodEnum<["amap", "builtin"]>;
1937
2608
  launchParams: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
1938
2609
  }, "strip", zod.ZodTypeAny, {
1939
- provider: "amap" | "builtin";
2610
+ provider: "builtin" | "amap";
1940
2611
  launchParams?: Record<string, string> | undefined;
1941
2612
  }, {
1942
- provider: "amap" | "builtin";
2613
+ provider: "builtin" | "amap";
1943
2614
  launchParams?: Record<string, string> | undefined;
1944
2615
  }>>;
1945
- itemActions: zod.ZodArray<zod.ZodObject<{
1946
- actionId: zod.ZodString;
2616
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
2617
+ kind: zod.ZodLiteral<"send">;
1947
2618
  label: zod.ZodString;
1948
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
2619
+ value: zod.ZodOptional<zod.ZodString>;
2620
+ visibleValue: zod.ZodOptional<zod.ZodString>;
1949
2621
  }, "strip", zod.ZodTypeAny, {
1950
- actionId: string;
2622
+ kind: "send";
1951
2623
  label: string;
1952
- input?: Record<string, unknown> | undefined;
2624
+ value?: string | undefined;
2625
+ visibleValue?: string | undefined;
1953
2626
  }, {
1954
- actionId: string;
2627
+ kind: "send";
1955
2628
  label: string;
1956
- input?: Record<string, unknown> | undefined;
1957
- }>, "many">;
2629
+ value?: string | undefined;
2630
+ visibleValue?: string | undefined;
2631
+ }>, zod.ZodObject<{
2632
+ kind: zod.ZodLiteral<"link">;
2633
+ label: zod.ZodString;
2634
+ url: zod.ZodString;
2635
+ }, "strip", zod.ZodTypeAny, {
2636
+ url: string;
2637
+ kind: "link";
2638
+ label: string;
2639
+ }, {
2640
+ url: string;
2641
+ kind: "link";
2642
+ label: string;
2643
+ }>]>, "many">;
1958
2644
  }, "strip", zod.ZodTypeAny, {
1959
2645
  merchantId: string;
1960
2646
  location: {
@@ -1964,15 +2650,20 @@ declare const shoppingGuideCards: {
1964
2650
  unitName?: string | undefined;
1965
2651
  poiId?: string | undefined;
1966
2652
  };
1967
- itemActions: {
1968
- actionId: string;
2653
+ itemActions: ({
2654
+ kind: "send";
1969
2655
  label: string;
1970
- input?: Record<string, unknown> | undefined;
1971
- }[];
2656
+ value?: string | undefined;
2657
+ visibleValue?: string | undefined;
2658
+ } | {
2659
+ url: string;
2660
+ kind: "link";
2661
+ label: string;
2662
+ })[];
1972
2663
  merchantName: string;
1973
2664
  mapUrl?: string | undefined;
1974
2665
  navigation?: {
1975
- provider: "amap" | "builtin";
2666
+ provider: "builtin" | "amap";
1976
2667
  launchParams?: Record<string, string> | undefined;
1977
2668
  } | undefined;
1978
2669
  }, {
@@ -1984,113 +2675,350 @@ declare const shoppingGuideCards: {
1984
2675
  unitName?: string | undefined;
1985
2676
  poiId?: string | undefined;
1986
2677
  };
1987
- itemActions: {
1988
- actionId: string;
2678
+ itemActions: ({
2679
+ kind: "send";
1989
2680
  label: string;
1990
- input?: Record<string, unknown> | undefined;
1991
- }[];
2681
+ value?: string | undefined;
2682
+ visibleValue?: string | undefined;
2683
+ } | {
2684
+ url: string;
2685
+ kind: "link";
2686
+ label: string;
2687
+ })[];
1992
2688
  merchantName: string;
1993
2689
  mapUrl?: string | undefined;
1994
2690
  navigation?: {
1995
- provider: "amap" | "builtin";
2691
+ provider: "builtin" | "amap";
1996
2692
  launchParams?: Record<string, string> | undefined;
1997
2693
  } | undefined;
1998
2694
  }>>;
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<{
2695
+ readonly 'recommend-merchants': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
2696
+ summary: zod.ZodOptional<zod.ZodString>;
2697
+ categoryTabs: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2698
+ code: zod.ZodString;
2699
+ name: zod.ZodString;
2700
+ }, "strip", zod.ZodTypeAny, {
2701
+ code: string;
2702
+ name: string;
2703
+ }, {
2704
+ code: string;
2705
+ name: string;
2706
+ }>, "many">>;
2707
+ items: zod.ZodArray<zod.ZodObject<{
2708
+ merchantId: zod.ZodString;
2709
+ name: zod.ZodString;
2710
+ logoUrl: zod.ZodOptional<zod.ZodString>;
2711
+ coverUrl: zod.ZodOptional<zod.ZodString>;
2712
+ brand: zod.ZodOptional<zod.ZodString>;
2713
+ businessCategories: zod.ZodArray<zod.ZodString, "many">;
2714
+ location: zod.ZodObject<{
2715
+ buildingName: zod.ZodOptional<zod.ZodString>;
2716
+ floorName: zod.ZodOptional<zod.ZodString>;
2717
+ unitName: zod.ZodOptional<zod.ZodString>;
2718
+ displayText: zod.ZodString;
2719
+ poiId: zod.ZodOptional<zod.ZodString>;
2720
+ }, "strip", zod.ZodTypeAny, {
2721
+ displayText: string;
2722
+ buildingName?: string | undefined;
2723
+ floorName?: string | undefined;
2724
+ unitName?: string | undefined;
2725
+ poiId?: string | undefined;
2726
+ }, {
2727
+ displayText: string;
2728
+ buildingName?: string | undefined;
2729
+ floorName?: string | undefined;
2730
+ unitName?: string | undefined;
2731
+ poiId?: string | undefined;
2732
+ }>;
2733
+ status: zod.ZodObject<{
2734
+ code: zod.ZodEnum<["enabled", "disabled", "unknown"]>;
2735
+ label: zod.ZodString;
2736
+ observedAt: zod.ZodString;
2737
+ }, "strip", zod.ZodTypeAny, {
2738
+ code: "enabled" | "unknown" | "disabled";
2739
+ label: string;
2740
+ observedAt: string;
2741
+ }, {
2742
+ code: "enabled" | "unknown" | "disabled";
2743
+ label: string;
2744
+ observedAt: string;
2745
+ }>;
2746
+ description: zod.ZodOptional<zod.ZodString>;
2747
+ contactInfo: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2748
+ channel: zod.ZodString;
2749
+ value: zod.ZodString;
2750
+ }, "strip", zod.ZodTypeAny, {
2751
+ value: string;
2752
+ channel: string;
2753
+ }, {
2754
+ value: string;
2755
+ channel: string;
2756
+ }>, "many">>;
2757
+ services: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
2758
+ operatingStatus: zod.ZodOptional<zod.ZodString>;
2759
+ rating: zod.ZodOptional<zod.ZodString>;
2760
+ avgSpend: zod.ZodOptional<zod.ZodString>;
2761
+ promotionFacts: zod.ZodArray<zod.ZodString, "many">;
2762
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
2763
+ kind: zod.ZodLiteral<"send">;
2764
+ label: zod.ZodString;
2765
+ value: zod.ZodOptional<zod.ZodString>;
2766
+ visibleValue: zod.ZodOptional<zod.ZodString>;
2767
+ }, "strip", zod.ZodTypeAny, {
2768
+ kind: "send";
2769
+ label: string;
2770
+ value?: string | undefined;
2771
+ visibleValue?: string | undefined;
2772
+ }, {
2773
+ kind: "send";
2774
+ label: string;
2775
+ value?: string | undefined;
2776
+ visibleValue?: string | undefined;
2777
+ }>, zod.ZodObject<{
2778
+ kind: zod.ZodLiteral<"link">;
2779
+ label: zod.ZodString;
2780
+ url: zod.ZodString;
2781
+ }, "strip", zod.ZodTypeAny, {
2782
+ url: string;
2783
+ kind: "link";
2784
+ label: string;
2785
+ }, {
2786
+ url: string;
2787
+ kind: "link";
2788
+ label: string;
2789
+ }>]>, "many">;
2790
+ }, "strip", zod.ZodTypeAny, {
2791
+ status: {
2792
+ code: "enabled" | "unknown" | "disabled";
2793
+ label: string;
2794
+ observedAt: string;
2795
+ };
2796
+ name: string;
2797
+ merchantId: string;
2798
+ location: {
2799
+ displayText: string;
2800
+ buildingName?: string | undefined;
2801
+ floorName?: string | undefined;
2802
+ unitName?: string | undefined;
2803
+ poiId?: string | undefined;
2804
+ };
2805
+ itemActions: ({
2806
+ kind: "send";
2807
+ label: string;
2808
+ value?: string | undefined;
2809
+ visibleValue?: string | undefined;
2810
+ } | {
2811
+ url: string;
2812
+ kind: "link";
2813
+ label: string;
2814
+ })[];
2815
+ businessCategories: string[];
2816
+ promotionFacts: string[];
2817
+ description?: string | undefined;
2818
+ services?: string[] | undefined;
2819
+ brand?: string | undefined;
2820
+ logoUrl?: string | undefined;
2821
+ coverUrl?: string | undefined;
2822
+ contactInfo?: {
2823
+ value: string;
2824
+ channel: string;
2825
+ }[] | undefined;
2826
+ operatingStatus?: string | undefined;
2827
+ rating?: string | undefined;
2828
+ avgSpend?: string | undefined;
2829
+ }, {
2830
+ status: {
2831
+ code: "enabled" | "unknown" | "disabled";
2832
+ label: string;
2833
+ observedAt: string;
2834
+ };
2835
+ name: string;
2836
+ merchantId: string;
2837
+ location: {
2838
+ displayText: string;
2839
+ buildingName?: string | undefined;
2840
+ floorName?: string | undefined;
2841
+ unitName?: string | undefined;
2842
+ poiId?: string | undefined;
2843
+ };
2844
+ itemActions: ({
2845
+ kind: "send";
2846
+ label: string;
2847
+ value?: string | undefined;
2848
+ visibleValue?: string | undefined;
2849
+ } | {
2850
+ url: string;
2851
+ kind: "link";
2852
+ label: string;
2853
+ })[];
2854
+ businessCategories: string[];
2855
+ promotionFacts: string[];
2856
+ description?: string | undefined;
2857
+ services?: string[] | undefined;
2858
+ brand?: string | undefined;
2859
+ logoUrl?: string | undefined;
2860
+ coverUrl?: string | undefined;
2861
+ contactInfo?: {
2862
+ value: string;
2863
+ channel: string;
2864
+ }[] | undefined;
2865
+ operatingStatus?: string | undefined;
2866
+ rating?: string | undefined;
2867
+ avgSpend?: string | undefined;
2868
+ }>, "many">;
2869
+ noResultsReason: zod.ZodOptional<zod.ZodString>;
2870
+ observedAt: zod.ZodString;
2871
+ }, "strip", zod.ZodTypeAny, {
2872
+ observedAt: string;
2873
+ items: {
2874
+ status: {
2875
+ code: "enabled" | "unknown" | "disabled";
2876
+ label: string;
2877
+ observedAt: string;
2878
+ };
2879
+ name: string;
2880
+ merchantId: string;
2881
+ location: {
2882
+ displayText: string;
2883
+ buildingName?: string | undefined;
2884
+ floorName?: string | undefined;
2885
+ unitName?: string | undefined;
2886
+ poiId?: string | undefined;
2887
+ };
2888
+ itemActions: ({
2889
+ kind: "send";
2890
+ label: string;
2891
+ value?: string | undefined;
2892
+ visibleValue?: string | undefined;
2893
+ } | {
2894
+ url: string;
2895
+ kind: "link";
2896
+ label: string;
2897
+ })[];
2898
+ businessCategories: string[];
2899
+ promotionFacts: string[];
2900
+ description?: string | undefined;
2901
+ services?: string[] | undefined;
2902
+ brand?: string | undefined;
2903
+ logoUrl?: string | undefined;
2904
+ coverUrl?: string | undefined;
2905
+ contactInfo?: {
2906
+ value: string;
2907
+ channel: string;
2908
+ }[] | undefined;
2909
+ operatingStatus?: string | undefined;
2910
+ rating?: string | undefined;
2911
+ avgSpend?: string | undefined;
2912
+ }[];
2913
+ summary?: string | undefined;
2914
+ noResultsReason?: string | undefined;
2915
+ categoryTabs?: {
2916
+ code: string;
2917
+ name: string;
2918
+ }[] | undefined;
2919
+ }, {
2920
+ observedAt: string;
2921
+ items: {
2922
+ status: {
2923
+ code: "enabled" | "unknown" | "disabled";
2924
+ label: string;
2925
+ observedAt: string;
2926
+ };
2927
+ name: string;
2928
+ merchantId: string;
2929
+ location: {
2930
+ displayText: string;
2931
+ buildingName?: string | undefined;
2932
+ floorName?: string | undefined;
2933
+ unitName?: string | undefined;
2934
+ poiId?: string | undefined;
2935
+ };
2936
+ itemActions: ({
2937
+ kind: "send";
2938
+ label: string;
2939
+ value?: string | undefined;
2940
+ visibleValue?: string | undefined;
2941
+ } | {
2942
+ url: string;
2943
+ kind: "link";
2944
+ label: string;
2945
+ })[];
2946
+ businessCategories: string[];
2947
+ promotionFacts: string[];
2948
+ description?: string | undefined;
2949
+ services?: string[] | undefined;
2950
+ brand?: string | undefined;
2951
+ logoUrl?: string | undefined;
2952
+ coverUrl?: string | undefined;
2953
+ contactInfo?: {
2954
+ value: string;
2955
+ channel: string;
2956
+ }[] | undefined;
2957
+ operatingStatus?: string | undefined;
2958
+ rating?: string | undefined;
2959
+ avgSpend?: string | undefined;
2960
+ }[];
2961
+ summary?: string | undefined;
2962
+ noResultsReason?: string | undefined;
2963
+ categoryTabs?: {
2964
+ code: string;
2965
+ name: string;
2966
+ }[] | undefined;
2967
+ }>>;
2968
+ };
2969
+
2970
+ type ShoppingGuideToolIds = 'search-shops' | 'get-shop' | 'mall-context' | 'floor-shops' | 'category-shops' | 'mall-overview';
2971
+ declare function createShoppingGuideTools(opts: {
2972
+ /** 注册期绑定的 ServerContext 读取器(模块顶层单例持有;execute 内获取) */
2973
+ getCtx: () => ServerContext;
2974
+ }): {
2975
+ readonly searchShops: _mastra_core_tools.Tool<{
2976
+ keywords?: string[] | undefined;
2048
2977
  pageSize?: string | undefined;
2049
2978
  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>;
2979
+ buildingCode?: string | undefined;
2980
+ floorCode?: string | undefined;
2981
+ businessCategory?: string | undefined;
2982
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "search-shops", unknown>;
2983
+ readonly getShop: _mastra_core_tools.Tool<{
2984
+ shopId: string;
2985
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "get-shop", unknown>;
2986
+ readonly mallContext: _mastra_core_tools.Tool<{
2987
+ mallId: string;
2988
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "mall-context", unknown>;
2989
+ readonly floorShops: _mastra_core_tools.Tool<{
2990
+ floorQuery: string;
2991
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "floor-shops", unknown>;
2992
+ readonly categoryShops: _mastra_core_tools.Tool<{
2993
+ categoryQuery: string;
2994
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "category-shops", unknown>;
2995
+ readonly mallOverview: _mastra_core_tools.Tool<{
2996
+ mallId: string;
2997
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "mall-overview", unknown>;
2063
2998
  };
2064
2999
  type ShoppingGuideTools = ReturnType<typeof createShoppingGuideTools>;
2065
3000
 
2066
3001
  /**
2067
- * 导购 Port 聚合(011 S7):joycity adapter + 本地 adapter 组合。
2068
- * 模块内工具经 resolveShoppingPorts(ctx) 解析;服务实例模块包顶层单例。
3002
+ * 导购 Port 聚合解析(017 槽位原子化)+ mall-directory 消费接口。
3003
+ * 远程检索域四槽独立解析(catalog/shops/categories/directory);navigation 恒本地。
3004
+ * - integrations 在场 → 四槽独立解析远程检索域;预期缺席或 PROVIDER_NOT_IMPLEMENTED
3005
+ * → 本地空数据兜底(guide 域远程检索为增强面,缺席不阻断导览问答)
3006
+ * ——与 member 的 fail-fast 语义区分:guide 本地知识库可独立服务。
3007
+ * - 未装配 integrations(模块单测/本地演示):本地知识库 + 空数据 adapter。
2069
3008
  */
2070
3009
 
2071
- declare const SHOPPING_GUIDE_PROVIDER_TEMPLATE_ID = "joycity-commercial@1";
2072
3010
  interface ShoppingGuidePorts {
2073
3011
  catalog: CatalogQueryPort;
2074
- merchant: MerchantDirectoryQueryPort;
3012
+ shop: ShopDirectoryQueryPort;
2075
3013
  category: CommercialCategoryQueryPort;
2076
3014
  directory: MallDirectoryQueryPort;
2077
- assistance: AssistanceQueryPort;
2078
3015
  navigation: NavigationPort;
2079
3016
  }
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;
3017
+ declare function resolveShoppingGuidePorts(reqCtx: RequestContext, ctx: ServerContext): Promise<ShoppingGuidePorts>;
2089
3018
 
2090
3019
  declare const serverModule: {
2091
3020
  declaration: {
2092
- componentId: string;
2093
- features: string[];
3021
+ moduleId: string;
2094
3022
  };
2095
3023
  cards: {
2096
3024
  'product-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
@@ -2256,31 +3184,46 @@ declare const serverModule: {
2256
3184
  code: string;
2257
3185
  label: string;
2258
3186
  observedAt: string;
2259
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3187
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2260
3188
  value?: string | undefined;
2261
3189
  expiresAt?: string | undefined;
2262
3190
  }, {
2263
3191
  code: string;
2264
3192
  label: string;
2265
3193
  observedAt: string;
2266
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3194
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2267
3195
  value?: string | undefined;
2268
3196
  expiresAt?: string | undefined;
2269
3197
  }>, "many">>;
2270
3198
  caveats: zod.ZodArray<zod.ZodString, "many">;
2271
- itemActions: zod.ZodArray<zod.ZodObject<{
2272
- actionId: zod.ZodString;
3199
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
3200
+ kind: zod.ZodLiteral<"send">;
2273
3201
  label: zod.ZodString;
2274
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
3202
+ value: zod.ZodOptional<zod.ZodString>;
3203
+ visibleValue: zod.ZodOptional<zod.ZodString>;
2275
3204
  }, "strip", zod.ZodTypeAny, {
2276
- actionId: string;
3205
+ kind: "send";
2277
3206
  label: string;
2278
- input?: Record<string, unknown> | undefined;
3207
+ value?: string | undefined;
3208
+ visibleValue?: string | undefined;
2279
3209
  }, {
2280
- actionId: string;
3210
+ kind: "send";
2281
3211
  label: string;
2282
- input?: Record<string, unknown> | undefined;
2283
- }>, "many">;
3212
+ value?: string | undefined;
3213
+ visibleValue?: string | undefined;
3214
+ }>, zod.ZodObject<{
3215
+ kind: zod.ZodLiteral<"link">;
3216
+ label: zod.ZodString;
3217
+ url: zod.ZodString;
3218
+ }, "strip", zod.ZodTypeAny, {
3219
+ url: string;
3220
+ kind: "link";
3221
+ label: string;
3222
+ }, {
3223
+ url: string;
3224
+ kind: "link";
3225
+ label: string;
3226
+ }>]>, "many">;
2284
3227
  }, "strip", zod.ZodTypeAny, {
2285
3228
  name: string;
2286
3229
  merchant: {
@@ -2321,11 +3264,16 @@ declare const serverModule: {
2321
3264
  };
2322
3265
  badges: string[];
2323
3266
  caveats: string[];
2324
- itemActions: {
2325
- actionId: string;
3267
+ itemActions: ({
3268
+ kind: "send";
2326
3269
  label: string;
2327
- input?: Record<string, unknown> | undefined;
2328
- }[];
3270
+ value?: string | undefined;
3271
+ visibleValue?: string | undefined;
3272
+ } | {
3273
+ url: string;
3274
+ kind: "link";
3275
+ label: string;
3276
+ })[];
2329
3277
  brand?: string | undefined;
2330
3278
  imageUrl?: string | undefined;
2331
3279
  reasons?: {
@@ -2336,7 +3284,7 @@ declare const serverModule: {
2336
3284
  code: string;
2337
3285
  label: string;
2338
3286
  observedAt: string;
2339
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3287
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2340
3288
  value?: string | undefined;
2341
3289
  expiresAt?: string | undefined;
2342
3290
  }[] | undefined;
@@ -2380,11 +3328,16 @@ declare const serverModule: {
2380
3328
  };
2381
3329
  badges: string[];
2382
3330
  caveats: string[];
2383
- itemActions: {
2384
- actionId: string;
3331
+ itemActions: ({
3332
+ kind: "send";
2385
3333
  label: string;
2386
- input?: Record<string, unknown> | undefined;
2387
- }[];
3334
+ value?: string | undefined;
3335
+ visibleValue?: string | undefined;
3336
+ } | {
3337
+ url: string;
3338
+ kind: "link";
3339
+ label: string;
3340
+ })[];
2388
3341
  brand?: string | undefined;
2389
3342
  imageUrl?: string | undefined;
2390
3343
  reasons?: {
@@ -2395,7 +3348,7 @@ declare const serverModule: {
2395
3348
  code: string;
2396
3349
  label: string;
2397
3350
  observedAt: string;
2398
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3351
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2399
3352
  value?: string | undefined;
2400
3353
  expiresAt?: string | undefined;
2401
3354
  }[] | undefined;
@@ -2407,14 +3360,14 @@ declare const serverModule: {
2407
3360
  total: zod.ZodNumber;
2408
3361
  hasMore: zod.ZodBoolean;
2409
3362
  }, "strip", zod.ZodTypeAny, {
3363
+ total: number;
2410
3364
  pageSize: number;
2411
3365
  page: number;
2412
- total: number;
2413
3366
  hasMore: boolean;
2414
3367
  }, {
3368
+ total: number;
2415
3369
  pageSize: number;
2416
3370
  page: number;
2417
- total: number;
2418
3371
  hasMore: boolean;
2419
3372
  }>>;
2420
3373
  refinements: zod.ZodArray<zod.ZodObject<{
@@ -2469,11 +3422,16 @@ declare const serverModule: {
2469
3422
  };
2470
3423
  badges: string[];
2471
3424
  caveats: string[];
2472
- itemActions: {
2473
- actionId: string;
3425
+ itemActions: ({
3426
+ kind: "send";
2474
3427
  label: string;
2475
- input?: Record<string, unknown> | undefined;
2476
- }[];
3428
+ value?: string | undefined;
3429
+ visibleValue?: string | undefined;
3430
+ } | {
3431
+ url: string;
3432
+ kind: "link";
3433
+ label: string;
3434
+ })[];
2477
3435
  brand?: string | undefined;
2478
3436
  imageUrl?: string | undefined;
2479
3437
  reasons?: {
@@ -2484,7 +3442,7 @@ declare const serverModule: {
2484
3442
  code: string;
2485
3443
  label: string;
2486
3444
  observedAt: string;
2487
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3445
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2488
3446
  value?: string | undefined;
2489
3447
  expiresAt?: string | undefined;
2490
3448
  }[] | undefined;
@@ -2496,9 +3454,9 @@ declare const serverModule: {
2496
3454
  summary?: string | undefined;
2497
3455
  noResultsReason?: string | undefined;
2498
3456
  pageInfo?: {
3457
+ total: number;
2499
3458
  pageSize: number;
2500
3459
  page: number;
2501
- total: number;
2502
3460
  hasMore: boolean;
2503
3461
  } | undefined;
2504
3462
  }, {
@@ -2543,11 +3501,16 @@ declare const serverModule: {
2543
3501
  };
2544
3502
  badges: string[];
2545
3503
  caveats: string[];
2546
- itemActions: {
2547
- actionId: string;
3504
+ itemActions: ({
3505
+ kind: "send";
2548
3506
  label: string;
2549
- input?: Record<string, unknown> | undefined;
2550
- }[];
3507
+ value?: string | undefined;
3508
+ visibleValue?: string | undefined;
3509
+ } | {
3510
+ url: string;
3511
+ kind: "link";
3512
+ label: string;
3513
+ })[];
2551
3514
  brand?: string | undefined;
2552
3515
  imageUrl?: string | undefined;
2553
3516
  reasons?: {
@@ -2558,7 +3521,7 @@ declare const serverModule: {
2558
3521
  code: string;
2559
3522
  label: string;
2560
3523
  observedAt: string;
2561
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3524
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2562
3525
  value?: string | undefined;
2563
3526
  expiresAt?: string | undefined;
2564
3527
  }[] | undefined;
@@ -2570,9 +3533,9 @@ declare const serverModule: {
2570
3533
  summary?: string | undefined;
2571
3534
  noResultsReason?: string | undefined;
2572
3535
  pageInfo?: {
3536
+ total: number;
2573
3537
  pageSize: number;
2574
3538
  page: number;
2575
- total: number;
2576
3539
  hasMore: boolean;
2577
3540
  } | undefined;
2578
3541
  }>>;
@@ -2737,31 +3700,46 @@ declare const serverModule: {
2737
3700
  code: string;
2738
3701
  label: string;
2739
3702
  observedAt: string;
2740
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3703
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2741
3704
  value?: string | undefined;
2742
3705
  expiresAt?: string | undefined;
2743
3706
  }, {
2744
3707
  code: string;
2745
3708
  label: string;
2746
3709
  observedAt: string;
2747
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3710
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2748
3711
  value?: string | undefined;
2749
3712
  expiresAt?: string | undefined;
2750
3713
  }>, "many">;
2751
3714
  humanGuideAvailable: zod.ZodBoolean;
2752
- itemActions: zod.ZodArray<zod.ZodObject<{
2753
- actionId: zod.ZodString;
3715
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
3716
+ kind: zod.ZodLiteral<"send">;
3717
+ label: zod.ZodString;
3718
+ value: zod.ZodOptional<zod.ZodString>;
3719
+ visibleValue: zod.ZodOptional<zod.ZodString>;
3720
+ }, "strip", zod.ZodTypeAny, {
3721
+ kind: "send";
3722
+ label: string;
3723
+ value?: string | undefined;
3724
+ visibleValue?: string | undefined;
3725
+ }, {
3726
+ kind: "send";
3727
+ label: string;
3728
+ value?: string | undefined;
3729
+ visibleValue?: string | undefined;
3730
+ }>, zod.ZodObject<{
3731
+ kind: zod.ZodLiteral<"link">;
2754
3732
  label: zod.ZodString;
2755
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
3733
+ url: zod.ZodString;
2756
3734
  }, "strip", zod.ZodTypeAny, {
2757
- actionId: string;
3735
+ url: string;
3736
+ kind: "link";
2758
3737
  label: string;
2759
- input?: Record<string, unknown> | undefined;
2760
3738
  }, {
2761
- actionId: string;
3739
+ url: string;
3740
+ kind: "link";
2762
3741
  label: string;
2763
- input?: Record<string, unknown> | undefined;
2764
- }>, "many">;
3742
+ }>]>, "many">;
2765
3743
  }, "strip", zod.ZodTypeAny, {
2766
3744
  name: string;
2767
3745
  attributes: {
@@ -2808,15 +3786,20 @@ declare const serverModule: {
2808
3786
  code: string;
2809
3787
  label: string;
2810
3788
  observedAt: string;
2811
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3789
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2812
3790
  value?: string | undefined;
2813
3791
  expiresAt?: string | undefined;
2814
3792
  }[];
2815
- itemActions: {
2816
- actionId: string;
3793
+ itemActions: ({
3794
+ kind: "send";
2817
3795
  label: string;
2818
- input?: Record<string, unknown> | undefined;
2819
- }[];
3796
+ value?: string | undefined;
3797
+ visibleValue?: string | undefined;
3798
+ } | {
3799
+ url: string;
3800
+ kind: "link";
3801
+ label: string;
3802
+ })[];
2820
3803
  promotionFacts: string[];
2821
3804
  imageUrls: string[];
2822
3805
  humanGuideAvailable: boolean;
@@ -2868,24 +3851,41 @@ declare const serverModule: {
2868
3851
  code: string;
2869
3852
  label: string;
2870
3853
  observedAt: string;
2871
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3854
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2872
3855
  value?: string | undefined;
2873
3856
  expiresAt?: string | undefined;
2874
3857
  }[];
2875
- itemActions: {
2876
- actionId: string;
3858
+ itemActions: ({
3859
+ kind: "send";
2877
3860
  label: string;
2878
- input?: Record<string, unknown> | undefined;
2879
- }[];
3861
+ value?: string | undefined;
3862
+ visibleValue?: string | undefined;
3863
+ } | {
3864
+ url: string;
3865
+ kind: "link";
3866
+ label: string;
3867
+ })[];
2880
3868
  promotionFacts: string[];
2881
3869
  imageUrls: string[];
2882
3870
  humanGuideAvailable: boolean;
2883
3871
  description?: string | undefined;
2884
3872
  brand?: string | undefined;
2885
3873
  }>>;
2886
- 'merchant-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3874
+ 'shop-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
2887
3875
  context: zod.ZodEnum<["recommendation", "search"]>;
3876
+ mallId: zod.ZodOptional<zod.ZodString>;
3877
+ miniAppId: zod.ZodOptional<zod.ZodString>;
2888
3878
  summary: zod.ZodOptional<zod.ZodString>;
3879
+ categoryTabs: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3880
+ code: zod.ZodString;
3881
+ name: zod.ZodString;
3882
+ }, "strip", zod.ZodTypeAny, {
3883
+ code: string;
3884
+ name: string;
3885
+ }, {
3886
+ code: string;
3887
+ name: string;
3888
+ }>, "many">>;
2889
3889
  items: zod.ZodArray<zod.ZodObject<{
2890
3890
  merchantId: zod.ZodString;
2891
3891
  name: zod.ZodString;
@@ -2917,14 +3917,24 @@ declare const serverModule: {
2917
3917
  label: zod.ZodString;
2918
3918
  observedAt: zod.ZodString;
2919
3919
  }, "strip", zod.ZodTypeAny, {
2920
- code: "unknown" | "enabled" | "disabled";
3920
+ code: "enabled" | "unknown" | "disabled";
2921
3921
  label: string;
2922
3922
  observedAt: string;
2923
3923
  }, {
2924
- code: "unknown" | "enabled" | "disabled";
3924
+ code: "enabled" | "unknown" | "disabled";
2925
3925
  label: string;
2926
3926
  observedAt: string;
2927
3927
  }>;
3928
+ contactInfo: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3929
+ channel: zod.ZodString;
3930
+ value: zod.ZodString;
3931
+ }, "strip", zod.ZodTypeAny, {
3932
+ value: string;
3933
+ channel: string;
3934
+ }, {
3935
+ value: string;
3936
+ channel: string;
3937
+ }>, "many">>;
2928
3938
  services: zod.ZodArray<zod.ZodString, "many">;
2929
3939
  promotionFacts: zod.ZodArray<zod.ZodString, "many">;
2930
3940
  reasons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -2948,37 +3958,90 @@ declare const serverModule: {
2948
3958
  code: string;
2949
3959
  label: string;
2950
3960
  observedAt: string;
2951
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3961
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2952
3962
  value?: string | undefined;
2953
3963
  expiresAt?: string | undefined;
2954
3964
  }, {
2955
3965
  code: string;
2956
3966
  label: string;
2957
3967
  observedAt: string;
2958
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
3968
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
2959
3969
  value?: string | undefined;
2960
3970
  expiresAt?: string | undefined;
2961
3971
  }>, "many">>;
2962
- itemActions: zod.ZodArray<zod.ZodObject<{
2963
- actionId: zod.ZodString;
3972
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
3973
+ kind: zod.ZodLiteral<"send">;
2964
3974
  label: zod.ZodString;
2965
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
3975
+ value: zod.ZodOptional<zod.ZodString>;
3976
+ visibleValue: zod.ZodOptional<zod.ZodString>;
2966
3977
  }, "strip", zod.ZodTypeAny, {
2967
- actionId: string;
3978
+ kind: "send";
2968
3979
  label: string;
2969
- input?: Record<string, unknown> | undefined;
3980
+ value?: string | undefined;
3981
+ visibleValue?: string | undefined;
2970
3982
  }, {
2971
- actionId: string;
3983
+ kind: "send";
2972
3984
  label: string;
2973
- input?: Record<string, unknown> | undefined;
2974
- }>, "many">;
3985
+ value?: string | undefined;
3986
+ visibleValue?: string | undefined;
3987
+ }>, zod.ZodObject<{
3988
+ kind: zod.ZodLiteral<"link">;
3989
+ label: zod.ZodString;
3990
+ url: zod.ZodString;
3991
+ }, "strip", zod.ZodTypeAny, {
3992
+ url: string;
3993
+ kind: "link";
3994
+ label: string;
3995
+ }, {
3996
+ url: string;
3997
+ kind: "link";
3998
+ label: string;
3999
+ }>]>, "many">;
4000
+ coupons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
4001
+ name: zod.ZodString;
4002
+ imageUrl: zod.ZodOptional<zod.ZodString>;
4003
+ description: zod.ZodOptional<zod.ZodString>;
4004
+ faceValue: zod.ZodOptional<zod.ZodNumber>;
4005
+ salePrice: zod.ZodOptional<zod.ZodNumber>;
4006
+ applicableCategories: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
4007
+ validHours: zod.ZodOptional<zod.ZodNumber>;
4008
+ usageTimeText: zod.ZodOptional<zod.ZodString>;
4009
+ purchaseUrl: zod.ZodOptional<zod.ZodString>;
4010
+ freeCouponClaimMode: zod.ZodOptional<zod.ZodEnum<["DIRECT", "REDIRECT"]>>;
4011
+ offerRef: zod.ZodOptional<zod.ZodString>;
4012
+ }, "strip", zod.ZodTypeAny, {
4013
+ name: string;
4014
+ description?: string | undefined;
4015
+ imageUrl?: string | undefined;
4016
+ faceValue?: number | undefined;
4017
+ salePrice?: number | undefined;
4018
+ applicableCategories?: string[] | undefined;
4019
+ validHours?: number | undefined;
4020
+ usageTimeText?: string | undefined;
4021
+ purchaseUrl?: string | undefined;
4022
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
4023
+ offerRef?: string | undefined;
4024
+ }, {
4025
+ name: string;
4026
+ description?: string | undefined;
4027
+ imageUrl?: string | undefined;
4028
+ faceValue?: number | undefined;
4029
+ salePrice?: number | undefined;
4030
+ applicableCategories?: string[] | undefined;
4031
+ validHours?: number | undefined;
4032
+ usageTimeText?: string | undefined;
4033
+ purchaseUrl?: string | undefined;
4034
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
4035
+ offerRef?: string | undefined;
4036
+ }>, "many">>;
2975
4037
  }, "strip", zod.ZodTypeAny, {
2976
4038
  status: {
2977
- code: "unknown" | "enabled" | "disabled";
4039
+ code: "enabled" | "unknown" | "disabled";
2978
4040
  label: string;
2979
4041
  observedAt: string;
2980
4042
  };
2981
4043
  name: string;
4044
+ services: string[];
2982
4045
  merchantId: string;
2983
4046
  location: {
2984
4047
  displayText: string;
@@ -2987,13 +4050,17 @@ declare const serverModule: {
2987
4050
  unitName?: string | undefined;
2988
4051
  poiId?: string | undefined;
2989
4052
  };
2990
- itemActions: {
2991
- actionId: string;
4053
+ itemActions: ({
4054
+ kind: "send";
2992
4055
  label: string;
2993
- input?: Record<string, unknown> | undefined;
2994
- }[];
4056
+ value?: string | undefined;
4057
+ visibleValue?: string | undefined;
4058
+ } | {
4059
+ url: string;
4060
+ kind: "link";
4061
+ label: string;
4062
+ })[];
2995
4063
  businessCategories: string[];
2996
- services: string[];
2997
4064
  promotionFacts: string[];
2998
4065
  brand?: string | undefined;
2999
4066
  reasons?: {
@@ -3004,19 +4071,37 @@ declare const serverModule: {
3004
4071
  code: string;
3005
4072
  label: string;
3006
4073
  observedAt: string;
3007
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
4074
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
3008
4075
  value?: string | undefined;
3009
4076
  expiresAt?: string | undefined;
3010
4077
  }[] | undefined;
3011
4078
  logoUrl?: string | undefined;
3012
4079
  coverUrl?: string | undefined;
4080
+ contactInfo?: {
4081
+ value: string;
4082
+ channel: string;
4083
+ }[] | undefined;
4084
+ coupons?: {
4085
+ name: string;
4086
+ description?: string | undefined;
4087
+ imageUrl?: string | undefined;
4088
+ faceValue?: number | undefined;
4089
+ salePrice?: number | undefined;
4090
+ applicableCategories?: string[] | undefined;
4091
+ validHours?: number | undefined;
4092
+ usageTimeText?: string | undefined;
4093
+ purchaseUrl?: string | undefined;
4094
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
4095
+ offerRef?: string | undefined;
4096
+ }[] | undefined;
3013
4097
  }, {
3014
4098
  status: {
3015
- code: "unknown" | "enabled" | "disabled";
4099
+ code: "enabled" | "unknown" | "disabled";
3016
4100
  label: string;
3017
4101
  observedAt: string;
3018
4102
  };
3019
4103
  name: string;
4104
+ services: string[];
3020
4105
  merchantId: string;
3021
4106
  location: {
3022
4107
  displayText: string;
@@ -3025,13 +4110,17 @@ declare const serverModule: {
3025
4110
  unitName?: string | undefined;
3026
4111
  poiId?: string | undefined;
3027
4112
  };
3028
- itemActions: {
3029
- actionId: string;
4113
+ itemActions: ({
4114
+ kind: "send";
3030
4115
  label: string;
3031
- input?: Record<string, unknown> | undefined;
3032
- }[];
4116
+ value?: string | undefined;
4117
+ visibleValue?: string | undefined;
4118
+ } | {
4119
+ url: string;
4120
+ kind: "link";
4121
+ label: string;
4122
+ })[];
3033
4123
  businessCategories: string[];
3034
- services: string[];
3035
4124
  promotionFacts: string[];
3036
4125
  brand?: string | undefined;
3037
4126
  reasons?: {
@@ -3042,12 +4131,29 @@ declare const serverModule: {
3042
4131
  code: string;
3043
4132
  label: string;
3044
4133
  observedAt: string;
3045
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
4134
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
3046
4135
  value?: string | undefined;
3047
4136
  expiresAt?: string | undefined;
3048
4137
  }[] | undefined;
3049
4138
  logoUrl?: string | undefined;
3050
4139
  coverUrl?: string | undefined;
4140
+ contactInfo?: {
4141
+ value: string;
4142
+ channel: string;
4143
+ }[] | undefined;
4144
+ coupons?: {
4145
+ name: string;
4146
+ description?: string | undefined;
4147
+ imageUrl?: string | undefined;
4148
+ faceValue?: number | undefined;
4149
+ salePrice?: number | undefined;
4150
+ applicableCategories?: string[] | undefined;
4151
+ validHours?: number | undefined;
4152
+ usageTimeText?: string | undefined;
4153
+ purchaseUrl?: string | undefined;
4154
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
4155
+ offerRef?: string | undefined;
4156
+ }[] | undefined;
3051
4157
  }>, "many">;
3052
4158
  noResultsReason: zod.ZodOptional<zod.ZodString>;
3053
4159
  pageInfo: zod.ZodOptional<zod.ZodObject<{
@@ -3056,14 +4162,14 @@ declare const serverModule: {
3056
4162
  total: zod.ZodNumber;
3057
4163
  hasMore: zod.ZodBoolean;
3058
4164
  }, "strip", zod.ZodTypeAny, {
4165
+ total: number;
3059
4166
  pageSize: number;
3060
4167
  page: number;
3061
- total: number;
3062
4168
  hasMore: boolean;
3063
4169
  }, {
4170
+ total: number;
3064
4171
  pageSize: number;
3065
4172
  page: number;
3066
- total: number;
3067
4173
  hasMore: boolean;
3068
4174
  }>>;
3069
4175
  refinements: zod.ZodArray<zod.ZodObject<{
@@ -3080,11 +4186,12 @@ declare const serverModule: {
3080
4186
  context: "search" | "recommendation";
3081
4187
  items: {
3082
4188
  status: {
3083
- code: "unknown" | "enabled" | "disabled";
4189
+ code: "enabled" | "unknown" | "disabled";
3084
4190
  label: string;
3085
4191
  observedAt: string;
3086
4192
  };
3087
4193
  name: string;
4194
+ services: string[];
3088
4195
  merchantId: string;
3089
4196
  location: {
3090
4197
  displayText: string;
@@ -3093,13 +4200,17 @@ declare const serverModule: {
3093
4200
  unitName?: string | undefined;
3094
4201
  poiId?: string | undefined;
3095
4202
  };
3096
- itemActions: {
3097
- actionId: string;
4203
+ itemActions: ({
4204
+ kind: "send";
3098
4205
  label: string;
3099
- input?: Record<string, unknown> | undefined;
3100
- }[];
4206
+ value?: string | undefined;
4207
+ visibleValue?: string | undefined;
4208
+ } | {
4209
+ url: string;
4210
+ kind: "link";
4211
+ label: string;
4212
+ })[];
3101
4213
  businessCategories: string[];
3102
- services: string[];
3103
4214
  promotionFacts: string[];
3104
4215
  brand?: string | undefined;
3105
4216
  reasons?: {
@@ -3110,34 +4221,58 @@ declare const serverModule: {
3110
4221
  code: string;
3111
4222
  label: string;
3112
4223
  observedAt: string;
3113
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
4224
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
3114
4225
  value?: string | undefined;
3115
4226
  expiresAt?: string | undefined;
3116
4227
  }[] | undefined;
3117
4228
  logoUrl?: string | undefined;
3118
4229
  coverUrl?: string | undefined;
4230
+ contactInfo?: {
4231
+ value: string;
4232
+ channel: string;
4233
+ }[] | undefined;
4234
+ coupons?: {
4235
+ name: string;
4236
+ description?: string | undefined;
4237
+ imageUrl?: string | undefined;
4238
+ faceValue?: number | undefined;
4239
+ salePrice?: number | undefined;
4240
+ applicableCategories?: string[] | undefined;
4241
+ validHours?: number | undefined;
4242
+ usageTimeText?: string | undefined;
4243
+ purchaseUrl?: string | undefined;
4244
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
4245
+ offerRef?: string | undefined;
4246
+ }[] | undefined;
3119
4247
  }[];
3120
4248
  refinements: {
3121
4249
  label: string;
3122
4250
  queryText: string;
3123
4251
  }[];
3124
4252
  summary?: string | undefined;
4253
+ miniAppId?: string | undefined;
4254
+ mallId?: string | undefined;
3125
4255
  noResultsReason?: string | undefined;
3126
4256
  pageInfo?: {
4257
+ total: number;
3127
4258
  pageSize: number;
3128
4259
  page: number;
3129
- total: number;
3130
4260
  hasMore: boolean;
3131
4261
  } | undefined;
4262
+ categoryTabs?: {
4263
+ code: string;
4264
+ name: string;
4265
+ }[] | undefined;
3132
4266
  }, {
3133
4267
  context: "search" | "recommendation";
3134
4268
  items: {
3135
4269
  status: {
3136
- code: "unknown" | "enabled" | "disabled";
4270
+ code: "enabled" | "unknown" | "disabled";
3137
4271
  label: string;
3138
4272
  observedAt: string;
3139
4273
  };
3140
4274
  name: string;
4275
+ services: string[];
3141
4276
  merchantId: string;
3142
4277
  location: {
3143
4278
  displayText: string;
@@ -3146,13 +4281,17 @@ declare const serverModule: {
3146
4281
  unitName?: string | undefined;
3147
4282
  poiId?: string | undefined;
3148
4283
  };
3149
- itemActions: {
3150
- actionId: string;
4284
+ itemActions: ({
4285
+ kind: "send";
3151
4286
  label: string;
3152
- input?: Record<string, unknown> | undefined;
3153
- }[];
4287
+ value?: string | undefined;
4288
+ visibleValue?: string | undefined;
4289
+ } | {
4290
+ url: string;
4291
+ kind: "link";
4292
+ label: string;
4293
+ })[];
3154
4294
  businessCategories: string[];
3155
- services: string[];
3156
4295
  promotionFacts: string[];
3157
4296
  brand?: string | undefined;
3158
4297
  reasons?: {
@@ -3163,29 +4302,54 @@ declare const serverModule: {
3163
4302
  code: string;
3164
4303
  label: string;
3165
4304
  observedAt: string;
3166
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
4305
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
3167
4306
  value?: string | undefined;
3168
4307
  expiresAt?: string | undefined;
3169
4308
  }[] | undefined;
3170
4309
  logoUrl?: string | undefined;
3171
4310
  coverUrl?: string | undefined;
4311
+ contactInfo?: {
4312
+ value: string;
4313
+ channel: string;
4314
+ }[] | undefined;
4315
+ coupons?: {
4316
+ name: string;
4317
+ description?: string | undefined;
4318
+ imageUrl?: string | undefined;
4319
+ faceValue?: number | undefined;
4320
+ salePrice?: number | undefined;
4321
+ applicableCategories?: string[] | undefined;
4322
+ validHours?: number | undefined;
4323
+ usageTimeText?: string | undefined;
4324
+ purchaseUrl?: string | undefined;
4325
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
4326
+ offerRef?: string | undefined;
4327
+ }[] | undefined;
3172
4328
  }[];
3173
4329
  refinements: {
3174
4330
  label: string;
3175
4331
  queryText: string;
3176
4332
  }[];
3177
4333
  summary?: string | undefined;
4334
+ miniAppId?: string | undefined;
4335
+ mallId?: string | undefined;
3178
4336
  noResultsReason?: string | undefined;
3179
4337
  pageInfo?: {
4338
+ total: number;
3180
4339
  pageSize: number;
3181
4340
  page: number;
3182
- total: number;
3183
4341
  hasMore: boolean;
3184
4342
  } | undefined;
4343
+ categoryTabs?: {
4344
+ code: string;
4345
+ name: string;
4346
+ }[] | undefined;
3185
4347
  }>>;
3186
- 'merchant-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
4348
+ 'shop-detail': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3187
4349
  merchantId: zod.ZodString;
3188
4350
  name: zod.ZodString;
4351
+ mallId: zod.ZodOptional<zod.ZodString>;
4352
+ miniAppId: zod.ZodOptional<zod.ZodString>;
3189
4353
  logoUrl: zod.ZodOptional<zod.ZodString>;
3190
4354
  coverUrls: zod.ZodArray<zod.ZodString, "many">;
3191
4355
  brand: zod.ZodOptional<zod.ZodString>;
@@ -3214,11 +4378,11 @@ declare const serverModule: {
3214
4378
  label: zod.ZodString;
3215
4379
  observedAt: zod.ZodString;
3216
4380
  }, "strip", zod.ZodTypeAny, {
3217
- code: "unknown" | "enabled" | "disabled";
4381
+ code: "enabled" | "unknown" | "disabled";
3218
4382
  label: string;
3219
4383
  observedAt: string;
3220
4384
  }, {
3221
- code: "unknown" | "enabled" | "disabled";
4385
+ code: "enabled" | "unknown" | "disabled";
3222
4386
  label: string;
3223
4387
  observedAt: string;
3224
4388
  }>;
@@ -3235,6 +4399,43 @@ declare const serverModule: {
3235
4399
  }>, "many">>;
3236
4400
  services: zod.ZodArray<zod.ZodString, "many">;
3237
4401
  promotionFacts: zod.ZodArray<zod.ZodString, "many">;
4402
+ coupons: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
4403
+ name: zod.ZodString;
4404
+ imageUrl: zod.ZodOptional<zod.ZodString>;
4405
+ description: zod.ZodOptional<zod.ZodString>;
4406
+ faceValue: zod.ZodOptional<zod.ZodNumber>;
4407
+ salePrice: zod.ZodOptional<zod.ZodNumber>;
4408
+ applicableCategories: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
4409
+ validHours: zod.ZodOptional<zod.ZodNumber>;
4410
+ usageTimeText: zod.ZodOptional<zod.ZodString>;
4411
+ purchaseUrl: zod.ZodOptional<zod.ZodString>;
4412
+ freeCouponClaimMode: zod.ZodOptional<zod.ZodEnum<["DIRECT", "REDIRECT"]>>;
4413
+ offerRef: zod.ZodOptional<zod.ZodString>;
4414
+ }, "strip", zod.ZodTypeAny, {
4415
+ name: string;
4416
+ description?: string | undefined;
4417
+ imageUrl?: string | undefined;
4418
+ faceValue?: number | undefined;
4419
+ salePrice?: number | undefined;
4420
+ applicableCategories?: string[] | undefined;
4421
+ validHours?: number | undefined;
4422
+ usageTimeText?: string | undefined;
4423
+ purchaseUrl?: string | undefined;
4424
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
4425
+ offerRef?: string | undefined;
4426
+ }, {
4427
+ name: string;
4428
+ description?: string | undefined;
4429
+ imageUrl?: string | undefined;
4430
+ faceValue?: number | undefined;
4431
+ salePrice?: number | undefined;
4432
+ applicableCategories?: string[] | undefined;
4433
+ validHours?: number | undefined;
4434
+ usageTimeText?: string | undefined;
4435
+ purchaseUrl?: string | undefined;
4436
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
4437
+ offerRef?: string | undefined;
4438
+ }>, "many">>;
3238
4439
  evidence: zod.ZodArray<zod.ZodObject<{
3239
4440
  code: zod.ZodString;
3240
4441
  label: zod.ZodString;
@@ -3246,37 +4447,53 @@ declare const serverModule: {
3246
4447
  code: string;
3247
4448
  label: string;
3248
4449
  observedAt: string;
3249
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
4450
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
3250
4451
  value?: string | undefined;
3251
4452
  expiresAt?: string | undefined;
3252
4453
  }, {
3253
4454
  code: string;
3254
4455
  label: string;
3255
4456
  observedAt: string;
3256
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
4457
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
3257
4458
  value?: string | undefined;
3258
4459
  expiresAt?: string | undefined;
3259
4460
  }>, "many">;
3260
- itemActions: zod.ZodArray<zod.ZodObject<{
3261
- actionId: zod.ZodString;
4461
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
4462
+ kind: zod.ZodLiteral<"send">;
3262
4463
  label: zod.ZodString;
3263
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
4464
+ value: zod.ZodOptional<zod.ZodString>;
4465
+ visibleValue: zod.ZodOptional<zod.ZodString>;
3264
4466
  }, "strip", zod.ZodTypeAny, {
3265
- actionId: string;
4467
+ kind: "send";
3266
4468
  label: string;
3267
- input?: Record<string, unknown> | undefined;
4469
+ value?: string | undefined;
4470
+ visibleValue?: string | undefined;
3268
4471
  }, {
3269
- actionId: string;
4472
+ kind: "send";
3270
4473
  label: string;
3271
- input?: Record<string, unknown> | undefined;
3272
- }>, "many">;
4474
+ value?: string | undefined;
4475
+ visibleValue?: string | undefined;
4476
+ }>, zod.ZodObject<{
4477
+ kind: zod.ZodLiteral<"link">;
4478
+ label: zod.ZodString;
4479
+ url: zod.ZodString;
4480
+ }, "strip", zod.ZodTypeAny, {
4481
+ url: string;
4482
+ kind: "link";
4483
+ label: string;
4484
+ }, {
4485
+ url: string;
4486
+ kind: "link";
4487
+ label: string;
4488
+ }>]>, "many">;
3273
4489
  }, "strip", zod.ZodTypeAny, {
3274
4490
  status: {
3275
- code: "unknown" | "enabled" | "disabled";
4491
+ code: "enabled" | "unknown" | "disabled";
3276
4492
  label: string;
3277
4493
  observedAt: string;
3278
4494
  };
3279
4495
  name: string;
4496
+ services: string[];
3280
4497
  merchantId: string;
3281
4498
  location: {
3282
4499
  displayText: string;
@@ -3289,33 +4506,53 @@ declare const serverModule: {
3289
4506
  code: string;
3290
4507
  label: string;
3291
4508
  observedAt: string;
3292
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
4509
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
3293
4510
  value?: string | undefined;
3294
4511
  expiresAt?: string | undefined;
3295
4512
  }[];
3296
- itemActions: {
3297
- actionId: string;
4513
+ itemActions: ({
4514
+ kind: "send";
3298
4515
  label: string;
3299
- input?: Record<string, unknown> | undefined;
3300
- }[];
4516
+ value?: string | undefined;
4517
+ visibleValue?: string | undefined;
4518
+ } | {
4519
+ url: string;
4520
+ kind: "link";
4521
+ label: string;
4522
+ })[];
3301
4523
  businessCategories: string[];
3302
- services: string[];
3303
4524
  promotionFacts: string[];
3304
4525
  coverUrls: string[];
3305
4526
  description?: string | undefined;
3306
4527
  brand?: string | undefined;
4528
+ miniAppId?: string | undefined;
4529
+ mallId?: string | undefined;
3307
4530
  logoUrl?: string | undefined;
3308
4531
  contactInfo?: {
3309
4532
  value: string;
3310
4533
  channel: string;
3311
4534
  }[] | undefined;
4535
+ coupons?: {
4536
+ name: string;
4537
+ description?: string | undefined;
4538
+ imageUrl?: string | undefined;
4539
+ faceValue?: number | undefined;
4540
+ salePrice?: number | undefined;
4541
+ applicableCategories?: string[] | undefined;
4542
+ validHours?: number | undefined;
4543
+ usageTimeText?: string | undefined;
4544
+ purchaseUrl?: string | undefined;
4545
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
4546
+ offerRef?: string | undefined;
4547
+ }[] | undefined;
3312
4548
  }, {
3313
4549
  status: {
3314
- code: "unknown" | "enabled" | "disabled";
4550
+ code: "enabled" | "unknown" | "disabled";
3315
4551
  label: string;
3316
4552
  observedAt: string;
3317
4553
  };
3318
4554
  name: string;
4555
+ services: string[];
3319
4556
  merchantId: string;
3320
4557
  location: {
3321
4558
  displayText: string;
@@ -3328,32 +4565,52 @@ declare const serverModule: {
3328
4565
  code: string;
3329
4566
  label: string;
3330
4567
  observedAt: string;
3331
- sourceKind: "mall" | "catalog" | "merchant" | "policy";
4568
+ sourceKind: "catalog" | "mall" | "merchant" | "policy";
3332
4569
  value?: string | undefined;
3333
4570
  expiresAt?: string | undefined;
3334
4571
  }[];
3335
- itemActions: {
3336
- actionId: string;
4572
+ itemActions: ({
4573
+ kind: "send";
3337
4574
  label: string;
3338
- input?: Record<string, unknown> | undefined;
3339
- }[];
4575
+ value?: string | undefined;
4576
+ visibleValue?: string | undefined;
4577
+ } | {
4578
+ url: string;
4579
+ kind: "link";
4580
+ label: string;
4581
+ })[];
3340
4582
  businessCategories: string[];
3341
- services: string[];
3342
4583
  promotionFacts: string[];
3343
4584
  coverUrls: string[];
3344
4585
  description?: string | undefined;
3345
4586
  brand?: string | undefined;
4587
+ miniAppId?: string | undefined;
4588
+ mallId?: string | undefined;
3346
4589
  logoUrl?: string | undefined;
3347
4590
  contactInfo?: {
3348
4591
  value: string;
3349
4592
  channel: string;
3350
4593
  }[] | undefined;
4594
+ coupons?: {
4595
+ name: string;
4596
+ description?: string | undefined;
4597
+ imageUrl?: string | undefined;
4598
+ faceValue?: number | undefined;
4599
+ salePrice?: number | undefined;
4600
+ applicableCategories?: string[] | undefined;
4601
+ validHours?: number | undefined;
4602
+ usageTimeText?: string | undefined;
4603
+ purchaseUrl?: string | undefined;
4604
+ freeCouponClaimMode?: "DIRECT" | "REDIRECT" | undefined;
4605
+ offerRef?: string | undefined;
4606
+ }[] | undefined;
3351
4607
  }>>;
3352
4608
  'category-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3353
4609
  categories: zod.ZodArray<zod.ZodObject<{
3354
4610
  code: zod.ZodString;
3355
4611
  name: zod.ZodString;
3356
4612
  description: zod.ZodOptional<zod.ZodString>;
4613
+ iconUrl: zod.ZodOptional<zod.ZodString>;
3357
4614
  merchantCount: zod.ZodNumber;
3358
4615
  subCategories: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
3359
4616
  code: zod.ZodString;
@@ -3368,11 +4625,50 @@ declare const serverModule: {
3368
4625
  name: string;
3369
4626
  merchantCount: number;
3370
4627
  }>, "many">>;
4628
+ itemActions: zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
4629
+ kind: zod.ZodLiteral<"send">;
4630
+ label: zod.ZodString;
4631
+ value: zod.ZodOptional<zod.ZodString>;
4632
+ visibleValue: zod.ZodOptional<zod.ZodString>;
4633
+ }, "strip", zod.ZodTypeAny, {
4634
+ kind: "send";
4635
+ label: string;
4636
+ value?: string | undefined;
4637
+ visibleValue?: string | undefined;
4638
+ }, {
4639
+ kind: "send";
4640
+ label: string;
4641
+ value?: string | undefined;
4642
+ visibleValue?: string | undefined;
4643
+ }>, zod.ZodObject<{
4644
+ kind: zod.ZodLiteral<"link">;
4645
+ label: zod.ZodString;
4646
+ url: zod.ZodString;
4647
+ }, "strip", zod.ZodTypeAny, {
4648
+ url: string;
4649
+ kind: "link";
4650
+ label: string;
4651
+ }, {
4652
+ url: string;
4653
+ kind: "link";
4654
+ label: string;
4655
+ }>]>, "many">>;
3371
4656
  }, "strip", zod.ZodTypeAny, {
3372
4657
  code: string;
3373
4658
  name: string;
3374
4659
  merchantCount: number;
3375
4660
  description?: string | undefined;
4661
+ itemActions?: ({
4662
+ kind: "send";
4663
+ label: string;
4664
+ value?: string | undefined;
4665
+ visibleValue?: string | undefined;
4666
+ } | {
4667
+ url: string;
4668
+ kind: "link";
4669
+ label: string;
4670
+ })[] | undefined;
4671
+ iconUrl?: string | undefined;
3376
4672
  subCategories?: {
3377
4673
  code: string;
3378
4674
  name: string;
@@ -3383,12 +4679,129 @@ declare const serverModule: {
3383
4679
  name: string;
3384
4680
  merchantCount: number;
3385
4681
  description?: string | undefined;
4682
+ itemActions?: ({
4683
+ kind: "send";
4684
+ label: string;
4685
+ value?: string | undefined;
4686
+ visibleValue?: string | undefined;
4687
+ } | {
4688
+ url: string;
4689
+ kind: "link";
4690
+ label: string;
4691
+ })[] | undefined;
4692
+ iconUrl?: string | undefined;
3386
4693
  subCategories?: {
3387
4694
  code: string;
3388
4695
  name: string;
3389
4696
  merchantCount: number;
3390
4697
  }[] | undefined;
3391
4698
  }>, "many">;
4699
+ buildings: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
4700
+ buildingCode: zod.ZodString;
4701
+ buildingName: zod.ZodString;
4702
+ floors: zod.ZodArray<zod.ZodObject<{
4703
+ floorCode: zod.ZodString;
4704
+ floorName: zod.ZodString;
4705
+ businessCategories: zod.ZodArray<zod.ZodString, "many">;
4706
+ merchantCount: zod.ZodNumber;
4707
+ itemActions: zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
4708
+ kind: zod.ZodLiteral<"send">;
4709
+ label: zod.ZodString;
4710
+ value: zod.ZodOptional<zod.ZodString>;
4711
+ visibleValue: zod.ZodOptional<zod.ZodString>;
4712
+ }, "strip", zod.ZodTypeAny, {
4713
+ kind: "send";
4714
+ label: string;
4715
+ value?: string | undefined;
4716
+ visibleValue?: string | undefined;
4717
+ }, {
4718
+ kind: "send";
4719
+ label: string;
4720
+ value?: string | undefined;
4721
+ visibleValue?: string | undefined;
4722
+ }>, zod.ZodObject<{
4723
+ kind: zod.ZodLiteral<"link">;
4724
+ label: zod.ZodString;
4725
+ url: zod.ZodString;
4726
+ }, "strip", zod.ZodTypeAny, {
4727
+ url: string;
4728
+ kind: "link";
4729
+ label: string;
4730
+ }, {
4731
+ url: string;
4732
+ kind: "link";
4733
+ label: string;
4734
+ }>]>, "many">>;
4735
+ }, "strip", zod.ZodTypeAny, {
4736
+ floorName: string;
4737
+ businessCategories: string[];
4738
+ merchantCount: number;
4739
+ floorCode: string;
4740
+ itemActions?: ({
4741
+ kind: "send";
4742
+ label: string;
4743
+ value?: string | undefined;
4744
+ visibleValue?: string | undefined;
4745
+ } | {
4746
+ url: string;
4747
+ kind: "link";
4748
+ label: string;
4749
+ })[] | undefined;
4750
+ }, {
4751
+ floorName: string;
4752
+ businessCategories: string[];
4753
+ merchantCount: number;
4754
+ floorCode: string;
4755
+ itemActions?: ({
4756
+ kind: "send";
4757
+ label: string;
4758
+ value?: string | undefined;
4759
+ visibleValue?: string | undefined;
4760
+ } | {
4761
+ url: string;
4762
+ kind: "link";
4763
+ label: string;
4764
+ })[] | undefined;
4765
+ }>, "many">;
4766
+ }, "strip", zod.ZodTypeAny, {
4767
+ buildingName: string;
4768
+ buildingCode: string;
4769
+ floors: {
4770
+ floorName: string;
4771
+ businessCategories: string[];
4772
+ merchantCount: number;
4773
+ floorCode: string;
4774
+ itemActions?: ({
4775
+ kind: "send";
4776
+ label: string;
4777
+ value?: string | undefined;
4778
+ visibleValue?: string | undefined;
4779
+ } | {
4780
+ url: string;
4781
+ kind: "link";
4782
+ label: string;
4783
+ })[] | undefined;
4784
+ }[];
4785
+ }, {
4786
+ buildingName: string;
4787
+ buildingCode: string;
4788
+ floors: {
4789
+ floorName: string;
4790
+ businessCategories: string[];
4791
+ merchantCount: number;
4792
+ floorCode: string;
4793
+ itemActions?: ({
4794
+ kind: "send";
4795
+ label: string;
4796
+ value?: string | undefined;
4797
+ visibleValue?: string | undefined;
4798
+ } | {
4799
+ url: string;
4800
+ kind: "link";
4801
+ label: string;
4802
+ })[] | undefined;
4803
+ }[];
4804
+ }>, "many">>;
3392
4805
  observedAt: zod.ZodString;
3393
4806
  }, "strip", zod.ZodTypeAny, {
3394
4807
  observedAt: string;
@@ -3397,12 +4810,43 @@ declare const serverModule: {
3397
4810
  name: string;
3398
4811
  merchantCount: number;
3399
4812
  description?: string | undefined;
4813
+ itemActions?: ({
4814
+ kind: "send";
4815
+ label: string;
4816
+ value?: string | undefined;
4817
+ visibleValue?: string | undefined;
4818
+ } | {
4819
+ url: string;
4820
+ kind: "link";
4821
+ label: string;
4822
+ })[] | undefined;
4823
+ iconUrl?: string | undefined;
3400
4824
  subCategories?: {
3401
4825
  code: string;
3402
4826
  name: string;
3403
4827
  merchantCount: number;
3404
4828
  }[] | undefined;
3405
4829
  }[];
4830
+ buildings?: {
4831
+ buildingName: string;
4832
+ buildingCode: string;
4833
+ floors: {
4834
+ floorName: string;
4835
+ businessCategories: string[];
4836
+ merchantCount: number;
4837
+ floorCode: string;
4838
+ itemActions?: ({
4839
+ kind: "send";
4840
+ label: string;
4841
+ value?: string | undefined;
4842
+ visibleValue?: string | undefined;
4843
+ } | {
4844
+ url: string;
4845
+ kind: "link";
4846
+ label: string;
4847
+ })[] | undefined;
4848
+ }[];
4849
+ }[] | undefined;
3406
4850
  }, {
3407
4851
  observedAt: string;
3408
4852
  categories: {
@@ -3410,12 +4854,43 @@ declare const serverModule: {
3410
4854
  name: string;
3411
4855
  merchantCount: number;
3412
4856
  description?: string | undefined;
4857
+ itemActions?: ({
4858
+ kind: "send";
4859
+ label: string;
4860
+ value?: string | undefined;
4861
+ visibleValue?: string | undefined;
4862
+ } | {
4863
+ url: string;
4864
+ kind: "link";
4865
+ label: string;
4866
+ })[] | undefined;
4867
+ iconUrl?: string | undefined;
3413
4868
  subCategories?: {
3414
4869
  code: string;
3415
4870
  name: string;
3416
4871
  merchantCount: number;
3417
4872
  }[] | undefined;
3418
4873
  }[];
4874
+ buildings?: {
4875
+ buildingName: string;
4876
+ buildingCode: string;
4877
+ floors: {
4878
+ floorName: string;
4879
+ businessCategories: string[];
4880
+ merchantCount: number;
4881
+ floorCode: string;
4882
+ itemActions?: ({
4883
+ kind: "send";
4884
+ label: string;
4885
+ value?: string | undefined;
4886
+ visibleValue?: string | undefined;
4887
+ } | {
4888
+ url: string;
4889
+ kind: "link";
4890
+ label: string;
4891
+ })[] | undefined;
4892
+ }[];
4893
+ }[] | undefined;
3419
4894
  }>>;
3420
4895
  'product-comparison': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3421
4896
  products: zod.ZodArray<zod.ZodObject<{
@@ -3608,6 +5083,7 @@ declare const serverModule: {
3608
5083
  brand?: string | undefined;
3609
5084
  imageUrl?: string | undefined;
3610
5085
  }>, "many">;
5086
+ refreshRequiredAt: zod.ZodOptional<zod.ZodString>;
3611
5087
  observedAt: zod.ZodString;
3612
5088
  }, "strip", zod.ZodTypeAny, {
3613
5089
  observedAt: string;
@@ -3649,6 +5125,7 @@ declare const serverModule: {
3649
5125
  brand?: string | undefined;
3650
5126
  imageUrl?: string | undefined;
3651
5127
  }[];
5128
+ refreshRequiredAt?: string | undefined;
3652
5129
  }, {
3653
5130
  observedAt: string;
3654
5131
  products: {
@@ -3689,6 +5166,7 @@ declare const serverModule: {
3689
5166
  brand?: string | undefined;
3690
5167
  imageUrl?: string | undefined;
3691
5168
  }[];
5169
+ refreshRequiredAt?: string | undefined;
3692
5170
  }>>;
3693
5171
  'mall-directory': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3694
5172
  mallId: zod.ZodString;
@@ -3701,16 +5179,64 @@ declare const serverModule: {
3701
5179
  floorName: zod.ZodString;
3702
5180
  businessCategories: zod.ZodArray<zod.ZodString, "many">;
3703
5181
  merchantCount: zod.ZodNumber;
5182
+ itemActions: zod.ZodOptional<zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
5183
+ kind: zod.ZodLiteral<"send">;
5184
+ label: zod.ZodString;
5185
+ value: zod.ZodOptional<zod.ZodString>;
5186
+ visibleValue: zod.ZodOptional<zod.ZodString>;
5187
+ }, "strip", zod.ZodTypeAny, {
5188
+ kind: "send";
5189
+ label: string;
5190
+ value?: string | undefined;
5191
+ visibleValue?: string | undefined;
5192
+ }, {
5193
+ kind: "send";
5194
+ label: string;
5195
+ value?: string | undefined;
5196
+ visibleValue?: string | undefined;
5197
+ }>, zod.ZodObject<{
5198
+ kind: zod.ZodLiteral<"link">;
5199
+ label: zod.ZodString;
5200
+ url: zod.ZodString;
5201
+ }, "strip", zod.ZodTypeAny, {
5202
+ url: string;
5203
+ kind: "link";
5204
+ label: string;
5205
+ }, {
5206
+ url: string;
5207
+ kind: "link";
5208
+ label: string;
5209
+ }>]>, "many">>;
3704
5210
  }, "strip", zod.ZodTypeAny, {
3705
5211
  floorName: string;
3706
5212
  businessCategories: string[];
3707
5213
  merchantCount: number;
3708
5214
  floorCode: string;
5215
+ itemActions?: ({
5216
+ kind: "send";
5217
+ label: string;
5218
+ value?: string | undefined;
5219
+ visibleValue?: string | undefined;
5220
+ } | {
5221
+ url: string;
5222
+ kind: "link";
5223
+ label: string;
5224
+ })[] | undefined;
3709
5225
  }, {
3710
5226
  floorName: string;
3711
5227
  businessCategories: string[];
3712
5228
  merchantCount: number;
3713
5229
  floorCode: string;
5230
+ itemActions?: ({
5231
+ kind: "send";
5232
+ label: string;
5233
+ value?: string | undefined;
5234
+ visibleValue?: string | undefined;
5235
+ } | {
5236
+ url: string;
5237
+ kind: "link";
5238
+ label: string;
5239
+ })[] | undefined;
3714
5240
  }>, "many">;
3715
5241
  }, "strip", zod.ZodTypeAny, {
3716
5242
  buildingName: string;
@@ -3720,6 +5246,16 @@ declare const serverModule: {
3720
5246
  businessCategories: string[];
3721
5247
  merchantCount: number;
3722
5248
  floorCode: string;
5249
+ itemActions?: ({
5250
+ kind: "send";
5251
+ label: string;
5252
+ value?: string | undefined;
5253
+ visibleValue?: string | undefined;
5254
+ } | {
5255
+ url: string;
5256
+ kind: "link";
5257
+ label: string;
5258
+ })[] | undefined;
3723
5259
  }[];
3724
5260
  }, {
3725
5261
  buildingName: string;
@@ -3729,13 +5265,22 @@ declare const serverModule: {
3729
5265
  businessCategories: string[];
3730
5266
  merchantCount: number;
3731
5267
  floorCode: string;
5268
+ itemActions?: ({
5269
+ kind: "send";
5270
+ label: string;
5271
+ value?: string | undefined;
5272
+ visibleValue?: string | undefined;
5273
+ } | {
5274
+ url: string;
5275
+ kind: "link";
5276
+ label: string;
5277
+ })[] | undefined;
3732
5278
  }[];
3733
5279
  }>, "many">;
3734
5280
  observedAt: zod.ZodString;
3735
5281
  }, "strip", zod.ZodTypeAny, {
3736
5282
  mallId: string;
3737
5283
  observedAt: string;
3738
- mallName: string;
3739
5284
  buildings: {
3740
5285
  buildingName: string;
3741
5286
  buildingCode: string;
@@ -3744,12 +5289,22 @@ declare const serverModule: {
3744
5289
  businessCategories: string[];
3745
5290
  merchantCount: number;
3746
5291
  floorCode: string;
5292
+ itemActions?: ({
5293
+ kind: "send";
5294
+ label: string;
5295
+ value?: string | undefined;
5296
+ visibleValue?: string | undefined;
5297
+ } | {
5298
+ url: string;
5299
+ kind: "link";
5300
+ label: string;
5301
+ })[] | undefined;
3747
5302
  }[];
3748
5303
  }[];
5304
+ mallName: string;
3749
5305
  }, {
3750
5306
  mallId: string;
3751
5307
  observedAt: string;
3752
- mallName: string;
3753
5308
  buildings: {
3754
5309
  buildingName: string;
3755
5310
  buildingCode: string;
@@ -3758,8 +5313,19 @@ declare const serverModule: {
3758
5313
  businessCategories: string[];
3759
5314
  merchantCount: number;
3760
5315
  floorCode: string;
5316
+ itemActions?: ({
5317
+ kind: "send";
5318
+ label: string;
5319
+ value?: string | undefined;
5320
+ visibleValue?: string | undefined;
5321
+ } | {
5322
+ url: string;
5323
+ kind: "link";
5324
+ label: string;
5325
+ })[] | undefined;
3761
5326
  }[];
3762
5327
  }[];
5328
+ mallName: string;
3763
5329
  }>>;
3764
5330
  'nearby-mall-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3765
5331
  query: zod.ZodOptional<zod.ZodString>;
@@ -3778,19 +5344,34 @@ declare const serverModule: {
3778
5344
  code: "unknown" | "open" | "closed";
3779
5345
  label: string;
3780
5346
  }>;
3781
- itemActions: zod.ZodArray<zod.ZodObject<{
3782
- actionId: zod.ZodString;
5347
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
5348
+ kind: zod.ZodLiteral<"send">;
3783
5349
  label: zod.ZodString;
3784
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
5350
+ value: zod.ZodOptional<zod.ZodString>;
5351
+ visibleValue: zod.ZodOptional<zod.ZodString>;
3785
5352
  }, "strip", zod.ZodTypeAny, {
3786
- actionId: string;
5353
+ kind: "send";
3787
5354
  label: string;
3788
- input?: Record<string, unknown> | undefined;
5355
+ value?: string | undefined;
5356
+ visibleValue?: string | undefined;
3789
5357
  }, {
3790
- actionId: string;
5358
+ kind: "send";
3791
5359
  label: string;
3792
- input?: Record<string, unknown> | undefined;
3793
- }>, "many">;
5360
+ value?: string | undefined;
5361
+ visibleValue?: string | undefined;
5362
+ }>, zod.ZodObject<{
5363
+ kind: zod.ZodLiteral<"link">;
5364
+ label: zod.ZodString;
5365
+ url: zod.ZodString;
5366
+ }, "strip", zod.ZodTypeAny, {
5367
+ url: string;
5368
+ kind: "link";
5369
+ label: string;
5370
+ }, {
5371
+ url: string;
5372
+ kind: "link";
5373
+ label: string;
5374
+ }>]>, "many">;
3794
5375
  }, "strip", zod.ZodTypeAny, {
3795
5376
  status: {
3796
5377
  code: "unknown" | "open" | "closed";
@@ -3798,11 +5379,16 @@ declare const serverModule: {
3798
5379
  };
3799
5380
  name: string;
3800
5381
  mallId: string;
3801
- itemActions: {
3802
- actionId: string;
5382
+ itemActions: ({
5383
+ kind: "send";
3803
5384
  label: string;
3804
- input?: Record<string, unknown> | undefined;
3805
- }[];
5385
+ value?: string | undefined;
5386
+ visibleValue?: string | undefined;
5387
+ } | {
5388
+ url: string;
5389
+ kind: "link";
5390
+ label: string;
5391
+ })[];
3806
5392
  address: string;
3807
5393
  distanceKm?: number | undefined;
3808
5394
  }, {
@@ -3812,11 +5398,16 @@ declare const serverModule: {
3812
5398
  };
3813
5399
  name: string;
3814
5400
  mallId: string;
3815
- itemActions: {
3816
- actionId: string;
5401
+ itemActions: ({
5402
+ kind: "send";
3817
5403
  label: string;
3818
- input?: Record<string, unknown> | undefined;
3819
- }[];
5404
+ value?: string | undefined;
5405
+ visibleValue?: string | undefined;
5406
+ } | {
5407
+ url: string;
5408
+ kind: "link";
5409
+ label: string;
5410
+ })[];
3820
5411
  address: string;
3821
5412
  distanceKm?: number | undefined;
3822
5413
  }>, "many">;
@@ -3828,11 +5419,16 @@ declare const serverModule: {
3828
5419
  };
3829
5420
  name: string;
3830
5421
  mallId: string;
3831
- itemActions: {
3832
- actionId: string;
5422
+ itemActions: ({
5423
+ kind: "send";
3833
5424
  label: string;
3834
- input?: Record<string, unknown> | undefined;
3835
- }[];
5425
+ value?: string | undefined;
5426
+ visibleValue?: string | undefined;
5427
+ } | {
5428
+ url: string;
5429
+ kind: "link";
5430
+ label: string;
5431
+ })[];
3836
5432
  address: string;
3837
5433
  distanceKm?: number | undefined;
3838
5434
  }[];
@@ -3845,54 +5441,21 @@ declare const serverModule: {
3845
5441
  };
3846
5442
  name: string;
3847
5443
  mallId: string;
3848
- itemActions: {
3849
- actionId: string;
5444
+ itemActions: ({
5445
+ kind: "send";
3850
5446
  label: string;
3851
- input?: Record<string, unknown> | undefined;
3852
- }[];
5447
+ value?: string | undefined;
5448
+ visibleValue?: string | undefined;
5449
+ } | {
5450
+ url: string;
5451
+ kind: "link";
5452
+ label: string;
5453
+ })[];
3853
5454
  address: string;
3854
5455
  distanceKm?: number | undefined;
3855
5456
  }[];
3856
5457
  query?: string | undefined;
3857
5458
  }>>;
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
5459
  'human-guide-list': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
3897
5460
  merchantId: zod.ZodString;
3898
5461
  merchantName: zod.ZodString;
@@ -3912,87 +5475,122 @@ declare const serverModule: {
3912
5475
  channel: string;
3913
5476
  }>, "many">>;
3914
5477
  available: zod.ZodBoolean;
3915
- itemActions: zod.ZodArray<zod.ZodObject<{
3916
- actionId: zod.ZodString;
5478
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
5479
+ kind: zod.ZodLiteral<"send">;
3917
5480
  label: zod.ZodString;
3918
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
5481
+ value: zod.ZodOptional<zod.ZodString>;
5482
+ visibleValue: zod.ZodOptional<zod.ZodString>;
3919
5483
  }, "strip", zod.ZodTypeAny, {
3920
- actionId: string;
5484
+ kind: "send";
3921
5485
  label: string;
3922
- input?: Record<string, unknown> | undefined;
5486
+ value?: string | undefined;
5487
+ visibleValue?: string | undefined;
3923
5488
  }, {
3924
- actionId: string;
5489
+ kind: "send";
3925
5490
  label: string;
3926
- input?: Record<string, unknown> | undefined;
3927
- }>, "many">;
5491
+ value?: string | undefined;
5492
+ visibleValue?: string | undefined;
5493
+ }>, zod.ZodObject<{
5494
+ kind: zod.ZodLiteral<"link">;
5495
+ label: zod.ZodString;
5496
+ url: zod.ZodString;
5497
+ }, "strip", zod.ZodTypeAny, {
5498
+ url: string;
5499
+ kind: "link";
5500
+ label: string;
5501
+ }, {
5502
+ url: string;
5503
+ kind: "link";
5504
+ label: string;
5505
+ }>]>, "many">;
3928
5506
  }, "strip", zod.ZodTypeAny, {
3929
5507
  name: string;
3930
- itemActions: {
3931
- actionId: string;
5508
+ available: boolean;
5509
+ itemActions: ({
5510
+ kind: "send";
3932
5511
  label: string;
3933
- input?: Record<string, unknown> | undefined;
3934
- }[];
5512
+ value?: string | undefined;
5513
+ visibleValue?: string | undefined;
5514
+ } | {
5515
+ url: string;
5516
+ kind: "link";
5517
+ label: string;
5518
+ })[];
3935
5519
  guideId: string;
3936
- available: boolean;
5520
+ title?: string | undefined;
3937
5521
  avatarUrl?: string | undefined;
3938
5522
  contactInfo?: {
3939
5523
  value: string;
3940
5524
  channel: string;
3941
5525
  }[] | undefined;
3942
- title?: string | undefined;
3943
5526
  }, {
3944
5527
  name: string;
3945
- itemActions: {
3946
- actionId: string;
5528
+ available: boolean;
5529
+ itemActions: ({
5530
+ kind: "send";
3947
5531
  label: string;
3948
- input?: Record<string, unknown> | undefined;
3949
- }[];
5532
+ value?: string | undefined;
5533
+ visibleValue?: string | undefined;
5534
+ } | {
5535
+ url: string;
5536
+ kind: "link";
5537
+ label: string;
5538
+ })[];
3950
5539
  guideId: string;
3951
- available: boolean;
5540
+ title?: string | undefined;
3952
5541
  avatarUrl?: string | undefined;
3953
5542
  contactInfo?: {
3954
5543
  value: string;
3955
5544
  channel: string;
3956
5545
  }[] | undefined;
3957
- title?: string | undefined;
3958
5546
  }>, "many">;
3959
5547
  }, "strip", zod.ZodTypeAny, {
3960
5548
  merchantId: string;
3961
5549
  merchantName: string;
3962
5550
  guides: {
3963
5551
  name: string;
3964
- itemActions: {
3965
- actionId: string;
5552
+ available: boolean;
5553
+ itemActions: ({
5554
+ kind: "send";
3966
5555
  label: string;
3967
- input?: Record<string, unknown> | undefined;
3968
- }[];
5556
+ value?: string | undefined;
5557
+ visibleValue?: string | undefined;
5558
+ } | {
5559
+ url: string;
5560
+ kind: "link";
5561
+ label: string;
5562
+ })[];
3969
5563
  guideId: string;
3970
- available: boolean;
5564
+ title?: string | undefined;
3971
5565
  avatarUrl?: string | undefined;
3972
5566
  contactInfo?: {
3973
5567
  value: string;
3974
5568
  channel: string;
3975
5569
  }[] | undefined;
3976
- title?: string | undefined;
3977
5570
  }[];
3978
5571
  }, {
3979
5572
  merchantId: string;
3980
5573
  merchantName: string;
3981
5574
  guides: {
3982
5575
  name: string;
3983
- itemActions: {
3984
- actionId: string;
5576
+ available: boolean;
5577
+ itemActions: ({
5578
+ kind: "send";
3985
5579
  label: string;
3986
- input?: Record<string, unknown> | undefined;
3987
- }[];
5580
+ value?: string | undefined;
5581
+ visibleValue?: string | undefined;
5582
+ } | {
5583
+ url: string;
5584
+ kind: "link";
5585
+ label: string;
5586
+ })[];
3988
5587
  guideId: string;
3989
- available: boolean;
5588
+ title?: string | undefined;
3990
5589
  avatarUrl?: string | undefined;
3991
5590
  contactInfo?: {
3992
5591
  value: string;
3993
5592
  channel: string;
3994
5593
  }[] | undefined;
3995
- title?: string | undefined;
3996
5594
  }[];
3997
5595
  }>>;
3998
5596
  'location-handoff': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
@@ -4022,25 +5620,40 @@ declare const serverModule: {
4022
5620
  provider: zod.ZodEnum<["amap", "builtin"]>;
4023
5621
  launchParams: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodString>>;
4024
5622
  }, "strip", zod.ZodTypeAny, {
4025
- provider: "amap" | "builtin";
5623
+ provider: "builtin" | "amap";
4026
5624
  launchParams?: Record<string, string> | undefined;
4027
5625
  }, {
4028
- provider: "amap" | "builtin";
5626
+ provider: "builtin" | "amap";
4029
5627
  launchParams?: Record<string, string> | undefined;
4030
5628
  }>>;
4031
- itemActions: zod.ZodArray<zod.ZodObject<{
4032
- actionId: zod.ZodString;
5629
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
5630
+ kind: zod.ZodLiteral<"send">;
4033
5631
  label: zod.ZodString;
4034
- input: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
5632
+ value: zod.ZodOptional<zod.ZodString>;
5633
+ visibleValue: zod.ZodOptional<zod.ZodString>;
4035
5634
  }, "strip", zod.ZodTypeAny, {
4036
- actionId: string;
5635
+ kind: "send";
4037
5636
  label: string;
4038
- input?: Record<string, unknown> | undefined;
5637
+ value?: string | undefined;
5638
+ visibleValue?: string | undefined;
4039
5639
  }, {
4040
- actionId: string;
5640
+ kind: "send";
4041
5641
  label: string;
4042
- input?: Record<string, unknown> | undefined;
4043
- }>, "many">;
5642
+ value?: string | undefined;
5643
+ visibleValue?: string | undefined;
5644
+ }>, zod.ZodObject<{
5645
+ kind: zod.ZodLiteral<"link">;
5646
+ label: zod.ZodString;
5647
+ url: zod.ZodString;
5648
+ }, "strip", zod.ZodTypeAny, {
5649
+ url: string;
5650
+ kind: "link";
5651
+ label: string;
5652
+ }, {
5653
+ url: string;
5654
+ kind: "link";
5655
+ label: string;
5656
+ }>]>, "many">;
4044
5657
  }, "strip", zod.ZodTypeAny, {
4045
5658
  merchantId: string;
4046
5659
  location: {
@@ -4050,15 +5663,20 @@ declare const serverModule: {
4050
5663
  unitName?: string | undefined;
4051
5664
  poiId?: string | undefined;
4052
5665
  };
4053
- itemActions: {
4054
- actionId: string;
5666
+ itemActions: ({
5667
+ kind: "send";
4055
5668
  label: string;
4056
- input?: Record<string, unknown> | undefined;
4057
- }[];
5669
+ value?: string | undefined;
5670
+ visibleValue?: string | undefined;
5671
+ } | {
5672
+ url: string;
5673
+ kind: "link";
5674
+ label: string;
5675
+ })[];
4058
5676
  merchantName: string;
4059
5677
  mapUrl?: string | undefined;
4060
5678
  navigation?: {
4061
- provider: "amap" | "builtin";
5679
+ provider: "builtin" | "amap";
4062
5680
  launchParams?: Record<string, string> | undefined;
4063
5681
  } | undefined;
4064
5682
  }, {
@@ -4070,29 +5688,315 @@ declare const serverModule: {
4070
5688
  unitName?: string | undefined;
4071
5689
  poiId?: string | undefined;
4072
5690
  };
4073
- itemActions: {
4074
- actionId: string;
5691
+ itemActions: ({
5692
+ kind: "send";
4075
5693
  label: string;
4076
- input?: Record<string, unknown> | undefined;
4077
- }[];
5694
+ value?: string | undefined;
5695
+ visibleValue?: string | undefined;
5696
+ } | {
5697
+ url: string;
5698
+ kind: "link";
5699
+ label: string;
5700
+ })[];
4078
5701
  merchantName: string;
4079
5702
  mapUrl?: string | undefined;
4080
5703
  navigation?: {
4081
- provider: "amap" | "builtin";
5704
+ provider: "builtin" | "amap";
4082
5705
  launchParams?: Record<string, string> | undefined;
4083
5706
  } | undefined;
4084
5707
  }>>;
5708
+ 'recommend-merchants': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
5709
+ summary: zod.ZodOptional<zod.ZodString>;
5710
+ categoryTabs: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
5711
+ code: zod.ZodString;
5712
+ name: zod.ZodString;
5713
+ }, "strip", zod.ZodTypeAny, {
5714
+ code: string;
5715
+ name: string;
5716
+ }, {
5717
+ code: string;
5718
+ name: string;
5719
+ }>, "many">>;
5720
+ items: zod.ZodArray<zod.ZodObject<{
5721
+ merchantId: zod.ZodString;
5722
+ name: zod.ZodString;
5723
+ logoUrl: zod.ZodOptional<zod.ZodString>;
5724
+ coverUrl: zod.ZodOptional<zod.ZodString>;
5725
+ brand: zod.ZodOptional<zod.ZodString>;
5726
+ businessCategories: zod.ZodArray<zod.ZodString, "many">;
5727
+ location: zod.ZodObject<{
5728
+ buildingName: zod.ZodOptional<zod.ZodString>;
5729
+ floorName: zod.ZodOptional<zod.ZodString>;
5730
+ unitName: zod.ZodOptional<zod.ZodString>;
5731
+ displayText: zod.ZodString;
5732
+ poiId: zod.ZodOptional<zod.ZodString>;
5733
+ }, "strip", zod.ZodTypeAny, {
5734
+ displayText: string;
5735
+ buildingName?: string | undefined;
5736
+ floorName?: string | undefined;
5737
+ unitName?: string | undefined;
5738
+ poiId?: string | undefined;
5739
+ }, {
5740
+ displayText: string;
5741
+ buildingName?: string | undefined;
5742
+ floorName?: string | undefined;
5743
+ unitName?: string | undefined;
5744
+ poiId?: string | undefined;
5745
+ }>;
5746
+ status: zod.ZodObject<{
5747
+ code: zod.ZodEnum<["enabled", "disabled", "unknown"]>;
5748
+ label: zod.ZodString;
5749
+ observedAt: zod.ZodString;
5750
+ }, "strip", zod.ZodTypeAny, {
5751
+ code: "enabled" | "unknown" | "disabled";
5752
+ label: string;
5753
+ observedAt: string;
5754
+ }, {
5755
+ code: "enabled" | "unknown" | "disabled";
5756
+ label: string;
5757
+ observedAt: string;
5758
+ }>;
5759
+ description: zod.ZodOptional<zod.ZodString>;
5760
+ contactInfo: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
5761
+ channel: zod.ZodString;
5762
+ value: zod.ZodString;
5763
+ }, "strip", zod.ZodTypeAny, {
5764
+ value: string;
5765
+ channel: string;
5766
+ }, {
5767
+ value: string;
5768
+ channel: string;
5769
+ }>, "many">>;
5770
+ services: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
5771
+ operatingStatus: zod.ZodOptional<zod.ZodString>;
5772
+ rating: zod.ZodOptional<zod.ZodString>;
5773
+ avgSpend: zod.ZodOptional<zod.ZodString>;
5774
+ promotionFacts: zod.ZodArray<zod.ZodString, "many">;
5775
+ itemActions: zod.ZodArray<zod.ZodDiscriminatedUnion<"kind", [zod.ZodObject<{
5776
+ kind: zod.ZodLiteral<"send">;
5777
+ label: zod.ZodString;
5778
+ value: zod.ZodOptional<zod.ZodString>;
5779
+ visibleValue: zod.ZodOptional<zod.ZodString>;
5780
+ }, "strip", zod.ZodTypeAny, {
5781
+ kind: "send";
5782
+ label: string;
5783
+ value?: string | undefined;
5784
+ visibleValue?: string | undefined;
5785
+ }, {
5786
+ kind: "send";
5787
+ label: string;
5788
+ value?: string | undefined;
5789
+ visibleValue?: string | undefined;
5790
+ }>, zod.ZodObject<{
5791
+ kind: zod.ZodLiteral<"link">;
5792
+ label: zod.ZodString;
5793
+ url: zod.ZodString;
5794
+ }, "strip", zod.ZodTypeAny, {
5795
+ url: string;
5796
+ kind: "link";
5797
+ label: string;
5798
+ }, {
5799
+ url: string;
5800
+ kind: "link";
5801
+ label: string;
5802
+ }>]>, "many">;
5803
+ }, "strip", zod.ZodTypeAny, {
5804
+ status: {
5805
+ code: "enabled" | "unknown" | "disabled";
5806
+ label: string;
5807
+ observedAt: string;
5808
+ };
5809
+ name: string;
5810
+ merchantId: string;
5811
+ location: {
5812
+ displayText: string;
5813
+ buildingName?: string | undefined;
5814
+ floorName?: string | undefined;
5815
+ unitName?: string | undefined;
5816
+ poiId?: string | undefined;
5817
+ };
5818
+ itemActions: ({
5819
+ kind: "send";
5820
+ label: string;
5821
+ value?: string | undefined;
5822
+ visibleValue?: string | undefined;
5823
+ } | {
5824
+ url: string;
5825
+ kind: "link";
5826
+ label: string;
5827
+ })[];
5828
+ businessCategories: string[];
5829
+ promotionFacts: string[];
5830
+ description?: string | undefined;
5831
+ services?: string[] | undefined;
5832
+ brand?: string | undefined;
5833
+ logoUrl?: string | undefined;
5834
+ coverUrl?: string | undefined;
5835
+ contactInfo?: {
5836
+ value: string;
5837
+ channel: string;
5838
+ }[] | undefined;
5839
+ operatingStatus?: string | undefined;
5840
+ rating?: string | undefined;
5841
+ avgSpend?: string | undefined;
5842
+ }, {
5843
+ status: {
5844
+ code: "enabled" | "unknown" | "disabled";
5845
+ label: string;
5846
+ observedAt: string;
5847
+ };
5848
+ name: string;
5849
+ merchantId: string;
5850
+ location: {
5851
+ displayText: string;
5852
+ buildingName?: string | undefined;
5853
+ floorName?: string | undefined;
5854
+ unitName?: string | undefined;
5855
+ poiId?: string | undefined;
5856
+ };
5857
+ itemActions: ({
5858
+ kind: "send";
5859
+ label: string;
5860
+ value?: string | undefined;
5861
+ visibleValue?: string | undefined;
5862
+ } | {
5863
+ url: string;
5864
+ kind: "link";
5865
+ label: string;
5866
+ })[];
5867
+ businessCategories: string[];
5868
+ promotionFacts: string[];
5869
+ description?: string | undefined;
5870
+ services?: string[] | undefined;
5871
+ brand?: string | undefined;
5872
+ logoUrl?: string | undefined;
5873
+ coverUrl?: string | undefined;
5874
+ contactInfo?: {
5875
+ value: string;
5876
+ channel: string;
5877
+ }[] | undefined;
5878
+ operatingStatus?: string | undefined;
5879
+ rating?: string | undefined;
5880
+ avgSpend?: string | undefined;
5881
+ }>, "many">;
5882
+ noResultsReason: zod.ZodOptional<zod.ZodString>;
5883
+ observedAt: zod.ZodString;
5884
+ }, "strip", zod.ZodTypeAny, {
5885
+ observedAt: string;
5886
+ items: {
5887
+ status: {
5888
+ code: "enabled" | "unknown" | "disabled";
5889
+ label: string;
5890
+ observedAt: string;
5891
+ };
5892
+ name: string;
5893
+ merchantId: string;
5894
+ location: {
5895
+ displayText: string;
5896
+ buildingName?: string | undefined;
5897
+ floorName?: string | undefined;
5898
+ unitName?: string | undefined;
5899
+ poiId?: string | undefined;
5900
+ };
5901
+ itemActions: ({
5902
+ kind: "send";
5903
+ label: string;
5904
+ value?: string | undefined;
5905
+ visibleValue?: string | undefined;
5906
+ } | {
5907
+ url: string;
5908
+ kind: "link";
5909
+ label: string;
5910
+ })[];
5911
+ businessCategories: string[];
5912
+ promotionFacts: string[];
5913
+ description?: string | undefined;
5914
+ services?: string[] | undefined;
5915
+ brand?: string | undefined;
5916
+ logoUrl?: string | undefined;
5917
+ coverUrl?: string | undefined;
5918
+ contactInfo?: {
5919
+ value: string;
5920
+ channel: string;
5921
+ }[] | undefined;
5922
+ operatingStatus?: string | undefined;
5923
+ rating?: string | undefined;
5924
+ avgSpend?: string | undefined;
5925
+ }[];
5926
+ summary?: string | undefined;
5927
+ noResultsReason?: string | undefined;
5928
+ categoryTabs?: {
5929
+ code: string;
5930
+ name: string;
5931
+ }[] | undefined;
5932
+ }, {
5933
+ observedAt: string;
5934
+ items: {
5935
+ status: {
5936
+ code: "enabled" | "unknown" | "disabled";
5937
+ label: string;
5938
+ observedAt: string;
5939
+ };
5940
+ name: string;
5941
+ merchantId: string;
5942
+ location: {
5943
+ displayText: string;
5944
+ buildingName?: string | undefined;
5945
+ floorName?: string | undefined;
5946
+ unitName?: string | undefined;
5947
+ poiId?: string | undefined;
5948
+ };
5949
+ itemActions: ({
5950
+ kind: "send";
5951
+ label: string;
5952
+ value?: string | undefined;
5953
+ visibleValue?: string | undefined;
5954
+ } | {
5955
+ url: string;
5956
+ kind: "link";
5957
+ label: string;
5958
+ })[];
5959
+ businessCategories: string[];
5960
+ promotionFacts: string[];
5961
+ description?: string | undefined;
5962
+ services?: string[] | undefined;
5963
+ brand?: string | undefined;
5964
+ logoUrl?: string | undefined;
5965
+ coverUrl?: string | undefined;
5966
+ contactInfo?: {
5967
+ value: string;
5968
+ channel: string;
5969
+ }[] | undefined;
5970
+ operatingStatus?: string | undefined;
5971
+ rating?: string | undefined;
5972
+ avgSpend?: string | undefined;
5973
+ }[];
5974
+ summary?: string | undefined;
5975
+ noResultsReason?: string | undefined;
5976
+ categoryTabs?: {
5977
+ code: string;
5978
+ name: string;
5979
+ }[] | undefined;
5980
+ }>>;
4085
5981
  };
4086
5982
  skills: {
4087
5983
  [k: string]: _tbox_cn_app_sdk_server.LocalSkill;
4088
5984
  };
4089
5985
  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>>;
5986
+ 'mall-context': PreToolDef<_mastra_core_tools.Tool<{
5987
+ mallId: string;
5988
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "mall-context", unknown>>;
5989
+ 'floor-shops': PreToolDef<_mastra_core_tools.Tool<{
5990
+ floorQuery: string;
5991
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "floor-shops", unknown>>;
5992
+ 'category-shops': PreToolDef<_mastra_core_tools.Tool<{
5993
+ categoryQuery: string;
5994
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "category-shops", unknown>>;
5995
+ 'mall-overview': PreToolDef<_mastra_core_tools.Tool<{
5996
+ mallId: string;
5997
+ }, unknown, unknown, unknown, _mastra_core_tools.ToolExecutionContext<unknown, unknown, unknown>, "mall-overview", unknown>>;
4094
5998
  };
4095
5999
  register(ctx: ServerContext): void;
4096
6000
  };
4097
6001
 
4098
- export { SHOPPING_GUIDE_PROVIDER_TEMPLATE_ID, type ShoppingGuideToolIds, type ShoppingGuideTools, computeJoyCityCSign, createShoppingGuideTools, joycityCSignedAuthStrategy, resolveShoppingGuidePorts, serverModule, shoppingGuideCards };
6002
+ export { type ShoppingGuideToolIds, type ShoppingGuideTools, createShoppingGuideTools, resolveShoppingGuidePorts, serverModule, shoppingGuideCards };