composio 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +462 -4
  4. data/lib/composio/api/actions_api.rb +107 -0
  5. data/lib/composio/api/analytics_api.rb +181 -0
  6. data/lib/composio/api/apps_api.rb +257 -0
  7. data/lib/composio/api/event_logs_api.rb +427 -0
  8. data/lib/composio/api/logs_api.rb +127 -9
  9. data/lib/composio/api/payment_api.rb +430 -0
  10. data/lib/composio/models/action_analytics_dto.rb +250 -0
  11. data/lib/composio/models/action_by_app_dto.rb +237 -0
  12. data/lib/composio/models/action_by_status_dto.rb +237 -0
  13. data/lib/composio/models/action_get_nla_inputs_req_dto.rb +220 -0
  14. data/lib/composio/models/analytics_data_req_dto.rb +250 -0
  15. data/lib/composio/models/analytics_data_res_dto.rb +282 -0
  16. data/lib/composio/models/analytics_entity_data_dto.rb +257 -0
  17. data/lib/composio/models/api_key_res_dto.rb +61 -4
  18. data/lib/composio/models/app_name_count_dto.rb +267 -0
  19. data/lib/composio/models/client_unique_user_id_count_dto.rb +237 -0
  20. data/lib/composio/models/connected_account_response_dto.rb +10 -1
  21. data/lib/composio/models/connection_params.rb +22 -6
  22. data/lib/composio/models/connection_with_app_data.rb +22 -6
  23. data/lib/composio/models/connector_list_item_dto.rb +16 -1
  24. data/lib/composio/models/create_checkout_session_req_dto.rb +220 -0
  25. data/lib/composio/models/entity_query_req_dto.rb +216 -0
  26. data/lib/composio/models/fetch_query_dto.rb +278 -0
  27. data/lib/composio/models/get_connector_list_res_dto.rb +0 -1
  28. data/lib/composio/models/get_logs_dto.rb +10 -10
  29. data/lib/composio/models/{job_status.rb → get_logs_dto_status.rb} +6 -6
  30. data/lib/composio/models/ingest_data_dto.rb +298 -0
  31. data/lib/composio/models/ingest_data_response_dto.rb +220 -0
  32. data/lib/composio/models/integrations_with_counts_dto.rb +297 -0
  33. data/lib/composio/models/invite_member_req_dto.rb +14 -4
  34. data/lib/composio/models/last_time_period.rb +40 -0
  35. data/lib/composio/models/member_info_res_dto.rb +324 -0
  36. data/lib/composio/models/{connection_with_app_data_created_at.rb → member_info_res_dto_created_at.rb} +1 -1
  37. data/lib/composio/models/member_res_dto.rb +16 -1
  38. data/lib/composio/models/member_res_dto_role.rb +36 -0
  39. data/lib/composio/models/open_api_spec_list_res_dto.rb +17 -74
  40. data/lib/composio/models/plan.rb +38 -0
  41. data/lib/composio/models/role.rb +36 -0
  42. data/lib/composio/models/state.rb +41 -0
  43. data/lib/composio/models/status.rb +7 -4
  44. data/lib/composio/models/t_connection_count_dto.rb +236 -0
  45. data/lib/composio/models/time_period_req_dto.rb +216 -0
  46. data/lib/composio/models/top_entities_res_dto.rb +223 -0
  47. data/lib/composio/models/update_member_req_dto.rb +236 -0
  48. data/lib/composio/models/update_member_req_dto_role.rb +36 -0
  49. data/lib/composio/models/webhook_req_dto.rb +221 -0
  50. data/lib/composio/models/webhook_secret_res_dto.rb +221 -0
  51. data/lib/composio/version.rb +1 -1
  52. data/lib/composio.rb +39 -2
  53. data/spec/api/actions_api_spec.rb +13 -0
  54. data/spec/api/analytics_api_spec.rb +51 -0
  55. data/spec/api/apps_api_spec.rb +34 -0
  56. data/spec/api/event_logs_api_spec.rb +83 -0
  57. data/spec/api/logs_api_spec.rb +13 -1
  58. data/spec/api/payment_api_spec.rb +83 -0
  59. data/spec/models/action_analytics_dto_spec.rb +40 -0
  60. data/spec/models/action_by_app_dto_spec.rb +34 -0
  61. data/spec/models/action_by_status_dto_spec.rb +34 -0
  62. data/spec/models/action_get_nla_inputs_req_dto_spec.rb +28 -0
  63. data/spec/models/analytics_data_req_dto_spec.rb +32 -0
  64. data/spec/models/analytics_data_res_dto_spec.rb +52 -0
  65. data/spec/models/analytics_entity_data_dto_spec.rb +40 -0
  66. data/spec/models/api_key_res_dto_spec.rb +18 -0
  67. data/spec/models/app_name_count_dto_spec.rb +46 -0
  68. data/spec/models/client_unique_user_id_count_dto_spec.rb +34 -0
  69. data/spec/models/connected_account_response_dto_spec.rb +6 -0
  70. data/spec/models/connection_params_spec.rb +6 -0
  71. data/spec/models/connection_with_app_data_spec.rb +6 -0
  72. data/spec/models/connector_list_item_dto_spec.rb +6 -0
  73. data/spec/models/create_checkout_session_req_dto_spec.rb +28 -0
  74. data/spec/models/entity_query_req_dto_spec.rb +28 -0
  75. data/spec/models/fetch_query_dto_spec.rb +34 -0
  76. data/spec/models/get_logs_dto_spec.rb +1 -1
  77. data/spec/models/get_logs_dto_status_spec.rb +22 -0
  78. data/spec/models/ingest_data_dto_spec.rb +64 -0
  79. data/spec/models/ingest_data_response_dto_spec.rb +28 -0
  80. data/spec/models/integrations_with_counts_dto_spec.rb +58 -0
  81. data/spec/models/invite_member_req_dto_spec.rb +6 -0
  82. data/spec/models/last_time_period_spec.rb +22 -0
  83. data/spec/models/{connection_with_app_data_created_at_spec.rb → member_info_res_dto_created_at_spec.rb} +2 -2
  84. data/spec/models/member_info_res_dto_spec.rb +76 -0
  85. data/spec/models/member_res_dto_role_spec.rb +22 -0
  86. data/spec/models/member_res_dto_spec.rb +6 -0
  87. data/spec/models/open_api_spec_list_res_dto_spec.rb +5 -29
  88. data/spec/models/plan_spec.rb +22 -0
  89. data/spec/models/role_spec.rb +22 -0
  90. data/spec/models/state_spec.rb +22 -0
  91. data/spec/models/t_connection_count_dto_spec.rb +34 -0
  92. data/spec/models/time_period_req_dto_spec.rb +28 -0
  93. data/spec/models/top_entities_res_dto_spec.rb +28 -0
  94. data/spec/models/update_member_req_dto_role_spec.rb +22 -0
  95. data/spec/models/update_member_req_dto_spec.rb +34 -0
  96. data/spec/models/webhook_req_dto_spec.rb +28 -0
  97. data/spec/models/webhook_secret_res_dto_spec.rb +28 -0
  98. metadata +201 -108
  99. data/spec/models/job_status_spec.rb +0 -22
@@ -0,0 +1,237 @@
1
+ =begin
2
+ #Composio OpenAPI
3
+
4
+ #Composio SDK: Equip your agent with high-quality tools and build your real-world usecase
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ =end
8
+
9
+ require 'date'
10
+ require 'time'
11
+
12
+ module Composio
13
+ # Connection counts by entity
14
+ class ClientUniqueUserIdCountDTO
15
+ # Client unique user id
16
+ attr_accessor :client_unique_user_id
17
+
18
+ # Count of connections for the client unique user id
19
+ attr_accessor :count
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'client_unique_user_id' => :'clientUniqueUserId',
25
+ :'count' => :'count'
26
+ }
27
+ end
28
+
29
+ # Returns all the JSON keys this model knows about
30
+ def self.acceptable_attributes
31
+ attribute_map.values
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.openapi_types
36
+ {
37
+ :'client_unique_user_id' => :'String',
38
+ :'count' => :'Float'
39
+ }
40
+ end
41
+
42
+ # List of attributes with nullable: true
43
+ def self.openapi_nullable
44
+ Set.new([
45
+ ])
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ if (!attributes.is_a?(Hash))
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Composio::ClientUniqueUserIdCountDTO` initialize method"
53
+ end
54
+
55
+ # check to see if the attribute exists and convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!self.class.attribute_map.key?(k.to_sym))
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Composio::ClientUniqueUserIdCountDTO`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ end
60
+ h[k.to_sym] = v
61
+ }
62
+
63
+ if attributes.key?(:'client_unique_user_id')
64
+ self.client_unique_user_id = attributes[:'client_unique_user_id']
65
+ end
66
+
67
+ if attributes.key?(:'count')
68
+ self.count = attributes[:'count']
69
+ end
70
+ end
71
+
72
+ # Show invalid properties with the reasons. Usually used together with valid?
73
+ # @return Array for valid properties with the reasons
74
+ def list_invalid_properties
75
+ invalid_properties = Array.new
76
+ if @client_unique_user_id.nil?
77
+ invalid_properties.push('invalid value for "client_unique_user_id", client_unique_user_id cannot be nil.')
78
+ end
79
+
80
+ if @count.nil?
81
+ invalid_properties.push('invalid value for "count", count cannot be nil.')
82
+ end
83
+
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ return false if @client_unique_user_id.nil?
91
+ return false if @count.nil?
92
+ true
93
+ end
94
+
95
+ # Checks equality by comparing each attribute.
96
+ # @param [Object] Object to be compared
97
+ def ==(o)
98
+ return true if self.equal?(o)
99
+ self.class == o.class &&
100
+ client_unique_user_id == o.client_unique_user_id &&
101
+ count == o.count
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Integer] Hash code
112
+ def hash
113
+ [client_unique_user_id, count].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def self.build_from_hash(attributes)
120
+ new.build_from_hash(attributes)
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ attributes = attributes.transform_keys(&:to_sym)
129
+ self.class.openapi_types.each_pair do |key, type|
130
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
131
+ self.send("#{key}=", nil)
132
+ elsif type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !attributes[self.class.attribute_map[key]].nil?
139
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ end
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :Time
153
+ Time.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value.to_s
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :Boolean
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ # models (e.g. Pet) or oneOf
184
+ klass = Composio.const_get(type)
185
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ # Returns the string representation of the object
190
+ # @return [String] String presentation of the object
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_hash (backward compatibility)
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_body
198
+ to_hash
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ if value.nil?
208
+ is_nullable = self.class.openapi_nullable.include?(attr)
209
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
+ end
211
+
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+
235
+ end
236
+
237
+ end
@@ -15,6 +15,8 @@ module Composio
15
15
 
16
16
  attr_accessor :app_unique_id
17
17
 
18
+ attr_accessor :member_info
19
+
18
20
  attr_accessor :meta
19
21
 
20
22
  attr_accessor :is_disabled
@@ -40,6 +42,7 @@ module Composio
40
42
  {
41
43
  :'integration_id' => :'integrationId',
42
44
  :'app_unique_id' => :'appUniqueId',
45
+ :'member_info' => :'memberInfo',
43
46
  :'meta' => :'meta',
44
47
  :'is_disabled' => :'isDisabled',
45
48
  :'id' => :'id',
@@ -63,6 +66,7 @@ module Composio
63
66
  {
64
67
  :'integration_id' => :'String',
65
68
  :'app_unique_id' => :'String',
69
+ :'member_info' => :'MemberInfoResDTO',
66
70
  :'meta' => :'Meta',
67
71
  :'is_disabled' => :'Boolean',
68
72
  :'id' => :'String',
@@ -105,6 +109,10 @@ module Composio
105
109
  self.app_unique_id = attributes[:'app_unique_id']
106
110
  end
107
111
 
112
+ if attributes.key?(:'member_info')
113
+ self.member_info = attributes[:'member_info']
114
+ end
115
+
108
116
  if attributes.key?(:'meta')
109
117
  self.meta = attributes[:'meta']
110
118
  end
@@ -211,6 +219,7 @@ module Composio
211
219
  self.class == o.class &&
212
220
  integration_id == o.integration_id &&
213
221
  app_unique_id == o.app_unique_id &&
222
+ member_info == o.member_info &&
214
223
  meta == o.meta &&
215
224
  is_disabled == o.is_disabled &&
216
225
  id == o.id &&
@@ -232,7 +241,7 @@ module Composio
232
241
  # Calculates hash code according to all attributes.
233
242
  # @return [Integer] Hash code
234
243
  def hash
235
- [integration_id, app_unique_id, meta, is_disabled, id, client_unique_user_id, app_name, entity_id, status, enabled, created_at, updated_at].hash
244
+ [integration_id, app_unique_id, member_info, meta, is_disabled, id, client_unique_user_id, app_name, entity_id, status, enabled, created_at, updated_at].hash
236
245
  end
237
246
 
238
247
  # Builds the object from hash
@@ -43,6 +43,8 @@ module Composio
43
43
 
44
44
  attr_accessor :auth_config
45
45
 
46
+ attr_accessor :member
47
+
46
48
  # Attribute mapping from ruby-style variable name to JSON key.
47
49
  def self.attribute_map
48
50
  {
@@ -61,7 +63,8 @@ module Composio
61
63
  :'app_unique_id' => :'appUniqueId',
62
64
  :'app_name' => :'appName',
63
65
  :'logo' => :'logo',
64
- :'auth_config' => :'authConfig'
66
+ :'auth_config' => :'authConfig',
67
+ :'member' => :'member'
65
68
  }
66
69
  end
67
70
 
@@ -83,12 +86,13 @@ module Composio
83
86
  :'data' => :'Object',
84
87
  :'deleted' => :'Boolean',
85
88
  :'enabled' => :'Boolean',
86
- :'created_at' => :'ConnectionWithAppDataCreatedAt',
87
- :'updated_at' => :'ConnectionWithAppDataCreatedAt',
89
+ :'created_at' => :'MemberInfoResDTOCreatedAt',
90
+ :'updated_at' => :'MemberInfoResDTOCreatedAt',
88
91
  :'app_unique_id' => :'String',
89
92
  :'app_name' => :'String',
90
93
  :'logo' => :'String',
91
- :'auth_config' => :'Object'
94
+ :'auth_config' => :'Object',
95
+ :'member' => :'Array<MemberInfoResDTO>'
92
96
  }
93
97
  end
94
98
 
@@ -176,6 +180,12 @@ module Composio
176
180
  if attributes.key?(:'auth_config')
177
181
  self.auth_config = attributes[:'auth_config']
178
182
  end
183
+
184
+ if attributes.key?(:'member')
185
+ if (value = attributes[:'member']).is_a?(Array)
186
+ self.member = value
187
+ end
188
+ end
179
189
  end
180
190
 
181
191
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -218,6 +228,10 @@ module Composio
218
228
  invalid_properties.push('invalid value for "app_name", app_name cannot be nil.')
219
229
  end
220
230
 
231
+ if @member.nil?
232
+ invalid_properties.push('invalid value for "member", member cannot be nil.')
233
+ end
234
+
221
235
  invalid_properties
222
236
  end
223
237
 
@@ -233,6 +247,7 @@ module Composio
233
247
  return false if @updated_at.nil?
234
248
  return false if @app_unique_id.nil?
235
249
  return false if @app_name.nil?
250
+ return false if @member.nil?
236
251
  true
237
252
  end
238
253
 
@@ -256,7 +271,8 @@ module Composio
256
271
  app_unique_id == o.app_unique_id &&
257
272
  app_name == o.app_name &&
258
273
  logo == o.logo &&
259
- auth_config == o.auth_config
274
+ auth_config == o.auth_config &&
275
+ member == o.member
260
276
  end
261
277
 
262
278
  # @see the `==` method
@@ -268,7 +284,7 @@ module Composio
268
284
  # Calculates hash code according to all attributes.
269
285
  # @return [Integer] Hash code
270
286
  def hash
271
- [integration_id, connection_params, is_disabled, invocation_count, id, client_unique_user_id, status, data, deleted, enabled, created_at, updated_at, app_unique_id, app_name, logo, auth_config].hash
287
+ [integration_id, connection_params, is_disabled, invocation_count, id, client_unique_user_id, status, data, deleted, enabled, created_at, updated_at, app_unique_id, app_name, logo, auth_config, member].hash
272
288
  end
273
289
 
274
290
  # Builds the object from hash
@@ -37,6 +37,8 @@ module Composio
37
37
 
38
38
  attr_accessor :auth_config
39
39
 
40
+ attr_accessor :member
41
+
40
42
  # Attribute mapping from ruby-style variable name to JSON key.
41
43
  def self.attribute_map
42
44
  {
@@ -52,7 +54,8 @@ module Composio
52
54
  :'app_unique_id' => :'appUniqueId',
53
55
  :'app_name' => :'appName',
54
56
  :'logo' => :'logo',
55
- :'auth_config' => :'authConfig'
57
+ :'auth_config' => :'authConfig',
58
+ :'member' => :'member'
56
59
  }
57
60
  end
58
61
 
@@ -71,12 +74,13 @@ module Composio
71
74
  :'data' => :'Object',
72
75
  :'deleted' => :'Boolean',
73
76
  :'enabled' => :'Boolean',
74
- :'created_at' => :'ConnectionWithAppDataCreatedAt',
75
- :'updated_at' => :'ConnectionWithAppDataCreatedAt',
77
+ :'created_at' => :'MemberInfoResDTOCreatedAt',
78
+ :'updated_at' => :'MemberInfoResDTOCreatedAt',
76
79
  :'app_unique_id' => :'String',
77
80
  :'app_name' => :'String',
78
81
  :'logo' => :'String',
79
- :'auth_config' => :'Object'
82
+ :'auth_config' => :'Object',
83
+ :'member' => :'Array<MemberInfoResDTO>'
80
84
  }
81
85
  end
82
86
 
@@ -152,6 +156,12 @@ module Composio
152
156
  if attributes.key?(:'auth_config')
153
157
  self.auth_config = attributes[:'auth_config']
154
158
  end
159
+
160
+ if attributes.key?(:'member')
161
+ if (value = attributes[:'member']).is_a?(Array)
162
+ self.member = value
163
+ end
164
+ end
155
165
  end
156
166
 
157
167
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -186,6 +196,10 @@ module Composio
186
196
  invalid_properties.push('invalid value for "app_name", app_name cannot be nil.')
187
197
  end
188
198
 
199
+ if @member.nil?
200
+ invalid_properties.push('invalid value for "member", member cannot be nil.')
201
+ end
202
+
189
203
  invalid_properties
190
204
  end
191
205
 
@@ -199,6 +213,7 @@ module Composio
199
213
  return false if @updated_at.nil?
200
214
  return false if @app_unique_id.nil?
201
215
  return false if @app_name.nil?
216
+ return false if @member.nil?
202
217
  true
203
218
  end
204
219
 
@@ -219,7 +234,8 @@ module Composio
219
234
  app_unique_id == o.app_unique_id &&
220
235
  app_name == o.app_name &&
221
236
  logo == o.logo &&
222
- auth_config == o.auth_config
237
+ auth_config == o.auth_config &&
238
+ member == o.member
223
239
  end
224
240
 
225
241
  # @see the `==` method
@@ -231,7 +247,7 @@ module Composio
231
247
  # Calculates hash code according to all attributes.
232
248
  # @return [Integer] Hash code
233
249
  def hash
234
- [id, integration_id, client_unique_user_id, status, data, deleted, enabled, created_at, updated_at, app_unique_id, app_name, logo, auth_config].hash
250
+ [id, integration_id, client_unique_user_id, status, data, deleted, enabled, created_at, updated_at, app_unique_id, app_name, logo, auth_config, member].hash
235
251
  end
236
252
 
237
253
  # Builds the object from hash
@@ -10,6 +10,7 @@ require 'date'
10
10
  require 'time'
11
11
 
12
12
  module Composio
13
+ # List of connectors
13
14
  class ConnectorListItemDTO
14
15
  # Application name associated with the connector
15
16
  attr_accessor :app_name
@@ -23,6 +24,8 @@ module Composio
23
24
  # Unique identifier of the connector
24
25
  attr_accessor :id
25
26
 
27
+ attr_accessor :member
28
+
26
29
  # Name of the connector
27
30
  attr_accessor :name
28
31
 
@@ -52,6 +55,7 @@ module Composio
52
55
  :'_count' => :'_count',
53
56
  :'connections' => :'connections',
54
57
  :'id' => :'id',
58
+ :'member' => :'member',
55
59
  :'name' => :'name',
56
60
  :'auth_scheme' => :'authScheme',
57
61
  :'created_at' => :'createdAt',
@@ -75,6 +79,7 @@ module Composio
75
79
  :'_count' => :'Object',
76
80
  :'connections' => :'Array<Object>',
77
81
  :'id' => :'String',
82
+ :'member' => :'MemberInfoResDTO',
78
83
  :'name' => :'String',
79
84
  :'auth_scheme' => :'String',
80
85
  :'created_at' => :'ConnectorListItemDTOCreatedAt',
@@ -125,6 +130,10 @@ module Composio
125
130
  self.id = attributes[:'id']
126
131
  end
127
132
 
133
+ if attributes.key?(:'member')
134
+ self.member = attributes[:'member']
135
+ end
136
+
128
137
  if attributes.key?(:'name')
129
138
  self.name = attributes[:'name']
130
139
  end
@@ -178,6 +187,10 @@ module Composio
178
187
  invalid_properties.push('invalid value for "id", id cannot be nil.')
179
188
  end
180
189
 
190
+ if @member.nil?
191
+ invalid_properties.push('invalid value for "member", member cannot be nil.')
192
+ end
193
+
181
194
  if @name.nil?
182
195
  invalid_properties.push('invalid value for "name", name cannot be nil.')
183
196
  end
@@ -212,6 +225,7 @@ module Composio
212
225
  return false if @_count.nil?
213
226
  return false if @connections.nil?
214
227
  return false if @id.nil?
228
+ return false if @member.nil?
215
229
  return false if @name.nil?
216
230
  return false if @auth_scheme.nil?
217
231
  return false if @created_at.nil?
@@ -230,6 +244,7 @@ module Composio
230
244
  _count == o._count &&
231
245
  connections == o.connections &&
232
246
  id == o.id &&
247
+ member == o.member &&
233
248
  name == o.name &&
234
249
  auth_scheme == o.auth_scheme &&
235
250
  created_at == o.created_at &&
@@ -249,7 +264,7 @@ module Composio
249
264
  # Calculates hash code according to all attributes.
250
265
  # @return [Integer] Hash code
251
266
  def hash
252
- [app_name, _count, connections, id, name, auth_scheme, created_at, updated_at, enabled, deleted, app_id, default_connector_id].hash
267
+ [app_name, _count, connections, id, member, name, auth_scheme, created_at, updated_at, enabled, deleted, app_id, default_connector_id].hash
253
268
  end
254
269
 
255
270
  # Builds the object from hash