composio 0.1.6 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +492 -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/connections_api.rb +84 -0
  8. data/lib/composio/api/event_logs_api.rb +427 -0
  9. data/lib/composio/api/logs_api.rb +127 -9
  10. data/lib/composio/api/payment_api.rb +430 -0
  11. data/lib/composio/models/action_analytics_dto.rb +250 -0
  12. data/lib/composio/models/action_by_app_dto.rb +237 -0
  13. data/lib/composio/models/action_by_status_dto.rb +237 -0
  14. data/lib/composio/models/action_get_nla_inputs_req_dto.rb +220 -0
  15. data/lib/composio/models/additional_info.rb +220 -0
  16. data/lib/composio/models/analytics_data_req_dto.rb +250 -0
  17. data/lib/composio/models/analytics_data_res_dto.rb +282 -0
  18. data/lib/composio/models/analytics_entity_data_dto.rb +257 -0
  19. data/lib/composio/models/api_key_res_dto.rb +61 -4
  20. data/lib/composio/models/app_name_count_dto.rb +267 -0
  21. data/lib/composio/models/client_unique_user_id_count_dto.rb +237 -0
  22. data/lib/composio/models/connected_account_response_dto.rb +10 -1
  23. data/lib/composio/models/connection_params.rb +22 -6
  24. data/lib/composio/models/connection_with_app_data.rb +22 -6
  25. data/lib/composio/models/connector_list_item_dto.rb +16 -1
  26. data/lib/composio/models/create_checkout_session_req_dto.rb +220 -0
  27. data/lib/composio/models/data.rb +234 -0
  28. data/lib/composio/models/entity_query_req_dto.rb +216 -0
  29. data/lib/composio/models/fetch_query_dto.rb +278 -0
  30. data/lib/composio/models/get_connection_info_response_dto.rb +250 -0
  31. data/lib/composio/models/get_connector_list_res_dto.rb +0 -1
  32. data/lib/composio/models/get_logs_dto.rb +10 -10
  33. data/lib/composio/models/{job_status.rb → get_logs_dto_status.rb} +6 -6
  34. data/lib/composio/models/ingest_data_dto.rb +298 -0
  35. data/lib/composio/models/ingest_data_response_dto.rb +220 -0
  36. data/lib/composio/models/integrations_with_counts_dto.rb +297 -0
  37. data/lib/composio/models/invite_member_req_dto.rb +14 -4
  38. data/lib/composio/models/last_time_period.rb +40 -0
  39. data/lib/composio/models/member_info_res_dto.rb +324 -0
  40. data/lib/composio/models/{connection_with_app_data_created_at.rb → member_info_res_dto_created_at.rb} +1 -1
  41. data/lib/composio/models/member_res_dto.rb +16 -1
  42. data/lib/composio/models/member_res_dto_role.rb +36 -0
  43. data/lib/composio/models/open_api_spec_list_res_dto.rb +17 -74
  44. data/lib/composio/models/parameter.rb +248 -0
  45. data/lib/composio/models/plan.rb +38 -0
  46. data/lib/composio/models/role.rb +36 -0
  47. data/lib/composio/models/state.rb +41 -0
  48. data/lib/composio/models/status.rb +7 -4
  49. data/lib/composio/models/t_connection_count_dto.rb +236 -0
  50. data/lib/composio/models/time_period_req_dto.rb +216 -0
  51. data/lib/composio/models/top_entities_res_dto.rb +223 -0
  52. data/lib/composio/models/update_member_req_dto.rb +236 -0
  53. data/lib/composio/models/update_member_req_dto_role.rb +36 -0
  54. data/lib/composio/models/webhook_req_dto.rb +221 -0
  55. data/lib/composio/models/webhook_secret_res_dto.rb +221 -0
  56. data/lib/composio/version.rb +1 -1
  57. data/lib/composio.rb +43 -2
  58. data/spec/api/actions_api_spec.rb +13 -0
  59. data/spec/api/analytics_api_spec.rb +51 -0
  60. data/spec/api/apps_api_spec.rb +34 -0
  61. data/spec/api/connections_api_spec.rb +11 -0
  62. data/spec/api/event_logs_api_spec.rb +83 -0
  63. data/spec/api/logs_api_spec.rb +13 -1
  64. data/spec/api/payment_api_spec.rb +83 -0
  65. data/spec/models/action_analytics_dto_spec.rb +40 -0
  66. data/spec/models/action_by_app_dto_spec.rb +34 -0
  67. data/spec/models/action_by_status_dto_spec.rb +34 -0
  68. data/spec/models/action_get_nla_inputs_req_dto_spec.rb +28 -0
  69. data/spec/models/additional_info_spec.rb +28 -0
  70. data/spec/models/analytics_data_req_dto_spec.rb +32 -0
  71. data/spec/models/analytics_data_res_dto_spec.rb +52 -0
  72. data/spec/models/analytics_entity_data_dto_spec.rb +40 -0
  73. data/spec/models/api_key_res_dto_spec.rb +18 -0
  74. data/spec/models/app_name_count_dto_spec.rb +46 -0
  75. data/spec/models/client_unique_user_id_count_dto_spec.rb +34 -0
  76. data/spec/models/connected_account_response_dto_spec.rb +6 -0
  77. data/spec/models/connection_params_spec.rb +6 -0
  78. data/spec/models/connection_with_app_data_spec.rb +6 -0
  79. data/spec/models/connector_list_item_dto_spec.rb +6 -0
  80. data/spec/models/create_checkout_session_req_dto_spec.rb +28 -0
  81. data/spec/models/data_spec.rb +34 -0
  82. data/spec/models/entity_query_req_dto_spec.rb +28 -0
  83. data/spec/models/fetch_query_dto_spec.rb +34 -0
  84. data/spec/models/get_connection_info_response_dto_spec.rb +40 -0
  85. data/spec/models/get_logs_dto_spec.rb +1 -1
  86. data/spec/models/get_logs_dto_status_spec.rb +22 -0
  87. data/spec/models/ingest_data_dto_spec.rb +64 -0
  88. data/spec/models/ingest_data_response_dto_spec.rb +28 -0
  89. data/spec/models/integrations_with_counts_dto_spec.rb +58 -0
  90. data/spec/models/invite_member_req_dto_spec.rb +6 -0
  91. data/spec/models/last_time_period_spec.rb +22 -0
  92. data/spec/models/{connection_with_app_data_created_at_spec.rb → member_info_res_dto_created_at_spec.rb} +2 -2
  93. data/spec/models/member_info_res_dto_spec.rb +76 -0
  94. data/spec/models/member_res_dto_role_spec.rb +22 -0
  95. data/spec/models/member_res_dto_spec.rb +6 -0
  96. data/spec/models/open_api_spec_list_res_dto_spec.rb +5 -29
  97. data/spec/models/parameter_spec.rb +40 -0
  98. data/spec/models/plan_spec.rb +22 -0
  99. data/spec/models/role_spec.rb +22 -0
  100. data/spec/models/state_spec.rb +22 -0
  101. data/spec/models/t_connection_count_dto_spec.rb +34 -0
  102. data/spec/models/time_period_req_dto_spec.rb +28 -0
  103. data/spec/models/top_entities_res_dto_spec.rb +28 -0
  104. data/spec/models/update_member_req_dto_role_spec.rb +22 -0
  105. data/spec/models/update_member_req_dto_spec.rb +34 -0
  106. data/spec/models/webhook_req_dto_spec.rb +28 -0
  107. data/spec/models/webhook_secret_res_dto_spec.rb +28 -0
  108. metadata +215 -110
  109. data/spec/models/job_status_spec.rb +0 -22
@@ -0,0 +1,221 @@
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 WebhookReqDTO
14
+ # Event Webhook URL
15
+ attr_accessor :event_webhook_url
16
+
17
+ # Attribute mapping from ruby-style variable name to JSON key.
18
+ def self.attribute_map
19
+ {
20
+ :'event_webhook_url' => :'eventWebhookURL'
21
+ }
22
+ end
23
+
24
+ # Returns all the JSON keys this model knows about
25
+ def self.acceptable_attributes
26
+ attribute_map.values
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'event_webhook_url' => :'String'
33
+ }
34
+ end
35
+
36
+ # List of attributes with nullable: true
37
+ def self.openapi_nullable
38
+ Set.new([
39
+ ])
40
+ end
41
+
42
+ # Initializes the object
43
+ # @param [Hash] attributes Model attributes in the form of hash
44
+ def initialize(attributes = {})
45
+ if (!attributes.is_a?(Hash))
46
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Composio::WebhookReqDTO` initialize method"
47
+ end
48
+
49
+ # check to see if the attribute exists and convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h|
51
+ if (!self.class.attribute_map.key?(k.to_sym))
52
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Composio::WebhookReqDTO`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
53
+ end
54
+ h[k.to_sym] = v
55
+ }
56
+
57
+ if attributes.key?(:'event_webhook_url')
58
+ self.event_webhook_url = attributes[:'event_webhook_url']
59
+ end
60
+ end
61
+
62
+ # Show invalid properties with the reasons. Usually used together with valid?
63
+ # @return Array for valid properties with the reasons
64
+ def list_invalid_properties
65
+ invalid_properties = Array.new
66
+ if @event_webhook_url.nil?
67
+ invalid_properties.push('invalid value for "event_webhook_url", event_webhook_url cannot be nil.')
68
+ end
69
+
70
+ invalid_properties
71
+ end
72
+
73
+ # Check to see if the all the properties in the model are valid
74
+ # @return true if the model is valid
75
+ def valid?
76
+ return false if @event_webhook_url.nil?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ event_webhook_url == o.event_webhook_url
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Integer] Hash code
96
+ def hash
97
+ [event_webhook_url].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def self.build_from_hash(attributes)
104
+ new.build_from_hash(attributes)
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def build_from_hash(attributes)
111
+ return nil unless attributes.is_a?(Hash)
112
+ attributes = attributes.transform_keys(&:to_sym)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
+ self.send("#{key}=", nil)
116
+ elsif type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :Time
137
+ Time.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :Boolean
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ # models (e.g. Pet) or oneOf
168
+ klass = Composio.const_get(type)
169
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
+ end
171
+ end
172
+
173
+ # Returns the string representation of the object
174
+ # @return [String] String presentation of the object
175
+ def to_s
176
+ to_hash.to_s
177
+ end
178
+
179
+ # to_body is an alias to to_hash (backward compatibility)
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_body
182
+ to_hash
183
+ end
184
+
185
+ # Returns the object in the form of hash
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_hash
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ if value.nil?
192
+ is_nullable = self.class.openapi_nullable.include?(attr)
193
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
+ end
195
+
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map { |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+
221
+ end
@@ -0,0 +1,221 @@
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 WebhookSecretResDTO
14
+ # Webhook secret
15
+ attr_accessor :webhook_secret
16
+
17
+ # Attribute mapping from ruby-style variable name to JSON key.
18
+ def self.attribute_map
19
+ {
20
+ :'webhook_secret' => :'webhookSecret'
21
+ }
22
+ end
23
+
24
+ # Returns all the JSON keys this model knows about
25
+ def self.acceptable_attributes
26
+ attribute_map.values
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'webhook_secret' => :'String'
33
+ }
34
+ end
35
+
36
+ # List of attributes with nullable: true
37
+ def self.openapi_nullable
38
+ Set.new([
39
+ ])
40
+ end
41
+
42
+ # Initializes the object
43
+ # @param [Hash] attributes Model attributes in the form of hash
44
+ def initialize(attributes = {})
45
+ if (!attributes.is_a?(Hash))
46
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Composio::WebhookSecretResDTO` initialize method"
47
+ end
48
+
49
+ # check to see if the attribute exists and convert string to symbol for hash key
50
+ attributes = attributes.each_with_object({}) { |(k, v), h|
51
+ if (!self.class.attribute_map.key?(k.to_sym))
52
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Composio::WebhookSecretResDTO`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
53
+ end
54
+ h[k.to_sym] = v
55
+ }
56
+
57
+ if attributes.key?(:'webhook_secret')
58
+ self.webhook_secret = attributes[:'webhook_secret']
59
+ end
60
+ end
61
+
62
+ # Show invalid properties with the reasons. Usually used together with valid?
63
+ # @return Array for valid properties with the reasons
64
+ def list_invalid_properties
65
+ invalid_properties = Array.new
66
+ if @webhook_secret.nil?
67
+ invalid_properties.push('invalid value for "webhook_secret", webhook_secret cannot be nil.')
68
+ end
69
+
70
+ invalid_properties
71
+ end
72
+
73
+ # Check to see if the all the properties in the model are valid
74
+ # @return true if the model is valid
75
+ def valid?
76
+ return false if @webhook_secret.nil?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ webhook_secret == o.webhook_secret
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Integer] Hash code
96
+ def hash
97
+ [webhook_secret].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def self.build_from_hash(attributes)
104
+ new.build_from_hash(attributes)
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def build_from_hash(attributes)
111
+ return nil unless attributes.is_a?(Hash)
112
+ attributes = attributes.transform_keys(&:to_sym)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
+ self.send("#{key}=", nil)
116
+ elsif type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :Time
137
+ Time.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :Boolean
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ # models (e.g. Pet) or oneOf
168
+ klass = Composio.const_get(type)
169
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
+ end
171
+ end
172
+
173
+ # Returns the string representation of the object
174
+ # @return [String] String presentation of the object
175
+ def to_s
176
+ to_hash.to_s
177
+ end
178
+
179
+ # to_body is an alias to to_hash (backward compatibility)
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_body
182
+ to_hash
183
+ end
184
+
185
+ # Returns the object in the form of hash
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_hash
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ if value.nil?
192
+ is_nullable = self.class.openapi_nullable.include?(attr)
193
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
+ end
195
+
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ # Outputs non-array value in the form of hash
202
+ # For object, use to_hash. Otherwise, just return the value
203
+ # @param [Object] value Any valid value
204
+ # @return [Hash] Returns the value in the form of hash
205
+ def _to_hash(value)
206
+ if value.is_a?(Array)
207
+ value.compact.map { |v| _to_hash(v) }
208
+ elsif value.is_a?(Hash)
209
+ {}.tap do |hash|
210
+ value.each { |k, v| hash[k] = _to_hash(v) }
211
+ end
212
+ elsif value.respond_to? :to_hash
213
+ value.to_hash
214
+ else
215
+ value
216
+ end
217
+ end
218
+
219
+ end
220
+
221
+ end
@@ -7,5 +7,5 @@ The version of the OpenAPI document: 1.0.0
7
7
  =end
8
8
 
9
9
  module Composio
10
- VERSION = '0.1.6'
10
+ VERSION = '0.1.8'
11
11
  end
data/lib/composio.rb CHANGED
@@ -16,10 +16,14 @@ require 'composio/configuration'
16
16
 
17
17
  # Models
18
18
  require 'composio/models/api_key_res_dto'
19
+ require 'composio/models/action_analytics_dto'
20
+ require 'composio/models/action_by_app_dto'
21
+ require 'composio/models/action_by_status_dto'
19
22
  require 'composio/models/action_details'
20
23
  require 'composio/models/action_details_minimal'
21
24
  require 'composio/models/action_execution_req_dto'
22
25
  require 'composio/models/action_execution_res_dto'
26
+ require 'composio/models/action_get_nla_inputs_req_dto'
23
27
  require 'composio/models/action_log_data'
24
28
  require 'composio/models/action_metadata'
25
29
  require 'composio/models/action_metadata_type'
@@ -33,22 +37,29 @@ require 'composio/models/add_repo_url_req_dto'
33
37
  require 'composio/models/add_repo_url_res_dto'
34
38
  require 'composio/models/add_tools_req_dto'
35
39
  require 'composio/models/add_tools_request_dto'
40
+ require 'composio/models/additional_info'
41
+ require 'composio/models/analytics_data_req_dto'
42
+ require 'composio/models/analytics_data_res_dto'
43
+ require 'composio/models/analytics_entity_data_dto'
36
44
  require 'composio/models/app_info_response_dto'
37
45
  require 'composio/models/app_list_res_dto'
46
+ require 'composio/models/app_name_count_dto'
38
47
  require 'composio/models/app_query_dto'
39
48
  require 'composio/models/auth_config_dto'
40
49
  require 'composio/models/cli_query_dto'
50
+ require 'composio/models/client_unique_user_id_count_dto'
41
51
  require 'composio/models/connected_account_response_dto'
42
52
  require 'composio/models/connection_params'
43
53
  require 'composio/models/connection_params_for_account'
44
54
  require 'composio/models/connection_params_headers'
45
55
  require 'composio/models/connection_with_app_data'
46
- require 'composio/models/connection_with_app_data_created_at'
47
56
  require 'composio/models/connector_list_item_dto'
48
57
  require 'composio/models/connector_list_item_dto_created_at'
49
58
  require 'composio/models/connector_list_item_dto_updated_at'
59
+ require 'composio/models/create_checkout_session_req_dto'
50
60
  require 'composio/models/create_connector_payload_dto'
51
61
  require 'composio/models/create_connector_payload_dto_use_composio_auth'
62
+ require 'composio/models/data'
52
63
  require 'composio/models/delete_api_key_req_dto'
53
64
  require 'composio/models/delete_api_key_response_dto'
54
65
  require 'composio/models/delete_row_apidto'
@@ -57,18 +68,22 @@ require 'composio/models/delete_tools_res_dto'
57
68
  require 'composio/models/direct_execute_req_dto'
58
69
  require 'composio/models/enable_trigger_body_dto'
59
70
  require 'composio/models/enable_trigger_params_dto'
71
+ require 'composio/models/entity_query_req_dto'
60
72
  require 'composio/models/execute_action_res_dto'
73
+ require 'composio/models/fetch_query_dto'
61
74
  require 'composio/models/generate_api_key_req_dto'
62
75
  require 'composio/models/generate_cli_session_req_dto'
63
76
  require 'composio/models/generate_cli_session_res_dto'
64
77
  require 'composio/models/get_active_triggers_query_dto'
65
78
  require 'composio/models/get_cli_session_res_dto'
79
+ require 'composio/models/get_connection_info_response_dto'
66
80
  require 'composio/models/get_connections_query_dto'
67
81
  require 'composio/models/get_connections_response_dto'
68
82
  require 'composio/models/get_connections_result'
69
83
  require 'composio/models/get_connector_info_res_dto'
70
84
  require 'composio/models/get_connector_list_res_dto'
71
85
  require 'composio/models/get_logs_dto'
86
+ require 'composio/models/get_logs_dto_status'
72
87
  require 'composio/models/get_logs_query_dto'
73
88
  require 'composio/models/get_trigger_params_dto'
74
89
  require 'composio/models/get_trigger_response_dto'
@@ -76,16 +91,22 @@ require 'composio/models/handle_trigger_body_dto'
76
91
  require 'composio/models/handle_trigger_params_dto'
77
92
  require 'composio/models/identify_client_req_dto'
78
93
  require 'composio/models/identify_client_res_dto'
94
+ require 'composio/models/ingest_data_dto'
95
+ require 'composio/models/ingest_data_response_dto'
79
96
  require 'composio/models/initiate_connection_payload_dto'
80
97
  require 'composio/models/initiate_connection_response'
98
+ require 'composio/models/integrations_with_counts_dto'
81
99
  require 'composio/models/invite_member_req_dto'
82
- require 'composio/models/job_status'
100
+ require 'composio/models/last_time_period'
83
101
  require 'composio/models/list_triggers_query_dto'
84
102
  require 'composio/models/logout_res_dto'
85
103
  require 'composio/models/logs_res_dto'
86
104
  require 'composio/models/magic_link_req_dto'
87
105
  require 'composio/models/magic_link_res_dto'
106
+ require 'composio/models/member_info_res_dto'
107
+ require 'composio/models/member_info_res_dto_created_at'
88
108
  require 'composio/models/member_res_dto'
109
+ require 'composio/models/member_res_dto_role'
89
110
  require 'composio/models/meta'
90
111
  require 'composio/models/meta_app'
91
112
  require 'composio/models/metadata_query_dto'
@@ -94,20 +115,27 @@ require 'composio/models/o_auth2_callback_query_dto'
94
115
  require 'composio/models/open_api_spec_list_res_dto'
95
116
  require 'composio/models/page_info'
96
117
  require 'composio/models/page_info_dto'
118
+ require 'composio/models/parameter'
97
119
  require 'composio/models/patch_connector_req_dto'
98
120
  require 'composio/models/patch_connector_res_dto'
121
+ require 'composio/models/plan'
99
122
  require 'composio/models/proxy_execution_req_dto'
100
123
  require 'composio/models/redirect_uri_dto'
124
+ require 'composio/models/role'
101
125
  require 'composio/models/set_callback_url_body_dto'
102
126
  require 'composio/models/single_app_info_res_dto'
103
127
  require 'composio/models/single_trigger_res_dto'
128
+ require 'composio/models/state'
104
129
  require 'composio/models/status'
105
130
  require 'composio/models/switch_trigger_status_body_dto'
106
131
  require 'composio/models/switch_trigger_status_params_dto'
132
+ require 'composio/models/t_connection_count_dto'
107
133
  require 'composio/models/time'
134
+ require 'composio/models/time_period_req_dto'
108
135
  require 'composio/models/toggle_connected_account_response_dto'
109
136
  require 'composio/models/toggle_trigger_state_response_dto'
110
137
  require 'composio/models/tools_execute_req_dto'
138
+ require 'composio/models/top_entities_res_dto'
111
139
  require 'composio/models/track_client_req_dto'
112
140
  require 'composio/models/track_client_res_dto'
113
141
  require 'composio/models/trigger_config'
@@ -124,21 +152,28 @@ require 'composio/models/trigger_toggle_info_response_dto'
124
152
  require 'composio/models/triggers_enabled_toggle_req_dto'
125
153
  require 'composio/models/triggers_enabled_toggle_res_dto'
126
154
  require 'composio/models/type'
155
+ require 'composio/models/update_member_req_dto'
156
+ require 'composio/models/update_member_req_dto_role'
127
157
  require 'composio/models/user_git_user_info'
128
158
  require 'composio/models/verify_cli_code_res_dto'
129
159
  require 'composio/models/verify_magic_link_data_dto'
130
160
  require 'composio/models/verify_magic_link_req_dto'
131
161
  require 'composio/models/verify_magic_link_res_dto'
162
+ require 'composio/models/webhook_req_dto'
163
+ require 'composio/models/webhook_secret_res_dto'
132
164
  require 'composio/models/webhook_url_response_dto'
133
165
 
134
166
  # APIs
135
167
  require 'composio/api/api_keys_api'
136
168
  require 'composio/api/actions_api'
169
+ require 'composio/api/analytics_api'
137
170
  require 'composio/api/apps_api'
138
171
  require 'composio/api/auth_api'
139
172
  require 'composio/api/connections_api'
173
+ require 'composio/api/event_logs_api'
140
174
  require 'composio/api/integrations_api'
141
175
  require 'composio/api/logs_api'
176
+ require 'composio/api/payment_api'
142
177
  require 'composio/api/triggers_api'
143
178
 
144
179
  module Composio
@@ -183,22 +218,28 @@ module Composio
183
218
  class Client
184
219
  attr_reader :api_keys
185
220
  attr_reader :actions
221
+ attr_reader :analytics
186
222
  attr_reader :apps
187
223
  attr_reader :auth
188
224
  attr_reader :connections
225
+ attr_reader :event_logs
189
226
  attr_reader :integrations
190
227
  attr_reader :logs
228
+ attr_reader :payment
191
229
  attr_reader :triggers
192
230
 
193
231
  def initialize(config = Configuration.default)
194
232
  @api_client = ApiClient::new(config)
195
233
  @api_keys = Composio::APIKeysApi.new(@api_client)
196
234
  @actions = Composio::ActionsApi.new(@api_client)
235
+ @analytics = Composio::AnalyticsApi.new(@api_client)
197
236
  @apps = Composio::AppsApi.new(@api_client)
198
237
  @auth = Composio::AuthApi.new(@api_client)
199
238
  @connections = Composio::ConnectionsApi.new(@api_client)
239
+ @event_logs = Composio::EventLogsApi.new(@api_client)
200
240
  @integrations = Composio::IntegrationsApi.new(@api_client)
201
241
  @logs = Composio::LogsApi.new(@api_client)
242
+ @payment = Composio::PaymentApi.new(@api_client)
202
243
  @triggers = Composio::TriggersApi.new(@api_client)
203
244
  end
204
245
  end
@@ -64,6 +64,19 @@ describe 'ActionsApi' do
64
64
  end
65
65
  end
66
66
 
67
+ # unit tests for get_action_inputs
68
+ # Get action inputs
69
+ # Get the inputs for an action with NLA
70
+ # @param action_id
71
+ # @param [Hash] opts the optional parameters
72
+ # @option opts [ActionGetNLAInputsReqDTO] :action_get_nla_inputs_req_dto ActionGetNLAInputsReqDTO
73
+ # @return [Object]
74
+ describe 'get_action_inputs test' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ end
78
+ end
79
+
67
80
  # unit tests for get_all_actions_based_on_query
68
81
  # List actions minimal
69
82
  # Retrieve a list of all actions based on query parameters.
@@ -0,0 +1,51 @@
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 'spec_helper'
10
+ require 'json'
11
+
12
+ # Unit tests for Composio::AnalyticsApi
13
+ describe 'AnalyticsApi' do
14
+ before do
15
+ # run before each test
16
+ @api_instance = Composio::AnalyticsApi.new
17
+ end
18
+
19
+ after do
20
+ # run after each test
21
+ end
22
+
23
+ describe 'test an instance of AnalyticsApi' do
24
+ it 'should create an instance of AnalyticsApi' do
25
+ expect(@api_instance).to be_instance_of(Composio::AnalyticsApi)
26
+ end
27
+ end
28
+
29
+ # unit tests for get
30
+ # Get analytics
31
+ # @param [Hash] opts the optional parameters
32
+ # @option opts [String] :last_time_period
33
+ # @return [AnalyticsDataResDTO]
34
+ describe 'get test' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ # unit tests for get_top_entities
41
+ # Get top entities
42
+ # @param [Hash] opts the optional parameters
43
+ # @option opts [String] :query
44
+ # @return [TopEntitiesResDTO]
45
+ describe 'get_top_entities test' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ end