@ecency/sdk 1.4.0 → 1.5.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.
@@ -390,7 +390,10 @@ interface Payload$4 {
390
390
  profile: Partial<AccountProfile>;
391
391
  tokens: AccountProfile["tokens"];
392
392
  }
393
- declare function useAccountUpdate(username: string): _tanstack_react_query.UseMutationResult<unknown, Error, Partial<Payload$4>, unknown>;
393
+ declare function useAccountUpdate(username: string, accessToken: string | undefined, auth?: {
394
+ postingKey?: string | null;
395
+ loginType?: string | null;
396
+ }): _tanstack_react_query.UseMutationResult<unknown, Error, Partial<Payload$4>, unknown>;
394
397
 
395
398
  type Kind = "toggle-ignore" | "toggle-follow";
396
399
  declare function useAccountRelationsUpdate(reference: string | undefined, target: string | undefined, onSuccess: (data: Partial<AccountRelationship> | undefined) => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<{
@@ -404,13 +407,13 @@ interface Payload$3 {
404
407
  author: string;
405
408
  permlink: string;
406
409
  }
407
- declare function useBookmarkAdd(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, Payload$3, unknown>;
410
+ declare function useBookmarkAdd(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, Payload$3, unknown>;
408
411
 
409
- declare function useBookmarkDelete(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
412
+ declare function useBookmarkDelete(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
410
413
 
411
- declare function useAccountFavouriteAdd(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
414
+ declare function useAccountFavouriteAdd(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
412
415
 
413
- declare function useAccountFavouriteDelete(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
416
+ declare function useAccountFavouriteDelete(username: string | undefined, code: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
414
417
 
415
418
  interface Keys {
416
419
  owner: PrivateKey;
@@ -456,7 +459,7 @@ interface CommonPayload {
456
459
  email?: string;
457
460
  }
458
461
  type UpdateRecoveryOptions = Pick<UseMutationOptions<unknown, Error, CommonPayload>, "onSuccess" | "onError">;
459
- declare function useAccountUpdateRecovery(username: string | undefined, options: UpdateRecoveryOptions): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload, unknown>;
462
+ declare function useAccountUpdateRecovery(username: string | undefined, code: string | undefined, options: UpdateRecoveryOptions): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload, unknown>;
460
463
 
461
464
  interface Payload {
462
465
  currentKey: PrivateKey;
@@ -771,7 +774,7 @@ declare function getAccountSubscriptionsQueryOptions(username: string | undefine
771
774
  };
772
775
  };
773
776
 
774
- declare function getActiveAccountBookmarksQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountBookmark[], Error, AccountBookmark[], (string | undefined)[]>, "queryFn"> & {
777
+ declare function getActiveAccountBookmarksQueryOptions(activeUsername: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountBookmark[], Error, AccountBookmark[], (string | undefined)[]>, "queryFn"> & {
775
778
  queryFn?: _tanstack_react_query.QueryFunction<AccountBookmark[], (string | undefined)[], never> | undefined;
776
779
  } & {
777
780
  queryKey: (string | undefined)[] & {
@@ -780,7 +783,7 @@ declare function getActiveAccountBookmarksQueryOptions(activeUsername: string |
780
783
  };
781
784
  };
782
785
 
783
- declare function getActiveAccountFavouritesQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountFavorite[], Error, AccountFavorite[], (string | undefined)[]>, "queryFn"> & {
786
+ declare function getActiveAccountFavouritesQueryOptions(activeUsername: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountFavorite[], Error, AccountFavorite[], (string | undefined)[]>, "queryFn"> & {
784
787
  queryFn?: _tanstack_react_query.QueryFunction<AccountFavorite[], (string | undefined)[], never> | undefined;
785
788
  } & {
786
789
  queryKey: (string | undefined)[] & {
@@ -789,7 +792,7 @@ declare function getActiveAccountFavouritesQueryOptions(activeUsername: string |
789
792
  };
790
793
  };
791
794
 
792
- declare function getAccountRecoveriesQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetRecoveriesEmailResponse[], Error, GetRecoveriesEmailResponse[], (string | undefined)[]>, "queryFn"> & {
795
+ declare function getAccountRecoveriesQueryOptions(username: string | undefined, code: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetRecoveriesEmailResponse[], Error, GetRecoveriesEmailResponse[], (string | undefined)[]>, "queryFn"> & {
793
796
  queryFn?: _tanstack_react_query.QueryFunction<GetRecoveriesEmailResponse[], (string | undefined)[], never> | undefined;
794
797
  } & {
795
798
  queryKey: (string | undefined)[] & {
@@ -1049,6 +1052,51 @@ interface WaveTrendingTag {
1049
1052
  posts: number;
1050
1053
  }
1051
1054
 
1055
+ interface DraftMetadata {
1056
+ beneficiaries?: Array<{
1057
+ account: string;
1058
+ weight: number;
1059
+ }>;
1060
+ rewardType?: string;
1061
+ videos?: Record<string, any>;
1062
+ poll?: any;
1063
+ [key: string]: any;
1064
+ }
1065
+ interface Draft {
1066
+ body: string;
1067
+ created: string;
1068
+ modified: string;
1069
+ post_type: string;
1070
+ tags_arr: string[];
1071
+ tags: string;
1072
+ timestamp: number;
1073
+ title: string;
1074
+ _id: string;
1075
+ meta?: DraftMetadata;
1076
+ }
1077
+
1078
+ interface Schedule {
1079
+ _id: string;
1080
+ username: string;
1081
+ permlink: string;
1082
+ title: string;
1083
+ body: string;
1084
+ tags: string[];
1085
+ tags_arr: string;
1086
+ schedule: string;
1087
+ original_schedule: string;
1088
+ reblog: boolean;
1089
+ status: 1 | 2 | 3 | 4;
1090
+ message: string | null;
1091
+ }
1092
+
1093
+ interface UserImage {
1094
+ created: string;
1095
+ timestamp: number;
1096
+ url: string;
1097
+ _id: string;
1098
+ }
1099
+
1052
1100
  interface VoteHistoryPageParam {
1053
1101
  start: number;
1054
1102
  }
@@ -1133,9 +1181,15 @@ declare function getChainPropertiesQueryOptions(): _tanstack_react_query.OmitKey
1133
1181
  };
1134
1182
  };
1135
1183
 
1136
- declare function useBroadcastMutation<T>(mutationKey: MutationKey | undefined, username: string | undefined, operations: (payload: T) => Operation[], onSuccess?: UseMutationOptions<unknown, Error, T>["onSuccess"]): _tanstack_react_query.UseMutationResult<unknown, Error, T, unknown>;
1184
+ declare function useBroadcastMutation<T>(mutationKey: MutationKey | undefined, username: string | undefined, accessToken: string | undefined, operations: (payload: T) => Operation[], onSuccess?: UseMutationOptions<unknown, Error, T>["onSuccess"], auth?: {
1185
+ postingKey?: string | null;
1186
+ loginType?: string | null;
1187
+ }): _tanstack_react_query.UseMutationResult<unknown, Error, T, unknown>;
1137
1188
 
1138
- declare function broadcastJson<T>(username: string | undefined, id: string, payload: T): Promise<any>;
1189
+ declare function broadcastJson<T>(username: string | undefined, id: string, payload: T, accessToken?: string, auth?: {
1190
+ postingKey?: string | null;
1191
+ loginType?: string | null;
1192
+ }): Promise<any>;
1139
1193
 
1140
1194
  interface StoringUser {
1141
1195
  username: string;
@@ -1155,6 +1209,7 @@ declare const getRefreshToken: (username: string) => string | undefined;
1155
1209
 
1156
1210
  declare const CONFIG: {
1157
1211
  privateApiHost: string;
1212
+ imageHost: string;
1158
1213
  storage: Storage;
1159
1214
  storagePrefix: string;
1160
1215
  hiveClient: Client;
@@ -1176,6 +1231,11 @@ declare namespace ConfigManager {
1176
1231
  * @param host - The private API host URL (e.g., "https://ecency.com" or "" for relative URLs)
1177
1232
  */
1178
1233
  function setPrivateApiHost(host: string): void;
1234
+ /**
1235
+ * Set the image host
1236
+ * @param host - The image host URL (e.g., "https://images.ecency.com")
1237
+ */
1238
+ function setImageHost(host: string): void;
1179
1239
  /**
1180
1240
  * Set DMCA filtering lists
1181
1241
  * @param accounts - List of account usernames to filter (plain strings)
@@ -1253,6 +1313,8 @@ declare function parseAsset(sval: string | SMTAsset): Asset;
1253
1313
 
1254
1314
  declare function getBoundFetch(): typeof fetch;
1255
1315
 
1316
+ declare function isCommunity(value: unknown): boolean;
1317
+
1256
1318
  declare function getTrendingTagsQueryOptions(limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<string[], Error, _tanstack_react_query.InfiniteData<string[], unknown>, string[], {
1257
1319
  afterTag: string;
1258
1320
  }>, "queryFn"> & {
@@ -1266,7 +1328,20 @@ declare function getTrendingTagsQueryOptions(limit?: number): _tanstack_react_qu
1266
1328
  };
1267
1329
  };
1268
1330
 
1269
- declare function getFragmentsQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Fragment[], Error, Fragment[], string[]>, "queryFn"> & {
1331
+ declare function getTrendingTagsWithStatsQueryOptions(limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<TrendingTag[], Error, _tanstack_react_query.InfiniteData<TrendingTag[], unknown>, (string | number)[], {
1332
+ afterTag: string;
1333
+ }>, "queryFn"> & {
1334
+ queryFn?: _tanstack_react_query.QueryFunction<TrendingTag[], (string | number)[], {
1335
+ afterTag: string;
1336
+ }> | undefined;
1337
+ } & {
1338
+ queryKey: (string | number)[] & {
1339
+ [dataTagSymbol]: _tanstack_react_query.InfiniteData<TrendingTag[], unknown>;
1340
+ [dataTagErrorSymbol]: Error;
1341
+ };
1342
+ };
1343
+
1344
+ declare function getFragmentsQueryOptions(username: string, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Fragment[], Error, Fragment[], string[]>, "queryFn"> & {
1270
1345
  queryFn?: _tanstack_react_query.QueryFunction<Fragment[], string[], never> | undefined;
1271
1346
  } & {
1272
1347
  queryKey: string[] & {
@@ -1381,22 +1456,7 @@ declare function getReblogsQueryOptions(username?: string, activeUsername?: stri
1381
1456
  };
1382
1457
  };
1383
1458
 
1384
- interface Schedule {
1385
- _id: string;
1386
- username: string;
1387
- permlink: string;
1388
- title: string;
1389
- body: string;
1390
- tags: string[];
1391
- tags_arr: string;
1392
- schedule: string;
1393
- original_schedule: string;
1394
- reblog: boolean;
1395
- status: 1 | 2 | 3 | 4;
1396
- message: string | null;
1397
- }
1398
-
1399
- declare function getSchedulesQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Schedule[], Error, Schedule[], (string | undefined)[]>, "queryFn"> & {
1459
+ declare function getSchedulesQueryOptions(activeUsername: string | undefined, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Schedule[], Error, Schedule[], (string | undefined)[]>, "queryFn"> & {
1400
1460
  queryFn?: _tanstack_react_query.QueryFunction<Schedule[], (string | undefined)[], never> | undefined;
1401
1461
  } & {
1402
1462
  queryKey: (string | undefined)[] & {
@@ -1405,30 +1465,7 @@ declare function getSchedulesQueryOptions(activeUsername: string | undefined): _
1405
1465
  };
1406
1466
  };
1407
1467
 
1408
- interface DraftMetadata {
1409
- beneficiaries?: Array<{
1410
- account: string;
1411
- weight: number;
1412
- }>;
1413
- rewardType?: string;
1414
- videos?: Record<string, any>;
1415
- poll?: any;
1416
- [key: string]: any;
1417
- }
1418
- interface Draft {
1419
- body: string;
1420
- created: string;
1421
- modified: string;
1422
- post_type: string;
1423
- tags_arr: string[];
1424
- tags: string;
1425
- timestamp: number;
1426
- title: string;
1427
- _id: string;
1428
- meta?: DraftMetadata;
1429
- }
1430
-
1431
- declare function getDraftsQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Draft[], Error, Draft[], (string | undefined)[]>, "queryFn"> & {
1468
+ declare function getDraftsQueryOptions(activeUsername: string | undefined, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Draft[], Error, Draft[], (string | undefined)[]>, "queryFn"> & {
1432
1469
  queryFn?: _tanstack_react_query.QueryFunction<Draft[], (string | undefined)[], never> | undefined;
1433
1470
  } & {
1434
1471
  queryKey: (string | undefined)[] & {
@@ -1437,14 +1474,7 @@ declare function getDraftsQueryOptions(activeUsername: string | undefined): _tan
1437
1474
  };
1438
1475
  };
1439
1476
 
1440
- interface UserImage {
1441
- created: string;
1442
- timestamp: number;
1443
- url: string;
1444
- _id: string;
1445
- }
1446
-
1447
- declare function getImagesQueryOptions(username?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UserImage[], Error, UserImage[], (string | undefined)[]>, "queryFn"> & {
1477
+ declare function getImagesQueryOptions(username?: string, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UserImage[], Error, UserImage[], (string | undefined)[]>, "queryFn"> & {
1448
1478
  queryFn?: _tanstack_react_query.QueryFunction<UserImage[], (string | undefined)[], never> | undefined;
1449
1479
  } & {
1450
1480
  queryKey: (string | undefined)[] & {
@@ -1452,7 +1482,7 @@ declare function getImagesQueryOptions(username?: string): _tanstack_react_query
1452
1482
  [dataTagErrorSymbol]: Error;
1453
1483
  };
1454
1484
  };
1455
- declare function getGalleryImagesQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UserImage[], Error, UserImage[], (string | undefined)[]>, "queryFn"> & {
1485
+ declare function getGalleryImagesQueryOptions(activeUsername: string | undefined, code?: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<UserImage[], Error, UserImage[], (string | undefined)[]>, "queryFn"> & {
1456
1486
  queryFn?: _tanstack_react_query.QueryFunction<UserImage[], (string | undefined)[], never> | undefined;
1457
1487
  } & {
1458
1488
  queryKey: (string | undefined)[] & {
@@ -1545,17 +1575,17 @@ declare function getWavesTrendingTagsQueryOptions(host: string, hours?: number):
1545
1575
  };
1546
1576
  };
1547
1577
 
1548
- declare function useAddFragment(username: string): _tanstack_react_query.UseMutationResult<Fragment, Error, {
1578
+ declare function useAddFragment(username: string, code: string | undefined): _tanstack_react_query.UseMutationResult<Fragment, Error, {
1549
1579
  title: string;
1550
1580
  body: string;
1551
1581
  }, unknown>;
1552
1582
 
1553
- declare function useEditFragment(username: string, fragmentId: string): _tanstack_react_query.UseMutationResult<Fragment, Error, {
1583
+ declare function useEditFragment(username: string, fragmentId: string, code: string | undefined): _tanstack_react_query.UseMutationResult<Fragment, Error, {
1554
1584
  title: string;
1555
1585
  body: string;
1556
1586
  }, unknown>;
1557
1587
 
1558
- declare function useRemoveFragment(username: string, fragmentId: string): _tanstack_react_query.UseMutationResult<Response, Error, void, unknown>;
1588
+ declare function useRemoveFragment(username: string, fragmentId: string, code: string | undefined): _tanstack_react_query.UseMutationResult<Response, Error, void, unknown>;
1559
1589
 
1560
1590
  type EntryWithPostId = Entry$1 & {
1561
1591
  post_id: number;
@@ -1696,7 +1726,7 @@ interface ThreeSpeakVideo {
1696
1726
  _id: string;
1697
1727
  }
1698
1728
 
1699
- declare function getAccountTokenQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, (string | undefined)[]>, "queryFn"> & {
1729
+ declare function getAccountTokenQueryOptions(username: string | undefined, accessToken: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, (string | undefined)[]>, "queryFn"> & {
1700
1730
  queryFn?: _tanstack_react_query.QueryFunction<any, (string | undefined)[], never> | undefined;
1701
1731
  } & {
1702
1732
  queryKey: (string | undefined)[] & {
@@ -1705,7 +1735,7 @@ declare function getAccountTokenQueryOptions(username: string | undefined): _tan
1705
1735
  };
1706
1736
  };
1707
1737
 
1708
- declare function getAccountVideosQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ThreeSpeakVideo[], Error, ThreeSpeakVideo[], (string | undefined)[]>, "queryFn"> & {
1738
+ declare function getAccountVideosQueryOptions(username: string | undefined, accessToken: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ThreeSpeakVideo[], Error, ThreeSpeakVideo[], (string | undefined)[]>, "queryFn"> & {
1709
1739
  queryFn?: _tanstack_react_query.QueryFunction<ThreeSpeakVideo[], (string | undefined)[], never> | undefined;
1710
1740
  } & {
1711
1741
  queryKey: (string | undefined)[] & {
@@ -1724,7 +1754,7 @@ declare const ThreeSpeakIntegration: {
1724
1754
  queries: typeof queries$1;
1725
1755
  };
1726
1756
 
1727
- declare function getDecodeMemoQueryOptions(username: string, memo: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, string[]>, "queryFn"> & {
1757
+ declare function getDecodeMemoQueryOptions(username: string, memo: string, accessToken: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, string[]>, "queryFn"> & {
1728
1758
  queryFn?: _tanstack_react_query.QueryFunction<any, string[], never> | undefined;
1729
1759
  } & {
1730
1760
  queryKey: string[] & {
@@ -1913,7 +1943,7 @@ interface GameClaim {
1913
1943
  score: number;
1914
1944
  }
1915
1945
 
1916
- declare function getGameStatusCheckQueryOptions(username: string | undefined, gameType: "spin"): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetGameStatus, Error, GetGameStatus, (string | undefined)[]>, "queryFn"> & {
1946
+ declare function getGameStatusCheckQueryOptions(username: string | undefined, code: string | undefined, gameType: "spin"): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetGameStatus, Error, GetGameStatus, (string | undefined)[]>, "queryFn"> & {
1917
1947
  queryFn?: _tanstack_react_query.QueryFunction<GetGameStatus, (string | undefined)[], never> | undefined;
1918
1948
  } & {
1919
1949
  queryKey: (string | undefined)[] & {
@@ -1922,7 +1952,7 @@ declare function getGameStatusCheckQueryOptions(username: string | undefined, ga
1922
1952
  };
1923
1953
  };
1924
1954
 
1925
- declare function useGameClaim(username: string | undefined, gameType: "spin", key: string): _tanstack_react_query.UseMutationResult<GameClaim, Error, void, unknown>;
1955
+ declare function useGameClaim(username: string | undefined, code: string | undefined, gameType: "spin", key: string): _tanstack_react_query.UseMutationResult<GameClaim, Error, void, unknown>;
1926
1956
 
1927
1957
  declare enum ROLES {
1928
1958
  OWNER = "owner",
@@ -2056,7 +2086,7 @@ declare function getCommunityPermissions({ communityType, userRole, subscribed,
2056
2086
  isModerator: boolean;
2057
2087
  };
2058
2088
 
2059
- declare function getNotificationsUnreadCountQueryOptions(activeUsername: string | undefined): Omit<_tanstack_react_query.UseQueryOptions<number, Error, number, (string | undefined)[]>, "queryFn"> & {
2089
+ declare function getNotificationsUnreadCountQueryOptions(activeUsername: string | undefined, code: string | undefined): Omit<_tanstack_react_query.UseQueryOptions<number, Error, number, (string | undefined)[]>, "queryFn"> & {
2060
2090
  initialData: number | (() => number);
2061
2091
  queryFn?: _tanstack_react_query.QueryFunction<number, (string | undefined)[]> | undefined;
2062
2092
  } & {
@@ -2304,7 +2334,7 @@ interface Announcement {
2304
2334
  auth: boolean;
2305
2335
  }
2306
2336
 
2307
- declare function getNotificationsInfiniteQueryOptions(activeUsername: string | undefined, filter?: NotificationFilter | undefined): _tanstack_react_query.UseInfiniteQueryOptions<ApiNotification[], Error, _tanstack_react_query.InfiniteData<ApiNotification[], unknown>, (string | undefined)[], string> & {
2337
+ declare function getNotificationsInfiniteQueryOptions(activeUsername: string | undefined, code: string | undefined, filter?: NotificationFilter | undefined): _tanstack_react_query.UseInfiniteQueryOptions<ApiNotification[], Error, _tanstack_react_query.InfiniteData<ApiNotification[], unknown>, (string | undefined)[], string> & {
2308
2338
  initialData: _tanstack_react_query.InfiniteData<ApiNotification[], string> | (() => _tanstack_react_query.InfiniteData<ApiNotification[], string>) | undefined;
2309
2339
  } & {
2310
2340
  queryKey: (string | undefined)[] & {
@@ -2313,7 +2343,7 @@ declare function getNotificationsInfiniteQueryOptions(activeUsername: string | u
2313
2343
  };
2314
2344
  };
2315
2345
 
2316
- declare function getNotificationsSettingsQueryOptions(activeUsername: string | undefined): Omit<_tanstack_react_query.UseQueryOptions<ApiNotificationSetting, Error, ApiNotificationSetting, (string | undefined)[]>, "queryFn"> & {
2346
+ declare function getNotificationsSettingsQueryOptions(activeUsername: string | undefined, code: string | undefined): Omit<_tanstack_react_query.UseQueryOptions<ApiNotificationSetting, Error, ApiNotificationSetting, (string | undefined)[]>, "queryFn"> & {
2317
2347
  initialData: ApiNotificationSetting | (() => ApiNotificationSetting);
2318
2348
  queryFn?: _tanstack_react_query.QueryFunction<ApiNotificationSetting, (string | undefined)[]> | undefined;
2319
2349
  } & {
@@ -2765,6 +2795,27 @@ declare function getMarketDataQueryOptions(coin: string, vsCurrency: string, fro
2765
2795
  };
2766
2796
  };
2767
2797
 
2798
+ interface ApiResponse<T> {
2799
+ status: number;
2800
+ data: T;
2801
+ }
2802
+ interface CurrencyRates {
2803
+ [currency: string]: {
2804
+ quotes: {
2805
+ [currency: string]: {
2806
+ last_updated: string;
2807
+ percent_change: number;
2808
+ price: number;
2809
+ };
2810
+ };
2811
+ };
2812
+ }
2813
+
2814
+ declare function getMarketData(coin: string, vsCurrency: string, fromTs: string, toTs: string): Promise<MarketData>;
2815
+ declare function getCurrencyRate(cur: string): Promise<number>;
2816
+ declare function getCurrencyTokenRate(currency: string, token: string): Promise<number>;
2817
+ declare function getCurrencyRates(): Promise<CurrencyRates>;
2818
+
2768
2819
  interface PointTransaction {
2769
2820
  id: number;
2770
2821
  type: number;
@@ -2949,4 +3000,41 @@ declare function getBoostPlusAccountPricesQueryOptions(account: string, accessTo
2949
3000
  };
2950
3001
  };
2951
3002
 
2952
- export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountNotification, type AccountProfile, type AccountRelationship, type AccountReputation, type AccountSearchResult, type Announcement, type ApiBookmarkNotification, type ApiDelegationsNotification, type ApiFavoriteNotification, type ApiFollowNotification, type ApiInactiveNotification, type ApiMentionNotification, type ApiNotification, type ApiNotificationSetting, type ApiReblogNotification, type ApiReferralNotification, type ApiReplyNotification, type ApiSpinNotification, type ApiTransferNotification, type ApiVoteNotification, type Asset, type AuthorReward, type BlogEntry, type BoostPlusAccountPrice, type BuildProfileMetadataArgs, CONFIG, type CancelTransferFromSavings, type CantAfford, type CheckUsernameWalletsPendingResponse, type ClaimRewardBalance, type CollateralizedConversionRequest, type CollateralizedConvert, type CommentBenefactor, type CommentPayoutUpdate, type CommentReward, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type ConversionRequest, type CurationDuration, type CurationItem, type CurationReward, type DelegateVestingShares, type DelegatedVestingShare, type DeletedEntry, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type EffectiveCommentVote, type Entry$1 as Entry, type EntryBeneficiaryRoute, type EntryHeader, type EntryStat, type EntryVote, type FillCollateralizedConvertRequest, type FillConvertRequest, type FillOrder, type FillRecurrentTransfers, type FillVestingWithdraw, type Follow, type Fragment, type FriendSearchResult, type FriendsPageParam, type FriendsRow, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, type HiveHbdStats, HiveSignerIntegration, type Interest, type JsonMetadata, type JsonPollMetadata, keychain as Keychain, type Keys, type LeaderBoardDuration, type LeaderBoardItem, type LimitOrderCancel, type LimitOrderCreate, type MarketCandlestickDataItem, type MarketData, type MarketStatistics, NaiMap, NotificationFilter, NotificationViewType, type Notifications, NotifyTypes, type OpenOrdersData, type OperationGroup, type OrdersData, type OrdersDataItem, type PageStatsResponse, type Payer, type PointTransaction, type Points, type PostTip, type PostTipsResponse, type ProducerReward, type Profile, type ProfileTokens, type PromotePrice, type Proposal, type ProposalPay, type ProposalVote, type ProposalVoteRow, ROLES, type RcDirectDelegation, type RcDirectDelegationsResponse, type RcStats, type Reblog, type ReceivedVestingShare, type Recoveries, type RecurrentTransfers, type ReferralItem, type ReferralItems, type ReferralStat, type ReturnVestingDelegation, type RewardedCommunity, type SavingsWithdrawRequest, type SearchResponse, type SearchResult, type SetWithdrawRoute, SortOrder, type StatsResponse, type StoringUser, type Subscription, Symbol, type TagSearchResult, type ThreadItemEntry, ThreeSpeakIntegration, type ThreeSpeakVideo, type Transaction, type Transfer, type TransferToSavings, type TransferToVesting, type TrendingTag, type UpdateProposalVotes, type Vote, type VoteHistoryPage, type VoteHistoryPageParam, type VoteProxy, type WalletMetadataCandidate, type WaveEntry, type WaveTrendingTag, type WithdrawRoute, type WithdrawVesting, type Witness, type WsBookmarkNotification, type WsDelegationsNotification, type WsFavoriteNotification, type WsFollowNotification, type WsInactiveNotification, type WsMentionNotification, type WsNotification, type WsReblogNotification, type WsReferralNotification, type WsReplyNotification, type WsSpinNotification, type WsTransferNotification, type WsVoteNotification, broadcastJson, buildProfileMetadata, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, encodeObj, extractAccountProfile, getAccessToken, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPostsInfiniteQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getAnnouncementsQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunitySubscribersQueryOptions, getCommunityType, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussionsQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFollowCountQueryOptions, getFollowingQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getImagesQueryOptions, getLoginType, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsQueryOptions, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostingKey, getPostsRankedInfiniteQueryOptions, getPromotePriceQueryOptions, getPromotedPostsQuery, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getStatsQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getUser, getUserProposalVotesQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, normalizeWaveEntryFromApi, parseAccounts, parseAsset, parseProfileMetadata, roleMap, searchQueryOptions, sortDiscussions, toEntryArray, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRecordActivity, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain };
3003
+ declare function signUp(username: string, email: string, referral: string): Promise<ApiResponse<Record<string, unknown>>>;
3004
+ declare function subscribeEmail(email: string): Promise<ApiResponse<Record<string, unknown>>>;
3005
+ declare function usrActivity(code: string | undefined, ty: number, bl?: string | number, tx?: string | number): Promise<void>;
3006
+ declare function getNotifications(code: string | undefined, filter: string | null, since?: string | null, user?: string | null): Promise<ApiNotification[]>;
3007
+ declare function saveNotificationSetting(code: string | undefined, username: string, system: string, allows_notify: number, notify_types: number[], token: string): Promise<ApiNotificationSetting>;
3008
+ declare function getNotificationSetting(code: string | undefined, username: string, token: string): Promise<ApiNotificationSetting>;
3009
+ declare function markNotifications(code: string | undefined, id?: string): Promise<Record<string, unknown>>;
3010
+ declare function addImage(code: string | undefined, url: string): Promise<Record<string, unknown>>;
3011
+ declare function uploadImage(file: File, token: string, signal?: AbortSignal): Promise<{
3012
+ url: string;
3013
+ }>;
3014
+ declare function deleteImage(code: string | undefined, imageId: string): Promise<Record<string, unknown>>;
3015
+ declare function addDraft(code: string | undefined, title: string, body: string, tags: string, meta: DraftMetadata): Promise<{
3016
+ drafts: Draft[];
3017
+ }>;
3018
+ declare function updateDraft(code: string | undefined, draftId: string, title: string, body: string, tags: string, meta: DraftMetadata): Promise<{
3019
+ drafts: Draft[];
3020
+ }>;
3021
+ declare function deleteDraft(code: string | undefined, draftId: string): Promise<Record<string, unknown>>;
3022
+ declare function addSchedule(code: string | undefined, permlink: string, title: string, body: string, meta: Record<string, unknown>, options: Record<string, unknown> | null, schedule: string, reblog: boolean): Promise<Record<string, unknown>>;
3023
+ declare function deleteSchedule(code: string | undefined, id: string): Promise<Record<string, unknown>>;
3024
+ declare function moveSchedule(code: string | undefined, id: string): Promise<Schedule[]>;
3025
+ declare function getPromotedPost(code: string | undefined, author: string, permlink: string): Promise<{
3026
+ author: string;
3027
+ permlink: string;
3028
+ } | "">;
3029
+ declare function onboardEmail(username: string, email: string, friend: string): Promise<Record<string, unknown>>;
3030
+
3031
+ interface HsTokenRenewResponse {
3032
+ username: string;
3033
+ access_token: string;
3034
+ refresh_token: string;
3035
+ expires_in: number;
3036
+ }
3037
+
3038
+ declare function hsTokenRenew(code: string): Promise<HsTokenRenewResponse>;
3039
+
3040
+ export { ACCOUNT_OPERATION_GROUPS, ALL_ACCOUNT_OPERATIONS, ALL_NOTIFY_TYPES, type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountNotification, type AccountProfile, type AccountRelationship, type AccountReputation, type AccountSearchResult, type Announcement, type ApiBookmarkNotification, type ApiDelegationsNotification, type ApiFavoriteNotification, type ApiFollowNotification, type ApiInactiveNotification, type ApiMentionNotification, type ApiNotification, type ApiNotificationSetting, type ApiReblogNotification, type ApiReferralNotification, type ApiReplyNotification, type ApiResponse, type ApiSpinNotification, type ApiTransferNotification, type ApiVoteNotification, type Asset, type AuthorReward, type BlogEntry, type BoostPlusAccountPrice, type BuildProfileMetadataArgs, CONFIG, type CancelTransferFromSavings, type CantAfford, type CheckUsernameWalletsPendingResponse, type ClaimRewardBalance, type CollateralizedConversionRequest, type CollateralizedConvert, type CommentBenefactor, type CommentPayoutUpdate, type CommentReward, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type ConversionRequest, type CurationDuration, type CurationItem, type CurationReward, type CurrencyRates, type DelegateVestingShares, type DelegatedVestingShare, type DeletedEntry, type Draft, type DraftMetadata, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type EffectiveCommentVote, type Entry$1 as Entry, type EntryBeneficiaryRoute, type EntryHeader, type EntryStat, type EntryVote, type FillCollateralizedConvertRequest, type FillConvertRequest, type FillOrder, type FillRecurrentTransfers, type FillVestingWithdraw, type Follow, type Fragment, type FriendSearchResult, type FriendsPageParam, type FriendsRow, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, type HiveHbdStats, HiveSignerIntegration, type HsTokenRenewResponse, type Interest, type JsonMetadata, type JsonPollMetadata, keychain as Keychain, type Keys, type LeaderBoardDuration, type LeaderBoardItem, type LimitOrderCancel, type LimitOrderCreate, type MarketCandlestickDataItem, type MarketData, type MarketStatistics, NaiMap, NotificationFilter, NotificationViewType, type Notifications, NotifyTypes, type OpenOrdersData, type OperationGroup, type OrdersData, type OrdersDataItem, type PageStatsResponse, type Payer, type PointTransaction, type Points, type PostTip, type PostTipsResponse, type ProducerReward, type Profile, type ProfileTokens, type PromotePrice, type Proposal, type ProposalPay, type ProposalVote, type ProposalVoteRow, ROLES, type RcDirectDelegation, type RcDirectDelegationsResponse, type RcStats, type Reblog, type ReceivedVestingShare, type Recoveries, type RecurrentTransfers, type ReferralItem, type ReferralItems, type ReferralStat, type ReturnVestingDelegation, type RewardedCommunity, type SavingsWithdrawRequest, type Schedule, type SearchResponse, type SearchResult, type SetWithdrawRoute, SortOrder, type StatsResponse, type StoringUser, type Subscription, Symbol, type TagSearchResult, type ThreadItemEntry, ThreeSpeakIntegration, type ThreeSpeakVideo, type Transaction, type Transfer, type TransferToSavings, type TransferToVesting, type TrendingTag, type UpdateProposalVotes, type UserImage, type Vote, type VoteHistoryPage, type VoteHistoryPageParam, type VoteProxy, type WalletMetadataCandidate, type WaveEntry, type WaveTrendingTag, type WithdrawRoute, type WithdrawVesting, type Witness, type WsBookmarkNotification, type WsDelegationsNotification, type WsFavoriteNotification, type WsFollowNotification, type WsInactiveNotification, type WsMentionNotification, type WsNotification, type WsReblogNotification, type WsReferralNotification, type WsReplyNotification, type WsSpinNotification, type WsTransferNotification, type WsVoteNotification, addDraft, addImage, addSchedule, broadcastJson, buildProfileMetadata, checkUsernameWalletsPendingQueryOptions, decodeObj, dedupeAndSortKeyAuths, deleteDraft, deleteImage, deleteSchedule, encodeObj, extractAccountProfile, getAccessToken, getAccountFullQueryOptions, getAccountNotificationsInfiniteQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountPostsInfiniteQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getAccountVoteHistoryInfiniteQueryOptions, getAccountsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getAnnouncementsQueryOptions, getBoostPlusAccountPricesQueryOptions, getBoostPlusPricesQueryOptions, getBotsQueryOptions, getBoundFetch, getChainPropertiesQueryOptions, getCollateralizedConversionRequestsQueryOptions, getCommentHistoryQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunitySubscribersQueryOptions, getCommunityType, getControversialRisingInfiniteQueryOptions, getConversionRequestsQueryOptions, getCurrencyRate, getCurrencyRates, getCurrencyTokenRate, getDeletedEntryQueryOptions, getDiscoverCurationQueryOptions, getDiscoverLeaderboardQueryOptions, getDiscussionsQueryOptions, getDraftsQueryOptions, getDynamicPropsQueryOptions, getEntryActiveVotesQueryOptions, getFollowCountQueryOptions, getFollowingQueryOptions, getFragmentsQueryOptions, getFriendsInfiniteQueryOptions, getGalleryImagesQueryOptions, getGameStatusCheckQueryOptions, getHiveHbdStatsQueryOptions, getHivePoshLinksQueryOptions, getImagesQueryOptions, getLoginType, getMarketData, getMarketDataQueryOptions, getMarketHistoryQueryOptions, getMarketStatisticsQueryOptions, getMutedUsersQueryOptions, getNotificationSetting, getNotifications, getNotificationsInfiniteQueryOptions, getNotificationsSettingsQueryOptions, getNotificationsUnreadCountQueryOptions, getOpenOrdersQueryOptions, getOrderBookQueryOptions, getOutgoingRcDelegationsInfiniteQueryOptions, getPageStatsQueryOptions, getPointsQueryOptions, getPostHeaderQueryOptions, getPostQueryOptions, getPostTipsQueryOptions, getPostingKey, getPostsRankedInfiniteQueryOptions, getPromotePriceQueryOptions, getPromotedPost, getPromotedPostsQuery, getProposalQueryOptions, getProposalVotesInfiniteQueryOptions, getProposalsQueryOptions, getQueryClient, getRcStatsQueryOptions, getReblogsQueryOptions, getReceivedVestingSharesQueryOptions, getReferralsInfiniteQueryOptions, getReferralsStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getRewardedCommunitiesQueryOptions, getSavingsWithdrawFromQueryOptions, getSchedulesQueryOptions, getSearchAccountQueryOptions, getSearchAccountsByUsernameQueryOptions, getSearchApiInfiniteQueryOptions, getSearchFriendsQueryOptions, getSearchPathQueryOptions, getSearchTopicsQueryOptions, getSimilarEntriesQueryOptions, getStatsQueryOptions, getTransactionsInfiniteQueryOptions, getTrendingTagsQueryOptions, getTrendingTagsWithStatsQueryOptions, getUser, getUserProposalVotesQueryOptions, getVestingDelegationsQueryOptions, getVisibleFirstLevelThreadItems, getWavesByHostQueryOptions, getWavesByTagQueryOptions, getWavesFollowingQueryOptions, getWavesTrendingTagsQueryOptions, getWithdrawRoutesQueryOptions, getWitnessesInfiniteQueryOptions, hsTokenRenew, isCommunity, lookupAccountsQueryOptions, makeQueryClient, mapThreadItemsToWaveEntries, markNotifications, moveSchedule, normalizeWaveEntryFromApi, onboardEmail, parseAccounts, parseAsset, parseProfileMetadata, roleMap, saveNotificationSetting, searchQueryOptions, signUp, sortDiscussions, subscribeEmail, toEntryArray, updateDraft, uploadImage, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRecordActivity, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain, usrActivity };