authentication

package
v8.11.3 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const (
	ApiKeyScopes     = "apiKey.Scopes"
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewCheckAuthorizationRequest

func NewCheckAuthorizationRequest(server string, body CheckAuthorizationJSONRequestBody) (*http.Request, error)

NewCheckAuthorizationRequest calls the generic CheckAuthorization builder with application/json body

func NewCheckAuthorizationRequestWithBody

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

NewCheckAuthorizationRequestWithBody generates requests for CheckAuthorization with any type of body

func NewCreateOrganizationMemberRequest

func NewCreateOrganizationMemberRequest(server string, body CreateOrganizationMemberJSONRequestBody) (*http.Request, error)

NewCreateOrganizationMemberRequest calls the generic CreateOrganizationMember builder with application/json body

func NewCreateOrganizationMemberRequestWithBody

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

NewCreateOrganizationMemberRequestWithBody generates requests for CreateOrganizationMember with any type of body

func NewDeleteOrganizationMemberRequest

func NewDeleteOrganizationMemberRequest(server string, memberId openapi_types.UUID) (*http.Request, error)

NewDeleteOrganizationMemberRequest generates requests for DeleteOrganizationMember

func NewDisableTwoFactorRequest

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

NewDisableTwoFactorRequest generates requests for DisableTwoFactor

func NewEnableTwoFactorRequest

func NewEnableTwoFactorRequest(server string, body EnableTwoFactorJSONRequestBody) (*http.Request, error)

NewEnableTwoFactorRequest calls the generic EnableTwoFactor builder with application/json body

func NewEnableTwoFactorRequestWithBody

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

NewEnableTwoFactorRequestWithBody generates requests for EnableTwoFactor with any type of body

func NewGenerateOneTimeTokenRequest

func NewGenerateOneTimeTokenRequest(server string, body GenerateOneTimeTokenJSONRequestBody) (*http.Request, error)

NewGenerateOneTimeTokenRequest calls the generic GenerateOneTimeToken builder with application/json body

func NewGenerateOneTimeTokenRequestWithBody

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

NewGenerateOneTimeTokenRequestWithBody generates requests for GenerateOneTimeToken with any type of body

func NewGetAuthorizationContextRequest

func NewGetAuthorizationContextRequest(server string, organizationId openapi_types.UUID) (*http.Request, error)

NewGetAuthorizationContextRequest generates requests for GetAuthorizationContext

func NewGetCurrentOrganizationRequest

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

NewGetCurrentOrganizationRequest generates requests for GetCurrentOrganization

func NewGetCurrentUserRequest

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

NewGetCurrentUserRequest generates requests for GetCurrentUser

func NewGetOrganizationAdminEmailsRequest

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

NewGetOrganizationAdminEmailsRequest generates requests for GetOrganizationAdminEmails

func NewGetOrganizationMemberRequest

func NewGetOrganizationMemberRequest(server string, memberId openapi_types.UUID) (*http.Request, error)

NewGetOrganizationMemberRequest generates requests for GetOrganizationMember

func NewGetTwoFactorStatusRequest

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

NewGetTwoFactorStatusRequest generates requests for GetTwoFactorStatus

func NewListAuditLogsRequest

func NewListAuditLogsRequest(server string, params *ListAuditLogsParams) (*http.Request, error)

NewListAuditLogsRequest generates requests for ListAuditLogs

func NewListAvailableRolesRequest

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

NewListAvailableRolesRequest generates requests for ListAvailableRoles

func NewListChildOrganizationsRequest

func NewListChildOrganizationsRequest(server string, params *ListChildOrganizationsParams) (*http.Request, error)

NewListChildOrganizationsRequest generates requests for ListChildOrganizations

func NewListDelegatedAccessAssignmentsRequest

func NewListDelegatedAccessAssignmentsRequest(server string, userId openapi_types.UUID) (*http.Request, error)

NewListDelegatedAccessAssignmentsRequest generates requests for ListDelegatedAccessAssignments

func NewListDelegatedAccessUsersRequest

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

NewListDelegatedAccessUsersRequest generates requests for ListDelegatedAccessUsers

func NewListOrganizationMembersRequest

func NewListOrganizationMembersRequest(server string, params *ListOrganizationMembersParams) (*http.Request, error)

NewListOrganizationMembersRequest generates requests for ListOrganizationMembers

func NewListOrganizationsRequest

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

NewListOrganizationsRequest generates requests for ListOrganizations

func NewListUserGrantedPermissionsRequest

func NewListUserGrantedPermissionsRequest(server string, organizationId openapi_types.UUID) (*http.Request, error)

NewListUserGrantedPermissionsRequest generates requests for ListUserGrantedPermissions

func NewLoginRequest

func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)

NewLoginRequest calls the generic Login builder with application/json body

func NewLoginRequestWithBody

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

NewLoginRequestWithBody generates requests for Login with any type of body

func NewLoginWithOneTimeTokenRequest

func NewLoginWithOneTimeTokenRequest(server string, body LoginWithOneTimeTokenJSONRequestBody) (*http.Request, error)

NewLoginWithOneTimeTokenRequest calls the generic LoginWithOneTimeToken builder with application/json body

func NewLoginWithOneTimeTokenRequestWithBody

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

NewLoginWithOneTimeTokenRequestWithBody generates requests for LoginWithOneTimeToken with any type of body

func NewLogoutRequest

func NewLogoutRequest(server string, body LogoutJSONRequestBody) (*http.Request, error)

NewLogoutRequest calls the generic Logout builder with application/json body

func NewLogoutRequestWithBody

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

NewLogoutRequestWithBody generates requests for Logout with any type of body

func NewRefreshTokenRequest

func NewRefreshTokenRequest(server string, body RefreshTokenJSONRequestBody) (*http.Request, error)

NewRefreshTokenRequest calls the generic RefreshToken builder with application/json body

func NewRefreshTokenRequestWithBody

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

NewRefreshTokenRequestWithBody generates requests for RefreshToken with any type of body

func NewRegenerateBackupCodesRequest

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

NewRegenerateBackupCodesRequest generates requests for RegenerateBackupCodes

func NewReplaceDelegatedAccessAssignmentsRequest

func NewReplaceDelegatedAccessAssignmentsRequest(server string, userId openapi_types.UUID, body ReplaceDelegatedAccessAssignmentsJSONRequestBody) (*http.Request, error)

NewReplaceDelegatedAccessAssignmentsRequest calls the generic ReplaceDelegatedAccessAssignments builder with application/json body

func NewReplaceDelegatedAccessAssignmentsRequestWithBody

func NewReplaceDelegatedAccessAssignmentsRequestWithBody(server string, userId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewReplaceDelegatedAccessAssignmentsRequestWithBody generates requests for ReplaceDelegatedAccessAssignments with any type of body

func NewResetPasswordRequest

func NewResetPasswordRequest(server string, body ResetPasswordJSONRequestBody) (*http.Request, error)

NewResetPasswordRequest calls the generic ResetPassword builder with application/json body

func NewResetPasswordRequestWithBody

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

NewResetPasswordRequestWithBody generates requests for ResetPassword with any type of body

func NewSetupTwoFactorRequest

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

NewSetupTwoFactorRequest generates requests for SetupTwoFactor

func NewUpdateOrganizationMemberRequest

func NewUpdateOrganizationMemberRequest(server string, memberId openapi_types.UUID, body UpdateOrganizationMemberJSONRequestBody) (*http.Request, error)

NewUpdateOrganizationMemberRequest calls the generic UpdateOrganizationMember builder with application/json body

func NewUpdateOrganizationMemberRequestWithBody

func NewUpdateOrganizationMemberRequestWithBody(server string, memberId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateOrganizationMemberRequestWithBody generates requests for UpdateOrganizationMember with any type of body

Types

type BadRequestResponse

type BadRequestResponse = FlashStartErrorBody

BadRequestResponse defines model for BadRequest.

type CheckAuthorizationJSONBody

type CheckAuthorizationJSONBody struct {
	Context        *map[string]interface{} `json:"context,omitempty"`
	OrganizationId openapi_types.UUID      `json:"organizationId"`
	PermissionName string                  `json:"permissionName"`
}

CheckAuthorizationJSONBody defines parameters for CheckAuthorization.

type CheckAuthorizationJSONRequestBody

type CheckAuthorizationJSONRequestBody CheckAuthorizationJSONBody

CheckAuthorizationJSONRequestBody defines body for CheckAuthorization for application/json ContentType.

type CheckAuthorizationResponse

type CheckAuthorizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Can bool `json:"can"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseCheckAuthorizationResponse

func ParseCheckAuthorizationResponse(rsp *http.Response) (*CheckAuthorizationResponse, error)

ParseCheckAuthorizationResponse parses an HTTP response from a CheckAuthorizationWithResponse call

func (CheckAuthorizationResponse) Status

Status returns HTTPResponse.Status

func (CheckAuthorizationResponse) StatusCode

func (r CheckAuthorizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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) CheckAuthorization

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

func (*Client) CheckAuthorizationWithBody

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

func (*Client) CreateOrganizationMember

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

func (*Client) CreateOrganizationMemberWithBody

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

func (*Client) DeleteOrganizationMember

func (c *Client) DeleteOrganizationMember(ctx context.Context, memberId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DisableTwoFactor

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

func (*Client) EnableTwoFactor

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

func (*Client) EnableTwoFactorWithBody

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

func (*Client) GenerateOneTimeToken

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

func (*Client) GenerateOneTimeTokenWithBody

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

func (*Client) GetAuthorizationContext

func (c *Client) GetAuthorizationContext(ctx context.Context, organizationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetCurrentOrganization

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

func (*Client) GetCurrentUser

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

func (*Client) GetOrganizationAdminEmails

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

func (*Client) GetOrganizationMember

func (c *Client) GetOrganizationMember(ctx context.Context, memberId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetTwoFactorStatus

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

func (*Client) ListAuditLogs

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

func (*Client) ListAvailableRoles

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

func (*Client) ListChildOrganizations

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

func (*Client) ListDelegatedAccessAssignments

func (c *Client) ListDelegatedAccessAssignments(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListDelegatedAccessUsers

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

func (*Client) ListOrganizationMembers

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

func (*Client) ListOrganizations

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

func (*Client) ListUserGrantedPermissions

func (c *Client) ListUserGrantedPermissions(ctx context.Context, organizationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) Login

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

func (*Client) LoginWithBody

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

func (*Client) LoginWithOneTimeToken

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

func (*Client) LoginWithOneTimeTokenWithBody

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

func (*Client) Logout

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

func (*Client) LogoutWithBody

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

func (*Client) RefreshToken

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

func (*Client) RefreshTokenWithBody

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

func (*Client) RegenerateBackupCodes

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

func (*Client) ReplaceDelegatedAccessAssignments

func (c *Client) ReplaceDelegatedAccessAssignments(ctx context.Context, userId openapi_types.UUID, body ReplaceDelegatedAccessAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReplaceDelegatedAccessAssignmentsWithBody

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

func (*Client) ResetPassword

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

func (*Client) ResetPasswordWithBody

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

func (*Client) SetupTwoFactor

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

func (*Client) UpdateOrganizationMember

func (c *Client) UpdateOrganizationMember(ctx context.Context, memberId openapi_types.UUID, body UpdateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateOrganizationMemberWithBody

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

type ClientInterface

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

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

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

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

	EnableTwoFactor(ctx context.Context, body EnableTwoFactorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

	CheckAuthorization(ctx context.Context, body CheckAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	// ListDelegatedAccessAssignments request
	ListDelegatedAccessAssignments(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ReplaceDelegatedAccessAssignments(ctx context.Context, userId openapi_types.UUID, body ReplaceDelegatedAccessAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	Logout(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	CreateOrganizationMember(ctx context.Context, body CreateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteOrganizationMember request
	DeleteOrganizationMember(ctx context.Context, memberId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOrganizationMember request
	GetOrganizationMember(ctx context.Context, memberId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateOrganizationMember(ctx context.Context, memberId openapi_types.UUID, body UpdateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	GenerateOneTimeToken(ctx context.Context, body GenerateOneTimeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	LoginWithOneTimeToken(ctx context.Context, body LoginWithOneTimeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAuthorizationContext request
	GetAuthorizationContext(ctx context.Context, organizationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListUserGrantedPermissions request
	ListUserGrantedPermissions(ctx context.Context, organizationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	RefreshToken(ctx context.Context, body RefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ResetPassword(ctx context.Context, body ResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListAvailableRoles request
	ListAvailableRoles(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) CheckAuthorizationWithBodyWithResponse

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

CheckAuthorizationWithBodyWithResponse request with arbitrary body returning *CheckAuthorizationResponse

func (*ClientWithResponses) CheckAuthorizationWithResponse

func (c *ClientWithResponses) CheckAuthorizationWithResponse(ctx context.Context, body CheckAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckAuthorizationResponse, error)

func (*ClientWithResponses) CreateOrganizationMemberWithBodyWithResponse

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

CreateOrganizationMemberWithBodyWithResponse request with arbitrary body returning *CreateOrganizationMemberResponse

func (*ClientWithResponses) CreateOrganizationMemberWithResponse

func (c *ClientWithResponses) CreateOrganizationMemberWithResponse(ctx context.Context, body CreateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationMemberResponse, error)

func (*ClientWithResponses) DeleteOrganizationMemberWithResponse

func (c *ClientWithResponses) DeleteOrganizationMemberWithResponse(ctx context.Context, memberId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteOrganizationMemberResponse, error)

DeleteOrganizationMemberWithResponse request returning *DeleteOrganizationMemberResponse

func (*ClientWithResponses) DisableTwoFactorWithResponse

func (c *ClientWithResponses) DisableTwoFactorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DisableTwoFactorResponse, error)

DisableTwoFactorWithResponse request returning *DisableTwoFactorResponse

func (*ClientWithResponses) EnableTwoFactorWithBodyWithResponse

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

EnableTwoFactorWithBodyWithResponse request with arbitrary body returning *EnableTwoFactorResponse

func (*ClientWithResponses) EnableTwoFactorWithResponse

func (c *ClientWithResponses) EnableTwoFactorWithResponse(ctx context.Context, body EnableTwoFactorJSONRequestBody, reqEditors ...RequestEditorFn) (*EnableTwoFactorResponse, error)

func (*ClientWithResponses) GenerateOneTimeTokenWithBodyWithResponse

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

GenerateOneTimeTokenWithBodyWithResponse request with arbitrary body returning *GenerateOneTimeTokenResponse

func (*ClientWithResponses) GenerateOneTimeTokenWithResponse

func (c *ClientWithResponses) GenerateOneTimeTokenWithResponse(ctx context.Context, body GenerateOneTimeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateOneTimeTokenResponse, error)

func (*ClientWithResponses) GetAuthorizationContextWithResponse

func (c *ClientWithResponses) GetAuthorizationContextWithResponse(ctx context.Context, organizationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthorizationContextResponse, error)

GetAuthorizationContextWithResponse request returning *GetAuthorizationContextResponse

func (*ClientWithResponses) GetCurrentOrganizationWithResponse

func (c *ClientWithResponses) GetCurrentOrganizationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentOrganizationResponse, error)

GetCurrentOrganizationWithResponse request returning *GetCurrentOrganizationResponse

func (*ClientWithResponses) GetCurrentUserWithResponse

func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)

GetCurrentUserWithResponse request returning *GetCurrentUserResponse

func (*ClientWithResponses) GetOrganizationAdminEmailsWithResponse

func (c *ClientWithResponses) GetOrganizationAdminEmailsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationAdminEmailsResponse, error)

GetOrganizationAdminEmailsWithResponse request returning *GetOrganizationAdminEmailsResponse

func (*ClientWithResponses) GetOrganizationMemberWithResponse

func (c *ClientWithResponses) GetOrganizationMemberWithResponse(ctx context.Context, memberId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrganizationMemberResponse, error)

GetOrganizationMemberWithResponse request returning *GetOrganizationMemberResponse

func (*ClientWithResponses) GetTwoFactorStatusWithResponse

func (c *ClientWithResponses) GetTwoFactorStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTwoFactorStatusResponse, error)

GetTwoFactorStatusWithResponse request returning *GetTwoFactorStatusResponse

func (*ClientWithResponses) ListAuditLogsWithResponse

func (c *ClientWithResponses) ListAuditLogsWithResponse(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*ListAuditLogsResponse, error)

ListAuditLogsWithResponse request returning *ListAuditLogsResponse

func (*ClientWithResponses) ListAvailableRolesWithResponse

func (c *ClientWithResponses) ListAvailableRolesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAvailableRolesResponse, error)

ListAvailableRolesWithResponse request returning *ListAvailableRolesResponse

func (*ClientWithResponses) ListChildOrganizationsWithResponse

func (c *ClientWithResponses) ListChildOrganizationsWithResponse(ctx context.Context, params *ListChildOrganizationsParams, reqEditors ...RequestEditorFn) (*ListChildOrganizationsResponse, error)

ListChildOrganizationsWithResponse request returning *ListChildOrganizationsResponse

func (*ClientWithResponses) ListDelegatedAccessAssignmentsWithResponse

func (c *ClientWithResponses) ListDelegatedAccessAssignmentsWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListDelegatedAccessAssignmentsResponse, error)

ListDelegatedAccessAssignmentsWithResponse request returning *ListDelegatedAccessAssignmentsResponse

func (*ClientWithResponses) ListDelegatedAccessUsersWithResponse

func (c *ClientWithResponses) ListDelegatedAccessUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDelegatedAccessUsersResponse, error)

ListDelegatedAccessUsersWithResponse request returning *ListDelegatedAccessUsersResponse

func (*ClientWithResponses) ListOrganizationMembersWithResponse

func (c *ClientWithResponses) ListOrganizationMembersWithResponse(ctx context.Context, params *ListOrganizationMembersParams, reqEditors ...RequestEditorFn) (*ListOrganizationMembersResponse, error)

ListOrganizationMembersWithResponse request returning *ListOrganizationMembersResponse

func (*ClientWithResponses) ListOrganizationsWithResponse

func (c *ClientWithResponses) ListOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)

ListOrganizationsWithResponse request returning *ListOrganizationsResponse

func (*ClientWithResponses) ListUserGrantedPermissionsWithResponse

func (c *ClientWithResponses) ListUserGrantedPermissionsWithResponse(ctx context.Context, organizationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserGrantedPermissionsResponse, error)

ListUserGrantedPermissionsWithResponse request returning *ListUserGrantedPermissionsResponse

func (*ClientWithResponses) LoginWithBodyWithResponse

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

LoginWithBodyWithResponse request with arbitrary body returning *LoginResponse

func (*ClientWithResponses) LoginWithOneTimeTokenWithBodyWithResponse

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

LoginWithOneTimeTokenWithBodyWithResponse request with arbitrary body returning *LoginWithOneTimeTokenResponse

func (*ClientWithResponses) LoginWithOneTimeTokenWithResponse

func (c *ClientWithResponses) LoginWithOneTimeTokenWithResponse(ctx context.Context, body LoginWithOneTimeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithOneTimeTokenResponse, error)

func (*ClientWithResponses) LoginWithResponse

func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

func (*ClientWithResponses) LogoutWithBodyWithResponse

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

LogoutWithBodyWithResponse request with arbitrary body returning *LogoutResponse

func (*ClientWithResponses) LogoutWithResponse

func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

func (*ClientWithResponses) RefreshTokenWithBodyWithResponse

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

RefreshTokenWithBodyWithResponse request with arbitrary body returning *RefreshTokenResponse

func (*ClientWithResponses) RefreshTokenWithResponse

func (c *ClientWithResponses) RefreshTokenWithResponse(ctx context.Context, body RefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshTokenResponse, error)

func (*ClientWithResponses) RegenerateBackupCodesWithResponse

func (c *ClientWithResponses) RegenerateBackupCodesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RegenerateBackupCodesResponse, error)

RegenerateBackupCodesWithResponse request returning *RegenerateBackupCodesResponse

func (*ClientWithResponses) ReplaceDelegatedAccessAssignmentsWithBodyWithResponse

func (c *ClientWithResponses) ReplaceDelegatedAccessAssignmentsWithBodyWithResponse(ctx context.Context, userId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceDelegatedAccessAssignmentsResponse, error)

ReplaceDelegatedAccessAssignmentsWithBodyWithResponse request with arbitrary body returning *ReplaceDelegatedAccessAssignmentsResponse

func (*ClientWithResponses) ResetPasswordWithBodyWithResponse

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

ResetPasswordWithBodyWithResponse request with arbitrary body returning *ResetPasswordResponse

func (*ClientWithResponses) ResetPasswordWithResponse

func (c *ClientWithResponses) ResetPasswordWithResponse(ctx context.Context, body ResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetPasswordResponse, error)

func (*ClientWithResponses) SetupTwoFactorWithResponse

func (c *ClientWithResponses) SetupTwoFactorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SetupTwoFactorResponse, error)

SetupTwoFactorWithResponse request returning *SetupTwoFactorResponse

func (*ClientWithResponses) UpdateOrganizationMemberWithBodyWithResponse

func (c *ClientWithResponses) UpdateOrganizationMemberWithBodyWithResponse(ctx context.Context, memberId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)

UpdateOrganizationMemberWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationMemberResponse

func (*ClientWithResponses) UpdateOrganizationMemberWithResponse

func (c *ClientWithResponses) UpdateOrganizationMemberWithResponse(ctx context.Context, memberId openapi_types.UUID, body UpdateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)

type ClientWithResponsesInterface

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

	// RegenerateBackupCodesWithResponse request
	RegenerateBackupCodesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RegenerateBackupCodesResponse, error)

	// DisableTwoFactorWithResponse request
	DisableTwoFactorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DisableTwoFactorResponse, error)

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

	EnableTwoFactorWithResponse(ctx context.Context, body EnableTwoFactorJSONRequestBody, reqEditors ...RequestEditorFn) (*EnableTwoFactorResponse, error)

	// SetupTwoFactorWithResponse request
	SetupTwoFactorWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SetupTwoFactorResponse, error)

	// GetTwoFactorStatusWithResponse request
	GetTwoFactorStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTwoFactorStatusResponse, error)

	// GetOrganizationAdminEmailsWithResponse request
	GetOrganizationAdminEmailsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOrganizationAdminEmailsResponse, error)

	// ListOrganizationsWithResponse request
	ListOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)

	// ListAuditLogsWithResponse request
	ListAuditLogsWithResponse(ctx context.Context, params *ListAuditLogsParams, reqEditors ...RequestEditorFn) (*ListAuditLogsResponse, error)

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

	CheckAuthorizationWithResponse(ctx context.Context, body CheckAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckAuthorizationResponse, error)

	// ListChildOrganizationsWithResponse request
	ListChildOrganizationsWithResponse(ctx context.Context, params *ListChildOrganizationsParams, reqEditors ...RequestEditorFn) (*ListChildOrganizationsResponse, error)

	// ListDelegatedAccessUsersWithResponse request
	ListDelegatedAccessUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDelegatedAccessUsersResponse, error)

	// ListDelegatedAccessAssignmentsWithResponse request
	ListDelegatedAccessAssignmentsWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListDelegatedAccessAssignmentsResponse, error)

	// ReplaceDelegatedAccessAssignmentsWithBodyWithResponse request with any body
	ReplaceDelegatedAccessAssignmentsWithBodyWithResponse(ctx context.Context, userId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceDelegatedAccessAssignmentsResponse, error)

	ReplaceDelegatedAccessAssignmentsWithResponse(ctx context.Context, userId openapi_types.UUID, body ReplaceDelegatedAccessAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceDelegatedAccessAssignmentsResponse, error)

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

	LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResponse, error)

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

	LogoutWithResponse(ctx context.Context, body LogoutJSONRequestBody, reqEditors ...RequestEditorFn) (*LogoutResponse, error)

	// GetCurrentUserWithResponse request
	GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)

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

	CreateOrganizationMemberWithResponse(ctx context.Context, body CreateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationMemberResponse, error)

	// DeleteOrganizationMemberWithResponse request
	DeleteOrganizationMemberWithResponse(ctx context.Context, memberId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteOrganizationMemberResponse, error)

	// GetOrganizationMemberWithResponse request
	GetOrganizationMemberWithResponse(ctx context.Context, memberId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetOrganizationMemberResponse, error)

	// UpdateOrganizationMemberWithBodyWithResponse request with any body
	UpdateOrganizationMemberWithBodyWithResponse(ctx context.Context, memberId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)

	UpdateOrganizationMemberWithResponse(ctx context.Context, memberId openapi_types.UUID, body UpdateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)

	// ListOrganizationMembersWithResponse request
	ListOrganizationMembersWithResponse(ctx context.Context, params *ListOrganizationMembersParams, reqEditors ...RequestEditorFn) (*ListOrganizationMembersResponse, error)

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

	GenerateOneTimeTokenWithResponse(ctx context.Context, body GenerateOneTimeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateOneTimeTokenResponse, error)

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

	LoginWithOneTimeTokenWithResponse(ctx context.Context, body LoginWithOneTimeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginWithOneTimeTokenResponse, error)

	// GetAuthorizationContextWithResponse request
	GetAuthorizationContextWithResponse(ctx context.Context, organizationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAuthorizationContextResponse, error)

	// ListUserGrantedPermissionsWithResponse request
	ListUserGrantedPermissionsWithResponse(ctx context.Context, organizationId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListUserGrantedPermissionsResponse, error)

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

	RefreshTokenWithResponse(ctx context.Context, body RefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshTokenResponse, error)

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

	ResetPasswordWithResponse(ctx context.Context, body ResetPasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ResetPasswordResponse, error)

	// ListAvailableRolesWithResponse request
	ListAvailableRolesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAvailableRolesResponse, error)
}

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

type CreateOrganizationMemberJSONBody

type CreateOrganizationMemberJSONBody struct {
	Name              string             `json:"name"`
	NotificationEmail *string            `json:"notificationEmail,omitempty"`
	OrganizationId    openapi_types.UUID `json:"organizationId"`
	Password          interface{}        `json:"password"`
	RoleId            openapi_types.UUID `json:"roleId"`
	Username          string             `json:"username"`
}

CreateOrganizationMemberJSONBody defines parameters for CreateOrganizationMember.

type CreateOrganizationMemberJSONRequestBody

type CreateOrganizationMemberJSONRequestBody CreateOrganizationMemberJSONBody

CreateOrganizationMemberJSONRequestBody defines body for CreateOrganizationMember for application/json ContentType.

type CreateOrganizationMemberResponse

type CreateOrganizationMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *struct {
		Id       openapi_types.UUID `json:"id"`
		Name     *string            `json:"name,omitempty"`
		Username string             `json:"username"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON404 *NotFoundResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseCreateOrganizationMemberResponse

func ParseCreateOrganizationMemberResponse(rsp *http.Response) (*CreateOrganizationMemberResponse, error)

ParseCreateOrganizationMemberResponse parses an HTTP response from a CreateOrganizationMemberWithResponse call

func (CreateOrganizationMemberResponse) Status

Status returns HTTPResponse.Status

func (CreateOrganizationMemberResponse) StatusCode

func (r CreateOrganizationMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteOrganizationMemberResponse

type DeleteOrganizationMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id       openapi_types.UUID `json:"id"`
		Name     *string            `json:"name,omitempty"`
		Username string             `json:"username"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON404 *NotFoundResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseDeleteOrganizationMemberResponse

func ParseDeleteOrganizationMemberResponse(rsp *http.Response) (*DeleteOrganizationMemberResponse, error)

ParseDeleteOrganizationMemberResponse parses an HTTP response from a DeleteOrganizationMemberWithResponse call

func (DeleteOrganizationMemberResponse) Status

Status returns HTTPResponse.Status

func (DeleteOrganizationMemberResponse) StatusCode

func (r DeleteOrganizationMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DisableTwoFactorResponse

type DisableTwoFactorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Message string `json:"message"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON500 *ServerErrorResponse
}

func ParseDisableTwoFactorResponse

func ParseDisableTwoFactorResponse(rsp *http.Response) (*DisableTwoFactorResponse, error)

ParseDisableTwoFactorResponse parses an HTTP response from a DisableTwoFactorWithResponse call

func (DisableTwoFactorResponse) Status

func (r DisableTwoFactorResponse) Status() string

Status returns HTTPResponse.Status

func (DisableTwoFactorResponse) StatusCode

func (r DisableTwoFactorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnableTwoFactorJSONBody

type EnableTwoFactorJSONBody struct {
	Token string `json:"token"`
}

EnableTwoFactorJSONBody defines parameters for EnableTwoFactor.

type EnableTwoFactorJSONRequestBody

type EnableTwoFactorJSONRequestBody EnableTwoFactorJSONBody

EnableTwoFactorJSONRequestBody defines body for EnableTwoFactor for application/json ContentType.

type EnableTwoFactorResponse

type EnableTwoFactorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		BackupCodes []string `json:"backupCodes"`
		Message     string   `json:"message"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseEnableTwoFactorResponse

func ParseEnableTwoFactorResponse(rsp *http.Response) (*EnableTwoFactorResponse, error)

ParseEnableTwoFactorResponse parses an HTTP response from a EnableTwoFactorWithResponse call

func (EnableTwoFactorResponse) Status

func (r EnableTwoFactorResponse) Status() string

Status returns HTTPResponse.Status

func (EnableTwoFactorResponse) StatusCode

func (r EnableTwoFactorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FlashStartErrorBody

type FlashStartErrorBody struct {
	Code    string       `json:"code"`
	Details *interface{} `json:"details,omitempty"`
	Message *string      `json:"message,omitempty"`
}

FlashStartErrorBody defines model for FlashStartErrorBody.

type ForbiddenResponse

type ForbiddenResponse = FlashStartErrorBody

ForbiddenResponse defines model for Forbidden.

type GenerateOneTimeTokenJSONBody

type GenerateOneTimeTokenJSONBody struct {
	UserId openapi_types.UUID `json:"userId"`
}

GenerateOneTimeTokenJSONBody defines parameters for GenerateOneTimeToken.

type GenerateOneTimeTokenJSONRequestBody

type GenerateOneTimeTokenJSONRequestBody GenerateOneTimeTokenJSONBody

GenerateOneTimeTokenJSONRequestBody defines body for GenerateOneTimeToken for application/json ContentType.

type GenerateOneTimeTokenResponse

type GenerateOneTimeTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Message string `json:"message"`
		Token   string `json:"token"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseGenerateOneTimeTokenResponse

func ParseGenerateOneTimeTokenResponse(rsp *http.Response) (*GenerateOneTimeTokenResponse, error)

ParseGenerateOneTimeTokenResponse parses an HTTP response from a GenerateOneTimeTokenWithResponse call

func (GenerateOneTimeTokenResponse) Status

Status returns HTTPResponse.Status

func (GenerateOneTimeTokenResponse) StatusCode

func (r GenerateOneTimeTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAuthorizationContextResponse

type GetAuthorizationContextResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]interface{}
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *NotFoundResponse
	JSON422      *BadRequestResponse
	JSON500      *ServerErrorResponse
}

func ParseGetAuthorizationContextResponse

func ParseGetAuthorizationContextResponse(rsp *http.Response) (*GetAuthorizationContextResponse, error)

ParseGetAuthorizationContextResponse parses an HTTP response from a GetAuthorizationContextWithResponse call

func (GetAuthorizationContextResponse) Status

Status returns HTTPResponse.Status

func (GetAuthorizationContextResponse) StatusCode

func (r GetAuthorizationContextResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCurrentOrganizationResponse

type GetCurrentOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id                   openapi_types.UUID     `json:"id"`
		Name                 string                 `json:"name"`
		AdditionalProperties map[string]interface{} `json:"-"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON404 *NotFoundResponse
	JSON500 *ServerErrorResponse
}

func ParseGetCurrentOrganizationResponse

func ParseGetCurrentOrganizationResponse(rsp *http.Response) (*GetCurrentOrganizationResponse, error)

ParseGetCurrentOrganizationResponse parses an HTTP response from a GetCurrentOrganizationWithResponse call

func (GetCurrentOrganizationResponse) Status

Status returns HTTPResponse.Status

func (GetCurrentOrganizationResponse) StatusCode

func (r GetCurrentOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCurrentUserResponse

type GetCurrentUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id       openapi_types.UUID `json:"id"`
		Name     *string            `json:"name,omitempty"`
		Username string             `json:"username"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON500 *ServerErrorResponse
}

func ParseGetCurrentUserResponse

func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error)

ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call

func (GetCurrentUserResponse) Status

func (r GetCurrentUserResponse) Status() string

Status returns HTTPResponse.Status

func (GetCurrentUserResponse) StatusCode

func (r GetCurrentUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationAdminEmailsResponse

type GetOrganizationAdminEmailsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string][]string
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON500      *ServerErrorResponse
}

func ParseGetOrganizationAdminEmailsResponse

func ParseGetOrganizationAdminEmailsResponse(rsp *http.Response) (*GetOrganizationAdminEmailsResponse, error)

ParseGetOrganizationAdminEmailsResponse parses an HTTP response from a GetOrganizationAdminEmailsWithResponse call

func (GetOrganizationAdminEmailsResponse) Status

Status returns HTTPResponse.Status

func (GetOrganizationAdminEmailsResponse) StatusCode

func (r GetOrganizationAdminEmailsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrganizationMemberResponse

type GetOrganizationMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id       openapi_types.UUID `json:"id"`
		Name     *string            `json:"name,omitempty"`
		Username string             `json:"username"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON404 *NotFoundResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseGetOrganizationMemberResponse

func ParseGetOrganizationMemberResponse(rsp *http.Response) (*GetOrganizationMemberResponse, error)

ParseGetOrganizationMemberResponse parses an HTTP response from a GetOrganizationMemberWithResponse call

func (GetOrganizationMemberResponse) Status

Status returns HTTPResponse.Status

func (GetOrganizationMemberResponse) StatusCode

func (r GetOrganizationMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTwoFactorStatusResponse

type GetTwoFactorStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Enabled bool `json:"enabled"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON500 *ServerErrorResponse
}

func ParseGetTwoFactorStatusResponse

func ParseGetTwoFactorStatusResponse(rsp *http.Response) (*GetTwoFactorStatusResponse, error)

ParseGetTwoFactorStatusResponse parses an HTTP response from a GetTwoFactorStatusWithResponse call

func (GetTwoFactorStatusResponse) Status

Status returns HTTPResponse.Status

func (GetTwoFactorStatusResponse) StatusCode

func (r GetTwoFactorStatusResponse) 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 ListAuditLogsParams

type ListAuditLogsParams struct {
	OrganizationIds *struct {
		// contains filtered or unexported fields
	} `form:"organizationIds,omitempty" json:"organizationIds,omitempty"`
}

ListAuditLogsParams defines parameters for ListAuditLogs.

type ListAuditLogsParamsOrganizationIds0

type ListAuditLogsParamsOrganizationIds0 = openapi_types.UUID

ListAuditLogsParamsOrganizationIds0 defines parameters for ListAuditLogs.

type ListAuditLogsParamsOrganizationIds1

type ListAuditLogsParamsOrganizationIds1 = []openapi_types.UUID

ListAuditLogsParamsOrganizationIds1 defines parameters for ListAuditLogs.

type ListAuditLogsResponse

type ListAuditLogsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ListAuditLogs_200_Item
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON422      *BadRequestResponse
	JSON500      *ServerErrorResponse
}

func ParseListAuditLogsResponse

func ParseListAuditLogsResponse(rsp *http.Response) (*ListAuditLogsResponse, error)

ParseListAuditLogsResponse parses an HTTP response from a ListAuditLogsWithResponse call

func (ListAuditLogsResponse) Status

func (r ListAuditLogsResponse) Status() string

Status returns HTTPResponse.Status

func (ListAuditLogsResponse) StatusCode

func (r ListAuditLogsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAuditLogs_200_Item

type ListAuditLogs_200_Item struct {
	Action               *string                `json:"action,omitempty"`
	CreatedAt            *string                `json:"createdAt,omitempty"`
	Id                   *string                `json:"id,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

type ListAvailableRolesResponse

type ListAvailableRolesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ListAvailableRoles_200_Item
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON500      *ServerErrorResponse
}

func ParseListAvailableRolesResponse

func ParseListAvailableRolesResponse(rsp *http.Response) (*ListAvailableRolesResponse, error)

ParseListAvailableRolesResponse parses an HTTP response from a ListAvailableRolesWithResponse call

func (ListAvailableRolesResponse) Status

Status returns HTTPResponse.Status

func (ListAvailableRolesResponse) StatusCode

func (r ListAvailableRolesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListAvailableRoles_200_Item

type ListAvailableRoles_200_Item struct {
	Id                   openapi_types.UUID     `json:"id"`
	Name                 string                 `json:"name"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

type ListChildOrganizationsParams

type ListChildOrganizationsParams struct {
	OrganizationId *openapi_types.UUID `form:"organizationId,omitempty" json:"organizationId,omitempty"`
}

ListChildOrganizationsParams defines parameters for ListChildOrganizations.

type ListChildOrganizationsResponse

type ListChildOrganizationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ListChildOrganizations_200_Item
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *NotFoundResponse
	JSON422      *BadRequestResponse
	JSON500      *ServerErrorResponse
}

func ParseListChildOrganizationsResponse

func ParseListChildOrganizationsResponse(rsp *http.Response) (*ListChildOrganizationsResponse, error)

ParseListChildOrganizationsResponse parses an HTTP response from a ListChildOrganizationsWithResponse call

func (ListChildOrganizationsResponse) Status

Status returns HTTPResponse.Status

func (ListChildOrganizationsResponse) StatusCode

func (r ListChildOrganizationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListChildOrganizations_200_Children_Item

type ListChildOrganizations_200_Children_Item struct {
	Id                   openapi_types.UUID     `json:"id"`
	Name                 string                 `json:"name"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

type ListChildOrganizations_200_Item

type ListChildOrganizations_200_Item struct {
	Children             *[]ListChildOrganizations_200_Children_Item `json:"children,omitempty"`
	Id                   openapi_types.UUID                          `json:"id"`
	Name                 string                                      `json:"name"`
	AdditionalProperties map[string]interface{}                      `json:"-"`
}

type ListDelegatedAccessAssignmentsResponse

type ListDelegatedAccessAssignmentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		AllOrganizations bool `json:"allOrganizations"`
		Assignments      []struct {
			CreatedAt          time.Time          `json:"createdAt"`
			IncludeDescendants bool               `json:"includeDescendants"`
			OrganizationId     openapi_types.UUID `json:"organizationId"`
			UpdatedAt          time.Time          `json:"updatedAt"`
			UserId             openapi_types.UUID `json:"userId"`
		} `json:"assignments"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseListDelegatedAccessAssignmentsResponse

func ParseListDelegatedAccessAssignmentsResponse(rsp *http.Response) (*ListDelegatedAccessAssignmentsResponse, error)

ParseListDelegatedAccessAssignmentsResponse parses an HTTP response from a ListDelegatedAccessAssignmentsWithResponse call

func (ListDelegatedAccessAssignmentsResponse) Status

Status returns HTTPResponse.Status

func (ListDelegatedAccessAssignmentsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListDelegatedAccessUsersResponse

type ListDelegatedAccessUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]struct {
		Id       openapi_types.UUID `json:"id"`
		Name     *string            `json:"name,omitempty"`
		Username string             `json:"username"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON500 *ServerErrorResponse
}

func ParseListDelegatedAccessUsersResponse

func ParseListDelegatedAccessUsersResponse(rsp *http.Response) (*ListDelegatedAccessUsersResponse, error)

ParseListDelegatedAccessUsersResponse parses an HTTP response from a ListDelegatedAccessUsersWithResponse call

func (ListDelegatedAccessUsersResponse) Status

Status returns HTTPResponse.Status

func (ListDelegatedAccessUsersResponse) StatusCode

func (r ListDelegatedAccessUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOrganizationMembersParams

type ListOrganizationMembersParams struct {
	OrganizationId *openapi_types.UUID `form:"organizationId,omitempty" json:"organizationId,omitempty"`
}

ListOrganizationMembersParams defines parameters for ListOrganizationMembers.

type ListOrganizationMembersResponse

type ListOrganizationMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]struct {
		Id       openapi_types.UUID `json:"id"`
		Name     *string            `json:"name,omitempty"`
		Username string             `json:"username"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON404 *NotFoundResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseListOrganizationMembersResponse

func ParseListOrganizationMembersResponse(rsp *http.Response) (*ListOrganizationMembersResponse, error)

ParseListOrganizationMembersResponse parses an HTTP response from a ListOrganizationMembersWithResponse call

func (ListOrganizationMembersResponse) Status

Status returns HTTPResponse.Status

func (ListOrganizationMembersResponse) StatusCode

func (r ListOrganizationMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOrganizationsResponse

type ListOrganizationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]ListOrganizations_200_Item
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON500      *ServerErrorResponse
}

func ParseListOrganizationsResponse

func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsResponse, error)

ParseListOrganizationsResponse parses an HTTP response from a ListOrganizationsWithResponse call

func (ListOrganizationsResponse) Status

func (r ListOrganizationsResponse) Status() string

Status returns HTTPResponse.Status

func (ListOrganizationsResponse) StatusCode

func (r ListOrganizationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOrganizations_200_Item

type ListOrganizations_200_Item struct {
	Id                   openapi_types.UUID     `json:"id"`
	Name                 string                 `json:"name"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

type ListUserGrantedPermissionsResponse

type ListUserGrantedPermissionsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Permissions []string `json:"permissions"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseListUserGrantedPermissionsResponse

func ParseListUserGrantedPermissionsResponse(rsp *http.Response) (*ListUserGrantedPermissionsResponse, error)

ParseListUserGrantedPermissionsResponse parses an HTTP response from a ListUserGrantedPermissionsWithResponse call

func (ListUserGrantedPermissionsResponse) Status

Status returns HTTPResponse.Status

func (ListUserGrantedPermissionsResponse) StatusCode

func (r ListUserGrantedPermissionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Login2000

type Login2000 struct {
	AccessToken           string              `json:"accessToken"`
	AccessTokenExpiresAt  int64               `json:"accessTokenExpiresAt"`
	DefaultOrganizationId *openapi_types.UUID `json:"defaultOrganizationId"`
	RefreshToken          string              `json:"refreshToken"`
	RefreshTokenExpiresAt int64               `json:"refreshTokenExpiresAt"`
	User                  struct {
		Id       openapi_types.UUID `json:"id"`
		Name     *string            `json:"name,omitempty"`
		Username string             `json:"username"`
	} `json:"user"`
}

type Login2001

type Login2001 struct {
	Message           *string                    `json:"message,omitempty"`
	RequiresTwoFactor Login2001RequiresTwoFactor `json:"requiresTwoFactor"`
	User              struct {
		Id       openapi_types.UUID `json:"id"`
		Username string             `json:"username"`
	} `json:"user"`
}

type Login2001RequiresTwoFactor

type Login2001RequiresTwoFactor bool

type LoginJSONBody

type LoginJSONBody struct {
	Password       string               `json:"password"`
	TwoFactorToken *string              `json:"twoFactorToken,omitempty"`
	Username       *openapi_types.Email `json:"username,omitempty"`
}

LoginJSONBody defines parameters for Login.

type LoginJSONRequestBody

type LoginJSONRequestBody LoginJSONBody

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginResponse

type LoginResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// contains filtered or unexported fields
	}
	JSON401 *UnauthorizedResponse
	JSON422 *BadRequestResponse
	JSON429 *TooManyRequestsResponse
	JSON500 *ServerErrorResponse
}

func ParseLoginResponse

func ParseLoginResponse(rsp *http.Response) (*LoginResponse, error)

ParseLoginResponse parses an HTTP response from a LoginWithResponse call

func (LoginResponse) Status

func (r LoginResponse) Status() string

Status returns HTTPResponse.Status

func (LoginResponse) StatusCode

func (r LoginResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginWithOneTimeToken2000

type LoginWithOneTimeToken2000 struct {
	AccessToken           string              `json:"accessToken"`
	AccessTokenExpiresAt  int64               `json:"accessTokenExpiresAt"`
	DefaultOrganizationId *openapi_types.UUID `json:"defaultOrganizationId"`
	RefreshToken          string              `json:"refreshToken"`
	RefreshTokenExpiresAt int64               `json:"refreshTokenExpiresAt"`
	User                  struct {
		Id       openapi_types.UUID `json:"id"`
		Name     *string            `json:"name,omitempty"`
		Username string             `json:"username"`
	} `json:"user"`
}

type LoginWithOneTimeToken2001

type LoginWithOneTimeToken2001 struct {
	Message           *string                                    `json:"message,omitempty"`
	RequiresTwoFactor LoginWithOneTimeToken2001RequiresTwoFactor `json:"requiresTwoFactor"`
	User              struct {
		Id       openapi_types.UUID `json:"id"`
		Username string             `json:"username"`
	} `json:"user"`
}

type LoginWithOneTimeToken2001RequiresTwoFactor

type LoginWithOneTimeToken2001RequiresTwoFactor bool

type LoginWithOneTimeTokenJSONBody

type LoginWithOneTimeTokenJSONBody struct {
	Token          string             `json:"token"`
	TwoFactorToken *string            `json:"twoFactorToken,omitempty"`
	UserId         openapi_types.UUID `json:"userId"`
}

LoginWithOneTimeTokenJSONBody defines parameters for LoginWithOneTimeToken.

type LoginWithOneTimeTokenJSONRequestBody

type LoginWithOneTimeTokenJSONRequestBody LoginWithOneTimeTokenJSONBody

LoginWithOneTimeTokenJSONRequestBody defines body for LoginWithOneTimeToken for application/json ContentType.

type LoginWithOneTimeTokenResponse

type LoginWithOneTimeTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// contains filtered or unexported fields
	}
	JSON401 *UnauthorizedResponse
	JSON422 *BadRequestResponse
	JSON429 *TooManyRequestsResponse
	JSON500 *ServerErrorResponse
}

func ParseLoginWithOneTimeTokenResponse

func ParseLoginWithOneTimeTokenResponse(rsp *http.Response) (*LoginWithOneTimeTokenResponse, error)

ParseLoginWithOneTimeTokenResponse parses an HTTP response from a LoginWithOneTimeTokenWithResponse call

func (LoginWithOneTimeTokenResponse) Status

Status returns HTTPResponse.Status

func (LoginWithOneTimeTokenResponse) StatusCode

func (r LoginWithOneTimeTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LogoutJSONBody

type LogoutJSONBody struct {
	RefreshToken string `json:"refreshToken"`
}

LogoutJSONBody defines parameters for Logout.

type LogoutJSONRequestBody

type LogoutJSONRequestBody LogoutJSONBody

LogoutJSONRequestBody defines body for Logout for application/json ContentType.

type LogoutResponse

type LogoutResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Message string `json:"message"`
	}
	JSON401 *UnauthorizedResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseLogoutResponse

func ParseLogoutResponse(rsp *http.Response) (*LogoutResponse, error)

ParseLogoutResponse parses an HTTP response from a LogoutWithResponse call

func (LogoutResponse) Status

func (r LogoutResponse) Status() string

Status returns HTTPResponse.Status

func (LogoutResponse) StatusCode

func (r LogoutResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MissingCredentialsErrorBody

type MissingCredentialsErrorBody struct {
	Message string `json:"message"`
}

MissingCredentialsErrorBody defines model for MissingCredentialsErrorBody.

type NotFoundResponse

type NotFoundResponse = FlashStartErrorBody

NotFoundResponse defines model for NotFound.

type RefreshTokenJSONBody

type RefreshTokenJSONBody struct {
	RefreshToken string `json:"refreshToken"`
}

RefreshTokenJSONBody defines parameters for RefreshToken.

type RefreshTokenJSONRequestBody

type RefreshTokenJSONRequestBody RefreshTokenJSONBody

RefreshTokenJSONRequestBody defines body for RefreshToken for application/json ContentType.

type RefreshTokenResponse

type RefreshTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		AccessToken           string `json:"accessToken"`
		AccessTokenExpiresAt  int64  `json:"accessTokenExpiresAt"`
		RefreshToken          string `json:"refreshToken"`
		RefreshTokenExpiresAt int64  `json:"refreshTokenExpiresAt"`
	}
	JSON401 *UnauthorizedResponse
	JSON422 *BadRequestResponse
	JSON429 *TooManyRequestsResponse
	JSON500 *ServerErrorResponse
}

func ParseRefreshTokenResponse

func ParseRefreshTokenResponse(rsp *http.Response) (*RefreshTokenResponse, error)

ParseRefreshTokenResponse parses an HTTP response from a RefreshTokenWithResponse call

func (RefreshTokenResponse) Status

func (r RefreshTokenResponse) Status() string

Status returns HTTPResponse.Status

func (RefreshTokenResponse) StatusCode

func (r RefreshTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RegenerateBackupCodesResponse

type RegenerateBackupCodesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		BackupCodes []string `json:"backupCodes"`
		Message     string   `json:"message"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON500 *ServerErrorResponse
}

func ParseRegenerateBackupCodesResponse

func ParseRegenerateBackupCodesResponse(rsp *http.Response) (*RegenerateBackupCodesResponse, error)

ParseRegenerateBackupCodesResponse parses an HTTP response from a RegenerateBackupCodesWithResponse call

func (RegenerateBackupCodesResponse) Status

Status returns HTTPResponse.Status

func (RegenerateBackupCodesResponse) StatusCode

func (r RegenerateBackupCodesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReplaceDelegatedAccessAssignmentsJSONBody

type ReplaceDelegatedAccessAssignmentsJSONBody struct {
	AllOrganizations bool `json:"allOrganizations"`
	Assignments      []struct {
		IncludeDescendants bool               `json:"includeDescendants"`
		OrganizationId     openapi_types.UUID `json:"organizationId"`
	} `json:"assignments"`
}

ReplaceDelegatedAccessAssignmentsJSONBody defines parameters for ReplaceDelegatedAccessAssignments.

type ReplaceDelegatedAccessAssignmentsJSONRequestBody

type ReplaceDelegatedAccessAssignmentsJSONRequestBody ReplaceDelegatedAccessAssignmentsJSONBody

ReplaceDelegatedAccessAssignmentsJSONRequestBody defines body for ReplaceDelegatedAccessAssignments for application/json ContentType.

type ReplaceDelegatedAccessAssignmentsResponse

type ReplaceDelegatedAccessAssignmentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		AllOrganizations bool `json:"allOrganizations"`
		Assignments      []struct {
			CreatedAt          time.Time          `json:"createdAt"`
			IncludeDescendants bool               `json:"includeDescendants"`
			OrganizationId     openapi_types.UUID `json:"organizationId"`
			UpdatedAt          time.Time          `json:"updatedAt"`
			UserId             openapi_types.UUID `json:"userId"`
		} `json:"assignments"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseReplaceDelegatedAccessAssignmentsResponse

func ParseReplaceDelegatedAccessAssignmentsResponse(rsp *http.Response) (*ReplaceDelegatedAccessAssignmentsResponse, error)

ParseReplaceDelegatedAccessAssignmentsResponse parses an HTTP response from a ReplaceDelegatedAccessAssignmentsWithResponse call

func (ReplaceDelegatedAccessAssignmentsResponse) Status

Status returns HTTPResponse.Status

func (ReplaceDelegatedAccessAssignmentsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ResetPasswordJSONBody

type ResetPasswordJSONBody struct {
	NewPassword    string             `json:"newPassword"`
	OrganizationId openapi_types.UUID `json:"organizationId"`
	UserId         openapi_types.UUID `json:"userId"`
	Username       string             `json:"username"`
}

ResetPasswordJSONBody defines parameters for ResetPassword.

type ResetPasswordJSONRequestBody

type ResetPasswordJSONRequestBody ResetPasswordJSONBody

ResetPasswordJSONRequestBody defines body for ResetPassword for application/json ContentType.

type ResetPasswordResponse

type ResetPasswordResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON422      *BadRequestResponse
	JSON500      *ServerErrorResponse
}

func ParseResetPasswordResponse

func ParseResetPasswordResponse(rsp *http.Response) (*ResetPasswordResponse, error)

ParseResetPasswordResponse parses an HTTP response from a ResetPasswordWithResponse call

func (ResetPasswordResponse) Status

func (r ResetPasswordResponse) Status() string

Status returns HTTPResponse.Status

func (ResetPasswordResponse) StatusCode

func (r ResetPasswordResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ServerErrorResponse

type ServerErrorResponse = FlashStartErrorBody

ServerErrorResponse defines model for ServerError.

type SetupTwoFactorResponse

type SetupTwoFactorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		OtpauthUrl string `json:"otpauthUrl"`
		QrCode     string `json:"qrCode"`
		Secret     string `json:"secret"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON500 *ServerErrorResponse
}

func ParseSetupTwoFactorResponse

func ParseSetupTwoFactorResponse(rsp *http.Response) (*SetupTwoFactorResponse, error)

ParseSetupTwoFactorResponse parses an HTTP response from a SetupTwoFactorWithResponse call

func (SetupTwoFactorResponse) Status

func (r SetupTwoFactorResponse) Status() string

Status returns HTTPResponse.Status

func (SetupTwoFactorResponse) StatusCode

func (r SetupTwoFactorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TooManyRequestsErrorBody

type TooManyRequestsErrorBody struct {
	Error TooManyRequestsErrorBodyError `json:"error"`
}

TooManyRequestsErrorBody defines model for TooManyRequestsErrorBody.

type TooManyRequestsErrorBodyError

type TooManyRequestsErrorBodyError string

TooManyRequestsErrorBodyError defines model for TooManyRequestsErrorBody.Error.

const (
	TooManyRequestsPleaseTryAgainLater TooManyRequestsErrorBodyError = "Too many requests, please try again later."
)

Defines values for TooManyRequestsErrorBodyError.

type TooManyRequestsResponse

type TooManyRequestsResponse = TooManyRequestsErrorBody

TooManyRequestsResponse defines model for TooManyRequests.

type UnauthorizedResponse

type UnauthorizedResponse struct {
	// contains filtered or unexported fields
}

UnauthorizedResponse defines model for Unauthorized.

func (UnauthorizedResponse) AsFlashStartErrorBody

func (t UnauthorizedResponse) AsFlashStartErrorBody() (FlashStartErrorBody, error)

AsFlashStartErrorBody returns the union data inside the UnauthorizedResponse as a FlashStartErrorBody

func (UnauthorizedResponse) AsMissingCredentialsErrorBody

func (t UnauthorizedResponse) AsMissingCredentialsErrorBody() (MissingCredentialsErrorBody, error)

AsMissingCredentialsErrorBody returns the union data inside the UnauthorizedResponse as a MissingCredentialsErrorBody

func (*UnauthorizedResponse) FromFlashStartErrorBody

func (t *UnauthorizedResponse) FromFlashStartErrorBody(v FlashStartErrorBody) error

FromFlashStartErrorBody overwrites any union data inside the UnauthorizedResponse as the provided FlashStartErrorBody

func (*UnauthorizedResponse) FromMissingCredentialsErrorBody

func (t *UnauthorizedResponse) FromMissingCredentialsErrorBody(v MissingCredentialsErrorBody) error

FromMissingCredentialsErrorBody overwrites any union data inside the UnauthorizedResponse as the provided MissingCredentialsErrorBody

func (UnauthorizedResponse) MarshalJSON

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

func (*UnauthorizedResponse) MergeFlashStartErrorBody

func (t *UnauthorizedResponse) MergeFlashStartErrorBody(v FlashStartErrorBody) error

MergeFlashStartErrorBody performs a merge with any union data inside the UnauthorizedResponse, using the provided FlashStartErrorBody

func (*UnauthorizedResponse) MergeMissingCredentialsErrorBody

func (t *UnauthorizedResponse) MergeMissingCredentialsErrorBody(v MissingCredentialsErrorBody) error

MergeMissingCredentialsErrorBody performs a merge with any union data inside the UnauthorizedResponse, using the provided MissingCredentialsErrorBody

func (*UnauthorizedResponse) UnmarshalJSON

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

type UpdateOrganizationMemberJSONBody

type UpdateOrganizationMemberJSONBody struct {
	Name              *string             `json:"name,omitempty"`
	NotificationEmail *string             `json:"notificationEmail,omitempty"`
	RoleId            *openapi_types.UUID `json:"roleId,omitempty"`
	Username          *string             `json:"username,omitempty"`
}

UpdateOrganizationMemberJSONBody defines parameters for UpdateOrganizationMember.

type UpdateOrganizationMemberJSONRequestBody

type UpdateOrganizationMemberJSONRequestBody UpdateOrganizationMemberJSONBody

UpdateOrganizationMemberJSONRequestBody defines body for UpdateOrganizationMember for application/json ContentType.

type UpdateOrganizationMemberResponse

type UpdateOrganizationMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Id       openapi_types.UUID `json:"id"`
		Name     *string            `json:"name,omitempty"`
		Username string             `json:"username"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON404 *NotFoundResponse
	JSON422 *BadRequestResponse
	JSON500 *ServerErrorResponse
}

func ParseUpdateOrganizationMemberResponse

func ParseUpdateOrganizationMemberResponse(rsp *http.Response) (*UpdateOrganizationMemberResponse, error)

ParseUpdateOrganizationMemberResponse parses an HTTP response from a UpdateOrganizationMemberWithResponse call

func (UpdateOrganizationMemberResponse) Status

Status returns HTTPResponse.Status

func (UpdateOrganizationMemberResponse) StatusCode

func (r UpdateOrganizationMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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