Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* authentication_service
* OpenAPI spec version: 0.1.0
*/
import type { AutoReloadSnapshot } from './autoReloadSnapshot';
import type { PlanTier } from './planTier';
import type { UsageSnapshotBlockedReason } from './usageSnapshotBlockedReason';
import type { UsageSnapshotCreditPurchase } from './usageSnapshotCreditPurchase';
/**
* The payer's current-period position, as shown in Billing settings and used
by the gate.
*/
export interface UsageSnapshot {
/** Automatic credit reload settings. `active` means the payer opted in and
reloads are not suspended. */
auto_reload: AutoReloadSnapshot;
blocked_reason?: UsageSnapshotBlockedReason;
/** Whether the requesting user is the payer. */
can_manage_billing: boolean;
/** Shared prepaid credit balance, in customer cents. */
credit_balance_cents: number;
credit_purchase?: UsageSnapshotCreditPurchase;
/** Shared payer credits already applied to this period, in customer cents. */
credits_consumed_cents: number;
/** Whether prepaid credits belong to the team, including a team with one seat. */
credits_shared_with_team: boolean;
/** Included AI for this user's seat this period, in cents at provider cost. */
included_cents: number;
/** Shared overage charged so far this period, in customer cents. */
overage_charged_cents: number;
/** Legacy API name for the automatic reload opt-in. Never authorizes direct charges. */
overage_enabled: boolean;
/** Per-period overage cap, in customer cents. */
overage_limit_cents: number;
/** Whether overage is paused after a failed charge. */
overage_suspended: boolean;
/** The payer for this user's AI. */
payer: string;
/** Period end (exclusive). */
period_end: string;
/** Period start. */
period_start: string;
/** Cost cents of usage this seat may still consume: its remaining allowance
plus whatever shared credit and overage headroom pays for at the markup.
0 when blocked. */
remaining_cents: number;
/**
* Seats billed to the payer.
* @minimum 0
*/
seats: number;
/** The plan. */
tier: PlanTier;
/** Team-wide usage beyond per-seat allowances, at the overage markup, that
is not yet covered by shared credits or charges (awaiting settlement).
Customer cents. */
uncovered_cents: number;
/** Enterprise: never metered. */
unlimited: boolean;
/** AI used by this user this period, in cents at provider cost. */
used_cents: number;
}