api

package
v0.36.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version 2.3.0 DO NOT EDIT.

Package api provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version 2.3.0 DO NOT EDIT.

Index

Constants

View Source
const (
	BearerAuthScopes         = "BearerAuth.Scopes"
	BearerAuthElevatedScopes = "BearerAuthElevated.Scopes"
)
View Source
const FakeProvider = Provider("fake")

Variables

View Source
var OpenAPISchema []byte

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func RegisterHandlers

func RegisterHandlers(router gin.IRouter, si ServerInterface)

RegisterHandlers creates http.Handler with routing matching OpenAPI spec.

func RegisterHandlersWithOptions

func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions)

RegisterHandlersWithOptions creates http.Handler with additional options

Types

type CreatePATRequest added in v0.28.0

type CreatePATRequest struct {
	// ExpiresAt Expiration date of the PAT
	ExpiresAt time.Time               `json:"expiresAt"`
	Metadata  *map[string]interface{} `json:"metadata,omitempty"`
}

CreatePATRequest defines model for CreatePATRequest.

type CreatePATResponse added in v0.28.0

type CreatePATResponse struct {
	// Id ID of the PAT
	Id string `json:"id"`

	// PersonalAccessToken PAT
	PersonalAccessToken string `json:"personalAccessToken"`
}

CreatePATResponse defines model for CreatePATResponse.

type ErrorResponse

type ErrorResponse struct {
	// Error Error code that identifies the application error
	Error ErrorResponseError `json:"error"`

	// Message Human friendly error message
	Message string `json:"message"`

	// Status HTTP status error code
	Status int `json:"status"`
}

ErrorResponse defines model for ErrorResponse.

type ErrorResponseError

type ErrorResponseError string

ErrorResponseError Error code that identifies the application error

const (
	DefaultRoleMustBeInAllowedRoles ErrorResponseError = "default-role-must-be-in-allowed-roles"
	DisabledEndpoint                ErrorResponseError = "disabled-endpoint"
	DisabledUser                    ErrorResponseError = "disabled-user"
	EmailAlreadyInUse               ErrorResponseError = "email-already-in-use"
	EmailAlreadyVerified            ErrorResponseError = "email-already-verified"
	ForbiddenAnonymous              ErrorResponseError = "forbidden-anonymous"
	InternalServerError             ErrorResponseError = "internal-server-error"
	InvalidEmailPassword            ErrorResponseError = "invalid-email-password"
	InvalidPat                      ErrorResponseError = "invalid-pat"
	InvalidRefreshToken             ErrorResponseError = "invalid-refresh-token"
	InvalidRequest                  ErrorResponseError = "invalid-request"
	InvalidTicket                   ErrorResponseError = "invalid-ticket"
	LocaleNotAllowed                ErrorResponseError = "locale-not-allowed"
	PasswordInHibpDatabase          ErrorResponseError = "password-in-hibp-database"
	PasswordTooShort                ErrorResponseError = "password-too-short"
	RedirectToNotAllowed            ErrorResponseError = "redirectTo-not-allowed"
	RoleNotAllowed                  ErrorResponseError = "role-not-allowed"
	SignupDisabled                  ErrorResponseError = "signup-disabled"
	UnverifiedUser                  ErrorResponseError = "unverified-user"
	UserNotAnonymous                ErrorResponseError = "user-not-anonymous"
)

Defines values for ErrorResponseError.

type GetHealthz200JSONResponse added in v0.28.0

type GetHealthz200JSONResponse OKResponse

func (GetHealthz200JSONResponse) VisitGetHealthzResponse added in v0.28.0

func (response GetHealthz200JSONResponse) VisitGetHealthzResponse(w http.ResponseWriter) error

type GetHealthzRequestObject added in v0.28.0

type GetHealthzRequestObject struct {
}

type GetHealthzResponseObject added in v0.28.0

type GetHealthzResponseObject interface {
	VisitGetHealthzResponse(w http.ResponseWriter) error
}

type GetVerify302Response added in v0.35.0

type GetVerify302Response struct {
	Headers GetVerify302ResponseHeaders
}

func (GetVerify302Response) VisitGetVerifyResponse added in v0.35.0

func (response GetVerify302Response) VisitGetVerifyResponse(w http.ResponseWriter) error

type GetVerify302ResponseHeaders added in v0.35.0

type GetVerify302ResponseHeaders struct {
	Location string
}

type GetVerifyParams added in v0.35.0

type GetVerifyParams struct {
	// Ticket Ticket
	Ticket TicketQuery `form:"ticket" json:"ticket"`

	// Type Type of the ticket. Deprecated, no longer used
	Type *GetVerifyParamsType `form:"type,omitempty" json:"type,omitempty"`

	// RedirectTo Target URL for the redirect
	RedirectTo RedirectToQuery `form:"redirectTo" json:"redirectTo"`
}

GetVerifyParams defines parameters for GetVerify.

type GetVerifyParamsType added in v0.35.0

type GetVerifyParamsType string

GetVerifyParamsType defines parameters for GetVerify.

const (
	GetVerifyParamsTypeEmailConfirmChange GetVerifyParamsType = "emailConfirmChange"
	GetVerifyParamsTypeEmailVerify        GetVerifyParamsType = "emailVerify"
	GetVerifyParamsTypePasswordReset      GetVerifyParamsType = "passwordReset"
	GetVerifyParamsTypeSigninPasswordless GetVerifyParamsType = "signinPasswordless"
)

Defines values for GetVerifyParamsType.

type GetVerifyRequestObject added in v0.35.0

type GetVerifyRequestObject struct {
	Params GetVerifyParams
}

type GetVerifyResponseObject added in v0.35.0

type GetVerifyResponseObject interface {
	VisitGetVerifyResponse(w http.ResponseWriter) error
}

type GetVersion200JSONResponse added in v0.28.0

type GetVersion200JSONResponse struct {
	Version string `json:"version"`
}

func (GetVersion200JSONResponse) VisitGetVersionResponse added in v0.28.0

func (response GetVersion200JSONResponse) VisitGetVersionResponse(w http.ResponseWriter) error

type GetVersionRequestObject added in v0.28.0

type GetVersionRequestObject struct {
}

type GetVersionResponseObject added in v0.28.0

type GetVersionResponseObject interface {
	VisitGetVersionResponse(w http.ResponseWriter) error
}

type GetWellKnownJwksJson200JSONResponse added in v0.35.0

type GetWellKnownJwksJson200JSONResponse JWKSet

func (GetWellKnownJwksJson200JSONResponse) VisitGetWellKnownJwksJsonResponse added in v0.35.0

func (response GetWellKnownJwksJson200JSONResponse) VisitGetWellKnownJwksJsonResponse(w http.ResponseWriter) error

type GetWellKnownJwksJsonRequestObject added in v0.35.0

type GetWellKnownJwksJsonRequestObject struct {
}

type GetWellKnownJwksJsonResponseObject added in v0.35.0

type GetWellKnownJwksJsonResponseObject interface {
	VisitGetWellKnownJwksJsonResponse(w http.ResponseWriter) error
}

type GinServerOptions

type GinServerOptions struct {
	BaseURL      string
	Middlewares  []MiddlewareFunc
	ErrorHandler func(*gin.Context, error, int)
}

GinServerOptions provides options for the Gin server.

type HeadHealthz200Response added in v0.28.0

type HeadHealthz200Response struct {
}

func (HeadHealthz200Response) VisitHeadHealthzResponse added in v0.28.0

func (response HeadHealthz200Response) VisitHeadHealthzResponse(w http.ResponseWriter) error

type HeadHealthzRequestObject added in v0.28.0

type HeadHealthzRequestObject struct {
}

type HeadHealthzResponseObject added in v0.28.0

type HeadHealthzResponseObject interface {
	VisitHeadHealthzResponse(w http.ResponseWriter) error
}

type JWK added in v0.35.0

type JWK struct {
	Alg string `json:"alg"`
	E   string `json:"e"`
	Kid string `json:"kid"`
	Kty string `json:"kty"`
	N   string `json:"n"`
	Use string `json:"use"`
}

JWK defines model for JWK.

type JWKSet added in v0.35.0

type JWKSet struct {
	Keys []JWK `json:"keys"`
}

JWKSet defines model for JWKSet.

type LinkIdTokenRequest added in v0.35.0

type LinkIdTokenRequest struct {
	// IdToken Apple ID token
	IdToken string `json:"idToken"`

	// Nonce Nonce used during sign in process
	Nonce    *string  `json:"nonce,omitempty"`
	Provider Provider `json:"provider"`
}

LinkIdTokenRequest defines model for LinkIdTokenRequest.

type MFAChallengePayload added in v0.28.0

type MFAChallengePayload struct {
	Ticket string `json:"ticket"`
}

MFAChallengePayload defines model for MFAChallengePayload.

type MiddlewareFunc

type MiddlewareFunc func(c *gin.Context)

type OKResponse added in v0.28.0

type OKResponse string

OKResponse defines model for OKResponse.

const (
	OK OKResponse = "OK"
)

Defines values for OKResponse.

type OptionsRedirectTo added in v0.28.0

type OptionsRedirectTo struct {
	RedirectTo *string `json:"redirectTo,omitempty"`
}

OptionsRedirectTo defines model for OptionsRedirectTo.

type PostLinkIdtoken200JSONResponse added in v0.35.0

type PostLinkIdtoken200JSONResponse OKResponse

func (PostLinkIdtoken200JSONResponse) VisitPostLinkIdtokenResponse added in v0.35.0

func (response PostLinkIdtoken200JSONResponse) VisitPostLinkIdtokenResponse(w http.ResponseWriter) error

type PostLinkIdtokenJSONRequestBody added in v0.35.0

type PostLinkIdtokenJSONRequestBody = LinkIdTokenRequest

PostLinkIdtokenJSONRequestBody defines body for PostLinkIdtoken for application/json ContentType.

type PostLinkIdtokenRequestObject added in v0.35.0

type PostLinkIdtokenRequestObject struct {
	Body *PostLinkIdtokenJSONRequestBody
}

type PostLinkIdtokenResponseObject added in v0.35.0

type PostLinkIdtokenResponseObject interface {
	VisitPostLinkIdtokenResponse(w http.ResponseWriter) error
}

type PostPat200JSONResponse added in v0.28.0

type PostPat200JSONResponse CreatePATResponse

func (PostPat200JSONResponse) VisitPostPatResponse added in v0.28.0

func (response PostPat200JSONResponse) VisitPostPatResponse(w http.ResponseWriter) error

type PostPatJSONRequestBody added in v0.28.0

type PostPatJSONRequestBody = CreatePATRequest

PostPatJSONRequestBody defines body for PostPat for application/json ContentType.

type PostPatRequestObject added in v0.28.0

type PostPatRequestObject struct {
	Body *PostPatJSONRequestBody
}

type PostPatResponseObject added in v0.28.0

type PostPatResponseObject interface {
	VisitPostPatResponse(w http.ResponseWriter) error
}

type PostSigninEmailPassword200JSONResponse added in v0.28.0

type PostSigninEmailPassword200JSONResponse SignInEmailPasswordResponse

func (PostSigninEmailPassword200JSONResponse) VisitPostSigninEmailPasswordResponse added in v0.28.0

func (response PostSigninEmailPassword200JSONResponse) VisitPostSigninEmailPasswordResponse(w http.ResponseWriter) error

type PostSigninEmailPasswordJSONRequestBody added in v0.28.0

type PostSigninEmailPasswordJSONRequestBody = SignInEmailPasswordRequest

PostSigninEmailPasswordJSONRequestBody defines body for PostSigninEmailPassword for application/json ContentType.

type PostSigninEmailPasswordRequestObject added in v0.28.0

type PostSigninEmailPasswordRequestObject struct {
	Body *PostSigninEmailPasswordJSONRequestBody
}

type PostSigninEmailPasswordResponseObject added in v0.28.0

type PostSigninEmailPasswordResponseObject interface {
	VisitPostSigninEmailPasswordResponse(w http.ResponseWriter) error
}

type PostSigninIdtoken200JSONResponse added in v0.35.0

type PostSigninIdtoken200JSONResponse SessionPayload

func (PostSigninIdtoken200JSONResponse) VisitPostSigninIdtokenResponse added in v0.35.0

func (response PostSigninIdtoken200JSONResponse) VisitPostSigninIdtokenResponse(w http.ResponseWriter) error

type PostSigninIdtokenJSONRequestBody added in v0.35.0

type PostSigninIdtokenJSONRequestBody = SignInIdTokenRequest

PostSigninIdtokenJSONRequestBody defines body for PostSigninIdtoken for application/json ContentType.

type PostSigninIdtokenRequestObject added in v0.35.0

type PostSigninIdtokenRequestObject struct {
	Body *PostSigninIdtokenJSONRequestBody
}

type PostSigninIdtokenResponseObject added in v0.35.0

type PostSigninIdtokenResponseObject interface {
	VisitPostSigninIdtokenResponse(w http.ResponseWriter) error
}

type PostSigninOtpEmail200JSONResponse added in v0.35.0

type PostSigninOtpEmail200JSONResponse OKResponse

func (PostSigninOtpEmail200JSONResponse) VisitPostSigninOtpEmailResponse added in v0.35.0

func (response PostSigninOtpEmail200JSONResponse) VisitPostSigninOtpEmailResponse(w http.ResponseWriter) error

type PostSigninOtpEmailJSONRequestBody added in v0.35.0

type PostSigninOtpEmailJSONRequestBody = SignInOTPEmailRequest

PostSigninOtpEmailJSONRequestBody defines body for PostSigninOtpEmail for application/json ContentType.

type PostSigninOtpEmailRequestObject added in v0.35.0

type PostSigninOtpEmailRequestObject struct {
	Body *PostSigninOtpEmailJSONRequestBody
}

type PostSigninOtpEmailResponseObject added in v0.35.0

type PostSigninOtpEmailResponseObject interface {
	VisitPostSigninOtpEmailResponse(w http.ResponseWriter) error
}

type PostSigninOtpEmailVerify200JSONResponse added in v0.35.0

type PostSigninOtpEmailVerify200JSONResponse SignInOTPEmailVerifyResponse

func (PostSigninOtpEmailVerify200JSONResponse) VisitPostSigninOtpEmailVerifyResponse added in v0.35.0

func (response PostSigninOtpEmailVerify200JSONResponse) VisitPostSigninOtpEmailVerifyResponse(w http.ResponseWriter) error

type PostSigninOtpEmailVerifyJSONRequestBody added in v0.35.0

type PostSigninOtpEmailVerifyJSONRequestBody = SignInOTPEmailVerifyRequest

PostSigninOtpEmailVerifyJSONRequestBody defines body for PostSigninOtpEmailVerify for application/json ContentType.

type PostSigninOtpEmailVerifyRequestObject added in v0.35.0

type PostSigninOtpEmailVerifyRequestObject struct {
	Body *PostSigninOtpEmailVerifyJSONRequestBody
}

type PostSigninOtpEmailVerifyResponseObject added in v0.35.0

type PostSigninOtpEmailVerifyResponseObject interface {
	VisitPostSigninOtpEmailVerifyResponse(w http.ResponseWriter) error
}

type PostSigninPasswordlessEmail200JSONResponse added in v0.28.0

type PostSigninPasswordlessEmail200JSONResponse OKResponse

func (PostSigninPasswordlessEmail200JSONResponse) VisitPostSigninPasswordlessEmailResponse added in v0.28.0

func (response PostSigninPasswordlessEmail200JSONResponse) VisitPostSigninPasswordlessEmailResponse(w http.ResponseWriter) error

type PostSigninPasswordlessEmailJSONRequestBody added in v0.28.0

type PostSigninPasswordlessEmailJSONRequestBody = SignInPasswordlessEmailRequest

PostSigninPasswordlessEmailJSONRequestBody defines body for PostSigninPasswordlessEmail for application/json ContentType.

type PostSigninPasswordlessEmailRequestObject added in v0.28.0

type PostSigninPasswordlessEmailRequestObject struct {
	Body *PostSigninPasswordlessEmailJSONRequestBody
}

type PostSigninPasswordlessEmailResponseObject added in v0.28.0

type PostSigninPasswordlessEmailResponseObject interface {
	VisitPostSigninPasswordlessEmailResponse(w http.ResponseWriter) error
}

type PostSigninPat200JSONResponse added in v0.28.0

type PostSigninPat200JSONResponse SessionPayload

func (PostSigninPat200JSONResponse) VisitPostSigninPatResponse added in v0.28.0

func (response PostSigninPat200JSONResponse) VisitPostSigninPatResponse(w http.ResponseWriter) error

type PostSigninPatJSONRequestBody added in v0.28.0

type PostSigninPatJSONRequestBody = SignInPATRequest

PostSigninPatJSONRequestBody defines body for PostSigninPat for application/json ContentType.

type PostSigninPatRequestObject added in v0.28.0

type PostSigninPatRequestObject struct {
	Body *PostSigninPatJSONRequestBody
}

type PostSigninPatResponseObject added in v0.28.0

type PostSigninPatResponseObject interface {
	VisitPostSigninPatResponse(w http.ResponseWriter) error
}

type PostSigninWebauthn200JSONResponse added in v0.36.0

type PostSigninWebauthn200JSONResponse SignInWebauthnResponse

func (PostSigninWebauthn200JSONResponse) VisitPostSigninWebauthnResponse added in v0.36.0

func (response PostSigninWebauthn200JSONResponse) VisitPostSigninWebauthnResponse(w http.ResponseWriter) error

type PostSigninWebauthnJSONRequestBody added in v0.36.0

type PostSigninWebauthnJSONRequestBody = SignInWebauthnRequest

PostSigninWebauthnJSONRequestBody defines body for PostSigninWebauthn for application/json ContentType.

type PostSigninWebauthnRequestObject added in v0.36.0

type PostSigninWebauthnRequestObject struct {
	Body *PostSigninWebauthnJSONRequestBody
}

type PostSigninWebauthnResponseObject added in v0.36.0

type PostSigninWebauthnResponseObject interface {
	VisitPostSigninWebauthnResponse(w http.ResponseWriter) error
}

type PostSigninWebauthnVerify200JSONResponse added in v0.36.0

type PostSigninWebauthnVerify200JSONResponse SessionPayload

func (PostSigninWebauthnVerify200JSONResponse) VisitPostSigninWebauthnVerifyResponse added in v0.36.0

func (response PostSigninWebauthnVerify200JSONResponse) VisitPostSigninWebauthnVerifyResponse(w http.ResponseWriter) error

type PostSigninWebauthnVerifyJSONRequestBody added in v0.36.0

type PostSigninWebauthnVerifyJSONRequestBody = SignInWebauthnVerifyRequest

PostSigninWebauthnVerifyJSONRequestBody defines body for PostSigninWebauthnVerify for application/json ContentType.

type PostSigninWebauthnVerifyRequestObject added in v0.36.0

type PostSigninWebauthnVerifyRequestObject struct {
	Body *PostSigninWebauthnVerifyJSONRequestBody
}

type PostSigninWebauthnVerifyResponseObject added in v0.36.0

type PostSigninWebauthnVerifyResponseObject interface {
	VisitPostSigninWebauthnVerifyResponse(w http.ResponseWriter) error
}

type PostSignupEmailPassword200JSONResponse

type PostSignupEmailPassword200JSONResponse SessionPayload

func (PostSignupEmailPassword200JSONResponse) VisitPostSignupEmailPasswordResponse

func (response PostSignupEmailPassword200JSONResponse) VisitPostSignupEmailPasswordResponse(w http.ResponseWriter) error

type PostSignupEmailPassword403JSONResponse

type PostSignupEmailPassword403JSONResponse ErrorResponse

func (PostSignupEmailPassword403JSONResponse) VisitPostSignupEmailPasswordResponse

func (response PostSignupEmailPassword403JSONResponse) VisitPostSignupEmailPasswordResponse(w http.ResponseWriter) error

type PostSignupEmailPassword409JSONResponse

type PostSignupEmailPassword409JSONResponse ErrorResponse

func (PostSignupEmailPassword409JSONResponse) VisitPostSignupEmailPasswordResponse

func (response PostSignupEmailPassword409JSONResponse) VisitPostSignupEmailPasswordResponse(w http.ResponseWriter) error

type PostSignupEmailPasswordJSONRequestBody

type PostSignupEmailPasswordJSONRequestBody = SignUpEmailPasswordRequest

PostSignupEmailPasswordJSONRequestBody defines body for PostSignupEmailPassword for application/json ContentType.

type PostSignupEmailPasswordRequestObject

type PostSignupEmailPasswordRequestObject struct {
	Body *PostSignupEmailPasswordJSONRequestBody
}

type PostSignupEmailPasswordResponseObject

type PostSignupEmailPasswordResponseObject interface {
	VisitPostSignupEmailPasswordResponse(w http.ResponseWriter) error
}

type PostSignupWebauthn200JSONResponse added in v0.28.0

type PostSignupWebauthn200JSONResponse SignUpWebauthnResponse

func (PostSignupWebauthn200JSONResponse) VisitPostSignupWebauthnResponse added in v0.28.0

func (response PostSignupWebauthn200JSONResponse) VisitPostSignupWebauthnResponse(w http.ResponseWriter) error

type PostSignupWebauthnJSONRequestBody added in v0.28.0

type PostSignupWebauthnJSONRequestBody = SignUpWebauthnRequest

PostSignupWebauthnJSONRequestBody defines body for PostSignupWebauthn for application/json ContentType.

type PostSignupWebauthnRequestObject added in v0.28.0

type PostSignupWebauthnRequestObject struct {
	Body *PostSignupWebauthnJSONRequestBody
}

type PostSignupWebauthnResponseObject added in v0.28.0

type PostSignupWebauthnResponseObject interface {
	VisitPostSignupWebauthnResponse(w http.ResponseWriter) error
}

type PostSignupWebauthnVerify200JSONResponse added in v0.28.0

type PostSignupWebauthnVerify200JSONResponse SessionPayload

func (PostSignupWebauthnVerify200JSONResponse) VisitPostSignupWebauthnVerifyResponse added in v0.28.0

func (response PostSignupWebauthnVerify200JSONResponse) VisitPostSignupWebauthnVerifyResponse(w http.ResponseWriter) error

type PostSignupWebauthnVerifyJSONRequestBody added in v0.28.0

type PostSignupWebauthnVerifyJSONRequestBody = SignUpWebauthnVerifyRequest

PostSignupWebauthnVerifyJSONRequestBody defines body for PostSignupWebauthnVerify for application/json ContentType.

type PostSignupWebauthnVerifyRequestObject added in v0.28.0

type PostSignupWebauthnVerifyRequestObject struct {
	Body *PostSignupWebauthnVerifyJSONRequestBody
}

type PostSignupWebauthnVerifyResponseObject added in v0.28.0

type PostSignupWebauthnVerifyResponseObject interface {
	VisitPostSignupWebauthnVerifyResponse(w http.ResponseWriter) error
}

type PostToken200JSONResponse added in v0.29.0

type PostToken200JSONResponse Session

func (PostToken200JSONResponse) VisitPostTokenResponse added in v0.29.0

func (response PostToken200JSONResponse) VisitPostTokenResponse(w http.ResponseWriter) error

type PostTokenJSONRequestBody added in v0.29.0

type PostTokenJSONRequestBody = RefreshTokenRequest

PostTokenJSONRequestBody defines body for PostToken for application/json ContentType.

type PostTokenRequestObject added in v0.29.0

type PostTokenRequestObject struct {
	Body *PostTokenJSONRequestBody
}

type PostTokenResponseObject added in v0.29.0

type PostTokenResponseObject interface {
	VisitPostTokenResponse(w http.ResponseWriter) error
}

type PostUserDeanonymize200JSONResponse added in v0.28.0

type PostUserDeanonymize200JSONResponse OKResponse

func (PostUserDeanonymize200JSONResponse) VisitPostUserDeanonymizeResponse added in v0.28.0

func (response PostUserDeanonymize200JSONResponse) VisitPostUserDeanonymizeResponse(w http.ResponseWriter) error

type PostUserDeanonymizeJSONRequestBody added in v0.28.0

type PostUserDeanonymizeJSONRequestBody = UserDeanonymizeRequest

PostUserDeanonymizeJSONRequestBody defines body for PostUserDeanonymize for application/json ContentType.

type PostUserDeanonymizeRequestObject added in v0.28.0

type PostUserDeanonymizeRequestObject struct {
	Body *PostUserDeanonymizeJSONRequestBody
}

type PostUserDeanonymizeResponseObject added in v0.28.0

type PostUserDeanonymizeResponseObject interface {
	VisitPostUserDeanonymizeResponse(w http.ResponseWriter) error
}

type PostUserEmailChange200JSONResponse added in v0.28.0

type PostUserEmailChange200JSONResponse OKResponse

func (PostUserEmailChange200JSONResponse) VisitPostUserEmailChangeResponse added in v0.28.0

func (response PostUserEmailChange200JSONResponse) VisitPostUserEmailChangeResponse(w http.ResponseWriter) error

type PostUserEmailChangeJSONRequestBody added in v0.28.0

type PostUserEmailChangeJSONRequestBody = UserEmailChangeRequest

PostUserEmailChangeJSONRequestBody defines body for PostUserEmailChange for application/json ContentType.

type PostUserEmailChangeRequestObject added in v0.28.0

type PostUserEmailChangeRequestObject struct {
	Body *PostUserEmailChangeJSONRequestBody
}

type PostUserEmailChangeResponseObject added in v0.28.0

type PostUserEmailChangeResponseObject interface {
	VisitPostUserEmailChangeResponse(w http.ResponseWriter) error
}

type PostUserEmailSendVerificationEmail200JSONResponse added in v0.28.0

type PostUserEmailSendVerificationEmail200JSONResponse OKResponse

func (PostUserEmailSendVerificationEmail200JSONResponse) VisitPostUserEmailSendVerificationEmailResponse added in v0.28.0

func (response PostUserEmailSendVerificationEmail200JSONResponse) VisitPostUserEmailSendVerificationEmailResponse(w http.ResponseWriter) error

type PostUserEmailSendVerificationEmailJSONRequestBody added in v0.28.0

type PostUserEmailSendVerificationEmailJSONRequestBody = UserEmailSendVerificationEmailRequest

PostUserEmailSendVerificationEmailJSONRequestBody defines body for PostUserEmailSendVerificationEmail for application/json ContentType.

type PostUserEmailSendVerificationEmailRequestObject added in v0.28.0

type PostUserEmailSendVerificationEmailRequestObject struct {
	Body *PostUserEmailSendVerificationEmailJSONRequestBody
}

type PostUserEmailSendVerificationEmailResponseObject added in v0.28.0

type PostUserEmailSendVerificationEmailResponseObject interface {
	VisitPostUserEmailSendVerificationEmailResponse(w http.ResponseWriter) error
}

type PostUserPassword200JSONResponse added in v0.34.0

type PostUserPassword200JSONResponse OKResponse

func (PostUserPassword200JSONResponse) VisitPostUserPasswordResponse added in v0.34.0

func (response PostUserPassword200JSONResponse) VisitPostUserPasswordResponse(w http.ResponseWriter) error

type PostUserPasswordJSONRequestBody added in v0.34.0

type PostUserPasswordJSONRequestBody = UserPasswordRequest

PostUserPasswordJSONRequestBody defines body for PostUserPassword for application/json ContentType.

type PostUserPasswordRequestObject added in v0.34.0

type PostUserPasswordRequestObject struct {
	Body *PostUserPasswordJSONRequestBody
}

type PostUserPasswordReset200JSONResponse added in v0.28.0

type PostUserPasswordReset200JSONResponse OKResponse

func (PostUserPasswordReset200JSONResponse) VisitPostUserPasswordResetResponse added in v0.28.0

func (response PostUserPasswordReset200JSONResponse) VisitPostUserPasswordResetResponse(w http.ResponseWriter) error

type PostUserPasswordResetJSONRequestBody added in v0.28.0

type PostUserPasswordResetJSONRequestBody = UserPasswordResetRequest

PostUserPasswordResetJSONRequestBody defines body for PostUserPasswordReset for application/json ContentType.

type PostUserPasswordResetRequestObject added in v0.28.0

type PostUserPasswordResetRequestObject struct {
	Body *PostUserPasswordResetJSONRequestBody
}

type PostUserPasswordResetResponseObject added in v0.28.0

type PostUserPasswordResetResponseObject interface {
	VisitPostUserPasswordResetResponse(w http.ResponseWriter) error
}

type PostUserPasswordResponseObject added in v0.34.0

type PostUserPasswordResponseObject interface {
	VisitPostUserPasswordResponse(w http.ResponseWriter) error
}

type Provider added in v0.35.0

type Provider string

Provider defines model for Provider.

const (
	Apple  Provider = "apple"
	Google Provider = "google"
)

Defines values for Provider.

type RedirectToQuery added in v0.35.0

type RedirectToQuery = string

RedirectToQuery Target URL for the redirect

type RefreshTokenRequest added in v0.29.0

type RefreshTokenRequest struct {
	// RefreshToken Refresh Token
	RefreshToken string `json:"refreshToken"`
}

RefreshTokenRequest defines model for RefreshTokenRequest.

type ServerInterface

type ServerInterface interface {
	// Get public keys for JWT verification in JWK Set format
	// (GET /.well-known/jwks.json)
	GetWellKnownJwksJson(c *gin.Context)
	// Health check
	// (GET /healthz)
	GetHealthz(c *gin.Context)
	// Health check
	// (HEAD /healthz)
	HeadHealthz(c *gin.Context)
	// Link a user account with the provider's account using an id token
	// (POST /link/idtoken)
	PostLinkIdtoken(c *gin.Context)
	// Create a Personal Access Token (PAT)
	// (POST /pat)
	PostPat(c *gin.Context)
	// Sign in with email and password
	// (POST /signin/email-password)
	PostSigninEmailPassword(c *gin.Context)
	// Sign in with in an id token
	// (POST /signin/idtoken)
	PostSigninIdtoken(c *gin.Context)
	// Sign in with a one time password sent to user's email. If the user doesn't exist, it will be created. The options object is optional and can be used to configure the user's when signing up a new user. It is ignored if the user already exists.
	// (POST /signin/otp/email)
	PostSigninOtpEmail(c *gin.Context)
	// Verify OTP and return a session if validation is successful
	// (POST /signin/otp/email/verify)
	PostSigninOtpEmailVerify(c *gin.Context)
	// Sign in with magic link sent to user's email. If the user doesn't exist, it will be created. The options object is optional and can be used to configure the user's when signing up a new user. It is ignored if the user already exists.
	// (POST /signin/passwordless/email)
	PostSigninPasswordlessEmail(c *gin.Context)
	// Sign in with Personal Access Token (PAT)
	// (POST /signin/pat)
	PostSigninPat(c *gin.Context)
	// Signin with webauthn
	// (POST /signin/webauthn)
	PostSigninWebauthn(c *gin.Context)
	// Verify webauthn signin
	// (POST /signin/webauthn/verify)
	PostSigninWebauthnVerify(c *gin.Context)
	// Signup with email and password
	// (POST /signup/email-password)
	PostSignupEmailPassword(c *gin.Context)
	// Signup with webauthn
	// (POST /signup/webauthn)
	PostSignupWebauthn(c *gin.Context)
	// Verify webauthn signup
	// (POST /signup/webauthn/verify)
	PostSignupWebauthnVerify(c *gin.Context)
	// Refresh the JWT access token
	// (POST /token)
	PostToken(c *gin.Context)
	// Deanonymize an anonymous user in adding missing email or email+password, depending on the chosen authentication method. Will send a confirmation email if the server is configured to do so
	// (POST /user/deanonymize)
	PostUserDeanonymize(c *gin.Context)
	// Change user email
	// (POST /user/email/change)
	PostUserEmailChange(c *gin.Context)
	// Send email verification email
	// (POST /user/email/send-verification-email)
	PostUserEmailSendVerificationEmail(c *gin.Context)
	// Change user password. The user must be authenticated or provide a ticket
	// (POST /user/password)
	PostUserPassword(c *gin.Context)
	// Request a password reset. An email with a verification link will be sent to the user's address
	// (POST /user/password/reset)
	PostUserPasswordReset(c *gin.Context)
	// Verify tickets created by email verification, email passwordless authentication (magic link), or password reset
	// (GET /verify)
	GetVerify(c *gin.Context, params GetVerifyParams)
	// Get version
	// (GET /version)
	GetVersion(c *gin.Context)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandler       func(*gin.Context, error, int)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) GetHealthz added in v0.28.0

func (siw *ServerInterfaceWrapper) GetHealthz(c *gin.Context)

GetHealthz operation middleware

func (*ServerInterfaceWrapper) GetVerify added in v0.35.0

func (siw *ServerInterfaceWrapper) GetVerify(c *gin.Context)

GetVerify operation middleware

func (*ServerInterfaceWrapper) GetVersion added in v0.28.0

func (siw *ServerInterfaceWrapper) GetVersion(c *gin.Context)

GetVersion operation middleware

func (*ServerInterfaceWrapper) GetWellKnownJwksJson added in v0.35.0

func (siw *ServerInterfaceWrapper) GetWellKnownJwksJson(c *gin.Context)

GetWellKnownJwksJson operation middleware

func (*ServerInterfaceWrapper) HeadHealthz added in v0.28.0

func (siw *ServerInterfaceWrapper) HeadHealthz(c *gin.Context)

HeadHealthz operation middleware

func (*ServerInterfaceWrapper) PostLinkIdtoken added in v0.35.0

func (siw *ServerInterfaceWrapper) PostLinkIdtoken(c *gin.Context)

PostLinkIdtoken operation middleware

func (*ServerInterfaceWrapper) PostPat added in v0.28.0

func (siw *ServerInterfaceWrapper) PostPat(c *gin.Context)

PostPat operation middleware

func (*ServerInterfaceWrapper) PostSigninEmailPassword added in v0.28.0

func (siw *ServerInterfaceWrapper) PostSigninEmailPassword(c *gin.Context)

PostSigninEmailPassword operation middleware

func (*ServerInterfaceWrapper) PostSigninIdtoken added in v0.35.0

func (siw *ServerInterfaceWrapper) PostSigninIdtoken(c *gin.Context)

PostSigninIdtoken operation middleware

func (*ServerInterfaceWrapper) PostSigninOtpEmail added in v0.35.0

func (siw *ServerInterfaceWrapper) PostSigninOtpEmail(c *gin.Context)

PostSigninOtpEmail operation middleware

func (*ServerInterfaceWrapper) PostSigninOtpEmailVerify added in v0.35.0

func (siw *ServerInterfaceWrapper) PostSigninOtpEmailVerify(c *gin.Context)

PostSigninOtpEmailVerify operation middleware

func (*ServerInterfaceWrapper) PostSigninPasswordlessEmail added in v0.28.0

func (siw *ServerInterfaceWrapper) PostSigninPasswordlessEmail(c *gin.Context)

PostSigninPasswordlessEmail operation middleware

func (*ServerInterfaceWrapper) PostSigninPat added in v0.28.0

func (siw *ServerInterfaceWrapper) PostSigninPat(c *gin.Context)

PostSigninPat operation middleware

func (*ServerInterfaceWrapper) PostSigninWebauthn added in v0.36.0

func (siw *ServerInterfaceWrapper) PostSigninWebauthn(c *gin.Context)

PostSigninWebauthn operation middleware

func (*ServerInterfaceWrapper) PostSigninWebauthnVerify added in v0.36.0

func (siw *ServerInterfaceWrapper) PostSigninWebauthnVerify(c *gin.Context)

PostSigninWebauthnVerify operation middleware

func (*ServerInterfaceWrapper) PostSignupEmailPassword

func (siw *ServerInterfaceWrapper) PostSignupEmailPassword(c *gin.Context)

PostSignupEmailPassword operation middleware

func (*ServerInterfaceWrapper) PostSignupWebauthn added in v0.28.0

func (siw *ServerInterfaceWrapper) PostSignupWebauthn(c *gin.Context)

PostSignupWebauthn operation middleware

func (*ServerInterfaceWrapper) PostSignupWebauthnVerify added in v0.28.0

func (siw *ServerInterfaceWrapper) PostSignupWebauthnVerify(c *gin.Context)

PostSignupWebauthnVerify operation middleware

func (*ServerInterfaceWrapper) PostToken added in v0.29.0

func (siw *ServerInterfaceWrapper) PostToken(c *gin.Context)

PostToken operation middleware

func (*ServerInterfaceWrapper) PostUserDeanonymize added in v0.28.0

func (siw *ServerInterfaceWrapper) PostUserDeanonymize(c *gin.Context)

PostUserDeanonymize operation middleware

func (*ServerInterfaceWrapper) PostUserEmailChange added in v0.28.0

func (siw *ServerInterfaceWrapper) PostUserEmailChange(c *gin.Context)

PostUserEmailChange operation middleware

func (*ServerInterfaceWrapper) PostUserEmailSendVerificationEmail added in v0.28.0

func (siw *ServerInterfaceWrapper) PostUserEmailSendVerificationEmail(c *gin.Context)

PostUserEmailSendVerificationEmail operation middleware

func (*ServerInterfaceWrapper) PostUserPassword added in v0.34.0

func (siw *ServerInterfaceWrapper) PostUserPassword(c *gin.Context)

PostUserPassword operation middleware

func (*ServerInterfaceWrapper) PostUserPasswordReset added in v0.28.0

func (siw *ServerInterfaceWrapper) PostUserPasswordReset(c *gin.Context)

PostUserPasswordReset operation middleware

type Session

type Session struct {
	AccessToken          string `json:"accessToken"`
	AccessTokenExpiresIn int64  `json:"accessTokenExpiresIn"`

	// RefreshToken Refresh token during authentication or when refreshing the JWT
	RefreshToken string `json:"refreshToken"`

	// RefreshTokenId Refresh token id
	RefreshTokenId string `json:"refreshTokenId"`
	User           *User  `json:"user,omitempty"`
}

Session defines model for Session.

type SessionPayload

type SessionPayload struct {
	Session *Session `json:"session,omitempty"`
}

SessionPayload defines model for SessionPayload.

type SignInEmailPasswordRequest added in v0.28.0

type SignInEmailPasswordRequest struct {
	// Email A valid email
	Email openapi_types.Email `json:"email"`

	// Password A password of minimum 3 characters
	Password string `json:"password"`
}

SignInEmailPasswordRequest defines model for SignInEmailPasswordRequest.

type SignInEmailPasswordResponse added in v0.28.0

type SignInEmailPasswordResponse struct {
	Mfa     *MFAChallengePayload `json:"mfa,omitempty"`
	Session *Session             `json:"session,omitempty"`
}

SignInEmailPasswordResponse defines model for SignInEmailPasswordResponse.

type SignInIdTokenRequest added in v0.35.0

type SignInIdTokenRequest struct {
	// IdToken Apple ID token
	IdToken string `json:"idToken"`

	// Nonce Nonce used during sign in process
	Nonce    *string        `json:"nonce,omitempty"`
	Options  *SignUpOptions `json:"options,omitempty"`
	Provider Provider       `json:"provider"`
}

SignInIdTokenRequest defines model for SignInIdTokenRequest.

type SignInOTPEmailRequest added in v0.35.0

type SignInOTPEmailRequest struct {
	// Email A valid email
	Email   openapi_types.Email `json:"email"`
	Options *SignUpOptions      `json:"options,omitempty"`
}

SignInOTPEmailRequest defines model for SignInOTPEmailRequest.

type SignInOTPEmailVerifyRequest added in v0.35.0

type SignInOTPEmailVerifyRequest struct {
	// Email A valid email
	Email openapi_types.Email `json:"email"`

	// Otp One time password
	Otp string `json:"otp"`
}

SignInOTPEmailVerifyRequest defines model for SignInOTPEmailVerifyRequest.

type SignInOTPEmailVerifyResponse added in v0.35.0

type SignInOTPEmailVerifyResponse struct {
	Session *Session `json:"session,omitempty"`
}

SignInOTPEmailVerifyResponse defines model for SignInOTPEmailVerifyResponse.

type SignInPATRequest added in v0.28.0

type SignInPATRequest struct {
	// PersonalAccessToken PAT
	PersonalAccessToken string `json:"personalAccessToken"`
}

SignInPATRequest defines model for SignInPATRequest.

type SignInPasswordlessEmailRequest added in v0.28.0

type SignInPasswordlessEmailRequest struct {
	// Email A valid email
	Email   openapi_types.Email `json:"email"`
	Options *SignUpOptions      `json:"options,omitempty"`
}

SignInPasswordlessEmailRequest defines model for SignInPasswordlessEmailRequest.

type SignInWebauthnRequest added in v0.36.0

type SignInWebauthnRequest struct {
	// Email A valid email
	Email *openapi_types.Email `json:"email,omitempty"`

	// UserHandle User identifier for webauthn
	UserHandle *uuid.UUID `json:"userHandle,omitempty"`
	// contains filtered or unexported fields
}

SignInWebauthnRequest defines model for SignInWebauthnRequest.

func (SignInWebauthnRequest) AsSignInWebauthnRequest0 added in v0.36.0

func (t SignInWebauthnRequest) AsSignInWebauthnRequest0() (SignInWebauthnRequest0, error)

AsSignInWebauthnRequest0 returns the union data inside the SignInWebauthnRequest as a SignInWebauthnRequest0

func (SignInWebauthnRequest) AsSignInWebauthnRequest1 added in v0.36.0

func (t SignInWebauthnRequest) AsSignInWebauthnRequest1() (SignInWebauthnRequest1, error)

AsSignInWebauthnRequest1 returns the union data inside the SignInWebauthnRequest as a SignInWebauthnRequest1

func (*SignInWebauthnRequest) FromSignInWebauthnRequest0 added in v0.36.0

func (t *SignInWebauthnRequest) FromSignInWebauthnRequest0(v SignInWebauthnRequest0) error

FromSignInWebauthnRequest0 overwrites any union data inside the SignInWebauthnRequest as the provided SignInWebauthnRequest0

func (*SignInWebauthnRequest) FromSignInWebauthnRequest1 added in v0.36.0

func (t *SignInWebauthnRequest) FromSignInWebauthnRequest1(v SignInWebauthnRequest1) error

FromSignInWebauthnRequest1 overwrites any union data inside the SignInWebauthnRequest as the provided SignInWebauthnRequest1

func (SignInWebauthnRequest) MarshalJSON added in v0.36.0

func (t SignInWebauthnRequest) MarshalJSON() ([]byte, error)

func (*SignInWebauthnRequest) MergeSignInWebauthnRequest0 added in v0.36.0

func (t *SignInWebauthnRequest) MergeSignInWebauthnRequest0(v SignInWebauthnRequest0) error

MergeSignInWebauthnRequest0 performs a merge with any union data inside the SignInWebauthnRequest, using the provided SignInWebauthnRequest0

func (*SignInWebauthnRequest) MergeSignInWebauthnRequest1 added in v0.36.0

func (t *SignInWebauthnRequest) MergeSignInWebauthnRequest1(v SignInWebauthnRequest1) error

MergeSignInWebauthnRequest1 performs a merge with any union data inside the SignInWebauthnRequest, using the provided SignInWebauthnRequest1

func (*SignInWebauthnRequest) UnmarshalJSON added in v0.36.0

func (t *SignInWebauthnRequest) UnmarshalJSON(b []byte) error

type SignInWebauthnRequest0 added in v0.36.0

type SignInWebauthnRequest0 = interface{}

SignInWebauthnRequest0 defines model for .

type SignInWebauthnRequest1 added in v0.36.0

type SignInWebauthnRequest1 = interface{}

SignInWebauthnRequest1 defines model for .

type SignInWebauthnResponse added in v0.36.0

type SignInWebauthnResponse = protocol.PublicKeyCredentialRequestOptions

SignInWebauthnResponse defines model for SignInWebauthnResponse.

type SignInWebauthnVerifyRequest added in v0.36.0

type SignInWebauthnVerifyRequest struct {
	Credential protocol.CredentialAssertionResponse `json:"credential"`

	// Email A valid email. Deprecated, no longer used
	// Deprecated:
	Email                *openapi_types.Email   `json:"email,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

SignInWebauthnVerifyRequest defines model for SignInWebauthnVerifyRequest.

func (SignInWebauthnVerifyRequest) Get added in v0.36.0

func (a SignInWebauthnVerifyRequest) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for SignInWebauthnVerifyRequest. Returns the specified element and whether it was found

func (SignInWebauthnVerifyRequest) MarshalJSON added in v0.36.0

func (a SignInWebauthnVerifyRequest) MarshalJSON() ([]byte, error)

Override default JSON handling for SignInWebauthnVerifyRequest to handle AdditionalProperties

func (*SignInWebauthnVerifyRequest) Set added in v0.36.0

func (a *SignInWebauthnVerifyRequest) Set(fieldName string, value interface{})

Setter for additional properties for SignInWebauthnVerifyRequest

func (*SignInWebauthnVerifyRequest) UnmarshalJSON added in v0.36.0

func (a *SignInWebauthnVerifyRequest) UnmarshalJSON(b []byte) error

Override default JSON handling for SignInWebauthnVerifyRequest to handle AdditionalProperties

type SignUpEmailPasswordRequest added in v0.28.0

type SignUpEmailPasswordRequest struct {
	// Email A valid email
	Email   openapi_types.Email `json:"email"`
	Options *SignUpOptions      `json:"options,omitempty"`

	// Password A password of minimum 3 characters
	Password string `json:"password"`
}

SignUpEmailPasswordRequest defines model for SignUpEmailPasswordRequest.

type SignUpOptions

type SignUpOptions struct {
	AllowedRoles *[]string `json:"allowedRoles,omitempty"`
	DefaultRole  *string   `json:"defaultRole,omitempty"`
	DisplayName  *string   `json:"displayName,omitempty"`

	// Locale A two-characters locale
	Locale     *string                 `json:"locale,omitempty"`
	Metadata   *map[string]interface{} `json:"metadata,omitempty"`
	RedirectTo *string                 `json:"redirectTo,omitempty"`
}

SignUpOptions defines model for SignUpOptions.

type SignUpWebauthnRequest added in v0.28.0

type SignUpWebauthnRequest struct {
	// Email A valid email
	Email   openapi_types.Email `json:"email"`
	Options *SignUpOptions      `json:"options,omitempty"`
}

SignUpWebauthnRequest defines model for SignUpWebauthnRequest.

type SignUpWebauthnResponse added in v0.28.0

type SignUpWebauthnResponse = protocol.PublicKeyCredentialCreationOptions

SignUpWebauthnResponse defines model for SignUpWebauthnResponse.

type SignUpWebauthnVerifyRequest added in v0.28.0

type SignUpWebauthnVerifyRequest struct {
	Credential *protocol.CredentialCreationResponse `json:"credential,omitempty"`
	Options    *struct {
		AllowedRoles *[]string `json:"allowedRoles,omitempty"`
		DefaultRole  *string   `json:"defaultRole,omitempty"`
		DisplayName  *string   `json:"displayName,omitempty"`

		// Locale A two-characters locale
		Locale     *string                 `json:"locale,omitempty"`
		Metadata   *map[string]interface{} `json:"metadata,omitempty"`
		Nickname   *string                 `json:"nickname,omitempty"`
		RedirectTo *string                 `json:"redirectTo,omitempty"`
	} `json:"options,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

SignUpWebauthnVerifyRequest defines model for SignUpWebauthnVerifyRequest.

func (SignUpWebauthnVerifyRequest) Get added in v0.28.0

func (a SignUpWebauthnVerifyRequest) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for SignUpWebauthnVerifyRequest. Returns the specified element and whether it was found

func (SignUpWebauthnVerifyRequest) MarshalJSON added in v0.28.0

func (a SignUpWebauthnVerifyRequest) MarshalJSON() ([]byte, error)

Override default JSON handling for SignUpWebauthnVerifyRequest to handle AdditionalProperties

func (*SignUpWebauthnVerifyRequest) Set added in v0.28.0

func (a *SignUpWebauthnVerifyRequest) Set(fieldName string, value interface{})

Setter for additional properties for SignUpWebauthnVerifyRequest

func (*SignUpWebauthnVerifyRequest) UnmarshalJSON added in v0.28.0

func (a *SignUpWebauthnVerifyRequest) UnmarshalJSON(b []byte) error

Override default JSON handling for SignUpWebauthnVerifyRequest to handle AdditionalProperties

type StrictHandlerFunc

type StrictHandlerFunc = strictgin.StrictGinHandlerFunc

type StrictMiddlewareFunc

type StrictMiddlewareFunc = strictgin.StrictGinMiddlewareFunc

type StrictServerInterface

type StrictServerInterface interface {
	// Get public keys for JWT verification in JWK Set format
	// (GET /.well-known/jwks.json)
	GetWellKnownJwksJson(ctx context.Context, request GetWellKnownJwksJsonRequestObject) (GetWellKnownJwksJsonResponseObject, error)
	// Health check
	// (GET /healthz)
	GetHealthz(ctx context.Context, request GetHealthzRequestObject) (GetHealthzResponseObject, error)
	// Health check
	// (HEAD /healthz)
	HeadHealthz(ctx context.Context, request HeadHealthzRequestObject) (HeadHealthzResponseObject, error)
	// Link a user account with the provider's account using an id token
	// (POST /link/idtoken)
	PostLinkIdtoken(ctx context.Context, request PostLinkIdtokenRequestObject) (PostLinkIdtokenResponseObject, error)
	// Create a Personal Access Token (PAT)
	// (POST /pat)
	PostPat(ctx context.Context, request PostPatRequestObject) (PostPatResponseObject, error)
	// Sign in with email and password
	// (POST /signin/email-password)
	PostSigninEmailPassword(ctx context.Context, request PostSigninEmailPasswordRequestObject) (PostSigninEmailPasswordResponseObject, error)
	// Sign in with in an id token
	// (POST /signin/idtoken)
	PostSigninIdtoken(ctx context.Context, request PostSigninIdtokenRequestObject) (PostSigninIdtokenResponseObject, error)
	// Sign in with a one time password sent to user's email. If the user doesn't exist, it will be created. The options object is optional and can be used to configure the user's when signing up a new user. It is ignored if the user already exists.
	// (POST /signin/otp/email)
	PostSigninOtpEmail(ctx context.Context, request PostSigninOtpEmailRequestObject) (PostSigninOtpEmailResponseObject, error)
	// Verify OTP and return a session if validation is successful
	// (POST /signin/otp/email/verify)
	PostSigninOtpEmailVerify(ctx context.Context, request PostSigninOtpEmailVerifyRequestObject) (PostSigninOtpEmailVerifyResponseObject, error)
	// Sign in with magic link sent to user's email. If the user doesn't exist, it will be created. The options object is optional and can be used to configure the user's when signing up a new user. It is ignored if the user already exists.
	// (POST /signin/passwordless/email)
	PostSigninPasswordlessEmail(ctx context.Context, request PostSigninPasswordlessEmailRequestObject) (PostSigninPasswordlessEmailResponseObject, error)
	// Sign in with Personal Access Token (PAT)
	// (POST /signin/pat)
	PostSigninPat(ctx context.Context, request PostSigninPatRequestObject) (PostSigninPatResponseObject, error)
	// Signin with webauthn
	// (POST /signin/webauthn)
	PostSigninWebauthn(ctx context.Context, request PostSigninWebauthnRequestObject) (PostSigninWebauthnResponseObject, error)
	// Verify webauthn signin
	// (POST /signin/webauthn/verify)
	PostSigninWebauthnVerify(ctx context.Context, request PostSigninWebauthnVerifyRequestObject) (PostSigninWebauthnVerifyResponseObject, error)
	// Signup with email and password
	// (POST /signup/email-password)
	PostSignupEmailPassword(ctx context.Context, request PostSignupEmailPasswordRequestObject) (PostSignupEmailPasswordResponseObject, error)
	// Signup with webauthn
	// (POST /signup/webauthn)
	PostSignupWebauthn(ctx context.Context, request PostSignupWebauthnRequestObject) (PostSignupWebauthnResponseObject, error)
	// Verify webauthn signup
	// (POST /signup/webauthn/verify)
	PostSignupWebauthnVerify(ctx context.Context, request PostSignupWebauthnVerifyRequestObject) (PostSignupWebauthnVerifyResponseObject, error)
	// Refresh the JWT access token
	// (POST /token)
	PostToken(ctx context.Context, request PostTokenRequestObject) (PostTokenResponseObject, error)
	// Deanonymize an anonymous user in adding missing email or email+password, depending on the chosen authentication method. Will send a confirmation email if the server is configured to do so
	// (POST /user/deanonymize)
	PostUserDeanonymize(ctx context.Context, request PostUserDeanonymizeRequestObject) (PostUserDeanonymizeResponseObject, error)
	// Change user email
	// (POST /user/email/change)
	PostUserEmailChange(ctx context.Context, request PostUserEmailChangeRequestObject) (PostUserEmailChangeResponseObject, error)
	// Send email verification email
	// (POST /user/email/send-verification-email)
	PostUserEmailSendVerificationEmail(ctx context.Context, request PostUserEmailSendVerificationEmailRequestObject) (PostUserEmailSendVerificationEmailResponseObject, error)
	// Change user password. The user must be authenticated or provide a ticket
	// (POST /user/password)
	PostUserPassword(ctx context.Context, request PostUserPasswordRequestObject) (PostUserPasswordResponseObject, error)
	// Request a password reset. An email with a verification link will be sent to the user's address
	// (POST /user/password/reset)
	PostUserPasswordReset(ctx context.Context, request PostUserPasswordResetRequestObject) (PostUserPasswordResetResponseObject, error)
	// Verify tickets created by email verification, email passwordless authentication (magic link), or password reset
	// (GET /verify)
	GetVerify(ctx context.Context, request GetVerifyRequestObject) (GetVerifyResponseObject, error)
	// Get version
	// (GET /version)
	GetVersion(ctx context.Context, request GetVersionRequestObject) (GetVersionResponseObject, error)
}

StrictServerInterface represents all server handlers.

type TicketQuery added in v0.35.0

type TicketQuery = string

TicketQuery Ticket

type TicketTypeQuery added in v0.35.0

type TicketTypeQuery string

TicketTypeQuery Type of the ticket

const (
	TicketTypeQueryEmailConfirmChange TicketTypeQuery = "emailConfirmChange"
	TicketTypeQueryEmailVerify        TicketTypeQuery = "emailVerify"
	TicketTypeQueryPasswordReset      TicketTypeQuery = "passwordReset"
	TicketTypeQuerySigninPasswordless TicketTypeQuery = "signinPasswordless"
)

Defines values for TicketTypeQuery.

type User

type User struct {
	AvatarUrl   string    `json:"avatarUrl"`
	CreatedAt   time.Time `json:"createdAt"`
	DefaultRole string    `json:"defaultRole"`
	DisplayName string    `json:"displayName"`

	// Email A valid email
	Email         *openapi_types.Email `json:"email,omitempty"`
	EmailVerified bool                 `json:"emailVerified"`

	// Id Id of the user
	Id          string `json:"id"`
	IsAnonymous bool   `json:"isAnonymous"`

	// Locale A two-characters locale
	Locale              string                 `json:"locale"`
	Metadata            map[string]interface{} `json:"metadata"`
	PhoneNumber         *string                `json:"phoneNumber,omitempty"`
	PhoneNumberVerified bool                   `json:"phoneNumberVerified"`
	Roles               []string               `json:"roles"`
}

User defines model for User.

type UserDeanonymizeRequest added in v0.28.0

type UserDeanonymizeRequest struct {
	// Connection Deprecated, will be ignored
	// Deprecated:
	Connection *string `json:"connection,omitempty"`

	// Email A valid email
	Email   openapi_types.Email `json:"email"`
	Options *SignUpOptions      `json:"options,omitempty"`

	// Password A password of minimum 3 characters
	Password *string `json:"password,omitempty"`

	// SignInMethod Which sign-in method to use
	SignInMethod UserDeanonymizeRequestSignInMethod `json:"signInMethod"`
}

UserDeanonymizeRequest defines model for UserDeanonymizeRequest.

type UserDeanonymizeRequestSignInMethod added in v0.28.0

type UserDeanonymizeRequestSignInMethod string

UserDeanonymizeRequestSignInMethod Which sign-in method to use

const (
	EmailPassword UserDeanonymizeRequestSignInMethod = "email-password"
	Passwordless  UserDeanonymizeRequestSignInMethod = "passwordless"
)

Defines values for UserDeanonymizeRequestSignInMethod.

type UserEmailChangeRequest added in v0.28.0

type UserEmailChangeRequest struct {
	// NewEmail A valid email
	NewEmail openapi_types.Email `json:"newEmail"`
	Options  *OptionsRedirectTo  `json:"options,omitempty"`
}

UserEmailChangeRequest defines model for UserEmailChangeRequest.

type UserEmailSendVerificationEmailRequest added in v0.28.0

type UserEmailSendVerificationEmailRequest struct {
	// Email A valid email
	Email   openapi_types.Email `json:"email"`
	Options *OptionsRedirectTo  `json:"options,omitempty"`
}

UserEmailSendVerificationEmailRequest defines model for UserEmailSendVerificationEmailRequest.

type UserPasswordRequest added in v0.34.0

type UserPasswordRequest struct {
	// NewPassword A password of minimum 3 characters
	NewPassword string `json:"newPassword"`

	// Ticket Ticket to reset the password, required if the user is not authenticated
	Ticket *string `json:"ticket,omitempty"`
}

UserPasswordRequest defines model for UserPasswordRequest.

type UserPasswordResetRequest added in v0.28.0

type UserPasswordResetRequest struct {
	// Email A valid email
	Email   openapi_types.Email `json:"email"`
	Options *OptionsRedirectTo  `json:"options,omitempty"`
}

UserPasswordResetRequest defines model for UserPasswordResetRequest.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL