late-sdk 0.0.760 → 0.0.762
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/docs/InstagramPlatformData.md +2 -0
- data/docs/ThreadsPlatformData.md +2 -0
- data/lib/zernio-sdk/models/instagram_platform_data.rb +13 -1
- data/lib/zernio-sdk/models/threads_platform_data.rb +30 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +9 -0
- data/spec/models/instagram_platform_data_spec.rb +6 -0
- data/spec/models/threads_platform_data_spec.rb +6 -0
- data/zernio-sdk-0.0.762.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.760.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3e05e669d5e5c32903f8fd9c88d885a69e47f765012c3725cd6527d9db80fad
|
|
4
|
+
data.tar.gz: 8cdba91f2df5f527071e78d9bfecc1d3c6f40a67bba6e6c38b9d23a451411f86
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 771a3b1db9b2804f2b3b505f187db065a44e4268f1d72a20a1ee3df6d840d81bb37340c35eb34b7070b982783f55cdaaf480f15deded8440b996097b2d81637f
|
|
7
|
+
data.tar.gz: 7a325fe2fcc4705bd0a8d528e5b141c10819d23cb7880ee7aaac6b4ab2fe5ceb798909c1678a4701cf0b6e451168b7396feecdd7285e58b4f2f7d1eee2136d68
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
| **user_tags** | [**Array<InstagramPlatformDataUserTagsInner>**](InstagramPlatformDataUserTagsInner.md) | Tag Instagram users by username. The tag shape depends on the media: photos require x/y coordinates, Reels and videos take username only (coordinates are ignored), stories accept optional coordinates. For carousels, use mediaIndex to target specific slides (defaults to 0); video slides take username-only tags. Photo tags without valid coordinates are skipped. | [optional] |
|
|
13
13
|
| **audio_name** | **String** | Custom name for original audio in Reels. Replaces the default \"Original Audio\" label. Can only be set once. Unrelated to audioConfiguration, which attaches a catalog track. | [optional] |
|
|
14
14
|
| **audio_configuration** | [**InstagramPlatformDataAudioConfiguration**](InstagramPlatformDataAudioConfiguration.md) | | [optional] |
|
|
15
|
+
| **mute_audio** | **Boolean** | Publish the video without sound. Applies to Reels, Stories, and video carousel slides; ignored for images. Instagram has no mute parameter, so we strip the audio track from the file before handing it to Instagram: the published video is permanently silent and the original audio cannot be restored from Instagram. If the audio cannot be stripped the post fails rather than publishing with sound; videos above 200MB cannot be muted at all, so mute them before uploading. Unrelated to audioConfiguration.videoVolume, which only lowers the original sound when a catalog track is attached. | [optional][default to false] |
|
|
15
16
|
| **thumb_offset** | **Integer** | Millisecond offset from video start for the Reel cover frame. Ignored when instagramThumbnail or reelCover is provided. Defaults to 0. | [optional] |
|
|
16
17
|
| **instagram_thumbnail** | **String** | Custom cover image URL for Instagram Reels (JPG or PNG, publicly accessible). Overrides thumbOffset when provided. Also accepted as reelCover (alias). | [optional] |
|
|
17
18
|
| **reel_cover** | **String** | Alias for instagramThumbnail. If both are provided, instagramThumbnail takes priority. | [optional] |
|
|
@@ -31,6 +32,7 @@ instance = Zernio::InstagramPlatformData.new(
|
|
|
31
32
|
user_tags: null,
|
|
32
33
|
audio_name: My Podcast Intro,
|
|
33
34
|
audio_configuration: null,
|
|
35
|
+
mute_audio: true,
|
|
34
36
|
thumb_offset: 5000,
|
|
35
37
|
instagram_thumbnail: null,
|
|
36
38
|
reel_cover: null,
|
data/docs/ThreadsPlatformData.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **topic_tag** | **String** | Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided. | [optional] |
|
|
8
|
+
| **first_comment** | **String** | Optional first comment to post immediately after publishing, as a reply to the published post. With threadItems, it replies to the root post. Up to 500 characters (the Threads post limit). The reply is itself a Threads post, so it consumes one of the 250 posts a profile may publish per 24 hours. | [optional] |
|
|
8
9
|
| **thread_items** | [**Array<TwitterPlatformDataThreadItemsInner>**](TwitterPlatformDataThreadItemsInner.md) | Complete sequence of posts in a Threads thread. The first item becomes the root post, subsequent items are chained as replies. When threadItems is provided, the top-level content field is used only for display and search purposes, it is NOT published. You must include your first post as threadItems[0]. | [optional] |
|
|
9
10
|
|
|
10
11
|
## Example
|
|
@@ -14,6 +15,7 @@ require 'zernio-sdk'
|
|
|
14
15
|
|
|
15
16
|
instance = Zernio::ThreadsPlatformData.new(
|
|
16
17
|
topic_tag: null,
|
|
18
|
+
first_comment: null,
|
|
17
19
|
thread_items: null
|
|
18
20
|
)
|
|
19
21
|
```
|
|
@@ -38,6 +38,9 @@ module Zernio
|
|
|
38
38
|
|
|
39
39
|
attr_accessor :audio_configuration
|
|
40
40
|
|
|
41
|
+
# Publish the video without sound. Applies to Reels, Stories, and video carousel slides; ignored for images. Instagram has no mute parameter, so we strip the audio track from the file before handing it to Instagram: the published video is permanently silent and the original audio cannot be restored from Instagram. If the audio cannot be stripped the post fails rather than publishing with sound; videos above 200MB cannot be muted at all, so mute them before uploading. Unrelated to audioConfiguration.videoVolume, which only lowers the original sound when a catalog track is attached.
|
|
42
|
+
attr_accessor :mute_audio
|
|
43
|
+
|
|
41
44
|
# Millisecond offset from video start for the Reel cover frame. Ignored when instagramThumbnail or reelCover is provided. Defaults to 0.
|
|
42
45
|
attr_accessor :thumb_offset
|
|
43
46
|
|
|
@@ -83,6 +86,7 @@ module Zernio
|
|
|
83
86
|
:'user_tags' => :'userTags',
|
|
84
87
|
:'audio_name' => :'audioName',
|
|
85
88
|
:'audio_configuration' => :'audioConfiguration',
|
|
89
|
+
:'mute_audio' => :'muteAudio',
|
|
86
90
|
:'thumb_offset' => :'thumbOffset',
|
|
87
91
|
:'instagram_thumbnail' => :'instagramThumbnail',
|
|
88
92
|
:'reel_cover' => :'reelCover',
|
|
@@ -111,6 +115,7 @@ module Zernio
|
|
|
111
115
|
:'user_tags' => :'Array<InstagramPlatformDataUserTagsInner>',
|
|
112
116
|
:'audio_name' => :'String',
|
|
113
117
|
:'audio_configuration' => :'InstagramPlatformDataAudioConfiguration',
|
|
118
|
+
:'mute_audio' => :'Boolean',
|
|
114
119
|
:'thumb_offset' => :'Integer',
|
|
115
120
|
:'instagram_thumbnail' => :'String',
|
|
116
121
|
:'reel_cover' => :'String',
|
|
@@ -178,6 +183,12 @@ module Zernio
|
|
|
178
183
|
self.audio_configuration = attributes[:'audio_configuration']
|
|
179
184
|
end
|
|
180
185
|
|
|
186
|
+
if attributes.key?(:'mute_audio')
|
|
187
|
+
self.mute_audio = attributes[:'mute_audio']
|
|
188
|
+
else
|
|
189
|
+
self.mute_audio = false
|
|
190
|
+
end
|
|
191
|
+
|
|
181
192
|
if attributes.key?(:'thumb_offset')
|
|
182
193
|
self.thumb_offset = attributes[:'thumb_offset']
|
|
183
194
|
end
|
|
@@ -256,6 +267,7 @@ module Zernio
|
|
|
256
267
|
user_tags == o.user_tags &&
|
|
257
268
|
audio_name == o.audio_name &&
|
|
258
269
|
audio_configuration == o.audio_configuration &&
|
|
270
|
+
mute_audio == o.mute_audio &&
|
|
259
271
|
thumb_offset == o.thumb_offset &&
|
|
260
272
|
instagram_thumbnail == o.instagram_thumbnail &&
|
|
261
273
|
reel_cover == o.reel_cover &&
|
|
@@ -271,7 +283,7 @@ module Zernio
|
|
|
271
283
|
# Calculates hash code according to all attributes.
|
|
272
284
|
# @return [Integer] Hash code
|
|
273
285
|
def hash
|
|
274
|
-
[content_type, share_to_feed, collaborators, first_comment, trial_params, user_tags, audio_name, audio_configuration, thumb_offset, instagram_thumbnail, reel_cover, is_ai_generated].hash
|
|
286
|
+
[content_type, share_to_feed, collaborators, first_comment, trial_params, user_tags, audio_name, audio_configuration, mute_audio, thumb_offset, instagram_thumbnail, reel_cover, is_ai_generated].hash
|
|
275
287
|
end
|
|
276
288
|
|
|
277
289
|
# Builds the object from hash
|
|
@@ -19,6 +19,9 @@ module Zernio
|
|
|
19
19
|
# Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided.
|
|
20
20
|
attr_accessor :topic_tag
|
|
21
21
|
|
|
22
|
+
# Optional first comment to post immediately after publishing, as a reply to the published post. With threadItems, it replies to the root post. Up to 500 characters (the Threads post limit). The reply is itself a Threads post, so it consumes one of the 250 posts a profile may publish per 24 hours.
|
|
23
|
+
attr_accessor :first_comment
|
|
24
|
+
|
|
22
25
|
# Complete sequence of posts in a Threads thread. The first item becomes the root post, subsequent items are chained as replies. When threadItems is provided, the top-level content field is used only for display and search purposes, it is NOT published. You must include your first post as threadItems[0].
|
|
23
26
|
attr_accessor :thread_items
|
|
24
27
|
|
|
@@ -26,6 +29,7 @@ module Zernio
|
|
|
26
29
|
def self.attribute_map
|
|
27
30
|
{
|
|
28
31
|
:'topic_tag' => :'topic_tag',
|
|
32
|
+
:'first_comment' => :'firstComment',
|
|
29
33
|
:'thread_items' => :'threadItems'
|
|
30
34
|
}
|
|
31
35
|
end
|
|
@@ -44,6 +48,7 @@ module Zernio
|
|
|
44
48
|
def self.openapi_types
|
|
45
49
|
{
|
|
46
50
|
:'topic_tag' => :'String',
|
|
51
|
+
:'first_comment' => :'String',
|
|
47
52
|
:'thread_items' => :'Array<TwitterPlatformDataThreadItemsInner>'
|
|
48
53
|
}
|
|
49
54
|
end
|
|
@@ -74,6 +79,10 @@ module Zernio
|
|
|
74
79
|
self.topic_tag = attributes[:'topic_tag']
|
|
75
80
|
end
|
|
76
81
|
|
|
82
|
+
if attributes.key?(:'first_comment')
|
|
83
|
+
self.first_comment = attributes[:'first_comment']
|
|
84
|
+
end
|
|
85
|
+
|
|
77
86
|
if attributes.key?(:'thread_items')
|
|
78
87
|
if (value = attributes[:'thread_items']).is_a?(Array)
|
|
79
88
|
self.thread_items = value
|
|
@@ -94,6 +103,10 @@ module Zernio
|
|
|
94
103
|
invalid_properties.push('invalid value for "topic_tag", the character length must be greater than or equal to 1.')
|
|
95
104
|
end
|
|
96
105
|
|
|
106
|
+
if !@first_comment.nil? && @first_comment.to_s.length > 500
|
|
107
|
+
invalid_properties.push('invalid value for "first_comment", the character length must be smaller than or equal to 500.')
|
|
108
|
+
end
|
|
109
|
+
|
|
97
110
|
invalid_properties
|
|
98
111
|
end
|
|
99
112
|
|
|
@@ -103,6 +116,7 @@ module Zernio
|
|
|
103
116
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
117
|
return false if !@topic_tag.nil? && @topic_tag.to_s.length > 50
|
|
105
118
|
return false if !@topic_tag.nil? && @topic_tag.to_s.length < 1
|
|
119
|
+
return false if !@first_comment.nil? && @first_comment.to_s.length > 500
|
|
106
120
|
true
|
|
107
121
|
end
|
|
108
122
|
|
|
@@ -124,12 +138,27 @@ module Zernio
|
|
|
124
138
|
@topic_tag = topic_tag
|
|
125
139
|
end
|
|
126
140
|
|
|
141
|
+
# Custom attribute writer method with validation
|
|
142
|
+
# @param [Object] first_comment Value to be assigned
|
|
143
|
+
def first_comment=(first_comment)
|
|
144
|
+
if first_comment.nil?
|
|
145
|
+
fail ArgumentError, 'first_comment cannot be nil'
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if first_comment.to_s.length > 500
|
|
149
|
+
fail ArgumentError, 'invalid value for "first_comment", the character length must be smaller than or equal to 500.'
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
@first_comment = first_comment
|
|
153
|
+
end
|
|
154
|
+
|
|
127
155
|
# Checks equality by comparing each attribute.
|
|
128
156
|
# @param [Object] Object to be compared
|
|
129
157
|
def ==(o)
|
|
130
158
|
return true if self.equal?(o)
|
|
131
159
|
self.class == o.class &&
|
|
132
160
|
topic_tag == o.topic_tag &&
|
|
161
|
+
first_comment == o.first_comment &&
|
|
133
162
|
thread_items == o.thread_items
|
|
134
163
|
end
|
|
135
164
|
|
|
@@ -142,7 +171,7 @@ module Zernio
|
|
|
142
171
|
# Calculates hash code according to all attributes.
|
|
143
172
|
# @return [Integer] Hash code
|
|
144
173
|
def hash
|
|
145
|
-
[topic_tag, thread_items].hash
|
|
174
|
+
[topic_tag, first_comment, thread_items].hash
|
|
146
175
|
end
|
|
147
176
|
|
|
148
177
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -5337,6 +5337,10 @@ components:
|
|
|
5337
5337
|
minLength: 1
|
|
5338
5338
|
maxLength: 50
|
|
5339
5339
|
description: Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided.
|
|
5340
|
+
firstComment:
|
|
5341
|
+
type: string
|
|
5342
|
+
maxLength: 500
|
|
5343
|
+
description: 'Optional first comment to post immediately after publishing, as a reply to the published post. With threadItems, it replies to the root post. Up to 500 characters (the Threads post limit). The reply is itself a Threads post, so it consumes one of the 250 posts a profile may publish per 24 hours.'
|
|
5340
5344
|
threadItems:
|
|
5341
5345
|
type: array
|
|
5342
5346
|
description: >
|
|
@@ -5518,6 +5522,11 @@ components:
|
|
|
5518
5522
|
maximum: 100
|
|
5519
5523
|
description: 'Volume of the video''s own sound, 0-100. Defaults to 100. Set 0 to mute the original video audio.'
|
|
5520
5524
|
example: 100
|
|
5525
|
+
muteAudio:
|
|
5526
|
+
type: boolean
|
|
5527
|
+
default: false
|
|
5528
|
+
description: 'Publish the video without sound. Applies to Reels, Stories, and video carousel slides; ignored for images. Instagram has no mute parameter, so we strip the audio track from the file before handing it to Instagram: the published video is permanently silent and the original audio cannot be restored from Instagram. If the audio cannot be stripped the post fails rather than publishing with sound; videos above 200MB cannot be muted at all, so mute them before uploading. Unrelated to audioConfiguration.videoVolume, which only lowers the original sound when a catalog track is attached.'
|
|
5529
|
+
example: true
|
|
5521
5530
|
thumbOffset:
|
|
5522
5531
|
type: integer
|
|
5523
5532
|
minimum: 0
|
|
@@ -79,6 +79,12 @@ describe Zernio::InstagramPlatformData do
|
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
+
describe 'test attribute "mute_audio"' do
|
|
83
|
+
it 'should work' do
|
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
82
88
|
describe 'test attribute "thumb_offset"' do
|
|
83
89
|
it 'should work' do
|
|
84
90
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -33,6 +33,12 @@ describe Zernio::ThreadsPlatformData do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "first_comment"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
36
42
|
describe 'test attribute "thread_items"' do
|
|
37
43
|
it 'should work' do
|
|
38
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: late-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.762
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -5434,7 +5434,7 @@ files:
|
|
|
5434
5434
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
5435
5435
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
5436
5436
|
- spec/spec_helper.rb
|
|
5437
|
-
- zernio-sdk-0.0.
|
|
5437
|
+
- zernio-sdk-0.0.762.gem
|
|
5438
5438
|
- zernio-sdk.gemspec
|
|
5439
5439
|
homepage: https://openapi-generator.tech
|
|
5440
5440
|
licenses:
|
data/zernio-sdk-0.0.760.gem
DELETED
|
Binary file
|