CustomerUsageSchema
const CustomerUsageSchema: ZodObject<{
rateLimits: ZodArray<ZodObject<{
allowanceMetric: ZodEnum<typeof RateLimitRuleAllowanceMetric>;
allowanceValue: ZodNumber;
id: ZodString;
rateLimitFrequency: ZodEnum<typeof RateLimitFrequency>;
scopeKind: ZodEnum<typeof RateLimitRuleScopeKind>;
scopeValue: ZodString;
}, $strip>>;
usageLimits: ZodArray<ZodObject<{
allowanceMetric: ZodEnum<typeof RateLimitRuleAllowanceMetric>;
allowanceValue: ZodNumber;
id: ZodString;
rawAmount: ZodNumber;
remaining: ZodNumber;
scopeKind: ZodEnum<typeof RateLimitRuleScopeKind>;
scopeValue: ZodString;
usedPercentage: ZodNumber;
}, $strip>>;
}, $strip>;What a customer has used of each allowance, and the rate limits that apply to it.
Last updated on