@transmitsecurity/platform-web-sdk 1.15.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 (74) hide show
  1. package/CHANGELOG.md +479 -0
  2. package/README.md +72 -0
  3. package/VITE_CONFIG.md +107 -0
  4. package/build/drs-entry.d.ts +20 -0
  5. package/build/drs-entry.js +19 -0
  6. package/build/drs-only.d.ts +22 -0
  7. package/build/drs-only.js +25 -0
  8. package/build/drs.d.ts +13 -0
  9. package/build/drs.js +45 -0
  10. package/build/ido-entry.d.ts +17 -0
  11. package/build/ido-entry.js +19 -0
  12. package/build/ido.d.ts +8 -0
  13. package/build/ido.js +27 -0
  14. package/build/idv-entry.d.ts +17 -0
  15. package/build/idv-entry.js +19 -0
  16. package/build/idv.d.ts +8 -0
  17. package/build/idv.js +27 -0
  18. package/build/initialize-only.d.ts +7 -0
  19. package/build/initialize-only.js +40 -0
  20. package/build/initialize.d.ts +1 -0
  21. package/build/initialize.js +2 -0
  22. package/build/mainExport.d.ts +16 -0
  23. package/build/mainExport.js +43 -0
  24. package/build/sdk-factory.d.ts +109 -0
  25. package/build/sdk-factory.js +108 -0
  26. package/build/shared-state.d.ts +4 -0
  27. package/build/shared-state.js +32 -0
  28. package/build/webauthn-entry.d.ts +19 -0
  29. package/build/webauthn-entry.js +19 -0
  30. package/build/webauthn.d.ts +12 -0
  31. package/build/webauthn.js +44 -0
  32. package/bundler-config.json +15 -0
  33. package/dist/docs/.nojekyll +1 -0
  34. package/dist/docs/README.md +72 -0
  35. package/dist/docs/enums/ErrorCode.md +113 -0
  36. package/dist/docs/interfaces/ActionEventOptions.md +44 -0
  37. package/dist/docs/interfaces/ActionResponse.md +9 -0
  38. package/dist/docs/interfaces/AuthenticationAutofillActivateHandlers.md +61 -0
  39. package/dist/docs/interfaces/AutofillHandlers.md +50 -0
  40. package/dist/docs/interfaces/CrossDeviceController.md +27 -0
  41. package/dist/docs/interfaces/SdkError.md +28 -0
  42. package/dist/docs/interfaces/WebauthnApis.md +73 -0
  43. package/dist/docs/interfaces/WebauthnAuthenticationFlows.md +52 -0
  44. package/dist/docs/interfaces/WebauthnCrossDeviceFlows.md +107 -0
  45. package/dist/docs/interfaces/WebauthnCrossDeviceRegistrationOptions.md +23 -0
  46. package/dist/docs/interfaces/WebauthnRegistrationOptions.md +55 -0
  47. package/dist/docs/interfaces/initConfigParams.md +7 -0
  48. package/dist/docs/modules/drs.md +92 -0
  49. package/dist/docs/modules/idv.md +106 -0
  50. package/dist/docs/modules/webauthn.md +197 -0
  51. package/dist/docs/modules.md +146 -0
  52. package/dist/drs.cjs +1 -0
  53. package/dist/drs.d.ts +241 -0
  54. package/dist/drs.js +1 -0
  55. package/dist/ido.cjs +1 -0
  56. package/dist/ido.d.ts +8 -0
  57. package/dist/ido.js +1 -0
  58. package/dist/idv.cjs +1 -0
  59. package/dist/idv.d.ts +68 -0
  60. package/dist/idv.js +1 -0
  61. package/dist/index.cjs +1 -0
  62. package/dist/index.esm.js +1 -0
  63. package/dist/index.umd.js +1 -0
  64. package/dist/ts-platform-websdk.js +1 -0
  65. package/dist/web-sdk-drs+idv+webauthn+ido.js +1 -0
  66. package/dist/web-sdk.d.ts +1737 -0
  67. package/dist/webauthn.cjs +1 -0
  68. package/dist/webauthn.d.ts +461 -0
  69. package/dist/webauthn.js +1 -0
  70. package/package.json +98 -0
  71. package/scripts/make-semver-aliases.sh +11 -0
  72. package/scripts/upload-dist.sh +6 -0
  73. package/src/mainExport.ts +75 -0
  74. package/src/tsconfig.json +14 -0
package/dist/idv.d.ts ADDED
@@ -0,0 +1,68 @@
1
+ /**
2
+ * The `idv` module allows you to integrate identity verification services into your application. This allows you to
3
+ * securely verify the identity of your customers using documents like their driver's license or passport.
4
+ *
5
+ * After the SDK is initialized, your app can start a verification flow by creating a session in the backend to establish
6
+ * a secure context and then start the verification session by calling {@link module:tsPlatform.idv.start|start}. The SDK executes
7
+ * the verification process with the user using the Transmit identity verification experience. Once all the required images are submitted,
8
+ * Transmit starts processing the verification while the SDK polls for its status. Once processing is completed, the SDK notifies the app
9
+ * so it can obtain the verification result (via the backend) and proceed accordingly.
10
+ * @module tsPlatform.idv
11
+ */
12
+
13
+ /**
14
+ * Starts a verification session that was created in the backend (via the [Verification API](/openapi/verify/verifications/#operation/createSession)).
15
+ * This will start the verification process for the user and guides them through the entire identity verification flow
16
+ * using the Transmit identity verification experience, which includes capturing the required images and submitting them for processing.
17
+ * @function start
18
+ * @param {string} startToken - The start_token returned by the backend when the session was created, used to
19
+ * bind the session to the device
20
+ * @returns {Promise<boolean>} Indicates if the session was started successfully
21
+ * @memberof module:core
22
+ * @example
23
+ * const showLoader = true;
24
+ * const startToken = '123456'; // start_token returned by the backend upon session creation
25
+ * tsPlatform.idv.start(startToken).then((started) => {
26
+ * showLoader = false;
27
+ * if (started) {
28
+ * console.log('Session started');
29
+ * } else {
30
+ * console.log('Session not started');
31
+ * }
32
+ * });
33
+ */
34
+ declare function start(startToken?: string): Promise<boolean>;
35
+ /**
36
+ * Recaptures the required images in case the `recapture` status is returned. For example, this may occur in case some data
37
+ * couldn't be extracted due to poor image quality.
38
+ * @function recapture
39
+ * @returns {Promise<boolean>} Indicates if the session was started successfully
40
+ * @memberof module:core
41
+ * @example
42
+ * const showLoader = true;
43
+ * tsPlatform.idv.recapture().then((success) => {
44
+ * showLoader = false;
45
+ * if (success) {
46
+ * console.log('Recapture started');
47
+ * } else {
48
+ * console.log('Recapture not started');
49
+ * }
50
+ * });
51
+ */
52
+ declare function recapture(): Promise<boolean>;
53
+ /**
54
+ * deprecated use {@link module:tsPlatform.idv.recapture|recapture} instead
55
+ * TODO: [VER-3126](https://transmitsecurity.atlassian.net/browse/VER-3126)
56
+ */
57
+ declare function restart(): Promise<boolean>;
58
+ declare const version: () => string;
59
+
60
+ declare const PACKAGE_VERSION: string;
61
+ declare namespace idv {
62
+ export function initialize(config: any): void;
63
+ export * from "@transmit-security/ts-identity-verification";
64
+ }
65
+
66
+ declare function initialize(config: any): void;
67
+
68
+ export { PACKAGE_VERSION, idv, initialize, recapture, restart, start, version };