fastpixapi 1.1.1 → 1.1.3

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.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crystalline/metadata_fields.rb +56 -48
  3. data/lib/crystalline/types.rb +3 -3
  4. data/lib/crystalline.rb +4 -5
  5. data/lib/fastpix_client/dimensions.rb +55 -62
  6. data/lib/fastpix_client/drm_configurations.rb +51 -58
  7. data/lib/fastpix_client/errors.rb +36 -25
  8. data/lib/fastpix_client/fastpixapi.rb +2 -4
  9. data/lib/fastpix_client/in_video_ai_features.rb +108 -168
  10. data/lib/fastpix_client/input_video.rb +75 -83
  11. data/lib/fastpix_client/live_playback.rb +82 -99
  12. data/lib/fastpix_client/manage_live_stream.rb +145 -261
  13. data/lib/fastpix_client/manage_videos.rb +252 -567
  14. data/lib/fastpix_client/metrics.rb +82 -126
  15. data/lib/fastpix_client/models/components/addtrackrequest.rb +1 -1
  16. data/lib/fastpix_client/models/components/createlivestreamresponsedto.rb +10 -18
  17. data/lib/fastpix_client/models/components/createmediarequest.rb +10 -19
  18. data/lib/fastpix_client/models/components/deletesigningkeyresponse.rb +6 -2
  19. data/lib/fastpix_client/models/components/deletesigningkeyresponsedata.rb +33 -0
  20. data/lib/fastpix_client/models/components/getallmediaresponse.rb +13 -29
  21. data/lib/fastpix_client/models/components/getcreatelivestreamresponsedto.rb +9 -20
  22. data/lib/fastpix_client/models/components/getmediaresponse.rb +13 -29
  23. data/lib/fastpix_client/models/components/live_media_clips.rb +9 -21
  24. data/lib/fastpix_client/models/components/media.rb +11 -26
  25. data/lib/fastpix_client/models/components/patchresponsedata.rb +9 -18
  26. data/lib/fastpix_client/models/components/pullvideoinput.rb +1 -1
  27. data/lib/fastpix_client/models/components/sourceaccessmedia.rb +11 -26
  28. data/lib/fastpix_client/models/components/update_media.rb +11 -26
  29. data/lib/fastpix_client/models/components/views.rb +52 -125
  30. data/lib/fastpix_client/models/components/watermarkinput.rb +1 -1
  31. data/lib/fastpix_client/models/components.rb +1 -0
  32. data/lib/fastpix_client/models/errors/empty_response_error.rb +15 -0
  33. data/lib/fastpix_client/models/errors.rb +1 -0
  34. data/lib/fastpix_client/models/operations/add_media_to_playlist_response.rb +1 -1
  35. data/lib/fastpix_client/models/operations/add_media_track_response.rb +1 -1
  36. data/lib/fastpix_client/models/operations/cancel_upload_response.rb +1 -1
  37. data/lib/fastpix_client/models/operations/change_media_order_in_playlist_response.rb +1 -1
  38. data/lib/fastpix_client/models/operations/complete_live_stream_response.rb +1 -1
  39. data/lib/fastpix_client/models/operations/create_a_playlist_response.rb +1 -1
  40. data/lib/fastpix_client/models/operations/create_media_playback_id_response.rb +1 -1
  41. data/lib/fastpix_client/models/operations/create_media_response.rb +1 -1
  42. data/lib/fastpix_client/models/operations/create_new_stream_response.rb +1 -1
  43. data/lib/fastpix_client/models/operations/create_playbackid_of_stream_response.rb +1 -1
  44. data/lib/fastpix_client/models/operations/create_signing_key_response.rb +1 -1
  45. data/lib/fastpix_client/models/operations/create_simulcast_of_stream_response.rb +1 -1
  46. data/lib/fastpix_client/models/operations/delete_a_playlist_response.rb +1 -1
  47. data/lib/fastpix_client/models/operations/delete_live_stream_response.rb +1 -1
  48. data/lib/fastpix_client/models/operations/delete_media_from_playlist_response.rb +1 -1
  49. data/lib/fastpix_client/models/operations/delete_media_playback_id_response.rb +1 -1
  50. data/lib/fastpix_client/models/operations/delete_media_response.rb +1 -1
  51. data/lib/fastpix_client/models/operations/delete_media_track_response.rb +1 -1
  52. data/lib/fastpix_client/models/operations/delete_playbackid_of_stream_response.rb +1 -1
  53. data/lib/fastpix_client/models/operations/delete_signing_key_response.rb +1 -1
  54. data/lib/fastpix_client/models/operations/delete_simulcast_of_stream_response.rb +1 -1
  55. data/lib/fastpix_client/models/operations/direct_upload_video_media_request.rb +1 -1
  56. data/lib/fastpix_client/models/operations/direct_upload_video_media_response.rb +1 -1
  57. data/lib/fastpix_client/models/operations/disable_live_stream_response.rb +1 -1
  58. data/lib/fastpix_client/models/operations/enable_live_stream_response.rb +1 -1
  59. data/lib/fastpix_client/models/operations/generate_subtitle_track_response.rb +1 -1
  60. data/lib/fastpix_client/models/operations/get_all_playlists_response.rb +1 -1
  61. data/lib/fastpix_client/models/operations/get_all_streams_response.rb +1 -1
  62. data/lib/fastpix_client/models/operations/get_live_stream_by_id_response.rb +1 -1
  63. data/lib/fastpix_client/models/operations/get_live_stream_playback_id_response.rb +1 -1
  64. data/lib/fastpix_client/models/operations/get_live_stream_viewer_count_by_id_response.rb +1 -1
  65. data/lib/fastpix_client/models/operations/get_media_clips_response.rb +1 -1
  66. data/lib/fastpix_client/models/operations/get_media_response.rb +1 -1
  67. data/lib/fastpix_client/models/operations/get_media_summary_response.rb +1 -1
  68. data/lib/fastpix_client/models/operations/get_playback_id_response.rb +1 -1
  69. data/lib/fastpix_client/models/operations/get_playlist_by_id_response.rb +1 -1
  70. data/lib/fastpix_client/models/operations/get_signing_key_by_id_response.rb +1 -1
  71. data/lib/fastpix_client/models/operations/get_specific_simulcast_of_stream_response.rb +1 -1
  72. data/lib/fastpix_client/models/operations/get_timeseries_data_response.rb +1 -1
  73. data/lib/fastpix_client/models/operations/get_video_view_details_response.rb +1 -1
  74. data/lib/fastpix_client/models/operations/getdrmconfiguration_response.rb +1 -1
  75. data/lib/fastpix_client/models/operations/getdrmconfigurationbyid_response.rb +1 -1
  76. data/lib/fastpix_client/models/operations/list_breakdown_values_response.rb +1 -1
  77. data/lib/fastpix_client/models/operations/list_by_top_content_response.rb +1 -1
  78. data/lib/fastpix_client/models/operations/list_comparison_values_response.rb +1 -1
  79. data/lib/fastpix_client/models/operations/list_dimensions_response.rb +1 -1
  80. data/lib/fastpix_client/models/operations/list_errors_response.rb +1 -1
  81. data/lib/fastpix_client/models/operations/list_filter_values_for_dimension_response.rb +1 -1
  82. data/lib/fastpix_client/models/operations/list_live_clips_response.rb +1 -1
  83. data/lib/fastpix_client/models/operations/list_media_response.rb +1 -1
  84. data/lib/fastpix_client/models/operations/list_overall_values_response.rb +1 -1
  85. data/lib/fastpix_client/models/operations/list_playback_ids_response.rb +1 -1
  86. data/lib/fastpix_client/models/operations/list_signing_keys_response.rb +1 -1
  87. data/lib/fastpix_client/models/operations/list_uploads_response.rb +1 -1
  88. data/lib/fastpix_client/models/operations/list_video_views_response.rb +1 -1
  89. data/lib/fastpix_client/models/operations/push_media_settings.rb +10 -21
  90. data/lib/fastpix_client/models/operations/retrievemediainputinfo_response.rb +1 -1
  91. data/lib/fastpix_client/models/operations/update_a_playlist_response.rb +1 -1
  92. data/lib/fastpix_client/models/operations/update_domain_restrictions_response.rb +1 -1
  93. data/lib/fastpix_client/models/operations/update_live_stream_response.rb +1 -1
  94. data/lib/fastpix_client/models/operations/update_media_chapters_response.rb +1 -1
  95. data/lib/fastpix_client/models/operations/update_media_moderation_response.rb +1 -1
  96. data/lib/fastpix_client/models/operations/update_media_named_entities_response.rb +1 -1
  97. data/lib/fastpix_client/models/operations/update_media_summary_response.rb +1 -1
  98. data/lib/fastpix_client/models/operations/update_media_track_response.rb +1 -1
  99. data/lib/fastpix_client/models/operations/update_specific_simulcast_of_stream_response.rb +1 -1
  100. data/lib/fastpix_client/models/operations/update_user_agent_restrictions_response.rb +1 -1
  101. data/lib/fastpix_client/models/operations/updated_media_response.rb +1 -1
  102. data/lib/fastpix_client/models/operations/updated_mp4support_response.rb +1 -1
  103. data/lib/fastpix_client/models/operations/updated_source_access_response.rb +1 -1
  104. data/lib/fastpix_client/playback.rb +123 -214
  105. data/lib/fastpix_client/playlist.rb +151 -297
  106. data/lib/fastpix_client/sdk_hooks/registration.rb +2 -2
  107. data/lib/fastpix_client/sdk_hooks/types.rb +4 -0
  108. data/lib/fastpix_client/sdkconfiguration.rb +4 -4
  109. data/lib/fastpix_client/signing_keys.rb +79 -123
  110. data/lib/fastpix_client/simulcast_stream.rb +101 -145
  111. data/lib/fastpix_client/start_live_stream.rb +54 -36
  112. data/lib/fastpix_client/utils/forms.rb +97 -101
  113. data/lib/fastpix_client/utils/headers.rb +44 -34
  114. data/lib/fastpix_client/utils/query_params.rb +39 -29
  115. data/lib/fastpix_client/utils/request_bodies.rb +4 -8
  116. data/lib/fastpix_client/utils/security.rb +30 -18
  117. data/lib/fastpix_client/utils/url.rb +83 -55
  118. data/lib/fastpix_client/utils/utils.rb +19 -37
  119. data/lib/fastpix_client/views.rb +71 -95
  120. data/lib/fastpixapi.rb +10 -10
  121. data/lib/openssl_patch.rb +24 -24
  122. metadata +20 -4
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Playlist updated successfully
22
22
  field :playlist_created_response, Crystalline::Nilable.new(Models::Components::PlaylistCreatedResponse)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, playlist_created_response: T.nilable(Models::Components::PlaylistCreatedResponse), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Successfully updated domain restrictions
22
22
  field :object, Crystalline::Nilable.new(Models::Operations::UpdateDomainRestrictionsResponseBody)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdateDomainRestrictionsResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Stream details updated successfully
22
22
  field :patch_response_dto, Crystalline::Nilable.new(Models::Components::PatchResponseDTO)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, patch_response_dto: T.nilable(Models::Components::PatchResponseDTO), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Media details updated successfully with the chapters feature enabled or disabled
22
22
  field :object, Crystalline::Nilable.new(Models::Operations::UpdateMediaChaptersResponseBody)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdateMediaChaptersResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Media details updated successfully with the named entity extraction feature enabled or disabled
22
22
  field :object, Crystalline::Nilable.new(Models::Operations::UpdateMediaModerationResponseBody)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdateMediaModerationResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Media details updated successfully with the named entity extraction feature enabled or disabled
22
22
  field :object, Crystalline::Nilable.new(Models::Operations::UpdateMediaNamedEntitiesResponseBody)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdateMediaNamedEntitiesResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Media details updated successfully with the generated summary
22
22
  field :object, Crystalline::Nilable.new(Models::Operations::UpdateMediaSummaryResponseBody)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdateMediaSummaryResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Media details updated successfully
22
22
  field :object, Crystalline::Nilable.new(Models::Operations::UpdateMediaTrackResponseBody)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdateMediaTrackResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Stream's simulcast details fetched successfully
22
22
  field :simulcast_update_response, Crystalline::Nilable.new(Models::Components::SimulcastUpdateResponse)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, simulcast_update_response: T.nilable(Models::Components::SimulcastUpdateResponse), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Successfully updated user-agent restrictions
22
22
  field :object, Crystalline::Nilable.new(Models::Operations::UpdateUserAgentRestrictionsResponseBody)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdateUserAgentRestrictionsResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Media details updated successfully
22
22
  field :object, Crystalline::Nilable.new(Models::Operations::UpdatedMediaResponseBody)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdatedMediaResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Media details updated successfully
22
22
  field :object, Crystalline::Nilable.new(Models::Operations::UpdatedMp4SupportResponseBody)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdatedMp4SupportResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }
@@ -20,7 +20,7 @@ module FastpixClient
20
20
  field :raw_response, ::Faraday::Response
21
21
  # Media details updated successfully
22
22
  field :object, Crystalline::Nilable.new(Models::Operations::UpdatedSourceAccessResponseBody)
23
- # See the range of possible <a href="https://docs.fastpix.io/reference/error-codes">error</a> responses and their status codes.
23
+ # See the range of possible <a href="https://fastpix.com/docs/error-codes">error</a> responses and their status codes.
24
24
  field :default_error, Crystalline::Nilable.new(Models::Components::DefaultError)
25
25
 
26
26
  sig { params(content_type: ::String, status_code: ::Integer, raw_response: ::Faraday::Response, object: T.nilable(Models::Operations::UpdatedSourceAccessResponseBody), default_error: T.nilable(Models::Components::DefaultError)).void }