@proton/wrap-constants 0.2.23 → 0.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/parsers/index.d.ts +1 -0
- package/dist/parsers/login.d.ts +24 -24
- package/dist/wrap-constants.cjs.development.js +6 -0
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +6 -1
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/parsers/index.ts +2 -1
package/dist/parsers/index.d.ts
CHANGED
package/dist/parsers/login.d.ts
CHANGED
|
@@ -76,20 +76,20 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
76
76
|
permission: string;
|
|
77
77
|
}>, "many">;
|
|
78
78
|
}, "strip", z.ZodTypeAny, {
|
|
79
|
-
account: string;
|
|
80
79
|
data: {
|
|
81
80
|
[x: string]: any;
|
|
82
81
|
};
|
|
82
|
+
account: string;
|
|
83
83
|
name: string;
|
|
84
84
|
authorization: {
|
|
85
85
|
actor: string;
|
|
86
86
|
permission: string;
|
|
87
87
|
}[];
|
|
88
88
|
}, {
|
|
89
|
-
account: string;
|
|
90
89
|
data: {
|
|
91
90
|
[x: string]: any;
|
|
92
91
|
};
|
|
92
|
+
account: string;
|
|
93
93
|
name: string;
|
|
94
94
|
authorization: {
|
|
95
95
|
actor: string;
|
|
@@ -214,20 +214,20 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
214
214
|
permission: string;
|
|
215
215
|
}>, "many">;
|
|
216
216
|
}, "strip", z.ZodTypeAny, {
|
|
217
|
-
account: string;
|
|
218
217
|
data: string | {
|
|
219
218
|
[x: string]: any;
|
|
220
219
|
};
|
|
220
|
+
account: string;
|
|
221
221
|
name: string;
|
|
222
222
|
authorization: {
|
|
223
223
|
actor: string;
|
|
224
224
|
permission: string;
|
|
225
225
|
}[];
|
|
226
226
|
}, {
|
|
227
|
-
account: string;
|
|
228
227
|
data: string | {
|
|
229
228
|
[x: string]: any;
|
|
230
229
|
};
|
|
230
|
+
account: string;
|
|
231
231
|
name: string;
|
|
232
232
|
authorization: {
|
|
233
233
|
actor: string;
|
|
@@ -253,10 +253,10 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
253
253
|
}[];
|
|
254
254
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
255
255
|
actions: {
|
|
256
|
-
account: string;
|
|
257
256
|
data: string | {
|
|
258
257
|
[x: string]: any;
|
|
259
258
|
};
|
|
259
|
+
account: string;
|
|
260
260
|
name: string;
|
|
261
261
|
authorization: {
|
|
262
262
|
actor: string;
|
|
@@ -282,10 +282,10 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
282
282
|
}[];
|
|
283
283
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
284
284
|
actions: {
|
|
285
|
-
account: string;
|
|
286
285
|
data: string | {
|
|
287
286
|
[x: string]: any;
|
|
288
287
|
};
|
|
288
|
+
account: string;
|
|
289
289
|
name: string;
|
|
290
290
|
authorization: {
|
|
291
291
|
actor: string;
|
|
@@ -332,10 +332,10 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
332
332
|
}[];
|
|
333
333
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
334
334
|
actions: {
|
|
335
|
-
account: string;
|
|
336
335
|
data: string | {
|
|
337
336
|
[x: string]: any;
|
|
338
337
|
};
|
|
338
|
+
account: string;
|
|
339
339
|
name: string;
|
|
340
340
|
authorization: {
|
|
341
341
|
actor: string;
|
|
@@ -382,10 +382,10 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
382
382
|
}[];
|
|
383
383
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
384
384
|
actions: {
|
|
385
|
-
account: string;
|
|
386
385
|
data: string | {
|
|
387
386
|
[x: string]: any;
|
|
388
387
|
};
|
|
388
|
+
account: string;
|
|
389
389
|
name: string;
|
|
390
390
|
authorization: {
|
|
391
391
|
actor: string;
|
|
@@ -405,7 +405,6 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
405
405
|
permission: string;
|
|
406
406
|
}>, "many">;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
|
-
account: "webauthn";
|
|
409
408
|
data: {
|
|
410
409
|
account: string;
|
|
411
410
|
key: {
|
|
@@ -445,10 +444,10 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
445
444
|
}[];
|
|
446
445
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
447
446
|
actions: {
|
|
448
|
-
account: string;
|
|
449
447
|
data: string | {
|
|
450
448
|
[x: string]: any;
|
|
451
449
|
};
|
|
450
|
+
account: string;
|
|
452
451
|
name: string;
|
|
453
452
|
authorization: {
|
|
454
453
|
actor: string;
|
|
@@ -457,13 +456,13 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
457
456
|
}[];
|
|
458
457
|
};
|
|
459
458
|
};
|
|
459
|
+
account: "webauthn";
|
|
460
460
|
name: "exec";
|
|
461
461
|
authorization: {
|
|
462
462
|
actor: string;
|
|
463
463
|
permission: string;
|
|
464
464
|
}[];
|
|
465
465
|
}, {
|
|
466
|
-
account: "webauthn";
|
|
467
466
|
data: {
|
|
468
467
|
account: string;
|
|
469
468
|
key: {
|
|
@@ -503,10 +502,10 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
503
502
|
}[];
|
|
504
503
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
505
504
|
actions: {
|
|
506
|
-
account: string;
|
|
507
505
|
data: string | {
|
|
508
506
|
[x: string]: any;
|
|
509
507
|
};
|
|
508
|
+
account: string;
|
|
510
509
|
name: string;
|
|
511
510
|
authorization: {
|
|
512
511
|
actor: string;
|
|
@@ -515,6 +514,7 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
515
514
|
}[];
|
|
516
515
|
};
|
|
517
516
|
};
|
|
517
|
+
account: "webauthn";
|
|
518
518
|
name: "exec";
|
|
519
519
|
authorization: {
|
|
520
520
|
actor: string;
|
|
@@ -540,17 +540,16 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
540
540
|
}[];
|
|
541
541
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
542
542
|
actions: ({
|
|
543
|
-
account: string;
|
|
544
543
|
data: {
|
|
545
544
|
[x: string]: any;
|
|
546
545
|
};
|
|
546
|
+
account: string;
|
|
547
547
|
name: string;
|
|
548
548
|
authorization: {
|
|
549
549
|
actor: string;
|
|
550
550
|
permission: string;
|
|
551
551
|
}[];
|
|
552
552
|
} | {
|
|
553
|
-
account: "webauthn";
|
|
554
553
|
data: {
|
|
555
554
|
account: string;
|
|
556
555
|
key: {
|
|
@@ -590,10 +589,10 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
590
589
|
}[];
|
|
591
590
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
592
591
|
actions: {
|
|
593
|
-
account: string;
|
|
594
592
|
data: string | {
|
|
595
593
|
[x: string]: any;
|
|
596
594
|
};
|
|
595
|
+
account: string;
|
|
597
596
|
name: string;
|
|
598
597
|
authorization: {
|
|
599
598
|
actor: string;
|
|
@@ -602,6 +601,7 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
602
601
|
}[];
|
|
603
602
|
};
|
|
604
603
|
};
|
|
604
|
+
account: "webauthn";
|
|
605
605
|
name: "exec";
|
|
606
606
|
authorization: {
|
|
607
607
|
actor: string;
|
|
@@ -627,17 +627,16 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
627
627
|
}[];
|
|
628
628
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
629
629
|
actions: ({
|
|
630
|
-
account: string;
|
|
631
630
|
data: {
|
|
632
631
|
[x: string]: any;
|
|
633
632
|
};
|
|
633
|
+
account: string;
|
|
634
634
|
name: string;
|
|
635
635
|
authorization: {
|
|
636
636
|
actor: string;
|
|
637
637
|
permission: string;
|
|
638
638
|
}[];
|
|
639
639
|
} | {
|
|
640
|
-
account: "webauthn";
|
|
641
640
|
data: {
|
|
642
641
|
account: string;
|
|
643
642
|
key: {
|
|
@@ -677,10 +676,10 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
677
676
|
}[];
|
|
678
677
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
679
678
|
actions: {
|
|
680
|
-
account: string;
|
|
681
679
|
data: string | {
|
|
682
680
|
[x: string]: any;
|
|
683
681
|
};
|
|
682
|
+
account: string;
|
|
684
683
|
name: string;
|
|
685
684
|
authorization: {
|
|
686
685
|
actor: string;
|
|
@@ -689,6 +688,7 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
689
688
|
}[];
|
|
690
689
|
};
|
|
691
690
|
};
|
|
691
|
+
account: "webauthn";
|
|
692
692
|
name: "exec";
|
|
693
693
|
authorization: {
|
|
694
694
|
actor: string;
|
|
@@ -723,17 +723,16 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
723
723
|
}[];
|
|
724
724
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
725
725
|
actions: ({
|
|
726
|
-
account: string;
|
|
727
726
|
data: {
|
|
728
727
|
[x: string]: any;
|
|
729
728
|
};
|
|
729
|
+
account: string;
|
|
730
730
|
name: string;
|
|
731
731
|
authorization: {
|
|
732
732
|
actor: string;
|
|
733
733
|
permission: string;
|
|
734
734
|
}[];
|
|
735
735
|
} | {
|
|
736
|
-
account: "webauthn";
|
|
737
736
|
data: {
|
|
738
737
|
account: string;
|
|
739
738
|
key: {
|
|
@@ -773,10 +772,10 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
773
772
|
}[];
|
|
774
773
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
775
774
|
actions: {
|
|
776
|
-
account: string;
|
|
777
775
|
data: string | {
|
|
778
776
|
[x: string]: any;
|
|
779
777
|
};
|
|
778
|
+
account: string;
|
|
780
779
|
name: string;
|
|
781
780
|
authorization: {
|
|
782
781
|
actor: string;
|
|
@@ -785,6 +784,7 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
785
784
|
}[];
|
|
786
785
|
};
|
|
787
786
|
};
|
|
787
|
+
account: "webauthn";
|
|
788
788
|
name: "exec";
|
|
789
789
|
authorization: {
|
|
790
790
|
actor: string;
|
|
@@ -819,17 +819,16 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
819
819
|
}[];
|
|
820
820
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
821
821
|
actions: ({
|
|
822
|
-
account: string;
|
|
823
822
|
data: {
|
|
824
823
|
[x: string]: any;
|
|
825
824
|
};
|
|
825
|
+
account: string;
|
|
826
826
|
name: string;
|
|
827
827
|
authorization: {
|
|
828
828
|
actor: string;
|
|
829
829
|
permission: string;
|
|
830
830
|
}[];
|
|
831
831
|
} | {
|
|
832
|
-
account: "webauthn";
|
|
833
832
|
data: {
|
|
834
833
|
account: string;
|
|
835
834
|
key: {
|
|
@@ -869,10 +868,10 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
869
868
|
}[];
|
|
870
869
|
transaction_extensions: ((string | number)[] | undefined)[];
|
|
871
870
|
actions: {
|
|
872
|
-
account: string;
|
|
873
871
|
data: string | {
|
|
874
872
|
[x: string]: any;
|
|
875
873
|
};
|
|
874
|
+
account: string;
|
|
876
875
|
name: string;
|
|
877
876
|
authorization: {
|
|
878
877
|
actor: string;
|
|
@@ -881,6 +880,7 @@ export declare const loginAccountParamsV3Parser: z.ZodObject<z.extendShape<{
|
|
|
881
880
|
}[];
|
|
882
881
|
};
|
|
883
882
|
};
|
|
883
|
+
account: "webauthn";
|
|
884
884
|
name: "exec";
|
|
885
885
|
authorization: {
|
|
886
886
|
actor: string;
|
|
@@ -1581,6 +1581,11 @@ var TOPICS = (_TOPICS = {}, _TOPICS[exports.ITopics.TRADES] = {
|
|
|
1581
1581
|
topic: exports.ITopics.ORDERS
|
|
1582
1582
|
}, _TOPICS);
|
|
1583
1583
|
|
|
1584
|
+
var loginAccountParamsV3Parser = /*#__PURE__*/z.z.object({
|
|
1585
|
+
email: z.z.string().optional(),
|
|
1586
|
+
verificationCode: z.z.string().optional()
|
|
1587
|
+
}).merge(generateAuthParser);
|
|
1588
|
+
|
|
1584
1589
|
var isSameToken = function isSameToken(token1, token2) {
|
|
1585
1590
|
return token1.xtokenSymbol === token2.xtokenSymbol && token1.xtokenPrecision === token2.xtokenPrecision && token1.xtokenContract === token2.xtokenContract;
|
|
1586
1591
|
};
|
|
@@ -1914,6 +1919,7 @@ exports.initializeCoins = initializeCoins;
|
|
|
1914
1919
|
exports.initializeConstants = initializeConstants;
|
|
1915
1920
|
exports.isInputInvalid = isInputInvalid;
|
|
1916
1921
|
exports.isSameToken = isSameToken;
|
|
1922
|
+
exports.loginAccountParamsV3Parser = loginAccountParamsV3Parser;
|
|
1917
1923
|
exports.median = median;
|
|
1918
1924
|
exports.ohlcvParser = ohlcvParser;
|
|
1919
1925
|
exports.orderHistoryParser = orderHistoryParser;
|