late-sdk 0.0.758 → 0.0.760

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab8c3f578263588881cb0198cef97d18087f7e455a0455d96d971eb15e33090f
4
- data.tar.gz: d7fd196d1b63f751eb67504654b82aa0ed81803eddabbf674bca210de91d0016
3
+ metadata.gz: 47d21fb7617eadaece134965d19bff084764850b0fcc4648084dc2622033b13d
4
+ data.tar.gz: 39367256c8932bf0e86b7b347433a0ba6317816c5e654eebce016c9b00a72314
5
5
  SHA512:
6
- metadata.gz: 890b72638a41250081abaffb94e1da0e7d96ee1d5545727697a470ed6304f9734371fcc30a734e44491af575bd4a21d8c03b24daafdb3e25df119b7dfde0db24
7
- data.tar.gz: 0fd5ddf18c9d0b5efba5070d625418332e6fe8c281e377ca06c3b5bd2d5d553b472f87dbe6dcbc3bcc24ef0f53b73880cf5cd12d89322c321fe8923e3f7f52ad
6
+ metadata.gz: f0b53562a29611b9da4d7e4ec3b97e06b6100775eece80c6338e65f6bdd1573ea5dde353b127d9555e6d833ca375a64c0c4622990df0c46a0a99409077976ca3
7
+ data.tar.gz: e84013f9d9505664aaf45e6fd5cabc9bd0ed7e05f50e52ed96bd4ddcbeaafc0194474c4b9394eac0e57761ed7da46622b39fd1190bf2cce86a76298fd0f020dd
@@ -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
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.758'
14
+ VERSION = '0.0.760'
15
15
  end
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.758
4
+ version: 0.0.760
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.758.gem
5437
+ - zernio-sdk-0.0.760.gem
5438
5438
  - zernio-sdk.gemspec
5439
5439
  homepage: https://openapi-generator.tech
5440
5440
  licenses:
Binary file