package api import "atlas9.dev/c/core" const ( Path_Mfa_GetStatus = "POST /Mfa_GetStatus" Path_Mfa_StartEnrollment = "POST /Mfa_StartEnrollment" Path_Mfa_ConfirmEnrollment = "POST /Mfa_ConfirmEnrollment" Path_Mfa_Disable = "POST /Mfa_Disable" Path_Mfa_GetPolicy = "POST /Mfa_GetPolicy" Path_Mfa_SetPolicy = "POST /Mfa_SetPolicy" ) type Mfa_GetStatusReq struct{} type Mfa_GetStatusRes struct { // Enrolled is true once the user has a verified phone. Enrolled bool // Phone is the enrolled number (may be an unverified pending one). Phone string // Required is true when a tenant the user belongs to mandates MFA. Required bool } type Mfa_StartEnrollmentReq struct { Phone string } type Mfa_StartEnrollmentRes struct { // ChallengeID is the handle to pass to Mfa_ConfirmEnrollment along with the // texted code. ChallengeID string } type Mfa_ConfirmEnrollmentReq struct { ChallengeID string Code string } type Mfa_ConfirmEnrollmentRes struct{} type Mfa_DisableReq struct{} type Mfa_DisableRes struct{} type Mfa_GetPolicyReq struct { Tenant core.ID } type Mfa_GetPolicyRes struct { Required bool } type Mfa_SetPolicyReq struct { Tenant core.ID Required bool } type Mfa_SetPolicyRes struct{} func (r *Mfa_GetStatusReq) Prepare() error { return nil } func (r *Mfa_StartEnrollmentReq) Prepare() error { return nil } func (r *Mfa_ConfirmEnrollmentReq) Prepare() error { return nil } func (r *Mfa_DisableReq) Prepare() error { return nil } func (r *Mfa_GetPolicyReq) Prepare() error { return nil } func (r *Mfa_SetPolicyReq) Prepare() error { return nil }