@transmitsecurity/platform-web-sdk 1.15.0 → 1.16.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.
- package/CHANGELOG.md +4 -1
- package/README.md +31 -31
- package/build/ido/idoImpl.d.ts +2 -0
- package/build/ido/idoImpl.js +4 -0
- package/build/ido/index.d.ts +7 -0
- package/build/ido/index.js +9 -0
- package/bundler-config.json +2 -3
- package/dist/docs/modules.md +1 -1
- package/dist/drs.cjs +1 -1
- package/dist/drs.d.ts +9 -2
- package/dist/drs.js +1 -1
- package/dist/ido.cjs +3 -1
- package/dist/ido.d.ts +51 -2
- package/dist/ido.js +3 -1
- package/dist/idv.cjs +1 -1
- package/dist/idv.d.ts +1 -0
- package/dist/idv.js +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.esm.js +3 -1
- package/dist/index.umd.js +3 -1
- package/dist/ts-platform-websdk.js +3 -1
- package/dist/web-sdk-drs+idv+webauthn+ido.js +3 -1
- package/dist/web-sdk.d.ts +41 -7
- package/dist/webauthn.cjs +1 -1
- package/dist/webauthn.d.ts +4 -2
- package/dist/webauthn.js +1 -1
- package/package.json +8 -7
- package/scripts/upload-dist.sh +3 -0
- package/VITE_CONFIG.md +0 -107
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
## 1.15.0 - Jun. 29, 2025
|
|
3
|
+
**Fraud Prevention**
|
|
4
|
+
* feat: Add support for rotating crypto-binding keys
|
|
5
|
+
|
|
2
6
|
## 1.14.0 - Jun. 15, 2025
|
|
3
7
|
**Orchestration**
|
|
4
|
-
* feat: Optimize device validation flow
|
|
5
8
|
* feat: Optimize risk recommendation flow
|
|
6
9
|
* feat: Add Select Organization step type
|
|
7
10
|
|
package/README.md
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
# Transmit Security Platform Web SDK
|
|
2
2
|
|
|
3
|
-
A comprehensive browser-based identity and security solution with
|
|
3
|
+
A comprehensive browser-based identity and security solution for integrating with Mosaic's Fraud Prevention, WebAuthn authentication, Identity Verification, and Orchestration capabilities.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @transmitsecurity/platform-web-sdk
|
|
8
|
+
npm install @transmitsecurity/platform-web-sdk@^1
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### Individual Module Imports (Recommended)
|
|
14
|
+
|
|
15
|
+
✅ **Recommended**: Import only the modules you need for optimal bundle size and faster loading.
|
|
14
16
|
|
|
15
17
|
```js
|
|
16
|
-
import { drs,
|
|
18
|
+
import { drs, initialize } from '@transmitsecurity/platform-web-sdk/drs';
|
|
19
|
+
import { webauthn } from '@transmitsecurity/platform-web-sdk/webauthn';
|
|
17
20
|
|
|
18
|
-
// Single initialize call for all modules
|
|
19
21
|
await initialize({
|
|
20
22
|
clientId: 'your-client-id',
|
|
21
23
|
drs: { serverPath: 'https://api.transmitsecurity.io/risk-collect/' },
|
|
@@ -27,45 +29,43 @@ await drs.triggerActionEvent('login', { correlationId: 'example' });
|
|
|
27
29
|
const isSupported = await webauthn.isPlatformAuthenticatorSupported();
|
|
28
30
|
```
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
⚠️ **Note**: Individual module imports have dependency resolution issues in some bundlers (like Vite). Use full SDK import for better compatibility.
|
|
33
|
-
|
|
32
|
+
**Available individual imports**:
|
|
34
33
|
```js
|
|
35
|
-
//
|
|
34
|
+
// Fraud Prevention (DRS)
|
|
36
35
|
import { drs, initialize } from '@transmitsecurity/platform-web-sdk/drs';
|
|
37
|
-
import { webauthn } from '@transmitsecurity/platform-web-sdk/webauthn';
|
|
38
|
-
|
|
39
|
-
// Single initialize call
|
|
40
|
-
await initialize({
|
|
41
|
-
clientId: 'your-client-id',
|
|
42
|
-
drs: { serverPath: 'https://api.transmitsecurity.io/risk-collect/' },
|
|
43
|
-
webauthn: { serverPath: 'https://api.transmitsecurity.io' }
|
|
44
|
-
});
|
|
45
|
-
```
|
|
46
36
|
|
|
47
|
-
|
|
37
|
+
// WebAuthn Authentication
|
|
38
|
+
import { webauthn, initialize } from '@transmitsecurity/platform-web-sdk/webauthn';
|
|
48
39
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
- **Uncompressed**: ~565KB
|
|
52
|
-
- **Tree-shaking**: Modern bundlers eliminate unused code automatically
|
|
40
|
+
// Identity Verification (IDV)
|
|
41
|
+
import { idv, initialize } from '@transmitsecurity/platform-web-sdk/idv';
|
|
53
42
|
|
|
54
|
-
|
|
43
|
+
// Identity Orchestration (IDO)
|
|
44
|
+
import { ido, initialize } from '@transmitsecurity/platform-web-sdk/ido';
|
|
45
|
+
```
|
|
55
46
|
|
|
56
|
-
###
|
|
47
|
+
### Full SDK Import
|
|
57
48
|
|
|
58
|
-
|
|
49
|
+
Import the entire SDK if you need multiple modules or prefer a single import.
|
|
59
50
|
|
|
60
|
-
|
|
51
|
+
```js
|
|
52
|
+
import { drs, webauthn, idv, ido, initialize } from '@transmitsecurity/platform-web-sdk';
|
|
61
53
|
|
|
62
|
-
|
|
54
|
+
// Single initialize call for all modules
|
|
55
|
+
await initialize({
|
|
56
|
+
clientId: 'your-client-id',
|
|
57
|
+
drs: { serverPath: 'https://api.transmitsecurity.io/risk-collect/' },
|
|
58
|
+
webauthn: { serverPath: 'https://api.transmitsecurity.io' }
|
|
59
|
+
});
|
|
63
60
|
|
|
64
|
-
|
|
61
|
+
// Use the modules
|
|
62
|
+
await drs.triggerActionEvent('login', { correlationId: 'example' });
|
|
63
|
+
const isSupported = await webauthn.isPlatformAuthenticatorSupported();
|
|
64
|
+
```
|
|
65
65
|
|
|
66
66
|
## Documentation
|
|
67
67
|
|
|
68
|
-
For complete documentation, visit: https://
|
|
68
|
+
For complete documentation, visit: https://developer.transmitsecurity.com/sdk-ref/sdk_ref_intro/
|
|
69
69
|
|
|
70
70
|
## License
|
|
71
71
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { initializeIDO as initialize } from './idoImpl';
|
|
2
|
+
export * from './idoImpl';
|
|
3
|
+
export declare const startJourney: (journeyId: string, options?: import("@transmit-security/ido-web-sdk/dist/sdk_interface").StartJourneyOptions | undefined) => Promise<import("@transmit-security/ido-web-sdk/dist/sdk_interface").IdoServiceResponse>;
|
|
4
|
+
export declare const startSsoJourney: (interactionId: string, options?: import("@transmit-security/ido-web-sdk/dist/sdk_interface").StartSsoJourneyOptions | undefined) => Promise<import("@transmit-security/ido-web-sdk/dist/sdk_interface").IdoServiceResponse>;
|
|
5
|
+
export declare const submitClientResponse: (clientResponseOptionId: string, data?: any) => Promise<import("@transmit-security/ido-web-sdk/dist/sdk_interface").IdoServiceResponse>;
|
|
6
|
+
export declare const serializeState: () => string;
|
|
7
|
+
export declare const restoreFromSerializedState: (state: string) => import("@transmit-security/ido-web-sdk/dist/sdk_interface").IdoServiceResponse;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { initializeIDO as initialize } from './idoImpl';
|
|
2
|
+
export * from './idoImpl';
|
|
3
|
+
// Import the default export and re-export its functions as named exports
|
|
4
|
+
import idoWebSdk from '@transmit-security/ido-web-sdk';
|
|
5
|
+
export const startJourney = idoWebSdk.startJourney;
|
|
6
|
+
export const startSsoJourney = idoWebSdk.startSsoJourney;
|
|
7
|
+
export const submitClientResponse = idoWebSdk.submitClientResponse;
|
|
8
|
+
export const serializeState = idoWebSdk.serializeState;
|
|
9
|
+
export const restoreFromSerializedState = idoWebSdk.restoreFromSerializedState;
|
package/bundler-config.json
CHANGED
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
"exports": {
|
|
3
3
|
"drs": "@transmit-security/riskid_sdk",
|
|
4
4
|
"idv": "@transmit-security/ts-identity-verification",
|
|
5
|
-
"webauthn": "@transmit-security/authentication-sdk"
|
|
6
|
-
},
|
|
7
|
-
"exportsFromDefault": {
|
|
5
|
+
"webauthn": "@transmit-security/authentication-sdk",
|
|
8
6
|
"ido": "@transmit-security/ido-web-sdk"
|
|
9
7
|
},
|
|
8
|
+
"exportsFromDefault": {},
|
|
10
9
|
"mainExport": "./build/mainExport",
|
|
11
10
|
"declarations": true,
|
|
12
11
|
"docs": true,
|