late-sdk 0.0.616 → 0.0.618
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/FacebookPlatformData.md +3 -1
- data/lib/zernio-sdk/models/facebook_platform_data.rb +35 -4
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +18 -3
- data/spec/models/facebook_platform_data_spec.rb +6 -0
- data/zernio-sdk-0.0.618.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.616.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: 6624ec7970c293995619ddd47af89304c96bc3982ab6be621a0ad7a0127130a8
|
|
4
|
+
data.tar.gz: 2bfe20c1c5b3b205625b8bfe79f7c8162bbaade94bda407b9c68e1c424bba0a4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dad9f24062bd9d986342759585ab2c755bb7c893835883f26aa747844d247162ee548425c6227e1ddcad79fc065512abe2c98a424bf34e26bdd57a896bca4532
|
|
7
|
+
data.tar.gz: 4336fa0170e49c7167e72158fd35deff1b2a5ff5811082470c2698ef48d4c88b10b021a4a0009e192b93c9d4c2fb64b9b22b2605558fe3c7c722155437cf3340
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
| **geo_restriction** | [**GeoRestriction**](GeoRestriction.md) | | [optional] |
|
|
13
13
|
| **carousel_cards** | [**Array<FacebookPlatformDataCarouselCardsInner>**](FacebookPlatformDataCarouselCardsInner.md) | Renders the post as a multi-link carousel (organic Page post). When set, mediaItems must be provided with the same length and all items must be images (no videos). Each cards[i] adds the click-through link and headline for the image at mediaItems[i]. Mutually exclusive with contentType=story|reel. Facebook display truncates name at ~35 chars and description at ~30 chars; longer strings are accepted but get truncated on render. | [optional] |
|
|
14
14
|
| **carousel_link** | **String** | Optional top-level \"See more\" destination shown on the carousel end card. Defaults to the first card's link when omitted. Only used together with carouselCards. | [optional] |
|
|
15
|
+
| **text_format_preset_id** | **String** | Facebook-defined preset ID that renders the post as large text on a colored background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta; we do not publish a catalog of presets and Facebook may change the available set. Pages only (ignored on personal profiles and groups) and text-only feed posts only: the request is rejected with 400 when mediaItems or carouselCards are present, when contentType is story or reel, when content is empty, or when content exceeds 130 characters. Those are Facebook limits, and above them Facebook silently drops the background and publishes a plain text post instead of returning an error, so we reject up front rather than let the background disappear. A URL detected in the content is NOT attached as a link preview while a preset is set, because a link attachment also makes Facebook drop the background. | [optional] |
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,7 +27,8 @@ instance = Zernio::FacebookPlatformData.new(
|
|
|
26
27
|
page_id: null,
|
|
27
28
|
geo_restriction: null,
|
|
28
29
|
carousel_cards: null,
|
|
29
|
-
carousel_link: null
|
|
30
|
+
carousel_link: null,
|
|
31
|
+
text_format_preset_id: null
|
|
30
32
|
)
|
|
31
33
|
```
|
|
32
34
|
|
|
@@ -39,6 +39,9 @@ module Zernio
|
|
|
39
39
|
# Optional top-level \"See more\" destination shown on the carousel end card. Defaults to the first card's link when omitted. Only used together with carouselCards.
|
|
40
40
|
attr_accessor :carousel_link
|
|
41
41
|
|
|
42
|
+
# Facebook-defined preset ID that renders the post as large text on a colored background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta; we do not publish a catalog of presets and Facebook may change the available set. Pages only (ignored on personal profiles and groups) and text-only feed posts only: the request is rejected with 400 when mediaItems or carouselCards are present, when contentType is story or reel, when content is empty, or when content exceeds 130 characters. Those are Facebook limits, and above them Facebook silently drops the background and publishes a plain text post instead of returning an error, so we reject up front rather than let the background disappear. A URL detected in the content is NOT attached as a link preview while a preset is set, because a link attachment also makes Facebook drop the background.
|
|
43
|
+
attr_accessor :text_format_preset_id
|
|
44
|
+
|
|
42
45
|
class EnumAttributeValidator
|
|
43
46
|
attr_reader :datatype
|
|
44
47
|
attr_reader :allowable_values
|
|
@@ -71,7 +74,8 @@ module Zernio
|
|
|
71
74
|
:'page_id' => :'pageId',
|
|
72
75
|
:'geo_restriction' => :'geoRestriction',
|
|
73
76
|
:'carousel_cards' => :'carouselCards',
|
|
74
|
-
:'carousel_link' => :'carouselLink'
|
|
77
|
+
:'carousel_link' => :'carouselLink',
|
|
78
|
+
:'text_format_preset_id' => :'textFormatPresetId'
|
|
75
79
|
}
|
|
76
80
|
end
|
|
77
81
|
|
|
@@ -95,7 +99,8 @@ module Zernio
|
|
|
95
99
|
:'page_id' => :'String',
|
|
96
100
|
:'geo_restriction' => :'GeoRestriction',
|
|
97
101
|
:'carousel_cards' => :'Array<FacebookPlatformDataCarouselCardsInner>',
|
|
98
|
-
:'carousel_link' => :'String'
|
|
102
|
+
:'carousel_link' => :'String',
|
|
103
|
+
:'text_format_preset_id' => :'String'
|
|
99
104
|
}
|
|
100
105
|
end
|
|
101
106
|
|
|
@@ -156,6 +161,10 @@ module Zernio
|
|
|
156
161
|
if attributes.key?(:'carousel_link')
|
|
157
162
|
self.carousel_link = attributes[:'carousel_link']
|
|
158
163
|
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'text_format_preset_id')
|
|
166
|
+
self.text_format_preset_id = attributes[:'text_format_preset_id']
|
|
167
|
+
end
|
|
159
168
|
end
|
|
160
169
|
|
|
161
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -171,6 +180,11 @@ module Zernio
|
|
|
171
180
|
invalid_properties.push('invalid value for "carousel_cards", number of items must be greater than or equal to 2.')
|
|
172
181
|
end
|
|
173
182
|
|
|
183
|
+
pattern = Regexp.new(/^\d+$/)
|
|
184
|
+
if !@text_format_preset_id.nil? && @text_format_preset_id !~ pattern
|
|
185
|
+
invalid_properties.push("invalid value for \"text_format_preset_id\", must conform to the pattern #{pattern}.")
|
|
186
|
+
end
|
|
187
|
+
|
|
174
188
|
invalid_properties
|
|
175
189
|
end
|
|
176
190
|
|
|
@@ -182,6 +196,7 @@ module Zernio
|
|
|
182
196
|
return false unless content_type_validator.valid?(@content_type)
|
|
183
197
|
return false if !@carousel_cards.nil? && @carousel_cards.length > 5
|
|
184
198
|
return false if !@carousel_cards.nil? && @carousel_cards.length < 2
|
|
199
|
+
return false if !@text_format_preset_id.nil? && @text_format_preset_id !~ Regexp.new(/^\d+$/)
|
|
185
200
|
true
|
|
186
201
|
end
|
|
187
202
|
|
|
@@ -213,6 +228,21 @@ module Zernio
|
|
|
213
228
|
@carousel_cards = carousel_cards
|
|
214
229
|
end
|
|
215
230
|
|
|
231
|
+
# Custom attribute writer method with validation
|
|
232
|
+
# @param [Object] text_format_preset_id Value to be assigned
|
|
233
|
+
def text_format_preset_id=(text_format_preset_id)
|
|
234
|
+
if text_format_preset_id.nil?
|
|
235
|
+
fail ArgumentError, 'text_format_preset_id cannot be nil'
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
pattern = Regexp.new(/^\d+$/)
|
|
239
|
+
if text_format_preset_id !~ pattern
|
|
240
|
+
fail ArgumentError, "invalid value for \"text_format_preset_id\", must conform to the pattern #{pattern}."
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
@text_format_preset_id = text_format_preset_id
|
|
244
|
+
end
|
|
245
|
+
|
|
216
246
|
# Checks equality by comparing each attribute.
|
|
217
247
|
# @param [Object] Object to be compared
|
|
218
248
|
def ==(o)
|
|
@@ -225,7 +255,8 @@ module Zernio
|
|
|
225
255
|
page_id == o.page_id &&
|
|
226
256
|
geo_restriction == o.geo_restriction &&
|
|
227
257
|
carousel_cards == o.carousel_cards &&
|
|
228
|
-
carousel_link == o.carousel_link
|
|
258
|
+
carousel_link == o.carousel_link &&
|
|
259
|
+
text_format_preset_id == o.text_format_preset_id
|
|
229
260
|
end
|
|
230
261
|
|
|
231
262
|
# @see the `==` method
|
|
@@ -237,7 +268,7 @@ module Zernio
|
|
|
237
268
|
# Calculates hash code according to all attributes.
|
|
238
269
|
# @return [Integer] Hash code
|
|
239
270
|
def hash
|
|
240
|
-
[draft, content_type, title, first_comment, page_id, geo_restriction, carousel_cards, carousel_link].hash
|
|
271
|
+
[draft, content_type, title, first_comment, page_id, geo_restriction, carousel_cards, carousel_link, text_format_preset_id].hash
|
|
241
272
|
end
|
|
242
273
|
|
|
243
274
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -126,7 +126,7 @@ x-documentation:
|
|
|
126
126
|
|
|
127
127
|
Legacy AppSumo lifetime tiers get a flat 600 req/min regardless of tier.
|
|
128
128
|
|
|
129
|
-
Posts themselves are unlimited on every connected social account; the rate limit applies only to API request throughput.
|
|
129
|
+
Posts themselves are unlimited on every connected social account; the rate limit applies only to API request throughput. Zernio also applies per-account daily publish caps as an anti-abuse safeguard (Instagram 100/day, Facebook 100/day, Threads 250/day, X/Twitter 50/day, Pinterest 25/day, 50/day for every other platform), plus a 25-posts-per-hour per-account velocity cap.
|
|
130
130
|
|
|
131
131
|
All responses include `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset` headers — read these instead of hard-coding limits, since your tier may be configured higher than the default.
|
|
132
132
|
|
|
@@ -4542,6 +4542,21 @@ components:
|
|
|
4542
4542
|
description: >
|
|
4543
4543
|
Optional top-level "See more" destination shown on the carousel end card. Defaults
|
|
4544
4544
|
to the first card's link when omitted. Only used together with carouselCards.
|
|
4545
|
+
textFormatPresetId:
|
|
4546
|
+
type: string
|
|
4547
|
+
pattern: '^\d+$'
|
|
4548
|
+
description: >
|
|
4549
|
+
Facebook-defined preset ID that renders the post as large text on a colored
|
|
4550
|
+
background (Graph `text_format_preset_id`). Supply the raw numeric ID from Meta;
|
|
4551
|
+
we do not publish a catalog of presets and Facebook may change the available set.
|
|
4552
|
+
Pages only (ignored on personal profiles and groups) and text-only feed posts only:
|
|
4553
|
+
the request is rejected with 400 when mediaItems or carouselCards are present, when
|
|
4554
|
+
contentType is story or reel, when content is empty, or when content exceeds 130
|
|
4555
|
+
characters. Those are Facebook limits, and above them Facebook silently drops the
|
|
4556
|
+
background and publishes a plain text post instead of returning an error, so we
|
|
4557
|
+
reject up front rather than let the background disappear. A URL detected in the
|
|
4558
|
+
content is NOT attached as a link preview while a preset is set, because a link
|
|
4559
|
+
attachment also makes Facebook drop the background.
|
|
4545
4560
|
description: >
|
|
4546
4561
|
Feed posts support up to 10 images (no mixed video+image). Stories require single media (24h, no captions).
|
|
4547
4562
|
Reels require single vertical video (9:16, 3-60s). Carousel posts (carouselCards) render a 2-5 card
|
|
@@ -12859,7 +12874,7 @@ paths:
|
|
|
12859
12874
|
platform: { type: string }
|
|
12860
12875
|
existingPostId: { type: string }
|
|
12861
12876
|
'429':
|
|
12862
|
-
description: "Rate limit exceeded. Possible causes: API rate limit, velocity limit (
|
|
12877
|
+
description: "Rate limit exceeded. Possible causes: API rate limit, velocity limit (25 posts/hour per account), account cooldown, or daily platform limits."
|
|
12863
12878
|
content:
|
|
12864
12879
|
application/json:
|
|
12865
12880
|
schema:
|
|
@@ -13334,7 +13349,7 @@ paths:
|
|
|
13334
13349
|
description: Post is currently publishing
|
|
13335
13350
|
'429':
|
|
13336
13351
|
description: |
|
|
13337
|
-
Rate limit exceeded. Possible causes: API rate limit (requests per minute), velocity limit (
|
|
13352
|
+
Rate limit exceeded. Possible causes: API rate limit (requests per minute), velocity limit (25 posts/hour per account), or account cooldown (temporarily rate-limited due to repeated errors).
|
|
13338
13353
|
content:
|
|
13339
13354
|
application/json:
|
|
13340
13355
|
schema:
|
|
@@ -79,4 +79,10 @@ describe Zernio::FacebookPlatformData do
|
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
+
describe 'test attribute "text_format_preset_id"' 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
|
end
|
|
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.618
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -4886,7 +4886,7 @@ files:
|
|
|
4886
4886
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
4887
4887
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
4888
4888
|
- spec/spec_helper.rb
|
|
4889
|
-
- zernio-sdk-0.0.
|
|
4889
|
+
- zernio-sdk-0.0.618.gem
|
|
4890
4890
|
- zernio-sdk.gemspec
|
|
4891
4891
|
homepage: https://openapi-generator.tech
|
|
4892
4892
|
licenses:
|
data/zernio-sdk-0.0.616.gem
DELETED
|
Binary file
|