@argent/x-shared 1.34.1 → 1.34.2

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.
@@ -57,6 +57,31 @@ export declare const knownDappSchema: z.ZodObject<{
57
57
  supportedApps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
58
58
  brandColor: z.ZodOptional<z.ZodString>;
59
59
  executeFromOutsideAllowed: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
60
+ sessionConfig: z.ZodOptional<z.ZodObject<{
61
+ maxExpiryDays: z.ZodNumber;
62
+ allowList: z.ZodArray<z.ZodObject<{
63
+ contractAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
64
+ methods: z.ZodArray<z.ZodString, "many">;
65
+ }, "strip", z.ZodTypeAny, {
66
+ contractAddress: `0x${string}`;
67
+ methods: string[];
68
+ }, {
69
+ contractAddress: string;
70
+ methods: string[];
71
+ }>, "many">;
72
+ }, "strip", z.ZodTypeAny, {
73
+ maxExpiryDays: number;
74
+ allowList: {
75
+ contractAddress: `0x${string}`;
76
+ methods: string[];
77
+ }[];
78
+ }, {
79
+ maxExpiryDays: number;
80
+ allowList: {
81
+ contractAddress: string;
82
+ methods: string[];
83
+ }[];
84
+ }>>;
60
85
  }, "strip", z.ZodTypeAny, {
61
86
  name: string;
62
87
  dappId: string;
@@ -78,6 +103,13 @@ export declare const knownDappSchema: z.ZodObject<{
78
103
  supportedApps?: string[] | undefined;
79
104
  brandColor?: string | undefined;
80
105
  executeFromOutsideAllowed?: boolean | undefined;
106
+ sessionConfig?: {
107
+ maxExpiryDays: number;
108
+ allowList: {
109
+ contractAddress: `0x${string}`;
110
+ methods: string[];
111
+ }[];
112
+ } | undefined;
81
113
  }, {
82
114
  name: string;
83
115
  dappId: string;
@@ -99,6 +131,13 @@ export declare const knownDappSchema: z.ZodObject<{
99
131
  supportedApps?: string[] | undefined;
100
132
  brandColor?: string | undefined;
101
133
  executeFromOutsideAllowed?: boolean | undefined;
134
+ sessionConfig?: {
135
+ maxExpiryDays: number;
136
+ allowList: {
137
+ contractAddress: string;
138
+ methods: string[];
139
+ }[];
140
+ } | undefined;
102
141
  }>;
103
142
  export declare const knownDappsSchema: z.ZodArray<z.ZodObject<{
104
143
  dappId: z.ZodString;
@@ -135,6 +174,31 @@ export declare const knownDappsSchema: z.ZodArray<z.ZodObject<{
135
174
  supportedApps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
175
  brandColor: z.ZodOptional<z.ZodString>;
137
176
  executeFromOutsideAllowed: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
177
+ sessionConfig: z.ZodOptional<z.ZodObject<{
178
+ maxExpiryDays: z.ZodNumber;
179
+ allowList: z.ZodArray<z.ZodObject<{
180
+ contractAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
181
+ methods: z.ZodArray<z.ZodString, "many">;
182
+ }, "strip", z.ZodTypeAny, {
183
+ contractAddress: `0x${string}`;
184
+ methods: string[];
185
+ }, {
186
+ contractAddress: string;
187
+ methods: string[];
188
+ }>, "many">;
189
+ }, "strip", z.ZodTypeAny, {
190
+ maxExpiryDays: number;
191
+ allowList: {
192
+ contractAddress: `0x${string}`;
193
+ methods: string[];
194
+ }[];
195
+ }, {
196
+ maxExpiryDays: number;
197
+ allowList: {
198
+ contractAddress: string;
199
+ methods: string[];
200
+ }[];
201
+ }>>;
138
202
  }, "strip", z.ZodTypeAny, {
139
203
  name: string;
140
204
  dappId: string;
@@ -156,6 +220,13 @@ export declare const knownDappsSchema: z.ZodArray<z.ZodObject<{
156
220
  supportedApps?: string[] | undefined;
157
221
  brandColor?: string | undefined;
158
222
  executeFromOutsideAllowed?: boolean | undefined;
223
+ sessionConfig?: {
224
+ maxExpiryDays: number;
225
+ allowList: {
226
+ contractAddress: `0x${string}`;
227
+ methods: string[];
228
+ }[];
229
+ } | undefined;
159
230
  }, {
160
231
  name: string;
161
232
  dappId: string;
@@ -177,6 +248,13 @@ export declare const knownDappsSchema: z.ZodArray<z.ZodObject<{
177
248
  supportedApps?: string[] | undefined;
178
249
  brandColor?: string | undefined;
179
250
  executeFromOutsideAllowed?: boolean | undefined;
251
+ sessionConfig?: {
252
+ maxExpiryDays: number;
253
+ allowList: {
254
+ contractAddress: string;
255
+ methods: string[];
256
+ }[];
257
+ } | undefined;
180
258
  }>, "many">;
181
259
  export type KnownDapp = z.infer<typeof knownDappSchema>;
182
260
  export type KnownDapps = z.infer<typeof knownDappsSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.34.1",
3
+ "version": "1.34.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"