@proton/wrap-constants 0.0.46 → 0.0.49

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.
@@ -3,8 +3,9 @@ export declare const accountParser: z.ZodString;
3
3
  export declare const authorizationParser: z.ZodObject<{
4
4
  actor: z.ZodString;
5
5
  permission: z.ZodString;
6
- }, {
7
- strict: true;
6
+ }, "strip", z.ZodTypeAny, {
7
+ actor: string;
8
+ permission: string;
8
9
  }, {
9
10
  actor: string;
10
11
  permission: string;
@@ -13,18 +14,20 @@ export declare type Authorization = z.infer<typeof authorizationParser>;
13
14
  export declare const authorizationsParser: z.ZodArray<z.ZodObject<{
14
15
  actor: z.ZodString;
15
16
  permission: z.ZodString;
16
- }, {
17
- strict: true;
17
+ }, "strip", z.ZodTypeAny, {
18
+ actor: string;
19
+ permission: string;
18
20
  }, {
19
21
  actor: string;
20
22
  permission: string;
21
- }>>;
23
+ }>, "many">;
22
24
  export declare type Authorizations = z.infer<typeof authorizationsParser>;
23
25
  export declare const ExtendedAssetParser: z.ZodObject<{
24
26
  quantity: z.ZodString;
25
27
  contract: z.ZodString;
26
- }, {
27
- strict: true;
28
+ }, "strip", z.ZodTypeAny, {
29
+ quantity: string;
30
+ contract: string;
28
31
  }, {
29
32
  quantity: string;
30
33
  contract: string;
@@ -14,8 +14,13 @@ export declare const rateParser: z.ZodObject<{
14
14
  marketCap: z.ZodNumber;
15
15
  volume: z.ZodNumber;
16
16
  timestamp: z.ZodNumber;
17
- }, {
18
- strict: true;
17
+ }, "strip", z.ZodTypeAny, {
18
+ counterCurrency: string;
19
+ price: number;
20
+ priceChangePercent: number;
21
+ marketCap: number;
22
+ volume: number;
23
+ timestamp: number;
19
24
  }, {
20
25
  counterCurrency: string;
21
26
  price: number;
@@ -36,8 +41,13 @@ export declare const exchangeRateParser: z.ZodObject<{
36
41
  marketCap: z.ZodNumber;
37
42
  volume: z.ZodNumber;
38
43
  timestamp: z.ZodNumber;
39
- }, {
40
- strict: true;
44
+ }, "strip", z.ZodTypeAny, {
45
+ counterCurrency: string;
46
+ price: number;
47
+ priceChangePercent: number;
48
+ marketCap: number;
49
+ volume: number;
50
+ timestamp: number;
41
51
  }, {
42
52
  counterCurrency: string;
43
53
  price: number;
@@ -45,9 +55,19 @@ export declare const exchangeRateParser: z.ZodObject<{
45
55
  marketCap: number;
46
56
  volume: number;
47
57
  timestamp: number;
48
- }>>;
49
- }, {
50
- strict: true;
58
+ }>, "many">;
59
+ }, "strip", z.ZodTypeAny, {
60
+ symbol: string;
61
+ contract: string;
62
+ rank: number;
63
+ rates: {
64
+ counterCurrency: string;
65
+ price: number;
66
+ priceChangePercent: number;
67
+ marketCap: number;
68
+ volume: number;
69
+ timestamp: number;
70
+ }[];
51
71
  }, {
52
72
  symbol: string;
53
73
  contract: string;
@@ -73,8 +93,13 @@ export declare const exchangeRatesParser: z.ZodArray<z.ZodObject<{
73
93
  marketCap: z.ZodNumber;
74
94
  volume: z.ZodNumber;
75
95
  timestamp: z.ZodNumber;
76
- }, {
77
- strict: true;
96
+ }, "strip", z.ZodTypeAny, {
97
+ counterCurrency: string;
98
+ price: number;
99
+ priceChangePercent: number;
100
+ marketCap: number;
101
+ volume: number;
102
+ timestamp: number;
78
103
  }, {
79
104
  counterCurrency: string;
80
105
  price: number;
@@ -82,9 +107,19 @@ export declare const exchangeRatesParser: z.ZodArray<z.ZodObject<{
82
107
  marketCap: number;
83
108
  volume: number;
84
109
  timestamp: number;
85
- }>>;
86
- }, {
87
- strict: true;
110
+ }>, "many">;
111
+ }, "strip", z.ZodTypeAny, {
112
+ symbol: string;
113
+ contract: string;
114
+ rank: number;
115
+ rates: {
116
+ counterCurrency: string;
117
+ price: number;
118
+ priceChangePercent: number;
119
+ marketCap: number;
120
+ volume: number;
121
+ timestamp: number;
122
+ }[];
88
123
  }, {
89
124
  symbol: string;
90
125
  contract: string;
@@ -97,5 +132,5 @@ export declare const exchangeRatesParser: z.ZodArray<z.ZodObject<{
97
132
  volume: number;
98
133
  timestamp: number;
99
134
  }[];
100
- }>>;
135
+ }>, "many">;
101
136
  export declare type ExchangeRates = z.infer<typeof exchangeRatesParser>;
@@ -9,11 +9,15 @@ export declare const depositBodyParser: z.ZodObject<{
9
9
  hash: z.ZodString;
10
10
  coin: z.ZodString;
11
11
  wallet: z.ZodString;
12
- }, {
13
- strict: true;
14
- }, {
12
+ }, "strip", z.ZodTypeAny, {
13
+ id: string;
15
14
  type: Type;
15
+ hash: string;
16
+ coin: string;
17
+ wallet: string;
18
+ }, {
16
19
  id: string;
20
+ type: Type;
17
21
  hash: string;
18
22
  coin: string;
19
23
  wallet: string;
@@ -29,18 +33,28 @@ export declare const transactionParser: z.ZodObject<{
29
33
  state: z.ZodString;
30
34
  confirmations: z.ZodNumber;
31
35
  hash: z.ZodString;
32
- blockHash: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodUndefined]>, z.ZodNull]>;
33
- blockHeight: z.ZodUnion<[z.ZodUnion<[z.ZodNumber, z.ZodUndefined]>, z.ZodNull]>;
34
- }, {
35
- strict: true;
36
- }, {
36
+ blockHash: z.ZodNullable<z.ZodOptional<z.ZodString>>;
37
+ blockHeight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
38
+ }, "strip", z.ZodTypeAny, {
37
39
  blockHash?: string | null | undefined;
38
40
  blockHeight?: number | null | undefined;
39
- type: Type;
40
41
  id: string;
42
+ type: Type;
43
+ value: number;
41
44
  hash: string;
42
45
  wallet: string;
46
+ valueString: string;
47
+ address: string;
48
+ state: string;
49
+ confirmations: number;
50
+ }, {
51
+ blockHash?: string | null | undefined;
52
+ blockHeight?: number | null | undefined;
53
+ id: string;
54
+ type: Type;
43
55
  value: number;
56
+ hash: string;
57
+ wallet: string;
44
58
  valueString: string;
45
59
  address: string;
46
60
  state: string;
@@ -2,9 +2,11 @@ import * as z from 'zod';
2
2
  export declare const otcOrderResponseParser: z.ZodObject<{
3
3
  success: z.ZodBoolean;
4
4
  transaction_id: z.ZodString;
5
- errormsg: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
6
- }, {
7
- strict: true;
5
+ errormsg: z.ZodOptional<z.ZodString>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ errormsg?: string | undefined;
8
+ success: boolean;
9
+ transaction_id: string;
8
10
  }, {
9
11
  errormsg?: string | undefined;
10
12
  success: boolean;
@@ -15,8 +17,10 @@ export declare const otcQuoteBodyParser: z.ZodObject<{
15
17
  baseAmount: z.ZodNumber;
16
18
  baseSymbol: z.ZodString;
17
19
  quoteSymbol: z.ZodString;
18
- }, {
19
- strict: true;
20
+ }, "strip", z.ZodTypeAny, {
21
+ baseAmount: number;
22
+ baseSymbol: string;
23
+ quoteSymbol: string;
20
24
  }, {
21
25
  baseAmount: number;
22
26
  baseSymbol: string;
@@ -27,9 +31,12 @@ export declare const otcQuoteResponseParser: z.ZodObject<{
27
31
  success: z.ZodBoolean;
28
32
  token: z.ZodString;
29
33
  qty: z.ZodNumber;
30
- errormsg: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
31
- }, {
32
- strict: true;
34
+ errormsg: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ errormsg?: string | undefined;
37
+ success: boolean;
38
+ token: string;
39
+ qty: number;
33
40
  }, {
34
41
  errormsg?: string | undefined;
35
42
  success: boolean;