late-sdk 0.0.42 → 0.0.43

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: d5b9bcbbef442ba4d43cd3211130692445c0efb14552e70cb00c78e38085e73d
4
- data.tar.gz: 40449d64c1646d03eb98ea8575f2325f43b0c51b3fe51525669789805d9765bf
3
+ metadata.gz: 0673dd08e6e559a42cb3b0f2d9472d097da5754ac2e8045299c7850f7fcc2f43
4
+ data.tar.gz: e8a22c094483b386eef7330c26c54b56494b50609582da0c33f891dd7ccc29cb
5
5
  SHA512:
6
- metadata.gz: 040de4afdaee6f735a52c8f56f110484b503a9ca84c10b0ad34a0d0d015aa2a2302e397676b8175859b1bac669fce4214cb18a0c429c2bb47380f5cf7b520249
7
- data.tar.gz: 86b6970558b57e94185ecd3f07259b24fcb16571eb84ce37d38567fd6a7153c66bdc56d9ef5f1cf7078dcb0fc07b040f17ecbd8bb1f870906b1123f34c077ae6
6
+ metadata.gz: ef3df64853bfcc08838a2c674d73f4e49be7415e65b2255be8970abbe1ae77c9fa5081e51c11cad7c896d2b032f75a88b090bae54cf9620e64ada952ecc60f5f
7
+ data.tar.gz: 1bdfb9a48adb8188bd5adf8391dc3574d0622102ee9a043d2a64d12307fb131b1bf9fc2a420ffee5dce64c6e3bc773461f9ee4d9dd8bc5724ce92ba5f6e96c8c
data/README.md CHANGED
@@ -16,41 +16,18 @@ For more information, please visit [https://getlate.dev](https://getlate.dev)
16
16
 
17
17
  ## Installation
18
18
 
19
- ### Build a gem
19
+ Install via RubyGems:
20
20
 
21
- To build the Ruby code into a gem:
22
-
23
- ```shell
24
- gem build late-sdk.gemspec
21
+ ```bash
22
+ gem install late-sdk
25
23
  ```
26
24
 
27
- Then either install the gem locally:
25
+ Or add it to your Gemfile:
28
26
 
29
- ```shell
30
- gem install ./late-sdk-0.1.0.gem
27
+ ```ruby
28
+ gem "late-sdk"
31
29
  ```
32
30
 
33
- (for development, run `gem install --dev ./late-sdk-0.1.0.gem` to install the development dependencies)
34
-
35
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
36
-
37
- Finally add this to the Gemfile:
38
-
39
- gem 'late-sdk', '~> 0.1.0'
40
-
41
- ### Install from Git
42
-
43
- If the Ruby gem is hosted at a git repository: https://github.com/getlate-dev/late-ruby, then add the following in the Gemfile:
44
-
45
- gem 'late-sdk', :git => 'https://github.com/getlate-dev/late-ruby.git'
46
-
47
- ### Include the Ruby code directly
48
-
49
- Include the Ruby code directly using `-I` as follows:
50
-
51
- ```shell
52
- ruby -Ilib script.rb
53
- ```
54
31
 
55
32
  ## Getting Started
56
33
 
@@ -4,7 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **reply_settings** | **String** | Controls who can reply to the tweet. \"following\" allows only people you follow, \"mentionedUsers\" allows only mentioned users, \"subscribers\" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only. | [optional] |
7
+ | **reply_to_tweet_id** | **String** | ID of an existing tweet to reply to. The published tweet will appear as a reply in that tweet's thread. For threads, only the first tweet replies to the target; subsequent tweets chain normally. | [optional] |
8
+ | **reply_settings** | **String** | Controls who can reply to the tweet. \"following\" allows only people you follow, \"mentionedUsers\" allows only mentioned users, \"subscribers\" allows only subscribers, \"verified\" allows only verified users. Omit for default (everyone can reply). For threads, applies to the first tweet only. Cannot be combined with replyToTweetId. | [optional] |
8
9
  | **thread_items** | [**Array<TwitterPlatformDataThreadItemsInner>**](TwitterPlatformDataThreadItemsInner.md) | Sequence of tweets in a thread. First item is the root tweet. | [optional] |
9
10
 
10
11
  ## Example
@@ -13,6 +14,7 @@
13
14
  require 'late-sdk'
14
15
 
15
16
  instance = Late::TwitterPlatformData.new(
17
+ reply_to_tweet_id: null,
16
18
  reply_settings: null,
17
19
  thread_items: null
18
20
  )
@@ -15,7 +15,10 @@ require 'time'
15
15
 
16
16
  module Late
17
17
  class TwitterPlatformData < ApiModelBase
18
- # Controls who can reply to the tweet. \"following\" allows only people you follow, \"mentionedUsers\" allows only mentioned users, \"subscribers\" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only.
18
+ # ID of an existing tweet to reply to. The published tweet will appear as a reply in that tweet's thread. For threads, only the first tweet replies to the target; subsequent tweets chain normally.
19
+ attr_accessor :reply_to_tweet_id
20
+
21
+ # Controls who can reply to the tweet. \"following\" allows only people you follow, \"mentionedUsers\" allows only mentioned users, \"subscribers\" allows only subscribers, \"verified\" allows only verified users. Omit for default (everyone can reply). For threads, applies to the first tweet only. Cannot be combined with replyToTweetId.
19
22
  attr_accessor :reply_settings
20
23
 
21
24
  # Sequence of tweets in a thread. First item is the root tweet.
@@ -46,6 +49,7 @@ module Late
46
49
  # Attribute mapping from ruby-style variable name to JSON key.
47
50
  def self.attribute_map
48
51
  {
52
+ :'reply_to_tweet_id' => :'replyToTweetId',
49
53
  :'reply_settings' => :'replySettings',
50
54
  :'thread_items' => :'threadItems'
51
55
  }
@@ -64,6 +68,7 @@ module Late
64
68
  # Attribute type mapping.
65
69
  def self.openapi_types
66
70
  {
71
+ :'reply_to_tweet_id' => :'String',
67
72
  :'reply_settings' => :'String',
68
73
  :'thread_items' => :'Array<TwitterPlatformDataThreadItemsInner>'
69
74
  }
@@ -91,6 +96,10 @@ module Late
91
96
  h[k.to_sym] = v
92
97
  }
93
98
 
99
+ if attributes.key?(:'reply_to_tweet_id')
100
+ self.reply_to_tweet_id = attributes[:'reply_to_tweet_id']
101
+ end
102
+
94
103
  if attributes.key?(:'reply_settings')
95
104
  self.reply_settings = attributes[:'reply_settings']
96
105
  end
@@ -114,7 +123,7 @@ module Late
114
123
  # @return true if the model is valid
115
124
  def valid?
116
125
  warn '[DEPRECATED] the `valid?` method is obsolete'
117
- reply_settings_validator = EnumAttributeValidator.new('String', ["following", "mentionedUsers", "subscribers"])
126
+ reply_settings_validator = EnumAttributeValidator.new('String', ["following", "mentionedUsers", "subscribers", "verified"])
118
127
  return false unless reply_settings_validator.valid?(@reply_settings)
119
128
  true
120
129
  end
@@ -122,7 +131,7 @@ module Late
122
131
  # Custom attribute writer method checking allowed values (enum).
123
132
  # @param [Object] reply_settings Object to be assigned
124
133
  def reply_settings=(reply_settings)
125
- validator = EnumAttributeValidator.new('String', ["following", "mentionedUsers", "subscribers"])
134
+ validator = EnumAttributeValidator.new('String', ["following", "mentionedUsers", "subscribers", "verified"])
126
135
  unless validator.valid?(reply_settings)
127
136
  fail ArgumentError, "invalid value for \"reply_settings\", must be one of #{validator.allowable_values}."
128
137
  end
@@ -134,6 +143,7 @@ module Late
134
143
  def ==(o)
135
144
  return true if self.equal?(o)
136
145
  self.class == o.class &&
146
+ reply_to_tweet_id == o.reply_to_tweet_id &&
137
147
  reply_settings == o.reply_settings &&
138
148
  thread_items == o.thread_items
139
149
  end
@@ -147,7 +157,7 @@ module Late
147
157
  # Calculates hash code according to all attributes.
148
158
  # @return [Integer] Hash code
149
159
  def hash
150
- [reply_settings, thread_items].hash
160
+ [reply_to_tweet_id, reply_settings, thread_items].hash
151
161
  end
152
162
 
153
163
  # 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.42'
14
+ VERSION = '0.0.43'
15
15
  end
data/openapi.yaml CHANGED
@@ -1222,10 +1222,13 @@ components:
1222
1222
  TwitterPlatformData:
1223
1223
  type: object
1224
1224
  properties:
1225
+ replyToTweetId:
1226
+ type: string
1227
+ description: ID of an existing tweet to reply to. The published tweet will appear as a reply in that tweet's thread. For threads, only the first tweet replies to the target; subsequent tweets chain normally.
1225
1228
  replySettings:
1226
1229
  type: string
1227
- enum: [following, mentionedUsers, subscribers]
1228
- description: Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers. Omit for default (everyone can reply). For threads, applies to the first tweet only.
1230
+ enum: [following, mentionedUsers, subscribers, verified]
1231
+ description: Controls who can reply to the tweet. "following" allows only people you follow, "mentionedUsers" allows only mentioned users, "subscribers" allows only subscribers, "verified" allows only verified users. Omit for default (everyone can reply). For threads, applies to the first tweet only. Cannot be combined with replyToTweetId.
1229
1232
  threadItems:
1230
1233
  type: array
1231
1234
  description: Sequence of tweets in a thread. First item is the root tweet.
@@ -27,10 +27,16 @@ describe Late::TwitterPlatformData do
27
27
  end
28
28
  end
29
29
 
30
+ describe 'test attribute "reply_to_tweet_id"' 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 "reply_settings"' do
31
37
  it 'should work' do
32
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["following", "mentionedUsers", "subscribers"])
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["following", "mentionedUsers", "subscribers", "verified"])
34
40
  # validator.allowable_values.each do |value|
35
41
  # expect { instance.reply_settings = value }.not_to raise_error
36
42
  # end
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.42
4
+ version: 0.0.43
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-08 00:00:00.000000000 Z
11
+ date: 2026-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus