transcodely 0.2.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.
Files changed (86) hide show
  1. buf/__init__.py +0 -0
  2. buf/validate/__init__.py +0 -0
  3. buf/validate/validate_pb2.py +469 -0
  4. buf/validate/validate_pb2.pyi +651 -0
  5. transcodely/__init__.py +175 -0
  6. transcodely/_codec/__init__.py +0 -0
  7. transcodely/_codec/json_codec.py +193 -0
  8. transcodely/_transport/__init__.py +0 -0
  9. transcodely/_transport/error_mapping.py +102 -0
  10. transcodely/_transport/headers.py +31 -0
  11. transcodely/_transport/transport.py +312 -0
  12. transcodely/client.py +160 -0
  13. transcodely/errors.py +115 -0
  14. transcodely/pagination.py +53 -0
  15. transcodely/py.typed +0 -0
  16. transcodely/resources/__init__.py +0 -0
  17. transcodely/resources/_helpers.py +29 -0
  18. transcodely/resources/api_keys.py +48 -0
  19. transcodely/resources/apps.py +59 -0
  20. transcodely/resources/events.py +118 -0
  21. transcodely/resources/health.py +19 -0
  22. transcodely/resources/jobs.py +120 -0
  23. transcodely/resources/memberships.py +54 -0
  24. transcodely/resources/organizations.py +73 -0
  25. transcodely/resources/origins.py +55 -0
  26. transcodely/resources/presets.py +63 -0
  27. transcodely/resources/users.py +46 -0
  28. transcodely/resources/videos.py +114 -0
  29. transcodely/resources/webhook_endpoints.py +242 -0
  30. transcodely/streaming.py +47 -0
  31. transcodely/types.py +570 -0
  32. transcodely/v1/api_key_pb2.py +69 -0
  33. transcodely/v1/api_key_pb2.pyi +97 -0
  34. transcodely/v1/app_pb2.py +107 -0
  35. transcodely/v1/app_pb2.pyi +219 -0
  36. transcodely/v1/codec_av1_pb2.py +55 -0
  37. transcodely/v1/codec_av1_pb2.pyi +34 -0
  38. transcodely/v1/codec_h264_pb2.py +71 -0
  39. transcodely/v1/codec_h264_pb2.pyi +44 -0
  40. transcodely/v1/codec_h265_pb2.py +69 -0
  41. transcodely/v1/codec_h265_pb2.pyi +42 -0
  42. transcodely/v1/codec_vp9_pb2.py +57 -0
  43. transcodely/v1/codec_vp9_pb2.pyi +30 -0
  44. transcodely/v1/common_pb2.py +67 -0
  45. transcodely/v1/common_pb2.pyi +171 -0
  46. transcodely/v1/content_aware_pb2.py +56 -0
  47. transcodely/v1/content_aware_pb2.pyi +51 -0
  48. transcodely/v1/drm_pb2.py +65 -0
  49. transcodely/v1/drm_pb2.pyi +68 -0
  50. transcodely/v1/hdr_pb2.py +57 -0
  51. transcodely/v1/hdr_pb2.pyi +64 -0
  52. transcodely/v1/health_pb2.py +44 -0
  53. transcodely/v1/health_pb2.pyi +44 -0
  54. transcodely/v1/job_pb2.py +201 -0
  55. transcodely/v1/job_pb2.pyi +546 -0
  56. transcodely/v1/media_pb2.py +43 -0
  57. transcodely/v1/media_pb2.pyi +100 -0
  58. transcodely/v1/membership_pb2.py +71 -0
  59. transcodely/v1/membership_pb2.pyi +122 -0
  60. transcodely/v1/organization_pb2.py +81 -0
  61. transcodely/v1/organization_pb2.pyi +121 -0
  62. transcodely/v1/origin_pb2.py +157 -0
  63. transcodely/v1/origin_pb2.pyi +317 -0
  64. transcodely/v1/preset_pb2.py +192 -0
  65. transcodely/v1/preset_pb2.pyi +290 -0
  66. transcodely/v1/streaming_pb2.py +59 -0
  67. transcodely/v1/streaming_pb2.pyi +56 -0
  68. transcodely/v1/subtitles_pb2.py +69 -0
  69. transcodely/v1/subtitles_pb2.pyi +75 -0
  70. transcodely/v1/thumbnails_pb2.py +63 -0
  71. transcodely/v1/thumbnails_pb2.pyi +74 -0
  72. transcodely/v1/user_pb2.py +72 -0
  73. transcodely/v1/user_pb2.pyi +137 -0
  74. transcodely/v1/video_pb2.py +166 -0
  75. transcodely/v1/video_pb2.pyi +367 -0
  76. transcodely/v1/webhook_pb2.py +151 -0
  77. transcodely/v1/webhook_pb2.pyi +336 -0
  78. transcodely/version.py +11 -0
  79. transcodely/webhooks/__init__.py +44 -0
  80. transcodely/webhooks/construct_event.py +111 -0
  81. transcodely/webhooks/signature.py +110 -0
  82. transcodely/webhooks/types.py +115 -0
  83. transcodely-0.2.0.dist-info/METADATA +349 -0
  84. transcodely-0.2.0.dist-info/RECORD +86 -0
  85. transcodely-0.2.0.dist-info/WHEEL +4 -0
  86. transcodely-0.2.0.dist-info/licenses/LICENSE +21 -0
transcodely/types.py ADDED
@@ -0,0 +1,570 @@
1
+ """Re-exports of every public proto message and enum class.
2
+
3
+ The Python proto runtime keeps generated code under :mod:`transcodely.v1` —
4
+ import a module like ``from transcodely.v1 import drm_pb2`` and you get
5
+ ``drm_pb2.DRMConfig``. That works but is verbose.
6
+
7
+ This module surfaces the same classes (and the enum constants people actually
8
+ type) at flatter paths so application code can do::
9
+
10
+ from transcodely.types import DRMConfig, DRMSystem
11
+ from transcodely.types import DRM_SYSTEM_WIDEVINE
12
+
13
+ For the headline types you can also import directly from :mod:`transcodely`::
14
+
15
+ from transcodely import OutputSpec, VideoVariant, JobStatus
16
+
17
+ Enum values are also accepted as simplified strings on the wire — e.g.
18
+ ``"widevine"`` instead of ``DRM_SYSTEM_WIDEVINE`` — when constructing dicts
19
+ that go through the resource helpers' ``fill_from_dict`` path.
20
+ """
21
+
22
+ # Common: pagination, errors, codec/format/quality enums.
23
+ from transcodely.v1.common_pb2 import (
24
+ AudioCodec,
25
+ BitrateMode,
26
+ Container,
27
+ ContentType,
28
+ DeliveryFormat,
29
+ ErrorDetails,
30
+ OutputFormat,
31
+ PaginationRequest,
32
+ PaginationResponse,
33
+ QualityTier,
34
+ Resolution,
35
+ VideoCodec,
36
+ )
37
+
38
+ # Jobs.
39
+ from transcodely.v1.job_pb2 import (
40
+ AudioTrackConfig,
41
+ CancelJobRequest,
42
+ CancelJobResponse,
43
+ ConfirmJobRequest,
44
+ ConfirmJobResponse,
45
+ CreateJobRequest,
46
+ CreateJobResponse,
47
+ DASHConfig,
48
+ ExecutionTiming,
49
+ GetJobRequest,
50
+ GetJobResponse,
51
+ HLSConfig,
52
+ Job,
53
+ JobOutput,
54
+ JobPriority,
55
+ JobStatus,
56
+ ListJobsRequest,
57
+ ListJobsResponse,
58
+ OutputSpec,
59
+ OutputStatus,
60
+ OutputVariantResult,
61
+ PricingSnapshot,
62
+ SegmentConfig,
63
+ VariantPricingSnapshot,
64
+ VideoVariant,
65
+ WatchEventType,
66
+ WatchJobRequest,
67
+ WatchJobResponse,
68
+ )
69
+
70
+ # Videos.
71
+ from transcodely.v1.video_pb2 import (
72
+ AbortMultipartUploadRequest,
73
+ CompleteMultipartUploadRequest,
74
+ CompleteMultipartUploadResponse,
75
+ CompletedPart,
76
+ CompleteUploadRequest,
77
+ CompleteUploadResponse,
78
+ CreateMultipartUploadRequest,
79
+ CreateMultipartUploadResponse,
80
+ CreateUploadRequest,
81
+ CreateUploadResponse,
82
+ DeleteVideoRequest,
83
+ GetUploadPartUrlsRequest,
84
+ GetUploadPartUrlsResponse,
85
+ GetUsageRequest,
86
+ GetUsageResponse,
87
+ GetVideoRequest,
88
+ GetVideoResponse,
89
+ ListVideosRequest,
90
+ ListVideosResponse,
91
+ UpdateVideoRequest,
92
+ UpdateVideoResponse,
93
+ UploadPart,
94
+ UsageSummary,
95
+ Video,
96
+ VideoRendition,
97
+ VideoStatus,
98
+ VideoVisibility,
99
+ WatchVideoRequest,
100
+ WatchVideoResponse,
101
+ )
102
+
103
+ # Presets.
104
+ from transcodely.v1.preset_pb2 import (
105
+ ArchivePresetRequest,
106
+ AudioSettings,
107
+ CreatePresetRequest,
108
+ CreatePresetResponse,
109
+ DuplicatePresetRequest,
110
+ DuplicatePresetResponse,
111
+ GetPresetBySlugRequest,
112
+ GetPresetBySlugResponse,
113
+ GetPresetRequest,
114
+ GetPresetResponse,
115
+ ListPresetsRequest,
116
+ ListPresetsResponse,
117
+ Preset,
118
+ PresetVariant,
119
+ UpdatePresetRequest,
120
+ UpdatePresetResponse,
121
+ VideoSettings,
122
+ )
123
+
124
+ # Origins.
125
+ from transcodely.v1.origin_pb2 import (
126
+ ArchiveOriginRequest,
127
+ CreateOriginRequest,
128
+ CreateOriginResponse,
129
+ GcsCredentials,
130
+ GcsOriginConfig,
131
+ GetOriginRequest,
132
+ GetOriginResponse,
133
+ HttpCredentials,
134
+ HttpOriginConfig,
135
+ ListOriginsRequest,
136
+ ListOriginsResponse,
137
+ Origin,
138
+ OriginPermission,
139
+ OriginProvider,
140
+ OriginRef,
141
+ OriginStatus,
142
+ R2Jurisdiction,
143
+ R2OriginConfig,
144
+ S3Credentials,
145
+ S3OriginConfig,
146
+ UpdateOriginRequest,
147
+ UpdateOriginResponse,
148
+ ValidateOriginRequest,
149
+ ValidateOriginResponse,
150
+ ValidationResult,
151
+ )
152
+
153
+ # Apps.
154
+ from transcodely.v1.app_pb2 import (
155
+ App,
156
+ ArchiveAppRequest,
157
+ AutoProfileDefaults,
158
+ CreateAppRequest,
159
+ CreateAppResponse,
160
+ CreateWebhookConfig,
161
+ EnableHostingRequest,
162
+ EnableHostingResponse,
163
+ GetAppRequest,
164
+ GetAppResponse,
165
+ HostingConfig,
166
+ ListAppsRequest,
167
+ ListAppsResponse,
168
+ UpdateAppRequest,
169
+ UpdateAppResponse,
170
+ UpdateHostingConfigRequest,
171
+ UpdateHostingConfigResponse,
172
+ UpdateWebhookConfig,
173
+ WebhookConfig,
174
+ )
175
+
176
+ # API keys.
177
+ from transcodely.v1.api_key_pb2 import (
178
+ APIKey,
179
+ CreateAPIKeyRequest,
180
+ CreateAPIKeyResponse,
181
+ GetAPIKeyRequest,
182
+ GetAPIKeyResponse,
183
+ ListAPIKeysRequest,
184
+ ListAPIKeysResponse,
185
+ RevokeAPIKeyRequest,
186
+ )
187
+
188
+ # Organizations.
189
+ from transcodely.v1.organization_pb2 import (
190
+ CheckSlugRequest,
191
+ CheckSlugResponse,
192
+ CreateOrganizationRequest,
193
+ CreateOrganizationResponse,
194
+ GetOrganizationRequest,
195
+ GetOrganizationResponse,
196
+ ListOrganizationsRequest,
197
+ ListOrganizationsResponse,
198
+ Organization,
199
+ UpdateOrganizationRequest,
200
+ UpdateOrganizationResponse,
201
+ )
202
+
203
+ # Memberships.
204
+ from transcodely.v1.membership_pb2 import (
205
+ GetMembershipRequest,
206
+ GetMembershipResponse,
207
+ ListMembershipsRequest,
208
+ ListMembershipsResponse,
209
+ Membership,
210
+ MembershipRole,
211
+ MembershipWithUser,
212
+ RemoveMembershipRequest,
213
+ UpdateMembershipRoleRequest,
214
+ UpdateMembershipRoleResponse,
215
+ )
216
+
217
+ # Users.
218
+ from transcodely.v1.user_pb2 import (
219
+ GetMeRequest,
220
+ GetMeResponse,
221
+ GetUserRequest,
222
+ GetUserResponse,
223
+ ListUsersRequest,
224
+ ListUsersResponse,
225
+ UpdateMeRequest,
226
+ UpdateMeResponse,
227
+ User,
228
+ UserOrganization,
229
+ UserWithOrganizations,
230
+ )
231
+
232
+ # Health.
233
+ from transcodely.v1.health_pb2 import (
234
+ ComponentHealth,
235
+ HealthCheckRequest,
236
+ HealthCheckResponse,
237
+ )
238
+
239
+ # Feature configs.
240
+ from transcodely.v1.drm_pb2 import (
241
+ BYOKConfig,
242
+ DRMConfig,
243
+ DRMSystem,
244
+ EncryptionScheme,
245
+ )
246
+ from transcodely.v1.drm_pb2 import KeyServerConfig as DRMKeyServerConfig
247
+
248
+ from transcodely.v1.hdr_pb2 import (
249
+ HDRConfig,
250
+ HDRFormat,
251
+ HDRMode,
252
+ ToneMapping,
253
+ )
254
+
255
+ from transcodely.v1.content_aware_pb2 import (
256
+ AutoABRConfig,
257
+ ContentAnalysis,
258
+ ContentAwareConfig,
259
+ ContentAwareMode,
260
+ )
261
+
262
+ from transcodely.v1.subtitles_pb2 import (
263
+ BurnInStyle,
264
+ SubtitleFormat,
265
+ SubtitleOperation,
266
+ SubtitleTrack,
267
+ )
268
+
269
+ from transcodely.v1.thumbnails_pb2 import (
270
+ ThumbnailFormat,
271
+ ThumbnailMode,
272
+ ThumbnailResult,
273
+ ThumbnailSpec,
274
+ )
275
+
276
+ from transcodely.v1.streaming_pb2 import (
277
+ GOPAlignmentMode,
278
+ HLSPlaylistType,
279
+ HLSSegmentFormat,
280
+ StreamingConfig,
281
+ )
282
+
283
+ from transcodely.v1.media_pb2 import (
284
+ AudioStreamInfo,
285
+ InputMetadata,
286
+ SubtitleStreamInfo,
287
+ VideoStreamInfo,
288
+ )
289
+
290
+ from transcodely.v1.codec_h264_pb2 import H264Options
291
+ from transcodely.v1.codec_h265_pb2 import H265Options
292
+ from transcodely.v1.codec_vp9_pb2 import VP9Options
293
+ from transcodely.v1.codec_av1_pb2 import AV1Options
294
+
295
+ # Webhooks. The proto ``Event`` (wire shape) is intentionally not surfaced here —
296
+ # the customer-facing event is the unified ``Event`` dataclass below; reach the
297
+ # raw proto via ``transcodely.v1.webhook_pb2.Event`` if you really need it.
298
+ from transcodely.v1.webhook_pb2 import (
299
+ CreateWebhookEndpointRequest,
300
+ CreateWebhookEndpointResponse,
301
+ DeleteWebhookEndpointRequest,
302
+ DeleteWebhookEndpointResponse,
303
+ GetEndpointHealthRequest,
304
+ GetEndpointHealthResponse,
305
+ HealthBucket,
306
+ ListEventsRequest,
307
+ ListEventsResponse,
308
+ ListWebhookDeliveriesRequest,
309
+ ListWebhookDeliveriesResponse,
310
+ ListWebhookEndpointsRequest,
311
+ ListWebhookEndpointsResponse,
312
+ ResendEventRequest,
313
+ ResendEventResponse,
314
+ RetrieveEventRequest,
315
+ RetrieveEventResponse,
316
+ RetrieveWebhookEndpointRequest,
317
+ RetrieveWebhookEndpointResponse,
318
+ RotateWebhookSecretRequest,
319
+ RotateWebhookSecretResponse,
320
+ SendTestWebhookRequest,
321
+ SendTestWebhookResponse,
322
+ UpdateWebhookEndpointRequest,
323
+ UpdateWebhookEndpointResponse,
324
+ WebhookDelivery,
325
+ WebhookEndpoint,
326
+ )
327
+
328
+ # The unified customer-facing event types (shared by ``construct_event`` and the
329
+ # ``client.events`` resource bridge).
330
+ from .webhooks import Event, EventRequest, EventType, WebhookEvent
331
+
332
+ __all__ = [
333
+ "AbortMultipartUploadRequest",
334
+ "APIKey",
335
+ "App",
336
+ "ArchiveAppRequest",
337
+ "ArchiveOriginRequest",
338
+ "ArchivePresetRequest",
339
+ "AudioCodec",
340
+ "AudioSettings",
341
+ "AudioStreamInfo",
342
+ "AudioTrackConfig",
343
+ "AutoABRConfig",
344
+ "AutoProfileDefaults",
345
+ "AV1Options",
346
+ "BitrateMode",
347
+ "BurnInStyle",
348
+ "BYOKConfig",
349
+ "CancelJobRequest",
350
+ "CancelJobResponse",
351
+ "CheckSlugRequest",
352
+ "CheckSlugResponse",
353
+ "CompleteMultipartUploadRequest",
354
+ "CompleteMultipartUploadResponse",
355
+ "CompletedPart",
356
+ "CompleteUploadRequest",
357
+ "CompleteUploadResponse",
358
+ "ComponentHealth",
359
+ "ConfirmJobRequest",
360
+ "ConfirmJobResponse",
361
+ "Container",
362
+ "ContentAnalysis",
363
+ "ContentAwareConfig",
364
+ "ContentAwareMode",
365
+ "ContentType",
366
+ "CreateAPIKeyRequest",
367
+ "CreateAPIKeyResponse",
368
+ "CreateAppRequest",
369
+ "CreateAppResponse",
370
+ "CreateJobRequest",
371
+ "CreateJobResponse",
372
+ "CreateMultipartUploadRequest",
373
+ "CreateMultipartUploadResponse",
374
+ "CreateOrganizationRequest",
375
+ "CreateOrganizationResponse",
376
+ "CreateOriginRequest",
377
+ "CreateOriginResponse",
378
+ "CreatePresetRequest",
379
+ "CreatePresetResponse",
380
+ "CreateUploadRequest",
381
+ "CreateUploadResponse",
382
+ "CreateWebhookConfig",
383
+ "CreateWebhookEndpointRequest",
384
+ "CreateWebhookEndpointResponse",
385
+ "DASHConfig",
386
+ "DeleteVideoRequest",
387
+ "DeleteWebhookEndpointRequest",
388
+ "DeleteWebhookEndpointResponse",
389
+ "DeliveryFormat",
390
+ "DRMConfig",
391
+ "DRMKeyServerConfig",
392
+ "DRMSystem",
393
+ "DuplicatePresetRequest",
394
+ "DuplicatePresetResponse",
395
+ "EnableHostingRequest",
396
+ "EnableHostingResponse",
397
+ "EncryptionScheme",
398
+ "ErrorDetails",
399
+ "Event",
400
+ "EventRequest",
401
+ "EventType",
402
+ "ExecutionTiming",
403
+ "GcsCredentials",
404
+ "GcsOriginConfig",
405
+ "GetAPIKeyRequest",
406
+ "GetAPIKeyResponse",
407
+ "GetAppRequest",
408
+ "GetAppResponse",
409
+ "GetEndpointHealthRequest",
410
+ "GetEndpointHealthResponse",
411
+ "GetJobRequest",
412
+ "GetJobResponse",
413
+ "GetMembershipRequest",
414
+ "GetMembershipResponse",
415
+ "GetMeRequest",
416
+ "GetMeResponse",
417
+ "GetOrganizationRequest",
418
+ "GetOrganizationResponse",
419
+ "GetOriginRequest",
420
+ "GetOriginResponse",
421
+ "GetPresetBySlugRequest",
422
+ "GetPresetBySlugResponse",
423
+ "GetPresetRequest",
424
+ "GetPresetResponse",
425
+ "GetUploadPartUrlsRequest",
426
+ "GetUploadPartUrlsResponse",
427
+ "GetUsageRequest",
428
+ "GetUsageResponse",
429
+ "GetUserRequest",
430
+ "GetUserResponse",
431
+ "GetVideoRequest",
432
+ "GetVideoResponse",
433
+ "GOPAlignmentMode",
434
+ "H264Options",
435
+ "H265Options",
436
+ "HDRConfig",
437
+ "HDRFormat",
438
+ "HDRMode",
439
+ "HealthBucket",
440
+ "HealthCheckRequest",
441
+ "HealthCheckResponse",
442
+ "HLSConfig",
443
+ "HLSPlaylistType",
444
+ "HLSSegmentFormat",
445
+ "HostingConfig",
446
+ "HttpCredentials",
447
+ "HttpOriginConfig",
448
+ "InputMetadata",
449
+ "Job",
450
+ "JobOutput",
451
+ "JobPriority",
452
+ "JobStatus",
453
+ "ListAPIKeysRequest",
454
+ "ListAPIKeysResponse",
455
+ "ListAppsRequest",
456
+ "ListAppsResponse",
457
+ "ListEventsRequest",
458
+ "ListEventsResponse",
459
+ "ListJobsRequest",
460
+ "ListJobsResponse",
461
+ "ListMembershipsRequest",
462
+ "ListMembershipsResponse",
463
+ "ListOrganizationsRequest",
464
+ "ListOrganizationsResponse",
465
+ "ListOriginsRequest",
466
+ "ListOriginsResponse",
467
+ "ListPresetsRequest",
468
+ "ListPresetsResponse",
469
+ "ListUsersRequest",
470
+ "ListUsersResponse",
471
+ "ListVideosRequest",
472
+ "ListVideosResponse",
473
+ "ListWebhookDeliveriesRequest",
474
+ "ListWebhookDeliveriesResponse",
475
+ "ListWebhookEndpointsRequest",
476
+ "ListWebhookEndpointsResponse",
477
+ "Membership",
478
+ "MembershipRole",
479
+ "MembershipWithUser",
480
+ "Organization",
481
+ "Origin",
482
+ "OriginPermission",
483
+ "OriginProvider",
484
+ "OriginRef",
485
+ "OriginStatus",
486
+ "OutputFormat",
487
+ "OutputSpec",
488
+ "OutputStatus",
489
+ "OutputVariantResult",
490
+ "PaginationRequest",
491
+ "PaginationResponse",
492
+ "Preset",
493
+ "PresetVariant",
494
+ "PricingSnapshot",
495
+ "QualityTier",
496
+ "R2Jurisdiction",
497
+ "R2OriginConfig",
498
+ "RemoveMembershipRequest",
499
+ "ResendEventRequest",
500
+ "ResendEventResponse",
501
+ "Resolution",
502
+ "RetrieveEventRequest",
503
+ "RetrieveEventResponse",
504
+ "RetrieveWebhookEndpointRequest",
505
+ "RetrieveWebhookEndpointResponse",
506
+ "RevokeAPIKeyRequest",
507
+ "RotateWebhookSecretRequest",
508
+ "RotateWebhookSecretResponse",
509
+ "S3Credentials",
510
+ "S3OriginConfig",
511
+ "SegmentConfig",
512
+ "SendTestWebhookRequest",
513
+ "SendTestWebhookResponse",
514
+ "StreamingConfig",
515
+ "SubtitleFormat",
516
+ "SubtitleOperation",
517
+ "SubtitleStreamInfo",
518
+ "SubtitleTrack",
519
+ "ThumbnailFormat",
520
+ "ThumbnailMode",
521
+ "ThumbnailResult",
522
+ "ThumbnailSpec",
523
+ "ToneMapping",
524
+ "UpdateAppRequest",
525
+ "UpdateAppResponse",
526
+ "UpdateHostingConfigRequest",
527
+ "UpdateHostingConfigResponse",
528
+ "UpdateMembershipRoleRequest",
529
+ "UpdateMembershipRoleResponse",
530
+ "UpdateMeRequest",
531
+ "UpdateMeResponse",
532
+ "UpdateOrganizationRequest",
533
+ "UpdateOrganizationResponse",
534
+ "UpdateOriginRequest",
535
+ "UpdateOriginResponse",
536
+ "UpdatePresetRequest",
537
+ "UpdatePresetResponse",
538
+ "UpdateVideoRequest",
539
+ "UpdateVideoResponse",
540
+ "UpdateWebhookConfig",
541
+ "UpdateWebhookEndpointRequest",
542
+ "UpdateWebhookEndpointResponse",
543
+ "UploadPart",
544
+ "UsageSummary",
545
+ "User",
546
+ "UserOrganization",
547
+ "UserWithOrganizations",
548
+ "ValidateOriginRequest",
549
+ "ValidateOriginResponse",
550
+ "ValidationResult",
551
+ "VariantPricingSnapshot",
552
+ "Video",
553
+ "VideoCodec",
554
+ "VideoRendition",
555
+ "VideoSettings",
556
+ "VideoStatus",
557
+ "VideoStreamInfo",
558
+ "VideoVariant",
559
+ "VideoVisibility",
560
+ "VP9Options",
561
+ "WatchEventType",
562
+ "WatchJobRequest",
563
+ "WatchJobResponse",
564
+ "WatchVideoRequest",
565
+ "WatchVideoResponse",
566
+ "WebhookConfig",
567
+ "WebhookDelivery",
568
+ "WebhookEndpoint",
569
+ "WebhookEvent",
570
+ ]
@@ -0,0 +1,69 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: transcodely/v1/api_key.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/api_key.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\x1ctranscodely/v1/api_key.proto\x12\x0etranscodely.v1\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1btranscodely/v1/common.proto\"\xff\x03\n\x06\x41PIKey\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12 \n\x0b\x64\x65scription\x18\x03 \x01(\tR\x0b\x64\x65scription\x12\x1d\n\nkey_prefix\x18\x04 \x01(\tR\tkeyPrefix\x12\x19\n\x08key_hint\x18\x05 \x01(\tR\x07keyHint\x12\x16\n\x06scopes\x18\x07 \x03(\tR\x06scopes\x12\x41\n\x0clast_used_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\nlastUsedAt\x88\x01\x01\x12>\n\nexpires_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\texpiresAt\x88\x01\x01\x12\x39\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x1d\n\nis_revoked\x18\x0b \x01(\x08R\tisRevoked\x12>\n\nrevoked_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02R\trevokedAt\x88\x01\x01\x42\x0f\n\r_last_used_atB\r\n\x0b_expires_atB\r\n\x0b_revoked_atJ\x04\x08\x06\x10\x07R\x0b\x65nvironment\"\xfa\x01\n\x13\x43reateAPIKeyRequest\x12!\n\x04name\x18\x01 \x01(\tB\r\xbaH\nr\x05\x10\x01\x18\xff\x01\xc8\x01\x01R\x04name\x12*\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\xe8\x07R\x0b\x64\x65scription\x12>\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\texpiresAt\x88\x01\x01\x12\x32\n\x06\x61pp_id\x18\x05 \x01(\tB\x1b\xbaH\x18r\x16\x32\x14^app_[a-zA-Z0-9_-]+$R\x05\x61ppIdB\r\n\x0b_expires_atJ\x04\x08\x03\x10\x04R\x0b\x65nvironment\"_\n\x14\x43reateAPIKeyResponse\x12/\n\x07\x61pi_key\x18\x01 \x01(\x0b\x32\x16.transcodely.v1.APIKeyR\x06\x61piKey\x12\x16\n\x06secret\x18\x02 \x01(\tR\x06secret\"A\n\x10GetAPIKeyRequest\x12-\n\x02id\x18\x01 \x01(\tB\x1d\xbaH\x1ar\x15\x32\x13^ak_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\"D\n\x11GetAPIKeyResponse\x12/\n\x07\x61pi_key\x18\x01 \x01(\x0b\x32\x16.transcodely.v1.APIKeyR\x06\x61piKey\"\x93\x01\n\x12ListAPIKeysRequest\x12\'\n\x0finclude_revoked\x18\x02 \x01(\x08R\x0eincludeRevoked\x12\x41\n\npagination\x18\x03 \x01(\x0b\x32!.transcodely.v1.PaginationRequestR\npaginationJ\x04\x08\x01\x10\x02R\x0b\x65nvironment\"\x8c\x01\n\x13ListAPIKeysResponse\x12\x31\n\x08\x61pi_keys\x18\x01 \x03(\x0b\x32\x16.transcodely.v1.APIKeyR\x07\x61piKeys\x12\x42\n\npagination\x18\x02 \x01(\x0b\x32\".transcodely.v1.PaginationResponseR\npagination\"f\n\x13RevokeAPIKeyRequest\x12-\n\x02id\x18\x01 \x01(\tB\x1d\xbaH\x1ar\x15\x32\x13^ak_[a-zA-Z0-9_-]+$\xc8\x01\x01R\x02id\x12 \n\x06reason\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\xf4\x03R\x06reason\"G\n\x14RevokeAPIKeyResponse\x12/\n\x07\x61pi_key\x18\x01 \x01(\x0b\x32\x16.transcodely.v1.APIKeyR\x06\x61piKey2\xd6\x02\n\rAPIKeyService\x12S\n\x06\x43reate\x12#.transcodely.v1.CreateAPIKeyRequest\x1a$.transcodely.v1.CreateAPIKeyResponse\x12J\n\x03Get\x12 .transcodely.v1.GetAPIKeyRequest\x1a!.transcodely.v1.GetAPIKeyResponse\x12O\n\x04List\x12\".transcodely.v1.ListAPIKeysRequest\x1a#.transcodely.v1.ListAPIKeysResponse\x12S\n\x06Revoke\x12#.transcodely.v1.RevokeAPIKeyRequest\x1a$.transcodely.v1.RevokeAPIKeyResponseb\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'transcodely.v1.api_key_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ DESCRIPTOR._loaded_options = None
37
+ _globals['_CREATEAPIKEYREQUEST'].fields_by_name['name']._loaded_options = None
38
+ _globals['_CREATEAPIKEYREQUEST'].fields_by_name['name']._serialized_options = b'\272H\nr\005\020\001\030\377\001\310\001\001'
39
+ _globals['_CREATEAPIKEYREQUEST'].fields_by_name['description']._loaded_options = None
40
+ _globals['_CREATEAPIKEYREQUEST'].fields_by_name['description']._serialized_options = b'\272H\005r\003\030\350\007'
41
+ _globals['_CREATEAPIKEYREQUEST'].fields_by_name['app_id']._loaded_options = None
42
+ _globals['_CREATEAPIKEYREQUEST'].fields_by_name['app_id']._serialized_options = b'\272H\030r\0262\024^app_[a-zA-Z0-9_-]+$'
43
+ _globals['_GETAPIKEYREQUEST'].fields_by_name['id']._loaded_options = None
44
+ _globals['_GETAPIKEYREQUEST'].fields_by_name['id']._serialized_options = b'\272H\032r\0252\023^ak_[a-zA-Z0-9_-]+$\310\001\001'
45
+ _globals['_REVOKEAPIKEYREQUEST'].fields_by_name['id']._loaded_options = None
46
+ _globals['_REVOKEAPIKEYREQUEST'].fields_by_name['id']._serialized_options = b'\272H\032r\0252\023^ak_[a-zA-Z0-9_-]+$\310\001\001'
47
+ _globals['_REVOKEAPIKEYREQUEST'].fields_by_name['reason']._loaded_options = None
48
+ _globals['_REVOKEAPIKEYREQUEST'].fields_by_name['reason']._serialized_options = b'\272H\005r\003\030\364\003'
49
+ _globals['_APIKEY']._serialized_start=140
50
+ _globals['_APIKEY']._serialized_end=651
51
+ _globals['_CREATEAPIKEYREQUEST']._serialized_start=654
52
+ _globals['_CREATEAPIKEYREQUEST']._serialized_end=904
53
+ _globals['_CREATEAPIKEYRESPONSE']._serialized_start=906
54
+ _globals['_CREATEAPIKEYRESPONSE']._serialized_end=1001
55
+ _globals['_GETAPIKEYREQUEST']._serialized_start=1003
56
+ _globals['_GETAPIKEYREQUEST']._serialized_end=1068
57
+ _globals['_GETAPIKEYRESPONSE']._serialized_start=1070
58
+ _globals['_GETAPIKEYRESPONSE']._serialized_end=1138
59
+ _globals['_LISTAPIKEYSREQUEST']._serialized_start=1141
60
+ _globals['_LISTAPIKEYSREQUEST']._serialized_end=1288
61
+ _globals['_LISTAPIKEYSRESPONSE']._serialized_start=1291
62
+ _globals['_LISTAPIKEYSRESPONSE']._serialized_end=1431
63
+ _globals['_REVOKEAPIKEYREQUEST']._serialized_start=1433
64
+ _globals['_REVOKEAPIKEYREQUEST']._serialized_end=1535
65
+ _globals['_REVOKEAPIKEYRESPONSE']._serialized_start=1537
66
+ _globals['_REVOKEAPIKEYRESPONSE']._serialized_end=1608
67
+ _globals['_APIKEYSERVICE']._serialized_start=1611
68
+ _globals['_APIKEYSERVICE']._serialized_end=1953
69
+ # @@protoc_insertion_point(module_scope)