- Update docs/overview.md to reflect pluggable reverse-proxy/OIDC SSO (DEC-8), hard-fail sanitizer behavior on dangerous payloads (DEC-3), and Stage 1 TMDB resolution at ingestion (DEC-4) instead of hardcoded Authelia/Traefik/domain examples. - Update README.md quick-start sync command to uv sync --all-packages and remove unimplemented docker-compose.yml from the current directory tree. - Update proto/magnetflix/v1/pipeline.proto comments to reference generic upstream SSO identity headers and info_hash deduplication, and regenerate protobuf stubs + docs/api_spec.md via buf generate. - Update DownloadJob.requested_by column doc metadata in services/worker/src/worker/db/models.py to match configurable AUTH_HEADER_USER.
110 lines
5.1 KiB
Python
110 lines
5.1 KiB
Python
"""
|
|
@generated by mypy-protobuf. Do not edit manually!
|
|
isort:skip_file
|
|
"""
|
|
|
|
from collections import abc as _abc
|
|
from grpc import aio as _aio
|
|
from magnetflix.v1 import pipeline_pb2 as _pipeline_pb2
|
|
import abc as _abc_1
|
|
import grpc as _grpc
|
|
import sys
|
|
import typing as _typing
|
|
|
|
if sys.version_info >= (3, 11):
|
|
from typing import Self as _Self
|
|
else:
|
|
from typing_extensions import Self as _Self
|
|
|
|
_T = _typing.TypeVar("_T")
|
|
|
|
class _MaybeAsyncIterator(_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta): ...
|
|
|
|
class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
...
|
|
|
|
GRPC_GENERATED_VERSION: str
|
|
GRPC_VERSION: str
|
|
|
|
class PipelineServiceStub:
|
|
"""PipelineService coordinates movie download jobs, safety scans, and library relocation."""
|
|
|
|
@_typing.overload
|
|
def __new__(cls, channel: _grpc.Channel) -> _Self: ...
|
|
@_typing.overload
|
|
def __new__(cls, channel: _aio.Channel) -> PipelineServiceAsyncStub: ...
|
|
SubmitDownload: _grpc.UnaryUnaryMultiCallable[_pipeline_pb2.SubmitDownloadRequest, _pipeline_pb2.SubmitDownloadResponse]
|
|
"""SubmitDownload enqueues a new movie download job.
|
|
Rejects duplicate submissions if an active job for the same IMDb ID or info_hash exists, or if already in library.
|
|
"""
|
|
GetJob: _grpc.UnaryUnaryMultiCallable[_pipeline_pb2.GetJobRequest, _pipeline_pb2.GetJobResponse]
|
|
"""GetJob retrieves the current status and metadata of a specific job."""
|
|
StreamJobStatus: _grpc.UnaryStreamMultiCallable[_pipeline_pb2.StreamJobStatusRequest, _pipeline_pb2.StreamJobStatusResponse]
|
|
"""StreamJobStatus streams real-time status updates.
|
|
Semantics: Emits an immediate snapshot of matching active jobs upon connection,
|
|
followed by subsequent state and progress change events.
|
|
"""
|
|
ListJobs: _grpc.UnaryUnaryMultiCallable[_pipeline_pb2.ListJobsRequest, _pipeline_pb2.ListJobsResponse]
|
|
"""ListJobs returns a paginated list of download jobs."""
|
|
|
|
@_typing.type_check_only
|
|
class PipelineServiceAsyncStub(PipelineServiceStub):
|
|
"""PipelineService coordinates movie download jobs, safety scans, and library relocation."""
|
|
|
|
def __init__(self, channel: _aio.Channel) -> None: ...
|
|
SubmitDownload: _aio.UnaryUnaryMultiCallable[_pipeline_pb2.SubmitDownloadRequest, _pipeline_pb2.SubmitDownloadResponse] # type: ignore[assignment]
|
|
"""SubmitDownload enqueues a new movie download job.
|
|
Rejects duplicate submissions if an active job for the same IMDb ID or info_hash exists, or if already in library.
|
|
"""
|
|
GetJob: _aio.UnaryUnaryMultiCallable[_pipeline_pb2.GetJobRequest, _pipeline_pb2.GetJobResponse] # type: ignore[assignment]
|
|
"""GetJob retrieves the current status and metadata of a specific job."""
|
|
StreamJobStatus: _aio.UnaryStreamMultiCallable[_pipeline_pb2.StreamJobStatusRequest, _pipeline_pb2.StreamJobStatusResponse] # type: ignore[assignment]
|
|
"""StreamJobStatus streams real-time status updates.
|
|
Semantics: Emits an immediate snapshot of matching active jobs upon connection,
|
|
followed by subsequent state and progress change events.
|
|
"""
|
|
ListJobs: _aio.UnaryUnaryMultiCallable[_pipeline_pb2.ListJobsRequest, _pipeline_pb2.ListJobsResponse] # type: ignore[assignment]
|
|
"""ListJobs returns a paginated list of download jobs."""
|
|
|
|
class PipelineServiceServicer(metaclass=_abc_1.ABCMeta):
|
|
"""PipelineService coordinates movie download jobs, safety scans, and library relocation."""
|
|
|
|
@_abc_1.abstractmethod
|
|
def SubmitDownload(
|
|
self,
|
|
request: _pipeline_pb2.SubmitDownloadRequest,
|
|
context: _ServicerContext,
|
|
) -> _typing.Union[_pipeline_pb2.SubmitDownloadResponse, _abc.Awaitable[_pipeline_pb2.SubmitDownloadResponse]]:
|
|
"""SubmitDownload enqueues a new movie download job.
|
|
Rejects duplicate submissions if an active job for the same IMDb ID or info_hash exists, or if already in library.
|
|
"""
|
|
|
|
@_abc_1.abstractmethod
|
|
def GetJob(
|
|
self,
|
|
request: _pipeline_pb2.GetJobRequest,
|
|
context: _ServicerContext,
|
|
) -> _typing.Union[_pipeline_pb2.GetJobResponse, _abc.Awaitable[_pipeline_pb2.GetJobResponse]]:
|
|
"""GetJob retrieves the current status and metadata of a specific job."""
|
|
|
|
@_abc_1.abstractmethod
|
|
def StreamJobStatus(
|
|
self,
|
|
request: _pipeline_pb2.StreamJobStatusRequest,
|
|
context: _ServicerContext,
|
|
) -> _typing.Union[_abc.Iterator[_pipeline_pb2.StreamJobStatusResponse], _abc.AsyncIterator[_pipeline_pb2.StreamJobStatusResponse]]:
|
|
"""StreamJobStatus streams real-time status updates.
|
|
Semantics: Emits an immediate snapshot of matching active jobs upon connection,
|
|
followed by subsequent state and progress change events.
|
|
"""
|
|
|
|
@_abc_1.abstractmethod
|
|
def ListJobs(
|
|
self,
|
|
request: _pipeline_pb2.ListJobsRequest,
|
|
context: _ServicerContext,
|
|
) -> _typing.Union[_pipeline_pb2.ListJobsResponse, _abc.Awaitable[_pipeline_pb2.ListJobsResponse]]:
|
|
"""ListJobs returns a paginated list of download jobs."""
|
|
|
|
def add_PipelineServiceServicer_to_server(servicer: PipelineServiceServicer, server: _typing.Union[_grpc.Server, _aio.Server]) -> None: ...
|