@seams/wallet-server 0.15.6 → 0.18.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.
Files changed (174) hide show
  1. package/README.md +6 -6
  2. package/THIRD_PARTY_NOTICES.md +102 -1
  3. package/artifact-manifest.json +38 -33
  4. package/cloudflare-router-ab/build/deriver-a/build-stamp.json +1 -1
  5. package/cloudflare-router-ab/build/deriver-a/index.js +2 -2
  6. package/cloudflare-router-ab/build/deriver-a/index_bg.wasm +0 -0
  7. package/cloudflare-router-ab/build/deriver-b/build-stamp.json +1 -1
  8. package/cloudflare-router-ab/build/deriver-b/index.js +2 -2
  9. package/cloudflare-router-ab/build/deriver-b/index_bg.wasm +0 -0
  10. package/cloudflare-router-ab/build/local-tools/linux-x64/router_ab_local_init +0 -0
  11. package/cloudflare-router-ab/build/router/build-stamp.json +1 -1
  12. package/cloudflare-router-ab/build/router/index.js +2 -2
  13. package/cloudflare-router-ab/build/router/index_bg.wasm +0 -0
  14. package/cloudflare-router-ab/build/signing-worker/build-stamp.json +1 -1
  15. package/cloudflare-router-ab/build/signing-worker/index.js +2 -2
  16. package/cloudflare-router-ab/build/signing-worker/index_bg.wasm +0 -0
  17. package/cloudflare-router-ab/build/tenant-root-control-plane/build-stamp.json +1 -1
  18. package/cloudflare-router-ab/build/tenant-root-control-plane/index.js +2 -2
  19. package/cloudflare-router-ab/build/tenant-root-control-plane/index_bg.wasm +0 -0
  20. package/cloudflare-router-ab/migrations/postgres/0001_role_store.sql +567 -0
  21. package/dist/esm/authorization/factorEvidence.js +49 -8
  22. package/dist/esm/authorization/vaultProxyUse.js +15 -15
  23. package/dist/esm/core/SessionService.js +1 -0
  24. package/dist/esm/core/ThresholdService/kv.js +2 -0
  25. package/dist/esm/core/ThresholdService/routerAb/ecdsaDerivationPoolFillHandlers.js +3 -0
  26. package/dist/esm/core/d1IdentityStore.js +3 -1
  27. package/dist/esm/core/d1TenantStore.js +4 -1
  28. package/dist/esm/core/d1WalletAuthMethodStore.js +3 -1
  29. package/dist/esm/core/d1WalletStore.js +5 -2
  30. package/dist/esm/core/deviceLinking/linkedDeviceManagement.js +1 -4
  31. package/dist/esm/core/deviceLinking/linkedDeviceSession.js +2 -0
  32. package/dist/esm/core/deviceLinking/requestProof.js +1 -0
  33. package/dist/esm/core/routerAbSigning/RouterAbEcdsaPresignRuntime.js +2 -0
  34. package/dist/esm/core/routerAbSigning/RouterAbNormalSigningRuntime.js +3 -0
  35. package/dist/esm/core/rpcClients/near/NearClient.js +8 -0
  36. package/dist/esm/core/signingMaterial/ordinaryInactiveSignerMaterialReservation.js +0 -1
  37. package/dist/esm/localHostedWalletGatewayHandler.js +2 -2
  38. package/dist/esm/localIntendedEcdsaFinalizeFault.js +1 -1
  39. package/dist/esm/localIntendedLinkExecuteFault.js +1 -1
  40. package/dist/esm/localIntendedMaterialAdmissionFault.js +2 -2
  41. package/dist/esm/localIntendedRevokeFault.js +1 -1
  42. package/dist/esm/localIntendedSessionAdmissionFault.js +1 -1
  43. package/dist/esm/localIntendedYaoExportFault.js +1 -1
  44. package/dist/esm/localIntendedYaoFault.js +1 -1
  45. package/dist/esm/localIntendedYaoFinalizeFault.js +1 -1
  46. package/dist/esm/localIntendedYaoRecoveryFault.js +3 -3
  47. package/dist/esm/localIntendedYaoSigningFault.js +1 -1
  48. package/dist/esm/localRegistrationSetupAuthority.js +1 -0
  49. package/dist/esm/router/cloudflare/d1/auth/d1RouterApiAuthService.js +2 -2
  50. package/dist/esm/router/cloudflare/d1/authorization/d1AuthorizationStore.js +5 -0
  51. package/dist/esm/router/cloudflare/d1/authorization/d1VaultProxyStore.js +1 -0
  52. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceAuthorityInstallService.js +1 -0
  53. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceEd25519ExportRootStore.js +2 -0
  54. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceEmailOtpGrantStore.js +2 -0
  55. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceEmailOtpTargetFactor.js +3 -0
  56. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceOwnerAuthorizationProvider.js +2 -3
  57. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceRequestProofNonceStore.js +2 -0
  58. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceSessionStore.js +3 -0
  59. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceSourceContributionPreparationPlanner.js +6 -2
  60. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceTargetAuthenticatorStore.js +3 -0
  61. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceTargetCredentialProvider.js +10 -2
  62. package/dist/esm/router/cloudflare/d1/deviceLinking/d1LinkedDeviceTargetPlanner.js +3 -0
  63. package/dist/esm/router/cloudflare/d1/ed25519Yao/d1Ed25519YaoCapabilityPersistence.js +6 -1
  64. package/dist/esm/router/cloudflare/d1/ed25519Yao/d1Ed25519YaoLifecycleDecisionStore.js +2 -0
  65. package/dist/esm/router/cloudflare/d1/ed25519Yao/d1Ed25519YaoProductRegistrationPartitionedStateStore.js +1 -1
  66. package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpChallengeIssuer.js +5 -0
  67. package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpChallengeService.js +8 -0
  68. package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpChallengeStore.js +6 -1
  69. package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpChallengeVerifier.js +4 -0
  70. package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpEnrollmentStore.js +1 -0
  71. package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpGrantStore.js +1 -0
  72. package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpRecoveryService.js +4 -0
  73. package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpRegistrationEnrollmentFinalizer.js +2 -0
  74. package/dist/esm/router/cloudflare/d1/emailOtp/d1EmailOtpServerSealRuntime.js +1 -0
  75. package/dist/esm/router/cloudflare/d1/emailOtp/d1GoogleEmailOtpRegistrationAttemptStore.js +3 -0
  76. package/dist/esm/router/cloudflare/d1/emailOtp/d1GoogleEmailOtpSessionResolver.js +6 -0
  77. package/dist/esm/router/cloudflare/d1/identity/d1IdentityService.js +1 -0
  78. package/dist/esm/router/cloudflare/d1/oidc/d1OidcBoundary.js +2 -4
  79. package/dist/esm/router/cloudflare/d1/oidc/d1OidcVerificationService.js +4 -0
  80. package/dist/esm/router/cloudflare/d1/passkeyCustody/d1PasskeyCustodyEnvelopeStore.js +4 -0
  81. package/dist/esm/router/cloudflare/d1/passkeyCustody/d1WalletCustodyCommitStore.js +7 -0
  82. package/dist/esm/router/cloudflare/d1/passkeyCustody/d1WalletRecoveryGoogleEmailOtpAttemptStore.js +1 -0
  83. package/dist/esm/router/cloudflare/d1/passkeyCustody/d1WalletRecoveryGoogleEmailOtpService.js +8 -0
  84. package/dist/esm/router/cloudflare/d1/registration/d1RegistrationCeremonyRecordStore.js +3 -0
  85. package/dist/esm/router/cloudflare/d1/registration/d1RegistrationCeremonyStore.js +1 -0
  86. package/dist/esm/router/cloudflare/d1/registration/d1RegistrationIntentService.js +1 -0
  87. package/dist/esm/router/cloudflare/d1/registration/d1RegistrationSessionTransaction.js +1 -1
  88. package/dist/esm/router/cloudflare/d1/registration/d1WalletOperationStore.js +2 -0
  89. package/dist/esm/router/cloudflare/d1/registration/d1WalletRegistrationCommitStore.js +3 -0
  90. package/dist/esm/router/cloudflare/d1/registration/d1WalletRegistrationService.js +24 -0
  91. package/dist/esm/router/cloudflare/d1/signingAdmission/d1RouterAbNormalSigningAdmissionStore.js +3 -0
  92. package/dist/esm/router/cloudflare/d1/versionedJson/d1VersionedJsonRecordStore.js +6 -0
  93. package/dist/esm/router/cloudflare/d1/wallet/d1WalletAddSignerService.js +11 -0
  94. package/dist/esm/router/cloudflare/d1/wallet/d1WalletAuthMethodRevocationReplayStore.js +2 -0
  95. package/dist/esm/router/cloudflare/d1/wallet/d1WalletAuthMethodService.js +16 -0
  96. package/dist/esm/router/cloudflare/d1/wallet/d1WalletAuthorityStore.js +3 -1
  97. package/dist/esm/router/cloudflare/d1/webauthn/d1WebAuthnAuthService.js +4 -0
  98. package/dist/esm/router/cloudflare/d1/webauthn/d1WebAuthnStore.js +5 -1
  99. package/dist/esm/router/cloudflare/durableObjects/versionedJsonRecordStore.js +6 -0
  100. package/dist/esm/router/cloudflare/runtime/ed25519SessionAdapter.js +6 -0
  101. package/dist/esm/router/cloudflare/runtime/walletAuthorizationRelocationRoutes.js +117 -117
  102. package/dist/esm/router/cloudflare/runtime/walletPlacementRoutes.js +51 -51
  103. package/dist/esm/router/cloudflare/signingLanes/cloudflareOrdinaryInactiveSignerMaterialReservation.js +3 -3
  104. package/dist/esm/router/cloudflare.js +114 -61
  105. package/dist/esm/router/domains/ecdsa/routerAbEcdsaStrictRegistration.js +1 -1
  106. package/dist/esm/router/domains/ed25519Yao/capabilityLifecycle/routerAbEd25519YaoProductRegistration.js +2 -1
  107. package/dist/esm/router/domains/ed25519Yao/capabilityLifecycle/routerAbEd25519YaoProductRegistrationRequestScopedRuntime.js +2 -1
  108. package/dist/esm/router/domains/ed25519Yao/export/routerAbEd25519YaoExport.js +6 -8
  109. package/dist/esm/router/domains/ed25519Yao/recovery/routerAbEd25519YaoRecovery.js +11 -9
  110. package/dist/esm/router/domains/ed25519Yao/registration/routerAbEd25519YaoHttpRegistrationBackend.js +2 -1
  111. package/dist/esm/router/domains/ed25519Yao/registration/routerAbEd25519YaoRegistration.js +11 -9
  112. package/dist/esm/router/domains/ed25519Yao/registration/routerAbEd25519YaoRegistrationIntentAuthorization.js +2 -3
  113. package/dist/esm/router/domains/signingOperations/routerAbNormalSigningAdmissionCore.js +2 -4
  114. package/dist/esm/router/domains/walletRegistration/registrationSessionSeal.js +1 -1
  115. package/dist/esm/router/framework/http.js +1 -1
  116. package/dist/esm/router/framework/ror/staticProvider.js +1 -0
  117. package/dist/esm/router/ror.js +1 -0
  118. package/dist/esm/shared-ts/src/authorization/delegatedAuthority.js +1 -1
  119. package/dist/esm/shared-ts/src/authorization/operationFingerprint.js +6 -0
  120. package/dist/esm/shared-ts/src/device-linking/sourceContribution.js +5 -5
  121. package/dist/esm/shared-ts/src/near/nearClient.js +6 -0
  122. package/dist/esm/shared-ts/src/tenant-root/tenantRootIdentity.js +5 -0
  123. package/dist/esm/shared-ts/src/utils/domainIds.js +7 -0
  124. package/dist/esm/shared-ts/src/utils/routerAbEd25519Yao.js +7 -6
  125. package/dist/esm/storage/tenantRoute.js +4 -0
  126. package/dist/esm/threshold/session/signingSessionSeal/crypto/cipher.js +1 -1
  127. package/dist/esm/threshold/session/signingSessionSeal/crypto/shamir3PassWasm.js +1 -1
  128. package/dist/esm/threshold/session/signingSessionSeal/guards/backends.js +2 -0
  129. package/dist/esm/threshold/session/signingSessionSeal/guards/index.js +2 -1
  130. package/dist/esm/threshold/session/signingSessionSeal/idempotencyBackends.js +3 -0
  131. package/dist/types/shared-ts/src/authorization/capabilityKinds.d.ts +14 -14
  132. package/dist/types/shared-ts/src/authorization/delegatedAuthority.d.ts +1 -1
  133. package/dist/types/shared-ts/src/device-linking/ed25519ExportRoot.d.ts +1 -1
  134. package/dist/types/shared-ts/src/device-linking/requestProof.d.ts +1 -1
  135. package/dist/types/shared-ts/src/device-linking/sourceContribution.d.ts +5 -5
  136. package/dist/types/shared-ts/src/passkey-custody/custodyEnvelope.d.ts +3 -3
  137. package/dist/types/shared-ts/src/passkey-custody/custodySecretBinding.d.ts +1 -1
  138. package/dist/types/shared-ts/src/tenant-root/tenantRootIdentity.d.ts +1 -1
  139. package/dist/types/shared-ts/src/tenant-root/tenantRootOperationRecord.d.ts +2 -2
  140. package/dist/types/shared-ts/src/utils/base64.d.ts +2 -2
  141. package/dist/types/shared-ts/src/utils/digestEncoding.d.ts +1 -1
  142. package/dist/types/shared-ts/src/utils/digests.d.ts +2 -2
  143. package/dist/types/shared-ts/src/utils/emailOtpDomain.d.ts +16 -16
  144. package/dist/types/shared-ts/src/utils/emailOtpRecoveryKey.d.ts +1 -1
  145. package/dist/types/shared-ts/src/utils/routerAbEcdsaDerivation.d.ts +10 -10
  146. package/dist/types/shared-ts/src/utils/routerAbEd25519Yao.d.ts +12 -11
  147. package/dist/types/shared-ts/src/utils/routerAbPublicKeyset.d.ts +3 -3
  148. package/dist/types/shared-ts/src/utils/routerAbTraceContext.d.ts +1 -1
  149. package/dist/types/shared-ts/src/utils/signerDomain.d.ts +15 -15
  150. package/dist/types/shared-ts/src/utils/signingSessionSeal.d.ts +11 -11
  151. package/dist/types/shared-ts/src/utils/walletSessionFailure.d.ts +8 -8
  152. package/dist/types/shared-ts/src/utils/webauthnDeviceInfo.d.ts +2 -2
  153. package/dist/types/shared-ts/src/utils/wireSchema.d.ts +1 -1
  154. package/dist/types/shared-ts/src/wallet-recovery/recoveryKeyId.d.ts +1 -1
  155. package/dist/types/wallet-server/src/authorization/factorEvidence.d.ts +6 -6
  156. package/dist/types/wallet-server/src/core/ecdsaMaterialReadSnapshot.d.ts +1 -1
  157. package/dist/types/wallet-server/src/core/threeRouteRegistrationContracts.typecheck.d.ts +6 -6
  158. package/dist/types/wallet-server/src/router/auth/webAuthnCredentialCodecs.d.ts +1 -1
  159. package/dist/types/wallet-server/src/router/cloudflare/d1/deviceLinking/d1LinkedDeviceTargetCredentialProvider.d.ts +1 -1
  160. package/dist/types/wallet-server/src/router/cloudflare/d1/deviceLinking/d1LinkedDeviceTargetPlanner.d.ts +3 -3
  161. package/dist/types/wallet-server/src/router/cloudflare/d1/registration/d1WalletRegistrationRead.d.ts +2 -2
  162. package/dist/types/wallet-server/src/router/cloudflare/d1/registration/walletRegistrationEstablishedSessionIssuer.d.ts +2 -2
  163. package/dist/types/wallet-server/src/router/cloudflare/d1/wallet/authorizationSnapshotLayout.d.ts +1 -1
  164. package/dist/types/wallet-server/src/router/cloudflare/d1/wallet/d1WalletRelocationOwner.d.ts +9 -9
  165. package/dist/types/wallet-server/src/router/cloudflare/signingLanes/cloudflareOrdinaryInactiveSignerMaterialReservation.d.ts +6 -6
  166. package/dist/types/wallet-server/src/router/domains/signingOperations/signingPrepareSession.d.ts +2 -2
  167. package/dist/types/wallet-server/src/router/domains/walletRegistration/walletRegistrationSetupPayload.d.ts +1 -1
  168. package/dist/types/wallet-server/src/router/domains/walletUnlock/walletUnlockRequestedCapabilitiesValidation.d.ts +3 -3
  169. package/dist/types/wallet-server/src/router/framework/apiCredentialPorts.d.ts +1 -1
  170. package/dist/types/wallet-server/src/router/framework/routeAuthPolicy.d.ts +2 -2
  171. package/dist/types/wallet-server/src/router/framework/routeExecutionContext.d.ts +1 -1
  172. package/dist/types/wallet-server/src/router/transport/fetch/routes/deviceLinkingOwnerAuthorization.d.ts +1 -1
  173. package/migrations/d1-signer/0082_wallet_signature_completions.sql +39 -0
  174. package/package.json +4 -5
@@ -1,31 +1,31 @@
1
- export declare const EMAIL_OTP_CHANNEL: "email_otp";
2
- export declare const EMAIL_OTP_INITIAL_ENROLLMENT_VERSION: "1";
1
+ export declare const EMAIL_OTP_CHANNEL: 'email_otp';
2
+ export declare const EMAIL_OTP_INITIAL_ENROLLMENT_VERSION: '1';
3
3
  export declare function emailOtpDeviceEnrollmentId(walletId: string, providerSubject: string): string;
4
4
  /** Domain label that opens the AAD binding a released Email OTP factor to its challenge. */
5
5
  export declare const EMAIL_OTP_FACTOR_RELEASE_AAD_DOMAIN_V1 = "seams/email-otp/factor-release/v1";
6
- declare const WALLET_UNLOCK_BACKENDS: readonly ["passkey", "email_otp"];
6
+ declare const WALLET_UNLOCK_BACKENDS: readonly ['passkey', "email_otp"];
7
7
  export type WalletUnlockBackend = (typeof WALLET_UNLOCK_BACKENDS)[number];
8
8
  export type WalletEmailOtpChannel = typeof EMAIL_OTP_CHANNEL;
9
- declare const WALLET_EMAIL_OTP_LOGIN_OPERATIONS: readonly ["wallet_unlock", "transaction_sign", "export_key"];
9
+ declare const WALLET_EMAIL_OTP_LOGIN_OPERATIONS: readonly ['wallet_unlock', 'transaction_sign', 'export_key'];
10
10
  export type WalletEmailOtpLoginOperation = (typeof WALLET_EMAIL_OTP_LOGIN_OPERATIONS)[number];
11
- export declare const WALLET_EMAIL_OTP_REGISTRATION_OPERATION: "registration";
11
+ export declare const WALLET_EMAIL_OTP_REGISTRATION_OPERATION: 'registration';
12
12
  /** Linked-device enrollment: prove control of the wallet's enrolled email
13
13
  * destination to complete one device link. */
14
- export declare const WALLET_EMAIL_OTP_DEVICE_LINK_OPERATION: "device_link";
15
- export declare const WALLET_EMAIL_OTP_RELOCATION_OPERATION: "wallet_relocation";
14
+ export declare const WALLET_EMAIL_OTP_DEVICE_LINK_OPERATION: 'device_link';
15
+ export declare const WALLET_EMAIL_OTP_RELOCATION_OPERATION: 'wallet_relocation';
16
16
  export type WalletEmailOtpOperation = WalletEmailOtpLoginOperation | typeof WALLET_EMAIL_OTP_REGISTRATION_OPERATION | typeof WALLET_EMAIL_OTP_DEVICE_LINK_OPERATION | typeof WALLET_EMAIL_OTP_RELOCATION_OPERATION;
17
17
  export declare const WALLET_EMAIL_OTP_ACTIONS: {
18
- readonly login: "wallet_email_otp_login";
19
- readonly registration: "wallet_email_otp_registration";
20
- readonly recoveryBootstrap: "wallet_email_otp_recovery_bootstrap";
21
- readonly unseal: "wallet_email_otp_unseal";
22
- readonly deviceLink: "wallet_email_otp_device_link";
23
- readonly relocation: "wallet_email_otp_relocation";
18
+ readonly login: 'wallet_email_otp_login';
19
+ readonly registration: 'wallet_email_otp_registration';
20
+ readonly recoveryBootstrap: 'wallet_email_otp_recovery_bootstrap';
21
+ readonly unseal: 'wallet_email_otp_unseal';
22
+ readonly deviceLink: 'wallet_email_otp_device_link';
23
+ readonly relocation: 'wallet_email_otp_relocation';
24
24
  };
25
25
  export type WalletEmailOtpAction = (typeof WALLET_EMAIL_OTP_ACTIONS)[keyof typeof WALLET_EMAIL_OTP_ACTIONS];
26
- export declare const WALLET_EMAIL_OTP_EXPORT_OPERATION: "export_key";
27
- export declare const WALLET_EMAIL_OTP_UNLOCK_OPERATION: "wallet_unlock";
28
- export declare const WALLET_EMAIL_OTP_TRANSACTION_SIGN_OPERATION: "transaction_sign";
26
+ export declare const WALLET_EMAIL_OTP_EXPORT_OPERATION: 'export_key';
27
+ export declare const WALLET_EMAIL_OTP_UNLOCK_OPERATION: 'wallet_unlock';
28
+ export declare const WALLET_EMAIL_OTP_TRANSACTION_SIGN_OPERATION: 'transaction_sign';
29
29
  export type WalletEmailOtpExportOperation = typeof WALLET_EMAIL_OTP_EXPORT_OPERATION;
30
30
  export type WalletEmailOtpTransactionSignOperation = typeof WALLET_EMAIL_OTP_TRANSACTION_SIGN_OPERATION;
31
31
  export declare function isWalletUnlockBackend(value: string): value is WalletUnlockBackend;
@@ -3,7 +3,7 @@ export declare const EMAIL_OTP_RECOVERY_KEY_BYTE_LENGTH: 20;
3
3
  export declare const EMAIL_OTP_RECOVERY_KEY_CHAR_LENGTH: 32;
4
4
  export declare const EMAIL_OTP_RECOVERY_KEY_GROUP_COUNT: 8;
5
5
  export declare const EMAIL_OTP_RECOVERY_KEY_GROUP_LENGTH: 4;
6
- export declare const EMAIL_OTP_RECOVERY_KEY_ALPHABET: "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
6
+ export declare const EMAIL_OTP_RECOVERY_KEY_ALPHABET: '0123456789ABCDEFGHJKMNPQRSTVWXYZ';
7
7
  declare const emailOtpRecoveryCodeBrand: unique symbol;
8
8
  export type EmailOtpRecoveryCode = string & {
9
9
  readonly [emailOtpRecoveryCodeBrand]: 'EmailOtpRecoveryCode';
@@ -11,16 +11,16 @@ import { type EmailOtpWalletAuthAuthority, type PasskeyWalletAuthAuthority } fro
11
11
  * pool fill only when the requested ceremony deadline is within this limit.
12
12
  */
13
13
  export declare const ROUTER_AB_ECDSA_PRESIGN_CEREMONY_MAX_LIFETIME_MS: number;
14
- export declare const ROUTER_AB_ECDSA_DERIVATION_NORMAL_SIGNING_STATE_KIND_V1: "router_ab_ecdsa_derivation_normal_signing_v1";
15
- export declare const ROUTER_AB_ECDSA_DERIVATION_HEALTH_PATH: "/router-ab/ecdsa-derivation/healthz";
16
- export declare const ROUTER_AB_ECDSA_DERIVATION_EXPORT_PATH: "/router-ab/ecdsa-derivation/export";
17
- export declare const ROUTER_AB_ECDSA_DERIVATION_PRESIGNATURE_POOL_FILL_INIT_PATH: "/router-ab/ecdsa-derivation/presignature-pool/fill/init";
18
- export declare const ROUTER_AB_ECDSA_DERIVATION_PRESIGNATURE_POOL_FILL_STEP_PATH: "/router-ab/ecdsa-derivation/presignature-pool/fill/step";
19
- export declare const ROUTER_AB_ECDSA_DERIVATION_NORMAL_SIGNING_PREPARE_PATH: "/router-ab/ecdsa-derivation/sign/prepare";
20
- export declare const ROUTER_AB_ECDSA_DERIVATION_NORMAL_SIGNING_PATH: "/router-ab/ecdsa-derivation/sign";
21
- export declare const ROUTER_AB_ECDSA_DERIVATION_REFRESH_PATH: "/router-ab/ecdsa-derivation/refresh";
22
- export declare const ROUTER_AB_ECDSA_DERIVATION_SESSION_ACTIVATION_PATH: "/router-ab/ecdsa-derivation/session/activate";
23
- export declare const ROUTER_AB_ECDSA_DERIVATION_OPERATION_STEP_UP_PATH: "/router-ab/ecdsa-derivation/operation-step-up";
14
+ export declare const ROUTER_AB_ECDSA_DERIVATION_NORMAL_SIGNING_STATE_KIND_V1: 'router_ab_ecdsa_derivation_normal_signing_v1';
15
+ export declare const ROUTER_AB_ECDSA_DERIVATION_HEALTH_PATH: '/router-ab/ecdsa-derivation/healthz';
16
+ export declare const ROUTER_AB_ECDSA_DERIVATION_EXPORT_PATH: '/router-ab/ecdsa-derivation/export';
17
+ export declare const ROUTER_AB_ECDSA_DERIVATION_PRESIGNATURE_POOL_FILL_INIT_PATH: '/router-ab/ecdsa-derivation/presignature-pool/fill/init';
18
+ export declare const ROUTER_AB_ECDSA_DERIVATION_PRESIGNATURE_POOL_FILL_STEP_PATH: '/router-ab/ecdsa-derivation/presignature-pool/fill/step';
19
+ export declare const ROUTER_AB_ECDSA_DERIVATION_NORMAL_SIGNING_PREPARE_PATH: '/router-ab/ecdsa-derivation/sign/prepare';
20
+ export declare const ROUTER_AB_ECDSA_DERIVATION_NORMAL_SIGNING_PATH: '/router-ab/ecdsa-derivation/sign';
21
+ export declare const ROUTER_AB_ECDSA_DERIVATION_REFRESH_PATH: '/router-ab/ecdsa-derivation/refresh';
22
+ export declare const ROUTER_AB_ECDSA_DERIVATION_SESSION_ACTIVATION_PATH: '/router-ab/ecdsa-derivation/session/activate';
23
+ export declare const ROUTER_AB_ECDSA_DERIVATION_OPERATION_STEP_UP_PATH: '/router-ab/ecdsa-derivation/operation-step-up';
24
24
  type RouterAbEcdsaDerivationStableKeyContextV1 = {
25
25
  application_binding_digest_b64u: string;
26
26
  };
@@ -4,17 +4,17 @@ export type { RouterAbEd25519YaoAdmittedLifecycleV1, RouterAbEd25519YaoCeremonyI
4
4
  export type RouterAbEd25519YaoCeremonyBindingV1 = GeneratedRouterAbEd25519YaoCeremonyBindingV1 & {
5
5
  material_activation: RouterAbMpcMaterialActivationRefWire;
6
6
  };
7
- export declare const ROUTER_AB_ED25519_YAO_REGISTRATION_ADMISSION_PATH_V1: "/router-ab/ed25519/yao/registration/admit";
8
- export declare const ROUTER_AB_ED25519_YAO_REGISTRATION_EXECUTE_PATH_V1: "/router-ab/ed25519/yao/registration/execute";
9
- export declare const ROUTER_AB_ED25519_YAO_RECOVERY_ADMISSION_PATH_V1: "/router-ab/ed25519/yao/recovery/admit";
10
- export declare const ROUTER_AB_ED25519_YAO_RECOVERY_EXECUTE_PATH_V1: "/router-ab/ed25519/yao/recovery/execute";
11
- export declare const ROUTER_AB_ED25519_YAO_RECOVERY_ACTIVATE_PATH_V1: "/router-ab/ed25519/yao/recovery/activate";
12
- export declare const ROUTER_AB_ED25519_YAO_RECOVERY_STATUS_PATH_V1: "/router-ab/ed25519/yao/recovery/status";
13
- export declare const ROUTER_AB_ED25519_YAO_RECOVERY_CHALLENGE_ID_HEADER_V1: "x-seams-wallet-recovery-challenge-id";
14
- export declare const ROUTER_AB_ED25519_YAO_WARM_RECOVERY_BOOTSTRAP_PATH_V1: "/router-ab/ed25519/yao/recovery/bootstrap";
15
- export declare const ROUTER_AB_ED25519_YAO_EMAIL_OTP_RECOVERY_BOOTSTRAP_KIND_V1: "router_ab_ed25519_yao_email_otp_recovery_v1";
16
- export declare const ROUTER_AB_ED25519_YAO_EXPORT_ADMISSION_PATH_V1: "/router-ab/ed25519/yao/export/admit";
17
- export declare const ROUTER_AB_ED25519_YAO_EXPORT_EXECUTE_PATH_V1: "/router-ab/ed25519/yao/export/execute";
7
+ export declare const ROUTER_AB_ED25519_YAO_REGISTRATION_ADMISSION_PATH_V1: '/router-ab/ed25519/yao/registration/admit';
8
+ export declare const ROUTER_AB_ED25519_YAO_REGISTRATION_EXECUTE_PATH_V1: '/router-ab/ed25519/yao/registration/execute';
9
+ export declare const ROUTER_AB_ED25519_YAO_RECOVERY_ADMISSION_PATH_V1: '/router-ab/ed25519/yao/recovery/admit';
10
+ export declare const ROUTER_AB_ED25519_YAO_RECOVERY_EXECUTE_PATH_V1: '/router-ab/ed25519/yao/recovery/execute';
11
+ export declare const ROUTER_AB_ED25519_YAO_RECOVERY_ACTIVATE_PATH_V1: '/router-ab/ed25519/yao/recovery/activate';
12
+ export declare const ROUTER_AB_ED25519_YAO_RECOVERY_STATUS_PATH_V1: '/router-ab/ed25519/yao/recovery/status';
13
+ export declare const ROUTER_AB_ED25519_YAO_RECOVERY_CHALLENGE_ID_HEADER_V1: 'x-seams-wallet-recovery-challenge-id';
14
+ export declare const ROUTER_AB_ED25519_YAO_WARM_RECOVERY_BOOTSTRAP_PATH_V1: '/router-ab/ed25519/yao/recovery/bootstrap';
15
+ export declare const ROUTER_AB_ED25519_YAO_EMAIL_OTP_RECOVERY_BOOTSTRAP_KIND_V1: 'router_ab_ed25519_yao_email_otp_recovery_v1';
16
+ export declare const ROUTER_AB_ED25519_YAO_EXPORT_ADMISSION_PATH_V1: '/router-ab/ed25519/yao/export/admit';
17
+ export declare const ROUTER_AB_ED25519_YAO_EXPORT_EXECUTE_PATH_V1: '/router-ab/ed25519/yao/export/execute';
18
18
  type RouterAbEd25519YaoDeriverRoleV1 = 'deriver_a' | 'deriver_b';
19
19
  type RouterAbEd25519YaoInputKindV1 = 'activation' | 'export';
20
20
  type RouterAbEd25519YaoPackageKindV1 = 'activation_client' | 'activation_signing_worker' | 'export_client';
@@ -232,6 +232,7 @@ type RouterAbEd25519YaoParseResult<T> = {
232
232
  export declare function parseRouterAbEd25519YaoApplicationBindingFactsV1(value: unknown): RouterAbEd25519YaoApplicationBindingFactsV1;
233
233
  export declare function parseRouterAbEd25519YaoParticipantIdsV1(value: unknown): readonly [number, number];
234
234
  export declare function parseRouterAbEd25519YaoCeremonyBindingV1(value: unknown): RouterAbEd25519YaoCeremonyBindingV1;
235
+ export declare function parseRouterAbEd25519YaoActivationBindingV1(value: unknown): RouterAbEd25519YaoActivationBindingV1;
235
236
  export declare function parseRouterAbEd25519YaoActivationKeysetV1(value: unknown): RouterAbEd25519YaoActivationKeysetV1;
236
237
  export declare function parseRouterAbEd25519YaoActivationPublicReceiptV1(value: unknown): RouterAbEd25519YaoActivationPublicReceiptV1;
237
238
  export declare function parseRouterAbEd25519YaoRegistrationAdmissionRequestV1(value: unknown): RouterAbEd25519YaoParseResult<RouterAbEd25519YaoRegistrationAdmissionRequestV1>;
@@ -1,6 +1,6 @@
1
- export declare const ROUTER_AB_PUBLIC_KEYSET_VERSION_V2: "router_ab_keyset_v2";
2
- export declare const ROUTER_AB_PUBLIC_KEYSET_WELL_KNOWN_PATH: "/.well-known/router-ab/keyset";
3
- export declare const ROUTER_AB_PUBLIC_KEYSET_PATH: "/router-ab/keyset";
1
+ export declare const ROUTER_AB_PUBLIC_KEYSET_VERSION_V2: 'router_ab_keyset_v2';
2
+ export declare const ROUTER_AB_PUBLIC_KEYSET_WELL_KNOWN_PATH: '/.well-known/router-ab/keyset';
3
+ export declare const ROUTER_AB_PUBLIC_KEYSET_PATH: '/router-ab/keyset';
4
4
  type RouterAbSignerRoleV1 = 'signer_a' | 'signer_b';
5
5
  type RouterAbSignerEnvelopeHpkePublicKeyV1 = {
6
6
  role: RouterAbSignerRoleV1;
@@ -1,4 +1,4 @@
1
- export declare const ROUTER_AB_TRACE_ID_HEADER_V1: "x-seams-trace-id";
1
+ export declare const ROUTER_AB_TRACE_ID_HEADER_V1: 'x-seams-trace-id';
2
2
  export type RouterAbTraceContextV1 = {
3
3
  readonly kind: 'router_ab_trace_context_v1';
4
4
  readonly value: string;
@@ -1,41 +1,41 @@
1
1
  export declare const SIGNER_KINDS: {
2
- readonly thresholdEd25519: "threshold-ed25519";
3
- readonly thresholdEcdsa: "threshold-ecdsa";
2
+ readonly thresholdEd25519: 'threshold-ed25519';
3
+ readonly thresholdEcdsa: 'threshold-ecdsa';
4
4
  };
5
5
  export type SignerKind = (typeof SIGNER_KINDS)[keyof typeof SIGNER_KINDS];
6
6
  export declare const SIGNER_AUTH_METHODS: {
7
- readonly passkey: "passkey";
7
+ readonly passkey: 'passkey';
8
8
  readonly emailOtp: "email_otp";
9
9
  };
10
10
  /** Authentication methods that can authorize a signer capability. */
11
11
  export type SignerAuthMethod = (typeof SIGNER_AUTH_METHODS)[keyof typeof SIGNER_AUTH_METHODS];
12
12
  export declare const WALLET_AUTH_METHODS: {
13
- readonly passkey: "passkey";
13
+ readonly passkey: 'passkey';
14
14
  readonly emailOtp: "email_otp";
15
15
  };
16
16
  /** Authentication methods that can be enrolled on a wallet. */
17
17
  export type WalletAuthMethod = (typeof WALLET_AUTH_METHODS)[keyof typeof WALLET_AUTH_METHODS];
18
18
  declare const SIGNING_SESSION_RETENTIONS: {
19
- readonly session: "session";
20
- readonly singleUse: "single_use";
19
+ readonly session: 'session';
20
+ readonly singleUse: 'single_use';
21
21
  };
22
22
  export type SigningSessionRetention = (typeof SIGNING_SESSION_RETENTIONS)[keyof typeof SIGNING_SESSION_RETENTIONS];
23
23
  declare const SIGNING_SESSION_POLICIES: {
24
- readonly session: "session";
25
- readonly perOperation: "per_operation";
24
+ readonly session: 'session';
25
+ readonly perOperation: 'per_operation';
26
26
  };
27
27
  export type SigningSessionPolicy = (typeof SIGNING_SESSION_POLICIES)[keyof typeof SIGNING_SESSION_POLICIES];
28
28
  export declare const SENSITIVE_OPERATION_POLICIES: {
29
- readonly inheritSessionPolicy: "inherit_session_policy";
30
- readonly requireFreshSameMethod: "require_fresh_same_method";
31
- readonly requirePasskey: "require_passkey";
32
- readonly denyEmailOtp: "deny_email_otp";
29
+ readonly inheritSessionPolicy: 'inherit_session_policy';
30
+ readonly requireFreshSameMethod: 'require_fresh_same_method';
31
+ readonly requirePasskey: 'require_passkey';
32
+ readonly denyEmailOtp: 'deny_email_otp';
33
33
  };
34
34
  export type SensitiveOperationPolicy = (typeof SENSITIVE_OPERATION_POLICIES)[keyof typeof SENSITIVE_OPERATION_POLICIES];
35
35
  export declare const SIGNER_SOURCES: {
36
- readonly passkeyRegistration: "passkey_registration";
37
- readonly emailOtpRegistration: "email_otp_registration";
38
- readonly selfHostedImport: "self_hosted_import";
36
+ readonly passkeyRegistration: 'passkey_registration';
37
+ readonly emailOtpRegistration: 'email_otp_registration';
38
+ readonly selfHostedImport: 'self_hosted_import';
39
39
  };
40
40
  export type SignerSource = (typeof SIGNER_SOURCES)[keyof typeof SIGNER_SOURCES];
41
41
  export declare function isWalletAuthMethod(value: unknown): value is WalletAuthMethod;
@@ -4,17 +4,17 @@ import type { MpcMaterialActivationRef } from './domainIds';
4
4
  import type { ThresholdEcdsaChainTarget } from './thresholdEcdsaChainTarget';
5
5
  import { SIGNER_AUTH_METHODS, type SignerAuthMethod } from './signerDomain';
6
6
  export declare const SIGNING_SESSION_SEALED_RECORD_VERSION: 2;
7
- export declare const SIGNING_SESSION_SEAL_ALG: "shamir3pass-v2";
8
- export declare const SIGNING_SESSION_SEAL_GROUP_ID: "rfc2409-group2";
9
- export declare const SIGNING_SESSION_SEAL_STORAGE_SCOPE: "iframe_origin_indexeddb";
10
- export declare const SIGNING_SESSION_SECRET_KIND: "signing_session_secret32";
11
- export declare const ROUTER_AB_ED25519_NORMAL_SIGNING_STATE_KIND: "router_ab_ed25519_normal_signing_v1";
12
- export declare const ROUTER_AB_ED25519_HEALTH_PATH: "/router-ab/ed25519/healthz";
13
- export declare const ROUTER_AB_ED25519_WALLET_SESSION_PATH: "/router-ab/wallet-session/ed25519";
14
- export declare const ROUTER_AB_ED25519_NORMAL_SIGNING_PREPARE_PATH: "/router-ab/ed25519/sign/prepare";
15
- export declare const ROUTER_AB_ED25519_NORMAL_SIGNING_PATH: "/router-ab/ed25519/sign";
16
- export declare const WALLET_SESSION_SEAL_BASE_PATH: "/wallet-session/seal";
17
- export declare function decodeSigningSessionSecret32(plaintext: Uint8Array): Uint8Array | null;
7
+ export declare const SIGNING_SESSION_SEAL_ALG: 'shamir3pass-v2';
8
+ export declare const SIGNING_SESSION_SEAL_GROUP_ID: 'rfc2409-group2';
9
+ export declare const SIGNING_SESSION_SEAL_STORAGE_SCOPE: 'iframe_origin_indexeddb';
10
+ export declare const SIGNING_SESSION_SECRET_KIND: 'signing_session_secret32';
11
+ export declare const ROUTER_AB_ED25519_NORMAL_SIGNING_STATE_KIND: 'router_ab_ed25519_normal_signing_v1';
12
+ export declare const ROUTER_AB_ED25519_HEALTH_PATH: '/router-ab/ed25519/healthz';
13
+ export declare const ROUTER_AB_ED25519_WALLET_SESSION_PATH: '/router-ab/wallet-session/ed25519';
14
+ export declare const ROUTER_AB_ED25519_NORMAL_SIGNING_PREPARE_PATH: '/router-ab/ed25519/sign/prepare';
15
+ export declare const ROUTER_AB_ED25519_NORMAL_SIGNING_PATH: '/router-ab/ed25519/sign';
16
+ export declare const WALLET_SESSION_SEAL_BASE_PATH: '/wallet-session/seal';
17
+ export declare function decodeSigningSessionSecret32(plaintext: Uint8Array): Uint8Array<ArrayBuffer> | null;
18
18
  export declare const PASSKEY_PRF_FIRST_SALT_V1: Uint8Array<ArrayBuffer>;
19
19
  export declare const PASSKEY_PRF_SECOND_SALT_V1: Uint8Array<ArrayBuffer>;
20
20
  export type SigningSessionSealAuthMethod = Extract<SignerAuthMethod, typeof SIGNER_AUTH_METHODS.passkey | typeof SIGNER_AUTH_METHODS.emailOtp>;
@@ -1,12 +1,12 @@
1
1
  export declare const WALLET_SESSION_FAILURE_CODES: {
2
- readonly missing: "wallet_session_missing";
3
- readonly signatureInvalid: "wallet_session_signature_invalid";
4
- readonly claimsInvalid: "wallet_session_claims_invalid";
5
- readonly invalid: "wallet_session_invalid";
6
- readonly expired: "wallet_session_expired";
7
- readonly scopeMismatch: "wallet_session_scope_mismatch";
8
- readonly unavailable: "wallet_session_unavailable";
9
- readonly budgetExhausted: "wallet_budget_exhausted";
2
+ readonly missing: 'wallet_session_missing';
3
+ readonly signatureInvalid: 'wallet_session_signature_invalid';
4
+ readonly claimsInvalid: 'wallet_session_claims_invalid';
5
+ readonly invalid: 'wallet_session_invalid';
6
+ readonly expired: 'wallet_session_expired';
7
+ readonly scopeMismatch: 'wallet_session_scope_mismatch';
8
+ readonly unavailable: 'wallet_session_unavailable';
9
+ readonly budgetExhausted: 'wallet_budget_exhausted';
10
10
  };
11
11
  export type WalletSessionFailureCode = (typeof WALLET_SESSION_FAILURE_CODES)[keyof typeof WALLET_SESSION_FAILURE_CODES];
12
12
  export declare function isWalletSessionFailureCode(value: unknown): value is WalletSessionFailureCode;
@@ -26,8 +26,8 @@ export type WebAuthnAuthenticatorDeviceInfo = {
26
26
  /** Display name for the provider, e.g. "iCloud Keychain". */
27
27
  providerLabel?: string;
28
28
  };
29
- declare const WEBAUTHN_DEVICE_BROWSERS: readonly ["chrome", "safari", "firefox", "edge", "other"];
30
- declare const WEBAUTHN_DEVICE_OSES: readonly ["macos", "ios", "windows", "android", "linux", "other"];
29
+ declare const WEBAUTHN_DEVICE_BROWSERS: readonly ['chrome', 'safari', 'firefox', 'edge', 'other'];
30
+ declare const WEBAUTHN_DEVICE_OSES: readonly ['macos', 'ios', 'windows', 'android', 'linux', 'other'];
31
31
  export declare function deriveWebAuthnAuthenticatorDeviceInfo(input: {
32
32
  userAgent?: string;
33
33
  aaguid?: string;
@@ -14,7 +14,7 @@ type ParseResult<T> = {
14
14
  readonly message: string;
15
15
  };
16
16
  };
17
- type Equal<A, B> = (<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2 ? true : false;
17
+ type Equal<A, B> = (<T>() => T extends A ? 1 : 2) extends <T>() => (T extends B ? 1 : 2) ? true : false;
18
18
  type NeverPaddingKeys<T> = {
19
19
  [K in keyof T]-?: [T[K]] extends [undefined] ? K : never;
20
20
  }[keyof T];
@@ -23,7 +23,7 @@ declare const walletRecoveryKeyIdBrand: unique symbol;
23
23
  export type DerivedWalletRecoveryKeyId = string & {
24
24
  readonly [walletRecoveryKeyIdBrand]: 'DerivedWalletRecoveryKeyId';
25
25
  };
26
- export declare const WALLET_RECOVERY_KEY_ID_PREFIX_V1: "wallet-rkid-v1-";
26
+ export declare const WALLET_RECOVERY_KEY_ID_PREFIX_V1: 'wallet-rkid-v1-';
27
27
  export declare function parseDerivedWalletRecoveryKeyId(value: unknown, label?: string): DerivedWalletRecoveryKeyId;
28
28
  /**
29
29
  * Derives one code's id within a wallet's recovery set, from the decoded code
@@ -23,7 +23,7 @@ type VerifiedWalletOperationEvidenceSetFields = {
23
23
  readonly expiresAtMs: number;
24
24
  };
25
25
  declare class VerifiedWalletOperationEvidenceSetProof {
26
- readonly kind: "verified_wallet_operation_evidence_set";
26
+ readonly kind: 'verified_wallet_operation_evidence_set';
27
27
  readonly tenantId: TenantId;
28
28
  readonly principalId: PrincipalId;
29
29
  readonly walletId: WalletId;
@@ -37,7 +37,7 @@ declare class VerifiedWalletOperationEvidenceSetProof {
37
37
  readonly laneDigest: DigestB64u;
38
38
  readonly intentDigest: DigestB64u;
39
39
  readonly displayDigest: DigestB64u;
40
- readonly assurance: "step_up";
40
+ readonly assurance: 'step_up';
41
41
  readonly verifiedAtMs: number;
42
42
  readonly expiresAtMs: number;
43
43
  private retainVerifiedEvidenceProof;
@@ -111,7 +111,7 @@ export declare function buildVerifiedWalletSessionEmailOtpFactorResult(fields: O
111
111
  /** Nominal server-only owner proofs; private constructors block browser forgery. */
112
112
  declare class VerifiedOwnerWalletSessionProof {
113
113
  protected readonly __proofBrand = true;
114
- readonly kind: "verified_owner_proof_v1";
114
+ readonly kind: 'verified_owner_proof_v1';
115
115
  readonly proofId: VerifiedOwnerProofId;
116
116
  readonly method: VerifiedOwnerProofMethod;
117
117
  readonly authSource: VerifiedOwnerProofFields['authSource'];
@@ -124,7 +124,7 @@ declare class VerifiedOwnerWalletSessionProof {
124
124
  readonly replayIdentity: string;
125
125
  readonly verifiedAtMs: number;
126
126
  readonly expiresAtMs: number;
127
- readonly purpose: "wallet_session";
127
+ readonly purpose: 'wallet_session';
128
128
  readonly operation?: never;
129
129
  constructor(fields: Extract<VerifiedOwnerProofFields, {
130
130
  readonly purpose: 'wallet_session';
@@ -132,7 +132,7 @@ declare class VerifiedOwnerWalletSessionProof {
132
132
  }
133
133
  declare class VerifiedOwnerOperationProof {
134
134
  protected readonly __proofBrand = true;
135
- readonly kind: "verified_owner_proof_v1";
135
+ readonly kind: 'verified_owner_proof_v1';
136
136
  readonly proofId: VerifiedOwnerProofId;
137
137
  readonly method: VerifiedOwnerProofMethod;
138
138
  readonly authSource: VerifiedOwnerProofFields['authSource'];
@@ -145,7 +145,7 @@ declare class VerifiedOwnerOperationProof {
145
145
  readonly replayIdentity: string;
146
146
  readonly verifiedAtMs: number;
147
147
  readonly expiresAtMs: number;
148
- readonly purpose: "operation";
148
+ readonly purpose: 'operation';
149
149
  readonly operation: OwnerOperationBinding;
150
150
  constructor(fields: Extract<VerifiedOwnerProofFields, {
151
151
  readonly purpose: 'operation';
@@ -1,6 +1,6 @@
1
1
  import type { WalletId } from '../../../shared-ts/src/utils/domainIds';
2
2
  import type { D1WalletStoreScope } from './d1WalletStore';
3
- export declare const ECDSA_INSTALLATION_SNAPSHOT_COLUMNS: readonly ["link_session_id", "authority_id", "wallet_id", "auth_method_id", "device_id", "package_set_digest_b64u", "target_factor_verification_digest_b64u", "target_factor_verified_at_ms", "source_manifest_digest_b64u", "delivery_recipient_public_key_b64u", "packages_json", "server_reservation_ids_json", "installed_record_set_digest_b64u", "activated_at_ms"];
3
+ export declare const ECDSA_INSTALLATION_SNAPSHOT_COLUMNS: readonly ['link_session_id', 'authority_id', 'wallet_id', 'auth_method_id', 'device_id', 'package_set_digest_b64u', 'target_factor_verification_digest_b64u', 'target_factor_verified_at_ms', 'source_manifest_digest_b64u', 'delivery_recipient_public_key_b64u', 'packages_json', 'server_reservation_ids_json', 'installed_record_set_digest_b64u', 'activated_at_ms'];
4
4
  type SqlCondition = {
5
5
  readonly sql: string;
6
6
  readonly bindings: readonly unknown[];
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import type { WalletRegistrationCommittedInstallationProjectionV1 } from './threeRouteRegistrationContracts';
9
9
  export declare const _threeRouteRequestFixtures: readonly [WalletRegistrationCommittedInstallationProjectionV1, ({
10
- readonly kind: "ecdsa_ready";
10
+ readonly kind: 'ecdsa_ready';
11
11
  readonly ecdsa: {
12
12
  readonly walletKeys: readonly import("./registrationContracts").WalletRegistrationEcdsaWalletKey[];
13
13
  readonly activation: import("../../../shared-ts/src/utils").RouterAbEcdsaRegistrationActivationReceiptV1;
@@ -18,7 +18,7 @@ export declare const _threeRouteRequestFixtures: readonly [WalletRegistrationCom
18
18
  readonly nearProvisioning?: never;
19
19
  readonly installation?: never;
20
20
  }) | ({
21
- readonly kind: "ecdsa_ready";
21
+ readonly kind: 'ecdsa_ready';
22
22
  readonly ecdsa: {
23
23
  readonly walletKeys: readonly import("./registrationContracts").WalletRegistrationEcdsaWalletKey[];
24
24
  readonly activation: import("../../../shared-ts/src/utils").RouterAbEcdsaRegistrationActivationReceiptV1;
@@ -27,11 +27,11 @@ export declare const _threeRouteRequestFixtures: readonly [WalletRegistrationCom
27
27
  readonly session: import("../../../shared-ts/src/utils/registrationEstablishedSession").RegistrationEstablishedSessionProjectionV2;
28
28
  } & {
29
29
  readonly nearProvisioning: {
30
- readonly status: "near_pending";
30
+ readonly status: 'near_pending';
31
31
  };
32
32
  readonly installation: WalletRegistrationCommittedInstallationProjectionV1;
33
33
  }), ({
34
- readonly kind: "ecdsa_ready";
34
+ readonly kind: 'ecdsa_ready';
35
35
  readonly ecdsa: {
36
36
  readonly walletKeys: readonly import("./registrationContracts").WalletRegistrationEcdsaWalletKey[];
37
37
  readonly activation: import("../../../shared-ts/src/utils").RouterAbEcdsaRegistrationActivationReceiptV1;
@@ -42,7 +42,7 @@ export declare const _threeRouteRequestFixtures: readonly [WalletRegistrationCom
42
42
  readonly nearProvisioning?: never;
43
43
  readonly installation?: never;
44
44
  }) | ({
45
- readonly kind: "ecdsa_ready";
45
+ readonly kind: 'ecdsa_ready';
46
46
  readonly ecdsa: {
47
47
  readonly walletKeys: readonly import("./registrationContracts").WalletRegistrationEcdsaWalletKey[];
48
48
  readonly activation: import("../../../shared-ts/src/utils").RouterAbEcdsaRegistrationActivationReceiptV1;
@@ -51,7 +51,7 @@ export declare const _threeRouteRequestFixtures: readonly [WalletRegistrationCom
51
51
  readonly session: import("../../../shared-ts/src/utils/registrationEstablishedSession").RegistrationEstablishedSessionProjectionV2;
52
52
  } & {
53
53
  readonly nearProvisioning: {
54
- readonly status: "near_pending";
54
+ readonly status: 'near_pending';
55
55
  };
56
56
  readonly installation: WalletRegistrationCommittedInstallationProjectionV1;
57
57
  })];
@@ -12,7 +12,7 @@ type WebAuthnClientDataJson = {
12
12
  readonly origin: string;
13
13
  readonly type: string;
14
14
  };
15
- export declare function decodeWebAuthnBase64UrlOrBase64(input: string, fieldName: string): Uint8Array;
15
+ export declare function decodeWebAuthnBase64UrlOrBase64(input: string, fieldName: string): Uint8Array<ArrayBuffer>;
16
16
  export declare function parseWebAuthnClientDataJsonBase64url(clientDataJSONB64u: string): WebAuthnClientDataJson;
17
17
  export declare function webAuthnOriginHostnameOrEmpty(origin: string): string;
18
18
  export declare function webAuthnCredentialIdB64uFromCredential(input: unknown): WebAuthnCredentialIdParseResult;
@@ -145,7 +145,7 @@ type TargetCredentialRegistrationSuccessV1 = {
145
145
  readonly targetCredential: LinkedDeviceTargetCredentialRegistrationResultV1;
146
146
  };
147
147
  export declare class LinkedDeviceRetiredTargetRegistrationShapeErrorV1 extends Error {
148
- readonly kind: "retired_target_registration_shape";
148
+ readonly kind: 'retired_target_registration_shape';
149
149
  constructor();
150
150
  }
151
151
  export declare class D1LinkedDeviceTargetCredentialProviderV1 implements DeviceLinkingTargetCredentialProviderV1 {
@@ -5,7 +5,7 @@ import type { ActiveLaneProtocolSourceV1 } from '../../../../../../shared-ts/src
5
5
  import type { EvmFamilySigningKeySlotId } from '../../../../../../shared-ts/src/signing-lanes/evmFamilySigningKeySlotId';
6
6
  import type { KeyCreationSignerSlot } from '../../../../../../shared-ts/src/passkey-custody/primitives';
7
7
  import type { Ed25519PublicKeyB64u } from '../../../../../../shared-ts/src/passkey-custody/primitives';
8
- import type { RouterAbEd25519YaoActivationBindingV1, RouterAbEd25519YaoApplicationBindingFactsV1, RouterAbEd25519YaoCeremonyBindingV1 } from '../../../../../../shared-ts/src/utils/routerAbEd25519Yao';
8
+ import type { RouterAbEd25519YaoActivationBindingV1, RouterAbEd25519YaoApplicationBindingFactsV1 } from '../../../../../../shared-ts/src/utils/routerAbEd25519Yao';
9
9
  import type { NearEd25519SigningKeyId } from '../../../../../../shared-ts/src/utils/registrationIds';
10
10
  import type { WalletKeyId } from '../../../../../../shared-ts/src/signing-lanes/ids';
11
11
  import type { LinkedDeviceSessionRecordV1 } from '../../../../core/deviceLinking/linkedDeviceSessionRecord';
@@ -25,10 +25,10 @@ type LinkedDeviceOwnerEd25519SourceChildResolutionV1 = LinkedDeviceOwnerSourceCh
25
25
  readonly nearEd25519SigningKeyId: NearEd25519SigningKeyId;
26
26
  readonly keyCreationSignerSlot: KeyCreationSignerSlot;
27
27
  readonly stableContextBindingB64u: string;
28
- readonly sourceBinding: RouterAbEd25519YaoActivationBindingV1<'registration'>;
28
+ readonly sourceBinding: RouterAbEd25519YaoActivationBindingV1;
29
29
  readonly applicationBinding: RouterAbEd25519YaoApplicationBindingFactsV1;
30
30
  /** A linked device's own registration binding, when that device is the source. */
31
- readonly linkedSourceBinding?: RouterAbEd25519YaoCeremonyBindingV1;
31
+ readonly linkedSourceBinding?: RouterAbEd25519YaoActivationBindingV1<'registration'>;
32
32
  };
33
33
  type LinkedDeviceOwnerEcdsaSourceChildResolutionV1 = LinkedDeviceOwnerSourceChildResolutionBaseV1 & {
34
34
  readonly keyFamily: 'ecdsa_secp256k1';
@@ -41,10 +41,10 @@ export declare class D1WalletRegistrationRead {
41
41
  ok: true;
42
42
  operation: import("../../../cloudflare-adaptor").VersionedJsonRecordReadResult<D1WalletRegistrationNearProvisioningSideEffectRecord>;
43
43
  readFounding: () => {
44
- readonly kind: "snapshot";
44
+ readonly kind: 'snapshot';
45
45
  readonly records: {
46
- readonly walletAuthMethodId: import("../../../../../../shared-ts/src/utils").WalletAuthMethodId;
47
46
  readonly walletAuthorityId: import("../../../../../../shared-ts/src/utils").WalletAuthorityId;
47
+ readonly walletAuthMethodId: import("../../../../../../shared-ts/src/utils").WalletAuthMethodId;
48
48
  } & {
49
49
  readonly authorityRow: {
50
50
  readonly record_json?: unknown;
@@ -43,9 +43,9 @@ type InitialEd25519RegistrationSessionInput = {
43
43
  export declare function commitInitialEd25519RegistrationSession(input: InitialEd25519RegistrationSessionInput, commitSession?: AuthorizationGrantPort['commitDirectReplayableWalletSessionAuthorizationV2']): Promise<{
44
44
  readonly result: DirectV2IssueResult;
45
45
  readonly publication: import("../../../../cloud-host").WalletSessionLocatorPublication & {
46
- readonly kind: "credential";
46
+ readonly kind: 'credential';
47
47
  };
48
- readonly registration: import("../../../..").DirectV2CommitResult["registration"];
48
+ readonly registration: import("../../../..").DirectV2CommitResult['registration'];
49
49
  }>;
50
50
  export declare function walletSessionPrincipalId(authority: WalletAuthAuthority): PrincipalId;
51
51
  export declare function buildRegistrationOwnerProof(input: {
@@ -1,5 +1,5 @@
1
1
  import type { D1DatabaseLike } from '../../../../storage/tenantRoute';
2
- declare const TABLES: readonly ["wallet_email_otp_rate_limits", "email_otp_wallet_enrollments", "email_otp_auth_states", "wallets", "wallet_signers", "wallet_recovery_code_locators", "wallet_authorities", "wallet_auth_methods", "wallet_relocation_approvals", "webauthn_credential_bindings", "webauthn_authenticators", "router_ab_yao_versioned_json_records", "authorization_wallet_session_quotas", "wallet_session_authorizations_v2", "wallet_session_hosted_credentials_v2", "wallet_session_hosted_exchange_codes_v2", "verified_wallet_operation_evidence_sets", "authorized_operations", "authorized_operation_audit_events", "linked_device_sessions", "linked_device_authority_allocations", "linked_device_authority_installations", "linked_device_target_credentials", "linked_device_target_commit_reservations", "linked_device_session_transcripts", "linked_device_ed25519_export_root_transfers", "linked_device_email_otp_grants", "linked_device_request_proof_nonces", "linked_device_bootstrap_imports", "linked_device_wallet_session_credential_deliveries_v1"];
2
+ declare const TABLES: readonly ['wallet_email_otp_rate_limits', 'email_otp_wallet_enrollments', 'email_otp_auth_states', 'wallets', 'wallet_signers', 'wallet_recovery_code_locators', 'wallet_authorities', 'wallet_auth_methods', 'wallet_relocation_approvals', 'webauthn_credential_bindings', 'webauthn_authenticators', 'router_ab_yao_versioned_json_records', 'authorization_wallet_session_quotas', 'wallet_session_authorizations_v2', 'wallet_session_hosted_credentials_v2', 'wallet_session_hosted_exchange_codes_v2', 'verified_wallet_operation_evidence_sets', 'authorized_operations', 'authorized_operation_audit_events', 'linked_device_sessions', 'linked_device_authority_allocations', 'linked_device_authority_installations', 'linked_device_target_credentials', 'linked_device_target_commit_reservations', 'linked_device_session_transcripts', 'linked_device_ed25519_export_root_transfers', 'linked_device_email_otp_grants', 'linked_device_request_proof_nonces', 'linked_device_bootstrap_imports', 'linked_device_wallet_session_credential_deliveries_v1'];
3
3
  type Table = (typeof TABLES)[number];
4
4
  export declare class AuthorizationSnapshotLayout {
5
5
  #private;
@@ -15,7 +15,7 @@ export type WalletRelocationFactorVerification = {
15
15
  };
16
16
  export declare function readWalletRelocationOwner(database: D1DatabaseLike, scope: D1TenantScope, binding: WalletRelocationChallengeBinding): Promise<{
17
17
  method: ({
18
- readonly version: "wallet_auth_method_v2";
18
+ readonly version: 'wallet_auth_method_v2';
19
19
  readonly walletAuthMethodId: import("../../../../../../shared-ts/src/utils").WalletAuthMethodId;
20
20
  readonly walletId: import("../../../../../../shared-ts/src/utils").WalletId;
21
21
  readonly walletAuthorityId: import("../../../../../../shared-ts/src/utils").WalletAuthorityId;
@@ -26,7 +26,7 @@ export declare function readWalletRelocationOwner(database: D1DatabaseLike, scop
26
26
  readonly walletId: import("../../../../../../shared-ts/src/utils").WalletId;
27
27
  readonly createdAtMs: number;
28
28
  } & {
29
- readonly kind: "passkey";
29
+ readonly kind: 'passkey';
30
30
  readonly rpId: import("../../../../../../shared-ts/src/utils").WebAuthnRpId;
31
31
  readonly credentialIdB64u: import("../../../../../../shared-ts/src/utils").WebAuthnCredentialIdB64u;
32
32
  readonly credentialPublicKeyB64u: string;
@@ -34,11 +34,11 @@ export declare function readWalletRelocationOwner(database: D1DatabaseLike, scop
34
34
  readonly emailHashHex?: never;
35
35
  readonly registrationAuthorityId?: never;
36
36
  } & {
37
- readonly status: "active";
37
+ readonly status: 'active';
38
38
  readonly activatedAtMs: number;
39
39
  readonly revokedAtMs?: undefined;
40
40
  }) | ({
41
- readonly version: "wallet_auth_method_v2";
41
+ readonly version: 'wallet_auth_method_v2';
42
42
  readonly walletAuthMethodId: import("../../../../../../shared-ts/src/utils").WalletAuthMethodId;
43
43
  readonly walletId: import("../../../../../../shared-ts/src/utils").WalletId;
44
44
  readonly walletAuthorityId: import("../../../../../../shared-ts/src/utils").WalletAuthorityId;
@@ -49,7 +49,7 @@ export declare function readWalletRelocationOwner(database: D1DatabaseLike, scop
49
49
  readonly walletId: import("../../../../../../shared-ts/src/utils").WalletId;
50
50
  readonly createdAtMs: number;
51
51
  } & {
52
- readonly kind: "email_otp";
52
+ readonly kind: 'email_otp';
53
53
  readonly emailHashHex: string;
54
54
  readonly registrationAuthorityId: string;
55
55
  readonly rpId?: never;
@@ -57,16 +57,16 @@ export declare function readWalletRelocationOwner(database: D1DatabaseLike, scop
57
57
  readonly credentialPublicKeyB64u?: never;
58
58
  readonly counter?: never;
59
59
  } & {
60
- readonly status: "active";
60
+ readonly status: 'active';
61
61
  readonly activatedAtMs: number;
62
62
  readonly revokedAtMs?: undefined;
63
63
  });
64
64
  authority: {
65
- readonly kind: "wallet_authority_v1";
65
+ readonly kind: 'wallet_authority_v1';
66
66
  readonly authorityId: import("../../../../../../shared-ts/src/utils").WalletAuthorityId;
67
67
  readonly walletId: import("../../../../../../shared-ts/src/utils").WalletId;
68
68
  readonly principal: {
69
- readonly kind: "owner_device";
69
+ readonly kind: 'owner_device';
70
70
  readonly deviceId: import("../../../../../../shared-ts/src/authorization").DeviceId;
71
71
  };
72
72
  readonly provenance: import("../../../../../../shared-ts/src/authorization").WalletAuthorityProvenanceV1;
@@ -78,7 +78,7 @@ export declare function readWalletRelocationOwner(database: D1DatabaseLike, scop
78
78
  readonly createdAtMs: number;
79
79
  readonly updatedAtMs: number;
80
80
  } & {
81
- readonly state: "active";
81
+ readonly state: 'active';
82
82
  readonly localInstallPackageSetDigestB64u?: never;
83
83
  readonly activatedAtMs: number;
84
84
  readonly revokedAtMs?: never;
@@ -6,12 +6,12 @@ import type { OrdinaryInactiveSignerMaterialActivationPortV1 } from '../d1/devic
6
6
  import { type RouterAbEd25519YaoResolvedTenantRootV1 } from '../../domains/ed25519Yao/routerAbEd25519YaoGatewayEnvelope';
7
7
  import type { OrdinaryEcdsaSignerMaterialReservationPreparationV1, OrdinaryEd25519SignerMaterialReservationPreparationV1 } from '../../../core/signingMaterial/ordinaryInactiveSignerMaterialReservation';
8
8
  /** Source-preserving ordinary material paths implemented by the Cloudflare workers. */
9
- export declare const CLOUDFLARE_ROUTER_ED25519_YAO_SOURCE_PRESERVING_EXECUTE_PATH_V1: "/router-ab/router/ed25519-yao/execute-source-preserving";
10
- export declare const CLOUDFLARE_SIGNING_WORKER_ECDSA_RESERVE_INACTIVE_SOURCE_PRESERVING_PATH_V1: "/router-ab/signing-worker/ecdsa-derivation/reserve-inactive-source-preserving";
11
- export declare const CLOUDFLARE_SIGNING_WORKER_ED25519_YAO_ACTIVATE_RESERVATION_PATH_V1: "/router-ab/signing-worker/ed25519-yao/activate-reservation";
12
- export declare const CLOUDFLARE_SIGNING_WORKER_ECDSA_ACTIVATE_RESERVATION_PATH_V1: "/router-ab/signing-worker/ecdsa-derivation/activate-reservation";
13
- export declare const CLOUDFLARE_SIGNING_WORKER_ED25519_YAO_DEACTIVATE_RESERVATION_PATH_V1: "/router-ab/signing-worker/ed25519-yao/deactivate-reservation";
14
- export declare const CLOUDFLARE_SIGNING_WORKER_ECDSA_DEACTIVATE_RESERVATION_PATH_V1: "/router-ab/signing-worker/ecdsa-derivation/deactivate-reservation";
9
+ export declare const CLOUDFLARE_ROUTER_ED25519_YAO_SOURCE_PRESERVING_EXECUTE_PATH_V1: '/router-ab/router/ed25519-yao/execute-source-preserving';
10
+ export declare const CLOUDFLARE_SIGNING_WORKER_ECDSA_RESERVE_INACTIVE_SOURCE_PRESERVING_PATH_V1: '/router-ab/signing-worker/ecdsa-derivation/reserve-inactive-source-preserving';
11
+ export declare const CLOUDFLARE_SIGNING_WORKER_ED25519_YAO_ACTIVATE_RESERVATION_PATH_V1: '/router-ab/signing-worker/ed25519-yao/activate-reservation';
12
+ export declare const CLOUDFLARE_SIGNING_WORKER_ECDSA_ACTIVATE_RESERVATION_PATH_V1: '/router-ab/signing-worker/ecdsa-derivation/activate-reservation';
13
+ export declare const CLOUDFLARE_SIGNING_WORKER_ED25519_YAO_DEACTIVATE_RESERVATION_PATH_V1: '/router-ab/signing-worker/ed25519-yao/deactivate-reservation';
14
+ export declare const CLOUDFLARE_SIGNING_WORKER_ECDSA_DEACTIVATE_RESERVATION_PATH_V1: '/router-ab/signing-worker/ecdsa-derivation/deactivate-reservation';
15
15
  /**
16
16
  * The tenant this Gateway serves. With one of its wallets it names the
17
17
  * SigningWorker wallet object that holds that wallet's material, and the