@ecency/sdk 2.0.4 → 2.0.6
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/browser/index.d.ts
CHANGED
|
@@ -130,9 +130,12 @@ interface PlatformAdapter {
|
|
|
130
130
|
* Get the login method used for this user.
|
|
131
131
|
*
|
|
132
132
|
* @param username - The username to check
|
|
133
|
+
* @param authority - The authority level needed for the operation ('posting' | 'active' | 'owner' | 'memo').
|
|
134
|
+
* Adapters can use this to return a different method depending on what key the operation requires.
|
|
135
|
+
* For example, an active-key user might return 'key' for active ops but 'hivesigner' for posting ops.
|
|
133
136
|
* @returns Login type ('key', 'hivesigner', 'keychain', 'hiveauth') or null
|
|
134
137
|
*/
|
|
135
|
-
getLoginType: (username: string) => Promise<string | null | undefined>;
|
|
138
|
+
getLoginType: (username: string, authority?: string) => Promise<string | null | undefined>;
|
|
136
139
|
/**
|
|
137
140
|
* Check if user has granted ecency.app posting authority.
|
|
138
141
|
*
|
|
@@ -5453,7 +5456,7 @@ declare function getAnnouncementsQueryOptions(): _tanstack_react_query.OmitKeyof
|
|
|
5453
5456
|
declare function useMarkNotificationsRead(username: string | undefined, code: string | undefined, onSuccess?: (unreadCount?: number) => void, onError?: (e: Error) => void): _tanstack_react_query.UseMutationResult<Record<string, unknown>, Error, {
|
|
5454
5457
|
id?: string;
|
|
5455
5458
|
}, {
|
|
5456
|
-
|
|
5459
|
+
previousData: [readonly unknown[], unknown][];
|
|
5457
5460
|
}>;
|
|
5458
5461
|
|
|
5459
5462
|
interface SetLastReadPayload {
|