export type CredentialType = 'api_key' | 'webhook_secret' | 'client_secret'; export type CredentialStatus = 'active' | 'transitioning' | 'disabled'; export type CredentialRecommendedAction = 'ok' | 'rotate_soon' | 'rotate_recommended'; export type CredentialAuditAction = 'rotated' | 'accessed' | 'tested' | 'disabled' | 'enabled' | 'rollback'; export type CredentialInitiatedBy = 'partner' | 'internal' | 'system'; export interface CredentialStatusInfo { credential_type: CredentialType; status: CredentialStatus; created_at: string; last_rotated_at?: string; last_used_at?: string; age_days: number; recommended_action: CredentialRecommendedAction; grace_period_ends_at?: string; } export interface CredentialStatusResponse { api_key: CredentialStatusInfo; webhook_secret: CredentialStatusInfo; client_secret: CredentialStatusInfo; } export interface CredentialRotationRequest { confirmation_token: string; reason?: string; grace_period_hours?: number; } export interface CredentialRotationResponse { credential_type: CredentialType; new_credential: string; grace_period_ends_at?: string; rollback_token?: string; rollback_expires_at?: string; } export interface CredentialRollbackRequest { rollback_token: string; } export interface CredentialAuditEvent { id: string; partner_app_id: string; credential_type: CredentialType; action: CredentialAuditAction; initiated_by: CredentialInitiatedBy; user_agent?: string; ip_address?: string; reason?: string; metadata?: Record; created_at: string; } export interface CredentialAuditHistoryParams { limit?: number; offset?: number; credential_type?: CredentialType; action?: CredentialAuditAction; } export interface CredentialAuditHistoryResponse { events: CredentialAuditEvent[]; pagination: { limit: number; offset: number; count: number; }; } //# sourceMappingURL=credentials.d.ts.map