tapimo 0.4.0 → 0.4.3
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 +1 -1
- package/dist/ApiKey.d.ts +1 -9
- package/dist/ApiKey.d.ts.map +1 -1
- package/dist/ApiKey.js +2 -3
- package/dist/ApiKey.js.map +1 -1
- package/dist/ApiKeys.d.ts +53 -27
- package/dist/ApiKeys.d.ts.map +1 -1
- package/dist/ApiKeys.js +32 -17
- package/dist/ApiKeys.js.map +1 -1
- package/dist/App.d.ts +2451 -1533
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +23 -9
- package/dist/App.js.map +1 -1
- package/dist/Assets.d.ts +10 -0
- package/dist/Assets.d.ts.map +1 -1
- package/dist/Assets.js +4 -0
- package/dist/Assets.js.map +1 -1
- package/dist/Auth.d.ts +2 -1
- package/dist/Auth.d.ts.map +1 -1
- package/dist/Auth.js +2 -1
- package/dist/Auth.js.map +1 -1
- package/dist/Scope.d.ts +40 -15
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +44 -13
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +560 -9
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/App.js +38 -6
- package/dist/admin/App.js.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +10 -24
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +10 -3
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/organizations.d.ts +833 -0
- package/dist/admin/apps/organizations.d.ts.map +1 -0
- package/dist/admin/apps/organizations.js +733 -0
- package/dist/admin/apps/organizations.js.map +1 -0
- package/dist/admin/apps/scopes.d.ts +8 -0
- package/dist/admin/apps/scopes.d.ts.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 +53 -13
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/analytics/Analytics.d.ts +10 -0
- package/dist/analytics/Analytics.d.ts.map +1 -1
- package/dist/analytics/Analytics.js +8 -0
- package/dist/analytics/Analytics.js.map +1 -1
- package/dist/analytics/tables/requestEvents.d.ts +9 -0
- package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
- package/dist/analytics/tables/requestEvents.js +14 -0
- package/dist/analytics/tables/requestEvents.js.map +1 -1
- package/dist/apps/data/App.d.ts +1354 -984
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +20 -3
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/FundingRouteProviders.d.ts +94 -5
- package/dist/apps/data/FundingRouteProviders.d.ts.map +1 -1
- package/dist/apps/data/FundingRouteProviders.js +196 -5
- package/dist/apps/data/FundingRouteProviders.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +38 -38
- package/dist/apps/data/routes/addresses.d.ts +24 -24
- package/dist/apps/data/routes/balances.d.ts +45 -45
- package/dist/apps/data/routes/blocks.d.ts +39 -39
- package/dist/apps/data/routes/coingecko.d.ts +176 -176
- package/dist/apps/data/routes/exchanges.d.ts +453 -453
- package/dist/apps/data/routes/fee-amm.d.ts +101 -101
- package/dist/apps/data/routes/funding.d.ts +730 -138
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +234 -0
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts +5 -5
- package/dist/apps/data/routes/rpc.d.ts +31 -31
- package/dist/apps/data/routes/verified-tokens.d.ts +81 -81
- package/dist/apps/management/App.d.ts +1156 -615
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +2 -2
- package/dist/apps/management/Billing.d.ts +3 -0
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +7 -2
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +106 -90
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +41 -30
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +278 -146
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +14 -14
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +93 -20
- package/dist/apps/management/routes/invitations.d.ts.map +1 -1
- package/dist/apps/management/routes/invitations.js +12 -15
- package/dist/apps/management/routes/invitations.js.map +1 -1
- package/dist/apps/management/routes/me.d.ts +13 -13
- package/dist/apps/management/routes/members.d.ts +89 -18
- package/dist/apps/management/routes/members.d.ts.map +1 -1
- package/dist/apps/management/routes/members.js +10 -10
- package/dist/apps/management/routes/members.js.map +1 -1
- package/dist/apps/management/routes/orgs.d.ts +130 -70
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +19 -19
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +137 -48
- package/dist/apps/management/routes/projects.d.ts.map +1 -1
- package/dist/apps/management/routes/projects.js +12 -13
- package/dist/apps/management/routes/projects.js.map +1 -1
- package/dist/apps/management/routes/scopes.d.ts +14 -28
- package/dist/apps/management/routes/scopes.d.ts.map +1 -1
- package/dist/apps/management/routes/scopes.js +6 -7
- package/dist/apps/management/routes/scopes.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +63 -19
- package/dist/apps/management/routes/usage.d.ts.map +1 -1
- package/dist/apps/management/routes/usage.js +9 -10
- package/dist/apps/management/routes/usage.js.map +1 -1
- package/dist/apps/mcp.d.ts.map +1 -1
- package/dist/apps/mcp.js +35 -3
- package/dist/apps/mcp.js.map +1 -1
- package/dist/apps/relay/App.d.ts +26 -4
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +17 -14
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/db/Db.d.ts +5 -3
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +52 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +13 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +16 -1
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/adminAuditLogs.d.ts +27 -0
- package/dist/db/tables/adminAuditLogs.d.ts.map +1 -0
- package/dist/db/tables/adminAuditLogs.js +19 -0
- package/dist/db/tables/adminAuditLogs.js.map +1 -0
- package/dist/db/tables/invitations.d.ts +1 -1
- package/dist/db/tables/invitations.d.ts.map +1 -1
- package/dist/db/tables/memberships.d.ts +32 -4
- package/dist/db/tables/memberships.d.ts.map +1 -1
- package/dist/db/tables/memberships.js +31 -0
- package/dist/db/tables/memberships.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +43 -1
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +103 -0
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/projects.d.ts +25 -0
- package/dist/db/tables/projects.d.ts.map +1 -1
- package/dist/db/tables/projects.js +22 -0
- package/dist/db/tables/projects.js.map +1 -1
- package/dist/db/tables/webhookDeliveries.d.ts +26 -0
- package/dist/db/tables/webhookDeliveries.d.ts.map +1 -1
- package/dist/db/tables/webhookDeliveries.js +37 -0
- package/dist/db/tables/webhookDeliveries.js.map +1 -1
- package/dist/handlers/relay.d.ts +13 -10
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +46 -16
- package/dist/handlers/relay.js.map +1 -1
- package/dist/internal/Auth.d.ts +13 -18
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +78 -58
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Cursor.d.ts +1 -1
- package/dist/internal/Cursor.d.ts.map +1 -1
- package/dist/internal/Cursor.js +4 -0
- package/dist/internal/Cursor.js.map +1 -1
- package/dist/internal/EdgeCache.d.ts.map +1 -1
- package/dist/internal/EdgeCache.js +2 -0
- package/dist/internal/EdgeCache.js.map +1 -1
- package/dist/internal/FundingRoutes.d.ts +170 -0
- package/dist/internal/FundingRoutes.d.ts.map +1 -1
- package/dist/internal/FundingRoutes.js +68 -6
- package/dist/internal/FundingRoutes.js.map +1 -1
- package/dist/internal/Log.d.ts +16 -1
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +5 -3
- package/dist/internal/Log.js.map +1 -1
- package/package.json +2 -2
- package/src/ApiKey.ts +2 -3
- package/src/ApiKeys.ts +95 -17
- package/src/App.test.ts +44 -2
- package/src/App.ts +29 -9
- package/src/Assets.ts +8 -0
- package/src/Auth.test-d.ts +36 -0
- package/src/Auth.ts +20 -1
- package/src/Client.test-d.ts +64 -17
- package/src/Scope.test.ts +34 -0
- package/src/Scope.ts +53 -17
- package/src/admin/App.test.ts +33 -3
- package/src/admin/App.ts +49 -14
- package/src/admin/apps/api-keys.ts +10 -3
- package/src/admin/apps/organizations.test.ts +455 -0
- package/src/admin/apps/organizations.ts +953 -0
- package/src/admin/apps/scopes.test.ts +10 -0
- package/src/admin/ui/plugin.ts +1 -1
- package/src/admin/ui/src/components/MobileProfile.tsx +2 -0
- package/src/admin/ui/src/components/ThemeToggle.tsx +20 -0
- package/src/admin/ui/src/lib/api-keys.ts +36 -19
- package/src/admin/ui/src/lib/config.ts +2 -3
- package/src/admin/ui/src/lib/organizations.test.ts +89 -0
- package/src/admin/ui/src/lib/organizations.ts +262 -0
- package/src/admin/ui/src/lib/query-client.ts +3 -1
- package/src/admin/ui/src/lib/theme.ts +57 -0
- package/src/admin/ui/src/routeTree.gen.ts +47 -4
- package/src/admin/ui/src/routes/__root.tsx +18 -3
- package/src/admin/ui/src/routes/api-keys.tsx +52 -7
- package/src/admin/ui/src/routes/index.tsx +1 -1
- package/src/admin/ui/src/routes/organizations.tsx +158 -0
- package/src/admin/ui/src/routes/organizations_.$orgId.tsx +710 -0
- package/src/admin/ui/src/start.ts +6 -0
- package/src/admin/ui.generated.ts +63 -13
- package/src/analytics/Analytics.ts +25 -0
- package/src/analytics/tables/requestEvents.ts +33 -0
- package/src/apps/composition.test.ts +82 -2
- package/src/apps/data/App.ts +24 -3
- package/src/apps/data/FundingRouteProviders.test.ts +204 -0
- package/src/apps/data/FundingRouteProviders.ts +294 -9
- package/src/apps/data/routes/funding.test.ts +90 -23
- package/src/apps/data/routes/funding.ts +315 -0
- package/src/apps/data/routes/rpc.test.ts +33 -0
- package/src/apps/management/App.ts +2 -2
- package/src/apps/management/Billing.ts +10 -2
- package/src/apps/management/routes/api-keys.test.ts +137 -1
- package/src/apps/management/routes/api-keys.ts +63 -38
- package/src/apps/management/routes/billing.ts +14 -14
- package/src/apps/management/routes/invitations.test.ts +102 -1
- package/src/apps/management/routes/invitations.ts +13 -15
- package/src/apps/management/routes/members.ts +10 -10
- package/src/apps/management/routes/orgs.test.ts +78 -16
- package/src/apps/management/routes/orgs.ts +21 -20
- package/src/apps/management/routes/projects.ts +12 -13
- package/src/apps/management/routes/scopes.test.ts +16 -0
- package/src/apps/management/routes/scopes.ts +6 -7
- package/src/apps/management/routes/usage.ts +9 -14
- package/src/apps/mcp.test.ts +25 -1
- package/src/apps/mcp.ts +43 -3
- package/src/apps/relay/App.test.ts +23 -18
- package/src/apps/relay/App.ts +35 -14
- package/src/db/Db.ts +59 -3
- package/src/db/Schema.ts +20 -1
- package/src/db/tables/adminAuditLogs.ts +47 -0
- package/src/db/tables/invitations.ts +1 -1
- package/src/db/tables/memberships.ts +59 -3
- package/src/db/tables/organizations.ts +148 -1
- package/src/db/tables/projects.ts +47 -0
- package/src/db/tables/webhookDeliveries.ts +83 -0
- package/src/handlers/relay.test-d.ts +8 -0
- package/src/handlers/relay.test.ts +2 -2
- package/src/handlers/relay.ts +62 -22
- package/src/internal/Auth.test.ts +174 -7
- package/src/internal/Auth.ts +90 -62
- package/src/internal/Cursor.test.ts +10 -0
- package/src/internal/Cursor.ts +5 -1
- package/src/internal/EdgeCache.test.ts +11 -0
- package/src/internal/EdgeCache.ts +2 -0
- package/src/internal/FundingRoutes.test.ts +26 -0
- package/src/internal/FundingRoutes.ts +187 -18
- package/src/internal/Log.test.ts +41 -3
- package/src/internal/Log.ts +23 -4
|
@@ -0,0 +1,833 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
import * as Response from '../../internal/Response.js';
|
|
3
|
+
import type * as App from '../App.js';
|
|
4
|
+
/** Zod schemas owned by the admin organizations handler. */
|
|
5
|
+
export declare namespace schema {
|
|
6
|
+
/** Schemas for the listOrganizations operation. */
|
|
7
|
+
namespace listOrganizations {
|
|
8
|
+
/** Query parameters for organization lookup. */
|
|
9
|
+
const Query: z.ZodMiniObject<{
|
|
10
|
+
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
11
|
+
limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
|
|
12
|
+
query: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<string, string>>>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
/** Organization summary shown in lookup results. */
|
|
15
|
+
const OrganizationSummary: z.ZodMiniObject<{
|
|
16
|
+
createdAt: z.ZodMiniString<string>;
|
|
17
|
+
createdBy: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
18
|
+
id: z.ZodMiniString<string>;
|
|
19
|
+
name: z.ZodMiniString<string>;
|
|
20
|
+
updatedAt: z.ZodMiniString<string>;
|
|
21
|
+
userId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
22
|
+
memberCount: z.ZodMiniNumber<number>;
|
|
23
|
+
projectCount: z.ZodMiniNumber<number>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
/** Cursor-paginated organization lookup results. */
|
|
26
|
+
const Response: z.ZodMiniObject<{
|
|
27
|
+
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
28
|
+
createdAt: z.ZodMiniString<string>;
|
|
29
|
+
createdBy: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
30
|
+
id: z.ZodMiniString<string>;
|
|
31
|
+
name: z.ZodMiniString<string>;
|
|
32
|
+
updatedAt: z.ZodMiniString<string>;
|
|
33
|
+
userId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
34
|
+
memberCount: z.ZodMiniNumber<number>;
|
|
35
|
+
projectCount: z.ZodMiniNumber<number>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
}
|
|
40
|
+
/** Schemas for the getOrganization operation. */
|
|
41
|
+
namespace getOrganization {
|
|
42
|
+
/** Path parameters identifying an organization. */
|
|
43
|
+
const Params: z.ZodMiniObject<{
|
|
44
|
+
orgId: z.ZodMiniString<string>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
/** An organization member with resolved identity. */
|
|
47
|
+
const Member: z.ZodMiniObject<{
|
|
48
|
+
address: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
49
|
+
createdAt: z.ZodMiniString<string>;
|
|
50
|
+
email: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
51
|
+
role: z.ZodMiniEnum<{
|
|
52
|
+
admin: "admin";
|
|
53
|
+
member: "member";
|
|
54
|
+
owner: "owner";
|
|
55
|
+
}>;
|
|
56
|
+
updatedAt: z.ZodMiniString<string>;
|
|
57
|
+
userId: z.ZodMiniString<string>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
/** A project owned by an organization. */
|
|
60
|
+
const Project: z.ZodMiniObject<{
|
|
61
|
+
createdAt: z.ZodMiniString<string>;
|
|
62
|
+
id: z.ZodMiniString<string>;
|
|
63
|
+
name: z.ZodMiniString<string>;
|
|
64
|
+
updatedAt: z.ZodMiniString<string>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
/** Detailed organization lookup response. */
|
|
67
|
+
const Response: z.ZodMiniObject<{
|
|
68
|
+
createdAt: z.ZodMiniString<string>;
|
|
69
|
+
createdBy: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
70
|
+
id: z.ZodMiniString<string>;
|
|
71
|
+
name: z.ZodMiniString<string>;
|
|
72
|
+
updatedAt: z.ZodMiniString<string>;
|
|
73
|
+
userId: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
74
|
+
memberCount: z.ZodMiniNumber<number>;
|
|
75
|
+
projectCount: z.ZodMiniNumber<number>;
|
|
76
|
+
billing: z.ZodMiniObject<{
|
|
77
|
+
production: z.ZodMiniObject<{
|
|
78
|
+
settings: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
79
|
+
currency: z.ZodMiniEnum<{
|
|
80
|
+
usd: "usd";
|
|
81
|
+
}>;
|
|
82
|
+
period: z.ZodMiniEnum<{
|
|
83
|
+
month: "month";
|
|
84
|
+
}>;
|
|
85
|
+
spendLimit: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
86
|
+
txFeeLimit: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
87
|
+
updatedAt: z.ZodMiniString<string>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
source: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
90
|
+
status: z.ZodMiniEnum<{
|
|
91
|
+
active: "active";
|
|
92
|
+
canceled: "canceled";
|
|
93
|
+
none: "none";
|
|
94
|
+
past_due: "past_due";
|
|
95
|
+
}>;
|
|
96
|
+
stripeCustomerId: z.ZodMiniString<string>;
|
|
97
|
+
updatedAt: z.ZodMiniString<string>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
sandbox: z.ZodMiniObject<{
|
|
101
|
+
settings: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
102
|
+
currency: z.ZodMiniEnum<{
|
|
103
|
+
usd: "usd";
|
|
104
|
+
}>;
|
|
105
|
+
period: z.ZodMiniEnum<{
|
|
106
|
+
month: "month";
|
|
107
|
+
}>;
|
|
108
|
+
spendLimit: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
109
|
+
txFeeLimit: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
110
|
+
updatedAt: z.ZodMiniString<string>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
112
|
+
source: z.ZodMiniNullable<z.ZodMiniObject<{
|
|
113
|
+
status: z.ZodMiniEnum<{
|
|
114
|
+
active: "active";
|
|
115
|
+
canceled: "canceled";
|
|
116
|
+
none: "none";
|
|
117
|
+
past_due: "past_due";
|
|
118
|
+
}>;
|
|
119
|
+
stripeCustomerId: z.ZodMiniString<string>;
|
|
120
|
+
updatedAt: z.ZodMiniString<string>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
}
|
|
126
|
+
/** Schemas for the listOrganizationMembers operation. */
|
|
127
|
+
namespace listOrganizationMembers {
|
|
128
|
+
/** Query parameters for paginating organization members. */
|
|
129
|
+
const Query: z.ZodMiniObject<{
|
|
130
|
+
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
131
|
+
limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
/** Cursor-paginated organization members. */
|
|
134
|
+
const Response: z.ZodMiniObject<{
|
|
135
|
+
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
136
|
+
address: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
137
|
+
createdAt: z.ZodMiniString<string>;
|
|
138
|
+
email: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
139
|
+
role: z.ZodMiniEnum<{
|
|
140
|
+
admin: "admin";
|
|
141
|
+
member: "member";
|
|
142
|
+
owner: "owner";
|
|
143
|
+
}>;
|
|
144
|
+
updatedAt: z.ZodMiniString<string>;
|
|
145
|
+
userId: z.ZodMiniString<string>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
}
|
|
150
|
+
/** Schemas for the listOrganizationProjects operation. */
|
|
151
|
+
namespace listOrganizationProjects {
|
|
152
|
+
/** Query parameters for paginating organization projects. */
|
|
153
|
+
const Query: z.ZodMiniObject<{
|
|
154
|
+
cursor: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
155
|
+
limit: z.ZodMiniDefault<z.ZodMiniNumber<unknown>>;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
/** Cursor-paginated organization projects. */
|
|
158
|
+
const Response: z.ZodMiniObject<{
|
|
159
|
+
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
160
|
+
createdAt: z.ZodMiniString<string>;
|
|
161
|
+
id: z.ZodMiniString<string>;
|
|
162
|
+
name: z.ZodMiniString<string>;
|
|
163
|
+
updatedAt: z.ZodMiniString<string>;
|
|
164
|
+
}, z.core.$strip>>;
|
|
165
|
+
nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
}
|
|
168
|
+
/** Schemas for the listOrganizationApiKeys operation. */
|
|
169
|
+
namespace listOrganizationApiKeys {
|
|
170
|
+
/** Active organization API keys. */
|
|
171
|
+
const Response: z.ZodMiniObject<{
|
|
172
|
+
data: z.ZodMiniArray<z.ZodMiniObject<{
|
|
173
|
+
billingActive: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
174
|
+
environment: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
175
|
+
production: "production";
|
|
176
|
+
sandbox: "sandbox";
|
|
177
|
+
}>>;
|
|
178
|
+
id: z.ZodMiniString<string>;
|
|
179
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
180
|
+
orgId: z.ZodMiniString<string>;
|
|
181
|
+
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
182
|
+
rateLimits: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
183
|
+
perMinute: z.ZodMiniNumber<number>;
|
|
184
|
+
}, z.core.$strip>>>;
|
|
185
|
+
scopes: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
186
|
+
createdAt: z.ZodMiniString<string>;
|
|
187
|
+
createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
188
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
189
|
+
tokenLast4: z.ZodMiniString<string>;
|
|
190
|
+
}, z.core.$strip>>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
}
|
|
193
|
+
/** Schemas for the getOrganizationUsage operation. */
|
|
194
|
+
namespace getOrganizationUsage {
|
|
195
|
+
/** Recent-usage window. */
|
|
196
|
+
const Query: z.ZodMiniObject<{
|
|
197
|
+
period: z.ZodMiniDefault<z.ZodMiniEnum<{
|
|
198
|
+
"24h": "24h";
|
|
199
|
+
"30d": "30d";
|
|
200
|
+
"7d": "7d";
|
|
201
|
+
}>>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
/** Recent API usage and error breakdowns. */
|
|
204
|
+
const Response: z.ZodMiniObject<{
|
|
205
|
+
byError: z.ZodMiniArray<z.ZodMiniObject<{
|
|
206
|
+
code: z.ZodMiniString<string>;
|
|
207
|
+
requests: z.ZodMiniNumber<number>;
|
|
208
|
+
}, z.core.$strip>>;
|
|
209
|
+
byRoute: z.ZodMiniArray<z.ZodMiniObject<{
|
|
210
|
+
errors: z.ZodMiniNumber<number>;
|
|
211
|
+
requests: z.ZodMiniNumber<number>;
|
|
212
|
+
averageDurationMs: z.ZodMiniNumber<number>;
|
|
213
|
+
route: z.ZodMiniString<string>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
byStatus: z.ZodMiniArray<z.ZodMiniObject<{
|
|
216
|
+
requests: z.ZodMiniNumber<number>;
|
|
217
|
+
status: z.ZodMiniNumber<number>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
from: z.ZodMiniString<string>;
|
|
220
|
+
period: z.ZodMiniEnum<{
|
|
221
|
+
"24h": "24h";
|
|
222
|
+
"30d": "30d";
|
|
223
|
+
"7d": "7d";
|
|
224
|
+
}>;
|
|
225
|
+
to: z.ZodMiniString<string>;
|
|
226
|
+
totals: z.ZodMiniObject<{
|
|
227
|
+
errors: z.ZodMiniNumber<number>;
|
|
228
|
+
requests: z.ZodMiniNumber<number>;
|
|
229
|
+
averageDurationMs: z.ZodMiniNumber<number>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
}
|
|
233
|
+
/** Schemas for the getOrganizationSponsorship operation. */
|
|
234
|
+
namespace getOrganizationSponsorship {
|
|
235
|
+
/** Current-period sponsorship spend by key environment. */
|
|
236
|
+
const Response: z.ZodMiniObject<{
|
|
237
|
+
production: z.ZodMiniObject<{
|
|
238
|
+
committedSpend: z.ZodMiniString<string>;
|
|
239
|
+
currency: z.ZodMiniEnum<{
|
|
240
|
+
usd: "usd";
|
|
241
|
+
}>;
|
|
242
|
+
from: z.ZodMiniString<string>;
|
|
243
|
+
period: z.ZodMiniEnum<{
|
|
244
|
+
month: "month";
|
|
245
|
+
}>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
sandbox: z.ZodMiniObject<{
|
|
248
|
+
committedSpend: z.ZodMiniString<string>;
|
|
249
|
+
currency: z.ZodMiniEnum<{
|
|
250
|
+
usd: "usd";
|
|
251
|
+
}>;
|
|
252
|
+
from: z.ZodMiniString<string>;
|
|
253
|
+
period: z.ZodMiniEnum<{
|
|
254
|
+
month: "month";
|
|
255
|
+
}>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
to: z.ZodMiniString<string>;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
}
|
|
260
|
+
/** Schemas for the getOrganizationWebhooks operation. */
|
|
261
|
+
namespace getOrganizationWebhooks {
|
|
262
|
+
/** Webhook subscriptions and recent failures. */
|
|
263
|
+
const Response: z.ZodMiniObject<{
|
|
264
|
+
failureCount: z.ZodMiniNumber<number>;
|
|
265
|
+
failures: z.ZodMiniArray<z.ZodMiniObject<{
|
|
266
|
+
attempt: z.ZodMiniNumber<number>;
|
|
267
|
+
createdAt: z.ZodMiniString<string>;
|
|
268
|
+
error: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
269
|
+
id: z.ZodMiniString<string>;
|
|
270
|
+
responseStatus: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
|
|
271
|
+
subscriptionId: z.ZodMiniString<string>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
failuresTruncated: z.ZodMiniBoolean<boolean>;
|
|
274
|
+
from: z.ZodMiniString<string>;
|
|
275
|
+
subscriptions: z.ZodMiniArray<z.ZodMiniObject<{
|
|
276
|
+
chainId: z.ZodMiniNumber<number>;
|
|
277
|
+
createdAt: z.ZodMiniString<string>;
|
|
278
|
+
destination: z.ZodMiniString<string>;
|
|
279
|
+
eventType: z.ZodMiniString<string>;
|
|
280
|
+
failureCount: z.ZodMiniNumber<number>;
|
|
281
|
+
id: z.ZodMiniString<string>;
|
|
282
|
+
lastDeliveryAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
|
|
283
|
+
status: z.ZodMiniEnum<{
|
|
284
|
+
active: "active";
|
|
285
|
+
disabled: "disabled";
|
|
286
|
+
paused: "paused";
|
|
287
|
+
}>;
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
|
+
to: z.ZodMiniString<string>;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
/** Read-only organization lookup routes for administrators. */
|
|
294
|
+
export declare function organizations(): import("hono/hono-base").HonoBase<App.Environment, {
|
|
295
|
+
"/": {
|
|
296
|
+
$get: {
|
|
297
|
+
output: {
|
|
298
|
+
error: {
|
|
299
|
+
code: "upstream_error";
|
|
300
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
301
|
+
message: string;
|
|
302
|
+
};
|
|
303
|
+
requestId: string;
|
|
304
|
+
};
|
|
305
|
+
outputFormat: "json";
|
|
306
|
+
status: 502;
|
|
307
|
+
input: {
|
|
308
|
+
query?: {
|
|
309
|
+
cursor?: string | string[];
|
|
310
|
+
limit?: string | string[];
|
|
311
|
+
query?: string | string[];
|
|
312
|
+
} | undefined;
|
|
313
|
+
};
|
|
314
|
+
} | {
|
|
315
|
+
output: {
|
|
316
|
+
data: {
|
|
317
|
+
createdAt: string;
|
|
318
|
+
createdBy: string | null;
|
|
319
|
+
id: string;
|
|
320
|
+
name: string;
|
|
321
|
+
updatedAt: string;
|
|
322
|
+
userId: string | null;
|
|
323
|
+
memberCount: number;
|
|
324
|
+
projectCount: number;
|
|
325
|
+
}[];
|
|
326
|
+
nextCursor: string | null;
|
|
327
|
+
};
|
|
328
|
+
outputFormat: "json";
|
|
329
|
+
status: 200;
|
|
330
|
+
input: {
|
|
331
|
+
query?: {
|
|
332
|
+
cursor?: string | string[];
|
|
333
|
+
limit?: string | string[];
|
|
334
|
+
query?: string | string[];
|
|
335
|
+
} | undefined;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
} & {
|
|
340
|
+
"/:orgId": {
|
|
341
|
+
$get: {
|
|
342
|
+
output: {
|
|
343
|
+
error: {
|
|
344
|
+
code: "upstream_error";
|
|
345
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
346
|
+
message: string;
|
|
347
|
+
};
|
|
348
|
+
requestId: string;
|
|
349
|
+
};
|
|
350
|
+
outputFormat: "json";
|
|
351
|
+
status: 502;
|
|
352
|
+
input: {
|
|
353
|
+
param: {
|
|
354
|
+
orgId: string;
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
} | {
|
|
358
|
+
output: {
|
|
359
|
+
error: {
|
|
360
|
+
code: "not_found";
|
|
361
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
362
|
+
message: string;
|
|
363
|
+
};
|
|
364
|
+
requestId: string;
|
|
365
|
+
};
|
|
366
|
+
outputFormat: "json";
|
|
367
|
+
status: 404;
|
|
368
|
+
input: {
|
|
369
|
+
param: {
|
|
370
|
+
orgId: string;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
} | {
|
|
374
|
+
output: {
|
|
375
|
+
createdAt: string;
|
|
376
|
+
createdBy: string | null;
|
|
377
|
+
id: string;
|
|
378
|
+
name: string;
|
|
379
|
+
updatedAt: string;
|
|
380
|
+
userId: string | null;
|
|
381
|
+
memberCount: number;
|
|
382
|
+
projectCount: number;
|
|
383
|
+
billing: {
|
|
384
|
+
production: {
|
|
385
|
+
settings: {
|
|
386
|
+
currency: "usd";
|
|
387
|
+
period: "month";
|
|
388
|
+
spendLimit: string | null;
|
|
389
|
+
txFeeLimit: string | null;
|
|
390
|
+
updatedAt: string;
|
|
391
|
+
} | null;
|
|
392
|
+
source: {
|
|
393
|
+
status: "active" | "canceled" | "none" | "past_due";
|
|
394
|
+
stripeCustomerId: string;
|
|
395
|
+
updatedAt: string;
|
|
396
|
+
} | null;
|
|
397
|
+
};
|
|
398
|
+
sandbox: {
|
|
399
|
+
settings: {
|
|
400
|
+
currency: "usd";
|
|
401
|
+
period: "month";
|
|
402
|
+
spendLimit: string | null;
|
|
403
|
+
txFeeLimit: string | null;
|
|
404
|
+
updatedAt: string;
|
|
405
|
+
} | null;
|
|
406
|
+
source: {
|
|
407
|
+
status: "active" | "canceled" | "none" | "past_due";
|
|
408
|
+
stripeCustomerId: string;
|
|
409
|
+
updatedAt: string;
|
|
410
|
+
} | null;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
outputFormat: "json";
|
|
415
|
+
status: 200;
|
|
416
|
+
input: {
|
|
417
|
+
param: {
|
|
418
|
+
orgId: string;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
} & {
|
|
424
|
+
"/:orgId/members": {
|
|
425
|
+
$get: {
|
|
426
|
+
output: {
|
|
427
|
+
error: {
|
|
428
|
+
code: "upstream_error";
|
|
429
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
430
|
+
message: string;
|
|
431
|
+
};
|
|
432
|
+
requestId: string;
|
|
433
|
+
};
|
|
434
|
+
outputFormat: "json";
|
|
435
|
+
status: 502;
|
|
436
|
+
input: {
|
|
437
|
+
param: {
|
|
438
|
+
orgId: string;
|
|
439
|
+
};
|
|
440
|
+
} & {
|
|
441
|
+
query?: {
|
|
442
|
+
cursor?: string | string[];
|
|
443
|
+
limit?: string | string[];
|
|
444
|
+
} | undefined;
|
|
445
|
+
};
|
|
446
|
+
} | {
|
|
447
|
+
output: {
|
|
448
|
+
error: {
|
|
449
|
+
code: "not_found";
|
|
450
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
451
|
+
message: string;
|
|
452
|
+
};
|
|
453
|
+
requestId: string;
|
|
454
|
+
};
|
|
455
|
+
outputFormat: "json";
|
|
456
|
+
status: 404;
|
|
457
|
+
input: {
|
|
458
|
+
param: {
|
|
459
|
+
orgId: string;
|
|
460
|
+
};
|
|
461
|
+
} & {
|
|
462
|
+
query?: {
|
|
463
|
+
cursor?: string | string[];
|
|
464
|
+
limit?: string | string[];
|
|
465
|
+
} | undefined;
|
|
466
|
+
};
|
|
467
|
+
} | {
|
|
468
|
+
output: {
|
|
469
|
+
data: {
|
|
470
|
+
address: string | null;
|
|
471
|
+
createdAt: string;
|
|
472
|
+
email: string | null;
|
|
473
|
+
role: "admin" | "member" | "owner";
|
|
474
|
+
updatedAt: string;
|
|
475
|
+
userId: string;
|
|
476
|
+
}[];
|
|
477
|
+
nextCursor: string | null;
|
|
478
|
+
};
|
|
479
|
+
outputFormat: "json";
|
|
480
|
+
status: 200;
|
|
481
|
+
input: {
|
|
482
|
+
param: {
|
|
483
|
+
orgId: string;
|
|
484
|
+
};
|
|
485
|
+
} & {
|
|
486
|
+
query?: {
|
|
487
|
+
cursor?: string | string[];
|
|
488
|
+
limit?: string | string[];
|
|
489
|
+
} | undefined;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
} & {
|
|
494
|
+
"/:orgId/projects": {
|
|
495
|
+
$get: {
|
|
496
|
+
output: {
|
|
497
|
+
error: {
|
|
498
|
+
code: "upstream_error";
|
|
499
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
500
|
+
message: string;
|
|
501
|
+
};
|
|
502
|
+
requestId: string;
|
|
503
|
+
};
|
|
504
|
+
outputFormat: "json";
|
|
505
|
+
status: 502;
|
|
506
|
+
input: {
|
|
507
|
+
param: {
|
|
508
|
+
orgId: string;
|
|
509
|
+
};
|
|
510
|
+
} & {
|
|
511
|
+
query?: {
|
|
512
|
+
cursor?: string | string[];
|
|
513
|
+
limit?: string | string[];
|
|
514
|
+
} | undefined;
|
|
515
|
+
};
|
|
516
|
+
} | {
|
|
517
|
+
output: {
|
|
518
|
+
error: {
|
|
519
|
+
code: "not_found";
|
|
520
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
521
|
+
message: string;
|
|
522
|
+
};
|
|
523
|
+
requestId: string;
|
|
524
|
+
};
|
|
525
|
+
outputFormat: "json";
|
|
526
|
+
status: 404;
|
|
527
|
+
input: {
|
|
528
|
+
param: {
|
|
529
|
+
orgId: string;
|
|
530
|
+
};
|
|
531
|
+
} & {
|
|
532
|
+
query?: {
|
|
533
|
+
cursor?: string | string[];
|
|
534
|
+
limit?: string | string[];
|
|
535
|
+
} | undefined;
|
|
536
|
+
};
|
|
537
|
+
} | {
|
|
538
|
+
output: {
|
|
539
|
+
data: {
|
|
540
|
+
createdAt: string;
|
|
541
|
+
id: string;
|
|
542
|
+
name: string;
|
|
543
|
+
updatedAt: string;
|
|
544
|
+
}[];
|
|
545
|
+
nextCursor: string | null;
|
|
546
|
+
};
|
|
547
|
+
outputFormat: "json";
|
|
548
|
+
status: 200;
|
|
549
|
+
input: {
|
|
550
|
+
param: {
|
|
551
|
+
orgId: string;
|
|
552
|
+
};
|
|
553
|
+
} & {
|
|
554
|
+
query?: {
|
|
555
|
+
cursor?: string | string[];
|
|
556
|
+
limit?: string | string[];
|
|
557
|
+
} | undefined;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
};
|
|
561
|
+
} & {
|
|
562
|
+
"/:orgId/api-keys": {
|
|
563
|
+
$get: {
|
|
564
|
+
output: {
|
|
565
|
+
error: {
|
|
566
|
+
code: "upstream_error";
|
|
567
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
568
|
+
message: string;
|
|
569
|
+
};
|
|
570
|
+
requestId: string;
|
|
571
|
+
};
|
|
572
|
+
outputFormat: "json";
|
|
573
|
+
status: 502;
|
|
574
|
+
input: {
|
|
575
|
+
param: {
|
|
576
|
+
orgId: string;
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
} | {
|
|
580
|
+
output: {
|
|
581
|
+
error: {
|
|
582
|
+
code: "not_found";
|
|
583
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
584
|
+
message: string;
|
|
585
|
+
};
|
|
586
|
+
requestId: string;
|
|
587
|
+
};
|
|
588
|
+
outputFormat: "json";
|
|
589
|
+
status: 404;
|
|
590
|
+
input: {
|
|
591
|
+
param: {
|
|
592
|
+
orgId: string;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
} | {
|
|
596
|
+
output: {
|
|
597
|
+
data: {
|
|
598
|
+
billingActive?: boolean | undefined;
|
|
599
|
+
environment: "production" | "sandbox";
|
|
600
|
+
id: string;
|
|
601
|
+
name?: string | undefined;
|
|
602
|
+
orgId: string;
|
|
603
|
+
projectId?: string | undefined;
|
|
604
|
+
rateLimits?: {
|
|
605
|
+
[x: string]: {
|
|
606
|
+
perMinute: number;
|
|
607
|
+
};
|
|
608
|
+
} | undefined;
|
|
609
|
+
scopes: readonly string[];
|
|
610
|
+
createdAt: string;
|
|
611
|
+
createdBy?: string | undefined;
|
|
612
|
+
expiresAt?: string | undefined;
|
|
613
|
+
tokenLast4: string;
|
|
614
|
+
}[];
|
|
615
|
+
};
|
|
616
|
+
outputFormat: "json";
|
|
617
|
+
status: 200;
|
|
618
|
+
input: {
|
|
619
|
+
param: {
|
|
620
|
+
orgId: string;
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
} & {
|
|
626
|
+
"/:orgId/usage": {
|
|
627
|
+
$get: {
|
|
628
|
+
output: {
|
|
629
|
+
error: {
|
|
630
|
+
code: "upstream_error";
|
|
631
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
632
|
+
message: string;
|
|
633
|
+
};
|
|
634
|
+
requestId: string;
|
|
635
|
+
};
|
|
636
|
+
outputFormat: "json";
|
|
637
|
+
status: 502;
|
|
638
|
+
input: {
|
|
639
|
+
param: {
|
|
640
|
+
orgId: string;
|
|
641
|
+
};
|
|
642
|
+
} & {
|
|
643
|
+
query?: {
|
|
644
|
+
period?: string | string[];
|
|
645
|
+
} | undefined;
|
|
646
|
+
};
|
|
647
|
+
} | {
|
|
648
|
+
output: {
|
|
649
|
+
error: {
|
|
650
|
+
code: "not_found";
|
|
651
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
652
|
+
message: string;
|
|
653
|
+
};
|
|
654
|
+
requestId: string;
|
|
655
|
+
};
|
|
656
|
+
outputFormat: "json";
|
|
657
|
+
status: 404;
|
|
658
|
+
input: {
|
|
659
|
+
param: {
|
|
660
|
+
orgId: string;
|
|
661
|
+
};
|
|
662
|
+
} & {
|
|
663
|
+
query?: {
|
|
664
|
+
period?: string | string[];
|
|
665
|
+
} | undefined;
|
|
666
|
+
};
|
|
667
|
+
} | {
|
|
668
|
+
output: {
|
|
669
|
+
byError: {
|
|
670
|
+
code: string;
|
|
671
|
+
requests: number;
|
|
672
|
+
}[];
|
|
673
|
+
byRoute: {
|
|
674
|
+
errors: number;
|
|
675
|
+
requests: number;
|
|
676
|
+
averageDurationMs: number;
|
|
677
|
+
route: string;
|
|
678
|
+
}[];
|
|
679
|
+
byStatus: {
|
|
680
|
+
requests: number;
|
|
681
|
+
status: number;
|
|
682
|
+
}[];
|
|
683
|
+
from: string;
|
|
684
|
+
period: "24h" | "30d" | "7d";
|
|
685
|
+
to: string;
|
|
686
|
+
totals: {
|
|
687
|
+
errors: number;
|
|
688
|
+
requests: number;
|
|
689
|
+
averageDurationMs: number;
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
outputFormat: "json";
|
|
693
|
+
status: 200;
|
|
694
|
+
input: {
|
|
695
|
+
param: {
|
|
696
|
+
orgId: string;
|
|
697
|
+
};
|
|
698
|
+
} & {
|
|
699
|
+
query?: {
|
|
700
|
+
period?: string | string[];
|
|
701
|
+
} | undefined;
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
} & {
|
|
706
|
+
"/:orgId/sponsorship": {
|
|
707
|
+
$get: {
|
|
708
|
+
output: {
|
|
709
|
+
error: {
|
|
710
|
+
code: "upstream_error";
|
|
711
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
712
|
+
message: string;
|
|
713
|
+
};
|
|
714
|
+
requestId: string;
|
|
715
|
+
};
|
|
716
|
+
outputFormat: "json";
|
|
717
|
+
status: 502;
|
|
718
|
+
input: {
|
|
719
|
+
param: {
|
|
720
|
+
orgId: string;
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
} | {
|
|
724
|
+
output: {
|
|
725
|
+
error: {
|
|
726
|
+
code: "not_found";
|
|
727
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
728
|
+
message: string;
|
|
729
|
+
};
|
|
730
|
+
requestId: string;
|
|
731
|
+
};
|
|
732
|
+
outputFormat: "json";
|
|
733
|
+
status: 404;
|
|
734
|
+
input: {
|
|
735
|
+
param: {
|
|
736
|
+
orgId: string;
|
|
737
|
+
};
|
|
738
|
+
};
|
|
739
|
+
} | {
|
|
740
|
+
output: {
|
|
741
|
+
production: {
|
|
742
|
+
committedSpend: string;
|
|
743
|
+
currency: "usd";
|
|
744
|
+
from: string;
|
|
745
|
+
period: "month";
|
|
746
|
+
};
|
|
747
|
+
sandbox: {
|
|
748
|
+
committedSpend: string;
|
|
749
|
+
currency: "usd";
|
|
750
|
+
from: string;
|
|
751
|
+
period: "month";
|
|
752
|
+
};
|
|
753
|
+
to: string;
|
|
754
|
+
};
|
|
755
|
+
outputFormat: "json";
|
|
756
|
+
status: 200;
|
|
757
|
+
input: {
|
|
758
|
+
param: {
|
|
759
|
+
orgId: string;
|
|
760
|
+
};
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
} & {
|
|
765
|
+
"/:orgId/webhooks": {
|
|
766
|
+
$get: {
|
|
767
|
+
output: {
|
|
768
|
+
error: {
|
|
769
|
+
code: "upstream_error";
|
|
770
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
771
|
+
message: string;
|
|
772
|
+
};
|
|
773
|
+
requestId: string;
|
|
774
|
+
};
|
|
775
|
+
outputFormat: "json";
|
|
776
|
+
status: 502;
|
|
777
|
+
input: {
|
|
778
|
+
param: {
|
|
779
|
+
orgId: string;
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
} | {
|
|
783
|
+
output: {
|
|
784
|
+
error: {
|
|
785
|
+
code: "not_found";
|
|
786
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
787
|
+
message: string;
|
|
788
|
+
};
|
|
789
|
+
requestId: string;
|
|
790
|
+
};
|
|
791
|
+
outputFormat: "json";
|
|
792
|
+
status: 404;
|
|
793
|
+
input: {
|
|
794
|
+
param: {
|
|
795
|
+
orgId: string;
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
} | {
|
|
799
|
+
output: {
|
|
800
|
+
failureCount: number;
|
|
801
|
+
failures: {
|
|
802
|
+
attempt: number;
|
|
803
|
+
createdAt: string;
|
|
804
|
+
error: string | null;
|
|
805
|
+
id: string;
|
|
806
|
+
responseStatus: number | null;
|
|
807
|
+
subscriptionId: string;
|
|
808
|
+
}[];
|
|
809
|
+
failuresTruncated: boolean;
|
|
810
|
+
from: string;
|
|
811
|
+
subscriptions: {
|
|
812
|
+
chainId: number;
|
|
813
|
+
createdAt: string;
|
|
814
|
+
destination: string;
|
|
815
|
+
eventType: string;
|
|
816
|
+
failureCount: number;
|
|
817
|
+
id: string;
|
|
818
|
+
lastDeliveryAt: string | null;
|
|
819
|
+
status: "active" | "disabled" | "paused";
|
|
820
|
+
}[];
|
|
821
|
+
to: string;
|
|
822
|
+
};
|
|
823
|
+
outputFormat: "json";
|
|
824
|
+
status: 200;
|
|
825
|
+
input: {
|
|
826
|
+
param: {
|
|
827
|
+
orgId: string;
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
}, "/", "/:orgId/webhooks">;
|
|
833
|
+
//# sourceMappingURL=organizations.d.ts.map
|