post-for-me 0.1.0.pre.alpha.7 → 0.1.0.pre.alpha.8

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 (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/post_for_me/models/bluesky_configuration_dto.rb +32 -3
  5. data/lib/post_for_me/models/facebook_configuration_dto.rb +32 -3
  6. data/lib/post_for_me/models/instagram_configuration_dto.rb +32 -3
  7. data/lib/post_for_me/models/linkedin_configuration_dto.rb +32 -3
  8. data/lib/post_for_me/models/pinterest_configuration_dto.rb +32 -3
  9. data/lib/post_for_me/models/threads_configuration_dto.rb +32 -3
  10. data/lib/post_for_me/models/tiktok_configuration.rb +32 -3
  11. data/lib/post_for_me/models/twitter_configuration_dto.rb +32 -3
  12. data/lib/post_for_me/models/youtube_configuration_dto.rb +32 -3
  13. data/lib/post_for_me/version.rb +1 -1
  14. data/rbi/post_for_me/models/bluesky_configuration_dto.rbi +63 -3
  15. data/rbi/post_for_me/models/facebook_configuration_dto.rbi +60 -3
  16. data/rbi/post_for_me/models/instagram_configuration_dto.rbi +62 -3
  17. data/rbi/post_for_me/models/linkedin_configuration_dto.rbi +63 -3
  18. data/rbi/post_for_me/models/pinterest_configuration_dto.rbi +62 -3
  19. data/rbi/post_for_me/models/threads_configuration_dto.rbi +60 -3
  20. data/rbi/post_for_me/models/tiktok_configuration.rbi +57 -3
  21. data/rbi/post_for_me/models/twitter_configuration_dto.rbi +63 -3
  22. data/rbi/post_for_me/models/youtube_configuration_dto.rbi +60 -3
  23. data/sig/post_for_me/models/bluesky_configuration_dto.rbs +37 -4
  24. data/sig/post_for_me/models/facebook_configuration_dto.rbs +27 -4
  25. data/sig/post_for_me/models/instagram_configuration_dto.rbs +27 -4
  26. data/sig/post_for_me/models/linkedin_configuration_dto.rbs +37 -4
  27. data/sig/post_for_me/models/pinterest_configuration_dto.rbs +27 -4
  28. data/sig/post_for_me/models/threads_configuration_dto.rbs +27 -4
  29. data/sig/post_for_me/models/tiktok_configuration.rbs +27 -4
  30. data/sig/post_for_me/models/twitter_configuration_dto.rbs +37 -4
  31. data/sig/post_for_me/models/youtube_configuration_dto.rbs +35 -4
  32. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 951a66c1e45fb72722e5f71297ebd8dd34ff622e4062e4f0adecd585f870e758
4
- data.tar.gz: ee4387745b56c7b48a0edd473264a8ab5b84088f538109daecdba4c04392f129
3
+ metadata.gz: a5184e35560a1450d6ba4aa1d1ee45d81d515721f60373b20f48185c0138ef76
4
+ data.tar.gz: a94e68f06be96e9d740be9ab9bdbd2eae2ccc6c84f2d13c99979b8af1a3ad40c
5
5
  SHA512:
6
- metadata.gz: a318a9673892837459ed63ee5d5ff5049fd0ffe26018bc2a222cc48bca57830b3043180202072be1d5337e9aa7efa2863d2d621ab3f133f51772da0e16b75f3e
7
- data.tar.gz: 7db485907c9350625649a64f9ce73c35bfb0f114b2613171972d01f1d14ba51e40097c357b01cc0e93d7590e2c2c43c36387f590182ebc188265906c6a6ffd19
6
+ metadata.gz: d305f8e81294a82dfb1d92d87ba0091a1dab1cd4735a7bc31127a4cc48db458de2014bda479984a47aad2939537e1eb4c1b57f85ccfc38d84a98cfc20dcae112
7
+ data.tar.gz: ed001f25ccbdfb84a5c4672803353528d90f9566d132dce231c0e59bf7259ef2cabac5ee3653c1d8bab35cfe1d76fbbca5f121fa57afea0c8f04ef2ffa6c2808
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.8 (2025-09-06)
4
+
5
+ Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([b15e35d](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/b15e35d20fbac883c45ae3241b432b2fcbc8219e))
10
+
3
11
  ## 0.1.0-alpha.7 (2025-08-25)
4
12
 
5
13
  Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "post-for-me", "~> 0.1.0.pre.alpha.7"
20
+ gem "post-for-me", "~> 0.1.0.pre.alpha.8"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -12,13 +12,42 @@ module PostForMe
12
12
  # @!attribute media
13
13
  # Overrides the `media` from the post
14
14
  #
15
- # @return [Array<String>, nil]
16
- optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
15
+ # @return [Array<PostForMe::Models::BlueskyConfigurationDto::Media>, nil]
16
+ optional :media,
17
+ -> { PostForMe::Internal::Type::ArrayOf[PostForMe::BlueskyConfigurationDto::Media] },
18
+ nil?: true
17
19
 
18
20
  # @!method initialize(caption: nil, media: nil)
19
21
  # @param caption [Object, nil] Overrides the `caption` from the post
20
22
  #
21
- # @param media [Array<String>, nil] Overrides the `media` from the post
23
+ # @param media [Array<PostForMe::Models::BlueskyConfigurationDto::Media>, nil] Overrides the `media` from the post
24
+
25
+ class Media < PostForMe::Internal::Type::BaseModel
26
+ # @!attribute url
27
+ # Public URL of the media
28
+ #
29
+ # @return [String]
30
+ required :url, String
31
+
32
+ # @!attribute thumbnail_timestamp_ms
33
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
34
+ #
35
+ # @return [Object, nil]
36
+ optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
37
+
38
+ # @!attribute thumbnail_url
39
+ # Public URL of the thumbnail for the media
40
+ #
41
+ # @return [Object, nil]
42
+ optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
43
+
44
+ # @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
45
+ # @param url [String] Public URL of the media
46
+ #
47
+ # @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
48
+ #
49
+ # @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
50
+ end
22
51
  end
23
52
  end
24
53
  end
@@ -12,8 +12,10 @@ module PostForMe
12
12
  # @!attribute media
13
13
  # Overrides the `media` from the post
14
14
  #
15
- # @return [Array<String>, nil]
16
- optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
15
+ # @return [Array<PostForMe::Models::FacebookConfigurationDto::Media>, nil]
16
+ optional :media,
17
+ -> { PostForMe::Internal::Type::ArrayOf[PostForMe::FacebookConfigurationDto::Media] },
18
+ nil?: true
17
19
 
18
20
  # @!attribute placement
19
21
  # Facebook post placement
@@ -24,10 +26,37 @@ module PostForMe
24
26
  # @!method initialize(caption: nil, media: nil, placement: nil)
25
27
  # @param caption [Object, nil] Overrides the `caption` from the post
26
28
  #
27
- # @param media [Array<String>, nil] Overrides the `media` from the post
29
+ # @param media [Array<PostForMe::Models::FacebookConfigurationDto::Media>, nil] Overrides the `media` from the post
28
30
  #
29
31
  # @param placement [Symbol, PostForMe::Models::FacebookConfigurationDto::Placement, nil] Facebook post placement
30
32
 
33
+ class Media < PostForMe::Internal::Type::BaseModel
34
+ # @!attribute url
35
+ # Public URL of the media
36
+ #
37
+ # @return [String]
38
+ required :url, String
39
+
40
+ # @!attribute thumbnail_timestamp_ms
41
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
42
+ #
43
+ # @return [Object, nil]
44
+ optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
45
+
46
+ # @!attribute thumbnail_url
47
+ # Public URL of the thumbnail for the media
48
+ #
49
+ # @return [Object, nil]
50
+ optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
51
+
52
+ # @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
53
+ # @param url [String] Public URL of the media
54
+ #
55
+ # @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
56
+ #
57
+ # @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
58
+ end
59
+
31
60
  # Facebook post placement
32
61
  #
33
62
  # @see PostForMe::Models::FacebookConfigurationDto#placement
@@ -18,8 +18,10 @@ module PostForMe
18
18
  # @!attribute media
19
19
  # Overrides the `media` from the post
20
20
  #
21
- # @return [Array<String>, nil]
22
- optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
21
+ # @return [Array<PostForMe::Models::InstagramConfigurationDto::Media>, nil]
22
+ optional :media,
23
+ -> { PostForMe::Internal::Type::ArrayOf[PostForMe::InstagramConfigurationDto::Media] },
24
+ nil?: true
23
25
 
24
26
  # @!attribute placement
25
27
  # Instagram post placement
@@ -32,10 +34,37 @@ module PostForMe
32
34
  #
33
35
  # @param collaborators [Array<String>, nil] Instagram usernames to be tagged as a collaborator
34
36
  #
35
- # @param media [Array<String>, nil] Overrides the `media` from the post
37
+ # @param media [Array<PostForMe::Models::InstagramConfigurationDto::Media>, nil] Overrides the `media` from the post
36
38
  #
37
39
  # @param placement [Symbol, PostForMe::Models::InstagramConfigurationDto::Placement, nil] Instagram post placement
38
40
 
41
+ class Media < PostForMe::Internal::Type::BaseModel
42
+ # @!attribute url
43
+ # Public URL of the media
44
+ #
45
+ # @return [String]
46
+ required :url, String
47
+
48
+ # @!attribute thumbnail_timestamp_ms
49
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
50
+ #
51
+ # @return [Object, nil]
52
+ optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
53
+
54
+ # @!attribute thumbnail_url
55
+ # Public URL of the thumbnail for the media
56
+ #
57
+ # @return [Object, nil]
58
+ optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
59
+
60
+ # @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
61
+ # @param url [String] Public URL of the media
62
+ #
63
+ # @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
64
+ #
65
+ # @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
66
+ end
67
+
39
68
  # Instagram post placement
40
69
  #
41
70
  # @see PostForMe::Models::InstagramConfigurationDto#placement
@@ -12,13 +12,42 @@ module PostForMe
12
12
  # @!attribute media
13
13
  # Overrides the `media` from the post
14
14
  #
15
- # @return [Array<String>, nil]
16
- optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
15
+ # @return [Array<PostForMe::Models::LinkedinConfigurationDto::Media>, nil]
16
+ optional :media,
17
+ -> { PostForMe::Internal::Type::ArrayOf[PostForMe::LinkedinConfigurationDto::Media] },
18
+ nil?: true
17
19
 
18
20
  # @!method initialize(caption: nil, media: nil)
19
21
  # @param caption [Object, nil] Overrides the `caption` from the post
20
22
  #
21
- # @param media [Array<String>, nil] Overrides the `media` from the post
23
+ # @param media [Array<PostForMe::Models::LinkedinConfigurationDto::Media>, nil] Overrides the `media` from the post
24
+
25
+ class Media < PostForMe::Internal::Type::BaseModel
26
+ # @!attribute url
27
+ # Public URL of the media
28
+ #
29
+ # @return [String]
30
+ required :url, String
31
+
32
+ # @!attribute thumbnail_timestamp_ms
33
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
34
+ #
35
+ # @return [Object, nil]
36
+ optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
37
+
38
+ # @!attribute thumbnail_url
39
+ # Public URL of the thumbnail for the media
40
+ #
41
+ # @return [Object, nil]
42
+ optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
43
+
44
+ # @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
45
+ # @param url [String] Public URL of the media
46
+ #
47
+ # @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
48
+ #
49
+ # @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
50
+ end
22
51
  end
23
52
  end
24
53
  end
@@ -24,8 +24,10 @@ module PostForMe
24
24
  # @!attribute media
25
25
  # Overrides the `media` from the post
26
26
  #
27
- # @return [Array<String>, nil]
28
- optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
27
+ # @return [Array<PostForMe::Models::PinterestConfigurationDto::Media>, nil]
28
+ optional :media,
29
+ -> { PostForMe::Internal::Type::ArrayOf[PostForMe::PinterestConfigurationDto::Media] },
30
+ nil?: true
29
31
 
30
32
  # @!method initialize(board_ids: nil, caption: nil, link: nil, media: nil)
31
33
  # @param board_ids [Array<String>, nil] Pinterest board IDs
@@ -34,7 +36,34 @@ module PostForMe
34
36
  #
35
37
  # @param link [String, nil] Pinterest post link
36
38
  #
37
- # @param media [Array<String>, nil] Overrides the `media` from the post
39
+ # @param media [Array<PostForMe::Models::PinterestConfigurationDto::Media>, nil] Overrides the `media` from the post
40
+
41
+ class Media < PostForMe::Internal::Type::BaseModel
42
+ # @!attribute url
43
+ # Public URL of the media
44
+ #
45
+ # @return [String]
46
+ required :url, String
47
+
48
+ # @!attribute thumbnail_timestamp_ms
49
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
50
+ #
51
+ # @return [Object, nil]
52
+ optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
53
+
54
+ # @!attribute thumbnail_url
55
+ # Public URL of the thumbnail for the media
56
+ #
57
+ # @return [Object, nil]
58
+ optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
59
+
60
+ # @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
61
+ # @param url [String] Public URL of the media
62
+ #
63
+ # @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
64
+ #
65
+ # @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
66
+ end
38
67
  end
39
68
  end
40
69
  end
@@ -12,8 +12,10 @@ module PostForMe
12
12
  # @!attribute media
13
13
  # Overrides the `media` from the post
14
14
  #
15
- # @return [Array<String>, nil]
16
- optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
15
+ # @return [Array<PostForMe::Models::ThreadsConfigurationDto::Media>, nil]
16
+ optional :media,
17
+ -> { PostForMe::Internal::Type::ArrayOf[PostForMe::ThreadsConfigurationDto::Media] },
18
+ nil?: true
17
19
 
18
20
  # @!attribute placement
19
21
  # Threads post placement
@@ -24,10 +26,37 @@ module PostForMe
24
26
  # @!method initialize(caption: nil, media: nil, placement: nil)
25
27
  # @param caption [Object, nil] Overrides the `caption` from the post
26
28
  #
27
- # @param media [Array<String>, nil] Overrides the `media` from the post
29
+ # @param media [Array<PostForMe::Models::ThreadsConfigurationDto::Media>, nil] Overrides the `media` from the post
28
30
  #
29
31
  # @param placement [Symbol, PostForMe::Models::ThreadsConfigurationDto::Placement, nil] Threads post placement
30
32
 
33
+ class Media < PostForMe::Internal::Type::BaseModel
34
+ # @!attribute url
35
+ # Public URL of the media
36
+ #
37
+ # @return [String]
38
+ required :url, String
39
+
40
+ # @!attribute thumbnail_timestamp_ms
41
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
42
+ #
43
+ # @return [Object, nil]
44
+ optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
45
+
46
+ # @!attribute thumbnail_url
47
+ # Public URL of the thumbnail for the media
48
+ #
49
+ # @return [Object, nil]
50
+ optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
51
+
52
+ # @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
53
+ # @param url [String] Public URL of the media
54
+ #
55
+ # @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
56
+ #
57
+ # @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
58
+ end
59
+
31
60
  # Threads post placement
32
61
  #
33
62
  # @see PostForMe::Models::ThreadsConfigurationDto#placement
@@ -55,8 +55,10 @@ module PostForMe
55
55
  # @!attribute media
56
56
  # Overrides the `media` from the post
57
57
  #
58
- # @return [Array<String>, nil]
59
- optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
58
+ # @return [Array<PostForMe::Models::TiktokConfiguration::Media>, nil]
59
+ optional :media,
60
+ -> { PostForMe::Internal::Type::ArrayOf[PostForMe::TiktokConfiguration::Media] },
61
+ nil?: true
60
62
 
61
63
  # @!attribute privacy_status
62
64
  # Sets the privacy status for TikTok (private, public)
@@ -90,11 +92,38 @@ module PostForMe
90
92
  #
91
93
  # @param is_draft [Boolean, nil] Will create a draft upload to TikTok, posting will need to be completed from wit
92
94
  #
93
- # @param media [Array<String>, nil] Overrides the `media` from the post
95
+ # @param media [Array<PostForMe::Models::TiktokConfiguration::Media>, nil] Overrides the `media` from the post
94
96
  #
95
97
  # @param privacy_status [String, nil] Sets the privacy status for TikTok (private, public)
96
98
  #
97
99
  # @param title [String, nil] Overrides the `title` from the post
100
+
101
+ class Media < PostForMe::Internal::Type::BaseModel
102
+ # @!attribute url
103
+ # Public URL of the media
104
+ #
105
+ # @return [String]
106
+ required :url, String
107
+
108
+ # @!attribute thumbnail_timestamp_ms
109
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
110
+ #
111
+ # @return [Object, nil]
112
+ optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
113
+
114
+ # @!attribute thumbnail_url
115
+ # Public URL of the thumbnail for the media
116
+ #
117
+ # @return [Object, nil]
118
+ optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
119
+
120
+ # @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
121
+ # @param url [String] Public URL of the media
122
+ #
123
+ # @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
124
+ #
125
+ # @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
126
+ end
98
127
  end
99
128
  end
100
129
  end
@@ -12,13 +12,42 @@ module PostForMe
12
12
  # @!attribute media
13
13
  # Overrides the `media` from the post
14
14
  #
15
- # @return [Array<String>, nil]
16
- optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
15
+ # @return [Array<PostForMe::Models::TwitterConfigurationDto::Media>, nil]
16
+ optional :media,
17
+ -> { PostForMe::Internal::Type::ArrayOf[PostForMe::TwitterConfigurationDto::Media] },
18
+ nil?: true
17
19
 
18
20
  # @!method initialize(caption: nil, media: nil)
19
21
  # @param caption [Object, nil] Overrides the `caption` from the post
20
22
  #
21
- # @param media [Array<String>, nil] Overrides the `media` from the post
23
+ # @param media [Array<PostForMe::Models::TwitterConfigurationDto::Media>, nil] Overrides the `media` from the post
24
+
25
+ class Media < PostForMe::Internal::Type::BaseModel
26
+ # @!attribute url
27
+ # Public URL of the media
28
+ #
29
+ # @return [String]
30
+ required :url, String
31
+
32
+ # @!attribute thumbnail_timestamp_ms
33
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
34
+ #
35
+ # @return [Object, nil]
36
+ optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
37
+
38
+ # @!attribute thumbnail_url
39
+ # Public URL of the thumbnail for the media
40
+ #
41
+ # @return [Object, nil]
42
+ optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
43
+
44
+ # @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
45
+ # @param url [String] Public URL of the media
46
+ #
47
+ # @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
48
+ #
49
+ # @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
50
+ end
22
51
  end
23
52
  end
24
53
  end
@@ -12,8 +12,10 @@ module PostForMe
12
12
  # @!attribute media
13
13
  # Overrides the `media` from the post
14
14
  #
15
- # @return [Array<String>, nil]
16
- optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
15
+ # @return [Array<PostForMe::Models::YoutubeConfigurationDto::Media>, nil]
16
+ optional :media,
17
+ -> { PostForMe::Internal::Type::ArrayOf[PostForMe::YoutubeConfigurationDto::Media] },
18
+ nil?: true
17
19
 
18
20
  # @!attribute title
19
21
  # Overrides the `title` from the post
@@ -24,9 +26,36 @@ module PostForMe
24
26
  # @!method initialize(caption: nil, media: nil, title: nil)
25
27
  # @param caption [Object, nil] Overrides the `caption` from the post
26
28
  #
27
- # @param media [Array<String>, nil] Overrides the `media` from the post
29
+ # @param media [Array<PostForMe::Models::YoutubeConfigurationDto::Media>, nil] Overrides the `media` from the post
28
30
  #
29
31
  # @param title [String, nil] Overrides the `title` from the post
32
+
33
+ class Media < PostForMe::Internal::Type::BaseModel
34
+ # @!attribute url
35
+ # Public URL of the media
36
+ #
37
+ # @return [String]
38
+ required :url, String
39
+
40
+ # @!attribute thumbnail_timestamp_ms
41
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
42
+ #
43
+ # @return [Object, nil]
44
+ optional :thumbnail_timestamp_ms, PostForMe::Internal::Type::Unknown, nil?: true
45
+
46
+ # @!attribute thumbnail_url
47
+ # Public URL of the thumbnail for the media
48
+ #
49
+ # @return [Object, nil]
50
+ optional :thumbnail_url, PostForMe::Internal::Type::Unknown, nil?: true
51
+
52
+ # @!method initialize(url:, thumbnail_timestamp_ms: nil, thumbnail_url: nil)
53
+ # @param url [String] Public URL of the media
54
+ #
55
+ # @param thumbnail_timestamp_ms [Object, nil] Timestamp in milliseconds of frame to use as thumbnail for the media
56
+ #
57
+ # @param thumbnail_url [Object, nil] Public URL of the thumbnail for the media
58
+ end
30
59
  end
31
60
  end
32
61
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PostForMe
4
- VERSION = "0.1.0.pre.alpha.7"
4
+ VERSION = "0.1.0.pre.alpha.8"
5
5
  end
@@ -16,13 +16,18 @@ module PostForMe
16
16
  attr_accessor :caption
17
17
 
18
18
  # Overrides the `media` from the post
19
- sig { returns(T.nilable(T::Array[String])) }
19
+ sig do
20
+ returns(T.nilable(T::Array[PostForMe::BlueskyConfigurationDto::Media]))
21
+ end
20
22
  attr_accessor :media
21
23
 
22
24
  sig do
23
25
  params(
24
26
  caption: T.nilable(T.anything),
25
- media: T.nilable(T::Array[String])
27
+ media:
28
+ T.nilable(
29
+ T::Array[PostForMe::BlueskyConfigurationDto::Media::OrHash]
30
+ )
26
31
  ).returns(T.attached_class)
27
32
  end
28
33
  def self.new(
@@ -35,11 +40,66 @@ module PostForMe
35
40
 
36
41
  sig do
37
42
  override.returns(
38
- { caption: T.nilable(T.anything), media: T.nilable(T::Array[String]) }
43
+ {
44
+ caption: T.nilable(T.anything),
45
+ media:
46
+ T.nilable(T::Array[PostForMe::BlueskyConfigurationDto::Media])
47
+ }
39
48
  )
40
49
  end
41
50
  def to_hash
42
51
  end
52
+
53
+ class Media < PostForMe::Internal::Type::BaseModel
54
+ OrHash =
55
+ T.type_alias do
56
+ T.any(
57
+ PostForMe::BlueskyConfigurationDto::Media,
58
+ PostForMe::Internal::AnyHash
59
+ )
60
+ end
61
+
62
+ # Public URL of the media
63
+ sig { returns(String) }
64
+ attr_accessor :url
65
+
66
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
67
+ sig { returns(T.nilable(T.anything)) }
68
+ attr_accessor :thumbnail_timestamp_ms
69
+
70
+ # Public URL of the thumbnail for the media
71
+ sig { returns(T.nilable(T.anything)) }
72
+ attr_accessor :thumbnail_url
73
+
74
+ sig do
75
+ params(
76
+ url: String,
77
+ thumbnail_timestamp_ms: T.nilable(T.anything),
78
+ thumbnail_url: T.nilable(T.anything)
79
+ ).returns(T.attached_class)
80
+ end
81
+ def self.new(
82
+ # Public URL of the media
83
+ url:,
84
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
85
+ thumbnail_timestamp_ms: nil,
86
+ # Public URL of the thumbnail for the media
87
+ thumbnail_url: nil
88
+ )
89
+ end
90
+
91
+ sig do
92
+ override.returns(
93
+ {
94
+ url: String,
95
+ thumbnail_timestamp_ms: T.nilable(T.anything),
96
+ thumbnail_url: T.nilable(T.anything)
97
+ }
98
+ )
99
+ end
100
+ def to_hash
101
+ end
102
+ end
43
103
  end
44
104
  end
45
105
  end
@@ -16,7 +16,9 @@ module PostForMe
16
16
  attr_accessor :caption
17
17
 
18
18
  # Overrides the `media` from the post
19
- sig { returns(T.nilable(T::Array[String])) }
19
+ sig do
20
+ returns(T.nilable(T::Array[PostForMe::FacebookConfigurationDto::Media]))
21
+ end
20
22
  attr_accessor :media
21
23
 
22
24
  # Facebook post placement
@@ -30,7 +32,10 @@ module PostForMe
30
32
  sig do
31
33
  params(
32
34
  caption: T.nilable(T.anything),
33
- media: T.nilable(T::Array[String]),
35
+ media:
36
+ T.nilable(
37
+ T::Array[PostForMe::FacebookConfigurationDto::Media::OrHash]
38
+ ),
34
39
  placement:
35
40
  T.nilable(PostForMe::FacebookConfigurationDto::Placement::OrSymbol)
36
41
  ).returns(T.attached_class)
@@ -49,7 +54,8 @@ module PostForMe
49
54
  override.returns(
50
55
  {
51
56
  caption: T.nilable(T.anything),
52
- media: T.nilable(T::Array[String]),
57
+ media:
58
+ T.nilable(T::Array[PostForMe::FacebookConfigurationDto::Media]),
53
59
  placement:
54
60
  T.nilable(
55
61
  PostForMe::FacebookConfigurationDto::Placement::OrSymbol
@@ -60,6 +66,57 @@ module PostForMe
60
66
  def to_hash
61
67
  end
62
68
 
69
+ class Media < PostForMe::Internal::Type::BaseModel
70
+ OrHash =
71
+ T.type_alias do
72
+ T.any(
73
+ PostForMe::FacebookConfigurationDto::Media,
74
+ PostForMe::Internal::AnyHash
75
+ )
76
+ end
77
+
78
+ # Public URL of the media
79
+ sig { returns(String) }
80
+ attr_accessor :url
81
+
82
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
83
+ sig { returns(T.nilable(T.anything)) }
84
+ attr_accessor :thumbnail_timestamp_ms
85
+
86
+ # Public URL of the thumbnail for the media
87
+ sig { returns(T.nilable(T.anything)) }
88
+ attr_accessor :thumbnail_url
89
+
90
+ sig do
91
+ params(
92
+ url: String,
93
+ thumbnail_timestamp_ms: T.nilable(T.anything),
94
+ thumbnail_url: T.nilable(T.anything)
95
+ ).returns(T.attached_class)
96
+ end
97
+ def self.new(
98
+ # Public URL of the media
99
+ url:,
100
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
101
+ thumbnail_timestamp_ms: nil,
102
+ # Public URL of the thumbnail for the media
103
+ thumbnail_url: nil
104
+ )
105
+ end
106
+
107
+ sig do
108
+ override.returns(
109
+ {
110
+ url: String,
111
+ thumbnail_timestamp_ms: T.nilable(T.anything),
112
+ thumbnail_url: T.nilable(T.anything)
113
+ }
114
+ )
115
+ end
116
+ def to_hash
117
+ end
118
+ end
119
+
63
120
  # Facebook post placement
64
121
  module Placement
65
122
  extend PostForMe::Internal::Type::Enum