api

package
v0.0.0-...-8125d62 Latest Latest
Warning

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

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

Documentation

Overview

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

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

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

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

Index

Constants

This section is empty.

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

Types

type AISettings

type AISettings struct {
	AutoApply           *bool    `json:"autoApply,omitempty"`
	ConfidenceThreshold *float32 `json:"confidenceThreshold,omitempty"`
	DefaultProvider     *string  `json:"defaultProvider,omitempty"`
	Enabled             *bool    `json:"enabled,omitempty"`
}

AISettings defines model for AISettings.

type ActivityEvent

type ActivityEvent struct {
	Id        *string            `json:"id,omitempty"`
	Message   *string            `json:"message,omitempty"`
	Timestamp *time.Time         `json:"timestamp,omitempty"`
	Type      *ActivityEventType `json:"type,omitempty"`
}

ActivityEvent defines model for ActivityEvent.

type ActivityEventType

type ActivityEventType string

ActivityEventType defines model for ActivityEvent.Type.

const (
	DUPLICATEFOUND ActivityEventType = "DUPLICATE_FOUND"
	ERROR          ActivityEventType = "ERROR"
	FILEDETECTED   ActivityEventType = "FILE_DETECTED"
	FILEORGANIZED  ActivityEventType = "FILE_ORGANIZED"
	SYNCCOMPLETED  ActivityEventType = "SYNC_COMPLETED"
)

Defines values for ActivityEventType.

type AddSettingsLibraryJSONBody

type AddSettingsLibraryJSONBody = map[string]interface{}

AddSettingsLibraryJSONBody defines parameters for AddSettingsLibrary.

type AddSettingsLibraryJSONRequestBody

type AddSettingsLibraryJSONRequestBody = AddSettingsLibraryJSONBody

AddSettingsLibraryJSONRequestBody defines body for AddSettingsLibrary for application/json ContentType.

type AddSettingsPathJSONBody

type AddSettingsPathJSONBody = map[string]interface{}

AddSettingsPathJSONBody defines parameters for AddSettingsPath.

type AddSettingsPathJSONRequestBody

type AddSettingsPathJSONRequestBody = AddSettingsPathJSONBody

AddSettingsPathJSONRequestBody defines body for AddSettingsPath for application/json ContentType.

type AuthStatus

type AuthStatus struct {
	Authenticated *bool `json:"authenticated,omitempty"`
	Enabled       *bool `json:"enabled,omitempty"`
}

AuthStatus defines model for AuthStatus.

type ChangePasswordJSONBody

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

ChangePasswordJSONBody defines parameters for ChangePassword.

type ChangePasswordJSONRequestBody

type ChangePasswordJSONRequestBody ChangePasswordJSONBody

ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.

type ChiServerOptions

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

type ClearQueueItemParams

type ClearQueueItemParams struct {
	Blocklist *bool `form:"blocklist,omitempty" json:"blocklist,omitempty"`
}

ClearQueueItemParams defines parameters for ClearQueueItem.

type ClearStuckItemsParams

type ClearStuckItemsParams struct {
	Blocklist *bool `form:"blocklist,omitempty" json:"blocklist,omitempty"`
}

ClearStuckItemsParams defines parameters for ClearStuckItems.

type ConsolidateItemJSONBody

type ConsolidateItemJSONBody struct {
	DryRun *bool `json:"dryRun,omitempty"`
}

ConsolidateItemJSONBody defines parameters for ConsolidateItem.

type ConsolidateItemJSONRequestBody

type ConsolidateItemJSONRequestBody ConsolidateItemJSONBody

ConsolidateItemJSONRequestBody defines body for ConsolidateItem for application/json ContentType.

type ConsolidationResult

type ConsolidationResult struct {
	BytesMoved *int64    `json:"bytesMoved,omitempty"`
	Errors     *[]string `json:"errors,omitempty"`
	FilesMoved *int      `json:"filesMoved,omitempty"`
	Success    *bool     `json:"success,omitempty"`
}

ConsolidationResult defines model for ConsolidationResult.

type DaemonStatus

type DaemonStatus struct {
	Pid *int `json:"pid,omitempty"`

	// State One of running, stopped, starting, stopping, degraded
	State                *string                `json:"state,omitempty"`
	UptimeSeconds        *int                   `json:"uptime_seconds,omitempty"`
	Version              *string                `json:"version,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

DaemonStatus defines model for DaemonStatus.

func (DaemonStatus) Get

func (a DaemonStatus) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for DaemonStatus. Returns the specified element and whether it was found

func (DaemonStatus) MarshalJSON

func (a DaemonStatus) MarshalJSON() ([]byte, error)

Override default JSON handling for DaemonStatus to handle AdditionalProperties

func (*DaemonStatus) Set

func (a *DaemonStatus) Set(fieldName string, value interface{})

Setter for additional properties for DaemonStatus

func (*DaemonStatus) UnmarshalJSON

func (a *DaemonStatus) UnmarshalJSON(b []byte) error

Override default JSON handling for DaemonStatus to handle AdditionalProperties

type DashboardData

type DashboardData struct {
	LibraryStats   *LibraryStats          `json:"libraryStats,omitempty"`
	LlmProvider    *LLMProviderSummary    `json:"llmProvider,omitempty"`
	MediaManagers  *[]MediaManagerSummary `json:"mediaManagers,omitempty"`
	RecentActivity *[]ActivityEvent       `json:"recentActivity,omitempty"`
}

DashboardData defines model for DashboardData.

type DeleteDuplicateParams

type DeleteDuplicateParams struct {
	FileId *int64 `form:"fileId,omitempty" json:"fileId,omitempty"`
}

DeleteDuplicateParams defines parameters for DeleteDuplicate.

type DuplicateAnalysis

type DuplicateAnalysis struct {
	Groups           *[]DuplicateGroup `json:"groups,omitempty"`
	ReclaimableBytes *int64            `json:"reclaimableBytes,omitempty"`
	TotalFiles       *int              `json:"totalFiles,omitempty"`
	TotalGroups      *int              `json:"totalGroups,omitempty"`
}

DuplicateAnalysis defines model for DuplicateAnalysis.

type DuplicateGroup

type DuplicateGroup struct {
	BestFileId       *int64                   `json:"bestFileId,omitempty"`
	Files            *[]MediaFile             `json:"files,omitempty"`
	Id               *string                  `json:"id,omitempty"`
	MediaType        *DuplicateGroupMediaType `json:"mediaType,omitempty"`
	ReclaimableBytes *int64                   `json:"reclaimableBytes,omitempty"`
	Title            *string                  `json:"title,omitempty"`
	Year             *int                     `json:"year,omitempty"`
}

DuplicateGroup defines model for DuplicateGroup.

type DuplicateGroupMediaType

type DuplicateGroupMediaType string

DuplicateGroupMediaType defines model for DuplicateGroup.MediaType.

const (
	Movie  DuplicateGroupMediaType = "movie"
	Series DuplicateGroupMediaType = "series"
)

Defines values for DuplicateGroupMediaType.

type GetActivityParams

type GetActivityParams struct {
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

GetActivityParams defines parameters for GetActivity.

type GetJellyfinUnidentifiableItemsParams

type GetJellyfinUnidentifiableItemsParams struct {
	LibraryId *string `form:"libraryId,omitempty" json:"libraryId,omitempty"`
}

GetJellyfinUnidentifiableItemsParams defines parameters for GetJellyfinUnidentifiableItems.

type GetJellyfinVerificationResultsParams

type GetJellyfinVerificationResultsParams struct {
	LibraryId *string `form:"libraryId,omitempty" json:"libraryId,omitempty"`
}

GetJellyfinVerificationResultsParams defines parameters for GetJellyfinVerificationResults.

type GetMediaManagerQueueParams

type GetMediaManagerQueueParams struct {
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

GetMediaManagerQueueParams defines parameters for GetMediaManagerQueue.

type GetSettingsSectionParams

type GetSettingsSectionParams struct {
	Reveal *GetSettingsSectionParamsReveal `form:"reveal,omitempty" json:"reveal,omitempty"`
}

GetSettingsSectionParams defines parameters for GetSettingsSection.

type GetSettingsSectionParamsReveal

type GetSettingsSectionParamsReveal int

GetSettingsSectionParamsReveal defines parameters for GetSettingsSection.

Defines values for GetSettingsSectionParamsReveal.

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 JellyfinMismatch

type JellyfinMismatch struct {
	Issue    *JellyfinMismatchIssue `json:"issue,omitempty"`
	ItemId   *string                `json:"itemId,omitempty"`
	ItemName *string                `json:"itemName,omitempty"`
	Path     *string                `json:"path,omitempty"`
}

JellyfinMismatch defines model for JellyfinMismatch.

type JellyfinMismatchIssue

type JellyfinMismatchIssue string

JellyfinMismatchIssue defines model for JellyfinMismatch.Issue.

const (
	Missing      JellyfinMismatchIssue = "missing"
	Orphaned     JellyfinMismatchIssue = "orphaned"
	Unidentified JellyfinMismatchIssue = "unidentified"
)

Defines values for JellyfinMismatchIssue.

type JellyfinPluginStatus

type JellyfinPluginStatus struct {
	Healthy   *bool   `json:"healthy,omitempty"`
	Installed *bool   `json:"installed,omitempty"`
	Libraries *int    `json:"libraries,omitempty"`
	Message   *string `json:"message,omitempty"`
	Version   *string `json:"version,omitempty"`
}

JellyfinPluginStatus defines model for JellyfinPluginStatus.

type JellyfinVerificationResult

type JellyfinVerificationResult struct {
	IdentifiedCount   *int                `json:"identifiedCount,omitempty"`
	LastRun           *time.Time          `json:"lastRun,omitempty"`
	LibraryPath       *string             `json:"libraryPath,omitempty"`
	Mismatches        *[]JellyfinMismatch `json:"mismatches,omitempty"`
	ScannedCount      *int                `json:"scannedCount,omitempty"`
	UnidentifiedCount *int                `json:"unidentifiedCount,omitempty"`
}

JellyfinVerificationResult defines model for JellyfinVerificationResult.

type JellyfinVerificationStatus

type JellyfinVerificationStatus struct {
	Connected         *bool      `json:"connected,omitempty"`
	Enabled           *bool      `json:"enabled,omitempty"`
	LastVerification  *time.Time `json:"lastVerification,omitempty"`
	LibrariesVerified *int       `json:"librariesVerified,omitempty"`
	PluginEnabled     *bool      `json:"pluginEnabled,omitempty"`
	TotalMismatches   *int       `json:"totalMismatches,omitempty"`
}

JellyfinVerificationStatus defines model for JellyfinVerificationStatus.

type JellyfinWebhookJSONBody

type JellyfinWebhookJSONBody map[string]interface{}

JellyfinWebhookJSONBody defines parameters for JellyfinWebhook.

type JellyfinWebhookJSONRequestBody

type JellyfinWebhookJSONRequestBody JellyfinWebhookJSONBody

JellyfinWebhookJSONRequestBody defines body for JellyfinWebhook for application/json ContentType.

type LLMCapabilities

type LLMCapabilities struct {
	LocalOnly           *bool `json:"localOnly,omitempty"`
	SupportsModelSwitch *bool `json:"supportsModelSwitch,omitempty"`
	SupportsStreaming   *bool `json:"supportsStreaming,omitempty"`
	SupportsVision      *bool `json:"supportsVision,omitempty"`
}

LLMCapabilities defines model for LLMCapabilities.

type LLMModel

type LLMModel struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Size *string `json:"size,omitempty"`
}

LLMModel defines model for LLMModel.

type LLMProviderInfo

type LLMProviderInfo struct {
	Capabilities *LLMCapabilities     `json:"capabilities,omitempty"`
	CurrentModel *string              `json:"currentModel,omitempty"`
	Enabled      *bool                `json:"enabled,omitempty"`
	Id           *string              `json:"id,omitempty"`
	Name         *string              `json:"name,omitempty"`
	Type         *LLMProviderInfoType `json:"type,omitempty"`
}

LLMProviderInfo defines model for LLMProviderInfo.

type LLMProviderInfoType

type LLMProviderInfoType string

LLMProviderInfoType defines model for LLMProviderInfo.Type.

const (
	LLMProviderInfoTypeAnthropic LLMProviderInfoType = "anthropic"
	LLMProviderInfoTypeCustom    LLMProviderInfoType = "custom"
	LLMProviderInfoTypeLmstudio  LLMProviderInfoType = "lmstudio"
	LLMProviderInfoTypeOllama    LLMProviderInfoType = "ollama"
	LLMProviderInfoTypeOpenai    LLMProviderInfoType = "openai"
)

Defines values for LLMProviderInfoType.

type LLMProviderStatus

type LLMProviderStatus struct {
	Error     *string     `json:"error,omitempty"`
	Model     *string     `json:"model,omitempty"`
	ModelList *[]LLMModel `json:"modelList,omitempty"`
	Online    *bool       `json:"online,omitempty"`
}

LLMProviderStatus defines model for LLMProviderStatus.

type LLMProviderSummary

type LLMProviderSummary struct {
	CurrentModel *string `json:"currentModel,omitempty"`
	Id           *string `json:"id,omitempty"`
	Name         *string `json:"name,omitempty"`
	Online       *bool   `json:"online,omitempty"`
}

LLMProviderSummary defines model for LLMProviderSummary.

type LibraryStats

type LibraryStats struct {
	DuplicateGroups  *int   `json:"duplicateGroups,omitempty"`
	EpisodeCount     *int   `json:"episodeCount,omitempty"`
	MovieCount       *int   `json:"movieCount,omitempty"`
	ReclaimableBytes *int64 `json:"reclaimableBytes,omitempty"`
	ScatteredSeries  *int   `json:"scatteredSeries,omitempty"`
	SeriesCount      *int   `json:"seriesCount,omitempty"`
	TotalFiles       *int   `json:"totalFiles,omitempty"`
	TotalSize        *int64 `json:"totalSize,omitempty"`
}

LibraryStats defines model for LibraryStats.

type LoginJSONBody

type LoginJSONBody struct {
	Password string `json:"password"`
}

LoginJSONBody defines parameters for Login.

type LoginJSONRequestBody

type LoginJSONRequestBody LoginJSONBody

LoginJSONRequestBody defines body for Login for application/json ContentType.

type ManagerCapabilities

type ManagerCapabilities struct {
	SupportsBulkActions *bool `json:"supportsBulkActions,omitempty"`
	SupportsHistory     *bool `json:"supportsHistory,omitempty"`
	SupportsPriority    *bool `json:"supportsPriority,omitempty"`
	SupportsQualityEdit *bool `json:"supportsQualityEdit,omitempty"`
	SupportsRetry       *bool `json:"supportsRetry,omitempty"`
}

ManagerCapabilities defines model for ManagerCapabilities.

type MediaFile

type MediaFile struct {
	Id           *int64  `json:"id,omitempty"`
	Path         *string `json:"path,omitempty"`
	QualityScore *int    `json:"qualityScore,omitempty"`
	Resolution   *string `json:"resolution,omitempty"`
	Size         *int64  `json:"size,omitempty"`
	SourceType   *string `json:"sourceType,omitempty"`
}

MediaFile defines model for MediaFile.

type MediaManagerInfo

type MediaManagerInfo struct {
	Capabilities *ManagerCapabilities  `json:"capabilities,omitempty"`
	Enabled      *bool                 `json:"enabled,omitempty"`
	Id           *string               `json:"id,omitempty"`
	Name         *string               `json:"name,omitempty"`
	Type         *MediaManagerInfoType `json:"type,omitempty"`
}

MediaManagerInfo defines model for MediaManagerInfo.

type MediaManagerInfoType

type MediaManagerInfoType string

MediaManagerInfoType defines model for MediaManagerInfo.Type.

const (
	MediaManagerInfoTypeCustom          MediaManagerInfoType = "custom"
	MediaManagerInfoTypeJellyfin        MediaManagerInfoType = "jellyfin"
	MediaManagerInfoTypeMediadownloader MediaManagerInfoType = "mediadownloader"
	MediaManagerInfoTypeRadarr          MediaManagerInfoType = "radarr"
	MediaManagerInfoTypeSonarr          MediaManagerInfoType = "sonarr"
)

Defines values for MediaManagerInfoType.

type MediaManagerSummary

type MediaManagerSummary struct {
	Id         *string `json:"id,omitempty"`
	Name       *string `json:"name,omitempty"`
	Online     *bool   `json:"online,omitempty"`
	QueueSize  *int    `json:"queueSize,omitempty"`
	StuckCount *int    `json:"stuckCount,omitempty"`
	Type       *string `json:"type,omitempty"`
}

MediaManagerSummary defines model for MediaManagerSummary.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type OpAccepted

type OpAccepted struct {
	OpId string `json:"op_id"`
}

OpAccepted defines model for OpAccepted.

type OperationResult

type OperationResult struct {
	BytesAffected *int64  `json:"bytesAffected,omitempty"`
	FilesAffected *int    `json:"filesAffected,omitempty"`
	Message       *string `json:"message,omitempty"`
	Success       *bool   `json:"success,omitempty"`
}

OperationResult defines model for OperationResult.

type PreflightPathJSONBody

type PreflightPathJSONBody = map[string]interface{}

PreflightPathJSONBody defines parameters for PreflightPath.

type PreflightPathJSONRequestBody

type PreflightPathJSONRequestBody = PreflightPathJSONBody

PreflightPathJSONRequestBody defines body for PreflightPath for application/json ContentType.

type PutSettingsSectionJSONBody

type PutSettingsSectionJSONBody = map[string]interface{}

PutSettingsSectionJSONBody defines parameters for PutSettingsSection.

type PutSettingsSectionJSONRequestBody

type PutSettingsSectionJSONRequestBody = PutSettingsSectionJSONBody

PutSettingsSectionJSONRequestBody defines body for PutSettingsSection for application/json ContentType.

type QueueItem

type QueueItem struct {
	DownloadClient *string  `json:"downloadClient,omitempty"`
	ErrorMessage   *string  `json:"errorMessage,omitempty"`
	Id             *int64   `json:"id,omitempty"`
	IsStuck        *bool    `json:"isStuck,omitempty"`
	Progress       *float32 `json:"progress,omitempty"`
	Size           *int64   `json:"size,omitempty"`
	SizeRemaining  *int64   `json:"sizeRemaining,omitempty"`
	Status         *string  `json:"status,omitempty"`
	TimeLeft       *string  `json:"timeLeft,omitempty"`
	Title          *string  `json:"title,omitempty"`
}

QueueItem defines model for QueueItem.

type RecoverDaemonJSONRequestBody

type RecoverDaemonJSONRequestBody = RecoverRequest

RecoverDaemonJSONRequestBody defines body for RecoverDaemon for application/json ContentType.

type RecoverRequest

type RecoverRequest struct {
	// Action Recovery action (e.g. discard)
	Action string `json:"action"`
}

RecoverRequest defines model for RecoverRequest.

type ReloadResult

type ReloadResult struct {
	Failed *[]struct {
		Error *string `json:"error,omitempty"`
		Name  *string `json:"name,omitempty"`
	} `json:"failed,omitempty"`
	Ok       *bool     `json:"ok,omitempty"`
	Reloaded *[]string `json:"reloaded,omitempty"`
}

ReloadResult defines model for ReloadResult.

type RemoveSettingsLibraryParamsKind

type RemoveSettingsLibraryParamsKind string

RemoveSettingsLibraryParamsKind defines parameters for RemoveSettingsLibrary.

const (
	RemoveSettingsLibraryParamsKindMovies RemoveSettingsLibraryParamsKind = "movies"
	RemoveSettingsLibraryParamsKindTv     RemoveSettingsLibraryParamsKind = "tv"
)

Defines values for RemoveSettingsLibraryParamsKind.

type RemoveSettingsPathParamsKind

type RemoveSettingsPathParamsKind string

RemoveSettingsPathParamsKind defines parameters for RemoveSettingsPath.

const (
	RemoveSettingsPathParamsKindMovies RemoveSettingsPathParamsKind = "movies"
	RemoveSettingsPathParamsKindTv     RemoveSettingsPathParamsKind = "tv"
)

Defines values for RemoveSettingsPathParamsKind.

type ReplaceSettingsLibrariesJSONBody

type ReplaceSettingsLibrariesJSONBody = map[string]interface{}

ReplaceSettingsLibrariesJSONBody defines parameters for ReplaceSettingsLibraries.

type ReplaceSettingsLibrariesJSONRequestBody

type ReplaceSettingsLibrariesJSONRequestBody = ReplaceSettingsLibrariesJSONBody

ReplaceSettingsLibrariesJSONRequestBody defines body for ReplaceSettingsLibraries for application/json ContentType.

type ReplaceSettingsPathsJSONBody

type ReplaceSettingsPathsJSONBody = map[string]interface{}

ReplaceSettingsPathsJSONBody defines parameters for ReplaceSettingsPaths.

type ReplaceSettingsPathsJSONRequestBody

type ReplaceSettingsPathsJSONRequestBody = ReplaceSettingsPathsJSONBody

ReplaceSettingsPathsJSONRequestBody defines body for ReplaceSettingsPaths for application/json ContentType.

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 RescanDatabaseJSONRequestBody

type RescanDatabaseJSONRequestBody = RescanRequest

RescanDatabaseJSONRequestBody defines body for RescanDatabase for application/json ContentType.

type RescanRequest

type RescanRequest struct {
	DryRun *bool     `json:"dry_run,omitempty"`
	Paths  *[]string `json:"paths,omitempty"`
}

RescanRequest defines model for RescanRequest.

type ResetDatabaseJSONRequestBody

type ResetDatabaseJSONRequestBody = ResetRequest

ResetDatabaseJSONRequestBody defines body for ResetDatabase for application/json ContentType.

type ResetRequest

type ResetRequest struct {
	// Confirm Must equal "media.db" to authorize the reset
	Confirm  string    `json:"confirm"`
	Preserve *[]string `json:"preserve,omitempty"`
}

ResetRequest defines model for ResetRequest.

type RunJellyfinVerificationJSONBody

type RunJellyfinVerificationJSONBody struct {
	LibraryId   *string `json:"libraryId,omitempty"`
	LibraryPath *string `json:"libraryPath,omitempty"`
}

RunJellyfinVerificationJSONBody defines parameters for RunJellyfinVerification.

type RunJellyfinVerificationJSONRequestBody

type RunJellyfinVerificationJSONRequestBody RunJellyfinVerificationJSONBody

RunJellyfinVerificationJSONRequestBody defines body for RunJellyfinVerification for application/json ContentType.

type ScanStatus

type ScanStatus struct {
	Message  *string           `json:"message,omitempty"`
	Progress *int              `json:"progress,omitempty"`
	Status   *ScanStatusStatus `json:"status,omitempty"`
}

ScanStatus defines model for ScanStatus.

type ScanStatusStatus

type ScanStatusStatus string

ScanStatusStatus defines model for ScanStatus.Status.

const (
	Completed ScanStatusStatus = "completed"
	Failed    ScanStatusStatus = "failed"
	Idle      ScanStatusStatus = "idle"
	Scanning  ScanStatusStatus = "scanning"
)

Defines values for ScanStatusStatus.

type ScatteredAnalysis

type ScatteredAnalysis struct {
	Items      *[]ScatteredItem `json:"items,omitempty"`
	TotalBytes *int64           `json:"totalBytes,omitempty"`
	TotalItems *int             `json:"totalItems,omitempty"`
	TotalMoves *int             `json:"totalMoves,omitempty"`
}

ScatteredAnalysis defines model for ScatteredAnalysis.

type ScatteredItem

type ScatteredItem struct {
	BytesToMove    *int64    `json:"bytesToMove,omitempty"`
	FilesToMove    *int      `json:"filesToMove,omitempty"`
	Id             *int64    `json:"id,omitempty"`
	Locations      *[]string `json:"locations,omitempty"`
	MediaType      *string   `json:"mediaType,omitempty"`
	TargetLocation *string   `json:"targetLocation,omitempty"`
	Title          *string   `json:"title,omitempty"`
	Year           *int      `json:"year,omitempty"`
}

ScatteredItem defines model for ScatteredItem.

type ServerInterface

type ServerInterface interface {
	// Get paginated activity log
	// (GET /activity)
	GetActivity(w http.ResponseWriter, r *http.Request, params GetActivityParams)
	// SSE stream for real-time activity
	// (GET /activity/stream)
	ActivityStream(w http.ResponseWriter, r *http.Request)
	// Get current AI settings
	// (GET /ai/settings)
	GetAISettings(w http.ResponseWriter, r *http.Request)
	// Authenticate with password
	// (POST /auth/login)
	Login(w http.ResponseWriter, r *http.Request)
	// Clear session cookie
	// (POST /auth/logout)
	Logout(w http.ResponseWriter, r *http.Request)
	// Check if auth is enabled and current state
	// (GET /auth/status)
	GetAuthStatus(w http.ResponseWriter, r *http.Request)
	// Get dashboard aggregate data
	// (GET /dashboard)
	GetDashboard(w http.ResponseWriter, r *http.Request)
	// Get duplicate analysis
	// (GET /duplicates)
	GetDuplicates(w http.ResponseWriter, r *http.Request)
	// Delete inferior file from duplicate group
	// (DELETE /duplicates/{groupId})
	DeleteDuplicate(w http.ResponseWriter, r *http.Request, groupId string, params DeleteDuplicateParams)
	// Health check endpoint
	// (GET /health)
	HealthCheck(w http.ResponseWriter, r *http.Request)
	// List configured LLM providers
	// (GET /llm-providers)
	ListLLMProviders(w http.ResponseWriter, r *http.Request)
	// Get provider health and model
	// (GET /llm-providers/{providerId}/status)
	GetLLMProviderStatus(w http.ResponseWriter, r *http.Request, providerId string)
	// List all configured media managers
	// (GET /media-managers)
	ListMediaManagers(w http.ResponseWriter, r *http.Request)
	// Get download queue
	// (GET /media-managers/{managerId}/queue)
	GetMediaManagerQueue(w http.ResponseWriter, r *http.Request, managerId string, params GetMediaManagerQueueParams)
	// Clear item from queue
	// (DELETE /media-managers/{managerId}/queue/{itemId})
	ClearQueueItem(w http.ResponseWriter, r *http.Request, managerId string, itemId int64, params ClearQueueItemParams)
	// Trigger import scan
	// (POST /media-managers/{managerId}/scan)
	TriggerManagerScan(w http.ResponseWriter, r *http.Request, managerId string)
	// Get service health and stats
	// (GET /media-managers/{managerId}/status)
	GetMediaManagerStatus(w http.ResponseWriter, r *http.Request, managerId string)
	// Clear all stuck items
	// (DELETE /media-managers/{managerId}/stuck)
	ClearStuckItems(w http.ResponseWriter, r *http.Request, managerId string, params ClearStuckItemsParams)
	// Get stuck queue items
	// (GET /media-managers/{managerId}/stuck)
	GetStuckItems(w http.ResponseWriter, r *http.Request, managerId string)
	// Trigger library scan
	// (POST /scan)
	StartScan(w http.ResponseWriter, r *http.Request)
	// Get scan status
	// (GET /scan/status)
	GetScanStatus(w http.ResponseWriter, r *http.Request)
	// SSE stream for scan progress
	// (GET /scan/stream)
	ScanStream(w http.ResponseWriter, r *http.Request)
	// Get scattered media analysis
	// (GET /scattered)
	GetScattered(w http.ResponseWriter, r *http.Request)
	// Consolidate scattered media item
	// (POST /scattered/{itemId}/consolidate)
	ConsolidateItem(w http.ResponseWriter, r *http.Request, itemId int64)
}

ServerInterface represents all server handlers.

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

func (siw *ServerInterfaceWrapper) ActivityStream(w http.ResponseWriter, r *http.Request)

ActivityStream operation middleware

func (*ServerInterfaceWrapper) ClearQueueItem

func (siw *ServerInterfaceWrapper) ClearQueueItem(w http.ResponseWriter, r *http.Request)

ClearQueueItem operation middleware

func (*ServerInterfaceWrapper) ClearStuckItems

func (siw *ServerInterfaceWrapper) ClearStuckItems(w http.ResponseWriter, r *http.Request)

ClearStuckItems operation middleware

func (*ServerInterfaceWrapper) ConsolidateItem

func (siw *ServerInterfaceWrapper) ConsolidateItem(w http.ResponseWriter, r *http.Request)

ConsolidateItem operation middleware

func (*ServerInterfaceWrapper) DeleteDuplicate

func (siw *ServerInterfaceWrapper) DeleteDuplicate(w http.ResponseWriter, r *http.Request)

DeleteDuplicate operation middleware

func (*ServerInterfaceWrapper) GetAISettings

func (siw *ServerInterfaceWrapper) GetAISettings(w http.ResponseWriter, r *http.Request)

GetAISettings operation middleware

func (*ServerInterfaceWrapper) GetActivity

func (siw *ServerInterfaceWrapper) GetActivity(w http.ResponseWriter, r *http.Request)

GetActivity operation middleware

func (*ServerInterfaceWrapper) GetAuthStatus

func (siw *ServerInterfaceWrapper) GetAuthStatus(w http.ResponseWriter, r *http.Request)

GetAuthStatus operation middleware

func (*ServerInterfaceWrapper) GetDashboard

func (siw *ServerInterfaceWrapper) GetDashboard(w http.ResponseWriter, r *http.Request)

GetDashboard operation middleware

func (*ServerInterfaceWrapper) GetDuplicates

func (siw *ServerInterfaceWrapper) GetDuplicates(w http.ResponseWriter, r *http.Request)

GetDuplicates operation middleware

func (*ServerInterfaceWrapper) GetLLMProviderStatus

func (siw *ServerInterfaceWrapper) GetLLMProviderStatus(w http.ResponseWriter, r *http.Request)

GetLLMProviderStatus operation middleware

func (*ServerInterfaceWrapper) GetMediaManagerQueue

func (siw *ServerInterfaceWrapper) GetMediaManagerQueue(w http.ResponseWriter, r *http.Request)

GetMediaManagerQueue operation middleware

func (*ServerInterfaceWrapper) GetMediaManagerStatus

func (siw *ServerInterfaceWrapper) GetMediaManagerStatus(w http.ResponseWriter, r *http.Request)

GetMediaManagerStatus operation middleware

func (*ServerInterfaceWrapper) GetScanStatus

func (siw *ServerInterfaceWrapper) GetScanStatus(w http.ResponseWriter, r *http.Request)

GetScanStatus operation middleware

func (*ServerInterfaceWrapper) GetScattered

func (siw *ServerInterfaceWrapper) GetScattered(w http.ResponseWriter, r *http.Request)

GetScattered operation middleware

func (*ServerInterfaceWrapper) GetStuckItems

func (siw *ServerInterfaceWrapper) GetStuckItems(w http.ResponseWriter, r *http.Request)

GetStuckItems operation middleware

func (*ServerInterfaceWrapper) HealthCheck

func (siw *ServerInterfaceWrapper) HealthCheck(w http.ResponseWriter, r *http.Request)

HealthCheck operation middleware

func (*ServerInterfaceWrapper) ListLLMProviders

func (siw *ServerInterfaceWrapper) ListLLMProviders(w http.ResponseWriter, r *http.Request)

ListLLMProviders operation middleware

func (*ServerInterfaceWrapper) ListMediaManagers

func (siw *ServerInterfaceWrapper) ListMediaManagers(w http.ResponseWriter, r *http.Request)

ListMediaManagers operation middleware

func (*ServerInterfaceWrapper) Login

Login operation middleware

func (*ServerInterfaceWrapper) Logout

Logout operation middleware

func (*ServerInterfaceWrapper) ScanStream

func (siw *ServerInterfaceWrapper) ScanStream(w http.ResponseWriter, r *http.Request)

ScanStream operation middleware

func (*ServerInterfaceWrapper) StartScan

func (siw *ServerInterfaceWrapper) StartScan(w http.ResponseWriter, r *http.Request)

StartScan operation middleware

func (*ServerInterfaceWrapper) TriggerManagerScan

func (siw *ServerInterfaceWrapper) TriggerManagerScan(w http.ResponseWriter, r *http.Request)

TriggerManagerScan operation middleware

type ServiceStatus

type ServiceStatus struct {
	Error      *string `json:"error,omitempty"`
	Online     *bool   `json:"online,omitempty"`
	QueueSize  *int    `json:"queueSize,omitempty"`
	StuckCount *int    `json:"stuckCount,omitempty"`
	Version    *string `json:"version,omitempty"`
}

ServiceStatus defines model for ServiceStatus.

type SetupAuthJSONBody

type SetupAuthJSONBody struct {
	Password string `json:"password"`
}

SetupAuthJSONBody defines parameters for SetupAuth.

type SetupAuthJSONRequestBody

type SetupAuthJSONRequestBody SetupAuthJSONBody

SetupAuthJSONRequestBody defines body for SetupAuth for application/json ContentType.

type TestJellyfinConnectionJSONBody

type TestJellyfinConnectionJSONBody = map[string]interface{}

TestJellyfinConnectionJSONBody defines parameters for TestJellyfinConnection.

type TestJellyfinConnectionJSONRequestBody

type TestJellyfinConnectionJSONRequestBody = TestJellyfinConnectionJSONBody

TestJellyfinConnectionJSONRequestBody defines body for TestJellyfinConnection for application/json ContentType.

type TestRadarrConnectionJSONBody

type TestRadarrConnectionJSONBody = map[string]interface{}

TestRadarrConnectionJSONBody defines parameters for TestRadarrConnection.

type TestRadarrConnectionJSONRequestBody

type TestRadarrConnectionJSONRequestBody = TestRadarrConnectionJSONBody

TestRadarrConnectionJSONRequestBody defines body for TestRadarrConnection for application/json ContentType.

type TestSonarrConnectionJSONBody

type TestSonarrConnectionJSONBody = map[string]interface{}

TestSonarrConnectionJSONBody defines parameters for TestSonarrConnection.

type TestSonarrConnectionJSONRequestBody

type TestSonarrConnectionJSONRequestBody = TestSonarrConnectionJSONBody

TestSonarrConnectionJSONRequestBody defines body for TestSonarrConnection for application/json ContentType.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type TriggerManagerScanJSONBody

type TriggerManagerScanJSONBody struct {
	Path *string `json:"path,omitempty"`
}

TriggerManagerScanJSONBody defines parameters for TriggerManagerScan.

type TriggerManagerScanJSONRequestBody

type TriggerManagerScanJSONRequestBody TriggerManagerScanJSONBody

TriggerManagerScanJSONRequestBody defines body for TriggerManagerScan for application/json ContentType.

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 UnidentifiableItem

type UnidentifiableItem struct {
	DateAdded *time.Time `json:"dateAdded,omitempty"`
	Id        *string    `json:"id,omitempty"`
	Name      *string    `json:"name,omitempty"`
	Path      *string    `json:"path,omitempty"`
	Type      *string    `json:"type,omitempty"`
}

UnidentifiableItem defines model for UnidentifiableItem.

type Unimplemented

type Unimplemented struct{}

func (Unimplemented) ActivityStream

func (_ Unimplemented) ActivityStream(w http.ResponseWriter, r *http.Request)

SSE stream for real-time activity (GET /activity/stream)

func (Unimplemented) ClearQueueItem

func (_ Unimplemented) ClearQueueItem(w http.ResponseWriter, r *http.Request, managerId string, itemId int64, params ClearQueueItemParams)

Clear item from queue (DELETE /media-managers/{managerId}/queue/{itemId})

func (Unimplemented) ClearStuckItems

func (_ Unimplemented) ClearStuckItems(w http.ResponseWriter, r *http.Request, managerId string, params ClearStuckItemsParams)

Clear all stuck items (DELETE /media-managers/{managerId}/stuck)

func (Unimplemented) ConsolidateItem

func (_ Unimplemented) ConsolidateItem(w http.ResponseWriter, r *http.Request, itemId int64)

Consolidate scattered media item (POST /scattered/{itemId}/consolidate)

func (Unimplemented) DeleteDuplicate

func (_ Unimplemented) DeleteDuplicate(w http.ResponseWriter, r *http.Request, groupId string, params DeleteDuplicateParams)

Delete inferior file from duplicate group (DELETE /duplicates/{groupId})

func (Unimplemented) GetAISettings

func (_ Unimplemented) GetAISettings(w http.ResponseWriter, r *http.Request)

Get current AI settings (GET /ai/settings)

func (Unimplemented) GetActivity

func (_ Unimplemented) GetActivity(w http.ResponseWriter, r *http.Request, params GetActivityParams)

Get paginated activity log (GET /activity)

func (Unimplemented) GetAuthStatus

func (_ Unimplemented) GetAuthStatus(w http.ResponseWriter, r *http.Request)

Check if auth is enabled and current state (GET /auth/status)

func (Unimplemented) GetDashboard

func (_ Unimplemented) GetDashboard(w http.ResponseWriter, r *http.Request)

Get dashboard aggregate data (GET /dashboard)

func (Unimplemented) GetDuplicates

func (_ Unimplemented) GetDuplicates(w http.ResponseWriter, r *http.Request)

Get duplicate analysis (GET /duplicates)

func (Unimplemented) GetLLMProviderStatus

func (_ Unimplemented) GetLLMProviderStatus(w http.ResponseWriter, r *http.Request, providerId string)

Get provider health and model (GET /llm-providers/{providerId}/status)

func (Unimplemented) GetMediaManagerQueue

func (_ Unimplemented) GetMediaManagerQueue(w http.ResponseWriter, r *http.Request, managerId string, params GetMediaManagerQueueParams)

Get download queue (GET /media-managers/{managerId}/queue)

func (Unimplemented) GetMediaManagerStatus

func (_ Unimplemented) GetMediaManagerStatus(w http.ResponseWriter, r *http.Request, managerId string)

Get service health and stats (GET /media-managers/{managerId}/status)

func (Unimplemented) GetScanStatus

func (_ Unimplemented) GetScanStatus(w http.ResponseWriter, r *http.Request)

Get scan status (GET /scan/status)

func (Unimplemented) GetScattered

func (_ Unimplemented) GetScattered(w http.ResponseWriter, r *http.Request)

Get scattered media analysis (GET /scattered)

func (Unimplemented) GetStuckItems

func (_ Unimplemented) GetStuckItems(w http.ResponseWriter, r *http.Request, managerId string)

Get stuck queue items (GET /media-managers/{managerId}/stuck)

func (Unimplemented) HealthCheck

func (_ Unimplemented) HealthCheck(w http.ResponseWriter, r *http.Request)

Health check endpoint (GET /health)

func (Unimplemented) ListLLMProviders

func (_ Unimplemented) ListLLMProviders(w http.ResponseWriter, r *http.Request)

List configured LLM providers (GET /llm-providers)

func (Unimplemented) ListMediaManagers

func (_ Unimplemented) ListMediaManagers(w http.ResponseWriter, r *http.Request)

List all configured media managers (GET /media-managers)

func (Unimplemented) Login

func (_ Unimplemented) Login(w http.ResponseWriter, r *http.Request)

Authenticate with password (POST /auth/login)

func (Unimplemented) Logout

func (_ Unimplemented) Logout(w http.ResponseWriter, r *http.Request)

Clear session cookie (POST /auth/logout)

func (Unimplemented) ScanStream

func (_ Unimplemented) ScanStream(w http.ResponseWriter, r *http.Request)

SSE stream for scan progress (GET /scan/stream)

func (Unimplemented) StartScan

func (_ Unimplemented) StartScan(w http.ResponseWriter, r *http.Request)

Trigger library scan (POST /scan)

func (Unimplemented) TriggerManagerScan

func (_ Unimplemented) TriggerManagerScan(w http.ResponseWriter, r *http.Request, managerId string)

Trigger import scan (POST /media-managers/{managerId}/scan)

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

Jump to

Keyboard shortcuts

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