@ecency/sdk 1.0.53 → 1.0.55

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.
@@ -1,12 +1,12 @@
1
- var A = Object.defineProperty;
2
- var Q = (e, t, n) => t in e ? A(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var C = (e, t, n) => Q(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { QueryClient as K, useMutation as l, useQuery as j, useInfiniteQuery as _, queryOptions as p, infiniteQueryOptions as F } from "@tanstack/react-query";
1
+ var Q = Object.defineProperty;
2
+ var _ = (e, t, n) => t in e ? Q(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var S = (e, t, n) => _(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import { QueryClient as K, useMutation as l, useQuery as q, useInfiniteQuery as j, queryOptions as p, infiniteQueryOptions as F } from "@tanstack/react-query";
5
5
  import { Client as D, PrivateKey as h, cryptoUtils as P, RCAPI as N } from "@hiveio/dhive";
6
6
  import g from "hivesigner";
7
7
  class M {
8
8
  constructor() {
9
- C(this, "length", 0);
9
+ S(this, "length", 0);
10
10
  }
11
11
  clear() {
12
12
  throw new Error("Method not implemented.");
@@ -52,13 +52,13 @@ const i = {
52
52
  queryClient: new K(),
53
53
  plausibleHost: "https://pl.ecency.com"
54
54
  };
55
- var O;
55
+ var C;
56
56
  ((e) => {
57
57
  function t(n) {
58
58
  i.queryClient = n;
59
59
  }
60
60
  e.setQueryClient = t;
61
- })(O || (O = {}));
61
+ })(C || (C = {}));
62
62
  function E(e) {
63
63
  let t = atob(e);
64
64
  if (t[0] === "{")
@@ -74,7 +74,7 @@ const f = (e) => {
74
74
  console.error(t);
75
75
  return;
76
76
  }
77
- }, y = (e) => f(e) && f(e).accessToken, q = (e) => f(e) && f(e).postingKey, k = (e) => f(e) && f(e).loginType, Z = (e) => f(e) && f(e).refreshToken;
77
+ }, y = (e) => f(e) && f(e).accessToken, k = (e) => f(e) && f(e).postingKey, T = (e) => f(e) && f(e).loginType, L = (e) => f(e) && f(e).refreshToken;
78
78
  function J() {
79
79
  return new Promise((e) => {
80
80
  var t;
@@ -94,7 +94,7 @@ const w = (e, t, n, o = null) => new Promise((r, c) => {
94
94
  },
95
95
  o
96
96
  );
97
- }), L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
97
+ }), R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
98
98
  __proto__: null,
99
99
  broadcast: w,
100
100
  handshake: J
@@ -107,7 +107,7 @@ function I(e = [], t, n) {
107
107
  throw new Error(
108
108
  "[Core][Broadcast] Attempted to call broadcast API with anon user"
109
109
  );
110
- const r = q(t);
110
+ const r = k(t);
111
111
  if (r) {
112
112
  const s = h.fromString(r);
113
113
  return i.hiveClient.broadcast.sendOperations(
@@ -115,7 +115,7 @@ function I(e = [], t, n) {
115
115
  s
116
116
  );
117
117
  }
118
- const c = k(t);
118
+ const c = T(t);
119
119
  if (c && c == "keychain")
120
120
  return w(t, n(o), "Posting").then((s) => s.result);
121
121
  let a = y(t);
@@ -139,7 +139,7 @@ async function B(e, t, n) {
139
139
  required_auths: [],
140
140
  required_posting_auths: [e],
141
141
  json: JSON.stringify(n)
142
- }, r = q(e);
142
+ }, r = k(e);
143
143
  if (r) {
144
144
  const s = h.fromString(r);
145
145
  return i.hiveClient.broadcast.json(
@@ -147,7 +147,7 @@ async function B(e, t, n) {
147
147
  s
148
148
  );
149
149
  }
150
- const c = k(e);
150
+ const c = T(e);
151
151
  if (c && c == "keychain")
152
152
  return w(e, [["custom_json", o]], "Posting").then((s) => s.result);
153
153
  let a = y(e);
@@ -159,7 +159,7 @@ async function B(e, t, n) {
159
159
  "[SDK][Broadcast] – cannot broadcast w/o posting key or token"
160
160
  );
161
161
  }
162
- function R() {
162
+ function ee() {
163
163
  return new K({
164
164
  defaultOptions: {
165
165
  queries: {
@@ -173,7 +173,7 @@ function R() {
173
173
  });
174
174
  }
175
175
  const u = () => i.queryClient;
176
- var S;
176
+ var b;
177
177
  ((e) => {
178
178
  function t(s) {
179
179
  return u().getQueryData(s);
@@ -195,7 +195,7 @@ var S;
195
195
  return {
196
196
  prefetch: () => o(s),
197
197
  getData: () => t(s.queryKey),
198
- useClientQuery: () => j(s),
198
+ useClientQuery: () => q(s),
199
199
  fetchAndGet: () => u().fetchQuery(s)
200
200
  };
201
201
  }
@@ -204,36 +204,13 @@ var S;
204
204
  return {
205
205
  prefetch: () => r(s),
206
206
  getData: () => n(s.queryKey),
207
- useClientQuery: () => _(s),
207
+ useClientQuery: () => j(s),
208
208
  fetchAndGet: () => u().fetchInfiniteQuery(s)
209
209
  };
210
210
  }
211
211
  e.generateClientServerInfiniteQuery = a;
212
- })(S || (S = {}));
213
- function ee(e) {
214
- return I(
215
- ["accounts", "update"],
216
- e,
217
- ({
218
- profile: t,
219
- tokens: n
220
- }) => [
221
- [
222
- "account_update2",
223
- {
224
- account: e,
225
- json_metadata: "",
226
- posting_json_metadata: JSON.stringify({
227
- profile: { ...t, version: 2 },
228
- tokens: n
229
- }),
230
- extensions: []
231
- }
232
- ]
233
- ]
234
- );
235
- }
236
- function te(e) {
212
+ })(b || (b = {}));
213
+ function H(e) {
237
214
  return p({
238
215
  queryKey: ["get-account-full", e],
239
216
  queryFn: async () => {
@@ -257,7 +234,7 @@ function te(e) {
257
234
  [e, 1]
258
235
  );
259
236
  return {
260
- ...t,
237
+ ...t[0],
261
238
  follow_stats: o,
262
239
  reputation: r[0].reputation,
263
240
  profile: {
@@ -270,7 +247,7 @@ function te(e) {
270
247
  staleTime: 6e4
271
248
  });
272
249
  }
273
- function ne(e, t = 5, n = []) {
250
+ function te(e, t = 5, n = []) {
274
251
  return p({
275
252
  queryKey: ["accounts", "search", e, n],
276
253
  enabled: !!e,
@@ -282,7 +259,7 @@ function ne(e, t = 5, n = []) {
282
259
  )
283
260
  });
284
261
  }
285
- function oe(e) {
262
+ function ne(e) {
286
263
  return p({
287
264
  queryKey: ["accounts", "check-wallet-pending", e],
288
265
  queryFn: async () => await (await fetch(
@@ -301,7 +278,7 @@ function oe(e) {
301
278
  refetchOnMount: !0
302
279
  });
303
280
  }
304
- function H(e, t) {
281
+ function x(e, t) {
305
282
  return p({
306
283
  queryKey: ["accounts", "relations", e, t],
307
284
  enabled: !!e && !!t,
@@ -314,7 +291,7 @@ function H(e, t) {
314
291
  )
315
292
  });
316
293
  }
317
- function re(e) {
294
+ function oe(e) {
318
295
  return p({
319
296
  queryKey: ["accounts", "subscriptions", e],
320
297
  enabled: !!e,
@@ -327,7 +304,7 @@ function re(e) {
327
304
  ) ?? []
328
305
  });
329
306
  }
330
- function ie(e) {
307
+ function re(e) {
331
308
  return p({
332
309
  queryKey: ["accounts", "bookmarks", e],
333
310
  enabled: !!e,
@@ -347,7 +324,7 @@ function ie(e) {
347
324
  }
348
325
  });
349
326
  }
350
- function se(e) {
327
+ function ie(e) {
351
328
  return p({
352
329
  queryKey: ["accounts", "favourites", e],
353
330
  enabled: !!e,
@@ -367,11 +344,40 @@ function se(e) {
367
344
  }
368
345
  });
369
346
  }
347
+ function se(e) {
348
+ const { data: t } = q(H(e));
349
+ return I(
350
+ ["accounts", "update", t],
351
+ e,
352
+ ({ profile: n, tokens: o, beneficiary: r }) => [
353
+ [
354
+ "account_update2",
355
+ {
356
+ account: e,
357
+ json_metadata: "",
358
+ posting_json_metadata: JSON.stringify({
359
+ ...JSON.parse((t == null ? void 0 : t.posting_json_metadata) || "{}"),
360
+ profile: { ...n, version: 2 },
361
+ tokens: o,
362
+ // See https://docs.ecency.com/communities/default-beneficiary/
363
+ ...r ? {
364
+ beneficiary: {
365
+ account: r == null ? void 0 : r.username,
366
+ weight: r == null ? void 0 : r.reward
367
+ }
368
+ } : {}
369
+ }),
370
+ extensions: []
371
+ }
372
+ ]
373
+ ]
374
+ );
375
+ }
370
376
  function ae(e, t, n, o) {
371
377
  return l({
372
378
  mutationKey: [],
373
379
  mutationFn: async (r) => {
374
- const c = H(
380
+ const c = x(
375
381
  e,
376
382
  t
377
383
  );
@@ -598,7 +604,7 @@ function we(e = 20) {
598
604
  refetchOnMount: !0
599
605
  });
600
606
  }
601
- function b(e) {
607
+ function O(e) {
602
608
  return p({
603
609
  queryKey: ["posts", "fragments", e],
604
610
  queryFn: async () => (await fetch(
@@ -651,13 +657,13 @@ function me(e) {
651
657
  )).json(),
652
658
  onSuccess(t) {
653
659
  u().setQueryData(
654
- b(e).queryKey,
660
+ O(e).queryKey,
655
661
  (n) => [t, ...n ?? []]
656
662
  );
657
663
  }
658
664
  });
659
665
  }
660
- function be(e, t) {
666
+ function Oe(e, t) {
661
667
  return l({
662
668
  mutationKey: ["posts", "edit-fragment", e, t],
663
669
  mutationFn: async ({ title: n, body: o }) => (await fetch(
@@ -677,7 +683,7 @@ function be(e, t) {
677
683
  )).json(),
678
684
  onSuccess(n) {
679
685
  u().setQueryData(
680
- b(e).queryKey,
686
+ O(e).queryKey,
681
687
  (o) => {
682
688
  if (!o)
683
689
  return [];
@@ -688,7 +694,7 @@ function be(e, t) {
688
694
  }
689
695
  });
690
696
  }
691
- function Ce(e, t) {
697
+ function Se(e, t) {
692
698
  return l({
693
699
  mutationKey: ["posts", "remove-fragment", e],
694
700
  mutationFn: async () => fetch(i.privateApiHost + "/private-api/fragments-delete", {
@@ -703,13 +709,13 @@ function Ce(e, t) {
703
709
  }),
704
710
  onSuccess() {
705
711
  u().setQueryData(
706
- b(e).queryKey,
712
+ O(e).queryKey,
707
713
  (n) => [...n ?? []].filter(({ id: o }) => o !== t)
708
714
  );
709
715
  }
710
716
  });
711
717
  }
712
- function T(e, t) {
718
+ function A(e, t) {
713
719
  return l({
714
720
  mutationKey: ["analytics", t],
715
721
  mutationFn: async () => {
@@ -732,11 +738,11 @@ function T(e, t) {
732
738
  }
733
739
  });
734
740
  }
735
- const Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
741
+ const Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
736
742
  __proto__: null,
737
- useRecordActivity: T
743
+ useRecordActivity: A
738
744
  }, Symbol.toStringTag, { value: "Module" }));
739
- function x(e, t) {
745
+ function G(e, t) {
740
746
  return p({
741
747
  queryKey: ["integrations", "hivesigner", "decode-memo", e],
742
748
  queryFn: async () => {
@@ -748,11 +754,11 @@ function x(e, t) {
748
754
  }
749
755
  });
750
756
  }
751
- const G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
757
+ const W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
752
758
  __proto__: null,
753
- getDecodeMemoQueryOptions: x
754
- }, Symbol.toStringTag, { value: "Module" })), W = {
755
- queries: G
759
+ getDecodeMemoQueryOptions: G
760
+ }, Symbol.toStringTag, { value: "Module" })), U = {
761
+ queries: W
756
762
  };
757
763
  function m(e) {
758
764
  return p({
@@ -768,7 +774,7 @@ function m(e) {
768
774
  "Content-Type": "application/json"
769
775
  }
770
776
  }
771
- ), n = W.queries.getDecodeMemoQueryOptions(
777
+ ), n = U.queries.getDecodeMemoQueryOptions(
772
778
  e,
773
779
  (await t.json()).memo
774
780
  );
@@ -780,7 +786,7 @@ function m(e) {
780
786
  }
781
787
  });
782
788
  }
783
- function U(e) {
789
+ function z(e) {
784
790
  return p({
785
791
  queryKey: ["integrations", "3speak", "videos", e],
786
792
  enabled: !!e,
@@ -803,12 +809,12 @@ function U(e) {
803
809
  }
804
810
  });
805
811
  }
806
- const z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
812
+ const $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
807
813
  __proto__: null,
808
814
  getAccountTokenQueryOptions: m,
809
- getAccountVideosQueryOptions: U
810
- }, Symbol.toStringTag, { value: "Module" })), Se = {
811
- queries: z
815
+ getAccountVideosQueryOptions: z
816
+ }, Symbol.toStringTag, { value: "Module" })), be = {
817
+ queries: $
812
818
  };
813
819
  function Ke() {
814
820
  return p({
@@ -851,7 +857,7 @@ function ke(e, t) {
851
857
  });
852
858
  }
853
859
  function Te(e, t, n) {
854
- const { mutateAsync: o } = T(
860
+ const { mutateAsync: o } = A(
855
861
  e,
856
862
  "spin-rolled"
857
863
  );
@@ -905,10 +911,14 @@ function Qe(e, t) {
905
911
  queryKey: ["community", "context", e, t],
906
912
  enabled: !!e && !!t,
907
913
  queryFn: async () => {
908
- const n = await i.hiveClient.call("bridge", "get_community_context", {
909
- account: e,
910
- name: t
911
- });
914
+ const n = await i.hiveClient.call(
915
+ "bridge",
916
+ "get_community_context",
917
+ {
918
+ account: e,
919
+ name: t
920
+ }
921
+ );
912
922
  return {
913
923
  role: (n == null ? void 0 : n.role) ?? "guest",
914
924
  subscribed: (n == null ? void 0 : n.subscribed) ?? !1
@@ -917,7 +927,7 @@ function Qe(e, t) {
917
927
  });
918
928
  }
919
929
  var d = /* @__PURE__ */ ((e) => (e.OWNER = "owner", e.ADMIN = "admin", e.MOD = "mod", e.MEMBER = "member", e.GUEST = "guest", e.MUTED = "muted", e))(d || {});
920
- const je = {
930
+ const _e = {
921
931
  owner: [
922
932
  "admin",
923
933
  "mod",
@@ -940,7 +950,7 @@ const je = {
940
950
  /* MUTED */
941
951
  ]
942
952
  };
943
- function _e(e, t) {
953
+ function je(e, t) {
944
954
  return e.startsWith("hive-3") || t === 3 ? "Council" : e.startsWith("hive-2") || t === 2 ? "Journal" : "Topic";
945
955
  }
946
956
  function Fe({
@@ -948,7 +958,9 @@ function Fe({
948
958
  userRole: t,
949
959
  subscribed: n
950
960
  }) {
951
- const o = t === d.MUTED ? !1 : e === "Topic" ? !0 : [d.OWNER, d.ADMIN, d.MOD, d.MEMBER].includes(t), r = (() => {
961
+ const o = t === d.MUTED ? !1 : e === "Topic" ? !0 : [d.OWNER, d.ADMIN, d.MOD, d.MEMBER].includes(
962
+ t
963
+ ), r = (() => {
952
964
  if (t === d.MUTED) return !1;
953
965
  switch (e) {
954
966
  case "Topic":
@@ -967,52 +979,52 @@ function Fe({
967
979
  }
968
980
  export {
969
981
  i as CONFIG,
970
- O as ConfigManager,
971
- Oe as EcencyAnalytics,
972
- S as EcencyQueriesManager,
973
- W as HiveSignerIntegration,
974
- L as Keychain,
982
+ C as ConfigManager,
983
+ Ce as EcencyAnalytics,
984
+ b as EcencyQueriesManager,
985
+ U as HiveSignerIntegration,
986
+ R as Keychain,
975
987
  d as ROLES,
976
- Se as ThreeSpeakIntegration,
988
+ be as ThreeSpeakIntegration,
977
989
  B as broadcastJson,
978
- oe as checkUsernameWalletsPendingQueryOptions,
990
+ ne as checkUsernameWalletsPendingQueryOptions,
979
991
  y as getAccessToken,
980
- te as getAccountFullQueryOptions,
992
+ H as getAccountFullQueryOptions,
981
993
  qe as getAccountRcQueryOptions,
982
- re as getAccountSubscriptionsQueryOptions,
983
- ie as getActiveAccountBookmarksQueryOptions,
984
- se as getActiveAccountFavouritesQueryOptions,
994
+ oe as getAccountSubscriptionsQueryOptions,
995
+ re as getActiveAccountBookmarksQueryOptions,
996
+ ie as getActiveAccountFavouritesQueryOptions,
985
997
  he as getChainPropertiesQueryOptions,
986
998
  Ae as getCommunitiesQueryOptions,
987
999
  Qe as getCommunityContextQueryOptions,
988
1000
  Fe as getCommunityPermissions,
989
- _e as getCommunityType,
990
- b as getFragmentsQueryOptions,
1001
+ je as getCommunityType,
1002
+ O as getFragmentsQueryOptions,
991
1003
  ke as getGameStatusCheckQueryOptions,
992
1004
  ge as getHiveEngineTokensListQueryOptions,
993
- k as getLoginType,
994
- q as getPostingKey,
1005
+ T as getLoginType,
1006
+ k as getPostingKey,
995
1007
  ve as getPromotedPostsQuery,
996
1008
  u as getQueryClient,
997
1009
  Ke as getRcStatsQueryOptions,
998
- Z as getRefreshToken,
999
- H as getRelationshipBetweenAccountsQueryOptions,
1000
- ne as getSearchAccountsByUsernameQueryOptions,
1010
+ L as getRefreshToken,
1011
+ x as getRelationshipBetweenAccountsQueryOptions,
1012
+ te as getSearchAccountsByUsernameQueryOptions,
1001
1013
  we as getTrendingTagsQueryOptions,
1002
1014
  f as getUser,
1003
- R as makeQueryClient,
1004
- je as roleMap,
1015
+ ee as makeQueryClient,
1016
+ _e as roleMap,
1005
1017
  pe as useAccountFavouriteAdd,
1006
1018
  ye as useAccountFavouriteDelete,
1007
1019
  ae as useAccountRelationsUpdate,
1008
- ee as useAccountUpdate,
1020
+ se as useAccountUpdate,
1009
1021
  me as useAddFragment,
1010
1022
  ce as useBookmarkAdd,
1011
1023
  ue as useBookmarkDelete,
1012
1024
  I as useBroadcastMutation,
1013
- be as useEditFragment,
1025
+ Oe as useEditFragment,
1014
1026
  Te as useGameClaim,
1015
- Ce as useRemoveFragment,
1027
+ Se as useRemoveFragment,
1016
1028
  fe as useSignOperationByHivesigner,
1017
1029
  le as useSignOperationByKey,
1018
1030
  de as useSignOperationByKeychain
@@ -1,4 +1,4 @@
1
- export declare function useAccountUpdate(username: string): import('@tanstack/react-query').UseMutationResult<any, Error, {
1
+ interface Payload {
2
2
  profile: Record<string, any>;
3
3
  tokens: {
4
4
  symbol: string;
@@ -6,4 +6,10 @@ export declare function useAccountUpdate(username: string): import('@tanstack/re
6
6
  address: string;
7
7
  };
8
8
  }[];
9
- }, unknown>;
9
+ beneficiary: {
10
+ username: string;
11
+ reward: number;
12
+ };
13
+ }
14
+ export declare function useAccountUpdate(username: string): import('@tanstack/react-query').UseMutationResult<any, Error, Partial<Payload>, unknown>;
15
+ export {};
@@ -1,352 +1,344 @@
1
1
  import { AccountFollowStats } from '../types';
2
2
  export declare function getAccountFullQueryOptions(username: string): import('@tanstack/query-core').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<{
3
- follow_stats: AccountFollowStats | undefined;
4
- reputation: number;
5
- profile: any;
6
- length: number;
7
- toString(): string;
8
- toLocaleString(): string;
9
- toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
10
- pop(): import('@hiveio/dhive').ExtendedAccount | undefined;
11
- push(...items: import('@hiveio/dhive').ExtendedAccount[]): number;
12
- concat(...items: ConcatArray<import('@hiveio/dhive').ExtendedAccount>[]): import('@hiveio/dhive').ExtendedAccount[];
13
- concat(...items: (import('@hiveio/dhive').ExtendedAccount | ConcatArray<import('@hiveio/dhive').ExtendedAccount>)[]): import('@hiveio/dhive').ExtendedAccount[];
14
- join(separator?: string): string;
15
- reverse(): import('@hiveio/dhive').ExtendedAccount[];
16
- shift(): import('@hiveio/dhive').ExtendedAccount | undefined;
17
- slice(start?: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
18
- sort(compareFn?: ((a: import('@hiveio/dhive').ExtendedAccount, b: import('@hiveio/dhive').ExtendedAccount) => number) | undefined): import('@hiveio/dhive').ExtendedAccount[];
19
- splice(start: number, deleteCount?: number): import('@hiveio/dhive').ExtendedAccount[];
20
- splice(start: number, deleteCount: number, ...items: import('@hiveio/dhive').ExtendedAccount[]): import('@hiveio/dhive').ExtendedAccount[];
21
- unshift(...items: import('@hiveio/dhive').ExtendedAccount[]): number;
22
- indexOf(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): number;
23
- lastIndexOf(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): number;
24
- every<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): this is S[];
25
- every(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): boolean;
26
- some(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): boolean;
27
- forEach(callbackfn: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => void, thisArg?: any): void;
28
- map<U>(callbackfn: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, thisArg?: any): U[];
29
- filter<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): S[];
30
- filter(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): import('@hiveio/dhive').ExtendedAccount[];
31
- reduce(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
32
- reduce(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount, initialValue: import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
33
- reduce<U>(callbackfn: (previousValue: U, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, initialValue: U): U;
34
- reduceRight(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
35
- reduceRight(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount, initialValue: import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
36
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, initialValue: U): U;
37
- find<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): S | undefined;
38
- find(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): import('@hiveio/dhive').ExtendedAccount | undefined;
39
- findIndex(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): number;
40
- fill(value: import('@hiveio/dhive').ExtendedAccount, start?: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
41
- copyWithin(target: number, start: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
42
- entries(): ArrayIterator<[number, import('@hiveio/dhive').ExtendedAccount]>;
43
- keys(): ArrayIterator<number>;
44
- values(): ArrayIterator<import('@hiveio/dhive').ExtendedAccount>;
45
- includes(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): boolean;
46
- flatMap<U, This = undefined>(callback: (this: This, value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U | readonly U[], thisArg?: This | undefined): U[];
47
- flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
48
- [Symbol.iterator](): ArrayIterator<import('@hiveio/dhive').ExtendedAccount>;
49
- [Symbol.unscopables]: {
50
- [x: number]: boolean | undefined;
51
- length?: boolean | undefined;
52
- toString?: boolean | undefined;
53
- toLocaleString?: boolean | undefined;
54
- pop?: boolean | undefined;
55
- push?: boolean | undefined;
56
- concat?: boolean | undefined;
57
- join?: boolean | undefined;
58
- reverse?: boolean | undefined;
59
- shift?: boolean | undefined;
60
- slice?: boolean | undefined;
61
- sort?: boolean | undefined;
62
- splice?: boolean | undefined;
63
- unshift?: boolean | undefined;
64
- indexOf?: boolean | undefined;
65
- lastIndexOf?: boolean | undefined;
66
- every?: boolean | undefined;
67
- some?: boolean | undefined;
68
- forEach?: boolean | undefined;
69
- map?: boolean | undefined;
70
- filter?: boolean | undefined;
71
- reduce?: boolean | undefined;
72
- reduceRight?: boolean | undefined;
73
- find?: boolean | undefined;
74
- findIndex?: boolean | undefined;
75
- fill?: boolean | undefined;
76
- copyWithin?: boolean | undefined;
77
- entries?: boolean | undefined;
78
- keys?: boolean | undefined;
79
- values?: boolean | undefined;
80
- includes?: boolean | undefined;
81
- flatMap?: boolean | undefined;
82
- flat?: boolean | undefined;
83
- [Symbol.iterator]?: boolean | undefined;
84
- readonly [Symbol.unscopables]?: boolean | undefined;
85
- at?: boolean | undefined;
3
+ readonly follow_stats: AccountFollowStats | undefined;
4
+ readonly reputation: number;
5
+ readonly profile: any;
6
+ readonly vesting_balance: string | import('@hiveio/dhive').Asset;
7
+ readonly transfer_history: any[];
8
+ readonly market_history: any[];
9
+ readonly post_history: any[];
10
+ readonly vote_history: any[];
11
+ readonly other_history: any[];
12
+ readonly witness_votes: string[];
13
+ readonly tags_usage: string[];
14
+ readonly guest_bloggers: string[];
15
+ readonly open_orders?: any[];
16
+ readonly comments?: any[];
17
+ readonly blog?: any[];
18
+ readonly feed?: any[];
19
+ readonly recent_replies?: any[];
20
+ readonly recommended?: any[];
21
+ readonly id: number;
22
+ readonly name: string;
23
+ readonly owner: import('@hiveio/dhive').Authority;
24
+ readonly active: import('@hiveio/dhive').Authority;
25
+ readonly posting: import('@hiveio/dhive').Authority;
26
+ readonly memo_key: string;
27
+ readonly json_metadata: string;
28
+ readonly posting_json_metadata: string;
29
+ readonly proxy: string;
30
+ readonly last_owner_update: string;
31
+ readonly last_account_update: string;
32
+ readonly created: string;
33
+ readonly mined: boolean;
34
+ readonly owner_challenged: boolean;
35
+ readonly active_challenged: boolean;
36
+ readonly last_owner_proved: string;
37
+ readonly last_active_proved: string;
38
+ readonly recovery_account: string;
39
+ readonly reset_account: string;
40
+ readonly last_account_recovery: string;
41
+ readonly comment_count: number;
42
+ readonly lifetime_vote_count: number;
43
+ readonly post_count: number;
44
+ readonly can_vote: boolean;
45
+ readonly voting_power: number;
46
+ readonly last_vote_time: string;
47
+ readonly voting_manabar: {
48
+ current_mana: string | number;
49
+ last_update_time: number;
86
50
  };
87
- at(index: number): import('@hiveio/dhive').ExtendedAccount | undefined;
51
+ readonly balance: string | import('@hiveio/dhive').Asset;
52
+ readonly savings_balance: string | import('@hiveio/dhive').Asset;
53
+ readonly hbd_balance: string | import('@hiveio/dhive').Asset;
54
+ readonly hbd_seconds: string;
55
+ readonly hbd_seconds_last_update: string;
56
+ readonly hbd_last_interest_payment: string;
57
+ readonly savings_hbd_balance: string | import('@hiveio/dhive').Asset;
58
+ readonly savings_hbd_seconds: string;
59
+ readonly savings_hbd_seconds_last_update: string;
60
+ readonly savings_hbd_last_interest_payment: string;
61
+ readonly savings_withdraw_requests: number;
62
+ readonly reward_hbd_balance: string | import('@hiveio/dhive').Asset;
63
+ readonly reward_hive_balance: string | import('@hiveio/dhive').Asset;
64
+ readonly reward_vesting_balance: string | import('@hiveio/dhive').Asset;
65
+ readonly reward_vesting_hive: string | import('@hiveio/dhive').Asset;
66
+ readonly curation_rewards: number | string;
67
+ readonly posting_rewards: number | string;
68
+ readonly vesting_shares: string | import('@hiveio/dhive').Asset;
69
+ readonly delegated_vesting_shares: string | import('@hiveio/dhive').Asset;
70
+ readonly received_vesting_shares: string | import('@hiveio/dhive').Asset;
71
+ readonly vesting_withdraw_rate: string | import('@hiveio/dhive').Asset;
72
+ readonly next_vesting_withdrawal: string;
73
+ readonly withdrawn: number | string;
74
+ readonly to_withdraw: number | string;
75
+ readonly withdraw_routes: number;
76
+ readonly proxied_vsf_votes: number[];
77
+ readonly witnesses_voted_for: number;
78
+ readonly average_bandwidth: number | string;
79
+ readonly lifetime_bandwidth: number | string;
80
+ readonly last_bandwidth_update: string;
81
+ readonly average_market_bandwidth: number | string;
82
+ readonly lifetime_market_bandwidth: number | string;
83
+ readonly last_market_bandwidth_update: string;
84
+ readonly last_post: string;
85
+ readonly last_root_post: string;
88
86
  }, Error, {
89
- follow_stats: AccountFollowStats | undefined;
90
- reputation: number;
91
- profile: any;
92
- length: number;
93
- toString(): string;
94
- toLocaleString(): string;
95
- toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
96
- pop(): import('@hiveio/dhive').ExtendedAccount | undefined;
97
- push(...items: import('@hiveio/dhive').ExtendedAccount[]): number;
98
- concat(...items: ConcatArray<import('@hiveio/dhive').ExtendedAccount>[]): import('@hiveio/dhive').ExtendedAccount[];
99
- concat(...items: (import('@hiveio/dhive').ExtendedAccount | ConcatArray<import('@hiveio/dhive').ExtendedAccount>)[]): import('@hiveio/dhive').ExtendedAccount[];
100
- join(separator?: string): string;
101
- reverse(): import('@hiveio/dhive').ExtendedAccount[];
102
- shift(): import('@hiveio/dhive').ExtendedAccount | undefined;
103
- slice(start?: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
104
- sort(compareFn?: ((a: import('@hiveio/dhive').ExtendedAccount, b: import('@hiveio/dhive').ExtendedAccount) => number) | undefined): import('@hiveio/dhive').ExtendedAccount[];
105
- splice(start: number, deleteCount?: number): import('@hiveio/dhive').ExtendedAccount[];
106
- splice(start: number, deleteCount: number, ...items: import('@hiveio/dhive').ExtendedAccount[]): import('@hiveio/dhive').ExtendedAccount[];
107
- unshift(...items: import('@hiveio/dhive').ExtendedAccount[]): number;
108
- indexOf(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): number;
109
- lastIndexOf(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): number;
110
- every<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): this is S[];
111
- every(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): boolean;
112
- some(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): boolean;
113
- forEach(callbackfn: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => void, thisArg?: any): void;
114
- map<U>(callbackfn: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, thisArg?: any): U[];
115
- filter<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): S[];
116
- filter(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): import('@hiveio/dhive').ExtendedAccount[];
117
- reduce(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
118
- reduce(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount, initialValue: import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
119
- reduce<U>(callbackfn: (previousValue: U, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, initialValue: U): U;
120
- reduceRight(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
121
- reduceRight(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount, initialValue: import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
122
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, initialValue: U): U;
123
- find<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): S | undefined;
124
- find(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): import('@hiveio/dhive').ExtendedAccount | undefined;
125
- findIndex(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): number;
126
- fill(value: import('@hiveio/dhive').ExtendedAccount, start?: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
127
- copyWithin(target: number, start: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
128
- entries(): ArrayIterator<[number, import('@hiveio/dhive').ExtendedAccount]>;
129
- keys(): ArrayIterator<number>;
130
- values(): ArrayIterator<import('@hiveio/dhive').ExtendedAccount>;
131
- includes(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): boolean;
132
- flatMap<U, This = undefined>(callback: (this: This, value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U | readonly U[], thisArg?: This | undefined): U[];
133
- flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
134
- [Symbol.iterator](): ArrayIterator<import('@hiveio/dhive').ExtendedAccount>;
135
- [Symbol.unscopables]: {
136
- [x: number]: boolean | undefined;
137
- length?: boolean | undefined;
138
- toString?: boolean | undefined;
139
- toLocaleString?: boolean | undefined;
140
- pop?: boolean | undefined;
141
- push?: boolean | undefined;
142
- concat?: boolean | undefined;
143
- join?: boolean | undefined;
144
- reverse?: boolean | undefined;
145
- shift?: boolean | undefined;
146
- slice?: boolean | undefined;
147
- sort?: boolean | undefined;
148
- splice?: boolean | undefined;
149
- unshift?: boolean | undefined;
150
- indexOf?: boolean | undefined;
151
- lastIndexOf?: boolean | undefined;
152
- every?: boolean | undefined;
153
- some?: boolean | undefined;
154
- forEach?: boolean | undefined;
155
- map?: boolean | undefined;
156
- filter?: boolean | undefined;
157
- reduce?: boolean | undefined;
158
- reduceRight?: boolean | undefined;
159
- find?: boolean | undefined;
160
- findIndex?: boolean | undefined;
161
- fill?: boolean | undefined;
162
- copyWithin?: boolean | undefined;
163
- entries?: boolean | undefined;
164
- keys?: boolean | undefined;
165
- values?: boolean | undefined;
166
- includes?: boolean | undefined;
167
- flatMap?: boolean | undefined;
168
- flat?: boolean | undefined;
169
- [Symbol.iterator]?: boolean | undefined;
170
- readonly [Symbol.unscopables]?: boolean | undefined;
171
- at?: boolean | undefined;
87
+ readonly follow_stats: AccountFollowStats | undefined;
88
+ readonly reputation: number;
89
+ readonly profile: any;
90
+ readonly vesting_balance: string | import('@hiveio/dhive').Asset;
91
+ readonly transfer_history: any[];
92
+ readonly market_history: any[];
93
+ readonly post_history: any[];
94
+ readonly vote_history: any[];
95
+ readonly other_history: any[];
96
+ readonly witness_votes: string[];
97
+ readonly tags_usage: string[];
98
+ readonly guest_bloggers: string[];
99
+ readonly open_orders?: any[];
100
+ readonly comments?: any[];
101
+ readonly blog?: any[];
102
+ readonly feed?: any[];
103
+ readonly recent_replies?: any[];
104
+ readonly recommended?: any[];
105
+ readonly id: number;
106
+ readonly name: string;
107
+ readonly owner: import('@hiveio/dhive').Authority;
108
+ readonly active: import('@hiveio/dhive').Authority;
109
+ readonly posting: import('@hiveio/dhive').Authority;
110
+ readonly memo_key: string;
111
+ readonly json_metadata: string;
112
+ readonly posting_json_metadata: string;
113
+ readonly proxy: string;
114
+ readonly last_owner_update: string;
115
+ readonly last_account_update: string;
116
+ readonly created: string;
117
+ readonly mined: boolean;
118
+ readonly owner_challenged: boolean;
119
+ readonly active_challenged: boolean;
120
+ readonly last_owner_proved: string;
121
+ readonly last_active_proved: string;
122
+ readonly recovery_account: string;
123
+ readonly reset_account: string;
124
+ readonly last_account_recovery: string;
125
+ readonly comment_count: number;
126
+ readonly lifetime_vote_count: number;
127
+ readonly post_count: number;
128
+ readonly can_vote: boolean;
129
+ readonly voting_power: number;
130
+ readonly last_vote_time: string;
131
+ readonly voting_manabar: {
132
+ current_mana: string | number;
133
+ last_update_time: number;
172
134
  };
173
- at(index: number): import('@hiveio/dhive').ExtendedAccount | undefined;
135
+ readonly balance: string | import('@hiveio/dhive').Asset;
136
+ readonly savings_balance: string | import('@hiveio/dhive').Asset;
137
+ readonly hbd_balance: string | import('@hiveio/dhive').Asset;
138
+ readonly hbd_seconds: string;
139
+ readonly hbd_seconds_last_update: string;
140
+ readonly hbd_last_interest_payment: string;
141
+ readonly savings_hbd_balance: string | import('@hiveio/dhive').Asset;
142
+ readonly savings_hbd_seconds: string;
143
+ readonly savings_hbd_seconds_last_update: string;
144
+ readonly savings_hbd_last_interest_payment: string;
145
+ readonly savings_withdraw_requests: number;
146
+ readonly reward_hbd_balance: string | import('@hiveio/dhive').Asset;
147
+ readonly reward_hive_balance: string | import('@hiveio/dhive').Asset;
148
+ readonly reward_vesting_balance: string | import('@hiveio/dhive').Asset;
149
+ readonly reward_vesting_hive: string | import('@hiveio/dhive').Asset;
150
+ readonly curation_rewards: number | string;
151
+ readonly posting_rewards: number | string;
152
+ readonly vesting_shares: string | import('@hiveio/dhive').Asset;
153
+ readonly delegated_vesting_shares: string | import('@hiveio/dhive').Asset;
154
+ readonly received_vesting_shares: string | import('@hiveio/dhive').Asset;
155
+ readonly vesting_withdraw_rate: string | import('@hiveio/dhive').Asset;
156
+ readonly next_vesting_withdrawal: string;
157
+ readonly withdrawn: number | string;
158
+ readonly to_withdraw: number | string;
159
+ readonly withdraw_routes: number;
160
+ readonly proxied_vsf_votes: number[];
161
+ readonly witnesses_voted_for: number;
162
+ readonly average_bandwidth: number | string;
163
+ readonly lifetime_bandwidth: number | string;
164
+ readonly last_bandwidth_update: string;
165
+ readonly average_market_bandwidth: number | string;
166
+ readonly lifetime_market_bandwidth: number | string;
167
+ readonly last_market_bandwidth_update: string;
168
+ readonly last_post: string;
169
+ readonly last_root_post: string;
174
170
  }, string[]>, "queryFn"> & {
175
171
  queryFn?: import('@tanstack/query-core').QueryFunction<{
176
- follow_stats: AccountFollowStats | undefined;
177
- reputation: number;
178
- profile: any;
179
- length: number;
180
- toString(): string;
181
- toLocaleString(): string;
182
- toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
183
- pop(): import('@hiveio/dhive').ExtendedAccount | undefined;
184
- push(...items: import('@hiveio/dhive').ExtendedAccount[]): number;
185
- concat(...items: ConcatArray<import('@hiveio/dhive').ExtendedAccount>[]): import('@hiveio/dhive').ExtendedAccount[];
186
- concat(...items: (import('@hiveio/dhive').ExtendedAccount | ConcatArray<import('@hiveio/dhive').ExtendedAccount>)[]): import('@hiveio/dhive').ExtendedAccount[];
187
- join(separator?: string): string;
188
- reverse(): import('@hiveio/dhive').ExtendedAccount[];
189
- shift(): import('@hiveio/dhive').ExtendedAccount | undefined;
190
- slice(start?: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
191
- sort(compareFn?: ((a: import('@hiveio/dhive').ExtendedAccount, b: import('@hiveio/dhive').ExtendedAccount) => number) | undefined): import('@hiveio/dhive').ExtendedAccount[];
192
- splice(start: number, deleteCount?: number): import('@hiveio/dhive').ExtendedAccount[];
193
- splice(start: number, deleteCount: number, ...items: import('@hiveio/dhive').ExtendedAccount[]): import('@hiveio/dhive').ExtendedAccount[];
194
- unshift(...items: import('@hiveio/dhive').ExtendedAccount[]): number;
195
- indexOf(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): number;
196
- lastIndexOf(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): number;
197
- every<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): this is S[];
198
- every(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): boolean;
199
- some(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): boolean;
200
- forEach(callbackfn: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => void, thisArg?: any): void;
201
- map<U>(callbackfn: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, thisArg?: any): U[];
202
- filter<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): S[];
203
- filter(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): import('@hiveio/dhive').ExtendedAccount[];
204
- reduce(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
205
- reduce(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount, initialValue: import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
206
- reduce<U>(callbackfn: (previousValue: U, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, initialValue: U): U;
207
- reduceRight(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
208
- reduceRight(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount, initialValue: import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
209
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, initialValue: U): U;
210
- find<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): S | undefined;
211
- find(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): import('@hiveio/dhive').ExtendedAccount | undefined;
212
- findIndex(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): number;
213
- fill(value: import('@hiveio/dhive').ExtendedAccount, start?: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
214
- copyWithin(target: number, start: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
215
- entries(): ArrayIterator<[number, import('@hiveio/dhive').ExtendedAccount]>;
216
- keys(): ArrayIterator<number>;
217
- values(): ArrayIterator<import('@hiveio/dhive').ExtendedAccount>;
218
- includes(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): boolean;
219
- flatMap<U, This = undefined>(callback: (this: This, value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U | readonly U[], thisArg?: This | undefined): U[];
220
- flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
221
- [Symbol.iterator](): ArrayIterator<import('@hiveio/dhive').ExtendedAccount>;
222
- [Symbol.unscopables]: {
223
- [x: number]: boolean | undefined;
224
- length?: boolean | undefined;
225
- toString?: boolean | undefined;
226
- toLocaleString?: boolean | undefined;
227
- pop?: boolean | undefined;
228
- push?: boolean | undefined;
229
- concat?: boolean | undefined;
230
- join?: boolean | undefined;
231
- reverse?: boolean | undefined;
232
- shift?: boolean | undefined;
233
- slice?: boolean | undefined;
234
- sort?: boolean | undefined;
235
- splice?: boolean | undefined;
236
- unshift?: boolean | undefined;
237
- indexOf?: boolean | undefined;
238
- lastIndexOf?: boolean | undefined;
239
- every?: boolean | undefined;
240
- some?: boolean | undefined;
241
- forEach?: boolean | undefined;
242
- map?: boolean | undefined;
243
- filter?: boolean | undefined;
244
- reduce?: boolean | undefined;
245
- reduceRight?: boolean | undefined;
246
- find?: boolean | undefined;
247
- findIndex?: boolean | undefined;
248
- fill?: boolean | undefined;
249
- copyWithin?: boolean | undefined;
250
- entries?: boolean | undefined;
251
- keys?: boolean | undefined;
252
- values?: boolean | undefined;
253
- includes?: boolean | undefined;
254
- flatMap?: boolean | undefined;
255
- flat?: boolean | undefined;
256
- [Symbol.iterator]?: boolean | undefined;
257
- readonly [Symbol.unscopables]?: boolean | undefined;
258
- at?: boolean | undefined;
172
+ readonly follow_stats: AccountFollowStats | undefined;
173
+ readonly reputation: number;
174
+ readonly profile: any;
175
+ readonly vesting_balance: string | import('@hiveio/dhive').Asset;
176
+ readonly transfer_history: any[];
177
+ readonly market_history: any[];
178
+ readonly post_history: any[];
179
+ readonly vote_history: any[];
180
+ readonly other_history: any[];
181
+ readonly witness_votes: string[];
182
+ readonly tags_usage: string[];
183
+ readonly guest_bloggers: string[];
184
+ readonly open_orders?: any[];
185
+ readonly comments?: any[];
186
+ readonly blog?: any[];
187
+ readonly feed?: any[];
188
+ readonly recent_replies?: any[];
189
+ readonly recommended?: any[];
190
+ readonly id: number;
191
+ readonly name: string;
192
+ readonly owner: import('@hiveio/dhive').Authority;
193
+ readonly active: import('@hiveio/dhive').Authority;
194
+ readonly posting: import('@hiveio/dhive').Authority;
195
+ readonly memo_key: string;
196
+ readonly json_metadata: string;
197
+ readonly posting_json_metadata: string;
198
+ readonly proxy: string;
199
+ readonly last_owner_update: string;
200
+ readonly last_account_update: string;
201
+ readonly created: string;
202
+ readonly mined: boolean;
203
+ readonly owner_challenged: boolean;
204
+ readonly active_challenged: boolean;
205
+ readonly last_owner_proved: string;
206
+ readonly last_active_proved: string;
207
+ readonly recovery_account: string;
208
+ readonly reset_account: string;
209
+ readonly last_account_recovery: string;
210
+ readonly comment_count: number;
211
+ readonly lifetime_vote_count: number;
212
+ readonly post_count: number;
213
+ readonly can_vote: boolean;
214
+ readonly voting_power: number;
215
+ readonly last_vote_time: string;
216
+ readonly voting_manabar: {
217
+ current_mana: string | number;
218
+ last_update_time: number;
259
219
  };
260
- at(index: number): import('@hiveio/dhive').ExtendedAccount | undefined;
220
+ readonly balance: string | import('@hiveio/dhive').Asset;
221
+ readonly savings_balance: string | import('@hiveio/dhive').Asset;
222
+ readonly hbd_balance: string | import('@hiveio/dhive').Asset;
223
+ readonly hbd_seconds: string;
224
+ readonly hbd_seconds_last_update: string;
225
+ readonly hbd_last_interest_payment: string;
226
+ readonly savings_hbd_balance: string | import('@hiveio/dhive').Asset;
227
+ readonly savings_hbd_seconds: string;
228
+ readonly savings_hbd_seconds_last_update: string;
229
+ readonly savings_hbd_last_interest_payment: string;
230
+ readonly savings_withdraw_requests: number;
231
+ readonly reward_hbd_balance: string | import('@hiveio/dhive').Asset;
232
+ readonly reward_hive_balance: string | import('@hiveio/dhive').Asset;
233
+ readonly reward_vesting_balance: string | import('@hiveio/dhive').Asset;
234
+ readonly reward_vesting_hive: string | import('@hiveio/dhive').Asset;
235
+ readonly curation_rewards: number | string;
236
+ readonly posting_rewards: number | string;
237
+ readonly vesting_shares: string | import('@hiveio/dhive').Asset;
238
+ readonly delegated_vesting_shares: string | import('@hiveio/dhive').Asset;
239
+ readonly received_vesting_shares: string | import('@hiveio/dhive').Asset;
240
+ readonly vesting_withdraw_rate: string | import('@hiveio/dhive').Asset;
241
+ readonly next_vesting_withdrawal: string;
242
+ readonly withdrawn: number | string;
243
+ readonly to_withdraw: number | string;
244
+ readonly withdraw_routes: number;
245
+ readonly proxied_vsf_votes: number[];
246
+ readonly witnesses_voted_for: number;
247
+ readonly average_bandwidth: number | string;
248
+ readonly lifetime_bandwidth: number | string;
249
+ readonly last_bandwidth_update: string;
250
+ readonly average_market_bandwidth: number | string;
251
+ readonly lifetime_market_bandwidth: number | string;
252
+ readonly last_market_bandwidth_update: string;
253
+ readonly last_post: string;
254
+ readonly last_root_post: string;
261
255
  }, string[], never> | undefined;
262
256
  } & {
263
257
  queryKey: string[] & {
264
258
  [dataTagSymbol]: {
265
- follow_stats: AccountFollowStats | undefined;
266
- reputation: number;
267
- profile: any;
268
- length: number;
269
- toString(): string;
270
- toLocaleString(): string;
271
- toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
272
- pop(): import('@hiveio/dhive').ExtendedAccount | undefined;
273
- push(...items: import('@hiveio/dhive').ExtendedAccount[]): number;
274
- concat(...items: ConcatArray<import('@hiveio/dhive').ExtendedAccount>[]): import('@hiveio/dhive').ExtendedAccount[];
275
- concat(...items: (import('@hiveio/dhive').ExtendedAccount | ConcatArray<import('@hiveio/dhive').ExtendedAccount>)[]): import('@hiveio/dhive').ExtendedAccount[];
276
- join(separator?: string): string;
277
- reverse(): import('@hiveio/dhive').ExtendedAccount[];
278
- shift(): import('@hiveio/dhive').ExtendedAccount | undefined;
279
- slice(start?: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
280
- sort(compareFn?: ((a: import('@hiveio/dhive').ExtendedAccount, b: import('@hiveio/dhive').ExtendedAccount) => number) | undefined): import('@hiveio/dhive').ExtendedAccount[];
281
- splice(start: number, deleteCount?: number): import('@hiveio/dhive').ExtendedAccount[];
282
- splice(start: number, deleteCount: number, ...items: import('@hiveio/dhive').ExtendedAccount[]): import('@hiveio/dhive').ExtendedAccount[];
283
- unshift(...items: import('@hiveio/dhive').ExtendedAccount[]): number;
284
- indexOf(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): number;
285
- lastIndexOf(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): number;
286
- every<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): this is S[];
287
- every(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): boolean;
288
- some(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): boolean;
289
- forEach(callbackfn: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => void, thisArg?: any): void;
290
- map<U>(callbackfn: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, thisArg?: any): U[];
291
- filter<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): S[];
292
- filter(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): import('@hiveio/dhive').ExtendedAccount[];
293
- reduce(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
294
- reduce(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount, initialValue: import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
295
- reduce<U>(callbackfn: (previousValue: U, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, initialValue: U): U;
296
- reduceRight(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
297
- reduceRight(callbackfn: (previousValue: import('@hiveio/dhive').ExtendedAccount, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => import('@hiveio/dhive').ExtendedAccount, initialValue: import('@hiveio/dhive').ExtendedAccount): import('@hiveio/dhive').ExtendedAccount;
298
- reduceRight<U>(callbackfn: (previousValue: U, currentValue: import('@hiveio/dhive').ExtendedAccount, currentIndex: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U, initialValue: U): U;
299
- find<S extends import('@hiveio/dhive').ExtendedAccount>(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => value is S, thisArg?: any): S | undefined;
300
- find(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): import('@hiveio/dhive').ExtendedAccount | undefined;
301
- findIndex(predicate: (value: import('@hiveio/dhive').ExtendedAccount, index: number, obj: import('@hiveio/dhive').ExtendedAccount[]) => unknown, thisArg?: any): number;
302
- fill(value: import('@hiveio/dhive').ExtendedAccount, start?: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
303
- copyWithin(target: number, start: number, end?: number): import('@hiveio/dhive').ExtendedAccount[];
304
- entries(): ArrayIterator<[number, import('@hiveio/dhive').ExtendedAccount]>;
305
- keys(): ArrayIterator<number>;
306
- values(): ArrayIterator<import('@hiveio/dhive').ExtendedAccount>;
307
- includes(searchElement: import('@hiveio/dhive').ExtendedAccount, fromIndex?: number): boolean;
308
- flatMap<U, This = undefined>(callback: (this: This, value: import('@hiveio/dhive').ExtendedAccount, index: number, array: import('@hiveio/dhive').ExtendedAccount[]) => U | readonly U[], thisArg?: This | undefined): U[];
309
- flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
310
- [Symbol.iterator](): ArrayIterator<import('@hiveio/dhive').ExtendedAccount>;
311
- [Symbol.unscopables]: {
312
- [x: number]: boolean | undefined;
313
- length?: boolean | undefined;
314
- toString?: boolean | undefined;
315
- toLocaleString?: boolean | undefined;
316
- pop?: boolean | undefined;
317
- push?: boolean | undefined;
318
- concat?: boolean | undefined;
319
- join?: boolean | undefined;
320
- reverse?: boolean | undefined;
321
- shift?: boolean | undefined;
322
- slice?: boolean | undefined;
323
- sort?: boolean | undefined;
324
- splice?: boolean | undefined;
325
- unshift?: boolean | undefined;
326
- indexOf?: boolean | undefined;
327
- lastIndexOf?: boolean | undefined;
328
- every?: boolean | undefined;
329
- some?: boolean | undefined;
330
- forEach?: boolean | undefined;
331
- map?: boolean | undefined;
332
- filter?: boolean | undefined;
333
- reduce?: boolean | undefined;
334
- reduceRight?: boolean | undefined;
335
- find?: boolean | undefined;
336
- findIndex?: boolean | undefined;
337
- fill?: boolean | undefined;
338
- copyWithin?: boolean | undefined;
339
- entries?: boolean | undefined;
340
- keys?: boolean | undefined;
341
- values?: boolean | undefined;
342
- includes?: boolean | undefined;
343
- flatMap?: boolean | undefined;
344
- flat?: boolean | undefined;
345
- [Symbol.iterator]?: boolean | undefined;
346
- readonly [Symbol.unscopables]?: boolean | undefined;
347
- at?: boolean | undefined;
259
+ readonly follow_stats: AccountFollowStats | undefined;
260
+ readonly reputation: number;
261
+ readonly profile: any;
262
+ readonly vesting_balance: string | import('@hiveio/dhive').Asset;
263
+ readonly transfer_history: any[];
264
+ readonly market_history: any[];
265
+ readonly post_history: any[];
266
+ readonly vote_history: any[];
267
+ readonly other_history: any[];
268
+ readonly witness_votes: string[];
269
+ readonly tags_usage: string[];
270
+ readonly guest_bloggers: string[];
271
+ readonly open_orders?: any[];
272
+ readonly comments?: any[];
273
+ readonly blog?: any[];
274
+ readonly feed?: any[];
275
+ readonly recent_replies?: any[];
276
+ readonly recommended?: any[];
277
+ readonly id: number;
278
+ readonly name: string;
279
+ readonly owner: import('@hiveio/dhive').Authority;
280
+ readonly active: import('@hiveio/dhive').Authority;
281
+ readonly posting: import('@hiveio/dhive').Authority;
282
+ readonly memo_key: string;
283
+ readonly json_metadata: string;
284
+ readonly posting_json_metadata: string;
285
+ readonly proxy: string;
286
+ readonly last_owner_update: string;
287
+ readonly last_account_update: string;
288
+ readonly created: string;
289
+ readonly mined: boolean;
290
+ readonly owner_challenged: boolean;
291
+ readonly active_challenged: boolean;
292
+ readonly last_owner_proved: string;
293
+ readonly last_active_proved: string;
294
+ readonly recovery_account: string;
295
+ readonly reset_account: string;
296
+ readonly last_account_recovery: string;
297
+ readonly comment_count: number;
298
+ readonly lifetime_vote_count: number;
299
+ readonly post_count: number;
300
+ readonly can_vote: boolean;
301
+ readonly voting_power: number;
302
+ readonly last_vote_time: string;
303
+ readonly voting_manabar: {
304
+ current_mana: string | number;
305
+ last_update_time: number;
348
306
  };
349
- at(index: number): import('@hiveio/dhive').ExtendedAccount | undefined;
307
+ readonly balance: string | import('@hiveio/dhive').Asset;
308
+ readonly savings_balance: string | import('@hiveio/dhive').Asset;
309
+ readonly hbd_balance: string | import('@hiveio/dhive').Asset;
310
+ readonly hbd_seconds: string;
311
+ readonly hbd_seconds_last_update: string;
312
+ readonly hbd_last_interest_payment: string;
313
+ readonly savings_hbd_balance: string | import('@hiveio/dhive').Asset;
314
+ readonly savings_hbd_seconds: string;
315
+ readonly savings_hbd_seconds_last_update: string;
316
+ readonly savings_hbd_last_interest_payment: string;
317
+ readonly savings_withdraw_requests: number;
318
+ readonly reward_hbd_balance: string | import('@hiveio/dhive').Asset;
319
+ readonly reward_hive_balance: string | import('@hiveio/dhive').Asset;
320
+ readonly reward_vesting_balance: string | import('@hiveio/dhive').Asset;
321
+ readonly reward_vesting_hive: string | import('@hiveio/dhive').Asset;
322
+ readonly curation_rewards: number | string;
323
+ readonly posting_rewards: number | string;
324
+ readonly vesting_shares: string | import('@hiveio/dhive').Asset;
325
+ readonly delegated_vesting_shares: string | import('@hiveio/dhive').Asset;
326
+ readonly received_vesting_shares: string | import('@hiveio/dhive').Asset;
327
+ readonly vesting_withdraw_rate: string | import('@hiveio/dhive').Asset;
328
+ readonly next_vesting_withdrawal: string;
329
+ readonly withdrawn: number | string;
330
+ readonly to_withdraw: number | string;
331
+ readonly withdraw_routes: number;
332
+ readonly proxied_vsf_votes: number[];
333
+ readonly witnesses_voted_for: number;
334
+ readonly average_bandwidth: number | string;
335
+ readonly lifetime_bandwidth: number | string;
336
+ readonly last_bandwidth_update: string;
337
+ readonly average_market_bandwidth: number | string;
338
+ readonly lifetime_market_bandwidth: number | string;
339
+ readonly last_market_bandwidth_update: string;
340
+ readonly last_post: string;
341
+ readonly last_root_post: string;
350
342
  };
351
343
  [dataTagErrorSymbol]: Error;
352
344
  };
@@ -8,6 +8,8 @@ export declare enum ROLES {
8
8
  }
9
9
  export declare const roleMap: Record<string, string[]>;
10
10
  export type CommunityTeam = Array<Array<string>>;
11
+ export type CommunityRole = (typeof ROLES)[keyof typeof ROLES];
12
+ export type CommunityType = "Topic" | "Journal" | "Council";
11
13
  export interface Community {
12
14
  about: string;
13
15
  admins?: string[];
@@ -1,6 +1,4 @@
1
- import { ROLES } from '../types';
2
- export type CommunityRole = (typeof ROLES)[keyof typeof ROLES];
3
- export type CommunityType = "Topic" | "Journal" | "Council";
1
+ import { CommunityRole, CommunityType } from '../types';
4
2
  export declare function getCommunityType(name: string, type_id: number): CommunityType;
5
3
  export declare function getCommunityPermissions({ communityType, userRole, subscribed, }: {
6
4
  communityType: CommunityType;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ecency/sdk",
3
3
  "private": false,
4
- "version": "1.0.53",
4
+ "version": "1.0.55",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "./dist/ecency-sdk.umd.js",