From 40a7e153a7f784959ae7abdc16a73d639bac613d Mon Sep 17 00:00:00 2001 From: andrespringt Date: Wed, 23 Apr 2025 15:45:37 +0200 Subject: [PATCH] PLUS-2753: add unlock content api to WalletV1 --- src/ps-web-apis.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ps-web-apis.ts b/src/ps-web-apis.ts index f521a20..0732f05 100644 --- a/src/ps-web-apis.ts +++ b/src/ps-web-apis.ts @@ -278,8 +278,19 @@ export interface WaitingRoomV1 { waitForCapacity: WaitForCapacity; } + +export interface UnlockedContent { + type: 'article'; + id: string; +} + +export interface UnlockedContentResult { + content: UnlockedContent[]; +} + export interface WalletV1 { getUserCreditBalance: GetUserCreditBalance; + getUserUnlockedContent: () => Promise; } export type ILayer = "privacy" | "reject";