@seams/wallet 0.14.0 → 0.15.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/dist/.build-inputs.sha256 +1 -1
- package/dist/esm/SeamsWeb/publicApi/keyExport.js +0 -2
- package/dist/esm/SeamsWeb/walletIframe/client/router.js +0 -4
- package/dist/esm/SeamsWeb/walletIframe/shared/facadeBoundary.js +0 -4
- package/dist/esm/core/signingEngine/routerAb/ecdsaDerivation/presignaturePool.js +24 -27
- package/dist/esm/plugins/plugin-utils.js +2 -142
- package/dist/esm/react/components/AccountMenuButton/AccountMenuDialog.js +13 -89
- package/dist/esm/react/components/AccountMenuButton/AccountsSection.css +7 -1
- package/dist/esm/react/components/AccountMenuButton/AuthenticationMethodRow.js +2 -8
- package/dist/esm/react/components/AccountMenuButton/AuthenticationMethodsModal.js +4 -17
- package/dist/esm/react/components/AccountMenuButton/ExportKeysSection.css +7 -1
- package/dist/esm/react/components/AccountMenuButton/LinkedDevicesModal.css +0 -68
- package/dist/esm/react/components/AccountMenuButton/LinkedDevicesModal.js +2 -11
- package/dist/esm/react/components/AccountMenuButton/Web3AuthProfileButton.css +95 -3
- package/dist/esm/react/components/AccountMenuButton/icons/HoverArrowIcon.js +26 -0
- package/dist/esm/react/components/AccountMenuButton/index.js +4 -4
- package/dist/esm/react/styles/styles.css +102 -4
- package/dist/esm/sdk/ecdsaDerivationExport-DOGzq0qC.js +1 -0
- package/dist/esm/sdk/exportKeypairOperation-DzbjKbnk.js +1 -0
- package/dist/esm/sdk/{host-D3Q_NsmE.js → host-DYuu07E5.js} +1 -1
- package/dist/{public/sdk/presignaturePool-DX_hqZ6Z.js → esm/sdk/presignaturePool-V10fZpG3.js} +1 -1
- package/dist/esm/sdk/{runtime-auth-DDOPe7LO.js → runtime-auth-BNR1wI8E.js} +1 -1
- package/dist/esm/sdk/{runtime-device-link-Bkt5AJAI.js → runtime-device-link-Dq8g_UNb.js} +1 -1
- package/dist/{public/sdk/runtime-ecdsa-tempo-DUOkCNFT.js → esm/sdk/runtime-ecdsa-tempo-AGjT7Xpa.js} +1 -1
- package/dist/esm/sdk/{runtime-email-otp-Bsv55Gin.js → runtime-email-otp-BpBOuSsT.js} +1 -1
- package/dist/esm/sdk/{runtime-export-D7QKXvdg.js → runtime-export-CBsacCPY.js} +1 -1
- package/dist/esm/sdk/{runtime-near-Bl7bBU2g.js → runtime-near-J3hKjC7G.js} +1 -1
- package/dist/esm/sdk/{runtime-preferences-C2Rqmp7q.js → runtime-preferences-CVt5sLvm.js} +1 -1
- package/dist/esm/sdk/{runtime-recovery-BMY7AkJq.js → runtime-recovery-BzewdcoT.js} +1 -1
- package/dist/{public/sdk/secp256k1-CL273JMp.js → esm/sdk/secp256k1-CKq7_HD-.js} +1 -1
- package/dist/esm/sdk/shared-BywEqTsd.js +6 -0
- package/dist/esm/sdk/{signEvmFamily-BE0a14MT.js → signEvmFamily-Cpm3e6Zs.js} +1 -1
- package/dist/esm/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/public/headers.manifest.json +1 -1
- package/dist/public/sdk/ecdsaDerivationExport-DOGzq0qC.js +1 -0
- package/dist/public/sdk/exportKeypairOperation-DzbjKbnk.js +1 -0
- package/dist/public/sdk/{host-D3Q_NsmE.js → host-DYuu07E5.js} +1 -1
- package/dist/{esm/sdk/presignaturePool-DX_hqZ6Z.js → public/sdk/presignaturePool-V10fZpG3.js} +1 -1
- package/dist/public/sdk/{runtime-auth-DDOPe7LO.js → runtime-auth-BNR1wI8E.js} +1 -1
- package/dist/public/sdk/{runtime-device-link-Bkt5AJAI.js → runtime-device-link-Dq8g_UNb.js} +1 -1
- package/dist/{esm/sdk/runtime-ecdsa-tempo-DUOkCNFT.js → public/sdk/runtime-ecdsa-tempo-AGjT7Xpa.js} +1 -1
- package/dist/public/sdk/{runtime-email-otp-Bsv55Gin.js → runtime-email-otp-BpBOuSsT.js} +1 -1
- package/dist/public/sdk/{runtime-export-D7QKXvdg.js → runtime-export-CBsacCPY.js} +1 -1
- package/dist/public/sdk/{runtime-near-Bl7bBU2g.js → runtime-near-J3hKjC7G.js} +1 -1
- package/dist/public/sdk/{runtime-preferences-C2Rqmp7q.js → runtime-preferences-CVt5sLvm.js} +1 -1
- package/dist/public/sdk/{runtime-recovery-BMY7AkJq.js → runtime-recovery-BzewdcoT.js} +1 -1
- package/dist/{esm/sdk/secp256k1-CL273JMp.js → public/sdk/secp256k1-CKq7_HD-.js} +1 -1
- package/dist/public/sdk/shared-BywEqTsd.js +6 -0
- package/dist/public/sdk/{signEvmFamily-BE0a14MT.js → signEvmFamily-Cpm3e6Zs.js} +1 -1
- package/dist/public/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/public/wallet-assets.manifest.json +32 -32
- package/dist/public/wallet-service/index.html +4 -4
- package/dist/types/shared-ts/src/device-linking/contracts.d.ts +0 -9
- package/dist/types/shared-ts/src/utils/routerAbEcdsaDerivation.d.ts +0 -1
- package/dist/types/wallet/src/SeamsWeb/operations/auth/login.d.ts +1 -2
- package/dist/types/wallet/src/SeamsWeb/publicApi/types.d.ts +2 -11
- package/dist/types/wallet/src/core/signingEngine/flows/recovery/keyExportFlow.d.ts +0 -3
- package/dist/types/wallet/src/core/signingEngine/routerAb/ecdsaDerivation/presignaturePool.d.ts +0 -19
- package/dist/types/wallet/src/core/signingEngine/session/identity/ownerLaneScope.d.ts +0 -27
- package/dist/types/wallet/src/plugins/plugin-utils.d.ts +0 -30
- package/dist/types/wallet/src/react/components/AccountMenuButton/AccountMenuDialog.d.ts +1 -9
- package/dist/types/wallet/src/react/components/AccountMenuButton/AuthenticationMethodsModal.d.ts +1 -1
- package/dist/types/wallet/src/react/components/AccountMenuButton/LinkedDevicesModal.d.ts +1 -1
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/HoverArrowIcon.d.ts +7 -0
- package/package.json +1 -1
- package/dist/esm/plugins/headers.js +0 -55
- package/dist/esm/plugins/next.js +0 -196
- package/dist/esm/plugins/shared-ts/src/utils/normalize.js +0 -31
- package/dist/esm/plugins/vite.js +0 -293
- package/dist/esm/react/components/AccountMenuButton/icons/LayersIcon.js +0 -8
- package/dist/esm/sdk/ecdsaDerivationExport-CuNIssOt.js +0 -1
- package/dist/esm/sdk/exportKeypairOperation-Bql0I-8U.js +0 -1
- package/dist/esm/sdk/shared-CNT5EU_h.js +0 -6
- package/dist/public/sdk/ecdsaDerivationExport-CuNIssOt.js +0 -1
- package/dist/public/sdk/exportKeypairOperation-Bql0I-8U.js +0 -1
- package/dist/public/sdk/shared-CNT5EU_h.js +0 -6
- package/dist/types/wallet/src/plugins/headers.d.ts +0 -25
- package/dist/types/wallet/src/plugins/next.d.ts +0 -66
- package/dist/types/wallet/src/plugins/vite.d.ts +0 -74
- package/dist/types/wallet/src/react/components/AccountMenuButton/icons/LayersIcon.d.ts +0 -2
- /package/dist/esm/plugins/{wallet/src/core → core}/browser/walletIframe/hostVariant.js +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@seams/wallet",
|
|
4
|
-
"packageVersion": "0.
|
|
4
|
+
"packageVersion": "0.15.1",
|
|
5
5
|
"assetRoot": "dist/public",
|
|
6
6
|
"sdkBasePath": "/sdk",
|
|
7
7
|
"walletServicePath": "/wallet-service",
|
|
8
8
|
"headersManifest": "headers.manifest.json",
|
|
9
9
|
"versionSkewContract": {
|
|
10
10
|
"kind": "wallet_iframe_protocol_handshake",
|
|
11
|
-
"packageVersion": "0.
|
|
11
|
+
"packageVersion": "0.15.1",
|
|
12
12
|
"protocolVersion": "16.0.0",
|
|
13
13
|
"readyPayloadField": "protocolVersion",
|
|
14
14
|
"failureMode": "typed_error",
|
|
@@ -682,8 +682,8 @@
|
|
|
682
682
|
]
|
|
683
683
|
},
|
|
684
684
|
{
|
|
685
|
-
"route": "/sdk/ecdsaDerivationExport-
|
|
686
|
-
"sourceFile": "sdk/ecdsaDerivationExport-
|
|
685
|
+
"route": "/sdk/ecdsaDerivationExport-DOGzq0qC.js",
|
|
686
|
+
"sourceFile": "sdk/ecdsaDerivationExport-DOGzq0qC.js",
|
|
687
687
|
"owner": "wallet_sdk_asset",
|
|
688
688
|
"routeClass": "javascript",
|
|
689
689
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -922,8 +922,8 @@
|
|
|
922
922
|
]
|
|
923
923
|
},
|
|
924
924
|
{
|
|
925
|
-
"route": "/sdk/exportKeypairOperation-
|
|
926
|
-
"sourceFile": "sdk/exportKeypairOperation-
|
|
925
|
+
"route": "/sdk/exportKeypairOperation-DzbjKbnk.js",
|
|
926
|
+
"sourceFile": "sdk/exportKeypairOperation-DzbjKbnk.js",
|
|
927
927
|
"owner": "wallet_sdk_asset",
|
|
928
928
|
"routeClass": "javascript",
|
|
929
929
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -970,8 +970,8 @@
|
|
|
970
970
|
]
|
|
971
971
|
},
|
|
972
972
|
{
|
|
973
|
-
"route": "/sdk/host-
|
|
974
|
-
"sourceFile": "sdk/host-
|
|
973
|
+
"route": "/sdk/host-DYuu07E5.js",
|
|
974
|
+
"sourceFile": "sdk/host-DYuu07E5.js",
|
|
975
975
|
"owner": "wallet_sdk_asset",
|
|
976
976
|
"routeClass": "javascript",
|
|
977
977
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -1402,8 +1402,8 @@
|
|
|
1402
1402
|
]
|
|
1403
1403
|
},
|
|
1404
1404
|
{
|
|
1405
|
-
"route": "/sdk/presignaturePool-
|
|
1406
|
-
"sourceFile": "sdk/presignaturePool-
|
|
1405
|
+
"route": "/sdk/presignaturePool-V10fZpG3.js",
|
|
1406
|
+
"sourceFile": "sdk/presignaturePool-V10fZpG3.js",
|
|
1407
1407
|
"owner": "wallet_sdk_asset",
|
|
1408
1408
|
"routeClass": "javascript",
|
|
1409
1409
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -1810,8 +1810,8 @@
|
|
|
1810
1810
|
]
|
|
1811
1811
|
},
|
|
1812
1812
|
{
|
|
1813
|
-
"route": "/sdk/runtime-auth-
|
|
1814
|
-
"sourceFile": "sdk/runtime-auth-
|
|
1813
|
+
"route": "/sdk/runtime-auth-BNR1wI8E.js",
|
|
1814
|
+
"sourceFile": "sdk/runtime-auth-BNR1wI8E.js",
|
|
1815
1815
|
"owner": "wallet_sdk_asset",
|
|
1816
1816
|
"routeClass": "javascript",
|
|
1817
1817
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -1834,8 +1834,8 @@
|
|
|
1834
1834
|
]
|
|
1835
1835
|
},
|
|
1836
1836
|
{
|
|
1837
|
-
"route": "/sdk/runtime-device-link-
|
|
1838
|
-
"sourceFile": "sdk/runtime-device-link-
|
|
1837
|
+
"route": "/sdk/runtime-device-link-Dq8g_UNb.js",
|
|
1838
|
+
"sourceFile": "sdk/runtime-device-link-Dq8g_UNb.js",
|
|
1839
1839
|
"owner": "wallet_sdk_asset",
|
|
1840
1840
|
"routeClass": "javascript",
|
|
1841
1841
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -1858,8 +1858,8 @@
|
|
|
1858
1858
|
]
|
|
1859
1859
|
},
|
|
1860
1860
|
{
|
|
1861
|
-
"route": "/sdk/runtime-ecdsa-tempo-
|
|
1862
|
-
"sourceFile": "sdk/runtime-ecdsa-tempo-
|
|
1861
|
+
"route": "/sdk/runtime-ecdsa-tempo-AGjT7Xpa.js",
|
|
1862
|
+
"sourceFile": "sdk/runtime-ecdsa-tempo-AGjT7Xpa.js",
|
|
1863
1863
|
"owner": "wallet_sdk_asset",
|
|
1864
1864
|
"routeClass": "javascript",
|
|
1865
1865
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -1882,8 +1882,8 @@
|
|
|
1882
1882
|
]
|
|
1883
1883
|
},
|
|
1884
1884
|
{
|
|
1885
|
-
"route": "/sdk/runtime-email-otp-
|
|
1886
|
-
"sourceFile": "sdk/runtime-email-otp-
|
|
1885
|
+
"route": "/sdk/runtime-email-otp-BpBOuSsT.js",
|
|
1886
|
+
"sourceFile": "sdk/runtime-email-otp-BpBOuSsT.js",
|
|
1887
1887
|
"owner": "wallet_sdk_asset",
|
|
1888
1888
|
"routeClass": "javascript",
|
|
1889
1889
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -1906,8 +1906,8 @@
|
|
|
1906
1906
|
]
|
|
1907
1907
|
},
|
|
1908
1908
|
{
|
|
1909
|
-
"route": "/sdk/runtime-export-
|
|
1910
|
-
"sourceFile": "sdk/runtime-export-
|
|
1909
|
+
"route": "/sdk/runtime-export-CBsacCPY.js",
|
|
1910
|
+
"sourceFile": "sdk/runtime-export-CBsacCPY.js",
|
|
1911
1911
|
"owner": "wallet_sdk_asset",
|
|
1912
1912
|
"routeClass": "javascript",
|
|
1913
1913
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -1930,8 +1930,8 @@
|
|
|
1930
1930
|
]
|
|
1931
1931
|
},
|
|
1932
1932
|
{
|
|
1933
|
-
"route": "/sdk/runtime-near-
|
|
1934
|
-
"sourceFile": "sdk/runtime-near-
|
|
1933
|
+
"route": "/sdk/runtime-near-J3hKjC7G.js",
|
|
1934
|
+
"sourceFile": "sdk/runtime-near-J3hKjC7G.js",
|
|
1935
1935
|
"owner": "wallet_sdk_asset",
|
|
1936
1936
|
"routeClass": "javascript",
|
|
1937
1937
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -1954,8 +1954,8 @@
|
|
|
1954
1954
|
]
|
|
1955
1955
|
},
|
|
1956
1956
|
{
|
|
1957
|
-
"route": "/sdk/runtime-preferences-
|
|
1958
|
-
"sourceFile": "sdk/runtime-preferences-
|
|
1957
|
+
"route": "/sdk/runtime-preferences-CVt5sLvm.js",
|
|
1958
|
+
"sourceFile": "sdk/runtime-preferences-CVt5sLvm.js",
|
|
1959
1959
|
"owner": "wallet_sdk_asset",
|
|
1960
1960
|
"routeClass": "javascript",
|
|
1961
1961
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -1978,8 +1978,8 @@
|
|
|
1978
1978
|
]
|
|
1979
1979
|
},
|
|
1980
1980
|
{
|
|
1981
|
-
"route": "/sdk/runtime-recovery-
|
|
1982
|
-
"sourceFile": "sdk/runtime-recovery-
|
|
1981
|
+
"route": "/sdk/runtime-recovery-BzewdcoT.js",
|
|
1982
|
+
"sourceFile": "sdk/runtime-recovery-BzewdcoT.js",
|
|
1983
1983
|
"owner": "wallet_sdk_asset",
|
|
1984
1984
|
"routeClass": "javascript",
|
|
1985
1985
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -2050,8 +2050,8 @@
|
|
|
2050
2050
|
]
|
|
2051
2051
|
},
|
|
2052
2052
|
{
|
|
2053
|
-
"route": "/sdk/secp256k1-
|
|
2054
|
-
"sourceFile": "sdk/secp256k1-
|
|
2053
|
+
"route": "/sdk/secp256k1-CKq7_HD-.js",
|
|
2054
|
+
"sourceFile": "sdk/secp256k1-CKq7_HD-.js",
|
|
2055
2055
|
"owner": "wallet_sdk_asset",
|
|
2056
2056
|
"routeClass": "javascript",
|
|
2057
2057
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -2122,8 +2122,8 @@
|
|
|
2122
2122
|
]
|
|
2123
2123
|
},
|
|
2124
2124
|
{
|
|
2125
|
-
"route": "/sdk/shared-
|
|
2126
|
-
"sourceFile": "sdk/shared-
|
|
2125
|
+
"route": "/sdk/shared-BywEqTsd.js",
|
|
2126
|
+
"sourceFile": "sdk/shared-BywEqTsd.js",
|
|
2127
2127
|
"owner": "wallet_sdk_asset",
|
|
2128
2128
|
"routeClass": "javascript",
|
|
2129
2129
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -2242,8 +2242,8 @@
|
|
|
2242
2242
|
]
|
|
2243
2243
|
},
|
|
2244
2244
|
{
|
|
2245
|
-
"route": "/sdk/signEvmFamily-
|
|
2246
|
-
"sourceFile": "sdk/signEvmFamily-
|
|
2245
|
+
"route": "/sdk/signEvmFamily-Cpm3e6Zs.js",
|
|
2246
|
+
"sourceFile": "sdk/signEvmFamily-Cpm3e6Zs.js",
|
|
2247
2247
|
"owner": "wallet_sdk_asset",
|
|
2248
2248
|
"routeClass": "javascript",
|
|
2249
2249
|
"contentType": "text/javascript; charset=utf-8",
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<title>Web3Authn Wallet Service</title>
|
|
7
7
|
<!-- Surface styles are external so strict CSP can keep style-src 'self' -->
|
|
8
|
-
<link rel="stylesheet" href="/sdk/wallet-ui.css?v=0.
|
|
8
|
+
<link rel="stylesheet" href="/sdk/wallet-ui.css?v=0.15.1" />
|
|
9
9
|
<!-- Minimal shims some ESM bundles expect (externalized to enable strict CSP) -->
|
|
10
|
-
<script src="/sdk/wallet-shims.js?v=0.
|
|
10
|
+
<script src="/sdk/wallet-shims.js?v=0.15.1"></script>
|
|
11
11
|
<!-- Hint the browser to fetch the host script earlier -->
|
|
12
|
-
<link rel="modulepreload" href="/sdk/wallet-iframe-host-runtime.js?v=0.
|
|
12
|
+
<link rel="modulepreload" href="/sdk/wallet-iframe-host-runtime.js?v=0.15.1" crossorigin>
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<!-- sdkBasePath points to the SDK root (e.g. '/sdk'). Load the host directly. -->
|
|
16
|
-
<script type="module" src="/sdk/wallet-iframe-host-runtime.js?v=0.
|
|
16
|
+
<script type="module" src="/sdk/wallet-iframe-host-runtime.js?v=0.15.1"></script>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -698,12 +698,6 @@ export type LocalAuthorityInstallationReceiptV1 = {
|
|
|
698
698
|
readonly targetFactorVerificationDigestB64u: DigestB64u;
|
|
699
699
|
readonly installedAtMs: number;
|
|
700
700
|
};
|
|
701
|
-
type RelinkRequiredReasonV1 = {
|
|
702
|
-
readonly kind: 'incomplete_migrated_enrollment';
|
|
703
|
-
} | {
|
|
704
|
-
readonly kind: 'missing_canonical_local_material';
|
|
705
|
-
readonly activation: MpcMaterialActivationRef;
|
|
706
|
-
};
|
|
707
701
|
export type LinkIntegrityFailureV1 = {
|
|
708
702
|
readonly kind: 'authority_id_mismatch';
|
|
709
703
|
readonly expectedAuthorityId: WalletAuthorityId;
|
|
@@ -749,9 +743,6 @@ export type LinkedAuthorityActivationResultV1 = {
|
|
|
749
743
|
} | {
|
|
750
744
|
readonly kind: 'failed_before_commit';
|
|
751
745
|
readonly reason: LinkPrecommitFailureV1;
|
|
752
|
-
} | {
|
|
753
|
-
readonly kind: 'relink_required';
|
|
754
|
-
readonly reason: RelinkRequiredReasonV1;
|
|
755
746
|
} | {
|
|
756
747
|
readonly kind: 'integrity_error';
|
|
757
748
|
readonly reason: LinkIntegrityFailureV1;
|
|
@@ -611,7 +611,6 @@ export declare function sameRouterAbEcdsaRegistrationActivationReceiptV1(left: R
|
|
|
611
611
|
export declare function sameRouterAbEcdsaDerivationNormalSigningStateV1(left: RouterAbEcdsaDerivationNormalSigningStateV1, right: RouterAbEcdsaDerivationNormalSigningStateV1): boolean;
|
|
612
612
|
export declare function sameRouterAbEcdsaDerivationPublicCapabilityV1(left: RouterAbEcdsaDerivationPublicCapabilityV1, right: RouterAbEcdsaDerivationPublicCapabilityV1): boolean;
|
|
613
613
|
export declare function routerAbEcdsaRerandomizationClientCommitmentV1(contribution32: Uint8Array): Promise<Uint8Array>;
|
|
614
|
-
export declare function routerAbEcdsaDerivationContextBindingB64uV1(context: RouterAbEcdsaDerivationStableKeyContextV1): Promise<string>;
|
|
615
614
|
export declare function routerAbEcdsaDerivationNormalSigningScopeCanonicalBytesV1(scope: RouterAbEcdsaDerivationNormalSigningScopeV1): Uint8Array;
|
|
616
615
|
export declare function sameRouterAbEcdsaDerivationNormalSigningScopeV1(left: RouterAbEcdsaDerivationNormalSigningScopeV1, right: RouterAbEcdsaDerivationNormalSigningScopeV1): boolean;
|
|
617
616
|
export declare function routerAbEcdsaDerivationEvmDigestSigningRequestDigestV1(request: RouterAbEcdsaDerivationEvmDigestSigningRequestV1Wire): Promise<RouterAbPublicDigest32V1Wire>;
|
|
@@ -8,7 +8,7 @@ import type { ActiveWalletSessionV1, WalletSessionOperationCredentialV1 } from '
|
|
|
8
8
|
import { type WalletAuthMethodId } from '../../../../../shared-ts/src/utils/domainIds';
|
|
9
9
|
import { type EmailOtpWalletAuthAuthority, type EmailOtpProvider } from '../../../../../shared-ts/src/utils/walletAuthAuthority';
|
|
10
10
|
import type { ActiveEmailOtpWalletAuthMethodRecordV2, ActivePasskeyWalletAuthMethodRecordV2, ActiveWalletAuthMethodRecordV2 } from '../../../../../shared-ts/src/utils/walletAuthMethodRecord';
|
|
11
|
-
import type {
|
|
11
|
+
import type { WalletAuthorityExportRootRecordV1, WalletAuthoritySignerMaterialRecordV1, WalletSelectionRecordV1 } from '../../../core/indexedDB/passkeyClientDB.types';
|
|
12
12
|
import { type WalletId } from '../../../core/signingEngine/interfaces/ecdsaChainTarget';
|
|
13
13
|
import { type WalletUnlockSubjectSet } from './walletUnlockSubject';
|
|
14
14
|
export declare function resolveExactLinkedEmailOtpAuthority(args: {
|
|
@@ -122,7 +122,6 @@ export type LocalLoginAuthMethod = {
|
|
|
122
122
|
readonly authMethod: 'email_otp';
|
|
123
123
|
readonly emailAddress: string | null;
|
|
124
124
|
};
|
|
125
|
-
export declare function projectLocalLoginAuthMethods(projections: readonly LocalWalletAuthMethodProjectionV2[]): LocalLoginAuthMethod[];
|
|
126
125
|
export declare function listLocalLoginAuthMethods(): Promise<LocalLoginAuthMethod[]>;
|
|
127
126
|
/** Lock clears authentication and volatile signing material. */
|
|
128
127
|
export type LockOperationContext = {
|
|
@@ -694,17 +694,11 @@ export interface DevicesCapability {
|
|
|
694
694
|
}
|
|
695
695
|
type KeyExportUiOptions = SigningEngineExportKeypairWithUIInput['options'];
|
|
696
696
|
/**
|
|
697
|
-
* What `exportKey` did.
|
|
698
|
-
*
|
|
699
|
-
* `relink_required` is a real, reachable state — the wallet has no canonical
|
|
700
|
-
* owner binding on this device — and is returned rather than thrown so the
|
|
701
|
-
* caller can route the person to re-link instead of showing a generic error.
|
|
697
|
+
* What `exportKey` did. A missing export lane or material rejects with an exact
|
|
698
|
+
* export-lane or material error instead.
|
|
702
699
|
*/
|
|
703
700
|
export type KeyExportOutcome = {
|
|
704
701
|
kind: 'exported';
|
|
705
|
-
} | {
|
|
706
|
-
kind: 'relink_required';
|
|
707
|
-
reason: 'missing_canonical_owner_binding';
|
|
708
702
|
};
|
|
709
703
|
export type ExportKeyInput = ExclusiveUnion<{
|
|
710
704
|
kind: 'ed25519';
|
|
@@ -724,9 +718,6 @@ export type ExportKeyInput = ExclusiveUnion<{
|
|
|
724
718
|
export interface KeyExportCapability {
|
|
725
719
|
/**
|
|
726
720
|
* Resolve the exact export lane, then open the wallet-origin export viewer.
|
|
727
|
-
*
|
|
728
|
-
* One call: the lane resolution feeds straight into the export, and the
|
|
729
|
-
* `relink_required` lane comes back as a result instead of an exception.
|
|
730
721
|
*/
|
|
731
722
|
exportKey(input: ExportKeyInput): Promise<KeyExportOutcome>;
|
|
732
723
|
}
|
|
@@ -37,9 +37,6 @@ export type SigningEngineResolveExactKeyExportLaneInput = ExclusiveUnion<{
|
|
|
37
37
|
walletSession: WalletSessionRef;
|
|
38
38
|
}>;
|
|
39
39
|
export type SigningEngineResolveExactKeyExportLaneResult = {
|
|
40
|
-
kind: 'relink_required';
|
|
41
|
-
reason: 'missing_canonical_owner_binding';
|
|
42
|
-
} | {
|
|
43
40
|
kind: 'ecdsa';
|
|
44
41
|
laneIdentity: ExactEcdsaSigningLaneIdentity;
|
|
45
42
|
} | {
|
package/dist/types/wallet/src/core/signingEngine/routerAb/ecdsaDerivation/presignaturePool.d.ts
CHANGED
|
@@ -141,31 +141,12 @@ export declare function waitForRouterAbEcdsaDerivationClientPresignaturePoolRead
|
|
|
141
141
|
}): Promise<boolean>;
|
|
142
142
|
export declare function clearAllRouterAbEcdsaDerivationClientPresignatures(): void;
|
|
143
143
|
export declare function clearRouterAbEcdsaDerivationClientPresignaturesForWallet(walletIdInput: string): void;
|
|
144
|
-
export declare function getRouterAbEcdsaDerivationClientPresignaturePoolDepth(args: {
|
|
145
|
-
ownershipGeneration: number;
|
|
146
|
-
relayerUrl: string;
|
|
147
|
-
scope: RouterAbEcdsaDerivationNormalSigningScopeV1;
|
|
148
|
-
materialActivation: RouterAbMpcMaterialActivationRefWire;
|
|
149
|
-
}): number;
|
|
150
144
|
type PresignatureRefillScheduleInput = RouterAbEcdsaDerivationClientPresignatureRefillInput & {
|
|
151
145
|
poolPolicy?: RouterAbEcdsaDerivationPresignaturePoolPolicyInput | RouterAbEcdsaDerivationPresignaturePoolPolicy;
|
|
152
146
|
targetDepth?: number;
|
|
153
147
|
triggerIfDepthAtOrBelow?: number;
|
|
154
148
|
};
|
|
155
149
|
export declare function scheduleRouterAbEcdsaDerivationClientPresignaturePoolRefill(args: PresignatureRefillScheduleInput): RouterAbEcdsaDerivationClientPresignatureRefillScheduleResult;
|
|
156
|
-
type EcdsaPoolSigningInput = {
|
|
157
|
-
relayerUrl: string;
|
|
158
|
-
scope: RouterAbEcdsaDerivationNormalSigningScopeV1;
|
|
159
|
-
operationId: string;
|
|
160
|
-
operationDigests: RouterAbEcdsaDerivationOperationDigestsV1Wire;
|
|
161
|
-
materialActivation: RouterAbMpcMaterialActivationRefWire;
|
|
162
|
-
credential: RouterAbEcdsaPresignCredential;
|
|
163
|
-
signingDigest32: Uint8Array;
|
|
164
|
-
clientSigningMaterial: RouterAbEcdsaDerivationClientSigningMaterialSource;
|
|
165
|
-
expiresAtMs?: number;
|
|
166
|
-
workerCtx: WorkerOperationContext;
|
|
167
|
-
} & RouterAbEcdsaDerivationSigningAuthorization;
|
|
168
|
-
export declare function signRouterAbEcdsaDerivationDigestWithPoolHit(args: EcdsaPoolSigningInput): Promise<RouterAbEcdsaDerivationCoordinatorResult>;
|
|
169
150
|
export declare function signRouterAbEcdsaDerivationDigestWithPool(args: {
|
|
170
151
|
relayerUrl: string;
|
|
171
152
|
scope: RouterAbEcdsaDerivationNormalSigningScopeV1;
|
|
@@ -25,20 +25,6 @@ export type OwnerLaneScopeStores = {
|
|
|
25
25
|
export declare class OwnerLaneScopeIntegrityError extends Error {
|
|
26
26
|
constructor(message: string);
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
29
|
-
* The active authority names a credential this device holds no active
|
|
30
|
-
* canonical wallet auth method for: a pre-Phase-8 enrollment (or a device
|
|
31
|
-
* whose canonical state was removed). It cannot act as a human owner until it
|
|
32
|
-
* links again. Distinct from OwnerLaneScopeIntegrityError so request
|
|
33
|
-
* boundaries and the UI can surface "link this device again" instead of a
|
|
34
|
-
* generic integrity failure.
|
|
35
|
-
*/
|
|
36
|
-
declare class OwnerRelinkRequiredError extends Error {
|
|
37
|
-
readonly code: "relink_required";
|
|
38
|
-
readonly reason: "missing_canonical_owner_binding";
|
|
39
|
-
constructor(walletAuthMethodId: string);
|
|
40
|
-
}
|
|
41
|
-
export declare function isOwnerRelinkRequiredError(error: unknown): error is OwnerRelinkRequiredError;
|
|
42
28
|
export declare function resolveExactWalletAuthAuthority(args: {
|
|
43
29
|
readonly authMethod: ActiveWalletAuthMethodRecordV2;
|
|
44
30
|
readonly stores: OwnerLaneScopeStores;
|
|
@@ -69,17 +55,4 @@ export declare function resolveExactOwnerLaneScope(args: {
|
|
|
69
55
|
readonly authMethod: ActiveWalletAuthMethodRecordV2;
|
|
70
56
|
readonly stores: OwnerLaneScopeStores;
|
|
71
57
|
}): Promise<OwnerLaneScope>;
|
|
72
|
-
/**
|
|
73
|
-
* Owner derivation chain: active Wallet Session authority -> one active
|
|
74
|
-
* wallet auth method -> exact credential -> exact local authenticator and
|
|
75
|
-
* signer slot (Passkey only). Every value comes from the previous link, and
|
|
76
|
-
* the resolved method must reproduce the authority digest the active session
|
|
77
|
-
* carries. Missing or duplicate records are integrity failures — timestamps,
|
|
78
|
-
* labels, and slot searches never select another owner.
|
|
79
|
-
*/
|
|
80
|
-
export declare function resolveOwnerLaneScope(args: {
|
|
81
|
-
readonly authorityRef: WalletAuthAuthorityRef;
|
|
82
|
-
readonly stores: OwnerLaneScopeStores;
|
|
83
|
-
}): Promise<OwnerLaneScope>;
|
|
84
|
-
export {};
|
|
85
58
|
//# sourceMappingURL=ownerLaneScope.d.ts.map
|
|
@@ -1,33 +1,3 @@
|
|
|
1
1
|
import { type WalletHostVariant } from '../core/browser/walletIframe/hostVariant';
|
|
2
|
-
export declare function addPreconnectLink(res: any, origin?: string): void;
|
|
3
2
|
export declare function buildWalletServiceHtml(sdkBasePath?: string, assetVersion?: string, walletHostVariant?: WalletHostVariant): string;
|
|
4
|
-
export declare function resolveCoepMode(explicit?: 'strict' | 'off'): 'strict' | 'off';
|
|
5
|
-
export declare function applyCoepCorpIfNeeded(res: any, coepMode?: 'strict' | 'off'): void;
|
|
6
|
-
export declare function echoCorsFromRequest(res: any, req: any, opts?: {
|
|
7
|
-
honorExistingAcaOrigin?: boolean;
|
|
8
|
-
allowCredentialsWhenExplicit?: boolean;
|
|
9
|
-
methods?: string;
|
|
10
|
-
headers?: string;
|
|
11
|
-
handlePreflight?: boolean;
|
|
12
|
-
}): boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Log and validate Related Origin Requests (ROR) configuration.
|
|
15
|
-
* - Prints the well-known endpoint and the configured origins list.
|
|
16
|
-
* - Warns if any origins are not absolute (e.g., missing protocol/hostname).
|
|
17
|
-
*/
|
|
18
|
-
export declare function logRorConfig(origins: string[], endpoint?: string): void;
|
|
19
|
-
type RorOriginsInput = {
|
|
20
|
-
configuredOrigins: readonly string[];
|
|
21
|
-
docsOrigin: string;
|
|
22
|
-
walletOrigin: string;
|
|
23
|
-
};
|
|
24
|
-
export declare function parseConfiguredRorOrigins(value: string): string[];
|
|
25
|
-
export declare function resolveRorOrigins(input: RorOriginsInput): string[];
|
|
26
|
-
/**
|
|
27
|
-
* Infer and set a proper Content-Type header for a given file path.
|
|
28
|
-
* Shared by both app and wallet-iframe dev servers.
|
|
29
|
-
*/
|
|
30
|
-
export declare function setContentType(res: any, filePath: string): void;
|
|
31
|
-
export { toBasePath } from '../../../shared-ts/src/utils/validation';
|
|
32
|
-
export declare function resolveSdkDistRoot(explicit?: string): string;
|
|
33
3
|
//# sourceMappingURL=plugin-utils.d.ts.map
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type AccountMenuDialogPresentation = '
|
|
3
|
-
export declare function useAccountMenuDialogKeyboard(input: {
|
|
4
|
-
readonly isOpen: boolean;
|
|
5
|
-
readonly presentation: AccountMenuDialogPresentation;
|
|
6
|
-
readonly onClose: () => void;
|
|
7
|
-
readonly dialogRef: React.RefObject<HTMLDivElement | null>;
|
|
8
|
-
readonly focusableSelector: string;
|
|
9
|
-
}): void;
|
|
2
|
+
type AccountMenuDialogPresentation = 'page' | 'embedded';
|
|
10
3
|
export declare const AccountMenuDialogFrame: React.FC<{
|
|
11
4
|
readonly presentation: AccountMenuDialogPresentation;
|
|
12
5
|
readonly onClose: () => void;
|
|
@@ -14,7 +7,6 @@ export declare const AccountMenuDialogFrame: React.FC<{
|
|
|
14
7
|
readonly contentClassName: string;
|
|
15
8
|
readonly titleId: string;
|
|
16
9
|
readonly title: string;
|
|
17
|
-
readonly closeLabel: string;
|
|
18
10
|
readonly children: React.ReactNode;
|
|
19
11
|
}>;
|
|
20
12
|
export {};
|
package/dist/types/wallet/src/react/components/AccountMenuButton/AuthenticationMethodsModal.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ interface AuthenticationMethodsModalProps {
|
|
|
4
4
|
readonly walletId: string | null;
|
|
5
5
|
readonly isOpen: boolean;
|
|
6
6
|
readonly onClose: () => void;
|
|
7
|
-
readonly presentation
|
|
7
|
+
readonly presentation: 'page' | 'embedded';
|
|
8
8
|
}
|
|
9
9
|
export declare const AuthenticationMethodsModal: React.FC<AuthenticationMethodsModalProps>;
|
|
10
10
|
export default AuthenticationMethodsModal;
|
|
@@ -4,7 +4,7 @@ interface LinkedDevicesModalProps {
|
|
|
4
4
|
walletId: string | null;
|
|
5
5
|
isOpen: boolean;
|
|
6
6
|
onClose: () => void;
|
|
7
|
-
presentation
|
|
7
|
+
presentation: 'page' | 'embedded';
|
|
8
8
|
}
|
|
9
9
|
export declare const LinkedDevicesModal: React.FC<LinkedDevicesModalProps>;
|
|
10
10
|
export default LinkedDevicesModal;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/** A chevron that grows a shaft on its parent's hover (">" to "->"). The
|
|
3
|
+
* parent row owns the hover selectors in Web3AuthProfileButton.css. */
|
|
4
|
+
export declare function HoverArrowIcon({ size }: {
|
|
5
|
+
size?: number;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
//# sourceMappingURL=HoverArrowIcon.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { toOriginOrUndefined } from "./shared-ts/src/utils/normalize.js";
|
|
2
|
-
//#region src/plugins/headers.ts
|
|
3
|
-
function buildPermissionsPolicy(walletOrigin) {
|
|
4
|
-
const o = toOriginOrUndefined(walletOrigin);
|
|
5
|
-
const part = (name) => `${name}=(self${o ? ` "${o}"` : ""})`;
|
|
6
|
-
return [
|
|
7
|
-
part("publickey-credentials-get"),
|
|
8
|
-
part("publickey-credentials-create"),
|
|
9
|
-
part("clipboard-read"),
|
|
10
|
-
part("clipboard-write")
|
|
11
|
-
].join(", ");
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Build a wallet-friendly Content Security Policy string.
|
|
15
|
-
*
|
|
16
|
-
* mode:
|
|
17
|
-
* - 'strict' (default): no inline styles, injects "style-src-attr 'none'", and forbids JS 'unsafe-eval'.
|
|
18
|
-
* - 'compatible': allows inline styles/scripts via 'unsafe-inline' for friendlier dev/local setups.
|
|
19
|
-
*
|
|
20
|
-
* allowUnsafeEval:
|
|
21
|
-
* - false by default. Set to true only for development servers that require eval (e.g., Next.js Fast Refresh).
|
|
22
|
-
* - Wallet pages always include 'wasm-unsafe-eval' because browser-side signer initialization uses
|
|
23
|
-
* WebAssembly compilation.
|
|
24
|
-
* - Seams SDK does not require JS 'unsafe-eval' in production.
|
|
25
|
-
*
|
|
26
|
-
* Typical usage: apply strict CSP only to the wallet HTML route
|
|
27
|
-
* (/wallet-service); do not attach CSP to host app routes.
|
|
28
|
-
*/
|
|
29
|
-
function buildWalletCsp(opts = {}) {
|
|
30
|
-
const mode = opts.mode || "strict";
|
|
31
|
-
const frame = (opts.frameSrc || []).filter(Boolean);
|
|
32
|
-
const scriptAllow = (opts.scriptSrcAllowlist || []).map((s) => toOriginOrUndefined(s) || s).filter(Boolean);
|
|
33
|
-
const scriptWasmUnsafeEval = " 'wasm-unsafe-eval'";
|
|
34
|
-
const scriptUnsafeInline = mode === "compatible" ? " 'unsafe-inline'" : "";
|
|
35
|
-
const styleUnsafeInline = mode === "compatible" ? " 'unsafe-inline'" : "";
|
|
36
|
-
const base = [
|
|
37
|
-
"default-src 'self'",
|
|
38
|
-
`script-src 'self'${scriptWasmUnsafeEval}${scriptUnsafeInline}${opts.allowUnsafeEval ? " 'unsafe-eval'" : ""}${scriptAllow.length ? " " + scriptAllow.join(" ") : ""}`,
|
|
39
|
-
`style-src 'self'${styleUnsafeInline}`,
|
|
40
|
-
"img-src 'self' data:",
|
|
41
|
-
"font-src 'self'",
|
|
42
|
-
"connect-src 'self' https:",
|
|
43
|
-
"worker-src 'self' blob:",
|
|
44
|
-
`frame-src 'self'${frame.length ? " " + frame.join(" ") : ""}`,
|
|
45
|
-
"object-src 'none'",
|
|
46
|
-
"base-uri 'none'",
|
|
47
|
-
"form-action 'none'"
|
|
48
|
-
];
|
|
49
|
-
if (mode === "strict") base.splice(2, 0, "style-src-attr 'none'");
|
|
50
|
-
return base.join("; ");
|
|
51
|
-
}
|
|
52
|
-
//#endregion
|
|
53
|
-
export { buildPermissionsPolicy, buildWalletCsp };
|
|
54
|
-
|
|
55
|
-
//# sourceMappingURL=headers.js.map
|