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.7.0 DO NOT EDIT.
Index ¶
- Constants
- func NewApproveDeviceAuthorizationRequest(server string, params *ApproveDeviceAuthorizationParams, ...) (*http.Request, error)
- func NewApproveDeviceAuthorizationRequestWithBody(server string, params *ApproveDeviceAuthorizationParams, contentType string, ...) (*http.Request, error)
- func NewClaimDeviceAuthorizationRequest(server string, params *ClaimDeviceAuthorizationParams, ...) (*http.Request, error)
- func NewClaimDeviceAuthorizationRequestWithBody(server string, params *ClaimDeviceAuthorizationParams, contentType string, ...) (*http.Request, error)
- func NewCompleteOIDCAuthRequestRequest(server string, id string, params *CompleteOIDCAuthRequestParams) (*http.Request, error)
- func NewConfirmPairingRequest(server string, id openapi_types.UUID, params *ConfirmPairingParams, ...) (*http.Request, error)
- func NewConfirmPairingRequestWithBody(server string, id openapi_types.UUID, params *ConfirmPairingParams, ...) (*http.Request, error)
- func NewCreatePrivilegedActionIntentRequest(server string, params *CreatePrivilegedActionIntentParams, ...) (*http.Request, error)
- func NewCreatePrivilegedActionIntentRequestWithBody(server string, params *CreatePrivilegedActionIntentParams, contentType string, ...) (*http.Request, error)
- func NewDeleteDeviceRequest(server string, id string, params *DeleteDeviceParams) (*http.Request, error)
- func NewDenyDeviceAuthorizationRequest(server string, params *DenyDeviceAuthorizationParams, ...) (*http.Request, error)
- func NewDenyDeviceAuthorizationRequestWithBody(server string, params *DenyDeviceAuthorizationParams, contentType string, ...) (*http.Request, error)
- func NewDenyPairingRequest(server string, id openapi_types.UUID, params *DenyPairingParams) (*http.Request, error)
- func NewGetAttestedKeyConfigRequest(server string) (*http.Request, error)
- func NewGetAuthorizeRequest(server string, params *GetAuthorizeParams) (*http.Request, error)
- func NewGetChallengeRequest(server string) (*http.Request, error)
- func NewGetDeviceAuthorizationStatusRequest(server string, deviceCode string, params *GetDeviceAuthorizationStatusParams) (*http.Request, error)
- func NewGetDeviceRequest(server string, id string, params *GetDeviceParams) (*http.Request, error)
- func NewGetJWKSRequest(server string) (*http.Request, error)
- func NewGetMeRequest(server string, params *GetMeParams) (*http.Request, error)
- func NewGetOpenidConfigurationRequest(server string) (*http.Request, error)
- func NewGetPairingTransactionRequest(server string, id openapi_types.UUID, params *GetPairingTransactionParams) (*http.Request, error)
- func NewGetPrivilegedActionIntentRequest(server string, id string, params *GetPrivilegedActionIntentParams) (*http.Request, error)
- func NewGetUserinfoRequest(server string) (*http.Request, error)
- func NewIssuePairingTokenRequest(server string, id openapi_types.UUID, params *IssuePairingTokenParams) (*http.Request, error)
- func NewListDevicesRequest(server string, params *ListDevicesParams) (*http.Request, error)
- func NewListPairingsRequest(server string, params *ListPairingsParams) (*http.Request, error)
- func NewListPendingPairingsRequest(server string, params *ListPendingPairingsParams) (*http.Request, error)
- func NewPostDeviceAuthorizationRequest(server string, params *PostDeviceAuthorizationParams, ...) (*http.Request, error)
- func NewPostDeviceAuthorizationRequestWithBody(server string, params *PostDeviceAuthorizationParams, contentType string, ...) (*http.Request, error)
- func NewPostDeviceAuthorizationRequestWithFormdataBody(server string, params *PostDeviceAuthorizationParams, ...) (*http.Request, error)
- func NewPostLinkCheckRequest(server string, params *PostLinkCheckParams, body PostLinkCheckJSONRequestBody) (*http.Request, error)
- func NewPostLinkCheckRequestWithBody(server string, params *PostLinkCheckParams, contentType string, body io.Reader) (*http.Request, error)
- func NewPostLinkFinalizeRequest(server string, params *PostLinkFinalizeParams, ...) (*http.Request, error)
- func NewPostLinkFinalizeRequestWithBody(server string, params *PostLinkFinalizeParams, contentType string, ...) (*http.Request, error)
- func NewPostLinkRejectRequest(server string, params *PostLinkRejectParams, ...) (*http.Request, error)
- func NewPostLinkRejectRequestWithBody(server string, params *PostLinkRejectParams, contentType string, ...) (*http.Request, error)
- func NewPostLinkStartRequest(server string, body PostLinkStartJSONRequestBody) (*http.Request, error)
- func NewPostLinkStartRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostRegisterRequest(server string, body PostRegisterJSONRequestBody) (*http.Request, error)
- func NewPostRegisterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostReloginRequest(server string, body PostReloginJSONRequestBody) (*http.Request, error)
- func NewPostReloginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostRelyingPartyRequest(server string, params *PostRelyingPartyParams, ...) (*http.Request, error)
- func NewPostRelyingPartyRequestWithBody(server string, params *PostRelyingPartyParams, contentType string, ...) (*http.Request, error)
- func NewPostRelyingPartyRotateSecretRequest(server string, id string, params *PostRelyingPartyRotateSecretParams) (*http.Request, error)
- func NewPostTokenRequestWithBody(server string, params *PostTokenParams, contentType string, body io.Reader) (*http.Request, error)
- func NewPostTokenRequestWithFormdataBody(server string, params *PostTokenParams, body PostTokenFormdataRequestBody) (*http.Request, error)
- func NewRefreshAttestedKeyRequest(server string, params *RefreshAttestedKeyParams) (*http.Request, error)
- func NewRevokePairingRequest(server string, id string, params *RevokePairingParams) (*http.Request, error)
- func NewStartPairingRequest(server string, params *StartPairingParams, body StartPairingJSONRequestBody) (*http.Request, error)
- func NewStartPairingRequestWithBody(server string, params *StartPairingParams, contentType string, body io.Reader) (*http.Request, error)
- func NewSubmitPairingPubkeyRequest(server string, id openapi_types.UUID, params *SubmitPairingPubkeyParams, ...) (*http.Request, error)
- func NewSubmitPairingPubkeyRequestWithBody(server string, id openapi_types.UUID, params *SubmitPairingPubkeyParams, ...) (*http.Request, error)
- func SASDictionaryVersion() string
- func SASEmojis() [256]string
- func SASWords() [256]string
- type ApproveDeviceAuthorizationJSONRequestBody
- type ApproveDeviceAuthorizationParams
- type ApproveDeviceAuthorizationResp
- type AttestedKeyCertificate
- type AttestedKeyConfig
- type AttestedKeyIssuerKey
- type BadGateway
- type BadRequest
- type ChallengeResponse
- type ClaimDeviceAuthorizationJSONRequestBody
- type ClaimDeviceAuthorizationParams
- type ClaimDeviceAuthorizationResp
- type Client
- func (c *Client) ApproveDeviceAuthorization(ctx context.Context, params *ApproveDeviceAuthorizationParams, ...) (*http.Response, error)
- func (c *Client) ApproveDeviceAuthorizationWithBody(ctx context.Context, params *ApproveDeviceAuthorizationParams, ...) (*http.Response, error)
- func (c *Client) ClaimDeviceAuthorization(ctx context.Context, params *ClaimDeviceAuthorizationParams, ...) (*http.Response, error)
- func (c *Client) ClaimDeviceAuthorizationWithBody(ctx context.Context, params *ClaimDeviceAuthorizationParams, ...) (*http.Response, error)
- func (c *Client) CompleteOIDCAuthRequest(ctx context.Context, id string, params *CompleteOIDCAuthRequestParams, ...) (*http.Response, error)
- func (c *Client) ConfirmPairing(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, ...) (*http.Response, error)
- func (c *Client) ConfirmPairingWithBody(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, ...) (*http.Response, error)
- func (c *Client) CreatePrivilegedActionIntent(ctx context.Context, params *CreatePrivilegedActionIntentParams, ...) (*http.Response, error)
- func (c *Client) CreatePrivilegedActionIntentWithBody(ctx context.Context, params *CreatePrivilegedActionIntentParams, ...) (*http.Response, error)
- func (c *Client) DeleteDevice(ctx context.Context, id string, params *DeleteDeviceParams, ...) (*http.Response, error)
- func (c *Client) DenyDeviceAuthorization(ctx context.Context, params *DenyDeviceAuthorizationParams, ...) (*http.Response, error)
- func (c *Client) DenyDeviceAuthorizationWithBody(ctx context.Context, params *DenyDeviceAuthorizationParams, contentType string, ...) (*http.Response, error)
- func (c *Client) DenyPairing(ctx context.Context, id openapi_types.UUID, params *DenyPairingParams, ...) (*http.Response, error)
- func (c *Client) GetAttestedKeyConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAuthorize(ctx context.Context, params *GetAuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetChallenge(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDevice(ctx context.Context, id string, params *GetDeviceParams, ...) (*http.Response, error)
- func (c *Client) GetDeviceAuthorizationStatus(ctx context.Context, deviceCode string, ...) (*http.Response, error)
- func (c *Client) GetJWKS(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMe(ctx context.Context, params *GetMeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOpenidConfiguration(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPairingTransaction(ctx context.Context, id openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetPrivilegedActionIntent(ctx context.Context, id string, params *GetPrivilegedActionIntentParams, ...) (*http.Response, error)
- func (c *Client) GetUserinfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) IssuePairingToken(ctx context.Context, id openapi_types.UUID, params *IssuePairingTokenParams, ...) (*http.Response, error)
- func (c *Client) ListDevices(ctx context.Context, params *ListDevicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListPairings(ctx context.Context, params *ListPairingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListPendingPairings(ctx context.Context, params *ListPendingPairingsParams, ...) (*http.Response, error)
- func (c *Client) PostDeviceAuthorization(ctx context.Context, params *PostDeviceAuthorizationParams, ...) (*http.Response, error)
- func (c *Client) PostDeviceAuthorizationWithBody(ctx context.Context, params *PostDeviceAuthorizationParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostDeviceAuthorizationWithFormdataBody(ctx context.Context, params *PostDeviceAuthorizationParams, ...) (*http.Response, error)
- func (c *Client) PostLinkCheck(ctx context.Context, params *PostLinkCheckParams, ...) (*http.Response, error)
- func (c *Client) PostLinkCheckWithBody(ctx context.Context, params *PostLinkCheckParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostLinkFinalize(ctx context.Context, params *PostLinkFinalizeParams, ...) (*http.Response, error)
- func (c *Client) PostLinkFinalizeWithBody(ctx context.Context, params *PostLinkFinalizeParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostLinkReject(ctx context.Context, params *PostLinkRejectParams, ...) (*http.Response, error)
- func (c *Client) PostLinkRejectWithBody(ctx context.Context, params *PostLinkRejectParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostLinkStart(ctx context.Context, body PostLinkStartJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostLinkStartWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostRegister(ctx context.Context, body PostRegisterJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostRegisterWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostRelogin(ctx context.Context, body PostReloginJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostReloginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostRelyingParty(ctx context.Context, params *PostRelyingPartyParams, ...) (*http.Response, error)
- func (c *Client) PostRelyingPartyRotateSecret(ctx context.Context, id string, params *PostRelyingPartyRotateSecretParams, ...) (*http.Response, error)
- func (c *Client) PostRelyingPartyWithBody(ctx context.Context, params *PostRelyingPartyParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostTokenWithBody(ctx context.Context, params *PostTokenParams, contentType string, ...) (*http.Response, error)
- func (c *Client) PostTokenWithFormdataBody(ctx context.Context, params *PostTokenParams, ...) (*http.Response, error)
- func (c *Client) RefreshAttestedKey(ctx context.Context, params *RefreshAttestedKeyParams, ...) (*http.Response, error)
- func (c *Client) RevokePairing(ctx context.Context, id string, params *RevokePairingParams, ...) (*http.Response, error)
- func (c *Client) StartPairing(ctx context.Context, params *StartPairingParams, ...) (*http.Response, error)
- func (c *Client) StartPairingWithBody(ctx context.Context, params *StartPairingParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SubmitPairingPubkey(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, ...) (*http.Response, error)
- func (c *Client) SubmitPairingPubkeyWithBody(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ApproveDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *ApproveDeviceAuthorizationParams, ...) (*ApproveDeviceAuthorizationResp, error)
- func (c *ClientWithResponses) ApproveDeviceAuthorizationWithResponse(ctx context.Context, params *ApproveDeviceAuthorizationParams, ...) (*ApproveDeviceAuthorizationResp, error)
- func (c *ClientWithResponses) ClaimDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *ClaimDeviceAuthorizationParams, ...) (*ClaimDeviceAuthorizationResp, error)
- func (c *ClientWithResponses) ClaimDeviceAuthorizationWithResponse(ctx context.Context, params *ClaimDeviceAuthorizationParams, ...) (*ClaimDeviceAuthorizationResp, error)
- func (c *ClientWithResponses) CompleteOIDCAuthRequestWithResponse(ctx context.Context, id string, params *CompleteOIDCAuthRequestParams, ...) (*CompleteOIDCAuthRequestResp, error)
- func (c *ClientWithResponses) ConfirmPairingWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, ...) (*ConfirmPairingResp, error)
- func (c *ClientWithResponses) ConfirmPairingWithResponse(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, ...) (*ConfirmPairingResp, error)
- func (c *ClientWithResponses) CreatePrivilegedActionIntentWithBodyWithResponse(ctx context.Context, params *CreatePrivilegedActionIntentParams, ...) (*CreatePrivilegedActionIntentResp, error)
- func (c *ClientWithResponses) CreatePrivilegedActionIntentWithResponse(ctx context.Context, params *CreatePrivilegedActionIntentParams, ...) (*CreatePrivilegedActionIntentResp, error)
- func (c *ClientWithResponses) DeleteDeviceWithResponse(ctx context.Context, id string, params *DeleteDeviceParams, ...) (*DeleteDeviceResp, error)
- func (c *ClientWithResponses) DenyDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *DenyDeviceAuthorizationParams, contentType string, ...) (*DenyDeviceAuthorizationResp, error)
- func (c *ClientWithResponses) DenyDeviceAuthorizationWithResponse(ctx context.Context, params *DenyDeviceAuthorizationParams, ...) (*DenyDeviceAuthorizationResp, error)
- func (c *ClientWithResponses) DenyPairingWithResponse(ctx context.Context, id openapi_types.UUID, params *DenyPairingParams, ...) (*DenyPairingResp, error)
- func (c *ClientWithResponses) GetAttestedKeyConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAttestedKeyConfigResp, error)
- func (c *ClientWithResponses) GetAuthorizeWithResponse(ctx context.Context, params *GetAuthorizeParams, reqEditors ...RequestEditorFn) (*GetAuthorizeResp, error)
- func (c *ClientWithResponses) GetChallengeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetChallengeResp, error)
- func (c *ClientWithResponses) GetDeviceAuthorizationStatusWithResponse(ctx context.Context, deviceCode string, ...) (*GetDeviceAuthorizationStatusResp, error)
- func (c *ClientWithResponses) GetDeviceWithResponse(ctx context.Context, id string, params *GetDeviceParams, ...) (*GetDeviceResp, error)
- func (c *ClientWithResponses) GetJWKSWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetJWKSResp, error)
- func (c *ClientWithResponses) GetMeWithResponse(ctx context.Context, params *GetMeParams, reqEditors ...RequestEditorFn) (*GetMeResp, error)
- func (c *ClientWithResponses) GetOpenidConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenidConfigurationResp, error)
- func (c *ClientWithResponses) GetPairingTransactionWithResponse(ctx context.Context, id openapi_types.UUID, ...) (*GetPairingTransactionResp, error)
- func (c *ClientWithResponses) GetPrivilegedActionIntentWithResponse(ctx context.Context, id string, params *GetPrivilegedActionIntentParams, ...) (*GetPrivilegedActionIntentResp, error)
- func (c *ClientWithResponses) GetUserinfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUserinfoResp, error)
- func (c *ClientWithResponses) IssuePairingTokenWithResponse(ctx context.Context, id openapi_types.UUID, params *IssuePairingTokenParams, ...) (*IssuePairingTokenResp, error)
- func (c *ClientWithResponses) ListDevicesWithResponse(ctx context.Context, params *ListDevicesParams, reqEditors ...RequestEditorFn) (*ListDevicesResp, error)
- func (c *ClientWithResponses) ListPairingsWithResponse(ctx context.Context, params *ListPairingsParams, reqEditors ...RequestEditorFn) (*ListPairingsResp, error)
- func (c *ClientWithResponses) ListPendingPairingsWithResponse(ctx context.Context, params *ListPendingPairingsParams, ...) (*ListPendingPairingsResp, error)
- func (c *ClientWithResponses) PostDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *PostDeviceAuthorizationParams, contentType string, ...) (*PostDeviceAuthorizationResp, error)
- func (c *ClientWithResponses) PostDeviceAuthorizationWithFormdataBodyWithResponse(ctx context.Context, params *PostDeviceAuthorizationParams, ...) (*PostDeviceAuthorizationResp, error)
- func (c *ClientWithResponses) PostDeviceAuthorizationWithResponse(ctx context.Context, params *PostDeviceAuthorizationParams, ...) (*PostDeviceAuthorizationResp, error)
- func (c *ClientWithResponses) PostLinkCheckWithBodyWithResponse(ctx context.Context, params *PostLinkCheckParams, contentType string, ...) (*PostLinkCheckResp, error)
- func (c *ClientWithResponses) PostLinkCheckWithResponse(ctx context.Context, params *PostLinkCheckParams, ...) (*PostLinkCheckResp, error)
- func (c *ClientWithResponses) PostLinkFinalizeWithBodyWithResponse(ctx context.Context, params *PostLinkFinalizeParams, contentType string, ...) (*PostLinkFinalizeResp, error)
- func (c *ClientWithResponses) PostLinkFinalizeWithResponse(ctx context.Context, params *PostLinkFinalizeParams, ...) (*PostLinkFinalizeResp, error)
- func (c *ClientWithResponses) PostLinkRejectWithBodyWithResponse(ctx context.Context, params *PostLinkRejectParams, contentType string, ...) (*PostLinkRejectResp, error)
- func (c *ClientWithResponses) PostLinkRejectWithResponse(ctx context.Context, params *PostLinkRejectParams, ...) (*PostLinkRejectResp, error)
- func (c *ClientWithResponses) PostLinkStartWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostLinkStartResp, error)
- func (c *ClientWithResponses) PostLinkStartWithResponse(ctx context.Context, body PostLinkStartJSONRequestBody, ...) (*PostLinkStartResp, error)
- func (c *ClientWithResponses) PostRegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostRegisterResp, error)
- func (c *ClientWithResponses) PostRegisterWithResponse(ctx context.Context, body PostRegisterJSONRequestBody, ...) (*PostRegisterResp, error)
- func (c *ClientWithResponses) PostReloginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostReloginResp, error)
- func (c *ClientWithResponses) PostReloginWithResponse(ctx context.Context, body PostReloginJSONRequestBody, ...) (*PostReloginResp, error)
- func (c *ClientWithResponses) PostRelyingPartyRotateSecretWithResponse(ctx context.Context, id string, params *PostRelyingPartyRotateSecretParams, ...) (*PostRelyingPartyRotateSecretResp, error)
- func (c *ClientWithResponses) PostRelyingPartyWithBodyWithResponse(ctx context.Context, params *PostRelyingPartyParams, contentType string, ...) (*PostRelyingPartyResp, error)
- func (c *ClientWithResponses) PostRelyingPartyWithResponse(ctx context.Context, params *PostRelyingPartyParams, ...) (*PostRelyingPartyResp, error)
- func (c *ClientWithResponses) PostTokenWithBodyWithResponse(ctx context.Context, params *PostTokenParams, contentType string, ...) (*PostTokenResp, error)
- func (c *ClientWithResponses) PostTokenWithFormdataBodyWithResponse(ctx context.Context, params *PostTokenParams, ...) (*PostTokenResp, error)
- func (c *ClientWithResponses) RefreshAttestedKeyWithResponse(ctx context.Context, params *RefreshAttestedKeyParams, ...) (*RefreshAttestedKeyResp, error)
- func (c *ClientWithResponses) RevokePairingWithResponse(ctx context.Context, id string, params *RevokePairingParams, ...) (*RevokePairingResp, error)
- func (c *ClientWithResponses) StartPairingWithBodyWithResponse(ctx context.Context, params *StartPairingParams, contentType string, ...) (*StartPairingResp, error)
- func (c *ClientWithResponses) StartPairingWithResponse(ctx context.Context, params *StartPairingParams, ...) (*StartPairingResp, error)
- func (c *ClientWithResponses) SubmitPairingPubkeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, ...) (*SubmitPairingPubkeyResp, error)
- func (c *ClientWithResponses) SubmitPairingPubkeyWithResponse(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, ...) (*SubmitPairingPubkeyResp, error)
- type ClientWithResponsesInterface
- type CompleteOIDCAuthRequestParams
- type CompleteOIDCAuthRequestResp
- type ConfirmPairingJSONRequestBody
- type ConfirmPairingParams
- type ConfirmPairingResp
- type Conflict
- type CreatePrivilegedActionIntentJSONRequestBody
- type CreatePrivilegedActionIntentParams
- type CreatePrivilegedActionIntentResp
- type DPoPHeader
- type DeleteDeviceParams
- type DeleteDeviceResp
- type DenyDeviceAuthorizationJSONRequestBody
- type DenyDeviceAuthorizationParams
- type DenyDeviceAuthorizationResp
- type DenyPairingParams
- type DenyPairingResp
- type Device
- type DeviceApnsEnvironment
- type DeviceAttestationType
- type DeviceAuthorizationApproveRequest
- type DeviceAuthorizationClaimResponse
- type DeviceAuthorizationRequest
- type DeviceAuthorizationResponse
- type DeviceAuthorizationStatusResponse
- type DeviceAuthorizationStatusResponseStatus
- type DeviceDeviceType
- type DeviceList
- type Forbidden
- type GetAttestedKeyConfigResp
- type GetAuthorizeParams
- type GetAuthorizeParamsCodeChallengeMethod
- type GetAuthorizeParamsResponseType
- type GetAuthorizeResp
- type GetChallengeResp
- type GetDeviceAuthorizationStatusParams
- type GetDeviceAuthorizationStatusResp
- type GetDeviceParams
- type GetDeviceResp
- type GetJWKSResp
- type GetMeParams
- type GetMeResp
- type GetOpenidConfigurationResp
- type GetPairingTransactionParams
- type GetPairingTransactionResp
- type GetPrivilegedActionIntentParams
- type GetPrivilegedActionIntentResp
- type GetUserinfoResp
- type Gone
- type HttpRequestDoer
- type IssuePairingTokenParams
- type IssuePairingTokenResp
- type JWK
- type JWKKty
- type JWKS
- type LinkCheckRequest
- type LinkCheckResponse
- type LinkCheckResponseAttestationType
- type LinkCheckResponseDeviceType
- type LinkFinalizeRequest
- type LinkRejectRequest
- type LinkStartResponse
- type ListDevicesParams
- type ListDevicesResp
- type ListPairingsParams
- type ListPairingsResp
- type ListPendingPairingsParams
- type ListPendingPairingsResp
- type MeResponse
- type NotFound
- type OAuthError
- type OIDCAuthRequestCompletionResponse
- type OpenIDConfiguration
- type Pairing
- type PairingKeyState
- type PairingList
- type PairingStartRequest
- type PairingStartRequestRequestedCapability
- type PairingStatus
- type PairingTransaction
- type PairingTransactionConfirmRequest
- type PairingTransactionPubkeyRequest
- type PairingTransactionRequestedCapability
- type PairingTransactionStatus
- type PendingPairing
- type PendingPairingList
- type PendingPairingRequestedCapability
- type PendingPairingStatus
- type PostDeviceAuthorizationFormdataRequestBody
- type PostDeviceAuthorizationJSONRequestBody
- type PostDeviceAuthorizationParams
- type PostDeviceAuthorizationResp
- type PostLinkCheckJSONRequestBody
- type PostLinkCheckParams
- type PostLinkCheckResp
- type PostLinkFinalizeJSONRequestBody
- type PostLinkFinalizeParams
- type PostLinkFinalizeResp
- type PostLinkRejectJSONRequestBody
- type PostLinkRejectParams
- type PostLinkRejectResp
- type PostLinkStartJSONRequestBody
- type PostLinkStartResp
- type PostRegisterJSONRequestBody
- type PostRegisterResp
- type PostReloginJSONRequestBody
- type PostReloginResp
- type PostRelyingPartyJSONRequestBody
- type PostRelyingPartyParams
- type PostRelyingPartyResp
- type PostRelyingPartyRotateSecretParams
- type PostRelyingPartyRotateSecretResp
- type PostTokenFormdataRequestBody
- type PostTokenParams
- type PostTokenResp
- type PrivilegedActionIntentCreateRequest
- func (t PrivilegedActionIntentCreateRequest) AsPrivilegedDeviceRevokeOtherIntentRequest() (PrivilegedDeviceRevokeOtherIntentRequest, error)
- func (t PrivilegedActionIntentCreateRequest) AsPrivilegedRelyingPartyRegisterIntentRequest() (PrivilegedRelyingPartyRegisterIntentRequest, error)
- func (t PrivilegedActionIntentCreateRequest) AsPrivilegedRelyingPartyRotateSecretIntentRequest() (PrivilegedRelyingPartyRotateSecretIntentRequest, error)
- func (t *PrivilegedActionIntentCreateRequest) FromPrivilegedDeviceRevokeOtherIntentRequest(v PrivilegedDeviceRevokeOtherIntentRequest) error
- func (t *PrivilegedActionIntentCreateRequest) FromPrivilegedRelyingPartyRegisterIntentRequest(v PrivilegedRelyingPartyRegisterIntentRequest) error
- func (t *PrivilegedActionIntentCreateRequest) FromPrivilegedRelyingPartyRotateSecretIntentRequest(v PrivilegedRelyingPartyRotateSecretIntentRequest) error
- func (t PrivilegedActionIntentCreateRequest) MarshalJSON() ([]byte, error)
- func (t *PrivilegedActionIntentCreateRequest) MergePrivilegedDeviceRevokeOtherIntentRequest(v PrivilegedDeviceRevokeOtherIntentRequest) error
- func (t *PrivilegedActionIntentCreateRequest) MergePrivilegedRelyingPartyRegisterIntentRequest(v PrivilegedRelyingPartyRegisterIntentRequest) error
- func (t *PrivilegedActionIntentCreateRequest) MergePrivilegedRelyingPartyRotateSecretIntentRequest(v PrivilegedRelyingPartyRotateSecretIntentRequest) error
- func (t *PrivilegedActionIntentCreateRequest) UnmarshalJSON(b []byte) error
- type PrivilegedActionIntentResponse
- type PrivilegedActionIntentStatus
- type PrivilegedActionType
- type PrivilegedDeviceRevokeOtherIntentRequest
- type PrivilegedDeviceRevokeOtherIntentRequestActionType
- type PrivilegedRelyingPartyRegisterIntentRequest
- type PrivilegedRelyingPartyRegisterIntentRequestActionType
- type PrivilegedRelyingPartyRotateSecretIntentRequest
- type PrivilegedRelyingPartyRotateSecretIntentRequestActionType
- type ProblemDetails
- type RefreshAttestedKeyParams
- type RefreshAttestedKeyResp
- type RegisterRequest
- func (t RegisterRequest) AsRegisterRequestAndroid() (RegisterRequestAndroid, error)
- func (t RegisterRequest) AsRegisterRequestIOS() (RegisterRequestIOS, error)
- func (t RegisterRequest) Discriminator() (string, error)
- func (t *RegisterRequest) FromRegisterRequestAndroid(v RegisterRequestAndroid) error
- func (t *RegisterRequest) FromRegisterRequestIOS(v RegisterRequestIOS) error
- func (t RegisterRequest) MarshalJSON() ([]byte, error)
- func (t *RegisterRequest) MergeRegisterRequestAndroid(v RegisterRequestAndroid) error
- func (t *RegisterRequest) MergeRegisterRequestIOS(v RegisterRequestIOS) error
- func (t *RegisterRequest) UnmarshalJSON(b []byte) error
- func (t RegisterRequest) ValueByDiscriminator() (interface{}, error)
- type RegisterRequestAndroid
- type RegisterRequestAndroidAttestationType
- type RegisterRequestBase
- type RegisterRequestBaseAttestationType
- type RegisterRequestIOS
- type RegisterRequestIOSAttestationType
- type RegisterResponse
- type RegisterResponseTokenType
- type ReloginRequest
- type ReloginResponse
- type ReloginResponseTokenType
- type RelyingPartyConfidentialClient
- type RelyingPartyConfidentialClientTokenEndpointAuthMethod
- type RelyingPartyPublicClient
- type RelyingPartyPublicClientTokenEndpointAuthMethod
- type RelyingPartyRegistrationRequest
- type RelyingPartyRegistrationResponse
- type RelyingPartySecretRotationResponse
- type RequestEditorFn
- type RevokePairingParams
- type RevokePairingResp
- type SASEntry
- type ServiceUnavailable
- type StartPairingJSONRequestBody
- type StartPairingParams
- type StartPairingResp
- type SubmitPairingPubkeyJSONRequestBody
- type SubmitPairingPubkeyParams
- type SubmitPairingPubkeyResp
- type TokenRequest
- type TokenRequestGrantType
- type TokenResponse
- type TokenResponseTokenType
- type TooManyRequests
- type Unauthorized
- type UnprocessableEntity
- type UserInfoResponse
- type XRequestID
Constants ¶
const ( DpopAccessTokenScopes dpopAccessTokenContextKey = "dpopAccessToken.Scopes" OidcBearerTokenScopes oidcBearerTokenContextKey = "oidcBearerToken.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func NewApproveDeviceAuthorizationRequest ¶ added in v0.19.0
func NewApproveDeviceAuthorizationRequest(server string, params *ApproveDeviceAuthorizationParams, body ApproveDeviceAuthorizationJSONRequestBody) (*http.Request, error)
NewApproveDeviceAuthorizationRequest calls the generic ApproveDeviceAuthorization builder with application/json body
func NewApproveDeviceAuthorizationRequestWithBody ¶ added in v0.19.0
func NewApproveDeviceAuthorizationRequestWithBody(server string, params *ApproveDeviceAuthorizationParams, contentType string, body io.Reader) (*http.Request, error)
NewApproveDeviceAuthorizationRequestWithBody generates requests for ApproveDeviceAuthorization with any type of body
func NewClaimDeviceAuthorizationRequest ¶ added in v0.19.1
func NewClaimDeviceAuthorizationRequest(server string, params *ClaimDeviceAuthorizationParams, body ClaimDeviceAuthorizationJSONRequestBody) (*http.Request, error)
NewClaimDeviceAuthorizationRequest calls the generic ClaimDeviceAuthorization builder with application/json body
func NewClaimDeviceAuthorizationRequestWithBody ¶ added in v0.19.1
func NewClaimDeviceAuthorizationRequestWithBody(server string, params *ClaimDeviceAuthorizationParams, contentType string, body io.Reader) (*http.Request, error)
NewClaimDeviceAuthorizationRequestWithBody generates requests for ClaimDeviceAuthorization with any type of body
func NewCompleteOIDCAuthRequestRequest ¶ added in v0.19.1
func NewCompleteOIDCAuthRequestRequest(server string, id string, params *CompleteOIDCAuthRequestParams) (*http.Request, error)
NewCompleteOIDCAuthRequestRequest generates requests for CompleteOIDCAuthRequest
func NewConfirmPairingRequest ¶ added in v0.19.0
func NewConfirmPairingRequest(server string, id openapi_types.UUID, params *ConfirmPairingParams, body ConfirmPairingJSONRequestBody) (*http.Request, error)
NewConfirmPairingRequest calls the generic ConfirmPairing builder with application/json body
func NewConfirmPairingRequestWithBody ¶ added in v0.19.0
func NewConfirmPairingRequestWithBody(server string, id openapi_types.UUID, params *ConfirmPairingParams, contentType string, body io.Reader) (*http.Request, error)
NewConfirmPairingRequestWithBody generates requests for ConfirmPairing with any type of body
func NewCreatePrivilegedActionIntentRequest ¶ added in v0.20.0
func NewCreatePrivilegedActionIntentRequest(server string, params *CreatePrivilegedActionIntentParams, body CreatePrivilegedActionIntentJSONRequestBody) (*http.Request, error)
NewCreatePrivilegedActionIntentRequest calls the generic CreatePrivilegedActionIntent builder with application/json body
func NewCreatePrivilegedActionIntentRequestWithBody ¶ added in v0.20.0
func NewCreatePrivilegedActionIntentRequestWithBody(server string, params *CreatePrivilegedActionIntentParams, contentType string, body io.Reader) (*http.Request, error)
NewCreatePrivilegedActionIntentRequestWithBody generates requests for CreatePrivilegedActionIntent with any type of body
func NewDeleteDeviceRequest ¶
func NewDeleteDeviceRequest(server string, id string, params *DeleteDeviceParams) (*http.Request, error)
NewDeleteDeviceRequest generates requests for DeleteDevice
func NewDenyDeviceAuthorizationRequest ¶ added in v0.19.1
func NewDenyDeviceAuthorizationRequest(server string, params *DenyDeviceAuthorizationParams, body DenyDeviceAuthorizationJSONRequestBody) (*http.Request, error)
NewDenyDeviceAuthorizationRequest calls the generic DenyDeviceAuthorization builder with application/json body
func NewDenyDeviceAuthorizationRequestWithBody ¶ added in v0.19.1
func NewDenyDeviceAuthorizationRequestWithBody(server string, params *DenyDeviceAuthorizationParams, contentType string, body io.Reader) (*http.Request, error)
NewDenyDeviceAuthorizationRequestWithBody generates requests for DenyDeviceAuthorization with any type of body
func NewDenyPairingRequest ¶ added in v0.19.0
func NewDenyPairingRequest(server string, id openapi_types.UUID, params *DenyPairingParams) (*http.Request, error)
NewDenyPairingRequest generates requests for DenyPairing
func NewGetAttestedKeyConfigRequest ¶
NewGetAttestedKeyConfigRequest generates requests for GetAttestedKeyConfig
func NewGetAuthorizeRequest ¶
func NewGetAuthorizeRequest(server string, params *GetAuthorizeParams) (*http.Request, error)
NewGetAuthorizeRequest generates requests for GetAuthorize
func NewGetChallengeRequest ¶
NewGetChallengeRequest generates requests for GetChallenge
func NewGetDeviceAuthorizationStatusRequest ¶ added in v0.19.1
func NewGetDeviceAuthorizationStatusRequest(server string, deviceCode string, params *GetDeviceAuthorizationStatusParams) (*http.Request, error)
NewGetDeviceAuthorizationStatusRequest generates requests for GetDeviceAuthorizationStatus
func NewGetDeviceRequest ¶
NewGetDeviceRequest generates requests for GetDevice
func NewGetJWKSRequest ¶
NewGetJWKSRequest generates requests for GetJWKS
func NewGetMeRequest ¶
func NewGetMeRequest(server string, params *GetMeParams) (*http.Request, error)
NewGetMeRequest generates requests for GetMe
func NewGetOpenidConfigurationRequest ¶
NewGetOpenidConfigurationRequest generates requests for GetOpenidConfiguration
func NewGetPairingTransactionRequest ¶ added in v0.19.0
func NewGetPairingTransactionRequest(server string, id openapi_types.UUID, params *GetPairingTransactionParams) (*http.Request, error)
NewGetPairingTransactionRequest generates requests for GetPairingTransaction
func NewGetPrivilegedActionIntentRequest ¶ added in v0.20.0
func NewGetPrivilegedActionIntentRequest(server string, id string, params *GetPrivilegedActionIntentParams) (*http.Request, error)
NewGetPrivilegedActionIntentRequest generates requests for GetPrivilegedActionIntent
func NewGetUserinfoRequest ¶ added in v0.12.0
NewGetUserinfoRequest generates requests for GetUserinfo
func NewIssuePairingTokenRequest ¶ added in v0.19.0
func NewIssuePairingTokenRequest(server string, id openapi_types.UUID, params *IssuePairingTokenParams) (*http.Request, error)
NewIssuePairingTokenRequest generates requests for IssuePairingToken
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 NewListPendingPairingsRequest ¶ added in v0.19.0
func NewListPendingPairingsRequest(server string, params *ListPendingPairingsParams) (*http.Request, error)
NewListPendingPairingsRequest generates requests for ListPendingPairings
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 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 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 NewRefreshAttestedKeyRequest ¶
func NewRefreshAttestedKeyRequest(server string, params *RefreshAttestedKeyParams) (*http.Request, error)
NewRefreshAttestedKeyRequest generates requests for RefreshAttestedKey
func NewRevokePairingRequest ¶
func NewRevokePairingRequest(server string, id string, params *RevokePairingParams) (*http.Request, error)
NewRevokePairingRequest generates requests for RevokePairing
func NewStartPairingRequest ¶ added in v0.19.0
func NewStartPairingRequest(server string, params *StartPairingParams, body StartPairingJSONRequestBody) (*http.Request, error)
NewStartPairingRequest calls the generic StartPairing builder with application/json body
func NewStartPairingRequestWithBody ¶ added in v0.19.0
func NewStartPairingRequestWithBody(server string, params *StartPairingParams, contentType string, body io.Reader) (*http.Request, error)
NewStartPairingRequestWithBody generates requests for StartPairing with any type of body
func NewSubmitPairingPubkeyRequest ¶ added in v0.19.0
func NewSubmitPairingPubkeyRequest(server string, id openapi_types.UUID, params *SubmitPairingPubkeyParams, body SubmitPairingPubkeyJSONRequestBody) (*http.Request, error)
NewSubmitPairingPubkeyRequest calls the generic SubmitPairingPubkey builder with application/json body
func NewSubmitPairingPubkeyRequestWithBody ¶ added in v0.19.0
func NewSubmitPairingPubkeyRequestWithBody(server string, id openapi_types.UUID, params *SubmitPairingPubkeyParams, contentType string, body io.Reader) (*http.Request, error)
NewSubmitPairingPubkeyRequestWithBody generates requests for SubmitPairingPubkey with any type of body
func SASDictionaryVersion ¶ added in v0.9.0
func SASDictionaryVersion() string
SASDictionaryVersion returns the version string baked into the dictionary.
Types ¶
type ApproveDeviceAuthorizationJSONRequestBody ¶ added in v0.19.0
type ApproveDeviceAuthorizationJSONRequestBody = DeviceAuthorizationApproveRequest
ApproveDeviceAuthorizationJSONRequestBody defines body for ApproveDeviceAuthorization for application/json ContentType.
type ApproveDeviceAuthorizationParams ¶ added in v0.19.0
type ApproveDeviceAuthorizationParams 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"`
}
ApproveDeviceAuthorizationParams defines parameters for ApproveDeviceAuthorization.
type ApproveDeviceAuthorizationResp ¶ added in v0.19.0
type ApproveDeviceAuthorizationResp struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequest
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON410 *Gone
ApplicationproblemJSON429 *TooManyRequests
}
func ParseApproveDeviceAuthorizationResp ¶ added in v0.19.0
func ParseApproveDeviceAuthorizationResp(rsp *http.Response) (*ApproveDeviceAuthorizationResp, error)
ParseApproveDeviceAuthorizationResp parses an HTTP response from a ApproveDeviceAuthorizationWithResponse call
func (ApproveDeviceAuthorizationResp) ContentType ¶ added in v0.20.0
func (r ApproveDeviceAuthorizationResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ApproveDeviceAuthorizationResp) Status ¶ added in v0.19.0
func (r ApproveDeviceAuthorizationResp) Status() string
Status returns HTTPResponse.Status
func (ApproveDeviceAuthorizationResp) StatusCode ¶ added in v0.19.0
func (r ApproveDeviceAuthorizationResp) 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 BadGateway ¶ added in v0.20.0
type BadGateway = ProblemDetails
BadGateway 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 ClaimDeviceAuthorizationJSONRequestBody ¶ added in v0.19.1
type ClaimDeviceAuthorizationJSONRequestBody = DeviceAuthorizationApproveRequest
ClaimDeviceAuthorizationJSONRequestBody defines body for ClaimDeviceAuthorization for application/json ContentType.
type ClaimDeviceAuthorizationParams ¶ added in v0.19.1
type ClaimDeviceAuthorizationParams 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"`
}
ClaimDeviceAuthorizationParams defines parameters for ClaimDeviceAuthorization.
type ClaimDeviceAuthorizationResp ¶ added in v0.19.1
type ClaimDeviceAuthorizationResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeviceAuthorizationClaimResponse
ApplicationproblemJSON400 *BadRequest
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON410 *Gone
ApplicationproblemJSON429 *TooManyRequests
}
func ParseClaimDeviceAuthorizationResp ¶ added in v0.19.1
func ParseClaimDeviceAuthorizationResp(rsp *http.Response) (*ClaimDeviceAuthorizationResp, error)
ParseClaimDeviceAuthorizationResp parses an HTTP response from a ClaimDeviceAuthorizationWithResponse call
func (ClaimDeviceAuthorizationResp) ContentType ¶ added in v0.20.0
func (r ClaimDeviceAuthorizationResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ClaimDeviceAuthorizationResp) Status ¶ added in v0.19.1
func (r ClaimDeviceAuthorizationResp) Status() string
Status returns HTTPResponse.Status
func (ClaimDeviceAuthorizationResp) StatusCode ¶ added in v0.19.1
func (r ClaimDeviceAuthorizationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) ApproveDeviceAuthorization ¶ added in v0.19.0
func (c *Client) ApproveDeviceAuthorization(ctx context.Context, params *ApproveDeviceAuthorizationParams, body ApproveDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ApproveDeviceAuthorizationWithBody ¶ added in v0.19.0
func (*Client) ClaimDeviceAuthorization ¶ added in v0.19.1
func (c *Client) ClaimDeviceAuthorization(ctx context.Context, params *ClaimDeviceAuthorizationParams, body ClaimDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ClaimDeviceAuthorizationWithBody ¶ added in v0.19.1
func (*Client) CompleteOIDCAuthRequest ¶ added in v0.19.1
func (c *Client) CompleteOIDCAuthRequest(ctx context.Context, id string, params *CompleteOIDCAuthRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ConfirmPairing ¶ added in v0.19.0
func (c *Client) ConfirmPairing(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, body ConfirmPairingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ConfirmPairingWithBody ¶ added in v0.19.0
func (c *Client) ConfirmPairingWithBody(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePrivilegedActionIntent ¶ added in v0.20.0
func (c *Client) CreatePrivilegedActionIntent(ctx context.Context, params *CreatePrivilegedActionIntentParams, body CreatePrivilegedActionIntentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePrivilegedActionIntentWithBody ¶ added in v0.20.0
func (*Client) DeleteDevice ¶
func (c *Client) DeleteDevice(ctx context.Context, id string, params *DeleteDeviceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DenyDeviceAuthorization ¶ added in v0.19.1
func (c *Client) DenyDeviceAuthorization(ctx context.Context, params *DenyDeviceAuthorizationParams, body DenyDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DenyDeviceAuthorizationWithBody ¶ added in v0.19.1
func (*Client) DenyPairing ¶ added in v0.19.0
func (c *Client) DenyPairing(ctx context.Context, id openapi_types.UUID, params *DenyPairingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAttestedKeyConfig ¶
func (*Client) GetAuthorize ¶
func (c *Client) GetAuthorize(ctx context.Context, params *GetAuthorizeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChallenge ¶
func (*Client) GetDevice ¶
func (c *Client) GetDevice(ctx context.Context, id string, params *GetDeviceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetDeviceAuthorizationStatus ¶ added in v0.19.1
func (c *Client) GetDeviceAuthorizationStatus(ctx context.Context, deviceCode string, params *GetDeviceAuthorizationStatusParams, 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 (*Client) GetPairingTransaction ¶ added in v0.19.0
func (c *Client) GetPairingTransaction(ctx context.Context, id openapi_types.UUID, params *GetPairingTransactionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPrivilegedActionIntent ¶ added in v0.20.0
func (c *Client) GetPrivilegedActionIntent(ctx context.Context, id string, params *GetPrivilegedActionIntentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserinfo ¶ added in v0.12.0
func (*Client) IssuePairingToken ¶ added in v0.19.0
func (c *Client) IssuePairingToken(ctx context.Context, id openapi_types.UUID, params *IssuePairingTokenParams, 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) ListPendingPairings ¶ added in v0.19.0
func (c *Client) ListPendingPairings(ctx context.Context, params *ListPendingPairingsParams, 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 (*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 (*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 (*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 (*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 (*Client) PostRegister ¶
func (c *Client) PostRegister(ctx context.Context, body PostRegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostRegisterWithBody ¶
func (*Client) PostRelogin ¶
func (c *Client) PostRelogin(ctx context.Context, body PostReloginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostReloginWithBody ¶
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) PostRelyingPartyWithBody ¶ added in v0.11.0
func (*Client) PostTokenWithBody ¶
func (*Client) PostTokenWithFormdataBody ¶
func (c *Client) PostTokenWithFormdataBody(ctx context.Context, params *PostTokenParams, body PostTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RefreshAttestedKey ¶
func (c *Client) RefreshAttestedKey(ctx context.Context, params *RefreshAttestedKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RevokePairing ¶
func (c *Client) RevokePairing(ctx context.Context, id string, params *RevokePairingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StartPairing ¶ added in v0.19.0
func (c *Client) StartPairing(ctx context.Context, params *StartPairingParams, body StartPairingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StartPairingWithBody ¶ added in v0.19.0
func (*Client) SubmitPairingPubkey ¶ added in v0.19.0
func (c *Client) SubmitPairingPubkey(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, body SubmitPairingPubkeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SubmitPairingPubkeyWithBody ¶ added in v0.19.0
func (c *Client) SubmitPairingPubkeyWithBody(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// 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)
// ApproveDeviceAuthorizationWithBody request with any body
ApproveDeviceAuthorizationWithBody(ctx context.Context, params *ApproveDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ApproveDeviceAuthorization(ctx context.Context, params *ApproveDeviceAuthorizationParams, body ApproveDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClaimDeviceAuthorizationWithBody request with any body
ClaimDeviceAuthorizationWithBody(ctx context.Context, params *ClaimDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ClaimDeviceAuthorization(ctx context.Context, params *ClaimDeviceAuthorizationParams, body ClaimDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DenyDeviceAuthorizationWithBody request with any body
DenyDeviceAuthorizationWithBody(ctx context.Context, params *DenyDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DenyDeviceAuthorization(ctx context.Context, params *DenyDeviceAuthorizationParams, body DenyDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDeviceAuthorizationStatus request
GetDeviceAuthorizationStatus(ctx context.Context, deviceCode string, params *GetDeviceAuthorizationStatusParams, 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)
// GetMe request
GetMe(ctx context.Context, params *GetMeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompleteOIDCAuthRequest request
CompleteOIDCAuthRequest(ctx context.Context, id string, params *CompleteOIDCAuthRequestParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartPairingWithBody request with any body
StartPairingWithBody(ctx context.Context, params *StartPairingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartPairing(ctx context.Context, params *StartPairingParams, body StartPairingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPendingPairings request
ListPendingPairings(ctx context.Context, params *ListPendingPairingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPairingTransaction request
GetPairingTransaction(ctx context.Context, id openapi_types.UUID, params *GetPairingTransactionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfirmPairingWithBody request with any body
ConfirmPairingWithBody(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ConfirmPairing(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, body ConfirmPairingJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DenyPairing request
DenyPairing(ctx context.Context, id openapi_types.UUID, params *DenyPairingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SubmitPairingPubkeyWithBody request with any body
SubmitPairingPubkeyWithBody(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SubmitPairingPubkey(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, body SubmitPairingPubkeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// IssuePairingToken request
IssuePairingToken(ctx context.Context, id openapi_types.UUID, params *IssuePairingTokenParams, 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)
// CreatePrivilegedActionIntentWithBody request with any body
CreatePrivilegedActionIntentWithBody(ctx context.Context, params *CreatePrivilegedActionIntentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePrivilegedActionIntent(ctx context.Context, params *CreatePrivilegedActionIntentParams, body CreatePrivilegedActionIntentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPrivilegedActionIntent request
GetPrivilegedActionIntent(ctx context.Context, id string, params *GetPrivilegedActionIntentParams, 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)
// GetOpenidConfiguration request
GetOpenidConfiguration(ctx context.Context, 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 ¶
ClientOption allows setting custom parameters during construction
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) ApproveDeviceAuthorizationWithBodyWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) ApproveDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *ApproveDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveDeviceAuthorizationResp, error)
ApproveDeviceAuthorizationWithBodyWithResponse request with arbitrary body returning *ApproveDeviceAuthorizationResp
func (*ClientWithResponses) ApproveDeviceAuthorizationWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) ApproveDeviceAuthorizationWithResponse(ctx context.Context, params *ApproveDeviceAuthorizationParams, body ApproveDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveDeviceAuthorizationResp, error)
func (*ClientWithResponses) ClaimDeviceAuthorizationWithBodyWithResponse ¶ added in v0.19.1
func (c *ClientWithResponses) ClaimDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *ClaimDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClaimDeviceAuthorizationResp, error)
ClaimDeviceAuthorizationWithBodyWithResponse request with arbitrary body returning *ClaimDeviceAuthorizationResp
func (*ClientWithResponses) ClaimDeviceAuthorizationWithResponse ¶ added in v0.19.1
func (c *ClientWithResponses) ClaimDeviceAuthorizationWithResponse(ctx context.Context, params *ClaimDeviceAuthorizationParams, body ClaimDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimDeviceAuthorizationResp, error)
func (*ClientWithResponses) CompleteOIDCAuthRequestWithResponse ¶ added in v0.19.1
func (c *ClientWithResponses) CompleteOIDCAuthRequestWithResponse(ctx context.Context, id string, params *CompleteOIDCAuthRequestParams, reqEditors ...RequestEditorFn) (*CompleteOIDCAuthRequestResp, error)
CompleteOIDCAuthRequestWithResponse request returning *CompleteOIDCAuthRequestResp
func (*ClientWithResponses) ConfirmPairingWithBodyWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) ConfirmPairingWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmPairingResp, error)
ConfirmPairingWithBodyWithResponse request with arbitrary body returning *ConfirmPairingResp
func (*ClientWithResponses) ConfirmPairingWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) ConfirmPairingWithResponse(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, body ConfirmPairingJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmPairingResp, error)
func (*ClientWithResponses) CreatePrivilegedActionIntentWithBodyWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) CreatePrivilegedActionIntentWithBodyWithResponse(ctx context.Context, params *CreatePrivilegedActionIntentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePrivilegedActionIntentResp, error)
CreatePrivilegedActionIntentWithBodyWithResponse request with arbitrary body returning *CreatePrivilegedActionIntentResp
func (*ClientWithResponses) CreatePrivilegedActionIntentWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) CreatePrivilegedActionIntentWithResponse(ctx context.Context, params *CreatePrivilegedActionIntentParams, body CreatePrivilegedActionIntentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePrivilegedActionIntentResp, error)
func (*ClientWithResponses) DeleteDeviceWithResponse ¶
func (c *ClientWithResponses) DeleteDeviceWithResponse(ctx context.Context, id string, params *DeleteDeviceParams, reqEditors ...RequestEditorFn) (*DeleteDeviceResp, error)
DeleteDeviceWithResponse request returning *DeleteDeviceResp
func (*ClientWithResponses) DenyDeviceAuthorizationWithBodyWithResponse ¶ added in v0.19.1
func (c *ClientWithResponses) DenyDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *DenyDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DenyDeviceAuthorizationResp, error)
DenyDeviceAuthorizationWithBodyWithResponse request with arbitrary body returning *DenyDeviceAuthorizationResp
func (*ClientWithResponses) DenyDeviceAuthorizationWithResponse ¶ added in v0.19.1
func (c *ClientWithResponses) DenyDeviceAuthorizationWithResponse(ctx context.Context, params *DenyDeviceAuthorizationParams, body DenyDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*DenyDeviceAuthorizationResp, error)
func (*ClientWithResponses) DenyPairingWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) DenyPairingWithResponse(ctx context.Context, id openapi_types.UUID, params *DenyPairingParams, reqEditors ...RequestEditorFn) (*DenyPairingResp, error)
DenyPairingWithResponse request returning *DenyPairingResp
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) GetDeviceAuthorizationStatusWithResponse ¶ added in v0.19.1
func (c *ClientWithResponses) GetDeviceAuthorizationStatusWithResponse(ctx context.Context, deviceCode string, params *GetDeviceAuthorizationStatusParams, reqEditors ...RequestEditorFn) (*GetDeviceAuthorizationStatusResp, error)
GetDeviceAuthorizationStatusWithResponse request returning *GetDeviceAuthorizationStatusResp
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) GetPairingTransactionWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) GetPairingTransactionWithResponse(ctx context.Context, id openapi_types.UUID, params *GetPairingTransactionParams, reqEditors ...RequestEditorFn) (*GetPairingTransactionResp, error)
GetPairingTransactionWithResponse request returning *GetPairingTransactionResp
func (*ClientWithResponses) GetPrivilegedActionIntentWithResponse ¶ added in v0.20.0
func (c *ClientWithResponses) GetPrivilegedActionIntentWithResponse(ctx context.Context, id string, params *GetPrivilegedActionIntentParams, reqEditors ...RequestEditorFn) (*GetPrivilegedActionIntentResp, error)
GetPrivilegedActionIntentWithResponse request returning *GetPrivilegedActionIntentResp
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) IssuePairingTokenWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) IssuePairingTokenWithResponse(ctx context.Context, id openapi_types.UUID, params *IssuePairingTokenParams, reqEditors ...RequestEditorFn) (*IssuePairingTokenResp, error)
IssuePairingTokenWithResponse request returning *IssuePairingTokenResp
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) ListPendingPairingsWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) ListPendingPairingsWithResponse(ctx context.Context, params *ListPendingPairingsParams, reqEditors ...RequestEditorFn) (*ListPendingPairingsResp, error)
ListPendingPairingsWithResponse request returning *ListPendingPairingsResp
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 (c *ClientWithResponses) PostDeviceAuthorizationWithResponse(ctx context.Context, params *PostDeviceAuthorizationParams, body PostDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*PostDeviceAuthorizationResp, error)
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) 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) 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) RefreshAttestedKeyWithResponse ¶
func (c *ClientWithResponses) RefreshAttestedKeyWithResponse(ctx context.Context, params *RefreshAttestedKeyParams, reqEditors ...RequestEditorFn) (*RefreshAttestedKeyResp, error)
RefreshAttestedKeyWithResponse request returning *RefreshAttestedKeyResp
func (*ClientWithResponses) RevokePairingWithResponse ¶
func (c *ClientWithResponses) RevokePairingWithResponse(ctx context.Context, id string, params *RevokePairingParams, reqEditors ...RequestEditorFn) (*RevokePairingResp, error)
RevokePairingWithResponse request returning *RevokePairingResp
func (*ClientWithResponses) StartPairingWithBodyWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) StartPairingWithBodyWithResponse(ctx context.Context, params *StartPairingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartPairingResp, error)
StartPairingWithBodyWithResponse request with arbitrary body returning *StartPairingResp
func (*ClientWithResponses) StartPairingWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) StartPairingWithResponse(ctx context.Context, params *StartPairingParams, body StartPairingJSONRequestBody, reqEditors ...RequestEditorFn) (*StartPairingResp, error)
func (*ClientWithResponses) SubmitPairingPubkeyWithBodyWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) SubmitPairingPubkeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitPairingPubkeyResp, error)
SubmitPairingPubkeyWithBodyWithResponse request with arbitrary body returning *SubmitPairingPubkeyResp
func (*ClientWithResponses) SubmitPairingPubkeyWithResponse ¶ added in v0.19.0
func (c *ClientWithResponses) SubmitPairingPubkeyWithResponse(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, body SubmitPairingPubkeyJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitPairingPubkeyResp, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// 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)
// ApproveDeviceAuthorizationWithBodyWithResponse request with any body
ApproveDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *ApproveDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveDeviceAuthorizationResp, error)
ApproveDeviceAuthorizationWithResponse(ctx context.Context, params *ApproveDeviceAuthorizationParams, body ApproveDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveDeviceAuthorizationResp, error)
// ClaimDeviceAuthorizationWithBodyWithResponse request with any body
ClaimDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *ClaimDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClaimDeviceAuthorizationResp, error)
ClaimDeviceAuthorizationWithResponse(ctx context.Context, params *ClaimDeviceAuthorizationParams, body ClaimDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimDeviceAuthorizationResp, error)
// DenyDeviceAuthorizationWithBodyWithResponse request with any body
DenyDeviceAuthorizationWithBodyWithResponse(ctx context.Context, params *DenyDeviceAuthorizationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DenyDeviceAuthorizationResp, error)
DenyDeviceAuthorizationWithResponse(ctx context.Context, params *DenyDeviceAuthorizationParams, body DenyDeviceAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*DenyDeviceAuthorizationResp, error)
// GetDeviceAuthorizationStatusWithResponse request
GetDeviceAuthorizationStatusWithResponse(ctx context.Context, deviceCode string, params *GetDeviceAuthorizationStatusParams, reqEditors ...RequestEditorFn) (*GetDeviceAuthorizationStatusResp, 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)
// GetMeWithResponse request
GetMeWithResponse(ctx context.Context, params *GetMeParams, reqEditors ...RequestEditorFn) (*GetMeResp, error)
// CompleteOIDCAuthRequestWithResponse request
CompleteOIDCAuthRequestWithResponse(ctx context.Context, id string, params *CompleteOIDCAuthRequestParams, reqEditors ...RequestEditorFn) (*CompleteOIDCAuthRequestResp, error)
// StartPairingWithBodyWithResponse request with any body
StartPairingWithBodyWithResponse(ctx context.Context, params *StartPairingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartPairingResp, error)
StartPairingWithResponse(ctx context.Context, params *StartPairingParams, body StartPairingJSONRequestBody, reqEditors ...RequestEditorFn) (*StartPairingResp, error)
// ListPendingPairingsWithResponse request
ListPendingPairingsWithResponse(ctx context.Context, params *ListPendingPairingsParams, reqEditors ...RequestEditorFn) (*ListPendingPairingsResp, error)
// GetPairingTransactionWithResponse request
GetPairingTransactionWithResponse(ctx context.Context, id openapi_types.UUID, params *GetPairingTransactionParams, reqEditors ...RequestEditorFn) (*GetPairingTransactionResp, error)
// ConfirmPairingWithBodyWithResponse request with any body
ConfirmPairingWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfirmPairingResp, error)
ConfirmPairingWithResponse(ctx context.Context, id openapi_types.UUID, params *ConfirmPairingParams, body ConfirmPairingJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfirmPairingResp, error)
// DenyPairingWithResponse request
DenyPairingWithResponse(ctx context.Context, id openapi_types.UUID, params *DenyPairingParams, reqEditors ...RequestEditorFn) (*DenyPairingResp, error)
// SubmitPairingPubkeyWithBodyWithResponse request with any body
SubmitPairingPubkeyWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SubmitPairingPubkeyResp, error)
SubmitPairingPubkeyWithResponse(ctx context.Context, id openapi_types.UUID, params *SubmitPairingPubkeyParams, body SubmitPairingPubkeyJSONRequestBody, reqEditors ...RequestEditorFn) (*SubmitPairingPubkeyResp, error)
// IssuePairingTokenWithResponse request
IssuePairingTokenWithResponse(ctx context.Context, id openapi_types.UUID, params *IssuePairingTokenParams, reqEditors ...RequestEditorFn) (*IssuePairingTokenResp, 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)
// CreatePrivilegedActionIntentWithBodyWithResponse request with any body
CreatePrivilegedActionIntentWithBodyWithResponse(ctx context.Context, params *CreatePrivilegedActionIntentParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePrivilegedActionIntentResp, error)
CreatePrivilegedActionIntentWithResponse(ctx context.Context, params *CreatePrivilegedActionIntentParams, body CreatePrivilegedActionIntentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePrivilegedActionIntentResp, error)
// GetPrivilegedActionIntentWithResponse request
GetPrivilegedActionIntentWithResponse(ctx context.Context, id string, params *GetPrivilegedActionIntentParams, reqEditors ...RequestEditorFn) (*GetPrivilegedActionIntentResp, 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)
// GetOpenidConfigurationWithResponse request
GetOpenidConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenidConfigurationResp, 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 CompleteOIDCAuthRequestParams ¶ added in v0.19.1
type CompleteOIDCAuthRequestParams 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"`
}
CompleteOIDCAuthRequestParams defines parameters for CompleteOIDCAuthRequest.
type CompleteOIDCAuthRequestResp ¶ added in v0.19.1
type CompleteOIDCAuthRequestResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OIDCAuthRequestCompletionResponse
ApplicationproblemJSON400 *BadRequest
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON410 *Gone
ApplicationproblemJSON429 *TooManyRequests
}
func ParseCompleteOIDCAuthRequestResp ¶ added in v0.19.1
func ParseCompleteOIDCAuthRequestResp(rsp *http.Response) (*CompleteOIDCAuthRequestResp, error)
ParseCompleteOIDCAuthRequestResp parses an HTTP response from a CompleteOIDCAuthRequestWithResponse call
func (CompleteOIDCAuthRequestResp) ContentType ¶ added in v0.20.0
func (r CompleteOIDCAuthRequestResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CompleteOIDCAuthRequestResp) Status ¶ added in v0.19.1
func (r CompleteOIDCAuthRequestResp) Status() string
Status returns HTTPResponse.Status
func (CompleteOIDCAuthRequestResp) StatusCode ¶ added in v0.19.1
func (r CompleteOIDCAuthRequestResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ConfirmPairingJSONRequestBody ¶ added in v0.19.0
type ConfirmPairingJSONRequestBody = PairingTransactionConfirmRequest
ConfirmPairingJSONRequestBody defines body for ConfirmPairing for application/json ContentType.
type ConfirmPairingParams ¶ added in v0.19.0
type ConfirmPairingParams 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"`
}
ConfirmPairingParams defines parameters for ConfirmPairing.
type ConfirmPairingResp ¶ added in v0.19.0
type ConfirmPairingResp struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequest
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON410 *Gone
ApplicationproblemJSON429 *TooManyRequests
}
func ParseConfirmPairingResp ¶ added in v0.19.0
func ParseConfirmPairingResp(rsp *http.Response) (*ConfirmPairingResp, error)
ParseConfirmPairingResp parses an HTTP response from a ConfirmPairingWithResponse call
func (ConfirmPairingResp) ContentType ¶ added in v0.20.0
func (r ConfirmPairingResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ConfirmPairingResp) Status ¶ added in v0.19.0
func (r ConfirmPairingResp) Status() string
Status returns HTTPResponse.Status
func (ConfirmPairingResp) StatusCode ¶ added in v0.19.0
func (r ConfirmPairingResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePrivilegedActionIntentJSONRequestBody ¶ added in v0.20.0
type CreatePrivilegedActionIntentJSONRequestBody = PrivilegedActionIntentCreateRequest
CreatePrivilegedActionIntentJSONRequestBody defines body for CreatePrivilegedActionIntent for application/json ContentType.
type CreatePrivilegedActionIntentParams ¶ added in v0.20.0
type CreatePrivilegedActionIntentParams 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"`
}
CreatePrivilegedActionIntentParams defines parameters for CreatePrivilegedActionIntent.
type CreatePrivilegedActionIntentResp ¶ added in v0.20.0
type CreatePrivilegedActionIntentResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *PrivilegedActionIntentResponse
ApplicationproblemJSON400 *BadRequest
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON429 *TooManyRequests
ApplicationproblemJSON502 *BadGateway
ApplicationproblemJSON503 *ServiceUnavailable
}
func ParseCreatePrivilegedActionIntentResp ¶ added in v0.20.0
func ParseCreatePrivilegedActionIntentResp(rsp *http.Response) (*CreatePrivilegedActionIntentResp, error)
ParseCreatePrivilegedActionIntentResp parses an HTTP response from a CreatePrivilegedActionIntentWithResponse call
func (CreatePrivilegedActionIntentResp) ContentType ¶ added in v0.20.0
func (r CreatePrivilegedActionIntentResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreatePrivilegedActionIntentResp) Status ¶ added in v0.20.0
func (r CreatePrivilegedActionIntentResp) Status() string
Status returns HTTPResponse.Status
func (CreatePrivilegedActionIntentResp) StatusCode ¶ added in v0.20.0
func (r CreatePrivilegedActionIntentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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
ApplicationproblemJSON429 *TooManyRequests
}
func ParseDeleteDeviceResp ¶
func ParseDeleteDeviceResp(rsp *http.Response) (*DeleteDeviceResp, error)
ParseDeleteDeviceResp parses an HTTP response from a DeleteDeviceWithResponse call
func (DeleteDeviceResp) ContentType ¶ added in v0.20.0
func (r DeleteDeviceResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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 DenyDeviceAuthorizationJSONRequestBody ¶ added in v0.19.1
type DenyDeviceAuthorizationJSONRequestBody = DeviceAuthorizationApproveRequest
DenyDeviceAuthorizationJSONRequestBody defines body for DenyDeviceAuthorization for application/json ContentType.
type DenyDeviceAuthorizationParams ¶ added in v0.19.1
type DenyDeviceAuthorizationParams 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"`
}
DenyDeviceAuthorizationParams defines parameters for DenyDeviceAuthorization.
type DenyDeviceAuthorizationResp ¶ added in v0.19.1
type DenyDeviceAuthorizationResp struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequest
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON410 *Gone
ApplicationproblemJSON429 *TooManyRequests
}
func ParseDenyDeviceAuthorizationResp ¶ added in v0.19.1
func ParseDenyDeviceAuthorizationResp(rsp *http.Response) (*DenyDeviceAuthorizationResp, error)
ParseDenyDeviceAuthorizationResp parses an HTTP response from a DenyDeviceAuthorizationWithResponse call
func (DenyDeviceAuthorizationResp) ContentType ¶ added in v0.20.0
func (r DenyDeviceAuthorizationResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DenyDeviceAuthorizationResp) Status ¶ added in v0.19.1
func (r DenyDeviceAuthorizationResp) Status() string
Status returns HTTPResponse.Status
func (DenyDeviceAuthorizationResp) StatusCode ¶ added in v0.19.1
func (r DenyDeviceAuthorizationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DenyPairingParams ¶ added in v0.19.0
type DenyPairingParams 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"`
}
DenyPairingParams defines parameters for DenyPairing.
type DenyPairingResp ¶ added in v0.19.0
type DenyPairingResp struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON410 *Gone
ApplicationproblemJSON429 *TooManyRequests
}
func ParseDenyPairingResp ¶ added in v0.19.0
func ParseDenyPairingResp(rsp *http.Response) (*DenyPairingResp, error)
ParseDenyPairingResp parses an HTTP response from a DenyPairingWithResponse call
func (DenyPairingResp) ContentType ¶ added in v0.20.0
func (r DenyPairingResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DenyPairingResp) Status ¶ added in v0.19.0
func (r DenyPairingResp) Status() string
Status returns HTTPResponse.Status
func (DenyPairingResp) StatusCode ¶ added in v0.19.0
func (r DenyPairingResp) 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 DeviceAuthorizationApproveRequest ¶ added in v0.19.0
type DeviceAuthorizationApproveRequest struct {
// UserCode User-facing code shown by the device authorization flow.
UserCode string `json:"user_code"`
}
DeviceAuthorizationApproveRequest defines model for DeviceAuthorizationApproveRequest.
type DeviceAuthorizationClaimResponse ¶ added in v0.19.1
type DeviceAuthorizationClaimResponse struct {
// AutoApproved True when the device-authorization was auto-approved server-side
// because the originating relying party is marked `trusted` in the
// auth seed (first-party services such as `naughtbot-captcha-rp` and
// `naughtbot-console-rp`). When true, the device-code state is
// already `approved` and the client must not call
// `/api/v1/device-authorizations/approve`. Absent or false means the
// mobile app must render the normal Approve/Deny consent UI.
AutoApproved *bool `json:"auto_approved,omitempty"`
ClientId string `json:"client_id"`
ClientName string `json:"client_name"`
ExpiresAt time.Time `json:"expires_at"`
Origin *string `json:"origin,omitempty"`
// RequesterOrigin Downstream browser RP origin for `/login?id=...` device-code
// bridge approvals. Mobile uses this to keep the approval flow
// attached to the post-auth pairing transaction; endpoint key
// recognition still happens inside the pairing flow.
RequesterOrigin *string `json:"requester_origin,omitempty"`
}
DeviceAuthorizationClaimResponse defines model for DeviceAuthorizationClaimResponse.
type DeviceAuthorizationRequest ¶
type DeviceAuthorizationRequest struct {
// AuthRequestId Stored OIDC auth-request id when the first-party `naughtbot-login`
// device-code bridge is authenticating a browser RP request. Native
// clients that are not completing `/login?id=...` omit this field;
// the auth server ignores it for all other device-code clients.
AuthRequestId *string `json:"auth_request_id,omitempty"`
ClientId string `json:"client_id"`
// Origin Requester origin. Required for origin-bound browser clients and
// omitted by native CLI-shaped clients.
Origin *string `json:"origin,omitempty"`
// Scope Space-separated initial scopes. Browser Sign in clients request `openid mailbox:pairing:start`; CLI-shaped clients request `mailbox:pairing:start`; add `offline_access` only for long-lived refresh semantics. `mailbox:request` is rejected.
Scope string `json:"scope"`
}
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 DeviceAuthorizationStatusResponse ¶ added in v0.19.1
type DeviceAuthorizationStatusResponse struct {
ExpiresAt time.Time `json:"expires_at"`
Status DeviceAuthorizationStatusResponseStatus `json:"status"`
}
DeviceAuthorizationStatusResponse defines model for DeviceAuthorizationStatusResponse.
type DeviceAuthorizationStatusResponseStatus ¶ added in v0.19.1
type DeviceAuthorizationStatusResponseStatus string
DeviceAuthorizationStatusResponseStatus defines model for DeviceAuthorizationStatusResponse.Status.
const ( DeviceAuthorizationStatusResponseStatusApproved DeviceAuthorizationStatusResponseStatus = "approved" DeviceAuthorizationStatusResponseStatusClaimed DeviceAuthorizationStatusResponseStatus = "claimed" DeviceAuthorizationStatusResponseStatusDenied DeviceAuthorizationStatusResponseStatus = "denied" DeviceAuthorizationStatusResponseStatusExpired DeviceAuthorizationStatusResponseStatus = "expired" DeviceAuthorizationStatusResponseStatusPending DeviceAuthorizationStatusResponseStatus = "pending" DeviceAuthorizationStatusResponseStatusTokenIssued DeviceAuthorizationStatusResponseStatus = "token_issued" )
Defines values for DeviceAuthorizationStatusResponseStatus.
func (DeviceAuthorizationStatusResponseStatus) Valid ¶ added in v0.19.1
func (e DeviceAuthorizationStatusResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the DeviceAuthorizationStatusResponseStatus enum.
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 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) ContentType ¶ added in v0.20.0
func (r GetAttestedKeyConfigResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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 for authorization-code clients. Browser Sign in clients request `openid mailbox:pairing:start`; include `offline_access` only when a long-lived refresh family is needed.
Scope string `form:"scope" json:"scope"`
// DpopJkt Base64url SHA-256 JWK thumbprint of the browser DPoP key that must match the later `/oauth/token` proof.
DpopJkt string `form:"dpop_jkt" json:"dpop_jkt"`
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 ¶
func (e GetAuthorizeParamsCodeChallengeMethod) Valid() bool
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 ¶
func (e GetAuthorizeParamsResponseType) Valid() bool
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
ApplicationproblemJSON429 *TooManyRequests
}
func ParseGetAuthorizeResp ¶
func ParseGetAuthorizeResp(rsp *http.Response) (*GetAuthorizeResp, error)
ParseGetAuthorizeResp parses an HTTP response from a GetAuthorizeWithResponse call
func (GetAuthorizeResp) ContentType ¶ added in v0.20.0
func (r GetAuthorizeResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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) ContentType ¶ added in v0.20.0
func (r GetChallengeResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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 GetDeviceAuthorizationStatusParams ¶ added in v0.19.1
type GetDeviceAuthorizationStatusParams struct {
// XRequestID Optional client-supplied correlation identifier.
XRequestID *XRequestID `json:"X-Request-ID,omitempty"`
}
GetDeviceAuthorizationStatusParams defines parameters for GetDeviceAuthorizationStatus.
type GetDeviceAuthorizationStatusResp ¶ added in v0.19.1
type GetDeviceAuthorizationStatusResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DeviceAuthorizationStatusResponse
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON429 *TooManyRequests
}
func ParseGetDeviceAuthorizationStatusResp ¶ added in v0.19.1
func ParseGetDeviceAuthorizationStatusResp(rsp *http.Response) (*GetDeviceAuthorizationStatusResp, error)
ParseGetDeviceAuthorizationStatusResp parses an HTTP response from a GetDeviceAuthorizationStatusWithResponse call
func (GetDeviceAuthorizationStatusResp) ContentType ¶ added in v0.20.0
func (r GetDeviceAuthorizationStatusResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDeviceAuthorizationStatusResp) Status ¶ added in v0.19.1
func (r GetDeviceAuthorizationStatusResp) Status() string
Status returns HTTPResponse.Status
func (GetDeviceAuthorizationStatusResp) StatusCode ¶ added in v0.19.1
func (r GetDeviceAuthorizationStatusResp) 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
ApplicationproblemJSON429 *TooManyRequests
}
func ParseGetDeviceResp ¶
func ParseGetDeviceResp(rsp *http.Response) (*GetDeviceResp, error)
ParseGetDeviceResp parses an HTTP response from a GetDeviceWithResponse call
func (GetDeviceResp) ContentType ¶ added in v0.20.0
func (r GetDeviceResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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) ContentType ¶ added in v0.20.0
func (r GetJWKSResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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
ApplicationproblemJSON429 *TooManyRequests
}
func ParseGetMeResp ¶
ParseGetMeResp parses an HTTP response from a GetMeWithResponse call
func (GetMeResp) ContentType ¶ added in v0.20.0
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMeResp) StatusCode ¶
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) ContentType ¶ added in v0.20.0
func (r GetOpenidConfigurationResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOpenidConfigurationResp) Status ¶
func (r GetOpenidConfigurationResp) Status() string
Status returns HTTPResponse.Status
func (GetOpenidConfigurationResp) StatusCode ¶
func (r GetOpenidConfigurationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPairingTransactionParams ¶ added in v0.19.0
type GetPairingTransactionParams struct {
// WaitSeconds Optional bounded long-poll wait. When set, auth waits up to this
// many seconds (clamped to 25) for the pairing transaction to leave
// its current pending state before returning the latest status.
WaitSeconds *int `form:"wait_seconds,omitempty" json:"wait_seconds,omitempty"`
// 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"`
}
GetPairingTransactionParams defines parameters for GetPairingTransaction.
type GetPairingTransactionResp ¶ added in v0.19.0
type GetPairingTransactionResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PairingTransaction
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON429 *TooManyRequests
}
func ParseGetPairingTransactionResp ¶ added in v0.19.0
func ParseGetPairingTransactionResp(rsp *http.Response) (*GetPairingTransactionResp, error)
ParseGetPairingTransactionResp parses an HTTP response from a GetPairingTransactionWithResponse call
func (GetPairingTransactionResp) ContentType ¶ added in v0.20.0
func (r GetPairingTransactionResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetPairingTransactionResp) Status ¶ added in v0.19.0
func (r GetPairingTransactionResp) Status() string
Status returns HTTPResponse.Status
func (GetPairingTransactionResp) StatusCode ¶ added in v0.19.0
func (r GetPairingTransactionResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPrivilegedActionIntentParams ¶ added in v0.20.0
type GetPrivilegedActionIntentParams struct {
WaitSeconds *int `form:"wait_seconds,omitempty" json:"wait_seconds,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"`
}
GetPrivilegedActionIntentParams defines parameters for GetPrivilegedActionIntent.
type GetPrivilegedActionIntentResp ¶ added in v0.20.0
type GetPrivilegedActionIntentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PrivilegedActionIntentResponse
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON429 *TooManyRequests
ApplicationproblemJSON502 *BadGateway
}
func ParseGetPrivilegedActionIntentResp ¶ added in v0.20.0
func ParseGetPrivilegedActionIntentResp(rsp *http.Response) (*GetPrivilegedActionIntentResp, error)
ParseGetPrivilegedActionIntentResp parses an HTTP response from a GetPrivilegedActionIntentWithResponse call
func (GetPrivilegedActionIntentResp) ContentType ¶ added in v0.20.0
func (r GetPrivilegedActionIntentResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetPrivilegedActionIntentResp) Status ¶ added in v0.20.0
func (r GetPrivilegedActionIntentResp) Status() string
Status returns HTTPResponse.Status
func (GetPrivilegedActionIntentResp) StatusCode ¶ added in v0.20.0
func (r GetPrivilegedActionIntentResp) 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) ContentType ¶ added in v0.20.0
func (r GetUserinfoResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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 HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IssuePairingTokenParams ¶ added in v0.19.0
type IssuePairingTokenParams 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"`
}
IssuePairingTokenParams defines parameters for IssuePairingToken.
type IssuePairingTokenResp ¶ added in v0.19.0
type IssuePairingTokenResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TokenResponse
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON410 *Gone
ApplicationproblemJSON429 *TooManyRequests
}
func ParseIssuePairingTokenResp ¶ added in v0.19.0
func ParseIssuePairingTokenResp(rsp *http.Response) (*IssuePairingTokenResp, error)
ParseIssuePairingTokenResp parses an HTTP response from a IssuePairingTokenWithResponse call
func (IssuePairingTokenResp) ContentType ¶ added in v0.20.0
func (r IssuePairingTokenResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (IssuePairingTokenResp) Status ¶ added in v0.19.0
func (r IssuePairingTokenResp) Status() string
Status returns HTTPResponse.Status
func (IssuePairingTokenResp) StatusCode ¶ added in v0.19.0
func (r IssuePairingTokenResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 ¶
Getter for additional properties for JWK. Returns the specified element and whether it was found
func (JWK) MarshalJSON ¶
Override default JSON handling for JWK to handle AdditionalProperties
func (*JWK) UnmarshalJSON ¶
Override default JSON handling for JWK to handle AdditionalProperties
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 `/api/v1/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
func (e LinkCheckResponseAttestationType) Valid() bool
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
func (e LinkCheckResponseDeviceType) Valid() bool
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 /api/v1/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 `/api/v1/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 `/api/v1/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 /api/v1/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
ApplicationproblemJSON429 *TooManyRequests
}
func ParseListDevicesResp ¶
func ParseListDevicesResp(rsp *http.Response) (*ListDevicesResp, error)
ParseListDevicesResp parses an HTTP response from a ListDevicesWithResponse call
func (ListDevicesResp) ContentType ¶ added in v0.20.0
func (r ListDevicesResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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
ApplicationproblemJSON429 *TooManyRequests
}
func ParseListPairingsResp ¶
func ParseListPairingsResp(rsp *http.Response) (*ListPairingsResp, error)
ParseListPairingsResp parses an HTTP response from a ListPairingsWithResponse call
func (ListPairingsResp) ContentType ¶ added in v0.20.0
func (r ListPairingsResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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 ListPendingPairingsParams ¶ added in v0.19.0
type ListPendingPairingsParams 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"`
}
ListPendingPairingsParams defines parameters for ListPendingPairings.
type ListPendingPairingsResp ¶ added in v0.19.0
type ListPendingPairingsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PendingPairingList
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON429 *TooManyRequests
}
func ParseListPendingPairingsResp ¶ added in v0.19.0
func ParseListPendingPairingsResp(rsp *http.Response) (*ListPendingPairingsResp, error)
ParseListPendingPairingsResp parses an HTTP response from a ListPendingPairingsWithResponse call
func (ListPendingPairingsResp) ContentType ¶ added in v0.20.0
func (r ListPendingPairingsResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListPendingPairingsResp) Status ¶ added in v0.19.0
func (r ListPendingPairingsResp) Status() string
Status returns HTTPResponse.Status
func (ListPendingPairingsResp) StatusCode ¶ added in v0.19.0
func (r ListPendingPairingsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MeResponse ¶
MeResponse defines model for MeResponse.
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 OIDCAuthRequestCompletionResponse ¶ added in v0.19.1
type OIDCAuthRequestCompletionResponse struct {
// AuthorizationCallbackUrl URL the browser should navigate to so the OIDC provider can issue the authorization code.
AuthorizationCallbackUrl string `json:"authorization_callback_url"`
}
OIDCAuthRequestCompletionResponse defines model for OIDCAuthRequestCompletionResponse.
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 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 PairingKeyState ¶ added in v0.19.0
type PairingKeyState string
PairingKeyState E2EE key availability state for the caller's view of this pairing. A key-missing state means the pairing attempt should be restarted.
const ( MobileKeyMissing PairingKeyState = "mobile_key_missing" MobileKeyPending PairingKeyState = "mobile_key_pending" NotApplicable PairingKeyState = "not_applicable" Ready PairingKeyState = "ready" RequesterKeyMissing PairingKeyState = "requester_key_missing" )
Defines values for PairingKeyState.
func (PairingKeyState) Valid ¶ added in v0.19.0
func (e PairingKeyState) Valid() bool
Valid indicates whether the value is a known member of the PairingKeyState enum.
type PairingList ¶
type PairingList struct {
Pairings []Pairing `json:"pairings"`
}
PairingList defines model for PairingList.
type PairingStartRequest ¶ added in v0.19.0
type PairingStartRequest struct {
// ExpectedMobileKemJkt Optional RFC 7638 JWK thumbprint of the mobile KEM public key the
// requester already has on file for this user and origin. Mobile may
// suppress visible SAS only when this matches the local key it will
// submit and the requester key is already trusted for the origin.
ExpectedMobileKemJkt *string `json:"expected_mobile_kem_jkt,omitempty"`
// RequestedCapability Requested capability after pairing confirmation.
RequestedCapability PairingStartRequestRequestedCapability `json:"requested_capability"`
// RequesterKemPubkey 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.
RequesterKemPubkey JWK `json:"requester_kem_pubkey"`
}
PairingStartRequest defines model for PairingStartRequest.
type PairingStartRequestRequestedCapability ¶ added in v0.19.0
type PairingStartRequestRequestedCapability string
PairingStartRequestRequestedCapability Requested capability after pairing confirmation.
const (
PairingStartRequestRequestedCapabilityMailboxRequest PairingStartRequestRequestedCapability = "mailbox:request"
)
Defines values for PairingStartRequestRequestedCapability.
func (PairingStartRequestRequestedCapability) Valid ¶ added in v0.19.0
func (e PairingStartRequestRequestedCapability) Valid() bool
Valid indicates whether the value is a known member of the PairingStartRequestRequestedCapability enum.
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 PairingTransaction ¶ added in v0.19.0
type PairingTransaction struct {
// E2eeKeyState E2EE key availability state for the caller's view of this pairing. A
// key-missing state means the pairing attempt should be restarted.
E2eeKeyState PairingKeyState `json:"e2ee_key_state"`
// ExpectedMobileKemJkt Requester-supplied expected mobile KEM JWK thumbprint, when present.
ExpectedMobileKemJkt *string `json:"expected_mobile_kem_jkt,omitempty"`
ExpiresAt time.Time `json:"expires_at"`
Id openapi_types.UUID `json:"id"`
// MobileKemPubkey 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.
MobileKemPubkey *JWK `json:"mobile_kem_pubkey,omitempty"`
RequestedCapability PairingTransactionRequestedCapability `json:"requested_capability"`
Status PairingTransactionStatus `json:"status"`
// TranscriptHash Base64url SHA-256 transcript hash submitted by mobile.
TranscriptHash *string `json:"transcript_hash,omitempty"`
}
PairingTransaction defines model for PairingTransaction.
type PairingTransactionConfirmRequest ¶ added in v0.19.0
type PairingTransactionConfirmRequest struct {
// ApprovalSignature Base64url ECDSA P-256 signature approving the submitted pairing transcript.
ApprovalSignature string `json:"approval_signature"`
}
PairingTransactionConfirmRequest defines model for PairingTransactionConfirmRequest.
type PairingTransactionPubkeyRequest ¶ added in v0.19.0
type PairingTransactionPubkeyRequest struct {
// MobileKemPubkey 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.
MobileKemPubkey JWK `json:"mobile_kem_pubkey"`
// TranscriptHash Base64url SHA-256 of the post-auth pairing transcript over
// requester KEM, mobile KEM, pairing id, client id, and requested
// capability.
TranscriptHash string `json:"transcript_hash"`
}
PairingTransactionPubkeyRequest defines model for PairingTransactionPubkeyRequest.
type PairingTransactionRequestedCapability ¶ added in v0.19.0
type PairingTransactionRequestedCapability string
PairingTransactionRequestedCapability defines model for PairingTransaction.RequestedCapability.
const (
PairingTransactionRequestedCapabilityMailboxRequest PairingTransactionRequestedCapability = "mailbox:request"
)
Defines values for PairingTransactionRequestedCapability.
func (PairingTransactionRequestedCapability) Valid ¶ added in v0.19.0
func (e PairingTransactionRequestedCapability) Valid() bool
Valid indicates whether the value is a known member of the PairingTransactionRequestedCapability enum.
type PairingTransactionStatus ¶ added in v0.19.0
type PairingTransactionStatus string
PairingTransactionStatus defines model for PairingTransaction.Status.
const ( PairingTransactionStatusDenied PairingTransactionStatus = "denied" PairingTransactionStatusExpired PairingTransactionStatus = "expired" PairingTransactionStatusMobilePubkeyReceived PairingTransactionStatus = "mobile_pubkey_received" PairingTransactionStatusPending PairingTransactionStatus = "pending" PairingTransactionStatusSasConfirmed PairingTransactionStatus = "sas_confirmed" )
Defines values for PairingTransactionStatus.
func (PairingTransactionStatus) Valid ¶ added in v0.19.0
func (e PairingTransactionStatus) Valid() bool
Valid indicates whether the value is a known member of the PairingTransactionStatus enum.
type PendingPairing ¶ added in v0.19.0
type PendingPairing struct {
ClientId string `json:"client_id"`
// ClientName Trusted OAuth client display name from auth's client registry.
ClientName string `json:"client_name"`
// E2eeKeyState E2EE key availability state for the caller's view of this pairing. A
// key-missing state means the pairing attempt should be restarted.
E2eeKeyState PairingKeyState `json:"e2ee_key_state"`
// ExpectedMobileKemJkt Requester-supplied expected mobile KEM JWK thumbprint, when present.
ExpectedMobileKemJkt *string `json:"expected_mobile_kem_jkt,omitempty"`
ExpiresAt time.Time `json:"expires_at"`
Id openapi_types.UUID `json:"id"`
// Origin Trusted requester origin from auth's client or relying-party registry, when available.
Origin *string `json:"origin,omitempty"`
RequestedCapability PendingPairingRequestedCapability `json:"requested_capability"`
// RequesterKemPubkey 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.
RequesterKemPubkey *JWK `json:"requester_kem_pubkey,omitempty"`
Status PendingPairingStatus `json:"status"`
}
PendingPairing defines model for PendingPairing.
type PendingPairingList ¶ added in v0.19.0
type PendingPairingList struct {
Pairings []PendingPairing `json:"pairings"`
}
PendingPairingList defines model for PendingPairingList.
type PendingPairingRequestedCapability ¶ added in v0.19.0
type PendingPairingRequestedCapability string
PendingPairingRequestedCapability defines model for PendingPairing.RequestedCapability.
const (
MailboxRequest PendingPairingRequestedCapability = "mailbox:request"
)
Defines values for PendingPairingRequestedCapability.
func (PendingPairingRequestedCapability) Valid ¶ added in v0.19.0
func (e PendingPairingRequestedCapability) Valid() bool
Valid indicates whether the value is a known member of the PendingPairingRequestedCapability enum.
type PendingPairingStatus ¶ added in v0.19.0
type PendingPairingStatus string
PendingPairingStatus defines model for PendingPairing.Status.
const ( PendingPairingStatusDenied PendingPairingStatus = "denied" PendingPairingStatusExpired PendingPairingStatus = "expired" PendingPairingStatusMobilePubkeyReceived PendingPairingStatus = "mobile_pubkey_received" PendingPairingStatusPending PendingPairingStatus = "pending" PendingPairingStatusSasConfirmed PendingPairingStatus = "sas_confirmed" )
Defines values for PendingPairingStatus.
func (PendingPairingStatus) Valid ¶ added in v0.19.0
func (e PendingPairingStatus) Valid() bool
Valid indicates whether the value is a known member of the PendingPairingStatus 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) ContentType ¶ added in v0.20.0
func (r PostDeviceAuthorizationResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostDeviceAuthorizationResp) Status ¶
func (r PostDeviceAuthorizationResp) Status() string
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
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON410 *Gone
ApplicationproblemJSON429 *TooManyRequests
}
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) ContentType ¶ added in v0.20.0
func (r PostLinkCheckResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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 /api/v1/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
ApplicationproblemJSON429 *TooManyRequests
}
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) ContentType ¶ added in v0.20.0
func (r PostLinkFinalizeResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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
ApplicationproblemJSON429 *TooManyRequests
}
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) ContentType ¶ added in v0.20.0
func (r PostLinkRejectResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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) ContentType ¶ added in v0.20.0
func (r PostLinkStartResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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 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) ContentType ¶ added in v0.20.0
func (r PostRegisterResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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) ContentType ¶ added in v0.20.0
func (r PostReloginResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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
ApplicationproblemJSON429 *TooManyRequests
}
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) ContentType ¶ added in v0.20.0
func (r PostRelyingPartyResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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
ApplicationproblemJSON429 *TooManyRequests
}
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) ContentType ¶ added in v0.20.0
func (r PostRelyingPartyRotateSecretResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostRelyingPartyRotateSecretResp) Status ¶ added in v0.11.0
func (r PostRelyingPartyRotateSecretResp) Status() string
Status returns HTTPResponse.Status
func (PostRelyingPartyRotateSecretResp) StatusCode ¶ added in v0.11.0
func (r PostRelyingPartyRotateSecretResp) StatusCode() int
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) ContentType ¶ added in v0.20.0
func (r PostTokenResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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 PrivilegedActionIntentCreateRequest ¶ added in v0.20.0
type PrivilegedActionIntentCreateRequest struct {
// contains filtered or unexported fields
}
PrivilegedActionIntentCreateRequest defines model for PrivilegedActionIntentCreateRequest.
func (PrivilegedActionIntentCreateRequest) AsPrivilegedDeviceRevokeOtherIntentRequest ¶ added in v0.20.0
func (t PrivilegedActionIntentCreateRequest) AsPrivilegedDeviceRevokeOtherIntentRequest() (PrivilegedDeviceRevokeOtherIntentRequest, error)
AsPrivilegedDeviceRevokeOtherIntentRequest returns the union data inside the PrivilegedActionIntentCreateRequest as a PrivilegedDeviceRevokeOtherIntentRequest
func (PrivilegedActionIntentCreateRequest) AsPrivilegedRelyingPartyRegisterIntentRequest ¶ added in v0.20.0
func (t PrivilegedActionIntentCreateRequest) AsPrivilegedRelyingPartyRegisterIntentRequest() (PrivilegedRelyingPartyRegisterIntentRequest, error)
AsPrivilegedRelyingPartyRegisterIntentRequest returns the union data inside the PrivilegedActionIntentCreateRequest as a PrivilegedRelyingPartyRegisterIntentRequest
func (PrivilegedActionIntentCreateRequest) AsPrivilegedRelyingPartyRotateSecretIntentRequest ¶ added in v0.20.0
func (t PrivilegedActionIntentCreateRequest) AsPrivilegedRelyingPartyRotateSecretIntentRequest() (PrivilegedRelyingPartyRotateSecretIntentRequest, error)
AsPrivilegedRelyingPartyRotateSecretIntentRequest returns the union data inside the PrivilegedActionIntentCreateRequest as a PrivilegedRelyingPartyRotateSecretIntentRequest
func (*PrivilegedActionIntentCreateRequest) FromPrivilegedDeviceRevokeOtherIntentRequest ¶ added in v0.20.0
func (t *PrivilegedActionIntentCreateRequest) FromPrivilegedDeviceRevokeOtherIntentRequest(v PrivilegedDeviceRevokeOtherIntentRequest) error
FromPrivilegedDeviceRevokeOtherIntentRequest overwrites any union data inside the PrivilegedActionIntentCreateRequest as the provided PrivilegedDeviceRevokeOtherIntentRequest
func (*PrivilegedActionIntentCreateRequest) FromPrivilegedRelyingPartyRegisterIntentRequest ¶ added in v0.20.0
func (t *PrivilegedActionIntentCreateRequest) FromPrivilegedRelyingPartyRegisterIntentRequest(v PrivilegedRelyingPartyRegisterIntentRequest) error
FromPrivilegedRelyingPartyRegisterIntentRequest overwrites any union data inside the PrivilegedActionIntentCreateRequest as the provided PrivilegedRelyingPartyRegisterIntentRequest
func (*PrivilegedActionIntentCreateRequest) FromPrivilegedRelyingPartyRotateSecretIntentRequest ¶ added in v0.20.0
func (t *PrivilegedActionIntentCreateRequest) FromPrivilegedRelyingPartyRotateSecretIntentRequest(v PrivilegedRelyingPartyRotateSecretIntentRequest) error
FromPrivilegedRelyingPartyRotateSecretIntentRequest overwrites any union data inside the PrivilegedActionIntentCreateRequest as the provided PrivilegedRelyingPartyRotateSecretIntentRequest
func (PrivilegedActionIntentCreateRequest) MarshalJSON ¶ added in v0.20.0
func (t PrivilegedActionIntentCreateRequest) MarshalJSON() ([]byte, error)
func (*PrivilegedActionIntentCreateRequest) MergePrivilegedDeviceRevokeOtherIntentRequest ¶ added in v0.20.0
func (t *PrivilegedActionIntentCreateRequest) MergePrivilegedDeviceRevokeOtherIntentRequest(v PrivilegedDeviceRevokeOtherIntentRequest) error
MergePrivilegedDeviceRevokeOtherIntentRequest performs a merge with any union data inside the PrivilegedActionIntentCreateRequest, using the provided PrivilegedDeviceRevokeOtherIntentRequest
func (*PrivilegedActionIntentCreateRequest) MergePrivilegedRelyingPartyRegisterIntentRequest ¶ added in v0.20.0
func (t *PrivilegedActionIntentCreateRequest) MergePrivilegedRelyingPartyRegisterIntentRequest(v PrivilegedRelyingPartyRegisterIntentRequest) error
MergePrivilegedRelyingPartyRegisterIntentRequest performs a merge with any union data inside the PrivilegedActionIntentCreateRequest, using the provided PrivilegedRelyingPartyRegisterIntentRequest
func (*PrivilegedActionIntentCreateRequest) MergePrivilegedRelyingPartyRotateSecretIntentRequest ¶ added in v0.20.0
func (t *PrivilegedActionIntentCreateRequest) MergePrivilegedRelyingPartyRotateSecretIntentRequest(v PrivilegedRelyingPartyRotateSecretIntentRequest) error
MergePrivilegedRelyingPartyRotateSecretIntentRequest performs a merge with any union data inside the PrivilegedActionIntentCreateRequest, using the provided PrivilegedRelyingPartyRotateSecretIntentRequest
func (*PrivilegedActionIntentCreateRequest) UnmarshalJSON ¶ added in v0.20.0
func (t *PrivilegedActionIntentCreateRequest) UnmarshalJSON(b []byte) error
type PrivilegedActionIntentResponse ¶ added in v0.20.0
type PrivilegedActionIntentResponse struct {
ActionType PrivilegedActionType `json:"action_type"`
CanonicalActionHash string `json:"canonical_action_hash"`
CompletedAt *time.Time `json:"completed_at,omitempty"`
CreatedAt time.Time `json:"created_at"`
ExpiresAt time.Time `json:"expires_at"`
Id string `json:"id"`
// Result Final action result. One-time secrets appear only on the poll response that performs the approved mutation.
Result *map[string]interface{} `json:"result,omitempty"`
Status PrivilegedActionIntentStatus `json:"status"`
}
PrivilegedActionIntentResponse defines model for PrivilegedActionIntentResponse.
type PrivilegedActionIntentStatus ¶ added in v0.20.0
type PrivilegedActionIntentStatus string
PrivilegedActionIntentStatus defines model for PrivilegedActionIntentStatus.
const ( Approved PrivilegedActionIntentStatus = "approved" Denied PrivilegedActionIntentStatus = "denied" Expired PrivilegedActionIntentStatus = "expired" Failed PrivilegedActionIntentStatus = "failed" Pending PrivilegedActionIntentStatus = "pending" )
Defines values for PrivilegedActionIntentStatus.
func (PrivilegedActionIntentStatus) Valid ¶ added in v0.20.0
func (e PrivilegedActionIntentStatus) Valid() bool
Valid indicates whether the value is a known member of the PrivilegedActionIntentStatus enum.
type PrivilegedActionType ¶ added in v0.20.0
type PrivilegedActionType string
PrivilegedActionType defines model for PrivilegedActionType.
const ( PrivilegedActionTypeDeviceRevokeOther PrivilegedActionType = "device.revoke_other" PrivilegedActionTypeRelyingPartyRegister PrivilegedActionType = "relying_party.register" PrivilegedActionTypeRelyingPartyRotateSecret PrivilegedActionType = "relying_party.rotate_secret" )
Defines values for PrivilegedActionType.
func (PrivilegedActionType) Valid ¶ added in v0.20.0
func (e PrivilegedActionType) Valid() bool
Valid indicates whether the value is a known member of the PrivilegedActionType enum.
type PrivilegedDeviceRevokeOtherIntentRequest ¶ added in v0.20.0
type PrivilegedDeviceRevokeOtherIntentRequest struct {
ActionType PrivilegedDeviceRevokeOtherIntentRequestActionType `json:"action_type"`
DeviceId openapi_types.UUID `json:"device_id"`
}
PrivilegedDeviceRevokeOtherIntentRequest defines model for PrivilegedDeviceRevokeOtherIntentRequest.
type PrivilegedDeviceRevokeOtherIntentRequestActionType ¶ added in v0.20.0
type PrivilegedDeviceRevokeOtherIntentRequestActionType string
PrivilegedDeviceRevokeOtherIntentRequestActionType defines model for PrivilegedDeviceRevokeOtherIntentRequest.ActionType.
const (
PrivilegedDeviceRevokeOtherIntentRequestActionTypeDeviceRevokeOther PrivilegedDeviceRevokeOtherIntentRequestActionType = "device.revoke_other"
)
Defines values for PrivilegedDeviceRevokeOtherIntentRequestActionType.
func (PrivilegedDeviceRevokeOtherIntentRequestActionType) Valid ¶ added in v0.20.0
func (e PrivilegedDeviceRevokeOtherIntentRequestActionType) Valid() bool
Valid indicates whether the value is a known member of the PrivilegedDeviceRevokeOtherIntentRequestActionType enum.
type PrivilegedRelyingPartyRegisterIntentRequest ¶ added in v0.20.0
type PrivilegedRelyingPartyRegisterIntentRequest struct {
ActionType PrivilegedRelyingPartyRegisterIntentRequestActionType `json:"action_type"`
DisplayName *string `json:"display_name,omitempty"`
Origin string `json:"origin"`
RedirectUris []string `json:"redirect_uris"`
}
PrivilegedRelyingPartyRegisterIntentRequest defines model for PrivilegedRelyingPartyRegisterIntentRequest.
type PrivilegedRelyingPartyRegisterIntentRequestActionType ¶ added in v0.20.0
type PrivilegedRelyingPartyRegisterIntentRequestActionType string
PrivilegedRelyingPartyRegisterIntentRequestActionType defines model for PrivilegedRelyingPartyRegisterIntentRequest.ActionType.
const (
RelyingPartyRegister PrivilegedRelyingPartyRegisterIntentRequestActionType = "relying_party.register"
)
Defines values for PrivilegedRelyingPartyRegisterIntentRequestActionType.
func (PrivilegedRelyingPartyRegisterIntentRequestActionType) Valid ¶ added in v0.20.0
func (e PrivilegedRelyingPartyRegisterIntentRequestActionType) Valid() bool
Valid indicates whether the value is a known member of the PrivilegedRelyingPartyRegisterIntentRequestActionType enum.
type PrivilegedRelyingPartyRotateSecretIntentRequest ¶ added in v0.20.0
type PrivilegedRelyingPartyRotateSecretIntentRequest struct {
ActionType PrivilegedRelyingPartyRotateSecretIntentRequestActionType `json:"action_type"`
RelyingPartyId string `json:"relying_party_id"`
}
PrivilegedRelyingPartyRotateSecretIntentRequest defines model for PrivilegedRelyingPartyRotateSecretIntentRequest.
type PrivilegedRelyingPartyRotateSecretIntentRequestActionType ¶ added in v0.20.0
type PrivilegedRelyingPartyRotateSecretIntentRequestActionType string
PrivilegedRelyingPartyRotateSecretIntentRequestActionType defines model for PrivilegedRelyingPartyRotateSecretIntentRequest.ActionType.
const (
RelyingPartyRotateSecret PrivilegedRelyingPartyRotateSecretIntentRequestActionType = "relying_party.rotate_secret"
)
Defines values for PrivilegedRelyingPartyRotateSecretIntentRequestActionType.
func (PrivilegedRelyingPartyRotateSecretIntentRequestActionType) Valid ¶ added in v0.20.0
func (e PrivilegedRelyingPartyRotateSecretIntentRequestActionType) Valid() bool
Valid indicates whether the value is a known member of the PrivilegedRelyingPartyRotateSecretIntentRequestActionType enum.
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 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
ApplicationproblemJSON429 *TooManyRequests
}
func ParseRefreshAttestedKeyResp ¶
func ParseRefreshAttestedKeyResp(rsp *http.Response) (*RefreshAttestedKeyResp, error)
ParseRefreshAttestedKeyResp parses an HTTP response from a RefreshAttestedKeyWithResponse call
func (RefreshAttestedKeyResp) ContentType ¶ added in v0.20.0
func (r RefreshAttestedKeyResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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 hint; server stores the verified attestation package.
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"`
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 ¶
func (e RegisterRequestAndroidAttestationType) Valid() bool
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 hint; server stores the verified attestation package.
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 ¶
func (e RegisterRequestBaseAttestationType) Valid() bool
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 hint; server stores the verified attestation package.
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 ¶
func (e RegisterRequestIOSAttestationType) Valid() bool
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"`
FirstPartyPairing *PendingPairing `json:"first_party_pairing,omitempty"`
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 ( ClientSecretBasic RelyingPartyConfidentialClientTokenEndpointAuthMethod = "client_secret_basic" ClientSecretPost RelyingPartyConfidentialClientTokenEndpointAuthMethod = "client_secret_post" )
Defines values for RelyingPartyConfidentialClientTokenEndpointAuthMethod.
func (RelyingPartyConfidentialClientTokenEndpointAuthMethod) Valid ¶ added in v0.11.0
func (e RelyingPartyConfidentialClientTokenEndpointAuthMethod) Valid() bool
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"`
RedirectUris []string `json:"redirect_uris"`
RequirePkce bool `json:"require_pkce"`
// ResponseTypes Public browser Sign in clients use authorization-code + PKCE and return `["code"]`. Device-code-only public clients leave this empty.
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.
const (
None RelyingPartyPublicClientTokenEndpointAuthMethod = "none"
)
Defines values for RelyingPartyPublicClientTokenEndpointAuthMethod.
func (RelyingPartyPublicClientTokenEndpointAuthMethod) Valid ¶ added in v0.11.0
func (e RelyingPartyPublicClientTokenEndpointAuthMethod) Valid() bool
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`. Production origins must use HTTPS; HTTP is accepted only for localhost and loopback development origins.
Origin string `json:"origin"`
// RedirectUris Exact browser callback URIs for the public authorization-code client. Every URI must use the registered origin; HTTP is accepted only for localhost and loopback development origins.
RedirectUris []string `json:"redirect_uris"`
}
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"`
}
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 RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
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
ApplicationproblemJSON429 *TooManyRequests
}
func ParseRevokePairingResp ¶
func ParseRevokePairingResp(rsp *http.Response) (*RevokePairingResp, error)
ParseRevokePairingResp parses an HTTP response from a RevokePairingWithResponse call
func (RevokePairingResp) ContentType ¶ added in v0.20.0
func (r RevokePairingResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
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
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 ServiceUnavailable ¶ added in v0.20.0
type ServiceUnavailable = ProblemDetails
ServiceUnavailable RFC 9457 problem details object.
type StartPairingJSONRequestBody ¶ added in v0.19.0
type StartPairingJSONRequestBody = PairingStartRequest
StartPairingJSONRequestBody defines body for StartPairing for application/json ContentType.
type StartPairingParams ¶ added in v0.19.0
type StartPairingParams 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"`
}
StartPairingParams defines parameters for StartPairing.
type StartPairingResp ¶ added in v0.19.0
type StartPairingResp struct {
Body []byte
HTTPResponse *http.Response
JSON201 *PairingTransaction
ApplicationproblemJSON400 *BadRequest
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON429 *TooManyRequests
}
func ParseStartPairingResp ¶ added in v0.19.0
func ParseStartPairingResp(rsp *http.Response) (*StartPairingResp, error)
ParseStartPairingResp parses an HTTP response from a StartPairingWithResponse call
func (StartPairingResp) ContentType ¶ added in v0.20.0
func (r StartPairingResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartPairingResp) Status ¶ added in v0.19.0
func (r StartPairingResp) Status() string
Status returns HTTPResponse.Status
func (StartPairingResp) StatusCode ¶ added in v0.19.0
func (r StartPairingResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SubmitPairingPubkeyJSONRequestBody ¶ added in v0.19.0
type SubmitPairingPubkeyJSONRequestBody = PairingTransactionPubkeyRequest
SubmitPairingPubkeyJSONRequestBody defines body for SubmitPairingPubkey for application/json ContentType.
type SubmitPairingPubkeyParams ¶ added in v0.19.0
type SubmitPairingPubkeyParams 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"`
}
SubmitPairingPubkeyParams defines parameters for SubmitPairingPubkey.
type SubmitPairingPubkeyResp ¶ added in v0.19.0
type SubmitPairingPubkeyResp struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSON400 *BadRequest
ApplicationproblemJSON401 *Unauthorized
ApplicationproblemJSON403 *Forbidden
ApplicationproblemJSON404 *NotFound
ApplicationproblemJSON409 *Conflict
ApplicationproblemJSON410 *Gone
ApplicationproblemJSON429 *TooManyRequests
}
func ParseSubmitPairingPubkeyResp ¶ added in v0.19.0
func ParseSubmitPairingPubkeyResp(rsp *http.Response) (*SubmitPairingPubkeyResp, error)
ParseSubmitPairingPubkeyResp parses an HTTP response from a SubmitPairingPubkeyWithResponse call
func (SubmitPairingPubkeyResp) ContentType ¶ added in v0.20.0
func (r SubmitPairingPubkeyResp) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SubmitPairingPubkeyResp) Status ¶ added in v0.19.0
func (r SubmitPairingPubkeyResp) Status() string
Status returns HTTPResponse.Status
func (SubmitPairingPubkeyResp) StatusCode ¶ added in v0.19.0
func (r SubmitPairingPubkeyResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 Issued when the exchange includes openid. For browser Sign in, its sub is pairwise for the relying party that owns the public client and its audience is the requester client, not backend resource APIs.
IdToken *string `json:"id_token,omitempty"`
// RefreshToken Issued for DPoP requester sessions. Without `offline_access`, the refresh token is short-lived; with `offline_access`, it is a long-lived family. The refresh token itself is bound to the same `jkt` for the lifetime of the token family. Pairing-token upgrades bind it to the confirmed pairing and scope it exactly to `mailbox:request`.
RefreshToken *string `json:"refresh_token,omitempty"`
Scope *string `json:"scope,omitempty"`
// TokenType `DPoP` for proof-bound clients; `Bearer` for non-proof-bound confidential clients.
TokenType TokenResponseTokenType `json:"token_type"`
}
TokenResponse OAuth token response. DPoP-bound public browser, device, and machine flows return `token_type=DPoP`; non-proof-bound confidential clients may return `Bearer`. Browser Sign in initial tokens carry only `openid mailbox:pairing:start`; `mailbox:request` is intentionally absent before the later SAS/token upgrade. Pairing token upgrades return a DPoP-bound access token and a pairing-bound refresh token scoped exactly to `mailbox:request`.
type TokenResponseTokenType ¶
type TokenResponseTokenType string
TokenResponseTokenType `DPoP` for proof-bound clients; `Bearer` for non-proof-bound confidential 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