@xmcp-dev/polar
Version:
Polar integration for xmcp
20 lines • 949 B
TypeScript
import type { Configuration, ValidateLicenseKeyResponse, ValidateLicenseKeyResult, EventIngestResponse, Event } from "./types.js";
export { type Configuration, type ValidateLicenseKeyResult } from "./types.js";
export declare class PolarProvider {
private readonly config;
private static instance;
private readonly endpointUrl;
private customerData;
private static meterId;
private event;
private constructor();
static getInstance(config: Configuration): PolarProvider;
getMeterIdFromProduct(): Promise<string>;
private hasUsageLeft;
evaluate(licenseKey: string): Promise<ValidateLicenseKeyResponse>;
validate(object: ValidateLicenseKeyResponse): Promise<ValidateLicenseKeyResult>;
validateLicenseKey(licenseKey: string, event: Event): Promise<ValidateLicenseKeyResult>;
getCheckoutUrl(): Promise<string>;
ingestEvents(): Promise<EventIngestResponse>;
}
//# sourceMappingURL=index.d.ts.map