@circle-fin/w3s-pw-react-native-sdk 1.1.7 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/BARE_REACT_NATIVE_GUIDE.md +397 -0
  2. package/LICENSE +1 -1
  3. package/README.md +203 -90
  4. package/android/build.gradle +43 -126
  5. package/android/src/main/AndroidManifest.xml +12 -16
  6. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/ProgrammablewalletRnSdkModule.kt +414 -244
  7. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/PromiseCallback.kt +76 -74
  8. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/RecordsHelper.kt +602 -0
  9. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/models/Records.kt +43 -0
  10. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/pwcustom/RnImageSetter.kt +55 -33
  11. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/pwcustom/RnLayoutProvider.kt +81 -79
  12. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/pwcustom/RnViewSetterProvider.kt +93 -63
  13. package/app.json +8 -0
  14. package/build/ProgrammablewalletRnSdkModule.d.ts +44 -0
  15. package/build/ProgrammablewalletRnSdkModule.d.ts.map +1 -0
  16. package/build/ProgrammablewalletRnSdkModule.js +21 -0
  17. package/build/ProgrammablewalletRnSdkModule.js.map +1 -0
  18. package/build/WalletSdk.d.ts +20 -0
  19. package/build/WalletSdk.d.ts.map +1 -0
  20. package/build/WalletSdk.js +303 -0
  21. package/build/WalletSdk.js.map +1 -0
  22. package/build/bridgeSafe.d.ts +50 -0
  23. package/build/bridgeSafe.d.ts.map +1 -0
  24. package/build/bridgeSafe.js +136 -0
  25. package/build/bridgeSafe.js.map +1 -0
  26. package/build/index.d.ts +21 -0
  27. package/build/index.d.ts.map +1 -0
  28. package/build/index.js +21 -0
  29. package/build/index.js.map +1 -0
  30. package/{lib/typescript/src → build}/types.d.ts +72 -43
  31. package/build/types.d.ts.map +1 -0
  32. package/build/types.js +331 -0
  33. package/build/types.js.map +1 -0
  34. package/build/utils/securityQuestionUtils.d.ts +43 -0
  35. package/build/utils/securityQuestionUtils.d.ts.map +1 -0
  36. package/build/utils/securityQuestionUtils.js +109 -0
  37. package/build/utils/securityQuestionUtils.js.map +1 -0
  38. package/expo-module.config.json +11 -0
  39. package/ios/Array+Extension.swift +17 -15
  40. package/ios/BridgeHelper.swift +71 -92
  41. package/ios/{RnWalletSdk+CustomizeAdapter.swift → CustomizeAdapter.swift} +19 -29
  42. package/ios/ProgrammablewalletRnSdk.podspec +30 -0
  43. package/ios/ProgrammablewalletRnSdkModule.swift +384 -0
  44. package/ios/TextConfig.swift +17 -15
  45. package/ios/TextKey.swift +17 -15
  46. package/ios/UIApplication+Extension.swift +26 -17
  47. package/ios/UIColor+Extension.swift +34 -28
  48. package/ios/UITextField+Extension.swift +31 -0
  49. package/ios/UIView+Extension.swift +24 -17
  50. package/package.json +71 -116
  51. package/plugins/apple-signin-entitlements.js +16 -0
  52. package/plugins/infoplist-config.js +77 -0
  53. package/plugins/infoplist-config.md +72 -0
  54. package/plugins/podfile-modifier.js +84 -0
  55. package/plugins/podfile-modifier.md +33 -0
  56. package/plugins/withCopyFiles.js +148 -0
  57. package/plugins/withCopyFiles.md +81 -0
  58. package/src/ProgrammablewalletRnSdkModule.ts +68 -38
  59. package/src/WalletSdk.ts +297 -159
  60. package/src/bridgeSafe.ts +156 -0
  61. package/src/index.ts +21 -0
  62. package/src/types.ts +133 -110
  63. package/src/utils/securityQuestionUtils.ts +121 -0
  64. package/COPYRIGHT +0 -10
  65. package/android/gradle.properties +0 -21
  66. package/android/src/main/AndroidManifestNew.xml +0 -22
  67. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/BridgeHelper.kt +0 -399
  68. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/ProgrammablewalletRnSdkPackage.kt +0 -49
  69. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/PromiseCallback2.kt +0 -65
  70. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/PromiseLogoutCallback.kt +0 -47
  71. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/PromiseSocialCallback.kt +0 -53
  72. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/TestHelper.kt +0 -37
  73. package/android/src/main/java/com/circlefin/programmablewalletrnsdk/annotation/ExcludeFromGeneratedCCReport.kt +0 -33
  74. package/android/src/newarch/ProgrammablewalletRnSdkSpec.kt +0 -29
  75. package/android/src/oldarch/ProgrammablewalletRnSdkSpec.kt +0 -76
  76. package/circlefin-w3s-pw-react-native-sdk.podspec +0 -41
  77. package/ios/EventEmitter.swift +0 -49
  78. package/ios/ProgrammablewalletRnSdk.h +0 -29
  79. package/ios/ProgrammablewalletRnSdk.mm +0 -162
  80. package/ios/ReactNativeEventEmitter.m +0 -27
  81. package/ios/ReactNativeEventEmitter.swift +0 -37
  82. package/ios/RnWalletSdk.swift +0 -390
  83. package/ios/programmablewallet-rn-sdk-Bridging-Header.h +0 -22
  84. package/lib/commonjs/NativeProgrammablewalletRnSdk.js +0 -24
  85. package/lib/commonjs/NativeProgrammablewalletRnSdk.js.map +0 -1
  86. package/lib/commonjs/ProgrammablewalletRnSdkModule.js +0 -38
  87. package/lib/commonjs/ProgrammablewalletRnSdkModule.js.map +0 -1
  88. package/lib/commonjs/WalletSdk.js +0 -211
  89. package/lib/commonjs/WalletSdk.js.map +0 -1
  90. package/lib/commonjs/index.js +0 -74
  91. package/lib/commonjs/index.js.map +0 -1
  92. package/lib/commonjs/types.js +0 -342
  93. package/lib/commonjs/types.js.map +0 -1
  94. package/lib/module/NativeProgrammablewalletRnSdk.js +0 -19
  95. package/lib/module/NativeProgrammablewalletRnSdk.js.map +0 -1
  96. package/lib/module/ProgrammablewalletRnSdkModule.js +0 -31
  97. package/lib/module/ProgrammablewalletRnSdkModule.js.map +0 -1
  98. package/lib/module/WalletSdk.js +0 -203
  99. package/lib/module/WalletSdk.js.map +0 -1
  100. package/lib/module/index.js +0 -18
  101. package/lib/module/index.js.map +0 -1
  102. package/lib/module/types.js +0 -334
  103. package/lib/module/types.js.map +0 -1
  104. package/lib/typescript/src/NativeProgrammablewalletRnSdk.d.ts +0 -28
  105. package/lib/typescript/src/NativeProgrammablewalletRnSdk.d.ts.map +0 -1
  106. package/lib/typescript/src/ProgrammablewalletRnSdkModule.d.ts +0 -3
  107. package/lib/typescript/src/ProgrammablewalletRnSdkModule.d.ts.map +0 -1
  108. package/lib/typescript/src/WalletSdk.d.ts +0 -3
  109. package/lib/typescript/src/WalletSdk.d.ts.map +0 -1
  110. package/lib/typescript/src/index.d.ts +0 -4
  111. package/lib/typescript/src/index.d.ts.map +0 -1
  112. package/lib/typescript/src/types.d.ts.map +0 -1
  113. package/src/NativeProgrammablewalletRnSdk.ts +0 -77
  114. package/src/index.tsx +0 -29
@@ -1,17 +1,47 @@
1
- import type { ImageSourcePropType } from 'react-native/Libraries/Image/Image';
1
+ /**
2
+ * Copyright 2025 Circle Internet Group, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ import { ImageSourcePropType } from 'react-native';
19
+ export type ProgrammablewalletRnSdkModuleEvents = {
20
+ CirclePwOnEvent: (params: CirclePwEventPayload) => void;
21
+ CirclePwOnSuccess: (params: CirclePwSuccessPayload) => void;
22
+ CirclePwOnError: (params: CirclePwErrorPayload) => void;
23
+ };
24
+ export declare const CIRCLE_PW_ON_EVENT = "CirclePwOnEvent";
25
+ export type CirclePwEventPayload = {
26
+ name: ExecuteEvent;
27
+ };
28
+ export type CirclePwSuccessPayload = {
29
+ [key: string]: SuccessResult;
30
+ };
31
+ export type CirclePwErrorPayload = {
32
+ [key: string]: unknown;
33
+ };
2
34
  export interface IWalletSdk {
3
35
  sdkVersion: SdkVersion;
4
36
  deviceId: string;
37
+ getDeviceId: () => string;
5
38
  init: (configuration: Configuration) => Promise<void>;
6
39
  setSecurityQuestions: (securityQuestions: SecurityQuestion[]) => void;
7
- addListener: (listener: EventListener) => void;
8
- removeAllListeners: () => void;
9
- getDeviceId: () => string;
10
40
  execute: (userToken: string, encryptionKey: string, challengeIds: string[], successCallback: SuccessCallback, errorCallback: ErrorCallback) => void;
11
- setBiometricsPin: (userToken: string, encryptionKey: string, successCallback: SuccessCallback, errorCallback: ErrorCallback) => void;
12
- performLogin: (provider: SocialProvider, deviceToken: string, deviceEncryptionKey: string, successCallback: LoginSuccessCallback, errorCallback: ErrorCallback) => void;
13
41
  verifyOTP: (otpToken: string, deviceToken: string, deviceEncryptionKey: string, successCallback: LoginSuccessCallback, errorCallback: ErrorCallback) => void;
14
- performLogout: (provider: SocialProvider, completeCallback: CompleteCallback, errorCallback: ErrorCallback) => void;
42
+ performLogin: (provider: SocialProvider, deviceToken: string, deviceEncryptionKey: string, successCallback: LoginSuccessCallback, errorCallback: ErrorCallback) => void;
43
+ performLogout: (provider: SocialProvider, completedCallback: CompletedCallback, errorCallback: ErrorCallback) => void;
44
+ setBiometricsPin: (userToken: string, encryptionKey: string, successCallback: SuccessCallback, errorCallback: ErrorCallback) => void;
15
45
  setDismissOnCallbackMap: (map: Map<ErrorCode, boolean>) => void;
16
46
  moveTaskToFront: () => void;
17
47
  moveRnTaskToFront: () => void;
@@ -24,6 +54,23 @@ export interface IWalletSdk {
24
54
  setCustomUserAgent: (userAgent: string) => void;
25
55
  setErrorStringMap: (map: Map<ErrorCode, string>) => void;
26
56
  }
57
+ export interface SdkVersion {
58
+ native: string;
59
+ rn?: string;
60
+ }
61
+ export interface Configuration {
62
+ endpoint: string;
63
+ appId: string;
64
+ settingsManagement?: SettingsManagement;
65
+ }
66
+ export interface SettingsManagement {
67
+ enableBiometricsPin: boolean;
68
+ }
69
+ export declare class SecurityQuestion {
70
+ title: string;
71
+ inputType?: InputType;
72
+ constructor(title: string, inputType?: InputType);
73
+ }
27
74
  export declare enum TextsKey {
28
75
  newPinCodeHeadline = "newPinCodeHeadline",
29
76
  enterPinCodeHeadline = "enterPinCodeHeadline",
@@ -259,25 +306,10 @@ export declare enum ErrorCode {
259
306
  socialLoginFailed = "155720",
260
307
  loginInfoMissing = "155721"
261
308
  }
262
- export declare class SecurityQuestion {
263
- title: string;
264
- inputType?: InputType;
265
- constructor(title: string, inputType?: InputType);
266
- }
267
- export interface Configuration {
268
- endpoint: string;
269
- appId: string;
270
- settingsManagement?: SettingsManagement;
271
- }
272
- export type EventListener = (event: ExecuteEvent) => void;
273
309
  export type SuccessCallback = (result: SuccessResult) => void;
274
310
  export type LoginSuccessCallback = (result: LoginResult) => void;
275
- export type CompleteCallback = () => void;
311
+ export type CompletedCallback = () => void;
276
312
  export type ErrorCallback = (error: Error) => void;
277
- export interface SdkVersion {
278
- native: string;
279
- rn?: string;
280
- }
281
313
  export interface SuccessResult {
282
314
  result: ExecuteResult;
283
315
  warning?: ExecuteWarning;
@@ -286,23 +318,6 @@ export interface Error {
286
318
  code?: string;
287
319
  message: string;
288
320
  }
289
- export interface LoginResult {
290
- userToken?: string;
291
- encryptionKey?: string;
292
- refreshToken?: string;
293
- oauthInfo?: OauthInfo;
294
- }
295
- export interface OauthInfo {
296
- provider?: string;
297
- scope?: string[];
298
- socialUserUUID?: string;
299
- socialUserInfo?: SocialUserInfo;
300
- }
301
- export interface SocialUserInfo {
302
- name?: string;
303
- email?: string;
304
- phone?: string;
305
- }
306
321
  export interface ExecuteResult {
307
322
  resultType: ExecuteResultType;
308
323
  status: ExecuteResultStatus;
@@ -317,9 +332,6 @@ export interface ExecuteResultData {
317
332
  signedTransaction?: string;
318
333
  txHash?: string;
319
334
  }
320
- export interface SettingsManagement {
321
- enableBiometricsPin: boolean;
322
- }
323
335
  export declare class IconTextConfig {
324
336
  image: ImageSourcePropType;
325
337
  textConfig: TextConfig;
@@ -369,4 +381,21 @@ export declare enum SocialProvider {
369
381
  Facebook = "Facebook",
370
382
  Apple = "Apple"
371
383
  }
384
+ export interface LoginResult {
385
+ userToken?: string;
386
+ encryptionKey?: string;
387
+ refreshToken?: string;
388
+ oauthInfo?: OauthInfo;
389
+ }
390
+ export interface OauthInfo {
391
+ provider?: string;
392
+ scope?: string[];
393
+ socialUserUUID?: string;
394
+ socialUserInfo?: SocialUserInfo;
395
+ }
396
+ export interface SocialUserInfo {
397
+ name?: string;
398
+ email?: string;
399
+ phone?: string;
400
+ }
372
401
  //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAElD,MAAM,MAAM,mCAAmC,GAAG;IAChD,eAAe,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACvD,iBAAiB,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAA;IAC3D,eAAe,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;CACxD,CAAA;AAED,eAAO,MAAM,kBAAkB,oBAAoB,CAAA;AAEnD,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,YAAY,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB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SecurityQuestion {
3
+ title;
4
+ inputType;
5
+ constructor(title, inputType) {
6
+ this.title = title;
7
+ this.inputType = inputType;
8
+ }
9
+ }
10
+ export var TextsKey;
11
+ (function (TextsKey) {
12
+ TextsKey["newPinCodeHeadline"] = "newPinCodeHeadline";
13
+ TextsKey["enterPinCodeHeadline"] = "enterPinCodeHeadline";
14
+ TextsKey["securityIntroHeadline"] = "securityIntroHeadline";
15
+ TextsKey["securityIntroLink"] = "securityIntroLink";
16
+ TextsKey["securityQuestionHeaders"] = "securityQuestionHeaders";
17
+ TextsKey["securitySummaryQuestionHeaders"] = "securitySummaryQuestionHeaders";
18
+ TextsKey["recoverPinCodeHeadline"] = "recoverPinCodeHeadline";
19
+ })(TextsKey || (TextsKey = {}));
20
+ export var IconTextsKey;
21
+ (function (IconTextsKey) {
22
+ IconTextsKey["securityConfirmationItems"] = "securityConfirmationItems";
23
+ })(IconTextsKey || (IconTextsKey = {}));
24
+ export var TextKey;
25
+ (function (TextKey) {
26
+ TextKey["circlepw_continue"] = "circlepw_continue";
27
+ TextKey["circlepw_next"] = "circlepw_next";
28
+ TextKey["circlepw_skip"] = "circlepw_skip";
29
+ TextKey["circlepw_question_label"] = "circlepw_question_label";
30
+ TextKey["circlepw_answer_label"] = "circlepw_answer_label";
31
+ TextKey["circlepw_hint_label"] = "circlepw_hint_label";
32
+ TextKey["circlepw_hint_tag"] = "circlepw_hint_tag";
33
+ TextKey["circlepw_confirm"] = "circlepw_confirm";
34
+ TextKey["circlepw_pin_remain_attemps_template"] = "circlepw_pin_remain_attemps_template";
35
+ TextKey["circlepw_pin_lock_period_template"] = "circlepw_pin_lock_period_template";
36
+ TextKey["circlepw_answer_remain_attemps_template"] = "circlepw_answer_remain_attemps_template";
37
+ TextKey["circlepw_answer_lock_period_template"] = "circlepw_answer_lock_period_template";
38
+ TextKey["circlepw_pin_digit_config"] = "circlepw_pin_digit_config";
39
+ TextKey["circlepw_pincode_error_config"] = "circlepw_pincode_error_config";
40
+ TextKey["circlepw_enter_pincode_subhead"] = "circlepw_enter_pincode_subhead";
41
+ TextKey["circlepw_enter_pincode_forgot_pin"] = "circlepw_enter_pincode_forgot_pin";
42
+ TextKey["circlepw_enter_pincode_use_biometrics"] = "circlepw_enter_pincode_use_biometrics";
43
+ TextKey["circlepw_new_pincode_subhead"] = "circlepw_new_pincode_subhead";
44
+ TextKey["circlepw_confirm_pincode_headline"] = "circlepw_confirm_pincode_headline";
45
+ TextKey["circlepw_confirm_pincode_subhead"] = "circlepw_confirm_pincode_subhead";
46
+ TextKey["circlepw_security_intros_description"] = "circlepw_security_intros_description";
47
+ TextKey["circlepw_security_questions_title"] = "circlepw_security_questions_title";
48
+ TextKey["circlepw_security_questions_required_mark"] = "circlepw_security_questions_required_mark";
49
+ TextKey["circlepw_security_questions_question_placeholder"] = "circlepw_security_questions_question_placeholder";
50
+ TextKey["circlepw_security_questions_answer_header"] = "circlepw_security_questions_answer_header";
51
+ TextKey["circlepw_security_questions_answer_placeholder"] = "circlepw_security_questions_answer_placeholder";
52
+ TextKey["circlepw_security_questions_answer_hint_header"] = "circlepw_security_questions_answer_hint_header";
53
+ TextKey["circlepw_security_questions_answer_hint_placeholder"] = "circlepw_security_questions_answer_hint_placeholder";
54
+ TextKey["circlepw_security_questions_answer_input_config"] = "circlepw_security_questions_answer_input_config";
55
+ TextKey["circlepw_security_questions_answer_hint_input_config"] = "circlepw_security_questions_answer_hint_input_config";
56
+ TextKey["circlepw_security_questions_question_input_config"] = "circlepw_security_questions_question_input_config";
57
+ TextKey["circlepw_security_questions_error_config"] = "circlepw_security_questions_error_config";
58
+ // SelectQuestion
59
+ TextKey["circlepw_select_question_title"] = "circlepw_select_question_title";
60
+ TextKey["circlepw_select_question_item_config"] = "circlepw_select_question_item_config";
61
+ // SecuritySummary
62
+ TextKey["circlepw_security_summary_title"] = "circlepw_security_summary_title";
63
+ TextKey["circlepw_security_summary_question_value_config"] = "circlepw_security_summary_question_value_config";
64
+ TextKey["circlepw_security_summary_answer_value_config"] = "circlepw_security_summary_answer_value_config";
65
+ TextKey["circlepw_security_summary_hint_value_config"] = "circlepw_security_summary_hint_value_config";
66
+ // SecurityConfirm
67
+ TextKey["circlepw_security_confirm_title"] = "circlepw_security_confirm_title";
68
+ TextKey["circlepw_security_confirm_headline"] = "circlepw_security_confirm_headline";
69
+ TextKey["circlepw_security_confirm_input_headline"] = "circlepw_security_confirm_input_headline";
70
+ TextKey["circlepw_security_confirm_input_config"] = "circlepw_security_confirm_input_config";
71
+ TextKey["circlepw_security_confirm_input_placeholder"] = "circlepw_security_confirm_input_placeholder";
72
+ TextKey["circlepw_security_confirm_input_match"] = "circlepw_security_confirm_input_match";
73
+ // RecoverPINCode
74
+ TextKey["circlepw_recover_pincode_answer_input_header"] = "circlepw_recover_pincode_answer_input_header";
75
+ TextKey["circlepw_recover_pincode_answer_input_placeholder"] = "circlepw_recover_pincode_answer_input_placeholder";
76
+ TextKey["circlepw_recover_pincode_input_config"] = "circlepw_recover_pincode_input_config";
77
+ TextKey["circlepw_recover_pincode_answer_hint_config"] = "circlepw_recover_pincode_answer_hint_config";
78
+ TextKey["circlepw_recover_pincode_error_config"] = "circlepw_recover_pincode_error_config";
79
+ TextKey["circlepw_recover_pincode_question_config"] = "circlepw_recover_pincode_question_config";
80
+ // BiometricsAllow
81
+ TextKey["circlepw_pin_biometrics_allow_title"] = "circlepw_pin_biometrics_allow_title";
82
+ TextKey["circlepw_pin_biometrics_allow_subtitle"] = "circlepw_pin_biometrics_allow_subtitle";
83
+ TextKey["circlepw_pin_biometrics_disable"] = "circlepw_pin_biometrics_disable";
84
+ TextKey["circlepw_pin_biometrics_encrypt_title"] = "circlepw_pin_biometrics_encrypt_title";
85
+ TextKey["circlepw_pin_biometrics_encrypt_subtitle"] = "circlepw_pin_biometrics_encrypt_subtitle";
86
+ TextKey["circlepw_pin_biometrics_encrypt_desc"] = "circlepw_pin_biometrics_encrypt_desc";
87
+ TextKey["circlepw_pin_biometrics_encrypt_negative_text"] = "circlepw_pin_biometrics_encrypt_negative_text";
88
+ TextKey["circlepw_pin_biometrics_decrypt_title"] = "circlepw_pin_biometrics_decrypt_title";
89
+ TextKey["circlepw_pin_biometrics_decrypt_subtitle"] = "circlepw_pin_biometrics_decrypt_subtitle";
90
+ TextKey["circlepw_pin_biometrics_decrypt_desc"] = "circlepw_pin_biometrics_decrypt_desc";
91
+ TextKey["circlepw_pin_biometrics_decrypt_negative_text"] = "circlepw_pin_biometrics_decrypt_negative_text";
92
+ TextKey["circlepw_pin_biometrics_update_title"] = "circlepw_pin_biometrics_update_title";
93
+ TextKey["circlepw_pin_biometrics_update_subtitle"] = "circlepw_pin_biometrics_update_subtitle";
94
+ TextKey["circlepw_alert_pop_window_title"] = "circlepw_alert_pop_window_title";
95
+ TextKey["circlepw_alert_pop_window_description_config"] = "circlepw_alert_pop_window_description_config";
96
+ TextKey["circlepw_alert_pop_window_confirm"] = "circlepw_alert_pop_window_confirm";
97
+ TextKey["circlepw_swipe_confirm_headline"] = "circlepw_swipe_confirm_headline";
98
+ TextKey["circlepw_swipe_confirm_subhead"] = "circlepw_swipe_confirm_subhead";
99
+ TextKey["circlepw_swipe_to_confirm"] = "circlepw_swipe_to_confirm";
100
+ TextKey["circlepw_swipe_bt_confirming"] = "circlepw_swipe_bt_confirming";
101
+ TextKey["circlepw_swipe_bt_confirmed"] = "circlepw_swipe_bt_confirmed";
102
+ TextKey["circlepw_swipe_bt_try_again"] = "circlepw_swipe_bt_try_again";
103
+ TextKey["circlepw_transaction_request_title"] = "circlepw_transaction_request_title";
104
+ TextKey["circlepw_transaction_request_subtitle"] = "circlepw_transaction_request_subtitle";
105
+ TextKey["circlepw_transaction_request_main_currency"] = "circlepw_transaction_request_main_currency";
106
+ TextKey["circlepw_transaction_request_exchange_value"] = "circlepw_transaction_request_exchange_value";
107
+ TextKey["circlepw_transaction_request_from_label"] = "circlepw_transaction_request_from_label";
108
+ TextKey["circlepw_transaction_request_from"] = "circlepw_transaction_request_from";
109
+ TextKey["circlepw_transaction_request_to_label"] = "circlepw_transaction_request_to_label";
110
+ TextKey["circlepw_transaction_request_to_config"] = "circlepw_transaction_request_to_config";
111
+ TextKey["circlepw_transaction_request_to_contract_name"] = "circlepw_transaction_request_to_contract_name";
112
+ TextKey["circlepw_transaction_request_to_contract_url"] = "circlepw_transaction_request_to_contract_url";
113
+ TextKey["circlepw_transaction_request_network_fee_label"] = "circlepw_transaction_request_network_fee_label";
114
+ TextKey["circlepw_transaction_request_network_fee"] = "circlepw_transaction_request_network_fee";
115
+ TextKey["circlepw_transaction_request_exchange_network_fee"] = "circlepw_transaction_request_exchange_network_fee";
116
+ TextKey["circlepw_transaction_request_total_label"] = "circlepw_transaction_request_total_label";
117
+ TextKey["circlepw_transaction_request_total_config"] = "circlepw_transaction_request_total_config";
118
+ TextKey["circlepw_transaction_request_exchange_total_value"] = "circlepw_transaction_request_exchange_total_value";
119
+ TextKey["circlepw_transaction_request_error_config"] = "circlepw_transaction_request_error_config";
120
+ TextKey["circlepw_transaction_request_fee_tip"] = "circlepw_transaction_request_fee_tip";
121
+ TextKey["circlepw_contract_interaction_contract_address_label"] = "circlepw_contract_interaction_contract_address_label";
122
+ TextKey["circlepw_contract_interaction_contract_address_config"] = "circlepw_contract_interaction_contract_address_config";
123
+ TextKey["circlepw_contract_interaction_data_details"] = "circlepw_contract_interaction_data_details";
124
+ TextKey["circlepw_contract_interaction_abi_function_label"] = "circlepw_contract_interaction_abi_function_label";
125
+ TextKey["circlepw_contract_interaction_abi_function_config"] = "circlepw_contract_interaction_abi_function_config";
126
+ TextKey["circlepw_contract_interaction_abi_parameter_label"] = "circlepw_contract_interaction_abi_parameter_label";
127
+ TextKey["circlepw_contract_interaction_call_data_label"] = "circlepw_contract_interaction_call_data_label";
128
+ TextKey["circlepw_contract_interaction_call_data_config"] = "circlepw_contract_interaction_call_data_config";
129
+ TextKey["circlepw_transaction_request_raw_tx_description"] = "circlepw_transaction_request_raw_tx_description";
130
+ TextKey["circlepw_transaction_request_raw_tx_config"] = "circlepw_transaction_request_raw_tx_config";
131
+ TextKey["circlepw_signature_request_title"] = "circlepw_signature_request_title";
132
+ TextKey["circlepw_signature_request_contract_name"] = "circlepw_signature_request_contract_name";
133
+ TextKey["circlepw_signature_request_contract_url"] = "circlepw_signature_request_contract_url";
134
+ TextKey["circlepw_signature_request_subtitle"] = "circlepw_signature_request_subtitle";
135
+ TextKey["circlepw_signature_request_description"] = "circlepw_signature_request_description";
136
+ TextKey["circlepw_signature_request_msg_config"] = "circlepw_signature_request_msg_config";
137
+ TextKey["circlepw_sign"] = "circlepw_sign";
138
+ TextKey["circlepw_try_again"] = "circlepw_try_again";
139
+ TextKey["circlepw_email_otp_title"] = "circlepw_email_otp_title";
140
+ TextKey["circlepw_email_otp_description"] = "circlepw_email_otp_description";
141
+ TextKey["circlepw_email_otp_email"] = "circlepw_email_otp_email";
142
+ TextKey["circlepw_email_otp_head_config"] = "circlepw_email_otp_head_config";
143
+ TextKey["circlepw_email_otp_dash"] = "circlepw_email_otp_dash";
144
+ TextKey["circlepw_email_otp_send_again_hint"] = "circlepw_email_otp_send_again_hint";
145
+ TextKey["circlepw_email_otp_send_again"] = "circlepw_email_otp_send_again";
146
+ })(TextKey || (TextKey = {}));
147
+ export var ImageKey;
148
+ (function (ImageKey) {
149
+ ImageKey["naviBack"] = "back";
150
+ ImageKey["naviClose"] = "close";
151
+ ImageKey["securityIntroMain"] = "securityIntroMain";
152
+ ImageKey["selectCheckMark"] = "selectCheckMark";
153
+ ImageKey["dropdownArrow"] = "dropdownArrow";
154
+ ImageKey["errorInfo"] = "errorInfo";
155
+ ImageKey["securityConfirmMain"] = "securityConfirmMain";
156
+ ImageKey["biometricsAllowMain"] = "biometricsAllowMain";
157
+ ImageKey["showPin"] = "showPin";
158
+ ImageKey["hidePin"] = "hidePin";
159
+ ImageKey["alertWindowIcon"] = "alertWindowIcon";
160
+ ImageKey["transactionTokenIcon"] = "transactionTokenIcon";
161
+ ImageKey["networkFeeTipIcon"] = "networkFeeTipIcon";
162
+ ImageKey["showLessDetailArrow"] = "showLessDetailArrow";
163
+ ImageKey["showMoreDetailArrow"] = "showMoreDetailArrow";
164
+ ImageKey["requestIcon"] = "requestIcon";
165
+ })(ImageKey || (ImageKey = {}));
166
+ export var DateFormat;
167
+ (function (DateFormat) {
168
+ DateFormat["YYYYMMDD_HYPHEN"] = "yyyy-MM-dd";
169
+ DateFormat["DDMMYYYY_SLASH"] = "dd/MM/yyyy";
170
+ DateFormat["MMDDYYYY_SLASH"] = "MM/dd/yyyy";
171
+ })(DateFormat || (DateFormat = {}));
172
+ export var ErrorCode;
173
+ (function (ErrorCode) {
174
+ ErrorCode["unknown"] = "-1";
175
+ ErrorCode["success"] = "0";
176
+ ErrorCode["apiParameterMissing"] = "1";
177
+ ErrorCode["apiParameterInvalid"] = "2";
178
+ ErrorCode["forbidden"] = "3";
179
+ ErrorCode["unauthorized"] = "4";
180
+ ErrorCode["retry"] = "9";
181
+ ErrorCode["customerSuspended"] = "10";
182
+ ErrorCode["pending"] = "11";
183
+ ErrorCode["invalidSession"] = "12";
184
+ ErrorCode["invalidPartnerId"] = "13";
185
+ ErrorCode["invalidMessage"] = "14";
186
+ ErrorCode["invalidPhone"] = "15";
187
+ // Common 156001 - 156999,
188
+ ErrorCode["walletIdNotFound"] = "156001";
189
+ ErrorCode["tokenIdNotFound"] = "156002";
190
+ ErrorCode["transactionIdNotFound"] = "156003";
191
+ ErrorCode["walletSetIdNotFound"] = "156004";
192
+ // Transaction related - 155201 - 155499,
193
+ ErrorCode["notEnoughFounds"] = "155201";
194
+ ErrorCode["notEnoughBalance"] = "155202";
195
+ ErrorCode["exceedWithdrawLimit"] = "155203";
196
+ ErrorCode["minimumFundsRequired"] = "155204";
197
+ ErrorCode["invalidTransactionFee"] = "155205";
198
+ ErrorCode["rejectedOnAmlScreening"] = "155206";
199
+ ErrorCode["tagRequired"] = "155207";
200
+ ErrorCode["gasLimitTooLow"] = "155208";
201
+ ErrorCode["transactionDataNotEncodedProperly"] = "155209";
202
+ ErrorCode["fullNodeReturnedError"] = "155210";
203
+ ErrorCode["walletSetupRequired"] = "155211";
204
+ ErrorCode["lowerThenMinimumAccountBalance"] = "155212";
205
+ ErrorCode["rejectedByBlockchain"] = "155213";
206
+ ErrorCode["droppedAsPartOfReorg"] = "155214";
207
+ ErrorCode["operationNotSupport"] = "155215";
208
+ ErrorCode["amountBelowMinimum"] = "155216";
209
+ ErrorCode["wrongNftTokenIdNumber"] = "155217";
210
+ ErrorCode["invalidDestinationAddress"] = "155218";
211
+ ErrorCode["tokenWalletChainMismatch"] = "155219";
212
+ ErrorCode["wrongAmountsNumber"] = "155220";
213
+ // User related - 155101 - 155199,
214
+ ErrorCode["userAlreadyExisted"] = "155101";
215
+ ErrorCode["userNotFound"] = "155102";
216
+ ErrorCode["userTokenNotFound"] = "155103";
217
+ ErrorCode["userTokenExpired"] = "155104";
218
+ ErrorCode["invalidUserToken"] = "155105";
219
+ ErrorCode["userWasInitialized"] = "155106";
220
+ ErrorCode["userHasSetPin"] = "155107";
221
+ ErrorCode["userHasSetSecurityQuestion"] = "155108";
222
+ ErrorCode["userWasDisabled"] = "155109";
223
+ ErrorCode["userDoesNotSetPinYet"] = "155110";
224
+ ErrorCode["userDoesNotSetSecurityQuestionYet"] = "155111";
225
+ ErrorCode["incorrectUserPin"] = "155112";
226
+ ErrorCode["incorrectDeviceId"] = "155113";
227
+ ErrorCode["incorrectAppId"] = "155114";
228
+ ErrorCode["incorrectSecurityAnswers"] = "155115";
229
+ ErrorCode["invalidChallengeId"] = "155116";
230
+ ErrorCode["invalidApproveContent"] = "155117";
231
+ ErrorCode["invalidEncryptionKey"] = "155118";
232
+ ErrorCode["userPinLocked"] = "155119";
233
+ ErrorCode["securityAnswersLocked"] = "155120";
234
+ // Wallet- 155501 - 155599,
235
+ ErrorCode["walletIsFrozen"] = "155501";
236
+ ErrorCode["maxWalletLimitReached"] = "155502";
237
+ ErrorCode["walletSetIdMutuallyExclusive"] = "155503";
238
+ ErrorCode["metadataUnmatched"] = "155504";
239
+ // WalletSet - 155601 - 155699,
240
+ // SDK UI - 155701 - 155799,
241
+ ErrorCode["userCanceled"] = "155701";
242
+ ErrorCode["launchUiFailed"] = "155702";
243
+ ErrorCode["pinCodeNotMatched"] = "155703";
244
+ ErrorCode["insecurePinCode"] = "155704";
245
+ ErrorCode["hintsMatchAnswers"] = "155705";
246
+ ErrorCode["networkError"] = "155706";
247
+ ErrorCode["biometricsSettingNotEnabled"] = "155708";
248
+ ErrorCode["deviceNotSupportBiometrics"] = "155709";
249
+ ErrorCode["biometricsKeyPermanentlyInvalidated"] = "155710";
250
+ ErrorCode["biometricsUserSkip"] = "155711";
251
+ ErrorCode["biometricsUserDisableForPin"] = "155712";
252
+ ErrorCode["biometricsUserLockout"] = "155713";
253
+ ErrorCode["biometricsUserLockoutPermanent"] = "155714";
254
+ ErrorCode["biometricsUserNotAllowPermission"] = "155715";
255
+ ErrorCode["biometricsInternalError"] = "155716";
256
+ ErrorCode["userSecretMissing"] = "155717";
257
+ ErrorCode["invalidUserTokenFormat"] = "155718";
258
+ ErrorCode["userTokenMismatch"] = "155719";
259
+ ErrorCode["socialLoginFailed"] = "155720";
260
+ ErrorCode["loginInfoMissing"] = "155721";
261
+ })(ErrorCode || (ErrorCode = {}));
262
+ export class IconTextConfig {
263
+ image;
264
+ textConfig;
265
+ constructor(image, textConfig) {
266
+ this.image = image;
267
+ this.textConfig = textConfig;
268
+ }
269
+ }
270
+ export class TextConfig {
271
+ text;
272
+ gradientColors;
273
+ textColor;
274
+ font;
275
+ constructor(text, gradientColorsOrTextColor, font) {
276
+ this.text = text;
277
+ if (Array.isArray(gradientColorsOrTextColor)) {
278
+ this.gradientColors = gradientColorsOrTextColor;
279
+ }
280
+ else {
281
+ this.textColor = gradientColorsOrTextColor;
282
+ }
283
+ this.font = font;
284
+ }
285
+ }
286
+ export var ExecuteResultStatus;
287
+ (function (ExecuteResultStatus) {
288
+ ExecuteResultStatus["UNKNOWN"] = "UNKNOWN";
289
+ ExecuteResultStatus["PENDING"] = "PENDING";
290
+ ExecuteResultStatus["IN_PROGRESS"] = "IN_PROGRESS";
291
+ ExecuteResultStatus["COMPLETE"] = "COMPLETE";
292
+ ExecuteResultStatus["FAILED"] = "FAILED";
293
+ ExecuteResultStatus["EXPIRED"] = "EXPIRED";
294
+ })(ExecuteResultStatus || (ExecuteResultStatus = {}));
295
+ export var ExecuteEvent;
296
+ (function (ExecuteEvent) {
297
+ ExecuteEvent["forgotPin"] = "forgotPin";
298
+ ExecuteEvent["resendOtp"] = "resendOtp";
299
+ })(ExecuteEvent || (ExecuteEvent = {}));
300
+ export var ExecuteResultType;
301
+ (function (ExecuteResultType) {
302
+ ExecuteResultType["UNKNOWN"] = "UNKNOWN";
303
+ ExecuteResultType["SET_PIN"] = "SET_PIN";
304
+ ExecuteResultType["RESTORE_PIN"] = "RESTORE_PIN";
305
+ ExecuteResultType["SET_SECURITY_QUESTIONS"] = "SET_SECURITY_QUESTIONS";
306
+ ExecuteResultType["CREATE_WALLET"] = "CREATE_WALLET";
307
+ ExecuteResultType["CREATE_TRANSACTION"] = "CREATE_TRANSACTION";
308
+ ExecuteResultType["ACCELERATE_TRANSACTION"] = "ACCELERATE_TRANSACTION";
309
+ ExecuteResultType["CANCEL_TRANSACTION"] = "CANCEL_TRANSACTION";
310
+ ExecuteResultType["CONTRACT_EXECUTION"] = "CONTRACT_EXECUTION";
311
+ ExecuteResultType["SIGN_MESSAGE"] = "SIGN_MESSAGE";
312
+ ExecuteResultType["SIGN_TYPEDDATA"] = "SIGN_TYPEDDATA";
313
+ ExecuteResultType["INITIALIZE"] = "INITIALIZE";
314
+ ExecuteResultType["SET_BIOMETRICS_PIN"] = "SET_BIOMETRICS_PIN";
315
+ ExecuteResultType["WALLET_UPGRADE"] = "WALLET_UPGRADE";
316
+ })(ExecuteResultType || (ExecuteResultType = {}));
317
+ export var InputType;
318
+ (function (InputType) {
319
+ InputType["text"] = "text";
320
+ InputType["datePicker"] = "datePicker";
321
+ })(InputType || (InputType = {}));
322
+ // ==========================
323
+ // MARK: Social Login
324
+ // ==========================
325
+ export var SocialProvider;
326
+ (function (SocialProvider) {
327
+ SocialProvider["Google"] = "Google";
328
+ SocialProvider["Facebook"] = "Facebook";
329
+ SocialProvider["Apple"] = "Apple";
330
+ })(SocialProvider || (SocialProvider = {}));
331
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAyBA,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAA;AAiFnD,MAAM,OAAO,gBAAgB;IAC3B,KAAK,CAAQ;IACb,SAAS,CAAY;IAErB,YAAY,KAAa,EAAE,SAAqB;QAC9C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;CACF;AAED,MAAM,CAAN,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,qDAAyC,CAAA;IACzC,yDAA6C,CAAA;IAC7C,2DAA+C,CAAA;IAC/C,mDAAuC,CAAA;IACvC,+DAAmD,CAAA;IACnD,6EAAiE,CAAA;IACjE,6DAAiD,CAAA;AACnD,CAAC,EARW,QAAQ,KAAR,QAAQ,QAQnB;AAED,MAAM,CAAN,IAAY,YAEX;AAFD,WAAY,YAAY;IACtB,uEAAuD,CAAA;AACzD,CAAC,EAFW,YAAY,KAAZ,YAAY,QAEvB;AAED,MAAM,CAAN,IAAY,OAyHX;AAzHD,WAAY,OAAO;IACjB,kDAAuC,CAAA;IACvC,0CAA+B,CAAA;IAC/B,0CAA+B,CAAA;IAC/B,8DAAmD,CAAA;IACnD,0DAA+C,CAAA;IAC/C,sDAA2C,CAAA;IAC3C,kDAAuC,CAAA;IACvC,gDAAqC,CAAA;IACrC,wFAA6E,CAAA;IAC7E,kFAAuE,CAAA;IACvE,8FAAmF,CAAA;IACnF,wFAA6E,CAAA;IA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B,0BAAa,CAAA;IACb,sCAAyB,CAAA;AAC3B,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,6BAA6B;AAC7B,qBAAqB;AACrB,6BAA6B;AAE7B,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,iCAAe,CAAA;AACjB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB","sourcesContent":["/**\n * Copyright 2025 Circle Internet Group, Inc. All rights reserved.\n *\n * SPDX-License-Identifier: Apache-2.0\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ImageSourcePropType } from 'react-native'\n\nexport type ProgrammablewalletRnSdkModuleEvents = {\n CirclePwOnEvent: (params: CirclePwEventPayload) => void\n CirclePwOnSuccess: (params: CirclePwSuccessPayload) => void\n CirclePwOnError: (params: CirclePwErrorPayload) => void\n}\n\nexport const CIRCLE_PW_ON_EVENT = 'CirclePwOnEvent'\n\nexport type CirclePwEventPayload = {\n name: ExecuteEvent\n}\n\nexport type CirclePwSuccessPayload = {\n [key: string]: SuccessResult\n}\n\nexport type CirclePwErrorPayload = {\n [key: string]: unknown\n}\n\nexport interface IWalletSdk {\n sdkVersion: SdkVersion\n deviceId: string\n getDeviceId: () => string\n init: (configuration: Configuration) => Promise<void>\n setSecurityQuestions: (securityQuestions: SecurityQuestion[]) => void\n execute: (\n userToken: string,\n encryptionKey: string,\n challengeIds: string[],\n successCallback: SuccessCallback,\n errorCallback: ErrorCallback,\n ) => void\n verifyOTP: (\n otpToken: string,\n deviceToken: string,\n deviceEncryptionKey: string,\n successCallback: LoginSuccessCallback,\n errorCallback: ErrorCallback,\n ) => void\n performLogin: (\n provider: SocialProvider,\n deviceToken: string,\n deviceEncryptionKey: string,\n successCallback: LoginSuccessCallback,\n errorCallback: ErrorCallback,\n ) => void\n performLogout: (\n provider: SocialProvider,\n completedCallback: CompletedCallback,\n errorCallback: ErrorCallback,\n ) => void\n setBiometricsPin: (\n userToken: string,\n encryptionKey: string,\n successCallback: SuccessCallback,\n errorCallback: ErrorCallback,\n ) => void\n\n setDismissOnCallbackMap: (map: Map<ErrorCode, boolean>) => void\n moveTaskToFront: () => void\n moveRnTaskToFront: () => void\n setTextConfigsMap: (map: Map<TextsKey, TextConfig[]>) => void\n setIconTextConfigsMap: (map: Map<IconTextsKey, Array<IconTextConfig>>) => void\n setTextConfigMap: (map: Map<TextKey, TextConfig>) => void\n setImageMap: (map: Map<ImageKey, ImageSourcePropType>) => void\n setDateFormat: (format: DateFormat) => void\n setDebugging: (debugging: boolean) => void\n setCustomUserAgent: (userAgent: string) => void\n setErrorStringMap: (map: Map<ErrorCode, string>) => void\n}\n\nexport interface SdkVersion {\n native: string\n rn?: string\n}\n\nexport interface Configuration {\n endpoint: string\n appId: string\n settingsManagement?: SettingsManagement\n}\n\nexport interface SettingsManagement {\n enableBiometricsPin: boolean\n}\n\nexport class SecurityQuestion {\n title: string\n inputType?: InputType\n\n constructor(title: string, inputType?: InputType) {\n this.title = title\n this.inputType = inputType\n }\n}\n\nexport enum TextsKey {\n newPinCodeHeadline = 'newPinCodeHeadline',\n enterPinCodeHeadline = 'enterPinCodeHeadline',\n securityIntroHeadline = 'securityIntroHeadline',\n securityIntroLink = 'securityIntroLink',\n securityQuestionHeaders = 'securityQuestionHeaders',\n securitySummaryQuestionHeaders = 'securitySummaryQuestionHeaders',\n recoverPinCodeHeadline = 'recoverPinCodeHeadline',\n}\n\nexport enum IconTextsKey {\n securityConfirmationItems = 'securityConfirmationItems',\n}\n\nexport enum TextKey {\n circlepw_continue = 'circlepw_continue',\n circlepw_next = 'circlepw_next',\n circlepw_skip = 'circlepw_skip',\n circlepw_question_label = 'circlepw_question_label',\n circlepw_answer_label = 'circlepw_answer_label',\n circlepw_hint_label = 'circlepw_hint_label',\n circlepw_hint_tag = 'circlepw_hint_tag',\n circlepw_confirm = 'circlepw_confirm',\n circlepw_pin_remain_attemps_template = 'circlepw_pin_remain_attemps_template',\n circlepw_pin_lock_period_template = 'circlepw_pin_lock_period_template',\n circlepw_answer_remain_attemps_template = 'circlepw_answer_remain_attemps_template',\n circlepw_answer_lock_period_template = 'circlepw_answer_lock_period_template',\n circlepw_pin_digit_config = 'circlepw_pin_digit_config',\n circlepw_pincode_error_config = 'circlepw_pincode_error_config',\n circlepw_enter_pincode_subhead = 'circlepw_enter_pincode_subhead',\n circlepw_enter_pincode_forgot_pin = 'circlepw_enter_pincode_forgot_pin',\n circlepw_enter_pincode_use_biometrics = 'circlepw_enter_pincode_use_biometrics',\n circlepw_new_pincode_subhead = 'circlepw_new_pincode_subhead',\n circlepw_confirm_pincode_headline = 'circlepw_confirm_pincode_headline',\n circlepw_confirm_pincode_subhead = 'circlepw_confirm_pincode_subhead',\n circlepw_security_intros_description = 'circlepw_security_intros_description',\n circlepw_security_questions_title = 'circlepw_security_questions_title',\n circlepw_security_questions_required_mark = 'circlepw_security_questions_required_mark',\n circlepw_security_questions_question_placeholder = 'circlepw_security_questions_question_placeholder',\n circlepw_security_questions_answer_header = 'circlepw_security_questions_answer_header',\n circlepw_security_questions_answer_placeholder = 'circlepw_security_questions_answer_placeholder',\n circlepw_security_questions_answer_hint_header = 'circlepw_security_questions_answer_hint_header',\n circlepw_security_questions_answer_hint_placeholder = 'circlepw_security_questions_answer_hint_placeholder',\n circlepw_security_questions_answer_input_config = 'circlepw_security_questions_answer_input_config',\n circlepw_security_questions_answer_hint_input_config = 'circlepw_security_questions_answer_hint_input_config',\n circlepw_security_questions_question_input_config = 'circlepw_security_questions_question_input_config',\n circlepw_security_questions_error_config = 'circlepw_security_questions_error_config',\n // SelectQuestion\n circlepw_select_question_title = 'circlepw_select_question_title',\n circlepw_select_question_item_config = 'circlepw_select_question_item_config',\n // SecuritySummary\n circlepw_security_summary_title = 'circlepw_security_summary_title',\n circlepw_security_summary_question_value_config = 'circlepw_security_summary_question_value_config',\n circlepw_security_summary_answer_value_config = 'circlepw_security_summary_answer_value_config',\n circlepw_security_summary_hint_value_config = 'circlepw_security_summary_hint_value_config',\n // SecurityConfirm\n circlepw_security_confirm_title = 'circlepw_security_confirm_title',\n circlepw_security_confirm_headline = 'circlepw_security_confirm_headline',\n circlepw_security_confirm_input_headline = 'circlepw_security_confirm_input_headline',\n circlepw_security_confirm_input_config = 'circlepw_security_confirm_input_config',\n circlepw_security_confirm_input_placeholder = 'circlepw_security_confirm_input_placeholder',\n circlepw_security_confirm_input_match = 'circlepw_security_confirm_input_match',\n // RecoverPINCode\n circlepw_recover_pincode_answer_input_header = 'circlepw_recover_pincode_answer_input_header',\n circlepw_recover_pincode_answer_input_placeholder = 'circlepw_recover_pincode_answer_input_placeholder',\n circlepw_recover_pincode_input_config = 'circlepw_recover_pincode_input_config',\n circlepw_recover_pincode_answer_hint_config = 'circlepw_recover_pincode_answer_hint_config',\n circlepw_recover_pincode_error_config = 'circlepw_recover_pincode_error_config',\n circlepw_recover_pincode_question_config = 'circlepw_recover_pincode_question_config',\n // BiometricsAllow\n circlepw_pin_biometrics_allow_title = 'circlepw_pin_biometrics_allow_title',\n circlepw_pin_biometrics_allow_subtitle = 'circlepw_pin_biometrics_allow_subtitle',\n circlepw_pin_biometrics_disable = 'circlepw_pin_biometrics_disable',\n circlepw_pin_biometrics_encrypt_title = 'circlepw_pin_biometrics_encrypt_title',\n circlepw_pin_biometrics_encrypt_subtitle = 'circlepw_pin_biometrics_encrypt_subtitle',\n circlepw_pin_biometrics_encrypt_desc = 'circlepw_pin_biometrics_encrypt_desc',\n circlepw_pin_biometrics_encrypt_negative_text = 'circlepw_pin_biometrics_encrypt_negative_text',\n circlepw_pin_biometrics_decrypt_title = 'circlepw_pin_biometrics_decrypt_title',\n circlepw_pin_biometrics_decrypt_subtitle = 'circlepw_pin_biometrics_decrypt_subtitle',\n circlepw_pin_biometrics_decrypt_desc = 'circlepw_pin_biometrics_decrypt_desc',\n circlepw_pin_biometrics_decrypt_negative_text = 'circlepw_pin_biometrics_decrypt_negative_text',\n circlepw_pin_biometrics_update_title = 'circlepw_pin_biometrics_update_title',\n circlepw_pin_biometrics_update_subtitle = 'circlepw_pin_biometrics_update_subtitle',\n circlepw_alert_pop_window_title = 'circlepw_alert_pop_window_title',\n circlepw_alert_pop_window_description_config = 'circlepw_alert_pop_window_description_config',\n circlepw_alert_pop_window_confirm = 'circlepw_alert_pop_window_confirm',\n circlepw_swipe_confirm_headline = 'circlepw_swipe_confirm_headline',\n circlepw_swipe_confirm_subhead = 'circlepw_swipe_confirm_subhead',\n circlepw_swipe_to_confirm = 'circlepw_swipe_to_confirm',\n circlepw_swipe_bt_confirming = 'circlepw_swipe_bt_confirming',\n circlepw_swipe_bt_confirmed = 'circlepw_swipe_bt_confirmed',\n circlepw_swipe_bt_try_again = 'circlepw_swipe_bt_try_again',\n circlepw_transaction_request_title = 'circlepw_transaction_request_title',\n circlepw_transaction_request_subtitle = 'circlepw_transaction_request_subtitle',\n circlepw_transaction_request_main_currency = 'circlepw_transaction_request_main_currency',\n circlepw_transaction_request_exchange_value = 'circlepw_transaction_request_exchange_value',\n circlepw_transaction_request_from_label = 'circlepw_transaction_request_from_label',\n circlepw_transaction_request_from = 'circlepw_transaction_request_from',\n circlepw_transaction_request_to_label = 'circlepw_transaction_request_to_label',\n circlepw_transaction_request_to_config = 'circlepw_transaction_request_to_config',\n circlepw_transaction_request_to_contract_name = 'circlepw_transaction_request_to_contract_name',\n circlepw_transaction_request_to_contract_url = 'circlepw_transaction_request_to_contract_url',\n circlepw_transaction_request_network_fee_label = 'circlepw_transaction_request_network_fee_label',\n circlepw_transaction_request_network_fee = 'circlepw_transaction_request_network_fee',\n circlepw_transaction_request_exchange_network_fee = 'circlepw_transaction_request_exchange_network_fee',\n circlepw_transaction_request_total_label = 'circlepw_transaction_request_total_label',\n circlepw_transaction_request_total_config = 'circlepw_transaction_request_total_config',\n circlepw_transaction_request_exchange_total_value = 'circlepw_transaction_request_exchange_total_value',\n circlepw_transaction_request_error_config = 'circlepw_transaction_request_error_config',\n circlepw_transaction_request_fee_tip = 'circlepw_transaction_request_fee_tip',\n circlepw_contract_interaction_contract_address_label = 'circlepw_contract_interaction_contract_address_label',\n circlepw_contract_interaction_contract_address_config = 'circlepw_contract_interaction_contract_address_config',\n circlepw_contract_interaction_data_details = 'circlepw_contract_interaction_data_details',\n circlepw_contract_interaction_abi_function_label = 'circlepw_contract_interaction_abi_function_label',\n circlepw_contract_interaction_abi_function_config = 'circlepw_contract_interaction_abi_function_config',\n circlepw_contract_interaction_abi_parameter_label = 'circlepw_contract_interaction_abi_parameter_label',\n circlepw_contract_interaction_call_data_label = 'circlepw_contract_interaction_call_data_label',\n circlepw_contract_interaction_call_data_config = 'circlepw_contract_interaction_call_data_config',\n circlepw_transaction_request_raw_tx_description = 'circlepw_transaction_request_raw_tx_description',\n circlepw_transaction_request_raw_tx_config = 'circlepw_transaction_request_raw_tx_config',\n circlepw_signature_request_title = 'circlepw_signature_request_title',\n circlepw_signature_request_contract_name = 'circlepw_signature_request_contract_name',\n circlepw_signature_request_contract_url = 'circlepw_signature_request_contract_url',\n circlepw_signature_request_subtitle = 'circlepw_signature_request_subtitle',\n circlepw_signature_request_description = 'circlepw_signature_request_description',\n circlepw_signature_request_msg_config = 'circlepw_signature_request_msg_config',\n circlepw_sign = 'circlepw_sign',\n circlepw_try_again = 'circlepw_try_again',\n circlepw_email_otp_title = 'circlepw_email_otp_title',\n circlepw_email_otp_description = 'circlepw_email_otp_description',\n circlepw_email_otp_email = 'circlepw_email_otp_email',\n circlepw_email_otp_head_config = 'circlepw_email_otp_head_config',\n circlepw_email_otp_dash = 'circlepw_email_otp_dash',\n circlepw_email_otp_send_again_hint = 'circlepw_email_otp_send_again_hint',\n circlepw_email_otp_send_again = 'circlepw_email_otp_send_again',\n}\n\nexport enum ImageKey {\n naviBack = 'back',\n naviClose = 'close',\n securityIntroMain = 'securityIntroMain',\n selectCheckMark = 'selectCheckMark',\n dropdownArrow = 'dropdownArrow',\n errorInfo = 'errorInfo',\n securityConfirmMain = 'securityConfirmMain',\n biometricsAllowMain = 'biometricsAllowMain',\n showPin = 'showPin',\n hidePin = 'hidePin',\n alertWindowIcon = 'alertWindowIcon',\n transactionTokenIcon = 'transactionTokenIcon',\n networkFeeTipIcon = 'networkFeeTipIcon',\n showLessDetailArrow = 'showLessDetailArrow',\n showMoreDetailArrow = 'showMoreDetailArrow',\n requestIcon = 'requestIcon',\n}\n\nexport enum DateFormat {\n YYYYMMDD_HYPHEN = 'yyyy-MM-dd',\n DDMMYYYY_SLASH = 'dd/MM/yyyy',\n MMDDYYYY_SLASH = 'MM/dd/yyyy',\n}\n\nexport enum ErrorCode {\n unknown = '-1',\n success = '0',\n apiParameterMissing = '1',\n apiParameterInvalid = '2',\n forbidden = '3',\n unauthorized = '4',\n retry = '9',\n customerSuspended = '10',\n pending = '11',\n invalidSession = '12',\n invalidPartnerId = '13',\n invalidMessage = '14',\n invalidPhone = '15',\n // Common 156001 - 156999,\n walletIdNotFound = '156001',\n tokenIdNotFound = '156002',\n transactionIdNotFound = '156003',\n walletSetIdNotFound = '156004',\n // Transaction related - 155201 - 155499,\n notEnoughFounds = '155201',\n notEnoughBalance = '155202',\n exceedWithdrawLimit = '155203',\n minimumFundsRequired = '155204',\n invalidTransactionFee = '155205',\n rejectedOnAmlScreening = '155206',\n tagRequired = '155207',\n gasLimitTooLow = '155208',\n transactionDataNotEncodedProperly = '155209',\n fullNodeReturnedError = '155210',\n walletSetupRequired = '155211',\n lowerThenMinimumAccountBalance = '155212',\n rejectedByBlockchain = '155213',\n droppedAsPartOfReorg = '155214',\n operationNotSupport = '155215',\n amountBelowMinimum = '155216',\n wrongNftTokenIdNumber = '155217',\n invalidDestinationAddress = '155218',\n tokenWalletChainMismatch = '155219',\n wrongAmountsNumber = '155220',\n // User related - 155101 - 155199,\n userAlreadyExisted = '155101',\n userNotFound = '155102',\n userTokenNotFound = '155103',\n userTokenExpired = '155104',\n invalidUserToken = '155105',\n userWasInitialized = '155106',\n userHasSetPin = '155107',\n userHasSetSecurityQuestion = '155108',\n userWasDisabled = '155109',\n userDoesNotSetPinYet = '155110',\n userDoesNotSetSecurityQuestionYet = '155111',\n incorrectUserPin = '155112',\n incorrectDeviceId = '155113',\n incorrectAppId = '155114',\n incorrectSecurityAnswers = '155115',\n invalidChallengeId = '155116',\n invalidApproveContent = '155117',\n invalidEncryptionKey = '155118',\n userPinLocked = '155119',\n securityAnswersLocked = '155120',\n // Wallet- 155501 - 155599,\n walletIsFrozen = '155501',\n maxWalletLimitReached = '155502',\n walletSetIdMutuallyExclusive = '155503',\n metadataUnmatched = '155504',\n // WalletSet - 155601 - 155699,\n // SDK UI - 155701 - 155799,\n userCanceled = '155701',\n launchUiFailed = '155702',\n pinCodeNotMatched = '155703',\n insecurePinCode = '155704',\n hintsMatchAnswers = '155705',\n networkError = '155706',\n biometricsSettingNotEnabled = '155708',\n deviceNotSupportBiometrics = '155709',\n biometricsKeyPermanentlyInvalidated = '155710',\n biometricsUserSkip = '155711',\n biometricsUserDisableForPin = '155712',\n biometricsUserLockout = '155713',\n biometricsUserLockoutPermanent = '155714',\n biometricsUserNotAllowPermission = '155715',\n biometricsInternalError = '155716',\n userSecretMissing = '155717',\n invalidUserTokenFormat = '155718',\n userTokenMismatch = '155719',\n socialLoginFailed = '155720',\n loginInfoMissing = '155721',\n}\n\nexport type SuccessCallback = (result: SuccessResult) => void\nexport type LoginSuccessCallback = (result: LoginResult) => void\nexport type CompletedCallback = () => void\nexport type ErrorCallback = (error: Error) => void\n\nexport interface SuccessResult {\n result: ExecuteResult\n warning?: ExecuteWarning\n}\n\nexport interface Error {\n code?: string\n message: string\n}\n\nexport interface ExecuteResult {\n resultType: ExecuteResultType\n status: ExecuteResultStatus\n data?: ExecuteResultData\n}\n\nexport interface ExecuteWarning {\n warningType: ErrorCode\n warningString: string\n}\n\nexport interface ExecuteResultData {\n signature?: string\n signedTransaction?: string\n txHash?: string\n}\n\nexport class IconTextConfig {\n image: ImageSourcePropType\n textConfig: TextConfig\n\n constructor(image: ImageSourcePropType, textConfig: TextConfig) {\n this.image = image\n this.textConfig = textConfig\n }\n}\n\nexport class TextConfig {\n text?: string\n gradientColors?: string[]\n textColor?: string\n font?: string\n constructor(\n text?: string,\n gradientColorsOrTextColor?: string[] | string,\n font?: string,\n ) {\n this.text = text\n if (Array.isArray(gradientColorsOrTextColor)) {\n this.gradientColors = gradientColorsOrTextColor\n } else {\n this.textColor = gradientColorsOrTextColor\n }\n this.font = font\n }\n}\n\nexport enum ExecuteResultStatus {\n UNKNOWN = 'UNKNOWN',\n PENDING = 'PENDING',\n IN_PROGRESS = 'IN_PROGRESS',\n COMPLETE = 'COMPLETE',\n FAILED = 'FAILED',\n EXPIRED = 'EXPIRED',\n}\n\nexport enum ExecuteEvent {\n forgotPin = 'forgotPin',\n resendOtp = 'resendOtp',\n}\n\nexport enum ExecuteResultType {\n UNKNOWN = 'UNKNOWN',\n SET_PIN = 'SET_PIN',\n RESTORE_PIN = 'RESTORE_PIN',\n SET_SECURITY_QUESTIONS = 'SET_SECURITY_QUESTIONS',\n CREATE_WALLET = 'CREATE_WALLET',\n CREATE_TRANSACTION = 'CREATE_TRANSACTION',\n ACCELERATE_TRANSACTION = 'ACCELERATE_TRANSACTION',\n CANCEL_TRANSACTION = 'CANCEL_TRANSACTION',\n CONTRACT_EXECUTION = 'CONTRACT_EXECUTION',\n SIGN_MESSAGE = 'SIGN_MESSAGE',\n SIGN_TYPEDDATA = 'SIGN_TYPEDDATA',\n INITIALIZE = 'INITIALIZE',\n SET_BIOMETRICS_PIN = 'SET_BIOMETRICS_PIN',\n WALLET_UPGRADE = 'WALLET_UPGRADE',\n}\n\nexport enum InputType {\n text = 'text',\n datePicker = 'datePicker',\n}\n\n// ==========================\n// MARK: Social Login\n// ==========================\n\nexport enum SocialProvider {\n Google = 'Google',\n Facebook = 'Facebook',\n Apple = 'Apple',\n}\n\nexport interface LoginResult {\n userToken?: string\n encryptionKey?: string\n refreshToken?: string\n oauthInfo?: OauthInfo\n}\n\nexport interface OauthInfo {\n provider?: string\n scope?: string[]\n socialUserUUID?: string\n socialUserInfo?: SocialUserInfo\n}\n\nexport interface SocialUserInfo {\n name?: string\n email?: string\n phone?: string\n}\n"]}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Copyright 2025 Circle Internet Group, Inc. All rights reserved.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+ import { SecurityQuestion, InputType } from '../types';
19
+ /**
20
+ * Extract string representation from unknown value
21
+ * @param value - Value to convert to string
22
+ * @returns String representation
23
+ */
24
+ export declare function getStringFromUnknown(value: unknown): string;
25
+ /**
26
+ * Normalize various input types to InputType enum values
27
+ * @param v - Input value to normalize
28
+ * @returns Normalized InputType or undefined
29
+ */
30
+ export declare function normalizeInputType(v: unknown): InputType | undefined;
31
+ /**
32
+ * Convert security question input to standardized SecurityQuestion object
33
+ *
34
+ * Supports three input formats:
35
+ * 1. Tuple [title, inputType]
36
+ * 2. Object {title, inputType}
37
+ * 3. String or other primitive
38
+ *
39
+ * @param q - Security question input (any type)
40
+ * @returns Standardized SecurityQuestion instance
41
+ */
42
+ export declare function toPlainSecurityQuestion(q: unknown): SecurityQuestion;
43
+ //# sourceMappingURL=securityQuestionUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"securityQuestionUtils.d.ts","sourceRoot":"","sources":["../../src/utils/securityQuestionUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAEtD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAU3D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAgCpE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAiCpE"}