From 53ec4fa1b5b7bdac7c4e0a3c6c10a19f67f1497d Mon Sep 17 00:00:00 2001 From: Matous Jobanek Date: Tue, 23 Jun 2026 10:46:53 +0200 Subject: [PATCH] account verifier verdict values --- api/v1alpha1/usersignup_types.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/api/v1alpha1/usersignup_types.go b/api/v1alpha1/usersignup_types.go index b98521cc..91f063dc 100644 --- a/api/v1alpha1/usersignup_types.go +++ b/api/v1alpha1/usersignup_types.go @@ -178,8 +178,33 @@ const ( // UserSignupStateRejected - If this state is set, the user was rejected // and their account will not be provisioned. UserSignupStateRejected = UserSignupState("rejected") + + // ############################################################################### + // Account Verifier accepted verdict values + // ############################################################################### + + // AccountVerifierResultRejected instructs that the UserSignup should be put into rejected state + AccountVerifierResultRejected AccountVerifierResult = "rejected" + + // AccountVerifierResultPhoneVerification instructs that the UserSignup should be put into verification-required state + AccountVerifierResultPhoneVerification AccountVerifierResult = "phone_verification" + + // AccountVerifierResultApproved instructs that the UserSignup can be approved + AccountVerifierResultApproved AccountVerifierResult = "approved" ) +type AccountVerifierResult string + +type AccountVerifierResponse struct { + Result AccountVerifierResult `json:"result"` + Reasons []AccountVerifierReason `json:"reasons"` + Error string `json:"error"` +} + +type AccountVerifierReason struct { + Check string `json:"check"` + Detail string `json:"detail"` +} type UserSignupState string // NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.