tapimo 0.4.4 → 0.5.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.
Files changed (162) hide show
  1. package/dist/App.d.ts +7403 -6127
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +4 -0
  4. package/dist/App.js.map +1 -1
  5. package/dist/Scope.d.ts +18 -1
  6. package/dist/Scope.d.ts.map +1 -1
  7. package/dist/Scope.js +24 -3
  8. package/dist/Scope.js.map +1 -1
  9. package/dist/admin/apps/verified-tokens.d.ts +115 -115
  10. package/dist/apps/data/App.d.ts +1838 -1534
  11. package/dist/apps/data/App.d.ts.map +1 -1
  12. package/dist/apps/data/App.js +135 -44
  13. package/dist/apps/data/App.js.map +1 -1
  14. package/dist/apps/data/{FundingRouteProviders.d.ts → FundingQuoteProviders.d.ts} +7 -7
  15. package/dist/apps/data/{FundingRouteProviders.d.ts.map → FundingQuoteProviders.d.ts.map} +1 -1
  16. package/dist/apps/data/{FundingRouteProviders.js → FundingQuoteProviders.js} +36 -91
  17. package/dist/apps/data/FundingQuoteProviders.js.map +1 -0
  18. package/dist/apps/data/index.d.ts +1 -1
  19. package/dist/apps/data/index.js +1 -1
  20. package/dist/apps/data/routes/activities.d.ts +242 -242
  21. package/dist/apps/data/routes/addresses.d.ts +227 -227
  22. package/dist/apps/data/routes/balances.d.ts +12 -12
  23. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  24. package/dist/apps/data/routes/balances.js +67 -149
  25. package/dist/apps/data/routes/balances.js.map +1 -1
  26. package/dist/apps/data/routes/blocks.d.ts +125 -126
  27. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  28. package/dist/apps/data/routes/blocks.js +3 -5
  29. package/dist/apps/data/routes/blocks.js.map +1 -1
  30. package/dist/apps/data/routes/coingecko.d.ts +55 -54
  31. package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
  32. package/dist/apps/data/routes/coingecko.js +3 -8
  33. package/dist/apps/data/routes/coingecko.js.map +1 -1
  34. package/dist/apps/data/routes/funding.d.ts +207 -388
  35. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  36. package/dist/apps/data/routes/funding.js +143 -221
  37. package/dist/apps/data/routes/funding.js.map +1 -1
  38. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  39. package/dist/apps/data/routes/rpc.js +86 -16
  40. package/dist/apps/data/routes/rpc.js.map +1 -1
  41. package/dist/apps/data/routes/tokenlist.d.ts +33 -33
  42. package/dist/apps/data/routes/transactions.d.ts +281 -281
  43. package/dist/apps/data/routes/transfers.d.ts +58 -58
  44. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  45. package/dist/apps/data/routes/webhooks.d.ts +340 -0
  46. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  47. package/dist/apps/data/routes/webhooks.js +13 -1
  48. package/dist/apps/data/routes/webhooks.js.map +1 -1
  49. package/dist/apps/index.d.ts +1 -1
  50. package/dist/apps/index.js +1 -1
  51. package/dist/apps/management/App.d.ts +1090 -108
  52. package/dist/apps/management/App.d.ts.map +1 -1
  53. package/dist/apps/management/App.js +4 -0
  54. package/dist/apps/management/App.js.map +1 -1
  55. package/dist/apps/management/routes/api-keys.d.ts +118 -118
  56. package/dist/apps/management/routes/api-keys.js +2 -2
  57. package/dist/apps/management/routes/api-keys.js.map +1 -1
  58. package/dist/apps/management/routes/billing.d.ts +207 -207
  59. package/dist/apps/management/routes/invite-links.d.ts +1100 -0
  60. package/dist/apps/management/routes/invite-links.d.ts.map +1 -0
  61. package/dist/apps/management/routes/invite-links.js +411 -0
  62. package/dist/apps/management/routes/invite-links.js.map +1 -0
  63. package/dist/apps/management/routes/me.d.ts +17 -17
  64. package/dist/apps/management/routes/members.d.ts +71 -71
  65. package/dist/apps/management/routes/orgs.d.ts +12 -12
  66. package/dist/apps/management/routes/projects.d.ts +70 -70
  67. package/dist/apps/management/routes/scopes.d.ts +11 -11
  68. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  69. package/dist/apps/management/routes/scopes.js +2 -2
  70. package/dist/apps/management/routes/scopes.js.map +1 -1
  71. package/dist/apps/management/routes/usage.d.ts +75 -75
  72. package/dist/apps/relay/App.d.ts.map +1 -1
  73. package/dist/apps/relay/App.js +42 -4
  74. package/dist/apps/relay/App.js.map +1 -1
  75. package/dist/db/Db.d.ts +3 -0
  76. package/dist/db/Db.d.ts.map +1 -1
  77. package/dist/db/Db.js +57 -0
  78. package/dist/db/Db.js.map +1 -1
  79. package/dist/db/Schema.d.ts +31 -0
  80. package/dist/db/Schema.d.ts.map +1 -1
  81. package/dist/db/Schema.js +31 -0
  82. package/dist/db/Schema.js.map +1 -1
  83. package/dist/db/tables/inviteLinks.d.ts +42 -0
  84. package/dist/db/tables/inviteLinks.d.ts.map +1 -0
  85. package/dist/db/tables/inviteLinks.js +148 -0
  86. package/dist/db/tables/inviteLinks.js.map +1 -0
  87. package/dist/db/tables/organizations.d.ts.map +1 -1
  88. package/dist/db/tables/organizations.js +2 -0
  89. package/dist/db/tables/organizations.js.map +1 -1
  90. package/dist/handlers/relay.d.ts.map +1 -1
  91. package/dist/handlers/relay.js +13 -3
  92. package/dist/handlers/relay.js.map +1 -1
  93. package/dist/internal/Auth.d.ts +9 -1
  94. package/dist/internal/Auth.d.ts.map +1 -1
  95. package/dist/internal/Auth.js +130 -10
  96. package/dist/internal/Auth.js.map +1 -1
  97. package/dist/internal/EdgeCache.d.ts +3 -1
  98. package/dist/internal/EdgeCache.d.ts.map +1 -1
  99. package/dist/internal/EdgeCache.js +17 -2
  100. package/dist/internal/EdgeCache.js.map +1 -1
  101. package/dist/internal/{FundingRoutes.d.ts → FundingQuotes.d.ts} +185 -428
  102. package/dist/internal/FundingQuotes.d.ts.map +1 -0
  103. package/dist/internal/{FundingRoutes.js → FundingQuotes.js} +93 -218
  104. package/dist/internal/FundingQuotes.js.map +1 -0
  105. package/dist/internal/Viem.d.ts +3 -1
  106. package/dist/internal/Viem.d.ts.map +1 -1
  107. package/dist/internal/Viem.js +11 -2
  108. package/dist/internal/Viem.js.map +1 -1
  109. package/dist/internal/index.d.ts +1 -1
  110. package/dist/internal/index.js +1 -1
  111. package/package.json +1 -1
  112. package/src/ApiKeys.test.ts +23 -0
  113. package/src/App.test-d.ts +2 -0
  114. package/src/App.ts +6 -0
  115. package/src/Client.test-d.ts +20 -11
  116. package/src/Scope.test.ts +1 -0
  117. package/src/Scope.ts +30 -4
  118. package/src/apps/data/App.test.ts +354 -0
  119. package/src/apps/data/App.ts +159 -52
  120. package/src/apps/data/FundingQuoteProviders.test.ts +151 -0
  121. package/src/apps/data/{FundingRouteProviders.ts → FundingQuoteProviders.ts} +40 -101
  122. package/src/apps/data/index.ts +1 -1
  123. package/src/apps/data/routes/balances.test.ts +64 -18
  124. package/src/apps/data/routes/balances.ts +76 -177
  125. package/src/apps/data/routes/blocks.ts +3 -5
  126. package/src/apps/data/routes/coingecko.ts +3 -8
  127. package/src/apps/data/routes/funding.test.ts +151 -206
  128. package/src/apps/data/routes/funding.ts +156 -291
  129. package/src/apps/data/routes/indexer.test.ts +97 -1
  130. package/src/apps/data/routes/rpc.test.ts +219 -0
  131. package/src/apps/data/routes/rpc.ts +92 -17
  132. package/src/apps/data/routes/webhooks.test.ts +21 -0
  133. package/src/apps/data/routes/webhooks.ts +13 -1
  134. package/src/apps/index.ts +1 -1
  135. package/src/apps/management/App.ts +4 -0
  136. package/src/apps/management/routes/api-keys.test.ts +47 -3
  137. package/src/apps/management/routes/api-keys.ts +2 -2
  138. package/src/apps/management/routes/invite-links.test.ts +385 -0
  139. package/src/apps/management/routes/invite-links.ts +570 -0
  140. package/src/apps/management/routes/scopes.test.ts +3 -2
  141. package/src/apps/management/routes/scopes.ts +4 -2
  142. package/src/apps/relay/App.test.ts +324 -4
  143. package/src/apps/relay/App.ts +40 -4
  144. package/src/db/Db.ts +65 -0
  145. package/src/db/Schema.ts +39 -0
  146. package/src/db/tables/inviteLinks.ts +187 -0
  147. package/src/db/tables/organizations.ts +2 -0
  148. package/src/handlers/relay.ts +16 -4
  149. package/src/internal/Auth.test.ts +132 -22
  150. package/src/internal/Auth.ts +171 -14
  151. package/src/internal/EdgeCache.test.ts +24 -3
  152. package/src/internal/EdgeCache.ts +18 -2
  153. package/src/internal/FundingQuotes.test.ts +174 -0
  154. package/src/internal/{FundingRoutes.ts → FundingQuotes.ts} +153 -312
  155. package/src/internal/Viem.ts +14 -5
  156. package/src/internal/index.test.ts +1 -1
  157. package/src/internal/index.ts +1 -1
  158. package/dist/apps/data/FundingRouteProviders.js.map +0 -1
  159. package/dist/internal/FundingRoutes.d.ts.map +0 -1
  160. package/dist/internal/FundingRoutes.js.map +0 -1
  161. package/src/apps/data/FundingRouteProviders.test.ts +0 -225
  162. package/src/internal/FundingRoutes.test.ts +0 -213
@@ -0,0 +1,1100 @@
1
+ import * as z from 'zod/mini';
2
+ import * as Response from '../../../internal/Response.js';
3
+ import type { Environment } from '../App.js';
4
+ /** OpenAPI schemas owned by reusable invite links. */
5
+ export declare namespace schema {
6
+ /** Management representation, including the recopyable bearer id. */
7
+ const InviteLink: z.ZodMiniObject<{
8
+ createdAt: z.ZodMiniString<string>;
9
+ createdBy: z.ZodMiniString<string>;
10
+ enabled: z.ZodMiniBoolean<boolean>;
11
+ expiresAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
12
+ id: z.ZodMiniString<string>;
13
+ lastUsedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
14
+ maxUses: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
15
+ name: z.ZodMiniString<string>;
16
+ orgId: z.ZodMiniString<string>;
17
+ role: z.ZodMiniLiteral<"member">;
18
+ status: z.ZodMiniEnum<{
19
+ active: "active";
20
+ deleted: "deleted";
21
+ disabled: "disabled";
22
+ exhausted: "exhausted";
23
+ expired: "expired";
24
+ }>;
25
+ token: z.ZodMiniString<string>;
26
+ updatedAt: z.ZodMiniString<string>;
27
+ useCount: z.ZodMiniNumber<number>;
28
+ }, z.core.$strip>;
29
+ /** Redemption audit representation (never includes a bearer URL). */
30
+ const Redemption: z.ZodMiniObject<{
31
+ createdAt: z.ZodMiniString<string>;
32
+ email: z.ZodMiniString<string>;
33
+ id: z.ZodMiniString<string>;
34
+ inviteLinkId: z.ZodMiniString<string>;
35
+ inviteLinkName: z.ZodMiniString<string>;
36
+ orgId: z.ZodMiniString<string>;
37
+ userId: z.ZodMiniString<string>;
38
+ }, z.core.$strip>;
39
+ /** Create body. */
40
+ const CreateBody: z.ZodMiniObject<{
41
+ expiresAt: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniISODateTime>>;
42
+ maxUses: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniNumber<number>>>;
43
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
44
+ role: z.ZodMiniDefault<z.ZodMiniLiteral<"member">>;
45
+ }, z.core.$strip>;
46
+ /** Update body. */
47
+ const UpdateBody: z.ZodMiniObject<{
48
+ enabled: z.ZodMiniBoolean<boolean>;
49
+ }, z.core.$strip>;
50
+ /** Bearer-token body for recipient operations. */
51
+ const TokenBody: z.ZodMiniObject<{
52
+ token: z.ZodMiniString<string>;
53
+ }, z.core.$strip>;
54
+ /** Public active-link summary. */
55
+ const ResolveResponse: z.ZodMiniObject<{
56
+ orgName: z.ZodMiniString<string>;
57
+ role: z.ZodMiniLiteral<"member">;
58
+ }, z.core.$strip>;
59
+ /** Successful acceptance. */
60
+ const AcceptResponse: z.ZodMiniObject<{
61
+ orgId: z.ZodMiniString<string>;
62
+ role: z.ZodMiniLiteral<"member">;
63
+ userId: z.ZodMiniString<string>;
64
+ }, z.core.$strip>;
65
+ /** Link collection response. */
66
+ const ListResponse: z.ZodMiniObject<{
67
+ data: z.ZodMiniArray<z.ZodMiniObject<{
68
+ createdAt: z.ZodMiniString<string>;
69
+ createdBy: z.ZodMiniString<string>;
70
+ enabled: z.ZodMiniBoolean<boolean>;
71
+ expiresAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
72
+ id: z.ZodMiniString<string>;
73
+ lastUsedAt: z.ZodMiniNullable<z.ZodMiniString<string>>;
74
+ maxUses: z.ZodMiniNullable<z.ZodMiniNumber<number>>;
75
+ name: z.ZodMiniString<string>;
76
+ orgId: z.ZodMiniString<string>;
77
+ role: z.ZodMiniLiteral<"member">;
78
+ status: z.ZodMiniEnum<{
79
+ active: "active";
80
+ deleted: "deleted";
81
+ disabled: "disabled";
82
+ exhausted: "exhausted";
83
+ expired: "expired";
84
+ }>;
85
+ token: z.ZodMiniString<string>;
86
+ updatedAt: z.ZodMiniString<string>;
87
+ useCount: z.ZodMiniNumber<number>;
88
+ }, z.core.$strip>>;
89
+ }, z.core.$strip>;
90
+ /** Redemption collection response. */
91
+ const RedemptionsResponse: z.ZodMiniObject<{
92
+ data: z.ZodMiniArray<z.ZodMiniObject<{
93
+ createdAt: z.ZodMiniString<string>;
94
+ email: z.ZodMiniString<string>;
95
+ id: z.ZodMiniString<string>;
96
+ inviteLinkId: z.ZodMiniString<string>;
97
+ inviteLinkName: z.ZodMiniString<string>;
98
+ orgId: z.ZodMiniString<string>;
99
+ userId: z.ZodMiniString<string>;
100
+ }, z.core.$strip>>;
101
+ }, z.core.$strip>;
102
+ /** Path parameters addressing an organization's invite links. */
103
+ const Params: z.ZodMiniObject<{
104
+ orgId: z.ZodMiniString<string>;
105
+ }, z.core.$strip>;
106
+ /** Path parameters addressing one organization invite link. */
107
+ const LinkParams: z.ZodMiniObject<{
108
+ inviteLinkId: z.ZodMiniString<string>;
109
+ orgId: z.ZodMiniString<string>;
110
+ }, z.core.$strip>;
111
+ /** Delete confirmation. */
112
+ const DeleteResponse: z.ZodMiniObject<{
113
+ id: z.ZodMiniString<string>;
114
+ }, z.core.$strip>;
115
+ }
116
+ /** Mounts reusable invite-link management and recipient operations. */
117
+ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environment, {
118
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links": {
119
+ $post: {
120
+ output: {
121
+ error: {
122
+ code: "upstream_error";
123
+ details?: readonly Response.error.Detail[] | undefined;
124
+ message: string;
125
+ };
126
+ requestId: string;
127
+ };
128
+ outputFormat: "json";
129
+ status: 502;
130
+ input: {
131
+ param: {
132
+ orgId: string;
133
+ };
134
+ } & {
135
+ json: {
136
+ expiresAt?: string | null | undefined;
137
+ maxUses?: number | null | undefined;
138
+ name?: string | undefined;
139
+ role?: "member" | undefined;
140
+ };
141
+ };
142
+ } | {
143
+ output: {
144
+ error: {
145
+ code: "api_key_malformed";
146
+ details?: readonly Response.error.Detail[] | undefined;
147
+ message: string;
148
+ };
149
+ requestId: string;
150
+ };
151
+ outputFormat: "json";
152
+ status: 400;
153
+ input: {
154
+ param: {
155
+ orgId: string;
156
+ };
157
+ } & {
158
+ json: {
159
+ expiresAt?: string | null | undefined;
160
+ maxUses?: number | null | undefined;
161
+ name?: string | undefined;
162
+ role?: "member" | undefined;
163
+ };
164
+ };
165
+ } | {
166
+ output: {
167
+ error: {
168
+ code: "api_key_invalid" | "api_key_missing";
169
+ details?: readonly Response.error.Detail[] | undefined;
170
+ message: string;
171
+ };
172
+ requestId: string;
173
+ };
174
+ outputFormat: "json";
175
+ status: 401;
176
+ input: {
177
+ param: {
178
+ orgId: string;
179
+ };
180
+ } & {
181
+ json: {
182
+ expiresAt?: string | null | undefined;
183
+ maxUses?: number | null | undefined;
184
+ name?: string | undefined;
185
+ role?: "member" | undefined;
186
+ };
187
+ };
188
+ } | {
189
+ output: {
190
+ error: {
191
+ code: "organization_not_found";
192
+ details?: readonly Response.error.Detail[] | undefined;
193
+ message: string;
194
+ };
195
+ requestId: string;
196
+ };
197
+ outputFormat: "json";
198
+ status: 404;
199
+ input: {
200
+ param: {
201
+ orgId: string;
202
+ };
203
+ } & {
204
+ json: {
205
+ expiresAt?: string | null | undefined;
206
+ maxUses?: number | null | undefined;
207
+ name?: string | undefined;
208
+ role?: "member" | undefined;
209
+ };
210
+ };
211
+ } | {
212
+ output: {
213
+ error: {
214
+ code: "forbidden";
215
+ details?: readonly Response.error.Detail[] | undefined;
216
+ message: string;
217
+ };
218
+ requestId: string;
219
+ };
220
+ outputFormat: "json";
221
+ status: 403;
222
+ input: {
223
+ param: {
224
+ orgId: string;
225
+ };
226
+ } & {
227
+ json: {
228
+ expiresAt?: string | null | undefined;
229
+ maxUses?: number | null | undefined;
230
+ name?: string | undefined;
231
+ role?: "member" | undefined;
232
+ };
233
+ };
234
+ } | {
235
+ output: {
236
+ error: {
237
+ code: "body_invalid";
238
+ details?: readonly Response.error.Detail[] | undefined;
239
+ message: string;
240
+ };
241
+ requestId: string;
242
+ };
243
+ outputFormat: "json";
244
+ status: 400;
245
+ input: {
246
+ param: {
247
+ orgId: string;
248
+ };
249
+ } & {
250
+ json: {
251
+ expiresAt?: string | null | undefined;
252
+ maxUses?: number | null | undefined;
253
+ name?: string | undefined;
254
+ role?: "member" | undefined;
255
+ };
256
+ };
257
+ } | {
258
+ output: {
259
+ createdAt: string;
260
+ createdBy: string;
261
+ enabled: boolean;
262
+ expiresAt: string | null;
263
+ id: string;
264
+ lastUsedAt: string | null;
265
+ maxUses: number | null;
266
+ name: string;
267
+ orgId: string;
268
+ role: "member";
269
+ status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
270
+ token: string;
271
+ updatedAt: string;
272
+ useCount: number;
273
+ };
274
+ outputFormat: "json";
275
+ status: 200;
276
+ input: {
277
+ param: {
278
+ orgId: string;
279
+ };
280
+ } & {
281
+ json: {
282
+ expiresAt?: string | null | undefined;
283
+ maxUses?: number | null | undefined;
284
+ name?: string | undefined;
285
+ role?: "member" | undefined;
286
+ };
287
+ };
288
+ };
289
+ };
290
+ } & {
291
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links": {
292
+ $get: {
293
+ output: {
294
+ error: {
295
+ code: "upstream_error";
296
+ details?: readonly Response.error.Detail[] | undefined;
297
+ message: string;
298
+ };
299
+ requestId: string;
300
+ };
301
+ outputFormat: "json";
302
+ status: 502;
303
+ input: {
304
+ param: {
305
+ orgId: string;
306
+ };
307
+ };
308
+ } | {
309
+ output: {
310
+ error: {
311
+ code: "api_key_malformed";
312
+ details?: readonly Response.error.Detail[] | undefined;
313
+ message: string;
314
+ };
315
+ requestId: string;
316
+ };
317
+ outputFormat: "json";
318
+ status: 400;
319
+ input: {
320
+ param: {
321
+ orgId: string;
322
+ };
323
+ };
324
+ } | {
325
+ output: {
326
+ error: {
327
+ code: "api_key_invalid" | "api_key_missing";
328
+ details?: readonly Response.error.Detail[] | undefined;
329
+ message: string;
330
+ };
331
+ requestId: string;
332
+ };
333
+ outputFormat: "json";
334
+ status: 401;
335
+ input: {
336
+ param: {
337
+ orgId: string;
338
+ };
339
+ };
340
+ } | {
341
+ output: {
342
+ error: {
343
+ code: "organization_not_found";
344
+ details?: readonly Response.error.Detail[] | undefined;
345
+ message: string;
346
+ };
347
+ requestId: string;
348
+ };
349
+ outputFormat: "json";
350
+ status: 404;
351
+ input: {
352
+ param: {
353
+ orgId: string;
354
+ };
355
+ };
356
+ } | {
357
+ output: {
358
+ error: {
359
+ code: "forbidden";
360
+ details?: readonly Response.error.Detail[] | undefined;
361
+ message: string;
362
+ };
363
+ requestId: string;
364
+ };
365
+ outputFormat: "json";
366
+ status: 403;
367
+ input: {
368
+ param: {
369
+ orgId: string;
370
+ };
371
+ };
372
+ } | {
373
+ output: {
374
+ error: {
375
+ code: "param_invalid";
376
+ details?: readonly Response.error.Detail[] | undefined;
377
+ message: string;
378
+ };
379
+ requestId: string;
380
+ };
381
+ outputFormat: "json";
382
+ status: 400;
383
+ input: {
384
+ param: {
385
+ orgId: string;
386
+ };
387
+ };
388
+ } | {
389
+ output: {
390
+ data: {
391
+ createdAt: string;
392
+ createdBy: string;
393
+ enabled: boolean;
394
+ expiresAt: string | null;
395
+ id: string;
396
+ lastUsedAt: string | null;
397
+ maxUses: number | null;
398
+ name: string;
399
+ orgId: string;
400
+ role: "member";
401
+ status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
402
+ token: string;
403
+ updatedAt: string;
404
+ useCount: number;
405
+ }[];
406
+ };
407
+ outputFormat: "json";
408
+ status: 200;
409
+ input: {
410
+ param: {
411
+ orgId: string;
412
+ };
413
+ };
414
+ };
415
+ };
416
+ } & {
417
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links/:inviteLinkId{iln_[A-Za-z0-9_-]+}": {
418
+ $patch: {
419
+ output: {
420
+ error: {
421
+ code: "upstream_error";
422
+ details?: readonly Response.error.Detail[] | undefined;
423
+ message: string;
424
+ };
425
+ requestId: string;
426
+ };
427
+ outputFormat: "json";
428
+ status: 502;
429
+ input: {
430
+ param: {
431
+ inviteLinkId: string;
432
+ orgId: string;
433
+ };
434
+ } & {
435
+ json: {
436
+ enabled: boolean;
437
+ };
438
+ };
439
+ } | {
440
+ output: {
441
+ error: {
442
+ code: "api_key_malformed";
443
+ details?: readonly Response.error.Detail[] | undefined;
444
+ message: string;
445
+ };
446
+ requestId: string;
447
+ };
448
+ outputFormat: "json";
449
+ status: 400;
450
+ input: {
451
+ param: {
452
+ inviteLinkId: string;
453
+ orgId: string;
454
+ };
455
+ } & {
456
+ json: {
457
+ enabled: boolean;
458
+ };
459
+ };
460
+ } | {
461
+ output: {
462
+ error: {
463
+ code: "api_key_invalid" | "api_key_missing";
464
+ details?: readonly Response.error.Detail[] | undefined;
465
+ message: string;
466
+ };
467
+ requestId: string;
468
+ };
469
+ outputFormat: "json";
470
+ status: 401;
471
+ input: {
472
+ param: {
473
+ inviteLinkId: string;
474
+ orgId: string;
475
+ };
476
+ } & {
477
+ json: {
478
+ enabled: boolean;
479
+ };
480
+ };
481
+ } | {
482
+ output: {
483
+ error: {
484
+ code: "organization_not_found";
485
+ details?: readonly Response.error.Detail[] | undefined;
486
+ message: string;
487
+ };
488
+ requestId: string;
489
+ };
490
+ outputFormat: "json";
491
+ status: 404;
492
+ input: {
493
+ param: {
494
+ inviteLinkId: string;
495
+ orgId: string;
496
+ };
497
+ } & {
498
+ json: {
499
+ enabled: boolean;
500
+ };
501
+ };
502
+ } | {
503
+ output: {
504
+ error: {
505
+ code: "forbidden";
506
+ details?: readonly Response.error.Detail[] | undefined;
507
+ message: string;
508
+ };
509
+ requestId: string;
510
+ };
511
+ outputFormat: "json";
512
+ status: 403;
513
+ input: {
514
+ param: {
515
+ inviteLinkId: string;
516
+ orgId: string;
517
+ };
518
+ } & {
519
+ json: {
520
+ enabled: boolean;
521
+ };
522
+ };
523
+ } | {
524
+ output: {
525
+ error: {
526
+ code: "body_invalid";
527
+ details?: readonly Response.error.Detail[] | undefined;
528
+ message: string;
529
+ };
530
+ requestId: string;
531
+ };
532
+ outputFormat: "json";
533
+ status: 400;
534
+ input: {
535
+ param: {
536
+ inviteLinkId: string;
537
+ orgId: string;
538
+ };
539
+ } & {
540
+ json: {
541
+ enabled: boolean;
542
+ };
543
+ };
544
+ } | {
545
+ output: {
546
+ createdAt: string;
547
+ createdBy: string;
548
+ enabled: boolean;
549
+ expiresAt: string | null;
550
+ id: string;
551
+ lastUsedAt: string | null;
552
+ maxUses: number | null;
553
+ name: string;
554
+ orgId: string;
555
+ role: "member";
556
+ status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
557
+ token: string;
558
+ updatedAt: string;
559
+ useCount: number;
560
+ };
561
+ outputFormat: "json";
562
+ status: 200;
563
+ input: {
564
+ param: {
565
+ inviteLinkId: string;
566
+ orgId: string;
567
+ };
568
+ } & {
569
+ json: {
570
+ enabled: boolean;
571
+ };
572
+ };
573
+ } | {
574
+ output: {
575
+ error: {
576
+ code: "invite_link_not_found";
577
+ details?: readonly Response.error.Detail[] | undefined;
578
+ message: string;
579
+ };
580
+ requestId: string;
581
+ };
582
+ outputFormat: "json";
583
+ status: 404;
584
+ input: {
585
+ param: {
586
+ inviteLinkId: string;
587
+ orgId: string;
588
+ };
589
+ } & {
590
+ json: {
591
+ enabled: boolean;
592
+ };
593
+ };
594
+ };
595
+ };
596
+ } & {
597
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links/:inviteLinkId{iln_[A-Za-z0-9_-]+}": {
598
+ $delete: {
599
+ output: {
600
+ error: {
601
+ code: "upstream_error";
602
+ details?: readonly Response.error.Detail[] | undefined;
603
+ message: string;
604
+ };
605
+ requestId: string;
606
+ };
607
+ outputFormat: "json";
608
+ status: 502;
609
+ input: {
610
+ param: {
611
+ inviteLinkId: string;
612
+ orgId: string;
613
+ };
614
+ };
615
+ } | {
616
+ output: {
617
+ error: {
618
+ code: "api_key_malformed";
619
+ details?: readonly Response.error.Detail[] | undefined;
620
+ message: string;
621
+ };
622
+ requestId: string;
623
+ };
624
+ outputFormat: "json";
625
+ status: 400;
626
+ input: {
627
+ param: {
628
+ inviteLinkId: string;
629
+ orgId: string;
630
+ };
631
+ };
632
+ } | {
633
+ output: {
634
+ error: {
635
+ code: "api_key_invalid" | "api_key_missing";
636
+ details?: readonly Response.error.Detail[] | undefined;
637
+ message: string;
638
+ };
639
+ requestId: string;
640
+ };
641
+ outputFormat: "json";
642
+ status: 401;
643
+ input: {
644
+ param: {
645
+ inviteLinkId: string;
646
+ orgId: string;
647
+ };
648
+ };
649
+ } | {
650
+ output: {
651
+ error: {
652
+ code: "organization_not_found";
653
+ details?: readonly Response.error.Detail[] | undefined;
654
+ message: string;
655
+ };
656
+ requestId: string;
657
+ };
658
+ outputFormat: "json";
659
+ status: 404;
660
+ input: {
661
+ param: {
662
+ inviteLinkId: string;
663
+ orgId: string;
664
+ };
665
+ };
666
+ } | {
667
+ output: {
668
+ error: {
669
+ code: "forbidden";
670
+ details?: readonly Response.error.Detail[] | undefined;
671
+ message: string;
672
+ };
673
+ requestId: string;
674
+ };
675
+ outputFormat: "json";
676
+ status: 403;
677
+ input: {
678
+ param: {
679
+ inviteLinkId: string;
680
+ orgId: string;
681
+ };
682
+ };
683
+ } | {
684
+ output: {
685
+ error: {
686
+ code: "param_invalid";
687
+ details?: readonly Response.error.Detail[] | undefined;
688
+ message: string;
689
+ };
690
+ requestId: string;
691
+ };
692
+ outputFormat: "json";
693
+ status: 400;
694
+ input: {
695
+ param: {
696
+ inviteLinkId: string;
697
+ orgId: string;
698
+ };
699
+ };
700
+ } | {
701
+ output: {
702
+ error: {
703
+ code: "invite_link_not_found";
704
+ details?: readonly Response.error.Detail[] | undefined;
705
+ message: string;
706
+ };
707
+ requestId: string;
708
+ };
709
+ outputFormat: "json";
710
+ status: 404;
711
+ input: {
712
+ param: {
713
+ inviteLinkId: string;
714
+ orgId: string;
715
+ };
716
+ };
717
+ } | {
718
+ output: {
719
+ id: string;
720
+ };
721
+ outputFormat: "json";
722
+ status: 200;
723
+ input: {
724
+ param: {
725
+ inviteLinkId: string;
726
+ orgId: string;
727
+ };
728
+ };
729
+ };
730
+ };
731
+ } & {
732
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links/:inviteLinkId{iln_[A-Za-z0-9_-]+}/redemptions": {
733
+ $get: {
734
+ output: {
735
+ error: {
736
+ code: "upstream_error";
737
+ details?: readonly Response.error.Detail[] | undefined;
738
+ message: string;
739
+ };
740
+ requestId: string;
741
+ };
742
+ outputFormat: "json";
743
+ status: 502;
744
+ input: {
745
+ param: {
746
+ inviteLinkId: string;
747
+ orgId: string;
748
+ };
749
+ };
750
+ } | {
751
+ output: {
752
+ error: {
753
+ code: "api_key_malformed";
754
+ details?: readonly Response.error.Detail[] | undefined;
755
+ message: string;
756
+ };
757
+ requestId: string;
758
+ };
759
+ outputFormat: "json";
760
+ status: 400;
761
+ input: {
762
+ param: {
763
+ inviteLinkId: string;
764
+ orgId: string;
765
+ };
766
+ };
767
+ } | {
768
+ output: {
769
+ error: {
770
+ code: "api_key_invalid" | "api_key_missing";
771
+ details?: readonly Response.error.Detail[] | undefined;
772
+ message: string;
773
+ };
774
+ requestId: string;
775
+ };
776
+ outputFormat: "json";
777
+ status: 401;
778
+ input: {
779
+ param: {
780
+ inviteLinkId: string;
781
+ orgId: string;
782
+ };
783
+ };
784
+ } | {
785
+ output: {
786
+ error: {
787
+ code: "organization_not_found";
788
+ details?: readonly Response.error.Detail[] | undefined;
789
+ message: string;
790
+ };
791
+ requestId: string;
792
+ };
793
+ outputFormat: "json";
794
+ status: 404;
795
+ input: {
796
+ param: {
797
+ inviteLinkId: string;
798
+ orgId: string;
799
+ };
800
+ };
801
+ } | {
802
+ output: {
803
+ error: {
804
+ code: "forbidden";
805
+ details?: readonly Response.error.Detail[] | undefined;
806
+ message: string;
807
+ };
808
+ requestId: string;
809
+ };
810
+ outputFormat: "json";
811
+ status: 403;
812
+ input: {
813
+ param: {
814
+ inviteLinkId: string;
815
+ orgId: string;
816
+ };
817
+ };
818
+ } | {
819
+ output: {
820
+ error: {
821
+ code: "param_invalid";
822
+ details?: readonly Response.error.Detail[] | undefined;
823
+ message: string;
824
+ };
825
+ requestId: string;
826
+ };
827
+ outputFormat: "json";
828
+ status: 400;
829
+ input: {
830
+ param: {
831
+ inviteLinkId: string;
832
+ orgId: string;
833
+ };
834
+ };
835
+ } | {
836
+ output: {
837
+ error: {
838
+ code: "invite_link_not_found";
839
+ details?: readonly Response.error.Detail[] | undefined;
840
+ message: string;
841
+ };
842
+ requestId: string;
843
+ };
844
+ outputFormat: "json";
845
+ status: 404;
846
+ input: {
847
+ param: {
848
+ inviteLinkId: string;
849
+ orgId: string;
850
+ };
851
+ };
852
+ } | {
853
+ output: {
854
+ data: {
855
+ createdAt: string;
856
+ email: string;
857
+ id: string;
858
+ inviteLinkId: string;
859
+ inviteLinkName: string;
860
+ orgId: string;
861
+ userId: string;
862
+ }[];
863
+ };
864
+ outputFormat: "json";
865
+ status: 200;
866
+ input: {
867
+ param: {
868
+ inviteLinkId: string;
869
+ orgId: string;
870
+ };
871
+ };
872
+ };
873
+ };
874
+ } & {
875
+ "/v1/invite-links/resolve": {
876
+ $post: {
877
+ output: {
878
+ error: {
879
+ code: "upstream_error";
880
+ details?: readonly Response.error.Detail[] | undefined;
881
+ message: string;
882
+ };
883
+ requestId: string;
884
+ };
885
+ outputFormat: "json";
886
+ status: 502;
887
+ input: {
888
+ json: {
889
+ token: string;
890
+ };
891
+ };
892
+ } | {
893
+ output: {
894
+ error: {
895
+ code: "api_key_malformed";
896
+ details?: readonly Response.error.Detail[] | undefined;
897
+ message: string;
898
+ };
899
+ requestId: string;
900
+ };
901
+ outputFormat: "json";
902
+ status: 400;
903
+ input: {
904
+ json: {
905
+ token: string;
906
+ };
907
+ };
908
+ } | {
909
+ output: {
910
+ error: {
911
+ code: "api_key_invalid" | "api_key_missing";
912
+ details?: readonly Response.error.Detail[] | undefined;
913
+ message: string;
914
+ };
915
+ requestId: string;
916
+ };
917
+ outputFormat: "json";
918
+ status: 401;
919
+ input: {
920
+ json: {
921
+ token: string;
922
+ };
923
+ };
924
+ } | {
925
+ output: {
926
+ error: {
927
+ code: "forbidden";
928
+ details?: readonly Response.error.Detail[] | undefined;
929
+ message: string;
930
+ };
931
+ requestId: string;
932
+ };
933
+ outputFormat: "json";
934
+ status: 403;
935
+ input: {
936
+ json: {
937
+ token: string;
938
+ };
939
+ };
940
+ } | {
941
+ output: {
942
+ error: {
943
+ code: "body_invalid";
944
+ details?: readonly Response.error.Detail[] | undefined;
945
+ message: string;
946
+ };
947
+ requestId: string;
948
+ };
949
+ outputFormat: "json";
950
+ status: 400;
951
+ input: {
952
+ json: {
953
+ token: string;
954
+ };
955
+ };
956
+ } | {
957
+ output: {
958
+ error: {
959
+ code: "invite_link_not_found";
960
+ details?: readonly Response.error.Detail[] | undefined;
961
+ message: string;
962
+ };
963
+ requestId: string;
964
+ };
965
+ outputFormat: "json";
966
+ status: 404;
967
+ input: {
968
+ json: {
969
+ token: string;
970
+ };
971
+ };
972
+ } | {
973
+ output: {
974
+ orgName: string;
975
+ role: "member";
976
+ };
977
+ outputFormat: "json";
978
+ status: 200;
979
+ input: {
980
+ json: {
981
+ token: string;
982
+ };
983
+ };
984
+ };
985
+ };
986
+ } & {
987
+ "/v1/invite-links/accept": {
988
+ $post: {
989
+ output: {
990
+ error: {
991
+ code: "upstream_error";
992
+ details?: readonly Response.error.Detail[] | undefined;
993
+ message: string;
994
+ };
995
+ requestId: string;
996
+ };
997
+ outputFormat: "json";
998
+ status: 502;
999
+ input: {
1000
+ json: {
1001
+ token: string;
1002
+ };
1003
+ };
1004
+ } | {
1005
+ output: {
1006
+ error: {
1007
+ code: "api_key_malformed";
1008
+ details?: readonly Response.error.Detail[] | undefined;
1009
+ message: string;
1010
+ };
1011
+ requestId: string;
1012
+ };
1013
+ outputFormat: "json";
1014
+ status: 400;
1015
+ input: {
1016
+ json: {
1017
+ token: string;
1018
+ };
1019
+ };
1020
+ } | {
1021
+ output: {
1022
+ error: {
1023
+ code: "api_key_invalid" | "api_key_missing";
1024
+ details?: readonly Response.error.Detail[] | undefined;
1025
+ message: string;
1026
+ };
1027
+ requestId: string;
1028
+ };
1029
+ outputFormat: "json";
1030
+ status: 401;
1031
+ input: {
1032
+ json: {
1033
+ token: string;
1034
+ };
1035
+ };
1036
+ } | {
1037
+ output: {
1038
+ error: {
1039
+ code: "forbidden";
1040
+ details?: readonly Response.error.Detail[] | undefined;
1041
+ message: string;
1042
+ };
1043
+ requestId: string;
1044
+ };
1045
+ outputFormat: "json";
1046
+ status: 403;
1047
+ input: {
1048
+ json: {
1049
+ token: string;
1050
+ };
1051
+ };
1052
+ } | {
1053
+ output: {
1054
+ error: {
1055
+ code: "body_invalid";
1056
+ details?: readonly Response.error.Detail[] | undefined;
1057
+ message: string;
1058
+ };
1059
+ requestId: string;
1060
+ };
1061
+ outputFormat: "json";
1062
+ status: 400;
1063
+ input: {
1064
+ json: {
1065
+ token: string;
1066
+ };
1067
+ };
1068
+ } | {
1069
+ output: {
1070
+ error: {
1071
+ code: "invite_link_not_found";
1072
+ details?: readonly Response.error.Detail[] | undefined;
1073
+ message: string;
1074
+ };
1075
+ requestId: string;
1076
+ };
1077
+ outputFormat: "json";
1078
+ status: 404;
1079
+ input: {
1080
+ json: {
1081
+ token: string;
1082
+ };
1083
+ };
1084
+ } | {
1085
+ output: {
1086
+ orgId: string;
1087
+ role: "member";
1088
+ userId: string;
1089
+ };
1090
+ outputFormat: "json";
1091
+ status: 200;
1092
+ input: {
1093
+ json: {
1094
+ token: string;
1095
+ };
1096
+ };
1097
+ };
1098
+ };
1099
+ }, "/", "/v1/invite-links/accept">;
1100
+ //# sourceMappingURL=invite-links.d.ts.map