auth

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

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

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

Index

Constants

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

Variables

View Source
var ErrSigninIn = errors.New("error during sign in")

Functions

func NewGetHealthzRequest

func NewGetHealthzRequest(server string) (*http.Request, error)

NewGetHealthzRequest generates requests for GetHealthz

func NewGetVerifyRequest

func NewGetVerifyRequest(server string, params *GetVerifyParams) (*http.Request, error)

NewGetVerifyRequest generates requests for GetVerify

func NewGetVersionRequest

func NewGetVersionRequest(server string) (*http.Request, error)

NewGetVersionRequest generates requests for GetVersion

func NewGetWellKnownJwksJsonRequest

func NewGetWellKnownJwksJsonRequest(server string) (*http.Request, error)

NewGetWellKnownJwksJsonRequest generates requests for GetWellKnownJwksJson

func NewHeadHealthzRequest

func NewHeadHealthzRequest(server string) (*http.Request, error)

NewHeadHealthzRequest generates requests for HeadHealthz

func NewPostLinkIdtokenRequest

func NewPostLinkIdtokenRequest(server string, body PostLinkIdtokenJSONRequestBody) (*http.Request, error)

NewPostLinkIdtokenRequest calls the generic PostLinkIdtoken builder with application/json body

func NewPostLinkIdtokenRequestWithBody

func NewPostLinkIdtokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostLinkIdtokenRequestWithBody generates requests for PostLinkIdtoken with any type of body

func NewPostPatRequest

func NewPostPatRequest(server string, body PostPatJSONRequestBody) (*http.Request, error)

NewPostPatRequest calls the generic PostPat builder with application/json body

func NewPostPatRequestWithBody

func NewPostPatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostPatRequestWithBody generates requests for PostPat with any type of body

func NewPostSigninEmailPasswordRequest

func NewPostSigninEmailPasswordRequest(server string, body PostSigninEmailPasswordJSONRequestBody) (*http.Request, error)

NewPostSigninEmailPasswordRequest calls the generic PostSigninEmailPassword builder with application/json body

func NewPostSigninEmailPasswordRequestWithBody

func NewPostSigninEmailPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSigninEmailPasswordRequestWithBody generates requests for PostSigninEmailPassword with any type of body

func NewPostSigninIdtokenRequest

func NewPostSigninIdtokenRequest(server string, body PostSigninIdtokenJSONRequestBody) (*http.Request, error)

NewPostSigninIdtokenRequest calls the generic PostSigninIdtoken builder with application/json body

func NewPostSigninIdtokenRequestWithBody

func NewPostSigninIdtokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSigninIdtokenRequestWithBody generates requests for PostSigninIdtoken with any type of body

func NewPostSigninOtpEmailRequest

func NewPostSigninOtpEmailRequest(server string, body PostSigninOtpEmailJSONRequestBody) (*http.Request, error)

NewPostSigninOtpEmailRequest calls the generic PostSigninOtpEmail builder with application/json body

func NewPostSigninOtpEmailRequestWithBody

func NewPostSigninOtpEmailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSigninOtpEmailRequestWithBody generates requests for PostSigninOtpEmail with any type of body

func NewPostSigninOtpEmailVerifyRequest

func NewPostSigninOtpEmailVerifyRequest(server string, body PostSigninOtpEmailVerifyJSONRequestBody) (*http.Request, error)

NewPostSigninOtpEmailVerifyRequest calls the generic PostSigninOtpEmailVerify builder with application/json body

func NewPostSigninOtpEmailVerifyRequestWithBody

func NewPostSigninOtpEmailVerifyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSigninOtpEmailVerifyRequestWithBody generates requests for PostSigninOtpEmailVerify with any type of body

func NewPostSigninPasswordlessEmailRequest

func NewPostSigninPasswordlessEmailRequest(server string, body PostSigninPasswordlessEmailJSONRequestBody) (*http.Request, error)

NewPostSigninPasswordlessEmailRequest calls the generic PostSigninPasswordlessEmail builder with application/json body

func NewPostSigninPasswordlessEmailRequestWithBody

func NewPostSigninPasswordlessEmailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSigninPasswordlessEmailRequestWithBody generates requests for PostSigninPasswordlessEmail with any type of body

func NewPostSigninPatRequest

func NewPostSigninPatRequest(server string, body PostSigninPatJSONRequestBody) (*http.Request, error)

NewPostSigninPatRequest calls the generic PostSigninPat builder with application/json body

func NewPostSigninPatRequestWithBody

func NewPostSigninPatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSigninPatRequestWithBody generates requests for PostSigninPat with any type of body

func NewPostSigninWebauthnRequest

func NewPostSigninWebauthnRequest(server string, body PostSigninWebauthnJSONRequestBody) (*http.Request, error)

NewPostSigninWebauthnRequest calls the generic PostSigninWebauthn builder with application/json body

func NewPostSigninWebauthnRequestWithBody

func NewPostSigninWebauthnRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSigninWebauthnRequestWithBody generates requests for PostSigninWebauthn with any type of body

func NewPostSigninWebauthnVerifyRequest

func NewPostSigninWebauthnVerifyRequest(server string, body PostSigninWebauthnVerifyJSONRequestBody) (*http.Request, error)

NewPostSigninWebauthnVerifyRequest calls the generic PostSigninWebauthnVerify builder with application/json body

func NewPostSigninWebauthnVerifyRequestWithBody

func NewPostSigninWebauthnVerifyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSigninWebauthnVerifyRequestWithBody generates requests for PostSigninWebauthnVerify with any type of body

func NewPostSignupEmailPasswordRequest

func NewPostSignupEmailPasswordRequest(server string, body PostSignupEmailPasswordJSONRequestBody) (*http.Request, error)

NewPostSignupEmailPasswordRequest calls the generic PostSignupEmailPassword builder with application/json body

func NewPostSignupEmailPasswordRequestWithBody

func NewPostSignupEmailPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSignupEmailPasswordRequestWithBody generates requests for PostSignupEmailPassword with any type of body

func NewPostSignupWebauthnRequest

func NewPostSignupWebauthnRequest(server string, body PostSignupWebauthnJSONRequestBody) (*http.Request, error)

NewPostSignupWebauthnRequest calls the generic PostSignupWebauthn builder with application/json body

func NewPostSignupWebauthnRequestWithBody

func NewPostSignupWebauthnRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSignupWebauthnRequestWithBody generates requests for PostSignupWebauthn with any type of body

func NewPostSignupWebauthnVerifyRequest

func NewPostSignupWebauthnVerifyRequest(server string, body PostSignupWebauthnVerifyJSONRequestBody) (*http.Request, error)

NewPostSignupWebauthnVerifyRequest calls the generic PostSignupWebauthnVerify builder with application/json body

func NewPostSignupWebauthnVerifyRequestWithBody

func NewPostSignupWebauthnVerifyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostSignupWebauthnVerifyRequestWithBody generates requests for PostSignupWebauthnVerify with any type of body

func NewPostTokenRequest

func NewPostTokenRequest(server string, body PostTokenJSONRequestBody) (*http.Request, error)

NewPostTokenRequest calls the generic PostToken builder with application/json body

func NewPostTokenRequestWithBody

func NewPostTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostTokenRequestWithBody generates requests for PostToken with any type of body

func NewPostUserDeanonymizeRequest

func NewPostUserDeanonymizeRequest(server string, body PostUserDeanonymizeJSONRequestBody) (*http.Request, error)

NewPostUserDeanonymizeRequest calls the generic PostUserDeanonymize builder with application/json body

func NewPostUserDeanonymizeRequestWithBody

func NewPostUserDeanonymizeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostUserDeanonymizeRequestWithBody generates requests for PostUserDeanonymize with any type of body

func NewPostUserEmailChangeRequest

func NewPostUserEmailChangeRequest(server string, body PostUserEmailChangeJSONRequestBody) (*http.Request, error)

NewPostUserEmailChangeRequest calls the generic PostUserEmailChange builder with application/json body

func NewPostUserEmailChangeRequestWithBody

func NewPostUserEmailChangeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostUserEmailChangeRequestWithBody generates requests for PostUserEmailChange with any type of body

func NewPostUserEmailSendVerificationEmailRequest

func NewPostUserEmailSendVerificationEmailRequest(server string, body PostUserEmailSendVerificationEmailJSONRequestBody) (*http.Request, error)

NewPostUserEmailSendVerificationEmailRequest calls the generic PostUserEmailSendVerificationEmail builder with application/json body

func NewPostUserEmailSendVerificationEmailRequestWithBody

func NewPostUserEmailSendVerificationEmailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostUserEmailSendVerificationEmailRequestWithBody generates requests for PostUserEmailSendVerificationEmail with any type of body

func NewPostUserPasswordRequest

func NewPostUserPasswordRequest(server string, body PostUserPasswordJSONRequestBody) (*http.Request, error)

NewPostUserPasswordRequest calls the generic PostUserPassword builder with application/json body

func NewPostUserPasswordRequestWithBody

func NewPostUserPasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostUserPasswordRequestWithBody generates requests for PostUserPassword with any type of body

func NewPostUserPasswordResetRequest

func NewPostUserPasswordResetRequest(server string, body PostUserPasswordResetJSONRequestBody) (*http.Request, error)

NewPostUserPasswordResetRequest calls the generic PostUserPasswordReset builder with application/json body

func NewPostUserPasswordResetRequestWithBody

func NewPostUserPasswordResetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostUserPasswordResetRequestWithBody generates requests for PostUserPasswordReset with any type of body

func WithAdminSecret added in v0.0.3

func WithAdminSecret(
	adminSecret string,
) func(ctx context.Context, req *http.Request) error

func WithPAT

func WithPAT(
	url string,
	pat string,
) (func(ctx context.Context, req *http.Request) error, error)

func WithRole added in v0.0.3

func WithRole(
	role string,
) func(ctx context.Context, req *http.Request) error

func WithUserID added in v0.0.4

func WithUserID(
	userID string,
) func(ctx context.Context, req *http.Request) error

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) GetHealthz

func (c *Client) GetHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVerify

func (c *Client) GetVerify(ctx context.Context, params *GetVerifyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVersion

func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWellKnownJwksJson

func (c *Client) GetWellKnownJwksJson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) HeadHealthz

func (c *Client) HeadHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostLinkIdtoken

func (c *Client) PostLinkIdtoken(ctx context.Context, body PostLinkIdtokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostLinkIdtokenWithBody

func (c *Client) PostLinkIdtokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPat

func (c *Client) PostPat(ctx context.Context, body PostPatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPatWithBody

func (c *Client) PostPatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninEmailPassword

func (c *Client) PostSigninEmailPassword(ctx context.Context, body PostSigninEmailPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninEmailPasswordWithBody

func (c *Client) PostSigninEmailPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninIdtoken

func (c *Client) PostSigninIdtoken(ctx context.Context, body PostSigninIdtokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninIdtokenWithBody

func (c *Client) PostSigninIdtokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninOtpEmail

func (c *Client) PostSigninOtpEmail(ctx context.Context, body PostSigninOtpEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninOtpEmailVerify

func (c *Client) PostSigninOtpEmailVerify(ctx context.Context, body PostSigninOtpEmailVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninOtpEmailVerifyWithBody

func (c *Client) PostSigninOtpEmailVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninOtpEmailWithBody

func (c *Client) PostSigninOtpEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninPasswordlessEmail

func (c *Client) PostSigninPasswordlessEmail(ctx context.Context, body PostSigninPasswordlessEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninPasswordlessEmailWithBody

func (c *Client) PostSigninPasswordlessEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninPat

func (c *Client) PostSigninPat(ctx context.Context, body PostSigninPatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninPatWithBody

func (c *Client) PostSigninPatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninWebauthn

func (c *Client) PostSigninWebauthn(ctx context.Context, body PostSigninWebauthnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninWebauthnVerify

func (c *Client) PostSigninWebauthnVerify(ctx context.Context, body PostSigninWebauthnVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninWebauthnVerifyWithBody

func (c *Client) PostSigninWebauthnVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSigninWebauthnWithBody

func (c *Client) PostSigninWebauthnWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSignupEmailPassword

func (c *Client) PostSignupEmailPassword(ctx context.Context, body PostSignupEmailPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSignupEmailPasswordWithBody

func (c *Client) PostSignupEmailPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSignupWebauthn

func (c *Client) PostSignupWebauthn(ctx context.Context, body PostSignupWebauthnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSignupWebauthnVerify

func (c *Client) PostSignupWebauthnVerify(ctx context.Context, body PostSignupWebauthnVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSignupWebauthnVerifyWithBody

func (c *Client) PostSignupWebauthnVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostSignupWebauthnWithBody

func (c *Client) PostSignupWebauthnWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostToken

func (c *Client) PostToken(ctx context.Context, body PostTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostTokenWithBody

func (c *Client) PostTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostUserDeanonymize

func (c *Client) PostUserDeanonymize(ctx context.Context, body PostUserDeanonymizeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostUserDeanonymizeWithBody

func (c *Client) PostUserDeanonymizeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostUserEmailChange

func (c *Client) PostUserEmailChange(ctx context.Context, body PostUserEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostUserEmailChangeWithBody

func (c *Client) PostUserEmailChangeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostUserEmailSendVerificationEmail

func (c *Client) PostUserEmailSendVerificationEmail(ctx context.Context, body PostUserEmailSendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostUserEmailSendVerificationEmailWithBody

func (c *Client) PostUserEmailSendVerificationEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostUserPassword

func (c *Client) PostUserPassword(ctx context.Context, body PostUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostUserPasswordReset

func (c *Client) PostUserPasswordReset(ctx context.Context, body PostUserPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostUserPasswordResetWithBody

func (c *Client) PostUserPasswordResetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostUserPasswordWithBody

func (c *Client) PostUserPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetWellKnownJwksJson request
	GetWellKnownJwksJson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHealthz request
	GetHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HeadHealthz request
	HeadHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostLinkIdtokenWithBody request with any body
	PostLinkIdtokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostLinkIdtoken(ctx context.Context, body PostLinkIdtokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostPatWithBody request with any body
	PostPatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostPat(ctx context.Context, body PostPatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSigninEmailPasswordWithBody request with any body
	PostSigninEmailPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSigninEmailPassword(ctx context.Context, body PostSigninEmailPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSigninIdtokenWithBody request with any body
	PostSigninIdtokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSigninIdtoken(ctx context.Context, body PostSigninIdtokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSigninOtpEmailWithBody request with any body
	PostSigninOtpEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSigninOtpEmail(ctx context.Context, body PostSigninOtpEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSigninOtpEmailVerifyWithBody request with any body
	PostSigninOtpEmailVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSigninOtpEmailVerify(ctx context.Context, body PostSigninOtpEmailVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSigninPasswordlessEmailWithBody request with any body
	PostSigninPasswordlessEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSigninPasswordlessEmail(ctx context.Context, body PostSigninPasswordlessEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSigninPatWithBody request with any body
	PostSigninPatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSigninPat(ctx context.Context, body PostSigninPatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSigninWebauthnWithBody request with any body
	PostSigninWebauthnWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSigninWebauthn(ctx context.Context, body PostSigninWebauthnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSigninWebauthnVerifyWithBody request with any body
	PostSigninWebauthnVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSigninWebauthnVerify(ctx context.Context, body PostSigninWebauthnVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSignupEmailPasswordWithBody request with any body
	PostSignupEmailPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSignupEmailPassword(ctx context.Context, body PostSignupEmailPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSignupWebauthnWithBody request with any body
	PostSignupWebauthnWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSignupWebauthn(ctx context.Context, body PostSignupWebauthnJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostSignupWebauthnVerifyWithBody request with any body
	PostSignupWebauthnVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostSignupWebauthnVerify(ctx context.Context, body PostSignupWebauthnVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostTokenWithBody request with any body
	PostTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostToken(ctx context.Context, body PostTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostUserDeanonymizeWithBody request with any body
	PostUserDeanonymizeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostUserDeanonymize(ctx context.Context, body PostUserDeanonymizeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostUserEmailChangeWithBody request with any body
	PostUserEmailChangeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostUserEmailChange(ctx context.Context, body PostUserEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostUserEmailSendVerificationEmailWithBody request with any body
	PostUserEmailSendVerificationEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostUserEmailSendVerificationEmail(ctx context.Context, body PostUserEmailSendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostUserPasswordWithBody request with any body
	PostUserPasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostUserPassword(ctx context.Context, body PostUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostUserPasswordResetWithBody request with any body
	PostUserPasswordResetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostUserPasswordReset(ctx context.Context, body PostUserPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVerify request
	GetVerify(ctx context.Context, params *GetVerifyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVersion request
	GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) GetHealthzWithResponse

func (c *ClientWithResponses) GetHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthzR, error)

GetHealthzWithResponse request returning *GetHealthzR

func (*ClientWithResponses) GetVerifyWithResponse

func (c *ClientWithResponses) GetVerifyWithResponse(ctx context.Context, params *GetVerifyParams, reqEditors ...RequestEditorFn) (*GetVerifyR, error)

GetVerifyWithResponse request returning *GetVerifyR

func (*ClientWithResponses) GetVersionWithResponse

func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionR, error)

GetVersionWithResponse request returning *GetVersionR

func (*ClientWithResponses) GetWellKnownJwksJsonWithResponse

func (c *ClientWithResponses) GetWellKnownJwksJsonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownJwksJsonR, error)

GetWellKnownJwksJsonWithResponse request returning *GetWellKnownJwksJsonR

func (*ClientWithResponses) HeadHealthzWithResponse

func (c *ClientWithResponses) HeadHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeadHealthzR, error)

HeadHealthzWithResponse request returning *HeadHealthzR

func (*ClientWithResponses) PostLinkIdtokenWithBodyWithResponse

func (c *ClientWithResponses) PostLinkIdtokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLinkIdtokenR, error)

PostLinkIdtokenWithBodyWithResponse request with arbitrary body returning *PostLinkIdtokenR

func (*ClientWithResponses) PostLinkIdtokenWithResponse

func (c *ClientWithResponses) PostLinkIdtokenWithResponse(ctx context.Context, body PostLinkIdtokenJSONRequestBody, reqEditors ...RequestEditorFn) (*PostLinkIdtokenR, error)

func (*ClientWithResponses) PostPatWithBodyWithResponse

func (c *ClientWithResponses) PostPatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPatR, error)

PostPatWithBodyWithResponse request with arbitrary body returning *PostPatR

func (*ClientWithResponses) PostPatWithResponse

func (c *ClientWithResponses) PostPatWithResponse(ctx context.Context, body PostPatJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPatR, error)

func (*ClientWithResponses) PostSigninEmailPasswordWithBodyWithResponse

func (c *ClientWithResponses) PostSigninEmailPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninEmailPasswordR, error)

PostSigninEmailPasswordWithBodyWithResponse request with arbitrary body returning *PostSigninEmailPasswordR

func (*ClientWithResponses) PostSigninEmailPasswordWithResponse

func (c *ClientWithResponses) PostSigninEmailPasswordWithResponse(ctx context.Context, body PostSigninEmailPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninEmailPasswordR, error)

func (*ClientWithResponses) PostSigninIdtokenWithBodyWithResponse

func (c *ClientWithResponses) PostSigninIdtokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninIdtokenR, error)

PostSigninIdtokenWithBodyWithResponse request with arbitrary body returning *PostSigninIdtokenR

func (*ClientWithResponses) PostSigninIdtokenWithResponse

func (c *ClientWithResponses) PostSigninIdtokenWithResponse(ctx context.Context, body PostSigninIdtokenJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninIdtokenR, error)

func (*ClientWithResponses) PostSigninOtpEmailVerifyWithBodyWithResponse

func (c *ClientWithResponses) PostSigninOtpEmailVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninOtpEmailVerifyR, error)

PostSigninOtpEmailVerifyWithBodyWithResponse request with arbitrary body returning *PostSigninOtpEmailVerifyR

func (*ClientWithResponses) PostSigninOtpEmailVerifyWithResponse

func (c *ClientWithResponses) PostSigninOtpEmailVerifyWithResponse(ctx context.Context, body PostSigninOtpEmailVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninOtpEmailVerifyR, error)

func (*ClientWithResponses) PostSigninOtpEmailWithBodyWithResponse

func (c *ClientWithResponses) PostSigninOtpEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninOtpEmailR, error)

PostSigninOtpEmailWithBodyWithResponse request with arbitrary body returning *PostSigninOtpEmailR

func (*ClientWithResponses) PostSigninOtpEmailWithResponse

func (c *ClientWithResponses) PostSigninOtpEmailWithResponse(ctx context.Context, body PostSigninOtpEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninOtpEmailR, error)

func (*ClientWithResponses) PostSigninPasswordlessEmailWithBodyWithResponse

func (c *ClientWithResponses) PostSigninPasswordlessEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninPasswordlessEmailR, error)

PostSigninPasswordlessEmailWithBodyWithResponse request with arbitrary body returning *PostSigninPasswordlessEmailR

func (*ClientWithResponses) PostSigninPasswordlessEmailWithResponse

func (c *ClientWithResponses) PostSigninPasswordlessEmailWithResponse(ctx context.Context, body PostSigninPasswordlessEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninPasswordlessEmailR, error)

func (*ClientWithResponses) PostSigninPatWithBodyWithResponse

func (c *ClientWithResponses) PostSigninPatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninPatR, error)

PostSigninPatWithBodyWithResponse request with arbitrary body returning *PostSigninPatR

func (*ClientWithResponses) PostSigninPatWithResponse

func (c *ClientWithResponses) PostSigninPatWithResponse(ctx context.Context, body PostSigninPatJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninPatR, error)

func (*ClientWithResponses) PostSigninWebauthnVerifyWithBodyWithResponse

func (c *ClientWithResponses) PostSigninWebauthnVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninWebauthnVerifyR, error)

PostSigninWebauthnVerifyWithBodyWithResponse request with arbitrary body returning *PostSigninWebauthnVerifyR

func (*ClientWithResponses) PostSigninWebauthnVerifyWithResponse

func (c *ClientWithResponses) PostSigninWebauthnVerifyWithResponse(ctx context.Context, body PostSigninWebauthnVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninWebauthnVerifyR, error)

func (*ClientWithResponses) PostSigninWebauthnWithBodyWithResponse

func (c *ClientWithResponses) PostSigninWebauthnWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninWebauthnR, error)

PostSigninWebauthnWithBodyWithResponse request with arbitrary body returning *PostSigninWebauthnR

func (*ClientWithResponses) PostSigninWebauthnWithResponse

func (c *ClientWithResponses) PostSigninWebauthnWithResponse(ctx context.Context, body PostSigninWebauthnJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninWebauthnR, error)

func (*ClientWithResponses) PostSignupEmailPasswordWithBodyWithResponse

func (c *ClientWithResponses) PostSignupEmailPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSignupEmailPasswordR, error)

PostSignupEmailPasswordWithBodyWithResponse request with arbitrary body returning *PostSignupEmailPasswordR

func (*ClientWithResponses) PostSignupEmailPasswordWithResponse

func (c *ClientWithResponses) PostSignupEmailPasswordWithResponse(ctx context.Context, body PostSignupEmailPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSignupEmailPasswordR, error)

func (*ClientWithResponses) PostSignupWebauthnVerifyWithBodyWithResponse

func (c *ClientWithResponses) PostSignupWebauthnVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSignupWebauthnVerifyR, error)

PostSignupWebauthnVerifyWithBodyWithResponse request with arbitrary body returning *PostSignupWebauthnVerifyR

func (*ClientWithResponses) PostSignupWebauthnVerifyWithResponse

func (c *ClientWithResponses) PostSignupWebauthnVerifyWithResponse(ctx context.Context, body PostSignupWebauthnVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSignupWebauthnVerifyR, error)

func (*ClientWithResponses) PostSignupWebauthnWithBodyWithResponse

func (c *ClientWithResponses) PostSignupWebauthnWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSignupWebauthnR, error)

PostSignupWebauthnWithBodyWithResponse request with arbitrary body returning *PostSignupWebauthnR

func (*ClientWithResponses) PostSignupWebauthnWithResponse

func (c *ClientWithResponses) PostSignupWebauthnWithResponse(ctx context.Context, body PostSignupWebauthnJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSignupWebauthnR, error)

func (*ClientWithResponses) PostTokenWithBodyWithResponse

func (c *ClientWithResponses) PostTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostTokenR, error)

PostTokenWithBodyWithResponse request with arbitrary body returning *PostTokenR

func (*ClientWithResponses) PostTokenWithResponse

func (c *ClientWithResponses) PostTokenWithResponse(ctx context.Context, body PostTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*PostTokenR, error)

func (*ClientWithResponses) PostUserDeanonymizeWithBodyWithResponse

func (c *ClientWithResponses) PostUserDeanonymizeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserDeanonymizeR, error)

PostUserDeanonymizeWithBodyWithResponse request with arbitrary body returning *PostUserDeanonymizeR

func (*ClientWithResponses) PostUserDeanonymizeWithResponse

func (c *ClientWithResponses) PostUserDeanonymizeWithResponse(ctx context.Context, body PostUserDeanonymizeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserDeanonymizeR, error)

func (*ClientWithResponses) PostUserEmailChangeWithBodyWithResponse

func (c *ClientWithResponses) PostUserEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserEmailChangeR, error)

PostUserEmailChangeWithBodyWithResponse request with arbitrary body returning *PostUserEmailChangeR

func (*ClientWithResponses) PostUserEmailChangeWithResponse

func (c *ClientWithResponses) PostUserEmailChangeWithResponse(ctx context.Context, body PostUserEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserEmailChangeR, error)

func (*ClientWithResponses) PostUserEmailSendVerificationEmailWithBodyWithResponse

func (c *ClientWithResponses) PostUserEmailSendVerificationEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserEmailSendVerificationEmailR, error)

PostUserEmailSendVerificationEmailWithBodyWithResponse request with arbitrary body returning *PostUserEmailSendVerificationEmailR

func (*ClientWithResponses) PostUserEmailSendVerificationEmailWithResponse

func (c *ClientWithResponses) PostUserEmailSendVerificationEmailWithResponse(ctx context.Context, body PostUserEmailSendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserEmailSendVerificationEmailR, error)

func (*ClientWithResponses) PostUserPasswordResetWithBodyWithResponse

func (c *ClientWithResponses) PostUserPasswordResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserPasswordResetR, error)

PostUserPasswordResetWithBodyWithResponse request with arbitrary body returning *PostUserPasswordResetR

func (*ClientWithResponses) PostUserPasswordResetWithResponse

func (c *ClientWithResponses) PostUserPasswordResetWithResponse(ctx context.Context, body PostUserPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserPasswordResetR, error)

func (*ClientWithResponses) PostUserPasswordWithBodyWithResponse

func (c *ClientWithResponses) PostUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserPasswordR, error)

PostUserPasswordWithBodyWithResponse request with arbitrary body returning *PostUserPasswordR

func (*ClientWithResponses) PostUserPasswordWithResponse

func (c *ClientWithResponses) PostUserPasswordWithResponse(ctx context.Context, body PostUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserPasswordR, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetWellKnownJwksJsonWithResponse request
	GetWellKnownJwksJsonWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWellKnownJwksJsonR, error)

	// GetHealthzWithResponse request
	GetHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthzR, error)

	// HeadHealthzWithResponse request
	HeadHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HeadHealthzR, error)

	// PostLinkIdtokenWithBodyWithResponse request with any body
	PostLinkIdtokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLinkIdtokenR, error)

	PostLinkIdtokenWithResponse(ctx context.Context, body PostLinkIdtokenJSONRequestBody, reqEditors ...RequestEditorFn) (*PostLinkIdtokenR, error)

	// PostPatWithBodyWithResponse request with any body
	PostPatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPatR, error)

	PostPatWithResponse(ctx context.Context, body PostPatJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPatR, error)

	// PostSigninEmailPasswordWithBodyWithResponse request with any body
	PostSigninEmailPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninEmailPasswordR, error)

	PostSigninEmailPasswordWithResponse(ctx context.Context, body PostSigninEmailPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninEmailPasswordR, error)

	// PostSigninIdtokenWithBodyWithResponse request with any body
	PostSigninIdtokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninIdtokenR, error)

	PostSigninIdtokenWithResponse(ctx context.Context, body PostSigninIdtokenJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninIdtokenR, error)

	// PostSigninOtpEmailWithBodyWithResponse request with any body
	PostSigninOtpEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninOtpEmailR, error)

	PostSigninOtpEmailWithResponse(ctx context.Context, body PostSigninOtpEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninOtpEmailR, error)

	// PostSigninOtpEmailVerifyWithBodyWithResponse request with any body
	PostSigninOtpEmailVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninOtpEmailVerifyR, error)

	PostSigninOtpEmailVerifyWithResponse(ctx context.Context, body PostSigninOtpEmailVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninOtpEmailVerifyR, error)

	// PostSigninPasswordlessEmailWithBodyWithResponse request with any body
	PostSigninPasswordlessEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninPasswordlessEmailR, error)

	PostSigninPasswordlessEmailWithResponse(ctx context.Context, body PostSigninPasswordlessEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninPasswordlessEmailR, error)

	// PostSigninPatWithBodyWithResponse request with any body
	PostSigninPatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninPatR, error)

	PostSigninPatWithResponse(ctx context.Context, body PostSigninPatJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninPatR, error)

	// PostSigninWebauthnWithBodyWithResponse request with any body
	PostSigninWebauthnWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninWebauthnR, error)

	PostSigninWebauthnWithResponse(ctx context.Context, body PostSigninWebauthnJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninWebauthnR, error)

	// PostSigninWebauthnVerifyWithBodyWithResponse request with any body
	PostSigninWebauthnVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSigninWebauthnVerifyR, error)

	PostSigninWebauthnVerifyWithResponse(ctx context.Context, body PostSigninWebauthnVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSigninWebauthnVerifyR, error)

	// PostSignupEmailPasswordWithBodyWithResponse request with any body
	PostSignupEmailPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSignupEmailPasswordR, error)

	PostSignupEmailPasswordWithResponse(ctx context.Context, body PostSignupEmailPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSignupEmailPasswordR, error)

	// PostSignupWebauthnWithBodyWithResponse request with any body
	PostSignupWebauthnWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSignupWebauthnR, error)

	PostSignupWebauthnWithResponse(ctx context.Context, body PostSignupWebauthnJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSignupWebauthnR, error)

	// PostSignupWebauthnVerifyWithBodyWithResponse request with any body
	PostSignupWebauthnVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSignupWebauthnVerifyR, error)

	PostSignupWebauthnVerifyWithResponse(ctx context.Context, body PostSignupWebauthnVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostSignupWebauthnVerifyR, error)

	// PostTokenWithBodyWithResponse request with any body
	PostTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostTokenR, error)

	PostTokenWithResponse(ctx context.Context, body PostTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*PostTokenR, error)

	// PostUserDeanonymizeWithBodyWithResponse request with any body
	PostUserDeanonymizeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserDeanonymizeR, error)

	PostUserDeanonymizeWithResponse(ctx context.Context, body PostUserDeanonymizeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserDeanonymizeR, error)

	// PostUserEmailChangeWithBodyWithResponse request with any body
	PostUserEmailChangeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserEmailChangeR, error)

	PostUserEmailChangeWithResponse(ctx context.Context, body PostUserEmailChangeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserEmailChangeR, error)

	// PostUserEmailSendVerificationEmailWithBodyWithResponse request with any body
	PostUserEmailSendVerificationEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserEmailSendVerificationEmailR, error)

	PostUserEmailSendVerificationEmailWithResponse(ctx context.Context, body PostUserEmailSendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserEmailSendVerificationEmailR, error)

	// PostUserPasswordWithBodyWithResponse request with any body
	PostUserPasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserPasswordR, error)

	PostUserPasswordWithResponse(ctx context.Context, body PostUserPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserPasswordR, error)

	// PostUserPasswordResetWithBodyWithResponse request with any body
	PostUserPasswordResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUserPasswordResetR, error)

	PostUserPasswordResetWithResponse(ctx context.Context, body PostUserPasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*PostUserPasswordResetR, error)

	// GetVerifyWithResponse request
	GetVerifyWithResponse(ctx context.Context, params *GetVerifyParams, reqEditors ...RequestEditorFn) (*GetVerifyR, error)

	// GetVersionWithResponse request
	GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionR, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreatePATRequest

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

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 GetHealthzR

type GetHealthzR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OKResponse
}

func ParseGetHealthzR

func ParseGetHealthzR(rsp *http.Response) (*GetHealthzR, error)

ParseGetHealthzR parses an HTTP response from a GetHealthzWithResponse call

func (GetHealthzR) Status

func (r GetHealthzR) Status() string

Status returns HTTPResponse.Status

func (GetHealthzR) StatusCode

func (r GetHealthzR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVerifyParams

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

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 GetVerifyR

type GetVerifyR struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseGetVerifyR

func ParseGetVerifyR(rsp *http.Response) (*GetVerifyR, error)

ParseGetVerifyR parses an HTTP response from a GetVerifyWithResponse call

func (GetVerifyR) Status

func (r GetVerifyR) Status() string

Status returns HTTPResponse.Status

func (GetVerifyR) StatusCode

func (r GetVerifyR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVersionR

type GetVersionR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Version string `json:"version"`
	}
}

func ParseGetVersionR

func ParseGetVersionR(rsp *http.Response) (*GetVersionR, error)

ParseGetVersionR parses an HTTP response from a GetVersionWithResponse call

func (GetVersionR) Status

func (r GetVersionR) Status() string

Status returns HTTPResponse.Status

func (GetVersionR) StatusCode

func (r GetVersionR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWellKnownJwksJsonR

type GetWellKnownJwksJsonR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *JWKSet
}

func ParseGetWellKnownJwksJsonR

func ParseGetWellKnownJwksJsonR(rsp *http.Response) (*GetWellKnownJwksJsonR, error)

ParseGetWellKnownJwksJsonR parses an HTTP response from a GetWellKnownJwksJsonWithResponse call

func (GetWellKnownJwksJsonR) Status

func (r GetWellKnownJwksJsonR) Status() string

Status returns HTTPResponse.Status

func (GetWellKnownJwksJsonR) StatusCode

func (r GetWellKnownJwksJsonR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HeadHealthzR

type HeadHealthzR struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseHeadHealthzR

func ParseHeadHealthzR(rsp *http.Response) (*HeadHealthzR, error)

ParseHeadHealthzR parses an HTTP response from a HeadHealthzWithResponse call

func (HeadHealthzR) Status

func (r HeadHealthzR) Status() string

Status returns HTTPResponse.Status

func (HeadHealthzR) StatusCode

func (r HeadHealthzR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type JWK

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

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

JWKSet defines model for JWKSet.

type LinkIdTokenRequest

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

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

MFAChallengePayload defines model for MFAChallengePayload.

type OKResponse

type OKResponse string

OKResponse defines model for OKResponse.

const (
	OK OKResponse = "OK"
)

Defines values for OKResponse.

type OptionsRedirectTo

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

OptionsRedirectTo defines model for OptionsRedirectTo.

type PostLinkIdtokenJSONRequestBody

type PostLinkIdtokenJSONRequestBody = LinkIdTokenRequest

PostLinkIdtokenJSONRequestBody defines body for PostLinkIdtoken for application/json ContentType.

type PostLinkIdtokenR

type PostLinkIdtokenR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OKResponse
}

func ParsePostLinkIdtokenR

func ParsePostLinkIdtokenR(rsp *http.Response) (*PostLinkIdtokenR, error)

ParsePostLinkIdtokenR parses an HTTP response from a PostLinkIdtokenWithResponse call

func (PostLinkIdtokenR) Status

func (r PostLinkIdtokenR) Status() string

Status returns HTTPResponse.Status

func (PostLinkIdtokenR) StatusCode

func (r PostLinkIdtokenR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostPatJSONRequestBody

type PostPatJSONRequestBody = CreatePATRequest

PostPatJSONRequestBody defines body for PostPat for application/json ContentType.

type PostPatR

type PostPatR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CreatePATResponse
}

func ParsePostPatR

func ParsePostPatR(rsp *http.Response) (*PostPatR, error)

ParsePostPatR parses an HTTP response from a PostPatWithResponse call

func (PostPatR) Status

func (r PostPatR) Status() string

Status returns HTTPResponse.Status

func (PostPatR) StatusCode

func (r PostPatR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSigninEmailPasswordJSONRequestBody

type PostSigninEmailPasswordJSONRequestBody = SignInEmailPasswordRequest

PostSigninEmailPasswordJSONRequestBody defines body for PostSigninEmailPassword for application/json ContentType.

type PostSigninEmailPasswordR

type PostSigninEmailPasswordR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SignInEmailPasswordResponse
}

func ParsePostSigninEmailPasswordR

func ParsePostSigninEmailPasswordR(rsp *http.Response) (*PostSigninEmailPasswordR, error)

ParsePostSigninEmailPasswordR parses an HTTP response from a PostSigninEmailPasswordWithResponse call

func (PostSigninEmailPasswordR) Status

func (r PostSigninEmailPasswordR) Status() string

Status returns HTTPResponse.Status

func (PostSigninEmailPasswordR) StatusCode

func (r PostSigninEmailPasswordR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSigninIdtokenJSONRequestBody

type PostSigninIdtokenJSONRequestBody = SignInIdTokenRequest

PostSigninIdtokenJSONRequestBody defines body for PostSigninIdtoken for application/json ContentType.

type PostSigninIdtokenR

type PostSigninIdtokenR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SessionPayload
}

func ParsePostSigninIdtokenR

func ParsePostSigninIdtokenR(rsp *http.Response) (*PostSigninIdtokenR, error)

ParsePostSigninIdtokenR parses an HTTP response from a PostSigninIdtokenWithResponse call

func (PostSigninIdtokenR) Status

func (r PostSigninIdtokenR) Status() string

Status returns HTTPResponse.Status

func (PostSigninIdtokenR) StatusCode

func (r PostSigninIdtokenR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSigninOtpEmailJSONRequestBody

type PostSigninOtpEmailJSONRequestBody = SignInOTPEmailRequest

PostSigninOtpEmailJSONRequestBody defines body for PostSigninOtpEmail for application/json ContentType.

type PostSigninOtpEmailR

type PostSigninOtpEmailR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OKResponse
}

func ParsePostSigninOtpEmailR

func ParsePostSigninOtpEmailR(rsp *http.Response) (*PostSigninOtpEmailR, error)

ParsePostSigninOtpEmailR parses an HTTP response from a PostSigninOtpEmailWithResponse call

func (PostSigninOtpEmailR) Status

func (r PostSigninOtpEmailR) Status() string

Status returns HTTPResponse.Status

func (PostSigninOtpEmailR) StatusCode

func (r PostSigninOtpEmailR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSigninOtpEmailVerifyJSONRequestBody

type PostSigninOtpEmailVerifyJSONRequestBody = SignInOTPEmailVerifyRequest

PostSigninOtpEmailVerifyJSONRequestBody defines body for PostSigninOtpEmailVerify for application/json ContentType.

type PostSigninOtpEmailVerifyR

type PostSigninOtpEmailVerifyR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SignInOTPEmailVerifyResponse
}

func ParsePostSigninOtpEmailVerifyR

func ParsePostSigninOtpEmailVerifyR(rsp *http.Response) (*PostSigninOtpEmailVerifyR, error)

ParsePostSigninOtpEmailVerifyR parses an HTTP response from a PostSigninOtpEmailVerifyWithResponse call

func (PostSigninOtpEmailVerifyR) Status

func (r PostSigninOtpEmailVerifyR) Status() string

Status returns HTTPResponse.Status

func (PostSigninOtpEmailVerifyR) StatusCode

func (r PostSigninOtpEmailVerifyR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSigninPasswordlessEmailJSONRequestBody

type PostSigninPasswordlessEmailJSONRequestBody = SignInPasswordlessEmailRequest

PostSigninPasswordlessEmailJSONRequestBody defines body for PostSigninPasswordlessEmail for application/json ContentType.

type PostSigninPasswordlessEmailR

type PostSigninPasswordlessEmailR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OKResponse
}

func ParsePostSigninPasswordlessEmailR

func ParsePostSigninPasswordlessEmailR(rsp *http.Response) (*PostSigninPasswordlessEmailR, error)

ParsePostSigninPasswordlessEmailR parses an HTTP response from a PostSigninPasswordlessEmailWithResponse call

func (PostSigninPasswordlessEmailR) Status

Status returns HTTPResponse.Status

func (PostSigninPasswordlessEmailR) StatusCode

func (r PostSigninPasswordlessEmailR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSigninPatJSONRequestBody

type PostSigninPatJSONRequestBody = SignInPATRequest

PostSigninPatJSONRequestBody defines body for PostSigninPat for application/json ContentType.

type PostSigninPatR

type PostSigninPatR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SessionPayload
}

func ParsePostSigninPatR

func ParsePostSigninPatR(rsp *http.Response) (*PostSigninPatR, error)

ParsePostSigninPatR parses an HTTP response from a PostSigninPatWithResponse call

func (PostSigninPatR) Status

func (r PostSigninPatR) Status() string

Status returns HTTPResponse.Status

func (PostSigninPatR) StatusCode

func (r PostSigninPatR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSigninWebauthnJSONRequestBody

type PostSigninWebauthnJSONRequestBody = SignInWebauthnRequest

PostSigninWebauthnJSONRequestBody defines body for PostSigninWebauthn for application/json ContentType.

type PostSigninWebauthnR

type PostSigninWebauthnR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SignInWebauthnResponse
}

func ParsePostSigninWebauthnR

func ParsePostSigninWebauthnR(rsp *http.Response) (*PostSigninWebauthnR, error)

ParsePostSigninWebauthnR parses an HTTP response from a PostSigninWebauthnWithResponse call

func (PostSigninWebauthnR) Status

func (r PostSigninWebauthnR) Status() string

Status returns HTTPResponse.Status

func (PostSigninWebauthnR) StatusCode

func (r PostSigninWebauthnR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSigninWebauthnVerifyJSONRequestBody

type PostSigninWebauthnVerifyJSONRequestBody = SignInWebauthnVerifyRequest

PostSigninWebauthnVerifyJSONRequestBody defines body for PostSigninWebauthnVerify for application/json ContentType.

type PostSigninWebauthnVerifyR

type PostSigninWebauthnVerifyR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SessionPayload
}

func ParsePostSigninWebauthnVerifyR

func ParsePostSigninWebauthnVerifyR(rsp *http.Response) (*PostSigninWebauthnVerifyR, error)

ParsePostSigninWebauthnVerifyR parses an HTTP response from a PostSigninWebauthnVerifyWithResponse call

func (PostSigninWebauthnVerifyR) Status

func (r PostSigninWebauthnVerifyR) Status() string

Status returns HTTPResponse.Status

func (PostSigninWebauthnVerifyR) StatusCode

func (r PostSigninWebauthnVerifyR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSignupEmailPasswordJSONRequestBody

type PostSignupEmailPasswordJSONRequestBody = SignUpEmailPasswordRequest

PostSignupEmailPasswordJSONRequestBody defines body for PostSignupEmailPassword for application/json ContentType.

type PostSignupEmailPasswordR

type PostSignupEmailPasswordR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SessionPayload
	JSON403      *ErrorResponse
	JSON409      *ErrorResponse
}

func ParsePostSignupEmailPasswordR

func ParsePostSignupEmailPasswordR(rsp *http.Response) (*PostSignupEmailPasswordR, error)

ParsePostSignupEmailPasswordR parses an HTTP response from a PostSignupEmailPasswordWithResponse call

func (PostSignupEmailPasswordR) Status

func (r PostSignupEmailPasswordR) Status() string

Status returns HTTPResponse.Status

func (PostSignupEmailPasswordR) StatusCode

func (r PostSignupEmailPasswordR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSignupWebauthnJSONRequestBody

type PostSignupWebauthnJSONRequestBody = SignUpWebauthnRequest

PostSignupWebauthnJSONRequestBody defines body for PostSignupWebauthn for application/json ContentType.

type PostSignupWebauthnR

type PostSignupWebauthnR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SignUpWebauthnResponse
}

func ParsePostSignupWebauthnR

func ParsePostSignupWebauthnR(rsp *http.Response) (*PostSignupWebauthnR, error)

ParsePostSignupWebauthnR parses an HTTP response from a PostSignupWebauthnWithResponse call

func (PostSignupWebauthnR) Status

func (r PostSignupWebauthnR) Status() string

Status returns HTTPResponse.Status

func (PostSignupWebauthnR) StatusCode

func (r PostSignupWebauthnR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostSignupWebauthnVerifyJSONRequestBody

type PostSignupWebauthnVerifyJSONRequestBody = SignUpWebauthnVerifyRequest

PostSignupWebauthnVerifyJSONRequestBody defines body for PostSignupWebauthnVerify for application/json ContentType.

type PostSignupWebauthnVerifyR

type PostSignupWebauthnVerifyR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SessionPayload
}

func ParsePostSignupWebauthnVerifyR

func ParsePostSignupWebauthnVerifyR(rsp *http.Response) (*PostSignupWebauthnVerifyR, error)

ParsePostSignupWebauthnVerifyR parses an HTTP response from a PostSignupWebauthnVerifyWithResponse call

func (PostSignupWebauthnVerifyR) Status

func (r PostSignupWebauthnVerifyR) Status() string

Status returns HTTPResponse.Status

func (PostSignupWebauthnVerifyR) StatusCode

func (r PostSignupWebauthnVerifyR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostTokenJSONRequestBody

type PostTokenJSONRequestBody = RefreshTokenRequest

PostTokenJSONRequestBody defines body for PostToken for application/json ContentType.

type PostTokenR

type PostTokenR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Session
}

func ParsePostTokenR

func ParsePostTokenR(rsp *http.Response) (*PostTokenR, error)

ParsePostTokenR parses an HTTP response from a PostTokenWithResponse call

func (PostTokenR) Status

func (r PostTokenR) Status() string

Status returns HTTPResponse.Status

func (PostTokenR) StatusCode

func (r PostTokenR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostUserDeanonymizeJSONRequestBody

type PostUserDeanonymizeJSONRequestBody = UserDeanonymizeRequest

PostUserDeanonymizeJSONRequestBody defines body for PostUserDeanonymize for application/json ContentType.

type PostUserDeanonymizeR

type PostUserDeanonymizeR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OKResponse
}

func ParsePostUserDeanonymizeR

func ParsePostUserDeanonymizeR(rsp *http.Response) (*PostUserDeanonymizeR, error)

ParsePostUserDeanonymizeR parses an HTTP response from a PostUserDeanonymizeWithResponse call

func (PostUserDeanonymizeR) Status

func (r PostUserDeanonymizeR) Status() string

Status returns HTTPResponse.Status

func (PostUserDeanonymizeR) StatusCode

func (r PostUserDeanonymizeR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostUserEmailChangeJSONRequestBody

type PostUserEmailChangeJSONRequestBody = UserEmailChangeRequest

PostUserEmailChangeJSONRequestBody defines body for PostUserEmailChange for application/json ContentType.

type PostUserEmailChangeR

type PostUserEmailChangeR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OKResponse
}

func ParsePostUserEmailChangeR

func ParsePostUserEmailChangeR(rsp *http.Response) (*PostUserEmailChangeR, error)

ParsePostUserEmailChangeR parses an HTTP response from a PostUserEmailChangeWithResponse call

func (PostUserEmailChangeR) Status

func (r PostUserEmailChangeR) Status() string

Status returns HTTPResponse.Status

func (PostUserEmailChangeR) StatusCode

func (r PostUserEmailChangeR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostUserEmailSendVerificationEmailJSONRequestBody

type PostUserEmailSendVerificationEmailJSONRequestBody = UserEmailSendVerificationEmailRequest

PostUserEmailSendVerificationEmailJSONRequestBody defines body for PostUserEmailSendVerificationEmail for application/json ContentType.

type PostUserEmailSendVerificationEmailR

type PostUserEmailSendVerificationEmailR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OKResponse
}

func ParsePostUserEmailSendVerificationEmailR

func ParsePostUserEmailSendVerificationEmailR(rsp *http.Response) (*PostUserEmailSendVerificationEmailR, error)

ParsePostUserEmailSendVerificationEmailR parses an HTTP response from a PostUserEmailSendVerificationEmailWithResponse call

func (PostUserEmailSendVerificationEmailR) Status

Status returns HTTPResponse.Status

func (PostUserEmailSendVerificationEmailR) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostUserPasswordJSONRequestBody

type PostUserPasswordJSONRequestBody = UserPasswordRequest

PostUserPasswordJSONRequestBody defines body for PostUserPassword for application/json ContentType.

type PostUserPasswordR

type PostUserPasswordR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OKResponse
}

func ParsePostUserPasswordR

func ParsePostUserPasswordR(rsp *http.Response) (*PostUserPasswordR, error)

ParsePostUserPasswordR parses an HTTP response from a PostUserPasswordWithResponse call

func (PostUserPasswordR) Status

func (r PostUserPasswordR) Status() string

Status returns HTTPResponse.Status

func (PostUserPasswordR) StatusCode

func (r PostUserPasswordR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostUserPasswordResetJSONRequestBody

type PostUserPasswordResetJSONRequestBody = UserPasswordResetRequest

PostUserPasswordResetJSONRequestBody defines body for PostUserPasswordReset for application/json ContentType.

type PostUserPasswordResetR

type PostUserPasswordResetR struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OKResponse
}

func ParsePostUserPasswordResetR

func ParsePostUserPasswordResetR(rsp *http.Response) (*PostUserPasswordResetR, error)

ParsePostUserPasswordResetR parses an HTTP response from a PostUserPasswordResetWithResponse call

func (PostUserPasswordResetR) Status

func (r PostUserPasswordResetR) Status() string

Status returns HTTPResponse.Status

func (PostUserPasswordResetR) StatusCode

func (r PostUserPasswordResetR) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Provider

type Provider string

Provider defines model for Provider.

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

Defines values for Provider.

type RedirectToQuery

type RedirectToQuery = string

RedirectToQuery Target URL for the redirect

type RefreshTokenRequest

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

RefreshTokenRequest defines model for RefreshTokenRequest.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

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

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

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

SignInEmailPasswordResponse defines model for SignInEmailPasswordResponse.

type SignInIdTokenRequest

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

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

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

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

SignInOTPEmailVerifyResponse defines model for SignInOTPEmailVerifyResponse.

type SignInPATRequest

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

SignInPATRequest defines model for SignInPATRequest.

type SignInPasswordlessEmailRequest

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

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

SignInWebauthnRequest defines model for SignInWebauthnRequest.

type SignInWebauthnResponse

type SignInWebauthnResponse = protocol.PublicKeyCredentialRequestOptions

SignInWebauthnResponse defines model for SignInWebauthnResponse.

type SignInWebauthnVerifyRequest

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

	// Email A valid email. Deprecated, no longer used
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	Email                *openapi_types.Email   `json:"email,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

SignInWebauthnVerifyRequest defines model for SignInWebauthnVerifyRequest.

func (SignInWebauthnVerifyRequest) Get

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

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

Override default JSON handling for SignInWebauthnVerifyRequest to handle AdditionalProperties

func (*SignInWebauthnVerifyRequest) Set

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

Setter for additional properties for SignInWebauthnVerifyRequest

func (*SignInWebauthnVerifyRequest) UnmarshalJSON

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

Override default JSON handling for SignInWebauthnVerifyRequest to handle AdditionalProperties

type SignUpEmailPasswordRequest

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

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

type SignUpWebauthnResponse = protocol.PublicKeyCredentialCreationOptions

SignUpWebauthnResponse defines model for SignUpWebauthnResponse.

type SignUpWebauthnVerifyRequest

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

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

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

Override default JSON handling for SignUpWebauthnVerifyRequest to handle AdditionalProperties

func (*SignUpWebauthnVerifyRequest) Set

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

Setter for additional properties for SignUpWebauthnVerifyRequest

func (*SignUpWebauthnVerifyRequest) UnmarshalJSON

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

Override default JSON handling for SignUpWebauthnVerifyRequest to handle AdditionalProperties

type TicketQuery

type TicketQuery = string

TicketQuery Ticket

type TicketTypeQuery

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

type UserDeanonymizeRequest struct {
	// Connection Deprecated, will be ignored
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	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

type UserDeanonymizeRequestSignInMethod string

UserDeanonymizeRequestSignInMethod Which sign-in method to use

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

Defines values for UserDeanonymizeRequestSignInMethod.

type UserEmailChangeRequest

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

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

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

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