post-for-me 0.1.0.pre.alpha.9 → 0.1.0.pre.alpha.11

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +44 -0
  3. data/README.md +1 -1
  4. data/lib/post_for_me/client.rb +4 -0
  5. data/lib/post_for_me/internal/transport/base_client.rb +7 -1
  6. data/lib/post_for_me/internal/transport/pooled_net_requester.rb +38 -26
  7. data/lib/post_for_me/internal/util.rb +12 -7
  8. data/lib/post_for_me/models/platform_post.rb +843 -0
  9. data/lib/post_for_me/models/social_account.rb +9 -1
  10. data/lib/post_for_me/models/social_account_create_auth_url_params.rb +245 -9
  11. data/lib/post_for_me/models/social_account_disconnect_response.rb +9 -1
  12. data/lib/post_for_me/models/social_account_feed_list_params.rb +81 -0
  13. data/lib/post_for_me/models/social_account_feed_list_response.rb +58 -0
  14. data/lib/post_for_me/models.rb +4 -0
  15. data/lib/post_for_me/resources/social_account_feeds.rb +51 -0
  16. data/lib/post_for_me/resources/social_accounts.rb +8 -1
  17. data/lib/post_for_me/version.rb +1 -1
  18. data/lib/post_for_me.rb +6 -0
  19. data/manifest.yaml +2 -0
  20. data/rbi/post_for_me/client.rbi +3 -0
  21. data/rbi/post_for_me/internal/transport/base_client.rbi +5 -0
  22. data/rbi/post_for_me/internal/transport/pooled_net_requester.rbi +6 -2
  23. data/rbi/post_for_me/internal/type/base_model.rbi +8 -4
  24. data/rbi/post_for_me/models/platform_post.rbi +1287 -0
  25. data/rbi/post_for_me/models/social_account.rbi +8 -0
  26. data/rbi/post_for_me/models/social_account_create_auth_url_params.rbi +545 -15
  27. data/rbi/post_for_me/models/social_account_disconnect_response.rbi +8 -0
  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.rbi +4 -0
  31. data/rbi/post_for_me/resources/social_account_feeds.rbi +51 -0
  32. data/rbi/post_for_me/resources/social_accounts.rbi +13 -0
  33. data/sig/post_for_me/client.rbs +2 -0
  34. data/sig/post_for_me/internal/transport/base_client.rbs +2 -0
  35. data/sig/post_for_me/internal/transport/pooled_net_requester.rbs +4 -1
  36. data/sig/post_for_me/models/platform_post.rbs +660 -0
  37. data/sig/post_for_me/models/social_account.rbs +5 -0
  38. data/sig/post_for_me/models/social_account_create_auth_url_params.rbs +193 -10
  39. data/sig/post_for_me/models/social_account_disconnect_response.rbs +5 -0
  40. data/sig/post_for_me/models/social_account_feed_list_params.rbs +75 -0
  41. data/sig/post_for_me/models/social_account_feed_list_response.rbs +54 -0
  42. data/sig/post_for_me/models.rbs +4 -0
  43. data/sig/post_for_me/resources/social_account_feeds.rbs +18 -0
  44. data/sig/post_for_me/resources/social_accounts.rbs +2 -0
  45. metadata +14 -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
@@ -8,6 +8,7 @@ module PostForMe
8
8
  external_id: String?,
9
9
  metadata: top?,
10
10
  platform: String,
11
+ profile_photo_url: String?,
11
12
  refresh_token: String?,
12
13
  refresh_token_expires_at: Time?,
13
14
  status: PostForMe::Models::SocialAccountDisconnectResponse::status,
@@ -28,6 +29,8 @@ module PostForMe
28
29
 
29
30
  attr_accessor platform: String
30
31
 
32
+ attr_accessor profile_photo_url: String?
33
+
31
34
  attr_accessor refresh_token: String?
32
35
 
33
36
  attr_accessor refresh_token_expires_at: Time?
@@ -45,6 +48,7 @@ module PostForMe
45
48
  external_id: String?,
46
49
  metadata: top?,
47
50
  platform: String,
51
+ profile_photo_url: String?,
48
52
  refresh_token: String?,
49
53
  refresh_token_expires_at: Time?,
50
54
  status: PostForMe::Models::SocialAccountDisconnectResponse::status,
@@ -59,6 +63,7 @@ module PostForMe
59
63
  external_id: String?,
60
64
  metadata: top?,
61
65
  platform: String,
66
+ profile_photo_url: String?,
62
67
  refresh_token: String?,
63
68
  refresh_token_expires_at: Time?,
64
69
  status: PostForMe::Models::SocialAccountDisconnectResponse::status,
@@ -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
@@ -15,6 +15,8 @@ module PostForMe
15
15
 
16
16
  class PlatformConfigurationsDto = PostForMe::Models::PlatformConfigurationsDto
17
17
 
18
+ class PlatformPost = PostForMe::Models::PlatformPost
19
+
18
20
  class SocialAccount = PostForMe::Models::SocialAccount
19
21
 
20
22
  class SocialAccountCreateAuthURLParams = PostForMe::Models::SocialAccountCreateAuthURLParams
@@ -23,6 +25,8 @@ module PostForMe
23
25
 
24
26
  class SocialAccountDisconnectParams = PostForMe::Models::SocialAccountDisconnectParams
25
27
 
28
+ class SocialAccountFeedListParams = PostForMe::Models::SocialAccountFeedListParams
29
+
26
30
  class SocialAccountListParams = PostForMe::Models::SocialAccountListParams
27
31
 
28
32
  class SocialAccountRetrieveParams = PostForMe::Models::SocialAccountRetrieveParams
@@ -0,0 +1,18 @@
1
+ module PostForMe
2
+ module Resources
3
+ class SocialAccountFeeds
4
+ def list: (
5
+ String social_account_id,
6
+ ?cursor: String,
7
+ ?expand: ::Array[PostForMe::Models::SocialAccountFeedListParams::expand],
8
+ ?external_post_id: ::Array[String],
9
+ ?limit: Float,
10
+ ?platform_post_id: ::Array[String],
11
+ ?social_post_id: ::Array[String],
12
+ ?request_options: PostForMe::request_opts
13
+ ) -> PostForMe::Models::SocialAccountFeedListResponse
14
+
15
+ def initialize: (client: PostForMe::Client) -> void
16
+ end
17
+ end
18
+ end
@@ -39,7 +39,9 @@ module PostForMe
39
39
  def create_auth_url: (
40
40
  platform: String,
41
41
  ?external_id: String,
42
+ ?permissions: ::Array[PostForMe::Models::SocialAccountCreateAuthURLParams::permission],
42
43
  ?platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData,
44
+ ?redirect_url_override: String,
43
45
  ?request_options: PostForMe::request_opts
44
46
  ) -> PostForMe::Models::SocialAccountCreateAuthURLResponse
45
47
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: post-for-me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.9
4
+ version: 0.1.0.pre.alpha.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Post For Me
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-03 00:00:00.000000000 Z
11
+ date: 2025-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -64,12 +64,15 @@ files:
64
64
  - lib/post_for_me/models/media_create_upload_url_response.rb
65
65
  - lib/post_for_me/models/pinterest_configuration_dto.rb
66
66
  - lib/post_for_me/models/platform_configurations_dto.rb
67
+ - lib/post_for_me/models/platform_post.rb
67
68
  - lib/post_for_me/models/social_account.rb
68
69
  - lib/post_for_me/models/social_account_create_auth_url_params.rb
69
70
  - lib/post_for_me/models/social_account_create_auth_url_response.rb
70
71
  - lib/post_for_me/models/social_account_create_params.rb
71
72
  - lib/post_for_me/models/social_account_disconnect_params.rb
72
73
  - lib/post_for_me/models/social_account_disconnect_response.rb
74
+ - lib/post_for_me/models/social_account_feed_list_params.rb
75
+ - lib/post_for_me/models/social_account_feed_list_response.rb
73
76
  - lib/post_for_me/models/social_account_list_params.rb
74
77
  - lib/post_for_me/models/social_account_list_response.rb
75
78
  - lib/post_for_me/models/social_account_retrieve_params.rb
@@ -92,6 +95,7 @@ files:
92
95
  - lib/post_for_me/models/youtube_configuration_dto.rb
93
96
  - lib/post_for_me/request_options.rb
94
97
  - lib/post_for_me/resources/media.rb
98
+ - lib/post_for_me/resources/social_account_feeds.rb
95
99
  - lib/post_for_me/resources/social_accounts.rb
96
100
  - lib/post_for_me/resources/social_post_results.rb
97
101
  - lib/post_for_me/resources/social_posts.rb
@@ -125,12 +129,15 @@ files:
125
129
  - rbi/post_for_me/models/media_create_upload_url_response.rbi
126
130
  - rbi/post_for_me/models/pinterest_configuration_dto.rbi
127
131
  - rbi/post_for_me/models/platform_configurations_dto.rbi
132
+ - rbi/post_for_me/models/platform_post.rbi
128
133
  - rbi/post_for_me/models/social_account.rbi
129
134
  - rbi/post_for_me/models/social_account_create_auth_url_params.rbi
130
135
  - rbi/post_for_me/models/social_account_create_auth_url_response.rbi
131
136
  - rbi/post_for_me/models/social_account_create_params.rbi
132
137
  - rbi/post_for_me/models/social_account_disconnect_params.rbi
133
138
  - rbi/post_for_me/models/social_account_disconnect_response.rbi
139
+ - rbi/post_for_me/models/social_account_feed_list_params.rbi
140
+ - rbi/post_for_me/models/social_account_feed_list_response.rbi
134
141
  - rbi/post_for_me/models/social_account_list_params.rbi
135
142
  - rbi/post_for_me/models/social_account_list_response.rbi
136
143
  - rbi/post_for_me/models/social_account_retrieve_params.rbi
@@ -153,6 +160,7 @@ files:
153
160
  - rbi/post_for_me/models/youtube_configuration_dto.rbi
154
161
  - rbi/post_for_me/request_options.rbi
155
162
  - rbi/post_for_me/resources/media.rbi
163
+ - rbi/post_for_me/resources/social_account_feeds.rbi
156
164
  - rbi/post_for_me/resources/social_accounts.rbi
157
165
  - rbi/post_for_me/resources/social_post_results.rbi
158
166
  - rbi/post_for_me/resources/social_posts.rbi
@@ -185,12 +193,15 @@ files:
185
193
  - sig/post_for_me/models/media_create_upload_url_response.rbs
186
194
  - sig/post_for_me/models/pinterest_configuration_dto.rbs
187
195
  - sig/post_for_me/models/platform_configurations_dto.rbs
196
+ - sig/post_for_me/models/platform_post.rbs
188
197
  - sig/post_for_me/models/social_account.rbs
189
198
  - sig/post_for_me/models/social_account_create_auth_url_params.rbs
190
199
  - sig/post_for_me/models/social_account_create_auth_url_response.rbs
191
200
  - sig/post_for_me/models/social_account_create_params.rbs
192
201
  - sig/post_for_me/models/social_account_disconnect_params.rbs
193
202
  - sig/post_for_me/models/social_account_disconnect_response.rbs
203
+ - sig/post_for_me/models/social_account_feed_list_params.rbs
204
+ - sig/post_for_me/models/social_account_feed_list_response.rbs
194
205
  - sig/post_for_me/models/social_account_list_params.rbs
195
206
  - sig/post_for_me/models/social_account_list_response.rbs
196
207
  - sig/post_for_me/models/social_account_retrieve_params.rbs
@@ -213,6 +224,7 @@ files:
213
224
  - sig/post_for_me/models/youtube_configuration_dto.rbs
214
225
  - sig/post_for_me/request_options.rbs
215
226
  - sig/post_for_me/resources/media.rbs
227
+ - sig/post_for_me/resources/social_account_feeds.rbs
216
228
  - sig/post_for_me/resources/social_accounts.rbs
217
229
  - sig/post_for_me/resources/social_post_results.rbs
218
230
  - sig/post_for_me/resources/social_posts.rbs