@proton/wrap-constants 0.0.31 → 0.0.35

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