@transmitsecurity/platform-web-sdk 2.4.1 → 2.5.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.
- package/CHANGELOG.md +16 -0
- package/dist/common.cjs +1 -1
- package/dist/common.js +1 -1
- package/dist/drs.cjs +1 -1
- package/dist/drs.d.ts +36 -0
- package/dist/drs.js +1 -1
- package/dist/ido.cjs +1 -1
- package/dist/ido.js +1 -1
- package/dist/idv.cjs +1 -1
- package/dist/idv.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/ts-platform-websdk.js +1 -1
- package/dist/web-sdk-drs+idv+webauthn+ido.js +1 -1
- package/dist/web-sdk.d.ts +9 -1
- package/dist/webauthn.cjs +1 -1
- package/dist/webauthn.js +1 -1
- package/package.json +7 -1
package/dist/drs.d.ts
CHANGED
|
@@ -21,6 +21,38 @@ type LightweightPayload = {
|
|
|
21
21
|
events: Array<Record<string, unknown>>;
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
+
type CryptoBindingOptions = {
|
|
25
|
+
/** Set to true if you want to scope your crypto-binding keys with your product only (default is false, to use global-platofrm scope) */
|
|
26
|
+
productScope?: boolean;
|
|
27
|
+
/** Custom database name, will be affected only if set `productScope` to true */
|
|
28
|
+
indexedDBName?: string;
|
|
29
|
+
/** Custom db-versioning, will be be affected only if set `productScope` to true */
|
|
30
|
+
dbVersion?: number;
|
|
31
|
+
/** Custom keys-store (table) name, will be affected only if set `productScope` to true */
|
|
32
|
+
keysStoreName?: string;
|
|
33
|
+
/** Set to true if product supports key rotation */
|
|
34
|
+
/** Expiry days - number of days after which the key will expire */
|
|
35
|
+
/** Started at - timestamp of the day when the rotation was enabled for the product */
|
|
36
|
+
keyRotation?: {
|
|
37
|
+
isEnabled: boolean;
|
|
38
|
+
expiryDays: number;
|
|
39
|
+
startedAt: number;
|
|
40
|
+
tenantId: string;
|
|
41
|
+
};
|
|
42
|
+
/** Timeout in milliseconds for IDB write transactions. If not set, no timeout is applied.
|
|
43
|
+
* Use to guard against browsers that silently freeze IDB (e.g. iOS 18.7 WKWebView ephemeral sessions). */
|
|
44
|
+
idbWriteTimeoutMs?: number;
|
|
45
|
+
/** @internal
|
|
46
|
+
* Warning! This flag shouldn't be used, it was added temporarily for multi-tenant support.
|
|
47
|
+
*
|
|
48
|
+
* Internal flag used when the Product SDK instance has its own client ID separate from the Platform SDK root-level client ID */
|
|
49
|
+
fallbackClientId?: string;
|
|
50
|
+
/** Optional string to scope crypto-binding keys to a separate object store.
|
|
51
|
+
* When set, keys are stored in `identifiers_store:<keyScope>` instead of the default `identifiers_store`.
|
|
52
|
+
* Use only when instructed by Transmit Security to isolate key storage between browser contexts (e.g. webview vs Safari). */
|
|
53
|
+
keyScope?: string;
|
|
54
|
+
};
|
|
55
|
+
|
|
24
56
|
type TransactionType = 'purchase' | 'bill_payment' | 'mobile_recharge' | 'money_transfer' | 'credit_transfer' | 'credit_redemption' | 'top_up' | 'withdrawal' | 'investment' | 'loan' | 'refund' | 'other';
|
|
25
57
|
type TransactionMethod = 'bank_account' | 'wire' | 'card' | 'p2p' | 'wallet';
|
|
26
58
|
type AvsMatchLevel = 'none' | 'postal' | 'street' | 'full' | 'unknown';
|
|
@@ -66,6 +98,10 @@ interface ConstructorOptions {
|
|
|
66
98
|
hasOwnClientId?: boolean;
|
|
67
99
|
/** Tier mode for the SDK: 'standard' (default) or 'lightweight' (server-to-server) */
|
|
68
100
|
tier?: 'standard' | 'lightweight';
|
|
101
|
+
/** @internal
|
|
102
|
+
* Optional configuration for crypto-binding key scoping.
|
|
103
|
+
* Use only when instructed by Transmit Security. */
|
|
104
|
+
cryptoBindingConfig?: Pick<CryptoBindingOptions, 'keyScope'>;
|
|
69
105
|
}
|
|
70
106
|
interface TransactionData {
|
|
71
107
|
amount: number;
|