import { Core } from "./Core.js"; import { ApiPaths, components } from "./lib/apiSchema.js"; export type UserSubscription = components["schemas"]["UserSubscriptionModel"]; export type Self = components["schemas"]["UserSelfV3Response"]; export class User extends Core { /** * Fetch subscriptions for the logged in user. */ subscriptions = (): Promise => this.got(this.baseUrl + ApiPaths.listUserSubscriptionsV3).json(); /** * Fetch information about the logged in user. */ self = (): Promise => this.got(this.baseUrl + ApiPaths.getSelf).json(); }