@proton/wrap-constants 0.0.29 → 0.0.33

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.
@@ -0,0 +1,511 @@
1
+ import * as z from 'zod';
2
+ declare const withdrawBodyBaseAction: z.ZodObject<{
3
+ account: z.ZodString | z.ZodLiteral<string>;
4
+ name: z.ZodLiteral<string>;
5
+ data: z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
6
+ strict: true;
7
+ }, {
8
+ [x: string]: any;
9
+ [x: number]: any;
10
+ }> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
11
+ strict: true;
12
+ }, {
13
+ [x: string]: any;
14
+ [x: number]: any;
15
+ }>]>;
16
+ authorization: z.ZodArray<z.ZodObject<{
17
+ actor: z.ZodString;
18
+ permission: z.ZodString;
19
+ }, {
20
+ strict: true;
21
+ }, {
22
+ actor: string;
23
+ permission: string;
24
+ }>>;
25
+ }, {
26
+ strict: true;
27
+ }, {
28
+ account: string;
29
+ name: string;
30
+ data: string | {
31
+ [x: string]: any;
32
+ [x: number]: any;
33
+ };
34
+ authorization: {
35
+ actor: string;
36
+ permission: string;
37
+ }[];
38
+ }>;
39
+ export declare type WithdrawBodyBaseAction = z.infer<typeof withdrawBodyBaseAction>;
40
+ export declare const withdrawBodyParser: z.ZodObject<{
41
+ signer: z.ZodObject<{
42
+ actor: z.ZodString;
43
+ permission: z.ZodString;
44
+ }, {
45
+ strict: true;
46
+ }, {
47
+ actor: string;
48
+ permission: string;
49
+ }>;
50
+ signatures: z.ZodArray<z.ZodString>;
51
+ transaction: z.ZodObject<{
52
+ expiration: z.ZodString;
53
+ ref_block_num: z.ZodNumber;
54
+ ref_block_prefix: z.ZodNumber;
55
+ max_net_usage_words: z.ZodNumber;
56
+ max_cpu_usage_ms: z.ZodNumber;
57
+ delay_sec: z.ZodNumber;
58
+ context_free_actions: z.ZodArray<z.ZodAny>;
59
+ transaction_extensions: z.ZodArray<z.ZodAny>;
60
+ } & {
61
+ actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
62
+ account: z.ZodString | z.ZodLiteral<string>;
63
+ name: z.ZodLiteral<string>;
64
+ data: z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
65
+ strict: true;
66
+ }, {
67
+ [x: string]: any;
68
+ [x: number]: any;
69
+ }> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
70
+ strict: true;
71
+ }, {
72
+ [x: string]: any;
73
+ [x: number]: any;
74
+ }>]>;
75
+ authorization: z.ZodArray<z.ZodObject<{
76
+ actor: z.ZodString;
77
+ permission: z.ZodString;
78
+ }, {
79
+ strict: true;
80
+ }, {
81
+ actor: string;
82
+ permission: string;
83
+ }>>;
84
+ }, {
85
+ strict: true;
86
+ }, {
87
+ account: string;
88
+ name: string;
89
+ data: string | {
90
+ [x: string]: any;
91
+ [x: number]: any;
92
+ };
93
+ authorization: {
94
+ actor: string;
95
+ permission: string;
96
+ }[];
97
+ }>, z.ZodObject<{
98
+ account: z.ZodLiteral<"webauthn">;
99
+ name: z.ZodLiteral<"exec">;
100
+ data: z.ZodObject<{
101
+ account: z.ZodString;
102
+ key: z.ZodObject<{
103
+ key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
104
+ modulus: z.ZodString;
105
+ exponent: z.ZodString;
106
+ }, {
107
+ strict: true;
108
+ }, {
109
+ modulus: string;
110
+ exponent: string;
111
+ }>]>>;
112
+ user_presence: z.ZodNumber;
113
+ rpid: z.ZodString;
114
+ }, {
115
+ strict: true;
116
+ }, {
117
+ key: (string | {
118
+ modulus: string;
119
+ exponent: string;
120
+ })[];
121
+ user_presence: number;
122
+ rpid: string;
123
+ }>;
124
+ nonce: z.ZodNumber;
125
+ permissions: z.ZodArray<z.ZodObject<{
126
+ actor: z.ZodString;
127
+ permission: z.ZodString;
128
+ }, {
129
+ strict: true;
130
+ }, {
131
+ actor: string;
132
+ permission: string;
133
+ }>>;
134
+ signature: z.ZodObject<{
135
+ auth_data: z.ZodString;
136
+ client_json: z.ZodString;
137
+ signature: z.ZodString;
138
+ }, {
139
+ strict: true;
140
+ }, {
141
+ auth_data: string;
142
+ client_json: string;
143
+ signature: string;
144
+ }>;
145
+ trx: z.ZodObject<{
146
+ expiration: z.ZodString;
147
+ ref_block_num: z.ZodNumber;
148
+ ref_block_prefix: z.ZodNumber;
149
+ max_net_usage_words: z.ZodNumber;
150
+ max_cpu_usage_ms: z.ZodNumber;
151
+ delay_sec: z.ZodNumber;
152
+ context_free_actions: z.ZodArray<z.ZodAny>;
153
+ transaction_extensions: z.ZodArray<z.ZodAny>;
154
+ } & {
155
+ actions: z.ZodArray<z.ZodObject<{
156
+ account: z.ZodString | z.ZodLiteral<string>;
157
+ name: z.ZodLiteral<string>;
158
+ data: z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
159
+ strict: true;
160
+ }, {
161
+ [x: string]: any;
162
+ [x: number]: any;
163
+ }> | z.ZodUnion<[z.ZodString, z.ZodObject<import("zod/lib/src/types/base").ZodRawShape, {
164
+ strict: true;
165
+ }, {
166
+ [x: string]: any;
167
+ [x: number]: any;
168
+ }>]>;
169
+ authorization: z.ZodArray<z.ZodObject<{
170
+ actor: z.ZodString;
171
+ permission: z.ZodString;
172
+ }, {
173
+ strict: true;
174
+ }, {
175
+ actor: string;
176
+ permission: string;
177
+ }>>;
178
+ }, {
179
+ strict: true;
180
+ }, {
181
+ account: string;
182
+ name: string;
183
+ data: string | {
184
+ [x: string]: any;
185
+ [x: number]: any;
186
+ };
187
+ authorization: {
188
+ actor: string;
189
+ permission: string;
190
+ }[];
191
+ }>>;
192
+ }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
193
+ strict: true;
194
+ }, {
195
+ strict: true;
196
+ }>, {
197
+ expiration: string;
198
+ ref_block_num: number;
199
+ ref_block_prefix: number;
200
+ max_net_usage_words: number;
201
+ max_cpu_usage_ms: number;
202
+ delay_sec: number;
203
+ context_free_actions: any[];
204
+ transaction_extensions: any[];
205
+ actions: {
206
+ account: string;
207
+ name: string;
208
+ data: string | {
209
+ [x: string]: any;
210
+ [x: number]: any;
211
+ };
212
+ authorization: {
213
+ actor: string;
214
+ permission: string;
215
+ }[];
216
+ }[];
217
+ }>;
218
+ }, {
219
+ strict: true;
220
+ }, {
221
+ account: string;
222
+ key: {
223
+ key: (string | {
224
+ modulus: string;
225
+ exponent: string;
226
+ })[];
227
+ user_presence: number;
228
+ rpid: string;
229
+ };
230
+ signature: {
231
+ auth_data: string;
232
+ client_json: string;
233
+ signature: string;
234
+ };
235
+ nonce: number;
236
+ permissions: {
237
+ actor: string;
238
+ permission: string;
239
+ }[];
240
+ trx: {
241
+ expiration: string;
242
+ ref_block_num: number;
243
+ ref_block_prefix: number;
244
+ max_net_usage_words: number;
245
+ max_cpu_usage_ms: number;
246
+ delay_sec: number;
247
+ context_free_actions: any[];
248
+ transaction_extensions: any[];
249
+ actions: {
250
+ account: string;
251
+ name: string;
252
+ data: string | {
253
+ [x: string]: any;
254
+ [x: number]: any;
255
+ };
256
+ authorization: {
257
+ actor: string;
258
+ permission: string;
259
+ }[];
260
+ }[];
261
+ };
262
+ }>;
263
+ authorization: z.ZodArray<z.ZodObject<{
264
+ actor: z.ZodString;
265
+ permission: z.ZodString;
266
+ }, {
267
+ strict: true;
268
+ }, {
269
+ actor: string;
270
+ permission: string;
271
+ }>>;
272
+ }, {
273
+ strict: true;
274
+ }, {
275
+ account: "webauthn";
276
+ name: "exec";
277
+ data: {
278
+ account: string;
279
+ key: {
280
+ key: (string | {
281
+ modulus: string;
282
+ exponent: string;
283
+ })[];
284
+ user_presence: number;
285
+ rpid: string;
286
+ };
287
+ signature: {
288
+ auth_data: string;
289
+ client_json: string;
290
+ signature: string;
291
+ };
292
+ nonce: number;
293
+ permissions: {
294
+ actor: string;
295
+ permission: string;
296
+ }[];
297
+ trx: {
298
+ expiration: string;
299
+ ref_block_num: number;
300
+ ref_block_prefix: number;
301
+ max_net_usage_words: number;
302
+ max_cpu_usage_ms: number;
303
+ delay_sec: number;
304
+ context_free_actions: any[];
305
+ transaction_extensions: any[];
306
+ actions: {
307
+ account: string;
308
+ name: string;
309
+ data: string | {
310
+ [x: string]: any;
311
+ [x: number]: any;
312
+ };
313
+ authorization: {
314
+ actor: string;
315
+ permission: string;
316
+ }[];
317
+ }[];
318
+ };
319
+ };
320
+ authorization: {
321
+ actor: string;
322
+ permission: string;
323
+ }[];
324
+ }>]>>;
325
+ }, import("zod/lib/src/helpers/objectUtil").objectUtil.MergeObjectParams<{
326
+ strict: true;
327
+ }, {
328
+ strict: true;
329
+ }>, {
330
+ expiration: string;
331
+ ref_block_num: number;
332
+ ref_block_prefix: number;
333
+ max_net_usage_words: number;
334
+ max_cpu_usage_ms: number;
335
+ delay_sec: number;
336
+ context_free_actions: any[];
337
+ transaction_extensions: any[];
338
+ actions: ({
339
+ account: string;
340
+ name: string;
341
+ data: string | {
342
+ [x: string]: any;
343
+ [x: number]: any;
344
+ };
345
+ authorization: {
346
+ actor: string;
347
+ permission: string;
348
+ }[];
349
+ } | {
350
+ account: "webauthn";
351
+ name: "exec";
352
+ data: {
353
+ account: string;
354
+ key: {
355
+ key: (string | {
356
+ modulus: string;
357
+ exponent: string;
358
+ })[];
359
+ user_presence: number;
360
+ rpid: string;
361
+ };
362
+ signature: {
363
+ auth_data: string;
364
+ client_json: string;
365
+ signature: string;
366
+ };
367
+ nonce: number;
368
+ permissions: {
369
+ actor: string;
370
+ permission: string;
371
+ }[];
372
+ trx: {
373
+ expiration: string;
374
+ ref_block_num: number;
375
+ ref_block_prefix: number;
376
+ max_net_usage_words: number;
377
+ max_cpu_usage_ms: number;
378
+ delay_sec: number;
379
+ context_free_actions: any[];
380
+ transaction_extensions: any[];
381
+ actions: {
382
+ account: string;
383
+ name: string;
384
+ data: string | {
385
+ [x: string]: any;
386
+ [x: number]: any;
387
+ };
388
+ authorization: {
389
+ actor: string;
390
+ permission: string;
391
+ }[];
392
+ }[];
393
+ };
394
+ };
395
+ authorization: {
396
+ actor: string;
397
+ permission: string;
398
+ }[];
399
+ })[];
400
+ }>;
401
+ quoteId: z.ZodString;
402
+ provider: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
403
+ }, {
404
+ strict: true;
405
+ }, {
406
+ provider?: string | undefined;
407
+ signer: {
408
+ actor: string;
409
+ permission: string;
410
+ };
411
+ signatures: string[];
412
+ transaction: {
413
+ expiration: string;
414
+ ref_block_num: number;
415
+ ref_block_prefix: number;
416
+ max_net_usage_words: number;
417
+ max_cpu_usage_ms: number;
418
+ delay_sec: number;
419
+ context_free_actions: any[];
420
+ transaction_extensions: any[];
421
+ actions: ({
422
+ account: string;
423
+ name: string;
424
+ data: string | {
425
+ [x: string]: any;
426
+ [x: number]: any;
427
+ };
428
+ authorization: {
429
+ actor: string;
430
+ permission: string;
431
+ }[];
432
+ } | {
433
+ account: "webauthn";
434
+ name: "exec";
435
+ data: {
436
+ account: string;
437
+ key: {
438
+ key: (string | {
439
+ modulus: string;
440
+ exponent: string;
441
+ })[];
442
+ user_presence: number;
443
+ rpid: string;
444
+ };
445
+ signature: {
446
+ auth_data: string;
447
+ client_json: string;
448
+ signature: string;
449
+ };
450
+ nonce: number;
451
+ permissions: {
452
+ actor: string;
453
+ permission: string;
454
+ }[];
455
+ trx: {
456
+ expiration: string;
457
+ ref_block_num: number;
458
+ ref_block_prefix: number;
459
+ max_net_usage_words: number;
460
+ max_cpu_usage_ms: number;
461
+ delay_sec: number;
462
+ context_free_actions: any[];
463
+ transaction_extensions: any[];
464
+ actions: {
465
+ account: string;
466
+ name: string;
467
+ data: string | {
468
+ [x: string]: any;
469
+ [x: number]: any;
470
+ };
471
+ authorization: {
472
+ actor: string;
473
+ permission: string;
474
+ }[];
475
+ }[];
476
+ };
477
+ };
478
+ authorization: {
479
+ actor: string;
480
+ permission: string;
481
+ }[];
482
+ })[];
483
+ };
484
+ quoteId: string;
485
+ }>;
486
+ export declare type WithdrawBody = z.infer<typeof withdrawBodyParser>;
487
+ export declare const withdrawMetalResponseParser: z.ZodObject<{
488
+ success: z.ZodBoolean;
489
+ id: z.ZodString;
490
+ }, {
491
+ strict: true;
492
+ }, {
493
+ success: boolean;
494
+ id: string;
495
+ }>;
496
+ export declare type WithdrawMetalResponse = z.infer<typeof withdrawMetalResponseParser>;
497
+ export declare const withdrawalFeeQuoteParser: z.ZodObject<{
498
+ quoteId: z.ZodString;
499
+ estimatedFee: z.ZodString;
500
+ currency: z.ZodString;
501
+ network: z.ZodString;
502
+ }, {
503
+ strict: true;
504
+ }, {
505
+ quoteId: string;
506
+ estimatedFee: string;
507
+ currency: string;
508
+ network: string;
509
+ }>;
510
+ export declare type WithdrawalFeeQuote = z.infer<typeof withdrawalFeeQuoteParser>;
511
+ export {};
@@ -0,0 +1,70 @@
1
+ import * as z from 'zod';
2
+ export declare const withdrawHistoryMetalSwapParser: z.ZodObject<{
3
+ id: z.ZodString;
4
+ status: z.ZodString;
5
+ amount: z.ZodString;
6
+ currency: z.ZodString;
7
+ network: z.ZodString;
8
+ created: z.ZodString;
9
+ withdrawalAddress: z.ZodString;
10
+ withdrawalHash: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
11
+ }, {
12
+ strict: true;
13
+ }, {
14
+ withdrawalHash?: string | undefined;
15
+ id: string;
16
+ status: string;
17
+ amount: string;
18
+ currency: string;
19
+ network: string;
20
+ created: string;
21
+ withdrawalAddress: string;
22
+ }>;
23
+ export declare type WithdrawHistoryMetalSwap = z.infer<typeof withdrawHistoryMetalSwapParser>;
24
+ export declare const withdrawHistoryMetalResponseParser: z.ZodObject<{
25
+ swaps: z.ZodArray<z.ZodObject<{
26
+ id: z.ZodString;
27
+ status: z.ZodString;
28
+ amount: z.ZodString;
29
+ currency: z.ZodString;
30
+ network: z.ZodString;
31
+ created: z.ZodString;
32
+ withdrawalAddress: z.ZodString;
33
+ withdrawalHash: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
34
+ }, {
35
+ strict: true;
36
+ }, {
37
+ withdrawalHash?: string | undefined;
38
+ id: string;
39
+ status: string;
40
+ amount: string;
41
+ currency: string;
42
+ network: string;
43
+ created: string;
44
+ withdrawalAddress: string;
45
+ }>>;
46
+ page: z.ZodNumber;
47
+ pageSize: z.ZodNumber;
48
+ numberOfElements: z.ZodNumber;
49
+ totalPages: z.ZodNumber;
50
+ totalElements: z.ZodNumber;
51
+ }, {
52
+ strict: true;
53
+ }, {
54
+ swaps: {
55
+ withdrawalHash?: string | undefined;
56
+ id: string;
57
+ status: string;
58
+ amount: string;
59
+ currency: string;
60
+ network: string;
61
+ created: string;
62
+ withdrawalAddress: string;
63
+ }[];
64
+ page: number;
65
+ pageSize: number;
66
+ numberOfElements: number;
67
+ totalPages: number;
68
+ totalElements: number;
69
+ }>;
70
+ export declare type WithdrawHistoryMetalResponse = z.infer<typeof withdrawHistoryMetalResponseParser>;
@@ -0,0 +1,85 @@
1
+ import * as z from 'zod';
2
+ export declare enum Status {
3
+ PENDING = "pending",
4
+ SUCCESS = "success",
5
+ FAIL = "fail",
6
+ PROCESSING = "processing"
7
+ }
8
+ export declare const wrapStartParser: z.ZodObject<{
9
+ balance: z.ZodObject<{
10
+ quantity: z.ZodString;
11
+ contract: z.ZodString;
12
+ }, {
13
+ strict: true;
14
+ }, {
15
+ quantity: string;
16
+ contract: string;
17
+ }>;
18
+ id: z.ZodString;
19
+ txid: z.ZodString;
20
+ chain: z.ZodString;
21
+ deposit_address: z.ZodString;
22
+ confirmations: z.ZodNumber;
23
+ }, {
24
+ strict: true;
25
+ }, {
26
+ balance: {
27
+ quantity: string;
28
+ contract: string;
29
+ };
30
+ id: string;
31
+ txid: string;
32
+ chain: string;
33
+ deposit_address: string;
34
+ confirmations: number;
35
+ }>;
36
+ export declare type WrapStart = z.infer<typeof wrapStartParser>;
37
+ export declare const wrapSetConfParser: z.ZodObject<{
38
+ wrap_hash: z.ZodString;
39
+ confirmations: z.ZodNumber;
40
+ }, {
41
+ strict: true;
42
+ }, {
43
+ confirmations: number;
44
+ wrap_hash: string;
45
+ }>;
46
+ export declare type WrapSetConf = z.infer<typeof wrapSetConfParser>;
47
+ export declare const wrapParser: z.ZodObject<{
48
+ index: z.ZodNumber;
49
+ proton_account: z.ZodString;
50
+ balance: z.ZodObject<{
51
+ quantity: z.ZodString;
52
+ contract: z.ZodString;
53
+ }, {
54
+ strict: true;
55
+ }, {
56
+ quantity: string;
57
+ contract: string;
58
+ }>;
59
+ id: z.ZodString;
60
+ txid: z.ZodString;
61
+ chain: z.ZodString;
62
+ deposit_address: z.ZodString;
63
+ status: z.ZodNativeEnum<typeof Status>;
64
+ finish_txid: z.ZodString;
65
+ wrap_hash: z.ZodString;
66
+ confirmations: z.ZodNumber;
67
+ }, {
68
+ strict: true;
69
+ }, {
70
+ balance: {
71
+ quantity: string;
72
+ contract: string;
73
+ };
74
+ id: string;
75
+ txid: string;
76
+ chain: string;
77
+ deposit_address: string;
78
+ confirmations: number;
79
+ wrap_hash: string;
80
+ index: number;
81
+ proton_account: string;
82
+ status: Status;
83
+ finish_txid: string;
84
+ }>;
85
+ export declare type Wrap = z.infer<typeof wrapParser>;