authapi

package
v0.0.0-...-cf1d9c3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpec

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

GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.

func GetSpecJSON

func GetSpecJSON() ([]byte, error)

GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.

func GetSwagger deprecated

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

GetSwagger returns the OpenAPI specification corresponding to the generated code in this file.

Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger to openapi3.T. Use GetSpec instead. This wrapper is retained for backwards compatibility.

func NewDeleteIdentityRequest

func NewDeleteIdentityRequest(server string, identityId openapi_types.UUID) (*http.Request, error)

NewDeleteIdentityRequest constructs an http.Request for the DeleteIdentity method

func NewDeleteUserAuthRequest

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

NewDeleteUserAuthRequest constructs an http.Request for the DeleteUserAuth method

func NewDevLinkRequest

func NewDevLinkRequest(server string, body DevLinkJSONRequestBody) (*http.Request, error)

NewDevLinkRequest calls the generic DevLink builder with application/json body

func NewDevLinkRequestWithBody

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

NewDevLinkRequestWithBody constructs an http.Request for the DevLink method, with any body, and a specified content type

func NewDevTokenRequest

func NewDevTokenRequest(server string, body DevTokenJSONRequestBody) (*http.Request, error)

NewDevTokenRequest calls the generic DevToken builder with application/json body

func NewDevTokenRequestWithBody

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

NewDevTokenRequestWithBody constructs an http.Request for the DevToken method, with any body, and a specified content type

func NewGetJwksRequest

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

NewGetJwksRequest constructs an http.Request for the GetJwks method

func NewInternalServiceTokenRequest

func NewInternalServiceTokenRequest(server string, params *InternalServiceTokenParams, body InternalServiceTokenJSONRequestBody) (*http.Request, error)

NewInternalServiceTokenRequest calls the generic InternalServiceToken builder with application/json body

func NewInternalServiceTokenRequestWithBody

func NewInternalServiceTokenRequestWithBody(server string, params *InternalServiceTokenParams, contentType string, body io.Reader) (*http.Request, error)

NewInternalServiceTokenRequestWithBody constructs an http.Request for the InternalServiceToken method, with any body, and a specified content type

func NewListIdentitiesRequest

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

NewListIdentitiesRequest constructs an http.Request for the ListIdentities method

func NewListProvidersRequest

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

NewListProvidersRequest constructs an http.Request for the ListProviders method

func NewOauthCallbackRequest

func NewOauthCallbackRequest(server string, body OauthCallbackJSONRequestBody) (*http.Request, error)

NewOauthCallbackRequest calls the generic OauthCallback builder with application/json body

func NewOauthCallbackRequestWithBody

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

NewOauthCallbackRequestWithBody constructs an http.Request for the OauthCallback method, with any body, and a specified content type

func NewOauthLinkStartRequest

func NewOauthLinkStartRequest(server string, body OauthLinkStartJSONRequestBody) (*http.Request, error)

NewOauthLinkStartRequest calls the generic OauthLinkStart builder with application/json body

func NewOauthLinkStartRequestWithBody

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

NewOauthLinkStartRequestWithBody constructs an http.Request for the OauthLinkStart method, with any body, and a specified content type

func NewOauthStartRequest

func NewOauthStartRequest(server string, body OauthStartJSONRequestBody) (*http.Request, error)

NewOauthStartRequest calls the generic OauthStart builder with application/json body

func NewOauthStartRequestWithBody

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

NewOauthStartRequestWithBody constructs an http.Request for the OauthStart method, with any body, and a specified content type

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 constructs an http.Request for the RefreshToken method, with any body, and a specified content type

func NewRevokeTokenRequest

func NewRevokeTokenRequest(server string, body RevokeTokenJSONRequestBody) (*http.Request, error)

NewRevokeTokenRequest calls the generic RevokeToken builder with application/json body

func NewRevokeTokenRequestWithBody

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

NewRevokeTokenRequestWithBody constructs an http.Request for the RevokeToken method, with any body, and a specified content type

func PathToRawSpec

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

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

Types

type BadRequest

type BadRequest = externalRef0.Problem

BadRequest defines model for BadRequest.

type CallbackRequest

type CallbackRequest struct {
	Code  string `json:"code"`
	State string `json:"state"`
}

CallbackRequest defines model for CallbackRequest.

type CallbackResponse

type CallbackResponse struct {
	// AccessToken Ed25519 JWT, ~5 min TTL
	AccessToken string `json:"access_token"`

	// ExpiresIn Access token lifetime, seconds
	ExpiresIn int64 `json:"expires_in"`

	// LinkedProvider Present only when the flow was an account link; names the linked provider.
	LinkedProvider *string `json:"linked_provider,omitempty"`

	// RefreshExpiresIn Seconds until the session's absolute expiry
	RefreshExpiresIn int64 `json:"refresh_expires_in"`

	// RefreshToken Opaque, single-use; rotated on every refresh
	RefreshToken string `json:"refresh_token"`

	// TokenType Always Bearer
	TokenType string `json:"token_type"`
}

CallbackResponse defines model for CallbackResponse.

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

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

DeleteIdentity Unlink a provider login from the caller's account

Corresponds with DELETE /identities/{identityId} (the `DeleteIdentity` operationId).

func (*Client) DeleteUserAuth

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

DeleteUserAuth Delete all identities and revoke every refresh family for a user (self only; account deletion)

Corresponds with DELETE /users/{userId}/auth (the `DeleteUserAuth` operationId).

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

DevLink Link a dev fixture identity to the caller's account (dev provider only; 404 unless enabled)

Takes a body of the `application/json` content type.

Corresponds with POST /oauth/dev/link (the `DevLink` operationId).

func (*Client) DevLinkWithBody

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

DevLinkWithBody Link a dev fixture identity to the caller's account (dev provider only; 404 unless enabled)

Takes any type of body and a specified content type.

Corresponds with POST /oauth/dev/link (the `DevLink` operationId).

func (*Client) DevToken

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

DevToken Mint a session for a dev fixture user (dev provider only; 404 unless enabled)

Takes a body of the `application/json` content type.

Corresponds with POST /oauth/dev/token (the `DevToken` operationId).

func (*Client) DevTokenWithBody

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

DevTokenWithBody Mint a session for a dev fixture user (dev provider only; 404 unless enabled)

Takes any type of body and a specified content type.

Corresponds with POST /oauth/dev/token (the `DevToken` operationId).

func (*Client) GetJwks

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

GetJwks Public signing keys (Ed25519) for access-JWT verification

Corresponds with GET /.well-known/jwks.json (the `GetJwks` operationId).

func (*Client) InternalServiceToken

func (c *Client) InternalServiceToken(ctx context.Context, params *InternalServiceTokenParams, body InternalServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

InternalServiceToken Mint a short-lived service JWT for cluster maintenance jobs

Machine-to-machine bootstrap; the gateway never routes it. Authenticates the static internal secret (X-Internal-Token, constant-time against a one-or-two-entry accept set for zero-downtime rotation) and mints a standard access token with a service subject and token_use=service, 15 minutes. A wrong secret answers 401 invalid_internal_token; a missing header answers a generated 400 (required parameter validation runs before this check). Consumers: the catalog-refresh and entry-rematch CronJobs.

Takes a body of the `application/json` content type.

Corresponds with POST /internal/service-token (the `InternalServiceToken` operationId).

func (*Client) InternalServiceTokenWithBody

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

InternalServiceTokenWithBody Mint a short-lived service JWT for cluster maintenance jobs

Machine-to-machine bootstrap; the gateway never routes it. Authenticates the static internal secret (X-Internal-Token, constant-time against a one-or-two-entry accept set for zero-downtime rotation) and mints a standard access token with a service subject and token_use=service, 15 minutes. A wrong secret answers 401 invalid_internal_token; a missing header answers a generated 400 (required parameter validation runs before this check). Consumers: the catalog-refresh and entry-rematch CronJobs.

Takes any type of body and a specified content type.

Corresponds with POST /internal/service-token (the `InternalServiceToken` operationId).

func (*Client) ListIdentities

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

ListIdentities Provider logins linked to a user (self, or a service credential)

Corresponds with GET /users/{userId}/identities (the `ListIdentities` operationId).

func (*Client) ListProviders

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

ListProviders Login provider names currently enabled, in display order

Corresponds with GET /providers (the `ListProviders` operationId).

func (*Client) OauthCallback

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

OauthCallback Complete a provider login or account link (code exchange, ID-token verification)

Takes a body of the `application/json` content type.

Corresponds with POST /oauth/callback (the `OauthCallback` operationId).

func (*Client) OauthCallbackWithBody

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

OauthCallbackWithBody Complete a provider login or account link (code exchange, ID-token verification)

Takes any type of body and a specified content type.

Corresponds with POST /oauth/callback (the `OauthCallback` operationId).

func (*Client) OauthLinkStart

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

OauthLinkStart Begin linking another provider login to the caller's account

Takes a body of the `application/json` content type.

Corresponds with POST /oauth/link/start (the `OauthLinkStart` operationId).

func (*Client) OauthLinkStartWithBody

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

OauthLinkStartWithBody Begin linking another provider login to the caller's account

Takes any type of body and a specified content type.

Corresponds with POST /oauth/link/start (the `OauthLinkStart` operationId).

func (*Client) OauthStart

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

OauthStart Begin a provider login; returns the URL to redirect the browser to

Takes a body of the `application/json` content type.

Corresponds with POST /oauth/start (the `OauthStart` operationId).

func (*Client) OauthStartWithBody

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

OauthStartWithBody Begin a provider login; returns the URL to redirect the browser to

Takes any type of body and a specified content type.

Corresponds with POST /oauth/start (the `OauthStart` operationId).

func (*Client) RefreshToken

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

RefreshToken Rotate a refresh token; reuse of a consumed token revokes its whole chain

Takes a body of the `application/json` content type.

Corresponds with POST /token/refresh (the `RefreshToken` operationId).

func (*Client) RefreshTokenWithBody

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

RefreshTokenWithBody Rotate a refresh token; reuse of a consumed token revokes its whole chain

Takes any type of body and a specified content type.

Corresponds with POST /token/refresh (the `RefreshToken` operationId).

func (*Client) RevokeToken

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

RevokeToken Revoke a refresh token's whole chain (logout); idempotent

Takes a body of the `application/json` content type.

Corresponds with POST /token/revoke (the `RevokeToken` operationId).

func (*Client) RevokeTokenWithBody

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

RevokeTokenWithBody Revoke a refresh token's whole chain (logout); idempotent

Takes any type of body and a specified content type.

Corresponds with POST /token/revoke (the `RevokeToken` operationId).

type ClientInterface

type ClientInterface interface {

	// GetJwks Public signing keys (Ed25519) for access-JWT verification
	//
	// Corresponds with GET /.well-known/jwks.json (the `GetJwks` operationId).
	GetJwks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteIdentity Unlink a provider login from the caller's account
	//
	// Corresponds with DELETE /identities/{identityId} (the `DeleteIdentity` operationId).
	DeleteIdentity(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalServiceTokenWithBody Mint a short-lived service JWT for cluster maintenance jobs
	//
	// Machine-to-machine bootstrap; the gateway never routes it. Authenticates the static internal secret (X-Internal-Token, constant-time against a one-or-two-entry accept set for zero-downtime rotation) and mints a standard access token with a service subject and token_use=service, 15 minutes. A wrong secret answers 401 invalid_internal_token; a missing header answers a generated 400 (required parameter validation runs before this check). Consumers: the catalog-refresh and entry-rematch CronJobs.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /internal/service-token (the `InternalServiceToken` operationId).
	InternalServiceTokenWithBody(ctx context.Context, params *InternalServiceTokenParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InternalServiceToken Mint a short-lived service JWT for cluster maintenance jobs
	//
	// Machine-to-machine bootstrap; the gateway never routes it. Authenticates the static internal secret (X-Internal-Token, constant-time against a one-or-two-entry accept set for zero-downtime rotation) and mints a standard access token with a service subject and token_use=service, 15 minutes. A wrong secret answers 401 invalid_internal_token; a missing header answers a generated 400 (required parameter validation runs before this check). Consumers: the catalog-refresh and entry-rematch CronJobs.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /internal/service-token (the `InternalServiceToken` operationId).
	InternalServiceToken(ctx context.Context, params *InternalServiceTokenParams, body InternalServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OauthCallbackWithBody Complete a provider login or account link (code exchange, ID-token verification)
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /oauth/callback (the `OauthCallback` operationId).
	OauthCallbackWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OauthCallback Complete a provider login or account link (code exchange, ID-token verification)
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /oauth/callback (the `OauthCallback` operationId).
	OauthCallback(ctx context.Context, body OauthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DevLinkWithBody Link a dev fixture identity to the caller's account (dev provider only; 404 unless enabled)
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /oauth/dev/link (the `DevLink` operationId).
	DevLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DevLink Link a dev fixture identity to the caller's account (dev provider only; 404 unless enabled)
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /oauth/dev/link (the `DevLink` operationId).
	DevLink(ctx context.Context, body DevLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DevTokenWithBody Mint a session for a dev fixture user (dev provider only; 404 unless enabled)
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /oauth/dev/token (the `DevToken` operationId).
	DevTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DevToken Mint a session for a dev fixture user (dev provider only; 404 unless enabled)
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /oauth/dev/token (the `DevToken` operationId).
	DevToken(ctx context.Context, body DevTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OauthLinkStartWithBody Begin linking another provider login to the caller's account
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /oauth/link/start (the `OauthLinkStart` operationId).
	OauthLinkStartWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OauthLinkStart Begin linking another provider login to the caller's account
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /oauth/link/start (the `OauthLinkStart` operationId).
	OauthLinkStart(ctx context.Context, body OauthLinkStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OauthStartWithBody Begin a provider login; returns the URL to redirect the browser to
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /oauth/start (the `OauthStart` operationId).
	OauthStartWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// OauthStart Begin a provider login; returns the URL to redirect the browser to
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /oauth/start (the `OauthStart` operationId).
	OauthStart(ctx context.Context, body OauthStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListProviders Login provider names currently enabled, in display order
	//
	// Corresponds with GET /providers (the `ListProviders` operationId).
	ListProviders(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RefreshTokenWithBody Rotate a refresh token; reuse of a consumed token revokes its whole chain
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /token/refresh (the `RefreshToken` operationId).
	RefreshTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RefreshToken Rotate a refresh token; reuse of a consumed token revokes its whole chain
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /token/refresh (the `RefreshToken` operationId).
	RefreshToken(ctx context.Context, body RefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeTokenWithBody Revoke a refresh token's whole chain (logout); idempotent
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /token/revoke (the `RevokeToken` operationId).
	RevokeTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeToken Revoke a refresh token's whole chain (logout); idempotent
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /token/revoke (the `RevokeToken` operationId).
	RevokeToken(ctx context.Context, body RevokeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteUserAuth Delete all identities and revoke every refresh family for a user (self only; account deletion)
	//
	// Corresponds with DELETE /users/{userId}/auth (the `DeleteUserAuth` operationId).
	DeleteUserAuth(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListIdentities Provider logins linked to a user (self, or a service credential)
	//
	// Corresponds with GET /users/{userId}/identities (the `ListIdentities` operationId).
	ListIdentities(ctx context.Context, userId openapi_types.UUID, 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) DeleteIdentityWithResponse

func (c *ClientWithResponses) DeleteIdentityWithResponse(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteIdentityResponse, error)

DeleteIdentityWithResponse Unlink a provider login from the caller's account

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /identities/{identityId} (the `DeleteIdentity` operationId).

func (*ClientWithResponses) DeleteUserAuthWithResponse

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

DeleteUserAuthWithResponse Delete all identities and revoke every refresh family for a user (self only; account deletion)

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /users/{userId}/auth (the `DeleteUserAuth` operationId).

func (*ClientWithResponses) DevLinkWithBodyWithResponse

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

DevLinkWithBodyWithResponse Link a dev fixture identity to the caller's account (dev provider only; 404 unless enabled)

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /oauth/dev/link (the `DevLink` operationId).

func (*ClientWithResponses) DevLinkWithResponse

func (c *ClientWithResponses) DevLinkWithResponse(ctx context.Context, body DevLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*DevLinkResponse, error)

DevLinkWithResponse Link a dev fixture identity to the caller's account (dev provider only; 404 unless enabled)

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /oauth/dev/link (the `DevLink` operationId).

func (*ClientWithResponses) DevTokenWithBodyWithResponse

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

DevTokenWithBodyWithResponse Mint a session for a dev fixture user (dev provider only; 404 unless enabled)

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /oauth/dev/token (the `DevToken` operationId).

func (*ClientWithResponses) DevTokenWithResponse

func (c *ClientWithResponses) DevTokenWithResponse(ctx context.Context, body DevTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*DevTokenResponse, error)

DevTokenWithResponse Mint a session for a dev fixture user (dev provider only; 404 unless enabled)

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /oauth/dev/token (the `DevToken` operationId).

func (*ClientWithResponses) GetJwksWithResponse

func (c *ClientWithResponses) GetJwksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetJwksResponse, error)

GetJwksWithResponse Public signing keys (Ed25519) for access-JWT verification

Returns a wrapper object for the known response body format(s).

Corresponds with GET /.well-known/jwks.json (the `GetJwks` operationId).

func (*ClientWithResponses) InternalServiceTokenWithBodyWithResponse

func (c *ClientWithResponses) InternalServiceTokenWithBodyWithResponse(ctx context.Context, params *InternalServiceTokenParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalServiceTokenResponse, error)

InternalServiceTokenWithBodyWithResponse Mint a short-lived service JWT for cluster maintenance jobs

Machine-to-machine bootstrap; the gateway never routes it. Authenticates the static internal secret (X-Internal-Token, constant-time against a one-or-two-entry accept set for zero-downtime rotation) and mints a standard access token with a service subject and token_use=service, 15 minutes. A wrong secret answers 401 invalid_internal_token; a missing header answers a generated 400 (required parameter validation runs before this check). Consumers: the catalog-refresh and entry-rematch CronJobs.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/service-token (the `InternalServiceToken` operationId).

func (*ClientWithResponses) InternalServiceTokenWithResponse

InternalServiceTokenWithResponse Mint a short-lived service JWT for cluster maintenance jobs

Machine-to-machine bootstrap; the gateway never routes it. Authenticates the static internal secret (X-Internal-Token, constant-time against a one-or-two-entry accept set for zero-downtime rotation) and mints a standard access token with a service subject and token_use=service, 15 minutes. A wrong secret answers 401 invalid_internal_token; a missing header answers a generated 400 (required parameter validation runs before this check). Consumers: the catalog-refresh and entry-rematch CronJobs.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /internal/service-token (the `InternalServiceToken` operationId).

func (*ClientWithResponses) ListIdentitiesWithResponse

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

ListIdentitiesWithResponse Provider logins linked to a user (self, or a service credential)

Returns a wrapper object for the known response body format(s).

Corresponds with GET /users/{userId}/identities (the `ListIdentities` operationId).

func (*ClientWithResponses) ListProvidersWithResponse

func (c *ClientWithResponses) ListProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error)

ListProvidersWithResponse Login provider names currently enabled, in display order

Returns a wrapper object for the known response body format(s).

Corresponds with GET /providers (the `ListProviders` operationId).

func (*ClientWithResponses) OauthCallbackWithBodyWithResponse

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

OauthCallbackWithBodyWithResponse Complete a provider login or account link (code exchange, ID-token verification)

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /oauth/callback (the `OauthCallback` operationId).

func (*ClientWithResponses) OauthCallbackWithResponse

func (c *ClientWithResponses) OauthCallbackWithResponse(ctx context.Context, body OauthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*OauthCallbackResponse, error)

OauthCallbackWithResponse Complete a provider login or account link (code exchange, ID-token verification)

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /oauth/callback (the `OauthCallback` operationId).

func (*ClientWithResponses) OauthLinkStartWithBodyWithResponse

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

OauthLinkStartWithBodyWithResponse Begin linking another provider login to the caller's account

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /oauth/link/start (the `OauthLinkStart` operationId).

func (*ClientWithResponses) OauthLinkStartWithResponse

func (c *ClientWithResponses) OauthLinkStartWithResponse(ctx context.Context, body OauthLinkStartJSONRequestBody, reqEditors ...RequestEditorFn) (*OauthLinkStartResponse, error)

OauthLinkStartWithResponse Begin linking another provider login to the caller's account

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /oauth/link/start (the `OauthLinkStart` operationId).

func (*ClientWithResponses) OauthStartWithBodyWithResponse

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

OauthStartWithBodyWithResponse Begin a provider login; returns the URL to redirect the browser to

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /oauth/start (the `OauthStart` operationId).

func (*ClientWithResponses) OauthStartWithResponse

func (c *ClientWithResponses) OauthStartWithResponse(ctx context.Context, body OauthStartJSONRequestBody, reqEditors ...RequestEditorFn) (*OauthStartResponse, error)

OauthStartWithResponse Begin a provider login; returns the URL to redirect the browser to

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /oauth/start (the `OauthStart` operationId).

func (*ClientWithResponses) RefreshTokenWithBodyWithResponse

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

RefreshTokenWithBodyWithResponse Rotate a refresh token; reuse of a consumed token revokes its whole chain

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /token/refresh (the `RefreshToken` operationId).

func (*ClientWithResponses) RefreshTokenWithResponse

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

RefreshTokenWithResponse Rotate a refresh token; reuse of a consumed token revokes its whole chain

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /token/refresh (the `RefreshToken` operationId).

func (*ClientWithResponses) RevokeTokenWithBodyWithResponse

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

RevokeTokenWithBodyWithResponse Revoke a refresh token's whole chain (logout); idempotent

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /token/revoke (the `RevokeToken` operationId).

func (*ClientWithResponses) RevokeTokenWithResponse

func (c *ClientWithResponses) RevokeTokenWithResponse(ctx context.Context, body RevokeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*RevokeTokenResponse, error)

RevokeTokenWithResponse Revoke a refresh token's whole chain (logout); idempotent

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /token/revoke (the `RevokeToken` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetJwksWithResponse Public signing keys (Ed25519) for access-JWT verification
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /.well-known/jwks.json (the `GetJwks` operationId).
	GetJwksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetJwksResponse, error)

	// DeleteIdentityWithResponse Unlink a provider login from the caller's account
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /identities/{identityId} (the `DeleteIdentity` operationId).
	DeleteIdentityWithResponse(ctx context.Context, identityId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteIdentityResponse, error)

	// InternalServiceTokenWithBodyWithResponse Mint a short-lived service JWT for cluster maintenance jobs
	//
	// Machine-to-machine bootstrap; the gateway never routes it. Authenticates the static internal secret (X-Internal-Token, constant-time against a one-or-two-entry accept set for zero-downtime rotation) and mints a standard access token with a service subject and token_use=service, 15 minutes. A wrong secret answers 401 invalid_internal_token; a missing header answers a generated 400 (required parameter validation runs before this check). Consumers: the catalog-refresh and entry-rematch CronJobs.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/service-token (the `InternalServiceToken` operationId).
	InternalServiceTokenWithBodyWithResponse(ctx context.Context, params *InternalServiceTokenParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InternalServiceTokenResponse, error)

	// InternalServiceTokenWithResponse Mint a short-lived service JWT for cluster maintenance jobs
	//
	// Machine-to-machine bootstrap; the gateway never routes it. Authenticates the static internal secret (X-Internal-Token, constant-time against a one-or-two-entry accept set for zero-downtime rotation) and mints a standard access token with a service subject and token_use=service, 15 minutes. A wrong secret answers 401 invalid_internal_token; a missing header answers a generated 400 (required parameter validation runs before this check). Consumers: the catalog-refresh and entry-rematch CronJobs.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /internal/service-token (the `InternalServiceToken` operationId).
	InternalServiceTokenWithResponse(ctx context.Context, params *InternalServiceTokenParams, body InternalServiceTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*InternalServiceTokenResponse, error)

	// OauthCallbackWithBodyWithResponse Complete a provider login or account link (code exchange, ID-token verification)
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oauth/callback (the `OauthCallback` operationId).
	OauthCallbackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OauthCallbackResponse, error)

	// OauthCallbackWithResponse Complete a provider login or account link (code exchange, ID-token verification)
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oauth/callback (the `OauthCallback` operationId).
	OauthCallbackWithResponse(ctx context.Context, body OauthCallbackJSONRequestBody, reqEditors ...RequestEditorFn) (*OauthCallbackResponse, error)

	// DevLinkWithBodyWithResponse Link a dev fixture identity to the caller's account (dev provider only; 404 unless enabled)
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oauth/dev/link (the `DevLink` operationId).
	DevLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DevLinkResponse, error)

	// DevLinkWithResponse Link a dev fixture identity to the caller's account (dev provider only; 404 unless enabled)
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oauth/dev/link (the `DevLink` operationId).
	DevLinkWithResponse(ctx context.Context, body DevLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*DevLinkResponse, error)

	// DevTokenWithBodyWithResponse Mint a session for a dev fixture user (dev provider only; 404 unless enabled)
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oauth/dev/token (the `DevToken` operationId).
	DevTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DevTokenResponse, error)

	// DevTokenWithResponse Mint a session for a dev fixture user (dev provider only; 404 unless enabled)
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oauth/dev/token (the `DevToken` operationId).
	DevTokenWithResponse(ctx context.Context, body DevTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*DevTokenResponse, error)

	// OauthLinkStartWithBodyWithResponse Begin linking another provider login to the caller's account
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oauth/link/start (the `OauthLinkStart` operationId).
	OauthLinkStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OauthLinkStartResponse, error)

	// OauthLinkStartWithResponse Begin linking another provider login to the caller's account
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oauth/link/start (the `OauthLinkStart` operationId).
	OauthLinkStartWithResponse(ctx context.Context, body OauthLinkStartJSONRequestBody, reqEditors ...RequestEditorFn) (*OauthLinkStartResponse, error)

	// OauthStartWithBodyWithResponse Begin a provider login; returns the URL to redirect the browser to
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oauth/start (the `OauthStart` operationId).
	OauthStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OauthStartResponse, error)

	// OauthStartWithResponse Begin a provider login; returns the URL to redirect the browser to
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /oauth/start (the `OauthStart` operationId).
	OauthStartWithResponse(ctx context.Context, body OauthStartJSONRequestBody, reqEditors ...RequestEditorFn) (*OauthStartResponse, error)

	// ListProvidersWithResponse Login provider names currently enabled, in display order
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /providers (the `ListProviders` operationId).
	ListProvidersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListProvidersResponse, error)

	// RefreshTokenWithBodyWithResponse Rotate a refresh token; reuse of a consumed token revokes its whole chain
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /token/refresh (the `RefreshToken` operationId).
	RefreshTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefreshTokenResponse, error)

	// RefreshTokenWithResponse Rotate a refresh token; reuse of a consumed token revokes its whole chain
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /token/refresh (the `RefreshToken` operationId).
	RefreshTokenWithResponse(ctx context.Context, body RefreshTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*RefreshTokenResponse, error)

	// RevokeTokenWithBodyWithResponse Revoke a refresh token's whole chain (logout); idempotent
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /token/revoke (the `RevokeToken` operationId).
	RevokeTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RevokeTokenResponse, error)

	// RevokeTokenWithResponse Revoke a refresh token's whole chain (logout); idempotent
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /token/revoke (the `RevokeToken` operationId).
	RevokeTokenWithResponse(ctx context.Context, body RevokeTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*RevokeTokenResponse, error)

	// DeleteUserAuthWithResponse Delete all identities and revoke every refresh family for a user (self only; account deletion)
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /users/{userId}/auth (the `DeleteUserAuth` operationId).
	DeleteUserAuthWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteUserAuthResponse, error)

	// ListIdentitiesWithResponse Provider logins linked to a user (self, or a service credential)
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /users/{userId}/identities (the `ListIdentities` operationId).
	ListIdentitiesWithResponse(ctx context.Context, userId openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListIdentitiesResponse, error)
}

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

type Conflict

type Conflict = externalRef0.Problem

Conflict defines model for Conflict.

type DeleteIdentityResponse

type DeleteIdentityResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseDeleteIdentityResponse

func ParseDeleteIdentityResponse(rsp *http.Response) (*DeleteIdentityResponse, error)

ParseDeleteIdentityResponse parses an HTTP response from a DeleteIdentityWithResponse call

func (DeleteIdentityResponse) ContentType

func (r DeleteIdentityResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteIdentityResponse) GetApplicationproblemJSON401

func (r DeleteIdentityResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteIdentityResponse) GetApplicationproblemJSON403

func (r DeleteIdentityResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteIdentityResponse) GetApplicationproblemJSON404

func (r DeleteIdentityResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DeleteIdentityResponse) GetApplicationproblemJSON409

func (r DeleteIdentityResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DeleteIdentityResponse) GetApplicationproblemJSONDefault

func (r DeleteIdentityResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (DeleteIdentityResponse) GetBody

func (r DeleteIdentityResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteIdentityResponse) Status

func (r DeleteIdentityResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteIdentityResponse) StatusCode

func (r DeleteIdentityResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteUserAuthResponse

type DeleteUserAuthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseDeleteUserAuthResponse

func ParseDeleteUserAuthResponse(rsp *http.Response) (*DeleteUserAuthResponse, error)

ParseDeleteUserAuthResponse parses an HTTP response from a DeleteUserAuthWithResponse call

func (DeleteUserAuthResponse) ContentType

func (r DeleteUserAuthResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteUserAuthResponse) GetApplicationproblemJSON401

func (r DeleteUserAuthResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteUserAuthResponse) GetApplicationproblemJSON403

func (r DeleteUserAuthResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteUserAuthResponse) GetApplicationproblemJSONDefault

func (r DeleteUserAuthResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (DeleteUserAuthResponse) GetBody

func (r DeleteUserAuthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteUserAuthResponse) Status

func (r DeleteUserAuthResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserAuthResponse) StatusCode

func (r DeleteUserAuthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DevLinkJSONRequestBody

type DevLinkJSONRequestBody = DevLinkRequest

DevLinkJSONRequestBody defines body for DevLink for application/json ContentType.

type DevLinkRequest

type DevLinkRequest struct {
	// User Fixture handle (alice, bob, admin, or an e2e-* test fixture); never a real account
	User string `json:"user"`
}

DevLinkRequest defines model for DevLinkRequest.

type DevLinkResponse

type DevLinkResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CallbackResponse
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseDevLinkResponse

func ParseDevLinkResponse(rsp *http.Response) (*DevLinkResponse, error)

ParseDevLinkResponse parses an HTTP response from a DevLinkWithResponse call

func (DevLinkResponse) ContentType

func (r DevLinkResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DevLinkResponse) GetApplicationproblemJSON400

func (r DevLinkResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (DevLinkResponse) GetApplicationproblemJSON401

func (r DevLinkResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DevLinkResponse) GetApplicationproblemJSON403

func (r DevLinkResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DevLinkResponse) GetApplicationproblemJSON404

func (r DevLinkResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DevLinkResponse) GetApplicationproblemJSON409

func (r DevLinkResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DevLinkResponse) GetApplicationproblemJSONDefault

func (r DevLinkResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (DevLinkResponse) GetBody

func (r DevLinkResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DevLinkResponse) GetJSON200

func (r DevLinkResponse) GetJSON200() *CallbackResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DevLinkResponse) Status

func (r DevLinkResponse) Status() string

Status returns HTTPResponse.Status

func (DevLinkResponse) StatusCode

func (r DevLinkResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DevTokenJSONRequestBody

type DevTokenJSONRequestBody = DevTokenRequest

DevTokenJSONRequestBody defines body for DevToken for application/json ContentType.

type DevTokenRequest

type DevTokenRequest struct {
	// User Fixture handle (alice, bob, admin, or an e2e-* test fixture); never a real account
	User string `json:"user"`
}

DevTokenRequest defines model for DevTokenRequest.

type DevTokenResponse

type DevTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TokenPair
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseDevTokenResponse

func ParseDevTokenResponse(rsp *http.Response) (*DevTokenResponse, error)

ParseDevTokenResponse parses an HTTP response from a DevTokenWithResponse call

func (DevTokenResponse) ContentType

func (r DevTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DevTokenResponse) GetApplicationproblemJSON400

func (r DevTokenResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (DevTokenResponse) GetApplicationproblemJSON404

func (r DevTokenResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DevTokenResponse) GetApplicationproblemJSONDefault

func (r DevTokenResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (DevTokenResponse) GetBody

func (r DevTokenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DevTokenResponse) GetJSON200

func (r DevTokenResponse) GetJSON200() *TokenPair

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DevTokenResponse) Status

func (r DevTokenResponse) Status() string

Status returns HTTPResponse.Status

func (DevTokenResponse) StatusCode

func (r DevTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Forbidden

type Forbidden = externalRef0.Problem

Forbidden defines model for Forbidden.

type GetJwksResponse

type GetJwksResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Jwks
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseGetJwksResponse

func ParseGetJwksResponse(rsp *http.Response) (*GetJwksResponse, error)

ParseGetJwksResponse parses an HTTP response from a GetJwksWithResponse call

func (GetJwksResponse) ContentType

func (r GetJwksResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetJwksResponse) GetApplicationproblemJSONDefault

func (r GetJwksResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (GetJwksResponse) GetBody

func (r GetJwksResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetJwksResponse) GetJSON200

func (r GetJwksResponse) GetJSON200() *Jwks

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetJwksResponse) Status

func (r GetJwksResponse) Status() string

Status returns HTTPResponse.Status

func (GetJwksResponse) StatusCode

func (r GetJwksResponse) 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 Identities

type Identities = externalRef0.Identities

Identities defines model for Identities.

type InternalError

type InternalError = externalRef0.Problem

InternalError defines model for InternalError.

type InternalServiceToken200JSONResponseBodyTokenType

type InternalServiceToken200JSONResponseBodyTokenType string

InternalServiceToken200JSONResponseBodyTokenType defines parameters for InternalServiceToken.

Defines values for InternalServiceToken200JSONResponseBodyTokenType.

func (InternalServiceToken200JSONResponseBodyTokenType) Valid

Valid indicates whether the value is a known member of the InternalServiceToken200JSONResponseBodyTokenType enum.

type InternalServiceTokenJSONBody

type InternalServiceTokenJSONBody struct {
	Service InternalServiceTokenJSONBodyService `json:"service"`
}

InternalServiceTokenJSONBody defines parameters for InternalServiceToken.

type InternalServiceTokenJSONBodyService

type InternalServiceTokenJSONBodyService string

InternalServiceTokenJSONBodyService defines parameters for InternalServiceToken.

const (
	CatalogRefresh InternalServiceTokenJSONBodyService = "catalog-refresh"
	EntryRematch   InternalServiceTokenJSONBodyService = "entry-rematch"
)

Defines values for InternalServiceTokenJSONBodyService.

func (InternalServiceTokenJSONBodyService) Valid

Valid indicates whether the value is a known member of the InternalServiceTokenJSONBodyService enum.

type InternalServiceTokenJSONRequestBody

type InternalServiceTokenJSONRequestBody InternalServiceTokenJSONBody

InternalServiceTokenJSONRequestBody defines body for InternalServiceToken for application/json ContentType.

type InternalServiceTokenParams

type InternalServiceTokenParams struct {
	XInternalToken string `json:"X-Internal-Token"`
}

InternalServiceTokenParams defines parameters for InternalServiceToken.

type InternalServiceTokenResponse

type InternalServiceTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		AccessToken string                                           `json:"access_token"`
		ExpiresIn   int                                              `json:"expires_in"`
		TokenType   InternalServiceToken200JSONResponseBodyTokenType `json:"token_type"`
	}
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseInternalServiceTokenResponse

func ParseInternalServiceTokenResponse(rsp *http.Response) (*InternalServiceTokenResponse, error)

ParseInternalServiceTokenResponse parses an HTTP response from a InternalServiceTokenWithResponse call

func (InternalServiceTokenResponse) ContentType

func (r InternalServiceTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (InternalServiceTokenResponse) GetApplicationproblemJSON400

func (r InternalServiceTokenResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (InternalServiceTokenResponse) GetApplicationproblemJSON401

func (r InternalServiceTokenResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (InternalServiceTokenResponse) GetApplicationproblemJSONDefault

func (r InternalServiceTokenResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (InternalServiceTokenResponse) GetBody

func (r InternalServiceTokenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (InternalServiceTokenResponse) GetJSON200

func (r InternalServiceTokenResponse) GetJSON200() *struct {
	AccessToken string                                           `json:"access_token"`
	ExpiresIn   int                                              `json:"expires_in"`
	TokenType   InternalServiceToken200JSONResponseBodyTokenType `json:"token_type"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (InternalServiceTokenResponse) Status

Status returns HTTPResponse.Status

func (InternalServiceTokenResponse) StatusCode

func (r InternalServiceTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Jwk

type Jwk struct {
	Crv string `json:"crv"`
	Kid string `json:"kid"`
	Kty string `json:"kty"`

	// X base64url raw Ed25519 public key
	X string `json:"x"`
}

Jwk OKP key (RFC 8037). use and alg are omitted; every key here is an Ed25519 signing key.

type Jwks

type Jwks struct {
	Keys []Jwk `json:"keys"`
}

Jwks defines model for Jwks.

type LinkStartRequest

type LinkStartRequest struct {
	Provider OAuthProvider `json:"provider"`
}

LinkStartRequest defines model for LinkStartRequest.

type ListIdentitiesResponse

type ListIdentitiesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Identities
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseListIdentitiesResponse

func ParseListIdentitiesResponse(rsp *http.Response) (*ListIdentitiesResponse, error)

ParseListIdentitiesResponse parses an HTTP response from a ListIdentitiesWithResponse call

func (ListIdentitiesResponse) ContentType

func (r ListIdentitiesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListIdentitiesResponse) GetApplicationproblemJSON401

func (r ListIdentitiesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListIdentitiesResponse) GetApplicationproblemJSON403

func (r ListIdentitiesResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ListIdentitiesResponse) GetApplicationproblemJSONDefault

func (r ListIdentitiesResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (ListIdentitiesResponse) GetBody

func (r ListIdentitiesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListIdentitiesResponse) GetJSON200

func (r ListIdentitiesResponse) GetJSON200() *Identities

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListIdentitiesResponse) Status

func (r ListIdentitiesResponse) Status() string

Status returns HTTPResponse.Status

func (ListIdentitiesResponse) StatusCode

func (r ListIdentitiesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProvidersResponse

type ListProvidersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Providers
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseListProvidersResponse

func ParseListProvidersResponse(rsp *http.Response) (*ListProvidersResponse, error)

ParseListProvidersResponse parses an HTTP response from a ListProvidersWithResponse call

func (ListProvidersResponse) ContentType

func (r ListProvidersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListProvidersResponse) GetApplicationproblemJSONDefault

func (r ListProvidersResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (ListProvidersResponse) GetBody

func (r ListProvidersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListProvidersResponse) GetJSON200

func (r ListProvidersResponse) GetJSON200() *Providers

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListProvidersResponse) Status

func (r ListProvidersResponse) Status() string

Status returns HTTPResponse.Status

func (ListProvidersResponse) StatusCode

func (r ListProvidersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type NotFound

type NotFound = externalRef0.Problem

NotFound defines model for NotFound.

type OAuthProvider

type OAuthProvider string

OAuthProvider defines model for OAuthProvider.

const (
	Google OAuthProvider = "google"
	Twitch OAuthProvider = "twitch"
)

Defines values for OAuthProvider.

func (OAuthProvider) Valid

func (e OAuthProvider) Valid() bool

Valid indicates whether the value is a known member of the OAuthProvider enum.

type OauthCallbackJSONRequestBody

type OauthCallbackJSONRequestBody = CallbackRequest

OauthCallbackJSONRequestBody defines body for OauthCallback for application/json ContentType.

type OauthCallbackResponse

type OauthCallbackResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CallbackResponse
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
	ApplicationproblemJSON502 *UpstreamError
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseOauthCallbackResponse

func ParseOauthCallbackResponse(rsp *http.Response) (*OauthCallbackResponse, error)

ParseOauthCallbackResponse parses an HTTP response from a OauthCallbackWithResponse call

func (OauthCallbackResponse) ContentType

func (r OauthCallbackResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (OauthCallbackResponse) GetApplicationproblemJSON400

func (r OauthCallbackResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (OauthCallbackResponse) GetApplicationproblemJSON403

func (r OauthCallbackResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (OauthCallbackResponse) GetApplicationproblemJSON409

func (r OauthCallbackResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (OauthCallbackResponse) GetApplicationproblemJSON502

func (r OauthCallbackResponse) GetApplicationproblemJSON502() *UpstreamError

GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response

func (OauthCallbackResponse) GetApplicationproblemJSONDefault

func (r OauthCallbackResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (OauthCallbackResponse) GetBody

func (r OauthCallbackResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (OauthCallbackResponse) GetJSON200

func (r OauthCallbackResponse) GetJSON200() *CallbackResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (OauthCallbackResponse) Status

func (r OauthCallbackResponse) Status() string

Status returns HTTPResponse.Status

func (OauthCallbackResponse) StatusCode

func (r OauthCallbackResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OauthLinkStartJSONRequestBody

type OauthLinkStartJSONRequestBody = LinkStartRequest

OauthLinkStartJSONRequestBody defines body for OauthLinkStart for application/json ContentType.

type OauthLinkStartResponse

type OauthLinkStartResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *StartResponse
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
	ApplicationproblemJSON502 *UpstreamError
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseOauthLinkStartResponse

func ParseOauthLinkStartResponse(rsp *http.Response) (*OauthLinkStartResponse, error)

ParseOauthLinkStartResponse parses an HTTP response from a OauthLinkStartWithResponse call

func (OauthLinkStartResponse) ContentType

func (r OauthLinkStartResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (OauthLinkStartResponse) GetApplicationproblemJSON400

func (r OauthLinkStartResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (OauthLinkStartResponse) GetApplicationproblemJSON401

func (r OauthLinkStartResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (OauthLinkStartResponse) GetApplicationproblemJSON403

func (r OauthLinkStartResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (OauthLinkStartResponse) GetApplicationproblemJSON502

func (r OauthLinkStartResponse) GetApplicationproblemJSON502() *UpstreamError

GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response

func (OauthLinkStartResponse) GetApplicationproblemJSONDefault

func (r OauthLinkStartResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (OauthLinkStartResponse) GetBody

func (r OauthLinkStartResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (OauthLinkStartResponse) GetJSON200

func (r OauthLinkStartResponse) GetJSON200() *StartResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (OauthLinkStartResponse) Status

func (r OauthLinkStartResponse) Status() string

Status returns HTTPResponse.Status

func (OauthLinkStartResponse) StatusCode

func (r OauthLinkStartResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type OauthStartJSONRequestBody

type OauthStartJSONRequestBody = StartRequest

OauthStartJSONRequestBody defines body for OauthStart for application/json ContentType.

type OauthStartResponse

type OauthStartResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *StartResponse
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON502 the response for an HTTP 502 `application/problem+json` response
	ApplicationproblemJSON502 *UpstreamError
	// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
	ApplicationproblemJSONDefault *InternalError
}

func ParseOauthStartResponse

func ParseOauthStartResponse(rsp *http.Response) (*OauthStartResponse, error)

ParseOauthStartResponse parses an HTTP response from a OauthStartWithResponse call

func (OauthStartResponse) ContentType

func (r OauthStartResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (OauthStartResponse) GetApplicationproblemJSON400

func (r OauthStartResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (OauthStartResponse) GetApplicationproblemJSON502

func (r OauthStartResponse) GetApplicationproblemJSON502() *UpstreamError

GetApplicationproblemJSON502 returns the response for an HTTP 502 `application/problem+json` response

func (OauthStartResponse) GetApplicationproblemJSONDefault

func (r OauthStartResponse) GetApplicationproblemJSONDefault() *InternalError

GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response

func (OauthStartResponse) GetBody

func (r OauthStartResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (OauthStartResponse) GetJSON200

func (r OauthStartResponse) GetJSON200() *StartResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (OauthStartResponse) Status

func (r OauthStartResponse) Status() string

Status returns HTTPResponse.Status

func (OauthStartResponse) StatusCode

func (r OauthStartResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Providers

type Providers = externalRef0.Providers

Providers defines model for Providers.

type RefreshProblem

type RefreshProblem struct {
	// Code The full house code vocabulary across every service (Problem is shared, and the bff relays upstream codes verbatim).
	Code     *externalRef0.ProblemCode `json:"code,omitempty"`
	Detail   *string                   `json:"detail,omitempty"`
	Instance *string                   `json:"instance,omitempty"`

	// RevokeJtis Present only with code refresh_reused
	RevokeJtis *[]string `json:"revoke_jtis,omitempty"`
	Status     int       `json:"status"`
	Title      string    `json:"title"`
	Type       string    `json:"type"`
}

RefreshProblem defines model for RefreshProblem.

type RefreshRequest

type RefreshRequest struct {
	RefreshToken string `json:"refresh_token"`
}

RefreshRequest defines model for RefreshRequest.

type RefreshTokenJSONRequestBody

type RefreshTokenJSONRequestBody = RefreshRequest

RefreshTokenJSONRequestBody defines body for RefreshToken for application/json ContentType.

type RefreshTokenResponse

type RefreshTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *TokenPair
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *RefreshUnauthorized
	// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
	ApplicationproblemJSON500 *InternalError
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *ServiceUnavailable
}

func ParseRefreshTokenResponse

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

ParseRefreshTokenResponse parses an HTTP response from a RefreshTokenWithResponse call

func (RefreshTokenResponse) ContentType

func (r RefreshTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RefreshTokenResponse) GetApplicationproblemJSON400

func (r RefreshTokenResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (RefreshTokenResponse) GetApplicationproblemJSON401

func (r RefreshTokenResponse) GetApplicationproblemJSON401() *RefreshUnauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RefreshTokenResponse) GetApplicationproblemJSON500

func (r RefreshTokenResponse) GetApplicationproblemJSON500() *InternalError

GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response

func (RefreshTokenResponse) GetApplicationproblemJSON503

func (r RefreshTokenResponse) GetApplicationproblemJSON503() *ServiceUnavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (RefreshTokenResponse) GetBody

func (r RefreshTokenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RefreshTokenResponse) GetJSON200

func (r RefreshTokenResponse) GetJSON200() *TokenPair

GetJSON200 returns the response for an HTTP 200 `application/json` response

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 RefreshUnauthorized

type RefreshUnauthorized = RefreshProblem

RefreshUnauthorized defines model for RefreshUnauthorized.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RevokeRequest

type RevokeRequest struct {
	RefreshToken string `json:"refresh_token"`
}

RevokeRequest defines model for RevokeRequest.

type RevokeTokenJSONRequestBody

type RevokeTokenJSONRequestBody = RevokeRequest

RevokeTokenJSONRequestBody defines body for RevokeToken for application/json ContentType.

type RevokeTokenResponse

type RevokeTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON500 the response for an HTTP 500 `application/problem+json` response
	ApplicationproblemJSON500 *InternalError
}

func ParseRevokeTokenResponse

func ParseRevokeTokenResponse(rsp *http.Response) (*RevokeTokenResponse, error)

ParseRevokeTokenResponse parses an HTTP response from a RevokeTokenWithResponse call

func (RevokeTokenResponse) ContentType

func (r RevokeTokenResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (RevokeTokenResponse) GetApplicationproblemJSON400

func (r RevokeTokenResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (RevokeTokenResponse) GetApplicationproblemJSON500

func (r RevokeTokenResponse) GetApplicationproblemJSON500() *InternalError

GetApplicationproblemJSON500 returns the response for an HTTP 500 `application/problem+json` response

func (RevokeTokenResponse) GetBody

func (r RevokeTokenResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RevokeTokenResponse) Status

func (r RevokeTokenResponse) Status() string

Status returns HTTPResponse.Status

func (RevokeTokenResponse) StatusCode

func (r RevokeTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ServiceUnavailable

type ServiceUnavailable = externalRef0.Problem

ServiceUnavailable defines model for ServiceUnavailable.

type StartRequest

type StartRequest struct {
	Provider OAuthProvider `json:"provider"`
}

StartRequest defines model for StartRequest.

type StartResponse

type StartResponse struct {
	AuthorizeUrl string `json:"authorize_url"`
}

StartResponse defines model for StartResponse.

type TokenPair

type TokenPair struct {
	// AccessToken Ed25519 JWT, ~5 min TTL
	AccessToken string `json:"access_token"`

	// ExpiresIn Access token lifetime, seconds
	ExpiresIn int64 `json:"expires_in"`

	// RefreshExpiresIn Seconds until the session's absolute expiry
	RefreshExpiresIn int64 `json:"refresh_expires_in"`

	// RefreshToken Opaque, single-use; rotated on every refresh
	RefreshToken string `json:"refresh_token"`

	// TokenType Always Bearer
	TokenType string `json:"token_type"`
}

TokenPair defines model for TokenPair.

type Unauthorized

type Unauthorized = externalRef0.Problem

Unauthorized defines model for Unauthorized.

type UpstreamError

type UpstreamError = externalRef0.Problem

UpstreamError defines model for UpstreamError.

Jump to

Keyboard shortcuts

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