late-sdk 0.0.79 → 0.0.80

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: b0435636af9a22b98a658202e40361bb2bbd1a73aad1a89f5331b955fecbd077
4
- data.tar.gz: be6ff0e5bc225466517416f1085dd11a16c06a32ec39bec691147220dd747ed5
3
+ metadata.gz: '08152f98f7d6921d20aad95decdec59552c5ed2bd568aef289e69485433a81e9'
4
+ data.tar.gz: 45368bae9e17d9e772dc0cea40e0664ab8907c48375e16cc219e19d604ee76d8
5
5
  SHA512:
6
- metadata.gz: a1c36e08fb873ed6f362c5bd249765ce5943f4ea2bff8d0946920afab536fd83652f1bfc7e96c3091c4ff8cb372025daf805e465c00a80f96decda6cf3ed63d1
7
- data.tar.gz: e46cffe3b164bfa7ff23dfd736ef9445e2aca4bee0422d86b37f68d4fed7faf475851a16eb689a1216fd5b248cd9407f61f2d4d749f9eee4d77789ab4faf716e
6
+ metadata.gz: 5408661abf0b876fa230cb32698a40f233bac3caae72c8754b8645800388867e40241875fe834a5f18d205e25dc483e41ff1ea8450bd61ba1a54246a01707ea3
7
+ data.tar.gz: 89ce23328293e2da3e070a09c743ad78edfe19b6fc63d9e4d259990ecc7210e6411295284a658ef763f52977f048701377480474f2400e8d1e5a5ad764185185
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **topic_tag** | **String** | Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided. | [optional] |
7
8
  | **thread_items** | [**Array<TwitterPlatformDataThreadItemsInner>**](TwitterPlatformDataThreadItemsInner.md) | Sequence of posts in a Threads thread (root then replies in order). | [optional] |
8
9
 
9
10
  ## Example
@@ -12,6 +13,7 @@
12
13
  require 'late-sdk'
13
14
 
14
15
  instance = Late::ThreadsPlatformData.new(
16
+ topic_tag: null,
15
17
  thread_items: null
16
18
  )
17
19
  ```
@@ -16,12 +16,16 @@ require 'time'
16
16
  module Late
17
17
  # Up to 10 images per carousel (no videos). Videos must be H.264/AAC MP4, max 5 min. Images JPEG/PNG, max 8 MB. Use threadItems for reply chains.
18
18
  class ThreadsPlatformData < ApiModelBase
19
+ # Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided.
20
+ attr_accessor :topic_tag
21
+
19
22
  # Sequence of posts in a Threads thread (root then replies in order).
20
23
  attr_accessor :thread_items
21
24
 
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
23
26
  def self.attribute_map
24
27
  {
28
+ :'topic_tag' => :'topic_tag',
25
29
  :'thread_items' => :'threadItems'
26
30
  }
27
31
  end
@@ -39,6 +43,7 @@ module Late
39
43
  # Attribute type mapping.
40
44
  def self.openapi_types
41
45
  {
46
+ :'topic_tag' => :'String',
42
47
  :'thread_items' => :'Array<TwitterPlatformDataThreadItemsInner>'
43
48
  }
44
49
  end
@@ -65,6 +70,10 @@ module Late
65
70
  h[k.to_sym] = v
66
71
  }
67
72
 
73
+ if attributes.key?(:'topic_tag')
74
+ self.topic_tag = attributes[:'topic_tag']
75
+ end
76
+
68
77
  if attributes.key?(:'thread_items')
69
78
  if (value = attributes[:'thread_items']).is_a?(Array)
70
79
  self.thread_items = value
@@ -77,6 +86,14 @@ module Late
77
86
  def list_invalid_properties
78
87
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
79
88
  invalid_properties = Array.new
89
+ if !@topic_tag.nil? && @topic_tag.to_s.length > 50
90
+ invalid_properties.push('invalid value for "topic_tag", the character length must be smaller than or equal to 50.')
91
+ end
92
+
93
+ if !@topic_tag.nil? && @topic_tag.to_s.length < 1
94
+ invalid_properties.push('invalid value for "topic_tag", the character length must be greater than or equal to 1.')
95
+ end
96
+
80
97
  invalid_properties
81
98
  end
82
99
 
@@ -84,14 +101,35 @@ module Late
84
101
  # @return true if the model is valid
85
102
  def valid?
86
103
  warn '[DEPRECATED] the `valid?` method is obsolete'
104
+ return false if !@topic_tag.nil? && @topic_tag.to_s.length > 50
105
+ return false if !@topic_tag.nil? && @topic_tag.to_s.length < 1
87
106
  true
88
107
  end
89
108
 
109
+ # Custom attribute writer method with validation
110
+ # @param [Object] topic_tag Value to be assigned
111
+ def topic_tag=(topic_tag)
112
+ if topic_tag.nil?
113
+ fail ArgumentError, 'topic_tag cannot be nil'
114
+ end
115
+
116
+ if topic_tag.to_s.length > 50
117
+ fail ArgumentError, 'invalid value for "topic_tag", the character length must be smaller than or equal to 50.'
118
+ end
119
+
120
+ if topic_tag.to_s.length < 1
121
+ fail ArgumentError, 'invalid value for "topic_tag", the character length must be greater than or equal to 1.'
122
+ end
123
+
124
+ @topic_tag = topic_tag
125
+ end
126
+
90
127
  # Checks equality by comparing each attribute.
91
128
  # @param [Object] Object to be compared
92
129
  def ==(o)
93
130
  return true if self.equal?(o)
94
131
  self.class == o.class &&
132
+ topic_tag == o.topic_tag &&
95
133
  thread_items == o.thread_items
96
134
  end
97
135
 
@@ -104,7 +142,7 @@ module Late
104
142
  # Calculates hash code according to all attributes.
105
143
  # @return [Integer] Hash code
106
144
  def hash
107
- [thread_items].hash
145
+ [topic_tag, thread_items].hash
108
146
  end
109
147
 
110
148
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Late
14
- VERSION = '0.0.79'
14
+ VERSION = '0.0.80'
15
15
  end
data/openapi.yaml CHANGED
@@ -1397,6 +1397,11 @@ components:
1397
1397
  ThreadsPlatformData:
1398
1398
  type: object
1399
1399
  properties:
1400
+ topic_tag:
1401
+ type: string
1402
+ minLength: 1
1403
+ maxLength: 50
1404
+ description: Topic tag for post categorization and discoverability on Threads. Must be 1-50 characters, cannot contain periods (.) or ampersands (&). Overrides auto-extraction from content hashtags when provided.
1400
1405
  threadItems:
1401
1406
  type: array
1402
1407
  description: Sequence of posts in a Threads thread (root then replies in order).
@@ -27,6 +27,12 @@ describe Late::ThreadsPlatformData do
27
27
  end
28
28
  end
29
29
 
30
+ describe 'test attribute "topic_tag"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
30
36
  describe 'test attribute "thread_items"' do
31
37
  it 'should work' do
32
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.79
4
+ version: 0.0.80
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-23 00:00:00.000000000 Z
11
+ date: 2026-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -2140,7 +2140,7 @@ files:
2140
2140
  - spec/models/you_tube_scope_missing_response_scope_status_spec.rb
2141
2141
  - spec/models/you_tube_scope_missing_response_spec.rb
2142
2142
  - spec/spec_helper.rb
2143
- - zernio-sdk-0.0.79.gem
2143
+ - zernio-sdk-0.0.80.gem
2144
2144
  homepage: https://openapi-generator.tech
2145
2145
  licenses:
2146
2146
  - Unlicense
Binary file