tapimo 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -4
- package/dist/ApiKey.js +1 -1
- package/dist/ApiKey.js.map +1 -1
- package/dist/ApiKeys.d.ts +95 -14
- package/dist/ApiKeys.d.ts.map +1 -1
- package/dist/ApiKeys.js +360 -49
- package/dist/ApiKeys.js.map +1 -1
- package/dist/App.d.ts +12457 -10365
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +300 -22
- package/dist/App.js.map +1 -1
- package/dist/Assets.d.ts.map +1 -1
- package/dist/Assets.js +2 -1
- package/dist/Assets.js.map +1 -1
- package/dist/Handler.d.ts +0 -1
- package/dist/Handler.d.ts.map +1 -1
- package/dist/Handler.js +0 -1
- package/dist/Handler.js.map +1 -1
- package/dist/Scope.d.ts +13 -5
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +16 -5
- package/dist/Scope.js.map +1 -1
- package/dist/Webhooks.js +1 -1
- package/dist/Webhooks.js.map +1 -1
- package/dist/admin/App.d.ts +3057 -549
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +26 -5
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +159 -7
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +95 -43
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/earn-vaults.d.ts +1398 -0
- package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
- package/dist/admin/apps/earn-vaults.js +463 -7
- package/dist/admin/apps/earn-vaults.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts +267 -15
- package/dist/admin/apps/organizations.d.ts.map +1 -1
- package/dist/admin/apps/organizations.js +241 -25
- package/dist/admin/apps/organizations.js.map +1 -1
- package/dist/admin/apps/routes-support.d.ts +95 -0
- package/dist/admin/apps/routes-support.d.ts.map +1 -0
- package/dist/admin/apps/routes-support.js +151 -0
- package/dist/admin/apps/routes-support.js.map +1 -0
- package/dist/admin/apps/routes.d.ts +2764 -0
- package/dist/admin/apps/routes.d.ts.map +1 -0
- package/dist/admin/apps/routes.js +728 -0
- package/dist/admin/apps/routes.js.map +1 -0
- package/dist/admin/apps/subsidies.d.ts +501 -0
- package/dist/admin/apps/subsidies.d.ts.map +1 -0
- package/dist/admin/apps/subsidies.js +384 -0
- package/dist/admin/apps/subsidies.js.map +1 -0
- package/dist/admin/apps/verified-tokens.d.ts +88 -88
- package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
- package/dist/admin/apps/verified-tokens.js +3 -3
- package/dist/admin/apps/verified-tokens.js.map +1 -1
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.d.ts.map +1 -1
- package/dist/admin/ui.generated.js +129 -69
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/Analytics.d.ts +5 -2
- package/dist/analytics/Analytics.d.ts.map +1 -1
- package/dist/analytics/Analytics.js +31 -1
- package/dist/analytics/Analytics.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts +2 -1
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +10 -1
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/analytics/tables/routesLifecycleIntervals.d.ts +72 -0
- package/dist/analytics/tables/routesLifecycleIntervals.d.ts.map +1 -0
- package/dist/analytics/tables/routesLifecycleIntervals.js +56 -0
- package/dist/analytics/tables/routesLifecycleIntervals.js.map +1 -0
- package/dist/apps/Zones.d.ts +21 -12526
- package/dist/apps/Zones.d.ts.map +1 -1
- package/dist/apps/Zones.js +37 -5
- package/dist/apps/Zones.js.map +1 -1
- package/dist/apps/data/App.d.ts +3971 -2595
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +76 -21
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +364 -34
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +495 -190
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +72 -0
- package/dist/apps/data/routes/addresses.d.ts.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +37 -37
- package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
- package/dist/apps/data/routes/coingecko.js +47 -21
- package/dist/apps/data/routes/coingecko.js.map +1 -1
- package/dist/apps/data/routes/earn.d.ts +1450 -337
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +1226 -144
- package/dist/apps/data/routes/earn.js.map +1 -1
- package/dist/apps/data/routes/fee-amm.d.ts +5 -0
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
- package/dist/apps/data/routes/fee-amm.js +31 -19
- package/dist/apps/data/routes/fee-amm.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +125 -0
- package/dist/apps/data/routes/indexer.d.ts.map +1 -1
- package/dist/apps/data/routes/indexer.js +83 -27
- package/dist/apps/data/routes/indexer.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts +507 -33
- package/dist/apps/data/routes/rpc.d.ts.map +1 -1
- package/dist/apps/data/routes/rpc.js +266 -156
- package/dist/apps/data/routes/rpc.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +47 -15
- package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
- package/dist/apps/data/routes/tokenlist.js +68 -11
- package/dist/apps/data/routes/tokenlist.js.map +1 -1
- package/dist/apps/data/routes/tokens.d.ts +2 -0
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +26 -14
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transfers.d.ts +28 -12
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +9 -7
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/valuation.d.ts +30 -30
- package/dist/apps/data/routes/verified-tokens.d.ts +9 -9
- package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/verified-tokens.js +64 -20
- package/dist/apps/data/routes/verified-tokens.js.map +1 -1
- package/dist/apps/data/routes/webhooks.d.ts +613 -176
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +291 -195
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/data/routes/zones.d.ts.map +1 -1
- package/dist/apps/data/routes/zones.js +20 -12
- package/dist/apps/data/routes/zones.js.map +1 -1
- package/dist/apps/docs/reference.js +2 -2
- package/dist/apps/docs/reference.js.map +1 -1
- package/dist/apps/index.d.ts +1 -1
- package/dist/apps/index.d.ts.map +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/management/App.d.ts +3763 -3385
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +5 -14
- package/dist/apps/management/App.js.map +1 -1
- package/dist/apps/management/Billing.d.ts +48 -7
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +204 -25
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +106 -4
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +43 -15
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +290 -4
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +274 -49
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +6 -6
- package/dist/apps/management/routes/faucet.js +1 -1
- package/dist/apps/management/routes/faucet.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +77 -2
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +117 -13
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/invite-links.d.ts +4 -4
- package/dist/apps/management/routes/me.d.ts.map +1 -1
- package/dist/apps/management/routes/me.js +6 -2
- package/dist/apps/management/routes/me.js.map +1 -1
- package/dist/apps/management/routes/members.d.ts +30 -30
- package/dist/apps/management/routes/orgs.d.ts +18 -2
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +52 -12
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +4 -4
- package/dist/apps/management/routes/projects.d.ts.map +1 -1
- package/dist/apps/management/routes/projects.js +6 -1
- package/dist/apps/management/routes/projects.js.map +1 -1
- package/dist/apps/management/routes/scopes.d.ts.map +1 -1
- package/dist/apps/management/routes/scopes.js +4 -1
- package/dist/apps/management/routes/scopes.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +24 -24
- package/dist/apps/management/routes/usage.js +21 -4
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.d.ts +2 -2
- package/dist/apps/management/routes/webhooks.d.ts +280 -214
- package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/management/routes/webhooks.js +58 -12
- package/dist/apps/management/routes/webhooks.js.map +1 -1
- package/dist/apps/mcp.d.ts +1 -1
- package/dist/apps/mcp.js +7 -7
- package/dist/apps/mcp.js.map +1 -1
- package/dist/apps/mpp/App.d.ts.map +1 -1
- package/dist/apps/mpp/App.js +35 -7
- package/dist/apps/mpp/App.js.map +1 -1
- package/dist/apps/mpp/internal/Adapter.d.ts +2 -0
- package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Adapter.js +30 -1
- package/dist/apps/mpp/internal/Adapter.js.map +1 -1
- package/dist/apps/mpp/internal/Policy.d.ts +22 -4
- package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Policy.js +24 -6
- package/dist/apps/mpp/internal/Policy.js.map +1 -1
- package/dist/apps/mpp/internal/Sponsorship.d.ts +3 -0
- package/dist/apps/mpp/internal/Sponsorship.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Sponsorship.js +6 -3
- package/dist/apps/mpp/internal/Sponsorship.js.map +1 -1
- package/dist/apps/relay/App.d.ts +2 -0
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +134 -75
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/apps/relay/Sponsorships.d.ts +5 -3
- package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
- package/dist/apps/relay/Sponsorships.js +209 -28
- package/dist/apps/relay/Sponsorships.js.map +1 -1
- package/dist/apps/{funding → routes}/Access.d.ts +4 -4
- package/dist/apps/routes/Access.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/Access.js +4 -4
- package/dist/apps/routes/Access.js.map +1 -0
- package/dist/apps/{funding → routes}/App.d.ts +418 -124
- package/dist/apps/{funding → routes}/App.d.ts.map +1 -1
- package/dist/apps/{funding → routes}/App.js +16 -16
- package/dist/apps/routes/App.js.map +1 -0
- package/dist/apps/routes/Inventory.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/Inventory.js +2 -2
- package/dist/apps/routes/Inventory.js.map +1 -0
- package/dist/apps/routes/index.d.ts +2 -0
- package/dist/apps/routes/index.d.ts.map +1 -0
- package/dist/apps/routes/index.js +2 -0
- package/dist/apps/routes/index.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/chains.d.ts +7 -7
- package/dist/apps/routes/routes/chains.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/routes/chains.js +25 -25
- package/dist/apps/routes/routes/chains.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/deposit-addresses.d.ts +107 -43
- package/dist/apps/routes/routes/deposit-addresses.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/routes/deposit-addresses.js +497 -222
- package/dist/apps/routes/routes/deposit-addresses.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/providers.d.ts +8 -8
- package/dist/apps/routes/routes/providers.d.ts.map +1 -0
- package/dist/apps/routes/routes/providers.js +57 -0
- package/dist/apps/routes/routes/providers.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/quotes.d.ts +19 -16
- package/dist/apps/routes/routes/quotes.d.ts.map +1 -0
- package/dist/apps/{funding → routes}/routes/quotes.js +55 -38
- package/dist/apps/routes/routes/quotes.js.map +1 -0
- package/dist/apps/{funding → routes}/routes/transfers.d.ts +379 -74
- package/dist/apps/routes/routes/transfers.d.ts.map +1 -0
- package/dist/apps/routes/routes/transfers.js +1140 -0
- package/dist/apps/routes/routes/transfers.js.map +1 -0
- package/dist/cli/Cli.d.ts +30 -0
- package/dist/cli/Cli.d.ts.map +1 -1
- package/dist/cli/commands/admin.d.ts +36 -0
- package/dist/cli/commands/admin.d.ts.map +1 -1
- package/dist/cli/commands/admin.js +273 -0
- package/dist/cli/commands/admin.js.map +1 -1
- package/dist/cloudflare.d.ts +16 -14
- package/dist/cloudflare.d.ts.map +1 -1
- package/dist/cloudflare.js +26 -21
- package/dist/cloudflare.js.map +1 -1
- package/dist/db/Db.d.ts +63 -21
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +1030 -15
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +780 -133
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +575 -162
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts +4 -0
- package/dist/db/tables/apiKeyAdmissionBootstraps.d.ts.map +1 -0
- package/dist/db/tables/apiKeyAdmissionBootstraps.js +2 -0
- package/dist/db/tables/apiKeyAdmissionBootstraps.js.map +1 -0
- package/dist/db/tables/apiKeyAdmissions.d.ts +73 -0
- package/dist/db/tables/apiKeyAdmissions.d.ts.map +1 -0
- package/dist/db/tables/apiKeyAdmissions.js +142 -0
- package/dist/db/tables/apiKeyAdmissions.js.map +1 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.d.ts +4 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.d.ts.map +1 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.js +2 -0
- package/dist/db/tables/apiKeyOwnerAdmissions.js.map +1 -0
- package/dist/db/tables/apiKeyOwnerTombstones.d.ts +20 -0
- package/dist/db/tables/apiKeyOwnerTombstones.d.ts.map +1 -0
- package/dist/db/tables/apiKeyOwnerTombstones.js +57 -0
- package/dist/db/tables/apiKeyOwnerTombstones.js.map +1 -0
- package/dist/db/tables/apiKeyRevocations.d.ts +21 -0
- package/dist/db/tables/apiKeyRevocations.d.ts.map +1 -0
- package/dist/db/tables/apiKeyRevocations.js +98 -0
- package/dist/db/tables/apiKeyRevocations.js.map +1 -0
- package/dist/db/tables/authAccounts.d.ts +47 -0
- package/dist/db/tables/authAccounts.d.ts.map +1 -0
- package/dist/db/tables/authAccounts.js +72 -0
- package/dist/db/tables/authAccounts.js.map +1 -0
- package/dist/db/tables/authSessions.d.ts +12 -0
- package/dist/db/tables/authSessions.d.ts.map +1 -0
- package/dist/db/tables/authSessions.js +2 -0
- package/dist/db/tables/authSessions.js.map +1 -0
- package/dist/db/tables/authVerifications.d.ts +12 -0
- package/dist/db/tables/authVerifications.d.ts.map +1 -0
- package/dist/db/tables/authVerifications.js +2 -0
- package/dist/db/tables/authVerifications.js.map +1 -0
- package/dist/db/tables/invitations.d.ts +17 -1
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/invitations.js +123 -43
- package/dist/db/tables/invitations.js.map +1 -1
- package/dist/db/tables/memberships.d.ts +8 -0
- package/dist/db/tables/memberships.d.ts.map +1 -1
- package/dist/db/tables/memberships.js +51 -2
- package/dist/db/tables/memberships.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +32 -10
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +110 -49
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/projects.d.ts +2 -0
- package/dist/db/tables/projects.d.ts.map +1 -1
- package/dist/db/tables/projects.js +12 -3
- package/dist/db/tables/projects.js.map +1 -1
- package/dist/db/tables/requestUsage.d.ts.map +1 -1
- package/dist/db/tables/requestUsage.js.map +1 -1
- package/dist/db/tables/rewardAccounts.d.ts +86 -0
- package/dist/db/tables/rewardAccounts.d.ts.map +1 -0
- package/dist/db/tables/rewardAccounts.js +88 -0
- package/dist/db/tables/rewardAccounts.js.map +1 -0
- package/dist/db/tables/rewardCampaignDistributors.d.ts +36 -0
- package/dist/db/tables/rewardCampaignDistributors.d.ts.map +1 -0
- package/dist/db/tables/rewardCampaignDistributors.js +30 -0
- package/dist/db/tables/rewardCampaignDistributors.js.map +1 -0
- package/dist/db/tables/rewardCampaigns.d.ts +171 -0
- package/dist/db/tables/rewardCampaigns.d.ts.map +1 -0
- package/dist/db/tables/rewardCampaigns.js +392 -0
- package/dist/db/tables/rewardCampaigns.js.map +1 -0
- package/dist/db/tables/rewardCredits.d.ts +53 -0
- package/dist/db/tables/rewardCredits.d.ts.map +1 -0
- package/dist/db/tables/rewardCredits.js +63 -0
- package/dist/db/tables/rewardCredits.js.map +1 -0
- package/dist/db/tables/rewardEligibilityAssociations.d.ts +61 -0
- package/dist/db/tables/rewardEligibilityAssociations.d.ts.map +1 -0
- package/dist/db/tables/rewardEligibilityAssociations.js +103 -0
- package/dist/db/tables/rewardEligibilityAssociations.js.map +1 -0
- package/dist/db/tables/rewardRuns.d.ts +188 -0
- package/dist/db/tables/rewardRuns.d.ts.map +1 -0
- package/dist/db/tables/rewardRuns.js +278 -0
- package/dist/db/tables/rewardRuns.js.map +1 -0
- package/dist/db/tables/rewardTransactionAttempts.d.ts +100 -0
- package/dist/db/tables/rewardTransactionAttempts.d.ts.map +1 -0
- package/dist/db/tables/rewardTransactionAttempts.js +163 -0
- package/dist/db/tables/rewardTransactionAttempts.js.map +1 -0
- package/dist/db/tables/routesCatalog.d.ts +58 -0
- package/dist/db/tables/routesCatalog.d.ts.map +1 -0
- package/dist/db/tables/{fundingCatalog.js → routesCatalog.js} +19 -19
- package/dist/db/tables/routesCatalog.js.map +1 -0
- package/dist/db/tables/routesDepositAddresses.d.ts +476 -0
- package/dist/db/tables/routesDepositAddresses.d.ts.map +1 -0
- package/dist/db/tables/routesDepositAddresses.js +587 -0
- package/dist/db/tables/routesDepositAddresses.js.map +1 -0
- package/dist/db/tables/{fundingDepositRequestObservations.d.ts → routesDepositRequestObservations.d.ts} +6 -6
- package/dist/db/tables/routesDepositRequestObservations.d.ts.map +1 -0
- package/dist/db/tables/{fundingDepositRequestObservations.js → routesDepositRequestObservations.js} +6 -6
- package/dist/db/tables/routesDepositRequestObservations.js.map +1 -0
- package/dist/db/tables/{fundingDeposits.d.ts → routesDeposits.d.ts} +210 -22
- package/dist/db/tables/routesDeposits.d.ts.map +1 -0
- package/dist/db/tables/routesDeposits.js +576 -0
- package/dist/db/tables/routesDeposits.js.map +1 -0
- package/dist/db/tables/routesIdempotency.d.ts +166 -0
- package/dist/db/tables/routesIdempotency.d.ts.map +1 -0
- package/dist/db/tables/routesIdempotency.js +330 -0
- package/dist/db/tables/routesIdempotency.js.map +1 -0
- package/dist/db/tables/routesSubsidies.d.ts +27 -0
- package/dist/db/tables/routesSubsidies.d.ts.map +1 -0
- package/dist/db/tables/routesSubsidies.js +45 -0
- package/dist/db/tables/routesSubsidies.js.map +1 -0
- package/dist/db/tables/{fundingTransferEvents.d.ts → routesTransferEvents.d.ts} +3 -3
- package/dist/db/tables/routesTransferEvents.d.ts.map +1 -0
- package/dist/db/tables/{fundingTransferEvents.js → routesTransferEvents.js} +3 -3
- package/dist/db/tables/routesTransferEvents.js.map +1 -0
- package/dist/db/tables/routesTransferSubsidies.d.ts +19 -0
- package/dist/db/tables/routesTransferSubsidies.d.ts.map +1 -0
- package/dist/db/tables/routesTransferSubsidies.js +17 -0
- package/dist/db/tables/routesTransferSubsidies.js.map +1 -0
- package/dist/db/tables/routesTransferSubsidyNonces.d.ts +51 -0
- package/dist/db/tables/routesTransferSubsidyNonces.d.ts.map +1 -0
- package/dist/db/tables/routesTransferSubsidyNonces.js +82 -0
- package/dist/db/tables/routesTransferSubsidyNonces.js.map +1 -0
- package/dist/db/tables/routesTransferTransactions.d.ts +77 -0
- package/dist/db/tables/routesTransferTransactions.d.ts.map +1 -0
- package/dist/db/tables/{fundingTransferTransactions.js → routesTransferTransactions.js} +31 -13
- package/dist/db/tables/routesTransferTransactions.js.map +1 -0
- package/dist/db/tables/routesTransfers.d.ts +319 -0
- package/dist/db/tables/routesTransfers.d.ts.map +1 -0
- package/dist/db/tables/routesTransfers.js +372 -0
- package/dist/db/tables/routesTransfers.js.map +1 -0
- package/dist/db/tables/sponsoredTransactions.d.ts +75 -20
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +124 -54
- package/dist/db/tables/sponsoredTransactions.js.map +1 -1
- package/dist/db/tables/sponsorshipAttributions.d.ts +69 -0
- package/dist/db/tables/sponsorshipAttributions.d.ts.map +1 -0
- package/dist/db/tables/sponsorshipAttributions.js +77 -0
- package/dist/db/tables/sponsorshipAttributions.js.map +1 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.d.ts +22 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.d.ts.map +1 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.js +45 -0
- package/dist/db/tables/sponsorshipReconciliationCursors.js.map +1 -0
- package/dist/db/tables/stripeCustomers.d.ts +11 -0
- package/dist/db/tables/stripeCustomers.d.ts.map +1 -1
- package/dist/db/tables/stripeCustomers.js +13 -0
- package/dist/db/tables/stripeCustomers.js.map +1 -1
- package/dist/db/tables/users.d.ts +17 -1
- package/dist/db/tables/users.d.ts.map +1 -1
- package/dist/db/tables/users.js +47 -2
- package/dist/db/tables/users.js.map +1 -1
- package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
- package/dist/db/tables/webhookQueueEvents.js +5 -1
- package/dist/db/tables/webhookQueueEvents.js.map +1 -1
- package/dist/db/tables/webhookSubscriptions.d.ts +19 -11
- package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
- package/dist/db/tables/webhookSubscriptions.js +45 -13
- package/dist/db/tables/webhookSubscriptions.js.map +1 -1
- package/dist/handlers/internal/executionError.d.ts +2 -2
- package/dist/handlers/internal/executionError.d.ts.map +1 -1
- package/dist/handlers/internal/executionError.js +1 -2
- package/dist/handlers/internal/executionError.js.map +1 -1
- package/dist/handlers/internal/multisig.d.ts +4 -232
- package/dist/handlers/internal/multisig.d.ts.map +1 -1
- package/dist/handlers/internal/multisig.js +11 -537
- package/dist/handlers/internal/multisig.js.map +1 -1
- package/dist/handlers/internal/sponsorship.d.ts +19 -8
- package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
- package/dist/handlers/internal/sponsorship.js +13 -9
- package/dist/handlers/internal/sponsorship.js.map +1 -1
- package/dist/handlers/relay.d.ts +9 -12
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +81 -85
- package/dist/handlers/relay.js.map +1 -1
- package/dist/index.d.ts +0 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -17
- package/dist/index.js.map +1 -1
- package/dist/internal/AssetResponse.d.ts +12 -0
- package/dist/internal/AssetResponse.d.ts.map +1 -0
- package/dist/internal/AssetResponse.js +21 -0
- package/dist/internal/AssetResponse.js.map +1 -0
- package/dist/internal/Auth.d.ts +48 -12
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +603 -175
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/BetterAuth.d.ts +1488 -0
- package/dist/internal/BetterAuth.d.ts.map +1 -0
- package/dist/internal/BetterAuth.js +253 -0
- package/dist/internal/BetterAuth.js.map +1 -0
- package/dist/internal/Cache.d.ts +2 -0
- package/dist/internal/Cache.d.ts.map +1 -1
- package/dist/internal/Cache.js +2 -0
- package/dist/internal/Cache.js.map +1 -1
- package/dist/internal/EarnRates.d.ts +26 -3
- package/dist/internal/EarnRates.d.ts.map +1 -1
- package/dist/internal/EarnRates.js +84 -19
- package/dist/internal/EarnRates.js.map +1 -1
- package/dist/internal/EarnSharePrices.d.ts +120 -0
- package/dist/internal/EarnSharePrices.d.ts.map +1 -0
- package/dist/internal/EarnSharePrices.js +179 -0
- package/dist/internal/EarnSharePrices.js.map +1 -0
- package/dist/internal/EarnVaults.d.ts +4 -0
- package/dist/internal/EarnVaults.d.ts.map +1 -1
- package/dist/internal/EarnVaults.js +27 -10
- package/dist/internal/EarnVaults.js.map +1 -1
- package/dist/internal/Email.d.ts +37 -0
- package/dist/internal/Email.d.ts.map +1 -0
- package/dist/internal/Email.js +16 -0
- package/dist/internal/Email.js.map +1 -0
- package/dist/internal/Log.d.ts +32 -28
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +18 -11
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/MetricSink.d.ts +3 -0
- package/dist/internal/MetricSink.d.ts.map +1 -1
- package/dist/internal/MetricSink.js +67 -8
- package/dist/internal/MetricSink.js.map +1 -1
- package/dist/internal/Mpp.d.ts.map +1 -1
- package/dist/internal/Mpp.js +20 -25
- package/dist/internal/Mpp.js.map +1 -1
- package/dist/internal/OpenApi.d.ts +26 -3
- package/dist/internal/OpenApi.d.ts.map +1 -1
- package/dist/internal/OpenApi.js +25 -10
- package/dist/internal/OpenApi.js.map +1 -1
- package/dist/internal/Provider.d.ts +1 -1
- package/dist/internal/Provider.d.ts.map +1 -1
- package/dist/internal/RateLimit.d.ts.map +1 -1
- package/dist/internal/RateLimit.js +13 -1
- package/dist/internal/RateLimit.js.map +1 -1
- package/dist/internal/Store.d.ts +16 -0
- package/dist/internal/Store.d.ts.map +1 -1
- package/dist/internal/Store.js +59 -8
- package/dist/internal/Store.js.map +1 -1
- package/dist/internal/Tidx.d.ts +9 -2
- package/dist/internal/Tidx.d.ts.map +1 -1
- package/dist/internal/Tidx.js +78 -11
- package/dist/internal/Tidx.js.map +1 -1
- package/dist/internal/Timing.d.ts +26 -0
- package/dist/internal/Timing.d.ts.map +1 -1
- package/dist/internal/Timing.js +63 -5
- package/dist/internal/Timing.js.map +1 -1
- package/dist/internal/VercelOidc.d.ts +94 -0
- package/dist/internal/VercelOidc.d.ts.map +1 -0
- package/dist/internal/VercelOidc.js +128 -0
- package/dist/internal/VercelOidc.js.map +1 -0
- package/dist/internal/VerifiedTokens.d.ts +2 -8
- package/dist/internal/VerifiedTokens.d.ts.map +1 -1
- package/dist/internal/VerifiedTokens.js +24 -24
- package/dist/internal/VerifiedTokens.js.map +1 -1
- package/dist/internal/Viem.d.ts +30 -2067
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Viem.js +167 -17
- package/dist/internal/Viem.js.map +1 -1
- package/dist/internal/Webhooks.d.ts +12 -4
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +9 -3
- package/dist/internal/Webhooks.js.map +1 -1
- package/dist/internal/ZoneRpc.d.ts +7 -0
- package/dist/internal/ZoneRpc.d.ts.map +1 -0
- package/dist/internal/ZoneRpc.js +49 -0
- package/dist/internal/ZoneRpc.js.map +1 -0
- package/dist/internal/index.d.ts +3 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +3 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/rewards/Audit.d.ts +88 -0
- package/dist/internal/rewards/Audit.d.ts.map +1 -0
- package/dist/internal/rewards/Audit.js +134 -0
- package/dist/internal/rewards/Audit.js.map +1 -0
- package/dist/internal/rewards/Campaigns.d.ts +572 -0
- package/dist/internal/rewards/Campaigns.d.ts.map +1 -0
- package/dist/internal/rewards/Campaigns.js +531 -0
- package/dist/internal/rewards/Campaigns.js.map +1 -0
- package/dist/internal/rewards/Credits.d.ts +76 -0
- package/dist/internal/rewards/Credits.d.ts.map +1 -0
- package/dist/internal/rewards/Credits.js +95 -0
- package/dist/internal/rewards/Credits.js.map +1 -0
- package/dist/internal/rewards/Events.d.ts +100 -0
- package/dist/internal/rewards/Events.d.ts.map +1 -0
- package/dist/internal/rewards/Events.js +340 -0
- package/dist/internal/rewards/Events.js.map +1 -0
- package/dist/internal/rewards/Projection.d.ts +237 -0
- package/dist/internal/rewards/Projection.d.ts.map +1 -0
- package/dist/internal/rewards/Projection.js +616 -0
- package/dist/internal/rewards/Projection.js.map +1 -0
- package/dist/internal/rewards/Rates.d.ts +44 -0
- package/dist/internal/rewards/Rates.d.ts.map +1 -0
- package/dist/internal/rewards/Rates.js +60 -0
- package/dist/internal/rewards/Rates.js.map +1 -0
- package/dist/internal/rewards/Read.d.ts +158 -0
- package/dist/internal/rewards/Read.d.ts.map +1 -0
- package/dist/internal/rewards/Read.js +292 -0
- package/dist/internal/rewards/Read.js.map +1 -0
- package/dist/internal/rewards/Runner.d.ts +164 -0
- package/dist/internal/rewards/Runner.d.ts.map +1 -0
- package/dist/internal/rewards/Runner.js +1778 -0
- package/dist/internal/rewards/Runner.js.map +1 -0
- package/dist/internal/rewards/Signer.d.ts +224 -0
- package/dist/internal/rewards/Signer.d.ts.map +1 -0
- package/dist/internal/rewards/Signer.js +135 -0
- package/dist/internal/rewards/Signer.js.map +1 -0
- package/dist/internal/rewards/index.d.ts +15 -0
- package/dist/internal/rewards/index.d.ts.map +1 -0
- package/dist/internal/rewards/index.js +15 -0
- package/dist/internal/rewards/index.js.map +1 -0
- package/dist/internal/{funding → routes}/Action.d.ts +12 -1
- package/dist/internal/routes/Action.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Action.js +17 -9
- package/dist/internal/routes/Action.js.map +1 -0
- package/dist/internal/{funding → routes}/Catalog.d.ts +20 -20
- package/dist/internal/routes/Catalog.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Catalog.js +29 -29
- package/dist/internal/routes/Catalog.js.map +1 -0
- package/dist/internal/{funding → routes}/Chain.d.ts +10 -10
- package/dist/internal/routes/Chain.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Chain.js +3 -3
- package/dist/internal/routes/Chain.js.map +1 -0
- package/dist/internal/{funding → routes}/Deposit.d.ts +45 -23
- package/dist/internal/routes/Deposit.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Deposit.js +60 -27
- package/dist/internal/routes/Deposit.js.map +1 -0
- package/dist/internal/{funding → routes}/DepositAddress.d.ts +56 -27
- package/dist/internal/routes/DepositAddress.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/DepositAddress.js +95 -33
- package/dist/internal/routes/DepositAddress.js.map +1 -0
- package/dist/internal/{funding → routes}/DepositWebhook.d.ts +4 -4
- package/dist/internal/routes/DepositWebhook.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/DepositWebhook.js +4 -4
- package/dist/internal/routes/DepositWebhook.js.map +1 -0
- package/dist/internal/routes/Economics.d.ts +25 -0
- package/dist/internal/routes/Economics.d.ts.map +1 -0
- package/dist/internal/routes/Economics.js +28 -0
- package/dist/internal/routes/Economics.js.map +1 -0
- package/dist/internal/{funding → routes}/Evidence.d.ts +3 -3
- package/dist/internal/routes/Evidence.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Evidence.js +7 -7
- package/dist/internal/routes/Evidence.js.map +1 -0
- package/dist/internal/routes/Observability.d.ts +154 -0
- package/dist/internal/routes/Observability.d.ts.map +1 -0
- package/dist/internal/routes/Observability.js +389 -0
- package/dist/internal/routes/Observability.js.map +1 -0
- package/dist/internal/{funding → routes}/Provider.d.ts +311 -105
- package/dist/internal/routes/Provider.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Provider.js +229 -98
- package/dist/internal/routes/Provider.js.map +1 -0
- package/dist/internal/{funding → routes}/Reconciliation.d.ts +11 -6
- package/dist/internal/routes/Reconciliation.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Reconciliation.js +408 -158
- package/dist/internal/routes/Reconciliation.js.map +1 -0
- package/dist/internal/routes/Route.d.ts +21 -0
- package/dist/internal/routes/Route.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Route.js +1 -1
- package/dist/internal/routes/Route.js.map +1 -0
- package/dist/internal/{funding → routes}/SourceObservation.d.ts +6 -6
- package/dist/internal/routes/SourceObservation.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/SourceObservation.js +8 -8
- package/dist/internal/routes/SourceObservation.js.map +1 -0
- package/dist/internal/{funding → routes}/Subsidy.d.ts +48 -3
- package/dist/internal/routes/Subsidy.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Subsidy.js +43 -3
- package/dist/internal/routes/Subsidy.js.map +1 -0
- package/dist/internal/{funding → routes}/Token.d.ts +4 -4
- package/dist/internal/routes/Token.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/Token.js +3 -3
- package/dist/internal/routes/Token.js.map +1 -0
- package/dist/internal/{funding → routes}/Transfer.d.ts +241 -46
- package/dist/internal/routes/Transfer.d.ts.map +1 -0
- package/dist/internal/routes/Transfer.js +728 -0
- package/dist/internal/routes/Transfer.js.map +1 -0
- package/dist/internal/{funding → routes}/TransferReconciliation.d.ts +13 -10
- package/dist/internal/routes/TransferReconciliation.d.ts.map +1 -0
- package/dist/internal/routes/TransferReconciliation.js +422 -0
- package/dist/internal/routes/TransferReconciliation.js.map +1 -0
- package/dist/internal/routes/TransferSubsidy.d.ts +201 -0
- package/dist/internal/routes/TransferSubsidy.d.ts.map +1 -0
- package/dist/internal/routes/TransferSubsidy.js +256 -0
- package/dist/internal/routes/TransferSubsidy.js.map +1 -0
- package/dist/internal/{funding → routes}/TransferWebhook.d.ts +5 -5
- package/dist/internal/routes/TransferWebhook.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/TransferWebhook.js +3 -3
- package/dist/internal/routes/TransferWebhook.js.map +1 -0
- package/dist/internal/{funding → routes}/index.d.ts +2 -0
- package/dist/internal/routes/index.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/index.js +2 -0
- package/dist/internal/routes/index.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/across.d.ts +4 -4
- package/dist/internal/routes/providers/across.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/across.js +13 -13
- package/dist/internal/routes/providers/across.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/relay.d.ts +21 -12
- package/dist/internal/routes/providers/relay.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/relay.js +194 -110
- package/dist/internal/routes/providers/relay.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/rhino.d.ts +4 -4
- package/dist/internal/routes/providers/rhino.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/rhino.js +10 -10
- package/dist/internal/routes/providers/rhino.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/squid.d.ts +4 -4
- package/dist/internal/routes/providers/squid.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/squid.js +14 -14
- package/dist/internal/routes/providers/squid.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/stargate.d.ts +46 -18
- package/dist/internal/routes/providers/stargate.d.ts.map +1 -0
- package/dist/internal/routes/providers/stargate.js +898 -0
- package/dist/internal/routes/providers/stargate.js.map +1 -0
- package/dist/internal/{funding → routes}/providers/symbiosis.d.ts +4 -4
- package/dist/internal/routes/providers/symbiosis.d.ts.map +1 -0
- package/dist/internal/{funding → routes}/providers/symbiosis.js +30 -20
- package/dist/internal/routes/providers/symbiosis.js.map +1 -0
- package/dist/internal/webhookDestinations/slack.js +12 -12
- package/dist/internal/webhookDestinations/slack.js.map +1 -1
- package/dist/providers/index.d.ts +12 -12
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js +12 -12
- package/dist/providers/index.js.map +1 -1
- package/dist/server.d.ts +19 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +19 -0
- package/dist/server.js.map +1 -0
- package/package.json +15 -4
- package/src/ApiKey.ts +1 -1
- package/src/ApiKeys.test.ts +1033 -3
- package/src/ApiKeys.ts +489 -48
- package/src/App.test-d.ts +1 -1
- package/src/App.test.ts +216 -25
- package/src/App.ts +334 -31
- package/src/Assets.test.ts +2 -2
- package/src/Assets.ts +3 -1
- package/src/Auth.test-d.ts +1 -1
- package/src/Client.test-d.ts +539 -110
- package/src/Handler.ts +0 -1
- package/src/OpenApi.contract.test.ts +195 -0
- package/src/Scope.ts +17 -5
- package/src/Webhooks.ts +1 -1
- package/src/admin/App.test.ts +30 -2
- package/src/admin/App.ts +42 -6
- package/src/admin/apps/api-keys.test.ts +267 -5
- package/src/admin/apps/api-keys.ts +100 -50
- package/src/admin/apps/earn-vaults.test.ts +158 -0
- package/src/admin/apps/earn-vaults.ts +679 -6
- package/src/admin/apps/organizations.test.ts +306 -17
- package/src/admin/apps/organizations.ts +299 -24
- package/src/admin/apps/routes-support.test.ts +200 -0
- package/src/admin/apps/routes-support.ts +201 -0
- package/src/admin/apps/routes.test.ts +450 -0
- package/src/admin/apps/routes.ts +896 -0
- package/src/admin/apps/scopes.test.ts +15 -5
- package/src/admin/apps/subsidies.test.ts +306 -0
- package/src/admin/apps/subsidies.ts +457 -0
- package/src/admin/apps/verified-tokens.test.ts +8 -3
- package/src/admin/apps/verified-tokens.ts +3 -3
- package/src/admin/ui/plugin.ts +1 -2
- package/src/admin/ui/src/components/RewardCampaignForm.tsx +1009 -0
- package/src/admin/ui/src/lib/config.ts +11 -2
- package/src/admin/ui/src/lib/earn-vaults.ts +2 -2
- package/src/admin/ui/src/lib/organizations.test.ts +83 -50
- package/src/admin/ui/src/lib/organizations.ts +106 -25
- package/src/admin/ui/src/lib/query-client.ts +1 -1
- package/src/admin/ui/src/lib/reward-campaigns.ts +136 -0
- package/src/admin/ui/src/lib/routes.test.ts +88 -0
- package/src/admin/ui/src/lib/routes.ts +304 -0
- package/src/admin/ui/src/lib/subsidies.ts +75 -0
- package/src/admin/ui/src/routeTree.gen.ts +63 -0
- package/src/admin/ui/src/routes/__root.tsx +12 -1
- package/src/admin/ui/src/routes/api-keys.tsx +196 -84
- package/src/admin/ui/src/routes/earn.vaults_.$vaultId.edit.tsx +105 -70
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +239 -23
- package/src/admin/ui/src/routes/routes.tsx +1615 -0
- package/src/admin/ui/src/routes/routes_.support.tsx +248 -0
- package/src/admin/ui/src/routes/subsidies.tsx +799 -0
- package/src/admin/ui.generated.ts +144 -69
- package/src/analytics/Analytics.test.ts +108 -18
- package/src/analytics/Analytics.ts +38 -6
- package/src/analytics/tables/requestEvents.test.ts +100 -0
- package/src/analytics/tables/requestEvents.ts +10 -1
- package/src/analytics/tables/routesLifecycleIntervals.ts +140 -0
- package/src/apps/Zones.test.ts +15 -0
- package/src/apps/Zones.ts +52 -5
- package/src/apps/composition.test.ts +68 -60
- package/src/apps/data/App.test.ts +154 -2
- package/src/apps/data/App.ts +88 -28
- package/src/apps/data/routes/activities.test.ts +419 -7
- package/src/apps/data/routes/activities.ts +683 -216
- package/src/apps/data/routes/balances.test.ts +2 -2
- package/src/apps/data/routes/blocks.test.ts +46 -1
- package/src/apps/data/routes/coingecko.test.ts +419 -1
- package/src/apps/data/routes/coingecko.ts +309 -253
- package/src/apps/data/routes/earn.discovery.test.ts +274 -0
- package/src/apps/data/routes/earn.test.ts +1294 -17
- package/src/apps/data/routes/earn.ts +1838 -321
- package/src/apps/data/routes/exchanges.test.ts +12 -15
- package/src/apps/data/routes/fee-amm.test.ts +224 -0
- package/src/apps/data/routes/fee-amm.ts +191 -160
- package/src/apps/data/routes/indexer.test.ts +389 -0
- package/src/apps/data/routes/indexer.ts +165 -69
- package/src/apps/data/routes/receipts.test.ts +1 -1
- package/src/apps/data/routes/rpc.test.ts +352 -8
- package/src/apps/data/routes/rpc.ts +407 -219
- package/src/apps/data/routes/rpc.zone.test.ts +340 -0
- package/src/apps/data/routes/tokenlist.test.ts +285 -0
- package/src/apps/data/routes/tokenlist.ts +173 -88
- package/src/apps/data/routes/tokens.test.ts +93 -3
- package/src/apps/data/routes/tokens.ts +39 -23
- package/src/apps/data/routes/transactions.test.ts +1 -1
- package/src/apps/data/routes/transfers.test.ts +56 -24
- package/src/apps/data/routes/transfers.ts +19 -8
- package/src/apps/data/routes/valuation.test.ts +1 -1
- package/src/apps/data/routes/verified-tokens.test.ts +345 -0
- package/src/apps/data/routes/verified-tokens.ts +99 -29
- package/src/apps/data/routes/webhooks.test.ts +645 -83
- package/src/apps/data/routes/webhooks.ts +1089 -857
- package/src/apps/data/routes/zones.test.ts +148 -71
- package/src/apps/data/routes/zones.ts +71 -55
- package/src/apps/docs/reference.ts +2 -2
- package/src/apps/index.ts +1 -1
- package/src/apps/management/App.ts +9 -51
- package/src/apps/management/Billing.test.ts +375 -14
- package/src/apps/management/Billing.ts +265 -29
- package/src/apps/management/routes/api-keys.test.ts +269 -7
- package/src/apps/management/routes/api-keys.ts +61 -20
- package/src/apps/management/routes/billing.test.ts +477 -15
- package/src/apps/management/routes/billing.ts +377 -50
- package/src/apps/management/routes/faucet.test.ts +1 -1
- package/src/apps/management/routes/faucet.ts +1 -1
- package/src/apps/management/routes/invitations.test.ts +270 -3
- package/src/apps/management/routes/invitations.ts +185 -15
- package/src/apps/management/routes/invoicePreview.test.ts +549 -0
- package/src/apps/management/routes/me.test.ts +246 -5
- package/src/apps/management/routes/me.ts +7 -2
- package/src/apps/management/routes/members.test.ts +108 -0
- package/src/apps/management/routes/orgs.test.ts +191 -3
- package/src/apps/management/routes/orgs.ts +58 -11
- package/src/apps/management/routes/projects.test.ts +33 -3
- package/src/apps/management/routes/projects.ts +6 -1
- package/src/apps/management/routes/scopes.test.ts +30 -2
- package/src/apps/management/routes/scopes.ts +4 -1
- package/src/apps/management/routes/usage.test.ts +32 -0
- package/src/apps/management/routes/usage.ts +22 -4
- package/src/apps/management/routes/webhooks.test.ts +49 -26
- package/src/apps/management/routes/webhooks.ts +78 -22
- package/src/apps/mcp.test.ts +6 -6
- package/src/apps/mcp.ts +7 -7
- package/src/apps/mpp/App.ts +37 -7
- package/src/apps/mpp/Mpp.test.ts +49 -8
- package/src/apps/mpp/Mpp.zone.test.ts +219 -0
- package/src/apps/mpp/internal/Adapter.ts +34 -0
- package/src/apps/mpp/internal/Policy.test.ts +86 -31
- package/src/apps/mpp/internal/Policy.ts +49 -7
- package/src/apps/mpp/internal/Sponsorship.test.ts +207 -0
- package/src/apps/mpp/internal/Sponsorship.ts +9 -3
- package/src/apps/relay/App.test.ts +839 -64
- package/src/apps/relay/App.ts +148 -81
- package/src/apps/relay/App.zone-billing.test.ts +257 -0
- package/src/apps/relay/Sponsorships.test.ts +67 -4
- package/src/apps/relay/Sponsorships.ts +233 -32
- package/src/apps/relay/Sponsorships.zone.test.ts +102 -0
- package/src/apps/{funding → routes}/Access.ts +6 -6
- package/src/apps/routes/App.test.ts +165 -0
- package/src/apps/routes/App.ts +96 -0
- package/src/apps/{funding → routes}/Inventory.ts +2 -2
- package/src/apps/routes/index.ts +1 -0
- package/src/apps/{funding → routes}/routes/chains.test.ts +66 -66
- package/src/apps/{funding → routes}/routes/chains.ts +23 -23
- package/src/apps/{funding → routes}/routes/deposit-addresses.test.ts +1358 -458
- package/src/apps/{funding → routes}/routes/deposit-addresses.ts +566 -246
- package/src/apps/{funding → routes}/routes/providers.test.ts +27 -33
- package/src/apps/{funding → routes}/routes/providers.ts +23 -23
- package/src/apps/{funding → routes}/routes/quotes.test.ts +298 -41
- package/src/apps/{funding → routes}/routes/quotes.ts +57 -40
- package/src/apps/{funding → routes}/routes/transfers.test.ts +1100 -353
- package/src/apps/routes/routes/transfers.ts +1332 -0
- package/src/cli/Cli.test.ts +1 -1
- package/src/cli/commands/admin.test.ts +748 -1
- package/src/cli/commands/admin.ts +278 -0
- package/src/cloudflare.ts +52 -47
- package/src/db/Db.test.ts +245 -2
- package/src/db/Db.ts +1476 -34
- package/src/db/Schema.ts +729 -228
- package/src/db/tables/apiKeyAdmissionBootstraps.ts +4 -0
- package/src/db/tables/apiKeyAdmissions.ts +218 -0
- package/src/db/tables/apiKeyOwnerAdmissions.ts +4 -0
- package/src/db/tables/apiKeyOwnerTombstones.ts +81 -0
- package/src/db/tables/apiKeyRevocations.test.ts +74 -0
- package/src/db/tables/apiKeyRevocations.ts +121 -0
- package/src/db/tables/authAccounts.ts +105 -0
- package/src/db/tables/authSessions.ts +13 -0
- package/src/db/tables/authVerifications.ts +13 -0
- package/src/db/tables/invitations.ts +142 -45
- package/src/db/tables/memberships.ts +79 -3
- package/src/db/tables/organizations.test.ts +690 -13
- package/src/db/tables/organizations.ts +139 -55
- package/src/db/tables/projects.test.ts +16 -0
- package/src/db/tables/projects.ts +13 -3
- package/src/db/tables/requestUsage.ts +4 -1
- package/src/db/tables/rewardAccounts.ts +178 -0
- package/src/db/tables/rewardCampaignDistributors.ts +68 -0
- package/src/db/tables/rewardCampaigns.test.ts +1388 -0
- package/src/db/tables/rewardCampaigns.ts +647 -0
- package/src/db/tables/rewardCredits.ts +110 -0
- package/src/db/tables/rewardEligibilityAssociations.test.ts +271 -0
- package/src/db/tables/rewardEligibilityAssociations.ts +184 -0
- package/src/db/tables/rewardRuns.ts +514 -0
- package/src/db/tables/rewardTransactionAttempts.ts +272 -0
- package/src/db/tables/routesCatalog.test.ts +185 -0
- package/src/db/tables/routesCatalog.ts +163 -0
- package/src/db/tables/routesDepositAddresses.test.ts +1048 -0
- package/src/db/tables/routesDepositAddresses.ts +1008 -0
- package/src/db/tables/{fundingDepositRequestObservations.test.ts → routesDepositRequestObservations.test.ts} +13 -14
- package/src/db/tables/{fundingDepositRequestObservations.ts → routesDepositRequestObservations.ts} +10 -10
- package/src/db/tables/{fundingDeposits.test.ts → routesDeposits.test.ts} +316 -46
- package/src/db/tables/routesDeposits.ts +1062 -0
- package/src/db/tables/routesIdempotency.test.ts +796 -0
- package/src/db/tables/routesIdempotency.ts +496 -0
- package/src/db/tables/routesSubsidies.test.ts +120 -0
- package/src/db/tables/routesSubsidies.ts +71 -0
- package/src/db/tables/{fundingTransferEvents.ts → routesTransferEvents.ts} +4 -4
- package/src/db/tables/routesTransferSubsidies.ts +38 -0
- package/src/db/tables/routesTransferSubsidyNonces.ts +124 -0
- package/src/db/tables/routesTransferTransactions.test.ts +195 -0
- package/src/db/tables/{fundingTransferTransactions.ts → routesTransferTransactions.ts} +63 -18
- package/src/db/tables/routesTransfers.test.ts +338 -0
- package/src/db/tables/routesTransfers.ts +662 -0
- package/src/db/tables/sponsoredTransactions.test.ts +269 -45
- package/src/db/tables/sponsoredTransactions.ts +225 -65
- package/src/db/tables/sponsorshipAttributions.test.ts +160 -0
- package/src/db/tables/sponsorshipAttributions.ts +168 -0
- package/src/db/tables/sponsorshipReconciliationCursors.test.ts +115 -0
- package/src/db/tables/sponsorshipReconciliationCursors.ts +67 -0
- package/src/db/tables/stripeCustomers.test.ts +85 -0
- package/src/db/tables/stripeCustomers.ts +24 -0
- package/src/db/tables/users.test.ts +129 -0
- package/src/db/tables/users.ts +49 -3
- package/src/db/tables/webhookQueueEvents.ts +8 -1
- package/src/db/tables/webhookSubscriptions.ts +95 -20
- package/src/handlers/internal/executionError.ts +3 -4
- package/src/handlers/internal/multisig.ts +13 -816
- package/src/handlers/internal/sponsorship.ts +26 -10
- package/src/handlers/relay.test-d.ts +9 -1
- package/src/handlers/relay.test.ts +823 -3
- package/src/handlers/relay.ts +127 -107
- package/src/index.test-d.ts +7 -0
- package/src/index.ts +0 -17
- package/src/internal/AssetResponse.ts +26 -0
- package/src/internal/Auth.test.ts +1564 -9
- package/src/internal/Auth.ts +833 -239
- package/src/internal/BetterAuth.test.ts +242 -0
- package/src/internal/BetterAuth.ts +349 -0
- package/src/internal/Cache.ts +2 -0
- package/src/internal/EarnRates.test.ts +17 -0
- package/src/internal/EarnRates.ts +124 -31
- package/src/internal/EarnSharePrices.test.ts +182 -0
- package/src/internal/EarnSharePrices.ts +313 -0
- package/src/internal/EarnVaults.test.ts +21 -0
- package/src/internal/EarnVaults.ts +33 -11
- package/src/internal/Email.ts +54 -0
- package/src/internal/Idempotency.test.ts +2 -2
- package/src/internal/Log.test-d.ts +8 -7
- package/src/internal/Log.test.ts +114 -16
- package/src/internal/Log.ts +53 -40
- package/src/internal/MetricSink.test.ts +313 -26
- package/src/internal/MetricSink.ts +73 -8
- package/src/internal/Mpp.test.ts +31 -0
- package/src/internal/Mpp.ts +21 -24
- package/src/internal/OpenApi.ts +45 -12
- package/src/internal/Provider.test.ts +1 -1
- package/src/internal/Provider.ts +1 -1
- package/src/internal/RateLimit.test.ts +21 -3
- package/src/internal/RateLimit.ts +12 -1
- package/src/internal/Store.test-d.ts +1 -1
- package/src/internal/Store.test.ts +151 -8
- package/src/internal/Store.ts +76 -9
- package/src/internal/Tidx.test.ts +59 -8
- package/src/internal/Tidx.ts +86 -14
- package/src/internal/Timing.test.ts +77 -0
- package/src/internal/Timing.ts +83 -6
- package/src/internal/VercelOidc.test.ts +188 -0
- package/src/internal/VercelOidc.ts +193 -0
- package/src/internal/VerifiedTokens.test.ts +60 -6
- package/src/internal/VerifiedTokens.ts +21 -24
- package/src/internal/Viem.batch.test.ts +80 -0
- package/src/internal/Viem.test.ts +201 -2
- package/src/internal/Viem.ts +221 -25
- package/src/internal/Webhooks.test.ts +85 -6
- package/src/internal/Webhooks.ts +22 -4
- package/src/internal/ZoneRpc.ts +50 -0
- package/src/internal/exchange/Provider.test.ts +2 -2
- package/src/internal/index.test.ts +3 -1
- package/src/internal/index.ts +3 -1
- package/src/internal/rewards/Audit.ts +231 -0
- package/src/internal/rewards/Campaigns.test.ts +1234 -0
- package/src/internal/rewards/Campaigns.ts +1205 -0
- package/src/internal/rewards/Credits.ts +165 -0
- package/src/internal/rewards/Events.local.test.ts +113 -0
- package/src/internal/rewards/Events.test.ts +152 -0
- package/src/internal/rewards/Events.ts +468 -0
- package/src/internal/rewards/Projection.test.ts +681 -0
- package/src/internal/rewards/Projection.ts +987 -0
- package/src/internal/rewards/Rates.test.ts +171 -0
- package/src/internal/rewards/Rates.ts +110 -0
- package/src/internal/rewards/Read.test.ts +501 -0
- package/src/internal/rewards/Read.ts +476 -0
- package/src/internal/rewards/Runner.checkpoint.test.ts +80 -0
- package/src/internal/rewards/Runner.states.test.ts +188 -0
- package/src/internal/rewards/Runner.test.ts +90 -0
- package/src/internal/rewards/Runner.ts +2229 -0
- package/src/internal/rewards/Signer.test.ts +79 -0
- package/src/internal/rewards/Signer.ts +180 -0
- package/src/internal/rewards/index.ts +14 -0
- package/src/internal/{funding → routes}/Action.test.ts +63 -14
- package/src/internal/{funding → routes}/Action.ts +35 -8
- package/src/internal/{funding → routes}/Catalog.test.ts +3 -3
- package/src/internal/{funding → routes}/Catalog.ts +39 -39
- package/src/internal/{funding → routes}/Chain.test.ts +1 -1
- package/src/internal/{funding → routes}/Chain.ts +11 -11
- package/src/internal/{funding → routes}/Deposit.test.ts +1 -1
- package/src/internal/{funding → routes}/Deposit.ts +93 -45
- package/src/internal/{funding → routes}/DepositAddress.test.ts +11 -3
- package/src/internal/{funding → routes}/DepositAddress.ts +132 -53
- package/src/internal/{funding → routes}/DepositWebhook.test.ts +61 -18
- package/src/internal/{funding → routes}/DepositWebhook.ts +9 -9
- package/src/internal/routes/Economics.test.ts +42 -0
- package/src/internal/routes/Economics.ts +47 -0
- package/src/internal/{funding → routes}/Evidence.test.ts +6 -6
- package/src/internal/{funding → routes}/Evidence.ts +9 -9
- package/src/internal/routes/Observability.test.ts +636 -0
- package/src/internal/routes/Observability.ts +668 -0
- package/src/internal/{funding → routes}/Provider.test.ts +489 -153
- package/src/internal/{funding → routes}/Provider.ts +489 -186
- package/src/internal/{funding → routes}/Reconciliation.local.test.ts +84 -12
- package/src/internal/{funding → routes}/Reconciliation.test.ts +1213 -279
- package/src/internal/{funding → routes}/Reconciliation.ts +501 -203
- package/src/internal/routes/Reconciliation.unattributed.test.ts +250 -0
- package/src/internal/{funding → routes}/Route.ts +7 -7
- package/src/internal/{funding → routes}/SourceObservation.test.ts +13 -14
- package/src/internal/{funding → routes}/SourceObservation.ts +13 -13
- package/src/internal/{funding → routes}/Subsidy.local.test.ts +7 -7
- package/src/internal/routes/Subsidy.test.ts +169 -0
- package/src/internal/{funding → routes}/Subsidy.ts +86 -6
- package/src/internal/{funding → routes}/Token.test.ts +1 -1
- package/src/internal/{funding → routes}/Token.ts +5 -5
- package/src/internal/routes/Transfer.test.ts +1199 -0
- package/src/internal/routes/Transfer.ts +1206 -0
- package/src/internal/routes/TransferReconciliation.test.ts +731 -0
- package/src/internal/routes/TransferReconciliation.ts +527 -0
- package/src/internal/routes/TransferSubsidy.test.ts +172 -0
- package/src/internal/routes/TransferSubsidy.ts +447 -0
- package/src/internal/{funding → routes}/TransferWebhook.test.ts +13 -13
- package/src/internal/{funding → routes}/TransferWebhook.ts +7 -7
- package/src/internal/{funding → routes}/index.test.ts +5 -3
- package/src/internal/{funding → routes}/index.ts +2 -0
- package/src/internal/{funding → routes}/providers/across.ts +16 -16
- package/src/internal/{funding → routes}/providers/index.test.ts +157 -44
- package/src/internal/{funding → routes}/providers/relay.test.ts +165 -32
- package/src/internal/{funding → routes}/providers/relay.ts +228 -121
- package/src/internal/{funding → routes}/providers/rhino.ts +16 -16
- package/src/internal/{funding → routes}/providers/squid.ts +17 -17
- package/src/internal/routes/providers/stargate.test.ts +728 -0
- package/src/internal/routes/providers/stargate.ts +1276 -0
- package/src/internal/{funding → routes}/providers/symbiosis.ts +64 -24
- package/src/internal/webhookDestinations/slack.ts +10 -10
- package/src/providers/index.ts +13 -13
- package/src/server.ts +18 -0
- package/dist/apps/funding/Access.d.ts.map +0 -1
- package/dist/apps/funding/Access.js.map +0 -1
- package/dist/apps/funding/App.js.map +0 -1
- package/dist/apps/funding/Inventory.d.ts.map +0 -1
- package/dist/apps/funding/Inventory.js.map +0 -1
- package/dist/apps/funding/ProviderAttempts.d.ts +0 -5
- package/dist/apps/funding/ProviderAttempts.d.ts.map +0 -1
- package/dist/apps/funding/ProviderAttempts.js +0 -24
- package/dist/apps/funding/ProviderAttempts.js.map +0 -1
- package/dist/apps/funding/index.d.ts +0 -2
- package/dist/apps/funding/index.d.ts.map +0 -1
- package/dist/apps/funding/index.js +0 -2
- package/dist/apps/funding/index.js.map +0 -1
- package/dist/apps/funding/routes/chains.d.ts.map +0 -1
- package/dist/apps/funding/routes/chains.js.map +0 -1
- package/dist/apps/funding/routes/deposit-addresses.d.ts.map +0 -1
- package/dist/apps/funding/routes/deposit-addresses.js.map +0 -1
- package/dist/apps/funding/routes/providers.d.ts.map +0 -1
- package/dist/apps/funding/routes/providers.js +0 -57
- package/dist/apps/funding/routes/providers.js.map +0 -1
- package/dist/apps/funding/routes/quotes.d.ts.map +0 -1
- package/dist/apps/funding/routes/quotes.js.map +0 -1
- package/dist/apps/funding/routes/transfers.d.ts.map +0 -1
- package/dist/apps/funding/routes/transfers.js +0 -828
- package/dist/apps/funding/routes/transfers.js.map +0 -1
- package/dist/db/tables/fundingCatalog.d.ts +0 -58
- package/dist/db/tables/fundingCatalog.d.ts.map +0 -1
- package/dist/db/tables/fundingCatalog.js.map +0 -1
- package/dist/db/tables/fundingDepositAddresses.d.ts +0 -192
- package/dist/db/tables/fundingDepositAddresses.d.ts.map +0 -1
- package/dist/db/tables/fundingDepositAddresses.js +0 -235
- package/dist/db/tables/fundingDepositAddresses.js.map +0 -1
- package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +0 -1
- package/dist/db/tables/fundingDepositRequestObservations.js.map +0 -1
- package/dist/db/tables/fundingDeposits.d.ts.map +0 -1
- package/dist/db/tables/fundingDeposits.js +0 -295
- package/dist/db/tables/fundingDeposits.js.map +0 -1
- package/dist/db/tables/fundingIdempotency.d.ts +0 -91
- package/dist/db/tables/fundingIdempotency.d.ts.map +0 -1
- package/dist/db/tables/fundingIdempotency.js +0 -103
- package/dist/db/tables/fundingIdempotency.js.map +0 -1
- package/dist/db/tables/fundingTransferEvents.d.ts.map +0 -1
- package/dist/db/tables/fundingTransferEvents.js.map +0 -1
- package/dist/db/tables/fundingTransferTransactions.d.ts +0 -53
- package/dist/db/tables/fundingTransferTransactions.d.ts.map +0 -1
- package/dist/db/tables/fundingTransferTransactions.js.map +0 -1
- package/dist/db/tables/fundingTransfers.d.ts +0 -99
- package/dist/db/tables/fundingTransfers.d.ts.map +0 -1
- package/dist/db/tables/fundingTransfers.js +0 -110
- package/dist/db/tables/fundingTransfers.js.map +0 -1
- package/dist/internal/funding/Action.d.ts.map +0 -1
- package/dist/internal/funding/Action.js.map +0 -1
- package/dist/internal/funding/Catalog.d.ts.map +0 -1
- package/dist/internal/funding/Catalog.js.map +0 -1
- package/dist/internal/funding/Chain.d.ts.map +0 -1
- package/dist/internal/funding/Chain.js.map +0 -1
- package/dist/internal/funding/Deposit.d.ts.map +0 -1
- package/dist/internal/funding/Deposit.js.map +0 -1
- package/dist/internal/funding/DepositAddress.d.ts.map +0 -1
- package/dist/internal/funding/DepositAddress.js.map +0 -1
- package/dist/internal/funding/DepositWebhook.d.ts.map +0 -1
- package/dist/internal/funding/DepositWebhook.js.map +0 -1
- package/dist/internal/funding/Evidence.d.ts.map +0 -1
- package/dist/internal/funding/Evidence.js.map +0 -1
- package/dist/internal/funding/Provider.d.ts.map +0 -1
- package/dist/internal/funding/Provider.js.map +0 -1
- package/dist/internal/funding/Reconciliation.d.ts.map +0 -1
- package/dist/internal/funding/Reconciliation.js.map +0 -1
- package/dist/internal/funding/Route.d.ts +0 -21
- package/dist/internal/funding/Route.d.ts.map +0 -1
- package/dist/internal/funding/Route.js.map +0 -1
- package/dist/internal/funding/SourceObservation.d.ts.map +0 -1
- package/dist/internal/funding/SourceObservation.js.map +0 -1
- package/dist/internal/funding/Subsidy.d.ts.map +0 -1
- package/dist/internal/funding/Subsidy.js.map +0 -1
- package/dist/internal/funding/Token.d.ts.map +0 -1
- package/dist/internal/funding/Token.js.map +0 -1
- package/dist/internal/funding/Transfer.d.ts.map +0 -1
- package/dist/internal/funding/Transfer.js +0 -462
- package/dist/internal/funding/Transfer.js.map +0 -1
- package/dist/internal/funding/TransferReconciliation.d.ts.map +0 -1
- package/dist/internal/funding/TransferReconciliation.js +0 -192
- package/dist/internal/funding/TransferReconciliation.js.map +0 -1
- package/dist/internal/funding/TransferWebhook.d.ts.map +0 -1
- package/dist/internal/funding/TransferWebhook.js.map +0 -1
- package/dist/internal/funding/index.d.ts.map +0 -1
- package/dist/internal/funding/index.js.map +0 -1
- package/dist/internal/funding/providers/across.d.ts.map +0 -1
- package/dist/internal/funding/providers/across.js.map +0 -1
- package/dist/internal/funding/providers/relay.d.ts.map +0 -1
- package/dist/internal/funding/providers/relay.js.map +0 -1
- package/dist/internal/funding/providers/rhino.d.ts.map +0 -1
- package/dist/internal/funding/providers/rhino.js.map +0 -1
- package/dist/internal/funding/providers/squid.d.ts.map +0 -1
- package/dist/internal/funding/providers/squid.js.map +0 -1
- package/dist/internal/funding/providers/stargate.d.ts.map +0 -1
- package/dist/internal/funding/providers/stargate.js +0 -579
- package/dist/internal/funding/providers/stargate.js.map +0 -1
- package/dist/internal/funding/providers/symbiosis.d.ts.map +0 -1
- package/dist/internal/funding/providers/symbiosis.js.map +0 -1
- package/src/apps/funding/App.test.ts +0 -78
- package/src/apps/funding/App.ts +0 -88
- package/src/apps/funding/ProviderAttempts.ts +0 -26
- package/src/apps/funding/index.ts +0 -1
- package/src/apps/funding/routes/transfers.ts +0 -987
- package/src/db/tables/fundingCatalog.test.ts +0 -122
- package/src/db/tables/fundingCatalog.ts +0 -163
- package/src/db/tables/fundingDepositAddresses.test.ts +0 -608
- package/src/db/tables/fundingDepositAddresses.ts +0 -443
- package/src/db/tables/fundingDeposits.ts +0 -572
- package/src/db/tables/fundingIdempotency.test.ts +0 -182
- package/src/db/tables/fundingIdempotency.ts +0 -180
- package/src/db/tables/fundingTransferTransactions.test.ts +0 -112
- package/src/db/tables/fundingTransfers.test.ts +0 -115
- package/src/db/tables/fundingTransfers.ts +0 -189
- package/src/handlers/internal/multisig.test.ts +0 -818
- package/src/internal/funding/Subsidy.test.ts +0 -75
- package/src/internal/funding/Transfer.test.ts +0 -524
- package/src/internal/funding/Transfer.ts +0 -762
- package/src/internal/funding/TransferReconciliation.test.ts +0 -147
- package/src/internal/funding/TransferReconciliation.ts +0 -264
- package/src/internal/funding/providers/stargate.test.ts +0 -328
- package/src/internal/funding/providers/stargate.ts +0 -856
- /package/dist/apps/{funding → routes}/Inventory.d.ts +0 -0
- /package/src/internal/{funding → routes}/Route.test.ts +0 -0
package/dist/db/Schema.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as z from 'zod/mini';
|
|
2
|
-
import type * as
|
|
3
|
-
import type * as
|
|
4
|
-
import type * as
|
|
2
|
+
import type * as Campaigns from '../internal/rewards/Campaigns.js';
|
|
3
|
+
import type * as routes_Deposit from '../internal/routes/Deposit.js';
|
|
4
|
+
import type * as routes_DepositAddress from '../internal/routes/DepositAddress.js';
|
|
5
|
+
import type * as routes_Transfer from '../internal/routes/Transfer.js';
|
|
6
|
+
import type * as routes_TransferSubsidy from '../internal/routes/TransferSubsidy.js';
|
|
5
7
|
import type * as Webhooks from '../internal/Webhooks.js';
|
|
6
8
|
/** One authenticated administrator access to a protected admin API route. */
|
|
7
9
|
export declare const AdminAuditLog: z.ZodMiniObject<{
|
|
@@ -16,6 +18,90 @@ export declare const AdminAuditLog: z.ZodMiniObject<{
|
|
|
16
18
|
}, z.core.$strip>;
|
|
17
19
|
/** Columns of the `admin_audit_logs` table. */
|
|
18
20
|
export type AdminAuditLog = z.output<typeof AdminAuditLog>;
|
|
21
|
+
/** A durable fence for API keys attributed to a deleted organization or project. */
|
|
22
|
+
export declare const ApiKeyOwnerTombstone: z.ZodMiniObject<{
|
|
23
|
+
createdAt: z.ZodMiniString<string>;
|
|
24
|
+
id: z.ZodMiniString<string>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
/** Columns of the `api_key_owner_tombstones` table. */
|
|
27
|
+
export type ApiKeyOwnerTombstone = z.output<typeof ApiKeyOwnerTombstone>;
|
|
28
|
+
/** Legacy aggregate API-key admission count retained for migration compatibility. */
|
|
29
|
+
export declare const ApiKeyOwnerAdmission: z.ZodMiniObject<{
|
|
30
|
+
liveKeys: z.ZodMiniNumber<number>;
|
|
31
|
+
orgId: z.ZodMiniString<string>;
|
|
32
|
+
updatedAt: z.ZodMiniString<string>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
/** Columns of the `api_key_owner_admissions` table. */
|
|
35
|
+
export type ApiKeyOwnerAdmission = z.output<typeof ApiKeyOwnerAdmission>;
|
|
36
|
+
/** One API key counted toward its organization's live-key admission limit. */
|
|
37
|
+
export declare const ApiKeyAdmission: z.ZodMiniObject<{
|
|
38
|
+
expiresAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
39
|
+
id: z.ZodMiniString<string>;
|
|
40
|
+
orgId: z.ZodMiniString<string>;
|
|
41
|
+
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
/** Columns of the `api_key_admissions` table. */
|
|
44
|
+
export type ApiKeyAdmission = z.output<typeof ApiKeyAdmission>;
|
|
45
|
+
/** Records an organization's latest bounded legacy-key admission reconciliation. */
|
|
46
|
+
export declare const ApiKeyAdmissionBootstrap: z.ZodMiniObject<{
|
|
47
|
+
bootstrappedAt: z.ZodMiniString<string>;
|
|
48
|
+
orgId: z.ZodMiniString<string>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
/** Columns of the `api_key_admission_bootstraps` table. */
|
|
51
|
+
export type ApiKeyAdmissionBootstrap = z.output<typeof ApiKeyAdmissionBootstrap>;
|
|
52
|
+
/** A retained revocation fence for one stable API-key id. */
|
|
53
|
+
export declare const ApiKeyRevocation: z.ZodMiniObject<{
|
|
54
|
+
expiresAt: z.ZodMiniString<string>;
|
|
55
|
+
id: z.ZodMiniString<string>;
|
|
56
|
+
orgId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
57
|
+
revokedAt: z.ZodMiniString<string>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
/** Columns of the `api_key_revocations` table. */
|
|
60
|
+
export type ApiKeyRevocation = z.output<typeof ApiKeyRevocation>;
|
|
61
|
+
/** A Better Auth login method linked to a Tempo user. */
|
|
62
|
+
export declare const AuthAccount: z.ZodMiniObject<{
|
|
63
|
+
accessToken: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
64
|
+
accessTokenExpiresAt: z.ZodMiniNullable<z.ZodMiniDate<Date>>;
|
|
65
|
+
accountId: z.ZodMiniString<string>;
|
|
66
|
+
createdAt: z.ZodMiniDate<Date>;
|
|
67
|
+
id: z.ZodMiniString<string>;
|
|
68
|
+
idToken: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
69
|
+
issuer: z.ZodMiniString<string>;
|
|
70
|
+
password: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
71
|
+
providerId: z.ZodMiniString<string>;
|
|
72
|
+
refreshToken: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
73
|
+
refreshTokenExpiresAt: z.ZodMiniNullable<z.ZodMiniDate<Date>>;
|
|
74
|
+
scope: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
75
|
+
updatedAt: z.ZodMiniDate<Date>;
|
|
76
|
+
userId: z.ZodMiniString<string>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
/** Columns of the `auth_accounts` table. */
|
|
79
|
+
export type AuthAccount = z.output<typeof AuthAccount>;
|
|
80
|
+
/** A Better Auth session row for the pinned package schema. */
|
|
81
|
+
export declare const AuthSession: z.ZodMiniObject<{
|
|
82
|
+
createdAt: z.ZodMiniDate<Date>;
|
|
83
|
+
expiresAt: z.ZodMiniDate<Date>;
|
|
84
|
+
id: z.ZodMiniString<string>;
|
|
85
|
+
ipAddress: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
86
|
+
provider: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
87
|
+
token: z.ZodMiniString<string>;
|
|
88
|
+
updatedAt: z.ZodMiniDate<Date>;
|
|
89
|
+
userAgent: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
90
|
+
userId: z.ZodMiniString<string>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
/** Columns of the `auth_sessions` table. */
|
|
93
|
+
export type AuthSession = z.output<typeof AuthSession>;
|
|
94
|
+
/** A Better Auth verification row for the pinned package schema. */
|
|
95
|
+
export declare const AuthVerification: z.ZodMiniObject<{
|
|
96
|
+
createdAt: z.ZodMiniDate<Date>;
|
|
97
|
+
expiresAt: z.ZodMiniDate<Date>;
|
|
98
|
+
id: z.ZodMiniString<string>;
|
|
99
|
+
identifier: z.ZodMiniString<string>;
|
|
100
|
+
updatedAt: z.ZodMiniDate<Date>;
|
|
101
|
+
value: z.ZodMiniString<string>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
/** Columns of the `auth_verifications` table. */
|
|
104
|
+
export type AuthVerification = z.output<typeof AuthVerification>;
|
|
19
105
|
/** An organization's billing configuration; source-agnostic (limits apply to any billing source). */
|
|
20
106
|
export declare const BillingSettings: z.ZodMiniObject<{
|
|
21
107
|
createdAt: z.ZodMiniString<string>;
|
|
@@ -44,18 +130,6 @@ export declare const EarlyAccessEntry: z.ZodMiniObject<{
|
|
|
44
130
|
}, z.core.$strip>;
|
|
45
131
|
/** Columns of the `early_access` table. */
|
|
46
132
|
export type EarlyAccessEntry = z.output<typeof EarlyAccessEntry>;
|
|
47
|
-
/** One billing-source type enabled for an organization. */
|
|
48
|
-
export declare const EnabledBillingSource: z.ZodMiniObject<{
|
|
49
|
-
createdAt: z.ZodMiniString<string>;
|
|
50
|
-
createdBy: z.ZodMiniString<string>;
|
|
51
|
-
orgId: z.ZodMiniString<string>;
|
|
52
|
-
source: z.ZodMiniEnum<{
|
|
53
|
-
stripe: "stripe";
|
|
54
|
-
tempo: "tempo";
|
|
55
|
-
}>;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
/** Columns of the `enabled_billing_sources` table. */
|
|
58
|
-
export type EnabledBillingSource = z.output<typeof EnabledBillingSource>;
|
|
59
133
|
/** One curated Earn vault. */
|
|
60
134
|
export declare const EarnVault: z.ZodMiniObject<{
|
|
61
135
|
chainId: z.ZodMiniNumber<number>;
|
|
@@ -79,6 +153,18 @@ export declare const EarnVault: z.ZodMiniObject<{
|
|
|
79
153
|
}, z.core.$strip>;
|
|
80
154
|
/** Columns of the `earn_vaults` table. */
|
|
81
155
|
export type EarnVault = z.output<typeof EarnVault>;
|
|
156
|
+
/** One billing-source type enabled for an organization. */
|
|
157
|
+
export declare const EnabledBillingSource: z.ZodMiniObject<{
|
|
158
|
+
createdAt: z.ZodMiniString<string>;
|
|
159
|
+
createdBy: z.ZodMiniString<string>;
|
|
160
|
+
orgId: z.ZodMiniString<string>;
|
|
161
|
+
source: z.ZodMiniEnum<{
|
|
162
|
+
stripe: "stripe";
|
|
163
|
+
tempo: "tempo";
|
|
164
|
+
}>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
/** Columns of the `enabled_billing_sources` table. */
|
|
167
|
+
export type EnabledBillingSource = z.output<typeof EnabledBillingSource>;
|
|
82
168
|
/** A pending, expiring offer of organization membership. */
|
|
83
169
|
export declare const Invitation: z.ZodMiniObject<{
|
|
84
170
|
acceptedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
@@ -157,6 +243,17 @@ export declare const Organization: z.ZodMiniObject<{
|
|
|
157
243
|
}, z.core.$strip>;
|
|
158
244
|
/** Columns of the `organizations` table. */
|
|
159
245
|
export type Organization = z.output<typeof Organization>;
|
|
246
|
+
/** An organization Routes subsidy policy. */
|
|
247
|
+
export declare const RoutesSubsidy: z.ZodMiniObject<{
|
|
248
|
+
createdAt: z.ZodMiniString<string>;
|
|
249
|
+
enabled: z.ZodMiniBoolean<boolean>;
|
|
250
|
+
frequency: z.ZodMiniLiteral<"tx">;
|
|
251
|
+
maxAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
252
|
+
orgId: z.ZodMiniString<string>;
|
|
253
|
+
updatedAt: z.ZodMiniString<string>;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
/** Columns of the `routes_subsidies` table. */
|
|
256
|
+
export type RoutesSubsidy = z.output<typeof RoutesSubsidy>;
|
|
160
257
|
/** A project: an app or integration within an organization. */
|
|
161
258
|
export declare const Project: z.ZodMiniObject<{
|
|
162
259
|
createdAt: z.ZodMiniString<string>;
|
|
@@ -170,36 +267,6 @@ export declare const Project: z.ZodMiniObject<{
|
|
|
170
267
|
}, z.core.$strip>;
|
|
171
268
|
/** Columns of the `projects` table. */
|
|
172
269
|
export type Project = z.output<typeof Project>;
|
|
173
|
-
/** A transaction sponsored by the managed fee payer — the billable unit of fee payer spend. */
|
|
174
|
-
export declare const SponsoredTransaction: z.ZodMiniObject<{
|
|
175
|
-
apiKeyId: z.ZodMiniString<string>;
|
|
176
|
-
billable: z.ZodMiniBoolean<boolean>;
|
|
177
|
-
chainId: z.ZodMiniNumber<number>;
|
|
178
|
-
createdAt: z.ZodMiniString<string>;
|
|
179
|
-
currency: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
180
|
-
environment: z.ZodMiniEnum<{
|
|
181
|
-
production: "production";
|
|
182
|
-
sandbox: "sandbox";
|
|
183
|
-
}>;
|
|
184
|
-
feeAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
185
|
-
feeMax: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
186
|
-
feeToken: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
187
|
-
finalizedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
188
|
-
id: z.ZodMiniString<string>;
|
|
189
|
-
meterReportedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
190
|
-
orgId: z.ZodMiniString<string>;
|
|
191
|
-
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
192
|
-
signPayload: z.ZodMiniString<string>;
|
|
193
|
-
status: z.ZodMiniEnum<{
|
|
194
|
-
failed: "failed";
|
|
195
|
-
finalized: "finalized";
|
|
196
|
-
pending: "pending";
|
|
197
|
-
}>;
|
|
198
|
-
transaction: z.ZodMiniString<string>;
|
|
199
|
-
transactionHash: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
200
|
-
}, z.core.$strip>;
|
|
201
|
-
/** Columns of the `sponsored_transactions` table. */
|
|
202
|
-
export type SponsoredTransaction = z.output<typeof SponsoredTransaction>;
|
|
203
270
|
/** A per-hour request-count watermark: the running total already reported to the meter. */
|
|
204
271
|
export declare const RequestUsageBucket: z.ZodMiniObject<{
|
|
205
272
|
bucketStart: z.ZodMiniString<string>;
|
|
@@ -237,6 +304,452 @@ export declare const RequestUsageMeterEvent: z.ZodMiniObject<{
|
|
|
237
304
|
}, z.core.$strip>;
|
|
238
305
|
/** Columns of the `request_usage_meter_events` table. */
|
|
239
306
|
export type RequestUsageMeterEvent = z.output<typeof RequestUsageMeterEvent>;
|
|
307
|
+
/** One reward campaign bound to a verified Earn vault. */
|
|
308
|
+
export declare const RewardCampaign: z.ZodMiniObject<{
|
|
309
|
+
assetAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
310
|
+
assetDecimals: z.ZodMiniNumber<number>;
|
|
311
|
+
chainId: z.ZodMiniNumber<number>;
|
|
312
|
+
config: z.ZodMiniCustom<{
|
|
313
|
+
boostRewards?: {
|
|
314
|
+
enabled?: boolean | undefined;
|
|
315
|
+
endTimestamp: number;
|
|
316
|
+
excludedAddresses: `0x${string}`[];
|
|
317
|
+
funding: {
|
|
318
|
+
wallet: `0x${string}`;
|
|
319
|
+
};
|
|
320
|
+
intervalSeconds: number;
|
|
321
|
+
payoutSchedule?: {
|
|
322
|
+
intervalSeconds: number;
|
|
323
|
+
startTimestamp: number;
|
|
324
|
+
} | undefined;
|
|
325
|
+
perUserPrincipalCapAssets: string;
|
|
326
|
+
startTimestamp: number;
|
|
327
|
+
targetAnnualRateBps: number;
|
|
328
|
+
totalPrincipalCapAssets: string;
|
|
329
|
+
treasury: `0x${string}`;
|
|
330
|
+
} | undefined;
|
|
331
|
+
targetYield?: {
|
|
332
|
+
annualRate: {
|
|
333
|
+
bps: number;
|
|
334
|
+
} | {
|
|
335
|
+
maxBps: number;
|
|
336
|
+
minBps: number;
|
|
337
|
+
morphoVault: `0x${string}`;
|
|
338
|
+
staleAfterSeconds: number;
|
|
339
|
+
};
|
|
340
|
+
endTimestamp: number;
|
|
341
|
+
funding: ({
|
|
342
|
+
upToAnnualRate: {
|
|
343
|
+
bps: number;
|
|
344
|
+
};
|
|
345
|
+
wallet: `0x${string}`;
|
|
346
|
+
} | {
|
|
347
|
+
remainder: true;
|
|
348
|
+
wallet: `0x${string}`;
|
|
349
|
+
})[];
|
|
350
|
+
intervalSeconds: number;
|
|
351
|
+
startTimestamp: number;
|
|
352
|
+
} | undefined;
|
|
353
|
+
}, {
|
|
354
|
+
boostRewards?: {
|
|
355
|
+
enabled?: boolean | undefined;
|
|
356
|
+
endTimestamp: number;
|
|
357
|
+
excludedAddresses: `0x${string}`[];
|
|
358
|
+
funding: {
|
|
359
|
+
wallet: `0x${string}`;
|
|
360
|
+
};
|
|
361
|
+
intervalSeconds: number;
|
|
362
|
+
payoutSchedule?: {
|
|
363
|
+
intervalSeconds: number;
|
|
364
|
+
startTimestamp: number;
|
|
365
|
+
} | undefined;
|
|
366
|
+
perUserPrincipalCapAssets: string;
|
|
367
|
+
startTimestamp: number;
|
|
368
|
+
targetAnnualRateBps: number;
|
|
369
|
+
totalPrincipalCapAssets: string;
|
|
370
|
+
treasury: `0x${string}`;
|
|
371
|
+
} | undefined;
|
|
372
|
+
targetYield?: {
|
|
373
|
+
annualRate: {
|
|
374
|
+
bps: number;
|
|
375
|
+
} | {
|
|
376
|
+
maxBps: number;
|
|
377
|
+
minBps: number;
|
|
378
|
+
morphoVault: `0x${string}`;
|
|
379
|
+
staleAfterSeconds: number;
|
|
380
|
+
};
|
|
381
|
+
endTimestamp: number;
|
|
382
|
+
funding: ({
|
|
383
|
+
upToAnnualRate: {
|
|
384
|
+
bps: number;
|
|
385
|
+
};
|
|
386
|
+
wallet: `0x${string}`;
|
|
387
|
+
} | {
|
|
388
|
+
remainder: true;
|
|
389
|
+
wallet: `0x${string}`;
|
|
390
|
+
})[];
|
|
391
|
+
intervalSeconds: number;
|
|
392
|
+
startTimestamp: number;
|
|
393
|
+
} | undefined;
|
|
394
|
+
}>;
|
|
395
|
+
controllerAddress: z.ZodMiniNullable<z.ZodMiniCustom<`0x${string}`, `0x${string}`>>;
|
|
396
|
+
createdAt: z.ZodMiniString<string>;
|
|
397
|
+
deliveredThrough: z.ZodMiniString<string>;
|
|
398
|
+
distributorAddress: z.ZodMiniNullable<z.ZodMiniCustom<`0x${string}`, `0x${string}`>>;
|
|
399
|
+
earnShareAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
400
|
+
earnShareDecimals: z.ZodMiniNumber<number>;
|
|
401
|
+
eventCursor: z.ZodMiniNullable<z.ZodMiniCustom<Campaigns.EventCursor, Campaigns.EventCursor>>;
|
|
402
|
+
paused: z.ZodMiniBoolean<boolean>;
|
|
403
|
+
pendingConfig: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
404
|
+
boostRewards?: {
|
|
405
|
+
enabled?: boolean | undefined;
|
|
406
|
+
endTimestamp: number;
|
|
407
|
+
excludedAddresses: `0x${string}`[];
|
|
408
|
+
funding: {
|
|
409
|
+
wallet: `0x${string}`;
|
|
410
|
+
};
|
|
411
|
+
intervalSeconds: number;
|
|
412
|
+
payoutSchedule?: {
|
|
413
|
+
intervalSeconds: number;
|
|
414
|
+
startTimestamp: number;
|
|
415
|
+
} | undefined;
|
|
416
|
+
perUserPrincipalCapAssets: string;
|
|
417
|
+
startTimestamp: number;
|
|
418
|
+
targetAnnualRateBps: number;
|
|
419
|
+
totalPrincipalCapAssets: string;
|
|
420
|
+
treasury: `0x${string}`;
|
|
421
|
+
} | undefined;
|
|
422
|
+
targetYield?: {
|
|
423
|
+
annualRate: {
|
|
424
|
+
bps: number;
|
|
425
|
+
} | {
|
|
426
|
+
maxBps: number;
|
|
427
|
+
minBps: number;
|
|
428
|
+
morphoVault: `0x${string}`;
|
|
429
|
+
staleAfterSeconds: number;
|
|
430
|
+
};
|
|
431
|
+
endTimestamp: number;
|
|
432
|
+
funding: ({
|
|
433
|
+
upToAnnualRate: {
|
|
434
|
+
bps: number;
|
|
435
|
+
};
|
|
436
|
+
wallet: `0x${string}`;
|
|
437
|
+
} | {
|
|
438
|
+
remainder: true;
|
|
439
|
+
wallet: `0x${string}`;
|
|
440
|
+
})[];
|
|
441
|
+
intervalSeconds: number;
|
|
442
|
+
startTimestamp: number;
|
|
443
|
+
} | undefined;
|
|
444
|
+
}, {
|
|
445
|
+
boostRewards?: {
|
|
446
|
+
enabled?: boolean | undefined;
|
|
447
|
+
endTimestamp: number;
|
|
448
|
+
excludedAddresses: `0x${string}`[];
|
|
449
|
+
funding: {
|
|
450
|
+
wallet: `0x${string}`;
|
|
451
|
+
};
|
|
452
|
+
intervalSeconds: number;
|
|
453
|
+
payoutSchedule?: {
|
|
454
|
+
intervalSeconds: number;
|
|
455
|
+
startTimestamp: number;
|
|
456
|
+
} | undefined;
|
|
457
|
+
perUserPrincipalCapAssets: string;
|
|
458
|
+
startTimestamp: number;
|
|
459
|
+
targetAnnualRateBps: number;
|
|
460
|
+
totalPrincipalCapAssets: string;
|
|
461
|
+
treasury: `0x${string}`;
|
|
462
|
+
} | undefined;
|
|
463
|
+
targetYield?: {
|
|
464
|
+
annualRate: {
|
|
465
|
+
bps: number;
|
|
466
|
+
} | {
|
|
467
|
+
maxBps: number;
|
|
468
|
+
minBps: number;
|
|
469
|
+
morphoVault: `0x${string}`;
|
|
470
|
+
staleAfterSeconds: number;
|
|
471
|
+
};
|
|
472
|
+
endTimestamp: number;
|
|
473
|
+
funding: ({
|
|
474
|
+
upToAnnualRate: {
|
|
475
|
+
bps: number;
|
|
476
|
+
};
|
|
477
|
+
wallet: `0x${string}`;
|
|
478
|
+
} | {
|
|
479
|
+
remainder: true;
|
|
480
|
+
wallet: `0x${string}`;
|
|
481
|
+
})[];
|
|
482
|
+
intervalSeconds: number;
|
|
483
|
+
startTimestamp: number;
|
|
484
|
+
} | undefined;
|
|
485
|
+
}>>;
|
|
486
|
+
pendingEffectiveAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
487
|
+
provisioningError: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
488
|
+
signerAddress: z.ZodMiniNullable<z.ZodMiniCustom<`0x${string}`, `0x${string}`>>;
|
|
489
|
+
updatedAt: z.ZodMiniString<string>;
|
|
490
|
+
vaultAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
/** Columns of the `reward_campaigns` table. */
|
|
493
|
+
export type RewardCampaign = z.output<typeof RewardCampaign>;
|
|
494
|
+
/** One verified reward distributor retained for historical payout recognition. */
|
|
495
|
+
export declare const RewardCampaignDistributor: z.ZodMiniObject<{
|
|
496
|
+
chainId: z.ZodMiniNumber<number>;
|
|
497
|
+
createdAt: z.ZodMiniString<string>;
|
|
498
|
+
distributorAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
499
|
+
vaultAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
500
|
+
}, z.core.$strip>;
|
|
501
|
+
/** Columns of the `reward_campaign_distributors` table. */
|
|
502
|
+
export type RewardCampaignDistributor = z.output<typeof RewardCampaignDistributor>;
|
|
503
|
+
/** One current delivered recipient projection. */
|
|
504
|
+
export declare const RewardAccount: z.ZodMiniObject<{
|
|
505
|
+
accrualRemainder: z.ZodMiniString<string>;
|
|
506
|
+
allocatedPrincipalAssets: z.ZodMiniString<string>;
|
|
507
|
+
chainId: z.ZodMiniNumber<number>;
|
|
508
|
+
cumulativeEntitlement: z.ZodMiniString<string>;
|
|
509
|
+
cumulativePaid: z.ZodMiniString<string>;
|
|
510
|
+
deferral: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
511
|
+
eligibilityRegisteredAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
512
|
+
lots: z.ZodMiniArray<z.ZodMiniCustom<Campaigns.DepositLot, Campaigns.DepositLot>>;
|
|
513
|
+
pendingRewardAssets: z.ZodMiniString<string>;
|
|
514
|
+
publicEarnShares: z.ZodMiniString<string>;
|
|
515
|
+
qualifiedEarnShares: z.ZodMiniString<string>;
|
|
516
|
+
recipient: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
517
|
+
registrationOrder: z.ZodMiniString<string>;
|
|
518
|
+
updatedAt: z.ZodMiniString<string>;
|
|
519
|
+
vaultAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
520
|
+
}, z.core.$strip>;
|
|
521
|
+
/** Columns of the `reward_accounts` table. */
|
|
522
|
+
export type RewardAccount = z.output<typeof RewardAccount>;
|
|
523
|
+
/** One run-once manual reward credit added to a recipient's pending rewards. */
|
|
524
|
+
export declare const RewardCredit: z.ZodMiniObject<{
|
|
525
|
+
assets: z.ZodMiniString<string>;
|
|
526
|
+
chainId: z.ZodMiniNumber<number>;
|
|
527
|
+
createdAt: z.ZodMiniString<string>;
|
|
528
|
+
recipient: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
529
|
+
reference: z.ZodMiniString<string>;
|
|
530
|
+
vaultAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
/** Columns of the `reward_credits` table. */
|
|
533
|
+
export type RewardCredit = z.output<typeof RewardCredit>;
|
|
534
|
+
/** One durable reward execution. */
|
|
535
|
+
export declare const RewardRun: z.ZodMiniObject<{
|
|
536
|
+
chainId: z.ZodMiniNumber<number>;
|
|
537
|
+
config: z.ZodMiniCustom<{
|
|
538
|
+
boostRewards?: {
|
|
539
|
+
enabled?: boolean | undefined;
|
|
540
|
+
endTimestamp: number;
|
|
541
|
+
excludedAddresses: `0x${string}`[];
|
|
542
|
+
funding: {
|
|
543
|
+
wallet: `0x${string}`;
|
|
544
|
+
};
|
|
545
|
+
intervalSeconds: number;
|
|
546
|
+
payoutSchedule?: {
|
|
547
|
+
intervalSeconds: number;
|
|
548
|
+
startTimestamp: number;
|
|
549
|
+
} | undefined;
|
|
550
|
+
perUserPrincipalCapAssets: string;
|
|
551
|
+
startTimestamp: number;
|
|
552
|
+
targetAnnualRateBps: number;
|
|
553
|
+
totalPrincipalCapAssets: string;
|
|
554
|
+
treasury: `0x${string}`;
|
|
555
|
+
} | undefined;
|
|
556
|
+
targetYield?: {
|
|
557
|
+
annualRate: {
|
|
558
|
+
bps: number;
|
|
559
|
+
} | {
|
|
560
|
+
maxBps: number;
|
|
561
|
+
minBps: number;
|
|
562
|
+
morphoVault: `0x${string}`;
|
|
563
|
+
staleAfterSeconds: number;
|
|
564
|
+
};
|
|
565
|
+
endTimestamp: number;
|
|
566
|
+
funding: ({
|
|
567
|
+
upToAnnualRate: {
|
|
568
|
+
bps: number;
|
|
569
|
+
};
|
|
570
|
+
wallet: `0x${string}`;
|
|
571
|
+
} | {
|
|
572
|
+
remainder: true;
|
|
573
|
+
wallet: `0x${string}`;
|
|
574
|
+
})[];
|
|
575
|
+
intervalSeconds: number;
|
|
576
|
+
startTimestamp: number;
|
|
577
|
+
} | undefined;
|
|
578
|
+
}, {
|
|
579
|
+
boostRewards?: {
|
|
580
|
+
enabled?: boolean | undefined;
|
|
581
|
+
endTimestamp: number;
|
|
582
|
+
excludedAddresses: `0x${string}`[];
|
|
583
|
+
funding: {
|
|
584
|
+
wallet: `0x${string}`;
|
|
585
|
+
};
|
|
586
|
+
intervalSeconds: number;
|
|
587
|
+
payoutSchedule?: {
|
|
588
|
+
intervalSeconds: number;
|
|
589
|
+
startTimestamp: number;
|
|
590
|
+
} | undefined;
|
|
591
|
+
perUserPrincipalCapAssets: string;
|
|
592
|
+
startTimestamp: number;
|
|
593
|
+
targetAnnualRateBps: number;
|
|
594
|
+
totalPrincipalCapAssets: string;
|
|
595
|
+
treasury: `0x${string}`;
|
|
596
|
+
} | undefined;
|
|
597
|
+
targetYield?: {
|
|
598
|
+
annualRate: {
|
|
599
|
+
bps: number;
|
|
600
|
+
} | {
|
|
601
|
+
maxBps: number;
|
|
602
|
+
minBps: number;
|
|
603
|
+
morphoVault: `0x${string}`;
|
|
604
|
+
staleAfterSeconds: number;
|
|
605
|
+
};
|
|
606
|
+
endTimestamp: number;
|
|
607
|
+
funding: ({
|
|
608
|
+
upToAnnualRate: {
|
|
609
|
+
bps: number;
|
|
610
|
+
};
|
|
611
|
+
wallet: `0x${string}`;
|
|
612
|
+
} | {
|
|
613
|
+
remainder: true;
|
|
614
|
+
wallet: `0x${string}`;
|
|
615
|
+
})[];
|
|
616
|
+
intervalSeconds: number;
|
|
617
|
+
startTimestamp: number;
|
|
618
|
+
} | undefined;
|
|
619
|
+
}>;
|
|
620
|
+
createdAt: z.ZodMiniString<string>;
|
|
621
|
+
endsAt: z.ZodMiniString<string>;
|
|
622
|
+
error: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
623
|
+
evidence: z.ZodMiniNullable<z.ZodMiniCustom<Campaigns.RunEvidence, Campaigns.RunEvidence>>;
|
|
624
|
+
fence: z.ZodMiniString<string>;
|
|
625
|
+
fundedAssets: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
626
|
+
id: z.ZodMiniString<string>;
|
|
627
|
+
leaseExpiresAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
628
|
+
liability: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
629
|
+
mintedEarnShares: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
630
|
+
phase: z.ZodMiniEnum<{
|
|
631
|
+
calculating: "calculating";
|
|
632
|
+
delivered: "delivered";
|
|
633
|
+
failed: "failed";
|
|
634
|
+
indexing: "indexing";
|
|
635
|
+
paying: "paying";
|
|
636
|
+
publishing: "publishing";
|
|
637
|
+
settling: "settling";
|
|
638
|
+
statement: "statement";
|
|
639
|
+
targetYield: "targetYield";
|
|
640
|
+
}>;
|
|
641
|
+
root: z.ZodMiniNullable<z.ZodMiniCustom<`0x${string}`, `0x${string}`>>;
|
|
642
|
+
rootVersion: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
643
|
+
startsAfter: z.ZodMiniString<string>;
|
|
644
|
+
statement: z.ZodMiniNullable<z.ZodMiniCustom<Campaigns.Statement, Campaigns.Statement>>;
|
|
645
|
+
statementHash: z.ZodMiniNullable<z.ZodMiniCustom<`0x${string}`, `0x${string}`>>;
|
|
646
|
+
updatedAt: z.ZodMiniString<string>;
|
|
647
|
+
vaultAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
648
|
+
}, z.core.$strip>;
|
|
649
|
+
/** Columns of the `reward_runs` table. */
|
|
650
|
+
export type RewardRun = z.output<typeof RewardRun>;
|
|
651
|
+
/** One append-only signed reward transaction attempt. */
|
|
652
|
+
export declare const RewardTransactionAttempt: z.ZodMiniObject<{
|
|
653
|
+
chainId: z.ZodMiniNumber<number>;
|
|
654
|
+
confirmedBlockHash: z.ZodMiniNullable<z.ZodMiniCustom<`0x${string}`, `0x${string}`>>;
|
|
655
|
+
createdAt: z.ZodMiniString<string>;
|
|
656
|
+
expiresAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
657
|
+
id: z.ZodMiniString<string>;
|
|
658
|
+
intent: z.ZodMiniCustom<Campaigns.TransactionIntent, Campaigns.TransactionIntent>;
|
|
659
|
+
intentId: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
660
|
+
nonce: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
661
|
+
receipt: z.ZodMiniNullable<z.ZodMiniCustom<Campaigns.TransactionReceipt, Campaigns.TransactionReceipt>>;
|
|
662
|
+
replacementOf: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
663
|
+
runId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
664
|
+
signedBytes: z.ZodMiniNullable<z.ZodMiniCustom<`0x${string}`, `0x${string}`>>;
|
|
665
|
+
signer: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
666
|
+
state: z.ZodMiniEnum<{
|
|
667
|
+
broadcast: "broadcast";
|
|
668
|
+
confirmed: "confirmed";
|
|
669
|
+
created: "created";
|
|
670
|
+
expired: "expired";
|
|
671
|
+
ineffective: "ineffective";
|
|
672
|
+
reverted: "reverted";
|
|
673
|
+
signed: "signed";
|
|
674
|
+
}>;
|
|
675
|
+
transactionHash: z.ZodMiniNullable<z.ZodMiniCustom<`0x${string}`, `0x${string}`>>;
|
|
676
|
+
updatedAt: z.ZodMiniString<string>;
|
|
677
|
+
vaultAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
678
|
+
}, z.core.$strip>;
|
|
679
|
+
/** Columns of the `reward_transaction_attempts` table. */
|
|
680
|
+
export type RewardTransactionAttempt = z.output<typeof RewardTransactionAttempt>;
|
|
681
|
+
/** One wallet and Earn vault association eligible for rewards. */
|
|
682
|
+
export declare const RewardEligibilityAssociation: z.ZodMiniObject<{
|
|
683
|
+
chainId: z.ZodMiniNumber<number>;
|
|
684
|
+
firstRegisteredAt: z.ZodMiniString<string>;
|
|
685
|
+
latestRegisteredAt: z.ZodMiniString<string>;
|
|
686
|
+
registrationOrder: z.ZodMiniString<string>;
|
|
687
|
+
transactionHash: z.ZodMiniOptional<z.ZodMiniCustom<`0x${string}`, `0x${string}`>>;
|
|
688
|
+
vaultAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
689
|
+
walletAddress: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
690
|
+
}, z.core.$strip>;
|
|
691
|
+
/** Columns of the `reward_eligibility_associations` table. */
|
|
692
|
+
export type RewardEligibilityAssociation = z.output<typeof RewardEligibilityAssociation>;
|
|
693
|
+
/** A transaction sponsored by the managed fee payer — the billable unit of fee payer spend. */
|
|
694
|
+
export declare const SponsoredTransaction: z.ZodMiniObject<{
|
|
695
|
+
apiKeyId: z.ZodMiniString<string>;
|
|
696
|
+
sponsorshipAttributionId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
697
|
+
billable: z.ZodMiniBoolean<boolean>;
|
|
698
|
+
chainId: z.ZodMiniNumber<number>;
|
|
699
|
+
createdAt: z.ZodMiniString<string>;
|
|
700
|
+
currency: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
701
|
+
environment: z.ZodMiniEnum<{
|
|
702
|
+
production: "production";
|
|
703
|
+
sandbox: "sandbox";
|
|
704
|
+
}>;
|
|
705
|
+
feeAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
706
|
+
feeMax: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
707
|
+
feeToken: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
708
|
+
finalizationAttemptedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
709
|
+
finalizedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
710
|
+
id: z.ZodMiniString<string>;
|
|
711
|
+
meterReportedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
712
|
+
orgId: z.ZodMiniString<string>;
|
|
713
|
+
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
714
|
+
signPayload: z.ZodMiniString<string>;
|
|
715
|
+
status: z.ZodMiniEnum<{
|
|
716
|
+
failed: "failed";
|
|
717
|
+
finalized: "finalized";
|
|
718
|
+
pending: "pending";
|
|
719
|
+
}>;
|
|
720
|
+
transaction: z.ZodMiniString<string>;
|
|
721
|
+
transactionHash: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
722
|
+
}, z.core.$strip>;
|
|
723
|
+
/** Columns of the `sponsored_transactions` table. */
|
|
724
|
+
export type SponsoredTransaction = z.output<typeof SponsoredTransaction>;
|
|
725
|
+
/** Durable position for failed sponsorship reconciliation. */
|
|
726
|
+
export declare const SponsorshipReconciliationCursor: z.ZodMiniObject<{
|
|
727
|
+
blockNumber: z.ZodMiniString<string>;
|
|
728
|
+
chainId: z.ZodMiniNumber<number>;
|
|
729
|
+
complete: z.ZodMiniBoolean<boolean>;
|
|
730
|
+
feePayer: z.ZodMiniCustom<`0x${string}`, `0x${string}`>;
|
|
731
|
+
retryCount: z.ZodMiniNumber<number>;
|
|
732
|
+
retryKey: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
733
|
+
revision: z.ZodMiniString<string>;
|
|
734
|
+
transactionIndex: z.ZodMiniNumber<number>;
|
|
735
|
+
updatedAt: z.ZodMiniString<string>;
|
|
736
|
+
}, z.core.$strip>;
|
|
737
|
+
/** Columns of the `sponsorship_reconciliation_cursors` table. */
|
|
738
|
+
export type SponsorshipReconciliationCursor = z.output<typeof SponsorshipReconciliationCursor>;
|
|
739
|
+
/** A canonical sponsorship attribution resolved from an external id or Tempo Project. */
|
|
740
|
+
export declare const SponsorshipAttribution: z.ZodMiniObject<{
|
|
741
|
+
createdAt: z.ZodMiniString<string>;
|
|
742
|
+
endsAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
743
|
+
externalId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
744
|
+
id: z.ZodMiniString<string>;
|
|
745
|
+
orgId: z.ZodMiniString<string>;
|
|
746
|
+
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
747
|
+
spendLimit: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
748
|
+
startsAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
749
|
+
updatedAt: z.ZodMiniString<string>;
|
|
750
|
+
}, z.core.$strip>;
|
|
751
|
+
/** Columns of the `sponsorship_attributions` table. */
|
|
752
|
+
export type SponsorshipAttribution = z.output<typeof SponsorshipAttribution>;
|
|
240
753
|
/** An organization's Stripe billing source: the customer link and derived status. */
|
|
241
754
|
export declare const StripeCustomer: z.ZodMiniObject<{
|
|
242
755
|
createdAt: z.ZodMiniString<string>;
|
|
@@ -261,21 +774,24 @@ export declare const User: z.ZodMiniObject<{
|
|
|
261
774
|
address: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
262
775
|
createdAt: z.ZodMiniString<string>;
|
|
263
776
|
email: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
777
|
+
emailVerified: z.ZodMiniBoolean<boolean>;
|
|
264
778
|
id: z.ZodMiniString<string>;
|
|
779
|
+
image: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
780
|
+
name: z.ZodMiniString<string>;
|
|
265
781
|
updatedAt: z.ZodMiniString<string>;
|
|
266
782
|
}, z.core.$strip>;
|
|
267
783
|
/** Columns of the `users` table. */
|
|
268
784
|
export type User = z.output<typeof User>;
|
|
269
|
-
/** Metadata for the current
|
|
270
|
-
export declare const
|
|
785
|
+
/** Metadata for the current route catalog snapshot. */
|
|
786
|
+
export declare const RoutesCatalog: z.ZodMiniObject<{
|
|
271
787
|
id: z.ZodMiniString<string>;
|
|
272
788
|
updatedAt: z.ZodMiniString<string>;
|
|
273
789
|
version: z.ZodMiniString<string>;
|
|
274
790
|
}, z.core.$strip>;
|
|
275
|
-
/** Columns of the `
|
|
276
|
-
export type
|
|
277
|
-
/** One chain available to the
|
|
278
|
-
export declare const
|
|
791
|
+
/** Columns of the `routes_catalogs` table. */
|
|
792
|
+
export type RoutesCatalog = z.output<typeof RoutesCatalog>;
|
|
793
|
+
/** One chain available to the route catalog. */
|
|
794
|
+
export declare const RoutesChain: z.ZodMiniObject<{
|
|
279
795
|
aliases: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
280
796
|
id: z.ZodMiniString<string>;
|
|
281
797
|
name: z.ZodMiniString<string>;
|
|
@@ -283,19 +799,19 @@ export declare const FundingChain: z.ZodMiniObject<{
|
|
|
283
799
|
rpcUrls: z.ZodMiniDefault<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniURL>>>;
|
|
284
800
|
slug: z.ZodMiniString<string>;
|
|
285
801
|
}, z.core.$strip>;
|
|
286
|
-
/** Columns of the `
|
|
287
|
-
export type
|
|
288
|
-
/** One token available to the
|
|
289
|
-
export declare const
|
|
802
|
+
/** Columns of the `routes_chains` table. */
|
|
803
|
+
export type RoutesChain = z.output<typeof RoutesChain>;
|
|
804
|
+
/** One token available to the route catalog. */
|
|
805
|
+
export declare const RoutesToken: z.ZodMiniObject<{
|
|
290
806
|
currency: z.ZodMiniString<string>;
|
|
291
807
|
id: z.ZodMiniString<string>;
|
|
292
808
|
name: z.ZodMiniString<string>;
|
|
293
809
|
symbol: z.ZodMiniString<string>;
|
|
294
810
|
}, z.core.$strip>;
|
|
295
|
-
/** Columns of the `
|
|
296
|
-
export type
|
|
297
|
-
/** Chain-specific metadata for one
|
|
298
|
-
export declare const
|
|
811
|
+
/** Columns of the `routes_tokens` table. */
|
|
812
|
+
export type RoutesToken = z.output<typeof RoutesToken>;
|
|
813
|
+
/** Chain-specific metadata for one route token. */
|
|
814
|
+
export declare const RoutesChainToken: z.ZodMiniObject<{
|
|
299
815
|
address: z.ZodMiniString<string>;
|
|
300
816
|
chainId: z.ZodMiniString<string>;
|
|
301
817
|
decimals: z.ZodMiniNumber<number>;
|
|
@@ -303,10 +819,10 @@ export declare const FundingChainToken: z.ZodMiniObject<{
|
|
|
303
819
|
standard: z.ZodMiniString<string>;
|
|
304
820
|
tokenId: z.ZodMiniString<string>;
|
|
305
821
|
}, z.core.$strip>;
|
|
306
|
-
/** Columns of the `
|
|
307
|
-
export type
|
|
308
|
-
/** One source-to-destination route supported by a
|
|
309
|
-
export declare const
|
|
822
|
+
/** Columns of the `routes_chain_tokens` table. */
|
|
823
|
+
export type RoutesChainToken = z.output<typeof RoutesChainToken>;
|
|
824
|
+
/** One source-to-destination route supported by a route provider. */
|
|
825
|
+
export declare const RoutesRoute: z.ZodMiniObject<{
|
|
310
826
|
capabilities: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
311
827
|
depositAddress?: true | undefined;
|
|
312
828
|
transfer?: {
|
|
@@ -325,16 +841,16 @@ export declare const FundingRoute: z.ZodMiniObject<{
|
|
|
325
841
|
sourceChainId: z.ZodMiniString<string>;
|
|
326
842
|
sourceTokenId: z.ZodMiniString<string>;
|
|
327
843
|
}, z.core.$strip>;
|
|
328
|
-
/** Columns of the `
|
|
329
|
-
export type
|
|
844
|
+
/** Columns of the `routes_routes` table. */
|
|
845
|
+
export type RoutesRoute = z.output<typeof RoutesRoute>;
|
|
330
846
|
/**
|
|
331
|
-
* A reusable
|
|
847
|
+
* A reusable route deposit address. Public route fields live in `snapshot`;
|
|
332
848
|
* provider routing and correlation remain private.
|
|
333
849
|
*/
|
|
334
|
-
export declare const
|
|
850
|
+
export declare const RoutesDepositAddress: z.ZodMiniObject<{
|
|
335
851
|
address: z.ZodMiniString<string>;
|
|
336
|
-
apiKeyId: z.ZodMiniString<string>;
|
|
337
852
|
createdAt: z.ZodMiniString<string>;
|
|
853
|
+
creatorUserId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
338
854
|
deliveryStrategy: z.ZodMiniCustom<"provider" | "tempo", "provider" | "tempo">;
|
|
339
855
|
destinationTokenKey: z.ZodMiniString<string>;
|
|
340
856
|
environment: z.ZodMiniEnum<{
|
|
@@ -370,7 +886,7 @@ export declare const FundingDepositAddress: z.ZodMiniObject<{
|
|
|
370
886
|
}>;
|
|
371
887
|
providerId: z.ZodMiniString<string>;
|
|
372
888
|
providerRequestIds: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
373
|
-
providerState: z.ZodMiniNullable<z.ZodMiniCustom<
|
|
889
|
+
providerState: z.ZodMiniNullable<z.ZodMiniCustom<routes_DepositAddress.ProviderState, routes_DepositAddress.ProviderState>>;
|
|
374
890
|
recipient: z.ZodMiniString<string>;
|
|
375
891
|
refundAddress: z.ZodMiniString<string>;
|
|
376
892
|
snapshot: z.ZodMiniCustom<{
|
|
@@ -458,27 +974,28 @@ export declare const FundingDepositAddress: z.ZodMiniObject<{
|
|
|
458
974
|
}>;
|
|
459
975
|
sourceChainId: z.ZodMiniString<string>;
|
|
460
976
|
sourceTokenKey: z.ZodMiniString<string>;
|
|
461
|
-
status: z.ZodMiniCustom<"action-required" | "active", "action-required" | "active">;
|
|
977
|
+
status: z.ZodMiniCustom<"action-required" | "active" | "deactivated", "action-required" | "active" | "deactivated">;
|
|
978
|
+
statusUpdatedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
462
979
|
subsidize: z.ZodMiniBoolean<boolean>;
|
|
463
980
|
updatedAt: z.ZodMiniString<string>;
|
|
464
981
|
version: z.ZodMiniNumber<number>;
|
|
465
982
|
}, z.core.$strip>;
|
|
466
|
-
/** Columns of the `
|
|
467
|
-
export type
|
|
983
|
+
/** Columns of the `routes_deposit_addresses` table. */
|
|
984
|
+
export type RoutesDepositAddress = z.output<typeof RoutesDepositAddress>;
|
|
468
985
|
/** First Tempo observations of one provider request through polling and webhooks. */
|
|
469
|
-
export declare const
|
|
986
|
+
export declare const RoutesDepositRequestObservation: z.ZodMiniObject<{
|
|
470
987
|
depositAddressId: z.ZodMiniString<string>;
|
|
471
988
|
pollObservedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
472
989
|
providerRequestId: z.ZodMiniString<string>;
|
|
473
990
|
webhookReceivedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
474
991
|
}, z.core.$strip>;
|
|
475
|
-
/** Columns of the `
|
|
476
|
-
export type
|
|
992
|
+
/** Columns of the `routes_deposit_request_observations` table. */
|
|
993
|
+
export type RoutesDepositRequestObservation = z.output<typeof RoutesDepositRequestObservation>;
|
|
477
994
|
/**
|
|
478
995
|
* One provider-observed deposit. Public route and evidence live in `snapshot`;
|
|
479
996
|
* reconciliation and settlement state is private.
|
|
480
997
|
*/
|
|
481
|
-
export declare const
|
|
998
|
+
export declare const RoutesDeposit: z.ZodMiniObject<{
|
|
482
999
|
createdAt: z.ZodMiniString<string>;
|
|
483
1000
|
depositAddressId: z.ZodMiniString<string>;
|
|
484
1001
|
detectionTrigger: z.ZodMiniNullable<z.ZodMiniCustom<"chain" | "manual" | "poll" | "webhook", "chain" | "manual" | "poll" | "webhook">>;
|
|
@@ -490,6 +1007,7 @@ export declare const FundingDeposit: z.ZodMiniObject<{
|
|
|
490
1007
|
orgId: z.ZodMiniString<string>;
|
|
491
1008
|
pollObservedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
492
1009
|
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1010
|
+
providerDeliveredAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
493
1011
|
providerOutputAmount: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
494
1012
|
baseUnits: string;
|
|
495
1013
|
currency: string;
|
|
@@ -522,10 +1040,47 @@ export declare const FundingDeposit: z.ZodMiniObject<{
|
|
|
522
1040
|
}>;
|
|
523
1041
|
providerRequestId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
524
1042
|
providerRequestIds: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
525
|
-
providerState: z.ZodMiniNullable<z.ZodMiniCustom<
|
|
1043
|
+
providerState: z.ZodMiniNullable<z.ZodMiniCustom<routes_Deposit.PrivateState, routes_Deposit.PrivateState>>;
|
|
1044
|
+
providerSubsidy: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
1045
|
+
amount: {
|
|
1046
|
+
baseUnits: string;
|
|
1047
|
+
currency: string;
|
|
1048
|
+
decimals: number;
|
|
1049
|
+
formatted: string;
|
|
1050
|
+
};
|
|
1051
|
+
provider: string;
|
|
1052
|
+
token: {
|
|
1053
|
+
address: string;
|
|
1054
|
+
currency: string;
|
|
1055
|
+
decimals: number;
|
|
1056
|
+
name: string;
|
|
1057
|
+
standard: string;
|
|
1058
|
+
symbol: string;
|
|
1059
|
+
tokenKey: string;
|
|
1060
|
+
verified: boolean;
|
|
1061
|
+
};
|
|
1062
|
+
}, {
|
|
1063
|
+
amount: {
|
|
1064
|
+
baseUnits: string;
|
|
1065
|
+
currency: string;
|
|
1066
|
+
decimals: number;
|
|
1067
|
+
formatted: string;
|
|
1068
|
+
};
|
|
1069
|
+
provider: string;
|
|
1070
|
+
token: {
|
|
1071
|
+
address: string;
|
|
1072
|
+
currency: string;
|
|
1073
|
+
decimals: number;
|
|
1074
|
+
name: string;
|
|
1075
|
+
standard: string;
|
|
1076
|
+
symbol: string;
|
|
1077
|
+
tokenKey: string;
|
|
1078
|
+
verified: boolean;
|
|
1079
|
+
};
|
|
1080
|
+
}>>;
|
|
526
1081
|
providerTransactionHashes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
527
1082
|
providerTransferIndex: z.ZodMiniNumber<number>;
|
|
528
|
-
retryState: z.ZodMiniNullable<z.ZodMiniCustom<
|
|
1083
|
+
retryState: z.ZodMiniNullable<z.ZodMiniCustom<routes_Deposit.PrivateState, routes_Deposit.PrivateState>>;
|
|
529
1084
|
settlementTransaction: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
530
1085
|
settlementTransactionHash: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
531
1086
|
snapshot: z.ZodMiniCustom<{
|
|
@@ -670,12 +1225,13 @@ export declare const FundingDeposit: z.ZodMiniObject<{
|
|
|
670
1225
|
sourceTransferIndex: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
671
1226
|
status: z.ZodMiniCustom<"action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling", "action-required" | "bridging" | "completed" | "detected" | "refunded" | "refunding" | "settling">;
|
|
672
1227
|
statusReason: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
673
|
-
code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
1228
|
+
code: "billing_past_due" | "billing_required" | "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
674
1229
|
message: string;
|
|
675
1230
|
}, {
|
|
676
|
-
code: "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
1231
|
+
code: "billing_past_due" | "billing_required" | "delivery_failed" | "delivery_liquidity_unavailable" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_not_supported" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
677
1232
|
message: string;
|
|
678
1233
|
}>>;
|
|
1234
|
+
statusUpdatedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
679
1235
|
subsidyAmount: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
680
1236
|
baseUnits: string;
|
|
681
1237
|
currency: string;
|
|
@@ -687,19 +1243,20 @@ export declare const FundingDeposit: z.ZodMiniObject<{
|
|
|
687
1243
|
decimals: number;
|
|
688
1244
|
formatted: string;
|
|
689
1245
|
}>>;
|
|
1246
|
+
subsidyMeterReportedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
690
1247
|
tempoGasPaid: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
691
1248
|
updatedAt: z.ZodMiniString<string>;
|
|
692
1249
|
version: z.ZodMiniNumber<number>;
|
|
693
1250
|
webhookReceivedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
694
1251
|
}, z.core.$strip>;
|
|
695
|
-
/** Columns of the `
|
|
696
|
-
export type
|
|
1252
|
+
/** Columns of the `routes_deposits` table. */
|
|
1253
|
+
export type RoutesDeposit = z.output<typeof RoutesDeposit>;
|
|
697
1254
|
/**
|
|
698
|
-
* A durable
|
|
1255
|
+
* A durable route transfer. Lifecycle state lives in typed columns; the
|
|
699
1256
|
* public quote terms and reconciled fields live in the `snapshot` jsonb and
|
|
700
1257
|
* merge in at serialization (`Transfer.toPublic`).
|
|
701
1258
|
*/
|
|
702
|
-
export declare const
|
|
1259
|
+
export declare const RoutesTransfer: z.ZodMiniObject<{
|
|
703
1260
|
apiKeyId: z.ZodMiniString<string>;
|
|
704
1261
|
createdAt: z.ZodMiniString<string>;
|
|
705
1262
|
environment: z.ZodMiniEnum<{
|
|
@@ -711,8 +1268,9 @@ export declare const FundingTransfer: z.ZodMiniObject<{
|
|
|
711
1268
|
mode: z.ZodMiniCustom<"exactDestination" | "exactSource", "exactDestination" | "exactSource">;
|
|
712
1269
|
orgId: z.ZodMiniString<string>;
|
|
713
1270
|
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1271
|
+
providerDeliveredAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
714
1272
|
providerId: z.ZodMiniString<string>;
|
|
715
|
-
providerState: z.ZodMiniNullable<z.ZodMiniCustom<
|
|
1273
|
+
providerState: z.ZodMiniNullable<z.ZodMiniCustom<routes_Transfer.ProviderState, routes_Transfer.ProviderState>>;
|
|
716
1274
|
quoteExpiresAt: z.ZodMiniString<string>;
|
|
717
1275
|
snapshot: z.ZodMiniCustom<{
|
|
718
1276
|
destinationAmount?: {
|
|
@@ -727,6 +1285,12 @@ export declare const FundingTransfer: z.ZodMiniObject<{
|
|
|
727
1285
|
decimals: number;
|
|
728
1286
|
formatted: string;
|
|
729
1287
|
} | undefined;
|
|
1288
|
+
destinationAmountRequired?: {
|
|
1289
|
+
baseUnits: string;
|
|
1290
|
+
currency: string;
|
|
1291
|
+
decimals: number;
|
|
1292
|
+
formatted: string;
|
|
1293
|
+
} | undefined;
|
|
730
1294
|
destinationChain: {
|
|
731
1295
|
addressFormat: "base58" | "base58check" | "hex";
|
|
732
1296
|
id: string;
|
|
@@ -813,6 +1377,7 @@ export declare const FundingTransfer: z.ZodMiniObject<{
|
|
|
813
1377
|
verified: boolean;
|
|
814
1378
|
};
|
|
815
1379
|
sourceTransactionHashes?: string[] | undefined;
|
|
1380
|
+
subsidize: boolean;
|
|
816
1381
|
}, {
|
|
817
1382
|
destinationAmount?: {
|
|
818
1383
|
baseUnits: string;
|
|
@@ -826,6 +1391,12 @@ export declare const FundingTransfer: z.ZodMiniObject<{
|
|
|
826
1391
|
decimals: number;
|
|
827
1392
|
formatted: string;
|
|
828
1393
|
} | undefined;
|
|
1394
|
+
destinationAmountRequired?: {
|
|
1395
|
+
baseUnits: string;
|
|
1396
|
+
currency: string;
|
|
1397
|
+
decimals: number;
|
|
1398
|
+
formatted: string;
|
|
1399
|
+
} | undefined;
|
|
829
1400
|
destinationChain: {
|
|
830
1401
|
addressFormat: "base58" | "base58check" | "hex";
|
|
831
1402
|
id: string;
|
|
@@ -912,22 +1483,52 @@ export declare const FundingTransfer: z.ZodMiniObject<{
|
|
|
912
1483
|
verified: boolean;
|
|
913
1484
|
};
|
|
914
1485
|
sourceTransactionHashes?: string[] | undefined;
|
|
1486
|
+
subsidize: boolean;
|
|
915
1487
|
}>;
|
|
916
1488
|
status: z.ZodMiniCustom<"action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding", "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding">;
|
|
917
1489
|
statusReason: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
918
|
-
code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
|
|
1490
|
+
code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
919
1491
|
message: string;
|
|
920
1492
|
}, {
|
|
921
|
-
code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
|
|
1493
|
+
code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
922
1494
|
message: string;
|
|
923
1495
|
}>>;
|
|
1496
|
+
statusUpdatedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1497
|
+
subsidyAccount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1498
|
+
subsidyAmount: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
1499
|
+
baseUnits: string;
|
|
1500
|
+
currency: string;
|
|
1501
|
+
decimals: number;
|
|
1502
|
+
formatted: string;
|
|
1503
|
+
}, {
|
|
1504
|
+
baseUnits: string;
|
|
1505
|
+
currency: string;
|
|
1506
|
+
decimals: number;
|
|
1507
|
+
formatted: string;
|
|
1508
|
+
}>>;
|
|
1509
|
+
subsidyChainId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1510
|
+
subsidyCommitmentAmount: z.ZodMiniNullable<z.ZodMiniCustom<{
|
|
1511
|
+
baseUnits: string;
|
|
1512
|
+
currency: string;
|
|
1513
|
+
decimals: number;
|
|
1514
|
+
formatted: string;
|
|
1515
|
+
}, {
|
|
1516
|
+
baseUnits: string;
|
|
1517
|
+
currency: string;
|
|
1518
|
+
decimals: number;
|
|
1519
|
+
formatted: string;
|
|
1520
|
+
}>>;
|
|
1521
|
+
subsidyMeterReportedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1522
|
+
subsidyNativeAmount: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1523
|
+
subsidyTokenAddress: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1524
|
+
subsidyTransactionHash: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
924
1525
|
updatedAt: z.ZodMiniString<string>;
|
|
925
1526
|
version: z.ZodMiniNumber<number>;
|
|
926
1527
|
}, z.core.$strip>;
|
|
927
|
-
/** Columns of the `
|
|
928
|
-
export type
|
|
929
|
-
/** One immutable public snapshot of a
|
|
930
|
-
export declare const
|
|
1528
|
+
/** Columns of the `routes_transfers` table. */
|
|
1529
|
+
export type RoutesTransfer = z.output<typeof RoutesTransfer>;
|
|
1530
|
+
/** One immutable public snapshot of a route transfer at a material version. */
|
|
1531
|
+
export declare const RoutesTransferEvent: z.ZodMiniObject<{
|
|
931
1532
|
createdAt: z.ZodMiniString<string>;
|
|
932
1533
|
snapshot: z.ZodMiniCustom<{
|
|
933
1534
|
createdAt: string;
|
|
@@ -943,6 +1544,12 @@ export declare const FundingTransferEvent: z.ZodMiniObject<{
|
|
|
943
1544
|
decimals: number;
|
|
944
1545
|
formatted: string;
|
|
945
1546
|
} | undefined;
|
|
1547
|
+
destinationAmountRequired?: {
|
|
1548
|
+
baseUnits: string;
|
|
1549
|
+
currency: string;
|
|
1550
|
+
decimals: number;
|
|
1551
|
+
formatted: string;
|
|
1552
|
+
} | undefined;
|
|
946
1553
|
destinationChain: {
|
|
947
1554
|
addressFormat: "base58" | "base58check" | "hex";
|
|
948
1555
|
id: string;
|
|
@@ -1030,9 +1637,10 @@ export declare const FundingTransferEvent: z.ZodMiniObject<{
|
|
|
1030
1637
|
verified: boolean;
|
|
1031
1638
|
};
|
|
1032
1639
|
sourceTransactionHashes?: string[] | undefined;
|
|
1640
|
+
subsidize: boolean;
|
|
1033
1641
|
status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
|
|
1034
1642
|
statusReason?: {
|
|
1035
|
-
code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
|
|
1643
|
+
code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
1036
1644
|
message: string;
|
|
1037
1645
|
} | undefined;
|
|
1038
1646
|
updatedAt: string;
|
|
@@ -1051,6 +1659,12 @@ export declare const FundingTransferEvent: z.ZodMiniObject<{
|
|
|
1051
1659
|
decimals: number;
|
|
1052
1660
|
formatted: string;
|
|
1053
1661
|
} | undefined;
|
|
1662
|
+
destinationAmountRequired?: {
|
|
1663
|
+
baseUnits: string;
|
|
1664
|
+
currency: string;
|
|
1665
|
+
decimals: number;
|
|
1666
|
+
formatted: string;
|
|
1667
|
+
} | undefined;
|
|
1054
1668
|
destinationChain: {
|
|
1055
1669
|
addressFormat: "base58" | "base58check" | "hex";
|
|
1056
1670
|
id: string;
|
|
@@ -1138,9 +1752,10 @@ export declare const FundingTransferEvent: z.ZodMiniObject<{
|
|
|
1138
1752
|
verified: boolean;
|
|
1139
1753
|
};
|
|
1140
1754
|
sourceTransactionHashes?: string[] | undefined;
|
|
1755
|
+
subsidize: boolean;
|
|
1141
1756
|
status: "action-required" | "awaiting-source" | "completed" | "expired" | "processing" | "refunded" | "refunding";
|
|
1142
1757
|
statusReason?: {
|
|
1143
|
-
code: "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch";
|
|
1758
|
+
code: "billing_past_due" | "billing_required" | "destination_amount_below_minimum" | "destination_recovered" | "manual_recovery_required" | "refund_failed" | "routes_subsidy_limit_exceeded" | "routes_subsidy_not_enabled" | "source_amount_above_maximum" | "source_amount_below_minimum" | "source_chain_mismatch" | "source_token_mismatch" | "subsidy_balance_unavailable" | "subsidy_failed";
|
|
1144
1759
|
message: string;
|
|
1145
1760
|
} | undefined;
|
|
1146
1761
|
updatedAt: string;
|
|
@@ -1150,27 +1765,59 @@ export declare const FundingTransferEvent: z.ZodMiniObject<{
|
|
|
1150
1765
|
transferId: z.ZodMiniString<string>;
|
|
1151
1766
|
version: z.ZodMiniNumber<number>;
|
|
1152
1767
|
}, z.core.$strip>;
|
|
1153
|
-
/** Columns of the `
|
|
1154
|
-
export type
|
|
1155
|
-
/** One verified transaction reference associated with a
|
|
1156
|
-
export declare const
|
|
1768
|
+
/** Columns of the `routes_transfer_events` table. */
|
|
1769
|
+
export type RoutesTransferEvent = z.output<typeof RoutesTransferEvent>;
|
|
1770
|
+
/** One verified transaction reference associated with a route transfer. */
|
|
1771
|
+
export declare const RoutesTransferTransaction: z.ZodMiniObject<{
|
|
1157
1772
|
chainId: z.ZodMiniString<string>;
|
|
1158
1773
|
createdAt: z.ZodMiniString<string>;
|
|
1774
|
+
environment: z.ZodMiniString<string>;
|
|
1775
|
+
orgId: z.ZodMiniString<string>;
|
|
1776
|
+
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1159
1777
|
role: z.ZodMiniCustom<"destination" | "refund" | "source", "destination" | "refund" | "source">;
|
|
1160
1778
|
transactionRef: z.ZodMiniString<string>;
|
|
1161
1779
|
transferId: z.ZodMiniString<string>;
|
|
1162
1780
|
}, z.core.$strip>;
|
|
1163
|
-
/** Columns of the `
|
|
1164
|
-
export type
|
|
1781
|
+
/** Columns of the `routes_transfer_transactions` table. */
|
|
1782
|
+
export type RoutesTransferTransaction = z.output<typeof RoutesTransferTransaction>;
|
|
1783
|
+
/** One globally deduplicated destination subsidy for a verified source transaction. */
|
|
1784
|
+
export declare const RoutesTransferSubsidy: z.ZodMiniObject<{
|
|
1785
|
+
createdAt: z.ZodMiniString<string>;
|
|
1786
|
+
destinationChainId: z.ZodMiniString<string>;
|
|
1787
|
+
recipient: z.ZodMiniString<string>;
|
|
1788
|
+
sourceChainId: z.ZodMiniString<string>;
|
|
1789
|
+
tokenAddress: z.ZodMiniString<string>;
|
|
1790
|
+
transaction: z.ZodMiniCustom<routes_TransferSubsidy.Transaction, routes_TransferSubsidy.Transaction>;
|
|
1791
|
+
transactionRef: z.ZodMiniString<string>;
|
|
1792
|
+
transferId: z.ZodMiniString<string>;
|
|
1793
|
+
}, z.core.$strip>;
|
|
1794
|
+
/** Columns of the `routes_transfer_subsidies` table. */
|
|
1795
|
+
export type RoutesTransferSubsidy = z.output<typeof RoutesTransferSubsidy>;
|
|
1796
|
+
/** One durable next nonce for a destination subsidy signer on an EVM chain. */
|
|
1797
|
+
export declare const RoutesTransferSubsidyNonce: z.ZodMiniObject<{
|
|
1798
|
+
account: z.ZodMiniString<string>;
|
|
1799
|
+
blockedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1800
|
+
blockedReason: z.ZodMiniNullable<z.ZodMiniLiteral<"broadcast_rejected">>;
|
|
1801
|
+
blockedTransferId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1802
|
+
chainId: z.ZodMiniString<string>;
|
|
1803
|
+
nextNonce: z.ZodMiniString<string>;
|
|
1804
|
+
updatedAt: z.ZodMiniString<string>;
|
|
1805
|
+
}, z.core.$strip>;
|
|
1806
|
+
/** Columns of the `routes_transfer_subsidy_nonces` table. */
|
|
1807
|
+
export type RoutesTransferSubsidyNonce = z.output<typeof RoutesTransferSubsidyNonce>;
|
|
1165
1808
|
/**
|
|
1166
|
-
* An API-key-scoped idempotency claim for
|
|
1809
|
+
* An API-key-scoped idempotency claim for route resource creation. The row
|
|
1167
1810
|
* retains recovery checkpoints and completed responses until `expiresAt`.
|
|
1168
1811
|
*/
|
|
1169
|
-
export declare const
|
|
1812
|
+
export declare const RoutesIdempotencyRequest: z.ZodMiniObject<{
|
|
1170
1813
|
apiKeyId: z.ZodMiniString<string>;
|
|
1171
1814
|
createdAt: z.ZodMiniString<string>;
|
|
1172
1815
|
expiresAt: z.ZodMiniString<string>;
|
|
1816
|
+
irrevocable: z.ZodMiniBoolean<boolean>;
|
|
1173
1817
|
keyHash: z.ZodMiniString<string>;
|
|
1818
|
+
matchHash: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1819
|
+
operation: z.ZodMiniNullable<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"deposit_address">, z.ZodMiniLiteral<"transfer">]>>;
|
|
1820
|
+
orgId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1174
1821
|
requestHash: z.ZodMiniString<string>;
|
|
1175
1822
|
response: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1176
1823
|
status: z.ZodMiniEnum<{
|
|
@@ -1180,8 +1827,8 @@ export declare const FundingIdempotencyRequest: z.ZodMiniObject<{
|
|
|
1180
1827
|
}>;
|
|
1181
1828
|
transferId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1182
1829
|
}, z.core.$strip>;
|
|
1183
|
-
/** Columns of the `
|
|
1184
|
-
export type
|
|
1830
|
+
/** Columns of the `routes_idempotency_requests` table. */
|
|
1831
|
+
export type RoutesIdempotencyRequest = z.output<typeof RoutesIdempotencyRequest>;
|
|
1185
1832
|
/**
|
|
1186
1833
|
* A verified token: one row per curated token, ordered by `position` (list
|
|
1187
1834
|
* order is canonical and surfaced to clients). Addresses are stored lowercase;
|
|
@@ -1242,36 +1889,6 @@ export declare const VerifiedTokenRequest: z.ZodMiniObject<{
|
|
|
1242
1889
|
}, z.core.$strip>;
|
|
1243
1890
|
/** Columns of the `verified_token_requests` table. */
|
|
1244
1891
|
export type VerifiedTokenRequest = z.output<typeof VerifiedTokenRequest>;
|
|
1245
|
-
/**
|
|
1246
|
-
* A webhook subscription. The `Webhooks.Owner` union maps to (`ownerType`,
|
|
1247
|
-
* `ownerId`); jsonb object columns round-trip as parsed values. `pollerCursor`
|
|
1248
|
-
* replaces the old per-subscription cursor key.
|
|
1249
|
-
*/
|
|
1250
|
-
export declare const WebhookSubscription: z.ZodMiniObject<{
|
|
1251
|
-
chainId: z.ZodMiniNumber<number>;
|
|
1252
|
-
context: z.ZodMiniNullable<z.ZodMiniCustom<Webhooks.Context, Webhooks.Context>>;
|
|
1253
|
-
createdAt: z.ZodMiniString<string>;
|
|
1254
|
-
destination: z.ZodMiniCustom<Webhooks.Destination, Webhooks.Destination>;
|
|
1255
|
-
environment: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
1256
|
-
production: "production";
|
|
1257
|
-
sandbox: "sandbox";
|
|
1258
|
-
}>>;
|
|
1259
|
-
eventType: z.ZodMiniCustom<"block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included", "block:created" | "funding:deposit.updated" | "funding:transfer.updated" | "log:emitted" | "token:transfer" | "transaction:included">;
|
|
1260
|
-
expiresAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1261
|
-
failureCount: z.ZodMiniNumber<number>;
|
|
1262
|
-
filters: z.ZodMiniCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
1263
|
-
id: z.ZodMiniString<string>;
|
|
1264
|
-
lastDeliveryAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1265
|
-
ownerId: z.ZodMiniString<string>;
|
|
1266
|
-
ownerType: z.ZodMiniCustom<"api_key" | "mpp", "api_key" | "mpp">;
|
|
1267
|
-
pollerCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1268
|
-
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1269
|
-
secret: z.ZodMiniString<string>;
|
|
1270
|
-
status: z.ZodMiniCustom<Webhooks.Status, Webhooks.Status>;
|
|
1271
|
-
updatedAt: z.ZodMiniString<string>;
|
|
1272
|
-
}, z.core.$strip>;
|
|
1273
|
-
/** Columns of the `webhook_subscriptions` table. */
|
|
1274
|
-
export type WebhookSubscription = z.output<typeof WebhookSubscription>;
|
|
1275
1892
|
/**
|
|
1276
1893
|
* A webhook delivery attempt. Rows are invisible past `expiresAt` (the
|
|
1277
1894
|
* retention deadline that replaces the old store TTL) and pruned by the
|
|
@@ -1326,4 +1943,34 @@ export declare const WebhookQueueEvent: z.ZodMiniObject<{
|
|
|
1326
1943
|
}, z.core.$strip>;
|
|
1327
1944
|
/** Columns of the `webhook_queue_events` table. */
|
|
1328
1945
|
export type WebhookQueueEvent = z.output<typeof WebhookQueueEvent>;
|
|
1946
|
+
/**
|
|
1947
|
+
* A webhook subscription. The `Webhooks.Owner` union maps to (`ownerType`,
|
|
1948
|
+
* `ownerId`); jsonb object columns round-trip as parsed values. `pollerCursor`
|
|
1949
|
+
* replaces the old per-subscription cursor key.
|
|
1950
|
+
*/
|
|
1951
|
+
export declare const WebhookSubscription: z.ZodMiniObject<{
|
|
1952
|
+
chainId: z.ZodMiniNumber<number>;
|
|
1953
|
+
context: z.ZodMiniNullable<z.ZodMiniCustom<Webhooks.Context, Webhooks.Context>>;
|
|
1954
|
+
createdAt: z.ZodMiniString<string>;
|
|
1955
|
+
destination: z.ZodMiniCustom<Webhooks.Destination, Webhooks.Destination>;
|
|
1956
|
+
environment: z.ZodMiniNullable<z.ZodMiniEnum<{
|
|
1957
|
+
production: "production";
|
|
1958
|
+
sandbox: "sandbox";
|
|
1959
|
+
}>>;
|
|
1960
|
+
eventType: z.ZodMiniCustom<"block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included", "block:created" | "log:emitted" | "routes:deposit.updated" | "routes:transfer.updated" | "token:transfer" | "transaction:included">;
|
|
1961
|
+
expiresAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1962
|
+
failureCount: z.ZodMiniNumber<number>;
|
|
1963
|
+
filters: z.ZodMiniCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
1964
|
+
id: z.ZodMiniString<string>;
|
|
1965
|
+
lastDeliveryAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1966
|
+
ownerId: z.ZodMiniString<string>;
|
|
1967
|
+
ownerType: z.ZodMiniCustom<"api_key" | "mpp", "api_key" | "mpp">;
|
|
1968
|
+
pollerCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1969
|
+
projectId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
1970
|
+
secret: z.ZodMiniString<string>;
|
|
1971
|
+
status: z.ZodMiniCustom<Webhooks.Status, Webhooks.Status>;
|
|
1972
|
+
updatedAt: z.ZodMiniString<string>;
|
|
1973
|
+
}, z.core.$strip>;
|
|
1974
|
+
/** Columns of the `webhook_subscriptions` table. */
|
|
1975
|
+
export type WebhookSubscription = z.output<typeof WebhookSubscription>;
|
|
1329
1976
|
//# sourceMappingURL=Schema.d.ts.map
|