tapimo 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +4854 -4829
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +20 -2
- package/dist/App.js.map +1 -1
- package/dist/Assets.js +3 -3
- package/dist/Assets.js.map +1 -1
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +1 -2
- package/dist/Scope.js.map +1 -1
- package/dist/Webhooks.d.ts +1 -1
- package/dist/Webhooks.d.ts.map +1 -1
- package/dist/Webhooks.js +5 -10
- package/dist/Webhooks.js.map +1 -1
- package/dist/admin/App.d.ts +6 -34
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +3 -3
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +4 -1
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/scopes.d.ts +6 -34
- package/dist/admin/apps/scopes.d.ts.map +1 -1
- package/dist/admin/apps/scopes.js +2 -2
- package/dist/admin/apps/scopes.js.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +2 -2
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.js +33 -33
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/apps/data/App.d.ts +1398 -1405
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +25 -38
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/FundingQuoteProviders.d.ts +108 -3
- package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
- package/dist/apps/data/FundingQuoteProviders.js +409 -2
- package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +245 -245
- package/dist/apps/data/routes/blocks.d.ts +123 -123
- package/dist/apps/data/routes/funding.d.ts +236 -146
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +23 -12
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/indexer.d.ts.map +1 -1
- package/dist/apps/data/routes/indexer.js +9 -2
- package/dist/apps/data/routes/indexer.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts +31 -31
- package/dist/apps/data/routes/tokenlist.d.ts +36 -36
- package/dist/apps/data/routes/transactions.d.ts +281 -281
- package/dist/apps/data/routes/transfers.d.ts +66 -73
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +21 -27
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
- package/dist/apps/data/routes/webhooks.d.ts +35 -35
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +176 -42
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/management/App.d.ts +520 -504
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/Billing.d.ts.map +1 -1
- package/dist/apps/management/Billing.js +5 -4
- package/dist/apps/management/Billing.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +120 -120
- package/dist/apps/management/routes/billing.d.ts +211 -211
- package/dist/apps/management/routes/billing.d.ts.map +1 -1
- package/dist/apps/management/routes/billing.js +1 -1
- package/dist/apps/management/routes/billing.js.map +1 -1
- package/dist/apps/management/routes/invitations.d.ts +72 -72
- package/dist/apps/management/routes/invite-links.d.ts +159 -159
- package/dist/apps/management/routes/me.d.ts +17 -17
- package/dist/apps/management/routes/members.d.ts +80 -80
- package/dist/apps/management/routes/orgs.d.ts +59 -43
- package/dist/apps/management/routes/orgs.d.ts.map +1 -1
- package/dist/apps/management/routes/orgs.js +18 -1
- package/dist/apps/management/routes/orgs.js.map +1 -1
- package/dist/apps/management/routes/projects.d.ts +109 -109
- package/dist/apps/management/routes/scopes.d.ts +11 -11
- package/dist/apps/management/routes/usage.d.ts +79 -79
- package/dist/apps/mcp.js +2 -2
- package/dist/apps/mcp.js.map +1 -1
- package/dist/apps/relay/App.d.ts +2 -2
- package/dist/apps/relay/App.js +2 -2
- package/dist/apps/relay/Sponsorships.d.ts +3 -0
- package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
- package/dist/apps/relay/Sponsorships.js +15 -1
- package/dist/apps/relay/Sponsorships.js.map +1 -1
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +4 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.js +1 -1
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/organizations.d.ts +6 -0
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +26 -0
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/db/tables/requestUsage.d.ts +2 -11
- package/dist/db/tables/requestUsage.d.ts.map +1 -1
- package/dist/db/tables/requestUsage.js +1 -20
- package/dist/db/tables/requestUsage.js.map +1 -1
- package/dist/db/tables/sponsoredTransactions.d.ts +2 -1
- package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
- package/dist/db/tables/sponsoredTransactions.js +52 -10
- package/dist/db/tables/sponsoredTransactions.js.map +1 -1
- package/dist/internal/Auth.d.ts +4 -0
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +15 -8
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/Cache.d.ts.map +1 -1
- package/dist/internal/Cache.js +9 -1
- package/dist/internal/Cache.js.map +1 -1
- package/dist/internal/EdgeCache.d.ts.map +1 -1
- package/dist/internal/EdgeCache.js +12 -3
- package/dist/internal/EdgeCache.js.map +1 -1
- package/dist/internal/FundingQuotes.d.ts +176 -56
- package/dist/internal/FundingQuotes.d.ts.map +1 -1
- package/dist/internal/FundingQuotes.js +100 -5
- package/dist/internal/FundingQuotes.js.map +1 -1
- package/dist/internal/Log.d.ts +18 -12
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +2 -0
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/RateLimit.d.ts +2 -0
- package/dist/internal/RateLimit.d.ts.map +1 -1
- package/dist/internal/RateLimit.js +4 -4
- package/dist/internal/RateLimit.js.map +1 -1
- package/dist/internal/Tidx.d.ts +9 -3
- package/dist/internal/Tidx.d.ts.map +1 -1
- package/dist/internal/Tidx.js +13 -7
- package/dist/internal/Tidx.js.map +1 -1
- package/dist/internal/Viem.d.ts +14 -1
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Viem.js +19 -1
- package/dist/internal/Viem.js.map +1 -1
- package/package.json +7 -2
- package/src/ApiKeys.test.ts +2 -0
- package/src/App.test.ts +15 -4
- package/src/App.ts +31 -5
- package/src/Assets.ts +3 -3
- package/src/Client.test-d.ts +30 -3
- package/src/Scope.ts +4 -2
- package/src/Webhooks.ts +5 -10
- package/src/admin/apps/api-keys.test.ts +27 -0
- package/src/admin/apps/api-keys.ts +8 -1
- package/src/admin/apps/scopes.test.ts +7 -2
- package/src/admin/apps/scopes.ts +2 -2
- package/src/admin/ui/src/components/Dialog.tsx +8 -2
- package/src/admin/ui/src/lib/scopes.test.ts +19 -0
- package/src/admin/ui/src/lib/scopes.ts +12 -0
- package/src/admin/ui/src/routes/api-keys.tsx +128 -27
- package/src/admin/ui.generated.ts +33 -33
- package/src/apps/composition.test.ts +77 -0
- package/src/apps/data/App.ts +25 -45
- package/src/apps/data/FundingQuoteProviders.test.ts +615 -5
- package/src/apps/data/FundingQuoteProviders.ts +570 -4
- package/src/apps/data/routes/funding.test.ts +181 -7
- package/src/apps/data/routes/funding.ts +27 -12
- package/src/apps/data/routes/indexer.test.ts +82 -20
- package/src/apps/data/routes/indexer.ts +8 -2
- package/src/apps/data/routes/tokens.test.ts +54 -0
- package/src/apps/data/routes/transfers.test.ts +73 -1
- package/src/apps/data/routes/transfers.ts +24 -30
- package/src/apps/data/routes/webhooks.test.ts +203 -0
- package/src/apps/data/routes/webhooks.ts +191 -54
- package/src/apps/management/Billing.test.ts +52 -3
- package/src/apps/management/Billing.ts +5 -4
- package/src/apps/management/routes/billing.ts +6 -1
- package/src/apps/management/routes/orgs.ts +19 -1
- package/src/apps/mcp.test.ts +18 -0
- package/src/apps/mcp.ts +2 -2
- package/src/apps/relay/App.test.ts +6 -5
- package/src/apps/relay/App.ts +2 -2
- package/src/apps/relay/Sponsorships.test.ts +2 -2
- package/src/apps/relay/Sponsorships.ts +24 -1
- package/src/db/Db.test.ts +5 -5
- package/src/db/Db.ts +4 -0
- package/src/db/Schema.ts +1 -1
- package/src/db/tables/billingSettings.test.ts +2 -2
- package/src/db/tables/organizations.test.ts +32 -2
- package/src/db/tables/organizations.ts +28 -0
- package/src/db/tables/requestUsage.ts +3 -23
- package/src/db/tables/sponsoredTransactions.test.ts +60 -2
- package/src/db/tables/sponsoredTransactions.ts +67 -21
- package/src/db/tables/stripeCustomers.test.ts +2 -2
- package/src/internal/Auth.test.ts +63 -10
- package/src/internal/Auth.ts +21 -9
- package/src/internal/Cache.test.ts +19 -0
- package/src/internal/Cache.ts +13 -1
- package/src/internal/EdgeCache.test.ts +40 -0
- package/src/internal/EdgeCache.ts +11 -3
- package/src/internal/FundingQuotes.test.ts +130 -3
- package/src/internal/FundingQuotes.ts +113 -6
- package/src/internal/Log.ts +21 -14
- package/src/internal/RateLimit.test.ts +12 -0
- package/src/internal/RateLimit.ts +4 -4
- package/src/internal/Tidx.test.ts +48 -0
- package/src/internal/Tidx.ts +21 -7
- package/src/internal/Viem.test.ts +46 -0
- package/src/internal/Viem.ts +34 -1
|
@@ -129,36 +129,6 @@ export declare namespace schema {
|
|
|
129
129
|
export declare function billing(): import("hono/hono-base").HonoBase<Environment, {
|
|
130
130
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
|
|
131
131
|
$get: {
|
|
132
|
-
output: {
|
|
133
|
-
spend?: {
|
|
134
|
-
amount: string;
|
|
135
|
-
currency: "usd";
|
|
136
|
-
period: "month";
|
|
137
|
-
} | undefined;
|
|
138
|
-
spendLimit?: {
|
|
139
|
-
amount: string;
|
|
140
|
-
currency: "usd";
|
|
141
|
-
period: "month";
|
|
142
|
-
} | undefined;
|
|
143
|
-
status: "active" | "canceled" | "none" | "past_due";
|
|
144
|
-
txFeeLimit?: {
|
|
145
|
-
amount: string;
|
|
146
|
-
currency: "usd";
|
|
147
|
-
} | undefined;
|
|
148
|
-
updatedAt?: string | undefined;
|
|
149
|
-
};
|
|
150
|
-
outputFormat: "json";
|
|
151
|
-
status: 200;
|
|
152
|
-
input: {
|
|
153
|
-
param: {
|
|
154
|
-
orgId: string;
|
|
155
|
-
};
|
|
156
|
-
} & {
|
|
157
|
-
query?: {
|
|
158
|
-
environment?: string | string[];
|
|
159
|
-
} | undefined;
|
|
160
|
-
};
|
|
161
|
-
} | {
|
|
162
132
|
output: {
|
|
163
133
|
error: {
|
|
164
134
|
code: "api_key_malformed";
|
|
@@ -181,14 +151,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
181
151
|
} | {
|
|
182
152
|
output: {
|
|
183
153
|
error: {
|
|
184
|
-
code: "
|
|
154
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
185
155
|
details?: readonly Response.error.Detail[] | undefined;
|
|
186
156
|
message: string;
|
|
187
157
|
};
|
|
188
158
|
requestId: string;
|
|
189
159
|
};
|
|
190
160
|
outputFormat: "json";
|
|
191
|
-
status:
|
|
161
|
+
status: 401;
|
|
192
162
|
input: {
|
|
193
163
|
param: {
|
|
194
164
|
orgId: string;
|
|
@@ -201,14 +171,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
201
171
|
} | {
|
|
202
172
|
output: {
|
|
203
173
|
error: {
|
|
204
|
-
code: "
|
|
174
|
+
code: "api_key_forbidden";
|
|
205
175
|
details?: readonly Response.error.Detail[] | undefined;
|
|
206
176
|
message: string;
|
|
207
177
|
};
|
|
208
178
|
requestId: string;
|
|
209
179
|
};
|
|
210
180
|
outputFormat: "json";
|
|
211
|
-
status:
|
|
181
|
+
status: 403;
|
|
212
182
|
input: {
|
|
213
183
|
param: {
|
|
214
184
|
orgId: string;
|
|
@@ -221,14 +191,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
221
191
|
} | {
|
|
222
192
|
output: {
|
|
223
193
|
error: {
|
|
224
|
-
code: "
|
|
194
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
225
195
|
details?: readonly Response.error.Detail[] | undefined;
|
|
226
196
|
message: string;
|
|
227
197
|
};
|
|
228
198
|
requestId: string;
|
|
229
199
|
};
|
|
230
200
|
outputFormat: "json";
|
|
231
|
-
status:
|
|
201
|
+
status: 429;
|
|
232
202
|
input: {
|
|
233
203
|
param: {
|
|
234
204
|
orgId: string;
|
|
@@ -241,14 +211,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
241
211
|
} | {
|
|
242
212
|
output: {
|
|
243
213
|
error: {
|
|
244
|
-
code: "
|
|
214
|
+
code: "query_invalid";
|
|
245
215
|
details?: readonly Response.error.Detail[] | undefined;
|
|
246
216
|
message: string;
|
|
247
217
|
};
|
|
248
218
|
requestId: string;
|
|
249
219
|
};
|
|
250
220
|
outputFormat: "json";
|
|
251
|
-
status:
|
|
221
|
+
status: 400;
|
|
252
222
|
input: {
|
|
253
223
|
param: {
|
|
254
224
|
orgId: string;
|
|
@@ -261,14 +231,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
261
231
|
} | {
|
|
262
232
|
output: {
|
|
263
233
|
error: {
|
|
264
|
-
code: "
|
|
234
|
+
code: "upstream_error";
|
|
265
235
|
details?: readonly Response.error.Detail[] | undefined;
|
|
266
236
|
message: string;
|
|
267
237
|
};
|
|
268
238
|
requestId: string;
|
|
269
239
|
};
|
|
270
240
|
outputFormat: "json";
|
|
271
|
-
status:
|
|
241
|
+
status: 502;
|
|
272
242
|
input: {
|
|
273
243
|
param: {
|
|
274
244
|
orgId: string;
|
|
@@ -281,14 +251,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
281
251
|
} | {
|
|
282
252
|
output: {
|
|
283
253
|
error: {
|
|
284
|
-
code: "
|
|
254
|
+
code: "param_invalid";
|
|
285
255
|
details?: readonly Response.error.Detail[] | undefined;
|
|
286
256
|
message: string;
|
|
287
257
|
};
|
|
288
258
|
requestId: string;
|
|
289
259
|
};
|
|
290
260
|
outputFormat: "json";
|
|
291
|
-
status:
|
|
261
|
+
status: 400;
|
|
292
262
|
input: {
|
|
293
263
|
param: {
|
|
294
264
|
orgId: string;
|
|
@@ -301,14 +271,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
301
271
|
} | {
|
|
302
272
|
output: {
|
|
303
273
|
error: {
|
|
304
|
-
code: "
|
|
274
|
+
code: "organization_not_found";
|
|
305
275
|
details?: readonly Response.error.Detail[] | undefined;
|
|
306
276
|
message: string;
|
|
307
277
|
};
|
|
308
278
|
requestId: string;
|
|
309
279
|
};
|
|
310
280
|
outputFormat: "json";
|
|
311
|
-
status:
|
|
281
|
+
status: 404;
|
|
312
282
|
input: {
|
|
313
283
|
param: {
|
|
314
284
|
orgId: string;
|
|
@@ -321,14 +291,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
321
291
|
} | {
|
|
322
292
|
output: {
|
|
323
293
|
error: {
|
|
324
|
-
code: "
|
|
294
|
+
code: "billing_unconfigured";
|
|
325
295
|
details?: readonly Response.error.Detail[] | undefined;
|
|
326
296
|
message: string;
|
|
327
297
|
};
|
|
328
298
|
requestId: string;
|
|
329
299
|
};
|
|
330
300
|
outputFormat: "json";
|
|
331
|
-
status:
|
|
301
|
+
status: 501;
|
|
332
302
|
input: {
|
|
333
303
|
param: {
|
|
334
304
|
orgId: string;
|
|
@@ -338,11 +308,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
338
308
|
environment?: string | string[];
|
|
339
309
|
} | undefined;
|
|
340
310
|
};
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
} & {
|
|
344
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
|
|
345
|
-
$patch: {
|
|
311
|
+
} | {
|
|
346
312
|
output: {
|
|
347
313
|
spend?: {
|
|
348
314
|
amount: string;
|
|
@@ -363,6 +329,30 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
363
329
|
};
|
|
364
330
|
outputFormat: "json";
|
|
365
331
|
status: 200;
|
|
332
|
+
input: {
|
|
333
|
+
param: {
|
|
334
|
+
orgId: string;
|
|
335
|
+
};
|
|
336
|
+
} & {
|
|
337
|
+
query?: {
|
|
338
|
+
environment?: string | string[];
|
|
339
|
+
} | undefined;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
} & {
|
|
344
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
|
|
345
|
+
$patch: {
|
|
346
|
+
output: {
|
|
347
|
+
error: {
|
|
348
|
+
code: "api_key_malformed";
|
|
349
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
350
|
+
message: string;
|
|
351
|
+
};
|
|
352
|
+
requestId: string;
|
|
353
|
+
};
|
|
354
|
+
outputFormat: "json";
|
|
355
|
+
status: 400;
|
|
366
356
|
input: {
|
|
367
357
|
param: {
|
|
368
358
|
orgId: string;
|
|
@@ -387,14 +377,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
387
377
|
} | {
|
|
388
378
|
output: {
|
|
389
379
|
error: {
|
|
390
|
-
code: "
|
|
380
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
391
381
|
details?: readonly Response.error.Detail[] | undefined;
|
|
392
382
|
message: string;
|
|
393
383
|
};
|
|
394
384
|
requestId: string;
|
|
395
385
|
};
|
|
396
386
|
outputFormat: "json";
|
|
397
|
-
status:
|
|
387
|
+
status: 401;
|
|
398
388
|
input: {
|
|
399
389
|
param: {
|
|
400
390
|
orgId: string;
|
|
@@ -419,14 +409,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
419
409
|
} | {
|
|
420
410
|
output: {
|
|
421
411
|
error: {
|
|
422
|
-
code: "
|
|
412
|
+
code: "api_key_forbidden";
|
|
423
413
|
details?: readonly Response.error.Detail[] | undefined;
|
|
424
414
|
message: string;
|
|
425
415
|
};
|
|
426
416
|
requestId: string;
|
|
427
417
|
};
|
|
428
418
|
outputFormat: "json";
|
|
429
|
-
status:
|
|
419
|
+
status: 403;
|
|
430
420
|
input: {
|
|
431
421
|
param: {
|
|
432
422
|
orgId: string;
|
|
@@ -451,14 +441,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
451
441
|
} | {
|
|
452
442
|
output: {
|
|
453
443
|
error: {
|
|
454
|
-
code: "
|
|
444
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
455
445
|
details?: readonly Response.error.Detail[] | undefined;
|
|
456
446
|
message: string;
|
|
457
447
|
};
|
|
458
448
|
requestId: string;
|
|
459
449
|
};
|
|
460
450
|
outputFormat: "json";
|
|
461
|
-
status:
|
|
451
|
+
status: 429;
|
|
462
452
|
input: {
|
|
463
453
|
param: {
|
|
464
454
|
orgId: string;
|
|
@@ -483,7 +473,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
483
473
|
} | {
|
|
484
474
|
output: {
|
|
485
475
|
error: {
|
|
486
|
-
code: "
|
|
476
|
+
code: "query_invalid";
|
|
487
477
|
details?: readonly Response.error.Detail[] | undefined;
|
|
488
478
|
message: string;
|
|
489
479
|
};
|
|
@@ -515,14 +505,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
515
505
|
} | {
|
|
516
506
|
output: {
|
|
517
507
|
error: {
|
|
518
|
-
code: "
|
|
508
|
+
code: "upstream_error";
|
|
519
509
|
details?: readonly Response.error.Detail[] | undefined;
|
|
520
510
|
message: string;
|
|
521
511
|
};
|
|
522
512
|
requestId: string;
|
|
523
513
|
};
|
|
524
514
|
outputFormat: "json";
|
|
525
|
-
status:
|
|
515
|
+
status: 502;
|
|
526
516
|
input: {
|
|
527
517
|
param: {
|
|
528
518
|
orgId: string;
|
|
@@ -547,14 +537,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
547
537
|
} | {
|
|
548
538
|
output: {
|
|
549
539
|
error: {
|
|
550
|
-
code: "
|
|
540
|
+
code: "body_invalid";
|
|
551
541
|
details?: readonly Response.error.Detail[] | undefined;
|
|
552
542
|
message: string;
|
|
553
543
|
};
|
|
554
544
|
requestId: string;
|
|
555
545
|
};
|
|
556
546
|
outputFormat: "json";
|
|
557
|
-
status:
|
|
547
|
+
status: 400;
|
|
558
548
|
input: {
|
|
559
549
|
param: {
|
|
560
550
|
orgId: string;
|
|
@@ -579,14 +569,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
579
569
|
} | {
|
|
580
570
|
output: {
|
|
581
571
|
error: {
|
|
582
|
-
code: "
|
|
572
|
+
code: "param_invalid";
|
|
583
573
|
details?: readonly Response.error.Detail[] | undefined;
|
|
584
574
|
message: string;
|
|
585
575
|
};
|
|
586
576
|
requestId: string;
|
|
587
577
|
};
|
|
588
578
|
outputFormat: "json";
|
|
589
|
-
status:
|
|
579
|
+
status: 400;
|
|
590
580
|
input: {
|
|
591
581
|
param: {
|
|
592
582
|
orgId: string;
|
|
@@ -611,14 +601,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
611
601
|
} | {
|
|
612
602
|
output: {
|
|
613
603
|
error: {
|
|
614
|
-
code: "
|
|
604
|
+
code: "organization_not_found";
|
|
615
605
|
details?: readonly Response.error.Detail[] | undefined;
|
|
616
606
|
message: string;
|
|
617
607
|
};
|
|
618
608
|
requestId: string;
|
|
619
609
|
};
|
|
620
610
|
outputFormat: "json";
|
|
621
|
-
status:
|
|
611
|
+
status: 404;
|
|
622
612
|
input: {
|
|
623
613
|
param: {
|
|
624
614
|
orgId: string;
|
|
@@ -674,15 +664,25 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
674
664
|
};
|
|
675
665
|
} | {
|
|
676
666
|
output: {
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
};
|
|
682
|
-
|
|
667
|
+
spend?: {
|
|
668
|
+
amount: string;
|
|
669
|
+
currency: "usd";
|
|
670
|
+
period: "month";
|
|
671
|
+
} | undefined;
|
|
672
|
+
spendLimit?: {
|
|
673
|
+
amount: string;
|
|
674
|
+
currency: "usd";
|
|
675
|
+
period: "month";
|
|
676
|
+
} | undefined;
|
|
677
|
+
status: "active" | "canceled" | "none" | "past_due";
|
|
678
|
+
txFeeLimit?: {
|
|
679
|
+
amount: string;
|
|
680
|
+
currency: "usd";
|
|
681
|
+
} | undefined;
|
|
682
|
+
updatedAt?: string | undefined;
|
|
683
683
|
};
|
|
684
684
|
outputFormat: "json";
|
|
685
|
-
status:
|
|
685
|
+
status: 200;
|
|
686
686
|
input: {
|
|
687
687
|
param: {
|
|
688
688
|
orgId: string;
|
|
@@ -710,10 +710,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
710
710
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/checkout": {
|
|
711
711
|
$post: {
|
|
712
712
|
output: {
|
|
713
|
-
|
|
713
|
+
error: {
|
|
714
|
+
code: "api_key_malformed";
|
|
715
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
716
|
+
message: string;
|
|
717
|
+
};
|
|
718
|
+
requestId: string;
|
|
714
719
|
};
|
|
715
720
|
outputFormat: "json";
|
|
716
|
-
status:
|
|
721
|
+
status: 400;
|
|
717
722
|
input: {
|
|
718
723
|
param: {
|
|
719
724
|
orgId: string;
|
|
@@ -726,14 +731,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
726
731
|
} | {
|
|
727
732
|
output: {
|
|
728
733
|
error: {
|
|
729
|
-
code: "
|
|
734
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
730
735
|
details?: readonly Response.error.Detail[] | undefined;
|
|
731
736
|
message: string;
|
|
732
737
|
};
|
|
733
738
|
requestId: string;
|
|
734
739
|
};
|
|
735
740
|
outputFormat: "json";
|
|
736
|
-
status:
|
|
741
|
+
status: 401;
|
|
737
742
|
input: {
|
|
738
743
|
param: {
|
|
739
744
|
orgId: string;
|
|
@@ -746,14 +751,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
746
751
|
} | {
|
|
747
752
|
output: {
|
|
748
753
|
error: {
|
|
749
|
-
code: "
|
|
754
|
+
code: "api_key_forbidden";
|
|
750
755
|
details?: readonly Response.error.Detail[] | undefined;
|
|
751
756
|
message: string;
|
|
752
757
|
};
|
|
753
758
|
requestId: string;
|
|
754
759
|
};
|
|
755
760
|
outputFormat: "json";
|
|
756
|
-
status:
|
|
761
|
+
status: 403;
|
|
757
762
|
input: {
|
|
758
763
|
param: {
|
|
759
764
|
orgId: string;
|
|
@@ -766,14 +771,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
766
771
|
} | {
|
|
767
772
|
output: {
|
|
768
773
|
error: {
|
|
769
|
-
code: "
|
|
774
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
770
775
|
details?: readonly Response.error.Detail[] | undefined;
|
|
771
776
|
message: string;
|
|
772
777
|
};
|
|
773
778
|
requestId: string;
|
|
774
779
|
};
|
|
775
780
|
outputFormat: "json";
|
|
776
|
-
status:
|
|
781
|
+
status: 429;
|
|
777
782
|
input: {
|
|
778
783
|
param: {
|
|
779
784
|
orgId: string;
|
|
@@ -786,14 +791,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
786
791
|
} | {
|
|
787
792
|
output: {
|
|
788
793
|
error: {
|
|
789
|
-
code: "
|
|
794
|
+
code: "query_invalid";
|
|
790
795
|
details?: readonly Response.error.Detail[] | undefined;
|
|
791
796
|
message: string;
|
|
792
797
|
};
|
|
793
798
|
requestId: string;
|
|
794
799
|
};
|
|
795
800
|
outputFormat: "json";
|
|
796
|
-
status:
|
|
801
|
+
status: 400;
|
|
797
802
|
input: {
|
|
798
803
|
param: {
|
|
799
804
|
orgId: string;
|
|
@@ -806,14 +811,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
806
811
|
} | {
|
|
807
812
|
output: {
|
|
808
813
|
error: {
|
|
809
|
-
code: "
|
|
814
|
+
code: "upstream_error";
|
|
810
815
|
details?: readonly Response.error.Detail[] | undefined;
|
|
811
816
|
message: string;
|
|
812
817
|
};
|
|
813
818
|
requestId: string;
|
|
814
819
|
};
|
|
815
820
|
outputFormat: "json";
|
|
816
|
-
status:
|
|
821
|
+
status: 502;
|
|
817
822
|
input: {
|
|
818
823
|
param: {
|
|
819
824
|
orgId: string;
|
|
@@ -826,14 +831,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
826
831
|
} | {
|
|
827
832
|
output: {
|
|
828
833
|
error: {
|
|
829
|
-
code: "
|
|
834
|
+
code: "param_invalid";
|
|
830
835
|
details?: readonly Response.error.Detail[] | undefined;
|
|
831
836
|
message: string;
|
|
832
837
|
};
|
|
833
838
|
requestId: string;
|
|
834
839
|
};
|
|
835
840
|
outputFormat: "json";
|
|
836
|
-
status:
|
|
841
|
+
status: 400;
|
|
837
842
|
input: {
|
|
838
843
|
param: {
|
|
839
844
|
orgId: string;
|
|
@@ -846,14 +851,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
846
851
|
} | {
|
|
847
852
|
output: {
|
|
848
853
|
error: {
|
|
849
|
-
code: "
|
|
854
|
+
code: "organization_not_found";
|
|
850
855
|
details?: readonly Response.error.Detail[] | undefined;
|
|
851
856
|
message: string;
|
|
852
857
|
};
|
|
853
858
|
requestId: string;
|
|
854
859
|
};
|
|
855
860
|
outputFormat: "json";
|
|
856
|
-
status:
|
|
861
|
+
status: 404;
|
|
857
862
|
input: {
|
|
858
863
|
param: {
|
|
859
864
|
orgId: string;
|
|
@@ -885,15 +890,10 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
885
890
|
};
|
|
886
891
|
} | {
|
|
887
892
|
output: {
|
|
888
|
-
|
|
889
|
-
code: "upstream_error";
|
|
890
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
891
|
-
message: string;
|
|
892
|
-
};
|
|
893
|
-
requestId: string;
|
|
893
|
+
url: string;
|
|
894
894
|
};
|
|
895
895
|
outputFormat: "json";
|
|
896
|
-
status:
|
|
896
|
+
status: 200;
|
|
897
897
|
input: {
|
|
898
898
|
param: {
|
|
899
899
|
orgId: string;
|
|
@@ -909,10 +909,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
909
909
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/manage": {
|
|
910
910
|
$post: {
|
|
911
911
|
output: {
|
|
912
|
-
|
|
912
|
+
error: {
|
|
913
|
+
code: "api_key_malformed";
|
|
914
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
915
|
+
message: string;
|
|
916
|
+
};
|
|
917
|
+
requestId: string;
|
|
913
918
|
};
|
|
914
919
|
outputFormat: "json";
|
|
915
|
-
status:
|
|
920
|
+
status: 400;
|
|
916
921
|
input: {
|
|
917
922
|
param: {
|
|
918
923
|
orgId: string;
|
|
@@ -925,14 +930,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
925
930
|
} | {
|
|
926
931
|
output: {
|
|
927
932
|
error: {
|
|
928
|
-
code: "
|
|
933
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
929
934
|
details?: readonly Response.error.Detail[] | undefined;
|
|
930
935
|
message: string;
|
|
931
936
|
};
|
|
932
937
|
requestId: string;
|
|
933
938
|
};
|
|
934
939
|
outputFormat: "json";
|
|
935
|
-
status:
|
|
940
|
+
status: 401;
|
|
936
941
|
input: {
|
|
937
942
|
param: {
|
|
938
943
|
orgId: string;
|
|
@@ -945,14 +950,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
945
950
|
} | {
|
|
946
951
|
output: {
|
|
947
952
|
error: {
|
|
948
|
-
code: "
|
|
953
|
+
code: "api_key_forbidden";
|
|
949
954
|
details?: readonly Response.error.Detail[] | undefined;
|
|
950
955
|
message: string;
|
|
951
956
|
};
|
|
952
957
|
requestId: string;
|
|
953
958
|
};
|
|
954
959
|
outputFormat: "json";
|
|
955
|
-
status:
|
|
960
|
+
status: 403;
|
|
956
961
|
input: {
|
|
957
962
|
param: {
|
|
958
963
|
orgId: string;
|
|
@@ -965,14 +970,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
965
970
|
} | {
|
|
966
971
|
output: {
|
|
967
972
|
error: {
|
|
968
|
-
code: "
|
|
973
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
969
974
|
details?: readonly Response.error.Detail[] | undefined;
|
|
970
975
|
message: string;
|
|
971
976
|
};
|
|
972
977
|
requestId: string;
|
|
973
978
|
};
|
|
974
979
|
outputFormat: "json";
|
|
975
|
-
status:
|
|
980
|
+
status: 429;
|
|
976
981
|
input: {
|
|
977
982
|
param: {
|
|
978
983
|
orgId: string;
|
|
@@ -985,14 +990,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
985
990
|
} | {
|
|
986
991
|
output: {
|
|
987
992
|
error: {
|
|
988
|
-
code: "
|
|
993
|
+
code: "query_invalid";
|
|
989
994
|
details?: readonly Response.error.Detail[] | undefined;
|
|
990
995
|
message: string;
|
|
991
996
|
};
|
|
992
997
|
requestId: string;
|
|
993
998
|
};
|
|
994
999
|
outputFormat: "json";
|
|
995
|
-
status:
|
|
1000
|
+
status: 400;
|
|
996
1001
|
input: {
|
|
997
1002
|
param: {
|
|
998
1003
|
orgId: string;
|
|
@@ -1005,14 +1010,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1005
1010
|
} | {
|
|
1006
1011
|
output: {
|
|
1007
1012
|
error: {
|
|
1008
|
-
code: "
|
|
1013
|
+
code: "upstream_error";
|
|
1009
1014
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1010
1015
|
message: string;
|
|
1011
1016
|
};
|
|
1012
1017
|
requestId: string;
|
|
1013
1018
|
};
|
|
1014
1019
|
outputFormat: "json";
|
|
1015
|
-
status:
|
|
1020
|
+
status: 502;
|
|
1016
1021
|
input: {
|
|
1017
1022
|
param: {
|
|
1018
1023
|
orgId: string;
|
|
@@ -1025,14 +1030,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1025
1030
|
} | {
|
|
1026
1031
|
output: {
|
|
1027
1032
|
error: {
|
|
1028
|
-
code: "
|
|
1033
|
+
code: "param_invalid";
|
|
1029
1034
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1030
1035
|
message: string;
|
|
1031
1036
|
};
|
|
1032
1037
|
requestId: string;
|
|
1033
1038
|
};
|
|
1034
1039
|
outputFormat: "json";
|
|
1035
|
-
status:
|
|
1040
|
+
status: 400;
|
|
1036
1041
|
input: {
|
|
1037
1042
|
param: {
|
|
1038
1043
|
orgId: string;
|
|
@@ -1045,7 +1050,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1045
1050
|
} | {
|
|
1046
1051
|
output: {
|
|
1047
1052
|
error: {
|
|
1048
|
-
code: "
|
|
1053
|
+
code: "organization_not_found";
|
|
1049
1054
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1050
1055
|
message: string;
|
|
1051
1056
|
};
|
|
@@ -1065,14 +1070,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1065
1070
|
} | {
|
|
1066
1071
|
output: {
|
|
1067
1072
|
error: {
|
|
1068
|
-
code: "
|
|
1073
|
+
code: "billing_unconfigured";
|
|
1069
1074
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1070
1075
|
message: string;
|
|
1071
1076
|
};
|
|
1072
1077
|
requestId: string;
|
|
1073
1078
|
};
|
|
1074
1079
|
outputFormat: "json";
|
|
1075
|
-
status:
|
|
1080
|
+
status: 501;
|
|
1076
1081
|
input: {
|
|
1077
1082
|
param: {
|
|
1078
1083
|
orgId: string;
|
|
@@ -1084,15 +1089,10 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1084
1089
|
};
|
|
1085
1090
|
} | {
|
|
1086
1091
|
output: {
|
|
1087
|
-
|
|
1088
|
-
code: "billing_unconfigured";
|
|
1089
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
1090
|
-
message: string;
|
|
1091
|
-
};
|
|
1092
|
-
requestId: string;
|
|
1092
|
+
url: string;
|
|
1093
1093
|
};
|
|
1094
1094
|
outputFormat: "json";
|
|
1095
|
-
status:
|
|
1095
|
+
status: 200;
|
|
1096
1096
|
input: {
|
|
1097
1097
|
param: {
|
|
1098
1098
|
orgId: string;
|
|
@@ -1105,14 +1105,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1105
1105
|
} | {
|
|
1106
1106
|
output: {
|
|
1107
1107
|
error: {
|
|
1108
|
-
code: "
|
|
1108
|
+
code: "billing_not_found";
|
|
1109
1109
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1110
1110
|
message: string;
|
|
1111
1111
|
};
|
|
1112
1112
|
requestId: string;
|
|
1113
1113
|
};
|
|
1114
1114
|
outputFormat: "json";
|
|
1115
|
-
status:
|
|
1115
|
+
status: 404;
|
|
1116
1116
|
input: {
|
|
1117
1117
|
param: {
|
|
1118
1118
|
orgId: string;
|
|
@@ -1128,22 +1128,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1128
1128
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods": {
|
|
1129
1129
|
$get: {
|
|
1130
1130
|
output: {
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
} | undefined;
|
|
1138
|
-
createdAt: string;
|
|
1139
|
-
default: boolean;
|
|
1140
|
-
id: string;
|
|
1141
|
-
provider: "stripe";
|
|
1142
|
-
type: string;
|
|
1143
|
-
}[];
|
|
1131
|
+
error: {
|
|
1132
|
+
code: "api_key_malformed";
|
|
1133
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1134
|
+
message: string;
|
|
1135
|
+
};
|
|
1136
|
+
requestId: string;
|
|
1144
1137
|
};
|
|
1145
1138
|
outputFormat: "json";
|
|
1146
|
-
status:
|
|
1139
|
+
status: 400;
|
|
1147
1140
|
input: {
|
|
1148
1141
|
param: {
|
|
1149
1142
|
orgId: string;
|
|
@@ -1156,14 +1149,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1156
1149
|
} | {
|
|
1157
1150
|
output: {
|
|
1158
1151
|
error: {
|
|
1159
|
-
code: "
|
|
1152
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1160
1153
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1161
1154
|
message: string;
|
|
1162
1155
|
};
|
|
1163
1156
|
requestId: string;
|
|
1164
1157
|
};
|
|
1165
1158
|
outputFormat: "json";
|
|
1166
|
-
status:
|
|
1159
|
+
status: 401;
|
|
1167
1160
|
input: {
|
|
1168
1161
|
param: {
|
|
1169
1162
|
orgId: string;
|
|
@@ -1176,14 +1169,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1176
1169
|
} | {
|
|
1177
1170
|
output: {
|
|
1178
1171
|
error: {
|
|
1179
|
-
code: "
|
|
1172
|
+
code: "api_key_forbidden";
|
|
1180
1173
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1181
1174
|
message: string;
|
|
1182
1175
|
};
|
|
1183
1176
|
requestId: string;
|
|
1184
1177
|
};
|
|
1185
1178
|
outputFormat: "json";
|
|
1186
|
-
status:
|
|
1179
|
+
status: 403;
|
|
1187
1180
|
input: {
|
|
1188
1181
|
param: {
|
|
1189
1182
|
orgId: string;
|
|
@@ -1196,14 +1189,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1196
1189
|
} | {
|
|
1197
1190
|
output: {
|
|
1198
1191
|
error: {
|
|
1199
|
-
code: "
|
|
1192
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1200
1193
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1201
1194
|
message: string;
|
|
1202
1195
|
};
|
|
1203
1196
|
requestId: string;
|
|
1204
1197
|
};
|
|
1205
1198
|
outputFormat: "json";
|
|
1206
|
-
status:
|
|
1199
|
+
status: 429;
|
|
1207
1200
|
input: {
|
|
1208
1201
|
param: {
|
|
1209
1202
|
orgId: string;
|
|
@@ -1216,14 +1209,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1216
1209
|
} | {
|
|
1217
1210
|
output: {
|
|
1218
1211
|
error: {
|
|
1219
|
-
code: "
|
|
1212
|
+
code: "query_invalid";
|
|
1220
1213
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1221
1214
|
message: string;
|
|
1222
1215
|
};
|
|
1223
1216
|
requestId: string;
|
|
1224
1217
|
};
|
|
1225
1218
|
outputFormat: "json";
|
|
1226
|
-
status:
|
|
1219
|
+
status: 400;
|
|
1227
1220
|
input: {
|
|
1228
1221
|
param: {
|
|
1229
1222
|
orgId: string;
|
|
@@ -1236,14 +1229,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1236
1229
|
} | {
|
|
1237
1230
|
output: {
|
|
1238
1231
|
error: {
|
|
1239
|
-
code: "
|
|
1232
|
+
code: "upstream_error";
|
|
1240
1233
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1241
1234
|
message: string;
|
|
1242
1235
|
};
|
|
1243
1236
|
requestId: string;
|
|
1244
1237
|
};
|
|
1245
1238
|
outputFormat: "json";
|
|
1246
|
-
status:
|
|
1239
|
+
status: 502;
|
|
1247
1240
|
input: {
|
|
1248
1241
|
param: {
|
|
1249
1242
|
orgId: string;
|
|
@@ -1256,14 +1249,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1256
1249
|
} | {
|
|
1257
1250
|
output: {
|
|
1258
1251
|
error: {
|
|
1259
|
-
code: "
|
|
1252
|
+
code: "param_invalid";
|
|
1260
1253
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1261
1254
|
message: string;
|
|
1262
1255
|
};
|
|
1263
1256
|
requestId: string;
|
|
1264
1257
|
};
|
|
1265
1258
|
outputFormat: "json";
|
|
1266
|
-
status:
|
|
1259
|
+
status: 400;
|
|
1267
1260
|
input: {
|
|
1268
1261
|
param: {
|
|
1269
1262
|
orgId: string;
|
|
@@ -1276,14 +1269,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1276
1269
|
} | {
|
|
1277
1270
|
output: {
|
|
1278
1271
|
error: {
|
|
1279
|
-
code: "
|
|
1272
|
+
code: "organization_not_found";
|
|
1280
1273
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1281
1274
|
message: string;
|
|
1282
1275
|
};
|
|
1283
1276
|
requestId: string;
|
|
1284
1277
|
};
|
|
1285
1278
|
outputFormat: "json";
|
|
1286
|
-
status:
|
|
1279
|
+
status: 404;
|
|
1287
1280
|
input: {
|
|
1288
1281
|
param: {
|
|
1289
1282
|
orgId: string;
|
|
@@ -1315,15 +1308,22 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1315
1308
|
};
|
|
1316
1309
|
} | {
|
|
1317
1310
|
output: {
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1311
|
+
data: {
|
|
1312
|
+
card?: {
|
|
1313
|
+
brand: string;
|
|
1314
|
+
expMonth: number;
|
|
1315
|
+
expYear: number;
|
|
1316
|
+
last4: string;
|
|
1317
|
+
} | undefined;
|
|
1318
|
+
createdAt: string;
|
|
1319
|
+
default: boolean;
|
|
1320
|
+
id: string;
|
|
1321
|
+
provider: "stripe";
|
|
1322
|
+
type: string;
|
|
1323
|
+
}[];
|
|
1324
1324
|
};
|
|
1325
1325
|
outputFormat: "json";
|
|
1326
|
-
status:
|
|
1326
|
+
status: 200;
|
|
1327
1327
|
input: {
|
|
1328
1328
|
param: {
|
|
1329
1329
|
orgId: string;
|
|
@@ -1339,25 +1339,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1339
1339
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods/:methodId{pm_[A-Za-z0-9_-]+}": {
|
|
1340
1340
|
$delete: {
|
|
1341
1341
|
output: {
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
amount: string;
|
|
1349
|
-
currency: "usd";
|
|
1350
|
-
period: "month";
|
|
1351
|
-
} | undefined;
|
|
1352
|
-
status: "active" | "canceled" | "none" | "past_due";
|
|
1353
|
-
txFeeLimit?: {
|
|
1354
|
-
amount: string;
|
|
1355
|
-
currency: "usd";
|
|
1356
|
-
} | undefined;
|
|
1357
|
-
updatedAt?: string | undefined;
|
|
1342
|
+
error: {
|
|
1343
|
+
code: "api_key_malformed";
|
|
1344
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1345
|
+
message: string;
|
|
1346
|
+
};
|
|
1347
|
+
requestId: string;
|
|
1358
1348
|
};
|
|
1359
1349
|
outputFormat: "json";
|
|
1360
|
-
status:
|
|
1350
|
+
status: 400;
|
|
1361
1351
|
input: {
|
|
1362
1352
|
param: {
|
|
1363
1353
|
methodId: string;
|
|
@@ -1371,14 +1361,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1371
1361
|
} | {
|
|
1372
1362
|
output: {
|
|
1373
1363
|
error: {
|
|
1374
|
-
code: "
|
|
1364
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1375
1365
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1376
1366
|
message: string;
|
|
1377
1367
|
};
|
|
1378
1368
|
requestId: string;
|
|
1379
1369
|
};
|
|
1380
1370
|
outputFormat: "json";
|
|
1381
|
-
status:
|
|
1371
|
+
status: 401;
|
|
1382
1372
|
input: {
|
|
1383
1373
|
param: {
|
|
1384
1374
|
methodId: string;
|
|
@@ -1392,14 +1382,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1392
1382
|
} | {
|
|
1393
1383
|
output: {
|
|
1394
1384
|
error: {
|
|
1395
|
-
code: "
|
|
1385
|
+
code: "api_key_forbidden";
|
|
1396
1386
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1397
1387
|
message: string;
|
|
1398
1388
|
};
|
|
1399
1389
|
requestId: string;
|
|
1400
1390
|
};
|
|
1401
1391
|
outputFormat: "json";
|
|
1402
|
-
status:
|
|
1392
|
+
status: 403;
|
|
1403
1393
|
input: {
|
|
1404
1394
|
param: {
|
|
1405
1395
|
methodId: string;
|
|
@@ -1413,14 +1403,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1413
1403
|
} | {
|
|
1414
1404
|
output: {
|
|
1415
1405
|
error: {
|
|
1416
|
-
code: "
|
|
1406
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1417
1407
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1418
1408
|
message: string;
|
|
1419
1409
|
};
|
|
1420
1410
|
requestId: string;
|
|
1421
1411
|
};
|
|
1422
1412
|
outputFormat: "json";
|
|
1423
|
-
status:
|
|
1413
|
+
status: 429;
|
|
1424
1414
|
input: {
|
|
1425
1415
|
param: {
|
|
1426
1416
|
methodId: string;
|
|
@@ -1434,14 +1424,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1434
1424
|
} | {
|
|
1435
1425
|
output: {
|
|
1436
1426
|
error: {
|
|
1437
|
-
code: "
|
|
1427
|
+
code: "query_invalid";
|
|
1438
1428
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1439
1429
|
message: string;
|
|
1440
1430
|
};
|
|
1441
1431
|
requestId: string;
|
|
1442
1432
|
};
|
|
1443
1433
|
outputFormat: "json";
|
|
1444
|
-
status:
|
|
1434
|
+
status: 400;
|
|
1445
1435
|
input: {
|
|
1446
1436
|
param: {
|
|
1447
1437
|
methodId: string;
|
|
@@ -1455,14 +1445,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1455
1445
|
} | {
|
|
1456
1446
|
output: {
|
|
1457
1447
|
error: {
|
|
1458
|
-
code: "
|
|
1448
|
+
code: "upstream_error";
|
|
1459
1449
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1460
1450
|
message: string;
|
|
1461
1451
|
};
|
|
1462
1452
|
requestId: string;
|
|
1463
1453
|
};
|
|
1464
1454
|
outputFormat: "json";
|
|
1465
|
-
status:
|
|
1455
|
+
status: 502;
|
|
1466
1456
|
input: {
|
|
1467
1457
|
param: {
|
|
1468
1458
|
methodId: string;
|
|
@@ -1476,14 +1466,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1476
1466
|
} | {
|
|
1477
1467
|
output: {
|
|
1478
1468
|
error: {
|
|
1479
|
-
code: "
|
|
1469
|
+
code: "param_invalid";
|
|
1480
1470
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1481
1471
|
message: string;
|
|
1482
1472
|
};
|
|
1483
1473
|
requestId: string;
|
|
1484
1474
|
};
|
|
1485
1475
|
outputFormat: "json";
|
|
1486
|
-
status:
|
|
1476
|
+
status: 400;
|
|
1487
1477
|
input: {
|
|
1488
1478
|
param: {
|
|
1489
1479
|
methodId: string;
|
|
@@ -1497,7 +1487,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1497
1487
|
} | {
|
|
1498
1488
|
output: {
|
|
1499
1489
|
error: {
|
|
1500
|
-
code: "
|
|
1490
|
+
code: "organization_not_found";
|
|
1501
1491
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1502
1492
|
message: string;
|
|
1503
1493
|
};
|
|
@@ -1518,14 +1508,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1518
1508
|
} | {
|
|
1519
1509
|
output: {
|
|
1520
1510
|
error: {
|
|
1521
|
-
code: "
|
|
1511
|
+
code: "billing_unconfigured";
|
|
1522
1512
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1523
1513
|
message: string;
|
|
1524
1514
|
};
|
|
1525
1515
|
requestId: string;
|
|
1526
1516
|
};
|
|
1527
1517
|
outputFormat: "json";
|
|
1528
|
-
status:
|
|
1518
|
+
status: 501;
|
|
1529
1519
|
input: {
|
|
1530
1520
|
param: {
|
|
1531
1521
|
methodId: string;
|
|
@@ -1538,15 +1528,25 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1538
1528
|
};
|
|
1539
1529
|
} | {
|
|
1540
1530
|
output: {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
};
|
|
1546
|
-
|
|
1531
|
+
spend?: {
|
|
1532
|
+
amount: string;
|
|
1533
|
+
currency: "usd";
|
|
1534
|
+
period: "month";
|
|
1535
|
+
} | undefined;
|
|
1536
|
+
spendLimit?: {
|
|
1537
|
+
amount: string;
|
|
1538
|
+
currency: "usd";
|
|
1539
|
+
period: "month";
|
|
1540
|
+
} | undefined;
|
|
1541
|
+
status: "active" | "canceled" | "none" | "past_due";
|
|
1542
|
+
txFeeLimit?: {
|
|
1543
|
+
amount: string;
|
|
1544
|
+
currency: "usd";
|
|
1545
|
+
} | undefined;
|
|
1546
|
+
updatedAt?: string | undefined;
|
|
1547
1547
|
};
|
|
1548
1548
|
outputFormat: "json";
|
|
1549
|
-
status:
|
|
1549
|
+
status: 200;
|
|
1550
1550
|
input: {
|
|
1551
1551
|
param: {
|
|
1552
1552
|
methodId: string;
|
|
@@ -1560,14 +1560,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1560
1560
|
} | {
|
|
1561
1561
|
output: {
|
|
1562
1562
|
error: {
|
|
1563
|
-
code: "
|
|
1563
|
+
code: "billing_not_found";
|
|
1564
1564
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1565
1565
|
message: string;
|
|
1566
1566
|
};
|
|
1567
1567
|
requestId: string;
|
|
1568
1568
|
};
|
|
1569
1569
|
outputFormat: "json";
|
|
1570
|
-
status:
|
|
1570
|
+
status: 404;
|
|
1571
1571
|
input: {
|
|
1572
1572
|
param: {
|
|
1573
1573
|
methodId: string;
|
|
@@ -1581,14 +1581,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1581
1581
|
} | {
|
|
1582
1582
|
output: {
|
|
1583
1583
|
error: {
|
|
1584
|
-
code: "
|
|
1584
|
+
code: "payment_method_not_found";
|
|
1585
1585
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1586
1586
|
message: string;
|
|
1587
1587
|
};
|
|
1588
1588
|
requestId: string;
|
|
1589
1589
|
};
|
|
1590
1590
|
outputFormat: "json";
|
|
1591
|
-
status:
|
|
1591
|
+
status: 404;
|
|
1592
1592
|
input: {
|
|
1593
1593
|
param: {
|
|
1594
1594
|
methodId: string;
|
|
@@ -1604,23 +1604,16 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1604
1604
|
} & {
|
|
1605
1605
|
"/stripe/webhook": {
|
|
1606
1606
|
$post: {
|
|
1607
|
-
output: {
|
|
1608
|
-
received: true;
|
|
1609
|
-
};
|
|
1610
|
-
outputFormat: "json";
|
|
1611
|
-
status: 200;
|
|
1612
|
-
input: {};
|
|
1613
|
-
} | {
|
|
1614
1607
|
output: {
|
|
1615
1608
|
error: {
|
|
1616
|
-
code: "
|
|
1609
|
+
code: "upstream_error";
|
|
1617
1610
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1618
1611
|
message: string;
|
|
1619
1612
|
};
|
|
1620
1613
|
requestId: string;
|
|
1621
1614
|
};
|
|
1622
1615
|
outputFormat: "json";
|
|
1623
|
-
status:
|
|
1616
|
+
status: 502;
|
|
1624
1617
|
input: {};
|
|
1625
1618
|
} | {
|
|
1626
1619
|
output: {
|
|
@@ -1637,14 +1630,21 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
|
|
|
1637
1630
|
} | {
|
|
1638
1631
|
output: {
|
|
1639
1632
|
error: {
|
|
1640
|
-
code: "
|
|
1633
|
+
code: "signature_invalid";
|
|
1641
1634
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1642
1635
|
message: string;
|
|
1643
1636
|
};
|
|
1644
1637
|
requestId: string;
|
|
1645
1638
|
};
|
|
1646
1639
|
outputFormat: "json";
|
|
1647
|
-
status:
|
|
1640
|
+
status: 400;
|
|
1641
|
+
input: {};
|
|
1642
|
+
} | {
|
|
1643
|
+
output: {
|
|
1644
|
+
received: true;
|
|
1645
|
+
};
|
|
1646
|
+
outputFormat: "json";
|
|
1647
|
+
status: 200;
|
|
1648
1648
|
input: {};
|
|
1649
1649
|
};
|
|
1650
1650
|
};
|