Versions in this module Expand all Collapse all v1 v1.0.1 Nov 1, 2026 v1.0.0 Oct 31, 2026 Changes in this version + const BasicAuthGenerateScopes + const BasicAuthRefreshScopes + func NewAuthorizeClientRequest(server string, params *AuthorizeClientParams) (*http.Request, error) + func NewGenerateTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewGenerateTokenRequestWithFormdataBody(server string, body GenerateTokenFormdataRequestBody) (*http.Request, error) + func NewRefreshTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewRefreshTokenRequestWithFormdataBody(server string, body RefreshTokenFormdataRequestBody) (*http.Request, error) + type AuthorizeClientParams struct + ClientId string + CodeChallenge *string + RedirectUri string + ResponseType string + Scope *string + State *string + type AuthorizeClientResponse struct + Body []byte + HTTPResponse *http.Response + JSON400 *TokenErrorResponse + JSON401 *TokenErrorResponse + JSON403 *TokenErrorResponse + JSON429 *TokenErrorResponse + func ParseAuthorizeClientResponse(rsp *http.Response) (*AuthorizeClientResponse, error) + func (r AuthorizeClientResponse) Status() string + func (r AuthorizeClientResponse) StatusCode() int + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) AuthorizeClient(ctx context.Context, params *AuthorizeClientParams, ...) (*http.Response, error) + func (c *Client) GenerateTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) GenerateTokenWithFormdataBody(ctx context.Context, body GenerateTokenFormdataRequestBody, ...) (*http.Response, error) + func (c *Client) RefreshTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) RefreshTokenWithFormdataBody(ctx context.Context, body RefreshTokenFormdataRequestBody, ...) (*http.Response, error) + type ClientInterface interface + AuthorizeClient func(ctx context.Context, params *AuthorizeClientParams, ...) (*http.Response, error) + GenerateTokenWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + GenerateTokenWithFormdataBody func(ctx context.Context, body GenerateTokenFormdataRequestBody, ...) (*http.Response, error) + RefreshTokenWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + RefreshTokenWithFormdataBody func(ctx context.Context, body RefreshTokenFormdataRequestBody, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) AuthorizeClientWithResponse(ctx context.Context, params *AuthorizeClientParams, ...) (*AuthorizeClientResponse, error) + func (c *ClientWithResponses) GenerateTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GenerateTokenResponse, error) + func (c *ClientWithResponses) GenerateTokenWithFormdataBodyWithResponse(ctx context.Context, body GenerateTokenFormdataRequestBody, ...) (*GenerateTokenResponse, error) + func (c *ClientWithResponses) RefreshTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RefreshTokenResponse, error) + func (c *ClientWithResponses) RefreshTokenWithFormdataBodyWithResponse(ctx context.Context, body RefreshTokenFormdataRequestBody, ...) (*RefreshTokenResponse, error) + type ClientWithResponsesInterface interface + AuthorizeClientWithResponse func(ctx context.Context, params *AuthorizeClientParams, ...) (*AuthorizeClientResponse, error) + GenerateTokenWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*GenerateTokenResponse, error) + GenerateTokenWithFormdataBodyWithResponse func(ctx context.Context, body GenerateTokenFormdataRequestBody, ...) (*GenerateTokenResponse, error) + RefreshTokenWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*RefreshTokenResponse, error) + RefreshTokenWithFormdataBodyWithResponse func(ctx context.Context, body RefreshTokenFormdataRequestBody, ...) (*RefreshTokenResponse, error) + type ErrorResponseWrapper struct + Errors *[]Errors + type Errors struct + Code *string + Message *string + type GenerateTokenFormdataBody struct + ClientId *string + Code string + CodeVerifier *string + GrantType string + RedirectUri string + type GenerateTokenFormdataRequestBody GenerateTokenFormdataBody + type GenerateTokenResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *GenerateTokenSuccessResponse + JSON400 *TokenErrorResponse + JSON401 *TokenErrorResponse + JSON403 *TokenErrorResponse + JSON429 *TokenErrorResponse + func ParseGenerateTokenResponse(rsp *http.Response) (*GenerateTokenResponse, error) + func (r GenerateTokenResponse) Status() string + func (r GenerateTokenResponse) StatusCode() int + type GenerateTokenSuccessResponse struct + AccessToken *string + ClientId *string + ExpiresIn *string + IssuedAt *string + RefreshCount *string + RefreshToken *string + RefreshTokenExpiresIn *string + RefreshTokenIssuedAt *string + RefreshTokenStatus *string + Scope *string + Status *string + TokenType *string + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type RefreshTokenFormdataBody struct + GrantType string + RefreshToken string + type RefreshTokenFormdataRequestBody RefreshTokenFormdataBody + type RefreshTokenResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *RefreshTokenSuccessResponse + JSON400 *TokenErrorResponse + JSON401 *TokenErrorResponse + JSON403 *TokenErrorResponse + JSON429 *TokenErrorResponse + func ParseRefreshTokenResponse(rsp *http.Response) (*RefreshTokenResponse, error) + func (r RefreshTokenResponse) Status() string + func (r RefreshTokenResponse) StatusCode() int + type RefreshTokenSuccessResponse struct + AccessToken *string + ClientId *string + ExpiresIn *string + IssuedAt *string + RefreshCount *string + RefreshToken *string + RefreshTokenExpiresIn *string + RefreshTokenIssuedAt *string + RefreshTokenStatus *string + Scope *string + Status *string + TokenType *string + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type TokenErrorResponse struct + Response *ErrorResponseWrapper