@merkl/api 0.10.117 → 0.10.118

Sign up to get free protection for your applications and to get access to all the features.
@@ -1054,6 +1054,7 @@ declare const eden: {
1054
1054
  fetch?: RequestInit | undefined;
1055
1055
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1056
1056
  200: {
1057
+ tags: string[];
1057
1058
  address: string;
1058
1059
  } | null;
1059
1060
  }>>;
@@ -1304,6 +1305,31 @@ declare const eden: {
1304
1305
  };
1305
1306
  }>>;
1306
1307
  };
1308
+ tags: {
1309
+ get: (options: {
1310
+ headers: {
1311
+ authorization: string;
1312
+ };
1313
+ query?: Record<string, unknown> | undefined;
1314
+ fetch?: RequestInit | undefined;
1315
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1316
+ 200: {
1317
+ tags: string[];
1318
+ address: string;
1319
+ }[];
1320
+ }>>;
1321
+ };
1322
+ sync: {
1323
+ post: (body: unknown, options: {
1324
+ headers: {
1325
+ authorization: string;
1326
+ };
1327
+ query?: Record<string, unknown> | undefined;
1328
+ fetch?: RequestInit | undefined;
1329
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1330
+ 200: void;
1331
+ }>>;
1332
+ };
1307
1333
  };
1308
1334
  roots: {
1309
1335
  timestamps: {
@@ -1331,11 +1357,10 @@ declare const eden: {
1331
1357
  fetch?: RequestInit | undefined;
1332
1358
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
1333
1359
  200: {
1334
- [chainId: number]: {
1335
- live: string;
1336
- lastTree: string;
1337
- };
1338
- };
1360
+ live: string;
1361
+ tree: string;
1362
+ lastTree: string;
1363
+ }[];
1339
1364
  }>>;
1340
1365
  };
1341
1366
  };
@@ -3042,6 +3067,25 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3042
3067
  };
3043
3068
  };
3044
3069
  };
3070
+ } & {
3071
+ users: {
3072
+ tags: {
3073
+ get: {
3074
+ body: unknown;
3075
+ params: Record<never, string>;
3076
+ query: unknown;
3077
+ headers: {
3078
+ authorization: string;
3079
+ };
3080
+ response: {
3081
+ 200: {
3082
+ tags: string[];
3083
+ address: string;
3084
+ }[];
3085
+ };
3086
+ };
3087
+ };
3088
+ };
3045
3089
  } & {
3046
3090
  users: {
3047
3091
  ":address": {
@@ -3052,6 +3096,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3052
3096
  headers: unknown;
3053
3097
  response: {
3054
3098
  200: {
3099
+ tags: string[];
3055
3100
  address: string;
3056
3101
  } | null;
3057
3102
  };
@@ -3298,6 +3343,22 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3298
3343
  };
3299
3344
  };
3300
3345
  };
3346
+ } & {
3347
+ users: {
3348
+ sync: {
3349
+ post: {
3350
+ body: unknown;
3351
+ params: Record<never, string>;
3352
+ query: unknown;
3353
+ headers: {
3354
+ authorization: string;
3355
+ };
3356
+ response: {
3357
+ 200: void;
3358
+ };
3359
+ };
3360
+ };
3361
+ };
3301
3362
  } & {
3302
3363
  users: {
3303
3364
  ":address": {
@@ -3358,11 +3419,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
3358
3419
  headers: unknown;
3359
3420
  response: {
3360
3421
  200: {
3361
- [chainId: number]: {
3362
- live: string;
3363
- lastTree: string;
3364
- };
3365
- };
3422
+ live: string;
3423
+ tree: string;
3424
+ lastTree: string;
3425
+ }[];
3366
3426
  };
3367
3427
  };
3368
3428
  };
@@ -4918,6 +4978,7 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
4918
4978
  fetch?: RequestInit | undefined;
4919
4979
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
4920
4980
  200: {
4981
+ tags: string[];
4921
4982
  address: string;
4922
4983
  } | null;
4923
4984
  }>>;
@@ -5168,6 +5229,31 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5168
5229
  };
5169
5230
  }>>;
5170
5231
  };
5232
+ tags: {
5233
+ get: (options: {
5234
+ headers: {
5235
+ authorization: string;
5236
+ };
5237
+ query?: Record<string, unknown> | undefined;
5238
+ fetch?: RequestInit | undefined;
5239
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5240
+ 200: {
5241
+ tags: string[];
5242
+ address: string;
5243
+ }[];
5244
+ }>>;
5245
+ };
5246
+ sync: {
5247
+ post: (body: unknown, options: {
5248
+ headers: {
5249
+ authorization: string;
5250
+ };
5251
+ query?: Record<string, unknown> | undefined;
5252
+ fetch?: RequestInit | undefined;
5253
+ }) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5254
+ 200: void;
5255
+ }>>;
5256
+ };
5171
5257
  };
5172
5258
  roots: {
5173
5259
  timestamps: {
@@ -5195,11 +5281,10 @@ export declare const MerklApi: (domain: string | import("elysia").default<"", fa
5195
5281
  fetch?: RequestInit | undefined;
5196
5282
  } | undefined) => Promise<import("@elysiajs/eden").Treaty.TreatyResponse<{
5197
5283
  200: {
5198
- [chainId: number]: {
5199
- live: string;
5200
- lastTree: string;
5201
- };
5202
- };
5284
+ live: string;
5285
+ tree: string;
5286
+ lastTree: string;
5287
+ }[];
5203
5288
  }>>;
5204
5289
  };
5205
5290
  };
@@ -1324,6 +1324,25 @@ declare const app: Elysia<"", false, {
1324
1324
  };
1325
1325
  };
1326
1326
  };
1327
+ } & {
1328
+ users: {
1329
+ tags: {
1330
+ get: {
1331
+ body: unknown;
1332
+ params: Record<never, string>;
1333
+ query: unknown;
1334
+ headers: {
1335
+ authorization: string;
1336
+ };
1337
+ response: {
1338
+ 200: {
1339
+ tags: string[];
1340
+ address: string;
1341
+ }[];
1342
+ };
1343
+ };
1344
+ };
1345
+ };
1327
1346
  } & {
1328
1347
  users: {
1329
1348
  ":address": {
@@ -1334,6 +1353,7 @@ declare const app: Elysia<"", false, {
1334
1353
  headers: unknown;
1335
1354
  response: {
1336
1355
  200: {
1356
+ tags: string[];
1337
1357
  address: string;
1338
1358
  } | null;
1339
1359
  };
@@ -1580,6 +1600,22 @@ declare const app: Elysia<"", false, {
1580
1600
  };
1581
1601
  };
1582
1602
  };
1603
+ } & {
1604
+ users: {
1605
+ sync: {
1606
+ post: {
1607
+ body: unknown;
1608
+ params: Record<never, string>;
1609
+ query: unknown;
1610
+ headers: {
1611
+ authorization: string;
1612
+ };
1613
+ response: {
1614
+ 200: void;
1615
+ };
1616
+ };
1617
+ };
1618
+ };
1583
1619
  } & {
1584
1620
  users: {
1585
1621
  ":address": {
@@ -1640,11 +1676,10 @@ declare const app: Elysia<"", false, {
1640
1676
  headers: unknown;
1641
1677
  response: {
1642
1678
  200: {
1643
- [chainId: number]: {
1644
- live: string;
1645
- lastTree: string;
1646
- };
1647
- };
1679
+ live: string;
1680
+ tree: string;
1681
+ lastTree: string;
1682
+ }[];
1648
1683
  };
1649
1684
  };
1650
1685
  };
@@ -43,11 +43,10 @@ export declare const MerklRootController: Elysia<"/roots", false, {
43
43
  headers: unknown;
44
44
  response: {
45
45
  200: {
46
- [chainId: number]: {
47
- live: string;
48
- lastTree: string;
49
- };
50
- };
46
+ live: string;
47
+ tree: string;
48
+ lastTree: string;
49
+ }[];
51
50
  };
52
51
  };
53
52
  };
@@ -26,9 +26,8 @@ export declare class MerklRootService {
26
26
  * @returns record of chains to object with live and last tree roots
27
27
  */
28
28
  static fetchAll(chainIds?: ChainId[]): Promise<{
29
- [chainId: number]: {
30
- live: string;
31
- lastTree: string;
32
- };
33
- }>;
29
+ live: string;
30
+ tree: string;
31
+ lastTree: string;
32
+ }[]>;
34
33
  }
@@ -1306,6 +1306,25 @@ export declare const v4: Elysia<"/v4", false, {
1306
1306
  };
1307
1307
  };
1308
1308
  };
1309
+ } & {
1310
+ users: {
1311
+ tags: {
1312
+ get: {
1313
+ body: unknown;
1314
+ params: Record<never, string>;
1315
+ query: unknown;
1316
+ headers: {
1317
+ authorization: string;
1318
+ };
1319
+ response: {
1320
+ 200: {
1321
+ tags: string[];
1322
+ address: string;
1323
+ }[];
1324
+ };
1325
+ };
1326
+ };
1327
+ };
1309
1328
  } & {
1310
1329
  users: {
1311
1330
  ":address": {
@@ -1316,6 +1335,7 @@ export declare const v4: Elysia<"/v4", false, {
1316
1335
  headers: unknown;
1317
1336
  response: {
1318
1337
  200: {
1338
+ tags: string[];
1319
1339
  address: string;
1320
1340
  } | null;
1321
1341
  };
@@ -1562,6 +1582,22 @@ export declare const v4: Elysia<"/v4", false, {
1562
1582
  };
1563
1583
  };
1564
1584
  };
1585
+ } & {
1586
+ users: {
1587
+ sync: {
1588
+ post: {
1589
+ body: unknown;
1590
+ params: Record<never, string>;
1591
+ query: unknown;
1592
+ headers: {
1593
+ authorization: string;
1594
+ };
1595
+ response: {
1596
+ 200: void;
1597
+ };
1598
+ };
1599
+ };
1600
+ };
1565
1601
  } & {
1566
1602
  users: {
1567
1603
  ":address": {
@@ -1622,11 +1658,10 @@ export declare const v4: Elysia<"/v4", false, {
1622
1658
  headers: unknown;
1623
1659
  response: {
1624
1660
  200: {
1625
- [chainId: number]: {
1626
- live: string;
1627
- lastTree: string;
1628
- };
1629
- };
1661
+ live: string;
1662
+ tree: string;
1663
+ lastTree: string;
1664
+ }[];
1630
1665
  };
1631
1666
  };
1632
1667
  };
@@ -33,6 +33,25 @@ export declare const UserController: Elysia<"/users", false, {
33
33
  };
34
34
  };
35
35
  };
36
+ } & {
37
+ users: {
38
+ tags: {
39
+ get: {
40
+ body: unknown;
41
+ params: Record<never, string>;
42
+ query: unknown;
43
+ headers: {
44
+ authorization: string;
45
+ };
46
+ response: {
47
+ 200: {
48
+ tags: string[];
49
+ address: string;
50
+ }[];
51
+ };
52
+ };
53
+ };
54
+ };
36
55
  } & {
37
56
  users: {
38
57
  ":address": {
@@ -43,6 +62,7 @@ export declare const UserController: Elysia<"/users", false, {
43
62
  headers: unknown;
44
63
  response: {
45
64
  200: {
65
+ tags: string[];
46
66
  address: string;
47
67
  } | null;
48
68
  };
@@ -289,6 +309,22 @@ export declare const UserController: Elysia<"/users", false, {
289
309
  };
290
310
  };
291
311
  };
312
+ } & {
313
+ users: {
314
+ sync: {
315
+ post: {
316
+ body: unknown;
317
+ params: Record<never, string>;
318
+ query: unknown;
319
+ headers: {
320
+ authorization: string;
321
+ };
322
+ response: {
323
+ 200: void;
324
+ };
325
+ };
326
+ };
327
+ };
292
328
  } & {
293
329
  users: {
294
330
  ":address": {
@@ -1,12 +1,17 @@
1
1
  import type { GetManyUserModel, UserModel } from "./user.model";
2
2
  export declare abstract class UserRepository {
3
3
  static findUnique(address: string): Promise<{
4
+ tags: string[];
4
5
  address: string;
5
6
  } | null>;
6
7
  static findMany(query: GetManyUserModel): Promise<{
7
8
  tags: string[];
8
9
  address: string;
9
10
  }[]>;
11
+ static findManyWithTags(): Promise<{
12
+ tags: string[];
13
+ address: string;
14
+ }[]>;
10
15
  static create(user: UserModel): Promise<{
11
16
  tags: string[];
12
17
  address: string;
@@ -1,9 +1,14 @@
1
1
  import type { GetManyUserModel, UserModel } from "./user.model";
2
2
  export declare abstract class UserService {
3
- static get(address: string): Promise<{
3
+ static findUnique(address: string): Promise<{
4
+ tags: string[];
4
5
  address: string;
5
6
  } | null>;
6
- static getMany(query: GetManyUserModel): Promise<{
7
+ static findMany(query: GetManyUserModel): Promise<{
8
+ tags: string[];
9
+ address: string;
10
+ }[]>;
11
+ static findManyWithTags(): Promise<{
7
12
  tags: string[];
8
13
  address: string;
9
14
  }[]>;
@@ -16,4 +21,5 @@ export declare abstract class UserService {
16
21
  tags: string[];
17
22
  address: string;
18
23
  }>;
24
+ static syncTags(): Promise<void>;
19
25
  }
@@ -1332,6 +1332,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1332
1332
  };
1333
1333
  };
1334
1334
  };
1335
+ } & {
1336
+ users: {
1337
+ tags: {
1338
+ get: {
1339
+ body: unknown;
1340
+ params: Record<never, string>;
1341
+ query: unknown;
1342
+ headers: {
1343
+ authorization: string;
1344
+ };
1345
+ response: {
1346
+ 200: {
1347
+ tags: string[];
1348
+ address: string;
1349
+ }[];
1350
+ };
1351
+ };
1352
+ };
1353
+ };
1335
1354
  } & {
1336
1355
  users: {
1337
1356
  ":address": {
@@ -1342,6 +1361,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1342
1361
  headers: unknown;
1343
1362
  response: {
1344
1363
  200: {
1364
+ tags: string[];
1345
1365
  address: string;
1346
1366
  } | null;
1347
1367
  };
@@ -1588,6 +1608,22 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1588
1608
  };
1589
1609
  };
1590
1610
  };
1611
+ } & {
1612
+ users: {
1613
+ sync: {
1614
+ post: {
1615
+ body: unknown;
1616
+ params: Record<never, string>;
1617
+ query: unknown;
1618
+ headers: {
1619
+ authorization: string;
1620
+ };
1621
+ response: {
1622
+ 200: void;
1623
+ };
1624
+ };
1625
+ };
1626
+ };
1591
1627
  } & {
1592
1628
  users: {
1593
1629
  ":address": {
@@ -1648,11 +1684,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1648
1684
  headers: unknown;
1649
1685
  response: {
1650
1686
  200: {
1651
- [chainId: number]: {
1652
- live: string;
1653
- lastTree: string;
1654
- };
1655
- };
1687
+ live: string;
1688
+ tree: string;
1689
+ lastTree: string;
1690
+ }[];
1656
1691
  };
1657
1692
  };
1658
1693
  };
@@ -1330,6 +1330,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1330
1330
  };
1331
1331
  };
1332
1332
  };
1333
+ } & {
1334
+ users: {
1335
+ tags: {
1336
+ get: {
1337
+ body: unknown;
1338
+ params: Record<never, string>;
1339
+ query: unknown;
1340
+ headers: {
1341
+ authorization: string;
1342
+ };
1343
+ response: {
1344
+ 200: {
1345
+ tags: string[];
1346
+ address: string;
1347
+ }[];
1348
+ };
1349
+ };
1350
+ };
1351
+ };
1333
1352
  } & {
1334
1353
  users: {
1335
1354
  ":address": {
@@ -1340,6 +1359,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1340
1359
  headers: unknown;
1341
1360
  response: {
1342
1361
  200: {
1362
+ tags: string[];
1343
1363
  address: string;
1344
1364
  } | null;
1345
1365
  };
@@ -1586,6 +1606,22 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1586
1606
  };
1587
1607
  };
1588
1608
  };
1609
+ } & {
1610
+ users: {
1611
+ sync: {
1612
+ post: {
1613
+ body: unknown;
1614
+ params: Record<never, string>;
1615
+ query: unknown;
1616
+ headers: {
1617
+ authorization: string;
1618
+ };
1619
+ response: {
1620
+ 200: void;
1621
+ };
1622
+ };
1623
+ };
1624
+ };
1589
1625
  } & {
1590
1626
  users: {
1591
1627
  ":address": {
@@ -1646,11 +1682,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1646
1682
  headers: unknown;
1647
1683
  response: {
1648
1684
  200: {
1649
- [chainId: number]: {
1650
- live: string;
1651
- lastTree: string;
1652
- };
1653
- };
1685
+ live: string;
1686
+ tree: string;
1687
+ lastTree: string;
1688
+ }[];
1654
1689
  };
1655
1690
  };
1656
1691
  };
@@ -1333,6 +1333,25 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1333
1333
  };
1334
1334
  };
1335
1335
  };
1336
+ } & {
1337
+ users: {
1338
+ tags: {
1339
+ get: {
1340
+ body: unknown;
1341
+ params: Record<never, string>;
1342
+ query: unknown;
1343
+ headers: {
1344
+ authorization: string;
1345
+ };
1346
+ response: {
1347
+ 200: {
1348
+ tags: string[];
1349
+ address: string;
1350
+ }[];
1351
+ };
1352
+ };
1353
+ };
1354
+ };
1336
1355
  } & {
1337
1356
  users: {
1338
1357
  ":address": {
@@ -1343,6 +1362,7 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1343
1362
  headers: unknown;
1344
1363
  response: {
1345
1364
  200: {
1365
+ tags: string[];
1346
1366
  address: string;
1347
1367
  } | null;
1348
1368
  };
@@ -1589,6 +1609,22 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1589
1609
  };
1590
1610
  };
1591
1611
  };
1612
+ } & {
1613
+ users: {
1614
+ sync: {
1615
+ post: {
1616
+ body: unknown;
1617
+ params: Record<never, string>;
1618
+ query: unknown;
1619
+ headers: {
1620
+ authorization: string;
1621
+ };
1622
+ response: {
1623
+ 200: void;
1624
+ };
1625
+ };
1626
+ };
1627
+ };
1592
1628
  } & {
1593
1629
  users: {
1594
1630
  ":address": {
@@ -1649,11 +1685,10 @@ declare const _default: (app: App) => import("elysia").default<"", false, {
1649
1685
  headers: unknown;
1650
1686
  response: {
1651
1687
  200: {
1652
- [chainId: number]: {
1653
- live: string;
1654
- lastTree: string;
1655
- };
1656
- };
1688
+ live: string;
1689
+ tree: string;
1690
+ lastTree: string;
1691
+ }[];
1657
1692
  };
1658
1693
  };
1659
1694
  };