late-sdk 0.0.79 → 0.0.81
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/ThreadsPlatformData.md +2 -0
- data/lib/late-sdk/models/threads_platform_data.rb +39 -1
- data/lib/late-sdk/version.rb +1 -1
- data/openapi.yaml +5 -0
- data/spec/models/threads_platform_data_spec.rb +6 -0
- data/zernio-sdk-0.0.81.gem +0 -0
- metadata +3 -3
- data/zernio-sdk-0.0.79.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: 1d5a11b8aa4bfc6573f9f7425dda88a5339a40ccb4087d16cb1a8b95b64d8ec2
|
|
4
|
+
data.tar.gz: fd778a60713ae521418526d90f62f15600e13ed7050863c2af4167cb9b852fd2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7935023416ac4f624f54fe84e93a177d8da59f2134dabba3fbcbc2d86a0547cbfb22594ed7a321b58856b3647d9d66b61cdc0af1e0bb2687f53248e18b6a69b4
|
|
7
|
+
data.tar.gz: a37380a6b28b1ceb2b1ebd01c2221360729f1a104913efcb369c60e7868cead6193061f871a35820a4b01434f0ec6671965af28fabe4e564442e2576a8031748
|
data/docs/ThreadsPlatformData.md
CHANGED
|
@@ -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
|
data/lib/late-sdk/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.0.81
|
|
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-
|
|
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.
|
|
2143
|
+
- zernio-sdk-0.0.81.gem
|
|
2144
2144
|
homepage: https://openapi-generator.tech
|
|
2145
2145
|
licenses:
|
|
2146
2146
|
- Unlicense
|
data/zernio-sdk-0.0.79.gem
DELETED
|
Binary file
|