We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8650b41 commit 3b2c7acCopy full SHA for 3b2c7ac
src/ps-web-apis.ts
@@ -288,9 +288,24 @@ export interface UnlockedContentResult {
288
content: UnlockedContent[];
289
}
290
291
+export type UnlockNotificationResult =
292
+ | {
293
+ status: 'ok';
294
+ result: {
295
+ contentId: string;
296
+ usedCredits: number;
297
+ remainingCredits: number;
298
+ };
299
+ }
300
301
+ status: 'error';
302
+ result: null;
303
304
+
305
export interface WalletV1 {
306
getUserCreditBalance: GetUserCreditBalance;
307
getUserUnlockedContent: () => Promise<UnlockedContentResult>;
308
+ reloadWithUnlockResultNotification: (unlockResult: UnlockNotificationResult) => void;
309
310
311
export type ILayer = "privacy" | "reject";
0 commit comments