Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

WorkspaceKeyDetail

Generated from the checked-in source. Do not edit this reference by hand.

SDK source. All SDK types.

TypeScript
export type WorkspaceKeyDetail = WorkspaceKey & {
spending_limits: KeySpendingAccount[];
request_rate_limit: KeyRequestRateLimit;
/** Budget snapshot fields are absent if the key disappears during enrichment. */
token_rate_limit: Pick<KeyTokenRateLimit, 'tokens_per_minute' | 'revision'> & Partial<Omit<KeyTokenRateLimit, 'tokens_per_minute' | 'revision'>>;
concurrency_limit: KeyConcurrencyLimit;
token_usage_window: KeyTokenUsageWindow | null;
ip_policy: KeyIpPolicy;
};