Skip to content

Commit 40a7e15

Browse files
committed
PLUS-2753: add unlock content api to WalletV1
1 parent dcf477f commit 40a7e15

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/ps-web-apis.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,19 @@ export interface WaitingRoomV1 {
278278
waitForCapacity: WaitForCapacity;
279279
}
280280

281+
282+
export interface UnlockedContent {
283+
type: 'article';
284+
id: string;
285+
}
286+
287+
export interface UnlockedContentResult {
288+
content: UnlockedContent[];
289+
}
290+
281291
export interface WalletV1 {
282292
getUserCreditBalance: GetUserCreditBalance;
293+
getUserUnlockedContent: () => Promise<UnlockedContentResult>;
283294
}
284295

285296
export type ILayer = "privacy" | "reject";

0 commit comments

Comments
 (0)