post-for-me 0.1.0.pre.alpha.4 → 0.1.0.pre.alpha.6
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 +24 -0
- data/README.md +11 -9
- 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/bluesky_configuration_dto.rb +24 -0
- data/lib/post_for_me/models/create_social_post.rb +25 -373
- data/lib/post_for_me/models/facebook_configuration_dto.rb +46 -0
- data/lib/post_for_me/models/instagram_configuration_dto.rb +54 -0
- data/lib/post_for_me/models/linkedin_configuration_dto.rb +24 -0
- data/lib/post_for_me/models/pinterest_configuration_dto.rb +40 -0
- data/lib/post_for_me/models/platform_configurations_dto.rb +88 -0
- data/lib/post_for_me/models/social_account.rb +1 -1
- data/lib/post_for_me/models/social_account_create_auth_url_params.rb +10 -4
- data/lib/post_for_me/models/social_account_create_params.rb +105 -0
- data/lib/post_for_me/models/social_post.rb +197 -12
- data/lib/post_for_me/models/social_post_list_params.rb +1 -4
- data/lib/post_for_me/models/threads_configuration_dto.rb +45 -0
- data/lib/post_for_me/models/tiktok_configuration.rb +13 -1
- data/lib/post_for_me/models/twitter_configuration_dto.rb +24 -0
- data/lib/post_for_me/models/youtube_configuration_dto.rb +32 -0
- data/lib/post_for_me/models.rb +20 -0
- data/lib/post_for_me/resources/social_accounts.rb +42 -1
- data/lib/post_for_me/resources/social_posts.rb +2 -2
- data/lib/post_for_me/version.rb +1 -1
- data/lib/post_for_me.rb +10 -0
- data/rbi/post_for_me/errors.rbi +2 -2
- data/rbi/post_for_me/models/bluesky_configuration_dto.rbi +45 -0
- data/rbi/post_for_me/models/create_social_post.rbi +22 -863
- data/rbi/post_for_me/models/facebook_configuration_dto.rbi +101 -0
- data/rbi/post_for_me/models/instagram_configuration_dto.rbi +109 -0
- data/rbi/post_for_me/models/linkedin_configuration_dto.rbi +45 -0
- data/rbi/post_for_me/models/pinterest_configuration_dto.rbi +64 -0
- data/rbi/post_for_me/models/platform_configurations_dto.rbi +178 -0
- data/rbi/post_for_me/models/social_account_create_auth_url_params.rbi +11 -0
- data/rbi/post_for_me/models/social_account_create_params.rbi +185 -0
- data/rbi/post_for_me/models/social_post.rbi +328 -13
- data/rbi/post_for_me/models/threads_configuration_dto.rbi +94 -0
- data/rbi/post_for_me/models/tiktok_configuration.rbi +10 -0
- data/rbi/post_for_me/models/twitter_configuration_dto.rbi +45 -0
- data/rbi/post_for_me/models/youtube_configuration_dto.rbi +56 -0
- data/rbi/post_for_me/models.rbi +20 -0
- data/rbi/post_for_me/resources/social_accounts.rbi +42 -0
- data/rbi/post_for_me/resources/social_posts.rbi +2 -6
- data/sig/post_for_me/models/bluesky_configuration_dto.rbs +15 -0
- data/sig/post_for_me/models/create_social_post.rbs +14 -278
- data/sig/post_for_me/models/facebook_configuration_dto.rbs +42 -0
- data/sig/post_for_me/models/instagram_configuration_dto.rbs +47 -0
- data/sig/post_for_me/models/linkedin_configuration_dto.rbs +15 -0
- data/sig/post_for_me/models/pinterest_configuration_dto.rbs +35 -0
- data/sig/post_for_me/models/platform_configurations_dto.rbs +65 -0
- data/sig/post_for_me/models/social_account_create_auth_url_params.rbs +7 -0
- data/sig/post_for_me/models/social_account_create_params.rbs +97 -0
- data/sig/post_for_me/models/social_post.rbs +155 -16
- data/sig/post_for_me/models/threads_configuration_dto.rbs +41 -0
- data/sig/post_for_me/models/tiktok_configuration.rbs +5 -0
- data/sig/post_for_me/models/twitter_configuration_dto.rbs +15 -0
- data/sig/post_for_me/models/youtube_configuration_dto.rbs +22 -0
- data/sig/post_for_me/models.rbs +20 -0
- data/sig/post_for_me/resources/social_accounts.rbs +14 -0
- data/sig/post_for_me/resources/social_posts.rbs +2 -2
- metadata +32 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type linkedin_configuration_dto = { caption: top?, media: ::Array[String]? }
|
|
4
|
+
|
|
5
|
+
class LinkedinConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor caption: top?
|
|
7
|
+
|
|
8
|
+
attr_accessor media: ::Array[String]?
|
|
9
|
+
|
|
10
|
+
def initialize: (?caption: top?, ?media: ::Array[String]?) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { caption: top?, media: ::Array[String]? }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type pinterest_configuration_dto =
|
|
4
|
+
{
|
|
5
|
+
board_ids: ::Array[String]?,
|
|
6
|
+
caption: top?,
|
|
7
|
+
link: String?,
|
|
8
|
+
media: ::Array[String]?
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class PinterestConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor board_ids: ::Array[String]?
|
|
13
|
+
|
|
14
|
+
attr_accessor caption: top?
|
|
15
|
+
|
|
16
|
+
attr_accessor link: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor media: ::Array[String]?
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?board_ids: ::Array[String]?,
|
|
22
|
+
?caption: top?,
|
|
23
|
+
?link: String?,
|
|
24
|
+
?media: ::Array[String]?
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
board_ids: ::Array[String]?,
|
|
29
|
+
caption: top?,
|
|
30
|
+
link: String?,
|
|
31
|
+
media: ::Array[String]?
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type platform_configurations_dto =
|
|
4
|
+
{
|
|
5
|
+
bluesky: PostForMe::BlueskyConfigurationDto?,
|
|
6
|
+
facebook: PostForMe::FacebookConfigurationDto?,
|
|
7
|
+
instagram: PostForMe::InstagramConfigurationDto?,
|
|
8
|
+
linkedin: PostForMe::LinkedinConfigurationDto?,
|
|
9
|
+
pinterest: PostForMe::PinterestConfigurationDto?,
|
|
10
|
+
threads: PostForMe::ThreadsConfigurationDto?,
|
|
11
|
+
tiktok: PostForMe::TiktokConfiguration?,
|
|
12
|
+
tiktok_business: PostForMe::TiktokConfiguration?,
|
|
13
|
+
x: PostForMe::TwitterConfigurationDto?,
|
|
14
|
+
youtube: PostForMe::YoutubeConfigurationDto?
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class PlatformConfigurationsDto < PostForMe::Internal::Type::BaseModel
|
|
18
|
+
attr_accessor bluesky: PostForMe::BlueskyConfigurationDto?
|
|
19
|
+
|
|
20
|
+
attr_accessor facebook: PostForMe::FacebookConfigurationDto?
|
|
21
|
+
|
|
22
|
+
attr_accessor instagram: PostForMe::InstagramConfigurationDto?
|
|
23
|
+
|
|
24
|
+
attr_accessor linkedin: PostForMe::LinkedinConfigurationDto?
|
|
25
|
+
|
|
26
|
+
attr_accessor pinterest: PostForMe::PinterestConfigurationDto?
|
|
27
|
+
|
|
28
|
+
attr_accessor threads: PostForMe::ThreadsConfigurationDto?
|
|
29
|
+
|
|
30
|
+
attr_accessor tiktok: PostForMe::TiktokConfiguration?
|
|
31
|
+
|
|
32
|
+
attr_accessor tiktok_business: PostForMe::TiktokConfiguration?
|
|
33
|
+
|
|
34
|
+
attr_accessor x: PostForMe::TwitterConfigurationDto?
|
|
35
|
+
|
|
36
|
+
attr_accessor youtube: PostForMe::YoutubeConfigurationDto?
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
?bluesky: PostForMe::BlueskyConfigurationDto?,
|
|
40
|
+
?facebook: PostForMe::FacebookConfigurationDto?,
|
|
41
|
+
?instagram: PostForMe::InstagramConfigurationDto?,
|
|
42
|
+
?linkedin: PostForMe::LinkedinConfigurationDto?,
|
|
43
|
+
?pinterest: PostForMe::PinterestConfigurationDto?,
|
|
44
|
+
?threads: PostForMe::ThreadsConfigurationDto?,
|
|
45
|
+
?tiktok: PostForMe::TiktokConfiguration?,
|
|
46
|
+
?tiktok_business: PostForMe::TiktokConfiguration?,
|
|
47
|
+
?x: PostForMe::TwitterConfigurationDto?,
|
|
48
|
+
?youtube: PostForMe::YoutubeConfigurationDto?
|
|
49
|
+
) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> {
|
|
52
|
+
bluesky: PostForMe::BlueskyConfigurationDto?,
|
|
53
|
+
facebook: PostForMe::FacebookConfigurationDto?,
|
|
54
|
+
instagram: PostForMe::InstagramConfigurationDto?,
|
|
55
|
+
linkedin: PostForMe::LinkedinConfigurationDto?,
|
|
56
|
+
pinterest: PostForMe::PinterestConfigurationDto?,
|
|
57
|
+
threads: PostForMe::ThreadsConfigurationDto?,
|
|
58
|
+
tiktok: PostForMe::TiktokConfiguration?,
|
|
59
|
+
tiktok_business: PostForMe::TiktokConfiguration?,
|
|
60
|
+
x: PostForMe::TwitterConfigurationDto?,
|
|
61
|
+
youtube: PostForMe::YoutubeConfigurationDto?
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -3,6 +3,7 @@ module PostForMe
|
|
|
3
3
|
type social_account_create_auth_url_params =
|
|
4
4
|
{
|
|
5
5
|
platform: String,
|
|
6
|
+
external_id: String,
|
|
6
7
|
platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData
|
|
7
8
|
}
|
|
8
9
|
& PostForMe::Internal::Type::request_parameters
|
|
@@ -13,6 +14,10 @@ module PostForMe
|
|
|
13
14
|
|
|
14
15
|
attr_accessor platform: String
|
|
15
16
|
|
|
17
|
+
attr_reader external_id: String?
|
|
18
|
+
|
|
19
|
+
def external_id=: (String) -> String
|
|
20
|
+
|
|
16
21
|
attr_reader platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData?
|
|
17
22
|
|
|
18
23
|
def platform_data=: (
|
|
@@ -21,12 +26,14 @@ module PostForMe
|
|
|
21
26
|
|
|
22
27
|
def initialize: (
|
|
23
28
|
platform: String,
|
|
29
|
+
?external_id: String,
|
|
24
30
|
?platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData,
|
|
25
31
|
?request_options: PostForMe::request_opts
|
|
26
32
|
) -> void
|
|
27
33
|
|
|
28
34
|
def to_hash: -> {
|
|
29
35
|
platform: String,
|
|
36
|
+
external_id: String,
|
|
30
37
|
platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData,
|
|
31
38
|
request_options: PostForMe::RequestOptions
|
|
32
39
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_account_create_params =
|
|
4
|
+
{
|
|
5
|
+
access_token: String,
|
|
6
|
+
access_token_expires_at: Time,
|
|
7
|
+
platform: PostForMe::Models::SocialAccountCreateParams::platform,
|
|
8
|
+
user_id: String,
|
|
9
|
+
external_id: String?,
|
|
10
|
+
metadata: top,
|
|
11
|
+
refresh_token: String?,
|
|
12
|
+
refresh_token_expires_at: Time?,
|
|
13
|
+
username: String?
|
|
14
|
+
}
|
|
15
|
+
& PostForMe::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class SocialAccountCreateParams < PostForMe::Internal::Type::BaseModel
|
|
18
|
+
extend PostForMe::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include PostForMe::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor access_token: String
|
|
22
|
+
|
|
23
|
+
attr_accessor access_token_expires_at: Time
|
|
24
|
+
|
|
25
|
+
attr_accessor platform: PostForMe::Models::SocialAccountCreateParams::platform
|
|
26
|
+
|
|
27
|
+
attr_accessor user_id: String
|
|
28
|
+
|
|
29
|
+
attr_accessor external_id: String?
|
|
30
|
+
|
|
31
|
+
attr_reader metadata: top?
|
|
32
|
+
|
|
33
|
+
def metadata=: (top) -> top
|
|
34
|
+
|
|
35
|
+
attr_accessor refresh_token: String?
|
|
36
|
+
|
|
37
|
+
attr_accessor refresh_token_expires_at: Time?
|
|
38
|
+
|
|
39
|
+
attr_accessor username: String?
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
access_token: String,
|
|
43
|
+
access_token_expires_at: Time,
|
|
44
|
+
platform: PostForMe::Models::SocialAccountCreateParams::platform,
|
|
45
|
+
user_id: String,
|
|
46
|
+
?external_id: String?,
|
|
47
|
+
?metadata: top,
|
|
48
|
+
?refresh_token: String?,
|
|
49
|
+
?refresh_token_expires_at: Time?,
|
|
50
|
+
?username: String?,
|
|
51
|
+
?request_options: PostForMe::request_opts
|
|
52
|
+
) -> void
|
|
53
|
+
|
|
54
|
+
def to_hash: -> {
|
|
55
|
+
access_token: String,
|
|
56
|
+
access_token_expires_at: Time,
|
|
57
|
+
platform: PostForMe::Models::SocialAccountCreateParams::platform,
|
|
58
|
+
user_id: String,
|
|
59
|
+
external_id: String?,
|
|
60
|
+
metadata: top,
|
|
61
|
+
refresh_token: String?,
|
|
62
|
+
refresh_token_expires_at: Time?,
|
|
63
|
+
username: String?,
|
|
64
|
+
request_options: PostForMe::RequestOptions
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
type platform =
|
|
68
|
+
:facebook
|
|
69
|
+
| :instagram
|
|
70
|
+
| :x
|
|
71
|
+
| :tiktok
|
|
72
|
+
| :youtube
|
|
73
|
+
| :pinterest
|
|
74
|
+
| :linkedin
|
|
75
|
+
| :bluesky
|
|
76
|
+
| :threads
|
|
77
|
+
| :tiktok_business
|
|
78
|
+
|
|
79
|
+
module Platform
|
|
80
|
+
extend PostForMe::Internal::Type::Enum
|
|
81
|
+
|
|
82
|
+
FACEBOOK: :facebook
|
|
83
|
+
INSTAGRAM: :instagram
|
|
84
|
+
X: :x
|
|
85
|
+
TIKTOK: :tiktok
|
|
86
|
+
YOUTUBE: :youtube
|
|
87
|
+
PINTEREST: :pinterest
|
|
88
|
+
LINKEDIN: :linkedin
|
|
89
|
+
BLUESKY: :bluesky
|
|
90
|
+
THREADS: :threads
|
|
91
|
+
TIKTOK_BUSINESS: :tiktok_business
|
|
92
|
+
|
|
93
|
+
def self?.values: -> ::Array[PostForMe::Models::SocialAccountCreateParams::platform]
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -3,14 +3,14 @@ module PostForMe
|
|
|
3
3
|
type social_post =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
account_configurations: ::Array[
|
|
6
|
+
account_configurations: ::Array[PostForMe::SocialPost::AccountConfiguration]?,
|
|
7
7
|
caption: String,
|
|
8
8
|
created_at: String,
|
|
9
9
|
external_id: String?,
|
|
10
|
-
media:
|
|
11
|
-
platform_configurations:
|
|
10
|
+
media: ::Array[PostForMe::SocialPost::Media]?,
|
|
11
|
+
platform_configurations: PostForMe::PlatformConfigurationsDto?,
|
|
12
12
|
scheduled_at: String?,
|
|
13
|
-
social_accounts: ::Array[
|
|
13
|
+
social_accounts: ::Array[PostForMe::SocialAccount],
|
|
14
14
|
status: PostForMe::Models::SocialPost::status,
|
|
15
15
|
updated_at: String
|
|
16
16
|
}
|
|
@@ -18,7 +18,7 @@ module PostForMe
|
|
|
18
18
|
class SocialPost < PostForMe::Internal::Type::BaseModel
|
|
19
19
|
attr_accessor id: String
|
|
20
20
|
|
|
21
|
-
attr_accessor account_configurations: ::Array[
|
|
21
|
+
attr_accessor account_configurations: ::Array[PostForMe::SocialPost::AccountConfiguration]?
|
|
22
22
|
|
|
23
23
|
attr_accessor caption: String
|
|
24
24
|
|
|
@@ -26,13 +26,13 @@ module PostForMe
|
|
|
26
26
|
|
|
27
27
|
attr_accessor external_id: String?
|
|
28
28
|
|
|
29
|
-
attr_accessor media:
|
|
29
|
+
attr_accessor media: ::Array[PostForMe::SocialPost::Media]?
|
|
30
30
|
|
|
31
|
-
attr_accessor platform_configurations:
|
|
31
|
+
attr_accessor platform_configurations: PostForMe::PlatformConfigurationsDto?
|
|
32
32
|
|
|
33
33
|
attr_accessor scheduled_at: String?
|
|
34
34
|
|
|
35
|
-
attr_accessor social_accounts: ::Array[
|
|
35
|
+
attr_accessor social_accounts: ::Array[PostForMe::SocialAccount]
|
|
36
36
|
|
|
37
37
|
attr_accessor status: PostForMe::Models::SocialPost::status
|
|
38
38
|
|
|
@@ -40,32 +40,171 @@ module PostForMe
|
|
|
40
40
|
|
|
41
41
|
def initialize: (
|
|
42
42
|
id: String,
|
|
43
|
-
account_configurations: ::Array[
|
|
43
|
+
account_configurations: ::Array[PostForMe::SocialPost::AccountConfiguration]?,
|
|
44
44
|
caption: String,
|
|
45
45
|
created_at: String,
|
|
46
46
|
external_id: String?,
|
|
47
|
-
media:
|
|
48
|
-
platform_configurations:
|
|
47
|
+
media: ::Array[PostForMe::SocialPost::Media]?,
|
|
48
|
+
platform_configurations: PostForMe::PlatformConfigurationsDto?,
|
|
49
49
|
scheduled_at: String?,
|
|
50
|
-
social_accounts: ::Array[
|
|
50
|
+
social_accounts: ::Array[PostForMe::SocialAccount],
|
|
51
51
|
status: PostForMe::Models::SocialPost::status,
|
|
52
52
|
updated_at: String
|
|
53
53
|
) -> void
|
|
54
54
|
|
|
55
55
|
def to_hash: -> {
|
|
56
56
|
id: String,
|
|
57
|
-
account_configurations: ::Array[
|
|
57
|
+
account_configurations: ::Array[PostForMe::SocialPost::AccountConfiguration]?,
|
|
58
58
|
caption: String,
|
|
59
59
|
created_at: String,
|
|
60
60
|
external_id: String?,
|
|
61
|
-
media:
|
|
62
|
-
platform_configurations:
|
|
61
|
+
media: ::Array[PostForMe::SocialPost::Media]?,
|
|
62
|
+
platform_configurations: PostForMe::PlatformConfigurationsDto?,
|
|
63
63
|
scheduled_at: String?,
|
|
64
|
-
social_accounts: ::Array[
|
|
64
|
+
social_accounts: ::Array[PostForMe::SocialAccount],
|
|
65
65
|
status: PostForMe::Models::SocialPost::status,
|
|
66
66
|
updated_at: String
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
type account_configuration =
|
|
70
|
+
{
|
|
71
|
+
configuration: PostForMe::SocialPost::AccountConfiguration::Configuration,
|
|
72
|
+
social_account_id: String
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
class AccountConfiguration < PostForMe::Internal::Type::BaseModel
|
|
76
|
+
attr_accessor configuration: PostForMe::SocialPost::AccountConfiguration::Configuration
|
|
77
|
+
|
|
78
|
+
attr_accessor social_account_id: String
|
|
79
|
+
|
|
80
|
+
def initialize: (
|
|
81
|
+
configuration: PostForMe::SocialPost::AccountConfiguration::Configuration,
|
|
82
|
+
social_account_id: String
|
|
83
|
+
) -> void
|
|
84
|
+
|
|
85
|
+
def to_hash: -> {
|
|
86
|
+
configuration: PostForMe::SocialPost::AccountConfiguration::Configuration,
|
|
87
|
+
social_account_id: String
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
type configuration =
|
|
91
|
+
{
|
|
92
|
+
allow_comment: bool?,
|
|
93
|
+
allow_duet: bool?,
|
|
94
|
+
allow_stitch: bool?,
|
|
95
|
+
board_ids: ::Array[String]?,
|
|
96
|
+
caption: top?,
|
|
97
|
+
disclose_branded_content: bool?,
|
|
98
|
+
disclose_your_brand: bool?,
|
|
99
|
+
is_ai_generated: bool?,
|
|
100
|
+
is_draft: bool?,
|
|
101
|
+
link: String?,
|
|
102
|
+
media: ::Array[String]?,
|
|
103
|
+
placement: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::placement?,
|
|
104
|
+
privacy_status: String?,
|
|
105
|
+
title: String?
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
class Configuration < PostForMe::Internal::Type::BaseModel
|
|
109
|
+
attr_accessor allow_comment: bool?
|
|
110
|
+
|
|
111
|
+
attr_accessor allow_duet: bool?
|
|
112
|
+
|
|
113
|
+
attr_accessor allow_stitch: bool?
|
|
114
|
+
|
|
115
|
+
attr_accessor board_ids: ::Array[String]?
|
|
116
|
+
|
|
117
|
+
attr_accessor caption: top?
|
|
118
|
+
|
|
119
|
+
attr_accessor disclose_branded_content: bool?
|
|
120
|
+
|
|
121
|
+
attr_accessor disclose_your_brand: bool?
|
|
122
|
+
|
|
123
|
+
attr_accessor is_ai_generated: bool?
|
|
124
|
+
|
|
125
|
+
attr_accessor is_draft: bool?
|
|
126
|
+
|
|
127
|
+
attr_accessor link: String?
|
|
128
|
+
|
|
129
|
+
attr_accessor media: ::Array[String]?
|
|
130
|
+
|
|
131
|
+
attr_accessor placement: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::placement?
|
|
132
|
+
|
|
133
|
+
attr_accessor privacy_status: String?
|
|
134
|
+
|
|
135
|
+
attr_accessor title: String?
|
|
136
|
+
|
|
137
|
+
def initialize: (
|
|
138
|
+
?allow_comment: bool?,
|
|
139
|
+
?allow_duet: bool?,
|
|
140
|
+
?allow_stitch: bool?,
|
|
141
|
+
?board_ids: ::Array[String]?,
|
|
142
|
+
?caption: top?,
|
|
143
|
+
?disclose_branded_content: bool?,
|
|
144
|
+
?disclose_your_brand: bool?,
|
|
145
|
+
?is_ai_generated: bool?,
|
|
146
|
+
?is_draft: bool?,
|
|
147
|
+
?link: String?,
|
|
148
|
+
?media: ::Array[String]?,
|
|
149
|
+
?placement: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::placement?,
|
|
150
|
+
?privacy_status: String?,
|
|
151
|
+
?title: String?
|
|
152
|
+
) -> void
|
|
153
|
+
|
|
154
|
+
def to_hash: -> {
|
|
155
|
+
allow_comment: bool?,
|
|
156
|
+
allow_duet: bool?,
|
|
157
|
+
allow_stitch: bool?,
|
|
158
|
+
board_ids: ::Array[String]?,
|
|
159
|
+
caption: top?,
|
|
160
|
+
disclose_branded_content: bool?,
|
|
161
|
+
disclose_your_brand: bool?,
|
|
162
|
+
is_ai_generated: bool?,
|
|
163
|
+
is_draft: bool?,
|
|
164
|
+
link: String?,
|
|
165
|
+
media: ::Array[String]?,
|
|
166
|
+
placement: PostForMe::Models::SocialPost::AccountConfiguration::Configuration::placement?,
|
|
167
|
+
privacy_status: String?,
|
|
168
|
+
title: String?
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
type placement = :reels | :timeline | :stories
|
|
172
|
+
|
|
173
|
+
module Placement
|
|
174
|
+
extend PostForMe::Internal::Type::Enum
|
|
175
|
+
|
|
176
|
+
REELS: :reels
|
|
177
|
+
TIMELINE: :timeline
|
|
178
|
+
STORIES: :stories
|
|
179
|
+
|
|
180
|
+
def self?.values: -> ::Array[PostForMe::Models::SocialPost::AccountConfiguration::Configuration::placement]
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
type media =
|
|
186
|
+
{ url: String, thumbnail_timestamp_ms: top?, thumbnail_url: top? }
|
|
187
|
+
|
|
188
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
189
|
+
attr_accessor url: String
|
|
190
|
+
|
|
191
|
+
attr_accessor thumbnail_timestamp_ms: top?
|
|
192
|
+
|
|
193
|
+
attr_accessor thumbnail_url: top?
|
|
194
|
+
|
|
195
|
+
def initialize: (
|
|
196
|
+
url: String,
|
|
197
|
+
?thumbnail_timestamp_ms: top?,
|
|
198
|
+
?thumbnail_url: top?
|
|
199
|
+
) -> void
|
|
200
|
+
|
|
201
|
+
def to_hash: -> {
|
|
202
|
+
url: String,
|
|
203
|
+
thumbnail_timestamp_ms: top?,
|
|
204
|
+
thumbnail_url: top?
|
|
205
|
+
}
|
|
206
|
+
end
|
|
207
|
+
|
|
69
208
|
type status = :draft | :scheduled | :processing | :processed
|
|
70
209
|
|
|
71
210
|
module Status
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type threads_configuration_dto =
|
|
4
|
+
{
|
|
5
|
+
caption: top?,
|
|
6
|
+
media: ::Array[String]?,
|
|
7
|
+
placement: PostForMe::Models::ThreadsConfigurationDto::placement?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class ThreadsConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor caption: top?
|
|
12
|
+
|
|
13
|
+
attr_accessor media: ::Array[String]?
|
|
14
|
+
|
|
15
|
+
attr_accessor placement: PostForMe::Models::ThreadsConfigurationDto::placement?
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
?caption: top?,
|
|
19
|
+
?media: ::Array[String]?,
|
|
20
|
+
?placement: PostForMe::Models::ThreadsConfigurationDto::placement?
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
caption: top?,
|
|
25
|
+
media: ::Array[String]?,
|
|
26
|
+
placement: PostForMe::Models::ThreadsConfigurationDto::placement?
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type placement = :reels | :timeline
|
|
30
|
+
|
|
31
|
+
module Placement
|
|
32
|
+
extend PostForMe::Internal::Type::Enum
|
|
33
|
+
|
|
34
|
+
REELS: :reels
|
|
35
|
+
TIMELINE: :timeline
|
|
36
|
+
|
|
37
|
+
def self?.values: -> ::Array[PostForMe::Models::ThreadsConfigurationDto::placement]
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -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?
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type twitter_configuration_dto = { caption: top?, media: ::Array[String]? }
|
|
4
|
+
|
|
5
|
+
class TwitterConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor caption: top?
|
|
7
|
+
|
|
8
|
+
attr_accessor media: ::Array[String]?
|
|
9
|
+
|
|
10
|
+
def initialize: (?caption: top?, ?media: ::Array[String]?) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { caption: top?, media: ::Array[String]? }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type youtube_configuration_dto =
|
|
4
|
+
{ caption: top?, media: ::Array[String]?, title: String? }
|
|
5
|
+
|
|
6
|
+
class YoutubeConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor caption: top?
|
|
8
|
+
|
|
9
|
+
attr_accessor media: ::Array[String]?
|
|
10
|
+
|
|
11
|
+
attr_accessor title: String?
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
?caption: top?,
|
|
15
|
+
?media: ::Array[String]?,
|
|
16
|
+
?title: String?
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> { caption: top?, media: ::Array[String]?, title: String? }
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
data/sig/post_for_me/models.rbs
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
module PostForMe
|
|
2
|
+
class BlueskyConfigurationDto = PostForMe::Models::BlueskyConfigurationDto
|
|
3
|
+
|
|
2
4
|
class CreateSocialPost = PostForMe::Models::CreateSocialPost
|
|
3
5
|
|
|
6
|
+
class FacebookConfigurationDto = PostForMe::Models::FacebookConfigurationDto
|
|
7
|
+
|
|
8
|
+
class InstagramConfigurationDto = PostForMe::Models::InstagramConfigurationDto
|
|
9
|
+
|
|
10
|
+
class LinkedinConfigurationDto = PostForMe::Models::LinkedinConfigurationDto
|
|
11
|
+
|
|
4
12
|
class MediaCreateUploadURLParams = PostForMe::Models::MediaCreateUploadURLParams
|
|
5
13
|
|
|
14
|
+
class PinterestConfigurationDto = PostForMe::Models::PinterestConfigurationDto
|
|
15
|
+
|
|
16
|
+
class PlatformConfigurationsDto = PostForMe::Models::PlatformConfigurationsDto
|
|
17
|
+
|
|
6
18
|
class SocialAccount = PostForMe::Models::SocialAccount
|
|
7
19
|
|
|
8
20
|
class SocialAccountCreateAuthURLParams = PostForMe::Models::SocialAccountCreateAuthURLParams
|
|
9
21
|
|
|
22
|
+
class SocialAccountCreateParams = PostForMe::Models::SocialAccountCreateParams
|
|
23
|
+
|
|
10
24
|
class SocialAccountDisconnectParams = PostForMe::Models::SocialAccountDisconnectParams
|
|
11
25
|
|
|
12
26
|
class SocialAccountListParams = PostForMe::Models::SocialAccountListParams
|
|
@@ -33,5 +47,11 @@ module PostForMe
|
|
|
33
47
|
|
|
34
48
|
class SocialPostUpdateParams = PostForMe::Models::SocialPostUpdateParams
|
|
35
49
|
|
|
50
|
+
class ThreadsConfigurationDto = PostForMe::Models::ThreadsConfigurationDto
|
|
51
|
+
|
|
36
52
|
class TiktokConfiguration = PostForMe::Models::TiktokConfiguration
|
|
53
|
+
|
|
54
|
+
class TwitterConfigurationDto = PostForMe::Models::TwitterConfigurationDto
|
|
55
|
+
|
|
56
|
+
class YoutubeConfigurationDto = PostForMe::Models::YoutubeConfigurationDto
|
|
37
57
|
end
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
module PostForMe
|
|
2
2
|
module Resources
|
|
3
3
|
class SocialAccounts
|
|
4
|
+
def create: (
|
|
5
|
+
access_token: String,
|
|
6
|
+
access_token_expires_at: Time,
|
|
7
|
+
platform: PostForMe::Models::SocialAccountCreateParams::platform,
|
|
8
|
+
user_id: String,
|
|
9
|
+
?external_id: String?,
|
|
10
|
+
?metadata: top,
|
|
11
|
+
?refresh_token: String?,
|
|
12
|
+
?refresh_token_expires_at: Time?,
|
|
13
|
+
?username: String?,
|
|
14
|
+
?request_options: PostForMe::request_opts
|
|
15
|
+
) -> PostForMe::SocialAccount
|
|
16
|
+
|
|
4
17
|
def retrieve: (
|
|
5
18
|
String id,
|
|
6
19
|
?request_options: PostForMe::request_opts
|
|
@@ -25,6 +38,7 @@ module PostForMe
|
|
|
25
38
|
|
|
26
39
|
def create_auth_url: (
|
|
27
40
|
platform: String,
|
|
41
|
+
?external_id: String,
|
|
28
42
|
?platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData,
|
|
29
43
|
?request_options: PostForMe::request_opts
|
|
30
44
|
) -> PostForMe::Models::SocialAccountCreateAuthURLResponse
|
|
@@ -8,7 +8,7 @@ module PostForMe
|
|
|
8
8
|
?external_id: String?,
|
|
9
9
|
?is_draft: bool?,
|
|
10
10
|
?media: ::Array[PostForMe::CreateSocialPost::Media]?,
|
|
11
|
-
?platform_configurations: PostForMe::
|
|
11
|
+
?platform_configurations: PostForMe::PlatformConfigurationsDto?,
|
|
12
12
|
?scheduled_at: Time?,
|
|
13
13
|
?request_options: PostForMe::request_opts
|
|
14
14
|
) -> PostForMe::SocialPost
|
|
@@ -26,7 +26,7 @@ module PostForMe
|
|
|
26
26
|
?external_id: String?,
|
|
27
27
|
?is_draft: bool?,
|
|
28
28
|
?media: ::Array[PostForMe::CreateSocialPost::Media]?,
|
|
29
|
-
?platform_configurations: PostForMe::
|
|
29
|
+
?platform_configurations: PostForMe::PlatformConfigurationsDto?,
|
|
30
30
|
?scheduled_at: Time?,
|
|
31
31
|
?request_options: PostForMe::request_opts
|
|
32
32
|
) -> PostForMe::SocialPost
|