tapimo 0.11.0 → 0.13.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/dist/App.d.ts +6396 -4575
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +39 -4
- package/dist/App.js.map +1 -1
- package/dist/Assets.d.ts +15 -0
- package/dist/Assets.d.ts.map +1 -1
- package/dist/Assets.js +7 -0
- package/dist/Assets.js.map +1 -1
- package/dist/Scope.d.ts +2 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +17 -0
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +176 -78
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +84 -4
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +54 -0
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/earn-vaults.d.ts +123 -9
- package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
- package/dist/admin/apps/earn-vaults.js +60 -7
- package/dist/admin/apps/earn-vaults.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts.map +1 -1
- package/dist/admin/apps/organizations.js +4 -2
- package/dist/admin/apps/organizations.js.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +90 -90
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.js +71 -71
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/apps/Zones.d.ts +16 -16
- package/dist/apps/Zones.js +4 -4
- package/dist/apps/data/App.d.ts +1699 -749
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +58 -9
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/ZoneSelection.d.ts +62 -0
- package/dist/apps/data/ZoneSelection.d.ts.map +1 -0
- package/dist/apps/data/ZoneSelection.js +44 -0
- package/dist/apps/data/ZoneSelection.js.map +1 -0
- package/dist/apps/data/routes/activities.d.ts +2417 -50
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +1896 -1293
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +471 -340
- package/dist/apps/data/routes/addresses.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +12 -12
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +44 -17
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +42 -42
- package/dist/apps/data/routes/blocks.d.ts.map +1 -1
- package/dist/apps/data/routes/blocks.js +22 -12
- package/dist/apps/data/routes/blocks.js.map +1 -1
- package/dist/apps/data/routes/coingecko.d.ts +179 -179
- package/dist/apps/data/routes/earn.d.ts +144 -19
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +160 -28
- package/dist/apps/data/routes/earn.js.map +1 -1
- package/dist/apps/data/routes/exchanges.d.ts +719 -13
- package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
- package/dist/apps/data/routes/exchanges.js +16 -13
- package/dist/apps/data/routes/exchanges.js.map +1 -1
- package/dist/apps/data/routes/fee-amm.d.ts +2 -2
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
- package/dist/apps/data/routes/fee-amm.js +9 -11
- package/dist/apps/data/routes/fee-amm.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +34 -34
- package/dist/apps/data/routes/receipts.d.ts +363 -263
- package/dist/apps/data/routes/receipts.d.ts.map +1 -1
- package/dist/apps/data/routes/receipts.js +29 -11
- package/dist/apps/data/routes/receipts.js.map +1 -1
- package/dist/apps/data/routes/rpc.js +24 -10
- package/dist/apps/data/routes/rpc.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +13 -13
- package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
- package/dist/apps/data/routes/tokenlist.js +16 -15
- package/dist/apps/data/routes/tokenlist.js.map +1 -1
- package/dist/apps/data/routes/tokens.d.ts +112 -98
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +85 -35
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transactions.d.ts +7 -2
- package/dist/apps/data/routes/transactions.d.ts.map +1 -1
- package/dist/apps/data/routes/transactions.js +38 -18
- package/dist/apps/data/routes/transactions.js.map +1 -1
- package/dist/apps/data/routes/transfers.d.ts +1 -1
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +25 -21
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/valuation.d.ts +1 -1
- package/dist/apps/data/routes/valuation.d.ts.map +1 -1
- package/dist/apps/data/routes/valuation.js +12 -7
- package/dist/apps/data/routes/valuation.js.map +1 -1
- package/dist/apps/data/routes/verified-tokens.d.ts +3 -3
- package/dist/apps/data/routes/webhooks.d.ts +15 -15
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +2 -2
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/data/routes/zones.d.ts +32 -32
- package/dist/apps/data/routes/zones.js +1 -1
- package/dist/apps/funding/App.d.ts +38 -27
- package/dist/apps/funding/App.d.ts.map +1 -1
- package/dist/apps/funding/routes/chains.d.ts.map +1 -1
- package/dist/apps/funding/routes/chains.js +5 -4
- package/dist/apps/funding/routes/chains.js.map +1 -1
- package/dist/apps/funding/routes/deposit-addresses.d.ts +16 -16
- package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
- package/dist/apps/funding/routes/deposit-addresses.js +24 -19
- package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
- package/dist/apps/funding/routes/providers.d.ts +13 -13
- package/dist/apps/funding/routes/providers.d.ts.map +1 -1
- package/dist/apps/funding/routes/providers.js +3 -2
- package/dist/apps/funding/routes/providers.js.map +1 -1
- package/dist/apps/funding/routes/quotes.d.ts.map +1 -1
- package/dist/apps/funding/routes/quotes.js +2 -2
- package/dist/apps/funding/routes/quotes.js.map +1 -1
- package/dist/apps/funding/routes/transfers.d.ts +60 -48
- package/dist/apps/funding/routes/transfers.d.ts.map +1 -1
- package/dist/apps/funding/routes/transfers.js +27 -19
- package/dist/apps/funding/routes/transfers.js.map +1 -1
- package/dist/apps/management/App.d.ts +4558 -3700
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +19 -6
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +786 -175
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +312 -34
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +103 -30
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +91 -32
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +35 -35
- package/dist/apps/management/routes/faucet.d.ts.map +1 -1
- package/dist/apps/management/routes/faucet.js +23 -12
- package/dist/apps/management/routes/faucet.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +46 -13
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +79 -29
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/invite-links.d.ts +120 -75
- package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
- package/dist/apps/management/routes/invite-links.js +100 -41
- package/dist/apps/management/routes/invite-links.js.map +1 -1
- package/dist/apps/management/routes/me.d.ts +5 -5
- package/dist/apps/management/routes/me.d.ts.map +1 -1
- package/dist/apps/management/routes/me.js +14 -10
- package/dist/apps/management/routes/me.js.map +1 -1
- package/dist/apps/management/routes/members.d.ts +99 -78
- package/dist/apps/management/routes/members.d.ts.map +1 -1
- package/dist/apps/management/routes/members.js +37 -18
- package/dist/apps/management/routes/members.js.map +1 -1
- package/dist/apps/management/routes/orgs.d.ts +48 -8
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +48 -19
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +108 -46
- package/dist/apps/management/routes/projects.d.ts.map +1 -1
- package/dist/apps/management/routes/projects.js +72 -21
- 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 +8 -5
- package/dist/apps/management/routes/scopes.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +82 -82
- package/dist/apps/management/routes/usage.d.ts.map +1 -1
- package/dist/apps/management/routes/usage.js +41 -31
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.d.ts +35 -7
- package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.js +36 -17
- package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
- package/dist/apps/management/routes/webhooks.d.ts +200 -183
- package/dist/apps/management/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/management/routes/webhooks.js +80 -35
- package/dist/apps/management/routes/webhooks.js.map +1 -1
- package/dist/apps/mpp/internal/Adapter.d.ts +1 -1
- package/dist/apps/mpp/internal/Adapter.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Adapter.js +12 -0
- package/dist/apps/mpp/internal/Adapter.js.map +1 -1
- package/dist/db/Db.d.ts +2 -0
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +52 -1
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +26 -3
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +24 -5
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/earnVaults.d.ts +5 -1
- package/dist/db/tables/earnVaults.d.ts.map +1 -1
- package/dist/db/tables/earnVaults.js +5 -0
- package/dist/db/tables/earnVaults.js.map +1 -1
- package/dist/db/tables/fundingCatalog.d.ts +4 -2
- package/dist/db/tables/fundingCatalog.d.ts.map +1 -1
- package/dist/db/tables/fundingCatalog.js +5 -1
- package/dist/db/tables/fundingCatalog.js.map +1 -1
- package/dist/db/tables/webhookDeliveries.d.ts.map +1 -1
- package/dist/db/tables/webhookDeliveries.js +10 -0
- package/dist/db/tables/webhookDeliveries.js.map +1 -1
- package/dist/db/tables/webhookQueueCompletions.d.ts +15 -0
- package/dist/db/tables/webhookQueueCompletions.d.ts.map +1 -0
- package/dist/db/tables/webhookQueueCompletions.js +32 -0
- package/dist/db/tables/webhookQueueCompletions.js.map +1 -0
- package/dist/db/tables/webhookQueueEvents.d.ts +14 -20
- package/dist/db/tables/webhookQueueEvents.d.ts.map +1 -1
- package/dist/db/tables/webhookQueueEvents.js +68 -47
- package/dist/db/tables/webhookQueueEvents.js.map +1 -1
- package/dist/db/tables/webhookSubscriptions.d.ts +16 -5
- package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
- package/dist/db/tables/webhookSubscriptions.js +29 -5
- package/dist/db/tables/webhookSubscriptions.js.map +1 -1
- package/dist/handlers/internal/utils.d.ts.map +1 -1
- package/dist/handlers/internal/utils.js +9 -0
- package/dist/handlers/internal/utils.js.map +1 -1
- package/dist/internal/Auth.d.ts +11 -2
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +19 -6
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Cache.d.ts.map +1 -1
- package/dist/internal/Cache.js +11 -7
- package/dist/internal/Cache.js.map +1 -1
- package/dist/internal/EarnVaults.d.ts +43 -4
- package/dist/internal/EarnVaults.d.ts.map +1 -1
- package/dist/internal/EarnVaults.js +167 -0
- package/dist/internal/EarnVaults.js.map +1 -1
- package/dist/internal/Fetch.d.ts +23 -0
- package/dist/internal/Fetch.d.ts.map +1 -0
- package/dist/internal/Fetch.js +26 -0
- package/dist/internal/Fetch.js.map +1 -0
- package/dist/internal/Log.d.ts +3 -1
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +16 -3
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/OpenApi.d.ts +30 -24
- package/dist/internal/OpenApi.d.ts.map +1 -1
- package/dist/internal/OpenApi.js +140 -41
- package/dist/internal/OpenApi.js.map +1 -1
- package/dist/internal/Response.d.ts +14 -9
- package/dist/internal/Response.d.ts.map +1 -1
- package/dist/internal/Response.js +16 -5
- package/dist/internal/Response.js.map +1 -1
- package/dist/internal/Schema.d.ts +11 -10
- package/dist/internal/Schema.d.ts.map +1 -1
- package/dist/internal/Schema.js +14 -9
- package/dist/internal/Schema.js.map +1 -1
- package/dist/internal/Store.d.ts +28 -6
- package/dist/internal/Store.d.ts.map +1 -1
- package/dist/internal/Store.js +121 -25
- package/dist/internal/Store.js.map +1 -1
- package/dist/internal/Tidx.d.ts +2 -0
- package/dist/internal/Tidx.d.ts.map +1 -1
- package/dist/internal/Tidx.js +23 -6
- package/dist/internal/Tidx.js.map +1 -1
- package/dist/internal/Timeout.d.ts +36 -0
- package/dist/internal/Timeout.d.ts.map +1 -0
- package/dist/internal/Timeout.js +37 -0
- package/dist/internal/Timeout.js.map +1 -0
- package/dist/internal/Timing.d.ts +9 -0
- package/dist/internal/Timing.d.ts.map +1 -1
- package/dist/internal/Timing.js +7 -0
- package/dist/internal/Timing.js.map +1 -1
- package/dist/internal/WebhookDestination.d.ts.map +1 -1
- package/dist/internal/WebhookDestination.js +3 -0
- package/dist/internal/WebhookDestination.js.map +1 -1
- package/dist/internal/Webhooks.d.ts +29 -12
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +37 -20
- package/dist/internal/Webhooks.js.map +1 -1
- package/dist/internal/funding/Action.d.ts +9 -0
- package/dist/internal/funding/Action.d.ts.map +1 -1
- package/dist/internal/funding/Action.js +16 -8
- package/dist/internal/funding/Action.js.map +1 -1
- package/dist/internal/funding/Catalog.d.ts +9 -2
- package/dist/internal/funding/Catalog.d.ts.map +1 -1
- package/dist/internal/funding/Catalog.js +19 -8
- package/dist/internal/funding/Catalog.js.map +1 -1
- package/dist/internal/funding/Deposit.d.ts +2 -2
- package/dist/internal/funding/Deposit.d.ts.map +1 -1
- package/dist/internal/funding/Deposit.js +9 -8
- package/dist/internal/funding/Deposit.js.map +1 -1
- package/dist/internal/funding/DepositAddress.d.ts +4 -4
- package/dist/internal/funding/DepositAddress.d.ts.map +1 -1
- package/dist/internal/funding/DepositAddress.js +9 -8
- package/dist/internal/funding/DepositAddress.js.map +1 -1
- package/dist/internal/funding/Provider.d.ts +68 -13
- package/dist/internal/funding/Provider.d.ts.map +1 -1
- package/dist/internal/funding/Provider.js +42 -20
- package/dist/internal/funding/Provider.js.map +1 -1
- package/dist/internal/funding/Transfer.d.ts +13 -12
- package/dist/internal/funding/Transfer.d.ts.map +1 -1
- package/dist/internal/funding/Transfer.js +23 -21
- package/dist/internal/funding/Transfer.js.map +1 -1
- package/dist/internal/funding/providers/stargate.d.ts +38 -0
- package/dist/internal/funding/providers/stargate.d.ts.map +1 -0
- package/dist/internal/funding/providers/stargate.js +277 -0
- package/dist/internal/funding/providers/stargate.js.map +1 -0
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -0
- package/dist/internal/index.js.map +1 -1
- package/dist/providers/index.d.ts +7 -0
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js +3 -0
- package/dist/providers/index.js.map +1 -1
- package/package.json +3 -3
- package/src/App.test.ts +148 -0
- package/src/App.ts +45 -4
- package/src/Assets.test.ts +18 -0
- package/src/Assets.ts +22 -0
- package/src/Client.test-d.ts +311 -16
- package/src/Scope.test.ts +20 -0
- package/src/Scope.ts +16 -0
- package/src/admin/apps/api-keys.test.ts +75 -0
- package/src/admin/apps/api-keys.ts +64 -0
- package/src/admin/apps/earn-vaults.test.ts +143 -0
- package/src/admin/apps/earn-vaults.ts +84 -7
- package/src/admin/apps/organizations.ts +6 -2
- package/src/admin/ui/src/lib/api-keys.ts +19 -0
- package/src/admin/ui/src/routes/api-keys.tsx +125 -2
- package/src/admin/ui.generated.ts +71 -71
- package/src/apps/Zones.test.ts +4 -4
- package/src/apps/Zones.ts +4 -4
- package/src/apps/composition.test.ts +1 -1
- package/src/apps/data/App.test.ts +72 -0
- package/src/apps/data/App.ts +58 -10
- package/src/apps/data/ZoneSelection.test.ts +196 -0
- package/src/apps/data/ZoneSelection.ts +108 -0
- package/src/apps/data/routes/activities.test.ts +1843 -2
- package/src/apps/data/routes/activities.ts +2211 -1388
- package/src/apps/data/routes/balances.ts +134 -98
- package/src/apps/data/routes/blocks.test.ts +533 -0
- package/src/apps/data/routes/blocks.ts +36 -17
- package/src/apps/data/routes/earn.test.ts +187 -25
- package/src/apps/data/routes/earn.ts +228 -32
- package/src/apps/data/routes/earn.zone-access.test.ts +46 -0
- package/src/apps/data/routes/exchanges.test.ts +31 -1
- package/src/apps/data/routes/exchanges.ts +19 -15
- package/src/apps/data/routes/fee-amm.ts +18 -11
- package/src/apps/data/routes/receipts.ts +48 -17
- package/src/apps/data/routes/rpc.test.ts +75 -0
- package/src/apps/data/routes/rpc.ts +23 -9
- package/src/apps/data/routes/tokenlist.ts +21 -18
- package/src/apps/data/routes/tokens.test.ts +607 -0
- package/src/apps/data/routes/tokens.ts +312 -231
- package/src/apps/data/routes/transactions.ts +69 -30
- package/src/apps/data/routes/transfers.test.ts +424 -3
- package/src/apps/data/routes/transfers.ts +57 -36
- package/src/apps/data/routes/valuation.ts +94 -78
- package/src/apps/data/routes/webhooks.ts +6 -2
- package/src/apps/data/routes/zones.test.ts +21 -15
- package/src/apps/data/routes/zones.ts +1 -1
- package/src/apps/funding/routes/chains.test.ts +211 -7
- package/src/apps/funding/routes/chains.ts +19 -12
- package/src/apps/funding/routes/deposit-addresses.test.ts +416 -0
- package/src/apps/funding/routes/deposit-addresses.ts +101 -84
- package/src/apps/funding/routes/providers.ts +9 -5
- package/src/apps/funding/routes/quotes.test.ts +42 -0
- package/src/apps/funding/routes/quotes.ts +8 -5
- package/src/apps/funding/routes/transfers.test.ts +430 -40
- package/src/apps/funding/routes/transfers.ts +76 -59
- package/src/apps/management/Billing.test.ts +26 -0
- package/src/apps/management/Billing.ts +24 -7
- package/src/apps/management/routes/api-keys.test.ts +398 -0
- package/src/apps/management/routes/api-keys.ts +481 -145
- package/src/apps/management/routes/billing.test.ts +209 -0
- package/src/apps/management/routes/billing.ts +254 -177
- package/src/apps/management/routes/faucet.test.ts +39 -0
- package/src/apps/management/routes/faucet.ts +75 -41
- package/src/apps/management/routes/invitations.test.ts +216 -0
- package/src/apps/management/routes/invitations.ts +186 -109
- package/src/apps/management/routes/invite-links.test.ts +263 -1
- package/src/apps/management/routes/invite-links.ts +295 -214
- package/src/apps/management/routes/me.test.ts +49 -0
- package/src/apps/management/routes/me.ts +42 -32
- package/src/apps/management/routes/members.test.ts +124 -1
- package/src/apps/management/routes/members.ts +81 -51
- package/src/apps/management/routes/orgs.test.ts +176 -0
- package/src/apps/management/routes/orgs.ts +101 -59
- package/src/apps/management/routes/projects.test.ts +183 -0
- package/src/apps/management/routes/projects.ts +124 -60
- package/src/apps/management/routes/scopes.test.ts +44 -0
- package/src/apps/management/routes/scopes.ts +37 -28
- package/src/apps/management/routes/usage.test.ts +92 -0
- package/src/apps/management/routes/usage.ts +186 -151
- package/src/apps/management/routes/verified-token-requests.test.ts +114 -0
- package/src/apps/management/routes/verified-token-requests.ts +166 -133
- package/src/apps/management/routes/webhooks.test.ts +234 -0
- package/src/apps/management/routes/webhooks.ts +191 -78
- package/src/apps/mpp/internal/Adapter.ts +13 -1
- package/src/db/Db.test.ts +41 -0
- package/src/db/Db.ts +75 -1
- package/src/db/Schema.ts +33 -5
- package/src/db/tables/earnVaults.test.ts +22 -0
- package/src/db/tables/earnVaults.ts +11 -1
- package/src/db/tables/fundingCatalog.test.ts +16 -2
- package/src/db/tables/fundingCatalog.ts +9 -3
- package/src/db/tables/webhookDeliveries.ts +13 -0
- package/src/db/tables/webhookQueueCompletions.ts +55 -0
- package/src/db/tables/webhookQueueEvents.ts +95 -61
- package/src/db/tables/webhookSubscriptions.ts +45 -6
- package/src/handlers/internal/utils.test.ts +53 -0
- package/src/handlers/internal/utils.ts +15 -0
- package/src/internal/Auth.ts +35 -9
- package/src/internal/Cache.ts +14 -7
- package/src/internal/EarnVaults.capabilities.test.ts +33 -0
- package/src/internal/EarnVaults.test.ts +79 -0
- package/src/internal/EarnVaults.ts +277 -0
- package/src/internal/Fetch.test.ts +46 -0
- package/src/internal/Fetch.ts +56 -0
- package/src/internal/Log.test.ts +21 -0
- package/src/internal/Log.ts +20 -5
- package/src/internal/OpenApi.ts +177 -51
- package/src/internal/Response.test.ts +95 -0
- package/src/internal/Response.ts +41 -3
- package/src/internal/Schema.test.ts +18 -0
- package/src/internal/Schema.ts +19 -9
- package/src/internal/Store.test.ts +364 -0
- package/src/internal/Store.ts +153 -27
- package/src/internal/Tidx.test.ts +21 -1
- package/src/internal/Tidx.ts +23 -6
- package/src/internal/Timeout.test.ts +35 -0
- package/src/internal/Timeout.ts +73 -0
- package/src/internal/Timing.ts +16 -0
- package/src/internal/WebhookDestination.ts +3 -0
- package/src/internal/Webhooks.test.ts +122 -8
- package/src/internal/Webhooks.ts +59 -29
- package/src/internal/funding/Action.test.ts +41 -1
- package/src/internal/funding/Action.ts +69 -41
- package/src/internal/funding/Catalog.test.ts +34 -0
- package/src/internal/funding/Catalog.ts +28 -11
- package/src/internal/funding/Deposit.ts +71 -64
- package/src/internal/funding/DepositAddress.ts +50 -43
- package/src/internal/funding/Provider.test.ts +73 -0
- package/src/internal/funding/Provider.ts +246 -170
- package/src/internal/funding/Transfer.ts +133 -110
- package/src/internal/funding/providers/index.test.ts +22 -0
- package/src/internal/funding/providers/relay.test.ts +2 -2
- package/src/internal/funding/providers/stargate.test.ts +163 -0
- package/src/internal/funding/providers/stargate.ts +409 -0
- package/src/internal/index.test.ts +1 -0
- package/src/internal/index.ts +1 -0
- package/src/providers/index.test.ts +1 -0
- package/src/providers/index.ts +9 -0
|
@@ -6,15 +6,15 @@ export declare namespace schema {
|
|
|
6
6
|
/** One API key: metadata only — the token appears once, at mint. */
|
|
7
7
|
const Key: z.ZodMiniObject<{
|
|
8
8
|
allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
9
|
-
createdAt: z.
|
|
9
|
+
createdAt: z.ZodMiniISODateTime;
|
|
10
10
|
createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
11
11
|
environment: z.ZodMiniEnum<{
|
|
12
12
|
production: "production";
|
|
13
13
|
sandbox: "sandbox";
|
|
14
14
|
}>;
|
|
15
|
-
expiresAt: z.ZodMiniOptional<z.
|
|
15
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
16
16
|
id: z.ZodMiniString<string>;
|
|
17
|
-
lastUsedAt: z.ZodMiniOptional<z.
|
|
17
|
+
lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
18
18
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
19
19
|
orgId: z.ZodMiniString<string>;
|
|
20
20
|
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -36,8 +36,13 @@ export declare namespace schema {
|
|
|
36
36
|
orgId: z.ZodMiniString<string>;
|
|
37
37
|
projectId: z.ZodMiniString<string>;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
|
+
/** Path parameters addressing one organization-level API key. */
|
|
40
|
+
const OrgKeyParams: z.ZodMiniObject<{
|
|
41
|
+
keyId: z.ZodMiniString<string>;
|
|
42
|
+
orgId: z.ZodMiniString<string>;
|
|
43
|
+
}, z.core.$strip>;
|
|
39
44
|
/** Request body minting a key. The wildcard scope is not issuable here. */
|
|
40
|
-
const
|
|
45
|
+
const CreateApiKeyRequest: z.ZodMiniObject<{
|
|
41
46
|
allowedIps: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
42
47
|
environment: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
43
48
|
production: "production";
|
|
@@ -51,15 +56,15 @@ export declare namespace schema {
|
|
|
51
56
|
/** The minted key plus its one-time token. */
|
|
52
57
|
const Response: z.ZodMiniObject<{
|
|
53
58
|
allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
54
|
-
createdAt: z.
|
|
59
|
+
createdAt: z.ZodMiniISODateTime;
|
|
55
60
|
createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
56
61
|
environment: z.ZodMiniEnum<{
|
|
57
62
|
production: "production";
|
|
58
63
|
sandbox: "sandbox";
|
|
59
64
|
}>;
|
|
60
|
-
expiresAt: z.ZodMiniOptional<z.
|
|
65
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
61
66
|
id: z.ZodMiniString<string>;
|
|
62
|
-
lastUsedAt: z.ZodMiniOptional<z.
|
|
67
|
+
lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
63
68
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
64
69
|
orgId: z.ZodMiniString<string>;
|
|
65
70
|
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -68,6 +73,26 @@ export declare namespace schema {
|
|
|
68
73
|
token: z.ZodMiniString<string>;
|
|
69
74
|
}, z.core.$strip>;
|
|
70
75
|
}
|
|
76
|
+
/** Non-paginated list of API key metadata. */
|
|
77
|
+
const ApiKeyList: z.ZodMiniObject<{
|
|
78
|
+
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
79
|
+
allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
80
|
+
createdAt: z.ZodMiniISODateTime;
|
|
81
|
+
createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
82
|
+
environment: z.ZodMiniEnum<{
|
|
83
|
+
production: "production";
|
|
84
|
+
sandbox: "sandbox";
|
|
85
|
+
}>;
|
|
86
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
87
|
+
id: z.ZodMiniString<string>;
|
|
88
|
+
lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
89
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
90
|
+
orgId: z.ZodMiniString<string>;
|
|
91
|
+
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
92
|
+
scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
93
|
+
tokenLast4: z.ZodMiniString<string>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
71
96
|
/** Schemas for the listApiKeys operation. */
|
|
72
97
|
namespace listApiKeys {
|
|
73
98
|
/** Query parameters filtering a project's keys. */
|
|
@@ -81,15 +106,15 @@ export declare namespace schema {
|
|
|
81
106
|
const Response: z.ZodMiniObject<{
|
|
82
107
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
83
108
|
allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
84
|
-
createdAt: z.
|
|
109
|
+
createdAt: z.ZodMiniISODateTime;
|
|
85
110
|
createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
86
111
|
environment: z.ZodMiniEnum<{
|
|
87
112
|
production: "production";
|
|
88
113
|
sandbox: "sandbox";
|
|
89
114
|
}>;
|
|
90
|
-
expiresAt: z.ZodMiniOptional<z.
|
|
115
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
91
116
|
id: z.ZodMiniString<string>;
|
|
92
|
-
lastUsedAt: z.ZodMiniOptional<z.
|
|
117
|
+
lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
93
118
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
94
119
|
orgId: z.ZodMiniString<string>;
|
|
95
120
|
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -111,15 +136,15 @@ export declare namespace schema {
|
|
|
111
136
|
const Response: z.ZodMiniObject<{
|
|
112
137
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
113
138
|
allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
114
|
-
createdAt: z.
|
|
139
|
+
createdAt: z.ZodMiniISODateTime;
|
|
115
140
|
createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
116
141
|
environment: z.ZodMiniEnum<{
|
|
117
142
|
production: "production";
|
|
118
143
|
sandbox: "sandbox";
|
|
119
144
|
}>;
|
|
120
|
-
expiresAt: z.ZodMiniOptional<z.
|
|
145
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
121
146
|
id: z.ZodMiniString<string>;
|
|
122
|
-
lastUsedAt: z.ZodMiniOptional<z.
|
|
147
|
+
lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
123
148
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
124
149
|
orgId: z.ZodMiniString<string>;
|
|
125
150
|
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
@@ -135,6 +160,28 @@ export declare namespace schema {
|
|
|
135
160
|
id: z.ZodMiniString<string>;
|
|
136
161
|
}, z.core.$strip>;
|
|
137
162
|
}
|
|
163
|
+
/** Schemas for the rotateApiKey operation. */
|
|
164
|
+
namespace rotateApiKey {
|
|
165
|
+
/** The replacement key plus its one-time token. */
|
|
166
|
+
const Response: z.ZodMiniObject<{
|
|
167
|
+
allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
168
|
+
createdAt: z.ZodMiniISODateTime;
|
|
169
|
+
createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
170
|
+
environment: z.ZodMiniEnum<{
|
|
171
|
+
production: "production";
|
|
172
|
+
sandbox: "sandbox";
|
|
173
|
+
}>;
|
|
174
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
175
|
+
id: z.ZodMiniString<string>;
|
|
176
|
+
lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
177
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
178
|
+
orgId: z.ZodMiniString<string>;
|
|
179
|
+
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
180
|
+
scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
181
|
+
tokenLast4: z.ZodMiniString<string>;
|
|
182
|
+
token: z.ZodMiniString<string>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
}
|
|
138
185
|
/** Schemas for the updateApiKey operation. */
|
|
139
186
|
namespace updateApiKey {
|
|
140
187
|
/** Request body replacing or clearing a key's IP allowlist. */
|
|
@@ -151,14 +198,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
151
198
|
$post: {
|
|
152
199
|
output: {
|
|
153
200
|
error: {
|
|
154
|
-
code: "
|
|
201
|
+
code: "upstream_error";
|
|
155
202
|
details?: readonly Response.error.Detail[] | undefined;
|
|
156
203
|
message: string;
|
|
157
204
|
};
|
|
158
205
|
requestId: string;
|
|
159
206
|
};
|
|
160
207
|
outputFormat: "json";
|
|
161
|
-
status:
|
|
208
|
+
status: 502;
|
|
162
209
|
input: {
|
|
163
210
|
param: {
|
|
164
211
|
orgId: string;
|
|
@@ -175,14 +222,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
175
222
|
} | {
|
|
176
223
|
output: {
|
|
177
224
|
error: {
|
|
178
|
-
code: "
|
|
225
|
+
code: "api_key_malformed";
|
|
179
226
|
details?: readonly Response.error.Detail[] | undefined;
|
|
180
227
|
message: string;
|
|
181
228
|
};
|
|
182
229
|
requestId: string;
|
|
183
230
|
};
|
|
184
231
|
outputFormat: "json";
|
|
185
|
-
status:
|
|
232
|
+
status: 400;
|
|
186
233
|
input: {
|
|
187
234
|
param: {
|
|
188
235
|
orgId: string;
|
|
@@ -199,14 +246,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
199
246
|
} | {
|
|
200
247
|
output: {
|
|
201
248
|
error: {
|
|
202
|
-
code: "
|
|
249
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
203
250
|
details?: readonly Response.error.Detail[] | undefined;
|
|
204
251
|
message: string;
|
|
205
252
|
};
|
|
206
253
|
requestId: string;
|
|
207
254
|
};
|
|
208
255
|
outputFormat: "json";
|
|
209
|
-
status:
|
|
256
|
+
status: 401;
|
|
210
257
|
input: {
|
|
211
258
|
param: {
|
|
212
259
|
orgId: string;
|
|
@@ -223,14 +270,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
223
270
|
} | {
|
|
224
271
|
output: {
|
|
225
272
|
error: {
|
|
226
|
-
code: "
|
|
273
|
+
code: "param_invalid";
|
|
227
274
|
details?: readonly Response.error.Detail[] | undefined;
|
|
228
275
|
message: string;
|
|
229
276
|
};
|
|
230
277
|
requestId: string;
|
|
231
278
|
};
|
|
232
279
|
outputFormat: "json";
|
|
233
|
-
status:
|
|
280
|
+
status: 400;
|
|
234
281
|
input: {
|
|
235
282
|
param: {
|
|
236
283
|
orgId: string;
|
|
@@ -247,14 +294,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
247
294
|
} | {
|
|
248
295
|
output: {
|
|
249
296
|
error: {
|
|
250
|
-
code: "
|
|
297
|
+
code: "body_invalid";
|
|
251
298
|
details?: readonly Response.error.Detail[] | undefined;
|
|
252
299
|
message: string;
|
|
253
300
|
};
|
|
254
301
|
requestId: string;
|
|
255
302
|
};
|
|
256
303
|
outputFormat: "json";
|
|
257
|
-
status:
|
|
304
|
+
status: 400;
|
|
258
305
|
input: {
|
|
259
306
|
param: {
|
|
260
307
|
orgId: string;
|
|
@@ -271,14 +318,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
271
318
|
} | {
|
|
272
319
|
output: {
|
|
273
320
|
error: {
|
|
274
|
-
code: "
|
|
321
|
+
code: "forbidden";
|
|
275
322
|
details?: readonly Response.error.Detail[] | undefined;
|
|
276
323
|
message: string;
|
|
277
324
|
};
|
|
278
325
|
requestId: string;
|
|
279
326
|
};
|
|
280
327
|
outputFormat: "json";
|
|
281
|
-
status:
|
|
328
|
+
status: 403;
|
|
282
329
|
input: {
|
|
283
330
|
param: {
|
|
284
331
|
orgId: string;
|
|
@@ -295,14 +342,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
295
342
|
} | {
|
|
296
343
|
output: {
|
|
297
344
|
error: {
|
|
298
|
-
code: "
|
|
345
|
+
code: "organization_not_found" | "project_not_found";
|
|
299
346
|
details?: readonly Response.error.Detail[] | undefined;
|
|
300
347
|
message: string;
|
|
301
348
|
};
|
|
302
349
|
requestId: string;
|
|
303
350
|
};
|
|
304
351
|
outputFormat: "json";
|
|
305
|
-
status:
|
|
352
|
+
status: 404;
|
|
306
353
|
input: {
|
|
307
354
|
param: {
|
|
308
355
|
orgId: string;
|
|
@@ -402,14 +449,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
402
449
|
$get: {
|
|
403
450
|
output: {
|
|
404
451
|
error: {
|
|
405
|
-
code: "
|
|
452
|
+
code: "upstream_error";
|
|
406
453
|
details?: readonly Response.error.Detail[] | undefined;
|
|
407
454
|
message: string;
|
|
408
455
|
};
|
|
409
456
|
requestId: string;
|
|
410
457
|
};
|
|
411
458
|
outputFormat: "json";
|
|
412
|
-
status:
|
|
459
|
+
status: 502;
|
|
413
460
|
input: {
|
|
414
461
|
param: {
|
|
415
462
|
orgId: string;
|
|
@@ -423,14 +470,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
423
470
|
} | {
|
|
424
471
|
output: {
|
|
425
472
|
error: {
|
|
426
|
-
code: "
|
|
473
|
+
code: "query_invalid";
|
|
427
474
|
details?: readonly Response.error.Detail[] | undefined;
|
|
428
475
|
message: string;
|
|
429
476
|
};
|
|
430
477
|
requestId: string;
|
|
431
478
|
};
|
|
432
479
|
outputFormat: "json";
|
|
433
|
-
status:
|
|
480
|
+
status: 400;
|
|
434
481
|
input: {
|
|
435
482
|
param: {
|
|
436
483
|
orgId: string;
|
|
@@ -444,14 +491,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
444
491
|
} | {
|
|
445
492
|
output: {
|
|
446
493
|
error: {
|
|
447
|
-
code: "
|
|
494
|
+
code: "api_key_malformed";
|
|
448
495
|
details?: readonly Response.error.Detail[] | undefined;
|
|
449
496
|
message: string;
|
|
450
497
|
};
|
|
451
498
|
requestId: string;
|
|
452
499
|
};
|
|
453
500
|
outputFormat: "json";
|
|
454
|
-
status:
|
|
501
|
+
status: 400;
|
|
455
502
|
input: {
|
|
456
503
|
param: {
|
|
457
504
|
orgId: string;
|
|
@@ -465,14 +512,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
465
512
|
} | {
|
|
466
513
|
output: {
|
|
467
514
|
error: {
|
|
468
|
-
code: "
|
|
515
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
469
516
|
details?: readonly Response.error.Detail[] | undefined;
|
|
470
517
|
message: string;
|
|
471
518
|
};
|
|
472
519
|
requestId: string;
|
|
473
520
|
};
|
|
474
521
|
outputFormat: "json";
|
|
475
|
-
status:
|
|
522
|
+
status: 401;
|
|
476
523
|
input: {
|
|
477
524
|
param: {
|
|
478
525
|
orgId: string;
|
|
@@ -486,14 +533,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
486
533
|
} | {
|
|
487
534
|
output: {
|
|
488
535
|
error: {
|
|
489
|
-
code: "
|
|
536
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
490
537
|
details?: readonly Response.error.Detail[] | undefined;
|
|
491
538
|
message: string;
|
|
492
539
|
};
|
|
493
540
|
requestId: string;
|
|
494
541
|
};
|
|
495
542
|
outputFormat: "json";
|
|
496
|
-
status:
|
|
543
|
+
status: 403;
|
|
497
544
|
input: {
|
|
498
545
|
param: {
|
|
499
546
|
orgId: string;
|
|
@@ -507,14 +554,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
507
554
|
} | {
|
|
508
555
|
output: {
|
|
509
556
|
error: {
|
|
510
|
-
code: "
|
|
557
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
511
558
|
details?: readonly Response.error.Detail[] | undefined;
|
|
512
559
|
message: string;
|
|
513
560
|
};
|
|
514
561
|
requestId: string;
|
|
515
562
|
};
|
|
516
563
|
outputFormat: "json";
|
|
517
|
-
status:
|
|
564
|
+
status: 429;
|
|
518
565
|
input: {
|
|
519
566
|
param: {
|
|
520
567
|
orgId: string;
|
|
@@ -528,14 +575,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
528
575
|
} | {
|
|
529
576
|
output: {
|
|
530
577
|
error: {
|
|
531
|
-
code: "
|
|
578
|
+
code: "param_invalid";
|
|
532
579
|
details?: readonly Response.error.Detail[] | undefined;
|
|
533
580
|
message: string;
|
|
534
581
|
};
|
|
535
582
|
requestId: string;
|
|
536
583
|
};
|
|
537
584
|
outputFormat: "json";
|
|
538
|
-
status:
|
|
585
|
+
status: 400;
|
|
539
586
|
input: {
|
|
540
587
|
param: {
|
|
541
588
|
orgId: string;
|
|
@@ -549,14 +596,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
549
596
|
} | {
|
|
550
597
|
output: {
|
|
551
598
|
error: {
|
|
552
|
-
code: "
|
|
599
|
+
code: "organization_not_found" | "project_not_found";
|
|
553
600
|
details?: readonly Response.error.Detail[] | undefined;
|
|
554
601
|
message: string;
|
|
555
602
|
};
|
|
556
603
|
requestId: string;
|
|
557
604
|
};
|
|
558
605
|
outputFormat: "json";
|
|
559
|
-
status:
|
|
606
|
+
status: 404;
|
|
560
607
|
input: {
|
|
561
608
|
param: {
|
|
562
609
|
orgId: string;
|
|
@@ -624,34 +671,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
624
671
|
$get: {
|
|
625
672
|
output: {
|
|
626
673
|
error: {
|
|
627
|
-
code: "
|
|
628
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
629
|
-
message: string;
|
|
630
|
-
};
|
|
631
|
-
requestId: string;
|
|
632
|
-
};
|
|
633
|
-
outputFormat: "json";
|
|
634
|
-
status: 400;
|
|
635
|
-
input: {
|
|
636
|
-
param: {
|
|
637
|
-
orgId: string;
|
|
638
|
-
};
|
|
639
|
-
} & {
|
|
640
|
-
query?: {
|
|
641
|
-
environment?: string | string[];
|
|
642
|
-
} | undefined;
|
|
643
|
-
};
|
|
644
|
-
} | {
|
|
645
|
-
output: {
|
|
646
|
-
error: {
|
|
647
|
-
code: "api_key_invalid" | "api_key_missing";
|
|
674
|
+
code: "upstream_error";
|
|
648
675
|
details?: readonly Response.error.Detail[] | undefined;
|
|
649
676
|
message: string;
|
|
650
677
|
};
|
|
651
678
|
requestId: string;
|
|
652
679
|
};
|
|
653
680
|
outputFormat: "json";
|
|
654
|
-
status:
|
|
681
|
+
status: 502;
|
|
655
682
|
input: {
|
|
656
683
|
param: {
|
|
657
684
|
orgId: string;
|
|
@@ -664,14 +691,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
664
691
|
} | {
|
|
665
692
|
output: {
|
|
666
693
|
error: {
|
|
667
|
-
code: "
|
|
694
|
+
code: "query_invalid";
|
|
668
695
|
details?: readonly Response.error.Detail[] | undefined;
|
|
669
696
|
message: string;
|
|
670
697
|
};
|
|
671
698
|
requestId: string;
|
|
672
699
|
};
|
|
673
700
|
outputFormat: "json";
|
|
674
|
-
status:
|
|
701
|
+
status: 400;
|
|
675
702
|
input: {
|
|
676
703
|
param: {
|
|
677
704
|
orgId: string;
|
|
@@ -684,14 +711,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
684
711
|
} | {
|
|
685
712
|
output: {
|
|
686
713
|
error: {
|
|
687
|
-
code: "
|
|
714
|
+
code: "api_key_malformed";
|
|
688
715
|
details?: readonly Response.error.Detail[] | undefined;
|
|
689
716
|
message: string;
|
|
690
717
|
};
|
|
691
718
|
requestId: string;
|
|
692
719
|
};
|
|
693
720
|
outputFormat: "json";
|
|
694
|
-
status:
|
|
721
|
+
status: 400;
|
|
695
722
|
input: {
|
|
696
723
|
param: {
|
|
697
724
|
orgId: string;
|
|
@@ -704,14 +731,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
704
731
|
} | {
|
|
705
732
|
output: {
|
|
706
733
|
error: {
|
|
707
|
-
code: "
|
|
734
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
708
735
|
details?: readonly Response.error.Detail[] | undefined;
|
|
709
736
|
message: string;
|
|
710
737
|
};
|
|
711
738
|
requestId: string;
|
|
712
739
|
};
|
|
713
740
|
outputFormat: "json";
|
|
714
|
-
status:
|
|
741
|
+
status: 401;
|
|
715
742
|
input: {
|
|
716
743
|
param: {
|
|
717
744
|
orgId: string;
|
|
@@ -724,14 +751,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
724
751
|
} | {
|
|
725
752
|
output: {
|
|
726
753
|
error: {
|
|
727
|
-
code: "
|
|
754
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
728
755
|
details?: readonly Response.error.Detail[] | undefined;
|
|
729
756
|
message: string;
|
|
730
757
|
};
|
|
731
758
|
requestId: string;
|
|
732
759
|
};
|
|
733
760
|
outputFormat: "json";
|
|
734
|
-
status:
|
|
761
|
+
status: 403;
|
|
735
762
|
input: {
|
|
736
763
|
param: {
|
|
737
764
|
orgId: string;
|
|
@@ -744,14 +771,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
744
771
|
} | {
|
|
745
772
|
output: {
|
|
746
773
|
error: {
|
|
747
|
-
code: "
|
|
774
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
748
775
|
details?: readonly Response.error.Detail[] | undefined;
|
|
749
776
|
message: string;
|
|
750
777
|
};
|
|
751
778
|
requestId: string;
|
|
752
779
|
};
|
|
753
780
|
outputFormat: "json";
|
|
754
|
-
status:
|
|
781
|
+
status: 429;
|
|
755
782
|
input: {
|
|
756
783
|
param: {
|
|
757
784
|
orgId: string;
|
|
@@ -829,206 +856,147 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
829
856
|
environment?: string | string[];
|
|
830
857
|
} | undefined;
|
|
831
858
|
};
|
|
832
|
-
};
|
|
833
|
-
};
|
|
834
|
-
} & {
|
|
835
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
836
|
-
$patch: {
|
|
837
|
-
output: {
|
|
838
|
-
error: {
|
|
839
|
-
code: "api_key_malformed";
|
|
840
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
841
|
-
message: string;
|
|
842
|
-
};
|
|
843
|
-
requestId: string;
|
|
844
|
-
};
|
|
845
|
-
outputFormat: "json";
|
|
846
|
-
status: 400;
|
|
847
|
-
input: {
|
|
848
|
-
param: {
|
|
849
|
-
keyId: string;
|
|
850
|
-
orgId: string;
|
|
851
|
-
projectId: string;
|
|
852
|
-
};
|
|
853
|
-
} & {
|
|
854
|
-
json: {
|
|
855
|
-
allowedIps: readonly string[];
|
|
856
|
-
};
|
|
857
|
-
};
|
|
858
859
|
} | {
|
|
859
860
|
output: {
|
|
860
861
|
error: {
|
|
861
|
-
code: "
|
|
862
|
+
code: "organization_not_found";
|
|
862
863
|
details?: readonly Response.error.Detail[] | undefined;
|
|
863
864
|
message: string;
|
|
864
865
|
};
|
|
865
866
|
requestId: string;
|
|
866
867
|
};
|
|
867
868
|
outputFormat: "json";
|
|
868
|
-
status:
|
|
869
|
+
status: 404;
|
|
869
870
|
input: {
|
|
870
871
|
param: {
|
|
871
|
-
keyId: string;
|
|
872
872
|
orgId: string;
|
|
873
|
-
projectId: string;
|
|
874
873
|
};
|
|
875
874
|
} & {
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
};
|
|
875
|
+
query?: {
|
|
876
|
+
environment?: string | string[];
|
|
877
|
+
} | undefined;
|
|
879
878
|
};
|
|
880
|
-
}
|
|
879
|
+
};
|
|
880
|
+
};
|
|
881
|
+
} & {
|
|
882
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
|
|
883
|
+
$post: {
|
|
881
884
|
output: {
|
|
882
885
|
error: {
|
|
883
|
-
code: "
|
|
886
|
+
code: "upstream_error";
|
|
884
887
|
details?: readonly Response.error.Detail[] | undefined;
|
|
885
888
|
message: string;
|
|
886
889
|
};
|
|
887
890
|
requestId: string;
|
|
888
891
|
};
|
|
889
892
|
outputFormat: "json";
|
|
890
|
-
status:
|
|
893
|
+
status: 502;
|
|
891
894
|
input: {
|
|
892
895
|
param: {
|
|
893
896
|
keyId: string;
|
|
894
897
|
orgId: string;
|
|
895
|
-
projectId: string;
|
|
896
|
-
};
|
|
897
|
-
} & {
|
|
898
|
-
json: {
|
|
899
|
-
allowedIps: readonly string[];
|
|
900
898
|
};
|
|
901
899
|
};
|
|
902
900
|
} | {
|
|
903
901
|
output: {
|
|
904
902
|
error: {
|
|
905
|
-
code: "
|
|
903
|
+
code: "api_key_malformed";
|
|
906
904
|
details?: readonly Response.error.Detail[] | undefined;
|
|
907
905
|
message: string;
|
|
908
906
|
};
|
|
909
907
|
requestId: string;
|
|
910
908
|
};
|
|
911
909
|
outputFormat: "json";
|
|
912
|
-
status:
|
|
910
|
+
status: 400;
|
|
913
911
|
input: {
|
|
914
912
|
param: {
|
|
915
913
|
keyId: string;
|
|
916
914
|
orgId: string;
|
|
917
|
-
projectId: string;
|
|
918
|
-
};
|
|
919
|
-
} & {
|
|
920
|
-
json: {
|
|
921
|
-
allowedIps: readonly string[];
|
|
922
915
|
};
|
|
923
916
|
};
|
|
924
917
|
} | {
|
|
925
918
|
output: {
|
|
926
919
|
error: {
|
|
927
|
-
code: "
|
|
920
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
928
921
|
details?: readonly Response.error.Detail[] | undefined;
|
|
929
922
|
message: string;
|
|
930
923
|
};
|
|
931
924
|
requestId: string;
|
|
932
925
|
};
|
|
933
926
|
outputFormat: "json";
|
|
934
|
-
status:
|
|
927
|
+
status: 401;
|
|
935
928
|
input: {
|
|
936
929
|
param: {
|
|
937
930
|
keyId: string;
|
|
938
931
|
orgId: string;
|
|
939
|
-
projectId: string;
|
|
940
|
-
};
|
|
941
|
-
} & {
|
|
942
|
-
json: {
|
|
943
|
-
allowedIps: readonly string[];
|
|
944
932
|
};
|
|
945
933
|
};
|
|
946
934
|
} | {
|
|
947
935
|
output: {
|
|
948
936
|
error: {
|
|
949
|
-
code: "
|
|
937
|
+
code: "param_invalid";
|
|
950
938
|
details?: readonly Response.error.Detail[] | undefined;
|
|
951
939
|
message: string;
|
|
952
940
|
};
|
|
953
941
|
requestId: string;
|
|
954
942
|
};
|
|
955
943
|
outputFormat: "json";
|
|
956
|
-
status:
|
|
944
|
+
status: 400;
|
|
957
945
|
input: {
|
|
958
946
|
param: {
|
|
959
947
|
keyId: string;
|
|
960
948
|
orgId: string;
|
|
961
|
-
projectId: string;
|
|
962
|
-
};
|
|
963
|
-
} & {
|
|
964
|
-
json: {
|
|
965
|
-
allowedIps: readonly string[];
|
|
966
949
|
};
|
|
967
950
|
};
|
|
968
951
|
} | {
|
|
969
952
|
output: {
|
|
970
953
|
error: {
|
|
971
|
-
code: "
|
|
954
|
+
code: "forbidden";
|
|
972
955
|
details?: readonly Response.error.Detail[] | undefined;
|
|
973
956
|
message: string;
|
|
974
957
|
};
|
|
975
958
|
requestId: string;
|
|
976
959
|
};
|
|
977
960
|
outputFormat: "json";
|
|
978
|
-
status:
|
|
961
|
+
status: 403;
|
|
979
962
|
input: {
|
|
980
963
|
param: {
|
|
981
964
|
keyId: string;
|
|
982
965
|
orgId: string;
|
|
983
|
-
projectId: string;
|
|
984
|
-
};
|
|
985
|
-
} & {
|
|
986
|
-
json: {
|
|
987
|
-
allowedIps: readonly string[];
|
|
988
966
|
};
|
|
989
967
|
};
|
|
990
968
|
} | {
|
|
991
969
|
output: {
|
|
992
970
|
error: {
|
|
993
|
-
code: "
|
|
971
|
+
code: "api_keys_not_enabled";
|
|
994
972
|
details?: readonly Response.error.Detail[] | undefined;
|
|
995
973
|
message: string;
|
|
996
974
|
};
|
|
997
975
|
requestId: string;
|
|
998
976
|
};
|
|
999
977
|
outputFormat: "json";
|
|
1000
|
-
status:
|
|
978
|
+
status: 404;
|
|
1001
979
|
input: {
|
|
1002
980
|
param: {
|
|
1003
981
|
keyId: string;
|
|
1004
982
|
orgId: string;
|
|
1005
|
-
projectId: string;
|
|
1006
|
-
};
|
|
1007
|
-
} & {
|
|
1008
|
-
json: {
|
|
1009
|
-
allowedIps: readonly string[];
|
|
1010
983
|
};
|
|
1011
984
|
};
|
|
1012
985
|
} | {
|
|
1013
986
|
output: {
|
|
1014
987
|
error: {
|
|
1015
|
-
code: "
|
|
988
|
+
code: "scope_not_issuable";
|
|
1016
989
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1017
990
|
message: string;
|
|
1018
991
|
};
|
|
1019
992
|
requestId: string;
|
|
1020
993
|
};
|
|
1021
994
|
outputFormat: "json";
|
|
1022
|
-
status:
|
|
995
|
+
status: 403;
|
|
1023
996
|
input: {
|
|
1024
997
|
param: {
|
|
1025
998
|
keyId: string;
|
|
1026
999
|
orgId: string;
|
|
1027
|
-
projectId: string;
|
|
1028
|
-
};
|
|
1029
|
-
} & {
|
|
1030
|
-
json: {
|
|
1031
|
-
allowedIps: readonly string[];
|
|
1032
1000
|
};
|
|
1033
1001
|
};
|
|
1034
1002
|
} | {
|
|
@@ -1046,11 +1014,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1046
1014
|
param: {
|
|
1047
1015
|
keyId: string;
|
|
1048
1016
|
orgId: string;
|
|
1049
|
-
projectId: string;
|
|
1050
|
-
};
|
|
1051
|
-
} & {
|
|
1052
|
-
json: {
|
|
1053
|
-
allowedIps: readonly string[];
|
|
1054
1017
|
};
|
|
1055
1018
|
};
|
|
1056
1019
|
} | {
|
|
@@ -1067,6 +1030,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1067
1030
|
projectId?: string | undefined;
|
|
1068
1031
|
scopes: string[];
|
|
1069
1032
|
tokenLast4: string;
|
|
1033
|
+
token: string;
|
|
1070
1034
|
};
|
|
1071
1035
|
outputFormat: "json";
|
|
1072
1036
|
status: 200;
|
|
@@ -1074,21 +1038,477 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1074
1038
|
param: {
|
|
1075
1039
|
keyId: string;
|
|
1076
1040
|
orgId: string;
|
|
1077
|
-
projectId: string;
|
|
1078
|
-
};
|
|
1079
|
-
} & {
|
|
1080
|
-
json: {
|
|
1081
|
-
allowedIps: readonly string[];
|
|
1082
1041
|
};
|
|
1083
1042
|
};
|
|
1084
1043
|
};
|
|
1085
1044
|
};
|
|
1086
1045
|
} & {
|
|
1087
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/
|
|
1046
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
1088
1047
|
$delete: {
|
|
1089
1048
|
output: {
|
|
1090
1049
|
error: {
|
|
1091
|
-
code: "
|
|
1050
|
+
code: "upstream_error";
|
|
1051
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1052
|
+
message: string;
|
|
1053
|
+
};
|
|
1054
|
+
requestId: string;
|
|
1055
|
+
};
|
|
1056
|
+
outputFormat: "json";
|
|
1057
|
+
status: 502;
|
|
1058
|
+
input: {
|
|
1059
|
+
param: {
|
|
1060
|
+
keyId: string;
|
|
1061
|
+
orgId: string;
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
} | {
|
|
1065
|
+
output: {
|
|
1066
|
+
error: {
|
|
1067
|
+
code: "api_key_malformed";
|
|
1068
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1069
|
+
message: string;
|
|
1070
|
+
};
|
|
1071
|
+
requestId: string;
|
|
1072
|
+
};
|
|
1073
|
+
outputFormat: "json";
|
|
1074
|
+
status: 400;
|
|
1075
|
+
input: {
|
|
1076
|
+
param: {
|
|
1077
|
+
keyId: string;
|
|
1078
|
+
orgId: string;
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
1081
|
+
} | {
|
|
1082
|
+
output: {
|
|
1083
|
+
error: {
|
|
1084
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1085
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1086
|
+
message: string;
|
|
1087
|
+
};
|
|
1088
|
+
requestId: string;
|
|
1089
|
+
};
|
|
1090
|
+
outputFormat: "json";
|
|
1091
|
+
status: 401;
|
|
1092
|
+
input: {
|
|
1093
|
+
param: {
|
|
1094
|
+
keyId: string;
|
|
1095
|
+
orgId: string;
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1098
|
+
} | {
|
|
1099
|
+
output: {
|
|
1100
|
+
error: {
|
|
1101
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
1102
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1103
|
+
message: string;
|
|
1104
|
+
};
|
|
1105
|
+
requestId: string;
|
|
1106
|
+
};
|
|
1107
|
+
outputFormat: "json";
|
|
1108
|
+
status: 403;
|
|
1109
|
+
input: {
|
|
1110
|
+
param: {
|
|
1111
|
+
keyId: string;
|
|
1112
|
+
orgId: string;
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
} | {
|
|
1116
|
+
output: {
|
|
1117
|
+
error: {
|
|
1118
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1119
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1120
|
+
message: string;
|
|
1121
|
+
};
|
|
1122
|
+
requestId: string;
|
|
1123
|
+
};
|
|
1124
|
+
outputFormat: "json";
|
|
1125
|
+
status: 429;
|
|
1126
|
+
input: {
|
|
1127
|
+
param: {
|
|
1128
|
+
keyId: string;
|
|
1129
|
+
orgId: string;
|
|
1130
|
+
};
|
|
1131
|
+
};
|
|
1132
|
+
} | {
|
|
1133
|
+
output: {
|
|
1134
|
+
error: {
|
|
1135
|
+
code: "param_invalid";
|
|
1136
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1137
|
+
message: string;
|
|
1138
|
+
};
|
|
1139
|
+
requestId: string;
|
|
1140
|
+
};
|
|
1141
|
+
outputFormat: "json";
|
|
1142
|
+
status: 400;
|
|
1143
|
+
input: {
|
|
1144
|
+
param: {
|
|
1145
|
+
keyId: string;
|
|
1146
|
+
orgId: string;
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
} | {
|
|
1150
|
+
output: {
|
|
1151
|
+
error: {
|
|
1152
|
+
code: "forbidden";
|
|
1153
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1154
|
+
message: string;
|
|
1155
|
+
};
|
|
1156
|
+
requestId: string;
|
|
1157
|
+
};
|
|
1158
|
+
outputFormat: "json";
|
|
1159
|
+
status: 403;
|
|
1160
|
+
input: {
|
|
1161
|
+
param: {
|
|
1162
|
+
keyId: string;
|
|
1163
|
+
orgId: string;
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
} | {
|
|
1167
|
+
output: {
|
|
1168
|
+
error: {
|
|
1169
|
+
code: "api_keys_not_enabled";
|
|
1170
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1171
|
+
message: string;
|
|
1172
|
+
};
|
|
1173
|
+
requestId: string;
|
|
1174
|
+
};
|
|
1175
|
+
outputFormat: "json";
|
|
1176
|
+
status: 404;
|
|
1177
|
+
input: {
|
|
1178
|
+
param: {
|
|
1179
|
+
keyId: string;
|
|
1180
|
+
orgId: string;
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
} | {
|
|
1184
|
+
output: {
|
|
1185
|
+
error: {
|
|
1186
|
+
code: "api_key_not_found";
|
|
1187
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1188
|
+
message: string;
|
|
1189
|
+
};
|
|
1190
|
+
requestId: string;
|
|
1191
|
+
};
|
|
1192
|
+
outputFormat: "json";
|
|
1193
|
+
status: 404;
|
|
1194
|
+
input: {
|
|
1195
|
+
param: {
|
|
1196
|
+
keyId: string;
|
|
1197
|
+
orgId: string;
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
} | {
|
|
1201
|
+
output: {
|
|
1202
|
+
id: string;
|
|
1203
|
+
};
|
|
1204
|
+
outputFormat: "json";
|
|
1205
|
+
status: 200;
|
|
1206
|
+
input: {
|
|
1207
|
+
param: {
|
|
1208
|
+
keyId: string;
|
|
1209
|
+
orgId: string;
|
|
1210
|
+
};
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
} & {
|
|
1215
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
1216
|
+
$patch: {
|
|
1217
|
+
output: {
|
|
1218
|
+
error: {
|
|
1219
|
+
code: "upstream_error";
|
|
1220
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1221
|
+
message: string;
|
|
1222
|
+
};
|
|
1223
|
+
requestId: string;
|
|
1224
|
+
};
|
|
1225
|
+
outputFormat: "json";
|
|
1226
|
+
status: 502;
|
|
1227
|
+
input: {
|
|
1228
|
+
param: {
|
|
1229
|
+
keyId: string;
|
|
1230
|
+
orgId: string;
|
|
1231
|
+
projectId: string;
|
|
1232
|
+
};
|
|
1233
|
+
} & {
|
|
1234
|
+
json: {
|
|
1235
|
+
allowedIps: readonly string[];
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1238
|
+
} | {
|
|
1239
|
+
output: {
|
|
1240
|
+
error: {
|
|
1241
|
+
code: "api_key_malformed";
|
|
1242
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1243
|
+
message: string;
|
|
1244
|
+
};
|
|
1245
|
+
requestId: string;
|
|
1246
|
+
};
|
|
1247
|
+
outputFormat: "json";
|
|
1248
|
+
status: 400;
|
|
1249
|
+
input: {
|
|
1250
|
+
param: {
|
|
1251
|
+
keyId: string;
|
|
1252
|
+
orgId: string;
|
|
1253
|
+
projectId: string;
|
|
1254
|
+
};
|
|
1255
|
+
} & {
|
|
1256
|
+
json: {
|
|
1257
|
+
allowedIps: readonly string[];
|
|
1258
|
+
};
|
|
1259
|
+
};
|
|
1260
|
+
} | {
|
|
1261
|
+
output: {
|
|
1262
|
+
error: {
|
|
1263
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1264
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1265
|
+
message: string;
|
|
1266
|
+
};
|
|
1267
|
+
requestId: string;
|
|
1268
|
+
};
|
|
1269
|
+
outputFormat: "json";
|
|
1270
|
+
status: 401;
|
|
1271
|
+
input: {
|
|
1272
|
+
param: {
|
|
1273
|
+
keyId: string;
|
|
1274
|
+
orgId: string;
|
|
1275
|
+
projectId: string;
|
|
1276
|
+
};
|
|
1277
|
+
} & {
|
|
1278
|
+
json: {
|
|
1279
|
+
allowedIps: readonly string[];
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
} | {
|
|
1283
|
+
output: {
|
|
1284
|
+
error: {
|
|
1285
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
1286
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1287
|
+
message: string;
|
|
1288
|
+
};
|
|
1289
|
+
requestId: string;
|
|
1290
|
+
};
|
|
1291
|
+
outputFormat: "json";
|
|
1292
|
+
status: 403;
|
|
1293
|
+
input: {
|
|
1294
|
+
param: {
|
|
1295
|
+
keyId: string;
|
|
1296
|
+
orgId: string;
|
|
1297
|
+
projectId: string;
|
|
1298
|
+
};
|
|
1299
|
+
} & {
|
|
1300
|
+
json: {
|
|
1301
|
+
allowedIps: readonly string[];
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
} | {
|
|
1305
|
+
output: {
|
|
1306
|
+
error: {
|
|
1307
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1308
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1309
|
+
message: string;
|
|
1310
|
+
};
|
|
1311
|
+
requestId: string;
|
|
1312
|
+
};
|
|
1313
|
+
outputFormat: "json";
|
|
1314
|
+
status: 429;
|
|
1315
|
+
input: {
|
|
1316
|
+
param: {
|
|
1317
|
+
keyId: string;
|
|
1318
|
+
orgId: string;
|
|
1319
|
+
projectId: string;
|
|
1320
|
+
};
|
|
1321
|
+
} & {
|
|
1322
|
+
json: {
|
|
1323
|
+
allowedIps: readonly string[];
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1326
|
+
} | {
|
|
1327
|
+
output: {
|
|
1328
|
+
error: {
|
|
1329
|
+
code: "param_invalid";
|
|
1330
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1331
|
+
message: string;
|
|
1332
|
+
};
|
|
1333
|
+
requestId: string;
|
|
1334
|
+
};
|
|
1335
|
+
outputFormat: "json";
|
|
1336
|
+
status: 400;
|
|
1337
|
+
input: {
|
|
1338
|
+
param: {
|
|
1339
|
+
keyId: string;
|
|
1340
|
+
orgId: string;
|
|
1341
|
+
projectId: string;
|
|
1342
|
+
};
|
|
1343
|
+
} & {
|
|
1344
|
+
json: {
|
|
1345
|
+
allowedIps: readonly string[];
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
} | {
|
|
1349
|
+
output: {
|
|
1350
|
+
error: {
|
|
1351
|
+
code: "body_invalid";
|
|
1352
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1353
|
+
message: string;
|
|
1354
|
+
};
|
|
1355
|
+
requestId: string;
|
|
1356
|
+
};
|
|
1357
|
+
outputFormat: "json";
|
|
1358
|
+
status: 400;
|
|
1359
|
+
input: {
|
|
1360
|
+
param: {
|
|
1361
|
+
keyId: string;
|
|
1362
|
+
orgId: string;
|
|
1363
|
+
projectId: string;
|
|
1364
|
+
};
|
|
1365
|
+
} & {
|
|
1366
|
+
json: {
|
|
1367
|
+
allowedIps: readonly string[];
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1370
|
+
} | {
|
|
1371
|
+
output: {
|
|
1372
|
+
error: {
|
|
1373
|
+
code: "forbidden";
|
|
1374
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1375
|
+
message: string;
|
|
1376
|
+
};
|
|
1377
|
+
requestId: string;
|
|
1378
|
+
};
|
|
1379
|
+
outputFormat: "json";
|
|
1380
|
+
status: 403;
|
|
1381
|
+
input: {
|
|
1382
|
+
param: {
|
|
1383
|
+
keyId: string;
|
|
1384
|
+
orgId: string;
|
|
1385
|
+
projectId: string;
|
|
1386
|
+
};
|
|
1387
|
+
} & {
|
|
1388
|
+
json: {
|
|
1389
|
+
allowedIps: readonly string[];
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
} | {
|
|
1393
|
+
output: {
|
|
1394
|
+
error: {
|
|
1395
|
+
code: "organization_not_found" | "project_not_found";
|
|
1396
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1397
|
+
message: string;
|
|
1398
|
+
};
|
|
1399
|
+
requestId: string;
|
|
1400
|
+
};
|
|
1401
|
+
outputFormat: "json";
|
|
1402
|
+
status: 404;
|
|
1403
|
+
input: {
|
|
1404
|
+
param: {
|
|
1405
|
+
keyId: string;
|
|
1406
|
+
orgId: string;
|
|
1407
|
+
projectId: string;
|
|
1408
|
+
};
|
|
1409
|
+
} & {
|
|
1410
|
+
json: {
|
|
1411
|
+
allowedIps: readonly string[];
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
} | {
|
|
1415
|
+
output: {
|
|
1416
|
+
error: {
|
|
1417
|
+
code: "api_keys_not_enabled";
|
|
1418
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1419
|
+
message: string;
|
|
1420
|
+
};
|
|
1421
|
+
requestId: string;
|
|
1422
|
+
};
|
|
1423
|
+
outputFormat: "json";
|
|
1424
|
+
status: 404;
|
|
1425
|
+
input: {
|
|
1426
|
+
param: {
|
|
1427
|
+
keyId: string;
|
|
1428
|
+
orgId: string;
|
|
1429
|
+
projectId: string;
|
|
1430
|
+
};
|
|
1431
|
+
} & {
|
|
1432
|
+
json: {
|
|
1433
|
+
allowedIps: readonly string[];
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
} | {
|
|
1437
|
+
output: {
|
|
1438
|
+
error: {
|
|
1439
|
+
code: "api_key_not_found";
|
|
1440
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1441
|
+
message: string;
|
|
1442
|
+
};
|
|
1443
|
+
requestId: string;
|
|
1444
|
+
};
|
|
1445
|
+
outputFormat: "json";
|
|
1446
|
+
status: 404;
|
|
1447
|
+
input: {
|
|
1448
|
+
param: {
|
|
1449
|
+
keyId: string;
|
|
1450
|
+
orgId: string;
|
|
1451
|
+
projectId: string;
|
|
1452
|
+
};
|
|
1453
|
+
} & {
|
|
1454
|
+
json: {
|
|
1455
|
+
allowedIps: readonly string[];
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
} | {
|
|
1459
|
+
output: {
|
|
1460
|
+
allowedIps: readonly string[];
|
|
1461
|
+
createdAt: string;
|
|
1462
|
+
createdBy?: string | undefined;
|
|
1463
|
+
environment: "production" | "sandbox";
|
|
1464
|
+
expiresAt?: string | undefined;
|
|
1465
|
+
id: string;
|
|
1466
|
+
lastUsedAt?: string | undefined;
|
|
1467
|
+
name?: string | undefined;
|
|
1468
|
+
orgId: string;
|
|
1469
|
+
projectId?: string | undefined;
|
|
1470
|
+
scopes: string[];
|
|
1471
|
+
tokenLast4: string;
|
|
1472
|
+
};
|
|
1473
|
+
outputFormat: "json";
|
|
1474
|
+
status: 200;
|
|
1475
|
+
input: {
|
|
1476
|
+
param: {
|
|
1477
|
+
keyId: string;
|
|
1478
|
+
orgId: string;
|
|
1479
|
+
projectId: string;
|
|
1480
|
+
};
|
|
1481
|
+
} & {
|
|
1482
|
+
json: {
|
|
1483
|
+
allowedIps: readonly string[];
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
} & {
|
|
1489
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
|
|
1490
|
+
$post: {
|
|
1491
|
+
output: {
|
|
1492
|
+
error: {
|
|
1493
|
+
code: "upstream_error";
|
|
1494
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1495
|
+
message: string;
|
|
1496
|
+
};
|
|
1497
|
+
requestId: string;
|
|
1498
|
+
};
|
|
1499
|
+
outputFormat: "json";
|
|
1500
|
+
status: 502;
|
|
1501
|
+
input: {
|
|
1502
|
+
param: {
|
|
1503
|
+
keyId: string;
|
|
1504
|
+
orgId: string;
|
|
1505
|
+
projectId: string;
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
} | {
|
|
1509
|
+
output: {
|
|
1510
|
+
error: {
|
|
1511
|
+
code: "api_key_malformed";
|
|
1092
1512
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1093
1513
|
message: string;
|
|
1094
1514
|
};
|
|
@@ -1124,7 +1544,25 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1124
1544
|
} | {
|
|
1125
1545
|
output: {
|
|
1126
1546
|
error: {
|
|
1127
|
-
code: "
|
|
1547
|
+
code: "param_invalid";
|
|
1548
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1549
|
+
message: string;
|
|
1550
|
+
};
|
|
1551
|
+
requestId: string;
|
|
1552
|
+
};
|
|
1553
|
+
outputFormat: "json";
|
|
1554
|
+
status: 400;
|
|
1555
|
+
input: {
|
|
1556
|
+
param: {
|
|
1557
|
+
keyId: string;
|
|
1558
|
+
orgId: string;
|
|
1559
|
+
projectId: string;
|
|
1560
|
+
};
|
|
1561
|
+
};
|
|
1562
|
+
} | {
|
|
1563
|
+
output: {
|
|
1564
|
+
error: {
|
|
1565
|
+
code: "forbidden";
|
|
1128
1566
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1129
1567
|
message: string;
|
|
1130
1568
|
};
|
|
@@ -1142,14 +1580,68 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1142
1580
|
} | {
|
|
1143
1581
|
output: {
|
|
1144
1582
|
error: {
|
|
1145
|
-
code: "
|
|
1583
|
+
code: "organization_not_found" | "project_not_found";
|
|
1146
1584
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1147
1585
|
message: string;
|
|
1148
1586
|
};
|
|
1149
1587
|
requestId: string;
|
|
1150
1588
|
};
|
|
1151
1589
|
outputFormat: "json";
|
|
1152
|
-
status:
|
|
1590
|
+
status: 404;
|
|
1591
|
+
input: {
|
|
1592
|
+
param: {
|
|
1593
|
+
keyId: string;
|
|
1594
|
+
orgId: string;
|
|
1595
|
+
projectId: string;
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
} | {
|
|
1599
|
+
output: {
|
|
1600
|
+
error: {
|
|
1601
|
+
code: "api_keys_not_enabled";
|
|
1602
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1603
|
+
message: string;
|
|
1604
|
+
};
|
|
1605
|
+
requestId: string;
|
|
1606
|
+
};
|
|
1607
|
+
outputFormat: "json";
|
|
1608
|
+
status: 404;
|
|
1609
|
+
input: {
|
|
1610
|
+
param: {
|
|
1611
|
+
keyId: string;
|
|
1612
|
+
orgId: string;
|
|
1613
|
+
projectId: string;
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
} | {
|
|
1617
|
+
output: {
|
|
1618
|
+
error: {
|
|
1619
|
+
code: "scope_not_issuable";
|
|
1620
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1621
|
+
message: string;
|
|
1622
|
+
};
|
|
1623
|
+
requestId: string;
|
|
1624
|
+
};
|
|
1625
|
+
outputFormat: "json";
|
|
1626
|
+
status: 403;
|
|
1627
|
+
input: {
|
|
1628
|
+
param: {
|
|
1629
|
+
keyId: string;
|
|
1630
|
+
orgId: string;
|
|
1631
|
+
projectId: string;
|
|
1632
|
+
};
|
|
1633
|
+
};
|
|
1634
|
+
} | {
|
|
1635
|
+
output: {
|
|
1636
|
+
error: {
|
|
1637
|
+
code: "api_key_not_found";
|
|
1638
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1639
|
+
message: string;
|
|
1640
|
+
};
|
|
1641
|
+
requestId: string;
|
|
1642
|
+
};
|
|
1643
|
+
outputFormat: "json";
|
|
1644
|
+
status: 404;
|
|
1153
1645
|
input: {
|
|
1154
1646
|
param: {
|
|
1155
1647
|
keyId: string;
|
|
@@ -1158,6 +1650,35 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1158
1650
|
};
|
|
1159
1651
|
};
|
|
1160
1652
|
} | {
|
|
1653
|
+
output: {
|
|
1654
|
+
allowedIps: readonly string[];
|
|
1655
|
+
createdAt: string;
|
|
1656
|
+
createdBy?: string | undefined;
|
|
1657
|
+
environment: "production" | "sandbox";
|
|
1658
|
+
expiresAt?: string | undefined;
|
|
1659
|
+
id: string;
|
|
1660
|
+
lastUsedAt?: string | undefined;
|
|
1661
|
+
name?: string | undefined;
|
|
1662
|
+
orgId: string;
|
|
1663
|
+
projectId?: string | undefined;
|
|
1664
|
+
scopes: string[];
|
|
1665
|
+
tokenLast4: string;
|
|
1666
|
+
token: string;
|
|
1667
|
+
};
|
|
1668
|
+
outputFormat: "json";
|
|
1669
|
+
status: 200;
|
|
1670
|
+
input: {
|
|
1671
|
+
param: {
|
|
1672
|
+
keyId: string;
|
|
1673
|
+
orgId: string;
|
|
1674
|
+
projectId: string;
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
1678
|
+
};
|
|
1679
|
+
} & {
|
|
1680
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
1681
|
+
$delete: {
|
|
1161
1682
|
output: {
|
|
1162
1683
|
error: {
|
|
1163
1684
|
code: "upstream_error";
|
|
@@ -1178,14 +1699,68 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1178
1699
|
} | {
|
|
1179
1700
|
output: {
|
|
1180
1701
|
error: {
|
|
1181
|
-
code: "
|
|
1702
|
+
code: "api_key_malformed";
|
|
1182
1703
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1183
1704
|
message: string;
|
|
1184
1705
|
};
|
|
1185
1706
|
requestId: string;
|
|
1186
1707
|
};
|
|
1187
1708
|
outputFormat: "json";
|
|
1188
|
-
status:
|
|
1709
|
+
status: 400;
|
|
1710
|
+
input: {
|
|
1711
|
+
param: {
|
|
1712
|
+
keyId: string;
|
|
1713
|
+
orgId: string;
|
|
1714
|
+
projectId: string;
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
} | {
|
|
1718
|
+
output: {
|
|
1719
|
+
error: {
|
|
1720
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1721
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1722
|
+
message: string;
|
|
1723
|
+
};
|
|
1724
|
+
requestId: string;
|
|
1725
|
+
};
|
|
1726
|
+
outputFormat: "json";
|
|
1727
|
+
status: 401;
|
|
1728
|
+
input: {
|
|
1729
|
+
param: {
|
|
1730
|
+
keyId: string;
|
|
1731
|
+
orgId: string;
|
|
1732
|
+
projectId: string;
|
|
1733
|
+
};
|
|
1734
|
+
};
|
|
1735
|
+
} | {
|
|
1736
|
+
output: {
|
|
1737
|
+
error: {
|
|
1738
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
1739
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1740
|
+
message: string;
|
|
1741
|
+
};
|
|
1742
|
+
requestId: string;
|
|
1743
|
+
};
|
|
1744
|
+
outputFormat: "json";
|
|
1745
|
+
status: 403;
|
|
1746
|
+
input: {
|
|
1747
|
+
param: {
|
|
1748
|
+
keyId: string;
|
|
1749
|
+
orgId: string;
|
|
1750
|
+
projectId: string;
|
|
1751
|
+
};
|
|
1752
|
+
};
|
|
1753
|
+
} | {
|
|
1754
|
+
output: {
|
|
1755
|
+
error: {
|
|
1756
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1757
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1758
|
+
message: string;
|
|
1759
|
+
};
|
|
1760
|
+
requestId: string;
|
|
1761
|
+
};
|
|
1762
|
+
outputFormat: "json";
|
|
1763
|
+
status: 429;
|
|
1189
1764
|
input: {
|
|
1190
1765
|
param: {
|
|
1191
1766
|
keyId: string;
|
|
@@ -1211,6 +1786,42 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1211
1786
|
projectId: string;
|
|
1212
1787
|
};
|
|
1213
1788
|
};
|
|
1789
|
+
} | {
|
|
1790
|
+
output: {
|
|
1791
|
+
error: {
|
|
1792
|
+
code: "forbidden";
|
|
1793
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1794
|
+
message: string;
|
|
1795
|
+
};
|
|
1796
|
+
requestId: string;
|
|
1797
|
+
};
|
|
1798
|
+
outputFormat: "json";
|
|
1799
|
+
status: 403;
|
|
1800
|
+
input: {
|
|
1801
|
+
param: {
|
|
1802
|
+
keyId: string;
|
|
1803
|
+
orgId: string;
|
|
1804
|
+
projectId: string;
|
|
1805
|
+
};
|
|
1806
|
+
};
|
|
1807
|
+
} | {
|
|
1808
|
+
output: {
|
|
1809
|
+
error: {
|
|
1810
|
+
code: "organization_not_found" | "project_not_found";
|
|
1811
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1812
|
+
message: string;
|
|
1813
|
+
};
|
|
1814
|
+
requestId: string;
|
|
1815
|
+
};
|
|
1816
|
+
outputFormat: "json";
|
|
1817
|
+
status: 404;
|
|
1818
|
+
input: {
|
|
1819
|
+
param: {
|
|
1820
|
+
keyId: string;
|
|
1821
|
+
orgId: string;
|
|
1822
|
+
projectId: string;
|
|
1823
|
+
};
|
|
1824
|
+
};
|
|
1214
1825
|
} | {
|
|
1215
1826
|
output: {
|
|
1216
1827
|
error: {
|