sunshine-conversations-client 12.8.0 → 13.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c3ae702f83f7eec72a2c00c415c6cae61d420df4
4
- data.tar.gz: f618a247c16ac18c4d2125fa0cbbe1d3f9a0afa2
2
+ SHA256:
3
+ metadata.gz: ecb6691f2ea9c64d17dbf2c306f2b16f6fe5657660b30e37085b5c2cc5962c08
4
+ data.tar.gz: 13faa2262096f42b890fc7cc5df992ad942a0b6c5bdf90163389217170f88138
5
5
  SHA512:
6
- metadata.gz: b1c7fb40279b34e4e343cdf57d6cf8d6abcec7035c214f553b96754cf3a6a10f70794ced2396c3954d1605ecaf69e031c95003099314ca737aaaf30e8b924b6e
7
- data.tar.gz: 1eda2a4f60049d85773ddcb009e9048dde0748c847ec83563d541d5aaa8e661a6c90dfeaf210cdc1044c14469f04b4110c38e4d6db478ca5cc190a4f30c8a1c5
6
+ metadata.gz: 7a618c43f6a9d27387c3a6e4dbd7127e4f9293fcbd9c3c88924824255b64a27f33c788ff6dda3f6c5f66e655b65e2eff176a23be065b8e78daee3061471da35b
7
+ data.tar.gz: 0534b757978258bd9bf8970ece88e534c218157ed4951e70b91a3ced498184000059ef4780b6564719834c0035c5a205776ecfc3ed5ef1cbf3e6e34f20500dc0
data/CHANGELOG_RB.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [13.0.0] - 2024-09-17
4
+
5
+ ### Added
6
+
7
+ - List devices response changed from clients to devices
8
+
3
9
  ## [12.8.0] - 2024-09-12
4
10
 
5
11
  ### Added
@@ -10,7 +16,7 @@
10
16
 
11
17
  ### Added
12
18
 
13
- - Added new `attachmentId` property on the `file` and `image` message content of the Messages API endpoints.
19
+ - Added new `attachmentId` property on the `file` and `image` message content of the Messages API endpoints.
14
20
 
15
21
  ## [12.6.0] - 2024-06-12
16
22
 
data/README.md CHANGED
@@ -5,7 +5,7 @@ SunshineConversationsClient - the Ruby gem for the Sunshine Conversations API
5
5
  This SDK is automatically generated by the [OpenAPI Generator Codegen](https://github.com/OpenAPITools/openapi-generator) project using the [Sunshine Conversations API spec](https://github.com/zendesk/sunshine-conversations-api-spec).
6
6
 
7
7
  - API version: 12.8.0
8
- - Package version: 12.8.0
8
+ - Package version: 13.0.0
9
9
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
10
10
 
11
11
  ## Sunshine Conversations API Version
@@ -32,16 +32,16 @@ gem build sunshine-conversations-client.gemspec
32
32
  Then either install the gem locally:
33
33
 
34
34
  ```shell
35
- gem install ./sunshine-conversations-client-12.8.0.gem
35
+ gem install ./sunshine-conversations-client-13.0.0.gem
36
36
  ```
37
37
 
38
- (for development, run `gem install --dev ./sunshine-conversations-client-12.8.0.gem` to install the development dependencies)
38
+ (for development, run `gem install --dev ./sunshine-conversations-client-13.0.0.gem` to install the development dependencies)
39
39
 
40
40
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
41
41
 
42
42
  Finally add this to the Gemfile:
43
43
 
44
- gem 'sunshine-conversations-client', '~> 12.8.0'
44
+ gem 'sunshine-conversations-client', '~> 13.0.0'
45
45
 
46
46
  ### Install from Git
47
47
 
@@ -311,6 +311,7 @@ Class | Method | HTTP request | Description
311
311
  - [SunshineConversationsClient::DefaultResponderId](docs/DefaultResponderId.md)
312
312
  - [SunshineConversationsClient::Destination](docs/Destination.md)
313
313
  - [SunshineConversationsClient::Device](docs/Device.md)
314
+ - [SunshineConversationsClient::DeviceListResponse](docs/DeviceListResponse.md)
314
315
  - [SunshineConversationsClient::DeviceResponse](docs/DeviceResponse.md)
315
316
  - [SunshineConversationsClient::EventSubSchema](docs/EventSubSchema.md)
316
317
  - [SunshineConversationsClient::ExtraChannelOptions](docs/ExtraChannelOptions.md)
@@ -0,0 +1,17 @@
1
+ # SunshineConversationsClient::DeviceListResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **devices** | [**Array<Device>**](Device.md) | List of returned devices. | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'SunshineConversationsClient'
13
+
14
+ instance = SunshineConversationsClient::DeviceListResponse.new(devices: null)
15
+ ```
16
+
17
+
data/docs/DevicesApi.md CHANGED
@@ -73,7 +73,7 @@ Name | Type | Description | Notes
73
73
 
74
74
  ## list_devices
75
75
 
76
- > ClientListResponse list_devices(app_id, user_id_or_external_id)
76
+ > DeviceListResponse list_devices(app_id, user_id_or_external_id)
77
77
 
78
78
  List Devices
79
79
 
@@ -119,7 +119,7 @@ Name | Type | Description | Notes
119
119
 
120
120
  ### Return type
121
121
 
122
- [**ClientListResponse**](ClientListResponse.md)
122
+ [**DeviceListResponse**](DeviceListResponse.md)
123
123
 
124
124
  ### Authorization
125
125
 
@@ -95,7 +95,7 @@ module SunshineConversationsClient
95
95
  # @param app_id [String] Identifies the app.
96
96
  # @param user_id_or_external_id [String] The user's id or externalId.
97
97
  # @param [Hash] opts the optional parameters
98
- # @return [ClientListResponse]
98
+ # @return [DeviceListResponse]
99
99
  def list_devices(app_id, user_id_or_external_id, opts = {})
100
100
  data, _status_code, _headers = list_devices_with_http_info(app_id, user_id_or_external_id, opts)
101
101
  data
@@ -106,7 +106,7 @@ module SunshineConversationsClient
106
106
  # @param app_id [String] Identifies the app.
107
107
  # @param user_id_or_external_id [String] The user's id or externalId.
108
108
  # @param [Hash] opts the optional parameters
109
- # @return [Array<(ClientListResponse, Integer, Hash)>] ClientListResponse data, response status code and response headers
109
+ # @return [Array<(DeviceListResponse, Integer, Hash)>] DeviceListResponse data, response status code and response headers
110
110
  def list_devices_with_http_info(app_id, user_id_or_external_id, opts = {})
111
111
  if @api_client.config.debugging
112
112
  @api_client.config.logger.debug 'Calling API: DevicesApi.list_devices ...'
@@ -137,7 +137,7 @@ module SunshineConversationsClient
137
137
  post_body = opts[:body]
138
138
 
139
139
  # return_type
140
- return_type = opts[:return_type] || 'ClientListResponse'
140
+ return_type = opts[:return_type] || 'DeviceListResponse'
141
141
 
142
142
  # auth_names
143
143
  auth_names = opts[:auth_names] || ['basicAuth', 'bearerAuth']
@@ -0,0 +1,203 @@
1
+ =begin
2
+ #Sunshine Conversations API
3
+
4
+ The version of the OpenAPI document: 12.8.0
5
+
6
+ Generated by: https://openapi-generator.tech
7
+ OpenAPI Generator version: 4.3.1
8
+ =end
9
+
10
+ require 'date'
11
+
12
+ module SunshineConversationsClient
13
+ class DeviceListResponse
14
+ # List of returned devices.
15
+ attr_accessor :devices
16
+
17
+ # Attribute mapping from ruby-style variable name to JSON key.
18
+ def self.attribute_map
19
+ {
20
+ :'devices' => :'devices'
21
+ }
22
+ end
23
+
24
+ # Attribute type mapping.
25
+ def self.openapi_types
26
+ {
27
+ :'devices' => :'Array<Device>'
28
+ }
29
+ end
30
+
31
+ # List of attributes with nullable: true
32
+ def self.openapi_nullable
33
+ Set.new([
34
+ ])
35
+ end
36
+
37
+ # Initializes the object
38
+ # @param [Hash] attributes Model attributes in the form of hash
39
+ def initialize(attributes = {})
40
+ if (!attributes.is_a?(Hash))
41
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SunshineConversationsClient::DeviceListResponse` initialize method"
42
+ end
43
+
44
+ # check to see if the attribute exists and convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h|
46
+ if (!self.class.attribute_map.key?(k.to_sym))
47
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SunshineConversationsClient::DeviceListResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
48
+ end
49
+ h[k.to_sym] = v
50
+ }
51
+
52
+ if attributes.key?(:'devices')
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(o)
72
+ return true if self.equal?(o)
73
+ self.class == o.class &&
74
+ devices == o.devices
75
+ end
76
+
77
+ # @see the `==` method
78
+ # @param [Object] Object to be compared
79
+ def eql?(o)
80
+ self == o
81
+ end
82
+
83
+ # Calculates hash code according to all attributes.
84
+ # @return [Integer] Hash code
85
+ def hash
86
+ [devices].hash
87
+ end
88
+
89
+ # Builds the object from hash
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ # @return [Object] Returns the model itself
92
+ def self.build_from_hash(attributes)
93
+ new.build_from_hash(attributes)
94
+ end
95
+
96
+ # Builds the object from hash
97
+ # @param [Hash] attributes Model attributes in the form of hash
98
+ # @return [Object] Returns the model itself
99
+ def build_from_hash(attributes)
100
+ return nil unless attributes.is_a?(Hash)
101
+ self.class.openapi_types.each_pair do |key, type|
102
+ if type =~ /\AArray<(.*)>/i
103
+ # check to ensure the input is an array given that the attribute
104
+ # is documented as an array but the input is not
105
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
106
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
107
+ end
108
+ elsif !attributes[self.class.attribute_map[key]].nil?
109
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
110
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
111
+ end
112
+
113
+ self
114
+ end
115
+
116
+ # Deserializes the data based on type
117
+ # @param string type Data type
118
+ # @param string value Value to be deserialized
119
+ # @return [Object] Deserialized data
120
+ def _deserialize(type, value)
121
+ case type.to_sym
122
+ when :DateTime
123
+ DateTime.parse(value)
124
+ when :Date
125
+ Date.parse(value)
126
+ when :String
127
+ value.to_s
128
+ when :Integer
129
+ value.to_i
130
+ when :Float
131
+ value.to_f
132
+ when :Boolean
133
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
134
+ true
135
+ else
136
+ false
137
+ end
138
+ when :Object
139
+ # generic object (usually a Hash), return directly
140
+ value
141
+ when /\AArray<(?<inner_type>.+)>\z/
142
+ inner_type = Regexp.last_match[:inner_type]
143
+ value.map { |v| _deserialize(inner_type, v) }
144
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
145
+ k_type = Regexp.last_match[:k_type]
146
+ v_type = Regexp.last_match[:v_type]
147
+ {}.tap do |hash|
148
+ value.each do |k, v|
149
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
150
+ end
151
+ end
152
+ else # model
153
+ SunshineConversationsClient.const_get(type).build_from_hash(value)
154
+ end
155
+ end
156
+
157
+ # Returns the string representation of the object
158
+ # @return [String] String presentation of the object
159
+ def to_s
160
+ to_hash.to_s
161
+ end
162
+
163
+ # to_body is an alias to to_hash (backward compatibility)
164
+ # @return [Hash] Returns the object in the form of hash
165
+ def to_body
166
+ to_hash
167
+ end
168
+
169
+ # Returns the object in the form of hash
170
+ # @return [Hash] Returns the object in the form of hash
171
+ def to_hash
172
+ hash = {}
173
+ self.class.attribute_map.each_pair do |attr, param|
174
+ value = self.send(attr)
175
+ if value.nil?
176
+ is_nullable = self.class.openapi_nullable.include?(attr)
177
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
178
+ end
179
+
180
+ hash[param] = _to_hash(value)
181
+ end
182
+ hash
183
+ end
184
+
185
+ # Outputs non-array value in the form of hash
186
+ # For object, use to_hash. Otherwise, just return the value
187
+ # @param [Object] value Any valid value
188
+ # @return [Hash] Returns the value in the form of hash
189
+ def _to_hash(value)
190
+ if value.is_a?(Array)
191
+ value.compact.map { |v| _to_hash(v) }
192
+ elsif value.is_a?(Hash)
193
+ {}.tap do |hash|
194
+ value.each { |k, v| hash[k] = _to_hash(v) }
195
+ end
196
+ elsif value.respond_to? :to_hash
197
+ value.to_hash
198
+ else
199
+ value
200
+ end
201
+ end
202
+ end
203
+ end
@@ -8,5 +8,5 @@ OpenAPI Generator version: 4.3.1
8
8
  =end
9
9
 
10
10
  module SunshineConversationsClient
11
- VERSION = '12.8.0'
11
+ VERSION = '13.0.0'
12
12
  end
@@ -135,6 +135,7 @@ require 'sunshine-conversations-client/models/default_responder_default_responde
135
135
  require 'sunshine-conversations-client/models/default_responder_id'
136
136
  require 'sunshine-conversations-client/models/destination'
137
137
  require 'sunshine-conversations-client/models/device'
138
+ require 'sunshine-conversations-client/models/device_list_response'
138
139
  require 'sunshine-conversations-client/models/device_response'
139
140
  require 'sunshine-conversations-client/models/event_sub_schema'
140
141
  require 'sunshine-conversations-client/models/extra_channel_options'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunshine-conversations-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.8.0
4
+ version: 13.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunshine Conversations
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-12 00:00:00.000000000 Z
11
+ date: 2024-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -200,6 +200,7 @@ files:
200
200
  - docs/DefaultResponderId.md
201
201
  - docs/Destination.md
202
202
  - docs/Device.md
203
+ - docs/DeviceListResponse.md
203
204
  - docs/DeviceResponse.md
204
205
  - docs/DevicesApi.md
205
206
  - docs/EventSubSchema.md
@@ -521,6 +522,7 @@ files:
521
522
  - lib/sunshine-conversations-client/models/default_responder_id.rb
522
523
  - lib/sunshine-conversations-client/models/destination.rb
523
524
  - lib/sunshine-conversations-client/models/device.rb
525
+ - lib/sunshine-conversations-client/models/device_list_response.rb
524
526
  - lib/sunshine-conversations-client/models/device_response.rb
525
527
  - lib/sunshine-conversations-client/models/event_sub_schema.rb
526
528
  - lib/sunshine-conversations-client/models/extra_channel_options.rb
@@ -724,8 +726,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
724
726
  - !ruby/object:Gem::Version
725
727
  version: '0'
726
728
  requirements: []
727
- rubyforge_project:
728
- rubygems_version: 2.6.14.1
729
+ rubygems_version: 3.3.27
729
730
  signing_key:
730
731
  specification_version: 4
731
732
  summary: Sunshine Conversations API Ruby Gem