accounts 0.21.0 → 1.0.0-alpha.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/CHANGELOG.md +65 -1
- package/README.md +36 -56
- package/dist/Accounts.d.ts +320 -0
- package/dist/Accounts.d.ts.map +1 -0
- package/dist/Accounts.js +347 -0
- package/dist/Accounts.js.map +1 -0
- package/dist/Permissions.d.ts +189 -0
- package/dist/Permissions.d.ts.map +1 -0
- package/dist/Permissions.js +212 -0
- package/dist/Permissions.js.map +1 -0
- package/dist/Plugin.d.ts +130 -0
- package/dist/Plugin.d.ts.map +1 -0
- package/dist/Plugin.js +27 -0
- package/dist/Plugin.js.map +1 -0
- package/dist/Session.d.ts +75 -0
- package/dist/Session.d.ts.map +1 -0
- package/dist/Session.js +32 -0
- package/dist/Session.js.map +1 -0
- package/dist/Store.d.ts +45 -0
- package/dist/Store.d.ts.map +1 -0
- package/dist/Store.js +21 -0
- package/dist/Store.js.map +1 -0
- package/dist/actions/account.d.ts +326 -0
- package/dist/actions/account.d.ts.map +1 -0
- package/dist/actions/account.js +369 -0
- package/dist/actions/account.js.map +1 -0
- package/dist/actions/backend/email.d.ts +65 -0
- package/dist/actions/backend/email.d.ts.map +1 -0
- package/dist/actions/backend/email.js +93 -0
- package/dist/actions/backend/email.js.map +1 -0
- package/dist/actions/backend.d.ts +7 -0
- package/dist/actions/backend.d.ts.map +1 -0
- package/dist/actions/backend.js +7 -0
- package/dist/actions/backend.js.map +1 -0
- package/dist/actions/device.d.ts +64 -0
- package/dist/actions/device.d.ts.map +1 -0
- package/dist/actions/device.js +116 -0
- package/dist/actions/device.js.map +1 -0
- package/dist/actions/dialog.d.ts +280 -0
- package/dist/actions/dialog.d.ts.map +1 -0
- package/dist/actions/dialog.js +587 -0
- package/dist/actions/dialog.js.map +1 -0
- package/dist/actions/email.d.ts +111 -0
- package/dist/actions/email.d.ts.map +1 -0
- package/dist/actions/email.js +132 -0
- package/dist/actions/email.js.map +1 -0
- package/dist/actions/funding.d.ts +157 -0
- package/dist/actions/funding.d.ts.map +1 -0
- package/dist/actions/funding.js +360 -0
- package/dist/actions/funding.js.map +1 -0
- package/dist/actions/oauth.d.ts +126 -0
- package/dist/actions/oauth.d.ts.map +1 -0
- package/dist/actions/oauth.js +120 -0
- package/dist/actions/oauth.js.map +1 -0
- package/dist/actions/passkey.d.ts +215 -0
- package/dist/actions/passkey.d.ts.map +1 -0
- package/dist/actions/passkey.js +323 -0
- package/dist/actions/passkey.js.map +1 -0
- package/dist/actions/realm.d.ts +25 -0
- package/dist/actions/realm.d.ts.map +1 -0
- package/dist/actions/realm.js +16 -0
- package/dist/actions/realm.js.map +1 -0
- package/dist/actions/redirect.d.ts +169 -0
- package/dist/actions/redirect.d.ts.map +1 -0
- package/dist/actions/redirect.js +286 -0
- package/dist/actions/redirect.js.map +1 -0
- package/dist/cloudflare/DurableObject.d.ts +74 -0
- package/dist/cloudflare/DurableObject.d.ts.map +1 -0
- package/dist/cloudflare/DurableObject.js +75 -0
- package/dist/cloudflare/DurableObject.js.map +1 -0
- package/dist/cloudflare/index.d.ts +10 -0
- package/dist/cloudflare/index.d.ts.map +1 -0
- package/dist/cloudflare/index.js +10 -0
- package/dist/cloudflare/index.js.map +1 -0
- package/dist/expo/index.d.ts +10 -0
- package/dist/expo/index.d.ts.map +1 -0
- package/dist/expo/index.js +11 -0
- package/dist/expo/index.js.map +1 -0
- package/dist/index.d.ts +11 -28
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -28
- package/dist/index.js.map +1 -1
- package/dist/index.native.d.ts +9 -0
- package/dist/index.native.d.ts.map +1 -0
- package/dist/index.native.js +10 -0
- package/dist/index.native.js.map +1 -0
- package/dist/internal/AccessKey.d.ts +108 -0
- package/dist/internal/AccessKey.d.ts.map +1 -0
- package/dist/internal/AccessKey.js +114 -0
- package/dist/internal/AccessKey.js.map +1 -0
- package/dist/internal/AccessToken.d.ts +124 -0
- package/dist/internal/AccessToken.d.ts.map +1 -0
- package/dist/internal/AccessToken.js +155 -0
- package/dist/internal/AccessToken.js.map +1 -0
- package/dist/internal/Actions.d.ts +140 -0
- package/dist/internal/Actions.d.ts.map +1 -0
- package/dist/internal/Actions.js +178 -0
- package/dist/internal/Actions.js.map +1 -0
- package/dist/internal/Api.d.ts +194 -0
- package/dist/internal/Api.d.ts.map +1 -0
- package/dist/internal/Api.js +281 -0
- package/dist/internal/Api.js.map +1 -0
- package/dist/internal/Authorization.d.ts +33 -0
- package/dist/internal/Authorization.d.ts.map +1 -0
- package/dist/internal/Authorization.js +12 -0
- package/dist/internal/Authorization.js.map +1 -0
- package/dist/internal/BackendSessions.d.ts +141 -0
- package/dist/internal/BackendSessions.d.ts.map +1 -0
- package/dist/internal/BackendSessions.js +326 -0
- package/dist/internal/BackendSessions.js.map +1 -0
- package/dist/internal/Callback.d.ts +38 -0
- package/dist/internal/Callback.d.ts.map +1 -0
- package/dist/internal/Callback.js +40 -0
- package/dist/internal/Callback.js.map +1 -0
- package/dist/internal/Chains.d.ts +22 -0
- package/dist/internal/Chains.d.ts.map +1 -0
- package/dist/internal/Chains.js +16 -0
- package/dist/internal/Chains.js.map +1 -0
- package/dist/internal/ClientAssertion.d.ts +79 -0
- package/dist/internal/ClientAssertion.d.ts.map +1 -0
- package/dist/internal/ClientAssertion.js +77 -0
- package/dist/internal/ClientAssertion.js.map +1 -0
- package/dist/internal/ClientId.d.ts +12 -0
- package/dist/internal/ClientId.d.ts.map +1 -0
- package/dist/internal/ClientId.js +14 -0
- package/dist/internal/ClientId.js.map +1 -0
- package/dist/internal/Core.d.ts +98 -0
- package/dist/internal/Core.d.ts.map +1 -0
- package/dist/internal/Core.js +260 -0
- package/dist/internal/Core.js.map +1 -0
- package/dist/internal/DefaultDialog.d.ts +14 -0
- package/dist/internal/DefaultDialog.d.ts.map +1 -0
- package/dist/internal/DefaultDialog.js +61 -0
- package/dist/internal/DefaultDialog.js.map +1 -0
- package/dist/internal/DefaultStore.d.ts +11 -0
- package/dist/internal/DefaultStore.d.ts.map +1 -0
- package/dist/internal/DefaultStore.js +15 -0
- package/dist/internal/DefaultStore.js.map +1 -0
- package/dist/internal/Dpop.d.ts +105 -0
- package/dist/internal/Dpop.d.ts.map +1 -0
- package/dist/internal/Dpop.js +121 -0
- package/dist/internal/Dpop.js.map +1 -0
- package/dist/internal/Expiry.d.ts +15 -0
- package/dist/internal/Expiry.d.ts.map +1 -0
- package/dist/internal/Expiry.js +5 -0
- package/dist/internal/Expiry.js.map +1 -0
- package/dist/internal/Funding.d.ts +30 -0
- package/dist/internal/Funding.d.ts.map +1 -0
- package/dist/internal/Funding.js +12 -0
- package/dist/internal/Funding.js.map +1 -0
- package/dist/internal/Handler.d.ts +13 -0
- package/dist/internal/Handler.d.ts.map +1 -0
- package/dist/internal/Handler.js +10 -0
- package/dist/internal/Handler.js.map +1 -0
- package/dist/internal/Headless.d.ts +167 -0
- package/dist/internal/Headless.d.ts.map +1 -0
- package/dist/internal/Headless.js +207 -0
- package/dist/internal/Headless.js.map +1 -0
- package/dist/internal/IndexedDb.d.ts +8 -0
- package/dist/internal/IndexedDb.d.ts.map +1 -0
- package/dist/internal/IndexedDb.js +34 -0
- package/dist/internal/IndexedDb.js.map +1 -0
- package/dist/internal/LogoutToken.d.ts +87 -0
- package/dist/internal/LogoutToken.d.ts.map +1 -0
- package/dist/internal/LogoutToken.js +107 -0
- package/dist/internal/LogoutToken.js.map +1 -0
- package/dist/internal/Pending.d.ts +42 -0
- package/dist/internal/Pending.d.ts.map +1 -0
- package/dist/internal/Pending.js +12 -0
- package/dist/internal/Pending.js.map +1 -0
- package/dist/internal/Popup.d.ts +57 -0
- package/dist/internal/Popup.d.ts.map +1 -0
- package/dist/internal/Popup.js +102 -0
- package/dist/internal/Popup.js.map +1 -0
- package/dist/internal/Registration.d.ts +43 -0
- package/dist/internal/Registration.d.ts.map +1 -0
- package/dist/internal/Registration.js +39 -0
- package/dist/internal/Registration.js.map +1 -0
- package/dist/internal/Request.d.ts +108 -0
- package/dist/internal/Request.d.ts.map +1 -0
- package/dist/internal/Request.js +137 -0
- package/dist/internal/Request.js.map +1 -0
- package/dist/internal/Rpc.d.ts +52 -0
- package/dist/internal/Rpc.d.ts.map +1 -0
- package/dist/internal/Rpc.js +68 -0
- package/dist/internal/Rpc.js.map +1 -0
- package/dist/internal/Session.d.ts +526 -0
- package/dist/internal/Session.d.ts.map +1 -0
- package/dist/internal/Session.js +1019 -0
- package/dist/internal/Session.js.map +1 -0
- package/dist/internal/Sheet.d.ts +447 -0
- package/dist/internal/Sheet.d.ts.map +1 -0
- package/dist/internal/Sheet.js +1040 -0
- package/dist/internal/Sheet.js.map +1 -0
- package/dist/internal/SignIn.d.ts +41 -0
- package/dist/internal/SignIn.d.ts.map +1 -0
- package/dist/internal/SignIn.js +66 -0
- package/dist/internal/SignIn.js.map +1 -0
- package/dist/internal/Signer.d.ts +43 -0
- package/dist/internal/Signer.d.ts.map +1 -0
- package/dist/internal/Signer.js +237 -0
- package/dist/internal/Signer.js.map +1 -0
- package/dist/internal/TempoAccount.d.ts +120 -0
- package/dist/internal/TempoAccount.d.ts.map +1 -0
- package/dist/internal/TempoAccount.js +58 -0
- package/dist/internal/TempoAccount.js.map +1 -0
- package/dist/internal/Tokens.d.ts +25 -0
- package/dist/internal/Tokens.d.ts.map +1 -0
- package/dist/internal/Tokens.js +12 -0
- package/dist/internal/Tokens.js.map +1 -0
- package/dist/internal/User.d.ts +21 -0
- package/dist/internal/User.d.ts.map +1 -0
- package/dist/internal/User.js +12 -0
- package/dist/internal/User.js.map +1 -0
- package/dist/internal/Verifier.d.ts +37 -0
- package/dist/internal/Verifier.d.ts.map +1 -0
- package/dist/internal/Verifier.js +68 -0
- package/dist/internal/Verifier.js.map +1 -0
- package/dist/internal/handlers/Relay.d.ts +36 -0
- package/dist/internal/handlers/Relay.d.ts.map +1 -0
- package/dist/internal/handlers/Relay.js +58 -0
- package/dist/internal/handlers/Relay.js.map +1 -0
- package/dist/internal/index.d.ts +19 -0
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/internal/index.js +19 -0
- package/dist/internal/index.js.map +1 -0
- package/dist/internal/viem/AccessKey.d.ts +88 -0
- package/dist/internal/viem/AccessKey.d.ts.map +1 -0
- package/dist/internal/viem/AccessKey.js +140 -0
- package/dist/internal/viem/AccessKey.js.map +1 -0
- package/dist/internal/viem/Retry.d.ts +69 -0
- package/dist/internal/viem/Retry.d.ts.map +1 -0
- package/dist/internal/viem/Retry.js +174 -0
- package/dist/internal/viem/Retry.js.map +1 -0
- package/dist/internal/viem/Verify.d.ts +43 -0
- package/dist/internal/viem/Verify.d.ts.map +1 -0
- package/dist/internal/viem/Verify.js +85 -0
- package/dist/internal/viem/Verify.js.map +1 -0
- package/dist/mpp/index.d.ts +138 -0
- package/dist/mpp/index.d.ts.map +1 -0
- package/dist/mpp/index.js +203 -0
- package/dist/mpp/index.js.map +1 -0
- package/dist/plugins/backend.d.ts +159 -0
- package/dist/plugins/backend.d.ts.map +1 -0
- package/dist/plugins/backend.js +160 -0
- package/dist/plugins/backend.js.map +1 -0
- package/dist/plugins/device.d.ts +60 -0
- package/dist/plugins/device.d.ts.map +1 -0
- package/dist/plugins/device.js +57 -0
- package/dist/plugins/device.js.map +1 -0
- package/dist/plugins/dialog.d.ts +59 -0
- package/dist/plugins/dialog.d.ts.map +1 -0
- package/dist/plugins/dialog.js +72 -0
- package/dist/plugins/dialog.js.map +1 -0
- package/dist/plugins/email.d.ts +81 -0
- package/dist/plugins/email.d.ts.map +1 -0
- package/dist/plugins/email.js +94 -0
- package/dist/plugins/email.js.map +1 -0
- package/dist/plugins/expo.d.ts +35 -0
- package/dist/plugins/expo.d.ts.map +1 -0
- package/dist/plugins/expo.js +56 -0
- package/dist/plugins/expo.js.map +1 -0
- package/dist/plugins/funding.d.ts +61 -0
- package/dist/plugins/funding.d.ts.map +1 -0
- package/dist/plugins/funding.js +110 -0
- package/dist/plugins/funding.js.map +1 -0
- package/dist/plugins/index.d.ts +23 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +23 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/plugins/index.native.d.ts +10 -0
- package/dist/plugins/index.native.d.ts.map +1 -0
- package/dist/plugins/index.native.js +11 -0
- package/dist/plugins/index.native.js.map +1 -0
- package/dist/plugins/passkey.d.ts +106 -0
- package/dist/plugins/passkey.d.ts.map +1 -0
- package/dist/plugins/passkey.js +99 -0
- package/dist/plugins/passkey.js.map +1 -0
- package/dist/plugins/redirect.d.ts +63 -0
- package/dist/plugins/redirect.d.ts.map +1 -0
- package/dist/plugins/redirect.js +192 -0
- package/dist/plugins/redirect.js.map +1 -0
- package/dist/plugins/relay.d.ts +73 -0
- package/dist/plugins/relay.d.ts.map +1 -0
- package/dist/plugins/relay.js +77 -0
- package/dist/plugins/relay.js.map +1 -0
- package/dist/plugins/viem.d.ts +250 -0
- package/dist/plugins/viem.d.ts.map +1 -0
- package/dist/plugins/viem.js +464 -0
- package/dist/plugins/viem.js.map +1 -0
- package/dist/react/index.d.ts +178 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +295 -1
- package/dist/react/index.js.map +1 -1
- package/dist/stores/DurableObject.d.ts +42 -0
- package/dist/stores/DurableObject.d.ts.map +1 -0
- package/dist/stores/DurableObject.js +79 -0
- package/dist/stores/DurableObject.js.map +1 -0
- package/dist/stores/File.d.ts +15 -0
- package/dist/stores/File.d.ts.map +1 -0
- package/dist/stores/File.js +183 -0
- package/dist/stores/File.js.map +1 -0
- package/dist/stores/Memory.d.ts +12 -0
- package/dist/stores/Memory.d.ts.map +1 -0
- package/dist/stores/Memory.js +37 -0
- package/dist/stores/Memory.js.map +1 -0
- package/dist/stores/Postgres.d.ts +30 -0
- package/dist/stores/Postgres.d.ts.map +1 -0
- package/dist/stores/Postgres.js +68 -0
- package/dist/stores/Postgres.js.map +1 -0
- package/dist/stores/Redis.d.ts +26 -0
- package/dist/stores/Redis.d.ts.map +1 -0
- package/dist/stores/Redis.js +44 -0
- package/dist/stores/Redis.js.map +1 -0
- package/dist/wagmi/index.d.ts +187 -25
- package/dist/wagmi/index.d.ts.map +1 -1
- package/dist/wagmi/index.js +539 -22
- package/dist/wagmi/index.js.map +1 -1
- package/package.json +93 -121
- package/src/Accounts.ts +770 -0
- package/src/Permissions.ts +407 -0
- package/src/Plugin.ts +193 -0
- package/src/Session.ts +87 -0
- package/src/Store.ts +53 -0
- package/src/actions/account.ts +641 -0
- package/src/actions/backend/email.ts +168 -0
- package/src/actions/backend.ts +6 -0
- package/src/actions/device.ts +184 -0
- package/src/actions/dialog.ts +830 -0
- package/src/actions/email.ts +237 -0
- package/src/actions/funding.ts +567 -0
- package/src/actions/oauth.ts +199 -0
- package/src/actions/passkey.ts +574 -0
- package/src/actions/realm.ts +37 -0
- package/src/actions/redirect.ts +484 -0
- package/src/cloudflare/DurableObject.ts +140 -0
- package/src/cloudflare/index.ts +9 -0
- package/src/cloudflare/workers.d.ts +20 -0
- package/src/expo/index.ts +11 -0
- package/src/index.native.ts +10 -0
- package/src/index.ts +11 -30
- package/src/internal/AccessKey.ts +188 -0
- package/src/internal/AccessToken.ts +291 -0
- package/src/internal/Actions.ts +290 -0
- package/src/internal/Api.ts +466 -0
- package/src/internal/Authorization.ts +38 -0
- package/src/internal/BackendSessions.ts +518 -0
- package/src/internal/Callback.ts +67 -0
- package/src/internal/Chains.ts +26 -0
- package/src/internal/ClientAssertion.ts +131 -0
- package/src/internal/ClientId.ts +14 -0
- package/src/internal/Core.ts +364 -0
- package/src/internal/DefaultDialog.ts +85 -0
- package/src/internal/DefaultStore.ts +20 -0
- package/src/internal/Dpop.ts +184 -0
- package/src/internal/Expiry.ts +17 -0
- package/src/internal/Funding.ts +32 -0
- package/src/internal/Handler.ts +16 -0
- package/src/internal/Headless.ts +320 -0
- package/src/internal/IndexedDb.ts +46 -0
- package/src/internal/LogoutToken.ts +194 -0
- package/src/internal/Pending.ts +49 -0
- package/src/internal/Popup.ts +134 -0
- package/src/internal/Registration.ts +86 -0
- package/src/internal/Request.ts +220 -0
- package/src/internal/Rpc.ts +104 -0
- package/src/internal/Session.ts +1518 -0
- package/src/internal/Sheet.ts +1382 -0
- package/src/internal/SignIn.ts +113 -0
- package/src/internal/Signer.ts +334 -0
- package/src/internal/TempoAccount.ts +146 -0
- package/src/internal/Tokens.ts +27 -0
- package/src/internal/User.ts +23 -0
- package/src/internal/Verifier.ts +99 -0
- package/src/internal/handlers/Relay.ts +88 -0
- package/src/internal/index.ts +18 -0
- package/src/internal/viem/AccessKey.ts +205 -0
- package/src/internal/viem/Retry.ts +256 -0
- package/src/internal/viem/Verify.ts +141 -0
- package/src/mpp/index.ts +318 -0
- package/src/plugins/backend.ts +304 -0
- package/src/plugins/device.ts +98 -0
- package/src/plugins/dialog.ts +114 -0
- package/src/plugins/email.ts +156 -0
- package/src/plugins/expo.ts +76 -0
- package/src/plugins/funding.ts +159 -0
- package/src/plugins/index.native.ts +11 -0
- package/src/plugins/index.ts +22 -0
- package/src/plugins/passkey.ts +186 -0
- package/src/plugins/redirect.ts +219 -0
- package/src/plugins/relay.ts +134 -0
- package/src/plugins/viem.ts +704 -0
- package/src/react/index.ts +427 -1
- package/src/stores/DurableObject.ts +103 -0
- package/src/stores/File.ts +207 -0
- package/src/stores/Memory.ts +36 -0
- package/src/stores/Postgres.ts +106 -0
- package/src/stores/Redis.ts +56 -0
- package/src/wagmi/index.ts +798 -27
- package/dist/cli/Provider.d.ts +0 -15
- package/dist/cli/Provider.d.ts.map +0 -1
- package/dist/cli/Provider.js +0 -33
- package/dist/cli/Provider.js.map +0 -1
- package/dist/cli/adapter.d.ts +0 -33
- package/dist/cli/adapter.d.ts.map +0 -1
- package/dist/cli/adapter.js +0 -102
- package/dist/cli/adapter.js.map +0 -1
- package/dist/cli/index.d.ts +0 -5
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -5
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/storage.d.ts +0 -15
- package/dist/cli/storage.d.ts.map +0 -1
- package/dist/cli/storage.js +0 -128
- package/dist/cli/storage.js.map +0 -1
- package/dist/core/AccessKey.d.ts +0 -326
- package/dist/core/AccessKey.d.ts.map +0 -1
- package/dist/core/AccessKey.js +0 -561
- package/dist/core/AccessKey.js.map +0 -1
- package/dist/core/Account.d.ts +0 -77
- package/dist/core/Account.d.ts.map +0 -1
- package/dist/core/Account.js +0 -70
- package/dist/core/Account.js.map +0 -1
- package/dist/core/Adapter.d.ts +0 -403
- package/dist/core/Adapter.d.ts.map +0 -1
- package/dist/core/Adapter.js +0 -7
- package/dist/core/Adapter.js.map +0 -1
- package/dist/core/Client.d.ts +0 -26
- package/dist/core/Client.d.ts.map +0 -1
- package/dist/core/Client.js +0 -202
- package/dist/core/Client.js.map +0 -1
- package/dist/core/Dialog.d.ts +0 -79
- package/dist/core/Dialog.d.ts.map +0 -1
- package/dist/core/Dialog.js +0 -460
- package/dist/core/Dialog.js.map +0 -1
- package/dist/core/ExecutionError.d.ts +0 -25
- package/dist/core/ExecutionError.d.ts.map +0 -1
- package/dist/core/ExecutionError.js +0 -435
- package/dist/core/ExecutionError.js.map +0 -1
- package/dist/core/Expiry.d.ts +0 -15
- package/dist/core/Expiry.d.ts.map +0 -1
- package/dist/core/Expiry.js +0 -29
- package/dist/core/Expiry.js.map +0 -1
- package/dist/core/IntersectionObserver.d.ts +0 -3
- package/dist/core/IntersectionObserver.d.ts.map +0 -1
- package/dist/core/IntersectionObserver.js +0 -6
- package/dist/core/IntersectionObserver.js.map +0 -1
- package/dist/core/Keystore.d.ts +0 -121
- package/dist/core/Keystore.d.ts.map +0 -1
- package/dist/core/Keystore.js +0 -27
- package/dist/core/Keystore.js.map +0 -1
- package/dist/core/Mach.d.ts +0 -45
- package/dist/core/Mach.d.ts.map +0 -1
- package/dist/core/Mach.js +0 -61
- package/dist/core/Mach.js.map +0 -1
- package/dist/core/Messenger.d.ts +0 -108
- package/dist/core/Messenger.d.ts.map +0 -1
- package/dist/core/Messenger.js +0 -127
- package/dist/core/Messenger.js.map +0 -1
- package/dist/core/Provider.d.ts +0 -246
- package/dist/core/Provider.d.ts.map +0 -1
- package/dist/core/Provider.js +0 -1917
- package/dist/core/Provider.js.map +0 -1
- package/dist/core/ProviderRequest.d.ts +0 -34
- package/dist/core/ProviderRequest.d.ts.map +0 -1
- package/dist/core/ProviderRequest.js +0 -42
- package/dist/core/ProviderRequest.js.map +0 -1
- package/dist/core/Remote.d.ts +0 -195
- package/dist/core/Remote.d.ts.map +0 -1
- package/dist/core/Remote.js +0 -215
- package/dist/core/Remote.js.map +0 -1
- package/dist/core/Schema.d.ts +0 -1857
- package/dist/core/Schema.d.ts.map +0 -1
- package/dist/core/Schema.js +0 -44
- package/dist/core/Schema.js.map +0 -1
- package/dist/core/Storage.d.ts +0 -46
- package/dist/core/Storage.d.ts.map +0 -1
- package/dist/core/Storage.js +0 -188
- package/dist/core/Storage.js.map +0 -1
- package/dist/core/Store.d.ts +0 -107
- package/dist/core/Store.d.ts.map +0 -1
- package/dist/core/Store.js +0 -222
- package/dist/core/Store.js.map +0 -1
- package/dist/core/Tokenlist.d.ts +0 -48
- package/dist/core/Tokenlist.d.ts.map +0 -1
- package/dist/core/Tokenlist.js +0 -52
- package/dist/core/Tokenlist.js.map +0 -1
- package/dist/core/TrustedHosts.d.ts +0 -20
- package/dist/core/TrustedHosts.d.ts.map +0 -1
- package/dist/core/TrustedHosts.js +0 -39
- package/dist/core/TrustedHosts.js.map +0 -1
- package/dist/core/WebAuthnCeremony.d.ts +0 -113
- package/dist/core/WebAuthnCeremony.d.ts.map +0 -1
- package/dist/core/WebAuthnCeremony.js +0 -109
- package/dist/core/WebAuthnCeremony.js.map +0 -1
- package/dist/core/adapters/deviceCode/deviceCode.d.ts +0 -66
- package/dist/core/adapters/deviceCode/deviceCode.d.ts.map +0 -1
- package/dist/core/adapters/deviceCode/deviceCode.js +0 -94
- package/dist/core/adapters/deviceCode/deviceCode.js.map +0 -1
- package/dist/core/adapters/deviceCode/index.d.ts +0 -3
- package/dist/core/adapters/deviceCode/index.d.ts.map +0 -1
- package/dist/core/adapters/deviceCode/index.js +0 -3
- package/dist/core/adapters/deviceCode/index.js.map +0 -1
- package/dist/core/adapters/deviceCode/tempoWallet.d.ts +0 -9
- package/dist/core/adapters/deviceCode/tempoWallet.d.ts.map +0 -1
- package/dist/core/adapters/deviceCode/tempoWallet.js +0 -11
- package/dist/core/adapters/deviceCode/tempoWallet.js.map +0 -1
- package/dist/core/adapters/dialog.d.ts +0 -36
- package/dist/core/adapters/dialog.d.ts.map +0 -1
- package/dist/core/adapters/dialog.js +0 -157
- package/dist/core/adapters/dialog.js.map +0 -1
- package/dist/core/adapters/internal/fromRequest.d.ts +0 -79
- package/dist/core/adapters/internal/fromRequest.d.ts.map +0 -1
- package/dist/core/adapters/internal/fromRequest.js +0 -142
- package/dist/core/adapters/internal/fromRequest.js.map +0 -1
- package/dist/core/adapters/local.d.ts +0 -33
- package/dist/core/adapters/local.d.ts.map +0 -1
- package/dist/core/adapters/local.js +0 -277
- package/dist/core/adapters/local.js.map +0 -1
- package/dist/core/adapters/mobileWebAuth/index.d.ts +0 -3
- package/dist/core/adapters/mobileWebAuth/index.d.ts.map +0 -1
- package/dist/core/adapters/mobileWebAuth/index.js +0 -3
- package/dist/core/adapters/mobileWebAuth/index.js.map +0 -1
- package/dist/core/adapters/mobileWebAuth/mobileWebAuth.d.ts +0 -31
- package/dist/core/adapters/mobileWebAuth/mobileWebAuth.d.ts.map +0 -1
- package/dist/core/adapters/mobileWebAuth/mobileWebAuth.js +0 -61
- package/dist/core/adapters/mobileWebAuth/mobileWebAuth.js.map +0 -1
- package/dist/core/adapters/mobileWebAuth/tempoWallet.d.ts +0 -9
- package/dist/core/adapters/mobileWebAuth/tempoWallet.d.ts.map +0 -1
- package/dist/core/adapters/mobileWebAuth/tempoWallet.js +0 -11
- package/dist/core/adapters/mobileWebAuth/tempoWallet.js.map +0 -1
- package/dist/core/adapters/postMessage/index.d.ts +0 -5
- package/dist/core/adapters/postMessage/index.d.ts.map +0 -1
- package/dist/core/adapters/postMessage/index.js +0 -5
- package/dist/core/adapters/postMessage/index.js.map +0 -1
- package/dist/core/adapters/postMessage/mount.d.ts +0 -76
- package/dist/core/adapters/postMessage/mount.d.ts.map +0 -1
- package/dist/core/adapters/postMessage/mount.js +0 -249
- package/dist/core/adapters/postMessage/mount.js.map +0 -1
- package/dist/core/adapters/postMessage/postMessage.d.ts +0 -56
- package/dist/core/adapters/postMessage/postMessage.d.ts.map +0 -1
- package/dist/core/adapters/postMessage/postMessage.js +0 -312
- package/dist/core/adapters/postMessage/postMessage.js.map +0 -1
- package/dist/core/adapters/postMessage/tempoWallet.d.ts +0 -13
- package/dist/core/adapters/postMessage/tempoWallet.d.ts.map +0 -1
- package/dist/core/adapters/postMessage/tempoWallet.js +0 -24
- package/dist/core/adapters/postMessage/tempoWallet.js.map +0 -1
- package/dist/core/adapters/privy.d.ts +0 -163
- package/dist/core/adapters/privy.d.ts.map +0 -1
- package/dist/core/adapters/privy.js +0 -533
- package/dist/core/adapters/privy.js.map +0 -1
- package/dist/core/adapters/secp256k1.d.ts +0 -45
- package/dist/core/adapters/secp256k1.d.ts.map +0 -1
- package/dist/core/adapters/secp256k1.js +0 -70
- package/dist/core/adapters/secp256k1.js.map +0 -1
- package/dist/core/adapters/turnkey.d.ts +0 -138
- package/dist/core/adapters/turnkey.d.ts.map +0 -1
- package/dist/core/adapters/turnkey.js +0 -339
- package/dist/core/adapters/turnkey.js.map +0 -1
- package/dist/core/adapters/webAuthn.d.ts +0 -46
- package/dist/core/adapters/webAuthn.d.ts.map +0 -1
- package/dist/core/adapters/webAuthn.js +0 -228
- package/dist/core/adapters/webAuthn.js.map +0 -1
- package/dist/core/internal/AccessKeyTransaction.d.ts +0 -59
- package/dist/core/internal/AccessKeyTransaction.d.ts.map +0 -1
- package/dist/core/internal/AccessKeyTransaction.js +0 -151
- package/dist/core/internal/AccessKeyTransaction.js.map +0 -1
- package/dist/core/internal/RemoteRequests.d.ts +0 -31
- package/dist/core/internal/RemoteRequests.d.ts.map +0 -1
- package/dist/core/internal/RemoteRequests.js +0 -141
- package/dist/core/internal/RemoteRequests.js.map +0 -1
- package/dist/core/internal/address.d.ts +0 -5
- package/dist/core/internal/address.d.ts.map +0 -1
- package/dist/core/internal/address.js +0 -14
- package/dist/core/internal/address.js.map +0 -1
- package/dist/core/internal/schema.d.ts +0 -7
- package/dist/core/internal/schema.d.ts.map +0 -1
- package/dist/core/internal/schema.js +0 -9
- package/dist/core/internal/schema.js.map +0 -1
- package/dist/core/internal/withDedupe.d.ts +0 -13
- package/dist/core/internal/withDedupe.d.ts.map +0 -1
- package/dist/core/internal/withDedupe.js +0 -13
- package/dist/core/internal/withDedupe.js.map +0 -1
- package/dist/core/internal/zodIssues.d.ts +0 -18
- package/dist/core/internal/zodIssues.d.ts.map +0 -1
- package/dist/core/internal/zodIssues.js +0 -47
- package/dist/core/internal/zodIssues.js.map +0 -1
- package/dist/core/keystores/p256.d.ts +0 -11
- package/dist/core/keystores/p256.d.ts.map +0 -1
- package/dist/core/keystores/p256.js +0 -31
- package/dist/core/keystores/p256.js.map +0 -1
- package/dist/core/keystores/secp256k1.d.ts +0 -10
- package/dist/core/keystores/secp256k1.d.ts.map +0 -1
- package/dist/core/keystores/secp256k1.js +0 -30
- package/dist/core/keystores/secp256k1.js.map +0 -1
- package/dist/core/keystores/webCryptoP256.d.ts +0 -40
- package/dist/core/keystores/webCryptoP256.d.ts.map +0 -1
- package/dist/core/keystores/webCryptoP256.js +0 -80
- package/dist/core/keystores/webCryptoP256.js.map +0 -1
- package/dist/core/zod/request.d.ts +0 -31
- package/dist/core/zod/request.d.ts.map +0 -1
- package/dist/core/zod/request.js +0 -41
- package/dist/core/zod/request.js.map +0 -1
- package/dist/core/zod/rpc.d.ts +0 -1602
- package/dist/core/zod/rpc.d.ts.map +0 -1
- package/dist/core/zod/rpc.js +0 -927
- package/dist/core/zod/rpc.js.map +0 -1
- package/dist/core/zod/utils.d.ts +0 -18
- package/dist/core/zod/utils.d.ts.map +0 -1
- package/dist/core/zod/utils.js +0 -21
- package/dist/core/zod/utils.js.map +0 -1
- package/dist/internal/types.d.ts +0 -284
- package/dist/internal/types.d.ts.map +0 -1
- package/dist/internal/types.js +0 -2
- package/dist/internal/types.js.map +0 -1
- package/dist/react/Remote.d.ts +0 -34
- package/dist/react/Remote.d.ts.map +0 -1
- package/dist/react/Remote.js +0 -147
- package/dist/react/Remote.js.map +0 -1
- package/dist/react/privy.d.ts +0 -23
- package/dist/react/privy.d.ts.map +0 -1
- package/dist/react/privy.js +0 -223
- package/dist/react/privy.js.map +0 -1
- package/dist/react-native/asyncStorage.d.ts +0 -8
- package/dist/react-native/asyncStorage.d.ts.map +0 -1
- package/dist/react-native/asyncStorage.js +0 -28
- package/dist/react-native/asyncStorage.js.map +0 -1
- package/dist/react-native/expoSecureStore.d.ts +0 -13
- package/dist/react-native/expoSecureStore.d.ts.map +0 -1
- package/dist/react-native/expoSecureStore.js +0 -21
- package/dist/react-native/expoSecureStore.js.map +0 -1
- package/dist/react-native/expoWebBrowser.d.ts +0 -4
- package/dist/react-native/expoWebBrowser.d.ts.map +0 -1
- package/dist/react-native/expoWebBrowser.js +0 -9
- package/dist/react-native/expoWebBrowser.js.map +0 -1
- package/dist/react-native/secureMmkv.d.ts +0 -24
- package/dist/react-native/secureMmkv.d.ts.map +0 -1
- package/dist/react-native/secureMmkv.js +0 -61
- package/dist/react-native/secureMmkv.js.map +0 -1
- package/dist/server/CliAuth.d.ts +0 -1566
- package/dist/server/CliAuth.d.ts.map +0 -1
- package/dist/server/CliAuth.js +0 -964
- package/dist/server/CliAuth.js.map +0 -1
- package/dist/server/Handler.d.ts +0 -92
- package/dist/server/Handler.d.ts.map +0 -1
- package/dist/server/Handler.js +0 -88
- package/dist/server/Handler.js.map +0 -1
- package/dist/server/Identity.d.ts +0 -31
- package/dist/server/Identity.d.ts.map +0 -1
- package/dist/server/Identity.js +0 -47
- package/dist/server/Identity.js.map +0 -1
- package/dist/server/Kv.d.ts +0 -175
- package/dist/server/Kv.d.ts.map +0 -1
- package/dist/server/Kv.js +0 -219
- package/dist/server/Kv.js.map +0 -1
- package/dist/server/index.d.ts +0 -7
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/index.js +0 -7
- package/dist/server/index.js.map +0 -1
- package/dist/server/internal/handlers/auth.d.ts +0 -221
- package/dist/server/internal/handlers/auth.d.ts.map +0 -1
- package/dist/server/internal/handlers/auth.js +0 -400
- package/dist/server/internal/handlers/auth.js.map +0 -1
- package/dist/server/internal/handlers/codeAuth.d.ts +0 -48
- package/dist/server/internal/handlers/codeAuth.d.ts.map +0 -1
- package/dist/server/internal/handlers/codeAuth.js +0 -159
- package/dist/server/internal/handlers/codeAuth.js.map +0 -1
- package/dist/server/internal/handlers/deviceCode.d.ts +0 -60
- package/dist/server/internal/handlers/deviceCode.d.ts.map +0 -1
- package/dist/server/internal/handlers/deviceCode.js +0 -218
- package/dist/server/internal/handlers/deviceCode.js.map +0 -1
- package/dist/server/internal/handlers/exchange.d.ts +0 -275
- package/dist/server/internal/handlers/exchange.d.ts.map +0 -1
- package/dist/server/internal/handlers/exchange.js +0 -312
- package/dist/server/internal/handlers/exchange.js.map +0 -1
- package/dist/server/internal/handlers/feeLiquidity.d.ts +0 -28
- package/dist/server/internal/handlers/feeLiquidity.d.ts.map +0 -1
- package/dist/server/internal/handlers/feeLiquidity.js +0 -80
- package/dist/server/internal/handlers/feeLiquidity.js.map +0 -1
- package/dist/server/internal/handlers/oidcProvider.d.ts +0 -110
- package/dist/server/internal/handlers/oidcProvider.d.ts.map +0 -1
- package/dist/server/internal/handlers/oidcProvider.js +0 -147
- package/dist/server/internal/handlers/oidcProvider.js.map +0 -1
- package/dist/server/internal/handlers/relay.d.ts +0 -122
- package/dist/server/internal/handlers/relay.d.ts.map +0 -1
- package/dist/server/internal/handlers/relay.js +0 -1264
- package/dist/server/internal/handlers/relay.js.map +0 -1
- package/dist/server/internal/handlers/session.d.ts +0 -93
- package/dist/server/internal/handlers/session.d.ts.map +0 -1
- package/dist/server/internal/handlers/session.js +0 -138
- package/dist/server/internal/handlers/session.js.map +0 -1
- package/dist/server/internal/handlers/sponsorship.d.ts +0 -81
- package/dist/server/internal/handlers/sponsorship.d.ts.map +0 -1
- package/dist/server/internal/handlers/sponsorship.js +0 -102
- package/dist/server/internal/handlers/sponsorship.js.map +0 -1
- package/dist/server/internal/handlers/utils.d.ts +0 -34
- package/dist/server/internal/handlers/utils.d.ts.map +0 -1
- package/dist/server/internal/handlers/utils.js +0 -141
- package/dist/server/internal/handlers/utils.js.map +0 -1
- package/dist/server/internal/handlers/webAuthn.d.ts +0 -141
- package/dist/server/internal/handlers/webAuthn.d.ts.map +0 -1
- package/dist/server/internal/handlers/webAuthn.js +0 -297
- package/dist/server/internal/handlers/webAuthn.js.map +0 -1
- package/dist/server/internal/hono.d.ts +0 -20
- package/dist/server/internal/hono.d.ts.map +0 -1
- package/dist/server/internal/hono.js +0 -24
- package/dist/server/internal/hono.js.map +0 -1
- package/dist/server/internal/kv.d.ts +0 -22
- package/dist/server/internal/kv.d.ts.map +0 -1
- package/dist/server/internal/kv.js +0 -76
- package/dist/server/internal/kv.js.map +0 -1
- package/dist/server/internal/requestListener.d.ts +0 -124
- package/dist/server/internal/requestListener.d.ts.map +0 -1
- package/dist/server/internal/requestListener.js +0 -173
- package/dist/server/internal/requestListener.js.map +0 -1
- package/dist/server/internal/tokenlist.d.ts +0 -53
- package/dist/server/internal/tokenlist.d.ts.map +0 -1
- package/dist/server/internal/tokenlist.js +0 -38
- package/dist/server/internal/tokenlist.js.map +0 -1
- package/dist/server/internal/zod.d.ts +0 -30
- package/dist/server/internal/zod.d.ts.map +0 -1
- package/dist/server/internal/zod.js +0 -53
- package/dist/server/internal/zod.js.map +0 -1
- package/dist/trusted-hosts.json +0 -22
- package/src/cli/Provider.localnet.test.ts +0 -1153
- package/src/cli/Provider.test-d.ts +0 -30
- package/src/cli/Provider.test.ts +0 -57
- package/src/cli/Provider.ts +0 -54
- package/src/cli/adapter.test.ts +0 -184
- package/src/cli/adapter.ts +0 -144
- package/src/cli/index.ts +0 -4
- package/src/cli/storage.test.ts +0 -141
- package/src/cli/storage.ts +0 -159
- package/src/core/AccessKey.permissions.test.ts +0 -73
- package/src/core/AccessKey.test.ts +0 -1288
- package/src/core/AccessKey.ts +0 -938
- package/src/core/Account.test.ts +0 -237
- package/src/core/Account.ts +0 -141
- package/src/core/Adapter.ts +0 -496
- package/src/core/Client.test.ts +0 -492
- package/src/core/Client.ts +0 -265
- package/src/core/Dialog.browser.test.ts +0 -355
- package/src/core/Dialog.test-d.ts +0 -32
- package/src/core/Dialog.ts +0 -598
- package/src/core/ExecutionError.test.ts +0 -205
- package/src/core/ExecutionError.ts +0 -463
- package/src/core/Expiry.ts +0 -34
- package/src/core/IntersectionObserver.ts +0 -6
- package/src/core/Keystore.test.ts +0 -171
- package/src/core/Keystore.ts +0 -139
- package/src/core/Mach.test-d.ts +0 -31
- package/src/core/Mach.test.ts +0 -187
- package/src/core/Mach.ts +0 -94
- package/src/core/Messenger.ts +0 -226
- package/src/core/Provider.browser.test.ts +0 -891
- package/src/core/Provider.connect.browser.test.ts +0 -436
- package/src/core/Provider.localnet.test.ts +0 -3924
- package/src/core/Provider.test-d.ts +0 -115
- package/src/core/Provider.test.ts +0 -1100
- package/src/core/Provider.ts +0 -2473
- package/src/core/ProviderRequest.test-d.ts +0 -33
- package/src/core/ProviderRequest.test.ts +0 -107
- package/src/core/ProviderRequest.ts +0 -97
- package/src/core/Remote.test.ts +0 -382
- package/src/core/Remote.ts +0 -437
- package/src/core/Schema.test-d.ts +0 -340
- package/src/core/Schema.ts +0 -143
- package/src/core/Storage.ts +0 -235
- package/src/core/Store.test.ts +0 -691
- package/src/core/Store.ts +0 -404
- package/src/core/Tokenlist.ts +0 -89
- package/src/core/TrustedHosts.ts +0 -40
- package/src/core/WebAuthnCeremony.browser.test.ts +0 -239
- package/src/core/WebAuthnCeremony.test.ts +0 -210
- package/src/core/WebAuthnCeremony.ts +0 -213
- package/src/core/adapters/deviceCode/deviceCode.localnet.test.ts +0 -229
- package/src/core/adapters/deviceCode/deviceCode.test-d.ts +0 -19
- package/src/core/adapters/deviceCode/deviceCode.test.ts +0 -284
- package/src/core/adapters/deviceCode/deviceCode.ts +0 -166
- package/src/core/adapters/deviceCode/index.ts +0 -2
- package/src/core/adapters/deviceCode/tempoWallet.ts +0 -17
- package/src/core/adapters/dialog.test.ts +0 -639
- package/src/core/adapters/dialog.ts +0 -205
- package/src/core/adapters/internal/fromRequest.test.ts +0 -105
- package/src/core/adapters/internal/fromRequest.ts +0 -234
- package/src/core/adapters/local.test.ts +0 -340
- package/src/core/adapters/local.ts +0 -355
- package/src/core/adapters/mobileWebAuth/index.ts +0 -2
- package/src/core/adapters/mobileWebAuth/mobileWebAuth.localnet.test.ts +0 -664
- package/src/core/adapters/mobileWebAuth/mobileWebAuth.ts +0 -87
- package/src/core/adapters/mobileWebAuth/tempoWallet.ts +0 -17
- package/src/core/adapters/postMessage/index.ts +0 -4
- package/src/core/adapters/postMessage/mount.test.ts +0 -156
- package/src/core/adapters/postMessage/mount.ts +0 -330
- package/src/core/adapters/postMessage/postMessage.localnet.test.ts +0 -964
- package/src/core/adapters/postMessage/postMessage.ts +0 -381
- package/src/core/adapters/postMessage/tempoWallet.ts +0 -33
- package/src/core/adapters/privy.test-d.ts +0 -132
- package/src/core/adapters/privy.test.ts +0 -979
- package/src/core/adapters/privy.ts +0 -776
- package/src/core/adapters/secp256k1.test.ts +0 -65
- package/src/core/adapters/secp256k1.ts +0 -87
- package/src/core/adapters/turnkey.test.ts +0 -315
- package/src/core/adapters/turnkey.ts +0 -516
- package/src/core/adapters/webAuthn.localnet.test.ts +0 -332
- package/src/core/adapters/webAuthn.test.ts +0 -31
- package/src/core/adapters/webAuthn.ts +0 -282
- package/src/core/internal/AccessKeyTransaction.ts +0 -242
- package/src/core/internal/RemoteRequests.ts +0 -216
- package/src/core/internal/address.ts +0 -15
- package/src/core/internal/schema.ts +0 -13
- package/src/core/internal/withDedupe.test.ts +0 -133
- package/src/core/internal/withDedupe.ts +0 -22
- package/src/core/internal/zodIssues.ts +0 -55
- package/src/core/keystores/p256.ts +0 -41
- package/src/core/keystores/secp256k1.ts +0 -40
- package/src/core/keystores/webCryptoP256.ts +0 -120
- package/src/core/mppx.localnet.test.ts +0 -329
- package/src/core/zod/request.test.ts +0 -436
- package/src/core/zod/request.ts +0 -70
- package/src/core/zod/rpc.test-d.ts +0 -56
- package/src/core/zod/rpc.test.ts +0 -1015
- package/src/core/zod/rpc.ts +0 -1135
- package/src/core/zod/utils.test.ts +0 -69
- package/src/core/zod/utils.ts +0 -41
- package/src/internal/types.ts +0 -378
- package/src/react/Remote.test.ts +0 -153
- package/src/react/Remote.ts +0 -211
- package/src/react/privy.test-d.ts +0 -22
- package/src/react/privy.ts +0 -282
- package/src/react-native/asyncStorage.ts +0 -35
- package/src/react-native/expoSecureStore.test.ts +0 -87
- package/src/react-native/expoSecureStore.ts +0 -35
- package/src/react-native/expoWebBrowser.ts +0 -12
- package/src/react-native/secureMmkv.test.ts +0 -160
- package/src/react-native/secureMmkv.ts +0 -82
- package/src/server/CliAuth.test-d.ts +0 -122
- package/src/server/CliAuth.test.ts +0 -1797
- package/src/server/CliAuth.ts +0 -1307
- package/src/server/Handler.test-d.ts +0 -123
- package/src/server/Handler.test.ts +0 -691
- package/src/server/Handler.ts +0 -159
- package/src/server/Identity.test-d.ts +0 -23
- package/src/server/Identity.ts +0 -74
- package/src/server/Kv.test.ts +0 -305
- package/src/server/Kv.ts +0 -335
- package/src/server/index.ts +0 -7
- package/src/server/internal/handlers/auth.test.ts +0 -1562
- package/src/server/internal/handlers/auth.ts +0 -649
- package/src/server/internal/handlers/codeAuth.ts +0 -211
- package/src/server/internal/handlers/deviceCode.test.ts +0 -140
- package/src/server/internal/handlers/deviceCode.ts +0 -323
- package/src/server/internal/handlers/exchange.localnet.test.ts +0 -635
- package/src/server/internal/handlers/exchange.test-d.ts +0 -164
- package/src/server/internal/handlers/exchange.ts +0 -474
- package/src/server/internal/handlers/feeLiquidity.localnet.test.ts +0 -398
- package/src/server/internal/handlers/feeLiquidity.ts +0 -117
- package/src/server/internal/handlers/oidcProvider.test-d.ts +0 -34
- package/src/server/internal/handlers/oidcProvider.test.ts +0 -212
- package/src/server/internal/handlers/oidcProvider.ts +0 -247
- package/src/server/internal/handlers/relay.localnet.test.ts +0 -2094
- package/src/server/internal/handlers/relay.ts +0 -1620
- package/src/server/internal/handlers/session.test.ts +0 -217
- package/src/server/internal/handlers/session.ts +0 -174
- package/src/server/internal/handlers/sponsorship.ts +0 -183
- package/src/server/internal/handlers/utils.test.ts +0 -53
- package/src/server/internal/handlers/utils.ts +0 -169
- package/src/server/internal/handlers/webAuthn.test.ts +0 -411
- package/src/server/internal/handlers/webAuthn.ts +0 -483
- package/src/server/internal/hono.ts +0 -30
- package/src/server/internal/kv.test.ts +0 -129
- package/src/server/internal/kv.ts +0 -101
- package/src/server/internal/requestListener.ts +0 -273
- package/src/server/internal/tokenlist.ts +0 -91
- package/src/server/internal/zod.ts +0 -65
- package/src/trusted-hosts.json +0 -22
- package/src/tsconfig.json +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,76 @@
|
|
|
1
1
|
# accounts
|
|
2
2
|
|
|
3
|
+
## 1.0.0-alpha.1
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- Initial release.
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- e698723: Added `audience` to `AccessToken.create` of `accounts/internal`, which verifies the access tokens of a registered resource, such as an MCP server, whose `aud` names the resource's identifier. `Actions.oauth.introspect` returns the token's `aud` as `audience`.
|
|
12
|
+
- 2e01ee5: Added `redirect`, `redirectUri`, and `state` to `Actions.account.revokeAccessKey` of `accounts/internal`. With `redirect: true`, it returns the `url` of Tempo ID's approval page at `/access-keys/revoke`, where any owner of the account signs the revocation, a passkey included.
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
import { Actions } from 'accounts/internal'
|
|
16
|
+
|
|
17
|
+
const { url } = await Actions.account.revokeAccessKey(accounts.config, {
|
|
18
|
+
accessKey: session.key.keyAuthorization.keyId,
|
|
19
|
+
account: session.key.account,
|
|
20
|
+
chainId: 4217,
|
|
21
|
+
redirect: true,
|
|
22
|
+
})
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- 690f13b: Added `allowance_redeemed` and `unknown_allowance` to `Accounts.RequestError.Reason`, the refusals of Tempo ID's `POST /v1/access-keys/connect`.
|
|
28
|
+
|
|
29
|
+
## 1.0.0-alpha.0
|
|
30
|
+
|
|
31
|
+
### Major Changes
|
|
32
|
+
|
|
33
|
+
- dcdbf50: Initial release.
|
|
34
|
+
|
|
35
|
+
## 0.21.1
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- b2535d3: Reclaim expired in-memory KV entries on writes and propagate finite cache TTLs to backing storage. Capacity remains unlimited by default; opt in with `Kv.memory({ maxEntries })` to reject new keys at a chosen capacity without evicting live authentication state. Deployments must size an explicit cap and apply admission controls to avoid blocking legitimate writes.
|
|
40
|
+
|
|
41
|
+
Validate the current adapter account before local access-key transaction paths and discard keys belonging to accounts omitted by a new wallet selection. Privy revocation now waits for successful execution before deleting local key state, retaining keys on pending or failed revocations.
|
|
42
|
+
|
|
43
|
+
Upgrade Hono to 4.13.11 to fix double-decoding of static paths that could bypass middleware.
|
|
44
|
+
|
|
45
|
+
- 00b6ee3: Updated `viem` to 2.57.12 and `ox` to 0.14.59, which derive configurable account addresses from the hash of the initial config. The `viem` peer range now starts at 2.57.12, since an earlier Viem derives other addresses.
|
|
46
|
+
- 80bdb13: `Handler.relay` no longer signs as its own fee payer when a request names an app's fee payer URL and that relay returns an unsigned fill. It answers with an invalid-params error instead, so an app's URL can no longer make the relay's fee payer pay without its `validate`.
|
|
47
|
+
- b38af80: Treat a retried `eth_sendRawTransaction` or `eth_sendRawTransactionSync` that the node rejects with `already known` or `nonce too low` as successful when the node knows the transaction's hash. viem's transports retry a submission after a timeout, a network error or a 5xx response, so a transaction that landed on the first attempt could previously fail the send.
|
|
48
|
+
|
|
49
|
+
An access-key send that times out or loses its response no longer falls back to signing the same calls with the root account, which could send them twice.
|
|
50
|
+
|
|
51
|
+
- 581bf10: Fixed `Handler` listeners to respond with a 400 to requests with an unparseable `Host` header or request target.
|
|
52
|
+
- 9c6dee1: Fixed Node request listeners to safely cancel oversized uploads and close unfinished connections after sending the response.
|
|
53
|
+
- 51f3b65: Added `handoff` to the postMessage `tempoWallet()` adapter and `Handoff.read()`. Tempo Wallet shows a QR code so someone without a passkey on the computer can approve the request with their phone. By default the requesting tab receives the result. With `handoff.url`, the phone's browser opens that page on the app's origin instead, and it receives the result and an access key the phone generated, which `Handoff.read()` returns. `handoff: false` hides the QR code.
|
|
54
|
+
- 5fa1ac9: Close the postMessage popup session when its popup closes. A request sent within 250 ms after the previous popup closed (for example `eth_sendTransaction` right after `wallet_connect`) no longer reaches the closed window and fails; it opens a new popup instead.
|
|
55
|
+
- afddb6d: `Handler.relay` answers `eth_fillTransaction` in fewer sequential RPC rounds. It simulates the requested calls alongside the fill instead of after it, and reuses that simulation unless a swap was prepended. It skips `tempo_simulateV1` for 10 minutes after the node reports it unsupported. The autoSwap balance check reuses the fee-token balance already read during fee-token resolution.
|
|
56
|
+
- 2c059cb: Removed the `applePay` deposit intent from `wallet_deposit`, `wallet_connect` and `wallet_authorizeAccessKey`. Tempo Wallet no longer offers fiat or card onramps; use `mach` for MACH checkout.
|
|
57
|
+
- 85642db: Invalidate cached Privy accounts and access keys when the authenticated user changes. Preserve local access keys until shared revocation confirms successful execution.
|
|
58
|
+
- 7b24e3e: Added `WebAuthnCeremony.deferred`, a `WebAuthnCeremony.server` variant that answers registration as soon as the passkey is created and verifies it with the server in the background, retrying requests that fail in transit. The `webAuthn` adapter makes logins and disconnects wait for that verification for up to 10 s, then cancels it, so it can't replace the session that follows. A registration whose server-parsed public key differs from the client's is refused, and one acknowledged without its session ends the session in place. If the server rejects the registration while the page is open, the adapter removes the account and its access keys and keeps the public key in storage; a later login with the passkey restores the account. `WebAuthnCeremony.server` now also ends its session on `wallet_disconnect` when passed as `ceremony`. `WebAuthnCeremony.server`'s `logout` now fails on an error response other than 404. `Handler.webAuthn`'s `/register` revokes the session presented with it when it issues a new one, and answers a retry after a stored registration with `Credential already exists` even when the challenge was already used.
|
|
59
|
+
- 904e9b0: `WebAuthnCeremony.deferred` now also answers a login with a known passkey as soon as its signature checks out against the stored public key, and verifies it with the server (`POST /login`) in the background. `verifyAuthentication` takes an optional `credential` (the signed challenge, public key and RP ID) and `signal`, and may return `verified`, which resolves `{ session }`. The `webAuthn` adapter passes its stored credential and makes later logins, sign-ups and disconnects wait for the verification. A login the server refuses (it doesn't know the credential, the signature fails, or a hook denies it with 401 or 403) ends the session in place and drops the account. A login whose outcome stays unknown (it failed in transit, a retry found its challenge consumed, or the server failed for another reason) ends the session in place (retrying the logout until it succeeds or a later login, sign-up or disconnect cancels it) and keeps the account. `WebAuthnCeremony.server`'s `verifyAuthentication` now returns only its declared fields. Signing a digest with the latest registration's own credential (e.g. an access key authorized right after sign-up) no longer waits for that registration to land, since it needs no server login. `verifyAuthentication` also takes `ready`, a promise a server-backed ceremony waits for before sending `/login`: the adapter passes its wait for earlier registrations, so a deferred login answers at once and only its background `/login` waits. `verifyRegistration` takes `ready` too: a sign-up answers at once, and its background `/register` waits for logins and registrations still verifying, so it still sets the session last.
|
|
60
|
+
- 84d2087: Added `prefetch` to `WebAuthnCeremony.server` and `WebAuthnCeremony.deferred`. It fetches a login and a registration challenge ahead of the ceremonies that use them, so their options are built locally instead of waiting for the server to store a challenge. Each challenge taken is replaced in the background. The `webAuthn` adapter's login with a known passkey uses a prefetched challenge (`takeChallenge`) instead of registering a random one. `Handler.webAuthn`'s `/register/options` issues a challenge without a `name`, and `/register` then takes the name sent with the credential. It binds a random `userId` when none is sent, so `Provider` no longer generates one for `wallet_connect` sign-ups; `WebAuthnCeremony.local`, and `WebAuthnCeremony.server` when it requests its own options, generate a random one instead. The `webAuthn` adapter still passes a random one to ceremonies that don't prefetch.
|
|
61
|
+
|
|
62
|
+
`Handler.webAuthn`'s `/register/options` and `/login/options` now return the challenge `ttl` (seconds) alongside `options`, and `/register` rejects a login challenge.
|
|
63
|
+
|
|
64
|
+
- 6a163eb: `Handler.webAuthn`: `/register` reads the challenge and checks for a duplicate credential in parallel, and deletes the challenge after responding when the runtime exposes `waitUntil` (pass the execution context to `handler.fetch`). Stores with `take` (e.g. `Kv.memory`, `Kv.durableObject`) now consume register and login challenges atomically, so each is single-use.
|
|
65
|
+
|
|
3
66
|
## 0.21.0
|
|
4
67
|
|
|
5
68
|
### Minor Changes
|
|
6
69
|
|
|
7
70
|
- a60b2c6: Added `provider.ready()`, which resolves once the provider has loaded its stored state and rejects with `Store.HydrationError` when the storage read fails or takes longer than the new `hydrationTimeout` option (default 10 seconds). `request` now waits for the load instead of continuing with an empty store after 100ms, and rejects with an `RpcResponse.InternalError` caused by the `Store.HydrationError` when the load fails. `getAccount` throws `Store.HydrationError` until the load finishes instead of reporting no accounts.
|
|
8
|
-
|
|
71
|
+
|
|
9
72
|
The default storage now uses IndexedDB only where `indexedDB` exists, so React Native gets memory storage, and keeps state in memory when IndexedDB fails.
|
|
73
|
+
|
|
10
74
|
- 4008d21: Add an optional `chainId` to `wallet_revokeAccessKey` so callers can revoke an access key on a specific chain. The provider rejects a chain it is not configured for. Local, Privy, dialog, device-code (including CLI), postMessage and mobile web auth revocations target that chain and remove the local key for it only after the revocation succeeds. Other JSON-RPC adapters reject a `chainId` other than the active chain. Omitting `chainId` keeps revoking on the active chain.
|
|
11
75
|
|
|
12
76
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</picture>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
-
<p align="center"><b>
|
|
9
|
+
<p align="center"><b>Accounts SDK for Apps building on Tempo</b></p>
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<a href="https://accounts.tempo.xyz">Website</a> · <a href="https://accounts.tempo.xyz/docs">Docs</a> · <a href="#install">Install</a> · <a href="#examples">Examples</a> · <a href="#development">Development</a>
|
|
@@ -14,26 +14,50 @@
|
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
+
> [!WARNING]
|
|
18
|
+
> `accounts@1` is in alpha, under the `alpha` dist-tag. Its API is not stable yet.
|
|
19
|
+
|
|
17
20
|
## Quick Prompt
|
|
18
21
|
|
|
19
22
|
Prompt your agent:
|
|
20
23
|
|
|
21
24
|
```
|
|
22
|
-
Read accounts.tempo.xyz
|
|
25
|
+
Read accounts.tempo.xyz and integrate Tempo into my application
|
|
23
26
|
```
|
|
24
27
|
|
|
25
28
|
## Install
|
|
26
29
|
|
|
27
30
|
```bash
|
|
28
|
-
npm i accounts
|
|
31
|
+
npm i accounts@alpha viem
|
|
29
32
|
```
|
|
30
33
|
|
|
31
34
|
```bash
|
|
32
|
-
pnpm i accounts
|
|
35
|
+
pnpm i accounts@alpha viem
|
|
33
36
|
```
|
|
34
37
|
|
|
35
38
|
```bash
|
|
36
|
-
bun i accounts
|
|
39
|
+
bun i accounts@alpha viem
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Create an instance with `Accounts.create`, and add a plugin from `accounts/plugins` for each sign-in method. Without a sign-in plugin, users sign in through Tempo ID in a dialog on the page:
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
import { Accounts } from 'accounts'
|
|
48
|
+
import { viem } from 'accounts/plugins'
|
|
49
|
+
|
|
50
|
+
const accounts = Accounts.create({
|
|
51
|
+
// Each sign-in requests an access key that may spend up to 10 OUSD for a day.
|
|
52
|
+
accessKey: {
|
|
53
|
+
expiry: '1d',
|
|
54
|
+
limits: [{ limit: '10', token: 'ousd' }],
|
|
55
|
+
},
|
|
56
|
+
plugins: [viem()],
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
await accounts.dialog.signIn()
|
|
60
|
+
await accounts.token.transferSync({ amount, to, token })
|
|
37
61
|
```
|
|
38
62
|
|
|
39
63
|
## Documentation
|
|
@@ -48,67 +72,23 @@ Join the Telegram group to chat with the team and other devs: [@mpp_devs](https:
|
|
|
48
72
|
|
|
49
73
|
## Examples
|
|
50
74
|
|
|
51
|
-
| Example
|
|
52
|
-
|
|
|
53
|
-
| [
|
|
54
|
-
| [
|
|
55
|
-
| [
|
|
56
|
-
| [
|
|
57
|
-
| [
|
|
58
|
-
| [access-key-and-webauthn](./examples/access-key-and-webauthn) | Authorize access keys using domain-bound Passkeys. |
|
|
59
|
-
| [fee-payer](./examples/fee-payer) | Sponsor transactions via Tempo Wallet. |
|
|
60
|
-
| [fee-payer-and-webauthn](./examples/fee-payer-and-webauthn) | Sponsor transactions using a Cloudflare Worker with domain-bound Passkeys. |
|
|
61
|
-
| [mpp](./examples/mpp) | Auto-pay HTTP `402` responses served by a Hono server using `mppx/hono`. |
|
|
75
|
+
| Example | Description |
|
|
76
|
+
| ----------------------------- | ------------------------------------------------------------------------ |
|
|
77
|
+
| [web](./examples/web) | Sign in through a dialog on the page, and send OUSD with the access key. |
|
|
78
|
+
| [wagmi](./examples/wagmi) | Sign in through wagmi's `connect`, with the `tempoId` connector. |
|
|
79
|
+
| [backend](./examples/backend) | Sign in through a redirect, with the session on a Cloudflare Worker. |
|
|
80
|
+
| [cli](./examples/cli) | Sign in through the device grant, with a code approved in a browser. |
|
|
81
|
+
| [mobile](./examples/mobile) | Sign in through the system browser in an Expo app. |
|
|
62
82
|
|
|
63
83
|
## Development
|
|
64
84
|
|
|
65
|
-
Requires [Docker](https://docs.docker.com/get-docker/) and [OrbStack](https://orbstack.dev/) (recommended on macOS for automatic HTTPS `.accounts.local` domains).
|
|
66
|
-
|
|
67
85
|
```sh
|
|
68
|
-
pnpm dev # start all dev services via docker compose
|
|
69
86
|
pnpm build # build library
|
|
70
87
|
pnpm check # lint + format
|
|
71
88
|
pnpm check:types # type checks
|
|
72
89
|
pnpm test # run tests
|
|
73
90
|
```
|
|
74
91
|
|
|
75
|
-
### Services
|
|
76
|
-
|
|
77
|
-
| Service | OrbStack URL |
|
|
78
|
-
| ---------------- | ----------------------------------- |
|
|
79
|
-
| Playground | `https://playground.accounts.local` |
|
|
80
|
-
| Dialog Reference | `https://dialog-ref.accounts.local` |
|
|
81
|
-
| Docs | `https://docs.accounts.local` |
|
|
82
|
-
| Wagmi Playground | `https://wagmi.accounts.local` |
|
|
83
|
-
|
|
84
|
-
## Deployment
|
|
85
|
-
|
|
86
|
-
The docs site is configured for Vercel as a monorepo project.
|
|
87
|
-
|
|
88
|
-
| Setting | Value |
|
|
89
|
-
| -------------- | ------------ |
|
|
90
|
-
| Root Directory | `site` |
|
|
91
|
-
| Build Command | `pnpm build` |
|
|
92
|
-
| Dev Command | `pnpm dev` |
|
|
93
|
-
|
|
94
|
-
Set `VITE_BASE_URL` to the production docs origin when using a custom domain.
|
|
95
|
-
|
|
96
|
-
### Playgrounds
|
|
97
|
-
|
|
98
|
-
| Playground | Command | Description |
|
|
99
|
-
| ---------------------------- | ---------------- | -------------------------------------------- |
|
|
100
|
-
| [web](./playgrounds/web) | `pnpm dev` | Web playground for dialog + adapter testing. |
|
|
101
|
-
| [wagmi](./playgrounds/wagmi) | `pnpm dev:wagmi` | Wagmi-based playground with connectors. |
|
|
102
|
-
| [cli](./playgrounds/cli) | `pnpm dev:cli` | CLI playground for device-code auth flow. |
|
|
103
|
-
|
|
104
|
-
### Reference Implementations
|
|
105
|
-
|
|
106
|
-
The `ref-impls/` directory contains reference implementations for building with Tempo Accounts SDK:
|
|
107
|
-
|
|
108
|
-
| Directory | Description |
|
|
109
|
-
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
110
|
-
| `ref-impls/dialog/` | Minimal, unstyled embed dialog app demonstrating how to build a custom embed using the `Remote` API. Select `dialogRefImpl` in the web playground's adapter dropdown to test against it. |
|
|
111
|
-
|
|
112
92
|
## License
|
|
113
93
|
|
|
114
94
|
<sup>
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a Tempo ID instance: its configuration, the session of its user, and the namespaces of its
|
|
3
|
+
* plugins.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { Accounts, Plugin } from 'accounts'
|
|
8
|
+
* const accounts = Accounts.create({
|
|
9
|
+
* accessKey: {
|
|
10
|
+
* expiry: '1d',
|
|
11
|
+
* limits: [{ limit: '10', token: 'ousd' }],
|
|
12
|
+
* },
|
|
13
|
+
* plugins: [email()],
|
|
14
|
+
* })
|
|
15
|
+
*
|
|
16
|
+
* const session = await accounts.session.get()
|
|
17
|
+
* ```
|
|
18
|
+
* @module
|
|
19
|
+
*/
|
|
20
|
+
import type * as ClientAssertion from './internal/ClientAssertion.js';
|
|
21
|
+
import type { Dpop } from './internal/Dpop.js';
|
|
22
|
+
import * as Core from './internal/Core.js';
|
|
23
|
+
import * as DefaultDialog from './internal/DefaultDialog.js';
|
|
24
|
+
import * as InternalSession from './internal/Session.js';
|
|
25
|
+
import type { Permissions } from './Permissions.js';
|
|
26
|
+
import * as Plugin from './Plugin.js';
|
|
27
|
+
import { funding } from './plugins/funding.js';
|
|
28
|
+
import type * as Session from './Session.js';
|
|
29
|
+
import type { Store } from './Store.js';
|
|
30
|
+
import type * as TempoAccount from './internal/TempoAccount.js';
|
|
31
|
+
/** Tempo ID lists no chain with the access key's chain ID, so the client's account signs no message on it. */
|
|
32
|
+
export declare class ChainUnavailableError extends Error {
|
|
33
|
+
readonly name = "Accounts.ChainUnavailableError";
|
|
34
|
+
constructor(options: ChainUnavailableError.Options);
|
|
35
|
+
}
|
|
36
|
+
export declare namespace ChainUnavailableError {
|
|
37
|
+
type Options = {
|
|
38
|
+
/** The access key's chain ID. */
|
|
39
|
+
chainId: number;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/** An action received a `challenge` without `accessKey`. A challenge rides in an access key. */
|
|
43
|
+
export declare class ChallengeWithoutKeyError extends Error {
|
|
44
|
+
readonly name = "Accounts.ChallengeWithoutKeyError";
|
|
45
|
+
constructor();
|
|
46
|
+
}
|
|
47
|
+
/** `Accounts.create` received no `clientId` outside a browser, where no page's origin can serve as one. */
|
|
48
|
+
export declare class ClientIdRequiredError extends Error {
|
|
49
|
+
readonly name = "Accounts.ClientIdRequiredError";
|
|
50
|
+
constructor();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A `signOut` with `everywhere` from an app that is not first-party, which Tempo ID refuses to end
|
|
54
|
+
* the user's Tempo ID session for.
|
|
55
|
+
*/
|
|
56
|
+
export declare class EverywhereNotAllowedError extends Error {
|
|
57
|
+
readonly name = "Accounts.EverywhereNotAllowedError";
|
|
58
|
+
constructor();
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The client's account signs messages and typed data only, since its sign-in requested no access key, so
|
|
62
|
+
* it sends no transaction.
|
|
63
|
+
*/
|
|
64
|
+
export declare class KeyRequiredError extends Error {
|
|
65
|
+
readonly name = "Accounts.KeyRequiredError";
|
|
66
|
+
constructor();
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A backend's `complete` received a session ID without a redirect in progress, such as a callback
|
|
70
|
+
* that arrived twice, or after 10 minutes.
|
|
71
|
+
*/
|
|
72
|
+
export declare class PendingNotFoundError extends Error {
|
|
73
|
+
readonly name = "Accounts.PendingNotFoundError";
|
|
74
|
+
constructor();
|
|
75
|
+
}
|
|
76
|
+
/** A request that Tempo ID refused. */
|
|
77
|
+
export declare class RequestError extends Error {
|
|
78
|
+
readonly name = "Accounts.RequestError";
|
|
79
|
+
/** The OAuth error code, such as `invalid_authorization_details`. */
|
|
80
|
+
readonly code: string;
|
|
81
|
+
/** The request field at fault, as a dotted path. */
|
|
82
|
+
readonly field: string | undefined;
|
|
83
|
+
/** The values that the refusal compared, such as `maximum`. Base units are decimal strings. */
|
|
84
|
+
readonly meta: Readonly<Record<string, number | string>> | undefined;
|
|
85
|
+
/** A stable name for the refusal, to branch on. */
|
|
86
|
+
readonly reason: RequestError.Reason | undefined;
|
|
87
|
+
/** Whether a sign-in verified before the refusal, so the user is signed in. */
|
|
88
|
+
readonly signedIn: boolean;
|
|
89
|
+
/** The HTTP status, or 0 for a request without a response. */
|
|
90
|
+
readonly status: number;
|
|
91
|
+
/** The page that explains the error. */
|
|
92
|
+
readonly uri: string | undefined;
|
|
93
|
+
constructor(options: RequestError.Options);
|
|
94
|
+
}
|
|
95
|
+
export declare namespace RequestError {
|
|
96
|
+
type Options = {
|
|
97
|
+
/** The error that caused this one. */
|
|
98
|
+
cause?: unknown;
|
|
99
|
+
/** The OAuth `error`. */
|
|
100
|
+
code: string;
|
|
101
|
+
/** The request field at fault. */
|
|
102
|
+
field?: string | undefined;
|
|
103
|
+
/** The `error_description`. */
|
|
104
|
+
message: string;
|
|
105
|
+
/** The values that the refusal compared. */
|
|
106
|
+
meta?: Readonly<Record<string, number | string>> | undefined;
|
|
107
|
+
/** The refusal's stable name. Absent from the issuer's own errors. */
|
|
108
|
+
reason?: Reason | undefined;
|
|
109
|
+
/** Whether a sign-in verified before the refusal. Defaults to `false`. */
|
|
110
|
+
signedIn?: boolean | undefined;
|
|
111
|
+
/** The HTTP status, or 0 without a response. */
|
|
112
|
+
status: number;
|
|
113
|
+
/** The `error_uri`. */
|
|
114
|
+
uri?: string | undefined;
|
|
115
|
+
};
|
|
116
|
+
/** Each refusal's stable name, as `docs/errors.md` explains. */
|
|
117
|
+
type Reason = 'access_key_taken' | 'allowance_redeemed' | 'already_decided' | 'app_exists' | 'authorization_expired' | 'backend_sign_in_not_permitted' | 'body_too_large' | 'challenge_not_permitted' | 'config_conflict' | 'configurable_accounts_disabled' | 'consent_required' | 'cross_site_request' | 'duplicate_limit' | 'duplicate_scope' | 'embed_not_permitted' | 'employee_required' | 'empty_limits' | 'empty_scopes' | 'expiry_exceeds_maximum' | 'expiry_passed' | 'foreign_account' | 'foreign_origin' | 'funding_unavailable' | 'insufficient_balance' | 'invalid_app' | 'invalid_chain' | 'invalid_client' | 'invalid_client_attestation' | 'invalid_code' | 'invalid_dpop_proof' | 'invalid_expiry' | 'invalid_field' | 'invalid_id_token_hint' | 'invalid_origin' | 'invalid_period' | 'invalid_public_key' | 'invalid_realm' | 'invalid_recipients' | 'invalid_resource' | 'invalid_target' | 'invalid_token' | 'limit_exceeds_maximum' | 'localhost_not_permitted' | 'logout_not_permitted' | 'malformed_body' | 'missing_code_challenge' | 'missing_key' | 'missing_permissions' | 'missing_recipients' | 'not_configurable' | 'origin_required' | 'owner_exists' | 'owner_unavailable' | 'passkey_limit' | 'passkey_link_expired' | 'passkey_not_permitted' | 'passkey_register_not_permitted' | 'payment_declined' | 'post_logout_redirect_not_permitted' | 'privy_app_taken' | 'public_app' | 'pushed_authorization_required' | 'rate_limited' | 'realm_exists' | 'realm_in_use' | 'reauthentication_required' | 'registrar_required' | 'rejected' | 'relying_party_taken' | 'resource_exists' | 'scope_without_limit' | 'session_changed' | 'session_required' | 'sign_not_permitted' | 'sign_out_link_expired' | 'sign_up_not_permitted' | 'signing_key_in_use' | 'too_many_signing_keys' | 'unexpected' | 'unknown_allowance' | 'unknown_app' | 'unknown_code' | 'unknown_endpoint' | 'unknown_key' | 'unknown_order' | 'unknown_realm' | 'unknown_resource' | 'unknown_screening' | 'unknown_session' | 'unknown_signing_key' | 'unknown_user' | 'unsupported_call' | 'unsupported_token' | 'upgrade_required' | 'upstream_unavailable' | 'webauthn_rejected' | 'webauthn_required';
|
|
118
|
+
}
|
|
119
|
+
/** A revocation of an access key that the chain holds revoked already. */
|
|
120
|
+
export declare class RevokedError extends Error {
|
|
121
|
+
readonly name = "Accounts.RevokedError";
|
|
122
|
+
constructor(options: RevokedError.Options);
|
|
123
|
+
}
|
|
124
|
+
export declare namespace RevokedError {
|
|
125
|
+
type Options = {
|
|
126
|
+
/** The access key's address. */
|
|
127
|
+
accessKey: `0x${string}`;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
/** A Viem client's account read while the instance holds no session. */
|
|
131
|
+
export declare class SignedOutError extends Error {
|
|
132
|
+
readonly name = "Accounts.SignedOutError";
|
|
133
|
+
constructor();
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* A sign-in that another sign-in or a sign-out overtook. The instance keeps the newer session, and
|
|
137
|
+
* the overtaken result is never returned.
|
|
138
|
+
*/
|
|
139
|
+
export declare class SupersededError extends Error {
|
|
140
|
+
readonly name = "Accounts.SupersededError";
|
|
141
|
+
constructor();
|
|
142
|
+
}
|
|
143
|
+
/** The configuration of an instance, which every action of `Actions` takes. */
|
|
144
|
+
export type Config = {
|
|
145
|
+
/** The chain of the app's access keys, unless a sign-in's `accessKey` names another. */
|
|
146
|
+
chainId: number;
|
|
147
|
+
/**
|
|
148
|
+
* Signs a client assertion for each request that authenticates the app, for an app with
|
|
149
|
+
* `private_key_jwt`. Only a backend holds one. Excludes `clientSecret`.
|
|
150
|
+
*/
|
|
151
|
+
clientAssertion?: ClientAssertion.Signer | undefined;
|
|
152
|
+
/**
|
|
153
|
+
* The app's client ID: from its registration as an OAuth app, the URL of its metadata document,
|
|
154
|
+
* its origin, such as `https://app.example` or a localhost origin in local development, or, for a
|
|
155
|
+
* CLI without a registration, `cli:` and its name, such as `cli:acme-deploy`. In a browser, it
|
|
156
|
+
* defaults to the page's origin.
|
|
157
|
+
*/
|
|
158
|
+
clientId: string;
|
|
159
|
+
/** The app's client secret. Only a backend holds one. */
|
|
160
|
+
clientSecret?: string | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* The key that binds the app's tokens (RFC 9449). Each token request sends a proof from it, and
|
|
163
|
+
* Tempo ID issues `DPoP` tokens. Absent, the tokens are Bearer tokens, unless the app requires DPoP.
|
|
164
|
+
*/
|
|
165
|
+
dpop?: Dpop | undefined;
|
|
166
|
+
/** Calls Tempo ID. Defaults to the global `fetch`. */
|
|
167
|
+
fetch?: typeof globalThis.fetch | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* Runs the ceremony of a passkey that owns the account, in place of `navigator.credentials.get`,
|
|
170
|
+
* also for a session that the instance restores. The `passkey` plugin sets its own `getFn`.
|
|
171
|
+
*/
|
|
172
|
+
getFn?: TempoAccount.deserialize.Options['getFn'];
|
|
173
|
+
/**
|
|
174
|
+
* Whether a redirect or dialog pushes each authorization request to `/oauth2/par` (RFC 9126). The
|
|
175
|
+
* plugin of the flow sets it. Defaults to `true` for an instance with `clientSecret` or
|
|
176
|
+
* `clientAssertion`, and to `false` otherwise.
|
|
177
|
+
*/
|
|
178
|
+
par?: boolean | undefined;
|
|
179
|
+
/** Where Tempo ID redirects back to. Defaults to the page's origin in a browser. */
|
|
180
|
+
redirectUri?: string | undefined;
|
|
181
|
+
/** The scopes of the app's tokens, always with `openid` and `email`. */
|
|
182
|
+
scope: string;
|
|
183
|
+
/**
|
|
184
|
+
* Where the instance keeps its session and each redirect's state. Defaults to IndexedDB in a
|
|
185
|
+
* browser. Outside a browser, the instance holds a session only with a store, such as on a device
|
|
186
|
+
* or in a CLI, since a backend's instance serves many users.
|
|
187
|
+
*/
|
|
188
|
+
store?: Store | undefined;
|
|
189
|
+
/** Where Tempo ID runs, such as `https://id.tempo.xyz`. */
|
|
190
|
+
url: string;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* A Tempo ID instance: its configuration, its session, and the namespace of each plugin. An instance
|
|
194
|
+
* without a sign-in plugin holds the `dialog` plugin, and an instance without the `funding` plugin
|
|
195
|
+
* holds it with its default options.
|
|
196
|
+
*/
|
|
197
|
+
export type Accounts<plugins extends readonly Plugin.Plugin[] = readonly Plugin.Plugin[]> = Plugin.Namespaces<WithFunding<WithSignIn<plugins>>> & Plugin.Members<plugins> & {
|
|
198
|
+
/** The user's Tempo Account that Tempo ID selects for the app. */
|
|
199
|
+
account: {
|
|
200
|
+
/**
|
|
201
|
+
* Returns the account on the instance's chain, and creates one for a user who has none in the
|
|
202
|
+
* app's realms.
|
|
203
|
+
*/
|
|
204
|
+
get: (parameters?: Core.getAccount.Parameters) => Promise<TempoAccount.TempoAccount | undefined>;
|
|
205
|
+
/**
|
|
206
|
+
* Upgrades a wallet.tempo passkey's account to a configurable account, when a sign-in returns
|
|
207
|
+
* `upgradeAvailable: true`. The session's access key keeps working, and the session's account becomes
|
|
208
|
+
* the upgraded account.
|
|
209
|
+
*/
|
|
210
|
+
upgrade: (parameters?: Core.upgradeAccount.Parameters) => Promise<TempoAccount.TempoAccount>;
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* Requests the app's tokens, and an access key, for the user's Tempo ID session in the
|
|
214
|
+
* browser, with no sign-in. Sets the session, and returns it, or empties it and returns
|
|
215
|
+
* `undefined` when the browser holds no Tempo ID session.
|
|
216
|
+
*/
|
|
217
|
+
authorize: (parameters?: Core.authorize.Parameters) => Promise<Core.authorize.ReturnType>;
|
|
218
|
+
/** The instance's configuration, which every action of `Actions` takes. */
|
|
219
|
+
config: Config;
|
|
220
|
+
/** The session of the instance's user. */
|
|
221
|
+
session: {
|
|
222
|
+
/**
|
|
223
|
+
* The XState actor of the session, or `undefined` for an instance without a session, such as
|
|
224
|
+
* a backend's. Its snapshot's `value` is the status, `pending`, `reauthorizing`, `signedIn`,
|
|
225
|
+
* or `signedOut`, and its `context.session` is the session. Read it, and send it no event: the
|
|
226
|
+
* instance's actions change the session.
|
|
227
|
+
*/
|
|
228
|
+
actor: InternalSession.machines.session.Actor | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* Returns the session. The first call reads the saved session, and each call first runs the
|
|
231
|
+
* plugins' `restore` hooks, such as a redirect's callback. Returns `undefined`, and empties
|
|
232
|
+
* the session, when the saved access key expired. Makes no request unless a hook does. With
|
|
233
|
+
* `reauthorize`, a call that finds no session, or an expired one, authorizes the browser's Tempo
|
|
234
|
+
* ID session, as `authorize` does, unless a sign-out without `everywhere` followed the last
|
|
235
|
+
* sign-in.
|
|
236
|
+
*/
|
|
237
|
+
get: (parameters?: Core.getSession.Parameters) => Promise<Session.Session | undefined>;
|
|
238
|
+
/**
|
|
239
|
+
* Refreshes the session's tokens with its refresh token, saves them, and returns the session.
|
|
240
|
+
* Returns `undefined` without a session or a refresh token.
|
|
241
|
+
*/
|
|
242
|
+
refresh: () => Promise<Session.Session | undefined>;
|
|
243
|
+
/**
|
|
244
|
+
* The status of the session, with the session to show: `get` returns it, and `subscribe`
|
|
245
|
+
* calls its listener with each new status and the one before it. `signedOut` for an instance
|
|
246
|
+
* without a session, such as a backend's.
|
|
247
|
+
*/
|
|
248
|
+
status: InternalSession.Status;
|
|
249
|
+
/** Calls `listener` with each new session and the one before it. Returns the unsubscribe. */
|
|
250
|
+
subscribe: (listener: (session: Session.Session | undefined, previous: Session.Session | undefined) => void) => () => void;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Empties the session at once, also when the request fails, deletes the saved session, and
|
|
254
|
+
* revokes its refresh token. With `everywhere`, a first-party app also ends the user's Tempo ID
|
|
255
|
+
* session, which signs the user out of every app that relies on it. Without it, `session.get`
|
|
256
|
+
* with `reauthorize` signs the user in again only after the next sign-in. Throws
|
|
257
|
+
* {@link EverywhereNotAllowedError} for `everywhere` from any other app, and signs nothing out.
|
|
258
|
+
*/
|
|
259
|
+
signOut: (parameters?: {
|
|
260
|
+
/** Whether the user's Tempo ID session ends too, for a first-party app. Defaults to `false`. */
|
|
261
|
+
everywhere?: boolean | undefined;
|
|
262
|
+
}) => Promise<void>;
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* Returns the configuration that every action of `Actions` takes, with its defaults, and no session
|
|
266
|
+
* or plugin. `Accounts.create` builds its own with it. Throws {@link ClientIdRequiredError} outside a
|
|
267
|
+
* browser without `clientId`.
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* ```ts
|
|
271
|
+
* const config = Accounts.from({ clientId: 'client_…', clientSecret })
|
|
272
|
+
* const tokens = await Actions.refresh(config, { refreshToken })
|
|
273
|
+
* ```
|
|
274
|
+
*/
|
|
275
|
+
export declare function from(options?: from.Options): Config;
|
|
276
|
+
export declare namespace from {
|
|
277
|
+
type Options = Omit<Partial<Config>, 'chainId' | 'scope' | 'url'> & {
|
|
278
|
+
/** The chain of the app's access keys. Defaults to Tempo mainnet, or Tempo testnet with `dev`. */
|
|
279
|
+
chainId?: number | undefined;
|
|
280
|
+
/** Whether to use Tempo testnet. Defaults to `false`. */
|
|
281
|
+
dev?: boolean | undefined;
|
|
282
|
+
/** Scopes beyond `openid` and `email`. Defaults to `offline_access`, for a refresh token. */
|
|
283
|
+
scope?: string | undefined;
|
|
284
|
+
/** Defaults to `https://id.tempo.xyz`. */
|
|
285
|
+
url?: string | undefined;
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Creates an instance. In a browser, the instance holds the session of its user and saves it to
|
|
290
|
+
* `store`, which defaults to IndexedDB. Elsewhere, it holds a session only with a `store`, such as
|
|
291
|
+
* `Store.file` in a CLI.
|
|
292
|
+
* Throws {@link ClientIdRequiredError} outside a browser without `clientId`.
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* ```ts
|
|
296
|
+
* const accounts = Accounts.create({ plugins: [dialog()] })
|
|
297
|
+
* ```
|
|
298
|
+
*/
|
|
299
|
+
export declare function create<const plugins extends readonly Plugin.Option[] = []>(options?: create.Options<plugins>): Accounts<Plugin.Flatten<plugins>>;
|
|
300
|
+
export declare namespace create {
|
|
301
|
+
type Options<plugins extends readonly Plugin.Option[] = readonly Plugin.Option[]> = Omit<from.Options, 'par'> & {
|
|
302
|
+
/**
|
|
303
|
+
* The access key of each sign-in that names none: what it may do, or a function that the
|
|
304
|
+
* instance calls at each sign-in to return it. A duration expiry, such as `'7d'`, counts from
|
|
305
|
+
* the sign-in. Without an expiry, Tempo ID fills it with the app's refresh token lifetime.
|
|
306
|
+
* Absent, a sign-in without `accessKey` requests no access key.
|
|
307
|
+
*/
|
|
308
|
+
accessKey?: Permissions | (() => Permissions | undefined) | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* The plugins, each of which adds a namespace with its `id`. An entry can be a list, such as a
|
|
311
|
+
* preset that combines plugins, or a falsy value, which adds nothing. Defaults to none.
|
|
312
|
+
*/
|
|
313
|
+
plugins?: plugins | undefined;
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
/** `plugins`, with the `dialog` plugin when none of them signs the user in. */
|
|
317
|
+
export type WithSignIn<plugins extends readonly Plugin.Plugin[]> = string extends plugins[number]['id'] ? plugins : [Extract<plugins[number]['id'], DefaultDialog.SignInId>] extends [never] ? readonly [...plugins, DefaultDialog.Dialog] : plugins;
|
|
318
|
+
/** `plugins`, with the `funding` plugin and its default options when none of them is `funding`. */
|
|
319
|
+
export type WithFunding<plugins extends readonly Plugin.Plugin[]> = string extends plugins[number]['id'] ? plugins : 'funding' extends plugins[number]['id'] ? plugins : readonly [...plugins, ReturnType<typeof funding>];
|
|
320
|
+
//# sourceMappingURL=Accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accounts.d.ts","sourceRoot":"","sources":["../src/Accounts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,KAAK,eAAe,MAAM,+BAA+B,CAAA;AACrE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAI9C,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAA;AAC1C,OAAO,KAAK,aAAa,MAAM,6BAA6B,CAAA;AAE5D,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OA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