composio 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +492 -4
- data/lib/composio/api/actions_api.rb +107 -0
- data/lib/composio/api/analytics_api.rb +181 -0
- data/lib/composio/api/apps_api.rb +257 -0
- data/lib/composio/api/connections_api.rb +84 -0
- data/lib/composio/api/event_logs_api.rb +427 -0
- data/lib/composio/api/logs_api.rb +127 -9
- data/lib/composio/api/payment_api.rb +430 -0
- data/lib/composio/models/action_analytics_dto.rb +250 -0
- data/lib/composio/models/action_by_app_dto.rb +237 -0
- data/lib/composio/models/action_by_status_dto.rb +237 -0
- data/lib/composio/models/action_get_nla_inputs_req_dto.rb +220 -0
- data/lib/composio/models/additional_info.rb +220 -0
- data/lib/composio/models/analytics_data_req_dto.rb +250 -0
- data/lib/composio/models/analytics_data_res_dto.rb +282 -0
- data/lib/composio/models/analytics_entity_data_dto.rb +257 -0
- data/lib/composio/models/api_key_res_dto.rb +61 -4
- data/lib/composio/models/app_name_count_dto.rb +267 -0
- data/lib/composio/models/client_unique_user_id_count_dto.rb +237 -0
- data/lib/composio/models/connected_account_response_dto.rb +10 -1
- data/lib/composio/models/connection_params.rb +22 -6
- data/lib/composio/models/connection_with_app_data.rb +22 -6
- data/lib/composio/models/connector_list_item_dto.rb +16 -1
- data/lib/composio/models/create_checkout_session_req_dto.rb +220 -0
- data/lib/composio/models/data.rb +234 -0
- data/lib/composio/models/entity_query_req_dto.rb +216 -0
- data/lib/composio/models/fetch_query_dto.rb +278 -0
- data/lib/composio/models/get_connection_info_response_dto.rb +250 -0
- data/lib/composio/models/get_connector_list_res_dto.rb +0 -1
- data/lib/composio/models/get_logs_dto.rb +10 -10
- data/lib/composio/models/{job_status.rb → get_logs_dto_status.rb} +6 -6
- data/lib/composio/models/ingest_data_dto.rb +298 -0
- data/lib/composio/models/ingest_data_response_dto.rb +220 -0
- data/lib/composio/models/integrations_with_counts_dto.rb +297 -0
- data/lib/composio/models/invite_member_req_dto.rb +14 -4
- data/lib/composio/models/last_time_period.rb +40 -0
- data/lib/composio/models/member_info_res_dto.rb +324 -0
- data/lib/composio/models/{connection_with_app_data_created_at.rb → member_info_res_dto_created_at.rb} +1 -1
- data/lib/composio/models/member_res_dto.rb +16 -1
- data/lib/composio/models/member_res_dto_role.rb +36 -0
- data/lib/composio/models/open_api_spec_list_res_dto.rb +17 -74
- data/lib/composio/models/parameter.rb +248 -0
- data/lib/composio/models/plan.rb +38 -0
- data/lib/composio/models/role.rb +36 -0
- data/lib/composio/models/state.rb +41 -0
- data/lib/composio/models/status.rb +7 -4
- data/lib/composio/models/t_connection_count_dto.rb +236 -0
- data/lib/composio/models/time_period_req_dto.rb +216 -0
- data/lib/composio/models/top_entities_res_dto.rb +223 -0
- data/lib/composio/models/update_member_req_dto.rb +236 -0
- data/lib/composio/models/update_member_req_dto_role.rb +36 -0
- data/lib/composio/models/webhook_req_dto.rb +221 -0
- data/lib/composio/models/webhook_secret_res_dto.rb +221 -0
- data/lib/composio/version.rb +1 -1
- data/lib/composio.rb +43 -2
- data/spec/api/actions_api_spec.rb +13 -0
- data/spec/api/analytics_api_spec.rb +51 -0
- data/spec/api/apps_api_spec.rb +34 -0
- data/spec/api/connections_api_spec.rb +11 -0
- data/spec/api/event_logs_api_spec.rb +83 -0
- data/spec/api/logs_api_spec.rb +13 -1
- data/spec/api/payment_api_spec.rb +83 -0
- data/spec/models/action_analytics_dto_spec.rb +40 -0
- data/spec/models/action_by_app_dto_spec.rb +34 -0
- data/spec/models/action_by_status_dto_spec.rb +34 -0
- data/spec/models/action_get_nla_inputs_req_dto_spec.rb +28 -0
- data/spec/models/additional_info_spec.rb +28 -0
- data/spec/models/analytics_data_req_dto_spec.rb +32 -0
- data/spec/models/analytics_data_res_dto_spec.rb +52 -0
- data/spec/models/analytics_entity_data_dto_spec.rb +40 -0
- data/spec/models/api_key_res_dto_spec.rb +18 -0
- data/spec/models/app_name_count_dto_spec.rb +46 -0
- data/spec/models/client_unique_user_id_count_dto_spec.rb +34 -0
- data/spec/models/connected_account_response_dto_spec.rb +6 -0
- data/spec/models/connection_params_spec.rb +6 -0
- data/spec/models/connection_with_app_data_spec.rb +6 -0
- data/spec/models/connector_list_item_dto_spec.rb +6 -0
- data/spec/models/create_checkout_session_req_dto_spec.rb +28 -0
- data/spec/models/data_spec.rb +34 -0
- data/spec/models/entity_query_req_dto_spec.rb +28 -0
- data/spec/models/fetch_query_dto_spec.rb +34 -0
- data/spec/models/get_connection_info_response_dto_spec.rb +40 -0
- data/spec/models/get_logs_dto_spec.rb +1 -1
- data/spec/models/get_logs_dto_status_spec.rb +22 -0
- data/spec/models/ingest_data_dto_spec.rb +64 -0
- data/spec/models/ingest_data_response_dto_spec.rb +28 -0
- data/spec/models/integrations_with_counts_dto_spec.rb +58 -0
- data/spec/models/invite_member_req_dto_spec.rb +6 -0
- data/spec/models/last_time_period_spec.rb +22 -0
- data/spec/models/{connection_with_app_data_created_at_spec.rb → member_info_res_dto_created_at_spec.rb} +2 -2
- data/spec/models/member_info_res_dto_spec.rb +76 -0
- data/spec/models/member_res_dto_role_spec.rb +22 -0
- data/spec/models/member_res_dto_spec.rb +6 -0
- data/spec/models/open_api_spec_list_res_dto_spec.rb +5 -29
- data/spec/models/parameter_spec.rb +40 -0
- data/spec/models/plan_spec.rb +22 -0
- data/spec/models/role_spec.rb +22 -0
- data/spec/models/state_spec.rb +22 -0
- data/spec/models/t_connection_count_dto_spec.rb +34 -0
- data/spec/models/time_period_req_dto_spec.rb +28 -0
- data/spec/models/top_entities_res_dto_spec.rb +28 -0
- data/spec/models/update_member_req_dto_role_spec.rb +22 -0
- data/spec/models/update_member_req_dto_spec.rb +34 -0
- data/spec/models/webhook_req_dto_spec.rb +28 -0
- data/spec/models/webhook_secret_res_dto_spec.rb +28 -0
- metadata +215 -110
- data/spec/models/job_status_spec.rb +0 -22
@@ -0,0 +1,324 @@
|
|
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
|
+
# Member information
|
14
|
+
class MemberInfoResDTO
|
15
|
+
attr_accessor :id
|
16
|
+
|
17
|
+
attr_accessor :client_id
|
18
|
+
|
19
|
+
attr_accessor :email
|
20
|
+
|
21
|
+
attr_accessor :name
|
22
|
+
|
23
|
+
attr_accessor :role
|
24
|
+
|
25
|
+
attr_accessor :metadata
|
26
|
+
|
27
|
+
attr_accessor :created_at
|
28
|
+
|
29
|
+
attr_accessor :updated_at
|
30
|
+
|
31
|
+
attr_accessor :deleted_at
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'id' => :'id',
|
37
|
+
:'client_id' => :'clientId',
|
38
|
+
:'email' => :'email',
|
39
|
+
:'name' => :'name',
|
40
|
+
:'role' => :'role',
|
41
|
+
:'metadata' => :'metadata',
|
42
|
+
:'created_at' => :'createdAt',
|
43
|
+
:'updated_at' => :'updatedAt',
|
44
|
+
:'deleted_at' => :'deletedAt'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Returns all the JSON keys this model knows about
|
49
|
+
def self.acceptable_attributes
|
50
|
+
attribute_map.values
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute type mapping.
|
54
|
+
def self.openapi_types
|
55
|
+
{
|
56
|
+
:'id' => :'String',
|
57
|
+
:'client_id' => :'String',
|
58
|
+
:'email' => :'String',
|
59
|
+
:'name' => :'String',
|
60
|
+
:'role' => :'String',
|
61
|
+
:'metadata' => :'Object',
|
62
|
+
:'created_at' => :'MemberInfoResDTOCreatedAt',
|
63
|
+
:'updated_at' => :'MemberInfoResDTOCreatedAt',
|
64
|
+
:'deleted_at' => :'MemberInfoResDTOCreatedAt'
|
65
|
+
}
|
66
|
+
end
|
67
|
+
|
68
|
+
# List of attributes with nullable: true
|
69
|
+
def self.openapi_nullable
|
70
|
+
Set.new([
|
71
|
+
:'metadata',
|
72
|
+
])
|
73
|
+
end
|
74
|
+
|
75
|
+
# Initializes the object
|
76
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
77
|
+
def initialize(attributes = {})
|
78
|
+
if (!attributes.is_a?(Hash))
|
79
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Composio::MemberInfoResDTO` initialize method"
|
80
|
+
end
|
81
|
+
|
82
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
83
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
84
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
85
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Composio::MemberInfoResDTO`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
86
|
+
end
|
87
|
+
h[k.to_sym] = v
|
88
|
+
}
|
89
|
+
|
90
|
+
if attributes.key?(:'id')
|
91
|
+
self.id = attributes[:'id']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'client_id')
|
95
|
+
self.client_id = attributes[:'client_id']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'email')
|
99
|
+
self.email = attributes[:'email']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'name')
|
103
|
+
self.name = attributes[:'name']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'role')
|
107
|
+
self.role = attributes[:'role']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'metadata')
|
111
|
+
self.metadata = attributes[:'metadata']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'created_at')
|
115
|
+
self.created_at = attributes[:'created_at']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'updated_at')
|
119
|
+
self.updated_at = attributes[:'updated_at']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'deleted_at')
|
123
|
+
self.deleted_at = attributes[:'deleted_at']
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
128
|
+
# @return Array for valid properties with the reasons
|
129
|
+
def list_invalid_properties
|
130
|
+
invalid_properties = Array.new
|
131
|
+
if @id.nil?
|
132
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if @client_id.nil?
|
136
|
+
invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
|
+
if @email.nil?
|
140
|
+
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
141
|
+
end
|
142
|
+
|
143
|
+
if @name.nil?
|
144
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
145
|
+
end
|
146
|
+
|
147
|
+
if @role.nil?
|
148
|
+
invalid_properties.push('invalid value for "role", role cannot be nil.')
|
149
|
+
end
|
150
|
+
|
151
|
+
if @created_at.nil?
|
152
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
153
|
+
end
|
154
|
+
|
155
|
+
if @updated_at.nil?
|
156
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
157
|
+
end
|
158
|
+
|
159
|
+
invalid_properties
|
160
|
+
end
|
161
|
+
|
162
|
+
# Check to see if the all the properties in the model are valid
|
163
|
+
# @return true if the model is valid
|
164
|
+
def valid?
|
165
|
+
return false if @id.nil?
|
166
|
+
return false if @client_id.nil?
|
167
|
+
return false if @email.nil?
|
168
|
+
return false if @name.nil?
|
169
|
+
return false if @role.nil?
|
170
|
+
return false if @created_at.nil?
|
171
|
+
return false if @updated_at.nil?
|
172
|
+
true
|
173
|
+
end
|
174
|
+
|
175
|
+
# Checks equality by comparing each attribute.
|
176
|
+
# @param [Object] Object to be compared
|
177
|
+
def ==(o)
|
178
|
+
return true if self.equal?(o)
|
179
|
+
self.class == o.class &&
|
180
|
+
id == o.id &&
|
181
|
+
client_id == o.client_id &&
|
182
|
+
email == o.email &&
|
183
|
+
name == o.name &&
|
184
|
+
role == o.role &&
|
185
|
+
metadata == o.metadata &&
|
186
|
+
created_at == o.created_at &&
|
187
|
+
updated_at == o.updated_at &&
|
188
|
+
deleted_at == o.deleted_at
|
189
|
+
end
|
190
|
+
|
191
|
+
# @see the `==` method
|
192
|
+
# @param [Object] Object to be compared
|
193
|
+
def eql?(o)
|
194
|
+
self == o
|
195
|
+
end
|
196
|
+
|
197
|
+
# Calculates hash code according to all attributes.
|
198
|
+
# @return [Integer] Hash code
|
199
|
+
def hash
|
200
|
+
[id, client_id, email, name, role, metadata, created_at, updated_at, deleted_at].hash
|
201
|
+
end
|
202
|
+
|
203
|
+
# Builds the object from hash
|
204
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
205
|
+
# @return [Object] Returns the model itself
|
206
|
+
def self.build_from_hash(attributes)
|
207
|
+
new.build_from_hash(attributes)
|
208
|
+
end
|
209
|
+
|
210
|
+
# Builds the object from hash
|
211
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
212
|
+
# @return [Object] Returns the model itself
|
213
|
+
def build_from_hash(attributes)
|
214
|
+
return nil unless attributes.is_a?(Hash)
|
215
|
+
attributes = attributes.transform_keys(&:to_sym)
|
216
|
+
self.class.openapi_types.each_pair do |key, type|
|
217
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
218
|
+
self.send("#{key}=", nil)
|
219
|
+
elsif type =~ /\AArray<(.*)>/i
|
220
|
+
# check to ensure the input is an array given that the attribute
|
221
|
+
# is documented as an array but the input is not
|
222
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
223
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
224
|
+
end
|
225
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
226
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
self
|
231
|
+
end
|
232
|
+
|
233
|
+
# Deserializes the data based on type
|
234
|
+
# @param string type Data type
|
235
|
+
# @param string value Value to be deserialized
|
236
|
+
# @return [Object] Deserialized data
|
237
|
+
def _deserialize(type, value)
|
238
|
+
case type.to_sym
|
239
|
+
when :Time
|
240
|
+
Time.parse(value)
|
241
|
+
when :Date
|
242
|
+
Date.parse(value)
|
243
|
+
when :String
|
244
|
+
value.to_s
|
245
|
+
when :Integer
|
246
|
+
value.to_i
|
247
|
+
when :Float
|
248
|
+
value.to_f
|
249
|
+
when :Boolean
|
250
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
251
|
+
true
|
252
|
+
else
|
253
|
+
false
|
254
|
+
end
|
255
|
+
when :Object
|
256
|
+
# generic object (usually a Hash), return directly
|
257
|
+
value
|
258
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
259
|
+
inner_type = Regexp.last_match[:inner_type]
|
260
|
+
value.map { |v| _deserialize(inner_type, v) }
|
261
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
262
|
+
k_type = Regexp.last_match[:k_type]
|
263
|
+
v_type = Regexp.last_match[:v_type]
|
264
|
+
{}.tap do |hash|
|
265
|
+
value.each do |k, v|
|
266
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
else # model
|
270
|
+
# models (e.g. Pet) or oneOf
|
271
|
+
klass = Composio.const_get(type)
|
272
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
273
|
+
end
|
274
|
+
end
|
275
|
+
|
276
|
+
# Returns the string representation of the object
|
277
|
+
# @return [String] String presentation of the object
|
278
|
+
def to_s
|
279
|
+
to_hash.to_s
|
280
|
+
end
|
281
|
+
|
282
|
+
# to_body is an alias to to_hash (backward compatibility)
|
283
|
+
# @return [Hash] Returns the object in the form of hash
|
284
|
+
def to_body
|
285
|
+
to_hash
|
286
|
+
end
|
287
|
+
|
288
|
+
# Returns the object in the form of hash
|
289
|
+
# @return [Hash] Returns the object in the form of hash
|
290
|
+
def to_hash
|
291
|
+
hash = {}
|
292
|
+
self.class.attribute_map.each_pair do |attr, param|
|
293
|
+
value = self.send(attr)
|
294
|
+
if value.nil?
|
295
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
296
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
297
|
+
end
|
298
|
+
|
299
|
+
hash[param] = _to_hash(value)
|
300
|
+
end
|
301
|
+
hash
|
302
|
+
end
|
303
|
+
|
304
|
+
# Outputs non-array value in the form of hash
|
305
|
+
# For object, use to_hash. Otherwise, just return the value
|
306
|
+
# @param [Object] value Any valid value
|
307
|
+
# @return [Hash] Returns the value in the form of hash
|
308
|
+
def _to_hash(value)
|
309
|
+
if value.is_a?(Array)
|
310
|
+
value.compact.map { |v| _to_hash(v) }
|
311
|
+
elsif value.is_a?(Hash)
|
312
|
+
{}.tap do |hash|
|
313
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
314
|
+
end
|
315
|
+
elsif value.respond_to? :to_hash
|
316
|
+
value.to_hash
|
317
|
+
else
|
318
|
+
value
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
end
|
323
|
+
|
324
|
+
end
|
@@ -23,6 +23,9 @@ module Composio
|
|
23
23
|
# The creation date of the member record
|
24
24
|
attr_accessor :created_at
|
25
25
|
|
26
|
+
# The role that is assigned to the member
|
27
|
+
attr_accessor :role
|
28
|
+
|
26
29
|
# The last update date of the member record
|
27
30
|
attr_accessor :updated_at
|
28
31
|
|
@@ -33,6 +36,7 @@ module Composio
|
|
33
36
|
:'id' => :'id',
|
34
37
|
:'name' => :'name',
|
35
38
|
:'created_at' => :'createdAt',
|
39
|
+
:'role' => :'role',
|
36
40
|
:'updated_at' => :'updatedAt'
|
37
41
|
}
|
38
42
|
end
|
@@ -49,6 +53,7 @@ module Composio
|
|
49
53
|
:'id' => :'String',
|
50
54
|
:'name' => :'String',
|
51
55
|
:'created_at' => :'String',
|
56
|
+
:'role' => :'MemberResDtoRole',
|
52
57
|
:'updated_at' => :'String'
|
53
58
|
}
|
54
59
|
end
|
@@ -90,6 +95,10 @@ module Composio
|
|
90
95
|
self.created_at = attributes[:'created_at']
|
91
96
|
end
|
92
97
|
|
98
|
+
if attributes.key?(:'role')
|
99
|
+
self.role = attributes[:'role']
|
100
|
+
end
|
101
|
+
|
93
102
|
if attributes.key?(:'updated_at')
|
94
103
|
self.updated_at = attributes[:'updated_at']
|
95
104
|
end
|
@@ -116,6 +125,10 @@ module Composio
|
|
116
125
|
invalid_properties.push("invalid value for \"created_at\", must conform to the pattern #{pattern}.")
|
117
126
|
end
|
118
127
|
|
128
|
+
if @role.nil?
|
129
|
+
invalid_properties.push('invalid value for "role", role cannot be nil.')
|
130
|
+
end
|
131
|
+
|
119
132
|
pattern = Regexp.new(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?/)
|
120
133
|
if !@updated_at.nil? && @updated_at !~ pattern
|
121
134
|
invalid_properties.push("invalid value for \"updated_at\", must conform to the pattern #{pattern}.")
|
@@ -131,6 +144,7 @@ module Composio
|
|
131
144
|
return false if @id.nil?
|
132
145
|
return false if @name.nil?
|
133
146
|
return false if !@created_at.nil? && @created_at !~ Regexp.new(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?/)
|
147
|
+
return false if @role.nil?
|
134
148
|
return false if !@updated_at.nil? && @updated_at !~ Regexp.new(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?/)
|
135
149
|
true
|
136
150
|
end
|
@@ -166,6 +180,7 @@ module Composio
|
|
166
180
|
id == o.id &&
|
167
181
|
name == o.name &&
|
168
182
|
created_at == o.created_at &&
|
183
|
+
role == o.role &&
|
169
184
|
updated_at == o.updated_at
|
170
185
|
end
|
171
186
|
|
@@ -178,7 +193,7 @@ module Composio
|
|
178
193
|
# Calculates hash code according to all attributes.
|
179
194
|
# @return [Integer] Hash code
|
180
195
|
def hash
|
181
|
-
[email, id, name, created_at, updated_at].hash
|
196
|
+
[email, id, name, created_at, role, updated_at].hash
|
182
197
|
end
|
183
198
|
|
184
199
|
# Builds the object from hash
|
@@ -0,0 +1,36 @@
|
|
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
|
+
class MemberResDtoRole
|
14
|
+
ADMIN = "admin".freeze
|
15
|
+
DEVELOPER = "developer".freeze
|
16
|
+
|
17
|
+
def self.all_vars
|
18
|
+
@all_vars ||= [ADMIN, DEVELOPER].freeze
|
19
|
+
end
|
20
|
+
|
21
|
+
# Builds the enum from string
|
22
|
+
# @param [String] The enum value in the form of the string
|
23
|
+
# @return [String] The enum value
|
24
|
+
def self.build_from_hash(value)
|
25
|
+
new.build_from_hash(value)
|
26
|
+
end
|
27
|
+
|
28
|
+
# Builds the enum from string
|
29
|
+
# @param [String] The enum value in the form of the string
|
30
|
+
# @return [String] The enum value
|
31
|
+
def build_from_hash(value)
|
32
|
+
return value if MemberResDtoRole.all_vars.include?(value)
|
33
|
+
raise "Invalid ENUM value #{value} for class #MemberResDtoRole"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -20,21 +20,6 @@ module Composio
|
|
20
20
|
# Client identifier
|
21
21
|
attr_accessor :client_id
|
22
22
|
|
23
|
-
# OpenAPI specification in YAML format
|
24
|
-
attr_accessor :open_api_spec
|
25
|
-
|
26
|
-
# Integration details in YAML format
|
27
|
-
attr_accessor :integration_yaml
|
28
|
-
|
29
|
-
# Whether the OpenAPI spec is enabled
|
30
|
-
attr_accessor :enabled
|
31
|
-
|
32
|
-
# URL to the OpenAPI specification
|
33
|
-
attr_accessor :open_api_spec_url
|
34
|
-
|
35
|
-
# URL to the integration YAML
|
36
|
-
attr_accessor :integration_yamlurl
|
37
|
-
|
38
23
|
# Last synchronization date and time
|
39
24
|
attr_accessor :last_sync_at
|
40
25
|
|
@@ -45,7 +30,10 @@ module Composio
|
|
45
30
|
attr_accessor :updated_at
|
46
31
|
|
47
32
|
# The job status of the app
|
48
|
-
attr_accessor :
|
33
|
+
attr_accessor :status
|
34
|
+
|
35
|
+
# Current state of the app FSM
|
36
|
+
attr_accessor :state
|
49
37
|
|
50
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
39
|
def self.attribute_map
|
@@ -53,15 +41,11 @@ module Composio
|
|
53
41
|
:'id' => :'id',
|
54
42
|
:'name' => :'name',
|
55
43
|
:'client_id' => :'clientId',
|
56
|
-
:'open_api_spec' => :'openApiSpec',
|
57
|
-
:'integration_yaml' => :'integrationYaml',
|
58
|
-
:'enabled' => :'enabled',
|
59
|
-
:'open_api_spec_url' => :'openAPISpecURL',
|
60
|
-
:'integration_yamlurl' => :'integrationYAMLURL',
|
61
44
|
:'last_sync_at' => :'lastSyncAt',
|
62
45
|
:'created_at' => :'createdAt',
|
63
46
|
:'updated_at' => :'updatedAt',
|
64
|
-
:'
|
47
|
+
:'status' => :'status',
|
48
|
+
:'state' => :'state'
|
65
49
|
}
|
66
50
|
end
|
67
51
|
|
@@ -76,23 +60,17 @@ module Composio
|
|
76
60
|
:'id' => :'String',
|
77
61
|
:'name' => :'String',
|
78
62
|
:'client_id' => :'String',
|
79
|
-
:'open_api_spec' => :'String',
|
80
|
-
:'integration_yaml' => :'String',
|
81
|
-
:'enabled' => :'Boolean',
|
82
|
-
:'open_api_spec_url' => :'String',
|
83
|
-
:'integration_yamlurl' => :'String',
|
84
63
|
:'last_sync_at' => :'Time',
|
85
64
|
:'created_at' => :'Time',
|
86
65
|
:'updated_at' => :'Time',
|
87
|
-
:'
|
66
|
+
:'status' => :'Status',
|
67
|
+
:'state' => :'State'
|
88
68
|
}
|
89
69
|
end
|
90
70
|
|
91
71
|
# List of attributes with nullable: true
|
92
72
|
def self.openapi_nullable
|
93
73
|
Set.new([
|
94
|
-
:'open_api_spec_url',
|
95
|
-
:'integration_yamlurl',
|
96
74
|
])
|
97
75
|
end
|
98
76
|
|
@@ -123,26 +101,6 @@ module Composio
|
|
123
101
|
self.client_id = attributes[:'client_id']
|
124
102
|
end
|
125
103
|
|
126
|
-
if attributes.key?(:'open_api_spec')
|
127
|
-
self.open_api_spec = attributes[:'open_api_spec']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.key?(:'integration_yaml')
|
131
|
-
self.integration_yaml = attributes[:'integration_yaml']
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.key?(:'enabled')
|
135
|
-
self.enabled = attributes[:'enabled']
|
136
|
-
end
|
137
|
-
|
138
|
-
if attributes.key?(:'open_api_spec_url')
|
139
|
-
self.open_api_spec_url = attributes[:'open_api_spec_url']
|
140
|
-
end
|
141
|
-
|
142
|
-
if attributes.key?(:'integration_yamlurl')
|
143
|
-
self.integration_yamlurl = attributes[:'integration_yamlurl']
|
144
|
-
end
|
145
|
-
|
146
104
|
if attributes.key?(:'last_sync_at')
|
147
105
|
self.last_sync_at = attributes[:'last_sync_at']
|
148
106
|
end
|
@@ -155,8 +113,12 @@ module Composio
|
|
155
113
|
self.updated_at = attributes[:'updated_at']
|
156
114
|
end
|
157
115
|
|
158
|
-
if attributes.key?(:'
|
159
|
-
self.
|
116
|
+
if attributes.key?(:'status')
|
117
|
+
self.status = attributes[:'status']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'state')
|
121
|
+
self.state = attributes[:'state']
|
160
122
|
end
|
161
123
|
end
|
162
124
|
|
@@ -176,18 +138,6 @@ module Composio
|
|
176
138
|
invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
|
177
139
|
end
|
178
140
|
|
179
|
-
if @open_api_spec.nil?
|
180
|
-
invalid_properties.push('invalid value for "open_api_spec", open_api_spec cannot be nil.')
|
181
|
-
end
|
182
|
-
|
183
|
-
if @integration_yaml.nil?
|
184
|
-
invalid_properties.push('invalid value for "integration_yaml", integration_yaml cannot be nil.')
|
185
|
-
end
|
186
|
-
|
187
|
-
if @enabled.nil?
|
188
|
-
invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
|
189
|
-
end
|
190
|
-
|
191
141
|
if @last_sync_at.nil?
|
192
142
|
invalid_properties.push('invalid value for "last_sync_at", last_sync_at cannot be nil.')
|
193
143
|
end
|
@@ -224,9 +174,6 @@ module Composio
|
|
224
174
|
return false if @id.nil?
|
225
175
|
return false if @name.nil?
|
226
176
|
return false if @client_id.nil?
|
227
|
-
return false if @open_api_spec.nil?
|
228
|
-
return false if @integration_yaml.nil?
|
229
|
-
return false if @enabled.nil?
|
230
177
|
return false if @last_sync_at.nil?
|
231
178
|
return false if @last_sync_at !~ Regexp.new(/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?/)
|
232
179
|
return false if @created_at.nil?
|
@@ -289,15 +236,11 @@ module Composio
|
|
289
236
|
id == o.id &&
|
290
237
|
name == o.name &&
|
291
238
|
client_id == o.client_id &&
|
292
|
-
open_api_spec == o.open_api_spec &&
|
293
|
-
integration_yaml == o.integration_yaml &&
|
294
|
-
enabled == o.enabled &&
|
295
|
-
open_api_spec_url == o.open_api_spec_url &&
|
296
|
-
integration_yamlurl == o.integration_yamlurl &&
|
297
239
|
last_sync_at == o.last_sync_at &&
|
298
240
|
created_at == o.created_at &&
|
299
241
|
updated_at == o.updated_at &&
|
300
|
-
|
242
|
+
status == o.status &&
|
243
|
+
state == o.state
|
301
244
|
end
|
302
245
|
|
303
246
|
# @see the `==` method
|
@@ -309,7 +252,7 @@ module Composio
|
|
309
252
|
# Calculates hash code according to all attributes.
|
310
253
|
# @return [Integer] Hash code
|
311
254
|
def hash
|
312
|
-
[id, name, client_id,
|
255
|
+
[id, name, client_id, last_sync_at, created_at, updated_at, status, state].hash
|
313
256
|
end
|
314
257
|
|
315
258
|
# Builds the object from hash
|