@ecency/sdk 1.1.22 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1671 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1075 -0
- package/dist/index.d.ts +1075 -10
- package/dist/index.mjs +1589 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +29 -16
- package/dist/ecency-sdk.es.js +0 -1458
- package/dist/modules/accounts/index.d.ts +0 -3
- package/dist/modules/accounts/mutations/bookmarks/index.d.ts +0 -2
- package/dist/modules/accounts/mutations/bookmarks/use-account-bookmark-add.d.ts +0 -6
- package/dist/modules/accounts/mutations/bookmarks/use-account-bookmark-delete.d.ts +0 -1
- package/dist/modules/accounts/mutations/favourites/index.d.ts +0 -2
- package/dist/modules/accounts/mutations/favourites/use-account-favourite-add.d.ts +0 -1
- package/dist/modules/accounts/mutations/favourites/use-account-favourite-delete.d.ts +0 -1
- package/dist/modules/accounts/mutations/index.d.ts +0 -9
- package/dist/modules/accounts/mutations/use-account-relations-update.d.ts +0 -9
- package/dist/modules/accounts/mutations/use-account-revoke-key.d.ts +0 -19
- package/dist/modules/accounts/mutations/use-account-revoke-posting.d.ts +0 -10
- package/dist/modules/accounts/mutations/use-account-update-key-auths.d.ts +0 -19
- package/dist/modules/accounts/mutations/use-account-update-password.d.ts +0 -12
- package/dist/modules/accounts/mutations/use-account-update-recovery.d.ts +0 -11
- package/dist/modules/accounts/mutations/use-account-update.d.ts +0 -7
- package/dist/modules/accounts/queries/check-username-wallets-pending-query-options.d.ts +0 -16
- package/dist/modules/accounts/queries/get-account-full-query-options.d.ts +0 -245
- package/dist/modules/accounts/queries/get-account-pending-recovery-query-options.d.ts +0 -8
- package/dist/modules/accounts/queries/get-account-recoveries-query-options.d.ts +0 -9
- package/dist/modules/accounts/queries/get-account-subscriptions-query-options.d.ts +0 -10
- package/dist/modules/accounts/queries/get-active-account-bookmarks-query-options.d.ts +0 -9
- package/dist/modules/accounts/queries/get-active-account-favourites-query-options.d.ts +0 -9
- package/dist/modules/accounts/queries/get-relationship-between-accounts-query-options.d.ts +0 -9
- package/dist/modules/accounts/queries/index.d.ts +0 -9
- package/dist/modules/accounts/queries/search-accounts-by-username-query-options.d.ts +0 -8
- package/dist/modules/accounts/types/account-bookmark.d.ts +0 -7
- package/dist/modules/accounts/types/account-favourite.d.ts +0 -5
- package/dist/modules/accounts/types/account-follow-stats.d.ts +0 -5
- package/dist/modules/accounts/types/account-profile.d.ts +0 -19
- package/dist/modules/accounts/types/account-recovery.d.ts +0 -8
- package/dist/modules/accounts/types/account-relationship.d.ts +0 -6
- package/dist/modules/accounts/types/account-reputation.d.ts +0 -4
- package/dist/modules/accounts/types/full-account.d.ts +0 -52
- package/dist/modules/accounts/types/index.d.ts +0 -8
- package/dist/modules/analytics/index.d.ts +0 -2
- package/dist/modules/analytics/mutations/index.d.ts +0 -1
- package/dist/modules/analytics/mutations/use-record-activity.d.ts +0 -3
- package/dist/modules/communities/index.d.ts +0 -3
- package/dist/modules/communities/queries/get-communities-query-options.d.ts +0 -9
- package/dist/modules/communities/queries/get-community-context-query-options.d.ts +0 -20
- package/dist/modules/communities/queries/index.d.ts +0 -2
- package/dist/modules/communities/types/community.d.ts +0 -33
- package/dist/modules/communities/types/index.d.ts +0 -1
- package/dist/modules/communities/utils/index.d.ts +0 -11
- package/dist/modules/core/config.d.ts +0 -15
- package/dist/modules/core/entities/index.d.ts +0 -1
- package/dist/modules/core/entities/user.d.ts +0 -9
- package/dist/modules/core/index.d.ts +0 -7
- package/dist/modules/core/mock-storage.d.ts +0 -9
- package/dist/modules/core/mutations/broadcast-json.d.ts +0 -1
- package/dist/modules/core/mutations/index.d.ts +0 -2
- package/dist/modules/core/mutations/use-broadcast-mutation.d.ts +0 -3
- package/dist/modules/core/queries/get-dynamic-props-query-options.d.ts +0 -9
- package/dist/modules/core/queries/index.d.ts +0 -1
- package/dist/modules/core/queries-manager.d.ts +0 -21
- package/dist/modules/core/storage.d.ts +0 -6
- package/dist/modules/core/types/dynamic-props.d.ts +0 -15
- package/dist/modules/core/types/index.d.ts +0 -1
- package/dist/modules/core/utils/decoder-encoder.d.ts +0 -2
- package/dist/modules/core/utils/index.d.ts +0 -2
- package/dist/modules/core/utils/parse-asset.d.ts +0 -17
- package/dist/modules/games/index.d.ts +0 -3
- package/dist/modules/games/mutations/game-claim.d.ts +0 -2
- package/dist/modules/games/mutations/index.d.ts +0 -1
- package/dist/modules/games/queries/game-status-check-query-options.d.ts +0 -9
- package/dist/modules/games/queries/index.d.ts +0 -1
- package/dist/modules/games/types/game-claim.d.ts +0 -3
- package/dist/modules/games/types/get-game-status.d.ts +0 -7
- package/dist/modules/games/types/index.d.ts +0 -2
- package/dist/modules/integrations/3speak/index.d.ts +0 -6
- package/dist/modules/integrations/3speak/queries/get-account-token-query-options.d.ts +0 -8
- package/dist/modules/integrations/3speak/queries/get-account-videos-query-options.d.ts +0 -9
- package/dist/modules/integrations/3speak/queries/index.d.ts +0 -2
- package/dist/modules/integrations/3speak/types/index.d.ts +0 -1
- package/dist/modules/integrations/3speak/types/three-speak-video.d.ts +0 -52
- package/dist/modules/integrations/hiveposh/index.d.ts +0 -1
- package/dist/modules/integrations/hiveposh/queries/get-hiveposh-links-query-options.d.ts +0 -44
- package/dist/modules/integrations/hiveposh/queries/index.d.ts +0 -1
- package/dist/modules/integrations/hivesigner/index.d.ts +0 -5
- package/dist/modules/integrations/hivesigner/queries/get-decode-memo-query-options.d.ts +0 -8
- package/dist/modules/integrations/hivesigner/queries/index.d.ts +0 -1
- package/dist/modules/integrations/index.d.ts +0 -4
- package/dist/modules/integrations/plausible/index.d.ts +0 -1
- package/dist/modules/integrations/plausible/queries/get-stats-query-options.d.ts +0 -29
- package/dist/modules/integrations/plausible/queries/index.d.ts +0 -1
- package/dist/modules/keychain/index.d.ts +0 -2
- package/dist/modules/keychain/keychain.d.ts +0 -10
- package/dist/modules/operations/index.d.ts +0 -2
- package/dist/modules/operations/mutations/index.d.ts +0 -3
- package/dist/modules/operations/mutations/sign-operation-by-hivesigner.d.ts +0 -4
- package/dist/modules/operations/mutations/sign-operation-by-key.d.ts +0 -5
- package/dist/modules/operations/mutations/sign-operation-by-keychain.d.ts +0 -5
- package/dist/modules/operations/queries/get-chain-properties-query-options.d.ts +0 -8
- package/dist/modules/operations/queries/index.d.ts +0 -1
- package/dist/modules/posts/index.d.ts +0 -3
- package/dist/modules/posts/mutations/add-fragment.d.ts +0 -5
- package/dist/modules/posts/mutations/edit-fragment.d.ts +0 -5
- package/dist/modules/posts/mutations/index.d.ts +0 -3
- package/dist/modules/posts/mutations/remove-fragment.d.ts +0 -1
- package/dist/modules/posts/queries/get-fragments-query-options.d.ts +0 -9
- package/dist/modules/posts/queries/get-promoted-posts-query-options.d.ts +0 -8
- package/dist/modules/posts/queries/get-trending-tags-query-options.d.ts +0 -12
- package/dist/modules/posts/queries/index.d.ts +0 -3
- package/dist/modules/posts/types/fragment.d.ts +0 -7
- package/dist/modules/posts/types/index.d.ts +0 -2
- package/dist/modules/posts/types/trending-tag.d.ts +0 -6
- package/dist/modules/resource-credits/index.d.ts +0 -2
- package/dist/modules/resource-credits/queries/get-account-rc-query-options.d.ts +0 -8
- package/dist/modules/resource-credits/queries/get-rc-stats-query-options.d.ts +0 -8
- package/dist/modules/resource-credits/queries/index.d.ts +0 -2
- package/dist/modules/resource-credits/types/index.d.ts +0 -1
- package/dist/modules/resource-credits/types/stats.d.ts +0 -67
package/dist/index.d.ts
CHANGED
@@ -1,10 +1,1075 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
2
|
+
import { UseMutationOptions, MutationKey, QueryClient, QueryKey, InfiniteData, UseQueryOptions, UseInfiniteQueryOptions } from '@tanstack/react-query';
|
3
|
+
import * as _hiveio_dhive from '@hiveio/dhive';
|
4
|
+
import { Authority, PrivateKey, AuthorityType, PublicKey, Operation, Client } from '@hiveio/dhive';
|
5
|
+
import * as _hiveio_dhive_lib_chain_rc from '@hiveio/dhive/lib/chain/rc';
|
6
|
+
|
7
|
+
interface AccountFollowStats {
|
8
|
+
follower_count: number;
|
9
|
+
following_count: number;
|
10
|
+
account: string;
|
11
|
+
}
|
12
|
+
|
13
|
+
interface AccountReputation {
|
14
|
+
account: string;
|
15
|
+
reputation: number;
|
16
|
+
}
|
17
|
+
|
18
|
+
interface AccountProfile {
|
19
|
+
about?: string;
|
20
|
+
cover_image?: string;
|
21
|
+
location?: string;
|
22
|
+
name?: string;
|
23
|
+
profile_image?: string;
|
24
|
+
website?: string;
|
25
|
+
pinned?: string;
|
26
|
+
reputation?: number;
|
27
|
+
beneficiary?: {
|
28
|
+
account: string;
|
29
|
+
weight: number;
|
30
|
+
};
|
31
|
+
tokens?: {
|
32
|
+
symbol: string;
|
33
|
+
type: string;
|
34
|
+
meta: Record<string, any>;
|
35
|
+
}[];
|
36
|
+
}
|
37
|
+
|
38
|
+
interface FullAccount {
|
39
|
+
name: string;
|
40
|
+
owner: Authority;
|
41
|
+
active: Authority;
|
42
|
+
posting: Authority;
|
43
|
+
memo_key: string;
|
44
|
+
post_count: number;
|
45
|
+
created: string;
|
46
|
+
reputation: string | number;
|
47
|
+
json_metadata: string;
|
48
|
+
posting_json_metadata: string;
|
49
|
+
last_vote_time: string;
|
50
|
+
last_post: string;
|
51
|
+
reward_hbd_balance: string;
|
52
|
+
reward_vesting_hive: string;
|
53
|
+
reward_hive_balance: string;
|
54
|
+
reward_vesting_balance: string;
|
55
|
+
balance: string;
|
56
|
+
vesting_shares: string;
|
57
|
+
hbd_balance: string;
|
58
|
+
savings_balance: string;
|
59
|
+
savings_hbd_balance: string;
|
60
|
+
savings_hbd_seconds: string;
|
61
|
+
savings_hbd_last_interest_payment: string;
|
62
|
+
savings_hbd_seconds_last_update: string;
|
63
|
+
next_vesting_withdrawal: string;
|
64
|
+
pending_claimed_accounts: number;
|
65
|
+
delegated_vesting_shares: string;
|
66
|
+
received_vesting_shares: string;
|
67
|
+
vesting_withdraw_rate: string;
|
68
|
+
to_withdraw: string;
|
69
|
+
withdrawn: string;
|
70
|
+
witness_votes: string[];
|
71
|
+
proxy: string;
|
72
|
+
recovery_account: string;
|
73
|
+
proxied_vsf_votes: number[] | string[];
|
74
|
+
voting_manabar: {
|
75
|
+
current_mana: string | number;
|
76
|
+
last_update_time: number;
|
77
|
+
};
|
78
|
+
voting_power: number;
|
79
|
+
downvote_manabar: {
|
80
|
+
current_mana: string | number;
|
81
|
+
last_update_time: number;
|
82
|
+
};
|
83
|
+
profile?: AccountProfile;
|
84
|
+
follow_stats?: AccountFollowStats;
|
85
|
+
proxyVotes?: [];
|
86
|
+
}
|
87
|
+
|
88
|
+
interface AccountRelationship {
|
89
|
+
follows: boolean;
|
90
|
+
ignores: boolean;
|
91
|
+
is_blacklisted: boolean;
|
92
|
+
follows_blacklists: boolean;
|
93
|
+
}
|
94
|
+
|
95
|
+
interface AccountBookmark {
|
96
|
+
_id: string;
|
97
|
+
author: string;
|
98
|
+
permlink: string;
|
99
|
+
timestamp: number;
|
100
|
+
created: string;
|
101
|
+
}
|
102
|
+
|
103
|
+
interface AccountFavorite {
|
104
|
+
_id: string;
|
105
|
+
account: string;
|
106
|
+
timestamp: number;
|
107
|
+
}
|
108
|
+
|
109
|
+
interface Recoveries {
|
110
|
+
username: string;
|
111
|
+
email: string;
|
112
|
+
publicKeys: Record<string, number>;
|
113
|
+
}
|
114
|
+
interface GetRecoveriesEmailResponse extends Recoveries {
|
115
|
+
_id: string;
|
116
|
+
}
|
117
|
+
|
118
|
+
interface Payload$4 {
|
119
|
+
profile: Partial<AccountProfile>;
|
120
|
+
tokens: AccountProfile["tokens"];
|
121
|
+
}
|
122
|
+
declare function useAccountUpdate(username: string): _tanstack_react_query.UseMutationResult<unknown, Error, Partial<Payload$4>, unknown>;
|
123
|
+
|
124
|
+
type Kind = "toggle-ignore" | "toggle-follow";
|
125
|
+
declare function useAccountRelationsUpdate(reference: string | undefined, target: string | undefined, onSuccess: (data: Partial<AccountRelationship> | undefined) => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<{
|
126
|
+
ignores: boolean | undefined;
|
127
|
+
follows: boolean | undefined;
|
128
|
+
is_blacklisted?: boolean | undefined;
|
129
|
+
follows_blacklists?: boolean | undefined;
|
130
|
+
}, Error, Kind, unknown>;
|
131
|
+
|
132
|
+
interface Payload$3 {
|
133
|
+
author: string;
|
134
|
+
permlink: string;
|
135
|
+
}
|
136
|
+
declare function useBookmarkAdd(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, Payload$3, unknown>;
|
137
|
+
|
138
|
+
declare function useBookmarkDelete(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
139
|
+
|
140
|
+
declare function useAccountFavouriteAdd(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
141
|
+
|
142
|
+
declare function useAccountFavouriteDelete(username: string | undefined, onSuccess: () => void, onError: (e: Error) => void): _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
143
|
+
|
144
|
+
interface Keys {
|
145
|
+
owner: PrivateKey;
|
146
|
+
active: PrivateKey;
|
147
|
+
posting: PrivateKey;
|
148
|
+
memo_key: PrivateKey;
|
149
|
+
}
|
150
|
+
interface Payload$2 {
|
151
|
+
keepCurrent?: boolean;
|
152
|
+
currentKey: PrivateKey;
|
153
|
+
keys: Keys[];
|
154
|
+
}
|
155
|
+
declare function dedupeAndSortKeyAuths(existing: AuthorityType["key_auths"], additions: [string, number][]): AuthorityType["key_auths"];
|
156
|
+
type UpdateKeyAuthsOptions = Pick<UseMutationOptions<unknown, Error, Payload$2>, "onSuccess" | "onError">;
|
157
|
+
declare function useAccountUpdateKeyAuths(username: string, options?: UpdateKeyAuthsOptions): _tanstack_react_query.UseMutationResult<_hiveio_dhive.TransactionConfirmation, Error, Payload$2, unknown>;
|
158
|
+
|
159
|
+
interface Payload$1 {
|
160
|
+
newPassword: string;
|
161
|
+
currentPassword: string;
|
162
|
+
keepCurrent?: boolean;
|
163
|
+
}
|
164
|
+
/**
|
165
|
+
* Only native Hive and custom passwords could be updated here
|
166
|
+
* Seed based password cannot be updated here, it will be in an account always for now
|
167
|
+
*/
|
168
|
+
type UpdatePasswordOptions = Pick<UseMutationOptions<unknown, Error, Payload$1>, "onSuccess" | "onError">;
|
169
|
+
declare function useAccountUpdatePassword(username: string, options?: UpdatePasswordOptions): _tanstack_react_query.UseMutationResult<_hiveio_dhive.TransactionConfirmation, Error, Payload$1, unknown>;
|
170
|
+
|
171
|
+
type SignType$1 = "key" | "keychain" | "hivesigner";
|
172
|
+
interface CommonPayload$1 {
|
173
|
+
accountName: string;
|
174
|
+
type: SignType$1;
|
175
|
+
key?: PrivateKey;
|
176
|
+
}
|
177
|
+
type RevokePostingOptions = Pick<UseMutationOptions<unknown, Error, CommonPayload$1>, "onSuccess" | "onError">;
|
178
|
+
declare function useAccountRevokePosting(username: string | undefined, options: RevokePostingOptions): _tanstack_react_query.UseMutationResult<any, Error, CommonPayload$1, unknown>;
|
179
|
+
|
180
|
+
type SignType = "key" | "keychain" | "hivesigner" | "ecency";
|
181
|
+
interface CommonPayload {
|
182
|
+
accountName: string;
|
183
|
+
type: SignType;
|
184
|
+
key?: PrivateKey;
|
185
|
+
email?: string;
|
186
|
+
}
|
187
|
+
type UpdateRecoveryOptions = Pick<UseMutationOptions<unknown, Error, CommonPayload>, "onSuccess" | "onError">;
|
188
|
+
declare function useAccountUpdateRecovery(username: string | undefined, options: UpdateRecoveryOptions): _tanstack_react_query.UseMutationResult<unknown, Error, CommonPayload, unknown>;
|
189
|
+
|
190
|
+
interface Payload {
|
191
|
+
currentKey: PrivateKey;
|
192
|
+
revokingKey: PublicKey;
|
193
|
+
}
|
194
|
+
/**
|
195
|
+
* This hook provides functionality to revoke a key from an account on the Hive blockchain.
|
196
|
+
* It leverages React Query's `useMutation` for managing the mutation state and executing
|
197
|
+
* the operation efficiently.
|
198
|
+
*
|
199
|
+
* @param username The username of the Hive account from which the key should be revoked.
|
200
|
+
* Pass `undefined` if the username is unknown or not set yet.
|
201
|
+
*
|
202
|
+
* @returns The mutation object from `useMutation`, including methods to trigger the key
|
203
|
+
* revocation and access its state (e.g., loading, success, error).
|
204
|
+
*/
|
205
|
+
type RevokeKeyOptions = Pick<UseMutationOptions<unknown, Error, Payload>, "onSuccess" | "onError">;
|
206
|
+
declare function useAccountRevokeKey(username: string | undefined, options?: RevokeKeyOptions): _tanstack_react_query.UseMutationResult<_hiveio_dhive.TransactionConfirmation, Error, Payload, unknown>;
|
207
|
+
|
208
|
+
declare function getAccountFullQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
209
|
+
name: any;
|
210
|
+
owner: any;
|
211
|
+
active: any;
|
212
|
+
posting: any;
|
213
|
+
memo_key: any;
|
214
|
+
post_count: any;
|
215
|
+
created: any;
|
216
|
+
posting_json_metadata: any;
|
217
|
+
last_vote_time: any;
|
218
|
+
last_post: any;
|
219
|
+
json_metadata: any;
|
220
|
+
reward_hive_balance: any;
|
221
|
+
reward_hbd_balance: any;
|
222
|
+
reward_vesting_hive: any;
|
223
|
+
reward_vesting_balance: any;
|
224
|
+
balance: any;
|
225
|
+
hbd_balance: any;
|
226
|
+
savings_balance: any;
|
227
|
+
savings_hbd_balance: any;
|
228
|
+
savings_hbd_last_interest_payment: any;
|
229
|
+
savings_hbd_seconds_last_update: any;
|
230
|
+
savings_hbd_seconds: any;
|
231
|
+
next_vesting_withdrawal: any;
|
232
|
+
pending_claimed_accounts: any;
|
233
|
+
vesting_shares: any;
|
234
|
+
delegated_vesting_shares: any;
|
235
|
+
received_vesting_shares: any;
|
236
|
+
vesting_withdraw_rate: any;
|
237
|
+
to_withdraw: any;
|
238
|
+
withdrawn: any;
|
239
|
+
witness_votes: any;
|
240
|
+
proxy: any;
|
241
|
+
recovery_account: any;
|
242
|
+
proxied_vsf_votes: any;
|
243
|
+
voting_manabar: any;
|
244
|
+
voting_power: any;
|
245
|
+
downvote_manabar: any;
|
246
|
+
follow_stats: AccountFollowStats | undefined;
|
247
|
+
reputation: number;
|
248
|
+
profile: {
|
249
|
+
reputation: number;
|
250
|
+
about?: string;
|
251
|
+
cover_image?: string;
|
252
|
+
location?: string;
|
253
|
+
name?: string;
|
254
|
+
profile_image?: string;
|
255
|
+
website?: string;
|
256
|
+
pinned?: string;
|
257
|
+
beneficiary?: {
|
258
|
+
account: string;
|
259
|
+
weight: number;
|
260
|
+
};
|
261
|
+
tokens?: {
|
262
|
+
symbol: string;
|
263
|
+
type: string;
|
264
|
+
meta: Record<string, any>;
|
265
|
+
}[];
|
266
|
+
};
|
267
|
+
}, Error, {
|
268
|
+
name: any;
|
269
|
+
owner: any;
|
270
|
+
active: any;
|
271
|
+
posting: any;
|
272
|
+
memo_key: any;
|
273
|
+
post_count: any;
|
274
|
+
created: any;
|
275
|
+
posting_json_metadata: any;
|
276
|
+
last_vote_time: any;
|
277
|
+
last_post: any;
|
278
|
+
json_metadata: any;
|
279
|
+
reward_hive_balance: any;
|
280
|
+
reward_hbd_balance: any;
|
281
|
+
reward_vesting_hive: any;
|
282
|
+
reward_vesting_balance: any;
|
283
|
+
balance: any;
|
284
|
+
hbd_balance: any;
|
285
|
+
savings_balance: any;
|
286
|
+
savings_hbd_balance: any;
|
287
|
+
savings_hbd_last_interest_payment: any;
|
288
|
+
savings_hbd_seconds_last_update: any;
|
289
|
+
savings_hbd_seconds: any;
|
290
|
+
next_vesting_withdrawal: any;
|
291
|
+
pending_claimed_accounts: any;
|
292
|
+
vesting_shares: any;
|
293
|
+
delegated_vesting_shares: any;
|
294
|
+
received_vesting_shares: any;
|
295
|
+
vesting_withdraw_rate: any;
|
296
|
+
to_withdraw: any;
|
297
|
+
withdrawn: any;
|
298
|
+
witness_votes: any;
|
299
|
+
proxy: any;
|
300
|
+
recovery_account: any;
|
301
|
+
proxied_vsf_votes: any;
|
302
|
+
voting_manabar: any;
|
303
|
+
voting_power: any;
|
304
|
+
downvote_manabar: any;
|
305
|
+
follow_stats: AccountFollowStats | undefined;
|
306
|
+
reputation: number;
|
307
|
+
profile: {
|
308
|
+
reputation: number;
|
309
|
+
about?: string;
|
310
|
+
cover_image?: string;
|
311
|
+
location?: string;
|
312
|
+
name?: string;
|
313
|
+
profile_image?: string;
|
314
|
+
website?: string;
|
315
|
+
pinned?: string;
|
316
|
+
beneficiary?: {
|
317
|
+
account: string;
|
318
|
+
weight: number;
|
319
|
+
};
|
320
|
+
tokens?: {
|
321
|
+
symbol: string;
|
322
|
+
type: string;
|
323
|
+
meta: Record<string, any>;
|
324
|
+
}[];
|
325
|
+
};
|
326
|
+
}, (string | undefined)[]>, "queryFn"> & {
|
327
|
+
queryFn?: _tanstack_react_query.QueryFunction<{
|
328
|
+
name: any;
|
329
|
+
owner: any;
|
330
|
+
active: any;
|
331
|
+
posting: any;
|
332
|
+
memo_key: any;
|
333
|
+
post_count: any;
|
334
|
+
created: any;
|
335
|
+
posting_json_metadata: any;
|
336
|
+
last_vote_time: any;
|
337
|
+
last_post: any;
|
338
|
+
json_metadata: any;
|
339
|
+
reward_hive_balance: any;
|
340
|
+
reward_hbd_balance: any;
|
341
|
+
reward_vesting_hive: any;
|
342
|
+
reward_vesting_balance: any;
|
343
|
+
balance: any;
|
344
|
+
hbd_balance: any;
|
345
|
+
savings_balance: any;
|
346
|
+
savings_hbd_balance: any;
|
347
|
+
savings_hbd_last_interest_payment: any;
|
348
|
+
savings_hbd_seconds_last_update: any;
|
349
|
+
savings_hbd_seconds: any;
|
350
|
+
next_vesting_withdrawal: any;
|
351
|
+
pending_claimed_accounts: any;
|
352
|
+
vesting_shares: any;
|
353
|
+
delegated_vesting_shares: any;
|
354
|
+
received_vesting_shares: any;
|
355
|
+
vesting_withdraw_rate: any;
|
356
|
+
to_withdraw: any;
|
357
|
+
withdrawn: any;
|
358
|
+
witness_votes: any;
|
359
|
+
proxy: any;
|
360
|
+
recovery_account: any;
|
361
|
+
proxied_vsf_votes: any;
|
362
|
+
voting_manabar: any;
|
363
|
+
voting_power: any;
|
364
|
+
downvote_manabar: any;
|
365
|
+
follow_stats: AccountFollowStats | undefined;
|
366
|
+
reputation: number;
|
367
|
+
profile: {
|
368
|
+
reputation: number;
|
369
|
+
about?: string;
|
370
|
+
cover_image?: string;
|
371
|
+
location?: string;
|
372
|
+
name?: string;
|
373
|
+
profile_image?: string;
|
374
|
+
website?: string;
|
375
|
+
pinned?: string;
|
376
|
+
beneficiary?: {
|
377
|
+
account: string;
|
378
|
+
weight: number;
|
379
|
+
};
|
380
|
+
tokens?: {
|
381
|
+
symbol: string;
|
382
|
+
type: string;
|
383
|
+
meta: Record<string, any>;
|
384
|
+
}[];
|
385
|
+
};
|
386
|
+
}, (string | undefined)[], never> | undefined;
|
387
|
+
} & {
|
388
|
+
queryKey: (string | undefined)[] & {
|
389
|
+
[dataTagSymbol]: {
|
390
|
+
name: any;
|
391
|
+
owner: any;
|
392
|
+
active: any;
|
393
|
+
posting: any;
|
394
|
+
memo_key: any;
|
395
|
+
post_count: any;
|
396
|
+
created: any;
|
397
|
+
posting_json_metadata: any;
|
398
|
+
last_vote_time: any;
|
399
|
+
last_post: any;
|
400
|
+
json_metadata: any;
|
401
|
+
reward_hive_balance: any;
|
402
|
+
reward_hbd_balance: any;
|
403
|
+
reward_vesting_hive: any;
|
404
|
+
reward_vesting_balance: any;
|
405
|
+
balance: any;
|
406
|
+
hbd_balance: any;
|
407
|
+
savings_balance: any;
|
408
|
+
savings_hbd_balance: any;
|
409
|
+
savings_hbd_last_interest_payment: any;
|
410
|
+
savings_hbd_seconds_last_update: any;
|
411
|
+
savings_hbd_seconds: any;
|
412
|
+
next_vesting_withdrawal: any;
|
413
|
+
pending_claimed_accounts: any;
|
414
|
+
vesting_shares: any;
|
415
|
+
delegated_vesting_shares: any;
|
416
|
+
received_vesting_shares: any;
|
417
|
+
vesting_withdraw_rate: any;
|
418
|
+
to_withdraw: any;
|
419
|
+
withdrawn: any;
|
420
|
+
witness_votes: any;
|
421
|
+
proxy: any;
|
422
|
+
recovery_account: any;
|
423
|
+
proxied_vsf_votes: any;
|
424
|
+
voting_manabar: any;
|
425
|
+
voting_power: any;
|
426
|
+
downvote_manabar: any;
|
427
|
+
follow_stats: AccountFollowStats | undefined;
|
428
|
+
reputation: number;
|
429
|
+
profile: {
|
430
|
+
reputation: number;
|
431
|
+
about?: string;
|
432
|
+
cover_image?: string;
|
433
|
+
location?: string;
|
434
|
+
name?: string;
|
435
|
+
profile_image?: string;
|
436
|
+
website?: string;
|
437
|
+
pinned?: string;
|
438
|
+
beneficiary?: {
|
439
|
+
account: string;
|
440
|
+
weight: number;
|
441
|
+
};
|
442
|
+
tokens?: {
|
443
|
+
symbol: string;
|
444
|
+
type: string;
|
445
|
+
meta: Record<string, any>;
|
446
|
+
}[];
|
447
|
+
};
|
448
|
+
};
|
449
|
+
[dataTagErrorSymbol]: Error;
|
450
|
+
};
|
451
|
+
};
|
452
|
+
|
453
|
+
declare function getSearchAccountsByUsernameQueryOptions(query: string, limit?: number, excludeList?: string[]): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<string[], Error, string[], (string | string[])[]>, "queryFn"> & {
|
454
|
+
queryFn?: _tanstack_react_query.QueryFunction<string[], (string | string[])[], never> | undefined;
|
455
|
+
} & {
|
456
|
+
queryKey: (string | string[])[] & {
|
457
|
+
[dataTagSymbol]: string[];
|
458
|
+
[dataTagErrorSymbol]: Error;
|
459
|
+
};
|
460
|
+
};
|
461
|
+
|
462
|
+
declare function checkUsernameWalletsPendingQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
463
|
+
exist: boolean;
|
464
|
+
}, Error, {
|
465
|
+
exist: boolean;
|
466
|
+
}, string[]>, "queryFn"> & {
|
467
|
+
queryFn?: _tanstack_react_query.QueryFunction<{
|
468
|
+
exist: boolean;
|
469
|
+
}, string[], never> | undefined;
|
470
|
+
} & {
|
471
|
+
queryKey: string[] & {
|
472
|
+
[dataTagSymbol]: {
|
473
|
+
exist: boolean;
|
474
|
+
};
|
475
|
+
[dataTagErrorSymbol]: Error;
|
476
|
+
};
|
477
|
+
};
|
478
|
+
|
479
|
+
declare function getRelationshipBetweenAccountsQueryOptions(reference: string | undefined, target: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountRelationship, Error, AccountRelationship, (string | undefined)[]>, "queryFn"> & {
|
480
|
+
queryFn?: _tanstack_react_query.QueryFunction<AccountRelationship, (string | undefined)[], never> | undefined;
|
481
|
+
} & {
|
482
|
+
queryKey: (string | undefined)[] & {
|
483
|
+
[dataTagSymbol]: AccountRelationship;
|
484
|
+
[dataTagErrorSymbol]: Error;
|
485
|
+
};
|
486
|
+
};
|
487
|
+
|
488
|
+
type Subscriptions = string[];
|
489
|
+
declare function getAccountSubscriptionsQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Subscriptions, Error, Subscriptions, (string | undefined)[]>, "queryFn"> & {
|
490
|
+
queryFn?: _tanstack_react_query.QueryFunction<Subscriptions, (string | undefined)[], never> | undefined;
|
491
|
+
} & {
|
492
|
+
queryKey: (string | undefined)[] & {
|
493
|
+
[dataTagSymbol]: Subscriptions;
|
494
|
+
[dataTagErrorSymbol]: Error;
|
495
|
+
};
|
496
|
+
};
|
497
|
+
|
498
|
+
declare function getActiveAccountBookmarksQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountBookmark[], Error, AccountBookmark[], (string | undefined)[]>, "queryFn"> & {
|
499
|
+
queryFn?: _tanstack_react_query.QueryFunction<AccountBookmark[], (string | undefined)[], never> | undefined;
|
500
|
+
} & {
|
501
|
+
queryKey: (string | undefined)[] & {
|
502
|
+
[dataTagSymbol]: AccountBookmark[];
|
503
|
+
[dataTagErrorSymbol]: Error;
|
504
|
+
};
|
505
|
+
};
|
506
|
+
|
507
|
+
declare function getActiveAccountFavouritesQueryOptions(activeUsername: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<AccountFavorite[], Error, AccountFavorite[], (string | undefined)[]>, "queryFn"> & {
|
508
|
+
queryFn?: _tanstack_react_query.QueryFunction<AccountFavorite[], (string | undefined)[], never> | undefined;
|
509
|
+
} & {
|
510
|
+
queryKey: (string | undefined)[] & {
|
511
|
+
[dataTagSymbol]: AccountFavorite[];
|
512
|
+
[dataTagErrorSymbol]: Error;
|
513
|
+
};
|
514
|
+
};
|
515
|
+
|
516
|
+
declare function getAccountRecoveriesQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetRecoveriesEmailResponse[], Error, GetRecoveriesEmailResponse[], (string | undefined)[]>, "queryFn"> & {
|
517
|
+
queryFn?: _tanstack_react_query.QueryFunction<GetRecoveriesEmailResponse[], (string | undefined)[], never> | undefined;
|
518
|
+
} & {
|
519
|
+
queryKey: (string | undefined)[] & {
|
520
|
+
[dataTagSymbol]: GetRecoveriesEmailResponse[];
|
521
|
+
[dataTagErrorSymbol]: Error;
|
522
|
+
};
|
523
|
+
};
|
524
|
+
|
525
|
+
declare function getAccountPendingRecoveryQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, (string | undefined)[]>, "queryFn"> & {
|
526
|
+
queryFn?: _tanstack_react_query.QueryFunction<any, (string | undefined)[], never> | undefined;
|
527
|
+
} & {
|
528
|
+
queryKey: (string | undefined)[] & {
|
529
|
+
[dataTagSymbol]: any;
|
530
|
+
[dataTagErrorSymbol]: Error;
|
531
|
+
};
|
532
|
+
};
|
533
|
+
|
534
|
+
declare function useSignOperationByKey(username: string | undefined): _tanstack_react_query.UseMutationResult<_hiveio_dhive.TransactionConfirmation, Error, {
|
535
|
+
operation: Operation;
|
536
|
+
keyOrSeed: string;
|
537
|
+
}, unknown>;
|
538
|
+
|
539
|
+
type KeychainAuthorityTypes = "Owner" | "Active" | "Posting" | "Memo";
|
540
|
+
interface TxResponse {
|
541
|
+
success: boolean;
|
542
|
+
result: string;
|
543
|
+
}
|
544
|
+
declare function handshake(): Promise<void>;
|
545
|
+
declare const broadcast: (account: string, operations: Operation[], key: KeychainAuthorityTypes, rpc?: string | null) => Promise<TxResponse>;
|
546
|
+
declare const customJson: (account: string, id: string, key: KeychainAuthorityTypes, json: string, display_msg: string, rpc?: string | null) => Promise<TxResponse>;
|
547
|
+
|
548
|
+
type keychain_KeychainAuthorityTypes = KeychainAuthorityTypes;
|
549
|
+
declare const keychain_broadcast: typeof broadcast;
|
550
|
+
declare const keychain_customJson: typeof customJson;
|
551
|
+
declare const keychain_handshake: typeof handshake;
|
552
|
+
declare namespace keychain {
|
553
|
+
export { type keychain_KeychainAuthorityTypes as KeychainAuthorityTypes, keychain_broadcast as broadcast, keychain_customJson as customJson, keychain_handshake as handshake };
|
554
|
+
}
|
555
|
+
|
556
|
+
declare function useSignOperationByKeychain(username: string | undefined, keyType?: KeychainAuthorityTypes): _tanstack_react_query.UseMutationResult<any, Error, {
|
557
|
+
operation: Operation;
|
558
|
+
}, unknown>;
|
559
|
+
|
560
|
+
declare function useSignOperationByHivesigner(callbackUri?: string): _tanstack_react_query.UseMutationResult<string | void, Error, {
|
561
|
+
operation: Operation;
|
562
|
+
}, unknown>;
|
563
|
+
|
564
|
+
declare function getChainPropertiesQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_hiveio_dhive.ChainProperties, Error, _hiveio_dhive.ChainProperties, string[]>, "queryFn"> & {
|
565
|
+
queryFn?: _tanstack_react_query.QueryFunction<_hiveio_dhive.ChainProperties, string[], never> | undefined;
|
566
|
+
} & {
|
567
|
+
queryKey: string[] & {
|
568
|
+
[dataTagSymbol]: _hiveio_dhive.ChainProperties;
|
569
|
+
[dataTagErrorSymbol]: Error;
|
570
|
+
};
|
571
|
+
};
|
572
|
+
|
573
|
+
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>;
|
574
|
+
|
575
|
+
declare function broadcastJson<T>(username: string | undefined, id: string, payload: T): Promise<any>;
|
576
|
+
|
577
|
+
interface StoringUser {
|
578
|
+
username: string;
|
579
|
+
accessToken: string;
|
580
|
+
refreshToken: string;
|
581
|
+
expiresIn: number;
|
582
|
+
postingKey: null | undefined | string;
|
583
|
+
loginType: null | undefined | string;
|
584
|
+
index?: number;
|
585
|
+
}
|
586
|
+
|
587
|
+
declare const getUser: (username: string) => StoringUser | undefined;
|
588
|
+
declare const getAccessToken: (username: string) => string | undefined;
|
589
|
+
declare const getPostingKey: (username: string) => null | undefined | string;
|
590
|
+
declare const getLoginType: (username: string) => null | undefined | string;
|
591
|
+
declare const getRefreshToken: (username: string) => string | undefined;
|
592
|
+
|
593
|
+
declare const CONFIG: {
|
594
|
+
privateApiHost: string;
|
595
|
+
storage: Storage;
|
596
|
+
storagePrefix: string;
|
597
|
+
hiveClient: Client;
|
598
|
+
heliusApiKey: string | undefined;
|
599
|
+
queryClient: QueryClient;
|
600
|
+
plausibleHost: string;
|
601
|
+
spkNode: string;
|
602
|
+
};
|
603
|
+
declare namespace ConfigManager {
|
604
|
+
function setQueryClient(client: QueryClient): void;
|
605
|
+
}
|
606
|
+
|
607
|
+
declare function makeQueryClient(): QueryClient;
|
608
|
+
declare const getQueryClient: () => QueryClient;
|
609
|
+
declare namespace EcencyQueriesManager {
|
610
|
+
function getQueryData<T>(queryKey: QueryKey): T | undefined;
|
611
|
+
function getInfiniteQueryData<T>(queryKey: QueryKey): InfiniteData<T, unknown> | undefined;
|
612
|
+
function prefetchQuery<T>(options: UseQueryOptions<T>): Promise<T | undefined>;
|
613
|
+
function prefetchInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): Promise<InfiniteData<T, unknown> | undefined>;
|
614
|
+
function generateClientServerQuery<T>(options: UseQueryOptions<T>): {
|
615
|
+
prefetch: () => Promise<T | undefined>;
|
616
|
+
getData: () => T | undefined;
|
617
|
+
useClientQuery: () => _tanstack_react_query.UseQueryResult<_tanstack_react_query.NoInfer<T>, Error>;
|
618
|
+
fetchAndGet: () => Promise<T>;
|
619
|
+
};
|
620
|
+
function generateClientServerInfiniteQuery<T, P>(options: UseInfiniteQueryOptions<T, Error, InfiniteData<T>, QueryKey, P>): {
|
621
|
+
prefetch: () => Promise<InfiniteData<T, unknown> | undefined>;
|
622
|
+
getData: () => InfiniteData<T, unknown> | undefined;
|
623
|
+
useClientQuery: () => _tanstack_react_query.UseInfiniteQueryResult<InfiniteData<T, unknown>, Error>;
|
624
|
+
fetchAndGet: () => Promise<InfiniteData<T, P>>;
|
625
|
+
};
|
626
|
+
}
|
627
|
+
|
628
|
+
interface DynamicProps {
|
629
|
+
hivePerMVests: number;
|
630
|
+
base: number;
|
631
|
+
quote: number;
|
632
|
+
fundRewardBalance: number;
|
633
|
+
fundRecentClaims: number;
|
634
|
+
hbdPrintRate: number;
|
635
|
+
hbdInterestRate: number;
|
636
|
+
headBlock: number;
|
637
|
+
totalVestingFund: number;
|
638
|
+
totalVestingShares: number;
|
639
|
+
virtualSupply: number;
|
640
|
+
vestingRewardPercent: number;
|
641
|
+
accountCreationFee: string;
|
642
|
+
}
|
643
|
+
|
644
|
+
declare function getDynamicPropsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<DynamicProps, Error, DynamicProps, string[]>, "queryFn"> & {
|
645
|
+
queryFn?: _tanstack_react_query.QueryFunction<DynamicProps, string[], never> | undefined;
|
646
|
+
} & {
|
647
|
+
queryKey: string[] & {
|
648
|
+
[dataTagSymbol]: DynamicProps;
|
649
|
+
[dataTagErrorSymbol]: Error;
|
650
|
+
};
|
651
|
+
};
|
652
|
+
|
653
|
+
declare function getTrendingTagsQueryOptions(limit?: number): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseInfiniteQueryOptions<string[], Error, _tanstack_react_query.InfiniteData<string[], unknown>, string[], {
|
654
|
+
afterTag: string;
|
655
|
+
}>, "queryFn"> & {
|
656
|
+
queryFn?: _tanstack_react_query.QueryFunction<string[], string[], {
|
657
|
+
afterTag: string;
|
658
|
+
}> | undefined;
|
659
|
+
} & {
|
660
|
+
queryKey: string[] & {
|
661
|
+
[dataTagSymbol]: _tanstack_react_query.InfiniteData<string[], unknown>;
|
662
|
+
[dataTagErrorSymbol]: Error;
|
663
|
+
};
|
664
|
+
};
|
665
|
+
|
666
|
+
interface TrendingTag {
|
667
|
+
comments: number;
|
668
|
+
name: string;
|
669
|
+
top_posts: number;
|
670
|
+
total_payouts: string;
|
671
|
+
}
|
672
|
+
|
673
|
+
interface Fragment {
|
674
|
+
id: string;
|
675
|
+
title: string;
|
676
|
+
body: string;
|
677
|
+
created: string;
|
678
|
+
modified: string;
|
679
|
+
}
|
680
|
+
|
681
|
+
declare function getFragmentsQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Fragment[], Error, Fragment[], string[]>, "queryFn"> & {
|
682
|
+
queryFn?: _tanstack_react_query.QueryFunction<Fragment[], string[], never> | undefined;
|
683
|
+
} & {
|
684
|
+
queryKey: string[] & {
|
685
|
+
[dataTagSymbol]: Fragment[];
|
686
|
+
[dataTagErrorSymbol]: Error;
|
687
|
+
};
|
688
|
+
};
|
689
|
+
|
690
|
+
declare function getPromotedPostsQuery<T extends any>(type?: "feed" | "waves"): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<T[], Error, T[], string[]>, "queryFn"> & {
|
691
|
+
queryFn?: _tanstack_react_query.QueryFunction<T[], string[], never> | undefined;
|
692
|
+
} & {
|
693
|
+
queryKey: string[] & {
|
694
|
+
[dataTagSymbol]: T[];
|
695
|
+
[dataTagErrorSymbol]: Error;
|
696
|
+
};
|
697
|
+
};
|
698
|
+
|
699
|
+
declare function useAddFragment(username: string): _tanstack_react_query.UseMutationResult<Fragment, Error, {
|
700
|
+
title: string;
|
701
|
+
body: string;
|
702
|
+
}, unknown>;
|
703
|
+
|
704
|
+
declare function useEditFragment(username: string, fragmentId: string): _tanstack_react_query.UseMutationResult<Fragment, Error, {
|
705
|
+
title: string;
|
706
|
+
body: string;
|
707
|
+
}, unknown>;
|
708
|
+
|
709
|
+
declare function useRemoveFragment(username: string, fragmentId: string): _tanstack_react_query.UseMutationResult<Response, Error, void, unknown>;
|
710
|
+
|
711
|
+
type ActivityType = "post-created" | "post-updated" | "post-scheduled" | "draft-created" | "video-published" | "legacy-post-created" | "legacy-post-updated" | "legacy-post-scheduled" | "legacy-draft-created" | "legacy-video-published" | "perks-points-by-qr" | "perks-account-boost" | "perks-promote" | "perks-boost-plus" | "points-claimed" | "spin-rolled" | "signed-up-with-wallets" | "signed-up-with-email";
|
712
|
+
declare function useRecordActivity(username: string | undefined, activityType: ActivityType): _tanstack_react_query.UseMutationResult<void, Error, void, unknown>;
|
713
|
+
|
714
|
+
declare const index_useRecordActivity: typeof useRecordActivity;
|
715
|
+
declare namespace index {
|
716
|
+
export { index_useRecordActivity as useRecordActivity };
|
717
|
+
}
|
718
|
+
|
719
|
+
interface ThreeSpeakVideo {
|
720
|
+
app: string;
|
721
|
+
beneficiaries: string;
|
722
|
+
category: string;
|
723
|
+
community: unknown | null;
|
724
|
+
created: string;
|
725
|
+
declineRewards: boolean;
|
726
|
+
description: string;
|
727
|
+
donations: boolean;
|
728
|
+
duration: number;
|
729
|
+
encoding: Record<number, boolean>;
|
730
|
+
encodingProgress: number;
|
731
|
+
encoding_price_steem: string;
|
732
|
+
filename: string;
|
733
|
+
firstUpload: boolean;
|
734
|
+
fromMobile: boolean;
|
735
|
+
height: unknown;
|
736
|
+
hive: string;
|
737
|
+
indexed: boolean;
|
738
|
+
is3CJContent: boolean;
|
739
|
+
isNsfwContent: boolean;
|
740
|
+
isReel: boolean;
|
741
|
+
isVOD: boolean;
|
742
|
+
job_id: string;
|
743
|
+
language: string;
|
744
|
+
local_filename: string;
|
745
|
+
lowRc: boolean;
|
746
|
+
needsBlockchainUpdate: boolean;
|
747
|
+
originalFilename: string;
|
748
|
+
owner: string;
|
749
|
+
paid: boolean;
|
750
|
+
permlink: string;
|
751
|
+
postToHiveBlog: boolean;
|
752
|
+
publish_type: string;
|
753
|
+
reducedUpvote: boolean;
|
754
|
+
rewardPowerup: boolean;
|
755
|
+
size: number;
|
756
|
+
status: string;
|
757
|
+
tags_v2: unknown[];
|
758
|
+
thumbUrl: string;
|
759
|
+
thumbnail: string;
|
760
|
+
title: string;
|
761
|
+
updateSteem: boolean;
|
762
|
+
upload_type: string;
|
763
|
+
upvoteEligible: boolean;
|
764
|
+
video_v2: string;
|
765
|
+
views: number;
|
766
|
+
votePercent: number;
|
767
|
+
width: unknown;
|
768
|
+
__v: number;
|
769
|
+
_id: string;
|
770
|
+
}
|
771
|
+
|
772
|
+
declare function getAccountTokenQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, (string | undefined)[]>, "queryFn"> & {
|
773
|
+
queryFn?: _tanstack_react_query.QueryFunction<any, (string | undefined)[], never> | undefined;
|
774
|
+
} & {
|
775
|
+
queryKey: (string | undefined)[] & {
|
776
|
+
[dataTagSymbol]: any;
|
777
|
+
[dataTagErrorSymbol]: Error;
|
778
|
+
};
|
779
|
+
};
|
780
|
+
|
781
|
+
declare function getAccountVideosQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ThreeSpeakVideo[], Error, ThreeSpeakVideo[], (string | undefined)[]>, "queryFn"> & {
|
782
|
+
queryFn?: _tanstack_react_query.QueryFunction<ThreeSpeakVideo[], (string | undefined)[], never> | undefined;
|
783
|
+
} & {
|
784
|
+
queryKey: (string | undefined)[] & {
|
785
|
+
[dataTagSymbol]: ThreeSpeakVideo[];
|
786
|
+
[dataTagErrorSymbol]: Error;
|
787
|
+
};
|
788
|
+
};
|
789
|
+
|
790
|
+
declare const queries$1_getAccountTokenQueryOptions: typeof getAccountTokenQueryOptions;
|
791
|
+
declare const queries$1_getAccountVideosQueryOptions: typeof getAccountVideosQueryOptions;
|
792
|
+
declare namespace queries$1 {
|
793
|
+
export { queries$1_getAccountTokenQueryOptions as getAccountTokenQueryOptions, queries$1_getAccountVideosQueryOptions as getAccountVideosQueryOptions };
|
794
|
+
}
|
795
|
+
|
796
|
+
declare const ThreeSpeakIntegration: {
|
797
|
+
queries: typeof queries$1;
|
798
|
+
};
|
799
|
+
|
800
|
+
declare function getDecodeMemoQueryOptions(username: string, memo: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, string[]>, "queryFn"> & {
|
801
|
+
queryFn?: _tanstack_react_query.QueryFunction<any, string[], never> | undefined;
|
802
|
+
} & {
|
803
|
+
queryKey: string[] & {
|
804
|
+
[dataTagSymbol]: any;
|
805
|
+
[dataTagErrorSymbol]: Error;
|
806
|
+
};
|
807
|
+
};
|
808
|
+
|
809
|
+
declare const queries_getDecodeMemoQueryOptions: typeof getDecodeMemoQueryOptions;
|
810
|
+
declare namespace queries {
|
811
|
+
export { queries_getDecodeMemoQueryOptions as getDecodeMemoQueryOptions };
|
812
|
+
}
|
813
|
+
|
814
|
+
declare const HiveSignerIntegration: {
|
815
|
+
queries: typeof queries;
|
816
|
+
};
|
817
|
+
|
818
|
+
declare function getHivePoshLinksQueryOptions(username: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
819
|
+
twitter: {
|
820
|
+
username: any;
|
821
|
+
profile: any;
|
822
|
+
};
|
823
|
+
reddit: {
|
824
|
+
username: any;
|
825
|
+
profile: any;
|
826
|
+
};
|
827
|
+
}, Error, {
|
828
|
+
twitter: {
|
829
|
+
username: any;
|
830
|
+
profile: any;
|
831
|
+
};
|
832
|
+
reddit: {
|
833
|
+
username: any;
|
834
|
+
profile: any;
|
835
|
+
};
|
836
|
+
}, (string | undefined)[]>, "queryFn"> & {
|
837
|
+
queryFn?: _tanstack_react_query.QueryFunction<{
|
838
|
+
twitter: {
|
839
|
+
username: any;
|
840
|
+
profile: any;
|
841
|
+
};
|
842
|
+
reddit: {
|
843
|
+
username: any;
|
844
|
+
profile: any;
|
845
|
+
};
|
846
|
+
}, (string | undefined)[], never> | undefined;
|
847
|
+
} & {
|
848
|
+
queryKey: (string | undefined)[] & {
|
849
|
+
[dataTagSymbol]: {
|
850
|
+
twitter: {
|
851
|
+
username: any;
|
852
|
+
profile: any;
|
853
|
+
};
|
854
|
+
reddit: {
|
855
|
+
username: any;
|
856
|
+
profile: any;
|
857
|
+
};
|
858
|
+
};
|
859
|
+
[dataTagErrorSymbol]: Error;
|
860
|
+
};
|
861
|
+
};
|
862
|
+
|
863
|
+
interface StatsResponse {
|
864
|
+
results: [
|
865
|
+
{
|
866
|
+
metrics: number[];
|
867
|
+
dimensions: string[];
|
868
|
+
}
|
869
|
+
];
|
870
|
+
query: {
|
871
|
+
site_id: string;
|
872
|
+
metrics: string[];
|
873
|
+
date_range: string[];
|
874
|
+
filters: string[];
|
875
|
+
};
|
876
|
+
}
|
877
|
+
interface UseStatsQueryOptions {
|
878
|
+
url: string;
|
879
|
+
dimensions?: string[];
|
880
|
+
metrics?: string[];
|
881
|
+
enabled?: boolean;
|
882
|
+
}
|
883
|
+
declare function getStatsQueryOptions({ url, dimensions, metrics, enabled, }: UseStatsQueryOptions): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<StatsResponse, Error, StatsResponse, (string | string[])[]>, "queryFn"> & {
|
884
|
+
queryFn?: _tanstack_react_query.QueryFunction<StatsResponse, (string | string[])[], never> | undefined;
|
885
|
+
} & {
|
886
|
+
queryKey: (string | string[])[] & {
|
887
|
+
[dataTagSymbol]: StatsResponse;
|
888
|
+
[dataTagErrorSymbol]: Error;
|
889
|
+
};
|
890
|
+
};
|
891
|
+
|
892
|
+
declare function getRcStatsQueryOptions(): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<any, Error, any, string[]>, "queryFn"> & {
|
893
|
+
queryFn?: _tanstack_react_query.QueryFunction<any, string[], never> | undefined;
|
894
|
+
} & {
|
895
|
+
queryKey: string[] & {
|
896
|
+
[dataTagSymbol]: any;
|
897
|
+
[dataTagErrorSymbol]: Error;
|
898
|
+
};
|
899
|
+
};
|
900
|
+
|
901
|
+
declare function getAccountRcQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<_hiveio_dhive_lib_chain_rc.RCAccount[], Error, _hiveio_dhive_lib_chain_rc.RCAccount[], string[]>, "queryFn"> & {
|
902
|
+
queryFn?: _tanstack_react_query.QueryFunction<_hiveio_dhive_lib_chain_rc.RCAccount[], string[], never> | undefined;
|
903
|
+
} & {
|
904
|
+
queryKey: string[] & {
|
905
|
+
[dataTagSymbol]: _hiveio_dhive_lib_chain_rc.RCAccount[];
|
906
|
+
[dataTagErrorSymbol]: Error;
|
907
|
+
};
|
908
|
+
};
|
909
|
+
|
910
|
+
interface RcStats {
|
911
|
+
block: number;
|
912
|
+
budget: number[];
|
913
|
+
comment: number;
|
914
|
+
ops: Ops;
|
915
|
+
payers: Payer[];
|
916
|
+
pool: number[];
|
917
|
+
regen: number;
|
918
|
+
share: number[];
|
919
|
+
stamp: string;
|
920
|
+
transfer: number;
|
921
|
+
vote: number;
|
922
|
+
}
|
923
|
+
interface Ops {
|
924
|
+
account_create_operation: OperationCost;
|
925
|
+
account_update2_operation: OperationCost;
|
926
|
+
account_update_operation: OperationCost;
|
927
|
+
account_witness_proxy_operation: OperationCost;
|
928
|
+
account_witness_vote_operation: OperationCost;
|
929
|
+
cancel_transfer_from_savings_operation: OperationCost;
|
930
|
+
change_recovery_account_operation: OperationCost;
|
931
|
+
claim_account_operation: OperationCost;
|
932
|
+
claim_reward_balance_operation: OperationCost;
|
933
|
+
collateralized_convert_operation: OperationCost;
|
934
|
+
comment_operation: OperationCost;
|
935
|
+
comment_options_operation: OperationCost;
|
936
|
+
convert_operation: OperationCost;
|
937
|
+
create_claimed_account_operation: OperationCost;
|
938
|
+
custom_json_operation: OperationCost;
|
939
|
+
delegate_vesting_shares_operation: OperationCost;
|
940
|
+
delete_comment_operation: OperationCost;
|
941
|
+
feed_publish_operation: OperationCost;
|
942
|
+
limit_order_cancel_operation: OperationCost;
|
943
|
+
limit_order_create_operation: OperationCost;
|
944
|
+
multiop: OperationCost;
|
945
|
+
recover_account_operation: OperationCost;
|
946
|
+
recurrent_transfer_operation: OperationCost;
|
947
|
+
request_account_recovery_operation: OperationCost;
|
948
|
+
set_withdraw_vesting_route_operation: OperationCost;
|
949
|
+
transfer_from_savings_operation: OperationCost;
|
950
|
+
transfer_operation: OperationCost;
|
951
|
+
transfer_to_savings_operation: OperationCost;
|
952
|
+
transfer_to_vesting_operation: OperationCost;
|
953
|
+
update_proposal_votes_operation: OperationCost;
|
954
|
+
vote_operation: OperationCost;
|
955
|
+
withdraw_vesting_operation: OperationCost;
|
956
|
+
witness_set_properties_operation: OperationCost;
|
957
|
+
witness_update_operation: OperationCost;
|
958
|
+
}
|
959
|
+
interface OperationCost {
|
960
|
+
avg_cost: number;
|
961
|
+
count: number;
|
962
|
+
}
|
963
|
+
interface Payer {
|
964
|
+
cant_afford?: CantAfford;
|
965
|
+
count: number;
|
966
|
+
lt10?: number;
|
967
|
+
lt20?: number;
|
968
|
+
lt5?: number;
|
969
|
+
rank: number;
|
970
|
+
}
|
971
|
+
interface CantAfford {
|
972
|
+
comment: number;
|
973
|
+
transfer: number;
|
974
|
+
vote: number;
|
975
|
+
}
|
976
|
+
|
977
|
+
interface GetGameStatus {
|
978
|
+
key: string;
|
979
|
+
remaining: number;
|
980
|
+
status: number;
|
981
|
+
next_date: string;
|
982
|
+
wait_secs: number;
|
983
|
+
}
|
984
|
+
|
985
|
+
interface GameClaim {
|
986
|
+
score: number;
|
987
|
+
}
|
988
|
+
|
989
|
+
declare function getGameStatusCheckQueryOptions(username: string | undefined, gameType: "spin"): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<GetGameStatus, Error, GetGameStatus, (string | undefined)[]>, "queryFn"> & {
|
990
|
+
queryFn?: _tanstack_react_query.QueryFunction<GetGameStatus, (string | undefined)[], never> | undefined;
|
991
|
+
} & {
|
992
|
+
queryKey: (string | undefined)[] & {
|
993
|
+
[dataTagSymbol]: GetGameStatus;
|
994
|
+
[dataTagErrorSymbol]: Error;
|
995
|
+
};
|
996
|
+
};
|
997
|
+
|
998
|
+
declare function useGameClaim(username: string | undefined, gameType: "spin", key: string): _tanstack_react_query.UseMutationResult<GameClaim, Error, void, unknown>;
|
999
|
+
|
1000
|
+
declare enum ROLES {
|
1001
|
+
OWNER = "owner",
|
1002
|
+
ADMIN = "admin",
|
1003
|
+
MOD = "mod",
|
1004
|
+
MEMBER = "member",
|
1005
|
+
GUEST = "guest",
|
1006
|
+
MUTED = "muted"
|
1007
|
+
}
|
1008
|
+
declare const roleMap: Record<string, string[]>;
|
1009
|
+
type CommunityTeam = Array<Array<string>>;
|
1010
|
+
type CommunityRole = (typeof ROLES)[keyof typeof ROLES];
|
1011
|
+
type CommunityType = "Topic" | "Journal" | "Council";
|
1012
|
+
interface Community {
|
1013
|
+
about: string;
|
1014
|
+
admins?: string[];
|
1015
|
+
avatar_url: string;
|
1016
|
+
created_at: string;
|
1017
|
+
description: string;
|
1018
|
+
flag_text: string;
|
1019
|
+
id: number;
|
1020
|
+
is_nsfw: boolean;
|
1021
|
+
lang: string;
|
1022
|
+
name: string;
|
1023
|
+
num_authors: number;
|
1024
|
+
num_pending: number;
|
1025
|
+
subscribers: number;
|
1026
|
+
sum_pending: number;
|
1027
|
+
settings?: any;
|
1028
|
+
team: CommunityTeam;
|
1029
|
+
title: string;
|
1030
|
+
type_id: number;
|
1031
|
+
}
|
1032
|
+
type Communities = Community[];
|
1033
|
+
|
1034
|
+
declare function getCommunitiesQueryOptions(sort: string, query?: string, limit?: number, observer?: string | undefined, enabled?: boolean): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<Communities, Error, Communities, (string | number | undefined)[]>, "queryFn"> & {
|
1035
|
+
queryFn?: _tanstack_react_query.QueryFunction<Communities, (string | number | undefined)[], never> | undefined;
|
1036
|
+
} & {
|
1037
|
+
queryKey: (string | number | undefined)[] & {
|
1038
|
+
[dataTagSymbol]: Communities;
|
1039
|
+
[dataTagErrorSymbol]: Error;
|
1040
|
+
};
|
1041
|
+
};
|
1042
|
+
|
1043
|
+
declare function getCommunityContextQueryOptions(username: string | undefined, communityName: string | undefined): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<{
|
1044
|
+
role: any;
|
1045
|
+
subscribed: any;
|
1046
|
+
}, Error, {
|
1047
|
+
role: any;
|
1048
|
+
subscribed: any;
|
1049
|
+
}, (string | undefined)[]>, "queryFn"> & {
|
1050
|
+
queryFn?: _tanstack_react_query.QueryFunction<{
|
1051
|
+
role: any;
|
1052
|
+
subscribed: any;
|
1053
|
+
}, (string | undefined)[], never> | undefined;
|
1054
|
+
} & {
|
1055
|
+
queryKey: (string | undefined)[] & {
|
1056
|
+
[dataTagSymbol]: {
|
1057
|
+
role: any;
|
1058
|
+
subscribed: any;
|
1059
|
+
};
|
1060
|
+
[dataTagErrorSymbol]: Error;
|
1061
|
+
};
|
1062
|
+
};
|
1063
|
+
|
1064
|
+
declare function getCommunityType(name: string, type_id: number): CommunityType;
|
1065
|
+
declare function getCommunityPermissions({ communityType, userRole, subscribed, }: {
|
1066
|
+
communityType: CommunityType;
|
1067
|
+
userRole: CommunityRole;
|
1068
|
+
subscribed: boolean;
|
1069
|
+
}): {
|
1070
|
+
canPost: boolean;
|
1071
|
+
canComment: boolean;
|
1072
|
+
isModerator: boolean;
|
1073
|
+
};
|
1074
|
+
|
1075
|
+
export { type AccountBookmark, type AccountFavorite, type AccountFollowStats, type AccountProfile, type AccountRelationship, type AccountReputation, CONFIG, type CantAfford, type Communities, type Community, type CommunityRole, type CommunityTeam, type CommunityType, ConfigManager, type DynamicProps, index as EcencyAnalytics, EcencyQueriesManager, type Fragment, type FullAccount, type GameClaim, type GetGameStatus, type GetRecoveriesEmailResponse, HiveSignerIntegration, keychain as Keychain, type Keys, type Payer, ROLES, type RcStats, type Recoveries, type StatsResponse, type StoringUser, ThreeSpeakIntegration, type ThreeSpeakVideo, type TrendingTag, broadcastJson, checkUsernameWalletsPendingQueryOptions, dedupeAndSortKeyAuths, getAccessToken, getAccountFullQueryOptions, getAccountPendingRecoveryQueryOptions, getAccountRcQueryOptions, getAccountRecoveriesQueryOptions, getAccountSubscriptionsQueryOptions, getActiveAccountBookmarksQueryOptions, getActiveAccountFavouritesQueryOptions, getChainPropertiesQueryOptions, getCommunitiesQueryOptions, getCommunityContextQueryOptions, getCommunityPermissions, getCommunityType, getDynamicPropsQueryOptions, getFragmentsQueryOptions, getGameStatusCheckQueryOptions, getHivePoshLinksQueryOptions, getLoginType, getPostingKey, getPromotedPostsQuery, getQueryClient, getRcStatsQueryOptions, getRefreshToken, getRelationshipBetweenAccountsQueryOptions, getSearchAccountsByUsernameQueryOptions, getStatsQueryOptions, getTrendingTagsQueryOptions, getUser, makeQueryClient, roleMap, useAccountFavouriteAdd, useAccountFavouriteDelete, useAccountRelationsUpdate, useAccountRevokeKey, useAccountRevokePosting, useAccountUpdate, useAccountUpdateKeyAuths, useAccountUpdatePassword, useAccountUpdateRecovery, useAddFragment, useBookmarkAdd, useBookmarkDelete, useBroadcastMutation, useEditFragment, useGameClaim, useRemoveFragment, useSignOperationByHivesigner, useSignOperationByKey, useSignOperationByKeychain };
|