late-sdk 0.0.574 → 0.0.576
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/CheckPhoneNumberAvailability200Response.md +1 -1
- data/docs/CheckPhoneNumberAvailability200ResponseAreaOptionsInner.md +1 -1
- 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/check_phone_number_availability200_response.rb +1 -1
- data/lib/zernio-sdk/models/check_phone_number_availability200_response_area_options_inner.rb +1 -1
- data/lib/zernio-sdk/models/validate_post_request_platforms_inner.rb +11 -1
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +18 -13
- 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.576.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: c68c26a4e0a7404395bc6806e52ce8077c1172159dfbc518718d9eab93447f9c
|
|
4
|
+
data.tar.gz: 78a9491b4d52487161fa27413d0a81cdac810c849056981e444dea00b2a92594
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec07ee3c185451cab015cbde4b8dcd678be4daf62957ed86389d20b6cde6af43b134a40f5647a8b6c883836669bd2b5331cd826e54d7d892ba1365bbe4ceae7e
|
|
7
|
+
data.tar.gz: 8ba25c2a7dee694bb3831c7a9bfae1e1f44e36680a728beba81e221c9979fa1cc37b4d6569bab075a5fb72a0c919c110db8ced9aee76ebe5c38e7f4f267c044c
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **available** | **Boolean** | Whether deliverable voice inventory exists right now. | [optional] |
|
|
10
10
|
| **address_constraint** | **String** | | [optional] |
|
|
11
11
|
| **areas** | **Array<String>** | For `geo` only — the area(s) the registered address must be in. | [optional] |
|
|
12
|
-
| **area_options** | [**Array<CheckPhoneNumberAvailability200ResponseAreaOptionsInner>**](CheckPhoneNumberAvailability200ResponseAreaOptionsInner.md) | Live inventory grouped by area code
|
|
12
|
+
| **area_options** | [**Array<CheckPhoneNumberAvailability200ResponseAreaOptionsInner>**](CheckPhoneNumberAvailability200ResponseAreaOptionsInner.md) | Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area. | [optional] |
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **ndc** | **String** | Area code (national destination code), e.g. \"11\". | [optional] |
|
|
8
|
-
| **name** | **String** | Area name:
|
|
8
|
+
| **name** | **String** | Area name: \"City, ST\" for US/CA (e.g. \"Miami, FL\"), city otherwise (e.g. \"Sao Paulo\"). | [optional] |
|
|
9
9
|
| **count** | **Integer** | Numbers available in this area: country-wide count for US/CA, numbers seen on the latest inventory page otherwise. | [optional] |
|
|
10
10
|
|
|
11
11
|
## Example
|
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
|
|
@@ -27,7 +27,7 @@ module Zernio
|
|
|
27
27
|
# For `geo` only — the area(s) the registered address must be in.
|
|
28
28
|
attr_accessor :areas
|
|
29
29
|
|
|
30
|
-
# Live inventory grouped by area code
|
|
30
|
+
# Live inventory grouped by area code. For US and CA this is the full country inventory (every area code with stock, recognizable metros listed first, then alphabetical); other countries are ordered largest stock first; they list the areas in the latest inventory page (up to 500 numbers, which for most countries is the entire pool). Empty when out of stock (or the area lookup failed). Pass a chosen `ndc` as `areaCode` on POST /v1/phone-numbers/purchase (or on the KYC submit for regulated countries) to require that area.
|
|
31
31
|
attr_accessor :area_options
|
|
32
32
|
|
|
33
33
|
class EnumAttributeValidator
|
data/lib/zernio-sdk/models/check_phone_number_availability200_response_area_options_inner.rb
CHANGED
|
@@ -18,7 +18,7 @@ module Zernio
|
|
|
18
18
|
# Area code (national destination code), e.g. \"11\".
|
|
19
19
|
attr_accessor :ndc
|
|
20
20
|
|
|
21
|
-
# Area name:
|
|
21
|
+
# Area name: \"City, ST\" for US/CA (e.g. \"Miami, FL\"), city otherwise (e.g. \"Sao Paulo\").
|
|
22
22
|
attr_accessor :name
|
|
23
23
|
|
|
24
24
|
# Numbers available in this area: country-wide count for US/CA, numbers seen on the latest inventory page otherwise.
|
|
@@ -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:
|
|
@@ -28165,11 +28166,13 @@ paths:
|
|
|
28165
28166
|
areaOptions:
|
|
28166
28167
|
type: array
|
|
28167
28168
|
description: >
|
|
28168
|
-
Live inventory grouped by area code
|
|
28169
|
-
|
|
28170
|
-
|
|
28171
|
-
other countries
|
|
28172
|
-
|
|
28169
|
+
Live inventory grouped by area code. For US and CA this
|
|
28170
|
+
is the full country inventory (every area code with
|
|
28171
|
+
stock, recognizable metros listed first, then
|
|
28172
|
+
alphabetical); other countries are ordered largest
|
|
28173
|
+
stock first;
|
|
28174
|
+
they list the areas in the latest inventory page
|
|
28175
|
+
(up to 500 numbers, which for most countries is the
|
|
28173
28176
|
entire pool). Empty when out of stock (or the area
|
|
28174
28177
|
lookup failed). Pass a chosen `ndc` as `areaCode` on POST
|
|
28175
28178
|
/v1/phone-numbers/purchase (or on the KYC submit for
|
|
@@ -28178,7 +28181,7 @@ paths:
|
|
|
28178
28181
|
type: object
|
|
28179
28182
|
properties:
|
|
28180
28183
|
ndc: { type: string, description: 'Area code (national destination code), e.g. "11".' }
|
|
28181
|
-
name: { type: string, description: 'Area name:
|
|
28184
|
+
name: { type: string, description: 'Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").' }
|
|
28182
28185
|
count: { type: integer, description: 'Numbers available in this area: country-wide count for US/CA, numbers seen on the latest inventory page otherwise.' }
|
|
28183
28186
|
'400': { description: Country not offerable }
|
|
28184
28187
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
@@ -28535,11 +28538,13 @@ paths:
|
|
|
28535
28538
|
areaOptions:
|
|
28536
28539
|
type: array
|
|
28537
28540
|
description: >
|
|
28538
|
-
Live inventory grouped by area code
|
|
28539
|
-
|
|
28540
|
-
|
|
28541
|
-
other countries
|
|
28542
|
-
|
|
28541
|
+
Live inventory grouped by area code. For US and CA this
|
|
28542
|
+
is the full country inventory (every area code with
|
|
28543
|
+
stock, recognizable metros listed first, then
|
|
28544
|
+
alphabetical); other countries are ordered largest
|
|
28545
|
+
stock first;
|
|
28546
|
+
they list the areas in the latest inventory page
|
|
28547
|
+
(up to 500 numbers, which for most countries is the
|
|
28543
28548
|
entire pool). Empty when out of stock (or the area
|
|
28544
28549
|
lookup failed). Pass a chosen `ndc` as `areaCode` on POST
|
|
28545
28550
|
/v1/phone-numbers/purchase (or on the KYC submit for
|
|
@@ -28548,7 +28553,7 @@ paths:
|
|
|
28548
28553
|
type: object
|
|
28549
28554
|
properties:
|
|
28550
28555
|
ndc: { type: string, description: 'Area code (national destination code), e.g. "11".' }
|
|
28551
|
-
name: { type: string, description: 'Area name:
|
|
28556
|
+
name: { type: string, description: 'Area name: "City, ST" for US/CA (e.g. "Miami, FL"), city otherwise (e.g. "Sao Paulo").' }
|
|
28552
28557
|
count: { type: integer, description: 'Numbers available in this area: country-wide count for US/CA, numbers seen on the latest inventory page otherwise.' }
|
|
28553
28558
|
'400': { description: Country not offerable }
|
|
28554
28559
|
'401': { $ref: '#/components/responses/Unauthorized' }
|
|
@@ -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.576
|
|
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.576.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
|