@alipay/ams-checkout 0.0.1783663570-dev.9 → 0.0.1784256876-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/ams-checkout.js +3 -4
  2. package/dist/ams-checkout.min.js +1 -2
  3. package/esm/config/index.d.ts +0 -7
  4. package/esm/config/index.js +2 -2
  5. package/esm/constant/element.d.ts +1 -2
  6. package/esm/constant/element.js +0 -1
  7. package/esm/constant/index.d.ts +21 -4
  8. package/esm/core/component/element/elementController/index.d.ts +3 -3
  9. package/esm/core/component/element/elementController/index.js +42 -66
  10. package/esm/core/component/element/elementProcessor/paymentProcessor.js +10 -13
  11. package/esm/core/component/element/index.d.ts +1 -4
  12. package/esm/core/component/element/index.js +4 -19
  13. package/esm/core/component/element/mock.js +1 -1
  14. package/esm/core/component/element/type.d.ts +18 -16
  15. package/esm/core/instance/index.d.ts +4 -12
  16. package/esm/core/instance/index.js +26 -152
  17. package/esm/foundation/service/event-center.js +1 -1
  18. package/esm/foundation/service/security/index.d.ts +4 -9
  19. package/esm/foundation/service/security/index.js +35 -158
  20. package/esm/foundation/service/security/security.d.ts +1 -22
  21. package/esm/foundation/service/security/security.js +37 -150
  22. package/esm/foundation/utils/preload_helper.d.ts +3 -6
  23. package/esm/foundation/utils/preload_helper.js +32 -122
  24. package/esm/main.js +4 -4
  25. package/esm/modern/index.d.ts +1 -5
  26. package/esm/modern/index.js +51 -1
  27. package/esm/modern/stageName.d.ts +3 -0
  28. package/esm/modern/stageName.js +1 -0
  29. package/esm/plugin/component/channel.d.ts +2 -2
  30. package/esm/plugin/component/channel.js +18 -18
  31. package/esm/plugin/component/index.js +29 -36
  32. package/esm/tsdoc-metadata.json +1 -1
  33. package/esm/types/index.d.ts +0 -1
  34. package/esm/util/beforeConfirm.d.ts +2 -4
  35. package/esm/util/beforeConfirm.js +14 -15
  36. package/esm/util/logger.js +2 -1
  37. package/esm/util/security.d.ts +1 -22
  38. package/esm/util/security.js +39 -150
  39. package/package.json +9 -15
  40. package/types.d.ts +1106 -842
  41. package/types.untrimmed.d.ts +1122 -991
  42. package/dist/ams-checkout.min.js.map +0 -1
  43. package/esm/core/component/element/modernElementController/adapter.d.ts +0 -19
  44. package/esm/core/component/element/modernElementController/adapter.js +0 -79
  45. package/esm/core/component/element/modernElementController/index.d.ts +0 -154
  46. package/esm/core/component/element/modernElementController/index.js +0 -1777
  47. package/esm/modern/global.d.ts +0 -3
  48. package/esm/modern/tools.js +0 -1
  49. package/esm/util/jshield-apdid/apdid-loader.js +0 -377
  50. package/esm/util/jshield-apdid/index.js +0 -21
  51. package/esm/util/security-registry.d.ts +0 -72
  52. package/esm/util/security-registry.js +0 -175
@@ -1,5 +1,3 @@
1
- import type { CompatibleTrackerFull } from '@antintl/intl-tracker/common';
2
-
3
1
  declare interface ActionForm {
4
2
  /**
5
3
  * @description action form type
@@ -7,6 +5,8 @@ declare interface ActionForm {
7
5
  actionFormType?: string;
8
6
  }
9
7
 
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,88 +143,7 @@ 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>, 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
- /**
154
- * @internal 展示半浮层
155
- */
156
- showPopup: {
157
- mode: string;
158
- showAnimation: string;
159
- };
160
- /**
161
- * @internal 隐藏loading
162
- */
163
- dismissLoading: Record<string, never>;
164
- /**
165
- * @internal 通知APP 收银台已经ready
166
- */
167
- webAppReady: {
168
- source: string;
169
- };
170
- /**
171
- * @internal 通知app 应用已启动
172
- */
173
- onLaunch: {
174
- success: boolean;
175
- source: string;
176
- target: string;
177
- };
178
- /**
179
- * @internal 收到客户端返回action query的数据和商户的配置
180
- */
181
- renderComponent: {
182
- sessionResult?: Record<string, unknown>;
183
- };
184
- /**
185
- * @internal 心跳事件
186
- */
187
- appHeartBeat: {
188
- success: boolean;
189
- };
190
- /**
191
- * @internal 客户端 展示toast弹窗
192
- */
193
- showToast: {
194
- icon: string;
195
- message: string;
196
- source: string;
197
- };
198
- /**
199
- * @internal 客户端eventCallback 事件
200
- */
201
- onEventCallback: {
202
- code: string;
203
- };
204
- /**
205
- * @internal 发送回调码事件
206
- */
207
- onSubmitPayCallback: CallbackReturnData;
208
- /**
209
- * @internal 重置收银台
210
- */
211
- reset: Record<string, never>;
212
- /**
213
- * @internal 销毁收银台
214
- */
215
- destroy: Record<string, never>;
216
- /**
217
- * @internal 关闭收银台
218
- */
219
- onClose: Record<string, never>;
220
- /**
221
- * @internal 重定向
222
- */
223
- onRedirect: {
224
- normalUrl: string;
225
- isDestroy: boolean;
226
- needReset: boolean;
227
- };
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> {
228
147
  }
229
148
 
230
149
  /**
@@ -259,8 +178,6 @@ declare interface AntomErrorResponse {
259
178
  extendInfo?: Record<string, any>;
260
179
  }
261
180
 
262
- export declare type AntomLayouts = 'tabs' | 'accordion';
263
-
264
181
  /**
265
182
  * 给中间页使用的桥接事件类型
266
183
  * @internal 内部使用,不暴露到外部
@@ -268,13 +185,15 @@ export declare type AntomLayouts = 'tabs' | 'accordion';
268
185
  export declare interface AntomMiddlePageEventMap extends AntomBridgeEventMap {
269
186
  /**
270
187
  * @description 3DS流程完成
271
- * @deprecated 使用auto_close_modal
272
188
  */
273
189
  three_ds_end: void;
274
- /**
275
- * @description 正常结束自动关闭事件
276
- */
277
- auto_close_modal: void;
190
+ }
191
+
192
+ /**
193
+ * 给modal和webapp页面messagePort使用的桥接事件类型
194
+ * @internal 内部使用,不暴露到外部
195
+ */
196
+ export declare interface AntomModalEventMap extends AntomBridgeEventMap {
278
197
  }
279
198
 
280
199
  /**
@@ -295,11 +214,6 @@ export declare class AntomSDK extends BaseElementsFactory {
295
214
  * @description 更新配置
296
215
  */
297
216
  updateConfig(config: Partial<BaseFactoryConfig>): void;
298
- /**
299
- * @internal
300
- * @param payload
301
- */
302
- protected redirect(payload: BaseBridgeEventMap['OPENSDK@REDIRECT']): void | Promise<void>;
303
217
  /**
304
218
  * @internal
305
219
  * 这个方法为内部调用方法
@@ -310,11 +224,9 @@ export declare class AntomSDK extends BaseElementsFactory {
310
224
  getContentWindow: () => Window;
311
225
  }>;
312
226
  elements(): Elements;
313
- createElement(elementType: 'payment', options?: PaymentAppConfig): PaymentElement;
314
227
  createElement(elementType: 'vaulting', options?: VaultingAppConfig): VaultingElement;
315
228
  createElement(elementType: 'CVV', options?: CVVAppConfig): CVVElement;
316
229
  createElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
317
- getElement(elementType: 'payment', options?: PaymentAppConfig): PaymentElement;
318
230
  getElement(elementType: 'vaulting', options?: VaultingAppConfig): VaultingElement;
319
231
  getElement(elementType: 'CVV', options?: CVVAppConfig): CVVElement;
320
232
  getElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
@@ -371,22 +283,6 @@ export declare const AntomSDKErrorCodes: {
371
283
  * @description channelClientId 查询失败(请求异常,如网络错误、服务器错误等)
372
284
  */
373
285
  readonly CHANNEL_CLIENT_ID_QUERY_ERROR: "CHANNEL_CLIENT_ID_QUERY_ERROR";
374
- /**
375
- * @description checkout 页面未加载成功,不允许 updateConfig
376
- */
377
- readonly CHECKOUT_NOT_READY: "CHECKOUT_NOT_READY";
378
- /**
379
- * @description 支付进行中,不允许更新金额
380
- */
381
- readonly PAYMENT_IN_PROGRESS: "PAYMENT_IN_PROGRESS";
382
- /**
383
- * @description 金额不能为空
384
- */
385
- readonly AMOUNT_VALUE_EMPTY: "AMOUNT_VALUE_EMPTY";
386
- /**
387
- * @description 金额格式非法(仅允许整数和小数)
388
- */
389
- readonly AMOUNT_VALUE_INVALID: "AMOUNT_VALUE_INVALID";
390
286
  readonly GENERATE_ELEMENT_KEY_FAILED: "GENERATE_ELEMENT_KEY_FAILED";
391
287
  readonly ELEMENT_INIT_FAILED: "ELEMENT_INIT_FAILED";
392
288
  readonly MOUNT_TIMEOUT: "MOUNT_TIMEOUT";
@@ -403,11 +299,6 @@ export declare const AntomSDKErrorCodes: {
403
299
  readonly GROUPS_NOT_FOUND_MAIN_ELEMENT: "GROUPS_NOT_FOUND_MAIN_ELEMENT";
404
300
  readonly NOT_SUPPORT_ELEMENT: "NOT_SUPPORT_ELEMENT";
405
301
  readonly NOT_SUPPORT_SUBMIT: "NOT_SUPPORT_SUBMIT";
406
- readonly UPDATE_CONFIG_TIMEOUT: "UPDATE_CONFIG_TIMEOUT";
407
- readonly UPDATE_CONFIG_NOT_READY: "UPDATE_CONFIG_NOT_READY";
408
- /**
409
- * @description 是否需要更换 session 重试
410
- */
411
302
  readonly INVALID_MODAL_URL: "INVALID_MODAL_URL";
412
303
  readonly LOAD_DEBUGGER_FAILED: "LOAD_DEBUGGER_FAILED";
413
304
  readonly API_MISS_PARAMS: "API_MISS_PARAMS";
@@ -425,23 +316,29 @@ export declare type AntomSDKErrorCodes = (typeof AntomSDKErrorCodes)[keyof typeo
425
316
 
426
317
  export declare type AntomTheme = 'default' | 'agateGreen' | 'night' | 'nostalgicGray' | 'gamingPurple' | 'cherryBlossomPink' | 'light';
427
318
 
428
- 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';
319
+ declare interface APICallbackOptions {
320
+ requestType: 'fetch' | 'xhr';
321
+ time: number;
322
+ url: string;
323
+ isSuccess?: boolean;
324
+ error?: unknown;
325
+ status?: number;
326
+ type?: string;
327
+ method?: string;
328
+ traceId?: string;
329
+ errorCode?: string | number;
330
+ errorMsg?: string;
331
+ }
429
332
 
430
- /**
431
- * @description SDK UI组件的外观配置。
432
- * 控制主题、CSS变量、布局规则及显示设置。
433
- * @template Props - 自定义外观属性类型,默认为 DefaultAppearanceProps。
434
- */
435
333
  declare interface Appearance<Props extends Partial<DefaultAppearanceProps> = DefaultAppearanceProps> {
436
334
  theme?: Props['theme'];
437
335
  variables?: PartialSpeKey<Props['variables'], string>;
438
336
  rules?: PartialSpeKey<Props['rules'], CSS_2.Properties<string, number>>;
439
337
  displaySetting?: PartialSpeKey<Props['displaySetting'], boolean>;
440
338
  layout?: Props['layout'];
441
- fonts?: FontSource[];
442
339
  }
443
340
 
444
- export declare type AppearanceSetting = {
341
+ declare type AppearanceSetting = {
445
342
  displaySetting: Record<'showCardBrandIcon', boolean>;
446
343
  theme: 'light' | 'dark';
447
344
  layout: 'accordion' | 'tabs';
@@ -854,16 +751,6 @@ declare interface BaseBridgeEventMap<AppConfig extends Record<string, any> = Rec
854
751
  merged: AppConfig;
855
752
  updated: Partial<AppConfig>;
856
753
  };
857
- /**
858
- * 更新配置时的回复事件,包含可能发生的错误信息。
859
- * 如果 error 为 undefined,则表示没有错误发生。
860
- */
861
- "OPENSDK@UPDATE_CONFIG_REPLY": {
862
- /**
863
- * 更新配置时发生的错误,如果error为undefined,则表示没有错误发生
864
- */
865
- error?: ErrorPayload<string>;
866
- } | undefined;
867
754
  /**
868
755
  * @internal 内部事件 不暴露给商户
869
756
  */
@@ -902,10 +789,6 @@ declare interface BaseBridgeEventMap<AppConfig extends Record<string, any> = Rec
902
789
  * @internal 内部事件 不暴露给商户
903
790
  */
904
791
  "OPENSDK@TRANSFER_MODAL_APPEARANCE": Appearance;
905
- /**
906
- * @internal 内部事件 不暴露给商户
907
- */
908
- "OPENSDK@TRANSFER_MODAL_INITIALDATA": Record<string, any>;
909
792
  /**
910
793
  * @internal 内部事件 不暴露给商户
911
794
  */
@@ -933,12 +816,6 @@ declare interface BaseBridgeEventMap<AppConfig extends Record<string, any> = Rec
933
816
  * @internal 内部高度变化,同步到sdk更新iframe
934
817
  */
935
818
  "OPENSDK@HEIGHT_UPDATE": number;
936
- /**
937
- * @internal 内部销毁元素,同步到sdk销毁元素
938
- */
939
- "OPENSDK@DESTROY_ELEMENT": {
940
- elementKey: string;
941
- };
942
819
  }
943
820
 
944
821
  declare interface BaseConfig {
@@ -963,12 +840,6 @@ declare interface BaseConfig {
963
840
  * @internal 不透出到用户
964
841
  */
965
842
  version: string;
966
- /**
967
- * @description iframe 的 color-scheme CSS 属性,用于阻止商户页面的 color-scheme 传播到 iframe
968
- * 默认值 'light dark',确保 iframe 透明背景在商户页面设置 color-scheme: dark 时正常工作
969
- * @internal 内部使用,不暴露给商户
970
- */
971
- colorScheme?: string;
972
843
  }
973
844
 
974
845
  /**
@@ -1011,14 +882,12 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
1011
882
  * @internal 内部使用
1012
883
  */
1013
884
  iframe: HTMLIFrameElement | null;
1014
- status: ElementStatus;
885
+ status: 'initialized' | 'mounting' | 'mounted' | 'ready' | 'destroyed' | 'unmounted';
1015
886
  /**
1016
887
  * @description 等待发送的时间
1017
888
  * @internal 外部不要访问
1018
889
  */
1019
890
  private cachedSend;
1020
- /** Reuses the pending reply for concurrent submit calls. */
1021
- private submitPromise?;
1022
891
  constructor(name: string, config: WithAppURL<Config>);
1023
892
  /**
1024
893
  * @internal 外部不能直接调用
@@ -1029,16 +898,10 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
1029
898
  * @internal 外部不能直接调用
1030
899
  */
1031
900
  setup(): Promise<Partial<BaseElementAppConfig> | undefined>;
1032
- /** Races merchant setup against destruction to stop the mount flow immediately. */
1033
- private _setup;
1034
- /**
1035
- * @internal Checks whether this element is an instance of the given element class.
1036
- */
1037
- is<T extends iBaseElementClass>(eleCls: T): this is InstanceType<T>;
1038
901
  /**
1039
- * @param {HTMLElement} container
902
+ * @param {string | HTMLElement} containerId 如果给字符串id不要带#号
1040
903
  */
1041
- mount(container: HTMLElement): Promise<void>;
904
+ mount(containerId: HTMLElement): Promise<void>;
1042
905
  /**
1043
906
  * @description 内部使用,挂载iframe
1044
907
  * @internal 外部不能直接调用
@@ -1048,7 +911,7 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
1048
911
  * 更新webapp配置
1049
912
  * @param {Partial<BaseElementAppConfig>} newConfig
1050
913
  */
1051
- updateConfig(newConfig: Partial<Config['appConfig']>): Promise<EventMap["OPENSDK@UPDATE_CONFIG_REPLY"]>;
914
+ updateConfig(newConfig: Partial<Config['appConfig']>): void;
1052
915
  /**
1053
916
  * 卸载元素
1054
917
  */
@@ -1108,32 +971,24 @@ declare abstract class BaseElement<Config extends BaseElementConfig = BaseElemen
1108
971
  * @param fn 构建回调
1109
972
  * @internal
1110
973
  */
1111
- _addHook(hookName: 'ondestroy', fn: (preStatus: ElementStatus) => void): () => void;
974
+ _addHook(hookName: 'ondestroy', fn: () => void): () => void;
1112
975
  }
1113
976
 
1114
977
  declare interface BaseElementAppConfig {
1115
- /**
1116
- * @internal 不透出给商户,统一从loadAntom获取
1117
- */
1118
978
  locale?: string;
1119
979
  /**
1120
- * @internal 不透出给商户,统一从loadAntom获取
980
+ * @internal 不透出给商户
1121
981
  */
1122
982
  env?: 'sandbox' | 'prod';
1123
983
  /**
1124
- * @description 商户的唯一标识,用于监控
984
+ * @description 商户的唯一标识
1125
985
  * @internal 不透出到用户
1126
986
  */
1127
987
  merchantId?: string;
1128
988
  [key: string]: any;
1129
989
  }
1130
990
 
1131
- declare interface BaseElementConfig<T extends BaseElementAppConfig = BaseElementAppConfig> extends BaseConfig {
1132
- /**
1133
- * @description Session id forwarded to the iframe as the track_id query parameter.
1134
- * @internal Internal element config only.
1135
- */
1136
- trackId?: string;
991
+ declare interface BaseElementConfig<T extends BaseElementAppConfig = Record<string, any>> extends BaseConfig {
1137
992
  appConfig: T;
1138
993
  elementMode: ElementMode;
1139
994
  }
@@ -1229,7 +1084,6 @@ declare abstract class BaseFactory {
1229
1084
  */
1230
1085
  constructor(config: BaseFactoryConfig);
1231
1086
  protected openModal(payload: BaseBridgeEventMap['OPENSDK@OPEN_MODAL']): Promise<OpenModalHandle>;
1232
- protected redirect(payload: BaseBridgeEventMap['OPENSDK@REDIRECT']): void | Promise<void>;
1233
1087
  /**
1234
1088
  * @description 子类必须实现此方法,返回工厂可用的元素类列表
1235
1089
  * @internal
@@ -1240,7 +1094,7 @@ declare abstract class BaseFactory {
1240
1094
  */
1241
1095
  init(): Promise<this>;
1242
1096
  /**
1243
- * @description 默认情况下,生成元素的key为elementType,如有特殊需求,可重写此方法,key请以${elementType}开头,如elementType是payment则key可以是paymentXXX或者payment
1097
+ * @description 默认情况下,生成元素的key为elementType,如有特殊需求,可重写此方法
1244
1098
  * @internal
1245
1099
  */
1246
1100
  protected generateElementKey(elementType: string, _options?: Partial<BaseElementAppConfig>): string;
@@ -1316,6 +1170,26 @@ declare interface BaseFactoryConfig extends BaseConfig {
1316
1170
  trackerCode?: string;
1317
1171
  }
1318
1172
 
1173
+ declare type BaseInfo = BrowserInfo & DeviceInfo & NetworkInfo & LocationInfo & EnvInfo & OSInfo & {
1174
+ sdk?: string;
1175
+ marmotId?: string;
1176
+ compatibleAppId?: string;
1177
+ deviceId?: string;
1178
+ userId?: string;
1179
+ programVer?: string;
1180
+ language?: string;
1181
+ timezone?: string;
1182
+ bizType?: string;
1183
+ productId?: string;
1184
+ clientId?: string;
1185
+ visibleState?: 'visible' | 'hidden' | 'app-visible' | 'page-visible' | 'app-hidden' | 'page-hidden';
1186
+ };
1187
+
1188
+ declare interface BaseInfoPlugin {
1189
+ getAppName?(): Promise<string | undefined>;
1190
+ getDefaultExtraInfo?(): Promise<BaseInfo>;
1191
+ }
1192
+
1319
1193
  /**
1320
1194
  * @description 主元素,可以独立提交
1321
1195
  */
@@ -1335,10 +1209,6 @@ declare abstract class BaseMainElement<Config extends BaseElementConfig = BaseEl
1335
1209
  _submit(data?: EventMap['OPENSDK@SUBMIT'] | undefined): Promise<EventMap['OPENSDK@SUBMIT_REPLY']>;
1336
1210
  }
1337
1211
 
1338
- /**
1339
- * @description 打开模态框的配置项。
1340
- * 包含显示选项、关闭行为、外观设置及初始化数据。
1341
- */
1342
1212
  declare interface BaseOpenModalConfig {
1343
1213
  /**
1344
1214
  * 无需手动传递,app的唯一scope
@@ -1362,23 +1232,74 @@ declare interface BaseOpenModalConfig {
1362
1232
  onClose?: () => void;
1363
1233
  url: string;
1364
1234
  /**
1365
- * @description 关闭时,是否需要告知webapp页面来进行关闭 链路为 modalApp 告知-> webapp 关闭-> sdk,默认为false,即直接在modal中进行关闭 modalApp 关闭-> sdk,
1235
+ * 关闭时,是否需要app页面二次确认,默认为false,即直接关闭
1366
1236
  */
1367
1237
  closeConfirm?: boolean;
1368
- /**
1369
- * @description 需要同步的外观配置
1370
- */
1371
1238
  appearance?: Appearance;
1372
- /**
1373
- * @description 需要传递的初始化数据
1374
- */
1375
- initialData?: Record<string, any>;
1376
- /**
1377
- * @description 无需手动传递, 模态框的唯一标识
1378
- */
1379
- modalId?: string;
1380
1239
  }
1381
1240
 
1241
+ declare type BehaviorConfig = {
1242
+ enableConsole?: boolean;
1243
+ };
1244
+
1245
+ declare interface BehaviorData {
1246
+ type: string;
1247
+ data: {
1248
+ msg?: string | null;
1249
+ from?: string;
1250
+ to?: string;
1251
+ };
1252
+ timestamp: number;
1253
+ times?: number;
1254
+ }
1255
+
1256
+ declare type BlankMonitorConfig = {
1257
+ selector?: string | string[];
1258
+ delay?: number | (() => number);
1259
+ persistent?: boolean;
1260
+ };
1261
+
1262
+ declare interface BrowserInfo {
1263
+ title?: string;
1264
+ fullUrl?: string;
1265
+ url?: string;
1266
+ referrer?: string;
1267
+ domCnt?: number;
1268
+ delay?: number;
1269
+ scrollTop?: number;
1270
+ lastAction?: string;
1271
+ sessionId?: string;
1272
+ containerPageSessionId?: string;
1273
+ containerSessionId?: string;
1274
+ ua?: string;
1275
+ browser?: string;
1276
+ cCoreVer?: string;
1277
+ assetsVer?: string;
1278
+ }
1279
+
1280
+ declare type C = {
1281
+ c1?: string;
1282
+ c2?: string;
1283
+ c3?: string;
1284
+ c4?: string;
1285
+ c5?: string;
1286
+ c6?: string;
1287
+ c7?: string;
1288
+ c8?: string;
1289
+ c9?: string;
1290
+ c10?: string;
1291
+ c11?: string;
1292
+ c12?: string;
1293
+ c13?: string;
1294
+ c14?: string;
1295
+ c15?: string;
1296
+ c16?: string;
1297
+ c17?: string;
1298
+ c18?: string;
1299
+ c19?: string;
1300
+ c20?: string;
1301
+ };
1302
+
1382
1303
  /**
1383
1304
  * @description C2P标识
1384
1305
  */
@@ -1412,42 +1333,6 @@ declare interface C2PProps {
1412
1333
  merchantTransactionId?: string;
1413
1334
  }
1414
1335
 
1415
- /**
1416
- * @description native回调错误信息格式
1417
- * @internal
1418
- */
1419
- export declare interface CallbackErrorInfo {
1420
- code: string;
1421
- message?: string;
1422
- needChangeSessionForRetry?: boolean;
1423
- traceId?: string;
1424
- context?: string;
1425
- }
1426
-
1427
- /**
1428
- * @description native回调返回数据
1429
- * @internal
1430
- */
1431
- export declare interface CallbackReturnData {
1432
- status?: string;
1433
- userCanceled3D?: boolean;
1434
- isExposed?: boolean;
1435
- error?: CallbackErrorInfo;
1436
- session?: {
1437
- nextAction?: CallbackSessionNextAction;
1438
- };
1439
- }
1440
-
1441
- /**
1442
- * @description native回调会话下一步操作,包含了回调的url
1443
- * @internal
1444
- */
1445
- export declare interface CallbackSessionNextAction {
1446
- normalUrl?: string;
1447
- schemeUrl?: string;
1448
- applinkUrl?: string;
1449
- }
1450
-
1451
1336
  declare interface CardIssuerAuthentication {
1452
1337
  /**
1453
1338
  * @description 卡售卖单元
@@ -1865,7 +1750,7 @@ declare interface CashierSdkActionQueryResult {
1865
1750
  /**
1866
1751
  * @description 物流信息, 包含物流地址和物流费
1867
1752
  */
1868
- shippingInfo?: ShippingInfo_2;
1753
+ shippingInfo?: ShippingInfo;
1869
1754
  /**
1870
1755
  * @description 用户已绑资产信息
1871
1756
  */
@@ -1898,6 +1783,28 @@ declare interface ChargeInfo {
1898
1783
  chargeActualAmountView?: PaymentView;
1899
1784
  }
1900
1785
 
1786
+ /** click 事件 resolve 参数 */
1787
+ export declare interface ClickResolveOptions {
1788
+ amount?: {
1789
+ currency: string;
1790
+ value: string;
1791
+ };
1792
+ shippingAddressRequired?: boolean;
1793
+ allowedShippingCountries?: string[];
1794
+ shippingRates?: Array<{
1795
+ id: string;
1796
+ displayName: string;
1797
+ amount: string;
1798
+ }>;
1799
+ lineItems?: Array<{
1800
+ name: string;
1801
+ amount: string;
1802
+ }>;
1803
+ business?: {
1804
+ name: string;
1805
+ };
1806
+ }
1807
+
1901
1808
  declare interface CodeFormView {
1902
1809
  /**
1903
1810
  * @description title
@@ -1923,11 +1830,6 @@ declare interface CodeFormView {
1923
1830
  * @description label
1924
1831
  */
1925
1832
  label?: string;
1926
- /**
1927
- * @description Payment guidance information (CKP scenario) The frontend only displays the payment guide button
1928
- * when appLinkUrlForWeb is populated
1929
- */
1930
- paymentGuideInfo?: PaymentGuideInfo;
1931
1833
  /**
1932
1834
  * @description 提醒事项
1933
1835
  */
@@ -1944,10 +1846,6 @@ declare interface CodeFormView {
1944
1846
  * @description 码过期时间
1945
1847
  */
1946
1848
  codeExpireTime?: string;
1947
- /**
1948
- * @description QR code configuration including renderStyle, centerIcon and cornerIcon
1949
- */
1950
- qrcodeConfig?: QrCodeConfig;
1951
1849
  }
1952
1850
 
1953
1851
  /**
@@ -2415,7 +2313,68 @@ declare interface ComIpayIexpprodServiceFacadeCommonPromotionInfo {
2415
2313
  extendInfo?: Record<string, string>;
2416
2314
  }
2417
2315
 
2418
- declare type CompatibleTrackerFullOptions = ConstructorParameters<typeof CompatibleTrackerFull>[0];
2316
+ declare class CompatibleTracker extends Tracker {
2317
+ private mdata;
2318
+ initi(options: OriginTrackerInitOptions & {
2319
+ performance?: boolean;
2320
+ error?: boolean;
2321
+ }): Promise<boolean>;
2322
+ set(options: Record<string, any>): void;
2323
+ protected getDefaultExtraInfo(): Promise<{
2324
+ title?: string | undefined;
2325
+ fullUrl?: string | undefined;
2326
+ url?: string | undefined;
2327
+ referrer?: string | undefined;
2328
+ domCnt?: number | undefined;
2329
+ delay?: number | undefined;
2330
+ scrollTop?: number | undefined;
2331
+ lastAction?: string | undefined;
2332
+ sessionId?: string | undefined;
2333
+ containerPageSessionId?: string | undefined;
2334
+ containerSessionId?: string | undefined;
2335
+ ua?: string | undefined;
2336
+ browser?: string | undefined;
2337
+ cCoreVer?: string | undefined;
2338
+ assetsVer?: string | undefined;
2339
+ device?: string | undefined;
2340
+ deviceType?: string | undefined;
2341
+ deviceBrand?: string | undefined;
2342
+ deviceModel?: string | undefined;
2343
+ screenWidth?: number | undefined;
2344
+ screenHeight?: number | undefined;
2345
+ contentHeight?: number | undefined;
2346
+ pixelRatio?: number | undefined;
2347
+ cClient?: string | undefined;
2348
+ networkType?: string | undefined;
2349
+ isp?: string | undefined;
2350
+ ip?: string | undefined;
2351
+ countryName?: string | undefined;
2352
+ cityName?: string | undefined;
2353
+ provinceName?: string | undefined;
2354
+ area?: string | undefined;
2355
+ env?: Env_2 | undefined;
2356
+ sprintId?: string | undefined;
2357
+ container?: string | undefined;
2358
+ cOfflineVer?: string | undefined;
2359
+ serverIp?: string | undefined;
2360
+ serverEnv?: string | undefined;
2361
+ canaryFlag?: string | undefined;
2362
+ os?: string | undefined;
2363
+ osVer?: string | undefined;
2364
+ sdk?: string | undefined;
2365
+ marmotId?: string | undefined;
2366
+ compatibleAppId?: string | undefined;
2367
+ deviceId?: string | undefined;
2368
+ userId?: string | undefined;
2369
+ programVer?: string | undefined;
2370
+ language?: string | undefined;
2371
+ timezone?: string | undefined;
2372
+ bizType?: string | undefined;
2373
+ productId?: string | undefined;
2374
+ clientId?: string | undefined;
2375
+ visibleState?: "hidden" | "visible" | "app-visible" | "page-visible" | "app-hidden" | "page-hidden" | undefined;
2376
+ }>;
2377
+ }
2419
2378
 
2420
2379
  /**
2421
2380
  * @description googlePay createPaymentSession 入参
@@ -2440,17 +2399,13 @@ export declare interface ConfirmCardSetupOptions {
2440
2399
  redirect?: 'always' | 'if_required';
2441
2400
  }
2442
2401
 
2443
- export declare interface ConfirmPaymentOptions extends Omit<ConfirmCardSetupOptions, 'elements'>, PaymentSubmitParams {
2402
+ export declare interface ConfirmPaymentOptions extends Omit<ConfirmCardSetupOptions, 'elements'> {
2444
2403
  sessionData: string;
2445
2404
  /**
2446
- * @description 传入已挂载的 CVVElement / PaymentElement / Elements 实例,不传则使用无 UI 自动提交模式
2405
+ * @description 传入已挂载的 CVVElement 或 Elements 实例,不传则使用无 UI 自动提交模式
2447
2406
  */
2448
2407
  elements?: BaseMainElement | BaseElements;
2449
2408
  appearance?: CVVAppearance;
2450
- /**
2451
- * @description 集成用户自定义信息(如 cardHolderName)
2452
- */
2453
- params?: Record<string, unknown>;
2454
2409
  }
2455
2410
 
2456
2411
  /**
@@ -2522,13 +2477,6 @@ declare namespace CSS_2 {
2522
2477
  }
2523
2478
  }
2524
2479
 
2525
- /**
2526
- * CSS 字体源 — 通过 <link> 标签加载外部 CSS(如 Google Fonts)
2527
- */
2528
- declare interface CssFontSource {
2529
- cssSrc: string;
2530
- }
2531
-
2532
2480
  declare interface CurrencyInfo {
2533
2481
  /**
2534
2482
  * @description Getter method for property <tt>currencyCode</tt>.
@@ -2574,21 +2522,15 @@ declare interface CustomerFxInfo {
2574
2522
  }
2575
2523
 
2576
2524
  /**
2577
- * 自定义字体源 — 通过 @font-face 加载自托管字体
2525
+ * CustomizedPerformanceKey 是给业务使用的自定义指标,共 20 个,页面之间互相独立
2578
2526
  */
2579
- declare interface CustomFontSource {
2580
- family: string;
2581
- src: string;
2582
- weight?: string;
2583
- style?: string;
2584
- unicodeRange?: string;
2585
- }
2527
+ declare type CustomizedPerformanceKey = 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm6' | 'm7' | 'm8' | 'm9' | 'm10' | 'm11' | 'm12' | 'm13' | 'm14' | 'm15' | 'm16' | 'm17' | 'm18' | 'm19' | 'm20';
2586
2528
 
2587
2529
  /**
2588
2530
  * @public
2589
2531
  * @description CVV element app config type
2590
2532
  */
2591
- export declare interface CVVAppConfig extends BaseAppearance<CVVAppearance>, BaseElementAppConfig {
2533
+ export declare interface CVVAppConfig extends BaseAppearance<CVVAppearance> {
2592
2534
  /**
2593
2535
  * @description sessionData
2594
2536
  */
@@ -2626,8 +2568,7 @@ export declare type CVVAppearance = PickAppearance<CVVAppearanceProps>;
2626
2568
 
2627
2569
  export declare type CVVAppearanceProps = {
2628
2570
  theme: AntomTheme;
2629
- variables: AntomVariables;
2630
- fonts?: FontSource[];
2571
+ 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';
2631
2572
  };
2632
2573
 
2633
2574
  /**
@@ -2719,10 +2660,6 @@ export declare interface CVVSubmitParams {
2719
2660
  * 重定向策略
2720
2661
  */
2721
2662
  redirect?: 'always' | 'if_required';
2722
- /**
2723
- * 集成用户自定义信息(如 cardHolderName)
2724
- */
2725
- params?: Record<string, unknown>;
2726
2663
  }
2727
2664
 
2728
2665
  declare interface DanaSofCouponInfo {
@@ -3300,6 +3237,18 @@ declare interface DeliveryEstimateInfo {
3300
3237
  value?: number;
3301
3238
  }
3302
3239
 
3240
+ declare interface DeviceInfo {
3241
+ device?: string;
3242
+ deviceType?: string;
3243
+ deviceBrand?: string;
3244
+ deviceModel?: string;
3245
+ screenWidth?: number;
3246
+ screenHeight?: number;
3247
+ contentHeight?: number;
3248
+ pixelRatio?: number;
3249
+ cClient?: string;
3250
+ }
3251
+
3303
3252
  /**
3304
3253
  * @description 立减型营销信息
3305
3254
  */
@@ -3345,6 +3294,29 @@ declare interface DisplayItem {
3345
3294
  status?: string;
3346
3295
  }
3347
3296
 
3297
+ declare type DMC = {
3298
+ d1?: number | string;
3299
+ d2?: number | string;
3300
+ d3?: number | string;
3301
+ d4?: number | string;
3302
+ d5?: number | string;
3303
+ d6?: number | string;
3304
+ d7?: number | string;
3305
+ d8?: number | string;
3306
+ d9?: number | string;
3307
+ d10?: number | string;
3308
+ d11?: number | string;
3309
+ d12?: number | string;
3310
+ d13?: number | string;
3311
+ d14?: number | string;
3312
+ d15?: number | string;
3313
+ d16?: number | string;
3314
+ d17?: number | string;
3315
+ d18?: number | string;
3316
+ d19?: number | string;
3317
+ d20?: number | string;
3318
+ } & C & M;
3319
+
3348
3320
  /**
3349
3321
  * @description 元素列表项类型
3350
3322
  */
@@ -3406,9 +3378,21 @@ declare class Elements extends BaseElements {
3406
3378
  getElement(elementType: 'express', options?: ExpressAppConfig): ExpressElement;
3407
3379
  }
3408
3380
 
3409
- declare type ElementStatus = 'initialized' | 'mounting' | 'mounted' | 'ready' | 'destroyed' | 'unmounted';
3381
+ 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';
3382
+
3383
+ declare type Env = 'local' | 'dev' | 'sit' | 'pre' | 'prod';
3410
3384
 
3411
- 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';
3385
+ declare type Env_2 = 'DEV' | 'SIT' | 'PRE' | 'PROD' | 'LOCAL';
3386
+
3387
+ declare interface EnvInfo {
3388
+ env?: Env_2;
3389
+ sprintId?: string;
3390
+ container?: string;
3391
+ cOfflineVer?: string;
3392
+ serverIp?: string;
3393
+ serverEnv?: string;
3394
+ canaryFlag?: string;
3395
+ }
3412
3396
 
3413
3397
  /**
3414
3398
  * @description 错误上下文对象。参考主站<code>ErrorContext</code>实现。
@@ -3439,11 +3423,9 @@ declare type ErrorSource = ErrorSource_2;
3439
3423
 
3440
3424
  declare type ErrorSource_2 = 'SDK_INTERNAL' | 'SDK_USAGE' | 'APP_RUNTIME' | 'SERVER_API' | 'SYSTEM';
3441
3425
 
3442
- /**
3443
- * @description 工具类型,从类型中排除 undefined。
3444
- * 如果 T 继承 undefined 则返回 never,否则返回 T。
3445
- */
3446
- declare type ExcludeUndefined<T> = T extends undefined ? never : T;
3426
+ declare type ErrorType = 'js-error-addeventlistener' | 'source-error' | 'promise-error' | 'video-error' | 'video-source-error';
3427
+
3428
+ declare type EventFunction = (opt: Record<string, any>) => boolean;
3447
3429
 
3448
3430
  /**
3449
3431
  * @description 卡分期计划
@@ -3487,22 +3469,6 @@ declare interface ExpCardPlan {
3487
3469
  * @description 每个月分期利息
3488
3470
  */
3489
3471
  monthlyInterest?: ComIpayIexpprodServiceFacadeCommonAmount;
3490
- /**
3491
- * @description 分期有效期开始时间
3492
- */
3493
- validStartTime?: string;
3494
- /**
3495
- * @description 分期有效期结束时间
3496
- */
3497
- validEndTime?: string;
3498
- /**
3499
- * @description 支持的银行信息
3500
- *
3501
- * 包含该分期计划支持的银行详细信息,包括银行简称、logo等。
3502
- * 该字段从 installmentBanks 数据中通过 bankShortName 关联而来,
3503
- * 若分期计划无银行限制或未匹配到银行信息,该字段可能为null。@see ExpSupportIppBank
3504
- */
3505
- supportedBank?: ExpSupportIppBank;
3506
3472
  }
3507
3473
 
3508
3474
  declare interface ExpInstallmentInfo {
@@ -3527,18 +3493,12 @@ declare interface ExpPaymentOptionDetail {
3527
3493
  * @public
3528
3494
  * @description Express element app config type
3529
3495
  */
3530
- export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetting>, BaseElementAppConfig {
3496
+ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetting> {
3531
3497
  /** payment SessionData */
3532
3498
  sessionData?: string;
3533
3499
  /** Business division (country/region) */
3534
3500
  businessDivision?: string;
3535
- /**
3536
- * Amount & Currency
3537
- *
3538
- * Only effective via `updateConfig({ amount })` at runtime.
3539
- * Passing amount at creation time is ignored; the initial amount
3540
- * comes from the server-side sdkQuery result (renderData.paymentAmount).
3541
- */
3501
+ /** Amount & Currency */
3542
3502
  amount?: {
3543
3503
  currency: string;
3544
3504
  value: string;
@@ -3547,20 +3507,20 @@ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetti
3547
3507
  paypal?: PayPalConfig;
3548
3508
  /**
3549
3509
  * Button text type (following Stripe Express Checkout Element design)
3550
- * Each payment method can independently set the button display text.
3510
+ * Each payment method can independently set the button display text
3511
+ * Reserved index signature for future payment method integration
3551
3512
  */
3552
3513
  buttonType?: {
3553
3514
  /** PayPal: paypal | checkout | buynow | pay */
3554
3515
  paypal?: 'paypal' | 'checkout' | 'buynow' | 'pay';
3555
3516
  [method: string]: string | undefined;
3556
3517
  };
3557
- /**
3558
- * Unified height for all buttons (px)
3559
- */
3518
+ /** Unified height for all buttons (px) */
3560
3519
  buttonHeight?: number;
3561
3520
  /**
3562
3521
  * Button color theme (following Stripe Express Checkout Element design)
3563
- * Each payment method can independently set the theme color.
3522
+ * Each payment method can independently set the theme color
3523
+ * Reserved index signature for future payment method integration
3564
3524
  */
3565
3525
  buttonTheme?: {
3566
3526
  /** PayPal: gold | blue | silver | white | black */
@@ -3581,15 +3541,6 @@ export declare interface ExpressAppConfig extends BaseAppearance<AppearanceSetti
3581
3541
  * Locale for internationalization, passed from entry params (loadAntom), default to en_US
3582
3542
  */
3583
3543
  locale?: string;
3584
- /**
3585
- * 是否运行在 Native App 的 WebView 中。
3586
- * 为 true 时,跳转通过 onRedirect 事件委托给 Native 端处理。
3587
- */
3588
- isNativeAppWebview?: boolean;
3589
- /** @internal SDK host 侧商户域名,供 Apple Pay merchant validation 使用 */
3590
- merchantDomain?: string;
3591
- /** @internal Elements2 历史协议字段,含义同 merchantDomain */
3592
- doMain?: string;
3593
3544
  }
3594
3545
 
3595
3546
  /** cancel 事件负载 */
@@ -3598,54 +3549,24 @@ export declare interface ExpressCancelEvent {
3598
3549
  data?: any;
3599
3550
  }
3600
3551
 
3601
- /** click 事件负载(纯通知,商户可用于埋点,SDK 不等待响应) */
3552
+ /** click 事件负载 */
3602
3553
  export declare interface ExpressClickEvent {
3603
3554
  expressPaymentType: string;
3555
+ resolve: (options: ClickResolveOptions) => void;
3604
3556
  }
3605
3557
 
3606
3558
  /** confirm 事件负载(统一终态,替代 approve) */
3607
3559
  export declare interface ExpressConfirmData {
3608
3560
  expressPaymentType: string;
3609
- billingDetails?: {
3610
- name?: string;
3611
- email?: string;
3612
- phone?: string;
3613
- address?: {
3614
- line1?: string;
3615
- line2?: string;
3616
- city?: string;
3617
- state?: string;
3618
- postalCode?: string;
3619
- country?: string;
3620
- };
3621
- };
3622
- shippingAddress?: {
3623
- name?: string;
3624
- phone?: string;
3625
- address?: {
3626
- line1?: string;
3627
- line2?: string;
3628
- city?: string;
3629
- state?: string;
3630
- postalCode?: string;
3631
- country?: string;
3632
- };
3633
- };
3634
- /** 支付方式返回的原始支付数据(如 alipayCn、applePay 等) */
3635
- paymentData?: unknown;
3636
- /**
3637
- * 商户主动拒绝本次支付(如库存不足、价格变动等)。
3638
- * 调用后 SDK 立即取消支付流程,confirmPayment() 无需调用。
3639
- */
3640
- paymentFailed: () => void;
3561
+ paymentData: any;
3562
+ billingDetails?: any;
3563
+ shippingAddress?: any;
3564
+ sessionData?: string;
3641
3565
  }
3642
3566
 
3643
3567
  /**
3644
3568
  * @public
3645
3569
  * @description Express element - express checkout element, supports PayPal / Apple Pay / Google Pay
3646
- *
3647
- * Host 侧只保留 Element 生命周期、商户事件包装和 bridge 连接。
3648
- * AP/GP/AlipayCN 的 submit、2DS/3DS、polling 结果处理都由 express_element webapp 承接。
3649
3570
  */
3650
3571
  export declare class ExpressElement extends BaseMainElement<ExpressElementConfig, ExpressElementEvents> {
3651
3572
  static elementType: string;
@@ -3653,49 +3574,15 @@ export declare class ExpressElement extends BaseMainElement<ExpressElementConfig
3653
3574
  * Store all function-type callbacks locally, not involved in postMessage serialization
3654
3575
  */
3655
3576
  private _callbacks;
3656
- /** setup 阶段的 renderData,仅供非 Safari PC Apple Pay host-token 路径读取 paymentRequest。 */
3657
- private _renderData;
3658
- private _hostSign;
3659
- /**
3660
- * 构造时传入的初始金额。cleanAppConfig 已剔除 amount,setup 阶段透传给 iframe(PayPal 按钮首屏需要)
3661
- * 与 PayPal channelClientId 查询仍需读它;运行时改额只能走 updateConfig。
3662
- */
3663
- private _initialAmount;
3664
- /**
3665
- * 本地事件处理器(绕过 bridge 的 host→webapp 方向限制)。
3666
- * bridge.on 只能监听 iframe 发来的消息;SDK host 主动推送事件给商户时走 _emit → _localHandlers。
3667
- */
3668
- private _localHandlers;
3669
- /** 支付流程进行中标志(click → confirm/error/cancel 之间) */
3670
- private _paymentInProgress;
3671
- private _paypalOverlay;
3672
3577
  constructor(name: string, config: ExpressElementConfig);
3578
+ setup(): Promise<Partial<ExpressAppConfig> | undefined>;
3673
3579
  /**
3674
- * 重写 on:
3675
- * 1. 对 confirm 事件拦截,在商户回调执行前注入 paymentFailed()
3676
- * 2. 对 onRedirect 事件同步注册到 _localHandlers(SDK host 主动推送时商户能收到)
3677
- */
3678
- on(event: string, handler: (...args: any[]) => void): void;
3679
- /**
3680
- * SDK host 主动推送事件给商户(不走 bridge postMessage,直接调用本地注册的 handler)。
3681
- * 用于 Native WebView 场景下 SDK 需要向商户透传跳转信息等。
3682
- */
3683
- private _emit;
3684
- updateConfig(newConfig: Pick<ExpressAppConfig, 'amount'>): Promise<ExpressElementEvents['OPENSDK@UPDATE_CONFIG_REPLY']>;
3685
- /**
3686
- * 商户在 confirm 回调内调用,触发实际支付提交。
3687
- * iframe 收到 OPENSDK@COMPLETE_PAYMENT 后执行 submitPay / polling 等,
3688
- * 完成后通过 OPENSDK@COMPLETE_PAYMENT_RESULT 回包,Promise resolve。
3580
+ * Register internal event listeners (iframe communication)
3689
3581
  */
3690
- completePayment(redirect?: 'always' | 'if_required'): Promise<{
3691
- success: boolean;
3692
- result?: any;
3693
- error?: {
3694
- code: string;
3695
- message: string;
3696
- };
3697
- }>;
3698
- setup(): Promise<Partial<ExpressAppConfig> | undefined>;
3582
+ /** Overlay DOM node, created on click, removed after payment ends */
3583
+ private _overlay;
3584
+ private _showOverlay;
3585
+ private _hideOverlay;
3699
3586
  private registerInternalListeners;
3700
3587
  protected focus(): void;
3701
3588
  protected blur(): void;
@@ -3713,83 +3600,84 @@ export declare interface ExpressElementConfig extends BaseElementConfig<ExpressA
3713
3600
  * @public
3714
3601
  * @description Express element events type
3715
3602
  */
3716
- export declare interface ExpressElementEvents extends AntomBridgeWithNativeEventMap<ExpressAppConfig> {
3603
+ export declare interface ExpressElementEvents extends AntomBridgeEventMap<ExpressAppConfig> {
3604
+ /**
3605
+ * @description Element ready event — 上报可用支付方式
3606
+ */
3717
3607
  ready: {
3718
3608
  availablePaymentMethods: Record<string, boolean>;
3719
3609
  };
3610
+ /**
3611
+ * @description 用户点击按钮 — 商户必须调用 event.resolve() 后 sheet 才弹出
3612
+ * 对 PayPal: resolve 为 no-op(PayPal 自行弹出 popup)
3613
+ */
3720
3614
  click: ExpressClickEvent;
3615
+ /**
3616
+ * @description 统一支付完成事件(替代 approve)
3617
+ * 用户授权完成后触发,通过 expressPaymentType 区分钱包类型
3618
+ */
3721
3619
  confirm: ExpressConfirmData;
3620
+ /**
3621
+ * @description 支付错误事件(扩展基类 ErrorPayload,新增 expressPaymentType)
3622
+ */
3722
3623
  error: ErrorPayload & {
3723
3624
  expressPaymentType: string;
3724
3625
  };
3626
+ /**
3627
+ * @description 用户取消支付
3628
+ */
3725
3629
  cancel: ExpressCancelEvent;
3630
+ /**
3631
+ * @description 用户在 sheet 内变更收货地址(AP/GP only,PayPal 不触发)
3632
+ */
3726
3633
  shippingaddresschange: {
3727
3634
  expressPaymentType: string;
3728
3635
  address: any;
3729
3636
  resolve: (options: ShippingResolveOptions) => void;
3730
3637
  reject: (reason: string) => void;
3731
3638
  };
3639
+ /**
3640
+ * @description 用户在 sheet 内变更配送方式(AP/GP only,PayPal 不触发)
3641
+ */
3732
3642
  shippingratechange: {
3733
3643
  expressPaymentType: string;
3734
3644
  shippingRate: any;
3735
3645
  resolve: (options: RateResolveOptions) => void;
3736
3646
  };
3647
+ /** @internal iframe 内容高度变化 */
3737
3648
  contentHeightChanged: {
3738
3649
  height: number;
3739
3650
  };
3740
- 'OPENSDK@CLICK': {
3741
- expressPaymentType: string;
3742
- };
3743
- 'OPENSDK@CLICK_RESOLVE': Record<string, never>;
3744
- 'OPENSDK@PAYPAL_CREATE_ORDER': {
3651
+ /** @internal PayPal 请求商户创建订单 */
3652
+ 'paypal:createOrder': {
3745
3653
  requestId: string;
3746
3654
  };
3747
- 'OPENSDK@PAYPAL_CREATE_ORDER_REPLY': {
3655
+ /** @internal PayPal createOrder 响应 */
3656
+ 'paypal:createOrder:reply': {
3748
3657
  requestId: string;
3749
3658
  sessionData?: string;
3750
3659
  error?: string;
3751
3660
  };
3752
- 'OPENSDK@PAYPAL_SHIPPING_ADDRESS_CHANGE': {
3661
+ /** @internal PayPal 用户变更收货地址 */
3662
+ 'paypal:onShippingAddressChange': {
3753
3663
  requestId: string;
3754
3664
  shippingData: any;
3755
3665
  };
3756
- 'OPENSDK@PAYPAL_SHIPPING_ADDRESS_CHANGE_REPLY': {
3666
+ /** @internal PayPal 收货地址变更响应 */
3667
+ 'paypal:onShippingAddressChange:reply': {
3757
3668
  requestId: string;
3758
3669
  error?: string;
3759
3670
  };
3760
- 'OPENSDK@PAYPAL_SHIPPING_OPTIONS_CHANGE': {
3671
+ /** @internal PayPal 用户变更配送方式 */
3672
+ 'paypal:onShippingOptionsChange': {
3761
3673
  requestId: string;
3762
3674
  shippingData: any;
3763
3675
  };
3764
- 'OPENSDK@PAYPAL_SHIPPING_OPTIONS_CHANGE_REPLY': {
3676
+ /** @internal PayPal 配送方式变更响应 */
3677
+ 'paypal:onShippingOptionsChange:reply': {
3765
3678
  requestId: string;
3766
3679
  error?: string;
3767
3680
  };
3768
- 'OPENSDK@GET_APPLE_PAY_TOKEN': {
3769
- requestId: string;
3770
- expressPaymentType: string;
3771
- };
3772
- /** host 完成 Apple Pay token 获取后回包给 iframe,submit/3DS/polling 均由 webapp 完成 */
3773
- 'OPENSDK@GET_APPLE_PAY_TOKEN_REPLY': {
3774
- requestId: string;
3775
- success: boolean;
3776
- result?: any;
3777
- errorCode?: string;
3778
- errorMessage?: string;
3779
- billingDetails?: any;
3780
- shippingAddress?: any;
3781
- };
3782
- 'OPENSDK@UPDATE_CONFIG_REPLY': {
3783
- error?: ErrorPayload<string>;
3784
- };
3785
- 'OPENSDK@COMPLETE_PAYMENT_REJECT': Record<string, never>;
3786
- onRedirect: {
3787
- normalUrl: string;
3788
- applinkUrl?: string;
3789
- schemaUrl?: string;
3790
- isDestroy: boolean;
3791
- needReset: boolean;
3792
- };
3793
3681
  }
3794
3682
 
3795
3683
  declare interface ExpSupportBank {
@@ -3814,24 +3702,6 @@ declare interface ExpSupportCardBrand {
3814
3702
  logo?: Logo;
3815
3703
  }
3816
3704
 
3817
- /**
3818
- * @description 支持的分期银行信息
3819
- */
3820
- declare interface ExpSupportIppBank {
3821
- /**
3822
- * @description bank short name or bank code
3823
- */
3824
- bankShortName?: string;
3825
- /**
3826
- * @description logo
3827
- */
3828
- logo?: Logo;
3829
- /**
3830
- * @description bins
3831
- */
3832
- bins?: string[];
3833
- }
3834
-
3835
3705
  declare type Fallback<T> = { [P in keyof T]: T[P] | readonly NonNullable<T[P]>[] };
3836
3706
 
3837
3707
  declare interface FirstPhaseSubscriptionDetail {
@@ -3849,27 +3719,6 @@ declare interface FirstPhaseSubscriptionDetail {
3849
3719
  promotionDetails?: PromotionDetail[];
3850
3720
  }
3851
3721
 
3852
- declare type FontSource = CssFontSource | CustomFontSource;
3853
-
3854
- declare interface FrontModulesToBeLoadedInterface {
3855
- acquirerName: string;
3856
- scriptUrl: string;
3857
- }
3858
-
3859
- /**
3860
- * @description 分期银行展示模型
3861
- */
3862
- declare interface FrontSupportIppBank {
3863
- /**
3864
- * @description bank short name or bank code
3865
- */
3866
- bankShortName?: string;
3867
- /**
3868
- * @description logo
3869
- */
3870
- logo?: Logo;
3871
- }
3872
-
3873
3722
  declare type GetI18nQueryParam = string | {
3874
3723
  /**
3875
3724
  * 多语言文案的 key
@@ -3887,6 +3736,40 @@ declare type GetI18nQueryParam = string | {
3887
3736
  defaultMessage?: string;
3888
3737
  };
3889
3738
 
3739
+ declare function getMiniPerformance(): Promise<{
3740
+ performance: {
3741
+ appLaunch: number;
3742
+ jumpAppStartUnix: number;
3743
+ preparePhase: number;
3744
+ appPhase: number;
3745
+ pagePhase: number;
3746
+ appxPhase: number;
3747
+ launchId: string;
3748
+ launchType: 0 | 1;
3749
+ };
3750
+ onLoadTime: number;
3751
+ loadId: string;
3752
+ srcCount: number;
3753
+ webviewComponentSrc?: string | undefined;
3754
+ } | undefined>;
3755
+
3756
+ declare type GetRequesterResult = (data: string, rawData: (ReportData & BaseInfo) | IOptions | IEventOPtions) => Promise<void>;
3757
+
3758
+ declare interface GetWebVitalsInfoResult {
3759
+ fcp: Promise<number | null | undefined>;
3760
+ ttfb: Promise<number | null | undefined>;
3761
+ lcp: Promise<number | null | undefined>;
3762
+ inp: Promise<number | null | undefined>;
3763
+ cls: Promise<number | null | undefined>;
3764
+ }
3765
+
3766
+ declare interface GetWhiteScreenInfoOptions {
3767
+ selector?: string | string[];
3768
+ delay?: number | (() => number);
3769
+ persistent?: boolean;
3770
+ ignoreNotInViewport?: boolean;
3771
+ }
3772
+
3890
3773
  declare type GlobalOptions = {
3891
3774
  i18n?: SimpleI18n;
3892
3775
  i18nPrefix: string;
@@ -4454,12 +4337,17 @@ declare type HtmlAttributes =
4454
4337
  | "[writingsuggestions]"
4455
4338
  | "[xmlns]";
4456
4339
 
4457
- declare interface IApplePayContactField {
4458
- email: string;
4459
- name: string;
4460
- phone: string;
4461
- postalAddress: string;
4462
- phoneticName: string;
4340
+ declare interface HTTPErrorCallbackOptions {
4341
+ requestType: 'fetch' | 'xhr';
4342
+ error?: unknown;
4343
+ status?: number;
4344
+ url: string;
4345
+ type?: string;
4346
+ redirected?: 0 | 1;
4347
+ responseUrl?: string;
4348
+ time: number;
4349
+ method?: string;
4350
+ aborted?: 0 | 1;
4463
4351
  }
4464
4352
 
4465
4353
  declare interface iBaseElementClass {
@@ -4467,6 +4355,16 @@ declare interface iBaseElementClass {
4467
4355
  elementType: string;
4468
4356
  }
4469
4357
 
4358
+ declare interface IEventOPtions {
4359
+ eventId: string;
4360
+ param4: Record<string, any>;
4361
+ immediat?: boolean;
4362
+ }
4363
+
4364
+ declare type IMDAP_SERVER = (typeof imdapServers)[number];
4365
+
4366
+ 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"];
4367
+
4470
4368
  declare interface InstallmentPlan {
4471
4369
  /**
4472
4370
  * @description 分期支持的银行
@@ -4585,117 +4483,102 @@ declare interface InterestFree {
4585
4483
  bankShortName?: string;
4586
4484
  }
4587
4485
 
4588
- declare interface IntlOpenSDKTrackerInitOptions extends Omit<ExcludeUndefined<CompatibleTrackerFullOptions>, 'appId'> {
4589
- trackId?: string;
4590
- /**
4591
- * @description appId,默认值为180020050100012557
4592
- */
4486
+ declare class IntlOpenSDKTracker extends CompatibleTracker {
4487
+ constructor(initOption?: IntlOpenSDKTrackerInitOptions_2);
4488
+ initi(options: IntlOpenSDKTrackerInitOptions_2): Promise<boolean>;
4489
+ set(data: Partial<IntlOpenSDKTrackerInitOptions_2>): void;
4490
+ }
4491
+
4492
+ declare interface IntlOpenSDKTrackerInitOptions extends Omit<IntlOpenSDKTrackerInitOptions_2, 'appId'> {
4593
4493
  appId?: string;
4594
- /**
4595
- * origin → 完全按入参 key 输出
4596
- * snake → 强制 snake_case
4597
- * camel → 强制 camelCase
4598
- * both → snake + origin 双写
4599
- */
4600
- keyFormat?: 'origin' | 'snake' | 'camel' | 'both';
4601
- /**
4602
- * 是否上报idengine_user_path
4603
- */
4604
- userPathAuto?: boolean;
4605
4494
  }
4606
4495
 
4607
- declare interface IPaymentSessionMetaData {
4608
- clientId?: string;
4609
- renderDisplayType?: string;
4610
- paymentSessionConfig?: PaymentSessionConfig;
4611
- securityConfig?: SessionSecurityConfig;
4612
- moneyView?: any;
4613
- extendInfo?: string;
4614
- paymentMethodInfoView?: any;
4615
- paymentView?: any;
4616
- modernWeb?: boolean;
4617
- action?: PaymentSessionAction;
4496
+ declare interface IntlOpenSDKTrackerInitOptions_2 extends Omit<OriginTrackerInitOptions, 'bizType' | 'productId'> {
4497
+ whiteScreen?: BlankMonitorConfig | boolean;
4498
+ bizType?: string;
4499
+ productId?: string;
4618
4500
  /**
4619
- * @description 是一个string,灰度开关,格式为 flag1,flag2,flag3
4501
+ * @description 追踪id
4620
4502
  */
4621
- flowSwitchTags?: string;
4622
- authUrlInfo?: {
4623
- appIdentifier?: string;
4624
- applinkUrl?: string;
4625
- normalUrl?: string;
4626
- schemeUrl?: string;
4627
- authUrl?: string;
4628
- };
4629
- paymentSessionFactor?: {
4630
- externalRiskTimeout?: number;
4631
- extendInfo?: {
4632
- merchantCapabilities?: string[];
4633
- supportedNetworks?: string[];
4634
- requiredBillingContactFields: IApplePayContactField[];
4635
- requiredShippingContactFields: IApplePayContactField[];
4636
- };
4637
- merchantInfo?: {
4638
- registeredCountry?: string;
4639
- partnerId?: string;
4640
- merchantName?: string;
4641
- };
4642
- order?: {
4643
- orderDescription: string;
4644
- };
4645
- paymentAmount?: {
4646
- value?: string;
4647
- currency?: string;
4648
- };
4649
- paymentMethodInfo?: {
4650
- paymentMethodType?: string;
4651
- };
4652
- paymentMethodViewMetaData?: any;
4653
- paymentRequestId?: string;
4654
- supportedLanguages?: any;
4655
- /**
4656
- * 当前为苹果分期场景的信息
4657
- */
4658
- recurringInfo?: {
4659
- /**
4660
- * 代扣协议开始日期 不传为当前系统时间
4661
- */
4662
- startDate?: number;
4663
- /**
4664
- * 代扣协议结束日期 不传不限制结束时间
4665
- */
4666
- endDate?: number;
4667
- /**
4668
- * 付款时间间隔单位,支持:"year" "month" "day" "hour" "minute" 不传默认month
4669
- */
4670
- intervalUnit?: string;
4671
- /**
4672
- * 付款时间间隔。比如每过6个月付款一次,intervalCount就是6, 不传默认为1
4673
- */
4674
- intervalCount?: number;
4675
- /**
4676
- * 分期标题信息
4677
- */
4678
- title?: string;
4679
- /**
4680
- * 分期管理页面
4681
- */
4682
- managementURL?: string;
4683
- /**
4684
- * 苹果通知ipay MAPN信息变更的地址
4685
- */
4686
- tokenNotificationURL?: string;
4687
- /**
4688
- * 分期协议描述
4689
- */
4690
- agreementDescription?: string;
4691
- };
4692
- frontModulesToBeLoaded?: FrontModulesToBeLoadedInterface[];
4693
- };
4694
- connectFactor?: {
4695
- enableConnect?: boolean;
4696
- };
4697
- skipRenderPaymentMethod?: boolean;
4698
- needAccountConfirmPage?: boolean;
4503
+ trackId?: string;
4504
+ mdata?: Record<string, any>;
4505
+ performance?: boolean;
4506
+ error?: boolean;
4507
+ }
4508
+
4509
+ declare interface IOptions {
4510
+ actionId: string;
4511
+ spmId: string;
4512
+ param1?: string;
4513
+ param2?: string;
4514
+ param3?: string;
4515
+ param4?: Record<string, any>;
4516
+ param5?: Record<string, any>;
4517
+ stayTime?: number;
4518
+ }
4519
+
4520
+ declare interface ISystemInfo {
4521
+ readonly pixelRatio: number;
4522
+ readonly windowWidth: number;
4523
+ readonly windowHeight: number;
4524
+ readonly model: string;
4525
+ readonly language: string;
4526
+ readonly version: string;
4527
+ readonly platform: string;
4528
+ readonly system: string;
4529
+ readonly screenWidth: number;
4530
+ readonly screenHeight: number;
4531
+ readonly brand: string;
4532
+ readonly app: string;
4533
+ readonly [propName: string]: any;
4534
+ }
4535
+
4536
+ declare interface ITracert extends IUserTracertProperties {
4537
+ get: (arg0: string) => any;
4538
+ set: (arg0: IUserTracertProperties) => void;
4539
+ loadPlugins: (_plugins: PluginFunction[]) => void;
4540
+ readonly logLevel?: string;
4541
+ readonly logVersion?: string;
4542
+ readonly debug?: boolean;
4543
+ readonly contact?: boolean;
4544
+ readonly pluginReady?: boolean;
4545
+ readonly _plugins?: readonly PluginFunction[];
4546
+ readonly _beforeEvObj?: Record<string, EventFunction[]>;
4547
+ readonly _afterEvObj?: Record<string, EventFunction[]>;
4548
+ readonly _pluginLoadCnt?: number;
4549
+ readonly apiCashList?: any[];
4550
+ }
4551
+
4552
+ declare interface IUserTracertProperties {
4553
+ readonly ready?: boolean;
4554
+ readonly bizType?: string;
4555
+ readonly deviceId?: string;
4556
+ readonly userId?: string;
4557
+ readonly spmAPos?: string;
4558
+ readonly spmBPos?: string;
4559
+ readonly pageId?: string;
4560
+ readonly server?: string;
4561
+ readonly servers?: string[];
4562
+ readonly chInfo?: string;
4563
+ readonly scm?: string;
4564
+ readonly env?: Env;
4565
+ readonly switch?: boolean;
4566
+ readonly sendFrequency?: number;
4567
+ readonly batchCount?: number;
4568
+ readonly referSPM?: string;
4569
+ readonly sessionId?: string;
4570
+ readonly appId?: string;
4571
+ readonly productId?: string;
4572
+ readonly mdata?: Record<string, number | string>;
4573
+ readonly systemInfo?: ISystemInfo;
4574
+ readonly networkType?: string;
4575
+ readonly path?: string;
4576
+ readonly packageVersion?: string;
4577
+ readonly autoExpo?: boolean;
4578
+ }
4579
+
4580
+ declare interface LagPlugin {
4581
+ onFpsLag?: (callback: (durationList: number[]) => void, maxDuration?: number, maxTimeoutCount?: number) => void;
4699
4582
  }
4700
4583
 
4701
4584
  /**
@@ -4750,6 +4633,86 @@ export declare interface LoadAntomConfig extends Omit<BaseFactoryConfig, 'tracke
4750
4633
  env?: 'sandbox' | 'prod';
4751
4634
  }
4752
4635
 
4636
+ declare interface LocationInfo {
4637
+ countryName?: string;
4638
+ cityName?: string;
4639
+ provinceName?: string;
4640
+ area?: string;
4641
+ }
4642
+
4643
+ declare interface LogInfo {
4644
+ title: string;
4645
+ msg?: string | Error | Record<string, number | string>;
4646
+ }
4647
+
4648
+ declare type LogItem = {
4649
+ code: string;
4650
+ msg: string;
4651
+ marmotId?: string;
4652
+ s1?: string | number;
4653
+ s2?: string | number;
4654
+ s3?: string | number;
4655
+ s4?: string | number;
4656
+ s5?: string | number;
4657
+ s6?: string | number;
4658
+ s7?: string | number;
4659
+ s8?: string | number;
4660
+ s9?: string | number;
4661
+ s10?: string | number;
4662
+ s11?: string | number;
4663
+ s12?: string | number;
4664
+ s13?: string | number;
4665
+ s14?: string | number;
4666
+ s15?: string | number;
4667
+ s16?: string | number;
4668
+ s17?: string | number;
4669
+ s18?: string | number;
4670
+ s19?: string | number;
4671
+ s20?: string | number;
4672
+ env?: Env_2;
4673
+ sdk?: string;
4674
+ container?: string;
4675
+ title?: string;
4676
+ fullUrl?: string;
4677
+ sprintId?: string;
4678
+ ip?: string;
4679
+ countryName?: string;
4680
+ cityName?: string;
4681
+ provinceName?: string;
4682
+ cOfflineVer?: string;
4683
+ url?: string;
4684
+ referrer?: string;
4685
+ domCnt?: number;
4686
+ delay?: number;
4687
+ scrollTop?: number;
4688
+ lastAction?: string;
4689
+ sessionId?: string;
4690
+ isp?: string;
4691
+ area?: string;
4692
+ ua?: string;
4693
+ browser?: string;
4694
+ os?: string;
4695
+ device?: string;
4696
+ deviceType?: string;
4697
+ deviceBrand?: string;
4698
+ deviceModel?: string;
4699
+ screenWidth?: number;
4700
+ screenHeight?: number;
4701
+ contentHeight?: number;
4702
+ pixelRatio?: number;
4703
+ cClient?: string;
4704
+ cClientId?: string;
4705
+ cCoreVer?: string;
4706
+ assetsVer?: string;
4707
+ traceId?: string;
4708
+ serverIp?: string;
4709
+ serverEnv?: string;
4710
+ clientId?: string;
4711
+ spm?: string;
4712
+ spma?: string;
4713
+ spmb?: string;
4714
+ } & DMC;
4715
+
4753
4716
  /**
4754
4717
  * @description Logo信息
4755
4718
  */
@@ -4780,6 +4743,29 @@ declare interface Logo {
4780
4743
  logoHeight?: string;
4781
4744
  }
4782
4745
 
4746
+ declare type M = {
4747
+ m1?: number;
4748
+ m2?: number;
4749
+ m3?: number;
4750
+ m4?: number;
4751
+ m5?: number;
4752
+ m6?: number;
4753
+ m7?: number;
4754
+ m8?: number;
4755
+ m9?: number;
4756
+ m10?: number;
4757
+ m11?: number;
4758
+ m12?: number;
4759
+ m13?: number;
4760
+ m14?: number;
4761
+ m15?: number;
4762
+ m16?: number;
4763
+ m17?: number;
4764
+ m18?: number;
4765
+ m19?: number;
4766
+ m20?: number;
4767
+ };
4768
+
4783
4769
  /**
4784
4770
  * @description 端上的行为设定 @Author yanhong
4785
4771
  */
@@ -4923,6 +4909,12 @@ declare interface MultiCurrencyMoney {
4923
4909
  currencyValue?: string;
4924
4910
  }
4925
4911
 
4912
+ declare interface NetworkInfo {
4913
+ networkType?: string;
4914
+ isp?: string;
4915
+ ip?: string;
4916
+ }
4917
+
4926
4918
  declare interface ObsoleteProperties<TLength = (string & {}) | 0, TTime = string & {}> {
4927
4919
  /**
4928
4920
  * 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.
@@ -7024,68 +7016,6 @@ declare interface OneAccountInfo {
7024
7016
  accountStatus?: string;
7025
7017
  }
7026
7018
 
7027
- /**
7028
- * @description one account 账户信息查询结果
7029
- */
7030
- declare interface OneAccountQueryResult {
7031
- /**
7032
- * @description 是否业务处理成功
7033
- */
7034
- success?: boolean;
7035
- /**
7036
- * @description 错误上下文
7037
- */
7038
- errorContext?: ErrorContext;
7039
- /**
7040
- * @description 返回结果码
7041
- */
7042
- resultCode?: string;
7043
- /**
7044
- * @description 返回结果信息
7045
- */
7046
- resultMessage?: string;
7047
- /**
7048
- * @description error actions
7049
- */
7050
- errorActions?: Record<string, string>;
7051
- /**
7052
- * @description error code
7053
- */
7054
- errorCode?: string;
7055
- /**
7056
- * @description error status
7057
- */
7058
- errorStatus?: string;
7059
- /**
7060
- * @description error message
7061
- */
7062
- errorMessage?: string;
7063
- /**
7064
- * @description extend info
7065
- */
7066
- extendInfo?: Record<string, string>;
7067
- /**
7068
- * @description one account 账户信息
7069
- */
7070
- accountInfo?: OneAccountInfo;
7071
- /**
7072
- * @description action form 下一步动作
7073
- */
7074
- actionForm?: OtpChallengeActionForm;
7075
- /**
7076
- * @description 支付方式列表
7077
- */
7078
- paymentMethods?: PaymentMethodView[];
7079
- /**
7080
- * @description 物流信息
7081
- */
7082
- shippings?: ShippingInfo_2[];
7083
- /**
7084
- * @description 支付金额 (订单金额 + 物流费)
7085
- */
7086
- paymentAmount?: MobileMoneyView;
7087
- }
7088
-
7089
7019
  /**
7090
7020
  * @description OpenModal的返回值类型
7091
7021
  */
@@ -7167,7 +7097,7 @@ declare class OpenSDKTracker {
7167
7097
  * @param options
7168
7098
  * @returns
7169
7099
  */
7170
- initTracker(options?: IntlOpenSDKTrackerInitOptions): Promise<CompatibleTrackerFull | undefined>;
7100
+ initTracker(options?: IntlOpenSDKTrackerInitOptions): Promise<IntlOpenSDKTracker | undefined>;
7171
7101
  private safeCall;
7172
7102
  /**
7173
7103
  *
@@ -7177,7 +7107,7 @@ declare class OpenSDKTracker {
7177
7107
  /**
7178
7108
  * @description 设置属性
7179
7109
  */
7180
- set(data: Partial<ExcludeUndefined<IntlOpenSDKTrackerInitOptions>>): void;
7110
+ set(data: Partial<IntlOpenSDKTrackerInitOptions>): void;
7181
7111
  /**
7182
7112
  * 会以 10141 code 上报一条常规日志,日志头为 D-AE
7183
7113
  * @see https://yuque.antfin.com/marmot/handbook/beginning#cq9Zw
@@ -7187,98 +7117,109 @@ declare class OpenSDKTracker {
7187
7117
  * 请在marmot申请code后使用,必须关联code
7188
7118
  * @see https://yuque.antfin.com/marmot/handbook/beginning#W3dtb
7189
7119
  */
7190
- log(...args: Parameters<CompatibleTrackerFull['log']>): void;
7191
- /**
7192
- * 用于埋点相关上报,点击
7193
- * @see https://yuque.antfin.com/marmot/handbook/beginning#XQel9
7194
- */
7195
- click(...args: Parameters<CompatibleTrackerFull['click']>): void;
7196
- /**
7197
- * 用于埋点相关上报,曝光
7198
- * @see https://yuque.antfin.com/marmot/handbook/beginning#LiVxE
7199
- */
7200
- expo(...args: Parameters<CompatibleTrackerFull['expo']>): void;
7201
- /**
7202
- * 用于日志管控
7203
- * @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
7204
- */
7205
- onSendData(...args: Parameters<CompatibleTrackerFull['onSendData']>): void;
7206
- /**
7207
- * 用于日志管控
7208
- * @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
7209
- */
7210
- offSendData(...args: Parameters<CompatibleTrackerFull['offSendData']>): void;
7211
- /**
7212
- * 用于埋点相关上报,上报的日志头为 D-VM
7213
- * @see https://yuque.antfin.com/marmot/handbook/beginning#RSCKn
7214
- */
7215
- pageMonitor(...args: Parameters<CompatibleTrackerFull['pageMonitor']>): void;
7216
- /**
7217
- * 用于上报自定义性能指标,单次仅上报一个指标
7218
- * @param {string} key — m1 - m20
7219
- * @param {number} num — 耗时,数字,一定要 >= 0,否则无统计意义
7220
- */
7221
- reportCustomizedPerformance(...args: Parameters<CompatibleTrackerFull['reportCustomizedPerformance']>): void;
7222
- }
7223
-
7224
- /**
7225
- * @description 订单信息
7226
- */
7227
- declare interface OrderInfo {
7228
- /**
7229
- * @description 订单描述
7230
- */
7231
- orderDescription?: string;
7232
- }
7233
-
7234
- declare interface OtpChallengeActionForm {
7235
- /**
7236
- * @description action form type
7237
- */
7238
- actionFormType?: string;
7239
- /**
7240
- * @description type of challenge
7241
- */
7242
- challengeType?: string;
7243
- /**
7244
- * @description The actual render value
7245
- */
7246
- challengeRenderValue?: string;
7247
- /**
7248
- * @description Describe the challenge is required by AAC or external party
7249
- */
7250
- triggerSource?: string;
7120
+ log(...args: Parameters<IntlOpenSDKTracker['log']>): void;
7251
7121
  /**
7252
- * @description is support retry challenge
7253
- * @default true
7122
+ * 用于埋点相关上报,点击
7123
+ * @see https://yuque.antfin.com/marmot/handbook/beginning#XQel9
7254
7124
  */
7255
- isChallengeRetrySupported?: boolean;
7125
+ click(...args: Parameters<IntlOpenSDKTracker['click']>): void;
7256
7126
  /**
7257
- * @description is fist otp auto triggered
7258
- * @default false
7127
+ * 用于埋点相关上报,曝光
7128
+ * @see https://yuque.antfin.com/marmot/handbook/beginning#LiVxE
7259
7129
  */
7260
- isChallengeAutoTriggered?: boolean;
7130
+ expo(...args: Parameters<IntlOpenSDKTracker['expo']>): void;
7261
7131
  /**
7262
- * @description estimated challenge response duration
7263
- * @default 0
7132
+ * 用于日志管控
7133
+ * @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
7264
7134
  */
7265
- estimatedDuration?: number;
7135
+ onSendData(...args: Parameters<IntlOpenSDKTracker['onSendData']>): void;
7266
7136
  /**
7267
- * @description url - like h5 sdk challenge need to call back url
7137
+ * 用于日志管控
7138
+ * @see https://yuque.antfin.com/marmot/handbook/beginning#rK7Ru
7268
7139
  */
7269
- challengeUrl?: string;
7140
+ offSendData(...args: Parameters<IntlOpenSDKTracker['offSendData']>): void;
7270
7141
  /**
7271
- * @description extend information
7142
+ * 用于埋点相关上报,上报的日志头为 D-VM
7143
+ * @see https://yuque.antfin.com/marmot/handbook/beginning#RSCKn
7272
7144
  */
7273
- extendInfo?: string;
7145
+ pageMonitor(...args: Parameters<IntlOpenSDKTracker['pageMonitor']>): void;
7274
7146
  /**
7275
- * @description verify Id
7147
+ * 用于上报自定义性能指标,单次仅上报一个指标
7148
+ * @param {string} key — m1 - m20
7149
+ * @param {number} num — 耗时,数字,一定要 >= 0,否则无统计意义
7276
7150
  */
7277
- verifyId?: string;
7151
+ reportCustomizedPerformance(...args: Parameters<IntlOpenSDKTracker['reportCustomizedPerformance']>): void;
7152
+ }
7153
+
7154
+ /**
7155
+ * @description 订单信息
7156
+ */
7157
+ declare interface OrderInfo {
7278
7158
  /**
7279
- * @description 重发次数
7159
+ * @description 订单描述
7280
7160
  */
7281
- resendLeftTimes?: number;
7161
+ orderDescription?: string;
7162
+ }
7163
+
7164
+ declare interface OriginTrackerInitOptions {
7165
+ isMarmot?: boolean;
7166
+ spmConfig?: SpmConfig;
7167
+ bizType: string;
7168
+ appId: string;
7169
+ /**
7170
+ * 适用于从雨燕监控迁移到 marmot 的场景
7171
+ * 该字段的值可使用雨燕监控的 appId 值
7172
+ * 最终该值会放在 D-AE 日志类型的 appId 字段位置,并覆盖扩展参数 4 中的 idengine_groupId 值
7173
+ * 正常情况下不需要用到,有疑问咨询 @之其 205637
7174
+ **/
7175
+ compatibleAppId?: string;
7176
+ productId: string;
7177
+ userId?: string;
7178
+ deviceId?: string;
7179
+ chInfo?: string;
7180
+ batchCount?: number;
7181
+ plugins?: PluginFunction[];
7182
+ server?: string;
7183
+ /**
7184
+ * servers 传入空数组或不传的情况下,不会禁用所有日志的上报,这个字段不是用来做上报开关的
7185
+ * 就像 server 不传或传空字符串的情况下,也不会禁用日志的上报,会使用默认的服务器地址
7186
+ * servers 只在有至少一个有效值的情况下才有意义
7187
+ */
7188
+ servers?: string[];
7189
+ mdata?: Record<string, number | string>;
7190
+ env?: Env_2;
7191
+ ready?: boolean;
7192
+ isReport?: boolean;
7193
+ version?: string;
7194
+ funnelAuto?: boolean;
7195
+ userPathAuto?: boolean;
7196
+ autoExpo?: boolean;
7197
+ autoClick?: boolean;
7198
+ expoOnce?: boolean;
7199
+ platform?: string;
7200
+ sprintId?: string;
7201
+ autoReportConfig?: {
7202
+ isReport?: boolean;
7203
+ programVersion?: string;
7204
+ productId?: string;
7205
+ appId?: string;
7206
+ bizType?: string;
7207
+ imdapServerIndex?: number;
7208
+ server?: string;
7209
+ servers?: string[];
7210
+ platform?: string;
7211
+ deviceId?: string;
7212
+ };
7213
+ whiteScreenConfig?: BlankMonitorConfig | boolean;
7214
+ fmpIgnoreElements?: string[];
7215
+ enableBehavior?: BehaviorConfig | boolean;
7216
+ enableRequestHook?: RequestHookConfig | boolean;
7217
+ enableJSAPIReport?: boolean;
7218
+ }
7219
+
7220
+ declare interface OSInfo {
7221
+ os?: string;
7222
+ osVer?: string;
7282
7223
  }
7283
7224
 
7284
7225
  declare type PartialSpeKey<T, V> = Partial<T extends infer K extends string ? Record<K, V> : Record<string, V>>;
@@ -7302,99 +7243,6 @@ declare interface PayByLinkInfo {
7302
7243
  linkVersion?: number;
7303
7244
  }
7304
7245
 
7305
- /**
7306
- * @description Payment element app config type
7307
- */
7308
- export declare interface PaymentAppConfig extends BaseAppearance<PaymentAppearance>, BaseElementAppConfig {
7309
- /**
7310
- * @description sessionData,无法通过updateConfig更新
7311
- */
7312
- sessionData?: string;
7313
- /**
7314
- * @internal sdk所在hostname
7315
- */
7316
- merchantDomain?: string;
7317
- /**
7318
- * @internal 渲染数据
7319
- */
7320
- renderData?: CashierSdkActionQueryResult;
7321
- /**
7322
- * @internal connect时有这个数据
7323
- */
7324
- connectAccount?: OneAccountQueryResult;
7325
- /**
7326
- * @internal sessionData解析后的数据
7327
- */
7328
- sessionMetaData?: IPaymentSessionMetaData;
7329
- /**
7330
- * @internal 渲染数据错误信息
7331
- */
7332
- renderDataError?: ErrorPayload;
7333
- /**
7334
- * @internal sdk 版本号
7335
- */
7336
- sdkVersion?: string;
7337
- /**
7338
- * @internal 内部联调使用,生产环境传递无效
7339
- */
7340
- _requestConfig?: Partial<Omit<RequestOptions, 'scope' | 'tracker'>>;
7341
- /**
7342
- * @internal 内部使用,无需用户传递,用于log日志原数据
7343
- */
7344
- logMetaData?: {
7345
- paymentMethodCategoryType?: PaymentSessionConfig['paymentMethodCategoryType'];
7346
- productSceneVersion?: PaymentSessionConfig['productSceneVersion'];
7347
- trackId: string;
7348
- merchantId?: string;
7349
- paymentMethodType?: string;
7350
- };
7351
- /**
7352
- * @internal 内部使用,无需用户传递,高度信息
7353
- */
7354
- heightOfVisible?: number;
7355
- }
7356
-
7357
- /**
7358
- * @description Payment element appearance type
7359
- */
7360
- export declare type PaymentAppearance = PickAppearance<{
7361
- displaySetting: 'showPaymentMethodListWhenSingleOption' | 'showCardBrandIcon' | 'showRadioWhenAccordionLayout' | 'showCardCVV';
7362
- theme: AntomTheme;
7363
- variables: AntomVariables;
7364
- layout: AntomLayouts;
7365
- }>;
7366
-
7367
- /**
7368
- * @description Payment element
7369
- */
7370
- export declare class PaymentElement extends BaseMainElement<PaymentElementConfig, PaymentElementEvents> {
7371
- static elementType: string;
7372
- constructor(name: string, config: PaymentElementConfig);
7373
- /**
7374
- * @internal
7375
- */
7376
- setup(): Promise<Partial<PaymentAppConfig> | undefined>;
7377
- /**
7378
- * @internal
7379
- */
7380
- submit(data?: PaymentSubmitParams): Promise<PaymentSubmitResult>;
7381
- protected focus(): void;
7382
- protected blur(): void;
7383
- protected clear(): void;
7384
- }
7385
-
7386
- /**
7387
- * @description Payment element config type
7388
- */
7389
- declare interface PaymentElementConfig extends BaseElementConfig<PaymentAppConfig> {
7390
- }
7391
-
7392
- /**
7393
- * @description Payment element events
7394
- */
7395
- export declare interface PaymentElementEvents extends AntomBridgeWithNativeEventMap<PaymentAppConfig, PaymentSubmitParams, PaymentSubmitResult> {
7396
- }
7397
-
7398
7246
  declare interface PaymentElementView {
7399
7247
  /**
7400
7248
  * @description payment element key
@@ -7496,36 +7344,6 @@ declare interface PaymentEvaluationResult {
7496
7344
  paymentBalanceInfo?: DanaSofPayMethodView[];
7497
7345
  }
7498
7346
 
7499
- /**
7500
- * @description Payment guidance information (CKP scenario)
7501
- *
7502
- * <p>Displays payment guide buttons on the checkout page, including: - Deep link: For launching the
7503
- * bank application (required) - Copy configuration: Divider text, button labels, etc. (extensible
7504
- * via Map, dynamically addable)
7505
- */
7506
- declare interface PaymentGuideInfo {
7507
- /**
7508
- * @description The deep link (from iexpprod, used to launch the bank app) The frontend only displays the
7509
- * payment guide button when this field is populated
7510
- */
7511
- appLinkUrlForWeb?: string;
7512
- /**
7513
- * @description Copy configuration (from the config center) Stored in a Map to support dynamic extension of
7514
- * text fields
7515
- *
7516
- * <p>Example configuration:
7517
- *
7518
- * <pre>
7519
- * {
7520
- * "dividerText": "or pay using",
7521
- * "directPayButtonText": "Pay directly with online banking",
7522
- * "ctoPButtonText": "Continue to payment"
7523
- * }
7524
- * </pre>
7525
- */
7526
- copyWriting?: Record<string, any>;
7527
- }
7528
-
7529
7347
  /**
7530
7348
  * @description 支付方式余额检查结果信息
7531
7349
  */
@@ -7588,10 +7406,6 @@ declare interface PaymentMethodView {
7588
7406
  * @description icon
7589
7407
  */
7590
7408
  icon?: string;
7591
- /**
7592
- * @description adaptive icon for PAYME payment method
7593
- */
7594
- adaptiveIcon?: string;
7595
7409
  /**
7596
7410
  * @description icon对应的名称
7597
7411
  */
@@ -7600,10 +7414,6 @@ declare interface PaymentMethodView {
7600
7414
  * @description 支付方式描述
7601
7415
  */
7602
7416
  description?: string;
7603
- /**
7604
- * @description 支付方式点击后的描述
7605
- */
7606
- descriptionAfterClick?: string;
7607
7417
  /**
7608
7418
  * @description category
7609
7419
  */
@@ -7738,10 +7548,6 @@ declare interface PaymentMethodView {
7738
7548
  * @description 账单地址收集模式
7739
7549
  */
7740
7550
  billingAddressCollectionMode?: string;
7741
- /**
7742
- * @description 分期银行信息列表
7743
- */
7744
- supportIppBankList?: FrontSupportIppBank[];
7745
7551
  }
7746
7552
 
7747
7553
  declare interface PaymentOption {
@@ -7809,10 +7615,6 @@ declare interface PaymentOption {
7809
7615
  * @description 支付选项Logo信息
7810
7616
  */
7811
7617
  logo?: Logo;
7812
- /**
7813
- * @description 支付描述多语言列表。如果入参有locale,且入参的locale有对应语言,则这里只返回locale对应的语言。
7814
- */
7815
- description?: Record<string, string>;
7816
7618
  /**
7817
7619
  * @description extendInfo extendInfo information
7818
7620
  */
@@ -7880,13 +7682,6 @@ declare interface PaymentQuoteInfo {
7880
7682
  * @description payment amount view
7881
7683
  */
7882
7684
  paymentAmountView?: PaymentView;
7883
- /**
7884
- * @description Display exchange rate from FX domain Quote, direction-adjusted and formatted to 2 decimal
7885
- * places. - BID direction: value = 1/price, setScale(2, HALF_UP) - OFFER direction: value =
7886
- * price, setScale(2, HALF_UP) Used for direct frontend access to exchange rate. Example: 3.16 for
7887
- * MYR/SGD currency pair
7888
- */
7889
- quotePrice?: any;
7890
7685
  }
7891
7686
 
7892
7687
  /**
@@ -7996,45 +7791,6 @@ declare interface PaymentSessionConfig {
7996
7791
  productSceneVersion?: string;
7997
7792
  }
7998
7793
 
7999
- /**
8000
- * @description The submit params
8001
- */
8002
- export declare interface PaymentSubmitParams extends SubmitParams {
8003
- /**
8004
- * @description 是否由antom sdk自动处理唤端逻辑,默认为true,由sdk自动处理。
8005
- * 如果antom sdk唤起客户端失败,建议设置为false,商家自行唤端
8006
- */
8007
- handleActions?: boolean;
8008
- /**
8009
- * @description 收件地址信息
8010
- */
8011
- shippingInfo?: ShippingInfo;
8012
- /**
8013
- * @description 集成用户自定义信息(如 cardHolderName)
8014
- */
8015
- params?: Record<string, unknown>;
8016
- }
8017
-
8018
- /**
8019
- * @description Payment element submit result
8020
- */
8021
- export declare interface PaymentSubmitResult extends SubmitResult {
8022
- paymentSession?: {
8023
- /**
8024
- * @description 回调页面的url链接,使用浏览器可直接打开,比如 http://xxx.app.com/xxx
8025
- */
8026
- returnUrl: string;
8027
- /**
8028
- * @description 回调页面唤起app的url链接,使用浏览器可直接打开,比如 http://xxx.app.com/xxx
8029
- */
8030
- returnAppUrl?: string;
8031
- /**
8032
- * @description 回调页面唤起app的scheme链接,比如 alipay://xxx
8033
- */
8034
- returnAppScheme?: string;
8035
- };
8036
- }
8037
-
8038
7794
  declare interface PaymentView {
8039
7795
  /**
8040
7796
  * @description 金额,以元为单位的金额
@@ -8092,6 +7848,56 @@ export declare interface PayPalConfig {
8092
7848
  onShippingOptionsChange?: (data: any, actions: any) => Promise<void>;
8093
7849
  }
8094
7850
 
7851
+ declare interface PerformancePlugin extends BaseInfoPlugin {
7852
+ getAnalyzePerformanceInfo?(): Record<string, any> | null;
7853
+ getPagePerformanceInfo?(): {
7854
+ onload: string | number;
7855
+ domContentLoad: string | number;
7856
+ redirect: string | number;
7857
+ appCache: string | number;
7858
+ dns: string | number;
7859
+ tcp: string | number;
7860
+ ssl: string | number;
7861
+ reqt: string | number;
7862
+ rest: string | number;
7863
+ dpt: string | number;
7864
+ ft: string | number;
7865
+ domInteractive: string | number;
7866
+ domReady: string | number;
7867
+ domComplete: string | number;
7868
+ random: string | number;
7869
+ miniPerformance?: ReturnType<typeof getMiniPerformance>;
7870
+ timeOrigin?: number;
7871
+ };
7872
+ getWebVitalsInfo?(): GetWebVitalsInfoResult;
7873
+ getWhiteScreenInfo?(options?: Pick<GetWhiteScreenInfoOptions, 'selector' | 'ignoreNotInViewport'>): Promise<{
7874
+ status: 'error' | 'ok';
7875
+ }>;
7876
+ getFMP?(options?: {
7877
+ ignoreElements?: string[];
7878
+ }): Promise<{
7879
+ time: number;
7880
+ selector: string;
7881
+ } | undefined>;
7882
+ getTTI?(): Promise<number | undefined>;
7883
+ getFP?(): Promise<number | undefined>;
7884
+ getT2Time?(): Promise<number | undefined>;
7885
+ /**
7886
+ * 将性能数据发送到容器,目前只需 H5 应用实现
7887
+ */
7888
+ sendPerformanceDataToContainer?(data: LogItem): Promise<void>;
7889
+ getSnapshot?: () => {
7890
+ fmp: string;
7891
+ lcp: string;
7892
+ };
7893
+ /**
7894
+ * 用于采集详细的性能数据,越晚调用,搜集的数据越多
7895
+ */
7896
+ getDetailPerformance?(): Promise<DMC | null>;
7897
+ startCheckingPageWhiteScreen?(config: GetWhiteScreenInfoOptions | boolean | undefined): Promise<(() => void) | undefined>;
7898
+ startCheckingDOMWhiteScreen?(selector: string, options: Omit<GetWhiteScreenInfoOptions, 'selector'>): (() => void) | undefined;
7899
+ }
7900
+
8095
7901
  declare interface PeriodRule {
8096
7902
  /**
8097
7903
  * @description period type
@@ -8103,13 +7909,87 @@ declare interface PeriodRule {
8103
7909
  periodCount?: number;
8104
7910
  }
8105
7911
 
8106
- /**
8107
- * @description 工具类型,仅从 Appearance 中拾取与 Props 类型匹配的属性。
8108
- * 返回受 Props 中存在的键约束的部分外观对象。
8109
- * @template Props - 要从 Appearance 中拾取的自定义外观属性类型。
8110
- */
8111
7912
  declare type PickAppearance<Props extends Partial<DefaultAppearanceProps>> = Partial<Pick<Appearance<Props>, keyof Props extends infer k extends keyof Partial<Appearance> ? k : keyof Partial<Appearance>>>;
8112
7913
 
7914
+ declare interface PluginContext {
7915
+ userPath: {
7916
+ reStoreUserPath: (appId: string) => void;
7917
+ parseUserPathExtra: (key: string) => {
7918
+ idengine_user_path: string;
7919
+ } | null;
7920
+ getUserPathExtra: () => {
7921
+ cachePath: string[];
7922
+ extra: {
7923
+ idengine_user_path: string;
7924
+ };
7925
+ };
7926
+ };
7927
+ waitInit: () => Promise<void>;
7928
+ }
7929
+
7930
+ declare type PluginFunction = (iTracert: ITracert, callback: () => void) => boolean;
7931
+
7932
+ 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'> & {
7933
+ server?: string;
7934
+ servers?: string[];
7935
+ isMarmot?: boolean;
7936
+ deviceId?: Promise<string>;
7937
+ whiteScreenConfig?: (BlankMonitorConfig & {
7938
+ callback?: (options: ReportData) => Promise<void>;
7939
+ }) | boolean;
7940
+ spmCheckCover?: string;
7941
+ whiteListConfigSource?: WHITE_LIST_CONFIG_SOURCE;
7942
+ remoteConfigValidDuration?: number;
7943
+ };
7944
+
7945
+ declare interface PluginOnErrorCallbackErrorInfo {
7946
+ message: string;
7947
+ extra: Record<string, any>;
7948
+ type: ErrorType;
7949
+ }
7950
+
7951
+ declare interface PluginPageMonitorOptions {
7952
+ spmInfo: {
7953
+ spmAPos: string;
7954
+ spmBPos: string;
7955
+ currentPage: string;
7956
+ };
7957
+ logData?: Record<string, any>;
7958
+ }
7959
+
7960
+ declare interface PluginShape extends PerformancePlugin, LagPlugin {
7961
+ getRequester(): GetRequesterResult;
7962
+ getDataFilter?(): (data: string[]) => Promise<string[]>;
7963
+ getExtraDataFilter?(): (data: Record<string, any>) => Promise<Record<string, any>>;
7964
+ onSendData?(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
7965
+ offSendData?(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
7966
+ init?(options: PluginInitOptions): Promise<void>;
7967
+ onError?(callback: (error: PluginOnErrorCallbackErrorInfo) => void): () => void;
7968
+ onPageLoad?(callback: () => void): () => void;
7969
+ set?(options: Record<string, any>): void;
7970
+ /**
7971
+ * @deprecated Compatible with old APIs. Use `Tracker#report` instead.
7972
+ * @param info
7973
+ * @param extra
7974
+ */
7975
+ log?(type: string, params?: Record<string, any>): void;
7976
+ pageMonitor?(options: PluginPageMonitorOptions): void;
7977
+ expo?(code: string, extra?: Record<string, number | string | boolean>): void;
7978
+ click?(code: string, extra: Record<string, number | string | boolean>): void;
7979
+ getSessionItem?(key: string): string | null;
7980
+ removeSessionItem?(key: string): void;
7981
+ setSessionItem?(key: string, value: string): void;
7982
+ getSessionId?(): string | null;
7983
+ getStorageItem?(key: string): Promise<string | null>;
7984
+ removeStorageItem?(key: string): void;
7985
+ setStorageItem?(key: string, value: string): void;
7986
+ onHTTPError?(callback: (options: HTTPErrorCallbackOptions) => void): void;
7987
+ triggerPreCaptureReport?(callback: (error: PluginOnErrorCallbackErrorInfo) => void): void;
7988
+ PluginShape?: void;
7989
+ initBehaviorListener?(addBehavior: AddBehavior, config: BehaviorConfig): void;
7990
+ reportAPI?(config: RequestHookConfig, callback: (options: APICallbackOptions) => void): void;
7991
+ }
7992
+
8113
7993
  /**
8114
7994
  * @description 政策信息,例如隐私链接,免责声明等
8115
7995
  */
@@ -10001,24 +9881,6 @@ TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ?
10001
9881
 
10002
9882
  declare type Pseudos = AdvancedPseudos | SimplePseudos;
10003
9883
 
10004
- /**
10005
- * @description QR code configuration for code form view
10006
- */
10007
- declare interface QrCodeConfig {
10008
- /**
10009
- * @description QR code render style, e.g. "rounded"
10010
- */
10011
- renderStyle?: string;
10012
- /**
10013
- * @description QR code center icon, can be URL or Base64 format
10014
- */
10015
- centerIcon?: string;
10016
- /**
10017
- * @description QR code corner icon, can be URL or Base64 format
10018
- */
10019
- cornerIcon?: string;
10020
- }
10021
-
10022
9884
  declare interface Rate {
10023
9885
  /**
10024
9886
  * @description rate label value
@@ -10088,35 +9950,66 @@ declare class ReceivePort {
10088
9950
  }): Promise<Record<string, any> | undefined>;
10089
9951
  }
10090
9952
 
10091
- /**
10092
- * @description 从webapp重定向到新URL的配置项。
10093
- * 支持浏览器重定向、app link唤端及schema唤端。
10094
- */
10095
9953
  declare interface RedirectOption {
10096
- /**
10097
- * @description 浏览器重定向到兜底的url,通常在唤端失败时会走这个,或者你不需要唤端,只需要跳转到某个url
10098
- */
10099
9954
  url: string;
10100
- /**
10101
- * @description 唤端到url地址,http或https的地址
10102
- */
10103
- appLinkUrl?: string;
10104
- /**
10105
- * @description 唤端到schema地址, schema://的地址
10106
- */
10107
- schemaUrl?: string;
10108
- /**
10109
- * @description 重定向模式,默认为redirect
10110
- */
10111
9955
  mode?: 'redirect' | 'replace';
10112
9956
  /**
10113
9957
  * @description 是否重定向后销毁实例,默认为true
10114
9958
  */
10115
- destroy?: boolean;
9959
+ destory?: boolean;
10116
9960
  }
10117
9961
 
9962
+ declare type ReportData = {
9963
+ title?: string;
9964
+ msg?: string | Error | Record<string, number | string> | Event;
9965
+ logType: 'error' | 'info';
9966
+ extra?: Record<string, number | boolean | string | undefined | Error | null>;
9967
+ } | ({
9968
+ logType: 'custom';
9969
+ } & LogItem);
9970
+
10118
9971
  declare type RequestEnv = 'local' | 'dev' | 'sit' | 'pre' | 'prod' | 'sandbox' | 'light_sandbox';
10119
9972
 
9973
+ declare class RequesterCacheWrapper {
9974
+ private autoReportConfig;
9975
+ private dataCache;
9976
+ private lastSendTime;
9977
+ private batchCount;
9978
+ private sendFrequency;
9979
+ constructor(autoReportConfig: {
9980
+ immediate?: boolean;
9981
+ deviceId?: Promise<string>;
9982
+ isReport?: boolean;
9983
+ programVersion?: string;
9984
+ productId?: string;
9985
+ appId?: string;
9986
+ compatibleAppId?: string;
9987
+ bizType?: string;
9988
+ });
9989
+ report(options: ReportData & {
9990
+ request: GetRequesterResult;
9991
+ extraDataFilter?: (data: Record<string, any>) => Promise<Record<string, any>>;
9992
+ dataFilter?: (data: string[]) => Promise<string[]>;
9993
+ } & BaseInfo & {
9994
+ immediate?: boolean;
9995
+ }): Promise<void>;
9996
+ private send;
9997
+ /**
9998
+ * 分批发送请求
9999
+ */
10000
+ private httpRequest;
10001
+ private sendBatch;
10002
+ }
10003
+
10004
+ declare type RequestHookConfig = {
10005
+ /**
10006
+ * @description 不上报的域名
10007
+ */
10008
+ excludes?: Array<string | RegExp>;
10009
+ getFetchResponseInfo?: (headers: Headers, responseData: Record<string, any>, requestParam: Array<any>) => ResponseInfo;
10010
+ getXHRResponseInfo?: (response: XHRResponse) => ResponseInfo;
10011
+ };
10012
+
10120
10013
  declare interface RequestOptions {
10121
10014
  env?: RequestEnv;
10122
10015
  baseURL?: string;
@@ -10141,6 +10034,15 @@ declare interface RequestOptions {
10141
10034
  scope?: string;
10142
10035
  }
10143
10036
 
10037
+ declare type ResponseInfo = {
10038
+ responseUrl?: string;
10039
+ traceId?: string;
10040
+ isSuccess?: boolean;
10041
+ errorCode?: string | number;
10042
+ errorMsg?: string;
10043
+ url?: string;
10044
+ };
10045
+
10144
10046
  /**
10145
10047
  * @description 国际支付标准结果码,参考主站<code>ErrorCode</code>实现。
10146
10048
  *
@@ -10285,25 +10187,7 @@ declare interface SharePayInfo {
10285
10187
  securityText?: string;
10286
10188
  }
10287
10189
 
10288
- export declare interface ShippingInfo {
10289
- shippingName: {
10290
- firstName: string;
10291
- lastName: string;
10292
- middleName?: string;
10293
- fullName?: string;
10294
- };
10295
- shippingPhoneNo: string;
10296
- shippingAddress: {
10297
- region: string;
10298
- address1: string;
10299
- address2: string;
10300
- city?: string;
10301
- state?: string;
10302
- zipCode: string;
10303
- };
10304
- }
10305
-
10306
- declare interface ShippingInfo_2 {
10190
+ declare interface ShippingInfo {
10307
10191
  /**
10308
10192
  * @description The unique ID to identify the shipping info
10309
10193
  */
@@ -10515,6 +10399,14 @@ declare type SimplePseudos =
10515
10399
  | ":volume-locked"
10516
10400
  | ":xr-overlay";
10517
10401
 
10402
+ declare interface SpmConfig {
10403
+ spmAPos: string;
10404
+ bizType: string;
10405
+ pages?: Record<string, Record<string, string>>;
10406
+ mdata?: Record<string, number | string | boolean>;
10407
+ immediate?: boolean;
10408
+ }
10409
+
10518
10410
  declare interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
10519
10411
  /**
10520
10412
  * This feature is not Baseline because it does not work in some of the most widely-used browsers.
@@ -24213,14 +24105,14 @@ declare interface StandardShorthandPropertiesHyphen<TLength = (string & {}) | 0,
24213
24105
 
24214
24106
  declare type StandardShorthandPropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<StandardShorthandPropertiesHyphen<TLength, TTime>>;
24215
24107
 
24216
- export declare type SubmitParams = {
24217
- redirect?: 'always' | 'if_required';
24218
- };
24219
-
24220
24108
  /**
24221
- * @description 成功时的数据类型
24109
+ * @description 成功时的data数据类型
24222
24110
  */
24223
24111
  export declare type SubmitResult = {
24112
+ /**
24113
+ * 查询到的状态
24114
+ */
24115
+ status: 'SUCCESS' | 'CANCELLED' | 'FAIL' | 'PROCESSING';
24224
24116
  /**
24225
24117
  * 查询到的结果码或者错误码, 在SUCCESS无该字段
24226
24118
  * @deprecated 已废弃请读取error中的code
@@ -24233,10 +24125,6 @@ export declare type SubmitResult = {
24233
24125
  * @internal
24234
24126
  */
24235
24127
  message?: string;
24236
- /**
24237
- * 查询到的状态
24238
- */
24239
- status: 'SUCCESS' | 'CANCELLED' | 'FAIL' | 'PROCESSING';
24240
24128
  /**
24241
24129
  * @description 对结果的详细结果码和结果信息,在status为SUCCESS时无该字段
24242
24130
  */
@@ -24249,10 +24137,6 @@ export declare type SubmitResult = {
24249
24137
  * 查询到的结果消息
24250
24138
  */
24251
24139
  message?: string;
24252
- /**
24253
- * @description 是否需要更换 session 重试
24254
- */
24255
- needChangeSessionForRetry?: boolean;
24256
24140
  };
24257
24141
  /**
24258
24142
  * 是否是用户手动取消3D
@@ -24711,15 +24595,256 @@ declare interface TerminalTypeAction {
24711
24595
  interactionType?: string;
24712
24596
  }
24713
24597
 
24714
- /**
24715
- * 主题色映射表 — 将 AntomTheme 映射到 loading 阶段的明暗模式和背景色。
24716
- * 被 antom.ts(老架构入口)和 modernElementController(新架构入口)共用,
24717
- * 确保两条路径的弹窗 loading 表现一致。
24718
- */
24719
- export declare const themeColorMap: Record<AntomTheme, {
24720
- theme: 'dark' | 'light';
24721
- backgroundColor: string;
24722
- }>;
24598
+ declare class Tracker {
24599
+ protected requesterCacheWrapper?: RequesterCacheWrapper;
24600
+ private initPromise;
24601
+ private spmInfo;
24602
+ private spmConfig?;
24603
+ private spmAPos?;
24604
+ private spmBPos?;
24605
+ private funnelAuto?;
24606
+ private userPathAuto?;
24607
+ private cachePath;
24608
+ private userPathLength;
24609
+ private pathUserMeta;
24610
+ private isMarmot;
24611
+ protected appId?: string;
24612
+ protected compatibleAppId?: string;
24613
+ private plugin;
24614
+ private sprintId?;
24615
+ private userId;
24616
+ protected deviceId?: Promise<string>;
24617
+ protected programVersion?: string;
24618
+ private language?;
24619
+ protected bizType?: string;
24620
+ protected productId?: string;
24621
+ private whiteScreenConfig?;
24622
+ private performance?;
24623
+ protected isReport?: boolean;
24624
+ protected server?: string;
24625
+ protected servers?: string[];
24626
+ protected platform?: string;
24627
+ private env?;
24628
+ private immediate?;
24629
+ enableScreenshot: boolean | undefined | {
24630
+ rate: number;
24631
+ };
24632
+ private enableResourceAnalysis?;
24633
+ private _lag?;
24634
+ private spmCheckCover?;
24635
+ private enableBehavior?;
24636
+ private behavior?;
24637
+ private enableRequestHook?;
24638
+ private enableJSAPIReport?;
24639
+ private customizedPerformanceMark?;
24640
+ constructor(Plugin: new (context: PluginContext) => PluginShape);
24641
+ init(options: TrackerInitOptions): Promise<boolean>;
24642
+ /**
24643
+ * 业务侧可以拦截发送日志的请求,用于手动过滤
24644
+ * 当前仅对浏览器环境生效
24645
+ * rawData 是 intl-tracker 内部格式的数据,为对象
24646
+ * data 是最终发送到服务端的数据,为字符串形式
24647
+ */
24648
+ onSendData(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
24649
+ /**
24650
+ * 业务侧可以取消拦截发送日志的请求
24651
+ * 当前仅对浏览器环境生效
24652
+ */
24653
+ offSendData(callback: (rawData: ReportData & BaseInfo, data: string) => boolean): void;
24654
+ private startReportSnapshot;
24655
+ /**
24656
+ * 用于上报自定义性能指标,单次仅上报一个指标
24657
+ * @param key m1 - m20
24658
+ * @param num 耗时,数字,一定要 >= 0,否则无统计意义
24659
+ */
24660
+ reportCustomizedPerformance(key: CustomizedPerformanceKey, num: number): void | undefined;
24661
+ /**
24662
+ * 上报自定义性能指标
24663
+ * @param data 适合单次合并上报多个指标的场景
24664
+ * 请注意,使用 reportCustomizedPerformance 上报时,每次上报会发送一次日志请求
24665
+ * 不同阶段的数据量会有差异,这些差异可以作为页面流失漏斗的数据源
24666
+ * 但合并上报时,同时上报的多个指标数量是相同的
24667
+ */
24668
+ reportCustomizedPerformanceData(data: Partial<Record<CustomizedPerformanceKey, number>>): void | undefined;
24669
+ /**
24670
+ * 用于显式上报小程序性能指标
24671
+ * 由于小程序的性能指标仅在“使用 schema 打开页面”时有效,原来的自动上报未区分场景,会导致脏数据较多
24672
+ * 改为数据自动采集、仅在必要时由业务方手动调用接口上报
24673
+ */
24674
+ reportMiniProgramPerformance(): Promise<void> | undefined;
24675
+ getMiniProgramPerformanceData(): Promise<{
24676
+ s1: number;
24677
+ s2: number;
24678
+ s3: number;
24679
+ s4: number;
24680
+ s5: number;
24681
+ s6: number;
24682
+ s7: number;
24683
+ s8: number;
24684
+ } | undefined> | undefined;
24685
+ /**
24686
+ * 用于显式上报网页性能指标,一般用不上
24687
+ * 1. tracker.onPageLoad() 会自动上报
24688
+ * 2. tracker.reportCustomizedPerformanceData() 会自动上报
24689
+ * 3. tracker.reportCustomizedPerformance() 会自动上报
24690
+ * 4. tracker.reportMiniProgramPerformance() 会自动上报
24691
+ * 5. 以上方法仅会上报一次网页性能指标,多次调用不受影响
24692
+ * 6. 仅当以上所有方法均未调用时,才需要手动调用此方法
24693
+ */
24694
+ reportPagePerformance(): Promise<void> | undefined;
24695
+ private handleReportSnapShot;
24696
+ get lag(): {
24697
+ log: (msg: string) => Promise<void>;
24698
+ fps: () => Promise<void>;
24699
+ };
24700
+ onPageLoad(options?: string | {
24701
+ title?: string;
24702
+ fmpIgnoreElements?: string[];
24703
+ }): Promise<void>;
24704
+ reportPerformance(title?: string): void;
24705
+ reportDetailPerformance(): void;
24706
+ onError(): Promise<(() => void) | undefined>;
24707
+ fmp(time: number): void;
24708
+ flushBehavior(): void;
24709
+ /**
24710
+ * 内部使用
24711
+ *
24712
+ * @param error
24713
+ */
24714
+ private reportError;
24715
+ private triggerPreCaptureReport;
24716
+ onHTTPError(): Promise<void>;
24717
+ private reportAPI;
24718
+ /**
24719
+ * 内部使用,业务项目不要调用
24720
+ *
24721
+ * @param options
24722
+ */
24723
+ reportHTTPError(options: HTTPErrorCallbackOptions): void;
24724
+ set(options: Record<string, any>): void;
24725
+ log(item: LogItem): void;
24726
+ /**
24727
+ * @deprecated Compatible with old APIs. Use `Tracker#log` instead.
24728
+ * @param info
24729
+ * @param extra
24730
+ */
24731
+ logInfo(info: LogInfo, extra?: Record<string, number | boolean | string>): Promise<void>;
24732
+ /**
24733
+ * @deprecated Compatible with old APIs. Use `Tracker#log` instead.
24734
+ * @param info
24735
+ * @param extra
24736
+ */
24737
+ logError(info: LogInfo, extra?: Record<string, number | boolean | string>): Promise<void>;
24738
+ reportFunnel(title: string, config?: {
24739
+ [prop: string]: string | number;
24740
+ name: string;
24741
+ level: number;
24742
+ label: string;
24743
+ } | undefined): Promise<void>;
24744
+ reportRPC(rpcInfo: {
24745
+ name: string;
24746
+ label: string;
24747
+ code?: string | undefined;
24748
+ msg?: string | Error | Record<string, string | number> | undefined;
24749
+ success?: boolean | undefined;
24750
+ result?: number | undefined;
24751
+ traceId?: string | undefined;
24752
+ httpStatus?: string | undefined;
24753
+ time?: number | undefined;
24754
+ }): void;
24755
+ logJSBridgeError(info: LogInfo): void;
24756
+ pageMonitor(page: string, extraParams?: Record<string, any>, autoPv?: boolean): void;
24757
+ expo(code: string, extra?: Record<string, string | number | boolean> | undefined): void;
24758
+ click(code: string, extra?: Record<string, string | number | boolean>): void;
24759
+ pv(): void;
24760
+ /**
24761
+ * 指定点位白屏的监控 - 用于监控目标点位的白屏
24762
+ * 页面白屏和目标点位白屏的通用监控逻辑
24763
+ *
24764
+ * @param selector 目标点位选择器
24765
+ * @param options 配置项
24766
+ * {
24767
+ * 检测延时,单位 second,即启动白屏检测后多久开始执行白屏识别
24768
+ * NOTE: 设置时间时要考虑业务平均加载时间,太短可能会误报
24769
+ * delay
24770
+ *
24771
+ * 是否持续监测, 即初始化白屏检测结束之后是否继续监控业务运行中白屏, default: true
24772
+ * persistent
24773
+ * }
24774
+ */
24775
+ startCheckingDOMWhiteScreen(selector: string, options: Omit<BlankMonitorConfig, 'selector'>): void;
24776
+ private getRequester;
24777
+ protected getDefaultExtraInfo(): Promise<BaseInfo>;
24778
+ private request;
24779
+ private formatExtra;
24780
+ private reportLog;
24781
+ /**
24782
+ * 解析成功率上报参数
24783
+ * @param key p_ page c_ click expo r l -info或者-error结尾是前端日志
24784
+ * @param funnelConfig 标准漏斗上报参数
24785
+ * @returns 扩展参数数据
24786
+ */
24787
+ private parseUserPathExtra;
24788
+ /**
24789
+ * 获取成功率上报参数
24790
+ * 用于去冲
24791
+ */
24792
+ private getUserPathExtra;
24793
+ /**
24794
+ * 恢复存储的用户路径
24795
+ */
24796
+ private reStoreUserPath;
24797
+ private reStoreUserPathMeta;
24798
+ private reStoreSessionId;
24799
+ /**
24800
+ * 重置session id
24801
+ */
24802
+ resetSessionId(): void;
24803
+ /**
24804
+ * 重置用户路径
24805
+ */
24806
+ resetUserPath(): void;
24807
+ private normalizeServer;
24808
+ private normalizeServers;
24809
+ }
24810
+
24811
+ declare interface TrackerInitOptions {
24812
+ spmConfig?: SpmConfig;
24813
+ marmotId: string;
24814
+ compatibleAppId?: string;
24815
+ userId?: string;
24816
+ server?: IMDAP_SERVER | string;
24817
+ servers?: (IMDAP_SERVER | string)[];
24818
+ env?: Env_2;
24819
+ sprintId?: string;
24820
+ whiteScreen?: BlankMonitorConfig | boolean;
24821
+ immediate?: boolean;
24822
+ autoExpo?: boolean;
24823
+ autoClick?: boolean;
24824
+ expoOnce?: boolean;
24825
+ enableScreenshot?: boolean | {
24826
+ rate: number;
24827
+ };
24828
+ enableResourceAnalysis?: boolean;
24829
+ spmCheckCover?: string;
24830
+ enableBehavior?: BehaviorConfig | boolean;
24831
+ enableRequestHook?: RequestHookConfig | boolean;
24832
+ enableJSAPIReport?: boolean;
24833
+ /**
24834
+ * 白名单配置源,仅浏览器环境支持
24835
+ * 不传值时,与旧版功能相同,所有日志都会发送
24836
+ * 1. 值为 REMOTE 时,表示从远程服务器获取白名单配置
24837
+ * 2. 值为 NONE 时,表示不使用白名单配置,所有日志都会发送
24838
+ */
24839
+ whiteListConfigSource?: WHITE_LIST_CONFIG_SOURCE;
24840
+ /**
24841
+ * 当且仅当 whiteListConfigSource 为 REMOTE 时有效
24842
+ * 在有效期内,不重复加载 json 请求
24843
+ */
24844
+ remoteConfigValidDuration?: number;
24845
+ productId?: string;
24846
+ bizType?: string;
24847
+ }
24723
24848
 
24724
24849
  /**
24725
24850
  * @description 交易信息
@@ -24814,8 +24939,7 @@ export declare type VaultingAppearance = PickAppearance<VaultingAppearanceProps>
24814
24939
  export declare type VaultingAppearanceProps = {
24815
24940
  displaySetting: 'showCardBrandIcon';
24816
24941
  theme: AntomTheme;
24817
- variables: AntomVariables;
24818
- fonts?: FontSource[];
24942
+ 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';
24819
24943
  };
24820
24944
 
24821
24945
  /**
@@ -24844,7 +24968,7 @@ export declare class VaultingElement extends BaseMainElement<VaultingElementConf
24844
24968
  declare interface VaultingElementConfig extends BaseElementConfig<VaultingAppConfig> {
24845
24969
  }
24846
24970
 
24847
- export declare interface VaultingElementEvents extends AntomBridgeWithNativeEventMap<VaultingAppConfig, VaultingSubmitParams> {
24971
+ export declare interface VaultingElementEvents extends AntomBridgeEventMap<VaultingAppConfig, VaultingSubmitParams> {
24848
24972
  }
24849
24973
 
24850
24974
  /**
@@ -28484,9 +28608,16 @@ declare interface VendorShorthandPropertiesHyphen<TLength = (string & {}) | 0, T
28484
28608
 
28485
28609
  declare type VendorShorthandPropertiesHyphenFallback<TLength = (string & {}) | 0, TTime = string & {}> = Fallback<VendorShorthandPropertiesHyphen<TLength, TTime>>;
28486
28610
 
28611
+ declare type WHITE_LIST_CONFIG_SOURCE = 'REMOTE' | 'NONE';
28612
+
28487
28613
  declare type WithAppURL<T> = T & {
28488
28614
  appUrl: string;
28489
28615
  isMainElement: boolean;
28490
28616
  };
28491
28617
 
28618
+ declare type XHRResponse = {
28619
+ headers: ReturnType<XMLHttpRequest['getAllResponseHeaders']>;
28620
+ body: XMLHttpRequest['response'];
28621
+ };
28622
+
28492
28623
  export { }