tapimo 0.19.0 → 0.20.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 +13 -5
- package/dist/ApiKey.d.ts +2 -2
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/ApiKey.js +2 -2
- package/dist/ApiKey.js.map +1 -1
- package/dist/ApiKeys.d.ts +85 -11
- package/dist/ApiKeys.d.ts.map +1 -1
- package/dist/ApiKeys.js +218 -56
- package/dist/ApiKeys.js.map +1 -1
- package/dist/App.d.ts +12543 -13912
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +4 -5
- package/dist/App.js.map +1 -1
- package/dist/Scope.d.ts +12 -20
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +20 -36
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +871 -828
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +14 -26
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +93 -186
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +3 -5
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/audit-logs.d.ts +18 -18
- package/dist/admin/apps/audit-logs.js +1 -1
- package/dist/admin/apps/audit-logs.js.map +1 -1
- package/dist/admin/apps/earn-vaults.d.ts +27 -27
- package/dist/admin/apps/earn-vaults.d.ts.map +1 -1
- package/dist/admin/apps/earn-vaults.js +11 -5
- package/dist/admin/apps/earn-vaults.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts +17 -17
- package/dist/admin/apps/prop-amms.d.ts +4 -4
- package/dist/admin/apps/routes-support.js +1 -38
- package/dist/admin/apps/routes-support.js.map +1 -1
- package/dist/admin/apps/routes.d.ts +153 -153
- package/dist/admin/apps/sentinel.d.ts +4 -4
- package/dist/admin/apps/verified-tokens.d.ts +24 -24
- package/dist/admin/apps/zone-delegation-requests.d.ts +332 -0
- package/dist/admin/apps/zone-delegation-requests.d.ts.map +1 -0
- package/dist/admin/apps/zone-delegation-requests.js +200 -0
- package/dist/admin/apps/zone-delegation-requests.js.map +1 -0
- package/dist/admin/apps/zone-delegations.d.ts +512 -52
- package/dist/admin/apps/zone-delegations.d.ts.map +1 -1
- package/dist/admin/apps/zone-delegations.js +134 -44
- package/dist/admin/apps/zone-delegations.js.map +1 -1
- package/dist/admin/index.d.ts +1 -1
- package/dist/admin/index.d.ts.map +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.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 +341 -397
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +4 -2
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/apps/data/App.d.ts +11932 -13214
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +32 -13
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/ZoneSelection.d.ts +1 -1
- package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
- package/dist/apps/data/ZoneSelection.js +2 -2
- package/dist/apps/data/ZoneSelection.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +60 -27
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +91 -16
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/addresses.d.ts +893 -875
- package/dist/apps/data/routes/addresses.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +36 -36
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +3 -1
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +40 -40
- package/dist/apps/data/routes/blocks.d.ts.map +1 -1
- package/dist/apps/data/routes/blocks.js +3 -7
- package/dist/apps/data/routes/blocks.js.map +1 -1
- package/dist/apps/data/routes/coingecko.d.ts +236 -236
- package/dist/apps/data/routes/earn-transactions.d.ts +14 -14
- package/dist/apps/data/routes/earn.d.ts +261 -1445
- package/dist/apps/data/routes/earn.d.ts.map +1 -1
- package/dist/apps/data/routes/earn.js +64 -490
- package/dist/apps/data/routes/earn.js.map +1 -1
- package/dist/apps/data/routes/exchanges.d.ts +144 -144
- package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
- package/dist/apps/data/routes/exchanges.js +5 -15
- package/dist/apps/data/routes/exchanges.js.map +1 -1
- package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
- package/dist/apps/data/routes/fee-amm.js +3 -9
- package/dist/apps/data/routes/fee-amm.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +13 -13
- package/dist/apps/data/routes/receipts.d.ts +53 -53
- package/dist/apps/data/routes/receipts.js +1 -1
- package/dist/apps/data/routes/receipts.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts +52 -0
- package/dist/apps/data/routes/rpc.d.ts.map +1 -1
- package/dist/apps/data/routes/rpc.js +19 -18
- package/dist/apps/data/routes/rpc.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +14 -14
- package/dist/apps/data/routes/tokenlist.d.ts.map +1 -1
- package/dist/apps/data/routes/tokenlist.js +1 -3
- package/dist/apps/data/routes/tokenlist.js.map +1 -1
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +7 -5
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transactions.d.ts +281 -281
- package/dist/apps/data/routes/transactions.js +3 -3
- package/dist/apps/data/routes/transactions.js.map +1 -1
- package/dist/apps/data/routes/transfers.d.ts +12 -12
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +1 -3
- 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/valuation.d.ts.map +1 -1
- package/dist/apps/data/routes/valuation.js +1 -3
- package/dist/apps/data/routes/valuation.js.map +1 -1
- package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
- package/dist/apps/data/routes/webhooks.d.ts +102 -102
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +9 -23
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/data/routes/zone-deposits.d.ts +16 -16
- package/dist/apps/data/routes/zone-withdrawals.d.ts +31 -31
- package/dist/apps/data/routes/zones.d.ts +28 -28
- package/dist/apps/management/App.d.ts +18 -102
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +1 -1
- package/dist/apps/management/App.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +253 -339
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +25 -11
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +92 -92
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +5 -13
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/cli.d.ts.map +1 -1
- package/dist/apps/management/routes/cli.js +3 -9
- package/dist/apps/management/routes/cli.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +16 -16
- package/dist/apps/management/routes/fee-payer-usage.d.ts +38 -38
- package/dist/apps/management/routes/fee-payer-usage.d.ts.map +1 -1
- package/dist/apps/management/routes/fee-payer-usage.js +2 -4
- package/dist/apps/management/routes/fee-payer-usage.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +52 -52
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +4 -12
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
- package/dist/apps/management/routes/invite-links.js +6 -14
- package/dist/apps/management/routes/invite-links.js.map +1 -1
- package/dist/apps/management/routes/me.d.ts +6 -6
- package/dist/apps/management/routes/me.d.ts.map +1 -1
- package/dist/apps/management/routes/me.js +3 -7
- package/dist/apps/management/routes/me.js.map +1 -1
- package/dist/apps/management/routes/members.d.ts +84 -84
- package/dist/apps/management/routes/members.d.ts.map +1 -1
- package/dist/apps/management/routes/members.js +2 -4
- package/dist/apps/management/routes/members.js.map +1 -1
- package/dist/apps/management/routes/orgs.d.ts +44 -44
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +2 -6
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts.map +1 -1
- package/dist/apps/management/routes/projects.js +2 -6
- package/dist/apps/management/routes/projects.js.map +1 -1
- package/dist/apps/management/routes/route-usage.d.ts +34 -34
- package/dist/apps/management/routes/route-usage.d.ts.map +1 -1
- package/dist/apps/management/routes/route-usage.js +2 -4
- package/dist/apps/management/routes/route-usage.js.map +1 -1
- package/dist/apps/management/routes/routes-access-requests.d.ts +120 -91
- package/dist/apps/management/routes/routes-access-requests.d.ts.map +1 -1
- package/dist/apps/management/routes/routes-access-requests.js +49 -9
- package/dist/apps/management/routes/routes-access-requests.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts.map +1 -1
- package/dist/apps/management/routes/usage.js +8 -16
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.d.ts +39 -39
- package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -1
- package/dist/apps/management/routes/verified-token-requests.js +3 -7
- package/dist/apps/management/routes/verified-token-requests.js.map +1 -1
- package/dist/apps/management/routes/webhooks.d.ts +2089 -2089
- package/dist/apps/management/routes/zone-delegations.d.ts +14 -17
- package/dist/apps/management/routes/zone-delegations.d.ts.map +1 -1
- package/dist/apps/management/routes/zone-delegations.js +1 -6
- package/dist/apps/management/routes/zone-delegations.js.map +1 -1
- package/dist/apps/mpp/App.d.ts +44 -44
- package/dist/apps/mpp/App.js +3 -3
- package/dist/apps/mpp/App.js.map +1 -1
- package/dist/apps/mpp/internal/Adapter.js +1 -1
- package/dist/apps/mpp/internal/Adapter.js.map +1 -1
- package/dist/apps/mpp/internal/Error.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Error.js +1 -0
- package/dist/apps/mpp/internal/Error.js.map +1 -1
- package/dist/apps/mpp/internal/Policy.d.ts +5 -1
- package/dist/apps/mpp/internal/Policy.d.ts.map +1 -1
- package/dist/apps/mpp/internal/Policy.js +35 -13
- package/dist/apps/mpp/internal/Policy.js.map +1 -1
- package/dist/apps/relay/App.d.ts +2 -2
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +25 -16
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/apps/routes/App.d.ts +311 -311
- package/dist/apps/routes/routes/deposit-addresses.d.ts +1099 -1099
- package/dist/apps/routes/routes/list.d.ts +74 -74
- package/dist/apps/routes/routes/transfers.d.ts +94 -94
- package/dist/cli/ApiKeys.d.ts +19 -26
- package/dist/cli/ApiKeys.d.ts.map +1 -1
- package/dist/db/Db.d.ts +3 -3
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +27 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +28 -62
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +18 -18
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/rewardRuns.d.ts +21 -0
- package/dist/db/tables/rewardRuns.d.ts.map +1 -1
- package/dist/db/tables/rewardRuns.js +19 -0
- package/dist/db/tables/rewardRuns.js.map +1 -1
- package/dist/db/tables/routesAccessRequests.d.ts +13 -0
- package/dist/db/tables/routesAccessRequests.d.ts.map +1 -1
- package/dist/db/tables/routesAccessRequests.js +12 -0
- package/dist/db/tables/routesAccessRequests.js.map +1 -1
- package/dist/db/tables/zoneDelegationRequests.d.ts +165 -0
- package/dist/db/tables/zoneDelegationRequests.d.ts.map +1 -0
- package/dist/db/tables/{zoneKeyRequests.js → zoneDelegationRequests.js} +43 -42
- package/dist/db/tables/zoneDelegationRequests.js.map +1 -0
- package/dist/db/tables/zoneDelegations.d.ts +11 -5
- package/dist/db/tables/zoneDelegations.d.ts.map +1 -1
- package/dist/db/tables/zoneDelegations.js +21 -3
- package/dist/db/tables/zoneDelegations.js.map +1 -1
- package/dist/handlers/internal/accounts.d.ts +7 -0
- package/dist/handlers/internal/accounts.d.ts.map +1 -0
- package/dist/handlers/internal/{multisig.js → accounts.js} +10 -10
- package/dist/handlers/internal/{multisig.js.map → accounts.js.map} +1 -1
- package/dist/handlers/internal/sponsorship.js +17 -17
- package/dist/handlers/internal/sponsorship.js.map +1 -1
- package/dist/handlers/relay.d.ts +6 -6
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +15 -15
- package/dist/handlers/relay.js.map +1 -1
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +4 -8
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/EarnRates.d.ts.map +1 -1
- package/dist/internal/EarnRates.js +1 -3
- package/dist/internal/EarnRates.js.map +1 -1
- package/dist/internal/EarnVaults.js +2 -2
- package/dist/internal/Log.d.ts +2 -4
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +0 -3
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/Response.d.ts +1 -1
- package/dist/internal/Response.d.ts.map +1 -1
- package/dist/internal/Response.js +0 -3
- package/dist/internal/Response.js.map +1 -1
- package/dist/internal/Schema.d.ts +11 -0
- package/dist/internal/Schema.d.ts.map +1 -1
- package/dist/internal/Schema.js +24 -1
- package/dist/internal/Schema.js.map +1 -1
- package/dist/internal/ZoneAccess.d.ts +70 -35
- package/dist/internal/ZoneAccess.d.ts.map +1 -1
- package/dist/internal/ZoneAccess.js +312 -131
- package/dist/internal/ZoneAccess.js.map +1 -1
- package/dist/internal/ZoneDelegation.d.ts +7 -19
- package/dist/internal/ZoneDelegation.d.ts.map +1 -1
- package/dist/internal/ZoneDelegation.js +8 -29
- package/dist/internal/ZoneDelegation.js.map +1 -1
- package/dist/internal/{ZoneKeyApproval.d.ts → ZoneDelegationApproval.d.ts} +3 -5
- package/dist/internal/ZoneDelegationApproval.d.ts.map +1 -0
- package/dist/internal/ZoneDelegationApproval.js +16 -0
- package/dist/internal/ZoneDelegationApproval.js.map +1 -0
- package/dist/internal/ZoneKeyRewrite.d.ts +98 -0
- package/dist/internal/ZoneKeyRewrite.d.ts.map +1 -0
- package/dist/internal/ZoneKeyRewrite.js +151 -0
- package/dist/internal/ZoneKeyRewrite.js.map +1 -0
- package/dist/internal/rewards/Campaigns.d.ts +2 -0
- package/dist/internal/rewards/Campaigns.d.ts.map +1 -1
- package/dist/internal/rewards/Campaigns.js.map +1 -1
- package/dist/internal/rewards/Distributions.d.ts.map +1 -1
- package/dist/internal/rewards/Distributions.js +2 -6
- package/dist/internal/rewards/Distributions.js.map +1 -1
- package/dist/internal/rewards/Monitor.d.ts +4 -1
- package/dist/internal/rewards/Monitor.d.ts.map +1 -1
- package/dist/internal/rewards/Monitor.js +19 -2
- package/dist/internal/rewards/Monitor.js.map +1 -1
- package/dist/internal/rewards/Runner.d.ts.map +1 -1
- package/dist/internal/rewards/Runner.js +9 -1
- package/dist/internal/rewards/Runner.js.map +1 -1
- package/dist/internal/routes/Action.d.ts.map +1 -1
- package/dist/internal/routes/Action.js +2 -3
- package/dist/internal/routes/Action.js.map +1 -1
- package/dist/internal/routes/Deposit.d.ts.map +1 -1
- package/dist/internal/routes/Deposit.js +2 -6
- package/dist/internal/routes/Deposit.js.map +1 -1
- package/dist/internal/routes/DepositAddress.d.ts.map +1 -1
- package/dist/internal/routes/DepositAddress.js +4 -10
- package/dist/internal/routes/DepositAddress.js.map +1 -1
- package/dist/internal/routes/Policy.d.ts.map +1 -1
- package/dist/internal/routes/Policy.js +2 -1
- package/dist/internal/routes/Policy.js.map +1 -1
- package/dist/internal/routes/Provider.js +8 -8
- package/dist/internal/routes/Provider.js.map +1 -1
- package/dist/internal/routes/Reconciliation.d.ts.map +1 -1
- package/dist/internal/routes/Reconciliation.js +3 -2
- package/dist/internal/routes/Reconciliation.js.map +1 -1
- package/dist/internal/routes/Transfer.d.ts.map +1 -1
- package/dist/internal/routes/Transfer.js +4 -12
- package/dist/internal/routes/Transfer.js.map +1 -1
- package/dist/internal/routes/UniversalDepositAddress.d.ts.map +1 -1
- package/dist/internal/routes/UniversalDepositAddress.js +3 -6
- package/dist/internal/routes/UniversalDepositAddress.js.map +1 -1
- package/dist/internal/routes/providers/SquidOrder.d.ts.map +1 -1
- package/dist/internal/routes/providers/SquidOrder.js +3 -2
- package/dist/internal/routes/providers/SquidOrder.js.map +1 -1
- package/dist/internal/routes/providers/relay.d.ts.map +1 -1
- package/dist/internal/routes/providers/relay.js +4 -3
- package/dist/internal/routes/providers/relay.js.map +1 -1
- package/package.json +20 -5
- package/src/ApiKey.ts +2 -2
- package/src/ApiKeys.test.ts +284 -51
- package/src/ApiKeys.ts +297 -64
- package/src/App.ts +4 -5
- package/src/Client.test-d.ts +33 -126
- package/src/Scope.test.ts +26 -45
- package/src/Scope.ts +24 -37
- package/src/admin/App.test.ts +51 -4
- package/src/admin/App.ts +25 -33
- package/src/admin/Mcp.test.ts +2 -1
- package/src/admin/apps/api-keys.test.ts +90 -20
- package/src/admin/apps/api-keys.ts +5 -8
- package/src/admin/apps/audit-logs.ts +1 -1
- package/src/admin/apps/earn-vaults.test.ts +19 -19
- package/src/admin/apps/earn-vaults.ts +11 -5
- package/src/admin/apps/routes-support.test.ts +254 -3
- package/src/admin/apps/routes-support.ts +1 -44
- package/src/admin/apps/scopes.test.ts +3 -3
- package/src/admin/apps/zone-delegation-requests.test.ts +246 -0
- package/src/admin/apps/zone-delegation-requests.ts +240 -0
- package/src/admin/apps/zone-delegations.test.ts +218 -58
- package/src/admin/apps/zone-delegations.ts +146 -46
- package/src/admin/index.ts +1 -1
- package/src/admin/ui/src/components/ApiKeyForm.tsx +4 -3
- package/src/admin/ui/src/lib/config.ts +3 -3
- package/src/admin/ui/src/lib/query-client.ts +1 -1
- package/src/admin/ui/src/lib/review-queues.ts +10 -10
- package/src/admin/ui/src/lib/routes-setup.test.ts +1 -2
- package/src/admin/ui/src/lib/routes-setup.ts +3 -5
- package/src/admin/ui/src/lib/scopes.test.ts +3 -6
- package/src/admin/ui/src/lib/scopes.ts +2 -9
- package/src/admin/ui/src/lib/{zone-key-requests.ts → zone-delegation-requests.ts} +27 -31
- package/src/admin/ui/src/routeTree.gen.ts +17 -17
- package/src/admin/ui/src/routes/__root.tsx +1 -1
- package/src/admin/ui/src/routes/api-keys.tsx +2 -15
- package/src/admin/ui/src/routes/audit-logs.tsx +2 -2
- package/src/admin/ui/src/routes/index.tsx +11 -11
- package/src/admin/ui/src/routes/organizations.tsx +3 -1
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +3 -1
- package/src/admin/ui/src/routes/organizations_.$orgId_.setup.tsx +1 -3
- package/src/admin/ui/src/routes/{zone-key-requests.tsx → zone-delegation-requests.tsx} +228 -172
- package/src/admin/ui/vite.config.ts +14 -1
- package/src/admin/ui.generated.ts +412 -583
- package/src/analytics/tables/requestEvents.test.ts +13 -3
- package/src/analytics/tables/requestEvents.ts +4 -3
- package/src/apps/data/App.test.ts +72 -35
- package/src/apps/data/App.ts +29 -13
- package/src/apps/data/ZoneSelection.test.ts +53 -70
- package/src/apps/data/ZoneSelection.ts +2 -2
- package/src/apps/data/routes/activities.test.ts +140 -6
- package/src/apps/data/routes/activities.ts +124 -18
- package/src/apps/data/routes/balances.ts +5 -1
- package/src/apps/data/routes/blocks.ts +9 -13
- package/src/apps/data/routes/earn-transactions.local.test.ts +6 -1
- package/src/apps/data/routes/earn-transactions.test.ts +7 -3
- package/src/apps/data/routes/earn.bench.ts +0 -14
- package/src/apps/data/routes/earn.discovery.test.ts +4 -39
- package/src/apps/data/routes/earn.local.test.ts +27 -34
- package/src/apps/data/routes/earn.test.ts +172 -490
- package/src/apps/data/routes/earn.ts +103 -652
- package/src/apps/data/routes/exchanges.ts +20 -30
- package/src/apps/data/routes/fee-amm.ts +12 -18
- package/src/apps/data/routes/indexer.test.ts +14 -12
- package/src/apps/data/routes/receipts.ts +1 -1
- package/src/apps/data/routes/rpc.test.ts +23 -18
- package/src/apps/data/routes/rpc.ts +21 -21
- package/src/apps/data/routes/rpc.zone.test.ts +60 -6
- package/src/apps/data/routes/tokenlist.ts +4 -6
- package/src/apps/data/routes/tokens.test.ts +20 -0
- package/src/apps/data/routes/tokens.ts +10 -5
- package/src/apps/data/routes/transactions.ts +3 -3
- package/src/apps/data/routes/transfers.ts +4 -6
- package/src/apps/data/routes/valuation.test.ts +2 -4
- package/src/apps/data/routes/valuation.ts +4 -6
- package/src/apps/data/routes/webhooks.test.ts +1 -5
- package/src/apps/data/routes/webhooks.ts +30 -44
- package/src/apps/data/routes/zones.test.ts +35 -19
- package/src/apps/management/App.ts +3 -1
- package/src/apps/management/routes/api-keys.test.ts +112 -22
- package/src/apps/management/routes/api-keys.ts +30 -15
- package/src/apps/management/routes/billing.ts +17 -25
- package/src/apps/management/routes/cli.ts +12 -18
- package/src/apps/management/routes/fee-payer-usage.ts +5 -4
- package/src/apps/management/routes/invitations.ts +16 -21
- package/src/apps/management/routes/invite-links.ts +18 -26
- package/src/apps/management/routes/me.ts +9 -13
- package/src/apps/management/routes/members.ts +5 -7
- package/src/apps/management/routes/orgs.ts +8 -12
- package/src/apps/management/routes/projects.ts +8 -12
- package/src/apps/management/routes/route-usage.ts +5 -4
- package/src/apps/management/routes/routes-access-requests.test.ts +64 -2
- package/src/apps/management/routes/routes-access-requests.ts +99 -15
- package/src/apps/management/routes/scopes.test.ts +3 -3
- package/src/apps/management/routes/usage.ts +20 -28
- package/src/apps/management/routes/verified-token-requests.ts +9 -13
- package/src/apps/management/routes/zone-delegations.test.ts +3 -5
- package/src/apps/management/routes/zone-delegations.ts +4 -9
- package/src/apps/mpp/App.ts +3 -3
- package/src/apps/mpp/Mpp.zone.test.ts +49 -18
- package/src/apps/mpp/internal/Adapter.ts +1 -1
- package/src/apps/mpp/internal/Error.test.ts +3 -0
- package/src/apps/mpp/internal/Error.ts +1 -0
- package/src/apps/mpp/internal/Policy.test.ts +9 -8
- package/src/apps/mpp/internal/Policy.ts +37 -14
- package/src/apps/relay/App.sandbox.test.ts +15 -14
- package/src/apps/relay/App.test.ts +120 -61
- package/src/apps/relay/App.ts +28 -18
- package/src/apps/relay/App.zone-billing.test.ts +9 -4
- package/src/apps/routes/App.test.ts +21 -22
- package/src/db/Db.ts +34 -3
- package/src/db/Schema.ts +26 -26
- package/src/db/tables/rewardRuns.ts +39 -0
- package/src/db/tables/routesAccessRequests.test.ts +65 -0
- package/src/db/tables/routesAccessRequests.ts +25 -0
- package/src/db/tables/{zoneKeyRequests.test.ts → zoneDelegationRequests.test.ts} +36 -77
- package/src/db/tables/{zoneKeyRequests.ts → zoneDelegationRequests.ts} +69 -52
- package/src/db/tables/zoneDelegations.test.ts +5 -6
- package/src/db/tables/zoneDelegations.ts +25 -8
- package/src/handlers/internal/{multisig.store.test.ts → accounts.store.test.ts} +16 -16
- package/src/handlers/internal/{multisig.test.ts → accounts.test.ts} +85 -82
- package/src/handlers/internal/{multisig.ts → accounts.ts} +9 -9
- package/src/handlers/internal/sponsorship.ts +20 -20
- package/src/handlers/relay.test.ts +48 -46
- package/src/handlers/relay.ts +26 -26
- package/src/internal/Auth.test.ts +6 -2
- package/src/internal/Auth.ts +4 -10
- package/src/internal/EarnRates.ts +4 -6
- package/src/internal/EarnVaults.ts +2 -2
- package/src/internal/Log.test-d.ts +1 -0
- package/src/internal/Log.test.ts +4 -6
- package/src/internal/Log.ts +2 -6
- package/src/internal/Response.ts +0 -3
- package/src/internal/Schema.test.ts +42 -0
- package/src/internal/Schema.ts +36 -1
- package/src/internal/ZoneAccess.test.ts +515 -312
- package/src/internal/ZoneAccess.ts +410 -158
- package/src/internal/ZoneDelegation.test.ts +1 -41
- package/src/internal/ZoneDelegation.ts +10 -48
- package/src/internal/ZoneDelegationApproval.test.ts +22 -0
- package/src/internal/{ZoneKeyApproval.ts → ZoneDelegationApproval.ts} +4 -11
- package/src/internal/ZoneKeyRewrite.ts +231 -0
- package/src/internal/rewards/Campaigns.ts +2 -0
- package/src/internal/rewards/Distributions.ts +8 -12
- package/src/internal/rewards/Monitor.test.ts +64 -0
- package/src/internal/rewards/Monitor.ts +27 -4
- package/src/internal/rewards/Runner.ts +9 -1
- package/src/internal/routes/Action.ts +5 -6
- package/src/internal/routes/Deposit.ts +8 -12
- package/src/internal/routes/DepositAddress.ts +13 -19
- package/src/internal/routes/Policy.ts +2 -1
- package/src/internal/routes/Provider.ts +8 -8
- package/src/internal/routes/Reconciliation.ts +3 -2
- package/src/internal/routes/Transfer.ts +16 -24
- package/src/internal/routes/UniversalDepositAddress.ts +9 -12
- package/src/internal/routes/providers/SquidOrder.ts +3 -2
- package/src/internal/routes/providers/relay.ts +4 -3
- package/dist/admin/apps/zone-key-requests.d.ts +0 -406
- package/dist/admin/apps/zone-key-requests.d.ts.map +0 -1
- package/dist/admin/apps/zone-key-requests.js +0 -183
- package/dist/admin/apps/zone-key-requests.js.map +0 -1
- package/dist/db/tables/zoneKeyRequests.d.ts +0 -289
- package/dist/db/tables/zoneKeyRequests.d.ts.map +0 -1
- package/dist/db/tables/zoneKeyRequests.js.map +0 -1
- package/dist/handlers/internal/multisig.d.ts +0 -7
- package/dist/handlers/internal/multisig.d.ts.map +0 -1
- package/dist/internal/ZoneKeyApproval.d.ts.map +0 -1
- package/dist/internal/ZoneKeyApproval.js +0 -21
- package/dist/internal/ZoneKeyApproval.js.map +0 -1
- package/src/admin/apps/zone-key-requests.test.ts +0 -272
- package/src/admin/apps/zone-key-requests.ts +0 -231
- package/src/internal/ZoneKeyApproval.test.ts +0 -46
|
@@ -20,7 +20,7 @@ export declare namespace schema {
|
|
|
20
20
|
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
21
21
|
scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
22
22
|
tokenLast4: z.ZodMiniString<string>;
|
|
23
|
-
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.
|
|
23
|
+
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniInt>>, z.ZodMiniTransform<readonly number[], readonly number[]>>>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
/** Path parameters addressing a project's key collection. */
|
|
26
26
|
const Params: z.ZodMiniObject<{
|
|
@@ -53,7 +53,7 @@ export declare namespace schema {
|
|
|
53
53
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
54
54
|
scopes: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
55
55
|
sourceKeyId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
56
|
-
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.
|
|
56
|
+
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniInt>>, z.ZodMiniTransform<readonly number[], readonly number[]>>>;
|
|
57
57
|
}, z.core.$strip>;
|
|
58
58
|
/** Schemas for the createApiKey operation. */
|
|
59
59
|
namespace createApiKey {
|
|
@@ -74,7 +74,7 @@ export declare namespace schema {
|
|
|
74
74
|
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
75
75
|
scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
76
76
|
tokenLast4: z.ZodMiniString<string>;
|
|
77
|
-
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.
|
|
77
|
+
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniInt>>, z.ZodMiniTransform<readonly number[], readonly number[]>>>;
|
|
78
78
|
token: z.ZodMiniString<string>;
|
|
79
79
|
}, z.core.$strip>;
|
|
80
80
|
}
|
|
@@ -96,7 +96,7 @@ export declare namespace schema {
|
|
|
96
96
|
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
97
97
|
scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
98
98
|
tokenLast4: z.ZodMiniString<string>;
|
|
99
|
-
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.
|
|
99
|
+
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniInt>>, z.ZodMiniTransform<readonly number[], readonly number[]>>>;
|
|
100
100
|
}, z.core.$strip>>;
|
|
101
101
|
}, z.core.$strip>;
|
|
102
102
|
/** Schemas for the listApiKeys operation. */
|
|
@@ -129,7 +129,7 @@ export declare namespace schema {
|
|
|
129
129
|
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
130
130
|
scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
131
131
|
tokenLast4: z.ZodMiniString<string>;
|
|
132
|
-
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.
|
|
132
|
+
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniInt>>, z.ZodMiniTransform<readonly number[], readonly number[]>>>;
|
|
133
133
|
}, z.core.$strip>>;
|
|
134
134
|
}, z.core.$strip>;
|
|
135
135
|
}
|
|
@@ -163,7 +163,7 @@ export declare namespace schema {
|
|
|
163
163
|
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
164
164
|
scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
165
165
|
tokenLast4: z.ZodMiniString<string>;
|
|
166
|
-
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.
|
|
166
|
+
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniInt>>, z.ZodMiniTransform<readonly number[], readonly number[]>>>;
|
|
167
167
|
}, z.core.$strip>>;
|
|
168
168
|
}, z.core.$strip>;
|
|
169
169
|
}
|
|
@@ -193,7 +193,7 @@ export declare namespace schema {
|
|
|
193
193
|
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
194
194
|
scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
195
195
|
tokenLast4: z.ZodMiniString<string>;
|
|
196
|
-
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.
|
|
196
|
+
zoneTags: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniInt>>, z.ZodMiniTransform<readonly number[], readonly number[]>>>;
|
|
197
197
|
token: z.ZodMiniString<string>;
|
|
198
198
|
}, z.core.$strip>;
|
|
199
199
|
}
|
|
@@ -203,7 +203,7 @@ export declare namespace schema {
|
|
|
203
203
|
const Body: z.ZodMiniObject<{
|
|
204
204
|
allowedIps: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
205
205
|
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
206
|
-
zoneTags: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.
|
|
206
|
+
zoneTags: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniInt>>, z.ZodMiniTransform<readonly number[], readonly number[]>>>>;
|
|
207
207
|
}, z.core.$strip>;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
@@ -213,51 +213,16 @@ export declare namespace schema {
|
|
|
213
213
|
export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
214
214
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
|
|
215
215
|
$post: {
|
|
216
|
-
output: {
|
|
217
|
-
allowedIps: readonly string[];
|
|
218
|
-
createdAt: string;
|
|
219
|
-
createdBy?: string | undefined;
|
|
220
|
-
environment: "production" | "sandbox";
|
|
221
|
-
expiresAt?: string | undefined;
|
|
222
|
-
id: string;
|
|
223
|
-
lastUsedAt?: string | undefined;
|
|
224
|
-
name?: string | undefined;
|
|
225
|
-
orgId: string;
|
|
226
|
-
projectId?: string | undefined;
|
|
227
|
-
scopes: string[];
|
|
228
|
-
tokenLast4: string;
|
|
229
|
-
zoneTags?: readonly number[] | undefined;
|
|
230
|
-
token: string;
|
|
231
|
-
};
|
|
232
|
-
outputFormat: "json";
|
|
233
|
-
status: 200;
|
|
234
|
-
input: {
|
|
235
|
-
param: {
|
|
236
|
-
orgId: string;
|
|
237
|
-
projectId: string;
|
|
238
|
-
};
|
|
239
|
-
} & {
|
|
240
|
-
json: {
|
|
241
|
-
allowedIps?: readonly string[] | undefined;
|
|
242
|
-
environment?: "production" | "sandbox" | undefined;
|
|
243
|
-
expiresAt?: string | undefined;
|
|
244
|
-
name?: string | undefined;
|
|
245
|
-
scopes?: string[] | undefined;
|
|
246
|
-
sourceKeyId?: string | undefined;
|
|
247
|
-
zoneTags?: readonly number[] | undefined;
|
|
248
|
-
};
|
|
249
|
-
};
|
|
250
|
-
} | {
|
|
251
216
|
output: {
|
|
252
217
|
error: {
|
|
253
|
-
code: "
|
|
218
|
+
code: "payload_too_large";
|
|
254
219
|
details?: readonly Response.error.Detail[] | undefined;
|
|
255
220
|
message: string;
|
|
256
221
|
};
|
|
257
222
|
requestId: string;
|
|
258
223
|
};
|
|
259
224
|
outputFormat: "json";
|
|
260
|
-
status:
|
|
225
|
+
status: 413;
|
|
261
226
|
input: {
|
|
262
227
|
param: {
|
|
263
228
|
orgId: string;
|
|
@@ -277,7 +242,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
277
242
|
} | {
|
|
278
243
|
output: {
|
|
279
244
|
error: {
|
|
280
|
-
code: "
|
|
245
|
+
code: "api_key_malformed";
|
|
281
246
|
details?: readonly Response.error.Detail[] | undefined;
|
|
282
247
|
message: string;
|
|
283
248
|
};
|
|
@@ -304,14 +269,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
304
269
|
} | {
|
|
305
270
|
output: {
|
|
306
271
|
error: {
|
|
307
|
-
code: "
|
|
272
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
308
273
|
details?: readonly Response.error.Detail[] | undefined;
|
|
309
274
|
message: string;
|
|
310
275
|
};
|
|
311
276
|
requestId: string;
|
|
312
277
|
};
|
|
313
278
|
outputFormat: "json";
|
|
314
|
-
status:
|
|
279
|
+
status: 401;
|
|
315
280
|
input: {
|
|
316
281
|
param: {
|
|
317
282
|
orgId: string;
|
|
@@ -331,14 +296,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
331
296
|
} | {
|
|
332
297
|
output: {
|
|
333
298
|
error: {
|
|
334
|
-
code: "
|
|
299
|
+
code: "upstream_error";
|
|
335
300
|
details?: readonly Response.error.Detail[] | undefined;
|
|
336
301
|
message: string;
|
|
337
302
|
};
|
|
338
303
|
requestId: string;
|
|
339
304
|
};
|
|
340
305
|
outputFormat: "json";
|
|
341
|
-
status:
|
|
306
|
+
status: 502;
|
|
342
307
|
input: {
|
|
343
308
|
param: {
|
|
344
309
|
orgId: string;
|
|
@@ -358,14 +323,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
358
323
|
} | {
|
|
359
324
|
output: {
|
|
360
325
|
error: {
|
|
361
|
-
code: "
|
|
326
|
+
code: "body_invalid";
|
|
362
327
|
details?: readonly Response.error.Detail[] | undefined;
|
|
363
328
|
message: string;
|
|
364
329
|
};
|
|
365
330
|
requestId: string;
|
|
366
331
|
};
|
|
367
332
|
outputFormat: "json";
|
|
368
|
-
status:
|
|
333
|
+
status: 400;
|
|
369
334
|
input: {
|
|
370
335
|
param: {
|
|
371
336
|
orgId: string;
|
|
@@ -385,14 +350,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
385
350
|
} | {
|
|
386
351
|
output: {
|
|
387
352
|
error: {
|
|
388
|
-
code: "
|
|
353
|
+
code: "param_invalid";
|
|
389
354
|
details?: readonly Response.error.Detail[] | undefined;
|
|
390
355
|
message: string;
|
|
391
356
|
};
|
|
392
357
|
requestId: string;
|
|
393
358
|
};
|
|
394
359
|
outputFormat: "json";
|
|
395
|
-
status:
|
|
360
|
+
status: 400;
|
|
396
361
|
input: {
|
|
397
362
|
param: {
|
|
398
363
|
orgId: string;
|
|
@@ -412,7 +377,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
412
377
|
} | {
|
|
413
378
|
output: {
|
|
414
379
|
error: {
|
|
415
|
-
code: "
|
|
380
|
+
code: "forbidden";
|
|
416
381
|
details?: readonly Response.error.Detail[] | undefined;
|
|
417
382
|
message: string;
|
|
418
383
|
};
|
|
@@ -493,14 +458,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
493
458
|
} | {
|
|
494
459
|
output: {
|
|
495
460
|
error: {
|
|
496
|
-
code: "
|
|
461
|
+
code: "scope_not_issuable";
|
|
497
462
|
details?: readonly Response.error.Detail[] | undefined;
|
|
498
463
|
message: string;
|
|
499
464
|
};
|
|
500
465
|
requestId: string;
|
|
501
466
|
};
|
|
502
467
|
outputFormat: "json";
|
|
503
|
-
status:
|
|
468
|
+
status: 403;
|
|
504
469
|
input: {
|
|
505
470
|
param: {
|
|
506
471
|
orgId: string;
|
|
@@ -519,15 +484,23 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
519
484
|
};
|
|
520
485
|
} | {
|
|
521
486
|
output: {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
487
|
+
allowedIps: readonly string[];
|
|
488
|
+
createdAt: string;
|
|
489
|
+
createdBy?: string | undefined;
|
|
490
|
+
environment: "production" | "sandbox";
|
|
491
|
+
expiresAt?: string | undefined;
|
|
492
|
+
id: string;
|
|
493
|
+
lastUsedAt?: string | undefined;
|
|
494
|
+
name?: string | undefined;
|
|
495
|
+
orgId: string;
|
|
496
|
+
projectId?: string | undefined;
|
|
497
|
+
scopes: string[];
|
|
498
|
+
tokenLast4: string;
|
|
499
|
+
zoneTags?: readonly number[] | undefined;
|
|
500
|
+
token: string;
|
|
528
501
|
};
|
|
529
502
|
outputFormat: "json";
|
|
530
|
-
status:
|
|
503
|
+
status: 200;
|
|
531
504
|
input: {
|
|
532
505
|
param: {
|
|
533
506
|
orgId: string;
|
|
@@ -547,14 +520,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
547
520
|
} | {
|
|
548
521
|
output: {
|
|
549
522
|
error: {
|
|
550
|
-
code: "
|
|
523
|
+
code: "api_key_limit_reached";
|
|
551
524
|
details?: readonly Response.error.Detail[] | undefined;
|
|
552
525
|
message: string;
|
|
553
526
|
};
|
|
554
527
|
requestId: string;
|
|
555
528
|
};
|
|
556
529
|
outputFormat: "json";
|
|
557
|
-
status:
|
|
530
|
+
status: 409;
|
|
558
531
|
input: {
|
|
559
532
|
param: {
|
|
560
533
|
orgId: string;
|
|
@@ -576,37 +549,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
576
549
|
} & {
|
|
577
550
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
|
|
578
551
|
$get: {
|
|
579
|
-
output: {
|
|
580
|
-
data: {
|
|
581
|
-
allowedIps: readonly string[];
|
|
582
|
-
createdAt: string;
|
|
583
|
-
createdBy?: string | undefined;
|
|
584
|
-
environment: "production" | "sandbox";
|
|
585
|
-
expiresAt?: string | undefined;
|
|
586
|
-
id: string;
|
|
587
|
-
lastUsedAt?: string | undefined;
|
|
588
|
-
name?: string | undefined;
|
|
589
|
-
orgId: string;
|
|
590
|
-
projectId?: string | undefined;
|
|
591
|
-
scopes: string[];
|
|
592
|
-
tokenLast4: string;
|
|
593
|
-
zoneTags?: readonly number[] | undefined;
|
|
594
|
-
}[];
|
|
595
|
-
};
|
|
596
|
-
outputFormat: "json";
|
|
597
|
-
status: 200;
|
|
598
|
-
input: {
|
|
599
|
-
param: {
|
|
600
|
-
orgId: string;
|
|
601
|
-
projectId: string;
|
|
602
|
-
};
|
|
603
|
-
} & {
|
|
604
|
-
query?: {
|
|
605
|
-
environment?: string | string[];
|
|
606
|
-
include?: string | string[];
|
|
607
|
-
} | undefined;
|
|
608
|
-
};
|
|
609
|
-
} | {
|
|
610
552
|
output: {
|
|
611
553
|
error: {
|
|
612
554
|
code: "api_key_malformed";
|
|
@@ -631,14 +573,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
631
573
|
} | {
|
|
632
574
|
output: {
|
|
633
575
|
error: {
|
|
634
|
-
code: "
|
|
576
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
635
577
|
details?: readonly Response.error.Detail[] | undefined;
|
|
636
578
|
message: string;
|
|
637
579
|
};
|
|
638
580
|
requestId: string;
|
|
639
581
|
};
|
|
640
582
|
outputFormat: "json";
|
|
641
|
-
status:
|
|
583
|
+
status: 401;
|
|
642
584
|
input: {
|
|
643
585
|
param: {
|
|
644
586
|
orgId: string;
|
|
@@ -653,14 +595,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
653
595
|
} | {
|
|
654
596
|
output: {
|
|
655
597
|
error: {
|
|
656
|
-
code: "
|
|
598
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
657
599
|
details?: readonly Response.error.Detail[] | undefined;
|
|
658
600
|
message: string;
|
|
659
601
|
};
|
|
660
602
|
requestId: string;
|
|
661
603
|
};
|
|
662
604
|
outputFormat: "json";
|
|
663
|
-
status:
|
|
605
|
+
status: 403;
|
|
664
606
|
input: {
|
|
665
607
|
param: {
|
|
666
608
|
orgId: string;
|
|
@@ -675,14 +617,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
675
617
|
} | {
|
|
676
618
|
output: {
|
|
677
619
|
error: {
|
|
678
|
-
code: "
|
|
620
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
679
621
|
details?: readonly Response.error.Detail[] | undefined;
|
|
680
622
|
message: string;
|
|
681
623
|
};
|
|
682
624
|
requestId: string;
|
|
683
625
|
};
|
|
684
626
|
outputFormat: "json";
|
|
685
|
-
status:
|
|
627
|
+
status: 429;
|
|
686
628
|
input: {
|
|
687
629
|
param: {
|
|
688
630
|
orgId: string;
|
|
@@ -697,14 +639,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
697
639
|
} | {
|
|
698
640
|
output: {
|
|
699
641
|
error: {
|
|
700
|
-
code: "
|
|
642
|
+
code: "query_invalid";
|
|
701
643
|
details?: readonly Response.error.Detail[] | undefined;
|
|
702
644
|
message: string;
|
|
703
645
|
};
|
|
704
646
|
requestId: string;
|
|
705
647
|
};
|
|
706
648
|
outputFormat: "json";
|
|
707
|
-
status:
|
|
649
|
+
status: 400;
|
|
708
650
|
input: {
|
|
709
651
|
param: {
|
|
710
652
|
orgId: string;
|
|
@@ -719,14 +661,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
719
661
|
} | {
|
|
720
662
|
output: {
|
|
721
663
|
error: {
|
|
722
|
-
code: "
|
|
664
|
+
code: "upstream_error";
|
|
723
665
|
details?: readonly Response.error.Detail[] | undefined;
|
|
724
666
|
message: string;
|
|
725
667
|
};
|
|
726
668
|
requestId: string;
|
|
727
669
|
};
|
|
728
670
|
outputFormat: "json";
|
|
729
|
-
status:
|
|
671
|
+
status: 502;
|
|
730
672
|
input: {
|
|
731
673
|
param: {
|
|
732
674
|
orgId: string;
|
|
@@ -741,14 +683,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
741
683
|
} | {
|
|
742
684
|
output: {
|
|
743
685
|
error: {
|
|
744
|
-
code: "
|
|
686
|
+
code: "param_invalid";
|
|
745
687
|
details?: readonly Response.error.Detail[] | undefined;
|
|
746
688
|
message: string;
|
|
747
689
|
};
|
|
748
690
|
requestId: string;
|
|
749
691
|
};
|
|
750
692
|
outputFormat: "json";
|
|
751
|
-
status:
|
|
693
|
+
status: 400;
|
|
752
694
|
input: {
|
|
753
695
|
param: {
|
|
754
696
|
orgId: string;
|
|
@@ -763,14 +705,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
763
705
|
} | {
|
|
764
706
|
output: {
|
|
765
707
|
error: {
|
|
766
|
-
code: "
|
|
708
|
+
code: "organization_not_found" | "project_not_found";
|
|
767
709
|
details?: readonly Response.error.Detail[] | undefined;
|
|
768
710
|
message: string;
|
|
769
711
|
};
|
|
770
712
|
requestId: string;
|
|
771
713
|
};
|
|
772
714
|
outputFormat: "json";
|
|
773
|
-
status:
|
|
715
|
+
status: 404;
|
|
774
716
|
input: {
|
|
775
717
|
param: {
|
|
776
718
|
orgId: string;
|
|
@@ -785,14 +727,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
785
727
|
} | {
|
|
786
728
|
output: {
|
|
787
729
|
error: {
|
|
788
|
-
code: "
|
|
730
|
+
code: "api_keys_not_enabled";
|
|
789
731
|
details?: readonly Response.error.Detail[] | undefined;
|
|
790
732
|
message: string;
|
|
791
733
|
};
|
|
792
734
|
requestId: string;
|
|
793
735
|
};
|
|
794
736
|
outputFormat: "json";
|
|
795
|
-
status:
|
|
737
|
+
status: 404;
|
|
796
738
|
input: {
|
|
797
739
|
param: {
|
|
798
740
|
orgId: string;
|
|
@@ -804,11 +746,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
804
746
|
include?: string | string[];
|
|
805
747
|
} | undefined;
|
|
806
748
|
};
|
|
807
|
-
}
|
|
808
|
-
};
|
|
809
|
-
} & {
|
|
810
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
|
|
811
|
-
$get: {
|
|
749
|
+
} | {
|
|
812
750
|
output: {
|
|
813
751
|
data: {
|
|
814
752
|
allowedIps: readonly string[];
|
|
@@ -831,6 +769,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
831
769
|
input: {
|
|
832
770
|
param: {
|
|
833
771
|
orgId: string;
|
|
772
|
+
projectId: string;
|
|
834
773
|
};
|
|
835
774
|
} & {
|
|
836
775
|
query?: {
|
|
@@ -838,7 +777,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
838
777
|
include?: string | string[];
|
|
839
778
|
} | undefined;
|
|
840
779
|
};
|
|
841
|
-
}
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
} & {
|
|
783
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
|
|
784
|
+
$get: {
|
|
842
785
|
output: {
|
|
843
786
|
error: {
|
|
844
787
|
code: "api_key_malformed";
|
|
@@ -862,14 +805,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
862
805
|
} | {
|
|
863
806
|
output: {
|
|
864
807
|
error: {
|
|
865
|
-
code: "
|
|
808
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
866
809
|
details?: readonly Response.error.Detail[] | undefined;
|
|
867
810
|
message: string;
|
|
868
811
|
};
|
|
869
812
|
requestId: string;
|
|
870
813
|
};
|
|
871
814
|
outputFormat: "json";
|
|
872
|
-
status:
|
|
815
|
+
status: 401;
|
|
873
816
|
input: {
|
|
874
817
|
param: {
|
|
875
818
|
orgId: string;
|
|
@@ -883,14 +826,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
883
826
|
} | {
|
|
884
827
|
output: {
|
|
885
828
|
error: {
|
|
886
|
-
code: "
|
|
829
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
887
830
|
details?: readonly Response.error.Detail[] | undefined;
|
|
888
831
|
message: string;
|
|
889
832
|
};
|
|
890
833
|
requestId: string;
|
|
891
834
|
};
|
|
892
835
|
outputFormat: "json";
|
|
893
|
-
status:
|
|
836
|
+
status: 403;
|
|
894
837
|
input: {
|
|
895
838
|
param: {
|
|
896
839
|
orgId: string;
|
|
@@ -904,14 +847,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
904
847
|
} | {
|
|
905
848
|
output: {
|
|
906
849
|
error: {
|
|
907
|
-
code: "
|
|
850
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
908
851
|
details?: readonly Response.error.Detail[] | undefined;
|
|
909
852
|
message: string;
|
|
910
853
|
};
|
|
911
854
|
requestId: string;
|
|
912
855
|
};
|
|
913
856
|
outputFormat: "json";
|
|
914
|
-
status:
|
|
857
|
+
status: 429;
|
|
915
858
|
input: {
|
|
916
859
|
param: {
|
|
917
860
|
orgId: string;
|
|
@@ -925,14 +868,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
925
868
|
} | {
|
|
926
869
|
output: {
|
|
927
870
|
error: {
|
|
928
|
-
code: "
|
|
871
|
+
code: "query_invalid";
|
|
929
872
|
details?: readonly Response.error.Detail[] | undefined;
|
|
930
873
|
message: string;
|
|
931
874
|
};
|
|
932
875
|
requestId: string;
|
|
933
876
|
};
|
|
934
877
|
outputFormat: "json";
|
|
935
|
-
status:
|
|
878
|
+
status: 400;
|
|
936
879
|
input: {
|
|
937
880
|
param: {
|
|
938
881
|
orgId: string;
|
|
@@ -946,14 +889,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
946
889
|
} | {
|
|
947
890
|
output: {
|
|
948
891
|
error: {
|
|
949
|
-
code: "
|
|
892
|
+
code: "upstream_error";
|
|
950
893
|
details?: readonly Response.error.Detail[] | undefined;
|
|
951
894
|
message: string;
|
|
952
895
|
};
|
|
953
896
|
requestId: string;
|
|
954
897
|
};
|
|
955
898
|
outputFormat: "json";
|
|
956
|
-
status:
|
|
899
|
+
status: 502;
|
|
957
900
|
input: {
|
|
958
901
|
param: {
|
|
959
902
|
orgId: string;
|
|
@@ -967,14 +910,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
967
910
|
} | {
|
|
968
911
|
output: {
|
|
969
912
|
error: {
|
|
970
|
-
code: "
|
|
913
|
+
code: "param_invalid";
|
|
971
914
|
details?: readonly Response.error.Detail[] | undefined;
|
|
972
915
|
message: string;
|
|
973
916
|
};
|
|
974
917
|
requestId: string;
|
|
975
918
|
};
|
|
976
919
|
outputFormat: "json";
|
|
977
|
-
status:
|
|
920
|
+
status: 400;
|
|
978
921
|
input: {
|
|
979
922
|
param: {
|
|
980
923
|
orgId: string;
|
|
@@ -988,14 +931,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
988
931
|
} | {
|
|
989
932
|
output: {
|
|
990
933
|
error: {
|
|
991
|
-
code: "
|
|
934
|
+
code: "api_keys_not_enabled";
|
|
992
935
|
details?: readonly Response.error.Detail[] | undefined;
|
|
993
936
|
message: string;
|
|
994
937
|
};
|
|
995
938
|
requestId: string;
|
|
996
939
|
};
|
|
997
940
|
outputFormat: "json";
|
|
998
|
-
status:
|
|
941
|
+
status: 404;
|
|
999
942
|
input: {
|
|
1000
943
|
param: {
|
|
1001
944
|
orgId: string;
|
|
@@ -1008,15 +951,24 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1008
951
|
};
|
|
1009
952
|
} | {
|
|
1010
953
|
output: {
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
954
|
+
data: {
|
|
955
|
+
allowedIps: readonly string[];
|
|
956
|
+
createdAt: string;
|
|
957
|
+
createdBy?: string | undefined;
|
|
958
|
+
environment: "production" | "sandbox";
|
|
959
|
+
expiresAt?: string | undefined;
|
|
960
|
+
id: string;
|
|
961
|
+
lastUsedAt?: string | undefined;
|
|
962
|
+
name?: string | undefined;
|
|
963
|
+
orgId: string;
|
|
964
|
+
projectId?: string | undefined;
|
|
965
|
+
scopes: string[];
|
|
966
|
+
tokenLast4: string;
|
|
967
|
+
zoneTags?: readonly number[] | undefined;
|
|
968
|
+
}[];
|
|
1017
969
|
};
|
|
1018
970
|
outputFormat: "json";
|
|
1019
|
-
status:
|
|
971
|
+
status: 200;
|
|
1020
972
|
input: {
|
|
1021
973
|
param: {
|
|
1022
974
|
orgId: string;
|
|
@@ -1027,56 +979,35 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1027
979
|
include?: string | string[];
|
|
1028
980
|
} | undefined;
|
|
1029
981
|
};
|
|
1030
|
-
};
|
|
1031
|
-
};
|
|
1032
|
-
} & {
|
|
1033
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
|
|
1034
|
-
$post: {
|
|
1035
|
-
output: {
|
|
1036
|
-
allowedIps: readonly string[];
|
|
1037
|
-
createdAt: string;
|
|
1038
|
-
createdBy?: string | undefined;
|
|
1039
|
-
environment: "production" | "sandbox";
|
|
1040
|
-
expiresAt?: string | undefined;
|
|
1041
|
-
id: string;
|
|
1042
|
-
lastUsedAt?: string | undefined;
|
|
1043
|
-
name?: string | undefined;
|
|
1044
|
-
orgId: string;
|
|
1045
|
-
projectId?: string | undefined;
|
|
1046
|
-
scopes: string[];
|
|
1047
|
-
tokenLast4: string;
|
|
1048
|
-
zoneTags?: readonly number[] | undefined;
|
|
1049
|
-
token: string;
|
|
1050
|
-
};
|
|
1051
|
-
outputFormat: "json";
|
|
1052
|
-
status: 200;
|
|
1053
|
-
input: {
|
|
1054
|
-
param: {
|
|
1055
|
-
keyId: string;
|
|
1056
|
-
orgId: string;
|
|
1057
|
-
};
|
|
1058
|
-
};
|
|
1059
982
|
} | {
|
|
1060
983
|
output: {
|
|
1061
984
|
error: {
|
|
1062
|
-
code: "
|
|
985
|
+
code: "organization_not_found";
|
|
1063
986
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1064
987
|
message: string;
|
|
1065
988
|
};
|
|
1066
989
|
requestId: string;
|
|
1067
990
|
};
|
|
1068
991
|
outputFormat: "json";
|
|
1069
|
-
status:
|
|
992
|
+
status: 404;
|
|
1070
993
|
input: {
|
|
1071
994
|
param: {
|
|
1072
|
-
keyId: string;
|
|
1073
995
|
orgId: string;
|
|
1074
996
|
};
|
|
997
|
+
} & {
|
|
998
|
+
query?: {
|
|
999
|
+
environment?: string | string[];
|
|
1000
|
+
include?: string | string[];
|
|
1001
|
+
} | undefined;
|
|
1075
1002
|
};
|
|
1076
|
-
}
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
1005
|
+
} & {
|
|
1006
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
|
|
1007
|
+
$post: {
|
|
1077
1008
|
output: {
|
|
1078
1009
|
error: {
|
|
1079
|
-
code: "
|
|
1010
|
+
code: "api_key_malformed";
|
|
1080
1011
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1081
1012
|
message: string;
|
|
1082
1013
|
};
|
|
@@ -1093,14 +1024,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1093
1024
|
} | {
|
|
1094
1025
|
output: {
|
|
1095
1026
|
error: {
|
|
1096
|
-
code: "
|
|
1027
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1097
1028
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1098
1029
|
message: string;
|
|
1099
1030
|
};
|
|
1100
1031
|
requestId: string;
|
|
1101
1032
|
};
|
|
1102
1033
|
outputFormat: "json";
|
|
1103
|
-
status:
|
|
1034
|
+
status: 401;
|
|
1104
1035
|
input: {
|
|
1105
1036
|
param: {
|
|
1106
1037
|
keyId: string;
|
|
@@ -1110,14 +1041,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1110
1041
|
} | {
|
|
1111
1042
|
output: {
|
|
1112
1043
|
error: {
|
|
1113
|
-
code: "
|
|
1044
|
+
code: "upstream_error";
|
|
1114
1045
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1115
1046
|
message: string;
|
|
1116
1047
|
};
|
|
1117
1048
|
requestId: string;
|
|
1118
1049
|
};
|
|
1119
1050
|
outputFormat: "json";
|
|
1120
|
-
status:
|
|
1051
|
+
status: 502;
|
|
1121
1052
|
input: {
|
|
1122
1053
|
param: {
|
|
1123
1054
|
keyId: string;
|
|
@@ -1127,14 +1058,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1127
1058
|
} | {
|
|
1128
1059
|
output: {
|
|
1129
1060
|
error: {
|
|
1130
|
-
code: "
|
|
1061
|
+
code: "body_invalid";
|
|
1131
1062
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1132
1063
|
message: string;
|
|
1133
1064
|
};
|
|
1134
1065
|
requestId: string;
|
|
1135
1066
|
};
|
|
1136
1067
|
outputFormat: "json";
|
|
1137
|
-
status:
|
|
1068
|
+
status: 400;
|
|
1138
1069
|
input: {
|
|
1139
1070
|
param: {
|
|
1140
1071
|
keyId: string;
|
|
@@ -1144,14 +1075,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1144
1075
|
} | {
|
|
1145
1076
|
output: {
|
|
1146
1077
|
error: {
|
|
1147
|
-
code: "
|
|
1078
|
+
code: "param_invalid";
|
|
1148
1079
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1149
1080
|
message: string;
|
|
1150
1081
|
};
|
|
1151
1082
|
requestId: string;
|
|
1152
1083
|
};
|
|
1153
1084
|
outputFormat: "json";
|
|
1154
|
-
status:
|
|
1085
|
+
status: 400;
|
|
1155
1086
|
input: {
|
|
1156
1087
|
param: {
|
|
1157
1088
|
keyId: string;
|
|
@@ -1161,7 +1092,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1161
1092
|
} | {
|
|
1162
1093
|
output: {
|
|
1163
1094
|
error: {
|
|
1164
|
-
code: "
|
|
1095
|
+
code: "forbidden";
|
|
1165
1096
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1166
1097
|
message: string;
|
|
1167
1098
|
};
|
|
@@ -1178,7 +1109,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1178
1109
|
} | {
|
|
1179
1110
|
output: {
|
|
1180
1111
|
error: {
|
|
1181
|
-
code: "
|
|
1112
|
+
code: "api_keys_not_enabled";
|
|
1182
1113
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1183
1114
|
message: string;
|
|
1184
1115
|
};
|
|
@@ -1195,14 +1126,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1195
1126
|
} | {
|
|
1196
1127
|
output: {
|
|
1197
1128
|
error: {
|
|
1198
|
-
code: "
|
|
1129
|
+
code: "scope_not_issuable";
|
|
1199
1130
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1200
1131
|
message: string;
|
|
1201
1132
|
};
|
|
1202
1133
|
requestId: string;
|
|
1203
1134
|
};
|
|
1204
1135
|
outputFormat: "json";
|
|
1205
|
-
status:
|
|
1136
|
+
status: 403;
|
|
1206
1137
|
input: {
|
|
1207
1138
|
param: {
|
|
1208
1139
|
keyId: string;
|
|
@@ -1212,14 +1143,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1212
1143
|
} | {
|
|
1213
1144
|
output: {
|
|
1214
1145
|
error: {
|
|
1215
|
-
code: "
|
|
1146
|
+
code: "api_key_limit_reached";
|
|
1216
1147
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1217
1148
|
message: string;
|
|
1218
1149
|
};
|
|
1219
1150
|
requestId: string;
|
|
1220
1151
|
};
|
|
1221
1152
|
outputFormat: "json";
|
|
1222
|
-
status:
|
|
1153
|
+
status: 409;
|
|
1223
1154
|
input: {
|
|
1224
1155
|
param: {
|
|
1225
1156
|
keyId: string;
|
|
@@ -1229,14 +1160,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1229
1160
|
} | {
|
|
1230
1161
|
output: {
|
|
1231
1162
|
error: {
|
|
1232
|
-
code: "
|
|
1163
|
+
code: "organization_not_found";
|
|
1233
1164
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1234
1165
|
message: string;
|
|
1235
1166
|
};
|
|
1236
1167
|
requestId: string;
|
|
1237
1168
|
};
|
|
1238
1169
|
outputFormat: "json";
|
|
1239
|
-
status:
|
|
1170
|
+
status: 404;
|
|
1240
1171
|
input: {
|
|
1241
1172
|
param: {
|
|
1242
1173
|
keyId: string;
|
|
@@ -1246,27 +1177,36 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1246
1177
|
} | {
|
|
1247
1178
|
output: {
|
|
1248
1179
|
error: {
|
|
1249
|
-
code: "
|
|
1180
|
+
code: "api_key_not_found";
|
|
1250
1181
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1251
1182
|
message: string;
|
|
1252
1183
|
};
|
|
1253
1184
|
requestId: string;
|
|
1254
1185
|
};
|
|
1255
1186
|
outputFormat: "json";
|
|
1256
|
-
status:
|
|
1187
|
+
status: 404;
|
|
1257
1188
|
input: {
|
|
1258
1189
|
param: {
|
|
1259
1190
|
keyId: string;
|
|
1260
1191
|
orgId: string;
|
|
1261
1192
|
};
|
|
1262
1193
|
};
|
|
1263
|
-
}
|
|
1264
|
-
};
|
|
1265
|
-
} & {
|
|
1266
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
1267
|
-
$delete: {
|
|
1194
|
+
} | {
|
|
1268
1195
|
output: {
|
|
1196
|
+
allowedIps: readonly string[];
|
|
1197
|
+
createdAt: string;
|
|
1198
|
+
createdBy?: string | undefined;
|
|
1199
|
+
environment: "production" | "sandbox";
|
|
1200
|
+
expiresAt?: string | undefined;
|
|
1269
1201
|
id: string;
|
|
1202
|
+
lastUsedAt?: string | undefined;
|
|
1203
|
+
name?: string | undefined;
|
|
1204
|
+
orgId: string;
|
|
1205
|
+
projectId?: string | undefined;
|
|
1206
|
+
scopes: string[];
|
|
1207
|
+
tokenLast4: string;
|
|
1208
|
+
zoneTags?: readonly number[] | undefined;
|
|
1209
|
+
token: string;
|
|
1270
1210
|
};
|
|
1271
1211
|
outputFormat: "json";
|
|
1272
1212
|
status: 200;
|
|
@@ -1276,7 +1216,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1276
1216
|
orgId: string;
|
|
1277
1217
|
};
|
|
1278
1218
|
};
|
|
1279
|
-
}
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
1221
|
+
} & {
|
|
1222
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
1223
|
+
$delete: {
|
|
1280
1224
|
output: {
|
|
1281
1225
|
error: {
|
|
1282
1226
|
code: "api_key_malformed";
|
|
@@ -1296,14 +1240,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1296
1240
|
} | {
|
|
1297
1241
|
output: {
|
|
1298
1242
|
error: {
|
|
1299
|
-
code: "
|
|
1243
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1300
1244
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1301
1245
|
message: string;
|
|
1302
1246
|
};
|
|
1303
1247
|
requestId: string;
|
|
1304
1248
|
};
|
|
1305
1249
|
outputFormat: "json";
|
|
1306
|
-
status:
|
|
1250
|
+
status: 401;
|
|
1307
1251
|
input: {
|
|
1308
1252
|
param: {
|
|
1309
1253
|
keyId: string;
|
|
@@ -1313,14 +1257,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1313
1257
|
} | {
|
|
1314
1258
|
output: {
|
|
1315
1259
|
error: {
|
|
1316
|
-
code: "
|
|
1260
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
1317
1261
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1318
1262
|
message: string;
|
|
1319
1263
|
};
|
|
1320
1264
|
requestId: string;
|
|
1321
1265
|
};
|
|
1322
1266
|
outputFormat: "json";
|
|
1323
|
-
status:
|
|
1267
|
+
status: 403;
|
|
1324
1268
|
input: {
|
|
1325
1269
|
param: {
|
|
1326
1270
|
keyId: string;
|
|
@@ -1330,14 +1274,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1330
1274
|
} | {
|
|
1331
1275
|
output: {
|
|
1332
1276
|
error: {
|
|
1333
|
-
code: "
|
|
1277
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1334
1278
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1335
1279
|
message: string;
|
|
1336
1280
|
};
|
|
1337
1281
|
requestId: string;
|
|
1338
1282
|
};
|
|
1339
1283
|
outputFormat: "json";
|
|
1340
|
-
status:
|
|
1284
|
+
status: 429;
|
|
1341
1285
|
input: {
|
|
1342
1286
|
param: {
|
|
1343
1287
|
keyId: string;
|
|
@@ -1347,14 +1291,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1347
1291
|
} | {
|
|
1348
1292
|
output: {
|
|
1349
1293
|
error: {
|
|
1350
|
-
code: "
|
|
1294
|
+
code: "upstream_error";
|
|
1351
1295
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1352
1296
|
message: string;
|
|
1353
1297
|
};
|
|
1354
1298
|
requestId: string;
|
|
1355
1299
|
};
|
|
1356
1300
|
outputFormat: "json";
|
|
1357
|
-
status:
|
|
1301
|
+
status: 502;
|
|
1358
1302
|
input: {
|
|
1359
1303
|
param: {
|
|
1360
1304
|
keyId: string;
|
|
@@ -1364,14 +1308,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1364
1308
|
} | {
|
|
1365
1309
|
output: {
|
|
1366
1310
|
error: {
|
|
1367
|
-
code: "
|
|
1311
|
+
code: "param_invalid";
|
|
1368
1312
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1369
1313
|
message: string;
|
|
1370
1314
|
};
|
|
1371
1315
|
requestId: string;
|
|
1372
1316
|
};
|
|
1373
1317
|
outputFormat: "json";
|
|
1374
|
-
status:
|
|
1318
|
+
status: 400;
|
|
1375
1319
|
input: {
|
|
1376
1320
|
param: {
|
|
1377
1321
|
keyId: string;
|
|
@@ -1381,14 +1325,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1381
1325
|
} | {
|
|
1382
1326
|
output: {
|
|
1383
1327
|
error: {
|
|
1384
|
-
code: "
|
|
1328
|
+
code: "forbidden";
|
|
1385
1329
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1386
1330
|
message: string;
|
|
1387
1331
|
};
|
|
1388
1332
|
requestId: string;
|
|
1389
1333
|
};
|
|
1390
1334
|
outputFormat: "json";
|
|
1391
|
-
status:
|
|
1335
|
+
status: 403;
|
|
1392
1336
|
input: {
|
|
1393
1337
|
param: {
|
|
1394
1338
|
keyId: string;
|
|
@@ -1398,14 +1342,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1398
1342
|
} | {
|
|
1399
1343
|
output: {
|
|
1400
1344
|
error: {
|
|
1401
|
-
code: "
|
|
1345
|
+
code: "api_keys_not_enabled";
|
|
1402
1346
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1403
1347
|
message: string;
|
|
1404
1348
|
};
|
|
1405
1349
|
requestId: string;
|
|
1406
1350
|
};
|
|
1407
1351
|
outputFormat: "json";
|
|
1408
|
-
status:
|
|
1352
|
+
status: 404;
|
|
1409
1353
|
input: {
|
|
1410
1354
|
param: {
|
|
1411
1355
|
keyId: string;
|
|
@@ -1415,39 +1359,23 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1415
1359
|
} | {
|
|
1416
1360
|
output: {
|
|
1417
1361
|
error: {
|
|
1418
|
-
code: "
|
|
1362
|
+
code: "api_key_not_found";
|
|
1419
1363
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1420
1364
|
message: string;
|
|
1421
1365
|
};
|
|
1422
1366
|
requestId: string;
|
|
1423
1367
|
};
|
|
1424
1368
|
outputFormat: "json";
|
|
1425
|
-
status:
|
|
1369
|
+
status: 404;
|
|
1426
1370
|
input: {
|
|
1427
1371
|
param: {
|
|
1428
1372
|
keyId: string;
|
|
1429
1373
|
orgId: string;
|
|
1430
1374
|
};
|
|
1431
1375
|
};
|
|
1432
|
-
}
|
|
1433
|
-
};
|
|
1434
|
-
} & {
|
|
1435
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
1436
|
-
$patch: {
|
|
1376
|
+
} | {
|
|
1437
1377
|
output: {
|
|
1438
|
-
allowedIps: readonly string[];
|
|
1439
|
-
createdAt: string;
|
|
1440
|
-
createdBy?: string | undefined;
|
|
1441
|
-
environment: "production" | "sandbox";
|
|
1442
|
-
expiresAt?: string | undefined;
|
|
1443
1378
|
id: string;
|
|
1444
|
-
lastUsedAt?: string | undefined;
|
|
1445
|
-
name?: string | undefined;
|
|
1446
|
-
orgId: string;
|
|
1447
|
-
projectId?: string | undefined;
|
|
1448
|
-
scopes: string[];
|
|
1449
|
-
tokenLast4: string;
|
|
1450
|
-
zoneTags?: readonly number[] | undefined;
|
|
1451
1379
|
};
|
|
1452
1380
|
outputFormat: "json";
|
|
1453
1381
|
status: 200;
|
|
@@ -1455,50 +1383,23 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1455
1383
|
param: {
|
|
1456
1384
|
keyId: string;
|
|
1457
1385
|
orgId: string;
|
|
1458
|
-
projectId: string;
|
|
1459
|
-
};
|
|
1460
|
-
} & {
|
|
1461
|
-
json: {
|
|
1462
|
-
allowedIps?: readonly string[] | undefined;
|
|
1463
|
-
expiresAt?: string | undefined;
|
|
1464
|
-
zoneTags?: readonly number[] | null | undefined;
|
|
1465
|
-
};
|
|
1466
|
-
};
|
|
1467
|
-
} | {
|
|
1468
|
-
output: {
|
|
1469
|
-
error: {
|
|
1470
|
-
code: "api_key_malformed";
|
|
1471
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1472
|
-
message: string;
|
|
1473
|
-
};
|
|
1474
|
-
requestId: string;
|
|
1475
|
-
};
|
|
1476
|
-
outputFormat: "json";
|
|
1477
|
-
status: 400;
|
|
1478
|
-
input: {
|
|
1479
|
-
param: {
|
|
1480
|
-
keyId: string;
|
|
1481
|
-
orgId: string;
|
|
1482
|
-
projectId: string;
|
|
1483
|
-
};
|
|
1484
|
-
} & {
|
|
1485
|
-
json: {
|
|
1486
|
-
allowedIps?: readonly string[] | undefined;
|
|
1487
|
-
expiresAt?: string | undefined;
|
|
1488
|
-
zoneTags?: readonly number[] | null | undefined;
|
|
1489
1386
|
};
|
|
1490
1387
|
};
|
|
1491
|
-
}
|
|
1388
|
+
};
|
|
1389
|
+
};
|
|
1390
|
+
} & {
|
|
1391
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
1392
|
+
$patch: {
|
|
1492
1393
|
output: {
|
|
1493
1394
|
error: {
|
|
1494
|
-
code: "
|
|
1395
|
+
code: "payload_too_large";
|
|
1495
1396
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1496
1397
|
message: string;
|
|
1497
1398
|
};
|
|
1498
1399
|
requestId: string;
|
|
1499
1400
|
};
|
|
1500
1401
|
outputFormat: "json";
|
|
1501
|
-
status:
|
|
1402
|
+
status: 413;
|
|
1502
1403
|
input: {
|
|
1503
1404
|
param: {
|
|
1504
1405
|
keyId: string;
|
|
@@ -1515,7 +1416,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1515
1416
|
} | {
|
|
1516
1417
|
output: {
|
|
1517
1418
|
error: {
|
|
1518
|
-
code: "
|
|
1419
|
+
code: "api_key_malformed";
|
|
1519
1420
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1520
1421
|
message: string;
|
|
1521
1422
|
};
|
|
@@ -1587,14 +1488,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1587
1488
|
} | {
|
|
1588
1489
|
output: {
|
|
1589
1490
|
error: {
|
|
1590
|
-
code: "
|
|
1491
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1591
1492
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1592
1493
|
message: string;
|
|
1593
1494
|
};
|
|
1594
1495
|
requestId: string;
|
|
1595
1496
|
};
|
|
1596
1497
|
outputFormat: "json";
|
|
1597
|
-
status:
|
|
1498
|
+
status: 429;
|
|
1598
1499
|
input: {
|
|
1599
1500
|
param: {
|
|
1600
1501
|
keyId: string;
|
|
@@ -1611,14 +1512,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1611
1512
|
} | {
|
|
1612
1513
|
output: {
|
|
1613
1514
|
error: {
|
|
1614
|
-
code: "
|
|
1515
|
+
code: "upstream_error";
|
|
1615
1516
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1616
1517
|
message: string;
|
|
1617
1518
|
};
|
|
1618
1519
|
requestId: string;
|
|
1619
1520
|
};
|
|
1620
1521
|
outputFormat: "json";
|
|
1621
|
-
status:
|
|
1522
|
+
status: 502;
|
|
1622
1523
|
input: {
|
|
1623
1524
|
param: {
|
|
1624
1525
|
keyId: string;
|
|
@@ -1635,14 +1536,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1635
1536
|
} | {
|
|
1636
1537
|
output: {
|
|
1637
1538
|
error: {
|
|
1638
|
-
code: "
|
|
1539
|
+
code: "body_invalid";
|
|
1639
1540
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1640
1541
|
message: string;
|
|
1641
1542
|
};
|
|
1642
1543
|
requestId: string;
|
|
1643
1544
|
};
|
|
1644
1545
|
outputFormat: "json";
|
|
1645
|
-
status:
|
|
1546
|
+
status: 400;
|
|
1646
1547
|
input: {
|
|
1647
1548
|
param: {
|
|
1648
1549
|
keyId: string;
|
|
@@ -1659,14 +1560,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1659
1560
|
} | {
|
|
1660
1561
|
output: {
|
|
1661
1562
|
error: {
|
|
1662
|
-
code: "
|
|
1563
|
+
code: "param_invalid";
|
|
1663
1564
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1664
1565
|
message: string;
|
|
1665
1566
|
};
|
|
1666
1567
|
requestId: string;
|
|
1667
1568
|
};
|
|
1668
1569
|
outputFormat: "json";
|
|
1669
|
-
status:
|
|
1570
|
+
status: 400;
|
|
1670
1571
|
input: {
|
|
1671
1572
|
param: {
|
|
1672
1573
|
keyId: string;
|
|
@@ -1683,14 +1584,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1683
1584
|
} | {
|
|
1684
1585
|
output: {
|
|
1685
1586
|
error: {
|
|
1686
|
-
code: "
|
|
1587
|
+
code: "forbidden";
|
|
1687
1588
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1688
1589
|
message: string;
|
|
1689
1590
|
};
|
|
1690
1591
|
requestId: string;
|
|
1691
1592
|
};
|
|
1692
1593
|
outputFormat: "json";
|
|
1693
|
-
status:
|
|
1594
|
+
status: 403;
|
|
1694
1595
|
input: {
|
|
1695
1596
|
param: {
|
|
1696
1597
|
keyId: string;
|
|
@@ -1707,14 +1608,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1707
1608
|
} | {
|
|
1708
1609
|
output: {
|
|
1709
1610
|
error: {
|
|
1710
|
-
code: "
|
|
1611
|
+
code: "organization_not_found" | "project_not_found";
|
|
1711
1612
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1712
1613
|
message: string;
|
|
1713
1614
|
};
|
|
1714
1615
|
requestId: string;
|
|
1715
1616
|
};
|
|
1716
1617
|
outputFormat: "json";
|
|
1717
|
-
status:
|
|
1618
|
+
status: 404;
|
|
1718
1619
|
input: {
|
|
1719
1620
|
param: {
|
|
1720
1621
|
keyId: string;
|
|
@@ -1731,14 +1632,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1731
1632
|
} | {
|
|
1732
1633
|
output: {
|
|
1733
1634
|
error: {
|
|
1734
|
-
code: "
|
|
1635
|
+
code: "api_keys_not_enabled";
|
|
1735
1636
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1736
1637
|
message: string;
|
|
1737
1638
|
};
|
|
1738
1639
|
requestId: string;
|
|
1739
1640
|
};
|
|
1740
1641
|
outputFormat: "json";
|
|
1741
|
-
status:
|
|
1642
|
+
status: 404;
|
|
1742
1643
|
input: {
|
|
1743
1644
|
param: {
|
|
1744
1645
|
keyId: string;
|
|
@@ -1755,14 +1656,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1755
1656
|
} | {
|
|
1756
1657
|
output: {
|
|
1757
1658
|
error: {
|
|
1758
|
-
code: "
|
|
1659
|
+
code: "api_key_not_found";
|
|
1759
1660
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1760
1661
|
message: string;
|
|
1761
1662
|
};
|
|
1762
1663
|
requestId: string;
|
|
1763
1664
|
};
|
|
1764
1665
|
outputFormat: "json";
|
|
1765
|
-
status:
|
|
1666
|
+
status: 404;
|
|
1766
1667
|
input: {
|
|
1767
1668
|
param: {
|
|
1768
1669
|
keyId: string;
|
|
@@ -1776,11 +1677,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1776
1677
|
zoneTags?: readonly number[] | null | undefined;
|
|
1777
1678
|
};
|
|
1778
1679
|
};
|
|
1779
|
-
}
|
|
1780
|
-
};
|
|
1781
|
-
} & {
|
|
1782
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
|
|
1783
|
-
$post: {
|
|
1680
|
+
} | {
|
|
1784
1681
|
output: {
|
|
1785
1682
|
allowedIps: readonly string[];
|
|
1786
1683
|
createdAt: string;
|
|
@@ -1795,7 +1692,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1795
1692
|
scopes: string[];
|
|
1796
1693
|
tokenLast4: string;
|
|
1797
1694
|
zoneTags?: readonly number[] | undefined;
|
|
1798
|
-
token: string;
|
|
1799
1695
|
};
|
|
1800
1696
|
outputFormat: "json";
|
|
1801
1697
|
status: 200;
|
|
@@ -1805,8 +1701,18 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1805
1701
|
orgId: string;
|
|
1806
1702
|
projectId: string;
|
|
1807
1703
|
};
|
|
1704
|
+
} & {
|
|
1705
|
+
json: {
|
|
1706
|
+
allowedIps?: readonly string[] | undefined;
|
|
1707
|
+
expiresAt?: string | undefined;
|
|
1708
|
+
zoneTags?: readonly number[] | null | undefined;
|
|
1709
|
+
};
|
|
1808
1710
|
};
|
|
1809
|
-
}
|
|
1711
|
+
};
|
|
1712
|
+
};
|
|
1713
|
+
} & {
|
|
1714
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
|
|
1715
|
+
$post: {
|
|
1810
1716
|
output: {
|
|
1811
1717
|
error: {
|
|
1812
1718
|
code: "api_key_malformed";
|
|
@@ -1827,14 +1733,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1827
1733
|
} | {
|
|
1828
1734
|
output: {
|
|
1829
1735
|
error: {
|
|
1830
|
-
code: "
|
|
1736
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1831
1737
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1832
1738
|
message: string;
|
|
1833
1739
|
};
|
|
1834
1740
|
requestId: string;
|
|
1835
1741
|
};
|
|
1836
1742
|
outputFormat: "json";
|
|
1837
|
-
status:
|
|
1743
|
+
status: 401;
|
|
1838
1744
|
input: {
|
|
1839
1745
|
param: {
|
|
1840
1746
|
keyId: string;
|
|
@@ -1845,14 +1751,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1845
1751
|
} | {
|
|
1846
1752
|
output: {
|
|
1847
1753
|
error: {
|
|
1848
|
-
code: "
|
|
1754
|
+
code: "upstream_error";
|
|
1849
1755
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1850
1756
|
message: string;
|
|
1851
1757
|
};
|
|
1852
1758
|
requestId: string;
|
|
1853
1759
|
};
|
|
1854
1760
|
outputFormat: "json";
|
|
1855
|
-
status:
|
|
1761
|
+
status: 502;
|
|
1856
1762
|
input: {
|
|
1857
1763
|
param: {
|
|
1858
1764
|
keyId: string;
|
|
@@ -1863,14 +1769,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1863
1769
|
} | {
|
|
1864
1770
|
output: {
|
|
1865
1771
|
error: {
|
|
1866
|
-
code: "
|
|
1772
|
+
code: "body_invalid";
|
|
1867
1773
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1868
1774
|
message: string;
|
|
1869
1775
|
};
|
|
1870
1776
|
requestId: string;
|
|
1871
1777
|
};
|
|
1872
1778
|
outputFormat: "json";
|
|
1873
|
-
status:
|
|
1779
|
+
status: 400;
|
|
1874
1780
|
input: {
|
|
1875
1781
|
param: {
|
|
1876
1782
|
keyId: string;
|
|
@@ -1881,14 +1787,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1881
1787
|
} | {
|
|
1882
1788
|
output: {
|
|
1883
1789
|
error: {
|
|
1884
|
-
code: "
|
|
1790
|
+
code: "param_invalid";
|
|
1885
1791
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1886
1792
|
message: string;
|
|
1887
1793
|
};
|
|
1888
1794
|
requestId: string;
|
|
1889
1795
|
};
|
|
1890
1796
|
outputFormat: "json";
|
|
1891
|
-
status:
|
|
1797
|
+
status: 400;
|
|
1892
1798
|
input: {
|
|
1893
1799
|
param: {
|
|
1894
1800
|
keyId: string;
|
|
@@ -1899,7 +1805,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1899
1805
|
} | {
|
|
1900
1806
|
output: {
|
|
1901
1807
|
error: {
|
|
1902
|
-
code: "
|
|
1808
|
+
code: "forbidden";
|
|
1903
1809
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1904
1810
|
message: string;
|
|
1905
1811
|
};
|
|
@@ -1917,14 +1823,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1917
1823
|
} | {
|
|
1918
1824
|
output: {
|
|
1919
1825
|
error: {
|
|
1920
|
-
code: "
|
|
1826
|
+
code: "organization_not_found" | "project_not_found";
|
|
1921
1827
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1922
1828
|
message: string;
|
|
1923
1829
|
};
|
|
1924
1830
|
requestId: string;
|
|
1925
1831
|
};
|
|
1926
1832
|
outputFormat: "json";
|
|
1927
|
-
status:
|
|
1833
|
+
status: 404;
|
|
1928
1834
|
input: {
|
|
1929
1835
|
param: {
|
|
1930
1836
|
keyId: string;
|
|
@@ -1935,7 +1841,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1935
1841
|
} | {
|
|
1936
1842
|
output: {
|
|
1937
1843
|
error: {
|
|
1938
|
-
code: "
|
|
1844
|
+
code: "api_keys_not_enabled";
|
|
1939
1845
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1940
1846
|
message: string;
|
|
1941
1847
|
};
|
|
@@ -1953,14 +1859,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1953
1859
|
} | {
|
|
1954
1860
|
output: {
|
|
1955
1861
|
error: {
|
|
1956
|
-
code: "
|
|
1862
|
+
code: "scope_not_issuable";
|
|
1957
1863
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1958
1864
|
message: string;
|
|
1959
1865
|
};
|
|
1960
1866
|
requestId: string;
|
|
1961
1867
|
};
|
|
1962
1868
|
outputFormat: "json";
|
|
1963
|
-
status:
|
|
1869
|
+
status: 403;
|
|
1964
1870
|
input: {
|
|
1965
1871
|
param: {
|
|
1966
1872
|
keyId: string;
|
|
@@ -1971,14 +1877,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1971
1877
|
} | {
|
|
1972
1878
|
output: {
|
|
1973
1879
|
error: {
|
|
1974
|
-
code: "
|
|
1880
|
+
code: "api_key_limit_reached";
|
|
1975
1881
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1976
1882
|
message: string;
|
|
1977
1883
|
};
|
|
1978
1884
|
requestId: string;
|
|
1979
1885
|
};
|
|
1980
1886
|
outputFormat: "json";
|
|
1981
|
-
status:
|
|
1887
|
+
status: 409;
|
|
1982
1888
|
input: {
|
|
1983
1889
|
param: {
|
|
1984
1890
|
keyId: string;
|
|
@@ -1989,14 +1895,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1989
1895
|
} | {
|
|
1990
1896
|
output: {
|
|
1991
1897
|
error: {
|
|
1992
|
-
code: "
|
|
1898
|
+
code: "api_key_not_found";
|
|
1993
1899
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1994
1900
|
message: string;
|
|
1995
1901
|
};
|
|
1996
1902
|
requestId: string;
|
|
1997
1903
|
};
|
|
1998
1904
|
outputFormat: "json";
|
|
1999
|
-
status:
|
|
1905
|
+
status: 404;
|
|
2000
1906
|
input: {
|
|
2001
1907
|
param: {
|
|
2002
1908
|
keyId: string;
|
|
@@ -2006,15 +1912,23 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2006
1912
|
};
|
|
2007
1913
|
} | {
|
|
2008
1914
|
output: {
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
1915
|
+
allowedIps: readonly string[];
|
|
1916
|
+
createdAt: string;
|
|
1917
|
+
createdBy?: string | undefined;
|
|
1918
|
+
environment: "production" | "sandbox";
|
|
1919
|
+
expiresAt?: string | undefined;
|
|
1920
|
+
id: string;
|
|
1921
|
+
lastUsedAt?: string | undefined;
|
|
1922
|
+
name?: string | undefined;
|
|
1923
|
+
orgId: string;
|
|
1924
|
+
projectId?: string | undefined;
|
|
1925
|
+
scopes: string[];
|
|
1926
|
+
tokenLast4: string;
|
|
1927
|
+
zoneTags?: readonly number[] | undefined;
|
|
1928
|
+
token: string;
|
|
2015
1929
|
};
|
|
2016
1930
|
outputFormat: "json";
|
|
2017
|
-
status:
|
|
1931
|
+
status: 200;
|
|
2018
1932
|
input: {
|
|
2019
1933
|
param: {
|
|
2020
1934
|
keyId: string;
|
|
@@ -2028,10 +1942,15 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2028
1942
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
2029
1943
|
$delete: {
|
|
2030
1944
|
output: {
|
|
2031
|
-
|
|
1945
|
+
error: {
|
|
1946
|
+
code: "api_key_malformed";
|
|
1947
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1948
|
+
message: string;
|
|
1949
|
+
};
|
|
1950
|
+
requestId: string;
|
|
2032
1951
|
};
|
|
2033
1952
|
outputFormat: "json";
|
|
2034
|
-
status:
|
|
1953
|
+
status: 400;
|
|
2035
1954
|
input: {
|
|
2036
1955
|
param: {
|
|
2037
1956
|
keyId: string;
|
|
@@ -2042,14 +1961,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2042
1961
|
} | {
|
|
2043
1962
|
output: {
|
|
2044
1963
|
error: {
|
|
2045
|
-
code: "
|
|
1964
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
2046
1965
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2047
1966
|
message: string;
|
|
2048
1967
|
};
|
|
2049
1968
|
requestId: string;
|
|
2050
1969
|
};
|
|
2051
1970
|
outputFormat: "json";
|
|
2052
|
-
status:
|
|
1971
|
+
status: 401;
|
|
2053
1972
|
input: {
|
|
2054
1973
|
param: {
|
|
2055
1974
|
keyId: string;
|
|
@@ -2060,14 +1979,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2060
1979
|
} | {
|
|
2061
1980
|
output: {
|
|
2062
1981
|
error: {
|
|
2063
|
-
code: "
|
|
1982
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
2064
1983
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2065
1984
|
message: string;
|
|
2066
1985
|
};
|
|
2067
1986
|
requestId: string;
|
|
2068
1987
|
};
|
|
2069
1988
|
outputFormat: "json";
|
|
2070
|
-
status:
|
|
1989
|
+
status: 403;
|
|
2071
1990
|
input: {
|
|
2072
1991
|
param: {
|
|
2073
1992
|
keyId: string;
|
|
@@ -2078,14 +1997,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2078
1997
|
} | {
|
|
2079
1998
|
output: {
|
|
2080
1999
|
error: {
|
|
2081
|
-
code: "
|
|
2000
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
2082
2001
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2083
2002
|
message: string;
|
|
2084
2003
|
};
|
|
2085
2004
|
requestId: string;
|
|
2086
2005
|
};
|
|
2087
2006
|
outputFormat: "json";
|
|
2088
|
-
status:
|
|
2007
|
+
status: 429;
|
|
2089
2008
|
input: {
|
|
2090
2009
|
param: {
|
|
2091
2010
|
keyId: string;
|
|
@@ -2096,14 +2015,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2096
2015
|
} | {
|
|
2097
2016
|
output: {
|
|
2098
2017
|
error: {
|
|
2099
|
-
code: "
|
|
2018
|
+
code: "upstream_error";
|
|
2100
2019
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2101
2020
|
message: string;
|
|
2102
2021
|
};
|
|
2103
2022
|
requestId: string;
|
|
2104
2023
|
};
|
|
2105
2024
|
outputFormat: "json";
|
|
2106
|
-
status:
|
|
2025
|
+
status: 502;
|
|
2107
2026
|
input: {
|
|
2108
2027
|
param: {
|
|
2109
2028
|
keyId: string;
|
|
@@ -2114,14 +2033,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2114
2033
|
} | {
|
|
2115
2034
|
output: {
|
|
2116
2035
|
error: {
|
|
2117
|
-
code: "
|
|
2036
|
+
code: "param_invalid";
|
|
2118
2037
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2119
2038
|
message: string;
|
|
2120
2039
|
};
|
|
2121
2040
|
requestId: string;
|
|
2122
2041
|
};
|
|
2123
2042
|
outputFormat: "json";
|
|
2124
|
-
status:
|
|
2043
|
+
status: 400;
|
|
2125
2044
|
input: {
|
|
2126
2045
|
param: {
|
|
2127
2046
|
keyId: string;
|
|
@@ -2132,14 +2051,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2132
2051
|
} | {
|
|
2133
2052
|
output: {
|
|
2134
2053
|
error: {
|
|
2135
|
-
code: "
|
|
2054
|
+
code: "forbidden";
|
|
2136
2055
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2137
2056
|
message: string;
|
|
2138
2057
|
};
|
|
2139
2058
|
requestId: string;
|
|
2140
2059
|
};
|
|
2141
2060
|
outputFormat: "json";
|
|
2142
|
-
status:
|
|
2061
|
+
status: 403;
|
|
2143
2062
|
input: {
|
|
2144
2063
|
param: {
|
|
2145
2064
|
keyId: string;
|
|
@@ -2150,7 +2069,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2150
2069
|
} | {
|
|
2151
2070
|
output: {
|
|
2152
2071
|
error: {
|
|
2153
|
-
code: "
|
|
2072
|
+
code: "organization_not_found" | "project_not_found";
|
|
2154
2073
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2155
2074
|
message: string;
|
|
2156
2075
|
};
|
|
@@ -2168,7 +2087,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2168
2087
|
} | {
|
|
2169
2088
|
output: {
|
|
2170
2089
|
error: {
|
|
2171
|
-
code: "
|
|
2090
|
+
code: "api_keys_not_enabled";
|
|
2172
2091
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2173
2092
|
message: string;
|
|
2174
2093
|
};
|
|
@@ -2186,14 +2105,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2186
2105
|
} | {
|
|
2187
2106
|
output: {
|
|
2188
2107
|
error: {
|
|
2189
|
-
code: "
|
|
2108
|
+
code: "api_key_not_found";
|
|
2190
2109
|
details?: readonly Response.error.Detail[] | undefined;
|
|
2191
2110
|
message: string;
|
|
2192
2111
|
};
|
|
2193
2112
|
requestId: string;
|
|
2194
2113
|
};
|
|
2195
2114
|
outputFormat: "json";
|
|
2196
|
-
status:
|
|
2115
|
+
status: 404;
|
|
2197
2116
|
input: {
|
|
2198
2117
|
param: {
|
|
2199
2118
|
keyId: string;
|
|
@@ -2203,15 +2122,10 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
2203
2122
|
};
|
|
2204
2123
|
} | {
|
|
2205
2124
|
output: {
|
|
2206
|
-
|
|
2207
|
-
code: "upstream_error";
|
|
2208
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
2209
|
-
message: string;
|
|
2210
|
-
};
|
|
2211
|
-
requestId: string;
|
|
2125
|
+
id: string;
|
|
2212
2126
|
};
|
|
2213
2127
|
outputFormat: "json";
|
|
2214
|
-
status:
|
|
2128
|
+
status: 200;
|
|
2215
2129
|
input: {
|
|
2216
2130
|
param: {
|
|
2217
2131
|
keyId: string;
|