livepeer 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/livepeer.rb +96 -0
- data/lib/sdk/access_control.rb +195 -0
- data/lib/sdk/asset.rb +248 -0
- data/lib/sdk/metrics.rb +158 -0
- data/lib/sdk/models/operations/createmultistreamtarget.rb +34 -0
- data/lib/sdk/models/operations/createsigningkey.rb +35 -0
- data/lib/sdk/models/operations/createstream.rb +34 -0
- data/lib/sdk/models/operations/createwebhook.rb +35 -0
- data/lib/sdk/models/operations/deleteasset.rb +45 -0
- data/lib/sdk/models/operations/deletemultistreamtarget.rb +45 -0
- data/lib/sdk/models/operations/deletesigningkey.rb +45 -0
- data/lib/sdk/models/operations/deletestream.rb +45 -0
- data/lib/sdk/models/operations/deletewebhook.rb +49 -0
- data/lib/sdk/models/operations/get_session_id_clips.rb +48 -0
- data/lib/sdk/models/operations/get_stream_id_clips.rb +48 -0
- data/lib/sdk/models/operations/getasset.rb +49 -0
- data/lib/sdk/models/operations/getassets.rb +34 -0
- data/lib/sdk/models/operations/getcreatormetrics.rb +98 -0
- data/lib/sdk/models/operations/getmultistreamtarget.rb +49 -0
- data/lib/sdk/models/operations/getmultistreamtargets.rb +34 -0
- data/lib/sdk/models/operations/getplaybackinfo.rb +53 -0
- data/lib/sdk/models/operations/getpublictotalviewsmetrics.rb +76 -0
- data/lib/sdk/models/operations/getrecordedsessions.rb +53 -0
- data/lib/sdk/models/operations/getsession.rb +49 -0
- data/lib/sdk/models/operations/getsessions.rb +34 -0
- data/lib/sdk/models/operations/getsigningkey.rb +49 -0
- data/lib/sdk/models/operations/getsigningkeys.rb +34 -0
- data/lib/sdk/models/operations/getstream.rb +49 -0
- data/lib/sdk/models/operations/getstreams.rb +48 -0
- data/lib/sdk/models/operations/gettask.rb +49 -0
- data/lib/sdk/models/operations/gettasks.rb +34 -0
- data/lib/sdk/models/operations/getusagemetrics.rb +72 -0
- data/lib/sdk/models/operations/getviewershipsmetrics.rb +107 -0
- data/lib/sdk/models/operations/getwebhook.rb +49 -0
- data/lib/sdk/models/operations/getwebhooks.rb +34 -0
- data/lib/sdk/models/operations/patch_asset_assetid_.rb +53 -0
- data/lib/sdk/models/operations/post_clip.rb +66 -0
- data/lib/sdk/models/operations/requestupload.rb +72 -0
- data/lib/sdk/models/operations/transcode.rb +35 -0
- data/lib/sdk/models/operations/updatemultistreamtarget.rb +49 -0
- data/lib/sdk/models/operations/updatesigningkey.rb +65 -0
- data/lib/sdk/models/operations/updatestream.rb +49 -0
- data/lib/sdk/models/operations/updatewebhook.rb +49 -0
- data/lib/sdk/models/operations/uploadassetviaurl.rb +66 -0
- data/lib/sdk/models/shared/asset.rb +312 -0
- data/lib/sdk/models/shared/asset_patch_payload.rb +38 -0
- data/lib/sdk/models/shared/attestation.rb +178 -0
- data/lib/sdk/models/shared/clip_payload.rb +37 -0
- data/lib/sdk/models/shared/encryption.rb +25 -0
- data/lib/sdk/models/shared/encryption_output.rb +21 -0
- data/lib/sdk/models/shared/error.rb +25 -0
- data/lib/sdk/models/shared/ffmpeg_profile.rb +71 -0
- data/lib/sdk/models/shared/ipfs_export_params.rb +41 -0
- data/lib/sdk/models/shared/ipfs_file_info.rb +31 -0
- data/lib/sdk/models/shared/multistream.rb +75 -0
- data/lib/sdk/models/shared/multistream_target.rb +36 -0
- data/lib/sdk/models/shared/multistream_target_input.rb +33 -0
- data/lib/sdk/models/shared/multistream_target_patch_payload.rb +33 -0
- data/lib/sdk/models/shared/new_asset_payload.rb +79 -0
- data/lib/sdk/models/shared/new_stream_payload.rb +44 -0
- data/lib/sdk/models/shared/nftmetadata.rb +24 -0
- data/lib/sdk/models/shared/nftmetadatatemplate.rb +23 -0
- data/lib/sdk/models/shared/playback_info.rb +115 -0
- data/lib/sdk/models/shared/playback_policy.rb +41 -0
- data/lib/sdk/models/shared/security.rb +25 -0
- data/lib/sdk/models/shared/session.rb +99 -0
- data/lib/sdk/models/shared/signing_key.rb +40 -0
- data/lib/sdk/models/shared/signing_key_response_payload.rb +43 -0
- data/lib/sdk/models/shared/storage.rb +28 -0
- data/lib/sdk/models/shared/storage_status.rb +70 -0
- data/lib/sdk/models/shared/stream.rb +142 -0
- data/lib/sdk/models/shared/stream_patch_payload.rb +41 -0
- data/lib/sdk/models/shared/task.rb +626 -0
- data/lib/sdk/models/shared/upload.rb +34 -0
- data/lib/sdk/models/shared/upload_output.rb +34 -0
- data/lib/sdk/models/shared/usage_metric.rb +38 -0
- data/lib/sdk/models/shared/viewership_metric.rb +97 -0
- data/lib/sdk/models/shared/webhook.rb +112 -0
- data/lib/sdk/multistream_target.rb +205 -0
- data/lib/sdk/playback.rb +63 -0
- data/lib/sdk/sdk.rb +89 -0
- data/lib/sdk/sdkconfiguration.rb +54 -0
- data/lib/sdk/session.rb +166 -0
- data/lib/sdk/stream.rb +290 -0
- data/lib/sdk/task.rb +87 -0
- data/lib/sdk/transcode.rb +59 -0
- data/lib/sdk/utils/metadata_fields.rb +154 -0
- data/lib/sdk/utils/utils.rb +774 -0
- data/lib/sdk/webhook.rb +192 -0
- metadata +260 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/task'
|
9
|
+
|
10
|
+
module Livepeer
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class GetTaskRequest < Livepeer::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# ID of the task
|
17
|
+
field :task_id, String, { 'path_param': { 'field_name': 'taskId', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(task_id: String).void }
|
21
|
+
def initialize(task_id: nil)
|
22
|
+
@task_id = task_id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
class GetTaskResponse < Livepeer::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
# HTTP response content type for this operation
|
31
|
+
field :content_type, String
|
32
|
+
# HTTP response status code for this operation
|
33
|
+
field :status_code, Integer
|
34
|
+
# Raw HTTP response; suitable for custom response parsing
|
35
|
+
field :raw_response, T.nilable(Faraday::Response)
|
36
|
+
# Success
|
37
|
+
field :task, T.nilable(Shared::Task)
|
38
|
+
|
39
|
+
|
40
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), task: T.nilable(Shared::Task)).void }
|
41
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil, task: nil)
|
42
|
+
@content_type = content_type
|
43
|
+
@status_code = status_code
|
44
|
+
@raw_response = raw_response
|
45
|
+
@task = task
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
|
9
|
+
module Livepeer
|
10
|
+
module Operations
|
11
|
+
|
12
|
+
class GetTasksResponse < Livepeer::Utils::FieldAugmented
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
# HTTP response content type for this operation
|
16
|
+
field :content_type, String
|
17
|
+
# HTTP response status code for this operation
|
18
|
+
field :status_code, Integer
|
19
|
+
# Success
|
20
|
+
field :data, T.nilable(T::Array[Shared::Task])
|
21
|
+
# Raw HTTP response; suitable for custom response parsing
|
22
|
+
field :raw_response, T.nilable(Faraday::Response)
|
23
|
+
|
24
|
+
|
25
|
+
sig { params(content_type: String, status_code: Integer, data: T.nilable(T::Array[Shared::Task]), raw_response: T.nilable(Faraday::Response)).void }
|
26
|
+
def initialize(content_type: nil, status_code: nil, data: nil, raw_response: nil)
|
27
|
+
@content_type = content_type
|
28
|
+
@status_code = status_code
|
29
|
+
@data = data
|
30
|
+
@raw_response = raw_response
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/usage_metric'
|
9
|
+
|
10
|
+
module Livepeer
|
11
|
+
module Operations
|
12
|
+
# GetUsageMetricsQueryParamTimeStep - The time step to aggregate viewership metrics by
|
13
|
+
#
|
14
|
+
class GetUsageMetricsQueryParamTimeStep < T::Enum
|
15
|
+
enums do
|
16
|
+
HOUR = new('hour')
|
17
|
+
DAY = new('day')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
class GetUsageMetricsRequest < Livepeer::Utils::FieldAugmented
|
24
|
+
extend T::Sig
|
25
|
+
|
26
|
+
# The creator ID to filter the query results
|
27
|
+
#
|
28
|
+
field :creator_id, T.nilable(String), { 'query_param': { 'field_name': 'creatorId', 'style': 'form', 'explode': true } }
|
29
|
+
# Start millis timestamp for the query range (inclusive)
|
30
|
+
#
|
31
|
+
field :from, T.nilable(Integer), { 'query_param': { 'field_name': 'from', 'style': 'form', 'explode': true } }
|
32
|
+
# The time step to aggregate viewership metrics by
|
33
|
+
#
|
34
|
+
field :time_step, T.nilable(Operations::GetUsageMetricsQueryParamTimeStep), { 'query_param': { 'field_name': 'timeStep', 'style': 'form', 'explode': true } }
|
35
|
+
# End millis timestamp for the query range (exclusive)
|
36
|
+
#
|
37
|
+
field :to, T.nilable(Integer), { 'query_param': { 'field_name': 'to', 'style': 'form', 'explode': true } }
|
38
|
+
|
39
|
+
|
40
|
+
sig { params(creator_id: T.nilable(String), from: T.nilable(Integer), time_step: T.nilable(Operations::GetUsageMetricsQueryParamTimeStep), to: T.nilable(Integer)).void }
|
41
|
+
def initialize(creator_id: nil, from: nil, time_step: nil, to: nil)
|
42
|
+
@creator_id = creator_id
|
43
|
+
@from = from
|
44
|
+
@time_step = time_step
|
45
|
+
@to = to
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
|
50
|
+
class GetUsageMetricsResponse < Livepeer::Utils::FieldAugmented
|
51
|
+
extend T::Sig
|
52
|
+
|
53
|
+
# HTTP response content type for this operation
|
54
|
+
field :content_type, String
|
55
|
+
# HTTP response status code for this operation
|
56
|
+
field :status_code, Integer
|
57
|
+
# Raw HTTP response; suitable for custom response parsing
|
58
|
+
field :raw_response, T.nilable(Faraday::Response)
|
59
|
+
# A Usage Metric object
|
60
|
+
field :usage_metric, T.nilable(Shared::UsageMetric)
|
61
|
+
|
62
|
+
|
63
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), usage_metric: T.nilable(Shared::UsageMetric)).void }
|
64
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil, usage_metric: nil)
|
65
|
+
@content_type = content_type
|
66
|
+
@status_code = status_code
|
67
|
+
@raw_response = raw_response
|
68
|
+
@usage_metric = usage_metric
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
|
9
|
+
module Livepeer
|
10
|
+
module Operations
|
11
|
+
# TimeStep - The time step to aggregate viewership metrics by
|
12
|
+
class TimeStep < T::Enum
|
13
|
+
enums do
|
14
|
+
HOUR = new('hour')
|
15
|
+
DAY = new('day')
|
16
|
+
WEEK = new('week')
|
17
|
+
MONTH = new('month')
|
18
|
+
YEAR = new('year')
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
class BreakdownBy < T::Enum
|
25
|
+
enums do
|
26
|
+
PLAYBACK_ID = new('playbackId')
|
27
|
+
DEVICE_TYPE = new('deviceType')
|
28
|
+
DEVICE = new('device')
|
29
|
+
CPU = new('cpu')
|
30
|
+
OS = new('os')
|
31
|
+
BROWSER = new('browser')
|
32
|
+
BROWSER_ENGINE = new('browserEngine')
|
33
|
+
CONTINENT = new('continent')
|
34
|
+
COUNTRY = new('country')
|
35
|
+
SUBDIVISION = new('subdivision')
|
36
|
+
TIMEZONE = new('timezone')
|
37
|
+
GEOHASH = new('geohash')
|
38
|
+
VIEWER_ID = new('viewerId')
|
39
|
+
CREATOR_ID = new('creatorId')
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
class GetViewershipsMetricsRequest < Livepeer::Utils::FieldAugmented
|
46
|
+
extend T::Sig
|
47
|
+
|
48
|
+
# The asset ID to filter metrics for
|
49
|
+
field :asset_id, T.nilable(String), { 'query_param': { 'field_name': 'assetId', 'style': 'form', 'explode': true } }
|
50
|
+
# The list of fields to break down the query results. Specify this
|
51
|
+
# query-string multiple times to break down by multiple fields.
|
52
|
+
#
|
53
|
+
field :breakdown_by, T.nilable(T::Array[Operations::BreakdownBy]), { 'query_param': { 'field_name': 'breakdownBy[]', 'style': 'form', 'explode': true } }
|
54
|
+
# The creator ID to filter the query results
|
55
|
+
field :creator_id, T.nilable(String), { 'query_param': { 'field_name': 'creatorId', 'style': 'form', 'explode': true } }
|
56
|
+
# Start timestamp for the query range (inclusive)
|
57
|
+
field :from, T.nilable(Object), { 'query_param': { 'field_name': 'from', 'style': 'form', 'explode': true } }
|
58
|
+
# The playback ID to filter the query results. This can be a canonical
|
59
|
+
# playback ID from Livepeer assets or streams, or dStorage identifiers
|
60
|
+
# for assets
|
61
|
+
#
|
62
|
+
field :playback_id, T.nilable(String), { 'query_param': { 'field_name': 'playbackId', 'style': 'form', 'explode': true } }
|
63
|
+
# The stream ID to filter metrics for
|
64
|
+
field :stream_id, T.nilable(String), { 'query_param': { 'field_name': 'streamId', 'style': 'form', 'explode': true } }
|
65
|
+
# The time step to aggregate viewership metrics by
|
66
|
+
field :time_step, T.nilable(Operations::TimeStep), { 'query_param': { 'field_name': 'timeStep', 'style': 'form', 'explode': true } }
|
67
|
+
# End timestamp for the query range (exclusive)
|
68
|
+
field :to, T.nilable(Object), { 'query_param': { 'field_name': 'to', 'style': 'form', 'explode': true } }
|
69
|
+
|
70
|
+
|
71
|
+
sig { params(asset_id: T.nilable(String), breakdown_by: T.nilable(T::Array[Operations::BreakdownBy]), creator_id: T.nilable(String), from: T.nilable(Object), playback_id: T.nilable(String), stream_id: T.nilable(String), time_step: T.nilable(Operations::TimeStep), to: T.nilable(Object)).void }
|
72
|
+
def initialize(asset_id: nil, breakdown_by: nil, creator_id: nil, from: nil, playback_id: nil, stream_id: nil, time_step: nil, to: nil)
|
73
|
+
@asset_id = asset_id
|
74
|
+
@breakdown_by = breakdown_by
|
75
|
+
@creator_id = creator_id
|
76
|
+
@from = from
|
77
|
+
@playback_id = playback_id
|
78
|
+
@stream_id = stream_id
|
79
|
+
@time_step = time_step
|
80
|
+
@to = to
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
|
85
|
+
class GetViewershipsMetricsResponse < Livepeer::Utils::FieldAugmented
|
86
|
+
extend T::Sig
|
87
|
+
|
88
|
+
# HTTP response content type for this operation
|
89
|
+
field :content_type, String
|
90
|
+
# HTTP response status code for this operation
|
91
|
+
field :status_code, Integer
|
92
|
+
# A list of Metric objects
|
93
|
+
field :data, T.nilable(T::Array[Shared::ViewershipMetric])
|
94
|
+
# Raw HTTP response; suitable for custom response parsing
|
95
|
+
field :raw_response, T.nilable(Faraday::Response)
|
96
|
+
|
97
|
+
|
98
|
+
sig { params(content_type: String, status_code: Integer, data: T.nilable(T::Array[Shared::ViewershipMetric]), raw_response: T.nilable(Faraday::Response)).void }
|
99
|
+
def initialize(content_type: nil, status_code: nil, data: nil, raw_response: nil)
|
100
|
+
@content_type = content_type
|
101
|
+
@status_code = status_code
|
102
|
+
@data = data
|
103
|
+
@raw_response = raw_response
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/webhook'
|
9
|
+
|
10
|
+
module Livepeer
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class GetWebhookRequest < Livepeer::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# ID of the webhook
|
17
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(id: String).void }
|
21
|
+
def initialize(id: nil)
|
22
|
+
@id = id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
|
27
|
+
class GetWebhookResponse < Livepeer::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
# HTTP response content type for this operation
|
31
|
+
field :content_type, String
|
32
|
+
# HTTP response status code for this operation
|
33
|
+
field :status_code, Integer
|
34
|
+
# Raw HTTP response; suitable for custom response parsing
|
35
|
+
field :raw_response, T.nilable(Faraday::Response)
|
36
|
+
# Success
|
37
|
+
field :webhook, T.nilable(Shared::Webhook)
|
38
|
+
|
39
|
+
|
40
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), webhook: T.nilable(Shared::Webhook)).void }
|
41
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil, webhook: nil)
|
42
|
+
@content_type = content_type
|
43
|
+
@status_code = status_code
|
44
|
+
@raw_response = raw_response
|
45
|
+
@webhook = webhook
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
|
9
|
+
module Livepeer
|
10
|
+
module Operations
|
11
|
+
|
12
|
+
class GetWebhooksResponse < Livepeer::Utils::FieldAugmented
|
13
|
+
extend T::Sig
|
14
|
+
|
15
|
+
# HTTP response content type for this operation
|
16
|
+
field :content_type, String
|
17
|
+
# HTTP response status code for this operation
|
18
|
+
field :status_code, Integer
|
19
|
+
# Success
|
20
|
+
field :data, T.nilable(T::Array[Shared::Webhook])
|
21
|
+
# Raw HTTP response; suitable for custom response parsing
|
22
|
+
field :raw_response, T.nilable(Faraday::Response)
|
23
|
+
|
24
|
+
|
25
|
+
sig { params(content_type: String, status_code: Integer, data: T.nilable(T::Array[Shared::Webhook]), raw_response: T.nilable(Faraday::Response)).void }
|
26
|
+
def initialize(content_type: nil, status_code: nil, data: nil, raw_response: nil)
|
27
|
+
@content_type = content_type
|
28
|
+
@status_code = status_code
|
29
|
+
@data = data
|
30
|
+
@raw_response = raw_response
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/asset_patch_payload'
|
9
|
+
require_relative '../shared/asset'
|
10
|
+
|
11
|
+
module Livepeer
|
12
|
+
module Operations
|
13
|
+
|
14
|
+
class PatchAssetAssetIdRequest < Livepeer::Utils::FieldAugmented
|
15
|
+
extend T::Sig
|
16
|
+
|
17
|
+
|
18
|
+
field :asset_patch_payload, Shared::AssetPatchPayload, { 'request': { 'media_type': 'application/json' } }
|
19
|
+
# ID of the asset
|
20
|
+
field :asset_id, String, { 'path_param': { 'field_name': 'assetId', 'style': 'simple', 'explode': false } }
|
21
|
+
|
22
|
+
|
23
|
+
sig { params(asset_patch_payload: Shared::AssetPatchPayload, asset_id: String).void }
|
24
|
+
def initialize(asset_patch_payload: nil, asset_id: nil)
|
25
|
+
@asset_patch_payload = asset_patch_payload
|
26
|
+
@asset_id = asset_id
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
class PatchAssetAssetIdResponse < Livepeer::Utils::FieldAugmented
|
32
|
+
extend T::Sig
|
33
|
+
|
34
|
+
# HTTP response content type for this operation
|
35
|
+
field :content_type, String
|
36
|
+
# HTTP response status code for this operation
|
37
|
+
field :status_code, Integer
|
38
|
+
# Success
|
39
|
+
field :asset, T.nilable(Shared::Asset)
|
40
|
+
# Raw HTTP response; suitable for custom response parsing
|
41
|
+
field :raw_response, T.nilable(Faraday::Response)
|
42
|
+
|
43
|
+
|
44
|
+
sig { params(content_type: String, status_code: Integer, asset: T.nilable(Shared::Asset), raw_response: T.nilable(Faraday::Response)).void }
|
45
|
+
def initialize(content_type: nil, status_code: nil, asset: nil, raw_response: nil)
|
46
|
+
@content_type = content_type
|
47
|
+
@status_code = status_code
|
48
|
+
@asset = asset
|
49
|
+
@raw_response = raw_response
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/asset'
|
9
|
+
|
10
|
+
module Livepeer
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class PostClipTask < Livepeer::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
|
17
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(id: T.nilable(String)).void }
|
21
|
+
def initialize(id: nil)
|
22
|
+
@id = id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# Success
|
27
|
+
class PostClipData < Livepeer::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
|
31
|
+
field :asset, Shared::Asset, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('asset') } }
|
32
|
+
|
33
|
+
field :task, Operations::PostClipTask, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('task') } }
|
34
|
+
|
35
|
+
|
36
|
+
sig { params(asset: Shared::Asset, task: Operations::PostClipTask).void }
|
37
|
+
def initialize(asset: nil, task: nil)
|
38
|
+
@asset = asset
|
39
|
+
@task = task
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
|
44
|
+
class PostClipResponse < Livepeer::Utils::FieldAugmented
|
45
|
+
extend T::Sig
|
46
|
+
|
47
|
+
# HTTP response content type for this operation
|
48
|
+
field :content_type, String
|
49
|
+
# HTTP response status code for this operation
|
50
|
+
field :status_code, Integer
|
51
|
+
# Success
|
52
|
+
field :data, T.nilable(Operations::PostClipData)
|
53
|
+
# Raw HTTP response; suitable for custom response parsing
|
54
|
+
field :raw_response, T.nilable(Faraday::Response)
|
55
|
+
|
56
|
+
|
57
|
+
sig { params(content_type: String, status_code: Integer, data: T.nilable(Operations::PostClipData), raw_response: T.nilable(Faraday::Response)).void }
|
58
|
+
def initialize(content_type: nil, status_code: nil, data: nil, raw_response: nil)
|
59
|
+
@content_type = content_type
|
60
|
+
@status_code = status_code
|
61
|
+
@data = data
|
62
|
+
@raw_response = raw_response
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/asset'
|
9
|
+
|
10
|
+
module Livepeer
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class Task < Livepeer::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
|
17
|
+
field :id, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('id') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(id: T.nilable(String)).void }
|
21
|
+
def initialize(id: nil)
|
22
|
+
@id = id
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# Success
|
27
|
+
class RequestUploadData < Livepeer::Utils::FieldAugmented
|
28
|
+
extend T::Sig
|
29
|
+
|
30
|
+
|
31
|
+
field :asset, Shared::Asset, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('asset') } }
|
32
|
+
|
33
|
+
field :task, Operations::Task, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('task') } }
|
34
|
+
|
35
|
+
field :tus_endpoint, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('tusEndpoint') } }
|
36
|
+
|
37
|
+
field :url, String, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('url') } }
|
38
|
+
|
39
|
+
|
40
|
+
sig { params(asset: Shared::Asset, task: Operations::Task, tus_endpoint: String, url: String).void }
|
41
|
+
def initialize(asset: nil, task: nil, tus_endpoint: nil, url: nil)
|
42
|
+
@asset = asset
|
43
|
+
@task = task
|
44
|
+
@tus_endpoint = tus_endpoint
|
45
|
+
@url = url
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
|
50
|
+
class RequestUploadResponse < Livepeer::Utils::FieldAugmented
|
51
|
+
extend T::Sig
|
52
|
+
|
53
|
+
# HTTP response content type for this operation
|
54
|
+
field :content_type, String
|
55
|
+
# HTTP response status code for this operation
|
56
|
+
field :status_code, Integer
|
57
|
+
# Success
|
58
|
+
field :data, T.nilable(Operations::RequestUploadData)
|
59
|
+
# Raw HTTP response; suitable for custom response parsing
|
60
|
+
field :raw_response, T.nilable(Faraday::Response)
|
61
|
+
|
62
|
+
|
63
|
+
sig { params(content_type: String, status_code: Integer, data: T.nilable(Operations::RequestUploadData), raw_response: T.nilable(Faraday::Response)).void }
|
64
|
+
def initialize(content_type: nil, status_code: nil, data: nil, raw_response: nil)
|
65
|
+
@content_type = content_type
|
66
|
+
@status_code = status_code
|
67
|
+
@data = data
|
68
|
+
@raw_response = raw_response
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/task'
|
9
|
+
|
10
|
+
module Livepeer
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class TranscodeResponse < Livepeer::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# HTTP response content type for this operation
|
17
|
+
field :content_type, String
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, Integer
|
20
|
+
# Raw HTTP response; suitable for custom response parsing
|
21
|
+
field :raw_response, T.nilable(Faraday::Response)
|
22
|
+
# Success
|
23
|
+
field :task, T.nilable(Shared::Task)
|
24
|
+
|
25
|
+
|
26
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), task: T.nilable(Shared::Task)).void }
|
27
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil, task: nil)
|
28
|
+
@content_type = content_type
|
29
|
+
@status_code = status_code
|
30
|
+
@raw_response = raw_response
|
31
|
+
@task = task
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
require 'sorbet-runtime'
|
7
|
+
require 'faraday'
|
8
|
+
require_relative '../shared/multistream_target_patch_payload'
|
9
|
+
|
10
|
+
module Livepeer
|
11
|
+
module Operations
|
12
|
+
|
13
|
+
class UpdateMultistreamTargetRequest < Livepeer::Utils::FieldAugmented
|
14
|
+
extend T::Sig
|
15
|
+
|
16
|
+
# ID of the multistream target
|
17
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
18
|
+
|
19
|
+
field :multistream_target_patch_payload, Shared::MultistreamTargetPatchPayload, { 'request': { 'media_type': 'application/json' } }
|
20
|
+
|
21
|
+
|
22
|
+
sig { params(id: String, multistream_target_patch_payload: Shared::MultistreamTargetPatchPayload).void }
|
23
|
+
def initialize(id: nil, multistream_target_patch_payload: nil)
|
24
|
+
@id = id
|
25
|
+
@multistream_target_patch_payload = multistream_target_patch_payload
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
|
30
|
+
class UpdateMultistreamTargetResponse < Livepeer::Utils::FieldAugmented
|
31
|
+
extend T::Sig
|
32
|
+
|
33
|
+
# HTTP response content type for this operation
|
34
|
+
field :content_type, String
|
35
|
+
# HTTP response status code for this operation
|
36
|
+
field :status_code, Integer
|
37
|
+
# Raw HTTP response; suitable for custom response parsing
|
38
|
+
field :raw_response, T.nilable(Faraday::Response)
|
39
|
+
|
40
|
+
|
41
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response)).void }
|
42
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil)
|
43
|
+
@content_type = content_type
|
44
|
+
@status_code = status_code
|
45
|
+
@raw_response = raw_response
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|