import Foundationpublic struct CopilotUsageResponse: Sendable, Decodable { public struct QuotaSnapshot: Sendable, Decodable { public let entitlement: Double public let remaining: Double public let percentRemaining: Double public let quotaId: String private enum CodingKeys: String, CodingKey { case entitlement case remaining case percentRemaining = "percent_remaining" case quotaId = "quota_id" } } public struct QuotaSnapshots: Sendable, Decodable { public let premiumInteractions: QuotaSnapshot? public let chat: QuotaSnapshot? private enum CodingKeys: String, CodingKey { case premiumInteractions = "premium_interactions" case chat } } public let quotaSnapshots: QuotaSnapshots public let copilotPlan: String public let assignedDate: String public let quotaResetDate: String private enum CodingKeys: String, CodingKey { case quotaSnapshots = "quota_snapshots" case copilotPlan = "copilot_plan" case assignedDate = "assigned_date" case quotaResetDate = "quota_reset_date" }}
import Foundation
public struct CopilotUsageResponse: Sendable, Decodable {
public struct QuotaSnapshot: Sendable, Decodable {
public let entitlement: Double
public let remaining: Double
public let percentRemaining: Double
public let quotaId: String
private enum CodingKeys: String, CodingKey {
case entitlement
case remaining
case percentRemaining = "percent_remaining"
case quotaId = "quota_id"
}
}
public struct QuotaSnapshots: Sendable, Decodable {
public let premiumInteractions: QuotaSnapshot?
public let chat: QuotaSnapshot?
private enum CodingKeys: String, CodingKey {
case premiumInteractions = "premium_interactions"
case chat
}
}
public let quotaSnapshots: QuotaSnapshots
public let copilotPlan: String
public let assignedDate: String
public let quotaResetDate: String
private enum CodingKeys: String, CodingKey {
case quotaSnapshots = "quota_snapshots"
case copilotPlan = "copilot_plan"
case assignedDate = "assigned_date"
case quotaResetDate = "quota_reset_date"
}
}