@dynamic-labs/wallet-book 1.2.0-alpha.0 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,35 @@
1
1
 
2
+ ## [1.2.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.2.0-alpha.1...v1.2.0) (2024-02-29)
3
+
4
+
5
+ ### Features
6
+
7
+ * add networkValidationMode and deprecate enableForcedNetworkValidation ([#4776](https://github.com/dynamic-labs/DynamicAuth/issues/4776)) ([d826bf7](https://github.com/dynamic-labs/DynamicAuth/commit/d826bf704814e69466f811186499839472d107fc))
8
+ * include l1 fee to gas estimation ([#4743](https://github.com/dynamic-labs/DynamicAuth/issues/4743)) ([601a7ab](https://github.com/dynamic-labs/DynamicAuth/commit/601a7ab07791e89b07eb70f2960ff855eff84a87))
9
+ * add FilterChain helper function ([#4632](https://github.com/dynamic-labs/DynamicAuth/issues/4632)) ([56d474b](https://github.com/dynamic-labs/DynamicAuth/commit/56d474bf50a566774179ae929c4587ef841809bc))
10
+ * allow exporting embedded wallets key/seed using email auth session ([#4580](https://github.com/dynamic-labs/DynamicAuth/issues/4580)) ([7b7a826](https://github.com/dynamic-labs/DynamicAuth/commit/7b7a8265ff16057284a50046f2310e1abdca5e50))
11
+ * add retry email otp in headless ([#4639](https://github.com/dynamic-labs/DynamicAuth/issues/4639)) ([70630e2](https://github.com/dynamic-labs/DynamicAuth/commit/70630e28e4b370581add65fc5f69c41c28346cc6))
12
+ * add tabs to wallet list view ([#4619](https://github.com/dynamic-labs/DynamicAuth/issues/4619)) ([c552a8e](https://github.com/dynamic-labs/DynamicAuth/commit/c552a8ec9a484b6015e95e9b3b30cd1cd151a45b))
13
+
14
+ ### Bug Fixes
15
+
16
+ * enable Banxa for all chains ([#4791](https://github.com/dynamic-labs/DynamicAuth/issues/4791)) ([#4823](https://github.com/dynamic-labs/DynamicAuth/issues/4823)) ([18f76f7](https://github.com/dynamic-labs/DynamicAuth/commit/18f76f7798c58009a70a8322e87e78047a6e33a0))
17
+ * fix universal links when using walletconnect ([#4773](https://github.com/dynamic-labs/DynamicAuth/issues/4773)) ([#4779](https://github.com/dynamic-labs/DynamicAuth/issues/4779)) ([3186ef8](https://github.com/dynamic-labs/DynamicAuth/commit/3186ef8896cebd750d2998ad9cc43e4bd11a594a))
18
+
19
+ ## [1.2.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v1.2.0-alpha.0...v1.2.0-alpha.1) (2024-02-09)
20
+
21
+
22
+ ### Features
23
+
24
+ * add FilterChain helper function ([#4632](https://github.com/dynamic-labs/DynamicAuth/issues/4632)) ([56d474b](https://github.com/dynamic-labs/DynamicAuth/commit/56d474bf50a566774179ae929c4587ef841809bc))
25
+ * add recommendedWallets prop to DynamicContext ([10c79d2](https://github.com/dynamic-labs/DynamicAuth/commit/10c79d2d7d79b3acee52f2feac0ddb6ccb5d9465))
26
+ * allow exporting embedded wallets key/seed using email auth session ([#4580](https://github.com/dynamic-labs/DynamicAuth/issues/4580)) ([7b7a826](https://github.com/dynamic-labs/DynamicAuth/commit/7b7a8265ff16057284a50046f2310e1abdca5e50))
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * fix the wallet list height ([#4651](https://github.com/dynamic-labs/DynamicAuth/issues/4651)) ([445be11](https://github.com/dynamic-labs/DynamicAuth/commit/445be110044aff2641cb2c8309c7b784d5498645))
32
+
2
33
  ## [1.2.0-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v1.1.0-alpha.26...v1.2.0-alpha.0) (2024-02-09)
3
34
 
4
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/wallet-book",
3
- "version": "1.2.0-alpha.0",
3
+ "version": "1.2.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,8 +26,9 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "zod": "3.22.4",
29
- "@dynamic-labs/logger": "1.2.0-alpha.0",
30
- "@dynamic-labs/utils": "1.2.0-alpha.0",
29
+ "@dynamic-labs/iconic": "1.2.0",
30
+ "@dynamic-labs/logger": "1.2.0",
31
+ "@dynamic-labs/utils": "1.2.0",
31
32
  "util": "0.12.5"
32
33
  },
33
34
  "peerDependencies": {
@@ -9,7 +9,6 @@ export declare const generateWalletFallbacks: (wallets: WalletRecordsSchema) =>
9
9
  name: string;
10
10
  brand?: {
11
11
  alt?: string | undefined;
12
- imageId?: string | undefined;
13
12
  primaryColor?: string | undefined;
14
13
  spriteId?: string | undefined;
15
14
  } | undefined;
@@ -1,4 +1,12 @@
1
1
  export declare const walletConnectSourceData: Record<string, {
2
+ id: string;
3
+ metadata: {
4
+ shortName: string | null;
5
+ colors: {
6
+ primary: string | null;
7
+ secondary: string | null;
8
+ };
9
+ };
2
10
  name: string;
3
11
  chains: string[];
4
12
  desktop: {
@@ -28,7 +36,6 @@ export declare const walletConnectSourceData: Record<string, {
28
36
  category: string | null;
29
37
  description: string | null;
30
38
  homepage: string;
31
- id: string;
32
39
  image_id: string;
33
40
  image_url: {
34
41
  lg: string;
@@ -39,29 +46,21 @@ export declare const walletConnectSourceData: Record<string, {
39
46
  injected_id: string;
40
47
  namespace: string;
41
48
  }[] | null;
42
- metadata: {
43
- shortName: string | null;
44
- colors: {
45
- primary: string | null;
46
- secondary: string | null;
47
- };
48
- };
49
49
  slug: string;
50
50
  updatedAt: string;
51
51
  versions: string[];
52
52
  supported_standards?: {
53
53
  id: string;
54
- standard_id: number;
55
- standard_prefix: string;
56
54
  title: string;
57
55
  url: string;
56
+ standard_id: number;
57
+ standard_prefix: string;
58
58
  }[] | undefined;
59
59
  }>;
60
60
  export declare const walletConnectTransformedData: Promise<Record<string, {
61
61
  name: string;
62
62
  brand?: {
63
63
  alt?: string | undefined;
64
- imageId?: string | undefined;
65
64
  primaryColor?: string | undefined;
66
65
  spriteId?: string | undefined;
67
66
  } | undefined;
@@ -12,14 +12,6 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
12
12
  value: null;
13
13
  };
14
14
  };
15
- dawn: {
16
- brand: {
17
- imageId: {
18
- action: string;
19
- value: null;
20
- };
21
- };
22
- };
23
15
  exodus: {
24
16
  group: {
25
17
  action: string;
@@ -52,21 +44,7 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
52
44
  value: boolean;
53
45
  };
54
46
  };
55
- lilico: {
56
- brand: {
57
- imageId: {
58
- action: string;
59
- value: null;
60
- };
61
- };
62
- };
63
47
  metamask: {
64
- brand: {
65
- imageId: {
66
- action: string;
67
- value: null;
68
- };
69
- };
70
48
  walletConnect: {
71
49
  sdks: {
72
50
  action: string;
@@ -75,12 +53,6 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
75
53
  };
76
54
  };
77
55
  okxwallet: {
78
- brand: {
79
- imageId: {
80
- action: string;
81
- value: null;
82
- };
83
- };
84
56
  desktop: {
85
57
  action: string;
86
58
  value: {
@@ -96,10 +68,6 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
96
68
  };
97
69
  rainbow: {
98
70
  brand: {
99
- imageId: {
100
- action: string;
101
- value: null;
102
- };
103
71
  spriteId: {
104
72
  action: string;
105
73
  value: string;
@@ -146,10 +114,6 @@ export declare const applyOverrides: (sourceData: any, overrides?: {
146
114
  };
147
115
  zengo: {
148
116
  brand: {
149
- imageId: {
150
- action: string;
151
- value: null;
152
- };
153
117
  primaryColor: {
154
118
  action: string;
155
119
  value: string;
@@ -182,14 +146,6 @@ export declare const walletConnectOverrides: {
182
146
  value: null;
183
147
  };
184
148
  };
185
- dawn: {
186
- brand: {
187
- imageId: {
188
- action: string;
189
- value: null;
190
- };
191
- };
192
- };
193
149
  exodus: {
194
150
  group: {
195
151
  action: string;
@@ -222,21 +178,7 @@ export declare const walletConnectOverrides: {
222
178
  value: boolean;
223
179
  };
224
180
  };
225
- lilico: {
226
- brand: {
227
- imageId: {
228
- action: string;
229
- value: null;
230
- };
231
- };
232
- };
233
181
  metamask: {
234
- brand: {
235
- imageId: {
236
- action: string;
237
- value: null;
238
- };
239
- };
240
182
  walletConnect: {
241
183
  sdks: {
242
184
  action: string;
@@ -245,12 +187,6 @@ export declare const walletConnectOverrides: {
245
187
  };
246
188
  };
247
189
  okxwallet: {
248
- brand: {
249
- imageId: {
250
- action: string;
251
- value: null;
252
- };
253
- };
254
190
  desktop: {
255
191
  action: string;
256
192
  value: {
@@ -266,10 +202,6 @@ export declare const walletConnectOverrides: {
266
202
  };
267
203
  rainbow: {
268
204
  brand: {
269
- imageId: {
270
- action: string;
271
- value: null;
272
- };
273
205
  spriteId: {
274
206
  action: string;
275
207
  value: string;
@@ -316,10 +248,6 @@ export declare const walletConnectOverrides: {
316
248
  };
317
249
  zengo: {
318
250
  brand: {
319
- imageId: {
320
- action: string;
321
- value: null;
322
- };
323
251
  primaryColor: {
324
252
  action: string;
325
253
  value: string;
@@ -6,6 +6,7 @@ var _tslib = require('../../_virtual/_tslib.cjs');
6
6
  var react = require('react');
7
7
  var getWalletIconUrl = require('../helpers/getWalletIconUrl.cjs');
8
8
  require('../helpers/logger.cjs');
9
+ require('../helpers/renderTemplate.cjs');
9
10
  var getBrandIconUrl = require('../helpers/getBrandIconUrl.cjs');
10
11
 
11
12
  const BrandIcon = (_a) => {
@@ -2,6 +2,7 @@ import { __rest } from '../../_virtual/_tslib.js';
2
2
  import { useState, createElement, Fragment } from 'react';
3
3
  import { getDefaultWalletIconUrl } from '../helpers/getWalletIconUrl.js';
4
4
  import '../helpers/logger.js';
5
+ import '../helpers/renderTemplate.js';
5
6
  import { getBrandIconUrl } from '../helpers/getBrandIconUrl.js';
6
7
 
7
8
  const BrandIcon = (_a) => {
@@ -7,6 +7,7 @@ var react = require('react');
7
7
  var getWalletIconUrl = require('../helpers/getWalletIconUrl.cjs');
8
8
  require('../helpers/logger.cjs');
9
9
  var findWalletBookWallet = require('../helpers/findWalletBookWallet.cjs');
10
+ require('../helpers/renderTemplate.cjs');
10
11
  require('@dynamic-labs/utils');
11
12
  require('../schemas/walletConnectSourceSchema.cjs');
12
13
  require('../schemas/walletBookSchema.cjs');
@@ -3,6 +3,7 @@ import { useState, createElement, Fragment } from 'react';
3
3
  import { getWalletIconUrl, getDefaultWalletIconUrl } from '../helpers/getWalletIconUrl.js';
4
4
  import '../helpers/logger.js';
5
5
  import { findWalletBookWallet } from '../helpers/findWalletBookWallet.js';
6
+ import '../helpers/renderTemplate.js';
6
7
  import '@dynamic-labs/utils';
7
8
  import '../schemas/walletConnectSourceSchema.js';
8
9
  import '../schemas/walletBookSchema.js';
@@ -3,7 +3,6 @@ export declare const findWalletBookWallet: (walletBook: WalletBookSchema, wallet
3
3
  name: string;
4
4
  brand?: {
5
5
  alt?: string | undefined;
6
- imageId?: string | undefined;
7
6
  primaryColor?: string | undefined;
8
7
  spriteId?: string | undefined;
9
8
  } | undefined;
@@ -4,14 +4,12 @@ export declare const findWalletGroup: (walletBook: WalletBookSchema, walletGroup
4
4
  name: string;
5
5
  brand?: {
6
6
  alt?: string | undefined;
7
- imageId?: string | undefined;
8
7
  primaryColor?: string | undefined;
9
8
  spriteId?: string | undefined;
10
9
  } | undefined;
11
10
  walletOverrides?: Record<string, {
12
11
  brand?: {
13
12
  alt?: string | undefined;
14
- imageId?: string | undefined;
15
13
  primaryColor?: string | undefined;
16
14
  spriteId?: string | undefined;
17
15
  } | undefined;
@@ -8,9 +8,6 @@ const getBrandIconUrl = (brand) => {
8
8
  if (brand.spriteId) {
9
9
  return renderTemplate.renderTemplate('iconicUrl', brand.spriteId);
10
10
  }
11
- if (brand.imageId) {
12
- return renderTemplate.renderTemplate('walletConnectUrl', brand.imageId);
13
- }
14
11
  return '';
15
12
  };
16
13
 
@@ -4,9 +4,6 @@ const getBrandIconUrl = (brand) => {
4
4
  if (brand.spriteId) {
5
5
  return renderTemplate('iconicUrl', brand.spriteId);
6
6
  }
7
- if (brand.imageId) {
8
- return renderTemplate('walletConnectUrl', brand.imageId);
9
- }
10
7
  return '';
11
8
  };
12
9
 
@@ -2,12 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var iconic = require('@dynamic-labs/iconic');
6
+
5
7
  const TEMPLATES = {
6
8
  androidUrl: 'https://play.google.com/store/apps/details?id={{id}}',
7
9
  chromeUrl: 'https://chrome.google.com/webstore/detail/{{id}}',
8
10
  edgeUrl: 'https://microsoftedge.microsoft.com/addons/detail/{{id}}',
9
11
  firefoxUrl: 'https://addons.mozilla.org/en-US/firefox/addon/{{id}}',
10
- iconicUrl: 'https://iconic.dynamic-static-assets.com/icons/sprite.svg#{{id}}',
12
+ iconicUrl: `${iconic.getIconicSpriteUrl()}#{{id}}`,
11
13
  iosUrl: 'https://apps.apple.com/app/apple-store/{{id}}',
12
14
  walletConnectUrl: 'https://registry.walletconnect.org/v2/logo/sm/{{id}}',
13
15
  };
@@ -3,7 +3,7 @@ declare const TEMPLATES: {
3
3
  readonly chromeUrl: "https://chrome.google.com/webstore/detail/{{id}}";
4
4
  readonly edgeUrl: "https://microsoftedge.microsoft.com/addons/detail/{{id}}";
5
5
  readonly firefoxUrl: "https://addons.mozilla.org/en-US/firefox/addon/{{id}}";
6
- readonly iconicUrl: "https://iconic.dynamic-static-assets.com/icons/sprite.svg#{{id}}";
6
+ readonly iconicUrl: `${string}#{{id}}`;
7
7
  readonly iosUrl: "https://apps.apple.com/app/apple-store/{{id}}";
8
8
  readonly walletConnectUrl: "https://registry.walletconnect.org/v2/logo/sm/{{id}}";
9
9
  };
@@ -1,9 +1,11 @@
1
+ import { getIconicSpriteUrl } from '@dynamic-labs/iconic';
2
+
1
3
  const TEMPLATES = {
2
4
  androidUrl: 'https://play.google.com/store/apps/details?id={{id}}',
3
5
  chromeUrl: 'https://chrome.google.com/webstore/detail/{{id}}',
4
6
  edgeUrl: 'https://microsoftedge.microsoft.com/addons/detail/{{id}}',
5
7
  firefoxUrl: 'https://addons.mozilla.org/en-US/firefox/addon/{{id}}',
6
- iconicUrl: 'https://iconic.dynamic-static-assets.com/icons/sprite.svg#{{id}}',
8
+ iconicUrl: `${getIconicSpriteUrl()}#{{id}}`,
7
9
  iosUrl: 'https://apps.apple.com/app/apple-store/{{id}}',
8
10
  walletConnectUrl: 'https://registry.walletconnect.org/v2/logo/sm/{{id}}',
9
11
  };
@@ -9,6 +9,7 @@ require('../schemas/walletConnectSourceSchema.cjs');
9
9
  var walletBookSchema = require('../schemas/walletBookSchema.cjs');
10
10
  require('../schemas/walletSchema.cjs');
11
11
  var logger = require('../helpers/logger.cjs');
12
+ require('../helpers/renderTemplate.cjs');
12
13
  var getWalletBookCdnUrl = require('../helpers/getWalletBookCdnUrl.cjs');
13
14
  var walletBookFallbacks = require('../../wallet-book-fallbacks.cjs');
14
15
 
@@ -4,14 +4,12 @@ export declare const useWalletBookCdn: () => {
4
4
  name: string;
5
5
  brand?: {
6
6
  alt?: string | undefined;
7
- imageId?: string | undefined;
8
7
  primaryColor?: string | undefined;
9
8
  spriteId?: string | undefined;
10
9
  } | undefined;
11
10
  walletOverrides?: Record<string, {
12
11
  brand?: {
13
12
  alt?: string | undefined;
14
- imageId?: string | undefined;
15
13
  primaryColor?: string | undefined;
16
14
  spriteId?: string | undefined;
17
15
  } | undefined;
@@ -22,7 +20,6 @@ export declare const useWalletBookCdn: () => {
22
20
  name: string;
23
21
  brand?: {
24
22
  alt?: string | undefined;
25
- imageId?: string | undefined;
26
23
  primaryColor?: string | undefined;
27
24
  spriteId?: string | undefined;
28
25
  } | undefined;
@@ -5,6 +5,7 @@ import '../schemas/walletConnectSourceSchema.js';
5
5
  import { walletBookSchema } from '../schemas/walletBookSchema.js';
6
6
  import '../schemas/walletSchema.js';
7
7
  import { logger } from '../helpers/logger.js';
8
+ import '../helpers/renderTemplate.js';
8
9
  import { getWalletBookCdnUrl } from '../helpers/getWalletBookCdnUrl.js';
9
10
  import walletBookFallbacks from '../../wallet-book-fallbacks.js';
10
11
 
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var react = require('react');
6
6
  require('../../_virtual/_tslib.cjs');
7
7
  require('../helpers/logger.cjs');
8
+ require('../helpers/renderTemplate.cjs');
8
9
  require('@dynamic-labs/utils');
9
10
  require('../schemas/walletConnectSourceSchema.cjs');
10
11
  require('../schemas/walletBookSchema.cjs');
@@ -1,6 +1,7 @@
1
1
  import { useContext } from 'react';
2
2
  import '../../_virtual/_tslib.js';
3
3
  import '../helpers/logger.js';
4
+ import '../helpers/renderTemplate.js';
4
5
  import '@dynamic-labs/utils';
5
6
  import '../schemas/walletConnectSourceSchema.js';
6
7
  import '../schemas/walletBookSchema.js';
package/src/index.cjs CHANGED
@@ -6,6 +6,7 @@ var getWalletIconUrl = require('./helpers/getWalletIconUrl.cjs');
6
6
  var getWalletBookWallet = require('./helpers/getWalletBookWallet.cjs');
7
7
  var getWalletLinks = require('./helpers/getWalletLinks.cjs');
8
8
  var getWalletPrimaryColor = require('./helpers/getWalletPrimaryColor.cjs');
9
+ require('./helpers/renderTemplate.cjs');
9
10
  var findWalletBookWallet = require('./helpers/findWalletBookWallet.cjs');
10
11
  require('./helpers/logger.cjs');
11
12
  var getWalletGroup = require('./helpers/getWalletGroup.cjs');
package/src/index.js CHANGED
@@ -2,6 +2,7 @@ export { getWalletIconUrl } from './helpers/getWalletIconUrl.js';
2
2
  export { getWalletBookWallet } from './helpers/getWalletBookWallet.js';
3
3
  export { getWalletLinks } from './helpers/getWalletLinks.js';
4
4
  export { getWalletPrimaryColor } from './helpers/getWalletPrimaryColor.js';
5
+ import './helpers/renderTemplate.js';
5
6
  export { findWalletBookWallet } from './helpers/findWalletBookWallet.js';
6
7
  import './helpers/logger.js';
7
8
  export { getWalletGroup } from './helpers/getWalletGroup.js';
@@ -1,28 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
3
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3
+ brand: z.ZodOptional<z.ZodObject<{
4
4
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
5
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
6
5
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
7
6
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
8
7
  }, "strip", z.ZodTypeAny, {
9
8
  alt?: string | undefined;
10
- imageId?: string | undefined;
11
9
  primaryColor?: string | undefined;
12
10
  spriteId?: string | undefined;
13
11
  }, {
14
12
  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
- }, {
24
- alt?: unknown;
25
- imageId?: unknown;
26
13
  primaryColor?: unknown;
27
14
  spriteId?: unknown;
28
15
  }>>;
@@ -184,7 +171,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
184
171
  name: string;
185
172
  brand?: {
186
173
  alt?: string | undefined;
187
- imageId?: string | undefined;
188
174
  primaryColor?: string | undefined;
189
175
  spriteId?: string | undefined;
190
176
  } | undefined;
@@ -237,7 +223,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
237
223
  name: string;
238
224
  brand?: {
239
225
  alt?: unknown;
240
- imageId?: unknown;
241
226
  primaryColor?: unknown;
242
227
  spriteId?: unknown;
243
228
  } | undefined;
@@ -290,7 +275,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
290
275
  name: string;
291
276
  brand?: {
292
277
  alt?: string | undefined;
293
- imageId?: string | undefined;
294
278
  primaryColor?: string | undefined;
295
279
  spriteId?: string | undefined;
296
280
  } | undefined;
@@ -343,7 +327,6 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
343
327
  name: string;
344
328
  brand?: {
345
329
  alt?: string | undefined;
346
- imageId?: string | undefined;
347
330
  primaryColor?: string | undefined;
348
331
  spriteId?: string | undefined;
349
332
  } | undefined;
@@ -395,58 +378,32 @@ export declare const walletRecordsSchema: z.ZodRecord<z.ZodString, z.ZodEffects<
395
378
  }, unknown>>;
396
379
  export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
397
380
  groups: z.ZodRecord<z.ZodString, z.ZodObject<{
398
- brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
381
+ brand: z.ZodOptional<z.ZodObject<{
399
382
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
400
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
401
383
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
402
384
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
403
385
  }, "strip", z.ZodTypeAny, {
404
386
  alt?: string | undefined;
405
- imageId?: string | undefined;
406
387
  primaryColor?: string | undefined;
407
388
  spriteId?: string | undefined;
408
389
  }, {
409
390
  alt?: unknown;
410
- imageId?: unknown;
411
391
  primaryColor?: unknown;
412
392
  spriteId?: unknown;
413
- }>>, {
414
- alt?: string | undefined;
415
- imageId?: string | undefined;
416
- primaryColor?: string | undefined;
417
- spriteId?: string | undefined;
418
- } | undefined, {
419
- alt?: unknown;
420
- imageId?: unknown;
421
- primaryColor?: unknown;
422
- spriteId?: unknown;
423
- } | undefined>;
393
+ }>>;
424
394
  key: z.ZodString;
425
395
  name: z.ZodString;
426
396
  walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
427
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
397
+ brand: z.ZodOptional<z.ZodObject<{
428
398
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
429
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
430
399
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
431
400
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
432
401
  }, "strip", z.ZodTypeAny, {
433
402
  alt?: string | undefined;
434
- imageId?: string | undefined;
435
- primaryColor?: string | undefined;
436
- spriteId?: string | undefined;
437
- }, {
438
- alt?: unknown;
439
- imageId?: unknown;
440
- primaryColor?: unknown;
441
- spriteId?: unknown;
442
- }>, {
443
- alt?: string | undefined;
444
- imageId?: string | undefined;
445
403
  primaryColor?: string | undefined;
446
404
  spriteId?: string | undefined;
447
405
  }, {
448
406
  alt?: unknown;
449
- imageId?: unknown;
450
407
  primaryColor?: unknown;
451
408
  spriteId?: unknown;
452
409
  }>>;
@@ -454,7 +411,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
454
411
  }, "strip", z.ZodTypeAny, {
455
412
  brand?: {
456
413
  alt?: string | undefined;
457
- imageId?: string | undefined;
458
414
  primaryColor?: string | undefined;
459
415
  spriteId?: string | undefined;
460
416
  } | undefined;
@@ -462,7 +418,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
462
418
  }, {
463
419
  brand?: {
464
420
  alt?: unknown;
465
- imageId?: unknown;
466
421
  primaryColor?: unknown;
467
422
  spriteId?: unknown;
468
423
  } | undefined;
@@ -473,14 +428,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
473
428
  key: string;
474
429
  brand?: {
475
430
  alt?: string | undefined;
476
- imageId?: string | undefined;
477
431
  primaryColor?: string | undefined;
478
432
  spriteId?: string | undefined;
479
433
  } | undefined;
480
434
  walletOverrides?: Record<string, {
481
435
  brand?: {
482
436
  alt?: string | undefined;
483
- imageId?: string | undefined;
484
437
  primaryColor?: string | undefined;
485
438
  spriteId?: string | undefined;
486
439
  } | undefined;
@@ -491,14 +444,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
491
444
  key: string;
492
445
  brand?: {
493
446
  alt?: unknown;
494
- imageId?: unknown;
495
447
  primaryColor?: unknown;
496
448
  spriteId?: unknown;
497
449
  } | undefined;
498
450
  walletOverrides?: Record<string, {
499
451
  brand?: {
500
452
  alt?: unknown;
501
- imageId?: unknown;
502
453
  primaryColor?: unknown;
503
454
  spriteId?: unknown;
504
455
  } | undefined;
@@ -506,29 +457,16 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
506
457
  }> | undefined;
507
458
  }>>;
508
459
  wallets: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodEffects<z.ZodObject<{
509
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
460
+ brand: z.ZodOptional<z.ZodObject<{
510
461
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
511
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
512
462
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
513
463
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
514
464
  }, "strip", z.ZodTypeAny, {
515
465
  alt?: string | undefined;
516
- imageId?: string | undefined;
517
466
  primaryColor?: string | undefined;
518
467
  spriteId?: string | undefined;
519
468
  }, {
520
469
  alt?: unknown;
521
- imageId?: unknown;
522
- primaryColor?: unknown;
523
- spriteId?: unknown;
524
- }>, {
525
- alt?: string | undefined;
526
- imageId?: string | undefined;
527
- primaryColor?: string | undefined;
528
- spriteId?: string | undefined;
529
- }, {
530
- alt?: unknown;
531
- imageId?: unknown;
532
470
  primaryColor?: unknown;
533
471
  spriteId?: unknown;
534
472
  }>>;
@@ -690,7 +628,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
690
628
  name: string;
691
629
  brand?: {
692
630
  alt?: string | undefined;
693
- imageId?: string | undefined;
694
631
  primaryColor?: string | undefined;
695
632
  spriteId?: string | undefined;
696
633
  } | undefined;
@@ -743,7 +680,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
743
680
  name: string;
744
681
  brand?: {
745
682
  alt?: unknown;
746
- imageId?: unknown;
747
683
  primaryColor?: unknown;
748
684
  spriteId?: unknown;
749
685
  } | undefined;
@@ -796,7 +732,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
796
732
  name: string;
797
733
  brand?: {
798
734
  alt?: string | undefined;
799
- imageId?: string | undefined;
800
735
  primaryColor?: string | undefined;
801
736
  spriteId?: string | undefined;
802
737
  } | undefined;
@@ -849,7 +784,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
849
784
  name: string;
850
785
  brand?: {
851
786
  alt?: string | undefined;
852
- imageId?: string | undefined;
853
787
  primaryColor?: string | undefined;
854
788
  spriteId?: string | undefined;
855
789
  } | undefined;
@@ -905,14 +839,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
905
839
  key: string;
906
840
  brand?: {
907
841
  alt?: string | undefined;
908
- imageId?: string | undefined;
909
842
  primaryColor?: string | undefined;
910
843
  spriteId?: string | undefined;
911
844
  } | undefined;
912
845
  walletOverrides?: Record<string, {
913
846
  brand?: {
914
847
  alt?: string | undefined;
915
- imageId?: string | undefined;
916
848
  primaryColor?: string | undefined;
917
849
  spriteId?: string | undefined;
918
850
  } | undefined;
@@ -923,7 +855,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
923
855
  name: string;
924
856
  brand?: {
925
857
  alt?: string | undefined;
926
- imageId?: string | undefined;
927
858
  primaryColor?: string | undefined;
928
859
  spriteId?: string | undefined;
929
860
  } | undefined;
@@ -979,14 +910,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
979
910
  key: string;
980
911
  brand?: {
981
912
  alt?: unknown;
982
- imageId?: unknown;
983
913
  primaryColor?: unknown;
984
914
  spriteId?: unknown;
985
915
  } | undefined;
986
916
  walletOverrides?: Record<string, {
987
917
  brand?: {
988
918
  alt?: unknown;
989
- imageId?: unknown;
990
919
  primaryColor?: unknown;
991
920
  spriteId?: unknown;
992
921
  } | undefined;
@@ -1000,14 +929,12 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
1000
929
  key: string;
1001
930
  brand?: {
1002
931
  alt?: string | undefined;
1003
- imageId?: string | undefined;
1004
932
  primaryColor?: string | undefined;
1005
933
  spriteId?: string | undefined;
1006
934
  } | undefined;
1007
935
  walletOverrides?: Record<string, {
1008
936
  brand?: {
1009
937
  alt?: string | undefined;
1010
- imageId?: string | undefined;
1011
938
  primaryColor?: string | undefined;
1012
939
  spriteId?: string | undefined;
1013
940
  } | undefined;
@@ -1018,7 +945,6 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
1018
945
  name: string;
1019
946
  brand?: {
1020
947
  alt?: string | undefined;
1021
- imageId?: string | undefined;
1022
948
  primaryColor?: string | undefined;
1023
949
  spriteId?: string | undefined;
1024
950
  } | undefined;
@@ -1072,58 +998,32 @@ export declare const walletBookSchema: z.ZodEffects<z.ZodObject<{
1072
998
  export type WalletBookSchema = z.infer<typeof walletBookSchema>;
1073
999
  export type WalletRecordsSchema = z.infer<typeof walletBookSchema>['wallets'];
1074
1000
  declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1075
- brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
1001
+ brand: z.ZodOptional<z.ZodObject<{
1076
1002
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1077
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1078
1003
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1079
1004
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1080
1005
  }, "strip", z.ZodTypeAny, {
1081
1006
  alt?: string | undefined;
1082
- imageId?: string | undefined;
1083
1007
  primaryColor?: string | undefined;
1084
1008
  spriteId?: string | undefined;
1085
1009
  }, {
1086
1010
  alt?: unknown;
1087
- imageId?: unknown;
1088
- primaryColor?: unknown;
1089
- spriteId?: unknown;
1090
- }>>, {
1091
- alt?: string | undefined;
1092
- imageId?: string | undefined;
1093
- primaryColor?: string | undefined;
1094
- spriteId?: string | undefined;
1095
- } | undefined, {
1096
- alt?: unknown;
1097
- imageId?: unknown;
1098
1011
  primaryColor?: unknown;
1099
1012
  spriteId?: unknown;
1100
- } | undefined>;
1013
+ }>>;
1101
1014
  key: z.ZodString;
1102
1015
  name: z.ZodString;
1103
1016
  walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1104
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1017
+ brand: z.ZodOptional<z.ZodObject<{
1105
1018
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1106
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1107
1019
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1108
1020
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1109
1021
  }, "strip", z.ZodTypeAny, {
1110
1022
  alt?: string | undefined;
1111
- imageId?: string | undefined;
1112
- primaryColor?: string | undefined;
1113
- spriteId?: string | undefined;
1114
- }, {
1115
- alt?: unknown;
1116
- imageId?: unknown;
1117
- primaryColor?: unknown;
1118
- spriteId?: unknown;
1119
- }>, {
1120
- alt?: string | undefined;
1121
- imageId?: string | undefined;
1122
1023
  primaryColor?: string | undefined;
1123
1024
  spriteId?: string | undefined;
1124
1025
  }, {
1125
1026
  alt?: unknown;
1126
- imageId?: unknown;
1127
1027
  primaryColor?: unknown;
1128
1028
  spriteId?: unknown;
1129
1029
  }>>;
@@ -1131,7 +1031,6 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1131
1031
  }, "strip", z.ZodTypeAny, {
1132
1032
  brand?: {
1133
1033
  alt?: string | undefined;
1134
- imageId?: string | undefined;
1135
1034
  primaryColor?: string | undefined;
1136
1035
  spriteId?: string | undefined;
1137
1036
  } | undefined;
@@ -1139,7 +1038,6 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1139
1038
  }, {
1140
1039
  brand?: {
1141
1040
  alt?: unknown;
1142
- imageId?: unknown;
1143
1041
  primaryColor?: unknown;
1144
1042
  spriteId?: unknown;
1145
1043
  } | undefined;
@@ -1150,14 +1048,12 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1150
1048
  key: string;
1151
1049
  brand?: {
1152
1050
  alt?: string | undefined;
1153
- imageId?: string | undefined;
1154
1051
  primaryColor?: string | undefined;
1155
1052
  spriteId?: string | undefined;
1156
1053
  } | undefined;
1157
1054
  walletOverrides?: Record<string, {
1158
1055
  brand?: {
1159
1056
  alt?: string | undefined;
1160
- imageId?: string | undefined;
1161
1057
  primaryColor?: string | undefined;
1162
1058
  spriteId?: string | undefined;
1163
1059
  } | undefined;
@@ -1168,14 +1064,12 @@ declare const WalletGroupRecordSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
1168
1064
  key: string;
1169
1065
  brand?: {
1170
1066
  alt?: unknown;
1171
- imageId?: unknown;
1172
1067
  primaryColor?: unknown;
1173
1068
  spriteId?: unknown;
1174
1069
  } | undefined;
1175
1070
  walletOverrides?: Record<string, {
1176
1071
  brand?: {
1177
1072
  alt?: unknown;
1178
- imageId?: unknown;
1179
1073
  primaryColor?: unknown;
1180
1074
  spriteId?: unknown;
1181
1075
  } | undefined;
@@ -14,22 +14,10 @@ const walletGroupSchema = zod.z.object({
14
14
  brand: zod.z
15
15
  .object({
16
16
  alt: nonEmptyString.nonEmptyString,
17
- imageId: nonEmptyString.nonEmptyString,
18
17
  primaryColor: nonEmptyString.nonEmptyString,
19
18
  spriteId: nonEmptyString.nonEmptyString,
20
19
  })
21
- .optional()
22
- .refine((val) => {
23
- if (!val)
24
- return true;
25
- if (!(val.spriteId && val.imageId) && (val.spriteId || val.imageId)) {
26
- return true;
27
- }
28
- return false;
29
- }, {
30
- message: 'Only one of spriteId or imageId can be defined',
31
- path: ['brand'],
32
- }),
20
+ .optional(),
33
21
  key: zod.z.string(),
34
22
  name: zod.z.string(),
35
23
  walletOverrides: zod.z.record(WalletOverrideEntrySchema).optional(),
@@ -1,28 +1,15 @@
1
1
  import { z } from 'zod';
2
2
  declare const WalletOverrideEntrySchema: z.ZodObject<{
3
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3
+ brand: z.ZodOptional<z.ZodObject<{
4
4
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
5
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
6
5
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
7
6
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
8
7
  }, "strip", z.ZodTypeAny, {
9
8
  alt?: string | undefined;
10
- imageId?: string | undefined;
11
9
  primaryColor?: string | undefined;
12
10
  spriteId?: string | undefined;
13
11
  }, {
14
12
  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
- }, {
24
- alt?: unknown;
25
- imageId?: unknown;
26
13
  primaryColor?: unknown;
27
14
  spriteId?: unknown;
28
15
  }>>;
@@ -30,7 +17,6 @@ declare const WalletOverrideEntrySchema: z.ZodObject<{
30
17
  }, "strip", z.ZodTypeAny, {
31
18
  brand?: {
32
19
  alt?: string | undefined;
33
- imageId?: string | undefined;
34
20
  primaryColor?: string | undefined;
35
21
  spriteId?: string | undefined;
36
22
  } | undefined;
@@ -38,65 +24,38 @@ declare const WalletOverrideEntrySchema: z.ZodObject<{
38
24
  }, {
39
25
  brand?: {
40
26
  alt?: unknown;
41
- imageId?: unknown;
42
27
  primaryColor?: unknown;
43
28
  spriteId?: unknown;
44
29
  } | undefined;
45
30
  name?: unknown;
46
31
  }>;
47
32
  export declare const walletGroupSchema: z.ZodObject<{
48
- brand: z.ZodEffects<z.ZodOptional<z.ZodObject<{
33
+ brand: z.ZodOptional<z.ZodObject<{
49
34
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
50
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
51
35
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
52
36
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
53
37
  }, "strip", z.ZodTypeAny, {
54
38
  alt?: string | undefined;
55
- imageId?: string | undefined;
56
39
  primaryColor?: string | undefined;
57
40
  spriteId?: string | undefined;
58
41
  }, {
59
42
  alt?: unknown;
60
- imageId?: unknown;
61
43
  primaryColor?: unknown;
62
44
  spriteId?: unknown;
63
- }>>, {
64
- alt?: string | undefined;
65
- imageId?: string | undefined;
66
- primaryColor?: string | undefined;
67
- spriteId?: string | undefined;
68
- } | undefined, {
69
- alt?: unknown;
70
- imageId?: unknown;
71
- primaryColor?: unknown;
72
- spriteId?: unknown;
73
- } | undefined>;
45
+ }>>;
74
46
  key: z.ZodString;
75
47
  name: z.ZodString;
76
48
  walletOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
77
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
49
+ brand: z.ZodOptional<z.ZodObject<{
78
50
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
79
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
80
51
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
81
52
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
82
53
  }, "strip", z.ZodTypeAny, {
83
54
  alt?: string | undefined;
84
- imageId?: string | undefined;
85
- primaryColor?: string | undefined;
86
- spriteId?: string | undefined;
87
- }, {
88
- alt?: unknown;
89
- imageId?: unknown;
90
- primaryColor?: unknown;
91
- spriteId?: unknown;
92
- }>, {
93
- alt?: string | undefined;
94
- imageId?: string | undefined;
95
55
  primaryColor?: string | undefined;
96
56
  spriteId?: string | undefined;
97
57
  }, {
98
58
  alt?: unknown;
99
- imageId?: unknown;
100
59
  primaryColor?: unknown;
101
60
  spriteId?: unknown;
102
61
  }>>;
@@ -104,7 +63,6 @@ export declare const walletGroupSchema: z.ZodObject<{
104
63
  }, "strip", z.ZodTypeAny, {
105
64
  brand?: {
106
65
  alt?: string | undefined;
107
- imageId?: string | undefined;
108
66
  primaryColor?: string | undefined;
109
67
  spriteId?: string | undefined;
110
68
  } | undefined;
@@ -112,7 +70,6 @@ export declare const walletGroupSchema: z.ZodObject<{
112
70
  }, {
113
71
  brand?: {
114
72
  alt?: unknown;
115
- imageId?: unknown;
116
73
  primaryColor?: unknown;
117
74
  spriteId?: unknown;
118
75
  } | undefined;
@@ -123,14 +80,12 @@ export declare const walletGroupSchema: z.ZodObject<{
123
80
  key: string;
124
81
  brand?: {
125
82
  alt?: string | undefined;
126
- imageId?: string | undefined;
127
83
  primaryColor?: string | undefined;
128
84
  spriteId?: string | undefined;
129
85
  } | undefined;
130
86
  walletOverrides?: Record<string, {
131
87
  brand?: {
132
88
  alt?: string | undefined;
133
- imageId?: string | undefined;
134
89
  primaryColor?: string | undefined;
135
90
  spriteId?: string | undefined;
136
91
  } | undefined;
@@ -141,14 +96,12 @@ export declare const walletGroupSchema: z.ZodObject<{
141
96
  key: string;
142
97
  brand?: {
143
98
  alt?: unknown;
144
- imageId?: unknown;
145
99
  primaryColor?: unknown;
146
100
  spriteId?: unknown;
147
101
  } | undefined;
148
102
  walletOverrides?: Record<string, {
149
103
  brand?: {
150
104
  alt?: unknown;
151
- imageId?: unknown;
152
105
  primaryColor?: unknown;
153
106
  spriteId?: unknown;
154
107
  } | undefined;
@@ -10,22 +10,10 @@ const walletGroupSchema = z.object({
10
10
  brand: z
11
11
  .object({
12
12
  alt: nonEmptyString,
13
- imageId: nonEmptyString,
14
13
  primaryColor: nonEmptyString,
15
14
  spriteId: nonEmptyString,
16
15
  })
17
- .optional()
18
- .refine((val) => {
19
- if (!val)
20
- return true;
21
- if (!(val.spriteId && val.imageId) && (val.spriteId || val.imageId)) {
22
- return true;
23
- }
24
- return false;
25
- }, {
26
- message: 'Only one of spriteId or imageId can be defined',
27
- path: ['brand'],
28
- }),
16
+ .optional(),
29
17
  key: z.string(),
30
18
  name: z.string(),
31
19
  walletOverrides: z.record(WalletOverrideEntrySchema).optional(),
@@ -45,23 +45,10 @@ const injectedConfigSchema = zod.z.object({
45
45
  path: ['config'],
46
46
  }),
47
47
  });
48
- const brandSchema = zod.z
49
- .object({
48
+ const brandSchema = zod.z.object({
50
49
  alt: nonEmptyString.nonEmptyString,
51
- imageId: nonEmptyString.nonEmptyString,
52
50
  primaryColor: nonEmptyString.nonEmptyString,
53
51
  spriteId: nonEmptyString.nonEmptyString,
54
- })
55
- .refine((val) => {
56
- if (!val)
57
- return true;
58
- if (!(val.spriteId && val.imageId) && (val.spriteId || val.imageId)) {
59
- return true;
60
- }
61
- return false;
62
- }, {
63
- message: 'Only one of spriteId or imageId can be defined',
64
- path: ['brand'],
65
52
  });
66
53
  const walletSchema = zod.z
67
54
  .preprocess((val) => val, zod.z.object({
@@ -57,56 +57,30 @@ declare const injectedConfigSchema: z.ZodObject<{
57
57
  } | undefined;
58
58
  windowLocations?: string[] | undefined;
59
59
  }>;
60
- export declare const brandSchema: z.ZodEffects<z.ZodObject<{
60
+ export declare const brandSchema: z.ZodObject<{
61
61
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
62
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
63
62
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
64
63
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
65
64
  }, "strip", z.ZodTypeAny, {
66
65
  alt?: string | undefined;
67
- imageId?: string | undefined;
68
66
  primaryColor?: string | undefined;
69
67
  spriteId?: string | undefined;
70
68
  }, {
71
69
  alt?: unknown;
72
- imageId?: unknown;
73
- primaryColor?: unknown;
74
- spriteId?: unknown;
75
- }>, {
76
- alt?: string | undefined;
77
- imageId?: string | undefined;
78
- primaryColor?: string | undefined;
79
- spriteId?: string | undefined;
80
- }, {
81
- alt?: unknown;
82
- imageId?: unknown;
83
70
  primaryColor?: unknown;
84
71
  spriteId?: unknown;
85
72
  }>;
86
73
  export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
87
- brand: z.ZodOptional<z.ZodEffects<z.ZodObject<{
74
+ brand: z.ZodOptional<z.ZodObject<{
88
75
  alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
89
- imageId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
90
76
  primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
91
77
  spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
92
78
  }, "strip", z.ZodTypeAny, {
93
79
  alt?: string | undefined;
94
- imageId?: string | undefined;
95
- primaryColor?: string | undefined;
96
- spriteId?: string | undefined;
97
- }, {
98
- alt?: unknown;
99
- imageId?: unknown;
100
- primaryColor?: unknown;
101
- spriteId?: unknown;
102
- }>, {
103
- alt?: string | undefined;
104
- imageId?: string | undefined;
105
80
  primaryColor?: string | undefined;
106
81
  spriteId?: string | undefined;
107
82
  }, {
108
83
  alt?: unknown;
109
- imageId?: unknown;
110
84
  primaryColor?: unknown;
111
85
  spriteId?: unknown;
112
86
  }>>;
@@ -280,7 +254,6 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
280
254
  name: string;
281
255
  brand?: {
282
256
  alt?: string | undefined;
283
- imageId?: string | undefined;
284
257
  primaryColor?: string | undefined;
285
258
  spriteId?: string | undefined;
286
259
  } | undefined;
@@ -333,7 +306,6 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
333
306
  name: string;
334
307
  brand?: {
335
308
  alt?: unknown;
336
- imageId?: unknown;
337
309
  primaryColor?: unknown;
338
310
  spriteId?: unknown;
339
311
  } | undefined;
@@ -386,7 +358,6 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
386
358
  name: string;
387
359
  brand?: {
388
360
  alt?: string | undefined;
389
- imageId?: string | undefined;
390
361
  primaryColor?: string | undefined;
391
362
  spriteId?: string | undefined;
392
363
  } | undefined;
@@ -439,7 +410,6 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
439
410
  name: string;
440
411
  brand?: {
441
412
  alt?: string | undefined;
442
- imageId?: string | undefined;
443
413
  primaryColor?: string | undefined;
444
414
  spriteId?: string | undefined;
445
415
  } | undefined;
@@ -41,23 +41,10 @@ const injectedConfigSchema = z.object({
41
41
  path: ['config'],
42
42
  }),
43
43
  });
44
- const brandSchema = z
45
- .object({
44
+ const brandSchema = z.object({
46
45
  alt: nonEmptyString,
47
- imageId: nonEmptyString,
48
46
  primaryColor: nonEmptyString,
49
47
  spriteId: nonEmptyString,
50
- })
51
- .refine((val) => {
52
- if (!val)
53
- return true;
54
- if (!(val.spriteId && val.imageId) && (val.spriteId || val.imageId)) {
55
- return true;
56
- }
57
- return false;
58
- }, {
59
- message: 'Only one of spriteId or imageId can be defined',
60
- path: ['brand'],
61
48
  });
62
49
  const walletSchema = z
63
50
  .preprocess((val) => val, z.object({
@@ -6,8 +6,8 @@ var groups = {
6
6
  argentx: {
7
7
  brand: {
8
8
  alt: "ArgentX",
9
- imageId: "argentx",
10
- primaryColor: "#FF875B"
9
+ primaryColor: "#FF875B",
10
+ spriteId: "argentx"
11
11
  },
12
12
  key: "argentx",
13
13
  name: "ArgentX"
@@ -461,8 +461,8 @@ var wallets = {
461
461
  trust: {
462
462
  brand: {
463
463
  alt: "Trust Wallet",
464
- imageId: "7677b54f-3486-46e2-4e37-bf8747814f00",
465
- primaryColor: "#0500FF"
464
+ primaryColor: "#0500FF",
465
+ spriteId: "7677b54f-3486-46e2-4e37-bf8747814f00"
466
466
  },
467
467
  chains: [
468
468
  "eip155:1"
@@ -700,7 +700,7 @@ var wallets = {
700
700
  exodus: {
701
701
  brand: {
702
702
  alt: "Exodus Wallet",
703
- imageId: "4c16cad4-cac9-4643-6726-c696efaf5200"
703
+ spriteId: "4c16cad4-cac9-4643-6726-c696efaf5200"
704
704
  },
705
705
  chainGroup: "exodus",
706
706
  chains: [
@@ -2,8 +2,8 @@ var groups = {
2
2
  argentx: {
3
3
  brand: {
4
4
  alt: "ArgentX",
5
- imageId: "argentx",
6
- primaryColor: "#FF875B"
5
+ primaryColor: "#FF875B",
6
+ spriteId: "argentx"
7
7
  },
8
8
  key: "argentx",
9
9
  name: "ArgentX"
@@ -457,8 +457,8 @@ var wallets = {
457
457
  trust: {
458
458
  brand: {
459
459
  alt: "Trust Wallet",
460
- imageId: "7677b54f-3486-46e2-4e37-bf8747814f00",
461
- primaryColor: "#0500FF"
460
+ primaryColor: "#0500FF",
461
+ spriteId: "7677b54f-3486-46e2-4e37-bf8747814f00"
462
462
  },
463
463
  chains: [
464
464
  "eip155:1"
@@ -696,7 +696,7 @@ var wallets = {
696
696
  exodus: {
697
697
  brand: {
698
698
  alt: "Exodus Wallet",
699
- imageId: "4c16cad4-cac9-4643-6726-c696efaf5200"
699
+ spriteId: "4c16cad4-cac9-4643-6726-c696efaf5200"
700
700
  },
701
701
  chainGroup: "exodus",
702
702
  chains: [