fastpixapi 1.1.3 → 1.2.0
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 +4 -4
- data/lib/crystalline/metadata_fields.rb +2 -0
- data/lib/crystalline/module.rb +12 -13
- data/lib/fastpix_client/dimensions.rb +3 -3
- data/lib/fastpix_client/errors.rb +1 -1
- data/lib/fastpix_client/in_video_ai_features.rb +8 -8
- data/lib/fastpix_client/input_video.rb +4 -3
- data/lib/fastpix_client/live_playback.rb +253 -0
- data/lib/fastpix_client/manage_live_stream.rb +13 -12
- data/lib/fastpix_client/manage_videos.rb +21 -23
- data/lib/fastpix_client/metrics.rb +3 -3
- data/lib/fastpix_client/models/components/addtrackrequest.rb +6 -2
- data/lib/fastpix_client/models/components/addtrackrequest.rbi +2 -0
- data/lib/fastpix_client/models/components/addtrackresponse.rb +6 -2
- data/lib/fastpix_client/models/components/addtrackresponse.rbi +2 -0
- data/lib/fastpix_client/models/components/audiotrack.rb +6 -2
- data/lib/fastpix_client/models/components/audiotrack.rbi +2 -0
- data/lib/fastpix_client/models/components/generatetrackresponse.rb +6 -2
- data/lib/fastpix_client/models/components/generatetrackresponse.rbi +2 -0
- data/lib/fastpix_client/models/components/getallmediaresponse.rb +11 -13
- data/lib/fastpix_client/models/components/getallmediaresponse.rbi +3 -1
- data/lib/fastpix_client/models/components/getallmediaresponse_mp4support.rb +32 -12
- data/lib/fastpix_client/models/components/getallmediaresponse_mp4support.rbi +11 -1
- data/lib/fastpix_client/models/components/getallmediaresponse_sourceresolution.rb +2 -0
- data/lib/fastpix_client/models/components/{getmediaresponse.rb → getmediadetailresponse.rb} +16 -18
- data/lib/fastpix_client/models/components/{getmediaresponse.rbi → getmediadetailresponse.rbi} +5 -3
- data/lib/fastpix_client/models/components/{getmediaresponse_maxresolution.rb → getmediadetailresponse_maxresolution.rb} +2 -2
- data/lib/fastpix_client/models/components/getmediadetailresponse_maxresolution.rbi +11 -0
- data/lib/fastpix_client/models/components/{getmediaresponse_mediaquality.rb → getmediadetailresponse_mediaquality.rb} +2 -2
- data/lib/fastpix_client/models/components/getmediadetailresponse_mediaquality.rbi +11 -0
- data/lib/fastpix_client/models/components/getmediadetailresponse_mp4support.rb +48 -0
- data/lib/fastpix_client/models/components/getmediadetailresponse_mp4support.rbi +21 -0
- data/lib/fastpix_client/models/components/{getmediaresponse_sourceresolution.rb → getmediadetailresponse_sourceresolution.rb} +4 -2
- data/lib/fastpix_client/models/components/getmediadetailresponse_sourceresolution.rbi +11 -0
- data/lib/fastpix_client/models/components/{getmediaresponse_status.rb → getmediadetailresponse_status.rb} +2 -2
- data/lib/fastpix_client/models/components/getmediadetailresponse_status.rbi +11 -0
- data/lib/fastpix_client/models/components/{getmediaresponse_track.rb → getmediadetailresponse_track.rb} +1 -1
- data/lib/fastpix_client/models/components/getmediadetailresponse_track.rbi +11 -0
- data/lib/fastpix_client/models/components/inputmediasettings.rb +7 -2
- data/lib/fastpix_client/models/components/inputmediasettings.rbi +2 -0
- data/lib/fastpix_client/models/components/live_media_clips.rb +11 -13
- data/lib/fastpix_client/models/components/live_media_clips.rbi +3 -1
- data/lib/fastpix_client/models/components/live_media_clips_mp4support.rb +32 -12
- data/lib/fastpix_client/models/components/live_media_clips_mp4support.rbi +11 -1
- data/lib/fastpix_client/models/components/live_media_clips_sourceresolution.rb +2 -0
- data/lib/fastpix_client/models/components/media.rb +11 -13
- data/lib/fastpix_client/models/components/media.rbi +3 -1
- data/lib/fastpix_client/models/components/media_mp4support.rb +32 -12
- data/lib/fastpix_client/models/components/media_mp4support.rbi +11 -1
- data/lib/fastpix_client/models/components/media_sourceresolution.rb +2 -0
- data/lib/fastpix_client/models/components/mediaclipresponse_data.rb +2 -2
- data/lib/fastpix_client/models/components/mediaclipresponse_data.rbi +1 -1
- data/lib/fastpix_client/models/components/playbackidrequest.rb +6 -2
- data/lib/fastpix_client/models/components/playbackidrequest.rbi +3 -1
- data/lib/fastpix_client/models/components/playbackidresponse.rb +6 -2
- data/lib/fastpix_client/models/components/playbackidresponse.rbi +3 -1
- data/lib/fastpix_client/models/components/playbackidsuccessresponse_data.rb +6 -2
- data/lib/fastpix_client/models/components/playbackidsuccessresponse_data.rbi +3 -1
- data/lib/fastpix_client/models/components/playbacksettings.rb +6 -2
- data/lib/fastpix_client/models/components/playbacksettings.rbi +3 -1
- data/lib/fastpix_client/models/components/playlistbyidresponsemedialistitem.rb +2 -2
- data/lib/fastpix_client/models/components/playlistbyidresponsemedialistitem.rbi +1 -1
- data/lib/fastpix_client/models/components/sourceaccessmedia.rb +11 -13
- data/lib/fastpix_client/models/components/sourceaccessmedia.rbi +3 -1
- data/lib/fastpix_client/models/components/sourceaccessmedia_mp4support.rb +32 -12
- data/lib/fastpix_client/models/components/sourceaccessmedia_mp4support.rbi +11 -1
- data/lib/fastpix_client/models/components/sourceaccessmedia_sourceresolution.rb +2 -0
- data/lib/fastpix_client/models/components/subtitletrack.rb +6 -2
- data/lib/fastpix_client/models/components/subtitletrack.rbi +2 -0
- data/lib/fastpix_client/models/components/tracksubtitlesgeneraterequest.rb +6 -2
- data/lib/fastpix_client/models/components/tracksubtitlesgeneraterequest.rbi +2 -0
- data/lib/fastpix_client/models/components/update_media.rb +11 -13
- data/lib/fastpix_client/models/components/update_media.rbi +3 -1
- data/lib/fastpix_client/models/components/update_media_maxresolution.rb +0 -1
- data/lib/fastpix_client/models/components/update_media_mp4support.rb +32 -12
- data/lib/fastpix_client/models/components/update_media_mp4support.rbi +11 -1
- data/lib/fastpix_client/models/components/updatetrackrequest.rb +7 -7
- data/lib/fastpix_client/models/components/updatetrackrequest.rbi +2 -2
- data/lib/fastpix_client/models/components/updatetrackresponse.rb +6 -2
- data/lib/fastpix_client/models/components/updatetrackresponse.rbi +2 -0
- data/lib/fastpix_client/models/components/videotrack.rb +6 -2
- data/lib/fastpix_client/models/components/videotrack.rbi +2 -0
- data/lib/fastpix_client/models/components/videotrackforgetall.rb +6 -2
- data/lib/fastpix_client/models/components/videotrackforgetall.rbi +2 -0
- data/lib/fastpix_client/models/components.rb +7 -7
- data/lib/fastpix_client/models/operations/get_media_response.rb +1 -1
- data/lib/fastpix_client/models/operations/get_media_responsebody.rb +2 -2
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_data.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_data.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_defaultpolicy.rb +21 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_defaultpolicy.rbi +11 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_request.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_request.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_requestbody.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_requestbody.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_response.rb +48 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_response.rbi +21 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_responsebody.rb +36 -0
- data/lib/fastpix_client/models/operations/update_live_stream_domain_restrictions_responsebody.rbi +15 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_data.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_data.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_defaultpolicy.rb +21 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_defaultpolicy.rbi +11 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_request.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_request.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_requestbody.rb +40 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_requestbody.rbi +17 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_response.rb +48 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_response.rbi +21 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_responsebody.rb +36 -0
- data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_responsebody.rbi +15 -0
- data/lib/fastpix_client/models/operations.rb +12 -0
- data/lib/fastpix_client/playlist.rb +2 -1
- data/lib/fastpix_client/sdkconfiguration.rb +3 -3
- data/lib/fastpix_client/simulcast_stream.rb +3 -3
- data/lib/fastpix_client/start_live_stream.rb +4 -4
- data/lib/fastpix_client/views.rb +3 -3
- metadata +58 -56
- data/lib/fastpix_client/models/components/getmediaresponse_maxresolution.rbi +0 -11
- data/lib/fastpix_client/models/components/getmediaresponse_mediaquality.rbi +0 -11
- data/lib/fastpix_client/models/components/getmediaresponse_mp4support.rb +0 -28
- data/lib/fastpix_client/models/components/getmediaresponse_mp4support.rbi +0 -11
- data/lib/fastpix_client/models/components/getmediaresponse_sourceresolution.rbi +0 -11
- data/lib/fastpix_client/models/components/getmediaresponse_status.rbi +0 -11
- data/lib/fastpix_client/models/components/getmediaresponse_track.rbi +0 -11
- data/test/sdk_examples_test.rb +0 -20
- data/test/test_helper.rb +0 -29
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
class UpdateLiveStreamUserAgentRestrictionsData
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# Specifies the default behavior for user agents not listed in the allow or deny lists.
|
|
16
|
+
field :default_policy, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('defaultPolicy') } }
|
|
17
|
+
# List of user-agent substrings explicitly allowed.
|
|
18
|
+
field :allow, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('allow') } }
|
|
19
|
+
# List of user-agent substrings explicitly denied.
|
|
20
|
+
field :deny, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('deny') } }
|
|
21
|
+
|
|
22
|
+
sig { params(default_policy: T.nilable(::String), allow: T.nilable(T::Array[::String]), deny: T.nilable(T::Array[::String])).void }
|
|
23
|
+
def initialize(default_policy: nil, allow: nil, deny: nil)
|
|
24
|
+
@default_policy = default_policy
|
|
25
|
+
@allow = allow
|
|
26
|
+
@deny = deny
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
|
+
def ==(other)
|
|
31
|
+
return false unless other.is_a? self.class
|
|
32
|
+
return false unless @default_policy == other.default_policy
|
|
33
|
+
return false unless @allow == other.allow
|
|
34
|
+
return false unless @deny == other.deny
|
|
35
|
+
true
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsData
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsData
|
|
11
|
+
def default_policy(); end
|
|
12
|
+
def default_policy=(str_); end
|
|
13
|
+
def allow(); end
|
|
14
|
+
def allow=(str_); end
|
|
15
|
+
def deny(); end
|
|
16
|
+
def deny=(str_); end
|
|
17
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
# UpdateLiveStreamUserAgentRestrictionsDefaultPolicy - The default behavior when a user-agent is not listed in `allow` or `deny`.
|
|
11
|
+
class UpdateLiveStreamUserAgentRestrictionsDefaultPolicy < T::Enum
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
enums do
|
|
15
|
+
ALLOW = new('allow')
|
|
16
|
+
DENY = new('deny')
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy
|
|
11
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_request.rb
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
class UpdateLiveStreamUserAgentRestrictionsRequest
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
field :stream_id, ::String, { 'path_param': { 'field_name': 'streamId', 'style': 'simple', 'explode': false } }
|
|
17
|
+
|
|
18
|
+
field :playback_id, ::String, { 'path_param': { 'field_name': 'playbackId', 'style': 'simple', 'explode': false } }
|
|
19
|
+
|
|
20
|
+
field :body, Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequestBody, { 'request': { 'media_type': 'application/json' } }
|
|
21
|
+
|
|
22
|
+
sig { params(stream_id: ::String, playback_id: ::String, body: Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequestBody).void }
|
|
23
|
+
def initialize(stream_id:, playback_id:, body:)
|
|
24
|
+
@stream_id = stream_id
|
|
25
|
+
@playback_id = playback_id
|
|
26
|
+
@body = body
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
|
+
def ==(other)
|
|
31
|
+
return false unless other.is_a? self.class
|
|
32
|
+
return false unless @stream_id == other.stream_id
|
|
33
|
+
return false unless @playback_id == other.playback_id
|
|
34
|
+
return false unless @body == other.body
|
|
35
|
+
true
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_request.rbi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequest
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequest
|
|
11
|
+
def stream_id(); end
|
|
12
|
+
def stream_id=(str_); end
|
|
13
|
+
def playback_id(); end
|
|
14
|
+
def playback_id=(str_); end
|
|
15
|
+
def body(); end
|
|
16
|
+
def body=(str_); end
|
|
17
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_requestbody.rb
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
class UpdateLiveStreamUserAgentRestrictionsRequestBody
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# List of user-agent substrings explicitly allowed.
|
|
16
|
+
field :allow, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('allow') } }
|
|
17
|
+
# List of user-agent substrings explicitly denied.
|
|
18
|
+
field :deny, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('deny') } }
|
|
19
|
+
# The default behavior when a user-agent is not listed in `allow` or `deny`.
|
|
20
|
+
field :default_policy, Crystalline::Nilable.new(Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('defaultPolicy'), 'decoder': Utils.enum_from_string(Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy, true) } }
|
|
21
|
+
|
|
22
|
+
sig { params(allow: T.nilable(T::Array[::String]), deny: T.nilable(T::Array[::String]), default_policy: T.nilable(Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy)).void }
|
|
23
|
+
def initialize(allow: nil, deny: nil, default_policy: Models::Operations::UpdateLiveStreamUserAgentRestrictionsDefaultPolicy::ALLOW)
|
|
24
|
+
@allow = allow
|
|
25
|
+
@deny = deny
|
|
26
|
+
@default_policy = default_policy
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
30
|
+
def ==(other)
|
|
31
|
+
return false unless other.is_a? self.class
|
|
32
|
+
return false unless @allow == other.allow
|
|
33
|
+
return false unless @deny == other.deny
|
|
34
|
+
return false unless @default_policy == other.default_policy
|
|
35
|
+
true
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_requestbody.rbi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequestBody
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsRequestBody
|
|
11
|
+
def allow(); end
|
|
12
|
+
def allow=(str_); end
|
|
13
|
+
def deny(); end
|
|
14
|
+
def deny=(str_); end
|
|
15
|
+
def default_policy(); end
|
|
16
|
+
def default_policy=(str_); end
|
|
17
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_response.rb
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
|
|
11
|
+
class UpdateLiveStreamUserAgentRestrictionsResponse
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
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
|
+
# Raw HTTP response; suitable for custom response parsing
|
|
20
|
+
field :raw_response, ::Faraday::Response
|
|
21
|
+
# Successfully updated user-agent restrictions
|
|
22
|
+
field :object, Crystalline::Nilable.new(Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponseBody)
|
|
23
|
+
# See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
|
|
24
|
+
field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
|
|
25
|
+
|
|
26
|
+
sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
|
|
27
|
+
def initialize(content_type:, status_code:, raw_response:, object: nil, default_error: nil)
|
|
28
|
+
@content_type = content_type
|
|
29
|
+
@status_code = status_code
|
|
30
|
+
@raw_response = raw_response
|
|
31
|
+
@object = object
|
|
32
|
+
@default_error = default_error
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
36
|
+
def ==(other)
|
|
37
|
+
return false unless other.is_a? self.class
|
|
38
|
+
return false unless @content_type == other.content_type
|
|
39
|
+
return false unless @status_code == other.status_code
|
|
40
|
+
return false unless @raw_response == other.raw_response
|
|
41
|
+
return false unless @object == other.object
|
|
42
|
+
return false unless @default_error == other.default_error
|
|
43
|
+
true
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_response.rbi
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponse
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponse
|
|
11
|
+
def content_type(); end
|
|
12
|
+
def content_type=(str_); end
|
|
13
|
+
def status_code(); end
|
|
14
|
+
def status_code=(str_); end
|
|
15
|
+
def raw_response(); end
|
|
16
|
+
def raw_response=(str_); end
|
|
17
|
+
def object(); end
|
|
18
|
+
def object=(str_); end
|
|
19
|
+
def default_error(); end
|
|
20
|
+
def default_error=(str_); end
|
|
21
|
+
end
|
data/lib/fastpix_client/models/operations/update_live_stream_user_agent_restrictions_responsebody.rb
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Generated code for FastPix API SDK.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module FastpixClient
|
|
8
|
+
module Models
|
|
9
|
+
module Operations
|
|
10
|
+
# Successfully updated user-agent restrictions
|
|
11
|
+
class UpdateLiveStreamUserAgentRestrictionsResponseBody
|
|
12
|
+
extend T::Sig
|
|
13
|
+
include Crystalline::MetadataFields
|
|
14
|
+
|
|
15
|
+
# Shows the request status. Returns true for success and false for failure.
|
|
16
|
+
field :success, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('success') } }
|
|
17
|
+
|
|
18
|
+
field :data, Crystalline::Nilable.new(Models::Operations::UpdateLiveStreamUserAgentRestrictionsData), { 'format_json': { 'letter_case': ::FastpixClient::Utils.field_name('data') } }
|
|
19
|
+
|
|
20
|
+
sig { params(success: T.nilable(T::Boolean), data: T.nilable(Models::Operations::UpdateLiveStreamUserAgentRestrictionsData)).void }
|
|
21
|
+
def initialize(success: nil, data: nil)
|
|
22
|
+
@success = success
|
|
23
|
+
@data = data
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
27
|
+
def ==(other)
|
|
28
|
+
return false unless other.is_a? self.class
|
|
29
|
+
return false unless @success == other.success
|
|
30
|
+
return false unless @data == other.data
|
|
31
|
+
true
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponseBody
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FastpixClient::Models::Operations::UpdateLiveStreamUserAgentRestrictionsResponseBody
|
|
11
|
+
def success(); end
|
|
12
|
+
def success=(str_); end
|
|
13
|
+
def data(); end
|
|
14
|
+
def data=(str_); end
|
|
15
|
+
end
|
|
@@ -233,6 +233,18 @@ module FastpixClient
|
|
|
233
233
|
autoload :UpdateUserAgentRestrictionsData, 'fastpix_client/models/operations/update_user_agent_restrictions_data.rb'
|
|
234
234
|
autoload :UpdateUserAgentRestrictionsDefaultPolicy, 'fastpix_client/models/operations/update_user_agent_restrictions_defaultpolicy.rb'
|
|
235
235
|
autoload :UpdateUserAgentRestrictionsResponse, 'fastpix_client/models/operations/update_user_agent_restrictions_response.rb'
|
|
236
|
+
autoload :UpdateLiveStreamDomainRestrictionsRequest, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_request.rb'
|
|
237
|
+
autoload :UpdateLiveStreamDomainRestrictionsRequestBody, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_requestbody.rb'
|
|
238
|
+
autoload :UpdateLiveStreamDomainRestrictionsResponseBody, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_responsebody.rb'
|
|
239
|
+
autoload :UpdateLiveStreamDomainRestrictionsData, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_data.rb'
|
|
240
|
+
autoload :UpdateLiveStreamDomainRestrictionsDefaultPolicy, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_defaultpolicy.rb'
|
|
241
|
+
autoload :UpdateLiveStreamDomainRestrictionsResponse, 'fastpix_client/models/operations/update_live_stream_domain_restrictions_response.rb'
|
|
242
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsRequest, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_request.rb'
|
|
243
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsRequestBody, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_requestbody.rb'
|
|
244
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsResponseBody, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_responsebody.rb'
|
|
245
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsData, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_data.rb'
|
|
246
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsDefaultPolicy, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_defaultpolicy.rb'
|
|
247
|
+
autoload :UpdateLiveStreamUserAgentRestrictionsResponse, 'fastpix_client/models/operations/update_live_stream_user_agent_restrictions_response.rb'
|
|
236
248
|
autoload :UpdatedMediaRequest, 'fastpix_client/models/operations/updated_media_request.rb'
|
|
237
249
|
autoload :UpdatedMp4SupportRequest, 'fastpix_client/models/operations/updated_mp4support_request.rb'
|
|
238
250
|
autoload :UpdatedSourceAccessRequest, 'fastpix_client/models/operations/updated_source_access_request.rb'
|
|
@@ -101,7 +101,8 @@ module FastpixClient
|
|
|
101
101
|
# - **Manual:** Creates an empty playlist without any initial media items. Use this mode for manual curation, where you add items later in a user-defined sequence.
|
|
102
102
|
# - **Smart:** Auto-populates the playlist at creation time based on the filter criteria (for example, a video creation date range) that you provide in the request.
|
|
103
103
|
#
|
|
104
|
-
# For more details, see <a href="https://fastpix.com/docs/
|
|
104
|
+
# For more details, see <a href="https://fastpix.com/docs/video-on-demand/create-and-manage-playlists">Create and manage playlist</a>.
|
|
105
|
+
|
|
105
106
|
#
|
|
106
107
|
# #### How it works
|
|
107
108
|
#
|
|
@@ -91,16 +91,16 @@ module FastpixClient
|
|
|
91
91
|
end
|
|
92
92
|
@language = 'ruby'
|
|
93
93
|
@openapi_doc_version = '1.0.0'
|
|
94
|
-
@sdk_version = '1.
|
|
94
|
+
@sdk_version = '1.2.0'
|
|
95
95
|
@gen_version = '2.801.0'
|
|
96
|
-
@user_agent = 'fastpixapi-ruby 1.
|
|
96
|
+
@user_agent = 'fastpixapi-ruby 1.2.0'
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
|
100
100
|
def get_server_details
|
|
101
101
|
return [@server_url.delete_suffix('/'), {}] if !@server_url.nil?
|
|
102
102
|
@server_idx = T.must(@server_idx)
|
|
103
|
-
[T.must(SERVERS[@server_idx]), {}]
|
|
103
|
+
[T.must(SERVERS[@server_idx]).delete_suffix('/'), {}]
|
|
104
104
|
end
|
|
105
105
|
end
|
|
106
106
|
end
|
|
@@ -104,7 +104,7 @@ module FastpixClient
|
|
|
104
104
|
# #### Example
|
|
105
105
|
# An event manager sets up a live stream for a virtual conference and wants to simulcast the stream on YouTube and Facebook Live. They first create the primary live stream in FastPix, ensuring it's in the idle state. Then, they use the API to create a simulcast target for YouTube.
|
|
106
106
|
#
|
|
107
|
-
# Related guide: <a href="https://fastpix.com/docs/
|
|
107
|
+
# Related guide: <a href="https://fastpix.com/docs/live-streaming/simulcast-to-multiple-platforms">Simulcast to 3rd party platforms</a>
|
|
108
108
|
request = Models::Operations::CreateSimulcastOfStreamRequest.new(
|
|
109
109
|
stream_id: stream_id,
|
|
110
110
|
body: body
|
|
@@ -221,7 +221,7 @@ module FastpixClient
|
|
|
221
221
|
# delete_simulcast_of_stream - Delete a simulcast
|
|
222
222
|
# Deletes a simulcast using its unique simulcastId, which you received during the simulcast creation process. Deleting a simulcast stops the broadcast to the associated platform, while the parent stream continues if it’s live. This action can’t be undone, and you must create a new simulcast to resume streaming to the same platform.
|
|
223
223
|
#
|
|
224
|
-
# Webhook event: <a href="https://fastpix.com/docs/
|
|
224
|
+
# Webhook event: <a href="https://fastpix.com/docs/webhooks/live-events#videolive_streamsimulcast_targetdeleted">video.live_stream.simulcast_target.deleted</a>
|
|
225
225
|
#
|
|
226
226
|
#
|
|
227
227
|
# #### Example
|
|
@@ -452,7 +452,7 @@ module FastpixClient
|
|
|
452
452
|
# update_specific_simulcast_of_stream - Update a simulcast
|
|
453
453
|
# Updates the status of a specific simulcast linked to a parent live stream. You can enable or disable the simulcast at any time while the parent stream is active or idle. After the live stream is disabled, the simulcast can no longer be modified.
|
|
454
454
|
#
|
|
455
|
-
# Webhook event: <a href="https://fastpix.com/docs/
|
|
455
|
+
# Webhook event: <a href="https://fastpix.com/docs/webhooks/live-events#videolive_streamsimulcast_targetupdated">video.live_stream.simulcast_target.updated</a>
|
|
456
456
|
#
|
|
457
457
|
# #### Example
|
|
458
458
|
# When a `PATCH` request is made to this endpoint, the API updates the status of the simulcast. This can be useful for pausing or resuming a simulcast on a particular platform without stopping the parent live stream.
|
|
@@ -88,7 +88,8 @@ module FastpixClient
|
|
|
88
88
|
sig { params(request: Models::Components::CreateLiveStreamRequest, timeout_ms: T.nilable(Integer)).returns(Models::Operations::CreateNewStreamResponse) }
|
|
89
89
|
def create_new_stream(request:, timeout_ms: nil)
|
|
90
90
|
# create_new_stream - Create a new stream
|
|
91
|
-
# Creates a new <a href="https://fastpix.com/docs/
|
|
91
|
+
# Creates a new <a href="https://fastpix.com/docs/live-streaming/live-stream-with-rtmps">RTMPS</a> or <a href="https://fastpix.com/docs/live-streaming/live-stream-with-srt">SRT</a> live stream in FastPix. When you create a stream, FastPix generates a unique `streamKey` and `srtSecret` that you can use with broadcasting software such as OBS to connect to FastPix RTMPS or SRT servers. Use SRT for live streaming in unstable network conditions, as it provides error correction and encryption for a more reliable and secure broadcast.
|
|
92
|
+
|
|
92
93
|
#
|
|
93
94
|
# Leverage SRT for live streaming in environments with unstable networks, taking advantage of its error correction and encryption features for a resilient and secure broadcast.
|
|
94
95
|
#
|
|
@@ -98,8 +99,7 @@ module FastpixClient
|
|
|
98
99
|
#
|
|
99
100
|
# 2. FastPix returns the stream details for both RTMPS and SRT configurations. These keys and IDs from the stream details are essential for connecting the broadcasting software to FastPix’s servers and transmitting the live stream to viewers.
|
|
100
101
|
#
|
|
101
|
-
# 3. After the live stream is created, FastPix sends a `POST` request to your specified webhook endpoint with the event <a href="https://fastpix.com/docs/
|
|
102
|
-
#
|
|
102
|
+
# 3. After the live stream is created, FastPix sends a `POST` request to your specified webhook endpoint with the event <a href="https://fastpix.com/docs/webhooks/live-events#videolive_streamcreated">video.live_stream.created</a>.
|
|
103
103
|
#
|
|
104
104
|
# **Example:**
|
|
105
105
|
#
|
|
@@ -107,7 +107,7 @@ module FastpixClient
|
|
|
107
107
|
# Imagine a gaming platform that allows users to live stream gameplay directly from their dashboard. The API creates a new stream, provides the necessary stream key, and sets it to "private" so that only specific viewers can access it.
|
|
108
108
|
#
|
|
109
109
|
#
|
|
110
|
-
# Related guide: <a href="https://fastpix.com/docs/
|
|
110
|
+
# Related guide: <a href="https://fastpix.com/docs/live-streaming/quickstart">How to live stream</a>
|
|
111
111
|
url, params = @sdk_configuration.get_server_details
|
|
112
112
|
base_url = Utils.template_url(url, params)
|
|
113
113
|
url = "#{base_url}/live/streams"
|
data/lib/fastpix_client/views.rb
CHANGED
|
@@ -103,7 +103,7 @@ module FastpixClient
|
|
|
103
103
|
# If you manage a video streaming service and want to analyze content performance across devices and browsers. By calling the List Video Views endpoint with filters such as `browser_name` and `device_type`, you can identify which platforms are most popular with your audience. This information helps optimize content for widely used platforms and troubleshoot playback issues on less common devices.
|
|
104
104
|
#
|
|
105
105
|
#
|
|
106
|
-
#
|
|
106
|
+
# Related guide: <a href="https://fastpix.com/docs/video-data/audience-metrics">Audience metrics</a>, <a href="https://fastpix.com/docs/video-data/explore-the-dashboard#1-views-dashboard">Views dashboard</a>
|
|
107
107
|
url, params = @sdk_configuration.get_server_details
|
|
108
108
|
base_url = Utils.template_url(url, params)
|
|
109
109
|
url = "#{base_url}/data/viewlist"
|
|
@@ -217,7 +217,7 @@ module FastpixClient
|
|
|
217
217
|
# If a developer receives a report of a poor viewing experience for a specific user. By using this endpoint with the users `viewId`, the developer can retrieve metrics like buffering duration, playback errors, and session length. This data allows the developer to pinpoint issues (such as poor connectivity or a browser-specific problem) and take steps to improve the user experience.
|
|
218
218
|
#
|
|
219
219
|
#
|
|
220
|
-
# Related guide: <a href="https://fastpix.com/docs/
|
|
220
|
+
# Related guide: <a href="https://fastpix.com/docs/video-data/what-video-data-do-we-capture">What Video Data do we capture?</a>
|
|
221
221
|
request = Models::Operations::GetVideoViewDetailsRequest.new(
|
|
222
222
|
view_id: view_id
|
|
223
223
|
)
|
|
@@ -342,7 +342,7 @@ module FastpixClient
|
|
|
342
342
|
# 5. You receive a response containing the list of top video views matching the specified criteria.
|
|
343
343
|
#
|
|
344
344
|
#
|
|
345
|
-
#
|
|
345
|
+
# Related guide: <a href="https://fastpix.com/docs/video-data/identify-top-performing-content">Get top-performing content</a>
|
|
346
346
|
#
|
|
347
347
|
request = Models::Operations::ListByTopContentRequest.new(
|
|
348
348
|
timespan: timespan,
|