@seams/wallet-server 0.10.2 → 0.12.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/THIRD_PARTY_NOTICES.md +33 -1812
- package/artifact-manifest.json +28 -28
- package/cloudflare-router-ab/build/deriver-a/build-stamp.json +1 -1
- 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/build-stamp.json +1 -1
- 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/build-stamp.json +1 -1
- 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/build-stamp.json +1 -1
- 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/build-stamp.json +1 -1
- 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/scripts/start-local-role-workers.mjs +3 -0
- package/cloudflare-router-ab/scripts/start-local-wallet-system.mjs +3 -0
- package/dist/esm/cloud-host.js +7 -7
- package/dist/esm/core/ThresholdService/kv.js +1 -218
- package/dist/esm/hosted-wallet-gateway.js +1 -1
- package/dist/esm/index.js +3 -4
- package/dist/esm/localHostedWalletGatewayHandler.js +17 -11
- package/dist/esm/localIntendedYaoFault.js +34 -3
- package/dist/esm/localIntendedYaoRecoveryFault.js +19 -16
- package/dist/esm/localIntendedYaoSigningFault.js +31 -16
- package/dist/esm/router/auth/routerApiKeyAuth.js +1 -13
- package/dist/esm/router/cloudflare/d1/auth/d1RouterApiAuthService.js +3 -3
- package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceOwnerAuthorizationProvider.js +1 -1
- package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpRecords.js +1 -1
- package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpRecoveryService.js +1 -1
- package/dist/esm/router/cloudflare/d1/emailOtp/d1GoogleEmailOtpSessionResolver.js +1 -1
- package/dist/esm/router/cloudflare/d1/registration/d1RegistrationCeremonyRecordStore.js +19 -0
- package/dist/esm/router/cloudflare/d1/registration/d1RegistrationCeremonyRecords.js +5 -5
- package/dist/esm/router/cloudflare/d1/registration/d1RegistrationCeremonyStore.js +5 -2
- package/dist/esm/router/cloudflare/d1/registration/d1RegistrationSetupSupport.js +7 -1
- package/dist/esm/router/cloudflare/d1/registration/d1WalletRegistrationCommitStore.js +29 -4
- package/dist/esm/router/cloudflare/d1/registration/d1WalletRegistrationRead.js +6 -3
- package/dist/esm/router/cloudflare/d1/registration/d1WalletRegistrationService.js +51 -29
- package/dist/esm/router/cloudflare/d1/registration/d1WalletRegistrationSetupExecution.js +23 -7
- package/dist/esm/router/cloudflare/d1/wallet/d1WalletAddSignerFinalizeRecord.js +1 -1
- package/dist/esm/router/cloudflare/d1/wallet/d1WalletAddSignerService.js +2 -2
- package/dist/esm/router/cloudflare/d1/wallet/d1WalletAuthMethodService.js +3 -3
- package/dist/esm/router/cloudflare/d1/webauthn/d1WebAuthnAuthService.js +1 -1
- package/dist/esm/router/cloudflare/d1/webauthn/d1WebAuthnRecords.js +1 -1
- package/dist/esm/router/cloudflare-adaptor.js +2 -3
- package/dist/esm/router/cloudflare.js +2470 -2515
- package/dist/esm/router/domains/ed25519Yao/capabilityLifecycle/routerAbEd25519YaoProductRegistration.js +1 -1
- package/dist/esm/router/domains/walletRegistration/walletRegistrationRoutes.js +39 -32
- package/dist/esm/router/framework/registrationSetupDispatch.js +11 -3
- package/dist/esm/router/framework/routeResponses.js +1 -5
- package/dist/esm/router/transport/fetch/routes/deviceLinkingOwnerAuthorization.js +1 -1
- package/dist/esm/router/transport/fetch/routes/passkeyCustody.js +2 -2
- package/dist/esm/router/transport/fetch/routes/thresholdEd25519.js +51 -24
- package/dist/esm/shared-ts/src/utils/validation.js +5 -1
- package/dist/esm/threshold/session/signingSessionSeal/guards/backends.js +2 -98
- package/dist/esm/threshold/session/signingSessionSeal/idempotencyBackends.js +2 -69
- package/dist/esm/threshold/session/signingSessionSeal/index.js +3 -4
- package/dist/esm/wasm/evm_crypto/pkg/evm_crypto_bg.wasm +0 -0
- package/dist/esm/wasm/near_signer/pkg/wasm_signer_worker_bg.wasm +0 -0
- package/dist/esm/wasm/shamir3pass_runtime/pkg/shamir3pass_runtime_bg.wasm +0 -0
- package/dist/types/wallet-server/src/cloud-host.d.ts +1 -0
- package/dist/types/wallet-server/src/core/ThresholdService/kv.d.ts +0 -29
- package/dist/types/wallet-server/src/localHostedWalletGatewayHandler.d.ts +1 -1
- package/dist/types/wallet-server/src/localIntendedYaoFault.d.ts +13 -3
- package/dist/types/wallet-server/src/localIntendedYaoRecoveryFault.d.ts +4 -2
- package/dist/types/wallet-server/src/localIntendedYaoSigningFault.d.ts +4 -2
- package/dist/types/wallet-server/src/router/auth/routerApiKeyAuth.d.ts +0 -8
- package/dist/types/wallet-server/src/router/cloudflare/d1/registration/d1RegistrationCeremonyRecordStore.d.ts +2 -0
- package/dist/types/wallet-server/src/router/cloudflare/d1/registration/d1RegistrationCeremonyStore.d.ts +1 -0
- package/dist/types/wallet-server/src/router/cloudflare/d1/registration/d1RegistrationSetupSupport.d.ts +2 -0
- package/dist/types/wallet-server/src/router/cloudflare/d1/registration/d1WalletRegistrationCommitStore.d.ts +25 -5
- package/dist/types/wallet-server/src/router/cloudflare/d1/registration/d1WalletRegistrationRead.d.ts +15 -0
- package/dist/types/wallet-server/src/router/cloudflare-adaptor.d.ts +1 -3
- package/dist/types/wallet-server/src/router/domains/walletRegistration/walletRegistrationInputs.d.ts +2 -0
- package/dist/types/wallet-server/src/router/framework/routeResponses.d.ts +0 -2
- package/dist/types/wallet-server/src/threshold/session/signingSessionSeal/guards/backends.d.ts +1 -16
- package/dist/types/wallet-server/src/threshold/session/signingSessionSeal/idempotencyBackends.d.ts +1 -16
- package/dist/types/wallet-server/src/threshold/session/signingSessionSeal/index.d.ts +5 -6
- package/package.json +2 -9
- package/src/README.md +5 -3
- package/dist/esm/router/cloudflare/runtime/createSelfHostedCloudflareSigningWorker.js +0 -93
- package/dist/esm/router/express-adaptor.js +0 -84
- package/dist/esm/router/express.js +0 -26400
- package/dist/esm/router/node/nodeHostedWalletGateway.js +0 -64
- package/dist/esm/router/node/nodeHostedWalletGatewayCheck.js +0 -163
- package/dist/esm/router/node/nodeHostedWalletGatewayMain.js +0 -120
- package/dist/esm/router/node/nodeHttp.js +0 -79
- package/dist/esm/router/node/nodeSqlite.js +0 -43
- package/dist/esm/router/node/signerSqlMigrations.js +0 -48
- package/dist/esm/storage/syncSqlite.js +0 -79
- package/dist/esm/threshold/session/signingSessionSeal/transport/express.js +0 -75
- package/dist/types/wallet-server/src/router/cloudflare/runtime/createSelfHostedCloudflareSigningWorker.d.ts +0 -23
- package/dist/types/wallet-server/src/router/express-adaptor.d.ts +0 -22
- package/dist/types/wallet-server/src/router/node/nodeHostedWalletGateway.d.ts +0 -34
- package/dist/types/wallet-server/src/router/node/nodeHostedWalletGatewayCheck.d.ts +0 -21
- package/dist/types/wallet-server/src/router/node/nodeHostedWalletGatewayMain.d.ts +0 -2
- package/dist/types/wallet-server/src/router/node/nodeHttp.d.ts +0 -13
- package/dist/types/wallet-server/src/router/node/nodeSqlite.d.ts +0 -22
- package/dist/types/wallet-server/src/router/node/signerSqlMigrations.d.ts +0 -20
- package/dist/types/wallet-server/src/storage/syncSqlite.d.ts +0 -28
- package/dist/types/wallet-server/src/threshold/session/signingSessionSeal/transport/express.d.ts +0 -12
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { RouterApiServiceBag } from '../../framework/authServicePort';
|
|
2
|
-
import type { RouterApiOptions } from '../../framework/routerApi';
|
|
3
|
-
import type { CfEnv, CfExecutionContext, FetchHandler } from './cloudflare.types';
|
|
4
|
-
type SelfHostedWorker<Env> = {
|
|
5
|
-
fetch(request: Request, env: Env, ctx: CfExecutionContext): Promise<Response>;
|
|
6
|
-
};
|
|
7
|
-
export type SelfHostedCloudflareSigningWorkerFactoryInput<Env extends CfEnv = CfEnv> = {
|
|
8
|
-
readonly createAuthService: (input: {
|
|
9
|
-
readonly request: Request;
|
|
10
|
-
readonly env: Env;
|
|
11
|
-
readonly ctx: CfExecutionContext;
|
|
12
|
-
}) => RouterApiServiceBag | Promise<RouterApiServiceBag>;
|
|
13
|
-
readonly routerOptions?: RouterApiOptions | ((input: {
|
|
14
|
-
readonly request: Request;
|
|
15
|
-
readonly env: Env;
|
|
16
|
-
readonly ctx: CfExecutionContext;
|
|
17
|
-
readonly service: RouterApiServiceBag;
|
|
18
|
-
}) => RouterApiOptions | Promise<RouterApiOptions>);
|
|
19
|
-
};
|
|
20
|
-
export declare function createSelfHostedCloudflareSigningRouter(service: RouterApiServiceBag, opts?: RouterApiOptions): FetchHandler;
|
|
21
|
-
export declare function createSelfHostedCloudflareSigningWorker<Env extends CfEnv = CfEnv>(input: SelfHostedCloudflareSigningWorkerFactoryInput<Env>): SelfHostedWorker<Env>;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=createSelfHostedCloudflareSigningWorker.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type Router as ExpressRouter } from 'express';
|
|
2
|
-
import type { RouterApiServiceBag } from './framework/authServicePort';
|
|
3
|
-
import type { RouterApiOptions } from './framework/routerApi';
|
|
4
|
-
export type { RouterApiOptions, SessionAdapter, RouterApiKeyAuthFailureCode, RouterApiKeyAuthRequest, RouterApiKeyPrincipal, RouterApiKeyAuthResult, RouterApiKeyAuthAdapter, RouterApiPublishableKeyAuthFailureCode, RouterApiPublishableKeyAuthRequest, RouterApiPublishableKeyAuthResult, RouterApiPublishableKeyAuthAdapter, RouterApiUsageMeterAction, RouterApiUsageMeterEvent, RouterApiUsageMeterAdapter, RouterApiRuntimePolicyScope, RouterApiRuntimeSnapshotEnvelope, RouterApiRuntimeSnapshotConsumer, } from './framework/routerApi';
|
|
5
|
-
export { ROUTER_AB_PUBLIC_KEYSET_PATH, ROUTER_AB_PUBLIC_KEYSET_VERSION_V2, ROUTER_AB_PUBLIC_KEYSET_WELL_KNOWN_PATH, parseRouterAbPublicKeysetV2, } from '../../../shared-ts/src/utils/routerAbPublicKeyset';
|
|
6
|
-
export type { RouterAbPublicKeysetV2 } from '../../../shared-ts/src/utils/routerAbPublicKeyset';
|
|
7
|
-
export type { RouterAbNormalSigningAdmissionAdapter, RouterAbNormalSigningAdmissionFailure, RouterAbNormalSigningAdmissionFailureCode, RouterAbNormalSigningAdmissionInput, RouterAbNormalSigningAdmissionResult, } from './domains/signingOperations/routerAbNormalSigningAdmission';
|
|
8
|
-
export { InMemoryRouterAbNormalSigningAdmissionStore, createInMemoryRouterAbNormalSigningAdmissionAdapter, createInMemoryRouterAbNormalSigningAdmissionStore, createRouterAbNormalSigningAdmissionAdapter, } from './domains/signingOperations/routerAbNormalSigningAdmissionCore';
|
|
9
|
-
export type { RouterAbNormalSigningAbuseDecision, RouterAbNormalSigningPolicyDecision, RouterAbNormalSigningAdmissionStore, RouterAbNormalSigningProjectPolicyDecision, } from './domains/signingOperations/routerAbNormalSigningAdmissionCore';
|
|
10
|
-
export type { RouterApiFetchRouteExtension, RouterApiFetchRouteExtensionInput, RouterApiRouteExtension, RouterApiRouteExtensionTransport, } from './framework/routeExtensions';
|
|
11
|
-
export type { RouterApiModule, RouterApiModuleKind, RouterApiModuleOptions, } from './framework/modules';
|
|
12
|
-
export { createRouterApiModule } from './framework/modules';
|
|
13
|
-
export type { RouteDefinition } from './framework/routeDefinitions';
|
|
14
|
-
export { defineRoute } from './framework/routeDefinitions';
|
|
15
|
-
export type { InMemoryRouterApiRuntimeSnapshotConsumer, RouterApiRuntimeSnapshotPublishedUpdate, } from './framework/runtimeSnapshotConsumer';
|
|
16
|
-
export { createInMemoryRouterApiRuntimeSnapshotConsumer, validateRuntimeSnapshotExpectation, } from './framework/runtimeSnapshotConsumer';
|
|
17
|
-
export { RouterAbEd25519YaoHttpRegistrationBackend, createRouterAbEd25519YaoHttpRegistrationBackendFromEnv, } from './domains/ed25519Yao/registration/routerAbEd25519YaoHttpRegistrationBackend';
|
|
18
|
-
export type { RouterAbEd25519YaoHttpRegistrationBackendConfig, RouterAbEd25519YaoHttpRegistrationBackendRawEnv, } from './domains/ed25519Yao/registration/routerAbEd25519YaoHttpRegistrationBackend';
|
|
19
|
-
export { createRouterAbEd25519YaoProductRegistrationCompositionFromPortsV1, createRouterAbEd25519YaoProductRegistrationRuntimeV1, createRouterAbEd25519YaoProductRegistrationStateV1, } from './domains/ed25519Yao/capabilityLifecycle/routerAbEd25519YaoProductRegistration';
|
|
20
|
-
export type { RouterAbEd25519YaoProductRecoveryServicePortV1, RouterAbEd25519YaoProductRegistrationAuthorizationPortV1, RouterAbEd25519YaoProductRegistrationCompositionV1, RouterAbEd25519YaoProductRegistrationPortsV1, RouterAbEd25519YaoProductRegistrationRuntimeV1, RouterAbEd25519YaoProductRegistrationServicePortV1, RouterAbEd25519YaoProductRegistrationStateV1, } from './domains/ed25519Yao/capabilityLifecycle/routerAbEd25519YaoProductRegistration';
|
|
21
|
-
export declare function createRouterApiRouter(service: RouterApiServiceBag, opts?: RouterApiOptions): ExpressRouter;
|
|
22
|
-
//# sourceMappingURL=express-adaptor.d.ts.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type CloudflareD1GatewayEnv, type HostedWalletGatewayDependenciesV1 } from '../../hosted-wallet-gateway';
|
|
2
|
-
import type { CfExecutionContext } from '../cloudflare/runtime/cloudflare.types';
|
|
3
|
-
import { type SyncSqliteConnectionV1 } from '../../storage/syncSqlite';
|
|
4
|
-
/** One Gateway request handler: the hosted Gateway or the local Gateway. */
|
|
5
|
-
type NodeWalletGatewayRequestHandlerV1 = (request: Request, env: CloudflareD1GatewayEnv & {
|
|
6
|
-
readonly WALLET_LOCAL_DEPLOYMENT_JSON: string;
|
|
7
|
-
}, ctx: CfExecutionContext, dependencies: HostedWalletGatewayDependenciesV1) => Promise<Response>;
|
|
8
|
-
type NodeHostedWalletGatewayOptionsV1 = {
|
|
9
|
-
/** Gateway configuration and secrets, as the Worker receives them as vars. */
|
|
10
|
-
readonly vars: Readonly<Record<string, string>>;
|
|
11
|
-
/** Shared Gateway SQL store (already migrated). */
|
|
12
|
-
readonly connection: SyncSqliteConnectionV1;
|
|
13
|
-
/** VM Router base URL. */
|
|
14
|
-
readonly routerUrl: string;
|
|
15
|
-
/** VM SigningWorker base URL. */
|
|
16
|
-
readonly signingWorkerUrl: string;
|
|
17
|
-
/** Path to wasm_signer_worker_bg.wasm. */
|
|
18
|
-
readonly signerWasmPath: string;
|
|
19
|
-
readonly onBackgroundError?: (error: unknown) => void;
|
|
20
|
-
/**
|
|
21
|
-
* The handler that serves requests. The hosted Gateway by default; local
|
|
22
|
-
* development passes the local Gateway, which adds the intended-suite
|
|
23
|
-
* transport faults exactly as the local Worker entry does.
|
|
24
|
-
*/
|
|
25
|
-
readonly handler?: NodeWalletGatewayRequestHandlerV1;
|
|
26
|
-
};
|
|
27
|
-
type NodeHostedWalletGatewayV1 = {
|
|
28
|
-
handle(request: Request): Promise<Response>;
|
|
29
|
-
/** Resolves when every background task started by handled requests settles. */
|
|
30
|
-
drain(): Promise<void>;
|
|
31
|
-
};
|
|
32
|
-
export declare function createNodeHostedWalletGatewayV1(options: NodeHostedWalletGatewayOptionsV1): NodeHostedWalletGatewayV1;
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=nodeHostedWalletGateway.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type NodeDatabaseSyncConstructor } from './nodeSqlite';
|
|
2
|
-
type NodeGatewayCheckStatusV1 = 'passed' | 'failed' | 'unverified';
|
|
3
|
-
type NodeGatewayCheckItemV1 = {
|
|
4
|
-
readonly check: string;
|
|
5
|
-
readonly status: NodeGatewayCheckStatusV1;
|
|
6
|
-
readonly detail: Readonly<Record<string, unknown>>;
|
|
7
|
-
};
|
|
8
|
-
type NodeGatewayCheckInputV1 = {
|
|
9
|
-
readonly DatabaseSync: NodeDatabaseSyncConstructor;
|
|
10
|
-
readonly databasePath: string;
|
|
11
|
-
readonly migrationsDir: string;
|
|
12
|
-
readonly varsPath: string | undefined;
|
|
13
|
-
/** Parses the vars file; its errors name the file and key, not values. */
|
|
14
|
-
readonly readVars: (path: string) => Record<string, string>;
|
|
15
|
-
readonly routerUrl: string | undefined;
|
|
16
|
-
readonly signingWorkerUrl: string | undefined;
|
|
17
|
-
readonly signerWasmPath: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
export declare function checkNodeHostedWalletGatewayV1(input: NodeGatewayCheckInputV1): Promise<readonly NodeGatewayCheckItemV1[]>;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=nodeHostedWalletGatewayCheck.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Server } from 'node:http';
|
|
2
|
-
/**
|
|
3
|
-
* Headers that describe one connection or one message's framing. A Worker's
|
|
4
|
-
* runtime sets them for the bytes it actually sends; on Node they are never
|
|
5
|
-
* copied from a Request or Response that another hop produced.
|
|
6
|
-
*/
|
|
7
|
-
export declare const NODE_HOP_BY_HOP_HEADERS_V1: readonly string[];
|
|
8
|
-
export declare function listenNodeFetchHandler(input: {
|
|
9
|
-
readonly host: string;
|
|
10
|
-
readonly port: number;
|
|
11
|
-
readonly handle: (request: Request) => Promise<Response>;
|
|
12
|
-
}): Promise<Server>;
|
|
13
|
-
//# sourceMappingURL=nodeHttp.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { SyncSqliteConnectionV1, SyncSqliteValue } from '../../storage/syncSqlite';
|
|
2
|
-
/** The subset of `node:sqlite`'s DatabaseSync the VM hosts use. */
|
|
3
|
-
type NodeDatabaseSyncLike = {
|
|
4
|
-
exec(sql: string): void;
|
|
5
|
-
prepare(sql: string): {
|
|
6
|
-
all(...params: SyncSqliteValue[]): unknown[];
|
|
7
|
-
};
|
|
8
|
-
close(): void;
|
|
9
|
-
};
|
|
10
|
-
export type NodeDatabaseSyncConstructor = new (path: string, options?: {
|
|
11
|
-
readonly readOnly?: boolean;
|
|
12
|
-
}) => NodeDatabaseSyncLike;
|
|
13
|
-
/** Loads `node:sqlite` at runtime so the package builds without its typings. */
|
|
14
|
-
export declare function loadNodeDatabaseSync(): Promise<NodeDatabaseSyncConstructor>;
|
|
15
|
-
/**
|
|
16
|
-
* Opens a SQLite file for one role-private store. Writers from separate
|
|
17
|
-
* processes serialize on `BEGIN IMMEDIATE`; WAL lets readers proceed.
|
|
18
|
-
*/
|
|
19
|
-
export declare function openNodeSqliteFile(DatabaseSync: NodeDatabaseSyncConstructor, path: string): NodeDatabaseSyncLike;
|
|
20
|
-
export declare function nodeSqliteConnection(database: NodeDatabaseSyncLike): SyncSqliteConnectionV1;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=nodeSqlite.d.ts.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { SyncSqliteConnectionV1 } from '../../storage/syncSqlite';
|
|
2
|
-
type SignerSqlMigrationStatusV1 = {
|
|
3
|
-
readonly applied: readonly string[];
|
|
4
|
-
readonly pending: readonly string[];
|
|
5
|
-
/** Applied migrations this package does not ship: a newer schema. */
|
|
6
|
-
readonly unknown: readonly string[];
|
|
7
|
-
};
|
|
8
|
-
/** Read-only: compares the database ledger with the shipped migration chain. */
|
|
9
|
-
export declare function inspectSignerSqlMigrationsV1(connection: SyncSqliteConnectionV1, directory: string): SignerSqlMigrationStatusV1;
|
|
10
|
-
/**
|
|
11
|
-
* Applies pending migrations in order, each in one transaction together
|
|
12
|
-
* with its ledger row, so an interrupted run resumes at the first missing
|
|
13
|
-
* migration. Refuses a database that already carries migrations this
|
|
14
|
-
* package does not know, or whose applied set is not a prefix of the chain.
|
|
15
|
-
*/
|
|
16
|
-
export declare function applySignerSqlMigrationsV1(connection: SyncSqliteConnectionV1, directory: string, nowMs: number): {
|
|
17
|
-
readonly applied: readonly string[];
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=signerSqlMigrations.d.ts.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { D1DatabaseLike } from './tenantRoute';
|
|
2
|
-
/**
|
|
3
|
-
* A value SQLite accepts as a bound parameter on every supported host.
|
|
4
|
-
*/
|
|
5
|
-
export type SyncSqliteValue = string | number | null | Uint8Array;
|
|
6
|
-
export type SyncSqliteRow = Record<string, unknown>;
|
|
7
|
-
/**
|
|
8
|
-
* One synchronous SQLite connection owned by a single role store: a Durable
|
|
9
|
-
* Object's SQLite storage on Cloudflare, or a role-private SQLite file opened
|
|
10
|
-
* by an ordinary process on a VM. Host adapters implement only these three
|
|
11
|
-
* operations; the store logic above them is shared.
|
|
12
|
-
*/
|
|
13
|
-
export interface SyncSqliteConnectionV1 {
|
|
14
|
-
/** Executes exactly one statement and returns its rows (none for writes). */
|
|
15
|
-
execute(sql: string, params: readonly SyncSqliteValue[]): readonly SyncSqliteRow[];
|
|
16
|
-
/** Runs `body` in one SQLite transaction. A thrown error rolls it back. */
|
|
17
|
-
transaction<T>(body: () => T): T;
|
|
18
|
-
/** Executes trusted schema text that may contain several statements. */
|
|
19
|
-
executeScript(sql: string): void;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Presents a synchronous SQLite connection through the async SQL shape used
|
|
23
|
-
* by the shared stores. `batch` is one SQLite transaction: a failing statement
|
|
24
|
-
* rolls back every earlier statement, so guarded compare-and-set batches keep
|
|
25
|
-
* the all-or-nothing semantics they have on D1.
|
|
26
|
-
*/
|
|
27
|
-
export declare function createSyncSqliteDatabase(connection: SyncSqliteConnectionV1): D1DatabaseLike;
|
|
28
|
-
//# sourceMappingURL=syncSqlite.d.ts.map
|
package/dist/types/wallet-server/src/threshold/session/signingSessionSeal/transport/express.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Router as ExpressRouter } from 'express';
|
|
2
|
-
import type { NormalizedLogger } from '../../../../core/logger';
|
|
3
|
-
import type { SessionAdapter } from '../../../../router/framework/routerApi';
|
|
4
|
-
import type { SigningSessionSealRoutesOptions } from '../signingSessionSeal.types';
|
|
5
|
-
type ExpressSigningSessionSealContext = {
|
|
6
|
-
logger: NormalizedLogger;
|
|
7
|
-
session: SessionAdapter | null | undefined;
|
|
8
|
-
options: SigningSessionSealRoutesOptions | null | undefined;
|
|
9
|
-
};
|
|
10
|
-
export declare function registerSigningSessionSealRoutes(router: ExpressRouter, ctx: ExpressSigningSessionSealContext): void;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=express.d.ts.map
|