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
|
@@ -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 GetAssetsResponse < 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::Asset])
|
|
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::Asset]), 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,98 @@
|
|
|
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
|
+
# QueryParamTimeStep - The time step to aggregate viewership metrics by
|
|
12
|
+
class QueryParamTimeStep < 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 QueryParamBreakdownBy < T::Enum
|
|
25
|
+
enums do
|
|
26
|
+
DEVICE_TYPE = new('deviceType')
|
|
27
|
+
DEVICE = new('device')
|
|
28
|
+
CPU = new('cpu')
|
|
29
|
+
OS = new('os')
|
|
30
|
+
BROWSER = new('browser')
|
|
31
|
+
BROWSER_ENGINE = new('browserEngine')
|
|
32
|
+
CONTINENT = new('continent')
|
|
33
|
+
COUNTRY = new('country')
|
|
34
|
+
SUBDIVISION = new('subdivision')
|
|
35
|
+
TIMEZONE = new('timezone')
|
|
36
|
+
VIEWER_ID = new('viewerId')
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class GetCreatorMetricsRequest < Livepeer::Utils::FieldAugmented
|
|
43
|
+
extend T::Sig
|
|
44
|
+
|
|
45
|
+
# The asset ID to filter metrics for
|
|
46
|
+
field :asset_id, T.nilable(String), { 'query_param': { 'field_name': 'assetId', 'style': 'form', 'explode': true } }
|
|
47
|
+
# The list of fields to break down the query results. Specify this
|
|
48
|
+
# query-string multiple times to break down by multiple fields.
|
|
49
|
+
#
|
|
50
|
+
field :breakdown_by, T.nilable(T::Array[Operations::QueryParamBreakdownBy]), { 'query_param': { 'field_name': 'breakdownBy[]', 'style': 'form', 'explode': true } }
|
|
51
|
+
# The creator ID to filter the query results
|
|
52
|
+
field :creator_id, T.nilable(String), { 'query_param': { 'field_name': 'creatorId', 'style': 'form', 'explode': true } }
|
|
53
|
+
# Start timestamp for the query range (inclusive)
|
|
54
|
+
field :from, T.nilable(Object), { 'query_param': { 'field_name': 'from', 'style': 'form', 'explode': true } }
|
|
55
|
+
# The stream ID to filter metrics for
|
|
56
|
+
field :stream_id, T.nilable(String), { 'query_param': { 'field_name': 'streamId', 'style': 'form', 'explode': true } }
|
|
57
|
+
# The time step to aggregate viewership metrics by
|
|
58
|
+
field :time_step, T.nilable(Operations::QueryParamTimeStep), { 'query_param': { 'field_name': 'timeStep', 'style': 'form', 'explode': true } }
|
|
59
|
+
# End timestamp for the query range (exclusive)
|
|
60
|
+
field :to, T.nilable(Object), { 'query_param': { 'field_name': 'to', 'style': 'form', 'explode': true } }
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
sig { params(asset_id: T.nilable(String), breakdown_by: T.nilable(T::Array[Operations::QueryParamBreakdownBy]), creator_id: T.nilable(String), from: T.nilable(Object), stream_id: T.nilable(String), time_step: T.nilable(Operations::QueryParamTimeStep), to: T.nilable(Object)).void }
|
|
64
|
+
def initialize(asset_id: nil, breakdown_by: nil, creator_id: nil, from: nil, stream_id: nil, time_step: nil, to: nil)
|
|
65
|
+
@asset_id = asset_id
|
|
66
|
+
@breakdown_by = breakdown_by
|
|
67
|
+
@creator_id = creator_id
|
|
68
|
+
@from = from
|
|
69
|
+
@stream_id = stream_id
|
|
70
|
+
@time_step = time_step
|
|
71
|
+
@to = to
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class GetCreatorMetricsResponse < Livepeer::Utils::FieldAugmented
|
|
77
|
+
extend T::Sig
|
|
78
|
+
|
|
79
|
+
# HTTP response content type for this operation
|
|
80
|
+
field :content_type, String
|
|
81
|
+
# HTTP response status code for this operation
|
|
82
|
+
field :status_code, Integer
|
|
83
|
+
# A list of Metric objects
|
|
84
|
+
field :data, T.nilable(T::Array[Shared::ViewershipMetric])
|
|
85
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
86
|
+
field :raw_response, T.nilable(Faraday::Response)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
sig { params(content_type: String, status_code: Integer, data: T.nilable(T::Array[Shared::ViewershipMetric]), raw_response: T.nilable(Faraday::Response)).void }
|
|
90
|
+
def initialize(content_type: nil, status_code: nil, data: nil, raw_response: nil)
|
|
91
|
+
@content_type = content_type
|
|
92
|
+
@status_code = status_code
|
|
93
|
+
@data = data
|
|
94
|
+
@raw_response = raw_response
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
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'
|
|
9
|
+
|
|
10
|
+
module Livepeer
|
|
11
|
+
module Operations
|
|
12
|
+
|
|
13
|
+
class GetMultistreamTargetRequest < 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
|
+
|
|
20
|
+
sig { params(id: String).void }
|
|
21
|
+
def initialize(id: nil)
|
|
22
|
+
@id = id
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class GetMultistreamTargetResponse < 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 :multistream_target, T.nilable(Shared::MultistreamTarget)
|
|
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, multistream_target: T.nilable(Shared::MultistreamTarget), raw_response: T.nilable(Faraday::Response)).void }
|
|
41
|
+
def initialize(content_type: nil, status_code: nil, multistream_target: nil, raw_response: nil)
|
|
42
|
+
@content_type = content_type
|
|
43
|
+
@status_code = status_code
|
|
44
|
+
@multistream_target = multistream_target
|
|
45
|
+
@raw_response = raw_response
|
|
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 GetMultistreamTargetsResponse < 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::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, data: T.nilable(T::Array[Shared::MultistreamTarget]), 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/playback_info'
|
|
9
|
+
require_relative '../shared/error'
|
|
10
|
+
|
|
11
|
+
module Livepeer
|
|
12
|
+
module Operations
|
|
13
|
+
|
|
14
|
+
class GetPlaybackInfoRequest < Livepeer::Utils::FieldAugmented
|
|
15
|
+
extend T::Sig
|
|
16
|
+
|
|
17
|
+
# The ID of the playback
|
|
18
|
+
field :id, String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
sig { params(id: String).void }
|
|
22
|
+
def initialize(id: nil)
|
|
23
|
+
@id = id
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class GetPlaybackInfoResponse < Livepeer::Utils::FieldAugmented
|
|
29
|
+
extend T::Sig
|
|
30
|
+
|
|
31
|
+
# HTTP response content type for this operation
|
|
32
|
+
field :content_type, String
|
|
33
|
+
# HTTP response status code for this operation
|
|
34
|
+
field :status_code, Integer
|
|
35
|
+
# Playback not found
|
|
36
|
+
field :error, T.nilable(Shared::Error)
|
|
37
|
+
# Successful response
|
|
38
|
+
field :playback_info, T.nilable(Shared::PlaybackInfo)
|
|
39
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
40
|
+
field :raw_response, T.nilable(Faraday::Response)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
sig { params(content_type: String, status_code: Integer, error: T.nilable(Shared::Error), playback_info: T.nilable(Shared::PlaybackInfo), raw_response: T.nilable(Faraday::Response)).void }
|
|
44
|
+
def initialize(content_type: nil, status_code: nil, error: nil, playback_info: nil, raw_response: nil)
|
|
45
|
+
@content_type = content_type
|
|
46
|
+
@status_code = status_code
|
|
47
|
+
@error = error
|
|
48
|
+
@playback_info = playback_info
|
|
49
|
+
@raw_response = raw_response
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
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 GetPublicTotalViewsMetricsRequest < Livepeer::Utils::FieldAugmented
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
# The playback ID to filter the query results. This can be a canonical
|
|
16
|
+
# playback ID from Livepeer assets or streams, or dStorage identifiers
|
|
17
|
+
# for assets
|
|
18
|
+
#
|
|
19
|
+
field :playback_id, String, { 'path_param': { 'field_name': 'playbackId', 'style': 'simple', 'explode': false } }
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
sig { params(playback_id: String).void }
|
|
23
|
+
def initialize(playback_id: nil)
|
|
24
|
+
@playback_id = playback_id
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# A simplified metric object about aggregate viewership of an
|
|
29
|
+
# asset. Either playbackId or dStorageUrl will be set.
|
|
30
|
+
#
|
|
31
|
+
class GetPublicTotalViewsMetricsData < Livepeer::Utils::FieldAugmented
|
|
32
|
+
extend T::Sig
|
|
33
|
+
|
|
34
|
+
# The total playtime in minutes for the asset
|
|
35
|
+
field :playtime_mins, Float, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('playtimeMins') } }
|
|
36
|
+
# The number of views for the asset
|
|
37
|
+
field :view_count, Integer, { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('viewCount') } }
|
|
38
|
+
# The URL of the distributed storage used for the asset
|
|
39
|
+
field :d_storage_url, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('dStorageUrl') } }
|
|
40
|
+
# The playback ID associated with the metric
|
|
41
|
+
field :playback_id, T.nilable(String), { 'format_json': { 'letter_case': OpenApiSDK::Utils.field_name('playbackId') } }
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
sig { params(playtime_mins: Float, view_count: Integer, d_storage_url: T.nilable(String), playback_id: T.nilable(String)).void }
|
|
45
|
+
def initialize(playtime_mins: nil, view_count: nil, d_storage_url: nil, playback_id: nil)
|
|
46
|
+
@playtime_mins = playtime_mins
|
|
47
|
+
@view_count = view_count
|
|
48
|
+
@d_storage_url = d_storage_url
|
|
49
|
+
@playback_id = playback_id
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class GetPublicTotalViewsMetricsResponse < Livepeer::Utils::FieldAugmented
|
|
55
|
+
extend T::Sig
|
|
56
|
+
|
|
57
|
+
# HTTP response content type for this operation
|
|
58
|
+
field :content_type, String
|
|
59
|
+
# HTTP response status code for this operation
|
|
60
|
+
field :status_code, Integer
|
|
61
|
+
# A single Metric object with the viewCount and playtimeMins metrics.
|
|
62
|
+
field :data, T.nilable(Operations::GetPublicTotalViewsMetricsData)
|
|
63
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
64
|
+
field :raw_response, T.nilable(Faraday::Response)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
sig { params(content_type: String, status_code: Integer, data: T.nilable(Operations::GetPublicTotalViewsMetricsData), raw_response: T.nilable(Faraday::Response)).void }
|
|
68
|
+
def initialize(content_type: nil, status_code: nil, data: nil, raw_response: nil)
|
|
69
|
+
@content_type = content_type
|
|
70
|
+
@status_code = status_code
|
|
71
|
+
@data = data
|
|
72
|
+
@raw_response = raw_response
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
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
|
+
|
|
9
|
+
module Livepeer
|
|
10
|
+
module Operations
|
|
11
|
+
|
|
12
|
+
class GetRecordedSessionsRequest < Livepeer::Utils::FieldAugmented
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
# ID of the parent stream
|
|
16
|
+
field :parent_id, String, { 'path_param': { 'field_name': 'parentId', 'style': 'simple', 'explode': false } }
|
|
17
|
+
# Flag indicating if the response should only include recorded
|
|
18
|
+
# sessions
|
|
19
|
+
#
|
|
20
|
+
field :record, T.nilable(Integer), { 'query_param': { 'field_name': 'record', 'style': 'form', 'explode': true } }
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
sig { params(parent_id: String, record: T.nilable(Integer)).void }
|
|
24
|
+
def initialize(parent_id: nil, record: nil)
|
|
25
|
+
@parent_id = parent_id
|
|
26
|
+
@record = record
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class GetRecordedSessionsResponse < 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 :data, T.nilable(T::Array[Shared::Session])
|
|
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, data: T.nilable(T::Array[Shared::Session]), raw_response: T.nilable(Faraday::Response)).void }
|
|
45
|
+
def initialize(content_type: nil, status_code: nil, data: nil, raw_response: nil)
|
|
46
|
+
@content_type = content_type
|
|
47
|
+
@status_code = status_code
|
|
48
|
+
@data = data
|
|
49
|
+
@raw_response = raw_response
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
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/session'
|
|
9
|
+
|
|
10
|
+
module Livepeer
|
|
11
|
+
module Operations
|
|
12
|
+
|
|
13
|
+
class GetSessionRequest < Livepeer::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
# ID of the session
|
|
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 GetSessionResponse < 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 :session, T.nilable(Shared::Session)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), session: T.nilable(Shared::Session)).void }
|
|
41
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil, session: nil)
|
|
42
|
+
@content_type = content_type
|
|
43
|
+
@status_code = status_code
|
|
44
|
+
@raw_response = raw_response
|
|
45
|
+
@session = session
|
|
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 GetSessionsResponse < 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::Session])
|
|
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::Session]), 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,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/signing_key'
|
|
9
|
+
|
|
10
|
+
module Livepeer
|
|
11
|
+
module Operations
|
|
12
|
+
|
|
13
|
+
class GetSigningKeyRequest < Livepeer::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
# ID of the signing key
|
|
17
|
+
field :key_id, String, { 'path_param': { 'field_name': 'keyId', 'style': 'simple', 'explode': false } }
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
sig { params(key_id: String).void }
|
|
21
|
+
def initialize(key_id: nil)
|
|
22
|
+
@key_id = key_id
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class GetSigningKeyResponse < 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 :signing_key, T.nilable(Shared::SigningKey)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), signing_key: T.nilable(Shared::SigningKey)).void }
|
|
41
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil, signing_key: nil)
|
|
42
|
+
@content_type = content_type
|
|
43
|
+
@status_code = status_code
|
|
44
|
+
@raw_response = raw_response
|
|
45
|
+
@signing_key = signing_key
|
|
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 GetSigningKeysResponse < 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::SigningKey])
|
|
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::SigningKey]), 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,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/stream'
|
|
9
|
+
|
|
10
|
+
module Livepeer
|
|
11
|
+
module Operations
|
|
12
|
+
|
|
13
|
+
class GetStreamRequest < Livepeer::Utils::FieldAugmented
|
|
14
|
+
extend T::Sig
|
|
15
|
+
|
|
16
|
+
# ID of the stream
|
|
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 GetStreamResponse < 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 :stream, T.nilable(Shared::Stream)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
sig { params(content_type: String, status_code: Integer, raw_response: T.nilable(Faraday::Response), stream: T.nilable(Shared::Stream)).void }
|
|
41
|
+
def initialize(content_type: nil, status_code: nil, raw_response: nil, stream: nil)
|
|
42
|
+
@content_type = content_type
|
|
43
|
+
@status_code = status_code
|
|
44
|
+
@raw_response = raw_response
|
|
45
|
+
@stream = stream
|
|
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 GetStreamsRequest < Livepeer::Utils::FieldAugmented
|
|
13
|
+
extend T::Sig
|
|
14
|
+
|
|
15
|
+
# Filter the API response and retrieve a specific subset of stream objects based on certain criteria
|
|
16
|
+
field :streamsonly, T.nilable(String), { 'query_param': { 'field_name': 'streamsonly', 'style': 'form', 'explode': true } }
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
sig { params(streamsonly: T.nilable(String)).void }
|
|
20
|
+
def initialize(streamsonly: nil)
|
|
21
|
+
@streamsonly = streamsonly
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class GetStreamsResponse < 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::Stream])
|
|
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::Stream]), 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
|