restapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: GPL-3.0 Imports: 40 Imported by: 0

Documentation

Overview

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

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

Package restapi holds the OpenAPI StrictServer implementation for the /api/v1/* surface. gen.go provides the generated router + types; the handler_*.go files implement StrictServerInterface methods on *Server.

Index

Constants

View Source
const (
	ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
	BearerAuthScopes = "BearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func Mount

func Mount(r chi.Router, s *Server)

Mount wires the /api/v1/* routes onto r using the generated strict handler adapter.

Types

type ActivityBefore

type ActivityBefore = time.Time

ActivityBefore defines model for ActivityBefore.

type ActivityCursor

type ActivityCursor = string

ActivityCursor defines model for ActivityCursor.

type ActivityEvent

type ActivityEvent struct {
	CreatedAt time.Time               `json:"created_at"`
	Id        uint32                  `json:"id"`
	Movie     Movie                   `json:"movie"`
	Payload   *map[string]interface{} `json:"payload,omitempty"`
	Type      ActivityEventType       `json:"type"`
}

ActivityEvent defines model for ActivityEvent.

type ActivityEventType

type ActivityEventType string

ActivityEventType defines model for ActivityEvent.Type.

const (
	ActivityEventTypeDownloadCompleted ActivityEventType = "download_completed"
	ActivityEventTypeDownloadFailed    ActivityEventType = "download_failed"
	ActivityEventTypeDriftConfirmed    ActivityEventType = "drift_confirmed"
	ActivityEventTypeDriftDetected     ActivityEventType = "drift_detected"
	ActivityEventTypeGrabbed           ActivityEventType = "grabbed"
	ActivityEventTypeImportFailed      ActivityEventType = "import_failed"
	ActivityEventTypeImported          ActivityEventType = "imported"
)

Defines values for ActivityEventType.

func (ActivityEventType) Valid

func (e ActivityEventType) Valid() bool

Valid indicates whether the value is a known member of the ActivityEventType enum.

type ActivityLimit

type ActivityLimit = int

ActivityLimit defines model for ActivityLimit.

type ActivityList

type ActivityList struct {
	Events     []ActivityEvent `json:"events"`
	NextCursor *string         `json:"next_cursor,omitempty"`
}

ActivityList defines model for ActivityList.

type ActivityListJSONResponse

type ActivityListJSONResponse ActivityList

type ActivityMovieID

type ActivityMovieID = uint32

ActivityMovieID defines model for ActivityMovieID.

type ActivitySince

type ActivitySince = time.Time

ActivitySince defines model for ActivitySince.

type ActivityType

type ActivityType = []string

ActivityType defines model for ActivityType.

type AddMovie

type AddMovie = AddMovieRequest

AddMovie defines model for AddMovie.

type AddMovie201JSONResponse

type AddMovie201JSONResponse Movie

func (AddMovie201JSONResponse) VisitAddMovieResponse

func (response AddMovie201JSONResponse) VisitAddMovieResponse(w http.ResponseWriter) error

type AddMovie403JSONResponse

type AddMovie403JSONResponse struct{ ForbiddenJSONResponse }

func (AddMovie403JSONResponse) VisitAddMovieResponse

func (response AddMovie403JSONResponse) VisitAddMovieResponse(w http.ResponseWriter) error

type AddMovie409JSONResponse

type AddMovie409JSONResponse struct{ ConflictJSONResponse }

func (AddMovie409JSONResponse) VisitAddMovieResponse

func (response AddMovie409JSONResponse) VisitAddMovieResponse(w http.ResponseWriter) error

type AddMovie500JSONResponse

type AddMovie500JSONResponse struct{ InternalErrorJSONResponse }

func (AddMovie500JSONResponse) VisitAddMovieResponse

func (response AddMovie500JSONResponse) VisitAddMovieResponse(w http.ResponseWriter) error

type AddMovieJSONRequestBody

type AddMovieJSONRequestBody = AddMovieRequest

AddMovieJSONRequestBody defines body for AddMovie for application/json ContentType.

type AddMovieRequest

type AddMovieRequest struct {
	// QualityProfile Name of the quality profile (empty resolves to the default).
	QualityProfile *string `json:"quality_profile,omitempty"`
	TmdbId         uint32  `json:"tmdb_id"`
}

AddMovieRequest defines model for AddMovieRequest.

type AddMovieRequestObject

type AddMovieRequestObject struct {
	Body *AddMovieJSONRequestBody
}

type AddMovieResponseObject

type AddMovieResponseObject interface {
	VisitAddMovieResponse(w http.ResponseWriter) error
}

type AddSeries

type AddSeries = AddSeriesRequest

AddSeries defines model for AddSeries.

type AddSeries201JSONResponse

type AddSeries201JSONResponse struct{ SeriesCreatedJSONResponse }

func (AddSeries201JSONResponse) VisitAddSeriesResponse

func (response AddSeries201JSONResponse) VisitAddSeriesResponse(w http.ResponseWriter) error

type AddSeries403JSONResponse

type AddSeries403JSONResponse struct{ ForbiddenJSONResponse }

func (AddSeries403JSONResponse) VisitAddSeriesResponse

func (response AddSeries403JSONResponse) VisitAddSeriesResponse(w http.ResponseWriter) error

type AddSeries409JSONResponse

type AddSeries409JSONResponse struct{ ConflictJSONResponse }

func (AddSeries409JSONResponse) VisitAddSeriesResponse

func (response AddSeries409JSONResponse) VisitAddSeriesResponse(w http.ResponseWriter) error

type AddSeries500JSONResponse

type AddSeries500JSONResponse struct{ InternalErrorJSONResponse }

func (AddSeries500JSONResponse) VisitAddSeriesResponse

func (response AddSeries500JSONResponse) VisitAddSeriesResponse(w http.ResponseWriter) error

type AddSeriesJSONRequestBody

type AddSeriesJSONRequestBody = AddSeriesRequest

AddSeriesJSONRequestBody defines body for AddSeries for application/json ContentType.

type AddSeriesRequest

type AddSeriesRequest struct {
	// Preset One-shot monitoring preset applied to seasons/episodes.
	Preset *AddSeriesRequestPreset `json:"preset,omitempty"`

	// QualityProfile Name of the quality profile (empty resolves to the default).
	QualityProfile *string `json:"quality_profile,omitempty"`
	TvdbId         uint32  `json:"tvdb_id"`
}

AddSeriesRequest defines model for AddSeriesRequest.

type AddSeriesRequestObject

type AddSeriesRequestObject struct {
	Body *AddSeriesJSONRequestBody
}

type AddSeriesRequestPreset

type AddSeriesRequestPreset string

AddSeriesRequestPreset One-shot monitoring preset applied to seasons/episodes.

const (
	AddSeriesRequestPresetAll      AddSeriesRequestPreset = "all"
	AddSeriesRequestPresetExisting AddSeriesRequestPreset = "existing"
	AddSeriesRequestPresetFuture   AddSeriesRequestPreset = "future"
	AddSeriesRequestPresetMissing  AddSeriesRequestPreset = "missing"
	AddSeriesRequestPresetNone     AddSeriesRequestPreset = "none"
	AddSeriesRequestPresetPilot    AddSeriesRequestPreset = "pilot"
)

Defines values for AddSeriesRequestPreset.

func (AddSeriesRequestPreset) Valid

func (e AddSeriesRequestPreset) Valid() bool

Valid indicates whether the value is a known member of the AddSeriesRequestPreset enum.

type AddSeriesResponseObject

type AddSeriesResponseObject interface {
	VisitAddSeriesResponse(w http.ResponseWriter) error
}

type ApiKey

type ApiKey struct {
	CreatedAt  time.Time  `json:"created_at"`
	Id         uint32     `json:"id"`
	LastUsedAt *time.Time `json:"last_used_at,omitempty"`
	Name       string     `json:"name"`
}

ApiKey defines model for ApiKey.

type ApiKeyCreated

type ApiKeyCreated struct {
	CreatedAt  time.Time  `json:"created_at"`
	Id         uint32     `json:"id"`
	LastUsedAt *time.Time `json:"last_used_at,omitempty"`
	Name       string     `json:"name"`
	RawToken   string     `json:"raw_token"`
}

ApiKeyCreated defines model for ApiKeyCreated.

type ApiKeyID

type ApiKeyID = uint32

ApiKeyID defines model for ApiKeyID.

type ApproveRequest

type ApproveRequest = ApproveRequestRequest

ApproveRequest defines model for ApproveRequest.

type ApproveRequest200JSONResponse

type ApproveRequest200JSONResponse struct{ RequestDetailJSONResponse }

func (ApproveRequest200JSONResponse) VisitApproveRequestResponse

func (response ApproveRequest200JSONResponse) VisitApproveRequestResponse(w http.ResponseWriter) error

type ApproveRequest403JSONResponse

type ApproveRequest403JSONResponse struct{ ForbiddenJSONResponse }

func (ApproveRequest403JSONResponse) VisitApproveRequestResponse

func (response ApproveRequest403JSONResponse) VisitApproveRequestResponse(w http.ResponseWriter) error

type ApproveRequest404JSONResponse

type ApproveRequest404JSONResponse struct{ NotFoundJSONResponse }

func (ApproveRequest404JSONResponse) VisitApproveRequestResponse

func (response ApproveRequest404JSONResponse) VisitApproveRequestResponse(w http.ResponseWriter) error

type ApproveRequest500JSONResponse

type ApproveRequest500JSONResponse struct{ InternalErrorJSONResponse }

func (ApproveRequest500JSONResponse) VisitApproveRequestResponse

func (response ApproveRequest500JSONResponse) VisitApproveRequestResponse(w http.ResponseWriter) error

type ApproveRequestJSONRequestBody

type ApproveRequestJSONRequestBody = ApproveRequestRequest

ApproveRequestJSONRequestBody defines body for ApproveRequest for application/json ContentType.

type ApproveRequestRequest

type ApproveRequestRequest struct {
	// QualityProfile Profile name; empty or omitted uses the server default.
	QualityProfile *string `json:"quality_profile,omitempty"`
}

ApproveRequestRequest defines model for ApproveRequestRequest.

type ApproveRequestRequestObject

type ApproveRequestRequestObject struct {
	Id   ResourceID `json:"id"`
	Body *ApproveRequestJSONRequestBody
}

type ApproveRequestResponseObject

type ApproveRequestResponseObject interface {
	VisitApproveRequestResponse(w http.ResponseWriter) error
}

type AuthConfig

type AuthConfig = AuthConfigView

AuthConfig defines model for AuthConfig.

type AuthConfigJSONResponse

type AuthConfigJSONResponse AuthConfigView

type AuthConfigPatch

type AuthConfigPatch struct {
	OidcDefaultRole  *AuthConfigPatchOidcDefaultRole  `json:"oidc_default_role,omitempty"`
	RegistrationMode *AuthConfigPatchRegistrationMode `json:"registration_mode,omitempty"`

	// SessionTtl Go duration string (e.g. "168h", "30m").
	SessionTtl *string `json:"session_ttl,omitempty"`
}

AuthConfigPatch Only provided fields are applied.

type AuthConfigPatchOidcDefaultRole

type AuthConfigPatchOidcDefaultRole string

AuthConfigPatchOidcDefaultRole defines model for AuthConfigPatch.OidcDefaultRole.

const (
	AuthConfigPatchOidcDefaultRoleAdmin       AuthConfigPatchOidcDefaultRole = "admin"
	AuthConfigPatchOidcDefaultRoleMember      AuthConfigPatchOidcDefaultRole = "member"
	AuthConfigPatchOidcDefaultRoleRequestOnly AuthConfigPatchOidcDefaultRole = "request_only"
)

Defines values for AuthConfigPatchOidcDefaultRole.

func (AuthConfigPatchOidcDefaultRole) Valid

Valid indicates whether the value is a known member of the AuthConfigPatchOidcDefaultRole enum.

type AuthConfigPatchRegistrationMode

type AuthConfigPatchRegistrationMode string

AuthConfigPatchRegistrationMode defines model for AuthConfigPatch.RegistrationMode.

const (
	AuthConfigPatchRegistrationModeDisabled AuthConfigPatchRegistrationMode = "disabled"
	AuthConfigPatchRegistrationModeInvite   AuthConfigPatchRegistrationMode = "invite"
	AuthConfigPatchRegistrationModeOpen     AuthConfigPatchRegistrationMode = "open"
)

Defines values for AuthConfigPatchRegistrationMode.

func (AuthConfigPatchRegistrationMode) Valid

Valid indicates whether the value is a known member of the AuthConfigPatchRegistrationMode enum.

type AuthConfigView

type AuthConfigView struct {
	OidcDefaultRole  AuthConfigViewOidcDefaultRole  `json:"oidc_default_role"`
	RegistrationMode AuthConfigViewRegistrationMode `json:"registration_mode"`

	// SessionTtl Go duration string (e.g. "168h", "30m").
	SessionTtl string `json:"session_ttl"`
}

AuthConfigView defines model for AuthConfigView.

type AuthConfigViewOidcDefaultRole

type AuthConfigViewOidcDefaultRole string

AuthConfigViewOidcDefaultRole defines model for AuthConfigView.OidcDefaultRole.

const (
	AuthConfigViewOidcDefaultRoleAdmin       AuthConfigViewOidcDefaultRole = "admin"
	AuthConfigViewOidcDefaultRoleMember      AuthConfigViewOidcDefaultRole = "member"
	AuthConfigViewOidcDefaultRoleRequestOnly AuthConfigViewOidcDefaultRole = "request_only"
)

Defines values for AuthConfigViewOidcDefaultRole.

func (AuthConfigViewOidcDefaultRole) Valid

Valid indicates whether the value is a known member of the AuthConfigViewOidcDefaultRole enum.

type AuthConfigViewRegistrationMode

type AuthConfigViewRegistrationMode string

AuthConfigViewRegistrationMode defines model for AuthConfigView.RegistrationMode.

const (
	AuthConfigViewRegistrationModeDisabled AuthConfigViewRegistrationMode = "disabled"
	AuthConfigViewRegistrationModeInvite   AuthConfigViewRegistrationMode = "invite"
	AuthConfigViewRegistrationModeOpen     AuthConfigViewRegistrationMode = "open"
)

Defines values for AuthConfigViewRegistrationMode.

func (AuthConfigViewRegistrationMode) Valid

Valid indicates whether the value is a known member of the AuthConfigViewRegistrationMode enum.

type AuthMe200JSONResponse

type AuthMe200JSONResponse User

func (AuthMe200JSONResponse) VisitAuthMeResponse

func (response AuthMe200JSONResponse) VisitAuthMeResponse(w http.ResponseWriter) error

type AuthMe401JSONResponse

type AuthMe401JSONResponse struct{ UnauthorizedJSONResponse }

func (AuthMe401JSONResponse) VisitAuthMeResponse

func (response AuthMe401JSONResponse) VisitAuthMeResponse(w http.ResponseWriter) error

type AuthMeRequestObject

type AuthMeRequestObject struct {
}

type AuthMeResponseObject

type AuthMeResponseObject interface {
	VisitAuthMeResponse(w http.ResponseWriter) error
}

type BadRequest

type BadRequest = Error

BadRequest defines model for BadRequest.

type BadRequestJSONResponse

type BadRequestJSONResponse Error

type BrowseEpisodeReleases200JSONResponse

type BrowseEpisodeReleases200JSONResponse struct{ SearchResultsJSONResponse }

func (BrowseEpisodeReleases200JSONResponse) VisitBrowseEpisodeReleasesResponse

func (response BrowseEpisodeReleases200JSONResponse) VisitBrowseEpisodeReleasesResponse(w http.ResponseWriter) error

type BrowseEpisodeReleases404JSONResponse

type BrowseEpisodeReleases404JSONResponse struct{ NotFoundJSONResponse }

func (BrowseEpisodeReleases404JSONResponse) VisitBrowseEpisodeReleasesResponse

func (response BrowseEpisodeReleases404JSONResponse) VisitBrowseEpisodeReleasesResponse(w http.ResponseWriter) error

type BrowseEpisodeReleases500JSONResponse

type BrowseEpisodeReleases500JSONResponse struct{ InternalErrorJSONResponse }

func (BrowseEpisodeReleases500JSONResponse) VisitBrowseEpisodeReleasesResponse

func (response BrowseEpisodeReleases500JSONResponse) VisitBrowseEpisodeReleasesResponse(w http.ResponseWriter) error

type BrowseEpisodeReleasesRequestObject

type BrowseEpisodeReleasesRequestObject struct {
	Id        ResourceID `json:"id"`
	EpisodeId EpisodeID  `json:"episodeId"`
}

type BrowseEpisodeReleasesResponseObject

type BrowseEpisodeReleasesResponseObject interface {
	VisitBrowseEpisodeReleasesResponse(w http.ResponseWriter) error
}

type BrowseSeasonReleases200JSONResponse

type BrowseSeasonReleases200JSONResponse struct{ SearchResultsJSONResponse }

func (BrowseSeasonReleases200JSONResponse) VisitBrowseSeasonReleasesResponse

func (response BrowseSeasonReleases200JSONResponse) VisitBrowseSeasonReleasesResponse(w http.ResponseWriter) error

type BrowseSeasonReleases404JSONResponse

type BrowseSeasonReleases404JSONResponse struct{ NotFoundJSONResponse }

func (BrowseSeasonReleases404JSONResponse) VisitBrowseSeasonReleasesResponse

func (response BrowseSeasonReleases404JSONResponse) VisitBrowseSeasonReleasesResponse(w http.ResponseWriter) error

type BrowseSeasonReleases500JSONResponse

type BrowseSeasonReleases500JSONResponse struct{ InternalErrorJSONResponse }

func (BrowseSeasonReleases500JSONResponse) VisitBrowseSeasonReleasesResponse

func (response BrowseSeasonReleases500JSONResponse) VisitBrowseSeasonReleasesResponse(w http.ResponseWriter) error

type BrowseSeasonReleasesRequestObject

type BrowseSeasonReleasesRequestObject struct {
	Id     ResourceID   `json:"id"`
	Number SeasonNumber `json:"number"`
}

type BrowseSeasonReleasesResponseObject

type BrowseSeasonReleasesResponseObject interface {
	VisitBrowseSeasonReleasesResponse(w http.ResponseWriter) error
}

type BrowseSeriesReleases200JSONResponse

type BrowseSeriesReleases200JSONResponse struct{ SearchResultsJSONResponse }

func (BrowseSeriesReleases200JSONResponse) VisitBrowseSeriesReleasesResponse

func (response BrowseSeriesReleases200JSONResponse) VisitBrowseSeriesReleasesResponse(w http.ResponseWriter) error

type BrowseSeriesReleases404JSONResponse

type BrowseSeriesReleases404JSONResponse struct{ NotFoundJSONResponse }

func (BrowseSeriesReleases404JSONResponse) VisitBrowseSeriesReleasesResponse

func (response BrowseSeriesReleases404JSONResponse) VisitBrowseSeriesReleasesResponse(w http.ResponseWriter) error

type BrowseSeriesReleases500JSONResponse

type BrowseSeriesReleases500JSONResponse struct{ InternalErrorJSONResponse }

func (BrowseSeriesReleases500JSONResponse) VisitBrowseSeriesReleasesResponse

func (response BrowseSeriesReleases500JSONResponse) VisitBrowseSeriesReleasesResponse(w http.ResponseWriter) error

type BrowseSeriesReleasesRequestObject

type BrowseSeriesReleasesRequestObject struct {
	Id ResourceID `json:"id"`
}

type BrowseSeriesReleasesResponseObject

type BrowseSeriesReleasesResponseObject interface {
	VisitBrowseSeriesReleasesResponse(w http.ResponseWriter) error
}

type CalendarFrom

type CalendarFrom = time.Time

CalendarFrom defines model for CalendarFrom.

type CalendarTo

type CalendarTo = time.Time

CalendarTo defines model for CalendarTo.

type CancelImport204Response

type CancelImport204Response = ImportCancelledResponse

func (CancelImport204Response) VisitCancelImportResponse

func (response CancelImport204Response) VisitCancelImportResponse(w http.ResponseWriter) error

type CancelImport403JSONResponse

type CancelImport403JSONResponse struct{ ForbiddenJSONResponse }

func (CancelImport403JSONResponse) VisitCancelImportResponse

func (response CancelImport403JSONResponse) VisitCancelImportResponse(w http.ResponseWriter) error

type CancelImport404JSONResponse

type CancelImport404JSONResponse struct{ NotFoundJSONResponse }

func (CancelImport404JSONResponse) VisitCancelImportResponse

func (response CancelImport404JSONResponse) VisitCancelImportResponse(w http.ResponseWriter) error

type CancelImport422JSONResponse

type CancelImport422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (CancelImport422JSONResponse) VisitCancelImportResponse

func (response CancelImport422JSONResponse) VisitCancelImportResponse(w http.ResponseWriter) error

type CancelImportRequestObject

type CancelImportRequestObject struct {
	Id ResourceID `json:"id"`
}

type CancelImportResponseObject

type CancelImportResponseObject interface {
	VisitCancelImportResponse(w http.ResponseWriter) error
}

type CancelQueueItem204Response

type CancelQueueItem204Response = NoContentResponse

func (CancelQueueItem204Response) VisitCancelQueueItemResponse

func (response CancelQueueItem204Response) VisitCancelQueueItemResponse(w http.ResponseWriter) error

type CancelQueueItem403JSONResponse

type CancelQueueItem403JSONResponse struct{ ForbiddenJSONResponse }

func (CancelQueueItem403JSONResponse) VisitCancelQueueItemResponse

func (response CancelQueueItem403JSONResponse) VisitCancelQueueItemResponse(w http.ResponseWriter) error

type CancelQueueItem404JSONResponse

type CancelQueueItem404JSONResponse struct{ NotFoundJSONResponse }

func (CancelQueueItem404JSONResponse) VisitCancelQueueItemResponse

func (response CancelQueueItem404JSONResponse) VisitCancelQueueItemResponse(w http.ResponseWriter) error

type CancelQueueItem500JSONResponse

type CancelQueueItem500JSONResponse struct{ InternalErrorJSONResponse }

func (CancelQueueItem500JSONResponse) VisitCancelQueueItemResponse

func (response CancelQueueItem500JSONResponse) VisitCancelQueueItemResponse(w http.ResponseWriter) error

type CancelQueueItemRequestObject

type CancelQueueItemRequestObject struct {
	Id ResourceID `json:"id"`
}

type CancelQueueItemResponseObject

type CancelQueueItemResponseObject interface {
	VisitCancelQueueItemResponse(w http.ResponseWriter) error
}

type CastMember

type CastMember struct {
	Character *string `json:"character,omitempty"`
	Name      string  `json:"name"`

	// PersonUrl Link to the person's page on the source provider (TMDB for movies,
	// TVDB for series). Absent when the provider has no id for them.
	PersonUrl *string `json:"person_url,omitempty"`

	// ProfileUrl Absolute profile image URL, when available.
	ProfileUrl *string `json:"profile_url,omitempty"`

	// TmdbId TMDB person id; links to themoviedb.org/person/{id}.
	TmdbId *uint32 `json:"tmdb_id,omitempty"`
}

CastMember defines model for CastMember.

type ChangePassword

type ChangePassword = ChangePasswordRequest

ChangePassword defines model for ChangePassword.

type ChangePassword204Response

type ChangePassword204Response struct {
}

func (ChangePassword204Response) VisitChangePasswordResponse

func (response ChangePassword204Response) VisitChangePasswordResponse(w http.ResponseWriter) error

type ChangePassword401JSONResponse

type ChangePassword401JSONResponse struct{ UnauthorizedJSONResponse }

func (ChangePassword401JSONResponse) VisitChangePasswordResponse

func (response ChangePassword401JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error

type ChangePassword422JSONResponse

type ChangePassword422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (ChangePassword422JSONResponse) VisitChangePasswordResponse

func (response ChangePassword422JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error

type ChangePasswordJSONRequestBody

type ChangePasswordJSONRequestBody = ChangePasswordRequest

ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.

type ChangePasswordRequest

type ChangePasswordRequest struct {
	CurrentPassword string `json:"current_password"`
	NewPassword     string `json:"new_password"`
}

ChangePasswordRequest defines model for ChangePasswordRequest.

type ChangePasswordRequestObject

type ChangePasswordRequestObject struct {
	Body *ChangePasswordJSONRequestBody
}

type ChangePasswordResponseObject

type ChangePasswordResponseObject interface {
	VisitChangePasswordResponse(w http.ResponseWriter) error
}

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type ClearCompletedHistory200JSONResponse

type ClearCompletedHistory200JSONResponse struct {
	ClearCompletedResultJSONResponse
}

func (ClearCompletedHistory200JSONResponse) VisitClearCompletedHistoryResponse

func (response ClearCompletedHistory200JSONResponse) VisitClearCompletedHistoryResponse(w http.ResponseWriter) error

type ClearCompletedHistory403JSONResponse

type ClearCompletedHistory403JSONResponse struct{ ForbiddenJSONResponse }

func (ClearCompletedHistory403JSONResponse) VisitClearCompletedHistoryResponse

func (response ClearCompletedHistory403JSONResponse) VisitClearCompletedHistoryResponse(w http.ResponseWriter) error

type ClearCompletedHistoryRequestObject

type ClearCompletedHistoryRequestObject struct {
}

type ClearCompletedHistoryResponseObject

type ClearCompletedHistoryResponseObject interface {
	VisitClearCompletedHistoryResponse(w http.ResponseWriter) error
}

type ClearCompletedResult

type ClearCompletedResult struct {
	Deleted int `json:"deleted"`
}

ClearCompletedResult defines model for ClearCompletedResult.

type ClearCompletedResultJSONResponse

type ClearCompletedResultJSONResponse ClearCompletedResult

type CommitImport202JSONResponse

type CommitImport202JSONResponse struct{ ImportScanJSONResponse }

func (CommitImport202JSONResponse) VisitCommitImportResponse

func (response CommitImport202JSONResponse) VisitCommitImportResponse(w http.ResponseWriter) error

type CommitImport403JSONResponse

type CommitImport403JSONResponse struct{ ForbiddenJSONResponse }

func (CommitImport403JSONResponse) VisitCommitImportResponse

func (response CommitImport403JSONResponse) VisitCommitImportResponse(w http.ResponseWriter) error

type CommitImport404JSONResponse

type CommitImport404JSONResponse struct{ NotFoundJSONResponse }

func (CommitImport404JSONResponse) VisitCommitImportResponse

func (response CommitImport404JSONResponse) VisitCommitImportResponse(w http.ResponseWriter) error

type CommitImport422JSONResponse

type CommitImport422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (CommitImport422JSONResponse) VisitCommitImportResponse

func (response CommitImport422JSONResponse) VisitCommitImportResponse(w http.ResponseWriter) error

type CommitImportRequestObject

type CommitImportRequestObject struct {
	Id ResourceID `json:"id"`
}

type CommitImportResponseObject

type CommitImportResponseObject interface {
	VisitCommitImportResponse(w http.ResponseWriter) error
}

type Conflict

type Conflict = Error

Conflict defines model for Conflict.

type ConflictJSONResponse

type ConflictJSONResponse Error

type ConnectionTestOKResponse

type ConnectionTestOKResponse struct {
}

type CreateApiKey

type CreateApiKey = CreateApiKeyRequest

CreateApiKey defines model for CreateApiKey.

type CreateApiKeyRequest

type CreateApiKeyRequest struct {
	Name string `json:"name"`
}

CreateApiKeyRequest defines model for CreateApiKeyRequest.

type CreateDownloadClient

type CreateDownloadClient = DownloadClientCreate

CreateDownloadClient defines model for CreateDownloadClient.

type CreateDownloadClient201JSONResponse

type CreateDownloadClient201JSONResponse DownloadClient

func (CreateDownloadClient201JSONResponse) VisitCreateDownloadClientResponse

func (response CreateDownloadClient201JSONResponse) VisitCreateDownloadClientResponse(w http.ResponseWriter) error

type CreateDownloadClient403JSONResponse

type CreateDownloadClient403JSONResponse struct{ ForbiddenJSONResponse }

func (CreateDownloadClient403JSONResponse) VisitCreateDownloadClientResponse

func (response CreateDownloadClient403JSONResponse) VisitCreateDownloadClientResponse(w http.ResponseWriter) error

type CreateDownloadClient409JSONResponse

type CreateDownloadClient409JSONResponse struct{ ConflictJSONResponse }

func (CreateDownloadClient409JSONResponse) VisitCreateDownloadClientResponse

func (response CreateDownloadClient409JSONResponse) VisitCreateDownloadClientResponse(w http.ResponseWriter) error

type CreateDownloadClient422JSONResponse

type CreateDownloadClient422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (CreateDownloadClient422JSONResponse) VisitCreateDownloadClientResponse

func (response CreateDownloadClient422JSONResponse) VisitCreateDownloadClientResponse(w http.ResponseWriter) error

type CreateDownloadClient500JSONResponse

type CreateDownloadClient500JSONResponse struct{ InternalErrorJSONResponse }

func (CreateDownloadClient500JSONResponse) VisitCreateDownloadClientResponse

func (response CreateDownloadClient500JSONResponse) VisitCreateDownloadClientResponse(w http.ResponseWriter) error

type CreateDownloadClientJSONRequestBody

type CreateDownloadClientJSONRequestBody = DownloadClientCreate

CreateDownloadClientJSONRequestBody defines body for CreateDownloadClient for application/json ContentType.

type CreateDownloadClientRequestObject

type CreateDownloadClientRequestObject struct {
	Body *CreateDownloadClientJSONRequestBody
}

type CreateDownloadClientResponseObject

type CreateDownloadClientResponseObject interface {
	VisitCreateDownloadClientResponse(w http.ResponseWriter) error
}

type CreateIndexer

type CreateIndexer = IndexerCreate

CreateIndexer defines model for CreateIndexer.

type CreateIndexer201JSONResponse

type CreateIndexer201JSONResponse Indexer

func (CreateIndexer201JSONResponse) VisitCreateIndexerResponse

func (response CreateIndexer201JSONResponse) VisitCreateIndexerResponse(w http.ResponseWriter) error

type CreateIndexer403JSONResponse

type CreateIndexer403JSONResponse struct{ ForbiddenJSONResponse }

func (CreateIndexer403JSONResponse) VisitCreateIndexerResponse

func (response CreateIndexer403JSONResponse) VisitCreateIndexerResponse(w http.ResponseWriter) error

type CreateIndexer409JSONResponse

type CreateIndexer409JSONResponse struct{ ConflictJSONResponse }

func (CreateIndexer409JSONResponse) VisitCreateIndexerResponse

func (response CreateIndexer409JSONResponse) VisitCreateIndexerResponse(w http.ResponseWriter) error

type CreateIndexer422JSONResponse

type CreateIndexer422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (CreateIndexer422JSONResponse) VisitCreateIndexerResponse

func (response CreateIndexer422JSONResponse) VisitCreateIndexerResponse(w http.ResponseWriter) error

type CreateIndexer500JSONResponse

type CreateIndexer500JSONResponse struct{ InternalErrorJSONResponse }

func (CreateIndexer500JSONResponse) VisitCreateIndexerResponse

func (response CreateIndexer500JSONResponse) VisitCreateIndexerResponse(w http.ResponseWriter) error

type CreateIndexerJSONRequestBody

type CreateIndexerJSONRequestBody = IndexerCreate

CreateIndexerJSONRequestBody defines body for CreateIndexer for application/json ContentType.

type CreateIndexerRequestObject

type CreateIndexerRequestObject struct {
	Body *CreateIndexerJSONRequestBody
}

type CreateIndexerResponseObject

type CreateIndexerResponseObject interface {
	VisitCreateIndexerResponse(w http.ResponseWriter) error
}

type CreateInvite

type CreateInvite = CreateInviteRequest

CreateInvite defines model for CreateInvite.

type CreateInvite201JSONResponse

type CreateInvite201JSONResponse InviteCreated

func (CreateInvite201JSONResponse) VisitCreateInviteResponse

func (response CreateInvite201JSONResponse) VisitCreateInviteResponse(w http.ResponseWriter) error

type CreateInvite403JSONResponse

type CreateInvite403JSONResponse struct{ ForbiddenJSONResponse }

func (CreateInvite403JSONResponse) VisitCreateInviteResponse

func (response CreateInvite403JSONResponse) VisitCreateInviteResponse(w http.ResponseWriter) error

type CreateInviteJSONRequestBody

type CreateInviteJSONRequestBody = CreateInviteRequest

CreateInviteJSONRequestBody defines body for CreateInvite for application/json ContentType.

type CreateInviteRequest

type CreateInviteRequest struct {
	Email openapi_types.Email     `json:"email"`
	Role  CreateInviteRequestRole `json:"role"`

	// Ttl Go duration string (e.g. 168h, 30m, 1h30m)
	Ttl *string `json:"ttl,omitempty"`
}

CreateInviteRequest defines model for CreateInviteRequest.

type CreateInviteRequestObject

type CreateInviteRequestObject struct {
	Body *CreateInviteJSONRequestBody
}

type CreateInviteRequestRole

type CreateInviteRequestRole string

CreateInviteRequestRole defines model for CreateInviteRequest.Role.

const (
	CreateInviteRequestRoleAdmin       CreateInviteRequestRole = "admin"
	CreateInviteRequestRoleMember      CreateInviteRequestRole = "member"
	CreateInviteRequestRoleRequestOnly CreateInviteRequestRole = "request_only"
)

Defines values for CreateInviteRequestRole.

func (CreateInviteRequestRole) Valid

func (e CreateInviteRequestRole) Valid() bool

Valid indicates whether the value is a known member of the CreateInviteRequestRole enum.

type CreateInviteResponseObject

type CreateInviteResponseObject interface {
	VisitCreateInviteResponse(w http.ResponseWriter) error
}

type CreateMediaServer

type CreateMediaServer = MediaServerCreate

CreateMediaServer defines model for CreateMediaServer.

type CreateMediaServer201JSONResponse

type CreateMediaServer201JSONResponse struct{ MediaServerCreatedJSONResponse }

func (CreateMediaServer201JSONResponse) VisitCreateMediaServerResponse

func (response CreateMediaServer201JSONResponse) VisitCreateMediaServerResponse(w http.ResponseWriter) error

type CreateMediaServer403JSONResponse

type CreateMediaServer403JSONResponse struct{ ForbiddenJSONResponse }

func (CreateMediaServer403JSONResponse) VisitCreateMediaServerResponse

func (response CreateMediaServer403JSONResponse) VisitCreateMediaServerResponse(w http.ResponseWriter) error

type CreateMediaServer409JSONResponse

type CreateMediaServer409JSONResponse struct{ ConflictJSONResponse }

func (CreateMediaServer409JSONResponse) VisitCreateMediaServerResponse

func (response CreateMediaServer409JSONResponse) VisitCreateMediaServerResponse(w http.ResponseWriter) error

type CreateMediaServer422JSONResponse

type CreateMediaServer422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (CreateMediaServer422JSONResponse) VisitCreateMediaServerResponse

func (response CreateMediaServer422JSONResponse) VisitCreateMediaServerResponse(w http.ResponseWriter) error

type CreateMediaServer500JSONResponse

type CreateMediaServer500JSONResponse struct{ InternalErrorJSONResponse }

func (CreateMediaServer500JSONResponse) VisitCreateMediaServerResponse

func (response CreateMediaServer500JSONResponse) VisitCreateMediaServerResponse(w http.ResponseWriter) error

type CreateMediaServerJSONRequestBody

type CreateMediaServerJSONRequestBody = MediaServerCreate

CreateMediaServerJSONRequestBody defines body for CreateMediaServer for application/json ContentType.

type CreateMediaServerRequestObject

type CreateMediaServerRequestObject struct {
	Body *CreateMediaServerJSONRequestBody
}

type CreateMediaServerResponseObject

type CreateMediaServerResponseObject interface {
	VisitCreateMediaServerResponse(w http.ResponseWriter) error
}

type CreateMyApiKey201JSONResponse

type CreateMyApiKey201JSONResponse ApiKeyCreated

func (CreateMyApiKey201JSONResponse) VisitCreateMyApiKeyResponse

func (response CreateMyApiKey201JSONResponse) VisitCreateMyApiKeyResponse(w http.ResponseWriter) error

type CreateMyApiKey401JSONResponse

type CreateMyApiKey401JSONResponse struct{ UnauthorizedJSONResponse }

func (CreateMyApiKey401JSONResponse) VisitCreateMyApiKeyResponse

func (response CreateMyApiKey401JSONResponse) VisitCreateMyApiKeyResponse(w http.ResponseWriter) error

type CreateMyApiKeyJSONRequestBody

type CreateMyApiKeyJSONRequestBody = CreateApiKeyRequest

CreateMyApiKeyJSONRequestBody defines body for CreateMyApiKey for application/json ContentType.

type CreateMyApiKeyRequestObject

type CreateMyApiKeyRequestObject struct {
	Body *CreateMyApiKeyJSONRequestBody
}

type CreateMyApiKeyResponseObject

type CreateMyApiKeyResponseObject interface {
	VisitCreateMyApiKeyResponse(w http.ResponseWriter) error
}

type CreateOIDCProvider

type CreateOIDCProvider = OIDCProviderCreate

CreateOIDCProvider defines model for CreateOIDCProvider.

type CreateOIDCProvider201JSONResponse

type CreateOIDCProvider201JSONResponse struct {
	OIDCProviderCreatedJSONResponse
}

func (CreateOIDCProvider201JSONResponse) VisitCreateOIDCProviderResponse

func (response CreateOIDCProvider201JSONResponse) VisitCreateOIDCProviderResponse(w http.ResponseWriter) error

type CreateOIDCProvider403JSONResponse

type CreateOIDCProvider403JSONResponse struct{ ForbiddenJSONResponse }

func (CreateOIDCProvider403JSONResponse) VisitCreateOIDCProviderResponse

func (response CreateOIDCProvider403JSONResponse) VisitCreateOIDCProviderResponse(w http.ResponseWriter) error

type CreateOIDCProvider409JSONResponse

type CreateOIDCProvider409JSONResponse struct{ ConflictJSONResponse }

func (CreateOIDCProvider409JSONResponse) VisitCreateOIDCProviderResponse

func (response CreateOIDCProvider409JSONResponse) VisitCreateOIDCProviderResponse(w http.ResponseWriter) error

type CreateOIDCProvider422JSONResponse

type CreateOIDCProvider422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (CreateOIDCProvider422JSONResponse) VisitCreateOIDCProviderResponse

func (response CreateOIDCProvider422JSONResponse) VisitCreateOIDCProviderResponse(w http.ResponseWriter) error

type CreateOIDCProviderJSONRequestBody

type CreateOIDCProviderJSONRequestBody = OIDCProviderCreate

CreateOIDCProviderJSONRequestBody defines body for CreateOIDCProvider for application/json ContentType.

type CreateOIDCProviderRequestObject

type CreateOIDCProviderRequestObject struct {
	Body *CreateOIDCProviderJSONRequestBody
}

type CreateOIDCProviderResponseObject

type CreateOIDCProviderResponseObject interface {
	VisitCreateOIDCProviderResponse(w http.ResponseWriter) error
}

type CreateQualityProfile

type CreateQualityProfile = QualityProfileCreate

CreateQualityProfile defines model for CreateQualityProfile.

type CreateQualityProfile201JSONResponse

type CreateQualityProfile201JSONResponse QualityProfile

func (CreateQualityProfile201JSONResponse) VisitCreateQualityProfileResponse

func (response CreateQualityProfile201JSONResponse) VisitCreateQualityProfileResponse(w http.ResponseWriter) error

type CreateQualityProfile403JSONResponse

type CreateQualityProfile403JSONResponse struct{ ForbiddenJSONResponse }

func (CreateQualityProfile403JSONResponse) VisitCreateQualityProfileResponse

func (response CreateQualityProfile403JSONResponse) VisitCreateQualityProfileResponse(w http.ResponseWriter) error

type CreateQualityProfile409JSONResponse

type CreateQualityProfile409JSONResponse struct{ ConflictJSONResponse }

func (CreateQualityProfile409JSONResponse) VisitCreateQualityProfileResponse

func (response CreateQualityProfile409JSONResponse) VisitCreateQualityProfileResponse(w http.ResponseWriter) error

type CreateQualityProfile422JSONResponse

type CreateQualityProfile422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (CreateQualityProfile422JSONResponse) VisitCreateQualityProfileResponse

func (response CreateQualityProfile422JSONResponse) VisitCreateQualityProfileResponse(w http.ResponseWriter) error

type CreateQualityProfile500JSONResponse

type CreateQualityProfile500JSONResponse struct{ InternalErrorJSONResponse }

func (CreateQualityProfile500JSONResponse) VisitCreateQualityProfileResponse

func (response CreateQualityProfile500JSONResponse) VisitCreateQualityProfileResponse(w http.ResponseWriter) error

type CreateQualityProfileJSONRequestBody

type CreateQualityProfileJSONRequestBody = QualityProfileCreate

CreateQualityProfileJSONRequestBody defines body for CreateQualityProfile for application/json ContentType.

type CreateQualityProfileRequestObject

type CreateQualityProfileRequestObject struct {
	Body *CreateQualityProfileJSONRequestBody
}

type CreateQualityProfileResponseObject

type CreateQualityProfileResponseObject interface {
	VisitCreateQualityProfileResponse(w http.ResponseWriter) error
}

type CreateRequest

type CreateRequest = CreateRequestRequest

CreateRequest defines model for CreateRequest.

type CreateRequest201JSONResponse

type CreateRequest201JSONResponse struct{ RequestCreatedJSONResponse }

func (CreateRequest201JSONResponse) VisitCreateRequestResponse

func (response CreateRequest201JSONResponse) VisitCreateRequestResponse(w http.ResponseWriter) error

type CreateRequest401JSONResponse

type CreateRequest401JSONResponse struct{ UnauthorizedJSONResponse }

func (CreateRequest401JSONResponse) VisitCreateRequestResponse

func (response CreateRequest401JSONResponse) VisitCreateRequestResponse(w http.ResponseWriter) error

type CreateRequest409JSONResponse

type CreateRequest409JSONResponse struct{ ConflictJSONResponse }

func (CreateRequest409JSONResponse) VisitCreateRequestResponse

func (response CreateRequest409JSONResponse) VisitCreateRequestResponse(w http.ResponseWriter) error

type CreateRequest500JSONResponse

type CreateRequest500JSONResponse struct{ InternalErrorJSONResponse }

func (CreateRequest500JSONResponse) VisitCreateRequestResponse

func (response CreateRequest500JSONResponse) VisitCreateRequestResponse(w http.ResponseWriter) error

type CreateRequestJSONRequestBody

type CreateRequestJSONRequestBody = CreateRequestRequest

CreateRequestJSONRequestBody defines body for CreateRequest for application/json ContentType.

type CreateRequestRequest

type CreateRequestRequest struct {
	MediaId   uint32                        `json:"media_id"`
	MediaType CreateRequestRequestMediaType `json:"media_type"`
	Title     string                        `json:"title"`
}

CreateRequestRequest defines model for CreateRequestRequest.

type CreateRequestRequestMediaType

type CreateRequestRequestMediaType string

CreateRequestRequestMediaType defines model for CreateRequestRequest.MediaType.

const (
	CreateRequestRequestMediaTypeMovie  CreateRequestRequestMediaType = "movie"
	CreateRequestRequestMediaTypeTvshow CreateRequestRequestMediaType = "tvshow"
)

Defines values for CreateRequestRequestMediaType.

func (CreateRequestRequestMediaType) Valid

Valid indicates whether the value is a known member of the CreateRequestRequestMediaType enum.

type CreateRequestRequestObject

type CreateRequestRequestObject struct {
	Body *CreateRequestJSONRequestBody
}

type CreateRequestResponseObject

type CreateRequestResponseObject interface {
	VisitCreateRequestResponse(w http.ResponseWriter) error
}

type CreateUser201JSONResponse

type CreateUser201JSONResponse struct{ UserCreatedJSONResponse }

func (CreateUser201JSONResponse) VisitCreateUserResponse

func (response CreateUser201JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser403JSONResponse

type CreateUser403JSONResponse struct{ ForbiddenJSONResponse }

func (CreateUser403JSONResponse) VisitCreateUserResponse

func (response CreateUser403JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser409JSONResponse

type CreateUser409JSONResponse struct{ ConflictJSONResponse }

func (CreateUser409JSONResponse) VisitCreateUserResponse

func (response CreateUser409JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser422JSONResponse

type CreateUser422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (CreateUser422JSONResponse) VisitCreateUserResponse

func (response CreateUser422JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUserJSONRequestBody

type CreateUserJSONRequestBody = CreateUserRequest

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type CreateUserRequest

type CreateUserRequest struct {
	DisplayName *string             `json:"display_name,omitempty"`
	Email       openapi_types.Email `json:"email"`

	// Password Initial password. Must meet the local password policy.
	Password string                `json:"password"`
	Role     CreateUserRequestRole `json:"role"`
}

CreateUserRequest defines model for CreateUserRequest.

type CreateUserRequestObject

type CreateUserRequestObject struct {
	Body *CreateUserJSONRequestBody
}

type CreateUserRequestRole

type CreateUserRequestRole string

CreateUserRequestRole defines model for CreateUserRequest.Role.

const (
	CreateUserRequestRoleAdmin       CreateUserRequestRole = "admin"
	CreateUserRequestRoleMember      CreateUserRequestRole = "member"
	CreateUserRequestRoleRequestOnly CreateUserRequestRole = "request_only"
)

Defines values for CreateUserRequestRole.

func (CreateUserRequestRole) Valid

func (e CreateUserRequestRole) Valid() bool

Valid indicates whether the value is a known member of the CreateUserRequestRole enum.

type CreateUserResponseObject

type CreateUserResponseObject interface {
	VisitCreateUserResponse(w http.ResponseWriter) error
}

type DeleteDownloadClient204Response

type DeleteDownloadClient204Response struct {
}

func (DeleteDownloadClient204Response) VisitDeleteDownloadClientResponse

func (response DeleteDownloadClient204Response) VisitDeleteDownloadClientResponse(w http.ResponseWriter) error

type DeleteDownloadClient403JSONResponse

type DeleteDownloadClient403JSONResponse struct{ ForbiddenJSONResponse }

func (DeleteDownloadClient403JSONResponse) VisitDeleteDownloadClientResponse

func (response DeleteDownloadClient403JSONResponse) VisitDeleteDownloadClientResponse(w http.ResponseWriter) error

type DeleteDownloadClient404JSONResponse

type DeleteDownloadClient404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteDownloadClient404JSONResponse) VisitDeleteDownloadClientResponse

func (response DeleteDownloadClient404JSONResponse) VisitDeleteDownloadClientResponse(w http.ResponseWriter) error

type DeleteDownloadClient500JSONResponse

type DeleteDownloadClient500JSONResponse struct{ InternalErrorJSONResponse }

func (DeleteDownloadClient500JSONResponse) VisitDeleteDownloadClientResponse

func (response DeleteDownloadClient500JSONResponse) VisitDeleteDownloadClientResponse(w http.ResponseWriter) error

type DeleteDownloadClientRequestObject

type DeleteDownloadClientRequestObject struct {
	Name ResourceName `json:"name"`
}

type DeleteDownloadClientResponseObject

type DeleteDownloadClientResponseObject interface {
	VisitDeleteDownloadClientResponse(w http.ResponseWriter) error
}

type DeleteEpisodeFile204Response

type DeleteEpisodeFile204Response = FileDeletedResponse

func (DeleteEpisodeFile204Response) VisitDeleteEpisodeFileResponse

func (response DeleteEpisodeFile204Response) VisitDeleteEpisodeFileResponse(w http.ResponseWriter) error

type DeleteEpisodeFile404JSONResponse

type DeleteEpisodeFile404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteEpisodeFile404JSONResponse) VisitDeleteEpisodeFileResponse

func (response DeleteEpisodeFile404JSONResponse) VisitDeleteEpisodeFileResponse(w http.ResponseWriter) error

type DeleteEpisodeFile500JSONResponse

type DeleteEpisodeFile500JSONResponse struct{ InternalErrorJSONResponse }

func (DeleteEpisodeFile500JSONResponse) VisitDeleteEpisodeFileResponse

func (response DeleteEpisodeFile500JSONResponse) VisitDeleteEpisodeFileResponse(w http.ResponseWriter) error

type DeleteEpisodeFileJSONRequestBody

type DeleteEpisodeFileJSONRequestBody = DeleteFileRequest

DeleteEpisodeFileJSONRequestBody defines body for DeleteEpisodeFile for application/json ContentType.

type DeleteEpisodeFileRequestObject

type DeleteEpisodeFileRequestObject struct {
	Id        ResourceID `json:"id"`
	EpisodeId EpisodeID  `json:"episodeId"`
	Body      *DeleteEpisodeFileJSONRequestBody
}

type DeleteEpisodeFileResponseObject

type DeleteEpisodeFileResponseObject interface {
	VisitDeleteEpisodeFileResponse(w http.ResponseWriter) error
}

type DeleteFile

type DeleteFile = DeleteFileRequest

DeleteFile defines model for DeleteFile.

type DeleteFileRequest

type DeleteFileRequest struct {
	// RemoveTorrent When true, also remove the source torrent from its download
	// client (best-effort).
	RemoveTorrent *bool `json:"remove_torrent,omitempty"`
}

DeleteFileRequest defines model for DeleteFileRequest.

type DeleteHistoryItem204Response

type DeleteHistoryItem204Response = NoContentResponse

func (DeleteHistoryItem204Response) VisitDeleteHistoryItemResponse

func (response DeleteHistoryItem204Response) VisitDeleteHistoryItemResponse(w http.ResponseWriter) error

type DeleteHistoryItem403JSONResponse

type DeleteHistoryItem403JSONResponse struct{ ForbiddenJSONResponse }

func (DeleteHistoryItem403JSONResponse) VisitDeleteHistoryItemResponse

func (response DeleteHistoryItem403JSONResponse) VisitDeleteHistoryItemResponse(w http.ResponseWriter) error

type DeleteHistoryItem404JSONResponse

type DeleteHistoryItem404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteHistoryItem404JSONResponse) VisitDeleteHistoryItemResponse

func (response DeleteHistoryItem404JSONResponse) VisitDeleteHistoryItemResponse(w http.ResponseWriter) error

type DeleteHistoryItem500JSONResponse

type DeleteHistoryItem500JSONResponse struct{ InternalErrorJSONResponse }

func (DeleteHistoryItem500JSONResponse) VisitDeleteHistoryItemResponse

func (response DeleteHistoryItem500JSONResponse) VisitDeleteHistoryItemResponse(w http.ResponseWriter) error

type DeleteHistoryItemRequestObject

type DeleteHistoryItemRequestObject struct {
	Id ResourceID `json:"id"`
}

type DeleteHistoryItemResponseObject

type DeleteHistoryItemResponseObject interface {
	VisitDeleteHistoryItemResponse(w http.ResponseWriter) error
}

type DeleteImport204Response

type DeleteImport204Response = ImportDeletedResponse

func (DeleteImport204Response) VisitDeleteImportResponse

func (response DeleteImport204Response) VisitDeleteImportResponse(w http.ResponseWriter) error

type DeleteImport403JSONResponse

type DeleteImport403JSONResponse struct{ ForbiddenJSONResponse }

func (DeleteImport403JSONResponse) VisitDeleteImportResponse

func (response DeleteImport403JSONResponse) VisitDeleteImportResponse(w http.ResponseWriter) error

type DeleteImport404JSONResponse

type DeleteImport404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteImport404JSONResponse) VisitDeleteImportResponse

func (response DeleteImport404JSONResponse) VisitDeleteImportResponse(w http.ResponseWriter) error

type DeleteImport422JSONResponse

type DeleteImport422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (DeleteImport422JSONResponse) VisitDeleteImportResponse

func (response DeleteImport422JSONResponse) VisitDeleteImportResponse(w http.ResponseWriter) error

type DeleteImportRequestObject

type DeleteImportRequestObject struct {
	Id ResourceID `json:"id"`
}

type DeleteImportResponseObject

type DeleteImportResponseObject interface {
	VisitDeleteImportResponse(w http.ResponseWriter) error
}

type DeleteIndexer204Response

type DeleteIndexer204Response struct {
}

func (DeleteIndexer204Response) VisitDeleteIndexerResponse

func (response DeleteIndexer204Response) VisitDeleteIndexerResponse(w http.ResponseWriter) error

type DeleteIndexer403JSONResponse

type DeleteIndexer403JSONResponse struct{ ForbiddenJSONResponse }

func (DeleteIndexer403JSONResponse) VisitDeleteIndexerResponse

func (response DeleteIndexer403JSONResponse) VisitDeleteIndexerResponse(w http.ResponseWriter) error

type DeleteIndexer404JSONResponse

type DeleteIndexer404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteIndexer404JSONResponse) VisitDeleteIndexerResponse

func (response DeleteIndexer404JSONResponse) VisitDeleteIndexerResponse(w http.ResponseWriter) error

type DeleteIndexer500JSONResponse

type DeleteIndexer500JSONResponse struct{ InternalErrorJSONResponse }

func (DeleteIndexer500JSONResponse) VisitDeleteIndexerResponse

func (response DeleteIndexer500JSONResponse) VisitDeleteIndexerResponse(w http.ResponseWriter) error

type DeleteIndexerRequestObject

type DeleteIndexerRequestObject struct {
	Name ResourceName `json:"name"`
}

type DeleteIndexerResponseObject

type DeleteIndexerResponseObject interface {
	VisitDeleteIndexerResponse(w http.ResponseWriter) error
}

type DeleteMediaServer204Response

type DeleteMediaServer204Response = MediaServerDeletedResponse

func (DeleteMediaServer204Response) VisitDeleteMediaServerResponse

func (response DeleteMediaServer204Response) VisitDeleteMediaServerResponse(w http.ResponseWriter) error

type DeleteMediaServer403JSONResponse

type DeleteMediaServer403JSONResponse struct{ ForbiddenJSONResponse }

func (DeleteMediaServer403JSONResponse) VisitDeleteMediaServerResponse

func (response DeleteMediaServer403JSONResponse) VisitDeleteMediaServerResponse(w http.ResponseWriter) error

type DeleteMediaServer404JSONResponse

type DeleteMediaServer404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteMediaServer404JSONResponse) VisitDeleteMediaServerResponse

func (response DeleteMediaServer404JSONResponse) VisitDeleteMediaServerResponse(w http.ResponseWriter) error

type DeleteMediaServer500JSONResponse

type DeleteMediaServer500JSONResponse struct{ InternalErrorJSONResponse }

func (DeleteMediaServer500JSONResponse) VisitDeleteMediaServerResponse

func (response DeleteMediaServer500JSONResponse) VisitDeleteMediaServerResponse(w http.ResponseWriter) error

type DeleteMediaServerRequestObject

type DeleteMediaServerRequestObject struct {
	Name ResourceName `json:"name"`
}

type DeleteMediaServerResponseObject

type DeleteMediaServerResponseObject interface {
	VisitDeleteMediaServerResponse(w http.ResponseWriter) error
}

type DeleteMovie204Response

type DeleteMovie204Response struct {
}

func (DeleteMovie204Response) VisitDeleteMovieResponse

func (response DeleteMovie204Response) VisitDeleteMovieResponse(w http.ResponseWriter) error

type DeleteMovie404JSONResponse

type DeleteMovie404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteMovie404JSONResponse) VisitDeleteMovieResponse

func (response DeleteMovie404JSONResponse) VisitDeleteMovieResponse(w http.ResponseWriter) error

type DeleteMovie500JSONResponse

type DeleteMovie500JSONResponse struct{ InternalErrorJSONResponse }

func (DeleteMovie500JSONResponse) VisitDeleteMovieResponse

func (response DeleteMovie500JSONResponse) VisitDeleteMovieResponse(w http.ResponseWriter) error

type DeleteMovieFile204Response

type DeleteMovieFile204Response = FileDeletedResponse

func (DeleteMovieFile204Response) VisitDeleteMovieFileResponse

func (response DeleteMovieFile204Response) VisitDeleteMovieFileResponse(w http.ResponseWriter) error

type DeleteMovieFile404JSONResponse

type DeleteMovieFile404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteMovieFile404JSONResponse) VisitDeleteMovieFileResponse

func (response DeleteMovieFile404JSONResponse) VisitDeleteMovieFileResponse(w http.ResponseWriter) error

type DeleteMovieFile500JSONResponse

type DeleteMovieFile500JSONResponse struct{ InternalErrorJSONResponse }

func (DeleteMovieFile500JSONResponse) VisitDeleteMovieFileResponse

func (response DeleteMovieFile500JSONResponse) VisitDeleteMovieFileResponse(w http.ResponseWriter) error

type DeleteMovieFileJSONRequestBody

type DeleteMovieFileJSONRequestBody = DeleteFileRequest

DeleteMovieFileJSONRequestBody defines body for DeleteMovieFile for application/json ContentType.

type DeleteMovieFileRequestObject

type DeleteMovieFileRequestObject struct {
	Id     ResourceID `json:"id"`
	FileId FileID     `json:"fileId"`
	Body   *DeleteMovieFileJSONRequestBody
}

type DeleteMovieFileResponseObject

type DeleteMovieFileResponseObject interface {
	VisitDeleteMovieFileResponse(w http.ResponseWriter) error
}

type DeleteMovieFiles

type DeleteMovieFiles = bool

DeleteMovieFiles defines model for DeleteMovieFiles.

type DeleteMovieParams

type DeleteMovieParams struct {
	// DeleteFiles When true, delete the attached media_files from disk too.
	DeleteFiles *DeleteMovieFiles `form:"delete_files,omitempty" json:"delete_files,omitempty"`
}

DeleteMovieParams defines parameters for DeleteMovie.

type DeleteMovieRequestObject

type DeleteMovieRequestObject struct {
	Id     ResourceID `json:"id"`
	Params DeleteMovieParams
}

type DeleteMovieResponseObject

type DeleteMovieResponseObject interface {
	VisitDeleteMovieResponse(w http.ResponseWriter) error
}

type DeleteMyApiKey204Response

type DeleteMyApiKey204Response struct {
}

func (DeleteMyApiKey204Response) VisitDeleteMyApiKeyResponse

func (response DeleteMyApiKey204Response) VisitDeleteMyApiKeyResponse(w http.ResponseWriter) error

type DeleteMyApiKey401JSONResponse

type DeleteMyApiKey401JSONResponse struct{ UnauthorizedJSONResponse }

func (DeleteMyApiKey401JSONResponse) VisitDeleteMyApiKeyResponse

func (response DeleteMyApiKey401JSONResponse) VisitDeleteMyApiKeyResponse(w http.ResponseWriter) error

type DeleteMyApiKey404JSONResponse

type DeleteMyApiKey404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteMyApiKey404JSONResponse) VisitDeleteMyApiKeyResponse

func (response DeleteMyApiKey404JSONResponse) VisitDeleteMyApiKeyResponse(w http.ResponseWriter) error

type DeleteMyApiKeyRequestObject

type DeleteMyApiKeyRequestObject struct {
	Id ResourceID `json:"id"`
}

type DeleteMyApiKeyResponseObject

type DeleteMyApiKeyResponseObject interface {
	VisitDeleteMyApiKeyResponse(w http.ResponseWriter) error
}

type DeleteMySession204Response

type DeleteMySession204Response struct {
}

func (DeleteMySession204Response) VisitDeleteMySessionResponse

func (response DeleteMySession204Response) VisitDeleteMySessionResponse(w http.ResponseWriter) error

type DeleteMySession401JSONResponse

type DeleteMySession401JSONResponse struct{ UnauthorizedJSONResponse }

func (DeleteMySession401JSONResponse) VisitDeleteMySessionResponse

func (response DeleteMySession401JSONResponse) VisitDeleteMySessionResponse(w http.ResponseWriter) error

type DeleteMySession404JSONResponse

type DeleteMySession404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteMySession404JSONResponse) VisitDeleteMySessionResponse

func (response DeleteMySession404JSONResponse) VisitDeleteMySessionResponse(w http.ResponseWriter) error

type DeleteMySessionRequestObject

type DeleteMySessionRequestObject struct {
	Id ResourceID `json:"id"`
}

type DeleteMySessionResponseObject

type DeleteMySessionResponseObject interface {
	VisitDeleteMySessionResponse(w http.ResponseWriter) error
}

type DeleteOIDCProvider204Response

type DeleteOIDCProvider204Response struct {
}

func (DeleteOIDCProvider204Response) VisitDeleteOIDCProviderResponse

func (response DeleteOIDCProvider204Response) VisitDeleteOIDCProviderResponse(w http.ResponseWriter) error

type DeleteOIDCProvider403JSONResponse

type DeleteOIDCProvider403JSONResponse struct{ ForbiddenJSONResponse }

func (DeleteOIDCProvider403JSONResponse) VisitDeleteOIDCProviderResponse

func (response DeleteOIDCProvider403JSONResponse) VisitDeleteOIDCProviderResponse(w http.ResponseWriter) error

type DeleteOIDCProvider404JSONResponse

type DeleteOIDCProvider404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteOIDCProvider404JSONResponse) VisitDeleteOIDCProviderResponse

func (response DeleteOIDCProvider404JSONResponse) VisitDeleteOIDCProviderResponse(w http.ResponseWriter) error

type DeleteOIDCProviderRequestObject

type DeleteOIDCProviderRequestObject struct {
	Name OIDCProviderName `json:"name"`
}

type DeleteOIDCProviderResponseObject

type DeleteOIDCProviderResponseObject interface {
	VisitDeleteOIDCProviderResponse(w http.ResponseWriter) error
}

type DeleteQualityProfile204Response

type DeleteQualityProfile204Response struct {
}

func (DeleteQualityProfile204Response) VisitDeleteQualityProfileResponse

func (response DeleteQualityProfile204Response) VisitDeleteQualityProfileResponse(w http.ResponseWriter) error

type DeleteQualityProfile403JSONResponse

type DeleteQualityProfile403JSONResponse struct{ ForbiddenJSONResponse }

func (DeleteQualityProfile403JSONResponse) VisitDeleteQualityProfileResponse

func (response DeleteQualityProfile403JSONResponse) VisitDeleteQualityProfileResponse(w http.ResponseWriter) error

type DeleteQualityProfile404JSONResponse

type DeleteQualityProfile404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteQualityProfile404JSONResponse) VisitDeleteQualityProfileResponse

func (response DeleteQualityProfile404JSONResponse) VisitDeleteQualityProfileResponse(w http.ResponseWriter) error

type DeleteQualityProfile409JSONResponse

type DeleteQualityProfile409JSONResponse struct{ ConflictJSONResponse }

func (DeleteQualityProfile409JSONResponse) VisitDeleteQualityProfileResponse

func (response DeleteQualityProfile409JSONResponse) VisitDeleteQualityProfileResponse(w http.ResponseWriter) error

type DeleteQualityProfile500JSONResponse

type DeleteQualityProfile500JSONResponse struct{ InternalErrorJSONResponse }

func (DeleteQualityProfile500JSONResponse) VisitDeleteQualityProfileResponse

func (response DeleteQualityProfile500JSONResponse) VisitDeleteQualityProfileResponse(w http.ResponseWriter) error

type DeleteQualityProfileRequestObject

type DeleteQualityProfileRequestObject struct {
	Name ResourceName `json:"name"`
}

type DeleteQualityProfileResponseObject

type DeleteQualityProfileResponseObject interface {
	VisitDeleteQualityProfileResponse(w http.ResponseWriter) error
}

type DeleteSeries204Response

type DeleteSeries204Response = SeriesDeletedResponse

func (DeleteSeries204Response) VisitDeleteSeriesResponse

func (response DeleteSeries204Response) VisitDeleteSeriesResponse(w http.ResponseWriter) error

type DeleteSeries404JSONResponse

type DeleteSeries404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteSeries404JSONResponse) VisitDeleteSeriesResponse

func (response DeleteSeries404JSONResponse) VisitDeleteSeriesResponse(w http.ResponseWriter) error

type DeleteSeries500JSONResponse

type DeleteSeries500JSONResponse struct{ InternalErrorJSONResponse }

func (DeleteSeries500JSONResponse) VisitDeleteSeriesResponse

func (response DeleteSeries500JSONResponse) VisitDeleteSeriesResponse(w http.ResponseWriter) error

type DeleteSeriesFiles

type DeleteSeriesFiles = bool

DeleteSeriesFiles defines model for DeleteSeriesFiles.

type DeleteSeriesParams

type DeleteSeriesParams struct {
	// DeleteFiles When true, also delete attached media files from disk.
	DeleteFiles *DeleteSeriesFiles `form:"delete_files,omitempty" json:"delete_files,omitempty"`
}

DeleteSeriesParams defines parameters for DeleteSeries.

type DeleteSeriesRequestObject

type DeleteSeriesRequestObject struct {
	Id     ResourceID `json:"id"`
	Params DeleteSeriesParams
}

type DeleteSeriesResponseObject

type DeleteSeriesResponseObject interface {
	VisitDeleteSeriesResponse(w http.ResponseWriter) error
}

type DeleteUser204Response

type DeleteUser204Response = UserDeletedResponse

func (DeleteUser204Response) VisitDeleteUserResponse

func (response DeleteUser204Response) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser403JSONResponse

type DeleteUser403JSONResponse struct{ ForbiddenJSONResponse }

func (DeleteUser403JSONResponse) VisitDeleteUserResponse

func (response DeleteUser403JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser404JSONResponse

type DeleteUser404JSONResponse struct{ NotFoundJSONResponse }

func (DeleteUser404JSONResponse) VisitDeleteUserResponse

func (response DeleteUser404JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser409JSONResponse

type DeleteUser409JSONResponse struct{ ConflictJSONResponse }

func (DeleteUser409JSONResponse) VisitDeleteUserResponse

func (response DeleteUser409JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUserRequestObject

type DeleteUserRequestObject struct {
	Uid UserID `json:"uid"`
}

type DeleteUserResponseObject

type DeleteUserResponseObject interface {
	VisitDeleteUserResponse(w http.ResponseWriter) error
}

type DenyRequest

type DenyRequest = DenyRequestRequest

DenyRequest defines model for DenyRequest.

type DenyRequest200JSONResponse

type DenyRequest200JSONResponse struct{ RequestDetailJSONResponse }

func (DenyRequest200JSONResponse) VisitDenyRequestResponse

func (response DenyRequest200JSONResponse) VisitDenyRequestResponse(w http.ResponseWriter) error

type DenyRequest403JSONResponse

type DenyRequest403JSONResponse struct{ ForbiddenJSONResponse }

func (DenyRequest403JSONResponse) VisitDenyRequestResponse

func (response DenyRequest403JSONResponse) VisitDenyRequestResponse(w http.ResponseWriter) error

type DenyRequest404JSONResponse

type DenyRequest404JSONResponse struct{ NotFoundJSONResponse }

func (DenyRequest404JSONResponse) VisitDenyRequestResponse

func (response DenyRequest404JSONResponse) VisitDenyRequestResponse(w http.ResponseWriter) error

type DenyRequest500JSONResponse

type DenyRequest500JSONResponse struct{ InternalErrorJSONResponse }

func (DenyRequest500JSONResponse) VisitDenyRequestResponse

func (response DenyRequest500JSONResponse) VisitDenyRequestResponse(w http.ResponseWriter) error

type DenyRequestJSONRequestBody

type DenyRequestJSONRequestBody = DenyRequestRequest

DenyRequestJSONRequestBody defines body for DenyRequest for application/json ContentType.

type DenyRequestRequest

type DenyRequestRequest struct {
	Reason *string `json:"reason,omitempty"`
}

DenyRequestRequest defines model for DenyRequestRequest.

type DenyRequestRequestObject

type DenyRequestRequestObject struct {
	Id   ResourceID `json:"id"`
	Body *DenyRequestJSONRequestBody
}

type DenyRequestResponseObject

type DenyRequestResponseObject interface {
	VisitDenyRequestResponse(w http.ResponseWriter) error
}

type Deps

type Deps struct {
	Auth            auth.Manager
	Movies          movie.Manager
	Metadata        metadata.Provider
	Indexers        indexer.Manager
	Downloads       download.Downloader
	MediaServers    mediaserver.Manager
	Scheduler       scheduler.Controller
	BulkImports     bulkimport.Manager
	MissingSearcher *rss.MissingSearcher
	TVShows         tvshow.Manager
	TVSearcher      *rss.EpisodeMissingSearcher
	MetadataTV      metadata.TVProvider
	DeepLinker      *mediaserver.DeepLinker
	Renamer         library.Renamer
	SeriesRenamer   library.Renamer
	Requests        request.Manager
	Store           db.Store
	Ent             *ent.Client
	PublicURL       string
}

Deps is the dependency set required by restapi handlers.

type DiscoverMediaServer

type DiscoverMediaServer = MediaServerDiscoveryRequest

DiscoverMediaServer defines model for DiscoverMediaServer.

type DiscoverMediaServerSections200JSONResponse

type DiscoverMediaServerSections200JSONResponse struct {
	MediaServerDiscoveredJSONResponse
}

func (DiscoverMediaServerSections200JSONResponse) VisitDiscoverMediaServerSectionsResponse

func (response DiscoverMediaServerSections200JSONResponse) VisitDiscoverMediaServerSectionsResponse(w http.ResponseWriter) error

type DiscoverMediaServerSections403JSONResponse

type DiscoverMediaServerSections403JSONResponse struct{ ForbiddenJSONResponse }

func (DiscoverMediaServerSections403JSONResponse) VisitDiscoverMediaServerSectionsResponse

func (response DiscoverMediaServerSections403JSONResponse) VisitDiscoverMediaServerSectionsResponse(w http.ResponseWriter) error

type DiscoverMediaServerSections422JSONResponse

type DiscoverMediaServerSections422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (DiscoverMediaServerSections422JSONResponse) VisitDiscoverMediaServerSectionsResponse

func (response DiscoverMediaServerSections422JSONResponse) VisitDiscoverMediaServerSectionsResponse(w http.ResponseWriter) error

type DiscoverMediaServerSections500JSONResponse

type DiscoverMediaServerSections500JSONResponse struct{ InternalErrorJSONResponse }

func (DiscoverMediaServerSections500JSONResponse) VisitDiscoverMediaServerSectionsResponse

func (response DiscoverMediaServerSections500JSONResponse) VisitDiscoverMediaServerSectionsResponse(w http.ResponseWriter) error

type DiscoverMediaServerSectionsJSONRequestBody

type DiscoverMediaServerSectionsJSONRequestBody = MediaServerDiscoveryRequest

DiscoverMediaServerSectionsJSONRequestBody defines body for DiscoverMediaServerSections for application/json ContentType.

type DiscoverMediaServerSectionsRequestObject

type DiscoverMediaServerSectionsRequestObject struct {
	Body *DiscoverMediaServerSectionsJSONRequestBody
}

type DiscoverMediaServerSectionsResponseObject

type DiscoverMediaServerSectionsResponseObject interface {
	VisitDiscoverMediaServerSectionsResponse(w http.ResponseWriter) error
}

type DiskUsage

type DiskUsage struct {
	Free string        `json:"free"`
	Kind DiskUsageKind `json:"kind"`

	// Pct 0–100, rounded down.
	Pct   uint8  `json:"pct"`
	Total string `json:"total"`
	Used  string `json:"used"`
}

DiskUsage defines model for DiskUsage.

type DiskUsageKind

type DiskUsageKind string

DiskUsageKind defines model for DiskUsage.Kind.

const (
	DiskUsageKindErr  DiskUsageKind = "err"
	DiskUsageKindOk   DiskUsageKind = "ok"
	DiskUsageKindWarn DiskUsageKind = "warn"
)

Defines values for DiskUsageKind.

func (DiskUsageKind) Valid

func (e DiskUsageKind) Valid() bool

Valid indicates whether the value is a known member of the DiskUsageKind enum.

type DownloadClient

type DownloadClient struct {
	// ApiKeySet True when an API key is stored. The key itself is never returned.
	ApiKeySet  bool                     `json:"api_key_set"`
	AuthMethod DownloadClientAuthMethod `json:"auth_method"`
	ClientType DownloadClientClientType `json:"client_type"`
	Enabled    bool                     `json:"enabled"`
	Host       string                   `json:"host"`
	Name       string                   `json:"name"`

	// PasswordSet True when a password is stored. The password itself is never returned.
	PasswordSet bool    `json:"password_set"`
	Port        uint16  `json:"port"`
	Priority    *uint8  `json:"priority,omitempty"`
	UseSsl      *bool   `json:"use_ssl,omitempty"`
	Username    *string `json:"username,omitempty"`
}

DownloadClient defines model for DownloadClient.

type DownloadClientAuthMethod

type DownloadClientAuthMethod string

DownloadClientAuthMethod defines model for DownloadClient.AuthMethod.

const (
	DownloadClientAuthMethodApiKey   DownloadClientAuthMethod = "api_key"
	DownloadClientAuthMethodPassword DownloadClientAuthMethod = "password"
)

Defines values for DownloadClientAuthMethod.

func (DownloadClientAuthMethod) Valid

func (e DownloadClientAuthMethod) Valid() bool

Valid indicates whether the value is a known member of the DownloadClientAuthMethod enum.

type DownloadClientClientType

type DownloadClientClientType string

DownloadClientClientType defines model for DownloadClient.ClientType.

const (
	DownloadClientClientTypeDeluge       DownloadClientClientType = "deluge"
	DownloadClientClientTypeQbittorrent  DownloadClientClientType = "qbittorrent"
	DownloadClientClientTypeTransmission DownloadClientClientType = "transmission"
)

Defines values for DownloadClientClientType.

func (DownloadClientClientType) Valid

func (e DownloadClientClientType) Valid() bool

Valid indicates whether the value is a known member of the DownloadClientClientType enum.

type DownloadClientCreate

type DownloadClientCreate struct {
	ApiKey     *string                         `json:"api_key,omitempty"`
	AuthMethod *DownloadClientCreateAuthMethod `json:"auth_method,omitempty"`
	ClientType DownloadClientCreateClientType  `json:"client_type"`
	Enabled    *bool                           `json:"enabled,omitempty"`
	Host       string                          `json:"host"`
	Name       string                          `json:"name"`
	Password   *string                         `json:"password,omitempty"`
	Port       uint16                          `json:"port"`
	Priority   *uint8                          `json:"priority,omitempty"`
	UseSsl     *bool                           `json:"use_ssl,omitempty"`
	Username   *string                         `json:"username,omitempty"`
}

DownloadClientCreate defines model for DownloadClientCreate.

type DownloadClientCreateAuthMethod

type DownloadClientCreateAuthMethod string

DownloadClientCreateAuthMethod defines model for DownloadClientCreate.AuthMethod.

const (
	DownloadClientCreateAuthMethodApiKey   DownloadClientCreateAuthMethod = "api_key"
	DownloadClientCreateAuthMethodPassword DownloadClientCreateAuthMethod = "password"
)

Defines values for DownloadClientCreateAuthMethod.

func (DownloadClientCreateAuthMethod) Valid

Valid indicates whether the value is a known member of the DownloadClientCreateAuthMethod enum.

type DownloadClientCreateClientType

type DownloadClientCreateClientType string

DownloadClientCreateClientType defines model for DownloadClientCreate.ClientType.

const (
	DownloadClientCreateClientTypeDeluge       DownloadClientCreateClientType = "deluge"
	DownloadClientCreateClientTypeQbittorrent  DownloadClientCreateClientType = "qbittorrent"
	DownloadClientCreateClientTypeTransmission DownloadClientCreateClientType = "transmission"
)

Defines values for DownloadClientCreateClientType.

func (DownloadClientCreateClientType) Valid

Valid indicates whether the value is a known member of the DownloadClientCreateClientType enum.

type DownloadHistory

type DownloadHistory struct {
	Items      []HistoryEntry `json:"items"`
	NextCursor *string        `json:"next_cursor,omitempty"`
}

DownloadHistory defines model for DownloadHistory.

type DownloadHistoryJSONResponse

type DownloadHistoryJSONResponse DownloadHistory

type DownloadQueue

type DownloadQueue struct {
	Items       []QueueEntry `json:"items"`
	RefreshedAt time.Time    `json:"refreshed_at"`
}

DownloadQueue defines model for DownloadQueue.

type DownloadQueueJSONResponse

type DownloadQueueJSONResponse DownloadQueue

type Episode

type Episode struct {
	AbsoluteNumber *uint16       `json:"absolute_number,omitempty"`
	AirDate        *time.Time    `json:"air_date,omitempty"`
	Id             uint32        `json:"id"`
	Monitored      bool          `json:"monitored"`
	Number         uint16        `json:"number"`
	Quality        *string       `json:"quality,omitempty"`
	Size           *int64        `json:"size,omitempty"`
	Status         EpisodeStatus `json:"status"`
	Title          *string       `json:"title,omitempty"`
}

Episode defines model for Episode.

type EpisodeID

type EpisodeID = uint32

EpisodeID defines model for EpisodeID.

type EpisodeRef

type EpisodeRef struct {
	Episode   uint16 `json:"episode"`
	Season    uint16 `json:"season"`
	ShowTitle string `json:"show_title"`
}

EpisodeRef Show + S/E context for a TV download record (queue/history rows render "<show> · SxxExx" from it). Absent on movie records.

type EpisodeStatus

type EpisodeStatus string

EpisodeStatus defines model for Episode.Status.

const (
	EpisodeStatusAvailable   EpisodeStatus = "available"
	EpisodeStatusDownloading EpisodeStatus = "downloading"
	EpisodeStatusPaused      EpisodeStatus = "paused"
	EpisodeStatusSkipped     EpisodeStatus = "skipped"
	EpisodeStatusUnaired     EpisodeStatus = "unaired"
	EpisodeStatusWanted      EpisodeStatus = "wanted"
)

Defines values for EpisodeStatus.

func (EpisodeStatus) Valid

func (e EpisodeStatus) Valid() bool

Valid indicates whether the value is a known member of the EpisodeStatus enum.

type EpisodeUpdatedResponse

type EpisodeUpdatedResponse struct {
}

type Error

type Error struct {
	// Code Stable machine-readable error code (e.g. last_admin,
	// self_delete_forbidden, email_exists). Present for domain errors
	// where the caller needs to branch on the specific reason; absent
	// for generic errors where the message is sufficient.
	Code *string `json:"code,omitempty"`

	// Message Human-readable, safe-to-display error message.
	Message string `json:"message"`
}

Error defines model for Error.

type FileDeletedResponse

type FileDeletedResponse struct {
}

type FileID

type FileID = uint32

FileID defines model for FileID.

type Forbidden

type Forbidden = Error

Forbidden defines model for Forbidden.

type ForbiddenJSONResponse

type ForbiddenJSONResponse Error

type GetConfigAuth200JSONResponse

type GetConfigAuth200JSONResponse struct{ AuthConfigJSONResponse }

func (GetConfigAuth200JSONResponse) VisitGetConfigAuthResponse

func (response GetConfigAuth200JSONResponse) VisitGetConfigAuthResponse(w http.ResponseWriter) error

type GetConfigAuth403JSONResponse

type GetConfigAuth403JSONResponse struct{ ForbiddenJSONResponse }

func (GetConfigAuth403JSONResponse) VisitGetConfigAuthResponse

func (response GetConfigAuth403JSONResponse) VisitGetConfigAuthResponse(w http.ResponseWriter) error

type GetConfigAuthRequestObject

type GetConfigAuthRequestObject struct {
}

type GetConfigAuthResponseObject

type GetConfigAuthResponseObject interface {
	VisitGetConfigAuthResponse(w http.ResponseWriter) error
}

type GetDownloadQueue200JSONResponse

type GetDownloadQueue200JSONResponse struct{ DownloadQueueJSONResponse }

func (GetDownloadQueue200JSONResponse) VisitGetDownloadQueueResponse

func (response GetDownloadQueue200JSONResponse) VisitGetDownloadQueueResponse(w http.ResponseWriter) error

type GetDownloadQueueRequestObject

type GetDownloadQueueRequestObject struct {
}

type GetDownloadQueueResponseObject

type GetDownloadQueueResponseObject interface {
	VisitGetDownloadQueueResponse(w http.ResponseWriter) error
}

type GetImport200JSONResponse

type GetImport200JSONResponse struct{ ImportScanJSONResponse }

func (GetImport200JSONResponse) VisitGetImportResponse

func (response GetImport200JSONResponse) VisitGetImportResponse(w http.ResponseWriter) error

type GetImport403JSONResponse

type GetImport403JSONResponse struct{ ForbiddenJSONResponse }

func (GetImport403JSONResponse) VisitGetImportResponse

func (response GetImport403JSONResponse) VisitGetImportResponse(w http.ResponseWriter) error

type GetImport404JSONResponse

type GetImport404JSONResponse struct{ NotFoundJSONResponse }

func (GetImport404JSONResponse) VisitGetImportResponse

func (response GetImport404JSONResponse) VisitGetImportResponse(w http.ResponseWriter) error

type GetImportRequestObject

type GetImportRequestObject struct {
	Id ResourceID `json:"id"`
}

type GetImportResponseObject

type GetImportResponseObject interface {
	VisitGetImportResponse(w http.ResponseWriter) error
}

type GetMediaServer200JSONResponse

type GetMediaServer200JSONResponse struct{ MediaServerOKJSONResponse }

func (GetMediaServer200JSONResponse) VisitGetMediaServerResponse

func (response GetMediaServer200JSONResponse) VisitGetMediaServerResponse(w http.ResponseWriter) error

type GetMediaServer404JSONResponse

type GetMediaServer404JSONResponse struct{ NotFoundJSONResponse }

func (GetMediaServer404JSONResponse) VisitGetMediaServerResponse

func (response GetMediaServer404JSONResponse) VisitGetMediaServerResponse(w http.ResponseWriter) error

type GetMediaServer500JSONResponse

type GetMediaServer500JSONResponse struct{ InternalErrorJSONResponse }

func (GetMediaServer500JSONResponse) VisitGetMediaServerResponse

func (response GetMediaServer500JSONResponse) VisitGetMediaServerResponse(w http.ResponseWriter) error

type GetMediaServerRequestObject

type GetMediaServerRequestObject struct {
	Name ResourceName `json:"name"`
}

type GetMediaServerResponseObject

type GetMediaServerResponseObject interface {
	VisitGetMediaServerResponse(w http.ResponseWriter) error
}

type GetMovie200JSONResponse

type GetMovie200JSONResponse Movie

func (GetMovie200JSONResponse) VisitGetMovieResponse

func (response GetMovie200JSONResponse) VisitGetMovieResponse(w http.ResponseWriter) error

type GetMovie404JSONResponse

type GetMovie404JSONResponse struct{ NotFoundJSONResponse }

func (GetMovie404JSONResponse) VisitGetMovieResponse

func (response GetMovie404JSONResponse) VisitGetMovieResponse(w http.ResponseWriter) error

type GetMovie500JSONResponse

type GetMovie500JSONResponse struct{ InternalErrorJSONResponse }

func (GetMovie500JSONResponse) VisitGetMovieResponse

func (response GetMovie500JSONResponse) VisitGetMovieResponse(w http.ResponseWriter) error

type GetMovieCounts200JSONResponse

type GetMovieCounts200JSONResponse struct {
	MovieCountsResponseJSONResponse
}

func (GetMovieCounts200JSONResponse) VisitGetMovieCountsResponse

func (response GetMovieCounts200JSONResponse) VisitGetMovieCountsResponse(w http.ResponseWriter) error

type GetMovieCounts500JSONResponse

type GetMovieCounts500JSONResponse struct{ InternalErrorJSONResponse }

func (GetMovieCounts500JSONResponse) VisitGetMovieCountsResponse

func (response GetMovieCounts500JSONResponse) VisitGetMovieCountsResponse(w http.ResponseWriter) error

type GetMovieCountsRequestObject

type GetMovieCountsRequestObject struct {
}

type GetMovieCountsResponseObject

type GetMovieCountsResponseObject interface {
	VisitGetMovieCountsResponse(w http.ResponseWriter) error
}

type GetMoviePlayOnLinks200JSONResponse

type GetMoviePlayOnLinks200JSONResponse struct{ MoviePlayOnLinksJSONResponse }

func (GetMoviePlayOnLinks200JSONResponse) VisitGetMoviePlayOnLinksResponse

func (response GetMoviePlayOnLinks200JSONResponse) VisitGetMoviePlayOnLinksResponse(w http.ResponseWriter) error

type GetMoviePlayOnLinks404JSONResponse

type GetMoviePlayOnLinks404JSONResponse struct{ NotFoundJSONResponse }

func (GetMoviePlayOnLinks404JSONResponse) VisitGetMoviePlayOnLinksResponse

func (response GetMoviePlayOnLinks404JSONResponse) VisitGetMoviePlayOnLinksResponse(w http.ResponseWriter) error

type GetMoviePlayOnLinks500JSONResponse

type GetMoviePlayOnLinks500JSONResponse struct{ InternalErrorJSONResponse }

func (GetMoviePlayOnLinks500JSONResponse) VisitGetMoviePlayOnLinksResponse

func (response GetMoviePlayOnLinks500JSONResponse) VisitGetMoviePlayOnLinksResponse(w http.ResponseWriter) error

type GetMoviePlayOnLinksRequestObject

type GetMoviePlayOnLinksRequestObject struct {
	Id ResourceID `json:"id"`
}

type GetMoviePlayOnLinksResponseObject

type GetMoviePlayOnLinksResponseObject interface {
	VisitGetMoviePlayOnLinksResponse(w http.ResponseWriter) error
}

type GetMovieRecommendations200JSONResponse

type GetMovieRecommendations200JSONResponse struct {
	MovieRecommendationsJSONResponse
}

func (GetMovieRecommendations200JSONResponse) VisitGetMovieRecommendationsResponse

func (response GetMovieRecommendations200JSONResponse) VisitGetMovieRecommendationsResponse(w http.ResponseWriter) error

type GetMovieRecommendations404JSONResponse

type GetMovieRecommendations404JSONResponse struct{ NotFoundJSONResponse }

func (GetMovieRecommendations404JSONResponse) VisitGetMovieRecommendationsResponse

func (response GetMovieRecommendations404JSONResponse) VisitGetMovieRecommendationsResponse(w http.ResponseWriter) error

type GetMovieRecommendations500JSONResponse

type GetMovieRecommendations500JSONResponse struct{ InternalErrorJSONResponse }

func (GetMovieRecommendations500JSONResponse) VisitGetMovieRecommendationsResponse

func (response GetMovieRecommendations500JSONResponse) VisitGetMovieRecommendationsResponse(w http.ResponseWriter) error

type GetMovieRecommendationsRequestObject

type GetMovieRecommendationsRequestObject struct {
	Id ResourceID `json:"id"`
}

type GetMovieRecommendationsResponseObject

type GetMovieRecommendationsResponseObject interface {
	VisitGetMovieRecommendationsResponse(w http.ResponseWriter) error
}

type GetMovieRequestObject

type GetMovieRequestObject struct {
	Id ResourceID `json:"id"`
}

type GetMovieResponseObject

type GetMovieResponseObject interface {
	VisitGetMovieResponse(w http.ResponseWriter) error
}

type GetOIDCProvider200JSONResponse

type GetOIDCProvider200JSONResponse struct{ OIDCProviderJSONResponse }

func (GetOIDCProvider200JSONResponse) VisitGetOIDCProviderResponse

func (response GetOIDCProvider200JSONResponse) VisitGetOIDCProviderResponse(w http.ResponseWriter) error

type GetOIDCProvider403JSONResponse

type GetOIDCProvider403JSONResponse struct{ ForbiddenJSONResponse }

func (GetOIDCProvider403JSONResponse) VisitGetOIDCProviderResponse

func (response GetOIDCProvider403JSONResponse) VisitGetOIDCProviderResponse(w http.ResponseWriter) error

type GetOIDCProvider404JSONResponse

type GetOIDCProvider404JSONResponse struct{ NotFoundJSONResponse }

func (GetOIDCProvider404JSONResponse) VisitGetOIDCProviderResponse

func (response GetOIDCProvider404JSONResponse) VisitGetOIDCProviderResponse(w http.ResponseWriter) error

type GetOIDCProviderRequestObject

type GetOIDCProviderRequestObject struct {
	Name OIDCProviderName `json:"name"`
}

type GetOIDCProviderResponseObject

type GetOIDCProviderResponseObject interface {
	VisitGetOIDCProviderResponse(w http.ResponseWriter) error
}

type GetRequestCounts200JSONResponse

type GetRequestCounts200JSONResponse struct {
	RequestCountsResponseJSONResponse
}

func (GetRequestCounts200JSONResponse) VisitGetRequestCountsResponse

func (response GetRequestCounts200JSONResponse) VisitGetRequestCountsResponse(w http.ResponseWriter) error

type GetRequestCounts401JSONResponse

type GetRequestCounts401JSONResponse struct{ UnauthorizedJSONResponse }

func (GetRequestCounts401JSONResponse) VisitGetRequestCountsResponse

func (response GetRequestCounts401JSONResponse) VisitGetRequestCountsResponse(w http.ResponseWriter) error

type GetRequestCounts500JSONResponse

type GetRequestCounts500JSONResponse struct{ InternalErrorJSONResponse }

func (GetRequestCounts500JSONResponse) VisitGetRequestCountsResponse

func (response GetRequestCounts500JSONResponse) VisitGetRequestCountsResponse(w http.ResponseWriter) error

type GetRequestCountsRequestObject

type GetRequestCountsRequestObject struct {
}

type GetRequestCountsResponseObject

type GetRequestCountsResponseObject interface {
	VisitGetRequestCountsResponse(w http.ResponseWriter) error
}

type GetRequestMetadata200JSONResponse

type GetRequestMetadata200JSONResponse struct {
	RequestMediaDetailResponseJSONResponse
}

func (GetRequestMetadata200JSONResponse) VisitGetRequestMetadataResponse

func (response GetRequestMetadata200JSONResponse) VisitGetRequestMetadataResponse(w http.ResponseWriter) error

type GetRequestMetadata401JSONResponse

type GetRequestMetadata401JSONResponse struct{ UnauthorizedJSONResponse }

func (GetRequestMetadata401JSONResponse) VisitGetRequestMetadataResponse

func (response GetRequestMetadata401JSONResponse) VisitGetRequestMetadataResponse(w http.ResponseWriter) error

type GetRequestMetadata403JSONResponse

type GetRequestMetadata403JSONResponse struct{ ForbiddenJSONResponse }

func (GetRequestMetadata403JSONResponse) VisitGetRequestMetadataResponse

func (response GetRequestMetadata403JSONResponse) VisitGetRequestMetadataResponse(w http.ResponseWriter) error

type GetRequestMetadata404JSONResponse

type GetRequestMetadata404JSONResponse struct{ NotFoundJSONResponse }

func (GetRequestMetadata404JSONResponse) VisitGetRequestMetadataResponse

func (response GetRequestMetadata404JSONResponse) VisitGetRequestMetadataResponse(w http.ResponseWriter) error

type GetRequestMetadata500JSONResponse

type GetRequestMetadata500JSONResponse struct{ InternalErrorJSONResponse }

func (GetRequestMetadata500JSONResponse) VisitGetRequestMetadataResponse

func (response GetRequestMetadata500JSONResponse) VisitGetRequestMetadataResponse(w http.ResponseWriter) error

type GetRequestMetadataRequestObject

type GetRequestMetadataRequestObject struct {
	Id ResourceID `json:"id"`
}

type GetRequestMetadataResponseObject

type GetRequestMetadataResponseObject interface {
	VisitGetRequestMetadataResponse(w http.ResponseWriter) error
}

type GetSchedule200JSONResponse

type GetSchedule200JSONResponse struct{ ScheduleJSONResponse }

func (GetSchedule200JSONResponse) VisitGetScheduleResponse

func (response GetSchedule200JSONResponse) VisitGetScheduleResponse(w http.ResponseWriter) error

type GetSchedule401JSONResponse

type GetSchedule401JSONResponse struct{ UnauthorizedJSONResponse }

func (GetSchedule401JSONResponse) VisitGetScheduleResponse

func (response GetSchedule401JSONResponse) VisitGetScheduleResponse(w http.ResponseWriter) error

type GetSchedule403JSONResponse

type GetSchedule403JSONResponse struct{ ForbiddenJSONResponse }

func (GetSchedule403JSONResponse) VisitGetScheduleResponse

func (response GetSchedule403JSONResponse) VisitGetScheduleResponse(w http.ResponseWriter) error

type GetSchedule404JSONResponse

type GetSchedule404JSONResponse struct{ NotFoundJSONResponse }

func (GetSchedule404JSONResponse) VisitGetScheduleResponse

func (response GetSchedule404JSONResponse) VisitGetScheduleResponse(w http.ResponseWriter) error

type GetScheduleRequestObject

type GetScheduleRequestObject struct {
	Name ScheduleName `json:"name"`
}

type GetScheduleResponseObject

type GetScheduleResponseObject interface {
	VisitGetScheduleResponse(w http.ResponseWriter) error
}

type GetSeries200JSONResponse

type GetSeries200JSONResponse struct{ SeriesDetailJSONResponse }

func (GetSeries200JSONResponse) VisitGetSeriesResponse

func (response GetSeries200JSONResponse) VisitGetSeriesResponse(w http.ResponseWriter) error

type GetSeries404JSONResponse

type GetSeries404JSONResponse struct{ NotFoundJSONResponse }

func (GetSeries404JSONResponse) VisitGetSeriesResponse

func (response GetSeries404JSONResponse) VisitGetSeriesResponse(w http.ResponseWriter) error

type GetSeries500JSONResponse

type GetSeries500JSONResponse struct{ InternalErrorJSONResponse }

func (GetSeries500JSONResponse) VisitGetSeriesResponse

func (response GetSeries500JSONResponse) VisitGetSeriesResponse(w http.ResponseWriter) error

type GetSeriesCounts200JSONResponse

type GetSeriesCounts200JSONResponse struct {
	SeriesCountsResponseJSONResponse
}

func (GetSeriesCounts200JSONResponse) VisitGetSeriesCountsResponse

func (response GetSeriesCounts200JSONResponse) VisitGetSeriesCountsResponse(w http.ResponseWriter) error

type GetSeriesCounts500JSONResponse

type GetSeriesCounts500JSONResponse struct{ InternalErrorJSONResponse }

func (GetSeriesCounts500JSONResponse) VisitGetSeriesCountsResponse

func (response GetSeriesCounts500JSONResponse) VisitGetSeriesCountsResponse(w http.ResponseWriter) error

type GetSeriesCountsRequestObject

type GetSeriesCountsRequestObject struct {
}

type GetSeriesCountsResponseObject

type GetSeriesCountsResponseObject interface {
	VisitGetSeriesCountsResponse(w http.ResponseWriter) error
}

type GetSeriesPlayOnLinks200JSONResponse

type GetSeriesPlayOnLinks200JSONResponse struct{ SeriesPlayOnLinksJSONResponse }

func (GetSeriesPlayOnLinks200JSONResponse) VisitGetSeriesPlayOnLinksResponse

func (response GetSeriesPlayOnLinks200JSONResponse) VisitGetSeriesPlayOnLinksResponse(w http.ResponseWriter) error

type GetSeriesPlayOnLinks404JSONResponse

type GetSeriesPlayOnLinks404JSONResponse struct{ NotFoundJSONResponse }

func (GetSeriesPlayOnLinks404JSONResponse) VisitGetSeriesPlayOnLinksResponse

func (response GetSeriesPlayOnLinks404JSONResponse) VisitGetSeriesPlayOnLinksResponse(w http.ResponseWriter) error

type GetSeriesPlayOnLinks500JSONResponse

type GetSeriesPlayOnLinks500JSONResponse struct{ InternalErrorJSONResponse }

func (GetSeriesPlayOnLinks500JSONResponse) VisitGetSeriesPlayOnLinksResponse

func (response GetSeriesPlayOnLinks500JSONResponse) VisitGetSeriesPlayOnLinksResponse(w http.ResponseWriter) error

type GetSeriesPlayOnLinksRequestObject

type GetSeriesPlayOnLinksRequestObject struct {
	Id ResourceID `json:"id"`
}

type GetSeriesPlayOnLinksResponseObject

type GetSeriesPlayOnLinksResponseObject interface {
	VisitGetSeriesPlayOnLinksResponse(w http.ResponseWriter) error
}

type GetSeriesRequestObject

type GetSeriesRequestObject struct {
	Id ResourceID `json:"id"`
}

type GetSeriesResponseObject

type GetSeriesResponseObject interface {
	VisitGetSeriesResponse(w http.ResponseWriter) error
}

type GetSystemInfo200JSONResponse

type GetSystemInfo200JSONResponse struct{ SystemInfoJSONResponse }

func (GetSystemInfo200JSONResponse) VisitGetSystemInfoResponse

func (response GetSystemInfo200JSONResponse) VisitGetSystemInfoResponse(w http.ResponseWriter) error

type GetSystemInfo403JSONResponse

type GetSystemInfo403JSONResponse struct{ ForbiddenJSONResponse }

func (GetSystemInfo403JSONResponse) VisitGetSystemInfoResponse

func (response GetSystemInfo403JSONResponse) VisitGetSystemInfoResponse(w http.ResponseWriter) error

type GetSystemInfoRequestObject

type GetSystemInfoRequestObject struct {
}

type GetSystemInfoResponseObject

type GetSystemInfoResponseObject interface {
	VisitGetSystemInfoResponse(w http.ResponseWriter) error
}

type GetUser200JSONResponse

type GetUser200JSONResponse struct{ UserDetailJSONResponse }

func (GetUser200JSONResponse) VisitGetUserResponse

func (response GetUser200JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUser403JSONResponse

type GetUser403JSONResponse struct{ ForbiddenJSONResponse }

func (GetUser403JSONResponse) VisitGetUserResponse

func (response GetUser403JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUser404JSONResponse

type GetUser404JSONResponse struct{ NotFoundJSONResponse }

func (GetUser404JSONResponse) VisitGetUserResponse

func (response GetUser404JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUserRequestObject

type GetUserRequestObject struct {
	Uid UserID `json:"uid"`
}

type GetUserResponseObject

type GetUserResponseObject interface {
	VisitGetUserResponse(w http.ResponseWriter) error
}

type GrabEpisodeRelease202Response

type GrabEpisodeRelease202Response = SeriesGrabAcceptedResponse

func (GrabEpisodeRelease202Response) VisitGrabEpisodeReleaseResponse

func (response GrabEpisodeRelease202Response) VisitGrabEpisodeReleaseResponse(w http.ResponseWriter) error

type GrabEpisodeRelease404JSONResponse

type GrabEpisodeRelease404JSONResponse struct{ NotFoundJSONResponse }

func (GrabEpisodeRelease404JSONResponse) VisitGrabEpisodeReleaseResponse

func (response GrabEpisodeRelease404JSONResponse) VisitGrabEpisodeReleaseResponse(w http.ResponseWriter) error

type GrabEpisodeRelease422JSONResponse

type GrabEpisodeRelease422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (GrabEpisodeRelease422JSONResponse) VisitGrabEpisodeReleaseResponse

func (response GrabEpisodeRelease422JSONResponse) VisitGrabEpisodeReleaseResponse(w http.ResponseWriter) error

type GrabEpisodeRelease500JSONResponse

type GrabEpisodeRelease500JSONResponse struct{ InternalErrorJSONResponse }

func (GrabEpisodeRelease500JSONResponse) VisitGrabEpisodeReleaseResponse

func (response GrabEpisodeRelease500JSONResponse) VisitGrabEpisodeReleaseResponse(w http.ResponseWriter) error

type GrabEpisodeReleaseJSONRequestBody

type GrabEpisodeReleaseJSONRequestBody = SearchResult

GrabEpisodeReleaseJSONRequestBody defines body for GrabEpisodeRelease for application/json ContentType.

type GrabEpisodeReleaseRequestObject

type GrabEpisodeReleaseRequestObject struct {
	Id        ResourceID `json:"id"`
	EpisodeId EpisodeID  `json:"episodeId"`
	Body      *GrabEpisodeReleaseJSONRequestBody
}

type GrabEpisodeReleaseResponseObject

type GrabEpisodeReleaseResponseObject interface {
	VisitGrabEpisodeReleaseResponse(w http.ResponseWriter) error
}

type GrabMovieRelease

type GrabMovieRelease = SearchResult

GrabMovieRelease defines model for GrabMovieRelease.

type GrabMovieRelease202JSONResponse

type GrabMovieRelease202JSONResponse struct {
	MovieSearchAcceptedJSONResponse
}

func (GrabMovieRelease202JSONResponse) VisitGrabMovieReleaseResponse

func (response GrabMovieRelease202JSONResponse) VisitGrabMovieReleaseResponse(w http.ResponseWriter) error

type GrabMovieRelease404JSONResponse

type GrabMovieRelease404JSONResponse struct{ NotFoundJSONResponse }

func (GrabMovieRelease404JSONResponse) VisitGrabMovieReleaseResponse

func (response GrabMovieRelease404JSONResponse) VisitGrabMovieReleaseResponse(w http.ResponseWriter) error

type GrabMovieRelease422JSONResponse

type GrabMovieRelease422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (GrabMovieRelease422JSONResponse) VisitGrabMovieReleaseResponse

func (response GrabMovieRelease422JSONResponse) VisitGrabMovieReleaseResponse(w http.ResponseWriter) error

type GrabMovieRelease500JSONResponse

type GrabMovieRelease500JSONResponse struct{ InternalErrorJSONResponse }

func (GrabMovieRelease500JSONResponse) VisitGrabMovieReleaseResponse

func (response GrabMovieRelease500JSONResponse) VisitGrabMovieReleaseResponse(w http.ResponseWriter) error

type GrabMovieReleaseJSONRequestBody

type GrabMovieReleaseJSONRequestBody = SearchResult

GrabMovieReleaseJSONRequestBody defines body for GrabMovieRelease for application/json ContentType.

type GrabMovieReleaseRequestObject

type GrabMovieReleaseRequestObject struct {
	Id   ResourceID `json:"id"`
	Body *GrabMovieReleaseJSONRequestBody
}

type GrabMovieReleaseResponseObject

type GrabMovieReleaseResponseObject interface {
	VisitGrabMovieReleaseResponse(w http.ResponseWriter) error
}

type GrabSeasonRelease202Response

type GrabSeasonRelease202Response = SeriesGrabAcceptedResponse

func (GrabSeasonRelease202Response) VisitGrabSeasonReleaseResponse

func (response GrabSeasonRelease202Response) VisitGrabSeasonReleaseResponse(w http.ResponseWriter) error

type GrabSeasonRelease404JSONResponse

type GrabSeasonRelease404JSONResponse struct{ NotFoundJSONResponse }

func (GrabSeasonRelease404JSONResponse) VisitGrabSeasonReleaseResponse

func (response GrabSeasonRelease404JSONResponse) VisitGrabSeasonReleaseResponse(w http.ResponseWriter) error

type GrabSeasonRelease422JSONResponse

type GrabSeasonRelease422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (GrabSeasonRelease422JSONResponse) VisitGrabSeasonReleaseResponse

func (response GrabSeasonRelease422JSONResponse) VisitGrabSeasonReleaseResponse(w http.ResponseWriter) error

type GrabSeasonRelease500JSONResponse

type GrabSeasonRelease500JSONResponse struct{ InternalErrorJSONResponse }

func (GrabSeasonRelease500JSONResponse) VisitGrabSeasonReleaseResponse

func (response GrabSeasonRelease500JSONResponse) VisitGrabSeasonReleaseResponse(w http.ResponseWriter) error

type GrabSeasonReleaseJSONRequestBody

type GrabSeasonReleaseJSONRequestBody = SearchResult

GrabSeasonReleaseJSONRequestBody defines body for GrabSeasonRelease for application/json ContentType.

type GrabSeasonReleaseRequestObject

type GrabSeasonReleaseRequestObject struct {
	Id     ResourceID   `json:"id"`
	Number SeasonNumber `json:"number"`
	Body   *GrabSeasonReleaseJSONRequestBody
}

type GrabSeasonReleaseResponseObject

type GrabSeasonReleaseResponseObject interface {
	VisitGrabSeasonReleaseResponse(w http.ResponseWriter) error
}

type GrabSeriesRelease

type GrabSeriesRelease = SearchResult

GrabSeriesRelease defines model for GrabSeriesRelease.

type GrabSeriesRelease202Response

type GrabSeriesRelease202Response = SeriesGrabAcceptedResponse

func (GrabSeriesRelease202Response) VisitGrabSeriesReleaseResponse

func (response GrabSeriesRelease202Response) VisitGrabSeriesReleaseResponse(w http.ResponseWriter) error

type GrabSeriesRelease404JSONResponse

type GrabSeriesRelease404JSONResponse struct{ NotFoundJSONResponse }

func (GrabSeriesRelease404JSONResponse) VisitGrabSeriesReleaseResponse

func (response GrabSeriesRelease404JSONResponse) VisitGrabSeriesReleaseResponse(w http.ResponseWriter) error

type GrabSeriesRelease422JSONResponse

type GrabSeriesRelease422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (GrabSeriesRelease422JSONResponse) VisitGrabSeriesReleaseResponse

func (response GrabSeriesRelease422JSONResponse) VisitGrabSeriesReleaseResponse(w http.ResponseWriter) error

type GrabSeriesRelease500JSONResponse

type GrabSeriesRelease500JSONResponse struct{ InternalErrorJSONResponse }

func (GrabSeriesRelease500JSONResponse) VisitGrabSeriesReleaseResponse

func (response GrabSeriesRelease500JSONResponse) VisitGrabSeriesReleaseResponse(w http.ResponseWriter) error

type GrabSeriesReleaseJSONRequestBody

type GrabSeriesReleaseJSONRequestBody = SearchResult

GrabSeriesReleaseJSONRequestBody defines body for GrabSeriesRelease for application/json ContentType.

type GrabSeriesReleaseRequestObject

type GrabSeriesReleaseRequestObject struct {
	Id   ResourceID `json:"id"`
	Body *GrabSeriesReleaseJSONRequestBody
}

type GrabSeriesReleaseResponseObject

type GrabSeriesReleaseResponseObject interface {
	VisitGrabSeriesReleaseResponse(w http.ResponseWriter) error
}

type HistoryEntry

type HistoryEntry struct {
	CreatedAt      time.Time `json:"created_at"`
	DownloadClient *string   `json:"download_client,omitempty"`

	// Episode Show + S/E context for a TV download record (queue/history rows render
	// "<show> · SxxExx" from it). Absent on movie records.
	Episode       *EpisodeRef        `json:"episode,omitempty"`
	FailureReason *string            `json:"failure_reason,omitempty"`
	Id            uint32             `json:"id"`
	ImportedAt    *time.Time         `json:"imported_at,omitempty"`
	Indexer       *string            `json:"indexer,omitempty"`
	Movie         Movie              `json:"movie"`
	Quality       *string            `json:"quality,omitempty"`
	ReleaseGroup  *string            `json:"release_group,omitempty"`
	Size          int64              `json:"size"`
	Status        HistoryEntryStatus `json:"status"`
	Title         string             `json:"title"`
	UpdatedAt     time.Time          `json:"updated_at"`
}

HistoryEntry defines model for HistoryEntry.

type HistoryEntryStatus

type HistoryEntryStatus string

HistoryEntryStatus defines model for HistoryEntry.Status.

const (
	HistoryEntryStatusCompleted HistoryEntryStatus = "completed"
	HistoryEntryStatusFailed    HistoryEntryStatus = "failed"
)

Defines values for HistoryEntryStatus.

func (HistoryEntryStatus) Valid

func (e HistoryEntryStatus) Valid() bool

Valid indicates whether the value is a known member of the HistoryEntryStatus enum.

type IgnorePending

type IgnorePending = IgnorePendingRequest

IgnorePending defines model for IgnorePending.

type IgnorePending204Response

type IgnorePending204Response = NoContentResponse

func (IgnorePending204Response) VisitIgnorePendingResponse

func (response IgnorePending204Response) VisitIgnorePendingResponse(w http.ResponseWriter) error

type IgnorePending403JSONResponse

type IgnorePending403JSONResponse struct{ ForbiddenJSONResponse }

func (IgnorePending403JSONResponse) VisitIgnorePendingResponse

func (response IgnorePending403JSONResponse) VisitIgnorePendingResponse(w http.ResponseWriter) error

type IgnorePending404JSONResponse

type IgnorePending404JSONResponse struct{ NotFoundJSONResponse }

func (IgnorePending404JSONResponse) VisitIgnorePendingResponse

func (response IgnorePending404JSONResponse) VisitIgnorePendingResponse(w http.ResponseWriter) error

type IgnorePending500JSONResponse

type IgnorePending500JSONResponse struct{ InternalErrorJSONResponse }

func (IgnorePending500JSONResponse) VisitIgnorePendingResponse

func (response IgnorePending500JSONResponse) VisitIgnorePendingResponse(w http.ResponseWriter) error

type IgnorePendingJSONRequestBody

type IgnorePendingJSONRequestBody = IgnorePendingRequest

IgnorePendingJSONRequestBody defines body for IgnorePending for application/json ContentType.

type IgnorePendingRequest

type IgnorePendingRequest struct {
	// RemoveTorrent When true, also remove the proposed torrent from its download
	// client.
	RemoveTorrent *bool `json:"remove_torrent,omitempty"`
}

IgnorePendingRequest defines model for IgnorePendingRequest.

type IgnorePendingRequestObject

type IgnorePendingRequestObject struct {
	Id   ResourceID `json:"id"`
	Body *IgnorePendingJSONRequestBody
}

type IgnorePendingResponseObject

type IgnorePendingResponseObject interface {
	VisitIgnorePendingResponse(w http.ResponseWriter) error
}

type ImportCancelledResponse

type ImportCancelledResponse struct {
}

type ImportClassification

type ImportClassification string

ImportClassification defines model for ImportClassification.

const (
	ImportClassificationAmbiguous ImportClassification = "ambiguous"
	ImportClassificationConfirmed ImportClassification = "confirmed"
	ImportClassificationExisting  ImportClassification = "existing"
	ImportClassificationUnmatched ImportClassification = "unmatched"
)

Defines values for ImportClassification.

func (ImportClassification) Valid

func (e ImportClassification) Valid() bool

Valid indicates whether the value is a known member of the ImportClassification enum.

type ImportDeletedResponse

type ImportDeletedResponse struct {
}

type ImportFileLimit

type ImportFileLimit = uint16

ImportFileLimit defines model for ImportFileLimit.

type ImportLimit

type ImportLimit = uint16

ImportLimit defines model for ImportLimit.

type ImportPage

type ImportPage = uint16

ImportPage defines model for ImportPage.

type ImportPending204Response

type ImportPending204Response = NoContentResponse

func (ImportPending204Response) VisitImportPendingResponse

func (response ImportPending204Response) VisitImportPendingResponse(w http.ResponseWriter) error

type ImportPending403JSONResponse

type ImportPending403JSONResponse struct{ ForbiddenJSONResponse }

func (ImportPending403JSONResponse) VisitImportPendingResponse

func (response ImportPending403JSONResponse) VisitImportPendingResponse(w http.ResponseWriter) error

type ImportPending404JSONResponse

type ImportPending404JSONResponse struct{ NotFoundJSONResponse }

func (ImportPending404JSONResponse) VisitImportPendingResponse

func (response ImportPending404JSONResponse) VisitImportPendingResponse(w http.ResponseWriter) error

type ImportPending500JSONResponse

type ImportPending500JSONResponse struct{ InternalErrorJSONResponse }

func (ImportPending500JSONResponse) VisitImportPendingResponse

func (response ImportPending500JSONResponse) VisitImportPendingResponse(w http.ResponseWriter) error

type ImportPendingRequestObject

type ImportPendingRequestObject struct {
	Id ResourceID `json:"id"`
}

type ImportPendingResponseObject

type ImportPendingResponseObject interface {
	VisitImportPendingResponse(w http.ResponseWriter) error
}

type ImportQuery

type ImportQuery = string

ImportQuery defines model for ImportQuery.

type ImportScan

type ImportScan struct {
	CommitFailedCount  uint32     `json:"commit_failed_count"`
	CommitSuccessCount uint32     `json:"commit_success_count"`
	CommittedAt        *time.Time `json:"committed_at,omitempty"`
	CreatedAt          time.Time  `json:"created_at"`
	FailureReason      *string    `json:"failure_reason,omitempty"`
	Id                 uint32     `json:"id"`

	// ImportMode Per-scan transfer-mode override (rename mode only). Empty when using the global default.
	ImportMode *ImportScanImportMode `json:"import_mode,omitempty"`

	// Kind Whether this scan reviews movie files or series folders.
	Kind           ImportScanKind   `json:"kind"`
	Mode           ImportScanMode   `json:"mode"`
	ProcessedCount uint32           `json:"processed_count"`
	ScannedAt      *time.Time       `json:"scanned_at,omitempty"`
	SourcePath     string           `json:"source_path"`
	Status         ImportScanStatus `json:"status"`
	TotalCount     uint32           `json:"total_count"`
	UpdatedAt      *time.Time       `json:"updated_at,omitempty"`
}

ImportScan defines model for ImportScan.

type ImportScanCandidate

type ImportScanCandidate struct {
	Title  string `json:"title"`
	TmdbId uint32 `json:"tmdb_id"`
	Year   uint16 `json:"year"`
}

ImportScanCandidate defines model for ImportScanCandidate.

type ImportScanCreateRequest

type ImportScanCreateRequest struct {
	// ImportMode Per-scan override of `library.import_mode`. Only meaningful when `mode=rename`.
	// Omit (or empty) to use the global default.
	ImportMode *ImportScanCreateRequestImportMode `json:"import_mode,omitempty"`
	Mode       ImportScanCreateRequestMode        `json:"mode"`
	SourcePath string                             `json:"source_path"`
}

ImportScanCreateRequest defines model for ImportScanCreateRequest.

type ImportScanCreateRequestImportMode

type ImportScanCreateRequestImportMode string

ImportScanCreateRequestImportMode Per-scan override of `library.import_mode`. Only meaningful when `mode=rename`. Omit (or empty) to use the global default.

const (
	ImportScanCreateRequestImportModeCopy     ImportScanCreateRequestImportMode = "copy"
	ImportScanCreateRequestImportModeHardlink ImportScanCreateRequestImportMode = "hardlink"
	ImportScanCreateRequestImportModeMove     ImportScanCreateRequestImportMode = "move"
)

Defines values for ImportScanCreateRequestImportMode.

func (ImportScanCreateRequestImportMode) Valid

Valid indicates whether the value is a known member of the ImportScanCreateRequestImportMode enum.

type ImportScanCreateRequestMode

type ImportScanCreateRequestMode string

ImportScanCreateRequestMode defines model for ImportScanCreateRequest.Mode.

const (
	ImportScanCreateRequestModeInPlace ImportScanCreateRequestMode = "in_place"
	ImportScanCreateRequestModeRename  ImportScanCreateRequestMode = "rename"
)

Defines values for ImportScanCreateRequestMode.

func (ImportScanCreateRequestMode) Valid

Valid indicates whether the value is a known member of the ImportScanCreateRequestMode enum.

type ImportScanFile

type ImportScanFile struct {
	Candidates         *[]ImportScanCandidate       `json:"candidates,omitempty"`
	Classification     ImportScanFileClassification `json:"classification"`
	CreatedAt          *time.Time                   `json:"created_at,omitempty"`
	CreatedMovieId     *uint32                      `json:"created_movie_id,omitempty"`
	Decision           ImportScanFileDecision       `json:"decision"`
	DecisionTmdbId     *uint32                      `json:"decision_tmdb_id,omitempty"`
	ExistingMovieId    *uint32                      `json:"existing_movie_id,omitempty"`
	Id                 uint32                       `json:"id"`
	Outcome            ImportScanFileOutcome        `json:"outcome"`
	OutcomeMessage     *string                      `json:"outcome_message,omitempty"`
	ParsedQuality      *string                      `json:"parsed_quality,omitempty"`
	ParsedReleaseGroup *string                      `json:"parsed_release_group,omitempty"`
	ParsedTitle        *string                      `json:"parsed_title,omitempty"`
	ParsedYear         *uint16                      `json:"parsed_year,omitempty"`
	Size               int64                        `json:"size"`
	SourcePath         string                       `json:"source_path"`
	TmdbId             *uint32                      `json:"tmdb_id,omitempty"`
	UpdatedAt          *time.Time                   `json:"updated_at,omitempty"`
}

ImportScanFile defines model for ImportScanFile.

type ImportScanFileClassification

type ImportScanFileClassification string

ImportScanFileClassification defines model for ImportScanFile.Classification.

const (
	ImportScanFileClassificationAmbiguous ImportScanFileClassification = "ambiguous"
	ImportScanFileClassificationConfirmed ImportScanFileClassification = "confirmed"
	ImportScanFileClassificationExisting  ImportScanFileClassification = "existing"
	ImportScanFileClassificationUnmatched ImportScanFileClassification = "unmatched"
)

Defines values for ImportScanFileClassification.

func (ImportScanFileClassification) Valid

Valid indicates whether the value is a known member of the ImportScanFileClassification enum.

type ImportScanFileDecision

type ImportScanFileDecision string

ImportScanFileDecision defines model for ImportScanFile.Decision.

const (
	ImportScanFileDecisionAccept  ImportScanFileDecision = "accept"
	ImportScanFileDecisionPending ImportScanFileDecision = "pending"
	ImportScanFileDecisionSkip    ImportScanFileDecision = "skip"
)

Defines values for ImportScanFileDecision.

func (ImportScanFileDecision) Valid

func (e ImportScanFileDecision) Valid() bool

Valid indicates whether the value is a known member of the ImportScanFileDecision enum.

type ImportScanFileDecisionRequest

type ImportScanFileDecisionRequest struct {
	Decision ImportScanFileDecisionRequestDecision `json:"decision"`
	TmdbId   *uint32                               `json:"tmdb_id,omitempty"`
}

ImportScanFileDecisionRequest defines model for ImportScanFileDecisionRequest.

type ImportScanFileDecisionRequestDecision

type ImportScanFileDecisionRequestDecision string

ImportScanFileDecisionRequestDecision defines model for ImportScanFileDecisionRequest.Decision.

const (
	ImportScanFileDecisionRequestDecisionAccept  ImportScanFileDecisionRequestDecision = "accept"
	ImportScanFileDecisionRequestDecisionPending ImportScanFileDecisionRequestDecision = "pending"
	ImportScanFileDecisionRequestDecisionSkip    ImportScanFileDecisionRequestDecision = "skip"
)

Defines values for ImportScanFileDecisionRequestDecision.

func (ImportScanFileDecisionRequestDecision) Valid

Valid indicates whether the value is a known member of the ImportScanFileDecisionRequestDecision enum.

type ImportScanFileID

type ImportScanFileID = uint32

ImportScanFileID defines model for ImportScanFileID.

type ImportScanFileJSONResponse

type ImportScanFileJSONResponse ImportScanFile

type ImportScanFileList

type ImportScanFileList struct {
	Items []ImportScanFile `json:"items"`
	Total uint32           `json:"total"`
}

ImportScanFileList defines model for ImportScanFileList.

type ImportScanFileListJSONResponse

type ImportScanFileListJSONResponse ImportScanFileList

type ImportScanFileOutcome

type ImportScanFileOutcome string

ImportScanFileOutcome defines model for ImportScanFile.Outcome.

const (
	ImportScanFileOutcomeAttached ImportScanFileOutcome = "attached"
	ImportScanFileOutcomeCreated  ImportScanFileOutcome = "created"
	ImportScanFileOutcomeFailed   ImportScanFileOutcome = "failed"
	ImportScanFileOutcomePending  ImportScanFileOutcome = "pending"
	ImportScanFileOutcomeSkipped  ImportScanFileOutcome = "skipped"
)

Defines values for ImportScanFileOutcome.

func (ImportScanFileOutcome) Valid

func (e ImportScanFileOutcome) Valid() bool

Valid indicates whether the value is a known member of the ImportScanFileOutcome enum.

type ImportScanImportMode

type ImportScanImportMode string

ImportScanImportMode Per-scan transfer-mode override (rename mode only). Empty when using the global default.

const (
	ImportScanImportModeCopy     ImportScanImportMode = "copy"
	ImportScanImportModeHardlink ImportScanImportMode = "hardlink"
	ImportScanImportModeMove     ImportScanImportMode = "move"
)

Defines values for ImportScanImportMode.

func (ImportScanImportMode) Valid

func (e ImportScanImportMode) Valid() bool

Valid indicates whether the value is a known member of the ImportScanImportMode enum.

type ImportScanJSONResponse

type ImportScanJSONResponse ImportScan

type ImportScanKind

type ImportScanKind string

ImportScanKind Whether this scan reviews movie files or series folders.

const (
	ImportScanKindMovie  ImportScanKind = "movie"
	ImportScanKindSeries ImportScanKind = "series"
)

Defines values for ImportScanKind.

func (ImportScanKind) Valid

func (e ImportScanKind) Valid() bool

Valid indicates whether the value is a known member of the ImportScanKind enum.

type ImportScanList

type ImportScanList struct {
	Items []ImportScan `json:"items"`
	Total uint32       `json:"total"`
}

ImportScanList defines model for ImportScanList.

type ImportScanListJSONResponse

type ImportScanListJSONResponse ImportScanList

type ImportScanMode

type ImportScanMode string

ImportScanMode defines model for ImportScan.Mode.

const (
	ImportScanModeInPlace ImportScanMode = "in_place"
	ImportScanModeRename  ImportScanMode = "rename"
)

Defines values for ImportScanMode.

func (ImportScanMode) Valid

func (e ImportScanMode) Valid() bool

Valid indicates whether the value is a known member of the ImportScanMode enum.

type ImportScanShow

type ImportScanShow struct {
	Candidates       *[]ImportScanShowCandidate   `json:"candidates,omitempty"`
	Classification   ImportScanShowClassification `json:"classification"`
	CreatedAt        *time.Time                   `json:"created_at,omitempty"`
	CreatedTvshowId  *uint32                      `json:"created_tvshow_id,omitempty"`
	Decision         ImportScanShowDecision       `json:"decision"`
	DecisionTvdbId   *uint32                      `json:"decision_tvdb_id,omitempty"`
	ExistingTvshowId *uint32                      `json:"existing_tvshow_id,omitempty"`
	FileCount        uint16                       `json:"file_count"`
	FolderPath       string                       `json:"folder_path"`
	Id               uint32                       `json:"id"`
	Outcome          ImportScanShowOutcome        `json:"outcome"`
	OutcomeMessage   *string                      `json:"outcome_message,omitempty"`
	ParsedTitle      *string                      `json:"parsed_title,omitempty"`
	ParsedYear       *uint16                      `json:"parsed_year,omitempty"`
	TvdbId           *uint32                      `json:"tvdb_id,omitempty"`
	UpdatedAt        *time.Time                   `json:"updated_at,omitempty"`
}

ImportScanShow defines model for ImportScanShow.

type ImportScanShowCandidate

type ImportScanShowCandidate struct {
	Title  string  `json:"title"`
	TvdbId uint32  `json:"tvdb_id"`
	Year   *uint16 `json:"year,omitempty"`
}

ImportScanShowCandidate defines model for ImportScanShowCandidate.

type ImportScanShowClassification

type ImportScanShowClassification string

ImportScanShowClassification defines model for ImportScanShow.Classification.

const (
	ImportScanShowClassificationAmbiguous ImportScanShowClassification = "ambiguous"
	ImportScanShowClassificationConfirmed ImportScanShowClassification = "confirmed"
	ImportScanShowClassificationExisting  ImportScanShowClassification = "existing"
	ImportScanShowClassificationUnmatched ImportScanShowClassification = "unmatched"
)

Defines values for ImportScanShowClassification.

func (ImportScanShowClassification) Valid

Valid indicates whether the value is a known member of the ImportScanShowClassification enum.

type ImportScanShowDecision

type ImportScanShowDecision string

ImportScanShowDecision defines model for ImportScanShow.Decision.

const (
	ImportScanShowDecisionAccept  ImportScanShowDecision = "accept"
	ImportScanShowDecisionPending ImportScanShowDecision = "pending"
	ImportScanShowDecisionSkip    ImportScanShowDecision = "skip"
)

Defines values for ImportScanShowDecision.

func (ImportScanShowDecision) Valid

func (e ImportScanShowDecision) Valid() bool

Valid indicates whether the value is a known member of the ImportScanShowDecision enum.

type ImportScanShowDecisionRequest

type ImportScanShowDecisionRequest struct {
	Decision ImportScanShowDecisionRequestDecision `json:"decision"`
	TvdbId   *uint32                               `json:"tvdb_id,omitempty"`
}

ImportScanShowDecisionRequest defines model for ImportScanShowDecisionRequest.

type ImportScanShowDecisionRequestDecision

type ImportScanShowDecisionRequestDecision string

ImportScanShowDecisionRequestDecision defines model for ImportScanShowDecisionRequest.Decision.

const (
	ImportScanShowDecisionRequestDecisionAccept  ImportScanShowDecisionRequestDecision = "accept"
	ImportScanShowDecisionRequestDecisionPending ImportScanShowDecisionRequestDecision = "pending"
	ImportScanShowDecisionRequestDecisionSkip    ImportScanShowDecisionRequestDecision = "skip"
)

Defines values for ImportScanShowDecisionRequestDecision.

func (ImportScanShowDecisionRequestDecision) Valid

Valid indicates whether the value is a known member of the ImportScanShowDecisionRequestDecision enum.

type ImportScanShowID

type ImportScanShowID = uint32

ImportScanShowID defines model for ImportScanShowID.

type ImportScanShowJSONResponse

type ImportScanShowJSONResponse ImportScanShow

type ImportScanShowList

type ImportScanShowList struct {
	Items []ImportScanShow `json:"items"`
	Total uint32           `json:"total"`
}

ImportScanShowList defines model for ImportScanShowList.

type ImportScanShowListJSONResponse

type ImportScanShowListJSONResponse ImportScanShowList

type ImportScanShowOutcome

type ImportScanShowOutcome string

ImportScanShowOutcome defines model for ImportScanShow.Outcome.

const (
	ImportScanShowOutcomeCreated ImportScanShowOutcome = "created"
	ImportScanShowOutcomeFailed  ImportScanShowOutcome = "failed"
	ImportScanShowOutcomePending ImportScanShowOutcome = "pending"
)

Defines values for ImportScanShowOutcome.

func (ImportScanShowOutcome) Valid

func (e ImportScanShowOutcome) Valid() bool

Valid indicates whether the value is a known member of the ImportScanShowOutcome enum.

type ImportScanStatus

type ImportScanStatus string

ImportScanStatus defines model for ImportScan.Status.

const (
	ImportScanStatusAwaitingReview ImportScanStatus = "awaiting_review"
	ImportScanStatusCancelled      ImportScanStatus = "cancelled"
	ImportScanStatusCommitting     ImportScanStatus = "committing"
	ImportScanStatusCompleted      ImportScanStatus = "completed"
	ImportScanStatusFailed         ImportScanStatus = "failed"
	ImportScanStatusRunning        ImportScanStatus = "running"
)

Defines values for ImportScanStatus.

func (ImportScanStatus) Valid

func (e ImportScanStatus) Valid() bool

Valid indicates whether the value is a known member of the ImportScanStatus enum.

type Indexer

type Indexer struct {
	// ApiKeySet True when an API key is stored. The key itself is never returned.
	ApiKeySet bool            `json:"api_key_set"`
	Enabled   bool            `json:"enabled"`
	Host      string          `json:"host"`
	Name      string          `json:"name"`
	Path      *string         `json:"path,omitempty"`
	Port      uint16          `json:"port"`
	Priority  *uint8          `json:"priority,omitempty"`
	Protocol  IndexerProtocol `json:"protocol"`
	UseSsl    *bool           `json:"use_ssl,omitempty"`
}

Indexer defines model for Indexer.

type IndexerCreate

type IndexerCreate struct {
	ApiKey   string                 `json:"api_key"`
	Enabled  *bool                  `json:"enabled,omitempty"`
	Host     string                 `json:"host"`
	Name     string                 `json:"name"`
	Path     *string                `json:"path,omitempty"`
	Port     uint16                 `json:"port"`
	Priority *uint8                 `json:"priority,omitempty"`
	Protocol *IndexerCreateProtocol `json:"protocol,omitempty"`
	UseSsl   *bool                  `json:"use_ssl,omitempty"`
}

IndexerCreate defines model for IndexerCreate.

type IndexerCreateProtocol

type IndexerCreateProtocol string

IndexerCreateProtocol defines model for IndexerCreate.Protocol.

const (
	IndexerCreateProtocolProwlarr IndexerCreateProtocol = "prowlarr"
	IndexerCreateProtocolTorznab  IndexerCreateProtocol = "torznab"
)

Defines values for IndexerCreateProtocol.

func (IndexerCreateProtocol) Valid

func (e IndexerCreateProtocol) Valid() bool

Valid indicates whether the value is a known member of the IndexerCreateProtocol enum.

type IndexerProtocol

type IndexerProtocol string

IndexerProtocol defines model for Indexer.Protocol.

const (
	IndexerProtocolProwlarr IndexerProtocol = "prowlarr"
	IndexerProtocolTorznab  IndexerProtocol = "torznab"
)

Defines values for IndexerProtocol.

func (IndexerProtocol) Valid

func (e IndexerProtocol) Valid() bool

Valid indicates whether the value is a known member of the IndexerProtocol enum.

type InternalError

type InternalError = Error

InternalError defines model for InternalError.

type InternalErrorJSONResponse

type InternalErrorJSONResponse Error

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type Invite

type Invite struct {
	CreatedAt time.Time            `json:"created_at"`
	Email     *openapi_types.Email `json:"email,omitempty"`
	ExpiresAt time.Time            `json:"expires_at"`
	Id        uint32               `json:"id"`
	Role      InviteRole           `json:"role"`
	UsedAt    *time.Time           `json:"used_at,omitempty"`
}

Invite defines model for Invite.

type InviteCreated

type InviteCreated struct {
	CreatedAt time.Time            `json:"created_at"`
	Email     *openapi_types.Email `json:"email,omitempty"`
	ExpiresAt time.Time            `json:"expires_at"`
	Id        uint32               `json:"id"`
	RawToken  string               `json:"raw_token"`
	Role      InviteCreatedRole    `json:"role"`
	Url       string               `json:"url"`
	UsedAt    *time.Time           `json:"used_at,omitempty"`
}

InviteCreated defines model for InviteCreated.

type InviteCreatedRole

type InviteCreatedRole string

InviteCreatedRole defines model for InviteCreated.Role.

const (
	InviteCreatedRoleAdmin       InviteCreatedRole = "admin"
	InviteCreatedRoleMember      InviteCreatedRole = "member"
	InviteCreatedRoleRequestOnly InviteCreatedRole = "request_only"
)

Defines values for InviteCreatedRole.

func (InviteCreatedRole) Valid

func (e InviteCreatedRole) Valid() bool

Valid indicates whether the value is a known member of the InviteCreatedRole enum.

type InviteRole

type InviteRole string

InviteRole defines model for Invite.Role.

const (
	InviteRoleAdmin       InviteRole = "admin"
	InviteRoleMember      InviteRole = "member"
	InviteRoleRequestOnly InviteRole = "request_only"
)

Defines values for InviteRole.

func (InviteRole) Valid

func (e InviteRole) Valid() bool

Valid indicates whether the value is a known member of the InviteRole enum.

type JWTRotated

type JWTRotated struct {
	// Token New bearer token signed with the rotated secret.
	Token string `json:"token"`
}

JWTRotated defines model for JWTRotated.

type JWTRotatedJSONResponse

type JWTRotatedJSONResponse JWTRotated

type ListActivity200JSONResponse

type ListActivity200JSONResponse struct{ ActivityListJSONResponse }

func (ListActivity200JSONResponse) VisitListActivityResponse

func (response ListActivity200JSONResponse) VisitListActivityResponse(w http.ResponseWriter) error

type ListActivity400JSONResponse

type ListActivity400JSONResponse struct{ BadRequestJSONResponse }

func (ListActivity400JSONResponse) VisitListActivityResponse

func (response ListActivity400JSONResponse) VisitListActivityResponse(w http.ResponseWriter) error

type ListActivityParams

type ListActivityParams struct {
	Type    *ActivityType    `form:"type,omitempty" json:"type,omitempty"`
	MovieId *ActivityMovieID `form:"movie_id,omitempty" json:"movie_id,omitempty"`
	Since   *ActivitySince   `form:"since,omitempty" json:"since,omitempty"`
	Before  *ActivityBefore  `form:"before,omitempty" json:"before,omitempty"`
	Limit   *ActivityLimit   `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor  *ActivityCursor  `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListActivityParams defines parameters for ListActivity.

type ListActivityParamsType

type ListActivityParamsType string

ListActivityParamsType defines parameters for ListActivity.

const (
	ListActivityParamsTypeDownloadCompleted ListActivityParamsType = "download_completed"
	ListActivityParamsTypeDownloadFailed    ListActivityParamsType = "download_failed"
	ListActivityParamsTypeDriftConfirmed    ListActivityParamsType = "drift_confirmed"
	ListActivityParamsTypeDriftDetected     ListActivityParamsType = "drift_detected"
	ListActivityParamsTypeGrabbed           ListActivityParamsType = "grabbed"
	ListActivityParamsTypeImportFailed      ListActivityParamsType = "import_failed"
	ListActivityParamsTypeImported          ListActivityParamsType = "imported"
)

Defines values for ListActivityParamsType.

func (ListActivityParamsType) Valid

func (e ListActivityParamsType) Valid() bool

Valid indicates whether the value is a known member of the ListActivityParamsType enum.

type ListActivityRequestObject

type ListActivityRequestObject struct {
	Params ListActivityParams
}

type ListActivityResponseObject

type ListActivityResponseObject interface {
	VisitListActivityResponse(w http.ResponseWriter) error
}

type ListDownloadClients200JSONResponse

type ListDownloadClients200JSONResponse []DownloadClient

func (ListDownloadClients200JSONResponse) VisitListDownloadClientsResponse

func (response ListDownloadClients200JSONResponse) VisitListDownloadClientsResponse(w http.ResponseWriter) error

type ListDownloadClients500JSONResponse

type ListDownloadClients500JSONResponse struct{ InternalErrorJSONResponse }

func (ListDownloadClients500JSONResponse) VisitListDownloadClientsResponse

func (response ListDownloadClients500JSONResponse) VisitListDownloadClientsResponse(w http.ResponseWriter) error

type ListDownloadClientsRequestObject

type ListDownloadClientsRequestObject struct {
}

type ListDownloadClientsResponseObject

type ListDownloadClientsResponseObject interface {
	VisitListDownloadClientsResponse(w http.ResponseWriter) error
}

type ListDownloadHistory200JSONResponse

type ListDownloadHistory200JSONResponse struct{ DownloadHistoryJSONResponse }

func (ListDownloadHistory200JSONResponse) VisitListDownloadHistoryResponse

func (response ListDownloadHistory200JSONResponse) VisitListDownloadHistoryResponse(w http.ResponseWriter) error

type ListDownloadHistory400JSONResponse

type ListDownloadHistory400JSONResponse struct{ BadRequestJSONResponse }

func (ListDownloadHistory400JSONResponse) VisitListDownloadHistoryResponse

func (response ListDownloadHistory400JSONResponse) VisitListDownloadHistoryResponse(w http.ResponseWriter) error

type ListDownloadHistoryParams

type ListDownloadHistoryParams struct {
	Limit  *ActivityLimit  `form:"limit,omitempty" json:"limit,omitempty"`
	Cursor *ActivityCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
}

ListDownloadHistoryParams defines parameters for ListDownloadHistory.

type ListDownloadHistoryRequestObject

type ListDownloadHistoryRequestObject struct {
	Params ListDownloadHistoryParams
}

type ListDownloadHistoryResponseObject

type ListDownloadHistoryResponseObject interface {
	VisitListDownloadHistoryResponse(w http.ResponseWriter) error
}

type ListImportFiles200JSONResponse

type ListImportFiles200JSONResponse struct{ ImportScanFileListJSONResponse }

func (ListImportFiles200JSONResponse) VisitListImportFilesResponse

func (response ListImportFiles200JSONResponse) VisitListImportFilesResponse(w http.ResponseWriter) error

type ListImportFiles403JSONResponse

type ListImportFiles403JSONResponse struct{ ForbiddenJSONResponse }

func (ListImportFiles403JSONResponse) VisitListImportFilesResponse

func (response ListImportFiles403JSONResponse) VisitListImportFilesResponse(w http.ResponseWriter) error

type ListImportFiles404JSONResponse

type ListImportFiles404JSONResponse struct{ NotFoundJSONResponse }

func (ListImportFiles404JSONResponse) VisitListImportFilesResponse

func (response ListImportFiles404JSONResponse) VisitListImportFilesResponse(w http.ResponseWriter) error

type ListImportFilesParams

type ListImportFilesParams struct {
	Classification *ListImportFilesParamsClassification `form:"classification,omitempty" json:"classification,omitempty"`
	Q              *ImportQuery                         `form:"q,omitempty" json:"q,omitempty"`
	Page           *ImportPage                          `form:"page,omitempty" json:"page,omitempty"`
	Limit          *ImportFileLimit                     `form:"limit,omitempty" json:"limit,omitempty"`
}

ListImportFilesParams defines parameters for ListImportFiles.

type ListImportFilesParamsClassification

type ListImportFilesParamsClassification string

ListImportFilesParamsClassification defines parameters for ListImportFiles.

const (
	ListImportFilesParamsClassificationAmbiguous ListImportFilesParamsClassification = "ambiguous"
	ListImportFilesParamsClassificationConfirmed ListImportFilesParamsClassification = "confirmed"
	ListImportFilesParamsClassificationExisting  ListImportFilesParamsClassification = "existing"
	ListImportFilesParamsClassificationUnmatched ListImportFilesParamsClassification = "unmatched"
)

Defines values for ListImportFilesParamsClassification.

func (ListImportFilesParamsClassification) Valid

Valid indicates whether the value is a known member of the ListImportFilesParamsClassification enum.

type ListImportFilesRequestObject

type ListImportFilesRequestObject struct {
	Id     ResourceID `json:"id"`
	Params ListImportFilesParams
}

type ListImportFilesResponseObject

type ListImportFilesResponseObject interface {
	VisitListImportFilesResponse(w http.ResponseWriter) error
}

type ListImportShows200JSONResponse

type ListImportShows200JSONResponse struct{ ImportScanShowListJSONResponse }

func (ListImportShows200JSONResponse) VisitListImportShowsResponse

func (response ListImportShows200JSONResponse) VisitListImportShowsResponse(w http.ResponseWriter) error

type ListImportShows403JSONResponse

type ListImportShows403JSONResponse struct{ ForbiddenJSONResponse }

func (ListImportShows403JSONResponse) VisitListImportShowsResponse

func (response ListImportShows403JSONResponse) VisitListImportShowsResponse(w http.ResponseWriter) error

type ListImportShows404JSONResponse

type ListImportShows404JSONResponse struct{ NotFoundJSONResponse }

func (ListImportShows404JSONResponse) VisitListImportShowsResponse

func (response ListImportShows404JSONResponse) VisitListImportShowsResponse(w http.ResponseWriter) error

type ListImportShowsParams

type ListImportShowsParams struct {
	Classification *ListImportShowsParamsClassification `form:"classification,omitempty" json:"classification,omitempty"`
	Page           *ImportPage                          `form:"page,omitempty" json:"page,omitempty"`
	Limit          *ImportFileLimit                     `form:"limit,omitempty" json:"limit,omitempty"`
}

ListImportShowsParams defines parameters for ListImportShows.

type ListImportShowsParamsClassification

type ListImportShowsParamsClassification string

ListImportShowsParamsClassification defines parameters for ListImportShows.

const (
	ListImportShowsParamsClassificationAmbiguous ListImportShowsParamsClassification = "ambiguous"
	ListImportShowsParamsClassificationConfirmed ListImportShowsParamsClassification = "confirmed"
	ListImportShowsParamsClassificationExisting  ListImportShowsParamsClassification = "existing"
	ListImportShowsParamsClassificationUnmatched ListImportShowsParamsClassification = "unmatched"
)

Defines values for ListImportShowsParamsClassification.

func (ListImportShowsParamsClassification) Valid

Valid indicates whether the value is a known member of the ListImportShowsParamsClassification enum.

type ListImportShowsRequestObject

type ListImportShowsRequestObject struct {
	Id     ResourceID `json:"id"`
	Params ListImportShowsParams
}

type ListImportShowsResponseObject

type ListImportShowsResponseObject interface {
	VisitListImportShowsResponse(w http.ResponseWriter) error
}

type ListImports200JSONResponse

type ListImports200JSONResponse struct{ ImportScanListJSONResponse }

func (ListImports200JSONResponse) VisitListImportsResponse

func (response ListImports200JSONResponse) VisitListImportsResponse(w http.ResponseWriter) error

type ListImports403JSONResponse

type ListImports403JSONResponse struct{ ForbiddenJSONResponse }

func (ListImports403JSONResponse) VisitListImportsResponse

func (response ListImports403JSONResponse) VisitListImportsResponse(w http.ResponseWriter) error

type ListImportsParams

type ListImportsParams struct {
	Page  *ImportPage  `form:"page,omitempty" json:"page,omitempty"`
	Limit *ImportLimit `form:"limit,omitempty" json:"limit,omitempty"`
}

ListImportsParams defines parameters for ListImports.

type ListImportsRequestObject

type ListImportsRequestObject struct {
	Params ListImportsParams
}

type ListImportsResponseObject

type ListImportsResponseObject interface {
	VisitListImportsResponse(w http.ResponseWriter) error
}

type ListIndexers200JSONResponse

type ListIndexers200JSONResponse []Indexer

func (ListIndexers200JSONResponse) VisitListIndexersResponse

func (response ListIndexers200JSONResponse) VisitListIndexersResponse(w http.ResponseWriter) error

type ListIndexers500JSONResponse

type ListIndexers500JSONResponse struct{ InternalErrorJSONResponse }

func (ListIndexers500JSONResponse) VisitListIndexersResponse

func (response ListIndexers500JSONResponse) VisitListIndexersResponse(w http.ResponseWriter) error

type ListIndexersRequestObject

type ListIndexersRequestObject struct {
}

type ListIndexersResponseObject

type ListIndexersResponseObject interface {
	VisitListIndexersResponse(w http.ResponseWriter) error
}

type ListInvites200JSONResponse

type ListInvites200JSONResponse []Invite

func (ListInvites200JSONResponse) VisitListInvitesResponse

func (response ListInvites200JSONResponse) VisitListInvitesResponse(w http.ResponseWriter) error

type ListInvites403JSONResponse

type ListInvites403JSONResponse struct{ ForbiddenJSONResponse }

func (ListInvites403JSONResponse) VisitListInvitesResponse

func (response ListInvites403JSONResponse) VisitListInvitesResponse(w http.ResponseWriter) error

type ListInvitesRequestObject

type ListInvitesRequestObject struct {
}

type ListInvitesResponseObject

type ListInvitesResponseObject interface {
	VisitListInvitesResponse(w http.ResponseWriter) error
}

type ListMediaServers200JSONResponse

type ListMediaServers200JSONResponse struct{ MediaServerListJSONResponse }

func (ListMediaServers200JSONResponse) VisitListMediaServersResponse

func (response ListMediaServers200JSONResponse) VisitListMediaServersResponse(w http.ResponseWriter) error

type ListMediaServers500JSONResponse

type ListMediaServers500JSONResponse struct{ InternalErrorJSONResponse }

func (ListMediaServers500JSONResponse) VisitListMediaServersResponse

func (response ListMediaServers500JSONResponse) VisitListMediaServersResponse(w http.ResponseWriter) error

type ListMediaServersRequestObject

type ListMediaServersRequestObject struct {
}

type ListMediaServersResponseObject

type ListMediaServersResponseObject interface {
	VisitListMediaServersResponse(w http.ResponseWriter) error
}

type ListMovies200JSONResponse

type ListMovies200JSONResponse PaginatedMovies

func (ListMovies200JSONResponse) VisitListMoviesResponse

func (response ListMovies200JSONResponse) VisitListMoviesResponse(w http.ResponseWriter) error

type ListMovies500JSONResponse

type ListMovies500JSONResponse struct{ InternalErrorJSONResponse }

func (ListMovies500JSONResponse) VisitListMoviesResponse

func (response ListMovies500JSONResponse) VisitListMoviesResponse(w http.ResponseWriter) error

type ListMoviesParams

type ListMoviesParams struct {
	Page  *uint32 `form:"page,omitempty" json:"page,omitempty"`
	Limit *uint16 `form:"limit,omitempty" json:"limit,omitempty"`
}

ListMoviesParams defines parameters for ListMovies.

type ListMoviesRequestObject

type ListMoviesRequestObject struct {
	Params ListMoviesParams
}

type ListMoviesResponseObject

type ListMoviesResponseObject interface {
	VisitListMoviesResponse(w http.ResponseWriter) error
}

type ListMyApiKeys200JSONResponse

type ListMyApiKeys200JSONResponse []ApiKey

func (ListMyApiKeys200JSONResponse) VisitListMyApiKeysResponse

func (response ListMyApiKeys200JSONResponse) VisitListMyApiKeysResponse(w http.ResponseWriter) error

type ListMyApiKeys401JSONResponse

type ListMyApiKeys401JSONResponse struct{ UnauthorizedJSONResponse }

func (ListMyApiKeys401JSONResponse) VisitListMyApiKeysResponse

func (response ListMyApiKeys401JSONResponse) VisitListMyApiKeysResponse(w http.ResponseWriter) error

type ListMyApiKeysRequestObject

type ListMyApiKeysRequestObject struct {
}

type ListMyApiKeysResponseObject

type ListMyApiKeysResponseObject interface {
	VisitListMyApiKeysResponse(w http.ResponseWriter) error
}

type ListMySessions200JSONResponse

type ListMySessions200JSONResponse []Session

func (ListMySessions200JSONResponse) VisitListMySessionsResponse

func (response ListMySessions200JSONResponse) VisitListMySessionsResponse(w http.ResponseWriter) error

type ListMySessions401JSONResponse

type ListMySessions401JSONResponse struct{ UnauthorizedJSONResponse }

func (ListMySessions401JSONResponse) VisitListMySessionsResponse

func (response ListMySessions401JSONResponse) VisitListMySessionsResponse(w http.ResponseWriter) error

type ListMySessionsRequestObject

type ListMySessionsRequestObject struct {
}

type ListMySessionsResponseObject

type ListMySessionsResponseObject interface {
	VisitListMySessionsResponse(w http.ResponseWriter) error
}

type ListOIDCProviders200JSONResponse

type ListOIDCProviders200JSONResponse struct{ OIDCProviderListJSONResponse }

func (ListOIDCProviders200JSONResponse) VisitListOIDCProvidersResponse

func (response ListOIDCProviders200JSONResponse) VisitListOIDCProvidersResponse(w http.ResponseWriter) error

type ListOIDCProviders403JSONResponse

type ListOIDCProviders403JSONResponse struct{ ForbiddenJSONResponse }

func (ListOIDCProviders403JSONResponse) VisitListOIDCProvidersResponse

func (response ListOIDCProviders403JSONResponse) VisitListOIDCProvidersResponse(w http.ResponseWriter) error

type ListOIDCProvidersRequestObject

type ListOIDCProvidersRequestObject struct {
}

type ListOIDCProvidersResponseObject

type ListOIDCProvidersResponseObject interface {
	VisitListOIDCProvidersResponse(w http.ResponseWriter) error
}

type ListPending200JSONResponse

type ListPending200JSONResponse struct{ PendingListJSONResponse }

func (ListPending200JSONResponse) VisitListPendingResponse

func (response ListPending200JSONResponse) VisitListPendingResponse(w http.ResponseWriter) error

type ListPendingRequestObject

type ListPendingRequestObject struct {
}

type ListPendingResponseObject

type ListPendingResponseObject interface {
	VisitListPendingResponse(w http.ResponseWriter) error
}

type ListQualityProfiles200JSONResponse

type ListQualityProfiles200JSONResponse []QualityProfile

func (ListQualityProfiles200JSONResponse) VisitListQualityProfilesResponse

func (response ListQualityProfiles200JSONResponse) VisitListQualityProfilesResponse(w http.ResponseWriter) error

type ListQualityProfiles500JSONResponse

type ListQualityProfiles500JSONResponse struct{ InternalErrorJSONResponse }

func (ListQualityProfiles500JSONResponse) VisitListQualityProfilesResponse

func (response ListQualityProfiles500JSONResponse) VisitListQualityProfilesResponse(w http.ResponseWriter) error

type ListQualityProfilesRequestObject

type ListQualityProfilesRequestObject struct {
}

type ListQualityProfilesResponseObject

type ListQualityProfilesResponseObject interface {
	VisitListQualityProfilesResponse(w http.ResponseWriter) error
}

type ListRequests200JSONResponse

type ListRequests200JSONResponse struct{ RequestsListJSONResponse }

func (ListRequests200JSONResponse) VisitListRequestsResponse

func (response ListRequests200JSONResponse) VisitListRequestsResponse(w http.ResponseWriter) error

type ListRequests401JSONResponse

type ListRequests401JSONResponse struct{ UnauthorizedJSONResponse }

func (ListRequests401JSONResponse) VisitListRequestsResponse

func (response ListRequests401JSONResponse) VisitListRequestsResponse(w http.ResponseWriter) error

type ListRequests500JSONResponse

type ListRequests500JSONResponse struct{ InternalErrorJSONResponse }

func (ListRequests500JSONResponse) VisitListRequestsResponse

func (response ListRequests500JSONResponse) VisitListRequestsResponse(w http.ResponseWriter) error

type ListRequestsParams

type ListRequestsParams struct {
	// Status Filter by request status.
	Status    *ListRequestsParamsStatus    `form:"status,omitempty" json:"status,omitempty"`
	MediaType *ListRequestsParamsMediaType `form:"media_type,omitempty" json:"media_type,omitempty"`
	Page      *RequestPage                 `form:"page,omitempty" json:"page,omitempty"`
	Limit     *RequestLimit                `form:"limit,omitempty" json:"limit,omitempty"`
}

ListRequestsParams defines parameters for ListRequests.

type ListRequestsParamsMediaType

type ListRequestsParamsMediaType string

ListRequestsParamsMediaType defines parameters for ListRequests.

const (
	ListRequestsParamsMediaTypeMovie  ListRequestsParamsMediaType = "movie"
	ListRequestsParamsMediaTypeTvshow ListRequestsParamsMediaType = "tvshow"
)

Defines values for ListRequestsParamsMediaType.

func (ListRequestsParamsMediaType) Valid

Valid indicates whether the value is a known member of the ListRequestsParamsMediaType enum.

type ListRequestsParamsStatus

type ListRequestsParamsStatus string

ListRequestsParamsStatus defines parameters for ListRequests.

const (
	ListRequestsParamsStatusApproved  ListRequestsParamsStatus = "approved"
	ListRequestsParamsStatusAvailable ListRequestsParamsStatus = "available"
	ListRequestsParamsStatusDenied    ListRequestsParamsStatus = "denied"
	ListRequestsParamsStatusPending   ListRequestsParamsStatus = "pending"
)

Defines values for ListRequestsParamsStatus.

func (ListRequestsParamsStatus) Valid

func (e ListRequestsParamsStatus) Valid() bool

Valid indicates whether the value is a known member of the ListRequestsParamsStatus enum.

type ListRequestsRequestObject

type ListRequestsRequestObject struct {
	Params ListRequestsParams
}

type ListRequestsResponseObject

type ListRequestsResponseObject interface {
	VisitListRequestsResponse(w http.ResponseWriter) error
}

type ListSchedules200JSONResponse

type ListSchedules200JSONResponse struct{ ScheduleListJSONResponse }

func (ListSchedules200JSONResponse) VisitListSchedulesResponse

func (response ListSchedules200JSONResponse) VisitListSchedulesResponse(w http.ResponseWriter) error

type ListSchedules401JSONResponse

type ListSchedules401JSONResponse struct{ UnauthorizedJSONResponse }

func (ListSchedules401JSONResponse) VisitListSchedulesResponse

func (response ListSchedules401JSONResponse) VisitListSchedulesResponse(w http.ResponseWriter) error

type ListSchedules403JSONResponse

type ListSchedules403JSONResponse struct{ ForbiddenJSONResponse }

func (ListSchedules403JSONResponse) VisitListSchedulesResponse

func (response ListSchedules403JSONResponse) VisitListSchedulesResponse(w http.ResponseWriter) error

type ListSchedulesRequestObject

type ListSchedulesRequestObject struct {
}

type ListSchedulesResponseObject

type ListSchedulesResponseObject interface {
	VisitListSchedulesResponse(w http.ResponseWriter) error
}

type ListSeries200JSONResponse

type ListSeries200JSONResponse struct{ SeriesListJSONResponse }

func (ListSeries200JSONResponse) VisitListSeriesResponse

func (response ListSeries200JSONResponse) VisitListSeriesResponse(w http.ResponseWriter) error

type ListSeries500JSONResponse

type ListSeries500JSONResponse struct{ InternalErrorJSONResponse }

func (ListSeries500JSONResponse) VisitListSeriesResponse

func (response ListSeries500JSONResponse) VisitListSeriesResponse(w http.ResponseWriter) error

type ListSeriesParams

type ListSeriesParams struct {
	Page  *SeriesPage  `form:"page,omitempty" json:"page,omitempty"`
	Limit *SeriesLimit `form:"limit,omitempty" json:"limit,omitempty"`

	// Status Filter by series_status (continuing/ended/upcoming) or "missing".
	Status *SeriesStatus `form:"status,omitempty" json:"status,omitempty"`

	// Type Filter by series type (standard/anime/daily).
	Type *SeriesType `form:"type,omitempty" json:"type,omitempty"`

	// Query Case-insensitive title substring filter.
	Query *SeriesQuery `form:"query,omitempty" json:"query,omitempty"`

	// Sort Sort key (recent/title/year/rating/episodes).
	Sort *SeriesSort `form:"sort,omitempty" json:"sort,omitempty"`
}

ListSeriesParams defines parameters for ListSeries.

type ListSeriesRequestObject

type ListSeriesRequestObject struct {
	Params ListSeriesParams
}

type ListSeriesResponseObject

type ListSeriesResponseObject interface {
	VisitListSeriesResponse(w http.ResponseWriter) error
}

type ListUpcomingReleases200JSONResponse

type ListUpcomingReleases200JSONResponse struct{ UpcomingListJSONResponse }

func (ListUpcomingReleases200JSONResponse) VisitListUpcomingReleasesResponse

func (response ListUpcomingReleases200JSONResponse) VisitListUpcomingReleasesResponse(w http.ResponseWriter) error

type ListUpcomingReleases400JSONResponse

type ListUpcomingReleases400JSONResponse struct{ BadRequestJSONResponse }

func (ListUpcomingReleases400JSONResponse) VisitListUpcomingReleasesResponse

func (response ListUpcomingReleases400JSONResponse) VisitListUpcomingReleasesResponse(w http.ResponseWriter) error

type ListUpcomingReleasesParams

type ListUpcomingReleasesParams struct {
	From CalendarFrom `form:"from" json:"from"`
	To   CalendarTo   `form:"to" json:"to"`
}

ListUpcomingReleasesParams defines parameters for ListUpcomingReleases.

type ListUpcomingReleasesRequestObject

type ListUpcomingReleasesRequestObject struct {
	Params ListUpcomingReleasesParams
}

type ListUpcomingReleasesResponseObject

type ListUpcomingReleasesResponseObject interface {
	VisitListUpcomingReleasesResponse(w http.ResponseWriter) error
}

type ListUsers200JSONResponse

type ListUsers200JSONResponse struct{ UsersListJSONResponse }

func (ListUsers200JSONResponse) VisitListUsersResponse

func (response ListUsers200JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error

type ListUsers403JSONResponse

type ListUsers403JSONResponse struct{ ForbiddenJSONResponse }

func (ListUsers403JSONResponse) VisitListUsersResponse

func (response ListUsers403JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error

type ListUsersParams

type ListUsersParams struct {
	// Q Case-insensitive substring match on email or display_name.
	Q *string `form:"q,omitempty" json:"q,omitempty"`

	// Role Filter by exact role.
	Role *ListUsersParamsRole `form:"role,omitempty" json:"role,omitempty"`

	// Limit Max items per page (1..100).
	Limit *uint16 `form:"limit,omitempty" json:"limit,omitempty"`

	// Offset Zero-based offset for pagination.
	Offset *uint32 `form:"offset,omitempty" json:"offset,omitempty"`

	// Sort Column to sort by. Defaults to created.
	Sort *ListUsersParamsSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Order Sort direction. Defaults to desc.
	Order *ListUsersParamsOrder `form:"order,omitempty" json:"order,omitempty"`
}

ListUsersParams defines parameters for ListUsers.

type ListUsersParamsOrder

type ListUsersParamsOrder string

ListUsersParamsOrder defines parameters for ListUsers.

const (
	ListUsersParamsOrderAsc  ListUsersParamsOrder = "asc"
	ListUsersParamsOrderDesc ListUsersParamsOrder = "desc"
)

Defines values for ListUsersParamsOrder.

func (ListUsersParamsOrder) Valid

func (e ListUsersParamsOrder) Valid() bool

Valid indicates whether the value is a known member of the ListUsersParamsOrder enum.

type ListUsersParamsRole

type ListUsersParamsRole string

ListUsersParamsRole defines parameters for ListUsers.

const (
	ListUsersParamsRoleAdmin       ListUsersParamsRole = "admin"
	ListUsersParamsRoleMember      ListUsersParamsRole = "member"
	ListUsersParamsRoleRequestOnly ListUsersParamsRole = "request_only"
)

Defines values for ListUsersParamsRole.

func (ListUsersParamsRole) Valid

func (e ListUsersParamsRole) Valid() bool

Valid indicates whether the value is a known member of the ListUsersParamsRole enum.

type ListUsersParamsSort

type ListUsersParamsSort string

ListUsersParamsSort defines parameters for ListUsers.

const (
	ListUsersParamsSortAuth    ListUsersParamsSort = "auth"
	ListUsersParamsSortCreated ListUsersParamsSort = "created"
	ListUsersParamsSortName    ListUsersParamsSort = "name"
	ListUsersParamsSortRole    ListUsersParamsSort = "role"
)

Defines values for ListUsersParamsSort.

func (ListUsersParamsSort) Valid

func (e ListUsersParamsSort) Valid() bool

Valid indicates whether the value is a known member of the ListUsersParamsSort enum.

type ListUsersRequestObject

type ListUsersRequestObject struct {
	Params ListUsersParams
}

type ListUsersResponseObject

type ListUsersResponseObject interface {
	VisitListUsersResponse(w http.ResponseWriter) error
}

type LookupSeries200JSONResponse

type LookupSeries200JSONResponse struct {
	SeriesLookupResultsJSONResponse
}

func (LookupSeries200JSONResponse) VisitLookupSeriesResponse

func (response LookupSeries200JSONResponse) VisitLookupSeriesResponse(w http.ResponseWriter) error

type LookupSeries500JSONResponse

type LookupSeries500JSONResponse struct{ InternalErrorJSONResponse }

func (LookupSeries500JSONResponse) VisitLookupSeriesResponse

func (response LookupSeries500JSONResponse) VisitLookupSeriesResponse(w http.ResponseWriter) error

type LookupSeriesParams

type LookupSeriesParams struct {
	// Query TVDB search query.
	Query SeriesLookupQuery `form:"query" json:"query"`
}

LookupSeriesParams defines parameters for LookupSeries.

type LookupSeriesRequestObject

type LookupSeriesRequestObject struct {
	Params LookupSeriesParams
}

type LookupSeriesResponseObject

type LookupSeriesResponseObject interface {
	VisitLookupSeriesResponse(w http.ResponseWriter) error
}

type MediaFile

type MediaFile struct {
	Format *string `json:"format,omitempty"`
	Id     uint32  `json:"id"`

	// ParsedCodec Video codec (x264/HEVC/AV1/…) parsed from the file's basename at response time.
	ParsedCodec *string `json:"parsed_codec,omitempty"`

	// ParsedResolution Resolution (720p/1080p/2160p) parsed from the file's basename at response time.
	ParsedResolution *string `json:"parsed_resolution,omitempty"`

	// ParsedSource Source tag (BluRay/Remux/WEB-DL/…) parsed from the file's basename at response time.
	ParsedSource *string `json:"parsed_source,omitempty"`
	Path         string  `json:"path"`
	Quality      *string `json:"quality,omitempty"`
	ReleaseGroup *string `json:"release_group,omitempty"`
	Size         int64   `json:"size"`
}

MediaFile defines model for MediaFile.

type MediaServer

type MediaServer struct {
	// ApiKeySet True when an API key/token is stored. The value itself is never returned.
	ApiKeySet bool   `json:"api_key_set"`
	Enabled   bool   `json:"enabled"`
	Host      string `json:"host"`

	// LibrarySection Plex section key. Null on Jellyfin / Emby.
	LibrarySection *string               `json:"library_section,omitempty"`
	Name           string                `json:"name"`
	ServerType     MediaServerServerType `json:"server_type"`
}

MediaServer defines model for MediaServer.

type MediaServerCreate

type MediaServerCreate struct {
	ApiKey         string                      `json:"api_key"`
	Enabled        *bool                       `json:"enabled,omitempty"`
	Host           string                      `json:"host"`
	LibrarySection *string                     `json:"library_section,omitempty"`
	Name           string                      `json:"name"`
	ServerType     MediaServerCreateServerType `json:"server_type"`
}

MediaServerCreate defines model for MediaServerCreate.

type MediaServerCreateServerType

type MediaServerCreateServerType string

MediaServerCreateServerType defines model for MediaServerCreate.ServerType.

const (
	MediaServerCreateServerTypeEmby     MediaServerCreateServerType = "emby"
	MediaServerCreateServerTypeJellyfin MediaServerCreateServerType = "jellyfin"
	MediaServerCreateServerTypePlex     MediaServerCreateServerType = "plex"
)

Defines values for MediaServerCreateServerType.

func (MediaServerCreateServerType) Valid

Valid indicates whether the value is a known member of the MediaServerCreateServerType enum.

type MediaServerCreated

type MediaServerCreated = MediaServer

MediaServerCreated defines model for MediaServerCreated.

type MediaServerCreatedJSONResponse

type MediaServerCreatedJSONResponse MediaServer

type MediaServerDeletedResponse

type MediaServerDeletedResponse struct {
}

type MediaServerDiscovered

type MediaServerDiscovered = MediaServerDiscovery

MediaServerDiscovered defines model for MediaServerDiscovered.

type MediaServerDiscoveredJSONResponse

type MediaServerDiscoveredJSONResponse MediaServerDiscovery

type MediaServerDiscovery

type MediaServerDiscovery struct {
	Sections []MediaServerSection `json:"sections"`
}

MediaServerDiscovery defines model for MediaServerDiscovery.

type MediaServerDiscoveryRequest

type MediaServerDiscoveryRequest struct {
	ApiKey     string                                `json:"api_key"`
	Host       string                                `json:"host"`
	ServerType MediaServerDiscoveryRequestServerType `json:"server_type"`
}

MediaServerDiscoveryRequest defines model for MediaServerDiscoveryRequest.

type MediaServerDiscoveryRequestServerType

type MediaServerDiscoveryRequestServerType string

MediaServerDiscoveryRequestServerType defines model for MediaServerDiscoveryRequest.ServerType.

const (
	MediaServerDiscoveryRequestServerTypeEmby     MediaServerDiscoveryRequestServerType = "emby"
	MediaServerDiscoveryRequestServerTypeJellyfin MediaServerDiscoveryRequestServerType = "jellyfin"
	MediaServerDiscoveryRequestServerTypePlex     MediaServerDiscoveryRequestServerType = "plex"
)

Defines values for MediaServerDiscoveryRequestServerType.

func (MediaServerDiscoveryRequestServerType) Valid

Valid indicates whether the value is a known member of the MediaServerDiscoveryRequestServerType enum.

type MediaServerList

type MediaServerList = MediaServerListView

MediaServerList defines model for MediaServerList.

type MediaServerListJSONResponse

type MediaServerListJSONResponse MediaServerListView

type MediaServerListView

type MediaServerListView struct {
	Items []MediaServer `json:"items"`
}

MediaServerListView defines model for MediaServerListView.

type MediaServerOK

type MediaServerOK = MediaServer

MediaServerOK defines model for MediaServerOK.

type MediaServerOKJSONResponse

type MediaServerOKJSONResponse MediaServer

type MediaServerSection

type MediaServerSection struct {
	Key       string   `json:"key"`
	Locations []string `json:"locations"`
	Name      string   `json:"name"`
	Type      string   `json:"type"`
}

MediaServerSection defines model for MediaServerSection.

type MediaServerServerType

type MediaServerServerType string

MediaServerServerType defines model for MediaServer.ServerType.

const (
	MediaServerServerTypeEmby     MediaServerServerType = "emby"
	MediaServerServerTypeJellyfin MediaServerServerType = "jellyfin"
	MediaServerServerTypePlex     MediaServerServerType = "plex"
)

Defines values for MediaServerServerType.

func (MediaServerServerType) Valid

func (e MediaServerServerType) Valid() bool

Valid indicates whether the value is a known member of the MediaServerServerType enum.

type MediaServerTestOKResponse

type MediaServerTestOKResponse struct {
}

type MediaServerUpdate

type MediaServerUpdate struct {
	ApiKey         *string                      `json:"api_key,omitempty"`
	Enabled        *bool                        `json:"enabled,omitempty"`
	Host           *string                      `json:"host,omitempty"`
	LibrarySection *string                      `json:"library_section,omitempty"`
	Name           *string                      `json:"name,omitempty"`
	ServerType     *MediaServerUpdateServerType `json:"server_type,omitempty"`
}

MediaServerUpdate defines model for MediaServerUpdate.

type MediaServerUpdateServerType

type MediaServerUpdateServerType string

MediaServerUpdateServerType defines model for MediaServerUpdate.ServerType.

const (
	MediaServerUpdateServerTypeEmby     MediaServerUpdateServerType = "emby"
	MediaServerUpdateServerTypeJellyfin MediaServerUpdateServerType = "jellyfin"
	MediaServerUpdateServerTypePlex     MediaServerUpdateServerType = "plex"
)

Defines values for MediaServerUpdateServerType.

func (MediaServerUpdateServerType) Valid

Valid indicates whether the value is a known member of the MediaServerUpdateServerType enum.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type MonitorToggle

type MonitorToggle = MonitorToggleRequest

MonitorToggle defines model for MonitorToggle.

type MonitorToggleRequest

type MonitorToggleRequest struct {
	Monitored bool `json:"monitored"`
}

MonitorToggleRequest defines model for MonitorToggleRequest.

type Movie

type Movie struct {
	// Cast Top-billed cast from TMDB. Only populated by GET /movies/{id};
	// absent in list responses.
	Cast *[]CastMember `json:"cast,omitempty"`

	// Genres TMDB genres. Only populated by GET /movies/{id}; absent in
	// list responses.
	Genres *[]string `json:"genres,omitempty"`
	Id     uint32    `json:"id"`

	// MediaFiles Files attached to this movie. Only populated by GET /movies/{id};
	// absent in list responses.
	MediaFiles *[]MediaFile `json:"media_files,omitempty"`

	// Monitored Whether Streamline auto-searches and upgrades this title.
	Monitored bool `json:"monitored"`

	// OriginalTitle TMDB original_title. Equals title when the localized title
	// matches the original; UI hides it in that case.
	OriginalTitle string  `json:"original_title"`
	Overview      *string `json:"overview,omitempty"`

	// QualityProfile Name of the quality profile (empty resolves to the default).
	QualityProfile *string `json:"quality_profile,omitempty"`

	// Rating TMDB vote average (0–10). Only populated by GET /movies/{id}
	// and omitted when TMDB has no votes.
	Rating *float32 `json:"rating,omitempty"`

	// Runtime Runtime in minutes. Zero when unknown.
	Runtime *uint16     `json:"runtime,omitempty"`
	Status  MovieStatus `json:"status"`
	Title   string      `json:"title"`
	TmdbId  uint32      `json:"tmdb_id"`
	Year    uint16      `json:"year"`
}

Movie defines model for Movie.

type MovieCounts

type MovieCounts struct {
	Available   uint32 `json:"available"`
	Downloading uint32 `json:"downloading"`
	Total       uint32 `json:"total"`

	// Trend Cumulative library size at the end of each day over the last 30
	// days, oldest first. The final element equals `total`. All zeros
	// when the library is empty.
	Trend  []uint32 `json:"trend"`
	Wanted uint32   `json:"wanted"`
}

MovieCounts defines model for MovieCounts.

type MovieCountsResponse

type MovieCountsResponse = MovieCounts

MovieCountsResponse defines model for MovieCountsResponse.

type MovieCountsResponseJSONResponse

type MovieCountsResponseJSONResponse MovieCounts
type MoviePlayOnLinks = PlayOnLinkList

MoviePlayOnLinks defines model for MoviePlayOnLinks.

type MoviePlayOnLinksJSONResponse

type MoviePlayOnLinksJSONResponse PlayOnLinkList

type MovieRecommendations

type MovieRecommendations struct {
	Items []TMDBMovieResult `json:"items"`
}

MovieRecommendations defines model for MovieRecommendations.

type MovieRecommendationsJSONResponse

type MovieRecommendationsJSONResponse MovieRecommendations

type MovieRefreshed

type MovieRefreshed = Movie

MovieRefreshed defines model for MovieRefreshed.

type MovieRefreshedJSONResponse

type MovieRefreshedJSONResponse Movie

type MovieRenamePlan

type MovieRenamePlan = RenamePlan

MovieRenamePlan defines model for MovieRenamePlan.

type MovieRenamePlanJSONResponse

type MovieRenamePlanJSONResponse RenamePlan

type MovieSearchAccepted

type MovieSearchAccepted struct {
	DispatchedAt time.Time `json:"dispatched_at"`
	MovieId      uint32    `json:"movie_id"`
}

MovieSearchAccepted defines model for MovieSearchAccepted.

type MovieSearchAcceptedJSONResponse

type MovieSearchAcceptedJSONResponse MovieSearchAccepted

type MovieStatus

type MovieStatus string

MovieStatus defines model for Movie.Status.

const (
	MovieStatusAvailable   MovieStatus = "available"
	MovieStatusDownloading MovieStatus = "downloading"
	MovieStatusWanted      MovieStatus = "wanted"
)

Defines values for MovieStatus.

func (MovieStatus) Valid

func (e MovieStatus) Valid() bool

Valid indicates whether the value is a known member of the MovieStatus enum.

type NoContentResponse

type NoContentResponse struct {
}

type NotFound

type NotFound = Error

NotFound defines model for NotFound.

type NotFoundJSONResponse

type NotFoundJSONResponse Error

type OIDCProvider

type OIDCProvider = OIDCProviderView

OIDCProvider defines model for OIDCProvider.

type OIDCProviderCreate

type OIDCProviderCreate struct {
	ClientId     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	Issuer       string `json:"issuer"`
	Name         string `json:"name"`
}

OIDCProviderCreate defines model for OIDCProviderCreate.

type OIDCProviderCreated

type OIDCProviderCreated = OIDCProviderView

OIDCProviderCreated defines model for OIDCProviderCreated.

type OIDCProviderCreatedJSONResponse

type OIDCProviderCreatedJSONResponse OIDCProviderView

type OIDCProviderJSONResponse

type OIDCProviderJSONResponse OIDCProviderView

type OIDCProviderList

type OIDCProviderList = OIDCProviderListView

OIDCProviderList defines model for OIDCProviderList.

type OIDCProviderListJSONResponse

type OIDCProviderListJSONResponse OIDCProviderListView

type OIDCProviderListView

type OIDCProviderListView struct {
	Providers []OIDCProviderView `json:"providers"`

	// RestartRequired True when OIDC mutations are pending a process restart.
	RestartRequired bool `json:"restart_required"`
}

OIDCProviderListView defines model for OIDCProviderListView.

type OIDCProviderName

type OIDCProviderName = string

OIDCProviderName defines model for OIDCProviderName.

type OIDCProviderPatch

type OIDCProviderPatch struct {
	ClientId     *string `json:"client_id,omitempty"`
	ClientSecret *string `json:"client_secret,omitempty"`
	Issuer       *string `json:"issuer,omitempty"`
}

OIDCProviderPatch Only provided fields are applied. A blank/omitted client_secret preserves the existing secret.

type OIDCProviderView

type OIDCProviderView struct {
	ClientId string `json:"client_id"`

	// ClientSecretSet True when a client secret is configured. Raw secret is never returned.
	ClientSecretSet bool   `json:"client_secret_set"`
	Issuer          string `json:"issuer"`
	Name            string `json:"name"`
}

OIDCProviderView defines model for OIDCProviderView.

type PaginatedMovies

type PaginatedMovies struct {
	Items []Movie `json:"items"`
	Limit uint16  `json:"limit"`
	Page  uint32  `json:"page"`
	Total uint32  `json:"total"`
}

PaginatedMovies defines model for PaginatedMovies.

type PaginatedRequests

type PaginatedRequests struct {
	Items []Request `json:"items"`
	Limit uint32    `json:"limit"`
	Page  uint32    `json:"page"`
	Total uint32    `json:"total"`
}

PaginatedRequests defines model for PaginatedRequests.

type PaginatedTVShows

type PaginatedTVShows struct {
	Items []TVShow `json:"items"`
	Limit uint16   `json:"limit"`
	Page  uint32   `json:"page"`
	Total uint32   `json:"total"`
}

PaginatedTVShows defines model for PaginatedTVShows.

type PasswordResetResponse

type PasswordResetResponse struct {
}

type PatchEpisode204Response

type PatchEpisode204Response = EpisodeUpdatedResponse

func (PatchEpisode204Response) VisitPatchEpisodeResponse

func (response PatchEpisode204Response) VisitPatchEpisodeResponse(w http.ResponseWriter) error

type PatchEpisode404JSONResponse

type PatchEpisode404JSONResponse struct{ NotFoundJSONResponse }

func (PatchEpisode404JSONResponse) VisitPatchEpisodeResponse

func (response PatchEpisode404JSONResponse) VisitPatchEpisodeResponse(w http.ResponseWriter) error

type PatchEpisode500JSONResponse

type PatchEpisode500JSONResponse struct{ InternalErrorJSONResponse }

func (PatchEpisode500JSONResponse) VisitPatchEpisodeResponse

func (response PatchEpisode500JSONResponse) VisitPatchEpisodeResponse(w http.ResponseWriter) error

type PatchEpisodeJSONRequestBody

type PatchEpisodeJSONRequestBody = MonitorToggleRequest

PatchEpisodeJSONRequestBody defines body for PatchEpisode for application/json ContentType.

type PatchEpisodeRequestObject

type PatchEpisodeRequestObject struct {
	Id        ResourceID `json:"id"`
	EpisodeId EpisodeID  `json:"episodeId"`
	Body      *PatchEpisodeJSONRequestBody
}

type PatchEpisodeResponseObject

type PatchEpisodeResponseObject interface {
	VisitPatchEpisodeResponse(w http.ResponseWriter) error
}

type PatchMovie200JSONResponse

type PatchMovie200JSONResponse Movie

func (PatchMovie200JSONResponse) VisitPatchMovieResponse

func (response PatchMovie200JSONResponse) VisitPatchMovieResponse(w http.ResponseWriter) error

type PatchMovie404JSONResponse

type PatchMovie404JSONResponse struct{ NotFoundJSONResponse }

func (PatchMovie404JSONResponse) VisitPatchMovieResponse

func (response PatchMovie404JSONResponse) VisitPatchMovieResponse(w http.ResponseWriter) error

type PatchMovie500JSONResponse

type PatchMovie500JSONResponse struct{ InternalErrorJSONResponse }

func (PatchMovie500JSONResponse) VisitPatchMovieResponse

func (response PatchMovie500JSONResponse) VisitPatchMovieResponse(w http.ResponseWriter) error

type PatchMovieJSONRequestBody

type PatchMovieJSONRequestBody = UpdateMovieRequest

PatchMovieJSONRequestBody defines body for PatchMovie for application/json ContentType.

type PatchMovieRequestObject

type PatchMovieRequestObject struct {
	Id   ResourceID `json:"id"`
	Body *PatchMovieJSONRequestBody
}

type PatchMovieResponseObject

type PatchMovieResponseObject interface {
	VisitPatchMovieResponse(w http.ResponseWriter) error
}

type PatchSeason204Response

type PatchSeason204Response = SeasonUpdatedResponse

func (PatchSeason204Response) VisitPatchSeasonResponse

func (response PatchSeason204Response) VisitPatchSeasonResponse(w http.ResponseWriter) error

type PatchSeason404JSONResponse

type PatchSeason404JSONResponse struct{ NotFoundJSONResponse }

func (PatchSeason404JSONResponse) VisitPatchSeasonResponse

func (response PatchSeason404JSONResponse) VisitPatchSeasonResponse(w http.ResponseWriter) error

type PatchSeason500JSONResponse

type PatchSeason500JSONResponse struct{ InternalErrorJSONResponse }

func (PatchSeason500JSONResponse) VisitPatchSeasonResponse

func (response PatchSeason500JSONResponse) VisitPatchSeasonResponse(w http.ResponseWriter) error

type PatchSeasonJSONRequestBody

type PatchSeasonJSONRequestBody = MonitorToggleRequest

PatchSeasonJSONRequestBody defines body for PatchSeason for application/json ContentType.

type PatchSeasonRequestObject

type PatchSeasonRequestObject struct {
	Id     ResourceID   `json:"id"`
	Number SeasonNumber `json:"number"`
	Body   *PatchSeasonJSONRequestBody
}

type PatchSeasonResponseObject

type PatchSeasonResponseObject interface {
	VisitPatchSeasonResponse(w http.ResponseWriter) error
}

type PatchSeries

type PatchSeries = PatchSeriesRequest

PatchSeries defines model for PatchSeries.

type PatchSeries200JSONResponse

type PatchSeries200JSONResponse struct{ SeriesDetailJSONResponse }

func (PatchSeries200JSONResponse) VisitPatchSeriesResponse

func (response PatchSeries200JSONResponse) VisitPatchSeriesResponse(w http.ResponseWriter) error

type PatchSeries404JSONResponse

type PatchSeries404JSONResponse struct{ NotFoundJSONResponse }

func (PatchSeries404JSONResponse) VisitPatchSeriesResponse

func (response PatchSeries404JSONResponse) VisitPatchSeriesResponse(w http.ResponseWriter) error

type PatchSeries500JSONResponse

type PatchSeries500JSONResponse struct{ InternalErrorJSONResponse }

func (PatchSeries500JSONResponse) VisitPatchSeriesResponse

func (response PatchSeries500JSONResponse) VisitPatchSeriesResponse(w http.ResponseWriter) error

type PatchSeriesJSONRequestBody

type PatchSeriesJSONRequestBody = PatchSeriesRequest

PatchSeriesJSONRequestBody defines body for PatchSeries for application/json ContentType.

type PatchSeriesRequest

type PatchSeriesRequest struct {
	Monitored      *bool                     `json:"monitored,omitempty"`
	Preset         *PatchSeriesRequestPreset `json:"preset,omitempty"`
	QualityProfile *string                   `json:"quality_profile,omitempty"`
}

PatchSeriesRequest defines model for PatchSeriesRequest.

type PatchSeriesRequestObject

type PatchSeriesRequestObject struct {
	Id   ResourceID `json:"id"`
	Body *PatchSeriesJSONRequestBody
}

type PatchSeriesRequestPreset

type PatchSeriesRequestPreset string

PatchSeriesRequestPreset defines model for PatchSeriesRequest.Preset.

const (
	PatchSeriesRequestPresetAll      PatchSeriesRequestPreset = "all"
	PatchSeriesRequestPresetExisting PatchSeriesRequestPreset = "existing"
	PatchSeriesRequestPresetFuture   PatchSeriesRequestPreset = "future"
	PatchSeriesRequestPresetMissing  PatchSeriesRequestPreset = "missing"
	PatchSeriesRequestPresetNone     PatchSeriesRequestPreset = "none"
	PatchSeriesRequestPresetPilot    PatchSeriesRequestPreset = "pilot"
)

Defines values for PatchSeriesRequestPreset.

func (PatchSeriesRequestPreset) Valid

func (e PatchSeriesRequestPreset) Valid() bool

Valid indicates whether the value is a known member of the PatchSeriesRequestPreset enum.

type PatchSeriesResponseObject

type PatchSeriesResponseObject interface {
	VisitPatchSeriesResponse(w http.ResponseWriter) error
}

type PauseQueueItem204Response

type PauseQueueItem204Response = NoContentResponse

func (PauseQueueItem204Response) VisitPauseQueueItemResponse

func (response PauseQueueItem204Response) VisitPauseQueueItemResponse(w http.ResponseWriter) error

type PauseQueueItem403JSONResponse

type PauseQueueItem403JSONResponse struct{ ForbiddenJSONResponse }

func (PauseQueueItem403JSONResponse) VisitPauseQueueItemResponse

func (response PauseQueueItem403JSONResponse) VisitPauseQueueItemResponse(w http.ResponseWriter) error

type PauseQueueItem404JSONResponse

type PauseQueueItem404JSONResponse struct{ NotFoundJSONResponse }

func (PauseQueueItem404JSONResponse) VisitPauseQueueItemResponse

func (response PauseQueueItem404JSONResponse) VisitPauseQueueItemResponse(w http.ResponseWriter) error

type PauseQueueItem500JSONResponse

type PauseQueueItem500JSONResponse struct{ InternalErrorJSONResponse }

func (PauseQueueItem500JSONResponse) VisitPauseQueueItemResponse

func (response PauseQueueItem500JSONResponse) VisitPauseQueueItemResponse(w http.ResponseWriter) error

type PauseQueueItemRequestObject

type PauseQueueItemRequestObject struct {
	Id ResourceID `json:"id"`
}

type PauseQueueItemResponseObject

type PauseQueueItemResponseObject interface {
	VisitPauseQueueItemResponse(w http.ResponseWriter) error
}

type PauseSchedule200JSONResponse

type PauseSchedule200JSONResponse struct{ ScheduleJSONResponse }

func (PauseSchedule200JSONResponse) VisitPauseScheduleResponse

func (response PauseSchedule200JSONResponse) VisitPauseScheduleResponse(w http.ResponseWriter) error

type PauseSchedule401JSONResponse

type PauseSchedule401JSONResponse struct{ UnauthorizedJSONResponse }

func (PauseSchedule401JSONResponse) VisitPauseScheduleResponse

func (response PauseSchedule401JSONResponse) VisitPauseScheduleResponse(w http.ResponseWriter) error

type PauseSchedule403JSONResponse

type PauseSchedule403JSONResponse struct{ ForbiddenJSONResponse }

func (PauseSchedule403JSONResponse) VisitPauseScheduleResponse

func (response PauseSchedule403JSONResponse) VisitPauseScheduleResponse(w http.ResponseWriter) error

type PauseSchedule404JSONResponse

type PauseSchedule404JSONResponse struct{ NotFoundJSONResponse }

func (PauseSchedule404JSONResponse) VisitPauseScheduleResponse

func (response PauseSchedule404JSONResponse) VisitPauseScheduleResponse(w http.ResponseWriter) error

type PauseSchedule409JSONResponse

type PauseSchedule409JSONResponse struct{ ConflictJSONResponse }

func (PauseSchedule409JSONResponse) VisitPauseScheduleResponse

func (response PauseSchedule409JSONResponse) VisitPauseScheduleResponse(w http.ResponseWriter) error

type PauseScheduleRequestObject

type PauseScheduleRequestObject struct {
	Name ScheduleName `json:"name"`
}

type PauseScheduleResponseObject

type PauseScheduleResponseObject interface {
	VisitPauseScheduleResponse(w http.ResponseWriter) error
}

type PendingItem

type PendingItem struct {
	// HasFile Whether the matched movie/episode currently has a file. The UI
	// shows Replace (swap) when true and Import (accept into the empty
	// slot) when false.
	HasFile bool          `json:"has_file"`
	Id      uint32        `json:"id"`
	Media   *PendingMedia `json:"media,omitempty"`
	Quality string        `json:"quality"`
	Reason  string        `json:"reason"`
	Title   string        `json:"title"`
}

PendingItem defines model for PendingItem.

type PendingList

type PendingList struct {
	Items []PendingItem `json:"items"`
}

PendingList defines model for PendingList.

type PendingListJSONResponse

type PendingListJSONResponse PendingList

type PendingMedia

type PendingMedia struct {
	Episode *uint16          `json:"episode,omitempty"`
	Id      uint32           `json:"id"`
	Season  *uint16          `json:"season,omitempty"`
	Title   string           `json:"title"`
	Type    PendingMediaType `json:"type"`
	Year    *uint16          `json:"year,omitempty"`
}

PendingMedia defines model for PendingMedia.

type PendingMediaType

type PendingMediaType string

PendingMediaType defines model for PendingMedia.Type.

const (
	PendingMediaTypeEpisode PendingMediaType = "episode"
	PendingMediaTypeMovie   PendingMediaType = "movie"
)

Defines values for PendingMediaType.

func (PendingMediaType) Valid

func (e PendingMediaType) Valid() bool

Valid indicates whether the value is a known member of the PendingMediaType enum.

type PlayOnLink struct {
	// Fallback True when url points to the server home, not the movie page.
	Fallback   bool                 `json:"fallback"`
	Name       string               `json:"name"`
	ServerId   uint32               `json:"server_id"`
	ServerType PlayOnLinkServerType `json:"server_type"`
	Status     PlayOnLinkStatus     `json:"status"`
	Url        *string              `json:"url,omitempty"`
}

PlayOnLink defines model for PlayOnLink.

type PlayOnLinkList struct {
	Items []PlayOnLink `json:"items"`
}

PlayOnLinkList defines model for PlayOnLinkList.

type PlayOnLinkServerType

type PlayOnLinkServerType string

PlayOnLinkServerType defines model for PlayOnLink.ServerType.

const (
	PlayOnLinkServerTypeEmby     PlayOnLinkServerType = "emby"
	PlayOnLinkServerTypeJellyfin PlayOnLinkServerType = "jellyfin"
	PlayOnLinkServerTypePlex     PlayOnLinkServerType = "plex"
)

Defines values for PlayOnLinkServerType.

func (PlayOnLinkServerType) Valid

func (e PlayOnLinkServerType) Valid() bool

Valid indicates whether the value is a known member of the PlayOnLinkServerType enum.

type PlayOnLinkStatus

type PlayOnLinkStatus string

PlayOnLinkStatus defines model for PlayOnLink.Status.

const (
	PlayOnLinkStatusFallback    PlayOnLinkStatus = "fallback"
	PlayOnLinkStatusResolved    PlayOnLinkStatus = "resolved"
	PlayOnLinkStatusUnavailable PlayOnLinkStatus = "unavailable"
)

Defines values for PlayOnLinkStatus.

func (PlayOnLinkStatus) Valid

func (e PlayOnLinkStatus) Valid() bool

Valid indicates whether the value is a known member of the PlayOnLinkStatus enum.

type QualityProfile

type QualityProfile struct {
	MinResolution       QualityProfileMinResolution       `json:"min_resolution"`
	Name                string                            `json:"name"`
	PreferredResolution QualityProfilePreferredResolution `json:"preferred_resolution"`
	UpgradeAllowed      bool                              `json:"upgrade_allowed"`
}

QualityProfile defines model for QualityProfile.

type QualityProfileCreate

type QualityProfileCreate struct {
	MinResolution       *QualityProfileCreateMinResolution      `json:"min_resolution,omitempty"`
	Name                string                                  `json:"name"`
	PreferredResolution QualityProfileCreatePreferredResolution `json:"preferred_resolution"`
	UpgradeAllowed      *bool                                   `json:"upgrade_allowed,omitempty"`
}

QualityProfileCreate defines model for QualityProfileCreate.

type QualityProfileCreateMinResolution

type QualityProfileCreateMinResolution string

QualityProfileCreateMinResolution defines model for QualityProfileCreate.MinResolution.

const (
	QualityProfileCreateMinResolutionN1080p QualityProfileCreateMinResolution = "1080p"
	QualityProfileCreateMinResolutionN2160p QualityProfileCreateMinResolution = "2160p"
	QualityProfileCreateMinResolutionN720p  QualityProfileCreateMinResolution = "720p"
)

Defines values for QualityProfileCreateMinResolution.

func (QualityProfileCreateMinResolution) Valid

Valid indicates whether the value is a known member of the QualityProfileCreateMinResolution enum.

type QualityProfileCreatePreferredResolution

type QualityProfileCreatePreferredResolution string

QualityProfileCreatePreferredResolution defines model for QualityProfileCreate.PreferredResolution.

const (
	QualityProfileCreatePreferredResolutionN1080p QualityProfileCreatePreferredResolution = "1080p"
	QualityProfileCreatePreferredResolutionN2160p QualityProfileCreatePreferredResolution = "2160p"
	QualityProfileCreatePreferredResolutionN720p  QualityProfileCreatePreferredResolution = "720p"
)

Defines values for QualityProfileCreatePreferredResolution.

func (QualityProfileCreatePreferredResolution) Valid

Valid indicates whether the value is a known member of the QualityProfileCreatePreferredResolution enum.

type QualityProfileMinResolution

type QualityProfileMinResolution string

QualityProfileMinResolution defines model for QualityProfile.MinResolution.

const (
	QualityProfileMinResolutionN1080p QualityProfileMinResolution = "1080p"
	QualityProfileMinResolutionN2160p QualityProfileMinResolution = "2160p"
	QualityProfileMinResolutionN720p  QualityProfileMinResolution = "720p"
)

Defines values for QualityProfileMinResolution.

func (QualityProfileMinResolution) Valid

Valid indicates whether the value is a known member of the QualityProfileMinResolution enum.

type QualityProfilePreferredResolution

type QualityProfilePreferredResolution string

QualityProfilePreferredResolution defines model for QualityProfile.PreferredResolution.

const (
	QualityProfilePreferredResolutionN1080p QualityProfilePreferredResolution = "1080p"
	QualityProfilePreferredResolutionN2160p QualityProfilePreferredResolution = "2160p"
	QualityProfilePreferredResolutionN720p  QualityProfilePreferredResolution = "720p"
)

Defines values for QualityProfilePreferredResolution.

func (QualityProfilePreferredResolution) Valid

Valid indicates whether the value is a known member of the QualityProfilePreferredResolution enum.

type QueueEntry

type QueueEntry struct {
	CreatedAt      time.Time `json:"created_at"`
	DownloadClient *string   `json:"download_client,omitempty"`
	DownloadSpeed  *int64    `json:"download_speed,omitempty"`

	// Episode Show + S/E context for a TV download record (queue/history rows render
	// "<show> · SxxExx" from it). Absent on movie records.
	Episode       *EpisodeRef      `json:"episode,omitempty"`
	Eta           *int64           `json:"eta,omitempty"`
	FailureReason *string          `json:"failure_reason,omitempty"`
	Id            uint32           `json:"id"`
	Indexer       *string          `json:"indexer,omitempty"`
	Movie         Movie            `json:"movie"`
	Progress      float64          `json:"progress"`
	Quality       *string          `json:"quality,omitempty"`
	ReleaseGroup  *string          `json:"release_group,omitempty"`
	Size          int64            `json:"size"`
	Status        QueueEntryStatus `json:"status"`
	Title         string           `json:"title"`
}

QueueEntry defines model for QueueEntry.

type QueueEntryStatus

type QueueEntryStatus string

QueueEntryStatus defines model for QueueEntry.Status.

const (
	QueueEntryStatusDownloading QueueEntryStatus = "downloading"
	QueueEntryStatusError       QueueEntryStatus = "error"
	QueueEntryStatusImporting   QueueEntryStatus = "importing"
	QueueEntryStatusPaused      QueueEntryStatus = "paused"
)

Defines values for QueueEntryStatus.

func (QueueEntryStatus) Valid

func (e QueueEntryStatus) Valid() bool

Valid indicates whether the value is a known member of the QueueEntryStatus enum.

type RefreshMovieMetadata200JSONResponse

type RefreshMovieMetadata200JSONResponse struct{ MovieRefreshedJSONResponse }

func (RefreshMovieMetadata200JSONResponse) VisitRefreshMovieMetadataResponse

func (response RefreshMovieMetadata200JSONResponse) VisitRefreshMovieMetadataResponse(w http.ResponseWriter) error

type RefreshMovieMetadata404JSONResponse

type RefreshMovieMetadata404JSONResponse struct{ NotFoundJSONResponse }

func (RefreshMovieMetadata404JSONResponse) VisitRefreshMovieMetadataResponse

func (response RefreshMovieMetadata404JSONResponse) VisitRefreshMovieMetadataResponse(w http.ResponseWriter) error

type RefreshMovieMetadata500JSONResponse

type RefreshMovieMetadata500JSONResponse struct{ InternalErrorJSONResponse }

func (RefreshMovieMetadata500JSONResponse) VisitRefreshMovieMetadataResponse

func (response RefreshMovieMetadata500JSONResponse) VisitRefreshMovieMetadataResponse(w http.ResponseWriter) error

type RefreshMovieMetadataRequestObject

type RefreshMovieMetadataRequestObject struct {
	Id ResourceID `json:"id"`
}

type RefreshMovieMetadataResponseObject

type RefreshMovieMetadataResponseObject interface {
	VisitRefreshMovieMetadataResponse(w http.ResponseWriter) error
}

type RefreshSeriesMetadata200JSONResponse

type RefreshSeriesMetadata200JSONResponse struct{ SeriesDetailJSONResponse }

func (RefreshSeriesMetadata200JSONResponse) VisitRefreshSeriesMetadataResponse

func (response RefreshSeriesMetadata200JSONResponse) VisitRefreshSeriesMetadataResponse(w http.ResponseWriter) error

type RefreshSeriesMetadata404JSONResponse

type RefreshSeriesMetadata404JSONResponse struct{ NotFoundJSONResponse }

func (RefreshSeriesMetadata404JSONResponse) VisitRefreshSeriesMetadataResponse

func (response RefreshSeriesMetadata404JSONResponse) VisitRefreshSeriesMetadataResponse(w http.ResponseWriter) error

type RefreshSeriesMetadata500JSONResponse

type RefreshSeriesMetadata500JSONResponse struct{ InternalErrorJSONResponse }

func (RefreshSeriesMetadata500JSONResponse) VisitRefreshSeriesMetadataResponse

func (response RefreshSeriesMetadata500JSONResponse) VisitRefreshSeriesMetadataResponse(w http.ResponseWriter) error

type RefreshSeriesMetadataRequestObject

type RefreshSeriesMetadataRequestObject struct {
	Id ResourceID `json:"id"`
}

type RefreshSeriesMetadataResponseObject

type RefreshSeriesMetadataResponseObject interface {
	VisitRefreshSeriesMetadataResponse(w http.ResponseWriter) error
}

type RenameMovieFiles200JSONResponse

type RenameMovieFiles200JSONResponse struct{ MovieRenamePlanJSONResponse }

func (RenameMovieFiles200JSONResponse) VisitRenameMovieFilesResponse

func (response RenameMovieFiles200JSONResponse) VisitRenameMovieFilesResponse(w http.ResponseWriter) error

type RenameMovieFiles404JSONResponse

type RenameMovieFiles404JSONResponse struct{ NotFoundJSONResponse }

func (RenameMovieFiles404JSONResponse) VisitRenameMovieFilesResponse

func (response RenameMovieFiles404JSONResponse) VisitRenameMovieFilesResponse(w http.ResponseWriter) error

type RenameMovieFiles500JSONResponse

type RenameMovieFiles500JSONResponse struct{ InternalErrorJSONResponse }

func (RenameMovieFiles500JSONResponse) VisitRenameMovieFilesResponse

func (response RenameMovieFiles500JSONResponse) VisitRenameMovieFilesResponse(w http.ResponseWriter) error

type RenameMovieFilesParams

type RenameMovieFilesParams struct {
	// Preview When true, returns the rename plan without applying it.
	Preview *RenamePreview `form:"preview,omitempty" json:"preview,omitempty"`
}

RenameMovieFilesParams defines parameters for RenameMovieFiles.

type RenameMovieFilesRequestObject

type RenameMovieFilesRequestObject struct {
	Id     ResourceID `json:"id"`
	Params RenameMovieFilesParams
}

type RenameMovieFilesResponseObject

type RenameMovieFilesResponseObject interface {
	VisitRenameMovieFilesResponse(w http.ResponseWriter) error
}

type RenameOperation

type RenameOperation struct {
	From        string `json:"from"`
	MediaFileId uint32 `json:"media_file_id"`
	To          string `json:"to"`
}

RenameOperation defines model for RenameOperation.

type RenamePlan

type RenamePlan struct {
	MovieId    uint32            `json:"movie_id"`
	Operations []RenameOperation `json:"operations"`
}

RenamePlan defines model for RenamePlan.

type RenamePreview

type RenamePreview = bool

RenamePreview defines model for RenamePreview.

type RenameSeriesFiles200JSONResponse

type RenameSeriesFiles200JSONResponse struct{ SeriesRenamePlanJSONResponse }

func (RenameSeriesFiles200JSONResponse) VisitRenameSeriesFilesResponse

func (response RenameSeriesFiles200JSONResponse) VisitRenameSeriesFilesResponse(w http.ResponseWriter) error

type RenameSeriesFiles404JSONResponse

type RenameSeriesFiles404JSONResponse struct{ NotFoundJSONResponse }

func (RenameSeriesFiles404JSONResponse) VisitRenameSeriesFilesResponse

func (response RenameSeriesFiles404JSONResponse) VisitRenameSeriesFilesResponse(w http.ResponseWriter) error

type RenameSeriesFiles500JSONResponse

type RenameSeriesFiles500JSONResponse struct{ InternalErrorJSONResponse }

func (RenameSeriesFiles500JSONResponse) VisitRenameSeriesFilesResponse

func (response RenameSeriesFiles500JSONResponse) VisitRenameSeriesFilesResponse(w http.ResponseWriter) error

type RenameSeriesFilesParams

type RenameSeriesFilesParams struct {
	// Preview When true, returns the rename plan without applying it.
	Preview *RenamePreview `form:"preview,omitempty" json:"preview,omitempty"`
}

RenameSeriesFilesParams defines parameters for RenameSeriesFiles.

type RenameSeriesFilesRequestObject

type RenameSeriesFilesRequestObject struct {
	Id     ResourceID `json:"id"`
	Params RenameSeriesFilesParams
}

type RenameSeriesFilesResponseObject

type RenameSeriesFilesResponseObject interface {
	VisitRenameSeriesFilesResponse(w http.ResponseWriter) error
}

type ReopenRequest200JSONResponse

type ReopenRequest200JSONResponse struct{ RequestDetailJSONResponse }

func (ReopenRequest200JSONResponse) VisitReopenRequestResponse

func (response ReopenRequest200JSONResponse) VisitReopenRequestResponse(w http.ResponseWriter) error

type ReopenRequest403JSONResponse

type ReopenRequest403JSONResponse struct{ ForbiddenJSONResponse }

func (ReopenRequest403JSONResponse) VisitReopenRequestResponse

func (response ReopenRequest403JSONResponse) VisitReopenRequestResponse(w http.ResponseWriter) error

type ReopenRequest404JSONResponse

type ReopenRequest404JSONResponse struct{ NotFoundJSONResponse }

func (ReopenRequest404JSONResponse) VisitReopenRequestResponse

func (response ReopenRequest404JSONResponse) VisitReopenRequestResponse(w http.ResponseWriter) error

type ReopenRequest500JSONResponse

type ReopenRequest500JSONResponse struct{ InternalErrorJSONResponse }

func (ReopenRequest500JSONResponse) VisitReopenRequestResponse

func (response ReopenRequest500JSONResponse) VisitReopenRequestResponse(w http.ResponseWriter) error

type ReopenRequestRequestObject

type ReopenRequestRequestObject struct {
	Id ResourceID `json:"id"`
}

type ReopenRequestResponseObject

type ReopenRequestResponseObject interface {
	VisitReopenRequestResponse(w http.ResponseWriter) error
}

type ReplacePending

type ReplacePending = ReplacePendingRequest

ReplacePending defines model for ReplacePending.

type ReplacePending204Response

type ReplacePending204Response = NoContentResponse

func (ReplacePending204Response) VisitReplacePendingResponse

func (response ReplacePending204Response) VisitReplacePendingResponse(w http.ResponseWriter) error

type ReplacePending403JSONResponse

type ReplacePending403JSONResponse struct{ ForbiddenJSONResponse }

func (ReplacePending403JSONResponse) VisitReplacePendingResponse

func (response ReplacePending403JSONResponse) VisitReplacePendingResponse(w http.ResponseWriter) error

type ReplacePending404JSONResponse

type ReplacePending404JSONResponse struct{ NotFoundJSONResponse }

func (ReplacePending404JSONResponse) VisitReplacePendingResponse

func (response ReplacePending404JSONResponse) VisitReplacePendingResponse(w http.ResponseWriter) error

type ReplacePending500JSONResponse

type ReplacePending500JSONResponse struct{ InternalErrorJSONResponse }

func (ReplacePending500JSONResponse) VisitReplacePendingResponse

func (response ReplacePending500JSONResponse) VisitReplacePendingResponse(w http.ResponseWriter) error

type ReplacePendingJSONRequestBody

type ReplacePendingJSONRequestBody = ReplacePendingRequest

ReplacePendingJSONRequestBody defines body for ReplacePending for application/json ContentType.

type ReplacePendingRequest

type ReplacePendingRequest struct {
	// RemoveOldTorrent When true, also remove the existing file's source torrent from
	// its download client (best-effort).
	RemoveOldTorrent *bool `json:"remove_old_torrent,omitempty"`
}

ReplacePendingRequest defines model for ReplacePendingRequest.

type ReplacePendingRequestObject

type ReplacePendingRequestObject struct {
	Id   ResourceID `json:"id"`
	Body *ReplacePendingJSONRequestBody
}

type ReplacePendingResponseObject

type ReplacePendingResponseObject interface {
	VisitReplacePendingResponse(w http.ResponseWriter) error
}

type Request

type Request struct {
	ApprovedBy *RequestUser `json:"approved_by,omitempty"`
	CreatedAt  time.Time    `json:"created_at"`
	Id         uint32       `json:"id"`

	// MediaId TMDB id for movies, TVDB id for shows.
	MediaId   uint32           `json:"media_id"`
	MediaType RequestMediaType `json:"media_type"`
	Reason    *string          `json:"reason,omitempty"`
	Requester RequestUser      `json:"requester"`
	Status    RequestStatus    `json:"status"`
	Title     string           `json:"title"`
	UpdatedAt time.Time        `json:"updated_at"`
}

Request defines model for Request.

type RequestCounts

type RequestCounts struct {
	Approved  int `json:"approved"`
	Available int `json:"available"`
	Denied    int `json:"denied"`
	Pending   int `json:"pending"`
}

RequestCounts defines model for RequestCounts.

type RequestCountsResponse

type RequestCountsResponse = RequestCounts

RequestCountsResponse defines model for RequestCountsResponse.

type RequestCountsResponseJSONResponse

type RequestCountsResponseJSONResponse RequestCounts

type RequestCreated

type RequestCreated = Request

RequestCreated defines model for RequestCreated.

type RequestCreatedJSONResponse

type RequestCreatedJSONResponse Request

type RequestDetail

type RequestDetail = Request

RequestDetail defines model for RequestDetail.

type RequestDetailJSONResponse

type RequestDetailJSONResponse Request

type RequestLimit

type RequestLimit = uint32

RequestLimit defines model for RequestLimit.

type RequestMediaDetailResponse

type RequestMediaDetailResponse = RequestMediaDetails

RequestMediaDetailResponse defines model for RequestMediaDetailResponse.

type RequestMediaDetailResponseJSONResponse

type RequestMediaDetailResponseJSONResponse RequestMediaDetails

type RequestMediaDetails

type RequestMediaDetails struct {
	Genres    *[]string `json:"genres,omitempty"`
	Overview  string    `json:"overview"`
	PosterUrl *string   `json:"poster_url,omitempty"`
	Rating    *float32  `json:"rating,omitempty"`
	Runtime   *uint16   `json:"runtime,omitempty"`
	Year      *uint16   `json:"year,omitempty"`
}

RequestMediaDetails defines model for RequestMediaDetails.

type RequestMediaType

type RequestMediaType string

RequestMediaType defines model for Request.MediaType.

const (
	RequestMediaTypeMovie  RequestMediaType = "movie"
	RequestMediaTypeTvshow RequestMediaType = "tvshow"
)

Defines values for RequestMediaType.

func (RequestMediaType) Valid

func (e RequestMediaType) Valid() bool

Valid indicates whether the value is a known member of the RequestMediaType enum.

type RequestPage

type RequestPage = uint32

RequestPage defines model for RequestPage.

type RequestStatus

type RequestStatus string

RequestStatus defines model for Request.Status.

const (
	RequestStatusApproved  RequestStatus = "approved"
	RequestStatusAvailable RequestStatus = "available"
	RequestStatusDenied    RequestStatus = "denied"
	RequestStatusPending   RequestStatus = "pending"
)

Defines values for RequestStatus.

func (RequestStatus) Valid

func (e RequestStatus) Valid() bool

Valid indicates whether the value is a known member of the RequestStatus enum.

type RequestUser

type RequestUser struct {
	DisplayName *string `json:"display_name,omitempty"`
	Email       string  `json:"email"`
	Id          uint32  `json:"id"`
}

RequestUser defines model for RequestUser.

type RequestsList

type RequestsList = PaginatedRequests

RequestsList defines model for RequestsList.

type RequestsListJSONResponse

type RequestsListJSONResponse PaginatedRequests

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ResetPasswordRequest

type ResetPasswordRequest struct {
	// NewPassword Replacement password. Must meet the local password policy.
	NewPassword string `json:"new_password"`
}

ResetPasswordRequest defines model for ResetPasswordRequest.

type ResetUserPassword204Response

type ResetUserPassword204Response = PasswordResetResponse

func (ResetUserPassword204Response) VisitResetUserPasswordResponse

func (response ResetUserPassword204Response) VisitResetUserPasswordResponse(w http.ResponseWriter) error

type ResetUserPassword403JSONResponse

type ResetUserPassword403JSONResponse struct{ ForbiddenJSONResponse }

func (ResetUserPassword403JSONResponse) VisitResetUserPasswordResponse

func (response ResetUserPassword403JSONResponse) VisitResetUserPasswordResponse(w http.ResponseWriter) error

type ResetUserPassword404JSONResponse

type ResetUserPassword404JSONResponse struct{ NotFoundJSONResponse }

func (ResetUserPassword404JSONResponse) VisitResetUserPasswordResponse

func (response ResetUserPassword404JSONResponse) VisitResetUserPasswordResponse(w http.ResponseWriter) error

type ResetUserPassword422JSONResponse

type ResetUserPassword422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (ResetUserPassword422JSONResponse) VisitResetUserPasswordResponse

func (response ResetUserPassword422JSONResponse) VisitResetUserPasswordResponse(w http.ResponseWriter) error

type ResetUserPasswordJSONRequestBody

type ResetUserPasswordJSONRequestBody = ResetPasswordRequest

ResetUserPasswordJSONRequestBody defines body for ResetUserPassword for application/json ContentType.

type ResetUserPasswordRequestObject

type ResetUserPasswordRequestObject struct {
	Uid  UserID `json:"uid"`
	Body *ResetUserPasswordJSONRequestBody
}

type ResetUserPasswordResponseObject

type ResetUserPasswordResponseObject interface {
	VisitResetUserPasswordResponse(w http.ResponseWriter) error
}

type ResourceID

type ResourceID = uint32

ResourceID defines model for ResourceID.

type ResourceName

type ResourceName = string

ResourceName defines model for ResourceName.

type ResumeQueueItem204Response

type ResumeQueueItem204Response = NoContentResponse

func (ResumeQueueItem204Response) VisitResumeQueueItemResponse

func (response ResumeQueueItem204Response) VisitResumeQueueItemResponse(w http.ResponseWriter) error

type ResumeQueueItem403JSONResponse

type ResumeQueueItem403JSONResponse struct{ ForbiddenJSONResponse }

func (ResumeQueueItem403JSONResponse) VisitResumeQueueItemResponse

func (response ResumeQueueItem403JSONResponse) VisitResumeQueueItemResponse(w http.ResponseWriter) error

type ResumeQueueItem404JSONResponse

type ResumeQueueItem404JSONResponse struct{ NotFoundJSONResponse }

func (ResumeQueueItem404JSONResponse) VisitResumeQueueItemResponse

func (response ResumeQueueItem404JSONResponse) VisitResumeQueueItemResponse(w http.ResponseWriter) error

type ResumeQueueItem500JSONResponse

type ResumeQueueItem500JSONResponse struct{ InternalErrorJSONResponse }

func (ResumeQueueItem500JSONResponse) VisitResumeQueueItemResponse

func (response ResumeQueueItem500JSONResponse) VisitResumeQueueItemResponse(w http.ResponseWriter) error

type ResumeQueueItemRequestObject

type ResumeQueueItemRequestObject struct {
	Id ResourceID `json:"id"`
}

type ResumeQueueItemResponseObject

type ResumeQueueItemResponseObject interface {
	VisitResumeQueueItemResponse(w http.ResponseWriter) error
}

type ResumeSchedule200JSONResponse

type ResumeSchedule200JSONResponse struct{ ScheduleJSONResponse }

func (ResumeSchedule200JSONResponse) VisitResumeScheduleResponse

func (response ResumeSchedule200JSONResponse) VisitResumeScheduleResponse(w http.ResponseWriter) error

type ResumeSchedule401JSONResponse

type ResumeSchedule401JSONResponse struct{ UnauthorizedJSONResponse }

func (ResumeSchedule401JSONResponse) VisitResumeScheduleResponse

func (response ResumeSchedule401JSONResponse) VisitResumeScheduleResponse(w http.ResponseWriter) error

type ResumeSchedule403JSONResponse

type ResumeSchedule403JSONResponse struct{ ForbiddenJSONResponse }

func (ResumeSchedule403JSONResponse) VisitResumeScheduleResponse

func (response ResumeSchedule403JSONResponse) VisitResumeScheduleResponse(w http.ResponseWriter) error

type ResumeSchedule404JSONResponse

type ResumeSchedule404JSONResponse struct{ NotFoundJSONResponse }

func (ResumeSchedule404JSONResponse) VisitResumeScheduleResponse

func (response ResumeSchedule404JSONResponse) VisitResumeScheduleResponse(w http.ResponseWriter) error

type ResumeSchedule409JSONResponse

type ResumeSchedule409JSONResponse struct{ ConflictJSONResponse }

func (ResumeSchedule409JSONResponse) VisitResumeScheduleResponse

func (response ResumeSchedule409JSONResponse) VisitResumeScheduleResponse(w http.ResponseWriter) error

type ResumeScheduleRequestObject

type ResumeScheduleRequestObject struct {
	Name ScheduleName `json:"name"`
}

type ResumeScheduleResponseObject

type ResumeScheduleResponseObject interface {
	VisitResumeScheduleResponse(w http.ResponseWriter) error
}

type RevokeInvite204Response

type RevokeInvite204Response struct {
}

func (RevokeInvite204Response) VisitRevokeInviteResponse

func (response RevokeInvite204Response) VisitRevokeInviteResponse(w http.ResponseWriter) error

type RevokeInvite403JSONResponse

type RevokeInvite403JSONResponse struct{ ForbiddenJSONResponse }

func (RevokeInvite403JSONResponse) VisitRevokeInviteResponse

func (response RevokeInvite403JSONResponse) VisitRevokeInviteResponse(w http.ResponseWriter) error

type RevokeInvite404JSONResponse

type RevokeInvite404JSONResponse struct{ NotFoundJSONResponse }

func (RevokeInvite404JSONResponse) VisitRevokeInviteResponse

func (response RevokeInvite404JSONResponse) VisitRevokeInviteResponse(w http.ResponseWriter) error

type RevokeInviteRequestObject

type RevokeInviteRequestObject struct {
	Id ResourceID `json:"id"`
}

type RevokeInviteResponseObject

type RevokeInviteResponseObject interface {
	VisitRevokeInviteResponse(w http.ResponseWriter) error
}

type RevokeUserApiKey204Response

type RevokeUserApiKey204Response = UserApiKeyRevokedResponse

func (RevokeUserApiKey204Response) VisitRevokeUserApiKeyResponse

func (response RevokeUserApiKey204Response) VisitRevokeUserApiKeyResponse(w http.ResponseWriter) error

type RevokeUserApiKey403JSONResponse

type RevokeUserApiKey403JSONResponse struct{ ForbiddenJSONResponse }

func (RevokeUserApiKey403JSONResponse) VisitRevokeUserApiKeyResponse

func (response RevokeUserApiKey403JSONResponse) VisitRevokeUserApiKeyResponse(w http.ResponseWriter) error

type RevokeUserApiKey404JSONResponse

type RevokeUserApiKey404JSONResponse struct{ NotFoundJSONResponse }

func (RevokeUserApiKey404JSONResponse) VisitRevokeUserApiKeyResponse

func (response RevokeUserApiKey404JSONResponse) VisitRevokeUserApiKeyResponse(w http.ResponseWriter) error

type RevokeUserApiKeyRequestObject

type RevokeUserApiKeyRequestObject struct {
	Uid UserID   `json:"uid"`
	Kid ApiKeyID `json:"kid"`
}

type RevokeUserApiKeyResponseObject

type RevokeUserApiKeyResponseObject interface {
	VisitRevokeUserApiKeyResponse(w http.ResponseWriter) error
}

type RevokeUserSession204Response

type RevokeUserSession204Response = UserSessionRevokedResponse

func (RevokeUserSession204Response) VisitRevokeUserSessionResponse

func (response RevokeUserSession204Response) VisitRevokeUserSessionResponse(w http.ResponseWriter) error

type RevokeUserSession403JSONResponse

type RevokeUserSession403JSONResponse struct{ ForbiddenJSONResponse }

func (RevokeUserSession403JSONResponse) VisitRevokeUserSessionResponse

func (response RevokeUserSession403JSONResponse) VisitRevokeUserSessionResponse(w http.ResponseWriter) error

type RevokeUserSession404JSONResponse

type RevokeUserSession404JSONResponse struct{ NotFoundJSONResponse }

func (RevokeUserSession404JSONResponse) VisitRevokeUserSessionResponse

func (response RevokeUserSession404JSONResponse) VisitRevokeUserSessionResponse(w http.ResponseWriter) error

type RevokeUserSessionRequestObject

type RevokeUserSessionRequestObject struct {
	Uid UserID    `json:"uid"`
	Sid SessionID `json:"sid"`
}

type RevokeUserSessionResponseObject

type RevokeUserSessionResponseObject interface {
	VisitRevokeUserSessionResponse(w http.ResponseWriter) error
}

type RotateJWTSecret200JSONResponse

type RotateJWTSecret200JSONResponse struct{ JWTRotatedJSONResponse }

func (RotateJWTSecret200JSONResponse) VisitRotateJWTSecretResponse

func (response RotateJWTSecret200JSONResponse) VisitRotateJWTSecretResponse(w http.ResponseWriter) error

type RotateJWTSecret403JSONResponse

type RotateJWTSecret403JSONResponse struct{ ForbiddenJSONResponse }

func (RotateJWTSecret403JSONResponse) VisitRotateJWTSecretResponse

func (response RotateJWTSecret403JSONResponse) VisitRotateJWTSecretResponse(w http.ResponseWriter) error

type RotateJWTSecret500JSONResponse

type RotateJWTSecret500JSONResponse struct{ InternalErrorJSONResponse }

func (RotateJWTSecret500JSONResponse) VisitRotateJWTSecretResponse

func (response RotateJWTSecret500JSONResponse) VisitRotateJWTSecretResponse(w http.ResponseWriter) error

type RotateJWTSecretRequestObject

type RotateJWTSecretRequestObject struct {
}

type RotateJWTSecretResponseObject

type RotateJWTSecretResponseObject interface {
	VisitRotateJWTSecretResponse(w http.ResponseWriter) error
}

type RunSchedule200JSONResponse

type RunSchedule200JSONResponse struct{ ScheduleJSONResponse }

func (RunSchedule200JSONResponse) VisitRunScheduleResponse

func (response RunSchedule200JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error

type RunSchedule401JSONResponse

type RunSchedule401JSONResponse struct{ UnauthorizedJSONResponse }

func (RunSchedule401JSONResponse) VisitRunScheduleResponse

func (response RunSchedule401JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error

type RunSchedule403JSONResponse

type RunSchedule403JSONResponse struct{ ForbiddenJSONResponse }

func (RunSchedule403JSONResponse) VisitRunScheduleResponse

func (response RunSchedule403JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error

type RunSchedule404JSONResponse

type RunSchedule404JSONResponse struct{ NotFoundJSONResponse }

func (RunSchedule404JSONResponse) VisitRunScheduleResponse

func (response RunSchedule404JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error

type RunSchedule409JSONResponse

type RunSchedule409JSONResponse struct{ ConflictJSONResponse }

func (RunSchedule409JSONResponse) VisitRunScheduleResponse

func (response RunSchedule409JSONResponse) VisitRunScheduleResponse(w http.ResponseWriter) error

type RunScheduleRequestObject

type RunScheduleRequestObject struct {
	Name ScheduleName `json:"name"`
}

type RunScheduleResponseObject

type RunScheduleResponseObject interface {
	VisitRunScheduleResponse(w http.ResponseWriter) error
}

type Schedule

type Schedule struct {
	// Interval Go duration string (e.g. "15m").
	Interval       string     `json:"interval"`
	LastDurationMs int32      `json:"last_duration_ms"`
	LastError      *string    `json:"last_error,omitempty"`
	LastFinishedAt *time.Time `json:"last_finished_at,omitempty"`
	LastStartedAt  *time.Time `json:"last_started_at,omitempty"`

	// Name Job identifier (e.g. "rss-sync").
	Name      string     `json:"name"`
	NextRunAt *time.Time `json:"next_run_at,omitempty"`
	Paused    bool       `json:"paused"`

	// Running Whether the job is currently executing.
	Running bool           `json:"running"`
	Status  ScheduleStatus `json:"status"`

	// System Read-only system job. PATCH/pause/resume/run rejected.
	System bool `json:"system"`
}

Schedule defines model for Schedule.

type ScheduleJSONResponse

type ScheduleJSONResponse Schedule

type ScheduleList

type ScheduleList struct {
	Items []Schedule `json:"items"`
}

ScheduleList defines model for ScheduleList.

type ScheduleListJSONResponse

type ScheduleListJSONResponse ScheduleList

type ScheduleName

type ScheduleName = string

ScheduleName defines model for ScheduleName.

type ScheduleStatus

type ScheduleStatus string

ScheduleStatus defines model for Schedule.Status.

const (
	ScheduleStatusError   ScheduleStatus = "error"
	ScheduleStatusNever   ScheduleStatus = "never"
	ScheduleStatusSkipped ScheduleStatus = "skipped"
	ScheduleStatusSuccess ScheduleStatus = "success"
)

Defines values for ScheduleStatus.

func (ScheduleStatus) Valid

func (e ScheduleStatus) Valid() bool

Valid indicates whether the value is a known member of the ScheduleStatus enum.

type ScheduleUpdate

type ScheduleUpdate struct {
	// Interval Go duration string. Minimum 10s.
	Interval string `json:"interval"`
}

ScheduleUpdate defines model for ScheduleUpdate.

type SearchMovie200JSONResponse

type SearchMovie200JSONResponse []SearchResult

func (SearchMovie200JSONResponse) VisitSearchMovieResponse

func (response SearchMovie200JSONResponse) VisitSearchMovieResponse(w http.ResponseWriter) error

type SearchMovie404JSONResponse

type SearchMovie404JSONResponse struct{ NotFoundJSONResponse }

func (SearchMovie404JSONResponse) VisitSearchMovieResponse

func (response SearchMovie404JSONResponse) VisitSearchMovieResponse(w http.ResponseWriter) error

type SearchMovie500JSONResponse

type SearchMovie500JSONResponse struct{ InternalErrorJSONResponse }

func (SearchMovie500JSONResponse) VisitSearchMovieResponse

func (response SearchMovie500JSONResponse) VisitSearchMovieResponse(w http.ResponseWriter) error

type SearchMovieNow202JSONResponse

type SearchMovieNow202JSONResponse struct {
	MovieSearchAcceptedJSONResponse
}

func (SearchMovieNow202JSONResponse) VisitSearchMovieNowResponse

func (response SearchMovieNow202JSONResponse) VisitSearchMovieNowResponse(w http.ResponseWriter) error

type SearchMovieNow404JSONResponse

type SearchMovieNow404JSONResponse struct{ NotFoundJSONResponse }

func (SearchMovieNow404JSONResponse) VisitSearchMovieNowResponse

func (response SearchMovieNow404JSONResponse) VisitSearchMovieNowResponse(w http.ResponseWriter) error

type SearchMovieNow500JSONResponse

type SearchMovieNow500JSONResponse struct{ InternalErrorJSONResponse }

func (SearchMovieNow500JSONResponse) VisitSearchMovieNowResponse

func (response SearchMovieNow500JSONResponse) VisitSearchMovieNowResponse(w http.ResponseWriter) error

type SearchMovieNowRequestObject

type SearchMovieNowRequestObject struct {
	Id ResourceID `json:"id"`
}

type SearchMovieNowResponseObject

type SearchMovieNowResponseObject interface {
	VisitSearchMovieNowResponse(w http.ResponseWriter) error
}

type SearchMovieRequestObject

type SearchMovieRequestObject struct {
	Id ResourceID `json:"id"`
}

type SearchMovieResponseObject

type SearchMovieResponseObject interface {
	VisitSearchMovieResponse(w http.ResponseWriter) error
}

type SearchResult

type SearchResult struct {
	Codec        *string    `json:"codec,omitempty"`
	DownloadUrl  string     `json:"download_url"`
	Indexer      *string    `json:"indexer,omitempty"`
	InfoUrl      *string    `json:"info_url,omitempty"`
	Leechers     *uint32    `json:"leechers,omitempty"`
	PublishedAt  *time.Time `json:"published_at,omitempty"`
	ReleaseGroup *string    `json:"release_group,omitempty"`

	// ReplaceExisting Grab requests only: delete already-present file(s) for the covered media before importing (manual overwrite). Unset/false keeps existing files. Ignored in search-result responses.
	ReplaceExisting *bool   `json:"replace_existing,omitempty"`
	Resolution      *string `json:"resolution,omitempty"`
	Seeders         uint32  `json:"seeders"`
	Size            int64   `json:"size"`
	Source          *string `json:"source,omitempty"`
	Title           string  `json:"title"`
}

SearchResult defines model for SearchResult.

type SearchResultList

type SearchResultList struct {
	Items []SearchResult `json:"items"`
}

SearchResultList defines model for SearchResultList.

type SearchResults

type SearchResults = SearchResultList

SearchResults defines model for SearchResults.

type SearchResultsJSONResponse

type SearchResultsJSONResponse SearchResultList

type SearchSeries202Response

type SearchSeries202Response = SeriesSearchAcceptedResponse

func (SearchSeries202Response) VisitSearchSeriesResponse

func (response SearchSeries202Response) VisitSearchSeriesResponse(w http.ResponseWriter) error

type SearchSeries404JSONResponse

type SearchSeries404JSONResponse struct{ NotFoundJSONResponse }

func (SearchSeries404JSONResponse) VisitSearchSeriesResponse

func (response SearchSeries404JSONResponse) VisitSearchSeriesResponse(w http.ResponseWriter) error

type SearchSeries500JSONResponse

type SearchSeries500JSONResponse struct{ InternalErrorJSONResponse }

func (SearchSeries500JSONResponse) VisitSearchSeriesResponse

func (response SearchSeries500JSONResponse) VisitSearchSeriesResponse(w http.ResponseWriter) error

type SearchSeriesRequestObject

type SearchSeriesRequestObject struct {
	Id ResourceID `json:"id"`
}

type SearchSeriesResponseObject

type SearchSeriesResponseObject interface {
	VisitSearchSeriesResponse(w http.ResponseWriter) error
}

type SearchTMDBMovie200JSONResponse

type SearchTMDBMovie200JSONResponse []TMDBMovieResult

func (SearchTMDBMovie200JSONResponse) VisitSearchTMDBMovieResponse

func (response SearchTMDBMovie200JSONResponse) VisitSearchTMDBMovieResponse(w http.ResponseWriter) error

type SearchTMDBMovie500JSONResponse

type SearchTMDBMovie500JSONResponse struct{ InternalErrorJSONResponse }

func (SearchTMDBMovie500JSONResponse) VisitSearchTMDBMovieResponse

func (response SearchTMDBMovie500JSONResponse) VisitSearchTMDBMovieResponse(w http.ResponseWriter) error

type SearchTMDBMovieParams

type SearchTMDBMovieParams struct {
	Q    string  `form:"q" json:"q"`
	Year *uint16 `form:"year,omitempty" json:"year,omitempty"`
}

SearchTMDBMovieParams defines parameters for SearchTMDBMovie.

type SearchTMDBMovieRequestObject

type SearchTMDBMovieRequestObject struct {
	Params SearchTMDBMovieParams
}

type SearchTMDBMovieResponseObject

type SearchTMDBMovieResponseObject interface {
	VisitSearchTMDBMovieResponse(w http.ResponseWriter) error
}

type Season

type Season struct {
	// Available Episodes in this season that have a media file.
	Available *int       `json:"available,omitempty"`
	Episodes  *[]Episode `json:"episodes,omitempty"`
	Id        uint32     `json:"id"`

	// Missing Aired/undated episodes without a file.
	Missing   *int    `json:"missing,omitempty"`
	Monitored bool    `json:"monitored"`
	Name      *string `json:"name,omitempty"`
	Number    uint16  `json:"number"`
	Total     *int    `json:"total,omitempty"`

	// Unaired Episodes whose air_date is in the future.
	Unaired *int `json:"unaired,omitempty"`
}

Season defines model for Season.

type SeasonNumber

type SeasonNumber = uint16

SeasonNumber defines model for SeasonNumber.

type SeasonUpdatedResponse

type SeasonUpdatedResponse struct {
}

type SeriesCountsResponse

type SeriesCountsResponse = TVShowCounts

SeriesCountsResponse defines model for SeriesCountsResponse.

type SeriesCountsResponseJSONResponse

type SeriesCountsResponseJSONResponse TVShowCounts

type SeriesCreated

type SeriesCreated = TVShow

SeriesCreated defines model for SeriesCreated.

type SeriesCreatedJSONResponse

type SeriesCreatedJSONResponse TVShow

type SeriesDeletedResponse

type SeriesDeletedResponse struct {
}

type SeriesDetail

type SeriesDetail = TVShow

SeriesDetail defines model for SeriesDetail.

type SeriesDetailJSONResponse

type SeriesDetailJSONResponse TVShow

type SeriesGrabAcceptedResponse

type SeriesGrabAcceptedResponse struct {
}

type SeriesLimit

type SeriesLimit = uint16

SeriesLimit defines model for SeriesLimit.

type SeriesList

type SeriesList = PaginatedTVShows

SeriesList defines model for SeriesList.

type SeriesListJSONResponse

type SeriesListJSONResponse PaginatedTVShows

type SeriesLookupQuery

type SeriesLookupQuery = string

SeriesLookupQuery defines model for SeriesLookupQuery.

type SeriesLookupResult

type SeriesLookupResult struct {
	// AlreadyAdded True when a series with this tvdb_id is already in the library.
	AlreadyAdded *bool   `json:"already_added,omitempty"`
	Network      *string `json:"network,omitempty"`
	Overview     *string `json:"overview,omitempty"`

	// PosterUrl Series poster image URL from TVDB. Empty when the entry has
	// no artwork.
	PosterUrl *string `json:"poster_url,omitempty"`
	Title     string  `json:"title"`
	TvdbId    uint32  `json:"tvdb_id"`
	Year      uint16  `json:"year"`
}

SeriesLookupResult defines model for SeriesLookupResult.

type SeriesLookupResultList

type SeriesLookupResultList struct {
	Items []SeriesLookupResult `json:"items"`
}

SeriesLookupResultList defines model for SeriesLookupResultList.

type SeriesLookupResults

type SeriesLookupResults = SeriesLookupResultList

SeriesLookupResults defines model for SeriesLookupResults.

type SeriesLookupResultsJSONResponse

type SeriesLookupResultsJSONResponse SeriesLookupResultList

type SeriesPage

type SeriesPage = uint32

SeriesPage defines model for SeriesPage.

type SeriesPlayOnLinks = PlayOnLinkList

SeriesPlayOnLinks defines model for SeriesPlayOnLinks.

type SeriesPlayOnLinksJSONResponse

type SeriesPlayOnLinksJSONResponse PlayOnLinkList

type SeriesQuery

type SeriesQuery = string

SeriesQuery defines model for SeriesQuery.

type SeriesRenamePlan

type SeriesRenamePlan struct {
	Operations []RenameOperation `json:"operations"`
	SeriesId   uint32            `json:"series_id"`
}

SeriesRenamePlan defines model for SeriesRenamePlan.

type SeriesRenamePlanJSONResponse

type SeriesRenamePlanJSONResponse SeriesRenamePlan

type SeriesSearchAcceptedResponse

type SeriesSearchAcceptedResponse struct {
}

type SeriesSort

type SeriesSort = string

SeriesSort defines model for SeriesSort.

type SeriesStatus

type SeriesStatus = string

SeriesStatus defines model for SeriesStatus.

type SeriesType

type SeriesType = string

SeriesType defines model for SeriesType.

type Server

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

Server implements StrictServerInterface. Holds the service-layer deps used by the handler_*.go files in this package.

func New

func New(d Deps) *Server

New constructs a Server from the given Deps.

func (*Server) AddMovie

func (s *Server) AddMovie(
	ctx context.Context,
	request AddMovieRequestObject,
) (AddMovieResponseObject, error)

func (*Server) AddSeries

func (s *Server) AddSeries(
	ctx context.Context,
	request AddSeriesRequestObject,
) (AddSeriesResponseObject, error)

func (*Server) ApproveRequest

func (*Server) AuthMe

func (*Server) CancelImport

func (*Server) CancelQueueItem

func (*Server) ChangePassword

ChangePassword verifies the current password, rotates to the new one, and signs out every other active session for the caller.

func (*Server) CommitImport

func (*Server) CreateIndexer

func (*Server) CreateInvite

func (*Server) CreateMediaServer

func (*Server) CreateMyApiKey

CreateMyApiKey generates a new API key for the caller. The raw token is returned exactly once — clients must surface it immediately.

func (*Server) CreateOIDCProvider

CreateOIDCProvider validates the issuer via OIDC discovery and persists the provider. Success flips the process-wide restart-required flag because the runtime OIDC manager is initialised at startup.

func (*Server) CreateRequest

func (*Server) CreateUser

CreateUser directly provisions a user (bypassing invites). Admin-only.

func (*Server) DeleteEpisodeFile

func (*Server) DeleteHistoryItem

func (*Server) DeleteImport

func (*Server) DeleteIndexer

func (*Server) DeleteMediaServer

func (*Server) DeleteMovie

func (*Server) DeleteMovieFile

func (*Server) DeleteMyApiKey

DeleteMyApiKey revokes one of the caller's API keys. Foreign/missing IDs surface 404 — callers must not leak ownership information.

func (*Server) DeleteMySession

DeleteMySession revokes one of the caller's sessions. Revoking the current session is allowed — the next request will fail middleware and redirect to /login. Foreign/missing IDs surface 404.

func (*Server) DeleteOIDCProvider

DeleteOIDCProvider removes the named provider. Flips the restart flag.

func (*Server) DeleteSeries

func (*Server) DeleteUser

DeleteUser permanently removes the user plus every owned resource (api keys, oidc identities, sessions, requests) via schema-level cascade. Admin-only; guards against self-delete, last-admin.

func (*Server) DenyRequest

func (*Server) GetConfigAuth

GetConfigAuth returns the runtime-safe auth configuration. Admin only.

func (*Server) GetImport

func (*Server) GetMediaServer

func (*Server) GetMovie

func (s *Server) GetMovie(
	ctx context.Context,
	request GetMovieRequestObject,
) (GetMovieResponseObject, error)

func (*Server) GetOIDCProvider

GetOIDCProvider returns a single provider by name. Admin only.

func (*Server) GetRequestMetadata

GetRequestMetadata fetches poster/overview for the requested item so reviewers can judge it. Reviewers (admin/member) see any request; a request_only user sees only their own.

func (*Server) GetSchedule

func (*Server) GetSeries

func (s *Server) GetSeries(
	ctx context.Context,
	request GetSeriesRequestObject,
) (GetSeriesResponseObject, error)

func (*Server) GetSeriesCounts

func (*Server) GetSystemInfo

GetSystemInfo returns the read-only environment summary surfaced on Settings → General. Admin only.

func (*Server) GetUser

GetUser returns the user's detail block (user + api keys + sessions). Admin-only. Sessions are rendered with is_current=false in the admin view.

func (*Server) GrabEpisodeRelease

func (*Server) GrabMovieRelease

func (*Server) GrabSeasonRelease

func (*Server) GrabSeriesRelease

func (*Server) IgnorePending

func (*Server) ImportPending

func (*Server) ListActivity

func (*Server) ListDownloadHistory

func (*Server) ListImportFiles

func (*Server) ListImportShows

func (*Server) ListImports

func (*Server) ListIndexers

func (*Server) ListInvites

func (*Server) ListMovies

func (s *Server) ListMovies(
	ctx context.Context,
	request ListMoviesRequestObject,
) (ListMoviesResponseObject, error)

func (*Server) ListMyApiKeys

ListMyApiKeys returns every API key owned by the caller. Raw tokens are never returned — only the metadata surfaced in the ApiKey schema.

func (*Server) ListMySessions

ListMySessions returns every session row for the caller so the account UI can render "active sessions" with the current one flagged.

func (*Server) ListOIDCProviders

ListOIDCProviders returns every configured provider plus the process-wide restart-required flag. Admin only.

func (*Server) ListPending

func (*Server) ListRequests

func (*Server) ListSchedules

func (*Server) ListSeries

func (s *Server) ListSeries(
	ctx context.Context,
	request ListSeriesRequestObject,
) (ListSeriesResponseObject, error)

func (*Server) ListUsers

ListUsers returns a paginated, filtered slice of users. Admin-only.

func (*Server) LookupSeries

func (*Server) PatchEpisode

func (*Server) PatchMovie

func (s *Server) PatchMovie(
	ctx context.Context,
	request PatchMovieRequestObject,
) (PatchMovieResponseObject, error)

func (*Server) PatchSeason

func (*Server) PatchSeries

func (*Server) PauseQueueItem

func (*Server) PauseSchedule

func (*Server) RenameMovieFiles

func (*Server) RenameSeriesFiles

func (*Server) ReopenRequest

func (*Server) ReplacePending

func (*Server) ResetUserPassword

ResetUserPassword rotates the target's password without verifying the old one and revokes every one of their sessions. Admin-only.

func (*Server) ResumeQueueItem

func (*Server) ResumeSchedule

func (*Server) RevokeInvite

func (*Server) RevokeUserApiKey

RevokeUserApiKey revokes a specific API key belonging to the target user. Admin-only. Returns 404 when the key does not exist or does not belong to the user.

func (*Server) RevokeUserSession

RevokeUserSession revokes a specific session belonging to the target user, forcing logout on that device. Admin-only. Returns 404 when the session does not exist or does not belong to the user.

func (*Server) RotateJWTSecret

RotateJWTSecret generates a fresh signing secret, atomically swaps it in memory, persists it to config, truncates every session, and returns a freshly-issued bearer token for the calling admin so they stay signed in.

func (*Server) RunSchedule

func (*Server) SearchMovie

func (*Server) SearchMovieNow

func (*Server) SearchSeries

func (*Server) SearchTMDBMovie

func (*Server) StartImport

func (*Server) TestDownloadClient

func (*Server) TestDraftIndexer

func (*Server) TestIndexer

func (*Server) TestMediaServer

func (*Server) UnlockUser

UnlockUser clears every lockout field on the target user. Admin-only. Idempotent — returns 204 even when the user wasn't locked.

func (*Server) UpdateConfigAuth

UpdateConfigAuth applies a partial update to the auth config. Admin only. Changes take effect immediately — no restart required.

func (*Server) UpdateIndexer

func (*Server) UpdateMe

UpdateMe patches the current user's self-service profile fields.

func (*Server) UpdateMediaServer

func (*Server) UpdateOIDCProvider

UpdateOIDCProvider merges patch fields into the named provider. Blank client_secret preserves the existing secret. Flips the restart flag.

func (*Server) UpdateSchedule

func (*Server) UpdateUser

UpdateUser applies a partial patch to the user (role, display_name, auth_method). Admin-only. Demoting the last admin is rejected with 409 last_admin.

type ServerInterface

type ServerInterface interface {
	// Library activity events.
	// (GET /activity)
	ListActivity(w http.ResponseWriter, r *http.Request, params ListActivityParams)
	// Terminal download history (completed/failed), paginated.
	// (GET /activity/history)
	ListDownloadHistory(w http.ResponseWriter, r *http.Request, params ListDownloadHistoryParams)
	// Delete all completed history records.
	// (POST /activity/history/clear-completed)
	ClearCompletedHistory(w http.ResponseWriter, r *http.Request)
	// Delete one history record.
	// (DELETE /activity/history/{id})
	DeleteHistoryItem(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Adopted-torrent proposals awaiting a decision.
	// (GET /activity/pending)
	ListPending(w http.ResponseWriter, r *http.Request)
	// Dismiss a proposal (optionally removing its torrent).
	// (POST /activity/pending/{id}/ignore)
	IgnorePending(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Accept a proposal and import it as-is.
	// (POST /activity/pending/{id}/import)
	ImportPending(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Delete the existing file, then import the proposal.
	// (POST /activity/pending/{id}/replace)
	ReplacePending(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Live download queue snapshot.
	// (GET /activity/queue)
	GetDownloadQueue(w http.ResponseWriter, r *http.Request)
	// Cancel an in-flight download.
	// (DELETE /activity/queue/{id})
	CancelQueueItem(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Pause an in-flight download.
	// (POST /activity/queue/{id}/pause)
	PauseQueueItem(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Resume a paused download.
	// (POST /activity/queue/{id}/resume)
	ResumeQueueItem(w http.ResponseWriter, r *http.Request, id ResourceID)
	// List pending invites (admin)
	// (GET /auth/invites)
	ListInvites(w http.ResponseWriter, r *http.Request)
	// Create an invite (admin)
	// (POST /auth/invites)
	CreateInvite(w http.ResponseWriter, r *http.Request)
	// Revoke an invite (admin)
	// (DELETE /auth/invites/{id})
	RevokeInvite(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Rotate the JWT signing secret (admin)
	// (POST /auth/jwt/rotate)
	RotateJWTSecret(w http.ResponseWriter, r *http.Request)
	// Current authenticated user
	// (GET /auth/me)
	AuthMe(w http.ResponseWriter, r *http.Request)
	// Update current user profile
	// (PATCH /auth/me)
	UpdateMe(w http.ResponseWriter, r *http.Request)
	// List current user's API keys
	// (GET /auth/me/api-keys)
	ListMyApiKeys(w http.ResponseWriter, r *http.Request)
	// Create a new API key for current user; raw_token shown once
	// (POST /auth/me/api-keys)
	CreateMyApiKey(w http.ResponseWriter, r *http.Request)
	// Revoke an API key owned by current user
	// (DELETE /auth/me/api-keys/{id})
	DeleteMyApiKey(w http.ResponseWriter, r *http.Request, id ResourceID)
	// List current user's active sessions
	// (GET /auth/me/sessions)
	ListMySessions(w http.ResponseWriter, r *http.Request)
	// Revoke a session owned by current user
	// (DELETE /auth/me/sessions/{id})
	DeleteMySession(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Change current user's password; revokes all other sessions
	// (POST /auth/password)
	ChangePassword(w http.ResponseWriter, r *http.Request)
	// Upcoming wanted-movie digital releases in [from, to).
	// (GET /calendar/upcoming)
	ListUpcomingReleases(w http.ResponseWriter, r *http.Request, params ListUpcomingReleasesParams)
	// Get auth configuration (admin)
	// (GET /config/auth)
	GetConfigAuth(w http.ResponseWriter, r *http.Request)
	// Patch auth configuration (admin)
	// (PATCH /config/auth)
	UpdateConfigAuth(w http.ResponseWriter, r *http.Request)
	// List OIDC providers (admin)
	// (GET /config/oidc)
	ListOIDCProviders(w http.ResponseWriter, r *http.Request)
	// Add an OIDC provider (admin)
	// (POST /config/oidc)
	CreateOIDCProvider(w http.ResponseWriter, r *http.Request)
	// Delete an OIDC provider (admin)
	// (DELETE /config/oidc/{name})
	DeleteOIDCProvider(w http.ResponseWriter, r *http.Request, name OIDCProviderName)
	// Get an OIDC provider (admin)
	// (GET /config/oidc/{name})
	GetOIDCProvider(w http.ResponseWriter, r *http.Request, name OIDCProviderName)
	// Update an OIDC provider (admin)
	// (PATCH /config/oidc/{name})
	UpdateOIDCProvider(w http.ResponseWriter, r *http.Request, name OIDCProviderName)
	// List download clients
	// (GET /download-clients)
	ListDownloadClients(w http.ResponseWriter, r *http.Request)
	// Add a download client
	// (POST /download-clients)
	CreateDownloadClient(w http.ResponseWriter, r *http.Request)
	// Test a draft download client connection
	// (POST /download-clients/test)
	TestDraftDownloadClient(w http.ResponseWriter, r *http.Request)
	// Delete a download client
	// (DELETE /download-clients/{name})
	DeleteDownloadClient(w http.ResponseWriter, r *http.Request, name ResourceName)
	// Update a download client
	// (PUT /download-clients/{name})
	UpdateDownloadClient(w http.ResponseWriter, r *http.Request, name ResourceName)
	// Test download client connection
	// (POST /download-clients/{name}/test)
	TestDownloadClient(w http.ResponseWriter, r *http.Request, name ResourceName)
	// List configured indexers
	// (GET /indexers)
	ListIndexers(w http.ResponseWriter, r *http.Request)
	// Add an indexer
	// (POST /indexers)
	CreateIndexer(w http.ResponseWriter, r *http.Request)
	// Test a draft indexer connection
	// (POST /indexers/test)
	TestDraftIndexer(w http.ResponseWriter, r *http.Request)
	// Delete an indexer
	// (DELETE /indexers/{name})
	DeleteIndexer(w http.ResponseWriter, r *http.Request, name ResourceName)
	// Update an indexer
	// (PUT /indexers/{name})
	UpdateIndexer(w http.ResponseWriter, r *http.Request, name ResourceName)
	// Test indexer connection
	// (POST /indexers/{name}/test)
	TestIndexer(w http.ResponseWriter, r *http.Request, name ResourceName)

	// (GET /library/imports)
	ListImports(w http.ResponseWriter, r *http.Request, params ListImportsParams)

	// (POST /library/imports)
	StartImport(w http.ResponseWriter, r *http.Request)

	// (DELETE /library/imports/{id})
	DeleteImport(w http.ResponseWriter, r *http.Request, id ResourceID)

	// (GET /library/imports/{id})
	GetImport(w http.ResponseWriter, r *http.Request, id ResourceID)

	// (POST /library/imports/{id}/cancel)
	CancelImport(w http.ResponseWriter, r *http.Request, id ResourceID)

	// (POST /library/imports/{id}/commit)
	CommitImport(w http.ResponseWriter, r *http.Request, id ResourceID)

	// (GET /library/imports/{id}/files)
	ListImportFiles(w http.ResponseWriter, r *http.Request, id ResourceID, params ListImportFilesParams)

	// (PATCH /library/imports/{id}/files/{fileId})
	UpdateImportFileDecision(w http.ResponseWriter, r *http.Request, id ResourceID, fileId ImportScanFileID)

	// (GET /library/imports/{id}/shows)
	ListImportShows(w http.ResponseWriter, r *http.Request, id ResourceID, params ListImportShowsParams)

	// (PATCH /library/imports/{id}/shows/{showId})
	UpdateImportShowDecision(w http.ResponseWriter, r *http.Request, id ResourceID, showId ImportScanShowID)
	// List configured media servers
	// (GET /media-servers)
	ListMediaServers(w http.ResponseWriter, r *http.Request)
	// Add a media server
	// (POST /media-servers)
	CreateMediaServer(w http.ResponseWriter, r *http.Request)
	// Discover library sections for a draft server
	// (POST /media-servers/discover)
	DiscoverMediaServerSections(w http.ResponseWriter, r *http.Request)
	// Test a draft media server connection
	// (POST /media-servers/test)
	TestDraftMediaServer(w http.ResponseWriter, r *http.Request)
	// Delete a media server
	// (DELETE /media-servers/{name})
	DeleteMediaServer(w http.ResponseWriter, r *http.Request, name ResourceName)
	// Get a media server
	// (GET /media-servers/{name})
	GetMediaServer(w http.ResponseWriter, r *http.Request, name ResourceName)
	// Update a media server
	// (PATCH /media-servers/{name})
	UpdateMediaServer(w http.ResponseWriter, r *http.Request, name ResourceName)
	// Run a connection test against a saved media server
	// (POST /media-servers/{name}/test)
	TestMediaServer(w http.ResponseWriter, r *http.Request, name ResourceName)
	// List all movies
	// (GET /movies)
	ListMovies(w http.ResponseWriter, r *http.Request, params ListMoviesParams)
	// Add a movie to the library
	// (POST /movies)
	AddMovie(w http.ResponseWriter, r *http.Request)
	// Movie status counts
	// (GET /movies/counts)
	GetMovieCounts(w http.ResponseWriter, r *http.Request)
	// Remove a movie from the library
	// (DELETE /movies/{id})
	DeleteMovie(w http.ResponseWriter, r *http.Request, id ResourceID, params DeleteMovieParams)
	// Get movie details
	// (GET /movies/{id})
	GetMovie(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Patch a movie
	// (PATCH /movies/{id})
	PatchMovie(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Delete a movie media file
	// (DELETE /movies/{id}/files/{fileId})
	DeleteMovieFile(w http.ResponseWriter, r *http.Request, id ResourceID, fileId FileID)
	// Grab a specific release for this movie
	// (POST /movies/{id}/grab)
	GrabMovieRelease(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Resolve per-server deep links for the movie
	// (GET /movies/{id}/play-on)
	GetMoviePlayOnLinks(w http.ResponseWriter, r *http.Request, id ResourceID)
	// TMDB recommendations for a movie
	// (GET /movies/{id}/recommendations)
	GetMovieRecommendations(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Re-fetch TMDB metadata for one movie
	// (POST /movies/{id}/refresh-metadata)
	RefreshMovieMetadata(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Rename movie files to match the library naming pattern
	// (POST /movies/{id}/rename)
	RenameMovieFiles(w http.ResponseWriter, r *http.Request, id ResourceID, params RenameMovieFilesParams)
	// Search indexers for a movie
	// (POST /movies/{id}/search)
	SearchMovie(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Dispatch an indexer search and grab for a single movie
	// (POST /movies/{id}/search-now)
	SearchMovieNow(w http.ResponseWriter, r *http.Request, id ResourceID)
	// List quality profiles
	// (GET /quality-profiles)
	ListQualityProfiles(w http.ResponseWriter, r *http.Request)
	// Create a quality profile
	// (POST /quality-profiles)
	CreateQualityProfile(w http.ResponseWriter, r *http.Request)
	// Delete a quality profile
	// (DELETE /quality-profiles/{name})
	DeleteQualityProfile(w http.ResponseWriter, r *http.Request, name ResourceName)
	// Update a quality profile
	// (PUT /quality-profiles/{name})
	UpdateQualityProfile(w http.ResponseWriter, r *http.Request, name ResourceName)
	// List media requests
	// (GET /requests)
	ListRequests(w http.ResponseWriter, r *http.Request, params ListRequestsParams)
	// Request a movie or show
	// (POST /requests)
	CreateRequest(w http.ResponseWriter, r *http.Request)
	// Request counts by status
	// (GET /requests/counts)
	GetRequestCounts(w http.ResponseWriter, r *http.Request)
	// Approve a request (admin/member) — creates the library item
	// (POST /requests/{id}/approve)
	ApproveRequest(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Deny a request (admin)
	// (POST /requests/{id}/deny)
	DenyRequest(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Cover and synopsis for a requested item
	// (GET /requests/{id}/metadata)
	GetRequestMetadata(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Reopen a denied request (admin)
	// (POST /requests/{id}/reopen)
	ReopenRequest(w http.ResponseWriter, r *http.Request, id ResourceID)
	// List all scheduled jobs with current state.
	// (GET /schedules)
	ListSchedules(w http.ResponseWriter, r *http.Request)
	// Get a single scheduled job by name.
	// (GET /schedules/{name})
	GetSchedule(w http.ResponseWriter, r *http.Request, name ScheduleName)
	// Edit the interval of a scheduled job.
	// (PATCH /schedules/{name})
	UpdateSchedule(w http.ResponseWriter, r *http.Request, name ScheduleName)
	// Pause a scheduled job.
	// (POST /schedules/{name}/pause)
	PauseSchedule(w http.ResponseWriter, r *http.Request, name ScheduleName)
	// Resume a paused job.
	// (POST /schedules/{name}/resume)
	ResumeSchedule(w http.ResponseWriter, r *http.Request, name ScheduleName)
	// Trigger a one-off run of a job.
	// (POST /schedules/{name}/run)
	RunSchedule(w http.ResponseWriter, r *http.Request, name ScheduleName)
	// Search TMDB for movies
	// (GET /search/movie)
	SearchTMDBMovie(w http.ResponseWriter, r *http.Request, params SearchTMDBMovieParams)
	// List all series
	// (GET /series)
	ListSeries(w http.ResponseWriter, r *http.Request, params ListSeriesParams)
	// Add a series by TVDB id
	// (POST /series)
	AddSeries(w http.ResponseWriter, r *http.Request)
	// Series status counts
	// (GET /series/counts)
	GetSeriesCounts(w http.ResponseWriter, r *http.Request)
	// Search TVDB for series to add
	// (GET /series/lookup)
	LookupSeries(w http.ResponseWriter, r *http.Request, params LookupSeriesParams)
	// Remove a series from the library
	// (DELETE /series/{id})
	DeleteSeries(w http.ResponseWriter, r *http.Request, id ResourceID, params DeleteSeriesParams)
	// Get series details
	// (GET /series/{id})
	GetSeries(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Patch a series
	// (PATCH /series/{id})
	PatchSeries(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Search indexers for whole-series releases
	// (POST /series/{id}/browse)
	BrowseSeriesReleases(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Toggle episode monitoring
	// (PATCH /series/{id}/episodes/{episodeId})
	PatchEpisode(w http.ResponseWriter, r *http.Request, id ResourceID, episodeId EpisodeID)
	// Delete an episode media file
	// (DELETE /series/{id}/episodes/{episodeId}/file)
	DeleteEpisodeFile(w http.ResponseWriter, r *http.Request, id ResourceID, episodeId EpisodeID)
	// Grab a specific release for this episode
	// (POST /series/{id}/episodes/{episodeId}/grab)
	GrabEpisodeRelease(w http.ResponseWriter, r *http.Request, id ResourceID, episodeId EpisodeID)
	// Search indexers for one episode's releases
	// (POST /series/{id}/episodes/{episodeId}/search)
	BrowseEpisodeReleases(w http.ResponseWriter, r *http.Request, id ResourceID, episodeId EpisodeID)
	// Grab a whole-series release
	// (POST /series/{id}/grab)
	GrabSeriesRelease(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Resolve per-server deep links for the series
	// (GET /series/{id}/play-on)
	GetSeriesPlayOnLinks(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Re-fetch TVDB metadata for one series
	// (POST /series/{id}/refresh-metadata)
	RefreshSeriesMetadata(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Rename series episode files to match the library naming pattern
	// (POST /series/{id}/rename)
	RenameSeriesFiles(w http.ResponseWriter, r *http.Request, id ResourceID, params RenameSeriesFilesParams)
	// Auto-search all wanted episodes for this series
	// (POST /series/{id}/search)
	SearchSeries(w http.ResponseWriter, r *http.Request, id ResourceID)
	// Toggle season monitoring
	// (PATCH /series/{id}/seasons/{number})
	PatchSeason(w http.ResponseWriter, r *http.Request, id ResourceID, number SeasonNumber)
	// Grab a season-pack release
	// (POST /series/{id}/seasons/{number}/grab)
	GrabSeasonRelease(w http.ResponseWriter, r *http.Request, id ResourceID, number SeasonNumber)
	// Search indexers for a season's releases
	// (POST /series/{id}/seasons/{number}/search)
	BrowseSeasonReleases(w http.ResponseWriter, r *http.Request, id ResourceID, number SeasonNumber)
	// Read-only environment summary (admin)
	// (GET /system/info)
	GetSystemInfo(w http.ResponseWriter, r *http.Request)
	// List users (admin)
	// (GET /users)
	ListUsers(w http.ResponseWriter, r *http.Request, params ListUsersParams)
	// Create user (admin)
	// (POST /users)
	CreateUser(w http.ResponseWriter, r *http.Request)
	// Delete user (admin)
	// (DELETE /users/{uid})
	DeleteUser(w http.ResponseWriter, r *http.Request, uid UserID)
	// Get user detail (admin)
	// (GET /users/{uid})
	GetUser(w http.ResponseWriter, r *http.Request, uid UserID)
	// Patch user (admin)
	// (PATCH /users/{uid})
	UpdateUser(w http.ResponseWriter, r *http.Request, uid UserID)
	// Revoke user's API key (admin)
	// (DELETE /users/{uid}/api-keys/{kid})
	RevokeUserApiKey(w http.ResponseWriter, r *http.Request, uid UserID, kid ApiKeyID)
	// Reset user password (admin)
	// (POST /users/{uid}/password-reset)
	ResetUserPassword(w http.ResponseWriter, r *http.Request, uid UserID)
	// Revoke user's session (admin)
	// (DELETE /users/{uid}/sessions/{sid})
	RevokeUserSession(w http.ResponseWriter, r *http.Request, uid UserID, sid SessionID)
	// Clear lockout state on a user (admin)
	// (POST /users/{uid}/unlock)
	UnlockUser(w http.ResponseWriter, r *http.Request, uid UserID)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) AddMovie

func (siw *ServerInterfaceWrapper) AddMovie(w http.ResponseWriter, r *http.Request)

AddMovie operation middleware

func (*ServerInterfaceWrapper) AddSeries

func (siw *ServerInterfaceWrapper) AddSeries(w http.ResponseWriter, r *http.Request)

AddSeries operation middleware

func (*ServerInterfaceWrapper) ApproveRequest

func (siw *ServerInterfaceWrapper) ApproveRequest(w http.ResponseWriter, r *http.Request)

ApproveRequest operation middleware

func (*ServerInterfaceWrapper) AuthMe

AuthMe operation middleware

func (*ServerInterfaceWrapper) BrowseEpisodeReleases

func (siw *ServerInterfaceWrapper) BrowseEpisodeReleases(w http.ResponseWriter, r *http.Request)

BrowseEpisodeReleases operation middleware

func (*ServerInterfaceWrapper) BrowseSeasonReleases

func (siw *ServerInterfaceWrapper) BrowseSeasonReleases(w http.ResponseWriter, r *http.Request)

BrowseSeasonReleases operation middleware

func (*ServerInterfaceWrapper) BrowseSeriesReleases

func (siw *ServerInterfaceWrapper) BrowseSeriesReleases(w http.ResponseWriter, r *http.Request)

BrowseSeriesReleases operation middleware

func (*ServerInterfaceWrapper) CancelImport

func (siw *ServerInterfaceWrapper) CancelImport(w http.ResponseWriter, r *http.Request)

CancelImport operation middleware

func (*ServerInterfaceWrapper) CancelQueueItem

func (siw *ServerInterfaceWrapper) CancelQueueItem(w http.ResponseWriter, r *http.Request)

CancelQueueItem operation middleware

func (*ServerInterfaceWrapper) ChangePassword

func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)

ChangePassword operation middleware

func (*ServerInterfaceWrapper) ClearCompletedHistory

func (siw *ServerInterfaceWrapper) ClearCompletedHistory(w http.ResponseWriter, r *http.Request)

ClearCompletedHistory operation middleware

func (*ServerInterfaceWrapper) CommitImport

func (siw *ServerInterfaceWrapper) CommitImport(w http.ResponseWriter, r *http.Request)

CommitImport operation middleware

func (*ServerInterfaceWrapper) CreateDownloadClient

func (siw *ServerInterfaceWrapper) CreateDownloadClient(w http.ResponseWriter, r *http.Request)

CreateDownloadClient operation middleware

func (*ServerInterfaceWrapper) CreateIndexer

func (siw *ServerInterfaceWrapper) CreateIndexer(w http.ResponseWriter, r *http.Request)

CreateIndexer operation middleware

func (*ServerInterfaceWrapper) CreateInvite

func (siw *ServerInterfaceWrapper) CreateInvite(w http.ResponseWriter, r *http.Request)

CreateInvite operation middleware

func (*ServerInterfaceWrapper) CreateMediaServer

func (siw *ServerInterfaceWrapper) CreateMediaServer(w http.ResponseWriter, r *http.Request)

CreateMediaServer operation middleware

func (*ServerInterfaceWrapper) CreateMyApiKey

func (siw *ServerInterfaceWrapper) CreateMyApiKey(w http.ResponseWriter, r *http.Request)

CreateMyApiKey operation middleware

func (*ServerInterfaceWrapper) CreateOIDCProvider

func (siw *ServerInterfaceWrapper) CreateOIDCProvider(w http.ResponseWriter, r *http.Request)

CreateOIDCProvider operation middleware

func (*ServerInterfaceWrapper) CreateQualityProfile

func (siw *ServerInterfaceWrapper) CreateQualityProfile(w http.ResponseWriter, r *http.Request)

CreateQualityProfile operation middleware

func (*ServerInterfaceWrapper) CreateRequest

func (siw *ServerInterfaceWrapper) CreateRequest(w http.ResponseWriter, r *http.Request)

CreateRequest operation middleware

func (*ServerInterfaceWrapper) CreateUser

func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)

CreateUser operation middleware

func (*ServerInterfaceWrapper) DeleteDownloadClient

func (siw *ServerInterfaceWrapper) DeleteDownloadClient(w http.ResponseWriter, r *http.Request)

DeleteDownloadClient operation middleware

func (*ServerInterfaceWrapper) DeleteEpisodeFile

func (siw *ServerInterfaceWrapper) DeleteEpisodeFile(w http.ResponseWriter, r *http.Request)

DeleteEpisodeFile operation middleware

func (*ServerInterfaceWrapper) DeleteHistoryItem

func (siw *ServerInterfaceWrapper) DeleteHistoryItem(w http.ResponseWriter, r *http.Request)

DeleteHistoryItem operation middleware

func (*ServerInterfaceWrapper) DeleteImport

func (siw *ServerInterfaceWrapper) DeleteImport(w http.ResponseWriter, r *http.Request)

DeleteImport operation middleware

func (*ServerInterfaceWrapper) DeleteIndexer

func (siw *ServerInterfaceWrapper) DeleteIndexer(w http.ResponseWriter, r *http.Request)

DeleteIndexer operation middleware

func (*ServerInterfaceWrapper) DeleteMediaServer

func (siw *ServerInterfaceWrapper) DeleteMediaServer(w http.ResponseWriter, r *http.Request)

DeleteMediaServer operation middleware

func (*ServerInterfaceWrapper) DeleteMovie

func (siw *ServerInterfaceWrapper) DeleteMovie(w http.ResponseWriter, r *http.Request)

DeleteMovie operation middleware

func (*ServerInterfaceWrapper) DeleteMovieFile

func (siw *ServerInterfaceWrapper) DeleteMovieFile(w http.ResponseWriter, r *http.Request)

DeleteMovieFile operation middleware

func (*ServerInterfaceWrapper) DeleteMyApiKey

func (siw *ServerInterfaceWrapper) DeleteMyApiKey(w http.ResponseWriter, r *http.Request)

DeleteMyApiKey operation middleware

func (*ServerInterfaceWrapper) DeleteMySession

func (siw *ServerInterfaceWrapper) DeleteMySession(w http.ResponseWriter, r *http.Request)

DeleteMySession operation middleware

func (*ServerInterfaceWrapper) DeleteOIDCProvider

func (siw *ServerInterfaceWrapper) DeleteOIDCProvider(w http.ResponseWriter, r *http.Request)

DeleteOIDCProvider operation middleware

func (*ServerInterfaceWrapper) DeleteQualityProfile

func (siw *ServerInterfaceWrapper) DeleteQualityProfile(w http.ResponseWriter, r *http.Request)

DeleteQualityProfile operation middleware

func (*ServerInterfaceWrapper) DeleteSeries

func (siw *ServerInterfaceWrapper) DeleteSeries(w http.ResponseWriter, r *http.Request)

DeleteSeries operation middleware

func (*ServerInterfaceWrapper) DeleteUser

func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)

DeleteUser operation middleware

func (*ServerInterfaceWrapper) DenyRequest

func (siw *ServerInterfaceWrapper) DenyRequest(w http.ResponseWriter, r *http.Request)

DenyRequest operation middleware

func (*ServerInterfaceWrapper) DiscoverMediaServerSections

func (siw *ServerInterfaceWrapper) DiscoverMediaServerSections(w http.ResponseWriter, r *http.Request)

DiscoverMediaServerSections operation middleware

func (*ServerInterfaceWrapper) GetConfigAuth

func (siw *ServerInterfaceWrapper) GetConfigAuth(w http.ResponseWriter, r *http.Request)

GetConfigAuth operation middleware

func (*ServerInterfaceWrapper) GetDownloadQueue

func (siw *ServerInterfaceWrapper) GetDownloadQueue(w http.ResponseWriter, r *http.Request)

GetDownloadQueue operation middleware

func (*ServerInterfaceWrapper) GetImport

func (siw *ServerInterfaceWrapper) GetImport(w http.ResponseWriter, r *http.Request)

GetImport operation middleware

func (*ServerInterfaceWrapper) GetMediaServer

func (siw *ServerInterfaceWrapper) GetMediaServer(w http.ResponseWriter, r *http.Request)

GetMediaServer operation middleware

func (*ServerInterfaceWrapper) GetMovie

func (siw *ServerInterfaceWrapper) GetMovie(w http.ResponseWriter, r *http.Request)

GetMovie operation middleware

func (*ServerInterfaceWrapper) GetMovieCounts

func (siw *ServerInterfaceWrapper) GetMovieCounts(w http.ResponseWriter, r *http.Request)

GetMovieCounts operation middleware

func (siw *ServerInterfaceWrapper) GetMoviePlayOnLinks(w http.ResponseWriter, r *http.Request)

GetMoviePlayOnLinks operation middleware

func (*ServerInterfaceWrapper) GetMovieRecommendations

func (siw *ServerInterfaceWrapper) GetMovieRecommendations(w http.ResponseWriter, r *http.Request)

GetMovieRecommendations operation middleware

func (*ServerInterfaceWrapper) GetOIDCProvider

func (siw *ServerInterfaceWrapper) GetOIDCProvider(w http.ResponseWriter, r *http.Request)

GetOIDCProvider operation middleware

func (*ServerInterfaceWrapper) GetRequestCounts

func (siw *ServerInterfaceWrapper) GetRequestCounts(w http.ResponseWriter, r *http.Request)

GetRequestCounts operation middleware

func (*ServerInterfaceWrapper) GetRequestMetadata

func (siw *ServerInterfaceWrapper) GetRequestMetadata(w http.ResponseWriter, r *http.Request)

GetRequestMetadata operation middleware

func (*ServerInterfaceWrapper) GetSchedule

func (siw *ServerInterfaceWrapper) GetSchedule(w http.ResponseWriter, r *http.Request)

GetSchedule operation middleware

func (*ServerInterfaceWrapper) GetSeries

func (siw *ServerInterfaceWrapper) GetSeries(w http.ResponseWriter, r *http.Request)

GetSeries operation middleware

func (*ServerInterfaceWrapper) GetSeriesCounts

func (siw *ServerInterfaceWrapper) GetSeriesCounts(w http.ResponseWriter, r *http.Request)

GetSeriesCounts operation middleware

func (siw *ServerInterfaceWrapper) GetSeriesPlayOnLinks(w http.ResponseWriter, r *http.Request)

GetSeriesPlayOnLinks operation middleware

func (*ServerInterfaceWrapper) GetSystemInfo

func (siw *ServerInterfaceWrapper) GetSystemInfo(w http.ResponseWriter, r *http.Request)

GetSystemInfo operation middleware

func (*ServerInterfaceWrapper) GetUser

GetUser operation middleware

func (*ServerInterfaceWrapper) GrabEpisodeRelease

func (siw *ServerInterfaceWrapper) GrabEpisodeRelease(w http.ResponseWriter, r *http.Request)

GrabEpisodeRelease operation middleware

func (*ServerInterfaceWrapper) GrabMovieRelease

func (siw *ServerInterfaceWrapper) GrabMovieRelease(w http.ResponseWriter, r *http.Request)

GrabMovieRelease operation middleware

func (*ServerInterfaceWrapper) GrabSeasonRelease

func (siw *ServerInterfaceWrapper) GrabSeasonRelease(w http.ResponseWriter, r *http.Request)

GrabSeasonRelease operation middleware

func (*ServerInterfaceWrapper) GrabSeriesRelease

func (siw *ServerInterfaceWrapper) GrabSeriesRelease(w http.ResponseWriter, r *http.Request)

GrabSeriesRelease operation middleware

func (*ServerInterfaceWrapper) IgnorePending

func (siw *ServerInterfaceWrapper) IgnorePending(w http.ResponseWriter, r *http.Request)

IgnorePending operation middleware

func (*ServerInterfaceWrapper) ImportPending

func (siw *ServerInterfaceWrapper) ImportPending(w http.ResponseWriter, r *http.Request)

ImportPending operation middleware

func (*ServerInterfaceWrapper) ListActivity

func (siw *ServerInterfaceWrapper) ListActivity(w http.ResponseWriter, r *http.Request)

ListActivity operation middleware

func (*ServerInterfaceWrapper) ListDownloadClients

func (siw *ServerInterfaceWrapper) ListDownloadClients(w http.ResponseWriter, r *http.Request)

ListDownloadClients operation middleware

func (*ServerInterfaceWrapper) ListDownloadHistory

func (siw *ServerInterfaceWrapper) ListDownloadHistory(w http.ResponseWriter, r *http.Request)

ListDownloadHistory operation middleware

func (*ServerInterfaceWrapper) ListImportFiles

func (siw *ServerInterfaceWrapper) ListImportFiles(w http.ResponseWriter, r *http.Request)

ListImportFiles operation middleware

func (*ServerInterfaceWrapper) ListImportShows

func (siw *ServerInterfaceWrapper) ListImportShows(w http.ResponseWriter, r *http.Request)

ListImportShows operation middleware

func (*ServerInterfaceWrapper) ListImports

func (siw *ServerInterfaceWrapper) ListImports(w http.ResponseWriter, r *http.Request)

ListImports operation middleware

func (*ServerInterfaceWrapper) ListIndexers

func (siw *ServerInterfaceWrapper) ListIndexers(w http.ResponseWriter, r *http.Request)

ListIndexers operation middleware

func (*ServerInterfaceWrapper) ListInvites

func (siw *ServerInterfaceWrapper) ListInvites(w http.ResponseWriter, r *http.Request)

ListInvites operation middleware

func (*ServerInterfaceWrapper) ListMediaServers

func (siw *ServerInterfaceWrapper) ListMediaServers(w http.ResponseWriter, r *http.Request)

ListMediaServers operation middleware

func (*ServerInterfaceWrapper) ListMovies

func (siw *ServerInterfaceWrapper) ListMovies(w http.ResponseWriter, r *http.Request)

ListMovies operation middleware

func (*ServerInterfaceWrapper) ListMyApiKeys

func (siw *ServerInterfaceWrapper) ListMyApiKeys(w http.ResponseWriter, r *http.Request)

ListMyApiKeys operation middleware

func (*ServerInterfaceWrapper) ListMySessions

func (siw *ServerInterfaceWrapper) ListMySessions(w http.ResponseWriter, r *http.Request)

ListMySessions operation middleware

func (*ServerInterfaceWrapper) ListOIDCProviders

func (siw *ServerInterfaceWrapper) ListOIDCProviders(w http.ResponseWriter, r *http.Request)

ListOIDCProviders operation middleware

func (*ServerInterfaceWrapper) ListPending

func (siw *ServerInterfaceWrapper) ListPending(w http.ResponseWriter, r *http.Request)

ListPending operation middleware

func (*ServerInterfaceWrapper) ListQualityProfiles

func (siw *ServerInterfaceWrapper) ListQualityProfiles(w http.ResponseWriter, r *http.Request)

ListQualityProfiles operation middleware

func (*ServerInterfaceWrapper) ListRequests

func (siw *ServerInterfaceWrapper) ListRequests(w http.ResponseWriter, r *http.Request)

ListRequests operation middleware

func (*ServerInterfaceWrapper) ListSchedules

func (siw *ServerInterfaceWrapper) ListSchedules(w http.ResponseWriter, r *http.Request)

ListSchedules operation middleware

func (*ServerInterfaceWrapper) ListSeries

func (siw *ServerInterfaceWrapper) ListSeries(w http.ResponseWriter, r *http.Request)

ListSeries operation middleware

func (*ServerInterfaceWrapper) ListUpcomingReleases

func (siw *ServerInterfaceWrapper) ListUpcomingReleases(w http.ResponseWriter, r *http.Request)

ListUpcomingReleases operation middleware

func (*ServerInterfaceWrapper) ListUsers

func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request)

ListUsers operation middleware

func (*ServerInterfaceWrapper) LookupSeries

func (siw *ServerInterfaceWrapper) LookupSeries(w http.ResponseWriter, r *http.Request)

LookupSeries operation middleware

func (*ServerInterfaceWrapper) PatchEpisode

func (siw *ServerInterfaceWrapper) PatchEpisode(w http.ResponseWriter, r *http.Request)

PatchEpisode operation middleware

func (*ServerInterfaceWrapper) PatchMovie

func (siw *ServerInterfaceWrapper) PatchMovie(w http.ResponseWriter, r *http.Request)

PatchMovie operation middleware

func (*ServerInterfaceWrapper) PatchSeason

func (siw *ServerInterfaceWrapper) PatchSeason(w http.ResponseWriter, r *http.Request)

PatchSeason operation middleware

func (*ServerInterfaceWrapper) PatchSeries

func (siw *ServerInterfaceWrapper) PatchSeries(w http.ResponseWriter, r *http.Request)

PatchSeries operation middleware

func (*ServerInterfaceWrapper) PauseQueueItem

func (siw *ServerInterfaceWrapper) PauseQueueItem(w http.ResponseWriter, r *http.Request)

PauseQueueItem operation middleware

func (*ServerInterfaceWrapper) PauseSchedule

func (siw *ServerInterfaceWrapper) PauseSchedule(w http.ResponseWriter, r *http.Request)

PauseSchedule operation middleware

func (*ServerInterfaceWrapper) RefreshMovieMetadata

func (siw *ServerInterfaceWrapper) RefreshMovieMetadata(w http.ResponseWriter, r *http.Request)

RefreshMovieMetadata operation middleware

func (*ServerInterfaceWrapper) RefreshSeriesMetadata

func (siw *ServerInterfaceWrapper) RefreshSeriesMetadata(w http.ResponseWriter, r *http.Request)

RefreshSeriesMetadata operation middleware

func (*ServerInterfaceWrapper) RenameMovieFiles

func (siw *ServerInterfaceWrapper) RenameMovieFiles(w http.ResponseWriter, r *http.Request)

RenameMovieFiles operation middleware

func (*ServerInterfaceWrapper) RenameSeriesFiles

func (siw *ServerInterfaceWrapper) RenameSeriesFiles(w http.ResponseWriter, r *http.Request)

RenameSeriesFiles operation middleware

func (*ServerInterfaceWrapper) ReopenRequest

func (siw *ServerInterfaceWrapper) ReopenRequest(w http.ResponseWriter, r *http.Request)

ReopenRequest operation middleware

func (*ServerInterfaceWrapper) ReplacePending

func (siw *ServerInterfaceWrapper) ReplacePending(w http.ResponseWriter, r *http.Request)

ReplacePending operation middleware

func (*ServerInterfaceWrapper) ResetUserPassword

func (siw *ServerInterfaceWrapper) ResetUserPassword(w http.ResponseWriter, r *http.Request)

ResetUserPassword operation middleware

func (*ServerInterfaceWrapper) ResumeQueueItem

func (siw *ServerInterfaceWrapper) ResumeQueueItem(w http.ResponseWriter, r *http.Request)

ResumeQueueItem operation middleware

func (*ServerInterfaceWrapper) ResumeSchedule

func (siw *ServerInterfaceWrapper) ResumeSchedule(w http.ResponseWriter, r *http.Request)

ResumeSchedule operation middleware

func (*ServerInterfaceWrapper) RevokeInvite

func (siw *ServerInterfaceWrapper) RevokeInvite(w http.ResponseWriter, r *http.Request)

RevokeInvite operation middleware

func (*ServerInterfaceWrapper) RevokeUserApiKey

func (siw *ServerInterfaceWrapper) RevokeUserApiKey(w http.ResponseWriter, r *http.Request)

RevokeUserApiKey operation middleware

func (*ServerInterfaceWrapper) RevokeUserSession

func (siw *ServerInterfaceWrapper) RevokeUserSession(w http.ResponseWriter, r *http.Request)

RevokeUserSession operation middleware

func (*ServerInterfaceWrapper) RotateJWTSecret

func (siw *ServerInterfaceWrapper) RotateJWTSecret(w http.ResponseWriter, r *http.Request)

RotateJWTSecret operation middleware

func (*ServerInterfaceWrapper) RunSchedule

func (siw *ServerInterfaceWrapper) RunSchedule(w http.ResponseWriter, r *http.Request)

RunSchedule operation middleware

func (*ServerInterfaceWrapper) SearchMovie

func (siw *ServerInterfaceWrapper) SearchMovie(w http.ResponseWriter, r *http.Request)

SearchMovie operation middleware

func (*ServerInterfaceWrapper) SearchMovieNow

func (siw *ServerInterfaceWrapper) SearchMovieNow(w http.ResponseWriter, r *http.Request)

SearchMovieNow operation middleware

func (*ServerInterfaceWrapper) SearchSeries

func (siw *ServerInterfaceWrapper) SearchSeries(w http.ResponseWriter, r *http.Request)

SearchSeries operation middleware

func (*ServerInterfaceWrapper) SearchTMDBMovie

func (siw *ServerInterfaceWrapper) SearchTMDBMovie(w http.ResponseWriter, r *http.Request)

SearchTMDBMovie operation middleware

func (*ServerInterfaceWrapper) StartImport

func (siw *ServerInterfaceWrapper) StartImport(w http.ResponseWriter, r *http.Request)

StartImport operation middleware

func (*ServerInterfaceWrapper) TestDownloadClient

func (siw *ServerInterfaceWrapper) TestDownloadClient(w http.ResponseWriter, r *http.Request)

TestDownloadClient operation middleware

func (*ServerInterfaceWrapper) TestDraftDownloadClient

func (siw *ServerInterfaceWrapper) TestDraftDownloadClient(w http.ResponseWriter, r *http.Request)

TestDraftDownloadClient operation middleware

func (*ServerInterfaceWrapper) TestDraftIndexer

func (siw *ServerInterfaceWrapper) TestDraftIndexer(w http.ResponseWriter, r *http.Request)

TestDraftIndexer operation middleware

func (*ServerInterfaceWrapper) TestDraftMediaServer

func (siw *ServerInterfaceWrapper) TestDraftMediaServer(w http.ResponseWriter, r *http.Request)

TestDraftMediaServer operation middleware

func (*ServerInterfaceWrapper) TestIndexer

func (siw *ServerInterfaceWrapper) TestIndexer(w http.ResponseWriter, r *http.Request)

TestIndexer operation middleware

func (*ServerInterfaceWrapper) TestMediaServer

func (siw *ServerInterfaceWrapper) TestMediaServer(w http.ResponseWriter, r *http.Request)

TestMediaServer operation middleware

func (*ServerInterfaceWrapper) UnlockUser

func (siw *ServerInterfaceWrapper) UnlockUser(w http.ResponseWriter, r *http.Request)

UnlockUser operation middleware

func (*ServerInterfaceWrapper) UpdateConfigAuth

func (siw *ServerInterfaceWrapper) UpdateConfigAuth(w http.ResponseWriter, r *http.Request)

UpdateConfigAuth operation middleware

func (*ServerInterfaceWrapper) UpdateDownloadClient

func (siw *ServerInterfaceWrapper) UpdateDownloadClient(w http.ResponseWriter, r *http.Request)

UpdateDownloadClient operation middleware

func (*ServerInterfaceWrapper) UpdateImportFileDecision

func (siw *ServerInterfaceWrapper) UpdateImportFileDecision(w http.ResponseWriter, r *http.Request)

UpdateImportFileDecision operation middleware

func (*ServerInterfaceWrapper) UpdateImportShowDecision

func (siw *ServerInterfaceWrapper) UpdateImportShowDecision(w http.ResponseWriter, r *http.Request)

UpdateImportShowDecision operation middleware

func (*ServerInterfaceWrapper) UpdateIndexer

func (siw *ServerInterfaceWrapper) UpdateIndexer(w http.ResponseWriter, r *http.Request)

UpdateIndexer operation middleware

func (*ServerInterfaceWrapper) UpdateMe

func (siw *ServerInterfaceWrapper) UpdateMe(w http.ResponseWriter, r *http.Request)

UpdateMe operation middleware

func (*ServerInterfaceWrapper) UpdateMediaServer

func (siw *ServerInterfaceWrapper) UpdateMediaServer(w http.ResponseWriter, r *http.Request)

UpdateMediaServer operation middleware

func (*ServerInterfaceWrapper) UpdateOIDCProvider

func (siw *ServerInterfaceWrapper) UpdateOIDCProvider(w http.ResponseWriter, r *http.Request)

UpdateOIDCProvider operation middleware

func (*ServerInterfaceWrapper) UpdateQualityProfile

func (siw *ServerInterfaceWrapper) UpdateQualityProfile(w http.ResponseWriter, r *http.Request)

UpdateQualityProfile operation middleware

func (*ServerInterfaceWrapper) UpdateSchedule

func (siw *ServerInterfaceWrapper) UpdateSchedule(w http.ResponseWriter, r *http.Request)

UpdateSchedule operation middleware

func (*ServerInterfaceWrapper) UpdateUser

func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request)

UpdateUser operation middleware

type Session

type Session struct {
	CreatedAt  time.Time  `json:"created_at"`
	ExpiresAt  time.Time  `json:"expires_at"`
	Id         uint32     `json:"id"`
	Ip         *string    `json:"ip,omitempty"`
	IsCurrent  bool       `json:"is_current"`
	LastSeenAt *time.Time `json:"last_seen_at,omitempty"`
	UserAgent  *string    `json:"user_agent,omitempty"`
}

Session defines model for Session.

type SessionID

type SessionID = uint32

SessionID defines model for SessionID.

type StartImport

type StartImport = ImportScanCreateRequest

StartImport defines model for StartImport.

type StartImport201JSONResponse

type StartImport201JSONResponse struct{ ImportScanJSONResponse }

func (StartImport201JSONResponse) VisitStartImportResponse

func (response StartImport201JSONResponse) VisitStartImportResponse(w http.ResponseWriter) error

type StartImport403JSONResponse

type StartImport403JSONResponse struct{ ForbiddenJSONResponse }

func (StartImport403JSONResponse) VisitStartImportResponse

func (response StartImport403JSONResponse) VisitStartImportResponse(w http.ResponseWriter) error

type StartImport409JSONResponse

type StartImport409JSONResponse struct{ ConflictJSONResponse }

func (StartImport409JSONResponse) VisitStartImportResponse

func (response StartImport409JSONResponse) VisitStartImportResponse(w http.ResponseWriter) error

type StartImport422JSONResponse

type StartImport422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (StartImport422JSONResponse) VisitStartImportResponse

func (response StartImport422JSONResponse) VisitStartImportResponse(w http.ResponseWriter) error

type StartImportJSONRequestBody

type StartImportJSONRequestBody = ImportScanCreateRequest

StartImportJSONRequestBody defines body for StartImport for application/json ContentType.

type StartImportRequestObject

type StartImportRequestObject struct {
	Body *StartImportJSONRequestBody
}

type StartImportResponseObject

type StartImportResponseObject interface {
	VisitStartImportResponse(w http.ResponseWriter) error
}

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictServerInterface

type StrictServerInterface interface {
	// Library activity events.
	// (GET /activity)
	ListActivity(ctx context.Context, request ListActivityRequestObject) (ListActivityResponseObject, error)
	// Terminal download history (completed/failed), paginated.
	// (GET /activity/history)
	ListDownloadHistory(ctx context.Context, request ListDownloadHistoryRequestObject) (ListDownloadHistoryResponseObject, error)
	// Delete all completed history records.
	// (POST /activity/history/clear-completed)
	ClearCompletedHistory(ctx context.Context, request ClearCompletedHistoryRequestObject) (ClearCompletedHistoryResponseObject, error)
	// Delete one history record.
	// (DELETE /activity/history/{id})
	DeleteHistoryItem(ctx context.Context, request DeleteHistoryItemRequestObject) (DeleteHistoryItemResponseObject, error)
	// Adopted-torrent proposals awaiting a decision.
	// (GET /activity/pending)
	ListPending(ctx context.Context, request ListPendingRequestObject) (ListPendingResponseObject, error)
	// Dismiss a proposal (optionally removing its torrent).
	// (POST /activity/pending/{id}/ignore)
	IgnorePending(ctx context.Context, request IgnorePendingRequestObject) (IgnorePendingResponseObject, error)
	// Accept a proposal and import it as-is.
	// (POST /activity/pending/{id}/import)
	ImportPending(ctx context.Context, request ImportPendingRequestObject) (ImportPendingResponseObject, error)
	// Delete the existing file, then import the proposal.
	// (POST /activity/pending/{id}/replace)
	ReplacePending(ctx context.Context, request ReplacePendingRequestObject) (ReplacePendingResponseObject, error)
	// Live download queue snapshot.
	// (GET /activity/queue)
	GetDownloadQueue(ctx context.Context, request GetDownloadQueueRequestObject) (GetDownloadQueueResponseObject, error)
	// Cancel an in-flight download.
	// (DELETE /activity/queue/{id})
	CancelQueueItem(ctx context.Context, request CancelQueueItemRequestObject) (CancelQueueItemResponseObject, error)
	// Pause an in-flight download.
	// (POST /activity/queue/{id}/pause)
	PauseQueueItem(ctx context.Context, request PauseQueueItemRequestObject) (PauseQueueItemResponseObject, error)
	// Resume a paused download.
	// (POST /activity/queue/{id}/resume)
	ResumeQueueItem(ctx context.Context, request ResumeQueueItemRequestObject) (ResumeQueueItemResponseObject, error)
	// List pending invites (admin)
	// (GET /auth/invites)
	ListInvites(ctx context.Context, request ListInvitesRequestObject) (ListInvitesResponseObject, error)
	// Create an invite (admin)
	// (POST /auth/invites)
	CreateInvite(ctx context.Context, request CreateInviteRequestObject) (CreateInviteResponseObject, error)
	// Revoke an invite (admin)
	// (DELETE /auth/invites/{id})
	RevokeInvite(ctx context.Context, request RevokeInviteRequestObject) (RevokeInviteResponseObject, error)
	// Rotate the JWT signing secret (admin)
	// (POST /auth/jwt/rotate)
	RotateJWTSecret(ctx context.Context, request RotateJWTSecretRequestObject) (RotateJWTSecretResponseObject, error)
	// Current authenticated user
	// (GET /auth/me)
	AuthMe(ctx context.Context, request AuthMeRequestObject) (AuthMeResponseObject, error)
	// Update current user profile
	// (PATCH /auth/me)
	UpdateMe(ctx context.Context, request UpdateMeRequestObject) (UpdateMeResponseObject, error)
	// List current user's API keys
	// (GET /auth/me/api-keys)
	ListMyApiKeys(ctx context.Context, request ListMyApiKeysRequestObject) (ListMyApiKeysResponseObject, error)
	// Create a new API key for current user; raw_token shown once
	// (POST /auth/me/api-keys)
	CreateMyApiKey(ctx context.Context, request CreateMyApiKeyRequestObject) (CreateMyApiKeyResponseObject, error)
	// Revoke an API key owned by current user
	// (DELETE /auth/me/api-keys/{id})
	DeleteMyApiKey(ctx context.Context, request DeleteMyApiKeyRequestObject) (DeleteMyApiKeyResponseObject, error)
	// List current user's active sessions
	// (GET /auth/me/sessions)
	ListMySessions(ctx context.Context, request ListMySessionsRequestObject) (ListMySessionsResponseObject, error)
	// Revoke a session owned by current user
	// (DELETE /auth/me/sessions/{id})
	DeleteMySession(ctx context.Context, request DeleteMySessionRequestObject) (DeleteMySessionResponseObject, error)
	// Change current user's password; revokes all other sessions
	// (POST /auth/password)
	ChangePassword(ctx context.Context, request ChangePasswordRequestObject) (ChangePasswordResponseObject, error)
	// Upcoming wanted-movie digital releases in [from, to).
	// (GET /calendar/upcoming)
	ListUpcomingReleases(ctx context.Context, request ListUpcomingReleasesRequestObject) (ListUpcomingReleasesResponseObject, error)
	// Get auth configuration (admin)
	// (GET /config/auth)
	GetConfigAuth(ctx context.Context, request GetConfigAuthRequestObject) (GetConfigAuthResponseObject, error)
	// Patch auth configuration (admin)
	// (PATCH /config/auth)
	UpdateConfigAuth(ctx context.Context, request UpdateConfigAuthRequestObject) (UpdateConfigAuthResponseObject, error)
	// List OIDC providers (admin)
	// (GET /config/oidc)
	ListOIDCProviders(ctx context.Context, request ListOIDCProvidersRequestObject) (ListOIDCProvidersResponseObject, error)
	// Add an OIDC provider (admin)
	// (POST /config/oidc)
	CreateOIDCProvider(ctx context.Context, request CreateOIDCProviderRequestObject) (CreateOIDCProviderResponseObject, error)
	// Delete an OIDC provider (admin)
	// (DELETE /config/oidc/{name})
	DeleteOIDCProvider(ctx context.Context, request DeleteOIDCProviderRequestObject) (DeleteOIDCProviderResponseObject, error)
	// Get an OIDC provider (admin)
	// (GET /config/oidc/{name})
	GetOIDCProvider(ctx context.Context, request GetOIDCProviderRequestObject) (GetOIDCProviderResponseObject, error)
	// Update an OIDC provider (admin)
	// (PATCH /config/oidc/{name})
	UpdateOIDCProvider(ctx context.Context, request UpdateOIDCProviderRequestObject) (UpdateOIDCProviderResponseObject, error)
	// List download clients
	// (GET /download-clients)
	ListDownloadClients(ctx context.Context, request ListDownloadClientsRequestObject) (ListDownloadClientsResponseObject, error)
	// Add a download client
	// (POST /download-clients)
	CreateDownloadClient(ctx context.Context, request CreateDownloadClientRequestObject) (CreateDownloadClientResponseObject, error)
	// Test a draft download client connection
	// (POST /download-clients/test)
	TestDraftDownloadClient(ctx context.Context, request TestDraftDownloadClientRequestObject) (TestDraftDownloadClientResponseObject, error)
	// Delete a download client
	// (DELETE /download-clients/{name})
	DeleteDownloadClient(ctx context.Context, request DeleteDownloadClientRequestObject) (DeleteDownloadClientResponseObject, error)
	// Update a download client
	// (PUT /download-clients/{name})
	UpdateDownloadClient(ctx context.Context, request UpdateDownloadClientRequestObject) (UpdateDownloadClientResponseObject, error)
	// Test download client connection
	// (POST /download-clients/{name}/test)
	TestDownloadClient(ctx context.Context, request TestDownloadClientRequestObject) (TestDownloadClientResponseObject, error)
	// List configured indexers
	// (GET /indexers)
	ListIndexers(ctx context.Context, request ListIndexersRequestObject) (ListIndexersResponseObject, error)
	// Add an indexer
	// (POST /indexers)
	CreateIndexer(ctx context.Context, request CreateIndexerRequestObject) (CreateIndexerResponseObject, error)
	// Test a draft indexer connection
	// (POST /indexers/test)
	TestDraftIndexer(ctx context.Context, request TestDraftIndexerRequestObject) (TestDraftIndexerResponseObject, error)
	// Delete an indexer
	// (DELETE /indexers/{name})
	DeleteIndexer(ctx context.Context, request DeleteIndexerRequestObject) (DeleteIndexerResponseObject, error)
	// Update an indexer
	// (PUT /indexers/{name})
	UpdateIndexer(ctx context.Context, request UpdateIndexerRequestObject) (UpdateIndexerResponseObject, error)
	// Test indexer connection
	// (POST /indexers/{name}/test)
	TestIndexer(ctx context.Context, request TestIndexerRequestObject) (TestIndexerResponseObject, error)

	// (GET /library/imports)
	ListImports(ctx context.Context, request ListImportsRequestObject) (ListImportsResponseObject, error)

	// (POST /library/imports)
	StartImport(ctx context.Context, request StartImportRequestObject) (StartImportResponseObject, error)

	// (DELETE /library/imports/{id})
	DeleteImport(ctx context.Context, request DeleteImportRequestObject) (DeleteImportResponseObject, error)

	// (GET /library/imports/{id})
	GetImport(ctx context.Context, request GetImportRequestObject) (GetImportResponseObject, error)

	// (POST /library/imports/{id}/cancel)
	CancelImport(ctx context.Context, request CancelImportRequestObject) (CancelImportResponseObject, error)

	// (POST /library/imports/{id}/commit)
	CommitImport(ctx context.Context, request CommitImportRequestObject) (CommitImportResponseObject, error)

	// (GET /library/imports/{id}/files)
	ListImportFiles(ctx context.Context, request ListImportFilesRequestObject) (ListImportFilesResponseObject, error)

	// (PATCH /library/imports/{id}/files/{fileId})
	UpdateImportFileDecision(ctx context.Context, request UpdateImportFileDecisionRequestObject) (UpdateImportFileDecisionResponseObject, error)

	// (GET /library/imports/{id}/shows)
	ListImportShows(ctx context.Context, request ListImportShowsRequestObject) (ListImportShowsResponseObject, error)

	// (PATCH /library/imports/{id}/shows/{showId})
	UpdateImportShowDecision(ctx context.Context, request UpdateImportShowDecisionRequestObject) (UpdateImportShowDecisionResponseObject, error)
	// List configured media servers
	// (GET /media-servers)
	ListMediaServers(ctx context.Context, request ListMediaServersRequestObject) (ListMediaServersResponseObject, error)
	// Add a media server
	// (POST /media-servers)
	CreateMediaServer(ctx context.Context, request CreateMediaServerRequestObject) (CreateMediaServerResponseObject, error)
	// Discover library sections for a draft server
	// (POST /media-servers/discover)
	DiscoverMediaServerSections(ctx context.Context, request DiscoverMediaServerSectionsRequestObject) (DiscoverMediaServerSectionsResponseObject, error)
	// Test a draft media server connection
	// (POST /media-servers/test)
	TestDraftMediaServer(ctx context.Context, request TestDraftMediaServerRequestObject) (TestDraftMediaServerResponseObject, error)
	// Delete a media server
	// (DELETE /media-servers/{name})
	DeleteMediaServer(ctx context.Context, request DeleteMediaServerRequestObject) (DeleteMediaServerResponseObject, error)
	// Get a media server
	// (GET /media-servers/{name})
	GetMediaServer(ctx context.Context, request GetMediaServerRequestObject) (GetMediaServerResponseObject, error)
	// Update a media server
	// (PATCH /media-servers/{name})
	UpdateMediaServer(ctx context.Context, request UpdateMediaServerRequestObject) (UpdateMediaServerResponseObject, error)
	// Run a connection test against a saved media server
	// (POST /media-servers/{name}/test)
	TestMediaServer(ctx context.Context, request TestMediaServerRequestObject) (TestMediaServerResponseObject, error)
	// List all movies
	// (GET /movies)
	ListMovies(ctx context.Context, request ListMoviesRequestObject) (ListMoviesResponseObject, error)
	// Add a movie to the library
	// (POST /movies)
	AddMovie(ctx context.Context, request AddMovieRequestObject) (AddMovieResponseObject, error)
	// Movie status counts
	// (GET /movies/counts)
	GetMovieCounts(ctx context.Context, request GetMovieCountsRequestObject) (GetMovieCountsResponseObject, error)
	// Remove a movie from the library
	// (DELETE /movies/{id})
	DeleteMovie(ctx context.Context, request DeleteMovieRequestObject) (DeleteMovieResponseObject, error)
	// Get movie details
	// (GET /movies/{id})
	GetMovie(ctx context.Context, request GetMovieRequestObject) (GetMovieResponseObject, error)
	// Patch a movie
	// (PATCH /movies/{id})
	PatchMovie(ctx context.Context, request PatchMovieRequestObject) (PatchMovieResponseObject, error)
	// Delete a movie media file
	// (DELETE /movies/{id}/files/{fileId})
	DeleteMovieFile(ctx context.Context, request DeleteMovieFileRequestObject) (DeleteMovieFileResponseObject, error)
	// Grab a specific release for this movie
	// (POST /movies/{id}/grab)
	GrabMovieRelease(ctx context.Context, request GrabMovieReleaseRequestObject) (GrabMovieReleaseResponseObject, error)
	// Resolve per-server deep links for the movie
	// (GET /movies/{id}/play-on)
	GetMoviePlayOnLinks(ctx context.Context, request GetMoviePlayOnLinksRequestObject) (GetMoviePlayOnLinksResponseObject, error)
	// TMDB recommendations for a movie
	// (GET /movies/{id}/recommendations)
	GetMovieRecommendations(ctx context.Context, request GetMovieRecommendationsRequestObject) (GetMovieRecommendationsResponseObject, error)
	// Re-fetch TMDB metadata for one movie
	// (POST /movies/{id}/refresh-metadata)
	RefreshMovieMetadata(ctx context.Context, request RefreshMovieMetadataRequestObject) (RefreshMovieMetadataResponseObject, error)
	// Rename movie files to match the library naming pattern
	// (POST /movies/{id}/rename)
	RenameMovieFiles(ctx context.Context, request RenameMovieFilesRequestObject) (RenameMovieFilesResponseObject, error)
	// Search indexers for a movie
	// (POST /movies/{id}/search)
	SearchMovie(ctx context.Context, request SearchMovieRequestObject) (SearchMovieResponseObject, error)
	// Dispatch an indexer search and grab for a single movie
	// (POST /movies/{id}/search-now)
	SearchMovieNow(ctx context.Context, request SearchMovieNowRequestObject) (SearchMovieNowResponseObject, error)
	// List quality profiles
	// (GET /quality-profiles)
	ListQualityProfiles(ctx context.Context, request ListQualityProfilesRequestObject) (ListQualityProfilesResponseObject, error)
	// Create a quality profile
	// (POST /quality-profiles)
	CreateQualityProfile(ctx context.Context, request CreateQualityProfileRequestObject) (CreateQualityProfileResponseObject, error)
	// Delete a quality profile
	// (DELETE /quality-profiles/{name})
	DeleteQualityProfile(ctx context.Context, request DeleteQualityProfileRequestObject) (DeleteQualityProfileResponseObject, error)
	// Update a quality profile
	// (PUT /quality-profiles/{name})
	UpdateQualityProfile(ctx context.Context, request UpdateQualityProfileRequestObject) (UpdateQualityProfileResponseObject, error)
	// List media requests
	// (GET /requests)
	ListRequests(ctx context.Context, request ListRequestsRequestObject) (ListRequestsResponseObject, error)
	// Request a movie or show
	// (POST /requests)
	CreateRequest(ctx context.Context, request CreateRequestRequestObject) (CreateRequestResponseObject, error)
	// Request counts by status
	// (GET /requests/counts)
	GetRequestCounts(ctx context.Context, request GetRequestCountsRequestObject) (GetRequestCountsResponseObject, error)
	// Approve a request (admin/member) — creates the library item
	// (POST /requests/{id}/approve)
	ApproveRequest(ctx context.Context, request ApproveRequestRequestObject) (ApproveRequestResponseObject, error)
	// Deny a request (admin)
	// (POST /requests/{id}/deny)
	DenyRequest(ctx context.Context, request DenyRequestRequestObject) (DenyRequestResponseObject, error)
	// Cover and synopsis for a requested item
	// (GET /requests/{id}/metadata)
	GetRequestMetadata(ctx context.Context, request GetRequestMetadataRequestObject) (GetRequestMetadataResponseObject, error)
	// Reopen a denied request (admin)
	// (POST /requests/{id}/reopen)
	ReopenRequest(ctx context.Context, request ReopenRequestRequestObject) (ReopenRequestResponseObject, error)
	// List all scheduled jobs with current state.
	// (GET /schedules)
	ListSchedules(ctx context.Context, request ListSchedulesRequestObject) (ListSchedulesResponseObject, error)
	// Get a single scheduled job by name.
	// (GET /schedules/{name})
	GetSchedule(ctx context.Context, request GetScheduleRequestObject) (GetScheduleResponseObject, error)
	// Edit the interval of a scheduled job.
	// (PATCH /schedules/{name})
	UpdateSchedule(ctx context.Context, request UpdateScheduleRequestObject) (UpdateScheduleResponseObject, error)
	// Pause a scheduled job.
	// (POST /schedules/{name}/pause)
	PauseSchedule(ctx context.Context, request PauseScheduleRequestObject) (PauseScheduleResponseObject, error)
	// Resume a paused job.
	// (POST /schedules/{name}/resume)
	ResumeSchedule(ctx context.Context, request ResumeScheduleRequestObject) (ResumeScheduleResponseObject, error)
	// Trigger a one-off run of a job.
	// (POST /schedules/{name}/run)
	RunSchedule(ctx context.Context, request RunScheduleRequestObject) (RunScheduleResponseObject, error)
	// Search TMDB for movies
	// (GET /search/movie)
	SearchTMDBMovie(ctx context.Context, request SearchTMDBMovieRequestObject) (SearchTMDBMovieResponseObject, error)
	// List all series
	// (GET /series)
	ListSeries(ctx context.Context, request ListSeriesRequestObject) (ListSeriesResponseObject, error)
	// Add a series by TVDB id
	// (POST /series)
	AddSeries(ctx context.Context, request AddSeriesRequestObject) (AddSeriesResponseObject, error)
	// Series status counts
	// (GET /series/counts)
	GetSeriesCounts(ctx context.Context, request GetSeriesCountsRequestObject) (GetSeriesCountsResponseObject, error)
	// Search TVDB for series to add
	// (GET /series/lookup)
	LookupSeries(ctx context.Context, request LookupSeriesRequestObject) (LookupSeriesResponseObject, error)
	// Remove a series from the library
	// (DELETE /series/{id})
	DeleteSeries(ctx context.Context, request DeleteSeriesRequestObject) (DeleteSeriesResponseObject, error)
	// Get series details
	// (GET /series/{id})
	GetSeries(ctx context.Context, request GetSeriesRequestObject) (GetSeriesResponseObject, error)
	// Patch a series
	// (PATCH /series/{id})
	PatchSeries(ctx context.Context, request PatchSeriesRequestObject) (PatchSeriesResponseObject, error)
	// Search indexers for whole-series releases
	// (POST /series/{id}/browse)
	BrowseSeriesReleases(ctx context.Context, request BrowseSeriesReleasesRequestObject) (BrowseSeriesReleasesResponseObject, error)
	// Toggle episode monitoring
	// (PATCH /series/{id}/episodes/{episodeId})
	PatchEpisode(ctx context.Context, request PatchEpisodeRequestObject) (PatchEpisodeResponseObject, error)
	// Delete an episode media file
	// (DELETE /series/{id}/episodes/{episodeId}/file)
	DeleteEpisodeFile(ctx context.Context, request DeleteEpisodeFileRequestObject) (DeleteEpisodeFileResponseObject, error)
	// Grab a specific release for this episode
	// (POST /series/{id}/episodes/{episodeId}/grab)
	GrabEpisodeRelease(ctx context.Context, request GrabEpisodeReleaseRequestObject) (GrabEpisodeReleaseResponseObject, error)
	// Search indexers for one episode's releases
	// (POST /series/{id}/episodes/{episodeId}/search)
	BrowseEpisodeReleases(ctx context.Context, request BrowseEpisodeReleasesRequestObject) (BrowseEpisodeReleasesResponseObject, error)
	// Grab a whole-series release
	// (POST /series/{id}/grab)
	GrabSeriesRelease(ctx context.Context, request GrabSeriesReleaseRequestObject) (GrabSeriesReleaseResponseObject, error)
	// Resolve per-server deep links for the series
	// (GET /series/{id}/play-on)
	GetSeriesPlayOnLinks(ctx context.Context, request GetSeriesPlayOnLinksRequestObject) (GetSeriesPlayOnLinksResponseObject, error)
	// Re-fetch TVDB metadata for one series
	// (POST /series/{id}/refresh-metadata)
	RefreshSeriesMetadata(ctx context.Context, request RefreshSeriesMetadataRequestObject) (RefreshSeriesMetadataResponseObject, error)
	// Rename series episode files to match the library naming pattern
	// (POST /series/{id}/rename)
	RenameSeriesFiles(ctx context.Context, request RenameSeriesFilesRequestObject) (RenameSeriesFilesResponseObject, error)
	// Auto-search all wanted episodes for this series
	// (POST /series/{id}/search)
	SearchSeries(ctx context.Context, request SearchSeriesRequestObject) (SearchSeriesResponseObject, error)
	// Toggle season monitoring
	// (PATCH /series/{id}/seasons/{number})
	PatchSeason(ctx context.Context, request PatchSeasonRequestObject) (PatchSeasonResponseObject, error)
	// Grab a season-pack release
	// (POST /series/{id}/seasons/{number}/grab)
	GrabSeasonRelease(ctx context.Context, request GrabSeasonReleaseRequestObject) (GrabSeasonReleaseResponseObject, error)
	// Search indexers for a season's releases
	// (POST /series/{id}/seasons/{number}/search)
	BrowseSeasonReleases(ctx context.Context, request BrowseSeasonReleasesRequestObject) (BrowseSeasonReleasesResponseObject, error)
	// Read-only environment summary (admin)
	// (GET /system/info)
	GetSystemInfo(ctx context.Context, request GetSystemInfoRequestObject) (GetSystemInfoResponseObject, error)
	// List users (admin)
	// (GET /users)
	ListUsers(ctx context.Context, request ListUsersRequestObject) (ListUsersResponseObject, error)
	// Create user (admin)
	// (POST /users)
	CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error)
	// Delete user (admin)
	// (DELETE /users/{uid})
	DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
	// Get user detail (admin)
	// (GET /users/{uid})
	GetUser(ctx context.Context, request GetUserRequestObject) (GetUserResponseObject, error)
	// Patch user (admin)
	// (PATCH /users/{uid})
	UpdateUser(ctx context.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error)
	// Revoke user's API key (admin)
	// (DELETE /users/{uid}/api-keys/{kid})
	RevokeUserApiKey(ctx context.Context, request RevokeUserApiKeyRequestObject) (RevokeUserApiKeyResponseObject, error)
	// Reset user password (admin)
	// (POST /users/{uid}/password-reset)
	ResetUserPassword(ctx context.Context, request ResetUserPasswordRequestObject) (ResetUserPasswordResponseObject, error)
	// Revoke user's session (admin)
	// (DELETE /users/{uid}/sessions/{sid})
	RevokeUserSession(ctx context.Context, request RevokeUserSessionRequestObject) (RevokeUserSessionResponseObject, error)
	// Clear lockout state on a user (admin)
	// (POST /users/{uid}/unlock)
	UnlockUser(ctx context.Context, request UnlockUserRequestObject) (UnlockUserResponseObject, error)
}

StrictServerInterface represents all server handlers.

type SystemInfo

type SystemInfo struct {
	AppName   string     `json:"app_name"`
	AuthMode  string     `json:"auth_mode"`
	BuiltAt   *string    `json:"built_at,omitempty"`
	Commit    *string    `json:"commit,omitempty"`
	DataDir   string     `json:"data_dir"`
	DataUsage *DiskUsage `json:"data_usage,omitempty"`
	DbPath    string     `json:"db_path"`

	// DbSize Human-readable file size, empty when stat fails.
	DbSize    *string    `json:"db_size,omitempty"`
	DbUsage   *DiskUsage `json:"db_usage,omitempty"`
	GoOsArch  string     `json:"go_os_arch"`
	GoVersion string     `json:"go_version"`

	// HttpsWarn True when public_url is plain http://.
	HttpsWarn bool   `json:"https_warn"`
	PublicUrl string `json:"public_url"`
	Version   string `json:"version"`
}

SystemInfo defines model for SystemInfo.

type SystemInfoJSONResponse

type SystemInfoJSONResponse SystemInfo

type TMDBMovieResult

type TMDBMovieResult struct {
	// OriginalTitle TMDB original_title. Equals title when the localized title
	// matches the original.
	OriginalTitle string  `json:"original_title"`
	Overview      *string `json:"overview,omitempty"`

	// PosterUrl Pre-built TMDB image CDN URL (size w185). Empty when the
	// entry has no poster on TMDB.
	PosterUrl *string `json:"poster_url,omitempty"`
	Title     string  `json:"title"`
	TmdbId    uint32  `json:"tmdb_id"`
	Year      uint16  `json:"year"`
}

TMDBMovieResult defines model for TMDBMovieResult.

type TVShow

type TVShow struct {
	// Cast Top-billed cast from TVDB. Only populated by GET /series/{id};
	// absent in list responses.
	Cast    *[]CastMember `json:"cast,omitempty"`
	Creator *string       `json:"creator,omitempty"`
	Genres  *[]string     `json:"genres,omitempty"`

	// HaveEpisodes Episodes with a media file. Rolled up across seasons.
	HaveEpisodes *uint32 `json:"have_episodes,omitempty"`
	Id           uint32  `json:"id"`
	Monitored    bool    `json:"monitored"`
	Network      *string `json:"network,omitempty"`

	// OriginalTitle Untranslated TVDB name. Equals title when the localized title
	// matches the original; UI hides it in that case.
	OriginalTitle *string `json:"original_title,omitempty"`
	Overview      *string `json:"overview,omitempty"`

	// QualityProfile Name of the quality profile (empty resolves to the default).
	QualityProfile *string  `json:"quality_profile,omitempty"`
	Rating         *float32 `json:"rating,omitempty"`

	// Runtime Episode runtime in minutes. Zero when unknown.
	Runtime *uint16 `json:"runtime,omitempty"`

	// Seasons Seasons with their episodes. Only populated by GET /series/{id};
	// absent in list responses.
	Seasons       *[]Season          `json:"seasons,omitempty"`
	SeriesStatus  TVShowSeriesStatus `json:"series_status"`
	Title         string             `json:"title"`
	TotalEpisodes *uint32            `json:"total_episodes,omitempty"`
	TvdbId        uint32             `json:"tvdb_id"`
	Type          TVShowType         `json:"type"`

	// WantedEpisodes Aired/undated episodes without a file (the "missing" count).
	WantedEpisodes *uint32 `json:"wanted_episodes,omitempty"`
	Year           uint16  `json:"year"`
}

TVShow defines model for TVShow.

type TVShowCounts

type TVShowCounts struct {
	Continuing     int `json:"continuing"`
	Ended          int `json:"ended"`
	Total          int `json:"total"`
	WantedEpisodes int `json:"wanted_episodes"`
}

TVShowCounts defines model for TVShowCounts.

type TVShowSeriesStatus

type TVShowSeriesStatus string

TVShowSeriesStatus defines model for TVShow.SeriesStatus.

const (
	TVShowSeriesStatusContinuing TVShowSeriesStatus = "continuing"
	TVShowSeriesStatusEnded      TVShowSeriesStatus = "ended"
	TVShowSeriesStatusUpcoming   TVShowSeriesStatus = "upcoming"
)

Defines values for TVShowSeriesStatus.

func (TVShowSeriesStatus) Valid

func (e TVShowSeriesStatus) Valid() bool

Valid indicates whether the value is a known member of the TVShowSeriesStatus enum.

type TVShowType

type TVShowType string

TVShowType defines model for TVShow.Type.

const (
	TVShowTypeAnime    TVShowType = "anime"
	TVShowTypeDaily    TVShowType = "daily"
	TVShowTypeStandard TVShowType = "standard"
)

Defines values for TVShowType.

func (TVShowType) Valid

func (e TVShowType) Valid() bool

Valid indicates whether the value is a known member of the TVShowType enum.

type TestDownloadClient200Response

type TestDownloadClient200Response = ConnectionTestOKResponse

func (TestDownloadClient200Response) VisitTestDownloadClientResponse

func (response TestDownloadClient200Response) VisitTestDownloadClientResponse(w http.ResponseWriter) error

type TestDownloadClient403JSONResponse

type TestDownloadClient403JSONResponse struct{ ForbiddenJSONResponse }

func (TestDownloadClient403JSONResponse) VisitTestDownloadClientResponse

func (response TestDownloadClient403JSONResponse) VisitTestDownloadClientResponse(w http.ResponseWriter) error

type TestDownloadClient404JSONResponse

type TestDownloadClient404JSONResponse struct{ NotFoundJSONResponse }

func (TestDownloadClient404JSONResponse) VisitTestDownloadClientResponse

func (response TestDownloadClient404JSONResponse) VisitTestDownloadClientResponse(w http.ResponseWriter) error

type TestDownloadClient422JSONResponse

type TestDownloadClient422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (TestDownloadClient422JSONResponse) VisitTestDownloadClientResponse

func (response TestDownloadClient422JSONResponse) VisitTestDownloadClientResponse(w http.ResponseWriter) error

type TestDownloadClient500JSONResponse

type TestDownloadClient500JSONResponse struct{ InternalErrorJSONResponse }

func (TestDownloadClient500JSONResponse) VisitTestDownloadClientResponse

func (response TestDownloadClient500JSONResponse) VisitTestDownloadClientResponse(w http.ResponseWriter) error

type TestDownloadClientRequestObject

type TestDownloadClientRequestObject struct {
	Name ResourceName `json:"name"`
}

type TestDownloadClientResponseObject

type TestDownloadClientResponseObject interface {
	VisitTestDownloadClientResponse(w http.ResponseWriter) error
}

type TestDraftDownloadClient200Response

type TestDraftDownloadClient200Response = ConnectionTestOKResponse

func (TestDraftDownloadClient200Response) VisitTestDraftDownloadClientResponse

func (response TestDraftDownloadClient200Response) VisitTestDraftDownloadClientResponse(w http.ResponseWriter) error

type TestDraftDownloadClient403JSONResponse

type TestDraftDownloadClient403JSONResponse struct{ ForbiddenJSONResponse }

func (TestDraftDownloadClient403JSONResponse) VisitTestDraftDownloadClientResponse

func (response TestDraftDownloadClient403JSONResponse) VisitTestDraftDownloadClientResponse(w http.ResponseWriter) error

type TestDraftDownloadClient422JSONResponse

type TestDraftDownloadClient422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (TestDraftDownloadClient422JSONResponse) VisitTestDraftDownloadClientResponse

func (response TestDraftDownloadClient422JSONResponse) VisitTestDraftDownloadClientResponse(w http.ResponseWriter) error

type TestDraftDownloadClient500JSONResponse

type TestDraftDownloadClient500JSONResponse struct{ InternalErrorJSONResponse }

func (TestDraftDownloadClient500JSONResponse) VisitTestDraftDownloadClientResponse

func (response TestDraftDownloadClient500JSONResponse) VisitTestDraftDownloadClientResponse(w http.ResponseWriter) error

type TestDraftDownloadClientJSONRequestBody

type TestDraftDownloadClientJSONRequestBody = DownloadClientCreate

TestDraftDownloadClientJSONRequestBody defines body for TestDraftDownloadClient for application/json ContentType.

type TestDraftDownloadClientRequestObject

type TestDraftDownloadClientRequestObject struct {
	Body *TestDraftDownloadClientJSONRequestBody
}

type TestDraftDownloadClientResponseObject

type TestDraftDownloadClientResponseObject interface {
	VisitTestDraftDownloadClientResponse(w http.ResponseWriter) error
}

type TestDraftIndexer200Response

type TestDraftIndexer200Response = ConnectionTestOKResponse

func (TestDraftIndexer200Response) VisitTestDraftIndexerResponse

func (response TestDraftIndexer200Response) VisitTestDraftIndexerResponse(w http.ResponseWriter) error

type TestDraftIndexer403JSONResponse

type TestDraftIndexer403JSONResponse struct{ ForbiddenJSONResponse }

func (TestDraftIndexer403JSONResponse) VisitTestDraftIndexerResponse

func (response TestDraftIndexer403JSONResponse) VisitTestDraftIndexerResponse(w http.ResponseWriter) error

type TestDraftIndexer422JSONResponse

type TestDraftIndexer422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (TestDraftIndexer422JSONResponse) VisitTestDraftIndexerResponse

func (response TestDraftIndexer422JSONResponse) VisitTestDraftIndexerResponse(w http.ResponseWriter) error

type TestDraftIndexer500JSONResponse

type TestDraftIndexer500JSONResponse struct{ InternalErrorJSONResponse }

func (TestDraftIndexer500JSONResponse) VisitTestDraftIndexerResponse

func (response TestDraftIndexer500JSONResponse) VisitTestDraftIndexerResponse(w http.ResponseWriter) error

type TestDraftIndexerJSONRequestBody

type TestDraftIndexerJSONRequestBody = IndexerCreate

TestDraftIndexerJSONRequestBody defines body for TestDraftIndexer for application/json ContentType.

type TestDraftIndexerRequestObject

type TestDraftIndexerRequestObject struct {
	Body *TestDraftIndexerJSONRequestBody
}

type TestDraftIndexerResponseObject

type TestDraftIndexerResponseObject interface {
	VisitTestDraftIndexerResponse(w http.ResponseWriter) error
}

type TestDraftMediaServer200Response

type TestDraftMediaServer200Response = MediaServerTestOKResponse

func (TestDraftMediaServer200Response) VisitTestDraftMediaServerResponse

func (response TestDraftMediaServer200Response) VisitTestDraftMediaServerResponse(w http.ResponseWriter) error

type TestDraftMediaServer403JSONResponse

type TestDraftMediaServer403JSONResponse struct{ ForbiddenJSONResponse }

func (TestDraftMediaServer403JSONResponse) VisitTestDraftMediaServerResponse

func (response TestDraftMediaServer403JSONResponse) VisitTestDraftMediaServerResponse(w http.ResponseWriter) error

type TestDraftMediaServer422JSONResponse

type TestDraftMediaServer422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (TestDraftMediaServer422JSONResponse) VisitTestDraftMediaServerResponse

func (response TestDraftMediaServer422JSONResponse) VisitTestDraftMediaServerResponse(w http.ResponseWriter) error

type TestDraftMediaServer500JSONResponse

type TestDraftMediaServer500JSONResponse struct{ InternalErrorJSONResponse }

func (TestDraftMediaServer500JSONResponse) VisitTestDraftMediaServerResponse

func (response TestDraftMediaServer500JSONResponse) VisitTestDraftMediaServerResponse(w http.ResponseWriter) error

type TestDraftMediaServerJSONRequestBody

type TestDraftMediaServerJSONRequestBody = MediaServerDiscoveryRequest

TestDraftMediaServerJSONRequestBody defines body for TestDraftMediaServer for application/json ContentType.

type TestDraftMediaServerRequestObject

type TestDraftMediaServerRequestObject struct {
	Body *TestDraftMediaServerJSONRequestBody
}

type TestDraftMediaServerResponseObject

type TestDraftMediaServerResponseObject interface {
	VisitTestDraftMediaServerResponse(w http.ResponseWriter) error
}

type TestIndexer200Response

type TestIndexer200Response = ConnectionTestOKResponse

func (TestIndexer200Response) VisitTestIndexerResponse

func (response TestIndexer200Response) VisitTestIndexerResponse(w http.ResponseWriter) error

type TestIndexer403JSONResponse

type TestIndexer403JSONResponse struct{ ForbiddenJSONResponse }

func (TestIndexer403JSONResponse) VisitTestIndexerResponse

func (response TestIndexer403JSONResponse) VisitTestIndexerResponse(w http.ResponseWriter) error

type TestIndexer404JSONResponse

type TestIndexer404JSONResponse struct{ NotFoundJSONResponse }

func (TestIndexer404JSONResponse) VisitTestIndexerResponse

func (response TestIndexer404JSONResponse) VisitTestIndexerResponse(w http.ResponseWriter) error

type TestIndexer422JSONResponse

type TestIndexer422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (TestIndexer422JSONResponse) VisitTestIndexerResponse

func (response TestIndexer422JSONResponse) VisitTestIndexerResponse(w http.ResponseWriter) error

type TestIndexer500JSONResponse

type TestIndexer500JSONResponse struct{ InternalErrorJSONResponse }

func (TestIndexer500JSONResponse) VisitTestIndexerResponse

func (response TestIndexer500JSONResponse) VisitTestIndexerResponse(w http.ResponseWriter) error

type TestIndexerRequestObject

type TestIndexerRequestObject struct {
	Name ResourceName `json:"name"`
}

type TestIndexerResponseObject

type TestIndexerResponseObject interface {
	VisitTestIndexerResponse(w http.ResponseWriter) error
}

type TestMediaServer200Response

type TestMediaServer200Response = MediaServerTestOKResponse

func (TestMediaServer200Response) VisitTestMediaServerResponse

func (response TestMediaServer200Response) VisitTestMediaServerResponse(w http.ResponseWriter) error

type TestMediaServer403JSONResponse

type TestMediaServer403JSONResponse struct{ ForbiddenJSONResponse }

func (TestMediaServer403JSONResponse) VisitTestMediaServerResponse

func (response TestMediaServer403JSONResponse) VisitTestMediaServerResponse(w http.ResponseWriter) error

type TestMediaServer404JSONResponse

type TestMediaServer404JSONResponse struct{ NotFoundJSONResponse }

func (TestMediaServer404JSONResponse) VisitTestMediaServerResponse

func (response TestMediaServer404JSONResponse) VisitTestMediaServerResponse(w http.ResponseWriter) error

type TestMediaServer422JSONResponse

type TestMediaServer422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (TestMediaServer422JSONResponse) VisitTestMediaServerResponse

func (response TestMediaServer422JSONResponse) VisitTestMediaServerResponse(w http.ResponseWriter) error

type TestMediaServer500JSONResponse

type TestMediaServer500JSONResponse struct{ InternalErrorJSONResponse }

func (TestMediaServer500JSONResponse) VisitTestMediaServerResponse

func (response TestMediaServer500JSONResponse) VisitTestMediaServerResponse(w http.ResponseWriter) error

type TestMediaServerRequestObject

type TestMediaServerRequestObject struct {
	Name ResourceName `json:"name"`
}

type TestMediaServerResponseObject

type TestMediaServerResponseObject interface {
	VisitTestMediaServerResponse(w http.ResponseWriter) error
}

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type Unauthorized

type Unauthorized = Error

Unauthorized defines model for Unauthorized.

type UnauthorizedJSONResponse

type UnauthorizedJSONResponse Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type Unimplemented

type Unimplemented struct{}

func (Unimplemented) AddMovie

func (_ Unimplemented) AddMovie(w http.ResponseWriter, r *http.Request)

Add a movie to the library (POST /movies)

func (Unimplemented) AddSeries

func (_ Unimplemented) AddSeries(w http.ResponseWriter, r *http.Request)

Add a series by TVDB id (POST /series)

func (Unimplemented) ApproveRequest

func (_ Unimplemented) ApproveRequest(w http.ResponseWriter, r *http.Request, id ResourceID)

Approve a request (admin/member) — creates the library item (POST /requests/{id}/approve)

func (Unimplemented) AuthMe

func (_ Unimplemented) AuthMe(w http.ResponseWriter, r *http.Request)

Current authenticated user (GET /auth/me)

func (Unimplemented) BrowseEpisodeReleases

func (_ Unimplemented) BrowseEpisodeReleases(w http.ResponseWriter, r *http.Request, id ResourceID, episodeId EpisodeID)

Search indexers for one episode's releases (POST /series/{id}/episodes/{episodeId}/search)

func (Unimplemented) BrowseSeasonReleases

func (_ Unimplemented) BrowseSeasonReleases(w http.ResponseWriter, r *http.Request, id ResourceID, number SeasonNumber)

Search indexers for a season's releases (POST /series/{id}/seasons/{number}/search)

func (Unimplemented) BrowseSeriesReleases

func (_ Unimplemented) BrowseSeriesReleases(w http.ResponseWriter, r *http.Request, id ResourceID)

Search indexers for whole-series releases (POST /series/{id}/browse)

func (Unimplemented) CancelImport

func (_ Unimplemented) CancelImport(w http.ResponseWriter, r *http.Request, id ResourceID)

(POST /library/imports/{id}/cancel)

func (Unimplemented) CancelQueueItem

func (_ Unimplemented) CancelQueueItem(w http.ResponseWriter, r *http.Request, id ResourceID)

Cancel an in-flight download. (DELETE /activity/queue/{id})

func (Unimplemented) ChangePassword

func (_ Unimplemented) ChangePassword(w http.ResponseWriter, r *http.Request)

Change current user's password; revokes all other sessions (POST /auth/password)

func (Unimplemented) ClearCompletedHistory

func (_ Unimplemented) ClearCompletedHistory(w http.ResponseWriter, r *http.Request)

Delete all completed history records. (POST /activity/history/clear-completed)

func (Unimplemented) CommitImport

func (_ Unimplemented) CommitImport(w http.ResponseWriter, r *http.Request, id ResourceID)

(POST /library/imports/{id}/commit)

func (Unimplemented) CreateDownloadClient

func (_ Unimplemented) CreateDownloadClient(w http.ResponseWriter, r *http.Request)

Add a download client (POST /download-clients)

func (Unimplemented) CreateIndexer

func (_ Unimplemented) CreateIndexer(w http.ResponseWriter, r *http.Request)

Add an indexer (POST /indexers)

func (Unimplemented) CreateInvite

func (_ Unimplemented) CreateInvite(w http.ResponseWriter, r *http.Request)

Create an invite (admin) (POST /auth/invites)

func (Unimplemented) CreateMediaServer

func (_ Unimplemented) CreateMediaServer(w http.ResponseWriter, r *http.Request)

Add a media server (POST /media-servers)

func (Unimplemented) CreateMyApiKey

func (_ Unimplemented) CreateMyApiKey(w http.ResponseWriter, r *http.Request)

Create a new API key for current user; raw_token shown once (POST /auth/me/api-keys)

func (Unimplemented) CreateOIDCProvider

func (_ Unimplemented) CreateOIDCProvider(w http.ResponseWriter, r *http.Request)

Add an OIDC provider (admin) (POST /config/oidc)

func (Unimplemented) CreateQualityProfile

func (_ Unimplemented) CreateQualityProfile(w http.ResponseWriter, r *http.Request)

Create a quality profile (POST /quality-profiles)

func (Unimplemented) CreateRequest

func (_ Unimplemented) CreateRequest(w http.ResponseWriter, r *http.Request)

Request a movie or show (POST /requests)

func (Unimplemented) CreateUser

func (_ Unimplemented) CreateUser(w http.ResponseWriter, r *http.Request)

Create user (admin) (POST /users)

func (Unimplemented) DeleteDownloadClient

func (_ Unimplemented) DeleteDownloadClient(w http.ResponseWriter, r *http.Request, name ResourceName)

Delete a download client (DELETE /download-clients/{name})

func (Unimplemented) DeleteEpisodeFile

func (_ Unimplemented) DeleteEpisodeFile(w http.ResponseWriter, r *http.Request, id ResourceID, episodeId EpisodeID)

Delete an episode media file (DELETE /series/{id}/episodes/{episodeId}/file)

func (Unimplemented) DeleteHistoryItem

func (_ Unimplemented) DeleteHistoryItem(w http.ResponseWriter, r *http.Request, id ResourceID)

Delete one history record. (DELETE /activity/history/{id})

func (Unimplemented) DeleteImport

func (_ Unimplemented) DeleteImport(w http.ResponseWriter, r *http.Request, id ResourceID)

(DELETE /library/imports/{id})

func (Unimplemented) DeleteIndexer

func (_ Unimplemented) DeleteIndexer(w http.ResponseWriter, r *http.Request, name ResourceName)

Delete an indexer (DELETE /indexers/{name})

func (Unimplemented) DeleteMediaServer

func (_ Unimplemented) DeleteMediaServer(w http.ResponseWriter, r *http.Request, name ResourceName)

Delete a media server (DELETE /media-servers/{name})

func (Unimplemented) DeleteMovie

func (_ Unimplemented) DeleteMovie(w http.ResponseWriter, r *http.Request, id ResourceID, params DeleteMovieParams)

Remove a movie from the library (DELETE /movies/{id})

func (Unimplemented) DeleteMovieFile

func (_ Unimplemented) DeleteMovieFile(w http.ResponseWriter, r *http.Request, id ResourceID, fileId FileID)

Delete a movie media file (DELETE /movies/{id}/files/{fileId})

func (Unimplemented) DeleteMyApiKey

func (_ Unimplemented) DeleteMyApiKey(w http.ResponseWriter, r *http.Request, id ResourceID)

Revoke an API key owned by current user (DELETE /auth/me/api-keys/{id})

func (Unimplemented) DeleteMySession

func (_ Unimplemented) DeleteMySession(w http.ResponseWriter, r *http.Request, id ResourceID)

Revoke a session owned by current user (DELETE /auth/me/sessions/{id})

func (Unimplemented) DeleteOIDCProvider

func (_ Unimplemented) DeleteOIDCProvider(w http.ResponseWriter, r *http.Request, name OIDCProviderName)

Delete an OIDC provider (admin) (DELETE /config/oidc/{name})

func (Unimplemented) DeleteQualityProfile

func (_ Unimplemented) DeleteQualityProfile(w http.ResponseWriter, r *http.Request, name ResourceName)

Delete a quality profile (DELETE /quality-profiles/{name})

func (Unimplemented) DeleteSeries

func (_ Unimplemented) DeleteSeries(w http.ResponseWriter, r *http.Request, id ResourceID, params DeleteSeriesParams)

Remove a series from the library (DELETE /series/{id})

func (Unimplemented) DeleteUser

func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, uid UserID)

Delete user (admin) (DELETE /users/{uid})

func (Unimplemented) DenyRequest

func (_ Unimplemented) DenyRequest(w http.ResponseWriter, r *http.Request, id ResourceID)

Deny a request (admin) (POST /requests/{id}/deny)

func (Unimplemented) DiscoverMediaServerSections

func (_ Unimplemented) DiscoverMediaServerSections(w http.ResponseWriter, r *http.Request)

Discover library sections for a draft server (POST /media-servers/discover)

func (Unimplemented) GetConfigAuth

func (_ Unimplemented) GetConfigAuth(w http.ResponseWriter, r *http.Request)

Get auth configuration (admin) (GET /config/auth)

func (Unimplemented) GetDownloadQueue

func (_ Unimplemented) GetDownloadQueue(w http.ResponseWriter, r *http.Request)

Live download queue snapshot. (GET /activity/queue)

func (Unimplemented) GetImport

func (_ Unimplemented) GetImport(w http.ResponseWriter, r *http.Request, id ResourceID)

(GET /library/imports/{id})

func (Unimplemented) GetMediaServer

func (_ Unimplemented) GetMediaServer(w http.ResponseWriter, r *http.Request, name ResourceName)

Get a media server (GET /media-servers/{name})

func (Unimplemented) GetMovie

func (_ Unimplemented) GetMovie(w http.ResponseWriter, r *http.Request, id ResourceID)

Get movie details (GET /movies/{id})

func (Unimplemented) GetMovieCounts

func (_ Unimplemented) GetMovieCounts(w http.ResponseWriter, r *http.Request)

Movie status counts (GET /movies/counts)

func (_ Unimplemented) GetMoviePlayOnLinks(w http.ResponseWriter, r *http.Request, id ResourceID)

Resolve per-server deep links for the movie (GET /movies/{id}/play-on)

func (Unimplemented) GetMovieRecommendations

func (_ Unimplemented) GetMovieRecommendations(w http.ResponseWriter, r *http.Request, id ResourceID)

TMDB recommendations for a movie (GET /movies/{id}/recommendations)

func (Unimplemented) GetOIDCProvider

func (_ Unimplemented) GetOIDCProvider(w http.ResponseWriter, r *http.Request, name OIDCProviderName)

Get an OIDC provider (admin) (GET /config/oidc/{name})

func (Unimplemented) GetRequestCounts

func (_ Unimplemented) GetRequestCounts(w http.ResponseWriter, r *http.Request)

Request counts by status (GET /requests/counts)

func (Unimplemented) GetRequestMetadata

func (_ Unimplemented) GetRequestMetadata(w http.ResponseWriter, r *http.Request, id ResourceID)

Cover and synopsis for a requested item (GET /requests/{id}/metadata)

func (Unimplemented) GetSchedule

func (_ Unimplemented) GetSchedule(w http.ResponseWriter, r *http.Request, name ScheduleName)

Get a single scheduled job by name. (GET /schedules/{name})

func (Unimplemented) GetSeries

func (_ Unimplemented) GetSeries(w http.ResponseWriter, r *http.Request, id ResourceID)

Get series details (GET /series/{id})

func (Unimplemented) GetSeriesCounts

func (_ Unimplemented) GetSeriesCounts(w http.ResponseWriter, r *http.Request)

Series status counts (GET /series/counts)

func (_ Unimplemented) GetSeriesPlayOnLinks(w http.ResponseWriter, r *http.Request, id ResourceID)

Resolve per-server deep links for the series (GET /series/{id}/play-on)

func (Unimplemented) GetSystemInfo

func (_ Unimplemented) GetSystemInfo(w http.ResponseWriter, r *http.Request)

Read-only environment summary (admin) (GET /system/info)

func (Unimplemented) GetUser

func (_ Unimplemented) GetUser(w http.ResponseWriter, r *http.Request, uid UserID)

Get user detail (admin) (GET /users/{uid})

func (Unimplemented) GrabEpisodeRelease

func (_ Unimplemented) GrabEpisodeRelease(w http.ResponseWriter, r *http.Request, id ResourceID, episodeId EpisodeID)

Grab a specific release for this episode (POST /series/{id}/episodes/{episodeId}/grab)

func (Unimplemented) GrabMovieRelease

func (_ Unimplemented) GrabMovieRelease(w http.ResponseWriter, r *http.Request, id ResourceID)

Grab a specific release for this movie (POST /movies/{id}/grab)

func (Unimplemented) GrabSeasonRelease

func (_ Unimplemented) GrabSeasonRelease(w http.ResponseWriter, r *http.Request, id ResourceID, number SeasonNumber)

Grab a season-pack release (POST /series/{id}/seasons/{number}/grab)

func (Unimplemented) GrabSeriesRelease

func (_ Unimplemented) GrabSeriesRelease(w http.ResponseWriter, r *http.Request, id ResourceID)

Grab a whole-series release (POST /series/{id}/grab)

func (Unimplemented) IgnorePending

func (_ Unimplemented) IgnorePending(w http.ResponseWriter, r *http.Request, id ResourceID)

Dismiss a proposal (optionally removing its torrent). (POST /activity/pending/{id}/ignore)

func (Unimplemented) ImportPending

func (_ Unimplemented) ImportPending(w http.ResponseWriter, r *http.Request, id ResourceID)

Accept a proposal and import it as-is. (POST /activity/pending/{id}/import)

func (Unimplemented) ListActivity

func (_ Unimplemented) ListActivity(w http.ResponseWriter, r *http.Request, params ListActivityParams)

Library activity events. (GET /activity)

func (Unimplemented) ListDownloadClients

func (_ Unimplemented) ListDownloadClients(w http.ResponseWriter, r *http.Request)

List download clients (GET /download-clients)

func (Unimplemented) ListDownloadHistory

func (_ Unimplemented) ListDownloadHistory(w http.ResponseWriter, r *http.Request, params ListDownloadHistoryParams)

Terminal download history (completed/failed), paginated. (GET /activity/history)

func (Unimplemented) ListImportFiles

func (_ Unimplemented) ListImportFiles(w http.ResponseWriter, r *http.Request, id ResourceID, params ListImportFilesParams)

(GET /library/imports/{id}/files)

func (Unimplemented) ListImportShows

func (_ Unimplemented) ListImportShows(w http.ResponseWriter, r *http.Request, id ResourceID, params ListImportShowsParams)

(GET /library/imports/{id}/shows)

func (Unimplemented) ListImports

func (_ Unimplemented) ListImports(w http.ResponseWriter, r *http.Request, params ListImportsParams)

(GET /library/imports)

func (Unimplemented) ListIndexers

func (_ Unimplemented) ListIndexers(w http.ResponseWriter, r *http.Request)

List configured indexers (GET /indexers)

func (Unimplemented) ListInvites

func (_ Unimplemented) ListInvites(w http.ResponseWriter, r *http.Request)

List pending invites (admin) (GET /auth/invites)

func (Unimplemented) ListMediaServers

func (_ Unimplemented) ListMediaServers(w http.ResponseWriter, r *http.Request)

List configured media servers (GET /media-servers)

func (Unimplemented) ListMovies

func (_ Unimplemented) ListMovies(w http.ResponseWriter, r *http.Request, params ListMoviesParams)

List all movies (GET /movies)

func (Unimplemented) ListMyApiKeys

func (_ Unimplemented) ListMyApiKeys(w http.ResponseWriter, r *http.Request)

List current user's API keys (GET /auth/me/api-keys)

func (Unimplemented) ListMySessions

func (_ Unimplemented) ListMySessions(w http.ResponseWriter, r *http.Request)

List current user's active sessions (GET /auth/me/sessions)

func (Unimplemented) ListOIDCProviders

func (_ Unimplemented) ListOIDCProviders(w http.ResponseWriter, r *http.Request)

List OIDC providers (admin) (GET /config/oidc)

func (Unimplemented) ListPending

func (_ Unimplemented) ListPending(w http.ResponseWriter, r *http.Request)

Adopted-torrent proposals awaiting a decision. (GET /activity/pending)

func (Unimplemented) ListQualityProfiles

func (_ Unimplemented) ListQualityProfiles(w http.ResponseWriter, r *http.Request)

List quality profiles (GET /quality-profiles)

func (Unimplemented) ListRequests

func (_ Unimplemented) ListRequests(w http.ResponseWriter, r *http.Request, params ListRequestsParams)

List media requests (GET /requests)

func (Unimplemented) ListSchedules

func (_ Unimplemented) ListSchedules(w http.ResponseWriter, r *http.Request)

List all scheduled jobs with current state. (GET /schedules)

func (Unimplemented) ListSeries

func (_ Unimplemented) ListSeries(w http.ResponseWriter, r *http.Request, params ListSeriesParams)

List all series (GET /series)

func (Unimplemented) ListUpcomingReleases

func (_ Unimplemented) ListUpcomingReleases(w http.ResponseWriter, r *http.Request, params ListUpcomingReleasesParams)

Upcoming wanted-movie digital releases in [from, to). (GET /calendar/upcoming)

func (Unimplemented) ListUsers

func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request, params ListUsersParams)

List users (admin) (GET /users)

func (Unimplemented) LookupSeries

func (_ Unimplemented) LookupSeries(w http.ResponseWriter, r *http.Request, params LookupSeriesParams)

Search TVDB for series to add (GET /series/lookup)

func (Unimplemented) PatchEpisode

func (_ Unimplemented) PatchEpisode(w http.ResponseWriter, r *http.Request, id ResourceID, episodeId EpisodeID)

Toggle episode monitoring (PATCH /series/{id}/episodes/{episodeId})

func (Unimplemented) PatchMovie

func (_ Unimplemented) PatchMovie(w http.ResponseWriter, r *http.Request, id ResourceID)

Patch a movie (PATCH /movies/{id})

func (Unimplemented) PatchSeason

func (_ Unimplemented) PatchSeason(w http.ResponseWriter, r *http.Request, id ResourceID, number SeasonNumber)

Toggle season monitoring (PATCH /series/{id}/seasons/{number})

func (Unimplemented) PatchSeries

func (_ Unimplemented) PatchSeries(w http.ResponseWriter, r *http.Request, id ResourceID)

Patch a series (PATCH /series/{id})

func (Unimplemented) PauseQueueItem

func (_ Unimplemented) PauseQueueItem(w http.ResponseWriter, r *http.Request, id ResourceID)

Pause an in-flight download. (POST /activity/queue/{id}/pause)

func (Unimplemented) PauseSchedule

func (_ Unimplemented) PauseSchedule(w http.ResponseWriter, r *http.Request, name ScheduleName)

Pause a scheduled job. (POST /schedules/{name}/pause)

func (Unimplemented) RefreshMovieMetadata

func (_ Unimplemented) RefreshMovieMetadata(w http.ResponseWriter, r *http.Request, id ResourceID)

Re-fetch TMDB metadata for one movie (POST /movies/{id}/refresh-metadata)

func (Unimplemented) RefreshSeriesMetadata

func (_ Unimplemented) RefreshSeriesMetadata(w http.ResponseWriter, r *http.Request, id ResourceID)

Re-fetch TVDB metadata for one series (POST /series/{id}/refresh-metadata)

func (Unimplemented) RenameMovieFiles

func (_ Unimplemented) RenameMovieFiles(w http.ResponseWriter, r *http.Request, id ResourceID, params RenameMovieFilesParams)

Rename movie files to match the library naming pattern (POST /movies/{id}/rename)

func (Unimplemented) RenameSeriesFiles

func (_ Unimplemented) RenameSeriesFiles(w http.ResponseWriter, r *http.Request, id ResourceID, params RenameSeriesFilesParams)

Rename series episode files to match the library naming pattern (POST /series/{id}/rename)

func (Unimplemented) ReopenRequest

func (_ Unimplemented) ReopenRequest(w http.ResponseWriter, r *http.Request, id ResourceID)

Reopen a denied request (admin) (POST /requests/{id}/reopen)

func (Unimplemented) ReplacePending

func (_ Unimplemented) ReplacePending(w http.ResponseWriter, r *http.Request, id ResourceID)

Delete the existing file, then import the proposal. (POST /activity/pending/{id}/replace)

func (Unimplemented) ResetUserPassword

func (_ Unimplemented) ResetUserPassword(w http.ResponseWriter, r *http.Request, uid UserID)

Reset user password (admin) (POST /users/{uid}/password-reset)

func (Unimplemented) ResumeQueueItem

func (_ Unimplemented) ResumeQueueItem(w http.ResponseWriter, r *http.Request, id ResourceID)

Resume a paused download. (POST /activity/queue/{id}/resume)

func (Unimplemented) ResumeSchedule

func (_ Unimplemented) ResumeSchedule(w http.ResponseWriter, r *http.Request, name ScheduleName)

Resume a paused job. (POST /schedules/{name}/resume)

func (Unimplemented) RevokeInvite

func (_ Unimplemented) RevokeInvite(w http.ResponseWriter, r *http.Request, id ResourceID)

Revoke an invite (admin) (DELETE /auth/invites/{id})

func (Unimplemented) RevokeUserApiKey

func (_ Unimplemented) RevokeUserApiKey(w http.ResponseWriter, r *http.Request, uid UserID, kid ApiKeyID)

Revoke user's API key (admin) (DELETE /users/{uid}/api-keys/{kid})

func (Unimplemented) RevokeUserSession

func (_ Unimplemented) RevokeUserSession(w http.ResponseWriter, r *http.Request, uid UserID, sid SessionID)

Revoke user's session (admin) (DELETE /users/{uid}/sessions/{sid})

func (Unimplemented) RotateJWTSecret

func (_ Unimplemented) RotateJWTSecret(w http.ResponseWriter, r *http.Request)

Rotate the JWT signing secret (admin) (POST /auth/jwt/rotate)

func (Unimplemented) RunSchedule

func (_ Unimplemented) RunSchedule(w http.ResponseWriter, r *http.Request, name ScheduleName)

Trigger a one-off run of a job. (POST /schedules/{name}/run)

func (Unimplemented) SearchMovie

func (_ Unimplemented) SearchMovie(w http.ResponseWriter, r *http.Request, id ResourceID)

Search indexers for a movie (POST /movies/{id}/search)

func (Unimplemented) SearchMovieNow

func (_ Unimplemented) SearchMovieNow(w http.ResponseWriter, r *http.Request, id ResourceID)

Dispatch an indexer search and grab for a single movie (POST /movies/{id}/search-now)

func (Unimplemented) SearchSeries

func (_ Unimplemented) SearchSeries(w http.ResponseWriter, r *http.Request, id ResourceID)

Auto-search all wanted episodes for this series (POST /series/{id}/search)

func (Unimplemented) SearchTMDBMovie

func (_ Unimplemented) SearchTMDBMovie(w http.ResponseWriter, r *http.Request, params SearchTMDBMovieParams)

Search TMDB for movies (GET /search/movie)

func (Unimplemented) StartImport

func (_ Unimplemented) StartImport(w http.ResponseWriter, r *http.Request)

(POST /library/imports)

func (Unimplemented) TestDownloadClient

func (_ Unimplemented) TestDownloadClient(w http.ResponseWriter, r *http.Request, name ResourceName)

Test download client connection (POST /download-clients/{name}/test)

func (Unimplemented) TestDraftDownloadClient

func (_ Unimplemented) TestDraftDownloadClient(w http.ResponseWriter, r *http.Request)

Test a draft download client connection (POST /download-clients/test)

func (Unimplemented) TestDraftIndexer

func (_ Unimplemented) TestDraftIndexer(w http.ResponseWriter, r *http.Request)

Test a draft indexer connection (POST /indexers/test)

func (Unimplemented) TestDraftMediaServer

func (_ Unimplemented) TestDraftMediaServer(w http.ResponseWriter, r *http.Request)

Test a draft media server connection (POST /media-servers/test)

func (Unimplemented) TestIndexer

func (_ Unimplemented) TestIndexer(w http.ResponseWriter, r *http.Request, name ResourceName)

Test indexer connection (POST /indexers/{name}/test)

func (Unimplemented) TestMediaServer

func (_ Unimplemented) TestMediaServer(w http.ResponseWriter, r *http.Request, name ResourceName)

Run a connection test against a saved media server (POST /media-servers/{name}/test)

func (Unimplemented) UnlockUser

func (_ Unimplemented) UnlockUser(w http.ResponseWriter, r *http.Request, uid UserID)

Clear lockout state on a user (admin) (POST /users/{uid}/unlock)

func (Unimplemented) UpdateConfigAuth

func (_ Unimplemented) UpdateConfigAuth(w http.ResponseWriter, r *http.Request)

Patch auth configuration (admin) (PATCH /config/auth)

func (Unimplemented) UpdateDownloadClient

func (_ Unimplemented) UpdateDownloadClient(w http.ResponseWriter, r *http.Request, name ResourceName)

Update a download client (PUT /download-clients/{name})

func (Unimplemented) UpdateImportFileDecision

func (_ Unimplemented) UpdateImportFileDecision(w http.ResponseWriter, r *http.Request, id ResourceID, fileId ImportScanFileID)

(PATCH /library/imports/{id}/files/{fileId})

func (Unimplemented) UpdateImportShowDecision

func (_ Unimplemented) UpdateImportShowDecision(w http.ResponseWriter, r *http.Request, id ResourceID, showId ImportScanShowID)

(PATCH /library/imports/{id}/shows/{showId})

func (Unimplemented) UpdateIndexer

func (_ Unimplemented) UpdateIndexer(w http.ResponseWriter, r *http.Request, name ResourceName)

Update an indexer (PUT /indexers/{name})

func (Unimplemented) UpdateMe

func (_ Unimplemented) UpdateMe(w http.ResponseWriter, r *http.Request)

Update current user profile (PATCH /auth/me)

func (Unimplemented) UpdateMediaServer

func (_ Unimplemented) UpdateMediaServer(w http.ResponseWriter, r *http.Request, name ResourceName)

Update a media server (PATCH /media-servers/{name})

func (Unimplemented) UpdateOIDCProvider

func (_ Unimplemented) UpdateOIDCProvider(w http.ResponseWriter, r *http.Request, name OIDCProviderName)

Update an OIDC provider (admin) (PATCH /config/oidc/{name})

func (Unimplemented) UpdateQualityProfile

func (_ Unimplemented) UpdateQualityProfile(w http.ResponseWriter, r *http.Request, name ResourceName)

Update a quality profile (PUT /quality-profiles/{name})

func (Unimplemented) UpdateSchedule

func (_ Unimplemented) UpdateSchedule(w http.ResponseWriter, r *http.Request, name ScheduleName)

Edit the interval of a scheduled job. (PATCH /schedules/{name})

func (Unimplemented) UpdateUser

func (_ Unimplemented) UpdateUser(w http.ResponseWriter, r *http.Request, uid UserID)

Patch user (admin) (PATCH /users/{uid})

type UnlockUser204Response

type UnlockUser204Response = UserUnlockedResponse

func (UnlockUser204Response) VisitUnlockUserResponse

func (response UnlockUser204Response) VisitUnlockUserResponse(w http.ResponseWriter) error

type UnlockUser403JSONResponse

type UnlockUser403JSONResponse struct{ ForbiddenJSONResponse }

func (UnlockUser403JSONResponse) VisitUnlockUserResponse

func (response UnlockUser403JSONResponse) VisitUnlockUserResponse(w http.ResponseWriter) error

type UnlockUser404JSONResponse

type UnlockUser404JSONResponse struct{ NotFoundJSONResponse }

func (UnlockUser404JSONResponse) VisitUnlockUserResponse

func (response UnlockUser404JSONResponse) VisitUnlockUserResponse(w http.ResponseWriter) error

type UnlockUserRequestObject

type UnlockUserRequestObject struct {
	Uid UserID `json:"uid"`
}

type UnlockUserResponseObject

type UnlockUserResponseObject interface {
	VisitUnlockUserResponse(w http.ResponseWriter) error
}

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type UnprocessableEntity

type UnprocessableEntity = Error

UnprocessableEntity defines model for UnprocessableEntity.

type UnprocessableEntityJSONResponse

type UnprocessableEntityJSONResponse Error

type UpcomingEpisode

type UpcomingEpisode struct {
	AirDate     time.Time `json:"air_date"`
	Episode     uint16    `json:"episode"`
	Monitored   *bool     `json:"monitored,omitempty"`
	Season      uint16    `json:"season"`
	SeriesId    uint32    `json:"series_id"`
	SeriesTitle string    `json:"series_title"`
	Title       *string   `json:"title,omitempty"`
}

UpcomingEpisode defines model for UpcomingEpisode.

type UpcomingList

type UpcomingList struct {
	Episodes []UpcomingEpisode `json:"episodes"`
	Movies   []UpcomingMovie   `json:"movies"`
}

UpcomingList defines model for UpcomingList.

type UpcomingListJSONResponse

type UpcomingListJSONResponse UpcomingList

type UpcomingMovie

type UpcomingMovie struct {
	DigitalReleaseDate time.Time `json:"digital_release_date"`
	Id                 uint32    `json:"id"`
	Title              string    `json:"title"`
	TmdbId             uint32    `json:"tmdb_id"`
	Year               uint16    `json:"year"`
}

UpcomingMovie defines model for UpcomingMovie.

type UpdateAuthConfig

type UpdateAuthConfig = AuthConfigPatch

UpdateAuthConfig Only provided fields are applied.

type UpdateConfigAuth200JSONResponse

type UpdateConfigAuth200JSONResponse struct{ AuthConfigJSONResponse }

func (UpdateConfigAuth200JSONResponse) VisitUpdateConfigAuthResponse

func (response UpdateConfigAuth200JSONResponse) VisitUpdateConfigAuthResponse(w http.ResponseWriter) error

type UpdateConfigAuth403JSONResponse

type UpdateConfigAuth403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateConfigAuth403JSONResponse) VisitUpdateConfigAuthResponse

func (response UpdateConfigAuth403JSONResponse) VisitUpdateConfigAuthResponse(w http.ResponseWriter) error

type UpdateConfigAuth422JSONResponse

type UpdateConfigAuth422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (UpdateConfigAuth422JSONResponse) VisitUpdateConfigAuthResponse

func (response UpdateConfigAuth422JSONResponse) VisitUpdateConfigAuthResponse(w http.ResponseWriter) error

type UpdateConfigAuthJSONRequestBody

type UpdateConfigAuthJSONRequestBody = AuthConfigPatch

UpdateConfigAuthJSONRequestBody defines body for UpdateConfigAuth for application/json ContentType.

type UpdateConfigAuthRequestObject

type UpdateConfigAuthRequestObject struct {
	Body *UpdateConfigAuthJSONRequestBody
}

type UpdateConfigAuthResponseObject

type UpdateConfigAuthResponseObject interface {
	VisitUpdateConfigAuthResponse(w http.ResponseWriter) error
}

type UpdateDownloadClient200JSONResponse

type UpdateDownloadClient200JSONResponse DownloadClient

func (UpdateDownloadClient200JSONResponse) VisitUpdateDownloadClientResponse

func (response UpdateDownloadClient200JSONResponse) VisitUpdateDownloadClientResponse(w http.ResponseWriter) error

type UpdateDownloadClient403JSONResponse

type UpdateDownloadClient403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateDownloadClient403JSONResponse) VisitUpdateDownloadClientResponse

func (response UpdateDownloadClient403JSONResponse) VisitUpdateDownloadClientResponse(w http.ResponseWriter) error

type UpdateDownloadClient404JSONResponse

type UpdateDownloadClient404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateDownloadClient404JSONResponse) VisitUpdateDownloadClientResponse

func (response UpdateDownloadClient404JSONResponse) VisitUpdateDownloadClientResponse(w http.ResponseWriter) error

type UpdateDownloadClient422JSONResponse

type UpdateDownloadClient422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (UpdateDownloadClient422JSONResponse) VisitUpdateDownloadClientResponse

func (response UpdateDownloadClient422JSONResponse) VisitUpdateDownloadClientResponse(w http.ResponseWriter) error

type UpdateDownloadClient500JSONResponse

type UpdateDownloadClient500JSONResponse struct{ InternalErrorJSONResponse }

func (UpdateDownloadClient500JSONResponse) VisitUpdateDownloadClientResponse

func (response UpdateDownloadClient500JSONResponse) VisitUpdateDownloadClientResponse(w http.ResponseWriter) error

type UpdateDownloadClientJSONRequestBody

type UpdateDownloadClientJSONRequestBody = DownloadClientCreate

UpdateDownloadClientJSONRequestBody defines body for UpdateDownloadClient for application/json ContentType.

type UpdateDownloadClientRequestObject

type UpdateDownloadClientRequestObject struct {
	Name ResourceName `json:"name"`
	Body *UpdateDownloadClientJSONRequestBody
}

type UpdateDownloadClientResponseObject

type UpdateDownloadClientResponseObject interface {
	VisitUpdateDownloadClientResponse(w http.ResponseWriter) error
}

type UpdateImportFileDecision

type UpdateImportFileDecision = ImportScanFileDecisionRequest

UpdateImportFileDecision defines model for UpdateImportFileDecision.

type UpdateImportFileDecision200JSONResponse

type UpdateImportFileDecision200JSONResponse struct{ ImportScanFileJSONResponse }

func (UpdateImportFileDecision200JSONResponse) VisitUpdateImportFileDecisionResponse

func (response UpdateImportFileDecision200JSONResponse) VisitUpdateImportFileDecisionResponse(w http.ResponseWriter) error

type UpdateImportFileDecision403JSONResponse

type UpdateImportFileDecision403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateImportFileDecision403JSONResponse) VisitUpdateImportFileDecisionResponse

func (response UpdateImportFileDecision403JSONResponse) VisitUpdateImportFileDecisionResponse(w http.ResponseWriter) error

type UpdateImportFileDecision404JSONResponse

type UpdateImportFileDecision404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateImportFileDecision404JSONResponse) VisitUpdateImportFileDecisionResponse

func (response UpdateImportFileDecision404JSONResponse) VisitUpdateImportFileDecisionResponse(w http.ResponseWriter) error

type UpdateImportFileDecisionJSONRequestBody

type UpdateImportFileDecisionJSONRequestBody = ImportScanFileDecisionRequest

UpdateImportFileDecisionJSONRequestBody defines body for UpdateImportFileDecision for application/json ContentType.

type UpdateImportFileDecisionRequestObject

type UpdateImportFileDecisionRequestObject struct {
	Id     ResourceID       `json:"id"`
	FileId ImportScanFileID `json:"fileId"`
	Body   *UpdateImportFileDecisionJSONRequestBody
}

type UpdateImportFileDecisionResponseObject

type UpdateImportFileDecisionResponseObject interface {
	VisitUpdateImportFileDecisionResponse(w http.ResponseWriter) error
}

type UpdateImportShowDecision

type UpdateImportShowDecision = ImportScanShowDecisionRequest

UpdateImportShowDecision defines model for UpdateImportShowDecision.

type UpdateImportShowDecision200JSONResponse

type UpdateImportShowDecision200JSONResponse struct{ ImportScanShowJSONResponse }

func (UpdateImportShowDecision200JSONResponse) VisitUpdateImportShowDecisionResponse

func (response UpdateImportShowDecision200JSONResponse) VisitUpdateImportShowDecisionResponse(w http.ResponseWriter) error

type UpdateImportShowDecision403JSONResponse

type UpdateImportShowDecision403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateImportShowDecision403JSONResponse) VisitUpdateImportShowDecisionResponse

func (response UpdateImportShowDecision403JSONResponse) VisitUpdateImportShowDecisionResponse(w http.ResponseWriter) error

type UpdateImportShowDecision404JSONResponse

type UpdateImportShowDecision404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateImportShowDecision404JSONResponse) VisitUpdateImportShowDecisionResponse

func (response UpdateImportShowDecision404JSONResponse) VisitUpdateImportShowDecisionResponse(w http.ResponseWriter) error

type UpdateImportShowDecisionJSONRequestBody

type UpdateImportShowDecisionJSONRequestBody = ImportScanShowDecisionRequest

UpdateImportShowDecisionJSONRequestBody defines body for UpdateImportShowDecision for application/json ContentType.

type UpdateImportShowDecisionRequestObject

type UpdateImportShowDecisionRequestObject struct {
	Id     ResourceID       `json:"id"`
	ShowId ImportScanShowID `json:"showId"`
	Body   *UpdateImportShowDecisionJSONRequestBody
}

type UpdateImportShowDecisionResponseObject

type UpdateImportShowDecisionResponseObject interface {
	VisitUpdateImportShowDecisionResponse(w http.ResponseWriter) error
}

type UpdateIndexer200JSONResponse

type UpdateIndexer200JSONResponse Indexer

func (UpdateIndexer200JSONResponse) VisitUpdateIndexerResponse

func (response UpdateIndexer200JSONResponse) VisitUpdateIndexerResponse(w http.ResponseWriter) error

type UpdateIndexer403JSONResponse

type UpdateIndexer403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateIndexer403JSONResponse) VisitUpdateIndexerResponse

func (response UpdateIndexer403JSONResponse) VisitUpdateIndexerResponse(w http.ResponseWriter) error

type UpdateIndexer404JSONResponse

type UpdateIndexer404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateIndexer404JSONResponse) VisitUpdateIndexerResponse

func (response UpdateIndexer404JSONResponse) VisitUpdateIndexerResponse(w http.ResponseWriter) error

type UpdateIndexer422JSONResponse

type UpdateIndexer422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (UpdateIndexer422JSONResponse) VisitUpdateIndexerResponse

func (response UpdateIndexer422JSONResponse) VisitUpdateIndexerResponse(w http.ResponseWriter) error

type UpdateIndexer500JSONResponse

type UpdateIndexer500JSONResponse struct{ InternalErrorJSONResponse }

func (UpdateIndexer500JSONResponse) VisitUpdateIndexerResponse

func (response UpdateIndexer500JSONResponse) VisitUpdateIndexerResponse(w http.ResponseWriter) error

type UpdateIndexerJSONRequestBody

type UpdateIndexerJSONRequestBody = IndexerCreate

UpdateIndexerJSONRequestBody defines body for UpdateIndexer for application/json ContentType.

type UpdateIndexerRequestObject

type UpdateIndexerRequestObject struct {
	Name ResourceName `json:"name"`
	Body *UpdateIndexerJSONRequestBody
}

type UpdateIndexerResponseObject

type UpdateIndexerResponseObject interface {
	VisitUpdateIndexerResponse(w http.ResponseWriter) error
}

type UpdateMe

type UpdateMe = UpdateMeRequest

UpdateMe defines model for UpdateMe.

type UpdateMe200JSONResponse

type UpdateMe200JSONResponse User

func (UpdateMe200JSONResponse) VisitUpdateMeResponse

func (response UpdateMe200JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error

type UpdateMe401JSONResponse

type UpdateMe401JSONResponse struct{ UnauthorizedJSONResponse }

func (UpdateMe401JSONResponse) VisitUpdateMeResponse

func (response UpdateMe401JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error

type UpdateMeJSONRequestBody

type UpdateMeJSONRequestBody = UpdateMeRequest

UpdateMeJSONRequestBody defines body for UpdateMe for application/json ContentType.

type UpdateMeRequest

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

UpdateMeRequest defines model for UpdateMeRequest.

type UpdateMeRequestObject

type UpdateMeRequestObject struct {
	Body *UpdateMeJSONRequestBody
}

type UpdateMeResponseObject

type UpdateMeResponseObject interface {
	VisitUpdateMeResponse(w http.ResponseWriter) error
}

type UpdateMediaServer

type UpdateMediaServer = MediaServerUpdate

UpdateMediaServer defines model for UpdateMediaServer.

type UpdateMediaServer200JSONResponse

type UpdateMediaServer200JSONResponse struct{ MediaServerOKJSONResponse }

func (UpdateMediaServer200JSONResponse) VisitUpdateMediaServerResponse

func (response UpdateMediaServer200JSONResponse) VisitUpdateMediaServerResponse(w http.ResponseWriter) error

type UpdateMediaServer403JSONResponse

type UpdateMediaServer403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateMediaServer403JSONResponse) VisitUpdateMediaServerResponse

func (response UpdateMediaServer403JSONResponse) VisitUpdateMediaServerResponse(w http.ResponseWriter) error

type UpdateMediaServer404JSONResponse

type UpdateMediaServer404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateMediaServer404JSONResponse) VisitUpdateMediaServerResponse

func (response UpdateMediaServer404JSONResponse) VisitUpdateMediaServerResponse(w http.ResponseWriter) error

type UpdateMediaServer422JSONResponse

type UpdateMediaServer422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (UpdateMediaServer422JSONResponse) VisitUpdateMediaServerResponse

func (response UpdateMediaServer422JSONResponse) VisitUpdateMediaServerResponse(w http.ResponseWriter) error

type UpdateMediaServer500JSONResponse

type UpdateMediaServer500JSONResponse struct{ InternalErrorJSONResponse }

func (UpdateMediaServer500JSONResponse) VisitUpdateMediaServerResponse

func (response UpdateMediaServer500JSONResponse) VisitUpdateMediaServerResponse(w http.ResponseWriter) error

type UpdateMediaServerJSONRequestBody

type UpdateMediaServerJSONRequestBody = MediaServerUpdate

UpdateMediaServerJSONRequestBody defines body for UpdateMediaServer for application/json ContentType.

type UpdateMediaServerRequestObject

type UpdateMediaServerRequestObject struct {
	Name ResourceName `json:"name"`
	Body *UpdateMediaServerJSONRequestBody
}

type UpdateMediaServerResponseObject

type UpdateMediaServerResponseObject interface {
	VisitUpdateMediaServerResponse(w http.ResponseWriter) error
}

type UpdateMovie

type UpdateMovie = UpdateMovieRequest

UpdateMovie defines model for UpdateMovie.

type UpdateMovieRequest

type UpdateMovieRequest struct {
	Monitored *bool `json:"monitored,omitempty"`

	// QualityProfile Name of the quality profile (empty resolves to the default).
	QualityProfile *string                   `json:"quality_profile,omitempty"`
	Status         *UpdateMovieRequestStatus `json:"status,omitempty"`
}

UpdateMovieRequest defines model for UpdateMovieRequest.

type UpdateMovieRequestStatus

type UpdateMovieRequestStatus string

UpdateMovieRequestStatus defines model for UpdateMovieRequest.Status.

const (
	UpdateMovieRequestStatusAvailable   UpdateMovieRequestStatus = "available"
	UpdateMovieRequestStatusDownloading UpdateMovieRequestStatus = "downloading"
	UpdateMovieRequestStatusWanted      UpdateMovieRequestStatus = "wanted"
)

Defines values for UpdateMovieRequestStatus.

func (UpdateMovieRequestStatus) Valid

func (e UpdateMovieRequestStatus) Valid() bool

Valid indicates whether the value is a known member of the UpdateMovieRequestStatus enum.

type UpdateOIDCProvider

type UpdateOIDCProvider = OIDCProviderPatch

UpdateOIDCProvider Only provided fields are applied. A blank/omitted client_secret preserves the existing secret.

type UpdateOIDCProvider200JSONResponse

type UpdateOIDCProvider200JSONResponse struct{ OIDCProviderJSONResponse }

func (UpdateOIDCProvider200JSONResponse) VisitUpdateOIDCProviderResponse

func (response UpdateOIDCProvider200JSONResponse) VisitUpdateOIDCProviderResponse(w http.ResponseWriter) error

type UpdateOIDCProvider403JSONResponse

type UpdateOIDCProvider403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateOIDCProvider403JSONResponse) VisitUpdateOIDCProviderResponse

func (response UpdateOIDCProvider403JSONResponse) VisitUpdateOIDCProviderResponse(w http.ResponseWriter) error

type UpdateOIDCProvider404JSONResponse

type UpdateOIDCProvider404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateOIDCProvider404JSONResponse) VisitUpdateOIDCProviderResponse

func (response UpdateOIDCProvider404JSONResponse) VisitUpdateOIDCProviderResponse(w http.ResponseWriter) error

type UpdateOIDCProvider422JSONResponse

type UpdateOIDCProvider422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (UpdateOIDCProvider422JSONResponse) VisitUpdateOIDCProviderResponse

func (response UpdateOIDCProvider422JSONResponse) VisitUpdateOIDCProviderResponse(w http.ResponseWriter) error

type UpdateOIDCProviderJSONRequestBody

type UpdateOIDCProviderJSONRequestBody = OIDCProviderPatch

UpdateOIDCProviderJSONRequestBody defines body for UpdateOIDCProvider for application/json ContentType.

type UpdateOIDCProviderRequestObject

type UpdateOIDCProviderRequestObject struct {
	Name OIDCProviderName `json:"name"`
	Body *UpdateOIDCProviderJSONRequestBody
}

type UpdateOIDCProviderResponseObject

type UpdateOIDCProviderResponseObject interface {
	VisitUpdateOIDCProviderResponse(w http.ResponseWriter) error
}

type UpdateQualityProfile200JSONResponse

type UpdateQualityProfile200JSONResponse QualityProfile

func (UpdateQualityProfile200JSONResponse) VisitUpdateQualityProfileResponse

func (response UpdateQualityProfile200JSONResponse) VisitUpdateQualityProfileResponse(w http.ResponseWriter) error

type UpdateQualityProfile403JSONResponse

type UpdateQualityProfile403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateQualityProfile403JSONResponse) VisitUpdateQualityProfileResponse

func (response UpdateQualityProfile403JSONResponse) VisitUpdateQualityProfileResponse(w http.ResponseWriter) error

type UpdateQualityProfile404JSONResponse

type UpdateQualityProfile404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateQualityProfile404JSONResponse) VisitUpdateQualityProfileResponse

func (response UpdateQualityProfile404JSONResponse) VisitUpdateQualityProfileResponse(w http.ResponseWriter) error

type UpdateQualityProfile422JSONResponse

type UpdateQualityProfile422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (UpdateQualityProfile422JSONResponse) VisitUpdateQualityProfileResponse

func (response UpdateQualityProfile422JSONResponse) VisitUpdateQualityProfileResponse(w http.ResponseWriter) error

type UpdateQualityProfile500JSONResponse

type UpdateQualityProfile500JSONResponse struct{ InternalErrorJSONResponse }

func (UpdateQualityProfile500JSONResponse) VisitUpdateQualityProfileResponse

func (response UpdateQualityProfile500JSONResponse) VisitUpdateQualityProfileResponse(w http.ResponseWriter) error

type UpdateQualityProfileJSONRequestBody

type UpdateQualityProfileJSONRequestBody = QualityProfileCreate

UpdateQualityProfileJSONRequestBody defines body for UpdateQualityProfile for application/json ContentType.

type UpdateQualityProfileRequestObject

type UpdateQualityProfileRequestObject struct {
	Name ResourceName `json:"name"`
	Body *UpdateQualityProfileJSONRequestBody
}

type UpdateQualityProfileResponseObject

type UpdateQualityProfileResponseObject interface {
	VisitUpdateQualityProfileResponse(w http.ResponseWriter) error
}

type UpdateSchedule200JSONResponse

type UpdateSchedule200JSONResponse struct{ ScheduleJSONResponse }

func (UpdateSchedule200JSONResponse) VisitUpdateScheduleResponse

func (response UpdateSchedule200JSONResponse) VisitUpdateScheduleResponse(w http.ResponseWriter) error

type UpdateSchedule401JSONResponse

type UpdateSchedule401JSONResponse struct{ UnauthorizedJSONResponse }

func (UpdateSchedule401JSONResponse) VisitUpdateScheduleResponse

func (response UpdateSchedule401JSONResponse) VisitUpdateScheduleResponse(w http.ResponseWriter) error

type UpdateSchedule403JSONResponse

type UpdateSchedule403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateSchedule403JSONResponse) VisitUpdateScheduleResponse

func (response UpdateSchedule403JSONResponse) VisitUpdateScheduleResponse(w http.ResponseWriter) error

type UpdateSchedule404JSONResponse

type UpdateSchedule404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateSchedule404JSONResponse) VisitUpdateScheduleResponse

func (response UpdateSchedule404JSONResponse) VisitUpdateScheduleResponse(w http.ResponseWriter) error

type UpdateSchedule422JSONResponse

type UpdateSchedule422JSONResponse struct {
	UnprocessableEntityJSONResponse
}

func (UpdateSchedule422JSONResponse) VisitUpdateScheduleResponse

func (response UpdateSchedule422JSONResponse) VisitUpdateScheduleResponse(w http.ResponseWriter) error

type UpdateScheduleJSONRequestBody

type UpdateScheduleJSONRequestBody = ScheduleUpdate

UpdateScheduleJSONRequestBody defines body for UpdateSchedule for application/json ContentType.

type UpdateScheduleRequestObject

type UpdateScheduleRequestObject struct {
	Name ScheduleName `json:"name"`
	Body *UpdateScheduleJSONRequestBody
}

type UpdateScheduleResponseObject

type UpdateScheduleResponseObject interface {
	VisitUpdateScheduleResponse(w http.ResponseWriter) error
}

type UpdateUser200JSONResponse

type UpdateUser200JSONResponse struct{ UserUpdatedJSONResponse }

func (UpdateUser200JSONResponse) VisitUpdateUserResponse

func (response UpdateUser200JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser403JSONResponse

type UpdateUser403JSONResponse struct{ ForbiddenJSONResponse }

func (UpdateUser403JSONResponse) VisitUpdateUserResponse

func (response UpdateUser403JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser404JSONResponse

type UpdateUser404JSONResponse struct{ NotFoundJSONResponse }

func (UpdateUser404JSONResponse) VisitUpdateUserResponse

func (response UpdateUser404JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser409JSONResponse

type UpdateUser409JSONResponse struct{ ConflictJSONResponse }

func (UpdateUser409JSONResponse) VisitUpdateUserResponse

func (response UpdateUser409JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUserJSONRequestBody

type UpdateUserJSONRequestBody = UpdateUserRequest

UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.

type UpdateUserRequest

type UpdateUserRequest struct {
	AuthMethod  *UpdateUserRequestAuthMethod `json:"auth_method,omitempty"`
	DisplayName *string                      `json:"display_name,omitempty"`

	// Email New email address. Must be unique across users.
	Email *openapi_types.Email   `json:"email,omitempty"`
	Role  *UpdateUserRequestRole `json:"role,omitempty"`
}

UpdateUserRequest Only provided fields are applied.

type UpdateUserRequestAuthMethod

type UpdateUserRequestAuthMethod string

UpdateUserRequestAuthMethod defines model for UpdateUserRequest.AuthMethod.

const (
	UpdateUserRequestAuthMethodBoth  UpdateUserRequestAuthMethod = "both"
	UpdateUserRequestAuthMethodLocal UpdateUserRequestAuthMethod = "local"
	UpdateUserRequestAuthMethodOidc  UpdateUserRequestAuthMethod = "oidc"
)

Defines values for UpdateUserRequestAuthMethod.

func (UpdateUserRequestAuthMethod) Valid

Valid indicates whether the value is a known member of the UpdateUserRequestAuthMethod enum.

type UpdateUserRequestObject

type UpdateUserRequestObject struct {
	Uid  UserID `json:"uid"`
	Body *UpdateUserJSONRequestBody
}

type UpdateUserRequestRole

type UpdateUserRequestRole string

UpdateUserRequestRole defines model for UpdateUserRequest.Role.

const (
	UpdateUserRequestRoleAdmin       UpdateUserRequestRole = "admin"
	UpdateUserRequestRoleMember      UpdateUserRequestRole = "member"
	UpdateUserRequestRoleRequestOnly UpdateUserRequestRole = "request_only"
)

Defines values for UpdateUserRequestRole.

func (UpdateUserRequestRole) Valid

func (e UpdateUserRequestRole) Valid() bool

Valid indicates whether the value is a known member of the UpdateUserRequestRole enum.

type UpdateUserResponseObject

type UpdateUserResponseObject interface {
	VisitUpdateUserResponse(w http.ResponseWriter) error
}

type User

type User struct {
	AuthMethod       UserAuthMethod      `json:"auth_method"`
	CreatedAt        time.Time           `json:"created_at"`
	DisplayName      *string             `json:"display_name,omitempty"`
	Email            openapi_types.Email `json:"email"`
	FailedLoginCount *uint8              `json:"failed_login_count,omitempty"`
	Id               uint32              `json:"id"`
	LockedUntil      *time.Time          `json:"locked_until,omitempty"`
	Role             UserRole            `json:"role"`
}

User defines model for User.

type UserApiKeyRevokedResponse

type UserApiKeyRevokedResponse struct {
}

type UserAuthMethod

type UserAuthMethod string

UserAuthMethod defines model for User.AuthMethod.

const (
	UserAuthMethodBoth  UserAuthMethod = "both"
	UserAuthMethodLocal UserAuthMethod = "local"
	UserAuthMethodOidc  UserAuthMethod = "oidc"
)

Defines values for UserAuthMethod.

func (UserAuthMethod) Valid

func (e UserAuthMethod) Valid() bool

Valid indicates whether the value is a known member of the UserAuthMethod enum.

type UserCreated

type UserCreated = User

UserCreated defines model for UserCreated.

type UserCreatedJSONResponse

type UserCreatedJSONResponse User

type UserDeletedResponse

type UserDeletedResponse struct {
}

type UserDetail

type UserDetail struct {
	ApiKeys  []ApiKey  `json:"api_keys"`
	Sessions []Session `json:"sessions"`
	User     User      `json:"user"`
}

UserDetail defines model for UserDetail.

type UserDetailJSONResponse

type UserDetailJSONResponse UserDetail

type UserID

type UserID = uint32

UserID defines model for UserID.

type UserList

type UserList struct {
	Items []User `json:"items"`

	// Total Total number of users matching the filter.
	Total uint32 `json:"total"`
}

UserList defines model for UserList.

type UserRole

type UserRole string

UserRole defines model for User.Role.

const (
	UserRoleAdmin       UserRole = "admin"
	UserRoleMember      UserRole = "member"
	UserRoleRequestOnly UserRole = "request_only"
)

Defines values for UserRole.

func (UserRole) Valid

func (e UserRole) Valid() bool

Valid indicates whether the value is a known member of the UserRole enum.

type UserSessionRevokedResponse

type UserSessionRevokedResponse struct {
}

type UserUnlockedResponse

type UserUnlockedResponse struct {
}

type UserUpdated

type UserUpdated = User

UserUpdated defines model for UserUpdated.

type UserUpdatedJSONResponse

type UserUpdatedJSONResponse User

type UsersList

type UsersList = UserList

UsersList defines model for UsersList.

type UsersListJSONResponse

type UsersListJSONResponse UserList

type UsersOrder

type UsersOrder string

UsersOrder defines model for UsersOrder.

const (
	UsersOrderAsc  UsersOrder = "asc"
	UsersOrderDesc UsersOrder = "desc"
)

Defines values for UsersOrder.

func (UsersOrder) Valid

func (e UsersOrder) Valid() bool

Valid indicates whether the value is a known member of the UsersOrder enum.

type UsersSort

type UsersSort string

UsersSort defines model for UsersSort.

const (
	UsersSortAuth    UsersSort = "auth"
	UsersSortCreated UsersSort = "created"
	UsersSortName    UsersSort = "name"
	UsersSortRole    UsersSort = "role"
)

Defines values for UsersSort.

func (UsersSort) Valid

func (e UsersSort) Valid() bool

Valid indicates whether the value is a known member of the UsersSort enum.

Jump to

Keyboard shortcuts

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