Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions pkg/fusionauth/Client.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,16 +581,16 @@ func (c *FusionAuthClient) CommentOnUserWithContext(ctx context.Context, request
// CompleteVerifyIdentity
// Completes verification of an identity using verification codes from the Verify Start API.
//
// VerifySendCompleteRequest request The identity verify complete request that contains all the information used to verify the identity.
func (c *FusionAuthClient) CompleteVerifyIdentity(request VerifySendCompleteRequest) (*BaseHTTPResponse, *Errors, error) {
// VerifyCompleteRequest request The identity verify complete request that contains all the information used to verify the identity.
func (c *FusionAuthClient) CompleteVerifyIdentity(request VerifyCompleteRequest) (*BaseHTTPResponse, *Errors, error) {
return c.CompleteVerifyIdentityWithContext(context.TODO(), request)
}

// CompleteVerifyIdentityWithContext
// Completes verification of an identity using verification codes from the Verify Start API.
//
// VerifySendCompleteRequest request The identity verify complete request that contains all the information used to verify the identity.
func (c *FusionAuthClient) CompleteVerifyIdentityWithContext(ctx context.Context, request VerifySendCompleteRequest) (*BaseHTTPResponse, *Errors, error) {
// VerifyCompleteRequest request The identity verify complete request that contains all the information used to verify the identity.
func (c *FusionAuthClient) CompleteVerifyIdentityWithContext(ctx context.Context, request VerifyCompleteRequest) (*BaseHTTPResponse, *Errors, error) {
var resp BaseHTTPResponse
var errors Errors

Expand Down Expand Up @@ -8555,16 +8555,16 @@ func (c *FusionAuthClient) SendTwoFactorCodeForLoginUsingMethodWithContext(ctx c
// SendVerifyIdentity
// Send a verification code using the appropriate transport for the identity type being verified.
//
// VerifySendCompleteRequest request The identity verify send request that contains all the information used send the code.
func (c *FusionAuthClient) SendVerifyIdentity(request VerifySendCompleteRequest) (*BaseHTTPResponse, *Errors, error) {
// VerifySendRequest request The identity verify send request that contains all the information used send the code.
func (c *FusionAuthClient) SendVerifyIdentity(request VerifySendRequest) (*BaseHTTPResponse, *Errors, error) {
return c.SendVerifyIdentityWithContext(context.TODO(), request)
}

// SendVerifyIdentityWithContext
// Send a verification code using the appropriate transport for the identity type being verified.
//
// VerifySendCompleteRequest request The identity verify send request that contains all the information used send the code.
func (c *FusionAuthClient) SendVerifyIdentityWithContext(ctx context.Context, request VerifySendCompleteRequest) (*BaseHTTPResponse, *Errors, error) {
// VerifySendRequest request The identity verify send request that contains all the information used send the code.
func (c *FusionAuthClient) SendVerifyIdentityWithContext(ctx context.Context, request VerifySendRequest) (*BaseHTTPResponse, *Errors, error) {
var resp BaseHTTPResponse
var errors Errors

Expand Down
29 changes: 20 additions & 9 deletions pkg/fusionauth/Domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@ type UserRegistrationDeleteEvent struct {
Registration UserRegistration `json:"registration,omitempty"`
}

/**
* Verify Send API request object.
*/
type VerifySendRequest struct {
OneTimeCode string `json:"oneTimeCode,omitempty"`
VerificationId string `json:"verificationId,omitempty"`
}

/**
* @author Daniel DeGroff
*/
Expand Down Expand Up @@ -997,6 +1005,15 @@ type FormField struct {
Validator FormFieldValidator `json:"validator,omitempty"`
}

/**
* Verify Complete API request object.
*/
type VerifyCompleteRequest struct {
BaseEventRequest
OneTimeCode string `json:"oneTimeCode,omitempty"`
VerificationId string `json:"verificationId,omitempty"`
}

/**
* @author Brian Pontarelli
*/
Expand Down Expand Up @@ -3788,15 +3805,6 @@ type GroupMemberRemoveCompleteEvent struct {
Members []GroupMember `json:"members,omitempty"`
}

/**
* @author Brady Wied
*/
type VerifySendCompleteRequest struct {
BaseEventRequest
OneTimeCode string `json:"oneTimeCode,omitempty"`
VerificationId string `json:"verificationId,omitempty"`
}

type EventLogConfiguration struct {
NumberToRetain int `json:"numberToRetain,omitempty"`
}
Expand Down Expand Up @@ -5825,6 +5833,7 @@ type TenantRateLimitConfiguration struct {
ForgotPassword RateLimitedRequestConfiguration `json:"forgotPassword,omitempty"`
SendEmailVerification RateLimitedRequestConfiguration `json:"sendEmailVerification,omitempty"`
SendPasswordless RateLimitedRequestConfiguration `json:"sendPasswordless,omitempty"`
SendPhoneVerification RateLimitedRequestConfiguration `json:"sendPhoneVerification,omitempty"`
SendRegistrationVerification RateLimitedRequestConfiguration `json:"sendRegistrationVerification,omitempty"`
SendTwoFactor RateLimitedRequestConfiguration `json:"sendTwoFactor,omitempty"`
}
Expand Down Expand Up @@ -7017,6 +7026,7 @@ type Templates struct {
PasswordComplete string `json:"passwordComplete,omitempty"`
PasswordForgot string `json:"passwordForgot,omitempty"`
PasswordSent string `json:"passwordSent,omitempty"`
PhoneVerificationRequired string `json:"phoneVerificationRequired,omitempty"`
RegistrationComplete string `json:"registrationComplete,omitempty"`
RegistrationSend string `json:"registrationSend,omitempty"`
RegistrationSent string `json:"registrationSent,omitempty"`
Expand Down Expand Up @@ -7458,6 +7468,7 @@ const (
RateLimitedRequestType_SendPasswordless RateLimitedRequestType = "SendPasswordless"
RateLimitedRequestType_SendRegistrationVerification RateLimitedRequestType = "SendRegistrationVerification"
RateLimitedRequestType_SendTwoFactor RateLimitedRequestType = "SendTwoFactor"
RateLimitedRequestType_SendPhoneVerification RateLimitedRequestType = "SendPhoneVerification"
)

/**
Expand Down