auth

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const (
	DpopAccessTokenScopes = "dpopAccessToken.Scopes"
	OidcBearerTokenScopes = "oidcBearerToken.Scopes"
)

Variables

This section is empty.

Functions

func NewApproveSSOAuthRequestRequest added in v0.12.0

func NewApproveSSOAuthRequestRequest(server string, id string, params *ApproveSSOAuthRequestParams, body ApproveSSOAuthRequestJSONRequestBody) (*http.Request, error)

NewApproveSSOAuthRequestRequest calls the generic ApproveSSOAuthRequest builder with application/json body

func NewApproveSSOAuthRequestRequestWithBody added in v0.15.0

func NewApproveSSOAuthRequestRequestWithBody(server string, id string, params *ApproveSSOAuthRequestParams, contentType string, body io.Reader) (*http.Request, error)

NewApproveSSOAuthRequestRequestWithBody generates requests for ApproveSSOAuthRequest with any type of body

func NewDeleteDeviceRequest

func NewDeleteDeviceRequest(server string, id string, params *DeleteDeviceParams) (*http.Request, error)

NewDeleteDeviceRequest generates requests for DeleteDevice

func NewGetAttestedKeyConfigRequest

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

NewGetAttestedKeyConfigRequest generates requests for GetAttestedKeyConfig

func NewGetAuthorizeRequest

func NewGetAuthorizeRequest(server string, params *GetAuthorizeParams) (*http.Request, error)

NewGetAuthorizeRequest generates requests for GetAuthorize

func NewGetChallengeRequest

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

NewGetChallengeRequest generates requests for GetChallenge

func NewGetDeviceRequest

func NewGetDeviceRequest(server string, id string, params *GetDeviceParams) (*http.Request, error)

NewGetDeviceRequest generates requests for GetDevice

func NewGetJWKSRequest

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

NewGetJWKSRequest generates requests for GetJWKS

func NewGetMeRequest

func NewGetMeRequest(server string, params *GetMeParams) (*http.Request, error)

NewGetMeRequest generates requests for GetMe

func NewGetOpenidConfigurationRequest

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

NewGetOpenidConfigurationRequest generates requests for GetOpenidConfiguration

func NewGetPairingStatusRequest

func NewGetPairingStatusRequest(server string, params *GetPairingStatusParams) (*http.Request, error)

NewGetPairingStatusRequest generates requests for GetPairingStatus

func NewGetSSOAuthRequestStatusRequest added in v0.12.0

func NewGetSSOAuthRequestStatusRequest(server string, id string, params *GetSSOAuthRequestStatusParams) (*http.Request, error)

NewGetSSOAuthRequestStatusRequest generates requests for GetSSOAuthRequestStatus

func NewGetUserinfoRequest added in v0.12.0

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

NewGetUserinfoRequest generates requests for GetUserinfo

func NewListDevicesRequest

func NewListDevicesRequest(server string, params *ListDevicesParams) (*http.Request, error)

NewListDevicesRequest generates requests for ListDevices

func NewListPairingsRequest

func NewListPairingsRequest(server string, params *ListPairingsParams) (*http.Request, error)

NewListPairingsRequest generates requests for ListPairings

func NewPostDeviceAuthorizationRequest

func NewPostDeviceAuthorizationRequest(server string, params *PostDeviceAuthorizationParams, body PostDeviceAuthorizationJSONRequestBody) (*http.Request, error)

NewPostDeviceAuthorizationRequest calls the generic PostDeviceAuthorization builder with application/json body

func NewPostDeviceAuthorizationRequestWithBody

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

NewPostDeviceAuthorizationRequestWithBody generates requests for PostDeviceAuthorization with any type of body

func NewPostDeviceAuthorizationRequestWithFormdataBody

func NewPostDeviceAuthorizationRequestWithFormdataBody(server string, params *PostDeviceAuthorizationParams, body PostDeviceAuthorizationFormdataRequestBody) (*http.Request, error)

NewPostDeviceAuthorizationRequestWithFormdataBody calls the generic PostDeviceAuthorization builder with application/x-www-form-urlencoded body

func NewPostLinkCheckRequest added in v0.10.0

func NewPostLinkCheckRequest(server string, params *PostLinkCheckParams, body PostLinkCheckJSONRequestBody) (*http.Request, error)

NewPostLinkCheckRequest calls the generic PostLinkCheck builder with application/json body

func NewPostLinkCheckRequestWithBody added in v0.10.0

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

NewPostLinkCheckRequestWithBody generates requests for PostLinkCheck with any type of body

func NewPostLinkFinalizeRequest added in v0.10.0

func NewPostLinkFinalizeRequest(server string, params *PostLinkFinalizeParams, body PostLinkFinalizeJSONRequestBody) (*http.Request, error)

NewPostLinkFinalizeRequest calls the generic PostLinkFinalize builder with application/json body

func NewPostLinkFinalizeRequestWithBody added in v0.10.0

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

NewPostLinkFinalizeRequestWithBody generates requests for PostLinkFinalize with any type of body

func NewPostLinkRejectRequest added in v0.10.0

func NewPostLinkRejectRequest(server string, params *PostLinkRejectParams, body PostLinkRejectJSONRequestBody) (*http.Request, error)

NewPostLinkRejectRequest calls the generic PostLinkReject builder with application/json body

func NewPostLinkRejectRequestWithBody added in v0.10.0

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

NewPostLinkRejectRequestWithBody generates requests for PostLinkReject with any type of body

func NewPostLinkStartRequest added in v0.10.0

func NewPostLinkStartRequest(server string, body PostLinkStartJSONRequestBody) (*http.Request, error)

NewPostLinkStartRequest calls the generic PostLinkStart builder with application/json body

func NewPostLinkStartRequestWithBody added in v0.10.0

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

NewPostLinkStartRequestWithBody generates requests for PostLinkStart with any type of body

func NewPostPairingConfirmRequest

func NewPostPairingConfirmRequest(server string, params *PostPairingConfirmParams, body PostPairingConfirmJSONRequestBody) (*http.Request, error)

NewPostPairingConfirmRequest calls the generic PostPairingConfirm builder with application/json body

func NewPostPairingConfirmRequestWithBody

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

NewPostPairingConfirmRequestWithBody generates requests for PostPairingConfirm with any type of body

func NewPostPairingDenyRequest added in v0.8.3

func NewPostPairingDenyRequest(server string, params *PostPairingDenyParams, body PostPairingDenyJSONRequestBody) (*http.Request, error)

NewPostPairingDenyRequest calls the generic PostPairingDeny builder with application/json body

func NewPostPairingDenyRequestWithBody added in v0.8.3

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

NewPostPairingDenyRequestWithBody generates requests for PostPairingDeny with any type of body

func NewPostPairingPubkeyRequest

func NewPostPairingPubkeyRequest(server string, params *PostPairingPubkeyParams, body PostPairingPubkeyJSONRequestBody) (*http.Request, error)

NewPostPairingPubkeyRequest calls the generic PostPairingPubkey builder with application/json body

func NewPostPairingPubkeyRequestWithBody

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

NewPostPairingPubkeyRequestWithBody generates requests for PostPairingPubkey with any type of body

func NewPostRegisterRequest

func NewPostRegisterRequest(server string, body PostRegisterJSONRequestBody) (*http.Request, error)

NewPostRegisterRequest calls the generic PostRegister builder with application/json body

func NewPostRegisterRequestWithBody

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

NewPostRegisterRequestWithBody generates requests for PostRegister with any type of body

func NewPostReloginRequest

func NewPostReloginRequest(server string, body PostReloginJSONRequestBody) (*http.Request, error)

NewPostReloginRequest calls the generic PostRelogin builder with application/json body

func NewPostReloginRequestWithBody

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

NewPostReloginRequestWithBody generates requests for PostRelogin with any type of body

func NewPostRelyingPartyRequest added in v0.11.0

func NewPostRelyingPartyRequest(server string, params *PostRelyingPartyParams, body PostRelyingPartyJSONRequestBody) (*http.Request, error)

NewPostRelyingPartyRequest calls the generic PostRelyingParty builder with application/json body

func NewPostRelyingPartyRequestWithBody added in v0.11.0

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

NewPostRelyingPartyRequestWithBody generates requests for PostRelyingParty with any type of body

func NewPostRelyingPartyRotateSecretRequest added in v0.11.0

func NewPostRelyingPartyRotateSecretRequest(server string, id string, params *PostRelyingPartyRotateSecretParams) (*http.Request, error)

NewPostRelyingPartyRotateSecretRequest generates requests for PostRelyingPartyRotateSecret

func NewPostRelyingPartySsoClientRotateSecretRequest added in v0.12.0

func NewPostRelyingPartySsoClientRotateSecretRequest(server string, id string, params *PostRelyingPartySsoClientRotateSecretParams) (*http.Request, error)

NewPostRelyingPartySsoClientRotateSecretRequest generates requests for PostRelyingPartySsoClientRotateSecret

func NewPostTokenRequestWithBody

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

NewPostTokenRequestWithBody generates requests for PostToken with any type of body

func NewPostTokenRequestWithFormdataBody

func NewPostTokenRequestWithFormdataBody(server string, params *PostTokenParams, body PostTokenFormdataRequestBody) (*http.Request, error)

NewPostTokenRequestWithFormdataBody calls the generic PostToken builder with application/x-www-form-urlencoded body

func NewPushSSOAuthRequestRequest added in v0.14.0

func NewPushSSOAuthRequestRequest(server string, id string, params *PushSSOAuthRequestParams) (*http.Request, error)

NewPushSSOAuthRequestRequest generates requests for PushSSOAuthRequest

func NewRefreshAttestedKeyRequest

func NewRefreshAttestedKeyRequest(server string, params *RefreshAttestedKeyParams) (*http.Request, error)

NewRefreshAttestedKeyRequest generates requests for RefreshAttestedKey

func NewResolveLoginRequest added in v0.17.0

func NewResolveLoginRequest(server string, body ResolveLoginJSONRequestBody) (*http.Request, error)

NewResolveLoginRequest calls the generic ResolveLogin builder with application/json body

func NewResolveLoginRequestWithBody added in v0.17.0

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

NewResolveLoginRequestWithBody generates requests for ResolveLogin with any type of body

func NewResolveSSOAuthRequestRequest added in v0.13.0

func NewResolveSSOAuthRequestRequest(server string, body ResolveSSOAuthRequestJSONRequestBody) (*http.Request, error)

NewResolveSSOAuthRequestRequest calls the generic ResolveSSOAuthRequest builder with application/json body

func NewResolveSSOAuthRequestRequestWithBody added in v0.13.0

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

NewResolveSSOAuthRequestRequestWithBody generates requests for ResolveSSOAuthRequest with any type of body

func NewRevokePairingRequest

func NewRevokePairingRequest(server string, id string, params *RevokePairingParams) (*http.Request, error)

NewRevokePairingRequest generates requests for RevokePairing

func SASDictionaryVersion added in v0.9.0

func SASDictionaryVersion() string

SASDictionaryVersion returns the version string baked into the dictionary.

func SASEmojis added in v0.9.0

func SASEmojis() [256]string

SASEmojis returns the 256 emojis.

func SASWords added in v0.9.0

func SASWords() [256]string

SASWords returns the 256 words.

Types

type ApproveSSOAuthRequestJSONRequestBody added in v0.15.0

type ApproveSSOAuthRequestJSONRequestBody = SSOAuthRequestApprovalRequest

ApproveSSOAuthRequestJSONRequestBody defines body for ApproveSSOAuthRequest for application/json ContentType.

type ApproveSSOAuthRequestParams added in v0.12.0

type ApproveSSOAuthRequestParams struct {
	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

ApproveSSOAuthRequestParams defines parameters for ApproveSSOAuthRequest.

type ApproveSSOAuthRequestResp added in v0.12.0

type ApproveSSOAuthRequestResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON409 *Conflict
	ApplicationproblemJSON410 *Gone
}

func ParseApproveSSOAuthRequestResp added in v0.12.0

func ParseApproveSSOAuthRequestResp(rsp *http.Response) (*ApproveSSOAuthRequestResp, error)

ParseApproveSSOAuthRequestResp parses an HTTP response from a ApproveSSOAuthRequestWithResponse call

func (ApproveSSOAuthRequestResp) Status added in v0.12.0

func (r ApproveSSOAuthRequestResp) Status() string

Status returns HTTPResponse.Status

func (ApproveSSOAuthRequestResp) StatusCode added in v0.12.0

func (r ApproveSSOAuthRequestResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AttestedKeyCertificate

type AttestedKeyCertificate struct {
	// AttestationBytes Base64url-encoded 136-byte AttestationV1 blob.
	AttestationBytes string `json:"attestation_bytes"`

	// AttestationSignature Base64url-encoded 64-byte raw r||s ECDSA P-256 signature over SHA-256(attestation_bytes).
	AttestationSignature string             `json:"attestation_signature"`
	CertificateId        openapi_types.UUID `json:"certificate_id"`

	// DeviceKeyId ID of the device signing key the certificate was issued for.
	DeviceKeyId openapi_types.UUID `json:"device_key_id"`
	ExpiresAt   time.Time          `json:"expires_at"`
	IssuedAt    time.Time          `json:"issued_at"`

	// IssuerKeyId kid of the issuer key that signed this attestation.
	IssuerKeyId   string `json:"issuer_key_id"`
	PolicyVersion int32  `json:"policy_version"`
}

AttestedKeyCertificate defines model for AttestedKeyCertificate.

type AttestedKeyConfig

type AttestedKeyConfig struct {
	// ActiveKid kid of the issuer key currently used for new attestations.
	ActiveKid string `json:"active_kid"`

	// AppIdHash Base64url SHA-256 of the configured AKZK app identifier.
	AppIdHash string `json:"app_id_hash"`

	// CircuitIdHex Lowercase hex circuit ID computed by attestedkeyzk.CircuitID at server startup.
	CircuitIdHex  string                 `json:"circuit_id_hex"`
	IssuerKeys    []AttestedKeyIssuerKey `json:"issuer_keys"`
	PolicyVersion int32                  `json:"policy_version"`
}

AttestedKeyConfig defines model for AttestedKeyConfig.

type AttestedKeyIssuerKey

type AttestedKeyIssuerKey struct {
	Kid string `json:"kid"`

	// PubX Base64url 32-byte big-endian P-256 x coordinate.
	PubX string `json:"pub_x"`

	// PubY Base64url 32-byte big-endian P-256 y coordinate.
	PubY string `json:"pub_y"`
}

AttestedKeyIssuerKey defines model for AttestedKeyIssuerKey.

type BadRequest

type BadRequest = ProblemDetails

BadRequest RFC 9457 problem details object.

type ChallengeResponse

type ChallengeResponse struct {
	ChallengeId string    `json:"challenge_id"`
	ExpiresAt   time.Time `json:"expires_at"`

	// Nonce Base64url random nonce.
	Nonce string `json:"nonce"`
}

ChallengeResponse defines model for ChallengeResponse.

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) ApproveSSOAuthRequest added in v0.12.0

func (c *Client) ApproveSSOAuthRequest(ctx context.Context, id string, params *ApproveSSOAuthRequestParams, body ApproveSSOAuthRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ApproveSSOAuthRequestWithBody added in v0.15.0

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

func (*Client) DeleteDevice

func (c *Client) DeleteDevice(ctx context.Context, id string, params *DeleteDeviceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAttestedKeyConfig

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

func (*Client) GetAuthorize

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

func (*Client) GetChallenge

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

func (*Client) GetDevice

func (c *Client) GetDevice(ctx context.Context, id string, params *GetDeviceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetJWKS

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

func (*Client) GetMe

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

func (*Client) GetOpenidConfiguration

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

func (*Client) GetPairingStatus

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

func (*Client) GetSSOAuthRequestStatus added in v0.12.0

func (c *Client) GetSSOAuthRequestStatus(ctx context.Context, id string, params *GetSSOAuthRequestStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetUserinfo added in v0.12.0

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

func (*Client) ListDevices

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

func (*Client) ListPairings

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

func (*Client) PostDeviceAuthorization

func (c *Client) PostDeviceAuthorization(ctx context.Context, params *PostDeviceAuthorizationParams, body PostDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostDeviceAuthorizationWithBody

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

func (*Client) PostDeviceAuthorizationWithFormdataBody

func (c *Client) PostDeviceAuthorizationWithFormdataBody(ctx context.Context, params *PostDeviceAuthorizationParams, body PostDeviceAuthorizationFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostLinkCheck added in v0.10.0

func (c *Client) PostLinkCheck(ctx context.Context, params *PostLinkCheckParams, body PostLinkCheckJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostLinkCheckWithBody added in v0.10.0

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

func (*Client) PostLinkFinalize added in v0.10.0

func (c *Client) PostLinkFinalize(ctx context.Context, params *PostLinkFinalizeParams, body PostLinkFinalizeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostLinkFinalizeWithBody added in v0.10.0

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

func (*Client) PostLinkReject added in v0.10.0

func (c *Client) PostLinkReject(ctx context.Context, params *PostLinkRejectParams, body PostLinkRejectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostLinkRejectWithBody added in v0.10.0

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

func (*Client) PostLinkStart added in v0.10.0

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

func (*Client) PostLinkStartWithBody added in v0.10.0

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

func (*Client) PostPairingConfirm

func (c *Client) PostPairingConfirm(ctx context.Context, params *PostPairingConfirmParams, body PostPairingConfirmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPairingConfirmWithBody

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

func (*Client) PostPairingDeny added in v0.8.3

func (c *Client) PostPairingDeny(ctx context.Context, params *PostPairingDenyParams, body PostPairingDenyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPairingDenyWithBody added in v0.8.3

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

func (*Client) PostPairingPubkey

func (c *Client) PostPairingPubkey(ctx context.Context, params *PostPairingPubkeyParams, body PostPairingPubkeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPairingPubkeyWithBody

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

func (*Client) PostRegister

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

func (*Client) PostRegisterWithBody

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

func (*Client) PostRelogin

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

func (*Client) PostReloginWithBody

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

func (*Client) PostRelyingParty added in v0.11.0

func (c *Client) PostRelyingParty(ctx context.Context, params *PostRelyingPartyParams, body PostRelyingPartyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostRelyingPartyRotateSecret added in v0.11.0

func (c *Client) PostRelyingPartyRotateSecret(ctx context.Context, id string, params *PostRelyingPartyRotateSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostRelyingPartySsoClientRotateSecret added in v0.12.0

func (c *Client) PostRelyingPartySsoClientRotateSecret(ctx context.Context, id string, params *PostRelyingPartySsoClientRotateSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostRelyingPartyWithBody added in v0.11.0

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

func (*Client) PostTokenWithBody

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

func (*Client) PostTokenWithFormdataBody

func (c *Client) PostTokenWithFormdataBody(ctx context.Context, params *PostTokenParams, body PostTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PushSSOAuthRequest added in v0.14.0

func (c *Client) PushSSOAuthRequest(ctx context.Context, id string, params *PushSSOAuthRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RefreshAttestedKey

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

func (*Client) ResolveLogin added in v0.17.0

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

func (*Client) ResolveLoginWithBody added in v0.17.0

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

func (*Client) ResolveSSOAuthRequest added in v0.13.0

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

func (*Client) ResolveSSOAuthRequestWithBody added in v0.13.0

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

func (*Client) RevokePairing

func (c *Client) RevokePairing(ctx context.Context, id string, params *RevokePairingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

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

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

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

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

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

	// DeleteDevice request
	DeleteDevice(ctx context.Context, id string, params *DeleteDeviceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDevice request
	GetDevice(ctx context.Context, id string, params *GetDeviceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostLinkCheck(ctx context.Context, params *PostLinkCheckParams, body PostLinkCheckJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostLinkFinalize(ctx context.Context, params *PostLinkFinalizeParams, body PostLinkFinalizeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostLinkReject(ctx context.Context, params *PostLinkRejectParams, body PostLinkRejectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostLinkStart(ctx context.Context, body PostLinkStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ResolveLogin(ctx context.Context, body ResolveLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	PostPairingConfirm(ctx context.Context, params *PostPairingConfirmParams, body PostPairingConfirmJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostPairingDeny(ctx context.Context, params *PostPairingDenyParams, body PostPairingDenyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostPairingPubkey(ctx context.Context, params *PostPairingPubkeyParams, body PostPairingPubkeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// RevokePairing request
	RevokePairing(ctx context.Context, id string, params *RevokePairingParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostRegister(ctx context.Context, body PostRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostRelogin(ctx context.Context, body PostReloginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PostRelyingParty(ctx context.Context, params *PostRelyingPartyParams, body PostRelyingPartyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostRelyingPartyRotateSecret request
	PostRelyingPartyRotateSecret(ctx context.Context, id string, params *PostRelyingPartyRotateSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostRelyingPartySsoClientRotateSecret request
	PostRelyingPartySsoClientRotateSecret(ctx context.Context, id string, params *PostRelyingPartySsoClientRotateSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ResolveSSOAuthRequest(ctx context.Context, body ResolveSSOAuthRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	ApproveSSOAuthRequest(ctx context.Context, id string, params *ApproveSSOAuthRequestParams, body ApproveSSOAuthRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PushSSOAuthRequest request
	PushSSOAuthRequest(ctx context.Context, id string, params *PushSSOAuthRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSSOAuthRequestStatus request
	GetSSOAuthRequestStatus(ctx context.Context, id string, params *GetSSOAuthRequestStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	PostDeviceAuthorization(ctx context.Context, params *PostDeviceAuthorizationParams, body PostDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostDeviceAuthorizationWithFormdataBody(ctx context.Context, params *PostDeviceAuthorizationParams, body PostDeviceAuthorizationFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

	PostTokenWithFormdataBody(ctx context.Context, params *PostTokenParams, body PostTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

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

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

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

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) ApproveSSOAuthRequestWithBodyWithResponse added in v0.15.0

func (c *ClientWithResponses) ApproveSSOAuthRequestWithBodyWithResponse(ctx context.Context, id string, params *ApproveSSOAuthRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveSSOAuthRequestResp, error)

ApproveSSOAuthRequestWithBodyWithResponse request with arbitrary body returning *ApproveSSOAuthRequestResp

func (*ClientWithResponses) ApproveSSOAuthRequestWithResponse added in v0.12.0

func (*ClientWithResponses) DeleteDeviceWithResponse

func (c *ClientWithResponses) DeleteDeviceWithResponse(ctx context.Context, id string, params *DeleteDeviceParams, reqEditors ...RequestEditorFn) (*DeleteDeviceResp, error)

DeleteDeviceWithResponse request returning *DeleteDeviceResp

func (*ClientWithResponses) GetAttestedKeyConfigWithResponse

func (c *ClientWithResponses) GetAttestedKeyConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAttestedKeyConfigResp, error)

GetAttestedKeyConfigWithResponse request returning *GetAttestedKeyConfigResp

func (*ClientWithResponses) GetAuthorizeWithResponse

func (c *ClientWithResponses) GetAuthorizeWithResponse(ctx context.Context, params *GetAuthorizeParams, reqEditors ...RequestEditorFn) (*GetAuthorizeResp, error)

GetAuthorizeWithResponse request returning *GetAuthorizeResp

func (*ClientWithResponses) GetChallengeWithResponse

func (c *ClientWithResponses) GetChallengeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetChallengeResp, error)

GetChallengeWithResponse request returning *GetChallengeResp

func (*ClientWithResponses) GetDeviceWithResponse

func (c *ClientWithResponses) GetDeviceWithResponse(ctx context.Context, id string, params *GetDeviceParams, reqEditors ...RequestEditorFn) (*GetDeviceResp, error)

GetDeviceWithResponse request returning *GetDeviceResp

func (*ClientWithResponses) GetJWKSWithResponse

func (c *ClientWithResponses) GetJWKSWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetJWKSResp, error)

GetJWKSWithResponse request returning *GetJWKSResp

func (*ClientWithResponses) GetMeWithResponse

func (c *ClientWithResponses) GetMeWithResponse(ctx context.Context, params *GetMeParams, reqEditors ...RequestEditorFn) (*GetMeResp, error)

GetMeWithResponse request returning *GetMeResp

func (*ClientWithResponses) GetOpenidConfigurationWithResponse

func (c *ClientWithResponses) GetOpenidConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenidConfigurationResp, error)

GetOpenidConfigurationWithResponse request returning *GetOpenidConfigurationResp

func (*ClientWithResponses) GetPairingStatusWithResponse

func (c *ClientWithResponses) GetPairingStatusWithResponse(ctx context.Context, params *GetPairingStatusParams, reqEditors ...RequestEditorFn) (*GetPairingStatusResp, error)

GetPairingStatusWithResponse request returning *GetPairingStatusResp

func (*ClientWithResponses) GetSSOAuthRequestStatusWithResponse added in v0.12.0

func (c *ClientWithResponses) GetSSOAuthRequestStatusWithResponse(ctx context.Context, id string, params *GetSSOAuthRequestStatusParams, reqEditors ...RequestEditorFn) (*GetSSOAuthRequestStatusResp, error)

GetSSOAuthRequestStatusWithResponse request returning *GetSSOAuthRequestStatusResp

func (*ClientWithResponses) GetUserinfoWithResponse added in v0.12.0

func (c *ClientWithResponses) GetUserinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserinfoResp, error)

GetUserinfoWithResponse request returning *GetUserinfoResp

func (*ClientWithResponses) ListDevicesWithResponse

func (c *ClientWithResponses) ListDevicesWithResponse(ctx context.Context, params *ListDevicesParams, reqEditors ...RequestEditorFn) (*ListDevicesResp, error)

ListDevicesWithResponse request returning *ListDevicesResp

func (*ClientWithResponses) ListPairingsWithResponse

func (c *ClientWithResponses) ListPairingsWithResponse(ctx context.Context, params *ListPairingsParams, reqEditors ...RequestEditorFn) (*ListPairingsResp, error)

ListPairingsWithResponse request returning *ListPairingsResp

func (*ClientWithResponses) PostDeviceAuthorizationWithBodyWithResponse

func (c *ClientWithResponses) PostDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *PostDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostDeviceAuthorizationResp, error)

PostDeviceAuthorizationWithBodyWithResponse request with arbitrary body returning *PostDeviceAuthorizationResp

func (*ClientWithResponses) PostDeviceAuthorizationWithFormdataBodyWithResponse

func (c *ClientWithResponses) PostDeviceAuthorizationWithFormdataBodyWithResponse(ctx context.Context, params *PostDeviceAuthorizationParams, body PostDeviceAuthorizationFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostDeviceAuthorizationResp, error)

func (*ClientWithResponses) PostDeviceAuthorizationWithResponse

func (*ClientWithResponses) PostLinkCheckWithBodyWithResponse added in v0.10.0

func (c *ClientWithResponses) PostLinkCheckWithBodyWithResponse(ctx context.Context, params *PostLinkCheckParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLinkCheckResp, error)

PostLinkCheckWithBodyWithResponse request with arbitrary body returning *PostLinkCheckResp

func (*ClientWithResponses) PostLinkCheckWithResponse added in v0.10.0

func (c *ClientWithResponses) PostLinkCheckWithResponse(ctx context.Context, params *PostLinkCheckParams, body PostLinkCheckJSONRequestBody, reqEditors ...RequestEditorFn) (*PostLinkCheckResp, error)

func (*ClientWithResponses) PostLinkFinalizeWithBodyWithResponse added in v0.10.0

func (c *ClientWithResponses) PostLinkFinalizeWithBodyWithResponse(ctx context.Context, params *PostLinkFinalizeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLinkFinalizeResp, error)

PostLinkFinalizeWithBodyWithResponse request with arbitrary body returning *PostLinkFinalizeResp

func (*ClientWithResponses) PostLinkFinalizeWithResponse added in v0.10.0

func (c *ClientWithResponses) PostLinkFinalizeWithResponse(ctx context.Context, params *PostLinkFinalizeParams, body PostLinkFinalizeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostLinkFinalizeResp, error)

func (*ClientWithResponses) PostLinkRejectWithBodyWithResponse added in v0.10.0

func (c *ClientWithResponses) PostLinkRejectWithBodyWithResponse(ctx context.Context, params *PostLinkRejectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLinkRejectResp, error)

PostLinkRejectWithBodyWithResponse request with arbitrary body returning *PostLinkRejectResp

func (*ClientWithResponses) PostLinkRejectWithResponse added in v0.10.0

func (c *ClientWithResponses) PostLinkRejectWithResponse(ctx context.Context, params *PostLinkRejectParams, body PostLinkRejectJSONRequestBody, reqEditors ...RequestEditorFn) (*PostLinkRejectResp, error)

func (*ClientWithResponses) PostLinkStartWithBodyWithResponse added in v0.10.0

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

PostLinkStartWithBodyWithResponse request with arbitrary body returning *PostLinkStartResp

func (*ClientWithResponses) PostLinkStartWithResponse added in v0.10.0

func (c *ClientWithResponses) PostLinkStartWithResponse(ctx context.Context, body PostLinkStartJSONRequestBody, reqEditors ...RequestEditorFn) (*PostLinkStartResp, error)

func (*ClientWithResponses) PostPairingConfirmWithBodyWithResponse

func (c *ClientWithResponses) PostPairingConfirmWithBodyWithResponse(ctx context.Context, params *PostPairingConfirmParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPairingConfirmResp, error)

PostPairingConfirmWithBodyWithResponse request with arbitrary body returning *PostPairingConfirmResp

func (*ClientWithResponses) PostPairingConfirmWithResponse

func (c *ClientWithResponses) PostPairingConfirmWithResponse(ctx context.Context, params *PostPairingConfirmParams, body PostPairingConfirmJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPairingConfirmResp, error)

func (*ClientWithResponses) PostPairingDenyWithBodyWithResponse added in v0.8.3

func (c *ClientWithResponses) PostPairingDenyWithBodyWithResponse(ctx context.Context, params *PostPairingDenyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPairingDenyResp, error)

PostPairingDenyWithBodyWithResponse request with arbitrary body returning *PostPairingDenyResp

func (*ClientWithResponses) PostPairingDenyWithResponse added in v0.8.3

func (c *ClientWithResponses) PostPairingDenyWithResponse(ctx context.Context, params *PostPairingDenyParams, body PostPairingDenyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPairingDenyResp, error)

func (*ClientWithResponses) PostPairingPubkeyWithBodyWithResponse

func (c *ClientWithResponses) PostPairingPubkeyWithBodyWithResponse(ctx context.Context, params *PostPairingPubkeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPairingPubkeyResp, error)

PostPairingPubkeyWithBodyWithResponse request with arbitrary body returning *PostPairingPubkeyResp

func (*ClientWithResponses) PostPairingPubkeyWithResponse

func (c *ClientWithResponses) PostPairingPubkeyWithResponse(ctx context.Context, params *PostPairingPubkeyParams, body PostPairingPubkeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPairingPubkeyResp, error)

func (*ClientWithResponses) PostRegisterWithBodyWithResponse

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

PostRegisterWithBodyWithResponse request with arbitrary body returning *PostRegisterResp

func (*ClientWithResponses) PostRegisterWithResponse

func (c *ClientWithResponses) PostRegisterWithResponse(ctx context.Context, body PostRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRegisterResp, error)

func (*ClientWithResponses) PostReloginWithBodyWithResponse

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

PostReloginWithBodyWithResponse request with arbitrary body returning *PostReloginResp

func (*ClientWithResponses) PostReloginWithResponse

func (c *ClientWithResponses) PostReloginWithResponse(ctx context.Context, body PostReloginJSONRequestBody, reqEditors ...RequestEditorFn) (*PostReloginResp, error)

func (*ClientWithResponses) PostRelyingPartyRotateSecretWithResponse added in v0.11.0

func (c *ClientWithResponses) PostRelyingPartyRotateSecretWithResponse(ctx context.Context, id string, params *PostRelyingPartyRotateSecretParams, reqEditors ...RequestEditorFn) (*PostRelyingPartyRotateSecretResp, error)

PostRelyingPartyRotateSecretWithResponse request returning *PostRelyingPartyRotateSecretResp

func (*ClientWithResponses) PostRelyingPartySsoClientRotateSecretWithResponse added in v0.12.0

func (c *ClientWithResponses) PostRelyingPartySsoClientRotateSecretWithResponse(ctx context.Context, id string, params *PostRelyingPartySsoClientRotateSecretParams, reqEditors ...RequestEditorFn) (*PostRelyingPartySsoClientRotateSecretResp, error)

PostRelyingPartySsoClientRotateSecretWithResponse request returning *PostRelyingPartySsoClientRotateSecretResp

func (*ClientWithResponses) PostRelyingPartyWithBodyWithResponse added in v0.11.0

func (c *ClientWithResponses) PostRelyingPartyWithBodyWithResponse(ctx context.Context, params *PostRelyingPartyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRelyingPartyResp, error)

PostRelyingPartyWithBodyWithResponse request with arbitrary body returning *PostRelyingPartyResp

func (*ClientWithResponses) PostRelyingPartyWithResponse added in v0.11.0

func (c *ClientWithResponses) PostRelyingPartyWithResponse(ctx context.Context, params *PostRelyingPartyParams, body PostRelyingPartyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRelyingPartyResp, error)

func (*ClientWithResponses) PostTokenWithBodyWithResponse

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

PostTokenWithBodyWithResponse request with arbitrary body returning *PostTokenResp

func (*ClientWithResponses) PostTokenWithFormdataBodyWithResponse

func (c *ClientWithResponses) PostTokenWithFormdataBodyWithResponse(ctx context.Context, params *PostTokenParams, body PostTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostTokenResp, error)

func (*ClientWithResponses) PushSSOAuthRequestWithResponse added in v0.14.0

func (c *ClientWithResponses) PushSSOAuthRequestWithResponse(ctx context.Context, id string, params *PushSSOAuthRequestParams, reqEditors ...RequestEditorFn) (*PushSSOAuthRequestResp, error)

PushSSOAuthRequestWithResponse request returning *PushSSOAuthRequestResp

func (*ClientWithResponses) RefreshAttestedKeyWithResponse

func (c *ClientWithResponses) RefreshAttestedKeyWithResponse(ctx context.Context, params *RefreshAttestedKeyParams, reqEditors ...RequestEditorFn) (*RefreshAttestedKeyResp, error)

RefreshAttestedKeyWithResponse request returning *RefreshAttestedKeyResp

func (*ClientWithResponses) ResolveLoginWithBodyWithResponse added in v0.17.0

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

ResolveLoginWithBodyWithResponse request with arbitrary body returning *ResolveLoginResp

func (*ClientWithResponses) ResolveLoginWithResponse added in v0.17.0

func (c *ClientWithResponses) ResolveLoginWithResponse(ctx context.Context, body ResolveLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveLoginResp, error)

func (*ClientWithResponses) ResolveSSOAuthRequestWithBodyWithResponse added in v0.13.0

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

ResolveSSOAuthRequestWithBodyWithResponse request with arbitrary body returning *ResolveSSOAuthRequestResp

func (*ClientWithResponses) ResolveSSOAuthRequestWithResponse added in v0.13.0

func (c *ClientWithResponses) ResolveSSOAuthRequestWithResponse(ctx context.Context, body ResolveSSOAuthRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveSSOAuthRequestResp, error)

func (*ClientWithResponses) RevokePairingWithResponse

func (c *ClientWithResponses) RevokePairingWithResponse(ctx context.Context, id string, params *RevokePairingParams, reqEditors ...RequestEditorFn) (*RevokePairingResp, error)

RevokePairingWithResponse request returning *RevokePairingResp

type ClientWithResponsesInterface

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

	// GetAttestedKeyConfigWithResponse request
	GetAttestedKeyConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAttestedKeyConfigResp, error)

	// RefreshAttestedKeyWithResponse request
	RefreshAttestedKeyWithResponse(ctx context.Context, params *RefreshAttestedKeyParams, reqEditors ...RequestEditorFn) (*RefreshAttestedKeyResp, error)

	// GetChallengeWithResponse request
	GetChallengeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetChallengeResp, error)

	// ListDevicesWithResponse request
	ListDevicesWithResponse(ctx context.Context, params *ListDevicesParams, reqEditors ...RequestEditorFn) (*ListDevicesResp, error)

	// DeleteDeviceWithResponse request
	DeleteDeviceWithResponse(ctx context.Context, id string, params *DeleteDeviceParams, reqEditors ...RequestEditorFn) (*DeleteDeviceResp, error)

	// GetDeviceWithResponse request
	GetDeviceWithResponse(ctx context.Context, id string, params *GetDeviceParams, reqEditors ...RequestEditorFn) (*GetDeviceResp, error)

	// PostLinkCheckWithBodyWithResponse request with any body
	PostLinkCheckWithBodyWithResponse(ctx context.Context, params *PostLinkCheckParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLinkCheckResp, error)

	PostLinkCheckWithResponse(ctx context.Context, params *PostLinkCheckParams, body PostLinkCheckJSONRequestBody, reqEditors ...RequestEditorFn) (*PostLinkCheckResp, error)

	// PostLinkFinalizeWithBodyWithResponse request with any body
	PostLinkFinalizeWithBodyWithResponse(ctx context.Context, params *PostLinkFinalizeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLinkFinalizeResp, error)

	PostLinkFinalizeWithResponse(ctx context.Context, params *PostLinkFinalizeParams, body PostLinkFinalizeJSONRequestBody, reqEditors ...RequestEditorFn) (*PostLinkFinalizeResp, error)

	// PostLinkRejectWithBodyWithResponse request with any body
	PostLinkRejectWithBodyWithResponse(ctx context.Context, params *PostLinkRejectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLinkRejectResp, error)

	PostLinkRejectWithResponse(ctx context.Context, params *PostLinkRejectParams, body PostLinkRejectJSONRequestBody, reqEditors ...RequestEditorFn) (*PostLinkRejectResp, error)

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

	PostLinkStartWithResponse(ctx context.Context, body PostLinkStartJSONRequestBody, reqEditors ...RequestEditorFn) (*PostLinkStartResp, error)

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

	ResolveLoginWithResponse(ctx context.Context, body ResolveLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveLoginResp, error)

	// GetMeWithResponse request
	GetMeWithResponse(ctx context.Context, params *GetMeParams, reqEditors ...RequestEditorFn) (*GetMeResp, error)

	// GetPairingStatusWithResponse request
	GetPairingStatusWithResponse(ctx context.Context, params *GetPairingStatusParams, reqEditors ...RequestEditorFn) (*GetPairingStatusResp, error)

	// PostPairingConfirmWithBodyWithResponse request with any body
	PostPairingConfirmWithBodyWithResponse(ctx context.Context, params *PostPairingConfirmParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPairingConfirmResp, error)

	PostPairingConfirmWithResponse(ctx context.Context, params *PostPairingConfirmParams, body PostPairingConfirmJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPairingConfirmResp, error)

	// PostPairingDenyWithBodyWithResponse request with any body
	PostPairingDenyWithBodyWithResponse(ctx context.Context, params *PostPairingDenyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPairingDenyResp, error)

	PostPairingDenyWithResponse(ctx context.Context, params *PostPairingDenyParams, body PostPairingDenyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPairingDenyResp, error)

	// PostPairingPubkeyWithBodyWithResponse request with any body
	PostPairingPubkeyWithBodyWithResponse(ctx context.Context, params *PostPairingPubkeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPairingPubkeyResp, error)

	PostPairingPubkeyWithResponse(ctx context.Context, params *PostPairingPubkeyParams, body PostPairingPubkeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPairingPubkeyResp, error)

	// ListPairingsWithResponse request
	ListPairingsWithResponse(ctx context.Context, params *ListPairingsParams, reqEditors ...RequestEditorFn) (*ListPairingsResp, error)

	// RevokePairingWithResponse request
	RevokePairingWithResponse(ctx context.Context, id string, params *RevokePairingParams, reqEditors ...RequestEditorFn) (*RevokePairingResp, error)

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

	PostRegisterWithResponse(ctx context.Context, body PostRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRegisterResp, error)

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

	PostReloginWithResponse(ctx context.Context, body PostReloginJSONRequestBody, reqEditors ...RequestEditorFn) (*PostReloginResp, error)

	// PostRelyingPartyWithBodyWithResponse request with any body
	PostRelyingPartyWithBodyWithResponse(ctx context.Context, params *PostRelyingPartyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRelyingPartyResp, error)

	PostRelyingPartyWithResponse(ctx context.Context, params *PostRelyingPartyParams, body PostRelyingPartyJSONRequestBody, reqEditors ...RequestEditorFn) (*PostRelyingPartyResp, error)

	// PostRelyingPartyRotateSecretWithResponse request
	PostRelyingPartyRotateSecretWithResponse(ctx context.Context, id string, params *PostRelyingPartyRotateSecretParams, reqEditors ...RequestEditorFn) (*PostRelyingPartyRotateSecretResp, error)

	// PostRelyingPartySsoClientRotateSecretWithResponse request
	PostRelyingPartySsoClientRotateSecretWithResponse(ctx context.Context, id string, params *PostRelyingPartySsoClientRotateSecretParams, reqEditors ...RequestEditorFn) (*PostRelyingPartySsoClientRotateSecretResp, error)

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

	ResolveSSOAuthRequestWithResponse(ctx context.Context, body ResolveSSOAuthRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveSSOAuthRequestResp, error)

	// ApproveSSOAuthRequestWithBodyWithResponse request with any body
	ApproveSSOAuthRequestWithBodyWithResponse(ctx context.Context, id string, params *ApproveSSOAuthRequestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveSSOAuthRequestResp, error)

	ApproveSSOAuthRequestWithResponse(ctx context.Context, id string, params *ApproveSSOAuthRequestParams, body ApproveSSOAuthRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveSSOAuthRequestResp, error)

	// PushSSOAuthRequestWithResponse request
	PushSSOAuthRequestWithResponse(ctx context.Context, id string, params *PushSSOAuthRequestParams, reqEditors ...RequestEditorFn) (*PushSSOAuthRequestResp, error)

	// GetSSOAuthRequestStatusWithResponse request
	GetSSOAuthRequestStatusWithResponse(ctx context.Context, id string, params *GetSSOAuthRequestStatusParams, reqEditors ...RequestEditorFn) (*GetSSOAuthRequestStatusResp, error)

	// GetAuthorizeWithResponse request
	GetAuthorizeWithResponse(ctx context.Context, params *GetAuthorizeParams, reqEditors ...RequestEditorFn) (*GetAuthorizeResp, error)

	// PostDeviceAuthorizationWithBodyWithResponse request with any body
	PostDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *PostDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostDeviceAuthorizationResp, error)

	PostDeviceAuthorizationWithResponse(ctx context.Context, params *PostDeviceAuthorizationParams, body PostDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*PostDeviceAuthorizationResp, error)

	PostDeviceAuthorizationWithFormdataBodyWithResponse(ctx context.Context, params *PostDeviceAuthorizationParams, body PostDeviceAuthorizationFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostDeviceAuthorizationResp, error)

	// GetJWKSWithResponse request
	GetJWKSWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetJWKSResp, error)

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

	PostTokenWithFormdataBodyWithResponse(ctx context.Context, params *PostTokenParams, body PostTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*PostTokenResp, error)

	// GetUserinfoWithResponse request
	GetUserinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserinfoResp, error)
}

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

type Conflict

type Conflict = ProblemDetails

Conflict RFC 9457 problem details object.

type DPoPHeader

type DPoPHeader = string

DPoPHeader defines model for DPoPHeader.

type DeleteDeviceParams

type DeleteDeviceParams struct {
	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

DeleteDeviceParams defines parameters for DeleteDevice.

type DeleteDeviceResp

type DeleteDeviceResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON409 *Conflict
}

func ParseDeleteDeviceResp

func ParseDeleteDeviceResp(rsp *http.Response) (*DeleteDeviceResp, error)

ParseDeleteDeviceResp parses an HTTP response from a DeleteDeviceWithResponse call

func (DeleteDeviceResp) Status

func (r DeleteDeviceResp) Status() string

Status returns HTTPResponse.Status

func (DeleteDeviceResp) StatusCode

func (r DeleteDeviceResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Device

type Device struct {
	ApnsEnvironment       *DeviceApnsEnvironment `json:"apns_environment,omitempty"`
	AppId                 string                 `json:"app_id"`
	AttestationType       DeviceAttestationType  `json:"attestation_type"`
	AttestationVerifiedAt *time.Time             `json:"attestation_verified_at,omitempty"`
	CreatedAt             time.Time              `json:"created_at"`
	DeviceName            *string                `json:"device_name,omitempty"`
	DeviceType            DeviceDeviceType       `json:"device_type"`
	Id                    openapi_types.UUID     `json:"id"`
	LastUsedAt            *time.Time             `json:"last_used_at,omitempty"`
	RevokedAt             *time.Time             `json:"revoked_at,omitempty"`
}

Device defines model for Device.

type DeviceApnsEnvironment

type DeviceApnsEnvironment string

DeviceApnsEnvironment defines model for Device.ApnsEnvironment.

const (
	Development DeviceApnsEnvironment = "development"
	Production  DeviceApnsEnvironment = "production"
)

Defines values for DeviceApnsEnvironment.

func (DeviceApnsEnvironment) Valid

func (e DeviceApnsEnvironment) Valid() bool

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

type DeviceAttestationType

type DeviceAttestationType string

DeviceAttestationType defines model for Device.AttestationType.

const (
	DeviceAttestationTypeAndroidStrongbox DeviceAttestationType = "android_strongbox"
	DeviceAttestationTypeAndroidTee       DeviceAttestationType = "android_tee"
	DeviceAttestationTypeIosSecureEnclave DeviceAttestationType = "ios_secure_enclave"
	DeviceAttestationTypeSoftware         DeviceAttestationType = "software"
)

Defines values for DeviceAttestationType.

func (DeviceAttestationType) Valid

func (e DeviceAttestationType) Valid() bool

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

type DeviceAuthorizationRequest

type DeviceAuthorizationRequest struct {
	ClientId string `json:"client_id"`

	// DeviceKemPubkey Public JWK of the freshly generated per-pairing device KEM key
	// D_kem (used for ECDH/HPKE). The pairing transcript hashes this
	// KEM key, not the signing key.
	DeviceKemPubkey JWK `json:"device_kem_pubkey"`

	// DeviceSigningPubkey Public JWK of the freshly generated per-pairing device signing
	// key D_sig (used for DPoP). The access token issued by the eventual
	// /token call will be DPoP-bound to this key's JWK thumbprint in
	// auth's server-side token metadata.
	DeviceSigningPubkey JWK `json:"device_signing_pubkey"`

	// Origin Captcha (relying-party) clients send their parent origin so the
	// user-facing confirmation can name the site. CLI clients omit
	// this field.
	Origin *string `json:"origin,omitempty"`
	Scope  *string `json:"scope,omitempty"`
}

DeviceAuthorizationRequest defines model for DeviceAuthorizationRequest.

type DeviceAuthorizationResponse

type DeviceAuthorizationResponse struct {
	DeviceCode              string  `json:"device_code"`
	ExpiresIn               int     `json:"expires_in"`
	Interval                int     `json:"interval"`
	UserCode                string  `json:"user_code"`
	VerificationUri         string  `json:"verification_uri"`
	VerificationUriComplete *string `json:"verification_uri_complete,omitempty"`
}

DeviceAuthorizationResponse defines model for DeviceAuthorizationResponse.

type DeviceDeviceType

type DeviceDeviceType string

DeviceDeviceType defines model for Device.DeviceType.

const (
	DeviceDeviceTypeAndroid DeviceDeviceType = "android"
	DeviceDeviceTypeIos     DeviceDeviceType = "ios"
)

Defines values for DeviceDeviceType.

func (DeviceDeviceType) Valid

func (e DeviceDeviceType) Valid() bool

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

type DeviceList

type DeviceList struct {
	Devices []Device `json:"devices"`
}

DeviceList defines model for DeviceList.

type Forbidden

type Forbidden = ProblemDetails

Forbidden RFC 9457 problem details object.

type GetAttestedKeyConfigResp

type GetAttestedKeyConfigResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *AttestedKeyConfig
	ApplicationproblemJSON429 *TooManyRequests
}

func ParseGetAttestedKeyConfigResp

func ParseGetAttestedKeyConfigResp(rsp *http.Response) (*GetAttestedKeyConfigResp, error)

ParseGetAttestedKeyConfigResp parses an HTTP response from a GetAttestedKeyConfigWithResponse call

func (GetAttestedKeyConfigResp) Status

func (r GetAttestedKeyConfigResp) Status() string

Status returns HTTPResponse.Status

func (GetAttestedKeyConfigResp) StatusCode

func (r GetAttestedKeyConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAuthorizeParams

type GetAuthorizeParams struct {
	ClientId     string                         `form:"client_id" json:"client_id"`
	RedirectUri  string                         `form:"redirect_uri" json:"redirect_uri"`
	ResponseType GetAuthorizeParamsResponseType `form:"response_type" json:"response_type"`

	// Scope Space-separated scope list. Requester clients should use `offline_access mailbox:request`.
	Scope               string                                `form:"scope" json:"scope"`
	State               *string                               `form:"state,omitempty" json:"state,omitempty"`
	Nonce               *string                               `form:"nonce,omitempty" json:"nonce,omitempty"`
	CodeChallenge       string                                `form:"code_challenge" json:"code_challenge"`
	CodeChallengeMethod GetAuthorizeParamsCodeChallengeMethod `form:"code_challenge_method" json:"code_challenge_method"`
	Prompt              *string                               `form:"prompt,omitempty" json:"prompt,omitempty"`
}

GetAuthorizeParams defines parameters for GetAuthorize.

type GetAuthorizeParamsCodeChallengeMethod

type GetAuthorizeParamsCodeChallengeMethod string

GetAuthorizeParamsCodeChallengeMethod defines parameters for GetAuthorize.

const (
	S256 GetAuthorizeParamsCodeChallengeMethod = "S256"
)

Defines values for GetAuthorizeParamsCodeChallengeMethod.

func (GetAuthorizeParamsCodeChallengeMethod) Valid

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

type GetAuthorizeParamsResponseType

type GetAuthorizeParamsResponseType string

GetAuthorizeParamsResponseType defines parameters for GetAuthorize.

const (
	Code GetAuthorizeParamsResponseType = "code"
)

Defines values for GetAuthorizeParamsResponseType.

func (GetAuthorizeParamsResponseType) Valid

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

type GetAuthorizeResp

type GetAuthorizeResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	ApplicationproblemJSON400 *BadRequest
}

func ParseGetAuthorizeResp

func ParseGetAuthorizeResp(rsp *http.Response) (*GetAuthorizeResp, error)

ParseGetAuthorizeResp parses an HTTP response from a GetAuthorizeWithResponse call

func (GetAuthorizeResp) Status

func (r GetAuthorizeResp) Status() string

Status returns HTTPResponse.Status

func (GetAuthorizeResp) StatusCode

func (r GetAuthorizeResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetChallengeResp

type GetChallengeResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *ChallengeResponse
	ApplicationproblemJSON429 *TooManyRequests
}

func ParseGetChallengeResp

func ParseGetChallengeResp(rsp *http.Response) (*GetChallengeResp, error)

ParseGetChallengeResp parses an HTTP response from a GetChallengeWithResponse call

func (GetChallengeResp) Status

func (r GetChallengeResp) Status() string

Status returns HTTPResponse.Status

func (GetChallengeResp) StatusCode

func (r GetChallengeResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDeviceParams

type GetDeviceParams struct {
	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

GetDeviceParams defines parameters for GetDevice.

type GetDeviceResp

type GetDeviceResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *Device
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
}

func ParseGetDeviceResp

func ParseGetDeviceResp(rsp *http.Response) (*GetDeviceResp, error)

ParseGetDeviceResp parses an HTTP response from a GetDeviceWithResponse call

func (GetDeviceResp) Status

func (r GetDeviceResp) Status() string

Status returns HTTPResponse.Status

func (GetDeviceResp) StatusCode

func (r GetDeviceResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetJWKSResp

type GetJWKSResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *JWKS
	ApplicationproblemJSON429 *TooManyRequests
}

func ParseGetJWKSResp

func ParseGetJWKSResp(rsp *http.Response) (*GetJWKSResp, error)

ParseGetJWKSResp parses an HTTP response from a GetJWKSWithResponse call

func (GetJWKSResp) Status

func (r GetJWKSResp) Status() string

Status returns HTTPResponse.Status

func (GetJWKSResp) StatusCode

func (r GetJWKSResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMeParams

type GetMeParams struct {
	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

GetMeParams defines parameters for GetMe.

type GetMeResp

type GetMeResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *MeResponse
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
}

func ParseGetMeResp

func ParseGetMeResp(rsp *http.Response) (*GetMeResp, error)

ParseGetMeResp parses an HTTP response from a GetMeWithResponse call

func (GetMeResp) Status

func (r GetMeResp) Status() string

Status returns HTTPResponse.Status

func (GetMeResp) StatusCode

func (r GetMeResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOpenidConfigurationResp

type GetOpenidConfigurationResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *OpenIDConfiguration
	ApplicationproblemJSON429 *TooManyRequests
}

func ParseGetOpenidConfigurationResp

func ParseGetOpenidConfigurationResp(rsp *http.Response) (*GetOpenidConfigurationResp, error)

ParseGetOpenidConfigurationResp parses an HTTP response from a GetOpenidConfigurationWithResponse call

func (GetOpenidConfigurationResp) Status

Status returns HTTPResponse.Status

func (GetOpenidConfigurationResp) StatusCode

func (r GetOpenidConfigurationResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPairingStatusParams

type GetPairingStatusParams struct {
	DeviceCode string `form:"device_code" json:"device_code"`
}

GetPairingStatusParams defines parameters for GetPairingStatus.

type GetPairingStatusResp

type GetPairingStatusResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *PairingStatusResponse
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON429 *TooManyRequests
}

func ParseGetPairingStatusResp

func ParseGetPairingStatusResp(rsp *http.Response) (*GetPairingStatusResp, error)

ParseGetPairingStatusResp parses an HTTP response from a GetPairingStatusWithResponse call

func (GetPairingStatusResp) Status

func (r GetPairingStatusResp) Status() string

Status returns HTTPResponse.Status

func (GetPairingStatusResp) StatusCode

func (r GetPairingStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSSOAuthRequestStatusParams added in v0.17.0

type GetSSOAuthRequestStatusParams struct {
	// DPoP Optional DPoP proof JWT per RFC 9449 §4. Returning browser sessions can
	// include this with a DPoP-bound access token to let auth bind the
	// server-side SSO push target and initiate a backend-managed push.
	DPoP *OptionalDPoPHeader `json:"DPoP,omitempty"`
}

GetSSOAuthRequestStatusParams defines parameters for GetSSOAuthRequestStatus.

type GetSSOAuthRequestStatusResp added in v0.12.0

type GetSSOAuthRequestStatusResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *SSOAuthRequestStatusResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
}

func ParseGetSSOAuthRequestStatusResp added in v0.12.0

func ParseGetSSOAuthRequestStatusResp(rsp *http.Response) (*GetSSOAuthRequestStatusResp, error)

ParseGetSSOAuthRequestStatusResp parses an HTTP response from a GetSSOAuthRequestStatusWithResponse call

func (GetSSOAuthRequestStatusResp) Status added in v0.12.0

Status returns HTTPResponse.Status

func (GetSSOAuthRequestStatusResp) StatusCode added in v0.12.0

func (r GetSSOAuthRequestStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserinfoResp added in v0.12.0

type GetUserinfoResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *UserInfoResponse
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON429 *TooManyRequests
}

func ParseGetUserinfoResp added in v0.12.0

func ParseGetUserinfoResp(rsp *http.Response) (*GetUserinfoResp, error)

ParseGetUserinfoResp parses an HTTP response from a GetUserinfoWithResponse call

func (GetUserinfoResp) Status added in v0.12.0

func (r GetUserinfoResp) Status() string

Status returns HTTPResponse.Status

func (GetUserinfoResp) StatusCode added in v0.12.0

func (r GetUserinfoResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Gone added in v0.10.0

type Gone = ProblemDetails

Gone RFC 9457 problem details object.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type JWK

type JWK struct {
	Alg *string `json:"alg,omitempty"`

	// Crv Curve identifier (e.g. P-256, Ed25519).
	Crv *string `json:"crv,omitempty"`

	// E Base64url RSA exponent.
	E   *string `json:"e,omitempty"`
	Kid *string `json:"kid,omitempty"`
	Kty JWKKty  `json:"kty"`

	// N Base64url RSA modulus.
	N   *string `json:"n,omitempty"`
	Use *string `json:"use,omitempty"`

	// X Base64url(big-endian X coordinate) for EC; base64url public key for OKP.
	X *string `json:"x,omitempty"`

	// Y Base64url(big-endian Y coordinate) for EC.
	Y                    *string                `json:"y,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

JWK A JSON Web Key (RFC 7517). NaughtBot only mints EC P-256 keys for DPoP-bound auth flows, but the schema supports the full RFC 7517 shape so requesters can submit or display RSA/OKP keys where a route accepts a generic JWK.

func (JWK) Get

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

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

func (JWK) MarshalJSON

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

Override default JSON handling for JWK to handle AdditionalProperties

func (*JWK) Set

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

Setter for additional properties for JWK

func (*JWK) UnmarshalJSON

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

Override default JSON handling for JWK to handle AdditionalProperties

type JWKKty

type JWKKty string

JWKKty defines model for JWK.Kty.

const (
	EC  JWKKty = "EC"
	OKP JWKKty = "OKP"
	RSA JWKKty = "RSA"
)

Defines values for JWKKty.

func (JWKKty) Valid

func (e JWKKty) Valid() bool

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

type JWKS

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

JWKS A JWK Set (RFC 7517 §5).

type LinkCheckRequest added in v0.10.0

type LinkCheckRequest struct {
	RequestId openapi_types.UUID `json:"request_id"`

	// RequestIdSignature Base64url ECDSA P-256 signature covering the UTF-8 bytes of
	// `request_id`, made by Phone B's `signing_pub` (the same key
	// bundled in the link request). Per standard ECDSA the signed
	// digest is `SHA-256(request_id_bytes)`; clients hand the
	// bytes to their platform signing API which hashes internally.
	// Both raw `r||s` (64-byte) and ASN.1 DER encodings are
	// accepted to accommodate iOS CryptoKit and Android Keystore.
	RequestIdSignature string `json:"request_id_signature"`
}

LinkCheckRequest defines model for LinkCheckRequest.

type LinkCheckResponse added in v0.10.0

type LinkCheckResponse struct {
	AppId                         string                           `json:"app_id"`
	AttestationObject             *string                          `json:"attestation_object,omitempty"`
	AttestationType               LinkCheckResponseAttestationType `json:"attestation_type"`
	AuthAttestationObject         *string                          `json:"auth_attestation_object,omitempty"`
	AuthCertificateChain          *[]string                        `json:"auth_certificate_chain,omitempty"`
	AuthJkt                       string                           `json:"auth_jkt"`
	AuthKeyBindingAssertion       *string                          `json:"auth_key_binding_assertion,omitempty"`
	AuthPublicKey                 string                           `json:"auth_public_key"`
	DeviceName                    string                           `json:"device_name"`
	DeviceType                    LinkCheckResponseDeviceType      `json:"device_type"`
	EncryptionCertificateChain    *[]string                        `json:"encryption_certificate_chain,omitempty"`
	EncryptionKeyBindingAssertion *string                          `json:"encryption_key_binding_assertion,omitempty"`
	EncryptionPublicKey           string                           `json:"encryption_public_key"`
	KeyBindingAssertion           *string                          `json:"key_binding_assertion,omitempty"`
	SigningCertificateChain       *[]string                        `json:"signing_certificate_chain,omitempty"`
	SigningKeyBindingAssertion    *string                          `json:"signing_key_binding_assertion,omitempty"`
	SigningPublicKey              string                           `json:"signing_public_key"`
}

LinkCheckResponse Full attestation evidence Phone B submitted at `/link/start`, returned to Phone A so it can verify locally before approving. All byte-valued fields are base64url-encoded.

type LinkCheckResponseAttestationType added in v0.10.0

type LinkCheckResponseAttestationType string

LinkCheckResponseAttestationType defines model for LinkCheckResponse.AttestationType.

const (
	LinkCheckResponseAttestationTypeAndroidStrongbox LinkCheckResponseAttestationType = "android_strongbox"
	LinkCheckResponseAttestationTypeAndroidTee       LinkCheckResponseAttestationType = "android_tee"
	LinkCheckResponseAttestationTypeIosSecureEnclave LinkCheckResponseAttestationType = "ios_secure_enclave"
)

Defines values for LinkCheckResponseAttestationType.

func (LinkCheckResponseAttestationType) Valid added in v0.10.0

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

type LinkCheckResponseDeviceType added in v0.10.0

type LinkCheckResponseDeviceType string

LinkCheckResponseDeviceType defines model for LinkCheckResponse.DeviceType.

const (
	LinkCheckResponseDeviceTypeAndroid LinkCheckResponseDeviceType = "android"
	LinkCheckResponseDeviceTypeIos     LinkCheckResponseDeviceType = "ios"
)

Defines values for LinkCheckResponseDeviceType.

func (LinkCheckResponseDeviceType) Valid added in v0.10.0

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

type LinkFinalizeRequest added in v0.10.0

type LinkFinalizeRequest struct {
	// ApprovalSignature Base64url ECDSA P-256 signature made by the inspector device's
	// `signing` device-key (as recorded on the row by
	// `POST /link/check`). The signed message is the canonical byte
	// string formed by concatenating the 36-byte UTF-8 of the
	// `request_id` UUID string with the base64url-decoded
	// `request_id_signature` value Phone B produced over the
	// `request_id` (its signing-key signature, enclosed in the
	// mailbox envelope to Phone A and submitted at `/link/check`;
	// the server persisted those decoded bytes alongside the
	// inspector identity). Note this is the UTF-8 of the UUID
	// string, NOT the 16-byte binary UUID form (`UUID.uuid` in
	// Foundation, `UUID.toBytes()` in Java would both be wrong).
	// The platform signing API hashes this message with SHA-256
	// internally; both raw `r||s` (64-byte) and ASN.1 DER
	// encodings are accepted.
	ApprovalSignature string `json:"approval_signature"`

	// ApproverSigningPubkeyId Identifier the approver attaches to the signature for client
	// bookkeeping. The server does not parse it — the binding it
	// enforces is `inspector_device_id` recorded at `/link/check`.
	ApproverSigningPubkeyId string             `json:"approver_signing_pubkey_id"`
	RequestId               openapi_types.UUID `json:"request_id"`
}

LinkFinalizeRequest defines model for LinkFinalizeRequest.

type LinkRejectRequest added in v0.10.0

type LinkRejectRequest struct {
	RequestId openapi_types.UUID `json:"request_id"`
}

LinkRejectRequest defines model for LinkRejectRequest.

type LinkStartResponse added in v0.10.0

type LinkStartResponse struct {
	ExpiresAt time.Time          `json:"expires_at"`
	RequestId openapi_types.UUID `json:"request_id"`

	// TokenClaimSecret Bearer secret returned only once. Phone B holds it privately and
	// presents it back at `POST /link/finalize?secret=...` to prove
	// it is the originating device. Treat as sensitive.
	TokenClaimSecret string `json:"token_claim_secret"`
}

LinkStartResponse defines model for LinkStartResponse.

type ListDevicesParams

type ListDevicesParams struct {
	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

ListDevicesParams defines parameters for ListDevices.

type ListDevicesResp

type ListDevicesResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *DeviceList
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
}

func ParseListDevicesResp

func ParseListDevicesResp(rsp *http.Response) (*ListDevicesResp, error)

ParseListDevicesResp parses an HTTP response from a ListDevicesWithResponse call

func (ListDevicesResp) Status

func (r ListDevicesResp) Status() string

Status returns HTTPResponse.Status

func (ListDevicesResp) StatusCode

func (r ListDevicesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPairingsParams

type ListPairingsParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

ListPairingsParams defines parameters for ListPairings.

type ListPairingsResp

type ListPairingsResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *PairingList
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
}

func ParseListPairingsResp

func ParseListPairingsResp(rsp *http.Response) (*ListPairingsResp, error)

ParseListPairingsResp parses an HTTP response from a ListPairingsWithResponse call

func (ListPairingsResp) Status

func (r ListPairingsResp) Status() string

Status returns HTTPResponse.Status

func (ListPairingsResp) StatusCode

func (r ListPairingsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LoginResolveRequest added in v0.17.0

type LoginResolveRequest struct {
	// UserCode Short user-facing device code shown by the requester.
	UserCode string `json:"user_code"`
}

LoginResolveRequest defines model for LoginResolveRequest.

type LoginResolveResponse added in v0.17.0

type LoginResolveResponse struct {
	// DKemPub Requester device KEM public key used by mobile to derive the SAS shared secret.
	DKemPub    *JWK      `json:"d_kem_pub,omitempty"`
	DeviceCode string    `json:"device_code"`
	ExpiresAt  time.Time `json:"expires_at"`

	// Origin Requester origin, present for browser/captcha-initiated flows.
	Origin *string `json:"origin,omitempty"`
}

LoginResolveResponse defines model for LoginResolveResponse.

type MeResponse

type MeResponse struct {
	Devices  []Device  `json:"devices"`
	Pairings []Pairing `json:"pairings"`
}

MeResponse defines model for MeResponse.

type NotFound

type NotFound = ProblemDetails

NotFound RFC 9457 problem details object.

type OAuthError

type OAuthError struct {
	// Error OAuth error code. `use_dpop_nonce` means retry with the returned `DPoP-Nonce` in a fresh proof.
	Error            string  `json:"error"`
	ErrorDescription *string `json:"error_description,omitempty"`
}

OAuthError defines model for OAuthError.

type OpenIDConfiguration

type OpenIDConfiguration struct {
	AuthorizationEndpoint         string    `json:"authorization_endpoint"`
	CodeChallengeMethodsSupported *[]string `json:"code_challenge_methods_supported,omitempty"`
	DeviceAuthorizationEndpoint   *string   `json:"device_authorization_endpoint,omitempty"`

	// DpopSigningAlgValuesSupported RFC 9449 §5.1 — algorithms accepted in DPoP proof JWTs. NaughtBot always returns ["ES256"].
	DpopSigningAlgValuesSupported     []string               `json:"dpop_signing_alg_values_supported"`
	GrantTypesSupported               *[]string              `json:"grant_types_supported,omitempty"`
	IdTokenSigningAlgValuesSupported  []string               `json:"id_token_signing_alg_values_supported"`
	Issuer                            string                 `json:"issuer"`
	JwksUri                           string                 `json:"jwks_uri"`
	ResponseTypesSupported            []string               `json:"response_types_supported"`
	ScopesSupported                   *[]string              `json:"scopes_supported,omitempty"`
	SubjectTypesSupported             []string               `json:"subject_types_supported"`
	TokenEndpoint                     string                 `json:"token_endpoint"`
	TokenEndpointAuthMethodsSupported *[]string              `json:"token_endpoint_auth_methods_supported,omitempty"`
	UserinfoEndpoint                  *string                `json:"userinfo_endpoint,omitempty"`
	AdditionalProperties              map[string]interface{} `json:"-"`
}

OpenIDConfiguration defines model for OpenIDConfiguration.

func (OpenIDConfiguration) Get

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

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

func (OpenIDConfiguration) MarshalJSON

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

Override default JSON handling for OpenIDConfiguration to handle AdditionalProperties

func (*OpenIDConfiguration) Set

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

Setter for additional properties for OpenIDConfiguration

func (*OpenIDConfiguration) UnmarshalJSON

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

Override default JSON handling for OpenIDConfiguration to handle AdditionalProperties

type OptionalDPoPHeader added in v0.17.0

type OptionalDPoPHeader = string

OptionalDPoPHeader defines model for OptionalDPoPHeader.

type Pairing

type Pairing struct {
	ClientId  string              `json:"client_id"`
	CreatedAt time.Time           `json:"created_at"`
	DeviceId  *openapi_types.UUID `json:"device_id,omitempty"`
	Id        openapi_types.UUID  `json:"id"`

	// Jkt Base64url SHA-256 thumbprint of D_sig (the device signing key).
	Jkt        string     `json:"jkt"`
	LastUsedAt *time.Time `json:"last_used_at,omitempty"`

	// Origin Pairing origin (captcha clients only).
	Origin    *string       `json:"origin,omitempty"`
	RevokedAt *time.Time    `json:"revoked_at,omitempty"`
	Scopes    *[]string     `json:"scopes,omitempty"`
	Status    PairingStatus `json:"status"`
}

Pairing defines model for Pairing.

type PairingConfirmRequest

type PairingConfirmRequest struct {
	DeviceCode string `json:"device_code"`

	// Origin Echoes the pairing's origin so the approver UI can show the
	// relying-party site for explicit user confirmation. Captcha
	// clients populate this; CLI clients omit it.
	Origin *string `json:"origin,omitempty"`

	// Sas SAS digits or words verified by the user. When the client formats
	// the SAS as words/emojis, it MUST use the canonical SAS dictionary
	// published as `openapi/sas-dictionary.json` (see SASWordList for
	// shape). Each byte of the SAS digest selects one entry by index.
	Sas string `json:"sas"`
}

PairingConfirmRequest defines model for PairingConfirmRequest.

type PairingDenyRequest added in v0.8.3

type PairingDenyRequest struct {
	DeviceCode string `json:"device_code"`

	// Origin Echoes the pairing's origin so the approver UI can show the
	// relying-party site for explicit user rejection. Captcha clients
	// populate this; CLI clients omit it.
	Origin *string `json:"origin,omitempty"`
}

PairingDenyRequest defines model for PairingDenyRequest.

type PairingList

type PairingList struct {
	Pairings []Pairing `json:"pairings"`
}

PairingList defines model for PairingList.

type PairingPubkeyRequest

type PairingPubkeyRequest struct {
	DeviceCode string `json:"device_code"`

	// TranscriptHash Base64url SHA-256 of the pairing transcript
	// ("v1\x00" || D_kem || U_kem || uvarint(len(device_code)) || device_code).
	TranscriptHash string `json:"transcript_hash"`

	// UserKemPubkey Approver's user KEM public key (U_kem); the pairing transcript uses this.
	UserKemPubkey JWK `json:"user_kem_pubkey"`

	// UserSigningPubkey Approver's user signing public key (U_sig).
	UserSigningPubkey JWK `json:"user_signing_pubkey"`
}

PairingPubkeyRequest defines model for PairingPubkeyRequest.

type PairingPubkeyResponse

type PairingPubkeyResponse struct {
	// DKemPubkey Server's view of the requester device KEM public key (D_kem). The
	// signing key (D_sig) is server-side state for DPoP binding and is
	// not returned here.
	DKemPubkey     JWK    `json:"d_kem_pubkey"`
	TranscriptHash string `json:"transcript_hash"`
}

PairingPubkeyResponse defines model for PairingPubkeyResponse.

type PairingStatus

type PairingStatus string

PairingStatus defines model for Pairing.Status.

const (
	PairingStatusActive  PairingStatus = "active"
	PairingStatusExpired PairingStatus = "expired"
	PairingStatusRevoked PairingStatus = "revoked"
)

Defines values for PairingStatus.

func (PairingStatus) Valid

func (e PairingStatus) Valid() bool

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

type PairingStatusResponse

type PairingStatusResponse struct {
	Status PairingStatusResponseStatus `json:"status"`

	// UserKemPubkey Approver's user KEM public key (U_kem), present once status >=
	// user_pubkey_received. Used by the requester to derive the
	// ECDH/HPKE shared secret.
	UserKemPubkey *JWK `json:"user_kem_pubkey,omitempty"`
}

PairingStatusResponse defines model for PairingStatusResponse.

type PairingStatusResponseStatus

type PairingStatusResponseStatus string

PairingStatusResponseStatus defines model for PairingStatusResponse.Status.

const (
	PairingStatusResponseStatusDenied             PairingStatusResponseStatus = "denied"
	PairingStatusResponseStatusExpired            PairingStatusResponseStatus = "expired"
	PairingStatusResponseStatusPending            PairingStatusResponseStatus = "pending"
	PairingStatusResponseStatusSasConfirmed       PairingStatusResponseStatus = "sas_confirmed"
	PairingStatusResponseStatusUserPubkeyReceived PairingStatusResponseStatus = "user_pubkey_received"
)

Defines values for PairingStatusResponseStatus.

func (PairingStatusResponseStatus) Valid

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

type PostDeviceAuthorizationFormdataRequestBody

type PostDeviceAuthorizationFormdataRequestBody = DeviceAuthorizationRequest

PostDeviceAuthorizationFormdataRequestBody defines body for PostDeviceAuthorization for application/x-www-form-urlencoded ContentType.

type PostDeviceAuthorizationJSONRequestBody

type PostDeviceAuthorizationJSONRequestBody = DeviceAuthorizationRequest

PostDeviceAuthorizationJSONRequestBody defines body for PostDeviceAuthorization for application/json ContentType.

type PostDeviceAuthorizationParams

type PostDeviceAuthorizationParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`
}

PostDeviceAuthorizationParams defines parameters for PostDeviceAuthorization.

type PostDeviceAuthorizationResp

type PostDeviceAuthorizationResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *DeviceAuthorizationResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON429 *TooManyRequests
}

func ParsePostDeviceAuthorizationResp

func ParsePostDeviceAuthorizationResp(rsp *http.Response) (*PostDeviceAuthorizationResp, error)

ParsePostDeviceAuthorizationResp parses an HTTP response from a PostDeviceAuthorizationWithResponse call

func (PostDeviceAuthorizationResp) Status

Status returns HTTPResponse.Status

func (PostDeviceAuthorizationResp) StatusCode

func (r PostDeviceAuthorizationResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostLinkCheckJSONRequestBody added in v0.10.0

type PostLinkCheckJSONRequestBody = LinkCheckRequest

PostLinkCheckJSONRequestBody defines body for PostLinkCheck for application/json ContentType.

type PostLinkCheckParams added in v0.10.0

type PostLinkCheckParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

PostLinkCheckParams defines parameters for PostLinkCheck.

type PostLinkCheckResp added in v0.10.0

type PostLinkCheckResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *LinkCheckResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON409 *Conflict
	ApplicationproblemJSON410 *Gone
}

func ParsePostLinkCheckResp added in v0.10.0

func ParsePostLinkCheckResp(rsp *http.Response) (*PostLinkCheckResp, error)

ParsePostLinkCheckResp parses an HTTP response from a PostLinkCheckWithResponse call

func (PostLinkCheckResp) Status added in v0.10.0

func (r PostLinkCheckResp) Status() string

Status returns HTTPResponse.Status

func (PostLinkCheckResp) StatusCode added in v0.10.0

func (r PostLinkCheckResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostLinkFinalizeJSONRequestBody added in v0.10.0

type PostLinkFinalizeJSONRequestBody = LinkFinalizeRequest

PostLinkFinalizeJSONRequestBody defines body for PostLinkFinalize for application/json ContentType.

type PostLinkFinalizeParams added in v0.10.0

type PostLinkFinalizeParams struct {
	// Secret The `token_claim_secret` returned at `POST /link/start`.
	// Sensitive — treat as a bearer secret. Compared in constant
	// time and never echoed in error messages or audit rows.
	Secret string `form:"secret" json:"secret"`
}

PostLinkFinalizeParams defines parameters for PostLinkFinalize.

type PostLinkFinalizeResp added in v0.10.0

type PostLinkFinalizeResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *RegisterResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON409 *Conflict
	ApplicationproblemJSON410 *Gone
}

func ParsePostLinkFinalizeResp added in v0.10.0

func ParsePostLinkFinalizeResp(rsp *http.Response) (*PostLinkFinalizeResp, error)

ParsePostLinkFinalizeResp parses an HTTP response from a PostLinkFinalizeWithResponse call

func (PostLinkFinalizeResp) Status added in v0.10.0

func (r PostLinkFinalizeResp) Status() string

Status returns HTTPResponse.Status

func (PostLinkFinalizeResp) StatusCode added in v0.10.0

func (r PostLinkFinalizeResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostLinkRejectJSONRequestBody added in v0.10.0

type PostLinkRejectJSONRequestBody = LinkRejectRequest

PostLinkRejectJSONRequestBody defines body for PostLinkReject for application/json ContentType.

type PostLinkRejectParams added in v0.10.0

type PostLinkRejectParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

PostLinkRejectParams defines parameters for PostLinkReject.

type PostLinkRejectResp added in v0.10.0

type PostLinkRejectResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON410 *Gone
}

func ParsePostLinkRejectResp added in v0.10.0

func ParsePostLinkRejectResp(rsp *http.Response) (*PostLinkRejectResp, error)

ParsePostLinkRejectResp parses an HTTP response from a PostLinkRejectWithResponse call

func (PostLinkRejectResp) Status added in v0.10.0

func (r PostLinkRejectResp) Status() string

Status returns HTTPResponse.Status

func (PostLinkRejectResp) StatusCode added in v0.10.0

func (r PostLinkRejectResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostLinkStartJSONRequestBody added in v0.10.0

type PostLinkStartJSONRequestBody = RegisterRequest

PostLinkStartJSONRequestBody defines body for PostLinkStart for application/json ContentType.

type PostLinkStartResp added in v0.10.0

type PostLinkStartResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON201                   *LinkStartResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON422 *UnprocessableEntity
	ApplicationproblemJSON429 *TooManyRequests
}

func ParsePostLinkStartResp added in v0.10.0

func ParsePostLinkStartResp(rsp *http.Response) (*PostLinkStartResp, error)

ParsePostLinkStartResp parses an HTTP response from a PostLinkStartWithResponse call

func (PostLinkStartResp) Status added in v0.10.0

func (r PostLinkStartResp) Status() string

Status returns HTTPResponse.Status

func (PostLinkStartResp) StatusCode added in v0.10.0

func (r PostLinkStartResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostPairingConfirmJSONRequestBody

type PostPairingConfirmJSONRequestBody = PairingConfirmRequest

PostPairingConfirmJSONRequestBody defines body for PostPairingConfirm for application/json ContentType.

type PostPairingConfirmParams

type PostPairingConfirmParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

PostPairingConfirmParams defines parameters for PostPairingConfirm.

type PostPairingConfirmResp

type PostPairingConfirmResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON409 *Conflict
}

func ParsePostPairingConfirmResp

func ParsePostPairingConfirmResp(rsp *http.Response) (*PostPairingConfirmResp, error)

ParsePostPairingConfirmResp parses an HTTP response from a PostPairingConfirmWithResponse call

func (PostPairingConfirmResp) Status

func (r PostPairingConfirmResp) Status() string

Status returns HTTPResponse.Status

func (PostPairingConfirmResp) StatusCode

func (r PostPairingConfirmResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostPairingDenyJSONRequestBody added in v0.8.3

type PostPairingDenyJSONRequestBody = PairingDenyRequest

PostPairingDenyJSONRequestBody defines body for PostPairingDeny for application/json ContentType.

type PostPairingDenyParams added in v0.8.3

type PostPairingDenyParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

PostPairingDenyParams defines parameters for PostPairingDeny.

type PostPairingDenyResp added in v0.8.3

type PostPairingDenyResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON409 *Conflict
}

func ParsePostPairingDenyResp added in v0.8.3

func ParsePostPairingDenyResp(rsp *http.Response) (*PostPairingDenyResp, error)

ParsePostPairingDenyResp parses an HTTP response from a PostPairingDenyWithResponse call

func (PostPairingDenyResp) Status added in v0.8.3

func (r PostPairingDenyResp) Status() string

Status returns HTTPResponse.Status

func (PostPairingDenyResp) StatusCode added in v0.8.3

func (r PostPairingDenyResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostPairingPubkeyJSONRequestBody

type PostPairingPubkeyJSONRequestBody = PairingPubkeyRequest

PostPairingPubkeyJSONRequestBody defines body for PostPairingPubkey for application/json ContentType.

type PostPairingPubkeyParams

type PostPairingPubkeyParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

PostPairingPubkeyParams defines parameters for PostPairingPubkey.

type PostPairingPubkeyResp

type PostPairingPubkeyResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *PairingPubkeyResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON409 *Conflict
}

func ParsePostPairingPubkeyResp

func ParsePostPairingPubkeyResp(rsp *http.Response) (*PostPairingPubkeyResp, error)

ParsePostPairingPubkeyResp parses an HTTP response from a PostPairingPubkeyWithResponse call

func (PostPairingPubkeyResp) Status

func (r PostPairingPubkeyResp) Status() string

Status returns HTTPResponse.Status

func (PostPairingPubkeyResp) StatusCode

func (r PostPairingPubkeyResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostRegisterJSONRequestBody

type PostRegisterJSONRequestBody = RegisterRequest

PostRegisterJSONRequestBody defines body for PostRegister for application/json ContentType.

type PostRegisterResp

type PostRegisterResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON201                   *RegisterResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON409 *Conflict
	ApplicationproblemJSON422 *UnprocessableEntity
	ApplicationproblemJSON429 *TooManyRequests
}

func ParsePostRegisterResp

func ParsePostRegisterResp(rsp *http.Response) (*PostRegisterResp, error)

ParsePostRegisterResp parses an HTTP response from a PostRegisterWithResponse call

func (PostRegisterResp) Status

func (r PostRegisterResp) Status() string

Status returns HTTPResponse.Status

func (PostRegisterResp) StatusCode

func (r PostRegisterResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostReloginJSONRequestBody

type PostReloginJSONRequestBody = ReloginRequest

PostReloginJSONRequestBody defines body for PostRelogin for application/json ContentType.

type PostReloginResp

type PostReloginResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *ReloginResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON429 *TooManyRequests
}

func ParsePostReloginResp

func ParsePostReloginResp(rsp *http.Response) (*PostReloginResp, error)

ParsePostReloginResp parses an HTTP response from a PostReloginWithResponse call

func (PostReloginResp) Status

func (r PostReloginResp) Status() string

Status returns HTTPResponse.Status

func (PostReloginResp) StatusCode

func (r PostReloginResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostRelyingPartyJSONRequestBody added in v0.11.0

type PostRelyingPartyJSONRequestBody = RelyingPartyRegistrationRequest

PostRelyingPartyJSONRequestBody defines body for PostRelyingParty for application/json ContentType.

type PostRelyingPartyParams added in v0.11.0

type PostRelyingPartyParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

PostRelyingPartyParams defines parameters for PostRelyingParty.

type PostRelyingPartyResp added in v0.11.0

type PostRelyingPartyResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON201                   *RelyingPartyRegistrationResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
}

func ParsePostRelyingPartyResp added in v0.11.0

func ParsePostRelyingPartyResp(rsp *http.Response) (*PostRelyingPartyResp, error)

ParsePostRelyingPartyResp parses an HTTP response from a PostRelyingPartyWithResponse call

func (PostRelyingPartyResp) Status added in v0.11.0

func (r PostRelyingPartyResp) Status() string

Status returns HTTPResponse.Status

func (PostRelyingPartyResp) StatusCode added in v0.11.0

func (r PostRelyingPartyResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostRelyingPartyRotateSecretParams added in v0.11.0

type PostRelyingPartyRotateSecretParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

PostRelyingPartyRotateSecretParams defines parameters for PostRelyingPartyRotateSecret.

type PostRelyingPartyRotateSecretResp added in v0.11.0

type PostRelyingPartyRotateSecretResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *RelyingPartySecretRotationResponse
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
}

func ParsePostRelyingPartyRotateSecretResp added in v0.11.0

func ParsePostRelyingPartyRotateSecretResp(rsp *http.Response) (*PostRelyingPartyRotateSecretResp, error)

ParsePostRelyingPartyRotateSecretResp parses an HTTP response from a PostRelyingPartyRotateSecretWithResponse call

func (PostRelyingPartyRotateSecretResp) Status added in v0.11.0

Status returns HTTPResponse.Status

func (PostRelyingPartyRotateSecretResp) StatusCode added in v0.11.0

func (r PostRelyingPartyRotateSecretResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostRelyingPartySsoClientRotateSecretParams added in v0.12.0

type PostRelyingPartySsoClientRotateSecretParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

PostRelyingPartySsoClientRotateSecretParams defines parameters for PostRelyingPartySsoClientRotateSecret.

type PostRelyingPartySsoClientRotateSecretResp added in v0.12.0

type PostRelyingPartySsoClientRotateSecretResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *RelyingPartySsoSecretRotationResponse
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
}

func ParsePostRelyingPartySsoClientRotateSecretResp added in v0.12.0

func ParsePostRelyingPartySsoClientRotateSecretResp(rsp *http.Response) (*PostRelyingPartySsoClientRotateSecretResp, error)

ParsePostRelyingPartySsoClientRotateSecretResp parses an HTTP response from a PostRelyingPartySsoClientRotateSecretWithResponse call

func (PostRelyingPartySsoClientRotateSecretResp) Status added in v0.12.0

Status returns HTTPResponse.Status

func (PostRelyingPartySsoClientRotateSecretResp) StatusCode added in v0.12.0

StatusCode returns HTTPResponse.StatusCode

type PostTokenFormdataRequestBody

type PostTokenFormdataRequestBody = TokenRequest

PostTokenFormdataRequestBody defines body for PostToken for application/x-www-form-urlencoded ContentType.

type PostTokenParams

type PostTokenParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

PostTokenParams defines parameters for PostToken.

type PostTokenResp

type PostTokenResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *TokenResponse
	JSON400                   *OAuthError
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON429 *TooManyRequests
}

func ParsePostTokenResp

func ParsePostTokenResp(rsp *http.Response) (*PostTokenResp, error)

ParsePostTokenResp parses an HTTP response from a PostTokenWithResponse call

func (PostTokenResp) Status

func (r PostTokenResp) Status() string

Status returns HTTPResponse.Status

func (PostTokenResp) StatusCode

func (r PostTokenResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ProblemDetails

type ProblemDetails struct {
	Detail               *string                `json:"detail,omitempty"`
	Instance             *string                `json:"instance,omitempty"`
	Status               *int                   `json:"status,omitempty"`
	Title                *string                `json:"title,omitempty"`
	Type                 *string                `json:"type,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ProblemDetails RFC 9457 problem details object.

func (ProblemDetails) Get

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

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

func (ProblemDetails) MarshalJSON

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

Override default JSON handling for ProblemDetails to handle AdditionalProperties

func (*ProblemDetails) Set

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

Setter for additional properties for ProblemDetails

func (*ProblemDetails) UnmarshalJSON

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

Override default JSON handling for ProblemDetails to handle AdditionalProperties

type PushSSOAuthRequestParams added in v0.14.0

type PushSSOAuthRequestParams struct {
	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

PushSSOAuthRequestParams defines parameters for PushSSOAuthRequest.

type PushSSOAuthRequestResp added in v0.14.0

type PushSSOAuthRequestResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *SSOAuthRequestPushResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON409 *Conflict
	ApplicationproblemJSON410 *Gone
}

func ParsePushSSOAuthRequestResp added in v0.14.0

func ParsePushSSOAuthRequestResp(rsp *http.Response) (*PushSSOAuthRequestResp, error)

ParsePushSSOAuthRequestResp parses an HTTP response from a PushSSOAuthRequestWithResponse call

func (PushSSOAuthRequestResp) Status added in v0.14.0

func (r PushSSOAuthRequestResp) Status() string

Status returns HTTPResponse.Status

func (PushSSOAuthRequestResp) StatusCode added in v0.14.0

func (r PushSSOAuthRequestResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RefreshAttestedKeyParams

type RefreshAttestedKeyParams struct {
	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

RefreshAttestedKeyParams defines parameters for RefreshAttestedKey.

type RefreshAttestedKeyResp

type RefreshAttestedKeyResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *AttestedKeyCertificate
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
}

func ParseRefreshAttestedKeyResp

func ParseRefreshAttestedKeyResp(rsp *http.Response) (*RefreshAttestedKeyResp, error)

ParseRefreshAttestedKeyResp parses an HTTP response from a RefreshAttestedKeyWithResponse call

func (RefreshAttestedKeyResp) Status

func (r RefreshAttestedKeyResp) Status() string

Status returns HTTPResponse.Status

func (RefreshAttestedKeyResp) StatusCode

func (r RefreshAttestedKeyResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RegisterRequest

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

RegisterRequest iOS or Android registration request. Discriminated by `attestation_type`.

func (RegisterRequest) AsRegisterRequestAndroid

func (t RegisterRequest) AsRegisterRequestAndroid() (RegisterRequestAndroid, error)

AsRegisterRequestAndroid returns the union data inside the RegisterRequest as a RegisterRequestAndroid

func (RegisterRequest) AsRegisterRequestIOS

func (t RegisterRequest) AsRegisterRequestIOS() (RegisterRequestIOS, error)

AsRegisterRequestIOS returns the union data inside the RegisterRequest as a RegisterRequestIOS

func (RegisterRequest) Discriminator

func (t RegisterRequest) Discriminator() (string, error)

func (*RegisterRequest) FromRegisterRequestAndroid

func (t *RegisterRequest) FromRegisterRequestAndroid(v RegisterRequestAndroid) error

FromRegisterRequestAndroid overwrites any union data inside the RegisterRequest as the provided RegisterRequestAndroid

func (*RegisterRequest) FromRegisterRequestIOS

func (t *RegisterRequest) FromRegisterRequestIOS(v RegisterRequestIOS) error

FromRegisterRequestIOS overwrites any union data inside the RegisterRequest as the provided RegisterRequestIOS

func (RegisterRequest) MarshalJSON

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

func (*RegisterRequest) MergeRegisterRequestAndroid

func (t *RegisterRequest) MergeRegisterRequestAndroid(v RegisterRequestAndroid) error

MergeRegisterRequestAndroid performs a merge with any union data inside the RegisterRequest, using the provided RegisterRequestAndroid

func (*RegisterRequest) MergeRegisterRequestIOS

func (t *RegisterRequest) MergeRegisterRequestIOS(v RegisterRequestIOS) error

MergeRegisterRequestIOS performs a merge with any union data inside the RegisterRequest, using the provided RegisterRequestIOS

func (*RegisterRequest) UnmarshalJSON

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

func (RegisterRequest) ValueByDiscriminator

func (t RegisterRequest) ValueByDiscriminator() (interface{}, error)

type RegisterRequestAndroid

type RegisterRequestAndroid struct {
	// AppId iOS: teamID.bundleID; Android: package name.
	AppId           string                                `json:"app_id"`
	AttestationType RegisterRequestAndroidAttestationType `json:"attestation_type"`

	// AuthCertificateChain DER-encoded Android Key Attestation chain (root last) for the auth key.
	AuthCertificateChain          []string `json:"auth_certificate_chain"`
	AuthKeyBindingAssertion       string   `json:"auth_key_binding_assertion"`
	AuthKeyBindingChallenge       string   `json:"auth_key_binding_challenge"`
	AuthPub                       string   `json:"auth_pub"`
	DeviceName                    string   `json:"device_name"`
	EncryptionCertificateChain    []string `json:"encryption_certificate_chain"`
	EncryptionKeyBindingAssertion string   `json:"encryption_key_binding_assertion"`
	EncryptionKeyBindingChallenge string   `json:"encryption_key_binding_challenge"`
	EncryptionPub                 string   `json:"encryption_pub"`
	FcmToken                      *string  `json:"fcm_token,omitempty"`
	PlayIntegrityNonce            string   `json:"play_integrity_nonce"`
	PlayIntegrityToken            string   `json:"play_integrity_token"`
	SigningCertificateChain       []string `json:"signing_certificate_chain"`
	SigningKeyBindingAssertion    string   `json:"signing_key_binding_assertion"`
	SigningKeyBindingChallenge    string   `json:"signing_key_binding_challenge"`
	SigningPub                    string   `json:"signing_pub"`
}

RegisterRequestAndroid defines model for RegisterRequestAndroid.

type RegisterRequestAndroidAttestationType

type RegisterRequestAndroidAttestationType string

RegisterRequestAndroidAttestationType defines model for RegisterRequestAndroid.AttestationType.

const (
	RegisterRequestAndroidAttestationTypeAndroidStrongbox RegisterRequestAndroidAttestationType = "android_strongbox"
	RegisterRequestAndroidAttestationTypeAndroidTee       RegisterRequestAndroidAttestationType = "android_tee"
)

Defines values for RegisterRequestAndroidAttestationType.

func (RegisterRequestAndroidAttestationType) Valid

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

type RegisterRequestBase

type RegisterRequestBase struct {
	// AppId iOS: teamID.bundleID; Android: package name.
	AppId           string                             `json:"app_id"`
	AttestationType RegisterRequestBaseAttestationType `json:"attestation_type"`
	DeviceName      string                             `json:"device_name"`
}

RegisterRequestBase defines model for RegisterRequestBase.

type RegisterRequestBaseAttestationType

type RegisterRequestBaseAttestationType string

RegisterRequestBaseAttestationType defines model for RegisterRequestBase.AttestationType.

const (
	RegisterRequestBaseAttestationTypeAndroidStrongbox RegisterRequestBaseAttestationType = "android_strongbox"
	RegisterRequestBaseAttestationTypeAndroidTee       RegisterRequestBaseAttestationType = "android_tee"
	RegisterRequestBaseAttestationTypeIosSecureEnclave RegisterRequestBaseAttestationType = "ios_secure_enclave"
)

Defines values for RegisterRequestBaseAttestationType.

func (RegisterRequestBaseAttestationType) Valid

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

type RegisterRequestIOS

type RegisterRequestIOS struct {
	ApnsToken *string `json:"apns_token,omitempty"`

	// AppId iOS: teamID.bundleID; Android: package name.
	AppId string `json:"app_id"`

	// AttestationObject Base64url App Attest CBOR object.
	AttestationObject             string                            `json:"attestation_object"`
	AttestationType               RegisterRequestIOSAttestationType `json:"attestation_type"`
	AuthKeyBindingAssertion       string                            `json:"auth_key_binding_assertion"`
	AuthKeyBindingChallenge       string                            `json:"auth_key_binding_challenge"`
	AuthPub                       string                            `json:"auth_pub"`
	DeviceName                    string                            `json:"device_name"`
	EncryptionKeyBindingAssertion string                            `json:"encryption_key_binding_assertion"`
	EncryptionKeyBindingChallenge string                            `json:"encryption_key_binding_challenge"`
	EncryptionPub                 string                            `json:"encryption_pub"`
	SigningKeyBindingAssertion    string                            `json:"signing_key_binding_assertion"`
	SigningKeyBindingChallenge    string                            `json:"signing_key_binding_challenge"`
	SigningPub                    string                            `json:"signing_pub"`
}

RegisterRequestIOS defines model for RegisterRequestIOS.

type RegisterRequestIOSAttestationType

type RegisterRequestIOSAttestationType string

RegisterRequestIOSAttestationType defines model for RegisterRequestIOS.AttestationType.

const (
	IosSecureEnclave RegisterRequestIOSAttestationType = "ios_secure_enclave"
)

Defines values for RegisterRequestIOSAttestationType.

func (RegisterRequestIOSAttestationType) Valid

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

type RegisterResponse

type RegisterResponse struct {
	AccessToken            string                    `json:"access_token"`
	AttestedKeyCertificate *AttestedKeyCertificate   `json:"attested_key_certificate,omitempty"`
	DeviceId               openapi_types.UUID        `json:"device_id"`
	ExpiresIn              int                       `json:"expires_in"`
	RefreshToken           string                    `json:"refresh_token"`
	TokenType              RegisterResponseTokenType `json:"token_type"`
}

RegisterResponse defines model for RegisterResponse.

type RegisterResponseTokenType

type RegisterResponseTokenType string

RegisterResponseTokenType defines model for RegisterResponse.TokenType.

const (
	RegisterResponseTokenTypeDPoP RegisterResponseTokenType = "DPoP"
)

Defines values for RegisterResponseTokenType.

func (RegisterResponseTokenType) Valid

func (e RegisterResponseTokenType) Valid() bool

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

type ReloginRequest

type ReloginRequest struct {
	ApnsToken *string `json:"apns_token,omitempty"`

	// AuthPub Base64url SEC1 compressed P-256 point of the device's auth key.
	AuthPub     string  `json:"auth_pub"`
	ChallengeId string  `json:"challenge_id"`
	FcmToken    *string `json:"fcm_token,omitempty"`

	// Signature Base64url ECDSA signature over the challenge nonce.
	Signature string `json:"signature"`
}

ReloginRequest defines model for ReloginRequest.

type ReloginResponse

type ReloginResponse struct {
	AccessToken  string                   `json:"access_token"`
	DeviceId     openapi_types.UUID       `json:"device_id"`
	ExpiresIn    int                      `json:"expires_in"`
	RefreshToken string                   `json:"refresh_token"`
	TokenType    ReloginResponseTokenType `json:"token_type"`
}

ReloginResponse defines model for ReloginResponse.

type ReloginResponseTokenType

type ReloginResponseTokenType string

ReloginResponseTokenType defines model for ReloginResponse.TokenType.

const (
	ReloginResponseTokenTypeDPoP ReloginResponseTokenType = "DPoP"
)

Defines values for ReloginResponseTokenType.

func (ReloginResponseTokenType) Valid

func (e ReloginResponseTokenType) Valid() bool

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

type RelyingPartyConfidentialClient added in v0.11.0

type RelyingPartyConfidentialClient struct {
	// ClientId Random opaque client id assigned at registration time.
	ClientId   string `json:"client_id"`
	ClientName string `json:"client_name"`

	// ClientSecret One-time plaintext client secret. Only an argon2id hash is stored server-side.
	ClientSecret            string                                                `json:"client_secret"`
	CreatedAt               time.Time                                             `json:"created_at"`
	GrantTypes              []string                                              `json:"grant_types"`
	Scopes                  []string                                              `json:"scopes"`
	TokenEndpointAuthMethod RelyingPartyConfidentialClientTokenEndpointAuthMethod `json:"token_endpoint_auth_method"`
}

RelyingPartyConfidentialClient defines model for RelyingPartyConfidentialClient.

type RelyingPartyConfidentialClientTokenEndpointAuthMethod added in v0.11.0

type RelyingPartyConfidentialClientTokenEndpointAuthMethod string

RelyingPartyConfidentialClientTokenEndpointAuthMethod defines model for RelyingPartyConfidentialClient.TokenEndpointAuthMethod.

const (
	RelyingPartyConfidentialClientTokenEndpointAuthMethodClientSecretBasic RelyingPartyConfidentialClientTokenEndpointAuthMethod = "client_secret_basic"
	RelyingPartyConfidentialClientTokenEndpointAuthMethodClientSecretPost  RelyingPartyConfidentialClientTokenEndpointAuthMethod = "client_secret_post"
)

Defines values for RelyingPartyConfidentialClientTokenEndpointAuthMethod.

func (RelyingPartyConfidentialClientTokenEndpointAuthMethod) Valid added in v0.11.0

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

type RelyingPartyPublicClient added in v0.11.0

type RelyingPartyPublicClient struct {
	// ClientId Random opaque client id assigned at registration time.
	ClientId                string                                          `json:"client_id"`
	ClientName              string                                          `json:"client_name"`
	CreatedAt               time.Time                                       `json:"created_at"`
	GrantTypes              []string                                        `json:"grant_types"`
	RequirePkce             bool                                            `json:"require_pkce"`
	ResponseTypes           []string                                        `json:"response_types"`
	Scopes                  []string                                        `json:"scopes"`
	TokenEndpointAuthMethod RelyingPartyPublicClientTokenEndpointAuthMethod `json:"token_endpoint_auth_method"`
}

RelyingPartyPublicClient defines model for RelyingPartyPublicClient.

type RelyingPartyPublicClientTokenEndpointAuthMethod added in v0.11.0

type RelyingPartyPublicClientTokenEndpointAuthMethod string

RelyingPartyPublicClientTokenEndpointAuthMethod defines model for RelyingPartyPublicClient.TokenEndpointAuthMethod.

Defines values for RelyingPartyPublicClientTokenEndpointAuthMethod.

func (RelyingPartyPublicClientTokenEndpointAuthMethod) Valid added in v0.11.0

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

type RelyingPartyRegistrationRequest added in v0.11.0

type RelyingPartyRegistrationRequest struct {
	// DisplayName Optional human-readable label. Defaults to a name derived from the origin host.
	DisplayName *string `json:"display_name,omitempty"`

	// Origin Browser origin that will host the requester client, for example `https://customer.example`.
	Origin string                              `json:"origin"`
	Sso    *RelyingPartySsoRegistrationRequest `json:"sso,omitempty"`
}

RelyingPartyRegistrationRequest defines model for RelyingPartyRegistrationRequest.

type RelyingPartyRegistrationResponse added in v0.11.0

type RelyingPartyRegistrationResponse struct {
	ConfidentialClient RelyingPartyConfidentialClient `json:"confidential_client"`
	CreatedAt          time.Time                      `json:"created_at"`
	DisplayName        string                         `json:"display_name"`
	Origin             string                         `json:"origin"`
	PublicClient       RelyingPartyPublicClient       `json:"public_client"`
	RelyingPartyId     string                         `json:"relying_party_id"`
	SsoClient          *RelyingPartySsoClient         `json:"sso_client,omitempty"`
}

RelyingPartyRegistrationResponse defines model for RelyingPartyRegistrationResponse.

type RelyingPartySecretRotationResponse added in v0.11.0

type RelyingPartySecretRotationResponse struct {
	// ClientSecret One-time plaintext client secret. Only an argon2id hash is stored server-side.
	ClientSecret         string `json:"client_secret"`
	ConfidentialClientId string `json:"confidential_client_id"`
	RelyingPartyId       string `json:"relying_party_id"`
}

RelyingPartySecretRotationResponse defines model for RelyingPartySecretRotationResponse.

type RelyingPartySsoClient added in v0.12.0

type RelyingPartySsoClient struct {
	AuthorizationEndpoint string `json:"authorization_endpoint"`

	// ClientId Random opaque client id assigned at registration time.
	ClientId string `json:"client_id"`

	// ClientSecret One-time plaintext client secret. Only an argon2id hash is stored server-side.
	ClientSecret            string                                       `json:"client_secret"`
	CreatedAt               time.Time                                    `json:"created_at"`
	DiscoveryUrl            string                                       `json:"discovery_url"`
	GrantTypes              []string                                     `json:"grant_types"`
	Issuer                  string                                       `json:"issuer"`
	JwksUri                 string                                       `json:"jwks_uri"`
	RedirectUris            []string                                     `json:"redirect_uris"`
	RequirePkce             bool                                         `json:"require_pkce"`
	ResponseTypes           []string                                     `json:"response_types"`
	Scopes                  []string                                     `json:"scopes"`
	TokenEndpoint           string                                       `json:"token_endpoint"`
	TokenEndpointAuthMethod RelyingPartySsoClientTokenEndpointAuthMethod `json:"token_endpoint_auth_method"`
}

RelyingPartySsoClient defines model for RelyingPartySsoClient.

type RelyingPartySsoClientTokenEndpointAuthMethod added in v0.12.0

type RelyingPartySsoClientTokenEndpointAuthMethod string

RelyingPartySsoClientTokenEndpointAuthMethod defines model for RelyingPartySsoClient.TokenEndpointAuthMethod.

const (
	RelyingPartySsoClientTokenEndpointAuthMethodClientSecretBasic RelyingPartySsoClientTokenEndpointAuthMethod = "client_secret_basic"
)

Defines values for RelyingPartySsoClientTokenEndpointAuthMethod.

func (RelyingPartySsoClientTokenEndpointAuthMethod) Valid added in v0.12.0

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

type RelyingPartySsoRegistrationRequest added in v0.12.0

type RelyingPartySsoRegistrationRequest struct {
	// RedirectUris HTTPS redirect URIs for Sign in with NaughtBot. HTTP is allowed only for localhost loopback development URIs.
	RedirectUris []string `json:"redirect_uris"`
}

RelyingPartySsoRegistrationRequest defines model for RelyingPartySsoRegistrationRequest.

type RelyingPartySsoSecretRotationResponse added in v0.12.0

type RelyingPartySsoSecretRotationResponse struct {
	// ClientSecret One-time plaintext client secret. Only an argon2id hash is stored server-side.
	ClientSecret   string `json:"client_secret"`
	RelyingPartyId string `json:"relying_party_id"`
	SsoClientId    string `json:"sso_client_id"`
}

RelyingPartySsoSecretRotationResponse defines model for RelyingPartySsoSecretRotationResponse.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ResolveLoginJSONRequestBody added in v0.17.0

type ResolveLoginJSONRequestBody = LoginResolveRequest

ResolveLoginJSONRequestBody defines body for ResolveLogin for application/json ContentType.

type ResolveLoginResp added in v0.17.0

type ResolveLoginResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *LoginResolveResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON429 *TooManyRequests
}

func ParseResolveLoginResp added in v0.17.0

func ParseResolveLoginResp(rsp *http.Response) (*ResolveLoginResp, error)

ParseResolveLoginResp parses an HTTP response from a ResolveLoginWithResponse call

func (ResolveLoginResp) Status added in v0.17.0

func (r ResolveLoginResp) Status() string

Status returns HTTPResponse.Status

func (ResolveLoginResp) StatusCode added in v0.17.0

func (r ResolveLoginResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResolveSSOAuthRequestJSONRequestBody added in v0.13.0

type ResolveSSOAuthRequestJSONRequestBody = SSOAuthRequestResolveRequest

ResolveSSOAuthRequestJSONRequestBody defines body for ResolveSSOAuthRequest for application/json ContentType.

type ResolveSSOAuthRequestResp added in v0.13.0

type ResolveSSOAuthRequestResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *SSOAuthRequestStatusResponse
	ApplicationproblemJSON400 *BadRequest
	ApplicationproblemJSON404 *NotFound
	ApplicationproblemJSON429 *TooManyRequests
}

func ParseResolveSSOAuthRequestResp added in v0.13.0

func ParseResolveSSOAuthRequestResp(rsp *http.Response) (*ResolveSSOAuthRequestResp, error)

ParseResolveSSOAuthRequestResp parses an HTTP response from a ResolveSSOAuthRequestWithResponse call

func (ResolveSSOAuthRequestResp) Status added in v0.13.0

func (r ResolveSSOAuthRequestResp) Status() string

Status returns HTTPResponse.Status

func (ResolveSSOAuthRequestResp) StatusCode added in v0.13.0

func (r ResolveSSOAuthRequestResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokePairingParams

type RevokePairingParams struct {
	// XRequestID Optional client-supplied correlation identifier.
	XRequestID *XRequestID `json:"X-Request-ID,omitempty"`

	// DPoP DPoP proof JWT per RFC 9449 §4. The server validates `htm`, `htu`,
	// `iat`, `jti`, `typ=dpop+jwt`, `alg` (must be ES256), and the embedded
	// `jwk`. For protected routes, the proof's JWK thumbprint must equal
	// the token's server-side DPoP binding metadata.
	DPoP DPoPHeader `json:"DPoP"`
}

RevokePairingParams defines parameters for RevokePairing.

type RevokePairingResp

type RevokePairingResp struct {
	Body                      []byte
	HTTPResponse              *http.Response
	ApplicationproblemJSON401 *Unauthorized
	ApplicationproblemJSON403 *Forbidden
	ApplicationproblemJSON404 *NotFound
}

func ParseRevokePairingResp

func ParseRevokePairingResp(rsp *http.Response) (*RevokePairingResp, error)

ParseRevokePairingResp parses an HTTP response from a RevokePairingWithResponse call

func (RevokePairingResp) Status

func (r RevokePairingResp) Status() string

Status returns HTTPResponse.Status

func (RevokePairingResp) StatusCode

func (r RevokePairingResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SASEntry added in v0.9.0

type SASEntry struct {
	Word  string
	Emoji string
}

SASEntry is one (word, emoji) pair in the SAS dictionary.

func SASEntries added in v0.9.0

func SASEntries() [256]SASEntry

SASEntries returns all 256 entries.

type SSOAuthRequestApprovalRequest added in v0.15.0

type SSOAuthRequestApprovalRequest struct {
	SignedPushApproval SSOSignedPushApproval `json:"signed_push_approval"`
}

SSOAuthRequestApprovalRequest defines model for SSOAuthRequestApprovalRequest.

type SSOAuthRequestPushResponse added in v0.14.0

type SSOAuthRequestPushResponse struct {
	// ChallengeExpiresAt Expiry of the server-stored one-time challenge.
	ChallengeExpiresAt time.Time `json:"challenge_expires_at"`

	// PushStatus Browser-safe result of the send attempt. `sent` means the internal
	// push service reported at least one provider delivery; `failed`
	// means no delivery was confirmed or the internal sender was not
	// available. Poll `/status` for completion and keep QR/deep-link
	// fallback visible for either state.
	PushStatus string `json:"push_status"`

	// RequestId Opaque OIDC authorization request id.
	RequestId string `json:"request_id"`
}

SSOAuthRequestPushResponse defines model for SSOAuthRequestPushResponse.

type SSOAuthRequestResolveRequest added in v0.13.0

type SSOAuthRequestResolveRequest struct {
	// ApprovalCode User-entered SSO approval code. Separators and casing are normalized server-side.
	ApprovalCode string `json:"approval_code"`
}

SSOAuthRequestResolveRequest defines model for SSOAuthRequestResolveRequest.

type SSOAuthRequestStatusResponse added in v0.12.0

type SSOAuthRequestStatusResponse struct {
	// ApprovalCode Server-generated human-readable approval code in ABCD-EFGH form.
	ApprovalCode string `json:"approval_code"`

	// AuthorizationCallbackUrl Present when `status=done`; navigate here so the OIDC provider can mint the code and redirect to the RP.
	AuthorizationCallbackUrl *string   `json:"authorization_callback_url,omitempty"`
	ClientId                 string    `json:"client_id"`
	ExpiresAt                time.Time `json:"expires_at"`

	// Nonce Optional RP-provided OIDC nonce, exposed so mobile can bind signed push approval to the exact auth request.
	Nonce *string `json:"nonce,omitempty"`

	// PushStatus Always populated; `unavailable` is the explicit zero value when no
	// eligible target is bound or found.
	//
	// Browser-safe push approval state. `available` means auth found one
	// or more active push-capable target devices server-side. `sent` and
	// `failed` reflect the latest push-send attempt. This field never
	// identifies target devices or exposes push tokens.
	PushStatus              SSOAuthRequestStatusResponsePushStatus `json:"push_status"`
	RelyingPartyDisplayName string                                 `json:"relying_party_display_name"`
	RelyingPartyId          string                                 `json:"relying_party_id"`
	RequestId               string                                 `json:"request_id"`
	Scopes                  []string                               `json:"scopes"`
	Status                  SSOAuthRequestStatusResponseStatus     `json:"status"`
}

SSOAuthRequestStatusResponse defines model for SSOAuthRequestStatusResponse.

type SSOAuthRequestStatusResponsePushStatus added in v0.12.0

type SSOAuthRequestStatusResponsePushStatus string

SSOAuthRequestStatusResponsePushStatus Always populated; `unavailable` is the explicit zero value when no eligible target is bound or found.

Browser-safe push approval state. `available` means auth found one or more active push-capable target devices server-side. `sent` and `failed` reflect the latest push-send attempt. This field never identifies target devices or exposes push tokens.

Defines values for SSOAuthRequestStatusResponsePushStatus.

func (SSOAuthRequestStatusResponsePushStatus) Valid added in v0.12.0

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

type SSOAuthRequestStatusResponseStatus added in v0.12.0

type SSOAuthRequestStatusResponseStatus string

SSOAuthRequestStatusResponseStatus defines model for SSOAuthRequestStatusResponse.Status.

Defines values for SSOAuthRequestStatusResponseStatus.

func (SSOAuthRequestStatusResponseStatus) Valid added in v0.12.0

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

type SSOPushApprovalPayload added in v0.15.0

type SSOPushApprovalPayload struct {
	// Audience Must be `naughtbot:auth:sso-push-approval`.
	Audience string `json:"audience"`

	// Challenge One-time push challenge delivered by auth.
	Challenge string `json:"challenge"`

	// ClientId SSO authorization-code client id on the auth request.
	ClientId string `json:"client_id"`

	// ExpiresAt Expiry for the stored one-time challenge.
	ExpiresAt time.Time `json:"expires_at"`

	// Issuer Auth issuer that created the push challenge.
	Issuer string `json:"issuer"`

	// Nonce Optional RP-provided OIDC nonce when the mobile client has it available.
	Nonce *string `json:"nonce,omitempty"`

	// RelyingPartyId Relying party id associated with the SSO client.
	RelyingPartyId string `json:"relying_party_id"`

	// RequestId Opaque OIDC authorization request id.
	RequestId string `json:"request_id"`

	// Scopes Requested OIDC scopes from the auth request status response, in order.
	Scopes []string `json:"scopes"`
}

SSOPushApprovalPayload defines model for SSOPushApprovalPayload.

type SSOSignedPushApproval added in v0.15.0

type SSOSignedPushApproval struct {
	Payload SSOPushApprovalPayload `json:"payload"`

	// Signature Base64url ECDSA P-256 signature from the approving device's
	// registered signing-purpose key. The signature covers the
	// deterministic v1 approval-binding bytes derived from `payload`;
	// auth selects the verification key from the same device as the
	// caller's DPoP auth key.
	//
	// Canonical v1 approval-binding bytes are UTF-8 text joined with
	// literal `\n` separators in this exact order:
	// `naughtbot.sso.push_approval.v1`, `issuer`, `audience`,
	// `request_id`, `client_id`, `relying_party_id`, scopes joined by a
	// single space in response order, `nonce` or an empty string when
	// absent, `challenge`, and `expires_at` truncated to millisecond
	// precision and serialized as UTC RFC3339Nano.
	Signature string `json:"signature"`
}

SSOSignedPushApproval defines model for SSOSignedPushApproval.

type TokenRequest

type TokenRequest struct {
	ClientId *string `json:"client_id,omitempty"`

	// ClientSecret Required for grant_type=client_credentials unless sent through HTTP Basic auth.
	ClientSecret *string `json:"client_secret,omitempty"`

	// Code Required for grant_type=authorization_code.
	Code *string `json:"code,omitempty"`

	// CodeVerifier PKCE verifier for authorization_code.
	CodeVerifier *string `json:"code_verifier,omitempty"`

	// DeviceCode Required for the device_code grant.
	DeviceCode  *string               `json:"device_code,omitempty"`
	GrantType   TokenRequestGrantType `json:"grant_type"`
	RedirectUri *string               `json:"redirect_uri,omitempty"`

	// RefreshToken Required for grant_type=refresh_token.
	RefreshToken *string `json:"refresh_token,omitempty"`
	Scope        *string `json:"scope,omitempty"`
}

TokenRequest defines model for TokenRequest.

type TokenRequestGrantType

type TokenRequestGrantType string

TokenRequestGrantType defines model for TokenRequest.GrantType.

const (
	AuthorizationCode                     TokenRequestGrantType = "authorization_code"
	ClientCredentials                     TokenRequestGrantType = "client_credentials"
	RefreshToken                          TokenRequestGrantType = "refresh_token"
	UrnIetfParamsOauthGrantTypeDeviceCode TokenRequestGrantType = "urn:ietf:params:oauth:grant-type:device_code"
)

Defines values for TokenRequestGrantType.

func (TokenRequestGrantType) Valid

func (e TokenRequestGrantType) Valid() bool

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

type TokenResponse

type TokenResponse struct {
	// AccessToken JWT access token.
	AccessToken string `json:"access_token"`

	// ExpiresIn Lifetime in seconds.
	ExpiresIn int `json:"expires_in"`

	// IdToken Not issued to requester device-code clients; avoid requesting openid for requester flows.
	IdToken *string `json:"id_token,omitempty"`

	// RefreshToken Issued when the request includes the offline_access scope. The refresh token itself is bound to the same `jkt` for the lifetime of the token family.
	RefreshToken *string `json:"refresh_token,omitempty"`
	Scope        *string `json:"scope,omitempty"`

	// TokenType `DPoP` for proof-bound clients; `Bearer` for SSO authorization-code clients.
	TokenType TokenResponseTokenType `json:"token_type"`
}

TokenResponse OAuth token response. DPoP-bound device and machine flows return `token_type=DPoP`; SSO authorization-code clients return `token_type=Bearer`. Access tokens are JWTs with pairwise subjects.

type TokenResponseTokenType

type TokenResponseTokenType string

TokenResponseTokenType `DPoP` for proof-bound clients; `Bearer` for SSO authorization-code clients.

const (
	Bearer TokenResponseTokenType = "Bearer"
	DPoP   TokenResponseTokenType = "DPoP"
)

Defines values for TokenResponseTokenType.

func (TokenResponseTokenType) Valid

func (e TokenResponseTokenType) Valid() bool

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

type TooManyRequests

type TooManyRequests = ProblemDetails

TooManyRequests RFC 9457 problem details object.

type Unauthorized

type Unauthorized = ProblemDetails

Unauthorized RFC 9457 problem details object.

type UnprocessableEntity

type UnprocessableEntity = ProblemDetails

UnprocessableEntity RFC 9457 problem details object.

type UserInfoResponse added in v0.12.0

type UserInfoResponse struct {
	// Sub Pairwise subject pseudonym for the token's relying-party sector.
	Sub                  string                 `json:"sub"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

UserInfoResponse defines model for UserInfoResponse.

func (UserInfoResponse) Get added in v0.12.0

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

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

func (UserInfoResponse) MarshalJSON added in v0.12.0

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

Override default JSON handling for UserInfoResponse to handle AdditionalProperties

func (*UserInfoResponse) Set added in v0.12.0

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

Setter for additional properties for UserInfoResponse

func (*UserInfoResponse) UnmarshalJSON added in v0.12.0

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

Override default JSON handling for UserInfoResponse to handle AdditionalProperties

type XRequestID

type XRequestID = string

XRequestID defines model for XRequestID.

Jump to

Keyboard shortcuts

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