import type { GitXRateLimitProvider } from '../schemas/GitXRateLimitProvider'; import type { GitXRateLimitSeries } from '../schemas/GitXRateLimitSeries'; import type { GitXRateLimitWindow } from '../schemas/GitXRateLimitWindow'; /** * Rate-limit consumption timeline for one connector across the requested window. */ export interface GitXRateLimitTimeSeriesResponseDto { /** * Connector identifier the timeline is scoped to. */ connector_id?: string; /** * Epoch millis at the end of the returned window (exclusive). end_ms - start_ms is always a multiple of resolution_seconds * 1000. * @format int64 */ end_ms?: number; provider?: GitXRateLimitProvider; /** * Interval width the server picked so that total points per bucket is at most 1000. * @format int64 */ resolution_seconds?: number; series?: GitXRateLimitSeries[]; /** * Epoch millis at the start of the returned window (inclusive). Rounded down to a resolution_seconds boundary so identical requests within the same slot return byte-identical responses. Equals the timestamp_ms of the first point in each series. * @format int64 */ start_ms?: number; window?: GitXRateLimitWindow; }