post-for-me 0.1.0.pre.alpha.3 → 0.1.0.pre.alpha.5
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +1 -1
- data/lib/post_for_me/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/post_for_me/internal/type/base_model.rb +1 -8
- data/lib/post_for_me/internal/util.rb +1 -1
- data/lib/post_for_me/models/create_social_post.rb +108 -30
- data/lib/post_for_me/models/social_account_create_auth_url_params.rb +1 -3
- data/lib/post_for_me/models/social_post_list_params.rb +1 -4
- data/lib/post_for_me/models/tiktok_configuration.rb +13 -1
- data/lib/post_for_me/version.rb +1 -1
- data/rbi/post_for_me/errors.rbi +2 -2
- data/rbi/post_for_me/models/create_social_post.rbi +202 -51
- data/rbi/post_for_me/models/tiktok_configuration.rbi +10 -0
- data/sig/post_for_me/models/create_social_post.rbs +95 -25
- data/sig/post_for_me/models/tiktok_configuration.rbs +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 543020ee0e3a162a334ce342dd21cef4d7f568db522f1fff1f5e5b7d9eb61aa3
|
|
4
|
+
data.tar.gz: 519e830c64c3c314500b0da9638705948be0a1aabfbb50184e42e5382bb9a6a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a685a8c82b8ffaa31696a68bddddbfce440d4d51a8557f2940b1687942133e7f30369114f4a43f5883210aeb4e5fcc4c4f76491d2e7d11fabf044d97e70ac88e
|
|
7
|
+
data.tar.gz: 43d0f07332c3a409f9e0f1a6699517a0e9c66fec71d8d9e226e49775594f59c3ff8e09edc3efc857ea61f7b4cf0a1ce23675f3ceb7e80ba1198326f5a9c73bc9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.5 (2025-08-22)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([0eae2d6](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/0eae2d659f9b0faeb3e8bcddb12a273343314e3d))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* bump sorbet version and fix new type errors from the breaking change ([c6ab64c](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/c6ab64c6459562d58a4858b6a9a47e9a1cdf6c73))
|
|
15
|
+
|
|
16
|
+
## 0.1.0-alpha.4 (2025-08-18)
|
|
17
|
+
|
|
18
|
+
Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **api:** api update ([c4f6edf](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/c4f6edf0b6af61e9490d6f82227ae3ec87257d11))
|
|
23
|
+
|
|
3
24
|
## 0.1.0-alpha.3 (2025-08-14)
|
|
4
25
|
|
|
5
26
|
Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
|
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.
|
|
20
|
+
gem "post-for-me", "~> 0.1.0.pre.alpha.5"
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
<!-- x-release-please-end -->
|
|
@@ -193,15 +193,7 @@ module PostForMe
|
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
define_sorbet_constant!(:Request) do
|
|
196
|
-
T.type_alias
|
|
197
|
-
{
|
|
198
|
-
method: Symbol,
|
|
199
|
-
url: URI::Generic,
|
|
200
|
-
headers: T::Hash[String, String],
|
|
201
|
-
body: T.anything,
|
|
202
|
-
deadline: Float
|
|
203
|
-
}
|
|
204
|
-
end
|
|
196
|
+
T.type_alias { {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} }
|
|
205
197
|
end
|
|
206
198
|
end
|
|
207
199
|
end
|
|
@@ -64,14 +64,7 @@ module PostForMe
|
|
|
64
64
|
setter = :"#{name_sym}="
|
|
65
65
|
api_name = info.fetch(:api_name, name_sym)
|
|
66
66
|
nilable = info.fetch(:nil?, false)
|
|
67
|
-
const =
|
|
68
|
-
info.fetch(
|
|
69
|
-
:const,
|
|
70
|
-
PostForMe::Internal::OMIT
|
|
71
|
-
)
|
|
72
|
-
else
|
|
73
|
-
PostForMe::Internal::OMIT
|
|
74
|
-
end
|
|
67
|
+
const = required && !nilable ? info.fetch(:const, PostForMe::Internal::OMIT) : PostForMe::Internal::OMIT
|
|
75
68
|
|
|
76
69
|
[name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym)
|
|
77
70
|
|
|
@@ -244,7 +244,7 @@ module PostForMe
|
|
|
244
244
|
#
|
|
245
245
|
# @return [String]
|
|
246
246
|
def uri_origin(uri)
|
|
247
|
-
"#{uri.scheme}://#{uri.host}#{uri.port
|
|
247
|
+
"#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}"
|
|
248
248
|
end
|
|
249
249
|
|
|
250
250
|
# @api private
|
|
@@ -144,26 +144,39 @@ module PostForMe
|
|
|
144
144
|
# @return [Boolean, nil]
|
|
145
145
|
optional :disclose_your_brand, PostForMe::Internal::Type::Boolean, nil?: true
|
|
146
146
|
|
|
147
|
+
# @!attribute is_ai_generated
|
|
148
|
+
# Flag content as AI generated on TikTok
|
|
149
|
+
#
|
|
150
|
+
# @return [Boolean, nil]
|
|
151
|
+
optional :is_ai_generated, PostForMe::Internal::Type::Boolean, nil?: true
|
|
152
|
+
|
|
153
|
+
# @!attribute is_draft
|
|
154
|
+
# Will create a draft upload to TikTok, posting will need to be completed from
|
|
155
|
+
# within the app
|
|
156
|
+
#
|
|
157
|
+
# @return [Boolean, nil]
|
|
158
|
+
optional :is_draft, PostForMe::Internal::Type::Boolean, nil?: true
|
|
159
|
+
|
|
147
160
|
# @!attribute link
|
|
148
161
|
# Pinterest post link
|
|
149
162
|
#
|
|
150
163
|
# @return [String, nil]
|
|
151
164
|
optional :link, String, nil?: true
|
|
152
165
|
|
|
153
|
-
# @!attribute location
|
|
154
|
-
# Threads post location
|
|
155
|
-
#
|
|
156
|
-
# @return [Symbol, PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Location, nil]
|
|
157
|
-
optional :location,
|
|
158
|
-
enum: -> { PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Location },
|
|
159
|
-
nil?: true
|
|
160
|
-
|
|
161
166
|
# @!attribute media
|
|
162
167
|
# Overrides the `media` from the post
|
|
163
168
|
#
|
|
164
169
|
# @return [Array<String>, nil]
|
|
165
170
|
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
166
171
|
|
|
172
|
+
# @!attribute placement
|
|
173
|
+
# Post placement for Facebook/Instagram/Threads
|
|
174
|
+
#
|
|
175
|
+
# @return [Symbol, PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Placement, nil]
|
|
176
|
+
optional :placement,
|
|
177
|
+
enum: -> { PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement },
|
|
178
|
+
nil?: true
|
|
179
|
+
|
|
167
180
|
# @!attribute privacy_status
|
|
168
181
|
# Sets the privacy status for TikTok (private, public)
|
|
169
182
|
#
|
|
@@ -176,7 +189,11 @@ module PostForMe
|
|
|
176
189
|
# @return [String, nil]
|
|
177
190
|
optional :title, String, nil?: true
|
|
178
191
|
|
|
179
|
-
# @!method initialize(allow_comment: nil, allow_duet: nil, allow_stitch: nil, board_ids: nil, caption: nil, disclose_branded_content: nil, disclose_your_brand: nil,
|
|
192
|
+
# @!method initialize(allow_comment: nil, allow_duet: nil, allow_stitch: nil, board_ids: nil, caption: nil, disclose_branded_content: nil, disclose_your_brand: nil, is_ai_generated: nil, is_draft: nil, link: nil, media: nil, placement: nil, privacy_status: nil, title: nil)
|
|
193
|
+
# Some parameter documentations has been truncated, see
|
|
194
|
+
# {PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration} for
|
|
195
|
+
# more details.
|
|
196
|
+
#
|
|
180
197
|
# Configuration for the social account
|
|
181
198
|
#
|
|
182
199
|
# @param allow_comment [Boolean, nil] Allow comments on TikTok
|
|
@@ -193,24 +210,29 @@ module PostForMe
|
|
|
193
210
|
#
|
|
194
211
|
# @param disclose_your_brand [Boolean, nil] Disclose your brand on TikTok
|
|
195
212
|
#
|
|
196
|
-
# @param
|
|
213
|
+
# @param is_ai_generated [Boolean, nil] Flag content as AI generated on TikTok
|
|
214
|
+
#
|
|
215
|
+
# @param is_draft [Boolean, nil] Will create a draft upload to TikTok, posting will need to be completed from wit
|
|
197
216
|
#
|
|
198
|
-
# @param
|
|
217
|
+
# @param link [String, nil] Pinterest post link
|
|
199
218
|
#
|
|
200
219
|
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
201
220
|
#
|
|
221
|
+
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::Placement, nil] Post placement for Facebook/Instagram/Threads
|
|
222
|
+
#
|
|
202
223
|
# @param privacy_status [String, nil] Sets the privacy status for TikTok (private, public)
|
|
203
224
|
#
|
|
204
225
|
# @param title [String, nil] Overrides the `title` from the post
|
|
205
226
|
|
|
206
|
-
#
|
|
227
|
+
# Post placement for Facebook/Instagram/Threads
|
|
207
228
|
#
|
|
208
|
-
# @see PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration#
|
|
209
|
-
module
|
|
229
|
+
# @see PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration#placement
|
|
230
|
+
module Placement
|
|
210
231
|
extend PostForMe::Internal::Type::Enum
|
|
211
232
|
|
|
212
233
|
REELS = :reels
|
|
213
234
|
TIMELINE = :timeline
|
|
235
|
+
STORIES = :stories
|
|
214
236
|
|
|
215
237
|
# @!method self.values
|
|
216
238
|
# @return [Array<Symbol>]
|
|
@@ -366,12 +388,36 @@ module PostForMe
|
|
|
366
388
|
# @return [Array<String>, nil]
|
|
367
389
|
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
368
390
|
|
|
369
|
-
# @!
|
|
391
|
+
# @!attribute placement
|
|
392
|
+
# Facebook post placement
|
|
393
|
+
#
|
|
394
|
+
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::Placement, nil]
|
|
395
|
+
optional :placement,
|
|
396
|
+
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement },
|
|
397
|
+
nil?: true
|
|
398
|
+
|
|
399
|
+
# @!method initialize(caption: nil, media: nil, placement: nil)
|
|
370
400
|
# Facebook configuration
|
|
371
401
|
#
|
|
372
402
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
373
403
|
#
|
|
374
404
|
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
405
|
+
#
|
|
406
|
+
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::Placement, nil] Facebook post placement
|
|
407
|
+
|
|
408
|
+
# Facebook post placement
|
|
409
|
+
#
|
|
410
|
+
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook#placement
|
|
411
|
+
module Placement
|
|
412
|
+
extend PostForMe::Internal::Type::Enum
|
|
413
|
+
|
|
414
|
+
REELS = :reels
|
|
415
|
+
STORIES = :stories
|
|
416
|
+
TIMELINE = :timeline
|
|
417
|
+
|
|
418
|
+
# @!method self.values
|
|
419
|
+
# @return [Array<Symbol>]
|
|
420
|
+
end
|
|
375
421
|
end
|
|
376
422
|
|
|
377
423
|
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#instagram
|
|
@@ -382,18 +428,50 @@ module PostForMe
|
|
|
382
428
|
# @return [Object, nil]
|
|
383
429
|
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
384
430
|
|
|
431
|
+
# @!attribute collaborators
|
|
432
|
+
# Instagram usernames to be tagged as a collaborator
|
|
433
|
+
#
|
|
434
|
+
# @return [Array<String>, nil]
|
|
435
|
+
optional :collaborators, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
436
|
+
|
|
385
437
|
# @!attribute media
|
|
386
438
|
# Overrides the `media` from the post
|
|
387
439
|
#
|
|
388
440
|
# @return [Array<String>, nil]
|
|
389
441
|
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
390
442
|
|
|
391
|
-
# @!
|
|
443
|
+
# @!attribute placement
|
|
444
|
+
# Instagram post placement
|
|
445
|
+
#
|
|
446
|
+
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::Placement, nil]
|
|
447
|
+
optional :placement,
|
|
448
|
+
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement },
|
|
449
|
+
nil?: true
|
|
450
|
+
|
|
451
|
+
# @!method initialize(caption: nil, collaborators: nil, media: nil, placement: nil)
|
|
392
452
|
# Instagram configuration
|
|
393
453
|
#
|
|
394
454
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
395
455
|
#
|
|
456
|
+
# @param collaborators [Array<String>, nil] Instagram usernames to be tagged as a collaborator
|
|
457
|
+
#
|
|
396
458
|
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
459
|
+
#
|
|
460
|
+
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::Placement, nil] Instagram post placement
|
|
461
|
+
|
|
462
|
+
# Instagram post placement
|
|
463
|
+
#
|
|
464
|
+
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram#placement
|
|
465
|
+
module Placement
|
|
466
|
+
extend PostForMe::Internal::Type::Enum
|
|
467
|
+
|
|
468
|
+
REELS = :reels
|
|
469
|
+
STORIES = :stories
|
|
470
|
+
TIMELINE = :timeline
|
|
471
|
+
|
|
472
|
+
# @!method self.values
|
|
473
|
+
# @return [Array<Symbol>]
|
|
474
|
+
end
|
|
397
475
|
end
|
|
398
476
|
|
|
399
477
|
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations#linkedin
|
|
@@ -464,33 +542,33 @@ module PostForMe
|
|
|
464
542
|
# @return [Object, nil]
|
|
465
543
|
optional :caption, PostForMe::Internal::Type::Unknown, nil?: true
|
|
466
544
|
|
|
467
|
-
# @!attribute location
|
|
468
|
-
# Threads post location
|
|
469
|
-
#
|
|
470
|
-
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::Location, nil]
|
|
471
|
-
optional :location,
|
|
472
|
-
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Location },
|
|
473
|
-
nil?: true
|
|
474
|
-
|
|
475
545
|
# @!attribute media
|
|
476
546
|
# Overrides the `media` from the post
|
|
477
547
|
#
|
|
478
548
|
# @return [Array<String>, nil]
|
|
479
549
|
optional :media, PostForMe::Internal::Type::ArrayOf[String], nil?: true
|
|
480
550
|
|
|
481
|
-
# @!
|
|
551
|
+
# @!attribute placement
|
|
552
|
+
# Threads post placement
|
|
553
|
+
#
|
|
554
|
+
# @return [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::Placement, nil]
|
|
555
|
+
optional :placement,
|
|
556
|
+
enum: -> { PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement },
|
|
557
|
+
nil?: true
|
|
558
|
+
|
|
559
|
+
# @!method initialize(caption: nil, media: nil, placement: nil)
|
|
482
560
|
# Threads configuration
|
|
483
561
|
#
|
|
484
562
|
# @param caption [Object, nil] Overrides the `caption` from the post
|
|
485
563
|
#
|
|
486
|
-
# @param location [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::Location, nil] Threads post location
|
|
487
|
-
#
|
|
488
564
|
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
565
|
+
#
|
|
566
|
+
# @param placement [Symbol, PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::Placement, nil] Threads post placement
|
|
489
567
|
|
|
490
|
-
# Threads post
|
|
568
|
+
# Threads post placement
|
|
491
569
|
#
|
|
492
|
-
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads#
|
|
493
|
-
module
|
|
570
|
+
# @see PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads#placement
|
|
571
|
+
module Placement
|
|
494
572
|
extend PostForMe::Internal::Type::Enum
|
|
495
573
|
|
|
496
574
|
REELS = :reels
|
|
@@ -76,9 +76,7 @@ module PostForMe
|
|
|
76
76
|
#
|
|
77
77
|
# @return [Symbol, PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::ConnectionType]
|
|
78
78
|
required :connection_type,
|
|
79
|
-
enum: -> {
|
|
80
|
-
PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::ConnectionType
|
|
81
|
-
}
|
|
79
|
+
enum: -> { PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::ConnectionType }
|
|
82
80
|
|
|
83
81
|
# @!method initialize(connection_type:)
|
|
84
82
|
# Some parameter documentations has been truncated, see
|
|
@@ -36,10 +36,7 @@ module PostForMe
|
|
|
36
36
|
# Filter by post status. Multiple values imply OR logic.
|
|
37
37
|
#
|
|
38
38
|
# @return [Array<Symbol, PostForMe::Models::SocialPostListParams::Status>, nil]
|
|
39
|
-
optional :status,
|
|
40
|
-
-> {
|
|
41
|
-
PostForMe::Internal::Type::ArrayOf[enum: PostForMe::SocialPostListParams::Status]
|
|
42
|
-
}
|
|
39
|
+
optional :status, -> { PostForMe::Internal::Type::ArrayOf[enum: PostForMe::SocialPostListParams::Status] }
|
|
43
40
|
|
|
44
41
|
# @!method initialize(external_id: nil, limit: nil, offset: nil, platform: nil, status: nil, request_options: {})
|
|
45
42
|
# @param external_id [Array<String>] Filter by external ID. Multiple values imply OR logic.
|
|
@@ -45,6 +45,13 @@ module PostForMe
|
|
|
45
45
|
# @return [Boolean, nil]
|
|
46
46
|
optional :is_ai_generated, PostForMe::Internal::Type::Boolean, nil?: true
|
|
47
47
|
|
|
48
|
+
# @!attribute is_draft
|
|
49
|
+
# Will create a draft upload to TikTok, posting will need to be completed from
|
|
50
|
+
# within the app
|
|
51
|
+
#
|
|
52
|
+
# @return [Boolean, nil]
|
|
53
|
+
optional :is_draft, PostForMe::Internal::Type::Boolean, nil?: true
|
|
54
|
+
|
|
48
55
|
# @!attribute media
|
|
49
56
|
# Overrides the `media` from the post
|
|
50
57
|
#
|
|
@@ -63,7 +70,10 @@ module PostForMe
|
|
|
63
70
|
# @return [String, nil]
|
|
64
71
|
optional :title, String, nil?: true
|
|
65
72
|
|
|
66
|
-
# @!method initialize(allow_comment: nil, allow_duet: nil, allow_stitch: nil, caption: nil, disclose_branded_content: nil, disclose_your_brand: nil, is_ai_generated: nil, media: nil, privacy_status: nil, title: nil)
|
|
73
|
+
# @!method initialize(allow_comment: nil, allow_duet: nil, allow_stitch: nil, caption: nil, disclose_branded_content: nil, disclose_your_brand: nil, is_ai_generated: nil, is_draft: nil, media: nil, privacy_status: nil, title: nil)
|
|
74
|
+
# Some parameter documentations has been truncated, see
|
|
75
|
+
# {PostForMe::Models::TiktokConfiguration} for more details.
|
|
76
|
+
#
|
|
67
77
|
# @param allow_comment [Boolean, nil] Allow comments on TikTok
|
|
68
78
|
#
|
|
69
79
|
# @param allow_duet [Boolean, nil] Allow duets on TikTok
|
|
@@ -78,6 +88,8 @@ module PostForMe
|
|
|
78
88
|
#
|
|
79
89
|
# @param is_ai_generated [Boolean, nil] Flag content as AI generated on TikTok
|
|
80
90
|
#
|
|
91
|
+
# @param is_draft [Boolean, nil] Will create a draft upload to TikTok, posting will need to be completed from wit
|
|
92
|
+
#
|
|
81
93
|
# @param media [Array<String>, nil] Overrides the `media` from the post
|
|
82
94
|
#
|
|
83
95
|
# @param privacy_status [String, nil] Sets the privacy status for TikTok (private, public)
|
data/lib/post_for_me/version.rb
CHANGED
data/rbi/post_for_me/errors.rbi
CHANGED
|
@@ -213,23 +213,32 @@ module PostForMe
|
|
|
213
213
|
sig { returns(T.nilable(T::Boolean)) }
|
|
214
214
|
attr_accessor :disclose_your_brand
|
|
215
215
|
|
|
216
|
+
# Flag content as AI generated on TikTok
|
|
217
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
218
|
+
attr_accessor :is_ai_generated
|
|
219
|
+
|
|
220
|
+
# Will create a draft upload to TikTok, posting will need to be completed from
|
|
221
|
+
# within the app
|
|
222
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
223
|
+
attr_accessor :is_draft
|
|
224
|
+
|
|
216
225
|
# Pinterest post link
|
|
217
226
|
sig { returns(T.nilable(String)) }
|
|
218
227
|
attr_accessor :link
|
|
219
228
|
|
|
220
|
-
#
|
|
229
|
+
# Overrides the `media` from the post
|
|
230
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
231
|
+
attr_accessor :media
|
|
232
|
+
|
|
233
|
+
# Post placement for Facebook/Instagram/Threads
|
|
221
234
|
sig do
|
|
222
235
|
returns(
|
|
223
236
|
T.nilable(
|
|
224
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
237
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::OrSymbol
|
|
225
238
|
)
|
|
226
239
|
)
|
|
227
240
|
end
|
|
228
|
-
attr_accessor :
|
|
229
|
-
|
|
230
|
-
# Overrides the `media` from the post
|
|
231
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
232
|
-
attr_accessor :media
|
|
241
|
+
attr_accessor :placement
|
|
233
242
|
|
|
234
243
|
# Sets the privacy status for TikTok (private, public)
|
|
235
244
|
sig { returns(T.nilable(String)) }
|
|
@@ -249,12 +258,14 @@ module PostForMe
|
|
|
249
258
|
caption: T.nilable(T.anything),
|
|
250
259
|
disclose_branded_content: T.nilable(T::Boolean),
|
|
251
260
|
disclose_your_brand: T.nilable(T::Boolean),
|
|
261
|
+
is_ai_generated: T.nilable(T::Boolean),
|
|
262
|
+
is_draft: T.nilable(T::Boolean),
|
|
252
263
|
link: T.nilable(String),
|
|
253
|
-
|
|
264
|
+
media: T.nilable(T::Array[String]),
|
|
265
|
+
placement:
|
|
254
266
|
T.nilable(
|
|
255
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
267
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::OrSymbol
|
|
256
268
|
),
|
|
257
|
-
media: T.nilable(T::Array[String]),
|
|
258
269
|
privacy_status: T.nilable(String),
|
|
259
270
|
title: T.nilable(String)
|
|
260
271
|
).returns(T.attached_class)
|
|
@@ -274,12 +285,17 @@ module PostForMe
|
|
|
274
285
|
disclose_branded_content: nil,
|
|
275
286
|
# Disclose your brand on TikTok
|
|
276
287
|
disclose_your_brand: nil,
|
|
288
|
+
# Flag content as AI generated on TikTok
|
|
289
|
+
is_ai_generated: nil,
|
|
290
|
+
# Will create a draft upload to TikTok, posting will need to be completed from
|
|
291
|
+
# within the app
|
|
292
|
+
is_draft: nil,
|
|
277
293
|
# Pinterest post link
|
|
278
294
|
link: nil,
|
|
279
|
-
# Threads post location
|
|
280
|
-
location: nil,
|
|
281
295
|
# Overrides the `media` from the post
|
|
282
296
|
media: nil,
|
|
297
|
+
# Post placement for Facebook/Instagram/Threads
|
|
298
|
+
placement: nil,
|
|
283
299
|
# Sets the privacy status for TikTok (private, public)
|
|
284
300
|
privacy_status: nil,
|
|
285
301
|
# Overrides the `title` from the post
|
|
@@ -297,12 +313,14 @@ module PostForMe
|
|
|
297
313
|
caption: T.nilable(T.anything),
|
|
298
314
|
disclose_branded_content: T.nilable(T::Boolean),
|
|
299
315
|
disclose_your_brand: T.nilable(T::Boolean),
|
|
316
|
+
is_ai_generated: T.nilable(T::Boolean),
|
|
317
|
+
is_draft: T.nilable(T::Boolean),
|
|
300
318
|
link: T.nilable(String),
|
|
301
|
-
|
|
319
|
+
media: T.nilable(T::Array[String]),
|
|
320
|
+
placement:
|
|
302
321
|
T.nilable(
|
|
303
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
322
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::OrSymbol
|
|
304
323
|
),
|
|
305
|
-
media: T.nilable(T::Array[String]),
|
|
306
324
|
privacy_status: T.nilable(String),
|
|
307
325
|
title: T.nilable(String)
|
|
308
326
|
}
|
|
@@ -311,15 +329,15 @@ module PostForMe
|
|
|
311
329
|
def to_hash
|
|
312
330
|
end
|
|
313
331
|
|
|
314
|
-
#
|
|
315
|
-
module
|
|
332
|
+
# Post placement for Facebook/Instagram/Threads
|
|
333
|
+
module Placement
|
|
316
334
|
extend PostForMe::Internal::Type::Enum
|
|
317
335
|
|
|
318
336
|
TaggedSymbol =
|
|
319
337
|
T.type_alias do
|
|
320
338
|
T.all(
|
|
321
339
|
Symbol,
|
|
322
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
340
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement
|
|
323
341
|
)
|
|
324
342
|
end
|
|
325
343
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -327,18 +345,23 @@ module PostForMe
|
|
|
327
345
|
REELS =
|
|
328
346
|
T.let(
|
|
329
347
|
:reels,
|
|
330
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
348
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::TaggedSymbol
|
|
331
349
|
)
|
|
332
350
|
TIMELINE =
|
|
333
351
|
T.let(
|
|
334
352
|
:timeline,
|
|
335
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
353
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::TaggedSymbol
|
|
354
|
+
)
|
|
355
|
+
STORIES =
|
|
356
|
+
T.let(
|
|
357
|
+
:stories,
|
|
358
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::TaggedSymbol
|
|
336
359
|
)
|
|
337
360
|
|
|
338
361
|
sig do
|
|
339
362
|
override.returns(
|
|
340
363
|
T::Array[
|
|
341
|
-
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::
|
|
364
|
+
PostForMe::CreateSocialPost::AccountConfiguration::Configuration::Placement::TaggedSymbol
|
|
342
365
|
]
|
|
343
366
|
)
|
|
344
367
|
end
|
|
@@ -753,18 +776,34 @@ module PostForMe
|
|
|
753
776
|
sig { returns(T.nilable(T::Array[String])) }
|
|
754
777
|
attr_accessor :media
|
|
755
778
|
|
|
779
|
+
# Facebook post placement
|
|
780
|
+
sig do
|
|
781
|
+
returns(
|
|
782
|
+
T.nilable(
|
|
783
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::OrSymbol
|
|
784
|
+
)
|
|
785
|
+
)
|
|
786
|
+
end
|
|
787
|
+
attr_accessor :placement
|
|
788
|
+
|
|
756
789
|
# Facebook configuration
|
|
757
790
|
sig do
|
|
758
791
|
params(
|
|
759
792
|
caption: T.nilable(T.anything),
|
|
760
|
-
media: T.nilable(T::Array[String])
|
|
793
|
+
media: T.nilable(T::Array[String]),
|
|
794
|
+
placement:
|
|
795
|
+
T.nilable(
|
|
796
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::OrSymbol
|
|
797
|
+
)
|
|
761
798
|
).returns(T.attached_class)
|
|
762
799
|
end
|
|
763
800
|
def self.new(
|
|
764
801
|
# Overrides the `caption` from the post
|
|
765
802
|
caption: nil,
|
|
766
803
|
# Overrides the `media` from the post
|
|
767
|
-
media: nil
|
|
804
|
+
media: nil,
|
|
805
|
+
# Facebook post placement
|
|
806
|
+
placement: nil
|
|
768
807
|
)
|
|
769
808
|
end
|
|
770
809
|
|
|
@@ -772,12 +811,56 @@ module PostForMe
|
|
|
772
811
|
override.returns(
|
|
773
812
|
{
|
|
774
813
|
caption: T.nilable(T.anything),
|
|
775
|
-
media: T.nilable(T::Array[String])
|
|
814
|
+
media: T.nilable(T::Array[String]),
|
|
815
|
+
placement:
|
|
816
|
+
T.nilable(
|
|
817
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::OrSymbol
|
|
818
|
+
)
|
|
776
819
|
}
|
|
777
820
|
)
|
|
778
821
|
end
|
|
779
822
|
def to_hash
|
|
780
823
|
end
|
|
824
|
+
|
|
825
|
+
# Facebook post placement
|
|
826
|
+
module Placement
|
|
827
|
+
extend PostForMe::Internal::Type::Enum
|
|
828
|
+
|
|
829
|
+
TaggedSymbol =
|
|
830
|
+
T.type_alias do
|
|
831
|
+
T.all(
|
|
832
|
+
Symbol,
|
|
833
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement
|
|
834
|
+
)
|
|
835
|
+
end
|
|
836
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
837
|
+
|
|
838
|
+
REELS =
|
|
839
|
+
T.let(
|
|
840
|
+
:reels,
|
|
841
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::TaggedSymbol
|
|
842
|
+
)
|
|
843
|
+
STORIES =
|
|
844
|
+
T.let(
|
|
845
|
+
:stories,
|
|
846
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::TaggedSymbol
|
|
847
|
+
)
|
|
848
|
+
TIMELINE =
|
|
849
|
+
T.let(
|
|
850
|
+
:timeline,
|
|
851
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::TaggedSymbol
|
|
852
|
+
)
|
|
853
|
+
|
|
854
|
+
sig do
|
|
855
|
+
override.returns(
|
|
856
|
+
T::Array[
|
|
857
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Facebook::Placement::TaggedSymbol
|
|
858
|
+
]
|
|
859
|
+
)
|
|
860
|
+
end
|
|
861
|
+
def self.values
|
|
862
|
+
end
|
|
863
|
+
end
|
|
781
864
|
end
|
|
782
865
|
|
|
783
866
|
class Instagram < PostForMe::Internal::Type::BaseModel
|
|
@@ -793,22 +876,45 @@ module PostForMe
|
|
|
793
876
|
sig { returns(T.nilable(T.anything)) }
|
|
794
877
|
attr_accessor :caption
|
|
795
878
|
|
|
879
|
+
# Instagram usernames to be tagged as a collaborator
|
|
880
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
881
|
+
attr_accessor :collaborators
|
|
882
|
+
|
|
796
883
|
# Overrides the `media` from the post
|
|
797
884
|
sig { returns(T.nilable(T::Array[String])) }
|
|
798
885
|
attr_accessor :media
|
|
799
886
|
|
|
887
|
+
# Instagram post placement
|
|
888
|
+
sig do
|
|
889
|
+
returns(
|
|
890
|
+
T.nilable(
|
|
891
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::OrSymbol
|
|
892
|
+
)
|
|
893
|
+
)
|
|
894
|
+
end
|
|
895
|
+
attr_accessor :placement
|
|
896
|
+
|
|
800
897
|
# Instagram configuration
|
|
801
898
|
sig do
|
|
802
899
|
params(
|
|
803
900
|
caption: T.nilable(T.anything),
|
|
804
|
-
|
|
901
|
+
collaborators: T.nilable(T::Array[String]),
|
|
902
|
+
media: T.nilable(T::Array[String]),
|
|
903
|
+
placement:
|
|
904
|
+
T.nilable(
|
|
905
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::OrSymbol
|
|
906
|
+
)
|
|
805
907
|
).returns(T.attached_class)
|
|
806
908
|
end
|
|
807
909
|
def self.new(
|
|
808
910
|
# Overrides the `caption` from the post
|
|
809
911
|
caption: nil,
|
|
912
|
+
# Instagram usernames to be tagged as a collaborator
|
|
913
|
+
collaborators: nil,
|
|
810
914
|
# Overrides the `media` from the post
|
|
811
|
-
media: nil
|
|
915
|
+
media: nil,
|
|
916
|
+
# Instagram post placement
|
|
917
|
+
placement: nil
|
|
812
918
|
)
|
|
813
919
|
end
|
|
814
920
|
|
|
@@ -816,12 +922,57 @@ module PostForMe
|
|
|
816
922
|
override.returns(
|
|
817
923
|
{
|
|
818
924
|
caption: T.nilable(T.anything),
|
|
819
|
-
|
|
925
|
+
collaborators: T.nilable(T::Array[String]),
|
|
926
|
+
media: T.nilable(T::Array[String]),
|
|
927
|
+
placement:
|
|
928
|
+
T.nilable(
|
|
929
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::OrSymbol
|
|
930
|
+
)
|
|
820
931
|
}
|
|
821
932
|
)
|
|
822
933
|
end
|
|
823
934
|
def to_hash
|
|
824
935
|
end
|
|
936
|
+
|
|
937
|
+
# Instagram post placement
|
|
938
|
+
module Placement
|
|
939
|
+
extend PostForMe::Internal::Type::Enum
|
|
940
|
+
|
|
941
|
+
TaggedSymbol =
|
|
942
|
+
T.type_alias do
|
|
943
|
+
T.all(
|
|
944
|
+
Symbol,
|
|
945
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement
|
|
946
|
+
)
|
|
947
|
+
end
|
|
948
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
949
|
+
|
|
950
|
+
REELS =
|
|
951
|
+
T.let(
|
|
952
|
+
:reels,
|
|
953
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::TaggedSymbol
|
|
954
|
+
)
|
|
955
|
+
STORIES =
|
|
956
|
+
T.let(
|
|
957
|
+
:stories,
|
|
958
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::TaggedSymbol
|
|
959
|
+
)
|
|
960
|
+
TIMELINE =
|
|
961
|
+
T.let(
|
|
962
|
+
:timeline,
|
|
963
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::TaggedSymbol
|
|
964
|
+
)
|
|
965
|
+
|
|
966
|
+
sig do
|
|
967
|
+
override.returns(
|
|
968
|
+
T::Array[
|
|
969
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Instagram::Placement::TaggedSymbol
|
|
970
|
+
]
|
|
971
|
+
)
|
|
972
|
+
end
|
|
973
|
+
def self.values
|
|
974
|
+
end
|
|
975
|
+
end
|
|
825
976
|
end
|
|
826
977
|
|
|
827
978
|
class Linkedin < PostForMe::Internal::Type::BaseModel
|
|
@@ -941,38 +1092,38 @@ module PostForMe
|
|
|
941
1092
|
sig { returns(T.nilable(T.anything)) }
|
|
942
1093
|
attr_accessor :caption
|
|
943
1094
|
|
|
944
|
-
#
|
|
1095
|
+
# Overrides the `media` from the post
|
|
1096
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
1097
|
+
attr_accessor :media
|
|
1098
|
+
|
|
1099
|
+
# Threads post placement
|
|
945
1100
|
sig do
|
|
946
1101
|
returns(
|
|
947
1102
|
T.nilable(
|
|
948
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
1103
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::OrSymbol
|
|
949
1104
|
)
|
|
950
1105
|
)
|
|
951
1106
|
end
|
|
952
|
-
attr_accessor :
|
|
953
|
-
|
|
954
|
-
# Overrides the `media` from the post
|
|
955
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
956
|
-
attr_accessor :media
|
|
1107
|
+
attr_accessor :placement
|
|
957
1108
|
|
|
958
1109
|
# Threads configuration
|
|
959
1110
|
sig do
|
|
960
1111
|
params(
|
|
961
1112
|
caption: T.nilable(T.anything),
|
|
962
|
-
|
|
1113
|
+
media: T.nilable(T::Array[String]),
|
|
1114
|
+
placement:
|
|
963
1115
|
T.nilable(
|
|
964
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
965
|
-
)
|
|
966
|
-
media: T.nilable(T::Array[String])
|
|
1116
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::OrSymbol
|
|
1117
|
+
)
|
|
967
1118
|
).returns(T.attached_class)
|
|
968
1119
|
end
|
|
969
1120
|
def self.new(
|
|
970
1121
|
# Overrides the `caption` from the post
|
|
971
1122
|
caption: nil,
|
|
972
|
-
# Threads post location
|
|
973
|
-
location: nil,
|
|
974
1123
|
# Overrides the `media` from the post
|
|
975
|
-
media: nil
|
|
1124
|
+
media: nil,
|
|
1125
|
+
# Threads post placement
|
|
1126
|
+
placement: nil
|
|
976
1127
|
)
|
|
977
1128
|
end
|
|
978
1129
|
|
|
@@ -980,26 +1131,26 @@ module PostForMe
|
|
|
980
1131
|
override.returns(
|
|
981
1132
|
{
|
|
982
1133
|
caption: T.nilable(T.anything),
|
|
983
|
-
|
|
1134
|
+
media: T.nilable(T::Array[String]),
|
|
1135
|
+
placement:
|
|
984
1136
|
T.nilable(
|
|
985
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
986
|
-
)
|
|
987
|
-
media: T.nilable(T::Array[String])
|
|
1137
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::OrSymbol
|
|
1138
|
+
)
|
|
988
1139
|
}
|
|
989
1140
|
)
|
|
990
1141
|
end
|
|
991
1142
|
def to_hash
|
|
992
1143
|
end
|
|
993
1144
|
|
|
994
|
-
# Threads post
|
|
995
|
-
module
|
|
1145
|
+
# Threads post placement
|
|
1146
|
+
module Placement
|
|
996
1147
|
extend PostForMe::Internal::Type::Enum
|
|
997
1148
|
|
|
998
1149
|
TaggedSymbol =
|
|
999
1150
|
T.type_alias do
|
|
1000
1151
|
T.all(
|
|
1001
1152
|
Symbol,
|
|
1002
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
1153
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement
|
|
1003
1154
|
)
|
|
1004
1155
|
end
|
|
1005
1156
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -1007,18 +1158,18 @@ module PostForMe
|
|
|
1007
1158
|
REELS =
|
|
1008
1159
|
T.let(
|
|
1009
1160
|
:reels,
|
|
1010
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
1161
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::TaggedSymbol
|
|
1011
1162
|
)
|
|
1012
1163
|
TIMELINE =
|
|
1013
1164
|
T.let(
|
|
1014
1165
|
:timeline,
|
|
1015
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
1166
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::TaggedSymbol
|
|
1016
1167
|
)
|
|
1017
1168
|
|
|
1018
1169
|
sig do
|
|
1019
1170
|
override.returns(
|
|
1020
1171
|
T::Array[
|
|
1021
|
-
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::
|
|
1172
|
+
PostForMe::CreateSocialPost::PlatformConfigurations::Threads::Placement::TaggedSymbol
|
|
1022
1173
|
]
|
|
1023
1174
|
)
|
|
1024
1175
|
end
|
|
@@ -36,6 +36,11 @@ module PostForMe
|
|
|
36
36
|
sig { returns(T.nilable(T::Boolean)) }
|
|
37
37
|
attr_accessor :is_ai_generated
|
|
38
38
|
|
|
39
|
+
# Will create a draft upload to TikTok, posting will need to be completed from
|
|
40
|
+
# within the app
|
|
41
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
42
|
+
attr_accessor :is_draft
|
|
43
|
+
|
|
39
44
|
# Overrides the `media` from the post
|
|
40
45
|
sig { returns(T.nilable(T::Array[String])) }
|
|
41
46
|
attr_accessor :media
|
|
@@ -57,6 +62,7 @@ module PostForMe
|
|
|
57
62
|
disclose_branded_content: T.nilable(T::Boolean),
|
|
58
63
|
disclose_your_brand: T.nilable(T::Boolean),
|
|
59
64
|
is_ai_generated: T.nilable(T::Boolean),
|
|
65
|
+
is_draft: T.nilable(T::Boolean),
|
|
60
66
|
media: T.nilable(T::Array[String]),
|
|
61
67
|
privacy_status: T.nilable(String),
|
|
62
68
|
title: T.nilable(String)
|
|
@@ -77,6 +83,9 @@ module PostForMe
|
|
|
77
83
|
disclose_your_brand: nil,
|
|
78
84
|
# Flag content as AI generated on TikTok
|
|
79
85
|
is_ai_generated: nil,
|
|
86
|
+
# Will create a draft upload to TikTok, posting will need to be completed from
|
|
87
|
+
# within the app
|
|
88
|
+
is_draft: nil,
|
|
80
89
|
# Overrides the `media` from the post
|
|
81
90
|
media: nil,
|
|
82
91
|
# Sets the privacy status for TikTok (private, public)
|
|
@@ -96,6 +105,7 @@ module PostForMe
|
|
|
96
105
|
disclose_branded_content: T.nilable(T::Boolean),
|
|
97
106
|
disclose_your_brand: T.nilable(T::Boolean),
|
|
98
107
|
is_ai_generated: T.nilable(T::Boolean),
|
|
108
|
+
is_draft: T.nilable(T::Boolean),
|
|
99
109
|
media: T.nilable(T::Array[String]),
|
|
100
110
|
privacy_status: T.nilable(String),
|
|
101
111
|
title: T.nilable(String)
|
|
@@ -81,9 +81,11 @@ module PostForMe
|
|
|
81
81
|
caption: top?,
|
|
82
82
|
disclose_branded_content: bool?,
|
|
83
83
|
disclose_your_brand: bool?,
|
|
84
|
+
is_ai_generated: bool?,
|
|
85
|
+
is_draft: bool?,
|
|
84
86
|
link: String?,
|
|
85
|
-
location: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::location?,
|
|
86
87
|
media: ::Array[String]?,
|
|
88
|
+
placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
|
|
87
89
|
privacy_status: String?,
|
|
88
90
|
title: String?
|
|
89
91
|
}
|
|
@@ -103,12 +105,16 @@ module PostForMe
|
|
|
103
105
|
|
|
104
106
|
attr_accessor disclose_your_brand: bool?
|
|
105
107
|
|
|
106
|
-
attr_accessor
|
|
108
|
+
attr_accessor is_ai_generated: bool?
|
|
109
|
+
|
|
110
|
+
attr_accessor is_draft: bool?
|
|
107
111
|
|
|
108
|
-
attr_accessor
|
|
112
|
+
attr_accessor link: String?
|
|
109
113
|
|
|
110
114
|
attr_accessor media: ::Array[String]?
|
|
111
115
|
|
|
116
|
+
attr_accessor placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?
|
|
117
|
+
|
|
112
118
|
attr_accessor privacy_status: String?
|
|
113
119
|
|
|
114
120
|
attr_accessor title: String?
|
|
@@ -121,9 +127,11 @@ module PostForMe
|
|
|
121
127
|
?caption: top?,
|
|
122
128
|
?disclose_branded_content: bool?,
|
|
123
129
|
?disclose_your_brand: bool?,
|
|
130
|
+
?is_ai_generated: bool?,
|
|
131
|
+
?is_draft: bool?,
|
|
124
132
|
?link: String?,
|
|
125
|
-
?location: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::location?,
|
|
126
133
|
?media: ::Array[String]?,
|
|
134
|
+
?placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
|
|
127
135
|
?privacy_status: String?,
|
|
128
136
|
?title: String?
|
|
129
137
|
) -> void
|
|
@@ -136,22 +144,25 @@ module PostForMe
|
|
|
136
144
|
caption: top?,
|
|
137
145
|
disclose_branded_content: bool?,
|
|
138
146
|
disclose_your_brand: bool?,
|
|
147
|
+
is_ai_generated: bool?,
|
|
148
|
+
is_draft: bool?,
|
|
139
149
|
link: String?,
|
|
140
|
-
location: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::location?,
|
|
141
150
|
media: ::Array[String]?,
|
|
151
|
+
placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
|
|
142
152
|
privacy_status: String?,
|
|
143
153
|
title: String?
|
|
144
154
|
}
|
|
145
155
|
|
|
146
|
-
type
|
|
156
|
+
type placement = :reels | :timeline | :stories
|
|
147
157
|
|
|
148
|
-
module
|
|
158
|
+
module Placement
|
|
149
159
|
extend PostForMe::Internal::Type::Enum
|
|
150
160
|
|
|
151
161
|
REELS: :reels
|
|
152
162
|
TIMELINE: :timeline
|
|
163
|
+
STORIES: :stories
|
|
153
164
|
|
|
154
|
-
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::
|
|
165
|
+
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement]
|
|
155
166
|
end
|
|
156
167
|
end
|
|
157
168
|
end
|
|
@@ -252,28 +263,87 @@ module PostForMe
|
|
|
252
263
|
def to_hash: -> { caption: top?, media: ::Array[String]? }
|
|
253
264
|
end
|
|
254
265
|
|
|
255
|
-
type facebook =
|
|
266
|
+
type facebook =
|
|
267
|
+
{
|
|
268
|
+
caption: top?,
|
|
269
|
+
media: ::Array[String]?,
|
|
270
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
|
|
271
|
+
}
|
|
256
272
|
|
|
257
273
|
class Facebook < PostForMe::Internal::Type::BaseModel
|
|
258
274
|
attr_accessor caption: top?
|
|
259
275
|
|
|
260
276
|
attr_accessor media: ::Array[String]?
|
|
261
277
|
|
|
262
|
-
|
|
278
|
+
attr_accessor placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
|
|
263
279
|
|
|
264
|
-
def
|
|
280
|
+
def initialize: (
|
|
281
|
+
?caption: top?,
|
|
282
|
+
?media: ::Array[String]?,
|
|
283
|
+
?placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
|
|
284
|
+
) -> void
|
|
285
|
+
|
|
286
|
+
def to_hash: -> {
|
|
287
|
+
caption: top?,
|
|
288
|
+
media: ::Array[String]?,
|
|
289
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement?
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
type placement = :reels | :stories | :timeline
|
|
293
|
+
|
|
294
|
+
module Placement
|
|
295
|
+
extend PostForMe::Internal::Type::Enum
|
|
296
|
+
|
|
297
|
+
REELS: :reels
|
|
298
|
+
STORIES: :stories
|
|
299
|
+
TIMELINE: :timeline
|
|
300
|
+
|
|
301
|
+
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Facebook::placement]
|
|
302
|
+
end
|
|
265
303
|
end
|
|
266
304
|
|
|
267
|
-
type instagram =
|
|
305
|
+
type instagram =
|
|
306
|
+
{
|
|
307
|
+
caption: top?,
|
|
308
|
+
collaborators: ::Array[String]?,
|
|
309
|
+
media: ::Array[String]?,
|
|
310
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
|
|
311
|
+
}
|
|
268
312
|
|
|
269
313
|
class Instagram < PostForMe::Internal::Type::BaseModel
|
|
270
314
|
attr_accessor caption: top?
|
|
271
315
|
|
|
316
|
+
attr_accessor collaborators: ::Array[String]?
|
|
317
|
+
|
|
272
318
|
attr_accessor media: ::Array[String]?
|
|
273
319
|
|
|
274
|
-
|
|
320
|
+
attr_accessor placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
|
|
275
321
|
|
|
276
|
-
def
|
|
322
|
+
def initialize: (
|
|
323
|
+
?caption: top?,
|
|
324
|
+
?collaborators: ::Array[String]?,
|
|
325
|
+
?media: ::Array[String]?,
|
|
326
|
+
?placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
|
|
327
|
+
) -> void
|
|
328
|
+
|
|
329
|
+
def to_hash: -> {
|
|
330
|
+
caption: top?,
|
|
331
|
+
collaborators: ::Array[String]?,
|
|
332
|
+
media: ::Array[String]?,
|
|
333
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement?
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
type placement = :reels | :stories | :timeline
|
|
337
|
+
|
|
338
|
+
module Placement
|
|
339
|
+
extend PostForMe::Internal::Type::Enum
|
|
340
|
+
|
|
341
|
+
REELS: :reels
|
|
342
|
+
STORIES: :stories
|
|
343
|
+
TIMELINE: :timeline
|
|
344
|
+
|
|
345
|
+
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Instagram::placement]
|
|
346
|
+
end
|
|
277
347
|
end
|
|
278
348
|
|
|
279
349
|
type linkedin = { caption: top?, media: ::Array[String]? }
|
|
@@ -323,38 +393,38 @@ module PostForMe
|
|
|
323
393
|
type threads =
|
|
324
394
|
{
|
|
325
395
|
caption: top?,
|
|
326
|
-
|
|
327
|
-
|
|
396
|
+
media: ::Array[String]?,
|
|
397
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
|
|
328
398
|
}
|
|
329
399
|
|
|
330
400
|
class Threads < PostForMe::Internal::Type::BaseModel
|
|
331
401
|
attr_accessor caption: top?
|
|
332
402
|
|
|
333
|
-
attr_accessor location: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::location?
|
|
334
|
-
|
|
335
403
|
attr_accessor media: ::Array[String]?
|
|
336
404
|
|
|
405
|
+
attr_accessor placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
|
|
406
|
+
|
|
337
407
|
def initialize: (
|
|
338
408
|
?caption: top?,
|
|
339
|
-
?
|
|
340
|
-
?
|
|
409
|
+
?media: ::Array[String]?,
|
|
410
|
+
?placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
|
|
341
411
|
) -> void
|
|
342
412
|
|
|
343
413
|
def to_hash: -> {
|
|
344
414
|
caption: top?,
|
|
345
|
-
|
|
346
|
-
|
|
415
|
+
media: ::Array[String]?,
|
|
416
|
+
placement: PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement?
|
|
347
417
|
}
|
|
348
418
|
|
|
349
|
-
type
|
|
419
|
+
type placement = :reels | :timeline
|
|
350
420
|
|
|
351
|
-
module
|
|
421
|
+
module Placement
|
|
352
422
|
extend PostForMe::Internal::Type::Enum
|
|
353
423
|
|
|
354
424
|
REELS: :reels
|
|
355
425
|
TIMELINE: :timeline
|
|
356
426
|
|
|
357
|
-
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::
|
|
427
|
+
def self?.values: -> ::Array[PostForMe::Models::CreateSocialPost::PlatformConfigurations::Threads::placement]
|
|
358
428
|
end
|
|
359
429
|
end
|
|
360
430
|
|
|
@@ -9,6 +9,7 @@ module PostForMe
|
|
|
9
9
|
disclose_branded_content: bool?,
|
|
10
10
|
disclose_your_brand: bool?,
|
|
11
11
|
is_ai_generated: bool?,
|
|
12
|
+
is_draft: bool?,
|
|
12
13
|
media: ::Array[String]?,
|
|
13
14
|
privacy_status: String?,
|
|
14
15
|
title: String?
|
|
@@ -29,6 +30,8 @@ module PostForMe
|
|
|
29
30
|
|
|
30
31
|
attr_accessor is_ai_generated: bool?
|
|
31
32
|
|
|
33
|
+
attr_accessor is_draft: bool?
|
|
34
|
+
|
|
32
35
|
attr_accessor media: ::Array[String]?
|
|
33
36
|
|
|
34
37
|
attr_accessor privacy_status: String?
|
|
@@ -43,6 +46,7 @@ module PostForMe
|
|
|
43
46
|
?disclose_branded_content: bool?,
|
|
44
47
|
?disclose_your_brand: bool?,
|
|
45
48
|
?is_ai_generated: bool?,
|
|
49
|
+
?is_draft: bool?,
|
|
46
50
|
?media: ::Array[String]?,
|
|
47
51
|
?privacy_status: String?,
|
|
48
52
|
?title: String?
|
|
@@ -56,6 +60,7 @@ module PostForMe
|
|
|
56
60
|
disclose_branded_content: bool?,
|
|
57
61
|
disclose_your_brand: bool?,
|
|
58
62
|
is_ai_generated: bool?,
|
|
63
|
+
is_draft: bool?,
|
|
59
64
|
media: ::Array[String]?,
|
|
60
65
|
privacy_status: String?,
|
|
61
66
|
title: String?
|
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.
|
|
4
|
+
version: 0.1.0.pre.alpha.5
|
|
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-08-
|
|
11
|
+
date: 2025-08-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|