post-for-me 0.1.0.pre.alpha.10 → 0.1.0.pre.alpha.12

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/README.md +10 -1
  4. data/lib/post_for_me/client.rb +4 -0
  5. data/lib/post_for_me/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/post_for_me/internal/util.rb +7 -2
  7. data/lib/post_for_me/models/create_social_post.rb +158 -8
  8. data/lib/post_for_me/models/platform_post.rb +843 -0
  9. data/lib/post_for_me/models/social_account_create_auth_url_params.rb +245 -9
  10. data/lib/post_for_me/models/social_account_feed_list_params.rb +81 -0
  11. data/lib/post_for_me/models/social_account_feed_list_response.rb +58 -0
  12. data/lib/post_for_me/models/social_post.rb +155 -8
  13. data/lib/post_for_me/models/social_post_list_params.rb +9 -1
  14. data/lib/post_for_me/models/social_post_result_list_params.rb +10 -1
  15. data/lib/post_for_me/models/youtube_configuration_dto.rb +31 -1
  16. data/lib/post_for_me/models.rb +4 -0
  17. data/lib/post_for_me/resources/social_account_feeds.rb +51 -0
  18. data/lib/post_for_me/resources/social_accounts.rb +8 -1
  19. data/lib/post_for_me/resources/social_post_results.rb +3 -1
  20. data/lib/post_for_me/resources/social_posts.rb +3 -1
  21. data/lib/post_for_me/version.rb +1 -1
  22. data/lib/post_for_me.rb +5 -0
  23. data/manifest.yaml +1 -0
  24. data/rbi/post_for_me/client.rbi +3 -0
  25. data/rbi/post_for_me/models/create_social_post.rbi +328 -8
  26. data/rbi/post_for_me/models/platform_post.rbi +1287 -0
  27. data/rbi/post_for_me/models/social_account_create_auth_url_params.rbi +545 -15
  28. data/rbi/post_for_me/models/social_account_feed_list_params.rbi +157 -0
  29. data/rbi/post_for_me/models/social_account_feed_list_response.rbi +110 -0
  30. data/rbi/post_for_me/models/social_post.rbi +328 -8
  31. data/rbi/post_for_me/models/social_post_list_params.rbi +11 -0
  32. data/rbi/post_for_me/models/social_post_result_list_params.rbi +13 -0
  33. data/rbi/post_for_me/models/youtube_configuration_dto.rbi +63 -0
  34. data/rbi/post_for_me/models.rbi +4 -0
  35. data/rbi/post_for_me/resources/social_account_feeds.rbi +51 -0
  36. data/rbi/post_for_me/resources/social_accounts.rbi +13 -0
  37. data/rbi/post_for_me/resources/social_post_results.rbi +4 -0
  38. data/rbi/post_for_me/resources/social_posts.rbi +3 -0
  39. data/sig/post_for_me/client.rbs +2 -0
  40. data/sig/post_for_me/models/create_social_post.rbs +120 -8
  41. data/sig/post_for_me/models/platform_post.rbs +660 -0
  42. data/sig/post_for_me/models/social_account_create_auth_url_params.rbs +193 -10
  43. data/sig/post_for_me/models/social_account_feed_list_params.rbs +75 -0
  44. data/sig/post_for_me/models/social_account_feed_list_response.rbs +54 -0
  45. data/sig/post_for_me/models/social_post.rbs +120 -8
  46. data/sig/post_for_me/models/social_post_list_params.rbs +7 -0
  47. data/sig/post_for_me/models/social_post_result_list_params.rbs +8 -1
  48. data/sig/post_for_me/models/youtube_configuration_dto.rbs +22 -0
  49. data/sig/post_for_me/models.rbs +4 -0
  50. data/sig/post_for_me/resources/social_account_feeds.rbs +18 -0
  51. data/sig/post_for_me/resources/social_accounts.rbs +2 -0
  52. data/sig/post_for_me/resources/social_post_results.rbs +1 -0
  53. data/sig/post_for_me/resources/social_posts.rbs +1 -0
  54. metadata +28 -2
@@ -4,7 +4,9 @@ module PostForMe
4
4
  {
5
5
  platform: String,
6
6
  external_id: String,
7
- platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData
7
+ permissions: ::Array[PostForMe::Models::SocialAccountCreateAuthURLParams::permission],
8
+ platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData,
9
+ redirect_url_override: String
8
10
  }
9
11
  & PostForMe::Internal::Type::request_parameters
10
12
 
@@ -18,31 +20,62 @@ module PostForMe
18
20
 
19
21
  def external_id=: (String) -> String
20
22
 
23
+ attr_reader permissions: ::Array[PostForMe::Models::SocialAccountCreateAuthURLParams::permission]?
24
+
25
+ def permissions=: (
26
+ ::Array[PostForMe::Models::SocialAccountCreateAuthURLParams::permission]
27
+ ) -> ::Array[PostForMe::Models::SocialAccountCreateAuthURLParams::permission]
28
+
21
29
  attr_reader platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData?
22
30
 
23
31
  def platform_data=: (
24
32
  PostForMe::SocialAccountCreateAuthURLParams::PlatformData
25
33
  ) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData
26
34
 
35
+ attr_reader redirect_url_override: String?
36
+
37
+ def redirect_url_override=: (String) -> String
38
+
27
39
  def initialize: (
28
40
  platform: String,
29
41
  ?external_id: String,
42
+ ?permissions: ::Array[PostForMe::Models::SocialAccountCreateAuthURLParams::permission],
30
43
  ?platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData,
44
+ ?redirect_url_override: String,
31
45
  ?request_options: PostForMe::request_opts
32
46
  ) -> void
33
47
 
34
48
  def to_hash: -> {
35
49
  platform: String,
36
50
  external_id: String,
51
+ permissions: ::Array[PostForMe::Models::SocialAccountCreateAuthURLParams::permission],
37
52
  platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData,
53
+ redirect_url_override: String,
38
54
  request_options: PostForMe::RequestOptions
39
55
  }
40
56
 
57
+ type permission = :posts | :feeds
58
+
59
+ module Permission
60
+ extend PostForMe::Internal::Type::Enum
61
+
62
+ POSTS: :posts
63
+ FEEDS: :feeds
64
+
65
+ def self?.values: -> ::Array[PostForMe::Models::SocialAccountCreateAuthURLParams::permission]
66
+ end
67
+
41
68
  type platform_data =
42
69
  {
43
70
  bluesky: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky,
71
+ facebook: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Facebook,
44
72
  instagram: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Instagram,
45
- linkedin: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin
73
+ linkedin: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin,
74
+ pinterest: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Pinterest,
75
+ threads: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Threads,
76
+ tiktok: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Tiktok,
77
+ tiktok_business: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::TiktokBusiness,
78
+ youtube: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Youtube
46
79
  }
47
80
 
48
81
  class PlatformData < PostForMe::Internal::Type::BaseModel
@@ -52,6 +85,12 @@ module PostForMe
52
85
  PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky
53
86
  ) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky
54
87
 
88
+ attr_reader facebook: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Facebook?
89
+
90
+ def facebook=: (
91
+ PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Facebook
92
+ ) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Facebook
93
+
55
94
  attr_reader instagram: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Instagram?
56
95
 
57
96
  def instagram=: (
@@ -64,16 +103,58 @@ module PostForMe
64
103
  PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin
65
104
  ) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin
66
105
 
106
+ attr_reader pinterest: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Pinterest?
107
+
108
+ def pinterest=: (
109
+ PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Pinterest
110
+ ) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Pinterest
111
+
112
+ attr_reader threads: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Threads?
113
+
114
+ def threads=: (
115
+ PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Threads
116
+ ) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Threads
117
+
118
+ attr_reader tiktok: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Tiktok?
119
+
120
+ def tiktok=: (
121
+ PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Tiktok
122
+ ) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Tiktok
123
+
124
+ attr_reader tiktok_business: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::TiktokBusiness?
125
+
126
+ def tiktok_business=: (
127
+ PostForMe::SocialAccountCreateAuthURLParams::PlatformData::TiktokBusiness
128
+ ) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData::TiktokBusiness
129
+
130
+ attr_reader youtube: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Youtube?
131
+
132
+ def youtube=: (
133
+ PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Youtube
134
+ ) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Youtube
135
+
67
136
  def initialize: (
68
137
  ?bluesky: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky,
138
+ ?facebook: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Facebook,
69
139
  ?instagram: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Instagram,
70
- ?linkedin: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin
140
+ ?linkedin: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin,
141
+ ?pinterest: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Pinterest,
142
+ ?threads: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Threads,
143
+ ?tiktok: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Tiktok,
144
+ ?tiktok_business: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::TiktokBusiness,
145
+ ?youtube: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Youtube
71
146
  ) -> void
72
147
 
73
148
  def to_hash: -> {
74
149
  bluesky: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky,
150
+ facebook: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Facebook,
75
151
  instagram: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Instagram,
76
- linkedin: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin
152
+ linkedin: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin,
153
+ pinterest: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Pinterest,
154
+ threads: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Threads,
155
+ tiktok: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Tiktok,
156
+ tiktok_business: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::TiktokBusiness,
157
+ youtube: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Youtube
77
158
  }
78
159
 
79
160
  type bluesky = { app_password: String, handle: String }
@@ -88,20 +169,43 @@ module PostForMe
88
169
  def to_hash: -> { app_password: String, handle: String }
89
170
  end
90
171
 
172
+ type facebook = { permission_overrides: ::Array[::Array[top]] }
173
+
174
+ class Facebook < PostForMe::Internal::Type::BaseModel
175
+ attr_reader permission_overrides: ::Array[::Array[top]]?
176
+
177
+ def permission_overrides=: (
178
+ ::Array[::Array[top]]
179
+ ) -> ::Array[::Array[top]]
180
+
181
+ def initialize: (?permission_overrides: ::Array[::Array[top]]) -> void
182
+
183
+ def to_hash: -> { permission_overrides: ::Array[::Array[top]] }
184
+ end
185
+
91
186
  type instagram =
92
187
  {
93
- connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Instagram::connection_type
188
+ connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Instagram::connection_type,
189
+ permission_overrides: ::Array[::Array[top]]
94
190
  }
95
191
 
96
192
  class Instagram < PostForMe::Internal::Type::BaseModel
97
193
  attr_accessor connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Instagram::connection_type
98
194
 
195
+ attr_reader permission_overrides: ::Array[::Array[top]]?
196
+
197
+ def permission_overrides=: (
198
+ ::Array[::Array[top]]
199
+ ) -> ::Array[::Array[top]]
200
+
99
201
  def initialize: (
100
- connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Instagram::connection_type
202
+ connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Instagram::connection_type,
203
+ ?permission_overrides: ::Array[::Array[top]]
101
204
  ) -> void
102
205
 
103
206
  def to_hash: -> {
104
- connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Instagram::connection_type
207
+ connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Instagram::connection_type,
208
+ permission_overrides: ::Array[::Array[top]]
105
209
  }
106
210
 
107
211
  type connection_type = :instagram | :facebook
@@ -118,18 +222,27 @@ module PostForMe
118
222
 
119
223
  type linkedin =
120
224
  {
121
- connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type
225
+ connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type,
226
+ permission_overrides: ::Array[::Array[top]]
122
227
  }
123
228
 
124
229
  class Linkedin < PostForMe::Internal::Type::BaseModel
125
230
  attr_accessor connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type
126
231
 
232
+ attr_reader permission_overrides: ::Array[::Array[top]]?
233
+
234
+ def permission_overrides=: (
235
+ ::Array[::Array[top]]
236
+ ) -> ::Array[::Array[top]]
237
+
127
238
  def initialize: (
128
- connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type
239
+ connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type,
240
+ ?permission_overrides: ::Array[::Array[top]]
129
241
  ) -> void
130
242
 
131
243
  def to_hash: -> {
132
- connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type
244
+ connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type,
245
+ permission_overrides: ::Array[::Array[top]]
133
246
  }
134
247
 
135
248
  type connection_type = :personal | :organization
@@ -143,6 +256,76 @@ module PostForMe
143
256
  def self?.values: -> ::Array[PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type]
144
257
  end
145
258
  end
259
+
260
+ type pinterest = { permission_overrides: ::Array[::Array[top]] }
261
+
262
+ class Pinterest < PostForMe::Internal::Type::BaseModel
263
+ attr_reader permission_overrides: ::Array[::Array[top]]?
264
+
265
+ def permission_overrides=: (
266
+ ::Array[::Array[top]]
267
+ ) -> ::Array[::Array[top]]
268
+
269
+ def initialize: (?permission_overrides: ::Array[::Array[top]]) -> void
270
+
271
+ def to_hash: -> { permission_overrides: ::Array[::Array[top]] }
272
+ end
273
+
274
+ type threads = { permission_overrides: ::Array[::Array[top]] }
275
+
276
+ class Threads < PostForMe::Internal::Type::BaseModel
277
+ attr_reader permission_overrides: ::Array[::Array[top]]?
278
+
279
+ def permission_overrides=: (
280
+ ::Array[::Array[top]]
281
+ ) -> ::Array[::Array[top]]
282
+
283
+ def initialize: (?permission_overrides: ::Array[::Array[top]]) -> void
284
+
285
+ def to_hash: -> { permission_overrides: ::Array[::Array[top]] }
286
+ end
287
+
288
+ type tiktok = { permission_overrides: ::Array[::Array[top]] }
289
+
290
+ class Tiktok < PostForMe::Internal::Type::BaseModel
291
+ attr_reader permission_overrides: ::Array[::Array[top]]?
292
+
293
+ def permission_overrides=: (
294
+ ::Array[::Array[top]]
295
+ ) -> ::Array[::Array[top]]
296
+
297
+ def initialize: (?permission_overrides: ::Array[::Array[top]]) -> void
298
+
299
+ def to_hash: -> { permission_overrides: ::Array[::Array[top]] }
300
+ end
301
+
302
+ type tiktok_business = { permission_overrides: ::Array[::Array[top]] }
303
+
304
+ class TiktokBusiness < PostForMe::Internal::Type::BaseModel
305
+ attr_reader permission_overrides: ::Array[::Array[top]]?
306
+
307
+ def permission_overrides=: (
308
+ ::Array[::Array[top]]
309
+ ) -> ::Array[::Array[top]]
310
+
311
+ def initialize: (?permission_overrides: ::Array[::Array[top]]) -> void
312
+
313
+ def to_hash: -> { permission_overrides: ::Array[::Array[top]] }
314
+ end
315
+
316
+ type youtube = { permission_overrides: ::Array[::Array[top]] }
317
+
318
+ class Youtube < PostForMe::Internal::Type::BaseModel
319
+ attr_reader permission_overrides: ::Array[::Array[top]]?
320
+
321
+ def permission_overrides=: (
322
+ ::Array[::Array[top]]
323
+ ) -> ::Array[::Array[top]]
324
+
325
+ def initialize: (?permission_overrides: ::Array[::Array[top]]) -> void
326
+
327
+ def to_hash: -> { permission_overrides: ::Array[::Array[top]] }
328
+ end
146
329
  end
147
330
  end
148
331
  end
@@ -0,0 +1,75 @@
1
+ module PostForMe
2
+ module Models
3
+ type social_account_feed_list_params =
4
+ {
5
+ cursor: String,
6
+ expand: ::Array[PostForMe::Models::SocialAccountFeedListParams::expand],
7
+ external_post_id: ::Array[String],
8
+ limit: Float,
9
+ platform_post_id: ::Array[String],
10
+ social_post_id: ::Array[String]
11
+ }
12
+ & PostForMe::Internal::Type::request_parameters
13
+
14
+ class SocialAccountFeedListParams < PostForMe::Internal::Type::BaseModel
15
+ extend PostForMe::Internal::Type::RequestParameters::Converter
16
+ include PostForMe::Internal::Type::RequestParameters
17
+
18
+ attr_reader cursor: String?
19
+
20
+ def cursor=: (String) -> String
21
+
22
+ attr_reader expand: ::Array[PostForMe::Models::SocialAccountFeedListParams::expand]?
23
+
24
+ def expand=: (
25
+ ::Array[PostForMe::Models::SocialAccountFeedListParams::expand]
26
+ ) -> ::Array[PostForMe::Models::SocialAccountFeedListParams::expand]
27
+
28
+ attr_reader external_post_id: ::Array[String]?
29
+
30
+ def external_post_id=: (::Array[String]) -> ::Array[String]
31
+
32
+ attr_reader limit: Float?
33
+
34
+ def limit=: (Float) -> Float
35
+
36
+ attr_reader platform_post_id: ::Array[String]?
37
+
38
+ def platform_post_id=: (::Array[String]) -> ::Array[String]
39
+
40
+ attr_reader social_post_id: ::Array[String]?
41
+
42
+ def social_post_id=: (::Array[String]) -> ::Array[String]
43
+
44
+ def initialize: (
45
+ ?cursor: String,
46
+ ?expand: ::Array[PostForMe::Models::SocialAccountFeedListParams::expand],
47
+ ?external_post_id: ::Array[String],
48
+ ?limit: Float,
49
+ ?platform_post_id: ::Array[String],
50
+ ?social_post_id: ::Array[String],
51
+ ?request_options: PostForMe::request_opts
52
+ ) -> void
53
+
54
+ def to_hash: -> {
55
+ cursor: String,
56
+ expand: ::Array[PostForMe::Models::SocialAccountFeedListParams::expand],
57
+ external_post_id: ::Array[String],
58
+ limit: Float,
59
+ platform_post_id: ::Array[String],
60
+ social_post_id: ::Array[String],
61
+ request_options: PostForMe::RequestOptions
62
+ }
63
+
64
+ type expand = :metrics
65
+
66
+ module Expand
67
+ extend PostForMe::Internal::Type::Enum
68
+
69
+ METRICS: :metrics
70
+
71
+ def self?.values: -> ::Array[PostForMe::Models::SocialAccountFeedListParams::expand]
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,54 @@
1
+ module PostForMe
2
+ module Models
3
+ type social_account_feed_list_response =
4
+ {
5
+ data: ::Array[PostForMe::PlatformPost],
6
+ meta: PostForMe::Models::SocialAccountFeedListResponse::Meta
7
+ }
8
+
9
+ class SocialAccountFeedListResponse < PostForMe::Internal::Type::BaseModel
10
+ attr_accessor data: ::Array[PostForMe::PlatformPost]
11
+
12
+ attr_accessor meta: PostForMe::Models::SocialAccountFeedListResponse::Meta
13
+
14
+ def initialize: (
15
+ data: ::Array[PostForMe::PlatformPost],
16
+ meta: PostForMe::Models::SocialAccountFeedListResponse::Meta
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ data: ::Array[PostForMe::PlatformPost],
21
+ meta: PostForMe::Models::SocialAccountFeedListResponse::Meta
22
+ }
23
+
24
+ type meta =
25
+ { cursor: String, limit: Float, next_: String?, has_more: bool }
26
+
27
+ class Meta < PostForMe::Internal::Type::BaseModel
28
+ attr_accessor cursor: String
29
+
30
+ attr_accessor limit: Float
31
+
32
+ attr_accessor next_: String?
33
+
34
+ attr_reader has_more: bool?
35
+
36
+ def has_more=: (bool) -> bool
37
+
38
+ def initialize: (
39
+ cursor: String,
40
+ limit: Float,
41
+ next_: String?,
42
+ ?has_more: bool
43
+ ) -> void
44
+
45
+ def to_hash: -> {
46
+ cursor: String,
47
+ limit: Float,
48
+ next_: String?,
49
+ has_more: bool
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -103,10 +103,11 @@ module PostForMe
103
103
  is_draft: bool?,
104
104
  link: String?,
105
105
  location: String?,
106
- media: ::Array[String]?,
106
+ made_for_kids: bool?,
107
+ media: ::Array[PostForMe::SocialPost::AccountConfiguration::Configuration::Media]?,
107
108
  placement: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::placement?,
108
109
  poll: PostForMe::SocialPost::AccountConfiguration::Configuration::Poll,
109
- privacy_status: String?,
110
+ privacy_status: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::privacy_status?,
110
111
  quote_tweet_id: String,
111
112
  reply_settings: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::reply_settings?,
112
113
  share_to_feed: bool?,
@@ -144,7 +145,9 @@ module PostForMe
144
145
 
145
146
  attr_accessor location: String?
146
147
 
147
- attr_accessor media: ::Array[String]?
148
+ attr_accessor made_for_kids: bool?
149
+
150
+ attr_accessor media: ::Array[PostForMe::SocialPost::AccountConfiguration::Configuration::Media]?
148
151
 
149
152
  attr_accessor placement: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::placement?
150
153
 
@@ -154,7 +157,7 @@ module PostForMe
154
157
  PostForMe::SocialPost::AccountConfiguration::Configuration::Poll
155
158
  ) -> PostForMe::SocialPost::AccountConfiguration::Configuration::Poll
156
159
 
157
- attr_accessor privacy_status: String?
160
+ attr_accessor privacy_status: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::privacy_status?
158
161
 
159
162
  attr_reader quote_tweet_id: String?
160
163
 
@@ -181,10 +184,11 @@ module PostForMe
181
184
  ?is_draft: bool?,
182
185
  ?link: String?,
183
186
  ?location: String?,
184
- ?media: ::Array[String]?,
187
+ ?made_for_kids: bool?,
188
+ ?media: ::Array[PostForMe::SocialPost::AccountConfiguration::Configuration::Media]?,
185
189
  ?placement: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::placement?,
186
190
  ?poll: PostForMe::SocialPost::AccountConfiguration::Configuration::Poll,
187
- ?privacy_status: String?,
191
+ ?privacy_status: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::privacy_status?,
188
192
  ?quote_tweet_id: String,
189
193
  ?reply_settings: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::reply_settings?,
190
194
  ?share_to_feed: bool?,
@@ -206,16 +210,112 @@ module PostForMe
206
210
  is_draft: bool?,
207
211
  link: String?,
208
212
  location: String?,
209
- media: ::Array[String]?,
213
+ made_for_kids: bool?,
214
+ media: ::Array[PostForMe::SocialPost::AccountConfiguration::Configuration::Media]?,
210
215
  placement: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::placement?,
211
216
  poll: PostForMe::SocialPost::AccountConfiguration::Configuration::Poll,
212
- privacy_status: String?,
217
+ privacy_status: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::privacy_status?,
213
218
  quote_tweet_id: String,
214
219
  reply_settings: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::reply_settings?,
215
220
  share_to_feed: bool?,
216
221
  title: String?
217
222
  }
218
223
 
224
+ type media =
225
+ {
226
+ url: String,
227
+ tags: ::Array[PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag]?,
228
+ thumbnail_timestamp_ms: top?,
229
+ thumbnail_url: top?
230
+ }
231
+
232
+ class Media < PostForMe::Internal::Type::BaseModel
233
+ attr_accessor url: String
234
+
235
+ attr_accessor tags: ::Array[PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag]?
236
+
237
+ attr_accessor thumbnail_timestamp_ms: top?
238
+
239
+ attr_accessor thumbnail_url: top?
240
+
241
+ def initialize: (
242
+ url: String,
243
+ ?tags: ::Array[PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag]?,
244
+ ?thumbnail_timestamp_ms: top?,
245
+ ?thumbnail_url: top?
246
+ ) -> void
247
+
248
+ def to_hash: -> {
249
+ url: String,
250
+ tags: ::Array[PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag]?,
251
+ thumbnail_timestamp_ms: top?,
252
+ thumbnail_url: top?
253
+ }
254
+
255
+ type tag =
256
+ {
257
+ id: String,
258
+ platform: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::Media::Tag::platform,
259
+ type: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::Media::Tag::type_,
260
+ x: Float,
261
+ y_: Float
262
+ }
263
+
264
+ class Tag < PostForMe::Internal::Type::BaseModel
265
+ attr_accessor id: String
266
+
267
+ attr_accessor platform: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::Media::Tag::platform
268
+
269
+ attr_accessor type: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::Media::Tag::type_
270
+
271
+ attr_reader x: Float?
272
+
273
+ def x=: (Float) -> Float
274
+
275
+ attr_reader y_: Float?
276
+
277
+ def y_=: (Float) -> Float
278
+
279
+ def initialize: (
280
+ id: String,
281
+ platform: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::Media::Tag::platform,
282
+ type: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::Media::Tag::type_,
283
+ ?x: Float,
284
+ ?y_: Float
285
+ ) -> void
286
+
287
+ def to_hash: -> {
288
+ id: String,
289
+ platform: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::Media::Tag::platform,
290
+ type: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::Media::Tag::type_,
291
+ x: Float,
292
+ y_: Float
293
+ }
294
+
295
+ type platform = :facebook | :instagram
296
+
297
+ module Platform
298
+ extend PostForMe::Internal::Type::Enum
299
+
300
+ FACEBOOK: :facebook
301
+ INSTAGRAM: :instagram
302
+
303
+ def self?.values: -> ::Array[PostForMe::Models::SocialPost::AccountConfiguration::Configuration::Media::Tag::platform]
304
+ end
305
+
306
+ type type_ = :user | :product
307
+
308
+ module Type
309
+ extend PostForMe::Internal::Type::Enum
310
+
311
+ USER: :user
312
+ PRODUCT: :product
313
+
314
+ def self?.values: -> ::Array[PostForMe::Models::SocialPost::AccountConfiguration::Configuration::Media::Tag::type_]
315
+ end
316
+ end
317
+ end
318
+
219
319
  type placement = :reels | :timeline | :stories
220
320
 
221
321
  module Placement
@@ -273,6 +373,18 @@ module PostForMe
273
373
  end
274
374
  end
275
375
 
376
+ type privacy_status = :public | :private | :unlisted
377
+
378
+ module PrivacyStatus
379
+ extend PostForMe::Internal::Type::Enum
380
+
381
+ PUBLIC: :public
382
+ PRIVATE: :private
383
+ UNLISTED: :unlisted
384
+
385
+ def self?.values: -> ::Array[PostForMe::Models::SocialPost::AccountConfiguration::Configuration::privacy_status]
386
+ end
387
+
276
388
  type reply_settings =
277
389
  :following | :mentionedUsers | :subscribers | :verified
278
390
 
@@ -6,6 +6,7 @@ module PostForMe
6
6
  limit: Float,
7
7
  offset: Float,
8
8
  platform: ::Array[PostForMe::Models::SocialPostListParams::platform],
9
+ social_account_id: ::Array[String],
9
10
  status: ::Array[PostForMe::Models::SocialPostListParams::status]
10
11
  }
11
12
  & PostForMe::Internal::Type::request_parameters
@@ -32,6 +33,10 @@ module PostForMe
32
33
  ::Array[PostForMe::Models::SocialPostListParams::platform]
33
34
  ) -> ::Array[PostForMe::Models::SocialPostListParams::platform]
34
35
 
36
+ attr_reader social_account_id: ::Array[String]?
37
+
38
+ def social_account_id=: (::Array[String]) -> ::Array[String]
39
+
35
40
  attr_reader status: ::Array[PostForMe::Models::SocialPostListParams::status]?
36
41
 
37
42
  def status=: (
@@ -43,6 +48,7 @@ module PostForMe
43
48
  ?limit: Float,
44
49
  ?offset: Float,
45
50
  ?platform: ::Array[PostForMe::Models::SocialPostListParams::platform],
51
+ ?social_account_id: ::Array[String],
46
52
  ?status: ::Array[PostForMe::Models::SocialPostListParams::status],
47
53
  ?request_options: PostForMe::request_opts
48
54
  ) -> void
@@ -52,6 +58,7 @@ module PostForMe
52
58
  limit: Float,
53
59
  offset: Float,
54
60
  platform: ::Array[PostForMe::Models::SocialPostListParams::platform],
61
+ social_account_id: ::Array[String],
55
62
  status: ::Array[PostForMe::Models::SocialPostListParams::status],
56
63
  request_options: PostForMe::RequestOptions
57
64
  }
@@ -5,7 +5,8 @@ module PostForMe
5
5
  limit: Float,
6
6
  offset: Float,
7
7
  platform: ::Array[String],
8
- post_id: ::Array[String]
8
+ post_id: ::Array[String],
9
+ social_account_id: ::Array[String]
9
10
  }
10
11
  & PostForMe::Internal::Type::request_parameters
11
12
 
@@ -29,11 +30,16 @@ module PostForMe
29
30
 
30
31
  def post_id=: (::Array[String]) -> ::Array[String]
31
32
 
33
+ attr_reader social_account_id: ::Array[String]?
34
+
35
+ def social_account_id=: (::Array[String]) -> ::Array[String]
36
+
32
37
  def initialize: (
33
38
  ?limit: Float,
34
39
  ?offset: Float,
35
40
  ?platform: ::Array[String],
36
41
  ?post_id: ::Array[String],
42
+ ?social_account_id: ::Array[String],
37
43
  ?request_options: PostForMe::request_opts
38
44
  ) -> void
39
45
 
@@ -42,6 +48,7 @@ module PostForMe
42
48
  offset: Float,
43
49
  platform: ::Array[String],
44
50
  post_id: ::Array[String],
51
+ social_account_id: ::Array[String],
45
52
  request_options: PostForMe::RequestOptions
46
53
  }
47
54
  end