tapimo 0.2.0 → 0.4.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 +36 -8
- package/dist/ApiKey.d.ts +1 -0
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/ApiKey.js +5 -2
- package/dist/ApiKey.js.map +1 -1
- package/dist/ApiKeys.d.ts +28 -1
- package/dist/ApiKeys.d.ts.map +1 -1
- package/dist/ApiKeys.js +34 -1
- package/dist/ApiKeys.js.map +1 -1
- package/dist/App.d.ts +7532 -4850
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +11 -3
- package/dist/App.js.map +1 -1
- package/dist/Scope.d.ts +11 -2
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +14 -3
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +63 -53
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +7 -0
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/scopes.d.ts +8 -0
- package/dist/admin/apps/scopes.d.ts.map +1 -1
- package/dist/admin/apps/scopes.js +3 -0
- package/dist/admin/apps/scopes.js.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +57 -57
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.js +13 -13
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/Analytics.d.ts +151 -0
- package/dist/analytics/Analytics.d.ts.map +1 -0
- package/dist/analytics/Analytics.js +212 -0
- package/dist/analytics/Analytics.js.map +1 -0
- package/dist/analytics/tables/requestEvents.d.ts +215 -0
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -0
- package/dist/analytics/tables/requestEvents.js +264 -0
- package/dist/analytics/tables/requestEvents.js.map +1 -0
- package/dist/apps/data/App.d.ts +1049 -624
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +36 -0
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/FundingRouteProviders.d.ts +54 -0
- package/dist/apps/data/FundingRouteProviders.d.ts.map +1 -0
- package/dist/apps/data/FundingRouteProviders.js +355 -0
- package/dist/apps/data/FundingRouteProviders.js.map +1 -0
- package/dist/apps/data/index.d.ts +1 -0
- package/dist/apps/data/index.d.ts.map +1 -1
- package/dist/apps/data/index.js +1 -0
- package/dist/apps/data/index.js.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +45 -45
- package/dist/apps/data/routes/coingecko.d.ts +176 -176
- package/dist/apps/data/routes/exchanges.d.ts +455 -455
- package/dist/apps/data/routes/fee-amm.d.ts +101 -101
- package/dist/apps/data/routes/funding.d.ts +843 -0
- package/dist/apps/data/routes/funding.d.ts.map +1 -0
- package/dist/apps/data/routes/funding.js +443 -0
- package/dist/apps/data/routes/funding.js.map +1 -0
- package/dist/apps/data/routes/indexer.d.ts +5 -5
- package/dist/apps/data/routes/receipts.d.ts.map +1 -1
- package/dist/apps/data/routes/receipts.js +2 -8
- package/dist/apps/data/routes/receipts.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts +29 -36
- package/dist/apps/data/routes/rpc.d.ts.map +1 -1
- package/dist/apps/data/routes/rpc.js +29 -1
- package/dist/apps/data/routes/rpc.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +36 -36
- package/dist/apps/data/routes/transfers.d.ts +56 -56
- package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
- package/dist/apps/data/routes/webhooks.d.ts +45 -45
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +8 -8
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/docs/App.d.ts +5 -3
- package/dist/apps/docs/App.d.ts.map +1 -1
- package/dist/apps/docs/App.js +28 -96
- package/dist/apps/docs/App.js.map +1 -1
- package/dist/apps/docs/reference.d.ts +21 -0
- package/dist/apps/docs/reference.d.ts.map +1 -0
- package/dist/apps/docs/reference.js +112 -0
- package/dist/apps/docs/reference.js.map +1 -0
- package/dist/apps/index.d.ts +3 -2
- package/dist/apps/index.d.ts.map +1 -1
- package/dist/apps/index.js +3 -2
- package/dist/apps/index.js.map +1 -1
- package/dist/apps/{platform → management}/App.d.ts +3015 -738
- package/dist/apps/management/App.d.ts.map +1 -0
- package/dist/apps/{platform → management}/App.js +20 -10
- package/dist/apps/management/App.js.map +1 -0
- package/dist/apps/management/Billing.d.ts +279 -0
- package/dist/apps/management/Billing.d.ts.map +1 -0
- package/dist/apps/management/Billing.js +477 -0
- package/dist/apps/management/Billing.js.map +1 -0
- package/dist/apps/management/index.d.ts +3 -0
- package/dist/apps/management/index.d.ts.map +1 -0
- package/dist/apps/management/index.js +3 -0
- package/dist/apps/management/index.js.map +1 -0
- package/dist/apps/{platform → management}/routes/api-keys.d.ts +341 -49
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -0
- package/dist/apps/{platform → management}/routes/api-keys.js +116 -14
- package/dist/apps/management/routes/api-keys.js.map +1 -0
- package/dist/apps/management/routes/billing.d.ts +1520 -0
- package/dist/apps/management/routes/billing.d.ts.map +1 -0
- package/dist/apps/management/routes/billing.js +795 -0
- package/dist/apps/management/routes/billing.js.map +1 -0
- package/dist/apps/{platform → management}/routes/invitations.d.ts +202 -84
- package/dist/apps/management/routes/invitations.d.ts.map +1 -0
- package/dist/apps/{platform → management}/routes/invitations.js +59 -1
- package/dist/apps/management/routes/invitations.js.map +1 -0
- package/dist/apps/{platform → management}/routes/me.d.ts +17 -17
- package/dist/apps/management/routes/me.d.ts.map +1 -0
- package/dist/apps/management/routes/me.js.map +1 -0
- package/dist/apps/management/routes/members.d.ts.map +1 -0
- package/dist/apps/management/routes/members.js.map +1 -0
- package/dist/apps/{platform → management}/routes/orgs.d.ts +50 -36
- package/dist/apps/management/routes/orgs.d.ts.map +1 -0
- package/dist/apps/{platform → management}/routes/orgs.js +14 -3
- package/dist/apps/management/routes/orgs.js.map +1 -0
- package/dist/apps/{platform → management}/routes/projects.d.ts +97 -97
- package/dist/apps/{platform → management}/routes/projects.d.ts.map +1 -1
- package/dist/apps/management/routes/projects.js.map +1 -0
- package/dist/apps/management/routes/scopes.d.ts +107 -0
- package/dist/apps/management/routes/scopes.d.ts.map +1 -0
- package/dist/apps/management/routes/scopes.js +66 -0
- package/dist/apps/management/routes/scopes.js.map +1 -0
- package/dist/apps/management/routes/usage.d.ts +588 -0
- package/dist/apps/management/routes/usage.d.ts.map +1 -0
- package/dist/apps/management/routes/usage.js +391 -0
- package/dist/apps/management/routes/usage.js.map +1 -0
- package/dist/apps/mcp.d.ts +76 -0
- package/dist/apps/mcp.d.ts.map +1 -0
- package/dist/apps/mcp.js +188 -0
- package/dist/apps/mcp.js.map +1 -0
- package/dist/apps/relay/App.d.ts +4 -1
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +118 -10
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
- package/dist/apps/relay/Sponsorships.js +2 -1
- package/dist/apps/relay/Sponsorships.js.map +1 -1
- package/dist/cli/Cli.d.ts +8 -1
- package/dist/cli/Cli.d.ts.map +1 -1
- package/dist/cli/Cli.js +11 -3
- package/dist/cli/Cli.js.map +1 -1
- package/dist/cli/commands/admin.d.ts +4 -0
- package/dist/cli/commands/admin.d.ts.map +1 -1
- package/dist/cli/commands/admin.js +80 -1
- package/dist/cli/commands/admin.js.map +1 -1
- package/dist/db/Db.d.ts +7 -0
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +126 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +79 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +88 -2
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/billingSettings.d.ts +55 -0
- package/dist/db/tables/billingSettings.d.ts.map +1 -0
- package/dist/db/tables/billingSettings.js +70 -0
- package/dist/db/tables/billingSettings.js.map +1 -0
- package/dist/db/tables/invitations.js +2 -2
- package/dist/db/tables/invitations.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +6 -2
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +10 -4
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/projects.js +2 -2
- package/dist/db/tables/projects.js.map +1 -1
- package/dist/db/tables/requestUsage.d.ts +121 -0
- package/dist/db/tables/requestUsage.d.ts.map +1 -0
- package/dist/db/tables/requestUsage.js +150 -0
- package/dist/db/tables/requestUsage.js.map +1 -0
- package/dist/db/tables/sponsoredTransactions.d.ts +119 -0
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +155 -2
- package/dist/db/tables/sponsoredTransactions.js.map +1 -1
- package/dist/db/tables/stripeCustomers.d.ts +81 -0
- package/dist/db/tables/stripeCustomers.d.ts.map +1 -0
- package/dist/db/tables/stripeCustomers.js +120 -0
- package/dist/db/tables/stripeCustomers.js.map +1 -0
- package/dist/db/tables/users.js +2 -2
- package/dist/db/tables/users.js.map +1 -1
- package/dist/handlers/internal/sponsorship.d.ts +5 -2
- package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
- package/dist/handlers/internal/sponsorship.js +19 -5
- package/dist/handlers/internal/sponsorship.js.map +1 -1
- package/dist/handlers/internal/utils.d.ts +10 -3
- package/dist/handlers/internal/utils.d.ts.map +1 -1
- package/dist/handlers/internal/utils.js +14 -6
- package/dist/handlers/internal/utils.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/Auth.d.ts +18 -4
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +149 -77
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Cache.d.ts.map +1 -1
- package/dist/internal/Cache.js +4 -1
- package/dist/internal/Cache.js.map +1 -1
- package/dist/internal/EdgeCache.d.ts +10 -0
- package/dist/internal/EdgeCache.d.ts.map +1 -1
- package/dist/internal/EdgeCache.js +39 -8
- package/dist/internal/EdgeCache.js.map +1 -1
- package/dist/internal/Fees.d.ts +27 -0
- package/dist/internal/Fees.d.ts.map +1 -0
- package/dist/internal/Fees.js +48 -0
- package/dist/internal/Fees.js.map +1 -0
- package/dist/internal/FundingRoutes.d.ts +915 -0
- package/dist/internal/FundingRoutes.d.ts.map +1 -0
- package/dist/internal/FundingRoutes.js +625 -0
- package/dist/internal/FundingRoutes.js.map +1 -0
- package/dist/internal/Id.d.ts +15 -0
- package/dist/internal/Id.d.ts.map +1 -0
- package/dist/internal/Id.js +22 -0
- package/dist/internal/Id.js.map +1 -0
- package/dist/internal/Log.d.ts +2 -0
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +3 -0
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/OpenApi.d.ts +10 -1
- package/dist/internal/OpenApi.d.ts.map +1 -1
- package/dist/internal/OpenApi.js +8 -1
- package/dist/internal/OpenApi.js.map +1 -1
- package/dist/internal/RateLimit.d.ts +25 -0
- package/dist/internal/RateLimit.d.ts.map +1 -1
- package/dist/internal/RateLimit.js +51 -0
- package/dist/internal/RateLimit.js.map +1 -1
- package/dist/internal/Response.d.ts +1 -1
- package/dist/internal/Response.d.ts.map +1 -1
- package/dist/internal/Schema.d.ts +8 -0
- package/dist/internal/Schema.d.ts.map +1 -1
- package/dist/internal/Schema.js +7 -0
- package/dist/internal/Schema.js.map +1 -1
- package/dist/internal/Webhooks.d.ts.map +1 -1
- package/dist/internal/Webhooks.js +3 -3
- package/dist/internal/Webhooks.js.map +1 -1
- package/package.json +8 -7
- package/src/ApiKey.ts +9 -2
- package/src/ApiKeys.test.ts +51 -0
- package/src/ApiKeys.ts +50 -1
- package/src/App.test.ts +33 -86718
- package/src/App.ts +26 -8
- package/src/Client.test-d.ts +353 -2
- package/src/Scope.ts +16 -3
- package/src/admin/apps/scopes.test.ts +6 -0
- package/src/admin/apps/scopes.ts +3 -0
- package/src/admin/ui/src/components/Page.tsx +2 -3
- package/src/admin/ui/src/routes/__root.tsx +2 -2
- package/src/admin/ui/src/routes/api-keys.tsx +2 -2
- package/src/admin/ui.generated.ts +13 -13
- package/src/analytics/Analytics.test.ts +527 -0
- package/src/analytics/Analytics.ts +318 -0
- package/src/analytics/tables/requestEvents.ts +523 -0
- package/src/apps/composition.test.ts +26 -13
- package/src/apps/data/App.test.ts +72 -0
- package/src/apps/data/App.ts +37 -0
- package/src/apps/data/FundingRouteProviders.test.ts +281 -0
- package/src/apps/data/FundingRouteProviders.ts +459 -0
- package/src/apps/data/index.ts +1 -0
- package/src/apps/data/routes/funding.test.ts +314 -0
- package/src/apps/data/routes/funding.ts +698 -0
- package/src/apps/data/routes/receipts.ts +2 -9
- package/src/apps/data/routes/rpc.test.ts +78 -2
- package/src/apps/data/routes/rpc.ts +31 -1
- package/src/apps/data/routes/webhooks.test.ts +1 -1
- package/src/apps/data/routes/webhooks.ts +11 -8
- package/src/apps/docs/App.ts +30 -101
- package/src/apps/docs/reference.ts +132 -0
- package/src/apps/index.ts +3 -2
- package/src/apps/{platform → management}/App.ts +56 -17
- package/src/apps/management/Billing.test.ts +530 -0
- package/src/apps/management/Billing.ts +682 -0
- package/src/apps/management/index.ts +2 -0
- package/src/apps/{platform → management}/routes/api-keys.test.ts +172 -9
- package/src/apps/{platform → management}/routes/api-keys.ts +137 -21
- package/src/apps/management/routes/billing.test.ts +1100 -0
- package/src/apps/management/routes/billing.ts +966 -0
- package/src/apps/{platform → management}/routes/invitations.test.ts +55 -7
- package/src/apps/{platform → management}/routes/invitations.ts +69 -1
- package/src/apps/management/routes/me.test.ts +351 -0
- package/src/apps/{platform → management}/routes/orgs.ts +26 -4
- package/src/apps/management/routes/scopes.test.ts +29 -0
- package/src/apps/management/routes/scopes.ts +85 -0
- package/src/apps/management/routes/usage.test.ts +422 -0
- package/src/apps/management/routes/usage.ts +527 -0
- package/src/apps/mcp.test.ts +206 -0
- package/src/apps/mcp.ts +250 -0
- package/src/apps/relay/App.test.ts +457 -8
- package/src/apps/relay/App.ts +120 -12
- package/src/apps/relay/Sponsorships.test.ts +1 -1
- package/src/apps/relay/Sponsorships.ts +2 -1
- package/src/cli/Cli.test.ts +25 -2
- package/src/cli/Cli.ts +17 -2
- package/src/cli/commands/admin.test.ts +83 -0
- package/src/cli/commands/admin.ts +89 -1
- package/src/db/Db.ts +137 -0
- package/src/db/Schema.ts +104 -2
- package/src/db/tables/billingSettings.test.ts +87 -0
- package/src/db/tables/billingSettings.ts +108 -0
- package/src/db/tables/invitations.ts +2 -2
- package/src/db/tables/organizations.test.ts +1 -1
- package/src/db/tables/organizations.ts +15 -5
- package/src/db/tables/projects.ts +2 -2
- package/src/db/tables/requestUsage.ts +231 -0
- package/src/db/tables/sponsoredTransactions.test.ts +108 -1
- package/src/db/tables/sponsoredTransactions.ts +230 -2
- package/src/db/tables/stripeCustomers.test.ts +109 -0
- package/src/db/tables/stripeCustomers.ts +162 -0
- package/src/db/tables/users.ts +2 -2
- package/src/handlers/internal/sponsorship.ts +34 -7
- package/src/handlers/internal/utils.ts +19 -7
- package/src/index.ts +1 -0
- package/src/internal/Auth.test.ts +175 -25
- package/src/internal/Auth.ts +176 -87
- package/src/internal/Cache.ts +5 -1
- package/src/internal/EdgeCache.test.ts +27 -4
- package/src/internal/EdgeCache.ts +47 -9
- package/src/internal/Fees.test.ts +32 -0
- package/src/internal/Fees.ts +51 -0
- package/src/internal/FundingRoutes.test.ts +213 -0
- package/src/internal/FundingRoutes.ts +898 -0
- package/src/internal/Id.test.ts +17 -0
- package/src/internal/Id.ts +24 -0
- package/src/internal/Log.test.ts +1 -0
- package/src/internal/Log.ts +5 -0
- package/src/internal/OpenApi.ts +12 -1
- package/src/internal/RateLimit.test.ts +84 -0
- package/src/internal/RateLimit.ts +70 -0
- package/src/internal/Response.ts +1 -1
- package/src/internal/Schema.ts +8 -0
- package/src/internal/Webhooks.test.ts +3 -3
- package/src/internal/Webhooks.ts +3 -3
- package/dist/apps/platform/App.d.ts.map +0 -1
- package/dist/apps/platform/App.js.map +0 -1
- package/dist/apps/platform/index.d.ts +0 -2
- package/dist/apps/platform/index.d.ts.map +0 -1
- package/dist/apps/platform/index.js +0 -2
- package/dist/apps/platform/index.js.map +0 -1
- package/dist/apps/platform/routes/api-keys.d.ts.map +0 -1
- package/dist/apps/platform/routes/api-keys.js.map +0 -1
- package/dist/apps/platform/routes/invitations.d.ts.map +0 -1
- package/dist/apps/platform/routes/invitations.js.map +0 -1
- package/dist/apps/platform/routes/me.d.ts.map +0 -1
- package/dist/apps/platform/routes/me.js.map +0 -1
- package/dist/apps/platform/routes/members.d.ts.map +0 -1
- package/dist/apps/platform/routes/members.js.map +0 -1
- package/dist/apps/platform/routes/orgs.d.ts.map +0 -1
- package/dist/apps/platform/routes/orgs.js.map +0 -1
- package/dist/apps/platform/routes/projects.js.map +0 -1
- package/src/apps/platform/index.ts +0 -1
- package/src/apps/platform/routes/me.test.ts +0 -121
- /package/dist/apps/{platform → management}/routes/me.js +0 -0
- /package/dist/apps/{platform → management}/routes/members.d.ts +0 -0
- /package/dist/apps/{platform → management}/routes/members.js +0 -0
- /package/dist/apps/{platform → management}/routes/projects.js +0 -0
- /package/src/apps/{platform → management}/routes/me.ts +0 -0
- /package/src/apps/{platform → management}/routes/members.test.ts +0 -0
- /package/src/apps/{platform → management}/routes/members.ts +0 -0
- /package/src/apps/{platform → management}/routes/orgs.test.ts +0 -0
- /package/src/apps/{platform → management}/routes/projects.test.ts +0 -0
- /package/src/apps/{platform → management}/routes/projects.ts +0 -0
|
@@ -15,7 +15,7 @@ export declare namespace schema {
|
|
|
15
15
|
id: z.ZodMiniString<string>;
|
|
16
16
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
17
17
|
orgId: z.ZodMiniString<string>;
|
|
18
|
-
projectId: z.ZodMiniString<string
|
|
18
|
+
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
19
19
|
scopes: z.ZodMiniArray<z.ZodMiniEnum<{
|
|
20
20
|
"*": "*";
|
|
21
21
|
"data:read": "data:read";
|
|
@@ -32,6 +32,10 @@ export declare namespace schema {
|
|
|
32
32
|
orgId: z.ZodMiniString<string>;
|
|
33
33
|
projectId: z.ZodMiniString<string>;
|
|
34
34
|
}, z.core.$strip>;
|
|
35
|
+
/** Path parameters addressing an organization's key collection. */
|
|
36
|
+
const OrgParams: z.ZodMiniObject<{
|
|
37
|
+
orgId: z.ZodMiniString<string>;
|
|
38
|
+
}, z.core.$strip>;
|
|
35
39
|
/** Path parameters addressing one API key. */
|
|
36
40
|
const KeyParams: z.ZodMiniObject<{
|
|
37
41
|
keyId: z.ZodMiniString<string>;
|
|
@@ -45,14 +49,14 @@ export declare namespace schema {
|
|
|
45
49
|
sandbox: "sandbox";
|
|
46
50
|
}>>;
|
|
47
51
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
48
|
-
scopes: z.ZodMiniArray<z.ZodMiniEnum<{
|
|
52
|
+
scopes: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniEnum<{
|
|
49
53
|
"data:read": "data:read";
|
|
50
54
|
"indexer:query": "indexer:query";
|
|
51
55
|
"rpc-relay:read": "rpc-relay:read";
|
|
52
56
|
"rpc-relay:sponsor": "rpc-relay:sponsor";
|
|
53
57
|
"webhooks:read": "webhooks:read";
|
|
54
58
|
"webhooks:write": "webhooks:write";
|
|
55
|
-
}
|
|
59
|
+
}>>>;
|
|
56
60
|
}, z.core.$strip>;
|
|
57
61
|
/** Schemas for the createApiKey operation. */
|
|
58
62
|
namespace createApiKey {
|
|
@@ -68,7 +72,7 @@ export declare namespace schema {
|
|
|
68
72
|
id: z.ZodMiniString<string>;
|
|
69
73
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
70
74
|
orgId: z.ZodMiniString<string>;
|
|
71
|
-
projectId: z.ZodMiniString<string
|
|
75
|
+
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
72
76
|
scopes: z.ZodMiniArray<z.ZodMiniEnum<{
|
|
73
77
|
"*": "*";
|
|
74
78
|
"data:read": "data:read";
|
|
@@ -84,6 +88,13 @@ export declare namespace schema {
|
|
|
84
88
|
}
|
|
85
89
|
/** Schemas for the listApiKeys operation. */
|
|
86
90
|
namespace listApiKeys {
|
|
91
|
+
/** Query parameters filtering a project's keys. */
|
|
92
|
+
const Query: z.ZodMiniObject<{
|
|
93
|
+
environment: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
94
|
+
production: "production";
|
|
95
|
+
sandbox: "sandbox";
|
|
96
|
+
}>>;
|
|
97
|
+
}, z.core.$strict>;
|
|
87
98
|
/** Non-paginated list of a project's keys. */
|
|
88
99
|
const Response: z.ZodMiniObject<{
|
|
89
100
|
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -97,7 +108,43 @@ export declare namespace schema {
|
|
|
97
108
|
id: z.ZodMiniString<string>;
|
|
98
109
|
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
99
110
|
orgId: z.ZodMiniString<string>;
|
|
100
|
-
projectId: z.ZodMiniString<string
|
|
111
|
+
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
112
|
+
scopes: z.ZodMiniArray<z.ZodMiniEnum<{
|
|
113
|
+
"*": "*";
|
|
114
|
+
"data:read": "data:read";
|
|
115
|
+
"indexer:query": "indexer:query";
|
|
116
|
+
"rpc-relay:read": "rpc-relay:read";
|
|
117
|
+
"rpc-relay:sponsor": "rpc-relay:sponsor";
|
|
118
|
+
"webhooks:read": "webhooks:read";
|
|
119
|
+
"webhooks:write": "webhooks:write";
|
|
120
|
+
}>>;
|
|
121
|
+
tokenLast4: z.ZodMiniString<string>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
}
|
|
125
|
+
/** Schemas for the listOrgApiKeys operation. */
|
|
126
|
+
namespace listOrgApiKeys {
|
|
127
|
+
/** Query parameters filtering the organization's keys. */
|
|
128
|
+
const Query: z.ZodMiniObject<{
|
|
129
|
+
environment: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
130
|
+
production: "production";
|
|
131
|
+
sandbox: "sandbox";
|
|
132
|
+
}>>;
|
|
133
|
+
}, z.core.$strict>;
|
|
134
|
+
/** Non-paginated list of every key in the organization. */
|
|
135
|
+
const Response: z.ZodMiniObject<{
|
|
136
|
+
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
137
|
+
createdAt: z.ZodMiniString<string>;
|
|
138
|
+
createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
139
|
+
environment: z.ZodMiniEnum<{
|
|
140
|
+
production: "production";
|
|
141
|
+
sandbox: "sandbox";
|
|
142
|
+
}>;
|
|
143
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
144
|
+
id: z.ZodMiniString<string>;
|
|
145
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
146
|
+
orgId: z.ZodMiniString<string>;
|
|
147
|
+
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
101
148
|
scopes: z.ZodMiniArray<z.ZodMiniEnum<{
|
|
102
149
|
"*": "*";
|
|
103
150
|
"data:read": "data:read";
|
|
@@ -120,23 +167,25 @@ export declare namespace schema {
|
|
|
120
167
|
}
|
|
121
168
|
}
|
|
122
169
|
/**
|
|
123
|
-
* Mounts the `/orgs/:orgId/projects/:projectId/api-keys` resource
|
|
124
|
-
* project-scoped
|
|
125
|
-
*
|
|
170
|
+
* Mounts the `/orgs/:orgId/projects/:projectId/api-keys` resource
|
|
171
|
+
* (project-scoped mint/list/revoke) plus the org-wide read
|
|
172
|
+
* `/orgs/:orgId/api-keys`, over the KV state store. Access follows the
|
|
173
|
+
* org/project scope (owning session or super admin); the token appears once,
|
|
174
|
+
* at mint.
|
|
126
175
|
*/
|
|
127
176
|
export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
128
177
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
|
|
129
178
|
$post: {
|
|
130
179
|
output: {
|
|
131
180
|
error: {
|
|
132
|
-
code: "
|
|
181
|
+
code: "api_key_malformed";
|
|
133
182
|
details?: readonly Response.error.Detail[] | undefined;
|
|
134
183
|
message: string;
|
|
135
184
|
};
|
|
136
185
|
requestId: string;
|
|
137
186
|
};
|
|
138
187
|
outputFormat: "json";
|
|
139
|
-
status:
|
|
188
|
+
status: 400;
|
|
140
189
|
input: {
|
|
141
190
|
param: {
|
|
142
191
|
orgId: string;
|
|
@@ -146,20 +195,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
146
195
|
json: {
|
|
147
196
|
environment?: "production" | "sandbox" | undefined;
|
|
148
197
|
name?: string | undefined;
|
|
149
|
-
scopes
|
|
198
|
+
scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
|
|
150
199
|
};
|
|
151
200
|
};
|
|
152
201
|
} | {
|
|
153
202
|
output: {
|
|
154
203
|
error: {
|
|
155
|
-
code: "
|
|
204
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
156
205
|
details?: readonly Response.error.Detail[] | undefined;
|
|
157
206
|
message: string;
|
|
158
207
|
};
|
|
159
208
|
requestId: string;
|
|
160
209
|
};
|
|
161
210
|
outputFormat: "json";
|
|
162
|
-
status:
|
|
211
|
+
status: 401;
|
|
163
212
|
input: {
|
|
164
213
|
param: {
|
|
165
214
|
orgId: string;
|
|
@@ -169,20 +218,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
169
218
|
json: {
|
|
170
219
|
environment?: "production" | "sandbox" | undefined;
|
|
171
220
|
name?: string | undefined;
|
|
172
|
-
scopes
|
|
221
|
+
scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
|
|
173
222
|
};
|
|
174
223
|
};
|
|
175
224
|
} | {
|
|
176
225
|
output: {
|
|
177
226
|
error: {
|
|
178
|
-
code: "
|
|
227
|
+
code: "upstream_error";
|
|
179
228
|
details?: readonly Response.error.Detail[] | undefined;
|
|
180
229
|
message: string;
|
|
181
230
|
};
|
|
182
231
|
requestId: string;
|
|
183
232
|
};
|
|
184
233
|
outputFormat: "json";
|
|
185
|
-
status:
|
|
234
|
+
status: 502;
|
|
186
235
|
input: {
|
|
187
236
|
param: {
|
|
188
237
|
orgId: string;
|
|
@@ -192,13 +241,13 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
192
241
|
json: {
|
|
193
242
|
environment?: "production" | "sandbox" | undefined;
|
|
194
243
|
name?: string | undefined;
|
|
195
|
-
scopes
|
|
244
|
+
scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
|
|
196
245
|
};
|
|
197
246
|
};
|
|
198
247
|
} | {
|
|
199
248
|
output: {
|
|
200
249
|
error: {
|
|
201
|
-
code: "
|
|
250
|
+
code: "body_invalid";
|
|
202
251
|
details?: readonly Response.error.Detail[] | undefined;
|
|
203
252
|
message: string;
|
|
204
253
|
};
|
|
@@ -215,20 +264,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
215
264
|
json: {
|
|
216
265
|
environment?: "production" | "sandbox" | undefined;
|
|
217
266
|
name?: string | undefined;
|
|
218
|
-
scopes
|
|
267
|
+
scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
|
|
219
268
|
};
|
|
220
269
|
};
|
|
221
270
|
} | {
|
|
222
271
|
output: {
|
|
223
272
|
error: {
|
|
224
|
-
code: "
|
|
273
|
+
code: "param_invalid";
|
|
225
274
|
details?: readonly Response.error.Detail[] | undefined;
|
|
226
275
|
message: string;
|
|
227
276
|
};
|
|
228
277
|
requestId: string;
|
|
229
278
|
};
|
|
230
279
|
outputFormat: "json";
|
|
231
|
-
status:
|
|
280
|
+
status: 400;
|
|
232
281
|
input: {
|
|
233
282
|
param: {
|
|
234
283
|
orgId: string;
|
|
@@ -238,20 +287,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
238
287
|
json: {
|
|
239
288
|
environment?: "production" | "sandbox" | undefined;
|
|
240
289
|
name?: string | undefined;
|
|
241
|
-
scopes
|
|
290
|
+
scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
|
|
242
291
|
};
|
|
243
292
|
};
|
|
244
293
|
} | {
|
|
245
294
|
output: {
|
|
246
295
|
error: {
|
|
247
|
-
code: "
|
|
296
|
+
code: "forbidden";
|
|
248
297
|
details?: readonly Response.error.Detail[] | undefined;
|
|
249
298
|
message: string;
|
|
250
299
|
};
|
|
251
300
|
requestId: string;
|
|
252
301
|
};
|
|
253
302
|
outputFormat: "json";
|
|
254
|
-
status:
|
|
303
|
+
status: 403;
|
|
255
304
|
input: {
|
|
256
305
|
param: {
|
|
257
306
|
orgId: string;
|
|
@@ -261,20 +310,20 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
261
310
|
json: {
|
|
262
311
|
environment?: "production" | "sandbox" | undefined;
|
|
263
312
|
name?: string | undefined;
|
|
264
|
-
scopes
|
|
313
|
+
scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
|
|
265
314
|
};
|
|
266
315
|
};
|
|
267
316
|
} | {
|
|
268
317
|
output: {
|
|
269
318
|
error: {
|
|
270
|
-
code: "
|
|
319
|
+
code: "organization_not_found" | "project_not_found";
|
|
271
320
|
details?: readonly Response.error.Detail[] | undefined;
|
|
272
321
|
message: string;
|
|
273
322
|
};
|
|
274
323
|
requestId: string;
|
|
275
324
|
};
|
|
276
325
|
outputFormat: "json";
|
|
277
|
-
status:
|
|
326
|
+
status: 404;
|
|
278
327
|
input: {
|
|
279
328
|
param: {
|
|
280
329
|
orgId: string;
|
|
@@ -284,7 +333,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
284
333
|
json: {
|
|
285
334
|
environment?: "production" | "sandbox" | undefined;
|
|
286
335
|
name?: string | undefined;
|
|
287
|
-
scopes
|
|
336
|
+
scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
|
|
288
337
|
};
|
|
289
338
|
};
|
|
290
339
|
} | {
|
|
@@ -307,7 +356,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
307
356
|
json: {
|
|
308
357
|
environment?: "production" | "sandbox" | undefined;
|
|
309
358
|
name?: string | undefined;
|
|
310
|
-
scopes
|
|
359
|
+
scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
|
|
311
360
|
};
|
|
312
361
|
};
|
|
313
362
|
} | {
|
|
@@ -330,7 +379,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
330
379
|
json: {
|
|
331
380
|
environment?: "production" | "sandbox" | undefined;
|
|
332
381
|
name?: string | undefined;
|
|
333
|
-
scopes
|
|
382
|
+
scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
|
|
334
383
|
};
|
|
335
384
|
};
|
|
336
385
|
} | {
|
|
@@ -342,7 +391,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
342
391
|
id: string;
|
|
343
392
|
name?: string | undefined;
|
|
344
393
|
orgId: string;
|
|
345
|
-
projectId
|
|
394
|
+
projectId?: string | undefined;
|
|
346
395
|
scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
|
|
347
396
|
tokenLast4: string;
|
|
348
397
|
token: string;
|
|
@@ -358,7 +407,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
358
407
|
json: {
|
|
359
408
|
environment?: "production" | "sandbox" | undefined;
|
|
360
409
|
name?: string | undefined;
|
|
361
|
-
scopes
|
|
410
|
+
scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
|
|
362
411
|
};
|
|
363
412
|
};
|
|
364
413
|
};
|
|
@@ -366,6 +415,69 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
366
415
|
} & {
|
|
367
416
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
|
|
368
417
|
$get: {
|
|
418
|
+
output: {
|
|
419
|
+
error: {
|
|
420
|
+
code: "api_key_malformed";
|
|
421
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
422
|
+
message: string;
|
|
423
|
+
};
|
|
424
|
+
requestId: string;
|
|
425
|
+
};
|
|
426
|
+
outputFormat: "json";
|
|
427
|
+
status: 400;
|
|
428
|
+
input: {
|
|
429
|
+
param: {
|
|
430
|
+
orgId: string;
|
|
431
|
+
projectId: string;
|
|
432
|
+
};
|
|
433
|
+
} & {
|
|
434
|
+
query?: {
|
|
435
|
+
environment?: string | string[];
|
|
436
|
+
} | undefined;
|
|
437
|
+
};
|
|
438
|
+
} | {
|
|
439
|
+
output: {
|
|
440
|
+
error: {
|
|
441
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
442
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
443
|
+
message: string;
|
|
444
|
+
};
|
|
445
|
+
requestId: string;
|
|
446
|
+
};
|
|
447
|
+
outputFormat: "json";
|
|
448
|
+
status: 401;
|
|
449
|
+
input: {
|
|
450
|
+
param: {
|
|
451
|
+
orgId: string;
|
|
452
|
+
projectId: string;
|
|
453
|
+
};
|
|
454
|
+
} & {
|
|
455
|
+
query?: {
|
|
456
|
+
environment?: string | string[];
|
|
457
|
+
} | undefined;
|
|
458
|
+
};
|
|
459
|
+
} | {
|
|
460
|
+
output: {
|
|
461
|
+
error: {
|
|
462
|
+
code: "query_invalid";
|
|
463
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
464
|
+
message: string;
|
|
465
|
+
};
|
|
466
|
+
requestId: string;
|
|
467
|
+
};
|
|
468
|
+
outputFormat: "json";
|
|
469
|
+
status: 400;
|
|
470
|
+
input: {
|
|
471
|
+
param: {
|
|
472
|
+
orgId: string;
|
|
473
|
+
projectId: string;
|
|
474
|
+
};
|
|
475
|
+
} & {
|
|
476
|
+
query?: {
|
|
477
|
+
environment?: string | string[];
|
|
478
|
+
} | undefined;
|
|
479
|
+
};
|
|
480
|
+
} | {
|
|
369
481
|
output: {
|
|
370
482
|
error: {
|
|
371
483
|
code: "upstream_error";
|
|
@@ -381,6 +493,31 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
381
493
|
orgId: string;
|
|
382
494
|
projectId: string;
|
|
383
495
|
};
|
|
496
|
+
} & {
|
|
497
|
+
query?: {
|
|
498
|
+
environment?: string | string[];
|
|
499
|
+
} | undefined;
|
|
500
|
+
};
|
|
501
|
+
} | {
|
|
502
|
+
output: {
|
|
503
|
+
error: {
|
|
504
|
+
code: "param_invalid";
|
|
505
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
506
|
+
message: string;
|
|
507
|
+
};
|
|
508
|
+
requestId: string;
|
|
509
|
+
};
|
|
510
|
+
outputFormat: "json";
|
|
511
|
+
status: 400;
|
|
512
|
+
input: {
|
|
513
|
+
param: {
|
|
514
|
+
orgId: string;
|
|
515
|
+
projectId: string;
|
|
516
|
+
};
|
|
517
|
+
} & {
|
|
518
|
+
query?: {
|
|
519
|
+
environment?: string | string[];
|
|
520
|
+
} | undefined;
|
|
384
521
|
};
|
|
385
522
|
} | {
|
|
386
523
|
output: {
|
|
@@ -398,6 +535,10 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
398
535
|
orgId: string;
|
|
399
536
|
projectId: string;
|
|
400
537
|
};
|
|
538
|
+
} & {
|
|
539
|
+
query?: {
|
|
540
|
+
environment?: string | string[];
|
|
541
|
+
} | undefined;
|
|
401
542
|
};
|
|
402
543
|
} | {
|
|
403
544
|
output: {
|
|
@@ -415,8 +556,64 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
415
556
|
orgId: string;
|
|
416
557
|
projectId: string;
|
|
417
558
|
};
|
|
559
|
+
} & {
|
|
560
|
+
query?: {
|
|
561
|
+
environment?: string | string[];
|
|
562
|
+
} | undefined;
|
|
418
563
|
};
|
|
419
564
|
} | {
|
|
565
|
+
output: {
|
|
566
|
+
error: {
|
|
567
|
+
code: "api_keys_not_enabled";
|
|
568
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
569
|
+
message: string;
|
|
570
|
+
};
|
|
571
|
+
requestId: string;
|
|
572
|
+
};
|
|
573
|
+
outputFormat: "json";
|
|
574
|
+
status: 404;
|
|
575
|
+
input: {
|
|
576
|
+
param: {
|
|
577
|
+
orgId: string;
|
|
578
|
+
projectId: string;
|
|
579
|
+
};
|
|
580
|
+
} & {
|
|
581
|
+
query?: {
|
|
582
|
+
environment?: string | string[];
|
|
583
|
+
} | undefined;
|
|
584
|
+
};
|
|
585
|
+
} | {
|
|
586
|
+
output: {
|
|
587
|
+
data: {
|
|
588
|
+
createdAt: string;
|
|
589
|
+
createdBy?: string | undefined;
|
|
590
|
+
environment: "production" | "sandbox";
|
|
591
|
+
expiresAt?: string | undefined;
|
|
592
|
+
id: string;
|
|
593
|
+
name?: string | undefined;
|
|
594
|
+
orgId: string;
|
|
595
|
+
projectId?: string | undefined;
|
|
596
|
+
scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
|
|
597
|
+
tokenLast4: string;
|
|
598
|
+
}[];
|
|
599
|
+
};
|
|
600
|
+
outputFormat: "json";
|
|
601
|
+
status: 200;
|
|
602
|
+
input: {
|
|
603
|
+
param: {
|
|
604
|
+
orgId: string;
|
|
605
|
+
projectId: string;
|
|
606
|
+
};
|
|
607
|
+
} & {
|
|
608
|
+
query?: {
|
|
609
|
+
environment?: string | string[];
|
|
610
|
+
} | undefined;
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
} & {
|
|
615
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
|
|
616
|
+
$get: {
|
|
420
617
|
output: {
|
|
421
618
|
error: {
|
|
422
619
|
code: "api_key_malformed";
|
|
@@ -430,8 +627,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
430
627
|
input: {
|
|
431
628
|
param: {
|
|
432
629
|
orgId: string;
|
|
433
|
-
projectId: string;
|
|
434
630
|
};
|
|
631
|
+
} & {
|
|
632
|
+
query?: {
|
|
633
|
+
environment?: string | string[];
|
|
634
|
+
} | undefined;
|
|
435
635
|
};
|
|
436
636
|
} | {
|
|
437
637
|
output: {
|
|
@@ -447,8 +647,51 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
447
647
|
input: {
|
|
448
648
|
param: {
|
|
449
649
|
orgId: string;
|
|
450
|
-
projectId: string;
|
|
451
650
|
};
|
|
651
|
+
} & {
|
|
652
|
+
query?: {
|
|
653
|
+
environment?: string | string[];
|
|
654
|
+
} | undefined;
|
|
655
|
+
};
|
|
656
|
+
} | {
|
|
657
|
+
output: {
|
|
658
|
+
error: {
|
|
659
|
+
code: "query_invalid";
|
|
660
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
661
|
+
message: string;
|
|
662
|
+
};
|
|
663
|
+
requestId: string;
|
|
664
|
+
};
|
|
665
|
+
outputFormat: "json";
|
|
666
|
+
status: 400;
|
|
667
|
+
input: {
|
|
668
|
+
param: {
|
|
669
|
+
orgId: string;
|
|
670
|
+
};
|
|
671
|
+
} & {
|
|
672
|
+
query?: {
|
|
673
|
+
environment?: string | string[];
|
|
674
|
+
} | undefined;
|
|
675
|
+
};
|
|
676
|
+
} | {
|
|
677
|
+
output: {
|
|
678
|
+
error: {
|
|
679
|
+
code: "upstream_error";
|
|
680
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
681
|
+
message: string;
|
|
682
|
+
};
|
|
683
|
+
requestId: string;
|
|
684
|
+
};
|
|
685
|
+
outputFormat: "json";
|
|
686
|
+
status: 502;
|
|
687
|
+
input: {
|
|
688
|
+
param: {
|
|
689
|
+
orgId: string;
|
|
690
|
+
};
|
|
691
|
+
} & {
|
|
692
|
+
query?: {
|
|
693
|
+
environment?: string | string[];
|
|
694
|
+
} | undefined;
|
|
452
695
|
};
|
|
453
696
|
} | {
|
|
454
697
|
output: {
|
|
@@ -464,8 +707,31 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
464
707
|
input: {
|
|
465
708
|
param: {
|
|
466
709
|
orgId: string;
|
|
467
|
-
projectId: string;
|
|
468
710
|
};
|
|
711
|
+
} & {
|
|
712
|
+
query?: {
|
|
713
|
+
environment?: string | string[];
|
|
714
|
+
} | undefined;
|
|
715
|
+
};
|
|
716
|
+
} | {
|
|
717
|
+
output: {
|
|
718
|
+
error: {
|
|
719
|
+
code: "forbidden";
|
|
720
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
721
|
+
message: string;
|
|
722
|
+
};
|
|
723
|
+
requestId: string;
|
|
724
|
+
};
|
|
725
|
+
outputFormat: "json";
|
|
726
|
+
status: 403;
|
|
727
|
+
input: {
|
|
728
|
+
param: {
|
|
729
|
+
orgId: string;
|
|
730
|
+
};
|
|
731
|
+
} & {
|
|
732
|
+
query?: {
|
|
733
|
+
environment?: string | string[];
|
|
734
|
+
} | undefined;
|
|
469
735
|
};
|
|
470
736
|
} | {
|
|
471
737
|
output: {
|
|
@@ -481,8 +747,31 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
481
747
|
input: {
|
|
482
748
|
param: {
|
|
483
749
|
orgId: string;
|
|
484
|
-
projectId: string;
|
|
485
750
|
};
|
|
751
|
+
} & {
|
|
752
|
+
query?: {
|
|
753
|
+
environment?: string | string[];
|
|
754
|
+
} | undefined;
|
|
755
|
+
};
|
|
756
|
+
} | {
|
|
757
|
+
output: {
|
|
758
|
+
error: {
|
|
759
|
+
code: "organization_not_found";
|
|
760
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
761
|
+
message: string;
|
|
762
|
+
};
|
|
763
|
+
requestId: string;
|
|
764
|
+
};
|
|
765
|
+
outputFormat: "json";
|
|
766
|
+
status: 404;
|
|
767
|
+
input: {
|
|
768
|
+
param: {
|
|
769
|
+
orgId: string;
|
|
770
|
+
};
|
|
771
|
+
} & {
|
|
772
|
+
query?: {
|
|
773
|
+
environment?: string | string[];
|
|
774
|
+
} | undefined;
|
|
486
775
|
};
|
|
487
776
|
} | {
|
|
488
777
|
output: {
|
|
@@ -494,7 +783,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
494
783
|
id: string;
|
|
495
784
|
name?: string | undefined;
|
|
496
785
|
orgId: string;
|
|
497
|
-
projectId
|
|
786
|
+
projectId?: string | undefined;
|
|
498
787
|
scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
|
|
499
788
|
tokenLast4: string;
|
|
500
789
|
}[];
|
|
@@ -504,8 +793,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
504
793
|
input: {
|
|
505
794
|
param: {
|
|
506
795
|
orgId: string;
|
|
507
|
-
projectId: string;
|
|
508
796
|
};
|
|
797
|
+
} & {
|
|
798
|
+
query?: {
|
|
799
|
+
environment?: string | string[];
|
|
800
|
+
} | undefined;
|
|
509
801
|
};
|
|
510
802
|
};
|
|
511
803
|
};
|
|
@@ -514,14 +806,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
514
806
|
$delete: {
|
|
515
807
|
output: {
|
|
516
808
|
error: {
|
|
517
|
-
code: "
|
|
809
|
+
code: "api_key_malformed";
|
|
518
810
|
details?: readonly Response.error.Detail[] | undefined;
|
|
519
811
|
message: string;
|
|
520
812
|
};
|
|
521
813
|
requestId: string;
|
|
522
814
|
};
|
|
523
815
|
outputFormat: "json";
|
|
524
|
-
status:
|
|
816
|
+
status: 400;
|
|
525
817
|
input: {
|
|
526
818
|
param: {
|
|
527
819
|
keyId: string;
|
|
@@ -532,14 +824,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
532
824
|
} | {
|
|
533
825
|
output: {
|
|
534
826
|
error: {
|
|
535
|
-
code: "
|
|
827
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
536
828
|
details?: readonly Response.error.Detail[] | undefined;
|
|
537
829
|
message: string;
|
|
538
830
|
};
|
|
539
831
|
requestId: string;
|
|
540
832
|
};
|
|
541
833
|
outputFormat: "json";
|
|
542
|
-
status:
|
|
834
|
+
status: 401;
|
|
543
835
|
input: {
|
|
544
836
|
param: {
|
|
545
837
|
keyId: string;
|
|
@@ -550,14 +842,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
550
842
|
} | {
|
|
551
843
|
output: {
|
|
552
844
|
error: {
|
|
553
|
-
code: "
|
|
845
|
+
code: "upstream_error";
|
|
554
846
|
details?: readonly Response.error.Detail[] | undefined;
|
|
555
847
|
message: string;
|
|
556
848
|
};
|
|
557
849
|
requestId: string;
|
|
558
850
|
};
|
|
559
851
|
outputFormat: "json";
|
|
560
|
-
status:
|
|
852
|
+
status: 502;
|
|
561
853
|
input: {
|
|
562
854
|
param: {
|
|
563
855
|
keyId: string;
|
|
@@ -568,7 +860,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
568
860
|
} | {
|
|
569
861
|
output: {
|
|
570
862
|
error: {
|
|
571
|
-
code: "
|
|
863
|
+
code: "param_invalid";
|
|
572
864
|
details?: readonly Response.error.Detail[] | undefined;
|
|
573
865
|
message: string;
|
|
574
866
|
};
|
|
@@ -586,14 +878,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
586
878
|
} | {
|
|
587
879
|
output: {
|
|
588
880
|
error: {
|
|
589
|
-
code: "
|
|
881
|
+
code: "forbidden";
|
|
590
882
|
details?: readonly Response.error.Detail[] | undefined;
|
|
591
883
|
message: string;
|
|
592
884
|
};
|
|
593
885
|
requestId: string;
|
|
594
886
|
};
|
|
595
887
|
outputFormat: "json";
|
|
596
|
-
status:
|
|
888
|
+
status: 403;
|
|
597
889
|
input: {
|
|
598
890
|
param: {
|
|
599
891
|
keyId: string;
|
|
@@ -604,14 +896,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
604
896
|
} | {
|
|
605
897
|
output: {
|
|
606
898
|
error: {
|
|
607
|
-
code: "
|
|
899
|
+
code: "organization_not_found" | "project_not_found";
|
|
608
900
|
details?: readonly Response.error.Detail[] | undefined;
|
|
609
901
|
message: string;
|
|
610
902
|
};
|
|
611
903
|
requestId: string;
|
|
612
904
|
};
|
|
613
905
|
outputFormat: "json";
|
|
614
|
-
status:
|
|
906
|
+
status: 404;
|
|
615
907
|
input: {
|
|
616
908
|
param: {
|
|
617
909
|
keyId: string;
|