@seams/wallet-server 0.5.0 → 0.5.2
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/LICENSE.md +201 -0
- package/THIRD_PARTY_NOTICES.md +15095 -0
- package/artifact-manifest.json +26 -26
- package/cloudflare-router-ab/build/deriver-a/index.js +2 -2
- package/cloudflare-router-ab/build/deriver-a/index_bg.wasm +0 -0
- package/cloudflare-router-ab/build/deriver-b/index.js +2 -2
- package/cloudflare-router-ab/build/deriver-b/index_bg.wasm +0 -0
- package/cloudflare-router-ab/build/local-tools/darwin-arm64/router_ab_local_init +0 -0
- package/cloudflare-router-ab/build/local-tools/darwin-x64/router_ab_local_init +0 -0
- package/cloudflare-router-ab/build/local-tools/linux-x64/router_ab_local_init +0 -0
- package/cloudflare-router-ab/build/router/index.js +2 -2
- package/cloudflare-router-ab/build/router/index_bg.wasm +0 -0
- package/cloudflare-router-ab/build/signing-worker/index.js +2 -2
- package/cloudflare-router-ab/build/signing-worker/index_bg.wasm +0 -0
- package/cloudflare-router-ab/build/tenant-root-control-plane/index.js +2 -2
- package/cloudflare-router-ab/build/tenant-root-control-plane/index_bg.wasm +0 -0
- package/cloudflare-router-ab/wrangler.router.toml +1 -1
- package/dist/esm/router/cloudflare/d1/wallet/d1WalletAuthMethodService.js +19 -3
- package/dist/esm/router/cloudflare.js +4 -1
- package/dist/esm/router/domains/walletRegistration/walletRegistrationRoutes.js +4 -1
- package/dist/esm/router/express.js +4 -1
- package/dist/esm/wasm/evm_crypto/pkg/evm_crypto_bg.wasm +0 -0
- package/dist/esm/wasm/near_signer/pkg/wasm_signer_worker.js +4 -4
- package/dist/esm/wasm/near_signer/pkg/wasm_signer_worker_bg.wasm +0 -0
- package/dist/esm/wasm/router_ab_ecdsa_signing_worker/pkg/router_ab_ecdsa_signing_worker_bg.wasm +0 -0
- package/dist/esm/wasm/shamir3pass_runtime/pkg/shamir3pass_runtime_bg.wasm +0 -0
- package/dist/types/wallet-server/src/router/cloudflare/d1/wallet/d1WalletAuthMethodService.d.ts +4 -0
- package/dist/types/wallet-server/src/router/framework/authServicePort.d.ts +1 -0
- package/package.json +5 -3
- package/LICENSE +0 -21
|
@@ -198,10 +198,10 @@ function threshold_ed25519_decode_signed_near_tx_borsh(args) {
|
|
|
198
198
|
return takeFromExternrefTable0(ret[0]);
|
|
199
199
|
}
|
|
200
200
|
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
201
|
-
wasm.
|
|
201
|
+
wasm.closure67_externref_shim(arg0, arg1, arg2);
|
|
202
202
|
}
|
|
203
203
|
function __wbg_adapter_387(arg0, arg1, arg2, arg3) {
|
|
204
|
-
wasm.
|
|
204
|
+
wasm.closure60_externref_shim(arg0, arg1, arg2, arg3);
|
|
205
205
|
}
|
|
206
206
|
Object.freeze({
|
|
207
207
|
RequireClick: 0,
|
|
@@ -978,8 +978,8 @@ function __wbg_get_imports() {
|
|
|
978
978
|
}
|
|
979
979
|
return false;
|
|
980
980
|
};
|
|
981
|
-
imports.wbg.
|
|
982
|
-
return makeMutClosure(arg0, arg1,
|
|
981
|
+
imports.wbg.__wbindgen_closure_wrapper2623 = function(arg0, arg1, arg2) {
|
|
982
|
+
return makeMutClosure(arg0, arg1, 68, __wbg_adapter_52);
|
|
983
983
|
};
|
|
984
984
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
985
985
|
const ptr1 = passStringToWasm0(debugString(arg1), wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
Binary file
|
package/dist/esm/wasm/router_ab_ecdsa_signing_worker/pkg/router_ab_ecdsa_signing_worker_bg.wasm
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/types/wallet-server/src/router/cloudflare/d1/wallet/d1WalletAuthMethodService.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type { CloudflareD1GoogleEmailOtpRegistrationAttemptStore } from '../emai
|
|
|
13
13
|
import { type D1FreshRevokeWebAuthnVerifierV1, type D1AddAuthMethodExistingAuthResolution, type D1AddSignerExistingAuthResolution } from './d1WalletAuthMethodBoundary';
|
|
14
14
|
import type { CloudflareD1WebAuthnStore } from '../webauthn/d1WebAuthnStore';
|
|
15
15
|
import type { WalletEd25519SignerRecord } from '../../../../core/WalletStore';
|
|
16
|
+
import { type SessionOrigin } from '../../../../authorization/domain';
|
|
16
17
|
/** The wallet's Ed25519 signers, the only server record of its NEAR identity. */
|
|
17
18
|
type ListWalletEd25519SignersV1 = (walletId: WalletId) => Promise<readonly WalletEd25519SignerRecord[]>;
|
|
18
19
|
import type { CloudflareD1PasskeyCustodyEnvelopeStore } from '../passkeyCustody/d1PasskeyCustodyEnvelopeStore';
|
|
@@ -40,6 +41,7 @@ type EmailOtpSourceChallengeIssuerV1 = (input: {
|
|
|
40
41
|
readonly ownerProofBindingDigest: string;
|
|
41
42
|
readonly operation: string;
|
|
42
43
|
readonly reuseActiveChallenge: boolean;
|
|
44
|
+
readonly requestOrigin: SessionOrigin;
|
|
43
45
|
}) => Promise<{
|
|
44
46
|
readonly ok: true;
|
|
45
47
|
readonly challenge: {
|
|
@@ -62,6 +64,7 @@ type EmailOtpEnrollmentChallengeIssuerV1 = (input: {
|
|
|
62
64
|
readonly email: string;
|
|
63
65
|
readonly otpChannel: typeof EMAIL_OTP_CHANNEL;
|
|
64
66
|
readonly ownerProofBindingDigest: string;
|
|
67
|
+
readonly requestOrigin: SessionOrigin;
|
|
65
68
|
}) => Promise<{
|
|
66
69
|
readonly ok: true;
|
|
67
70
|
readonly challenge: {
|
|
@@ -146,6 +149,7 @@ export declare class CloudflareD1WalletAuthMethodService {
|
|
|
146
149
|
readonly walletId: WalletId;
|
|
147
150
|
readonly addAuthMethodIntentGrant: AddAuthMethodIntentGrant;
|
|
148
151
|
readonly addAuthMethodIntentDigestB64u: string;
|
|
152
|
+
readonly requestOrigin: SessionOrigin;
|
|
149
153
|
}): Promise<{
|
|
150
154
|
readonly ok: true;
|
|
151
155
|
readonly challengeId: string;
|
|
@@ -1160,6 +1160,7 @@ export interface RouterApiWalletAuthMethodService {
|
|
|
1160
1160
|
readonly walletId: WalletId;
|
|
1161
1161
|
readonly addAuthMethodIntentGrant: AddAuthMethodIntentGrant;
|
|
1162
1162
|
readonly addAuthMethodIntentDigestB64u: string;
|
|
1163
|
+
readonly requestOrigin: SessionOrigin;
|
|
1163
1164
|
}): Promise<{
|
|
1164
1165
|
readonly ok: true;
|
|
1165
1166
|
readonly challengeId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seams/wallet-server",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Seams server TypeScript SDK for NEAR and EVM-family wallets",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"./local-runtime/*": "./cloudflare-router-ab/scripts/*"
|
|
76
76
|
},
|
|
77
77
|
"files": [
|
|
78
|
+
"LICENSE.md",
|
|
78
79
|
"THIRD_PARTY_NOTICES.md",
|
|
79
80
|
"artifact-manifest.json",
|
|
80
81
|
"cloudflare-router-ab/",
|
|
@@ -92,7 +93,8 @@
|
|
|
92
93
|
"build": "rm -rf dist && tsc -p tsconfig.build.json && node ./scripts/rewrite-declaration-imports.mjs && rolldown -c rolldown.config.ts && node ./scripts/copy-wasm-assets.mjs",
|
|
93
94
|
"package:cloudflare-runtime": "node ./scripts/copy-cloudflare-router-runtime.mjs && node ./scripts/write-artifact-manifest.mjs",
|
|
94
95
|
"d1:local:migrate": "node ./scripts/d1-local-migrate-signer.mjs",
|
|
95
|
-
"prepack": "pnpm run package:cloudflare-runtime",
|
|
96
|
+
"prepack": "pnpm run package:cloudflare-runtime && node ../../scripts/package-license.mjs stage",
|
|
97
|
+
"postpack": "node ../../scripts/package-license.mjs clean",
|
|
96
98
|
"type-check": "tsc --noEmit"
|
|
97
99
|
},
|
|
98
100
|
"keywords": [
|
|
@@ -107,7 +109,7 @@
|
|
|
107
109
|
"sdk"
|
|
108
110
|
],
|
|
109
111
|
"author": "web3authn.org",
|
|
110
|
-
"license": "
|
|
112
|
+
"license": "Apache-2.0",
|
|
111
113
|
"repository": {
|
|
112
114
|
"type": "git",
|
|
113
115
|
"url": "git+https://github.com/seams-tech/seams-wallet.git"
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Seams
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|