transcodely 0.3.18__tar.gz → 0.3.19__tar.gz

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.
Files changed (99) hide show
  1. {transcodely-0.3.18 → transcodely-0.3.19}/PKG-INFO +31 -3
  2. {transcodely-0.3.18 → transcodely-0.3.19}/README.md +30 -2
  3. {transcodely-0.3.18 → transcodely-0.3.19}/pyproject.toml +1 -1
  4. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/__init__.py +4 -0
  5. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/_transport/error_mapping.py +5 -0
  6. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/errors.py +5 -1
  7. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/videos.py +27 -0
  8. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/types.py +8 -0
  9. transcodely-0.3.19/src/transcodely/v1/app_pb2.py +139 -0
  10. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/app_pb2.pyi +12 -6
  11. transcodely-0.3.19/src/transcodely/v1/job_pb2.py +252 -0
  12. transcodely-0.3.19/src/transcodely/v1/subtitles_pb2.py +108 -0
  13. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/subtitles_pb2.pyi +18 -8
  14. transcodely-0.3.19/src/transcodely/v1/video_pb2.py +285 -0
  15. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/video_pb2.pyi +83 -14
  16. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/version.py +1 -1
  17. transcodely-0.3.18/src/transcodely/v1/app_pb2.py +0 -137
  18. transcodely-0.3.18/src/transcodely/v1/job_pb2.py +0 -252
  19. transcodely-0.3.18/src/transcodely/v1/subtitles_pb2.py +0 -104
  20. transcodely-0.3.18/src/transcodely/v1/video_pb2.py +0 -259
  21. {transcodely-0.3.18 → transcodely-0.3.19}/.gitignore +0 -0
  22. {transcodely-0.3.18 → transcodely-0.3.19}/LICENSE +0 -0
  23. {transcodely-0.3.18 → transcodely-0.3.19}/src/buf/__init__.py +0 -0
  24. {transcodely-0.3.18 → transcodely-0.3.19}/src/buf/validate/__init__.py +0 -0
  25. {transcodely-0.3.18 → transcodely-0.3.19}/src/buf/validate/validate_pb2.py +0 -0
  26. {transcodely-0.3.18 → transcodely-0.3.19}/src/buf/validate/validate_pb2.pyi +0 -0
  27. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/_codec/__init__.py +0 -0
  28. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/_codec/json_codec.py +0 -0
  29. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/_transport/__init__.py +0 -0
  30. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/_transport/headers.py +0 -0
  31. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/_transport/transport.py +0 -0
  32. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/client.py +0 -0
  33. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/pagination.py +0 -0
  34. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/py.typed +0 -0
  35. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/__init__.py +0 -0
  36. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/_helpers.py +0 -0
  37. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/api_keys.py +0 -0
  38. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/apps.py +0 -0
  39. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/billing.py +0 -0
  40. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/events.py +0 -0
  41. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/health.py +0 -0
  42. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/ingest_rules.py +0 -0
  43. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/jobs.py +0 -0
  44. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/memberships.py +0 -0
  45. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/organizations.py +0 -0
  46. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/origins.py +0 -0
  47. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/presets.py +0 -0
  48. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/users.py +0 -0
  49. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/resources/webhook_endpoints.py +0 -0
  50. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/streaming.py +0 -0
  51. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/api_key_pb2.py +0 -0
  52. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/api_key_pb2.pyi +0 -0
  53. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/billing_pb2.py +0 -0
  54. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/billing_pb2.pyi +0 -0
  55. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/codec_av1_pb2.py +0 -0
  56. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/codec_av1_pb2.pyi +0 -0
  57. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/codec_h264_pb2.py +0 -0
  58. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/codec_h264_pb2.pyi +0 -0
  59. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/codec_h265_pb2.py +0 -0
  60. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/codec_h265_pb2.pyi +0 -0
  61. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/codec_vp9_pb2.py +0 -0
  62. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/codec_vp9_pb2.pyi +0 -0
  63. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/common_pb2.py +0 -0
  64. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/common_pb2.pyi +0 -0
  65. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/content_aware_pb2.py +0 -0
  66. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/content_aware_pb2.pyi +0 -0
  67. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/drm_pb2.py +0 -0
  68. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/drm_pb2.pyi +0 -0
  69. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/hdr_pb2.py +0 -0
  70. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/hdr_pb2.pyi +0 -0
  71. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/health_pb2.py +0 -0
  72. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/health_pb2.pyi +0 -0
  73. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/ingest_rule_pb2.py +0 -0
  74. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/ingest_rule_pb2.pyi +0 -0
  75. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/job_pb2.pyi +0 -0
  76. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/media_pb2.py +0 -0
  77. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/media_pb2.pyi +0 -0
  78. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/membership_pb2.py +0 -0
  79. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/membership_pb2.pyi +0 -0
  80. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/organization_pb2.py +0 -0
  81. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/organization_pb2.pyi +0 -0
  82. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/origin_pb2.py +0 -0
  83. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/origin_pb2.pyi +0 -0
  84. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/preset_pb2.py +0 -0
  85. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/preset_pb2.pyi +0 -0
  86. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/streaming_pb2.py +0 -0
  87. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/streaming_pb2.pyi +0 -0
  88. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/thumbnails_pb2.py +0 -0
  89. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/thumbnails_pb2.pyi +0 -0
  90. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/user_pb2.py +0 -0
  91. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/user_pb2.pyi +0 -0
  92. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/watermark_pb2.py +0 -0
  93. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/watermark_pb2.pyi +0 -0
  94. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/webhook_pb2.py +0 -0
  95. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/v1/webhook_pb2.pyi +0 -0
  96. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/webhooks/__init__.py +0 -0
  97. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/webhooks/construct_event.py +0 -0
  98. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/webhooks/signature.py +0 -0
  99. {transcodely-0.3.18 → transcodely-0.3.19}/src/transcodely/webhooks/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: transcodely
3
- Version: 0.3.18
3
+ Version: 0.3.19
4
4
  Summary: Official Python SDK for Transcodely — encode video to HLS, DASH and MP4 into your own S3, GCS or R2 bucket, with DRM and signed playback.
5
5
  Project-URL: Homepage, https://www.transcodely.com
6
6
  Project-URL: Documentation, https://www.transcodely.com/docs
@@ -238,6 +238,34 @@ Or ask for them at upload time with `highlights={"enabled": True}` next to `auto
238
238
 
239
239
  Each clip is rendered by an ordinary clip job, tagged with `transcodely_kind`, `transcodely_highlight_id` and `transcodely_video_id` metadata. Metadata keys starting with `transcodely_` are reserved for the platform: a job or ingest rule that sets one is refused with `parameter_invalid` on `metadata.<key>`.
240
240
 
241
+ ## Caption translation
242
+
243
+ A hosted video with AI captions can have them translated into other languages without transcribing again. One captions-only job writes, per target language, a caption track, its transcript renditions and (on HLS) a caption rendition in the manifest; ready insights in the source language are translated too unless `include_insights=False`. Billed as the `captions_translation` fee (EUR 0.12 per source minute per language, delivered languages only):
244
+
245
+ ```python
246
+ # `source_language` is needed only when the video has several AI caption tracks.
247
+ res = client.videos.translate_captions(
248
+ id="vid_a1b2c3d4e5f6g7",
249
+ target_languages=["ger", "spa"], # ISO 639-2, up to 10
250
+ )
251
+ print(res.job_id, list(res.target_languages), res.estimated_fee_eur)
252
+ for f in res.in_flight:
253
+ print("already translating:", f.language, f.job_id) # not requested again
254
+ ```
255
+
256
+ Or ask for it at upload time with `auto_translations=["ger"]` next to `auto_captions=True`, or on a captions job with `translations` on the `generate` subtitle track. Translated tracks carry `translated_from` (the source language); translated insights entries do too. Deployments without the feature refuse it with `parameter_unsupported`.
257
+
258
+ ## Guide page
259
+
260
+ A public or unlisted hosted video with ready insights or a generated transcript can have a shareable guide page (player, insights and full transcript). `video.guide_page` is the video's own setting (`"default"` follows the app's `hosting_config.guide_pages_enabled`; `"on"` / `"off"` pin it), `video.guide_page_enabled` is the resulting effective value, and `video.guide_url` is set only when the page would render:
261
+
262
+ ```python
263
+ video = client.videos.update(id="vid_a1b2c3d4e5f6g7", guide_page="on")
264
+ print(video.guide_page_enabled, video.guide_url)
265
+ ```
266
+
267
+ `guide_page_enabled` is absent in `video.*` webhook payloads, which do not resolve the app default (`video.HasField("guide_page_enabled")` is `False` there): read `guide_page`, or fetch the video for the effective value and URL.
268
+
241
269
  ## Source retention
242
270
 
243
271
  Original source files of hosted videos are temporary. Each one is deleted when
@@ -276,7 +304,7 @@ API keys are opaque `ak_`-prefixed secrets — pass the full value shown once at
276
304
 
277
305
  ```python
278
306
  client.jobs # create / get / list / cancel / confirm / watch
279
- client.videos # upload helpers, multipart, create_from_url, get / list / update / delete / watch, get_stats / list_top_videos / get_seo_markup / generate_insights / generate_highlights
307
+ client.videos # upload helpers, multipart, create_from_url, get / list / update / delete / watch, get_stats / list_top_videos / get_seo_markup / generate_insights / generate_highlights / translate_captions
280
308
  client.presets # create / get / get_by_slug / list / update / duplicate / archive
281
309
  client.origins # create / get / list / update / validate / archive
282
310
  client.ingest_rules # create / get / list / update / delete / list_events / test / replay_event
@@ -603,7 +631,7 @@ detail, so its code is empty. `type` holds the Connect code, `invalid_argument`.
603
631
  | `ConflictError` | 409 | Idempotency conflict, slug taken |
604
632
  | `RateLimitError` | 429 | Carries `retry_after_ms` |
605
633
  | `InvalidRequestError` | 400 | Carries `errors: list[FieldViolation]` |
606
- | `PreconditionError` | 412 | Wrong state (e.g. job not cancelable) |
634
+ | `PreconditionError` | 400 (`failed_precondition`) | Wrong state (e.g. job not cancelable, `billing_past_due`) |
607
635
 
608
636
  Every error carries `request_id`, `code`, `http_status`, and `raw` for debugging.
609
637
 
@@ -201,6 +201,34 @@ Or ask for them at upload time with `highlights={"enabled": True}` next to `auto
201
201
 
202
202
  Each clip is rendered by an ordinary clip job, tagged with `transcodely_kind`, `transcodely_highlight_id` and `transcodely_video_id` metadata. Metadata keys starting with `transcodely_` are reserved for the platform: a job or ingest rule that sets one is refused with `parameter_invalid` on `metadata.<key>`.
203
203
 
204
+ ## Caption translation
205
+
206
+ A hosted video with AI captions can have them translated into other languages without transcribing again. One captions-only job writes, per target language, a caption track, its transcript renditions and (on HLS) a caption rendition in the manifest; ready insights in the source language are translated too unless `include_insights=False`. Billed as the `captions_translation` fee (EUR 0.12 per source minute per language, delivered languages only):
207
+
208
+ ```python
209
+ # `source_language` is needed only when the video has several AI caption tracks.
210
+ res = client.videos.translate_captions(
211
+ id="vid_a1b2c3d4e5f6g7",
212
+ target_languages=["ger", "spa"], # ISO 639-2, up to 10
213
+ )
214
+ print(res.job_id, list(res.target_languages), res.estimated_fee_eur)
215
+ for f in res.in_flight:
216
+ print("already translating:", f.language, f.job_id) # not requested again
217
+ ```
218
+
219
+ Or ask for it at upload time with `auto_translations=["ger"]` next to `auto_captions=True`, or on a captions job with `translations` on the `generate` subtitle track. Translated tracks carry `translated_from` (the source language); translated insights entries do too. Deployments without the feature refuse it with `parameter_unsupported`.
220
+
221
+ ## Guide page
222
+
223
+ A public or unlisted hosted video with ready insights or a generated transcript can have a shareable guide page (player, insights and full transcript). `video.guide_page` is the video's own setting (`"default"` follows the app's `hosting_config.guide_pages_enabled`; `"on"` / `"off"` pin it), `video.guide_page_enabled` is the resulting effective value, and `video.guide_url` is set only when the page would render:
224
+
225
+ ```python
226
+ video = client.videos.update(id="vid_a1b2c3d4e5f6g7", guide_page="on")
227
+ print(video.guide_page_enabled, video.guide_url)
228
+ ```
229
+
230
+ `guide_page_enabled` is absent in `video.*` webhook payloads, which do not resolve the app default (`video.HasField("guide_page_enabled")` is `False` there): read `guide_page`, or fetch the video for the effective value and URL.
231
+
204
232
  ## Source retention
205
233
 
206
234
  Original source files of hosted videos are temporary. Each one is deleted when
@@ -239,7 +267,7 @@ API keys are opaque `ak_`-prefixed secrets — pass the full value shown once at
239
267
 
240
268
  ```python
241
269
  client.jobs # create / get / list / cancel / confirm / watch
242
- client.videos # upload helpers, multipart, create_from_url, get / list / update / delete / watch, get_stats / list_top_videos / get_seo_markup / generate_insights / generate_highlights
270
+ client.videos # upload helpers, multipart, create_from_url, get / list / update / delete / watch, get_stats / list_top_videos / get_seo_markup / generate_insights / generate_highlights / translate_captions
243
271
  client.presets # create / get / get_by_slug / list / update / duplicate / archive
244
272
  client.origins # create / get / list / update / validate / archive
245
273
  client.ingest_rules # create / get / list / update / delete / list_events / test / replay_event
@@ -566,7 +594,7 @@ detail, so its code is empty. `type` holds the Connect code, `invalid_argument`.
566
594
  | `ConflictError` | 409 | Idempotency conflict, slug taken |
567
595
  | `RateLimitError` | 429 | Carries `retry_after_ms` |
568
596
  | `InvalidRequestError` | 400 | Carries `errors: list[FieldViolation]` |
569
- | `PreconditionError` | 412 | Wrong state (e.g. job not cancelable) |
597
+ | `PreconditionError` | 400 (`failed_precondition`) | Wrong state (e.g. job not cancelable, `billing_past_due`) |
570
598
 
571
599
  Every error carries `request_id`, `code`, `http_status`, and `raw` for debugging.
572
600
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "transcodely"
7
- version = "0.3.18"
7
+ version = "0.3.19"
8
8
  description = "Official Python SDK for Transcodely — encode video to HLS, DASH and MP4 into your own S3, GCS or R2 bucket, with DRM and signed playback."
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -65,6 +65,7 @@ from .types import (
65
65
  ContentAwareConfig,
66
66
  DASHConfig,
67
67
  DRMConfig,
68
+ GuidePageSetting,
68
69
  HDRConfig,
69
70
  HighlightsConfig,
70
71
  HLSConfig,
@@ -99,6 +100,7 @@ from .types import (
99
100
  TranscriptInsights,
100
101
  TranscriptOptions,
101
102
  TranscriptRendition,
103
+ TranslationInFlight,
102
104
  User,
103
105
  UserWithOrganizations,
104
106
  Video,
@@ -157,6 +159,7 @@ __all__ = [
157
159
  "EventRequest",
158
160
  "EventType",
159
161
  "FieldViolation",
162
+ "GuidePageSetting",
160
163
  "HDRConfig",
161
164
  "HLSConfig",
162
165
  "HighlightsConfig",
@@ -200,6 +203,7 @@ __all__ = [
200
203
  "TranscriptInsights",
201
204
  "TranscriptOptions",
202
205
  "TranscriptRendition",
206
+ "TranslationInFlight",
203
207
  "User",
204
208
  "UserWithOrganizations",
205
209
  "Video",
@@ -42,6 +42,11 @@ def map_http_error(*, status: int, body: Any, headers: Mapping[str, str]) -> Tra
42
42
  "raw": body,
43
43
  }
44
44
 
45
+ # Precondition failures are classified on the Connect code in the body: the
46
+ # API's connect-go transport sends failed_precondition as HTTP 400, not 412.
47
+ # 412 stays as a fallback for bodies that carry no Connect code.
48
+ if parsed.get("code") == "failed_precondition":
49
+ return PreconditionError(message, **kwargs)
45
50
  if status == 401:
46
51
  return AuthenticationError(message, **kwargs)
47
52
  if status == 403:
@@ -91,7 +91,11 @@ class InvalidRequestError(TranscodelyError):
91
91
 
92
92
 
93
93
  class PreconditionError(TranscodelyError):
94
- """412 — preconditions not met (e.g. job not cancelable in current state)."""
94
+ """Connect code ``failed_precondition`` (HTTP 400 on the wire).
95
+
96
+ The request is valid but the resource or account is in the wrong state, e.g. a
97
+ job that is not cancelable, or a billing refusal such as ``billing_past_due``.
98
+ """
95
99
 
96
100
 
97
101
  class WebhookError(TranscodelyError):
@@ -220,3 +220,30 @@ class Videos:
220
220
  _SERVICE, "GenerateHighlights", req, video_pb2.GenerateHighlightsResponse()
221
221
  ).highlights
222
222
  )
223
+
224
+ def translate_captions(self, **kwargs: Any) -> video_pb2.TranslateCaptionsResponse:
225
+ """Translate a hosted video's existing AI captions into other languages.
226
+
227
+ Pass ``id`` (the ``vid_...`` video, required) and ``target_languages``
228
+ (ISO 639-2 codes, 1 to 10, distinct), plus optional ``source_language``
229
+ (needed only when the video has several AI caption tracks),
230
+ ``include_insights`` (default ``True``: ready insights in the source
231
+ language are translated too and appear as one more ``video.insights``
232
+ entry per language) and ``app_id``. Creates one captions-only job on
233
+ the video that writes, per target language, a caption track, its
234
+ transcript renditions and (on HLS) a caption rendition in the manifest,
235
+ without transcribing again.
236
+
237
+ The response names the job (``job_id``), the normalized
238
+ ``source_language`` and ``target_languages``, ``estimated_fee_eur`` and
239
+ ``in_flight``: targets an earlier, still-running job already carries,
240
+ which are not requested again. Billed as the ``captions_translation``
241
+ fee, EUR 0.12 per source minute per language, only for languages
242
+ actually delivered. A video without AI captions is refused with
243
+ failed_precondition (code ``captions_required``); deployments without
244
+ the feature refuse it with ``parameter_unsupported``.
245
+ """
246
+ req = fill_from_dict(video_pb2.TranslateCaptionsRequest(), kwargs)
247
+ return self._t.unary(
248
+ _SERVICE, "TranslateCaptions", req, video_pb2.TranslateCaptionsResponse()
249
+ )
@@ -423,12 +423,16 @@ from transcodely.v1.video_pb2 import (
423
423
  GetUsageResponse,
424
424
  GetVideoRequest,
425
425
  GetVideoResponse,
426
+ GuidePageSetting,
426
427
  HighlightsConfig,
427
428
  ListTopVideosRequest,
428
429
  ListTopVideosResponse,
429
430
  ListVideosRequest,
430
431
  ListVideosResponse,
431
432
  TopVideo,
433
+ TranslateCaptionsRequest,
434
+ TranslateCaptionsResponse,
435
+ TranslationInFlight,
432
436
  UpdateVideoRequest,
433
437
  UpdateVideoResponse,
434
438
  UploadPart,
@@ -633,6 +637,7 @@ __all__ = [
633
637
  "GetUserResponse",
634
638
  "GetVideoRequest",
635
639
  "GetVideoResponse",
640
+ "GuidePageSetting",
636
641
  "H264Options",
637
642
  "H265Options",
638
643
  "HDRConfig",
@@ -776,6 +781,9 @@ __all__ = [
776
781
  "TranscriptOptions",
777
782
  "TranscriptRendition",
778
783
  "TranscriptStyle",
784
+ "TranslateCaptionsRequest",
785
+ "TranslateCaptionsResponse",
786
+ "TranslationInFlight",
779
787
  "TrustTier",
780
788
  "UpdateAppRequest",
781
789
  "UpdateAppResponse",
@@ -0,0 +1,139 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: transcodely/v1/app.proto
5
+ # Protobuf Python Version: 5.28.3
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 28,
16
+ 3,
17
+ '',
18
+ 'transcodely/v1/app.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
27
+ from transcodely.v1 import common_pb2 as transcodely_dot_v1_dot_common__pb2
28
+
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18transcodely/v1/app.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1btranscodely/v1/common.proto\"\xa8\x07\n\x03\x41pp\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12%\n\x0b\x64\x65scription\x18\x04 \x01(\tH\x00R\x0b\x64\x65scription\x88\x01\x01\x12\x31\n\x06status\x18\x06 \x01(\x0e\x32\x19.transcodely.v1.AppStatusR\x06status\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12@\n\x0b\x61rchived_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\narchivedAt\x88\x01\x01\x12,\n\x0fhosting_enabled\x18\n \x01(\x08H\x02R\x0ehostingEnabled\x88\x01\x01\x12*\n\x0ehosting_status\x18\x0b \x01(\tH\x03R\rhostingStatus\x88\x01\x01\x12&\n\x0c\x63\x64n_hostname\x18\x0c \x01(\tH\x04R\x0b\x63\x64nHostname\x88\x01\x01\x12I\n\x0ehosting_config\x18\r \x01(\x0b\x32\x1d.transcodely.v1.HostingConfigH\x05R\rhostingConfig\x88\x01\x01\x12\x16\n\x06object\x18\x0e \x01(\tR\x06object\x12:\n\x17monthly_spend_limit_eur\x18\x0f \x01(\x01H\x06R\x14monthlySpendLimitEur\x88\x01\x01\x12\x46\n\rplayer_config\x18\x10 \x01(\x0b\x32\x1c.transcodely.v1.PlayerConfigH\x07R\x0cplayerConfig\x88\x01\x01\x12.\n\x10\x63\x61ption_glossary\x18\x11 \x01(\tH\x08R\x0f\x63\x61ptionGlossary\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x0e\n\x0c_archived_atB\x12\n\x10_hosting_enabledB\x11\n\x0f_hosting_statusB\x0f\n\r_cdn_hostnameB\x11\n\x0f_hosting_configB\x1a\n\x18_monthly_spend_limit_eurB\x10\n\x0e_player_configB\x13\n\x11_caption_glossaryJ\x04\x08\x05\x10\x06R\x07webhook\"Z\n\x0cPlayerConfig\x12=\n\x08\x63\x61ptions\x18\x01 \x01(\x0b\x32\x1c.transcodely.v1.CaptionStyleH\x00R\x08\x63\x61ptions\x88\x01\x01\x42\x0b\n\t_captions\"\xf0\x02\n\x0c\x43\x61ptionStyle\x12K\n\x10\x62\x61\x63kground_color\x18\x01 \x01(\tB\x1b\xbaH\x18r\x16\x32\x14^(#[0-9a-fA-F]{6})?$H\x00R\x0f\x62\x61\x63kgroundColor\x88\x01\x01\x12K\n\x12\x62\x61\x63kground_opacity\x18\x02 \x01(\x01\x42\x17\xbaH\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00\xf0?)\x00\x00\x00\x00\x00\x00\x00\x00H\x01R\x11\x62\x61\x63kgroundOpacity\x88\x01\x01\x12?\n\ntext_color\x18\x03 \x01(\tB\x1b\xbaH\x18r\x16\x32\x14^(#[0-9a-fA-F]{6})?$H\x02R\ttextColor\x88\x01\x01\x12;\n\nfont_scale\x18\x04 \x01(\x01\x42\x17\xbaH\x14\x12\x12\x19\x00\x00\x00\x00\x00\x00\x00@)\x00\x00\x00\x00\x00\x00\xe0?H\x03R\tfontScale\x88\x01\x01\x42\x13\n\x11_background_colorB\x15\n\x13_background_opacityB\r\n\x0b_text_colorB\r\n\x0b_font_scale\"\x8e\x01\n\x19UpdatePlayerConfigRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\x12\x41\n\rplayer_config\x18\x02 \x01(\x0b\x32\x1c.transcodely.v1.PlayerConfigR\x0cplayerConfig\"C\n\x1aUpdatePlayerConfigResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\"\xfa\x01\n\x10\x43reateAppRequest\x12\x35\n\x06org_id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^org_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x05orgId\x12 \n\x04name\x18\x02 \x01(\tB\x0c\xbaH\tr\x04\x10\x01\x18<\xc8\x01\x01R\x04name\x12/\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\xf4\x03H\x00R\x0b\x64\x65scription\x88\x01\x01\x12*\n\x0e\x65nable_hosting\x18\x05 \x01(\x08H\x01R\renableHosting\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x11\n\x0f_enable_hostingJ\x04\x08\x04\x10\x05R\x07webhook\"P\n\x11\x43reateAppResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61ppJ\x04\x08\x02\x10\x03R\x0ewebhook_secret\"?\n\rGetAppRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\"7\n\x0eGetAppResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\"\x8e\x02\n\x10UpdateAppRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\x12\"\n\x04name\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18<H\x00R\x04name\x88\x01\x01\x12/\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\x18\xf4\x03H\x01R\x0b\x64\x65scription\x88\x01\x01\x12\x38\n\x10\x63\x61ption_glossary\x18\x05 \x01(\tB\x08\xbaH\x05r\x03\x18\xa0\x1fH\x02R\x0f\x63\x61ptionGlossary\x88\x01\x01\x42\x07\n\x05_nameB\x0e\n\x0c_descriptionB\x13\n\x11_caption_glossaryJ\x04\x08\x04\x10\x05R\x07webhook\"P\n\x11UpdateAppResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61ppJ\x04\x08\x02\x10\x03R\x0ewebhook_secret\"\xb6\x01\n\x0fListAppsRequest\x12\x35\n\x06org_id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^org_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x05orgId\x12\x41\n\npagination\x18\x02 \x01(\x0b\x32!.transcodely.v1.PaginationRequestR\npagination\x12)\n\x10include_archived\x18\x03 \x01(\x08R\x0fincludeArchived\"\x7f\n\x10ListAppsResponse\x12\'\n\x04\x61pps\x18\x01 \x03(\x0b\x32\x13.transcodely.v1.AppR\x04\x61pps\x12\x42\n\npagination\x18\x02 \x01(\x0b\x32\".transcodely.v1.PaginationResponseR\npagination\"C\n\x11\x41rchiveAppRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\";\n\x12\x41rchiveAppResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\"F\n\x14\x45nableHostingRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\">\n\x15\x45nableHostingResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\"\xfe\x03\n\rHostingConfig\x12\x32\n\x12\x64\x65\x66\x61ult_visibility\x18\x01 \x01(\tH\x00R\x11\x64\x65\x66\x61ultVisibility\x88\x01\x01\x12\x36\n\x15max_upload_size_bytes\x18\x02 \x01(\x03H\x01R\x12maxUploadSizeBytes\x88\x01\x01\x12\x30\n\x14\x63ors_allowed_origins\x18\x03 \x03(\tR\x12\x63orsAllowedOrigins\x12\\\n\x15\x61uto_profile_defaults\x18\x04 \x01(\x0b\x32#.transcodely.v1.AutoProfileDefaultsH\x02R\x13\x61utoProfileDefaults\x88\x01\x01\x12<\n\x18\x64\x65lete_source_after_days\x18\x05 \x01(\x05H\x03R\x15\x64\x65leteSourceAfterDays\x88\x01\x01\x12\x33\n\x13guide_pages_enabled\x18\x06 \x01(\x08H\x04R\x11guidePagesEnabled\x88\x01\x01\x42\x15\n\x13_default_visibilityB\x18\n\x16_max_upload_size_bytesB\x18\n\x16_auto_profile_defaultsB\x1b\n\x19_delete_source_after_daysB\x16\n\x14_guide_pages_enabled\"\x96\x02\n\x13\x41utoProfileDefaults\x12\x1b\n\x06\x66ormat\x18\x01 \x01(\tH\x00R\x06\x66ormat\x88\x01\x01\x12\x19\n\x05\x63odec\x18\x02 \x01(\tH\x01R\x05\x63odec\x88\x01\x01\x12*\n\x0emax_resolution\x18\x03 \x01(\tH\x02R\rmaxResolution\x88\x01\x01\x12&\n\x0cquality_tier\x18\x04 \x01(\tH\x03R\x0bqualityTier\x88\x01\x01\x12(\n\rencoding_mode\x18\x05 \x01(\tH\x04R\x0c\x65ncodingMode\x88\x01\x01\x42\t\n\x07_formatB\x08\n\x06_codecB\x11\n\x0f_max_resolutionB\x0f\n\r_quality_tierB\x10\n\x0e_encoding_mode\"\x92\x01\n\x1aUpdateHostingConfigRequest\x12.\n\x02id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\x12\x44\n\x0ehosting_config\x18\x02 \x01(\x0b\x32\x1d.transcodely.v1.HostingConfigR\rhostingConfig\"D\n\x1bUpdateHostingConfigResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\"\xc1\x01\n\x17UpdateSpendLimitRequest\x12\x35\n\x06\x61pp_id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x05\x61ppId\x12S\n\x17monthly_spend_limit_eur\x18\x02 \x01(\x01\x42\x17\xbaH\x14\x12\x12\x19\x85\xeb\xff\x1f_\xa0\x02\x42!\x00\x00\x00\x00\x00\x00\x00\x00H\x00R\x14monthlySpendLimitEur\x88\x01\x01\x42\x1a\n\x18_monthly_spend_limit_eur\"A\n\x18UpdateSpendLimitResponse\x12%\n\x03\x61pp\x18\x01 \x01(\x0b\x32\x13.transcodely.v1.AppR\x03\x61pp\"H\n\x0fGetSpendRequest\x12\x35\n\x06\x61pp_id\x18\x01 \x01(\tB\x1e\xbaH\x1br\x16\x32\x14^app_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x05\x61ppId\"\xef\x02\n\x10GetSpendResponse\x12=\n\x0cperiod_start\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bperiodStart\x12\x39\n\nperiod_end\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tperiodEnd\x12\x1b\n\tspent_eur\x18\x03 \x01(\x01R\x08spentEur\x12:\n\x17monthly_spend_limit_eur\x18\x04 \x01(\x01H\x00R\x14monthlySpendLimitEur\x88\x01\x01\x12\x1a\n\x08\x63urrency\x18\x05 \x01(\tR\x08\x63urrency\x12+\n\x11warning_triggered\x18\x06 \x01(\x08R\x10warningTriggered\x12#\n\rlimit_reached\x18\x07 \x01(\x08R\x0climitReachedB\x1a\n\x18_monthly_spend_limit_eur\"W\n\x11GetPricingRequest\x12\x37\n\x06\x61pp_id\x18\x01 \x01(\tB\x1b\xbaH\x18r\x16\x32\x14^app_[a-zA-Z0-9_-]+$H\x00R\x05\x61ppId\x88\x01\x01\x42\t\n\x07_app_id\"\x93\x03\n\x0cPricingEntry\x12\x1b\n\trule_type\x18\x01 \x01(\tR\x08ruleType\x12\x19\n\x08rule_key\x18\x02 \x01(\tR\x07ruleKey\x12\x14\n\x05label\x18\x03 \x01(\tR\x05label\x12\x1f\n\x0bgroup_label\x18\x04 \x01(\tR\ngroupLabel\x12\x12\n\x04unit\x18\x05 \x01(\tR\x04unit\x12\"\n\nbase_price\x18\x06 \x01(\x01H\x00R\tbasePrice\x88\x01\x01\x12#\n\nmultiplier\x18\x07 \x01(\x01H\x01R\nmultiplier\x88\x01\x01\x12\x16\n\x06\x63ustom\x18\x08 \x01(\x08R\x06\x63ustom\x12+\n\x0flist_base_price\x18\t \x01(\x01H\x02R\rlistBasePrice\x88\x01\x01\x12,\n\x0flist_multiplier\x18\n \x01(\x01H\x03R\x0elistMultiplier\x88\x01\x01\x42\r\n\x0b_base_priceB\r\n\x0b_multiplierB\x12\n\x10_list_base_priceB\x12\n\x10_list_multiplier\"\x7f\n\x12GetPricingResponse\x12\x15\n\x06\x61pp_id\x18\x01 \x01(\tR\x05\x61ppId\x12\x1a\n\x08\x63urrency\x18\x02 \x01(\tR\x08\x63urrency\x12\x36\n\x07\x65ntries\x18\x03 \x03(\x0b\x32\x1c.transcodely.v1.PricingEntryR\x07\x65ntries*q\n\tAppStatus\x12\x1a\n\x16\x41PP_STATUS_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41PP_STATUS_ACTIVE\x10\x01\x12\x17\n\x13\x41PP_STATUS_ARCHIVED\x10\x02\x12\x18\n\x14\x41PP_STATUS_SUSPENDED\x10\x03\x32\xd3\x07\n\nAppService\x12M\n\x06\x43reate\x12 .transcodely.v1.CreateAppRequest\x1a!.transcodely.v1.CreateAppResponse\x12\x44\n\x03Get\x12\x1d.transcodely.v1.GetAppRequest\x1a\x1e.transcodely.v1.GetAppResponse\x12M\n\x06Update\x12 .transcodely.v1.UpdateAppRequest\x1a!.transcodely.v1.UpdateAppResponse\x12I\n\x04List\x12\x1f.transcodely.v1.ListAppsRequest\x1a .transcodely.v1.ListAppsResponse\x12P\n\x07\x41rchive\x12!.transcodely.v1.ArchiveAppRequest\x1a\".transcodely.v1.ArchiveAppResponse\x12\\\n\rEnableHosting\x12$.transcodely.v1.EnableHostingRequest\x1a%.transcodely.v1.EnableHostingResponse\x12n\n\x13UpdateHostingConfig\x12*.transcodely.v1.UpdateHostingConfigRequest\x1a+.transcodely.v1.UpdateHostingConfigResponse\x12k\n\x12UpdatePlayerConfig\x12).transcodely.v1.UpdatePlayerConfigRequest\x1a*.transcodely.v1.UpdatePlayerConfigResponse\x12\x65\n\x10UpdateSpendLimit\x12\'.transcodely.v1.UpdateSpendLimitRequest\x1a(.transcodely.v1.UpdateSpendLimitResponse\x12M\n\x08GetSpend\x12\x1f.transcodely.v1.GetSpendRequest\x1a .transcodely.v1.GetSpendResponse\x12S\n\nGetPricing\x12!.transcodely.v1.GetPricingRequest\x1a\".transcodely.v1.GetPricingResponseb\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.app_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ DESCRIPTOR._loaded_options = None
37
+ _globals['_CAPTIONSTYLE'].fields_by_name['background_color']._loaded_options = None
38
+ _globals['_CAPTIONSTYLE'].fields_by_name['background_color']._serialized_options = b'\272H\030r\0262\024^(#[0-9a-fA-F]{6})?$'
39
+ _globals['_CAPTIONSTYLE'].fields_by_name['background_opacity']._loaded_options = None
40
+ _globals['_CAPTIONSTYLE'].fields_by_name['background_opacity']._serialized_options = b'\272H\024\022\022\031\000\000\000\000\000\000\360?)\000\000\000\000\000\000\000\000'
41
+ _globals['_CAPTIONSTYLE'].fields_by_name['text_color']._loaded_options = None
42
+ _globals['_CAPTIONSTYLE'].fields_by_name['text_color']._serialized_options = b'\272H\030r\0262\024^(#[0-9a-fA-F]{6})?$'
43
+ _globals['_CAPTIONSTYLE'].fields_by_name['font_scale']._loaded_options = None
44
+ _globals['_CAPTIONSTYLE'].fields_by_name['font_scale']._serialized_options = b'\272H\024\022\022\031\000\000\000\000\000\000\000@)\000\000\000\000\000\000\340?'
45
+ _globals['_UPDATEPLAYERCONFIGREQUEST'].fields_by_name['id']._loaded_options = None
46
+ _globals['_UPDATEPLAYERCONFIGREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
47
+ _globals['_CREATEAPPREQUEST'].fields_by_name['org_id']._loaded_options = None
48
+ _globals['_CREATEAPPREQUEST'].fields_by_name['org_id']._serialized_options = b'\272H\033r\0262\024^org_[a-zA-Z0-9_-]+$\310\001\001'
49
+ _globals['_CREATEAPPREQUEST'].fields_by_name['name']._loaded_options = None
50
+ _globals['_CREATEAPPREQUEST'].fields_by_name['name']._serialized_options = b'\272H\tr\004\020\001\030<\310\001\001'
51
+ _globals['_CREATEAPPREQUEST'].fields_by_name['description']._loaded_options = None
52
+ _globals['_CREATEAPPREQUEST'].fields_by_name['description']._serialized_options = b'\272H\005r\003\030\364\003'
53
+ _globals['_GETAPPREQUEST'].fields_by_name['id']._loaded_options = None
54
+ _globals['_GETAPPREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
55
+ _globals['_UPDATEAPPREQUEST'].fields_by_name['id']._loaded_options = None
56
+ _globals['_UPDATEAPPREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
57
+ _globals['_UPDATEAPPREQUEST'].fields_by_name['name']._loaded_options = None
58
+ _globals['_UPDATEAPPREQUEST'].fields_by_name['name']._serialized_options = b'\272H\006r\004\020\001\030<'
59
+ _globals['_UPDATEAPPREQUEST'].fields_by_name['description']._loaded_options = None
60
+ _globals['_UPDATEAPPREQUEST'].fields_by_name['description']._serialized_options = b'\272H\005r\003\030\364\003'
61
+ _globals['_UPDATEAPPREQUEST'].fields_by_name['caption_glossary']._loaded_options = None
62
+ _globals['_UPDATEAPPREQUEST'].fields_by_name['caption_glossary']._serialized_options = b'\272H\005r\003\030\240\037'
63
+ _globals['_LISTAPPSREQUEST'].fields_by_name['org_id']._loaded_options = None
64
+ _globals['_LISTAPPSREQUEST'].fields_by_name['org_id']._serialized_options = b'\272H\033r\0262\024^org_[a-zA-Z0-9_-]+$\310\001\001'
65
+ _globals['_ARCHIVEAPPREQUEST'].fields_by_name['id']._loaded_options = None
66
+ _globals['_ARCHIVEAPPREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
67
+ _globals['_ENABLEHOSTINGREQUEST'].fields_by_name['id']._loaded_options = None
68
+ _globals['_ENABLEHOSTINGREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
69
+ _globals['_UPDATEHOSTINGCONFIGREQUEST'].fields_by_name['id']._loaded_options = None
70
+ _globals['_UPDATEHOSTINGCONFIGREQUEST'].fields_by_name['id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
71
+ _globals['_UPDATESPENDLIMITREQUEST'].fields_by_name['app_id']._loaded_options = None
72
+ _globals['_UPDATESPENDLIMITREQUEST'].fields_by_name['app_id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
73
+ _globals['_UPDATESPENDLIMITREQUEST'].fields_by_name['monthly_spend_limit_eur']._loaded_options = None
74
+ _globals['_UPDATESPENDLIMITREQUEST'].fields_by_name['monthly_spend_limit_eur']._serialized_options = b'\272H\024\022\022\031\205\353\377\037_\240\002B!\000\000\000\000\000\000\000\000'
75
+ _globals['_GETSPENDREQUEST'].fields_by_name['app_id']._loaded_options = None
76
+ _globals['_GETSPENDREQUEST'].fields_by_name['app_id']._serialized_options = b'\272H\033r\0262\024^app_[a-zA-Z0-9_-]+$\310\001\001'
77
+ _globals['_GETPRICINGREQUEST'].fields_by_name['app_id']._loaded_options = None
78
+ _globals['_GETPRICINGREQUEST'].fields_by_name['app_id']._serialized_options = b'\272H\030r\0262\024^app_[a-zA-Z0-9_-]+$'
79
+ _globals['_APPSTATUS']._serialized_start=5487
80
+ _globals['_APPSTATUS']._serialized_end=5600
81
+ _globals['_APP']._serialized_start=136
82
+ _globals['_APP']._serialized_end=1072
83
+ _globals['_PLAYERCONFIG']._serialized_start=1074
84
+ _globals['_PLAYERCONFIG']._serialized_end=1164
85
+ _globals['_CAPTIONSTYLE']._serialized_start=1167
86
+ _globals['_CAPTIONSTYLE']._serialized_end=1535
87
+ _globals['_UPDATEPLAYERCONFIGREQUEST']._serialized_start=1538
88
+ _globals['_UPDATEPLAYERCONFIGREQUEST']._serialized_end=1680
89
+ _globals['_UPDATEPLAYERCONFIGRESPONSE']._serialized_start=1682
90
+ _globals['_UPDATEPLAYERCONFIGRESPONSE']._serialized_end=1749
91
+ _globals['_CREATEAPPREQUEST']._serialized_start=1752
92
+ _globals['_CREATEAPPREQUEST']._serialized_end=2002
93
+ _globals['_CREATEAPPRESPONSE']._serialized_start=2004
94
+ _globals['_CREATEAPPRESPONSE']._serialized_end=2084
95
+ _globals['_GETAPPREQUEST']._serialized_start=2086
96
+ _globals['_GETAPPREQUEST']._serialized_end=2149
97
+ _globals['_GETAPPRESPONSE']._serialized_start=2151
98
+ _globals['_GETAPPRESPONSE']._serialized_end=2206
99
+ _globals['_UPDATEAPPREQUEST']._serialized_start=2209
100
+ _globals['_UPDATEAPPREQUEST']._serialized_end=2479
101
+ _globals['_UPDATEAPPRESPONSE']._serialized_start=2481
102
+ _globals['_UPDATEAPPRESPONSE']._serialized_end=2561
103
+ _globals['_LISTAPPSREQUEST']._serialized_start=2564
104
+ _globals['_LISTAPPSREQUEST']._serialized_end=2746
105
+ _globals['_LISTAPPSRESPONSE']._serialized_start=2748
106
+ _globals['_LISTAPPSRESPONSE']._serialized_end=2875
107
+ _globals['_ARCHIVEAPPREQUEST']._serialized_start=2877
108
+ _globals['_ARCHIVEAPPREQUEST']._serialized_end=2944
109
+ _globals['_ARCHIVEAPPRESPONSE']._serialized_start=2946
110
+ _globals['_ARCHIVEAPPRESPONSE']._serialized_end=3005
111
+ _globals['_ENABLEHOSTINGREQUEST']._serialized_start=3007
112
+ _globals['_ENABLEHOSTINGREQUEST']._serialized_end=3077
113
+ _globals['_ENABLEHOSTINGRESPONSE']._serialized_start=3079
114
+ _globals['_ENABLEHOSTINGRESPONSE']._serialized_end=3141
115
+ _globals['_HOSTINGCONFIG']._serialized_start=3144
116
+ _globals['_HOSTINGCONFIG']._serialized_end=3654
117
+ _globals['_AUTOPROFILEDEFAULTS']._serialized_start=3657
118
+ _globals['_AUTOPROFILEDEFAULTS']._serialized_end=3935
119
+ _globals['_UPDATEHOSTINGCONFIGREQUEST']._serialized_start=3938
120
+ _globals['_UPDATEHOSTINGCONFIGREQUEST']._serialized_end=4084
121
+ _globals['_UPDATEHOSTINGCONFIGRESPONSE']._serialized_start=4086
122
+ _globals['_UPDATEHOSTINGCONFIGRESPONSE']._serialized_end=4154
123
+ _globals['_UPDATESPENDLIMITREQUEST']._serialized_start=4157
124
+ _globals['_UPDATESPENDLIMITREQUEST']._serialized_end=4350
125
+ _globals['_UPDATESPENDLIMITRESPONSE']._serialized_start=4352
126
+ _globals['_UPDATESPENDLIMITRESPONSE']._serialized_end=4417
127
+ _globals['_GETSPENDREQUEST']._serialized_start=4419
128
+ _globals['_GETSPENDREQUEST']._serialized_end=4491
129
+ _globals['_GETSPENDRESPONSE']._serialized_start=4494
130
+ _globals['_GETSPENDRESPONSE']._serialized_end=4861
131
+ _globals['_GETPRICINGREQUEST']._serialized_start=4863
132
+ _globals['_GETPRICINGREQUEST']._serialized_end=4950
133
+ _globals['_PRICINGENTRY']._serialized_start=4953
134
+ _globals['_PRICINGENTRY']._serialized_end=5356
135
+ _globals['_GETPRICINGRESPONSE']._serialized_start=5358
136
+ _globals['_GETPRICINGRESPONSE']._serialized_end=5485
137
+ _globals['_APPSERVICE']._serialized_start=5603
138
+ _globals['_APPSERVICE']._serialized_end=6582
139
+ # @@protoc_insertion_point(module_scope)
@@ -21,7 +21,7 @@ APP_STATUS_ARCHIVED: AppStatus
21
21
  APP_STATUS_SUSPENDED: AppStatus
22
22
 
23
23
  class App(_message.Message):
24
- __slots__ = ("id", "org_id", "name", "description", "status", "created_at", "updated_at", "archived_at", "hosting_enabled", "hosting_status", "cdn_hostname", "hosting_config", "object", "monthly_spend_limit_eur", "player_config")
24
+ __slots__ = ("id", "org_id", "name", "description", "status", "created_at", "updated_at", "archived_at", "hosting_enabled", "hosting_status", "cdn_hostname", "hosting_config", "object", "monthly_spend_limit_eur", "player_config", "caption_glossary")
25
25
  ID_FIELD_NUMBER: _ClassVar[int]
26
26
  ORG_ID_FIELD_NUMBER: _ClassVar[int]
27
27
  NAME_FIELD_NUMBER: _ClassVar[int]
@@ -37,6 +37,7 @@ class App(_message.Message):
37
37
  OBJECT_FIELD_NUMBER: _ClassVar[int]
38
38
  MONTHLY_SPEND_LIMIT_EUR_FIELD_NUMBER: _ClassVar[int]
39
39
  PLAYER_CONFIG_FIELD_NUMBER: _ClassVar[int]
40
+ CAPTION_GLOSSARY_FIELD_NUMBER: _ClassVar[int]
40
41
  id: str
41
42
  org_id: str
42
43
  name: str
@@ -52,7 +53,8 @@ class App(_message.Message):
52
53
  object: str
53
54
  monthly_spend_limit_eur: float
54
55
  player_config: PlayerConfig
55
- def __init__(self, id: _Optional[str] = ..., org_id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., status: _Optional[_Union[AppStatus, str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., archived_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., hosting_enabled: bool = ..., hosting_status: _Optional[str] = ..., cdn_hostname: _Optional[str] = ..., hosting_config: _Optional[_Union[HostingConfig, _Mapping]] = ..., object: _Optional[str] = ..., monthly_spend_limit_eur: _Optional[float] = ..., player_config: _Optional[_Union[PlayerConfig, _Mapping]] = ...) -> None: ...
56
+ caption_glossary: str
57
+ def __init__(self, id: _Optional[str] = ..., org_id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., status: _Optional[_Union[AppStatus, str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., archived_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., hosting_enabled: bool = ..., hosting_status: _Optional[str] = ..., cdn_hostname: _Optional[str] = ..., hosting_config: _Optional[_Union[HostingConfig, _Mapping]] = ..., object: _Optional[str] = ..., monthly_spend_limit_eur: _Optional[float] = ..., player_config: _Optional[_Union[PlayerConfig, _Mapping]] = ..., caption_glossary: _Optional[str] = ...) -> None: ...
56
58
 
57
59
  class PlayerConfig(_message.Message):
58
60
  __slots__ = ("captions",)
@@ -117,14 +119,16 @@ class GetAppResponse(_message.Message):
117
119
  def __init__(self, app: _Optional[_Union[App, _Mapping]] = ...) -> None: ...
118
120
 
119
121
  class UpdateAppRequest(_message.Message):
120
- __slots__ = ("id", "name", "description")
122
+ __slots__ = ("id", "name", "description", "caption_glossary")
121
123
  ID_FIELD_NUMBER: _ClassVar[int]
122
124
  NAME_FIELD_NUMBER: _ClassVar[int]
123
125
  DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
126
+ CAPTION_GLOSSARY_FIELD_NUMBER: _ClassVar[int]
124
127
  id: str
125
128
  name: str
126
129
  description: str
127
- def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ...) -> None: ...
130
+ caption_glossary: str
131
+ def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., caption_glossary: _Optional[str] = ...) -> None: ...
128
132
 
129
133
  class UpdateAppResponse(_message.Message):
130
134
  __slots__ = ("app",)
@@ -175,18 +179,20 @@ class EnableHostingResponse(_message.Message):
175
179
  def __init__(self, app: _Optional[_Union[App, _Mapping]] = ...) -> None: ...
176
180
 
177
181
  class HostingConfig(_message.Message):
178
- __slots__ = ("default_visibility", "max_upload_size_bytes", "cors_allowed_origins", "auto_profile_defaults", "delete_source_after_days")
182
+ __slots__ = ("default_visibility", "max_upload_size_bytes", "cors_allowed_origins", "auto_profile_defaults", "delete_source_after_days", "guide_pages_enabled")
179
183
  DEFAULT_VISIBILITY_FIELD_NUMBER: _ClassVar[int]
180
184
  MAX_UPLOAD_SIZE_BYTES_FIELD_NUMBER: _ClassVar[int]
181
185
  CORS_ALLOWED_ORIGINS_FIELD_NUMBER: _ClassVar[int]
182
186
  AUTO_PROFILE_DEFAULTS_FIELD_NUMBER: _ClassVar[int]
183
187
  DELETE_SOURCE_AFTER_DAYS_FIELD_NUMBER: _ClassVar[int]
188
+ GUIDE_PAGES_ENABLED_FIELD_NUMBER: _ClassVar[int]
184
189
  default_visibility: str
185
190
  max_upload_size_bytes: int
186
191
  cors_allowed_origins: _containers.RepeatedScalarFieldContainer[str]
187
192
  auto_profile_defaults: AutoProfileDefaults
188
193
  delete_source_after_days: int
189
- def __init__(self, default_visibility: _Optional[str] = ..., max_upload_size_bytes: _Optional[int] = ..., cors_allowed_origins: _Optional[_Iterable[str]] = ..., auto_profile_defaults: _Optional[_Union[AutoProfileDefaults, _Mapping]] = ..., delete_source_after_days: _Optional[int] = ...) -> None: ...
194
+ guide_pages_enabled: bool
195
+ def __init__(self, default_visibility: _Optional[str] = ..., max_upload_size_bytes: _Optional[int] = ..., cors_allowed_origins: _Optional[_Iterable[str]] = ..., auto_profile_defaults: _Optional[_Union[AutoProfileDefaults, _Mapping]] = ..., delete_source_after_days: _Optional[int] = ..., guide_pages_enabled: bool = ...) -> None: ...
190
196
 
191
197
  class AutoProfileDefaults(_message.Message):
192
198
  __slots__ = ("format", "codec", "max_resolution", "quality_tier", "encoding_mode")