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,100 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post_list_params =
|
|
4
|
+
{
|
|
5
|
+
external_id: ::Array[String],
|
|
6
|
+
limit: Float,
|
|
7
|
+
offset: Float,
|
|
8
|
+
platform: ::Array[PostForMe::Models::SocialPostListParams::platform],
|
|
9
|
+
status: ::Array[PostForMe::Models::SocialPostListParams::status]
|
|
10
|
+
}
|
|
11
|
+
& PostForMe::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class SocialPostListParams < PostForMe::Internal::Type::BaseModel
|
|
14
|
+
extend PostForMe::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include PostForMe::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_reader external_id: ::Array[String]?
|
|
18
|
+
|
|
19
|
+
def external_id=: (::Array[String]) -> ::Array[String]
|
|
20
|
+
|
|
21
|
+
attr_reader limit: Float?
|
|
22
|
+
|
|
23
|
+
def limit=: (Float) -> Float
|
|
24
|
+
|
|
25
|
+
attr_reader offset: Float?
|
|
26
|
+
|
|
27
|
+
def offset=: (Float) -> Float
|
|
28
|
+
|
|
29
|
+
attr_reader platform: ::Array[PostForMe::Models::SocialPostListParams::platform]?
|
|
30
|
+
|
|
31
|
+
def platform=: (
|
|
32
|
+
::Array[PostForMe::Models::SocialPostListParams::platform]
|
|
33
|
+
) -> ::Array[PostForMe::Models::SocialPostListParams::platform]
|
|
34
|
+
|
|
35
|
+
attr_reader status: ::Array[PostForMe::Models::SocialPostListParams::status]?
|
|
36
|
+
|
|
37
|
+
def status=: (
|
|
38
|
+
::Array[PostForMe::Models::SocialPostListParams::status]
|
|
39
|
+
) -> ::Array[PostForMe::Models::SocialPostListParams::status]
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
?external_id: ::Array[String],
|
|
43
|
+
?limit: Float,
|
|
44
|
+
?offset: Float,
|
|
45
|
+
?platform: ::Array[PostForMe::Models::SocialPostListParams::platform],
|
|
46
|
+
?status: ::Array[PostForMe::Models::SocialPostListParams::status],
|
|
47
|
+
?request_options: PostForMe::request_opts
|
|
48
|
+
) -> void
|
|
49
|
+
|
|
50
|
+
def to_hash: -> {
|
|
51
|
+
external_id: ::Array[String],
|
|
52
|
+
limit: Float,
|
|
53
|
+
offset: Float,
|
|
54
|
+
platform: ::Array[PostForMe::Models::SocialPostListParams::platform],
|
|
55
|
+
status: ::Array[PostForMe::Models::SocialPostListParams::status],
|
|
56
|
+
request_options: PostForMe::RequestOptions
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type platform =
|
|
60
|
+
:bluesky
|
|
61
|
+
| :facebook
|
|
62
|
+
| :instagram
|
|
63
|
+
| :linkedin
|
|
64
|
+
| :pinterest
|
|
65
|
+
| :threads
|
|
66
|
+
| :tiktok
|
|
67
|
+
| :x
|
|
68
|
+
| :youtube
|
|
69
|
+
|
|
70
|
+
module Platform
|
|
71
|
+
extend PostForMe::Internal::Type::Enum
|
|
72
|
+
|
|
73
|
+
BLUESKY: :bluesky
|
|
74
|
+
FACEBOOK: :facebook
|
|
75
|
+
INSTAGRAM: :instagram
|
|
76
|
+
LINKEDIN: :linkedin
|
|
77
|
+
PINTEREST: :pinterest
|
|
78
|
+
THREADS: :threads
|
|
79
|
+
TIKTOK: :tiktok
|
|
80
|
+
X: :x
|
|
81
|
+
YOUTUBE: :youtube
|
|
82
|
+
|
|
83
|
+
def self?.values: -> ::Array[PostForMe::Models::SocialPostListParams::platform]
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
type status = :draft | :scheduled | :processing | :processed
|
|
87
|
+
|
|
88
|
+
module Status
|
|
89
|
+
extend PostForMe::Internal::Type::Enum
|
|
90
|
+
|
|
91
|
+
DRAFT: :draft
|
|
92
|
+
SCHEDULED: :scheduled
|
|
93
|
+
PROCESSING: :processing
|
|
94
|
+
PROCESSED: :processed
|
|
95
|
+
|
|
96
|
+
def self?.values: -> ::Array[PostForMe::Models::SocialPostListParams::status]
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post_list_response =
|
|
4
|
+
{
|
|
5
|
+
data: ::Array[PostForMe::SocialPost],
|
|
6
|
+
meta: PostForMe::Models::SocialPostListResponse::Meta
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class SocialPostListResponse < PostForMe::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor data: ::Array[PostForMe::SocialPost]
|
|
11
|
+
|
|
12
|
+
attr_accessor meta: PostForMe::Models::SocialPostListResponse::Meta
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
data: ::Array[PostForMe::SocialPost],
|
|
16
|
+
meta: PostForMe::Models::SocialPostListResponse::Meta
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
data: ::Array[PostForMe::SocialPost],
|
|
21
|
+
meta: PostForMe::Models::SocialPostListResponse::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,66 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post_result =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
details: top,
|
|
7
|
+
error: top,
|
|
8
|
+
platform_data: PostForMe::SocialPostResult::PlatformData,
|
|
9
|
+
post_id: String,
|
|
10
|
+
social_account_id: String,
|
|
11
|
+
success: bool
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class SocialPostResult < PostForMe::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor details: top
|
|
18
|
+
|
|
19
|
+
attr_accessor error: top
|
|
20
|
+
|
|
21
|
+
attr_accessor platform_data: PostForMe::SocialPostResult::PlatformData
|
|
22
|
+
|
|
23
|
+
attr_accessor post_id: String
|
|
24
|
+
|
|
25
|
+
attr_accessor social_account_id: String
|
|
26
|
+
|
|
27
|
+
attr_accessor success: bool
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
id: String,
|
|
31
|
+
details: top,
|
|
32
|
+
error: top,
|
|
33
|
+
platform_data: PostForMe::SocialPostResult::PlatformData,
|
|
34
|
+
post_id: String,
|
|
35
|
+
social_account_id: String,
|
|
36
|
+
success: bool
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
id: String,
|
|
41
|
+
details: top,
|
|
42
|
+
error: top,
|
|
43
|
+
platform_data: PostForMe::SocialPostResult::PlatformData,
|
|
44
|
+
post_id: String,
|
|
45
|
+
social_account_id: String,
|
|
46
|
+
success: bool
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
type platform_data = { id: String, url: String }
|
|
50
|
+
|
|
51
|
+
class PlatformData < PostForMe::Internal::Type::BaseModel
|
|
52
|
+
attr_reader id: String?
|
|
53
|
+
|
|
54
|
+
def id=: (String) -> String
|
|
55
|
+
|
|
56
|
+
attr_reader url: String?
|
|
57
|
+
|
|
58
|
+
def url=: (String) -> String
|
|
59
|
+
|
|
60
|
+
def initialize: (?id: String, ?url: String) -> void
|
|
61
|
+
|
|
62
|
+
def to_hash: -> { id: String, url: String }
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post_result_list_params =
|
|
4
|
+
{
|
|
5
|
+
limit: Float,
|
|
6
|
+
offset: Float,
|
|
7
|
+
platform: ::Array[String],
|
|
8
|
+
post_id: ::Array[String]
|
|
9
|
+
}
|
|
10
|
+
& PostForMe::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class SocialPostResultListParams < PostForMe::Internal::Type::BaseModel
|
|
13
|
+
extend PostForMe::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include PostForMe::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_reader limit: Float?
|
|
17
|
+
|
|
18
|
+
def limit=: (Float) -> Float
|
|
19
|
+
|
|
20
|
+
attr_reader offset: Float?
|
|
21
|
+
|
|
22
|
+
def offset=: (Float) -> Float
|
|
23
|
+
|
|
24
|
+
attr_reader platform: ::Array[String]?
|
|
25
|
+
|
|
26
|
+
def platform=: (::Array[String]) -> ::Array[String]
|
|
27
|
+
|
|
28
|
+
attr_reader post_id: ::Array[String]?
|
|
29
|
+
|
|
30
|
+
def post_id=: (::Array[String]) -> ::Array[String]
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
?limit: Float,
|
|
34
|
+
?offset: Float,
|
|
35
|
+
?platform: ::Array[String],
|
|
36
|
+
?post_id: ::Array[String],
|
|
37
|
+
?request_options: PostForMe::request_opts
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
limit: Float,
|
|
42
|
+
offset: Float,
|
|
43
|
+
platform: ::Array[String],
|
|
44
|
+
post_id: ::Array[String],
|
|
45
|
+
request_options: PostForMe::RequestOptions
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post_result_list_response =
|
|
4
|
+
{
|
|
5
|
+
data: ::Array[PostForMe::SocialPostResult],
|
|
6
|
+
meta: PostForMe::Models::SocialPostResultListResponse::Meta
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class SocialPostResultListResponse < PostForMe::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor data: ::Array[PostForMe::SocialPostResult]
|
|
11
|
+
|
|
12
|
+
attr_accessor meta: PostForMe::Models::SocialPostResultListResponse::Meta
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
data: ::Array[PostForMe::SocialPostResult],
|
|
16
|
+
meta: PostForMe::Models::SocialPostResultListResponse::Meta
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
data: ::Array[PostForMe::SocialPostResult],
|
|
21
|
+
meta: PostForMe::Models::SocialPostResultListResponse::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_post_result_retrieve_params =
|
|
4
|
+
{ } & PostForMe::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SocialPostResultRetrieveParams < 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,15 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post_retrieve_params =
|
|
4
|
+
{ } & PostForMe::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SocialPostRetrieveParams < 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,15 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type social_post_update_params =
|
|
4
|
+
{ } & PostForMe::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SocialPostUpdateParams < 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,65 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Models
|
|
3
|
+
type tiktok_configuration =
|
|
4
|
+
{
|
|
5
|
+
allow_comment: bool?,
|
|
6
|
+
allow_duet: bool?,
|
|
7
|
+
allow_stitch: bool?,
|
|
8
|
+
caption: top?,
|
|
9
|
+
disclose_branded_content: bool?,
|
|
10
|
+
disclose_your_brand: bool?,
|
|
11
|
+
is_ai_generated: bool?,
|
|
12
|
+
media: ::Array[String]?,
|
|
13
|
+
privacy_status: String?,
|
|
14
|
+
title: String?
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class TiktokConfiguration < PostForMe::Internal::Type::BaseModel
|
|
18
|
+
attr_accessor allow_comment: bool?
|
|
19
|
+
|
|
20
|
+
attr_accessor allow_duet: bool?
|
|
21
|
+
|
|
22
|
+
attr_accessor allow_stitch: bool?
|
|
23
|
+
|
|
24
|
+
attr_accessor caption: top?
|
|
25
|
+
|
|
26
|
+
attr_accessor disclose_branded_content: bool?
|
|
27
|
+
|
|
28
|
+
attr_accessor disclose_your_brand: bool?
|
|
29
|
+
|
|
30
|
+
attr_accessor is_ai_generated: bool?
|
|
31
|
+
|
|
32
|
+
attr_accessor media: ::Array[String]?
|
|
33
|
+
|
|
34
|
+
attr_accessor privacy_status: String?
|
|
35
|
+
|
|
36
|
+
attr_accessor title: String?
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
?allow_comment: bool?,
|
|
40
|
+
?allow_duet: bool?,
|
|
41
|
+
?allow_stitch: bool?,
|
|
42
|
+
?caption: top?,
|
|
43
|
+
?disclose_branded_content: bool?,
|
|
44
|
+
?disclose_your_brand: bool?,
|
|
45
|
+
?is_ai_generated: bool?,
|
|
46
|
+
?media: ::Array[String]?,
|
|
47
|
+
?privacy_status: String?,
|
|
48
|
+
?title: String?
|
|
49
|
+
) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> {
|
|
52
|
+
allow_comment: bool?,
|
|
53
|
+
allow_duet: bool?,
|
|
54
|
+
allow_stitch: bool?,
|
|
55
|
+
caption: top?,
|
|
56
|
+
disclose_branded_content: bool?,
|
|
57
|
+
disclose_your_brand: bool?,
|
|
58
|
+
is_ai_generated: bool?,
|
|
59
|
+
media: ::Array[String]?,
|
|
60
|
+
privacy_status: String?,
|
|
61
|
+
title: String?
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
class CreateSocialPost = PostForMe::Models::CreateSocialPost
|
|
3
|
+
|
|
4
|
+
class MediaCreateUploadURLParams = PostForMe::Models::MediaCreateUploadURLParams
|
|
5
|
+
|
|
6
|
+
class SocialAccount = PostForMe::Models::SocialAccount
|
|
7
|
+
|
|
8
|
+
class SocialAccountCreateAuthURLParams = PostForMe::Models::SocialAccountCreateAuthURLParams
|
|
9
|
+
|
|
10
|
+
class SocialAccountDisconnectParams = PostForMe::Models::SocialAccountDisconnectParams
|
|
11
|
+
|
|
12
|
+
class SocialAccountListParams = PostForMe::Models::SocialAccountListParams
|
|
13
|
+
|
|
14
|
+
class SocialAccountRetrieveParams = PostForMe::Models::SocialAccountRetrieveParams
|
|
15
|
+
|
|
16
|
+
class SocialAccountUpdateParams = PostForMe::Models::SocialAccountUpdateParams
|
|
17
|
+
|
|
18
|
+
class SocialPost = PostForMe::Models::SocialPost
|
|
19
|
+
|
|
20
|
+
class SocialPostCreateParams = PostForMe::Models::SocialPostCreateParams
|
|
21
|
+
|
|
22
|
+
class SocialPostDeleteParams = PostForMe::Models::SocialPostDeleteParams
|
|
23
|
+
|
|
24
|
+
class SocialPostListParams = PostForMe::Models::SocialPostListParams
|
|
25
|
+
|
|
26
|
+
class SocialPostResult = PostForMe::Models::SocialPostResult
|
|
27
|
+
|
|
28
|
+
class SocialPostResultListParams = PostForMe::Models::SocialPostResultListParams
|
|
29
|
+
|
|
30
|
+
class SocialPostResultRetrieveParams = PostForMe::Models::SocialPostResultRetrieveParams
|
|
31
|
+
|
|
32
|
+
class SocialPostRetrieveParams = PostForMe::Models::SocialPostRetrieveParams
|
|
33
|
+
|
|
34
|
+
class SocialPostUpdateParams = PostForMe::Models::SocialPostUpdateParams
|
|
35
|
+
|
|
36
|
+
class TiktokConfiguration = PostForMe::Models::TiktokConfiguration
|
|
37
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
type request_opts =
|
|
3
|
+
PostForMe::RequestOptions | PostForMe::request_options | ::Hash[Symbol, top]
|
|
4
|
+
|
|
5
|
+
type request_options =
|
|
6
|
+
{
|
|
7
|
+
idempotency_key: String?,
|
|
8
|
+
extra_query: ::Hash[String, (::Array[String] | String)?]?,
|
|
9
|
+
extra_headers: ::Hash[String, String?]?,
|
|
10
|
+
extra_body: top?,
|
|
11
|
+
max_retries: Integer?,
|
|
12
|
+
timeout: Float?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class RequestOptions < PostForMe::Internal::Type::BaseModel
|
|
16
|
+
def self.validate!: (PostForMe::request_opts opts) -> void
|
|
17
|
+
|
|
18
|
+
attr_accessor idempotency_key: String?
|
|
19
|
+
|
|
20
|
+
attr_accessor extra_query: ::Hash[String, (::Array[String] | String)?]?
|
|
21
|
+
|
|
22
|
+
attr_accessor extra_headers: ::Hash[String, String?]?
|
|
23
|
+
|
|
24
|
+
attr_accessor extra_body: top?
|
|
25
|
+
|
|
26
|
+
attr_accessor max_retries: Integer?
|
|
27
|
+
|
|
28
|
+
attr_accessor timeout: Float?
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
?PostForMe::request_options | ::Hash[Symbol, top] values
|
|
32
|
+
) -> void
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Resources
|
|
3
|
+
class SocialAccounts
|
|
4
|
+
def retrieve: (
|
|
5
|
+
String id,
|
|
6
|
+
?request_options: PostForMe::request_opts
|
|
7
|
+
) -> PostForMe::SocialAccount
|
|
8
|
+
|
|
9
|
+
def update: (
|
|
10
|
+
String id,
|
|
11
|
+
?external_id: String,
|
|
12
|
+
?username: String,
|
|
13
|
+
?request_options: PostForMe::request_opts
|
|
14
|
+
) -> PostForMe::SocialAccount
|
|
15
|
+
|
|
16
|
+
def list: (
|
|
17
|
+
?id: ::Array[String],
|
|
18
|
+
?external_id: ::Array[String],
|
|
19
|
+
?limit: Float,
|
|
20
|
+
?offset: Float,
|
|
21
|
+
?platform: ::Array[String],
|
|
22
|
+
?username: ::Array[String],
|
|
23
|
+
?request_options: PostForMe::request_opts
|
|
24
|
+
) -> PostForMe::Models::SocialAccountListResponse
|
|
25
|
+
|
|
26
|
+
def create_auth_url: (
|
|
27
|
+
platform: String,
|
|
28
|
+
?platform_data: PostForMe::SocialAccountCreateAuthURLParams::PlatformData,
|
|
29
|
+
?request_options: PostForMe::request_opts
|
|
30
|
+
) -> PostForMe::Models::SocialAccountCreateAuthURLResponse
|
|
31
|
+
|
|
32
|
+
def disconnect: (
|
|
33
|
+
String id,
|
|
34
|
+
?request_options: PostForMe::request_opts
|
|
35
|
+
) -> PostForMe::Models::SocialAccountDisconnectResponse
|
|
36
|
+
|
|
37
|
+
def initialize: (client: PostForMe::Client) -> void
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Resources
|
|
3
|
+
class SocialPostResults
|
|
4
|
+
def retrieve: (
|
|
5
|
+
String id,
|
|
6
|
+
?request_options: PostForMe::request_opts
|
|
7
|
+
) -> PostForMe::SocialPostResult
|
|
8
|
+
|
|
9
|
+
def list: (
|
|
10
|
+
?limit: Float,
|
|
11
|
+
?offset: Float,
|
|
12
|
+
?platform: ::Array[String],
|
|
13
|
+
?post_id: ::Array[String],
|
|
14
|
+
?request_options: PostForMe::request_opts
|
|
15
|
+
) -> PostForMe::Models::SocialPostResultListResponse
|
|
16
|
+
|
|
17
|
+
def initialize: (client: PostForMe::Client) -> void
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module PostForMe
|
|
2
|
+
module Resources
|
|
3
|
+
class SocialPosts
|
|
4
|
+
def create: (
|
|
5
|
+
caption: String,
|
|
6
|
+
social_accounts: ::Array[String],
|
|
7
|
+
?account_configurations: ::Array[PostForMe::CreateSocialPost::AccountConfiguration]?,
|
|
8
|
+
?external_id: String?,
|
|
9
|
+
?is_draft: bool?,
|
|
10
|
+
?media: ::Array[PostForMe::CreateSocialPost::Media]?,
|
|
11
|
+
?platform_configurations: PostForMe::CreateSocialPost::PlatformConfigurations?,
|
|
12
|
+
?scheduled_at: Time?,
|
|
13
|
+
?request_options: PostForMe::request_opts
|
|
14
|
+
) -> PostForMe::SocialPost
|
|
15
|
+
|
|
16
|
+
def retrieve: (
|
|
17
|
+
String id,
|
|
18
|
+
?request_options: PostForMe::request_opts
|
|
19
|
+
) -> PostForMe::SocialPost
|
|
20
|
+
|
|
21
|
+
def update: (
|
|
22
|
+
String id,
|
|
23
|
+
caption: String,
|
|
24
|
+
social_accounts: ::Array[String],
|
|
25
|
+
?account_configurations: ::Array[PostForMe::CreateSocialPost::AccountConfiguration]?,
|
|
26
|
+
?external_id: String?,
|
|
27
|
+
?is_draft: bool?,
|
|
28
|
+
?media: ::Array[PostForMe::CreateSocialPost::Media]?,
|
|
29
|
+
?platform_configurations: PostForMe::CreateSocialPost::PlatformConfigurations?,
|
|
30
|
+
?scheduled_at: Time?,
|
|
31
|
+
?request_options: PostForMe::request_opts
|
|
32
|
+
) -> PostForMe::SocialPost
|
|
33
|
+
|
|
34
|
+
def list: (
|
|
35
|
+
?external_id: ::Array[String],
|
|
36
|
+
?limit: Float,
|
|
37
|
+
?offset: Float,
|
|
38
|
+
?platform: ::Array[PostForMe::Models::SocialPostListParams::platform],
|
|
39
|
+
?status: ::Array[PostForMe::Models::SocialPostListParams::status],
|
|
40
|
+
?request_options: PostForMe::request_opts
|
|
41
|
+
) -> PostForMe::Models::SocialPostListResponse
|
|
42
|
+
|
|
43
|
+
def delete: (
|
|
44
|
+
String id,
|
|
45
|
+
?request_options: PostForMe::request_opts
|
|
46
|
+
) -> PostForMe::Models::SocialPostDeleteResponse
|
|
47
|
+
|
|
48
|
+
def initialize: (client: PostForMe::Client) -> void
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|