@alipay/ams-checkout 2.0.20 → 2.0.22

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 (51) hide show
  1. package/ams-checkout.js +3 -3
  2. package/dist/ams-checkout.min.js +1 -1
  3. package/esm/config/index.d.ts +7 -0
  4. package/esm/config/index.js +2 -2
  5. package/esm/constant/element.d.ts +2 -1
  6. package/esm/constant/element.js +1 -0
  7. package/esm/constant/index.d.ts +4 -21
  8. package/esm/core/component/element/elementController/index.d.ts +3 -3
  9. package/esm/core/component/element/elementController/index.js +66 -42
  10. package/esm/core/component/element/elementProcessor/paymentProcessor.js +13 -10
  11. package/esm/core/component/element/index.d.ts +4 -1
  12. package/esm/core/component/element/index.js +19 -4
  13. package/esm/core/component/element/mock.js +1 -1
  14. package/esm/core/component/element/modernElementController/adapter.d.ts +19 -0
  15. package/esm/core/component/element/modernElementController/adapter.js +79 -0
  16. package/esm/core/component/element/modernElementController/index.d.ts +155 -0
  17. package/esm/core/component/element/modernElementController/index.js +1818 -0
  18. package/esm/core/component/element/type.d.ts +16 -18
  19. package/esm/core/instance/index.d.ts +12 -4
  20. package/esm/core/instance/index.js +152 -26
  21. package/esm/foundation/service/event-center.js +1 -1
  22. package/esm/foundation/service/security/index.d.ts +9 -4
  23. package/esm/foundation/service/security/index.js +158 -35
  24. package/esm/foundation/service/security/security.d.ts +22 -1
  25. package/esm/foundation/service/security/security.js +150 -37
  26. package/esm/foundation/utils/preload_helper.d.ts +6 -3
  27. package/esm/foundation/utils/preload_helper.js +122 -32
  28. package/esm/main.js +4 -4
  29. package/esm/modern/global.d.ts +3 -0
  30. package/esm/modern/index.d.ts +5 -1
  31. package/esm/modern/index.js +1 -51
  32. package/esm/modern/tools.js +1 -0
  33. package/esm/plugin/component/channel.d.ts +3 -3
  34. package/esm/plugin/component/channel.js +28 -19
  35. package/esm/plugin/component/index.js +36 -29
  36. package/esm/tsdoc-metadata.json +1 -1
  37. package/esm/types/index.d.ts +1 -0
  38. package/esm/util/beforeConfirm.d.ts +4 -2
  39. package/esm/util/beforeConfirm.js +15 -14
  40. package/esm/util/jshield-apdid/apdid-loader.js +377 -0
  41. package/esm/util/jshield-apdid/index.js +21 -0
  42. package/esm/util/logger.js +1 -2
  43. package/esm/util/security-registry.d.ts +72 -0
  44. package/esm/util/security-registry.js +175 -0
  45. package/esm/util/security.d.ts +22 -1
  46. package/esm/util/security.js +150 -39
  47. package/package.json +15 -9
  48. package/types.d.ts +872 -1102
  49. package/types.untrimmed.d.ts +1024 -1121
  50. package/esm/modern/stageName.d.ts +0 -3
  51. package/esm/modern/stageName.js +0 -1
package/types.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import type { CompatibleTrackerFull } from '@antintl/intl-tracker/common';
2
+
1
3
  declare interface ActionForm {
2
4
  /**
3
5
  * @description action form type
@@ -5,8 +7,6 @@ declare interface ActionForm {
5
7
  actionFormType?: string;
6
8
  }
7
9
 
8
- declare type AddBehavior = (behavior: BehaviorData) => void;
9
-
10
10
  declare interface Address {
11
11
  /**
12
12
  * @description 2-letter courtry/region code, refer to ISO 3166
@@ -143,7 +143,26 @@ declare interface AmountLimitInfo {
143
143
  /**
144
144
  * AntomBridge事件类型,包含了SDK与webapp通信的所有事件类型
145
145
  */
146
- export declare interface AntomBridgeEventMap<AppConfig extends Record<string, any> = Record<string, any>, SubmitParams extends Record<string, any> = Record<string, any>> extends BaseBridgeEventMap<AppConfig, SubmitResult, SubmitParams, string, OpenModalParams> {
146
+ export declare interface AntomBridgeEventMap<AppConfig extends Record<string, any> = Record<string, any>, SubmitParams extends Record<string, any> = Record<string, any>, SR extends SubmitResult = SubmitResult> extends BaseBridgeEventMap<AppConfig, SR, SubmitParams, string, AntomOpenModalConfig> {
147
+ }
148
+
149
+ /**
150
+ * @description 整合了native事件的eventMap,如果你的业务element需要支持native,事件请继承这个类型
151
+ */
152
+ export declare interface AntomBridgeWithNativeEventMap<AppConfig extends Record<string, any> = Record<string, any>, SubmitParams extends Record<string, any> = Record<string, any>, SR extends SubmitResult = SubmitResult> extends AntomBridgeEventMap<AppConfig, SubmitParams, SR> {
153
+ /* Excluded from this release type: showPopup */
154
+ /* Excluded from this release type: dismissLoading */
155
+ /* Excluded from this release type: webAppReady */
156
+ /* Excluded from this release type: onLaunch */
157
+ /* Excluded from this release type: renderComponent */
158
+ /* Excluded from this release type: appHeartBeat */
159
+ /* Excluded from this release type: showToast */
160
+ /* Excluded from this release type: onEventCallback */
161
+ /* Excluded from this release type: onSubmitPayCallback */
162
+ /* Excluded from this release type: reset */
163
+ /* Excluded from this release type: destroy */
164
+ /* Excluded from this release type: onClose */
165
+ /* Excluded from this release type: onRedirect */
147
166
  }
148
167
 
149
168
  /**
@@ -178,9 +197,9 @@ declare interface AntomErrorResponse {
178
197
  extendInfo?: Record<string, any>;
179
198
  }
180
199
 
181
- /* Excluded from this release type: AntomMiddlePageEventMap */
200
+ export declare type AntomLayouts = 'tabs' | 'accordion';
182
201
 
183
- /* Excluded from this release type: AntomModalEventMap */
202
+ /* Excluded from this release type: AntomMiddlePageEventMap */
184
203
 
185
204
  /* Excluded from this release type: AntomOpenModalConfig */
186
205
 
@@ -195,11 +214,14 @@ export declare class AntomSDK extends BaseElementsFactory {
195
214
  * @description 更新配置
196
215
  */
197
216
  updateConfig(config: Partial<BaseFactoryConfig>): void;
217
+ /* Excluded from this release type: redirect */
198
218
  /* Excluded from this release type: openModal */
199
219
  elements(): Elements;
220
+ createElement(elementType: 'payment', options?: PaymentAppConfig): PaymentElement;
200
221
  createElement(elementType: 'vaulting', options?: VaultingAppConfig): VaultingElement;
201
222
  createElement(elementType: 'CVV', options?: CVVAppConfig): CVVElement;
202
223
  createElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
224
+ getElement(elementType: 'payment', options?: PaymentAppConfig): PaymentElement;
203
225
  getElement(elementType: 'vaulting', options?: VaultingAppConfig): VaultingElement;
204
226
  getElement(elementType: 'CVV', options?: CVVAppConfig): CVVElement;
205
227
  getElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
@@ -256,6 +278,22 @@ export declare const AntomSDKErrorCodes: {
256
278
  * @description channelClientId 查询失败(请求异常,如网络错误、服务器错误等)
257
279
  */
258
280
  readonly CHANNEL_CLIENT_ID_QUERY_ERROR: "CHANNEL_CLIENT_ID_QUERY_ERROR";
281
+ /**
282
+ * @description checkout 页面未加载成功,不允许 updateConfig
283
+ */
284
+ readonly CHECKOUT_NOT_READY: "CHECKOUT_NOT_READY";
285
+ /**
286
+ * @description 支付进行中,不允许更新金额
287
+ */
288
+ readonly PAYMENT_IN_PROGRESS: "PAYMENT_IN_PROGRESS";
289
+ /**
290
+ * @description 金额不能为空
291
+ */
292
+ readonly AMOUNT_VALUE_EMPTY: "AMOUNT_VALUE_EMPTY";
293
+ /**
294
+ * @description 金额格式非法(仅允许整数和小数)
295
+ */
296
+ readonly AMOUNT_VALUE_INVALID: "AMOUNT_VALUE_INVALID";
259
297
  readonly GENERATE_ELEMENT_KEY_FAILED: "GENERATE_ELEMENT_KEY_FAILED";
260
298
  readonly ELEMENT_INIT_FAILED: "ELEMENT_INIT_FAILED";
261
299
  readonly MOUNT_TIMEOUT: "MOUNT_TIMEOUT";
@@ -272,6 +310,11 @@ export declare const AntomSDKErrorCodes: {
272
310
  readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
273
311
  readonly NOT_SUPPORT_ELEMENT: "NOT_SUPPORT_ELEMENT";
274
312
  readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
313
+ readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
314
+ readonly UPDATE_CONFIG_NOT_READY: "UPDATE_CONFIG_NOT_READY";
315
+ /**
316
+ * 查询到的结果消息
317
+ */
275
318
  readonly INVALID_MODAL_URL: "INVALID_MODAL_URL";
276
319
  readonly LOAD_DEBUGGER_FAILED: "LOAD_DEBUGGER_FAILED";
277
320
  readonly API_MISS_PARAMS: "API_MISS_PARAMS";
@@ -289,29 +332,23 @@ export declare type AntomSDKErrorCodes = (typeof AntomSDKErrorCodes)[keyof typeo
289
332
 
290
333
  export declare type AntomTheme = 'default' | 'agateGreen' | 'night' | 'nostalgicGray' | 'gamingPurple' | 'cherryBlossomPink' | 'light';
291
334
 
292
- declare interface APICallbackOptions {
293
- requestType: 'fetch' | 'xhr';
294
- time: number;
295
- url: string;
296
- isSuccess?: boolean;
297
- error?: unknown;
298
- status?: number;
299
- type?: string;
300
- method?: string;
301
- traceId?: string;
302
- errorCode?: string | number;
303
- errorMsg?: string;
304
- }
335
+ export declare type AntomVariables = 'content-primary' | 'content-secondary' | 'content-tertiary' | 'content-quaternary' | 'background-primary' | 'background-secondary' | 'background-disable' | 'background-transparency' | 'border-primary' | 'border-secondary' | 'border-disable' | 'action-normal' | 'action-hover' | 'action-disable' | 'action-secondary' | 'state-failure' | 'state-warning' | 'state-success' | 'state-info' | 'state-marketing' | 'state-conventional' | 'radius-backup' | 'radius-module' | 'radius-component' | 'radius-button' | 'wrapper-padding' | 'stroke-default' | 'stroke-active' | 'fontFamily';
305
336
 
337
+ /**
338
+ * @description SDK UI组件的外观配置。
339
+ * 控制主题、CSS变量、布局规则及显示设置。
340
+ * @template Props - 自定义外观属性类型,默认为 DefaultAppearanceProps。
341
+ */
306
342
  declare interface Appearance<Props extends Partial<DefaultAppearanceProps> = DefaultAppearanceProps> {
307
343
  theme?: Props['theme'];
308
344
  variables?: PartialSpeKey<Props['variables'], string>;
309
345
  rules?: PartialSpeKey<Props['rules'], CSS_2.Properties<string, number>>;
310
346
  displaySetting?: PartialSpeKey<Props['displaySetting'], boolean>;
311
347
  layout?: Props['layout'];
348
+ fonts?: FontSource[];
312
349
  }
313
350
 
314
- declare type AppearanceSetting = {
351
+ export declare type AppearanceSetting = {
315
352
  displaySetting: Record<'showCardBrandIcon', boolean>;
316
353
  theme: 'light' | 'dark';
317
354
  layout: 'accordion' | 'tabs';
@@ -712,6 +749,16 @@ declare interface BaseBridgeEventMap<AppConfig extends Record<string, any> = Rec
712
749
  /* Excluded from this release type: "OPENSDK@HANDSHAKE" */
713
750
  /* Excluded from this release type: "OPENSDK@READY_HANDSHAKE" */
714
751
  /* Excluded from this release type: "OPENSDK@UPDATE_CONFIG" */
752
+ /**
753
+ * 更新配置时的回复事件,包含可能发生的错误信息。
754
+ * 如果 error 为 undefined,则表示没有错误发生。
755
+ */
756
+ "OPENSDK@UPDATE_CONFIG_REPLY": {
757
+ /**
758
+ * 更新配置时发生的错误,如果error为undefined,则表示没有错误发生
759
+ */
760
+ error?: ErrorPayload<string>;
761
+ } | undefined;
715
762
  /* Excluded from this release type: "OPENSDK@HANDSHAKE_ACK" */
716
763
  /* Excluded from this release type: "OPENSDK@SUBMIT" */
717
764
  /* Excluded from this release type: "OPENSDK@SUBMIT_REPLY" */
@@ -721,12 +768,14 @@ declare interface BaseBridgeEventMap<AppConfig extends Record<string, any> = Rec
721
768
  /* Excluded from this release type: "OPENSDK@REDIRECT" */
722
769
  /* Excluded from this release type: "OPENSDK@TRANSFER_MODAL_PORT" */
723
770
  /* Excluded from this release type: "OPENSDK@TRANSFER_MODAL_APPEARANCE" */
771
+ /* Excluded from this release type: "OPENSDK@TRANSFER_MODAL_INITIALDATA" */
724
772
  /* Excluded from this release type: "OPENSDK@TRANSFER_APP_PORT" */
725
773
  /* Excluded from this release type: "OPENSDK@ERROR" */
726
774
  /* Excluded from this release type: "OPENSDK@TRANSFER_RECEIVE_PORT" */
727
775
  /* Excluded from this release type: "OPENSDK@TRANSFER_SEND_PORT" */
728
776
  /* Excluded from this release type: "OPENSDK@MESSAGE" */
729
777
  /* Excluded from this release type: "OPENSDK@HEIGHT_UPDATE" */
778
+ /* Excluded from this release type: "OPENSDK@DESTROY_ELEMENT" */
730
779
  }
731
780
 
732
781
  declare interface BaseConfig {
@@ -747,6 +796,7 @@ declare interface BaseConfig {
747
796
  */
748
797
  locale?: string;
749
798
  /* Excluded from this release type: version */
799
+ /* Excluded from this release type: colorScheme */
750
800
  }
751
801
 
752
802
  /**
@@ -761,21 +811,26 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
761
811
  /* Excluded from this release type: bridge */
762
812
  /* Excluded from this release type: hooks */
763
813
  /* Excluded from this release type: iframe */
764
- status: 'initialized' | 'mounting' | 'mounted' | 'ready' | 'destroyed' | 'unmounted';
814
+ status: ElementStatus;
765
815
  /* Excluded from this release type: cachedSend */
816
+ /** Reuses the pending reply for concurrent submit calls. */
817
+ private submitPromise?;
766
818
  constructor(name: string, config: WithAppURL<Config>);
767
819
  /* Excluded from this release type: submit */
768
820
  /* Excluded from this release type: setup */
821
+ /** Races merchant setup against destruction to stop the mount flow immediately. */
822
+ private _setup;
823
+ /* Excluded from this release type: is */
769
824
  /**
770
- * @param {string | HTMLElement} containerId 如果给字符串id不要带#号
825
+ * @param {HTMLElement} container
771
826
  */
772
- mount(containerId: HTMLElement): Promise<void>;
827
+ mount(container: HTMLElement): Promise<void>;
773
828
  /* Excluded from this release type: _mount */
774
829
  /**
775
830
  * 更新webapp配置
776
831
  * @param {Partial<BaseElementAppConfig>} newConfig
777
832
  */
778
- updateConfig(newConfig: Partial<Config['appConfig']>): void;
833
+ updateConfig(newConfig: Partial<Config['appConfig']>): Promise<EventMap["OPENSDK@UPDATE_CONFIG_REPLY"]>;
779
834
  /**
780
835
  * 卸载元素
781
836
  */
@@ -808,13 +863,14 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
808
863
  }
809
864
 
810
865
  declare interface BaseElementAppConfig {
811
- locale?: string;
866
+ /* Excluded from this release type: locale */
812
867
  /* Excluded from this release type: env */
813
868
  /* Excluded from this release type: merchantId */
814
869
  [key: string]: any;
815
870
  }
816
871
 
817
- declare interface BaseElementConfig<T extends BaseElementAppConfig = Record<string, any>> extends BaseConfig {
872
+ declare interface BaseElementConfig<T extends BaseElementAppConfig = BaseElementAppConfig> extends BaseConfig {
873
+ /* Excluded from this release type: trackId */
818
874
  appConfig: T;
819
875
  elementMode: ElementMode;
820
876
  }
@@ -849,6 +905,10 @@ declare abstract class BaseElementsFactory extends BaseFactory {
849
905
  declare abstract class BaseFactory {
850
906
  /* Excluded from this release type: config */
851
907
  /* Excluded from this release type: isInit */
908
+ /**
909
+ * Indicates whether this factory instance has been destroyed.
910
+ */
911
+ isDestroyed: boolean;
852
912
  /**
853
913
  * @description 当前版本号
854
914
  * 用于日志上报
@@ -865,6 +925,7 @@ declare abstract class BaseFactory {
865
925
  */
866
926
  constructor(config: BaseFactoryConfig);
867
927
  protected openModal(payload: BaseBridgeEventMap['OPENSDK@OPEN_MODAL']): Promise<OpenModalHandle>;
928
+ protected redirect(payload: BaseBridgeEventMap['OPENSDK@REDIRECT']): void | Promise<void>;
868
929
  /* Excluded from this release type: canUseElements */
869
930
  /**
870
931
  * @description 无需手动调用
@@ -904,26 +965,6 @@ declare interface BaseFactoryConfig extends BaseConfig {
904
965
  /* Excluded from this release type: trackerCode */
905
966
  }
906
967
 
907
- declare type BaseInfo = BrowserInfo & DeviceInfo & NetworkInfo & LocationInfo & EnvInfo & OSInfo & {
908
- sdk?: string;
909
- marmotId?: string;
910
- compatibleAppId?: string;
911
- deviceId?: string;
912
- userId?: string;
913
- programVer?: string;
914
- language?: string;
915
- timezone?: string;
916
- bizType?: string;
917
- productId?: string;
918
- clientId?: string;
919
- visibleState?: 'visible' | 'hidden' | 'app-visible' | 'page-visible' | 'app-hidden' | 'page-hidden';
920
- };
921
-
922
- declare interface BaseInfoPlugin {
923
- getAppName?(): Promise<string | undefined>;
924
- getDefaultExtraInfo?(): Promise<BaseInfo>;
925
- }
926
-
927
968
  /**
928
969
  * @description 主元素,可以独立提交
929
970
  */
@@ -939,6 +980,10 @@ declare abstract class BaseMainElement<Config extends BaseElementConfig = BaseEl
939
980
  /* Excluded from this release type: _submit */
940
981
  }
941
982
 
983
+ /**
984
+ * @description 打开模态框的配置项。
985
+ * 包含显示选项、关闭行为、外观设置及初始化数据。
986
+ */
942
987
  declare interface BaseOpenModalConfig {
943
988
  /**
944
989
  * 无需手动传递,app的唯一scope
@@ -962,74 +1007,23 @@ declare interface BaseOpenModalConfig {
962
1007
  onClose?: () => void;
963
1008
  url: string;
964
1009
  /**
965
- * 关闭时,是否需要app页面二次确认,默认为false,即直接关闭
1010
+ * @description 关闭时,是否需要告知webapp页面来进行关闭 链路为 modalApp 告知-> webapp 关闭-> sdk,默认为false,即直接在modal中进行关闭 modalApp 关闭-> sdk,
966
1011
  */
967
1012
  closeConfirm?: boolean;
1013
+ /**
1014
+ * @description 需要同步的外观配置
1015
+ */
968
1016
  appearance?: Appearance;
1017
+ /**
1018
+ * @description 需要传递的初始化数据
1019
+ */
1020
+ initialData?: Record<string, any>;
1021
+ /**
1022
+ * @description 无需手动传递, 模态框的唯一标识
1023
+ */
1024
+ modalId?: string;
969
1025
  }
970
1026
 
971
- declare type BehaviorConfig = {
972
- enableConsole?: boolean;
973
- };
974
-
975
- declare interface BehaviorData {
976
- type: string;
977
- data: {
978
- msg?: string | null;
979
- from?: string;
980
- to?: string;
981
- };
982
- timestamp: number;
983
- times?: number;
984
- }
985
-
986
- declare type BlankMonitorConfig = {
987
- selector?: string | string[];
988
- delay?: number | (() => number);
989
- persistent?: boolean;
990
- };
991
-
992
- declare interface BrowserInfo {
993
- title?: string;
994
- fullUrl?: string;
995
- url?: string;
996
- referrer?: string;
997
- domCnt?: number;
998
- delay?: number;
999
- scrollTop?: number;
1000
- lastAction?: string;
1001
- sessionId?: string;
1002
- containerPageSessionId?: string;
1003
- containerSessionId?: string;
1004
- ua?: string;
1005
- browser?: string;
1006
- cCoreVer?: string;
1007
- assetsVer?: string;
1008
- }
1009
-
1010
- declare type C = {
1011
- c1?: string;
1012
- c2?: string;
1013
- c3?: string;
1014
- c4?: string;
1015
- c5?: string;
1016
- c6?: string;
1017
- c7?: string;
1018
- c8?: string;
1019
- c9?: string;
1020
- c10?: string;
1021
- c11?: string;
1022
- c12?: string;
1023
- c13?: string;
1024
- c14?: string;
1025
- c15?: string;
1026
- c16?: string;
1027
- c17?: string;
1028
- c18?: string;
1029
- c19?: string;
1030
- c20?: string;
1031
- };
1032
-
1033
1027
  /**
1034
1028
  * @description C2P标识
1035
1029
  */
@@ -1063,6 +1057,12 @@ declare interface C2PProps {
1063
1057
  merchantTransactionId?: string;
1064
1058
  }
1065
1059
 
1060
+ /* Excluded from this release type: CallbackErrorInfo */
1061
+
1062
+ /* Excluded from this release type: CallbackReturnData */
1063
+
1064
+ /* Excluded from this release type: CallbackSessionNextAction */
1065
+
1066
1066
  declare interface CardIssuerAuthentication {
1067
1067
  /**
1068
1068
  * @description 卡售卖单元
@@ -1480,7 +1480,7 @@ declare interface CashierSdkActionQueryResult {
1480
1480
  /**
1481
1481
  * @description 物流信息, 包含物流地址和物流费
1482
1482
  */
1483
- shippingInfo?: ShippingInfo;
1483
+ shippingInfo?: ShippingInfo_2;
1484
1484
  /**
1485
1485
  * @description 用户已绑资产信息
1486
1486
  */
@@ -1513,28 +1513,6 @@ declare interface ChargeInfo {
1513
1513
  chargeActualAmountView?: PaymentView;
1514
1514
  }
1515
1515
 
1516
- /** click 事件 resolve 参数 */
1517
- export declare interface ClickResolveOptions {
1518
- amount?: {
1519
- currency: string;
1520
- value: string;
1521
- };
1522
- shippingAddressRequired?: boolean;
1523
- allowedShippingCountries?: string[];
1524
- shippingRates?: Array<{
1525
- id: string;
1526
- displayName: string;
1527
- amount: string;
1528
- }>;
1529
- lineItems?: Array<{
1530
- name: string;
1531
- amount: string;
1532
- }>;
1533
- business?: {
1534
- name: string;
1535
- };
1536
- }
1537
-
1538
1516
  declare interface CodeFormView {
1539
1517
  /**
1540
1518
  * @description title
@@ -1560,6 +1538,11 @@ declare interface CodeFormView {
1560
1538
  * @description label
1561
1539
  */
1562
1540
  label?: string;
1541
+ /**
1542
+ * @description Payment guidance information (CKP scenario) The frontend only displays the payment guide button
1543
+ * when appLinkUrlForWeb is populated
1544
+ */
1545
+ paymentGuideInfo?: PaymentGuideInfo;
1563
1546
  /**
1564
1547
  * @description 提醒事项
1565
1548
  */
@@ -1576,6 +1559,10 @@ declare interface CodeFormView {
1576
1559
  * @description 码过期时间
1577
1560
  */
1578
1561
  codeExpireTime?: string;
1562
+ /**
1563
+ * @description QR code configuration including renderStyle, centerIcon and cornerIcon
1564
+ */
1565
+ qrcodeConfig?: QrCodeConfig;
1579
1566
  }
1580
1567
 
1581
1568
  /**
@@ -2043,68 +2030,7 @@ declare interface ComIpayIexpprodServiceFacadeCommonPromotionInfo {
2043
2030
  extendInfo?: Record<string, string>;
2044
2031
  }
2045
2032
 
2046
- declare class CompatibleTracker extends Tracker {
2047
- private mdata;
2048
- initi(options: OriginTrackerInitOptions & {
2049
- performance?: boolean;
2050
- error?: boolean;
2051
- }): Promise<boolean>;
2052
- set(options: Record<string, any>): void;
2053
- protected getDefaultExtraInfo(): Promise<{
2054
- title?: string | undefined;
2055
- fullUrl?: string | undefined;
2056
- url?: string | undefined;
2057
- referrer?: string | undefined;
2058
- domCnt?: number | undefined;
2059
- delay?: number | undefined;
2060
- scrollTop?: number | undefined;
2061
- lastAction?: string | undefined;
2062
- sessionId?: string | undefined;
2063
- containerPageSessionId?: string | undefined;
2064
- containerSessionId?: string | undefined;
2065
- ua?: string | undefined;
2066
- browser?: string | undefined;
2067
- cCoreVer?: string | undefined;
2068
- assetsVer?: string | undefined;
2069
- device?: string | undefined;
2070
- deviceType?: string | undefined;
2071
- deviceBrand?: string | undefined;
2072
- deviceModel?: string | undefined;
2073
- screenWidth?: number | undefined;
2074
- screenHeight?: number | undefined;
2075
- contentHeight?: number | undefined;
2076
- pixelRatio?: number | undefined;
2077
- cClient?: string | undefined;
2078
- networkType?: string | undefined;
2079
- isp?: string | undefined;
2080
- ip?: string | undefined;
2081
- countryName?: string | undefined;
2082
- cityName?: string | undefined;
2083
- provinceName?: string | undefined;
2084
- area?: string | undefined;
2085
- env?: Env_2 | undefined;
2086
- sprintId?: string | undefined;
2087
- container?: string | undefined;
2088
- cOfflineVer?: string | undefined;
2089
- serverIp?: string | undefined;
2090
- serverEnv?: string | undefined;
2091
- canaryFlag?: string | undefined;
2092
- os?: string | undefined;
2093
- osVer?: string | undefined;
2094
- sdk?: string | undefined;
2095
- marmotId?: string | undefined;
2096
- compatibleAppId?: string | undefined;
2097
- deviceId?: string | undefined;
2098
- userId?: string | undefined;
2099
- programVer?: string | undefined;
2100
- language?: string | undefined;
2101
- timezone?: string | undefined;
2102
- bizType?: string | undefined;
2103
- productId?: string | undefined;
2104
- clientId?: string | undefined;
2105
- visibleState?: "hidden" | "visible" | "app-visible" | "page-visible" | "app-hidden" | "page-hidden" | undefined;
2106
- }>;
2107
- }
2033
+ declare type CompatibleTrackerFullOptions = ConstructorParameters<typeof CompatibleTrackerFull>[0];
2108
2034
 
2109
2035
  /**
2110
2036
  * @description googlePay createPaymentSession 入参
@@ -2129,13 +2055,17 @@ export declare interface ConfirmCardSetupOptions {
2129
2055
  redirect?: 'always' | 'if_required';
2130
2056
  }
2131
2057
 
2132
- export declare interface ConfirmPaymentOptions extends Omit<ConfirmCardSetupOptions, 'elements'> {
2058
+ export declare interface ConfirmPaymentOptions extends Omit<ConfirmCardSetupOptions, 'elements'>, PaymentSubmitParams {
2133
2059
  sessionData: string;
2134
2060
  /**
2135
- * @description 传入已挂载的 CVVElement Elements 实例,不传则使用无 UI 自动提交模式
2061
+ * @description 传入已挂载的 CVVElement / PaymentElement / Elements 实例,不传则使用无 UI 自动提交模式
2136
2062
  */
2137
2063
  elements?: BaseMainElement | BaseElements;
2138
2064
  appearance?: CVVAppearance;
2065
+ /**
2066
+ * @description 集成用户自定义信息(如 cardHolderName)
2067
+ */
2068
+ params?: Record<string, unknown>;
2139
2069
  }
2140
2070
 
2141
2071
  /**
@@ -2207,6 +2137,13 @@ declare namespace CSS_2 {
2207
2137
  }
2208
2138
  }
2209
2139
 
2140
+ /**
2141
+ * CSS 字体源 — 通过 <link> 标签加载外部 CSS(如 Google Fonts)
2142
+ */
2143
+ declare interface CssFontSource {
2144
+ cssSrc: string;
2145
+ }
2146
+
2210
2147
  declare interface CurrencyInfo {
2211
2148
  /**
2212
2149
  * @description Getter method for property <tt>currencyCode</tt>.
@@ -2252,15 +2189,21 @@ declare interface CustomerFxInfo {
2252
2189
  }
2253
2190
 
2254
2191
  /**
2255
- * CustomizedPerformanceKey 是给业务使用的自定义指标,共 20 个,页面之间互相独立
2192
+ * 自定义字体源 通过 @font-face 加载自托管字体
2256
2193
  */
2257
- declare type CustomizedPerformanceKey = 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm6' | 'm7' | 'm8' | 'm9' | 'm10' | 'm11' | 'm12' | 'm13' | 'm14' | 'm15' | 'm16' | 'm17' | 'm18' | 'm19' | 'm20';
2194
+ declare interface CustomFontSource {
2195
+ family: string;
2196
+ src: string;
2197
+ weight?: string;
2198
+ style?: string;
2199
+ unicodeRange?: string;
2200
+ }
2258
2201
 
2259
2202
  /**
2260
2203
  * @public
2261
2204
  * @description CVV element app config type
2262
2205
  */
2263
- export declare interface CVVAppConfig extends BaseAppearance<CVVAppearance> {
2206
+ export declare interface CVVAppConfig extends BaseAppearance<CVVAppearance>, BaseElementAppConfig {
2264
2207
  /**
2265
2208
  * @description sessionData
2266
2209
  */
@@ -2280,7 +2223,8 @@ export declare type CVVAppearance = PickAppearance<CVVAppearanceProps>;
2280
2223
 
2281
2224
  export declare type CVVAppearanceProps = {
2282
2225
  theme: AntomTheme;
2283
- variables: 'content-primary' | 'content-tertiary' | 'background-primary' | 'background-disable' | 'background-transparency' | 'border-primary' | 'border-disable' | 'action-normal' | 'action-hover' | 'radius-component' | 'content-secondary' | 'background-secondary';
2226
+ variables: AntomVariables;
2227
+ fonts?: FontSource[];
2284
2228
  };
2285
2229
 
2286
2230
  /**
@@ -2366,6 +2310,10 @@ export declare interface CVVSubmitParams {
2366
2310
  * 重定向策略
2367
2311
  */
2368
2312
  redirect?: 'always' | 'if_required';
2313
+ /**
2314
+ * 集成用户自定义信息(如 cardHolderName)
2315
+ */
2316
+ params?: Record<string, unknown>;
2369
2317
  }
2370
2318
 
2371
2319
  declare interface DanaSofCouponInfo {
@@ -2943,18 +2891,6 @@ declare interface DeliveryEstimateInfo {
2943
2891
  value?: number;
2944
2892
  }
2945
2893
 
2946
- declare interface DeviceInfo {
2947
- device?: string;
2948
- deviceType?: string;
2949
- deviceBrand?: string;
2950
- deviceModel?: string;
2951
- screenWidth?: number;
2952
- screenHeight?: number;
2953
- contentHeight?: number;
2954
- pixelRatio?: number;
2955
- cClient?: string;
2956
- }
2957
-
2958
2894
  /**
2959
2895
  * @description 立减型营销信息
2960
2896
  */
@@ -3000,29 +2936,6 @@ declare interface DisplayItem {
3000
2936
  status?: string;
3001
2937
  }
3002
2938
 
3003
- declare type DMC = {
3004
- d1?: number | string;
3005
- d2?: number | string;
3006
- d3?: number | string;
3007
- d4?: number | string;
3008
- d5?: number | string;
3009
- d6?: number | string;
3010
- d7?: number | string;
3011
- d8?: number | string;
3012
- d9?: number | string;
3013
- d10?: number | string;
3014
- d11?: number | string;
3015
- d12?: number | string;
3016
- d13?: number | string;
3017
- d14?: number | string;
3018
- d15?: number | string;
3019
- d16?: number | string;
3020
- d17?: number | string;
3021
- d18?: number | string;
3022
- d19?: number | string;
3023
- d20?: number | string;
3024
- } & C & M;
3025
-
3026
2939
  /**
3027
2940
  * @description 元素列表项类型
3028
2941
  */
@@ -3084,21 +2997,9 @@ declare class Elements extends BaseElements {
3084
2997
  getElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
3085
2998
  }
3086
2999
 
3087
- declare type ElementTypeEnum = 'TEXT' | 'DIGIT_6' | 'DIGIT_18' | 'DIGIT_32' | 'DIGIT_11' | 'DIGIT_4' | 'DIGIT_10' | 'CHECKBOX' | 'SELECT' | 'SWITCH' | 'PASSWORD_2' | 'DATE_PICKER' | 'CHECKLIST' | 'ADDRESS' | 'DROPBOX' | 'DIGIT_13' | 'GRIDLIST' | 'TENOR_SELECT_KR' | 'STORELIST' | 'GRIDBANKLIST' | 'SUB_QR_CODE' | 'GRIDBANKTOP' | 'PHONE_TEXT_AREA_CODE';
3088
-
3089
- declare type Env = 'local' | 'dev' | 'sit' | 'pre' | 'prod';
3090
-
3091
- declare type Env_2 = 'DEV' | 'SIT' | 'PRE' | 'PROD' | 'LOCAL';
3000
+ declare type ElementStatus = 'initialized' | 'mounting' | 'mounted' | 'ready' | 'destroyed' | 'unmounted';
3092
3001
 
3093
- declare interface EnvInfo {
3094
- env?: Env_2;
3095
- sprintId?: string;
3096
- container?: string;
3097
- cOfflineVer?: string;
3098
- serverIp?: string;
3099
- serverEnv?: string;
3100
- canaryFlag?: string;
3101
- }
3002
+ declare type ElementTypeEnum = 'TEXT' | 'DIGIT_6' | 'DIGIT_18' | 'DIGIT_32' | 'DIGIT_11' | 'DIGIT_4' | 'DIGIT_10' | 'CHECKBOX' | 'SELECT' | 'SWITCH' | 'PASSWORD_2' | 'DATE_PICKER' | 'CHECKLIST' | 'ADDRESS' | 'DROPBOX' | 'DIGIT_13' | 'GRIDLIST' | 'TENOR_SELECT_KR' | 'STORELIST' | 'GRIDBANKLIST' | 'SUB_QR_CODE' | 'GRIDBANKTOP' | 'PHONE_TEXT_AREA_CODE' | 'SUPPORTIPPBANKLIST';
3102
3003
 
3103
3004
  /**
3104
3005
  * @description 错误上下文对象。参考主站<code>ErrorContext</code>实现。
@@ -3129,9 +3030,11 @@ declare type ErrorSource = ErrorSource_2;
3129
3030
 
3130
3031
  declare type ErrorSource_2 = 'SDK_INTERNAL' | 'SDK_USAGE' | 'APP_RUNTIME' | 'SERVER_API' | 'SYSTEM';
3131
3032
 
3132
- declare type ErrorType = 'js-error-addeventlistener' | 'source-error' | 'promise-error' | 'video-error' | 'video-source-error';
3133
-
3134
- declare type EventFunction = (opt: Record<string, any>) => boolean;
3033
+ /**
3034
+ * @description 工具类型,从类型中排除 undefined。
3035
+ * 如果 T 继承 undefined 则返回 never,否则返回 T。
3036
+ */
3037
+ declare type ExcludeUndefined<T> = T extends undefined ? never : T;
3135
3038
 
3136
3039
  /**
3137
3040
  * @description 卡分期计划
@@ -3175,6 +3078,22 @@ declare interface ExpCardPlan {
3175
3078
  * @description 每个月分期利息
3176
3079
  */
3177
3080
  monthlyInterest?: ComIpayIexpprodServiceFacadeCommonAmount;
3081
+ /**
3082
+ * @description 分期有效期开始时间
3083
+ */
3084
+ validStartTime?: string;
3085
+ /**
3086
+ * @description 分期有效期结束时间
3087
+ */
3088
+ validEndTime?: string;
3089
+ /**
3090
+ * @description 支持的银行信息
3091
+ *
3092
+ * 包含该分期计划支持的银行详细信息,包括银行简称、logo等。
3093
+ * 该字段从 installmentBanks 数据中通过 bankShortName 关联而来,
3094
+ * 若分期计划无银行限制或未匹配到银行信息,该字段可能为null。@see ExpSupportIppBank
3095
+ */
3096
+ supportedBank?: ExpSupportIppBank;
3178
3097
  }
3179
3098
 
3180
3099
  declare interface ExpInstallmentInfo {
@@ -3199,12 +3118,18 @@ declare interface ExpPaymentOptionDetail {
3199
3118
  * @public
3200
3119
  * @description Express element app config type
3201
3120
  */
3202
- export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetting> {
3121
+ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetting>, BaseElementAppConfig {
3203
3122
  /** payment SessionData */
3204
3123
  sessionData?: string;
3205
3124
  /** Business division (country/region) */
3206
3125
  businessDivision?: string;
3207
- /** Amount & Currency */
3126
+ /**
3127
+ * Amount & Currency
3128
+ *
3129
+ * Only effective via `updateConfig({ amount })` at runtime.
3130
+ * Passing amount at creation time is ignored; the initial amount
3131
+ * comes from the server-side sdkQuery result (renderData.paymentAmount).
3132
+ */
3208
3133
  amount?: {
3209
3134
  currency: string;
3210
3135
  value: string;
@@ -3213,20 +3138,20 @@ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetti
3213
3138
  paypal?: PayPalConfig;
3214
3139
  /**
3215
3140
  * Button text type (following Stripe Express Checkout Element design)
3216
- * Each payment method can independently set the button display text
3217
- * Reserved index signature for future payment method integration
3141
+ * Each payment method can independently set the button display text.
3218
3142
  */
3219
3143
  buttonType?: {
3220
3144
  /** PayPal: paypal | checkout | buynow | pay */
3221
3145
  paypal?: 'paypal' | 'checkout' | 'buynow' | 'pay';
3222
3146
  [method: string]: string | undefined;
3223
3147
  };
3224
- /** Unified height for all buttons (px) */
3148
+ /**
3149
+ * Unified height for all buttons (px)
3150
+ */
3225
3151
  buttonHeight?: number;
3226
3152
  /**
3227
3153
  * Button color theme (following Stripe Express Checkout Element design)
3228
- * Each payment method can independently set the theme color
3229
- * Reserved index signature for future payment method integration
3154
+ * Each payment method can independently set the theme color.
3230
3155
  */
3231
3156
  buttonTheme?: {
3232
3157
  /** PayPal: gold | blue | silver | white | black */
@@ -3244,6 +3169,13 @@ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetti
3244
3169
  * Locale for internationalization, passed from entry params (loadAntom), default to en_US
3245
3170
  */
3246
3171
  locale?: string;
3172
+ /**
3173
+ * 是否运行在 Native App 的 WebView 中。
3174
+ * 为 true 时,跳转通过 onRedirect 事件委托给 Native 端处理。
3175
+ */
3176
+ isNativeAppWebview?: boolean;
3177
+ /* Excluded from this release type: merchantDomain */
3178
+ /* Excluded from this release type: doMain */
3247
3179
  }
3248
3180
 
3249
3181
  /** cancel 事件负载 */
@@ -3252,24 +3184,54 @@ export declare interface ExpressCancelEvent {
3252
3184
  data?: any;
3253
3185
  }
3254
3186
 
3255
- /** click 事件负载 */
3187
+ /** click 事件负载(纯通知,商户可用于埋点,SDK 不等待响应) */
3256
3188
  export declare interface ExpressClickEvent {
3257
3189
  expressPaymentType: string;
3258
- resolve: (options: ClickResolveOptions) => void;
3259
3190
  }
3260
3191
 
3261
3192
  /** confirm 事件负载(统一终态,替代 approve) */
3262
3193
  export declare interface ExpressConfirmData {
3263
3194
  expressPaymentType: string;
3264
- paymentData: any;
3265
- billingDetails?: any;
3266
- shippingAddress?: any;
3267
- sessionData?: string;
3195
+ billingDetails?: {
3196
+ name?: string;
3197
+ email?: string;
3198
+ phone?: string;
3199
+ address?: {
3200
+ line1?: string;
3201
+ line2?: string;
3202
+ city?: string;
3203
+ state?: string;
3204
+ postalCode?: string;
3205
+ country?: string;
3206
+ };
3207
+ };
3208
+ shippingAddress?: {
3209
+ name?: string;
3210
+ phone?: string;
3211
+ address?: {
3212
+ line1?: string;
3213
+ line2?: string;
3214
+ city?: string;
3215
+ state?: string;
3216
+ postalCode?: string;
3217
+ country?: string;
3218
+ };
3219
+ };
3220
+ /** 支付方式返回的原始支付数据(如 alipayCn、applePay 等) */
3221
+ paymentData?: unknown;
3222
+ /**
3223
+ * 商户主动拒绝本次支付(如库存不足、价格变动等)。
3224
+ * 调用后 SDK 立即取消支付流程,confirmPayment() 无需调用。
3225
+ */
3226
+ paymentFailed: () => void;
3268
3227
  }
3269
3228
 
3270
3229
  /**
3271
3230
  * @public
3272
3231
  * @description Express element - express checkout element, supports PayPal / Apple Pay / Google Pay
3232
+ *
3233
+ * Host 侧只保留 Element 生命周期、商户事件包装和 bridge 连接。
3234
+ * AP/GP/AlipayCN 的 submit、2DS/3DS、polling 结果处理都由 express_element webapp 承接。
3273
3235
  */
3274
3236
  export declare class ExpressElement extends BaseMainElement<ExpressElementConfig, ExpressElementEvents> {
3275
3237
  static elementType: string;
@@ -3277,15 +3239,48 @@ export declare class ExpressElement extends BaseMainElement<ExpressElementConfig
3277
3239
  * Store all function-type callbacks locally, not involved in postMessage serialization
3278
3240
  */
3279
3241
  private _callbacks;
3242
+ /** setup 阶段的 renderData,仅供非 Safari PC Apple Pay host-token 路径读取 paymentRequest。 */
3243
+ private _renderData;
3244
+ /**
3245
+ * 构造时传入的初始金额。cleanAppConfig 已剔除 amount,setup 阶段透传给 iframe(PayPal 按钮首屏需要)
3246
+ * 与 PayPal channelClientId 查询仍需读它;运行时改额只能走 updateConfig。
3247
+ */
3248
+ private _initialAmount;
3249
+ /**
3250
+ * 本地事件处理器(绕过 bridge 的 host→webapp 方向限制)。
3251
+ * bridge.on 只能监听 iframe 发来的消息;SDK host 主动推送事件给商户时走 _emit → _localHandlers。
3252
+ */
3253
+ private _localHandlers;
3254
+ /** 支付流程进行中标志(click → confirm/error/cancel 之间) */
3255
+ private _paymentInProgress;
3256
+ private _paypalOverlay;
3280
3257
  constructor(name: string, config: ExpressElementConfig);
3281
- setup(): Promise<Partial<ExpressAppConfig> | undefined>;
3282
3258
  /**
3283
- * Register internal event listeners (iframe communication)
3259
+ * 重写 on:
3260
+ * 1. 对 confirm 事件拦截,在商户回调执行前注入 paymentFailed()
3261
+ * 2. 对 onRedirect 事件同步注册到 _localHandlers(SDK host 主动推送时商户能收到)
3262
+ */
3263
+ on(event: string, handler: (...args: any[]) => void): void;
3264
+ /**
3265
+ * SDK host 主动推送事件给商户(不走 bridge postMessage,直接调用本地注册的 handler)。
3266
+ * 用于 Native WebView 场景下 SDK 需要向商户透传跳转信息等。
3267
+ */
3268
+ private _emit;
3269
+ updateConfig(newConfig: Pick<ExpressAppConfig, 'amount'>): Promise<ExpressElementEvents['OPENSDK@UPDATE_CONFIG_REPLY']>;
3270
+ /**
3271
+ * 商户在 confirm 回调内调用,触发实际支付提交。
3272
+ * iframe 收到 OPENSDK@COMPLETE_PAYMENT 后执行 submitPay / polling 等,
3273
+ * 完成后通过 OPENSDK@COMPLETE_PAYMENT_RESULT 回包,Promise resolve。
3284
3274
  */
3285
- /** Overlay DOM node, created on click, removed after payment ends */
3286
- private _overlay;
3287
- private _showOverlay;
3288
- private _hideOverlay;
3275
+ completePayment(redirect?: 'always' | 'if_required'): Promise<{
3276
+ success: boolean;
3277
+ result?: any;
3278
+ error?: {
3279
+ code: string;
3280
+ message: string;
3281
+ };
3282
+ }>;
3283
+ setup(): Promise<Partial<ExpressAppConfig> | undefined>;
3289
3284
  private registerInternalListeners;
3290
3285
  protected focus(): void;
3291
3286
  protected blur(): void;
@@ -3303,57 +3298,83 @@ export declare interface ExpressElementConfig extends BaseElementConfig<ExpressA
3303
3298
  * @public
3304
3299
  * @description Express element events type
3305
3300
  */
3306
- export declare interface ExpressElementEvents extends AntomBridgeEventMap<ExpressAppConfig> {
3307
- /**
3308
- * @description Element ready event — 上报可用支付方式
3309
- */
3301
+ export declare interface ExpressElementEvents extends AntomBridgeWithNativeEventMap<ExpressAppConfig> {
3310
3302
  ready: {
3311
3303
  availablePaymentMethods: Record<string, boolean>;
3312
3304
  };
3313
- /**
3314
- * @description 用户点击按钮 — 商户必须调用 event.resolve() 后 sheet 才弹出
3315
- * 对 PayPal: resolve 为 no-op(PayPal 自行弹出 popup)
3316
- */
3317
3305
  click: ExpressClickEvent;
3318
- /**
3319
- * @description 统一支付完成事件(替代 approve)
3320
- * 用户授权完成后触发,通过 expressPaymentType 区分钱包类型
3321
- */
3322
3306
  confirm: ExpressConfirmData;
3323
- /**
3324
- * @description 支付错误事件(扩展基类 ErrorPayload,新增 expressPaymentType)
3325
- */
3326
3307
  error: ErrorPayload & {
3327
3308
  expressPaymentType: string;
3328
3309
  };
3329
- /**
3330
- * @description 用户取消支付
3331
- */
3332
3310
  cancel: ExpressCancelEvent;
3333
- /**
3334
- * @description 用户在 sheet 内变更收货地址(AP/GP only,PayPal 不触发)
3335
- */
3336
3311
  shippingaddresschange: {
3337
3312
  expressPaymentType: string;
3338
3313
  address: any;
3339
3314
  resolve: (options: ShippingResolveOptions) => void;
3340
3315
  reject: (reason: string) => void;
3341
3316
  };
3342
- /**
3343
- * @description 用户在 sheet 内变更配送方式(AP/GP only,PayPal 不触发)
3344
- */
3345
3317
  shippingratechange: {
3346
3318
  expressPaymentType: string;
3347
3319
  shippingRate: any;
3348
3320
  resolve: (options: RateResolveOptions) => void;
3349
3321
  };
3350
- /* Excluded from this release type: contentHeightChanged */
3351
- /* Excluded from this release type: "paypal:createOrder" */
3352
- /* Excluded from this release type: "paypal:createOrder:reply" */
3353
- /* Excluded from this release type: "paypal:onShippingAddressChange" */
3354
- /* Excluded from this release type: "paypal:onShippingAddressChange:reply" */
3355
- /* Excluded from this release type: "paypal:onShippingOptionsChange" */
3356
- /* Excluded from this release type: "paypal:onShippingOptionsChange:reply" */
3322
+ contentHeightChanged: {
3323
+ height: number;
3324
+ };
3325
+ 'OPENSDK@CLICK': {
3326
+ expressPaymentType: string;
3327
+ };
3328
+ 'OPENSDK@CLICK_RESOLVE': Record<string, never>;
3329
+ 'OPENSDK@PAYPAL_CREATE_ORDER': {
3330
+ requestId: string;
3331
+ };
3332
+ 'OPENSDK@PAYPAL_CREATE_ORDER_REPLY': {
3333
+ requestId: string;
3334
+ sessionData?: string;
3335
+ error?: string;
3336
+ };
3337
+ 'OPENSDK@PAYPAL_SHIPPING_ADDRESS_CHANGE': {
3338
+ requestId: string;
3339
+ shippingData: any;
3340
+ };
3341
+ 'OPENSDK@PAYPAL_SHIPPING_ADDRESS_CHANGE_REPLY': {
3342
+ requestId: string;
3343
+ error?: string;
3344
+ };
3345
+ 'OPENSDK@PAYPAL_SHIPPING_OPTIONS_CHANGE': {
3346
+ requestId: string;
3347
+ shippingData: any;
3348
+ };
3349
+ 'OPENSDK@PAYPAL_SHIPPING_OPTIONS_CHANGE_REPLY': {
3350
+ requestId: string;
3351
+ error?: string;
3352
+ };
3353
+ 'OPENSDK@GET_APPLE_PAY_TOKEN': {
3354
+ requestId: string;
3355
+ expressPaymentType: string;
3356
+ };
3357
+ /** host 完成 Apple Pay token 获取后回包给 iframe,submit/3DS/polling 均由 webapp 完成 */
3358
+ 'OPENSDK@GET_APPLE_PAY_TOKEN_REPLY': {
3359
+ requestId: string;
3360
+ success: boolean;
3361
+ result?: any;
3362
+ errorCode?: string;
3363
+ errorMessage?: string;
3364
+ billingDetails?: any;
3365
+ shippingAddress?: any;
3366
+ };
3367
+ 'OPENSDK@UPDATE_CONFIG_REPLY': {
3368
+ error?: ErrorPayload<string>;
3369
+ };
3370
+ 'OPENSDK@COMPLETE_PAYMENT_REJECT': Record<string, never>;
3371
+ onRedirect: {
3372
+ normalUrl: string;
3373
+ applinkUrl?: string;
3374
+ schemaUrl?: string;
3375
+ isDestroy: boolean;
3376
+ needReset: boolean;
3377
+ };
3357
3378
  }
3358
3379
 
3359
3380
  declare interface ExpSupportBank {
@@ -3378,6 +3399,24 @@ declare interface ExpSupportCardBrand {
3378
3399
  logo?: Logo;
3379
3400
  }
3380
3401
 
3402
+ /**
3403
+ * @description 支持的分期银行信息
3404
+ */
3405
+ declare interface ExpSupportIppBank {
3406
+ /**
3407
+ * @description bank short name or bank code
3408
+ */
3409
+ bankShortName?: string;
3410
+ /**
3411
+ * @description logo
3412
+ */
3413
+ logo?: Logo;
3414
+ /**
3415
+ * @description bins
3416
+ */
3417
+ bins?: string[];
3418
+ }
3419
+
3381
3420
  declare type Fallback<T> = { [P in keyof T]: T[P] | readonly NonNullable<T[P]>[] };
3382
3421
 
3383
3422
  declare interface FirstPhaseSubscriptionDetail {
@@ -3395,6 +3434,27 @@ declare interface FirstPhaseSubscriptionDetail {
3395
3434
  promotionDetails?: PromotionDetail[];
3396
3435
  }
3397
3436
 
3437
+ declare type FontSource = CssFontSource | CustomFontSource;
3438
+
3439
+ declare interface FrontModulesToBeLoadedInterface {
3440
+ acquirerName: string;
3441
+ scriptUrl: string;
3442
+ }
3443
+
3444
+ /**
3445
+ * @description 分期银行展示模型
3446
+ */
3447
+ declare interface FrontSupportIppBank {
3448
+ /**
3449
+ * @description bank short name or bank code
3450
+ */
3451
+ bankShortName?: string;
3452
+ /**
3453
+ * @description logo
3454
+ */
3455
+ logo?: Logo;
3456
+ }
3457
+
3398
3458
  declare type GetI18nQueryParam = string | {
3399
3459
  /**
3400
3460
  * 多语言文案的 key
@@ -3412,40 +3472,6 @@ declare type GetI18nQueryParam = string | {
3412
3472
  defaultMessage?: string;
3413
3473
  };
3414
3474
 
3415
- declare function getMiniPerformance(): Promise<{
3416
- performance: {
3417
- appLaunch: number;
3418
- jumpAppStartUnix: number;
3419
- preparePhase: number;
3420
- appPhase: number;
3421
- pagePhase: number;
3422
- appxPhase: number;
3423
- launchId: string;
3424
- launchType: 0 | 1;
3425
- };
3426
- onLoadTime: number;
3427
- loadId: string;
3428
- srcCount: number;
3429
- webviewComponentSrc?: string | undefined;
3430
- } | undefined>;
3431
-
3432
- declare type GetRequesterResult = (data: string, rawData: (ReportData & BaseInfo) | IOptions | IEventOPtions) => Promise<void>;
3433
-
3434
- declare interface GetWebVitalsInfoResult {
3435
- fcp: Promise<number | null | undefined>;
3436
- ttfb: Promise<number | null | undefined>;
3437
- lcp: Promise<number | null | undefined>;
3438
- inp: Promise<number | null | undefined>;
3439
- cls: Promise<number | null | undefined>;
3440
- }
3441
-
3442
- declare interface GetWhiteScreenInfoOptions {
3443
- selector?: string | string[];
3444
- delay?: number | (() => number);
3445
- persistent?: boolean;
3446
- ignoreNotInViewport?: boolean;
3447
- }
3448
-
3449
3475
  declare type GlobalOptions = {
3450
3476
  i18n?: SimpleI18n;
3451
3477
  i18nPrefix: string;
@@ -4013,17 +4039,12 @@ declare type HtmlAttributes =
4013
4039
  | "[writingsuggestions]"
4014
4040
  | "[xmlns]";
4015
4041
 
4016
- declare interface HTTPErrorCallbackOptions {
4017
- requestType: 'fetch' | 'xhr';
4018
- error?: unknown;
4019
- status?: number;
4020
- url: string;
4021
- type?: string;
4022
- redirected?: 0 | 1;
4023
- responseUrl?: string;
4024
- time: number;
4025
- method?: string;
4026
- aborted?: 0 | 1;
4042
+ declare interface IApplePayContactField {
4043
+ email: string;
4044
+ name: string;
4045
+ phone: string;
4046
+ postalAddress: string;
4047
+ phoneticName: string;
4027
4048
  }
4028
4049
 
4029
4050
  declare interface iBaseElementClass {
@@ -4031,16 +4052,6 @@ declare interface iBaseElementClass {
4031
4052
  elementType: string;
4032
4053
  }
4033
4054
 
4034
- declare interface IEventOPtions {
4035
- eventId: string;
4036
- param4: Record<string, any>;
4037
- immediat?: boolean;
4038
- }
4039
-
4040
- declare type IMDAP_SERVER = (typeof imdapServers)[number];
4041
-
4042
- declare const imdapServers: readonly ["https://imdap-sea.alipay.com/loggw/dwcookieLogGet.do", "https://imdap.alipay.com/loggw/dwcookieLogGet.do", "https://imdap-de.alipay.com/loggw/dwcookieLogGet.do"];
4043
-
4044
4055
  declare interface InstallmentPlan {
4045
4056
  /**
4046
4057
  * @description 分期支持的银行
@@ -4159,102 +4170,117 @@ declare interface InterestFree {
4159
4170
  bankShortName?: string;
4160
4171
  }
4161
4172
 
4162
- declare class IntlOpenSDKTracker extends CompatibleTracker {
4163
- constructor(initOption?: IntlOpenSDKTrackerInitOptions_2);
4164
- initi(options: IntlOpenSDKTrackerInitOptions_2): Promise<boolean>;
4165
- set(data: Partial<IntlOpenSDKTrackerInitOptions_2>): void;
4166
- }
4167
-
4168
- declare interface IntlOpenSDKTrackerInitOptions extends Omit<IntlOpenSDKTrackerInitOptions_2, 'appId'> {
4173
+ declare interface IntlOpenSDKTrackerInitOptions extends Omit<ExcludeUndefined<CompatibleTrackerFullOptions>, 'appId'> {
4174
+ trackId?: string;
4175
+ /**
4176
+ * @description appId,默认值为180020050100012557
4177
+ */
4169
4178
  appId?: string;
4170
- }
4171
-
4172
- declare interface IntlOpenSDKTrackerInitOptions_2 extends Omit<OriginTrackerInitOptions, 'bizType' | 'productId'> {
4173
- whiteScreen?: BlankMonitorConfig | boolean;
4174
- bizType?: string;
4175
- productId?: string;
4176
4179
  /**
4177
- * @description 追踪id
4180
+ * origin 完全按入参 key 输出
4181
+ * snake → 强制 snake_case
4182
+ * camel → 强制 camelCase
4183
+ * both → snake + origin 双写
4178
4184
  */
4179
- trackId?: string;
4180
- mdata?: Record<string, any>;
4181
- performance?: boolean;
4182
- error?: boolean;
4183
- }
4184
-
4185
- declare interface IOptions {
4186
- actionId: string;
4187
- spmId: string;
4188
- param1?: string;
4189
- param2?: string;
4190
- param3?: string;
4191
- param4?: Record<string, any>;
4192
- param5?: Record<string, any>;
4193
- stayTime?: number;
4194
- }
4195
-
4196
- declare interface ISystemInfo {
4197
- readonly pixelRatio: number;
4198
- readonly windowWidth: number;
4199
- readonly windowHeight: number;
4200
- readonly model: string;
4201
- readonly language: string;
4202
- readonly version: string;
4203
- readonly platform: string;
4204
- readonly system: string;
4205
- readonly screenWidth: number;
4206
- readonly screenHeight: number;
4207
- readonly brand: string;
4208
- readonly app: string;
4209
- readonly [propName: string]: any;
4210
- }
4211
-
4212
- declare interface ITracert extends IUserTracertProperties {
4213
- get: (arg0: string) => any;
4214
- set: (arg0: IUserTracertProperties) => void;
4215
- loadPlugins: (_plugins: PluginFunction[]) => void;
4216
- readonly logLevel?: string;
4217
- readonly logVersion?: string;
4218
- readonly debug?: boolean;
4219
- readonly contact?: boolean;
4220
- readonly pluginReady?: boolean;
4221
- readonly _plugins?: readonly PluginFunction[];
4222
- readonly _beforeEvObj?: Record<string, EventFunction[]>;
4223
- readonly _afterEvObj?: Record<string, EventFunction[]>;
4224
- readonly _pluginLoadCnt?: number;
4225
- readonly apiCashList?: any[];
4226
- }
4227
-
4228
- declare interface IUserTracertProperties {
4229
- readonly ready?: boolean;
4230
- readonly bizType?: string;
4231
- readonly deviceId?: string;
4232
- readonly userId?: string;
4233
- readonly spmAPos?: string;
4234
- readonly spmBPos?: string;
4235
- readonly pageId?: string;
4236
- readonly server?: string;
4237
- readonly servers?: string[];
4238
- readonly chInfo?: string;
4239
- readonly scm?: string;
4240
- readonly env?: Env;
4241
- readonly switch?: boolean;
4242
- readonly sendFrequency?: number;
4243
- readonly batchCount?: number;
4244
- readonly referSPM?: string;
4245
- readonly sessionId?: string;
4246
- readonly appId?: string;
4247
- readonly productId?: string;
4248
- readonly mdata?: Record<string, number | string>;
4249
- readonly systemInfo?: ISystemInfo;
4250
- readonly networkType?: string;
4251
- readonly path?: string;
4252
- readonly packageVersion?: string;
4253
- readonly autoExpo?: boolean;
4185
+ keyFormat?: 'origin' | 'snake' | 'camel' | 'both';
4186
+ /**
4187
+ * 是否上报idengine_user_path
4188
+ */
4189
+ userPathAuto?: boolean;
4254
4190
  }
4255
4191
 
4256
- declare interface LagPlugin {
4257
- onFpsLag?: (callback: (durationList: number[]) => void, maxDuration?: number, maxTimeoutCount?: number) => void;
4192
+ declare interface IPaymentSessionMetaData {
4193
+ clientId?: string;
4194
+ renderDisplayType?: string;
4195
+ paymentSessionConfig?: PaymentSessionConfig;
4196
+ securityConfig?: SessionSecurityConfig;
4197
+ moneyView?: any;
4198
+ extendInfo?: string;
4199
+ paymentMethodInfoView?: any;
4200
+ paymentView?: any;
4201
+ modernWeb?: boolean;
4202
+ action?: PaymentSessionAction;
4203
+ /**
4204
+ * @description 是一个string,灰度开关,格式为 flag1,flag2,flag3
4205
+ */
4206
+ flowSwitchTags?: string;
4207
+ authUrlInfo?: {
4208
+ appIdentifier?: string;
4209
+ applinkUrl?: string;
4210
+ normalUrl?: string;
4211
+ schemeUrl?: string;
4212
+ authUrl?: string;
4213
+ };
4214
+ paymentSessionFactor?: {
4215
+ externalRiskTimeout?: number;
4216
+ extendInfo?: {
4217
+ merchantCapabilities?: string[];
4218
+ supportedNetworks?: string[];
4219
+ requiredBillingContactFields: IApplePayContactField[];
4220
+ requiredShippingContactFields: IApplePayContactField[];
4221
+ };
4222
+ merchantInfo?: {
4223
+ registeredCountry?: string;
4224
+ partnerId?: string;
4225
+ merchantName?: string;
4226
+ };
4227
+ order?: {
4228
+ orderDescription: string;
4229
+ };
4230
+ paymentAmount?: {
4231
+ value?: string;
4232
+ currency?: string;
4233
+ };
4234
+ paymentMethodInfo?: {
4235
+ paymentMethodType?: string;
4236
+ };
4237
+ paymentMethodViewMetaData?: any;
4238
+ paymentRequestId?: string;
4239
+ supportedLanguages?: any;
4240
+ /**
4241
+ * 当前为苹果分期场景的信息
4242
+ */
4243
+ recurringInfo?: {
4244
+ /**
4245
+ * 代扣协议开始日期 不传为当前系统时间
4246
+ */
4247
+ startDate?: number;
4248
+ /**
4249
+ * 代扣协议结束日期 不传不限制结束时间
4250
+ */
4251
+ endDate?: number;
4252
+ /**
4253
+ * 付款时间间隔单位,支持:"year" "month" "day" "hour" "minute" 不传默认month
4254
+ */
4255
+ intervalUnit?: string;
4256
+ /**
4257
+ * 付款时间间隔。比如每过6个月付款一次,intervalCount就是6, 不传默认为1
4258
+ */
4259
+ intervalCount?: number;
4260
+ /**
4261
+ * 分期标题信息
4262
+ */
4263
+ title?: string;
4264
+ /**
4265
+ * 分期管理页面
4266
+ */
4267
+ managementURL?: string;
4268
+ /**
4269
+ * 苹果通知ipay MAPN信息变更的地址
4270
+ */
4271
+ tokenNotificationURL?: string;
4272
+ /**
4273
+ * 分期协议描述
4274
+ */
4275
+ agreementDescription?: string;
4276
+ };
4277
+ frontModulesToBeLoaded?: FrontModulesToBeLoadedInterface[];
4278
+ };
4279
+ connectFactor?: {
4280
+ enableConnect?: boolean;
4281
+ };
4282
+ skipRenderPaymentMethod?: boolean;
4283
+ needAccountConfirmPage?: boolean;
4258
4284
  }
4259
4285
 
4260
4286
  /**
@@ -4309,86 +4335,6 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
4309
4335
  env?: 'sandbox' | 'prod';
4310
4336
  }
4311
4337
 
4312
- declare interface LocationInfo {
4313
- countryName?: string;
4314
- cityName?: string;
4315
- provinceName?: string;
4316
- area?: string;
4317
- }
4318
-
4319
- declare interface LogInfo {
4320
- title: string;
4321
- msg?: string | Error | Record<string, number | string>;
4322
- }
4323
-
4324
- declare type LogItem = {
4325
- code: string;
4326
- msg: string;
4327
- marmotId?: string;
4328
- s1?: string | number;
4329
- s2?: string | number;
4330
- s3?: string | number;
4331
- s4?: string | number;
4332
- s5?: string | number;
4333
- s6?: string | number;
4334
- s7?: string | number;
4335
- s8?: string | number;
4336
- s9?: string | number;
4337
- s10?: string | number;
4338
- s11?: string | number;
4339
- s12?: string | number;
4340
- s13?: string | number;
4341
- s14?: string | number;
4342
- s15?: string | number;
4343
- s16?: string | number;
4344
- s17?: string | number;
4345
- s18?: string | number;
4346
- s19?: string | number;
4347
- s20?: string | number;
4348
- env?: Env_2;
4349
- sdk?: string;
4350
- container?: string;
4351
- title?: string;
4352
- fullUrl?: string;
4353
- sprintId?: string;
4354
- ip?: string;
4355
- countryName?: string;
4356
- cityName?: string;
4357
- provinceName?: string;
4358
- cOfflineVer?: string;
4359
- url?: string;
4360
- referrer?: string;
4361
- domCnt?: number;
4362
- delay?: number;
4363
- scrollTop?: number;
4364
- lastAction?: string;
4365
- sessionId?: string;
4366
- isp?: string;
4367
- area?: string;
4368
- ua?: string;
4369
- browser?: string;
4370
- os?: string;
4371
- device?: string;
4372
- deviceType?: string;
4373
- deviceBrand?: string;
4374
- deviceModel?: string;
4375
- screenWidth?: number;
4376
- screenHeight?: number;
4377
- contentHeight?: number;
4378
- pixelRatio?: number;
4379
- cClient?: string;
4380
- cClientId?: string;
4381
- cCoreVer?: string;
4382
- assetsVer?: string;
4383
- traceId?: string;
4384
- serverIp?: string;
4385
- serverEnv?: string;
4386
- clientId?: string;
4387
- spm?: string;
4388
- spma?: string;
4389
- spmb?: string;
4390
- } & DMC;
4391
-
4392
4338
  /**
4393
4339
  * @description Logo信息
4394
4340
  */
@@ -4419,29 +4365,6 @@ declare interface Logo {
4419
4365
  logoHeight?: string;
4420
4366
  }
4421
4367
 
4422
- declare type M = {
4423
- m1?: number;
4424
- m2?: number;
4425
- m3?: number;
4426
- m4?: number;
4427
- m5?: number;
4428
- m6?: number;
4429
- m7?: number;
4430
- m8?: number;
4431
- m9?: number;
4432
- m10?: number;
4433
- m11?: number;
4434
- m12?: number;
4435
- m13?: number;
4436
- m14?: number;
4437
- m15?: number;
4438
- m16?: number;
4439
- m17?: number;
4440
- m18?: number;
4441
- m19?: number;
4442
- m20?: number;
4443
- };
4444
-
4445
4368
  /**
4446
4369
  * @description 端上的行为设定 @Author yanhong
4447
4370
  */
@@ -4585,12 +4508,6 @@ declare interface MultiCurrencyMoney {
4585
4508
  currencyValue?: string;
4586
4509
  }
4587
4510
 
4588
- declare interface NetworkInfo {
4589
- networkType?: string;
4590
- isp?: string;
4591
- ip?: string;
4592
- }
4593
-
4594
4511
  declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string & {}> {
4595
4512
  /**
4596
4513
  * The **`box-align`** CSS property specifies how an element aligns its contents across its layout in a perpendicular direction. The effect of the property is only visible if there is extra space in the box.
@@ -6662,34 +6579,96 @@ declare interface ObsoletePropertiesHyphen<TLength = (string & {}) | 0, TTime =
6662
6579
  *
6663
6580
  * @deprecated
6664
6581
  */
6665
- "-webkit-box-orient"?: Property.BoxOrient | undefined;
6582
+ "-webkit-box-orient"?: Property.BoxOrient | undefined;
6583
+ /**
6584
+ * The **`-moz-box-pack`** and **`-webkit-box-pack`** CSS properties specify how a `-moz-box` or `-webkit-box` packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.
6585
+ *
6586
+ * **Syntax**: `start | center | end | justify`
6587
+ *
6588
+ * **Initial value**: `start`
6589
+ *
6590
+ * @deprecated
6591
+ */
6592
+ "-webkit-box-pack"?: Property.BoxPack | undefined;
6593
+ }
6594
+
6595
+ declare type ObsoletePropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<ObsoletePropertiesHyphen<TLength, TTime>>;
6596
+
6597
+ declare interface OneAccountInfo {
6598
+ /**
6599
+ * @description accountId
6600
+ */
6601
+ oneAccountId?: string;
6602
+ /**
6603
+ * @description 邮箱
6604
+ */
6605
+ email?: string;
6606
+ /**
6607
+ * @description 账号状态
6608
+ */
6609
+ accountStatus?: string;
6610
+ }
6611
+
6612
+ /**
6613
+ * @description one account 账户信息查询结果
6614
+ */
6615
+ declare interface OneAccountQueryResult {
6616
+ /**
6617
+ * @description 是否业务处理成功
6618
+ */
6619
+ success?: boolean;
6620
+ /**
6621
+ * @description 错误上下文
6622
+ */
6623
+ errorContext?: ErrorContext;
6624
+ /**
6625
+ * @description 返回结果码
6626
+ */
6627
+ resultCode?: string;
6628
+ /**
6629
+ * @description 返回结果信息
6630
+ */
6631
+ resultMessage?: string;
6632
+ /**
6633
+ * @description error actions
6634
+ */
6635
+ errorActions?: Record<string, string>;
6636
+ /**
6637
+ * @description error code
6638
+ */
6639
+ errorCode?: string;
6640
+ /**
6641
+ * @description error status
6642
+ */
6643
+ errorStatus?: string;
6644
+ /**
6645
+ * @description error message
6646
+ */
6647
+ errorMessage?: string;
6648
+ /**
6649
+ * @description extend info
6650
+ */
6651
+ extendInfo?: Record<string, string>;
6666
6652
  /**
6667
- * The **`-moz-box-pack`** and **`-webkit-box-pack`** CSS properties specify how a `-moz-box` or `-webkit-box` packs its contents in the direction of its layout. The effect of this is only visible if there is extra space in the box.
6668
- *
6669
- * **Syntax**: `start | center | end | justify`
6670
- *
6671
- * **Initial value**: `start`
6672
- *
6673
- * @deprecated
6653
+ * @description one account 账户信息
6674
6654
  */
6675
- "-webkit-box-pack"?: Property.BoxPack | undefined;
6676
- }
6677
-
6678
- declare type ObsoletePropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<ObsoletePropertiesHyphen<TLength, TTime>>;
6679
-
6680
- declare interface OneAccountInfo {
6655
+ accountInfo?: OneAccountInfo;
6681
6656
  /**
6682
- * @description accountId
6657
+ * @description action form 下一步动作
6683
6658
  */
6684
- oneAccountId?: string;
6659
+ actionForm?: OtpChallengeActionForm;
6685
6660
  /**
6686
- * @description 邮箱
6661
+ * @description 支付方式列表
6687
6662
  */
6688
- email?: string;
6663
+ paymentMethods?: PaymentMethodView[];
6689
6664
  /**
6690
- * @description 账号状态
6665
+ * @description 物流信息
6691
6666
  */
6692
- accountStatus?: string;
6667
+ shippings?: ShippingInfo_2[];
6668
+ /**
6669
+ * @description 支付金额 (订单金额 + 物流费)
6670
+ */
6671
+ paymentAmount?: MobileMoneyView;
6693
6672
  }
6694
6673
 
6695
6674
  /**
@@ -6752,7 +6731,9 @@ declare type OpenSDKInternalErrorCodes = (typeof OpenSDKInternalErrorCodes)[keyo
6752
6731
 
6753
6732
  declare class OpenSDKTracker {
6754
6733
  private options?;
6734
+ private intlTrackerOptions?;
6755
6735
  private tracker?;
6736
+ private trackerInitPromise?;
6756
6737
  /**
6757
6738
  * @description trackId,会话最终的唯一标识,可以用来打通服务端,追踪整体会话
6758
6739
  */
@@ -6770,7 +6751,7 @@ declare class OpenSDKTracker {
6770
6751
  * @param options
6771
6752
  * @returns
6772
6753
  */
6773
- initTracker(options?: IntlOpenSDKTrackerInitOptions): Promise<IntlOpenSDKTracker | undefined>;
6754
+ initTracker(options?: IntlOpenSDKTrackerInitOptions): Promise<CompatibleTrackerFull | undefined>;
6774
6755
  private safeCall;
6775
6756
  /**
6776
6757
  *
@@ -6780,7 +6761,7 @@ declare class OpenSDKTracker {
6780
6761
  /**
6781
6762
  * @description 设置属性
6782
6763
  */
6783
- set(data: Partial<IntlOpenSDKTrackerInitOptions>): void;
6764
+ set(data: Partial<ExcludeUndefined<IntlOpenSDKTrackerInitOptions>>): void;
6784
6765
  /**
6785
6766
  * 会以 10141 code 上报一条常规日志,日志头为 D-AE
6786
6767
  * @see https://yuque.antfin.com/marmot/handbook/beginning#cq9Zw
@@ -6790,38 +6771,38 @@ declare class OpenSDKTracker {
6790
6771
  * 请在marmot申请code后使用,必须关联code
6791
6772
  * @see https://yuque.antfin.com/marmot/handbook/beginning#W3dtb
6792
6773
  */
6793
- log(...args: Parameters<IntlOpenSDKTracker['log']>): void;
6774
+ log(...args: Parameters<CompatibleTrackerFull['log']>): void;
6794
6775
  /**
6795
6776
  * 用于埋点相关上报,点击
6796
6777
  * @see https://yuque.antfin.com/marmot/handbook/beginning#XQel9
6797
6778
  */
6798
- click(...args: Parameters<IntlOpenSDKTracker['click']>): void;
6779
+ click(...args: Parameters<CompatibleTrackerFull['click']>): void;
6799
6780
  /**
6800
6781
  * 用于埋点相关上报,曝光
6801
6782
  * @see https://yuque.antfin.com/marmot/handbook/beginning#LiVxE
6802
6783
  */
6803
- expo(...args: Parameters<IntlOpenSDKTracker['expo']>): void;
6784
+ expo(...args: Parameters<CompatibleTrackerFull['expo']>): void;
6804
6785
  /**
6805
6786
  * 用于日志管控
6806
6787
  * @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
6807
6788
  */
6808
- onSendData(...args: Parameters<IntlOpenSDKTracker['onSendData']>): void;
6789
+ onSendData(...args: Parameters<CompatibleTrackerFull['onSendData']>): void;
6809
6790
  /**
6810
6791
  * 用于日志管控
6811
6792
  * @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
6812
6793
  */
6813
- offSendData(...args: Parameters<IntlOpenSDKTracker['offSendData']>): void;
6794
+ offSendData(...args: Parameters<CompatibleTrackerFull['offSendData']>): void;
6814
6795
  /**
6815
6796
  * 用于埋点相关上报,上报的日志头为 D-VM
6816
6797
  * @see https://yuque.antfin.com/marmot/handbook/beginning#RSCKn
6817
6798
  */
6818
- pageMonitor(...args: Parameters<IntlOpenSDKTracker['pageMonitor']>): void;
6799
+ pageMonitor(...args: Parameters<CompatibleTrackerFull['pageMonitor']>): void;
6819
6800
  /**
6820
6801
  * 用于上报自定义性能指标,单次仅上报一个指标
6821
6802
  * @param {string} key — m1 - m20
6822
6803
  * @param {number} num — 耗时,数字,一定要 >= 0,否则无统计意义
6823
6804
  */
6824
- reportCustomizedPerformance(...args: Parameters<IntlOpenSDKTracker['reportCustomizedPerformance']>): void;
6805
+ reportCustomizedPerformance(...args: Parameters<CompatibleTrackerFull['reportCustomizedPerformance']>): void;
6825
6806
  }
6826
6807
 
6827
6808
  /**
@@ -6834,65 +6815,54 @@ declare interface OrderInfo {
6834
6815
  orderDescription?: string;
6835
6816
  }
6836
6817
 
6837
- declare interface OriginTrackerInitOptions {
6838
- isMarmot?: boolean;
6839
- spmConfig?: SpmConfig;
6840
- bizType: string;
6841
- appId: string;
6842
- /**
6843
- * 适用于从雨燕监控迁移到 marmot 的场景
6844
- * 该字段的值可使用雨燕监控的 appId 值
6845
- * 最终该值会放在 D-AE 日志类型的 appId 字段位置,并覆盖扩展参数 4 中的 idengine_groupId 值
6846
- * 正常情况下不需要用到,有疑问咨询 @之其 205637
6847
- **/
6848
- compatibleAppId?: string;
6849
- productId: string;
6850
- userId?: string;
6851
- deviceId?: string;
6852
- chInfo?: string;
6853
- batchCount?: number;
6854
- plugins?: PluginFunction[];
6855
- server?: string;
6856
- /**
6857
- * servers 传入空数组或不传的情况下,不会禁用所有日志的上报,这个字段不是用来做上报开关的
6858
- * 就像 server 不传或传空字符串的情况下,也不会禁用日志的上报,会使用默认的服务器地址
6859
- * servers 只在有至少一个有效值的情况下才有意义
6860
- */
6861
- servers?: string[];
6862
- mdata?: Record<string, number | string>;
6863
- env?: Env_2;
6864
- ready?: boolean;
6865
- isReport?: boolean;
6866
- version?: string;
6867
- funnelAuto?: boolean;
6868
- userPathAuto?: boolean;
6869
- autoExpo?: boolean;
6870
- autoClick?: boolean;
6871
- expoOnce?: boolean;
6872
- platform?: string;
6873
- sprintId?: string;
6874
- autoReportConfig?: {
6875
- isReport?: boolean;
6876
- programVersion?: string;
6877
- productId?: string;
6878
- appId?: string;
6879
- bizType?: string;
6880
- imdapServerIndex?: number;
6881
- server?: string;
6882
- servers?: string[];
6883
- platform?: string;
6884
- deviceId?: string;
6885
- };
6886
- whiteScreenConfig?: BlankMonitorConfig | boolean;
6887
- fmpIgnoreElements?: string[];
6888
- enableBehavior?: BehaviorConfig | boolean;
6889
- enableRequestHook?: RequestHookConfig | boolean;
6890
- enableJSAPIReport?: boolean;
6891
- }
6892
-
6893
- declare interface OSInfo {
6894
- os?: string;
6895
- osVer?: string;
6818
+ declare interface OtpChallengeActionForm {
6819
+ /**
6820
+ * @description action form type
6821
+ */
6822
+ actionFormType?: string;
6823
+ /**
6824
+ * @description type of challenge
6825
+ */
6826
+ challengeType?: string;
6827
+ /**
6828
+ * @description The actual render value
6829
+ */
6830
+ challengeRenderValue?: string;
6831
+ /**
6832
+ * @description Describe the challenge is required by AAC or external party
6833
+ */
6834
+ triggerSource?: string;
6835
+ /**
6836
+ * @description is support retry challenge
6837
+ * @default true
6838
+ */
6839
+ isChallengeRetrySupported?: boolean;
6840
+ /**
6841
+ * @description is fist otp auto triggered
6842
+ * @default false
6843
+ */
6844
+ isChallengeAutoTriggered?: boolean;
6845
+ /**
6846
+ * @description estimated challenge response duration
6847
+ * @default 0
6848
+ */
6849
+ estimatedDuration?: number;
6850
+ /**
6851
+ * @description url - like h5 sdk challenge need to call back url
6852
+ */
6853
+ challengeUrl?: string;
6854
+ /**
6855
+ * @description extend information
6856
+ */
6857
+ extendInfo?: string;
6858
+ /**
6859
+ * @description verify Id
6860
+ */
6861
+ verifyId?: string;
6862
+ /**
6863
+ * @description 重发次数
6864
+ */
6865
+ resendLeftTimes?: number;
6896
6866
  }
6897
6867
 
6898
6868
  declare type PartialSpeKey<T, V> = Partial<T extends infer K extends string ? Record<K, V> : Record<string, V>>;
@@ -6916,6 +6886,61 @@ declare interface PayByLinkInfo {
6916
6886
  linkVersion?: number;
6917
6887
  }
6918
6888
 
6889
+ /**
6890
+ * @description Payment element app config type
6891
+ */
6892
+ export declare interface PaymentAppConfig extends BaseAppearance<PaymentAppearance>, BaseElementAppConfig {
6893
+ /**
6894
+ * @description sessionData,无法通过updateConfig更新
6895
+ */
6896
+ sessionData?: string;
6897
+ /* Excluded from this release type: merchantDomain */
6898
+ doMain?: string;
6899
+ /* Excluded from this release type: renderData */
6900
+ /* Excluded from this release type: connectAccount */
6901
+ /* Excluded from this release type: sessionMetaData */
6902
+ /* Excluded from this release type: renderDataError */
6903
+ /* Excluded from this release type: sdkVersion */
6904
+ /* Excluded from this release type: _requestConfig */
6905
+ /* Excluded from this release type: logMetaData */
6906
+ /* Excluded from this release type: heightOfVisible */
6907
+ }
6908
+
6909
+ /**
6910
+ * @description Payment element appearance type
6911
+ */
6912
+ export declare type PaymentAppearance = PickAppearance<{
6913
+ displaySetting: 'showPaymentMethodListWhenSingleOption' | 'showCardBrandIcon' | 'showRadioWhenAccordionLayout' | 'showCardCVV';
6914
+ theme: AntomTheme;
6915
+ variables: AntomVariables;
6916
+ layout: AntomLayouts;
6917
+ }>;
6918
+
6919
+ /**
6920
+ * @description Payment element
6921
+ */
6922
+ export declare class PaymentElement extends BaseMainElement<PaymentElementConfig, PaymentElementEvents> {
6923
+ static elementType: string;
6924
+ constructor(name: string, config: PaymentElementConfig);
6925
+ /* Excluded from this release type: setup */
6926
+ /* Excluded from this release type: submit */
6927
+ protected focus(): void;
6928
+ protected blur(): void;
6929
+ protected clear(): void;
6930
+ }
6931
+
6932
+ /**
6933
+ * @description Payment element config type
6934
+ */
6935
+ declare interface PaymentElementConfig extends BaseElementConfig<PaymentAppConfig> {
6936
+ }
6937
+
6938
+ /**
6939
+ * @description Payment element events
6940
+ */
6941
+ export declare interface PaymentElementEvents extends AntomBridgeWithNativeEventMap<PaymentAppConfig, PaymentSubmitParams, PaymentSubmitResult> {
6942
+ }
6943
+
6919
6944
  declare interface PaymentElementView {
6920
6945
  /**
6921
6946
  * @description payment element key
@@ -7017,6 +7042,36 @@ declare interface PaymentEvaluationResult {
7017
7042
  paymentBalanceInfo?: DanaSofPayMethodView[];
7018
7043
  }
7019
7044
 
7045
+ /**
7046
+ * @description Payment guidance information (CKP scenario)
7047
+ *
7048
+ * <p>Displays payment guide buttons on the checkout page, including: - Deep link: For launching the
7049
+ * bank application (required) - Copy configuration: Divider text, button labels, etc. (extensible
7050
+ * via Map, dynamically addable)
7051
+ */
7052
+ declare interface PaymentGuideInfo {
7053
+ /**
7054
+ * @description The deep link (from iexpprod, used to launch the bank app) The frontend only displays the
7055
+ * payment guide button when this field is populated
7056
+ */
7057
+ appLinkUrlForWeb?: string;
7058
+ /**
7059
+ * @description Copy configuration (from the config center) Stored in a Map to support dynamic extension of
7060
+ * text fields
7061
+ *
7062
+ * <p>Example configuration:
7063
+ *
7064
+ * <pre>
7065
+ * {
7066
+ * "dividerText": "or pay using",
7067
+ * "directPayButtonText": "Pay directly with online banking",
7068
+ * "ctoPButtonText": "Continue to payment"
7069
+ * }
7070
+ * </pre>
7071
+ */
7072
+ copyWriting?: Record<string, any>;
7073
+ }
7074
+
7020
7075
  /**
7021
7076
  * @description 支付方式余额检查结果信息
7022
7077
  */
@@ -7079,6 +7134,10 @@ declare interface PaymentMethodView {
7079
7134
  * @description icon
7080
7135
  */
7081
7136
  icon?: string;
7137
+ /**
7138
+ * @description adaptive icon for PAYME payment method
7139
+ */
7140
+ adaptiveIcon?: string;
7082
7141
  /**
7083
7142
  * @description icon对应的名称
7084
7143
  */
@@ -7087,6 +7146,10 @@ declare interface PaymentMethodView {
7087
7146
  * @description 支付方式描述
7088
7147
  */
7089
7148
  description?: string;
7149
+ /**
7150
+ * @description 支付方式点击后的描述
7151
+ */
7152
+ descriptionAfterClick?: string;
7090
7153
  /**
7091
7154
  * @description category
7092
7155
  */
@@ -7221,6 +7284,10 @@ declare interface PaymentMethodView {
7221
7284
  * @description 账单地址收集模式
7222
7285
  */
7223
7286
  billingAddressCollectionMode?: string;
7287
+ /**
7288
+ * @description 分期银行信息列表
7289
+ */
7290
+ supportIppBankList?: FrontSupportIppBank[];
7224
7291
  }
7225
7292
 
7226
7293
  declare interface PaymentOption {
@@ -7288,6 +7355,10 @@ declare interface PaymentOption {
7288
7355
  * @description 支付选项Logo信息
7289
7356
  */
7290
7357
  logo?: Logo;
7358
+ /**
7359
+ * @description 支付描述多语言列表。如果入参有locale,且入参的locale有对应语言,则这里只返回locale对应的语言。
7360
+ */
7361
+ description?: Record<string, string>;
7291
7362
  /**
7292
7363
  * @description extendInfo extendInfo information
7293
7364
  */
@@ -7355,6 +7426,13 @@ declare interface PaymentQuoteInfo {
7355
7426
  * @description payment amount view
7356
7427
  */
7357
7428
  paymentAmountView?: PaymentView;
7429
+ /**
7430
+ * @description Display exchange rate from FX domain Quote, direction-adjusted and formatted to 2 decimal
7431
+ * places. - BID direction: value = 1/price, setScale(2, HALF_UP) - OFFER direction: value =
7432
+ * price, setScale(2, HALF_UP) Used for direct frontend access to exchange rate. Example: 3.16 for
7433
+ * MYR/SGD currency pair
7434
+ */
7435
+ quotePrice?: any;
7358
7436
  }
7359
7437
 
7360
7438
  /**
@@ -7464,6 +7542,45 @@ declare interface PaymentSessionConfig {
7464
7542
  productSceneVersion?: string;
7465
7543
  }
7466
7544
 
7545
+ /**
7546
+ * @description The submit params
7547
+ */
7548
+ export declare interface PaymentSubmitParams extends SubmitParams {
7549
+ /**
7550
+ * @description 是否由antom sdk自动处理唤端逻辑,默认为true,由sdk自动处理。
7551
+ * 如果antom sdk唤起客户端失败,建议设置为false,商家自行唤端
7552
+ */
7553
+ handleActions?: boolean;
7554
+ /**
7555
+ * @description 收件地址信息
7556
+ */
7557
+ shippingInfo?: ShippingInfo;
7558
+ /**
7559
+ * @description 集成用户自定义信息(如 cardHolderName)
7560
+ */
7561
+ params?: Record<string, unknown>;
7562
+ }
7563
+
7564
+ /**
7565
+ * @description Payment element submit result
7566
+ */
7567
+ export declare interface PaymentSubmitResult extends SubmitResult {
7568
+ paymentSession?: {
7569
+ /**
7570
+ * @description 回调页面的url链接,使用浏览器可直接打开,比如 http://xxx.app.com/xxx
7571
+ */
7572
+ returnUrl: string;
7573
+ /**
7574
+ * @description 回调页面唤起app的url链接,使用浏览器可直接打开,比如 http://xxx.app.com/xxx
7575
+ */
7576
+ returnAppUrl?: string;
7577
+ /**
7578
+ * @description 回调页面唤起app的scheme链接,比如 alipay://xxx
7579
+ */
7580
+ returnAppScheme?: string;
7581
+ };
7582
+ }
7583
+
7467
7584
  declare interface PaymentView {
7468
7585
  /**
7469
7586
  * @description 金额,以元为单位的金额
@@ -7521,56 +7638,6 @@ export declare interface PayPalConfig {
7521
7638
  onShippingOptionsChange?: (data: any, actions: any) => Promise<void>;
7522
7639
  }
7523
7640
 
7524
- declare interface PerformancePlugin extends BaseInfoPlugin {
7525
- getAnalyzePerformanceInfo?(): Record<string, any> | null;
7526
- getPagePerformanceInfo?(): {
7527
- onload: string | number;
7528
- domContentLoad: string | number;
7529
- redirect: string | number;
7530
- appCache: string | number;
7531
- dns: string | number;
7532
- tcp: string | number;
7533
- ssl: string | number;
7534
- reqt: string | number;
7535
- rest: string | number;
7536
- dpt: string | number;
7537
- ft: string | number;
7538
- domInteractive: string | number;
7539
- domReady: string | number;
7540
- domComplete: string | number;
7541
- random: string | number;
7542
- miniPerformance?: ReturnType<typeof getMiniPerformance>;
7543
- timeOrigin?: number;
7544
- };
7545
- getWebVitalsInfo?(): GetWebVitalsInfoResult;
7546
- getWhiteScreenInfo?(options?: Pick<GetWhiteScreenInfoOptions, 'selector' | 'ignoreNotInViewport'>): Promise<{
7547
- status: 'error' | 'ok';
7548
- }>;
7549
- getFMP?(options?: {
7550
- ignoreElements?: string[];
7551
- }): Promise<{
7552
- time: number;
7553
- selector: string;
7554
- } | undefined>;
7555
- getTTI?(): Promise<number | undefined>;
7556
- getFP?(): Promise<number | undefined>;
7557
- getT2Time?(): Promise<number | undefined>;
7558
- /**
7559
- * 将性能数据发送到容器,目前只需 H5 应用实现
7560
- */
7561
- sendPerformanceDataToContainer?(data: LogItem): Promise<void>;
7562
- getSnapshot?: () => {
7563
- fmp: string;
7564
- lcp: string;
7565
- };
7566
- /**
7567
- * 用于采集详细的性能数据,越晚调用,搜集的数据越多
7568
- */
7569
- getDetailPerformance?(): Promise<DMC | null>;
7570
- startCheckingPageWhiteScreen?(config: GetWhiteScreenInfoOptions | boolean | undefined): Promise<(() => void) | undefined>;
7571
- startCheckingDOMWhiteScreen?(selector: string, options: Omit<GetWhiteScreenInfoOptions, 'selector'>): (() => void) | undefined;
7572
- }
7573
-
7574
7641
  declare interface PeriodRule {
7575
7642
  /**
7576
7643
  * @description period type
@@ -7582,87 +7649,13 @@ declare interface PeriodRule {
7582
7649
  periodCount?: number;
7583
7650
  }
7584
7651
 
7652
+ /**
7653
+ * @description 工具类型,仅从 Appearance 中拾取与 Props 类型匹配的属性。
7654
+ * 返回受 Props 中存在的键约束的部分外观对象。
7655
+ * @template Props - 要从 Appearance 中拾取的自定义外观属性类型。
7656
+ */
7585
7657
  declare type PickAppearance<Props extends Partial<DefaultAppearanceProps>> = Partial<Pick<Appearance<Props>, keyof Props extends infer k extends keyof Partial<Appearance> ? k : keyof Partial<Appearance>>>;
7586
7658
 
7587
- declare interface PluginContext {
7588
- userPath: {
7589
- reStoreUserPath: (appId: string) => void;
7590
- parseUserPathExtra: (key: string) => {
7591
- idengine_user_path: string;
7592
- } | null;
7593
- getUserPathExtra: () => {
7594
- cachePath: string[];
7595
- extra: {
7596
- idengine_user_path: string;
7597
- };
7598
- };
7599
- };
7600
- waitInit: () => Promise<void>;
7601
- }
7602
-
7603
- declare type PluginFunction = (iTracert: ITracert, callback: () => void) => boolean;
7604
-
7605
- declare type PluginInitOptions = Pick<OriginTrackerInitOptions, 'spmConfig' | 'autoExpo' | 'autoClick' | 'bizType' | 'appId' | 'compatibleAppId' | 'productId' | 'batchCount' | 'mdata' | 'env' | 'plugins' | 'userId' | 'ready' | 'isReport' | 'version' | 'chInfo' | 'expoOnce' | 'platform' | 'sprintId' | 'autoReportConfig' | 'enableJSAPIReport'> & {
7606
- server?: string;
7607
- servers?: string[];
7608
- isMarmot?: boolean;
7609
- deviceId?: Promise<string>;
7610
- whiteScreenConfig?: (BlankMonitorConfig & {
7611
- callback?: (options: ReportData) => Promise<void>;
7612
- }) | boolean;
7613
- spmCheckCover?: string;
7614
- whiteListConfigSource?: WHITE_LIST_CONFIG_SOURCE;
7615
- remoteConfigValidDuration?: number;
7616
- };
7617
-
7618
- declare interface PluginOnErrorCallbackErrorInfo {
7619
- message: string;
7620
- extra: Record<string, any>;
7621
- type: ErrorType;
7622
- }
7623
-
7624
- declare interface PluginPageMonitorOptions {
7625
- spmInfo: {
7626
- spmAPos: string;
7627
- spmBPos: string;
7628
- currentPage: string;
7629
- };
7630
- logData?: Record<string, any>;
7631
- }
7632
-
7633
- declare interface PluginShape extends PerformancePlugin, LagPlugin {
7634
- getRequester(): GetRequesterResult;
7635
- getDataFilter?(): (data: string[]) => Promise<string[]>;
7636
- getExtraDataFilter?(): (data: Record<string, any>) => Promise<Record<string, any>>;
7637
- onSendData?(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
7638
- offSendData?(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
7639
- init?(options: PluginInitOptions): Promise<void>;
7640
- onError?(callback: (error: PluginOnErrorCallbackErrorInfo) => void): () => void;
7641
- onPageLoad?(callback: () => void): () => void;
7642
- set?(options: Record<string, any>): void;
7643
- /**
7644
- * @deprecated Compatible with old APIs. Use `Tracker#report` instead.
7645
- * @param info
7646
- * @param extra
7647
- */
7648
- log?(type: string, params?: Record<string, any>): void;
7649
- pageMonitor?(options: PluginPageMonitorOptions): void;
7650
- expo?(code: string, extra?: Record<string, number | string | boolean>): void;
7651
- click?(code: string, extra: Record<string, number | string | boolean>): void;
7652
- getSessionItem?(key: string): string | null;
7653
- removeSessionItem?(key: string): void;
7654
- setSessionItem?(key: string, value: string): void;
7655
- getSessionId?(): string | null;
7656
- getStorageItem?(key: string): Promise<string | null>;
7657
- removeStorageItem?(key: string): void;
7658
- setStorageItem?(key: string, value: string): void;
7659
- onHTTPError?(callback: (options: HTTPErrorCallbackOptions) => void): void;
7660
- triggerPreCaptureReport?(callback: (error: PluginOnErrorCallbackErrorInfo) => void): void;
7661
- PluginShape?: void;
7662
- initBehaviorListener?(addBehavior: AddBehavior, config: BehaviorConfig): void;
7663
- reportAPI?(config: RequestHookConfig, callback: (options: APICallbackOptions) => void): void;
7664
- }
7665
-
7666
7659
  /**
7667
7660
  * @description 政策信息,例如隐私链接,免责声明等
7668
7661
  */
@@ -9554,6 +9547,24 @@ TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ?
9554
9547
 
9555
9548
  declare type Pseudos = AdvancedPseudos | SimplePseudos;
9556
9549
 
9550
+ /**
9551
+ * @description QR code configuration for code form view
9552
+ */
9553
+ declare interface QrCodeConfig {
9554
+ /**
9555
+ * @description QR code render style, e.g. "rounded"
9556
+ */
9557
+ renderStyle?: string;
9558
+ /**
9559
+ * @description QR code center icon, can be URL or Base64 format
9560
+ */
9561
+ centerIcon?: string;
9562
+ /**
9563
+ * @description QR code corner icon, can be URL or Base64 format
9564
+ */
9565
+ cornerIcon?: string;
9566
+ }
9567
+
9557
9568
  declare interface Rate {
9558
9569
  /**
9559
9570
  * @description rate label value
@@ -9623,66 +9634,35 @@ declare class ReceivePort {
9623
9634
  }): Promise<Record<string, any> | undefined>;
9624
9635
  }
9625
9636
 
9637
+ /**
9638
+ * @description 从webapp重定向到新URL的配置项。
9639
+ * 支持浏览器重定向、app link唤端及schema唤端。
9640
+ */
9626
9641
  declare interface RedirectOption {
9642
+ /**
9643
+ * @description 浏览器重定向到兜底的url,通常在唤端失败时会走这个,或者你不需要唤端,只需要跳转到某个url
9644
+ */
9627
9645
  url: string;
9646
+ /**
9647
+ * @description 唤端到url地址,http或https的地址
9648
+ */
9649
+ appLinkUrl?: string;
9650
+ /**
9651
+ * @description 唤端到schema地址, schema://的地址
9652
+ */
9653
+ schemaUrl?: string;
9654
+ /**
9655
+ * @description 重定向模式,默认为redirect
9656
+ */
9628
9657
  mode?: 'redirect' | 'replace';
9629
9658
  /**
9630
9659
  * @description 是否重定向后销毁实例,默认为true
9631
9660
  */
9632
- destory?: boolean;
9661
+ destroy?: boolean;
9633
9662
  }
9634
9663
 
9635
- declare type ReportData = {
9636
- title?: string;
9637
- msg?: string | Error | Record<string, number | string> | Event;
9638
- logType: 'error' | 'info';
9639
- extra?: Record<string, number | boolean | string | undefined | Error | null>;
9640
- } | ({
9641
- logType: 'custom';
9642
- } & LogItem);
9643
-
9644
9664
  declare type RequestEnv = 'local' | 'dev' | 'sit' | 'pre' | 'prod' | 'sandbox' | 'light_sandbox';
9645
9665
 
9646
- declare class RequesterCacheWrapper {
9647
- private autoReportConfig;
9648
- private dataCache;
9649
- private lastSendTime;
9650
- private batchCount;
9651
- private sendFrequency;
9652
- constructor(autoReportConfig: {
9653
- immediate?: boolean;
9654
- deviceId?: Promise<string>;
9655
- isReport?: boolean;
9656
- programVersion?: string;
9657
- productId?: string;
9658
- appId?: string;
9659
- compatibleAppId?: string;
9660
- bizType?: string;
9661
- });
9662
- report(options: ReportData & {
9663
- request: GetRequesterResult;
9664
- extraDataFilter?: (data: Record<string, any>) => Promise<Record<string, any>>;
9665
- dataFilter?: (data: string[]) => Promise<string[]>;
9666
- } & BaseInfo & {
9667
- immediate?: boolean;
9668
- }): Promise<void>;
9669
- private send;
9670
- /**
9671
- * 分批发送请求
9672
- */
9673
- private httpRequest;
9674
- private sendBatch;
9675
- }
9676
-
9677
- declare type RequestHookConfig = {
9678
- /**
9679
- * @description 不上报的域名
9680
- */
9681
- excludes?: Array<string | RegExp>;
9682
- getFetchResponseInfo?: (headers: Headers, responseData: Record<string, any>, requestParam: Array<any>) => ResponseInfo;
9683
- getXHRResponseInfo?: (response: XHRResponse) => ResponseInfo;
9684
- };
9685
-
9686
9666
  declare interface RequestOptions {
9687
9667
  env?: RequestEnv;
9688
9668
  baseURL?: string;
@@ -9707,15 +9687,6 @@ declare interface RequestOptions {
9707
9687
  scope?: string;
9708
9688
  }
9709
9689
 
9710
- declare type ResponseInfo = {
9711
- responseUrl?: string;
9712
- traceId?: string;
9713
- isSuccess?: boolean;
9714
- errorCode?: string | number;
9715
- errorMsg?: string;
9716
- url?: string;
9717
- };
9718
-
9719
9690
  /**
9720
9691
  * @description 国际支付标准结果码,参考主站<code>ErrorCode</code>实现。
9721
9692
  *
@@ -9860,7 +9831,25 @@ declare interface SharePayInfo {
9860
9831
  securityText?: string;
9861
9832
  }
9862
9833
 
9863
- declare interface ShippingInfo {
9834
+ export declare interface ShippingInfo {
9835
+ shippingName: {
9836
+ firstName: string;
9837
+ lastName: string;
9838
+ middleName?: string;
9839
+ fullName?: string;
9840
+ };
9841
+ shippingPhoneNo: string;
9842
+ shippingAddress: {
9843
+ region: string;
9844
+ address1: string;
9845
+ address2: string;
9846
+ city?: string;
9847
+ state?: string;
9848
+ zipCode: string;
9849
+ };
9850
+ }
9851
+
9852
+ declare interface ShippingInfo_2 {
9864
9853
  /**
9865
9854
  * @description The unique ID to identify the shipping info
9866
9855
  */
@@ -10072,14 +10061,6 @@ declare type SimplePseudos =
10072
10061
  | ":volume-locked"
10073
10062
  | ":xr-overlay";
10074
10063
 
10075
- declare interface SpmConfig {
10076
- spmAPos: string;
10077
- bizType: string;
10078
- pages?: Record<string, Record<string, string>>;
10079
- mdata?: Record<string, number | string | boolean>;
10080
- immediate?: boolean;
10081
- }
10082
-
10083
10064
  declare interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
10084
10065
  /**
10085
10066
  * This feature is not Baseline because it does not work in some of the most widely-used browsers.
@@ -23778,16 +23759,20 @@ declare interface StandardShorthandPropertiesHyphen<TLength = (string & {}) | 0,
23778
23759
 
23779
23760
  declare type StandardShorthandPropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<StandardShorthandPropertiesHyphen<TLength, TTime>>;
23780
23761
 
23762
+ export declare type SubmitParams = {
23763
+ redirect?: 'always' | 'if_required';
23764
+ };
23765
+
23781
23766
  /**
23782
- * @description 成功时的data数据类型
23767
+ * @description 成功时的数据类型
23783
23768
  */
23784
23769
  export declare type SubmitResult = {
23770
+ /* Excluded from this release type: code */
23771
+ /* Excluded from this release type: message */
23785
23772
  /**
23786
23773
  * 查询到的状态
23787
23774
  */
23788
23775
  status: 'SUCCESS' | 'CANCELLED' | 'FAIL' | 'PROCESSING';
23789
- /* Excluded from this release type: code */
23790
- /* Excluded from this release type: message */
23791
23776
  /**
23792
23777
  * @description 对结果的详细结果码和结果信息,在status为SUCCESS时无该字段
23793
23778
  */
@@ -23800,6 +23785,10 @@ export declare type SubmitResult = {
23800
23785
  * 查询到的结果消息
23801
23786
  */
23802
23787
  message?: string;
23788
+ /**
23789
+ * @description 是否需要更换 session 重试
23790
+ */
23791
+ needChangeSessionForRetry?: boolean;
23803
23792
  };
23804
23793
  /**
23805
23794
  * 是否是用户手动取消3D
@@ -24258,255 +24247,42 @@ declare interface TerminalTypeAction {
24258
24247
  interactionType?: string;
24259
24248
  }
24260
24249
 
24261
- declare class Tracker {
24262
- protected requesterCacheWrapper?: RequesterCacheWrapper;
24263
- private initPromise;
24264
- private spmInfo;
24265
- private spmConfig?;
24266
- private spmAPos?;
24267
- private spmBPos?;
24268
- private funnelAuto?;
24269
- private userPathAuto?;
24270
- private cachePath;
24271
- private userPathLength;
24272
- private pathUserMeta;
24273
- private isMarmot;
24274
- protected appId?: string;
24275
- protected compatibleAppId?: string;
24276
- private plugin;
24277
- private sprintId?;
24278
- private userId;
24279
- protected deviceId?: Promise<string>;
24280
- protected programVersion?: string;
24281
- private language?;
24282
- protected bizType?: string;
24283
- protected productId?: string;
24284
- private whiteScreenConfig?;
24285
- private performance?;
24286
- protected isReport?: boolean;
24287
- protected server?: string;
24288
- protected servers?: string[];
24289
- protected platform?: string;
24290
- private env?;
24291
- private immediate?;
24292
- enableScreenshot: boolean | undefined | {
24293
- rate: number;
24294
- };
24295
- private enableResourceAnalysis?;
24296
- private _lag?;
24297
- private spmCheckCover?;
24298
- private enableBehavior?;
24299
- private behavior?;
24300
- private enableRequestHook?;
24301
- private enableJSAPIReport?;
24302
- private customizedPerformanceMark?;
24303
- constructor(Plugin: new (context: PluginContext) => PluginShape);
24304
- init(options: TrackerInitOptions): Promise<boolean>;
24305
- /**
24306
- * 业务侧可以拦截发送日志的请求,用于手动过滤
24307
- * 当前仅对浏览器环境生效
24308
- * rawData 是 intl-tracker 内部格式的数据,为对象
24309
- * data 是最终发送到服务端的数据,为字符串形式
24310
- */
24311
- onSendData(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
24312
- /**
24313
- * 业务侧可以取消拦截发送日志的请求
24314
- * 当前仅对浏览器环境生效
24315
- */
24316
- offSendData(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
24317
- private startReportSnapshot;
24318
- /**
24319
- * 用于上报自定义性能指标,单次仅上报一个指标
24320
- * @param key m1 - m20
24321
- * @param num 耗时,数字,一定要 >= 0,否则无统计意义
24322
- */
24323
- reportCustomizedPerformance(key: CustomizedPerformanceKey, num: number): void | undefined;
24324
- /**
24325
- * 上报自定义性能指标
24326
- * @param data 适合单次合并上报多个指标的场景
24327
- * 请注意,使用 reportCustomizedPerformance 上报时,每次上报会发送一次日志请求
24328
- * 不同阶段的数据量会有差异,这些差异可以作为页面流失漏斗的数据源
24329
- * 但合并上报时,同时上报的多个指标数量是相同的
24330
- */
24331
- reportCustomizedPerformanceData(data: Partial<Record<CustomizedPerformanceKey, number>>): void | undefined;
24332
- /**
24333
- * 用于显式上报小程序性能指标
24334
- * 由于小程序的性能指标仅在“使用 schema 打开页面”时有效,原来的自动上报未区分场景,会导致脏数据较多
24335
- * 改为数据自动采集、仅在必要时由业务方手动调用接口上报
24336
- */
24337
- reportMiniProgramPerformance(): Promise<void> | undefined;
24338
- getMiniProgramPerformanceData(): Promise<{
24339
- s1: number;
24340
- s2: number;
24341
- s3: number;
24342
- s4: number;
24343
- s5: number;
24344
- s6: number;
24345
- s7: number;
24346
- s8: number;
24347
- } | undefined> | undefined;
24348
- /**
24349
- * 用于显式上报网页性能指标,一般用不上
24350
- * 1. tracker.onPageLoad() 会自动上报
24351
- * 2. tracker.reportCustomizedPerformanceData() 会自动上报
24352
- * 3. tracker.reportCustomizedPerformance() 会自动上报
24353
- * 4. tracker.reportMiniProgramPerformance() 会自动上报
24354
- * 5. 以上方法仅会上报一次网页性能指标,多次调用不受影响
24355
- * 6. 仅当以上所有方法均未调用时,才需要手动调用此方法
24356
- */
24357
- reportPagePerformance(): Promise<void> | undefined;
24358
- private handleReportSnapShot;
24359
- get lag(): {
24360
- log: (msg: string) => Promise<void>;
24361
- fps: () => Promise<void>;
24362
- };
24363
- onPageLoad(options?: string | {
24364
- title?: string;
24365
- fmpIgnoreElements?: string[];
24366
- }): Promise<void>;
24367
- reportPerformance(title?: string): void;
24368
- reportDetailPerformance(): void;
24369
- onError(): Promise<(() => void) | undefined>;
24370
- fmp(time: number): void;
24371
- flushBehavior(): void;
24372
- /**
24373
- * 内部使用
24374
- *
24375
- * @param error
24376
- */
24377
- private reportError;
24378
- private triggerPreCaptureReport;
24379
- onHTTPError(): Promise<void>;
24380
- private reportAPI;
24381
- /**
24382
- * 内部使用,业务项目不要调用
24383
- *
24384
- * @param options
24385
- */
24386
- reportHTTPError(options: HTTPErrorCallbackOptions): void;
24387
- set(options: Record<string, any>): void;
24388
- log(item: LogItem): void;
24389
- /**
24390
- * @deprecated Compatible with old APIs. Use `Tracker#log` instead.
24391
- * @param info
24392
- * @param extra
24393
- */
24394
- logInfo(info: LogInfo, extra?: Record<string, number | boolean | string>): Promise<void>;
24395
- /**
24396
- * @deprecated Compatible with old APIs. Use `Tracker#log` instead.
24397
- * @param info
24398
- * @param extra
24399
- */
24400
- logError(info: LogInfo, extra?: Record<string, number | boolean | string>): Promise<void>;
24401
- reportFunnel(title: string, config?: {
24402
- [prop: string]: string | number;
24403
- name: string;
24404
- level: number;
24405
- label: string;
24406
- } | undefined): Promise<void>;
24407
- reportRPC(rpcInfo: {
24408
- name: string;
24409
- label: string;
24410
- code?: string | undefined;
24411
- msg?: string | Error | Record<string, string | number> | undefined;
24412
- success?: boolean | undefined;
24413
- result?: number | undefined;
24414
- traceId?: string | undefined;
24415
- httpStatus?: string | undefined;
24416
- time?: number | undefined;
24417
- }): void;
24418
- logJSBridgeError(info: LogInfo): void;
24419
- pageMonitor(page: string, extraParams?: Record<string, any>, autoPv?: boolean): void;
24420
- expo(code: string, extra?: Record<string, string | number | boolean> | undefined): void;
24421
- click(code: string, extra?: Record<string, string | number | boolean>): void;
24422
- pv(): void;
24423
- /**
24424
- * 指定点位白屏的监控 - 用于监控目标点位的白屏
24425
- * 页面白屏和目标点位白屏的通用监控逻辑
24426
- *
24427
- * @param selector 目标点位选择器
24428
- * @param options 配置项
24429
- * {
24430
- * 检测延时,单位 second,即启动白屏检测后多久开始执行白屏识别
24431
- * NOTE: 设置时间时要考虑业务平均加载时间,太短可能会误报
24432
- * delay
24433
- *
24434
- * 是否持续监测, 即初始化白屏检测结束之后是否继续监控业务运行中白屏, default: true
24435
- * persistent
24436
- * }
24437
- */
24438
- startCheckingDOMWhiteScreen(selector: string, options: Omit<BlankMonitorConfig, 'selector'>): void;
24439
- private getRequester;
24440
- protected getDefaultExtraInfo(): Promise<BaseInfo>;
24441
- private request;
24442
- private formatExtra;
24443
- private reportLog;
24444
- /**
24445
- * 解析成功率上报参数
24446
- * @param key p_ page c_ click expo r l -info或者-error结尾是前端日志
24447
- * @param funnelConfig 标准漏斗上报参数
24448
- * @returns 扩展参数数据
24449
- */
24450
- private parseUserPathExtra;
24451
- /**
24452
- * 获取成功率上报参数
24453
- * 用于去冲
24454
- */
24455
- private getUserPathExtra;
24456
- /**
24457
- * 恢复存储的用户路径
24458
- */
24459
- private reStoreUserPath;
24460
- private reStoreUserPathMeta;
24461
- private reStoreSessionId;
24462
- /**
24463
- * 重置session id
24464
- */
24465
- resetSessionId(): void;
24466
- /**
24467
- * 重置用户路径
24468
- */
24469
- resetUserPath(): void;
24470
- private normalizeServer;
24471
- private normalizeServers;
24472
- }
24473
-
24474
- declare interface TrackerInitOptions {
24475
- spmConfig?: SpmConfig;
24476
- marmotId: string;
24477
- compatibleAppId?: string;
24478
- userId?: string;
24479
- server?: IMDAP_SERVER | string;
24480
- servers?: (IMDAP_SERVER | string)[];
24481
- env?: Env_2;
24482
- sprintId?: string;
24483
- whiteScreen?: BlankMonitorConfig | boolean;
24484
- immediate?: boolean;
24485
- autoExpo?: boolean;
24486
- autoClick?: boolean;
24487
- expoOnce?: boolean;
24488
- enableScreenshot?: boolean | {
24489
- rate: number;
24490
- };
24491
- enableResourceAnalysis?: boolean;
24492
- spmCheckCover?: string;
24493
- enableBehavior?: BehaviorConfig | boolean;
24494
- enableRequestHook?: RequestHookConfig | boolean;
24495
- enableJSAPIReport?: boolean;
24496
- /**
24497
- * 白名单配置源,仅浏览器环境支持
24498
- * 不传值时,与旧版功能相同,所有日志都会发送
24499
- * 1. 值为 REMOTE 时,表示从远程服务器获取白名单配置
24500
- * 2. 值为 NONE 时,表示不使用白名单配置,所有日志都会发送
24501
- */
24502
- whiteListConfigSource?: WHITE_LIST_CONFIG_SOURCE;
24503
- /**
24504
- * 当且仅当 whiteListConfigSource 为 REMOTE 时有效
24505
- * 在有效期内,不重复加载 json 请求
24506
- */
24507
- remoteConfigValidDuration?: number;
24508
- productId?: string;
24509
- bizType?: string;
24250
+ /**
24251
+ * 主题色映射表 — 将 AntomTheme 映射到 loading 阶段的明暗模式和背景色。
24252
+ * 被 antom.ts(老架构入口)和 modernElementController(新架构入口)共用,
24253
+ * 确保两条路径的弹窗 loading 表现一致。
24254
+ */
24255
+ export declare const themeColorMap: Record<AntomTheme, {
24256
+ theme: 'dark' | 'light';
24257
+ backgroundColor: string;
24258
+ }>;
24259
+
24260
+ /** Configuration options for rendering a toast notification. */
24261
+ export declare interface ToastParams {
24262
+ /** Text displayed in the toast. */
24263
+ message: string;
24264
+ /** Placement of the toast container within the viewport. */
24265
+ position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center';
24266
+ /** Toast background color in any valid CSS color format. */
24267
+ backgroundColor?: string;
24268
+ /** Toast text color in any valid CSS color format. */
24269
+ color?: string;
24270
+ /** Toast padding in any valid CSS length format. */
24271
+ padding?: string;
24272
+ /** Toast border radius in any valid CSS length format. */
24273
+ borderRadius?: string;
24274
+ /** Toast font size in any valid CSS length format. */
24275
+ fontSize?: string;
24276
+ /** Stacking order of the toast container. */
24277
+ zIndex?: number;
24278
+ /** Toast width in any valid CSS length format. */
24279
+ width?: string;
24280
+ /** Time in milliseconds before the toast starts to disappear. */
24281
+ duration?: number;
24282
+ /** Preset status icon displayed above the message. */
24283
+ icon?: 'SUCCESS' | 'FAIL';
24284
+ /** Whether the status icon uses a spinning animation. */
24285
+ spin?: boolean;
24510
24286
  }
24511
24287
 
24512
24288
  /**
@@ -24587,7 +24363,8 @@ export declare type VaultingAppearance = PickAppearance<VaultingAppearanceProps>
24587
24363
  export declare type VaultingAppearanceProps = {
24588
24364
  displaySetting: 'showCardBrandIcon';
24589
24365
  theme: AntomTheme;
24590
- variables: 'background-secondary' | 'radius-module' | 'wrapper-padding' | 'content-primary' | 'border-primary' | 'action-hover' | 'border-disable' | 'content-tertiary' | 'background-primary' | 'background-disable' | 'radius-component' | 'state-failure' | 'action-normal' | 'content-secondary';
24366
+ variables: AntomVariables;
24367
+ fonts?: FontSource[];
24591
24368
  };
24592
24369
 
24593
24370
  /**
@@ -24610,7 +24387,7 @@ export declare class VaultingElement extends BaseMainElement<VaultingElementConf
24610
24387
  declare interface VaultingElementConfig extends BaseElementConfig<VaultingAppConfig> {
24611
24388
  }
24612
24389
 
24613
- export declare interface VaultingElementEvents extends AntomBridgeEventMap<VaultingAppConfig, VaultingSubmitParams> {
24390
+ export declare interface VaultingElementEvents extends AntomBridgeWithNativeEventMap<VaultingAppConfig, VaultingSubmitParams> {
24614
24391
  }
24615
24392
 
24616
24393
  /**
@@ -28250,16 +28027,9 @@ declare interface VendorShorthandPropertiesHyphen<TLength = (string & {}) | 0, T
28250
28027
 
28251
28028
  declare type VendorShorthandPropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<VendorShorthandPropertiesHyphen<TLength, TTime>>;
28252
28029
 
28253
- declare type WHITE_LIST_CONFIG_SOURCE = 'REMOTE' | 'NONE';
28254
-
28255
28030
  declare type WithAppURL<T> = T & {
28256
28031
  appUrl: string;
28257
28032
  isMainElement: boolean;
28258
28033
  };
28259
28034
 
28260
- declare type XHRResponse = {
28261
- headers: ReturnType<XMLHttpRequest['getAllResponseHeaders']>;
28262
- body: XMLHttpRequest['response'];
28263
- };
28264
-
28265
28035
  export { }