UNPKG

@mintlify/models

Version:

Mintlify models

36 lines (35 loc) 1.31 kB
import { UsageType } from '../types/index.js'; export type DeploymentQuotaType = { _id: string; orgId: string; deploymentId: string; subdomain: string; createdAt: Date; type: UsageType; billingPeriod: QuotaPeriod; overagePolicy: OveragePolicy; overageLimit: number; quotaAlerts?: QuotaAlert[]; }; export type QuotaPeriod = { interval: QuotaInterval; start: Date; end: Date; }; export declare const QUOTA_INTERVAL_MONTHLY = "monthly"; export declare const QUOTA_INTERVAL_YEARLY = "yearly"; export declare const QuotaIntervals: readonly ["monthly", "yearly"]; export type QuotaInterval = (typeof QuotaIntervals)[number]; export declare const OVERAGES_BLOCKED = "blocked"; export declare const OVERAGES_ALLOWED = "allowed"; export declare const OveragePolicies: readonly ["blocked", "allowed"]; export type OveragePolicy = (typeof OveragePolicies)[number]; export type QuotaAlert = { spendPercentage: number; firedStatus: QuotaAlertFiredStatus; userIds: string[]; }; export declare const QUOTA_ALERT_FIRED_STATUS_FIRED = "fired"; export declare const QUOTA_ALERT_FIRED_STATUS_NOT_FIRED = "unfired"; export declare const QuotaAlertFiredStatus: readonly ["fired", "unfired"]; export type QuotaAlertFiredStatus = (typeof QuotaAlertFiredStatus)[number];