import type { BlipClient } from '../client.ts' import type { Plan } from '../types/billing.ts' import { uri } from '../utils/uri.ts' import { Namespace, type SendCommandOptions } from './namespace.ts' export class BillingNamespace extends Namespace { constructor(blipClient: BlipClient, defaultOptions?: SendCommandOptions) { super(blipClient, 'billing', { ...defaultOptions, domain: 'blip.ai' }) } public async getPlan(tenantId: string): Promise { return await this.sendCommand({ method: 'get', uri: uri`/tenants/${tenantId}/subscription/plan`, }) } }