late-sdk 0.0.573 → 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/AdAccountsApi.md +1 -1
- data/docs/ValidateApi.md +1 -1
- data/docs/ValidatePostRequestPlatformsInner.md +2 -0
- data/lib/zernio-sdk/api/ad_accounts_api.rb +2 -2
- 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 +6 -1
- data/spec/api/ad_accounts_api_spec.rb +1 -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.573.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/AdAccountsApi.md
CHANGED
|
@@ -397,7 +397,7 @@ end
|
|
|
397
397
|
|
|
398
398
|
List ad accounts
|
|
399
399
|
|
|
400
|
-
Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs). For TikTok agencies: enumerates every advertiser under every Business Center the token can read (paginated server-side), then chunks the lookup against TikTok's `/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the SocialAccount; lazy-refreshed on first call after expiry.
|
|
400
|
+
Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs). For TikTok agencies: enumerates every advertiser under every Business Center the token can read (paginated server-side), then chunks the lookup against TikTok's `/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the SocialAccount; lazy-refreshed on first call after expiry. For Google Ads: responds `429` when Google's API quota is temporarily exhausted (instead of an empty list). Retry after a delay.
|
|
401
401
|
|
|
402
402
|
### Examples
|
|
403
403
|
|
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
|
|
@@ -411,7 +411,7 @@ module Zernio
|
|
|
411
411
|
end
|
|
412
412
|
|
|
413
413
|
# List ad accounts
|
|
414
|
-
# Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs). For TikTok agencies: enumerates every advertiser under every Business Center the token can read (paginated server-side), then chunks the lookup against TikTok's `/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the SocialAccount; lazy-refreshed on first call after expiry.
|
|
414
|
+
# Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs). For TikTok agencies: enumerates every advertiser under every Business Center the token can read (paginated server-side), then chunks the lookup against TikTok's `/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the SocialAccount; lazy-refreshed on first call after expiry. For Google Ads: responds `429` when Google's API quota is temporarily exhausted (instead of an empty list). Retry after a delay.
|
|
415
415
|
# @param account_id [String] Social account ID
|
|
416
416
|
# @param [Hash] opts the optional parameters
|
|
417
417
|
# @option opts [String] :ad_account_id Filter response to a single platform ad account ID (e.g. `act_123` for Meta, advertiser_id for TikTok). Returns at most one item.
|
|
@@ -423,7 +423,7 @@ module Zernio
|
|
|
423
423
|
end
|
|
424
424
|
|
|
425
425
|
# List ad accounts
|
|
426
|
-
# Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs). For TikTok agencies: enumerates every advertiser under every Business Center the token can read (paginated server-side), then chunks the lookup against TikTok's `/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the SocialAccount; lazy-refreshed on first call after expiry.
|
|
426
|
+
# Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs). For TikTok agencies: enumerates every advertiser under every Business Center the token can read (paginated server-side), then chunks the lookup against TikTok's `/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the SocialAccount; lazy-refreshed on first call after expiry. For Google Ads: responds `429` when Google's API quota is temporarily exhausted (instead of an empty list). Retry after a delay.
|
|
427
427
|
# @param account_id [String] Social account ID
|
|
428
428
|
# @param [Hash] opts the optional parameters
|
|
429
429
|
# @option opts [String] :ad_account_id Filter response to a single platform ad account ID (e.g. `act_123` for Meta, advertiser_id for TikTok). Returns at most one item.
|
|
@@ -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:
|
|
@@ -35969,6 +35970,9 @@ paths:
|
|
|
35969
35970
|
`/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers
|
|
35970
35971
|
without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the
|
|
35971
35972
|
SocialAccount; lazy-refreshed on first call after expiry.
|
|
35973
|
+
|
|
35974
|
+
For Google Ads: responds `429` when Google's API quota is temporarily exhausted
|
|
35975
|
+
(instead of an empty list). Retry after a delay.
|
|
35972
35976
|
security:
|
|
35973
35977
|
- bearerAuth: []
|
|
35974
35978
|
parameters:
|
|
@@ -36000,6 +36004,7 @@ paths:
|
|
|
36000
36004
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
36001
36005
|
'422':
|
|
36002
36006
|
description: Platform ads connection required (TikTok Ads, X Ads) or Instagram missing linked Facebook account
|
|
36007
|
+
'429': { $ref: '#/components/responses/RateLimited' }
|
|
36003
36008
|
patch:
|
|
36004
36009
|
operationId: updateAdAccount
|
|
36005
36010
|
tags: ["Ad Accounts"]
|
|
@@ -106,7 +106,7 @@ describe 'AdAccountsApi' do
|
|
|
106
106
|
|
|
107
107
|
# unit tests for list_ad_accounts
|
|
108
108
|
# List ad accounts
|
|
109
|
-
# Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs). For TikTok agencies: enumerates every advertiser under every Business Center the token can read (paginated server-side), then chunks the lookup against TikTok's `/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the SocialAccount; lazy-refreshed on first call after expiry.
|
|
109
|
+
# Returns the platform ad accounts available for the given social account (e.g. Meta ad accounts, TikTok advertiser IDs, Google Ads customer IDs). For TikTok agencies: enumerates every advertiser under every Business Center the token can read (paginated server-side), then chunks the lookup against TikTok's `/advertiser/info/` endpoint (which has a per-call cap of ≤100 IDs). Solo advertisers without a BC fall back to the OAuth-time `advertiser_ids` list. Cached for 1h on the SocialAccount; lazy-refreshed on first call after expiry. For Google Ads: responds `429` when Google's API quota is temporarily exhausted (instead of an empty list). Retry after a delay.
|
|
110
110
|
# @param account_id Social account ID
|
|
111
111
|
# @param [Hash] opts the optional parameters
|
|
112
112
|
# @option opts [String] :ad_account_id Filter response to a single platform ad account ID (e.g. `act_123` for Meta, advertiser_id for TikTok). Returns at most one item.
|
|
@@ -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.573.gem
DELETED
|
Binary file
|