deapi-mcp 0.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- deapi_mcp/__init__.py +24 -0
- deapi_mcp/auth.py +33 -0
- deapi_mcp/auth_code_store.py +226 -0
- deapi_mcp/config.py +297 -0
- deapi_mcp/consent.py +549 -0
- deapi_mcp/deapi_client.py +466 -0
- deapi_mcp/fastmcp_auth.py +227 -0
- deapi_mcp/key_verifier.py +225 -0
- deapi_mcp/landing.py +431 -0
- deapi_mcp/middleware.py +756 -0
- deapi_mcp/oauth_clients.py +443 -0
- deapi_mcp/oauth_endpoints.py +973 -0
- deapi_mcp/observability.py +199 -0
- deapi_mcp/polling_manager.py +319 -0
- deapi_mcp/py.typed +0 -0
- deapi_mcp/schemas.py +397 -0
- deapi_mcp/server_remote.py +416 -0
- deapi_mcp/tools/__init__.py +0 -0
- deapi_mcp/tools/_price_helpers.py +167 -0
- deapi_mcp/tools/_responses.py +157 -0
- deapi_mcp/tools/audio.py +1195 -0
- deapi_mcp/tools/embedding.py +102 -0
- deapi_mcp/tools/image.py +884 -0
- deapi_mcp/tools/prompt.py +155 -0
- deapi_mcp/tools/utility.py +230 -0
- deapi_mcp/tools/video.py +1117 -0
- deapi_mcp/utils.py +666 -0
- deapi_mcp/webhooks.py +349 -0
- deapi_mcp-0.7.0.dist-info/METADATA +642 -0
- deapi_mcp-0.7.0.dist-info/RECORD +33 -0
- deapi_mcp-0.7.0.dist-info/WHEEL +4 -0
- deapi_mcp-0.7.0.dist-info/entry_points.txt +2 -0
- deapi_mcp-0.7.0.dist-info/licenses/LICENSE +21 -0
deapi_mcp/schemas.py
ADDED
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
"""Pydantic schemas for deAPI requests and responses."""
|
|
2
|
+
|
|
3
|
+
from enum import Enum
|
|
4
|
+
from typing import Any, Dict, List, Optional, Union
|
|
5
|
+
|
|
6
|
+
from pydantic import BaseModel, Field
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
# Enums
|
|
10
|
+
class JobStatus(str, Enum):
|
|
11
|
+
"""Job status enumeration.
|
|
12
|
+
|
|
13
|
+
The API's terminal failure status is `error` (the upstream enum's
|
|
14
|
+
terminal value). `failed` is kept only so that an older or alternate payload
|
|
15
|
+
still parses instead of raising; treat both as terminal failures.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
PENDING = "pending"
|
|
19
|
+
PROCESSING = "processing"
|
|
20
|
+
DONE = "done"
|
|
21
|
+
ERROR = "error"
|
|
22
|
+
FAILED = "failed"
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
def is_failure(self) -> bool:
|
|
26
|
+
"""Whether this status represents a terminal failure."""
|
|
27
|
+
return self in (JobStatus.ERROR, JobStatus.FAILED)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ImageFormat(str, Enum):
|
|
31
|
+
"""Image format enumeration."""
|
|
32
|
+
|
|
33
|
+
PNG = "png"
|
|
34
|
+
JPEG = "jpeg"
|
|
35
|
+
WEBP = "webp"
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class OCRFormat(str, Enum):
|
|
39
|
+
"""OCR output format enumeration."""
|
|
40
|
+
|
|
41
|
+
TEXT = "text"
|
|
42
|
+
JSON = "json"
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# Response Schemas
|
|
46
|
+
class JobRequestData(BaseModel):
|
|
47
|
+
"""Job request response data."""
|
|
48
|
+
|
|
49
|
+
request_id: str = Field(description="Unique identifier for the job request (UUID)")
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class JobRequestResponse(BaseModel):
|
|
53
|
+
"""Response from job submission endpoints."""
|
|
54
|
+
|
|
55
|
+
data: JobRequestData
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class PromptBoost(BaseModel):
|
|
59
|
+
"""What the inline prompt booster (``enhance_prompt``) did to the prompt.
|
|
60
|
+
|
|
61
|
+
Present only once the boost has actually run; null while it is queued,
|
|
62
|
+
when it was not requested, or when the booster left the prompt unchanged.
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
prompt: Optional[str] = Field(
|
|
66
|
+
None, description="Effective (boosted) prompt used for generation"
|
|
67
|
+
)
|
|
68
|
+
prompt_original: Optional[str] = Field(None, description="Prompt as supplied by the caller")
|
|
69
|
+
negative_prompt: Optional[str] = Field(None, description="Effective (boosted) negative prompt")
|
|
70
|
+
negative_prompt_original: Optional[str] = Field(
|
|
71
|
+
None, description="Negative prompt as supplied by the caller"
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class JobStatusData(BaseModel):
|
|
76
|
+
"""Job status response data."""
|
|
77
|
+
|
|
78
|
+
status: JobStatus = Field(description="Current status of the job request")
|
|
79
|
+
preview: Optional[str] = Field(
|
|
80
|
+
None,
|
|
81
|
+
description=(
|
|
82
|
+
"Inline preview of an in-progress image job as base64 PNG, not a URL. "
|
|
83
|
+
"Parsed but never relayed by the tools (check_job_status reports "
|
|
84
|
+
"preview_url as null): ~20 KB of pixels in every status check would "
|
|
85
|
+
"only burn the caller's context"
|
|
86
|
+
),
|
|
87
|
+
)
|
|
88
|
+
result_url: Optional[str] = Field(
|
|
89
|
+
None,
|
|
90
|
+
description="URL to the result file (image/audio/video). Available when status is done",
|
|
91
|
+
)
|
|
92
|
+
result: Optional[str] = Field(
|
|
93
|
+
None, description="Generated text (e.g. transcription). Available when status is done"
|
|
94
|
+
)
|
|
95
|
+
progress: Optional[float] = Field(
|
|
96
|
+
None, description="Current progress of the job (0.0 to 100.0)", ge=0.0, le=100.0
|
|
97
|
+
)
|
|
98
|
+
metadata: Optional[Dict[str, Any]] = Field(None, description="Source metadata for the job")
|
|
99
|
+
|
|
100
|
+
# Failure surface. All null unless the job actually failed, so their presence
|
|
101
|
+
# is what distinguishes a real failure from a job still on its way.
|
|
102
|
+
error_code: Optional[str] = Field(None, description="Machine-readable failure code")
|
|
103
|
+
error_reason: Optional[str] = Field(None, description="Human-readable reason the job failed")
|
|
104
|
+
retryable: Optional[bool] = Field(
|
|
105
|
+
None, description="Whether resubmitting the same job could succeed"
|
|
106
|
+
)
|
|
107
|
+
refunded: Optional[bool] = Field(None, description="Whether the job's cost was refunded")
|
|
108
|
+
failed_at: Optional[str] = Field(None, description="When the job failed (ISO 8601)")
|
|
109
|
+
|
|
110
|
+
price: Optional[Dict[str, Any]] = Field(
|
|
111
|
+
None, description="Actual cost: {'amount': float, 'is_estimated': bool}"
|
|
112
|
+
)
|
|
113
|
+
results_alt_formats: Optional[Dict[str, Any]] = Field(
|
|
114
|
+
None, description="Alternative result formats (e.g. jpg, webp) for image jobs"
|
|
115
|
+
)
|
|
116
|
+
prompt_boosted: Optional[bool] = Field(None, description="Whether the prompt was enhanced")
|
|
117
|
+
prompt_boost: Optional[PromptBoost] = Field(
|
|
118
|
+
None, description="Boosted and original prompts. Non-null only when prompt_boosted is true"
|
|
119
|
+
)
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class JobStatusResponse(BaseModel):
|
|
123
|
+
"""Response from job status endpoint."""
|
|
124
|
+
|
|
125
|
+
data: JobStatusData
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class PriceCalculationData(BaseModel):
|
|
129
|
+
"""Price calculation response data.
|
|
130
|
+
|
|
131
|
+
Mirrors what the price endpoints actually return. The previous shape
|
|
132
|
+
(`estimated_price`, `currency`) matched no endpoint; the price tools return
|
|
133
|
+
the raw dict rather than parsing through this model, so the mismatch was
|
|
134
|
+
invisible at runtime and misleading only to a reader.
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
price: float = Field(description="Calculated price for the inference")
|
|
138
|
+
is_estimated: Optional[bool] = Field(
|
|
139
|
+
None,
|
|
140
|
+
description=(
|
|
141
|
+
"True when the price is an estimate rather than an exact quote. "
|
|
142
|
+
"Partner models are billed by the provider after inference, so the "
|
|
143
|
+
"final charge is not knowable up front."
|
|
144
|
+
),
|
|
145
|
+
)
|
|
146
|
+
estimate_basis: Optional[str] = Field(
|
|
147
|
+
None,
|
|
148
|
+
description=(
|
|
149
|
+
"What the estimate derives from: 'request_params', 'model_history', "
|
|
150
|
+
"'model_default', 'rate_card' or 'unavailable' (no estimate: the price shown is "
|
|
151
|
+
"not the cost). Null for non-estimated prices."
|
|
152
|
+
),
|
|
153
|
+
)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
class PriceCalculationResponse(BaseModel):
|
|
157
|
+
"""Response from price calculation endpoints."""
|
|
158
|
+
|
|
159
|
+
data: PriceCalculationData
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
class BalanceData(BaseModel):
|
|
163
|
+
"""User balance data."""
|
|
164
|
+
|
|
165
|
+
balance: float = Field(description="Current account balance")
|
|
166
|
+
currency: Optional[str] = Field("USD", description="Currency of the balance")
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
class BalanceResponse(BaseModel):
|
|
170
|
+
"""Response from balance endpoint."""
|
|
171
|
+
|
|
172
|
+
data: BalanceData
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
class VoiceInfo(BaseModel):
|
|
176
|
+
"""A voice a TTS model can speak with. The API's `voice` field takes the slug."""
|
|
177
|
+
|
|
178
|
+
name: str = Field(description="Display name, e.g. 'Alloy'")
|
|
179
|
+
slug: str = Field(description="Value to pass as `voice`, e.g. 'af_alloy'")
|
|
180
|
+
gender: Optional[str] = Field(None, description="Voice gender, if the model reports it")
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class LanguageInfo(BaseModel):
|
|
184
|
+
"""A language a TTS model supports, with the voices available in it.
|
|
185
|
+
|
|
186
|
+
The API's `lang` field takes the slug, and slugs are per-model: Kokoro uses
|
|
187
|
+
'en-us', the Qwen3 models use 'English'. Voice-cloning models list their
|
|
188
|
+
languages with no voices, since the voice comes from `ref_audio`.
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
name: str = Field(description="Display name, e.g. 'English (US)'")
|
|
192
|
+
slug: str = Field(description="Value to pass as `lang`, e.g. 'en-us'")
|
|
193
|
+
voices: List[VoiceInfo] = Field(default_factory=list, description="Voices in this language")
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
class ModelInfo(BaseModel):
|
|
197
|
+
"""Model information from deAPI."""
|
|
198
|
+
|
|
199
|
+
model_config = {"extra": "allow"} # Pydantic v2 syntax - allow additional fields from API
|
|
200
|
+
|
|
201
|
+
name: str = Field(description="Model name")
|
|
202
|
+
slug: str = Field(description="Model slug identifier")
|
|
203
|
+
# "standard_model" for the catalogue proper; "test_model" for partner or
|
|
204
|
+
# experimental models that may change or disappear. Absent on older APIs.
|
|
205
|
+
status: Optional[str] = Field(None, description="Model status: standard_model or test_model")
|
|
206
|
+
tags: Optional[List[str]] = Field(None, description="Catalogue tags, e.g. ['experimental']")
|
|
207
|
+
# API returns list of strings, not dict (OpenAPI spec will be updated)
|
|
208
|
+
inference_types: Union[List[str], Dict[str, Any]] = Field(
|
|
209
|
+
description="Available inference types (currently returns array of strings)"
|
|
210
|
+
)
|
|
211
|
+
# API sometimes returns empty list instead of null/dict (will be fixed)
|
|
212
|
+
info: Union[Dict[str, Any], List[Any], None] = Field(
|
|
213
|
+
None,
|
|
214
|
+
description="Model specs, limits, features, and defaults. Can be dict, empty list, or null",
|
|
215
|
+
)
|
|
216
|
+
loras: Optional[List[Dict[str, Any]]] = Field(
|
|
217
|
+
None, description="Available LoRA models if supported"
|
|
218
|
+
)
|
|
219
|
+
languages: Optional[List[LanguageInfo]] = Field(
|
|
220
|
+
None,
|
|
221
|
+
description=(
|
|
222
|
+
"Languages and voices a TTS model supports (eager-loaded by the API as "
|
|
223
|
+
"enabledLanguages.enabledVoices). Absent for non-TTS models"
|
|
224
|
+
),
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
class PaginationMeta(BaseModel):
|
|
229
|
+
"""Pagination metadata returned alongside paginated collections.
|
|
230
|
+
|
|
231
|
+
The API's OpenAPI annotation documents only `data`, but Laravel's paginated
|
|
232
|
+
resource collections always emit this block at runtime.
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
total: Optional[int] = Field(None, description="Total number of items across all pages")
|
|
236
|
+
last_page: Optional[int] = Field(None, description="Index of the final page (1-based)")
|
|
237
|
+
per_page: Optional[int] = Field(None, description="Items per page")
|
|
238
|
+
current_page: Optional[int] = Field(None, description="Index of the current page (1-based)")
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
class ModelsResponse(BaseModel):
|
|
242
|
+
"""Response from models endpoint."""
|
|
243
|
+
|
|
244
|
+
data: List[ModelInfo] = Field(description="List of available models")
|
|
245
|
+
meta: Optional[PaginationMeta] = Field(
|
|
246
|
+
None, description="Pagination metadata. Absent if the endpoint returns an unpaginated list"
|
|
247
|
+
)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
class ErrorResponse(BaseModel):
|
|
251
|
+
"""Standard error response."""
|
|
252
|
+
|
|
253
|
+
message: str = Field(description="Error message")
|
|
254
|
+
errors: Optional[Dict[str, Any]] = Field(None, description="Detailed error information")
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
# Request Schemas (for tool parameters)
|
|
258
|
+
class AudioTranscriptionRequest(BaseModel):
|
|
259
|
+
"""Audio transcription request parameters."""
|
|
260
|
+
|
|
261
|
+
audio: str = Field(description="Audio file to transcribe (base64 encoded or URL)")
|
|
262
|
+
include_ts: bool = Field(description="Should transcription include timestamps")
|
|
263
|
+
model: Optional[str] = Field(
|
|
264
|
+
"WhisperLargeV3Ct2", description="The model to use for transcription"
|
|
265
|
+
)
|
|
266
|
+
return_result_in_response: Optional[bool] = Field(
|
|
267
|
+
True,
|
|
268
|
+
description=(
|
|
269
|
+
"Return transcription inline. Set to False for large files to get a "
|
|
270
|
+
"download URL instead. Matches the transcription tools' own default."
|
|
271
|
+
),
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
class Text2ImageRequest(BaseModel):
|
|
276
|
+
"""Text to image generation request parameters."""
|
|
277
|
+
|
|
278
|
+
prompt: str = Field(description="Text prompt for image generation")
|
|
279
|
+
model: str = Field(description="The model to use for generation")
|
|
280
|
+
negative_prompt: Optional[str] = Field(None, description="Negative prompt to exclude elements")
|
|
281
|
+
width: Optional[int] = Field(512, description="Image width in pixels")
|
|
282
|
+
height: Optional[int] = Field(512, description="Image height in pixels")
|
|
283
|
+
steps: Optional[int] = Field(20, description="Number of diffusion steps")
|
|
284
|
+
guidance_scale: Optional[float] = Field(7.5, description="Guidance scale for generation")
|
|
285
|
+
seed: Optional[int] = Field(None, description="Random seed for reproducibility")
|
|
286
|
+
return_result_in_response: Optional[bool] = Field(
|
|
287
|
+
False, description="If true, return result directly instead of polling"
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
class Image2ImageRequest(BaseModel):
|
|
292
|
+
"""Image to image transformation request parameters."""
|
|
293
|
+
|
|
294
|
+
image: str = Field(description="Source image (base64 encoded or URL)")
|
|
295
|
+
prompt: str = Field(description="Text prompt for transformation")
|
|
296
|
+
model: str = Field(description="The model to use for generation")
|
|
297
|
+
negative_prompt: Optional[str] = Field(None, description="Negative prompt to exclude elements")
|
|
298
|
+
strength: Optional[float] = Field(0.8, description="Transformation strength (0.0 to 1.0)")
|
|
299
|
+
steps: Optional[int] = Field(20, description="Number of diffusion steps")
|
|
300
|
+
guidance_scale: Optional[float] = Field(7.5, description="Guidance scale for generation")
|
|
301
|
+
seed: Optional[int] = Field(None, description="Random seed for reproducibility")
|
|
302
|
+
return_result_in_response: Optional[bool] = Field(
|
|
303
|
+
False, description="If true, return result directly instead of polling"
|
|
304
|
+
)
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
class Image2TextRequest(BaseModel):
|
|
308
|
+
"""Image to text (OCR) request parameters."""
|
|
309
|
+
|
|
310
|
+
image: str = Field(description="Image file to extract text from (base64 encoded or URL)")
|
|
311
|
+
model: str = Field(description="The OCR model to use for text extraction")
|
|
312
|
+
language: Optional[str] = Field(None, description="Language code for OCR processing")
|
|
313
|
+
format: Optional[OCRFormat] = Field(
|
|
314
|
+
OCRFormat.TEXT, description="Output format for extracted text"
|
|
315
|
+
)
|
|
316
|
+
return_result_in_response: Optional[bool] = Field(
|
|
317
|
+
False, description="If true, return result directly instead of polling"
|
|
318
|
+
)
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
class Image2VideoRequest(BaseModel):
|
|
322
|
+
"""Image to video generation request parameters."""
|
|
323
|
+
|
|
324
|
+
image: str = Field(description="Source image for video generation (base64 encoded or URL)")
|
|
325
|
+
model: str = Field(description="The model to use for video generation")
|
|
326
|
+
prompt: Optional[str] = Field(None, description="Text prompt for video generation")
|
|
327
|
+
duration: Optional[float] = Field(3.0, description="Video duration in seconds")
|
|
328
|
+
fps: Optional[int] = Field(24, description="Frames per second")
|
|
329
|
+
return_result_in_response: Optional[bool] = Field(
|
|
330
|
+
False, description="If true, return result directly instead of polling"
|
|
331
|
+
)
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
class PromptImageRequest(BaseModel):
|
|
335
|
+
"""Prompt-based image generation request."""
|
|
336
|
+
|
|
337
|
+
prompt: str = Field(description="Text prompt for image generation")
|
|
338
|
+
model: str = Field(description="The model to use for generation")
|
|
339
|
+
negative_prompt: Optional[str] = Field(None, description="Negative prompt")
|
|
340
|
+
width: Optional[int] = Field(512, description="Image width")
|
|
341
|
+
height: Optional[int] = Field(512, description="Image height")
|
|
342
|
+
return_result_in_response: Optional[bool] = Field(False)
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
class PromptVideoRequest(BaseModel):
|
|
346
|
+
"""Prompt-based video generation request."""
|
|
347
|
+
|
|
348
|
+
prompt: str = Field(description="Text prompt for video generation")
|
|
349
|
+
model: str = Field(description="The model to use for generation")
|
|
350
|
+
duration: Optional[float] = Field(3.0, description="Video duration in seconds")
|
|
351
|
+
fps: Optional[int] = Field(24, description="Frames per second")
|
|
352
|
+
return_result_in_response: Optional[bool] = Field(False)
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
class PromptSpeechRequest(BaseModel):
|
|
356
|
+
"""Prompt-based speech generation request."""
|
|
357
|
+
|
|
358
|
+
prompt: str = Field(description="Text to convert to speech")
|
|
359
|
+
model: str = Field(description="The model to use for speech generation")
|
|
360
|
+
voice: Optional[str] = Field(None, description="Voice identifier")
|
|
361
|
+
language: Optional[str] = Field("en", description="Language code")
|
|
362
|
+
return_result_in_response: Optional[bool] = Field(False)
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
# Result Schemas (what we return to the LLM)
|
|
366
|
+
class ToolResult(BaseModel):
|
|
367
|
+
"""Standard tool result schema."""
|
|
368
|
+
|
|
369
|
+
success: bool = Field(description="Whether the operation was successful")
|
|
370
|
+
job_id: Optional[str] = Field(None, description="Job request ID (UUID)")
|
|
371
|
+
status: Optional[JobStatus] = Field(None, description="Final job status")
|
|
372
|
+
result: Optional[str] = Field(None, description="Result text (for transcription, OCR)")
|
|
373
|
+
result_url: Optional[str] = Field(
|
|
374
|
+
None, description="Result file URL (for images, videos, audio)"
|
|
375
|
+
)
|
|
376
|
+
error: Optional[str] = Field(None, description="Error message if failed")
|
|
377
|
+
error_code: Optional[str] = Field(None, description="Machine-readable failure code")
|
|
378
|
+
retryable: Optional[bool] = Field(
|
|
379
|
+
None, description="Whether resubmitting the same job could succeed"
|
|
380
|
+
)
|
|
381
|
+
refunded: Optional[bool] = Field(None, description="Whether the job's cost was refunded")
|
|
382
|
+
price: Optional[Dict[str, Any]] = Field(None, description="Actual cost of the job")
|
|
383
|
+
results_alt_formats: Optional[Dict[str, Any]] = Field(
|
|
384
|
+
None, description="Alternative result formats (e.g. jpg, webp)"
|
|
385
|
+
)
|
|
386
|
+
prompt_boost: Optional[PromptBoost] = Field(
|
|
387
|
+
None, description="Boosted and original prompts when enhance_prompt ran"
|
|
388
|
+
)
|
|
389
|
+
metadata: Optional[Dict[str, Any]] = Field(None, description="Additional metadata")
|
|
390
|
+
in_progress: bool = Field(
|
|
391
|
+
False,
|
|
392
|
+
description="The wait ended before the job did; it is still running and job_id resumes it",
|
|
393
|
+
)
|
|
394
|
+
progress: Optional[float] = Field(None, description="Last progress seen (0-100)")
|
|
395
|
+
source_metadata: Optional[Dict[str, Any]] = Field(
|
|
396
|
+
None, description="Source title/channel/counts, when the job asked for include_metadata"
|
|
397
|
+
)
|