livepeer 0.0.1
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.
- 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
data/lib/sdk/metrics.rb
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'faraday'
|
|
7
|
+
require 'faraday/multipart'
|
|
8
|
+
require 'sorbet-runtime'
|
|
9
|
+
|
|
10
|
+
module Livepeer
|
|
11
|
+
extend T::Sig
|
|
12
|
+
class Metrics
|
|
13
|
+
|
|
14
|
+
extend T::Sig
|
|
15
|
+
sig { params(sdk_config: SDKConfiguration).void }
|
|
16
|
+
def initialize(sdk_config)
|
|
17
|
+
@sdk_configuration = sdk_config
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
sig { params(request: T.nilable(Operations::GetViewershipsMetricsRequest)).returns(Utils::FieldAugmented) }
|
|
21
|
+
def get_viewership(request)
|
|
22
|
+
# get_viewership - Query viewership metrics
|
|
23
|
+
url, params = @sdk_configuration.get_server_details
|
|
24
|
+
base_url = Utils.template_url(url, params)
|
|
25
|
+
url = "#{base_url}/data/views/query"
|
|
26
|
+
headers = {}
|
|
27
|
+
query_params = Utils.get_query_params(Operations::GetViewershipsMetricsRequest, request)
|
|
28
|
+
headers['Accept'] = 'application/json'
|
|
29
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
30
|
+
|
|
31
|
+
r = @sdk_configuration.client.get(url) do |req|
|
|
32
|
+
req.headers = headers
|
|
33
|
+
req.params = query_params
|
|
34
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
38
|
+
|
|
39
|
+
res = Operations::GetViewershipsMetricsResponse.new(
|
|
40
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
41
|
+
)
|
|
42
|
+
if r.status == 200
|
|
43
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
44
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::ViewershipMetric])
|
|
45
|
+
res.data = out
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
res
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
sig { params(request: T.nilable(Operations::GetCreatorMetricsRequest)).returns(Utils::FieldAugmented) }
|
|
52
|
+
def get_creator_viewership(request)
|
|
53
|
+
# get_creator_viewership - Query creator viewership metrics
|
|
54
|
+
url, params = @sdk_configuration.get_server_details
|
|
55
|
+
base_url = Utils.template_url(url, params)
|
|
56
|
+
url = "#{base_url}/data/views/query/creator"
|
|
57
|
+
headers = {}
|
|
58
|
+
query_params = Utils.get_query_params(Operations::GetCreatorMetricsRequest, request)
|
|
59
|
+
headers['Accept'] = 'application/json'
|
|
60
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
61
|
+
|
|
62
|
+
r = @sdk_configuration.client.get(url) do |req|
|
|
63
|
+
req.headers = headers
|
|
64
|
+
req.params = query_params
|
|
65
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
69
|
+
|
|
70
|
+
res = Operations::GetCreatorMetricsResponse.new(
|
|
71
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
72
|
+
)
|
|
73
|
+
if r.status == 200
|
|
74
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
75
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[Shared::ViewershipMetric])
|
|
76
|
+
res.data = out
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
res
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
sig { params(playback_id: String).returns(Utils::FieldAugmented) }
|
|
83
|
+
def get_public_total_views(playback_id)
|
|
84
|
+
# get_public_total_views - Query public total views metrics
|
|
85
|
+
request = Operations::GetPublicTotalViewsMetricsRequest.new(
|
|
86
|
+
|
|
87
|
+
playback_id: playback_id
|
|
88
|
+
)
|
|
89
|
+
url, params = @sdk_configuration.get_server_details
|
|
90
|
+
base_url = Utils.template_url(url, params)
|
|
91
|
+
url = Utils.generate_url(
|
|
92
|
+
Operations::GetPublicTotalViewsMetricsRequest,
|
|
93
|
+
base_url,
|
|
94
|
+
'/data/views/query/total/{playbackId}',
|
|
95
|
+
request
|
|
96
|
+
)
|
|
97
|
+
headers = {}
|
|
98
|
+
headers['Accept'] = 'application/json'
|
|
99
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
100
|
+
|
|
101
|
+
r = @sdk_configuration.client.get(url) do |req|
|
|
102
|
+
req.headers = headers
|
|
103
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
107
|
+
|
|
108
|
+
res = Operations::GetPublicTotalViewsMetricsResponse.new(
|
|
109
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
110
|
+
)
|
|
111
|
+
if r.status == 200
|
|
112
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
113
|
+
out = Utils.unmarshal_complex(r.env.response_body, Operations::GetPublicTotalViewsMetricsData)
|
|
114
|
+
res.data = out
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
res
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
sig { params(from: T.nilable(Integer), to: T.nilable(Integer), time_step: T.nilable(Operations::GetUsageMetricsQueryParamTimeStep), creator_id: T.nilable(String)).returns(Utils::FieldAugmented) }
|
|
121
|
+
def get_usage(from = nil, to = nil, time_step = nil, creator_id = nil)
|
|
122
|
+
# get_usage - Query usage metrics
|
|
123
|
+
request = Operations::GetUsageMetricsRequest.new(
|
|
124
|
+
|
|
125
|
+
from: from,
|
|
126
|
+
to: to,
|
|
127
|
+
time_step: time_step,
|
|
128
|
+
creator_id: creator_id
|
|
129
|
+
)
|
|
130
|
+
url, params = @sdk_configuration.get_server_details
|
|
131
|
+
base_url = Utils.template_url(url, params)
|
|
132
|
+
url = "#{base_url}/data/usage/query"
|
|
133
|
+
headers = {}
|
|
134
|
+
query_params = Utils.get_query_params(Operations::GetUsageMetricsRequest, request)
|
|
135
|
+
headers['Accept'] = 'application/json'
|
|
136
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
|
137
|
+
|
|
138
|
+
r = @sdk_configuration.client.get(url) do |req|
|
|
139
|
+
req.headers = headers
|
|
140
|
+
req.params = query_params
|
|
141
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
|
145
|
+
|
|
146
|
+
res = Operations::GetUsageMetricsResponse.new(
|
|
147
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
|
148
|
+
)
|
|
149
|
+
if r.status == 200
|
|
150
|
+
if Utils.match_content_type(content_type, 'application/json')
|
|
151
|
+
out = Utils.unmarshal_complex(r.env.response_body, Shared::UsageMetric)
|
|
152
|
+
res.usage_metric = out
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
res
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
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 CreateMultistreamTargetResponse < 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 :classes, T.nilable(T::Array[Shared::MultistreamTarget])
|
|
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, classes: T.nilable(T::Array[Shared::MultistreamTarget]), raw_response: T.nilable(Faraday::Response)).void }
|
|
26
|
+
def initialize(content_type: nil, status_code: nil, classes: nil, raw_response: nil)
|
|
27
|
+
@content_type = content_type
|
|
28
|
+
@status_code = status_code
|
|
29
|
+
@classes = classes
|
|
30
|
+
@raw_response = raw_response
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
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/signing_key_response_payload'
|
|
9
|
+
|
|
10
|
+
module Livepeer
|
|
11
|
+
module Operations
|
|
12
|
+
|
|
13
|
+
class CreateSigningKeyResponse < 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 :signing_key_response_payload, T.nilable(Shared::SigningKeyResponsePayload)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), signing_key_response_payload: T.nilable(Shared::SigningKeyResponsePayload)).void }
|
|
27
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil, signing_key_response_payload: nil)
|
|
28
|
+
@content_type = content_type
|
|
29
|
+
@status_code = status_code
|
|
30
|
+
@raw_response = raw_response
|
|
31
|
+
@signing_key_response_payload = signing_key_response_payload
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
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 CreateStreamResponse < 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::Stream])
|
|
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::Stream]), 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,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/webhook'
|
|
9
|
+
|
|
10
|
+
module Livepeer
|
|
11
|
+
module Operations
|
|
12
|
+
|
|
13
|
+
class CreateWebhookResponse < 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 :webhook, T.nilable(Shared::Webhook)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), webhook: T.nilable(Shared::Webhook)).void }
|
|
27
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil, webhook: nil)
|
|
28
|
+
@content_type = content_type
|
|
29
|
+
@status_code = status_code
|
|
30
|
+
@raw_response = raw_response
|
|
31
|
+
@webhook = webhook
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
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 DeleteAssetRequest < Livepeer::Utils::FieldAugmented
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
# ID of the asset
|
|
16
|
+
field :asset_id, String, { 'path_param': { 'field_name': 'assetId', 'style': 'simple', 'explode': false } }
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
sig { params(asset_id: String).void }
|
|
20
|
+
def initialize(asset_id: nil)
|
|
21
|
+
@asset_id = asset_id
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class DeleteAssetResponse < Livepeer::Utils::FieldAugmented
|
|
27
|
+
extend T::Sig
|
|
28
|
+
|
|
29
|
+
# HTTP response content type for this operation
|
|
30
|
+
field :content_type, String
|
|
31
|
+
# HTTP response status code for this operation
|
|
32
|
+
field :status_code, Integer
|
|
33
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
34
|
+
field :raw_response, T.nilable(Faraday::Response)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response)).void }
|
|
38
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil)
|
|
39
|
+
@content_type = content_type
|
|
40
|
+
@status_code = status_code
|
|
41
|
+
@raw_response = raw_response
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
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 DeleteMultistreamTargetRequest < Livepeer::Utils::FieldAugmented
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
# ID of the multistream target
|
|
16
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
sig { params(id: String).void }
|
|
20
|
+
def initialize(id: nil)
|
|
21
|
+
@id = id
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class DeleteMultistreamTargetResponse < Livepeer::Utils::FieldAugmented
|
|
27
|
+
extend T::Sig
|
|
28
|
+
|
|
29
|
+
# HTTP response content type for this operation
|
|
30
|
+
field :content_type, String
|
|
31
|
+
# HTTP response status code for this operation
|
|
32
|
+
field :status_code, Integer
|
|
33
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
34
|
+
field :raw_response, T.nilable(Faraday::Response)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response)).void }
|
|
38
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil)
|
|
39
|
+
@content_type = content_type
|
|
40
|
+
@status_code = status_code
|
|
41
|
+
@raw_response = raw_response
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
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 DeleteSigningKeyRequest < Livepeer::Utils::FieldAugmented
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
# ID of the signing key
|
|
16
|
+
field :key_id, String, { 'path_param': { 'field_name': 'keyId', 'style': 'simple', 'explode': false } }
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
sig { params(key_id: String).void }
|
|
20
|
+
def initialize(key_id: nil)
|
|
21
|
+
@key_id = key_id
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class DeleteSigningKeyResponse < Livepeer::Utils::FieldAugmented
|
|
27
|
+
extend T::Sig
|
|
28
|
+
|
|
29
|
+
# HTTP response content type for this operation
|
|
30
|
+
field :content_type, String
|
|
31
|
+
# HTTP response status code for this operation
|
|
32
|
+
field :status_code, Integer
|
|
33
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
34
|
+
field :raw_response, T.nilable(Faraday::Response)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response)).void }
|
|
38
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil)
|
|
39
|
+
@content_type = content_type
|
|
40
|
+
@status_code = status_code
|
|
41
|
+
@raw_response = raw_response
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
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 DeleteStreamRequest < Livepeer::Utils::FieldAugmented
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
# ID of the stream
|
|
16
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
sig { params(id: String).void }
|
|
20
|
+
def initialize(id: nil)
|
|
21
|
+
@id = id
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class DeleteStreamResponse < Livepeer::Utils::FieldAugmented
|
|
27
|
+
extend T::Sig
|
|
28
|
+
|
|
29
|
+
# HTTP response content type for this operation
|
|
30
|
+
field :content_type, String
|
|
31
|
+
# HTTP response status code for this operation
|
|
32
|
+
field :status_code, Integer
|
|
33
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
34
|
+
field :raw_response, T.nilable(Faraday::Response)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response)).void }
|
|
38
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil)
|
|
39
|
+
@content_type = content_type
|
|
40
|
+
@status_code = status_code
|
|
41
|
+
@raw_response = raw_response
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
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 DeleteWebhookRequest < 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 DeleteWebhookResponse < 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,48 @@
|
|
|
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 GetSessionIdClipsRequest < Livepeer::Utils::FieldAugmented
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
# ID of the parent session
|
|
16
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
sig { params(id: String).void }
|
|
20
|
+
def initialize(id: nil)
|
|
21
|
+
@id = id
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class GetSessionIdClipsResponse < Livepeer::Utils::FieldAugmented
|
|
27
|
+
extend T::Sig
|
|
28
|
+
|
|
29
|
+
# HTTP response content type for this operation
|
|
30
|
+
field :content_type, String
|
|
31
|
+
# HTTP response status code for this operation
|
|
32
|
+
field :status_code, Integer
|
|
33
|
+
# Success
|
|
34
|
+
field :data, T.nilable(T::Array[Shared::Asset])
|
|
35
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
36
|
+
field :raw_response, T.nilable(Faraday::Response)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
sig { params(content_type: String, status_code: Integer, data: T.nilable(T::Array[Shared::Asset]), raw_response: T.nilable(Faraday::Response)).void }
|
|
40
|
+
def initialize(content_type: nil, status_code: nil, data: nil, raw_response: nil)
|
|
41
|
+
@content_type = content_type
|
|
42
|
+
@status_code = status_code
|
|
43
|
+
@data = data
|
|
44
|
+
@raw_response = raw_response
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
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 GetStreamIdClipsRequest < Livepeer::Utils::FieldAugmented
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
# ID of the parent stream or playbackId of parent stream
|
|
16
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
sig { params(id: String).void }
|
|
20
|
+
def initialize(id: nil)
|
|
21
|
+
@id = id
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class GetStreamIdClipsResponse < Livepeer::Utils::FieldAugmented
|
|
27
|
+
extend T::Sig
|
|
28
|
+
|
|
29
|
+
# HTTP response content type for this operation
|
|
30
|
+
field :content_type, String
|
|
31
|
+
# HTTP response status code for this operation
|
|
32
|
+
field :status_code, Integer
|
|
33
|
+
# Success
|
|
34
|
+
field :data, T.nilable(T::Array[Shared::Asset])
|
|
35
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
36
|
+
field :raw_response, T.nilable(Faraday::Response)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
sig { params(content_type: String, status_code: Integer, data: T.nilable(T::Array[Shared::Asset]), raw_response: T.nilable(Faraday::Response)).void }
|
|
40
|
+
def initialize(content_type: nil, status_code: nil, data: nil, raw_response: nil)
|
|
41
|
+
@content_type = content_type
|
|
42
|
+
@status_code = status_code
|
|
43
|
+
@data = data
|
|
44
|
+
@raw_response = raw_response
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
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/asset'
|
|
9
|
+
|
|
10
|
+
module Livepeer
|
|
11
|
+
module Operations
|
|
12
|
+
|
|
13
|
+
class GetAssetRequest < Livepeer::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
# ID of the asset
|
|
17
|
+
field :asset_id, String, { 'path_param': { 'field_name': 'assetId', 'style': 'simple', 'explode': false } }
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
sig { params(asset_id: String).void }
|
|
21
|
+
def initialize(asset_id: nil)
|
|
22
|
+
@asset_id = asset_id
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class GetAssetResponse < 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
|
+
# Success
|
|
35
|
+
field :asset, T.nilable(Shared::Asset)
|
|
36
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
37
|
+
field :raw_response, T.nilable(Faraday::Response)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
sig { params(content_type: String, status_code: Integer, asset: T.nilable(Shared::Asset), raw_response: T.nilable(Faraday::Response)).void }
|
|
41
|
+
def initialize(content_type: nil, status_code: nil, asset: nil, raw_response: nil)
|
|
42
|
+
@content_type = content_type
|
|
43
|
+
@status_code = status_code
|
|
44
|
+
@asset = asset
|
|
45
|
+
@raw_response = raw_response
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|