composio 0.1.17 → 0.1.19
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +18 -18
- data/README.md +28 -6
- data/lib/composio/api/actions_api.rb +41 -26
- data/lib/composio/api/integrations_api.rb +12 -5
- data/lib/composio/api/triggers_api.rb +3 -3
- data/lib/composio/models/action_proxy_request_config_dto.rb +277 -0
- data/lib/composio/models/action_proxy_request_method_dto.rb +226 -0
- data/lib/composio/models/direct_execute_req_dto.rb +13 -4
- data/lib/composio/models/get_logs_dto.rb +1 -1
- data/lib/composio/models/get_logs_dto_type.rb +37 -0
- data/lib/composio/models/method.rb +39 -0
- data/lib/composio/models/model_in.rb +36 -0
- data/lib/composio/models/parameter.rb +4 -1
- data/lib/composio/models/type.rb +7 -4
- data/lib/composio/version.rb +1 -1
- data/lib/composio.rb +5 -0
- data/spec/api/actions_api_spec.rb +1 -2
- data/spec/models/action_proxy_request_config_dto_spec.rb +52 -0
- data/spec/models/action_proxy_request_method_dto_spec.rb +34 -0
- data/spec/models/direct_execute_req_dto_spec.rb +6 -0
- data/spec/models/get_logs_dto_type_spec.rb +22 -0
- data/spec/models/method_spec.rb +22 -0
- data/spec/models/model_in_spec.rb +22 -0
- metadata +163 -148
@@ -0,0 +1,226 @@
|
|
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 ActionProxyRequestMethodDTO
|
14
|
+
# The type of request body to use for the action. Defaults to 'none'.
|
15
|
+
attr_accessor :type
|
16
|
+
|
17
|
+
# The data to be sent to the endpoint. This will override the body set in the connected account.
|
18
|
+
attr_accessor :data
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'type' => :'type',
|
24
|
+
:'data' => :'data'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Returns all the JSON keys this model knows about
|
29
|
+
def self.acceptable_attributes
|
30
|
+
attribute_map.values
|
31
|
+
end
|
32
|
+
|
33
|
+
# Attribute type mapping.
|
34
|
+
def self.openapi_types
|
35
|
+
{
|
36
|
+
:'type' => :'Type',
|
37
|
+
:'data' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# List of attributes with nullable: true
|
42
|
+
def self.openapi_nullable
|
43
|
+
Set.new([
|
44
|
+
])
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
+
def initialize(attributes = {})
|
50
|
+
if (!attributes.is_a?(Hash))
|
51
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Composio::ActionProxyRequestMethodDTO` initialize method"
|
52
|
+
end
|
53
|
+
|
54
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
56
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
57
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Composio::ActionProxyRequestMethodDTO`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
|
+
end
|
59
|
+
h[k.to_sym] = v
|
60
|
+
}
|
61
|
+
|
62
|
+
if attributes.key?(:'type')
|
63
|
+
self.type = attributes[:'type']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.key?(:'data')
|
67
|
+
self.data = attributes[:'data']
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
72
|
+
# @return Array for valid properties with the reasons
|
73
|
+
def list_invalid_properties
|
74
|
+
invalid_properties = Array.new
|
75
|
+
invalid_properties
|
76
|
+
end
|
77
|
+
|
78
|
+
# Check to see if the all the properties in the model are valid
|
79
|
+
# @return true if the model is valid
|
80
|
+
def valid?
|
81
|
+
true
|
82
|
+
end
|
83
|
+
|
84
|
+
# Checks equality by comparing each attribute.
|
85
|
+
# @param [Object] Object to be compared
|
86
|
+
def ==(o)
|
87
|
+
return true if self.equal?(o)
|
88
|
+
self.class == o.class &&
|
89
|
+
type == o.type &&
|
90
|
+
data == o.data
|
91
|
+
end
|
92
|
+
|
93
|
+
# @see the `==` method
|
94
|
+
# @param [Object] Object to be compared
|
95
|
+
def eql?(o)
|
96
|
+
self == o
|
97
|
+
end
|
98
|
+
|
99
|
+
# Calculates hash code according to all attributes.
|
100
|
+
# @return [Integer] Hash code
|
101
|
+
def hash
|
102
|
+
[type, data].hash
|
103
|
+
end
|
104
|
+
|
105
|
+
# Builds the object from hash
|
106
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
107
|
+
# @return [Object] Returns the model itself
|
108
|
+
def self.build_from_hash(attributes)
|
109
|
+
new.build_from_hash(attributes)
|
110
|
+
end
|
111
|
+
|
112
|
+
# Builds the object from hash
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
114
|
+
# @return [Object] Returns the model itself
|
115
|
+
def build_from_hash(attributes)
|
116
|
+
return nil unless attributes.is_a?(Hash)
|
117
|
+
attributes = attributes.transform_keys(&:to_sym)
|
118
|
+
self.class.openapi_types.each_pair do |key, type|
|
119
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
120
|
+
self.send("#{key}=", nil)
|
121
|
+
elsif type =~ /\AArray<(.*)>/i
|
122
|
+
# check to ensure the input is an array given that the attribute
|
123
|
+
# is documented as an array but the input is not
|
124
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
125
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
126
|
+
end
|
127
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
128
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
self
|
133
|
+
end
|
134
|
+
|
135
|
+
# Deserializes the data based on type
|
136
|
+
# @param string type Data type
|
137
|
+
# @param string value Value to be deserialized
|
138
|
+
# @return [Object] Deserialized data
|
139
|
+
def _deserialize(type, value)
|
140
|
+
case type.to_sym
|
141
|
+
when :Time
|
142
|
+
Time.parse(value)
|
143
|
+
when :Date
|
144
|
+
Date.parse(value)
|
145
|
+
when :String
|
146
|
+
value.to_s
|
147
|
+
when :Integer
|
148
|
+
value.to_i
|
149
|
+
when :Float
|
150
|
+
value.to_f
|
151
|
+
when :Boolean
|
152
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
153
|
+
true
|
154
|
+
else
|
155
|
+
false
|
156
|
+
end
|
157
|
+
when :Object
|
158
|
+
# generic object (usually a Hash), return directly
|
159
|
+
value
|
160
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
161
|
+
inner_type = Regexp.last_match[:inner_type]
|
162
|
+
value.map { |v| _deserialize(inner_type, v) }
|
163
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
164
|
+
k_type = Regexp.last_match[:k_type]
|
165
|
+
v_type = Regexp.last_match[:v_type]
|
166
|
+
{}.tap do |hash|
|
167
|
+
value.each do |k, v|
|
168
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
else # model
|
172
|
+
# models (e.g. Pet) or oneOf
|
173
|
+
klass = Composio.const_get(type)
|
174
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
if value.nil?
|
197
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
198
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
199
|
+
end
|
200
|
+
|
201
|
+
hash[param] = _to_hash(value)
|
202
|
+
end
|
203
|
+
hash
|
204
|
+
end
|
205
|
+
|
206
|
+
# Outputs non-array value in the form of hash
|
207
|
+
# For object, use to_hash. Otherwise, just return the value
|
208
|
+
# @param [Object] value Any valid value
|
209
|
+
# @return [Hash] Returns the value in the form of hash
|
210
|
+
def _to_hash(value)
|
211
|
+
if value.is_a?(Array)
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
213
|
+
elsif value.is_a?(Hash)
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
216
|
+
end
|
217
|
+
elsif value.respond_to? :to_hash
|
218
|
+
value.to_hash
|
219
|
+
else
|
220
|
+
value
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
@@ -19,13 +19,16 @@ module Composio
|
|
19
19
|
|
20
20
|
attr_accessor :_query_params
|
21
21
|
|
22
|
+
attr_accessor :body
|
23
|
+
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
25
27
|
:'endpoint' => :'endpoint',
|
26
28
|
:'base_url' => :'base_url',
|
27
29
|
:'headers' => :'headers',
|
28
|
-
:'_query_params' => :'queryParams'
|
30
|
+
:'_query_params' => :'queryParams',
|
31
|
+
:'body' => :'body'
|
29
32
|
}
|
30
33
|
end
|
31
34
|
|
@@ -40,7 +43,8 @@ module Composio
|
|
40
43
|
:'endpoint' => :'String',
|
41
44
|
:'base_url' => :'String',
|
42
45
|
:'headers' => :'Object',
|
43
|
-
:'_query_params' => :'Object'
|
46
|
+
:'_query_params' => :'Object',
|
47
|
+
:'body' => :'Object'
|
44
48
|
}
|
45
49
|
end
|
46
50
|
|
@@ -80,6 +84,10 @@ module Composio
|
|
80
84
|
if attributes.key?(:'_query_params')
|
81
85
|
self._query_params = attributes[:'_query_params']
|
82
86
|
end
|
87
|
+
|
88
|
+
if attributes.key?(:'body')
|
89
|
+
self.body = attributes[:'body']
|
90
|
+
end
|
83
91
|
end
|
84
92
|
|
85
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -123,7 +131,8 @@ module Composio
|
|
123
131
|
endpoint == o.endpoint &&
|
124
132
|
base_url == o.base_url &&
|
125
133
|
headers == o.headers &&
|
126
|
-
_query_params == o._query_params
|
134
|
+
_query_params == o._query_params &&
|
135
|
+
body == o.body
|
127
136
|
end
|
128
137
|
|
129
138
|
# @see the `==` method
|
@@ -135,7 +144,7 @@ module Composio
|
|
135
144
|
# Calculates hash code according to all attributes.
|
136
145
|
# @return [Integer] Hash code
|
137
146
|
def hash
|
138
|
-
[endpoint, base_url, headers, _query_params].hash
|
147
|
+
[endpoint, base_url, headers, _query_params, body].hash
|
139
148
|
end
|
140
149
|
|
141
150
|
# Builds the object from hash
|
@@ -0,0 +1,37 @@
|
|
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 GetLogsDtoType
|
14
|
+
ERROR = "error".freeze
|
15
|
+
INFO = "info".freeze
|
16
|
+
DEBUG = "debug".freeze
|
17
|
+
|
18
|
+
def self.all_vars
|
19
|
+
@all_vars ||= [ERROR, INFO, DEBUG].freeze
|
20
|
+
end
|
21
|
+
|
22
|
+
# Builds the enum from string
|
23
|
+
# @param [String] The enum value in the form of the string
|
24
|
+
# @return [String] The enum value
|
25
|
+
def self.build_from_hash(value)
|
26
|
+
new.build_from_hash(value)
|
27
|
+
end
|
28
|
+
|
29
|
+
# Builds the enum from string
|
30
|
+
# @param [String] The enum value in the form of the string
|
31
|
+
# @return [String] The enum value
|
32
|
+
def build_from_hash(value)
|
33
|
+
return value if GetLogsDtoType.all_vars.include?(value)
|
34
|
+
raise "Invalid ENUM value #{value} for class #GetLogsDtoType"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,39 @@
|
|
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 Method
|
14
|
+
GET = "GET".freeze
|
15
|
+
POST = "POST".freeze
|
16
|
+
PUT = "PUT".freeze
|
17
|
+
PATCH = "PATCH".freeze
|
18
|
+
DELETE = "DELETE".freeze
|
19
|
+
|
20
|
+
def self.all_vars
|
21
|
+
@all_vars ||= [GET, POST, PUT, PATCH, DELETE].freeze
|
22
|
+
end
|
23
|
+
|
24
|
+
# Builds the enum from string
|
25
|
+
# @param [String] The enum value in the form of the string
|
26
|
+
# @return [String] The enum value
|
27
|
+
def self.build_from_hash(value)
|
28
|
+
new.build_from_hash(value)
|
29
|
+
end
|
30
|
+
|
31
|
+
# Builds the enum from string
|
32
|
+
# @param [String] The enum value in the form of the string
|
33
|
+
# @return [String] The enum value
|
34
|
+
def build_from_hash(value)
|
35
|
+
return value if Method.all_vars.include?(value)
|
36
|
+
raise "Invalid ENUM value #{value} for class #Method"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -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 ModelIn
|
14
|
+
QUERY = "query".freeze
|
15
|
+
HEADER = "header".freeze
|
16
|
+
|
17
|
+
def self.all_vars
|
18
|
+
@all_vars ||= [QUERY, HEADER].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 ModelIn.all_vars.include?(value)
|
33
|
+
raise "Invalid ENUM value #{value} for class #ModelIn"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -11,10 +11,13 @@ require 'time'
|
|
11
11
|
|
12
12
|
module Composio
|
13
13
|
class Parameter
|
14
|
+
# The name of the parameter. For example, 'x-api-key', 'Content-Type', etc.,
|
14
15
|
attr_accessor :name
|
15
16
|
|
17
|
+
# The location of the parameter. Can be 'query' or 'header'.
|
16
18
|
attr_accessor :_in
|
17
19
|
|
20
|
+
# The value of the parameter. For example, '1234567890', 'application/json', etc.,
|
18
21
|
attr_accessor :value
|
19
22
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -35,7 +38,7 @@ module Composio
|
|
35
38
|
def self.openapi_types
|
36
39
|
{
|
37
40
|
:'name' => :'String',
|
38
|
-
:'_in' => :'
|
41
|
+
:'_in' => :'ModelIn',
|
39
42
|
:'value' => :'String'
|
40
43
|
}
|
41
44
|
end
|
data/lib/composio/models/type.rb
CHANGED
@@ -11,12 +11,15 @@ require 'time'
|
|
11
11
|
|
12
12
|
module Composio
|
13
13
|
class Type
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
FORM_DATA = "formData".freeze
|
15
|
+
URL_ENCODED = "urlEncoded".freeze
|
16
|
+
RAW = "raw".freeze
|
17
|
+
BINARY = "binary".freeze
|
18
|
+
GRAPHQL = "graphql".freeze
|
19
|
+
NONE = "none".freeze
|
17
20
|
|
18
21
|
def self.all_vars
|
19
|
-
@all_vars ||= [
|
22
|
+
@all_vars ||= [FORM_DATA, URL_ENCODED, RAW, BINARY, GRAPHQL, NONE].freeze
|
20
23
|
end
|
21
24
|
|
22
25
|
# Builds the enum from string
|
data/lib/composio/version.rb
CHANGED
data/lib/composio.rb
CHANGED
@@ -27,6 +27,8 @@ require 'composio/models/action_get_nla_inputs_req_dto'
|
|
27
27
|
require 'composio/models/action_log_data'
|
28
28
|
require 'composio/models/action_metadata'
|
29
29
|
require 'composio/models/action_metadata_type'
|
30
|
+
require 'composio/models/action_proxy_request_config_dto'
|
31
|
+
require 'composio/models/action_proxy_request_method_dto'
|
30
32
|
require 'composio/models/actions_controller_v1'
|
31
33
|
require 'composio/models/actions_list_response_dto'
|
32
34
|
require 'composio/models/actions_minimal_list_response_dto'
|
@@ -91,6 +93,7 @@ require 'composio/models/get_connector_info_res_dto'
|
|
91
93
|
require 'composio/models/get_connector_list_res_dto'
|
92
94
|
require 'composio/models/get_logs_dto'
|
93
95
|
require 'composio/models/get_logs_dto_status'
|
96
|
+
require 'composio/models/get_logs_dto_type'
|
94
97
|
require 'composio/models/get_logs_query_dto'
|
95
98
|
require 'composio/models/get_trigger_params_dto'
|
96
99
|
require 'composio/models/get_trigger_response_dto'
|
@@ -118,6 +121,8 @@ require 'composio/models/meta'
|
|
118
121
|
require 'composio/models/meta_app'
|
119
122
|
require 'composio/models/metadata_query_dto'
|
120
123
|
require 'composio/models/metadata_req_dto'
|
124
|
+
require 'composio/models/method'
|
125
|
+
require 'composio/models/model_in'
|
121
126
|
require 'composio/models/o_auth2_callback_query_dto'
|
122
127
|
require 'composio/models/open_api_spec_list_res_dto'
|
123
128
|
require 'composio/models/page_info'
|
@@ -42,9 +42,8 @@ describe 'ActionsApi' do
|
|
42
42
|
# unit tests for execute_action_proxy
|
43
43
|
# Execute action proxy
|
44
44
|
# Execute an action with direct auth.
|
45
|
-
# @param endpoint
|
46
|
-
# @param connected_account_id
|
47
45
|
# @param [Hash] opts the optional parameters
|
46
|
+
# @option opts [ActionProxyRequestConfigDTO] :action_proxy_request_config_dto ActionProxyRequestConfigDTO
|
48
47
|
# @return [ActionExecutionResDto]
|
49
48
|
describe 'execute_action_proxy test' do
|
50
49
|
it 'should work' do
|
@@ -0,0 +1,52 @@
|
|
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
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Composio::ActionProxyRequestConfigDTO
|
14
|
+
describe Composio::ActionProxyRequestConfigDTO do
|
15
|
+
let(:instance) { Composio::ActionProxyRequestConfigDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ActionProxyRequestConfigDTO' do
|
18
|
+
it 'should create an instance of ActionProxyRequestConfigDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::ActionProxyRequestConfigDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "parameters"' do
|
23
|
+
it 'should work' do
|
24
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test attribute "connected_account_id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "endpoint"' 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
|
+
describe 'test attribute "method"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "body"' 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
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Composio::ActionProxyRequestMethodDTO
|
14
|
+
describe Composio::ActionProxyRequestMethodDTO do
|
15
|
+
let(:instance) { Composio::ActionProxyRequestMethodDTO.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ActionProxyRequestMethodDTO' do
|
18
|
+
it 'should create an instance of ActionProxyRequestMethodDTO' do
|
19
|
+
expect(instance).to be_instance_of(Composio::ActionProxyRequestMethodDTO)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
describe 'test attribute "type"' do
|
23
|
+
it 'should work' do
|
24
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test attribute "data"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,22 @@
|
|
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
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Composio::GetLogsDtoType
|
14
|
+
describe Composio::GetLogsDtoType do
|
15
|
+
let(:instance) { Composio::GetLogsDtoType.new }
|
16
|
+
|
17
|
+
describe 'test an instance of GetLogsDtoType' do
|
18
|
+
it 'should create an instance of GetLogsDtoType' do
|
19
|
+
expect(instance).to be_instance_of(Composio::GetLogsDtoType)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
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
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Composio::Method
|
14
|
+
describe Composio::Method do
|
15
|
+
let(:instance) { Composio::Method.new }
|
16
|
+
|
17
|
+
describe 'test an instance of Method' do
|
18
|
+
it 'should create an instance of Method' do
|
19
|
+
expect(instance).to be_instance_of(Composio::Method)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
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
|
+
require 'date'
|
12
|
+
|
13
|
+
# Unit tests for Composio::ModelIn
|
14
|
+
describe Composio::ModelIn do
|
15
|
+
let(:instance) { Composio::ModelIn.new }
|
16
|
+
|
17
|
+
describe 'test an instance of ModelIn' do
|
18
|
+
it 'should create an instance of ModelIn' do
|
19
|
+
expect(instance).to be_instance_of(Composio::ModelIn)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|