model

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenaiRefreshedToken

type OpenaiRefreshedToken struct {
	AccessToken string `json:"access_token"`
	IDToken     string `json:"id_token"`
	Scope       string `json:"scope"`
	ExpiresIn   int    `json:"expires_in"`
	TokenType   string `json:"token_type"`
}

type OpenaiToken

type OpenaiToken struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	IDToken      string `json:"id_token"`
	Scope        string `json:"scope"`
	ExpiresIn    int    `json:"expires_in"`
	TokenType    string `json:"token_type"`
}

type OpenaiTokenRequest

type OpenaiTokenRequest struct {
	RedirectURI  string `json:"redirect_uri"`
	GrantType    string `json:"grant_type"`
	ClientID     string `json:"client_id"`
	Code         string `json:"code"`
	CodeVerifier string `json:"code_verifier"`
}

func NewOpenaiTokenReq

func NewOpenaiTokenReq() *OpenaiTokenRequest

type OpenaiTokenRereshReq

type OpenaiTokenRereshReq struct {
	RedirectURI  string `json:"redirect_uri"`
	GrantType    string `json:"grant_type"`
	ClientID     string `json:"client_id"`
	RefreshToken string `json:"refresh_token"`
}

func NewOpenaiRefreshTokenReq

func NewOpenaiRefreshTokenReq() *OpenaiTokenRereshReq

Jump to

Keyboard shortcuts

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