late-sdk 0.0.574 → 0.0.575
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/ValidateApi.md +1 -1
- data/docs/ValidatePostRequestPlatformsInner.md +2 -0
- data/lib/zernio-sdk/api/validate_api.rb +2 -2
- data/lib/zernio-sdk/models/validate_post_request_platforms_inner.rb +11 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +2 -1
- data/spec/api/validate_api_spec.rb +1 -1
- data/spec/models/validate_post_request_platforms_inner_spec.rb +6 -0
- data/zernio-sdk-0.0.575.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.574.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: 2dc1912d3b0c4fd96650aa0809791d508a7e60426c8a1f6d1414d456e5033801
|
|
4
|
+
data.tar.gz: 8a00d4e02d976f4f972d03d32fb6de035c2c6f1b46dd6a654c04d27eaf34c53e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3e441774c3a4d03ee6ba58df71dc8a31b92ed88e8056a779ebb16ff42d05630fabd25cdbd28568cf34d0229db0216d3e4b8a75b0f51944115b2f7db97443a1a
|
|
7
|
+
data.tar.gz: af806f6bf48de56b736c91b3be6700182f0e36e748d61f13082ca94049a0548b078128bc05419efff32291c572fcedd744cc26080e1e5cd538798a33d2c254fa
|
data/docs/ValidateApi.md
CHANGED
|
@@ -85,7 +85,7 @@ end
|
|
|
85
85
|
|
|
86
86
|
Validate post content
|
|
87
87
|
|
|
88
|
-
Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations. Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage.
|
|
88
|
+
Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations. Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage. Account lookups are limit-only: a twitter accountId is resolved, scoped to the caller, only to pick the 280 vs 25000 character limit. Missing, foreign, or invalid ids fall back to 280 and never error. Returns errors for failures and warnings for near-limit content (>90% of character limit).
|
|
89
89
|
|
|
90
90
|
### Examples
|
|
91
91
|
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **platform** | **String** | | |
|
|
8
|
+
| **account_id** | **String** | Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280. | [optional] |
|
|
8
9
|
| **custom_content** | **String** | | [optional] |
|
|
9
10
|
| **platform_specific_data** | **Object** | | [optional] |
|
|
10
11
|
| **custom_media** | [**Array<MediaItem>**](MediaItem.md) | | [optional] |
|
|
@@ -16,6 +17,7 @@ require 'zernio-sdk'
|
|
|
16
17
|
|
|
17
18
|
instance = Zernio::ValidatePostRequestPlatformsInner.new(
|
|
18
19
|
platform: null,
|
|
20
|
+
account_id: null,
|
|
19
21
|
custom_content: null,
|
|
20
22
|
platform_specific_data: null,
|
|
21
23
|
custom_media: null
|
|
@@ -88,7 +88,7 @@ module Zernio
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
# Validate post content
|
|
91
|
-
# Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations. Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage.
|
|
91
|
+
# Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations. Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage. Account lookups are limit-only: a twitter accountId is resolved, scoped to the caller, only to pick the 280 vs 25000 character limit. Missing, foreign, or invalid ids fall back to 280 and never error. Returns errors for failures and warnings for near-limit content (>90% of character limit).
|
|
92
92
|
# @param validate_post_request [ValidatePostRequest]
|
|
93
93
|
# @param [Hash] opts the optional parameters
|
|
94
94
|
# @return [ValidatePost200Response]
|
|
@@ -98,7 +98,7 @@ module Zernio
|
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
# Validate post content
|
|
101
|
-
# Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations. Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage.
|
|
101
|
+
# Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations. Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage. Account lookups are limit-only: a twitter accountId is resolved, scoped to the caller, only to pick the 280 vs 25000 character limit. Missing, foreign, or invalid ids fall back to 280 and never error. Returns errors for failures and warnings for near-limit content (>90% of character limit).
|
|
102
102
|
# @param validate_post_request [ValidatePostRequest]
|
|
103
103
|
# @param [Hash] opts the optional parameters
|
|
104
104
|
# @return [Array<(ValidatePost200Response, Integer, Hash)>] ValidatePost200Response data, response status code and response headers
|
|
@@ -17,6 +17,9 @@ module Zernio
|
|
|
17
17
|
class ValidatePostRequestPlatformsInner < ApiModelBase
|
|
18
18
|
attr_accessor :platform
|
|
19
19
|
|
|
20
|
+
# Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.
|
|
21
|
+
attr_accessor :account_id
|
|
22
|
+
|
|
20
23
|
attr_accessor :custom_content
|
|
21
24
|
|
|
22
25
|
attr_accessor :platform_specific_data
|
|
@@ -49,6 +52,7 @@ module Zernio
|
|
|
49
52
|
def self.attribute_map
|
|
50
53
|
{
|
|
51
54
|
:'platform' => :'platform',
|
|
55
|
+
:'account_id' => :'accountId',
|
|
52
56
|
:'custom_content' => :'customContent',
|
|
53
57
|
:'platform_specific_data' => :'platformSpecificData',
|
|
54
58
|
:'custom_media' => :'customMedia'
|
|
@@ -69,6 +73,7 @@ module Zernio
|
|
|
69
73
|
def self.openapi_types
|
|
70
74
|
{
|
|
71
75
|
:'platform' => :'String',
|
|
76
|
+
:'account_id' => :'String',
|
|
72
77
|
:'custom_content' => :'String',
|
|
73
78
|
:'platform_specific_data' => :'Object',
|
|
74
79
|
:'custom_media' => :'Array<MediaItem>'
|
|
@@ -103,6 +108,10 @@ module Zernio
|
|
|
103
108
|
self.platform = nil
|
|
104
109
|
end
|
|
105
110
|
|
|
111
|
+
if attributes.key?(:'account_id')
|
|
112
|
+
self.account_id = attributes[:'account_id']
|
|
113
|
+
end
|
|
114
|
+
|
|
106
115
|
if attributes.key?(:'custom_content')
|
|
107
116
|
self.custom_content = attributes[:'custom_content']
|
|
108
117
|
end
|
|
@@ -156,6 +165,7 @@ module Zernio
|
|
|
156
165
|
return true if self.equal?(o)
|
|
157
166
|
self.class == o.class &&
|
|
158
167
|
platform == o.platform &&
|
|
168
|
+
account_id == o.account_id &&
|
|
159
169
|
custom_content == o.custom_content &&
|
|
160
170
|
platform_specific_data == o.platform_specific_data &&
|
|
161
171
|
custom_media == o.custom_media
|
|
@@ -170,7 +180,7 @@ module Zernio
|
|
|
170
180
|
# Calculates hash code according to all attributes.
|
|
171
181
|
# @return [Integer] Hash code
|
|
172
182
|
def hash
|
|
173
|
-
[platform, custom_content, platform_specific_data, custom_media].hash
|
|
183
|
+
[platform, account_id, custom_content, platform_specific_data, custom_media].hash
|
|
174
184
|
end
|
|
175
185
|
|
|
176
186
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -8272,7 +8272,7 @@ paths:
|
|
|
8272
8272
|
description: |
|
|
8273
8273
|
Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations.
|
|
8274
8274
|
|
|
8275
|
-
Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage.
|
|
8275
|
+
Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage. Account lookups are limit-only: a twitter accountId is resolved, scoped to the caller, only to pick the 280 vs 25000 character limit. Missing, foreign, or invalid ids fall back to 280 and never error.
|
|
8276
8276
|
|
|
8277
8277
|
Returns errors for failures and warnings for near-limit content (>90% of character limit).
|
|
8278
8278
|
security:
|
|
@@ -8299,6 +8299,7 @@ paths:
|
|
|
8299
8299
|
platform:
|
|
8300
8300
|
type: string
|
|
8301
8301
|
enum: [twitter, instagram, tiktok, youtube, facebook, linkedin, bluesky, threads, reddit, pinterest, telegram, snapchat, googlebusiness, discord]
|
|
8302
|
+
accountId: { type: string, description: 'Account to validate against. For twitter, resolves X Premium status to apply the 25000 character limit instead of 280.' }
|
|
8302
8303
|
customContent: { type: string }
|
|
8303
8304
|
platformSpecificData: { type: object }
|
|
8304
8305
|
customMedia:
|
|
@@ -46,7 +46,7 @@ describe 'ValidateApi' do
|
|
|
46
46
|
|
|
47
47
|
# unit tests for validate_post
|
|
48
48
|
# Validate post content
|
|
49
|
-
# Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations. Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage.
|
|
49
|
+
# Dry-run the full post validation pipeline without publishing. Catches issues like missing media for Instagram/TikTok/YouTube, hashtag limits, invalid thread formats, Facebook Reel requirements, and character limit violations. Accepts the same body as POST /v1/posts. Does NOT validate accounts, process media, or track usage. Account lookups are limit-only: a twitter accountId is resolved, scoped to the caller, only to pick the 280 vs 25000 character limit. Missing, foreign, or invalid ids fall back to 280 and never error. Returns errors for failures and warnings for near-limit content (>90% of character limit).
|
|
50
50
|
# @param validate_post_request
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
|
52
52
|
# @return [ValidatePost200Response]
|
|
@@ -37,6 +37,12 @@ describe Zernio::ValidatePostRequestPlatformsInner do
|
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
describe 'test attribute "account_id"' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
40
46
|
describe 'test attribute "custom_content"' do
|
|
41
47
|
it 'should work' do
|
|
42
48
|
# 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.575
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
@@ -4793,7 +4793,7 @@ files:
|
|
|
4793
4793
|
- spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
|
|
4794
4794
|
- spec/models/you_tube_video_retention_response_spec.rb
|
|
4795
4795
|
- spec/spec_helper.rb
|
|
4796
|
-
- zernio-sdk-0.0.
|
|
4796
|
+
- zernio-sdk-0.0.575.gem
|
|
4797
4797
|
- zernio-sdk.gemspec
|
|
4798
4798
|
homepage: https://openapi-generator.tech
|
|
4799
4799
|
licenses:
|
data/zernio-sdk-0.0.574.gem
DELETED
|
Binary file
|