@multisender.app/multisender-sdk 0.0.1
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/LICENSE +21 -0
- package/README.md +410 -0
- package/dist/auth/api-key.d.ts +8 -0
- package/dist/auth/api-key.d.ts.map +1 -0
- package/dist/cli/commands/distribute.d.ts +3 -0
- package/dist/cli/commands/distribute.d.ts.map +1 -0
- package/dist/cli/commands/distributions.d.ts +3 -0
- package/dist/cli/commands/distributions.d.ts.map +1 -0
- package/dist/cli/commands/lists.d.ts +3 -0
- package/dist/cli/commands/lists.d.ts.map +1 -0
- package/dist/cli/index.cjs +4507 -0
- package/dist/cli/index.cjs.map +46 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +4514 -0
- package/dist/cli/index.js.map +46 -0
- package/dist/core/errors.d.ts +20 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/generated-transport.d.ts +3 -0
- package/dist/core/generated-transport.d.ts.map +1 -0
- package/dist/core/pagination.d.ts +4 -0
- package/dist/core/pagination.d.ts.map +1 -0
- package/dist/core/types.d.ts +19 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/gen/client/client.gen.d.ts +3 -0
- package/dist/gen/client/client.gen.d.ts.map +1 -0
- package/dist/gen/client/index.d.ts +9 -0
- package/dist/gen/client/index.d.ts.map +1 -0
- package/dist/gen/client/types.gen.d.ts +118 -0
- package/dist/gen/client/types.gen.d.ts.map +1 -0
- package/dist/gen/client/utils.gen.d.ts +34 -0
- package/dist/gen/client/utils.gen.d.ts.map +1 -0
- package/dist/gen/client.gen.d.ts +13 -0
- package/dist/gen/client.gen.d.ts.map +1 -0
- package/dist/gen/core/auth.gen.d.ts +19 -0
- package/dist/gen/core/auth.gen.d.ts.map +1 -0
- package/dist/gen/core/bodySerializer.gen.d.ts +26 -0
- package/dist/gen/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/gen/core/params.gen.d.ts +44 -0
- package/dist/gen/core/params.gen.d.ts.map +1 -0
- package/dist/gen/core/pathSerializer.gen.d.ts +34 -0
- package/dist/gen/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/gen/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/gen/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/gen/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/gen/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/gen/core/types.gen.d.ts +79 -0
- package/dist/gen/core/types.gen.d.ts.map +1 -0
- package/dist/gen/core/utils.gen.d.ts +20 -0
- package/dist/gen/core/utils.gen.d.ts.map +1 -0
- package/dist/gen/index.d.ts +3 -0
- package/dist/gen/index.d.ts.map +1 -0
- package/dist/gen/sdk.gen.d.ts +168 -0
- package/dist/gen/sdk.gen.d.ts.map +1 -0
- package/dist/gen/types.gen.d.ts +2501 -0
- package/dist/gen/types.gen.d.ts.map +1 -0
- package/dist/index.cjs +1648 -0
- package/dist/index.cjs.map +31 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1651 -0
- package/dist/index.js.map +31 -0
- package/dist/multisender.d.ts +46 -0
- package/dist/multisender.d.ts.map +1 -0
- package/dist/openapi-runtime.d.ts +10 -0
- package/dist/openapi-runtime.d.ts.map +1 -0
- package/dist/services/catalogs.d.ts +15 -0
- package/dist/services/catalogs.d.ts.map +1 -0
- package/dist/services/distributions.d.ts +17 -0
- package/dist/services/distributions.d.ts.map +1 -0
- package/dist/services/lists.d.ts +36 -0
- package/dist/services/lists.d.ts.map +1 -0
- package/dist/services/project.d.ts +19 -0
- package/dist/services/project.d.ts.map +1 -0
- package/dist/services/response-utils.d.ts +9 -0
- package/dist/services/response-utils.d.ts.map +1 -0
- package/dist/services/types.d.ts +33 -0
- package/dist/services/types.d.ts.map +1 -0
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/csv.d.ts +9 -0
- package/dist/utils/csv.d.ts.map +1 -0
- package/dist/utils/validation.d.ts +7 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,2501 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
};
|
|
4
|
+
export type ApiErrorDto = {
|
|
5
|
+
/**
|
|
6
|
+
* HTTP status code
|
|
7
|
+
*/
|
|
8
|
+
statusCode: number;
|
|
9
|
+
/**
|
|
10
|
+
* ISO timestamp
|
|
11
|
+
*/
|
|
12
|
+
timestamp: string;
|
|
13
|
+
/**
|
|
14
|
+
* Request path
|
|
15
|
+
*/
|
|
16
|
+
path: string;
|
|
17
|
+
/**
|
|
18
|
+
* HTTP method
|
|
19
|
+
*/
|
|
20
|
+
method: string;
|
|
21
|
+
/**
|
|
22
|
+
* Error name/type
|
|
23
|
+
*/
|
|
24
|
+
error: string;
|
|
25
|
+
/**
|
|
26
|
+
* Human-readable message
|
|
27
|
+
*/
|
|
28
|
+
message: string;
|
|
29
|
+
/**
|
|
30
|
+
* Additional error context from upstream services
|
|
31
|
+
*/
|
|
32
|
+
meta?: {
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export type ApiSuccessEnvelopeDto = {
|
|
37
|
+
success: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* ISO timestamp
|
|
40
|
+
*/
|
|
41
|
+
timestamp: string;
|
|
42
|
+
/**
|
|
43
|
+
* Response payload (shape varies by endpoint)
|
|
44
|
+
*/
|
|
45
|
+
data: {
|
|
46
|
+
[key: string]: unknown;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export type ClientProjectMemberUserResponseDto = {
|
|
50
|
+
/**
|
|
51
|
+
* User ID
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* User email
|
|
56
|
+
*/
|
|
57
|
+
email?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* User display name
|
|
60
|
+
*/
|
|
61
|
+
displayName?: string | null;
|
|
62
|
+
};
|
|
63
|
+
export type ClientProjectMemberResponseDto = {
|
|
64
|
+
/**
|
|
65
|
+
* Membership ID
|
|
66
|
+
*/
|
|
67
|
+
id: string;
|
|
68
|
+
/**
|
|
69
|
+
* Project ID
|
|
70
|
+
*/
|
|
71
|
+
projectId: string;
|
|
72
|
+
/**
|
|
73
|
+
* User ID
|
|
74
|
+
*/
|
|
75
|
+
userId: string;
|
|
76
|
+
/**
|
|
77
|
+
* Project role
|
|
78
|
+
*/
|
|
79
|
+
role: 'OWNER' | 'ADMIN' | 'MANAGER' | 'VIEWER';
|
|
80
|
+
/**
|
|
81
|
+
* Membership created at
|
|
82
|
+
*/
|
|
83
|
+
createdAt: string;
|
|
84
|
+
/**
|
|
85
|
+
* Related user
|
|
86
|
+
*/
|
|
87
|
+
user: ClientProjectMemberUserResponseDto;
|
|
88
|
+
};
|
|
89
|
+
export type ClientProjectApiKeyResponseDto = {
|
|
90
|
+
/**
|
|
91
|
+
* API key ID
|
|
92
|
+
*/
|
|
93
|
+
id: string;
|
|
94
|
+
/**
|
|
95
|
+
* Project ID
|
|
96
|
+
*/
|
|
97
|
+
projectId: string;
|
|
98
|
+
/**
|
|
99
|
+
* API key name
|
|
100
|
+
*/
|
|
101
|
+
name: string;
|
|
102
|
+
/**
|
|
103
|
+
* Allowed API scopes
|
|
104
|
+
*/
|
|
105
|
+
scopes: Array<string>;
|
|
106
|
+
/**
|
|
107
|
+
* API key status
|
|
108
|
+
*/
|
|
109
|
+
status: 'ACTIVE' | 'INACTIVE';
|
|
110
|
+
/**
|
|
111
|
+
* Last API key usage date
|
|
112
|
+
*/
|
|
113
|
+
lastUsedAt?: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* Total usage count
|
|
116
|
+
*/
|
|
117
|
+
usageCount: number;
|
|
118
|
+
/**
|
|
119
|
+
* API key created at
|
|
120
|
+
*/
|
|
121
|
+
createdAt: string;
|
|
122
|
+
/**
|
|
123
|
+
* API key updated at
|
|
124
|
+
*/
|
|
125
|
+
updatedAt: string;
|
|
126
|
+
};
|
|
127
|
+
export type ClientProjectInfoResponseDto = {
|
|
128
|
+
/**
|
|
129
|
+
* Project ID
|
|
130
|
+
*/
|
|
131
|
+
id: string;
|
|
132
|
+
/**
|
|
133
|
+
* Project name
|
|
134
|
+
*/
|
|
135
|
+
name: string;
|
|
136
|
+
/**
|
|
137
|
+
* Project slug
|
|
138
|
+
*/
|
|
139
|
+
slug: string;
|
|
140
|
+
/**
|
|
141
|
+
* Project description
|
|
142
|
+
*/
|
|
143
|
+
description?: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* Default project flag
|
|
146
|
+
*/
|
|
147
|
+
isDefault: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Owner user ID
|
|
150
|
+
*/
|
|
151
|
+
userId?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* Project created at
|
|
154
|
+
*/
|
|
155
|
+
createdAt: string;
|
|
156
|
+
/**
|
|
157
|
+
* Project updated at
|
|
158
|
+
*/
|
|
159
|
+
updatedAt: string;
|
|
160
|
+
/**
|
|
161
|
+
* Project memberships
|
|
162
|
+
*/
|
|
163
|
+
memberships: Array<ClientProjectMemberResponseDto>;
|
|
164
|
+
/**
|
|
165
|
+
* Project API keys
|
|
166
|
+
*/
|
|
167
|
+
apiKeys: Array<ClientProjectApiKeyResponseDto>;
|
|
168
|
+
};
|
|
169
|
+
export type ClientCreateProjectApiKeyResponseDto = {
|
|
170
|
+
/**
|
|
171
|
+
* Generated raw API key
|
|
172
|
+
*/
|
|
173
|
+
apiKey: string;
|
|
174
|
+
/**
|
|
175
|
+
* Created API key entity
|
|
176
|
+
*/
|
|
177
|
+
apiKeyEntity: ClientProjectApiKeyResponseDto;
|
|
178
|
+
};
|
|
179
|
+
export type CreateApiKeyDto = {
|
|
180
|
+
/**
|
|
181
|
+
* API key name for identification
|
|
182
|
+
*/
|
|
183
|
+
name: string;
|
|
184
|
+
/**
|
|
185
|
+
* List of scopes/permissions for the API key
|
|
186
|
+
*/
|
|
187
|
+
scopes: Array<string>;
|
|
188
|
+
};
|
|
189
|
+
export type UpdateApiKeyDto = {
|
|
190
|
+
/**
|
|
191
|
+
* API key name for identification
|
|
192
|
+
*/
|
|
193
|
+
name?: string;
|
|
194
|
+
/**
|
|
195
|
+
* List of scopes/permissions for the API key
|
|
196
|
+
*/
|
|
197
|
+
scopes?: Array<string>;
|
|
198
|
+
};
|
|
199
|
+
export type ClientDeleteProjectApiKeyResponseDto = {
|
|
200
|
+
/**
|
|
201
|
+
* Delete operation result
|
|
202
|
+
*/
|
|
203
|
+
message: string;
|
|
204
|
+
};
|
|
205
|
+
export type ClientRecipientListResponseDto = {
|
|
206
|
+
id: string;
|
|
207
|
+
projectId: string;
|
|
208
|
+
name: string;
|
|
209
|
+
notes?: string | null;
|
|
210
|
+
totalItems: number;
|
|
211
|
+
createdBy?: string | null;
|
|
212
|
+
createdByApiKeyId?: string | null;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt: string;
|
|
215
|
+
};
|
|
216
|
+
export type CreateRecipientListDto = {
|
|
217
|
+
/**
|
|
218
|
+
* Name of the recipient list
|
|
219
|
+
*/
|
|
220
|
+
name: string;
|
|
221
|
+
/**
|
|
222
|
+
* Optional notes about the recipient list
|
|
223
|
+
*/
|
|
224
|
+
notes?: string;
|
|
225
|
+
};
|
|
226
|
+
export type UpdateRecipientListDto = {
|
|
227
|
+
[key: string]: unknown;
|
|
228
|
+
};
|
|
229
|
+
export type MessageDataDto = {
|
|
230
|
+
message: string;
|
|
231
|
+
};
|
|
232
|
+
export type ClientRecipientResponseDto = {
|
|
233
|
+
id: string;
|
|
234
|
+
address: string;
|
|
235
|
+
addressType: 'EVM' | 'SOLANA' | 'TRON' | 'MOVE_EVM' | 'TON';
|
|
236
|
+
label?: string | null;
|
|
237
|
+
metadata?: {
|
|
238
|
+
[key: string]: unknown;
|
|
239
|
+
} | null;
|
|
240
|
+
createdAt: string;
|
|
241
|
+
};
|
|
242
|
+
export type ClientListItemResponseDto = {
|
|
243
|
+
id: string;
|
|
244
|
+
listId: string;
|
|
245
|
+
recipientId: string;
|
|
246
|
+
tags: Array<string>;
|
|
247
|
+
amount?: string | null;
|
|
248
|
+
createdAt: string;
|
|
249
|
+
recipient?: ClientRecipientResponseDto | null;
|
|
250
|
+
};
|
|
251
|
+
export type ClientAddRecipientResponseDto = {
|
|
252
|
+
recipient: ClientRecipientResponseDto;
|
|
253
|
+
listItem: ClientListItemResponseDto;
|
|
254
|
+
};
|
|
255
|
+
export type AddRecipientDto = {
|
|
256
|
+
/**
|
|
257
|
+
* Wallet address or ENS name (e.g. vitalik.eth). For EVM, ENS names are resolved to addresses.
|
|
258
|
+
*/
|
|
259
|
+
address: string;
|
|
260
|
+
/**
|
|
261
|
+
* Address type (blockchain format)
|
|
262
|
+
*/
|
|
263
|
+
addressType: 'EVM' | 'SOLANA' | 'TRON' | 'MOVE_EVM' | 'TON';
|
|
264
|
+
/**
|
|
265
|
+
* Token amount in human-readable units (e.g. "10.5"). Required when list is used for distributions.
|
|
266
|
+
*/
|
|
267
|
+
amount?: string;
|
|
268
|
+
/**
|
|
269
|
+
* Optional label for the recipient
|
|
270
|
+
*/
|
|
271
|
+
label?: string;
|
|
272
|
+
/**
|
|
273
|
+
* Optional metadata for the recipient
|
|
274
|
+
*/
|
|
275
|
+
metadata?: {
|
|
276
|
+
[key: string]: unknown;
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* Optional tags for categorization
|
|
280
|
+
*/
|
|
281
|
+
tags?: Array<string>;
|
|
282
|
+
};
|
|
283
|
+
export type ClientBulkAddRecipientsResponseDto = {
|
|
284
|
+
/**
|
|
285
|
+
* Number of recipients added
|
|
286
|
+
*/
|
|
287
|
+
added: number;
|
|
288
|
+
/**
|
|
289
|
+
* Addresses skipped as duplicates (already in list)
|
|
290
|
+
*/
|
|
291
|
+
skippedAddresses: Array<string>;
|
|
292
|
+
/**
|
|
293
|
+
* Error messages for failed rows
|
|
294
|
+
*/
|
|
295
|
+
errors: Array<string>;
|
|
296
|
+
};
|
|
297
|
+
export type AddRecipientsBulkDto = {
|
|
298
|
+
/**
|
|
299
|
+
* Array of recipients to add
|
|
300
|
+
*/
|
|
301
|
+
items: Array<AddRecipientDto>;
|
|
302
|
+
};
|
|
303
|
+
export type ImportListFailedRowDto = {
|
|
304
|
+
/**
|
|
305
|
+
* CSV row number (1-based)
|
|
306
|
+
*/
|
|
307
|
+
row: number;
|
|
308
|
+
/**
|
|
309
|
+
* Address if available
|
|
310
|
+
*/
|
|
311
|
+
address?: string;
|
|
312
|
+
/**
|
|
313
|
+
* Failure reason
|
|
314
|
+
*/
|
|
315
|
+
reason: 'invalid_chainId' | 'invalid_address' | 'metadata_too_long' | 'invalid_metadata_json' | 'unknown_error';
|
|
316
|
+
};
|
|
317
|
+
export type ImportListResponseDto = {
|
|
318
|
+
/**
|
|
319
|
+
* Actually imported (new list items)
|
|
320
|
+
*/
|
|
321
|
+
added: number;
|
|
322
|
+
/**
|
|
323
|
+
* Addresses skipped as duplicates (in file or already in list)
|
|
324
|
+
*/
|
|
325
|
+
skippedAddresses: Array<string>;
|
|
326
|
+
/**
|
|
327
|
+
* Total recipients in list after import
|
|
328
|
+
*/
|
|
329
|
+
totalItems: number;
|
|
330
|
+
/**
|
|
331
|
+
* Total rows that failed validation/processing
|
|
332
|
+
*/
|
|
333
|
+
totalFailed: number;
|
|
334
|
+
/**
|
|
335
|
+
* Sample of failed rows (first 100)
|
|
336
|
+
*/
|
|
337
|
+
failed: Array<ImportListFailedRowDto>;
|
|
338
|
+
};
|
|
339
|
+
export type ClientDistributionListCreateResponseDto = {
|
|
340
|
+
list: ClientRecipientListResponseDto;
|
|
341
|
+
/**
|
|
342
|
+
* Number of recipients added
|
|
343
|
+
*/
|
|
344
|
+
added: number;
|
|
345
|
+
/**
|
|
346
|
+
* Validation/import errors
|
|
347
|
+
*/
|
|
348
|
+
errors: Array<string>;
|
|
349
|
+
};
|
|
350
|
+
export type DistributionRecipientDto = {
|
|
351
|
+
/**
|
|
352
|
+
* Wallet address of the recipient
|
|
353
|
+
*/
|
|
354
|
+
address: string;
|
|
355
|
+
/**
|
|
356
|
+
* Amount to distribute (in wei or token units)
|
|
357
|
+
*/
|
|
358
|
+
amount: string;
|
|
359
|
+
/**
|
|
360
|
+
* Optional label for the recipient
|
|
361
|
+
*/
|
|
362
|
+
label?: string;
|
|
363
|
+
/**
|
|
364
|
+
* Optional tags for categorization
|
|
365
|
+
*/
|
|
366
|
+
tags?: Array<string>;
|
|
367
|
+
};
|
|
368
|
+
export type CreateDistributionListDto = {
|
|
369
|
+
/**
|
|
370
|
+
* Name of the distribution list
|
|
371
|
+
*/
|
|
372
|
+
name: string;
|
|
373
|
+
/**
|
|
374
|
+
* Optional notes about the distribution
|
|
375
|
+
*/
|
|
376
|
+
notes?: string;
|
|
377
|
+
/**
|
|
378
|
+
* List of recipients for the distribution
|
|
379
|
+
*/
|
|
380
|
+
recipients: Array<DistributionRecipientDto>;
|
|
381
|
+
};
|
|
382
|
+
export type ImportCsvDistributionDto = {
|
|
383
|
+
/**
|
|
384
|
+
* Name of the distribution list
|
|
385
|
+
*/
|
|
386
|
+
name: string;
|
|
387
|
+
/**
|
|
388
|
+
* Optional notes about the distribution
|
|
389
|
+
*/
|
|
390
|
+
notes?: string;
|
|
391
|
+
/**
|
|
392
|
+
* CSV data as string
|
|
393
|
+
*/
|
|
394
|
+
csvData: string;
|
|
395
|
+
/**
|
|
396
|
+
* CSV delimiter character
|
|
397
|
+
*/
|
|
398
|
+
delimiter?: string;
|
|
399
|
+
/**
|
|
400
|
+
* Number of rows to skip from the beginning
|
|
401
|
+
*/
|
|
402
|
+
skipRows?: number;
|
|
403
|
+
/**
|
|
404
|
+
* Whether the CSV has a header row
|
|
405
|
+
*/
|
|
406
|
+
hasHeader?: boolean;
|
|
407
|
+
};
|
|
408
|
+
export type ClientDistributionResponseDto = {
|
|
409
|
+
id: string;
|
|
410
|
+
projectId: string;
|
|
411
|
+
listId?: string | null;
|
|
412
|
+
name: string;
|
|
413
|
+
notes?: string | null;
|
|
414
|
+
chainId: number;
|
|
415
|
+
tokenAddress: string;
|
|
416
|
+
tokenSymbol: string;
|
|
417
|
+
status: 'DRAFT' | 'PREPARED' | 'PENDING' | 'IN_PROGRESS' | 'COMPLETED' | 'PARTIALLY_COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
418
|
+
totalRecipients?: number | null;
|
|
419
|
+
totalAmount?: string | null;
|
|
420
|
+
approximateTxCost?: string | null;
|
|
421
|
+
customerFee?: string | null;
|
|
422
|
+
networkFee?: string | null;
|
|
423
|
+
totalInUSDT?: string | null;
|
|
424
|
+
account?: string | null;
|
|
425
|
+
idempotencyKey?: string | null;
|
|
426
|
+
createdBy?: string | null;
|
|
427
|
+
createdByApiKeyId?: string | null;
|
|
428
|
+
createdAt: string;
|
|
429
|
+
updatedAt: string;
|
|
430
|
+
executedAt?: string | null;
|
|
431
|
+
completedAt?: string | null;
|
|
432
|
+
};
|
|
433
|
+
export type ClientTransactionCalldataDto = {
|
|
434
|
+
to: string;
|
|
435
|
+
data: string;
|
|
436
|
+
value: string;
|
|
437
|
+
gasLimit: string;
|
|
438
|
+
recipientAddress?: string;
|
|
439
|
+
amount?: string;
|
|
440
|
+
};
|
|
441
|
+
export type ClientCalldataSummaryDto = {
|
|
442
|
+
totalRecipients: number;
|
|
443
|
+
totalAmount: string;
|
|
444
|
+
estimatedGas: string;
|
|
445
|
+
estimatedCost: string;
|
|
446
|
+
};
|
|
447
|
+
export type ClientCalldataResponseDto = {
|
|
448
|
+
transactions: Array<ClientTransactionCalldataDto>;
|
|
449
|
+
summary: ClientCalldataSummaryDto;
|
|
450
|
+
};
|
|
451
|
+
export type ClientDistributeResponseDto = {
|
|
452
|
+
distribution: ClientDistributionResponseDto;
|
|
453
|
+
calldata: ClientCalldataResponseDto;
|
|
454
|
+
};
|
|
455
|
+
export type BadAddressItemDto = {
|
|
456
|
+
/**
|
|
457
|
+
* Ethereum address rejected by chain
|
|
458
|
+
*/
|
|
459
|
+
address: string;
|
|
460
|
+
/**
|
|
461
|
+
* Reason the address was rejected
|
|
462
|
+
*/
|
|
463
|
+
reason: string;
|
|
464
|
+
};
|
|
465
|
+
export type PrepareBadRequestResponseDto = {
|
|
466
|
+
/**
|
|
467
|
+
* HTTP status code
|
|
468
|
+
*/
|
|
469
|
+
statusCode: number;
|
|
470
|
+
/**
|
|
471
|
+
* ISO timestamp
|
|
472
|
+
*/
|
|
473
|
+
timestamp: string;
|
|
474
|
+
/**
|
|
475
|
+
* Request path
|
|
476
|
+
*/
|
|
477
|
+
path: string;
|
|
478
|
+
/**
|
|
479
|
+
* HTTP method
|
|
480
|
+
*/
|
|
481
|
+
method: string;
|
|
482
|
+
/**
|
|
483
|
+
* Error name/type
|
|
484
|
+
*/
|
|
485
|
+
error: string;
|
|
486
|
+
/**
|
|
487
|
+
* Human-readable message: "Onchain validation failed; invalid addresses" when badAddresses present, else "Onchain validation failed; no batches generated"
|
|
488
|
+
*/
|
|
489
|
+
message: string;
|
|
490
|
+
/**
|
|
491
|
+
* Addresses rejected by chain (present when external API returns empty batches with badAddresses)
|
|
492
|
+
*/
|
|
493
|
+
badAddresses?: Array<BadAddressItemDto>;
|
|
494
|
+
/**
|
|
495
|
+
* Additional error context from upstream services
|
|
496
|
+
*/
|
|
497
|
+
meta?: {
|
|
498
|
+
[key: string]: unknown;
|
|
499
|
+
};
|
|
500
|
+
};
|
|
501
|
+
export type CreateDistributeDto = {
|
|
502
|
+
/**
|
|
503
|
+
* Array of recipient tuples [address, amount]
|
|
504
|
+
*/
|
|
505
|
+
recipients?: Array<Array<string>>;
|
|
506
|
+
/**
|
|
507
|
+
* CSV string with recipients (format: address,amount per line)
|
|
508
|
+
*/
|
|
509
|
+
csv?: string;
|
|
510
|
+
/**
|
|
511
|
+
* Blockchain chain ID (1=Ethereum, 10=Optimism, 8453=Base, 137=Polygon, 42161=Arbitrum, 11155111=Sepolia)
|
|
512
|
+
*/
|
|
513
|
+
chainId: number;
|
|
514
|
+
/**
|
|
515
|
+
* Token contract address
|
|
516
|
+
*/
|
|
517
|
+
tokenAddress: string;
|
|
518
|
+
/**
|
|
519
|
+
* Token symbol
|
|
520
|
+
*/
|
|
521
|
+
tokenSymbol: string;
|
|
522
|
+
/**
|
|
523
|
+
* Sender wallet address (optional)
|
|
524
|
+
*/
|
|
525
|
+
account?: string;
|
|
526
|
+
/**
|
|
527
|
+
* Idempotency key to prevent duplicate distributions (optional)
|
|
528
|
+
*/
|
|
529
|
+
idempotencyKey?: string;
|
|
530
|
+
};
|
|
531
|
+
export type RecipientDto = {
|
|
532
|
+
address: string;
|
|
533
|
+
amount: string;
|
|
534
|
+
label?: string;
|
|
535
|
+
tags?: Array<string>;
|
|
536
|
+
};
|
|
537
|
+
export type CreateDistributionDto = {
|
|
538
|
+
name: string;
|
|
539
|
+
notes?: string;
|
|
540
|
+
/**
|
|
541
|
+
* Chain ID (1 for Ethereum mainnet)
|
|
542
|
+
*/
|
|
543
|
+
chainId: number;
|
|
544
|
+
/**
|
|
545
|
+
* Token contract address
|
|
546
|
+
*/
|
|
547
|
+
tokenAddress: string;
|
|
548
|
+
tokenSymbol: string;
|
|
549
|
+
/**
|
|
550
|
+
* Recipient list ID to use. Mutually exclusive with recipients by key presence.
|
|
551
|
+
*/
|
|
552
|
+
listId?: string;
|
|
553
|
+
/**
|
|
554
|
+
* Direct recipients array. Mutually exclusive with listId by key presence (even [] or null).
|
|
555
|
+
*/
|
|
556
|
+
recipients?: Array<RecipientDto>;
|
|
557
|
+
/**
|
|
558
|
+
* Wallet address executing the distribution
|
|
559
|
+
*/
|
|
560
|
+
account?: string;
|
|
561
|
+
isDeflationary?: boolean;
|
|
562
|
+
strategy?: string;
|
|
563
|
+
/**
|
|
564
|
+
* Idempotency key to prevent duplicate distributions
|
|
565
|
+
*/
|
|
566
|
+
idempotencyKey?: string;
|
|
567
|
+
};
|
|
568
|
+
export type UpdateDistributionDto = {
|
|
569
|
+
name?: string;
|
|
570
|
+
notes?: string;
|
|
571
|
+
/**
|
|
572
|
+
* Chain ID (1 for Ethereum mainnet)
|
|
573
|
+
*/
|
|
574
|
+
chainId?: number;
|
|
575
|
+
/**
|
|
576
|
+
* Token contract address
|
|
577
|
+
*/
|
|
578
|
+
tokenAddress?: string;
|
|
579
|
+
tokenSymbol?: string;
|
|
580
|
+
/**
|
|
581
|
+
* Wallet address executing the distribution
|
|
582
|
+
*/
|
|
583
|
+
account?: string;
|
|
584
|
+
isDeflationary?: boolean;
|
|
585
|
+
strategy?: string;
|
|
586
|
+
};
|
|
587
|
+
export type UpdateRecipientsDto = {
|
|
588
|
+
/**
|
|
589
|
+
* Full replacement array of recipients. Overwrites existing recipients (DRAFT only).
|
|
590
|
+
*/
|
|
591
|
+
recipients: Array<RecipientDto>;
|
|
592
|
+
};
|
|
593
|
+
export type PrepareTransactionsDto = {
|
|
594
|
+
/**
|
|
595
|
+
* Wallet address that will execute transactions
|
|
596
|
+
*/
|
|
597
|
+
account?: string;
|
|
598
|
+
/**
|
|
599
|
+
* Custom RPC URL
|
|
600
|
+
*/
|
|
601
|
+
rpcUrl?: string;
|
|
602
|
+
};
|
|
603
|
+
export type ClientDistributionTransactionResponseDto = {
|
|
604
|
+
id: string;
|
|
605
|
+
distributionId: string;
|
|
606
|
+
batchIndex: number;
|
|
607
|
+
contractAddress?: string | null;
|
|
608
|
+
value?: string | null;
|
|
609
|
+
recipientCount?: number | null;
|
|
610
|
+
txHash?: string | null;
|
|
611
|
+
status: 'PENDING' | 'SUBMITTED' | 'CONFIRMED' | 'FAILED';
|
|
612
|
+
submittedAt?: string | null;
|
|
613
|
+
confirmedAt?: string | null;
|
|
614
|
+
};
|
|
615
|
+
export type ClientDistributionStatsDto = {
|
|
616
|
+
total: number;
|
|
617
|
+
pending: number;
|
|
618
|
+
submitted: number;
|
|
619
|
+
confirmed: number;
|
|
620
|
+
failed: number;
|
|
621
|
+
};
|
|
622
|
+
export type ApproveCalldataResponseDto = {
|
|
623
|
+
/**
|
|
624
|
+
* Target contract address (token address)
|
|
625
|
+
*/
|
|
626
|
+
to: string;
|
|
627
|
+
/**
|
|
628
|
+
* Encoded calldata for approve(address,uint256)
|
|
629
|
+
*/
|
|
630
|
+
data: string;
|
|
631
|
+
/**
|
|
632
|
+
* Native value to send (always 0x0)
|
|
633
|
+
*/
|
|
634
|
+
value: string;
|
|
635
|
+
/**
|
|
636
|
+
* Spender address (Multisender contract)
|
|
637
|
+
*/
|
|
638
|
+
spender: string;
|
|
639
|
+
/**
|
|
640
|
+
* Amount in wei
|
|
641
|
+
*/
|
|
642
|
+
amount: string;
|
|
643
|
+
};
|
|
644
|
+
export type GetApproveCalldataDto = {
|
|
645
|
+
/**
|
|
646
|
+
* Blockchain chain ID
|
|
647
|
+
*/
|
|
648
|
+
chainId: number;
|
|
649
|
+
/**
|
|
650
|
+
* Token contract address
|
|
651
|
+
*/
|
|
652
|
+
tokenAddress: string;
|
|
653
|
+
/**
|
|
654
|
+
* Amount to approve in wei (integer string, no decimals) or literal "max"
|
|
655
|
+
*/
|
|
656
|
+
amount: string;
|
|
657
|
+
};
|
|
658
|
+
export type ClientChainDto = {
|
|
659
|
+
chainId: number;
|
|
660
|
+
name: string;
|
|
661
|
+
addressType: 'EVM' | 'SOLANA' | 'TRON' | 'MOVE_EVM' | 'TON';
|
|
662
|
+
rpcUrl: string;
|
|
663
|
+
explorerUrl: string;
|
|
664
|
+
nativeSymbol: string;
|
|
665
|
+
multisenderContractAddress?: string | null;
|
|
666
|
+
changeReceiverContractAddress?: string | null;
|
|
667
|
+
blockGasLimit?: number | null;
|
|
668
|
+
logoUri?: string | null;
|
|
669
|
+
rpcUrls?: Array<string> | null;
|
|
670
|
+
isSupportEstimateFees?: boolean;
|
|
671
|
+
createdAt: string;
|
|
672
|
+
updatedAt: string;
|
|
673
|
+
};
|
|
674
|
+
export type ClientTokenDto = {
|
|
675
|
+
id: string;
|
|
676
|
+
chainId: number;
|
|
677
|
+
address: string;
|
|
678
|
+
symbol: string;
|
|
679
|
+
decimals: number;
|
|
680
|
+
name: string;
|
|
681
|
+
logoUri?: string | null;
|
|
682
|
+
createdAt: string;
|
|
683
|
+
updatedAt: string;
|
|
684
|
+
};
|
|
685
|
+
export type GetProjectInfoData = {
|
|
686
|
+
body?: never;
|
|
687
|
+
headers: {
|
|
688
|
+
/**
|
|
689
|
+
* API Key for authentication
|
|
690
|
+
*/
|
|
691
|
+
'X-API-Key': string;
|
|
692
|
+
};
|
|
693
|
+
path?: never;
|
|
694
|
+
query?: never;
|
|
695
|
+
url: '/api/v1/project';
|
|
696
|
+
};
|
|
697
|
+
export type GetProjectInfoErrors = {
|
|
698
|
+
/**
|
|
699
|
+
* Bad request / validation error
|
|
700
|
+
*/
|
|
701
|
+
400: ApiErrorDto;
|
|
702
|
+
/**
|
|
703
|
+
* Unauthorized
|
|
704
|
+
*/
|
|
705
|
+
401: ApiErrorDto;
|
|
706
|
+
/**
|
|
707
|
+
* Forbidden
|
|
708
|
+
*/
|
|
709
|
+
403: ApiErrorDto;
|
|
710
|
+
/**
|
|
711
|
+
* Not found
|
|
712
|
+
*/
|
|
713
|
+
404: ApiErrorDto;
|
|
714
|
+
/**
|
|
715
|
+
* Internal server error
|
|
716
|
+
*/
|
|
717
|
+
500: ApiErrorDto;
|
|
718
|
+
};
|
|
719
|
+
export type GetProjectInfoError = GetProjectInfoErrors[keyof GetProjectInfoErrors];
|
|
720
|
+
export type GetProjectInfoResponses = {
|
|
721
|
+
/**
|
|
722
|
+
* Success
|
|
723
|
+
*/
|
|
724
|
+
200: {
|
|
725
|
+
success: boolean;
|
|
726
|
+
timestamp: string;
|
|
727
|
+
data: ClientProjectInfoResponseDto;
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
export type GetProjectInfoResponse = GetProjectInfoResponses[keyof GetProjectInfoResponses];
|
|
731
|
+
export type GetProjectMembersData = {
|
|
732
|
+
body?: never;
|
|
733
|
+
headers: {
|
|
734
|
+
/**
|
|
735
|
+
* API Key for authentication
|
|
736
|
+
*/
|
|
737
|
+
'X-API-Key': string;
|
|
738
|
+
};
|
|
739
|
+
path?: never;
|
|
740
|
+
query?: never;
|
|
741
|
+
url: '/api/v1/project/members';
|
|
742
|
+
};
|
|
743
|
+
export type GetProjectMembersErrors = {
|
|
744
|
+
/**
|
|
745
|
+
* Bad request / validation error
|
|
746
|
+
*/
|
|
747
|
+
400: ApiErrorDto;
|
|
748
|
+
/**
|
|
749
|
+
* Unauthorized
|
|
750
|
+
*/
|
|
751
|
+
401: ApiErrorDto;
|
|
752
|
+
/**
|
|
753
|
+
* Forbidden
|
|
754
|
+
*/
|
|
755
|
+
403: ApiErrorDto;
|
|
756
|
+
/**
|
|
757
|
+
* Not found
|
|
758
|
+
*/
|
|
759
|
+
404: ApiErrorDto;
|
|
760
|
+
/**
|
|
761
|
+
* Internal server error
|
|
762
|
+
*/
|
|
763
|
+
500: ApiErrorDto;
|
|
764
|
+
};
|
|
765
|
+
export type GetProjectMembersError = GetProjectMembersErrors[keyof GetProjectMembersErrors];
|
|
766
|
+
export type GetProjectMembersResponses = {
|
|
767
|
+
/**
|
|
768
|
+
* Success
|
|
769
|
+
*/
|
|
770
|
+
200: {
|
|
771
|
+
success: boolean;
|
|
772
|
+
timestamp: string;
|
|
773
|
+
data: Array<ClientProjectMemberResponseDto>;
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
export type GetProjectMembersResponse = GetProjectMembersResponses[keyof GetProjectMembersResponses];
|
|
777
|
+
export type GetApiKeysData = {
|
|
778
|
+
body?: never;
|
|
779
|
+
headers: {
|
|
780
|
+
/**
|
|
781
|
+
* API Key for authentication
|
|
782
|
+
*/
|
|
783
|
+
'X-API-Key': string;
|
|
784
|
+
};
|
|
785
|
+
path?: never;
|
|
786
|
+
query?: never;
|
|
787
|
+
url: '/api/v1/project/api-keys';
|
|
788
|
+
};
|
|
789
|
+
export type GetApiKeysErrors = {
|
|
790
|
+
/**
|
|
791
|
+
* Bad request / validation error
|
|
792
|
+
*/
|
|
793
|
+
400: ApiErrorDto;
|
|
794
|
+
/**
|
|
795
|
+
* Unauthorized
|
|
796
|
+
*/
|
|
797
|
+
401: ApiErrorDto;
|
|
798
|
+
/**
|
|
799
|
+
* Forbidden
|
|
800
|
+
*/
|
|
801
|
+
403: ApiErrorDto;
|
|
802
|
+
/**
|
|
803
|
+
* Not found
|
|
804
|
+
*/
|
|
805
|
+
404: ApiErrorDto;
|
|
806
|
+
/**
|
|
807
|
+
* Internal server error
|
|
808
|
+
*/
|
|
809
|
+
500: ApiErrorDto;
|
|
810
|
+
};
|
|
811
|
+
export type GetApiKeysError = GetApiKeysErrors[keyof GetApiKeysErrors];
|
|
812
|
+
export type GetApiKeysResponses = {
|
|
813
|
+
/**
|
|
814
|
+
* Success
|
|
815
|
+
*/
|
|
816
|
+
200: {
|
|
817
|
+
success: boolean;
|
|
818
|
+
timestamp: string;
|
|
819
|
+
data: Array<ClientProjectApiKeyResponseDto>;
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
export type GetApiKeysResponse = GetApiKeysResponses[keyof GetApiKeysResponses];
|
|
823
|
+
export type CreateApiKeyData = {
|
|
824
|
+
body: CreateApiKeyDto;
|
|
825
|
+
headers: {
|
|
826
|
+
/**
|
|
827
|
+
* API Key for authentication
|
|
828
|
+
*/
|
|
829
|
+
'X-API-Key': string;
|
|
830
|
+
};
|
|
831
|
+
path?: never;
|
|
832
|
+
query?: never;
|
|
833
|
+
url: '/api/v1/project/api-keys';
|
|
834
|
+
};
|
|
835
|
+
export type CreateApiKeyErrors = {
|
|
836
|
+
/**
|
|
837
|
+
* Bad request / validation error
|
|
838
|
+
*/
|
|
839
|
+
400: ApiErrorDto;
|
|
840
|
+
/**
|
|
841
|
+
* Unauthorized
|
|
842
|
+
*/
|
|
843
|
+
401: ApiErrorDto;
|
|
844
|
+
/**
|
|
845
|
+
* Forbidden
|
|
846
|
+
*/
|
|
847
|
+
403: ApiErrorDto;
|
|
848
|
+
/**
|
|
849
|
+
* Not found
|
|
850
|
+
*/
|
|
851
|
+
404: ApiErrorDto;
|
|
852
|
+
/**
|
|
853
|
+
* Internal server error
|
|
854
|
+
*/
|
|
855
|
+
500: ApiErrorDto;
|
|
856
|
+
};
|
|
857
|
+
export type CreateApiKeyError = CreateApiKeyErrors[keyof CreateApiKeyErrors];
|
|
858
|
+
export type CreateApiKeyResponses = {
|
|
859
|
+
/**
|
|
860
|
+
* Created
|
|
861
|
+
*/
|
|
862
|
+
201: {
|
|
863
|
+
success: boolean;
|
|
864
|
+
timestamp: string;
|
|
865
|
+
data: ClientCreateProjectApiKeyResponseDto;
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
export type CreateApiKeyResponse = CreateApiKeyResponses[keyof CreateApiKeyResponses];
|
|
869
|
+
export type DeleteApiKeyData = {
|
|
870
|
+
body?: never;
|
|
871
|
+
headers: {
|
|
872
|
+
/**
|
|
873
|
+
* API Key for authentication
|
|
874
|
+
*/
|
|
875
|
+
'X-API-Key': string;
|
|
876
|
+
};
|
|
877
|
+
path: {
|
|
878
|
+
/**
|
|
879
|
+
* API key UUID
|
|
880
|
+
*/
|
|
881
|
+
apiKeyId: string;
|
|
882
|
+
};
|
|
883
|
+
query?: never;
|
|
884
|
+
url: '/api/v1/project/api-keys/{apiKeyId}';
|
|
885
|
+
};
|
|
886
|
+
export type DeleteApiKeyErrors = {
|
|
887
|
+
/**
|
|
888
|
+
* Bad request / validation error
|
|
889
|
+
*/
|
|
890
|
+
400: ApiErrorDto;
|
|
891
|
+
/**
|
|
892
|
+
* Unauthorized
|
|
893
|
+
*/
|
|
894
|
+
401: ApiErrorDto;
|
|
895
|
+
/**
|
|
896
|
+
* Forbidden
|
|
897
|
+
*/
|
|
898
|
+
403: ApiErrorDto;
|
|
899
|
+
/**
|
|
900
|
+
* Not found
|
|
901
|
+
*/
|
|
902
|
+
404: ApiErrorDto;
|
|
903
|
+
/**
|
|
904
|
+
* Internal server error
|
|
905
|
+
*/
|
|
906
|
+
500: ApiErrorDto;
|
|
907
|
+
};
|
|
908
|
+
export type DeleteApiKeyError = DeleteApiKeyErrors[keyof DeleteApiKeyErrors];
|
|
909
|
+
export type DeleteApiKeyResponses = {
|
|
910
|
+
/**
|
|
911
|
+
* Success
|
|
912
|
+
*/
|
|
913
|
+
200: {
|
|
914
|
+
success: boolean;
|
|
915
|
+
timestamp: string;
|
|
916
|
+
data: ClientDeleteProjectApiKeyResponseDto;
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
export type DeleteApiKeyResponse = DeleteApiKeyResponses[keyof DeleteApiKeyResponses];
|
|
920
|
+
export type UpdateApiKeyData = {
|
|
921
|
+
body: UpdateApiKeyDto;
|
|
922
|
+
headers: {
|
|
923
|
+
/**
|
|
924
|
+
* API Key for authentication
|
|
925
|
+
*/
|
|
926
|
+
'X-API-Key': string;
|
|
927
|
+
};
|
|
928
|
+
path: {
|
|
929
|
+
/**
|
|
930
|
+
* API key UUID
|
|
931
|
+
*/
|
|
932
|
+
apiKeyId: string;
|
|
933
|
+
};
|
|
934
|
+
query?: never;
|
|
935
|
+
url: '/api/v1/project/api-keys/{apiKeyId}';
|
|
936
|
+
};
|
|
937
|
+
export type UpdateApiKeyErrors = {
|
|
938
|
+
/**
|
|
939
|
+
* Bad request / validation error
|
|
940
|
+
*/
|
|
941
|
+
400: ApiErrorDto;
|
|
942
|
+
/**
|
|
943
|
+
* Unauthorized
|
|
944
|
+
*/
|
|
945
|
+
401: ApiErrorDto;
|
|
946
|
+
/**
|
|
947
|
+
* Forbidden
|
|
948
|
+
*/
|
|
949
|
+
403: ApiErrorDto;
|
|
950
|
+
/**
|
|
951
|
+
* Not found
|
|
952
|
+
*/
|
|
953
|
+
404: ApiErrorDto;
|
|
954
|
+
/**
|
|
955
|
+
* Internal server error
|
|
956
|
+
*/
|
|
957
|
+
500: ApiErrorDto;
|
|
958
|
+
};
|
|
959
|
+
export type UpdateApiKeyError = UpdateApiKeyErrors[keyof UpdateApiKeyErrors];
|
|
960
|
+
export type UpdateApiKeyResponses = {
|
|
961
|
+
/**
|
|
962
|
+
* Success
|
|
963
|
+
*/
|
|
964
|
+
200: {
|
|
965
|
+
success: boolean;
|
|
966
|
+
timestamp: string;
|
|
967
|
+
data: ClientProjectApiKeyResponseDto;
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
export type UpdateApiKeyResponse = UpdateApiKeyResponses[keyof UpdateApiKeyResponses];
|
|
971
|
+
export type FindAllData = {
|
|
972
|
+
body?: never;
|
|
973
|
+
headers: {
|
|
974
|
+
/**
|
|
975
|
+
* API Key for authentication
|
|
976
|
+
*/
|
|
977
|
+
'X-API-Key': string;
|
|
978
|
+
};
|
|
979
|
+
path?: never;
|
|
980
|
+
query?: {
|
|
981
|
+
/**
|
|
982
|
+
* Page number for pagination
|
|
983
|
+
*/
|
|
984
|
+
page?: number;
|
|
985
|
+
/**
|
|
986
|
+
* Number of items per page
|
|
987
|
+
*/
|
|
988
|
+
limit?: number;
|
|
989
|
+
/**
|
|
990
|
+
* Field to order by
|
|
991
|
+
*/
|
|
992
|
+
orderBy?: string;
|
|
993
|
+
/**
|
|
994
|
+
* Order direction
|
|
995
|
+
*/
|
|
996
|
+
orderDir?: 'ASC' | 'DESC';
|
|
997
|
+
/**
|
|
998
|
+
* Search term to filter results
|
|
999
|
+
*/
|
|
1000
|
+
search?: string;
|
|
1001
|
+
};
|
|
1002
|
+
url: '/api/v1/lists';
|
|
1003
|
+
};
|
|
1004
|
+
export type FindAllErrors = {
|
|
1005
|
+
/**
|
|
1006
|
+
* Bad request / validation error
|
|
1007
|
+
*/
|
|
1008
|
+
400: ApiErrorDto;
|
|
1009
|
+
/**
|
|
1010
|
+
* Unauthorized
|
|
1011
|
+
*/
|
|
1012
|
+
401: ApiErrorDto;
|
|
1013
|
+
/**
|
|
1014
|
+
* Forbidden
|
|
1015
|
+
*/
|
|
1016
|
+
403: ApiErrorDto;
|
|
1017
|
+
/**
|
|
1018
|
+
* Not found
|
|
1019
|
+
*/
|
|
1020
|
+
404: ApiErrorDto;
|
|
1021
|
+
/**
|
|
1022
|
+
* Internal server error
|
|
1023
|
+
*/
|
|
1024
|
+
500: ApiErrorDto;
|
|
1025
|
+
};
|
|
1026
|
+
export type FindAllError = FindAllErrors[keyof FindAllErrors];
|
|
1027
|
+
export type FindAllResponses = {
|
|
1028
|
+
/**
|
|
1029
|
+
* Paginated list
|
|
1030
|
+
*/
|
|
1031
|
+
200: {
|
|
1032
|
+
success: boolean;
|
|
1033
|
+
timestamp: string;
|
|
1034
|
+
data: {
|
|
1035
|
+
data: Array<ClientRecipientListResponseDto>;
|
|
1036
|
+
total: number;
|
|
1037
|
+
page: number;
|
|
1038
|
+
limit: number;
|
|
1039
|
+
totalPages: number;
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
export type FindAllResponse = FindAllResponses[keyof FindAllResponses];
|
|
1044
|
+
export type CreateData = {
|
|
1045
|
+
body: CreateRecipientListDto;
|
|
1046
|
+
headers: {
|
|
1047
|
+
/**
|
|
1048
|
+
* API Key for authentication
|
|
1049
|
+
*/
|
|
1050
|
+
'X-API-Key': string;
|
|
1051
|
+
};
|
|
1052
|
+
path?: never;
|
|
1053
|
+
query?: never;
|
|
1054
|
+
url: '/api/v1/lists';
|
|
1055
|
+
};
|
|
1056
|
+
export type CreateErrors = {
|
|
1057
|
+
/**
|
|
1058
|
+
* Bad request / validation error
|
|
1059
|
+
*/
|
|
1060
|
+
400: ApiErrorDto;
|
|
1061
|
+
/**
|
|
1062
|
+
* Unauthorized
|
|
1063
|
+
*/
|
|
1064
|
+
401: ApiErrorDto;
|
|
1065
|
+
/**
|
|
1066
|
+
* Forbidden
|
|
1067
|
+
*/
|
|
1068
|
+
403: ApiErrorDto;
|
|
1069
|
+
/**
|
|
1070
|
+
* Not found
|
|
1071
|
+
*/
|
|
1072
|
+
404: ApiErrorDto;
|
|
1073
|
+
/**
|
|
1074
|
+
* Internal server error
|
|
1075
|
+
*/
|
|
1076
|
+
500: ApiErrorDto;
|
|
1077
|
+
};
|
|
1078
|
+
export type CreateError = CreateErrors[keyof CreateErrors];
|
|
1079
|
+
export type CreateResponses = {
|
|
1080
|
+
/**
|
|
1081
|
+
* Created
|
|
1082
|
+
*/
|
|
1083
|
+
201: {
|
|
1084
|
+
success: boolean;
|
|
1085
|
+
timestamp: string;
|
|
1086
|
+
data: ClientRecipientListResponseDto;
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
export type CreateResponse = CreateResponses[keyof CreateResponses];
|
|
1090
|
+
export type RemoveData = {
|
|
1091
|
+
body?: never;
|
|
1092
|
+
headers: {
|
|
1093
|
+
/**
|
|
1094
|
+
* API Key for authentication
|
|
1095
|
+
*/
|
|
1096
|
+
'X-API-Key': string;
|
|
1097
|
+
};
|
|
1098
|
+
path: {
|
|
1099
|
+
/**
|
|
1100
|
+
* List ID
|
|
1101
|
+
*/
|
|
1102
|
+
listId: string;
|
|
1103
|
+
};
|
|
1104
|
+
query?: never;
|
|
1105
|
+
url: '/api/v1/lists/{listId}';
|
|
1106
|
+
};
|
|
1107
|
+
export type RemoveErrors = {
|
|
1108
|
+
/**
|
|
1109
|
+
* Bad request / validation error
|
|
1110
|
+
*/
|
|
1111
|
+
400: ApiErrorDto;
|
|
1112
|
+
/**
|
|
1113
|
+
* Unauthorized
|
|
1114
|
+
*/
|
|
1115
|
+
401: ApiErrorDto;
|
|
1116
|
+
/**
|
|
1117
|
+
* Forbidden
|
|
1118
|
+
*/
|
|
1119
|
+
403: ApiErrorDto;
|
|
1120
|
+
/**
|
|
1121
|
+
* Not found
|
|
1122
|
+
*/
|
|
1123
|
+
404: ApiErrorDto;
|
|
1124
|
+
/**
|
|
1125
|
+
* Internal server error
|
|
1126
|
+
*/
|
|
1127
|
+
500: ApiErrorDto;
|
|
1128
|
+
};
|
|
1129
|
+
export type RemoveError = RemoveErrors[keyof RemoveErrors];
|
|
1130
|
+
export type RemoveResponses = {
|
|
1131
|
+
/**
|
|
1132
|
+
* Success
|
|
1133
|
+
*/
|
|
1134
|
+
200: {
|
|
1135
|
+
success: boolean;
|
|
1136
|
+
timestamp: string;
|
|
1137
|
+
data: MessageDataDto;
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
export type RemoveResponse = RemoveResponses[keyof RemoveResponses];
|
|
1141
|
+
export type FindOneData = {
|
|
1142
|
+
body?: never;
|
|
1143
|
+
headers: {
|
|
1144
|
+
/**
|
|
1145
|
+
* API Key for authentication
|
|
1146
|
+
*/
|
|
1147
|
+
'X-API-Key': string;
|
|
1148
|
+
};
|
|
1149
|
+
path: {
|
|
1150
|
+
/**
|
|
1151
|
+
* List ID
|
|
1152
|
+
*/
|
|
1153
|
+
listId: string;
|
|
1154
|
+
};
|
|
1155
|
+
query?: never;
|
|
1156
|
+
url: '/api/v1/lists/{listId}';
|
|
1157
|
+
};
|
|
1158
|
+
export type FindOneErrors = {
|
|
1159
|
+
/**
|
|
1160
|
+
* Bad request / validation error
|
|
1161
|
+
*/
|
|
1162
|
+
400: ApiErrorDto;
|
|
1163
|
+
/**
|
|
1164
|
+
* Unauthorized
|
|
1165
|
+
*/
|
|
1166
|
+
401: ApiErrorDto;
|
|
1167
|
+
/**
|
|
1168
|
+
* Forbidden
|
|
1169
|
+
*/
|
|
1170
|
+
403: ApiErrorDto;
|
|
1171
|
+
/**
|
|
1172
|
+
* Not found
|
|
1173
|
+
*/
|
|
1174
|
+
404: ApiErrorDto;
|
|
1175
|
+
/**
|
|
1176
|
+
* Internal server error
|
|
1177
|
+
*/
|
|
1178
|
+
500: ApiErrorDto;
|
|
1179
|
+
};
|
|
1180
|
+
export type FindOneError = FindOneErrors[keyof FindOneErrors];
|
|
1181
|
+
export type FindOneResponses = {
|
|
1182
|
+
/**
|
|
1183
|
+
* Success
|
|
1184
|
+
*/
|
|
1185
|
+
200: {
|
|
1186
|
+
success: boolean;
|
|
1187
|
+
timestamp: string;
|
|
1188
|
+
data: ClientRecipientListResponseDto;
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
export type FindOneResponse = FindOneResponses[keyof FindOneResponses];
|
|
1192
|
+
export type UpdateData = {
|
|
1193
|
+
body: UpdateRecipientListDto;
|
|
1194
|
+
headers: {
|
|
1195
|
+
/**
|
|
1196
|
+
* API Key for authentication
|
|
1197
|
+
*/
|
|
1198
|
+
'X-API-Key': string;
|
|
1199
|
+
};
|
|
1200
|
+
path: {
|
|
1201
|
+
/**
|
|
1202
|
+
* List ID
|
|
1203
|
+
*/
|
|
1204
|
+
listId: string;
|
|
1205
|
+
};
|
|
1206
|
+
query?: never;
|
|
1207
|
+
url: '/api/v1/lists/{listId}';
|
|
1208
|
+
};
|
|
1209
|
+
export type UpdateErrors = {
|
|
1210
|
+
/**
|
|
1211
|
+
* Bad request / validation error
|
|
1212
|
+
*/
|
|
1213
|
+
400: ApiErrorDto;
|
|
1214
|
+
/**
|
|
1215
|
+
* Unauthorized
|
|
1216
|
+
*/
|
|
1217
|
+
401: ApiErrorDto;
|
|
1218
|
+
/**
|
|
1219
|
+
* Forbidden
|
|
1220
|
+
*/
|
|
1221
|
+
403: ApiErrorDto;
|
|
1222
|
+
/**
|
|
1223
|
+
* Not found
|
|
1224
|
+
*/
|
|
1225
|
+
404: ApiErrorDto;
|
|
1226
|
+
/**
|
|
1227
|
+
* Internal server error
|
|
1228
|
+
*/
|
|
1229
|
+
500: ApiErrorDto;
|
|
1230
|
+
};
|
|
1231
|
+
export type UpdateError = UpdateErrors[keyof UpdateErrors];
|
|
1232
|
+
export type UpdateResponses = {
|
|
1233
|
+
/**
|
|
1234
|
+
* Success
|
|
1235
|
+
*/
|
|
1236
|
+
200: {
|
|
1237
|
+
success: boolean;
|
|
1238
|
+
timestamp: string;
|
|
1239
|
+
data: ClientRecipientListResponseDto;
|
|
1240
|
+
};
|
|
1241
|
+
};
|
|
1242
|
+
export type UpdateResponse = UpdateResponses[keyof UpdateResponses];
|
|
1243
|
+
export type GetRecipientsData = {
|
|
1244
|
+
body?: never;
|
|
1245
|
+
headers: {
|
|
1246
|
+
/**
|
|
1247
|
+
* API Key for authentication
|
|
1248
|
+
*/
|
|
1249
|
+
'X-API-Key': string;
|
|
1250
|
+
};
|
|
1251
|
+
path: {
|
|
1252
|
+
/**
|
|
1253
|
+
* List ID
|
|
1254
|
+
*/
|
|
1255
|
+
listId: string;
|
|
1256
|
+
};
|
|
1257
|
+
query?: {
|
|
1258
|
+
/**
|
|
1259
|
+
* Page number for pagination
|
|
1260
|
+
*/
|
|
1261
|
+
page?: number;
|
|
1262
|
+
/**
|
|
1263
|
+
* Number of items per page
|
|
1264
|
+
*/
|
|
1265
|
+
limit?: number;
|
|
1266
|
+
/**
|
|
1267
|
+
* Field to order by
|
|
1268
|
+
*/
|
|
1269
|
+
orderBy?: string;
|
|
1270
|
+
/**
|
|
1271
|
+
* Order direction
|
|
1272
|
+
*/
|
|
1273
|
+
orderDir?: 'ASC' | 'DESC';
|
|
1274
|
+
/**
|
|
1275
|
+
* Search term to filter results
|
|
1276
|
+
*/
|
|
1277
|
+
search?: string;
|
|
1278
|
+
};
|
|
1279
|
+
url: '/api/v1/lists/{listId}/recipients';
|
|
1280
|
+
};
|
|
1281
|
+
export type GetRecipientsErrors = {
|
|
1282
|
+
/**
|
|
1283
|
+
* Bad request / validation error
|
|
1284
|
+
*/
|
|
1285
|
+
400: ApiErrorDto;
|
|
1286
|
+
/**
|
|
1287
|
+
* Unauthorized
|
|
1288
|
+
*/
|
|
1289
|
+
401: ApiErrorDto;
|
|
1290
|
+
/**
|
|
1291
|
+
* Forbidden
|
|
1292
|
+
*/
|
|
1293
|
+
403: ApiErrorDto;
|
|
1294
|
+
/**
|
|
1295
|
+
* Not found
|
|
1296
|
+
*/
|
|
1297
|
+
404: ApiErrorDto;
|
|
1298
|
+
/**
|
|
1299
|
+
* Internal server error
|
|
1300
|
+
*/
|
|
1301
|
+
500: ApiErrorDto;
|
|
1302
|
+
};
|
|
1303
|
+
export type GetRecipientsError = GetRecipientsErrors[keyof GetRecipientsErrors];
|
|
1304
|
+
export type GetRecipientsResponses = {
|
|
1305
|
+
/**
|
|
1306
|
+
* Paginated list
|
|
1307
|
+
*/
|
|
1308
|
+
200: {
|
|
1309
|
+
success: boolean;
|
|
1310
|
+
timestamp: string;
|
|
1311
|
+
data: {
|
|
1312
|
+
data: Array<ClientListItemResponseDto>;
|
|
1313
|
+
total: number;
|
|
1314
|
+
page: number;
|
|
1315
|
+
limit: number;
|
|
1316
|
+
totalPages: number;
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
};
|
|
1320
|
+
export type GetRecipientsResponse = GetRecipientsResponses[keyof GetRecipientsResponses];
|
|
1321
|
+
export type AddRecipientData = {
|
|
1322
|
+
body: AddRecipientDto;
|
|
1323
|
+
headers: {
|
|
1324
|
+
/**
|
|
1325
|
+
* API Key for authentication
|
|
1326
|
+
*/
|
|
1327
|
+
'X-API-Key': string;
|
|
1328
|
+
};
|
|
1329
|
+
path: {
|
|
1330
|
+
/**
|
|
1331
|
+
* List ID
|
|
1332
|
+
*/
|
|
1333
|
+
listId: string;
|
|
1334
|
+
};
|
|
1335
|
+
query?: never;
|
|
1336
|
+
url: '/api/v1/lists/{listId}/recipients';
|
|
1337
|
+
};
|
|
1338
|
+
export type AddRecipientErrors = {
|
|
1339
|
+
/**
|
|
1340
|
+
* Bad request / validation error
|
|
1341
|
+
*/
|
|
1342
|
+
400: ApiErrorDto;
|
|
1343
|
+
/**
|
|
1344
|
+
* Unauthorized
|
|
1345
|
+
*/
|
|
1346
|
+
401: ApiErrorDto;
|
|
1347
|
+
/**
|
|
1348
|
+
* Forbidden
|
|
1349
|
+
*/
|
|
1350
|
+
403: ApiErrorDto;
|
|
1351
|
+
/**
|
|
1352
|
+
* Not found
|
|
1353
|
+
*/
|
|
1354
|
+
404: ApiErrorDto;
|
|
1355
|
+
/**
|
|
1356
|
+
* Internal server error
|
|
1357
|
+
*/
|
|
1358
|
+
500: ApiErrorDto;
|
|
1359
|
+
};
|
|
1360
|
+
export type AddRecipientError = AddRecipientErrors[keyof AddRecipientErrors];
|
|
1361
|
+
export type AddRecipientResponses = {
|
|
1362
|
+
/**
|
|
1363
|
+
* Created
|
|
1364
|
+
*/
|
|
1365
|
+
201: {
|
|
1366
|
+
success: boolean;
|
|
1367
|
+
timestamp: string;
|
|
1368
|
+
data: ClientAddRecipientResponseDto;
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
export type AddRecipientResponse = AddRecipientResponses[keyof AddRecipientResponses];
|
|
1372
|
+
export type AddRecipientsBulkData = {
|
|
1373
|
+
body: AddRecipientsBulkDto;
|
|
1374
|
+
headers: {
|
|
1375
|
+
/**
|
|
1376
|
+
* API Key for authentication
|
|
1377
|
+
*/
|
|
1378
|
+
'X-API-Key': string;
|
|
1379
|
+
};
|
|
1380
|
+
path: {
|
|
1381
|
+
/**
|
|
1382
|
+
* List ID
|
|
1383
|
+
*/
|
|
1384
|
+
listId: string;
|
|
1385
|
+
};
|
|
1386
|
+
query?: never;
|
|
1387
|
+
url: '/api/v1/lists/{listId}/recipients/bulk';
|
|
1388
|
+
};
|
|
1389
|
+
export type AddRecipientsBulkErrors = {
|
|
1390
|
+
/**
|
|
1391
|
+
* Bad request / validation error
|
|
1392
|
+
*/
|
|
1393
|
+
400: ApiErrorDto;
|
|
1394
|
+
/**
|
|
1395
|
+
* Unauthorized
|
|
1396
|
+
*/
|
|
1397
|
+
401: ApiErrorDto;
|
|
1398
|
+
/**
|
|
1399
|
+
* Forbidden
|
|
1400
|
+
*/
|
|
1401
|
+
403: ApiErrorDto;
|
|
1402
|
+
/**
|
|
1403
|
+
* Not found
|
|
1404
|
+
*/
|
|
1405
|
+
404: ApiErrorDto;
|
|
1406
|
+
/**
|
|
1407
|
+
* Internal server error
|
|
1408
|
+
*/
|
|
1409
|
+
500: ApiErrorDto;
|
|
1410
|
+
};
|
|
1411
|
+
export type AddRecipientsBulkError = AddRecipientsBulkErrors[keyof AddRecipientsBulkErrors];
|
|
1412
|
+
export type AddRecipientsBulkResponses = {
|
|
1413
|
+
/**
|
|
1414
|
+
* Created
|
|
1415
|
+
*/
|
|
1416
|
+
201: {
|
|
1417
|
+
success: boolean;
|
|
1418
|
+
timestamp: string;
|
|
1419
|
+
data: ClientBulkAddRecipientsResponseDto;
|
|
1420
|
+
};
|
|
1421
|
+
};
|
|
1422
|
+
export type AddRecipientsBulkResponse = AddRecipientsBulkResponses[keyof AddRecipientsBulkResponses];
|
|
1423
|
+
export type RemoveRecipientData = {
|
|
1424
|
+
body?: never;
|
|
1425
|
+
headers: {
|
|
1426
|
+
/**
|
|
1427
|
+
* API Key for authentication
|
|
1428
|
+
*/
|
|
1429
|
+
'X-API-Key': string;
|
|
1430
|
+
};
|
|
1431
|
+
path: {
|
|
1432
|
+
/**
|
|
1433
|
+
* List ID
|
|
1434
|
+
*/
|
|
1435
|
+
listId: string;
|
|
1436
|
+
/**
|
|
1437
|
+
* Recipient ID
|
|
1438
|
+
*/
|
|
1439
|
+
recipientId: string;
|
|
1440
|
+
};
|
|
1441
|
+
query?: never;
|
|
1442
|
+
url: '/api/v1/lists/{listId}/recipients/{recipientId}';
|
|
1443
|
+
};
|
|
1444
|
+
export type RemoveRecipientErrors = {
|
|
1445
|
+
/**
|
|
1446
|
+
* Bad request / validation error
|
|
1447
|
+
*/
|
|
1448
|
+
400: ApiErrorDto;
|
|
1449
|
+
/**
|
|
1450
|
+
* Unauthorized
|
|
1451
|
+
*/
|
|
1452
|
+
401: ApiErrorDto;
|
|
1453
|
+
/**
|
|
1454
|
+
* Forbidden
|
|
1455
|
+
*/
|
|
1456
|
+
403: ApiErrorDto;
|
|
1457
|
+
/**
|
|
1458
|
+
* Not found
|
|
1459
|
+
*/
|
|
1460
|
+
404: ApiErrorDto;
|
|
1461
|
+
/**
|
|
1462
|
+
* Internal server error
|
|
1463
|
+
*/
|
|
1464
|
+
500: ApiErrorDto;
|
|
1465
|
+
};
|
|
1466
|
+
export type RemoveRecipientError = RemoveRecipientErrors[keyof RemoveRecipientErrors];
|
|
1467
|
+
export type RemoveRecipientResponses = {
|
|
1468
|
+
/**
|
|
1469
|
+
* Success
|
|
1470
|
+
*/
|
|
1471
|
+
200: {
|
|
1472
|
+
success: boolean;
|
|
1473
|
+
timestamp: string;
|
|
1474
|
+
data: MessageDataDto;
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
export type RemoveRecipientResponse = RemoveRecipientResponses[keyof RemoveRecipientResponses];
|
|
1478
|
+
export type ImportFromFileData = {
|
|
1479
|
+
body?: never;
|
|
1480
|
+
headers: {
|
|
1481
|
+
/**
|
|
1482
|
+
* API Key for authentication
|
|
1483
|
+
*/
|
|
1484
|
+
'X-API-Key': string;
|
|
1485
|
+
};
|
|
1486
|
+
path: {
|
|
1487
|
+
/**
|
|
1488
|
+
* List ID
|
|
1489
|
+
*/
|
|
1490
|
+
listId: string;
|
|
1491
|
+
};
|
|
1492
|
+
query?: never;
|
|
1493
|
+
url: '/api/v1/lists/{listId}/import';
|
|
1494
|
+
};
|
|
1495
|
+
export type ImportFromFileErrors = {
|
|
1496
|
+
/**
|
|
1497
|
+
* Bad request / validation error
|
|
1498
|
+
*/
|
|
1499
|
+
400: ApiErrorDto;
|
|
1500
|
+
/**
|
|
1501
|
+
* Unauthorized
|
|
1502
|
+
*/
|
|
1503
|
+
401: ApiErrorDto;
|
|
1504
|
+
/**
|
|
1505
|
+
* Forbidden
|
|
1506
|
+
*/
|
|
1507
|
+
403: ApiErrorDto;
|
|
1508
|
+
/**
|
|
1509
|
+
* Not found
|
|
1510
|
+
*/
|
|
1511
|
+
404: ApiErrorDto;
|
|
1512
|
+
/**
|
|
1513
|
+
* Internal server error
|
|
1514
|
+
*/
|
|
1515
|
+
500: ApiErrorDto;
|
|
1516
|
+
};
|
|
1517
|
+
export type ImportFromFileError = ImportFromFileErrors[keyof ImportFromFileErrors];
|
|
1518
|
+
export type ImportFromFileResponses = {
|
|
1519
|
+
/**
|
|
1520
|
+
* Success
|
|
1521
|
+
*/
|
|
1522
|
+
200: {
|
|
1523
|
+
success: boolean;
|
|
1524
|
+
timestamp: string;
|
|
1525
|
+
data: ImportListResponseDto;
|
|
1526
|
+
};
|
|
1527
|
+
};
|
|
1528
|
+
export type ImportFromFileResponse = ImportFromFileResponses[keyof ImportFromFileResponses];
|
|
1529
|
+
export type CreateDistributionListData = {
|
|
1530
|
+
body: CreateDistributionListDto;
|
|
1531
|
+
headers: {
|
|
1532
|
+
/**
|
|
1533
|
+
* API Key for authentication
|
|
1534
|
+
*/
|
|
1535
|
+
'X-API-Key': string;
|
|
1536
|
+
};
|
|
1537
|
+
path?: never;
|
|
1538
|
+
query?: never;
|
|
1539
|
+
url: '/api/v1/lists/distribution';
|
|
1540
|
+
};
|
|
1541
|
+
export type CreateDistributionListErrors = {
|
|
1542
|
+
/**
|
|
1543
|
+
* Bad request / validation error
|
|
1544
|
+
*/
|
|
1545
|
+
400: ApiErrorDto;
|
|
1546
|
+
/**
|
|
1547
|
+
* Unauthorized
|
|
1548
|
+
*/
|
|
1549
|
+
401: ApiErrorDto;
|
|
1550
|
+
/**
|
|
1551
|
+
* Forbidden
|
|
1552
|
+
*/
|
|
1553
|
+
403: ApiErrorDto;
|
|
1554
|
+
/**
|
|
1555
|
+
* Not found
|
|
1556
|
+
*/
|
|
1557
|
+
404: ApiErrorDto;
|
|
1558
|
+
/**
|
|
1559
|
+
* Internal server error
|
|
1560
|
+
*/
|
|
1561
|
+
500: ApiErrorDto;
|
|
1562
|
+
};
|
|
1563
|
+
export type CreateDistributionListError = CreateDistributionListErrors[keyof CreateDistributionListErrors];
|
|
1564
|
+
export type CreateDistributionListResponses = {
|
|
1565
|
+
/**
|
|
1566
|
+
* Created
|
|
1567
|
+
*/
|
|
1568
|
+
201: {
|
|
1569
|
+
success: boolean;
|
|
1570
|
+
timestamp: string;
|
|
1571
|
+
data: ClientDistributionListCreateResponseDto;
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
export type CreateDistributionListResponse = CreateDistributionListResponses[keyof CreateDistributionListResponses];
|
|
1575
|
+
export type ImportCsvDistributionData = {
|
|
1576
|
+
body: ImportCsvDistributionDto;
|
|
1577
|
+
headers: {
|
|
1578
|
+
/**
|
|
1579
|
+
* API Key for authentication
|
|
1580
|
+
*/
|
|
1581
|
+
'X-API-Key': string;
|
|
1582
|
+
};
|
|
1583
|
+
path?: never;
|
|
1584
|
+
query?: never;
|
|
1585
|
+
url: '/api/v1/lists/distribution/csv';
|
|
1586
|
+
};
|
|
1587
|
+
export type ImportCsvDistributionErrors = {
|
|
1588
|
+
/**
|
|
1589
|
+
* Bad request / validation error
|
|
1590
|
+
*/
|
|
1591
|
+
400: ApiErrorDto;
|
|
1592
|
+
/**
|
|
1593
|
+
* Unauthorized
|
|
1594
|
+
*/
|
|
1595
|
+
401: ApiErrorDto;
|
|
1596
|
+
/**
|
|
1597
|
+
* Forbidden
|
|
1598
|
+
*/
|
|
1599
|
+
403: ApiErrorDto;
|
|
1600
|
+
/**
|
|
1601
|
+
* Not found
|
|
1602
|
+
*/
|
|
1603
|
+
404: ApiErrorDto;
|
|
1604
|
+
/**
|
|
1605
|
+
* Internal server error
|
|
1606
|
+
*/
|
|
1607
|
+
500: ApiErrorDto;
|
|
1608
|
+
};
|
|
1609
|
+
export type ImportCsvDistributionError = ImportCsvDistributionErrors[keyof ImportCsvDistributionErrors];
|
|
1610
|
+
export type ImportCsvDistributionResponses = {
|
|
1611
|
+
/**
|
|
1612
|
+
* Created
|
|
1613
|
+
*/
|
|
1614
|
+
201: {
|
|
1615
|
+
success: boolean;
|
|
1616
|
+
timestamp: string;
|
|
1617
|
+
data: ClientDistributionListCreateResponseDto;
|
|
1618
|
+
};
|
|
1619
|
+
};
|
|
1620
|
+
export type ImportCsvDistributionResponse = ImportCsvDistributionResponses[keyof ImportCsvDistributionResponses];
|
|
1621
|
+
export type DistributeData = {
|
|
1622
|
+
body: CreateDistributeDto;
|
|
1623
|
+
headers: {
|
|
1624
|
+
/**
|
|
1625
|
+
* API Key for authentication
|
|
1626
|
+
*/
|
|
1627
|
+
'X-API-Key': string;
|
|
1628
|
+
};
|
|
1629
|
+
path?: never;
|
|
1630
|
+
query?: never;
|
|
1631
|
+
url: '/api/v1/distribute';
|
|
1632
|
+
};
|
|
1633
|
+
export type DistributeErrors = {
|
|
1634
|
+
/**
|
|
1635
|
+
* Onchain validation failed (empty batches). Message and optional badAddresses list.
|
|
1636
|
+
*/
|
|
1637
|
+
400: PrepareBadRequestResponseDto;
|
|
1638
|
+
/**
|
|
1639
|
+
* Unauthorized
|
|
1640
|
+
*/
|
|
1641
|
+
401: ApiErrorDto;
|
|
1642
|
+
/**
|
|
1643
|
+
* Forbidden
|
|
1644
|
+
*/
|
|
1645
|
+
403: ApiErrorDto;
|
|
1646
|
+
/**
|
|
1647
|
+
* Not found
|
|
1648
|
+
*/
|
|
1649
|
+
404: ApiErrorDto;
|
|
1650
|
+
/**
|
|
1651
|
+
* Internal server error
|
|
1652
|
+
*/
|
|
1653
|
+
500: ApiErrorDto;
|
|
1654
|
+
};
|
|
1655
|
+
export type DistributeError = DistributeErrors[keyof DistributeErrors];
|
|
1656
|
+
export type DistributeResponses = {
|
|
1657
|
+
/**
|
|
1658
|
+
* Created
|
|
1659
|
+
*/
|
|
1660
|
+
201: {
|
|
1661
|
+
success: boolean;
|
|
1662
|
+
timestamp: string;
|
|
1663
|
+
data: ClientDistributeResponseDto;
|
|
1664
|
+
};
|
|
1665
|
+
};
|
|
1666
|
+
export type DistributeResponse = DistributeResponses[keyof DistributeResponses];
|
|
1667
|
+
export type FindAll2Data = {
|
|
1668
|
+
body?: never;
|
|
1669
|
+
headers: {
|
|
1670
|
+
/**
|
|
1671
|
+
* API Key for authentication
|
|
1672
|
+
*/
|
|
1673
|
+
'X-API-Key': string;
|
|
1674
|
+
};
|
|
1675
|
+
path?: never;
|
|
1676
|
+
query?: {
|
|
1677
|
+
/**
|
|
1678
|
+
* Page number for pagination
|
|
1679
|
+
*/
|
|
1680
|
+
page?: number;
|
|
1681
|
+
/**
|
|
1682
|
+
* Number of items per page
|
|
1683
|
+
*/
|
|
1684
|
+
limit?: number;
|
|
1685
|
+
/**
|
|
1686
|
+
* Field to order by
|
|
1687
|
+
*/
|
|
1688
|
+
orderBy?: string;
|
|
1689
|
+
/**
|
|
1690
|
+
* Order direction
|
|
1691
|
+
*/
|
|
1692
|
+
orderDir?: 'ASC' | 'DESC';
|
|
1693
|
+
/**
|
|
1694
|
+
* Search term to filter results
|
|
1695
|
+
*/
|
|
1696
|
+
search?: string;
|
|
1697
|
+
};
|
|
1698
|
+
url: '/api/v1/distributions';
|
|
1699
|
+
};
|
|
1700
|
+
export type FindAll2Errors = {
|
|
1701
|
+
/**
|
|
1702
|
+
* Bad request / validation error
|
|
1703
|
+
*/
|
|
1704
|
+
400: ApiErrorDto;
|
|
1705
|
+
/**
|
|
1706
|
+
* Unauthorized
|
|
1707
|
+
*/
|
|
1708
|
+
401: ApiErrorDto;
|
|
1709
|
+
/**
|
|
1710
|
+
* Forbidden
|
|
1711
|
+
*/
|
|
1712
|
+
403: ApiErrorDto;
|
|
1713
|
+
/**
|
|
1714
|
+
* Not found
|
|
1715
|
+
*/
|
|
1716
|
+
404: ApiErrorDto;
|
|
1717
|
+
/**
|
|
1718
|
+
* Internal server error
|
|
1719
|
+
*/
|
|
1720
|
+
500: ApiErrorDto;
|
|
1721
|
+
};
|
|
1722
|
+
export type FindAll2Error = FindAll2Errors[keyof FindAll2Errors];
|
|
1723
|
+
export type FindAll2Responses = {
|
|
1724
|
+
/**
|
|
1725
|
+
* Paginated list
|
|
1726
|
+
*/
|
|
1727
|
+
200: {
|
|
1728
|
+
success: boolean;
|
|
1729
|
+
timestamp: string;
|
|
1730
|
+
data: {
|
|
1731
|
+
data: Array<ClientDistributionResponseDto>;
|
|
1732
|
+
total: number;
|
|
1733
|
+
page: number;
|
|
1734
|
+
limit: number;
|
|
1735
|
+
totalPages: number;
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
};
|
|
1739
|
+
export type FindAll2Response = FindAll2Responses[keyof FindAll2Responses];
|
|
1740
|
+
export type Create2Data = {
|
|
1741
|
+
body: CreateDistributionDto;
|
|
1742
|
+
headers: {
|
|
1743
|
+
/**
|
|
1744
|
+
* API Key for authentication
|
|
1745
|
+
*/
|
|
1746
|
+
'X-API-Key': string;
|
|
1747
|
+
};
|
|
1748
|
+
path?: never;
|
|
1749
|
+
query?: never;
|
|
1750
|
+
url: '/api/v1/distributions';
|
|
1751
|
+
};
|
|
1752
|
+
export type Create2Errors = {
|
|
1753
|
+
/**
|
|
1754
|
+
* Bad request / validation error
|
|
1755
|
+
*/
|
|
1756
|
+
400: ApiErrorDto;
|
|
1757
|
+
/**
|
|
1758
|
+
* Unauthorized
|
|
1759
|
+
*/
|
|
1760
|
+
401: ApiErrorDto;
|
|
1761
|
+
/**
|
|
1762
|
+
* Forbidden
|
|
1763
|
+
*/
|
|
1764
|
+
403: ApiErrorDto;
|
|
1765
|
+
/**
|
|
1766
|
+
* Not found
|
|
1767
|
+
*/
|
|
1768
|
+
404: ApiErrorDto;
|
|
1769
|
+
/**
|
|
1770
|
+
* Internal server error
|
|
1771
|
+
*/
|
|
1772
|
+
500: ApiErrorDto;
|
|
1773
|
+
};
|
|
1774
|
+
export type Create2Error = Create2Errors[keyof Create2Errors];
|
|
1775
|
+
export type Create2Responses = {
|
|
1776
|
+
/**
|
|
1777
|
+
* Created
|
|
1778
|
+
*/
|
|
1779
|
+
201: {
|
|
1780
|
+
success: boolean;
|
|
1781
|
+
timestamp: string;
|
|
1782
|
+
data: ClientDistributionResponseDto;
|
|
1783
|
+
};
|
|
1784
|
+
};
|
|
1785
|
+
export type Create2Response = Create2Responses[keyof Create2Responses];
|
|
1786
|
+
export type FindOne2Data = {
|
|
1787
|
+
body?: never;
|
|
1788
|
+
headers: {
|
|
1789
|
+
/**
|
|
1790
|
+
* API Key for authentication
|
|
1791
|
+
*/
|
|
1792
|
+
'X-API-Key': string;
|
|
1793
|
+
};
|
|
1794
|
+
path: {
|
|
1795
|
+
id: string;
|
|
1796
|
+
};
|
|
1797
|
+
query?: never;
|
|
1798
|
+
url: '/api/v1/distributions/{id}';
|
|
1799
|
+
};
|
|
1800
|
+
export type FindOne2Errors = {
|
|
1801
|
+
/**
|
|
1802
|
+
* Bad request / validation error
|
|
1803
|
+
*/
|
|
1804
|
+
400: ApiErrorDto;
|
|
1805
|
+
/**
|
|
1806
|
+
* Unauthorized
|
|
1807
|
+
*/
|
|
1808
|
+
401: ApiErrorDto;
|
|
1809
|
+
/**
|
|
1810
|
+
* Forbidden
|
|
1811
|
+
*/
|
|
1812
|
+
403: ApiErrorDto;
|
|
1813
|
+
/**
|
|
1814
|
+
* Not found
|
|
1815
|
+
*/
|
|
1816
|
+
404: ApiErrorDto;
|
|
1817
|
+
/**
|
|
1818
|
+
* Internal server error
|
|
1819
|
+
*/
|
|
1820
|
+
500: ApiErrorDto;
|
|
1821
|
+
};
|
|
1822
|
+
export type FindOne2Error = FindOne2Errors[keyof FindOne2Errors];
|
|
1823
|
+
export type FindOne2Responses = {
|
|
1824
|
+
/**
|
|
1825
|
+
* Success
|
|
1826
|
+
*/
|
|
1827
|
+
200: {
|
|
1828
|
+
success: boolean;
|
|
1829
|
+
timestamp: string;
|
|
1830
|
+
data: ClientDistributionResponseDto;
|
|
1831
|
+
};
|
|
1832
|
+
};
|
|
1833
|
+
export type FindOne2Response = FindOne2Responses[keyof FindOne2Responses];
|
|
1834
|
+
export type Update2Data = {
|
|
1835
|
+
body: UpdateDistributionDto;
|
|
1836
|
+
headers: {
|
|
1837
|
+
/**
|
|
1838
|
+
* API Key for authentication
|
|
1839
|
+
*/
|
|
1840
|
+
'X-API-Key': string;
|
|
1841
|
+
};
|
|
1842
|
+
path: {
|
|
1843
|
+
id: string;
|
|
1844
|
+
};
|
|
1845
|
+
query?: never;
|
|
1846
|
+
url: '/api/v1/distributions/{id}';
|
|
1847
|
+
};
|
|
1848
|
+
export type Update2Errors = {
|
|
1849
|
+
/**
|
|
1850
|
+
* Bad request / validation error
|
|
1851
|
+
*/
|
|
1852
|
+
400: ApiErrorDto;
|
|
1853
|
+
/**
|
|
1854
|
+
* Unauthorized
|
|
1855
|
+
*/
|
|
1856
|
+
401: ApiErrorDto;
|
|
1857
|
+
/**
|
|
1858
|
+
* Forbidden
|
|
1859
|
+
*/
|
|
1860
|
+
403: ApiErrorDto;
|
|
1861
|
+
/**
|
|
1862
|
+
* Not found
|
|
1863
|
+
*/
|
|
1864
|
+
404: ApiErrorDto;
|
|
1865
|
+
/**
|
|
1866
|
+
* Internal server error
|
|
1867
|
+
*/
|
|
1868
|
+
500: ApiErrorDto;
|
|
1869
|
+
};
|
|
1870
|
+
export type Update2Error = Update2Errors[keyof Update2Errors];
|
|
1871
|
+
export type Update2Responses = {
|
|
1872
|
+
/**
|
|
1873
|
+
* Success
|
|
1874
|
+
*/
|
|
1875
|
+
200: {
|
|
1876
|
+
success: boolean;
|
|
1877
|
+
timestamp: string;
|
|
1878
|
+
data: ClientDistributionResponseDto;
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
export type Update2Response = Update2Responses[keyof Update2Responses];
|
|
1882
|
+
export type UpdateRecipientsData = {
|
|
1883
|
+
body: UpdateRecipientsDto;
|
|
1884
|
+
headers: {
|
|
1885
|
+
/**
|
|
1886
|
+
* API Key for authentication
|
|
1887
|
+
*/
|
|
1888
|
+
'X-API-Key': string;
|
|
1889
|
+
};
|
|
1890
|
+
path: {
|
|
1891
|
+
id: string;
|
|
1892
|
+
};
|
|
1893
|
+
query?: never;
|
|
1894
|
+
url: '/api/v1/distributions/{id}/recipients';
|
|
1895
|
+
};
|
|
1896
|
+
export type UpdateRecipientsErrors = {
|
|
1897
|
+
/**
|
|
1898
|
+
* Bad request / validation error
|
|
1899
|
+
*/
|
|
1900
|
+
400: ApiErrorDto;
|
|
1901
|
+
/**
|
|
1902
|
+
* Unauthorized
|
|
1903
|
+
*/
|
|
1904
|
+
401: ApiErrorDto;
|
|
1905
|
+
/**
|
|
1906
|
+
* Forbidden
|
|
1907
|
+
*/
|
|
1908
|
+
403: ApiErrorDto;
|
|
1909
|
+
/**
|
|
1910
|
+
* Not found
|
|
1911
|
+
*/
|
|
1912
|
+
404: ApiErrorDto;
|
|
1913
|
+
/**
|
|
1914
|
+
* Internal server error
|
|
1915
|
+
*/
|
|
1916
|
+
500: ApiErrorDto;
|
|
1917
|
+
};
|
|
1918
|
+
export type UpdateRecipientsError = UpdateRecipientsErrors[keyof UpdateRecipientsErrors];
|
|
1919
|
+
export type UpdateRecipientsResponses = {
|
|
1920
|
+
/**
|
|
1921
|
+
* Success
|
|
1922
|
+
*/
|
|
1923
|
+
200: {
|
|
1924
|
+
success: boolean;
|
|
1925
|
+
timestamp: string;
|
|
1926
|
+
data: ClientDistributionResponseDto;
|
|
1927
|
+
};
|
|
1928
|
+
};
|
|
1929
|
+
export type UpdateRecipientsResponse = UpdateRecipientsResponses[keyof UpdateRecipientsResponses];
|
|
1930
|
+
export type PrepareTransactionsData = {
|
|
1931
|
+
body: PrepareTransactionsDto;
|
|
1932
|
+
headers: {
|
|
1933
|
+
/**
|
|
1934
|
+
* API Key for authentication
|
|
1935
|
+
*/
|
|
1936
|
+
'X-API-Key': string;
|
|
1937
|
+
};
|
|
1938
|
+
path: {
|
|
1939
|
+
id: string;
|
|
1940
|
+
};
|
|
1941
|
+
query?: never;
|
|
1942
|
+
url: '/api/v1/distributions/{id}/prepare';
|
|
1943
|
+
};
|
|
1944
|
+
export type PrepareTransactionsErrors = {
|
|
1945
|
+
/**
|
|
1946
|
+
* Onchain validation failed (empty batches). Message and optional badAddresses list.
|
|
1947
|
+
*/
|
|
1948
|
+
400: PrepareBadRequestResponseDto;
|
|
1949
|
+
/**
|
|
1950
|
+
* Unauthorized
|
|
1951
|
+
*/
|
|
1952
|
+
401: ApiErrorDto;
|
|
1953
|
+
/**
|
|
1954
|
+
* Forbidden
|
|
1955
|
+
*/
|
|
1956
|
+
403: ApiErrorDto;
|
|
1957
|
+
/**
|
|
1958
|
+
* Not found
|
|
1959
|
+
*/
|
|
1960
|
+
404: ApiErrorDto;
|
|
1961
|
+
/**
|
|
1962
|
+
* Internal server error
|
|
1963
|
+
*/
|
|
1964
|
+
500: ApiErrorDto;
|
|
1965
|
+
};
|
|
1966
|
+
export type PrepareTransactionsError = PrepareTransactionsErrors[keyof PrepareTransactionsErrors];
|
|
1967
|
+
export type PrepareTransactionsResponses = {
|
|
1968
|
+
/**
|
|
1969
|
+
* Success
|
|
1970
|
+
*/
|
|
1971
|
+
200: {
|
|
1972
|
+
success: boolean;
|
|
1973
|
+
timestamp: string;
|
|
1974
|
+
data: ClientDistributionResponseDto;
|
|
1975
|
+
};
|
|
1976
|
+
};
|
|
1977
|
+
export type PrepareTransactionsResponse = PrepareTransactionsResponses[keyof PrepareTransactionsResponses];
|
|
1978
|
+
export type GetTransactionsData = {
|
|
1979
|
+
body?: never;
|
|
1980
|
+
headers: {
|
|
1981
|
+
/**
|
|
1982
|
+
* API Key for authentication
|
|
1983
|
+
*/
|
|
1984
|
+
'X-API-Key': string;
|
|
1985
|
+
};
|
|
1986
|
+
path: {
|
|
1987
|
+
id: string;
|
|
1988
|
+
};
|
|
1989
|
+
query?: {
|
|
1990
|
+
/**
|
|
1991
|
+
* Page number for pagination
|
|
1992
|
+
*/
|
|
1993
|
+
page?: number;
|
|
1994
|
+
/**
|
|
1995
|
+
* Number of items per page
|
|
1996
|
+
*/
|
|
1997
|
+
limit?: number;
|
|
1998
|
+
/**
|
|
1999
|
+
* Field to order by
|
|
2000
|
+
*/
|
|
2001
|
+
orderBy?: string;
|
|
2002
|
+
/**
|
|
2003
|
+
* Order direction
|
|
2004
|
+
*/
|
|
2005
|
+
orderDir?: 'ASC' | 'DESC';
|
|
2006
|
+
/**
|
|
2007
|
+
* Search term to filter results
|
|
2008
|
+
*/
|
|
2009
|
+
search?: string;
|
|
2010
|
+
};
|
|
2011
|
+
url: '/api/v1/distributions/{id}/transactions';
|
|
2012
|
+
};
|
|
2013
|
+
export type GetTransactionsErrors = {
|
|
2014
|
+
/**
|
|
2015
|
+
* Bad request / validation error
|
|
2016
|
+
*/
|
|
2017
|
+
400: ApiErrorDto;
|
|
2018
|
+
/**
|
|
2019
|
+
* Unauthorized
|
|
2020
|
+
*/
|
|
2021
|
+
401: ApiErrorDto;
|
|
2022
|
+
/**
|
|
2023
|
+
* Forbidden
|
|
2024
|
+
*/
|
|
2025
|
+
403: ApiErrorDto;
|
|
2026
|
+
/**
|
|
2027
|
+
* Not found
|
|
2028
|
+
*/
|
|
2029
|
+
404: ApiErrorDto;
|
|
2030
|
+
/**
|
|
2031
|
+
* Internal server error
|
|
2032
|
+
*/
|
|
2033
|
+
500: ApiErrorDto;
|
|
2034
|
+
};
|
|
2035
|
+
export type GetTransactionsError = GetTransactionsErrors[keyof GetTransactionsErrors];
|
|
2036
|
+
export type GetTransactionsResponses = {
|
|
2037
|
+
/**
|
|
2038
|
+
* Paginated list
|
|
2039
|
+
*/
|
|
2040
|
+
200: {
|
|
2041
|
+
success: boolean;
|
|
2042
|
+
timestamp: string;
|
|
2043
|
+
data: {
|
|
2044
|
+
data: Array<ClientDistributionTransactionResponseDto>;
|
|
2045
|
+
total: number;
|
|
2046
|
+
page: number;
|
|
2047
|
+
limit: number;
|
|
2048
|
+
totalPages: number;
|
|
2049
|
+
};
|
|
2050
|
+
};
|
|
2051
|
+
};
|
|
2052
|
+
export type GetTransactionsResponse = GetTransactionsResponses[keyof GetTransactionsResponses];
|
|
2053
|
+
export type GetStatsData = {
|
|
2054
|
+
body?: never;
|
|
2055
|
+
headers: {
|
|
2056
|
+
/**
|
|
2057
|
+
* API Key for authentication
|
|
2058
|
+
*/
|
|
2059
|
+
'X-API-Key': string;
|
|
2060
|
+
};
|
|
2061
|
+
path: {
|
|
2062
|
+
id: string;
|
|
2063
|
+
};
|
|
2064
|
+
query?: never;
|
|
2065
|
+
url: '/api/v1/distributions/{id}/stats';
|
|
2066
|
+
};
|
|
2067
|
+
export type GetStatsErrors = {
|
|
2068
|
+
/**
|
|
2069
|
+
* Bad request / validation error
|
|
2070
|
+
*/
|
|
2071
|
+
400: ApiErrorDto;
|
|
2072
|
+
/**
|
|
2073
|
+
* Unauthorized
|
|
2074
|
+
*/
|
|
2075
|
+
401: ApiErrorDto;
|
|
2076
|
+
/**
|
|
2077
|
+
* Forbidden
|
|
2078
|
+
*/
|
|
2079
|
+
403: ApiErrorDto;
|
|
2080
|
+
/**
|
|
2081
|
+
* Not found
|
|
2082
|
+
*/
|
|
2083
|
+
404: ApiErrorDto;
|
|
2084
|
+
/**
|
|
2085
|
+
* Internal server error
|
|
2086
|
+
*/
|
|
2087
|
+
500: ApiErrorDto;
|
|
2088
|
+
};
|
|
2089
|
+
export type GetStatsError = GetStatsErrors[keyof GetStatsErrors];
|
|
2090
|
+
export type GetStatsResponses = {
|
|
2091
|
+
/**
|
|
2092
|
+
* Success
|
|
2093
|
+
*/
|
|
2094
|
+
200: {
|
|
2095
|
+
success: boolean;
|
|
2096
|
+
timestamp: string;
|
|
2097
|
+
data: ClientDistributionStatsDto;
|
|
2098
|
+
};
|
|
2099
|
+
};
|
|
2100
|
+
export type GetStatsResponse = GetStatsResponses[keyof GetStatsResponses];
|
|
2101
|
+
export type CancelData = {
|
|
2102
|
+
body?: never;
|
|
2103
|
+
headers: {
|
|
2104
|
+
/**
|
|
2105
|
+
* API Key for authentication
|
|
2106
|
+
*/
|
|
2107
|
+
'X-API-Key': string;
|
|
2108
|
+
};
|
|
2109
|
+
path: {
|
|
2110
|
+
id: string;
|
|
2111
|
+
};
|
|
2112
|
+
query?: never;
|
|
2113
|
+
url: '/api/v1/distributions/{id}/cancel';
|
|
2114
|
+
};
|
|
2115
|
+
export type CancelErrors = {
|
|
2116
|
+
/**
|
|
2117
|
+
* Bad request / validation error
|
|
2118
|
+
*/
|
|
2119
|
+
400: ApiErrorDto;
|
|
2120
|
+
/**
|
|
2121
|
+
* Unauthorized
|
|
2122
|
+
*/
|
|
2123
|
+
401: ApiErrorDto;
|
|
2124
|
+
/**
|
|
2125
|
+
* Forbidden
|
|
2126
|
+
*/
|
|
2127
|
+
403: ApiErrorDto;
|
|
2128
|
+
/**
|
|
2129
|
+
* Not found
|
|
2130
|
+
*/
|
|
2131
|
+
404: ApiErrorDto;
|
|
2132
|
+
/**
|
|
2133
|
+
* Internal server error
|
|
2134
|
+
*/
|
|
2135
|
+
500: ApiErrorDto;
|
|
2136
|
+
};
|
|
2137
|
+
export type CancelError = CancelErrors[keyof CancelErrors];
|
|
2138
|
+
export type CancelResponses = {
|
|
2139
|
+
/**
|
|
2140
|
+
* Success
|
|
2141
|
+
*/
|
|
2142
|
+
200: {
|
|
2143
|
+
success: boolean;
|
|
2144
|
+
timestamp: string;
|
|
2145
|
+
data: ClientDistributionResponseDto;
|
|
2146
|
+
};
|
|
2147
|
+
};
|
|
2148
|
+
export type CancelResponse = CancelResponses[keyof CancelResponses];
|
|
2149
|
+
export type GetApproveCalldataData = {
|
|
2150
|
+
body: GetApproveCalldataDto;
|
|
2151
|
+
headers: {
|
|
2152
|
+
/**
|
|
2153
|
+
* API Key for authentication
|
|
2154
|
+
*/
|
|
2155
|
+
'X-API-Key': string;
|
|
2156
|
+
};
|
|
2157
|
+
path?: never;
|
|
2158
|
+
query?: never;
|
|
2159
|
+
url: '/api/v1/approve-calldata';
|
|
2160
|
+
};
|
|
2161
|
+
export type GetApproveCalldataErrors = {
|
|
2162
|
+
/**
|
|
2163
|
+
* Bad request / validation error
|
|
2164
|
+
*/
|
|
2165
|
+
400: ApiErrorDto;
|
|
2166
|
+
/**
|
|
2167
|
+
* Unauthorized
|
|
2168
|
+
*/
|
|
2169
|
+
401: ApiErrorDto;
|
|
2170
|
+
/**
|
|
2171
|
+
* Forbidden
|
|
2172
|
+
*/
|
|
2173
|
+
403: ApiErrorDto;
|
|
2174
|
+
/**
|
|
2175
|
+
* Not found
|
|
2176
|
+
*/
|
|
2177
|
+
404: ApiErrorDto;
|
|
2178
|
+
/**
|
|
2179
|
+
* Internal server error
|
|
2180
|
+
*/
|
|
2181
|
+
500: ApiErrorDto;
|
|
2182
|
+
};
|
|
2183
|
+
export type GetApproveCalldataError = GetApproveCalldataErrors[keyof GetApproveCalldataErrors];
|
|
2184
|
+
export type GetApproveCalldataResponses = {
|
|
2185
|
+
/**
|
|
2186
|
+
* Success
|
|
2187
|
+
*/
|
|
2188
|
+
200: {
|
|
2189
|
+
success: boolean;
|
|
2190
|
+
timestamp: string;
|
|
2191
|
+
data: ApproveCalldataResponseDto;
|
|
2192
|
+
};
|
|
2193
|
+
};
|
|
2194
|
+
export type GetApproveCalldataResponse = GetApproveCalldataResponses[keyof GetApproveCalldataResponses];
|
|
2195
|
+
export type GetApproveCalldataForDistributionData = {
|
|
2196
|
+
body?: never;
|
|
2197
|
+
headers: {
|
|
2198
|
+
/**
|
|
2199
|
+
* API Key for authentication
|
|
2200
|
+
*/
|
|
2201
|
+
'X-API-Key': string;
|
|
2202
|
+
};
|
|
2203
|
+
path: {
|
|
2204
|
+
id: string;
|
|
2205
|
+
};
|
|
2206
|
+
query?: never;
|
|
2207
|
+
url: '/api/v1/distributions/{id}/approve-calldata';
|
|
2208
|
+
};
|
|
2209
|
+
export type GetApproveCalldataForDistributionErrors = {
|
|
2210
|
+
/**
|
|
2211
|
+
* Bad request / validation error
|
|
2212
|
+
*/
|
|
2213
|
+
400: ApiErrorDto;
|
|
2214
|
+
/**
|
|
2215
|
+
* Unauthorized
|
|
2216
|
+
*/
|
|
2217
|
+
401: ApiErrorDto;
|
|
2218
|
+
/**
|
|
2219
|
+
* Forbidden
|
|
2220
|
+
*/
|
|
2221
|
+
403: ApiErrorDto;
|
|
2222
|
+
/**
|
|
2223
|
+
* Not found
|
|
2224
|
+
*/
|
|
2225
|
+
404: ApiErrorDto;
|
|
2226
|
+
/**
|
|
2227
|
+
* Internal server error
|
|
2228
|
+
*/
|
|
2229
|
+
500: ApiErrorDto;
|
|
2230
|
+
};
|
|
2231
|
+
export type GetApproveCalldataForDistributionError = GetApproveCalldataForDistributionErrors[keyof GetApproveCalldataForDistributionErrors];
|
|
2232
|
+
export type GetApproveCalldataForDistributionResponses = {
|
|
2233
|
+
/**
|
|
2234
|
+
* Success
|
|
2235
|
+
*/
|
|
2236
|
+
200: {
|
|
2237
|
+
success: boolean;
|
|
2238
|
+
timestamp: string;
|
|
2239
|
+
data: ApproveCalldataResponseDto;
|
|
2240
|
+
};
|
|
2241
|
+
};
|
|
2242
|
+
export type GetApproveCalldataForDistributionResponse = GetApproveCalldataForDistributionResponses[keyof GetApproveCalldataForDistributionResponses];
|
|
2243
|
+
export type GetChainsData = {
|
|
2244
|
+
body?: never;
|
|
2245
|
+
headers: {
|
|
2246
|
+
/**
|
|
2247
|
+
* API Key for authentication
|
|
2248
|
+
*/
|
|
2249
|
+
'X-API-Key': string;
|
|
2250
|
+
};
|
|
2251
|
+
path?: never;
|
|
2252
|
+
query?: never;
|
|
2253
|
+
url: '/api/v1/catalogs/chains';
|
|
2254
|
+
};
|
|
2255
|
+
export type GetChainsErrors = {
|
|
2256
|
+
/**
|
|
2257
|
+
* Bad request / validation error
|
|
2258
|
+
*/
|
|
2259
|
+
400: ApiErrorDto;
|
|
2260
|
+
/**
|
|
2261
|
+
* Unauthorized
|
|
2262
|
+
*/
|
|
2263
|
+
401: ApiErrorDto;
|
|
2264
|
+
/**
|
|
2265
|
+
* Forbidden
|
|
2266
|
+
*/
|
|
2267
|
+
403: ApiErrorDto;
|
|
2268
|
+
/**
|
|
2269
|
+
* Not found
|
|
2270
|
+
*/
|
|
2271
|
+
404: ApiErrorDto;
|
|
2272
|
+
/**
|
|
2273
|
+
* Internal server error
|
|
2274
|
+
*/
|
|
2275
|
+
500: ApiErrorDto;
|
|
2276
|
+
};
|
|
2277
|
+
export type GetChainsError = GetChainsErrors[keyof GetChainsErrors];
|
|
2278
|
+
export type GetChainsResponses = {
|
|
2279
|
+
/**
|
|
2280
|
+
* Success
|
|
2281
|
+
*/
|
|
2282
|
+
200: {
|
|
2283
|
+
success: boolean;
|
|
2284
|
+
timestamp: string;
|
|
2285
|
+
data: Array<ClientChainDto>;
|
|
2286
|
+
};
|
|
2287
|
+
};
|
|
2288
|
+
export type GetChainsResponse = GetChainsResponses[keyof GetChainsResponses];
|
|
2289
|
+
export type GetChainData = {
|
|
2290
|
+
body?: never;
|
|
2291
|
+
headers: {
|
|
2292
|
+
/**
|
|
2293
|
+
* API Key for authentication
|
|
2294
|
+
*/
|
|
2295
|
+
'X-API-Key': string;
|
|
2296
|
+
};
|
|
2297
|
+
path: {
|
|
2298
|
+
/**
|
|
2299
|
+
* Chain ID
|
|
2300
|
+
*/
|
|
2301
|
+
chainId: number;
|
|
2302
|
+
};
|
|
2303
|
+
query?: never;
|
|
2304
|
+
url: '/api/v1/catalogs/chains/{chainId}';
|
|
2305
|
+
};
|
|
2306
|
+
export type GetChainErrors = {
|
|
2307
|
+
/**
|
|
2308
|
+
* Bad request / validation error
|
|
2309
|
+
*/
|
|
2310
|
+
400: ApiErrorDto;
|
|
2311
|
+
/**
|
|
2312
|
+
* Unauthorized
|
|
2313
|
+
*/
|
|
2314
|
+
401: ApiErrorDto;
|
|
2315
|
+
/**
|
|
2316
|
+
* Forbidden
|
|
2317
|
+
*/
|
|
2318
|
+
403: ApiErrorDto;
|
|
2319
|
+
/**
|
|
2320
|
+
* Not found
|
|
2321
|
+
*/
|
|
2322
|
+
404: ApiErrorDto;
|
|
2323
|
+
/**
|
|
2324
|
+
* Internal server error
|
|
2325
|
+
*/
|
|
2326
|
+
500: ApiErrorDto;
|
|
2327
|
+
};
|
|
2328
|
+
export type GetChainError = GetChainErrors[keyof GetChainErrors];
|
|
2329
|
+
export type GetChainResponses = {
|
|
2330
|
+
/**
|
|
2331
|
+
* Success
|
|
2332
|
+
*/
|
|
2333
|
+
200: {
|
|
2334
|
+
success: boolean;
|
|
2335
|
+
timestamp: string;
|
|
2336
|
+
data: ClientChainDto;
|
|
2337
|
+
};
|
|
2338
|
+
};
|
|
2339
|
+
export type GetChainResponse = GetChainResponses[keyof GetChainResponses];
|
|
2340
|
+
export type GetTokensData = {
|
|
2341
|
+
body?: never;
|
|
2342
|
+
headers: {
|
|
2343
|
+
/**
|
|
2344
|
+
* API Key for authentication
|
|
2345
|
+
*/
|
|
2346
|
+
'X-API-Key': string;
|
|
2347
|
+
};
|
|
2348
|
+
path?: never;
|
|
2349
|
+
query?: {
|
|
2350
|
+
/**
|
|
2351
|
+
* Filter by chain ID
|
|
2352
|
+
*/
|
|
2353
|
+
chainId?: number;
|
|
2354
|
+
};
|
|
2355
|
+
url: '/api/v1/catalogs/tokens';
|
|
2356
|
+
};
|
|
2357
|
+
export type GetTokensErrors = {
|
|
2358
|
+
/**
|
|
2359
|
+
* Bad request / validation error
|
|
2360
|
+
*/
|
|
2361
|
+
400: ApiErrorDto;
|
|
2362
|
+
/**
|
|
2363
|
+
* Unauthorized
|
|
2364
|
+
*/
|
|
2365
|
+
401: ApiErrorDto;
|
|
2366
|
+
/**
|
|
2367
|
+
* Forbidden
|
|
2368
|
+
*/
|
|
2369
|
+
403: ApiErrorDto;
|
|
2370
|
+
/**
|
|
2371
|
+
* Not found
|
|
2372
|
+
*/
|
|
2373
|
+
404: ApiErrorDto;
|
|
2374
|
+
/**
|
|
2375
|
+
* Internal server error
|
|
2376
|
+
*/
|
|
2377
|
+
500: ApiErrorDto;
|
|
2378
|
+
};
|
|
2379
|
+
export type GetTokensError = GetTokensErrors[keyof GetTokensErrors];
|
|
2380
|
+
export type GetTokensResponses = {
|
|
2381
|
+
/**
|
|
2382
|
+
* Success
|
|
2383
|
+
*/
|
|
2384
|
+
200: {
|
|
2385
|
+
success: boolean;
|
|
2386
|
+
timestamp: string;
|
|
2387
|
+
data: Array<ClientTokenDto>;
|
|
2388
|
+
};
|
|
2389
|
+
};
|
|
2390
|
+
export type GetTokensResponse = GetTokensResponses[keyof GetTokensResponses];
|
|
2391
|
+
export type SearchTokensData = {
|
|
2392
|
+
body?: never;
|
|
2393
|
+
headers: {
|
|
2394
|
+
/**
|
|
2395
|
+
* API Key for authentication
|
|
2396
|
+
*/
|
|
2397
|
+
'X-API-Key': string;
|
|
2398
|
+
};
|
|
2399
|
+
path?: never;
|
|
2400
|
+
query: {
|
|
2401
|
+
/**
|
|
2402
|
+
* Token symbol
|
|
2403
|
+
*/
|
|
2404
|
+
symbol: string;
|
|
2405
|
+
/**
|
|
2406
|
+
* Filter by chain ID
|
|
2407
|
+
*/
|
|
2408
|
+
chainId?: number;
|
|
2409
|
+
};
|
|
2410
|
+
url: '/api/v1/catalogs/tokens/search';
|
|
2411
|
+
};
|
|
2412
|
+
export type SearchTokensErrors = {
|
|
2413
|
+
/**
|
|
2414
|
+
* Bad request / validation error
|
|
2415
|
+
*/
|
|
2416
|
+
400: ApiErrorDto;
|
|
2417
|
+
/**
|
|
2418
|
+
* Unauthorized
|
|
2419
|
+
*/
|
|
2420
|
+
401: ApiErrorDto;
|
|
2421
|
+
/**
|
|
2422
|
+
* Forbidden
|
|
2423
|
+
*/
|
|
2424
|
+
403: ApiErrorDto;
|
|
2425
|
+
/**
|
|
2426
|
+
* Not found
|
|
2427
|
+
*/
|
|
2428
|
+
404: ApiErrorDto;
|
|
2429
|
+
/**
|
|
2430
|
+
* Internal server error
|
|
2431
|
+
*/
|
|
2432
|
+
500: ApiErrorDto;
|
|
2433
|
+
};
|
|
2434
|
+
export type SearchTokensError = SearchTokensErrors[keyof SearchTokensErrors];
|
|
2435
|
+
export type SearchTokensResponses = {
|
|
2436
|
+
/**
|
|
2437
|
+
* Success
|
|
2438
|
+
*/
|
|
2439
|
+
200: {
|
|
2440
|
+
success: boolean;
|
|
2441
|
+
timestamp: string;
|
|
2442
|
+
data: Array<ClientTokenDto>;
|
|
2443
|
+
};
|
|
2444
|
+
};
|
|
2445
|
+
export type SearchTokensResponse = SearchTokensResponses[keyof SearchTokensResponses];
|
|
2446
|
+
export type GetTokenData = {
|
|
2447
|
+
body?: never;
|
|
2448
|
+
headers: {
|
|
2449
|
+
/**
|
|
2450
|
+
* API Key for authentication
|
|
2451
|
+
*/
|
|
2452
|
+
'X-API-Key': string;
|
|
2453
|
+
};
|
|
2454
|
+
path: {
|
|
2455
|
+
/**
|
|
2456
|
+
* Chain ID
|
|
2457
|
+
*/
|
|
2458
|
+
chainId: number;
|
|
2459
|
+
/**
|
|
2460
|
+
* Token contract address
|
|
2461
|
+
*/
|
|
2462
|
+
address: string;
|
|
2463
|
+
};
|
|
2464
|
+
query?: never;
|
|
2465
|
+
url: '/api/v1/catalogs/tokens/{chainId}/{address}';
|
|
2466
|
+
};
|
|
2467
|
+
export type GetTokenErrors = {
|
|
2468
|
+
/**
|
|
2469
|
+
* Bad request / validation error
|
|
2470
|
+
*/
|
|
2471
|
+
400: ApiErrorDto;
|
|
2472
|
+
/**
|
|
2473
|
+
* Unauthorized
|
|
2474
|
+
*/
|
|
2475
|
+
401: ApiErrorDto;
|
|
2476
|
+
/**
|
|
2477
|
+
* Forbidden
|
|
2478
|
+
*/
|
|
2479
|
+
403: ApiErrorDto;
|
|
2480
|
+
/**
|
|
2481
|
+
* Not found
|
|
2482
|
+
*/
|
|
2483
|
+
404: ApiErrorDto;
|
|
2484
|
+
/**
|
|
2485
|
+
* Internal server error
|
|
2486
|
+
*/
|
|
2487
|
+
500: ApiErrorDto;
|
|
2488
|
+
};
|
|
2489
|
+
export type GetTokenError = GetTokenErrors[keyof GetTokenErrors];
|
|
2490
|
+
export type GetTokenResponses = {
|
|
2491
|
+
/**
|
|
2492
|
+
* Success
|
|
2493
|
+
*/
|
|
2494
|
+
200: {
|
|
2495
|
+
success: boolean;
|
|
2496
|
+
timestamp: string;
|
|
2497
|
+
data: ClientTokenDto;
|
|
2498
|
+
};
|
|
2499
|
+
};
|
|
2500
|
+
export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
|
|
2501
|
+
//# sourceMappingURL=types.gen.d.ts.map
|