fastpixapi 1.1.2 → 1.1.4
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 +56 -48
- data/lib/crystalline/types.rb +3 -3
- data/lib/crystalline.rb +4 -5
- data/lib/fastpix_client/dimensions.rb +54 -61
- data/lib/fastpix_client/drm_configurations.rb +49 -56
- data/lib/fastpix_client/errors.rb +36 -25
- data/lib/fastpix_client/fastpixapi.rb +2 -4
- data/lib/fastpix_client/in_video_ai_features.rb +108 -168
- data/lib/fastpix_client/input_video.rb +70 -77
- data/lib/fastpix_client/live_playback.rb +82 -99
- data/lib/fastpix_client/manage_live_stream.rb +149 -264
- data/lib/fastpix_client/manage_videos.rb +249 -566
- data/lib/fastpix_client/metrics.rb +79 -123
- 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/createlivestreamresponsedto.rb +10 -18
- data/lib/fastpix_client/models/components/createmediarequest.rb +9 -18
- 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 +20 -38
- data/lib/fastpix_client/models/components/getallmediaresponse.rbi +2 -0
- 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/getcreatelivestreamresponsedto.rb +9 -20
- data/lib/fastpix_client/models/components/{getmediaresponse.rb → getmediadetailresponse.rb} +25 -43
- data/lib/fastpix_client/models/components/{getmediaresponse.rbi → getmediadetailresponse.rbi} +4 -2
- 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/live_media_clips.rb +16 -30
- data/lib/fastpix_client/models/components/live_media_clips.rbi +2 -0
- 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 +18 -35
- data/lib/fastpix_client/models/components/media.rbi +2 -0
- 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/patchresponsedata.rb +9 -18
- data/lib/fastpix_client/models/components/sourceaccessmedia.rb +18 -35
- data/lib/fastpix_client/models/components/sourceaccessmedia.rbi +2 -0
- 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 +18 -35
- data/lib/fastpix_client/models/components/update_media.rbi +2 -0
- 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/views.rb +51 -124
- data/lib/fastpix_client/models/components.rb +7 -7
- data/lib/fastpix_client/models/errors/empty_response_error.rb +15 -0
- data/lib/fastpix_client/models/errors.rb +1 -0
- 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/push_media_settings.rb +9 -20
- data/lib/fastpix_client/playback.rb +122 -213
- data/lib/fastpix_client/playlist.rb +152 -297
- data/lib/fastpix_client/sdk_hooks/registration.rb +2 -2
- data/lib/fastpix_client/sdk_hooks/types.rb +4 -0
- data/lib/fastpix_client/sdkconfiguration.rb +3 -3
- data/lib/fastpix_client/signing_keys.rb +76 -120
- data/lib/fastpix_client/simulcast_stream.rb +100 -144
- data/lib/fastpix_client/start_live_stream.rb +55 -37
- data/lib/fastpix_client/utils/forms.rb +97 -101
- data/lib/fastpix_client/utils/headers.rb +44 -34
- data/lib/fastpix_client/utils/query_params.rb +39 -29
- data/lib/fastpix_client/utils/request_bodies.rb +4 -8
- data/lib/fastpix_client/utils/security.rb +30 -18
- data/lib/fastpix_client/utils/url.rb +83 -60
- data/lib/fastpix_client/utils/utils.rb +19 -37
- data/lib/fastpix_client/views.rb +69 -93
- data/lib/fastpixapi.rb +10 -10
- data/lib/openssl_patch.rb +24 -24
- metadata +17 -18
- 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
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastpixapi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- FastPix
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|
|
@@ -411,20 +411,20 @@ files:
|
|
|
411
411
|
- lib/fastpix_client/models/components/getallsigningkeysresponsedto.rbi
|
|
412
412
|
- lib/fastpix_client/models/components/getcreatelivestreamresponsedto.rb
|
|
413
413
|
- lib/fastpix_client/models/components/getcreatelivestreamresponsedto.rbi
|
|
414
|
-
- lib/fastpix_client/models/components/
|
|
415
|
-
- lib/fastpix_client/models/components/
|
|
416
|
-
- lib/fastpix_client/models/components/
|
|
417
|
-
- lib/fastpix_client/models/components/
|
|
418
|
-
- lib/fastpix_client/models/components/
|
|
419
|
-
- lib/fastpix_client/models/components/
|
|
420
|
-
- lib/fastpix_client/models/components/
|
|
421
|
-
- lib/fastpix_client/models/components/
|
|
422
|
-
- lib/fastpix_client/models/components/
|
|
423
|
-
- lib/fastpix_client/models/components/
|
|
424
|
-
- lib/fastpix_client/models/components/
|
|
425
|
-
- lib/fastpix_client/models/components/
|
|
426
|
-
- lib/fastpix_client/models/components/
|
|
427
|
-
- lib/fastpix_client/models/components/
|
|
414
|
+
- lib/fastpix_client/models/components/getmediadetailresponse.rb
|
|
415
|
+
- lib/fastpix_client/models/components/getmediadetailresponse.rbi
|
|
416
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_maxresolution.rb
|
|
417
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_maxresolution.rbi
|
|
418
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_mediaquality.rb
|
|
419
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_mediaquality.rbi
|
|
420
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_mp4support.rb
|
|
421
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_mp4support.rbi
|
|
422
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_sourceresolution.rb
|
|
423
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_sourceresolution.rbi
|
|
424
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_status.rb
|
|
425
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_status.rbi
|
|
426
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_track.rb
|
|
427
|
+
- lib/fastpix_client/models/components/getmediadetailresponse_track.rbi
|
|
428
428
|
- lib/fastpix_client/models/components/getpublicpemusingsigningkeyidresponsedto.rb
|
|
429
429
|
- lib/fastpix_client/models/components/getpublicpemusingsigningkeyidresponsedto.rbi
|
|
430
430
|
- lib/fastpix_client/models/components/getpublicpemusingsigningkeyidresponsedto_data.rb
|
|
@@ -722,6 +722,7 @@ files:
|
|
|
722
722
|
- lib/fastpix_client/models/errors.rb
|
|
723
723
|
- lib/fastpix_client/models/errors/apierror.rb
|
|
724
724
|
- lib/fastpix_client/models/errors/apierror.rbi
|
|
725
|
+
- lib/fastpix_client/models/errors/empty_response_error.rb
|
|
725
726
|
- lib/fastpix_client/models/operations.rb
|
|
726
727
|
- lib/fastpix_client/models/operations/add_media_to_playlist_request.rb
|
|
727
728
|
- lib/fastpix_client/models/operations/add_media_to_playlist_request.rbi
|
|
@@ -1224,8 +1225,6 @@ files:
|
|
|
1224
1225
|
- lib/fastpix_client/views.rb
|
|
1225
1226
|
- lib/fastpixapi.rb
|
|
1226
1227
|
- lib/openssl_patch.rb
|
|
1227
|
-
- test/sdk_examples_test.rb
|
|
1228
|
-
- test/test_helper.rb
|
|
1229
1228
|
homepage: https://fastpix.com/docs
|
|
1230
1229
|
licenses:
|
|
1231
1230
|
- Apache-2.0
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class FastpixClient::Models::Components::GetMediaResponseMaxResolution
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class FastpixClient::Models::Components::GetMediaResponseMaxResolution
|
|
11
|
-
end
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class FastpixClient::Models::Components::GetMediaResponseMediaQuality
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class FastpixClient::Models::Components::GetMediaResponseMediaQuality
|
|
11
|
-
end
|
|
@@ -1,28 +0,0 @@
|
|
|
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 Components
|
|
10
|
-
# GetMediaResponseMp4Support - Determines the type of MP4 support for the media.
|
|
11
|
-
# - **none**: Disables MP4 support.
|
|
12
|
-
# - **capped_4k**: Enables MP4 downloads with resolutions up to 4K.
|
|
13
|
-
# - **audioOnly**: Provides an MP4 stream containing only the audio.
|
|
14
|
-
# - **audioOnly,capped_4k**: Enables both MP4 video downloads (up to 4K) and an audio-only stream.
|
|
15
|
-
#
|
|
16
|
-
class GetMediaResponseMp4Support < T::Enum
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
enums do
|
|
20
|
-
NONE = new('none')
|
|
21
|
-
CAPPED_4K = new('capped_4k')
|
|
22
|
-
AUDIO_ONLY = new('audioOnly')
|
|
23
|
-
AUDIO_ONLY_CAPPED_4K = new('audioOnly,capped_4k')
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class FastpixClient::Models::Components::GetMediaResponseMp4Support
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class FastpixClient::Models::Components::GetMediaResponseMp4Support
|
|
11
|
-
end
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# typed: true
|
|
2
|
-
# frozen_string_literal: true
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class FastpixClient::Models::Components::GetMediaResponseSourceResolution
|
|
6
|
-
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class FastpixClient::Models::Components::GetMediaResponseSourceResolution
|
|
11
|
-
end
|
data/test/sdk_examples_test.rb
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
require 'json'
|
|
2
|
-
require 'fastpixapi'
|
|
3
|
-
|
|
4
|
-
Models = ::FastpixClient::Models
|
|
5
|
-
s = ::FastpixClient::Fastpixapi.new(
|
|
6
|
-
security: Models::Components::Security.new(
|
|
7
|
-
username: 'your-access-token',
|
|
8
|
-
password: 'your-secret-key'
|
|
9
|
-
),
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
res = s.manage_videos.list_media(limit: 20, offset: 1, order_by: Models::Components::SortOrder::DESC)
|
|
13
|
-
|
|
14
|
-
begin
|
|
15
|
-
puts JSON.pretty_generate(JSON.parse(res.raw_response.body))
|
|
16
|
-
rescue FastpixClient::Models::Errors::APIError => e
|
|
17
|
-
puts JSON.pretty_generate(JSON.parse(e.body))
|
|
18
|
-
rescue StandardError
|
|
19
|
-
puts res.raw_response.body.to_s
|
|
20
|
-
end
|
data/test/test_helper.rb
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
|
|
4
|
-
|
|
5
|
-
require 'json'
|
|
6
|
-
require 'minitest/autorun'
|
|
7
|
-
require 'fastpixapi'
|
|
8
|
-
|
|
9
|
-
# Standard response handling for any SDK operation. Prints only the JSON body.
|
|
10
|
-
# res = s.input_video.create_media(request: req)
|
|
11
|
-
# print_response(res)
|
|
12
|
-
def print_response(res)
|
|
13
|
-
begin
|
|
14
|
-
puts JSON.pretty_generate(JSON.parse(res.raw_response.body))
|
|
15
|
-
rescue StandardError
|
|
16
|
-
puts res.raw_response.body.to_s
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# Standard error handling when the SDK raises APIError (4xx/5xx). Prints only the JSON body.
|
|
21
|
-
# rescue FastpixClient::Models::Errors::APIError => e
|
|
22
|
-
# print_api_error(e)
|
|
23
|
-
def print_api_error(err)
|
|
24
|
-
begin
|
|
25
|
-
puts JSON.pretty_generate(JSON.parse(err.body))
|
|
26
|
-
rescue StandardError
|
|
27
|
-
puts err.body.to_s
|
|
28
|
-
end
|
|
29
|
-
end
|