composio 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -13
- data/README.md +5 -611
- data/lib/composio/api/actions_api.rb +52 -634
- data/lib/composio/api/auth_api.rb +0 -257
- data/lib/composio/api/integrations_api.rb +8 -113
- data/lib/composio/api/triggers_api.rb +0 -197
- data/lib/composio/models/action_details.rb +18 -4
- data/lib/composio/models/action_details_minimal.rb +18 -4
- data/lib/composio/models/initiate_connection_response.rb +13 -4
- data/lib/composio/version.rb +1 -1
- data/lib/composio.rb +0 -9
- data/spec/api/actions_api_spec.rb +1 -77
- data/spec/api/auth_api_spec.rb +0 -33
- data/spec/api/integrations_api_spec.rb +2 -14
- data/spec/api/triggers_api_spec.rb +0 -25
- data/spec/models/action_details_minimal_spec.rb +6 -0
- data/spec/models/action_details_spec.rb +6 -0
- data/spec/models/initiate_connection_response_spec.rb +6 -0
- data/spec/simple_test_spec.rb +8 -0
- metadata +107 -116
- data/lib/composio/api/cli_api.rb +0 -266
- data/lib/composio/api/metadata_api.rb +0 -180
- data/lib/composio/api/team_api.rb +0 -188
- data/spec/api/cli_api_spec.rb +0 -63
- data/spec/api/metadata_api_spec.rb +0 -50
- data/spec/api/team_api_spec.rb +0 -50
@@ -1,180 +0,0 @@
|
|
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 'cgi'
|
10
|
-
|
11
|
-
module Composio
|
12
|
-
class MetadataApi
|
13
|
-
attr_accessor :api_client
|
14
|
-
|
15
|
-
def initialize(api_client = ApiClient.default)
|
16
|
-
@api_client = api_client
|
17
|
-
end
|
18
|
-
|
19
|
-
# Get toggle info
|
20
|
-
#
|
21
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
22
|
-
def get_toggle_info(extra: {})
|
23
|
-
api_response = get_toggle_info_with_http_info_impl(extra)
|
24
|
-
api_response.data
|
25
|
-
end
|
26
|
-
|
27
|
-
# Get toggle info
|
28
|
-
#
|
29
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
30
|
-
def get_toggle_info_with_http_info(extra: {})
|
31
|
-
get_toggle_info_with_http_info_impl(extra)
|
32
|
-
end
|
33
|
-
|
34
|
-
# Get toggle info
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [TriggerToggleInfoResponseDTO]
|
37
|
-
private def get_toggle_info_impl(opts = {})
|
38
|
-
data, _status_code, _headers = get_toggle_info_with_http_info(opts)
|
39
|
-
data
|
40
|
-
end
|
41
|
-
|
42
|
-
# Get toggle info
|
43
|
-
# @param [Hash] opts the optional parameters
|
44
|
-
# @return [APIResponse] data is TriggerToggleInfoResponseDTO, status code, headers and response
|
45
|
-
private def get_toggle_info_with_http_info_impl(opts = {})
|
46
|
-
if @api_client.config.debugging
|
47
|
-
@api_client.config.logger.debug 'Calling API: MetadataApi.get_toggle_info ...'
|
48
|
-
end
|
49
|
-
# resource path
|
50
|
-
local_var_path = '/api/v1/metadata/toggle.info'
|
51
|
-
|
52
|
-
# query parameters
|
53
|
-
query_params = opts[:query_params] || {}
|
54
|
-
|
55
|
-
# header parameters
|
56
|
-
header_params = opts[:header_params] || {}
|
57
|
-
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
-
|
60
|
-
# form parameters
|
61
|
-
form_params = opts[:form_params] || {}
|
62
|
-
|
63
|
-
# http body (model)
|
64
|
-
post_body = opts[:debug_body]
|
65
|
-
|
66
|
-
# return_type
|
67
|
-
return_type = opts[:debug_return_type] || 'TriggerToggleInfoResponseDTO'
|
68
|
-
|
69
|
-
# auth_names
|
70
|
-
auth_names = opts[:debug_auth_names] || ['api_key']
|
71
|
-
|
72
|
-
new_options = opts.merge(
|
73
|
-
:operation => :"MetadataApi.get_toggle_info",
|
74
|
-
:header_params => header_params,
|
75
|
-
:query_params => query_params,
|
76
|
-
:form_params => form_params,
|
77
|
-
:body => post_body,
|
78
|
-
:auth_names => auth_names,
|
79
|
-
:return_type => return_type
|
80
|
-
)
|
81
|
-
|
82
|
-
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
83
|
-
if @api_client.config.debugging
|
84
|
-
@api_client.config.logger.debug "API called: MetadataApi#get_toggle_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
85
|
-
end
|
86
|
-
APIResponse::new(data, status_code, headers, response)
|
87
|
-
end
|
88
|
-
|
89
|
-
|
90
|
-
# Toggle trigger state
|
91
|
-
#
|
92
|
-
# @param enabled [Boolean] Flag to enable or disable triggers
|
93
|
-
# @param body [TriggersEnabledToggleReqDTO]
|
94
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
95
|
-
def toggle_trigger_state(enabled:, extra: {})
|
96
|
-
_body = {}
|
97
|
-
_body[:enabled] = enabled if enabled != SENTINEL
|
98
|
-
extra[:triggers_enabled_toggle_req_dto] = _body if !_body.empty?
|
99
|
-
api_response = toggle_trigger_state_with_http_info_impl(extra)
|
100
|
-
api_response.data
|
101
|
-
end
|
102
|
-
|
103
|
-
# Toggle trigger state
|
104
|
-
#
|
105
|
-
# @param enabled [Boolean] Flag to enable or disable triggers
|
106
|
-
# @param body [TriggersEnabledToggleReqDTO]
|
107
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
108
|
-
def toggle_trigger_state_with_http_info(enabled:, extra: {})
|
109
|
-
_body = {}
|
110
|
-
_body[:enabled] = enabled if enabled != SENTINEL
|
111
|
-
extra[:triggers_enabled_toggle_req_dto] = _body if !_body.empty?
|
112
|
-
toggle_trigger_state_with_http_info_impl(extra)
|
113
|
-
end
|
114
|
-
|
115
|
-
# Toggle trigger state
|
116
|
-
# @param [Hash] opts the optional parameters
|
117
|
-
# @option opts [TriggersEnabledToggleReqDTO] :triggers_enabled_toggle_req_dto TriggersEnabledToggleReqDTO
|
118
|
-
# @return [ToggleTriggerStateResponseDTO]
|
119
|
-
private def toggle_trigger_state_impl(opts = {})
|
120
|
-
data, _status_code, _headers = toggle_trigger_state_with_http_info(opts)
|
121
|
-
data
|
122
|
-
end
|
123
|
-
|
124
|
-
# Toggle trigger state
|
125
|
-
# @param [Hash] opts the optional parameters
|
126
|
-
# @option opts [TriggersEnabledToggleReqDTO] :triggers_enabled_toggle_req_dto TriggersEnabledToggleReqDTO
|
127
|
-
# @return [APIResponse] data is ToggleTriggerStateResponseDTO, status code, headers and response
|
128
|
-
private def toggle_trigger_state_with_http_info_impl(opts = {})
|
129
|
-
if @api_client.config.debugging
|
130
|
-
@api_client.config.logger.debug 'Calling API: MetadataApi.toggle_trigger_state ...'
|
131
|
-
end
|
132
|
-
# resource path
|
133
|
-
local_var_path = '/api/v1/metadata/toggle/trigger'
|
134
|
-
|
135
|
-
# query parameters
|
136
|
-
query_params = opts[:query_params] || {}
|
137
|
-
|
138
|
-
# header parameters
|
139
|
-
header_params = opts[:header_params] || {}
|
140
|
-
# HTTP header 'Accept' (if needed)
|
141
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
142
|
-
# HTTP header 'Content-Type'
|
143
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
144
|
-
if !content_type.nil?
|
145
|
-
header_params['Content-Type'] = content_type
|
146
|
-
end
|
147
|
-
|
148
|
-
# form parameters
|
149
|
-
form_params = opts[:form_params] || {}
|
150
|
-
|
151
|
-
# http body (model)
|
152
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'triggers_enabled_toggle_req_dto'])
|
153
|
-
|
154
|
-
# return_type
|
155
|
-
return_type = opts[:debug_return_type] || 'ToggleTriggerStateResponseDTO'
|
156
|
-
|
157
|
-
# auth_names
|
158
|
-
auth_names = opts[:debug_auth_names] || ['api_key']
|
159
|
-
|
160
|
-
new_options = opts.merge(
|
161
|
-
:operation => :"MetadataApi.toggle_trigger_state",
|
162
|
-
:header_params => header_params,
|
163
|
-
:query_params => query_params,
|
164
|
-
:form_params => form_params,
|
165
|
-
:body => post_body,
|
166
|
-
:auth_names => auth_names,
|
167
|
-
:return_type => return_type
|
168
|
-
)
|
169
|
-
|
170
|
-
data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
|
171
|
-
if @api_client.config.debugging
|
172
|
-
@api_client.config.logger.debug "API called: MetadataApi#toggle_trigger_state\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
173
|
-
end
|
174
|
-
APIResponse::new(data, status_code, headers, response)
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
|
-
# top-level client access to avoid having the user to insantiate their own API instances
|
179
|
-
Metadata = MetadataApi::new
|
180
|
-
end
|
@@ -1,188 +0,0 @@
|
|
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 'cgi'
|
10
|
-
|
11
|
-
module Composio
|
12
|
-
class TeamApi
|
13
|
-
attr_accessor :api_client
|
14
|
-
|
15
|
-
def initialize(api_client = ApiClient.default)
|
16
|
-
@api_client = api_client
|
17
|
-
end
|
18
|
-
|
19
|
-
# List members
|
20
|
-
#
|
21
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
22
|
-
def get_member_list(extra: {})
|
23
|
-
api_response = get_member_list_with_http_info_impl(extra)
|
24
|
-
api_response.data
|
25
|
-
end
|
26
|
-
|
27
|
-
# List members
|
28
|
-
#
|
29
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
30
|
-
def get_member_list_with_http_info(extra: {})
|
31
|
-
get_member_list_with_http_info_impl(extra)
|
32
|
-
end
|
33
|
-
|
34
|
-
# List members
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<MemberResDTO>]
|
37
|
-
private def get_member_list_impl(opts = {})
|
38
|
-
data, _status_code, _headers = get_member_list_with_http_info(opts)
|
39
|
-
data
|
40
|
-
end
|
41
|
-
|
42
|
-
# List members
|
43
|
-
# @param [Hash] opts the optional parameters
|
44
|
-
# @return [APIResponse] data is Array<MemberResDTO>, status code, headers and response
|
45
|
-
private def get_member_list_with_http_info_impl(opts = {})
|
46
|
-
if @api_client.config.debugging
|
47
|
-
@api_client.config.logger.debug 'Calling API: TeamApi.get_member_list ...'
|
48
|
-
end
|
49
|
-
# resource path
|
50
|
-
local_var_path = '/api/v1/team/members'
|
51
|
-
|
52
|
-
# query parameters
|
53
|
-
query_params = opts[:query_params] || {}
|
54
|
-
|
55
|
-
# header parameters
|
56
|
-
header_params = opts[:header_params] || {}
|
57
|
-
# HTTP header 'Accept' (if needed)
|
58
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
59
|
-
|
60
|
-
# form parameters
|
61
|
-
form_params = opts[:form_params] || {}
|
62
|
-
|
63
|
-
# http body (model)
|
64
|
-
post_body = opts[:debug_body]
|
65
|
-
|
66
|
-
# return_type
|
67
|
-
return_type = opts[:debug_return_type] || 'Array<MemberResDTO>'
|
68
|
-
|
69
|
-
# auth_names
|
70
|
-
auth_names = opts[:debug_auth_names] || ['api_key']
|
71
|
-
|
72
|
-
new_options = opts.merge(
|
73
|
-
:operation => :"TeamApi.get_member_list",
|
74
|
-
:header_params => header_params,
|
75
|
-
:query_params => query_params,
|
76
|
-
:form_params => form_params,
|
77
|
-
:body => post_body,
|
78
|
-
:auth_names => auth_names,
|
79
|
-
:return_type => return_type
|
80
|
-
)
|
81
|
-
|
82
|
-
data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
|
83
|
-
if @api_client.config.debugging
|
84
|
-
@api_client.config.logger.debug "API called: TeamApi#get_member_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
85
|
-
end
|
86
|
-
APIResponse::new(data, status_code, headers, response)
|
87
|
-
end
|
88
|
-
|
89
|
-
|
90
|
-
# Invite member
|
91
|
-
#
|
92
|
-
# @param email [String] The email of the member
|
93
|
-
# @param name [String] The name of the member
|
94
|
-
# @param verify_host [String] The host to verify the member
|
95
|
-
# @param body [InviteMemberReqDTO]
|
96
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
97
|
-
def send_invitation(email:, name:, verify_host:, extra: {})
|
98
|
-
_body = {}
|
99
|
-
_body[:email] = email if email != SENTINEL
|
100
|
-
_body[:name] = name if name != SENTINEL
|
101
|
-
_body[:verifyHost] = verify_host if verify_host != SENTINEL
|
102
|
-
extra[:invite_member_req_dto] = _body if !_body.empty?
|
103
|
-
api_response = send_invitation_with_http_info_impl(extra)
|
104
|
-
api_response.data
|
105
|
-
end
|
106
|
-
|
107
|
-
# Invite member
|
108
|
-
#
|
109
|
-
# @param email [String] The email of the member
|
110
|
-
# @param name [String] The name of the member
|
111
|
-
# @param verify_host [String] The host to verify the member
|
112
|
-
# @param body [InviteMemberReqDTO]
|
113
|
-
# @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
|
114
|
-
def send_invitation_with_http_info(email:, name:, verify_host:, extra: {})
|
115
|
-
_body = {}
|
116
|
-
_body[:email] = email if email != SENTINEL
|
117
|
-
_body[:name] = name if name != SENTINEL
|
118
|
-
_body[:verifyHost] = verify_host if verify_host != SENTINEL
|
119
|
-
extra[:invite_member_req_dto] = _body if !_body.empty?
|
120
|
-
send_invitation_with_http_info_impl(extra)
|
121
|
-
end
|
122
|
-
|
123
|
-
# Invite member
|
124
|
-
# @param [Hash] opts the optional parameters
|
125
|
-
# @option opts [InviteMemberReqDTO] :invite_member_req_dto InviteMemberReqDTO
|
126
|
-
# @return [MemberResDTO]
|
127
|
-
private def send_invitation_impl(opts = {})
|
128
|
-
data, _status_code, _headers = send_invitation_with_http_info(opts)
|
129
|
-
data
|
130
|
-
end
|
131
|
-
|
132
|
-
# Invite member
|
133
|
-
# @param [Hash] opts the optional parameters
|
134
|
-
# @option opts [InviteMemberReqDTO] :invite_member_req_dto InviteMemberReqDTO
|
135
|
-
# @return [APIResponse] data is MemberResDTO, status code, headers and response
|
136
|
-
private def send_invitation_with_http_info_impl(opts = {})
|
137
|
-
if @api_client.config.debugging
|
138
|
-
@api_client.config.logger.debug 'Calling API: TeamApi.send_invitation ...'
|
139
|
-
end
|
140
|
-
# resource path
|
141
|
-
local_var_path = '/api/v1/team/invite'
|
142
|
-
|
143
|
-
# query parameters
|
144
|
-
query_params = opts[:query_params] || {}
|
145
|
-
|
146
|
-
# header parameters
|
147
|
-
header_params = opts[:header_params] || {}
|
148
|
-
# HTTP header 'Accept' (if needed)
|
149
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
150
|
-
# HTTP header 'Content-Type'
|
151
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
152
|
-
if !content_type.nil?
|
153
|
-
header_params['Content-Type'] = content_type
|
154
|
-
end
|
155
|
-
|
156
|
-
# form parameters
|
157
|
-
form_params = opts[:form_params] || {}
|
158
|
-
|
159
|
-
# http body (model)
|
160
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'invite_member_req_dto'])
|
161
|
-
|
162
|
-
# return_type
|
163
|
-
return_type = opts[:debug_return_type] || 'MemberResDTO'
|
164
|
-
|
165
|
-
# auth_names
|
166
|
-
auth_names = opts[:debug_auth_names] || ['api_key']
|
167
|
-
|
168
|
-
new_options = opts.merge(
|
169
|
-
:operation => :"TeamApi.send_invitation",
|
170
|
-
:header_params => header_params,
|
171
|
-
:query_params => query_params,
|
172
|
-
:form_params => form_params,
|
173
|
-
:body => post_body,
|
174
|
-
:auth_names => auth_names,
|
175
|
-
:return_type => return_type
|
176
|
-
)
|
177
|
-
|
178
|
-
data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
|
179
|
-
if @api_client.config.debugging
|
180
|
-
@api_client.config.logger.debug "API called: TeamApi#send_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
181
|
-
end
|
182
|
-
APIResponse::new(data, status_code, headers, response)
|
183
|
-
end
|
184
|
-
end
|
185
|
-
|
186
|
-
# top-level client access to avoid having the user to insantiate their own API instances
|
187
|
-
Team = TeamApi::new
|
188
|
-
end
|
data/spec/api/cli_api_spec.rb
DELETED
@@ -1,63 +0,0 @@
|
|
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::CLIApi
|
13
|
-
describe 'CLIApi' do
|
14
|
-
before do
|
15
|
-
# run before each test
|
16
|
-
@api_instance = Composio::CLIApi.new
|
17
|
-
end
|
18
|
-
|
19
|
-
after do
|
20
|
-
# run after each test
|
21
|
-
end
|
22
|
-
|
23
|
-
describe 'test an instance of CLIApi' do
|
24
|
-
it 'should create an instance of CLIApi' do
|
25
|
-
expect(@api_instance).to be_instance_of(Composio::CLIApi)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
# unit tests for exchange_code
|
30
|
-
# Handle cli code exchange
|
31
|
-
# @param [Hash] opts the optional parameters
|
32
|
-
# @return [GenerateCLISessionResDTO]
|
33
|
-
describe 'exchange_code test' do
|
34
|
-
it 'should work' do
|
35
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
# unit tests for get_code
|
40
|
-
# Get cli code
|
41
|
-
# @param key
|
42
|
-
# @param [Hash] opts the optional parameters
|
43
|
-
# @option opts [String] :code
|
44
|
-
# @return [GetCLISessionResDTO]
|
45
|
-
describe 'get_code 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
|
-
# unit tests for verify_code
|
52
|
-
# Handle cli code verification
|
53
|
-
# @param key
|
54
|
-
# @param [Hash] opts the optional parameters
|
55
|
-
# @option opts [String] :code
|
56
|
-
# @return [VerifyCLICodeResDTO]
|
57
|
-
describe 'verify_code 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
|
-
|
63
|
-
end
|
@@ -1,50 +0,0 @@
|
|
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::MetadataApi
|
13
|
-
describe 'MetadataApi' do
|
14
|
-
before do
|
15
|
-
# run before each test
|
16
|
-
@api_instance = Composio::MetadataApi.new
|
17
|
-
end
|
18
|
-
|
19
|
-
after do
|
20
|
-
# run after each test
|
21
|
-
end
|
22
|
-
|
23
|
-
describe 'test an instance of MetadataApi' do
|
24
|
-
it 'should create an instance of MetadataApi' do
|
25
|
-
expect(@api_instance).to be_instance_of(Composio::MetadataApi)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
# unit tests for get_toggle_info
|
30
|
-
# Get toggle info
|
31
|
-
# @param [Hash] opts the optional parameters
|
32
|
-
# @return [TriggerToggleInfoResponseDTO]
|
33
|
-
describe 'get_toggle_info test' do
|
34
|
-
it 'should work' do
|
35
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
# unit tests for toggle_trigger_state
|
40
|
-
# Toggle trigger state
|
41
|
-
# @param [Hash] opts the optional parameters
|
42
|
-
# @option opts [TriggersEnabledToggleReqDTO] :triggers_enabled_toggle_req_dto TriggersEnabledToggleReqDTO
|
43
|
-
# @return [ToggleTriggerStateResponseDTO]
|
44
|
-
describe 'toggle_trigger_state test' do
|
45
|
-
it 'should work' do
|
46
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
end
|
data/spec/api/team_api_spec.rb
DELETED
@@ -1,50 +0,0 @@
|
|
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::TeamApi
|
13
|
-
describe 'TeamApi' do
|
14
|
-
before do
|
15
|
-
# run before each test
|
16
|
-
@api_instance = Composio::TeamApi.new
|
17
|
-
end
|
18
|
-
|
19
|
-
after do
|
20
|
-
# run after each test
|
21
|
-
end
|
22
|
-
|
23
|
-
describe 'test an instance of TeamApi' do
|
24
|
-
it 'should create an instance of TeamApi' do
|
25
|
-
expect(@api_instance).to be_instance_of(Composio::TeamApi)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
# unit tests for get_member_list
|
30
|
-
# List members
|
31
|
-
# @param [Hash] opts the optional parameters
|
32
|
-
# @return [Array<MemberResDTO>]
|
33
|
-
describe 'get_member_list test' do
|
34
|
-
it 'should work' do
|
35
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
# unit tests for send_invitation
|
40
|
-
# Invite member
|
41
|
-
# @param [Hash] opts the optional parameters
|
42
|
-
# @option opts [InviteMemberReqDTO] :invite_member_req_dto InviteMemberReqDTO
|
43
|
-
# @return [MemberResDTO]
|
44
|
-
describe 'send_invitation test' do
|
45
|
-
it 'should work' do
|
46
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
end
|