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

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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +52 -0
  3. data/README.md +1 -1
  4. data/lib/post_for_me/errors.rb +25 -11
  5. data/lib/post_for_me/file_part.rb +10 -7
  6. data/lib/post_for_me/internal/transport/base_client.rb +18 -8
  7. data/lib/post_for_me/internal/transport/pooled_net_requester.rb +40 -33
  8. data/lib/post_for_me/internal/type/base_page.rb +1 -1
  9. data/lib/post_for_me/internal/type/file_input.rb +7 -4
  10. data/lib/post_for_me/internal/util.rb +8 -7
  11. data/lib/post_for_me/models/bluesky_configuration_dto.rb +87 -1
  12. data/lib/post_for_me/models/create_social_post.rb +221 -2
  13. data/lib/post_for_me/models/facebook_configuration_dto.rb +106 -2
  14. data/lib/post_for_me/models/instagram_configuration_dto.rb +104 -2
  15. data/lib/post_for_me/models/linkedin_configuration_dto.rb +87 -1
  16. data/lib/post_for_me/models/pinterest_configuration_dto.rb +87 -1
  17. data/lib/post_for_me/models/social_account.rb +9 -1
  18. data/lib/post_for_me/models/social_account_create_auth_url_params.rb +43 -1
  19. data/lib/post_for_me/models/social_account_disconnect_response.rb +9 -1
  20. data/lib/post_for_me/models/social_post.rb +221 -2
  21. data/lib/post_for_me/models/threads_configuration_dto.rb +87 -1
  22. data/lib/post_for_me/models/tiktok_configuration.rb +96 -2
  23. data/lib/post_for_me/models/twitter_configuration_dto.rb +180 -2
  24. data/lib/post_for_me/models/youtube_configuration_dto.rb +87 -1
  25. data/lib/post_for_me/version.rb +1 -1
  26. data/lib/post_for_me.rb +1 -0
  27. data/manifest.yaml +1 -0
  28. data/rbi/post_for_me/errors.rbi +29 -2
  29. data/rbi/post_for_me/file_part.rbi +1 -1
  30. data/rbi/post_for_me/internal/transport/base_client.rbi +9 -5
  31. data/rbi/post_for_me/internal/transport/pooled_net_requester.rbi +6 -2
  32. data/rbi/post_for_me/internal/type/base_model.rbi +8 -4
  33. data/rbi/post_for_me/internal/type/base_page.rbi +1 -1
  34. data/rbi/post_for_me/internal/util.rbi +1 -1
  35. data/rbi/post_for_me/models/bluesky_configuration_dto.rbi +180 -0
  36. data/rbi/post_for_me/models/create_social_post.rbi +424 -0
  37. data/rbi/post_for_me/models/facebook_configuration_dto.rbi +198 -0
  38. data/rbi/post_for_me/models/instagram_configuration_dto.rbi +205 -3
  39. data/rbi/post_for_me/models/linkedin_configuration_dto.rbi +182 -0
  40. data/rbi/post_for_me/models/pinterest_configuration_dto.rbi +184 -0
  41. data/rbi/post_for_me/models/social_account.rbi +8 -0
  42. data/rbi/post_for_me/models/social_account_create_auth_url_params.rbi +104 -0
  43. data/rbi/post_for_me/models/social_account_disconnect_response.rbi +8 -0
  44. data/rbi/post_for_me/models/social_post.rbi +414 -0
  45. data/rbi/post_for_me/models/threads_configuration_dto.rbi +180 -0
  46. data/rbi/post_for_me/models/tiktok_configuration.rbi +180 -0
  47. data/rbi/post_for_me/models/twitter_configuration_dto.rbi +390 -2
  48. data/rbi/post_for_me/models/youtube_configuration_dto.rbi +180 -0
  49. data/sig/post_for_me/errors.rbs +7 -0
  50. data/sig/post_for_me/file_part.rbs +1 -1
  51. data/sig/post_for_me/internal/transport/base_client.rbs +2 -0
  52. data/sig/post_for_me/internal/transport/pooled_net_requester.rbs +4 -1
  53. data/sig/post_for_me/models/bluesky_configuration_dto.rbs +73 -1
  54. data/sig/post_for_me/models/create_social_post.rbs +180 -1
  55. data/sig/post_for_me/models/facebook_configuration_dto.rbs +83 -1
  56. data/sig/post_for_me/models/instagram_configuration_dto.rbs +86 -4
  57. data/sig/post_for_me/models/linkedin_configuration_dto.rbs +73 -1
  58. data/sig/post_for_me/models/pinterest_configuration_dto.rbs +73 -1
  59. data/sig/post_for_me/models/social_account.rbs +5 -0
  60. data/sig/post_for_me/models/social_account_create_auth_url_params.rbs +37 -0
  61. data/sig/post_for_me/models/social_account_disconnect_response.rbs +5 -0
  62. data/sig/post_for_me/models/social_post.rbs +180 -1
  63. data/sig/post_for_me/models/threads_configuration_dto.rbs +73 -1
  64. data/sig/post_for_me/models/tiktok_configuration.rbs +78 -1
  65. data/sig/post_for_me/models/twitter_configuration_dto.rbs +163 -4
  66. data/sig/post_for_me/models/youtube_configuration_dto.rbs +73 -1
  67. metadata +2 -2
@@ -14,7 +14,7 @@ module PostForMe
14
14
 
15
15
  def initialize: (
16
16
  Pathname | StringIO | IO | String content,
17
- ?filename: String?,
17
+ ?filename: (Pathname | String)?,
18
18
  ?content_type: String?
19
19
  ) -> void
20
20
  end
@@ -87,6 +87,8 @@ module PostForMe
87
87
 
88
88
  private def auth_headers: -> ::Hash[String, String]
89
89
 
90
+ private def user_agent: -> String
91
+
90
92
  private def generate_idempotency_key: -> String
91
93
 
92
94
  private def build_request: (
@@ -17,7 +17,10 @@ module PostForMe
17
17
 
18
18
  DEFAULT_MAX_CONNECTIONS: Integer
19
19
 
20
- def self.connect: (URI::Generic url) -> top
20
+ def self.connect: (
21
+ cert_store: OpenSSL::X509::Store,
22
+ url: URI::Generic
23
+ ) -> top
21
24
 
22
25
  def self.calibrate_socket_timeout: (top conn, Float deadline) -> void
23
26
 
@@ -22,26 +22,98 @@ module PostForMe
22
22
  }
23
23
 
24
24
  type media =
25
- { url: String, thumbnail_timestamp_ms: top?, thumbnail_url: top? }
25
+ {
26
+ url: String,
27
+ tags: ::Array[PostForMe::BlueskyConfigurationDto::Media::Tag]?,
28
+ thumbnail_timestamp_ms: top?,
29
+ thumbnail_url: top?
30
+ }
26
31
 
27
32
  class Media < PostForMe::Internal::Type::BaseModel
28
33
  attr_accessor url: String
29
34
 
35
+ attr_accessor tags: ::Array[PostForMe::BlueskyConfigurationDto::Media::Tag]?
36
+
30
37
  attr_accessor thumbnail_timestamp_ms: top?
31
38
 
32
39
  attr_accessor thumbnail_url: top?
33
40
 
34
41
  def initialize: (
35
42
  url: String,
43
+ ?tags: ::Array[PostForMe::BlueskyConfigurationDto::Media::Tag]?,
36
44
  ?thumbnail_timestamp_ms: top?,
37
45
  ?thumbnail_url: top?
38
46
  ) -> void
39
47
 
40
48
  def to_hash: -> {
41
49
  url: String,
50
+ tags: ::Array[PostForMe::BlueskyConfigurationDto::Media::Tag]?,
42
51
  thumbnail_timestamp_ms: top?,
43
52
  thumbnail_url: top?
44
53
  }
54
+
55
+ type tag =
56
+ {
57
+ id: String,
58
+ platform: PostForMe::Models::BlueskyConfigurationDto::Media::Tag::platform,
59
+ type: PostForMe::Models::BlueskyConfigurationDto::Media::Tag::type_,
60
+ x: Float,
61
+ y_: Float
62
+ }
63
+
64
+ class Tag < PostForMe::Internal::Type::BaseModel
65
+ attr_accessor id: String
66
+
67
+ attr_accessor platform: PostForMe::Models::BlueskyConfigurationDto::Media::Tag::platform
68
+
69
+ attr_accessor type: PostForMe::Models::BlueskyConfigurationDto::Media::Tag::type_
70
+
71
+ attr_reader x: Float?
72
+
73
+ def x=: (Float) -> Float
74
+
75
+ attr_reader y_: Float?
76
+
77
+ def y_=: (Float) -> Float
78
+
79
+ def initialize: (
80
+ id: String,
81
+ platform: PostForMe::Models::BlueskyConfigurationDto::Media::Tag::platform,
82
+ type: PostForMe::Models::BlueskyConfigurationDto::Media::Tag::type_,
83
+ ?x: Float,
84
+ ?y_: Float
85
+ ) -> void
86
+
87
+ def to_hash: -> {
88
+ id: String,
89
+ platform: PostForMe::Models::BlueskyConfigurationDto::Media::Tag::platform,
90
+ type: PostForMe::Models::BlueskyConfigurationDto::Media::Tag::type_,
91
+ x: Float,
92
+ y_: Float
93
+ }
94
+
95
+ type platform = :facebook | :instagram
96
+
97
+ module Platform
98
+ extend PostForMe::Internal::Type::Enum
99
+
100
+ FACEBOOK: :facebook
101
+ INSTAGRAM: :instagram
102
+
103
+ def self?.values: -> ::Array[PostForMe::Models::BlueskyConfigurationDto::Media::Tag::platform]
104
+ end
105
+
106
+ type type_ = :user | :product
107
+
108
+ module Type
109
+ extend PostForMe::Internal::Type::Enum
110
+
111
+ USER: :user
112
+ PRODUCT: :product
113
+
114
+ def self?.values: -> ::Array[PostForMe::Models::BlueskyConfigurationDto::Media::Tag::type_]
115
+ end
116
+ end
45
117
  end
46
118
  end
47
119
  end
@@ -77,16 +77,24 @@ module PostForMe
77
77
  allow_comment: bool?,
78
78
  allow_duet: bool?,
79
79
  allow_stitch: bool?,
80
+ auto_add_music: bool?,
80
81
  board_ids: ::Array[String]?,
81
82
  caption: top?,
83
+ collaborators: ::Array[::Array[top]]?,
84
+ community_id: String,
82
85
  disclose_branded_content: bool?,
83
86
  disclose_your_brand: bool?,
84
87
  is_ai_generated: bool?,
85
88
  is_draft: bool?,
86
89
  link: String?,
90
+ location: String?,
87
91
  media: ::Array[String]?,
88
92
  placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
93
+ poll: PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Poll,
89
94
  privacy_status: String?,
95
+ quote_tweet_id: String,
96
+ reply_settings: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::reply_settings?,
97
+ share_to_feed: bool?,
90
98
  title: String?
91
99
  }
92
100
 
@@ -97,10 +105,18 @@ module PostForMe
97
105
 
98
106
  attr_accessor allow_stitch: bool?
99
107
 
108
+ attr_accessor auto_add_music: bool?
109
+
100
110
  attr_accessor board_ids: ::Array[String]?
101
111
 
102
112
  attr_accessor caption: top?
103
113
 
114
+ attr_accessor collaborators: ::Array[::Array[top]]?
115
+
116
+ attr_reader community_id: String?
117
+
118
+ def community_id=: (String) -> String
119
+
104
120
  attr_accessor disclose_branded_content: bool?
105
121
 
106
122
  attr_accessor disclose_your_brand: bool?
@@ -111,28 +127,52 @@ module PostForMe
111
127
 
112
128
  attr_accessor link: String?
113
129
 
130
+ attr_accessor location: String?
131
+
114
132
  attr_accessor media: ::Array[String]?
115
133
 
116
134
  attr_accessor placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?
117
135
 
136
+ attr_reader poll: PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Poll?
137
+
138
+ def poll=: (
139
+ PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Poll
140
+ ) -> PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Poll
141
+
118
142
  attr_accessor privacy_status: String?
119
143
 
144
+ attr_reader quote_tweet_id: String?
145
+
146
+ def quote_tweet_id=: (String) -> String
147
+
148
+ attr_accessor reply_settings: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::reply_settings?
149
+
150
+ attr_accessor share_to_feed: bool?
151
+
120
152
  attr_accessor title: String?
121
153
 
122
154
  def initialize: (
123
155
  ?allow_comment: bool?,
124
156
  ?allow_duet: bool?,
125
157
  ?allow_stitch: bool?,
158
+ ?auto_add_music: bool?,
126
159
  ?board_ids: ::Array[String]?,
127
160
  ?caption: top?,
161
+ ?collaborators: ::Array[::Array[top]]?,
162
+ ?community_id: String,
128
163
  ?disclose_branded_content: bool?,
129
164
  ?disclose_your_brand: bool?,
130
165
  ?is_ai_generated: bool?,
131
166
  ?is_draft: bool?,
132
167
  ?link: String?,
168
+ ?location: String?,
133
169
  ?media: ::Array[String]?,
134
170
  ?placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
171
+ ?poll: PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Poll,
135
172
  ?privacy_status: String?,
173
+ ?quote_tweet_id: String,
174
+ ?reply_settings: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::reply_settings?,
175
+ ?share_to_feed: bool?,
136
176
  ?title: String?
137
177
  ) -> void
138
178
 
@@ -140,16 +180,24 @@ module PostForMe
140
180
  allow_comment: bool?,
141
181
  allow_duet: bool?,
142
182
  allow_stitch: bool?,
183
+ auto_add_music: bool?,
143
184
  board_ids: ::Array[String]?,
144
185
  caption: top?,
186
+ collaborators: ::Array[::Array[top]]?,
187
+ community_id: String,
145
188
  disclose_branded_content: bool?,
146
189
  disclose_your_brand: bool?,
147
190
  is_ai_generated: bool?,
148
191
  is_draft: bool?,
149
192
  link: String?,
193
+ location: String?,
150
194
  media: ::Array[String]?,
151
195
  placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
196
+ poll: PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Poll,
152
197
  privacy_status: String?,
198
+ quote_tweet_id: String,
199
+ reply_settings: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::reply_settings?,
200
+ share_to_feed: bool?,
153
201
  title: String?
154
202
  }
155
203
 
@@ -164,30 +212,161 @@ module PostForMe
164
212
 
165
213
  def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement]
166
214
  end
215
+
216
+ type poll =
217
+ {
218
+ duration_minutes: Float,
219
+ options: ::Array[String],
220
+ reply_settings: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Poll::reply_settings
221
+ }
222
+
223
+ class Poll < PostForMe::Internal::Type::BaseModel
224
+ attr_accessor duration_minutes: Float
225
+
226
+ attr_accessor options: ::Array[String]
227
+
228
+ attr_reader reply_settings: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Poll::reply_settings?
229
+
230
+ def reply_settings=: (
231
+ PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Poll::reply_settings
232
+ ) -> PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Poll::reply_settings
233
+
234
+ def initialize: (
235
+ duration_minutes: Float,
236
+ options: ::Array[String],
237
+ ?reply_settings: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Poll::reply_settings
238
+ ) -> void
239
+
240
+ def to_hash: -> {
241
+ duration_minutes: Float,
242
+ options: ::Array[String],
243
+ reply_settings: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Poll::reply_settings
244
+ }
245
+
246
+ type reply_settings =
247
+ :following | :mentionedUsers | :subscribers | :verified
248
+
249
+ module ReplySettings
250
+ extend PostForMe::Internal::Type::Enum
251
+
252
+ FOLLOWING: :following
253
+ MENTIONED_USERS: :mentionedUsers
254
+ SUBSCRIBERS: :subscribers
255
+ VERIFIED: :verified
256
+
257
+ def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Poll::reply_settings]
258
+ end
259
+ end
260
+
261
+ type reply_settings =
262
+ :following | :mentionedUsers | :subscribers | :verified
263
+
264
+ module ReplySettings
265
+ extend PostForMe::Internal::Type::Enum
266
+
267
+ FOLLOWING: :following
268
+ MENTIONED_USERS: :mentionedUsers
269
+ SUBSCRIBERS: :subscribers
270
+ VERIFIED: :verified
271
+
272
+ def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::reply_settings]
273
+ end
167
274
  end
168
275
  end
169
276
 
170
277
  type media =
171
- { url: String, thumbnail_timestamp_ms: top?, thumbnail_url: top? }
278
+ {
279
+ url: String,
280
+ tags: ::Array[PostForMe::CreateSocialPost::Media::Tag]?,
281
+ thumbnail_timestamp_ms: top?,
282
+ thumbnail_url: top?
283
+ }
172
284
 
173
285
  class Media < PostForMe::Internal::Type::BaseModel
174
286
  attr_accessor url: String
175
287
 
288
+ attr_accessor tags: ::Array[PostForMe::CreateSocialPost::Media::Tag]?
289
+
176
290
  attr_accessor thumbnail_timestamp_ms: top?
177
291
 
178
292
  attr_accessor thumbnail_url: top?
179
293
 
180
294
  def initialize: (
181
295
  url: String,
296
+ ?tags: ::Array[PostForMe::CreateSocialPost::Media::Tag]?,
182
297
  ?thumbnail_timestamp_ms: top?,
183
298
  ?thumbnail_url: top?
184
299
  ) -> void
185
300
 
186
301
  def to_hash: -> {
187
302
  url: String,
303
+ tags: ::Array[PostForMe::CreateSocialPost::Media::Tag]?,
188
304
  thumbnail_timestamp_ms: top?,
189
305
  thumbnail_url: top?
190
306
  }
307
+
308
+ type tag =
309
+ {
310
+ id: String,
311
+ platform: PostForMe::Models::CreateSocialPost::Media::Tag::platform,
312
+ type: PostForMe::Models::CreateSocialPost::Media::Tag::type_,
313
+ x: Float,
314
+ y_: Float
315
+ }
316
+
317
+ class Tag < PostForMe::Internal::Type::BaseModel
318
+ attr_accessor id: String
319
+
320
+ attr_accessor platform: PostForMe::Models::CreateSocialPost::Media::Tag::platform
321
+
322
+ attr_accessor type: PostForMe::Models::CreateSocialPost::Media::Tag::type_
323
+
324
+ attr_reader x: Float?
325
+
326
+ def x=: (Float) -> Float
327
+
328
+ attr_reader y_: Float?
329
+
330
+ def y_=: (Float) -> Float
331
+
332
+ def initialize: (
333
+ id: String,
334
+ platform: PostForMe::Models::CreateSocialPost::Media::Tag::platform,
335
+ type: PostForMe::Models::CreateSocialPost::Media::Tag::type_,
336
+ ?x: Float,
337
+ ?y_: Float
338
+ ) -> void
339
+
340
+ def to_hash: -> {
341
+ id: String,
342
+ platform: PostForMe::Models::CreateSocialPost::Media::Tag::platform,
343
+ type: PostForMe::Models::CreateSocialPost::Media::Tag::type_,
344
+ x: Float,
345
+ y_: Float
346
+ }
347
+
348
+ type platform = :facebook | :instagram
349
+
350
+ module Platform
351
+ extend PostForMe::Internal::Type::Enum
352
+
353
+ FACEBOOK: :facebook
354
+ INSTAGRAM: :instagram
355
+
356
+ def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::Media::Tag::platform]
357
+ end
358
+
359
+ type type_ = :user | :product
360
+
361
+ module Type
362
+ extend PostForMe::Internal::Type::Enum
363
+
364
+ USER: :user
365
+ PRODUCT: :product
366
+
367
+ def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::Media::Tag::type_]
368
+ end
369
+ end
191
370
  end
192
371
  end
193
372
  end
@@ -3,6 +3,8 @@ module PostForMe
3
3
  type facebook_configuration_dto =
4
4
  {
5
5
  caption: top?,
6
+ collaborators: ::Array[::Array[top]]?,
7
+ location: String?,
6
8
  media: ::Array[PostForMe::FacebookConfigurationDto::Media]?,
7
9
  placement: PostForMe::Models::FacebookConfigurationDto::placement?
8
10
  }
@@ -10,43 +12,123 @@ module PostForMe
10
12
  class FacebookConfigurationDto < PostForMe::Internal::Type::BaseModel
11
13
  attr_accessor caption: top?
12
14
 
15
+ attr_accessor collaborators: ::Array[::Array[top]]?
16
+
17
+ attr_accessor location: String?
18
+
13
19
  attr_accessor media: ::Array[PostForMe::FacebookConfigurationDto::Media]?
14
20
 
15
21
  attr_accessor placement: PostForMe::Models::FacebookConfigurationDto::placement?
16
22
 
17
23
  def initialize: (
18
24
  ?caption: top?,
25
+ ?collaborators: ::Array[::Array[top]]?,
26
+ ?location: String?,
19
27
  ?media: ::Array[PostForMe::FacebookConfigurationDto::Media]?,
20
28
  ?placement: PostForMe::Models::FacebookConfigurationDto::placement?
21
29
  ) -> void
22
30
 
23
31
  def to_hash: -> {
24
32
  caption: top?,
33
+ collaborators: ::Array[::Array[top]]?,
34
+ location: String?,
25
35
  media: ::Array[PostForMe::FacebookConfigurationDto::Media]?,
26
36
  placement: PostForMe::Models::FacebookConfigurationDto::placement?
27
37
  }
28
38
 
29
39
  type media =
30
- { url: String, thumbnail_timestamp_ms: top?, thumbnail_url: top? }
40
+ {
41
+ url: String,
42
+ tags: ::Array[PostForMe::FacebookConfigurationDto::Media::Tag]?,
43
+ thumbnail_timestamp_ms: top?,
44
+ thumbnail_url: top?
45
+ }
31
46
 
32
47
  class Media < PostForMe::Internal::Type::BaseModel
33
48
  attr_accessor url: String
34
49
 
50
+ attr_accessor tags: ::Array[PostForMe::FacebookConfigurationDto::Media::Tag]?
51
+
35
52
  attr_accessor thumbnail_timestamp_ms: top?
36
53
 
37
54
  attr_accessor thumbnail_url: top?
38
55
 
39
56
  def initialize: (
40
57
  url: String,
58
+ ?tags: ::Array[PostForMe::FacebookConfigurationDto::Media::Tag]?,
41
59
  ?thumbnail_timestamp_ms: top?,
42
60
  ?thumbnail_url: top?
43
61
  ) -> void
44
62
 
45
63
  def to_hash: -> {
46
64
  url: String,
65
+ tags: ::Array[PostForMe::FacebookConfigurationDto::Media::Tag]?,
47
66
  thumbnail_timestamp_ms: top?,
48
67
  thumbnail_url: top?
49
68
  }
69
+
70
+ type tag =
71
+ {
72
+ id: String,
73
+ platform: PostForMe::Models::FacebookConfigurationDto::Media::Tag::platform,
74
+ type: PostForMe::Models::FacebookConfigurationDto::Media::Tag::type_,
75
+ x: Float,
76
+ y_: Float
77
+ }
78
+
79
+ class Tag < PostForMe::Internal::Type::BaseModel
80
+ attr_accessor id: String
81
+
82
+ attr_accessor platform: PostForMe::Models::FacebookConfigurationDto::Media::Tag::platform
83
+
84
+ attr_accessor type: PostForMe::Models::FacebookConfigurationDto::Media::Tag::type_
85
+
86
+ attr_reader x: Float?
87
+
88
+ def x=: (Float) -> Float
89
+
90
+ attr_reader y_: Float?
91
+
92
+ def y_=: (Float) -> Float
93
+
94
+ def initialize: (
95
+ id: String,
96
+ platform: PostForMe::Models::FacebookConfigurationDto::Media::Tag::platform,
97
+ type: PostForMe::Models::FacebookConfigurationDto::Media::Tag::type_,
98
+ ?x: Float,
99
+ ?y_: Float
100
+ ) -> void
101
+
102
+ def to_hash: -> {
103
+ id: String,
104
+ platform: PostForMe::Models::FacebookConfigurationDto::Media::Tag::platform,
105
+ type: PostForMe::Models::FacebookConfigurationDto::Media::Tag::type_,
106
+ x: Float,
107
+ y_: Float
108
+ }
109
+
110
+ type platform = :facebook | :instagram
111
+
112
+ module Platform
113
+ extend PostForMe::Internal::Type::Enum
114
+
115
+ FACEBOOK: :facebook
116
+ INSTAGRAM: :instagram
117
+
118
+ def self?.values: -> ::Array[PostForMe::Models::FacebookConfigurationDto::Media::Tag::platform]
119
+ end
120
+
121
+ type type_ = :user | :product
122
+
123
+ module Type
124
+ extend PostForMe::Internal::Type::Enum
125
+
126
+ USER: :user
127
+ PRODUCT: :product
128
+
129
+ def self?.values: -> ::Array[PostForMe::Models::FacebookConfigurationDto::Media::Tag::type_]
130
+ end
131
+ end
50
132
  end
51
133
 
52
134
  type placement = :reels | :stories | :timeline
@@ -4,8 +4,10 @@ module PostForMe
4
4
  {
5
5
  caption: top?,
6
6
  collaborators: ::Array[String]?,
7
+ location: String?,
7
8
  media: ::Array[PostForMe::InstagramConfigurationDto::Media]?,
8
- placement: PostForMe::Models::InstagramConfigurationDto::placement?
9
+ placement: PostForMe::Models::InstagramConfigurationDto::placement?,
10
+ share_to_feed: bool?
9
11
  }
10
12
 
11
13
  class InstagramConfigurationDto < PostForMe::Internal::Type::BaseModel
@@ -13,45 +15,125 @@ module PostForMe
13
15
 
14
16
  attr_accessor collaborators: ::Array[String]?
15
17
 
18
+ attr_accessor location: String?
19
+
16
20
  attr_accessor media: ::Array[PostForMe::InstagramConfigurationDto::Media]?
17
21
 
18
22
  attr_accessor placement: PostForMe::Models::InstagramConfigurationDto::placement?
19
23
 
24
+ attr_accessor share_to_feed: bool?
25
+
20
26
  def initialize: (
21
27
  ?caption: top?,
22
28
  ?collaborators: ::Array[String]?,
29
+ ?location: String?,
23
30
  ?media: ::Array[PostForMe::InstagramConfigurationDto::Media]?,
24
- ?placement: PostForMe::Models::InstagramConfigurationDto::placement?
31
+ ?placement: PostForMe::Models::InstagramConfigurationDto::placement?,
32
+ ?share_to_feed: bool?
25
33
  ) -> void
26
34
 
27
35
  def to_hash: -> {
28
36
  caption: top?,
29
37
  collaborators: ::Array[String]?,
38
+ location: String?,
30
39
  media: ::Array[PostForMe::InstagramConfigurationDto::Media]?,
31
- placement: PostForMe::Models::InstagramConfigurationDto::placement?
40
+ placement: PostForMe::Models::InstagramConfigurationDto::placement?,
41
+ share_to_feed: bool?
32
42
  }
33
43
 
34
44
  type media =
35
- { url: String, thumbnail_timestamp_ms: top?, thumbnail_url: top? }
45
+ {
46
+ url: String,
47
+ tags: ::Array[PostForMe::InstagramConfigurationDto::Media::Tag]?,
48
+ thumbnail_timestamp_ms: top?,
49
+ thumbnail_url: top?
50
+ }
36
51
 
37
52
  class Media < PostForMe::Internal::Type::BaseModel
38
53
  attr_accessor url: String
39
54
 
55
+ attr_accessor tags: ::Array[PostForMe::InstagramConfigurationDto::Media::Tag]?
56
+
40
57
  attr_accessor thumbnail_timestamp_ms: top?
41
58
 
42
59
  attr_accessor thumbnail_url: top?
43
60
 
44
61
  def initialize: (
45
62
  url: String,
63
+ ?tags: ::Array[PostForMe::InstagramConfigurationDto::Media::Tag]?,
46
64
  ?thumbnail_timestamp_ms: top?,
47
65
  ?thumbnail_url: top?
48
66
  ) -> void
49
67
 
50
68
  def to_hash: -> {
51
69
  url: String,
70
+ tags: ::Array[PostForMe::InstagramConfigurationDto::Media::Tag]?,
52
71
  thumbnail_timestamp_ms: top?,
53
72
  thumbnail_url: top?
54
73
  }
74
+
75
+ type tag =
76
+ {
77
+ id: String,
78
+ platform: PostForMe::Models::InstagramConfigurationDto::Media::Tag::platform,
79
+ type: PostForMe::Models::InstagramConfigurationDto::Media::Tag::type_,
80
+ x: Float,
81
+ y_: Float
82
+ }
83
+
84
+ class Tag < PostForMe::Internal::Type::BaseModel
85
+ attr_accessor id: String
86
+
87
+ attr_accessor platform: PostForMe::Models::InstagramConfigurationDto::Media::Tag::platform
88
+
89
+ attr_accessor type: PostForMe::Models::InstagramConfigurationDto::Media::Tag::type_
90
+
91
+ attr_reader x: Float?
92
+
93
+ def x=: (Float) -> Float
94
+
95
+ attr_reader y_: Float?
96
+
97
+ def y_=: (Float) -> Float
98
+
99
+ def initialize: (
100
+ id: String,
101
+ platform: PostForMe::Models::InstagramConfigurationDto::Media::Tag::platform,
102
+ type: PostForMe::Models::InstagramConfigurationDto::Media::Tag::type_,
103
+ ?x: Float,
104
+ ?y_: Float
105
+ ) -> void
106
+
107
+ def to_hash: -> {
108
+ id: String,
109
+ platform: PostForMe::Models::InstagramConfigurationDto::Media::Tag::platform,
110
+ type: PostForMe::Models::InstagramConfigurationDto::Media::Tag::type_,
111
+ x: Float,
112
+ y_: Float
113
+ }
114
+
115
+ type platform = :facebook | :instagram
116
+
117
+ module Platform
118
+ extend PostForMe::Internal::Type::Enum
119
+
120
+ FACEBOOK: :facebook
121
+ INSTAGRAM: :instagram
122
+
123
+ def self?.values: -> ::Array[PostForMe::Models::InstagramConfigurationDto::Media::Tag::platform]
124
+ end
125
+
126
+ type type_ = :user | :product
127
+
128
+ module Type
129
+ extend PostForMe::Internal::Type::Enum
130
+
131
+ USER: :user
132
+ PRODUCT: :product
133
+
134
+ def self?.values: -> ::Array[PostForMe::Models::InstagramConfigurationDto::Media::Tag::type_]
135
+ end
136
+ end
55
137
  end
56
138
 
57
139
  type placement = :reels | :stories | :timeline