post-for-me 0.1.0.pre.alpha.7 → 0.1.0.pre.alpha.8
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 +8 -0
- data/README.md +1 -1
- data/lib/post_for_me/models/bluesky_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/facebook_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/instagram_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/linkedin_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/pinterest_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/threads_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/tiktok_configuration.rb +32 -3
- data/lib/post_for_me/models/twitter_configuration_dto.rb +32 -3
- data/lib/post_for_me/models/youtube_configuration_dto.rb +32 -3
- data/lib/post_for_me/version.rb +1 -1
- data/rbi/post_for_me/models/bluesky_configuration_dto.rbi +63 -3
- data/rbi/post_for_me/models/facebook_configuration_dto.rbi +60 -3
- data/rbi/post_for_me/models/instagram_configuration_dto.rbi +62 -3
- data/rbi/post_for_me/models/linkedin_configuration_dto.rbi +63 -3
- data/rbi/post_for_me/models/pinterest_configuration_dto.rbi +62 -3
- data/rbi/post_for_me/models/threads_configuration_dto.rbi +60 -3
- data/rbi/post_for_me/models/tiktok_configuration.rbi +57 -3
- data/rbi/post_for_me/models/twitter_configuration_dto.rbi +63 -3
- data/rbi/post_for_me/models/youtube_configuration_dto.rbi +60 -3
- data/sig/post_for_me/models/bluesky_configuration_dto.rbs +37 -4
- data/sig/post_for_me/models/facebook_configuration_dto.rbs +27 -4
- data/sig/post_for_me/models/instagram_configuration_dto.rbs +27 -4
- data/sig/post_for_me/models/linkedin_configuration_dto.rbs +37 -4
- data/sig/post_for_me/models/pinterest_configuration_dto.rbs +27 -4
- data/sig/post_for_me/models/threads_configuration_dto.rbs +27 -4
- data/sig/post_for_me/models/tiktok_configuration.rbs +27 -4
- data/sig/post_for_me/models/twitter_configuration_dto.rbs +37 -4
- data/sig/post_for_me/models/youtube_configuration_dto.rbs +35 -4
- metadata +2 -2
|
@@ -20,7 +20,11 @@ module PostForMe
|
|
|
20
20
|
attr_accessor :collaborators
|
|
21
21
|
|
|
22
22
|
# Overrides the `media` from the post
|
|
23
|
-
sig
|
|
23
|
+
sig do
|
|
24
|
+
returns(
|
|
25
|
+
T.nilable(T::Array[PostForMe::InstagramConfigurationDto::Media])
|
|
26
|
+
)
|
|
27
|
+
end
|
|
24
28
|
attr_accessor :media
|
|
25
29
|
|
|
26
30
|
# Instagram post placement
|
|
@@ -35,7 +39,10 @@ module PostForMe
|
|
|
35
39
|
params(
|
|
36
40
|
caption: T.nilable(T.anything),
|
|
37
41
|
collaborators: T.nilable(T::Array[String]),
|
|
38
|
-
media:
|
|
42
|
+
media:
|
|
43
|
+
T.nilable(
|
|
44
|
+
T::Array[PostForMe::InstagramConfigurationDto::Media::OrHash]
|
|
45
|
+
),
|
|
39
46
|
placement:
|
|
40
47
|
T.nilable(PostForMe::InstagramConfigurationDto::Placement::OrSymbol)
|
|
41
48
|
).returns(T.attached_class)
|
|
@@ -57,7 +64,8 @@ module PostForMe
|
|
|
57
64
|
{
|
|
58
65
|
caption: T.nilable(T.anything),
|
|
59
66
|
collaborators: T.nilable(T::Array[String]),
|
|
60
|
-
media:
|
|
67
|
+
media:
|
|
68
|
+
T.nilable(T::Array[PostForMe::InstagramConfigurationDto::Media]),
|
|
61
69
|
placement:
|
|
62
70
|
T.nilable(
|
|
63
71
|
PostForMe::InstagramConfigurationDto::Placement::OrSymbol
|
|
@@ -68,6 +76,57 @@ module PostForMe
|
|
|
68
76
|
def to_hash
|
|
69
77
|
end
|
|
70
78
|
|
|
79
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
80
|
+
OrHash =
|
|
81
|
+
T.type_alias do
|
|
82
|
+
T.any(
|
|
83
|
+
PostForMe::InstagramConfigurationDto::Media,
|
|
84
|
+
PostForMe::Internal::AnyHash
|
|
85
|
+
)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Public URL of the media
|
|
89
|
+
sig { returns(String) }
|
|
90
|
+
attr_accessor :url
|
|
91
|
+
|
|
92
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
93
|
+
sig { returns(T.nilable(T.anything)) }
|
|
94
|
+
attr_accessor :thumbnail_timestamp_ms
|
|
95
|
+
|
|
96
|
+
# Public URL of the thumbnail for the media
|
|
97
|
+
sig { returns(T.nilable(T.anything)) }
|
|
98
|
+
attr_accessor :thumbnail_url
|
|
99
|
+
|
|
100
|
+
sig do
|
|
101
|
+
params(
|
|
102
|
+
url: String,
|
|
103
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
104
|
+
thumbnail_url: T.nilable(T.anything)
|
|
105
|
+
).returns(T.attached_class)
|
|
106
|
+
end
|
|
107
|
+
def self.new(
|
|
108
|
+
# Public URL of the media
|
|
109
|
+
url:,
|
|
110
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
111
|
+
thumbnail_timestamp_ms: nil,
|
|
112
|
+
# Public URL of the thumbnail for the media
|
|
113
|
+
thumbnail_url: nil
|
|
114
|
+
)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
sig do
|
|
118
|
+
override.returns(
|
|
119
|
+
{
|
|
120
|
+
url: String,
|
|
121
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
122
|
+
thumbnail_url: T.nilable(T.anything)
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
end
|
|
126
|
+
def to_hash
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
71
130
|
# Instagram post placement
|
|
72
131
|
module Placement
|
|
73
132
|
extend PostForMe::Internal::Type::Enum
|
|
@@ -16,13 +16,18 @@ module PostForMe
|
|
|
16
16
|
attr_accessor :caption
|
|
17
17
|
|
|
18
18
|
# Overrides the `media` from the post
|
|
19
|
-
sig
|
|
19
|
+
sig do
|
|
20
|
+
returns(T.nilable(T::Array[PostForMe::LinkedinConfigurationDto::Media]))
|
|
21
|
+
end
|
|
20
22
|
attr_accessor :media
|
|
21
23
|
|
|
22
24
|
sig do
|
|
23
25
|
params(
|
|
24
26
|
caption: T.nilable(T.anything),
|
|
25
|
-
media:
|
|
27
|
+
media:
|
|
28
|
+
T.nilable(
|
|
29
|
+
T::Array[PostForMe::LinkedinConfigurationDto::Media::OrHash]
|
|
30
|
+
)
|
|
26
31
|
).returns(T.attached_class)
|
|
27
32
|
end
|
|
28
33
|
def self.new(
|
|
@@ -35,11 +40,66 @@ module PostForMe
|
|
|
35
40
|
|
|
36
41
|
sig do
|
|
37
42
|
override.returns(
|
|
38
|
-
{
|
|
43
|
+
{
|
|
44
|
+
caption: T.nilable(T.anything),
|
|
45
|
+
media:
|
|
46
|
+
T.nilable(T::Array[PostForMe::LinkedinConfigurationDto::Media])
|
|
47
|
+
}
|
|
39
48
|
)
|
|
40
49
|
end
|
|
41
50
|
def to_hash
|
|
42
51
|
end
|
|
52
|
+
|
|
53
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
54
|
+
OrHash =
|
|
55
|
+
T.type_alias do
|
|
56
|
+
T.any(
|
|
57
|
+
PostForMe::LinkedinConfigurationDto::Media,
|
|
58
|
+
PostForMe::Internal::AnyHash
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Public URL of the media
|
|
63
|
+
sig { returns(String) }
|
|
64
|
+
attr_accessor :url
|
|
65
|
+
|
|
66
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
67
|
+
sig { returns(T.nilable(T.anything)) }
|
|
68
|
+
attr_accessor :thumbnail_timestamp_ms
|
|
69
|
+
|
|
70
|
+
# Public URL of the thumbnail for the media
|
|
71
|
+
sig { returns(T.nilable(T.anything)) }
|
|
72
|
+
attr_accessor :thumbnail_url
|
|
73
|
+
|
|
74
|
+
sig do
|
|
75
|
+
params(
|
|
76
|
+
url: String,
|
|
77
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
78
|
+
thumbnail_url: T.nilable(T.anything)
|
|
79
|
+
).returns(T.attached_class)
|
|
80
|
+
end
|
|
81
|
+
def self.new(
|
|
82
|
+
# Public URL of the media
|
|
83
|
+
url:,
|
|
84
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
85
|
+
thumbnail_timestamp_ms: nil,
|
|
86
|
+
# Public URL of the thumbnail for the media
|
|
87
|
+
thumbnail_url: nil
|
|
88
|
+
)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
sig do
|
|
92
|
+
override.returns(
|
|
93
|
+
{
|
|
94
|
+
url: String,
|
|
95
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
96
|
+
thumbnail_url: T.nilable(T.anything)
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
def to_hash
|
|
101
|
+
end
|
|
102
|
+
end
|
|
43
103
|
end
|
|
44
104
|
end
|
|
45
105
|
end
|
|
@@ -24,7 +24,11 @@ module PostForMe
|
|
|
24
24
|
attr_accessor :link
|
|
25
25
|
|
|
26
26
|
# Overrides the `media` from the post
|
|
27
|
-
sig
|
|
27
|
+
sig do
|
|
28
|
+
returns(
|
|
29
|
+
T.nilable(T::Array[PostForMe::PinterestConfigurationDto::Media])
|
|
30
|
+
)
|
|
31
|
+
end
|
|
28
32
|
attr_accessor :media
|
|
29
33
|
|
|
30
34
|
sig do
|
|
@@ -32,7 +36,10 @@ module PostForMe
|
|
|
32
36
|
board_ids: T.nilable(T::Array[String]),
|
|
33
37
|
caption: T.nilable(T.anything),
|
|
34
38
|
link: T.nilable(String),
|
|
35
|
-
media:
|
|
39
|
+
media:
|
|
40
|
+
T.nilable(
|
|
41
|
+
T::Array[PostForMe::PinterestConfigurationDto::Media::OrHash]
|
|
42
|
+
)
|
|
36
43
|
).returns(T.attached_class)
|
|
37
44
|
end
|
|
38
45
|
def self.new(
|
|
@@ -53,12 +60,64 @@ module PostForMe
|
|
|
53
60
|
board_ids: T.nilable(T::Array[String]),
|
|
54
61
|
caption: T.nilable(T.anything),
|
|
55
62
|
link: T.nilable(String),
|
|
56
|
-
media:
|
|
63
|
+
media:
|
|
64
|
+
T.nilable(T::Array[PostForMe::PinterestConfigurationDto::Media])
|
|
57
65
|
}
|
|
58
66
|
)
|
|
59
67
|
end
|
|
60
68
|
def to_hash
|
|
61
69
|
end
|
|
70
|
+
|
|
71
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
72
|
+
OrHash =
|
|
73
|
+
T.type_alias do
|
|
74
|
+
T.any(
|
|
75
|
+
PostForMe::PinterestConfigurationDto::Media,
|
|
76
|
+
PostForMe::Internal::AnyHash
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Public URL of the media
|
|
81
|
+
sig { returns(String) }
|
|
82
|
+
attr_accessor :url
|
|
83
|
+
|
|
84
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
85
|
+
sig { returns(T.nilable(T.anything)) }
|
|
86
|
+
attr_accessor :thumbnail_timestamp_ms
|
|
87
|
+
|
|
88
|
+
# Public URL of the thumbnail for the media
|
|
89
|
+
sig { returns(T.nilable(T.anything)) }
|
|
90
|
+
attr_accessor :thumbnail_url
|
|
91
|
+
|
|
92
|
+
sig do
|
|
93
|
+
params(
|
|
94
|
+
url: String,
|
|
95
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
96
|
+
thumbnail_url: T.nilable(T.anything)
|
|
97
|
+
).returns(T.attached_class)
|
|
98
|
+
end
|
|
99
|
+
def self.new(
|
|
100
|
+
# Public URL of the media
|
|
101
|
+
url:,
|
|
102
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
103
|
+
thumbnail_timestamp_ms: nil,
|
|
104
|
+
# Public URL of the thumbnail for the media
|
|
105
|
+
thumbnail_url: nil
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
sig do
|
|
110
|
+
override.returns(
|
|
111
|
+
{
|
|
112
|
+
url: String,
|
|
113
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
114
|
+
thumbnail_url: T.nilable(T.anything)
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
def to_hash
|
|
119
|
+
end
|
|
120
|
+
end
|
|
62
121
|
end
|
|
63
122
|
end
|
|
64
123
|
end
|
|
@@ -16,7 +16,9 @@ module PostForMe
|
|
|
16
16
|
attr_accessor :caption
|
|
17
17
|
|
|
18
18
|
# Overrides the `media` from the post
|
|
19
|
-
sig
|
|
19
|
+
sig do
|
|
20
|
+
returns(T.nilable(T::Array[PostForMe::ThreadsConfigurationDto::Media]))
|
|
21
|
+
end
|
|
20
22
|
attr_accessor :media
|
|
21
23
|
|
|
22
24
|
# Threads post placement
|
|
@@ -30,7 +32,10 @@ module PostForMe
|
|
|
30
32
|
sig do
|
|
31
33
|
params(
|
|
32
34
|
caption: T.nilable(T.anything),
|
|
33
|
-
media:
|
|
35
|
+
media:
|
|
36
|
+
T.nilable(
|
|
37
|
+
T::Array[PostForMe::ThreadsConfigurationDto::Media::OrHash]
|
|
38
|
+
),
|
|
34
39
|
placement:
|
|
35
40
|
T.nilable(PostForMe::ThreadsConfigurationDto::Placement::OrSymbol)
|
|
36
41
|
).returns(T.attached_class)
|
|
@@ -49,7 +54,8 @@ module PostForMe
|
|
|
49
54
|
override.returns(
|
|
50
55
|
{
|
|
51
56
|
caption: T.nilable(T.anything),
|
|
52
|
-
media:
|
|
57
|
+
media:
|
|
58
|
+
T.nilable(T::Array[PostForMe::ThreadsConfigurationDto::Media]),
|
|
53
59
|
placement:
|
|
54
60
|
T.nilable(PostForMe::ThreadsConfigurationDto::Placement::OrSymbol)
|
|
55
61
|
}
|
|
@@ -58,6 +64,57 @@ module PostForMe
|
|
|
58
64
|
def to_hash
|
|
59
65
|
end
|
|
60
66
|
|
|
67
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
68
|
+
OrHash =
|
|
69
|
+
T.type_alias do
|
|
70
|
+
T.any(
|
|
71
|
+
PostForMe::ThreadsConfigurationDto::Media,
|
|
72
|
+
PostForMe::Internal::AnyHash
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Public URL of the media
|
|
77
|
+
sig { returns(String) }
|
|
78
|
+
attr_accessor :url
|
|
79
|
+
|
|
80
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
81
|
+
sig { returns(T.nilable(T.anything)) }
|
|
82
|
+
attr_accessor :thumbnail_timestamp_ms
|
|
83
|
+
|
|
84
|
+
# Public URL of the thumbnail for the media
|
|
85
|
+
sig { returns(T.nilable(T.anything)) }
|
|
86
|
+
attr_accessor :thumbnail_url
|
|
87
|
+
|
|
88
|
+
sig do
|
|
89
|
+
params(
|
|
90
|
+
url: String,
|
|
91
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
92
|
+
thumbnail_url: T.nilable(T.anything)
|
|
93
|
+
).returns(T.attached_class)
|
|
94
|
+
end
|
|
95
|
+
def self.new(
|
|
96
|
+
# Public URL of the media
|
|
97
|
+
url:,
|
|
98
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
99
|
+
thumbnail_timestamp_ms: nil,
|
|
100
|
+
# Public URL of the thumbnail for the media
|
|
101
|
+
thumbnail_url: nil
|
|
102
|
+
)
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
sig do
|
|
106
|
+
override.returns(
|
|
107
|
+
{
|
|
108
|
+
url: String,
|
|
109
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
110
|
+
thumbnail_url: T.nilable(T.anything)
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
def to_hash
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
61
118
|
# Threads post placement
|
|
62
119
|
module Placement
|
|
63
120
|
extend PostForMe::Internal::Type::Enum
|
|
@@ -42,7 +42,9 @@ module PostForMe
|
|
|
42
42
|
attr_accessor :is_draft
|
|
43
43
|
|
|
44
44
|
# Overrides the `media` from the post
|
|
45
|
-
sig
|
|
45
|
+
sig do
|
|
46
|
+
returns(T.nilable(T::Array[PostForMe::TiktokConfiguration::Media]))
|
|
47
|
+
end
|
|
46
48
|
attr_accessor :media
|
|
47
49
|
|
|
48
50
|
# Sets the privacy status for TikTok (private, public)
|
|
@@ -63,7 +65,8 @@ module PostForMe
|
|
|
63
65
|
disclose_your_brand: T.nilable(T::Boolean),
|
|
64
66
|
is_ai_generated: T.nilable(T::Boolean),
|
|
65
67
|
is_draft: T.nilable(T::Boolean),
|
|
66
|
-
media:
|
|
68
|
+
media:
|
|
69
|
+
T.nilable(T::Array[PostForMe::TiktokConfiguration::Media::OrHash]),
|
|
67
70
|
privacy_status: T.nilable(String),
|
|
68
71
|
title: T.nilable(String)
|
|
69
72
|
).returns(T.attached_class)
|
|
@@ -106,7 +109,7 @@ module PostForMe
|
|
|
106
109
|
disclose_your_brand: T.nilable(T::Boolean),
|
|
107
110
|
is_ai_generated: T.nilable(T::Boolean),
|
|
108
111
|
is_draft: T.nilable(T::Boolean),
|
|
109
|
-
media: T.nilable(T::Array[
|
|
112
|
+
media: T.nilable(T::Array[PostForMe::TiktokConfiguration::Media]),
|
|
110
113
|
privacy_status: T.nilable(String),
|
|
111
114
|
title: T.nilable(String)
|
|
112
115
|
}
|
|
@@ -114,6 +117,57 @@ module PostForMe
|
|
|
114
117
|
end
|
|
115
118
|
def to_hash
|
|
116
119
|
end
|
|
120
|
+
|
|
121
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
122
|
+
OrHash =
|
|
123
|
+
T.type_alias do
|
|
124
|
+
T.any(
|
|
125
|
+
PostForMe::TiktokConfiguration::Media,
|
|
126
|
+
PostForMe::Internal::AnyHash
|
|
127
|
+
)
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Public URL of the media
|
|
131
|
+
sig { returns(String) }
|
|
132
|
+
attr_accessor :url
|
|
133
|
+
|
|
134
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
135
|
+
sig { returns(T.nilable(T.anything)) }
|
|
136
|
+
attr_accessor :thumbnail_timestamp_ms
|
|
137
|
+
|
|
138
|
+
# Public URL of the thumbnail for the media
|
|
139
|
+
sig { returns(T.nilable(T.anything)) }
|
|
140
|
+
attr_accessor :thumbnail_url
|
|
141
|
+
|
|
142
|
+
sig do
|
|
143
|
+
params(
|
|
144
|
+
url: String,
|
|
145
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
146
|
+
thumbnail_url: T.nilable(T.anything)
|
|
147
|
+
).returns(T.attached_class)
|
|
148
|
+
end
|
|
149
|
+
def self.new(
|
|
150
|
+
# Public URL of the media
|
|
151
|
+
url:,
|
|
152
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
153
|
+
thumbnail_timestamp_ms: nil,
|
|
154
|
+
# Public URL of the thumbnail for the media
|
|
155
|
+
thumbnail_url: nil
|
|
156
|
+
)
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
sig do
|
|
160
|
+
override.returns(
|
|
161
|
+
{
|
|
162
|
+
url: String,
|
|
163
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
164
|
+
thumbnail_url: T.nilable(T.anything)
|
|
165
|
+
}
|
|
166
|
+
)
|
|
167
|
+
end
|
|
168
|
+
def to_hash
|
|
169
|
+
end
|
|
170
|
+
end
|
|
117
171
|
end
|
|
118
172
|
end
|
|
119
173
|
end
|
|
@@ -16,13 +16,18 @@ module PostForMe
|
|
|
16
16
|
attr_accessor :caption
|
|
17
17
|
|
|
18
18
|
# Overrides the `media` from the post
|
|
19
|
-
sig
|
|
19
|
+
sig do
|
|
20
|
+
returns(T.nilable(T::Array[PostForMe::TwitterConfigurationDto::Media]))
|
|
21
|
+
end
|
|
20
22
|
attr_accessor :media
|
|
21
23
|
|
|
22
24
|
sig do
|
|
23
25
|
params(
|
|
24
26
|
caption: T.nilable(T.anything),
|
|
25
|
-
media:
|
|
27
|
+
media:
|
|
28
|
+
T.nilable(
|
|
29
|
+
T::Array[PostForMe::TwitterConfigurationDto::Media::OrHash]
|
|
30
|
+
)
|
|
26
31
|
).returns(T.attached_class)
|
|
27
32
|
end
|
|
28
33
|
def self.new(
|
|
@@ -35,11 +40,66 @@ module PostForMe
|
|
|
35
40
|
|
|
36
41
|
sig do
|
|
37
42
|
override.returns(
|
|
38
|
-
{
|
|
43
|
+
{
|
|
44
|
+
caption: T.nilable(T.anything),
|
|
45
|
+
media:
|
|
46
|
+
T.nilable(T::Array[PostForMe::TwitterConfigurationDto::Media])
|
|
47
|
+
}
|
|
39
48
|
)
|
|
40
49
|
end
|
|
41
50
|
def to_hash
|
|
42
51
|
end
|
|
52
|
+
|
|
53
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
54
|
+
OrHash =
|
|
55
|
+
T.type_alias do
|
|
56
|
+
T.any(
|
|
57
|
+
PostForMe::TwitterConfigurationDto::Media,
|
|
58
|
+
PostForMe::Internal::AnyHash
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Public URL of the media
|
|
63
|
+
sig { returns(String) }
|
|
64
|
+
attr_accessor :url
|
|
65
|
+
|
|
66
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
67
|
+
sig { returns(T.nilable(T.anything)) }
|
|
68
|
+
attr_accessor :thumbnail_timestamp_ms
|
|
69
|
+
|
|
70
|
+
# Public URL of the thumbnail for the media
|
|
71
|
+
sig { returns(T.nilable(T.anything)) }
|
|
72
|
+
attr_accessor :thumbnail_url
|
|
73
|
+
|
|
74
|
+
sig do
|
|
75
|
+
params(
|
|
76
|
+
url: String,
|
|
77
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
78
|
+
thumbnail_url: T.nilable(T.anything)
|
|
79
|
+
).returns(T.attached_class)
|
|
80
|
+
end
|
|
81
|
+
def self.new(
|
|
82
|
+
# Public URL of the media
|
|
83
|
+
url:,
|
|
84
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
85
|
+
thumbnail_timestamp_ms: nil,
|
|
86
|
+
# Public URL of the thumbnail for the media
|
|
87
|
+
thumbnail_url: nil
|
|
88
|
+
)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
sig do
|
|
92
|
+
override.returns(
|
|
93
|
+
{
|
|
94
|
+
url: String,
|
|
95
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
96
|
+
thumbnail_url: T.nilable(T.anything)
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
def to_hash
|
|
101
|
+
end
|
|
102
|
+
end
|
|
43
103
|
end
|
|
44
104
|
end
|
|
45
105
|
end
|
|
@@ -16,7 +16,9 @@ module PostForMe
|
|
|
16
16
|
attr_accessor :caption
|
|
17
17
|
|
|
18
18
|
# Overrides the `media` from the post
|
|
19
|
-
sig
|
|
19
|
+
sig do
|
|
20
|
+
returns(T.nilable(T::Array[PostForMe::YoutubeConfigurationDto::Media]))
|
|
21
|
+
end
|
|
20
22
|
attr_accessor :media
|
|
21
23
|
|
|
22
24
|
# Overrides the `title` from the post
|
|
@@ -26,7 +28,10 @@ module PostForMe
|
|
|
26
28
|
sig do
|
|
27
29
|
params(
|
|
28
30
|
caption: T.nilable(T.anything),
|
|
29
|
-
media:
|
|
31
|
+
media:
|
|
32
|
+
T.nilable(
|
|
33
|
+
T::Array[PostForMe::YoutubeConfigurationDto::Media::OrHash]
|
|
34
|
+
),
|
|
30
35
|
title: T.nilable(String)
|
|
31
36
|
).returns(T.attached_class)
|
|
32
37
|
end
|
|
@@ -44,13 +49,65 @@ module PostForMe
|
|
|
44
49
|
override.returns(
|
|
45
50
|
{
|
|
46
51
|
caption: T.nilable(T.anything),
|
|
47
|
-
media:
|
|
52
|
+
media:
|
|
53
|
+
T.nilable(T::Array[PostForMe::YoutubeConfigurationDto::Media]),
|
|
48
54
|
title: T.nilable(String)
|
|
49
55
|
}
|
|
50
56
|
)
|
|
51
57
|
end
|
|
52
58
|
def to_hash
|
|
53
59
|
end
|
|
60
|
+
|
|
61
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
62
|
+
OrHash =
|
|
63
|
+
T.type_alias do
|
|
64
|
+
T.any(
|
|
65
|
+
PostForMe::YoutubeConfigurationDto::Media,
|
|
66
|
+
PostForMe::Internal::AnyHash
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Public URL of the media
|
|
71
|
+
sig { returns(String) }
|
|
72
|
+
attr_accessor :url
|
|
73
|
+
|
|
74
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
75
|
+
sig { returns(T.nilable(T.anything)) }
|
|
76
|
+
attr_accessor :thumbnail_timestamp_ms
|
|
77
|
+
|
|
78
|
+
# Public URL of the thumbnail for the media
|
|
79
|
+
sig { returns(T.nilable(T.anything)) }
|
|
80
|
+
attr_accessor :thumbnail_url
|
|
81
|
+
|
|
82
|
+
sig do
|
|
83
|
+
params(
|
|
84
|
+
url: String,
|
|
85
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
86
|
+
thumbnail_url: T.nilable(T.anything)
|
|
87
|
+
).returns(T.attached_class)
|
|
88
|
+
end
|
|
89
|
+
def self.new(
|
|
90
|
+
# Public URL of the media
|
|
91
|
+
url:,
|
|
92
|
+
# Timestamp in milliseconds of frame to use as thumbnail for the media
|
|
93
|
+
thumbnail_timestamp_ms: nil,
|
|
94
|
+
# Public URL of the thumbnail for the media
|
|
95
|
+
thumbnail_url: nil
|
|
96
|
+
)
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
sig do
|
|
100
|
+
override.returns(
|
|
101
|
+
{
|
|
102
|
+
url: String,
|
|
103
|
+
thumbnail_timestamp_ms: T.nilable(T.anything),
|
|
104
|
+
thumbnail_url: T.nilable(T.anything)
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
def to_hash
|
|
109
|
+
end
|
|
110
|
+
end
|
|
54
111
|
end
|
|
55
112
|
end
|
|
56
113
|
end
|
|
@@ -1,15 +1,48 @@
|
|
|
1
1
|
module PostForMe
|
|
2
2
|
module Models
|
|
3
|
-
type bluesky_configuration_dto =
|
|
3
|
+
type bluesky_configuration_dto =
|
|
4
|
+
{
|
|
5
|
+
caption: top?,
|
|
6
|
+
media: ::Array[PostForMe::BlueskyConfigurationDto::Media]?
|
|
7
|
+
}
|
|
4
8
|
|
|
5
9
|
class BlueskyConfigurationDto < PostForMe::Internal::Type::BaseModel
|
|
6
10
|
attr_accessor caption: top?
|
|
7
11
|
|
|
8
|
-
attr_accessor media: ::Array[
|
|
12
|
+
attr_accessor media: ::Array[PostForMe::BlueskyConfigurationDto::Media]?
|
|
9
13
|
|
|
10
|
-
def initialize: (
|
|
14
|
+
def initialize: (
|
|
15
|
+
?caption: top?,
|
|
16
|
+
?media: ::Array[PostForMe::BlueskyConfigurationDto::Media]?
|
|
17
|
+
) -> void
|
|
11
18
|
|
|
12
|
-
def to_hash: -> {
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
caption: top?,
|
|
21
|
+
media: ::Array[PostForMe::BlueskyConfigurationDto::Media]?
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type media =
|
|
25
|
+
{ url: String, thumbnail_timestamp_ms: top?, thumbnail_url: top? }
|
|
26
|
+
|
|
27
|
+
class Media < PostForMe::Internal::Type::BaseModel
|
|
28
|
+
attr_accessor url: String
|
|
29
|
+
|
|
30
|
+
attr_accessor thumbnail_timestamp_ms: top?
|
|
31
|
+
|
|
32
|
+
attr_accessor thumbnail_url: top?
|
|
33
|
+
|
|
34
|
+
def initialize: (
|
|
35
|
+
url: String,
|
|
36
|
+
?thumbnail_timestamp_ms: top?,
|
|
37
|
+
?thumbnail_url: top?
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
url: String,
|
|
42
|
+
thumbnail_timestamp_ms: top?,
|
|
43
|
+
thumbnail_url: top?
|
|
44
|
+
}
|
|
45
|
+
end
|
|
13
46
|
end
|
|
14
47
|
end
|
|
15
48
|
end
|