api

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const (
	ACCESS_DENIED_ACCOUNT_NOT_LINKED      = ACCESSDENIEDACCOUNTNOTLINKED
	ACCESS_DENIED_BANNED                  = ACCESSDENIEDBANNED
	ACCESS_DENIED_EXPIRED                 = ACCESSDENIEDEXPIRED
	ACCESS_DENIED_INVALID_WORLD           = ACCESSDENIEDINVALIDWORLD
	ACCESS_DENIED_REQUIREMENT_NOT_MET     = ACCESSDENIEDREQUIREMENTNOTMET
	ACCESS_DENIED_UNKNOWN                 = ACCESSDENIEDUNKNOWN
	ACCESS_GRANTED_HOME_WORLD             = ACCESSGRANTEDHOMEWORLD
	ACCESS_GRANTED_HOME_WORLD_TEMPORARY   = ACCESSGRANTEDHOMEWORLDTEMPORARY
	ACCESS_GRANTED_LINKED_WORLD           = ACCESSGRANTEDLINKEDWORLD
	ACCESS_GRANTED_LINKED_WORLD_TEMPORARY = ACCESSGRANTEDLINKEDWORLDTEMPORARY
)
View Source
const (
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

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

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func NewGetGuildUsersRequest

func NewGetGuildUsersRequest(server string, guildIdent GuildIdent) (*http.Request, error)

NewGetGuildUsersRequest generates requests for GetGuildUsers

func NewGetPlatformUserAPIKeyNameRequest

func NewGetPlatformUserAPIKeyNameRequest(server string, platformId PlatformId, platformUserId PlatformUserId, params *GetPlatformUserAPIKeyNameParams) (*http.Request, error)

NewGetPlatformUserAPIKeyNameRequest generates requests for GetPlatformUserAPIKeyName

func NewGetPlatformUserRequest

func NewGetPlatformUserRequest(server string, platformId PlatformId, platformUserId PlatformUserId, params *GetPlatformUserParams) (*http.Request, error)

NewGetPlatformUserRequest generates requests for GetPlatformUser

func NewGetPlatformUserUpdatesRequest

func NewGetPlatformUserUpdatesRequest(server string, platformId PlatformId, params *GetPlatformUserUpdatesParams) (*http.Request, error)

NewGetPlatformUserUpdatesRequest generates requests for GetPlatformUserUpdates

func NewGetServicePropertiesRequest

func NewGetServicePropertiesRequest(server string, serviceUuid ServiceUuid) (*http.Request, error)

NewGetServicePropertiesRequest generates requests for GetServiceProperties

func NewGetServiceSubjectPropertiesRequest

func NewGetServiceSubjectPropertiesRequest(server string, serviceUuid ServiceUuid, subject Subject) (*http.Request, error)

NewGetServiceSubjectPropertiesRequest generates requests for GetServiceSubjectProperties

func NewGetServiceSubjectPropertyRequest

func NewGetServiceSubjectPropertyRequest(server string, serviceUuid ServiceUuid, subject Subject, propertyName PropertyName) (*http.Request, error)

NewGetServiceSubjectPropertyRequest generates requests for GetServiceSubjectProperty

func NewGetV1ConfigurationRequest

func NewGetV1ConfigurationRequest(server string, params *GetV1ConfigurationParams) (*http.Request, error)

NewGetV1ConfigurationRequest generates requests for GetV1Configuration

func NewGetVerificationPlatformUserStatusRequest

func NewGetVerificationPlatformUserStatusRequest(server string, platformId PlatformId, platformUserId PlatformUserId, params *GetVerificationPlatformUserStatusParams) (*http.Request, error)

NewGetVerificationPlatformUserStatusRequest generates requests for GetVerificationPlatformUserStatus

func NewGetVerificationPlatformUserUpdatesRequest

func NewGetVerificationPlatformUserUpdatesRequest(server string, platformId PlatformId, params *GetVerificationPlatformUserUpdatesParams) (*http.Request, error)

NewGetVerificationPlatformUserUpdatesRequest generates requests for GetVerificationPlatformUserUpdates

func NewPostChannelPlatformStatisticsRequest

func NewPostChannelPlatformStatisticsRequest(server string, platformId PlatformId, channel string, params *PostChannelPlatformStatisticsParams, body PostChannelPlatformStatisticsJSONRequestBody) (*http.Request, error)

NewPostChannelPlatformStatisticsRequest calls the generic PostChannelPlatformStatistics builder with application/json body

func NewPostChannelPlatformStatisticsRequestWithBody

func NewPostChannelPlatformStatisticsRequestWithBody(server string, platformId PlatformId, channel string, params *PostChannelPlatformStatisticsParams, contentType string, body io.Reader) (*http.Request, error)

NewPostChannelPlatformStatisticsRequestWithBody generates requests for PostChannelPlatformStatistics with any type of body

func NewPostPlatformUserRefreshRequest

func NewPostPlatformUserRefreshRequest(server string, platformId PlatformId, platformUserId PlatformUserId) (*http.Request, error)

NewPostPlatformUserRefreshRequest generates requests for PostPlatformUserRefresh

func NewPostVerificationPlatformUserRefreshRequest

func NewPostVerificationPlatformUserRefreshRequest(server string, platformId PlatformId, platformUserId PlatformUserId, params *PostVerificationPlatformUserRefreshParams) (*http.Request, error)

NewPostVerificationPlatformUserRefreshRequest generates requests for PostVerificationPlatformUserRefresh

func NewPutPlatformUserAPIKeyRequest

func NewPutPlatformUserAPIKeyRequest(server string, platformId PlatformId, platformUserId PlatformUserId, params *PutPlatformUserAPIKeyParams, body PutPlatformUserAPIKeyJSONRequestBody) (*http.Request, error)

NewPutPlatformUserAPIKeyRequest calls the generic PutPlatformUserAPIKey builder with application/json body

func NewPutPlatformUserAPIKeyRequestWithBody

func NewPutPlatformUserAPIKeyRequestWithBody(server string, platformId PlatformId, platformUserId PlatformUserId, params *PutPlatformUserAPIKeyParams, contentType string, body io.Reader) (*http.Request, error)

NewPutPlatformUserAPIKeyRequestWithBody generates requests for PutPlatformUserAPIKey with any type of body

func NewPutPlatformUserBanRequest

func NewPutPlatformUserBanRequest(server string, platformId PlatformId, platformUserId PlatformUserId, body PutPlatformUserBanJSONRequestBody) (*http.Request, error)

NewPutPlatformUserBanRequest calls the generic PutPlatformUserBan builder with application/json body

func NewPutPlatformUserBanRequestWithBody

func NewPutPlatformUserBanRequestWithBody(server string, platformId PlatformId, platformUserId PlatformUserId, contentType string, body io.Reader) (*http.Request, error)

NewPutPlatformUserBanRequestWithBody generates requests for PutPlatformUserBan with any type of body

func NewPutServiceSubjectPropertiesRequest

func NewPutServiceSubjectPropertiesRequest(server string, serviceUuid ServiceUuid, subject Subject) (*http.Request, error)

NewPutServiceSubjectPropertiesRequest generates requests for PutServiceSubjectProperties

func NewPutServiceSubjectPropertyRequest

func NewPutServiceSubjectPropertyRequest(server string, serviceUuid ServiceUuid, subject Subject, propertyName PropertyName) (*http.Request, error)

NewPutServiceSubjectPropertyRequest generates requests for PutServiceSubjectProperty

func NewPutVerificationPlatformUserTemporaryRequest

func NewPutVerificationPlatformUserTemporaryRequest(server string, platformId PlatformId, platformUserId PlatformUserId, params *PutVerificationPlatformUserTemporaryParams, body PutVerificationPlatformUserTemporaryJSONRequestBody) (*http.Request, error)

NewPutVerificationPlatformUserTemporaryRequest calls the generic PutVerificationPlatformUserTemporary builder with application/json body

func NewPutVerificationPlatformUserTemporaryRequestWithBody

func NewPutVerificationPlatformUserTemporaryRequestWithBody(server string, platformId PlatformId, platformUserId PlatformUserId, params *PutVerificationPlatformUserTemporaryParams, contentType string, body io.Reader) (*http.Request, error)

NewPutVerificationPlatformUserTemporaryRequestWithBody generates requests for PutVerificationPlatformUserTemporary with any type of body

func PathToRawSpec

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

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

Types

type APIKeyData

type APIKeyData struct {
	// Apikey The api to set for the user
	Apikey string `json:"apikey"`

	// Primary Set if the user should be the primary user of that particular platform. There can only be one per platform per account. Setting a new primary user will override the old one
	Primary bool `json:"primary"`
}

APIKeyData defines model for APIKeyData.

type APIKeyName

type APIKeyName struct {
	// Name The apikey name the user has to name their apikey if apikey name is enforced
	Name string `json:"name"`
}

APIKeyName defines model for APIKeyName.

type AccessType

type AccessType string

AccessType defines model for AccessType.

const (
	HOMEWORLD   AccessType = "HOME_WORLD"
	LINKEDWORLD AccessType = "LINKED_WORLD"
)

Defines values for AccessType.

type Account

type Account struct {
	Access       *[]string `json:"access,omitempty"`
	Age          int       `json:"age"`
	Commander    bool      `json:"commander"`
	Created      time.Time `json:"created"`
	DailyAp      *int      `json:"daily_ap,omitempty"`
	DbCreated    time.Time `bun:",nullzero,notnull,default:current_timestamp,scanonly" json:"db_created,omitempty"`
	DbUpdated    time.Time `bun:",nullzero,notnull,default:current_timestamp" json:"db_updated,omitempty"`
	Expired      *bool     `bun:"-" json:"expired,omitempty"`
	FractalLevel *int      `json:"fractal_level,omitempty"`
	GuildLeader  *[]string `json:"guild_leader,omitempty"`
	Guilds       *[]string `json:"guilds,omitempty"`
	Id           string    `json:"id"`
	MonthlyAp    *int      `json:"monthly_ap,omitempty"`
	Name         string    `json:"name"`
	UserID       int64     `json:"user_id"`
	World        int       `json:"world"`
	WorldStatus  *Status   `bun:"-" json:"world_status,omitempty"`
	WvwRank      *int      `bun:"wv_w_rank" json:"wvw_rank,omitempty"`
}

Account defines model for Account.

type Ban

type Ban struct {
	Reason string    `json:"reason"`
	Until  time.Time `json:"until"`
	UserID int64     `json:"user_id"`
}

Ban defines model for Ban.

func ActiveBan

func ActiveBan(bans []Ban) *Ban

type ChannelMetadata

type ChannelMetadata struct {
	Name  string                `json:"name"`
	Users []ChannelUserMetadata `json:"users"`
}

ChannelMetadata defines model for ChannelMetadata.

type ChannelUserMetadata

type ChannelUserMetadata struct {
	Deafened  bool   `json:"deafened"`
	Id        string `json:"id"`
	Muted     bool   `json:"muted"`
	Name      string `json:"name"`
	Streaming bool   `json:"streaming"`
}

ChannelUserMetadata defines model for ChannelUserMetadata.

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

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

func (*Client) GetPlatformUser

func (c *Client) GetPlatformUser(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetPlatformUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPlatformUserAPIKeyName

func (c *Client) GetPlatformUserAPIKeyName(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetPlatformUserAPIKeyNameParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPlatformUserUpdates

func (c *Client) GetPlatformUserUpdates(ctx context.Context, platformId PlatformId, params *GetPlatformUserUpdatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetServiceProperties

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

func (*Client) GetServiceSubjectProperties

func (c *Client) GetServiceSubjectProperties(ctx context.Context, serviceUuid ServiceUuid, subject Subject, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetServiceSubjectProperty

func (c *Client) GetServiceSubjectProperty(ctx context.Context, serviceUuid ServiceUuid, subject Subject, propertyName PropertyName, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetV1Configuration

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

func (*Client) GetVerificationPlatformUserStatus

func (c *Client) GetVerificationPlatformUserStatus(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetVerificationPlatformUserStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVerificationPlatformUserUpdates

func (c *Client) GetVerificationPlatformUserUpdates(ctx context.Context, platformId PlatformId, params *GetVerificationPlatformUserUpdatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostChannelPlatformStatistics

func (c *Client) PostChannelPlatformStatistics(ctx context.Context, platformId PlatformId, channel string, params *PostChannelPlatformStatisticsParams, body PostChannelPlatformStatisticsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostChannelPlatformStatisticsWithBody

func (c *Client) PostChannelPlatformStatisticsWithBody(ctx context.Context, platformId PlatformId, channel string, params *PostChannelPlatformStatisticsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPlatformUserRefresh

func (c *Client) PostPlatformUserRefresh(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostVerificationPlatformUserRefresh

func (c *Client) PostVerificationPlatformUserRefresh(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PostVerificationPlatformUserRefreshParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutPlatformUserAPIKey

func (c *Client) PutPlatformUserAPIKey(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutPlatformUserAPIKeyParams, body PutPlatformUserAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutPlatformUserAPIKeyWithBody

func (c *Client) PutPlatformUserAPIKeyWithBody(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutPlatformUserAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutPlatformUserBan

func (c *Client) PutPlatformUserBan(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, body PutPlatformUserBanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutPlatformUserBanWithBody

func (c *Client) PutPlatformUserBanWithBody(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutServiceSubjectProperties

func (c *Client) PutServiceSubjectProperties(ctx context.Context, serviceUuid ServiceUuid, subject Subject, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutServiceSubjectProperty

func (c *Client) PutServiceSubjectProperty(ctx context.Context, serviceUuid ServiceUuid, subject Subject, propertyName PropertyName, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutVerificationPlatformUserTemporary

func (c *Client) PutVerificationPlatformUserTemporary(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutVerificationPlatformUserTemporaryParams, body PutVerificationPlatformUserTemporaryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutVerificationPlatformUserTemporaryWithBody

func (c *Client) PutVerificationPlatformUserTemporaryWithBody(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutVerificationPlatformUserTemporaryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// PostChannelPlatformStatisticsWithBody request with any body
	PostChannelPlatformStatisticsWithBody(ctx context.Context, platformId PlatformId, channel string, params *PostChannelPlatformStatisticsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostChannelPlatformStatistics(ctx context.Context, platformId PlatformId, channel string, params *PostChannelPlatformStatisticsParams, body PostChannelPlatformStatisticsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// GetGuildUsers request
	GetGuildUsers(ctx context.Context, guildIdent GuildIdent, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPlatformUserUpdates request
	GetPlatformUserUpdates(ctx context.Context, platformId PlatformId, params *GetPlatformUserUpdatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPlatformUser request
	GetPlatformUser(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetPlatformUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutPlatformUserAPIKeyWithBody request with any body
	PutPlatformUserAPIKeyWithBody(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutPlatformUserAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutPlatformUserAPIKey(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutPlatformUserAPIKeyParams, body PutPlatformUserAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPlatformUserAPIKeyName request
	GetPlatformUserAPIKeyName(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetPlatformUserAPIKeyNameParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutPlatformUserBanWithBody request with any body
	PutPlatformUserBanWithBody(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutPlatformUserBan(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, body PutPlatformUserBanJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostPlatformUserRefresh request
	PostPlatformUserRefresh(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceProperties request
	GetServiceProperties(ctx context.Context, serviceUuid ServiceUuid, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceSubjectProperties request
	GetServiceSubjectProperties(ctx context.Context, serviceUuid ServiceUuid, subject Subject, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutServiceSubjectProperties request
	PutServiceSubjectProperties(ctx context.Context, serviceUuid ServiceUuid, subject Subject, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetServiceSubjectProperty request
	GetServiceSubjectProperty(ctx context.Context, serviceUuid ServiceUuid, subject Subject, propertyName PropertyName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutServiceSubjectProperty request
	PutServiceSubjectProperty(ctx context.Context, serviceUuid ServiceUuid, subject Subject, propertyName PropertyName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVerificationPlatformUserUpdates request
	GetVerificationPlatformUserUpdates(ctx context.Context, platformId PlatformId, params *GetVerificationPlatformUserUpdatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVerificationPlatformUserStatus request
	GetVerificationPlatformUserStatus(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetVerificationPlatformUserStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostVerificationPlatformUserRefresh request
	PostVerificationPlatformUserRefresh(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PostVerificationPlatformUserRefreshParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutVerificationPlatformUserTemporaryWithBody request with any body
	PutVerificationPlatformUserTemporaryWithBody(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutVerificationPlatformUserTemporaryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutVerificationPlatformUserTemporary(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutVerificationPlatformUserTemporaryParams, body PutVerificationPlatformUserTemporaryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

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

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

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

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

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

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

func (*ClientWithResponses) GetGuildUsersWithResponse

func (c *ClientWithResponses) GetGuildUsersWithResponse(ctx context.Context, guildIdent GuildIdent, reqEditors ...RequestEditorFn) (*GetGuildUsersResponse, error)

GetGuildUsersWithResponse request returning *GetGuildUsersResponse

func (*ClientWithResponses) GetPlatformUserAPIKeyNameWithResponse

func (c *ClientWithResponses) GetPlatformUserAPIKeyNameWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetPlatformUserAPIKeyNameParams, reqEditors ...RequestEditorFn) (*GetPlatformUserAPIKeyNameResponse, error)

GetPlatformUserAPIKeyNameWithResponse request returning *GetPlatformUserAPIKeyNameResponse

func (*ClientWithResponses) GetPlatformUserUpdatesWithResponse

func (c *ClientWithResponses) GetPlatformUserUpdatesWithResponse(ctx context.Context, platformId PlatformId, params *GetPlatformUserUpdatesParams, reqEditors ...RequestEditorFn) (*GetPlatformUserUpdatesResponse, error)

GetPlatformUserUpdatesWithResponse request returning *GetPlatformUserUpdatesResponse

func (*ClientWithResponses) GetPlatformUserWithResponse

func (c *ClientWithResponses) GetPlatformUserWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetPlatformUserParams, reqEditors ...RequestEditorFn) (*GetPlatformUserResponse, error)

GetPlatformUserWithResponse request returning *GetPlatformUserResponse

func (*ClientWithResponses) GetServicePropertiesWithResponse

func (c *ClientWithResponses) GetServicePropertiesWithResponse(ctx context.Context, serviceUuid ServiceUuid, reqEditors ...RequestEditorFn) (*GetServicePropertiesResponse, error)

GetServicePropertiesWithResponse request returning *GetServicePropertiesResponse

func (*ClientWithResponses) GetServiceSubjectPropertiesWithResponse

func (c *ClientWithResponses) GetServiceSubjectPropertiesWithResponse(ctx context.Context, serviceUuid ServiceUuid, subject Subject, reqEditors ...RequestEditorFn) (*GetServiceSubjectPropertiesResponse, error)

GetServiceSubjectPropertiesWithResponse request returning *GetServiceSubjectPropertiesResponse

func (*ClientWithResponses) GetServiceSubjectPropertyWithResponse

func (c *ClientWithResponses) GetServiceSubjectPropertyWithResponse(ctx context.Context, serviceUuid ServiceUuid, subject Subject, propertyName PropertyName, reqEditors ...RequestEditorFn) (*GetServiceSubjectPropertyResponse, error)

GetServiceSubjectPropertyWithResponse request returning *GetServiceSubjectPropertyResponse

func (*ClientWithResponses) GetV1ConfigurationWithResponse

func (c *ClientWithResponses) GetV1ConfigurationWithResponse(ctx context.Context, params *GetV1ConfigurationParams, reqEditors ...RequestEditorFn) (*GetV1ConfigurationResponse, error)

GetV1ConfigurationWithResponse request returning *GetV1ConfigurationResponse

func (*ClientWithResponses) GetVerificationPlatformUserStatusWithResponse

func (c *ClientWithResponses) GetVerificationPlatformUserStatusWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetVerificationPlatformUserStatusParams, reqEditors ...RequestEditorFn) (*GetVerificationPlatformUserStatusResponse, error)

GetVerificationPlatformUserStatusWithResponse request returning *GetVerificationPlatformUserStatusResponse

func (*ClientWithResponses) GetVerificationPlatformUserUpdatesWithResponse

func (c *ClientWithResponses) GetVerificationPlatformUserUpdatesWithResponse(ctx context.Context, platformId PlatformId, params *GetVerificationPlatformUserUpdatesParams, reqEditors ...RequestEditorFn) (*GetVerificationPlatformUserUpdatesResponse, error)

GetVerificationPlatformUserUpdatesWithResponse request returning *GetVerificationPlatformUserUpdatesResponse

func (*ClientWithResponses) PostChannelPlatformStatisticsWithBodyWithResponse

func (c *ClientWithResponses) PostChannelPlatformStatisticsWithBodyWithResponse(ctx context.Context, platformId PlatformId, channel string, params *PostChannelPlatformStatisticsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostChannelPlatformStatisticsResponse, error)

PostChannelPlatformStatisticsWithBodyWithResponse request with arbitrary body returning *PostChannelPlatformStatisticsResponse

func (*ClientWithResponses) PostChannelPlatformStatisticsWithResponse

func (*ClientWithResponses) PostPlatformUserRefreshWithResponse

func (c *ClientWithResponses) PostPlatformUserRefreshWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, reqEditors ...RequestEditorFn) (*PostPlatformUserRefreshResponse, error)

PostPlatformUserRefreshWithResponse request returning *PostPlatformUserRefreshResponse

func (*ClientWithResponses) PostVerificationPlatformUserRefreshWithResponse

func (c *ClientWithResponses) PostVerificationPlatformUserRefreshWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PostVerificationPlatformUserRefreshParams, reqEditors ...RequestEditorFn) (*PostVerificationPlatformUserRefreshResponse, error)

PostVerificationPlatformUserRefreshWithResponse request returning *PostVerificationPlatformUserRefreshResponse

func (*ClientWithResponses) PutPlatformUserAPIKeyWithBodyWithResponse

func (c *ClientWithResponses) PutPlatformUserAPIKeyWithBodyWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutPlatformUserAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutPlatformUserAPIKeyResponse, error)

PutPlatformUserAPIKeyWithBodyWithResponse request with arbitrary body returning *PutPlatformUserAPIKeyResponse

func (*ClientWithResponses) PutPlatformUserAPIKeyWithResponse

func (c *ClientWithResponses) PutPlatformUserAPIKeyWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutPlatformUserAPIKeyParams, body PutPlatformUserAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutPlatformUserAPIKeyResponse, error)

func (*ClientWithResponses) PutPlatformUserBanWithBodyWithResponse

func (c *ClientWithResponses) PutPlatformUserBanWithBodyWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutPlatformUserBanResponse, error)

PutPlatformUserBanWithBodyWithResponse request with arbitrary body returning *PutPlatformUserBanResponse

func (*ClientWithResponses) PutPlatformUserBanWithResponse

func (c *ClientWithResponses) PutPlatformUserBanWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, body PutPlatformUserBanJSONRequestBody, reqEditors ...RequestEditorFn) (*PutPlatformUserBanResponse, error)

func (*ClientWithResponses) PutServiceSubjectPropertiesWithResponse

func (c *ClientWithResponses) PutServiceSubjectPropertiesWithResponse(ctx context.Context, serviceUuid ServiceUuid, subject Subject, reqEditors ...RequestEditorFn) (*PutServiceSubjectPropertiesResponse, error)

PutServiceSubjectPropertiesWithResponse request returning *PutServiceSubjectPropertiesResponse

func (*ClientWithResponses) PutServiceSubjectPropertyWithResponse

func (c *ClientWithResponses) PutServiceSubjectPropertyWithResponse(ctx context.Context, serviceUuid ServiceUuid, subject Subject, propertyName PropertyName, reqEditors ...RequestEditorFn) (*PutServiceSubjectPropertyResponse, error)

PutServiceSubjectPropertyWithResponse request returning *PutServiceSubjectPropertyResponse

func (*ClientWithResponses) PutVerificationPlatformUserTemporaryWithBodyWithResponse

func (c *ClientWithResponses) PutVerificationPlatformUserTemporaryWithBodyWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutVerificationPlatformUserTemporaryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutVerificationPlatformUserTemporaryResponse, error)

PutVerificationPlatformUserTemporaryWithBodyWithResponse request with arbitrary body returning *PutVerificationPlatformUserTemporaryResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// PostChannelPlatformStatisticsWithBodyWithResponse request with any body
	PostChannelPlatformStatisticsWithBodyWithResponse(ctx context.Context, platformId PlatformId, channel string, params *PostChannelPlatformStatisticsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostChannelPlatformStatisticsResponse, error)

	PostChannelPlatformStatisticsWithResponse(ctx context.Context, platformId PlatformId, channel string, params *PostChannelPlatformStatisticsParams, body PostChannelPlatformStatisticsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostChannelPlatformStatisticsResponse, error)

	// GetV1ConfigurationWithResponse request
	GetV1ConfigurationWithResponse(ctx context.Context, params *GetV1ConfigurationParams, reqEditors ...RequestEditorFn) (*GetV1ConfigurationResponse, error)

	// GetGuildUsersWithResponse request
	GetGuildUsersWithResponse(ctx context.Context, guildIdent GuildIdent, reqEditors ...RequestEditorFn) (*GetGuildUsersResponse, error)

	// GetPlatformUserUpdatesWithResponse request
	GetPlatformUserUpdatesWithResponse(ctx context.Context, platformId PlatformId, params *GetPlatformUserUpdatesParams, reqEditors ...RequestEditorFn) (*GetPlatformUserUpdatesResponse, error)

	// GetPlatformUserWithResponse request
	GetPlatformUserWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetPlatformUserParams, reqEditors ...RequestEditorFn) (*GetPlatformUserResponse, error)

	// PutPlatformUserAPIKeyWithBodyWithResponse request with any body
	PutPlatformUserAPIKeyWithBodyWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutPlatformUserAPIKeyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutPlatformUserAPIKeyResponse, error)

	PutPlatformUserAPIKeyWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutPlatformUserAPIKeyParams, body PutPlatformUserAPIKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*PutPlatformUserAPIKeyResponse, error)

	// GetPlatformUserAPIKeyNameWithResponse request
	GetPlatformUserAPIKeyNameWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetPlatformUserAPIKeyNameParams, reqEditors ...RequestEditorFn) (*GetPlatformUserAPIKeyNameResponse, error)

	// PutPlatformUserBanWithBodyWithResponse request with any body
	PutPlatformUserBanWithBodyWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutPlatformUserBanResponse, error)

	PutPlatformUserBanWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, body PutPlatformUserBanJSONRequestBody, reqEditors ...RequestEditorFn) (*PutPlatformUserBanResponse, error)

	// PostPlatformUserRefreshWithResponse request
	PostPlatformUserRefreshWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, reqEditors ...RequestEditorFn) (*PostPlatformUserRefreshResponse, error)

	// GetServicePropertiesWithResponse request
	GetServicePropertiesWithResponse(ctx context.Context, serviceUuid ServiceUuid, reqEditors ...RequestEditorFn) (*GetServicePropertiesResponse, error)

	// GetServiceSubjectPropertiesWithResponse request
	GetServiceSubjectPropertiesWithResponse(ctx context.Context, serviceUuid ServiceUuid, subject Subject, reqEditors ...RequestEditorFn) (*GetServiceSubjectPropertiesResponse, error)

	// PutServiceSubjectPropertiesWithResponse request
	PutServiceSubjectPropertiesWithResponse(ctx context.Context, serviceUuid ServiceUuid, subject Subject, reqEditors ...RequestEditorFn) (*PutServiceSubjectPropertiesResponse, error)

	// GetServiceSubjectPropertyWithResponse request
	GetServiceSubjectPropertyWithResponse(ctx context.Context, serviceUuid ServiceUuid, subject Subject, propertyName PropertyName, reqEditors ...RequestEditorFn) (*GetServiceSubjectPropertyResponse, error)

	// PutServiceSubjectPropertyWithResponse request
	PutServiceSubjectPropertyWithResponse(ctx context.Context, serviceUuid ServiceUuid, subject Subject, propertyName PropertyName, reqEditors ...RequestEditorFn) (*PutServiceSubjectPropertyResponse, error)

	// GetVerificationPlatformUserUpdatesWithResponse request
	GetVerificationPlatformUserUpdatesWithResponse(ctx context.Context, platformId PlatformId, params *GetVerificationPlatformUserUpdatesParams, reqEditors ...RequestEditorFn) (*GetVerificationPlatformUserUpdatesResponse, error)

	// GetVerificationPlatformUserStatusWithResponse request
	GetVerificationPlatformUserStatusWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *GetVerificationPlatformUserStatusParams, reqEditors ...RequestEditorFn) (*GetVerificationPlatformUserStatusResponse, error)

	// PostVerificationPlatformUserRefreshWithResponse request
	PostVerificationPlatformUserRefreshWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PostVerificationPlatformUserRefreshParams, reqEditors ...RequestEditorFn) (*PostVerificationPlatformUserRefreshResponse, error)

	// PutVerificationPlatformUserTemporaryWithBodyWithResponse request with any body
	PutVerificationPlatformUserTemporaryWithBodyWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutVerificationPlatformUserTemporaryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutVerificationPlatformUserTemporaryResponse, error)

	PutVerificationPlatformUserTemporaryWithResponse(ctx context.Context, platformId PlatformId, platformUserId PlatformUserId, params *PutVerificationPlatformUserTemporaryParams, body PutVerificationPlatformUserTemporaryJSONRequestBody, reqEditors ...RequestEditorFn) (*PutVerificationPlatformUserTemporaryResponse, error)
}

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

type Configuration

type Configuration struct {
	ExpirationTime                int `json:"expiration_time"`
	TemporaryAccessExpirationTime int `json:"temporary_access_expiration_time"`

	// WorldLinks List of worlds links
	WorldLinks map[string]WorldLinks `json:"world_links"`
}

Configuration defines model for Configuration.

type EphemeralAssociation

type EphemeralAssociation struct {
	AccessType *AccessType `bun:"-" json:"access_type,omitempty"`
	Until      *time.Time  `json:"until,omitempty"`
	UserID     int64       `json:"user_id,omitempty"`
	World      *int        `json:"world,omitempty"`
}

EphemeralAssociation defines model for EphemeralAssociation.

type Error

type Error struct {
	Error            string `json:"error"`
	SafeDisplayError string `json:"safe-display-error"`
}

Error defines model for Error.

type GetGuildUsersResponse

type GetGuildUsersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
	JSON500      *TraitErrorResp
}

func ParseGetGuildUsersResponse

func ParseGetGuildUsersResponse(rsp *http.Response) (*GetGuildUsersResponse, error)

ParseGetGuildUsersResponse parses an HTTP response from a GetGuildUsersWithResponse call

func (GetGuildUsersResponse) Status

func (r GetGuildUsersResponse) Status() string

Status returns HTTPResponse.Status

func (GetGuildUsersResponse) StatusCode

func (r GetGuildUsersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPlatformUserAPIKeyNameParams

type GetPlatformUserAPIKeyNameParams struct {
	World *TraitWorldViewOptional `form:"world,omitempty" json:"world,omitempty"`
}

GetPlatformUserAPIKeyNameParams defines parameters for GetPlatformUserAPIKeyName.

type GetPlatformUserAPIKeyNameResponse

type GetPlatformUserAPIKeyNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *APIKeyName
	JSON500      *TraitErrorResp
}

func ParseGetPlatformUserAPIKeyNameResponse

func ParseGetPlatformUserAPIKeyNameResponse(rsp *http.Response) (*GetPlatformUserAPIKeyNameResponse, error)

ParseGetPlatformUserAPIKeyNameResponse parses an HTTP response from a GetPlatformUserAPIKeyNameWithResponse call

func (GetPlatformUserAPIKeyNameResponse) Status

Status returns HTTPResponse.Status

func (GetPlatformUserAPIKeyNameResponse) StatusCode

func (r GetPlatformUserAPIKeyNameResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPlatformUserParams

type GetPlatformUserParams struct {
	// DisplayName Display name of the user of the platform user. Will be stored as the latest used display name by that user
	DisplayName *TraitPlatformUserDisplayName `form:"display_name,omitempty" json:"display_name,omitempty"`
}

GetPlatformUserParams defines parameters for GetPlatformUser.

type GetPlatformUserResponse

type GetPlatformUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
	JSON500      *TraitErrorResp
}

func ParseGetPlatformUserResponse

func ParseGetPlatformUserResponse(rsp *http.Response) (*GetPlatformUserResponse, error)

ParseGetPlatformUserResponse parses an HTTP response from a GetPlatformUserWithResponse call

func (GetPlatformUserResponse) Status

func (r GetPlatformUserResponse) Status() string

Status returns HTTPResponse.Status

func (GetPlatformUserResponse) StatusCode

func (r GetPlatformUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPlatformUserUpdatesParams

type GetPlatformUserUpdatesParams struct {
	World TraitWorldView `form:"world" json:"world"`
}

GetPlatformUserUpdatesParams defines parameters for GetPlatformUserUpdates.

type GetPlatformUserUpdatesResponse

type GetPlatformUserUpdatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
	JSON500      *TraitErrorResp
}

func ParseGetPlatformUserUpdatesResponse

func ParseGetPlatformUserUpdatesResponse(rsp *http.Response) (*GetPlatformUserUpdatesResponse, error)

ParseGetPlatformUserUpdatesResponse parses an HTTP response from a GetPlatformUserUpdatesWithResponse call

func (GetPlatformUserUpdatesResponse) Status

Status returns HTTPResponse.Status

func (GetPlatformUserUpdatesResponse) StatusCode

func (r GetPlatformUserUpdatesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServicePropertiesResponse

type GetServicePropertiesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Property
	JSON400      *Error
	JSON500      *TraitErrorResp
}

func ParseGetServicePropertiesResponse

func ParseGetServicePropertiesResponse(rsp *http.Response) (*GetServicePropertiesResponse, error)

ParseGetServicePropertiesResponse parses an HTTP response from a GetServicePropertiesWithResponse call

func (GetServicePropertiesResponse) Status

Status returns HTTPResponse.Status

func (GetServicePropertiesResponse) StatusCode

func (r GetServicePropertiesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetServiceSubjectPropertiesResponse

type GetServiceSubjectPropertiesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Property
	JSON500      *TraitErrorResp
}

func ParseGetServiceSubjectPropertiesResponse

func ParseGetServiceSubjectPropertiesResponse(rsp *http.Response) (*GetServiceSubjectPropertiesResponse, error)

ParseGetServiceSubjectPropertiesResponse parses an HTTP response from a GetServiceSubjectPropertiesWithResponse call

func (GetServiceSubjectPropertiesResponse) Status

Status returns HTTPResponse.Status

func (GetServiceSubjectPropertiesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetServiceSubjectPropertyResponse

type GetServiceSubjectPropertyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Property
	JSON500      *TraitErrorResp
}

func ParseGetServiceSubjectPropertyResponse

func ParseGetServiceSubjectPropertyResponse(rsp *http.Response) (*GetServiceSubjectPropertyResponse, error)

ParseGetServiceSubjectPropertyResponse parses an HTTP response from a GetServiceSubjectPropertyWithResponse call

func (GetServiceSubjectPropertyResponse) Status

Status returns HTTPResponse.Status

func (GetServiceSubjectPropertyResponse) StatusCode

func (r GetServiceSubjectPropertyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV1ConfigurationParams

type GetV1ConfigurationParams struct {
	World *TraitWorldViewOptional `form:"world,omitempty" json:"world,omitempty"`
}

GetV1ConfigurationParams defines parameters for GetV1Configuration.

type GetV1ConfigurationResponse

type GetV1ConfigurationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Configuration
}

func ParseGetV1ConfigurationResponse

func ParseGetV1ConfigurationResponse(rsp *http.Response) (*GetV1ConfigurationResponse, error)

ParseGetV1ConfigurationResponse parses an HTTP response from a GetV1ConfigurationWithResponse call

func (GetV1ConfigurationResponse) Status

Status returns HTTPResponse.Status

func (GetV1ConfigurationResponse) StatusCode

func (r GetV1ConfigurationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVerificationPlatformUserStatusParams

type GetVerificationPlatformUserStatusParams struct {
	World TraitWorldView `form:"world" json:"world"`

	// DisplayName Display name of the user of the platform user. Will be stored as the latest used display name by that user
	DisplayName *TraitPlatformUserDisplayName `form:"display_name,omitempty" json:"display_name,omitempty"`
}

GetVerificationPlatformUserStatusParams defines parameters for GetVerificationPlatformUserStatus.

type GetVerificationPlatformUserStatusResponse

type GetVerificationPlatformUserStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VerificationStatus
	JSON500      *TraitErrorResp
}

func ParseGetVerificationPlatformUserStatusResponse

func ParseGetVerificationPlatformUserStatusResponse(rsp *http.Response) (*GetVerificationPlatformUserStatusResponse, error)

ParseGetVerificationPlatformUserStatusResponse parses an HTTP response from a GetVerificationPlatformUserStatusWithResponse call

func (GetVerificationPlatformUserStatusResponse) Status

Status returns HTTPResponse.Status

func (GetVerificationPlatformUserStatusResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetVerificationPlatformUserUpdatesParams

type GetVerificationPlatformUserUpdatesParams struct {
	World TraitWorldView `form:"world" json:"world"`
}

GetVerificationPlatformUserUpdatesParams defines parameters for GetVerificationPlatformUserUpdates.

type GetVerificationPlatformUserUpdatesResponse

type GetVerificationPlatformUserUpdatesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VerificationStatus
	JSON500      *TraitErrorResp
}

func ParseGetVerificationPlatformUserUpdatesResponse

func ParseGetVerificationPlatformUserUpdatesResponse(rsp *http.Response) (*GetVerificationPlatformUserUpdatesResponse, error)

ParseGetVerificationPlatformUserUpdatesResponse parses an HTTP response from a GetVerificationPlatformUserUpdatesWithResponse call

func (GetVerificationPlatformUserUpdatesResponse) Status

Status returns HTTPResponse.Status

func (GetVerificationPlatformUserUpdatesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GuildIdent

type GuildIdent = string

GuildIdent defines model for guild_ident.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type PlatformId

type PlatformId = int

PlatformId defines model for platform_id.

type PlatformLink struct {
	DisplayName *string `json:"display_name,omitempty"`

	// PlatformId ID of the platform the user id belongs to
	PlatformID     int    `bun:",pk" json:"platform_id"`
	PlatformUserID string `bun:",pk" json:"platform_user_id"`
	Primary        bool   `json:"primary"`
	UserID         int64  `json:"user_id"`
}

PlatformLink defines model for PlatformLink.

type PlatformUserId

type PlatformUserId = string

PlatformUserId defines model for platform_user_id.

type PostChannelPlatformStatisticsJSONRequestBody

type PostChannelPlatformStatisticsJSONRequestBody = ChannelMetadata

PostChannelPlatformStatisticsJSONRequestBody defines body for PostChannelPlatformStatistics for application/json ContentType.

type PostChannelPlatformStatisticsParams

type PostChannelPlatformStatisticsParams struct {
	World TraitWorldView `form:"world" json:"world"`
}

PostChannelPlatformStatisticsParams defines parameters for PostChannelPlatformStatistics.

type PostChannelPlatformStatisticsResponse

type PostChannelPlatformStatisticsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON500      *TraitErrorResp
}

func ParsePostChannelPlatformStatisticsResponse

func ParsePostChannelPlatformStatisticsResponse(rsp *http.Response) (*PostChannelPlatformStatisticsResponse, error)

ParsePostChannelPlatformStatisticsResponse parses an HTTP response from a PostChannelPlatformStatisticsWithResponse call

func (PostChannelPlatformStatisticsResponse) Status

Status returns HTTPResponse.Status

func (PostChannelPlatformStatisticsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostPlatformUserRefreshResponse

type PostPlatformUserRefreshResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
	JSON500      *TraitErrorResp
}

func ParsePostPlatformUserRefreshResponse

func ParsePostPlatformUserRefreshResponse(rsp *http.Response) (*PostPlatformUserRefreshResponse, error)

ParsePostPlatformUserRefreshResponse parses an HTTP response from a PostPlatformUserRefreshWithResponse call

func (PostPlatformUserRefreshResponse) Status

Status returns HTTPResponse.Status

func (PostPlatformUserRefreshResponse) StatusCode

func (r PostPlatformUserRefreshResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostVerificationPlatformUserRefreshParams

type PostVerificationPlatformUserRefreshParams struct {
	World TraitWorldView `form:"world" json:"world"`
}

PostVerificationPlatformUserRefreshParams defines parameters for PostVerificationPlatformUserRefresh.

type PostVerificationPlatformUserRefreshResponse

type PostVerificationPlatformUserRefreshResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]VerificationStatus
	JSON500      *TraitErrorResp
}

func ParsePostVerificationPlatformUserRefreshResponse

func ParsePostVerificationPlatformUserRefreshResponse(rsp *http.Response) (*PostVerificationPlatformUserRefreshResponse, error)

ParsePostVerificationPlatformUserRefreshResponse parses an HTTP response from a PostVerificationPlatformUserRefreshWithResponse call

func (PostVerificationPlatformUserRefreshResponse) Status

Status returns HTTPResponse.Status

func (PostVerificationPlatformUserRefreshResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Property

type Property struct {
	Name    string  `json:"name"`
	Subject *string `json:"subject,omitempty"`
	Value   string  `json:"value"`
}

Property defines model for Property.

type PropertyName

type PropertyName = string

PropertyName defines model for property_name.

type PutPlatformUserAPIKeyJSONRequestBody

type PutPlatformUserAPIKeyJSONRequestBody = APIKeyData

PutPlatformUserAPIKeyJSONRequestBody defines body for PutPlatformUserAPIKey for application/json ContentType.

type PutPlatformUserAPIKeyParams

type PutPlatformUserAPIKeyParams struct {
	// SkipRequirements Skip the variuse apikey requirements that might be in place
	SkipRequirements *bool                   `form:"skip-requirements,omitempty" json:"skip-requirements,omitempty"`
	World            *TraitWorldViewOptional `form:"world,omitempty" json:"world,omitempty"`
}

PutPlatformUserAPIKeyParams defines parameters for PutPlatformUserAPIKey.

type PutPlatformUserAPIKeyResponse

type PutPlatformUserAPIKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *TraitErrorResp
}

func ParsePutPlatformUserAPIKeyResponse

func ParsePutPlatformUserAPIKeyResponse(rsp *http.Response) (*PutPlatformUserAPIKeyResponse, error)

ParsePutPlatformUserAPIKeyResponse parses an HTTP response from a PutPlatformUserAPIKeyWithResponse call

func (PutPlatformUserAPIKeyResponse) Status

Status returns HTTPResponse.Status

func (PutPlatformUserAPIKeyResponse) StatusCode

func (r PutPlatformUserAPIKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutPlatformUserBanJSONRequestBody

type PutPlatformUserBanJSONRequestBody = Ban

PutPlatformUserBanJSONRequestBody defines body for PutPlatformUserBan for application/json ContentType.

type PutPlatformUserBanResponse

type PutPlatformUserBanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON500      *TraitErrorResp
}

func ParsePutPlatformUserBanResponse

func ParsePutPlatformUserBanResponse(rsp *http.Response) (*PutPlatformUserBanResponse, error)

ParsePutPlatformUserBanResponse parses an HTTP response from a PutPlatformUserBanWithResponse call

func (PutPlatformUserBanResponse) Status

Status returns HTTPResponse.Status

func (PutPlatformUserBanResponse) StatusCode

func (r PutPlatformUserBanResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutServiceSubjectPropertiesResponse

type PutServiceSubjectPropertiesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Property
	JSON400      *Error
	JSON500      *TraitErrorResp
}

func ParsePutServiceSubjectPropertiesResponse

func ParsePutServiceSubjectPropertiesResponse(rsp *http.Response) (*PutServiceSubjectPropertiesResponse, error)

ParsePutServiceSubjectPropertiesResponse parses an HTTP response from a PutServiceSubjectPropertiesWithResponse call

func (PutServiceSubjectPropertiesResponse) Status

Status returns HTTPResponse.Status

func (PutServiceSubjectPropertiesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PutServiceSubjectPropertyResponse

type PutServiceSubjectPropertyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *Error
	JSON500      *TraitErrorResp
}

func ParsePutServiceSubjectPropertyResponse

func ParsePutServiceSubjectPropertyResponse(rsp *http.Response) (*PutServiceSubjectPropertyResponse, error)

ParsePutServiceSubjectPropertyResponse parses an HTTP response from a PutServiceSubjectPropertyWithResponse call

func (PutServiceSubjectPropertyResponse) Status

Status returns HTTPResponse.Status

func (PutServiceSubjectPropertyResponse) StatusCode

func (r PutServiceSubjectPropertyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutVerificationPlatformUserTemporaryJSONRequestBody

type PutVerificationPlatformUserTemporaryJSONRequestBody = EphemeralAssociation

PutVerificationPlatformUserTemporaryJSONRequestBody defines body for PutVerificationPlatformUserTemporary for application/json ContentType.

type PutVerificationPlatformUserTemporaryParams

type PutVerificationPlatformUserTemporaryParams struct {
	World TraitWorldView `form:"world" json:"world"`
}

PutVerificationPlatformUserTemporaryParams defines parameters for PutVerificationPlatformUserTemporary.

type PutVerificationPlatformUserTemporaryResponse

type PutVerificationPlatformUserTemporaryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *int
	JSON500      *TraitErrorResp
}

func ParsePutVerificationPlatformUserTemporaryResponse

func ParsePutVerificationPlatformUserTemporaryResponse(rsp *http.Response) (*PutVerificationPlatformUserTemporaryResponse, error)

ParsePutVerificationPlatformUserTemporaryResponse parses an HTTP response from a PutVerificationPlatformUserTemporaryWithResponse call

func (PutVerificationPlatformUserTemporaryResponse) Status

Status returns HTTPResponse.Status

func (PutVerificationPlatformUserTemporaryResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type ServiceUuid

type ServiceUuid = string

ServiceUuid defines model for service_uuid.

type Status

type Status string

Status defines model for Status.

const (
	ACCESSDENIEDACCOUNTNOTLINKED      Status = "ACCESS_DENIED_ACCOUNT_NOT_LINKED"
	ACCESSDENIEDBANNED                Status = "ACCESS_DENIED_BANNED"
	ACCESSDENIEDEXPIRED               Status = "ACCESS_DENIED_EXPIRED"
	ACCESSDENIEDINVALIDWORLD          Status = "ACCESS_DENIED_INVALID_WORLD"
	ACCESSDENIEDREQUIREMENTNOTMET     Status = "ACCESS_DENIED_REQUIREMENT_NOT_MET"
	ACCESSDENIEDUNKNOWN               Status = "ACCESS_DENIED_UNKNOWN"
	ACCESSGRANTEDHOMEWORLD            Status = "ACCESS_GRANTED_HOME_WORLD"
	ACCESSGRANTEDHOMEWORLDTEMPORARY   Status = "ACCESS_GRANTED_HOME_WORLD_TEMPORARY"
	ACCESSGRANTEDLINKEDWORLD          Status = "ACCESS_GRANTED_LINKED_WORLD"
	ACCESSGRANTEDLINKEDWORLDTEMPORARY Status = "ACCESS_GRANTED_LINKED_WORLD_TEMPORARY"
)

Defines values for Status.

func (Status) AccessDenied

func (s Status) AccessDenied() bool

func (Status) AccessGranted

func (s Status) AccessGranted() bool

func (Status) ID

func (s Status) ID() int

func (Status) Priority

func (s Status) Priority() int

type Subject

type Subject = string

Subject defines model for subject.

type TraitErrorResp

type TraitErrorResp = Error

TraitErrorResp defines model for trait_error_resp.

type TraitPlatformUserDisplayName

type TraitPlatformUserDisplayName = string

TraitPlatformUserDisplayName defines model for trait_platform_user_display_name.

type TraitSecuredAuthentication

type TraitSecuredAuthentication = string

TraitSecuredAuthentication defines model for trait_secured_authentication.

type TraitWorldView

type TraitWorldView = int

TraitWorldView defines model for trait_world_view.

type TraitWorldViewOptional

type TraitWorldViewOptional = int

TraitWorldViewOptional defines model for trait_world_view_optional.

type User

type User struct {
	Accounts              []Account              `bun:"rel:has-many,join:id=user_id" json:"accounts,omitempty"`
	Bans                  []Ban                  `bun:"rel:has-many,join:id=user_id" json:"bans,omitempty"`
	DbCreated             time.Time              `bun:",nullzero,notnull,default:current_timestamp,scanonly" json:"db_created,omitempty"`
	DbUpdated             time.Time              `bun:",nullzero,notnull,default:current_timestamp" json:"db_updated,omitempty"`
	EphemeralAssociations []EphemeralAssociation `bun:"rel:has-many,join:id=user_id" json:"ephemeral_associations,omitempty"`
	Id                    int64                  `bun:",pk,autoincrement" json:"id"`
	PlatformLinks         []PlatformLink         `bun:"rel:has-many,join:id=user_id" json:"platform_links,omitempty"`
}

User defines model for User.

type VerificationStatus

type VerificationStatus struct {
	Ban          *Ban          `json:"ban,omitempty"`
	PlatformLink *PlatformLink `json:"platform_link,omitempty"`
	Status       Status        `bun:"-" json:"status"`
}

VerificationStatus defines model for VerificationStatus.

type WorldLinks = []int

WorldLinks defines model for WorldLinks.

Jump to

Keyboard shortcuts

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