post-for-me 0.1.0.pre.alpha.3
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 +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +32 -0
- data/README.md +265 -0
- data/SECURITY.md +27 -0
- data/lib/post_for_me/client.rb +86 -0
- data/lib/post_for_me/errors.rb +214 -0
- data/lib/post_for_me/file_part.rb +55 -0
- data/lib/post_for_me/internal/transport/base_client.rb +563 -0
- data/lib/post_for_me/internal/transport/pooled_net_requester.rb +209 -0
- data/lib/post_for_me/internal/type/array_of.rb +168 -0
- data/lib/post_for_me/internal/type/base_model.rb +537 -0
- data/lib/post_for_me/internal/type/base_page.rb +55 -0
- data/lib/post_for_me/internal/type/boolean.rb +77 -0
- data/lib/post_for_me/internal/type/converter.rb +327 -0
- data/lib/post_for_me/internal/type/enum.rb +131 -0
- data/lib/post_for_me/internal/type/file_input.rb +108 -0
- data/lib/post_for_me/internal/type/hash_of.rb +188 -0
- data/lib/post_for_me/internal/type/request_parameters.rb +42 -0
- data/lib/post_for_me/internal/type/union.rb +237 -0
- data/lib/post_for_me/internal/type/unknown.rb +81 -0
- data/lib/post_for_me/internal/util.rb +914 -0
- data/lib/post_for_me/internal.rb +20 -0
- data/lib/post_for_me/models/create_social_post.rb +558 -0
- data/lib/post_for_me/models/media_create_upload_url_params.rb +14 -0
- data/lib/post_for_me/models/media_create_upload_url_response.rb +25 -0
- data/lib/post_for_me/models/social_account.rb +110 -0
- data/lib/post_for_me/models/social_account_create_auth_url_params.rb +109 -0
- data/lib/post_for_me/models/social_account_create_auth_url_response.rb +25 -0
- data/lib/post_for_me/models/social_account_disconnect_params.rb +14 -0
- data/lib/post_for_me/models/social_account_disconnect_response.rb +109 -0
- data/lib/post_for_me/models/social_account_list_params.rb +69 -0
- data/lib/post_for_me/models/social_account_list_response.rb +58 -0
- data/lib/post_for_me/models/social_account_retrieve_params.rb +14 -0
- data/lib/post_for_me/models/social_account_update_params.rb +30 -0
- data/lib/post_for_me/models/social_post.rb +114 -0
- data/lib/post_for_me/models/social_post_create_params.rb +14 -0
- data/lib/post_for_me/models/social_post_delete_params.rb +14 -0
- data/lib/post_for_me/models/social_post_delete_response.rb +17 -0
- data/lib/post_for_me/models/social_post_list_params.rb +87 -0
- data/lib/post_for_me/models/social_post_list_response.rb +58 -0
- data/lib/post_for_me/models/social_post_result.rb +87 -0
- data/lib/post_for_me/models/social_post_result_list_params.rb +51 -0
- data/lib/post_for_me/models/social_post_result_list_response.rb +58 -0
- data/lib/post_for_me/models/social_post_result_retrieve_params.rb +14 -0
- data/lib/post_for_me/models/social_post_retrieve_params.rb +14 -0
- data/lib/post_for_me/models/social_post_update_params.rb +14 -0
- data/lib/post_for_me/models/tiktok_configuration.rb +88 -0
- data/lib/post_for_me/models.rb +77 -0
- data/lib/post_for_me/request_options.rb +77 -0
- data/lib/post_for_me/resources/media.rb +94 -0
- data/lib/post_for_me/resources/social_accounts.rb +143 -0
- data/lib/post_for_me/resources/social_post_results.rb +65 -0
- data/lib/post_for_me/resources/social_posts.rb +164 -0
- data/lib/post_for_me/version.rb +5 -0
- data/lib/post_for_me.rb +82 -0
- data/manifest.yaml +15 -0
- data/rbi/post_for_me/client.rbi +58 -0
- data/rbi/post_for_me/errors.rbi +178 -0
- data/rbi/post_for_me/file_part.rbi +37 -0
- data/rbi/post_for_me/internal/transport/base_client.rbi +294 -0
- data/rbi/post_for_me/internal/transport/pooled_net_requester.rbi +79 -0
- data/rbi/post_for_me/internal/type/array_of.rbi +104 -0
- data/rbi/post_for_me/internal/type/base_model.rbi +304 -0
- data/rbi/post_for_me/internal/type/base_page.rbi +42 -0
- data/rbi/post_for_me/internal/type/boolean.rbi +58 -0
- data/rbi/post_for_me/internal/type/converter.rbi +216 -0
- data/rbi/post_for_me/internal/type/enum.rbi +82 -0
- data/rbi/post_for_me/internal/type/file_input.rbi +59 -0
- data/rbi/post_for_me/internal/type/hash_of.rbi +104 -0
- data/rbi/post_for_me/internal/type/request_parameters.rbi +29 -0
- data/rbi/post_for_me/internal/type/union.rbi +128 -0
- data/rbi/post_for_me/internal/type/unknown.rbi +58 -0
- data/rbi/post_for_me/internal/util.rbi +487 -0
- data/rbi/post_for_me/internal.rbi +18 -0
- data/rbi/post_for_me/models/create_social_post.rbi +1128 -0
- data/rbi/post_for_me/models/media_create_upload_url_params.rbi +30 -0
- data/rbi/post_for_me/models/media_create_upload_url_response.rbi +38 -0
- data/rbi/post_for_me/models/social_account.rbi +139 -0
- data/rbi/post_for_me/models/social_account_create_auth_url_params.rbi +260 -0
- data/rbi/post_for_me/models/social_account_create_auth_url_response.rbi +36 -0
- data/rbi/post_for_me/models/social_account_disconnect_params.rbi +30 -0
- data/rbi/post_for_me/models/social_account_disconnect_response.rbi +156 -0
- data/rbi/post_for_me/models/social_account_list_params.rbi +112 -0
- data/rbi/post_for_me/models/social_account_list_response.rbi +107 -0
- data/rbi/post_for_me/models/social_account_retrieve_params.rbi +30 -0
- data/rbi/post_for_me/models/social_account_update_params.rbi +60 -0
- data/rbi/post_for_me/models/social_post.rbi +142 -0
- data/rbi/post_for_me/models/social_post_create_params.rbi +27 -0
- data/rbi/post_for_me/models/social_post_delete_params.rbi +27 -0
- data/rbi/post_for_me/models/social_post_delete_response.rbi +30 -0
- data/rbi/post_for_me/models/social_post_list_params.rbi +207 -0
- data/rbi/post_for_me/models/social_post_list_response.rbi +107 -0
- data/rbi/post_for_me/models/social_post_result.rbi +130 -0
- data/rbi/post_for_me/models/social_post_result_list_params.rbi +86 -0
- data/rbi/post_for_me/models/social_post_result_list_response.rbi +107 -0
- data/rbi/post_for_me/models/social_post_result_retrieve_params.rbi +30 -0
- data/rbi/post_for_me/models/social_post_retrieve_params.rbi +30 -0
- data/rbi/post_for_me/models/social_post_update_params.rbi +27 -0
- data/rbi/post_for_me/models/tiktok_configuration.rbi +109 -0
- data/rbi/post_for_me/models.rbi +42 -0
- data/rbi/post_for_me/request_options.rbi +59 -0
- data/rbi/post_for_me/resources/media.rbi +83 -0
- data/rbi/post_for_me/resources/social_accounts.rbi +112 -0
- data/rbi/post_for_me/resources/social_post_results.rbi +51 -0
- data/rbi/post_for_me/resources/social_posts.rbi +160 -0
- data/rbi/post_for_me/version.rbi +5 -0
- data/sig/post_for_me/client.rbs +32 -0
- data/sig/post_for_me/errors.rbs +110 -0
- data/sig/post_for_me/file_part.rbs +21 -0
- data/sig/post_for_me/internal/transport/base_client.rbs +131 -0
- data/sig/post_for_me/internal/transport/pooled_net_requester.rbs +45 -0
- data/sig/post_for_me/internal/type/array_of.rbs +48 -0
- data/sig/post_for_me/internal/type/base_model.rbs +102 -0
- data/sig/post_for_me/internal/type/base_page.rbs +24 -0
- data/sig/post_for_me/internal/type/boolean.rbs +26 -0
- data/sig/post_for_me/internal/type/converter.rbs +79 -0
- data/sig/post_for_me/internal/type/enum.rbs +32 -0
- data/sig/post_for_me/internal/type/file_input.rbs +25 -0
- data/sig/post_for_me/internal/type/hash_of.rbs +48 -0
- data/sig/post_for_me/internal/type/request_parameters.rbs +19 -0
- data/sig/post_for_me/internal/type/union.rbs +52 -0
- data/sig/post_for_me/internal/type/unknown.rbs +26 -0
- data/sig/post_for_me/internal/util.rbs +185 -0
- data/sig/post_for_me/internal.rbs +9 -0
- data/sig/post_for_me/models/create_social_post.rbs +398 -0
- data/sig/post_for_me/models/media_create_upload_url_params.rbs +15 -0
- data/sig/post_for_me/models/media_create_upload_url_response.rbs +16 -0
- data/sig/post_for_me/models/social_account.rbs +81 -0
- data/sig/post_for_me/models/social_account_create_auth_url_params.rbs +105 -0
- data/sig/post_for_me/models/social_account_create_auth_url_response.rbs +16 -0
- data/sig/post_for_me/models/social_account_disconnect_params.rbs +15 -0
- data/sig/post_for_me/models/social_account_disconnect_response.rbs +80 -0
- data/sig/post_for_me/models/social_account_list_params.rbs +63 -0
- data/sig/post_for_me/models/social_account_list_response.rbs +51 -0
- data/sig/post_for_me/models/social_account_retrieve_params.rbs +15 -0
- data/sig/post_for_me/models/social_account_update_params.rbs +32 -0
- data/sig/post_for_me/models/social_post.rbs +83 -0
- data/sig/post_for_me/models/social_post_create_params.rbs +15 -0
- data/sig/post_for_me/models/social_post_delete_params.rbs +15 -0
- data/sig/post_for_me/models/social_post_delete_response.rbs +13 -0
- data/sig/post_for_me/models/social_post_list_params.rbs +100 -0
- data/sig/post_for_me/models/social_post_list_response.rbs +51 -0
- data/sig/post_for_me/models/social_post_result.rbs +66 -0
- data/sig/post_for_me/models/social_post_result_list_params.rbs +49 -0
- data/sig/post_for_me/models/social_post_result_list_response.rbs +51 -0
- data/sig/post_for_me/models/social_post_result_retrieve_params.rbs +15 -0
- data/sig/post_for_me/models/social_post_retrieve_params.rbs +15 -0
- data/sig/post_for_me/models/social_post_update_params.rbs +15 -0
- data/sig/post_for_me/models/tiktok_configuration.rbs +65 -0
- data/sig/post_for_me/models.rbs +37 -0
- data/sig/post_for_me/request_options.rbs +34 -0
- data/sig/post_for_me/resources/media.rbs +11 -0
- data/sig/post_for_me/resources/social_accounts.rbs +40 -0
- data/sig/post_for_me/resources/social_post_results.rbs +20 -0
- data/sig/post_for_me/resources/social_posts.rbs +51 -0
- data/sig/post_for_me/version.rbs +3 -0
- metadata +215 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type media_create_upload_url_response =
|
|
4
|
+
{ media_url: String, upload_url: String }
|
|
5
|
+
|
|
6
|
+
class MediaCreateUploadURLResponse < PostForMe::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor media_url: String
|
|
8
|
+
|
|
9
|
+
attr_accessor upload_url: String
|
|
10
|
+
|
|
11
|
+
def initialize: (media_url: String, upload_url: String) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { media_url: String, upload_url: String }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_account =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
access_token: String,
|
|
7
|
+
access_token_expires_at: Time,
|
|
8
|
+
external_id: String?,
|
|
9
|
+
metadata: top?,
|
|
10
|
+
platform: String,
|
|
11
|
+
refresh_token: String?,
|
|
12
|
+
refresh_token_expires_at: Time?,
|
|
13
|
+
status: PostForMe::Models::SocialAccount::status,
|
|
14
|
+
user_id: String,
|
|
15
|
+
username: String?
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class SocialAccount < PostForMe::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor access_token: String
|
|
22
|
+
|
|
23
|
+
attr_accessor access_token_expires_at: Time
|
|
24
|
+
|
|
25
|
+
attr_accessor external_id: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor metadata: top?
|
|
28
|
+
|
|
29
|
+
attr_accessor platform: String
|
|
30
|
+
|
|
31
|
+
attr_accessor refresh_token: String?
|
|
32
|
+
|
|
33
|
+
attr_accessor refresh_token_expires_at: Time?
|
|
34
|
+
|
|
35
|
+
attr_accessor status: PostForMe::Models::SocialAccount::status
|
|
36
|
+
|
|
37
|
+
attr_accessor user_id: String
|
|
38
|
+
|
|
39
|
+
attr_accessor username: String?
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
id: String,
|
|
43
|
+
access_token: String,
|
|
44
|
+
access_token_expires_at: Time,
|
|
45
|
+
external_id: String?,
|
|
46
|
+
metadata: top?,
|
|
47
|
+
platform: String,
|
|
48
|
+
refresh_token: String?,
|
|
49
|
+
refresh_token_expires_at: Time?,
|
|
50
|
+
status: PostForMe::Models::SocialAccount::status,
|
|
51
|
+
user_id: String,
|
|
52
|
+
username: String?
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
id: String,
|
|
57
|
+
access_token: String,
|
|
58
|
+
access_token_expires_at: Time,
|
|
59
|
+
external_id: String?,
|
|
60
|
+
metadata: top?,
|
|
61
|
+
platform: String,
|
|
62
|
+
refresh_token: String?,
|
|
63
|
+
refresh_token_expires_at: Time?,
|
|
64
|
+
status: PostForMe::Models::SocialAccount::status,
|
|
65
|
+
user_id: String,
|
|
66
|
+
username: String?
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type status = :connected | :disconnected
|
|
70
|
+
|
|
71
|
+
module Status
|
|
72
|
+
extend PostForMe::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
CONNECTED: :connected
|
|
75
|
+
DISCONNECTED: :disconnected
|
|
76
|
+
|
|
77
|
+
def self?.values: -> ::Array[PostForMe::Models::SocialAccount::status]
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_account_create_auth_url_params =
|
|
4
|
+
{
|
|
5
|
+
platform: String,
|
|
6
|
+
platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData
|
|
7
|
+
}
|
|
8
|
+
& PostForMe::Internal::Type::request_parameters
|
|
9
|
+
|
|
10
|
+
class SocialAccountCreateAuthURLParams < PostForMe::Internal::Type::BaseModel
|
|
11
|
+
extend PostForMe::Internal::Type::RequestParameters::Converter
|
|
12
|
+
include PostForMe::Internal::Type::RequestParameters
|
|
13
|
+
|
|
14
|
+
attr_accessor platform: String
|
|
15
|
+
|
|
16
|
+
attr_reader platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData?
|
|
17
|
+
|
|
18
|
+
def platform_data=: (
|
|
19
|
+
PostForMe::SocialAccountCreateAuthURLParams::PlatformData
|
|
20
|
+
) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData
|
|
21
|
+
|
|
22
|
+
def initialize: (
|
|
23
|
+
platform: String,
|
|
24
|
+
?platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData,
|
|
25
|
+
?request_options: PostForMe::request_opts
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> {
|
|
29
|
+
platform: String,
|
|
30
|
+
platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData,
|
|
31
|
+
request_options: PostForMe::RequestOptions
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type platform_data =
|
|
35
|
+
{
|
|
36
|
+
bluesky: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky,
|
|
37
|
+
linkedin: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class PlatformData < PostForMe::Internal::Type::BaseModel
|
|
41
|
+
attr_reader bluesky: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky?
|
|
42
|
+
|
|
43
|
+
def bluesky=: (
|
|
44
|
+
PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky
|
|
45
|
+
) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky
|
|
46
|
+
|
|
47
|
+
attr_reader linkedin: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin?
|
|
48
|
+
|
|
49
|
+
def linkedin=: (
|
|
50
|
+
PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin
|
|
51
|
+
) -> PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin
|
|
52
|
+
|
|
53
|
+
def initialize: (
|
|
54
|
+
?bluesky: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky,
|
|
55
|
+
?linkedin: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin
|
|
56
|
+
) -> void
|
|
57
|
+
|
|
58
|
+
def to_hash: -> {
|
|
59
|
+
bluesky: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Bluesky,
|
|
60
|
+
linkedin: PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
type bluesky = { app_password: String, handle: String }
|
|
64
|
+
|
|
65
|
+
class Bluesky < PostForMe::Internal::Type::BaseModel
|
|
66
|
+
attr_accessor app_password: String
|
|
67
|
+
|
|
68
|
+
attr_accessor handle: String
|
|
69
|
+
|
|
70
|
+
def initialize: (app_password: String, handle: String) -> void
|
|
71
|
+
|
|
72
|
+
def to_hash: -> { app_password: String, handle: String }
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
type linkedin =
|
|
76
|
+
{
|
|
77
|
+
connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
class Linkedin < PostForMe::Internal::Type::BaseModel
|
|
81
|
+
attr_accessor connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type
|
|
82
|
+
|
|
83
|
+
def initialize: (
|
|
84
|
+
connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type
|
|
85
|
+
) -> void
|
|
86
|
+
|
|
87
|
+
def to_hash: -> {
|
|
88
|
+
connection_type: PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
type connection_type = :personal | :organization
|
|
92
|
+
|
|
93
|
+
module ConnectionType
|
|
94
|
+
extend PostForMe::Internal::Type::Enum
|
|
95
|
+
|
|
96
|
+
PERSONAL: :personal
|
|
97
|
+
ORGANIZATION: :organization
|
|
98
|
+
|
|
99
|
+
def self?.values: -> ::Array[PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::connection_type]
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_account_create_auth_url_response =
|
|
4
|
+
{ platform: String, url: String }
|
|
5
|
+
|
|
6
|
+
class SocialAccountCreateAuthURLResponse < PostForMe::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor platform: String
|
|
8
|
+
|
|
9
|
+
attr_accessor url: String
|
|
10
|
+
|
|
11
|
+
def initialize: (platform: String, url: String) -> void
|
|
12
|
+
|
|
13
|
+
def to_hash: -> { platform: String, url: String }
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_account_disconnect_params =
|
|
4
|
+
{ } & PostForMe::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SocialAccountDisconnectParams < PostForMe::Internal::Type::BaseModel
|
|
7
|
+
extend PostForMe::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include PostForMe::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: PostForMe::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: PostForMe::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_account_disconnect_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
access_token: String,
|
|
7
|
+
access_token_expires_at: Time,
|
|
8
|
+
external_id: String?,
|
|
9
|
+
metadata: top?,
|
|
10
|
+
platform: String,
|
|
11
|
+
refresh_token: String?,
|
|
12
|
+
refresh_token_expires_at: Time?,
|
|
13
|
+
status: PostForMe::Models::SocialAccountDisconnectResponse::status,
|
|
14
|
+
user_id: String,
|
|
15
|
+
username: String?
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class SocialAccountDisconnectResponse < PostForMe::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor access_token: String
|
|
22
|
+
|
|
23
|
+
attr_accessor access_token_expires_at: Time
|
|
24
|
+
|
|
25
|
+
attr_accessor external_id: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor metadata: top?
|
|
28
|
+
|
|
29
|
+
attr_accessor platform: String
|
|
30
|
+
|
|
31
|
+
attr_accessor refresh_token: String?
|
|
32
|
+
|
|
33
|
+
attr_accessor refresh_token_expires_at: Time?
|
|
34
|
+
|
|
35
|
+
attr_accessor status: PostForMe::Models::SocialAccountDisconnectResponse::status
|
|
36
|
+
|
|
37
|
+
attr_accessor user_id: String
|
|
38
|
+
|
|
39
|
+
attr_accessor username: String?
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
id: String,
|
|
43
|
+
access_token: String,
|
|
44
|
+
access_token_expires_at: Time,
|
|
45
|
+
external_id: String?,
|
|
46
|
+
metadata: top?,
|
|
47
|
+
platform: String,
|
|
48
|
+
refresh_token: String?,
|
|
49
|
+
refresh_token_expires_at: Time?,
|
|
50
|
+
status: PostForMe::Models::SocialAccountDisconnectResponse::status,
|
|
51
|
+
user_id: String,
|
|
52
|
+
username: String?
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
id: String,
|
|
57
|
+
access_token: String,
|
|
58
|
+
access_token_expires_at: Time,
|
|
59
|
+
external_id: String?,
|
|
60
|
+
metadata: top?,
|
|
61
|
+
platform: String,
|
|
62
|
+
refresh_token: String?,
|
|
63
|
+
refresh_token_expires_at: Time?,
|
|
64
|
+
status: PostForMe::Models::SocialAccountDisconnectResponse::status,
|
|
65
|
+
user_id: String,
|
|
66
|
+
username: String?
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type status = :disconnected
|
|
70
|
+
|
|
71
|
+
module Status
|
|
72
|
+
extend PostForMe::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
DISCONNECTED: :disconnected
|
|
75
|
+
|
|
76
|
+
def self?.values: -> ::Array[PostForMe::Models::SocialAccountDisconnectResponse::status]
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_account_list_params =
|
|
4
|
+
{
|
|
5
|
+
id: ::Array[String],
|
|
6
|
+
external_id: ::Array[String],
|
|
7
|
+
limit: Float,
|
|
8
|
+
offset: Float,
|
|
9
|
+
platform: ::Array[String],
|
|
10
|
+
username: ::Array[String]
|
|
11
|
+
}
|
|
12
|
+
& PostForMe::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class SocialAccountListParams < PostForMe::Internal::Type::BaseModel
|
|
15
|
+
extend PostForMe::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include PostForMe::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_reader id: ::Array[String]?
|
|
19
|
+
|
|
20
|
+
def id=: (::Array[String]) -> ::Array[String]
|
|
21
|
+
|
|
22
|
+
attr_reader external_id: ::Array[String]?
|
|
23
|
+
|
|
24
|
+
def external_id=: (::Array[String]) -> ::Array[String]
|
|
25
|
+
|
|
26
|
+
attr_reader limit: Float?
|
|
27
|
+
|
|
28
|
+
def limit=: (Float) -> Float
|
|
29
|
+
|
|
30
|
+
attr_reader offset: Float?
|
|
31
|
+
|
|
32
|
+
def offset=: (Float) -> Float
|
|
33
|
+
|
|
34
|
+
attr_reader platform: ::Array[String]?
|
|
35
|
+
|
|
36
|
+
def platform=: (::Array[String]) -> ::Array[String]
|
|
37
|
+
|
|
38
|
+
attr_reader username: ::Array[String]?
|
|
39
|
+
|
|
40
|
+
def username=: (::Array[String]) -> ::Array[String]
|
|
41
|
+
|
|
42
|
+
def initialize: (
|
|
43
|
+
?id: ::Array[String],
|
|
44
|
+
?external_id: ::Array[String],
|
|
45
|
+
?limit: Float,
|
|
46
|
+
?offset: Float,
|
|
47
|
+
?platform: ::Array[String],
|
|
48
|
+
?username: ::Array[String],
|
|
49
|
+
?request_options: PostForMe::request_opts
|
|
50
|
+
) -> void
|
|
51
|
+
|
|
52
|
+
def to_hash: -> {
|
|
53
|
+
id: ::Array[String],
|
|
54
|
+
external_id: ::Array[String],
|
|
55
|
+
limit: Float,
|
|
56
|
+
offset: Float,
|
|
57
|
+
platform: ::Array[String],
|
|
58
|
+
username: ::Array[String],
|
|
59
|
+
request_options: PostForMe::RequestOptions
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_account_list_response =
|
|
4
|
+
{
|
|
5
|
+
data: ::Array[PostForMe::SocialAccount],
|
|
6
|
+
meta: PostForMe::Models::SocialAccountListResponse::Meta
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class SocialAccountListResponse < PostForMe::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor data: ::Array[PostForMe::SocialAccount]
|
|
11
|
+
|
|
12
|
+
attr_accessor meta: PostForMe::Models::SocialAccountListResponse::Meta
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
data: ::Array[PostForMe::SocialAccount],
|
|
16
|
+
meta: PostForMe::Models::SocialAccountListResponse::Meta
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
data: ::Array[PostForMe::SocialAccount],
|
|
21
|
+
meta: PostForMe::Models::SocialAccountListResponse::Meta
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type meta = { limit: Float, next_: String?, offset: Float, total: Float }
|
|
25
|
+
|
|
26
|
+
class Meta < PostForMe::Internal::Type::BaseModel
|
|
27
|
+
attr_accessor limit: Float
|
|
28
|
+
|
|
29
|
+
attr_accessor next_: String?
|
|
30
|
+
|
|
31
|
+
attr_accessor offset: Float
|
|
32
|
+
|
|
33
|
+
attr_accessor total: Float
|
|
34
|
+
|
|
35
|
+
def initialize: (
|
|
36
|
+
limit: Float,
|
|
37
|
+
next_: String?,
|
|
38
|
+
offset: Float,
|
|
39
|
+
total: Float
|
|
40
|
+
) -> void
|
|
41
|
+
|
|
42
|
+
def to_hash: -> {
|
|
43
|
+
limit: Float,
|
|
44
|
+
next_: String?,
|
|
45
|
+
offset: Float,
|
|
46
|
+
total: Float
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_account_retrieve_params =
|
|
4
|
+
{ } & PostForMe::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SocialAccountRetrieveParams < PostForMe::Internal::Type::BaseModel
|
|
7
|
+
extend PostForMe::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include PostForMe::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: PostForMe::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: PostForMe::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_account_update_params =
|
|
4
|
+
{ external_id: String, username: String }
|
|
5
|
+
& PostForMe::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class SocialAccountUpdateParams < PostForMe::Internal::Type::BaseModel
|
|
8
|
+
extend PostForMe::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include PostForMe::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_reader external_id: String?
|
|
12
|
+
|
|
13
|
+
def external_id=: (String) -> String
|
|
14
|
+
|
|
15
|
+
attr_reader username: String?
|
|
16
|
+
|
|
17
|
+
def username=: (String) -> String
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
?external_id: String,
|
|
21
|
+
?username: String,
|
|
22
|
+
?request_options: PostForMe::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
external_id: String,
|
|
27
|
+
username: String,
|
|
28
|
+
request_options: PostForMe::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
account_configurations: ::Array[top]?,
|
|
7
|
+
caption: String,
|
|
8
|
+
created_at: String,
|
|
9
|
+
external_id: String?,
|
|
10
|
+
media: top?,
|
|
11
|
+
platform_configurations: top?,
|
|
12
|
+
scheduled_at: String?,
|
|
13
|
+
social_accounts: ::Array[String],
|
|
14
|
+
status: PostForMe::Models::SocialPost::status,
|
|
15
|
+
updated_at: String
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class SocialPost < PostForMe::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor account_configurations: ::Array[top]?
|
|
22
|
+
|
|
23
|
+
attr_accessor caption: String
|
|
24
|
+
|
|
25
|
+
attr_accessor created_at: String
|
|
26
|
+
|
|
27
|
+
attr_accessor external_id: String?
|
|
28
|
+
|
|
29
|
+
attr_accessor media: top?
|
|
30
|
+
|
|
31
|
+
attr_accessor platform_configurations: top?
|
|
32
|
+
|
|
33
|
+
attr_accessor scheduled_at: String?
|
|
34
|
+
|
|
35
|
+
attr_accessor social_accounts: ::Array[String]
|
|
36
|
+
|
|
37
|
+
attr_accessor status: PostForMe::Models::SocialPost::status
|
|
38
|
+
|
|
39
|
+
attr_accessor updated_at: String
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
id: String,
|
|
43
|
+
account_configurations: ::Array[top]?,
|
|
44
|
+
caption: String,
|
|
45
|
+
created_at: String,
|
|
46
|
+
external_id: String?,
|
|
47
|
+
media: top?,
|
|
48
|
+
platform_configurations: top?,
|
|
49
|
+
scheduled_at: String?,
|
|
50
|
+
social_accounts: ::Array[String],
|
|
51
|
+
status: PostForMe::Models::SocialPost::status,
|
|
52
|
+
updated_at: String
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
id: String,
|
|
57
|
+
account_configurations: ::Array[top]?,
|
|
58
|
+
caption: String,
|
|
59
|
+
created_at: String,
|
|
60
|
+
external_id: String?,
|
|
61
|
+
media: top?,
|
|
62
|
+
platform_configurations: top?,
|
|
63
|
+
scheduled_at: String?,
|
|
64
|
+
social_accounts: ::Array[String],
|
|
65
|
+
status: PostForMe::Models::SocialPost::status,
|
|
66
|
+
updated_at: String
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type status = :draft | :scheduled | :processing | :processed
|
|
70
|
+
|
|
71
|
+
module Status
|
|
72
|
+
extend PostForMe::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
DRAFT: :draft
|
|
75
|
+
SCHEDULED: :scheduled
|
|
76
|
+
PROCESSING: :processing
|
|
77
|
+
PROCESSED: :processed
|
|
78
|
+
|
|
79
|
+
def self?.values: -> ::Array[PostForMe::Models::SocialPost::status]
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post_create_params =
|
|
4
|
+
{ } & PostForMe::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SocialPostCreateParams < PostForMe::Models::CreateSocialPost
|
|
7
|
+
extend PostForMe::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include PostForMe::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: PostForMe::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: PostForMe::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post_delete_params =
|
|
4
|
+
{ } & PostForMe::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SocialPostDeleteParams < PostForMe::Internal::Type::BaseModel
|
|
7
|
+
extend PostForMe::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include PostForMe::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: PostForMe::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: PostForMe::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post_delete_response = { success: bool }
|
|
4
|
+
|
|
5
|
+
class SocialPostDeleteResponse < PostForMe::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor success: bool
|
|
7
|
+
|
|
8
|
+
def initialize: (success: bool) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { success: bool }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|