client

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AddGalleryImageExt

type AddGalleryImageExt string
const (
	AddGalleryImageExtPNG  AddGalleryImageExt = "png"
	AddGalleryImageExtJPG  AddGalleryImageExt = "jpg"
	AddGalleryImageExtJpeg AddGalleryImageExt = "jpeg"
	AddGalleryImageExtBmp  AddGalleryImageExt = "bmp"
	AddGalleryImageExtGIF  AddGalleryImageExt = "gif"
	AddGalleryImageExtWEBP AddGalleryImageExt = "webp"
	AddGalleryImageExtSvg  AddGalleryImageExt = "svg"
	AddGalleryImageExtSvgz AddGalleryImageExt = "svgz"
	AddGalleryImageExtRgb  AddGalleryImageExt = "rgb"
)

func (AddGalleryImageExt) AllValues

func (AddGalleryImageExt) AllValues() []AddGalleryImageExt

AllValues returns all AddGalleryImageExt values.

func (AddGalleryImageExt) MarshalText

func (s AddGalleryImageExt) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AddGalleryImageExt) UnmarshalText

func (s *AddGalleryImageExt) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AddGalleryImageExt) Validate

func (s AddGalleryImageExt) Validate() error

type AddGalleryImageNoContent

type AddGalleryImageNoContent struct{}

AddGalleryImageNoContent is response for AddGalleryImage operation.

type AddGalleryImageNotFound

type AddGalleryImageNotFound struct{}

AddGalleryImageNotFound is response for AddGalleryImage operation.

type AddGalleryImageParams

type AddGalleryImageParams struct {
	// Image extension.
	Ext AddGalleryImageExt
	// Whether an image is featured.
	Featured bool
	// Title of the image.
	Title OptString
	// Description of the image.
	Description OptString
	// Ordering of the image.
	Ordering OptInt
	// The ID or slug of the project.
	IDSlug string
}

AddGalleryImageParams is parameters of addGalleryImage operation.

type AddGalleryImageReq

type AddGalleryImageReq interface {
	// contains filtered or unexported methods
}

type AddGalleryImageReqEmptyBody

type AddGalleryImageReqEmptyBody struct{}

type AddGalleryImageReqImageBmp

type AddGalleryImageReqImageBmp struct {
	Data io.Reader
}

func (AddGalleryImageReqImageBmp) Read

func (s AddGalleryImageReqImageBmp) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddGalleryImageReqImageGIF

type AddGalleryImageReqImageGIF struct {
	Data io.Reader
}

func (AddGalleryImageReqImageGIF) Read

func (s AddGalleryImageReqImageGIF) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddGalleryImageReqImageJpeg

type AddGalleryImageReqImageJpeg struct {
	Data io.Reader
}

func (AddGalleryImageReqImageJpeg) Read

func (s AddGalleryImageReqImageJpeg) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddGalleryImageReqImagePNG

type AddGalleryImageReqImagePNG struct {
	Data io.Reader
}

func (AddGalleryImageReqImagePNG) Read

func (s AddGalleryImageReqImagePNG) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddGalleryImageReqImageRgb

type AddGalleryImageReqImageRgb struct {
	Data io.Reader
}

func (AddGalleryImageReqImageRgb) Read

func (s AddGalleryImageReqImageRgb) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddGalleryImageReqImageSvg

type AddGalleryImageReqImageSvg struct {
	Data io.Reader
}

func (AddGalleryImageReqImageSvg) Read

func (s AddGalleryImageReqImageSvg) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddGalleryImageReqImageSvgz

type AddGalleryImageReqImageSvgz struct {
	Data io.Reader
}

func (AddGalleryImageReqImageSvgz) Read

func (s AddGalleryImageReqImageSvgz) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddGalleryImageReqImageWEBP

type AddGalleryImageReqImageWEBP struct {
	Data io.Reader
}

func (AddGalleryImageReqImageWEBP) Read

func (s AddGalleryImageReqImageWEBP) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type AddGalleryImageRes

type AddGalleryImageRes interface {
	// contains filtered or unexported methods
}

type AddTeamMemberNoContent

type AddTeamMemberNoContent struct{}

AddTeamMemberNoContent is response for AddTeamMember operation.

type AddTeamMemberNotFound

type AddTeamMemberNotFound struct{}

AddTeamMemberNotFound is response for AddTeamMember operation.

type AddTeamMemberParams

type AddTeamMemberParams struct {
	// The ID of the team.
	ID string
}

AddTeamMemberParams is parameters of addTeamMember operation.

type AddTeamMemberRes

type AddTeamMemberRes interface {
	// contains filtered or unexported methods
}

type AlgorithmIdentifier

type AlgorithmIdentifier string
const (
	AlgorithmIdentifierSHA1   AlgorithmIdentifier = "sha1"
	AlgorithmIdentifierSha512 AlgorithmIdentifier = "sha512"
)

func (AlgorithmIdentifier) AllValues

AllValues returns all AlgorithmIdentifier values.

func (AlgorithmIdentifier) MarshalText

func (s AlgorithmIdentifier) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*AlgorithmIdentifier) UnmarshalText

func (s *AlgorithmIdentifier) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (AlgorithmIdentifier) Validate

func (s AlgorithmIdentifier) Validate() error

type AuthError

type AuthError struct {
	// The name of the error.
	Error string `json:"error"`
	// The contents of the error.
	Description string `json:"description"`
}

Ref: #/components/schemas/AuthError

func (*AuthError) Decode

func (s *AuthError) Decode(d *jx.Decoder) error

Decode decodes AuthError from json.

func (*AuthError) Encode

func (s *AuthError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AuthError) GetDescription

func (s *AuthError) GetDescription() string

GetDescription returns the value of Description.

func (*AuthError) GetError

func (s *AuthError) GetError() string

GetError returns the value of Error.

func (*AuthError) MarshalJSON

func (s *AuthError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AuthError) SetDescription

func (s *AuthError) SetDescription(val string)

SetDescription sets the value of Description.

func (*AuthError) SetError

func (s *AuthError) SetError(val string)

SetError sets the value of Error.

func (*AuthError) UnmarshalJSON

func (s *AuthError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CategoryTag

type CategoryTag struct {
	// The SVG icon of a category.
	Icon string `json:"icon"`
	// The name of the category.
	Name string `json:"name"`
	// The project type this category is applicable to.
	ProjectType string `json:"project_type"`
	// The header under which the category should go.
	Header string `json:"header"`
}

Ref: #/components/schemas/CategoryTag

func (*CategoryTag) Decode

func (s *CategoryTag) Decode(d *jx.Decoder) error

Decode decodes CategoryTag from json.

func (*CategoryTag) Encode

func (s *CategoryTag) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CategoryTag) GetHeader

func (s *CategoryTag) GetHeader() string

GetHeader returns the value of Header.

func (*CategoryTag) GetIcon

func (s *CategoryTag) GetIcon() string

GetIcon returns the value of Icon.

func (*CategoryTag) GetName

func (s *CategoryTag) GetName() string

GetName returns the value of Name.

func (*CategoryTag) GetProjectType

func (s *CategoryTag) GetProjectType() string

GetProjectType returns the value of ProjectType.

func (*CategoryTag) MarshalJSON

func (s *CategoryTag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CategoryTag) SetHeader

func (s *CategoryTag) SetHeader(val string)

SetHeader sets the value of Header.

func (*CategoryTag) SetIcon

func (s *CategoryTag) SetIcon(val string)

SetIcon sets the value of Icon.

func (*CategoryTag) SetName

func (s *CategoryTag) SetName(val string)

SetName sets the value of Name.

func (*CategoryTag) SetProjectType

func (s *CategoryTag) SetProjectType(val string)

SetProjectType sets the value of ProjectType.

func (*CategoryTag) UnmarshalJSON

func (s *CategoryTag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ChangeProjectIconExt

type ChangeProjectIconExt string
const (
	ChangeProjectIconExtPNG  ChangeProjectIconExt = "png"
	ChangeProjectIconExtJPG  ChangeProjectIconExt = "jpg"
	ChangeProjectIconExtJpeg ChangeProjectIconExt = "jpeg"
	ChangeProjectIconExtBmp  ChangeProjectIconExt = "bmp"
	ChangeProjectIconExtGIF  ChangeProjectIconExt = "gif"
	ChangeProjectIconExtWEBP ChangeProjectIconExt = "webp"
	ChangeProjectIconExtSvg  ChangeProjectIconExt = "svg"
	ChangeProjectIconExtSvgz ChangeProjectIconExt = "svgz"
	ChangeProjectIconExtRgb  ChangeProjectIconExt = "rgb"
)

func (ChangeProjectIconExt) AllValues

AllValues returns all ChangeProjectIconExt values.

func (ChangeProjectIconExt) MarshalText

func (s ChangeProjectIconExt) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ChangeProjectIconExt) UnmarshalText

func (s *ChangeProjectIconExt) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ChangeProjectIconExt) Validate

func (s ChangeProjectIconExt) Validate() error

type ChangeProjectIconNoContent

type ChangeProjectIconNoContent struct{}

ChangeProjectIconNoContent is response for ChangeProjectIcon operation.

type ChangeProjectIconParams

type ChangeProjectIconParams struct {
	// Image extension.
	Ext ChangeProjectIconExt
	// The ID or slug of the project.
	IDSlug string
}

ChangeProjectIconParams is parameters of changeProjectIcon operation.

type ChangeProjectIconReq

type ChangeProjectIconReq interface {
	// contains filtered or unexported methods
}

type ChangeProjectIconReqEmptyBody

type ChangeProjectIconReqEmptyBody struct{}

type ChangeProjectIconReqImageBmp

type ChangeProjectIconReqImageBmp struct {
	Data io.Reader
}

func (ChangeProjectIconReqImageBmp) Read

func (s ChangeProjectIconReqImageBmp) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeProjectIconReqImageGIF

type ChangeProjectIconReqImageGIF struct {
	Data io.Reader
}

func (ChangeProjectIconReqImageGIF) Read

func (s ChangeProjectIconReqImageGIF) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeProjectIconReqImageJpeg

type ChangeProjectIconReqImageJpeg struct {
	Data io.Reader
}

func (ChangeProjectIconReqImageJpeg) Read

func (s ChangeProjectIconReqImageJpeg) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeProjectIconReqImagePNG

type ChangeProjectIconReqImagePNG struct {
	Data io.Reader
}

func (ChangeProjectIconReqImagePNG) Read

func (s ChangeProjectIconReqImagePNG) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeProjectIconReqImageRgb

type ChangeProjectIconReqImageRgb struct {
	Data io.Reader
}

func (ChangeProjectIconReqImageRgb) Read

func (s ChangeProjectIconReqImageRgb) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeProjectIconReqImageSvg

type ChangeProjectIconReqImageSvg struct {
	Data io.Reader
}

func (ChangeProjectIconReqImageSvg) Read

func (s ChangeProjectIconReqImageSvg) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeProjectIconReqImageSvgz

type ChangeProjectIconReqImageSvgz struct {
	Data io.Reader
}

func (ChangeProjectIconReqImageSvgz) Read

func (s ChangeProjectIconReqImageSvgz) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeProjectIconReqImageWEBP

type ChangeProjectIconReqImageWEBP struct {
	Data io.Reader
}

func (ChangeProjectIconReqImageWEBP) Read

func (s ChangeProjectIconReqImageWEBP) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeProjectIconRes

type ChangeProjectIconRes interface {
	// contains filtered or unexported methods
}

type ChangeUserIconNoContent

type ChangeUserIconNoContent struct{}

ChangeUserIconNoContent is response for ChangeUserIcon operation.

type ChangeUserIconNotFound

type ChangeUserIconNotFound struct{}

ChangeUserIconNotFound is response for ChangeUserIcon operation.

type ChangeUserIconParams

type ChangeUserIconParams struct {
	// The ID or username of the user.
	IDUsername string
}

ChangeUserIconParams is parameters of changeUserIcon operation.

type ChangeUserIconReq

type ChangeUserIconReq interface {
	// contains filtered or unexported methods
}

type ChangeUserIconReqEmptyBody

type ChangeUserIconReqEmptyBody struct{}

type ChangeUserIconReqImageBmp

type ChangeUserIconReqImageBmp struct {
	Data io.Reader
}

func (ChangeUserIconReqImageBmp) Read

func (s ChangeUserIconReqImageBmp) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeUserIconReqImageGIF

type ChangeUserIconReqImageGIF struct {
	Data io.Reader
}

func (ChangeUserIconReqImageGIF) Read

func (s ChangeUserIconReqImageGIF) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeUserIconReqImageJpeg

type ChangeUserIconReqImageJpeg struct {
	Data io.Reader
}

func (ChangeUserIconReqImageJpeg) Read

func (s ChangeUserIconReqImageJpeg) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeUserIconReqImagePNG

type ChangeUserIconReqImagePNG struct {
	Data io.Reader
}

func (ChangeUserIconReqImagePNG) Read

func (s ChangeUserIconReqImagePNG) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeUserIconReqImageRgb

type ChangeUserIconReqImageRgb struct {
	Data io.Reader
}

func (ChangeUserIconReqImageRgb) Read

func (s ChangeUserIconReqImageRgb) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeUserIconReqImageSvg

type ChangeUserIconReqImageSvg struct {
	Data io.Reader
}

func (ChangeUserIconReqImageSvg) Read

func (s ChangeUserIconReqImageSvg) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeUserIconReqImageSvgz

type ChangeUserIconReqImageSvgz struct {
	Data io.Reader
}

func (ChangeUserIconReqImageSvgz) Read

func (s ChangeUserIconReqImageSvgz) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeUserIconReqImageWEBP

type ChangeUserIconReqImageWEBP struct {
	Data io.Reader
}

func (ChangeUserIconReqImageWEBP) Read

func (s ChangeUserIconReqImageWEBP) Read(p []byte) (n int, err error)

Read reads data from the Data reader.

Kept to satisfy the io.Reader interface.

type ChangeUserIconRes

type ChangeUserIconRes interface {
	// contains filtered or unexported methods
}

type CheckProjectValidityNotFound

type CheckProjectValidityNotFound struct{}

CheckProjectValidityNotFound is response for CheckProjectValidity operation.

type CheckProjectValidityParams

type CheckProjectValidityParams struct {
	// The ID or slug of the project.
	IDSlug string
}

CheckProjectValidityParams is parameters of checkProjectValidity operation.

type CheckProjectValidityRes

type CheckProjectValidityRes interface {
	// contains filtered or unexported methods
}

type Client

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

Client implements OAS client.

func NewClient

func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) AddGalleryImage

func (c *Client) AddGalleryImage(ctx context.Context, request AddGalleryImageReq, params AddGalleryImageParams) (AddGalleryImageRes, error)

AddGalleryImage invokes addGalleryImage operation.

Modrinth allows you to upload files of up to 5MiB to a project's gallery.

POST /project/{id|slug}/gallery

func (*Client) AddTeamMember

func (c *Client) AddTeamMember(ctx context.Context, request UserIdentifier, params AddTeamMemberParams) (AddTeamMemberRes, error)

AddTeamMember invokes addTeamMember operation.

Add a user to a team.

POST /team/{id}/members

func (*Client) CategoryList

func (c *Client) CategoryList(ctx context.Context) ([]CategoryTag, error)

CategoryList invokes categoryList operation.

Gets an array of categories, their icons, and applicable project types.

GET /tag/category

func (*Client) ChangeProjectIcon

func (c *Client) ChangeProjectIcon(ctx context.Context, request ChangeProjectIconReq, params ChangeProjectIconParams) (ChangeProjectIconRes, error)

ChangeProjectIcon invokes changeProjectIcon operation.

The new icon may be up to 256KiB in size.

PATCH /project/{id|slug}/icon

func (*Client) ChangeUserIcon

func (c *Client) ChangeUserIcon(ctx context.Context, request ChangeUserIconReq, params ChangeUserIconParams) (ChangeUserIconRes, error)

ChangeUserIcon invokes changeUserIcon operation.

The new avatar may be up to 2MiB in size.

PATCH /user/{id|username}/icon

func (*Client) CheckProjectValidity

func (c *Client) CheckProjectValidity(ctx context.Context, params CheckProjectValidityParams) (CheckProjectValidityRes, error)

CheckProjectValidity invokes checkProjectValidity operation.

Check project slug/ID validity.

GET /project/{id|slug}/check

func (*Client) CreateVersion

func (c *Client) CreateVersion(ctx context.Context, request OptCreateVersionBodyMultipart) (CreateVersionRes, error)

CreateVersion invokes createVersion operation.

This route creates a version on an existing project. There must be at least one file attached to each new version, unless the new version's status is `draft`. `.mrpack`, `.jar`, `.zip`, and `. litemod` files are accepted. The request is a [multipart request](https://www.ietf.org/rfc/rfc2388.txt) with at least two form fields: one is `data`, which includes a JSON body with the version metadata as shown below, and at least one field containing an upload file. You can name the file parts anything you would like, but you must list each of the parts' names in `file_parts`, and optionally, provide one to use as the primary file in `primary_file`.

POST /version

func (*Client) DeleteFileFromHash

func (c *Client) DeleteFileFromHash(ctx context.Context, params DeleteFileFromHashParams) (DeleteFileFromHashRes, error)

DeleteFileFromHash invokes deleteFileFromHash operation.

Delete a file from its hash.

DELETE /version_file/{hash}

func (*Client) DeleteGalleryImage

func (c *Client) DeleteGalleryImage(ctx context.Context, params DeleteGalleryImageParams) (DeleteGalleryImageRes, error)

DeleteGalleryImage invokes deleteGalleryImage operation.

Delete a gallery image.

DELETE /project/{id|slug}/gallery

func (*Client) DeleteNotification

func (c *Client) DeleteNotification(ctx context.Context, params DeleteNotificationParams) (DeleteNotificationRes, error)

DeleteNotification invokes deleteNotification operation.

Delete notification.

DELETE /notification/{id}

func (*Client) DeleteNotifications

func (c *Client) DeleteNotifications(ctx context.Context, params DeleteNotificationsParams) (DeleteNotificationsRes, error)

DeleteNotifications invokes deleteNotifications operation.

Delete multiple notifications.

DELETE /notifications

func (*Client) DeleteProject

func (c *Client) DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)

DeleteProject invokes deleteProject operation.

Delete a project.

DELETE /project/{id|slug}

func (*Client) DeleteProjectIcon

func (c *Client) DeleteProjectIcon(ctx context.Context, params DeleteProjectIconParams) (DeleteProjectIconRes, error)

DeleteProjectIcon invokes deleteProjectIcon operation.

Delete project's icon.

DELETE /project/{id|slug}/icon

func (*Client) DeleteTeamMember

func (c *Client) DeleteTeamMember(ctx context.Context, params DeleteTeamMemberParams) (DeleteTeamMemberRes, error)

DeleteTeamMember invokes deleteTeamMember operation.

Remove a member from a team.

DELETE /team/{id}/members/{id|username}

func (*Client) DeleteThreadMessage

func (c *Client) DeleteThreadMessage(ctx context.Context, params DeleteThreadMessageParams) (DeleteThreadMessageRes, error)

DeleteThreadMessage invokes deleteThreadMessage operation.

Delete a thread message.

DELETE /message/{id}

func (*Client) DeleteUserIcon

func (c *Client) DeleteUserIcon(ctx context.Context, params DeleteUserIconParams) (DeleteUserIconRes, error)

DeleteUserIcon invokes deleteUserIcon operation.

Remove user's avatar.

DELETE /user/{id|username}/icon

func (*Client) DeleteVersion

func (c *Client) DeleteVersion(ctx context.Context, params DeleteVersionParams) (DeleteVersionRes, error)

DeleteVersion invokes deleteVersion operation.

Delete a version.

DELETE /version/{id}

func (*Client) DonationPlatformList

func (c *Client) DonationPlatformList(ctx context.Context) ([]DonationPlatformTag, error)

DonationPlatformList invokes donationPlatformList operation.

Gets an array of donation platforms and information about them.

GET /tag/donation_platform

func (*Client) FollowProject

func (c *Client) FollowProject(ctx context.Context, params FollowProjectParams) (FollowProjectRes, error)

FollowProject invokes followProject operation.

Follow a project.

POST /project/{id|slug}/follow

func (*Client) ForgeUpdates

func (c *Client) ForgeUpdates(ctx context.Context, params ForgeUpdatesParams) (ForgeUpdatesRes, error)

ForgeUpdates invokes forgeUpdates operation.

If you're a Forge mod developer, your Modrinth mods have an automatically generated `updates.json` using the [Forge Update Checker](https://docs.minecraftforge.net/en/latest/misc/updatechecker/). The only setup is to insert the URL into the `[[mods]]` section of your `mods.toml` file as such: ```toml [[mods]] # the other stuff here - ID, version, display name, etc. updateJSONURL = "https://api.modrinth.com/updates/{slug|ID}/forge_updates.json" ``` Replace `{slug|id}` with the slug or ID of your project. Modrinth will handle the rest! When you update your mod, Forge will notify your users that their copy of your mod is out of date. Make sure that the version format you use for your Modrinth releases is the same as the version format you use in your `mods.toml`. If you use a format such as `1.2.3-forge` or `1.2.3+1.19` with your Modrinth releases but your `mods.toml` only has `1.2.3`, the update checker may not function properly.

GET /updates/{id|slug}/forge_updates.json

func (*Client) GetDependencies

func (c *Client) GetDependencies(ctx context.Context, params GetDependenciesParams) (GetDependenciesRes, error)

GetDependencies invokes getDependencies operation.

Get all of a project's dependencies.

GET /project/{id|slug}/dependencies

func (*Client) GetFollowedProjects

func (c *Client) GetFollowedProjects(ctx context.Context, params GetFollowedProjectsParams) (GetFollowedProjectsRes, error)

GetFollowedProjects invokes getFollowedProjects operation.

Get user's followed projects.

GET /user/{id|username}/follows

func (*Client) GetLatestVersionFromHash

GetLatestVersionFromHash invokes getLatestVersionFromHash operation.

Latest version of a project from a hash, loader(s), and game version(s).

POST /version_file/{hash}/update

func (*Client) GetLatestVersionsFromHashes

func (c *Client) GetLatestVersionsFromHashes(ctx context.Context, request OptGetLatestVersionsFromHashesBody) (GetLatestVersionsFromHashesRes, error)

GetLatestVersionsFromHashes invokes getLatestVersionsFromHashes operation.

This is the same as [`/version_file/{hash}/update`](#operation/getLatestVersionFromHash) except it accepts multiple hashes.

POST /version_files/update

func (*Client) GetNotification

func (c *Client) GetNotification(ctx context.Context, params GetNotificationParams) (GetNotificationRes, error)

GetNotification invokes getNotification operation.

Get notification from ID.

GET /notification/{id}

func (*Client) GetNotifications

func (c *Client) GetNotifications(ctx context.Context, params GetNotificationsParams) (GetNotificationsRes, error)

GetNotifications invokes getNotifications operation.

Get multiple notifications.

GET /notifications

func (*Client) GetOpenReports

func (c *Client) GetOpenReports(ctx context.Context, params GetOpenReportsParams) (GetOpenReportsRes, error)

GetOpenReports invokes getOpenReports operation.

Get your open reports.

GET /report

func (*Client) GetPayoutHistory

func (c *Client) GetPayoutHistory(ctx context.Context, params GetPayoutHistoryParams) (GetPayoutHistoryRes, error)

GetPayoutHistory invokes getPayoutHistory operation.

Get user's payout history.

GET /user/{id|username}/payouts

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)

GetProject invokes getProject operation.

Get a project.

GET /project/{id|slug}

func (*Client) GetProjectTeamMembers

func (c *Client) GetProjectTeamMembers(ctx context.Context, params GetProjectTeamMembersParams) (GetProjectTeamMembersRes, error)

GetProjectTeamMembers invokes getProjectTeamMembers operation.

Get a project's team members.

GET /project/{id|slug}/members

func (*Client) GetProjectVersions

func (c *Client) GetProjectVersions(ctx context.Context, params GetProjectVersionsParams) (GetProjectVersionsRes, error)

GetProjectVersions invokes getProjectVersions operation.

List project's versions.

GET /project/{id|slug}/version

func (*Client) GetProjects

func (c *Client) GetProjects(ctx context.Context, params GetProjectsParams) ([]Project, error)

GetProjects invokes getProjects operation.

Get multiple projects.

GET /projects

func (*Client) GetReport

func (c *Client) GetReport(ctx context.Context, params GetReportParams) (GetReportRes, error)

GetReport invokes getReport operation.

Get report from ID.

GET /report/{id}

func (*Client) GetReports

func (c *Client) GetReports(ctx context.Context, params GetReportsParams) (GetReportsRes, error)

GetReports invokes getReports operation.

Get multiple reports.

GET /reports

func (*Client) GetTeamMembers

func (c *Client) GetTeamMembers(ctx context.Context, params GetTeamMembersParams) ([]TeamMember, error)

GetTeamMembers invokes getTeamMembers operation.

Get a team's members.

GET /team/{id}/members

func (*Client) GetTeams

func (c *Client) GetTeams(ctx context.Context, params GetTeamsParams) ([][]TeamMember, error)

GetTeams invokes getTeams operation.

Get the members of multiple teams.

GET /teams

func (*Client) GetThread

func (c *Client) GetThread(ctx context.Context, params GetThreadParams) (GetThreadRes, error)

GetThread invokes getThread operation.

Get a thread.

GET /thread/{id}

func (*Client) GetThreads

func (c *Client) GetThreads(ctx context.Context, params GetThreadsParams) (GetThreadsRes, error)

GetThreads invokes getThreads operation.

Get multiple threads.

GET /threads

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, params GetUserParams) (GetUserRes, error)

GetUser invokes getUser operation.

Get a user.

GET /user/{id|username}

func (*Client) GetUserFromAuth

func (c *Client) GetUserFromAuth(ctx context.Context) (GetUserFromAuthRes, error)

GetUserFromAuth invokes getUserFromAuth operation.

Get user from authorization header.

GET /user

func (*Client) GetUserNotifications

func (c *Client) GetUserNotifications(ctx context.Context, params GetUserNotificationsParams) (GetUserNotificationsRes, error)

GetUserNotifications invokes getUserNotifications operation.

Get user's notifications.

GET /user/{id|username}/notifications

func (*Client) GetUserProjects

func (c *Client) GetUserProjects(ctx context.Context, params GetUserProjectsParams) (GetUserProjectsRes, error)

GetUserProjects invokes getUserProjects operation.

Get user's projects.

GET /user/{id|username}/projects

func (*Client) GetUsers

func (c *Client) GetUsers(ctx context.Context, params GetUsersParams) ([]User, error)

GetUsers invokes getUsers operation.

Get multiple users.

GET /users

func (*Client) GetVersion

func (c *Client) GetVersion(ctx context.Context, params GetVersionParams) (GetVersionRes, error)

GetVersion invokes getVersion operation.

Get a version.

GET /version/{id}

func (*Client) GetVersionFromIdOrNumber

func (c *Client) GetVersionFromIdOrNumber(ctx context.Context, params GetVersionFromIdOrNumberParams) (GetVersionFromIdOrNumberRes, error)

GetVersionFromIdOrNumber invokes getVersionFromIdOrNumber operation.

Please note that, if the version number provided matches multiple versions, only the **oldest matching version** will be returned.

GET /project/{id|slug}/version/{id|number}

func (*Client) GetVersions

func (c *Client) GetVersions(ctx context.Context, params GetVersionsParams) ([]Version, error)

GetVersions invokes getVersions operation.

Get multiple versions.

GET /versions

func (*Client) JoinTeam

func (c *Client) JoinTeam(ctx context.Context, params JoinTeamParams) (JoinTeamRes, error)

JoinTeam invokes joinTeam operation.

Join a team.

POST /team/{id}/join

func (*Client) LicenseList deprecated

func (c *Client) LicenseList(ctx context.Context) ([]LicenseTag, error)

LicenseList invokes licenseList operation.

Deprecated - simply use SPDX IDs.

Deprecated: schema marks this operation as deprecated.

GET /tag/license

func (*Client) LicenseText

func (c *Client) LicenseText(ctx context.Context, params LicenseTextParams) (LicenseTextRes, error)

LicenseText invokes licenseText operation.

Get the text and title of a license.

GET /tag/license/{id}

func (*Client) LoaderList

func (c *Client) LoaderList(ctx context.Context) ([]LoaderTag, error)

LoaderList invokes loaderList operation.

Gets an array of loaders, their icons, and supported project types.

GET /tag/loader

func (*Client) ModifyGalleryImage

func (c *Client) ModifyGalleryImage(ctx context.Context, params ModifyGalleryImageParams) (ModifyGalleryImageRes, error)

ModifyGalleryImage invokes modifyGalleryImage operation.

Modify a gallery image.

PATCH /project/{id|slug}/gallery

func (*Client) ModifyProject

func (c *Client) ModifyProject(ctx context.Context, request OptEditableProject, params ModifyProjectParams) (ModifyProjectRes, error)

ModifyProject invokes modifyProject operation.

Modify a project.

PATCH /project/{id|slug}

func (*Client) ModifyReport

func (c *Client) ModifyReport(ctx context.Context, request OptModifyReportReq, params ModifyReportParams) (ModifyReportRes, error)

ModifyReport invokes modifyReport operation.

Modify a report.

PATCH /report/{id}

func (*Client) ModifyTeamMember

func (c *Client) ModifyTeamMember(ctx context.Context, request ModifyTeamMemberBody, params ModifyTeamMemberParams) (ModifyTeamMemberRes, error)

ModifyTeamMember invokes modifyTeamMember operation.

Modify a team member's information.

PATCH /team/{id}/members/{id|username}

func (*Client) ModifyUser

func (c *Client) ModifyUser(ctx context.Context, request OptEditableUser, params ModifyUserParams) (ModifyUserRes, error)

ModifyUser invokes modifyUser operation.

Modify a user.

PATCH /user/{id|username}

func (*Client) ModifyVersion

func (c *Client) ModifyVersion(ctx context.Context, request OptEditableVersion, params ModifyVersionParams) (ModifyVersionRes, error)

ModifyVersion invokes modifyVersion operation.

Modify a version.

PATCH /version/{id}

func (*Client) PatchProjects

func (c *Client) PatchProjects(ctx context.Context, request OptPatchProjectsBody, params PatchProjectsParams) (PatchProjectsRes, error)

PatchProjects invokes patchProjects operation.

Bulk-edit multiple projects.

PATCH /projects

func (*Client) ProjectTypeList

func (c *Client) ProjectTypeList(ctx context.Context) ([]string, error)

ProjectTypeList invokes projectTypeList operation.

Gets an array of valid project types.

GET /tag/project_type

func (*Client) RandomProjects

func (c *Client) RandomProjects(ctx context.Context, params RandomProjectsParams) (RandomProjectsRes, error)

RandomProjects invokes randomProjects operation.

Get a list of random projects.

GET /projects_random

func (*Client) ReadNotification

func (c *Client) ReadNotification(ctx context.Context, params ReadNotificationParams) (ReadNotificationRes, error)

ReadNotification invokes readNotification operation.

Mark notification as read.

PATCH /notification/{id}

func (*Client) ReadNotifications

func (c *Client) ReadNotifications(ctx context.Context, params ReadNotificationsParams) (ReadNotificationsRes, error)

ReadNotifications invokes readNotifications operation.

Mark multiple notifications as read.

PATCH /notifications

func (*Client) ReportTypeList

func (c *Client) ReportTypeList(ctx context.Context) ([]string, error)

ReportTypeList invokes reportTypeList operation.

Gets an array of valid report types.

GET /tag/report_type

func (*Client) ScheduleProject

func (c *Client) ScheduleProject(ctx context.Context, request OptSchedule, params ScheduleProjectParams) (ScheduleProjectRes, error)

ScheduleProject invokes scheduleProject operation.

Schedule a project.

POST /project/{id|slug}/schedule

func (*Client) ScheduleVersion

func (c *Client) ScheduleVersion(ctx context.Context, request OptSchedule, params ScheduleVersionParams) (ScheduleVersionRes, error)

ScheduleVersion invokes scheduleVersion operation.

Schedule a version.

POST /version/{id}/schedule

func (*Client) SearchProjects

func (c *Client) SearchProjects(ctx context.Context, params SearchProjectsParams) (SearchProjectsRes, error)

SearchProjects invokes searchProjects operation.

Search projects.

GET /search

func (*Client) SendThreadMessage

func (c *Client) SendThreadMessage(ctx context.Context, request OptThreadMessageBody, params SendThreadMessageParams) (SendThreadMessageRes, error)

SendThreadMessage invokes sendThreadMessage operation.

Send a text message to a thread.

POST /thread/{id}

func (*Client) SideTypeList

func (c *Client) SideTypeList(ctx context.Context) ([]string, error)

SideTypeList invokes sideTypeList operation.

Gets an array of valid side types.

GET /tag/side_type

func (*Client) Statistics

func (c *Client) Statistics(ctx context.Context) (*Statistics, error)

Statistics invokes statistics operation.

Various statistics about this Modrinth instance.

GET /statistics

func (*Client) SubmitReport

func (c *Client) SubmitReport(ctx context.Context, request OptCreatableReport) (SubmitReportRes, error)

SubmitReport invokes submitReport operation.

Bring a project, user, or version to the attention of the moderators by reporting it.

POST /report

func (*Client) TransferTeamOwnership

func (c *Client) TransferTeamOwnership(ctx context.Context, request UserIdentifier, params TransferTeamOwnershipParams) (TransferTeamOwnershipRes, error)

TransferTeamOwnership invokes transferTeamOwnership operation.

Transfer team's ownership to another user.

PATCH /team/{id}/owner

func (*Client) UnfollowProject

func (c *Client) UnfollowProject(ctx context.Context, params UnfollowProjectParams) (UnfollowProjectRes, error)

UnfollowProject invokes unfollowProject operation.

Unfollow a project.

DELETE /project/{id|slug}/follow

func (*Client) VersionFromHash

func (c *Client) VersionFromHash(ctx context.Context, params VersionFromHashParams) (VersionFromHashRes, error)

VersionFromHash invokes versionFromHash operation.

Get version from hash.

GET /version_file/{hash}

func (*Client) VersionList

func (c *Client) VersionList(ctx context.Context) ([]GameVersionTag, error)

VersionList invokes versionList operation.

Gets an array of game versions and information about them.

GET /tag/game_version

func (*Client) VersionsFromHashes

func (c *Client) VersionsFromHashes(ctx context.Context, request OptHashList) (VersionsFromHashesRes, error)

VersionsFromHashes invokes versionsFromHashes operation.

This is the same as [`/version_file/{hash}`](#operation/versionFromHash) except it accepts multiple hashes.

POST /version_files

func (*Client) WithdrawPayout

func (c *Client) WithdrawPayout(ctx context.Context, params WithdrawPayoutParams) (WithdrawPayoutRes, error)

WithdrawPayout invokes withdrawPayout operation.

Warning: certain amounts get withheld for fees. Please do not call this API endpoint without first acknowledging the warnings on the corresponding frontend page.

POST /user/{id|username}/payouts

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type CreatableReport

type CreatableReport struct {
	// The type of the report being sent.
	ReportType string `json:"report_type"`
	// The ID of the item (project, version, or user) being reported.
	ItemID string `json:"item_id"`
	// The type of the item being reported.
	ItemType CreatableReportItemType `json:"item_type"`
	// The extended explanation of the report.
	Body string `json:"body"`
}

Ref: #/components/schemas/CreatableReport

func (*CreatableReport) Decode

func (s *CreatableReport) Decode(d *jx.Decoder) error

Decode decodes CreatableReport from json.

func (*CreatableReport) Encode

func (s *CreatableReport) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreatableReport) GetBody

func (s *CreatableReport) GetBody() string

GetBody returns the value of Body.

func (*CreatableReport) GetItemID

func (s *CreatableReport) GetItemID() string

GetItemID returns the value of ItemID.

func (*CreatableReport) GetItemType

func (s *CreatableReport) GetItemType() CreatableReportItemType

GetItemType returns the value of ItemType.

func (*CreatableReport) GetReportType

func (s *CreatableReport) GetReportType() string

GetReportType returns the value of ReportType.

func (*CreatableReport) MarshalJSON

func (s *CreatableReport) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatableReport) SetBody

func (s *CreatableReport) SetBody(val string)

SetBody sets the value of Body.

func (*CreatableReport) SetItemID

func (s *CreatableReport) SetItemID(val string)

SetItemID sets the value of ItemID.

func (*CreatableReport) SetItemType

func (s *CreatableReport) SetItemType(val CreatableReportItemType)

SetItemType sets the value of ItemType.

func (*CreatableReport) SetReportType

func (s *CreatableReport) SetReportType(val string)

SetReportType sets the value of ReportType.

func (*CreatableReport) UnmarshalJSON

func (s *CreatableReport) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatableReport) Validate

func (s *CreatableReport) Validate() error

type CreatableReportItemType

type CreatableReportItemType string

The type of the item being reported.

const (
	CreatableReportItemTypeProject CreatableReportItemType = "project"
	CreatableReportItemTypeUser    CreatableReportItemType = "user"
	CreatableReportItemTypeVersion CreatableReportItemType = "version"
)

func (CreatableReportItemType) AllValues

AllValues returns all CreatableReportItemType values.

func (*CreatableReportItemType) Decode

func (s *CreatableReportItemType) Decode(d *jx.Decoder) error

Decode decodes CreatableReportItemType from json.

func (CreatableReportItemType) Encode

func (s CreatableReportItemType) Encode(e *jx.Encoder)

Encode encodes CreatableReportItemType as json.

func (CreatableReportItemType) MarshalJSON

func (s CreatableReportItemType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreatableReportItemType) MarshalText

func (s CreatableReportItemType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreatableReportItemType) UnmarshalJSON

func (s *CreatableReportItemType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatableReportItemType) UnmarshalText

func (s *CreatableReportItemType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreatableReportItemType) Validate

func (s CreatableReportItemType) Validate() error

type CreatableVersion

type CreatableVersion struct {
	// The name of this version.
	Name string `json:"name"`
	// The version number. Ideally will follow semantic versioning.
	VersionNumber string `json:"version_number"`
	// The changelog for this version.
	Changelog OptNilString `json:"changelog"`
	// A list of specific versions of projects that this version depends on.
	Dependencies []VersionDependency `json:"dependencies"`
	// A list of versions of Minecraft that this version supports.
	GameVersions []string `json:"game_versions"`
	// The release channel for this version.
	VersionType CreatableVersionVersionType `json:"version_type"`
	// The mod loaders that this version supports. In case of resource packs, use "minecraft".
	Loaders []string `json:"loaders"`
	// Whether the version is featured or not.
	Featured        bool                                  `json:"featured"`
	Status          OptCreatableVersionStatus             `json:"status"`
	RequestedStatus OptNilCreatableVersionRequestedStatus `json:"requested_status"`
	// The ID of the project this version is for.
	ProjectID string `json:"project_id"`
	// An array of the multipart field names of each file that goes with this version.
	FileParts []string `json:"file_parts"`
	// The multipart field name of the primary file.
	PrimaryFile OptString `json:"primary_file"`
}

Merged schema. Ref: #/components/schemas/CreatableVersion

func (*CreatableVersion) Decode

func (s *CreatableVersion) Decode(d *jx.Decoder) error

Decode decodes CreatableVersion from json.

func (*CreatableVersion) Encode

func (s *CreatableVersion) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreatableVersion) GetChangelog

func (s *CreatableVersion) GetChangelog() OptNilString

GetChangelog returns the value of Changelog.

func (*CreatableVersion) GetDependencies

func (s *CreatableVersion) GetDependencies() []VersionDependency

GetDependencies returns the value of Dependencies.

func (*CreatableVersion) GetFeatured

func (s *CreatableVersion) GetFeatured() bool

GetFeatured returns the value of Featured.

func (*CreatableVersion) GetFileParts

func (s *CreatableVersion) GetFileParts() []string

GetFileParts returns the value of FileParts.

func (*CreatableVersion) GetGameVersions

func (s *CreatableVersion) GetGameVersions() []string

GetGameVersions returns the value of GameVersions.

func (*CreatableVersion) GetLoaders

func (s *CreatableVersion) GetLoaders() []string

GetLoaders returns the value of Loaders.

func (*CreatableVersion) GetName

func (s *CreatableVersion) GetName() string

GetName returns the value of Name.

func (*CreatableVersion) GetPrimaryFile

func (s *CreatableVersion) GetPrimaryFile() OptString

GetPrimaryFile returns the value of PrimaryFile.

func (*CreatableVersion) GetProjectID

func (s *CreatableVersion) GetProjectID() string

GetProjectID returns the value of ProjectID.

func (*CreatableVersion) GetRequestedStatus

GetRequestedStatus returns the value of RequestedStatus.

func (*CreatableVersion) GetStatus

GetStatus returns the value of Status.

func (*CreatableVersion) GetVersionNumber

func (s *CreatableVersion) GetVersionNumber() string

GetVersionNumber returns the value of VersionNumber.

func (*CreatableVersion) GetVersionType

func (s *CreatableVersion) GetVersionType() CreatableVersionVersionType

GetVersionType returns the value of VersionType.

func (*CreatableVersion) MarshalJSON

func (s *CreatableVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreatableVersion) SetChangelog

func (s *CreatableVersion) SetChangelog(val OptNilString)

SetChangelog sets the value of Changelog.

func (*CreatableVersion) SetDependencies

func (s *CreatableVersion) SetDependencies(val []VersionDependency)

SetDependencies sets the value of Dependencies.

func (*CreatableVersion) SetFeatured

func (s *CreatableVersion) SetFeatured(val bool)

SetFeatured sets the value of Featured.

func (*CreatableVersion) SetFileParts

func (s *CreatableVersion) SetFileParts(val []string)

SetFileParts sets the value of FileParts.

func (*CreatableVersion) SetGameVersions

func (s *CreatableVersion) SetGameVersions(val []string)

SetGameVersions sets the value of GameVersions.

func (*CreatableVersion) SetLoaders

func (s *CreatableVersion) SetLoaders(val []string)

SetLoaders sets the value of Loaders.

func (*CreatableVersion) SetName

func (s *CreatableVersion) SetName(val string)

SetName sets the value of Name.

func (*CreatableVersion) SetPrimaryFile

func (s *CreatableVersion) SetPrimaryFile(val OptString)

SetPrimaryFile sets the value of PrimaryFile.

func (*CreatableVersion) SetProjectID

func (s *CreatableVersion) SetProjectID(val string)

SetProjectID sets the value of ProjectID.

func (*CreatableVersion) SetRequestedStatus

func (s *CreatableVersion) SetRequestedStatus(val OptNilCreatableVersionRequestedStatus)

SetRequestedStatus sets the value of RequestedStatus.

func (*CreatableVersion) SetStatus

func (s *CreatableVersion) SetStatus(val OptCreatableVersionStatus)

SetStatus sets the value of Status.

func (*CreatableVersion) SetVersionNumber

func (s *CreatableVersion) SetVersionNumber(val string)

SetVersionNumber sets the value of VersionNumber.

func (*CreatableVersion) SetVersionType

func (s *CreatableVersion) SetVersionType(val CreatableVersionVersionType)

SetVersionType sets the value of VersionType.

func (*CreatableVersion) UnmarshalJSON

func (s *CreatableVersion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatableVersion) Validate

func (s *CreatableVersion) Validate() error

type CreatableVersionRequestedStatus

type CreatableVersionRequestedStatus string
const (
	CreatableVersionRequestedStatusListed   CreatableVersionRequestedStatus = "listed"
	CreatableVersionRequestedStatusArchived CreatableVersionRequestedStatus = "archived"
	CreatableVersionRequestedStatusDraft    CreatableVersionRequestedStatus = "draft"
	CreatableVersionRequestedStatusUnlisted CreatableVersionRequestedStatus = "unlisted"
)

func (CreatableVersionRequestedStatus) AllValues

AllValues returns all CreatableVersionRequestedStatus values.

func (*CreatableVersionRequestedStatus) Decode

Decode decodes CreatableVersionRequestedStatus from json.

func (CreatableVersionRequestedStatus) Encode

Encode encodes CreatableVersionRequestedStatus as json.

func (CreatableVersionRequestedStatus) MarshalJSON

func (s CreatableVersionRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreatableVersionRequestedStatus) MarshalText

func (s CreatableVersionRequestedStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreatableVersionRequestedStatus) UnmarshalJSON

func (s *CreatableVersionRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatableVersionRequestedStatus) UnmarshalText

func (s *CreatableVersionRequestedStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreatableVersionRequestedStatus) Validate

type CreatableVersionStatus

type CreatableVersionStatus string
const (
	CreatableVersionStatusListed    CreatableVersionStatus = "listed"
	CreatableVersionStatusArchived  CreatableVersionStatus = "archived"
	CreatableVersionStatusDraft     CreatableVersionStatus = "draft"
	CreatableVersionStatusUnlisted  CreatableVersionStatus = "unlisted"
	CreatableVersionStatusScheduled CreatableVersionStatus = "scheduled"
	CreatableVersionStatusUnknown   CreatableVersionStatus = "unknown"
)

func (CreatableVersionStatus) AllValues

AllValues returns all CreatableVersionStatus values.

func (*CreatableVersionStatus) Decode

func (s *CreatableVersionStatus) Decode(d *jx.Decoder) error

Decode decodes CreatableVersionStatus from json.

func (CreatableVersionStatus) Encode

func (s CreatableVersionStatus) Encode(e *jx.Encoder)

Encode encodes CreatableVersionStatus as json.

func (CreatableVersionStatus) MarshalJSON

func (s CreatableVersionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreatableVersionStatus) MarshalText

func (s CreatableVersionStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreatableVersionStatus) UnmarshalJSON

func (s *CreatableVersionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatableVersionStatus) UnmarshalText

func (s *CreatableVersionStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreatableVersionStatus) Validate

func (s CreatableVersionStatus) Validate() error

type CreatableVersionVersionType

type CreatableVersionVersionType string

The release channel for this version.

const (
	CreatableVersionVersionTypeRelease CreatableVersionVersionType = "release"
	CreatableVersionVersionTypeBeta    CreatableVersionVersionType = "beta"
	CreatableVersionVersionTypeAlpha   CreatableVersionVersionType = "alpha"
)

func (CreatableVersionVersionType) AllValues

AllValues returns all CreatableVersionVersionType values.

func (*CreatableVersionVersionType) Decode

Decode decodes CreatableVersionVersionType from json.

func (CreatableVersionVersionType) Encode

func (s CreatableVersionVersionType) Encode(e *jx.Encoder)

Encode encodes CreatableVersionVersionType as json.

func (CreatableVersionVersionType) MarshalJSON

func (s CreatableVersionVersionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreatableVersionVersionType) MarshalText

func (s CreatableVersionVersionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreatableVersionVersionType) UnmarshalJSON

func (s *CreatableVersionVersionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreatableVersionVersionType) UnmarshalText

func (s *CreatableVersionVersionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreatableVersionVersionType) Validate

func (s CreatableVersionVersionType) Validate() error

type CreateVersionBodyMultipart

type CreateVersionBodyMultipart struct {
	Data CreatableVersion `json:"data"`
}

Ref: #/components/schemas/CreateVersionBody

func (*CreateVersionBodyMultipart) GetData

GetData returns the value of Data.

func (*CreateVersionBodyMultipart) SetData

SetData sets the value of Data.

func (*CreateVersionBodyMultipart) Validate

func (s *CreateVersionBodyMultipart) Validate() error

type CreateVersionRes

type CreateVersionRes interface {
	// contains filtered or unexported methods
}

type DeleteFileFromHashNoContent

type DeleteFileFromHashNoContent struct{}

DeleteFileFromHashNoContent is response for DeleteFileFromHash operation.

type DeleteFileFromHashNotFound

type DeleteFileFromHashNotFound struct{}

DeleteFileFromHashNotFound is response for DeleteFileFromHash operation.

type DeleteFileFromHashParams

type DeleteFileFromHashParams struct {
	// Version ID to delete the version from, if multiple files of the same hash exist.
	VersionID OptString
	// The hash of the file, considering its byte content, and encoded in hexadecimal.
	Hash string
	// The algorithm of the hash.
	Algorithm AlgorithmIdentifier
}

DeleteFileFromHashParams is parameters of deleteFileFromHash operation.

type DeleteFileFromHashRes

type DeleteFileFromHashRes interface {
	// contains filtered or unexported methods
}

type DeleteGalleryImageNoContent

type DeleteGalleryImageNoContent struct{}

DeleteGalleryImageNoContent is response for DeleteGalleryImage operation.

type DeleteGalleryImageParams

type DeleteGalleryImageParams struct {
	// URL link of the image to delete.
	URL url.URL
	// The ID or slug of the project.
	IDSlug string
}

DeleteGalleryImageParams is parameters of deleteGalleryImage operation.

type DeleteGalleryImageRes

type DeleteGalleryImageRes interface {
	// contains filtered or unexported methods
}

type DeleteNotificationNoContent

type DeleteNotificationNoContent struct{}

DeleteNotificationNoContent is response for DeleteNotification operation.

type DeleteNotificationNotFound

type DeleteNotificationNotFound struct{}

DeleteNotificationNotFound is response for DeleteNotification operation.

type DeleteNotificationParams

type DeleteNotificationParams struct {
	// The ID of the notification.
	ID string
}

DeleteNotificationParams is parameters of deleteNotification operation.

type DeleteNotificationRes

type DeleteNotificationRes interface {
	// contains filtered or unexported methods
}

type DeleteNotificationsNoContent

type DeleteNotificationsNoContent struct{}

DeleteNotificationsNoContent is response for DeleteNotifications operation.

type DeleteNotificationsNotFound

type DeleteNotificationsNotFound struct{}

DeleteNotificationsNotFound is response for DeleteNotifications operation.

type DeleteNotificationsParams

type DeleteNotificationsParams struct {
	// The IDs of the notifications.
	Ids string
}

DeleteNotificationsParams is parameters of deleteNotifications operation.

type DeleteNotificationsRes

type DeleteNotificationsRes interface {
	// contains filtered or unexported methods
}

type DeleteProjectIconNoContent

type DeleteProjectIconNoContent struct{}

DeleteProjectIconNoContent is response for DeleteProjectIcon operation.

type DeleteProjectIconParams

type DeleteProjectIconParams struct {
	// The ID or slug of the project.
	IDSlug string
}

DeleteProjectIconParams is parameters of deleteProjectIcon operation.

type DeleteProjectIconRes

type DeleteProjectIconRes interface {
	// contains filtered or unexported methods
}

type DeleteProjectNoContent

type DeleteProjectNoContent struct{}

DeleteProjectNoContent is response for DeleteProject operation.

type DeleteProjectParams

type DeleteProjectParams struct {
	// The ID or slug of the project.
	IDSlug string
}

DeleteProjectParams is parameters of deleteProject operation.

type DeleteProjectRes

type DeleteProjectRes interface {
	// contains filtered or unexported methods
}

type DeleteTeamMemberNoContent

type DeleteTeamMemberNoContent struct{}

DeleteTeamMemberNoContent is response for DeleteTeamMember operation.

type DeleteTeamMemberNotFound

type DeleteTeamMemberNotFound struct{}

DeleteTeamMemberNotFound is response for DeleteTeamMember operation.

type DeleteTeamMemberParams

type DeleteTeamMemberParams struct {
	// The ID of the team.
	ID string
	// The ID or username of the user.
	IDUsername string
}

DeleteTeamMemberParams is parameters of deleteTeamMember operation.

type DeleteTeamMemberRes

type DeleteTeamMemberRes interface {
	// contains filtered or unexported methods
}

type DeleteThreadMessageNoContent

type DeleteThreadMessageNoContent struct{}

DeleteThreadMessageNoContent is response for DeleteThreadMessage operation.

type DeleteThreadMessageNotFound

type DeleteThreadMessageNotFound struct{}

DeleteThreadMessageNotFound is response for DeleteThreadMessage operation.

type DeleteThreadMessageParams

type DeleteThreadMessageParams struct {
	// The ID of the message.
	ID string
}

DeleteThreadMessageParams is parameters of deleteThreadMessage operation.

type DeleteThreadMessageRes

type DeleteThreadMessageRes interface {
	// contains filtered or unexported methods
}

type DeleteUserIconNoContent

type DeleteUserIconNoContent struct{}

DeleteUserIconNoContent is response for DeleteUserIcon operation.

type DeleteUserIconNotFound

type DeleteUserIconNotFound struct{}

DeleteUserIconNotFound is response for DeleteUserIcon operation.

type DeleteUserIconParams

type DeleteUserIconParams struct {
	// The ID or username of the user.
	IDUsername string
}

DeleteUserIconParams is parameters of deleteUserIcon operation.

type DeleteUserIconRes

type DeleteUserIconRes interface {
	// contains filtered or unexported methods
}

type DeleteVersionNoContent

type DeleteVersionNoContent struct{}

DeleteVersionNoContent is response for DeleteVersion operation.

type DeleteVersionNotFound

type DeleteVersionNotFound struct{}

DeleteVersionNotFound is response for DeleteVersion operation.

type DeleteVersionParams

type DeleteVersionParams struct {
	// The ID of the version.
	ID string
}

DeleteVersionParams is parameters of deleteVersion operation.

type DeleteVersionRes

type DeleteVersionRes interface {
	// contains filtered or unexported methods
}

type DonationPlatformTag

type DonationPlatformTag struct {
	// The short identifier of the donation platform.
	Short string `json:"short"`
	// The full name of the donation platform.
	Name string `json:"name"`
}

Ref: #/components/schemas/DonationPlatformTag

func (*DonationPlatformTag) Decode

func (s *DonationPlatformTag) Decode(d *jx.Decoder) error

Decode decodes DonationPlatformTag from json.

func (*DonationPlatformTag) Encode

func (s *DonationPlatformTag) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DonationPlatformTag) GetName

func (s *DonationPlatformTag) GetName() string

GetName returns the value of Name.

func (*DonationPlatformTag) GetShort

func (s *DonationPlatformTag) GetShort() string

GetShort returns the value of Short.

func (*DonationPlatformTag) MarshalJSON

func (s *DonationPlatformTag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DonationPlatformTag) SetName

func (s *DonationPlatformTag) SetName(val string)

SetName sets the value of Name.

func (*DonationPlatformTag) SetShort

func (s *DonationPlatformTag) SetShort(val string)

SetShort sets the value of Short.

func (*DonationPlatformTag) UnmarshalJSON

func (s *DonationPlatformTag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EditableFileType

type EditableFileType struct {
	// The hash algorithm of the hash specified in the hash field.
	Algorithm string `json:"algorithm"`
	// The hash of the file you're editing.
	Hash string `json:"hash"`
	// The hash algorithm of the file you're editing.
	FileType NilEditableFileTypeFileType `json:"file_type"`
}

Ref: #/components/schemas/EditableFileType

func (*EditableFileType) Decode

func (s *EditableFileType) Decode(d *jx.Decoder) error

Decode decodes EditableFileType from json.

func (*EditableFileType) Encode

func (s *EditableFileType) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EditableFileType) GetAlgorithm

func (s *EditableFileType) GetAlgorithm() string

GetAlgorithm returns the value of Algorithm.

func (*EditableFileType) GetFileType

GetFileType returns the value of FileType.

func (*EditableFileType) GetHash

func (s *EditableFileType) GetHash() string

GetHash returns the value of Hash.

func (*EditableFileType) MarshalJSON

func (s *EditableFileType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditableFileType) SetAlgorithm

func (s *EditableFileType) SetAlgorithm(val string)

SetAlgorithm sets the value of Algorithm.

func (*EditableFileType) SetFileType

func (s *EditableFileType) SetFileType(val NilEditableFileTypeFileType)

SetFileType sets the value of FileType.

func (*EditableFileType) SetHash

func (s *EditableFileType) SetHash(val string)

SetHash sets the value of Hash.

func (*EditableFileType) UnmarshalJSON

func (s *EditableFileType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableFileType) Validate

func (s *EditableFileType) Validate() error

type EditableFileTypeFileType

type EditableFileTypeFileType string

The hash algorithm of the file you're editing.

const (
	EditableFileTypeFileTypeRequiredResourcePack EditableFileTypeFileType = "required-resource-pack"
	EditableFileTypeFileTypeOptionalResourcePack EditableFileTypeFileType = "optional-resource-pack"
)

func (EditableFileTypeFileType) AllValues

AllValues returns all EditableFileTypeFileType values.

func (*EditableFileTypeFileType) Decode

func (s *EditableFileTypeFileType) Decode(d *jx.Decoder) error

Decode decodes EditableFileTypeFileType from json.

func (EditableFileTypeFileType) Encode

func (s EditableFileTypeFileType) Encode(e *jx.Encoder)

Encode encodes EditableFileTypeFileType as json.

func (EditableFileTypeFileType) MarshalJSON

func (s EditableFileTypeFileType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EditableFileTypeFileType) MarshalText

func (s EditableFileTypeFileType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EditableFileTypeFileType) UnmarshalJSON

func (s *EditableFileTypeFileType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableFileTypeFileType) UnmarshalText

func (s *EditableFileTypeFileType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EditableFileTypeFileType) Validate

func (s EditableFileTypeFileType) Validate() error

type EditableProject

type EditableProject struct {
	// The slug of a project, used for vanity URLs. Regex: “`^[\w!@$()`.+,"\-']{3,64}$“`.
	Slug OptString `json:"slug"`
	// The title or name of the project.
	Title OptString `json:"title"`
	// A short description of the project.
	Description OptString `json:"description"`
	// A list of the categories that the project has.
	Categories []string `json:"categories"`
	// The client side support of the project.
	ClientSide OptEditableProjectClientSide `json:"client_side"`
	// The server side support of the project.
	ServerSide OptEditableProjectServerSide `json:"server_side"`
	// A long form description of the project.
	Body OptString `json:"body"`
	// The status of the project.
	Status OptEditableProjectStatus `json:"status"`
	// The requested status when submitting for review or scheduling the project for release.
	RequestedStatus OptNilEditableProjectRequestedStatus `json:"requested_status"`
	// A list of categories which are searchable but non-primary.
	AdditionalCategories []string `json:"additional_categories"`
	// An optional link to where to submit bugs or issues with the project.
	IssuesURL OptNilString `json:"issues_url"`
	// An optional link to the source code of the project.
	SourceURL OptNilString `json:"source_url"`
	// An optional link to the project's wiki page or other relevant information.
	WikiURL OptNilString `json:"wiki_url"`
	// An optional invite link to the project's discord.
	DiscordURL OptNilString `json:"discord_url"`
	// A list of donation links for the project.
	DonationUrls []ProjectDonationURL `json:"donation_urls"`
	// The SPDX license ID of a project.
	LicenseID OptString `json:"license_id"`
	// The URL to this license.
	LicenseURL OptNilString `json:"license_url"`
	// The title of the moderators' message for the project.
	ModerationMessage OptNilString `json:"moderation_message"`
	// The body of the moderators' message for the project.
	ModerationMessageBody OptNilString `json:"moderation_message_body"`
}

Merged schema. Ref: #/components/schemas/EditableProject

func (*EditableProject) Decode

func (s *EditableProject) Decode(d *jx.Decoder) error

Decode decodes EditableProject from json.

func (*EditableProject) Encode

func (s *EditableProject) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EditableProject) GetAdditionalCategories

func (s *EditableProject) GetAdditionalCategories() []string

GetAdditionalCategories returns the value of AdditionalCategories.

func (*EditableProject) GetBody

func (s *EditableProject) GetBody() OptString

GetBody returns the value of Body.

func (*EditableProject) GetCategories

func (s *EditableProject) GetCategories() []string

GetCategories returns the value of Categories.

func (*EditableProject) GetClientSide

func (s *EditableProject) GetClientSide() OptEditableProjectClientSide

GetClientSide returns the value of ClientSide.

func (*EditableProject) GetDescription

func (s *EditableProject) GetDescription() OptString

GetDescription returns the value of Description.

func (*EditableProject) GetDiscordURL

func (s *EditableProject) GetDiscordURL() OptNilString

GetDiscordURL returns the value of DiscordURL.

func (*EditableProject) GetDonationUrls

func (s *EditableProject) GetDonationUrls() []ProjectDonationURL

GetDonationUrls returns the value of DonationUrls.

func (*EditableProject) GetIssuesURL

func (s *EditableProject) GetIssuesURL() OptNilString

GetIssuesURL returns the value of IssuesURL.

func (*EditableProject) GetLicenseID

func (s *EditableProject) GetLicenseID() OptString

GetLicenseID returns the value of LicenseID.

func (*EditableProject) GetLicenseURL

func (s *EditableProject) GetLicenseURL() OptNilString

GetLicenseURL returns the value of LicenseURL.

func (*EditableProject) GetModerationMessage

func (s *EditableProject) GetModerationMessage() OptNilString

GetModerationMessage returns the value of ModerationMessage.

func (*EditableProject) GetModerationMessageBody

func (s *EditableProject) GetModerationMessageBody() OptNilString

GetModerationMessageBody returns the value of ModerationMessageBody.

func (*EditableProject) GetRequestedStatus

func (s *EditableProject) GetRequestedStatus() OptNilEditableProjectRequestedStatus

GetRequestedStatus returns the value of RequestedStatus.

func (*EditableProject) GetServerSide

func (s *EditableProject) GetServerSide() OptEditableProjectServerSide

GetServerSide returns the value of ServerSide.

func (*EditableProject) GetSlug

func (s *EditableProject) GetSlug() OptString

GetSlug returns the value of Slug.

func (*EditableProject) GetSourceURL

func (s *EditableProject) GetSourceURL() OptNilString

GetSourceURL returns the value of SourceURL.

func (*EditableProject) GetStatus

GetStatus returns the value of Status.

func (*EditableProject) GetTitle

func (s *EditableProject) GetTitle() OptString

GetTitle returns the value of Title.

func (*EditableProject) GetWikiURL

func (s *EditableProject) GetWikiURL() OptNilString

GetWikiURL returns the value of WikiURL.

func (*EditableProject) MarshalJSON

func (s *EditableProject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditableProject) SetAdditionalCategories

func (s *EditableProject) SetAdditionalCategories(val []string)

SetAdditionalCategories sets the value of AdditionalCategories.

func (*EditableProject) SetBody

func (s *EditableProject) SetBody(val OptString)

SetBody sets the value of Body.

func (*EditableProject) SetCategories

func (s *EditableProject) SetCategories(val []string)

SetCategories sets the value of Categories.

func (*EditableProject) SetClientSide

func (s *EditableProject) SetClientSide(val OptEditableProjectClientSide)

SetClientSide sets the value of ClientSide.

func (*EditableProject) SetDescription

func (s *EditableProject) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*EditableProject) SetDiscordURL

func (s *EditableProject) SetDiscordURL(val OptNilString)

SetDiscordURL sets the value of DiscordURL.

func (*EditableProject) SetDonationUrls

func (s *EditableProject) SetDonationUrls(val []ProjectDonationURL)

SetDonationUrls sets the value of DonationUrls.

func (*EditableProject) SetIssuesURL

func (s *EditableProject) SetIssuesURL(val OptNilString)

SetIssuesURL sets the value of IssuesURL.

func (*EditableProject) SetLicenseID

func (s *EditableProject) SetLicenseID(val OptString)

SetLicenseID sets the value of LicenseID.

func (*EditableProject) SetLicenseURL

func (s *EditableProject) SetLicenseURL(val OptNilString)

SetLicenseURL sets the value of LicenseURL.

func (*EditableProject) SetModerationMessage

func (s *EditableProject) SetModerationMessage(val OptNilString)

SetModerationMessage sets the value of ModerationMessage.

func (*EditableProject) SetModerationMessageBody

func (s *EditableProject) SetModerationMessageBody(val OptNilString)

SetModerationMessageBody sets the value of ModerationMessageBody.

func (*EditableProject) SetRequestedStatus

func (s *EditableProject) SetRequestedStatus(val OptNilEditableProjectRequestedStatus)

SetRequestedStatus sets the value of RequestedStatus.

func (*EditableProject) SetServerSide

func (s *EditableProject) SetServerSide(val OptEditableProjectServerSide)

SetServerSide sets the value of ServerSide.

func (*EditableProject) SetSlug

func (s *EditableProject) SetSlug(val OptString)

SetSlug sets the value of Slug.

func (*EditableProject) SetSourceURL

func (s *EditableProject) SetSourceURL(val OptNilString)

SetSourceURL sets the value of SourceURL.

func (*EditableProject) SetStatus

func (s *EditableProject) SetStatus(val OptEditableProjectStatus)

SetStatus sets the value of Status.

func (*EditableProject) SetTitle

func (s *EditableProject) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*EditableProject) SetWikiURL

func (s *EditableProject) SetWikiURL(val OptNilString)

SetWikiURL sets the value of WikiURL.

func (*EditableProject) UnmarshalJSON

func (s *EditableProject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableProject) Validate

func (s *EditableProject) Validate() error

type EditableProjectClientSide

type EditableProjectClientSide string

The client side support of the project.

const (
	EditableProjectClientSideRequired    EditableProjectClientSide = "required"
	EditableProjectClientSideOptional    EditableProjectClientSide = "optional"
	EditableProjectClientSideUnsupported EditableProjectClientSide = "unsupported"
	EditableProjectClientSideUnknown     EditableProjectClientSide = "unknown"
)

func (EditableProjectClientSide) AllValues

AllValues returns all EditableProjectClientSide values.

func (*EditableProjectClientSide) Decode

func (s *EditableProjectClientSide) Decode(d *jx.Decoder) error

Decode decodes EditableProjectClientSide from json.

func (EditableProjectClientSide) Encode

func (s EditableProjectClientSide) Encode(e *jx.Encoder)

Encode encodes EditableProjectClientSide as json.

func (EditableProjectClientSide) MarshalJSON

func (s EditableProjectClientSide) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EditableProjectClientSide) MarshalText

func (s EditableProjectClientSide) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EditableProjectClientSide) UnmarshalJSON

func (s *EditableProjectClientSide) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableProjectClientSide) UnmarshalText

func (s *EditableProjectClientSide) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EditableProjectClientSide) Validate

func (s EditableProjectClientSide) Validate() error

type EditableProjectRequestedStatus

type EditableProjectRequestedStatus string

The requested status when submitting for review or scheduling the project for release.

const (
	EditableProjectRequestedStatusApproved EditableProjectRequestedStatus = "approved"
	EditableProjectRequestedStatusArchived EditableProjectRequestedStatus = "archived"
	EditableProjectRequestedStatusUnlisted EditableProjectRequestedStatus = "unlisted"
	EditableProjectRequestedStatusPrivate  EditableProjectRequestedStatus = "private"
	EditableProjectRequestedStatusDraft    EditableProjectRequestedStatus = "draft"
)

func (EditableProjectRequestedStatus) AllValues

AllValues returns all EditableProjectRequestedStatus values.

func (*EditableProjectRequestedStatus) Decode

Decode decodes EditableProjectRequestedStatus from json.

func (EditableProjectRequestedStatus) Encode

Encode encodes EditableProjectRequestedStatus as json.

func (EditableProjectRequestedStatus) MarshalJSON

func (s EditableProjectRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EditableProjectRequestedStatus) MarshalText

func (s EditableProjectRequestedStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EditableProjectRequestedStatus) UnmarshalJSON

func (s *EditableProjectRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableProjectRequestedStatus) UnmarshalText

func (s *EditableProjectRequestedStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EditableProjectRequestedStatus) Validate

type EditableProjectServerSide

type EditableProjectServerSide string

The server side support of the project.

const (
	EditableProjectServerSideRequired    EditableProjectServerSide = "required"
	EditableProjectServerSideOptional    EditableProjectServerSide = "optional"
	EditableProjectServerSideUnsupported EditableProjectServerSide = "unsupported"
	EditableProjectServerSideUnknown     EditableProjectServerSide = "unknown"
)

func (EditableProjectServerSide) AllValues

AllValues returns all EditableProjectServerSide values.

func (*EditableProjectServerSide) Decode

func (s *EditableProjectServerSide) Decode(d *jx.Decoder) error

Decode decodes EditableProjectServerSide from json.

func (EditableProjectServerSide) Encode

func (s EditableProjectServerSide) Encode(e *jx.Encoder)

Encode encodes EditableProjectServerSide as json.

func (EditableProjectServerSide) MarshalJSON

func (s EditableProjectServerSide) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EditableProjectServerSide) MarshalText

func (s EditableProjectServerSide) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EditableProjectServerSide) UnmarshalJSON

func (s *EditableProjectServerSide) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableProjectServerSide) UnmarshalText

func (s *EditableProjectServerSide) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EditableProjectServerSide) Validate

func (s EditableProjectServerSide) Validate() error

type EditableProjectStatus

type EditableProjectStatus string

The status of the project.

const (
	EditableProjectStatusApproved   EditableProjectStatus = "approved"
	EditableProjectStatusArchived   EditableProjectStatus = "archived"
	EditableProjectStatusRejected   EditableProjectStatus = "rejected"
	EditableProjectStatusDraft      EditableProjectStatus = "draft"
	EditableProjectStatusUnlisted   EditableProjectStatus = "unlisted"
	EditableProjectStatusProcessing EditableProjectStatus = "processing"
	EditableProjectStatusWithheld   EditableProjectStatus = "withheld"
	EditableProjectStatusScheduled  EditableProjectStatus = "scheduled"
	EditableProjectStatusPrivate    EditableProjectStatus = "private"
	EditableProjectStatusUnknown    EditableProjectStatus = "unknown"
)

func (EditableProjectStatus) AllValues

AllValues returns all EditableProjectStatus values.

func (*EditableProjectStatus) Decode

func (s *EditableProjectStatus) Decode(d *jx.Decoder) error

Decode decodes EditableProjectStatus from json.

func (EditableProjectStatus) Encode

func (s EditableProjectStatus) Encode(e *jx.Encoder)

Encode encodes EditableProjectStatus as json.

func (EditableProjectStatus) MarshalJSON

func (s EditableProjectStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EditableProjectStatus) MarshalText

func (s EditableProjectStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EditableProjectStatus) UnmarshalJSON

func (s *EditableProjectStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableProjectStatus) UnmarshalText

func (s *EditableProjectStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EditableProjectStatus) Validate

func (s EditableProjectStatus) Validate() error

type EditableUser

type EditableUser struct {
	// The user's username.
	Username string `json:"username"`
	// The user's display name.
	Name OptNilString `json:"name"`
	// The user's email (only displayed if requesting your own account). Requires `USER_READ_EMAIL` PAT
	// scope.
	Email OptNilString `json:"email"`
	// A description of the user.
	Bio        OptString            `json:"bio"`
	PayoutData OptNilUserPayoutData `json:"payout_data"`
}

Ref: #/components/schemas/EditableUser

func (*EditableUser) Decode

func (s *EditableUser) Decode(d *jx.Decoder) error

Decode decodes EditableUser from json.

func (*EditableUser) Encode

func (s *EditableUser) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EditableUser) GetBio

func (s *EditableUser) GetBio() OptString

GetBio returns the value of Bio.

func (*EditableUser) GetEmail

func (s *EditableUser) GetEmail() OptNilString

GetEmail returns the value of Email.

func (*EditableUser) GetName

func (s *EditableUser) GetName() OptNilString

GetName returns the value of Name.

func (*EditableUser) GetPayoutData

func (s *EditableUser) GetPayoutData() OptNilUserPayoutData

GetPayoutData returns the value of PayoutData.

func (*EditableUser) GetUsername

func (s *EditableUser) GetUsername() string

GetUsername returns the value of Username.

func (*EditableUser) MarshalJSON

func (s *EditableUser) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditableUser) SetBio

func (s *EditableUser) SetBio(val OptString)

SetBio sets the value of Bio.

func (*EditableUser) SetEmail

func (s *EditableUser) SetEmail(val OptNilString)

SetEmail sets the value of Email.

func (*EditableUser) SetName

func (s *EditableUser) SetName(val OptNilString)

SetName sets the value of Name.

func (*EditableUser) SetPayoutData

func (s *EditableUser) SetPayoutData(val OptNilUserPayoutData)

SetPayoutData sets the value of PayoutData.

func (*EditableUser) SetUsername

func (s *EditableUser) SetUsername(val string)

SetUsername sets the value of Username.

func (*EditableUser) UnmarshalJSON

func (s *EditableUser) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableUser) Validate

func (s *EditableUser) Validate() error

type EditableVersion

type EditableVersion struct {
	// The name of this version.
	Name OptString `json:"name"`
	// The version number. Ideally will follow semantic versioning.
	VersionNumber OptString `json:"version_number"`
	// The changelog for this version.
	Changelog OptNilString `json:"changelog"`
	// A list of specific versions of projects that this version depends on.
	Dependencies []VersionDependency `json:"dependencies"`
	// A list of versions of Minecraft that this version supports.
	GameVersions []string `json:"game_versions"`
	// The release channel for this version.
	VersionType OptEditableVersionVersionType `json:"version_type"`
	// The mod loaders that this version supports. In case of resource packs, use "minecraft".
	Loaders []string `json:"loaders"`
	// Whether the version is featured or not.
	Featured        OptBool                              `json:"featured"`
	Status          OptEditableVersionStatus             `json:"status"`
	RequestedStatus OptNilEditableVersionRequestedStatus `json:"requested_status"`
	// The hash format and the hash of the new primary file.
	PrimaryFile []string `json:"primary_file"`
	// A list of file_types to edit.
	FileTypes []EditableFileType `json:"file_types"`
}

Merged schema. Ref: #/components/schemas/EditableVersion

func (*EditableVersion) Decode

func (s *EditableVersion) Decode(d *jx.Decoder) error

Decode decodes EditableVersion from json.

func (*EditableVersion) Encode

func (s *EditableVersion) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EditableVersion) GetChangelog

func (s *EditableVersion) GetChangelog() OptNilString

GetChangelog returns the value of Changelog.

func (*EditableVersion) GetDependencies

func (s *EditableVersion) GetDependencies() []VersionDependency

GetDependencies returns the value of Dependencies.

func (*EditableVersion) GetFeatured

func (s *EditableVersion) GetFeatured() OptBool

GetFeatured returns the value of Featured.

func (*EditableVersion) GetFileTypes

func (s *EditableVersion) GetFileTypes() []EditableFileType

GetFileTypes returns the value of FileTypes.

func (*EditableVersion) GetGameVersions

func (s *EditableVersion) GetGameVersions() []string

GetGameVersions returns the value of GameVersions.

func (*EditableVersion) GetLoaders

func (s *EditableVersion) GetLoaders() []string

GetLoaders returns the value of Loaders.

func (*EditableVersion) GetName

func (s *EditableVersion) GetName() OptString

GetName returns the value of Name.

func (*EditableVersion) GetPrimaryFile

func (s *EditableVersion) GetPrimaryFile() []string

GetPrimaryFile returns the value of PrimaryFile.

func (*EditableVersion) GetRequestedStatus

func (s *EditableVersion) GetRequestedStatus() OptNilEditableVersionRequestedStatus

GetRequestedStatus returns the value of RequestedStatus.

func (*EditableVersion) GetStatus

GetStatus returns the value of Status.

func (*EditableVersion) GetVersionNumber

func (s *EditableVersion) GetVersionNumber() OptString

GetVersionNumber returns the value of VersionNumber.

func (*EditableVersion) GetVersionType

func (s *EditableVersion) GetVersionType() OptEditableVersionVersionType

GetVersionType returns the value of VersionType.

func (*EditableVersion) MarshalJSON

func (s *EditableVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditableVersion) SetChangelog

func (s *EditableVersion) SetChangelog(val OptNilString)

SetChangelog sets the value of Changelog.

func (*EditableVersion) SetDependencies

func (s *EditableVersion) SetDependencies(val []VersionDependency)

SetDependencies sets the value of Dependencies.

func (*EditableVersion) SetFeatured

func (s *EditableVersion) SetFeatured(val OptBool)

SetFeatured sets the value of Featured.

func (*EditableVersion) SetFileTypes

func (s *EditableVersion) SetFileTypes(val []EditableFileType)

SetFileTypes sets the value of FileTypes.

func (*EditableVersion) SetGameVersions

func (s *EditableVersion) SetGameVersions(val []string)

SetGameVersions sets the value of GameVersions.

func (*EditableVersion) SetLoaders

func (s *EditableVersion) SetLoaders(val []string)

SetLoaders sets the value of Loaders.

func (*EditableVersion) SetName

func (s *EditableVersion) SetName(val OptString)

SetName sets the value of Name.

func (*EditableVersion) SetPrimaryFile

func (s *EditableVersion) SetPrimaryFile(val []string)

SetPrimaryFile sets the value of PrimaryFile.

func (*EditableVersion) SetRequestedStatus

func (s *EditableVersion) SetRequestedStatus(val OptNilEditableVersionRequestedStatus)

SetRequestedStatus sets the value of RequestedStatus.

func (*EditableVersion) SetStatus

func (s *EditableVersion) SetStatus(val OptEditableVersionStatus)

SetStatus sets the value of Status.

func (*EditableVersion) SetVersionNumber

func (s *EditableVersion) SetVersionNumber(val OptString)

SetVersionNumber sets the value of VersionNumber.

func (*EditableVersion) SetVersionType

func (s *EditableVersion) SetVersionType(val OptEditableVersionVersionType)

SetVersionType sets the value of VersionType.

func (*EditableVersion) UnmarshalJSON

func (s *EditableVersion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableVersion) Validate

func (s *EditableVersion) Validate() error

type EditableVersionRequestedStatus

type EditableVersionRequestedStatus string
const (
	EditableVersionRequestedStatusListed   EditableVersionRequestedStatus = "listed"
	EditableVersionRequestedStatusArchived EditableVersionRequestedStatus = "archived"
	EditableVersionRequestedStatusDraft    EditableVersionRequestedStatus = "draft"
	EditableVersionRequestedStatusUnlisted EditableVersionRequestedStatus = "unlisted"
)

func (EditableVersionRequestedStatus) AllValues

AllValues returns all EditableVersionRequestedStatus values.

func (*EditableVersionRequestedStatus) Decode

Decode decodes EditableVersionRequestedStatus from json.

func (EditableVersionRequestedStatus) Encode

Encode encodes EditableVersionRequestedStatus as json.

func (EditableVersionRequestedStatus) MarshalJSON

func (s EditableVersionRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EditableVersionRequestedStatus) MarshalText

func (s EditableVersionRequestedStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EditableVersionRequestedStatus) UnmarshalJSON

func (s *EditableVersionRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableVersionRequestedStatus) UnmarshalText

func (s *EditableVersionRequestedStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EditableVersionRequestedStatus) Validate

type EditableVersionStatus

type EditableVersionStatus string
const (
	EditableVersionStatusListed    EditableVersionStatus = "listed"
	EditableVersionStatusArchived  EditableVersionStatus = "archived"
	EditableVersionStatusDraft     EditableVersionStatus = "draft"
	EditableVersionStatusUnlisted  EditableVersionStatus = "unlisted"
	EditableVersionStatusScheduled EditableVersionStatus = "scheduled"
	EditableVersionStatusUnknown   EditableVersionStatus = "unknown"
)

func (EditableVersionStatus) AllValues

AllValues returns all EditableVersionStatus values.

func (*EditableVersionStatus) Decode

func (s *EditableVersionStatus) Decode(d *jx.Decoder) error

Decode decodes EditableVersionStatus from json.

func (EditableVersionStatus) Encode

func (s EditableVersionStatus) Encode(e *jx.Encoder)

Encode encodes EditableVersionStatus as json.

func (EditableVersionStatus) MarshalJSON

func (s EditableVersionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EditableVersionStatus) MarshalText

func (s EditableVersionStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EditableVersionStatus) UnmarshalJSON

func (s *EditableVersionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableVersionStatus) UnmarshalText

func (s *EditableVersionStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EditableVersionStatus) Validate

func (s EditableVersionStatus) Validate() error

type EditableVersionVersionType

type EditableVersionVersionType string

The release channel for this version.

const (
	EditableVersionVersionTypeRelease EditableVersionVersionType = "release"
	EditableVersionVersionTypeBeta    EditableVersionVersionType = "beta"
	EditableVersionVersionTypeAlpha   EditableVersionVersionType = "alpha"
)

func (EditableVersionVersionType) AllValues

AllValues returns all EditableVersionVersionType values.

func (*EditableVersionVersionType) Decode

Decode decodes EditableVersionVersionType from json.

func (EditableVersionVersionType) Encode

func (s EditableVersionVersionType) Encode(e *jx.Encoder)

Encode encodes EditableVersionVersionType as json.

func (EditableVersionVersionType) MarshalJSON

func (s EditableVersionVersionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EditableVersionVersionType) MarshalText

func (s EditableVersionVersionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EditableVersionVersionType) UnmarshalJSON

func (s *EditableVersionVersionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditableVersionVersionType) UnmarshalText

func (s *EditableVersionVersionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EditableVersionVersionType) Validate

func (s EditableVersionVersionType) Validate() error

type FollowProjectNoContent

type FollowProjectNoContent struct{}

FollowProjectNoContent is response for FollowProject operation.

type FollowProjectParams

type FollowProjectParams struct {
	// The ID or slug of the project.
	IDSlug string
}

FollowProjectParams is parameters of followProject operation.

type FollowProjectRes

type FollowProjectRes interface {
	// contains filtered or unexported methods
}

type ForgeUpdateCheckerPromos

type ForgeUpdateCheckerPromos struct {
	// The mod version that is recommended for `{version}`. Excludes versions with the `alpha` and `beta`
	// version types.
	VersionMinusRecommended OptString `json:"{version}-recommended"`
	// The latest mod version for `{version}`. Shows versions with the `alpha` and `beta` version types.
	VersionMinusLatest OptString `json:"{version}-latest"`
}

A list of the recommended and latest versions for each Minecraft release. Ref: #/components/schemas/ForgeUpdateCheckerPromos

func (*ForgeUpdateCheckerPromos) Decode

func (s *ForgeUpdateCheckerPromos) Decode(d *jx.Decoder) error

Decode decodes ForgeUpdateCheckerPromos from json.

func (*ForgeUpdateCheckerPromos) Encode

func (s *ForgeUpdateCheckerPromos) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ForgeUpdateCheckerPromos) GetVersionMinusLatest

func (s *ForgeUpdateCheckerPromos) GetVersionMinusLatest() OptString

GetVersionMinusLatest returns the value of VersionMinusLatest.

func (*ForgeUpdateCheckerPromos) GetVersionMinusRecommended

func (s *ForgeUpdateCheckerPromos) GetVersionMinusRecommended() OptString

GetVersionMinusRecommended returns the value of VersionMinusRecommended.

func (*ForgeUpdateCheckerPromos) MarshalJSON

func (s *ForgeUpdateCheckerPromos) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ForgeUpdateCheckerPromos) SetVersionMinusLatest

func (s *ForgeUpdateCheckerPromos) SetVersionMinusLatest(val OptString)

SetVersionMinusLatest sets the value of VersionMinusLatest.

func (*ForgeUpdateCheckerPromos) SetVersionMinusRecommended

func (s *ForgeUpdateCheckerPromos) SetVersionMinusRecommended(val OptString)

SetVersionMinusRecommended sets the value of VersionMinusRecommended.

func (*ForgeUpdateCheckerPromos) UnmarshalJSON

func (s *ForgeUpdateCheckerPromos) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ForgeUpdates

type ForgeUpdates struct {
	// A link to the mod page.
	Homepage OptString                   `json:"homepage"`
	Promos   OptForgeUpdateCheckerPromos `json:"promos"`
}

Mod version information that can be consumed by Forge's update checker. Ref: #/components/schemas/ForgeUpdates

func (*ForgeUpdates) Decode

func (s *ForgeUpdates) Decode(d *jx.Decoder) error

Decode decodes ForgeUpdates from json.

func (*ForgeUpdates) Encode

func (s *ForgeUpdates) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ForgeUpdates) GetHomepage

func (s *ForgeUpdates) GetHomepage() OptString

GetHomepage returns the value of Homepage.

func (*ForgeUpdates) GetPromos

GetPromos returns the value of Promos.

func (*ForgeUpdates) MarshalJSON

func (s *ForgeUpdates) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ForgeUpdates) SetHomepage

func (s *ForgeUpdates) SetHomepage(val OptString)

SetHomepage sets the value of Homepage.

func (*ForgeUpdates) SetPromos

func (s *ForgeUpdates) SetPromos(val OptForgeUpdateCheckerPromos)

SetPromos sets the value of Promos.

func (*ForgeUpdates) UnmarshalJSON

func (s *ForgeUpdates) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ForgeUpdatesParams

type ForgeUpdatesParams struct {
	// The ID or slug of the project.
	IDSlug string
}

ForgeUpdatesParams is parameters of forgeUpdates operation.

type ForgeUpdatesRes

type ForgeUpdatesRes interface {
	// contains filtered or unexported methods
}

type GalleryImage

type GalleryImage struct {
	// The URL of the gallery image.
	URL string `json:"url"`
	// Whether the image is featured in the gallery.
	Featured bool `json:"featured"`
	// The title of the gallery image.
	Title OptNilString `json:"title"`
	// The description of the gallery image.
	Description OptNilString `json:"description"`
	// The date and time the gallery image was created.
	Created string `json:"created"`
	// The order of the gallery image. Gallery images are sorted by this field and then alphabetically by
	// title.
	Ordering OptInt `json:"ordering"`
}

Ref: #/components/schemas/GalleryImage

func (*GalleryImage) Decode

func (s *GalleryImage) Decode(d *jx.Decoder) error

Decode decodes GalleryImage from json.

func (*GalleryImage) Encode

func (s *GalleryImage) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GalleryImage) GetCreated

func (s *GalleryImage) GetCreated() string

GetCreated returns the value of Created.

func (*GalleryImage) GetDescription

func (s *GalleryImage) GetDescription() OptNilString

GetDescription returns the value of Description.

func (*GalleryImage) GetFeatured

func (s *GalleryImage) GetFeatured() bool

GetFeatured returns the value of Featured.

func (*GalleryImage) GetOrdering

func (s *GalleryImage) GetOrdering() OptInt

GetOrdering returns the value of Ordering.

func (*GalleryImage) GetTitle

func (s *GalleryImage) GetTitle() OptNilString

GetTitle returns the value of Title.

func (*GalleryImage) GetURL

func (s *GalleryImage) GetURL() string

GetURL returns the value of URL.

func (*GalleryImage) MarshalJSON

func (s *GalleryImage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GalleryImage) SetCreated

func (s *GalleryImage) SetCreated(val string)

SetCreated sets the value of Created.

func (*GalleryImage) SetDescription

func (s *GalleryImage) SetDescription(val OptNilString)

SetDescription sets the value of Description.

func (*GalleryImage) SetFeatured

func (s *GalleryImage) SetFeatured(val bool)

SetFeatured sets the value of Featured.

func (*GalleryImage) SetOrdering

func (s *GalleryImage) SetOrdering(val OptInt)

SetOrdering sets the value of Ordering.

func (*GalleryImage) SetTitle

func (s *GalleryImage) SetTitle(val OptNilString)

SetTitle sets the value of Title.

func (*GalleryImage) SetURL

func (s *GalleryImage) SetURL(val string)

SetURL sets the value of URL.

func (*GalleryImage) UnmarshalJSON

func (s *GalleryImage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GameVersionTag

type GameVersionTag struct {
	// The name/number of the game version.
	Version string `json:"version"`
	// The type of the game version.
	VersionType GameVersionTagVersionType `json:"version_type"`
	// The date of the game version release.
	Date string `json:"date"`
	// Whether or not this is a major version, used for Featured Versions.
	Major bool `json:"major"`
}

Ref: #/components/schemas/GameVersionTag

func (*GameVersionTag) Decode

func (s *GameVersionTag) Decode(d *jx.Decoder) error

Decode decodes GameVersionTag from json.

func (*GameVersionTag) Encode

func (s *GameVersionTag) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GameVersionTag) GetDate

func (s *GameVersionTag) GetDate() string

GetDate returns the value of Date.

func (*GameVersionTag) GetMajor

func (s *GameVersionTag) GetMajor() bool

GetMajor returns the value of Major.

func (*GameVersionTag) GetVersion

func (s *GameVersionTag) GetVersion() string

GetVersion returns the value of Version.

func (*GameVersionTag) GetVersionType

func (s *GameVersionTag) GetVersionType() GameVersionTagVersionType

GetVersionType returns the value of VersionType.

func (*GameVersionTag) MarshalJSON

func (s *GameVersionTag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GameVersionTag) SetDate

func (s *GameVersionTag) SetDate(val string)

SetDate sets the value of Date.

func (*GameVersionTag) SetMajor

func (s *GameVersionTag) SetMajor(val bool)

SetMajor sets the value of Major.

func (*GameVersionTag) SetVersion

func (s *GameVersionTag) SetVersion(val string)

SetVersion sets the value of Version.

func (*GameVersionTag) SetVersionType

func (s *GameVersionTag) SetVersionType(val GameVersionTagVersionType)

SetVersionType sets the value of VersionType.

func (*GameVersionTag) UnmarshalJSON

func (s *GameVersionTag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GameVersionTag) Validate

func (s *GameVersionTag) Validate() error

type GameVersionTagVersionType

type GameVersionTagVersionType string

The type of the game version.

const (
	GameVersionTagVersionTypeRelease  GameVersionTagVersionType = "release"
	GameVersionTagVersionTypeSnapshot GameVersionTagVersionType = "snapshot"
	GameVersionTagVersionTypeAlpha    GameVersionTagVersionType = "alpha"
	GameVersionTagVersionTypeBeta     GameVersionTagVersionType = "beta"
)

func (GameVersionTagVersionType) AllValues

AllValues returns all GameVersionTagVersionType values.

func (*GameVersionTagVersionType) Decode

func (s *GameVersionTagVersionType) Decode(d *jx.Decoder) error

Decode decodes GameVersionTagVersionType from json.

func (GameVersionTagVersionType) Encode

func (s GameVersionTagVersionType) Encode(e *jx.Encoder)

Encode encodes GameVersionTagVersionType as json.

func (GameVersionTagVersionType) MarshalJSON

func (s GameVersionTagVersionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (GameVersionTagVersionType) MarshalText

func (s GameVersionTagVersionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*GameVersionTagVersionType) UnmarshalJSON

func (s *GameVersionTagVersionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GameVersionTagVersionType) UnmarshalText

func (s *GameVersionTagVersionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GameVersionTagVersionType) Validate

func (s GameVersionTagVersionType) Validate() error

type GetDependenciesNotFound

type GetDependenciesNotFound struct{}

GetDependenciesNotFound is response for GetDependencies operation.

type GetDependenciesParams

type GetDependenciesParams struct {
	// The ID or slug of the project.
	IDSlug string
}

GetDependenciesParams is parameters of getDependencies operation.

type GetDependenciesRes

type GetDependenciesRes interface {
	// contains filtered or unexported methods
}

type GetFollowedProjectsNotFound

type GetFollowedProjectsNotFound struct{}

GetFollowedProjectsNotFound is response for GetFollowedProjects operation.

type GetFollowedProjectsOKApplicationJSON

type GetFollowedProjectsOKApplicationJSON []Project

func (*GetFollowedProjectsOKApplicationJSON) Decode

Decode decodes GetFollowedProjectsOKApplicationJSON from json.

func (GetFollowedProjectsOKApplicationJSON) Encode

Encode encodes GetFollowedProjectsOKApplicationJSON as json.

func (GetFollowedProjectsOKApplicationJSON) MarshalJSON

func (s GetFollowedProjectsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFollowedProjectsOKApplicationJSON) UnmarshalJSON

func (s *GetFollowedProjectsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetFollowedProjectsOKApplicationJSON) Validate

type GetFollowedProjectsParams

type GetFollowedProjectsParams struct {
	// The ID or username of the user.
	IDUsername string
}

GetFollowedProjectsParams is parameters of getFollowedProjects operation.

type GetFollowedProjectsRes

type GetFollowedProjectsRes interface {
	// contains filtered or unexported methods
}

type GetLatestVersionFromHashBadRequest

type GetLatestVersionFromHashBadRequest struct{}

GetLatestVersionFromHashBadRequest is response for GetLatestVersionFromHash operation.

type GetLatestVersionFromHashBody

type GetLatestVersionFromHashBody struct {
	Loaders      []string `json:"loaders"`
	GameVersions []string `json:"game_versions"`
}

Ref: #/components/schemas/GetLatestVersionFromHashBody

func (*GetLatestVersionFromHashBody) Decode

Decode decodes GetLatestVersionFromHashBody from json.

func (*GetLatestVersionFromHashBody) Encode

func (s *GetLatestVersionFromHashBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetLatestVersionFromHashBody) GetGameVersions

func (s *GetLatestVersionFromHashBody) GetGameVersions() []string

GetGameVersions returns the value of GameVersions.

func (*GetLatestVersionFromHashBody) GetLoaders

func (s *GetLatestVersionFromHashBody) GetLoaders() []string

GetLoaders returns the value of Loaders.

func (*GetLatestVersionFromHashBody) MarshalJSON

func (s *GetLatestVersionFromHashBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLatestVersionFromHashBody) SetGameVersions

func (s *GetLatestVersionFromHashBody) SetGameVersions(val []string)

SetGameVersions sets the value of GameVersions.

func (*GetLatestVersionFromHashBody) SetLoaders

func (s *GetLatestVersionFromHashBody) SetLoaders(val []string)

SetLoaders sets the value of Loaders.

func (*GetLatestVersionFromHashBody) UnmarshalJSON

func (s *GetLatestVersionFromHashBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetLatestVersionFromHashBody) Validate

func (s *GetLatestVersionFromHashBody) Validate() error

type GetLatestVersionFromHashNotFound

type GetLatestVersionFromHashNotFound struct{}

GetLatestVersionFromHashNotFound is response for GetLatestVersionFromHash operation.

type GetLatestVersionFromHashParams

type GetLatestVersionFromHashParams struct {
	// The hash of the file, considering its byte content, and encoded in hexadecimal.
	Hash string
	// The algorithm of the hash.
	Algorithm AlgorithmIdentifier
}

GetLatestVersionFromHashParams is parameters of getLatestVersionFromHash operation.

type GetLatestVersionFromHashRes

type GetLatestVersionFromHashRes interface {
	// contains filtered or unexported methods
}

type GetLatestVersionsFromHashesBadRequest

type GetLatestVersionsFromHashesBadRequest struct{}

GetLatestVersionsFromHashesBadRequest is response for GetLatestVersionsFromHashes operation.

type GetLatestVersionsFromHashesBody

type GetLatestVersionsFromHashesBody struct {
	Hashes       []string                                 `json:"hashes"`
	Algorithm    GetLatestVersionsFromHashesBodyAlgorithm `json:"algorithm"`
	Loaders      []string                                 `json:"loaders"`
	GameVersions []string                                 `json:"game_versions"`
}

Merged schema. Ref: #/components/schemas/GetLatestVersionsFromHashesBody

func (*GetLatestVersionsFromHashesBody) Decode

Decode decodes GetLatestVersionsFromHashesBody from json.

func (*GetLatestVersionsFromHashesBody) Encode

Encode implements json.Marshaler.

func (*GetLatestVersionsFromHashesBody) GetAlgorithm

GetAlgorithm returns the value of Algorithm.

func (*GetLatestVersionsFromHashesBody) GetGameVersions

func (s *GetLatestVersionsFromHashesBody) GetGameVersions() []string

GetGameVersions returns the value of GameVersions.

func (*GetLatestVersionsFromHashesBody) GetHashes

func (s *GetLatestVersionsFromHashesBody) GetHashes() []string

GetHashes returns the value of Hashes.

func (*GetLatestVersionsFromHashesBody) GetLoaders

func (s *GetLatestVersionsFromHashesBody) GetLoaders() []string

GetLoaders returns the value of Loaders.

func (*GetLatestVersionsFromHashesBody) MarshalJSON

func (s *GetLatestVersionsFromHashesBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLatestVersionsFromHashesBody) SetAlgorithm

SetAlgorithm sets the value of Algorithm.

func (*GetLatestVersionsFromHashesBody) SetGameVersions

func (s *GetLatestVersionsFromHashesBody) SetGameVersions(val []string)

SetGameVersions sets the value of GameVersions.

func (*GetLatestVersionsFromHashesBody) SetHashes

func (s *GetLatestVersionsFromHashesBody) SetHashes(val []string)

SetHashes sets the value of Hashes.

func (*GetLatestVersionsFromHashesBody) SetLoaders

func (s *GetLatestVersionsFromHashesBody) SetLoaders(val []string)

SetLoaders sets the value of Loaders.

func (*GetLatestVersionsFromHashesBody) UnmarshalJSON

func (s *GetLatestVersionsFromHashesBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetLatestVersionsFromHashesBody) Validate

func (s *GetLatestVersionsFromHashesBody) Validate() error

type GetLatestVersionsFromHashesBodyAlgorithm

type GetLatestVersionsFromHashesBodyAlgorithm string
const (
	GetLatestVersionsFromHashesBodyAlgorithmSHA1   GetLatestVersionsFromHashesBodyAlgorithm = "sha1"
	GetLatestVersionsFromHashesBodyAlgorithmSha512 GetLatestVersionsFromHashesBodyAlgorithm = "sha512"
)

func (GetLatestVersionsFromHashesBodyAlgorithm) AllValues

AllValues returns all GetLatestVersionsFromHashesBodyAlgorithm values.

func (*GetLatestVersionsFromHashesBodyAlgorithm) Decode

Decode decodes GetLatestVersionsFromHashesBodyAlgorithm from json.

func (GetLatestVersionsFromHashesBodyAlgorithm) Encode

Encode encodes GetLatestVersionsFromHashesBodyAlgorithm as json.

func (GetLatestVersionsFromHashesBodyAlgorithm) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (GetLatestVersionsFromHashesBodyAlgorithm) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*GetLatestVersionsFromHashesBodyAlgorithm) UnmarshalJSON

func (s *GetLatestVersionsFromHashesBodyAlgorithm) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetLatestVersionsFromHashesBodyAlgorithm) UnmarshalText

func (s *GetLatestVersionsFromHashesBodyAlgorithm) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (GetLatestVersionsFromHashesBodyAlgorithm) Validate

type GetLatestVersionsFromHashesRes

type GetLatestVersionsFromHashesRes interface {
	// contains filtered or unexported methods
}

type GetNotificationNotFound

type GetNotificationNotFound struct{}

GetNotificationNotFound is response for GetNotification operation.

type GetNotificationParams

type GetNotificationParams struct {
	// The ID of the notification.
	ID string
}

GetNotificationParams is parameters of getNotification operation.

type GetNotificationRes

type GetNotificationRes interface {
	// contains filtered or unexported methods
}

type GetNotificationsNotFound

type GetNotificationsNotFound struct{}

GetNotificationsNotFound is response for GetNotifications operation.

type GetNotificationsOKApplicationJSON

type GetNotificationsOKApplicationJSON []Notification

func (*GetNotificationsOKApplicationJSON) Decode

Decode decodes GetNotificationsOKApplicationJSON from json.

func (GetNotificationsOKApplicationJSON) Encode

Encode encodes GetNotificationsOKApplicationJSON as json.

func (GetNotificationsOKApplicationJSON) MarshalJSON

func (s GetNotificationsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetNotificationsOKApplicationJSON) UnmarshalJSON

func (s *GetNotificationsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetNotificationsOKApplicationJSON) Validate

type GetNotificationsParams

type GetNotificationsParams struct {
	// The IDs of the notifications.
	Ids string
}

GetNotificationsParams is parameters of getNotifications operation.

type GetNotificationsRes

type GetNotificationsRes interface {
	// contains filtered or unexported methods
}

type GetOpenReportsNotFound

type GetOpenReportsNotFound struct{}

GetOpenReportsNotFound is response for GetOpenReports operation.

type GetOpenReportsOKApplicationJSON

type GetOpenReportsOKApplicationJSON []Report

func (*GetOpenReportsOKApplicationJSON) Decode

Decode decodes GetOpenReportsOKApplicationJSON from json.

func (GetOpenReportsOKApplicationJSON) Encode

Encode encodes GetOpenReportsOKApplicationJSON as json.

func (GetOpenReportsOKApplicationJSON) MarshalJSON

func (s GetOpenReportsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetOpenReportsOKApplicationJSON) UnmarshalJSON

func (s *GetOpenReportsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetOpenReportsOKApplicationJSON) Validate

type GetOpenReportsParams

type GetOpenReportsParams struct {
	Count OptInt
}

GetOpenReportsParams is parameters of getOpenReports operation.

type GetOpenReportsRes

type GetOpenReportsRes interface {
	// contains filtered or unexported methods
}

type GetPayoutHistoryNotFound

type GetPayoutHistoryNotFound struct{}

GetPayoutHistoryNotFound is response for GetPayoutHistory operation.

type GetPayoutHistoryParams

type GetPayoutHistoryParams struct {
	// The ID or username of the user.
	IDUsername string
}

GetPayoutHistoryParams is parameters of getPayoutHistory operation.

type GetPayoutHistoryRes

type GetPayoutHistoryRes interface {
	// contains filtered or unexported methods
}

type GetProjectNotFound

type GetProjectNotFound struct{}

GetProjectNotFound is response for GetProject operation.

type GetProjectParams

type GetProjectParams struct {
	// The ID or slug of the project.
	IDSlug string
}

GetProjectParams is parameters of getProject operation.

type GetProjectRes

type GetProjectRes interface {
	// contains filtered or unexported methods
}

type GetProjectTeamMembersNotFound

type GetProjectTeamMembersNotFound struct{}

GetProjectTeamMembersNotFound is response for GetProjectTeamMembers operation.

type GetProjectTeamMembersOKApplicationJSON

type GetProjectTeamMembersOKApplicationJSON []TeamMember

func (*GetProjectTeamMembersOKApplicationJSON) Decode

Decode decodes GetProjectTeamMembersOKApplicationJSON from json.

func (GetProjectTeamMembersOKApplicationJSON) Encode

Encode encodes GetProjectTeamMembersOKApplicationJSON as json.

func (GetProjectTeamMembersOKApplicationJSON) MarshalJSON

func (s GetProjectTeamMembersOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetProjectTeamMembersOKApplicationJSON) UnmarshalJSON

func (s *GetProjectTeamMembersOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetProjectTeamMembersOKApplicationJSON) Validate

type GetProjectTeamMembersParams

type GetProjectTeamMembersParams struct {
	// The ID or slug of the project.
	IDSlug string
}

GetProjectTeamMembersParams is parameters of getProjectTeamMembers operation.

type GetProjectTeamMembersRes

type GetProjectTeamMembersRes interface {
	// contains filtered or unexported methods
}

type GetProjectVersionsNotFound

type GetProjectVersionsNotFound struct{}

GetProjectVersionsNotFound is response for GetProjectVersions operation.

type GetProjectVersionsOKApplicationJSON

type GetProjectVersionsOKApplicationJSON []Version

func (*GetProjectVersionsOKApplicationJSON) Decode

Decode decodes GetProjectVersionsOKApplicationJSON from json.

func (GetProjectVersionsOKApplicationJSON) Encode

Encode encodes GetProjectVersionsOKApplicationJSON as json.

func (GetProjectVersionsOKApplicationJSON) MarshalJSON

func (s GetProjectVersionsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetProjectVersionsOKApplicationJSON) UnmarshalJSON

func (s *GetProjectVersionsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetProjectVersionsOKApplicationJSON) Validate

type GetProjectVersionsParams

type GetProjectVersionsParams struct {
	// The types of loaders to filter for.
	Loaders OptString
	// The game versions to filter for.
	GameVersions OptString
	// Allows to filter for featured or non-featured versions only.
	Featured OptBool
	// The ID or slug of the project.
	IDSlug string
}

GetProjectVersionsParams is parameters of getProjectVersions operation.

type GetProjectVersionsRes

type GetProjectVersionsRes interface {
	// contains filtered or unexported methods
}

type GetProjectsParams

type GetProjectsParams struct {
	// The IDs and/or slugs of the projects.
	Ids string
}

GetProjectsParams is parameters of getProjects operation.

type GetReportNotFound

type GetReportNotFound struct{}

GetReportNotFound is response for GetReport operation.

type GetReportParams

type GetReportParams struct {
	// The ID of the report.
	ID string
}

GetReportParams is parameters of getReport operation.

type GetReportRes

type GetReportRes interface {
	// contains filtered or unexported methods
}

type GetReportsNotFound

type GetReportsNotFound struct{}

GetReportsNotFound is response for GetReports operation.

type GetReportsOKApplicationJSON

type GetReportsOKApplicationJSON []Report

func (*GetReportsOKApplicationJSON) Decode

Decode decodes GetReportsOKApplicationJSON from json.

func (GetReportsOKApplicationJSON) Encode

func (s GetReportsOKApplicationJSON) Encode(e *jx.Encoder)

Encode encodes GetReportsOKApplicationJSON as json.

func (GetReportsOKApplicationJSON) MarshalJSON

func (s GetReportsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetReportsOKApplicationJSON) UnmarshalJSON

func (s *GetReportsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetReportsOKApplicationJSON) Validate

func (s GetReportsOKApplicationJSON) Validate() error

type GetReportsParams

type GetReportsParams struct {
	// The IDs of the reports.
	Ids string
}

GetReportsParams is parameters of getReports operation.

type GetReportsRes

type GetReportsRes interface {
	// contains filtered or unexported methods
}

type GetTeamMembersParams

type GetTeamMembersParams struct {
	// The ID of the team.
	ID string
}

GetTeamMembersParams is parameters of getTeamMembers operation.

type GetTeamsParams

type GetTeamsParams struct {
	// The IDs of the teams.
	Ids string
}

GetTeamsParams is parameters of getTeams operation.

type GetThreadNotFound

type GetThreadNotFound struct{}

GetThreadNotFound is response for GetThread operation.

type GetThreadParams

type GetThreadParams struct {
	// The ID of the thread.
	ID string
}

GetThreadParams is parameters of getThread operation.

type GetThreadRes

type GetThreadRes interface {
	// contains filtered or unexported methods
}

type GetThreadsNotFound

type GetThreadsNotFound struct{}

GetThreadsNotFound is response for GetThreads operation.

type GetThreadsOKApplicationJSON

type GetThreadsOKApplicationJSON []Thread

func (*GetThreadsOKApplicationJSON) Decode

Decode decodes GetThreadsOKApplicationJSON from json.

func (GetThreadsOKApplicationJSON) Encode

func (s GetThreadsOKApplicationJSON) Encode(e *jx.Encoder)

Encode encodes GetThreadsOKApplicationJSON as json.

func (GetThreadsOKApplicationJSON) MarshalJSON

func (s GetThreadsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetThreadsOKApplicationJSON) UnmarshalJSON

func (s *GetThreadsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetThreadsOKApplicationJSON) Validate

func (s GetThreadsOKApplicationJSON) Validate() error

type GetThreadsParams

type GetThreadsParams struct {
	// The IDs of the threads.
	Ids string
}

GetThreadsParams is parameters of getThreads operation.

type GetThreadsRes

type GetThreadsRes interface {
	// contains filtered or unexported methods
}

type GetUserFromAuthRes

type GetUserFromAuthRes interface {
	// contains filtered or unexported methods
}

type GetUserNotFound

type GetUserNotFound struct{}

GetUserNotFound is response for GetUser operation.

type GetUserNotificationsNotFound

type GetUserNotificationsNotFound struct{}

GetUserNotificationsNotFound is response for GetUserNotifications operation.

type GetUserNotificationsOKApplicationJSON

type GetUserNotificationsOKApplicationJSON []Notification

func (*GetUserNotificationsOKApplicationJSON) Decode

Decode decodes GetUserNotificationsOKApplicationJSON from json.

func (GetUserNotificationsOKApplicationJSON) Encode

Encode encodes GetUserNotificationsOKApplicationJSON as json.

func (GetUserNotificationsOKApplicationJSON) MarshalJSON

func (s GetUserNotificationsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetUserNotificationsOKApplicationJSON) UnmarshalJSON

func (s *GetUserNotificationsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetUserNotificationsOKApplicationJSON) Validate

type GetUserNotificationsParams

type GetUserNotificationsParams struct {
	// The ID or username of the user.
	IDUsername string
}

GetUserNotificationsParams is parameters of getUserNotifications operation.

type GetUserNotificationsRes

type GetUserNotificationsRes interface {
	// contains filtered or unexported methods
}

type GetUserParams

type GetUserParams struct {
	// The ID or username of the user.
	IDUsername string
}

GetUserParams is parameters of getUser operation.

type GetUserProjectsNotFound

type GetUserProjectsNotFound struct{}

GetUserProjectsNotFound is response for GetUserProjects operation.

type GetUserProjectsOKApplicationJSON

type GetUserProjectsOKApplicationJSON []Project

func (*GetUserProjectsOKApplicationJSON) Decode

Decode decodes GetUserProjectsOKApplicationJSON from json.

func (GetUserProjectsOKApplicationJSON) Encode

Encode encodes GetUserProjectsOKApplicationJSON as json.

func (GetUserProjectsOKApplicationJSON) MarshalJSON

func (s GetUserProjectsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetUserProjectsOKApplicationJSON) UnmarshalJSON

func (s *GetUserProjectsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (GetUserProjectsOKApplicationJSON) Validate

type GetUserProjectsParams

type GetUserProjectsParams struct {
	// The ID or username of the user.
	IDUsername string
}

GetUserProjectsParams is parameters of getUserProjects operation.

type GetUserProjectsRes

type GetUserProjectsRes interface {
	// contains filtered or unexported methods
}

type GetUserRes

type GetUserRes interface {
	// contains filtered or unexported methods
}

type GetUsersParams

type GetUsersParams struct {
	// The IDs of the users.
	Ids string
}

GetUsersParams is parameters of getUsers operation.

type GetVersionFromIdOrNumberNotFound

type GetVersionFromIdOrNumberNotFound struct{}

GetVersionFromIdOrNumberNotFound is response for GetVersionFromIdOrNumber operation.

type GetVersionFromIdOrNumberParams

type GetVersionFromIdOrNumberParams struct {
	// The ID or slug of the project.
	IDSlug string
	// The version ID or version number.
	IDNumber string
}

GetVersionFromIdOrNumberParams is parameters of getVersionFromIdOrNumber operation.

type GetVersionFromIdOrNumberRes

type GetVersionFromIdOrNumberRes interface {
	// contains filtered or unexported methods
}

type GetVersionNotFound

type GetVersionNotFound struct{}

GetVersionNotFound is response for GetVersion operation.

type GetVersionParams

type GetVersionParams struct {
	// The ID of the version.
	ID string
}

GetVersionParams is parameters of getVersion operation.

type GetVersionRes

type GetVersionRes interface {
	// contains filtered or unexported methods
}

type GetVersionsParams

type GetVersionsParams struct {
	// The IDs of the versions.
	Ids string
}

GetVersionsParams is parameters of getVersions operation.

type HashList

type HashList struct {
	Hashes    []string          `json:"hashes"`
	Algorithm HashListAlgorithm `json:"algorithm"`
}

A list of hashes and the algorithm used to create them. Ref: #/components/schemas/HashList

func (*HashList) Decode

func (s *HashList) Decode(d *jx.Decoder) error

Decode decodes HashList from json.

func (*HashList) Encode

func (s *HashList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*HashList) GetAlgorithm

func (s *HashList) GetAlgorithm() HashListAlgorithm

GetAlgorithm returns the value of Algorithm.

func (*HashList) GetHashes

func (s *HashList) GetHashes() []string

GetHashes returns the value of Hashes.

func (*HashList) MarshalJSON

func (s *HashList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HashList) SetAlgorithm

func (s *HashList) SetAlgorithm(val HashListAlgorithm)

SetAlgorithm sets the value of Algorithm.

func (*HashList) SetHashes

func (s *HashList) SetHashes(val []string)

SetHashes sets the value of Hashes.

func (*HashList) UnmarshalJSON

func (s *HashList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HashList) Validate

func (s *HashList) Validate() error

type HashListAlgorithm

type HashListAlgorithm string
const (
	HashListAlgorithmSHA1   HashListAlgorithm = "sha1"
	HashListAlgorithmSha512 HashListAlgorithm = "sha512"
)

func (HashListAlgorithm) AllValues

func (HashListAlgorithm) AllValues() []HashListAlgorithm

AllValues returns all HashListAlgorithm values.

func (*HashListAlgorithm) Decode

func (s *HashListAlgorithm) Decode(d *jx.Decoder) error

Decode decodes HashListAlgorithm from json.

func (HashListAlgorithm) Encode

func (s HashListAlgorithm) Encode(e *jx.Encoder)

Encode encodes HashListAlgorithm as json.

func (HashListAlgorithm) MarshalJSON

func (s HashListAlgorithm) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (HashListAlgorithm) MarshalText

func (s HashListAlgorithm) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*HashListAlgorithm) UnmarshalJSON

func (s *HashListAlgorithm) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*HashListAlgorithm) UnmarshalText

func (s *HashListAlgorithm) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (HashListAlgorithm) Validate

func (s HashListAlgorithm) Validate() error

type HashVersionMap

type HashVersionMap map[string]Version

A map from hashes to versions. Ref: #/components/schemas/HashVersionMap

func (*HashVersionMap) Decode

func (s *HashVersionMap) Decode(d *jx.Decoder) error

Decode decodes HashVersionMap from json.

func (HashVersionMap) Encode

func (s HashVersionMap) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (HashVersionMap) MarshalJSON

func (s HashVersionMap) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*HashVersionMap) UnmarshalJSON

func (s *HashVersionMap) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (HashVersionMap) Validate

func (s HashVersionMap) Validate() error

type InvalidInputError

type InvalidInputError struct {
	// The name of the error.
	Error string `json:"error"`
	// The contents of the error.
	Description string `json:"description"`
}

Ref: #/components/schemas/InvalidInputError

func (*InvalidInputError) Decode

func (s *InvalidInputError) Decode(d *jx.Decoder) error

Decode decodes InvalidInputError from json.

func (*InvalidInputError) Encode

func (s *InvalidInputError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*InvalidInputError) GetDescription

func (s *InvalidInputError) GetDescription() string

GetDescription returns the value of Description.

func (*InvalidInputError) GetError

func (s *InvalidInputError) GetError() string

GetError returns the value of Error.

func (*InvalidInputError) MarshalJSON

func (s *InvalidInputError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*InvalidInputError) SetDescription

func (s *InvalidInputError) SetDescription(val string)

SetDescription sets the value of Description.

func (*InvalidInputError) SetError

func (s *InvalidInputError) SetError(val string)

SetError sets the value of Error.

func (*InvalidInputError) UnmarshalJSON

func (s *InvalidInputError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Invoker

type Invoker interface {
	// AddGalleryImage invokes addGalleryImage operation.
	//
	// Modrinth allows you to upload files of up to 5MiB to a project's gallery.
	//
	// POST /project/{id|slug}/gallery
	AddGalleryImage(ctx context.Context, request AddGalleryImageReq, params AddGalleryImageParams) (AddGalleryImageRes, error)
	// AddTeamMember invokes addTeamMember operation.
	//
	// Add a user to a team.
	//
	// POST /team/{id}/members
	AddTeamMember(ctx context.Context, request UserIdentifier, params AddTeamMemberParams) (AddTeamMemberRes, error)
	// CategoryList invokes categoryList operation.
	//
	// Gets an array of categories, their icons, and applicable project types.
	//
	// GET /tag/category
	CategoryList(ctx context.Context) ([]CategoryTag, error)
	// ChangeProjectIcon invokes changeProjectIcon operation.
	//
	// The new icon may be up to 256KiB in size.
	//
	// PATCH /project/{id|slug}/icon
	ChangeProjectIcon(ctx context.Context, request ChangeProjectIconReq, params ChangeProjectIconParams) (ChangeProjectIconRes, error)
	// ChangeUserIcon invokes changeUserIcon operation.
	//
	// The new avatar may be up to 2MiB in size.
	//
	// PATCH /user/{id|username}/icon
	ChangeUserIcon(ctx context.Context, request ChangeUserIconReq, params ChangeUserIconParams) (ChangeUserIconRes, error)
	// CheckProjectValidity invokes checkProjectValidity operation.
	//
	// Check project slug/ID validity.
	//
	// GET /project/{id|slug}/check
	CheckProjectValidity(ctx context.Context, params CheckProjectValidityParams) (CheckProjectValidityRes, error)
	// CreateVersion invokes createVersion operation.
	//
	// This route creates a version on an existing project. There must be at least one file attached to
	// each new version, unless the new version's status is `draft`. `.mrpack`, `.jar`, `.zip`, and `.
	// litemod` files are accepted.
	// The request is a [multipart request](https://www.ietf.org/rfc/rfc2388.txt) with at least two form
	// fields: one is `data`, which includes a JSON body with the version metadata as shown below, and at
	// least one field containing an upload file.
	// You can name the file parts anything you would like, but you must list each of the parts' names in
	// `file_parts`, and optionally, provide one to use as the primary file in `primary_file`.
	//
	// POST /version
	CreateVersion(ctx context.Context, request OptCreateVersionBodyMultipart) (CreateVersionRes, error)
	// DeleteFileFromHash invokes deleteFileFromHash operation.
	//
	// Delete a file from its hash.
	//
	// DELETE /version_file/{hash}
	DeleteFileFromHash(ctx context.Context, params DeleteFileFromHashParams) (DeleteFileFromHashRes, error)
	// DeleteGalleryImage invokes deleteGalleryImage operation.
	//
	// Delete a gallery image.
	//
	// DELETE /project/{id|slug}/gallery
	DeleteGalleryImage(ctx context.Context, params DeleteGalleryImageParams) (DeleteGalleryImageRes, error)
	// DeleteNotification invokes deleteNotification operation.
	//
	// Delete notification.
	//
	// DELETE /notification/{id}
	DeleteNotification(ctx context.Context, params DeleteNotificationParams) (DeleteNotificationRes, error)
	// DeleteNotifications invokes deleteNotifications operation.
	//
	// Delete multiple notifications.
	//
	// DELETE /notifications
	DeleteNotifications(ctx context.Context, params DeleteNotificationsParams) (DeleteNotificationsRes, error)
	// DeleteProject invokes deleteProject operation.
	//
	// Delete a project.
	//
	// DELETE /project/{id|slug}
	DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)
	// DeleteProjectIcon invokes deleteProjectIcon operation.
	//
	// Delete project's icon.
	//
	// DELETE /project/{id|slug}/icon
	DeleteProjectIcon(ctx context.Context, params DeleteProjectIconParams) (DeleteProjectIconRes, error)
	// DeleteTeamMember invokes deleteTeamMember operation.
	//
	// Remove a member from a team.
	//
	// DELETE /team/{id}/members/{id|username}
	DeleteTeamMember(ctx context.Context, params DeleteTeamMemberParams) (DeleteTeamMemberRes, error)
	// DeleteThreadMessage invokes deleteThreadMessage operation.
	//
	// Delete a thread message.
	//
	// DELETE /message/{id}
	DeleteThreadMessage(ctx context.Context, params DeleteThreadMessageParams) (DeleteThreadMessageRes, error)
	// DeleteUserIcon invokes deleteUserIcon operation.
	//
	// Remove user's avatar.
	//
	// DELETE /user/{id|username}/icon
	DeleteUserIcon(ctx context.Context, params DeleteUserIconParams) (DeleteUserIconRes, error)
	// DeleteVersion invokes deleteVersion operation.
	//
	// Delete a version.
	//
	// DELETE /version/{id}
	DeleteVersion(ctx context.Context, params DeleteVersionParams) (DeleteVersionRes, error)
	// DonationPlatformList invokes donationPlatformList operation.
	//
	// Gets an array of donation platforms and information about them.
	//
	// GET /tag/donation_platform
	DonationPlatformList(ctx context.Context) ([]DonationPlatformTag, error)
	// FollowProject invokes followProject operation.
	//
	// Follow a project.
	//
	// POST /project/{id|slug}/follow
	FollowProject(ctx context.Context, params FollowProjectParams) (FollowProjectRes, error)
	// ForgeUpdates invokes forgeUpdates operation.
	//
	// If you're a Forge mod developer, your Modrinth mods have an automatically generated `updates.json`
	// using the
	// [Forge Update Checker](https://docs.minecraftforge.net/en/latest/misc/updatechecker/).
	// The only setup is to insert the URL into the `[[mods]]` section of your `mods.toml` file as such:
	// “`toml
	// [[mods]]
	// # the other stuff here - ID, version, display name, etc.
	// updateJSONURL = "https://api.modrinth.com/updates/{slug|ID}/forge_updates.json"
	// “`
	// Replace `{slug|id}` with the slug or ID of your project.
	// Modrinth will handle the rest! When you update your mod, Forge will notify your users that their
	// copy of your mod is out of date.
	// Make sure that the version format you use for your Modrinth releases is the same as the version
	// format you use in your `mods.toml`.
	// If you use a format such as `1.2.3-forge` or `1.2.3+1.19` with your Modrinth releases but your
	// `mods.toml` only has `1.2.3`,
	// the update checker may not function properly.
	//
	// GET /updates/{id|slug}/forge_updates.json
	ForgeUpdates(ctx context.Context, params ForgeUpdatesParams) (ForgeUpdatesRes, error)
	// GetDependencies invokes getDependencies operation.
	//
	// Get all of a project's dependencies.
	//
	// GET /project/{id|slug}/dependencies
	GetDependencies(ctx context.Context, params GetDependenciesParams) (GetDependenciesRes, error)
	// GetFollowedProjects invokes getFollowedProjects operation.
	//
	// Get user's followed projects.
	//
	// GET /user/{id|username}/follows
	GetFollowedProjects(ctx context.Context, params GetFollowedProjectsParams) (GetFollowedProjectsRes, error)
	// GetLatestVersionFromHash invokes getLatestVersionFromHash operation.
	//
	// Latest version of a project from a hash, loader(s), and game version(s).
	//
	// POST /version_file/{hash}/update
	GetLatestVersionFromHash(ctx context.Context, request OptGetLatestVersionFromHashBody, params GetLatestVersionFromHashParams) (GetLatestVersionFromHashRes, error)
	// GetLatestVersionsFromHashes invokes getLatestVersionsFromHashes operation.
	//
	// This is the same as [`/version_file/{hash}/update`](#operation/getLatestVersionFromHash) except it
	// accepts multiple hashes.
	//
	// POST /version_files/update
	GetLatestVersionsFromHashes(ctx context.Context, request OptGetLatestVersionsFromHashesBody) (GetLatestVersionsFromHashesRes, error)
	// GetNotification invokes getNotification operation.
	//
	// Get notification from ID.
	//
	// GET /notification/{id}
	GetNotification(ctx context.Context, params GetNotificationParams) (GetNotificationRes, error)
	// GetNotifications invokes getNotifications operation.
	//
	// Get multiple notifications.
	//
	// GET /notifications
	GetNotifications(ctx context.Context, params GetNotificationsParams) (GetNotificationsRes, error)
	// GetOpenReports invokes getOpenReports operation.
	//
	// Get your open reports.
	//
	// GET /report
	GetOpenReports(ctx context.Context, params GetOpenReportsParams) (GetOpenReportsRes, error)
	// GetPayoutHistory invokes getPayoutHistory operation.
	//
	// Get user's payout history.
	//
	// GET /user/{id|username}/payouts
	GetPayoutHistory(ctx context.Context, params GetPayoutHistoryParams) (GetPayoutHistoryRes, error)
	// GetProject invokes getProject operation.
	//
	// Get a project.
	//
	// GET /project/{id|slug}
	GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)
	// GetProjectTeamMembers invokes getProjectTeamMembers operation.
	//
	// Get a project's team members.
	//
	// GET /project/{id|slug}/members
	GetProjectTeamMembers(ctx context.Context, params GetProjectTeamMembersParams) (GetProjectTeamMembersRes, error)
	// GetProjectVersions invokes getProjectVersions operation.
	//
	// List project's versions.
	//
	// GET /project/{id|slug}/version
	GetProjectVersions(ctx context.Context, params GetProjectVersionsParams) (GetProjectVersionsRes, error)
	// GetProjects invokes getProjects operation.
	//
	// Get multiple projects.
	//
	// GET /projects
	GetProjects(ctx context.Context, params GetProjectsParams) ([]Project, error)
	// GetReport invokes getReport operation.
	//
	// Get report from ID.
	//
	// GET /report/{id}
	GetReport(ctx context.Context, params GetReportParams) (GetReportRes, error)
	// GetReports invokes getReports operation.
	//
	// Get multiple reports.
	//
	// GET /reports
	GetReports(ctx context.Context, params GetReportsParams) (GetReportsRes, error)
	// GetTeamMembers invokes getTeamMembers operation.
	//
	// Get a team's members.
	//
	// GET /team/{id}/members
	GetTeamMembers(ctx context.Context, params GetTeamMembersParams) ([]TeamMember, error)
	// GetTeams invokes getTeams operation.
	//
	// Get the members of multiple teams.
	//
	// GET /teams
	GetTeams(ctx context.Context, params GetTeamsParams) ([][]TeamMember, error)
	// GetThread invokes getThread operation.
	//
	// Get a thread.
	//
	// GET /thread/{id}
	GetThread(ctx context.Context, params GetThreadParams) (GetThreadRes, error)
	// GetThreads invokes getThreads operation.
	//
	// Get multiple threads.
	//
	// GET /threads
	GetThreads(ctx context.Context, params GetThreadsParams) (GetThreadsRes, error)
	// GetUser invokes getUser operation.
	//
	// Get a user.
	//
	// GET /user/{id|username}
	GetUser(ctx context.Context, params GetUserParams) (GetUserRes, error)
	// GetUserFromAuth invokes getUserFromAuth operation.
	//
	// Get user from authorization header.
	//
	// GET /user
	GetUserFromAuth(ctx context.Context) (GetUserFromAuthRes, error)
	// GetUserNotifications invokes getUserNotifications operation.
	//
	// Get user's notifications.
	//
	// GET /user/{id|username}/notifications
	GetUserNotifications(ctx context.Context, params GetUserNotificationsParams) (GetUserNotificationsRes, error)
	// GetUserProjects invokes getUserProjects operation.
	//
	// Get user's projects.
	//
	// GET /user/{id|username}/projects
	GetUserProjects(ctx context.Context, params GetUserProjectsParams) (GetUserProjectsRes, error)
	// GetUsers invokes getUsers operation.
	//
	// Get multiple users.
	//
	// GET /users
	GetUsers(ctx context.Context, params GetUsersParams) ([]User, error)
	// GetVersion invokes getVersion operation.
	//
	// Get a version.
	//
	// GET /version/{id}
	GetVersion(ctx context.Context, params GetVersionParams) (GetVersionRes, error)
	// GetVersionFromIdOrNumber invokes getVersionFromIdOrNumber operation.
	//
	// Please note that, if the version number provided matches multiple versions, only the **oldest
	// matching version** will be returned.
	//
	// GET /project/{id|slug}/version/{id|number}
	GetVersionFromIdOrNumber(ctx context.Context, params GetVersionFromIdOrNumberParams) (GetVersionFromIdOrNumberRes, error)
	// GetVersions invokes getVersions operation.
	//
	// Get multiple versions.
	//
	// GET /versions
	GetVersions(ctx context.Context, params GetVersionsParams) ([]Version, error)
	// JoinTeam invokes joinTeam operation.
	//
	// Join a team.
	//
	// POST /team/{id}/join
	JoinTeam(ctx context.Context, params JoinTeamParams) (JoinTeamRes, error)
	// LicenseList invokes licenseList operation.
	//
	// Deprecated - simply use SPDX IDs.
	//
	// Deprecated: schema marks this operation as deprecated.
	//
	// GET /tag/license
	LicenseList(ctx context.Context) ([]LicenseTag, error)
	// LicenseText invokes licenseText operation.
	//
	// Get the text and title of a license.
	//
	// GET /tag/license/{id}
	LicenseText(ctx context.Context, params LicenseTextParams) (LicenseTextRes, error)
	// LoaderList invokes loaderList operation.
	//
	// Gets an array of loaders, their icons, and supported project types.
	//
	// GET /tag/loader
	LoaderList(ctx context.Context) ([]LoaderTag, error)
	// ModifyGalleryImage invokes modifyGalleryImage operation.
	//
	// Modify a gallery image.
	//
	// PATCH /project/{id|slug}/gallery
	ModifyGalleryImage(ctx context.Context, params ModifyGalleryImageParams) (ModifyGalleryImageRes, error)
	// ModifyProject invokes modifyProject operation.
	//
	// Modify a project.
	//
	// PATCH /project/{id|slug}
	ModifyProject(ctx context.Context, request OptEditableProject, params ModifyProjectParams) (ModifyProjectRes, error)
	// ModifyReport invokes modifyReport operation.
	//
	// Modify a report.
	//
	// PATCH /report/{id}
	ModifyReport(ctx context.Context, request OptModifyReportReq, params ModifyReportParams) (ModifyReportRes, error)
	// ModifyTeamMember invokes modifyTeamMember operation.
	//
	// Modify a team member's information.
	//
	// PATCH /team/{id}/members/{id|username}
	ModifyTeamMember(ctx context.Context, request ModifyTeamMemberBody, params ModifyTeamMemberParams) (ModifyTeamMemberRes, error)
	// ModifyUser invokes modifyUser operation.
	//
	// Modify a user.
	//
	// PATCH /user/{id|username}
	ModifyUser(ctx context.Context, request OptEditableUser, params ModifyUserParams) (ModifyUserRes, error)
	// ModifyVersion invokes modifyVersion operation.
	//
	// Modify a version.
	//
	// PATCH /version/{id}
	ModifyVersion(ctx context.Context, request OptEditableVersion, params ModifyVersionParams) (ModifyVersionRes, error)
	// PatchProjects invokes patchProjects operation.
	//
	// Bulk-edit multiple projects.
	//
	// PATCH /projects
	PatchProjects(ctx context.Context, request OptPatchProjectsBody, params PatchProjectsParams) (PatchProjectsRes, error)
	// ProjectTypeList invokes projectTypeList operation.
	//
	// Gets an array of valid project types.
	//
	// GET /tag/project_type
	ProjectTypeList(ctx context.Context) ([]string, error)
	// RandomProjects invokes randomProjects operation.
	//
	// Get a list of random projects.
	//
	// GET /projects_random
	RandomProjects(ctx context.Context, params RandomProjectsParams) (RandomProjectsRes, error)
	// ReadNotification invokes readNotification operation.
	//
	// Mark notification as read.
	//
	// PATCH /notification/{id}
	ReadNotification(ctx context.Context, params ReadNotificationParams) (ReadNotificationRes, error)
	// ReadNotifications invokes readNotifications operation.
	//
	// Mark multiple notifications as read.
	//
	// PATCH /notifications
	ReadNotifications(ctx context.Context, params ReadNotificationsParams) (ReadNotificationsRes, error)
	// ReportTypeList invokes reportTypeList operation.
	//
	// Gets an array of valid report types.
	//
	// GET /tag/report_type
	ReportTypeList(ctx context.Context) ([]string, error)
	// ScheduleProject invokes scheduleProject operation.
	//
	// Schedule a project.
	//
	// POST /project/{id|slug}/schedule
	ScheduleProject(ctx context.Context, request OptSchedule, params ScheduleProjectParams) (ScheduleProjectRes, error)
	// ScheduleVersion invokes scheduleVersion operation.
	//
	// Schedule a version.
	//
	// POST /version/{id}/schedule
	ScheduleVersion(ctx context.Context, request OptSchedule, params ScheduleVersionParams) (ScheduleVersionRes, error)
	// SearchProjects invokes searchProjects operation.
	//
	// Search projects.
	//
	// GET /search
	SearchProjects(ctx context.Context, params SearchProjectsParams) (SearchProjectsRes, error)
	// SendThreadMessage invokes sendThreadMessage operation.
	//
	// Send a text message to a thread.
	//
	// POST /thread/{id}
	SendThreadMessage(ctx context.Context, request OptThreadMessageBody, params SendThreadMessageParams) (SendThreadMessageRes, error)
	// SideTypeList invokes sideTypeList operation.
	//
	// Gets an array of valid side types.
	//
	// GET /tag/side_type
	SideTypeList(ctx context.Context) ([]string, error)
	// Statistics invokes statistics operation.
	//
	// Various statistics about this Modrinth instance.
	//
	// GET /statistics
	Statistics(ctx context.Context) (*Statistics, error)
	// SubmitReport invokes submitReport operation.
	//
	// Bring a project, user, or version to the attention of the moderators by reporting it.
	//
	// POST /report
	SubmitReport(ctx context.Context, request OptCreatableReport) (SubmitReportRes, error)
	// TransferTeamOwnership invokes transferTeamOwnership operation.
	//
	// Transfer team's ownership to another user.
	//
	// PATCH /team/{id}/owner
	TransferTeamOwnership(ctx context.Context, request UserIdentifier, params TransferTeamOwnershipParams) (TransferTeamOwnershipRes, error)
	// UnfollowProject invokes unfollowProject operation.
	//
	// Unfollow a project.
	//
	// DELETE /project/{id|slug}/follow
	UnfollowProject(ctx context.Context, params UnfollowProjectParams) (UnfollowProjectRes, error)
	// VersionFromHash invokes versionFromHash operation.
	//
	// Get version from hash.
	//
	// GET /version_file/{hash}
	VersionFromHash(ctx context.Context, params VersionFromHashParams) (VersionFromHashRes, error)
	// VersionList invokes versionList operation.
	//
	// Gets an array of game versions and information about them.
	//
	// GET /tag/game_version
	VersionList(ctx context.Context) ([]GameVersionTag, error)
	// VersionsFromHashes invokes versionsFromHashes operation.
	//
	// This is the same as [`/version_file/{hash}`](#operation/versionFromHash) except it accepts
	// multiple hashes.
	//
	// POST /version_files
	VersionsFromHashes(ctx context.Context, request OptHashList) (VersionsFromHashesRes, error)
	// WithdrawPayout invokes withdrawPayout operation.
	//
	// Warning: certain amounts get withheld for fees. Please do not call this API endpoint without first
	// acknowledging the warnings on the corresponding frontend page.
	//
	// POST /user/{id|username}/payouts
	WithdrawPayout(ctx context.Context, params WithdrawPayoutParams) (WithdrawPayoutRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type JoinTeamNoContent

type JoinTeamNoContent struct{}

JoinTeamNoContent is response for JoinTeam operation.

type JoinTeamNotFound

type JoinTeamNotFound struct{}

JoinTeamNotFound is response for JoinTeam operation.

type JoinTeamParams

type JoinTeamParams struct {
	// The ID of the team.
	ID string
}

JoinTeamParams is parameters of joinTeam operation.

type JoinTeamRes

type JoinTeamRes interface {
	// contains filtered or unexported methods
}

type License

type License struct {
	Title OptString `json:"title"`
	Body  OptString `json:"body"`
}

A full license. Ref: #/components/schemas/License

func (*License) Decode

func (s *License) Decode(d *jx.Decoder) error

Decode decodes License from json.

func (*License) Encode

func (s *License) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*License) GetBody

func (s *License) GetBody() OptString

GetBody returns the value of Body.

func (*License) GetTitle

func (s *License) GetTitle() OptString

GetTitle returns the value of Title.

func (*License) MarshalJSON

func (s *License) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*License) SetBody

func (s *License) SetBody(val OptString)

SetBody sets the value of Body.

func (*License) SetTitle

func (s *License) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*License) UnmarshalJSON

func (s *License) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LicenseTag

type LicenseTag struct {
	// The short identifier of the license.
	Short string `json:"short"`
	// The full name of the license.
	Name string `json:"name"`
}

A short overview of a license. Ref: #/components/schemas/LicenseTag

func (*LicenseTag) Decode

func (s *LicenseTag) Decode(d *jx.Decoder) error

Decode decodes LicenseTag from json.

func (*LicenseTag) Encode

func (s *LicenseTag) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LicenseTag) GetName

func (s *LicenseTag) GetName() string

GetName returns the value of Name.

func (*LicenseTag) GetShort

func (s *LicenseTag) GetShort() string

GetShort returns the value of Short.

func (*LicenseTag) MarshalJSON

func (s *LicenseTag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LicenseTag) SetName

func (s *LicenseTag) SetName(val string)

SetName sets the value of Name.

func (*LicenseTag) SetShort

func (s *LicenseTag) SetShort(val string)

SetShort sets the value of Short.

func (*LicenseTag) UnmarshalJSON

func (s *LicenseTag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LicenseTextParams

type LicenseTextParams struct {
	// The license ID to get the text of.
	ID string
}

LicenseTextParams is parameters of licenseText operation.

type LicenseTextRes

type LicenseTextRes interface {
	// contains filtered or unexported methods
}

type LoaderTag

type LoaderTag struct {
	// The SVG icon of a loader.
	Icon string `json:"icon"`
	// The name of the loader.
	Name string `json:"name"`
	// The project types that this loader is applicable to.
	SupportedProjectTypes []string `json:"supported_project_types"`
}

Ref: #/components/schemas/LoaderTag

func (*LoaderTag) Decode

func (s *LoaderTag) Decode(d *jx.Decoder) error

Decode decodes LoaderTag from json.

func (*LoaderTag) Encode

func (s *LoaderTag) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LoaderTag) GetIcon

func (s *LoaderTag) GetIcon() string

GetIcon returns the value of Icon.

func (*LoaderTag) GetName

func (s *LoaderTag) GetName() string

GetName returns the value of Name.

func (*LoaderTag) GetSupportedProjectTypes

func (s *LoaderTag) GetSupportedProjectTypes() []string

GetSupportedProjectTypes returns the value of SupportedProjectTypes.

func (*LoaderTag) MarshalJSON

func (s *LoaderTag) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LoaderTag) SetIcon

func (s *LoaderTag) SetIcon(val string)

SetIcon sets the value of Icon.

func (*LoaderTag) SetName

func (s *LoaderTag) SetName(val string)

SetName sets the value of Name.

func (*LoaderTag) SetSupportedProjectTypes

func (s *LoaderTag) SetSupportedProjectTypes(val []string)

SetSupportedProjectTypes sets the value of SupportedProjectTypes.

func (*LoaderTag) UnmarshalJSON

func (s *LoaderTag) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LoaderTag) Validate

func (s *LoaderTag) Validate() error

type ModeratorMessage deprecated

type ModeratorMessage struct {
	// The message that a moderator has left for the project.
	Message OptString `json:"message"`
	// The longer body of the message that a moderator has left for the project.
	Body OptNilString `json:"body"`
}

A message that a moderator sent regarding the project.

Deprecated: schema marks this type as deprecated. Ref: #/components/schemas/ModeratorMessage

func (*ModeratorMessage) Decode

func (s *ModeratorMessage) Decode(d *jx.Decoder) error

Decode decodes ModeratorMessage from json.

func (*ModeratorMessage) Encode

func (s *ModeratorMessage) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModeratorMessage) GetBody

func (s *ModeratorMessage) GetBody() OptNilString

GetBody returns the value of Body.

func (*ModeratorMessage) GetMessage

func (s *ModeratorMessage) GetMessage() OptString

GetMessage returns the value of Message.

func (*ModeratorMessage) MarshalJSON

func (s *ModeratorMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModeratorMessage) SetBody

func (s *ModeratorMessage) SetBody(val OptNilString)

SetBody sets the value of Body.

func (*ModeratorMessage) SetMessage

func (s *ModeratorMessage) SetMessage(val OptString)

SetMessage sets the value of Message.

func (*ModeratorMessage) UnmarshalJSON

func (s *ModeratorMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModifyGalleryImageNoContent

type ModifyGalleryImageNoContent struct{}

ModifyGalleryImageNoContent is response for ModifyGalleryImage operation.

type ModifyGalleryImageNotFound

type ModifyGalleryImageNotFound struct{}

ModifyGalleryImageNotFound is response for ModifyGalleryImage operation.

type ModifyGalleryImageParams

type ModifyGalleryImageParams struct {
	// URL link of the image to modify.
	URL url.URL
	// Whether the image is featured.
	Featured OptBool
	// New title of the image.
	Title OptString
	// New description of the image.
	Description OptString
	// New ordering of the image.
	Ordering OptInt
	// The ID or slug of the project.
	IDSlug string
}

ModifyGalleryImageParams is parameters of modifyGalleryImage operation.

type ModifyGalleryImageRes

type ModifyGalleryImageRes interface {
	// contains filtered or unexported methods
}

type ModifyProjectNoContent

type ModifyProjectNoContent struct{}

ModifyProjectNoContent is response for ModifyProject operation.

type ModifyProjectNotFound

type ModifyProjectNotFound struct{}

ModifyProjectNotFound is response for ModifyProject operation.

type ModifyProjectParams

type ModifyProjectParams struct {
	// The ID or slug of the project.
	IDSlug string
}

ModifyProjectParams is parameters of modifyProject operation.

type ModifyProjectRes

type ModifyProjectRes interface {
	// contains filtered or unexported methods
}

type ModifyReportNoContent

type ModifyReportNoContent struct{}

ModifyReportNoContent is response for ModifyReport operation.

type ModifyReportNotFound

type ModifyReportNotFound struct{}

ModifyReportNotFound is response for ModifyReport operation.

type ModifyReportParams

type ModifyReportParams struct {
	// The ID of the report.
	ID string
}

ModifyReportParams is parameters of modifyReport operation.

type ModifyReportReq

type ModifyReportReq struct {
	// The contents of the report.
	Body OptString `json:"body"`
	// Whether the thread should be closed.
	Closed OptBool `json:"closed"`
}

func (*ModifyReportReq) Decode

func (s *ModifyReportReq) Decode(d *jx.Decoder) error

Decode decodes ModifyReportReq from json.

func (*ModifyReportReq) Encode

func (s *ModifyReportReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ModifyReportReq) GetBody

func (s *ModifyReportReq) GetBody() OptString

GetBody returns the value of Body.

func (*ModifyReportReq) GetClosed

func (s *ModifyReportReq) GetClosed() OptBool

GetClosed returns the value of Closed.

func (*ModifyReportReq) MarshalJSON

func (s *ModifyReportReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModifyReportReq) SetBody

func (s *ModifyReportReq) SetBody(val OptString)

SetBody sets the value of Body.

func (*ModifyReportReq) SetClosed

func (s *ModifyReportReq) SetClosed(val OptBool)

SetClosed sets the value of Closed.

func (*ModifyReportReq) UnmarshalJSON

func (s *ModifyReportReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModifyReportRes

type ModifyReportRes interface {
	// contains filtered or unexported methods
}

type ModifyTeamMemberBody

type ModifyTeamMemberBody jx.Raw

func (*ModifyTeamMemberBody) Decode

func (s *ModifyTeamMemberBody) Decode(d *jx.Decoder) error

Decode decodes ModifyTeamMemberBody from json.

func (ModifyTeamMemberBody) Encode

func (s ModifyTeamMemberBody) Encode(e *jx.Encoder)

Encode encodes ModifyTeamMemberBody as json.

func (ModifyTeamMemberBody) MarshalJSON

func (s ModifyTeamMemberBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ModifyTeamMemberBody) UnmarshalJSON

func (s *ModifyTeamMemberBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ModifyTeamMemberNoContent

type ModifyTeamMemberNoContent struct{}

ModifyTeamMemberNoContent is response for ModifyTeamMember operation.

type ModifyTeamMemberNotFound

type ModifyTeamMemberNotFound struct{}

ModifyTeamMemberNotFound is response for ModifyTeamMember operation.

type ModifyTeamMemberParams

type ModifyTeamMemberParams struct {
	// The ID of the team.
	ID string
	// The ID or username of the user.
	IDUsername string
}

ModifyTeamMemberParams is parameters of modifyTeamMember operation.

type ModifyTeamMemberRes

type ModifyTeamMemberRes interface {
	// contains filtered or unexported methods
}

type ModifyUserNoContent

type ModifyUserNoContent struct{}

ModifyUserNoContent is response for ModifyUser operation.

type ModifyUserNotFound

type ModifyUserNotFound struct{}

ModifyUserNotFound is response for ModifyUser operation.

type ModifyUserParams

type ModifyUserParams struct {
	// The ID or username of the user.
	IDUsername string
}

ModifyUserParams is parameters of modifyUser operation.

type ModifyUserRes

type ModifyUserRes interface {
	// contains filtered or unexported methods
}

type ModifyVersionNoContent

type ModifyVersionNoContent struct{}

ModifyVersionNoContent is response for ModifyVersion operation.

type ModifyVersionNotFound

type ModifyVersionNotFound struct{}

ModifyVersionNotFound is response for ModifyVersion operation.

type ModifyVersionParams

type ModifyVersionParams struct {
	// The ID of the version.
	ID string
}

ModifyVersionParams is parameters of modifyVersion operation.

type ModifyVersionRes

type ModifyVersionRes interface {
	// contains filtered or unexported methods
}

type NilEditableFileTypeFileType

type NilEditableFileTypeFileType struct {
	Value EditableFileTypeFileType
	Null  bool
}

NilEditableFileTypeFileType is nullable EditableFileTypeFileType.

func NewNilEditableFileTypeFileType

func NewNilEditableFileTypeFileType(v EditableFileTypeFileType) NilEditableFileTypeFileType

NewNilEditableFileTypeFileType returns new NilEditableFileTypeFileType with value set to v.

func (*NilEditableFileTypeFileType) Decode

Decode decodes EditableFileTypeFileType from json.

func (NilEditableFileTypeFileType) Encode

func (o NilEditableFileTypeFileType) Encode(e *jx.Encoder)

Encode encodes EditableFileTypeFileType as json.

func (NilEditableFileTypeFileType) Get

Get returns value and boolean that denotes whether value was set.

func (NilEditableFileTypeFileType) IsNull

func (o NilEditableFileTypeFileType) IsNull() bool

IsNull returns true if value is Null.

func (NilEditableFileTypeFileType) MarshalJSON

func (s NilEditableFileTypeFileType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilEditableFileTypeFileType) Or

Or returns value if set, or given parameter if does not.

func (*NilEditableFileTypeFileType) SetTo

SetTo sets value to v.

func (*NilEditableFileTypeFileType) SetToNull

func (o *NilEditableFileTypeFileType) SetToNull()

SetToNull sets value to null.

func (*NilEditableFileTypeFileType) UnmarshalJSON

func (s *NilEditableFileTypeFileType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NilGalleryImage

type NilGalleryImage struct {
	Value GalleryImage
	Null  bool
}

NilGalleryImage is nullable GalleryImage.

func NewNilGalleryImage

func NewNilGalleryImage(v GalleryImage) NilGalleryImage

NewNilGalleryImage returns new NilGalleryImage with value set to v.

func (*NilGalleryImage) Decode

func (o *NilGalleryImage) Decode(d *jx.Decoder) error

Decode decodes GalleryImage from json.

func (NilGalleryImage) Encode

func (o NilGalleryImage) Encode(e *jx.Encoder)

Encode encodes GalleryImage as json.

func (NilGalleryImage) Get

func (o NilGalleryImage) Get() (v GalleryImage, ok bool)

Get returns value and boolean that denotes whether value was set.

func (NilGalleryImage) IsNull

func (o NilGalleryImage) IsNull() bool

IsNull returns true if value is Null.

func (NilGalleryImage) MarshalJSON

func (s NilGalleryImage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NilGalleryImage) Or

Or returns value if set, or given parameter if does not.

func (*NilGalleryImage) SetTo

func (o *NilGalleryImage) SetTo(v GalleryImage)

SetTo sets value to v.

func (*NilGalleryImage) SetToNull

func (o *NilGalleryImage) SetToNull()

SetToNull sets value to null.

func (*NilGalleryImage) UnmarshalJSON

func (s *NilGalleryImage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Notification

type Notification struct {
	// The id of the notification.
	ID string `json:"id"`
	// The id of the user who received the notification.
	UserID string `json:"user_id"`
	// The type of notification.
	Type OptNilNotificationType `json:"type"`
	// The title of the notification.
	Title string `json:"title"`
	// The body text of the notification.
	Text string `json:"text"`
	// A link to the related project or version.
	Link string `json:"link"`
	// Whether the notification has been read or not.
	Read bool `json:"read"`
	// The time at which the notification was created.
	Created string `json:"created"`
	// A list of actions that can be performed.
	Actions []NotificationAction `json:"actions"`
}

Ref: #/components/schemas/Notification

func (*Notification) Decode

func (s *Notification) Decode(d *jx.Decoder) error

Decode decodes Notification from json.

func (*Notification) Encode

func (s *Notification) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Notification) GetActions

func (s *Notification) GetActions() []NotificationAction

GetActions returns the value of Actions.

func (*Notification) GetCreated

func (s *Notification) GetCreated() string

GetCreated returns the value of Created.

func (*Notification) GetID

func (s *Notification) GetID() string

GetID returns the value of ID.

func (s *Notification) GetLink() string

GetLink returns the value of Link.

func (*Notification) GetRead

func (s *Notification) GetRead() bool

GetRead returns the value of Read.

func (*Notification) GetText

func (s *Notification) GetText() string

GetText returns the value of Text.

func (*Notification) GetTitle

func (s *Notification) GetTitle() string

GetTitle returns the value of Title.

func (*Notification) GetType

func (s *Notification) GetType() OptNilNotificationType

GetType returns the value of Type.

func (*Notification) GetUserID

func (s *Notification) GetUserID() string

GetUserID returns the value of UserID.

func (*Notification) MarshalJSON

func (s *Notification) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Notification) SetActions

func (s *Notification) SetActions(val []NotificationAction)

SetActions sets the value of Actions.

func (*Notification) SetCreated

func (s *Notification) SetCreated(val string)

SetCreated sets the value of Created.

func (*Notification) SetID

func (s *Notification) SetID(val string)

SetID sets the value of ID.

func (s *Notification) SetLink(val string)

SetLink sets the value of Link.

func (*Notification) SetRead

func (s *Notification) SetRead(val bool)

SetRead sets the value of Read.

func (*Notification) SetText

func (s *Notification) SetText(val string)

SetText sets the value of Text.

func (*Notification) SetTitle

func (s *Notification) SetTitle(val string)

SetTitle sets the value of Title.

func (*Notification) SetType

func (s *Notification) SetType(val OptNilNotificationType)

SetType sets the value of Type.

func (*Notification) SetUserID

func (s *Notification) SetUserID(val string)

SetUserID sets the value of UserID.

func (*Notification) UnmarshalJSON

func (s *Notification) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Notification) Validate

func (s *Notification) Validate() error

type NotificationAction

type NotificationAction struct {
	// The friendly name for this action.
	Title OptString `json:"title"`
	// The HTTP code and path to request in order to perform this action.
	ActionRoute []string `json:"action_route"`
}

An action that can be performed on a notification. Ref: #/components/schemas/NotificationAction

func (*NotificationAction) Decode

func (s *NotificationAction) Decode(d *jx.Decoder) error

Decode decodes NotificationAction from json.

func (*NotificationAction) Encode

func (s *NotificationAction) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NotificationAction) GetActionRoute

func (s *NotificationAction) GetActionRoute() []string

GetActionRoute returns the value of ActionRoute.

func (*NotificationAction) GetTitle

func (s *NotificationAction) GetTitle() OptString

GetTitle returns the value of Title.

func (*NotificationAction) MarshalJSON

func (s *NotificationAction) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NotificationAction) SetActionRoute

func (s *NotificationAction) SetActionRoute(val []string)

SetActionRoute sets the value of ActionRoute.

func (*NotificationAction) SetTitle

func (s *NotificationAction) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*NotificationAction) UnmarshalJSON

func (s *NotificationAction) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type NotificationType

type NotificationType string

The type of notification.

const (
	NotificationTypeProjectUpdate    NotificationType = "project_update"
	NotificationTypeTeamInvite       NotificationType = "team_invite"
	NotificationTypeStatusChange     NotificationType = "status_change"
	NotificationTypeModeratorMessage NotificationType = "moderator_message"
)

func (NotificationType) AllValues

func (NotificationType) AllValues() []NotificationType

AllValues returns all NotificationType values.

func (*NotificationType) Decode

func (s *NotificationType) Decode(d *jx.Decoder) error

Decode decodes NotificationType from json.

func (NotificationType) Encode

func (s NotificationType) Encode(e *jx.Encoder)

Encode encodes NotificationType as json.

func (NotificationType) MarshalJSON

func (s NotificationType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (NotificationType) MarshalText

func (s NotificationType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*NotificationType) UnmarshalJSON

func (s *NotificationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NotificationType) UnmarshalText

func (s *NotificationType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (NotificationType) Validate

func (s NotificationType) Validate() error

type OperationName

type OperationName = string

OperationName is the ogen operation name

const (
	AddGalleryImageOperation             OperationName = "AddGalleryImage"
	AddTeamMemberOperation               OperationName = "AddTeamMember"
	CategoryListOperation                OperationName = "CategoryList"
	ChangeProjectIconOperation           OperationName = "ChangeProjectIcon"
	ChangeUserIconOperation              OperationName = "ChangeUserIcon"
	CheckProjectValidityOperation        OperationName = "CheckProjectValidity"
	CreateVersionOperation               OperationName = "CreateVersion"
	DeleteFileFromHashOperation          OperationName = "DeleteFileFromHash"
	DeleteGalleryImageOperation          OperationName = "DeleteGalleryImage"
	DeleteNotificationOperation          OperationName = "DeleteNotification"
	DeleteNotificationsOperation         OperationName = "DeleteNotifications"
	DeleteProjectOperation               OperationName = "DeleteProject"
	DeleteProjectIconOperation           OperationName = "DeleteProjectIcon"
	DeleteTeamMemberOperation            OperationName = "DeleteTeamMember"
	DeleteThreadMessageOperation         OperationName = "DeleteThreadMessage"
	DeleteUserIconOperation              OperationName = "DeleteUserIcon"
	DeleteVersionOperation               OperationName = "DeleteVersion"
	DonationPlatformListOperation        OperationName = "DonationPlatformList"
	FollowProjectOperation               OperationName = "FollowProject"
	ForgeUpdatesOperation                OperationName = "ForgeUpdates"
	GetDependenciesOperation             OperationName = "GetDependencies"
	GetFollowedProjectsOperation         OperationName = "GetFollowedProjects"
	GetLatestVersionFromHashOperation    OperationName = "GetLatestVersionFromHash"
	GetLatestVersionsFromHashesOperation OperationName = "GetLatestVersionsFromHashes"
	GetNotificationOperation             OperationName = "GetNotification"
	GetNotificationsOperation            OperationName = "GetNotifications"
	GetOpenReportsOperation              OperationName = "GetOpenReports"
	GetPayoutHistoryOperation            OperationName = "GetPayoutHistory"
	GetProjectOperation                  OperationName = "GetProject"
	GetProjectTeamMembersOperation       OperationName = "GetProjectTeamMembers"
	GetProjectVersionsOperation          OperationName = "GetProjectVersions"
	GetProjectsOperation                 OperationName = "GetProjects"
	GetReportOperation                   OperationName = "GetReport"
	GetReportsOperation                  OperationName = "GetReports"
	GetTeamMembersOperation              OperationName = "GetTeamMembers"
	GetTeamsOperation                    OperationName = "GetTeams"
	GetThreadOperation                   OperationName = "GetThread"
	GetThreadsOperation                  OperationName = "GetThreads"
	GetUserOperation                     OperationName = "GetUser"
	GetUserFromAuthOperation             OperationName = "GetUserFromAuth"
	GetUserNotificationsOperation        OperationName = "GetUserNotifications"
	GetUserProjectsOperation             OperationName = "GetUserProjects"
	GetUsersOperation                    OperationName = "GetUsers"
	GetVersionOperation                  OperationName = "GetVersion"
	GetVersionFromIdOrNumberOperation    OperationName = "GetVersionFromIdOrNumber"
	GetVersionsOperation                 OperationName = "GetVersions"
	JoinTeamOperation                    OperationName = "JoinTeam"
	LicenseListOperation                 OperationName = "LicenseList"
	LicenseTextOperation                 OperationName = "LicenseText"
	LoaderListOperation                  OperationName = "LoaderList"
	ModifyGalleryImageOperation          OperationName = "ModifyGalleryImage"
	ModifyProjectOperation               OperationName = "ModifyProject"
	ModifyReportOperation                OperationName = "ModifyReport"
	ModifyTeamMemberOperation            OperationName = "ModifyTeamMember"
	ModifyUserOperation                  OperationName = "ModifyUser"
	ModifyVersionOperation               OperationName = "ModifyVersion"
	PatchProjectsOperation               OperationName = "PatchProjects"
	ProjectTypeListOperation             OperationName = "ProjectTypeList"
	RandomProjectsOperation              OperationName = "RandomProjects"
	ReadNotificationOperation            OperationName = "ReadNotification"
	ReadNotificationsOperation           OperationName = "ReadNotifications"
	ReportTypeListOperation              OperationName = "ReportTypeList"
	ScheduleProjectOperation             OperationName = "ScheduleProject"
	ScheduleVersionOperation             OperationName = "ScheduleVersion"
	SearchProjectsOperation              OperationName = "SearchProjects"
	SendThreadMessageOperation           OperationName = "SendThreadMessage"
	SideTypeListOperation                OperationName = "SideTypeList"
	StatisticsOperation                  OperationName = "Statistics"
	SubmitReportOperation                OperationName = "SubmitReport"
	TransferTeamOwnershipOperation       OperationName = "TransferTeamOwnership"
	UnfollowProjectOperation             OperationName = "UnfollowProject"
	VersionFromHashOperation             OperationName = "VersionFromHash"
	VersionListOperation                 OperationName = "VersionList"
	VersionsFromHashesOperation          OperationName = "VersionsFromHashes"
	WithdrawPayoutOperation              OperationName = "WithdrawPayout"
)

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreatableReport

type OptCreatableReport struct {
	Value CreatableReport
	Set   bool
}

OptCreatableReport is optional CreatableReport.

func NewOptCreatableReport

func NewOptCreatableReport(v CreatableReport) OptCreatableReport

NewOptCreatableReport returns new OptCreatableReport with value set to v.

func (*OptCreatableReport) Decode

func (o *OptCreatableReport) Decode(d *jx.Decoder) error

Decode decodes CreatableReport from json.

func (OptCreatableReport) Encode

func (o OptCreatableReport) Encode(e *jx.Encoder)

Encode encodes CreatableReport as json.

func (OptCreatableReport) Get

func (o OptCreatableReport) Get() (v CreatableReport, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCreatableReport) IsSet

func (o OptCreatableReport) IsSet() bool

IsSet returns true if OptCreatableReport was set.

func (OptCreatableReport) MarshalJSON

func (s OptCreatableReport) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreatableReport) Or

Or returns value if set, or given parameter if does not.

func (*OptCreatableReport) Reset

func (o *OptCreatableReport) Reset()

Reset unsets value.

func (*OptCreatableReport) SetTo

func (o *OptCreatableReport) SetTo(v CreatableReport)

SetTo sets value to v.

func (*OptCreatableReport) UnmarshalJSON

func (s *OptCreatableReport) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreatableVersionStatus

type OptCreatableVersionStatus struct {
	Value CreatableVersionStatus
	Set   bool
}

OptCreatableVersionStatus is optional CreatableVersionStatus.

func NewOptCreatableVersionStatus

func NewOptCreatableVersionStatus(v CreatableVersionStatus) OptCreatableVersionStatus

NewOptCreatableVersionStatus returns new OptCreatableVersionStatus with value set to v.

func (*OptCreatableVersionStatus) Decode

func (o *OptCreatableVersionStatus) Decode(d *jx.Decoder) error

Decode decodes CreatableVersionStatus from json.

func (OptCreatableVersionStatus) Encode

func (o OptCreatableVersionStatus) Encode(e *jx.Encoder)

Encode encodes CreatableVersionStatus as json.

func (OptCreatableVersionStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreatableVersionStatus) IsSet

func (o OptCreatableVersionStatus) IsSet() bool

IsSet returns true if OptCreatableVersionStatus was set.

func (OptCreatableVersionStatus) MarshalJSON

func (s OptCreatableVersionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreatableVersionStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptCreatableVersionStatus) Reset

func (o *OptCreatableVersionStatus) Reset()

Reset unsets value.

func (*OptCreatableVersionStatus) SetTo

SetTo sets value to v.

func (*OptCreatableVersionStatus) UnmarshalJSON

func (s *OptCreatableVersionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateVersionBodyMultipart

type OptCreateVersionBodyMultipart struct {
	Value CreateVersionBodyMultipart
	Set   bool
}

OptCreateVersionBodyMultipart is optional CreateVersionBodyMultipart.

func NewOptCreateVersionBodyMultipart

func NewOptCreateVersionBodyMultipart(v CreateVersionBodyMultipart) OptCreateVersionBodyMultipart

NewOptCreateVersionBodyMultipart returns new OptCreateVersionBodyMultipart with value set to v.

func (OptCreateVersionBodyMultipart) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateVersionBodyMultipart) IsSet

IsSet returns true if OptCreateVersionBodyMultipart was set.

func (OptCreateVersionBodyMultipart) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateVersionBodyMultipart) Reset

func (o *OptCreateVersionBodyMultipart) Reset()

Reset unsets value.

func (*OptCreateVersionBodyMultipart) SetTo

SetTo sets value to v.

type OptEditableProject

type OptEditableProject struct {
	Value EditableProject
	Set   bool
}

OptEditableProject is optional EditableProject.

func NewOptEditableProject

func NewOptEditableProject(v EditableProject) OptEditableProject

NewOptEditableProject returns new OptEditableProject with value set to v.

func (*OptEditableProject) Decode

func (o *OptEditableProject) Decode(d *jx.Decoder) error

Decode decodes EditableProject from json.

func (OptEditableProject) Encode

func (o OptEditableProject) Encode(e *jx.Encoder)

Encode encodes EditableProject as json.

func (OptEditableProject) Get

func (o OptEditableProject) Get() (v EditableProject, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptEditableProject) IsSet

func (o OptEditableProject) IsSet() bool

IsSet returns true if OptEditableProject was set.

func (OptEditableProject) MarshalJSON

func (s OptEditableProject) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditableProject) Or

Or returns value if set, or given parameter if does not.

func (*OptEditableProject) Reset

func (o *OptEditableProject) Reset()

Reset unsets value.

func (*OptEditableProject) SetTo

func (o *OptEditableProject) SetTo(v EditableProject)

SetTo sets value to v.

func (*OptEditableProject) UnmarshalJSON

func (s *OptEditableProject) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEditableProjectClientSide

type OptEditableProjectClientSide struct {
	Value EditableProjectClientSide
	Set   bool
}

OptEditableProjectClientSide is optional EditableProjectClientSide.

func NewOptEditableProjectClientSide

func NewOptEditableProjectClientSide(v EditableProjectClientSide) OptEditableProjectClientSide

NewOptEditableProjectClientSide returns new OptEditableProjectClientSide with value set to v.

func (*OptEditableProjectClientSide) Decode

Decode decodes EditableProjectClientSide from json.

func (OptEditableProjectClientSide) Encode

Encode encodes EditableProjectClientSide as json.

func (OptEditableProjectClientSide) Get

Get returns value and boolean that denotes whether value was set.

func (OptEditableProjectClientSide) IsSet

IsSet returns true if OptEditableProjectClientSide was set.

func (OptEditableProjectClientSide) MarshalJSON

func (s OptEditableProjectClientSide) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditableProjectClientSide) Or

Or returns value if set, or given parameter if does not.

func (*OptEditableProjectClientSide) Reset

func (o *OptEditableProjectClientSide) Reset()

Reset unsets value.

func (*OptEditableProjectClientSide) SetTo

SetTo sets value to v.

func (*OptEditableProjectClientSide) UnmarshalJSON

func (s *OptEditableProjectClientSide) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEditableProjectServerSide

type OptEditableProjectServerSide struct {
	Value EditableProjectServerSide
	Set   bool
}

OptEditableProjectServerSide is optional EditableProjectServerSide.

func NewOptEditableProjectServerSide

func NewOptEditableProjectServerSide(v EditableProjectServerSide) OptEditableProjectServerSide

NewOptEditableProjectServerSide returns new OptEditableProjectServerSide with value set to v.

func (*OptEditableProjectServerSide) Decode

Decode decodes EditableProjectServerSide from json.

func (OptEditableProjectServerSide) Encode

Encode encodes EditableProjectServerSide as json.

func (OptEditableProjectServerSide) Get

Get returns value and boolean that denotes whether value was set.

func (OptEditableProjectServerSide) IsSet

IsSet returns true if OptEditableProjectServerSide was set.

func (OptEditableProjectServerSide) MarshalJSON

func (s OptEditableProjectServerSide) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditableProjectServerSide) Or

Or returns value if set, or given parameter if does not.

func (*OptEditableProjectServerSide) Reset

func (o *OptEditableProjectServerSide) Reset()

Reset unsets value.

func (*OptEditableProjectServerSide) SetTo

SetTo sets value to v.

func (*OptEditableProjectServerSide) UnmarshalJSON

func (s *OptEditableProjectServerSide) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEditableProjectStatus

type OptEditableProjectStatus struct {
	Value EditableProjectStatus
	Set   bool
}

OptEditableProjectStatus is optional EditableProjectStatus.

func NewOptEditableProjectStatus

func NewOptEditableProjectStatus(v EditableProjectStatus) OptEditableProjectStatus

NewOptEditableProjectStatus returns new OptEditableProjectStatus with value set to v.

func (*OptEditableProjectStatus) Decode

func (o *OptEditableProjectStatus) Decode(d *jx.Decoder) error

Decode decodes EditableProjectStatus from json.

func (OptEditableProjectStatus) Encode

func (o OptEditableProjectStatus) Encode(e *jx.Encoder)

Encode encodes EditableProjectStatus as json.

func (OptEditableProjectStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptEditableProjectStatus) IsSet

func (o OptEditableProjectStatus) IsSet() bool

IsSet returns true if OptEditableProjectStatus was set.

func (OptEditableProjectStatus) MarshalJSON

func (s OptEditableProjectStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditableProjectStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptEditableProjectStatus) Reset

func (o *OptEditableProjectStatus) Reset()

Reset unsets value.

func (*OptEditableProjectStatus) SetTo

SetTo sets value to v.

func (*OptEditableProjectStatus) UnmarshalJSON

func (s *OptEditableProjectStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEditableUser

type OptEditableUser struct {
	Value EditableUser
	Set   bool
}

OptEditableUser is optional EditableUser.

func NewOptEditableUser

func NewOptEditableUser(v EditableUser) OptEditableUser

NewOptEditableUser returns new OptEditableUser with value set to v.

func (*OptEditableUser) Decode

func (o *OptEditableUser) Decode(d *jx.Decoder) error

Decode decodes EditableUser from json.

func (OptEditableUser) Encode

func (o OptEditableUser) Encode(e *jx.Encoder)

Encode encodes EditableUser as json.

func (OptEditableUser) Get

func (o OptEditableUser) Get() (v EditableUser, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptEditableUser) IsSet

func (o OptEditableUser) IsSet() bool

IsSet returns true if OptEditableUser was set.

func (OptEditableUser) MarshalJSON

func (s OptEditableUser) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditableUser) Or

Or returns value if set, or given parameter if does not.

func (*OptEditableUser) Reset

func (o *OptEditableUser) Reset()

Reset unsets value.

func (*OptEditableUser) SetTo

func (o *OptEditableUser) SetTo(v EditableUser)

SetTo sets value to v.

func (*OptEditableUser) UnmarshalJSON

func (s *OptEditableUser) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEditableVersion

type OptEditableVersion struct {
	Value EditableVersion
	Set   bool
}

OptEditableVersion is optional EditableVersion.

func NewOptEditableVersion

func NewOptEditableVersion(v EditableVersion) OptEditableVersion

NewOptEditableVersion returns new OptEditableVersion with value set to v.

func (*OptEditableVersion) Decode

func (o *OptEditableVersion) Decode(d *jx.Decoder) error

Decode decodes EditableVersion from json.

func (OptEditableVersion) Encode

func (o OptEditableVersion) Encode(e *jx.Encoder)

Encode encodes EditableVersion as json.

func (OptEditableVersion) Get

func (o OptEditableVersion) Get() (v EditableVersion, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptEditableVersion) IsSet

func (o OptEditableVersion) IsSet() bool

IsSet returns true if OptEditableVersion was set.

func (OptEditableVersion) MarshalJSON

func (s OptEditableVersion) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditableVersion) Or

Or returns value if set, or given parameter if does not.

func (*OptEditableVersion) Reset

func (o *OptEditableVersion) Reset()

Reset unsets value.

func (*OptEditableVersion) SetTo

func (o *OptEditableVersion) SetTo(v EditableVersion)

SetTo sets value to v.

func (*OptEditableVersion) UnmarshalJSON

func (s *OptEditableVersion) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEditableVersionStatus

type OptEditableVersionStatus struct {
	Value EditableVersionStatus
	Set   bool
}

OptEditableVersionStatus is optional EditableVersionStatus.

func NewOptEditableVersionStatus

func NewOptEditableVersionStatus(v EditableVersionStatus) OptEditableVersionStatus

NewOptEditableVersionStatus returns new OptEditableVersionStatus with value set to v.

func (*OptEditableVersionStatus) Decode

func (o *OptEditableVersionStatus) Decode(d *jx.Decoder) error

Decode decodes EditableVersionStatus from json.

func (OptEditableVersionStatus) Encode

func (o OptEditableVersionStatus) Encode(e *jx.Encoder)

Encode encodes EditableVersionStatus as json.

func (OptEditableVersionStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptEditableVersionStatus) IsSet

func (o OptEditableVersionStatus) IsSet() bool

IsSet returns true if OptEditableVersionStatus was set.

func (OptEditableVersionStatus) MarshalJSON

func (s OptEditableVersionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditableVersionStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptEditableVersionStatus) Reset

func (o *OptEditableVersionStatus) Reset()

Reset unsets value.

func (*OptEditableVersionStatus) SetTo

SetTo sets value to v.

func (*OptEditableVersionStatus) UnmarshalJSON

func (s *OptEditableVersionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEditableVersionVersionType

type OptEditableVersionVersionType struct {
	Value EditableVersionVersionType
	Set   bool
}

OptEditableVersionVersionType is optional EditableVersionVersionType.

func NewOptEditableVersionVersionType

func NewOptEditableVersionVersionType(v EditableVersionVersionType) OptEditableVersionVersionType

NewOptEditableVersionVersionType returns new OptEditableVersionVersionType with value set to v.

func (*OptEditableVersionVersionType) Decode

Decode decodes EditableVersionVersionType from json.

func (OptEditableVersionVersionType) Encode

Encode encodes EditableVersionVersionType as json.

func (OptEditableVersionVersionType) Get

Get returns value and boolean that denotes whether value was set.

func (OptEditableVersionVersionType) IsSet

IsSet returns true if OptEditableVersionVersionType was set.

func (OptEditableVersionVersionType) MarshalJSON

func (s OptEditableVersionVersionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditableVersionVersionType) Or

Or returns value if set, or given parameter if does not.

func (*OptEditableVersionVersionType) Reset

func (o *OptEditableVersionVersionType) Reset()

Reset unsets value.

func (*OptEditableVersionVersionType) SetTo

SetTo sets value to v.

func (*OptEditableVersionVersionType) UnmarshalJSON

func (s *OptEditableVersionVersionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptForgeUpdateCheckerPromos

type OptForgeUpdateCheckerPromos struct {
	Value ForgeUpdateCheckerPromos
	Set   bool
}

OptForgeUpdateCheckerPromos is optional ForgeUpdateCheckerPromos.

func NewOptForgeUpdateCheckerPromos

func NewOptForgeUpdateCheckerPromos(v ForgeUpdateCheckerPromos) OptForgeUpdateCheckerPromos

NewOptForgeUpdateCheckerPromos returns new OptForgeUpdateCheckerPromos with value set to v.

func (*OptForgeUpdateCheckerPromos) Decode

Decode decodes ForgeUpdateCheckerPromos from json.

func (OptForgeUpdateCheckerPromos) Encode

func (o OptForgeUpdateCheckerPromos) Encode(e *jx.Encoder)

Encode encodes ForgeUpdateCheckerPromos as json.

func (OptForgeUpdateCheckerPromos) Get

Get returns value and boolean that denotes whether value was set.

func (OptForgeUpdateCheckerPromos) IsSet

IsSet returns true if OptForgeUpdateCheckerPromos was set.

func (OptForgeUpdateCheckerPromos) MarshalJSON

func (s OptForgeUpdateCheckerPromos) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptForgeUpdateCheckerPromos) Or

Or returns value if set, or given parameter if does not.

func (*OptForgeUpdateCheckerPromos) Reset

func (o *OptForgeUpdateCheckerPromos) Reset()

Reset unsets value.

func (*OptForgeUpdateCheckerPromos) SetTo

SetTo sets value to v.

func (*OptForgeUpdateCheckerPromos) UnmarshalJSON

func (s *OptForgeUpdateCheckerPromos) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGetLatestVersionFromHashBody

type OptGetLatestVersionFromHashBody struct {
	Value GetLatestVersionFromHashBody
	Set   bool
}

OptGetLatestVersionFromHashBody is optional GetLatestVersionFromHashBody.

func NewOptGetLatestVersionFromHashBody

func NewOptGetLatestVersionFromHashBody(v GetLatestVersionFromHashBody) OptGetLatestVersionFromHashBody

NewOptGetLatestVersionFromHashBody returns new OptGetLatestVersionFromHashBody with value set to v.

func (*OptGetLatestVersionFromHashBody) Decode

Decode decodes GetLatestVersionFromHashBody from json.

func (OptGetLatestVersionFromHashBody) Encode

Encode encodes GetLatestVersionFromHashBody as json.

func (OptGetLatestVersionFromHashBody) Get

Get returns value and boolean that denotes whether value was set.

func (OptGetLatestVersionFromHashBody) IsSet

IsSet returns true if OptGetLatestVersionFromHashBody was set.

func (OptGetLatestVersionFromHashBody) MarshalJSON

func (s OptGetLatestVersionFromHashBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGetLatestVersionFromHashBody) Or

Or returns value if set, or given parameter if does not.

func (*OptGetLatestVersionFromHashBody) Reset

Reset unsets value.

func (*OptGetLatestVersionFromHashBody) SetTo

SetTo sets value to v.

func (*OptGetLatestVersionFromHashBody) UnmarshalJSON

func (s *OptGetLatestVersionFromHashBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGetLatestVersionsFromHashesBody

type OptGetLatestVersionsFromHashesBody struct {
	Value GetLatestVersionsFromHashesBody
	Set   bool
}

OptGetLatestVersionsFromHashesBody is optional GetLatestVersionsFromHashesBody.

func NewOptGetLatestVersionsFromHashesBody

func NewOptGetLatestVersionsFromHashesBody(v GetLatestVersionsFromHashesBody) OptGetLatestVersionsFromHashesBody

NewOptGetLatestVersionsFromHashesBody returns new OptGetLatestVersionsFromHashesBody with value set to v.

func (*OptGetLatestVersionsFromHashesBody) Decode

Decode decodes GetLatestVersionsFromHashesBody from json.

func (OptGetLatestVersionsFromHashesBody) Encode

Encode encodes GetLatestVersionsFromHashesBody as json.

func (OptGetLatestVersionsFromHashesBody) Get

Get returns value and boolean that denotes whether value was set.

func (OptGetLatestVersionsFromHashesBody) IsSet

IsSet returns true if OptGetLatestVersionsFromHashesBody was set.

func (OptGetLatestVersionsFromHashesBody) MarshalJSON

func (s OptGetLatestVersionsFromHashesBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGetLatestVersionsFromHashesBody) Or

Or returns value if set, or given parameter if does not.

func (*OptGetLatestVersionsFromHashesBody) Reset

Reset unsets value.

func (*OptGetLatestVersionsFromHashesBody) SetTo

SetTo sets value to v.

func (*OptGetLatestVersionsFromHashesBody) UnmarshalJSON

func (s *OptGetLatestVersionsFromHashesBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptHashList

type OptHashList struct {
	Value HashList
	Set   bool
}

OptHashList is optional HashList.

func NewOptHashList

func NewOptHashList(v HashList) OptHashList

NewOptHashList returns new OptHashList with value set to v.

func (*OptHashList) Decode

func (o *OptHashList) Decode(d *jx.Decoder) error

Decode decodes HashList from json.

func (OptHashList) Encode

func (o OptHashList) Encode(e *jx.Encoder)

Encode encodes HashList as json.

func (OptHashList) Get

func (o OptHashList) Get() (v HashList, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptHashList) IsSet

func (o OptHashList) IsSet() bool

IsSet returns true if OptHashList was set.

func (OptHashList) MarshalJSON

func (s OptHashList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptHashList) Or

func (o OptHashList) Or(d HashList) HashList

Or returns value if set, or given parameter if does not.

func (*OptHashList) Reset

func (o *OptHashList) Reset()

Reset unsets value.

func (*OptHashList) SetTo

func (o *OptHashList) SetTo(v HashList)

SetTo sets value to v.

func (*OptHashList) UnmarshalJSON

func (s *OptHashList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptModifyReportReq

type OptModifyReportReq struct {
	Value ModifyReportReq
	Set   bool
}

OptModifyReportReq is optional ModifyReportReq.

func NewOptModifyReportReq

func NewOptModifyReportReq(v ModifyReportReq) OptModifyReportReq

NewOptModifyReportReq returns new OptModifyReportReq with value set to v.

func (*OptModifyReportReq) Decode

func (o *OptModifyReportReq) Decode(d *jx.Decoder) error

Decode decodes ModifyReportReq from json.

func (OptModifyReportReq) Encode

func (o OptModifyReportReq) Encode(e *jx.Encoder)

Encode encodes ModifyReportReq as json.

func (OptModifyReportReq) Get

func (o OptModifyReportReq) Get() (v ModifyReportReq, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptModifyReportReq) IsSet

func (o OptModifyReportReq) IsSet() bool

IsSet returns true if OptModifyReportReq was set.

func (OptModifyReportReq) MarshalJSON

func (s OptModifyReportReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptModifyReportReq) Or

Or returns value if set, or given parameter if does not.

func (*OptModifyReportReq) Reset

func (o *OptModifyReportReq) Reset()

Reset unsets value.

func (*OptModifyReportReq) SetTo

func (o *OptModifyReportReq) SetTo(v ModifyReportReq)

SetTo sets value to v.

func (*OptModifyReportReq) UnmarshalJSON

func (s *OptModifyReportReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilBool

type OptNilBool struct {
	Value bool
	Set   bool
	Null  bool
}

OptNilBool is optional nullable bool.

func NewOptNilBool

func NewOptNilBool(v bool) OptNilBool

NewOptNilBool returns new OptNilBool with value set to v.

func (*OptNilBool) Decode

func (o *OptNilBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptNilBool) Encode

func (o OptNilBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptNilBool) Get

func (o OptNilBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilBool) IsNull

func (o OptNilBool) IsNull() bool

IsNull returns true if value is Null.

func (OptNilBool) IsSet

func (o OptNilBool) IsSet() bool

IsSet returns true if OptNilBool was set.

func (OptNilBool) MarshalJSON

func (s OptNilBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilBool) Or

func (o OptNilBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptNilBool) Reset

func (o *OptNilBool) Reset()

Reset unsets value.

func (*OptNilBool) SetTo

func (o *OptNilBool) SetTo(v bool)

SetTo sets value to v.

func (*OptNilBool) SetToNull

func (o *OptNilBool) SetToNull()

SetToNull sets value to null.

func (*OptNilBool) UnmarshalJSON

func (s *OptNilBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilCreatableVersionRequestedStatus

type OptNilCreatableVersionRequestedStatus struct {
	Value CreatableVersionRequestedStatus
	Set   bool
	Null  bool
}

OptNilCreatableVersionRequestedStatus is optional nullable CreatableVersionRequestedStatus.

func NewOptNilCreatableVersionRequestedStatus

func NewOptNilCreatableVersionRequestedStatus(v CreatableVersionRequestedStatus) OptNilCreatableVersionRequestedStatus

NewOptNilCreatableVersionRequestedStatus returns new OptNilCreatableVersionRequestedStatus with value set to v.

func (*OptNilCreatableVersionRequestedStatus) Decode

Decode decodes CreatableVersionRequestedStatus from json.

func (OptNilCreatableVersionRequestedStatus) Encode

Encode encodes CreatableVersionRequestedStatus as json.

func (OptNilCreatableVersionRequestedStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilCreatableVersionRequestedStatus) IsNull

IsNull returns true if value is Null.

func (OptNilCreatableVersionRequestedStatus) IsSet

IsSet returns true if OptNilCreatableVersionRequestedStatus was set.

func (OptNilCreatableVersionRequestedStatus) MarshalJSON

func (s OptNilCreatableVersionRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilCreatableVersionRequestedStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptNilCreatableVersionRequestedStatus) Reset

Reset unsets value.

func (*OptNilCreatableVersionRequestedStatus) SetTo

SetTo sets value to v.

func (*OptNilCreatableVersionRequestedStatus) SetToNull

SetToNull sets value to null.

func (*OptNilCreatableVersionRequestedStatus) UnmarshalJSON

func (s *OptNilCreatableVersionRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilEditableProjectRequestedStatus

type OptNilEditableProjectRequestedStatus struct {
	Value EditableProjectRequestedStatus
	Set   bool
	Null  bool
}

OptNilEditableProjectRequestedStatus is optional nullable EditableProjectRequestedStatus.

func NewOptNilEditableProjectRequestedStatus

func NewOptNilEditableProjectRequestedStatus(v EditableProjectRequestedStatus) OptNilEditableProjectRequestedStatus

NewOptNilEditableProjectRequestedStatus returns new OptNilEditableProjectRequestedStatus with value set to v.

func (*OptNilEditableProjectRequestedStatus) Decode

Decode decodes EditableProjectRequestedStatus from json.

func (OptNilEditableProjectRequestedStatus) Encode

Encode encodes EditableProjectRequestedStatus as json.

func (OptNilEditableProjectRequestedStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilEditableProjectRequestedStatus) IsNull

IsNull returns true if value is Null.

func (OptNilEditableProjectRequestedStatus) IsSet

IsSet returns true if OptNilEditableProjectRequestedStatus was set.

func (OptNilEditableProjectRequestedStatus) MarshalJSON

func (s OptNilEditableProjectRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilEditableProjectRequestedStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptNilEditableProjectRequestedStatus) Reset

Reset unsets value.

func (*OptNilEditableProjectRequestedStatus) SetTo

SetTo sets value to v.

func (*OptNilEditableProjectRequestedStatus) SetToNull

func (o *OptNilEditableProjectRequestedStatus) SetToNull()

SetToNull sets value to null.

func (*OptNilEditableProjectRequestedStatus) UnmarshalJSON

func (s *OptNilEditableProjectRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilEditableVersionRequestedStatus

type OptNilEditableVersionRequestedStatus struct {
	Value EditableVersionRequestedStatus
	Set   bool
	Null  bool
}

OptNilEditableVersionRequestedStatus is optional nullable EditableVersionRequestedStatus.

func NewOptNilEditableVersionRequestedStatus

func NewOptNilEditableVersionRequestedStatus(v EditableVersionRequestedStatus) OptNilEditableVersionRequestedStatus

NewOptNilEditableVersionRequestedStatus returns new OptNilEditableVersionRequestedStatus with value set to v.

func (*OptNilEditableVersionRequestedStatus) Decode

Decode decodes EditableVersionRequestedStatus from json.

func (OptNilEditableVersionRequestedStatus) Encode

Encode encodes EditableVersionRequestedStatus as json.

func (OptNilEditableVersionRequestedStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilEditableVersionRequestedStatus) IsNull

IsNull returns true if value is Null.

func (OptNilEditableVersionRequestedStatus) IsSet

IsSet returns true if OptNilEditableVersionRequestedStatus was set.

func (OptNilEditableVersionRequestedStatus) MarshalJSON

func (s OptNilEditableVersionRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilEditableVersionRequestedStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptNilEditableVersionRequestedStatus) Reset

Reset unsets value.

func (*OptNilEditableVersionRequestedStatus) SetTo

SetTo sets value to v.

func (*OptNilEditableVersionRequestedStatus) SetToNull

func (o *OptNilEditableVersionRequestedStatus) SetToNull()

SetToNull sets value to null.

func (*OptNilEditableVersionRequestedStatus) UnmarshalJSON

func (s *OptNilEditableVersionRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilInt

type OptNilInt struct {
	Value int
	Set   bool
	Null  bool
}

OptNilInt is optional nullable int.

func NewOptNilInt

func NewOptNilInt(v int) OptNilInt

NewOptNilInt returns new OptNilInt with value set to v.

func (*OptNilInt) Decode

func (o *OptNilInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptNilInt) Encode

func (o OptNilInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptNilInt) Get

func (o OptNilInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilInt) IsNull

func (o OptNilInt) IsNull() bool

IsNull returns true if value is Null.

func (OptNilInt) IsSet

func (o OptNilInt) IsSet() bool

IsSet returns true if OptNilInt was set.

func (OptNilInt) MarshalJSON

func (s OptNilInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilInt) Or

func (o OptNilInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptNilInt) Reset

func (o *OptNilInt) Reset()

Reset unsets value.

func (*OptNilInt) SetTo

func (o *OptNilInt) SetTo(v int)

SetTo sets value to v.

func (*OptNilInt) SetToNull

func (o *OptNilInt) SetToNull()

SetToNull sets value to null.

func (*OptNilInt) UnmarshalJSON

func (s *OptNilInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilModeratorMessage

type OptNilModeratorMessage struct {
	Value ModeratorMessage
	Set   bool
	Null  bool
}

OptNilModeratorMessage is optional nullable ModeratorMessage.

func NewOptNilModeratorMessage

func NewOptNilModeratorMessage(v ModeratorMessage) OptNilModeratorMessage

NewOptNilModeratorMessage returns new OptNilModeratorMessage with value set to v.

func (*OptNilModeratorMessage) Decode

func (o *OptNilModeratorMessage) Decode(d *jx.Decoder) error

Decode decodes ModeratorMessage from json.

func (OptNilModeratorMessage) Encode

func (o OptNilModeratorMessage) Encode(e *jx.Encoder)

Encode encodes ModeratorMessage as json.

func (OptNilModeratorMessage) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilModeratorMessage) IsNull

func (o OptNilModeratorMessage) IsNull() bool

IsNull returns true if value is Null.

func (OptNilModeratorMessage) IsSet

func (o OptNilModeratorMessage) IsSet() bool

IsSet returns true if OptNilModeratorMessage was set.

func (OptNilModeratorMessage) MarshalJSON

func (s OptNilModeratorMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilModeratorMessage) Or

Or returns value if set, or given parameter if does not.

func (*OptNilModeratorMessage) Reset

func (o *OptNilModeratorMessage) Reset()

Reset unsets value.

func (*OptNilModeratorMessage) SetTo

SetTo sets value to v.

func (*OptNilModeratorMessage) SetToNull

func (o *OptNilModeratorMessage) SetToNull()

SetToNull sets value to null.

func (*OptNilModeratorMessage) UnmarshalJSON

func (s *OptNilModeratorMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilNotificationType

type OptNilNotificationType struct {
	Value NotificationType
	Set   bool
	Null  bool
}

OptNilNotificationType is optional nullable NotificationType.

func NewOptNilNotificationType

func NewOptNilNotificationType(v NotificationType) OptNilNotificationType

NewOptNilNotificationType returns new OptNilNotificationType with value set to v.

func (*OptNilNotificationType) Decode

func (o *OptNilNotificationType) Decode(d *jx.Decoder) error

Decode decodes NotificationType from json.

func (OptNilNotificationType) Encode

func (o OptNilNotificationType) Encode(e *jx.Encoder)

Encode encodes NotificationType as json.

func (OptNilNotificationType) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilNotificationType) IsNull

func (o OptNilNotificationType) IsNull() bool

IsNull returns true if value is Null.

func (OptNilNotificationType) IsSet

func (o OptNilNotificationType) IsSet() bool

IsSet returns true if OptNilNotificationType was set.

func (OptNilNotificationType) MarshalJSON

func (s OptNilNotificationType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilNotificationType) Or

Or returns value if set, or given parameter if does not.

func (*OptNilNotificationType) Reset

func (o *OptNilNotificationType) Reset()

Reset unsets value.

func (*OptNilNotificationType) SetTo

SetTo sets value to v.

func (*OptNilNotificationType) SetToNull

func (o *OptNilNotificationType) SetToNull()

SetToNull sets value to null.

func (*OptNilNotificationType) UnmarshalJSON

func (s *OptNilNotificationType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilProjectRequestedStatus

type OptNilProjectRequestedStatus struct {
	Value ProjectRequestedStatus
	Set   bool
	Null  bool
}

OptNilProjectRequestedStatus is optional nullable ProjectRequestedStatus.

func NewOptNilProjectRequestedStatus

func NewOptNilProjectRequestedStatus(v ProjectRequestedStatus) OptNilProjectRequestedStatus

NewOptNilProjectRequestedStatus returns new OptNilProjectRequestedStatus with value set to v.

func (*OptNilProjectRequestedStatus) Decode

Decode decodes ProjectRequestedStatus from json.

func (OptNilProjectRequestedStatus) Encode

Encode encodes ProjectRequestedStatus as json.

func (OptNilProjectRequestedStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilProjectRequestedStatus) IsNull

IsNull returns true if value is Null.

func (OptNilProjectRequestedStatus) IsSet

IsSet returns true if OptNilProjectRequestedStatus was set.

func (OptNilProjectRequestedStatus) MarshalJSON

func (s OptNilProjectRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilProjectRequestedStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptNilProjectRequestedStatus) Reset

func (o *OptNilProjectRequestedStatus) Reset()

Reset unsets value.

func (*OptNilProjectRequestedStatus) SetTo

SetTo sets value to v.

func (*OptNilProjectRequestedStatus) SetToNull

func (o *OptNilProjectRequestedStatus) SetToNull()

SetToNull sets value to null.

func (*OptNilProjectRequestedStatus) UnmarshalJSON

func (s *OptNilProjectRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsNull

func (o OptNilString) IsNull() bool

IsNull returns true if value is Null.

func (OptNilString) IsSet

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetToNull sets value to null.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilStringArray

type OptNilStringArray struct {
	Value []string
	Set   bool
	Null  bool
}

OptNilStringArray is optional nullable []string.

func NewOptNilStringArray

func NewOptNilStringArray(v []string) OptNilStringArray

NewOptNilStringArray returns new OptNilStringArray with value set to v.

func (*OptNilStringArray) Decode

func (o *OptNilStringArray) Decode(d *jx.Decoder) error

Decode decodes []string from json.

func (OptNilStringArray) Encode

func (o OptNilStringArray) Encode(e *jx.Encoder)

Encode encodes []string as json.

func (OptNilStringArray) Get

func (o OptNilStringArray) Get() (v []string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilStringArray) IsNull

func (o OptNilStringArray) IsNull() bool

IsNull returns true if value is Null.

func (OptNilStringArray) IsSet

func (o OptNilStringArray) IsSet() bool

IsSet returns true if OptNilStringArray was set.

func (OptNilStringArray) MarshalJSON

func (s OptNilStringArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilStringArray) Or

func (o OptNilStringArray) Or(d []string) []string

Or returns value if set, or given parameter if does not.

func (*OptNilStringArray) Reset

func (o *OptNilStringArray) Reset()

Reset unsets value.

func (*OptNilStringArray) SetTo

func (o *OptNilStringArray) SetTo(v []string)

SetTo sets value to v.

func (*OptNilStringArray) SetToNull

func (o *OptNilStringArray) SetToNull()

SetToNull sets value to null.

func (*OptNilStringArray) UnmarshalJSON

func (s *OptNilStringArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilUserPayoutData

type OptNilUserPayoutData struct {
	Value UserPayoutData
	Set   bool
	Null  bool
}

OptNilUserPayoutData is optional nullable UserPayoutData.

func NewOptNilUserPayoutData

func NewOptNilUserPayoutData(v UserPayoutData) OptNilUserPayoutData

NewOptNilUserPayoutData returns new OptNilUserPayoutData with value set to v.

func (*OptNilUserPayoutData) Decode

func (o *OptNilUserPayoutData) Decode(d *jx.Decoder) error

Decode decodes UserPayoutData from json.

func (OptNilUserPayoutData) Encode

func (o OptNilUserPayoutData) Encode(e *jx.Encoder)

Encode encodes UserPayoutData as json.

func (OptNilUserPayoutData) Get

func (o OptNilUserPayoutData) Get() (v UserPayoutData, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilUserPayoutData) IsNull

func (o OptNilUserPayoutData) IsNull() bool

IsNull returns true if value is Null.

func (OptNilUserPayoutData) IsSet

func (o OptNilUserPayoutData) IsSet() bool

IsSet returns true if OptNilUserPayoutData was set.

func (OptNilUserPayoutData) MarshalJSON

func (s OptNilUserPayoutData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilUserPayoutData) Or

Or returns value if set, or given parameter if does not.

func (*OptNilUserPayoutData) Reset

func (o *OptNilUserPayoutData) Reset()

Reset unsets value.

func (*OptNilUserPayoutData) SetTo

SetTo sets value to v.

func (*OptNilUserPayoutData) SetToNull

func (o *OptNilUserPayoutData) SetToNull()

SetToNull sets value to null.

func (*OptNilUserPayoutData) UnmarshalJSON

func (s *OptNilUserPayoutData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilVersionFileFileType

type OptNilVersionFileFileType struct {
	Value VersionFileFileType
	Set   bool
	Null  bool
}

OptNilVersionFileFileType is optional nullable VersionFileFileType.

func NewOptNilVersionFileFileType

func NewOptNilVersionFileFileType(v VersionFileFileType) OptNilVersionFileFileType

NewOptNilVersionFileFileType returns new OptNilVersionFileFileType with value set to v.

func (*OptNilVersionFileFileType) Decode

func (o *OptNilVersionFileFileType) Decode(d *jx.Decoder) error

Decode decodes VersionFileFileType from json.

func (OptNilVersionFileFileType) Encode

func (o OptNilVersionFileFileType) Encode(e *jx.Encoder)

Encode encodes VersionFileFileType as json.

func (OptNilVersionFileFileType) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilVersionFileFileType) IsNull

func (o OptNilVersionFileFileType) IsNull() bool

IsNull returns true if value is Null.

func (OptNilVersionFileFileType) IsSet

func (o OptNilVersionFileFileType) IsSet() bool

IsSet returns true if OptNilVersionFileFileType was set.

func (OptNilVersionFileFileType) MarshalJSON

func (s OptNilVersionFileFileType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilVersionFileFileType) Or

Or returns value if set, or given parameter if does not.

func (*OptNilVersionFileFileType) Reset

func (o *OptNilVersionFileFileType) Reset()

Reset unsets value.

func (*OptNilVersionFileFileType) SetTo

SetTo sets value to v.

func (*OptNilVersionFileFileType) SetToNull

func (o *OptNilVersionFileFileType) SetToNull()

SetToNull sets value to null.

func (*OptNilVersionFileFileType) UnmarshalJSON

func (s *OptNilVersionFileFileType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilVersionRequestedStatus

type OptNilVersionRequestedStatus struct {
	Value VersionRequestedStatus
	Set   bool
	Null  bool
}

OptNilVersionRequestedStatus is optional nullable VersionRequestedStatus.

func NewOptNilVersionRequestedStatus

func NewOptNilVersionRequestedStatus(v VersionRequestedStatus) OptNilVersionRequestedStatus

NewOptNilVersionRequestedStatus returns new OptNilVersionRequestedStatus with value set to v.

func (*OptNilVersionRequestedStatus) Decode

Decode decodes VersionRequestedStatus from json.

func (OptNilVersionRequestedStatus) Encode

Encode encodes VersionRequestedStatus as json.

func (OptNilVersionRequestedStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilVersionRequestedStatus) IsNull

IsNull returns true if value is Null.

func (OptNilVersionRequestedStatus) IsSet

IsSet returns true if OptNilVersionRequestedStatus was set.

func (OptNilVersionRequestedStatus) MarshalJSON

func (s OptNilVersionRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilVersionRequestedStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptNilVersionRequestedStatus) Reset

func (o *OptNilVersionRequestedStatus) Reset()

Reset unsets value.

func (*OptNilVersionRequestedStatus) SetTo

SetTo sets value to v.

func (*OptNilVersionRequestedStatus) SetToNull

func (o *OptNilVersionRequestedStatus) SetToNull()

SetToNull sets value to null.

func (*OptNilVersionRequestedStatus) UnmarshalJSON

func (s *OptNilVersionRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPatchProjectsBody

type OptPatchProjectsBody struct {
	Value PatchProjectsBody
	Set   bool
}

OptPatchProjectsBody is optional PatchProjectsBody.

func NewOptPatchProjectsBody

func NewOptPatchProjectsBody(v PatchProjectsBody) OptPatchProjectsBody

NewOptPatchProjectsBody returns new OptPatchProjectsBody with value set to v.

func (*OptPatchProjectsBody) Decode

func (o *OptPatchProjectsBody) Decode(d *jx.Decoder) error

Decode decodes PatchProjectsBody from json.

func (OptPatchProjectsBody) Encode

func (o OptPatchProjectsBody) Encode(e *jx.Encoder)

Encode encodes PatchProjectsBody as json.

func (OptPatchProjectsBody) Get

Get returns value and boolean that denotes whether value was set.

func (OptPatchProjectsBody) IsSet

func (o OptPatchProjectsBody) IsSet() bool

IsSet returns true if OptPatchProjectsBody was set.

func (OptPatchProjectsBody) MarshalJSON

func (s OptPatchProjectsBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPatchProjectsBody) Or

Or returns value if set, or given parameter if does not.

func (*OptPatchProjectsBody) Reset

func (o *OptPatchProjectsBody) Reset()

Reset unsets value.

func (*OptPatchProjectsBody) SetTo

SetTo sets value to v.

func (*OptPatchProjectsBody) UnmarshalJSON

func (s *OptPatchProjectsBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptProjectLicense

type OptProjectLicense struct {
	Value ProjectLicense
	Set   bool
}

OptProjectLicense is optional ProjectLicense.

func NewOptProjectLicense

func NewOptProjectLicense(v ProjectLicense) OptProjectLicense

NewOptProjectLicense returns new OptProjectLicense with value set to v.

func (*OptProjectLicense) Decode

func (o *OptProjectLicense) Decode(d *jx.Decoder) error

Decode decodes ProjectLicense from json.

func (OptProjectLicense) Encode

func (o OptProjectLicense) Encode(e *jx.Encoder)

Encode encodes ProjectLicense as json.

func (OptProjectLicense) Get

func (o OptProjectLicense) Get() (v ProjectLicense, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptProjectLicense) IsSet

func (o OptProjectLicense) IsSet() bool

IsSet returns true if OptProjectLicense was set.

func (OptProjectLicense) MarshalJSON

func (s OptProjectLicense) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptProjectLicense) Or

Or returns value if set, or given parameter if does not.

func (*OptProjectLicense) Reset

func (o *OptProjectLicense) Reset()

Reset unsets value.

func (*OptProjectLicense) SetTo

func (o *OptProjectLicense) SetTo(v ProjectLicense)

SetTo sets value to v.

func (*OptProjectLicense) UnmarshalJSON

func (s *OptProjectLicense) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptProjectMonetizationStatus

type OptProjectMonetizationStatus struct {
	Value ProjectMonetizationStatus
	Set   bool
}

OptProjectMonetizationStatus is optional ProjectMonetizationStatus.

func NewOptProjectMonetizationStatus

func NewOptProjectMonetizationStatus(v ProjectMonetizationStatus) OptProjectMonetizationStatus

NewOptProjectMonetizationStatus returns new OptProjectMonetizationStatus with value set to v.

func (*OptProjectMonetizationStatus) Decode

Decode decodes ProjectMonetizationStatus from json.

func (OptProjectMonetizationStatus) Encode

Encode encodes ProjectMonetizationStatus as json.

func (OptProjectMonetizationStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptProjectMonetizationStatus) IsSet

IsSet returns true if OptProjectMonetizationStatus was set.

func (OptProjectMonetizationStatus) MarshalJSON

func (s OptProjectMonetizationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptProjectMonetizationStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptProjectMonetizationStatus) Reset

func (o *OptProjectMonetizationStatus) Reset()

Reset unsets value.

func (*OptProjectMonetizationStatus) SetTo

SetTo sets value to v.

func (*OptProjectMonetizationStatus) UnmarshalJSON

func (s *OptProjectMonetizationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptProjectResultMonetizationStatus

type OptProjectResultMonetizationStatus struct {
	Value ProjectResultMonetizationStatus
	Set   bool
}

OptProjectResultMonetizationStatus is optional ProjectResultMonetizationStatus.

func NewOptProjectResultMonetizationStatus

func NewOptProjectResultMonetizationStatus(v ProjectResultMonetizationStatus) OptProjectResultMonetizationStatus

NewOptProjectResultMonetizationStatus returns new OptProjectResultMonetizationStatus with value set to v.

func (*OptProjectResultMonetizationStatus) Decode

Decode decodes ProjectResultMonetizationStatus from json.

func (OptProjectResultMonetizationStatus) Encode

Encode encodes ProjectResultMonetizationStatus as json.

func (OptProjectResultMonetizationStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptProjectResultMonetizationStatus) IsSet

IsSet returns true if OptProjectResultMonetizationStatus was set.

func (OptProjectResultMonetizationStatus) MarshalJSON

func (s OptProjectResultMonetizationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptProjectResultMonetizationStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptProjectResultMonetizationStatus) Reset

Reset unsets value.

func (*OptProjectResultMonetizationStatus) SetTo

SetTo sets value to v.

func (*OptProjectResultMonetizationStatus) UnmarshalJSON

func (s *OptProjectResultMonetizationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSchedule

type OptSchedule struct {
	Value Schedule
	Set   bool
}

OptSchedule is optional Schedule.

func NewOptSchedule

func NewOptSchedule(v Schedule) OptSchedule

NewOptSchedule returns new OptSchedule with value set to v.

func (*OptSchedule) Decode

func (o *OptSchedule) Decode(d *jx.Decoder) error

Decode decodes Schedule from json.

func (OptSchedule) Encode

func (o OptSchedule) Encode(e *jx.Encoder)

Encode encodes Schedule as json.

func (OptSchedule) Get

func (o OptSchedule) Get() (v Schedule, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSchedule) IsSet

func (o OptSchedule) IsSet() bool

IsSet returns true if OptSchedule was set.

func (OptSchedule) MarshalJSON

func (s OptSchedule) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSchedule) Or

func (o OptSchedule) Or(d Schedule) Schedule

Or returns value if set, or given parameter if does not.

func (*OptSchedule) Reset

func (o *OptSchedule) Reset()

Reset unsets value.

func (*OptSchedule) SetTo

func (o *OptSchedule) SetTo(v Schedule)

SetTo sets value to v.

func (*OptSchedule) UnmarshalJSON

func (s *OptSchedule) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSearchProjectsIndex

type OptSearchProjectsIndex struct {
	Value SearchProjectsIndex
	Set   bool
}

OptSearchProjectsIndex is optional SearchProjectsIndex.

func NewOptSearchProjectsIndex

func NewOptSearchProjectsIndex(v SearchProjectsIndex) OptSearchProjectsIndex

NewOptSearchProjectsIndex returns new OptSearchProjectsIndex with value set to v.

func (OptSearchProjectsIndex) Get

Get returns value and boolean that denotes whether value was set.

func (OptSearchProjectsIndex) IsSet

func (o OptSearchProjectsIndex) IsSet() bool

IsSet returns true if OptSearchProjectsIndex was set.

func (OptSearchProjectsIndex) Or

Or returns value if set, or given parameter if does not.

func (*OptSearchProjectsIndex) Reset

func (o *OptSearchProjectsIndex) Reset()

Reset unsets value.

func (*OptSearchProjectsIndex) SetTo

SetTo sets value to v.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptThreadMessageBody

type OptThreadMessageBody struct {
	Value ThreadMessageBody
	Set   bool
}

OptThreadMessageBody is optional ThreadMessageBody.

func NewOptThreadMessageBody

func NewOptThreadMessageBody(v ThreadMessageBody) OptThreadMessageBody

NewOptThreadMessageBody returns new OptThreadMessageBody with value set to v.

func (*OptThreadMessageBody) Decode

func (o *OptThreadMessageBody) Decode(d *jx.Decoder) error

Decode decodes ThreadMessageBody from json.

func (OptThreadMessageBody) Encode

func (o OptThreadMessageBody) Encode(e *jx.Encoder)

Encode encodes ThreadMessageBody as json.

func (OptThreadMessageBody) Get

Get returns value and boolean that denotes whether value was set.

func (OptThreadMessageBody) IsSet

func (o OptThreadMessageBody) IsSet() bool

IsSet returns true if OptThreadMessageBody was set.

func (OptThreadMessageBody) MarshalJSON

func (s OptThreadMessageBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptThreadMessageBody) Or

Or returns value if set, or given parameter if does not.

func (*OptThreadMessageBody) Reset

func (o *OptThreadMessageBody) Reset()

Reset unsets value.

func (*OptThreadMessageBody) SetTo

SetTo sets value to v.

func (*OptThreadMessageBody) UnmarshalJSON

func (s *OptThreadMessageBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptThreadMessageBodyNewStatus

type OptThreadMessageBodyNewStatus struct {
	Value ThreadMessageBodyNewStatus
	Set   bool
}

OptThreadMessageBodyNewStatus is optional ThreadMessageBodyNewStatus.

func NewOptThreadMessageBodyNewStatus

func NewOptThreadMessageBodyNewStatus(v ThreadMessageBodyNewStatus) OptThreadMessageBodyNewStatus

NewOptThreadMessageBodyNewStatus returns new OptThreadMessageBodyNewStatus with value set to v.

func (*OptThreadMessageBodyNewStatus) Decode

Decode decodes ThreadMessageBodyNewStatus from json.

func (OptThreadMessageBodyNewStatus) Encode

Encode encodes ThreadMessageBodyNewStatus as json.

func (OptThreadMessageBodyNewStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptThreadMessageBodyNewStatus) IsSet

IsSet returns true if OptThreadMessageBodyNewStatus was set.

func (OptThreadMessageBodyNewStatus) MarshalJSON

func (s OptThreadMessageBodyNewStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptThreadMessageBodyNewStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptThreadMessageBodyNewStatus) Reset

func (o *OptThreadMessageBodyNewStatus) Reset()

Reset unsets value.

func (*OptThreadMessageBodyNewStatus) SetTo

SetTo sets value to v.

func (*OptThreadMessageBodyNewStatus) UnmarshalJSON

func (s *OptThreadMessageBodyNewStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptThreadMessageBodyOldStatus

type OptThreadMessageBodyOldStatus struct {
	Value ThreadMessageBodyOldStatus
	Set   bool
}

OptThreadMessageBodyOldStatus is optional ThreadMessageBodyOldStatus.

func NewOptThreadMessageBodyOldStatus

func NewOptThreadMessageBodyOldStatus(v ThreadMessageBodyOldStatus) OptThreadMessageBodyOldStatus

NewOptThreadMessageBodyOldStatus returns new OptThreadMessageBodyOldStatus with value set to v.

func (*OptThreadMessageBodyOldStatus) Decode

Decode decodes ThreadMessageBodyOldStatus from json.

func (OptThreadMessageBodyOldStatus) Encode

Encode encodes ThreadMessageBodyOldStatus as json.

func (OptThreadMessageBodyOldStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptThreadMessageBodyOldStatus) IsSet

IsSet returns true if OptThreadMessageBodyOldStatus was set.

func (OptThreadMessageBodyOldStatus) MarshalJSON

func (s OptThreadMessageBodyOldStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptThreadMessageBodyOldStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptThreadMessageBodyOldStatus) Reset

func (o *OptThreadMessageBodyOldStatus) Reset()

Reset unsets value.

func (*OptThreadMessageBodyOldStatus) SetTo

SetTo sets value to v.

func (*OptThreadMessageBodyOldStatus) UnmarshalJSON

func (s *OptThreadMessageBodyOldStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUserPayoutDataPayoutWallet

type OptUserPayoutDataPayoutWallet struct {
	Value UserPayoutDataPayoutWallet
	Set   bool
}

OptUserPayoutDataPayoutWallet is optional UserPayoutDataPayoutWallet.

func NewOptUserPayoutDataPayoutWallet

func NewOptUserPayoutDataPayoutWallet(v UserPayoutDataPayoutWallet) OptUserPayoutDataPayoutWallet

NewOptUserPayoutDataPayoutWallet returns new OptUserPayoutDataPayoutWallet with value set to v.

func (*OptUserPayoutDataPayoutWallet) Decode

Decode decodes UserPayoutDataPayoutWallet from json.

func (OptUserPayoutDataPayoutWallet) Encode

Encode encodes UserPayoutDataPayoutWallet as json.

func (OptUserPayoutDataPayoutWallet) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserPayoutDataPayoutWallet) IsSet

IsSet returns true if OptUserPayoutDataPayoutWallet was set.

func (OptUserPayoutDataPayoutWallet) MarshalJSON

func (s OptUserPayoutDataPayoutWallet) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserPayoutDataPayoutWallet) Or

Or returns value if set, or given parameter if does not.

func (*OptUserPayoutDataPayoutWallet) Reset

func (o *OptUserPayoutDataPayoutWallet) Reset()

Reset unsets value.

func (*OptUserPayoutDataPayoutWallet) SetTo

SetTo sets value to v.

func (*OptUserPayoutDataPayoutWallet) UnmarshalJSON

func (s *OptUserPayoutDataPayoutWallet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUserPayoutDataPayoutWalletType

type OptUserPayoutDataPayoutWalletType struct {
	Value UserPayoutDataPayoutWalletType
	Set   bool
}

OptUserPayoutDataPayoutWalletType is optional UserPayoutDataPayoutWalletType.

func NewOptUserPayoutDataPayoutWalletType

func NewOptUserPayoutDataPayoutWalletType(v UserPayoutDataPayoutWalletType) OptUserPayoutDataPayoutWalletType

NewOptUserPayoutDataPayoutWalletType returns new OptUserPayoutDataPayoutWalletType with value set to v.

func (*OptUserPayoutDataPayoutWalletType) Decode

Decode decodes UserPayoutDataPayoutWalletType from json.

func (OptUserPayoutDataPayoutWalletType) Encode

Encode encodes UserPayoutDataPayoutWalletType as json.

func (OptUserPayoutDataPayoutWalletType) Get

Get returns value and boolean that denotes whether value was set.

func (OptUserPayoutDataPayoutWalletType) IsSet

IsSet returns true if OptUserPayoutDataPayoutWalletType was set.

func (OptUserPayoutDataPayoutWalletType) MarshalJSON

func (s OptUserPayoutDataPayoutWalletType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUserPayoutDataPayoutWalletType) Or

Or returns value if set, or given parameter if does not.

func (*OptUserPayoutDataPayoutWalletType) Reset

Reset unsets value.

func (*OptUserPayoutDataPayoutWalletType) SetTo

SetTo sets value to v.

func (*OptUserPayoutDataPayoutWalletType) UnmarshalJSON

func (s *OptUserPayoutDataPayoutWalletType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVersionStatus

type OptVersionStatus struct {
	Value VersionStatus
	Set   bool
}

OptVersionStatus is optional VersionStatus.

func NewOptVersionStatus

func NewOptVersionStatus(v VersionStatus) OptVersionStatus

NewOptVersionStatus returns new OptVersionStatus with value set to v.

func (*OptVersionStatus) Decode

func (o *OptVersionStatus) Decode(d *jx.Decoder) error

Decode decodes VersionStatus from json.

func (OptVersionStatus) Encode

func (o OptVersionStatus) Encode(e *jx.Encoder)

Encode encodes VersionStatus as json.

func (OptVersionStatus) Get

func (o OptVersionStatus) Get() (v VersionStatus, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptVersionStatus) IsSet

func (o OptVersionStatus) IsSet() bool

IsSet returns true if OptVersionStatus was set.

func (OptVersionStatus) MarshalJSON

func (s OptVersionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVersionStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptVersionStatus) Reset

func (o *OptVersionStatus) Reset()

Reset unsets value.

func (*OptVersionStatus) SetTo

func (o *OptVersionStatus) SetTo(v VersionStatus)

SetTo sets value to v.

func (*OptVersionStatus) UnmarshalJSON

func (s *OptVersionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ClientOption
}

Option is config option.

type PatchProjectsBody

type PatchProjectsBody struct {
	// Set all of the categories to the categories specified here.
	Categories []string `json:"categories"`
	// Add all of the categories specified here.
	AddCategories []string `json:"add_categories"`
	// Remove all of the categories specified here.
	RemoveCategories []string `json:"remove_categories"`
	// Set all of the additional categories to the categories specified here.
	AdditionalCategories []string `json:"additional_categories"`
	// Add all of the additional categories specified here.
	AddAdditionalCategories []string `json:"add_additional_categories"`
	// Remove all of the additional categories specified here.
	RemoveAdditionalCategories []string `json:"remove_additional_categories"`
	// Set all of the donation links to the donation links specified here.
	DonationUrls []ProjectDonationURL `json:"donation_urls"`
	// Add all of the donation links specified here.
	AddDonationUrls []ProjectDonationURL `json:"add_donation_urls"`
	// Remove all of the donation links specified here.
	RemoveDonationUrls []ProjectDonationURL `json:"remove_donation_urls"`
	// An optional link to where to submit bugs or issues with the projects.
	IssuesURL OptNilString `json:"issues_url"`
	// An optional link to the source code of the projects.
	SourceURL OptNilString `json:"source_url"`
	// An optional link to the projects' wiki page or other relevant information.
	WikiURL OptNilString `json:"wiki_url"`
	// An optional invite link to the projects' discord.
	DiscordURL OptNilString `json:"discord_url"`
}

Ref: #/components/schemas/PatchProjectsBody

func (*PatchProjectsBody) Decode

func (s *PatchProjectsBody) Decode(d *jx.Decoder) error

Decode decodes PatchProjectsBody from json.

func (*PatchProjectsBody) Encode

func (s *PatchProjectsBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PatchProjectsBody) GetAddAdditionalCategories

func (s *PatchProjectsBody) GetAddAdditionalCategories() []string

GetAddAdditionalCategories returns the value of AddAdditionalCategories.

func (*PatchProjectsBody) GetAddCategories

func (s *PatchProjectsBody) GetAddCategories() []string

GetAddCategories returns the value of AddCategories.

func (*PatchProjectsBody) GetAddDonationUrls

func (s *PatchProjectsBody) GetAddDonationUrls() []ProjectDonationURL

GetAddDonationUrls returns the value of AddDonationUrls.

func (*PatchProjectsBody) GetAdditionalCategories

func (s *PatchProjectsBody) GetAdditionalCategories() []string

GetAdditionalCategories returns the value of AdditionalCategories.

func (*PatchProjectsBody) GetCategories

func (s *PatchProjectsBody) GetCategories() []string

GetCategories returns the value of Categories.

func (*PatchProjectsBody) GetDiscordURL

func (s *PatchProjectsBody) GetDiscordURL() OptNilString

GetDiscordURL returns the value of DiscordURL.

func (*PatchProjectsBody) GetDonationUrls

func (s *PatchProjectsBody) GetDonationUrls() []ProjectDonationURL

GetDonationUrls returns the value of DonationUrls.

func (*PatchProjectsBody) GetIssuesURL

func (s *PatchProjectsBody) GetIssuesURL() OptNilString

GetIssuesURL returns the value of IssuesURL.

func (*PatchProjectsBody) GetRemoveAdditionalCategories

func (s *PatchProjectsBody) GetRemoveAdditionalCategories() []string

GetRemoveAdditionalCategories returns the value of RemoveAdditionalCategories.

func (*PatchProjectsBody) GetRemoveCategories

func (s *PatchProjectsBody) GetRemoveCategories() []string

GetRemoveCategories returns the value of RemoveCategories.

func (*PatchProjectsBody) GetRemoveDonationUrls

func (s *PatchProjectsBody) GetRemoveDonationUrls() []ProjectDonationURL

GetRemoveDonationUrls returns the value of RemoveDonationUrls.

func (*PatchProjectsBody) GetSourceURL

func (s *PatchProjectsBody) GetSourceURL() OptNilString

GetSourceURL returns the value of SourceURL.

func (*PatchProjectsBody) GetWikiURL

func (s *PatchProjectsBody) GetWikiURL() OptNilString

GetWikiURL returns the value of WikiURL.

func (*PatchProjectsBody) MarshalJSON

func (s *PatchProjectsBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PatchProjectsBody) SetAddAdditionalCategories

func (s *PatchProjectsBody) SetAddAdditionalCategories(val []string)

SetAddAdditionalCategories sets the value of AddAdditionalCategories.

func (*PatchProjectsBody) SetAddCategories

func (s *PatchProjectsBody) SetAddCategories(val []string)

SetAddCategories sets the value of AddCategories.

func (*PatchProjectsBody) SetAddDonationUrls

func (s *PatchProjectsBody) SetAddDonationUrls(val []ProjectDonationURL)

SetAddDonationUrls sets the value of AddDonationUrls.

func (*PatchProjectsBody) SetAdditionalCategories

func (s *PatchProjectsBody) SetAdditionalCategories(val []string)

SetAdditionalCategories sets the value of AdditionalCategories.

func (*PatchProjectsBody) SetCategories

func (s *PatchProjectsBody) SetCategories(val []string)

SetCategories sets the value of Categories.

func (*PatchProjectsBody) SetDiscordURL

func (s *PatchProjectsBody) SetDiscordURL(val OptNilString)

SetDiscordURL sets the value of DiscordURL.

func (*PatchProjectsBody) SetDonationUrls

func (s *PatchProjectsBody) SetDonationUrls(val []ProjectDonationURL)

SetDonationUrls sets the value of DonationUrls.

func (*PatchProjectsBody) SetIssuesURL

func (s *PatchProjectsBody) SetIssuesURL(val OptNilString)

SetIssuesURL sets the value of IssuesURL.

func (*PatchProjectsBody) SetRemoveAdditionalCategories

func (s *PatchProjectsBody) SetRemoveAdditionalCategories(val []string)

SetRemoveAdditionalCategories sets the value of RemoveAdditionalCategories.

func (*PatchProjectsBody) SetRemoveCategories

func (s *PatchProjectsBody) SetRemoveCategories(val []string)

SetRemoveCategories sets the value of RemoveCategories.

func (*PatchProjectsBody) SetRemoveDonationUrls

func (s *PatchProjectsBody) SetRemoveDonationUrls(val []ProjectDonationURL)

SetRemoveDonationUrls sets the value of RemoveDonationUrls.

func (*PatchProjectsBody) SetSourceURL

func (s *PatchProjectsBody) SetSourceURL(val OptNilString)

SetSourceURL sets the value of SourceURL.

func (*PatchProjectsBody) SetWikiURL

func (s *PatchProjectsBody) SetWikiURL(val OptNilString)

SetWikiURL sets the value of WikiURL.

func (*PatchProjectsBody) UnmarshalJSON

func (s *PatchProjectsBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PatchProjectsNoContent

type PatchProjectsNoContent struct{}

PatchProjectsNoContent is response for PatchProjects operation.

type PatchProjectsParams

type PatchProjectsParams struct {
	// The IDs and/or slugs of the projects.
	Ids string
}

PatchProjectsParams is parameters of patchProjects operation.

type PatchProjectsRes

type PatchProjectsRes interface {
	// contains filtered or unexported methods
}

type Project

type Project struct {
	// Merged property.
	Slug string `json:"slug"`
	// Merged property.
	Title string `json:"title"`
	// Merged property.
	Description string `json:"description"`
	// Merged property.
	Categories []string `json:"categories"`
	// Merged property.
	ClientSide ProjectClientSide `json:"client_side"`
	// Merged property.
	ServerSide ProjectServerSide `json:"server_side"`
	// A long form description of the project.
	Body string `json:"body"`
	// The status of the project.
	Status ProjectStatus `json:"status"`
	// The requested status when submitting for review or scheduling the project for release.
	RequestedStatus OptNilProjectRequestedStatus `json:"requested_status"`
	// A list of categories which are searchable but non-primary.
	AdditionalCategories []string `json:"additional_categories"`
	// An optional link to where to submit bugs or issues with the project.
	IssuesURL OptNilString `json:"issues_url"`
	// An optional link to the source code of the project.
	SourceURL OptNilString `json:"source_url"`
	// An optional link to the project's wiki page or other relevant information.
	WikiURL OptNilString `json:"wiki_url"`
	// An optional invite link to the project's discord.
	DiscordURL OptNilString `json:"discord_url"`
	// A list of donation links for the project.
	DonationUrls []ProjectDonationURL `json:"donation_urls"`
	// The project type of the project.
	ProjectType ProjectProjectType `json:"project_type"`
	// The total number of downloads of the project.
	Downloads int `json:"downloads"`
	// The URL of the project's icon.
	IconURL OptNilString `json:"icon_url"`
	// The RGB color of the project, automatically generated from the project icon.
	Color OptNilInt `json:"color"`
	// The ID of the moderation thread associated with this project.
	ThreadID           OptString                    `json:"thread_id"`
	MonetizationStatus OptProjectMonetizationStatus `json:"monetization_status"`
	// The ID of the project, encoded as a base62 string.
	ID string `json:"id"`
	// The ID of the team that has ownership of this project.
	Team string `json:"team"`
	// The link to the long description of the project. Always null, only kept for legacy compatibility.
	//
	// Deprecated: schema marks this property as deprecated.
	BodyURL OptNilString `json:"body_url"`
	// Deprecated: schema marks this property as deprecated.
	ModeratorMessage OptNilModeratorMessage `json:"moderator_message"`
	// The date the project was published.
	Published string `json:"published"`
	// The date the project was last updated.
	Updated string `json:"updated"`
	// The date the project's status was set to an approved status.
	Approved OptNilString `json:"approved"`
	// The date the project's status was submitted to moderators for review.
	Queued OptNilString `json:"queued"`
	// The total number of users following the project.
	Followers int               `json:"followers"`
	License   OptProjectLicense `json:"license"`
	// A list of the version IDs of the project (will never be empty unless `draft` status).
	Versions []string `json:"versions"`
	// A list of all of the game versions supported by the project.
	GameVersions []string `json:"game_versions"`
	// A list of all of the loaders supported by the project.
	Loaders []string `json:"loaders"`
	// A list of images that have been uploaded to the project's gallery.
	Gallery []NilGalleryImage `json:"gallery"`
}

Merged schema. Ref: #/components/schemas/Project

func (*Project) Decode

func (s *Project) Decode(d *jx.Decoder) error

Decode decodes Project from json.

func (*Project) Encode

func (s *Project) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Project) GetAdditionalCategories

func (s *Project) GetAdditionalCategories() []string

GetAdditionalCategories returns the value of AdditionalCategories.

func (*Project) GetApproved

func (s *Project) GetApproved() OptNilString

GetApproved returns the value of Approved.

func (*Project) GetBody

func (s *Project) GetBody() string

GetBody returns the value of Body.

func (*Project) GetBodyURL

func (s *Project) GetBodyURL() OptNilString

GetBodyURL returns the value of BodyURL.

func (*Project) GetCategories

func (s *Project) GetCategories() []string

GetCategories returns the value of Categories.

func (*Project) GetClientSide

func (s *Project) GetClientSide() ProjectClientSide

GetClientSide returns the value of ClientSide.

func (*Project) GetColor

func (s *Project) GetColor() OptNilInt

GetColor returns the value of Color.

func (*Project) GetDescription

func (s *Project) GetDescription() string

GetDescription returns the value of Description.

func (*Project) GetDiscordURL

func (s *Project) GetDiscordURL() OptNilString

GetDiscordURL returns the value of DiscordURL.

func (*Project) GetDonationUrls

func (s *Project) GetDonationUrls() []ProjectDonationURL

GetDonationUrls returns the value of DonationUrls.

func (*Project) GetDownloads

func (s *Project) GetDownloads() int

GetDownloads returns the value of Downloads.

func (*Project) GetFollowers

func (s *Project) GetFollowers() int

GetFollowers returns the value of Followers.

func (*Project) GetGallery

func (s *Project) GetGallery() []NilGalleryImage

GetGallery returns the value of Gallery.

func (*Project) GetGameVersions

func (s *Project) GetGameVersions() []string

GetGameVersions returns the value of GameVersions.

func (*Project) GetID

func (s *Project) GetID() string

GetID returns the value of ID.

func (*Project) GetIconURL

func (s *Project) GetIconURL() OptNilString

GetIconURL returns the value of IconURL.

func (*Project) GetIssuesURL

func (s *Project) GetIssuesURL() OptNilString

GetIssuesURL returns the value of IssuesURL.

func (*Project) GetLicense

func (s *Project) GetLicense() OptProjectLicense

GetLicense returns the value of License.

func (*Project) GetLoaders

func (s *Project) GetLoaders() []string

GetLoaders returns the value of Loaders.

func (*Project) GetModeratorMessage

func (s *Project) GetModeratorMessage() OptNilModeratorMessage

GetModeratorMessage returns the value of ModeratorMessage.

func (*Project) GetMonetizationStatus

func (s *Project) GetMonetizationStatus() OptProjectMonetizationStatus

GetMonetizationStatus returns the value of MonetizationStatus.

func (*Project) GetProjectType

func (s *Project) GetProjectType() ProjectProjectType

GetProjectType returns the value of ProjectType.

func (*Project) GetPublished

func (s *Project) GetPublished() string

GetPublished returns the value of Published.

func (*Project) GetQueued

func (s *Project) GetQueued() OptNilString

GetQueued returns the value of Queued.

func (*Project) GetRequestedStatus

func (s *Project) GetRequestedStatus() OptNilProjectRequestedStatus

GetRequestedStatus returns the value of RequestedStatus.

func (*Project) GetServerSide

func (s *Project) GetServerSide() ProjectServerSide

GetServerSide returns the value of ServerSide.

func (*Project) GetSlug

func (s *Project) GetSlug() string

GetSlug returns the value of Slug.

func (*Project) GetSourceURL

func (s *Project) GetSourceURL() OptNilString

GetSourceURL returns the value of SourceURL.

func (*Project) GetStatus

func (s *Project) GetStatus() ProjectStatus

GetStatus returns the value of Status.

func (*Project) GetTeam

func (s *Project) GetTeam() string

GetTeam returns the value of Team.

func (*Project) GetThreadID

func (s *Project) GetThreadID() OptString

GetThreadID returns the value of ThreadID.

func (*Project) GetTitle

func (s *Project) GetTitle() string

GetTitle returns the value of Title.

func (*Project) GetUpdated

func (s *Project) GetUpdated() string

GetUpdated returns the value of Updated.

func (*Project) GetVersions

func (s *Project) GetVersions() []string

GetVersions returns the value of Versions.

func (*Project) GetWikiURL

func (s *Project) GetWikiURL() OptNilString

GetWikiURL returns the value of WikiURL.

func (*Project) MarshalJSON

func (s *Project) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Project) SetAdditionalCategories

func (s *Project) SetAdditionalCategories(val []string)

SetAdditionalCategories sets the value of AdditionalCategories.

func (*Project) SetApproved

func (s *Project) SetApproved(val OptNilString)

SetApproved sets the value of Approved.

func (*Project) SetBody

func (s *Project) SetBody(val string)

SetBody sets the value of Body.

func (*Project) SetBodyURL

func (s *Project) SetBodyURL(val OptNilString)

SetBodyURL sets the value of BodyURL.

func (*Project) SetCategories

func (s *Project) SetCategories(val []string)

SetCategories sets the value of Categories.

func (*Project) SetClientSide

func (s *Project) SetClientSide(val ProjectClientSide)

SetClientSide sets the value of ClientSide.

func (*Project) SetColor

func (s *Project) SetColor(val OptNilInt)

SetColor sets the value of Color.

func (*Project) SetDescription

func (s *Project) SetDescription(val string)

SetDescription sets the value of Description.

func (*Project) SetDiscordURL

func (s *Project) SetDiscordURL(val OptNilString)

SetDiscordURL sets the value of DiscordURL.

func (*Project) SetDonationUrls

func (s *Project) SetDonationUrls(val []ProjectDonationURL)

SetDonationUrls sets the value of DonationUrls.

func (*Project) SetDownloads

func (s *Project) SetDownloads(val int)

SetDownloads sets the value of Downloads.

func (*Project) SetFollowers

func (s *Project) SetFollowers(val int)

SetFollowers sets the value of Followers.

func (*Project) SetGallery

func (s *Project) SetGallery(val []NilGalleryImage)

SetGallery sets the value of Gallery.

func (*Project) SetGameVersions

func (s *Project) SetGameVersions(val []string)

SetGameVersions sets the value of GameVersions.

func (*Project) SetID

func (s *Project) SetID(val string)

SetID sets the value of ID.

func (*Project) SetIconURL

func (s *Project) SetIconURL(val OptNilString)

SetIconURL sets the value of IconURL.

func (*Project) SetIssuesURL

func (s *Project) SetIssuesURL(val OptNilString)

SetIssuesURL sets the value of IssuesURL.

func (*Project) SetLicense

func (s *Project) SetLicense(val OptProjectLicense)

SetLicense sets the value of License.

func (*Project) SetLoaders

func (s *Project) SetLoaders(val []string)

SetLoaders sets the value of Loaders.

func (*Project) SetModeratorMessage

func (s *Project) SetModeratorMessage(val OptNilModeratorMessage)

SetModeratorMessage sets the value of ModeratorMessage.

func (*Project) SetMonetizationStatus

func (s *Project) SetMonetizationStatus(val OptProjectMonetizationStatus)

SetMonetizationStatus sets the value of MonetizationStatus.

func (*Project) SetProjectType

func (s *Project) SetProjectType(val ProjectProjectType)

SetProjectType sets the value of ProjectType.

func (*Project) SetPublished

func (s *Project) SetPublished(val string)

SetPublished sets the value of Published.

func (*Project) SetQueued

func (s *Project) SetQueued(val OptNilString)

SetQueued sets the value of Queued.

func (*Project) SetRequestedStatus

func (s *Project) SetRequestedStatus(val OptNilProjectRequestedStatus)

SetRequestedStatus sets the value of RequestedStatus.

func (*Project) SetServerSide

func (s *Project) SetServerSide(val ProjectServerSide)

SetServerSide sets the value of ServerSide.

func (*Project) SetSlug

func (s *Project) SetSlug(val string)

SetSlug sets the value of Slug.

func (*Project) SetSourceURL

func (s *Project) SetSourceURL(val OptNilString)

SetSourceURL sets the value of SourceURL.

func (*Project) SetStatus

func (s *Project) SetStatus(val ProjectStatus)

SetStatus sets the value of Status.

func (*Project) SetTeam

func (s *Project) SetTeam(val string)

SetTeam sets the value of Team.

func (*Project) SetThreadID

func (s *Project) SetThreadID(val OptString)

SetThreadID sets the value of ThreadID.

func (*Project) SetTitle

func (s *Project) SetTitle(val string)

SetTitle sets the value of Title.

func (*Project) SetUpdated

func (s *Project) SetUpdated(val string)

SetUpdated sets the value of Updated.

func (*Project) SetVersions

func (s *Project) SetVersions(val []string)

SetVersions sets the value of Versions.

func (*Project) SetWikiURL

func (s *Project) SetWikiURL(val OptNilString)

SetWikiURL sets the value of WikiURL.

func (*Project) UnmarshalJSON

func (s *Project) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Project) Validate

func (s *Project) Validate() error

type ProjectClientSide

type ProjectClientSide string

Merged schema.

const (
	ProjectClientSideRequired    ProjectClientSide = "required"
	ProjectClientSideOptional    ProjectClientSide = "optional"
	ProjectClientSideUnsupported ProjectClientSide = "unsupported"
	ProjectClientSideUnknown     ProjectClientSide = "unknown"
)

func (ProjectClientSide) AllValues

func (ProjectClientSide) AllValues() []ProjectClientSide

AllValues returns all ProjectClientSide values.

func (*ProjectClientSide) Decode

func (s *ProjectClientSide) Decode(d *jx.Decoder) error

Decode decodes ProjectClientSide from json.

func (ProjectClientSide) Encode

func (s ProjectClientSide) Encode(e *jx.Encoder)

Encode encodes ProjectClientSide as json.

func (ProjectClientSide) MarshalJSON

func (s ProjectClientSide) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectClientSide) MarshalText

func (s ProjectClientSide) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectClientSide) UnmarshalJSON

func (s *ProjectClientSide) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectClientSide) UnmarshalText

func (s *ProjectClientSide) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectClientSide) Validate

func (s ProjectClientSide) Validate() error

type ProjectDependencyList

type ProjectDependencyList struct {
	// Projects that the project depends upon.
	Projects []Project `json:"projects"`
	// Versions that the project depends upon.
	Versions []Version `json:"versions"`
}

Ref: #/components/schemas/ProjectDependencyList

func (*ProjectDependencyList) Decode

func (s *ProjectDependencyList) Decode(d *jx.Decoder) error

Decode decodes ProjectDependencyList from json.

func (*ProjectDependencyList) Encode

func (s *ProjectDependencyList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProjectDependencyList) GetProjects

func (s *ProjectDependencyList) GetProjects() []Project

GetProjects returns the value of Projects.

func (*ProjectDependencyList) GetVersions

func (s *ProjectDependencyList) GetVersions() []Version

GetVersions returns the value of Versions.

func (*ProjectDependencyList) MarshalJSON

func (s *ProjectDependencyList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProjectDependencyList) SetProjects

func (s *ProjectDependencyList) SetProjects(val []Project)

SetProjects sets the value of Projects.

func (*ProjectDependencyList) SetVersions

func (s *ProjectDependencyList) SetVersions(val []Version)

SetVersions sets the value of Versions.

func (*ProjectDependencyList) UnmarshalJSON

func (s *ProjectDependencyList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectDependencyList) Validate

func (s *ProjectDependencyList) Validate() error

type ProjectDonationURL

type ProjectDonationURL struct {
	// The ID of the donation platform.
	ID OptString `json:"id"`
	// The donation platform this link is to.
	Platform OptString `json:"platform"`
	// The URL of the donation platform and user.
	URL OptString `json:"url"`
}

Ref: #/components/schemas/ProjectDonationURL

func (*ProjectDonationURL) Decode

func (s *ProjectDonationURL) Decode(d *jx.Decoder) error

Decode decodes ProjectDonationURL from json.

func (*ProjectDonationURL) Encode

func (s *ProjectDonationURL) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProjectDonationURL) GetID

func (s *ProjectDonationURL) GetID() OptString

GetID returns the value of ID.

func (*ProjectDonationURL) GetPlatform

func (s *ProjectDonationURL) GetPlatform() OptString

GetPlatform returns the value of Platform.

func (*ProjectDonationURL) GetURL

func (s *ProjectDonationURL) GetURL() OptString

GetURL returns the value of URL.

func (*ProjectDonationURL) MarshalJSON

func (s *ProjectDonationURL) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProjectDonationURL) SetID

func (s *ProjectDonationURL) SetID(val OptString)

SetID sets the value of ID.

func (*ProjectDonationURL) SetPlatform

func (s *ProjectDonationURL) SetPlatform(val OptString)

SetPlatform sets the value of Platform.

func (*ProjectDonationURL) SetURL

func (s *ProjectDonationURL) SetURL(val OptString)

SetURL sets the value of URL.

func (*ProjectDonationURL) UnmarshalJSON

func (s *ProjectDonationURL) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ProjectIdentifier

type ProjectIdentifier struct {
	ID OptString `json:"id"`
}

Ref: #/components/schemas/ProjectIdentifier

func (*ProjectIdentifier) Decode

func (s *ProjectIdentifier) Decode(d *jx.Decoder) error

Decode decodes ProjectIdentifier from json.

func (*ProjectIdentifier) Encode

func (s *ProjectIdentifier) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProjectIdentifier) GetID

func (s *ProjectIdentifier) GetID() OptString

GetID returns the value of ID.

func (*ProjectIdentifier) MarshalJSON

func (s *ProjectIdentifier) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProjectIdentifier) SetID

func (s *ProjectIdentifier) SetID(val OptString)

SetID sets the value of ID.

func (*ProjectIdentifier) UnmarshalJSON

func (s *ProjectIdentifier) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ProjectLicense

type ProjectLicense struct {
	// The SPDX license ID of a project.
	ID OptString `json:"id"`
	// The long name of a license.
	Name OptString `json:"name"`
	// The URL to this license.
	URL OptNilString `json:"url"`
}

The license of the project. Ref: #/components/schemas/ProjectLicense

func (*ProjectLicense) Decode

func (s *ProjectLicense) Decode(d *jx.Decoder) error

Decode decodes ProjectLicense from json.

func (*ProjectLicense) Encode

func (s *ProjectLicense) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProjectLicense) GetID

func (s *ProjectLicense) GetID() OptString

GetID returns the value of ID.

func (*ProjectLicense) GetName

func (s *ProjectLicense) GetName() OptString

GetName returns the value of Name.

func (*ProjectLicense) GetURL

func (s *ProjectLicense) GetURL() OptNilString

GetURL returns the value of URL.

func (*ProjectLicense) MarshalJSON

func (s *ProjectLicense) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProjectLicense) SetID

func (s *ProjectLicense) SetID(val OptString)

SetID sets the value of ID.

func (*ProjectLicense) SetName

func (s *ProjectLicense) SetName(val OptString)

SetName sets the value of Name.

func (*ProjectLicense) SetURL

func (s *ProjectLicense) SetURL(val OptNilString)

SetURL sets the value of URL.

func (*ProjectLicense) UnmarshalJSON

func (s *ProjectLicense) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ProjectMonetizationStatus

type ProjectMonetizationStatus string
const (
	ProjectMonetizationStatusMonetized        ProjectMonetizationStatus = "monetized"
	ProjectMonetizationStatusDemonetized      ProjectMonetizationStatus = "demonetized"
	ProjectMonetizationStatusForceDemonetized ProjectMonetizationStatus = "force-demonetized"
)

func (ProjectMonetizationStatus) AllValues

AllValues returns all ProjectMonetizationStatus values.

func (*ProjectMonetizationStatus) Decode

func (s *ProjectMonetizationStatus) Decode(d *jx.Decoder) error

Decode decodes ProjectMonetizationStatus from json.

func (ProjectMonetizationStatus) Encode

func (s ProjectMonetizationStatus) Encode(e *jx.Encoder)

Encode encodes ProjectMonetizationStatus as json.

func (ProjectMonetizationStatus) MarshalJSON

func (s ProjectMonetizationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectMonetizationStatus) MarshalText

func (s ProjectMonetizationStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectMonetizationStatus) UnmarshalJSON

func (s *ProjectMonetizationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectMonetizationStatus) UnmarshalText

func (s *ProjectMonetizationStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectMonetizationStatus) Validate

func (s ProjectMonetizationStatus) Validate() error

type ProjectProjectType

type ProjectProjectType string

The project type of the project.

const (
	ProjectProjectTypeMod          ProjectProjectType = "mod"
	ProjectProjectTypeModpack      ProjectProjectType = "modpack"
	ProjectProjectTypeResourcepack ProjectProjectType = "resourcepack"
	ProjectProjectTypeShader       ProjectProjectType = "shader"
)

func (ProjectProjectType) AllValues

func (ProjectProjectType) AllValues() []ProjectProjectType

AllValues returns all ProjectProjectType values.

func (*ProjectProjectType) Decode

func (s *ProjectProjectType) Decode(d *jx.Decoder) error

Decode decodes ProjectProjectType from json.

func (ProjectProjectType) Encode

func (s ProjectProjectType) Encode(e *jx.Encoder)

Encode encodes ProjectProjectType as json.

func (ProjectProjectType) MarshalJSON

func (s ProjectProjectType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectProjectType) MarshalText

func (s ProjectProjectType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectProjectType) UnmarshalJSON

func (s *ProjectProjectType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectProjectType) UnmarshalText

func (s *ProjectProjectType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectProjectType) Validate

func (s ProjectProjectType) Validate() error

type ProjectRequestedStatus

type ProjectRequestedStatus string

The requested status when submitting for review or scheduling the project for release.

const (
	ProjectRequestedStatusApproved ProjectRequestedStatus = "approved"
	ProjectRequestedStatusArchived ProjectRequestedStatus = "archived"
	ProjectRequestedStatusUnlisted ProjectRequestedStatus = "unlisted"
	ProjectRequestedStatusPrivate  ProjectRequestedStatus = "private"
	ProjectRequestedStatusDraft    ProjectRequestedStatus = "draft"
)

func (ProjectRequestedStatus) AllValues

AllValues returns all ProjectRequestedStatus values.

func (*ProjectRequestedStatus) Decode

func (s *ProjectRequestedStatus) Decode(d *jx.Decoder) error

Decode decodes ProjectRequestedStatus from json.

func (ProjectRequestedStatus) Encode

func (s ProjectRequestedStatus) Encode(e *jx.Encoder)

Encode encodes ProjectRequestedStatus as json.

func (ProjectRequestedStatus) MarshalJSON

func (s ProjectRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectRequestedStatus) MarshalText

func (s ProjectRequestedStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectRequestedStatus) UnmarshalJSON

func (s *ProjectRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectRequestedStatus) UnmarshalText

func (s *ProjectRequestedStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectRequestedStatus) Validate

func (s ProjectRequestedStatus) Validate() error

type ProjectResult

type ProjectResult struct {
	// The slug of a project, used for vanity URLs. Regex: “`^[\w!@$()`.+,"\-']{3,64}$“`.
	Slug string `json:"slug"`
	// The title or name of the project.
	Title string `json:"title"`
	// A short description of the project.
	Description string `json:"description"`
	// A list of the categories that the project has.
	Categories []string `json:"categories"`
	// The client side support of the project.
	ClientSide ProjectResultClientSide `json:"client_side"`
	// The server side support of the project.
	ServerSide ProjectResultServerSide `json:"server_side"`
	// The project type of the project.
	ProjectType ProjectResultProjectType `json:"project_type"`
	// The total number of downloads of the project.
	Downloads int `json:"downloads"`
	// The URL of the project's icon.
	IconURL OptNilString `json:"icon_url"`
	// The RGB color of the project, automatically generated from the project icon.
	Color OptNilInt `json:"color"`
	// The ID of the moderation thread associated with this project.
	ThreadID           OptString                          `json:"thread_id"`
	MonetizationStatus OptProjectResultMonetizationStatus `json:"monetization_status"`
	// The ID of the project.
	ProjectID string `json:"project_id"`
	// The username of the project's author.
	Author string `json:"author"`
	// A list of the categories that the project has which are not secondary.
	DisplayCategories []string `json:"display_categories"`
	// A list of the minecraft versions supported by the project.
	Versions []string `json:"versions"`
	// The total number of users following the project.
	Follows int `json:"follows"`
	// The date the project was added to search.
	DateCreated string `json:"date_created"`
	// The date the project was last modified.
	DateModified string `json:"date_modified"`
	// The latest version of minecraft that this project supports.
	LatestVersion OptString `json:"latest_version"`
	// The SPDX license ID of a project.
	License string `json:"license"`
	// All gallery images attached to the project.
	Gallery []string `json:"gallery"`
	// The featured gallery image of the project.
	FeaturedGallery OptNilString `json:"featured_gallery"`
}

Merged schema. Ref: #/components/schemas/ProjectResult

func (*ProjectResult) Decode

func (s *ProjectResult) Decode(d *jx.Decoder) error

Decode decodes ProjectResult from json.

func (*ProjectResult) Encode

func (s *ProjectResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ProjectResult) GetAuthor

func (s *ProjectResult) GetAuthor() string

GetAuthor returns the value of Author.

func (*ProjectResult) GetCategories

func (s *ProjectResult) GetCategories() []string

GetCategories returns the value of Categories.

func (*ProjectResult) GetClientSide

func (s *ProjectResult) GetClientSide() ProjectResultClientSide

GetClientSide returns the value of ClientSide.

func (*ProjectResult) GetColor

func (s *ProjectResult) GetColor() OptNilInt

GetColor returns the value of Color.

func (*ProjectResult) GetDateCreated

func (s *ProjectResult) GetDateCreated() string

GetDateCreated returns the value of DateCreated.

func (*ProjectResult) GetDateModified

func (s *ProjectResult) GetDateModified() string

GetDateModified returns the value of DateModified.

func (*ProjectResult) GetDescription

func (s *ProjectResult) GetDescription() string

GetDescription returns the value of Description.

func (*ProjectResult) GetDisplayCategories

func (s *ProjectResult) GetDisplayCategories() []string

GetDisplayCategories returns the value of DisplayCategories.

func (*ProjectResult) GetDownloads

func (s *ProjectResult) GetDownloads() int

GetDownloads returns the value of Downloads.

func (*ProjectResult) GetFeaturedGallery

func (s *ProjectResult) GetFeaturedGallery() OptNilString

GetFeaturedGallery returns the value of FeaturedGallery.

func (*ProjectResult) GetFollows

func (s *ProjectResult) GetFollows() int

GetFollows returns the value of Follows.

func (*ProjectResult) GetGallery

func (s *ProjectResult) GetGallery() []string

GetGallery returns the value of Gallery.

func (*ProjectResult) GetIconURL

func (s *ProjectResult) GetIconURL() OptNilString

GetIconURL returns the value of IconURL.

func (*ProjectResult) GetLatestVersion

func (s *ProjectResult) GetLatestVersion() OptString

GetLatestVersion returns the value of LatestVersion.

func (*ProjectResult) GetLicense

func (s *ProjectResult) GetLicense() string

GetLicense returns the value of License.

func (*ProjectResult) GetMonetizationStatus

func (s *ProjectResult) GetMonetizationStatus() OptProjectResultMonetizationStatus

GetMonetizationStatus returns the value of MonetizationStatus.

func (*ProjectResult) GetProjectID

func (s *ProjectResult) GetProjectID() string

GetProjectID returns the value of ProjectID.

func (*ProjectResult) GetProjectType

func (s *ProjectResult) GetProjectType() ProjectResultProjectType

GetProjectType returns the value of ProjectType.

func (*ProjectResult) GetServerSide

func (s *ProjectResult) GetServerSide() ProjectResultServerSide

GetServerSide returns the value of ServerSide.

func (*ProjectResult) GetSlug

func (s *ProjectResult) GetSlug() string

GetSlug returns the value of Slug.

func (*ProjectResult) GetThreadID

func (s *ProjectResult) GetThreadID() OptString

GetThreadID returns the value of ThreadID.

func (*ProjectResult) GetTitle

func (s *ProjectResult) GetTitle() string

GetTitle returns the value of Title.

func (*ProjectResult) GetVersions

func (s *ProjectResult) GetVersions() []string

GetVersions returns the value of Versions.

func (*ProjectResult) MarshalJSON

func (s *ProjectResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ProjectResult) SetAuthor

func (s *ProjectResult) SetAuthor(val string)

SetAuthor sets the value of Author.

func (*ProjectResult) SetCategories

func (s *ProjectResult) SetCategories(val []string)

SetCategories sets the value of Categories.

func (*ProjectResult) SetClientSide

func (s *ProjectResult) SetClientSide(val ProjectResultClientSide)

SetClientSide sets the value of ClientSide.

func (*ProjectResult) SetColor

func (s *ProjectResult) SetColor(val OptNilInt)

SetColor sets the value of Color.

func (*ProjectResult) SetDateCreated

func (s *ProjectResult) SetDateCreated(val string)

SetDateCreated sets the value of DateCreated.

func (*ProjectResult) SetDateModified

func (s *ProjectResult) SetDateModified(val string)

SetDateModified sets the value of DateModified.

func (*ProjectResult) SetDescription

func (s *ProjectResult) SetDescription(val string)

SetDescription sets the value of Description.

func (*ProjectResult) SetDisplayCategories

func (s *ProjectResult) SetDisplayCategories(val []string)

SetDisplayCategories sets the value of DisplayCategories.

func (*ProjectResult) SetDownloads

func (s *ProjectResult) SetDownloads(val int)

SetDownloads sets the value of Downloads.

func (*ProjectResult) SetFeaturedGallery

func (s *ProjectResult) SetFeaturedGallery(val OptNilString)

SetFeaturedGallery sets the value of FeaturedGallery.

func (*ProjectResult) SetFollows

func (s *ProjectResult) SetFollows(val int)

SetFollows sets the value of Follows.

func (*ProjectResult) SetGallery

func (s *ProjectResult) SetGallery(val []string)

SetGallery sets the value of Gallery.

func (*ProjectResult) SetIconURL

func (s *ProjectResult) SetIconURL(val OptNilString)

SetIconURL sets the value of IconURL.

func (*ProjectResult) SetLatestVersion

func (s *ProjectResult) SetLatestVersion(val OptString)

SetLatestVersion sets the value of LatestVersion.

func (*ProjectResult) SetLicense

func (s *ProjectResult) SetLicense(val string)

SetLicense sets the value of License.

func (*ProjectResult) SetMonetizationStatus

func (s *ProjectResult) SetMonetizationStatus(val OptProjectResultMonetizationStatus)

SetMonetizationStatus sets the value of MonetizationStatus.

func (*ProjectResult) SetProjectID

func (s *ProjectResult) SetProjectID(val string)

SetProjectID sets the value of ProjectID.

func (*ProjectResult) SetProjectType

func (s *ProjectResult) SetProjectType(val ProjectResultProjectType)

SetProjectType sets the value of ProjectType.

func (*ProjectResult) SetServerSide

func (s *ProjectResult) SetServerSide(val ProjectResultServerSide)

SetServerSide sets the value of ServerSide.

func (*ProjectResult) SetSlug

func (s *ProjectResult) SetSlug(val string)

SetSlug sets the value of Slug.

func (*ProjectResult) SetThreadID

func (s *ProjectResult) SetThreadID(val OptString)

SetThreadID sets the value of ThreadID.

func (*ProjectResult) SetTitle

func (s *ProjectResult) SetTitle(val string)

SetTitle sets the value of Title.

func (*ProjectResult) SetVersions

func (s *ProjectResult) SetVersions(val []string)

SetVersions sets the value of Versions.

func (*ProjectResult) UnmarshalJSON

func (s *ProjectResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectResult) Validate

func (s *ProjectResult) Validate() error

type ProjectResultClientSide

type ProjectResultClientSide string

The client side support of the project.

const (
	ProjectResultClientSideRequired    ProjectResultClientSide = "required"
	ProjectResultClientSideOptional    ProjectResultClientSide = "optional"
	ProjectResultClientSideUnsupported ProjectResultClientSide = "unsupported"
	ProjectResultClientSideUnknown     ProjectResultClientSide = "unknown"
)

func (ProjectResultClientSide) AllValues

AllValues returns all ProjectResultClientSide values.

func (*ProjectResultClientSide) Decode

func (s *ProjectResultClientSide) Decode(d *jx.Decoder) error

Decode decodes ProjectResultClientSide from json.

func (ProjectResultClientSide) Encode

func (s ProjectResultClientSide) Encode(e *jx.Encoder)

Encode encodes ProjectResultClientSide as json.

func (ProjectResultClientSide) MarshalJSON

func (s ProjectResultClientSide) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectResultClientSide) MarshalText

func (s ProjectResultClientSide) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectResultClientSide) UnmarshalJSON

func (s *ProjectResultClientSide) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectResultClientSide) UnmarshalText

func (s *ProjectResultClientSide) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectResultClientSide) Validate

func (s ProjectResultClientSide) Validate() error

type ProjectResultMonetizationStatus

type ProjectResultMonetizationStatus string
const (
	ProjectResultMonetizationStatusMonetized        ProjectResultMonetizationStatus = "monetized"
	ProjectResultMonetizationStatusDemonetized      ProjectResultMonetizationStatus = "demonetized"
	ProjectResultMonetizationStatusForceDemonetized ProjectResultMonetizationStatus = "force-demonetized"
)

func (ProjectResultMonetizationStatus) AllValues

AllValues returns all ProjectResultMonetizationStatus values.

func (*ProjectResultMonetizationStatus) Decode

Decode decodes ProjectResultMonetizationStatus from json.

func (ProjectResultMonetizationStatus) Encode

Encode encodes ProjectResultMonetizationStatus as json.

func (ProjectResultMonetizationStatus) MarshalJSON

func (s ProjectResultMonetizationStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectResultMonetizationStatus) MarshalText

func (s ProjectResultMonetizationStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectResultMonetizationStatus) UnmarshalJSON

func (s *ProjectResultMonetizationStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectResultMonetizationStatus) UnmarshalText

func (s *ProjectResultMonetizationStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectResultMonetizationStatus) Validate

type ProjectResultProjectType

type ProjectResultProjectType string

The project type of the project.

const (
	ProjectResultProjectTypeMod          ProjectResultProjectType = "mod"
	ProjectResultProjectTypeModpack      ProjectResultProjectType = "modpack"
	ProjectResultProjectTypeResourcepack ProjectResultProjectType = "resourcepack"
	ProjectResultProjectTypeShader       ProjectResultProjectType = "shader"
)

func (ProjectResultProjectType) AllValues

AllValues returns all ProjectResultProjectType values.

func (*ProjectResultProjectType) Decode

func (s *ProjectResultProjectType) Decode(d *jx.Decoder) error

Decode decodes ProjectResultProjectType from json.

func (ProjectResultProjectType) Encode

func (s ProjectResultProjectType) Encode(e *jx.Encoder)

Encode encodes ProjectResultProjectType as json.

func (ProjectResultProjectType) MarshalJSON

func (s ProjectResultProjectType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectResultProjectType) MarshalText

func (s ProjectResultProjectType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectResultProjectType) UnmarshalJSON

func (s *ProjectResultProjectType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectResultProjectType) UnmarshalText

func (s *ProjectResultProjectType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectResultProjectType) Validate

func (s ProjectResultProjectType) Validate() error

type ProjectResultServerSide

type ProjectResultServerSide string

The server side support of the project.

const (
	ProjectResultServerSideRequired    ProjectResultServerSide = "required"
	ProjectResultServerSideOptional    ProjectResultServerSide = "optional"
	ProjectResultServerSideUnsupported ProjectResultServerSide = "unsupported"
	ProjectResultServerSideUnknown     ProjectResultServerSide = "unknown"
)

func (ProjectResultServerSide) AllValues

AllValues returns all ProjectResultServerSide values.

func (*ProjectResultServerSide) Decode

func (s *ProjectResultServerSide) Decode(d *jx.Decoder) error

Decode decodes ProjectResultServerSide from json.

func (ProjectResultServerSide) Encode

func (s ProjectResultServerSide) Encode(e *jx.Encoder)

Encode encodes ProjectResultServerSide as json.

func (ProjectResultServerSide) MarshalJSON

func (s ProjectResultServerSide) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectResultServerSide) MarshalText

func (s ProjectResultServerSide) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectResultServerSide) UnmarshalJSON

func (s *ProjectResultServerSide) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectResultServerSide) UnmarshalText

func (s *ProjectResultServerSide) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectResultServerSide) Validate

func (s ProjectResultServerSide) Validate() error

type ProjectServerSide

type ProjectServerSide string

Merged schema.

const (
	ProjectServerSideRequired    ProjectServerSide = "required"
	ProjectServerSideOptional    ProjectServerSide = "optional"
	ProjectServerSideUnsupported ProjectServerSide = "unsupported"
	ProjectServerSideUnknown     ProjectServerSide = "unknown"
)

func (ProjectServerSide) AllValues

func (ProjectServerSide) AllValues() []ProjectServerSide

AllValues returns all ProjectServerSide values.

func (*ProjectServerSide) Decode

func (s *ProjectServerSide) Decode(d *jx.Decoder) error

Decode decodes ProjectServerSide from json.

func (ProjectServerSide) Encode

func (s ProjectServerSide) Encode(e *jx.Encoder)

Encode encodes ProjectServerSide as json.

func (ProjectServerSide) MarshalJSON

func (s ProjectServerSide) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectServerSide) MarshalText

func (s ProjectServerSide) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectServerSide) UnmarshalJSON

func (s *ProjectServerSide) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectServerSide) UnmarshalText

func (s *ProjectServerSide) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectServerSide) Validate

func (s ProjectServerSide) Validate() error

type ProjectStatus

type ProjectStatus string

The status of the project.

const (
	ProjectStatusApproved   ProjectStatus = "approved"
	ProjectStatusArchived   ProjectStatus = "archived"
	ProjectStatusRejected   ProjectStatus = "rejected"
	ProjectStatusDraft      ProjectStatus = "draft"
	ProjectStatusUnlisted   ProjectStatus = "unlisted"
	ProjectStatusProcessing ProjectStatus = "processing"
	ProjectStatusWithheld   ProjectStatus = "withheld"
	ProjectStatusScheduled  ProjectStatus = "scheduled"
	ProjectStatusPrivate    ProjectStatus = "private"
	ProjectStatusUnknown    ProjectStatus = "unknown"
)

func (ProjectStatus) AllValues

func (ProjectStatus) AllValues() []ProjectStatus

AllValues returns all ProjectStatus values.

func (*ProjectStatus) Decode

func (s *ProjectStatus) Decode(d *jx.Decoder) error

Decode decodes ProjectStatus from json.

func (ProjectStatus) Encode

func (s ProjectStatus) Encode(e *jx.Encoder)

Encode encodes ProjectStatus as json.

func (ProjectStatus) MarshalJSON

func (s ProjectStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ProjectStatus) MarshalText

func (s ProjectStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ProjectStatus) UnmarshalJSON

func (s *ProjectStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ProjectStatus) UnmarshalText

func (s *ProjectStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ProjectStatus) Validate

func (s ProjectStatus) Validate() error

type RandomProjectsOKApplicationJSON

type RandomProjectsOKApplicationJSON []Project

func (*RandomProjectsOKApplicationJSON) Decode

Decode decodes RandomProjectsOKApplicationJSON from json.

func (RandomProjectsOKApplicationJSON) Encode

Encode encodes RandomProjectsOKApplicationJSON as json.

func (RandomProjectsOKApplicationJSON) MarshalJSON

func (s RandomProjectsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RandomProjectsOKApplicationJSON) UnmarshalJSON

func (s *RandomProjectsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (RandomProjectsOKApplicationJSON) Validate

type RandomProjectsParams

type RandomProjectsParams struct {
	// The number of random projects to return.
	Count int
}

RandomProjectsParams is parameters of randomProjects operation.

type RandomProjectsRes

type RandomProjectsRes interface {
	// contains filtered or unexported methods
}

type ReadNotificationNoContent

type ReadNotificationNoContent struct{}

ReadNotificationNoContent is response for ReadNotification operation.

type ReadNotificationNotFound

type ReadNotificationNotFound struct{}

ReadNotificationNotFound is response for ReadNotification operation.

type ReadNotificationParams

type ReadNotificationParams struct {
	// The ID of the notification.
	ID string
}

ReadNotificationParams is parameters of readNotification operation.

type ReadNotificationRes

type ReadNotificationRes interface {
	// contains filtered or unexported methods
}

type ReadNotificationsNoContent

type ReadNotificationsNoContent struct{}

ReadNotificationsNoContent is response for ReadNotifications operation.

type ReadNotificationsNotFound

type ReadNotificationsNotFound struct{}

ReadNotificationsNotFound is response for ReadNotifications operation.

type ReadNotificationsParams

type ReadNotificationsParams struct {
	// The IDs of the notifications.
	Ids string
}

ReadNotificationsParams is parameters of readNotifications operation.

type ReadNotificationsRes

type ReadNotificationsRes interface {
	// contains filtered or unexported methods
}

type Report

type Report struct {
	// The type of the report being sent.
	ReportType string `json:"report_type"`
	// The ID of the item (project, version, or user) being reported.
	ItemID string `json:"item_id"`
	// The type of the item being reported.
	ItemType ReportItemType `json:"item_type"`
	// The extended explanation of the report.
	Body string `json:"body"`
	// The ID of the report.
	ID OptString `json:"id"`
	// The ID of the user who reported the item.
	Reporter string `json:"reporter"`
	// The time at which the report was created.
	Created string `json:"created"`
	// Whether the report is resolved.
	Closed bool `json:"closed"`
	// The ID of the moderation thread associated with this report.
	ThreadID string `json:"thread_id"`
}

Merged schema. Ref: #/components/schemas/Report

func (*Report) Decode

func (s *Report) Decode(d *jx.Decoder) error

Decode decodes Report from json.

func (*Report) Encode

func (s *Report) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Report) GetBody

func (s *Report) GetBody() string

GetBody returns the value of Body.

func (*Report) GetClosed

func (s *Report) GetClosed() bool

GetClosed returns the value of Closed.

func (*Report) GetCreated

func (s *Report) GetCreated() string

GetCreated returns the value of Created.

func (*Report) GetID

func (s *Report) GetID() OptString

GetID returns the value of ID.

func (*Report) GetItemID

func (s *Report) GetItemID() string

GetItemID returns the value of ItemID.

func (*Report) GetItemType

func (s *Report) GetItemType() ReportItemType

GetItemType returns the value of ItemType.

func (*Report) GetReportType

func (s *Report) GetReportType() string

GetReportType returns the value of ReportType.

func (*Report) GetReporter

func (s *Report) GetReporter() string

GetReporter returns the value of Reporter.

func (*Report) GetThreadID

func (s *Report) GetThreadID() string

GetThreadID returns the value of ThreadID.

func (*Report) MarshalJSON

func (s *Report) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Report) SetBody

func (s *Report) SetBody(val string)

SetBody sets the value of Body.

func (*Report) SetClosed

func (s *Report) SetClosed(val bool)

SetClosed sets the value of Closed.

func (*Report) SetCreated

func (s *Report) SetCreated(val string)

SetCreated sets the value of Created.

func (*Report) SetID

func (s *Report) SetID(val OptString)

SetID sets the value of ID.

func (*Report) SetItemID

func (s *Report) SetItemID(val string)

SetItemID sets the value of ItemID.

func (*Report) SetItemType

func (s *Report) SetItemType(val ReportItemType)

SetItemType sets the value of ItemType.

func (*Report) SetReportType

func (s *Report) SetReportType(val string)

SetReportType sets the value of ReportType.

func (*Report) SetReporter

func (s *Report) SetReporter(val string)

SetReporter sets the value of Reporter.

func (*Report) SetThreadID

func (s *Report) SetThreadID(val string)

SetThreadID sets the value of ThreadID.

func (*Report) UnmarshalJSON

func (s *Report) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Report) Validate

func (s *Report) Validate() error

type ReportItemType

type ReportItemType string

The type of the item being reported.

const (
	ReportItemTypeProject ReportItemType = "project"
	ReportItemTypeUser    ReportItemType = "user"
	ReportItemTypeVersion ReportItemType = "version"
)

func (ReportItemType) AllValues

func (ReportItemType) AllValues() []ReportItemType

AllValues returns all ReportItemType values.

func (*ReportItemType) Decode

func (s *ReportItemType) Decode(d *jx.Decoder) error

Decode decodes ReportItemType from json.

func (ReportItemType) Encode

func (s ReportItemType) Encode(e *jx.Encoder)

Encode encodes ReportItemType as json.

func (ReportItemType) MarshalJSON

func (s ReportItemType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ReportItemType) MarshalText

func (s ReportItemType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ReportItemType) UnmarshalJSON

func (s *ReportItemType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ReportItemType) UnmarshalText

func (s *ReportItemType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ReportItemType) Validate

func (s ReportItemType) Validate() error

type Schedule

type Schedule struct {
	Time string `json:"time"`
	// The requested status when scheduling the project for release.
	RequestedStatus ScheduleRequestedStatus `json:"requested_status"`
}

Ref: #/components/schemas/Schedule

func (*Schedule) Decode

func (s *Schedule) Decode(d *jx.Decoder) error

Decode decodes Schedule from json.

func (*Schedule) Encode

func (s *Schedule) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Schedule) GetRequestedStatus

func (s *Schedule) GetRequestedStatus() ScheduleRequestedStatus

GetRequestedStatus returns the value of RequestedStatus.

func (*Schedule) GetTime

func (s *Schedule) GetTime() string

GetTime returns the value of Time.

func (*Schedule) MarshalJSON

func (s *Schedule) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Schedule) SetRequestedStatus

func (s *Schedule) SetRequestedStatus(val ScheduleRequestedStatus)

SetRequestedStatus sets the value of RequestedStatus.

func (*Schedule) SetTime

func (s *Schedule) SetTime(val string)

SetTime sets the value of Time.

func (*Schedule) UnmarshalJSON

func (s *Schedule) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Schedule) Validate

func (s *Schedule) Validate() error

type ScheduleProjectNoContent

type ScheduleProjectNoContent struct{}

ScheduleProjectNoContent is response for ScheduleProject operation.

type ScheduleProjectParams

type ScheduleProjectParams struct {
	// The ID or slug of the project.
	IDSlug string
}

ScheduleProjectParams is parameters of scheduleProject operation.

type ScheduleProjectRes

type ScheduleProjectRes interface {
	// contains filtered or unexported methods
}

type ScheduleRequestedStatus

type ScheduleRequestedStatus string

The requested status when scheduling the project for release.

const (
	ScheduleRequestedStatusApproved ScheduleRequestedStatus = "approved"
	ScheduleRequestedStatusArchived ScheduleRequestedStatus = "archived"
	ScheduleRequestedStatusUnlisted ScheduleRequestedStatus = "unlisted"
	ScheduleRequestedStatusPrivate  ScheduleRequestedStatus = "private"
	ScheduleRequestedStatusDraft    ScheduleRequestedStatus = "draft"
)

func (ScheduleRequestedStatus) AllValues

AllValues returns all ScheduleRequestedStatus values.

func (*ScheduleRequestedStatus) Decode

func (s *ScheduleRequestedStatus) Decode(d *jx.Decoder) error

Decode decodes ScheduleRequestedStatus from json.

func (ScheduleRequestedStatus) Encode

func (s ScheduleRequestedStatus) Encode(e *jx.Encoder)

Encode encodes ScheduleRequestedStatus as json.

func (ScheduleRequestedStatus) MarshalJSON

func (s ScheduleRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ScheduleRequestedStatus) MarshalText

func (s ScheduleRequestedStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ScheduleRequestedStatus) UnmarshalJSON

func (s *ScheduleRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ScheduleRequestedStatus) UnmarshalText

func (s *ScheduleRequestedStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ScheduleRequestedStatus) Validate

func (s ScheduleRequestedStatus) Validate() error

type ScheduleVersionNoContent

type ScheduleVersionNoContent struct{}

ScheduleVersionNoContent is response for ScheduleVersion operation.

type ScheduleVersionParams

type ScheduleVersionParams struct {
	// The ID of the version.
	ID string
}

ScheduleVersionParams is parameters of scheduleVersion operation.

type ScheduleVersionRes

type ScheduleVersionRes interface {
	// contains filtered or unexported methods
}

type SearchProjectsIndex

type SearchProjectsIndex string
const (
	SearchProjectsIndexRelevance SearchProjectsIndex = "relevance"
	SearchProjectsIndexDownloads SearchProjectsIndex = "downloads"
	SearchProjectsIndexFollows   SearchProjectsIndex = "follows"
	SearchProjectsIndexNewest    SearchProjectsIndex = "newest"
	SearchProjectsIndexUpdated   SearchProjectsIndex = "updated"
)

func (SearchProjectsIndex) AllValues

AllValues returns all SearchProjectsIndex values.

func (SearchProjectsIndex) MarshalText

func (s SearchProjectsIndex) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*SearchProjectsIndex) UnmarshalText

func (s *SearchProjectsIndex) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (SearchProjectsIndex) Validate

func (s SearchProjectsIndex) Validate() error

type SearchProjectsParams

type SearchProjectsParams struct {
	// The query to search for.
	Query OptString
	// Facets are an essential concept for understanding how to filter out results.
	// These are the most commonly used facet types:
	// - `project_type`
	// - `categories` (loaders are lumped in with categories in search)
	// - `versions`
	// - `client_side`
	// - `server_side`
	// - `open_source`
	// Several others are also available for use, though these should not be used outside very specific
	// use cases.
	// - `title`
	// - `author`
	// - `follows`
	// - `project_id`
	// - `license`
	// - `downloads`
	// - `color`
	// - `created_timestamp`
	// - `modified_timestamp`
	// In order to then use these facets, you need a value to filter by, as well as an operation to
	// perform on this value.
	// The most common operation is `:` (same as `=`), though you can also use `!=`, `>=`, `>`, `<=`, and
	// `<`.
	// Join together the type, operation, and value, and you've got your string.
	// “`
	// {type} {operation} {value}
	// “`
	// Examples:
	// “`
	// categories = adventure
	// versions != 1.20.1
	// downloads <= 100
	// “`
	// You then join these strings together in arrays to signal `AND` and `OR` operators.
	// ##### OR
	// All elements in a single array are considered to be joined by OR statements.
	// For example, the search `[["versions:1.16.5", "versions:1.17.1"]]` translates to `Projects that
	// support 1.16.5 OR 1.17.1`.
	// ##### AND
	// Separate arrays are considered to be joined by AND statements.
	// For example, the search `[["versions:1.16.5"], ["project_type:modpack"]]` translates to `Projects
	// that support 1.16.5 AND are modpacks`.
	Facets OptString
	// The sorting method used for sorting search results.
	Index OptSearchProjectsIndex
	// The offset into the search. Skips this number of results.
	Offset OptInt
	// The number of results returned by the search.
	Limit OptInt
}

SearchProjectsParams is parameters of searchProjects operation.

type SearchProjectsRes

type SearchProjectsRes interface {
	// contains filtered or unexported methods
}

type SearchResults

type SearchResults struct {
	// The list of results.
	Hits []ProjectResult `json:"hits"`
	// The number of results that were skipped by the query.
	Offset int `json:"offset"`
	// The number of results that were returned by the query.
	Limit int `json:"limit"`
	// The total number of results that match the query.
	TotalHits int `json:"total_hits"`
}

Ref: #/components/schemas/SearchResults

func (*SearchResults) Decode

func (s *SearchResults) Decode(d *jx.Decoder) error

Decode decodes SearchResults from json.

func (*SearchResults) Encode

func (s *SearchResults) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SearchResults) GetHits

func (s *SearchResults) GetHits() []ProjectResult

GetHits returns the value of Hits.

func (*SearchResults) GetLimit

func (s *SearchResults) GetLimit() int

GetLimit returns the value of Limit.

func (*SearchResults) GetOffset

func (s *SearchResults) GetOffset() int

GetOffset returns the value of Offset.

func (*SearchResults) GetTotalHits

func (s *SearchResults) GetTotalHits() int

GetTotalHits returns the value of TotalHits.

func (*SearchResults) MarshalJSON

func (s *SearchResults) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchResults) SetHits

func (s *SearchResults) SetHits(val []ProjectResult)

SetHits sets the value of Hits.

func (*SearchResults) SetLimit

func (s *SearchResults) SetLimit(val int)

SetLimit sets the value of Limit.

func (*SearchResults) SetOffset

func (s *SearchResults) SetOffset(val int)

SetOffset sets the value of Offset.

func (*SearchResults) SetTotalHits

func (s *SearchResults) SetTotalHits(val int)

SetTotalHits sets the value of TotalHits.

func (*SearchResults) UnmarshalJSON

func (s *SearchResults) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SearchResults) Validate

func (s *SearchResults) Validate() error

type SecuritySource

type SecuritySource interface {
	// TokenAuth provides TokenAuth security value.
	TokenAuth(ctx context.Context, operationName OperationName) (TokenAuth, error)
}

SecuritySource is provider of security values (tokens, passwords, etc.).

type SendThreadMessageNotFound

type SendThreadMessageNotFound struct{}

SendThreadMessageNotFound is response for SendThreadMessage operation.

type SendThreadMessageParams

type SendThreadMessageParams struct {
	// The ID of the thread.
	ID string
}

SendThreadMessageParams is parameters of sendThreadMessage operation.

type SendThreadMessageRes

type SendThreadMessageRes interface {
	// contains filtered or unexported methods
}

type Statistics

type Statistics struct {
	// Number of projects on Modrinth.
	Projects OptInt `json:"projects"`
	// Number of versions on Modrinth.
	Versions OptInt `json:"versions"`
	// Number of version files on Modrinth.
	Files OptInt `json:"files"`
	// Number of authors (users with projects) on Modrinth.
	Authors OptInt `json:"authors"`
}

Ref: #/components/schemas/Statistics

func (*Statistics) Decode

func (s *Statistics) Decode(d *jx.Decoder) error

Decode decodes Statistics from json.

func (*Statistics) Encode

func (s *Statistics) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Statistics) GetAuthors

func (s *Statistics) GetAuthors() OptInt

GetAuthors returns the value of Authors.

func (*Statistics) GetFiles

func (s *Statistics) GetFiles() OptInt

GetFiles returns the value of Files.

func (*Statistics) GetProjects

func (s *Statistics) GetProjects() OptInt

GetProjects returns the value of Projects.

func (*Statistics) GetVersions

func (s *Statistics) GetVersions() OptInt

GetVersions returns the value of Versions.

func (*Statistics) MarshalJSON

func (s *Statistics) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Statistics) SetAuthors

func (s *Statistics) SetAuthors(val OptInt)

SetAuthors sets the value of Authors.

func (*Statistics) SetFiles

func (s *Statistics) SetFiles(val OptInt)

SetFiles sets the value of Files.

func (*Statistics) SetProjects

func (s *Statistics) SetProjects(val OptInt)

SetProjects sets the value of Projects.

func (*Statistics) SetVersions

func (s *Statistics) SetVersions(val OptInt)

SetVersions sets the value of Versions.

func (*Statistics) UnmarshalJSON

func (s *Statistics) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SubmitReportRes

type SubmitReportRes interface {
	// contains filtered or unexported methods
}

type TeamMember

type TeamMember struct {
	// The ID of the team this team member is a member of.
	TeamID string `json:"team_id"`
	User   User   `json:"user"`
	// The user's role on the team.
	Role string `json:"role"`
	// The user's permissions in bitfield format (requires authorization to view)
	// In order from first to tenth bit, the bits are:
	// - UPLOAD_VERSION
	// - DELETE_VERSION
	// - EDIT_DETAILS
	// - EDIT_BODY
	// - MANAGE_INVITES
	// - REMOVE_MEMBER
	// - EDIT_MEMBER
	// - DELETE_PROJECT
	// - VIEW_ANALYTICS
	// - VIEW_PAYOUTS.
	Permissions OptInt `json:"permissions"`
	// Whether or not the user has accepted to be on the team (requires authorization to view).
	Accepted bool `json:"accepted"`
	// The split of payouts going to this user. The proportion of payouts they get is their split divided
	// by the sum of the splits of all members.
	PayoutsSplit OptInt `json:"payouts_split"`
	// The order of the team member.
	Ordering OptInt `json:"ordering"`
}

Ref: #/components/schemas/TeamMember

func (*TeamMember) Decode

func (s *TeamMember) Decode(d *jx.Decoder) error

Decode decodes TeamMember from json.

func (*TeamMember) Encode

func (s *TeamMember) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TeamMember) GetAccepted

func (s *TeamMember) GetAccepted() bool

GetAccepted returns the value of Accepted.

func (*TeamMember) GetOrdering

func (s *TeamMember) GetOrdering() OptInt

GetOrdering returns the value of Ordering.

func (*TeamMember) GetPayoutsSplit

func (s *TeamMember) GetPayoutsSplit() OptInt

GetPayoutsSplit returns the value of PayoutsSplit.

func (*TeamMember) GetPermissions

func (s *TeamMember) GetPermissions() OptInt

GetPermissions returns the value of Permissions.

func (*TeamMember) GetRole

func (s *TeamMember) GetRole() string

GetRole returns the value of Role.

func (*TeamMember) GetTeamID

func (s *TeamMember) GetTeamID() string

GetTeamID returns the value of TeamID.

func (*TeamMember) GetUser

func (s *TeamMember) GetUser() User

GetUser returns the value of User.

func (*TeamMember) MarshalJSON

func (s *TeamMember) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TeamMember) SetAccepted

func (s *TeamMember) SetAccepted(val bool)

SetAccepted sets the value of Accepted.

func (*TeamMember) SetOrdering

func (s *TeamMember) SetOrdering(val OptInt)

SetOrdering sets the value of Ordering.

func (*TeamMember) SetPayoutsSplit

func (s *TeamMember) SetPayoutsSplit(val OptInt)

SetPayoutsSplit sets the value of PayoutsSplit.

func (*TeamMember) SetPermissions

func (s *TeamMember) SetPermissions(val OptInt)

SetPermissions sets the value of Permissions.

func (*TeamMember) SetRole

func (s *TeamMember) SetRole(val string)

SetRole sets the value of Role.

func (*TeamMember) SetTeamID

func (s *TeamMember) SetTeamID(val string)

SetTeamID sets the value of TeamID.

func (*TeamMember) SetUser

func (s *TeamMember) SetUser(val User)

SetUser sets the value of User.

func (*TeamMember) UnmarshalJSON

func (s *TeamMember) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TeamMember) Validate

func (s *TeamMember) Validate() error

type Thread

type Thread struct {
	// The ID of the thread.
	ID   string     `json:"id"`
	Type ThreadType `json:"type"`
	// The ID of the associated project if a project thread.
	ProjectID OptNilString `json:"project_id"`
	// The ID of the associated report if a report thread.
	ReportID OptNilString    `json:"report_id"`
	Messages []ThreadMessage `json:"messages"`
	Members  []User          `json:"members"`
}

Ref: #/components/schemas/Thread

func (*Thread) Decode

func (s *Thread) Decode(d *jx.Decoder) error

Decode decodes Thread from json.

func (*Thread) Encode

func (s *Thread) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Thread) GetID

func (s *Thread) GetID() string

GetID returns the value of ID.

func (*Thread) GetMembers

func (s *Thread) GetMembers() []User

GetMembers returns the value of Members.

func (*Thread) GetMessages

func (s *Thread) GetMessages() []ThreadMessage

GetMessages returns the value of Messages.

func (*Thread) GetProjectID

func (s *Thread) GetProjectID() OptNilString

GetProjectID returns the value of ProjectID.

func (*Thread) GetReportID

func (s *Thread) GetReportID() OptNilString

GetReportID returns the value of ReportID.

func (*Thread) GetType

func (s *Thread) GetType() ThreadType

GetType returns the value of Type.

func (*Thread) MarshalJSON

func (s *Thread) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Thread) SetID

func (s *Thread) SetID(val string)

SetID sets the value of ID.

func (*Thread) SetMembers

func (s *Thread) SetMembers(val []User)

SetMembers sets the value of Members.

func (*Thread) SetMessages

func (s *Thread) SetMessages(val []ThreadMessage)

SetMessages sets the value of Messages.

func (*Thread) SetProjectID

func (s *Thread) SetProjectID(val OptNilString)

SetProjectID sets the value of ProjectID.

func (*Thread) SetReportID

func (s *Thread) SetReportID(val OptNilString)

SetReportID sets the value of ReportID.

func (*Thread) SetType

func (s *Thread) SetType(val ThreadType)

SetType sets the value of Type.

func (*Thread) UnmarshalJSON

func (s *Thread) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Thread) Validate

func (s *Thread) Validate() error

type ThreadMessage

type ThreadMessage struct {
	// The ID of the message itself.
	ID string `json:"id"`
	// The ID of the author.
	AuthorID OptNilString      `json:"author_id"`
	Body     ThreadMessageBody `json:"body"`
	// The time at which the message was created.
	Created string `json:"created"`
}

Ref: #/components/schemas/ThreadMessage

func (*ThreadMessage) Decode

func (s *ThreadMessage) Decode(d *jx.Decoder) error

Decode decodes ThreadMessage from json.

func (*ThreadMessage) Encode

func (s *ThreadMessage) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ThreadMessage) GetAuthorID

func (s *ThreadMessage) GetAuthorID() OptNilString

GetAuthorID returns the value of AuthorID.

func (*ThreadMessage) GetBody

func (s *ThreadMessage) GetBody() ThreadMessageBody

GetBody returns the value of Body.

func (*ThreadMessage) GetCreated

func (s *ThreadMessage) GetCreated() string

GetCreated returns the value of Created.

func (*ThreadMessage) GetID

func (s *ThreadMessage) GetID() string

GetID returns the value of ID.

func (*ThreadMessage) MarshalJSON

func (s *ThreadMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ThreadMessage) SetAuthorID

func (s *ThreadMessage) SetAuthorID(val OptNilString)

SetAuthorID sets the value of AuthorID.

func (*ThreadMessage) SetBody

func (s *ThreadMessage) SetBody(val ThreadMessageBody)

SetBody sets the value of Body.

func (*ThreadMessage) SetCreated

func (s *ThreadMessage) SetCreated(val string)

SetCreated sets the value of Created.

func (*ThreadMessage) SetID

func (s *ThreadMessage) SetID(val string)

SetID sets the value of ID.

func (*ThreadMessage) UnmarshalJSON

func (s *ThreadMessage) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ThreadMessage) Validate

func (s *ThreadMessage) Validate() error

type ThreadMessageBody

type ThreadMessageBody struct {
	// The type of message.
	Type ThreadMessageBodyType `json:"type"`
	// The actual message text. **Only present for `text` message type**.
	Body OptString `json:"body"`
	// Whether the message is only visible to moderators. **Only present for `text` message type**.
	Private OptBool `json:"private"`
	// The ID of the message being replied to by this message. **Only present for `text` message type**.
	ReplyingTo OptNilString `json:"replying_to"`
	// The old status of the project. **Only present for `status_change` message type**.
	OldStatus OptThreadMessageBodyOldStatus `json:"old_status"`
	// The new status of the project. **Only present for `status_change` message type**.
	NewStatus OptThreadMessageBodyNewStatus `json:"new_status"`
}

The contents of the message. **Fields will vary depending on message type.**. Ref: #/components/schemas/ThreadMessageBody

func (*ThreadMessageBody) Decode

func (s *ThreadMessageBody) Decode(d *jx.Decoder) error

Decode decodes ThreadMessageBody from json.

func (*ThreadMessageBody) Encode

func (s *ThreadMessageBody) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ThreadMessageBody) GetBody

func (s *ThreadMessageBody) GetBody() OptString

GetBody returns the value of Body.

func (*ThreadMessageBody) GetNewStatus

GetNewStatus returns the value of NewStatus.

func (*ThreadMessageBody) GetOldStatus

GetOldStatus returns the value of OldStatus.

func (*ThreadMessageBody) GetPrivate

func (s *ThreadMessageBody) GetPrivate() OptBool

GetPrivate returns the value of Private.

func (*ThreadMessageBody) GetReplyingTo

func (s *ThreadMessageBody) GetReplyingTo() OptNilString

GetReplyingTo returns the value of ReplyingTo.

func (*ThreadMessageBody) GetType

GetType returns the value of Type.

func (*ThreadMessageBody) MarshalJSON

func (s *ThreadMessageBody) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ThreadMessageBody) SetBody

func (s *ThreadMessageBody) SetBody(val OptString)

SetBody sets the value of Body.

func (*ThreadMessageBody) SetNewStatus

func (s *ThreadMessageBody) SetNewStatus(val OptThreadMessageBodyNewStatus)

SetNewStatus sets the value of NewStatus.

func (*ThreadMessageBody) SetOldStatus

func (s *ThreadMessageBody) SetOldStatus(val OptThreadMessageBodyOldStatus)

SetOldStatus sets the value of OldStatus.

func (*ThreadMessageBody) SetPrivate

func (s *ThreadMessageBody) SetPrivate(val OptBool)

SetPrivate sets the value of Private.

func (*ThreadMessageBody) SetReplyingTo

func (s *ThreadMessageBody) SetReplyingTo(val OptNilString)

SetReplyingTo sets the value of ReplyingTo.

func (*ThreadMessageBody) SetType

func (s *ThreadMessageBody) SetType(val ThreadMessageBodyType)

SetType sets the value of Type.

func (*ThreadMessageBody) UnmarshalJSON

func (s *ThreadMessageBody) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ThreadMessageBody) Validate

func (s *ThreadMessageBody) Validate() error

type ThreadMessageBodyNewStatus

type ThreadMessageBodyNewStatus string

The new status of the project. **Only present for `status_change` message type**.

const (
	ThreadMessageBodyNewStatusApproved   ThreadMessageBodyNewStatus = "approved"
	ThreadMessageBodyNewStatusArchived   ThreadMessageBodyNewStatus = "archived"
	ThreadMessageBodyNewStatusRejected   ThreadMessageBodyNewStatus = "rejected"
	ThreadMessageBodyNewStatusDraft      ThreadMessageBodyNewStatus = "draft"
	ThreadMessageBodyNewStatusUnlisted   ThreadMessageBodyNewStatus = "unlisted"
	ThreadMessageBodyNewStatusProcessing ThreadMessageBodyNewStatus = "processing"
	ThreadMessageBodyNewStatusWithheld   ThreadMessageBodyNewStatus = "withheld"
	ThreadMessageBodyNewStatusScheduled  ThreadMessageBodyNewStatus = "scheduled"
	ThreadMessageBodyNewStatusPrivate    ThreadMessageBodyNewStatus = "private"
	ThreadMessageBodyNewStatusUnknown    ThreadMessageBodyNewStatus = "unknown"
)

func (ThreadMessageBodyNewStatus) AllValues

AllValues returns all ThreadMessageBodyNewStatus values.

func (*ThreadMessageBodyNewStatus) Decode

Decode decodes ThreadMessageBodyNewStatus from json.

func (ThreadMessageBodyNewStatus) Encode

func (s ThreadMessageBodyNewStatus) Encode(e *jx.Encoder)

Encode encodes ThreadMessageBodyNewStatus as json.

func (ThreadMessageBodyNewStatus) MarshalJSON

func (s ThreadMessageBodyNewStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ThreadMessageBodyNewStatus) MarshalText

func (s ThreadMessageBodyNewStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ThreadMessageBodyNewStatus) UnmarshalJSON

func (s *ThreadMessageBodyNewStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ThreadMessageBodyNewStatus) UnmarshalText

func (s *ThreadMessageBodyNewStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ThreadMessageBodyNewStatus) Validate

func (s ThreadMessageBodyNewStatus) Validate() error

type ThreadMessageBodyOldStatus

type ThreadMessageBodyOldStatus string

The old status of the project. **Only present for `status_change` message type**.

const (
	ThreadMessageBodyOldStatusApproved   ThreadMessageBodyOldStatus = "approved"
	ThreadMessageBodyOldStatusArchived   ThreadMessageBodyOldStatus = "archived"
	ThreadMessageBodyOldStatusRejected   ThreadMessageBodyOldStatus = "rejected"
	ThreadMessageBodyOldStatusDraft      ThreadMessageBodyOldStatus = "draft"
	ThreadMessageBodyOldStatusUnlisted   ThreadMessageBodyOldStatus = "unlisted"
	ThreadMessageBodyOldStatusProcessing ThreadMessageBodyOldStatus = "processing"
	ThreadMessageBodyOldStatusWithheld   ThreadMessageBodyOldStatus = "withheld"
	ThreadMessageBodyOldStatusScheduled  ThreadMessageBodyOldStatus = "scheduled"
	ThreadMessageBodyOldStatusPrivate    ThreadMessageBodyOldStatus = "private"
	ThreadMessageBodyOldStatusUnknown    ThreadMessageBodyOldStatus = "unknown"
)

func (ThreadMessageBodyOldStatus) AllValues

AllValues returns all ThreadMessageBodyOldStatus values.

func (*ThreadMessageBodyOldStatus) Decode

Decode decodes ThreadMessageBodyOldStatus from json.

func (ThreadMessageBodyOldStatus) Encode

func (s ThreadMessageBodyOldStatus) Encode(e *jx.Encoder)

Encode encodes ThreadMessageBodyOldStatus as json.

func (ThreadMessageBodyOldStatus) MarshalJSON

func (s ThreadMessageBodyOldStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ThreadMessageBodyOldStatus) MarshalText

func (s ThreadMessageBodyOldStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ThreadMessageBodyOldStatus) UnmarshalJSON

func (s *ThreadMessageBodyOldStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ThreadMessageBodyOldStatus) UnmarshalText

func (s *ThreadMessageBodyOldStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ThreadMessageBodyOldStatus) Validate

func (s ThreadMessageBodyOldStatus) Validate() error

type ThreadMessageBodyType

type ThreadMessageBodyType string

The type of message.

const (
	ThreadMessageBodyTypeStatusChange  ThreadMessageBodyType = "status_change"
	ThreadMessageBodyTypeText          ThreadMessageBodyType = "text"
	ThreadMessageBodyTypeThreadClosure ThreadMessageBodyType = "thread_closure"
	ThreadMessageBodyTypeDeleted       ThreadMessageBodyType = "deleted"
)

func (ThreadMessageBodyType) AllValues

AllValues returns all ThreadMessageBodyType values.

func (*ThreadMessageBodyType) Decode

func (s *ThreadMessageBodyType) Decode(d *jx.Decoder) error

Decode decodes ThreadMessageBodyType from json.

func (ThreadMessageBodyType) Encode

func (s ThreadMessageBodyType) Encode(e *jx.Encoder)

Encode encodes ThreadMessageBodyType as json.

func (ThreadMessageBodyType) MarshalJSON

func (s ThreadMessageBodyType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ThreadMessageBodyType) MarshalText

func (s ThreadMessageBodyType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ThreadMessageBodyType) UnmarshalJSON

func (s *ThreadMessageBodyType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ThreadMessageBodyType) UnmarshalText

func (s *ThreadMessageBodyType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ThreadMessageBodyType) Validate

func (s ThreadMessageBodyType) Validate() error

type ThreadType

type ThreadType string
const (
	ThreadTypeProject       ThreadType = "project"
	ThreadTypeReport        ThreadType = "report"
	ThreadTypeDirectMessage ThreadType = "direct_message"
)

func (ThreadType) AllValues

func (ThreadType) AllValues() []ThreadType

AllValues returns all ThreadType values.

func (*ThreadType) Decode

func (s *ThreadType) Decode(d *jx.Decoder) error

Decode decodes ThreadType from json.

func (ThreadType) Encode

func (s ThreadType) Encode(e *jx.Encoder)

Encode encodes ThreadType as json.

func (ThreadType) MarshalJSON

func (s ThreadType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ThreadType) MarshalText

func (s ThreadType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ThreadType) UnmarshalJSON

func (s *ThreadType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ThreadType) UnmarshalText

func (s *ThreadType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ThreadType) Validate

func (s ThreadType) Validate() error

type TokenAuth

type TokenAuth struct {
	APIKey string
	Roles  []string
}

func (*TokenAuth) GetAPIKey

func (s *TokenAuth) GetAPIKey() string

GetAPIKey returns the value of APIKey.

func (*TokenAuth) GetRoles

func (s *TokenAuth) GetRoles() []string

GetRoles returns the value of Roles.

func (*TokenAuth) SetAPIKey

func (s *TokenAuth) SetAPIKey(val string)

SetAPIKey sets the value of APIKey.

func (*TokenAuth) SetRoles

func (s *TokenAuth) SetRoles(val []string)

SetRoles sets the value of Roles.

type TransferTeamOwnershipNoContent

type TransferTeamOwnershipNoContent struct{}

TransferTeamOwnershipNoContent is response for TransferTeamOwnership operation.

type TransferTeamOwnershipNotFound

type TransferTeamOwnershipNotFound struct{}

TransferTeamOwnershipNotFound is response for TransferTeamOwnership operation.

type TransferTeamOwnershipParams

type TransferTeamOwnershipParams struct {
	// The ID of the team.
	ID string
}

TransferTeamOwnershipParams is parameters of transferTeamOwnership operation.

type TransferTeamOwnershipRes

type TransferTeamOwnershipRes interface {
	// contains filtered or unexported methods
}

type UnfollowProjectNoContent

type UnfollowProjectNoContent struct{}

UnfollowProjectNoContent is response for UnfollowProject operation.

type UnfollowProjectParams

type UnfollowProjectParams struct {
	// The ID or slug of the project.
	IDSlug string
}

UnfollowProjectParams is parameters of unfollowProject operation.

type UnfollowProjectRes

type UnfollowProjectRes interface {
	// contains filtered or unexported methods
}

type User

type User struct {
	// The user's username.
	Username string `json:"username"`
	// The user's display name.
	Name OptNilString `json:"name"`
	// The user's email (only displayed if requesting your own account). Requires `USER_READ_EMAIL` PAT
	// scope.
	Email OptNilString `json:"email"`
	// A description of the user.
	Bio        OptString            `json:"bio"`
	PayoutData OptNilUserPayoutData `json:"payout_data"`
	// The user's ID.
	ID string `json:"id"`
	// The user's avatar url.
	AvatarURL string `json:"avatar_url"`
	// The time at which the user was created.
	Created string `json:"created"`
	// The user's role.
	Role UserRole `json:"role"`
	// Any badges applicable to this user. These are currently unused and undisplayed, and as such are
	// subject to change
	// In order from first to seventh bit, the current bits are:
	// - (unused)
	// - EARLY_MODPACK_ADOPTER
	// - EARLY_RESPACK_ADOPTER
	// - EARLY_PLUGIN_ADOPTER
	// - ALPHA_TESTER
	// - CONTRIBUTOR
	// - TRANSLATOR.
	Badges OptInt `json:"badges"`
	// A list of authentication providers you have signed up for (only displayed if requesting your own
	// account).
	AuthProviders OptNilStringArray `json:"auth_providers"`
	// Whether your email is verified (only displayed if requesting your own account).
	EmailVerified OptNilBool `json:"email_verified"`
	// Whether you have a password associated with your account (only displayed if requesting your own
	// account).
	HasPassword OptNilBool `json:"has_password"`
	// Whether you have TOTP two-factor authentication connected to your account (only displayed if
	// requesting your own account).
	HasTotp OptNilBool `json:"has_totp"`
	// Deprecated - this is no longer public for security reasons and is always null.
	//
	// Deprecated: schema marks this property as deprecated.
	GithubID OptNilInt `json:"github_id"`
}

Merged schema. Ref: #/components/schemas/User

func (*User) Decode

func (s *User) Decode(d *jx.Decoder) error

Decode decodes User from json.

func (*User) Encode

func (s *User) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*User) GetAuthProviders

func (s *User) GetAuthProviders() OptNilStringArray

GetAuthProviders returns the value of AuthProviders.

func (*User) GetAvatarURL

func (s *User) GetAvatarURL() string

GetAvatarURL returns the value of AvatarURL.

func (*User) GetBadges

func (s *User) GetBadges() OptInt

GetBadges returns the value of Badges.

func (*User) GetBio

func (s *User) GetBio() OptString

GetBio returns the value of Bio.

func (*User) GetCreated

func (s *User) GetCreated() string

GetCreated returns the value of Created.

func (*User) GetEmail

func (s *User) GetEmail() OptNilString

GetEmail returns the value of Email.

func (*User) GetEmailVerified

func (s *User) GetEmailVerified() OptNilBool

GetEmailVerified returns the value of EmailVerified.

func (*User) GetGithubID

func (s *User) GetGithubID() OptNilInt

GetGithubID returns the value of GithubID.

func (*User) GetHasPassword

func (s *User) GetHasPassword() OptNilBool

GetHasPassword returns the value of HasPassword.

func (*User) GetHasTotp

func (s *User) GetHasTotp() OptNilBool

GetHasTotp returns the value of HasTotp.

func (*User) GetID

func (s *User) GetID() string

GetID returns the value of ID.

func (*User) GetName

func (s *User) GetName() OptNilString

GetName returns the value of Name.

func (*User) GetPayoutData

func (s *User) GetPayoutData() OptNilUserPayoutData

GetPayoutData returns the value of PayoutData.

func (*User) GetRole

func (s *User) GetRole() UserRole

GetRole returns the value of Role.

func (*User) GetUsername

func (s *User) GetUsername() string

GetUsername returns the value of Username.

func (*User) MarshalJSON

func (s *User) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*User) SetAuthProviders

func (s *User) SetAuthProviders(val OptNilStringArray)

SetAuthProviders sets the value of AuthProviders.

func (*User) SetAvatarURL

func (s *User) SetAvatarURL(val string)

SetAvatarURL sets the value of AvatarURL.

func (*User) SetBadges

func (s *User) SetBadges(val OptInt)

SetBadges sets the value of Badges.

func (*User) SetBio

func (s *User) SetBio(val OptString)

SetBio sets the value of Bio.

func (*User) SetCreated

func (s *User) SetCreated(val string)

SetCreated sets the value of Created.

func (*User) SetEmail

func (s *User) SetEmail(val OptNilString)

SetEmail sets the value of Email.

func (*User) SetEmailVerified

func (s *User) SetEmailVerified(val OptNilBool)

SetEmailVerified sets the value of EmailVerified.

func (*User) SetGithubID

func (s *User) SetGithubID(val OptNilInt)

SetGithubID sets the value of GithubID.

func (*User) SetHasPassword

func (s *User) SetHasPassword(val OptNilBool)

SetHasPassword sets the value of HasPassword.

func (*User) SetHasTotp

func (s *User) SetHasTotp(val OptNilBool)

SetHasTotp sets the value of HasTotp.

func (*User) SetID

func (s *User) SetID(val string)

SetID sets the value of ID.

func (*User) SetName

func (s *User) SetName(val OptNilString)

SetName sets the value of Name.

func (*User) SetPayoutData

func (s *User) SetPayoutData(val OptNilUserPayoutData)

SetPayoutData sets the value of PayoutData.

func (*User) SetRole

func (s *User) SetRole(val UserRole)

SetRole sets the value of Role.

func (*User) SetUsername

func (s *User) SetUsername(val string)

SetUsername sets the value of Username.

func (*User) UnmarshalJSON

func (s *User) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*User) Validate

func (s *User) Validate() error

type UserIdentifier

type UserIdentifier jx.Raw

func (*UserIdentifier) Decode

func (s *UserIdentifier) Decode(d *jx.Decoder) error

Decode decodes UserIdentifier from json.

func (UserIdentifier) Encode

func (s UserIdentifier) Encode(e *jx.Encoder)

Encode encodes UserIdentifier as json.

func (UserIdentifier) MarshalJSON

func (s UserIdentifier) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserIdentifier) UnmarshalJSON

func (s *UserIdentifier) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserPayoutData

type UserPayoutData struct {
	// The payout balance available for the user to withdraw (note, you cannot modify this in a PATCH
	// request).
	Balance OptInt `json:"balance"`
	// The wallet that the user has selected.
	PayoutWallet OptUserPayoutDataPayoutWallet `json:"payout_wallet"`
	// The type of the user's wallet.
	PayoutWalletType OptUserPayoutDataPayoutWalletType `json:"payout_wallet_type"`
	// The user's payout address.
	PayoutAddress OptString `json:"payout_address"`
}

Various data relating to the user's payouts status (you can only see your own). Ref: #/components/schemas/UserPayoutData

func (*UserPayoutData) Decode

func (s *UserPayoutData) Decode(d *jx.Decoder) error

Decode decodes UserPayoutData from json.

func (*UserPayoutData) Encode

func (s *UserPayoutData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserPayoutData) GetBalance

func (s *UserPayoutData) GetBalance() OptInt

GetBalance returns the value of Balance.

func (*UserPayoutData) GetPayoutAddress

func (s *UserPayoutData) GetPayoutAddress() OptString

GetPayoutAddress returns the value of PayoutAddress.

func (*UserPayoutData) GetPayoutWallet

func (s *UserPayoutData) GetPayoutWallet() OptUserPayoutDataPayoutWallet

GetPayoutWallet returns the value of PayoutWallet.

func (*UserPayoutData) GetPayoutWalletType

func (s *UserPayoutData) GetPayoutWalletType() OptUserPayoutDataPayoutWalletType

GetPayoutWalletType returns the value of PayoutWalletType.

func (*UserPayoutData) MarshalJSON

func (s *UserPayoutData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserPayoutData) SetBalance

func (s *UserPayoutData) SetBalance(val OptInt)

SetBalance sets the value of Balance.

func (*UserPayoutData) SetPayoutAddress

func (s *UserPayoutData) SetPayoutAddress(val OptString)

SetPayoutAddress sets the value of PayoutAddress.

func (*UserPayoutData) SetPayoutWallet

func (s *UserPayoutData) SetPayoutWallet(val OptUserPayoutDataPayoutWallet)

SetPayoutWallet sets the value of PayoutWallet.

func (*UserPayoutData) SetPayoutWalletType

func (s *UserPayoutData) SetPayoutWalletType(val OptUserPayoutDataPayoutWalletType)

SetPayoutWalletType sets the value of PayoutWalletType.

func (*UserPayoutData) UnmarshalJSON

func (s *UserPayoutData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserPayoutData) Validate

func (s *UserPayoutData) Validate() error

type UserPayoutDataPayoutWallet

type UserPayoutDataPayoutWallet string

The wallet that the user has selected.

const (
	UserPayoutDataPayoutWalletPaypal UserPayoutDataPayoutWallet = "paypal"
	UserPayoutDataPayoutWalletVenmo  UserPayoutDataPayoutWallet = "venmo"
)

func (UserPayoutDataPayoutWallet) AllValues

AllValues returns all UserPayoutDataPayoutWallet values.

func (*UserPayoutDataPayoutWallet) Decode

Decode decodes UserPayoutDataPayoutWallet from json.

func (UserPayoutDataPayoutWallet) Encode

func (s UserPayoutDataPayoutWallet) Encode(e *jx.Encoder)

Encode encodes UserPayoutDataPayoutWallet as json.

func (UserPayoutDataPayoutWallet) MarshalJSON

func (s UserPayoutDataPayoutWallet) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UserPayoutDataPayoutWallet) MarshalText

func (s UserPayoutDataPayoutWallet) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UserPayoutDataPayoutWallet) UnmarshalJSON

func (s *UserPayoutDataPayoutWallet) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserPayoutDataPayoutWallet) UnmarshalText

func (s *UserPayoutDataPayoutWallet) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UserPayoutDataPayoutWallet) Validate

func (s UserPayoutDataPayoutWallet) Validate() error

type UserPayoutDataPayoutWalletType

type UserPayoutDataPayoutWalletType string

The type of the user's wallet.

const (
	UserPayoutDataPayoutWalletTypeEmail      UserPayoutDataPayoutWalletType = "email"
	UserPayoutDataPayoutWalletTypePhone      UserPayoutDataPayoutWalletType = "phone"
	UserPayoutDataPayoutWalletTypeUserHandle UserPayoutDataPayoutWalletType = "user_handle"
)

func (UserPayoutDataPayoutWalletType) AllValues

AllValues returns all UserPayoutDataPayoutWalletType values.

func (*UserPayoutDataPayoutWalletType) Decode

Decode decodes UserPayoutDataPayoutWalletType from json.

func (UserPayoutDataPayoutWalletType) Encode

Encode encodes UserPayoutDataPayoutWalletType as json.

func (UserPayoutDataPayoutWalletType) MarshalJSON

func (s UserPayoutDataPayoutWalletType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UserPayoutDataPayoutWalletType) MarshalText

func (s UserPayoutDataPayoutWalletType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UserPayoutDataPayoutWalletType) UnmarshalJSON

func (s *UserPayoutDataPayoutWalletType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserPayoutDataPayoutWalletType) UnmarshalText

func (s *UserPayoutDataPayoutWalletType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UserPayoutDataPayoutWalletType) Validate

type UserPayoutHistory

type UserPayoutHistory struct {
	// The all-time balance accrued by this user in USD.
	AllTime OptString `json:"all_time"`
	// The amount in USD made by the user in the previous 30 days.
	LastMonth OptString `json:"last_month"`
	// A history of all of the user's past transactions.
	Payouts []UserPayoutHistoryEntry `json:"payouts"`
}

Ref: #/components/schemas/UserPayoutHistory

func (*UserPayoutHistory) Decode

func (s *UserPayoutHistory) Decode(d *jx.Decoder) error

Decode decodes UserPayoutHistory from json.

func (*UserPayoutHistory) Encode

func (s *UserPayoutHistory) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserPayoutHistory) GetAllTime

func (s *UserPayoutHistory) GetAllTime() OptString

GetAllTime returns the value of AllTime.

func (*UserPayoutHistory) GetLastMonth

func (s *UserPayoutHistory) GetLastMonth() OptString

GetLastMonth returns the value of LastMonth.

func (*UserPayoutHistory) GetPayouts

func (s *UserPayoutHistory) GetPayouts() []UserPayoutHistoryEntry

GetPayouts returns the value of Payouts.

func (*UserPayoutHistory) MarshalJSON

func (s *UserPayoutHistory) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserPayoutHistory) SetAllTime

func (s *UserPayoutHistory) SetAllTime(val OptString)

SetAllTime sets the value of AllTime.

func (*UserPayoutHistory) SetLastMonth

func (s *UserPayoutHistory) SetLastMonth(val OptString)

SetLastMonth sets the value of LastMonth.

func (*UserPayoutHistory) SetPayouts

func (s *UserPayoutHistory) SetPayouts(val []UserPayoutHistoryEntry)

SetPayouts sets the value of Payouts.

func (*UserPayoutHistory) UnmarshalJSON

func (s *UserPayoutHistory) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserPayoutHistoryEntry

type UserPayoutHistoryEntry struct {
	// The date of this transaction.
	Created OptString `json:"created"`
	// The amount of this transaction in USD.
	Amount OptInt `json:"amount"`
	// The status of this transaction.
	Status OptString `json:"status"`
}

Ref: #/components/schemas/UserPayoutHistoryEntry

func (*UserPayoutHistoryEntry) Decode

func (s *UserPayoutHistoryEntry) Decode(d *jx.Decoder) error

Decode decodes UserPayoutHistoryEntry from json.

func (*UserPayoutHistoryEntry) Encode

func (s *UserPayoutHistoryEntry) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UserPayoutHistoryEntry) GetAmount

func (s *UserPayoutHistoryEntry) GetAmount() OptInt

GetAmount returns the value of Amount.

func (*UserPayoutHistoryEntry) GetCreated

func (s *UserPayoutHistoryEntry) GetCreated() OptString

GetCreated returns the value of Created.

func (*UserPayoutHistoryEntry) GetStatus

func (s *UserPayoutHistoryEntry) GetStatus() OptString

GetStatus returns the value of Status.

func (*UserPayoutHistoryEntry) MarshalJSON

func (s *UserPayoutHistoryEntry) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UserPayoutHistoryEntry) SetAmount

func (s *UserPayoutHistoryEntry) SetAmount(val OptInt)

SetAmount sets the value of Amount.

func (*UserPayoutHistoryEntry) SetCreated

func (s *UserPayoutHistoryEntry) SetCreated(val OptString)

SetCreated sets the value of Created.

func (*UserPayoutHistoryEntry) SetStatus

func (s *UserPayoutHistoryEntry) SetStatus(val OptString)

SetStatus sets the value of Status.

func (*UserPayoutHistoryEntry) UnmarshalJSON

func (s *UserPayoutHistoryEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UserRole

type UserRole string

The user's role.

const (
	UserRoleAdmin     UserRole = "admin"
	UserRoleModerator UserRole = "moderator"
	UserRoleDeveloper UserRole = "developer"
)

func (UserRole) AllValues

func (UserRole) AllValues() []UserRole

AllValues returns all UserRole values.

func (*UserRole) Decode

func (s *UserRole) Decode(d *jx.Decoder) error

Decode decodes UserRole from json.

func (UserRole) Encode

func (s UserRole) Encode(e *jx.Encoder)

Encode encodes UserRole as json.

func (UserRole) MarshalJSON

func (s UserRole) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UserRole) MarshalText

func (s UserRole) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UserRole) UnmarshalJSON

func (s *UserRole) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UserRole) UnmarshalText

func (s *UserRole) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UserRole) Validate

func (s UserRole) Validate() error

type Version

type Version struct {
	// The name of this version.
	Name string `json:"name"`
	// The version number. Ideally will follow semantic versioning.
	VersionNumber string `json:"version_number"`
	// The changelog for this version.
	Changelog OptNilString `json:"changelog"`
	// A list of specific versions of projects that this version depends on.
	Dependencies []VersionDependency `json:"dependencies"`
	// A list of versions of Minecraft that this version supports.
	GameVersions []string `json:"game_versions"`
	// The release channel for this version.
	VersionType VersionVersionType `json:"version_type"`
	// The mod loaders that this version supports. In case of resource packs, use "minecraft".
	Loaders []string `json:"loaders"`
	// Whether the version is featured or not.
	Featured        bool                         `json:"featured"`
	Status          OptVersionStatus             `json:"status"`
	RequestedStatus OptNilVersionRequestedStatus `json:"requested_status"`
	// The ID of the version, encoded as a base62 string.
	ID string `json:"id"`
	// The ID of the project this version is for.
	ProjectID string `json:"project_id"`
	// The ID of the author who published this version.
	AuthorID      string `json:"author_id"`
	DatePublished string `json:"date_published"`
	// The number of times this version has been downloaded.
	Downloads int `json:"downloads"`
	// A link to the changelog for this version. Always null, only kept for legacy compatibility.
	//
	// Deprecated: schema marks this property as deprecated.
	ChangelogURL OptNilString `json:"changelog_url"`
	// A list of files available for download for this version.
	Files []VersionFile `json:"files"`
}

Merged schema. Ref: #/components/schemas/Version

func (*Version) Decode

func (s *Version) Decode(d *jx.Decoder) error

Decode decodes Version from json.

func (*Version) Encode

func (s *Version) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Version) GetAuthorID

func (s *Version) GetAuthorID() string

GetAuthorID returns the value of AuthorID.

func (*Version) GetChangelog

func (s *Version) GetChangelog() OptNilString

GetChangelog returns the value of Changelog.

func (*Version) GetChangelogURL

func (s *Version) GetChangelogURL() OptNilString

GetChangelogURL returns the value of ChangelogURL.

func (*Version) GetDatePublished

func (s *Version) GetDatePublished() string

GetDatePublished returns the value of DatePublished.

func (*Version) GetDependencies

func (s *Version) GetDependencies() []VersionDependency

GetDependencies returns the value of Dependencies.

func (*Version) GetDownloads

func (s *Version) GetDownloads() int

GetDownloads returns the value of Downloads.

func (*Version) GetFeatured

func (s *Version) GetFeatured() bool

GetFeatured returns the value of Featured.

func (*Version) GetFiles

func (s *Version) GetFiles() []VersionFile

GetFiles returns the value of Files.

func (*Version) GetGameVersions

func (s *Version) GetGameVersions() []string

GetGameVersions returns the value of GameVersions.

func (*Version) GetID

func (s *Version) GetID() string

GetID returns the value of ID.

func (*Version) GetLoaders

func (s *Version) GetLoaders() []string

GetLoaders returns the value of Loaders.

func (*Version) GetName

func (s *Version) GetName() string

GetName returns the value of Name.

func (*Version) GetProjectID

func (s *Version) GetProjectID() string

GetProjectID returns the value of ProjectID.

func (*Version) GetRequestedStatus

func (s *Version) GetRequestedStatus() OptNilVersionRequestedStatus

GetRequestedStatus returns the value of RequestedStatus.

func (*Version) GetStatus

func (s *Version) GetStatus() OptVersionStatus

GetStatus returns the value of Status.

func (*Version) GetVersionNumber

func (s *Version) GetVersionNumber() string

GetVersionNumber returns the value of VersionNumber.

func (*Version) GetVersionType

func (s *Version) GetVersionType() VersionVersionType

GetVersionType returns the value of VersionType.

func (*Version) MarshalJSON

func (s *Version) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Version) SetAuthorID

func (s *Version) SetAuthorID(val string)

SetAuthorID sets the value of AuthorID.

func (*Version) SetChangelog

func (s *Version) SetChangelog(val OptNilString)

SetChangelog sets the value of Changelog.

func (*Version) SetChangelogURL

func (s *Version) SetChangelogURL(val OptNilString)

SetChangelogURL sets the value of ChangelogURL.

func (*Version) SetDatePublished

func (s *Version) SetDatePublished(val string)

SetDatePublished sets the value of DatePublished.

func (*Version) SetDependencies

func (s *Version) SetDependencies(val []VersionDependency)

SetDependencies sets the value of Dependencies.

func (*Version) SetDownloads

func (s *Version) SetDownloads(val int)

SetDownloads sets the value of Downloads.

func (*Version) SetFeatured

func (s *Version) SetFeatured(val bool)

SetFeatured sets the value of Featured.

func (*Version) SetFiles

func (s *Version) SetFiles(val []VersionFile)

SetFiles sets the value of Files.

func (*Version) SetGameVersions

func (s *Version) SetGameVersions(val []string)

SetGameVersions sets the value of GameVersions.

func (*Version) SetID

func (s *Version) SetID(val string)

SetID sets the value of ID.

func (*Version) SetLoaders

func (s *Version) SetLoaders(val []string)

SetLoaders sets the value of Loaders.

func (*Version) SetName

func (s *Version) SetName(val string)

SetName sets the value of Name.

func (*Version) SetProjectID

func (s *Version) SetProjectID(val string)

SetProjectID sets the value of ProjectID.

func (*Version) SetRequestedStatus

func (s *Version) SetRequestedStatus(val OptNilVersionRequestedStatus)

SetRequestedStatus sets the value of RequestedStatus.

func (*Version) SetStatus

func (s *Version) SetStatus(val OptVersionStatus)

SetStatus sets the value of Status.

func (*Version) SetVersionNumber

func (s *Version) SetVersionNumber(val string)

SetVersionNumber sets the value of VersionNumber.

func (*Version) SetVersionType

func (s *Version) SetVersionType(val VersionVersionType)

SetVersionType sets the value of VersionType.

func (*Version) UnmarshalJSON

func (s *Version) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Version) Validate

func (s *Version) Validate() error

type VersionDependency

type VersionDependency struct {
	// The ID of the version that this version depends on.
	VersionID OptNilString `json:"version_id"`
	// The ID of the project that this version depends on.
	ProjectID OptNilString `json:"project_id"`
	// The file name of the dependency, mostly used for showing external dependencies on modpacks.
	FileName OptNilString `json:"file_name"`
	// The type of dependency that this version has.
	DependencyType VersionDependencyDependencyType `json:"dependency_type"`
}

Ref: #/components/schemas/VersionDependency

func (*VersionDependency) Decode

func (s *VersionDependency) Decode(d *jx.Decoder) error

Decode decodes VersionDependency from json.

func (*VersionDependency) Encode

func (s *VersionDependency) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VersionDependency) GetDependencyType

func (s *VersionDependency) GetDependencyType() VersionDependencyDependencyType

GetDependencyType returns the value of DependencyType.

func (*VersionDependency) GetFileName

func (s *VersionDependency) GetFileName() OptNilString

GetFileName returns the value of FileName.

func (*VersionDependency) GetProjectID

func (s *VersionDependency) GetProjectID() OptNilString

GetProjectID returns the value of ProjectID.

func (*VersionDependency) GetVersionID

func (s *VersionDependency) GetVersionID() OptNilString

GetVersionID returns the value of VersionID.

func (*VersionDependency) MarshalJSON

func (s *VersionDependency) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VersionDependency) SetDependencyType

func (s *VersionDependency) SetDependencyType(val VersionDependencyDependencyType)

SetDependencyType sets the value of DependencyType.

func (*VersionDependency) SetFileName

func (s *VersionDependency) SetFileName(val OptNilString)

SetFileName sets the value of FileName.

func (*VersionDependency) SetProjectID

func (s *VersionDependency) SetProjectID(val OptNilString)

SetProjectID sets the value of ProjectID.

func (*VersionDependency) SetVersionID

func (s *VersionDependency) SetVersionID(val OptNilString)

SetVersionID sets the value of VersionID.

func (*VersionDependency) UnmarshalJSON

func (s *VersionDependency) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VersionDependency) Validate

func (s *VersionDependency) Validate() error

type VersionDependencyDependencyType

type VersionDependencyDependencyType string

The type of dependency that this version has.

const (
	VersionDependencyDependencyTypeRequired     VersionDependencyDependencyType = "required"
	VersionDependencyDependencyTypeOptional     VersionDependencyDependencyType = "optional"
	VersionDependencyDependencyTypeIncompatible VersionDependencyDependencyType = "incompatible"
	VersionDependencyDependencyTypeEmbedded     VersionDependencyDependencyType = "embedded"
)

func (VersionDependencyDependencyType) AllValues

AllValues returns all VersionDependencyDependencyType values.

func (*VersionDependencyDependencyType) Decode

Decode decodes VersionDependencyDependencyType from json.

func (VersionDependencyDependencyType) Encode

Encode encodes VersionDependencyDependencyType as json.

func (VersionDependencyDependencyType) MarshalJSON

func (s VersionDependencyDependencyType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VersionDependencyDependencyType) MarshalText

func (s VersionDependencyDependencyType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VersionDependencyDependencyType) UnmarshalJSON

func (s *VersionDependencyDependencyType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VersionDependencyDependencyType) UnmarshalText

func (s *VersionDependencyDependencyType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VersionDependencyDependencyType) Validate

type VersionFile

type VersionFile struct {
	Hashes VersionFileHashes `json:"hashes"`
	// A direct link to the file.
	URL string `json:"url"`
	// The name of the file.
	Filename string `json:"filename"`
	// Whether this file is the primary one for its version. Only a maximum of one file per version will
	// have this set to true. If there are not any primary files, it can be inferred that the first file
	// is the primary one.
	Primary bool `json:"primary"`
	// The size of the file in bytes.
	Size int `json:"size"`
	// The type of the additional file, used mainly for adding resource packs to datapacks.
	FileType OptNilVersionFileFileType `json:"file_type"`
}

Ref: #/components/schemas/VersionFile

func (*VersionFile) Decode

func (s *VersionFile) Decode(d *jx.Decoder) error

Decode decodes VersionFile from json.

func (*VersionFile) Encode

func (s *VersionFile) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VersionFile) GetFileType

func (s *VersionFile) GetFileType() OptNilVersionFileFileType

GetFileType returns the value of FileType.

func (*VersionFile) GetFilename

func (s *VersionFile) GetFilename() string

GetFilename returns the value of Filename.

func (*VersionFile) GetHashes

func (s *VersionFile) GetHashes() VersionFileHashes

GetHashes returns the value of Hashes.

func (*VersionFile) GetPrimary

func (s *VersionFile) GetPrimary() bool

GetPrimary returns the value of Primary.

func (*VersionFile) GetSize

func (s *VersionFile) GetSize() int

GetSize returns the value of Size.

func (*VersionFile) GetURL

func (s *VersionFile) GetURL() string

GetURL returns the value of URL.

func (*VersionFile) MarshalJSON

func (s *VersionFile) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VersionFile) SetFileType

func (s *VersionFile) SetFileType(val OptNilVersionFileFileType)

SetFileType sets the value of FileType.

func (*VersionFile) SetFilename

func (s *VersionFile) SetFilename(val string)

SetFilename sets the value of Filename.

func (*VersionFile) SetHashes

func (s *VersionFile) SetHashes(val VersionFileHashes)

SetHashes sets the value of Hashes.

func (*VersionFile) SetPrimary

func (s *VersionFile) SetPrimary(val bool)

SetPrimary sets the value of Primary.

func (*VersionFile) SetSize

func (s *VersionFile) SetSize(val int)

SetSize sets the value of Size.

func (*VersionFile) SetURL

func (s *VersionFile) SetURL(val string)

SetURL sets the value of URL.

func (*VersionFile) UnmarshalJSON

func (s *VersionFile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VersionFile) Validate

func (s *VersionFile) Validate() error

type VersionFileFileType

type VersionFileFileType string

The type of the additional file, used mainly for adding resource packs to datapacks.

const (
	VersionFileFileTypeRequiredResourcePack VersionFileFileType = "required-resource-pack"
	VersionFileFileTypeOptionalResourcePack VersionFileFileType = "optional-resource-pack"
)

func (VersionFileFileType) AllValues

AllValues returns all VersionFileFileType values.

func (*VersionFileFileType) Decode

func (s *VersionFileFileType) Decode(d *jx.Decoder) error

Decode decodes VersionFileFileType from json.

func (VersionFileFileType) Encode

func (s VersionFileFileType) Encode(e *jx.Encoder)

Encode encodes VersionFileFileType as json.

func (VersionFileFileType) MarshalJSON

func (s VersionFileFileType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VersionFileFileType) MarshalText

func (s VersionFileFileType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VersionFileFileType) UnmarshalJSON

func (s *VersionFileFileType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VersionFileFileType) UnmarshalText

func (s *VersionFileFileType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VersionFileFileType) Validate

func (s VersionFileFileType) Validate() error

type VersionFileHashes

type VersionFileHashes struct {
	Sha512 OptString `json:"sha512"`
	SHA1   OptString `json:"sha1"`
}

A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. Ref: #/components/schemas/VersionFileHashes

func (*VersionFileHashes) Decode

func (s *VersionFileHashes) Decode(d *jx.Decoder) error

Decode decodes VersionFileHashes from json.

func (*VersionFileHashes) Encode

func (s *VersionFileHashes) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VersionFileHashes) GetSHA1

func (s *VersionFileHashes) GetSHA1() OptString

GetSHA1 returns the value of SHA1.

func (*VersionFileHashes) GetSha512

func (s *VersionFileHashes) GetSha512() OptString

GetSha512 returns the value of Sha512.

func (*VersionFileHashes) MarshalJSON

func (s *VersionFileHashes) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VersionFileHashes) SetSHA1

func (s *VersionFileHashes) SetSHA1(val OptString)

SetSHA1 sets the value of SHA1.

func (*VersionFileHashes) SetSha512

func (s *VersionFileHashes) SetSha512(val OptString)

SetSha512 sets the value of Sha512.

func (*VersionFileHashes) UnmarshalJSON

func (s *VersionFileHashes) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type VersionFromHashNotFound

type VersionFromHashNotFound struct{}

VersionFromHashNotFound is response for VersionFromHash operation.

type VersionFromHashParams

type VersionFromHashParams struct {
	// Whether to return multiple results when looking for this hash.
	Multiple OptBool
	// The hash of the file, considering its byte content, and encoded in hexadecimal.
	Hash string
	// The algorithm of the hash.
	Algorithm AlgorithmIdentifier
}

VersionFromHashParams is parameters of versionFromHash operation.

type VersionFromHashRes

type VersionFromHashRes interface {
	// contains filtered or unexported methods
}

type VersionRequestedStatus

type VersionRequestedStatus string
const (
	VersionRequestedStatusListed   VersionRequestedStatus = "listed"
	VersionRequestedStatusArchived VersionRequestedStatus = "archived"
	VersionRequestedStatusDraft    VersionRequestedStatus = "draft"
	VersionRequestedStatusUnlisted VersionRequestedStatus = "unlisted"
)

func (VersionRequestedStatus) AllValues

AllValues returns all VersionRequestedStatus values.

func (*VersionRequestedStatus) Decode

func (s *VersionRequestedStatus) Decode(d *jx.Decoder) error

Decode decodes VersionRequestedStatus from json.

func (VersionRequestedStatus) Encode

func (s VersionRequestedStatus) Encode(e *jx.Encoder)

Encode encodes VersionRequestedStatus as json.

func (VersionRequestedStatus) MarshalJSON

func (s VersionRequestedStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VersionRequestedStatus) MarshalText

func (s VersionRequestedStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VersionRequestedStatus) UnmarshalJSON

func (s *VersionRequestedStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VersionRequestedStatus) UnmarshalText

func (s *VersionRequestedStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VersionRequestedStatus) Validate

func (s VersionRequestedStatus) Validate() error

type VersionStatus

type VersionStatus string
const (
	VersionStatusListed    VersionStatus = "listed"
	VersionStatusArchived  VersionStatus = "archived"
	VersionStatusDraft     VersionStatus = "draft"
	VersionStatusUnlisted  VersionStatus = "unlisted"
	VersionStatusScheduled VersionStatus = "scheduled"
	VersionStatusUnknown   VersionStatus = "unknown"
)

func (VersionStatus) AllValues

func (VersionStatus) AllValues() []VersionStatus

AllValues returns all VersionStatus values.

func (*VersionStatus) Decode

func (s *VersionStatus) Decode(d *jx.Decoder) error

Decode decodes VersionStatus from json.

func (VersionStatus) Encode

func (s VersionStatus) Encode(e *jx.Encoder)

Encode encodes VersionStatus as json.

func (VersionStatus) MarshalJSON

func (s VersionStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VersionStatus) MarshalText

func (s VersionStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VersionStatus) UnmarshalJSON

func (s *VersionStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VersionStatus) UnmarshalText

func (s *VersionStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VersionStatus) Validate

func (s VersionStatus) Validate() error

type VersionVersionType

type VersionVersionType string

The release channel for this version.

const (
	VersionVersionTypeRelease VersionVersionType = "release"
	VersionVersionTypeBeta    VersionVersionType = "beta"
	VersionVersionTypeAlpha   VersionVersionType = "alpha"
)

func (VersionVersionType) AllValues

func (VersionVersionType) AllValues() []VersionVersionType

AllValues returns all VersionVersionType values.

func (*VersionVersionType) Decode

func (s *VersionVersionType) Decode(d *jx.Decoder) error

Decode decodes VersionVersionType from json.

func (VersionVersionType) Encode

func (s VersionVersionType) Encode(e *jx.Encoder)

Encode encodes VersionVersionType as json.

func (VersionVersionType) MarshalJSON

func (s VersionVersionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (VersionVersionType) MarshalText

func (s VersionVersionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*VersionVersionType) UnmarshalJSON

func (s *VersionVersionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VersionVersionType) UnmarshalText

func (s *VersionVersionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (VersionVersionType) Validate

func (s VersionVersionType) Validate() error

type VersionsFromHashesBadRequest

type VersionsFromHashesBadRequest struct{}

VersionsFromHashesBadRequest is response for VersionsFromHashes operation.

type VersionsFromHashesRes

type VersionsFromHashesRes interface {
	// contains filtered or unexported methods
}

type WithdrawPayoutNoContent

type WithdrawPayoutNoContent struct{}

WithdrawPayoutNoContent is response for WithdrawPayout operation.

type WithdrawPayoutNotFound

type WithdrawPayoutNotFound struct{}

WithdrawPayoutNotFound is response for WithdrawPayout operation.

type WithdrawPayoutParams

type WithdrawPayoutParams struct {
	// Amount to withdraw.
	Amount int
	// The ID or username of the user.
	IDUsername string
}

WithdrawPayoutParams is parameters of withdrawPayout operation.

type WithdrawPayoutRes

type WithdrawPayoutRes interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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