composio 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,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.7'
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,20 +37,25 @@ 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/analytics_data_req_dto'
41
+ require 'composio/models/analytics_data_res_dto'
42
+ require 'composio/models/analytics_entity_data_dto'
36
43
  require 'composio/models/app_info_response_dto'
37
44
  require 'composio/models/app_list_res_dto'
45
+ require 'composio/models/app_name_count_dto'
38
46
  require 'composio/models/app_query_dto'
39
47
  require 'composio/models/auth_config_dto'
40
48
  require 'composio/models/cli_query_dto'
49
+ require 'composio/models/client_unique_user_id_count_dto'
41
50
  require 'composio/models/connected_account_response_dto'
42
51
  require 'composio/models/connection_params'
43
52
  require 'composio/models/connection_params_for_account'
44
53
  require 'composio/models/connection_params_headers'
45
54
  require 'composio/models/connection_with_app_data'
46
- require 'composio/models/connection_with_app_data_created_at'
47
55
  require 'composio/models/connector_list_item_dto'
48
56
  require 'composio/models/connector_list_item_dto_created_at'
49
57
  require 'composio/models/connector_list_item_dto_updated_at'
58
+ require 'composio/models/create_checkout_session_req_dto'
50
59
  require 'composio/models/create_connector_payload_dto'
51
60
  require 'composio/models/create_connector_payload_dto_use_composio_auth'
52
61
  require 'composio/models/delete_api_key_req_dto'
@@ -57,7 +66,9 @@ require 'composio/models/delete_tools_res_dto'
57
66
  require 'composio/models/direct_execute_req_dto'
58
67
  require 'composio/models/enable_trigger_body_dto'
59
68
  require 'composio/models/enable_trigger_params_dto'
69
+ require 'composio/models/entity_query_req_dto'
60
70
  require 'composio/models/execute_action_res_dto'
71
+ require 'composio/models/fetch_query_dto'
61
72
  require 'composio/models/generate_api_key_req_dto'
62
73
  require 'composio/models/generate_cli_session_req_dto'
63
74
  require 'composio/models/generate_cli_session_res_dto'
@@ -69,6 +80,7 @@ require 'composio/models/get_connections_result'
69
80
  require 'composio/models/get_connector_info_res_dto'
70
81
  require 'composio/models/get_connector_list_res_dto'
71
82
  require 'composio/models/get_logs_dto'
83
+ require 'composio/models/get_logs_dto_status'
72
84
  require 'composio/models/get_logs_query_dto'
73
85
  require 'composio/models/get_trigger_params_dto'
74
86
  require 'composio/models/get_trigger_response_dto'
@@ -76,16 +88,22 @@ require 'composio/models/handle_trigger_body_dto'
76
88
  require 'composio/models/handle_trigger_params_dto'
77
89
  require 'composio/models/identify_client_req_dto'
78
90
  require 'composio/models/identify_client_res_dto'
91
+ require 'composio/models/ingest_data_dto'
92
+ require 'composio/models/ingest_data_response_dto'
79
93
  require 'composio/models/initiate_connection_payload_dto'
80
94
  require 'composio/models/initiate_connection_response'
95
+ require 'composio/models/integrations_with_counts_dto'
81
96
  require 'composio/models/invite_member_req_dto'
82
- require 'composio/models/job_status'
97
+ require 'composio/models/last_time_period'
83
98
  require 'composio/models/list_triggers_query_dto'
84
99
  require 'composio/models/logout_res_dto'
85
100
  require 'composio/models/logs_res_dto'
86
101
  require 'composio/models/magic_link_req_dto'
87
102
  require 'composio/models/magic_link_res_dto'
103
+ require 'composio/models/member_info_res_dto'
104
+ require 'composio/models/member_info_res_dto_created_at'
88
105
  require 'composio/models/member_res_dto'
106
+ require 'composio/models/member_res_dto_role'
89
107
  require 'composio/models/meta'
90
108
  require 'composio/models/meta_app'
91
109
  require 'composio/models/metadata_query_dto'
@@ -96,18 +114,24 @@ require 'composio/models/page_info'
96
114
  require 'composio/models/page_info_dto'
97
115
  require 'composio/models/patch_connector_req_dto'
98
116
  require 'composio/models/patch_connector_res_dto'
117
+ require 'composio/models/plan'
99
118
  require 'composio/models/proxy_execution_req_dto'
100
119
  require 'composio/models/redirect_uri_dto'
120
+ require 'composio/models/role'
101
121
  require 'composio/models/set_callback_url_body_dto'
102
122
  require 'composio/models/single_app_info_res_dto'
103
123
  require 'composio/models/single_trigger_res_dto'
124
+ require 'composio/models/state'
104
125
  require 'composio/models/status'
105
126
  require 'composio/models/switch_trigger_status_body_dto'
106
127
  require 'composio/models/switch_trigger_status_params_dto'
128
+ require 'composio/models/t_connection_count_dto'
107
129
  require 'composio/models/time'
130
+ require 'composio/models/time_period_req_dto'
108
131
  require 'composio/models/toggle_connected_account_response_dto'
109
132
  require 'composio/models/toggle_trigger_state_response_dto'
110
133
  require 'composio/models/tools_execute_req_dto'
134
+ require 'composio/models/top_entities_res_dto'
111
135
  require 'composio/models/track_client_req_dto'
112
136
  require 'composio/models/track_client_res_dto'
113
137
  require 'composio/models/trigger_config'
@@ -124,21 +148,28 @@ require 'composio/models/trigger_toggle_info_response_dto'
124
148
  require 'composio/models/triggers_enabled_toggle_req_dto'
125
149
  require 'composio/models/triggers_enabled_toggle_res_dto'
126
150
  require 'composio/models/type'
151
+ require 'composio/models/update_member_req_dto'
152
+ require 'composio/models/update_member_req_dto_role'
127
153
  require 'composio/models/user_git_user_info'
128
154
  require 'composio/models/verify_cli_code_res_dto'
129
155
  require 'composio/models/verify_magic_link_data_dto'
130
156
  require 'composio/models/verify_magic_link_req_dto'
131
157
  require 'composio/models/verify_magic_link_res_dto'
158
+ require 'composio/models/webhook_req_dto'
159
+ require 'composio/models/webhook_secret_res_dto'
132
160
  require 'composio/models/webhook_url_response_dto'
133
161
 
134
162
  # APIs
135
163
  require 'composio/api/api_keys_api'
136
164
  require 'composio/api/actions_api'
165
+ require 'composio/api/analytics_api'
137
166
  require 'composio/api/apps_api'
138
167
  require 'composio/api/auth_api'
139
168
  require 'composio/api/connections_api'
169
+ require 'composio/api/event_logs_api'
140
170
  require 'composio/api/integrations_api'
141
171
  require 'composio/api/logs_api'
172
+ require 'composio/api/payment_api'
142
173
  require 'composio/api/triggers_api'
143
174
 
144
175
  module Composio
@@ -183,22 +214,28 @@ module Composio
183
214
  class Client
184
215
  attr_reader :api_keys
185
216
  attr_reader :actions
217
+ attr_reader :analytics
186
218
  attr_reader :apps
187
219
  attr_reader :auth
188
220
  attr_reader :connections
221
+ attr_reader :event_logs
189
222
  attr_reader :integrations
190
223
  attr_reader :logs
224
+ attr_reader :payment
191
225
  attr_reader :triggers
192
226
 
193
227
  def initialize(config = Configuration.default)
194
228
  @api_client = ApiClient::new(config)
195
229
  @api_keys = Composio::APIKeysApi.new(@api_client)
196
230
  @actions = Composio::ActionsApi.new(@api_client)
231
+ @analytics = Composio::AnalyticsApi.new(@api_client)
197
232
  @apps = Composio::AppsApi.new(@api_client)
198
233
  @auth = Composio::AuthApi.new(@api_client)
199
234
  @connections = Composio::ConnectionsApi.new(@api_client)
235
+ @event_logs = Composio::EventLogsApi.new(@api_client)
200
236
  @integrations = Composio::IntegrationsApi.new(@api_client)
201
237
  @logs = Composio::LogsApi.new(@api_client)
238
+ @payment = Composio::PaymentApi.new(@api_client)
202
239
  @triggers = Composio::TriggersApi.new(@api_client)
203
240
  end
204
241
  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
@@ -26,6 +26,17 @@ describe 'AppsApi' do
26
26
  end
27
27
  end
28
28
 
29
+ # unit tests for delete_open_api_spec_tool
30
+ # Delete open api spec tool
31
+ # @param id
32
+ # @param [Hash] opts the optional parameters
33
+ # @return [Object]
34
+ describe 'delete_open_api_spec_tool 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
+
29
40
  # unit tests for get_details
30
41
  # Get app
31
42
  # Get app details
@@ -38,6 +49,17 @@ describe 'AppsApi' do
38
49
  end
39
50
  end
40
51
 
52
+ # unit tests for get_open_api_spec_status
53
+ # Get open api spec status
54
+ # @param id
55
+ # @param [Hash] opts the optional parameters
56
+ # @return [Object]
57
+ describe 'get_open_api_spec_status test' do
58
+ it 'should work' do
59
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
+ end
61
+ end
62
+
41
63
  # unit tests for list
42
64
  # Get apps
43
65
  # Retrieve a list of all applications based on query parameters.
@@ -61,4 +83,16 @@ describe 'AppsApi' do
61
83
  end
62
84
  end
63
85
 
86
+ # unit tests for send_email_to_client
87
+ # Send email to client
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [String] :admin_token
90
+ # @option opts [Object] :body
91
+ # @return [Object]
92
+ describe 'send_email_to_client test' do
93
+ it 'should work' do
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
64
98
  end
@@ -0,0 +1,83 @@
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::EventLogsApi
13
+ describe 'EventLogsApi' do
14
+ before do
15
+ # run before each test
16
+ @api_instance = Composio::EventLogsApi.new
17
+ end
18
+
19
+ after do
20
+ # run after each test
21
+ end
22
+
23
+ describe 'test an instance of EventLogsApi' do
24
+ it 'should create an instance of EventLogsApi' do
25
+ expect(@api_instance).to be_instance_of(Composio::EventLogsApi)
26
+ end
27
+ end
28
+
29
+ # unit tests for get_events
30
+ # Get events
31
+ # Fetch events from database
32
+ # @param start_time
33
+ # @param end_time
34
+ # @param [Hash] opts the optional parameters
35
+ # @return [Object]
36
+ describe 'get_events test' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
39
+ end
40
+ end
41
+
42
+ # unit tests for get_webhook
43
+ # Get webhook
44
+ # @param [Hash] opts the optional parameters
45
+ # @return [Object]
46
+ describe 'get_webhook test' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ # unit tests for get_webhook_secret
53
+ # Get webhook secret
54
+ # @param [Hash] opts the optional parameters
55
+ # @return [Object]
56
+ describe 'get_webhook_secret test' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ # unit tests for refresh_webhook_secret
63
+ # Refresh webhook
64
+ # @param [Hash] opts the optional parameters
65
+ # @return [Object]
66
+ describe 'refresh_webhook_secret test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
72
+ # unit tests for update_webhook
73
+ # Update webhook
74
+ # @param [Hash] opts the optional parameters
75
+ # @option opts [WebhookReqDTO] :webhook_req_dto WebhookReqDTO
76
+ # @return [Object]
77
+ describe 'update_webhook test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ end
@@ -26,6 +26,18 @@ describe 'LogsApi' do
26
26
  end
27
27
  end
28
28
 
29
+ # unit tests for add_new_logs
30
+ # Post logs
31
+ # Add new logs
32
+ # @param [Hash] opts the optional parameters
33
+ # @option opts [IngestDataDTO] :ingest_data_dto IngestDataDTO
34
+ # @return [IngestDataResponseDTO]
35
+ describe 'add_new_logs test' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
29
41
  # unit tests for list
30
42
  # Get logs
31
43
  # List logs
@@ -38,7 +50,7 @@ describe 'LogsApi' do
38
50
  # @option opts [String] :entity_id
39
51
  # @option opts [Float] :limit
40
52
  # @option opts [String] :cursor
41
- # @option opts [String] :connection_id
53
+ # @option opts [String] :logs_type
42
54
  # @return [LogsResDTO]
43
55
  describe 'list test' do
44
56
  it 'should work' do