late-sdk 0.0.758 → 0.0.759
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/PinterestPlatformData.md +5 -1
- data/lib/zernio-sdk/models/pinterest_platform_data.rb +26 -4
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +7 -0
- data/spec/models/pinterest_platform_data_spec.rb +12 -0
- data/zernio-sdk-0.0.759.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.758.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: 71a514b055c2a2a5e2d26c4317be8d9ae54682f194cce0796d8668e99180e221
|
|
4
|
+
data.tar.gz: b0c30095b5bf44f938458f4cb24ac4b5d4c73b673dbd926c337dac3a92f9e5af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 142604dfa40769ba9340c0a47b2b9bfd575b2d72aafbaf18639a7ca2143238b8f0377171b2c35ff1c1df884f0b68711acd0a3650d0a173a0c6f18c7f6b937651
|
|
7
|
+
data.tar.gz: 4d09bef685e2b52102e02117876c6f5d05d241ffb03c146b4f84bb84114b1e78761afb176b887f352763dee6fc29a123a4d31821bbeaf9bb1abb98f3540fe2a6
|
|
@@ -6,9 +6,11 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **title** | **String** | Pin title. Defaults to first line of content or \"Pin\". Must be ≤ 100 characters. | [optional] |
|
|
8
8
|
| **board_id** | **String** | Target Pinterest board ID. If omitted, the first available board is used. | [optional] |
|
|
9
|
+
| **board_section_id** | **String** | Target section inside the board. Optional; the pin lands on the board itself when omitted. Pinterest rejects the pin if the section does not belong to boardId, so send both together. | [optional] |
|
|
9
10
|
| **link** | **String** | Destination link (pin URL) | [optional] |
|
|
10
11
|
| **cover_image_url** | **String** | Optional cover image for video pins | [optional] |
|
|
11
12
|
| **cover_image_key_frame_time** | **Integer** | Optional key frame time in seconds for derived video cover | [optional] |
|
|
13
|
+
| **is_ai_generated** | **Boolean** | When true, the Pin is created with Pinterest's AI_MODIFIED disclosure (ai_disclosures), which shows an \"AI modified\" label. Applies to image and video Pins. Pinterest offers no \"not AI\" value, so false simply omits the disclosure. Pinterest may still label a Pin on its own detection. | [optional][default to false] |
|
|
12
14
|
|
|
13
15
|
## Example
|
|
14
16
|
|
|
@@ -18,9 +20,11 @@ require 'zernio-sdk'
|
|
|
18
20
|
instance = Zernio::PinterestPlatformData.new(
|
|
19
21
|
title: null,
|
|
20
22
|
board_id: null,
|
|
23
|
+
board_section_id: null,
|
|
21
24
|
link: null,
|
|
22
25
|
cover_image_url: null,
|
|
23
|
-
cover_image_key_frame_time: null
|
|
26
|
+
cover_image_key_frame_time: null,
|
|
27
|
+
is_ai_generated: null
|
|
24
28
|
)
|
|
25
29
|
```
|
|
26
30
|
|
|
@@ -21,6 +21,9 @@ module Zernio
|
|
|
21
21
|
# Target Pinterest board ID. If omitted, the first available board is used.
|
|
22
22
|
attr_accessor :board_id
|
|
23
23
|
|
|
24
|
+
# Target section inside the board. Optional; the pin lands on the board itself when omitted. Pinterest rejects the pin if the section does not belong to boardId, so send both together.
|
|
25
|
+
attr_accessor :board_section_id
|
|
26
|
+
|
|
24
27
|
# Destination link (pin URL)
|
|
25
28
|
attr_accessor :link
|
|
26
29
|
|
|
@@ -30,14 +33,19 @@ module Zernio
|
|
|
30
33
|
# Optional key frame time in seconds for derived video cover
|
|
31
34
|
attr_accessor :cover_image_key_frame_time
|
|
32
35
|
|
|
36
|
+
# When true, the Pin is created with Pinterest's AI_MODIFIED disclosure (ai_disclosures), which shows an \"AI modified\" label. Applies to image and video Pins. Pinterest offers no \"not AI\" value, so false simply omits the disclosure. Pinterest may still label a Pin on its own detection.
|
|
37
|
+
attr_accessor :is_ai_generated
|
|
38
|
+
|
|
33
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
40
|
def self.attribute_map
|
|
35
41
|
{
|
|
36
42
|
:'title' => :'title',
|
|
37
43
|
:'board_id' => :'boardId',
|
|
44
|
+
:'board_section_id' => :'boardSectionId',
|
|
38
45
|
:'link' => :'link',
|
|
39
46
|
:'cover_image_url' => :'coverImageUrl',
|
|
40
|
-
:'cover_image_key_frame_time' => :'coverImageKeyFrameTime'
|
|
47
|
+
:'cover_image_key_frame_time' => :'coverImageKeyFrameTime',
|
|
48
|
+
:'is_ai_generated' => :'isAiGenerated'
|
|
41
49
|
}
|
|
42
50
|
end
|
|
43
51
|
|
|
@@ -56,9 +64,11 @@ module Zernio
|
|
|
56
64
|
{
|
|
57
65
|
:'title' => :'String',
|
|
58
66
|
:'board_id' => :'String',
|
|
67
|
+
:'board_section_id' => :'String',
|
|
59
68
|
:'link' => :'String',
|
|
60
69
|
:'cover_image_url' => :'String',
|
|
61
|
-
:'cover_image_key_frame_time' => :'Integer'
|
|
70
|
+
:'cover_image_key_frame_time' => :'Integer',
|
|
71
|
+
:'is_ai_generated' => :'Boolean'
|
|
62
72
|
}
|
|
63
73
|
end
|
|
64
74
|
|
|
@@ -92,6 +102,10 @@ module Zernio
|
|
|
92
102
|
self.board_id = attributes[:'board_id']
|
|
93
103
|
end
|
|
94
104
|
|
|
105
|
+
if attributes.key?(:'board_section_id')
|
|
106
|
+
self.board_section_id = attributes[:'board_section_id']
|
|
107
|
+
end
|
|
108
|
+
|
|
95
109
|
if attributes.key?(:'link')
|
|
96
110
|
self.link = attributes[:'link']
|
|
97
111
|
end
|
|
@@ -103,6 +117,12 @@ module Zernio
|
|
|
103
117
|
if attributes.key?(:'cover_image_key_frame_time')
|
|
104
118
|
self.cover_image_key_frame_time = attributes[:'cover_image_key_frame_time']
|
|
105
119
|
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'is_ai_generated')
|
|
122
|
+
self.is_ai_generated = attributes[:'is_ai_generated']
|
|
123
|
+
else
|
|
124
|
+
self.is_ai_generated = false
|
|
125
|
+
end
|
|
106
126
|
end
|
|
107
127
|
|
|
108
128
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -146,9 +166,11 @@ module Zernio
|
|
|
146
166
|
self.class == o.class &&
|
|
147
167
|
title == o.title &&
|
|
148
168
|
board_id == o.board_id &&
|
|
169
|
+
board_section_id == o.board_section_id &&
|
|
149
170
|
link == o.link &&
|
|
150
171
|
cover_image_url == o.cover_image_url &&
|
|
151
|
-
cover_image_key_frame_time == o.cover_image_key_frame_time
|
|
172
|
+
cover_image_key_frame_time == o.cover_image_key_frame_time &&
|
|
173
|
+
is_ai_generated == o.is_ai_generated
|
|
152
174
|
end
|
|
153
175
|
|
|
154
176
|
# @see the `==` method
|
|
@@ -160,7 +182,7 @@ module Zernio
|
|
|
160
182
|
# Calculates hash code according to all attributes.
|
|
161
183
|
# @return [Integer] Hash code
|
|
162
184
|
def hash
|
|
163
|
-
[title, board_id, link, cover_image_url, cover_image_key_frame_time].hash
|
|
185
|
+
[title, board_id, board_section_id, link, cover_image_url, cover_image_key_frame_time, is_ai_generated].hash
|
|
164
186
|
end
|
|
165
187
|
|
|
166
188
|
# Builds the object from hash
|
data/lib/zernio-sdk/version.rb
CHANGED
data/openapi.yaml
CHANGED
|
@@ -5947,6 +5947,9 @@ components:
|
|
|
5947
5947
|
boardId:
|
|
5948
5948
|
type: string
|
|
5949
5949
|
description: Target Pinterest board ID. If omitted, the first available board is used.
|
|
5950
|
+
boardSectionId:
|
|
5951
|
+
type: string
|
|
5952
|
+
description: 'Target section inside the board. Optional; the pin lands on the board itself when omitted. Pinterest rejects the pin if the section does not belong to boardId, so send both together.'
|
|
5950
5953
|
link:
|
|
5951
5954
|
type: string
|
|
5952
5955
|
format: uri
|
|
@@ -5958,6 +5961,10 @@ components:
|
|
|
5958
5961
|
coverImageKeyFrameTime:
|
|
5959
5962
|
type: integer
|
|
5960
5963
|
description: Optional key frame time in seconds for derived video cover
|
|
5964
|
+
isAiGenerated:
|
|
5965
|
+
type: boolean
|
|
5966
|
+
default: false
|
|
5967
|
+
description: 'When true, the Pin is created with Pinterest''s AI_MODIFIED disclosure (ai_disclosures), which shows an "AI modified" label. Applies to image and video Pins. Pinterest offers no "not AI" value, so false simply omits the disclosure. Pinterest may still label a Pin on its own detection.'
|
|
5961
5968
|
|
|
5962
5969
|
YouTubePlatformData:
|
|
5963
5970
|
type: object
|
|
@@ -39,6 +39,12 @@ describe Zernio::PinterestPlatformData do
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
+
describe 'test attribute "board_section_id"' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
42
48
|
describe 'test attribute "link"' do
|
|
43
49
|
it 'should work' do
|
|
44
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -57,4 +63,10 @@ describe Zernio::PinterestPlatformData do
|
|
|
57
63
|
end
|
|
58
64
|
end
|
|
59
65
|
|
|
66
|
+
describe 'test attribute "is_ai_generated"' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
60
72
|
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.759
|
|
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.759.gem
|
|
5438
5438
|
- zernio-sdk.gemspec
|
|
5439
5439
|
homepage: https://openapi-generator.tech
|
|
5440
5440
|
licenses:
|
data/zernio-sdk-0.0.758.gem
DELETED
|
Binary file
|