@dynamic-labs/wallet-book 0.19.0-alpha.8 → 0.19.0

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.
Files changed (96) hide show
  1. package/CHANGELOG.md +321 -0
  2. package/README.md +34 -0
  3. package/package.json +3 -3
  4. package/src/build/index.d.ts +50 -41
  5. package/src/build/sources/firstParty/index.d.ts +2 -2
  6. package/src/build/sources/index.d.ts +4 -4
  7. package/src/build/sources/walletConnect/index.d.ts +100 -91
  8. package/src/build/sources/walletConnect/preprocessors.d.ts +13 -13
  9. package/src/build/sources/walletConnectOverrides/index.d.ts +249 -249
  10. package/src/build/sources/walletGroups/index.d.ts +2 -2
  11. package/src/components/WalletBookContext.cjs +3 -3
  12. package/src/components/WalletBookContext.d.ts +9 -9
  13. package/src/components/WalletBookContext.js +3 -3
  14. package/src/components/WalletIcon.cjs +19 -19
  15. package/src/components/WalletIcon.d.ts +8 -8
  16. package/src/components/WalletIcon.js +19 -19
  17. package/src/components/index.d.ts +2 -2
  18. package/src/helpers/findWalletBookWallet.cjs +9 -9
  19. package/src/helpers/findWalletBookWallet.d.ts +44 -35
  20. package/src/helpers/findWalletBookWallet.js +9 -9
  21. package/src/helpers/findWalletGroup.cjs +8 -8
  22. package/src/helpers/findWalletGroup.d.ts +11 -11
  23. package/src/helpers/findWalletGroup.js +8 -8
  24. package/src/helpers/getWalletBookCdnUrl.cjs +8 -8
  25. package/src/helpers/getWalletBookCdnUrl.d.ts +1 -1
  26. package/src/helpers/getWalletBookCdnUrl.js +8 -8
  27. package/src/helpers/getWalletBookWallet.cjs +6 -6
  28. package/src/helpers/getWalletBookWallet.d.ts +2 -2
  29. package/src/helpers/getWalletBookWallet.js +6 -6
  30. package/src/helpers/getWalletGroup.cjs +5 -5
  31. package/src/helpers/getWalletGroup.d.ts +3 -3
  32. package/src/helpers/getWalletGroup.js +5 -5
  33. package/src/helpers/getWalletIconUrl.cjs +23 -23
  34. package/src/helpers/getWalletIconUrl.d.ts +3 -3
  35. package/src/helpers/getWalletIconUrl.js +23 -23
  36. package/src/helpers/getWalletLinks.cjs +26 -26
  37. package/src/helpers/getWalletLinks.d.ts +10 -10
  38. package/src/helpers/getWalletLinks.js +26 -26
  39. package/src/helpers/getWalletPrimaryColor.cjs +3 -3
  40. package/src/helpers/getWalletPrimaryColor.d.ts +2 -2
  41. package/src/helpers/getWalletPrimaryColor.js +3 -3
  42. package/src/helpers/index.d.ts +11 -11
  43. package/src/helpers/logger.d.ts +2 -2
  44. package/src/helpers/normalizeWalletName.d.ts +1 -1
  45. package/src/helpers/renderTemplate.cjs +13 -13
  46. package/src/helpers/renderTemplate.d.ts +12 -12
  47. package/src/helpers/renderTemplate.js +13 -13
  48. package/src/hooks/index.d.ts +2 -2
  49. package/src/hooks/useWalletBookCdn.cjs +27 -27
  50. package/src/hooks/useWalletBookCdn.d.ts +55 -46
  51. package/src/hooks/useWalletBookCdn.js +27 -27
  52. package/src/hooks/useWalletBookContext.cjs +6 -6
  53. package/src/hooks/useWalletBookContext.d.ts +1 -1
  54. package/src/hooks/useWalletBookContext.js +6 -6
  55. package/src/index.d.ts +18 -18
  56. package/src/schemas/index.d.ts +3 -3
  57. package/src/schemas/utils/filterEmptyObject.cjs +5 -5
  58. package/src/schemas/utils/filterEmptyObject.d.ts +6 -6
  59. package/src/schemas/utils/filterEmptyObject.js +5 -5
  60. package/src/schemas/utils/nonEmptyString.cjs +3 -3
  61. package/src/schemas/utils/nonEmptyString.d.ts +5 -5
  62. package/src/schemas/utils/nonEmptyString.js +3 -3
  63. package/src/schemas/utils/nonEmptyStringArray.cjs +3 -3
  64. package/src/schemas/utils/nonEmptyStringArray.d.ts +5 -5
  65. package/src/schemas/utils/nonEmptyStringArray.js +3 -3
  66. package/src/schemas/utils/processWalletConnectNativeUrl.d.ts +1 -1
  67. package/src/schemas/utils/sortKeys.d.ts +5 -5
  68. package/src/schemas/utils/transformAndroidId.cjs +16 -16
  69. package/src/schemas/utils/transformAndroidId.d.ts +1 -1
  70. package/src/schemas/utils/transformAndroidId.js +16 -16
  71. package/src/schemas/utils/transformChromeExtensionId.cjs +13 -13
  72. package/src/schemas/utils/transformChromeExtensionId.d.ts +1 -1
  73. package/src/schemas/utils/transformChromeExtensionId.js +13 -13
  74. package/src/schemas/utils/transformEdgeExtensionId.cjs +13 -13
  75. package/src/schemas/utils/transformEdgeExtensionId.d.ts +1 -1
  76. package/src/schemas/utils/transformEdgeExtensionId.js +13 -13
  77. package/src/schemas/utils/transformFirefoxExtensionId.cjs +13 -13
  78. package/src/schemas/utils/transformFirefoxExtensionId.d.ts +1 -1
  79. package/src/schemas/utils/transformFirefoxExtensionId.js +13 -13
  80. package/src/schemas/utils/transformIosId.cjs +20 -20
  81. package/src/schemas/utils/transformIosId.d.ts +1 -1
  82. package/src/schemas/utils/transformIosId.js +20 -20
  83. package/src/schemas/walletBookSchema.cjs +5 -5
  84. package/src/schemas/walletBookSchema.d.ts +862 -714
  85. package/src/schemas/walletBookSchema.js +5 -5
  86. package/src/schemas/walletConnectSourceSchema.cjs +64 -64
  87. package/src/schemas/walletConnectSourceSchema.d.ts +504 -504
  88. package/src/schemas/walletConnectSourceSchema.js +64 -64
  89. package/src/schemas/walletGroup.cjs +22 -22
  90. package/src/schemas/walletGroup.d.ts +50 -50
  91. package/src/schemas/walletGroup.js +22 -22
  92. package/src/schemas/walletSchema.cjs +88 -66
  93. package/src/schemas/walletSchema.d.ts +351 -256
  94. package/src/schemas/walletSchema.js +88 -66
  95. package/wallet-book-fallbacks.cjs +82 -1
  96. package/wallet-book-fallbacks.js +82 -1
@@ -1,714 +1,862 @@
1
- import { z } from 'zod';
2
- export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
3
- brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
4
- alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
5
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
6
- primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
7
- spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
8
- }, "strip", z.ZodTypeAny, {
9
- alt?: string | undefined;
10
- imageId?: string | undefined;
11
- primaryColor?: string | undefined;
12
- spriteId?: string | undefined;
13
- }, {
14
- alt?: unknown;
15
- imageId?: unknown;
16
- primaryColor?: unknown;
17
- spriteId?: unknown;
18
- }>>, {
19
- alt?: string | undefined;
20
- imageId?: string | undefined;
21
- primaryColor?: string | undefined;
22
- spriteId?: string | undefined;
23
- } | undefined, {
24
- alt?: unknown;
25
- imageId?: unknown;
26
- primaryColor?: unknown;
27
- spriteId?: unknown;
28
- } | undefined>;
29
- chains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
- desktop: z.ZodEffects<z.ZodOptional<z.ZodObject<{
31
- chromeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
32
- edgeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
33
- firefoxId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
34
- native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
35
- operaId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
36
- safariId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
37
- universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
38
- }, "strip", z.ZodTypeAny, {
39
- chromeId?: string | undefined;
40
- edgeId?: string | undefined;
41
- firefoxId?: string | undefined;
42
- native?: string | undefined;
43
- operaId?: string | undefined;
44
- safariId?: string | undefined;
45
- universal?: string | undefined;
46
- }, {
47
- chromeId?: unknown;
48
- edgeId?: unknown;
49
- firefoxId?: unknown;
50
- native?: unknown;
51
- operaId?: unknown;
52
- safariId?: unknown;
53
- universal?: unknown;
54
- }>>, {
55
- chromeId?: string | undefined;
56
- edgeId?: string | undefined;
57
- firefoxId?: string | undefined;
58
- native?: string | undefined;
59
- operaId?: string | undefined;
60
- safariId?: string | undefined;
61
- universal?: string | undefined;
62
- } | undefined, {
63
- chromeId?: unknown;
64
- edgeId?: unknown;
65
- firefoxId?: unknown;
66
- native?: unknown;
67
- operaId?: unknown;
68
- safariId?: unknown;
69
- universal?: unknown;
70
- } | undefined>;
71
- group: z.ZodOptional<z.ZodString>;
72
- mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
73
- android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
- androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
75
- ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
- iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
77
- native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
78
- universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
79
- }, "strip", z.ZodTypeAny, {
80
- android?: string | null | undefined;
81
- androidId?: string | undefined;
82
- ios?: string | null | undefined;
83
- iosId?: string | undefined;
84
- native?: string | undefined;
85
- universal?: string | undefined;
86
- }, {
87
- android?: string | null | undefined;
88
- androidId?: unknown;
89
- ios?: string | null | undefined;
90
- iosId?: unknown;
91
- native?: unknown;
92
- universal?: unknown;
93
- }>>, {
94
- android?: string | null | undefined;
95
- androidId?: string | undefined;
96
- ios?: string | null | undefined;
97
- iosId?: string | undefined;
98
- native?: string | undefined;
99
- universal?: string | undefined;
100
- } | undefined, {
101
- android?: string | null | undefined;
102
- androidId?: unknown;
103
- ios?: string | null | undefined;
104
- iosId?: unknown;
105
- native?: unknown;
106
- universal?: unknown;
107
- } | undefined>;
108
- name: z.ZodString;
109
- shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
110
- showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
111
- switchNetworkOnlyFromWallet: z.ZodOptional<z.ZodBoolean>;
112
- walletConnect: z.ZodEffects<z.ZodOptional<z.ZodObject<{
113
- sdks: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
114
- }, "strip", z.ZodTypeAny, {
115
- sdks?: string[] | undefined;
116
- }, {
117
- sdks?: unknown;
118
- }>>, {
119
- sdks?: string[] | undefined;
120
- } | undefined, {
121
- sdks?: unknown;
122
- } | undefined>;
123
- }, "strip", z.ZodTypeAny, {
124
- name: string;
125
- brand?: {
126
- alt?: string | undefined;
127
- imageId?: string | undefined;
128
- primaryColor?: string | undefined;
129
- spriteId?: string | undefined;
130
- } | undefined;
131
- chains?: string[] | undefined;
132
- desktop?: {
133
- chromeId?: string | undefined;
134
- edgeId?: string | undefined;
135
- firefoxId?: string | undefined;
136
- native?: string | undefined;
137
- operaId?: string | undefined;
138
- safariId?: string | undefined;
139
- universal?: string | undefined;
140
- } | undefined;
141
- group?: string | undefined;
142
- mobile?: {
143
- android?: string | null | undefined;
144
- androidId?: string | undefined;
145
- ios?: string | null | undefined;
146
- iosId?: string | undefined;
147
- native?: string | undefined;
148
- universal?: string | undefined;
149
- } | undefined;
150
- shortName?: string | undefined;
151
- showOnlyIfInstalled?: boolean | undefined;
152
- switchNetworkOnlyFromWallet?: boolean | undefined;
153
- walletConnect?: {
154
- sdks?: string[] | undefined;
155
- } | undefined;
156
- }, {
157
- name: string;
158
- brand?: {
159
- alt?: unknown;
160
- imageId?: unknown;
161
- primaryColor?: unknown;
162
- spriteId?: unknown;
163
- } | undefined;
164
- chains?: string[] | undefined;
165
- desktop?: {
166
- chromeId?: unknown;
167
- edgeId?: unknown;
168
- firefoxId?: unknown;
169
- native?: unknown;
170
- operaId?: unknown;
171
- safariId?: unknown;
172
- universal?: unknown;
173
- } | undefined;
174
- group?: string | undefined;
175
- mobile?: {
176
- android?: string | null | undefined;
177
- androidId?: unknown;
178
- ios?: string | null | undefined;
179
- iosId?: unknown;
180
- native?: unknown;
181
- universal?: unknown;
182
- } | undefined;
183
- shortName?: unknown;
184
- showOnlyIfInstalled?: boolean | undefined;
185
- switchNetworkOnlyFromWallet?: boolean | undefined;
186
- walletConnect?: {
187
- sdks?: unknown;
188
- } | undefined;
189
- }>, {
190
- name: string;
191
- brand?: {
192
- alt?: string | undefined;
193
- imageId?: string | undefined;
194
- primaryColor?: string | undefined;
195
- spriteId?: string | undefined;
196
- } | undefined;
197
- chains?: string[] | undefined;
198
- desktop?: {
199
- chromeId?: string | undefined;
200
- edgeId?: string | undefined;
201
- firefoxId?: string | undefined;
202
- native?: string | undefined;
203
- operaId?: string | undefined;
204
- safariId?: string | undefined;
205
- universal?: string | undefined;
206
- } | undefined;
207
- group?: string | undefined;
208
- mobile?: {
209
- android?: string | null | undefined;
210
- androidId?: string | undefined;
211
- ios?: string | null | undefined;
212
- iosId?: string | undefined;
213
- native?: string | undefined;
214
- universal?: string | undefined;
215
- } | undefined;
216
- shortName?: string | undefined;
217
- showOnlyIfInstalled?: boolean | undefined;
218
- switchNetworkOnlyFromWallet?: boolean | undefined;
219
- walletConnect?: {
220
- sdks?: string[] | undefined;
221
- } | undefined;
222
- }, unknown>, {
223
- name: string;
224
- brand?: {
225
- alt?: string | undefined;
226
- imageId?: string | undefined;
227
- primaryColor?: string | undefined;
228
- spriteId?: string | undefined;
229
- } | undefined;
230
- chains?: string[] | undefined;
231
- desktop?: {
232
- chromeId?: string | undefined;
233
- edgeId?: string | undefined;
234
- firefoxId?: string | undefined;
235
- native?: string | undefined;
236
- operaId?: string | undefined;
237
- safariId?: string | undefined;
238
- universal?: string | undefined;
239
- } | undefined;
240
- group?: string | undefined;
241
- mobile?: {
242
- android?: string | null | undefined;
243
- androidId?: string | undefined;
244
- ios?: string | null | undefined;
245
- iosId?: string | undefined;
246
- native?: string | undefined;
247
- universal?: string | undefined;
248
- } | undefined;
249
- shortName?: string | undefined;
250
- showOnlyIfInstalled?: boolean | undefined;
251
- switchNetworkOnlyFromWallet?: boolean | undefined;
252
- walletConnect?: {
253
- sdks?: string[] | undefined;
254
- } | undefined;
255
- }, unknown>>;
256
- export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
257
- groups: z.ZodRecord<z.ZodString, z.ZodObject<{
258
- brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
259
- alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
260
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
261
- primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
262
- spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
263
- }, "strip", z.ZodTypeAny, {
264
- alt?: string | undefined;
265
- imageId?: string | undefined;
266
- primaryColor?: string | undefined;
267
- spriteId?: string | undefined;
268
- }, {
269
- alt?: unknown;
270
- imageId?: unknown;
271
- primaryColor?: unknown;
272
- spriteId?: unknown;
273
- }>>, {
274
- alt?: string | undefined;
275
- imageId?: string | undefined;
276
- primaryColor?: string | undefined;
277
- spriteId?: string | undefined;
278
- } | undefined, {
279
- alt?: unknown;
280
- imageId?: unknown;
281
- primaryColor?: unknown;
282
- spriteId?: unknown;
283
- } | undefined>;
284
- key: z.ZodString;
285
- name: z.ZodString;
286
- }, "strip", z.ZodTypeAny, {
287
- name: string;
288
- key: string;
289
- brand?: {
290
- alt?: string | undefined;
291
- imageId?: string | undefined;
292
- primaryColor?: string | undefined;
293
- spriteId?: string | undefined;
294
- } | undefined;
295
- }, {
296
- name: string;
297
- key: string;
298
- brand?: {
299
- alt?: unknown;
300
- imageId?: unknown;
301
- primaryColor?: unknown;
302
- spriteId?: unknown;
303
- } | undefined;
304
- }>>;
305
- wallets: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
306
- brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
307
- alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
308
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
309
- primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
310
- spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
311
- }, "strip", z.ZodTypeAny, {
312
- alt?: string | undefined;
313
- imageId?: string | undefined;
314
- primaryColor?: string | undefined;
315
- spriteId?: string | undefined;
316
- }, {
317
- alt?: unknown;
318
- imageId?: unknown;
319
- primaryColor?: unknown;
320
- spriteId?: unknown;
321
- }>>, {
322
- alt?: string | undefined;
323
- imageId?: string | undefined;
324
- primaryColor?: string | undefined;
325
- spriteId?: string | undefined;
326
- } | undefined, {
327
- alt?: unknown;
328
- imageId?: unknown;
329
- primaryColor?: unknown;
330
- spriteId?: unknown;
331
- } | undefined>;
332
- chains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
333
- desktop: z.ZodEffects<z.ZodOptional<z.ZodObject<{
334
- chromeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
335
- edgeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
336
- firefoxId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
337
- native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
338
- operaId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
339
- safariId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
340
- universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
341
- }, "strip", z.ZodTypeAny, {
342
- chromeId?: string | undefined;
343
- edgeId?: string | undefined;
344
- firefoxId?: string | undefined;
345
- native?: string | undefined;
346
- operaId?: string | undefined;
347
- safariId?: string | undefined;
348
- universal?: string | undefined;
349
- }, {
350
- chromeId?: unknown;
351
- edgeId?: unknown;
352
- firefoxId?: unknown;
353
- native?: unknown;
354
- operaId?: unknown;
355
- safariId?: unknown;
356
- universal?: unknown;
357
- }>>, {
358
- chromeId?: string | undefined;
359
- edgeId?: string | undefined;
360
- firefoxId?: string | undefined;
361
- native?: string | undefined;
362
- operaId?: string | undefined;
363
- safariId?: string | undefined;
364
- universal?: string | undefined;
365
- } | undefined, {
366
- chromeId?: unknown;
367
- edgeId?: unknown;
368
- firefoxId?: unknown;
369
- native?: unknown;
370
- operaId?: unknown;
371
- safariId?: unknown;
372
- universal?: unknown;
373
- } | undefined>;
374
- group: z.ZodOptional<z.ZodString>;
375
- mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
376
- android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
377
- androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
378
- ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
- iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
380
- native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
381
- universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
382
- }, "strip", z.ZodTypeAny, {
383
- android?: string | null | undefined;
384
- androidId?: string | undefined;
385
- ios?: string | null | undefined;
386
- iosId?: string | undefined;
387
- native?: string | undefined;
388
- universal?: string | undefined;
389
- }, {
390
- android?: string | null | undefined;
391
- androidId?: unknown;
392
- ios?: string | null | undefined;
393
- iosId?: unknown;
394
- native?: unknown;
395
- universal?: unknown;
396
- }>>, {
397
- android?: string | null | undefined;
398
- androidId?: string | undefined;
399
- ios?: string | null | undefined;
400
- iosId?: string | undefined;
401
- native?: string | undefined;
402
- universal?: string | undefined;
403
- } | undefined, {
404
- android?: string | null | undefined;
405
- androidId?: unknown;
406
- ios?: string | null | undefined;
407
- iosId?: unknown;
408
- native?: unknown;
409
- universal?: unknown;
410
- } | undefined>;
411
- name: z.ZodString;
412
- shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
413
- showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
414
- switchNetworkOnlyFromWallet: z.ZodOptional<z.ZodBoolean>;
415
- walletConnect: z.ZodEffects<z.ZodOptional<z.ZodObject<{
416
- sdks: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
417
- }, "strip", z.ZodTypeAny, {
418
- sdks?: string[] | undefined;
419
- }, {
420
- sdks?: unknown;
421
- }>>, {
422
- sdks?: string[] | undefined;
423
- } | undefined, {
424
- sdks?: unknown;
425
- } | undefined>;
426
- }, "strip", z.ZodTypeAny, {
427
- name: string;
428
- brand?: {
429
- alt?: string | undefined;
430
- imageId?: string | undefined;
431
- primaryColor?: string | undefined;
432
- spriteId?: string | undefined;
433
- } | undefined;
434
- chains?: string[] | undefined;
435
- desktop?: {
436
- chromeId?: string | undefined;
437
- edgeId?: string | undefined;
438
- firefoxId?: string | undefined;
439
- native?: string | undefined;
440
- operaId?: string | undefined;
441
- safariId?: string | undefined;
442
- universal?: string | undefined;
443
- } | undefined;
444
- group?: string | undefined;
445
- mobile?: {
446
- android?: string | null | undefined;
447
- androidId?: string | undefined;
448
- ios?: string | null | undefined;
449
- iosId?: string | undefined;
450
- native?: string | undefined;
451
- universal?: string | undefined;
452
- } | undefined;
453
- shortName?: string | undefined;
454
- showOnlyIfInstalled?: boolean | undefined;
455
- switchNetworkOnlyFromWallet?: boolean | undefined;
456
- walletConnect?: {
457
- sdks?: string[] | undefined;
458
- } | undefined;
459
- }, {
460
- name: string;
461
- brand?: {
462
- alt?: unknown;
463
- imageId?: unknown;
464
- primaryColor?: unknown;
465
- spriteId?: unknown;
466
- } | undefined;
467
- chains?: string[] | undefined;
468
- desktop?: {
469
- chromeId?: unknown;
470
- edgeId?: unknown;
471
- firefoxId?: unknown;
472
- native?: unknown;
473
- operaId?: unknown;
474
- safariId?: unknown;
475
- universal?: unknown;
476
- } | undefined;
477
- group?: string | undefined;
478
- mobile?: {
479
- android?: string | null | undefined;
480
- androidId?: unknown;
481
- ios?: string | null | undefined;
482
- iosId?: unknown;
483
- native?: unknown;
484
- universal?: unknown;
485
- } | undefined;
486
- shortName?: unknown;
487
- showOnlyIfInstalled?: boolean | undefined;
488
- switchNetworkOnlyFromWallet?: boolean | undefined;
489
- walletConnect?: {
490
- sdks?: unknown;
491
- } | undefined;
492
- }>, {
493
- name: string;
494
- brand?: {
495
- alt?: string | undefined;
496
- imageId?: string | undefined;
497
- primaryColor?: string | undefined;
498
- spriteId?: string | undefined;
499
- } | undefined;
500
- chains?: string[] | undefined;
501
- desktop?: {
502
- chromeId?: string | undefined;
503
- edgeId?: string | undefined;
504
- firefoxId?: string | undefined;
505
- native?: string | undefined;
506
- operaId?: string | undefined;
507
- safariId?: string | undefined;
508
- universal?: string | undefined;
509
- } | undefined;
510
- group?: string | undefined;
511
- mobile?: {
512
- android?: string | null | undefined;
513
- androidId?: string | undefined;
514
- ios?: string | null | undefined;
515
- iosId?: string | undefined;
516
- native?: string | undefined;
517
- universal?: string | undefined;
518
- } | undefined;
519
- shortName?: string | undefined;
520
- showOnlyIfInstalled?: boolean | undefined;
521
- switchNetworkOnlyFromWallet?: boolean | undefined;
522
- walletConnect?: {
523
- sdks?: string[] | undefined;
524
- } | undefined;
525
- }, unknown>, {
526
- name: string;
527
- brand?: {
528
- alt?: string | undefined;
529
- imageId?: string | undefined;
530
- primaryColor?: string | undefined;
531
- spriteId?: string | undefined;
532
- } | undefined;
533
- chains?: string[] | undefined;
534
- desktop?: {
535
- chromeId?: string | undefined;
536
- edgeId?: string | undefined;
537
- firefoxId?: string | undefined;
538
- native?: string | undefined;
539
- operaId?: string | undefined;
540
- safariId?: string | undefined;
541
- universal?: string | undefined;
542
- } | undefined;
543
- group?: string | undefined;
544
- mobile?: {
545
- android?: string | null | undefined;
546
- androidId?: string | undefined;
547
- ios?: string | null | undefined;
548
- iosId?: string | undefined;
549
- native?: string | undefined;
550
- universal?: string | undefined;
551
- } | undefined;
552
- shortName?: string | undefined;
553
- showOnlyIfInstalled?: boolean | undefined;
554
- switchNetworkOnlyFromWallet?: boolean | undefined;
555
- walletConnect?: {
556
- sdks?: string[] | undefined;
557
- } | undefined;
558
- }, unknown>>;
559
- }, "strip", z.ZodTypeAny, {
560
- groups: Record<string, {
561
- name: string;
562
- key: string;
563
- brand?: {
564
- alt?: string | undefined;
565
- imageId?: string | undefined;
566
- primaryColor?: string | undefined;
567
- spriteId?: string | undefined;
568
- } | undefined;
569
- }>;
570
- wallets: Record<string, {
571
- name: string;
572
- brand?: {
573
- alt?: string | undefined;
574
- imageId?: string | undefined;
575
- primaryColor?: string | undefined;
576
- spriteId?: string | undefined;
577
- } | undefined;
578
- chains?: string[] | undefined;
579
- desktop?: {
580
- chromeId?: string | undefined;
581
- edgeId?: string | undefined;
582
- firefoxId?: string | undefined;
583
- native?: string | undefined;
584
- operaId?: string | undefined;
585
- safariId?: string | undefined;
586
- universal?: string | undefined;
587
- } | undefined;
588
- group?: string | undefined;
589
- mobile?: {
590
- android?: string | null | undefined;
591
- androidId?: string | undefined;
592
- ios?: string | null | undefined;
593
- iosId?: string | undefined;
594
- native?: string | undefined;
595
- universal?: string | undefined;
596
- } | undefined;
597
- shortName?: string | undefined;
598
- showOnlyIfInstalled?: boolean | undefined;
599
- switchNetworkOnlyFromWallet?: boolean | undefined;
600
- walletConnect?: {
601
- sdks?: string[] | undefined;
602
- } | undefined;
603
- }>;
604
- }, {
605
- groups: Record<string, {
606
- name: string;
607
- key: string;
608
- brand?: {
609
- alt?: unknown;
610
- imageId?: unknown;
611
- primaryColor?: unknown;
612
- spriteId?: unknown;
613
- } | undefined;
614
- }>;
615
- wallets: Record<string, unknown>;
616
- }>, {
617
- groups: Record<string, {
618
- name: string;
619
- key: string;
620
- brand?: {
621
- alt?: string | undefined;
622
- imageId?: string | undefined;
623
- primaryColor?: string | undefined;
624
- spriteId?: string | undefined;
625
- } | undefined;
626
- }>;
627
- wallets: Record<string, {
628
- name: string;
629
- brand?: {
630
- alt?: string | undefined;
631
- imageId?: string | undefined;
632
- primaryColor?: string | undefined;
633
- spriteId?: string | undefined;
634
- } | undefined;
635
- chains?: string[] | undefined;
636
- desktop?: {
637
- chromeId?: string | undefined;
638
- edgeId?: string | undefined;
639
- firefoxId?: string | undefined;
640
- native?: string | undefined;
641
- operaId?: string | undefined;
642
- safariId?: string | undefined;
643
- universal?: string | undefined;
644
- } | undefined;
645
- group?: string | undefined;
646
- mobile?: {
647
- android?: string | null | undefined;
648
- androidId?: string | undefined;
649
- ios?: string | null | undefined;
650
- iosId?: string | undefined;
651
- native?: string | undefined;
652
- universal?: string | undefined;
653
- } | undefined;
654
- shortName?: string | undefined;
655
- showOnlyIfInstalled?: boolean | undefined;
656
- switchNetworkOnlyFromWallet?: boolean | undefined;
657
- walletConnect?: {
658
- sdks?: string[] | undefined;
659
- } | undefined;
660
- }>;
661
- }, unknown>;
662
- export type WalletBookSchema = z.infer<typeof walletBookSchema>;
663
- export type WalletRecordsSchema = z.infer<typeof walletBookSchema>['wallets'];
664
- declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
665
- brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
666
- alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
667
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
668
- primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
669
- spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
670
- }, "strip", z.ZodTypeAny, {
671
- alt?: string | undefined;
672
- imageId?: string | undefined;
673
- primaryColor?: string | undefined;
674
- spriteId?: string | undefined;
675
- }, {
676
- alt?: unknown;
677
- imageId?: unknown;
678
- primaryColor?: unknown;
679
- spriteId?: unknown;
680
- }>>, {
681
- alt?: string | undefined;
682
- imageId?: string | undefined;
683
- primaryColor?: string | undefined;
684
- spriteId?: string | undefined;
685
- } | undefined, {
686
- alt?: unknown;
687
- imageId?: unknown;
688
- primaryColor?: unknown;
689
- spriteId?: unknown;
690
- } | undefined>;
691
- key: z.ZodString;
692
- name: z.ZodString;
693
- }, "strip", z.ZodTypeAny, {
694
- name: string;
695
- key: string;
696
- brand?: {
697
- alt?: string | undefined;
698
- imageId?: string | undefined;
699
- primaryColor?: string | undefined;
700
- spriteId?: string | undefined;
701
- } | undefined;
702
- }, {
703
- name: string;
704
- key: string;
705
- brand?: {
706
- alt?: unknown;
707
- imageId?: unknown;
708
- primaryColor?: unknown;
709
- spriteId?: unknown;
710
- } | undefined;
711
- }>>;
712
- export type WalletGroupRecordSchema = z.infer<typeof WalletGroupRecordSchema>;
713
- export type WalletBookGroupSchema = z.infer<typeof walletBookSchema>['groups'];
714
- export {};
1
+ import { z } from 'zod';
2
+ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
3
+ brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
4
+ alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
5
+ imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
6
+ primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
7
+ spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ alt?: string | undefined;
10
+ imageId?: string | undefined;
11
+ primaryColor?: string | undefined;
12
+ spriteId?: string | undefined;
13
+ }, {
14
+ alt?: unknown;
15
+ imageId?: unknown;
16
+ primaryColor?: unknown;
17
+ spriteId?: unknown;
18
+ }>>, {
19
+ alt?: string | undefined;
20
+ imageId?: string | undefined;
21
+ primaryColor?: string | undefined;
22
+ spriteId?: string | undefined;
23
+ } | undefined, {
24
+ alt?: unknown;
25
+ imageId?: unknown;
26
+ primaryColor?: unknown;
27
+ spriteId?: unknown;
28
+ } | undefined>;
29
+ chains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
+ desktop: z.ZodEffects<z.ZodOptional<z.ZodObject<{
31
+ chromeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
32
+ edgeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
33
+ firefoxId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
34
+ native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
35
+ operaId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
36
+ safariId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
37
+ universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ chromeId?: string | undefined;
40
+ edgeId?: string | undefined;
41
+ firefoxId?: string | undefined;
42
+ native?: string | undefined;
43
+ operaId?: string | undefined;
44
+ safariId?: string | undefined;
45
+ universal?: string | undefined;
46
+ }, {
47
+ chromeId?: unknown;
48
+ edgeId?: unknown;
49
+ firefoxId?: unknown;
50
+ native?: unknown;
51
+ operaId?: unknown;
52
+ safariId?: unknown;
53
+ universal?: unknown;
54
+ }>>, {
55
+ chromeId?: string | undefined;
56
+ edgeId?: string | undefined;
57
+ firefoxId?: string | undefined;
58
+ native?: string | undefined;
59
+ operaId?: string | undefined;
60
+ safariId?: string | undefined;
61
+ universal?: string | undefined;
62
+ } | undefined, {
63
+ chromeId?: unknown;
64
+ edgeId?: unknown;
65
+ firefoxId?: unknown;
66
+ native?: unknown;
67
+ operaId?: unknown;
68
+ safariId?: unknown;
69
+ universal?: unknown;
70
+ } | undefined>;
71
+ filterFromWalletConnect: z.ZodOptional<z.ZodBoolean>;
72
+ group: z.ZodOptional<z.ZodString>;
73
+ injectedConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
+ chain: z.ZodString;
75
+ extensionLocators: z.ZodArray<z.ZodObject<{
76
+ flag: z.ZodString;
77
+ value: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
78
+ }, "strip", z.ZodTypeAny, {
79
+ value: boolean;
80
+ flag: string;
81
+ }, {
82
+ flag: string;
83
+ value?: boolean | undefined;
84
+ }>, "many">;
85
+ windowLocations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, string[] | undefined>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ chain: string;
88
+ extensionLocators: {
89
+ value: boolean;
90
+ flag: string;
91
+ }[];
92
+ windowLocations?: string[] | undefined;
93
+ }, {
94
+ chain: string;
95
+ extensionLocators: {
96
+ flag: string;
97
+ value?: boolean | undefined;
98
+ }[];
99
+ windowLocations?: string[] | undefined;
100
+ }>, "many">>;
101
+ mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
102
+ android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
+ androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
104
+ ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
106
+ native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
107
+ universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ android?: string | null | undefined;
110
+ androidId?: string | undefined;
111
+ ios?: string | null | undefined;
112
+ iosId?: string | undefined;
113
+ native?: string | undefined;
114
+ universal?: string | undefined;
115
+ }, {
116
+ android?: string | null | undefined;
117
+ androidId?: unknown;
118
+ ios?: string | null | undefined;
119
+ iosId?: unknown;
120
+ native?: unknown;
121
+ universal?: unknown;
122
+ }>>, {
123
+ android?: string | null | undefined;
124
+ androidId?: string | undefined;
125
+ ios?: string | null | undefined;
126
+ iosId?: string | undefined;
127
+ native?: string | undefined;
128
+ universal?: string | undefined;
129
+ } | undefined, {
130
+ android?: string | null | undefined;
131
+ androidId?: unknown;
132
+ ios?: string | null | undefined;
133
+ iosId?: unknown;
134
+ native?: unknown;
135
+ universal?: unknown;
136
+ } | undefined>;
137
+ name: z.ZodString;
138
+ shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
139
+ showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
140
+ switchNetworkOnlyFromWallet: z.ZodOptional<z.ZodBoolean>;
141
+ walletConnect: z.ZodEffects<z.ZodOptional<z.ZodObject<{
142
+ sdks: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ sdks?: string[] | undefined;
145
+ }, {
146
+ sdks?: unknown;
147
+ }>>, {
148
+ sdks?: string[] | undefined;
149
+ } | undefined, {
150
+ sdks?: unknown;
151
+ } | undefined>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ name: string;
154
+ brand?: {
155
+ alt?: string | undefined;
156
+ imageId?: string | undefined;
157
+ primaryColor?: string | undefined;
158
+ spriteId?: string | undefined;
159
+ } | undefined;
160
+ chains?: string[] | undefined;
161
+ desktop?: {
162
+ chromeId?: string | undefined;
163
+ edgeId?: string | undefined;
164
+ firefoxId?: string | undefined;
165
+ native?: string | undefined;
166
+ operaId?: string | undefined;
167
+ safariId?: string | undefined;
168
+ universal?: string | undefined;
169
+ } | undefined;
170
+ filterFromWalletConnect?: boolean | undefined;
171
+ group?: string | undefined;
172
+ injectedConfig?: {
173
+ chain: string;
174
+ extensionLocators: {
175
+ value: boolean;
176
+ flag: string;
177
+ }[];
178
+ windowLocations?: string[] | undefined;
179
+ }[] | undefined;
180
+ mobile?: {
181
+ android?: string | null | undefined;
182
+ androidId?: string | undefined;
183
+ ios?: string | null | undefined;
184
+ iosId?: string | undefined;
185
+ native?: string | undefined;
186
+ universal?: string | undefined;
187
+ } | undefined;
188
+ shortName?: string | undefined;
189
+ showOnlyIfInstalled?: boolean | undefined;
190
+ switchNetworkOnlyFromWallet?: boolean | undefined;
191
+ walletConnect?: {
192
+ sdks?: string[] | undefined;
193
+ } | undefined;
194
+ }, {
195
+ name: string;
196
+ brand?: {
197
+ alt?: unknown;
198
+ imageId?: unknown;
199
+ primaryColor?: unknown;
200
+ spriteId?: unknown;
201
+ } | undefined;
202
+ chains?: string[] | undefined;
203
+ desktop?: {
204
+ chromeId?: unknown;
205
+ edgeId?: unknown;
206
+ firefoxId?: unknown;
207
+ native?: unknown;
208
+ operaId?: unknown;
209
+ safariId?: unknown;
210
+ universal?: unknown;
211
+ } | undefined;
212
+ filterFromWalletConnect?: boolean | undefined;
213
+ group?: string | undefined;
214
+ injectedConfig?: {
215
+ chain: string;
216
+ extensionLocators: {
217
+ flag: string;
218
+ value?: boolean | undefined;
219
+ }[];
220
+ windowLocations?: string[] | undefined;
221
+ }[] | undefined;
222
+ mobile?: {
223
+ android?: string | null | undefined;
224
+ androidId?: unknown;
225
+ ios?: string | null | undefined;
226
+ iosId?: unknown;
227
+ native?: unknown;
228
+ universal?: unknown;
229
+ } | undefined;
230
+ shortName?: unknown;
231
+ showOnlyIfInstalled?: boolean | undefined;
232
+ switchNetworkOnlyFromWallet?: boolean | undefined;
233
+ walletConnect?: {
234
+ sdks?: unknown;
235
+ } | undefined;
236
+ }>, {
237
+ name: string;
238
+ brand?: {
239
+ alt?: string | undefined;
240
+ imageId?: string | undefined;
241
+ primaryColor?: string | undefined;
242
+ spriteId?: string | undefined;
243
+ } | undefined;
244
+ chains?: string[] | undefined;
245
+ desktop?: {
246
+ chromeId?: string | undefined;
247
+ edgeId?: string | undefined;
248
+ firefoxId?: string | undefined;
249
+ native?: string | undefined;
250
+ operaId?: string | undefined;
251
+ safariId?: string | undefined;
252
+ universal?: string | undefined;
253
+ } | undefined;
254
+ filterFromWalletConnect?: boolean | undefined;
255
+ group?: string | undefined;
256
+ injectedConfig?: {
257
+ chain: string;
258
+ extensionLocators: {
259
+ value: boolean;
260
+ flag: string;
261
+ }[];
262
+ windowLocations?: string[] | undefined;
263
+ }[] | undefined;
264
+ mobile?: {
265
+ android?: string | null | undefined;
266
+ androidId?: string | undefined;
267
+ ios?: string | null | undefined;
268
+ iosId?: string | undefined;
269
+ native?: string | undefined;
270
+ universal?: string | undefined;
271
+ } | undefined;
272
+ shortName?: string | undefined;
273
+ showOnlyIfInstalled?: boolean | undefined;
274
+ switchNetworkOnlyFromWallet?: boolean | undefined;
275
+ walletConnect?: {
276
+ sdks?: string[] | undefined;
277
+ } | undefined;
278
+ }, unknown>, {
279
+ name: string;
280
+ brand?: {
281
+ alt?: string | undefined;
282
+ imageId?: string | undefined;
283
+ primaryColor?: string | undefined;
284
+ spriteId?: string | undefined;
285
+ } | undefined;
286
+ chains?: string[] | undefined;
287
+ desktop?: {
288
+ chromeId?: string | undefined;
289
+ edgeId?: string | undefined;
290
+ firefoxId?: string | undefined;
291
+ native?: string | undefined;
292
+ operaId?: string | undefined;
293
+ safariId?: string | undefined;
294
+ universal?: string | undefined;
295
+ } | undefined;
296
+ filterFromWalletConnect?: boolean | undefined;
297
+ group?: string | undefined;
298
+ injectedConfig?: {
299
+ chain: string;
300
+ extensionLocators: {
301
+ value: boolean;
302
+ flag: string;
303
+ }[];
304
+ windowLocations?: string[] | undefined;
305
+ }[] | undefined;
306
+ mobile?: {
307
+ android?: string | null | undefined;
308
+ androidId?: string | undefined;
309
+ ios?: string | null | undefined;
310
+ iosId?: string | undefined;
311
+ native?: string | undefined;
312
+ universal?: string | undefined;
313
+ } | undefined;
314
+ shortName?: string | undefined;
315
+ showOnlyIfInstalled?: boolean | undefined;
316
+ switchNetworkOnlyFromWallet?: boolean | undefined;
317
+ walletConnect?: {
318
+ sdks?: string[] | undefined;
319
+ } | undefined;
320
+ }, unknown>>;
321
+ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
322
+ groups: z.ZodRecord<z.ZodString, z.ZodObject<{
323
+ brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
324
+ alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
325
+ imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
326
+ primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
327
+ spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ alt?: string | undefined;
330
+ imageId?: string | undefined;
331
+ primaryColor?: string | undefined;
332
+ spriteId?: string | undefined;
333
+ }, {
334
+ alt?: unknown;
335
+ imageId?: unknown;
336
+ primaryColor?: unknown;
337
+ spriteId?: unknown;
338
+ }>>, {
339
+ alt?: string | undefined;
340
+ imageId?: string | undefined;
341
+ primaryColor?: string | undefined;
342
+ spriteId?: string | undefined;
343
+ } | undefined, {
344
+ alt?: unknown;
345
+ imageId?: unknown;
346
+ primaryColor?: unknown;
347
+ spriteId?: unknown;
348
+ } | undefined>;
349
+ key: z.ZodString;
350
+ name: z.ZodString;
351
+ }, "strip", z.ZodTypeAny, {
352
+ name: string;
353
+ key: string;
354
+ brand?: {
355
+ alt?: string | undefined;
356
+ imageId?: string | undefined;
357
+ primaryColor?: string | undefined;
358
+ spriteId?: string | undefined;
359
+ } | undefined;
360
+ }, {
361
+ name: string;
362
+ key: string;
363
+ brand?: {
364
+ alt?: unknown;
365
+ imageId?: unknown;
366
+ primaryColor?: unknown;
367
+ spriteId?: unknown;
368
+ } | undefined;
369
+ }>>;
370
+ wallets: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
371
+ brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
372
+ alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
373
+ imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
374
+ primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
375
+ spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
376
+ }, "strip", z.ZodTypeAny, {
377
+ alt?: string | undefined;
378
+ imageId?: string | undefined;
379
+ primaryColor?: string | undefined;
380
+ spriteId?: string | undefined;
381
+ }, {
382
+ alt?: unknown;
383
+ imageId?: unknown;
384
+ primaryColor?: unknown;
385
+ spriteId?: unknown;
386
+ }>>, {
387
+ alt?: string | undefined;
388
+ imageId?: string | undefined;
389
+ primaryColor?: string | undefined;
390
+ spriteId?: string | undefined;
391
+ } | undefined, {
392
+ alt?: unknown;
393
+ imageId?: unknown;
394
+ primaryColor?: unknown;
395
+ spriteId?: unknown;
396
+ } | undefined>;
397
+ chains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
398
+ desktop: z.ZodEffects<z.ZodOptional<z.ZodObject<{
399
+ chromeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
400
+ edgeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
401
+ firefoxId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
402
+ native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
403
+ operaId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
404
+ safariId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
405
+ universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
406
+ }, "strip", z.ZodTypeAny, {
407
+ chromeId?: string | undefined;
408
+ edgeId?: string | undefined;
409
+ firefoxId?: string | undefined;
410
+ native?: string | undefined;
411
+ operaId?: string | undefined;
412
+ safariId?: string | undefined;
413
+ universal?: string | undefined;
414
+ }, {
415
+ chromeId?: unknown;
416
+ edgeId?: unknown;
417
+ firefoxId?: unknown;
418
+ native?: unknown;
419
+ operaId?: unknown;
420
+ safariId?: unknown;
421
+ universal?: unknown;
422
+ }>>, {
423
+ chromeId?: string | undefined;
424
+ edgeId?: string | undefined;
425
+ firefoxId?: string | undefined;
426
+ native?: string | undefined;
427
+ operaId?: string | undefined;
428
+ safariId?: string | undefined;
429
+ universal?: string | undefined;
430
+ } | undefined, {
431
+ chromeId?: unknown;
432
+ edgeId?: unknown;
433
+ firefoxId?: unknown;
434
+ native?: unknown;
435
+ operaId?: unknown;
436
+ safariId?: unknown;
437
+ universal?: unknown;
438
+ } | undefined>;
439
+ filterFromWalletConnect: z.ZodOptional<z.ZodBoolean>;
440
+ group: z.ZodOptional<z.ZodString>;
441
+ injectedConfig: z.ZodOptional<z.ZodArray<z.ZodObject<{
442
+ chain: z.ZodString;
443
+ extensionLocators: z.ZodArray<z.ZodObject<{
444
+ flag: z.ZodString;
445
+ value: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
446
+ }, "strip", z.ZodTypeAny, {
447
+ value: boolean;
448
+ flag: string;
449
+ }, {
450
+ flag: string;
451
+ value?: boolean | undefined;
452
+ }>, "many">;
453
+ windowLocations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, string[] | undefined>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ chain: string;
456
+ extensionLocators: {
457
+ value: boolean;
458
+ flag: string;
459
+ }[];
460
+ windowLocations?: string[] | undefined;
461
+ }, {
462
+ chain: string;
463
+ extensionLocators: {
464
+ flag: string;
465
+ value?: boolean | undefined;
466
+ }[];
467
+ windowLocations?: string[] | undefined;
468
+ }>, "many">>;
469
+ mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
470
+ android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
472
+ ios: z.ZodOptional<z.ZodNullable<z.ZodString>>;
473
+ iosId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
474
+ native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
475
+ universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
476
+ }, "strip", z.ZodTypeAny, {
477
+ android?: string | null | undefined;
478
+ androidId?: string | undefined;
479
+ ios?: string | null | undefined;
480
+ iosId?: string | undefined;
481
+ native?: string | undefined;
482
+ universal?: string | undefined;
483
+ }, {
484
+ android?: string | null | undefined;
485
+ androidId?: unknown;
486
+ ios?: string | null | undefined;
487
+ iosId?: unknown;
488
+ native?: unknown;
489
+ universal?: unknown;
490
+ }>>, {
491
+ android?: string | null | undefined;
492
+ androidId?: string | undefined;
493
+ ios?: string | null | undefined;
494
+ iosId?: string | undefined;
495
+ native?: string | undefined;
496
+ universal?: string | undefined;
497
+ } | undefined, {
498
+ android?: string | null | undefined;
499
+ androidId?: unknown;
500
+ ios?: string | null | undefined;
501
+ iosId?: unknown;
502
+ native?: unknown;
503
+ universal?: unknown;
504
+ } | undefined>;
505
+ name: z.ZodString;
506
+ shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
507
+ showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
508
+ switchNetworkOnlyFromWallet: z.ZodOptional<z.ZodBoolean>;
509
+ walletConnect: z.ZodEffects<z.ZodOptional<z.ZodObject<{
510
+ sdks: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ sdks?: string[] | undefined;
513
+ }, {
514
+ sdks?: unknown;
515
+ }>>, {
516
+ sdks?: string[] | undefined;
517
+ } | undefined, {
518
+ sdks?: unknown;
519
+ } | undefined>;
520
+ }, "strip", z.ZodTypeAny, {
521
+ name: string;
522
+ brand?: {
523
+ alt?: string | undefined;
524
+ imageId?: string | undefined;
525
+ primaryColor?: string | undefined;
526
+ spriteId?: string | undefined;
527
+ } | undefined;
528
+ chains?: string[] | undefined;
529
+ desktop?: {
530
+ chromeId?: string | undefined;
531
+ edgeId?: string | undefined;
532
+ firefoxId?: string | undefined;
533
+ native?: string | undefined;
534
+ operaId?: string | undefined;
535
+ safariId?: string | undefined;
536
+ universal?: string | undefined;
537
+ } | undefined;
538
+ filterFromWalletConnect?: boolean | undefined;
539
+ group?: string | undefined;
540
+ injectedConfig?: {
541
+ chain: string;
542
+ extensionLocators: {
543
+ value: boolean;
544
+ flag: string;
545
+ }[];
546
+ windowLocations?: string[] | undefined;
547
+ }[] | undefined;
548
+ mobile?: {
549
+ android?: string | null | undefined;
550
+ androidId?: string | undefined;
551
+ ios?: string | null | undefined;
552
+ iosId?: string | undefined;
553
+ native?: string | undefined;
554
+ universal?: string | undefined;
555
+ } | undefined;
556
+ shortName?: string | undefined;
557
+ showOnlyIfInstalled?: boolean | undefined;
558
+ switchNetworkOnlyFromWallet?: boolean | undefined;
559
+ walletConnect?: {
560
+ sdks?: string[] | undefined;
561
+ } | undefined;
562
+ }, {
563
+ name: string;
564
+ brand?: {
565
+ alt?: unknown;
566
+ imageId?: unknown;
567
+ primaryColor?: unknown;
568
+ spriteId?: unknown;
569
+ } | undefined;
570
+ chains?: string[] | undefined;
571
+ desktop?: {
572
+ chromeId?: unknown;
573
+ edgeId?: unknown;
574
+ firefoxId?: unknown;
575
+ native?: unknown;
576
+ operaId?: unknown;
577
+ safariId?: unknown;
578
+ universal?: unknown;
579
+ } | undefined;
580
+ filterFromWalletConnect?: boolean | undefined;
581
+ group?: string | undefined;
582
+ injectedConfig?: {
583
+ chain: string;
584
+ extensionLocators: {
585
+ flag: string;
586
+ value?: boolean | undefined;
587
+ }[];
588
+ windowLocations?: string[] | undefined;
589
+ }[] | undefined;
590
+ mobile?: {
591
+ android?: string | null | undefined;
592
+ androidId?: unknown;
593
+ ios?: string | null | undefined;
594
+ iosId?: unknown;
595
+ native?: unknown;
596
+ universal?: unknown;
597
+ } | undefined;
598
+ shortName?: unknown;
599
+ showOnlyIfInstalled?: boolean | undefined;
600
+ switchNetworkOnlyFromWallet?: boolean | undefined;
601
+ walletConnect?: {
602
+ sdks?: unknown;
603
+ } | undefined;
604
+ }>, {
605
+ name: string;
606
+ brand?: {
607
+ alt?: string | undefined;
608
+ imageId?: string | undefined;
609
+ primaryColor?: string | undefined;
610
+ spriteId?: string | undefined;
611
+ } | undefined;
612
+ chains?: string[] | undefined;
613
+ desktop?: {
614
+ chromeId?: string | undefined;
615
+ edgeId?: string | undefined;
616
+ firefoxId?: string | undefined;
617
+ native?: string | undefined;
618
+ operaId?: string | undefined;
619
+ safariId?: string | undefined;
620
+ universal?: string | undefined;
621
+ } | undefined;
622
+ filterFromWalletConnect?: boolean | undefined;
623
+ group?: string | undefined;
624
+ injectedConfig?: {
625
+ chain: string;
626
+ extensionLocators: {
627
+ value: boolean;
628
+ flag: string;
629
+ }[];
630
+ windowLocations?: string[] | undefined;
631
+ }[] | undefined;
632
+ mobile?: {
633
+ android?: string | null | undefined;
634
+ androidId?: string | undefined;
635
+ ios?: string | null | undefined;
636
+ iosId?: string | undefined;
637
+ native?: string | undefined;
638
+ universal?: string | undefined;
639
+ } | undefined;
640
+ shortName?: string | undefined;
641
+ showOnlyIfInstalled?: boolean | undefined;
642
+ switchNetworkOnlyFromWallet?: boolean | undefined;
643
+ walletConnect?: {
644
+ sdks?: string[] | undefined;
645
+ } | undefined;
646
+ }, unknown>, {
647
+ name: string;
648
+ brand?: {
649
+ alt?: string | undefined;
650
+ imageId?: string | undefined;
651
+ primaryColor?: string | undefined;
652
+ spriteId?: string | undefined;
653
+ } | undefined;
654
+ chains?: string[] | undefined;
655
+ desktop?: {
656
+ chromeId?: string | undefined;
657
+ edgeId?: string | undefined;
658
+ firefoxId?: string | undefined;
659
+ native?: string | undefined;
660
+ operaId?: string | undefined;
661
+ safariId?: string | undefined;
662
+ universal?: string | undefined;
663
+ } | undefined;
664
+ filterFromWalletConnect?: boolean | undefined;
665
+ group?: string | undefined;
666
+ injectedConfig?: {
667
+ chain: string;
668
+ extensionLocators: {
669
+ value: boolean;
670
+ flag: string;
671
+ }[];
672
+ windowLocations?: string[] | undefined;
673
+ }[] | undefined;
674
+ mobile?: {
675
+ android?: string | null | undefined;
676
+ androidId?: string | undefined;
677
+ ios?: string | null | undefined;
678
+ iosId?: string | undefined;
679
+ native?: string | undefined;
680
+ universal?: string | undefined;
681
+ } | undefined;
682
+ shortName?: string | undefined;
683
+ showOnlyIfInstalled?: boolean | undefined;
684
+ switchNetworkOnlyFromWallet?: boolean | undefined;
685
+ walletConnect?: {
686
+ sdks?: string[] | undefined;
687
+ } | undefined;
688
+ }, unknown>>;
689
+ }, "strip", z.ZodTypeAny, {
690
+ groups: Record<string, {
691
+ name: string;
692
+ key: string;
693
+ brand?: {
694
+ alt?: string | undefined;
695
+ imageId?: string | undefined;
696
+ primaryColor?: string | undefined;
697
+ spriteId?: string | undefined;
698
+ } | undefined;
699
+ }>;
700
+ wallets: Record<string, {
701
+ name: string;
702
+ brand?: {
703
+ alt?: string | undefined;
704
+ imageId?: string | undefined;
705
+ primaryColor?: string | undefined;
706
+ spriteId?: string | undefined;
707
+ } | undefined;
708
+ chains?: string[] | undefined;
709
+ desktop?: {
710
+ chromeId?: string | undefined;
711
+ edgeId?: string | undefined;
712
+ firefoxId?: string | undefined;
713
+ native?: string | undefined;
714
+ operaId?: string | undefined;
715
+ safariId?: string | undefined;
716
+ universal?: string | undefined;
717
+ } | undefined;
718
+ filterFromWalletConnect?: boolean | undefined;
719
+ group?: string | undefined;
720
+ injectedConfig?: {
721
+ chain: string;
722
+ extensionLocators: {
723
+ value: boolean;
724
+ flag: string;
725
+ }[];
726
+ windowLocations?: string[] | undefined;
727
+ }[] | undefined;
728
+ mobile?: {
729
+ android?: string | null | undefined;
730
+ androidId?: string | undefined;
731
+ ios?: string | null | undefined;
732
+ iosId?: string | undefined;
733
+ native?: string | undefined;
734
+ universal?: string | undefined;
735
+ } | undefined;
736
+ shortName?: string | undefined;
737
+ showOnlyIfInstalled?: boolean | undefined;
738
+ switchNetworkOnlyFromWallet?: boolean | undefined;
739
+ walletConnect?: {
740
+ sdks?: string[] | undefined;
741
+ } | undefined;
742
+ }>;
743
+ }, {
744
+ groups: Record<string, {
745
+ name: string;
746
+ key: string;
747
+ brand?: {
748
+ alt?: unknown;
749
+ imageId?: unknown;
750
+ primaryColor?: unknown;
751
+ spriteId?: unknown;
752
+ } | undefined;
753
+ }>;
754
+ wallets: Record<string, unknown>;
755
+ }>, {
756
+ groups: Record<string, {
757
+ name: string;
758
+ key: string;
759
+ brand?: {
760
+ alt?: string | undefined;
761
+ imageId?: string | undefined;
762
+ primaryColor?: string | undefined;
763
+ spriteId?: string | undefined;
764
+ } | undefined;
765
+ }>;
766
+ wallets: Record<string, {
767
+ name: string;
768
+ brand?: {
769
+ alt?: string | undefined;
770
+ imageId?: string | undefined;
771
+ primaryColor?: string | undefined;
772
+ spriteId?: string | undefined;
773
+ } | undefined;
774
+ chains?: string[] | undefined;
775
+ desktop?: {
776
+ chromeId?: string | undefined;
777
+ edgeId?: string | undefined;
778
+ firefoxId?: string | undefined;
779
+ native?: string | undefined;
780
+ operaId?: string | undefined;
781
+ safariId?: string | undefined;
782
+ universal?: string | undefined;
783
+ } | undefined;
784
+ filterFromWalletConnect?: boolean | undefined;
785
+ group?: string | undefined;
786
+ injectedConfig?: {
787
+ chain: string;
788
+ extensionLocators: {
789
+ value: boolean;
790
+ flag: string;
791
+ }[];
792
+ windowLocations?: string[] | undefined;
793
+ }[] | undefined;
794
+ mobile?: {
795
+ android?: string | null | undefined;
796
+ androidId?: string | undefined;
797
+ ios?: string | null | undefined;
798
+ iosId?: string | undefined;
799
+ native?: string | undefined;
800
+ universal?: string | undefined;
801
+ } | undefined;
802
+ shortName?: string | undefined;
803
+ showOnlyIfInstalled?: boolean | undefined;
804
+ switchNetworkOnlyFromWallet?: boolean | undefined;
805
+ walletConnect?: {
806
+ sdks?: string[] | undefined;
807
+ } | undefined;
808
+ }>;
809
+ }, unknown>;
810
+ export type WalletBookSchema = z.infer<typeof walletBookSchema>;
811
+ export type WalletRecordsSchema = z.infer<typeof walletBookSchema>['wallets'];
812
+ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
813
+ brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
814
+ alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
815
+ imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
816
+ primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
817
+ spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ alt?: string | undefined;
820
+ imageId?: string | undefined;
821
+ primaryColor?: string | undefined;
822
+ spriteId?: string | undefined;
823
+ }, {
824
+ alt?: unknown;
825
+ imageId?: unknown;
826
+ primaryColor?: unknown;
827
+ spriteId?: unknown;
828
+ }>>, {
829
+ alt?: string | undefined;
830
+ imageId?: string | undefined;
831
+ primaryColor?: string | undefined;
832
+ spriteId?: string | undefined;
833
+ } | undefined, {
834
+ alt?: unknown;
835
+ imageId?: unknown;
836
+ primaryColor?: unknown;
837
+ spriteId?: unknown;
838
+ } | undefined>;
839
+ key: z.ZodString;
840
+ name: z.ZodString;
841
+ }, "strip", z.ZodTypeAny, {
842
+ name: string;
843
+ key: string;
844
+ brand?: {
845
+ alt?: string | undefined;
846
+ imageId?: string | undefined;
847
+ primaryColor?: string | undefined;
848
+ spriteId?: string | undefined;
849
+ } | undefined;
850
+ }, {
851
+ name: string;
852
+ key: string;
853
+ brand?: {
854
+ alt?: unknown;
855
+ imageId?: unknown;
856
+ primaryColor?: unknown;
857
+ spriteId?: unknown;
858
+ } | undefined;
859
+ }>>;
860
+ export type WalletGroupRecordSchema = z.infer<typeof WalletGroupRecordSchema>;
861
+ export type WalletBookGroupSchema = z.infer<typeof walletBookSchema>['groups'];
862
+ export {};