caprover-api
Version:
API client for CapRover
40 lines (32 loc) • 741 B
text/typescript
export interface IProFeatures {
isFeatureFlagEnabled: boolean
isSubscribed: boolean
}
export interface TwoFactorAuthResponse {
isEnabled: boolean
otpPath?: string
}
export interface TwoFactorAuthRequest {
enabled: boolean
token?: string
}
export enum ProAlertActionType {
email = 'email',
webhook = 'webhook',
}
export interface ProAlertAction {
actionType: ProAlertActionType
metadata?: any
}
export enum ProAlertEvent {
UserLoggedIn = 'UserLoggedIn',
AppBuildSuccessful = 'AppBuildSuccessful',
AppBuildFailed = 'AppBuildFailed',
}
export interface ProAlertConfig {
event: ProAlertEvent
action: ProAlertAction
}
export interface IProConfig {
alerts: ProAlertConfig[]
}