post-for-me 0.1.0.pre.alpha.4 → 0.1.0.pre.alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b44217192501874d07ce7f1fa55774c8dad01d7b437c20278b4a7c222ce084fb
4
- data.tar.gz: 66a162db8dd3de002f526e6c0463909dbd4d81e3fa8c32a8444c7b1a5c637462
3
+ metadata.gz: 543020ee0e3a162a334ce342dd21cef4d7f568db522f1fff1f5e5b7d9eb61aa3
4
+ data.tar.gz: 519e830c64c3c314500b0da9638705948be0a1aabfbb50184e42e5382bb9a6a2
5
5
  SHA512:
6
- metadata.gz: '008321780b1df6949f15e142c0864e9d2f827c1b3f1ee575e199494220fd322abdc7797ab0ec5d293e72851add4c5d682740c45ec31e83fbb2254401e6e3ff47'
7
- data.tar.gz: e8dd9e7eb141012cbaf94fda1e262d55e76761cfb5e4d3aa7e20a24fb4d1fc53e0598b9ba073ceec5cd1f0e81e7186f97bf3d1d6e89c7b2e21d3ce7855f55d07
6
+ metadata.gz: a685a8c82b8ffaa31696a68bddddbfce440d4d51a8557f2940b1687942133e7f30369114f4a43f5883210aeb4e5fcc4c4f76491d2e7d11fabf044d97e70ac88e
7
+ data.tar.gz: 43d0f07332c3a409f9e0f1a6699517a0e9c66fec71d8d9e226e49775594f59c3ff8e09edc3efc857ea61f7b4cf0a1ce23675f3ceb7e80ba1198326f5a9c73bc9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.5 (2025-08-22)
4
+
5
+ Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([0eae2d6](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/0eae2d659f9b0faeb3e8bcddb12a273343314e3d))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * bump sorbet version and fix new type errors from the breaking change ([c6ab64c](https://github.com/DayMoonDevelopment/post-for-me-ruby/commit/c6ab64c6459562d58a4858b6a9a47e9a1cdf6c73))
15
+
3
16
  ## 0.1.0-alpha.4 (2025-08-18)
4
17
 
5
18
  Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/DayMoonDevelopment/post-for-me-ruby/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "post-for-me", "~> 0.1.0.pre.alpha.4"
20
+ gem "post-for-me", "~> 0.1.0.pre.alpha.5"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -193,15 +193,7 @@ module PostForMe
193
193
  end
194
194
 
195
195
  define_sorbet_constant!(:Request) do
196
- T.type_alias do
197
- {
198
- method: Symbol,
199
- url: URI::Generic,
200
- headers: T::Hash[String, String],
201
- body: T.anything,
202
- deadline: Float
203
- }
204
- end
196
+ T.type_alias { {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} }
205
197
  end
206
198
  end
207
199
  end
@@ -64,14 +64,7 @@ module PostForMe
64
64
  setter = :"#{name_sym}="
65
65
  api_name = info.fetch(:api_name, name_sym)
66
66
  nilable = info.fetch(:nil?, false)
67
- const = if required && !nilable
68
- info.fetch(
69
- :const,
70
- PostForMe::Internal::OMIT
71
- )
72
- else
73
- PostForMe::Internal::OMIT
74
- end
67
+ const = required && !nilable ? info.fetch(:const, PostForMe::Internal::OMIT) : PostForMe::Internal::OMIT
75
68
 
76
69
  [name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym)
77
70
 
@@ -244,7 +244,7 @@ module PostForMe
244
244
  #
245
245
  # @return [String]
246
246
  def uri_origin(uri)
247
- "#{uri.scheme}://#{uri.host}#{uri.port == uri.default_port ? '' : ":#{uri.port}"}"
247
+ "#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}"
248
248
  end
249
249
 
250
250
  # @api private
@@ -144,6 +144,19 @@ module PostForMe
144
144
  # @return [Boolean, nil]
145
145
  optional :disclose_your_brand, PostForMe::Internal::Type::Boolean, nil?: true
146
146
 
147
+ # @!attribute is_ai_generated
148
+ # Flag content as AI generated on TikTok
149
+ #
150
+ # @return [Boolean, nil]
151
+ optional :is_ai_generated, PostForMe::Internal::Type::Boolean, nil?: true
152
+
153
+ # @!attribute is_draft
154
+ # Will create a draft upload to TikTok, posting will need to be completed from
155
+ # within the app
156
+ #
157
+ # @return [Boolean, nil]
158
+ optional :is_draft, PostForMe::Internal::Type::Boolean, nil?: true
159
+
147
160
  # @!attribute link
148
161
  # Pinterest post link
149
162
  #
@@ -176,7 +189,11 @@ module PostForMe
176
189
  # @return [String, nil]
177
190
  optional :title, String, nil?: true
178
191
 
179
- # @!method initialize(allow_comment: nil, allow_duet: nil, allow_stitch: nil, board_ids: nil, caption: nil, disclose_branded_content: nil, disclose_your_brand: nil, link: nil, media: nil, placement: nil, privacy_status: nil, title: nil)
192
+ # @!method initialize(allow_comment: nil, allow_duet: nil, allow_stitch: nil, board_ids: nil, caption: nil, disclose_branded_content: nil, disclose_your_brand: nil, is_ai_generated: nil, is_draft: nil, link: nil, media: nil, placement: nil, privacy_status: nil, title: nil)
193
+ # Some parameter documentations has been truncated, see
194
+ # {PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration} for
195
+ # more details.
196
+ #
180
197
  # Configuration for the social account
181
198
  #
182
199
  # @param allow_comment [Boolean, nil] Allow comments on TikTok
@@ -193,6 +210,10 @@ module PostForMe
193
210
  #
194
211
  # @param disclose_your_brand [Boolean, nil] Disclose your brand on TikTok
195
212
  #
213
+ # @param is_ai_generated [Boolean, nil] Flag content as AI generated on TikTok
214
+ #
215
+ # @param is_draft [Boolean, nil] Will create a draft upload to TikTok, posting will need to be completed from wit
216
+ #
196
217
  # @param link [String, nil] Pinterest post link
197
218
  #
198
219
  # @param media [Array<String>, nil] Overrides the `media` from the post
@@ -76,9 +76,7 @@ module PostForMe
76
76
  #
77
77
  # @return [Symbol, PostForMe::Models::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::ConnectionType]
78
78
  required :connection_type,
79
- enum: -> {
80
- PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::ConnectionType
81
- }
79
+ enum: -> { PostForMe::SocialAccountCreateAuthURLParams::PlatformData::Linkedin::ConnectionType }
82
80
 
83
81
  # @!method initialize(connection_type:)
84
82
  # Some parameter documentations has been truncated, see
@@ -36,10 +36,7 @@ module PostForMe
36
36
  # Filter by post status. Multiple values imply OR logic.
37
37
  #
38
38
  # @return [Array<Symbol, PostForMe::Models::SocialPostListParams::Status>, nil]
39
- optional :status,
40
- -> {
41
- PostForMe::Internal::Type::ArrayOf[enum: PostForMe::SocialPostListParams::Status]
42
- }
39
+ optional :status, -> { PostForMe::Internal::Type::ArrayOf[enum: PostForMe::SocialPostListParams::Status] }
43
40
 
44
41
  # @!method initialize(external_id: nil, limit: nil, offset: nil, platform: nil, status: nil, request_options: {})
45
42
  # @param external_id [Array<String>] Filter by external ID. Multiple values imply OR logic.
@@ -45,6 +45,13 @@ module PostForMe
45
45
  # @return [Boolean, nil]
46
46
  optional :is_ai_generated, PostForMe::Internal::Type::Boolean, nil?: true
47
47
 
48
+ # @!attribute is_draft
49
+ # Will create a draft upload to TikTok, posting will need to be completed from
50
+ # within the app
51
+ #
52
+ # @return [Boolean, nil]
53
+ optional :is_draft, PostForMe::Internal::Type::Boolean, nil?: true
54
+
48
55
  # @!attribute media
49
56
  # Overrides the `media` from the post
50
57
  #
@@ -63,7 +70,10 @@ module PostForMe
63
70
  # @return [String, nil]
64
71
  optional :title, String, nil?: true
65
72
 
66
- # @!method initialize(allow_comment: nil, allow_duet: nil, allow_stitch: nil, caption: nil, disclose_branded_content: nil, disclose_your_brand: nil, is_ai_generated: nil, media: nil, privacy_status: nil, title: nil)
73
+ # @!method initialize(allow_comment: nil, allow_duet: nil, allow_stitch: nil, caption: nil, disclose_branded_content: nil, disclose_your_brand: nil, is_ai_generated: nil, is_draft: nil, media: nil, privacy_status: nil, title: nil)
74
+ # Some parameter documentations has been truncated, see
75
+ # {PostForMe::Models::TiktokConfiguration} for more details.
76
+ #
67
77
  # @param allow_comment [Boolean, nil] Allow comments on TikTok
68
78
  #
69
79
  # @param allow_duet [Boolean, nil] Allow duets on TikTok
@@ -78,6 +88,8 @@ module PostForMe
78
88
  #
79
89
  # @param is_ai_generated [Boolean, nil] Flag content as AI generated on TikTok
80
90
  #
91
+ # @param is_draft [Boolean, nil] Will create a draft upload to TikTok, posting will need to be completed from wit
92
+ #
81
93
  # @param media [Array<String>, nil] Overrides the `media` from the post
82
94
  #
83
95
  # @param privacy_status [String, nil] Sets the privacy status for TikTok (private, public)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PostForMe
4
- VERSION = "0.1.0.pre.alpha.4"
4
+ VERSION = "0.1.0.pre.alpha.5"
5
5
  end
@@ -59,10 +59,10 @@ module PostForMe
59
59
  end
60
60
 
61
61
  class APIConnectionError < PostForMe::Errors::APIError
62
- sig { void }
62
+ sig { returns(NilClass) }
63
63
  attr_accessor :status
64
64
 
65
- sig { void }
65
+ sig { returns(NilClass) }
66
66
  attr_accessor :body
67
67
 
68
68
  # @api private
@@ -213,6 +213,15 @@ module PostForMe
213
213
  sig { returns(T.nilable(T::Boolean)) }
214
214
  attr_accessor :disclose_your_brand
215
215
 
216
+ # Flag content as AI generated on TikTok
217
+ sig { returns(T.nilable(T::Boolean)) }
218
+ attr_accessor :is_ai_generated
219
+
220
+ # Will create a draft upload to TikTok, posting will need to be completed from
221
+ # within the app
222
+ sig { returns(T.nilable(T::Boolean)) }
223
+ attr_accessor :is_draft
224
+
216
225
  # Pinterest post link
217
226
  sig { returns(T.nilable(String)) }
218
227
  attr_accessor :link
@@ -249,6 +258,8 @@ module PostForMe
249
258
  caption: T.nilable(T.anything),
250
259
  disclose_branded_content: T.nilable(T::Boolean),
251
260
  disclose_your_brand: T.nilable(T::Boolean),
261
+ is_ai_generated: T.nilable(T::Boolean),
262
+ is_draft: T.nilable(T::Boolean),
252
263
  link: T.nilable(String),
253
264
  media: T.nilable(T::Array[String]),
254
265
  placement:
@@ -274,6 +285,11 @@ module PostForMe
274
285
  disclose_branded_content: nil,
275
286
  # Disclose your brand on TikTok
276
287
  disclose_your_brand: nil,
288
+ # Flag content as AI generated on TikTok
289
+ is_ai_generated: nil,
290
+ # Will create a draft upload to TikTok, posting will need to be completed from
291
+ # within the app
292
+ is_draft: nil,
277
293
  # Pinterest post link
278
294
  link: nil,
279
295
  # Overrides the `media` from the post
@@ -297,6 +313,8 @@ module PostForMe
297
313
  caption: T.nilable(T.anything),
298
314
  disclose_branded_content: T.nilable(T::Boolean),
299
315
  disclose_your_brand: T.nilable(T::Boolean),
316
+ is_ai_generated: T.nilable(T::Boolean),
317
+ is_draft: T.nilable(T::Boolean),
300
318
  link: T.nilable(String),
301
319
  media: T.nilable(T::Array[String]),
302
320
  placement:
@@ -36,6 +36,11 @@ module PostForMe
36
36
  sig { returns(T.nilable(T::Boolean)) }
37
37
  attr_accessor :is_ai_generated
38
38
 
39
+ # Will create a draft upload to TikTok, posting will need to be completed from
40
+ # within the app
41
+ sig { returns(T.nilable(T::Boolean)) }
42
+ attr_accessor :is_draft
43
+
39
44
  # Overrides the `media` from the post
40
45
  sig { returns(T.nilable(T::Array[String])) }
41
46
  attr_accessor :media
@@ -57,6 +62,7 @@ module PostForMe
57
62
  disclose_branded_content: T.nilable(T::Boolean),
58
63
  disclose_your_brand: T.nilable(T::Boolean),
59
64
  is_ai_generated: T.nilable(T::Boolean),
65
+ is_draft: T.nilable(T::Boolean),
60
66
  media: T.nilable(T::Array[String]),
61
67
  privacy_status: T.nilable(String),
62
68
  title: T.nilable(String)
@@ -77,6 +83,9 @@ module PostForMe
77
83
  disclose_your_brand: nil,
78
84
  # Flag content as AI generated on TikTok
79
85
  is_ai_generated: nil,
86
+ # Will create a draft upload to TikTok, posting will need to be completed from
87
+ # within the app
88
+ is_draft: nil,
80
89
  # Overrides the `media` from the post
81
90
  media: nil,
82
91
  # Sets the privacy status for TikTok (private, public)
@@ -96,6 +105,7 @@ module PostForMe
96
105
  disclose_branded_content: T.nilable(T::Boolean),
97
106
  disclose_your_brand: T.nilable(T::Boolean),
98
107
  is_ai_generated: T.nilable(T::Boolean),
108
+ is_draft: T.nilable(T::Boolean),
99
109
  media: T.nilable(T::Array[String]),
100
110
  privacy_status: T.nilable(String),
101
111
  title: T.nilable(String)
@@ -81,6 +81,8 @@ module PostForMe
81
81
  caption: top?,
82
82
  disclose_branded_content: bool?,
83
83
  disclose_your_brand: bool?,
84
+ is_ai_generated: bool?,
85
+ is_draft: bool?,
84
86
  link: String?,
85
87
  media: ::Array[String]?,
86
88
  placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
@@ -103,6 +105,10 @@ module PostForMe
103
105
 
104
106
  attr_accessor disclose_your_brand: bool?
105
107
 
108
+ attr_accessor is_ai_generated: bool?
109
+
110
+ attr_accessor is_draft: bool?
111
+
106
112
  attr_accessor link: String?
107
113
 
108
114
  attr_accessor media: ::Array[String]?
@@ -121,6 +127,8 @@ module PostForMe
121
127
  ?caption: top?,
122
128
  ?disclose_branded_content: bool?,
123
129
  ?disclose_your_brand: bool?,
130
+ ?is_ai_generated: bool?,
131
+ ?is_draft: bool?,
124
132
  ?link: String?,
125
133
  ?media: ::Array[String]?,
126
134
  ?placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
@@ -136,6 +144,8 @@ module PostForMe
136
144
  caption: top?,
137
145
  disclose_branded_content: bool?,
138
146
  disclose_your_brand: bool?,
147
+ is_ai_generated: bool?,
148
+ is_draft: bool?,
139
149
  link: String?,
140
150
  media: ::Array[String]?,
141
151
  placement: PostForMe::Models::CreateSocialPost::AccountConfiguration::Configuration::placement?,
@@ -9,6 +9,7 @@ module PostForMe
9
9
  disclose_branded_content: bool?,
10
10
  disclose_your_brand: bool?,
11
11
  is_ai_generated: bool?,
12
+ is_draft: bool?,
12
13
  media: ::Array[String]?,
13
14
  privacy_status: String?,
14
15
  title: String?
@@ -29,6 +30,8 @@ module PostForMe
29
30
 
30
31
  attr_accessor is_ai_generated: bool?
31
32
 
33
+ attr_accessor is_draft: bool?
34
+
32
35
  attr_accessor media: ::Array[String]?
33
36
 
34
37
  attr_accessor privacy_status: String?
@@ -43,6 +46,7 @@ module PostForMe
43
46
  ?disclose_branded_content: bool?,
44
47
  ?disclose_your_brand: bool?,
45
48
  ?is_ai_generated: bool?,
49
+ ?is_draft: bool?,
46
50
  ?media: ::Array[String]?,
47
51
  ?privacy_status: String?,
48
52
  ?title: String?
@@ -56,6 +60,7 @@ module PostForMe
56
60
  disclose_branded_content: bool?,
57
61
  disclose_your_brand: bool?,
58
62
  is_ai_generated: bool?,
63
+ is_draft: bool?,
59
64
  media: ::Array[String]?,
60
65
  privacy_status: String?,
61
66
  title: String?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: post-for-me
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.4
4
+ version: 0.1.0.pre.alpha.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Post For Me
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-19 00:00:00.000000000 Z
11
+ date: 2025-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool