admin

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

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

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.2-0.20250102212541-8bbe226927c9 DO NOT EDIT.

Index

Constants

View Source
const (
	APIKeyAuthScopes = "APIKeyAuth.Scopes"
	AdminAuthScopes  = "AdminAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewDeleteAdminSsoProvidersSsoProviderIdRequest

func NewDeleteAdminSsoProvidersSsoProviderIdRequest(server string, ssoProviderId openapi_types.UUID) (*http.Request, error)

NewDeleteAdminSsoProvidersSsoProviderIdRequest generates requests for DeleteAdminSsoProvidersSsoProviderId

func NewDeleteAdminUsersUserIdFactorsFactorIdRequest

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

NewDeleteAdminUsersUserIdFactorsFactorIdRequest generates requests for DeleteAdminUsersUserIdFactorsFactorId

func NewDeleteAdminUsersUserIdRequest

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

NewDeleteAdminUsersUserIdRequest generates requests for DeleteAdminUsersUserId

func NewGetAdminAuditRequest

func NewGetAdminAuditRequest(server string, params *GetAdminAuditParams) (*http.Request, error)

NewGetAdminAuditRequest generates requests for GetAdminAudit

func NewGetAdminSsoProvidersRequest

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

NewGetAdminSsoProvidersRequest generates requests for GetAdminSsoProviders

func NewGetAdminSsoProvidersSsoProviderIdRequest

func NewGetAdminSsoProvidersSsoProviderIdRequest(server string, ssoProviderId openapi_types.UUID) (*http.Request, error)

NewGetAdminSsoProvidersSsoProviderIdRequest generates requests for GetAdminSsoProvidersSsoProviderId

func NewGetAdminUsersRequest

func NewGetAdminUsersRequest(server string, params *GetAdminUsersParams) (*http.Request, error)

NewGetAdminUsersRequest generates requests for GetAdminUsers

func NewGetAdminUsersUserIdFactorsRequest

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

NewGetAdminUsersUserIdFactorsRequest generates requests for GetAdminUsersUserIdFactors

func NewGetAdminUsersUserIdRequest

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

NewGetAdminUsersUserIdRequest generates requests for GetAdminUsersUserId

func NewPostAdminGenerateLinkRequest

func NewPostAdminGenerateLinkRequest(server string, body PostAdminGenerateLinkJSONRequestBody) (*http.Request, error)

NewPostAdminGenerateLinkRequest calls the generic PostAdminGenerateLink builder with application/json body

func NewPostAdminGenerateLinkRequestWithBody

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

NewPostAdminGenerateLinkRequestWithBody generates requests for PostAdminGenerateLink with any type of body

func NewPostAdminSsoProvidersRequest

func NewPostAdminSsoProvidersRequest(server string, body PostAdminSsoProvidersJSONRequestBody) (*http.Request, error)

NewPostAdminSsoProvidersRequest calls the generic PostAdminSsoProviders builder with application/json body

func NewPostAdminSsoProvidersRequestWithBody

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

NewPostAdminSsoProvidersRequestWithBody generates requests for PostAdminSsoProviders with any type of body

func NewPostInviteRequest

func NewPostInviteRequest(server string, body PostInviteJSONRequestBody) (*http.Request, error)

NewPostInviteRequest calls the generic PostInvite builder with application/json body

func NewPostInviteRequestWithBody

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

NewPostInviteRequestWithBody generates requests for PostInvite with any type of body

func NewPutAdminSsoProvidersSsoProviderIdRequest

func NewPutAdminSsoProvidersSsoProviderIdRequest(server string, ssoProviderId openapi_types.UUID, body PutAdminSsoProvidersSsoProviderIdJSONRequestBody) (*http.Request, error)

NewPutAdminSsoProvidersSsoProviderIdRequest calls the generic PutAdminSsoProvidersSsoProviderId builder with application/json body

func NewPutAdminSsoProvidersSsoProviderIdRequestWithBody

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

NewPutAdminSsoProvidersSsoProviderIdRequestWithBody generates requests for PutAdminSsoProvidersSsoProviderId with any type of body

func NewPutAdminUsersUserIdFactorsFactorIdRequest

func NewPutAdminUsersUserIdFactorsFactorIdRequest(server string, userId openapi_types.UUID, factorId openapi_types.UUID, body PutAdminUsersUserIdFactorsFactorIdJSONRequestBody) (*http.Request, error)

NewPutAdminUsersUserIdFactorsFactorIdRequest calls the generic PutAdminUsersUserIdFactorsFactorId builder with application/json body

func NewPutAdminUsersUserIdFactorsFactorIdRequestWithBody

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

NewPutAdminUsersUserIdFactorsFactorIdRequestWithBody generates requests for PutAdminUsersUserIdFactorsFactorId with any type of body

func NewPutAdminUsersUserIdRequest

func NewPutAdminUsersUserIdRequest(server string, userId openapi_types.UUID, body PutAdminUsersUserIdJSONRequestBody) (*http.Request, error)

NewPutAdminUsersUserIdRequest calls the generic PutAdminUsersUserId builder with application/json body

func NewPutAdminUsersUserIdRequestWithBody

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

NewPutAdminUsersUserIdRequestWithBody generates requests for PutAdminUsersUserId with any type of body

Types

type BadRequestResponse

type BadRequestResponse = ErrorSchema

BadRequestResponse defines model for BadRequestResponse.

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

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

func (*Client) DeleteAdminUsersUserId

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

func (*Client) DeleteAdminUsersUserIdFactorsFactorId

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

func (*Client) GetAdminAudit

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

func (*Client) GetAdminSsoProviders

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

func (*Client) GetAdminSsoProvidersSsoProviderId

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

func (*Client) GetAdminUsers

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

func (*Client) GetAdminUsersUserId

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

func (*Client) GetAdminUsersUserIdFactors

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

func (*Client) PostAdminGenerateLinkWithBody

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

func (*Client) PostAdminSsoProviders

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

func (*Client) PostAdminSsoProvidersWithBody

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

func (*Client) PostInvite

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

func (*Client) PostInviteWithBody

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

func (*Client) PutAdminSsoProvidersSsoProviderId

func (c *Client) PutAdminSsoProvidersSsoProviderId(ctx context.Context, ssoProviderId openapi_types.UUID, body PutAdminSsoProvidersSsoProviderIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutAdminSsoProvidersSsoProviderIdWithBody

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

func (*Client) PutAdminUsersUserId

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

func (*Client) PutAdminUsersUserIdFactorsFactorId

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

func (*Client) PutAdminUsersUserIdFactorsFactorIdWithBody

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

func (*Client) PutAdminUsersUserIdWithBody

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

type ClientInterface

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

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

	PostAdminGenerateLink(ctx context.Context, body PostAdminGenerateLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	PostAdminSsoProviders(ctx context.Context, body PostAdminSsoProvidersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	PutAdminSsoProvidersSsoProviderId(ctx context.Context, ssoProviderId openapi_types.UUID, body PutAdminSsoProvidersSsoProviderIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

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

	PutAdminUsersUserIdFactorsFactorId(ctx context.Context, userId openapi_types.UUID, factorId openapi_types.UUID, body PutAdminUsersUserIdFactorsFactorIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostInvite(ctx context.Context, body PostInviteJSONRequestBody, 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) DeleteAdminSsoProvidersSsoProviderIdWithResponse

func (c *ClientWithResponses) DeleteAdminSsoProvidersSsoProviderIdWithResponse(ctx context.Context, ssoProviderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminSsoProvidersSsoProviderIdResponse, error)

DeleteAdminSsoProvidersSsoProviderIdWithResponse request returning *DeleteAdminSsoProvidersSsoProviderIdResponse

func (*ClientWithResponses) DeleteAdminUsersUserIdFactorsFactorIdWithResponse

func (c *ClientWithResponses) DeleteAdminUsersUserIdFactorsFactorIdWithResponse(ctx context.Context, userId openapi_types.UUID, factorId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminUsersUserIdFactorsFactorIdResponse, error)

DeleteAdminUsersUserIdFactorsFactorIdWithResponse request returning *DeleteAdminUsersUserIdFactorsFactorIdResponse

func (*ClientWithResponses) DeleteAdminUsersUserIdWithResponse

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

DeleteAdminUsersUserIdWithResponse request returning *DeleteAdminUsersUserIdResponse

func (*ClientWithResponses) GetAdminAuditWithResponse

func (c *ClientWithResponses) GetAdminAuditWithResponse(ctx context.Context, params *GetAdminAuditParams, reqEditors ...RequestEditorFn) (*GetAdminAuditResponse, error)

GetAdminAuditWithResponse request returning *GetAdminAuditResponse

func (*ClientWithResponses) GetAdminSsoProvidersSsoProviderIdWithResponse

func (c *ClientWithResponses) GetAdminSsoProvidersSsoProviderIdWithResponse(ctx context.Context, ssoProviderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAdminSsoProvidersSsoProviderIdResponse, error)

GetAdminSsoProvidersSsoProviderIdWithResponse request returning *GetAdminSsoProvidersSsoProviderIdResponse

func (*ClientWithResponses) GetAdminSsoProvidersWithResponse

func (c *ClientWithResponses) GetAdminSsoProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdminSsoProvidersResponse, error)

GetAdminSsoProvidersWithResponse request returning *GetAdminSsoProvidersResponse

func (*ClientWithResponses) GetAdminUsersUserIdFactorsWithResponse

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

GetAdminUsersUserIdFactorsWithResponse request returning *GetAdminUsersUserIdFactorsResponse

func (*ClientWithResponses) GetAdminUsersUserIdWithResponse

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

GetAdminUsersUserIdWithResponse request returning *GetAdminUsersUserIdResponse

func (*ClientWithResponses) GetAdminUsersWithResponse

func (c *ClientWithResponses) GetAdminUsersWithResponse(ctx context.Context, params *GetAdminUsersParams, reqEditors ...RequestEditorFn) (*GetAdminUsersResponse, error)

GetAdminUsersWithResponse request returning *GetAdminUsersResponse

func (*ClientWithResponses) PostAdminGenerateLinkWithBodyWithResponse

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

PostAdminGenerateLinkWithBodyWithResponse request with arbitrary body returning *PostAdminGenerateLinkResponse

func (*ClientWithResponses) PostAdminGenerateLinkWithResponse

func (c *ClientWithResponses) PostAdminGenerateLinkWithResponse(ctx context.Context, body PostAdminGenerateLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAdminGenerateLinkResponse, error)

func (*ClientWithResponses) PostAdminSsoProvidersWithBodyWithResponse

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

PostAdminSsoProvidersWithBodyWithResponse request with arbitrary body returning *PostAdminSsoProvidersResponse

func (*ClientWithResponses) PostAdminSsoProvidersWithResponse

func (c *ClientWithResponses) PostAdminSsoProvidersWithResponse(ctx context.Context, body PostAdminSsoProvidersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAdminSsoProvidersResponse, error)

func (*ClientWithResponses) PostInviteWithBodyWithResponse

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

PostInviteWithBodyWithResponse request with arbitrary body returning *PostInviteResponse

func (*ClientWithResponses) PostInviteWithResponse

func (c *ClientWithResponses) PostInviteWithResponse(ctx context.Context, body PostInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*PostInviteResponse, error)

func (*ClientWithResponses) PutAdminSsoProvidersSsoProviderIdWithBodyWithResponse

func (c *ClientWithResponses) PutAdminSsoProvidersSsoProviderIdWithBodyWithResponse(ctx context.Context, ssoProviderId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAdminSsoProvidersSsoProviderIdResponse, error)

PutAdminSsoProvidersSsoProviderIdWithBodyWithResponse request with arbitrary body returning *PutAdminSsoProvidersSsoProviderIdResponse

func (*ClientWithResponses) PutAdminSsoProvidersSsoProviderIdWithResponse

func (c *ClientWithResponses) PutAdminSsoProvidersSsoProviderIdWithResponse(ctx context.Context, ssoProviderId openapi_types.UUID, body PutAdminSsoProvidersSsoProviderIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAdminSsoProvidersSsoProviderIdResponse, error)

func (*ClientWithResponses) PutAdminUsersUserIdFactorsFactorIdWithBodyWithResponse

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

PutAdminUsersUserIdFactorsFactorIdWithBodyWithResponse request with arbitrary body returning *PutAdminUsersUserIdFactorsFactorIdResponse

func (*ClientWithResponses) PutAdminUsersUserIdWithBodyWithResponse

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

PutAdminUsersUserIdWithBodyWithResponse request with arbitrary body returning *PutAdminUsersUserIdResponse

func (*ClientWithResponses) PutAdminUsersUserIdWithResponse

func (c *ClientWithResponses) PutAdminUsersUserIdWithResponse(ctx context.Context, userId openapi_types.UUID, body PutAdminUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAdminUsersUserIdResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetAdminAuditWithResponse request
	GetAdminAuditWithResponse(ctx context.Context, params *GetAdminAuditParams, reqEditors ...RequestEditorFn) (*GetAdminAuditResponse, error)

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

	PostAdminGenerateLinkWithResponse(ctx context.Context, body PostAdminGenerateLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAdminGenerateLinkResponse, error)

	// GetAdminSsoProvidersWithResponse request
	GetAdminSsoProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAdminSsoProvidersResponse, error)

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

	PostAdminSsoProvidersWithResponse(ctx context.Context, body PostAdminSsoProvidersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostAdminSsoProvidersResponse, error)

	// DeleteAdminSsoProvidersSsoProviderIdWithResponse request
	DeleteAdminSsoProvidersSsoProviderIdWithResponse(ctx context.Context, ssoProviderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminSsoProvidersSsoProviderIdResponse, error)

	// GetAdminSsoProvidersSsoProviderIdWithResponse request
	GetAdminSsoProvidersSsoProviderIdWithResponse(ctx context.Context, ssoProviderId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetAdminSsoProvidersSsoProviderIdResponse, error)

	// PutAdminSsoProvidersSsoProviderIdWithBodyWithResponse request with any body
	PutAdminSsoProvidersSsoProviderIdWithBodyWithResponse(ctx context.Context, ssoProviderId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutAdminSsoProvidersSsoProviderIdResponse, error)

	PutAdminSsoProvidersSsoProviderIdWithResponse(ctx context.Context, ssoProviderId openapi_types.UUID, body PutAdminSsoProvidersSsoProviderIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAdminSsoProvidersSsoProviderIdResponse, error)

	// GetAdminUsersWithResponse request
	GetAdminUsersWithResponse(ctx context.Context, params *GetAdminUsersParams, reqEditors ...RequestEditorFn) (*GetAdminUsersResponse, error)

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

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

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

	PutAdminUsersUserIdWithResponse(ctx context.Context, userId openapi_types.UUID, body PutAdminUsersUserIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAdminUsersUserIdResponse, error)

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

	// DeleteAdminUsersUserIdFactorsFactorIdWithResponse request
	DeleteAdminUsersUserIdFactorsFactorIdWithResponse(ctx context.Context, userId openapi_types.UUID, factorId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteAdminUsersUserIdFactorsFactorIdResponse, error)

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

	PutAdminUsersUserIdFactorsFactorIdWithResponse(ctx context.Context, userId openapi_types.UUID, factorId openapi_types.UUID, body PutAdminUsersUserIdFactorsFactorIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutAdminUsersUserIdFactorsFactorIdResponse, error)

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

	PostInviteWithResponse(ctx context.Context, body PostInviteJSONRequestBody, reqEditors ...RequestEditorFn) (*PostInviteResponse, error)
}

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

type DeleteAdminSsoProvidersSsoProviderIdResponse

type DeleteAdminSsoProvidersSsoProviderIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SSOProviderSchema
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *ErrorSchema
}

func ParseDeleteAdminSsoProvidersSsoProviderIdResponse

func ParseDeleteAdminSsoProvidersSsoProviderIdResponse(rsp *http.Response) (*DeleteAdminSsoProvidersSsoProviderIdResponse, error)

ParseDeleteAdminSsoProvidersSsoProviderIdResponse parses an HTTP response from a DeleteAdminSsoProvidersSsoProviderIdWithResponse call

func (DeleteAdminSsoProvidersSsoProviderIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteAdminSsoProvidersSsoProviderIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteAdminUsersUserIdFactorsFactorIdResponse

type DeleteAdminUsersUserIdFactorsFactorIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MFAFactorSchema
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *ErrorSchema
}

func ParseDeleteAdminUsersUserIdFactorsFactorIdResponse

func ParseDeleteAdminUsersUserIdFactorsFactorIdResponse(rsp *http.Response) (*DeleteAdminUsersUserIdFactorsFactorIdResponse, error)

ParseDeleteAdminUsersUserIdFactorsFactorIdResponse parses an HTTP response from a DeleteAdminUsersUserIdFactorsFactorIdWithResponse call

func (DeleteAdminUsersUserIdFactorsFactorIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteAdminUsersUserIdFactorsFactorIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteAdminUsersUserIdResponse

type DeleteAdminUsersUserIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserSchema
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *ErrorSchema
}

func ParseDeleteAdminUsersUserIdResponse

func ParseDeleteAdminUsersUserIdResponse(rsp *http.Response) (*DeleteAdminUsersUserIdResponse, error)

ParseDeleteAdminUsersUserIdResponse parses an HTTP response from a DeleteAdminUsersUserIdWithResponse call

func (DeleteAdminUsersUserIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteAdminUsersUserIdResponse) StatusCode

func (r DeleteAdminUsersUserIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ErrorSchema

type ErrorSchema struct {
	// Code The HTTP status code. Usually missing if `error` is present.
	Code *int `json:"code,omitempty"`

	// Error Certain responses will contain this property with the provided values.
	//
	// Usually one of these:
	//   - invalid_request
	//   - unauthorized_client
	//   - access_denied
	//   - server_error
	//   - temporarily_unavailable
	//   - unsupported_otp_type
	Error *string `json:"error,omitempty"`

	// ErrorCode A short code used to describe the class of error encountered.
	ErrorCode *string `json:"error_code,omitempty"`

	// ErrorDescription Certain responses that have an `error` property may have this property which describes the error.
	ErrorDescription *string `json:"error_description,omitempty"`

	// Msg A basic message describing the problem with the request. Usually missing if `error` is present.
	Msg *string `json:"msg,omitempty"`

	// WeakPassword Only returned on the `/signup` endpoint if the password used is too weak. Inspect the `reasons` and `msg` property to identify the causes.
	WeakPassword *struct {
		Reasons *[]ErrorSchemaWeakPasswordReasons `json:"reasons,omitempty"`
	} `json:"weak_password,omitempty"`
}

ErrorSchema defines model for ErrorSchema.

type ErrorSchemaWeakPasswordReasons

type ErrorSchemaWeakPasswordReasons string

ErrorSchemaWeakPasswordReasons defines model for ErrorSchema.WeakPassword.Reasons.

const (
	Characters ErrorSchemaWeakPasswordReasons = "characters"
	Length     ErrorSchemaWeakPasswordReasons = "length"
	Pwned      ErrorSchemaWeakPasswordReasons = "pwned"
)

Defines values for ErrorSchemaWeakPasswordReasons.

type ForbiddenResponse

type ForbiddenResponse = ErrorSchema

ForbiddenResponse defines model for ForbiddenResponse.

type GetAdminAuditParams

type GetAdminAuditParams struct {
	Page    *int `form:"page,omitempty" json:"page,omitempty"`
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

GetAdminAuditParams defines parameters for GetAdminAudit.

type GetAdminAuditResponse

type GetAdminAuditResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]struct {
		CreatedAt *time.Time          `json:"created_at,omitempty"`
		Id        *openapi_types.UUID `json:"id,omitempty"`
		IpAddress *string             `json:"ip_address,omitempty"`
		Payload   *struct {
			// Action Usually one of these values:
			// - login
			// - logout
			// - invite_accepted
			// - user_signedup
			// - user_invited
			// - user_deleted
			// - user_modified
			// - user_recovery_requested
			// - user_reauthenticate_requested
			// - user_confirmation_requested
			// - user_repeated_signup
			// - user_updated_password
			// - token_revoked
			// - token_refreshed
			// - generate_recovery_codes
			// - factor_in_progress
			// - factor_unenrolled
			// - challenge_created
			// - verification_attempted
			// - factor_deleted
			// - recovery_codes_deleted
			// - factor_updated
			// - mfa_code_login
			Action        *string `json:"action,omitempty"`
			ActorId       *string `json:"actor_id,omitempty"`
			ActorName     *string `json:"actor_name,omitempty"`
			ActorUsername *string `json:"actor_username,omitempty"`

			// ActorViaSso Whether the actor used a SSO protocol (like SAML 2.0 or OIDC) to authenticate.
			ActorViaSso *bool `json:"actor_via_sso,omitempty"`

			// LogType Usually one of these values:
			// - account
			// - team
			// - token
			// - user
			// - factor
			// - recovery_codes
			LogType *string                 `json:"log_type,omitempty"`
			Traits  *map[string]interface{} `json:"traits,omitempty"`
		} `json:"payload,omitempty"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
}

func ParseGetAdminAuditResponse

func ParseGetAdminAuditResponse(rsp *http.Response) (*GetAdminAuditResponse, error)

ParseGetAdminAuditResponse parses an HTTP response from a GetAdminAuditWithResponse call

func (GetAdminAuditResponse) Status

func (r GetAdminAuditResponse) Status() string

Status returns HTTPResponse.Status

func (GetAdminAuditResponse) StatusCode

func (r GetAdminAuditResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAdminSsoProvidersResponse

type GetAdminSsoProvidersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Items *[]SSOProviderSchema `json:"items,omitempty"`
	}
}

func ParseGetAdminSsoProvidersResponse

func ParseGetAdminSsoProvidersResponse(rsp *http.Response) (*GetAdminSsoProvidersResponse, error)

ParseGetAdminSsoProvidersResponse parses an HTTP response from a GetAdminSsoProvidersWithResponse call

func (GetAdminSsoProvidersResponse) Status

Status returns HTTPResponse.Status

func (GetAdminSsoProvidersResponse) StatusCode

func (r GetAdminSsoProvidersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAdminSsoProvidersSsoProviderIdResponse

type GetAdminSsoProvidersSsoProviderIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SSOProviderSchema
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *ErrorSchema
}

func ParseGetAdminSsoProvidersSsoProviderIdResponse

func ParseGetAdminSsoProvidersSsoProviderIdResponse(rsp *http.Response) (*GetAdminSsoProvidersSsoProviderIdResponse, error)

ParseGetAdminSsoProvidersSsoProviderIdResponse parses an HTTP response from a GetAdminSsoProvidersSsoProviderIdWithResponse call

func (GetAdminSsoProvidersSsoProviderIdResponse) Status

Status returns HTTPResponse.Status

func (GetAdminSsoProvidersSsoProviderIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetAdminUsersParams

type GetAdminUsersParams struct {
	Page    *int `form:"page,omitempty" json:"page,omitempty"`
	PerPage *int `form:"per_page,omitempty" json:"per_page,omitempty"`
}

GetAdminUsersParams defines parameters for GetAdminUsers.

type GetAdminUsersResponse

type GetAdminUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// Deprecated:
		Aud   *string       `json:"aud,omitempty"`
		Users *[]UserSchema `json:"users,omitempty"`
	}
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
}

func ParseGetAdminUsersResponse

func ParseGetAdminUsersResponse(rsp *http.Response) (*GetAdminUsersResponse, error)

ParseGetAdminUsersResponse parses an HTTP response from a GetAdminUsersWithResponse call

func (GetAdminUsersResponse) Status

func (r GetAdminUsersResponse) Status() string

Status returns HTTPResponse.Status

func (GetAdminUsersResponse) StatusCode

func (r GetAdminUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAdminUsersUserIdFactorsResponse

type GetAdminUsersUserIdFactorsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]MFAFactorSchema
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *ErrorSchema
}

func ParseGetAdminUsersUserIdFactorsResponse

func ParseGetAdminUsersUserIdFactorsResponse(rsp *http.Response) (*GetAdminUsersUserIdFactorsResponse, error)

ParseGetAdminUsersUserIdFactorsResponse parses an HTTP response from a GetAdminUsersUserIdFactorsWithResponse call

func (GetAdminUsersUserIdFactorsResponse) Status

Status returns HTTPResponse.Status

func (GetAdminUsersUserIdFactorsResponse) StatusCode

func (r GetAdminUsersUserIdFactorsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAdminUsersUserIdResponse

type GetAdminUsersUserIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserSchema
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *ErrorSchema
}

func ParseGetAdminUsersUserIdResponse

func ParseGetAdminUsersUserIdResponse(rsp *http.Response) (*GetAdminUsersUserIdResponse, error)

ParseGetAdminUsersUserIdResponse parses an HTTP response from a GetAdminUsersUserIdWithResponse call

func (GetAdminUsersUserIdResponse) Status

Status returns HTTPResponse.Status

func (GetAdminUsersUserIdResponse) StatusCode

func (r GetAdminUsersUserIdResponse) 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 IdentitySchema

type IdentitySchema struct {
	CreatedAt    *time.Time              `json:"created_at,omitempty"`
	Email        *openapi_types.Email    `json:"email,omitempty"`
	Id           *openapi_types.UUID     `json:"id,omitempty"`
	IdentityData *map[string]interface{} `json:"identity_data,omitempty"`
	IdentityId   *openapi_types.UUID     `json:"identity_id,omitempty"`
	LastSignInAt *time.Time              `json:"last_sign_in_at,omitempty"`
	Provider     *string                 `json:"provider,omitempty"`
	UpdatedAt    *time.Time              `json:"updated_at,omitempty"`
	UserId       *openapi_types.UUID     `json:"user_id,omitempty"`
}

IdentitySchema defines model for IdentitySchema.

type MFAFactorSchema

type MFAFactorSchema struct {
	CreatedAt *time.Time `json:"created_at,omitempty"`

	// FactorType Usually one of:
	// - totp
	// - phone
	// - webauthn
	FactorType       *string             `json:"factor_type,omitempty"`
	FriendlyName     *string             `json:"friendly_name,omitempty"`
	Id               *openapi_types.UUID `json:"id,omitempty"`
	LastChallengedAt *time.Time          `json:"last_challenged_at"`
	Phone            *string             `json:"phone"`

	// Status Usually one of:
	// - verified
	// - unverified
	Status             *string    `json:"status,omitempty"`
	UpdatedAt          *time.Time `json:"updated_at,omitempty"`
	WebAuthnCredential *string    `json:"web_authn_credential,omitempty"`
}

MFAFactorSchema Represents a MFA factor.

type PostAdminGenerateLinkJSONBody

type PostAdminGenerateLinkJSONBody struct {
	Data       *map[string]interface{}           `json:"data,omitempty"`
	Email      openapi_types.Email               `json:"email"`
	NewEmail   *openapi_types.Email              `json:"new_email,omitempty"`
	Password   *string                           `json:"password,omitempty"`
	RedirectTo *string                           `json:"redirect_to,omitempty"`
	Type       PostAdminGenerateLinkJSONBodyType `json:"type"`
}

PostAdminGenerateLinkJSONBody defines parameters for PostAdminGenerateLink.

type PostAdminGenerateLinkJSONBodyType

type PostAdminGenerateLinkJSONBodyType string

PostAdminGenerateLinkJSONBodyType defines parameters for PostAdminGenerateLink.

const (
	EmailChangeCurrent PostAdminGenerateLinkJSONBodyType = "email_change_current"
	EmailChangeNew     PostAdminGenerateLinkJSONBodyType = "email_change_new"
	Magiclink          PostAdminGenerateLinkJSONBodyType = "magiclink"
	Recovery           PostAdminGenerateLinkJSONBodyType = "recovery"
	Signup             PostAdminGenerateLinkJSONBodyType = "signup"
)

Defines values for PostAdminGenerateLinkJSONBodyType.

type PostAdminGenerateLinkJSONRequestBody

type PostAdminGenerateLinkJSONRequestBody PostAdminGenerateLinkJSONBody

PostAdminGenerateLinkJSONRequestBody defines body for PostAdminGenerateLink for application/json ContentType.

type PostAdminGenerateLinkResponse

type PostAdminGenerateLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		ActionLink           *string                `json:"action_link,omitempty"`
		EmailOtp             *string                `json:"email_otp,omitempty"`
		HashedToken          *string                `json:"hashed_token,omitempty"`
		RedirectTo           *string                `json:"redirect_to,omitempty"`
		VerificationType     *string                `json:"verification_type,omitempty"`
		AdditionalProperties map[string]interface{} `json:"-"`
	}
	JSON400 *BadRequestResponse
	JSON401 *UnauthorizedResponse
	JSON403 *ForbiddenResponse
	JSON404 *ErrorSchema
	JSON422 *ErrorSchema
}

func ParsePostAdminGenerateLinkResponse

func ParsePostAdminGenerateLinkResponse(rsp *http.Response) (*PostAdminGenerateLinkResponse, error)

ParsePostAdminGenerateLinkResponse parses an HTTP response from a PostAdminGenerateLinkWithResponse call

func (PostAdminGenerateLinkResponse) Status

Status returns HTTPResponse.Status

func (PostAdminGenerateLinkResponse) StatusCode

func (r PostAdminGenerateLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostAdminSsoProvidersJSONBody

type PostAdminSsoProvidersJSONBody struct {
	AttributeMapping *SAMLAttributeMappingSchema       `json:"attribute_mapping,omitempty"`
	Domains          *[]string                         `json:"domains,omitempty"`
	MetadataUrl      *string                           `json:"metadata_url,omitempty"`
	MetadataXml      *string                           `json:"metadata_xml,omitempty"`
	Type             PostAdminSsoProvidersJSONBodyType `json:"type"`
}

PostAdminSsoProvidersJSONBody defines parameters for PostAdminSsoProviders.

type PostAdminSsoProvidersJSONBodyType

type PostAdminSsoProvidersJSONBodyType string

PostAdminSsoProvidersJSONBodyType defines parameters for PostAdminSsoProviders.

const (
	Saml PostAdminSsoProvidersJSONBodyType = "saml"
)

Defines values for PostAdminSsoProvidersJSONBodyType.

type PostAdminSsoProvidersJSONRequestBody

type PostAdminSsoProvidersJSONRequestBody PostAdminSsoProvidersJSONBody

PostAdminSsoProvidersJSONRequestBody defines body for PostAdminSsoProviders for application/json ContentType.

type PostAdminSsoProvidersResponse

type PostAdminSsoProvidersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SSOProviderSchema
	JSON400      *BadRequestResponse
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
}

func ParsePostAdminSsoProvidersResponse

func ParsePostAdminSsoProvidersResponse(rsp *http.Response) (*PostAdminSsoProvidersResponse, error)

ParsePostAdminSsoProvidersResponse parses an HTTP response from a PostAdminSsoProvidersWithResponse call

func (PostAdminSsoProvidersResponse) Status

Status returns HTTPResponse.Status

func (PostAdminSsoProvidersResponse) StatusCode

func (r PostAdminSsoProvidersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostInviteJSONBody

type PostInviteJSONBody struct {
	Data  *map[string]interface{} `json:"data,omitempty"`
	Email string                  `json:"email"`
}

PostInviteJSONBody defines parameters for PostInvite.

type PostInviteJSONRequestBody

type PostInviteJSONRequestBody PostInviteJSONBody

PostInviteJSONRequestBody defines body for PostInvite for application/json ContentType.

type PostInviteResponse

type PostInviteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserSchema
	JSON400      *BadRequestResponse
	JSON422      *ErrorSchema
}

func ParsePostInviteResponse

func ParsePostInviteResponse(rsp *http.Response) (*PostInviteResponse, error)

ParsePostInviteResponse parses an HTTP response from a PostInviteWithResponse call

func (PostInviteResponse) Status

func (r PostInviteResponse) Status() string

Status returns HTTPResponse.Status

func (PostInviteResponse) StatusCode

func (r PostInviteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutAdminSsoProvidersSsoProviderIdJSONBody

type PutAdminSsoProvidersSsoProviderIdJSONBody struct {
	AttributeMapping *SAMLAttributeMappingSchema `json:"attribute_mapping,omitempty"`
	Domains          *[]string                   `json:"domains,omitempty"`
	MetadataUrl      *string                     `json:"metadata_url,omitempty"`
	MetadataXml      *string                     `json:"metadata_xml,omitempty"`
}

PutAdminSsoProvidersSsoProviderIdJSONBody defines parameters for PutAdminSsoProvidersSsoProviderId.

type PutAdminSsoProvidersSsoProviderIdJSONRequestBody

type PutAdminSsoProvidersSsoProviderIdJSONRequestBody PutAdminSsoProvidersSsoProviderIdJSONBody

PutAdminSsoProvidersSsoProviderIdJSONRequestBody defines body for PutAdminSsoProvidersSsoProviderId for application/json ContentType.

type PutAdminSsoProvidersSsoProviderIdResponse

type PutAdminSsoProvidersSsoProviderIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SSOProviderSchema
	JSON400      *BadRequestResponse
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *ErrorSchema
}

func ParsePutAdminSsoProvidersSsoProviderIdResponse

func ParsePutAdminSsoProvidersSsoProviderIdResponse(rsp *http.Response) (*PutAdminSsoProvidersSsoProviderIdResponse, error)

ParsePutAdminSsoProvidersSsoProviderIdResponse parses an HTTP response from a PutAdminSsoProvidersSsoProviderIdWithResponse call

func (PutAdminSsoProvidersSsoProviderIdResponse) Status

Status returns HTTPResponse.Status

func (PutAdminSsoProvidersSsoProviderIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PutAdminUsersUserIdFactorsFactorIdJSONBody

type PutAdminUsersUserIdFactorsFactorIdJSONBody = map[string]interface{}

PutAdminUsersUserIdFactorsFactorIdJSONBody defines parameters for PutAdminUsersUserIdFactorsFactorId.

type PutAdminUsersUserIdFactorsFactorIdJSONRequestBody

type PutAdminUsersUserIdFactorsFactorIdJSONRequestBody = PutAdminUsersUserIdFactorsFactorIdJSONBody

PutAdminUsersUserIdFactorsFactorIdJSONRequestBody defines body for PutAdminUsersUserIdFactorsFactorId for application/json ContentType.

type PutAdminUsersUserIdFactorsFactorIdResponse

type PutAdminUsersUserIdFactorsFactorIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *MFAFactorSchema
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *ErrorSchema
}

func ParsePutAdminUsersUserIdFactorsFactorIdResponse

func ParsePutAdminUsersUserIdFactorsFactorIdResponse(rsp *http.Response) (*PutAdminUsersUserIdFactorsFactorIdResponse, error)

ParsePutAdminUsersUserIdFactorsFactorIdResponse parses an HTTP response from a PutAdminUsersUserIdFactorsFactorIdWithResponse call

func (PutAdminUsersUserIdFactorsFactorIdResponse) Status

Status returns HTTPResponse.Status

func (PutAdminUsersUserIdFactorsFactorIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PutAdminUsersUserIdJSONRequestBody

type PutAdminUsersUserIdJSONRequestBody = UserSchema

PutAdminUsersUserIdJSONRequestBody defines body for PutAdminUsersUserId for application/json ContentType.

type PutAdminUsersUserIdResponse

type PutAdminUsersUserIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UserSchema
	JSON401      *UnauthorizedResponse
	JSON403      *ForbiddenResponse
	JSON404      *ErrorSchema
}

func ParsePutAdminUsersUserIdResponse

func ParsePutAdminUsersUserIdResponse(rsp *http.Response) (*PutAdminUsersUserIdResponse, error)

ParsePutAdminUsersUserIdResponse parses an HTTP response from a PutAdminUsersUserIdWithResponse call

func (PutAdminUsersUserIdResponse) Status

Status returns HTTPResponse.Status

func (PutAdminUsersUserIdResponse) StatusCode

func (r PutAdminUsersUserIdResponse) StatusCode() int

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 SAMLAttributeMappingSchema

type SAMLAttributeMappingSchema struct {
	Keys *map[string]interface{} `json:"keys,omitempty"`
}

SAMLAttributeMappingSchema defines model for SAMLAttributeMappingSchema.

type SSOProviderSchema

type SSOProviderSchema struct {
	Id   *openapi_types.UUID `json:"id,omitempty"`
	Saml *struct {
		AttributeMapping *SAMLAttributeMappingSchema `json:"attribute_mapping,omitempty"`
		EntityId         *string                     `json:"entity_id,omitempty"`
		MetadataUrl      *string                     `json:"metadata_url,omitempty"`
		MetadataXml      *string                     `json:"metadata_xml,omitempty"`
	} `json:"saml,omitempty"`
	SsoDomains *[]struct {
		Domain *string `json:"domain,omitempty"`
	} `json:"sso_domains,omitempty"`
}

SSOProviderSchema defines model for SSOProviderSchema.

type UnauthorizedResponse

type UnauthorizedResponse = ErrorSchema

UnauthorizedResponse defines model for UnauthorizedResponse.

type UserSchema

type UserSchema struct {
	AppMetadata *map[string]interface{} `json:"app_metadata,omitempty"`
	// Deprecated:
	Aud                *string    `json:"aud,omitempty"`
	BannedUntil        *time.Time `json:"banned_until,omitempty"`
	ConfirmationSentAt *time.Time `json:"confirmation_sent_at,omitempty"`
	ConfirmedAt        *time.Time `json:"confirmed_at,omitempty"`
	CreatedAt          *time.Time `json:"created_at,omitempty"`
	DeletedAt          *time.Time `json:"deleted_at,omitempty"`

	// Email User's primary contact email. In most cases you can uniquely identify a user by their email address, but not in all cases.
	Email             *string              `json:"email,omitempty"`
	EmailChangeSentAt *time.Time           `json:"email_change_sent_at,omitempty"`
	EmailConfirmedAt  *time.Time           `json:"email_confirmed_at,omitempty"`
	Factors           *[]MFAFactorSchema   `json:"factors,omitempty"`
	Id                *openapi_types.UUID  `json:"id,omitempty"`
	Identities        *[]IdentitySchema    `json:"identities,omitempty"`
	IsAnonymous       *bool                `json:"is_anonymous,omitempty"`
	LastSignInAt      *time.Time           `json:"last_sign_in_at,omitempty"`
	NewEmail          *openapi_types.Email `json:"new_email,omitempty"`
	NewPhone          *string              `json:"new_phone,omitempty"`

	// Phone User's primary contact phone number. In most cases you can uniquely identify a user by their phone number, but not in all cases.
	Phone                  *string                 `json:"phone,omitempty"`
	PhoneChangeSentAt      *time.Time              `json:"phone_change_sent_at,omitempty"`
	PhoneConfirmedAt       *time.Time              `json:"phone_confirmed_at,omitempty"`
	ReauthenticationSentAt *time.Time              `json:"reauthentication_sent_at,omitempty"`
	RecoverySentAt         *time.Time              `json:"recovery_sent_at,omitempty"`
	Role                   *string                 `json:"role,omitempty"`
	UpdatedAt              *time.Time              `json:"updated_at,omitempty"`
	UserMetadata           *map[string]interface{} `json:"user_metadata,omitempty"`
}

UserSchema Object describing the user related to the issued access and refresh tokens.

Jump to

Keyboard shortcuts

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